truefoundry 0.5.0rc4__py3-none-any.whl → 0.5.0rc6__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of truefoundry might be problematic. Click here for more details.
- truefoundry/ml/autogen/client/__init__.py +0 -4
- truefoundry/ml/autogen/client/api/deprecated_api.py +340 -7
- truefoundry/ml/autogen/client/api/mlfoundry_artifacts_api.py +0 -322
- truefoundry/ml/autogen/client/api_client.py +8 -1
- truefoundry/ml/autogen/client/models/__init__.py +0 -4
- truefoundry/ml/autogen/client/models/add_features_to_model_version_request_dto.py +3 -17
- truefoundry/ml/autogen/client/models/agent.py +1 -1
- truefoundry/ml/autogen/client/models/agent_app.py +1 -1
- truefoundry/ml/autogen/client/models/agent_open_api_tool.py +1 -1
- truefoundry/ml/autogen/client/models/agent_open_api_tool_with_fqn.py +1 -1
- truefoundry/ml/autogen/client/models/agent_with_fqn.py +1 -1
- truefoundry/ml/autogen/client/models/artifact_version_manifest.py +1 -1
- truefoundry/ml/autogen/client/models/assistant_message.py +1 -1
- truefoundry/ml/autogen/client/models/blob_storage_reference.py +1 -1
- truefoundry/ml/autogen/client/models/chat_prompt.py +1 -1
- truefoundry/ml/autogen/client/models/external_artifact_source.py +1 -1
- truefoundry/ml/autogen/client/models/fast_ai_framework.py +1 -1
- truefoundry/ml/autogen/client/models/gluon_framework.py +1 -1
- truefoundry/ml/autogen/client/models/h2_o_framework.py +1 -1
- truefoundry/ml/autogen/client/models/image_content_part.py +1 -1
- truefoundry/ml/autogen/client/models/keras_framework.py +1 -1
- truefoundry/ml/autogen/client/models/light_gbm_framework.py +1 -1
- truefoundry/ml/autogen/client/models/model_version_dto.py +7 -8
- truefoundry/ml/autogen/client/models/model_version_manifest.py +15 -2
- truefoundry/ml/autogen/client/models/onnx_framework.py +1 -1
- truefoundry/ml/autogen/client/models/paddle_framework.py +1 -1
- truefoundry/ml/autogen/client/models/py_torch_framework.py +1 -1
- truefoundry/ml/autogen/client/models/sklearn_framework.py +1 -1
- truefoundry/ml/autogen/client/models/spa_cy_framework.py +1 -1
- truefoundry/ml/autogen/client/models/stats_models_framework.py +1 -1
- truefoundry/ml/autogen/client/models/system_message.py +1 -1
- truefoundry/ml/autogen/client/models/tensor_flow_framework.py +1 -1
- truefoundry/ml/autogen/client/models/text_content_part.py +1 -1
- truefoundry/ml/autogen/client/models/transformers_framework.py +1 -1
- truefoundry/ml/autogen/client/models/true_foundry_artifact_source.py +1 -1
- truefoundry/ml/autogen/client/models/update_model_version_request_dto.py +1 -13
- truefoundry/ml/autogen/client/models/user_message.py +1 -1
- truefoundry/ml/autogen/client/models/xg_boost_framework.py +1 -1
- truefoundry/ml/autogen/client_README.md +4 -8
- truefoundry/ml/autogen/entities/artifacts.py +5 -1
- truefoundry/ml/autogen/models/__init__.py +4 -0
- truefoundry/ml/autogen/models/exceptions.py +30 -0
- truefoundry/ml/autogen/models/schema.py +1547 -0
- truefoundry/ml/autogen/models/signature.py +139 -0
- truefoundry/ml/autogen/models/utils.py +699 -0
- truefoundry/ml/log_types/artifacts/model.py +25 -0
- truefoundry/ml/mlfoundry_api.py +2 -0
- truefoundry/ml/mlfoundry_run.py +2 -0
- {truefoundry-0.5.0rc4.dist-info → truefoundry-0.5.0rc6.dist-info}/METADATA +1 -1
- {truefoundry-0.5.0rc4.dist-info → truefoundry-0.5.0rc6.dist-info}/RECORD +52 -51
- truefoundry/ml/autogen/client/models/feature_dto.py +0 -68
- truefoundry/ml/autogen/client/models/feature_value_type.py +0 -35
- truefoundry/ml/autogen/client/models/model_schema_dto.py +0 -85
- truefoundry/ml/autogen/client/models/prediction_type.py +0 -34
- {truefoundry-0.5.0rc4.dist-info → truefoundry-0.5.0rc6.dist-info}/WHEEL +0 -0
- {truefoundry-0.5.0rc4.dist-info → truefoundry-0.5.0rc6.dist-info}/entry_points.txt +0 -0
|
@@ -96,6 +96,7 @@ class ModelVersion:
|
|
|
96
96
|
self._deleted = False
|
|
97
97
|
self._description: str = ""
|
|
98
98
|
self._metadata: Dict[str, Any] = {}
|
|
99
|
+
self._model_schema: Optional[Dict[str, Any]] = None
|
|
99
100
|
self._framework: Optional[ModelFrameworkType] = None
|
|
100
101
|
self._set_mutable_attrs()
|
|
101
102
|
|
|
@@ -138,6 +139,9 @@ class ModelVersion:
|
|
|
138
139
|
if self._model_version.manifest:
|
|
139
140
|
self._description = self._model_version.manifest.description or ""
|
|
140
141
|
self._metadata = copy.deepcopy(self._model_version.manifest.metadata)
|
|
142
|
+
self._model_schema = copy.deepcopy(
|
|
143
|
+
self._model_version.manifest.model_schema
|
|
144
|
+
)
|
|
141
145
|
if self._model_version.manifest.framework:
|
|
142
146
|
self._framework = copy.deepcopy(
|
|
143
147
|
self._model_version.manifest.framework.actual_instance
|
|
@@ -150,6 +154,7 @@ class ModelVersion:
|
|
|
150
154
|
self._framework = _ModelFramework.to_model_framework_type(
|
|
151
155
|
self._model_version.model_framework
|
|
152
156
|
)
|
|
157
|
+
self._model_schema = None
|
|
153
158
|
|
|
154
159
|
def _refetch_model_version(self, reset_mutable_attrs: bool = True):
|
|
155
160
|
_model_version = self._mlfoundry_artifacts_api.get_model_version_get(
|
|
@@ -219,6 +224,23 @@ class ModelVersion:
|
|
|
219
224
|
_validate_artifact_metadata(value)
|
|
220
225
|
self._metadata = copy.deepcopy(value)
|
|
221
226
|
|
|
227
|
+
@property
|
|
228
|
+
def model_schema(self) -> Optional[Dict[str, Any]]:
|
|
229
|
+
"""Get model_schema for the current model"""
|
|
230
|
+
return self._model_schema
|
|
231
|
+
|
|
232
|
+
@model_schema.setter
|
|
233
|
+
def model_schema(self, value: Optional[Dict[str, Any]]):
|
|
234
|
+
"""set the model_schema for current model"""
|
|
235
|
+
if not self._model_version.manifest:
|
|
236
|
+
warnings.warn(
|
|
237
|
+
message="This model version was created using an older serialization format. model_schema will not be updated",
|
|
238
|
+
category=DeprecationWarning,
|
|
239
|
+
stacklevel=2,
|
|
240
|
+
)
|
|
241
|
+
return
|
|
242
|
+
self._model_schema = copy.deepcopy(value)
|
|
243
|
+
|
|
222
244
|
@property
|
|
223
245
|
def framework(self) -> Optional["ModelFrameworkType"]:
|
|
224
246
|
"""Get the framework of the model"""
|
|
@@ -416,6 +438,7 @@ class ModelVersion:
|
|
|
416
438
|
if self._model_version.manifest:
|
|
417
439
|
self._model_version.manifest.description = self.description
|
|
418
440
|
self._model_version.manifest.metadata = self.metadata
|
|
441
|
+
self._model_version.manifest.model_schema = self.model_schema
|
|
419
442
|
self._model_version.manifest.framework = (
|
|
420
443
|
Framework.from_dict(self.framework.dict()) if self.framework else None
|
|
421
444
|
)
|
|
@@ -449,6 +472,7 @@ def _log_model_version( # noqa: C901
|
|
|
449
472
|
step: Optional[int] = 0,
|
|
450
473
|
progress: Optional[bool] = None,
|
|
451
474
|
framework: Optional[Union[str, ModelFramework, "ModelFrameworkType"]] = None,
|
|
475
|
+
model_schema: Optional[Dict[str, Any]] = None,
|
|
452
476
|
) -> ModelVersion:
|
|
453
477
|
if (run and mlfoundry_artifacts_api) or (not run and not mlfoundry_artifacts_api):
|
|
454
478
|
raise MlFoundryException(
|
|
@@ -562,6 +586,7 @@ def _log_model_version( # noqa: C901
|
|
|
562
586
|
source=_source_cls.from_dict(source.dict()),
|
|
563
587
|
framework=Framework.from_dict(_framework.dict()) if _framework else None,
|
|
564
588
|
step=step,
|
|
589
|
+
model_schema=model_schema,
|
|
565
590
|
)
|
|
566
591
|
artifact_version_response = mlfoundry_artifacts_api.finalize_artifact_version_post(
|
|
567
592
|
finalize_artifact_version_request_dto=FinalizeArtifactVersionRequestDto(
|
truefoundry/ml/mlfoundry_api.py
CHANGED
|
@@ -1232,6 +1232,7 @@ class MlFoundry:
|
|
|
1232
1232
|
metadata: Optional[Dict[str, Any]] = None,
|
|
1233
1233
|
progress: Optional[bool] = None,
|
|
1234
1234
|
framework: Optional[Union[str, ModelFramework, "ModelFrameworkType"]] = None,
|
|
1235
|
+
model_schema: Optional[Dict[str, Any]] = None,
|
|
1235
1236
|
) -> ModelVersion:
|
|
1236
1237
|
"""
|
|
1237
1238
|
Serialize and log a versioned model under the current ml_repo. Each logged model generates a new version
|
|
@@ -1391,6 +1392,7 @@ class MlFoundry:
|
|
|
1391
1392
|
step=None,
|
|
1392
1393
|
progress=progress,
|
|
1393
1394
|
framework=framework,
|
|
1395
|
+
model_schema=model_schema,
|
|
1394
1396
|
)
|
|
1395
1397
|
logger.info(f"Logged model successfully with fqn {model_version.fqn!r}")
|
|
1396
1398
|
return model_version
|
truefoundry/ml/mlfoundry_run.py
CHANGED
|
@@ -936,6 +936,7 @@ class MlFoundryRun:
|
|
|
936
936
|
step: int = 0,
|
|
937
937
|
progress: Optional[bool] = None,
|
|
938
938
|
framework: Optional[Union[str, ModelFramework, "ModelFrameworkType"]] = None,
|
|
939
|
+
model_schema: Optional[Dict[str, Any]] = None,
|
|
939
940
|
) -> ModelVersion:
|
|
940
941
|
# TODO (chiragjn): Document mapping of framework to list of valid model save kwargs
|
|
941
942
|
# TODO (chiragjn): Add more examples
|
|
@@ -1088,6 +1089,7 @@ class MlFoundryRun:
|
|
|
1088
1089
|
step=step,
|
|
1089
1090
|
progress=progress,
|
|
1090
1091
|
framework=framework,
|
|
1092
|
+
model_schema=model_schema,
|
|
1091
1093
|
)
|
|
1092
1094
|
logger.info(f"Logged model successfully with fqn {model_version.fqn!r}")
|
|
1093
1095
|
return model_version
|
|
@@ -127,43 +127,43 @@ truefoundry/ml/__init__.py,sha256=tcFeEcIgBLR92pUDiu7zDSeI1vsSshlCzuIgnSbyE8E,18
|
|
|
127
127
|
truefoundry/ml/artifact/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
128
128
|
truefoundry/ml/artifact/truefoundry_artifact_repo.py,sha256=VU8i3jnY62MLfzA3rxXuUjdqLz8Yaw4zqqPWSsf0mBg,45850
|
|
129
129
|
truefoundry/ml/autogen/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
130
|
-
truefoundry/ml/autogen/client/__init__.py,sha256=
|
|
130
|
+
truefoundry/ml/autogen/client/__init__.py,sha256=6OSFtyl9gWo28jJvvZV6qzsyT0_X_1nQeReE1YvwsKQ,18893
|
|
131
131
|
truefoundry/ml/autogen/client/api/__init__.py,sha256=NyMBxBmIzB1o5LzZZwz9LiydHB3-hPqc_sevsnY6Jrw,746
|
|
132
132
|
truefoundry/ml/autogen/client/api/auth_api.py,sha256=zpWzJhUmW6HHMY_atlUf0B25k77E1kue2hmix5I5Ih0,7017
|
|
133
|
-
truefoundry/ml/autogen/client/api/deprecated_api.py,sha256=
|
|
133
|
+
truefoundry/ml/autogen/client/api/deprecated_api.py,sha256=mu5x_skNcwz8v1Tr6VP72-tVP7pmBV9muyKy_2NH3F0,38824
|
|
134
134
|
truefoundry/ml/autogen/client/api/experiments_api.py,sha256=mRKS8qGzcFJUpTWjfQoFYm2KI8jTHxBzA0l_foSCLM0,74880
|
|
135
135
|
truefoundry/ml/autogen/client/api/generate_code_snippet_api.py,sha256=C8iABP-pYIyIoTlL8PFi3ZBG_6B_dkQf09eErNeoj7A,22316
|
|
136
136
|
truefoundry/ml/autogen/client/api/health_api.py,sha256=IAPhRAo9CLUT5ipVR1fCf-qDx57UR0wg5ekhtUl8lug,11554
|
|
137
137
|
truefoundry/ml/autogen/client/api/metrics_api.py,sha256=q3L38eD-2hu4_9YvcSdnWDYXD2V8il-X9reinOAABek,14908
|
|
138
|
-
truefoundry/ml/autogen/client/api/mlfoundry_artifacts_api.py,sha256=
|
|
138
|
+
truefoundry/ml/autogen/client/api/mlfoundry_artifacts_api.py,sha256=i9uLXUCuQtiQG15bqutEcGyiE9gDeE_2cebN56iBGk0,299272
|
|
139
139
|
truefoundry/ml/autogen/client/api/run_artifacts_api.py,sha256=x-vVnY2LEFChZxiiFauswRWwFz6Qqh30PKXjzuTvxmc,8799
|
|
140
140
|
truefoundry/ml/autogen/client/api/runs_api.py,sha256=-aghrZ2VYuZOw_vBtOzWDsnK7Ji29oZQxK2CLRgyo2w,119232
|
|
141
|
-
truefoundry/ml/autogen/client/api_client.py,sha256=
|
|
141
|
+
truefoundry/ml/autogen/client/api_client.py,sha256=M31IycWorn10FYS8WbO_Whaipr0tVu2pVWFCfbS7XCo,29167
|
|
142
142
|
truefoundry/ml/autogen/client/api_response.py,sha256=KRyvecPMXF05PaxILHZ8JHoP4rgKBjKONMgG83aU-rM,844
|
|
143
143
|
truefoundry/ml/autogen/client/configuration.py,sha256=V1oaEnxt-NfpaNmp-EZpf2glovzVhM2coWYt8HBNB4M,15723
|
|
144
144
|
truefoundry/ml/autogen/client/exceptions.py,sha256=XbCbDHhYT3BVejdoGNPgEa4oS56ypkwFdxk1iOc_tFY,5355
|
|
145
|
-
truefoundry/ml/autogen/client/models/__init__.py,sha256=
|
|
145
|
+
truefoundry/ml/autogen/client/models/__init__.py,sha256=v5LbkCWeeuytmE6B8QFShtQxJIeXvncENaVG5vGTiPE,17515
|
|
146
146
|
truefoundry/ml/autogen/client/models/add_custom_metrics_to_model_version_request_dto.py,sha256=_ISDspicTGjBCYYXubKfRYYSSQVyW3AvG-jFh47-Zfc,2163
|
|
147
|
-
truefoundry/ml/autogen/client/models/add_features_to_model_version_request_dto.py,sha256=
|
|
148
|
-
truefoundry/ml/autogen/client/models/agent.py,sha256=
|
|
149
|
-
truefoundry/ml/autogen/client/models/agent_app.py,sha256=
|
|
150
|
-
truefoundry/ml/autogen/client/models/agent_open_api_tool.py,sha256=
|
|
151
|
-
truefoundry/ml/autogen/client/models/agent_open_api_tool_with_fqn.py,sha256=
|
|
152
|
-
truefoundry/ml/autogen/client/models/agent_with_fqn.py,sha256=
|
|
147
|
+
truefoundry/ml/autogen/client/models/add_features_to_model_version_request_dto.py,sha256=OT1-98DyWNfAHz_EgD2gMX2XkrGQ4Re945fhoAl8qSE,2099
|
|
148
|
+
truefoundry/ml/autogen/client/models/agent.py,sha256=lUAbs092yo9hZmqzX6atKebDNf1uEwTf5jLvjOdvoeM,3872
|
|
149
|
+
truefoundry/ml/autogen/client/models/agent_app.py,sha256=LK13z4IZLdE63ySz4IICq0Hn_mC02ijqzA_6Bm1mK3w,3666
|
|
150
|
+
truefoundry/ml/autogen/client/models/agent_open_api_tool.py,sha256=pZaKMzo6mB1t9RGI6mbE_NiWr3wzmVwhIeIFOVCR_iY,5024
|
|
151
|
+
truefoundry/ml/autogen/client/models/agent_open_api_tool_with_fqn.py,sha256=QbRhX7bsE8w8okRS2C2q4edkQXaw61AJLt-hHvBJv5w,5122
|
|
152
|
+
truefoundry/ml/autogen/client/models/agent_with_fqn.py,sha256=zYfLximM_vq4lDaw5_DPnYgvkwIHk_VVPp-inC_6_t4,3977
|
|
153
153
|
truefoundry/ml/autogen/client/models/artifact_dto.py,sha256=JWL8_sITJJXbxywcfRj4xqt8jR9pyBmA4TfwNTdX6CE,4243
|
|
154
154
|
truefoundry/ml/autogen/client/models/artifact_response_dto.py,sha256=T_HLjkHnqiO1bnSXiCUOlwDEHGz89mlUNhBq0SJTapo,2226
|
|
155
155
|
truefoundry/ml/autogen/client/models/artifact_type.py,sha256=LBXGYUoesmL5J-0xzCR8jBST3bjb6HY86RmqSGvytRs,828
|
|
156
156
|
truefoundry/ml/autogen/client/models/artifact_version_dto.py,sha256=GXjjKycpsEgJ60V2hAfL4NMxM2gZKLP2qV2yBb9WgdM,6174
|
|
157
|
-
truefoundry/ml/autogen/client/models/artifact_version_manifest.py,sha256=
|
|
157
|
+
truefoundry/ml/autogen/client/models/artifact_version_manifest.py,sha256=EjmUxCLoN8wt-icGXAqd_q6nPwl3yBDwVqKu7kTYiLA,3532
|
|
158
158
|
truefoundry/ml/autogen/client/models/artifact_version_response_dto.py,sha256=JmiSYdPYG-ki6LCBeF7NtihdQ2LPiHld8cSPivY2GmQ,2421
|
|
159
159
|
truefoundry/ml/autogen/client/models/artifact_version_serialization_format.py,sha256=2Qfgq1nykn0_mKNEJzOxhQwHm_95WIr9wJcHLeFWXQM,774
|
|
160
160
|
truefoundry/ml/autogen/client/models/artifact_version_status.py,sha256=iIcomqhuaJkZH2rT3e6IjQutM79t9hEshW-RCIMKHEY,780
|
|
161
|
-
truefoundry/ml/autogen/client/models/assistant_message.py,sha256=
|
|
161
|
+
truefoundry/ml/autogen/client/models/assistant_message.py,sha256=m2Lj8plDuJ8QatY19oOSNE77nxr-WwPE4csBPoAIugY,2846
|
|
162
162
|
truefoundry/ml/autogen/client/models/authorize_user_for_model_request_dto.py,sha256=G00T6eroxZrDw782-UBCQxlkwkxyAPfmvd9QNcMiZDI,2017
|
|
163
163
|
truefoundry/ml/autogen/client/models/authorize_user_for_model_version_request_dto.py,sha256=Cy_7YVK47WMgweWbrSzR8-pb3B0WotriQWrKYdcxhvk,2070
|
|
164
|
-
truefoundry/ml/autogen/client/models/blob_storage_reference.py,sha256=
|
|
164
|
+
truefoundry/ml/autogen/client/models/blob_storage_reference.py,sha256=A6rATKEkYcSSShSInrJtKxwi8GsRuS3JJiq8xi9WFBc,2996
|
|
165
165
|
truefoundry/ml/autogen/client/models/body_get_search_runs_get.py,sha256=aGu5Ah2QB-fnke4joOSAnhD5aO0BFGP3dzZcvSNSe-s,2064
|
|
166
|
-
truefoundry/ml/autogen/client/models/chat_prompt.py,sha256=
|
|
166
|
+
truefoundry/ml/autogen/client/models/chat_prompt.py,sha256=Yq-DP0ur-ECcxcZH5HiKLcNdWtaTNS_WOdA1nGY3lRE,5975
|
|
167
167
|
truefoundry/ml/autogen/client/models/chat_prompt_messages_inner.py,sha256=nk4hWTl1i3IfFbXVE6cSC-z-QxW4m_YAF05wXdUYYCc,5751
|
|
168
168
|
truefoundry/ml/autogen/client/models/columns_dto.py,sha256=bjSjp-DA2YdjohahziETrfMkKNWFAjDL7XQgSUhvNJA,2070
|
|
169
169
|
truefoundry/ml/autogen/client/models/command.py,sha256=q6yFdBsXZkMFCK8DfNx1JmW8WIHY6scvfQL9NUmQWik,4790
|
|
@@ -199,10 +199,8 @@ truefoundry/ml/autogen/client/models/experiment_dto.py,sha256=bl4-Hp1EHl8CEKgWq6
|
|
|
199
199
|
truefoundry/ml/autogen/client/models/experiment_id_request_dto.py,sha256=ZMH827n_UTpDI30UnkuOam-4ANBKCDgocIzI8StxFR8,1891
|
|
200
200
|
truefoundry/ml/autogen/client/models/experiment_response_dto.py,sha256=wuflV6_f8PQq061-wU2GzNY4BZi8SG8ARCIbSQN1oT4,2268
|
|
201
201
|
truefoundry/ml/autogen/client/models/experiment_tag_dto.py,sha256=nEpCkeZ9ficIDkjmmLfkJeNNokd-Rhgr-cepPWG6L3M,1902
|
|
202
|
-
truefoundry/ml/autogen/client/models/external_artifact_source.py,sha256=
|
|
203
|
-
truefoundry/ml/autogen/client/models/fast_ai_framework.py,sha256=
|
|
204
|
-
truefoundry/ml/autogen/client/models/feature_dto.py,sha256=XM7fF71P_bYP3UlO1ILjnD3DJNpf2tGwAWbrkQyvyA4,1924
|
|
205
|
-
truefoundry/ml/autogen/client/models/feature_value_type.py,sha256=3ZKxxEfrrWk8ePlV7n11wa-FdDH0SRLyHRqSvIU7F-M,732
|
|
202
|
+
truefoundry/ml/autogen/client/models/external_artifact_source.py,sha256=h94vLz48yQg5l86V17Ve9PuwMnmkrLJxeDlX_tFOJ48,2361
|
|
203
|
+
truefoundry/ml/autogen/client/models/fast_ai_framework.py,sha256=GwVoMbIzYhr4srFXyFb565qq-_Q-7SkUsjT7zlRGz2k,2171
|
|
206
204
|
truefoundry/ml/autogen/client/models/file_info_dto.py,sha256=7oc8venicsFVk8zT9wHNhHnZGtFkFlqimFnS7ozGL9k,2156
|
|
207
205
|
truefoundry/ml/autogen/client/models/finalize_artifact_version_request_dto.py,sha256=tkPcNjI0_qhX-D3m6AXqLzdmo9_K0tFBtbPDeg0Zo7U,3818
|
|
208
206
|
truefoundry/ml/autogen/client/models/framework.py,sha256=W_KrqH1qKRvlrssCCWFIlmPaeAw0eiM6VqS3pbdlMXU,14720
|
|
@@ -218,16 +216,16 @@ truefoundry/ml/autogen/client/models/get_signed_urls_for_dataset_read_request_dt
|
|
|
218
216
|
truefoundry/ml/autogen/client/models/get_signed_urls_for_dataset_read_response_dto.py,sha256=1EQ33wOq7VpAlt7o-5XCBZ2mpn5GXKrOUfULbp4gA2g,2627
|
|
219
217
|
truefoundry/ml/autogen/client/models/get_signed_urls_for_dataset_write_response_dto.py,sha256=tRud_0Qrr4DtXD1SMSnouVlxrV6WaL5FG2mG626CFZ0,2635
|
|
220
218
|
truefoundry/ml/autogen/client/models/get_tenant_id_response_dto.py,sha256=zEG9rogifl100cOqshYDNJE-faxGF3ayRb1RNWCtaXo,2142
|
|
221
|
-
truefoundry/ml/autogen/client/models/gluon_framework.py,sha256=
|
|
222
|
-
truefoundry/ml/autogen/client/models/h2_o_framework.py,sha256=
|
|
219
|
+
truefoundry/ml/autogen/client/models/gluon_framework.py,sha256=T9ppm2DsubHcAKsKDDaeFjG88tJix6bdduLCfNpYeac,2150
|
|
220
|
+
truefoundry/ml/autogen/client/models/h2_o_framework.py,sha256=5X-0Xbt4tpecV_q6WwGqxGDvfT6Bue30XW0SiSJojXE,2126
|
|
223
221
|
truefoundry/ml/autogen/client/models/http_validation_error.py,sha256=bU-uUlz_qeFba3iHdBT7cHjLu6WZ-JmImYqgZ-kCvxM,2466
|
|
224
|
-
truefoundry/ml/autogen/client/models/image_content_part.py,sha256=
|
|
222
|
+
truefoundry/ml/autogen/client/models/image_content_part.py,sha256=m_LE5XqD_UD0f8jtWt0adRgz_FoLEvgZbCDTSYORnCc,2717
|
|
225
223
|
truefoundry/ml/autogen/client/models/image_url.py,sha256=TN8iEdBUmtKdTFlApUodaC4o6X_Ggd3OSOKVPv7laJE,2170
|
|
226
224
|
truefoundry/ml/autogen/client/models/internal_metadata.py,sha256=6OizrIzA3QxlEnwNFXCZGOMJuUDSYHctl_30q27uBDI,6232
|
|
227
|
-
truefoundry/ml/autogen/client/models/keras_framework.py,sha256=
|
|
225
|
+
truefoundry/ml/autogen/client/models/keras_framework.py,sha256=sBKDT4Dzkvr3Rf7c8YKRbtzaO_KrPNsW8tdWI_n701Q,2150
|
|
228
226
|
truefoundry/ml/autogen/client/models/latest_run_log_dto.py,sha256=wE8T8bANTb9u14Jv7DNyKWekZiUAvrzvTcE_H1cRhn4,2326
|
|
229
227
|
truefoundry/ml/autogen/client/models/library_name.py,sha256=JKmQMgEj6RcmSv68THAcs1gmh3P3CNrgJ_Rh5VWu9Fs,823
|
|
230
|
-
truefoundry/ml/autogen/client/models/light_gbm_framework.py,sha256=
|
|
228
|
+
truefoundry/ml/autogen/client/models/light_gbm_framework.py,sha256=lblWmFUORAKQr4AUynrktlxYNKDEXh2TRrERo40MROk,2195
|
|
231
229
|
truefoundry/ml/autogen/client/models/list_artifact_versions_request_dto.py,sha256=nODOEA-tT8XEJKgUXXjvlzT5ecEwz1b9zu-l3RgQl1o,3622
|
|
232
230
|
truefoundry/ml/autogen/client/models/list_artifact_versions_response_dto.py,sha256=G560h_rGn6-X-cxpuddGU8Fp2eBKXvC3RWcJZdZQJBE,2940
|
|
233
231
|
truefoundry/ml/autogen/client/models/list_artifacts_request_dto.py,sha256=o3Jz3VsAa3aJB3YZ6NI6t8TLLoMGeg64jYYZibeo3Oc,2982
|
|
@@ -260,21 +258,19 @@ truefoundry/ml/autogen/client/models/mime_type.py,sha256=A-N5-Mof_IyHWguXmG67k9w
|
|
|
260
258
|
truefoundry/ml/autogen/client/models/model_configuration.py,sha256=XKhwqO8caQ8w9XRCdb_pAl-84cd_PWkEutjLNSby6hQ,3861
|
|
261
259
|
truefoundry/ml/autogen/client/models/model_dto.py,sha256=TUO74MDqe8XCVJBB2O7TiqiRON8qbE7gi8LNA3uWjYA,4685
|
|
262
260
|
truefoundry/ml/autogen/client/models/model_response_dto.py,sha256=osrTxfygkuhxWj6SkRBALrSnFVPH4LSK6qTufTeZuJg,2163
|
|
263
|
-
truefoundry/ml/autogen/client/models/
|
|
264
|
-
truefoundry/ml/autogen/client/models/
|
|
265
|
-
truefoundry/ml/autogen/client/models/model_version_manifest.py,sha256=uglhFSCDbcp9beh-zKJ8eLxsmfwnMkS1si8_GnWTPI8,3961
|
|
261
|
+
truefoundry/ml/autogen/client/models/model_version_dto.py,sha256=9Mh4d8V33gEGYr4sys5lYYDA3bHKajR3oAZLZMAy_io,7094
|
|
262
|
+
truefoundry/ml/autogen/client/models/model_version_manifest.py,sha256=N5N1tOEc98RbQbXKpVQV_Na8RfZHJZfz67hqWcGRv_4,4263
|
|
266
263
|
truefoundry/ml/autogen/client/models/model_version_response_dto.py,sha256=D6XOCyggxqTkbePuypqYSHYh1PYeDv7R_J32q61sDM0,2320
|
|
267
264
|
truefoundry/ml/autogen/client/models/multi_part_upload_dto.py,sha256=Ckq405vud8RQmMyKCJQJBlW5iXO7Y2mlgo8eVkiMvxg,3738
|
|
268
265
|
truefoundry/ml/autogen/client/models/multi_part_upload_response_dto.py,sha256=VjH0kvl7rMjgDHjYGHnsh7KsZ5-qn-k3ksdGLJ49nIM,2431
|
|
269
266
|
truefoundry/ml/autogen/client/models/multi_part_upload_storage_provider.py,sha256=BA-a-LUi8Q8wTmrExiidRWmCQUAmAqn5qOTwgQM1K6U,796
|
|
270
267
|
truefoundry/ml/autogen/client/models/notify_artifact_version_failure_dto.py,sha256=M5PaBiH0KYigTpmg6Rm6n2nM6I9x6pLjI-oNqY4006o,1897
|
|
271
|
-
truefoundry/ml/autogen/client/models/onnx_framework.py,sha256
|
|
268
|
+
truefoundry/ml/autogen/client/models/onnx_framework.py,sha256=_YoLLcObmeODnHullwJ1D4J8tOp3k5tRr43VkSDUIrw,2138
|
|
272
269
|
truefoundry/ml/autogen/client/models/openapi_spec.py,sha256=jWD8fO4Rjx7NXg-kvJ1KEDT7ysHZcYbQ-EnEk3MxMqs,4961
|
|
273
|
-
truefoundry/ml/autogen/client/models/paddle_framework.py,sha256=
|
|
270
|
+
truefoundry/ml/autogen/client/models/paddle_framework.py,sha256=yLVdBTV2Kl_QZbCFE6u00GB-BVMsZrTeRedEGoHpEmU,2177
|
|
274
271
|
truefoundry/ml/autogen/client/models/param_dto.py,sha256=A8ysdVT16LZDB78Cd18ot2wf6emWNGKPv70IQ6wcEak,1787
|
|
275
272
|
truefoundry/ml/autogen/client/models/parameters.py,sha256=u3DF-XvyZ9w1GgEJ2WCQyYX6RXbkBw7B2yWKTFjVfP4,2736
|
|
276
|
-
truefoundry/ml/autogen/client/models/
|
|
277
|
-
truefoundry/ml/autogen/client/models/py_torch_framework.py,sha256=2sctpFx43y2C_fOh246M7KKHGlujz41KPJJWnOL4hJ0,2182
|
|
273
|
+
truefoundry/ml/autogen/client/models/py_torch_framework.py,sha256=tJXPH9m2gOccQgSK4fcWNRu0ay3r9RNvTz1eyKc-1UA,2183
|
|
278
274
|
truefoundry/ml/autogen/client/models/resolve_agent_app_response_dto.py,sha256=sggWYqC5R_BtH99xne3G_lgZYuyJjT2wozwDtvfB_Vs,2360
|
|
279
275
|
truefoundry/ml/autogen/client/models/restore_run_request_dto.py,sha256=7iBbil4YfaOHJwP0ifPHp-D1Kt-ZiSRjAaVuU7_idhw,1825
|
|
280
276
|
truefoundry/ml/autogen/client/models/run_data_dto.py,sha256=iPFm5f4x2ymRqea6EDZlcjWYN_-f3t9JZckwskXSTKY,3533
|
|
@@ -289,37 +285,42 @@ truefoundry/ml/autogen/client/models/search_runs_response_dto.py,sha256=u0l11v7p
|
|
|
289
285
|
truefoundry/ml/autogen/client/models/set_experiment_tag_request_dto.py,sha256=nrmi_NxLD1fI2gwlpdqFSMnBS11gRkjS4_GQFHgBcXs,2118
|
|
290
286
|
truefoundry/ml/autogen/client/models/set_tag_request_dto.py,sha256=IRgAdMcWBxmjNV6nZJej4pcNfLmZwrelEZ3otwt7eeE,2144
|
|
291
287
|
truefoundry/ml/autogen/client/models/signed_url_dto.py,sha256=9oHoXBj07xTdc04rqOqJO3eOjQWXCyWPhfHg-6qX60w,1897
|
|
292
|
-
truefoundry/ml/autogen/client/models/sklearn_framework.py,sha256=
|
|
288
|
+
truefoundry/ml/autogen/client/models/sklearn_framework.py,sha256=duOKdvUfGlcY9-HueGj8o3mknuMMe1A2-gwPKo6e8As,2188
|
|
293
289
|
truefoundry/ml/autogen/client/models/source.py,sha256=ZG2-3oIs_M8mZNPjoIRPzhHqlm63vLCVQC9idUxQ0XU,5180
|
|
294
290
|
truefoundry/ml/autogen/client/models/source1.py,sha256=io35b9uVzqSvOHw6RlCXxM30thN-vHm1upaSiN2i0II,5183
|
|
295
|
-
truefoundry/ml/autogen/client/models/spa_cy_framework.py,sha256=
|
|
296
|
-
truefoundry/ml/autogen/client/models/stats_models_framework.py,sha256=
|
|
291
|
+
truefoundry/ml/autogen/client/models/spa_cy_framework.py,sha256=Kyrvhdalnl1uQLoPMGMry2PuFGCcQ8AGp4Cx4B9AGXQ,2150
|
|
292
|
+
truefoundry/ml/autogen/client/models/stats_models_framework.py,sha256=p6isf4NlvzL_-WO-YVNclG6i40FP890PSAKQ-VmHgA4,2231
|
|
297
293
|
truefoundry/ml/autogen/client/models/stop.py,sha256=UlAjRWI6Gjc92D2UME6qRAIfd6GoDI3VBWYkJqgixmU,4760
|
|
298
294
|
truefoundry/ml/autogen/client/models/store_run_logs_request_dto.py,sha256=Cfm95a9T4fDiARBJ9vd3n9Pv7QI69TSVKWi0AG_cmvs,2591
|
|
299
295
|
truefoundry/ml/autogen/client/models/subject.py,sha256=gG1pRl6lPEI1_td2sb752vJeKMKgLWDaoFwepnS4zIQ,2415
|
|
300
296
|
truefoundry/ml/autogen/client/models/subject_type.py,sha256=TOhgDmWSy67NjBCTSbwtF2-cBBB2-FoLJVFDVpJRrsQ,710
|
|
301
|
-
truefoundry/ml/autogen/client/models/system_message.py,sha256=
|
|
302
|
-
truefoundry/ml/autogen/client/models/tensor_flow_framework.py,sha256=
|
|
297
|
+
truefoundry/ml/autogen/client/models/system_message.py,sha256=2sPSNrDuz5elg_AG009CTe0E3HOFxAXtRKCK_Xp5CPw,2802
|
|
298
|
+
truefoundry/ml/autogen/client/models/tensor_flow_framework.py,sha256=jsAtqm2rMuiQyR7vVNDTLXDqpIPKsXEOH2WLRGE-POw,2219
|
|
303
299
|
truefoundry/ml/autogen/client/models/text.py,sha256=HAIK-w_TxB1kXGvVNK1d2cweoQi-GJ9d-0QSZl21u68,4862
|
|
304
|
-
truefoundry/ml/autogen/client/models/text_content_part.py,sha256=
|
|
305
|
-
truefoundry/ml/autogen/client/models/transformers_framework.py,sha256=
|
|
300
|
+
truefoundry/ml/autogen/client/models/text_content_part.py,sha256=IgJ5exYltwJdJUBdOxMr3VtjF6x9qbyA_4mTPDZ4QCY,2493
|
|
301
|
+
truefoundry/ml/autogen/client/models/transformers_framework.py,sha256=NNsTWMXmQyk5pCFowAIIgIs-_Iaht05RK-8-fUcQk18,3204
|
|
306
302
|
truefoundry/ml/autogen/client/models/trigger_job_run_config_request_dto.py,sha256=1HtO6zfW6Ulq8Gm_UL0YqVrse0795vZkMxgCQ0GKD9w,2864
|
|
307
303
|
truefoundry/ml/autogen/client/models/trigger_job_run_config_response_dto.py,sha256=P35xzE8MyS_HtxCcXC9fZORPX2wbf93LbCZCRggkQxw,2144
|
|
308
|
-
truefoundry/ml/autogen/client/models/true_foundry_artifact_source.py,sha256=
|
|
304
|
+
truefoundry/ml/autogen/client/models/true_foundry_artifact_source.py,sha256=LihHK1hS5sivJ6EtV1TsYU9ATYgSNDhg10Vhq6ypEG4,2457
|
|
309
305
|
truefoundry/ml/autogen/client/models/update_artifact_version_request_dto.py,sha256=nBcEe5aCIvqKz_iIeegkDKsOedSTq6-ahlC_GAwxkO4,2766
|
|
310
306
|
truefoundry/ml/autogen/client/models/update_dataset_request_dto.py,sha256=MF-rjJGUP6sDZVH3xP4Q8AEC9CV2PXEO9cXrR6yK57A,2182
|
|
311
307
|
truefoundry/ml/autogen/client/models/update_experiment_request_dto.py,sha256=QE_kZzTDdiXKtQ2U-zbI_gb5vxS5Yv9YupYvD22RkFs,2198
|
|
312
|
-
truefoundry/ml/autogen/client/models/update_model_version_request_dto.py,sha256=
|
|
308
|
+
truefoundry/ml/autogen/client/models/update_model_version_request_dto.py,sha256=GeEprpAgPvCnQe5yjmpofL7WBE0EhEHtFPIwj4jFCI4,2907
|
|
313
309
|
truefoundry/ml/autogen/client/models/update_run_request_dto.py,sha256=fn4VB4Zlllr6Bt_l3aYkkHxAkU9w7vtcqu4iw8BvQWY,2318
|
|
314
310
|
truefoundry/ml/autogen/client/models/update_run_response_dto.py,sha256=wolIFiihGZCBBkuj7mJEYCmGAOqDLFo_bNLcH4LeXSo,2231
|
|
315
311
|
truefoundry/ml/autogen/client/models/url.py,sha256=zMyOmdVkp1ANnQnc9GrHt42xlVwES7FTjrpOp_OtHqo,4953
|
|
316
|
-
truefoundry/ml/autogen/client/models/user_message.py,sha256=
|
|
312
|
+
truefoundry/ml/autogen/client/models/user_message.py,sha256=3TEM8qH_zT3dgM197bl44uV7m20IWn6sWeLGfStsN90,2784
|
|
317
313
|
truefoundry/ml/autogen/client/models/validation_error.py,sha256=mFjwoc8g2-Usu1HXZhOQKQ4TGvLy4lwCzk8dHrJ69aA,2597
|
|
318
314
|
truefoundry/ml/autogen/client/models/validation_error_loc_inner.py,sha256=nThJ5Gmy8W2Wok-ZOI4sK7uRe1BAkLS0qzq-XZbq8zs,4915
|
|
319
|
-
truefoundry/ml/autogen/client/models/xg_boost_framework.py,sha256=
|
|
315
|
+
truefoundry/ml/autogen/client/models/xg_boost_framework.py,sha256=kC5P2rCw4Wp9v2Vok8X6y_kONznJMohrzLIfN6J17lY,2183
|
|
320
316
|
truefoundry/ml/autogen/client/rest.py,sha256=9goba8qHjQuVx5O_yRaTKu7PvBnb7r7swfy3dwuTEgk,14281
|
|
321
|
-
truefoundry/ml/autogen/client_README.md,sha256=
|
|
322
|
-
truefoundry/ml/autogen/entities/artifacts.py,sha256=
|
|
317
|
+
truefoundry/ml/autogen/client_README.md,sha256=3qPxCLIRf16kGgRP-cXgmpr3KutjLTddIdKUQpJPTpg,35393
|
|
318
|
+
truefoundry/ml/autogen/entities/artifacts.py,sha256=EbGDmD0npfa5BSHau67Y8-dSk6qPJJlJX3I3N4kqAgA,17326
|
|
319
|
+
truefoundry/ml/autogen/models/__init__.py,sha256=--TGRea9SQBWFfwtcl3ekb1XGfFTdEkQGSG8a2SJ60I,187
|
|
320
|
+
truefoundry/ml/autogen/models/exceptions.py,sha256=q3n7FGBrg_hUy1UyoefhMnhcXUAaqXlLIGHoOVzn_d8,1390
|
|
321
|
+
truefoundry/ml/autogen/models/schema.py,sha256=IhpO9qbygLqEamP3NIt3m90SseJXCOm1ZTqNbNbW-M0,55772
|
|
322
|
+
truefoundry/ml/autogen/models/signature.py,sha256=EppDGjws10CTatxcTBTuT-b3jJX9lmR6ZX98eC6PB5w,4942
|
|
323
|
+
truefoundry/ml/autogen/models/utils.py,sha256=Z52SnAF7UL7uluNtA_VXuB9iPju-q9bpTTFJnUh0ZTQ,24289
|
|
323
324
|
truefoundry/ml/cli/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
324
325
|
truefoundry/ml/cli/cli.py,sha256=ckBcjUpqfhgrPE1okqT_G2iouOLt-0KjpLhHp2YdVFU,256
|
|
325
326
|
truefoundry/ml/cli/commands/__init__.py,sha256=diDUiRUX4l6TtNLI4iF-ZblczkELM7FRViJ-8gGNJQY,82
|
|
@@ -339,7 +340,7 @@ truefoundry/ml/log_types/artifacts/artifact.py,sha256=6X4lO23DwM7yTgUOY4RRoYMrf9
|
|
|
339
340
|
truefoundry/ml/log_types/artifacts/constants.py,sha256=qKxQ5mMvJE4j83BvGW3qNTKunxCiBg_EEjTdgbgJtyE,1036
|
|
340
341
|
truefoundry/ml/log_types/artifacts/dataset.py,sha256=a4dxd2EN8p7Ci-cLGGiDOboN3t0395_XhWE1dmTw1Q4,13112
|
|
341
342
|
truefoundry/ml/log_types/artifacts/general_artifact.py,sha256=B4XErLr-m6RmQWtxMTu3wlFRFcqSwPYp6J0OL4Ng6L0,3179
|
|
342
|
-
truefoundry/ml/log_types/artifacts/model.py,sha256=
|
|
343
|
+
truefoundry/ml/log_types/artifacts/model.py,sha256=PZgqRO8NImvU7yfdjldqJ4Z3ow47GMnSL0A1DeE2DYk,22511
|
|
343
344
|
truefoundry/ml/log_types/artifacts/model_extras.py,sha256=TIE73bLKfwIVzNiVcjmaZ841A70BHBwu4XAM6ZAQRFI,1045
|
|
344
345
|
truefoundry/ml/log_types/artifacts/utils.py,sha256=3FVOYlfcvZiW8vTbMe7Ft1cjNPR2GW7J69M3dyAY-qc,6299
|
|
345
346
|
truefoundry/ml/log_types/image/__init__.py,sha256=fcOq8yQnNj1rkLcPeIjLXBpdA1WIeiPsXOlAAvMxx7M,76
|
|
@@ -351,8 +352,8 @@ truefoundry/ml/log_types/plot.py,sha256=HuYvvRA5r8V0xAIuuqMME2IHb9d3SfGHUiuEkOP3
|
|
|
351
352
|
truefoundry/ml/log_types/pydantic_base.py,sha256=eBlw_AEyAz4iJKDP4zgJOCFWcldwQqpf7FADW1jzIQY,272
|
|
352
353
|
truefoundry/ml/log_types/utils.py,sha256=xjJ21jdPScvFmw3TbVh5NCzbzJwaqiXJyiiT4xxX1EI,335
|
|
353
354
|
truefoundry/ml/logger.py,sha256=VT-BF3BnBYTWVq87O58F0c8uXMu94gYzsiFlGY3_7Ao,458
|
|
354
|
-
truefoundry/ml/mlfoundry_api.py,sha256=
|
|
355
|
-
truefoundry/ml/mlfoundry_run.py,sha256=
|
|
355
|
+
truefoundry/ml/mlfoundry_api.py,sha256=_LAXCBu1A-xg8fD3qzjQv9YlghEbSgYe6rQB0YgvXGQ,62111
|
|
356
|
+
truefoundry/ml/mlfoundry_run.py,sha256=jLeDz9raUPKjXGH4PPAFel3Zg030iUWB_QP7FeW0DE0,46282
|
|
356
357
|
truefoundry/ml/model_framework.py,sha256=TosB73eEpTRlsh6v1AY_LnnW_4OoaSlzENnBXqkVRl4,4778
|
|
357
358
|
truefoundry/ml/run_utils.py,sha256=0W208wSLUrbdfk2pjNcZlkUi9bNxG2JORqoe-5rVqHI,2423
|
|
358
359
|
truefoundry/ml/session.py,sha256=F83GTC5WwGBjnJ69Ct8MqMnlutYc56JCc6YhEY1Wl-A,5394
|
|
@@ -374,7 +375,7 @@ truefoundry/workflow/remote_filesystem/tfy_signed_url_client.py,sha256=5mBCIc-ON
|
|
|
374
375
|
truefoundry/workflow/remote_filesystem/tfy_signed_url_fs.py,sha256=Hf6Dk6Fu6P7DqsK5ULgraf9DStjgigf-kjaRAMBW-RU,8680
|
|
375
376
|
truefoundry/workflow/task.py,sha256=ToitYiKcNzFCtOVQwz1W8sRjbR97eVS7vQBdbgUQtKg,1779
|
|
376
377
|
truefoundry/workflow/workflow.py,sha256=WaTqUjhwfAXDWu4E5ehuwAxrCbDJkoAf1oWmR2E9Qy0,4575
|
|
377
|
-
truefoundry-0.5.
|
|
378
|
-
truefoundry-0.5.
|
|
379
|
-
truefoundry-0.5.
|
|
380
|
-
truefoundry-0.5.
|
|
378
|
+
truefoundry-0.5.0rc6.dist-info/METADATA,sha256=uBUgaLgGtMVJfYQnnyciAnXSX-X5Qf1PV1jt5ILZNR8,3102
|
|
379
|
+
truefoundry-0.5.0rc6.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
|
|
380
|
+
truefoundry-0.5.0rc6.dist-info/entry_points.txt,sha256=TXvUxQkI6zmqJuycPsyxEIMr3oqfDjgrWj0m_9X12x4,95
|
|
381
|
+
truefoundry-0.5.0rc6.dist-info/RECORD,,
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
# coding: utf-8
|
|
2
|
-
|
|
3
|
-
"""
|
|
4
|
-
FastAPI
|
|
5
|
-
|
|
6
|
-
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
-
|
|
8
|
-
The version of the OpenAPI document: 0.1.0
|
|
9
|
-
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
-
|
|
11
|
-
Do not edit the class manually.
|
|
12
|
-
""" # noqa: E501
|
|
13
|
-
|
|
14
|
-
from __future__ import annotations
|
|
15
|
-
|
|
16
|
-
import json
|
|
17
|
-
import pprint
|
|
18
|
-
import re # noqa: F401
|
|
19
|
-
from typing import Optional
|
|
20
|
-
|
|
21
|
-
from truefoundry.ml.autogen.client.models.feature_value_type import FeatureValueType
|
|
22
|
-
from truefoundry.pydantic_v1 import BaseModel, StrictStr
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
class FeatureDto(BaseModel):
|
|
26
|
-
"""
|
|
27
|
-
FeatureDto
|
|
28
|
-
"""
|
|
29
|
-
|
|
30
|
-
name: Optional[StrictStr] = None
|
|
31
|
-
type: Optional[FeatureValueType] = None
|
|
32
|
-
__properties = ["name", "type"]
|
|
33
|
-
|
|
34
|
-
class Config:
|
|
35
|
-
"""Pydantic configuration"""
|
|
36
|
-
|
|
37
|
-
allow_population_by_field_name = True
|
|
38
|
-
validate_assignment = True
|
|
39
|
-
|
|
40
|
-
def to_str(self) -> str:
|
|
41
|
-
"""Returns the string representation of the model using alias"""
|
|
42
|
-
return pprint.pformat(self.dict(by_alias=True))
|
|
43
|
-
|
|
44
|
-
def to_json(self) -> str:
|
|
45
|
-
"""Returns the JSON representation of the model using alias"""
|
|
46
|
-
return json.dumps(self.to_dict())
|
|
47
|
-
|
|
48
|
-
@classmethod
|
|
49
|
-
def from_json(cls, json_str: str) -> FeatureDto:
|
|
50
|
-
"""Create an instance of FeatureDto from a JSON string"""
|
|
51
|
-
return cls.from_dict(json.loads(json_str))
|
|
52
|
-
|
|
53
|
-
def to_dict(self):
|
|
54
|
-
"""Returns the dictionary representation of the model using alias"""
|
|
55
|
-
_dict = self.dict(by_alias=True, exclude={}, exclude_none=True)
|
|
56
|
-
return _dict
|
|
57
|
-
|
|
58
|
-
@classmethod
|
|
59
|
-
def from_dict(cls, obj: dict) -> FeatureDto:
|
|
60
|
-
"""Create an instance of FeatureDto from a dict"""
|
|
61
|
-
if obj is None:
|
|
62
|
-
return None
|
|
63
|
-
|
|
64
|
-
if not isinstance(obj, dict):
|
|
65
|
-
return FeatureDto.parse_obj(obj)
|
|
66
|
-
|
|
67
|
-
_obj = FeatureDto.parse_obj({"name": obj.get("name"), "type": obj.get("type")})
|
|
68
|
-
return _obj
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
# coding: utf-8
|
|
2
|
-
|
|
3
|
-
"""
|
|
4
|
-
FastAPI
|
|
5
|
-
|
|
6
|
-
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
-
|
|
8
|
-
The version of the OpenAPI document: 0.1.0
|
|
9
|
-
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
-
|
|
11
|
-
Do not edit the class manually.
|
|
12
|
-
""" # noqa: E501
|
|
13
|
-
|
|
14
|
-
import json
|
|
15
|
-
import re # noqa: F401
|
|
16
|
-
|
|
17
|
-
from aenum import Enum
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
class FeatureValueType(str, Enum):
|
|
21
|
-
"""
|
|
22
|
-
An enumeration.
|
|
23
|
-
"""
|
|
24
|
-
|
|
25
|
-
"""
|
|
26
|
-
allowed enum values
|
|
27
|
-
"""
|
|
28
|
-
INT = "int"
|
|
29
|
-
FLOAT = "float"
|
|
30
|
-
STRING = "string"
|
|
31
|
-
|
|
32
|
-
@classmethod
|
|
33
|
-
def from_json(cls, json_str: str) -> FeatureValueType:
|
|
34
|
-
"""Create an instance of FeatureValueType from a JSON string"""
|
|
35
|
-
return FeatureValueType(json.loads(json_str))
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
# coding: utf-8
|
|
2
|
-
|
|
3
|
-
"""
|
|
4
|
-
FastAPI
|
|
5
|
-
|
|
6
|
-
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
-
|
|
8
|
-
The version of the OpenAPI document: 0.1.0
|
|
9
|
-
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
-
|
|
11
|
-
Do not edit the class manually.
|
|
12
|
-
""" # noqa: E501
|
|
13
|
-
|
|
14
|
-
from __future__ import annotations
|
|
15
|
-
|
|
16
|
-
import json
|
|
17
|
-
import pprint
|
|
18
|
-
import re # noqa: F401
|
|
19
|
-
from typing import Optional
|
|
20
|
-
|
|
21
|
-
from truefoundry.ml.autogen.client.models.feature_dto import FeatureDto
|
|
22
|
-
from truefoundry.ml.autogen.client.models.prediction_type import PredictionType
|
|
23
|
-
from truefoundry.pydantic_v1 import BaseModel, conlist
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
class ModelSchemaDto(BaseModel):
|
|
27
|
-
"""
|
|
28
|
-
ModelSchemaDto
|
|
29
|
-
"""
|
|
30
|
-
|
|
31
|
-
features: Optional[conlist(FeatureDto)] = None
|
|
32
|
-
prediction: Optional[PredictionType] = None
|
|
33
|
-
__properties = ["features", "prediction"]
|
|
34
|
-
|
|
35
|
-
class Config:
|
|
36
|
-
"""Pydantic configuration"""
|
|
37
|
-
|
|
38
|
-
allow_population_by_field_name = True
|
|
39
|
-
validate_assignment = True
|
|
40
|
-
|
|
41
|
-
def to_str(self) -> str:
|
|
42
|
-
"""Returns the string representation of the model using alias"""
|
|
43
|
-
return pprint.pformat(self.dict(by_alias=True))
|
|
44
|
-
|
|
45
|
-
def to_json(self) -> str:
|
|
46
|
-
"""Returns the JSON representation of the model using alias"""
|
|
47
|
-
return json.dumps(self.to_dict())
|
|
48
|
-
|
|
49
|
-
@classmethod
|
|
50
|
-
def from_json(cls, json_str: str) -> ModelSchemaDto:
|
|
51
|
-
"""Create an instance of ModelSchemaDto from a JSON string"""
|
|
52
|
-
return cls.from_dict(json.loads(json_str))
|
|
53
|
-
|
|
54
|
-
def to_dict(self):
|
|
55
|
-
"""Returns the dictionary representation of the model using alias"""
|
|
56
|
-
_dict = self.dict(by_alias=True, exclude={}, exclude_none=True)
|
|
57
|
-
# override the default output from truefoundry.pydantic_v1 by calling `to_dict()` of each item in features (list)
|
|
58
|
-
_items = []
|
|
59
|
-
if self.features:
|
|
60
|
-
for _item in self.features:
|
|
61
|
-
if _item:
|
|
62
|
-
_items.append(_item.to_dict())
|
|
63
|
-
_dict["features"] = _items
|
|
64
|
-
return _dict
|
|
65
|
-
|
|
66
|
-
@classmethod
|
|
67
|
-
def from_dict(cls, obj: dict) -> ModelSchemaDto:
|
|
68
|
-
"""Create an instance of ModelSchemaDto from a dict"""
|
|
69
|
-
if obj is None:
|
|
70
|
-
return None
|
|
71
|
-
|
|
72
|
-
if not isinstance(obj, dict):
|
|
73
|
-
return ModelSchemaDto.parse_obj(obj)
|
|
74
|
-
|
|
75
|
-
_obj = ModelSchemaDto.parse_obj(
|
|
76
|
-
{
|
|
77
|
-
"features": [
|
|
78
|
-
FeatureDto.from_dict(_item) for _item in obj.get("features")
|
|
79
|
-
]
|
|
80
|
-
if obj.get("features") is not None
|
|
81
|
-
else None,
|
|
82
|
-
"prediction": obj.get("prediction"),
|
|
83
|
-
}
|
|
84
|
-
)
|
|
85
|
-
return _obj
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
# coding: utf-8
|
|
2
|
-
|
|
3
|
-
"""
|
|
4
|
-
FastAPI
|
|
5
|
-
|
|
6
|
-
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
-
|
|
8
|
-
The version of the OpenAPI document: 0.1.0
|
|
9
|
-
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
-
|
|
11
|
-
Do not edit the class manually.
|
|
12
|
-
""" # noqa: E501
|
|
13
|
-
|
|
14
|
-
import json
|
|
15
|
-
import re # noqa: F401
|
|
16
|
-
|
|
17
|
-
from aenum import Enum
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
class PredictionType(str, Enum):
|
|
21
|
-
"""
|
|
22
|
-
An enumeration.
|
|
23
|
-
"""
|
|
24
|
-
|
|
25
|
-
"""
|
|
26
|
-
allowed enum values
|
|
27
|
-
"""
|
|
28
|
-
CATEGORICAL = "categorical"
|
|
29
|
-
NUMERIC = "numeric"
|
|
30
|
-
|
|
31
|
-
@classmethod
|
|
32
|
-
def from_json(cls, json_str: str) -> PredictionType:
|
|
33
|
-
"""Create an instance of PredictionType from a JSON string"""
|
|
34
|
-
return PredictionType(json.loads(json_str))
|
|
File without changes
|
|
File without changes
|