truefoundry 0.3.3__py3-none-any.whl → 0.4.0.dev0__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/cli/__main__.py +3 -17
- truefoundry/common/__init__.py +0 -0
- truefoundry/common/request_utils.py +56 -0
- truefoundry/deploy/cli/cli.py +1 -1
- truefoundry/deploy/lib/auth/credential_provider.py +2 -12
- truefoundry/deploy/lib/clients/servicefoundry_client.py +0 -9
- truefoundry/deploy/lib/exceptions.py +1 -6
- truefoundry/deploy/lib/session.py +1 -16
- truefoundry/langchain/truefoundry_chat.py +1 -1
- truefoundry/langchain/truefoundry_embeddings.py +1 -1
- truefoundry/langchain/truefoundry_llm.py +1 -1
- truefoundry/langchain/utils.py +0 -41
- truefoundry/ml/__init__.py +46 -6
- truefoundry/ml/artifact/__init__.py +0 -0
- truefoundry/ml/artifact/truefoundry_artifact_repo.py +1120 -0
- truefoundry/ml/autogen/__init__.py +0 -0
- truefoundry/ml/autogen/client/__init__.py +373 -0
- truefoundry/ml/autogen/client/api/__init__.py +16 -0
- truefoundry/ml/autogen/client/api/auth_api.py +184 -0
- truefoundry/ml/autogen/client/api/deprecated_api.py +605 -0
- truefoundry/ml/autogen/client/api/experiments_api.py +2109 -0
- truefoundry/ml/autogen/client/api/health_api.py +299 -0
- truefoundry/ml/autogen/client/api/metrics_api.py +371 -0
- truefoundry/ml/autogen/client/api/mlfoundry_artifacts_api.py +7213 -0
- truefoundry/ml/autogen/client/api/python_deployment_config_api.py +201 -0
- truefoundry/ml/autogen/client/api/run_artifacts_api.py +231 -0
- truefoundry/ml/autogen/client/api/runs_api.py +2919 -0
- truefoundry/ml/autogen/client/api_client.py +822 -0
- truefoundry/ml/autogen/client/api_response.py +30 -0
- truefoundry/ml/autogen/client/configuration.py +489 -0
- truefoundry/ml/autogen/client/exceptions.py +161 -0
- truefoundry/ml/autogen/client/models/__init__.py +344 -0
- truefoundry/ml/autogen/client/models/add_custom_metrics_to_model_version_request_dto.py +69 -0
- truefoundry/ml/autogen/client/models/add_features_to_model_version_request_dto.py +83 -0
- truefoundry/ml/autogen/client/models/agent.py +125 -0
- truefoundry/ml/autogen/client/models/agent_app.py +118 -0
- truefoundry/ml/autogen/client/models/agent_open_api_tool.py +143 -0
- truefoundry/ml/autogen/client/models/agent_open_api_tool_with_fqn.py +144 -0
- truefoundry/ml/autogen/client/models/agent_with_fqn.py +127 -0
- truefoundry/ml/autogen/client/models/artifact_dto.py +115 -0
- truefoundry/ml/autogen/client/models/artifact_response_dto.py +75 -0
- truefoundry/ml/autogen/client/models/artifact_type.py +39 -0
- truefoundry/ml/autogen/client/models/artifact_version_dto.py +141 -0
- truefoundry/ml/autogen/client/models/artifact_version_response_dto.py +77 -0
- truefoundry/ml/autogen/client/models/artifact_version_status.py +35 -0
- truefoundry/ml/autogen/client/models/assistant_message.py +89 -0
- truefoundry/ml/autogen/client/models/authorize_user_for_model_request_dto.py +69 -0
- truefoundry/ml/autogen/client/models/authorize_user_for_model_version_request_dto.py +69 -0
- truefoundry/ml/autogen/client/models/backfill_default_storage_integration_id_request_dto.py +67 -0
- truefoundry/ml/autogen/client/models/blob_storage_reference.py +93 -0
- truefoundry/ml/autogen/client/models/body_get_search_runs_get.py +72 -0
- truefoundry/ml/autogen/client/models/chat_prompt.py +156 -0
- truefoundry/ml/autogen/client/models/chat_prompt_messages_inner.py +171 -0
- truefoundry/ml/autogen/client/models/columns_dto.py +73 -0
- truefoundry/ml/autogen/client/models/content.py +153 -0
- truefoundry/ml/autogen/client/models/content1.py +153 -0
- truefoundry/ml/autogen/client/models/content2.py +174 -0
- truefoundry/ml/autogen/client/models/content2_any_of_inner.py +150 -0
- truefoundry/ml/autogen/client/models/create_artifact_request_dto.py +74 -0
- truefoundry/ml/autogen/client/models/create_artifact_response_dto.py +66 -0
- truefoundry/ml/autogen/client/models/create_artifact_version_request_dto.py +74 -0
- truefoundry/ml/autogen/client/models/create_artifact_version_response_dto.py +66 -0
- truefoundry/ml/autogen/client/models/create_dataset_request_dto.py +76 -0
- truefoundry/ml/autogen/client/models/create_experiment_request_dto.py +94 -0
- truefoundry/ml/autogen/client/models/create_experiment_response_dto.py +67 -0
- truefoundry/ml/autogen/client/models/create_model_version_request_dto.py +95 -0
- truefoundry/ml/autogen/client/models/create_multi_part_upload_for_dataset_request_dto.py +73 -0
- truefoundry/ml/autogen/client/models/create_multi_part_upload_for_dataset_response_dto.py +79 -0
- truefoundry/ml/autogen/client/models/create_multi_part_upload_request_dto.py +73 -0
- truefoundry/ml/autogen/client/models/create_python_deployment_config_request_dto.py +72 -0
- truefoundry/ml/autogen/client/models/create_python_deployment_config_response_dto.py +68 -0
- truefoundry/ml/autogen/client/models/create_run_request_dto.py +97 -0
- truefoundry/ml/autogen/client/models/create_run_response_dto.py +76 -0
- truefoundry/ml/autogen/client/models/dataset_dto.py +112 -0
- truefoundry/ml/autogen/client/models/dataset_response_dto.py +75 -0
- truefoundry/ml/autogen/client/models/delete_artifact_versions_request_dto.py +65 -0
- truefoundry/ml/autogen/client/models/delete_dataset_request_dto.py +74 -0
- truefoundry/ml/autogen/client/models/delete_model_version_request_dto.py +65 -0
- truefoundry/ml/autogen/client/models/delete_run_request.py +65 -0
- truefoundry/ml/autogen/client/models/delete_tag_request_dto.py +68 -0
- truefoundry/ml/autogen/client/models/experiment_dto.py +127 -0
- truefoundry/ml/autogen/client/models/experiment_id_request_dto.py +67 -0
- truefoundry/ml/autogen/client/models/experiment_response_dto.py +75 -0
- truefoundry/ml/autogen/client/models/experiment_tag_dto.py +69 -0
- truefoundry/ml/autogen/client/models/feature_dto.py +68 -0
- truefoundry/ml/autogen/client/models/feature_value_type.py +35 -0
- truefoundry/ml/autogen/client/models/file_info_dto.py +76 -0
- truefoundry/ml/autogen/client/models/finalize_artifact_version_request_dto.py +101 -0
- truefoundry/ml/autogen/client/models/get_experiment_response_dto.py +88 -0
- truefoundry/ml/autogen/client/models/get_latest_run_log_response_dto.py +76 -0
- truefoundry/ml/autogen/client/models/get_metric_history_response.py +79 -0
- truefoundry/ml/autogen/client/models/get_signed_url_for_dataset_write_request_dto.py +68 -0
- truefoundry/ml/autogen/client/models/get_signed_urls_for_artifact_version_read_request_dto.py +68 -0
- truefoundry/ml/autogen/client/models/get_signed_urls_for_artifact_version_read_response_dto.py +81 -0
- truefoundry/ml/autogen/client/models/get_signed_urls_for_artifact_version_write_request_dto.py +69 -0
- truefoundry/ml/autogen/client/models/get_signed_urls_for_artifact_version_write_response_dto.py +83 -0
- truefoundry/ml/autogen/client/models/get_signed_urls_for_dataset_read_request_dto.py +68 -0
- truefoundry/ml/autogen/client/models/get_signed_urls_for_dataset_read_response_dto.py +81 -0
- truefoundry/ml/autogen/client/models/get_signed_urls_for_dataset_write_response_dto.py +81 -0
- truefoundry/ml/autogen/client/models/get_tenant_id_response_dto.py +74 -0
- truefoundry/ml/autogen/client/models/http_validation_error.py +82 -0
- truefoundry/ml/autogen/client/models/image_content_part.py +87 -0
- truefoundry/ml/autogen/client/models/image_url.py +75 -0
- truefoundry/ml/autogen/client/models/internal_metadata.py +180 -0
- truefoundry/ml/autogen/client/models/latest_run_log_dto.py +78 -0
- truefoundry/ml/autogen/client/models/list_artifact_versions_request_dto.py +107 -0
- truefoundry/ml/autogen/client/models/list_artifact_versions_response_dto.py +87 -0
- truefoundry/ml/autogen/client/models/list_artifacts_request_dto.py +96 -0
- truefoundry/ml/autogen/client/models/list_artifacts_response_dto.py +86 -0
- truefoundry/ml/autogen/client/models/list_colums_response_dto.py +75 -0
- truefoundry/ml/autogen/client/models/list_datasets_request_dto.py +78 -0
- truefoundry/ml/autogen/client/models/list_datasets_response_dto.py +86 -0
- truefoundry/ml/autogen/client/models/list_experiments_response_dto.py +86 -0
- truefoundry/ml/autogen/client/models/list_files_for_artifact_version_request_dto.py +76 -0
- truefoundry/ml/autogen/client/models/list_files_for_artifact_versions_response_dto.py +82 -0
- truefoundry/ml/autogen/client/models/list_files_for_dataset_request_dto.py +76 -0
- truefoundry/ml/autogen/client/models/list_files_for_dataset_response_dto.py +82 -0
- truefoundry/ml/autogen/client/models/list_latest_run_logs_response_dto.py +82 -0
- truefoundry/ml/autogen/client/models/list_metric_history_request_dto.py +69 -0
- truefoundry/ml/autogen/client/models/list_metric_history_response_dto.py +84 -0
- truefoundry/ml/autogen/client/models/list_model_version_response_dto.py +87 -0
- truefoundry/ml/autogen/client/models/list_model_versions_request_dto.py +93 -0
- truefoundry/ml/autogen/client/models/list_models_request_dto.py +89 -0
- truefoundry/ml/autogen/client/models/list_models_response_dto.py +84 -0
- truefoundry/ml/autogen/client/models/list_run_artifacts_response_dto.py +84 -0
- truefoundry/ml/autogen/client/models/list_run_logs_response_dto.py +82 -0
- truefoundry/ml/autogen/client/models/list_seed_experiments_response_dto.py +81 -0
- truefoundry/ml/autogen/client/models/log_batch_request_dto.py +106 -0
- truefoundry/ml/autogen/client/models/log_metric_request_dto.py +80 -0
- truefoundry/ml/autogen/client/models/log_param_request_dto.py +76 -0
- truefoundry/ml/autogen/client/models/method.py +37 -0
- truefoundry/ml/autogen/client/models/metric_collection_dto.py +82 -0
- truefoundry/ml/autogen/client/models/metric_dto.py +76 -0
- truefoundry/ml/autogen/client/models/mime_type.py +37 -0
- truefoundry/ml/autogen/client/models/model_configuration.py +103 -0
- truefoundry/ml/autogen/client/models/model_dto.py +122 -0
- truefoundry/ml/autogen/client/models/model_response_dto.py +75 -0
- truefoundry/ml/autogen/client/models/model_schema_dto.py +85 -0
- truefoundry/ml/autogen/client/models/model_version_dto.py +163 -0
- truefoundry/ml/autogen/client/models/model_version_response_dto.py +75 -0
- truefoundry/ml/autogen/client/models/multi_part_upload_dto.py +107 -0
- truefoundry/ml/autogen/client/models/multi_part_upload_response_dto.py +79 -0
- truefoundry/ml/autogen/client/models/multi_part_upload_storage_provider.py +34 -0
- truefoundry/ml/autogen/client/models/notify_artifact_version_failure_dto.py +65 -0
- truefoundry/ml/autogen/client/models/openapi_spec.py +152 -0
- truefoundry/ml/autogen/client/models/param_dto.py +66 -0
- truefoundry/ml/autogen/client/models/parameters.py +84 -0
- truefoundry/ml/autogen/client/models/prediction_type.py +34 -0
- truefoundry/ml/autogen/client/models/resolve_agent_app_response_dto.py +75 -0
- truefoundry/ml/autogen/client/models/restore_run_request_dto.py +65 -0
- truefoundry/ml/autogen/client/models/run_data_dto.py +104 -0
- truefoundry/ml/autogen/client/models/run_dto.py +84 -0
- truefoundry/ml/autogen/client/models/run_info_dto.py +105 -0
- truefoundry/ml/autogen/client/models/run_log_dto.py +90 -0
- truefoundry/ml/autogen/client/models/run_log_input_dto.py +80 -0
- truefoundry/ml/autogen/client/models/run_response_dto.py +75 -0
- truefoundry/ml/autogen/client/models/run_tag_dto.py +66 -0
- truefoundry/ml/autogen/client/models/search_runs_request_dto.py +94 -0
- truefoundry/ml/autogen/client/models/search_runs_response_dto.py +84 -0
- truefoundry/ml/autogen/client/models/set_experiment_tag_request_dto.py +73 -0
- truefoundry/ml/autogen/client/models/set_tag_request_dto.py +76 -0
- truefoundry/ml/autogen/client/models/signed_url_dto.py +69 -0
- truefoundry/ml/autogen/client/models/stop.py +152 -0
- truefoundry/ml/autogen/client/models/store_run_logs_request_dto.py +83 -0
- truefoundry/ml/autogen/client/models/system_message.py +89 -0
- truefoundry/ml/autogen/client/models/text.py +153 -0
- truefoundry/ml/autogen/client/models/text_content_part.py +84 -0
- truefoundry/ml/autogen/client/models/update_artifact_version_request_dto.py +74 -0
- truefoundry/ml/autogen/client/models/update_dataset_request_dto.py +74 -0
- truefoundry/ml/autogen/client/models/update_experiment_request_dto.py +74 -0
- truefoundry/ml/autogen/client/models/update_model_version_request_dto.py +93 -0
- truefoundry/ml/autogen/client/models/update_run_request_dto.py +78 -0
- truefoundry/ml/autogen/client/models/update_run_response_dto.py +76 -0
- truefoundry/ml/autogen/client/models/url.py +153 -0
- truefoundry/ml/autogen/client/models/user_message.py +89 -0
- truefoundry/ml/autogen/client/models/validation_error.py +87 -0
- truefoundry/ml/autogen/client/models/validation_error_loc_inner.py +154 -0
- truefoundry/ml/autogen/client/rest.py +426 -0
- truefoundry/ml/autogen/client_README.md +322 -0
- truefoundry/ml/cli/__init__.py +0 -0
- truefoundry/ml/cli/cli.py +18 -0
- truefoundry/ml/cli/commands/__init__.py +3 -0
- truefoundry/ml/cli/commands/download.py +87 -0
- truefoundry/ml/constants.py +84 -0
- truefoundry/ml/enums.py +70 -0
- truefoundry/ml/env_vars.py +13 -0
- truefoundry/ml/exceptions.py +8 -0
- truefoundry/ml/git_info.py +60 -0
- truefoundry/ml/internal_namespace.py +52 -0
- truefoundry/ml/log_types/__init__.py +4 -0
- truefoundry/ml/log_types/artifacts/artifact.py +427 -0
- truefoundry/ml/log_types/artifacts/constants.py +33 -0
- truefoundry/ml/log_types/artifacts/dataset.py +383 -0
- truefoundry/ml/log_types/artifacts/general_artifact.py +110 -0
- truefoundry/ml/log_types/artifacts/model.py +628 -0
- truefoundry/ml/log_types/artifacts/model_extras.py +48 -0
- truefoundry/ml/log_types/artifacts/utils.py +161 -0
- truefoundry/ml/log_types/image/__init__.py +3 -0
- truefoundry/ml/log_types/image/constants.py +8 -0
- truefoundry/ml/log_types/image/image.py +358 -0
- truefoundry/ml/log_types/image/image_normalizer.py +101 -0
- truefoundry/ml/log_types/image/types.py +68 -0
- truefoundry/ml/log_types/plot.py +281 -0
- truefoundry/ml/log_types/pydantic_base.py +10 -0
- truefoundry/ml/log_types/utils.py +12 -0
- truefoundry/ml/logger.py +17 -0
- truefoundry/ml/login.py +241 -0
- truefoundry/ml/mlfoundry_api.py +1620 -0
- truefoundry/ml/mlfoundry_run.py +1238 -0
- truefoundry/ml/run_utils.py +102 -0
- truefoundry/ml/services/__init__.py +0 -0
- truefoundry/ml/services/auth_service.py +109 -0
- truefoundry/ml/services/entities.py +108 -0
- truefoundry/ml/services/servicefoundry_service.py +35 -0
- truefoundry/ml/services/utils.py +122 -0
- truefoundry/ml/session.py +271 -0
- truefoundry/ml/validation_utils.py +346 -0
- truefoundry/pydantic_v1.py +5 -1
- {truefoundry-0.3.3.dist-info → truefoundry-0.4.0.dev0.dist-info}/METADATA +19 -12
- truefoundry-0.4.0.dev0.dist-info/RECORD +342 -0
- truefoundry-0.3.3.dist-info/RECORD +0 -136
- /truefoundry/{python_deploy_codegen.py → deploy/python_deploy_codegen.py} +0 -0
- {truefoundry-0.3.3.dist-info → truefoundry-0.4.0.dev0.dist-info}/WHEEL +0 -0
- {truefoundry-0.3.3.dist-info → truefoundry-0.4.0.dev0.dist-info}/entry_points.txt +0 -0
|
@@ -0,0 +1,322 @@
|
|
|
1
|
+
# client
|
|
2
|
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
3
|
+
|
|
4
|
+
The `truefoundry.ml.autogen.client` package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
|
5
|
+
|
|
6
|
+
- API version: 0.1.0
|
|
7
|
+
- Package version: 0.1.0
|
|
8
|
+
- Generator version: 7.9.0-SNAPSHOT
|
|
9
|
+
- Build package: org.openapitools.codegen.languages.PythonPydanticV1ClientCodegen
|
|
10
|
+
|
|
11
|
+
## Requirements.
|
|
12
|
+
|
|
13
|
+
Python 3.7+
|
|
14
|
+
|
|
15
|
+
## Installation & Usage
|
|
16
|
+
|
|
17
|
+
This python library package is generated without supporting files like setup.py or requirements files
|
|
18
|
+
|
|
19
|
+
To be able to use it, you will need these dependencies in your own package that uses this library:
|
|
20
|
+
|
|
21
|
+
* urllib3 >= 1.25.3
|
|
22
|
+
* python-dateutil
|
|
23
|
+
* pydantic
|
|
24
|
+
* aenum
|
|
25
|
+
|
|
26
|
+
## Getting Started
|
|
27
|
+
|
|
28
|
+
In your own code, to use this library to connect and interact with client,
|
|
29
|
+
you can run the following:
|
|
30
|
+
|
|
31
|
+
```python
|
|
32
|
+
|
|
33
|
+
import time
|
|
34
|
+
import truefoundry.ml.autogen.client
|
|
35
|
+
from truefoundry.ml.autogen.client.rest import ApiException
|
|
36
|
+
from pprint import pprint
|
|
37
|
+
|
|
38
|
+
# Defining the host is optional and defaults to http://localhost
|
|
39
|
+
# See configuration.py for a list of all supported configuration parameters.
|
|
40
|
+
configuration = truefoundry.ml.autogen.client.Configuration(
|
|
41
|
+
host = "http://localhost"
|
|
42
|
+
)
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
# Enter a context with an instance of the API client
|
|
47
|
+
with truefoundry.ml.autogen.client.ApiClient(configuration) as api_client:
|
|
48
|
+
# Create an instance of the API class
|
|
49
|
+
api_instance = truefoundry.ml.autogen.client.AuthApi(api_client)
|
|
50
|
+
host_name = 'host_name_example' # str |
|
|
51
|
+
|
|
52
|
+
try:
|
|
53
|
+
# Get Tenant Id
|
|
54
|
+
api_response = api_instance.get_tenant_id_get(host_name)
|
|
55
|
+
print("The response of AuthApi->get_tenant_id_get:\n")
|
|
56
|
+
pprint(api_response)
|
|
57
|
+
except ApiException as e:
|
|
58
|
+
print("Exception when calling AuthApi->get_tenant_id_get: %s\n" % e)
|
|
59
|
+
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
## Documentation for API Endpoints
|
|
63
|
+
|
|
64
|
+
All URIs are relative to *http://localhost*
|
|
65
|
+
|
|
66
|
+
Class | Method | HTTP request | Description
|
|
67
|
+
------------ | ------------- | ------------- | -------------
|
|
68
|
+
*AuthApi* | [**get_tenant_id_get**](truefoundry/ml/autogen/client/docs/AuthApi.md#get_tenant_id_get) | **GET** /api/2.0/mlflow/tenant-id | Get Tenant Id
|
|
69
|
+
*DeprecatedApi* | [**get_run_by_name_get**](truefoundry/ml/autogen/client/docs/DeprecatedApi.md#get_run_by_name_get) | **GET** /api/2.0mlflow/runs/get-by-name | Get Run By Name
|
|
70
|
+
*DeprecatedApi* | [**get_search_runs_get**](truefoundry/ml/autogen/client/docs/DeprecatedApi.md#get_search_runs_get) | **GET** /api/2.0/preview/mlflow/runs/search | Get Search Runs
|
|
71
|
+
*DeprecatedApi* | [**get_signed_urls_for_dataset_write_deprecated_get**](truefoundry/ml/autogen/client/docs/DeprecatedApi.md#get_signed_urls_for_dataset_write_deprecated_get) | **GET** /api/2.0/mlflow/mlfoundry-artifacts/datasets/get-signed-urls-for-write | Get Signed Urls For Dataset Write Deprecated
|
|
72
|
+
*ExperimentsApi* | [**backfill_storage_integration_post**](truefoundry/ml/autogen/client/docs/ExperimentsApi.md#backfill_storage_integration_post) | **POST** /api/2.0/mlflow/experiments/storage-integration/backfill | Backfill Storage Integration
|
|
73
|
+
*ExperimentsApi* | [**create_experiment_post**](truefoundry/ml/autogen/client/docs/ExperimentsApi.md#create_experiment_post) | **POST** /api/2.0/mlflow/experiments/create | Create Experiment
|
|
74
|
+
*ExperimentsApi* | [**delete_experiment_post**](truefoundry/ml/autogen/client/docs/ExperimentsApi.md#delete_experiment_post) | **POST** /api/2.0/mlflow/experiments/delete | Delete Experiment
|
|
75
|
+
*ExperimentsApi* | [**get_experiment_by_name_get**](truefoundry/ml/autogen/client/docs/ExperimentsApi.md#get_experiment_by_name_get) | **GET** /api/2.0/mlflow/experiments/get-by-name | Get Experiment By Name
|
|
76
|
+
*ExperimentsApi* | [**get_experiment_get**](truefoundry/ml/autogen/client/docs/ExperimentsApi.md#get_experiment_get) | **GET** /api/2.0/mlflow/experiments/get | Get Experiment
|
|
77
|
+
*ExperimentsApi* | [**hard_delete_experiment_post**](truefoundry/ml/autogen/client/docs/ExperimentsApi.md#hard_delete_experiment_post) | **POST** /api/2.0/mlflow/experiments/hard-delete | Hard Delete Experiment
|
|
78
|
+
*ExperimentsApi* | [**list_experiment_columns_get**](truefoundry/ml/autogen/client/docs/ExperimentsApi.md#list_experiment_columns_get) | **GET** /api/2.0/mlflow/experiments/columns | List Experiment Columns
|
|
79
|
+
*ExperimentsApi* | [**list_experiments_get**](truefoundry/ml/autogen/client/docs/ExperimentsApi.md#list_experiments_get) | **GET** /api/2.0/mlflow/experiments/list | List Experiments
|
|
80
|
+
*ExperimentsApi* | [**put_privacy_type_put**](truefoundry/ml/autogen/client/docs/ExperimentsApi.md#put_privacy_type_put) | **PUT** /api/2.0/mlflow/experiments/privacy-type | Put Privacy Type
|
|
81
|
+
*ExperimentsApi* | [**restore_experiment_post**](truefoundry/ml/autogen/client/docs/ExperimentsApi.md#restore_experiment_post) | **POST** /api/2.0/mlflow/experiments/restore | Restore Experiment
|
|
82
|
+
*ExperimentsApi* | [**seed_list_experiment_get**](truefoundry/ml/autogen/client/docs/ExperimentsApi.md#seed_list_experiment_get) | **GET** /api/2.0/mlflow/experiments/seed/list | Seed List Experiment
|
|
83
|
+
*ExperimentsApi* | [**set_experiment_tag_post**](truefoundry/ml/autogen/client/docs/ExperimentsApi.md#set_experiment_tag_post) | **POST** /api/2.0/mlflow/experiments/set-experiment-tag | Set Experiment Tag
|
|
84
|
+
*ExperimentsApi* | [**update_experiment_post**](truefoundry/ml/autogen/client/docs/ExperimentsApi.md#update_experiment_post) | **POST** /api/2.0/mlflow/experiments/update | Update Experiment
|
|
85
|
+
*HealthApi* | [**health_get**](truefoundry/ml/autogen/client/docs/HealthApi.md#health_get) | **GET** /health | Health
|
|
86
|
+
*HealthApi* | [**serve_get**](truefoundry/ml/autogen/client/docs/HealthApi.md#serve_get) | **GET** / | Serve
|
|
87
|
+
*MetricsApi* | [**get_metric_history_get**](truefoundry/ml/autogen/client/docs/MetricsApi.md#get_metric_history_get) | **GET** /api/2.0/mlflow/metrics/get-history | Get Metric History
|
|
88
|
+
*MetricsApi* | [**list_metric_history_post**](truefoundry/ml/autogen/client/docs/MetricsApi.md#list_metric_history_post) | **POST** /api/2.0/mlflow/metrics/list-history | List Metric History
|
|
89
|
+
*MlfoundryArtifactsApi* | [**add_custom_metrics_to_model_version_post**](truefoundry/ml/autogen/client/docs/MlfoundryArtifactsApi.md#add_custom_metrics_to_model_version_post) | **POST** /api/2.0/mlflow/mlfoundry-artifacts/model-versions/custom-metrics/add | Add Custom Metrics To Model Version
|
|
90
|
+
*MlfoundryArtifactsApi* | [**add_features_to_model_version_post**](truefoundry/ml/autogen/client/docs/MlfoundryArtifactsApi.md#add_features_to_model_version_post) | **POST** /api/2.0/mlflow/mlfoundry-artifacts/model-versions/features/add | Add Features To Model Version
|
|
91
|
+
*MlfoundryArtifactsApi* | [**authorize_user_for_model_post**](truefoundry/ml/autogen/client/docs/MlfoundryArtifactsApi.md#authorize_user_for_model_post) | **POST** /api/2.0/mlflow/mlfoundry-artifacts/models/authorize | Authorize User For Model
|
|
92
|
+
*MlfoundryArtifactsApi* | [**authorize_user_for_model_version_post**](truefoundry/ml/autogen/client/docs/MlfoundryArtifactsApi.md#authorize_user_for_model_version_post) | **POST** /api/2.0/mlflow/mlfoundry-artifacts/model-versions/authorize | Authorize User For Model Version
|
|
93
|
+
*MlfoundryArtifactsApi* | [**create_artifact_post**](truefoundry/ml/autogen/client/docs/MlfoundryArtifactsApi.md#create_artifact_post) | **POST** /api/2.0/mlflow/mlfoundry-artifacts/artifacts/create | Create Artifact
|
|
94
|
+
*MlfoundryArtifactsApi* | [**create_artifact_version_post**](truefoundry/ml/autogen/client/docs/MlfoundryArtifactsApi.md#create_artifact_version_post) | **POST** /api/2.0/mlflow/mlfoundry-artifacts/artifact-versions/create | Create Artifact Version
|
|
95
|
+
*MlfoundryArtifactsApi* | [**create_dataset_post**](truefoundry/ml/autogen/client/docs/MlfoundryArtifactsApi.md#create_dataset_post) | **POST** /api/2.0/mlflow/mlfoundry-artifacts/datasets/create | Create Dataset
|
|
96
|
+
*MlfoundryArtifactsApi* | [**create_model_version_post**](truefoundry/ml/autogen/client/docs/MlfoundryArtifactsApi.md#create_model_version_post) | **POST** /api/2.0/mlflow/mlfoundry-artifacts/model-versions/create | Create Model Version
|
|
97
|
+
*MlfoundryArtifactsApi* | [**create_multi_part_upload_post**](truefoundry/ml/autogen/client/docs/MlfoundryArtifactsApi.md#create_multi_part_upload_post) | **POST** /api/2.0/mlflow/mlfoundry-artifacts/artifact-versions/multi-part-upload/create | Create Multi Part Upload
|
|
98
|
+
*MlfoundryArtifactsApi* | [**create_multipart_upload_for_dataset_post**](truefoundry/ml/autogen/client/docs/MlfoundryArtifactsApi.md#create_multipart_upload_for_dataset_post) | **POST** /api/2.0/mlflow/mlfoundry-artifacts/datasets/multi-part-upload/create | Create Multipart Upload For Dataset
|
|
99
|
+
*MlfoundryArtifactsApi* | [**delete_artifact_post**](truefoundry/ml/autogen/client/docs/MlfoundryArtifactsApi.md#delete_artifact_post) | **POST** /api/2.0/mlflow/mlfoundry-artifacts/artifact/delete | Delete Artifact
|
|
100
|
+
*MlfoundryArtifactsApi* | [**delete_artifact_version_post**](truefoundry/ml/autogen/client/docs/MlfoundryArtifactsApi.md#delete_artifact_version_post) | **POST** /api/2.0/mlflow/mlfoundry-artifacts/artifact-versions/delete | Delete Artifact Version
|
|
101
|
+
*MlfoundryArtifactsApi* | [**delete_dataset_post**](truefoundry/ml/autogen/client/docs/MlfoundryArtifactsApi.md#delete_dataset_post) | **POST** /api/2.0/mlflow/mlfoundry-artifacts/datasets/delete | Delete Dataset
|
|
102
|
+
*MlfoundryArtifactsApi* | [**delete_model_version_post**](truefoundry/ml/autogen/client/docs/MlfoundryArtifactsApi.md#delete_model_version_post) | **POST** /api/2.0/mlflow/mlfoundry-artifacts/model-versions/delete | Delete Model Version
|
|
103
|
+
*MlfoundryArtifactsApi* | [**finalize_artifact_version_post**](truefoundry/ml/autogen/client/docs/MlfoundryArtifactsApi.md#finalize_artifact_version_post) | **POST** /api/2.0/mlflow/mlfoundry-artifacts/artifact-versions/finalize | Finalize Artifact Version
|
|
104
|
+
*MlfoundryArtifactsApi* | [**get_artifact_by_fqn_get**](truefoundry/ml/autogen/client/docs/MlfoundryArtifactsApi.md#get_artifact_by_fqn_get) | **GET** /api/2.0/mlflow/mlfoundry-artifacts/artifacts/get-by-fqn | Get Artifact By Fqn
|
|
105
|
+
*MlfoundryArtifactsApi* | [**get_artifact_by_id_get**](truefoundry/ml/autogen/client/docs/MlfoundryArtifactsApi.md#get_artifact_by_id_get) | **GET** /api/2.0/mlflow/mlfoundry-artifacts/artifacts/get | Get Artifact By Id
|
|
106
|
+
*MlfoundryArtifactsApi* | [**get_artifact_version_by_fqn_get**](truefoundry/ml/autogen/client/docs/MlfoundryArtifactsApi.md#get_artifact_version_by_fqn_get) | **GET** /api/2.0/mlflow/mlfoundry-artifacts/artifact-versions/get-by-fqn | Get Artifact Version By Fqn
|
|
107
|
+
*MlfoundryArtifactsApi* | [**get_artifact_version_by_id_get**](truefoundry/ml/autogen/client/docs/MlfoundryArtifactsApi.md#get_artifact_version_by_id_get) | **GET** /api/2.0/mlflow/mlfoundry-artifacts/artifact-versions/get | Get Artifact Version By Id
|
|
108
|
+
*MlfoundryArtifactsApi* | [**get_artifact_version_by_name_get**](truefoundry/ml/autogen/client/docs/MlfoundryArtifactsApi.md#get_artifact_version_by_name_get) | **GET** /api/2.0/mlflow/mlfoundry-artifacts/artifact-versions/get-by-name | Get Artifact Version By Name
|
|
109
|
+
*MlfoundryArtifactsApi* | [**get_dataset_by_fqn_get**](truefoundry/ml/autogen/client/docs/MlfoundryArtifactsApi.md#get_dataset_by_fqn_get) | **GET** /api/2.0/mlflow/mlfoundry-artifacts/datasets/get-by-fqn | Get Dataset By Fqn
|
|
110
|
+
*MlfoundryArtifactsApi* | [**get_dataset_get**](truefoundry/ml/autogen/client/docs/MlfoundryArtifactsApi.md#get_dataset_get) | **GET** /api/2.0/mlflow/mlfoundry-artifacts/datasets/get | Get Dataset
|
|
111
|
+
*MlfoundryArtifactsApi* | [**get_model_by_fqn_get**](truefoundry/ml/autogen/client/docs/MlfoundryArtifactsApi.md#get_model_by_fqn_get) | **GET** /api/2.0/mlflow/mlfoundry-artifacts/models/get-by-fqn | Get Model By Fqn
|
|
112
|
+
*MlfoundryArtifactsApi* | [**get_model_by_name_get**](truefoundry/ml/autogen/client/docs/MlfoundryArtifactsApi.md#get_model_by_name_get) | **GET** /api/2.0/mlflow/mlfoundry-artifacts/models/get-by-name | Get Model By Name
|
|
113
|
+
*MlfoundryArtifactsApi* | [**get_model_get**](truefoundry/ml/autogen/client/docs/MlfoundryArtifactsApi.md#get_model_get) | **GET** /api/2.0/mlflow/mlfoundry-artifacts/models/get | Get Model
|
|
114
|
+
*MlfoundryArtifactsApi* | [**get_model_version_by_fqn_get**](truefoundry/ml/autogen/client/docs/MlfoundryArtifactsApi.md#get_model_version_by_fqn_get) | **GET** /api/2.0/mlflow/mlfoundry-artifacts/model-versions/get-by-fqn | Get Model Version By Fqn
|
|
115
|
+
*MlfoundryArtifactsApi* | [**get_model_version_by_name_get**](truefoundry/ml/autogen/client/docs/MlfoundryArtifactsApi.md#get_model_version_by_name_get) | **GET** /api/2.0/mlflow/mlfoundry-artifacts/model-versions/get-by-name | Get Model Version By Name
|
|
116
|
+
*MlfoundryArtifactsApi* | [**get_model_version_get**](truefoundry/ml/autogen/client/docs/MlfoundryArtifactsApi.md#get_model_version_get) | **GET** /api/2.0/mlflow/mlfoundry-artifacts/model-versions/get | Get Model Version
|
|
117
|
+
*MlfoundryArtifactsApi* | [**get_signed_urls_dataset_read_post**](truefoundry/ml/autogen/client/docs/MlfoundryArtifactsApi.md#get_signed_urls_dataset_read_post) | **POST** /api/2.0/mlflow/mlfoundry-artifacts/datasets/get-signed-urls-for-read | Get Signed Urls Dataset Read
|
|
118
|
+
*MlfoundryArtifactsApi* | [**get_signed_urls_for_dataset_write_post**](truefoundry/ml/autogen/client/docs/MlfoundryArtifactsApi.md#get_signed_urls_for_dataset_write_post) | **POST** /api/2.0/mlflow/mlfoundry-artifacts/datasets/get-signed-urls-for-write | Get Signed Urls For Dataset Write
|
|
119
|
+
*MlfoundryArtifactsApi* | [**get_signed_urls_for_read_post**](truefoundry/ml/autogen/client/docs/MlfoundryArtifactsApi.md#get_signed_urls_for_read_post) | **POST** /api/2.0/mlflow/mlfoundry-artifacts/artifact-versions/get-signed-urls-for-read | Get Signed Urls For Read
|
|
120
|
+
*MlfoundryArtifactsApi* | [**get_signed_urls_for_write_post**](truefoundry/ml/autogen/client/docs/MlfoundryArtifactsApi.md#get_signed_urls_for_write_post) | **POST** /api/2.0/mlflow/mlfoundry-artifacts/artifact-versions/get-signed-urls-for-write | Get Signed Urls For Write
|
|
121
|
+
*MlfoundryArtifactsApi* | [**list_artifact_versions_post**](truefoundry/ml/autogen/client/docs/MlfoundryArtifactsApi.md#list_artifact_versions_post) | **POST** /api/2.0/mlflow/mlfoundry-artifacts/artifact-versions/list | List Artifact Versions
|
|
122
|
+
*MlfoundryArtifactsApi* | [**list_artifacts_post**](truefoundry/ml/autogen/client/docs/MlfoundryArtifactsApi.md#list_artifacts_post) | **POST** /api/2.0/mlflow/mlfoundry-artifacts/artifacts/list | List Artifacts
|
|
123
|
+
*MlfoundryArtifactsApi* | [**list_datasets_post**](truefoundry/ml/autogen/client/docs/MlfoundryArtifactsApi.md#list_datasets_post) | **POST** /api/2.0/mlflow/mlfoundry-artifacts/datasets/list | List Datasets
|
|
124
|
+
*MlfoundryArtifactsApi* | [**list_files_for_artifact_version_post**](truefoundry/ml/autogen/client/docs/MlfoundryArtifactsApi.md#list_files_for_artifact_version_post) | **POST** /api/2.0/mlflow/mlfoundry-artifacts/artifact-versions/files/list | List Files For Artifact Version
|
|
125
|
+
*MlfoundryArtifactsApi* | [**list_files_for_dataset_post**](truefoundry/ml/autogen/client/docs/MlfoundryArtifactsApi.md#list_files_for_dataset_post) | **POST** /api/2.0/mlflow/mlfoundry-artifacts/datasets/files/list | List Files For Dataset
|
|
126
|
+
*MlfoundryArtifactsApi* | [**list_model_versions_post**](truefoundry/ml/autogen/client/docs/MlfoundryArtifactsApi.md#list_model_versions_post) | **POST** /api/2.0/mlflow/mlfoundry-artifacts/model-versions/list | List Model Versions
|
|
127
|
+
*MlfoundryArtifactsApi* | [**list_models_post**](truefoundry/ml/autogen/client/docs/MlfoundryArtifactsApi.md#list_models_post) | **POST** /api/2.0/mlflow/mlfoundry-artifacts/models/list | List Models
|
|
128
|
+
*MlfoundryArtifactsApi* | [**notify_failure_post**](truefoundry/ml/autogen/client/docs/MlfoundryArtifactsApi.md#notify_failure_post) | **POST** /api/2.0/mlflow/mlfoundry-artifacts/artifact-versions/notify-failure | Notify Failure
|
|
129
|
+
*MlfoundryArtifactsApi* | [**resolve_agent_get**](truefoundry/ml/autogen/client/docs/MlfoundryArtifactsApi.md#resolve_agent_get) | **GET** /api/2.0/mlflow/mlfoundry-artifacts/agent/resolve | Resolve Agent
|
|
130
|
+
*MlfoundryArtifactsApi* | [**update_artifact_version_post**](truefoundry/ml/autogen/client/docs/MlfoundryArtifactsApi.md#update_artifact_version_post) | **POST** /api/2.0/mlflow/mlfoundry-artifacts/artifact-versions/update | Update Artifact Version
|
|
131
|
+
*MlfoundryArtifactsApi* | [**update_dataset_post**](truefoundry/ml/autogen/client/docs/MlfoundryArtifactsApi.md#update_dataset_post) | **POST** /api/2.0/mlflow/mlfoundry-artifacts/datasets/update | Update Dataset
|
|
132
|
+
*MlfoundryArtifactsApi* | [**update_model_version_post**](truefoundry/ml/autogen/client/docs/MlfoundryArtifactsApi.md#update_model_version_post) | **POST** /api/2.0/mlflow/mlfoundry-artifacts/model-versions/update | Update Model Version
|
|
133
|
+
*PythonDeploymentConfigApi* | [**generate_py_development_config_post**](truefoundry/ml/autogen/client/docs/PythonDeploymentConfigApi.md#generate_py_development_config_post) | **POST** /api/2.0/mlflow/python-deployment-config/generate | Generate Py Development Config
|
|
134
|
+
*RunArtifactsApi* | [**list_run_artifacts_get**](truefoundry/ml/autogen/client/docs/RunArtifactsApi.md#list_run_artifacts_get) | **GET** /api/2.0/mlflow/artifacts/list | List Run Artifacts
|
|
135
|
+
*RunsApi* | [**create_run_post**](truefoundry/ml/autogen/client/docs/RunsApi.md#create_run_post) | **POST** /api/2.0/mlflow/runs/create | Create Run
|
|
136
|
+
*RunsApi* | [**delete_run_post**](truefoundry/ml/autogen/client/docs/RunsApi.md#delete_run_post) | **POST** /api/2.0/mlflow/runs/delete | Delete Run
|
|
137
|
+
*RunsApi* | [**delete_tag_post**](truefoundry/ml/autogen/client/docs/RunsApi.md#delete_tag_post) | **POST** /api/2.0/mlflow/runs/delete-tag | Delete Tag
|
|
138
|
+
*RunsApi* | [**get_run_by_fqn_get**](truefoundry/ml/autogen/client/docs/RunsApi.md#get_run_by_fqn_get) | **GET** /api/2.0/mlflow/runs/get-by-fqn | Get Run By Fqn
|
|
139
|
+
*RunsApi* | [**get_run_by_name_get**](truefoundry/ml/autogen/client/docs/RunsApi.md#get_run_by_name_get) | **GET** /api/2.0/mlflow/runs/get-by-name | Get Run By Name
|
|
140
|
+
*RunsApi* | [**get_run_get**](truefoundry/ml/autogen/client/docs/RunsApi.md#get_run_get) | **GET** /api/2.0/mlflow/runs/get | Get Run
|
|
141
|
+
*RunsApi* | [**hard_delete_run_post**](truefoundry/ml/autogen/client/docs/RunsApi.md#hard_delete_run_post) | **POST** /api/2.0/mlflow/runs/hard-delete | Hard Delete Run
|
|
142
|
+
*RunsApi* | [**latest_run_log_get**](truefoundry/ml/autogen/client/docs/RunsApi.md#latest_run_log_get) | **GET** /api/2.0/mlflow/runs/run-logs/latest-run-log | Latest Run Log
|
|
143
|
+
*RunsApi* | [**list_latest_run_logs_get**](truefoundry/ml/autogen/client/docs/RunsApi.md#list_latest_run_logs_get) | **GET** /api/2.0/mlflow/runs/run-logs/list-latest | List Latest Run Logs
|
|
144
|
+
*RunsApi* | [**list_run_logs_get**](truefoundry/ml/autogen/client/docs/RunsApi.md#list_run_logs_get) | **GET** /api/2.0/mlflow/runs/run-logs/list | List Run Logs
|
|
145
|
+
*RunsApi* | [**log_metric_post**](truefoundry/ml/autogen/client/docs/RunsApi.md#log_metric_post) | **POST** /api/2.0/mlflow/runs/log-metric | Log Metric
|
|
146
|
+
*RunsApi* | [**log_parameter_post**](truefoundry/ml/autogen/client/docs/RunsApi.md#log_parameter_post) | **POST** /api/2.0/mlflow/runs/log-parameter | Log Parameter
|
|
147
|
+
*RunsApi* | [**log_run_batch_post**](truefoundry/ml/autogen/client/docs/RunsApi.md#log_run_batch_post) | **POST** /api/2.0/mlflow/runs/log-batch | Log Run Batch
|
|
148
|
+
*RunsApi* | [**restore_run_post**](truefoundry/ml/autogen/client/docs/RunsApi.md#restore_run_post) | **POST** /api/2.0/mlflow/runs/restore | Restore Run
|
|
149
|
+
*RunsApi* | [**run_logs_post**](truefoundry/ml/autogen/client/docs/RunsApi.md#run_logs_post) | **POST** /api/2.0/mlflow/runs/run-logs | Run Logs
|
|
150
|
+
*RunsApi* | [**search_runs_post**](truefoundry/ml/autogen/client/docs/RunsApi.md#search_runs_post) | **POST** /api/2.0/mlflow/runs/search | Search Runs
|
|
151
|
+
*RunsApi* | [**set_tag_request_post**](truefoundry/ml/autogen/client/docs/RunsApi.md#set_tag_request_post) | **POST** /api/2.0/mlflow/runs/set-tag | Set Tag Request
|
|
152
|
+
*RunsApi* | [**update_run_post**](truefoundry/ml/autogen/client/docs/RunsApi.md#update_run_post) | **POST** /api/2.0/mlflow/runs/update | Update Run
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
## Documentation For Models
|
|
156
|
+
|
|
157
|
+
- [AddCustomMetricsToModelVersionRequestDto](truefoundry/ml/autogen/client/docs/AddCustomMetricsToModelVersionRequestDto.md)
|
|
158
|
+
- [AddFeaturesToModelVersionRequestDto](truefoundry/ml/autogen/client/docs/AddFeaturesToModelVersionRequestDto.md)
|
|
159
|
+
- [Agent](truefoundry/ml/autogen/client/docs/Agent.md)
|
|
160
|
+
- [AgentApp](truefoundry/ml/autogen/client/docs/AgentApp.md)
|
|
161
|
+
- [AgentOpenAPITool](truefoundry/ml/autogen/client/docs/AgentOpenAPITool.md)
|
|
162
|
+
- [AgentOpenAPIToolWithFQN](truefoundry/ml/autogen/client/docs/AgentOpenAPIToolWithFQN.md)
|
|
163
|
+
- [AgentWithFQN](truefoundry/ml/autogen/client/docs/AgentWithFQN.md)
|
|
164
|
+
- [ArtifactDto](truefoundry/ml/autogen/client/docs/ArtifactDto.md)
|
|
165
|
+
- [ArtifactResponseDto](truefoundry/ml/autogen/client/docs/ArtifactResponseDto.md)
|
|
166
|
+
- [ArtifactType](truefoundry/ml/autogen/client/docs/ArtifactType.md)
|
|
167
|
+
- [ArtifactVersionDto](truefoundry/ml/autogen/client/docs/ArtifactVersionDto.md)
|
|
168
|
+
- [ArtifactVersionResponseDto](truefoundry/ml/autogen/client/docs/ArtifactVersionResponseDto.md)
|
|
169
|
+
- [ArtifactVersionStatus](truefoundry/ml/autogen/client/docs/ArtifactVersionStatus.md)
|
|
170
|
+
- [AssistantMessage](truefoundry/ml/autogen/client/docs/AssistantMessage.md)
|
|
171
|
+
- [AuthorizeUserForModelRequestDto](truefoundry/ml/autogen/client/docs/AuthorizeUserForModelRequestDto.md)
|
|
172
|
+
- [AuthorizeUserForModelVersionRequestDto](truefoundry/ml/autogen/client/docs/AuthorizeUserForModelVersionRequestDto.md)
|
|
173
|
+
- [BackfillDefaultStorageIntegrationIdRequestDto](truefoundry/ml/autogen/client/docs/BackfillDefaultStorageIntegrationIdRequestDto.md)
|
|
174
|
+
- [BlobStorageReference](truefoundry/ml/autogen/client/docs/BlobStorageReference.md)
|
|
175
|
+
- [BodyGetSearchRunsGet](truefoundry/ml/autogen/client/docs/BodyGetSearchRunsGet.md)
|
|
176
|
+
- [ChatPrompt](truefoundry/ml/autogen/client/docs/ChatPrompt.md)
|
|
177
|
+
- [ChatPromptMessagesInner](truefoundry/ml/autogen/client/docs/ChatPromptMessagesInner.md)
|
|
178
|
+
- [ColumnsDto](truefoundry/ml/autogen/client/docs/ColumnsDto.md)
|
|
179
|
+
- [Content](truefoundry/ml/autogen/client/docs/Content.md)
|
|
180
|
+
- [Content1](truefoundry/ml/autogen/client/docs/Content1.md)
|
|
181
|
+
- [Content2](truefoundry/ml/autogen/client/docs/Content2.md)
|
|
182
|
+
- [Content2AnyOfInner](truefoundry/ml/autogen/client/docs/Content2AnyOfInner.md)
|
|
183
|
+
- [CreateArtifactRequestDto](truefoundry/ml/autogen/client/docs/CreateArtifactRequestDto.md)
|
|
184
|
+
- [CreateArtifactResponseDto](truefoundry/ml/autogen/client/docs/CreateArtifactResponseDto.md)
|
|
185
|
+
- [CreateArtifactVersionRequestDto](truefoundry/ml/autogen/client/docs/CreateArtifactVersionRequestDto.md)
|
|
186
|
+
- [CreateArtifactVersionResponseDto](truefoundry/ml/autogen/client/docs/CreateArtifactVersionResponseDto.md)
|
|
187
|
+
- [CreateDatasetRequestDto](truefoundry/ml/autogen/client/docs/CreateDatasetRequestDto.md)
|
|
188
|
+
- [CreateExperimentRequestDto](truefoundry/ml/autogen/client/docs/CreateExperimentRequestDto.md)
|
|
189
|
+
- [CreateExperimentResponseDto](truefoundry/ml/autogen/client/docs/CreateExperimentResponseDto.md)
|
|
190
|
+
- [CreateModelVersionRequestDto](truefoundry/ml/autogen/client/docs/CreateModelVersionRequestDto.md)
|
|
191
|
+
- [CreateMultiPartUploadForDatasetRequestDto](truefoundry/ml/autogen/client/docs/CreateMultiPartUploadForDatasetRequestDto.md)
|
|
192
|
+
- [CreateMultiPartUploadForDatasetResponseDto](truefoundry/ml/autogen/client/docs/CreateMultiPartUploadForDatasetResponseDto.md)
|
|
193
|
+
- [CreateMultiPartUploadRequestDto](truefoundry/ml/autogen/client/docs/CreateMultiPartUploadRequestDto.md)
|
|
194
|
+
- [CreatePythonDeploymentConfigRequestDto](truefoundry/ml/autogen/client/docs/CreatePythonDeploymentConfigRequestDto.md)
|
|
195
|
+
- [CreatePythonDeploymentConfigResponseDto](truefoundry/ml/autogen/client/docs/CreatePythonDeploymentConfigResponseDto.md)
|
|
196
|
+
- [CreateRunRequestDto](truefoundry/ml/autogen/client/docs/CreateRunRequestDto.md)
|
|
197
|
+
- [CreateRunResponseDto](truefoundry/ml/autogen/client/docs/CreateRunResponseDto.md)
|
|
198
|
+
- [DatasetDto](truefoundry/ml/autogen/client/docs/DatasetDto.md)
|
|
199
|
+
- [DatasetResponseDto](truefoundry/ml/autogen/client/docs/DatasetResponseDto.md)
|
|
200
|
+
- [DeleteArtifactVersionsRequestDto](truefoundry/ml/autogen/client/docs/DeleteArtifactVersionsRequestDto.md)
|
|
201
|
+
- [DeleteDatasetRequestDto](truefoundry/ml/autogen/client/docs/DeleteDatasetRequestDto.md)
|
|
202
|
+
- [DeleteModelVersionRequestDto](truefoundry/ml/autogen/client/docs/DeleteModelVersionRequestDto.md)
|
|
203
|
+
- [DeleteRunRequest](truefoundry/ml/autogen/client/docs/DeleteRunRequest.md)
|
|
204
|
+
- [DeleteTagRequestDto](truefoundry/ml/autogen/client/docs/DeleteTagRequestDto.md)
|
|
205
|
+
- [ExperimentDto](truefoundry/ml/autogen/client/docs/ExperimentDto.md)
|
|
206
|
+
- [ExperimentIdRequestDto](truefoundry/ml/autogen/client/docs/ExperimentIdRequestDto.md)
|
|
207
|
+
- [ExperimentResponseDto](truefoundry/ml/autogen/client/docs/ExperimentResponseDto.md)
|
|
208
|
+
- [ExperimentTagDto](truefoundry/ml/autogen/client/docs/ExperimentTagDto.md)
|
|
209
|
+
- [FeatureDto](truefoundry/ml/autogen/client/docs/FeatureDto.md)
|
|
210
|
+
- [FeatureValueType](truefoundry/ml/autogen/client/docs/FeatureValueType.md)
|
|
211
|
+
- [FileInfoDto](truefoundry/ml/autogen/client/docs/FileInfoDto.md)
|
|
212
|
+
- [FinalizeArtifactVersionRequestDto](truefoundry/ml/autogen/client/docs/FinalizeArtifactVersionRequestDto.md)
|
|
213
|
+
- [GetExperimentResponseDto](truefoundry/ml/autogen/client/docs/GetExperimentResponseDto.md)
|
|
214
|
+
- [GetLatestRunLogResponseDto](truefoundry/ml/autogen/client/docs/GetLatestRunLogResponseDto.md)
|
|
215
|
+
- [GetMetricHistoryResponse](truefoundry/ml/autogen/client/docs/GetMetricHistoryResponse.md)
|
|
216
|
+
- [GetSignedURLForDatasetWriteRequestDto](truefoundry/ml/autogen/client/docs/GetSignedURLForDatasetWriteRequestDto.md)
|
|
217
|
+
- [GetSignedURLsForArtifactVersionReadRequestDto](truefoundry/ml/autogen/client/docs/GetSignedURLsForArtifactVersionReadRequestDto.md)
|
|
218
|
+
- [GetSignedURLsForArtifactVersionReadResponseDto](truefoundry/ml/autogen/client/docs/GetSignedURLsForArtifactVersionReadResponseDto.md)
|
|
219
|
+
- [GetSignedURLsForArtifactVersionWriteRequestDto](truefoundry/ml/autogen/client/docs/GetSignedURLsForArtifactVersionWriteRequestDto.md)
|
|
220
|
+
- [GetSignedURLsForArtifactVersionWriteResponseDto](truefoundry/ml/autogen/client/docs/GetSignedURLsForArtifactVersionWriteResponseDto.md)
|
|
221
|
+
- [GetSignedURLsForDatasetReadRequestDto](truefoundry/ml/autogen/client/docs/GetSignedURLsForDatasetReadRequestDto.md)
|
|
222
|
+
- [GetSignedURLsForDatasetReadResponseDto](truefoundry/ml/autogen/client/docs/GetSignedURLsForDatasetReadResponseDto.md)
|
|
223
|
+
- [GetSignedURLsForDatasetWriteResponseDto](truefoundry/ml/autogen/client/docs/GetSignedURLsForDatasetWriteResponseDto.md)
|
|
224
|
+
- [GetTenantIdResponseDto](truefoundry/ml/autogen/client/docs/GetTenantIdResponseDto.md)
|
|
225
|
+
- [HTTPValidationError](truefoundry/ml/autogen/client/docs/HTTPValidationError.md)
|
|
226
|
+
- [ImageContentPart](truefoundry/ml/autogen/client/docs/ImageContentPart.md)
|
|
227
|
+
- [ImageUrl](truefoundry/ml/autogen/client/docs/ImageUrl.md)
|
|
228
|
+
- [InternalMetadata](truefoundry/ml/autogen/client/docs/InternalMetadata.md)
|
|
229
|
+
- [LatestRunLogDto](truefoundry/ml/autogen/client/docs/LatestRunLogDto.md)
|
|
230
|
+
- [ListArtifactVersionsRequestDto](truefoundry/ml/autogen/client/docs/ListArtifactVersionsRequestDto.md)
|
|
231
|
+
- [ListArtifactVersionsResponseDto](truefoundry/ml/autogen/client/docs/ListArtifactVersionsResponseDto.md)
|
|
232
|
+
- [ListArtifactsRequestDto](truefoundry/ml/autogen/client/docs/ListArtifactsRequestDto.md)
|
|
233
|
+
- [ListArtifactsResponseDto](truefoundry/ml/autogen/client/docs/ListArtifactsResponseDto.md)
|
|
234
|
+
- [ListColumsResponseDto](truefoundry/ml/autogen/client/docs/ListColumsResponseDto.md)
|
|
235
|
+
- [ListDatasetsRequestDto](truefoundry/ml/autogen/client/docs/ListDatasetsRequestDto.md)
|
|
236
|
+
- [ListDatasetsResponseDto](truefoundry/ml/autogen/client/docs/ListDatasetsResponseDto.md)
|
|
237
|
+
- [ListExperimentsResponseDto](truefoundry/ml/autogen/client/docs/ListExperimentsResponseDto.md)
|
|
238
|
+
- [ListFilesForArtifactVersionRequestDto](truefoundry/ml/autogen/client/docs/ListFilesForArtifactVersionRequestDto.md)
|
|
239
|
+
- [ListFilesForArtifactVersionsResponseDto](truefoundry/ml/autogen/client/docs/ListFilesForArtifactVersionsResponseDto.md)
|
|
240
|
+
- [ListFilesForDatasetRequestDto](truefoundry/ml/autogen/client/docs/ListFilesForDatasetRequestDto.md)
|
|
241
|
+
- [ListFilesForDatasetResponseDto](truefoundry/ml/autogen/client/docs/ListFilesForDatasetResponseDto.md)
|
|
242
|
+
- [ListLatestRunLogsResponseDto](truefoundry/ml/autogen/client/docs/ListLatestRunLogsResponseDto.md)
|
|
243
|
+
- [ListMetricHistoryRequestDto](truefoundry/ml/autogen/client/docs/ListMetricHistoryRequestDto.md)
|
|
244
|
+
- [ListMetricHistoryResponseDto](truefoundry/ml/autogen/client/docs/ListMetricHistoryResponseDto.md)
|
|
245
|
+
- [ListModelVersionResponseDto](truefoundry/ml/autogen/client/docs/ListModelVersionResponseDto.md)
|
|
246
|
+
- [ListModelVersionsRequestDto](truefoundry/ml/autogen/client/docs/ListModelVersionsRequestDto.md)
|
|
247
|
+
- [ListModelsRequestDto](truefoundry/ml/autogen/client/docs/ListModelsRequestDto.md)
|
|
248
|
+
- [ListModelsResponseDto](truefoundry/ml/autogen/client/docs/ListModelsResponseDto.md)
|
|
249
|
+
- [ListRunArtifactsResponseDto](truefoundry/ml/autogen/client/docs/ListRunArtifactsResponseDto.md)
|
|
250
|
+
- [ListRunLogsResponseDto](truefoundry/ml/autogen/client/docs/ListRunLogsResponseDto.md)
|
|
251
|
+
- [ListSeedExperimentsResponseDto](truefoundry/ml/autogen/client/docs/ListSeedExperimentsResponseDto.md)
|
|
252
|
+
- [LogBatchRequestDto](truefoundry/ml/autogen/client/docs/LogBatchRequestDto.md)
|
|
253
|
+
- [LogMetricRequestDto](truefoundry/ml/autogen/client/docs/LogMetricRequestDto.md)
|
|
254
|
+
- [LogParamRequestDto](truefoundry/ml/autogen/client/docs/LogParamRequestDto.md)
|
|
255
|
+
- [Method](truefoundry/ml/autogen/client/docs/Method.md)
|
|
256
|
+
- [MetricCollectionDto](truefoundry/ml/autogen/client/docs/MetricCollectionDto.md)
|
|
257
|
+
- [MetricDto](truefoundry/ml/autogen/client/docs/MetricDto.md)
|
|
258
|
+
- [MimeType](truefoundry/ml/autogen/client/docs/MimeType.md)
|
|
259
|
+
- [ModelConfiguration](truefoundry/ml/autogen/client/docs/ModelConfiguration.md)
|
|
260
|
+
- [ModelDto](truefoundry/ml/autogen/client/docs/ModelDto.md)
|
|
261
|
+
- [ModelResponseDto](truefoundry/ml/autogen/client/docs/ModelResponseDto.md)
|
|
262
|
+
- [ModelSchemaDto](truefoundry/ml/autogen/client/docs/ModelSchemaDto.md)
|
|
263
|
+
- [ModelVersionDto](truefoundry/ml/autogen/client/docs/ModelVersionDto.md)
|
|
264
|
+
- [ModelVersionResponseDto](truefoundry/ml/autogen/client/docs/ModelVersionResponseDto.md)
|
|
265
|
+
- [MultiPartUploadDto](truefoundry/ml/autogen/client/docs/MultiPartUploadDto.md)
|
|
266
|
+
- [MultiPartUploadResponseDto](truefoundry/ml/autogen/client/docs/MultiPartUploadResponseDto.md)
|
|
267
|
+
- [MultiPartUploadStorageProvider](truefoundry/ml/autogen/client/docs/MultiPartUploadStorageProvider.md)
|
|
268
|
+
- [NotifyArtifactVersionFailureDto](truefoundry/ml/autogen/client/docs/NotifyArtifactVersionFailureDto.md)
|
|
269
|
+
- [OpenapiSpec](truefoundry/ml/autogen/client/docs/OpenapiSpec.md)
|
|
270
|
+
- [ParamDto](truefoundry/ml/autogen/client/docs/ParamDto.md)
|
|
271
|
+
- [Parameters](truefoundry/ml/autogen/client/docs/Parameters.md)
|
|
272
|
+
- [PredictionType](truefoundry/ml/autogen/client/docs/PredictionType.md)
|
|
273
|
+
- [ResolveAgentAppResponseDto](truefoundry/ml/autogen/client/docs/ResolveAgentAppResponseDto.md)
|
|
274
|
+
- [RestoreRunRequestDto](truefoundry/ml/autogen/client/docs/RestoreRunRequestDto.md)
|
|
275
|
+
- [RunDataDto](truefoundry/ml/autogen/client/docs/RunDataDto.md)
|
|
276
|
+
- [RunDto](truefoundry/ml/autogen/client/docs/RunDto.md)
|
|
277
|
+
- [RunInfoDto](truefoundry/ml/autogen/client/docs/RunInfoDto.md)
|
|
278
|
+
- [RunLogDto](truefoundry/ml/autogen/client/docs/RunLogDto.md)
|
|
279
|
+
- [RunLogInputDto](truefoundry/ml/autogen/client/docs/RunLogInputDto.md)
|
|
280
|
+
- [RunResponseDto](truefoundry/ml/autogen/client/docs/RunResponseDto.md)
|
|
281
|
+
- [RunTagDto](truefoundry/ml/autogen/client/docs/RunTagDto.md)
|
|
282
|
+
- [SearchRunsRequestDto](truefoundry/ml/autogen/client/docs/SearchRunsRequestDto.md)
|
|
283
|
+
- [SearchRunsResponseDto](truefoundry/ml/autogen/client/docs/SearchRunsResponseDto.md)
|
|
284
|
+
- [SetExperimentTagRequestDto](truefoundry/ml/autogen/client/docs/SetExperimentTagRequestDto.md)
|
|
285
|
+
- [SetTagRequestDto](truefoundry/ml/autogen/client/docs/SetTagRequestDto.md)
|
|
286
|
+
- [SignedURLDto](truefoundry/ml/autogen/client/docs/SignedURLDto.md)
|
|
287
|
+
- [Stop](truefoundry/ml/autogen/client/docs/Stop.md)
|
|
288
|
+
- [StoreRunLogsRequestDto](truefoundry/ml/autogen/client/docs/StoreRunLogsRequestDto.md)
|
|
289
|
+
- [SystemMessage](truefoundry/ml/autogen/client/docs/SystemMessage.md)
|
|
290
|
+
- [Text](truefoundry/ml/autogen/client/docs/Text.md)
|
|
291
|
+
- [TextContentPart](truefoundry/ml/autogen/client/docs/TextContentPart.md)
|
|
292
|
+
- [UpdateArtifactVersionRequestDto](truefoundry/ml/autogen/client/docs/UpdateArtifactVersionRequestDto.md)
|
|
293
|
+
- [UpdateDatasetRequestDto](truefoundry/ml/autogen/client/docs/UpdateDatasetRequestDto.md)
|
|
294
|
+
- [UpdateExperimentRequestDto](truefoundry/ml/autogen/client/docs/UpdateExperimentRequestDto.md)
|
|
295
|
+
- [UpdateModelVersionRequestDto](truefoundry/ml/autogen/client/docs/UpdateModelVersionRequestDto.md)
|
|
296
|
+
- [UpdateRunRequestDto](truefoundry/ml/autogen/client/docs/UpdateRunRequestDto.md)
|
|
297
|
+
- [UpdateRunResponseDto](truefoundry/ml/autogen/client/docs/UpdateRunResponseDto.md)
|
|
298
|
+
- [Url](truefoundry/ml/autogen/client/docs/Url.md)
|
|
299
|
+
- [UserMessage](truefoundry/ml/autogen/client/docs/UserMessage.md)
|
|
300
|
+
- [ValidationError](truefoundry/ml/autogen/client/docs/ValidationError.md)
|
|
301
|
+
- [ValidationErrorLocInner](truefoundry/ml/autogen/client/docs/ValidationErrorLocInner.md)
|
|
302
|
+
|
|
303
|
+
|
|
304
|
+
<a id="documentation-for-authorization"></a>
|
|
305
|
+
## Documentation For Authorization
|
|
306
|
+
|
|
307
|
+
|
|
308
|
+
Authentication schemes defined for the API:
|
|
309
|
+
<a id="HTTPBearer"></a>
|
|
310
|
+
### HTTPBearer
|
|
311
|
+
|
|
312
|
+
- **Type**: Bearer authentication
|
|
313
|
+
|
|
314
|
+
<a id="APIKeyCookie"></a>
|
|
315
|
+
### APIKeyCookie
|
|
316
|
+
|
|
317
|
+
- **Type**: API key
|
|
318
|
+
- **API key parameter name**: accessToken
|
|
319
|
+
- **Location**:
|
|
320
|
+
|
|
321
|
+
|
|
322
|
+
## Author
|
|
File without changes
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import rich_click as click
|
|
2
|
+
|
|
3
|
+
from truefoundry.ml.cli.commands import download
|
|
4
|
+
|
|
5
|
+
click.rich_click.USE_RICH_MARKUP = True
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
@click.group()
|
|
9
|
+
def ml():
|
|
10
|
+
"""
|
|
11
|
+
TrueFoundry ML CLI
|
|
12
|
+
"""
|
|
13
|
+
pass
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
def get_ml_cli():
|
|
17
|
+
ml.add_command(download)
|
|
18
|
+
return ml
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
from typing import Optional
|
|
2
|
+
|
|
3
|
+
import click
|
|
4
|
+
|
|
5
|
+
from truefoundry.ml import get_client
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
@click.group(help="Download files of artifact/model logged with Mlfoundry")
|
|
9
|
+
def download(): ...
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
@download.command(short_help="Download files of logged model")
|
|
13
|
+
@click.option(
|
|
14
|
+
"--fqn",
|
|
15
|
+
required=True,
|
|
16
|
+
type=str,
|
|
17
|
+
help="fqn of the model version",
|
|
18
|
+
)
|
|
19
|
+
@click.option(
|
|
20
|
+
"--path",
|
|
21
|
+
type=click.Path(file_okay=False, dir_okay=True, exists=True),
|
|
22
|
+
default="./",
|
|
23
|
+
show_default=True,
|
|
24
|
+
help="path where the model files will be downloaded",
|
|
25
|
+
)
|
|
26
|
+
@click.option(
|
|
27
|
+
"--overwrite",
|
|
28
|
+
is_flag=True,
|
|
29
|
+
default=False,
|
|
30
|
+
help="flag to overwrite any existing files in the `path` directory",
|
|
31
|
+
)
|
|
32
|
+
@click.option(
|
|
33
|
+
"--progress/--no-progress",
|
|
34
|
+
is_flag=True,
|
|
35
|
+
show_default=True,
|
|
36
|
+
default=None,
|
|
37
|
+
help="If to show progress bar when downloading contents",
|
|
38
|
+
)
|
|
39
|
+
def model(fqn: str, path: str, overwrite: bool, progress: Optional[bool] = None):
|
|
40
|
+
"""
|
|
41
|
+
Download the files of logged model.\n
|
|
42
|
+
"""
|
|
43
|
+
client = get_client()
|
|
44
|
+
model_version = client.get_model_version_by_fqn(fqn=fqn)
|
|
45
|
+
download_path = model_version.download(
|
|
46
|
+
path=path, overwrite=overwrite, progress=progress
|
|
47
|
+
)
|
|
48
|
+
print(f"Downloaded model files to {download_path}")
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
@download.command(short_help="Download files of logged artifact")
|
|
52
|
+
@click.option(
|
|
53
|
+
"--fqn",
|
|
54
|
+
required=True,
|
|
55
|
+
type=str,
|
|
56
|
+
help="fqn of the artifact version",
|
|
57
|
+
)
|
|
58
|
+
@click.option(
|
|
59
|
+
"--path",
|
|
60
|
+
type=click.Path(file_okay=False, dir_okay=True, exists=True),
|
|
61
|
+
default="./",
|
|
62
|
+
show_default=True,
|
|
63
|
+
help="path where the artifact files will be downloaded",
|
|
64
|
+
)
|
|
65
|
+
@click.option(
|
|
66
|
+
"--overwrite",
|
|
67
|
+
is_flag=True,
|
|
68
|
+
default=False,
|
|
69
|
+
help="flag to overwrite any existing files in the `path` directory",
|
|
70
|
+
)
|
|
71
|
+
@click.option(
|
|
72
|
+
"--progress/--no-progress",
|
|
73
|
+
is_flag=True,
|
|
74
|
+
show_default=True,
|
|
75
|
+
default=None,
|
|
76
|
+
help="If to show progress bar when downloading contents",
|
|
77
|
+
)
|
|
78
|
+
def artifact(fqn: str, path: str, overwrite: bool, progress: Optional[bool] = None):
|
|
79
|
+
"""
|
|
80
|
+
Download the files of logged artifact.\n
|
|
81
|
+
"""
|
|
82
|
+
client = get_client()
|
|
83
|
+
artifact_version = client.get_artifact_version_by_fqn(fqn=fqn)
|
|
84
|
+
download_path = artifact_version.download(
|
|
85
|
+
path=path, overwrite=overwrite, progress=progress
|
|
86
|
+
)
|
|
87
|
+
print(f"Downloaded artifact files to {download_path}")
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import datetime
|
|
2
|
+
import os
|
|
3
|
+
import posixpath
|
|
4
|
+
from pathlib import Path
|
|
5
|
+
|
|
6
|
+
from truefoundry.ml.internal_namespace import NAMESPACE
|
|
7
|
+
|
|
8
|
+
DEFAULT_TRACKING_URI = "https://app.truefoundry.com"
|
|
9
|
+
RUN_LOGS_DIR = posixpath.join("mlf", "run-logs")
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
# TODO (chiragjn): This should be run specific, otherwise this will only be initialised once per
|
|
13
|
+
# interpreter
|
|
14
|
+
MLFOUNDRY_TMP_FOLDER = Path(os.path.abspath("./.mlfoundry"))
|
|
15
|
+
RUN_TMP_FOLDER = Path(
|
|
16
|
+
os.path.join(MLFOUNDRY_TMP_FOLDER, "logdirs")
|
|
17
|
+
) # this is the log directory
|
|
18
|
+
|
|
19
|
+
RUN_PREDICTIONS_FOLDER = Path(
|
|
20
|
+
os.path.join(RUN_TMP_FOLDER, "predictions")
|
|
21
|
+
) # path to store predictions
|
|
22
|
+
RUN_DATASET_FOLDER = Path(
|
|
23
|
+
os.path.join(RUN_TMP_FOLDER, "datasets")
|
|
24
|
+
) # path to store datasets
|
|
25
|
+
# path to store dataset stats
|
|
26
|
+
RUN_STATS_FOLDER = Path(os.path.join(RUN_TMP_FOLDER, "stats"))
|
|
27
|
+
RUN_METRICS_FOLDER = Path(os.path.join(RUN_TMP_FOLDER, "metrics"))
|
|
28
|
+
|
|
29
|
+
GET_RUN_TMP_FOLDER = Path(
|
|
30
|
+
os.path.join(MLFOUNDRY_TMP_FOLDER, "getdirs")
|
|
31
|
+
) # this is the log directory
|
|
32
|
+
GET_RUN_PREDICTIONS_FOLDER = Path(
|
|
33
|
+
os.path.join(GET_RUN_TMP_FOLDER, "predictions")
|
|
34
|
+
) # path to store predictions
|
|
35
|
+
GET_RUN_DATASET_FOLDER = Path(
|
|
36
|
+
os.path.join(GET_RUN_TMP_FOLDER, "datasets")
|
|
37
|
+
) # path to store datasets
|
|
38
|
+
|
|
39
|
+
TIME_LIMIT_THRESHOLD = datetime.timedelta(minutes=1)
|
|
40
|
+
FILE_SIZE_LIMIT_THRESHOLD = pow(10, 7) # 10MB
|
|
41
|
+
|
|
42
|
+
MULTI_DIMENSIONAL_METRICS = "multi_dimensional_metrics" # multi dimensional metrics
|
|
43
|
+
NON_MULTI_DIMENSIONAL_METRICS = (
|
|
44
|
+
"non_multi_dimensional_metrics" # non-multi dimensional metrics
|
|
45
|
+
)
|
|
46
|
+
PROB_MULTI_DIMENSIONAL_METRICS = (
|
|
47
|
+
"prob_multi_dimensional_metrics" # multi dimensional metrics
|
|
48
|
+
)
|
|
49
|
+
PROB_NON_MULTI_DIMENSIONAL_METRICS = (
|
|
50
|
+
"prob_non_multi_dimensional_metrics" # non-multi dimensional metrics
|
|
51
|
+
)
|
|
52
|
+
|
|
53
|
+
LATEST_ARTIFACT_OR_MODEL_VERSION = "latest"
|
|
54
|
+
|
|
55
|
+
ACTUAL_PREDICTION_COUNTS = "actuals_predictions_counts"
|
|
56
|
+
MLF_FOLDER_NAME = "mlf"
|
|
57
|
+
MLRUNS_FOLDER = "mlruns"
|
|
58
|
+
MLRUNS_FOLDER_NAME = Path(os.path.join(MLF_FOLDER_NAME, MLRUNS_FOLDER))
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
# Runs Name and DF constants
|
|
62
|
+
RUN_ID_COL_NAME = "run_id"
|
|
63
|
+
RUN_NAME_COL_NAME = "run_name"
|
|
64
|
+
|
|
65
|
+
TIME_FORMAT = "%Y-%m-%d_%H-%M-%S"
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
GIT_COMMIT_TAG_NAME = NAMESPACE("git.commit_sha")
|
|
69
|
+
GIT_BRANCH_TAG_NAME = NAMESPACE("git.branch_name")
|
|
70
|
+
GIT_REMOTE_URL_NAME = NAMESPACE("git.remote_url")
|
|
71
|
+
GIT_DIRTY_TAG_NAME = NAMESPACE("git.dirty")
|
|
72
|
+
PATCH_FILE_ARTIFACT_DIR = NAMESPACE / "git"
|
|
73
|
+
LOG_DATASET_ARTIFACT_DIR = NAMESPACE / "datasets"
|
|
74
|
+
# without .txt patch file does not load on UI
|
|
75
|
+
PATCH_FILE_NAME = "uncommitted_changes.patch.txt"
|
|
76
|
+
|
|
77
|
+
PYTHON_VERSION_TAG_NAME = NAMESPACE("python_version")
|
|
78
|
+
MLFOUNDRY_VERSION_TAG_NAME = NAMESPACE("mlfoundry_version")
|
|
79
|
+
TRUEFOUNDRY_VERSION_TAG_NAME = NAMESPACE("truefoundry_version")
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
ALM_SCALAR_METRICS_PATTERN = NAMESPACE("auto_logged_metrics.{data_slice}.{metric_name}")
|
|
83
|
+
ALM_ARTIFACT_PATH = NAMESPACE / "auto_logged_metrics"
|
|
84
|
+
ALM_METRICS_FILE_NAME = "metrics.json"
|
truefoundry/ml/enums.py
ADDED
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import enum
|
|
2
|
+
|
|
3
|
+
from truefoundry.ml.exceptions import MlFoundryException
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class EnumMissingMixin:
|
|
7
|
+
@classmethod
|
|
8
|
+
def _missing_(cls, value):
|
|
9
|
+
raise MlFoundryException(
|
|
10
|
+
"%r is not a valid %s. Valid types: %s"
|
|
11
|
+
% (
|
|
12
|
+
value,
|
|
13
|
+
cls.__name__,
|
|
14
|
+
", ".join([repr(m.value) for m in cls]), # type: ignore
|
|
15
|
+
)
|
|
16
|
+
)
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
class ViewType(str, EnumMissingMixin, enum.Enum):
|
|
20
|
+
# TODO (chiragjn): This should come from autogen! And also be exported in __init__.py
|
|
21
|
+
ACTIVE_ONLY = "ACTIVE_ONLY"
|
|
22
|
+
DELETED_ONLY = "DELETED_ONLY"
|
|
23
|
+
HARD_DELETED_ONLY = "HARD_DELETED_ONLY"
|
|
24
|
+
ALL = "ALL"
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
class RunStatus(str, EnumMissingMixin, enum.Enum):
|
|
28
|
+
# TODO (chiragjn): This should come from autogen! And also be exported in __init__.py
|
|
29
|
+
RUNNING = "RUNNING"
|
|
30
|
+
SCHEDULED = "SCHEDULED"
|
|
31
|
+
FINISHED = "FINISHED"
|
|
32
|
+
FAILED = "FAILED"
|
|
33
|
+
KILLED = "KILLED"
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
class FileFormat(EnumMissingMixin, enum.Enum):
|
|
37
|
+
CSV = "csv"
|
|
38
|
+
PARQUET = "parquet"
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
class ModelFramework(EnumMissingMixin, enum.Enum):
|
|
42
|
+
SKLEARN = "sklearn"
|
|
43
|
+
TENSORFLOW = "tensorflow"
|
|
44
|
+
PYTORCH = "pytorch"
|
|
45
|
+
KERAS = "keras"
|
|
46
|
+
XGBOOST = "xgboost"
|
|
47
|
+
LIGHTGBM = "lightgbm"
|
|
48
|
+
FASTAI = "fastai"
|
|
49
|
+
H2O = "h2o"
|
|
50
|
+
ONNX = "onnx"
|
|
51
|
+
SPACY = "spacy"
|
|
52
|
+
STATSMODELS = "statsmodels"
|
|
53
|
+
GLUON = "gluon"
|
|
54
|
+
PADDLE = "paddle"
|
|
55
|
+
TRANSFORMERS = "transformers"
|
|
56
|
+
UNKNOWN = "unknown"
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
class DataSlice(EnumMissingMixin, enum.Enum):
|
|
60
|
+
TRAIN = "train"
|
|
61
|
+
VALIDATE = "validate"
|
|
62
|
+
TEST = "test"
|
|
63
|
+
PREDICTION = "prediction"
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
class ModelType(EnumMissingMixin, enum.Enum):
|
|
67
|
+
BINARY_CLASSIFICATION = "binary_classification"
|
|
68
|
+
MULTICLASS_CLASSIFICATION = "multiclass_classification"
|
|
69
|
+
REGRESSION = "regression"
|
|
70
|
+
TIMESERIES = "timeseries"
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Define all the env variable names that users
|
|
3
|
+
can use
|
|
4
|
+
"""
|
|
5
|
+
|
|
6
|
+
# NOTE: These are shared between servicefoundry and mlfoundry
|
|
7
|
+
TRACKING_HOST_GLOBAL = "TFY_HOST"
|
|
8
|
+
API_KEY_GLOBAL = "TFY_API_KEY"
|
|
9
|
+
DISABLE_MULTIPART_UPLOAD = "MLF_DISABLE_MULTIPART_UPLOAD"
|
|
10
|
+
INTERNAL_ENV_VARS = [
|
|
11
|
+
"TFY_INTERNAL_APPLICATION_ID",
|
|
12
|
+
"TFY_INTERNAL_JOB_RUN_NAME",
|
|
13
|
+
]
|