@@ -63,6 +63,8 @@ class EvaluatorOperations(_ScopeDependentOperations):
63
63
:type datastore_operations: ~azure.ai.ml.operations._datastore_operations.DatastoreOperations
64
64
:param all_operations: All operations classes of an MLClient object.
65
65
:type all_operations: ~azure.ai.ml._scope_dependent_operations.OperationsContainer
66
+ :param kwargs: A dictionary of additional configuration parameters.
67
+ :type kwargs: dict
66
68
"""
67
69
68
70
# pylint: disable=unused-argument
@@ -92,7 +94,7 @@ def __init__(
92
94
93
95
@monitor_with_activity (ops_logger , "Evaluator.CreateOrUpdate" , ActivityType .PUBLICAPI )
94
96
def create_or_update ( # type: ignore
95
- self , model : Union [Model , WorkspaceAssetReference ]
97
+ self , model : Union [Model , WorkspaceAssetReference ], ** kwargs : Any
96
98
) -> Model : # TODO: Are we going to implement job_name?
97
99
"""Returns created or updated model asset.
98
100
@@ -125,15 +127,15 @@ def _raise_if_not_evaluator(self, properties: Optional[Dict[str, Any]], message:
125
127
)
126
128
127
129
@monitor_with_activity (ops_logger , "Evaluator.Get" , ActivityType .PUBLICAPI )
128
- def get (self , name : str , version : Optional [str ] = None , label : Optional [str ] = None ) -> Model :
130
+ def get (self , name : str , * , version : Optional [str ] = None , label : Optional [str ] = None , ** kwargs ) -> Model :
129
131
"""Returns information about the specified model asset.
130
132
131
133
:param name: Name of the model.
132
134
:type name: str
133
- :param version: Version of the model.
134
- :type version: str
135
- :param label: Label of the model. (mutually exclusive with version)
136
- :type label: str
135
+ :keyword version: Version of the model.
136
+ :paramtype version: str
137
+ :keyword label: Label of the model. (mutually exclusive with version)
138
+ :paramtype label: str
137
139
:raises ~azure.ai.ml.exceptions.ValidationException: Raised if Model cannot be successfully validated.
138
140
Details will be provided in the error message.
139
141
:return: Model asset object.
@@ -150,7 +152,7 @@ def get(self, name: str, version: Optional[str] = None, label: Optional[str] = N
150
152
return model
151
153
152
154
@monitor_with_activity (ops_logger , "Evaluator.Download" , ActivityType .PUBLICAPI )
153
- def download (self , name : str , version : str , download_path : Union [PathLike , str ] = "." ) -> None :
155
+ def download (self , name : str , version : str , download_path : Union [PathLike , str ] = "." , ** kwargs : Any ) -> None :
154
156
"""Download files related to a model.
155
157
156
158
:param name: Name of the model.
@@ -171,6 +173,7 @@ def list(
171
173
stage : Optional [str ] = None ,
172
174
* ,
173
175
list_view_type : ListViewType = ListViewType .ACTIVE_ONLY ,
176
+ ** kwargs : Any ,
174
177
) -> Iterable [Model ]:
175
178
"""List all model assets in workspace.
176
179
0 commit comments