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
Copy file name to clipboardExpand all lines: docs/source/user_guide/model_registration/model_artifact.rst
+19-1Lines changed: 19 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -30,6 +30,7 @@ Auto generation of ``score.py`` with framework specific code for loading models
30
30
31
31
To accomodate for other frameworks that are unknown to ADS, a template code for ``score.py`` is generated in the provided artificat directory location.
32
32
33
+
33
34
Prepare the Model Artifact
34
35
--------------------------
35
36
@@ -98,8 +99,25 @@ ADS automatically captures:
98
99
* ``UseCaseType`` in ``metadata_taxonomy`` cannot be automatically populated. One way to populate the use case is to pass ``use_case_type`` to the ``prepare`` method.
99
100
* Model introspection is automatically triggered.
100
101
101
-
.. include:: _template/score.rst
102
+
Prepare with custom ``score.py``
103
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
104
+
105
+
.. versionadded:: 2.8.4
102
106
107
+
You could provide the location of your own ``score.py`` by ``score_py_uri`` in :py:meth:`~ads.model.GenericModel.prepare`.
108
+
The provided ``score.py`` will be added into model artifact.
0 commit comments