Skip to content

Commit 5c2b6c1

Browse files
authored
Merge pull request #84068 from trevorbye/keras-hack
seo changes
2 parents 5c25667 + 987a3f7 commit 5c2b6c1

File tree

1 file changed

+15
-11
lines changed

1 file changed

+15
-11
lines changed

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

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,45 @@
11
---
2-
title: Train and register Keras models running on TensorFlow
2+
title: Train deep learning neural network with Keras
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: Learn how to train and register a Keras deep neural network classification model running on TensorFlow using Azure Machine Learning service.
55
services: machine-learning
66
ms.service: machine-learning
77
ms.subservice: core
88
ms.topic: conceptual
99
ms.author: maxluk
1010
author: maxluk
1111
ms.reviewer: peterlu
12-
ms.date: 06/07/2019
12+
ms.date: 08/01/2019
1313
ms.custom: seodec18
14+
15+
#Customer intent: As a Python Keras developer, I need to combine open-source with a cloud platform to train, evaluate, and deploy my deep learning models at scale.
1416
---
1517

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

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).
20+
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).
1921

2022
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.
2123

2224
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.
2325

26+
See the [conceptual article](concept-deep-learning-vs-machine-learning.md) for information on the differences between machine learning and deep learning.
27+
2428
## Prerequisites
2529

2630
Run this code on either of these environments:
2731

2832
- Azure Machine Learning Notebook VM - no downloads or installation necessary
2933

3034
- 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-
35+
- 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.
36+
3337
- Your own Jupyter Notebook server
3438

3539
- [Install the Azure Machine Learning SDK for Python](setup-create-workspace.md#sdk)
3640
- [Create a workspace configuration file](setup-create-workspace.md#write-a-configuration-file)
3741
- [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-
42+
3943
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.
4044

4145
## Set up the experiment
@@ -121,7 +125,7 @@ try:
121125
print('Found existing compute target')
122126
except ComputeTargetException:
123127
print('Creating a new compute target...')
124-
compute_config = AmlCompute.provisioning_configuration(vm_size='STANDARD_NC6',
128+
compute_config = AmlCompute.provisioning_configuration(vm_size='STANDARD_NC6',
125129
max_nodes=4)
126130

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

136140
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.
137141

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)
142+
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)
139143

140144
```Python
141145
script_params = {
@@ -175,7 +179,7 @@ As the Run is executed, it goes through the following stages:
175179

176180
## Register the model
177181

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).
182+
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).
179183

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

0 commit comments

Comments
 (0)