You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -54,76 +54,27 @@ Before adding logging and submitting an experiment, you must set up the workspac
54
54
55
55
1. Load the workspace. To learn more about setting the workspace configuration, see [workspace configuration file](how-to-configure-environment.md#workspace).
56
56
57
-
```python
58
-
from azureml.core import Experiment, Run, Workspace
**start_logging** creates an interactive run for use in scenarios such as notebooks. Any metrics that are logged during the session are added to the run record in the experiment.
67
63
68
64
The following example trains a simple sklearn Ridge model locally in a local Jupyter notebook. To learn more about submitting experiments to different environments, see [Set up compute targets for model training with Azure Machine Learning](https://docs.microsoft.com/azure/machine-learning/how-to-set-up-training-targets).
69
65
70
-
1. Create a training script in a local Jupyter notebook.
66
+
### Load the data
71
67
72
-
```python
73
-
# load diabetes dataset, a well-known small dataset that comes with scikit-learn
74
-
from sklearn.datasets import load_diabetes
75
-
from sklearn.linear_model import Ridge
76
-
from sklearn.metrics import mean_squared_error
77
-
from sklearn.model_selection import train_test_split
This example uses the diabetes dataset, a well-known small dataset that comes with scikit-learn. This cell loads the dataset and splits it into random training and testing sets.
93
69
94
-
2. Add experiment tracking using the Azure Machine Learning SDK, and upload a persisted model into the experiment run record. The following code adds tags, logs, and uploads a model file to the experiment run.
Add experiment tracking using the Azure Machine Learning SDK, and upload a persisted model into the experiment run record. The following code adds tags, logs, and uploads a model file to the experiment run.
125
74
126
-
The script ends with ```run.complete()```, which marks the run as completed. This function is typically used in interactive notebook scenarios.
# list of numbers from 0.0 to 1.0 with a 0.05 interval
197
-
return np.arange(0.0, 1.0, 0.05)
198
-
```
98
+
4. Submit the ```train.py``` script to run in the user-managed environment. This whole script folder is submitted for training, including the ```mylib.py``` file.
4. Submit the ```train.py``` script to run in the user-managed environment. This whole script folder is submitted for training, including the ```mylib.py``` file.
0 commit comments