Skip to content

Commit da4080e

Browse files
authored
Merge pull request #79173 from PeterCLu/plu-amls-tf-patch-2
Minor revisions
2 parents ebcf6f4 + a2908c2 commit da4080e

File tree

1 file changed

+7
-11
lines changed

1 file changed

+7
-11
lines changed

articles/machine-learning/service/how-to-train-tensorflow.md

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,25 +8,26 @@ ms.subservice: core
88
ms.topic: conceptual
99
ms.author: minxia
1010
author: mx-iao
11-
ms.date: 05/28/2019
11+
ms.date: 06/10/2019
1212
ms.custom: seodec18
1313
---
1414

1515
# Train and register TensorFlow models at scale with Azure Machine Learning service
1616

1717
This article shows you how to train and register a TensorFlow model using Azure Machine Learning service. It uses the popular [MNIST dataset](http://yann.lecun.com/exdb/mnist/) to classify handwritten digits using a deep neural network built using the [TensorFlow Python library](https://www.tensorflow.org/overview).
1818

19-
With Azure Machine Learning service, you can rapidly scale out open-source training jobs using elastic cloud compute resources. You can also track your training runs, version models, deploy models, and much more.
19+
TensorFlow is an open-source computational framework commonly used to create deep neural networks (DNN). With Azure Machine Learning service, you can rapidly scale out open-source training jobs using elastic cloud compute resources. You can also track your training runs, version models, deploy models, and much more.
2020

21-
Whether you're developing a TensorFlow model from the ground-up or you're bringing an existing model into the cloud, Azure Machine Learning service can help you build production-ready models
21+
Whether you're developing a TensorFlow model from the ground-up or you're bringing an existing model into the cloud, Azure Machine Learning service can help you build production-ready models.
2222

2323
## Prerequisites
2424

2525
- An Azure subscription. Try the [free or paid version of Azure Machine Learning service](https://aka.ms/AMLFree) today.
2626
- [Install the Azure Machine Learning SDK for Python](setup-create-workspace.md#sdk)
27+
- [Create a workspace configuration file](setup-create-workspace.md#write-a-configuration-file)
2728
- [Download the sample script files](https://github.com/Azure/MachineLearningNotebooks/tree/master/how-to-use-azureml/training-with-deep-learning/train-hyperparameter-tune-deploy-with-tensorflow) `mnist-tf.py` and `utils.py`
2829

29-
You can also find a completed [Jupyter Notebook version](https://github.com/Azure/MachineLearningNotebooks/blob/master/how-to-use-azureml/training-with-deep-learning/train-hyperparameter-tune-deploy-with-tensorflow/train-hyperparameter-tune-deploy-with-tensorflow.ipynb) of this guide on GitHub samples page. The notebook includes expanded sections covering intelligent hyperparameter tuning and model deployment.
30+
You can also find a completed [Jupyter Notebook version](https://github.com/Azure/MachineLearningNotebooks/blob/master/how-to-use-azureml/training-with-deep-learning/train-hyperparameter-tune-deploy-with-tensorflow/train-hyperparameter-tune-deploy-with-tensorflow.ipynb) of this guide on GitHub samples page. The notebook includes expanded sections covering intelligent hyperparameter tuning, model deployment, and notebook widgets.
3031

3132
## Set up the experiment
3233

@@ -53,15 +54,10 @@ from azureml.core.compute_target import ComputeTargetException
5354

5455
The [Azure Machine Learning service workspace](concept-workspace.md) is the top-level resource for the service. It provides you with a centralized place to work with all the artifacts you create. In the Python SDK, you can access the workspace artifacts by creating a [`workspace`](https://docs.microsoft.com/python/api/azureml-core/azureml.core.workspace.workspace?view=azure-ml-py) object.
5556

56-
Create a workspace by finding a value for the <azure-subscription-id> parameter in the [subscriptions list in the Azure portal](https://ms.portal.azure.com/#blade/Microsoft_Azure_Billing/SubscriptionsBlade). Use any subscription in which your role is owner or contributor. For more information on roles, see [Manage access to an Azure Machine Learning workspace](how-to-assign-roles.md) article
57+
Create a workspace object from the `config.json` file created in the [prerequisites section](#prerequisites).
5758

5859
```Python
59-
ws = Workspace.create(name='myworkspace',
60-
subscription_id='<azure-subscription-id>',
61-
resource_group='myresourcegroup',
62-
create_resource_group=True,
63-
location='<select-location>' # For example: 'eastus2'
64-
)
60+
ws = Workspace.from_config()
6561
```
6662

6763
### Create an experiment

0 commit comments

Comments
 (0)