File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
articles/machine-learning Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -994,14 +994,14 @@ from azure.ai.ml import Input
994
994
from azure.ai.ml.constants import AssetTypes, InputOutputModes
995
995
from azure.ai.ml import MLClient
996
996
997
- ml_client = MLClient.from_config()
997
+ ml_client = MLClient.from_config(credential=DefaultAzureCredential() )
998
998
999
999
filedataset_asset = ml_client.data.get(name="<filedataset_name>", version="<version>")
1000
1000
1001
1001
my_job_inputs = {
1002
1002
"input_data": Input(
1003
1003
type=AssetTypes.MLTABLE,
1004
- path=filedataset_asset,
1004
+ path=filedataset_asset.id ,
1005
1005
mode=InputOutputModes.EVAL_MOUNT
1006
1006
)
1007
1007
}
@@ -1066,14 +1066,14 @@ from azure.ai.ml import Input
1066
1066
from azure.ai.ml.constants import AssetTypes, InputOutputModes
1067
1067
from azure.ai.ml import MLClient
1068
1068
1069
- ml_client = MLClient.from_config()
1069
+ ml_client = MLClient.from_config(credential=DefaultAzureCredential() )
1070
1070
1071
1071
filedataset_asset = ml_client.data.get(name="<tabulardataset_name>", version="<version>")
1072
1072
1073
1073
my_job_inputs = {
1074
1074
"input_data": Input(
1075
1075
type=AssetTypes.MLTABLE,
1076
- path=filedataset_asset,
1076
+ path=filedataset_asset.id ,
1077
1077
mode=InputOutputModes.DIRECT
1078
1078
)
1079
1079
}
You can’t perform that action at this time.
0 commit comments