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
>>> oc.OCIClientFactory(**auth).object_storage # Creates Object Storage client with timeout set to 6000 seconds using resource principal authentication
details="Use framework specific Model utility class for saving and deploying model saving and deploying. Check https://accelerated-data-science.readthedocs.io/en/latest/user_guide/model_registration/quick_start.html",
177
+
)
174
178
defpredict(self, X):
175
179
"""
176
180
Runs the models predict function on some data
177
181
178
182
Parameters
179
183
----------
180
-
X: MLData
181
-
A MLData object which holds the examples to be predicted on.
184
+
X: ADSData
185
+
A ADSData object which holds the examples to be predicted on.
182
186
183
187
Returns
184
188
-------
@@ -202,8 +206,8 @@ def predict_proba(self, X):
202
206
203
207
Parameters
204
208
----------
205
-
X: MLData
206
-
A MLData object which holds the examples to be predicted on.
209
+
X: ADSData
210
+
A ADSData object which holds the examples to be predicted on.
207
211
208
212
Returns
209
213
-------
@@ -218,16 +222,20 @@ def predict_proba(self, X):
218
222
else:
219
223
returnself.est.predict_proba(X)
220
224
225
+
@deprecated(
226
+
"2.6.6",
227
+
details="Use framework specific Model utility class for saving and deploying model saving and deploying. Check https://accelerated-data-science.readthedocs.io/en/latest/user_guide/model_registration/quick_start.html",
228
+
)
221
229
defscore(self, X, y_true, score_fn=None):
222
230
"""
223
231
Scores a model according to a custom score function
224
232
225
233
Parameters
226
234
----------
227
-
X: MLData
228
-
A MLData object which holds the examples to be predicted on.
229
-
y_true: MLData
230
-
A MLData object which holds ground truth labels for the examples which are being predicted on.
235
+
X: ADSData
236
+
A ADSData object which holds the examples to be predicted on.
237
+
y_true: ADSData
238
+
A ADSData object which holds ground truth labels for the examples which are being predicted on.
231
239
score_fn: Scorer (callable)
232
240
A callable object that returns a score, usually created with sklearn.metrics.make_scorer().
details="Use framework specific Model utility class for saving and deploying model saving and deploying. Check https://accelerated-data-science.readthedocs.io/en/latest/user_guide/model_registration/quick_start.html",
264
+
)
253
265
defsummary(self):
254
266
"""
255
267
A summary of the ADSModel
@@ -274,14 +286,18 @@ def __repr__(self):
274
286
def__getattr__(self, item):
275
287
returngetattr(self.est, item)
276
288
289
+
@deprecated(
290
+
"2.6.6",
291
+
details="Use framework specific Model utility class for saving and deploying model saving and deploying. Check https://accelerated-data-science.readthedocs.io/en/latest/user_guide/model_registration/quick_start.html",
292
+
)
277
293
deftransform(self, X):
278
294
"""
279
-
Process some MLData through the selected ADSModel transformers
295
+
Process some ADSData through the selected ADSModel transformers
280
296
281
297
Parameters
282
298
----------
283
-
X: MLData
284
-
A MLData object which holds the examples to be transformed.
299
+
X: ADSData
300
+
A ADSData object which holds the examples to be transformed.
details="Use framework specific Model utility class for saving and deploying model saving and deploying. Check https://accelerated-data-science.readthedocs.io/en/latest/user_guide/model_registration/quick_start.html",
332
+
)
313
333
deffeature_names(self, X=None):
314
334
model_type=self._underlying_model
315
335
ifmodel_type=="sklearn":
@@ -367,6 +387,10 @@ def __getstate__(self):
367
387
def__setstate__(self, state):
368
388
self.__dict__=state
369
389
390
+
@deprecated(
391
+
"2.6.6",
392
+
details="Use framework specific Model utility class for saving and deploying model saving and deploying. Check https://accelerated-data-science.readthedocs.io/en/latest/user_guide/model_registration/quick_start.html",
0 commit comments