Skip to content

Commit 64b9844

Browse files
authored
Update how-to-train-with-datasets.md
update based on user feedback
1 parent a4ba46c commit 64b9844

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

articles/machine-learning/how-to-train-with-datasets.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ This code creates a generic estimator object, `est`, that specifies
8181

8282
* A script directory for your scripts. All the files in this directory are uploaded into the cluster nodes for execution.
8383
* The training script, *train_titanic.py*.
84-
* The input dataset for training, `titanic`.
84+
* The input dataset for training, `titanic`. `as_named_input()` is required so that the input dataset can be referenced by the assigned name in your training script.
8585
* The compute target for the experiment.
8686
* The environment definition for the experiment.
8787

@@ -125,7 +125,7 @@ mnist_ds = Dataset.File.from_files(path = web_paths)
125125

126126
### Configure the estimator
127127

128-
Instead of passing the dataset through the `inputs` parameter in the estimator, you can also pass the dataset through `script_params` and get the data path (mounting point) in your training script via arguments. This way, you can access your data and use an existing training script.
128+
Besides passing the dataset through the `inputs` parameter in the estimator, you can also pass the dataset through `script_params` and get the data path (mounting point) in your training script via arguments. This way, you can keep your training script independent of azureml-sdk. In other words, you can use the same training script for local debugging and remote training on any cloud platform.
129129

130130
An [SKLearn](https://docs.microsoft.com/python/api/azureml-train-core/azureml.train.sklearn.sklearn?view=azure-ml-py) estimator object is used to submit the run for scikit-learn experiments. Learn more about training with the [SKlearn estimator](how-to-train-scikit-learn.md).
131131

0 commit comments

Comments
 (0)