@@ -987,14 +987,14 @@ from azure.ai.ml import Input
987
987
from azure.ai.ml.constants import AssetTypes, InputOutputModes
988
988
from azure.ai.ml import MLClient
989
989
990
- ml_client = MLClient.from_config()
990
+ ml_client = MLClient.from_config(credential=DefaultAzureCredential() )
991
991
992
992
filedataset_asset = ml_client.data.get(name="<filedataset_name>", version="<version>")
993
993
994
994
my_job_inputs = {
995
995
"input_data": Input(
996
996
type=AssetTypes.MLTABLE,
997
- path=filedataset_asset,
997
+ path=filedataset_asset.id ,
998
998
mode=InputOutputModes.EVAL_MOUNT
999
999
)
1000
1000
}
@@ -1059,14 +1059,14 @@ from azure.ai.ml import Input
1059
1059
from azure.ai.ml.constants import AssetTypes, InputOutputModes
1060
1060
from azure.ai.ml import MLClient
1061
1061
1062
- ml_client = MLClient.from_config()
1062
+ ml_client = MLClient.from_config(credential=DefaultAzureCredential() )
1063
1063
1064
1064
filedataset_asset = ml_client.data.get(name="<tabulardataset_name>", version="<version>")
1065
1065
1066
1066
my_job_inputs = {
1067
1067
"input_data": Input(
1068
1068
type=AssetTypes.MLTABLE,
1069
- path=filedataset_asset,
1069
+ path=filedataset_asset.id ,
1070
1070
mode=InputOutputModes.DIRECT
1071
1071
)
1072
1072
}
@@ -1119,4 +1119,4 @@ az ml job create -f <file-name>.yml
1119
1119
1120
1120
* [Train models](how-to-train-model.md)
1121
1121
* [Tutorial: Create production ML pipelines with Python SDK v2](tutorial-pipeline-python-sdk.md)
1122
- * Learn more about [Data in Azure Machine Learning](concept-data.md)
1122
+ * Learn more about [Data in Azure Machine Learning](concept-data.md)
0 commit comments