Skip to content

Commit b638bae

Browse files
author
Trevor Bye
committed
seo changes
1 parent 4786e61 commit b638bae

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

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

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
2-
title: Train and register Keras models running on TensorFlow
2+
title: Train and register a Keras classification using Azure Machine Learning service.
33
titleSuffix: Azure Machine Learning service
4-
description: This article shows you how to train and register a Keras model running on TensorFlow using Azure Machine Learning service.
4+
description: This article shows you how to train and register a Keras classification model running on TensorFlow using Azure Machine Learning service.
55
services: machine-learning
66
ms.service: machine-learning
77
ms.subservice: core
@@ -13,29 +13,31 @@ ms.date: 06/07/2019
1313
ms.custom: seodec18
1414
---
1515

16-
# Train and register Keras models at scale with Azure Machine Learning service
16+
# Train and register a Keras classification model with Azure Machine Learning service
1717

18-
This article shows you how to train and register a Keras model built on TensorFlow 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 (DNN) built using the [Keras Python library](https://keras.io) running on top of [TensorFlow](https://www.tensorflow.org/overview).
18+
This article shows you how to train and register a Keras classification model built on TensorFlow 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 (DNN) built using the [Keras Python library](https://keras.io) running on top of [TensorFlow](https://www.tensorflow.org/overview).
1919

2020
Keras is a high-level neural network API capable of running top of other popular DNN frameworks to simplify development. With Azure Machine Learning service, you can rapidly scale out training jobs using elastic cloud compute resources. You can also track your training runs, version models, deploy models, and much more.
2121

2222
Whether you're developing a Keras 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.
2323

24+
See the [conceptual article](concept-deep-learning-vs-machine-learning.md) for information on the differences between machine learning and deep learning.
25+
2426
## Prerequisites
2527

2628
Run this code on either of these environments:
2729

2830
- Azure Machine Learning Notebook VM - no downloads or installation necessary
2931

3032
- Complete the [cloud-based notebook quickstart](quickstart-run-cloud-notebook.md) to create a dedicated notebook server pre-loaded with the SDK and the sample repository.
31-
- In the samples folder on the notebook server, find a completed and expanded notebook by navigating to this directory: **how-to-use-azureml > training-with-deep-learning > train-hyperparameter-tune-deploy-with-keras** folder.
32-
33+
- In the samples folder on the notebook server, find a completed and expanded notebook by navigating to this directory: **how-to-use-azureml > training-with-deep-learning > train-hyperparameter-tune-deploy-with-keras** folder.
34+
3335
- Your own Jupyter Notebook server
3436

3537
- [Install the Azure Machine Learning SDK for Python](setup-create-workspace.md#sdk)
3638
- [Create a workspace configuration file](setup-create-workspace.md#write-a-configuration-file)
3739
- [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-keras) `mnist-keras.py` and `utils.py`
38-
40+
3941
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-keras/train-hyperparameter-tune-deploy-with-keras.ipynb) of this guide on the GitHub samples page. The notebook includes expanded sections covering intelligent hyperparameter tuning, model deployment, and notebook widgets.
4042

4143
## Set up the experiment
@@ -121,7 +123,7 @@ try:
121123
print('Found existing compute target')
122124
except ComputeTargetException:
123125
print('Creating a new compute target...')
124-
compute_config = AmlCompute.provisioning_configuration(vm_size='STANDARD_NC6',
126+
compute_config = AmlCompute.provisioning_configuration(vm_size='STANDARD_NC6',
125127
max_nodes=4)
126128

127129
compute_target = ComputeTarget.create(ws, cluster_name, compute_config)
@@ -135,7 +137,7 @@ For more information on compute targets, see the [what is a compute target](conc
135137

136138
The [TensorFlow estimator](https://docs.microsoft.com/python/api/azureml-train-core/azureml.train.dnn.tensorflow?view=azure-ml-py) provides a simple way of launching TensorFlow training jobs on compute target. Since Keras runs on top of TensorFlow, you can use the TensorFlow estimator and import the Keras library using the `pip_packages` argument.
137139

138-
The TensorFlow estimator is implemented through the generic [`estimator`](https://docs.microsoft.com//python/api/azureml-train-core/azureml.train.estimator.estimator?view=azure-ml-py) class, which can be used to support any framework. For more information about training models using the generic estimator, see [train models with Azure Machine Learning using estimator](how-to-train-ml-models.md)
140+
The TensorFlow estimator is implemented through the generic [`estimator`](https://docs.microsoft.com//python/api/azureml-train-core/azureml.train.estimator.estimator?view=azure-ml-py) class, which can be used to support any framework. Additionally, create a dictionary `script_params` that contains the DNN hyperparameter settings. For more information about training models using the generic estimator, see [train models with Azure Machine Learning using estimator](how-to-train-ml-models.md)
139141

140142
```Python
141143
script_params = {
@@ -175,7 +177,7 @@ As the Run is executed, it goes through the following stages:
175177

176178
## Register the model
177179

178-
Once you've trained the model, you can register it to your workspace. Model registration lets you store and version your models in your workspace to simplify [model management and deployment](concept-model-management-and-deployment.md).
180+
Once you've trained the DNN model, you can register it to your workspace. Model registration lets you store and version your models in your workspace to simplify [model management and deployment](concept-model-management-and-deployment.md).
179181

180182
```Python
181183
model = run.register_model(model_name='keras-dnn-mnist', model_path='outputs/model')

0 commit comments

Comments
 (0)