@@ -301,7 +301,7 @@ class GenericModel(MetadataMixin, Introspectable, EvaluatorMixin):
301
301
update_summary_status(...)
302
302
Update the status in the summary table.
303
303
update_summary_action(...)
304
- Update the actions needed in the summary table.
304
+ Update the actions needed from the user in the summary table.
305
305
306
306
307
307
Examples
@@ -366,7 +366,7 @@ def __init__(
366
366
properties: (ModelProperties, optional). Defaults to None.
367
367
ModelProperties object required to save and deploy model.
368
368
auth :(Dict, optional). Defaults to None.
369
- The default authentication is set using `ads.set_auth` API. If you need to override the
369
+ The default authetication is set using `ads.set_auth` API. If you need to override the
370
370
default, use the `ads.common.auth.api_keys` or `ads.common.auth.resource_principal` to create appropriate
371
371
authentication signer and kwargs required to instantiate IdentityClient object.
372
372
serialize: (bool, optional). Defaults to True.
@@ -619,7 +619,7 @@ def set_model_save_serializer(self, model_save_serializer: Union[str, SERDE]):
619
619
>>> # Register serializer by passing the name of it.
620
620
>>> generic_model.set_model_save_serializer("cloudpickle")
621
621
622
- >>> # Example of creating customized model save serializer and registering it.
622
+ >>> # Example of creating customized model save serializer and registing it.
623
623
>>> from ads.model import SERDE
624
624
>>> from ads.model.generic_model import GenericModel
625
625
@@ -869,7 +869,7 @@ def prepare(
869
869
initial_types: (list[Tuple], optional).
870
870
Defaults to None. Only used for SklearnModel, LightGBMModel and XGBoostModel.
871
871
Each element is a tuple of a variable name and a type.
872
- Check this link https ://onnx.ai/sklearn-onnx/api_summary.html#id2 for
872
+ Check this link http ://onnx.ai/sklearn-onnx/api_summary.html#id2 for
873
873
more explanation and examples for `initial_types`.
874
874
force_overwrite: (bool, optional). Defaults to False.
875
875
Whether to overwrite existing files.
@@ -897,7 +897,7 @@ def prepare(
897
897
Parameter to ignore error when collecting conda information.
898
898
score_py_uri: (str, optional). Defaults to None.
899
899
The uri of the customized score.py, which can be local path or OCI object storage URI.
900
- When provide with this attribute , the `score.py` will not be auto generated, and the
900
+ When provide with this attibute , the `score.py` will not be auto generated, and the
901
901
provided `score.py` will be added into artifact_dir.
902
902
kwargs:
903
903
impute_values: (dict, optional).
@@ -1306,12 +1306,12 @@ def verify(
1306
1306
return prediction
1307
1307
1308
1308
def introspect (self ) -> pd .DataFrame :
1309
- """Conducts introspection .
1309
+ """Conducts instrospection .
1310
1310
1311
1311
Returns
1312
1312
-------
1313
1313
pandas.DataFrame
1314
- A pandas DataFrame which contains the introspection results.
1314
+ A pandas DataFrame which contains the instrospection results.
1315
1315
"""
1316
1316
df = self ._introspect ()
1317
1317
return df
@@ -1334,7 +1334,7 @@ def from_model_artifact(
1334
1334
----------
1335
1335
uri: str
1336
1336
The folder path, ZIP file path, or TAR file path. It could contain a
1337
- serialized model(required) as well as any files needed for deployment including:
1337
+ seriliazed model(required) as well as any files needed for deployment including:
1338
1338
serialized model, runtime.yaml, score.py and etc. The content of the folder will be
1339
1339
copied to the `artifact_dir` folder.
1340
1340
model_file_name: (str, optional). Defaults to `None`.
@@ -1344,7 +1344,7 @@ def from_model_artifact(
1344
1344
The artifact directory to store the files needed for deployment.
1345
1345
Will be created if not exists.
1346
1346
auth: (Dict, optional). Defaults to None.
1347
- The default authentication is set using `ads.set_auth` API. If you need to override the
1347
+ The default authetication is set using `ads.set_auth` API. If you need to override the
1348
1348
default, use the `ads.common.auth.api_keys` or `ads.common.auth.resource_principal` to create appropriate
1349
1349
authentication signer and kwargs required to instantiate IdentityClient object.
1350
1350
force_overwrite: (bool, optional). Defaults to False.
@@ -1567,7 +1567,7 @@ def from_model_catalog(
1567
1567
The artifact directory to store the files needed for deployment.
1568
1568
Will be created if not exists.
1569
1569
auth: (Dict, optional). Defaults to None.
1570
- The default authentication is set using `ads.set_auth` API. If you need to override the
1570
+ The default authetication is set using `ads.set_auth` API. If you need to override the
1571
1571
default, use the `ads.common.auth.api_keys` or `ads.common.auth.resource_principal` to create appropriate
1572
1572
authentication signer and kwargs required to instantiate IdentityClient object.
1573
1573
force_overwrite: (bool, optional). Defaults to False.
@@ -1579,7 +1579,7 @@ def from_model_catalog(
1579
1579
The `bucket_uri` is only necessary for downloading large artifacts with
1580
1580
size is greater than 2GB. Example: `oci://<bucket_name>@<namespace>/prefix/`.
1581
1581
remove_existing_artifact: (bool, optional). Defaults to `True`.
1582
- Whether artifacts uploaded to object storage bucket need to be removed or not.
1582
+ Wether artifacts uploaded to object storage bucket need to be removed or not.
1583
1583
ignore_conda_error: (bool, optional). Defaults to False.
1584
1584
Parameter to ignore error when collecting conda information.
1585
1585
download_artifact: (bool, optional). Defaults to True.
@@ -1739,7 +1739,7 @@ def from_model_deployment(
1739
1739
The artifact directory to store the files needed for deployment.
1740
1740
Will be created if not exists.
1741
1741
auth: (Dict, optional). Defaults to None.
1742
- The default authentication is set using `ads.set_auth` API. If you need to override the
1742
+ The default authetication is set using `ads.set_auth` API. If you need to override the
1743
1743
default, use the `ads.common.auth.api_keys` or `ads.common.auth.resource_principal` to create appropriate
1744
1744
authentication signer and kwargs required to instantiate IdentityClient object.
1745
1745
force_overwrite: (bool, optional). Defaults to False.
@@ -1751,7 +1751,7 @@ def from_model_deployment(
1751
1751
The `bucket_uri` is only necessary for downloading large artifacts with
1752
1752
size is greater than 2GB. Example: `oci://<bucket_name>@<namespace>/prefix/`.
1753
1753
remove_existing_artifact: (bool, optional). Defaults to `True`.
1754
- Whether artifacts uploaded to object storage bucket need to be removed or not.
1754
+ Wether artifacts uploaded to object storage bucket need to be removed or not.
1755
1755
ignore_conda_error: (bool, optional). Defaults to False.
1756
1756
Parameter to ignore error when collecting conda information.
1757
1757
download_artifact: (bool, optional). Defaults to True.
@@ -1860,7 +1860,7 @@ def update_deployment(
1860
1860
Poll interval in seconds (Defaults to 10).
1861
1861
kwargs:
1862
1862
auth: (Dict, optional). Defaults to `None`.
1863
- The default authentication is set using `ads.set_auth` API.
1863
+ The default authetication is set using `ads.set_auth` API.
1864
1864
If you need to override the default, use the `ads.common.auth.api_keys` or
1865
1865
`ads.common.auth.resource_principal` to create appropriate authentication signer
1866
1866
and kwargs required to instantiate IdentityClient object.
@@ -1937,7 +1937,7 @@ def from_id(
1937
1937
The artifact directory to store the files needed for deployment.
1938
1938
Will be created if not exists.
1939
1939
auth: (Dict, optional). Defaults to None.
1940
- The default authentication is set using `ads.set_auth` API. If you need to override the
1940
+ The default authetication is set using `ads.set_auth` API. If you need to override the
1941
1941
default, use the `ads.common.auth.api_keys` or `ads.common.auth.resource_principal` to create appropriate
1942
1942
authentication signer and kwargs required to instantiate IdentityClient object.
1943
1943
force_overwrite: (bool, optional). Defaults to False.
@@ -1949,7 +1949,7 @@ def from_id(
1949
1949
The `bucket_uri` is only necessary for downloading large artifacts with
1950
1950
size is greater than 2GB. Example: `oci://<bucket_name>@<namespace>/prefix/`.
1951
1951
remove_existing_artifact: (bool, optional). Defaults to `True`.
1952
- Whether artifacts uploaded to object storage bucket need to be removed or not.
1952
+ Wether artifacts uploaded to object storage bucket need to be removed or not.
1953
1953
ignore_conda_error: (bool, optional). Defaults to False.
1954
1954
Parameter to ignore error when collecting conda information.
1955
1955
download_artifact: (bool, optional). Defaults to True.
@@ -2645,7 +2645,7 @@ def prepare_save_deploy(
2645
2645
initial_types: (list[Tuple], optional).
2646
2646
Defaults to None. Only used for SklearnModel, LightGBMModel and XGBoostModel.
2647
2647
Each element is a tuple of a variable name and a type.
2648
- Check this link https ://onnx.ai/sklearn-onnx/api_summary.html#id2 for
2648
+ Check this link http ://onnx.ai/sklearn-onnx/api_summary.html#id2 for
2649
2649
more explanation and examples for `initial_types`.
2650
2650
force_overwrite: (bool, optional). Defaults to False.
2651
2651
Whether to overwrite existing files.
@@ -2719,7 +2719,7 @@ def prepare_save_deploy(
2719
2719
overwrite_existing_artifact: (bool, optional). Defaults to `True`.
2720
2720
Overwrite target bucket artifact if exists.
2721
2721
remove_existing_artifact: (bool, optional). Defaults to `True`.
2722
- Whether artifacts uploaded to object storage bucket need to be removed or not.
2722
+ Wether artifacts uploaded to object storage bucket need to be removed or not.
2723
2723
model_version_set: (Union[str, ModelVersionSet], optional). Defaults to None.
2724
2724
The Model version set OCID, or name, or `ModelVersionSet` instance.
2725
2725
version_label: (str, optional). Defaults to None.
@@ -3008,12 +3008,15 @@ def summary_status(self) -> pd.DataFrame:
3008
3008
return self ._summary_status .df .set_index (["Step" , "Status" , "Details" ])
3009
3009
3010
3010
def update_summary_status (self , detail : str , status : str ):
3011
- """
3011
+ """Update the status in the summary table.
3012
3012
3013
3013
Parameters
3014
3014
----------
3015
- detail
3016
- status
3015
+ detail: (str)
3016
+ value of the detail in the details column of the summary status table. Used to locate which row to update.
3017
+ status: (str)
3018
+ new status to be updated for the row specified by detail.
3019
+
3017
3020
3018
3021
Returns
3019
3022
-------
@@ -3022,12 +3025,14 @@ def update_summary_status(self, detail: str, status: str):
3022
3025
self ._summary_status .update_status (detail = detail , status = status )
3023
3026
3024
3027
def update_summary_action (self , detail : str , action : str ):
3025
- """
3028
+ """Update the actions needed from the user in the summary table.
3026
3029
3027
3030
Parameters
3028
3031
----------
3029
- detail
3030
- action
3032
+ detail: (str)
3033
+ value of the detail in the details column of the summary status table. Used to locate which row to update.
3034
+ action: (str)
3035
+ new action to be updated for the row specified by detail.
3031
3036
3032
3037
Returns
3033
3038
-------
@@ -3169,7 +3174,7 @@ def upload_artifact(
3169
3174
>>> upload_artifact(uri="oci://bucket@namespace/prefix/")
3170
3175
3171
3176
auth: (Dict, optional). Defaults to `None`.
3172
- The default authentication is set using `ads.set_auth` API. If you need to override the
3177
+ The default authetication is set using `ads.set_auth` API. If you need to override the
3173
3178
default, use the `ads.common.auth.api_keys` or `ads.common.auth.resource_principal` to create appropriate
3174
3179
authentication signer and kwargs required to instantiate IdentityClient object.
3175
3180
force_overwrite: bool
@@ -3378,8 +3383,8 @@ def update_action(self, detail: str, action: str) -> None:
3378
3383
----------
3379
3384
detail: (str)
3380
3385
Value of the detail in the Details column. Used to locate which row to update.
3381
- status : (str)
3382
- New status to be updated for the row specified by detail.
3386
+ action : (str)
3387
+ new action to be updated for the row specified by detail.
3383
3388
3384
3389
Returns
3385
3390
-------
0 commit comments