Skip to content

Commit caf3fd6

Browse files
committed
cross link v1 and v2 articles
1 parent 951dae4 commit caf3fd6

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

articles/machine-learning/how-to-train-scikit-learn.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,10 @@ ms.custom: devx-track-python, sdkv1, event-tier1-build-2022
1515

1616
# Train scikit-learn models at scale with Azure Machine Learning
1717

18-
[!INCLUDE [sdk v1](../../includes/machine-learning-sdk-v1.md)]
18+
[!INCLUDE [sdk v2](../../includes/machine-learning-sdk-v2.md)]
19+
> [!div class="op_single_selector" title1="Select the Azure Machine Learning SDK version you are using:"]
20+
> * [v1](v1/how-to-train-scikit-learn.md)
21+
> * [v2 (preview)](how-to-train-scikit-learn.md)
1922
2023
In this article, learn how to run your scikit-learn training scripts with Azure Machine Learning.
2124

@@ -47,11 +50,7 @@ The [Azure Machine Learning workspace](concept-workspace.md) is the top-level re
4750

4851
Create a workspace object from the `config.json` file created in the [prerequisites section](#prerequisites).
4952

50-
```Python
51-
from azureml.core import Workspace
52-
53-
ws = Workspace.from_config()
54-
```
53+
[!notebook-python[](~/azureml-examples-main/sdk/jobs/single-step/scikit-learn/train-hyperparameter-tune-deploy-with-sklearn/train-hyperparameter-tune-with-sklearn.ipynb?name=credential)]
5554

5655
### Prepare scripts
5756

articles/machine-learning/v1/how-to-train-scikit-learn.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ ms.custom: devx-track-python, sdkv1, event-tier1-build-2022
1616
# Train scikit-learn models at scale with Azure Machine Learning (SDK v1)
1717

1818
[!INCLUDE [sdk v1](../../../includes/machine-learning-sdk-v1.md)]
19+
> [!div class="op_single_selector" title1="Select the Azure Machine Learning SDK version you are using:"]
20+
> * [v1](how-to-train-scikit-learn.md)
21+
> * [v2 (preview)](../how-to-train-scikit-learn.md)
1922
2023
In this article, learn how to run your scikit-learn training scripts with Azure Machine Learning.
2124

0 commit comments

Comments
 (0)