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
# prediction kwargs to pass to the model predict function
123
132
**predict_kwargs: Dict[str, Any],
133
+
124
134
):
125
135
"""
126
136
Perform a prediction on the provided dataset using the specified model.
@@ -173,10 +183,33 @@ def infer(
173
183
:param model_endpoint_sample_set: A sample dataset to give to compare the inputs in the drift analysis.
174
184
Can be provided as an input (DataItem) or as a parameter (e.g. string, list, DataFrame).
175
185
The default chosen sample set will always be the one who is set in the model artifact itself.
186
+
:param trigger_monitoring_job: Whether to trigger the batch drift analysis after the infer job.
187
+
:param batch_image_job: The image that will be used to register the monitoring batch job if not exist.
188
+
By default, the image is mlrun/mlrun.
189
+
:param model_endpoint_drift_threshold: The threshold of which to mark drifts. Defaulted to 0.7.
190
+
:param model_endpoint_possible_drift_threshold: The threshold of which to mark possible drifts. Defaulted to 0.5.
176
191
177
192
raises MLRunInvalidArgumentError: if both `model_path` and `endpoint_id` are not provided
178
193
"""
179
194
195
+
196
+
iftrigger_monitoring_job:
197
+
context.logger.warning("The `trigger_monitoring_job` parameter is deprecated and will be removed once the versioning mechanism is implemented. "
198
+
"if you are using mlrun<1.7.0, please import the previous version of this function, for example "
199
+
"'hub://batch_inference_v2:2.5.0'.")
200
+
ifbatch_image_job:
201
+
context.logger.warning("The `batch_image_job` parameter is deprecated and will be removed once the versioning mechanism is implemented. "
202
+
"if you are using mlrun<1.7.0, please import the previous version of this function, for example "
203
+
"'hub://batch_inference_v2:2.5.0'.")
204
+
ifmodel_endpoint_drift_threshold:
205
+
context.logger.warning("The `model_endpoint_drift_threshold` parameter is deprecated and will be removed once the versioning mechanism is implemented. "
206
+
"if you are using mlrun<1.7.0, please import the previous version of this function, for example "
207
+
"'hub://batch_inference_v2:2.5.0'.")
208
+
ifmodel_endpoint_possible_drift_threshold:
209
+
context.logger.warning("The `model_endpoint_possible_drift_threshold` parameter is deprecated and will be removed once the versioning mechanism is implemented. "
210
+
"if you are using mlrun<1.7.0, please import the previous version of this function, for example "
0 commit comments