ml-management 0.6.3rc13__tar.gz → 0.6.3rc15__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- ml_management-0.6.3rc15/ML_management/__init__.py +1 -0
- {ml_management-0.6.3rc13 → ml_management-0.6.3rc15}/ML_management/graphql/schema.py +36 -36
- {ml_management-0.6.3rc13 → ml_management-0.6.3rc15}/ML_management/mlmanagement/active_job.py +4 -4
- {ml_management-0.6.3rc13 → ml_management-0.6.3rc15}/ML_management/mlmanagement/batcher.py +4 -2
- {ml_management-0.6.3rc13 → ml_management-0.6.3rc15}/ML_management/mlmanagement/log_api.py +10 -10
- {ml_management-0.6.3rc13 → ml_management-0.6.3rc15}/ML_management/registry/exceptions.py +2 -2
- {ml_management-0.6.3rc13 → ml_management-0.6.3rc15}/ML_management/variables.py +1 -1
- {ml_management-0.6.3rc13 → ml_management-0.6.3rc15}/PKG-INFO +1 -1
- {ml_management-0.6.3rc13 → ml_management-0.6.3rc15}/pyproject.toml +1 -1
- ml_management-0.6.3rc13/ML_management/__init__.py +0 -1
- {ml_management-0.6.3rc13 → ml_management-0.6.3rc15}/ML_management/base_exceptions.py +0 -0
- {ml_management-0.6.3rc13 → ml_management-0.6.3rc15}/ML_management/collectors/__init__.py +0 -0
- {ml_management-0.6.3rc13 → ml_management-0.6.3rc15}/ML_management/collectors/collector_pattern.py +0 -0
- {ml_management-0.6.3rc13 → ml_management-0.6.3rc15}/ML_management/collectors/collector_pattern_to_methods_map.py +0 -0
- {ml_management-0.6.3rc13 → ml_management-0.6.3rc15}/ML_management/collectors/collectors.py +0 -0
- {ml_management-0.6.3rc13 → ml_management-0.6.3rc15}/ML_management/collectors/dummy/__init__.py +0 -0
- {ml_management-0.6.3rc13 → ml_management-0.6.3rc15}/ML_management/collectors/dummy/dummy_collector.py +0 -0
- {ml_management-0.6.3rc13 → ml_management-0.6.3rc15}/ML_management/collectors/s3/__init__.py +0 -0
- {ml_management-0.6.3rc13 → ml_management-0.6.3rc15}/ML_management/collectors/s3/s3collector.py +0 -0
- {ml_management-0.6.3rc13 → ml_management-0.6.3rc15}/ML_management/collectors/topic_markers/__init__.py +0 -0
- {ml_management-0.6.3rc13 → ml_management-0.6.3rc15}/ML_management/collectors/topic_markers/api_schema.py +0 -0
- {ml_management-0.6.3rc13 → ml_management-0.6.3rc15}/ML_management/collectors/topic_markers/topic_markers_collector.py +0 -0
- {ml_management-0.6.3rc13 → ml_management-0.6.3rc15}/ML_management/dataset_loader/__init__.py +0 -0
- {ml_management-0.6.3rc13 → ml_management-0.6.3rc15}/ML_management/dataset_loader/base_splits_dataset_loader.py +0 -0
- {ml_management-0.6.3rc13 → ml_management-0.6.3rc15}/ML_management/dataset_loader/dataset_loader_pattern.py +0 -0
- {ml_management-0.6.3rc13 → ml_management-0.6.3rc15}/ML_management/dataset_loader/dataset_loader_pattern_to_methods_map.py +0 -0
- {ml_management-0.6.3rc13 → ml_management-0.6.3rc15}/ML_management/dataset_loader/poisoned_images_dataset_loader.py +0 -0
- {ml_management-0.6.3rc13 → ml_management-0.6.3rc15}/ML_management/dataset_loader/templates/__init__.py +0 -0
- {ml_management-0.6.3rc13 → ml_management-0.6.3rc15}/ML_management/dataset_loader/templates/dummy_dataset_loader/__init__.py +0 -0
- {ml_management-0.6.3rc13 → ml_management-0.6.3rc15}/ML_management/dataset_loader/templates/dummy_dataset_loader/conda.yaml +0 -0
- {ml_management-0.6.3rc13 → ml_management-0.6.3rc15}/ML_management/dataset_loader/templates/dummy_dataset_loader/dummy_dataset.py +0 -0
- {ml_management-0.6.3rc13 → ml_management-0.6.3rc15}/ML_management/dataset_loader/templates/upload.py +0 -0
- {ml_management-0.6.3rc13 → ml_management-0.6.3rc15}/ML_management/executor/__init__.py +0 -0
- {ml_management-0.6.3rc13 → ml_management-0.6.3rc15}/ML_management/executor/base_executor.py +0 -0
- {ml_management-0.6.3rc13 → ml_management-0.6.3rc15}/ML_management/executor/executor_pattern.py +0 -0
- {ml_management-0.6.3rc13 → ml_management-0.6.3rc15}/ML_management/executor/executor_pattern_to_methods_map.py +0 -0
- {ml_management-0.6.3rc13 → ml_management-0.6.3rc15}/ML_management/executor/no_model_executor_pattern.py +0 -0
- {ml_management-0.6.3rc13 → ml_management-0.6.3rc15}/ML_management/executor/patterns.py +0 -0
- {ml_management-0.6.3rc13 → ml_management-0.6.3rc15}/ML_management/executor/templates/__init__.py +0 -0
- {ml_management-0.6.3rc13 → ml_management-0.6.3rc15}/ML_management/executor/templates/eval/__init__.py +0 -0
- {ml_management-0.6.3rc13 → ml_management-0.6.3rc15}/ML_management/executor/templates/eval/conda.yaml +0 -0
- {ml_management-0.6.3rc13 → ml_management-0.6.3rc15}/ML_management/executor/templates/eval/eval_executor.py +0 -0
- {ml_management-0.6.3rc13 → ml_management-0.6.3rc15}/ML_management/executor/templates/finetune/__init__.py +0 -0
- {ml_management-0.6.3rc13 → ml_management-0.6.3rc15}/ML_management/executor/templates/finetune/conda.yaml +0 -0
- {ml_management-0.6.3rc13 → ml_management-0.6.3rc15}/ML_management/executor/templates/finetune/finetune_executor.py +0 -0
- {ml_management-0.6.3rc13 → ml_management-0.6.3rc15}/ML_management/executor/templates/train/__init__.py +0 -0
- {ml_management-0.6.3rc13 → ml_management-0.6.3rc15}/ML_management/executor/templates/train/conda.yaml +0 -0
- {ml_management-0.6.3rc13 → ml_management-0.6.3rc15}/ML_management/executor/templates/train/train_executor.py +0 -0
- {ml_management-0.6.3rc13 → ml_management-0.6.3rc15}/ML_management/executor/templates/upload.py +0 -0
- {ml_management-0.6.3rc13 → ml_management-0.6.3rc15}/ML_management/executor/upload_model_mode.py +0 -0
- {ml_management-0.6.3rc13 → ml_management-0.6.3rc15}/ML_management/graphql/__init__.py +0 -0
- {ml_management-0.6.3rc13 → ml_management-0.6.3rc15}/ML_management/graphql/send_graphql_request.py +0 -0
- {ml_management-0.6.3rc13 → ml_management-0.6.3rc15}/ML_management/mlmanagement/__init__.py +0 -0
- {ml_management-0.6.3rc13 → ml_management-0.6.3rc15}/ML_management/mlmanagement/backend_api.py +0 -0
- {ml_management-0.6.3rc13 → ml_management-0.6.3rc15}/ML_management/mlmanagement/jsonschema_exceptions.py +0 -0
- {ml_management-0.6.3rc13 → ml_management-0.6.3rc15}/ML_management/mlmanagement/jsonschema_inference.py +0 -0
- {ml_management-0.6.3rc13 → ml_management-0.6.3rc15}/ML_management/mlmanagement/load_api.py +0 -0
- {ml_management-0.6.3rc13 → ml_management-0.6.3rc15}/ML_management/mlmanagement/model_type.py +0 -0
- {ml_management-0.6.3rc13 → ml_management-0.6.3rc15}/ML_management/mlmanagement/module_finder.py +0 -0
- {ml_management-0.6.3rc13 → ml_management-0.6.3rc15}/ML_management/mlmanagement/server_mlmanager_exceptions.py +0 -0
- {ml_management-0.6.3rc13 → ml_management-0.6.3rc15}/ML_management/mlmanagement/utils.py +0 -0
- {ml_management-0.6.3rc13 → ml_management-0.6.3rc15}/ML_management/mlmanagement/visibility_options.py +0 -0
- {ml_management-0.6.3rc13 → ml_management-0.6.3rc15}/ML_management/model/__init__.py +0 -0
- {ml_management-0.6.3rc13 → ml_management-0.6.3rc15}/ML_management/model/model_type_to_methods_map.py +0 -0
- {ml_management-0.6.3rc13 → ml_management-0.6.3rc15}/ML_management/model/patterns/__init__.py +0 -0
- {ml_management-0.6.3rc13 → ml_management-0.6.3rc15}/ML_management/model/patterns/evaluatable_model.py +0 -0
- {ml_management-0.6.3rc13 → ml_management-0.6.3rc15}/ML_management/model/patterns/gradient_model.py +0 -0
- {ml_management-0.6.3rc13 → ml_management-0.6.3rc15}/ML_management/model/patterns/model_pattern.py +0 -0
- {ml_management-0.6.3rc13 → ml_management-0.6.3rc15}/ML_management/model/patterns/model_with_losses.py +0 -0
- {ml_management-0.6.3rc13 → ml_management-0.6.3rc15}/ML_management/model/patterns/model_with_metrics.py +0 -0
- {ml_management-0.6.3rc13 → ml_management-0.6.3rc15}/ML_management/model/patterns/preprocessor.py +0 -0
- {ml_management-0.6.3rc13 → ml_management-0.6.3rc15}/ML_management/model/patterns/retrainable_model.py +0 -0
- {ml_management-0.6.3rc13 → ml_management-0.6.3rc15}/ML_management/model/patterns/target_layer.py +0 -0
- {ml_management-0.6.3rc13 → ml_management-0.6.3rc15}/ML_management/model/patterns/torch_model.py +0 -0
- {ml_management-0.6.3rc13 → ml_management-0.6.3rc15}/ML_management/model/patterns/trainable_model.py +0 -0
- {ml_management-0.6.3rc13 → ml_management-0.6.3rc15}/ML_management/model/patterns/transformer.py +0 -0
- {ml_management-0.6.3rc13 → ml_management-0.6.3rc15}/ML_management/registry/__init__.py +0 -0
- {ml_management-0.6.3rc13 → ml_management-0.6.3rc15}/ML_management/s3/__init__.py +0 -0
- {ml_management-0.6.3rc13 → ml_management-0.6.3rc15}/ML_management/s3/manager.py +0 -0
- {ml_management-0.6.3rc13 → ml_management-0.6.3rc15}/ML_management/s3/utils.py +0 -0
- {ml_management-0.6.3rc13 → ml_management-0.6.3rc15}/ML_management/sdk/__init__.py +0 -0
- {ml_management-0.6.3rc13 → ml_management-0.6.3rc15}/ML_management/sdk/dataset_loader.py +0 -0
- {ml_management-0.6.3rc13 → ml_management-0.6.3rc15}/ML_management/sdk/executor.py +0 -0
- {ml_management-0.6.3rc13 → ml_management-0.6.3rc15}/ML_management/sdk/experiment.py +0 -0
- {ml_management-0.6.3rc13 → ml_management-0.6.3rc15}/ML_management/sdk/job.py +0 -0
- {ml_management-0.6.3rc13 → ml_management-0.6.3rc15}/ML_management/sdk/model.py +0 -0
- {ml_management-0.6.3rc13 → ml_management-0.6.3rc15}/ML_management/sdk/parameters.py +0 -0
- {ml_management-0.6.3rc13 → ml_management-0.6.3rc15}/ML_management/sdk/sdk.py +0 -0
- {ml_management-0.6.3rc13 → ml_management-0.6.3rc15}/ML_management/session.py +0 -0
- {ml_management-0.6.3rc13 → ml_management-0.6.3rc15}/ML_management/singleton_pattern.py +0 -0
- {ml_management-0.6.3rc13 → ml_management-0.6.3rc15}/ML_management/test_sdk/__init__.py +0 -0
- {ml_management-0.6.3rc13 → ml_management-0.6.3rc15}/ML_management/test_sdk/local_sdk_test.sh +0 -0
- {ml_management-0.6.3rc13 → ml_management-0.6.3rc15}/ML_management/test_sdk/mock_server.js +0 -0
- {ml_management-0.6.3rc13 → ml_management-0.6.3rc15}/ML_management/test_sdk/package.json +0 -0
- {ml_management-0.6.3rc13 → ml_management-0.6.3rc15}/ML_management/test_sdk/requirements.txt +0 -0
- {ml_management-0.6.3rc13 → ml_management-0.6.3rc15}/ML_management/test_sdk/test_sdk.py +0 -0
- {ml_management-0.6.3rc13 → ml_management-0.6.3rc15}/ML_management/tests/__init__.py +0 -0
- {ml_management-0.6.3rc13 → ml_management-0.6.3rc15}/ML_management/tests/requirements.txt +0 -0
- {ml_management-0.6.3rc13 → ml_management-0.6.3rc15}/ML_management/tests/run_all_tests.sh +0 -0
- {ml_management-0.6.3rc13 → ml_management-0.6.3rc15}/ML_management/tests/test_jsonschema_inference.py +0 -0
- {ml_management-0.6.3rc13 → ml_management-0.6.3rc15}/ML_management/uploader_data/__init__.py +0 -0
- {ml_management-0.6.3rc13 → ml_management-0.6.3rc15}/ML_management/uploader_data/s3_uploader.py +0 -0
- {ml_management-0.6.3rc13 → ml_management-0.6.3rc15}/ML_management/uploader_data/utils.py +0 -0
- {ml_management-0.6.3rc13 → ml_management-0.6.3rc15}/README.md +0 -0
@@ -0,0 +1 @@
|
|
1
|
+
__version__ = "0.6.3rc15"
|
@@ -147,13 +147,15 @@ class ExecutorParamsInput(sgqlc.types.Input):
|
|
147
147
|
|
148
148
|
class JobFilterSettings(sgqlc.types.Input):
|
149
149
|
__schema__ = schema
|
150
|
-
__field_names__ = ('dataset_loader_version', 'end_interval', 'executor_version', 'experiment_name', 'init_model_version', 'job_name', 'periodic_type', 'start_interval', 'status')
|
150
|
+
__field_names__ = ('dataset_loader_version', 'end_interval', 'executor_version', 'experiment_id', 'experiment_name', 'init_model_version', 'job_name', 'periodic_type', 'start_interval', 'status')
|
151
151
|
dataset_loader_version = sgqlc.types.Field('ObjectVersionInput', graphql_name='datasetLoaderVersion')
|
152
152
|
|
153
153
|
end_interval = sgqlc.types.Field('TimestampInterval', graphql_name='endInterval')
|
154
154
|
|
155
155
|
executor_version = sgqlc.types.Field('ObjectVersionInput', graphql_name='executorVersion')
|
156
156
|
|
157
|
+
experiment_id = sgqlc.types.Field(Int, graphql_name='experimentId')
|
158
|
+
|
157
159
|
experiment_name = sgqlc.types.Field(String, graphql_name='experimentName')
|
158
160
|
|
159
161
|
init_model_version = sgqlc.types.Field('ObjectVersionInput', graphql_name='initModelVersion')
|
@@ -1027,7 +1029,7 @@ class ExperimentPagination(sgqlc.types.Type):
|
|
1027
1029
|
|
1028
1030
|
class GraphNode(sgqlc.types.Type):
|
1029
1031
|
__schema__ = schema
|
1030
|
-
__field_names__ = ('creation_timestamp', 'list_next_node', 'name', '
|
1032
|
+
__field_names__ = ('creation_timestamp', 'list_next_node', 'name', 'obj_uuid', 'root_obj_uuid', 'source_name', 'source_obj_uuid', 'source_version', 'upload_model_type', 'version')
|
1031
1033
|
creation_timestamp = sgqlc.types.Field(sgqlc.types.non_null(Long), graphql_name='creationTimestamp')
|
1032
1034
|
|
1033
1035
|
list_next_node = sgqlc.types.Field(sgqlc.types.list_of(sgqlc.types.non_null('GraphNode')), graphql_name='listNextNode', args=sgqlc.types.ArgDict((
|
@@ -1042,13 +1044,13 @@ class GraphNode(sgqlc.types.Type):
|
|
1042
1044
|
|
1043
1045
|
name = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name='name')
|
1044
1046
|
|
1045
|
-
|
1047
|
+
obj_uuid = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name='objUuid')
|
1046
1048
|
|
1047
|
-
|
1049
|
+
root_obj_uuid = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name='rootObjUuid')
|
1048
1050
|
|
1049
1051
|
source_name = sgqlc.types.Field(String, graphql_name='sourceName')
|
1050
1052
|
|
1051
|
-
|
1053
|
+
source_obj_uuid = sgqlc.types.Field(ID, graphql_name='sourceObjUuid')
|
1052
1054
|
|
1053
1055
|
source_version = sgqlc.types.Field(Int, graphql_name='sourceVersion')
|
1054
1056
|
|
@@ -1126,16 +1128,16 @@ class JobPagination(sgqlc.types.Type):
|
|
1126
1128
|
|
1127
1129
|
class JobParams(sgqlc.types.Type):
|
1128
1130
|
__schema__ = schema
|
1129
|
-
__field_names__ = ('additional_system_packages', 'cron_expression', 'executor_params', '
|
1131
|
+
__field_names__ = ('additional_system_packages', 'cron_expression', 'executor_params', 'experiment', 'experiment_id', 'gpu', 'list_role_data_params', 'list_role_model_params', 'periodic_type')
|
1130
1132
|
additional_system_packages = sgqlc.types.Field(sgqlc.types.list_of(sgqlc.types.non_null(String)), graphql_name='additionalSystemPackages')
|
1131
1133
|
|
1132
1134
|
cron_expression = sgqlc.types.Field(String, graphql_name='cronExpression')
|
1133
1135
|
|
1134
1136
|
executor_params = sgqlc.types.Field(sgqlc.types.non_null(ExecutorParams), graphql_name='executorParams')
|
1135
1137
|
|
1136
|
-
|
1138
|
+
experiment = sgqlc.types.Field(Experiment, graphql_name='experiment')
|
1137
1139
|
|
1138
|
-
|
1140
|
+
experiment_id = sgqlc.types.Field(Int, graphql_name='experimentId')
|
1139
1141
|
|
1140
1142
|
gpu = sgqlc.types.Field(Boolean, graphql_name='gpu')
|
1141
1143
|
|
@@ -1276,7 +1278,7 @@ class ModelVersionChoiceParams(sgqlc.types.Type):
|
|
1276
1278
|
|
1277
1279
|
class ModelVersionInfo(sgqlc.types.Type):
|
1278
1280
|
__schema__ = schema
|
1279
|
-
__field_names__ = ('artifacts', 'available_collectors', 'available_dataset_loader_versions', 'available_dataset_loaders', 'available_executor_versions', 'available_executors', 'build_job', 'creation_timestamp', 'description', 'experiment', '
|
1281
|
+
__field_names__ = ('artifacts', 'available_collectors', 'available_dataset_loader_versions', 'available_dataset_loaders', 'available_executor_versions', 'available_executors', 'build_job', 'creation_timestamp', 'description', 'experiment', 'get_conda_env', 'group_secret_uuid', 'last_updated_timestamp', 'list_deployed_jobs', 'list_job', 'list_lineage_model_version', 'list_new_model_from_version', 'list_new_version_from_version', 'list_next_graph_nodes', 'list_next_model_version', 'list_requirements', 'model', 'model_method_schemas', 'name', 'owner', 'pagination_available_collectors', 'pagination_available_dataset_loader_versions', 'pagination_available_dataset_loaders', 'pagination_available_executor_versions', 'pagination_available_executors', 'pagination_deployed_jobs', 'pagination_job', 'pagination_lineage_model_version', 'pagination_new_model_from_version', 'pagination_new_version_from_version', 'pagination_next_model_version', 'parent_job', 'root_model_version', 'source_executor_version', 'source_model_version', 'tags', 'upload_model_type', 'venv_build_job', 'version', 'visibility')
|
1280
1282
|
artifacts = sgqlc.types.Field(sgqlc.types.non_null(Artifacts), graphql_name='artifacts')
|
1281
1283
|
|
1282
1284
|
available_collectors = sgqlc.types.Field(sgqlc.types.non_null(sgqlc.types.list_of(sgqlc.types.non_null(InlineObject))), graphql_name='availableCollectors')
|
@@ -1311,11 +1313,9 @@ class ModelVersionInfo(sgqlc.types.Type):
|
|
1311
1313
|
|
1312
1314
|
experiment = sgqlc.types.Field(Experiment, graphql_name='experiment')
|
1313
1315
|
|
1314
|
-
experiment_name = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name='experimentName')
|
1315
|
-
|
1316
1316
|
get_conda_env = sgqlc.types.Field(sgqlc.types.non_null(JSON), graphql_name='getCondaEnv')
|
1317
1317
|
|
1318
|
-
|
1318
|
+
group_secret_uuid = sgqlc.types.Field(String, graphql_name='groupSecretUuid')
|
1319
1319
|
|
1320
1320
|
last_updated_timestamp = sgqlc.types.Field(Long, graphql_name='lastUpdatedTimestamp')
|
1321
1321
|
|
@@ -1772,47 +1772,47 @@ class Mutation(sgqlc.types.Type):
|
|
1772
1772
|
'''
|
1773
1773
|
|
1774
1774
|
log_metric = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name='logMetric', args=sgqlc.types.ArgDict((
|
1775
|
-
('job_run_id', sgqlc.types.Arg(sgqlc.types.non_null(String), graphql_name='jobRunId', default=None)),
|
1776
1775
|
('metric', sgqlc.types.Arg(sgqlc.types.non_null(MetricInput), graphql_name='metric', default=None)),
|
1776
|
+
('secret_uuid', sgqlc.types.Arg(sgqlc.types.non_null(String), graphql_name='secretUuid', default=None)),
|
1777
1777
|
))
|
1778
1778
|
)
|
1779
1779
|
'''Arguments:
|
1780
1780
|
|
1781
|
-
* `job_run_id` (`String!`)None
|
1782
1781
|
* `metric` (`MetricInput!`)None
|
1782
|
+
* `secret_uuid` (`String!`)None
|
1783
1783
|
'''
|
1784
1784
|
|
1785
1785
|
log_metrics = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name='logMetrics', args=sgqlc.types.ArgDict((
|
1786
|
-
('job_run_id', sgqlc.types.Arg(sgqlc.types.non_null(String), graphql_name='jobRunId', default=None)),
|
1787
1786
|
('metrics', sgqlc.types.Arg(sgqlc.types.non_null(sgqlc.types.list_of(sgqlc.types.non_null(MetricInput))), graphql_name='metrics', default=None)),
|
1787
|
+
('secret_uuid', sgqlc.types.Arg(sgqlc.types.non_null(String), graphql_name='secretUuid', default=None)),
|
1788
1788
|
))
|
1789
1789
|
)
|
1790
1790
|
'''Arguments:
|
1791
1791
|
|
1792
|
-
* `job_run_id` (`String!`)None
|
1793
1792
|
* `metrics` (`[MetricInput!]!`)None
|
1793
|
+
* `secret_uuid` (`String!`)None
|
1794
1794
|
'''
|
1795
1795
|
|
1796
1796
|
log_param = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name='logParam', args=sgqlc.types.ArgDict((
|
1797
|
-
('job_run_id', sgqlc.types.Arg(sgqlc.types.non_null(String), graphql_name='jobRunId', default=None)),
|
1798
1797
|
('param', sgqlc.types.Arg(sgqlc.types.non_null(ParamInput), graphql_name='param', default=None)),
|
1798
|
+
('secret_uuid', sgqlc.types.Arg(sgqlc.types.non_null(String), graphql_name='secretUuid', default=None)),
|
1799
1799
|
))
|
1800
1800
|
)
|
1801
1801
|
'''Arguments:
|
1802
1802
|
|
1803
|
-
* `job_run_id` (`String!`)None
|
1804
1803
|
* `param` (`ParamInput!`)None
|
1804
|
+
* `secret_uuid` (`String!`)None
|
1805
1805
|
'''
|
1806
1806
|
|
1807
1807
|
log_params = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name='logParams', args=sgqlc.types.ArgDict((
|
1808
|
-
('job_run_id', sgqlc.types.Arg(sgqlc.types.non_null(String), graphql_name='jobRunId', default=None)),
|
1809
1808
|
('params', sgqlc.types.Arg(sgqlc.types.non_null(sgqlc.types.list_of(sgqlc.types.non_null(ParamInput))), graphql_name='params', default=None)),
|
1809
|
+
('secret_uuid', sgqlc.types.Arg(sgqlc.types.non_null(String), graphql_name='secretUuid', default=None)),
|
1810
1810
|
))
|
1811
1811
|
)
|
1812
1812
|
'''Arguments:
|
1813
1813
|
|
1814
|
-
* `job_run_id` (`String!`)None
|
1815
1814
|
* `params` (`[ParamInput!]!`)None
|
1815
|
+
* `secret_uuid` (`String!`)None
|
1816
1816
|
'''
|
1817
1817
|
|
1818
1818
|
rebuild_model_version_image = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name='rebuildModelVersionImage', args=sgqlc.types.ArgDict((
|
@@ -1954,15 +1954,15 @@ class Mutation(sgqlc.types.Type):
|
|
1954
1954
|
'''
|
1955
1955
|
|
1956
1956
|
stop_local_job = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name='stopLocalJob', args=sgqlc.types.ArgDict((
|
1957
|
-
('job_run_id', sgqlc.types.Arg(sgqlc.types.non_null(String), graphql_name='jobRunId', default=None)),
|
1958
1957
|
('message', sgqlc.types.Arg(String, graphql_name='message', default=None)),
|
1958
|
+
('secret_uuid', sgqlc.types.Arg(sgqlc.types.non_null(String), graphql_name='secretUuid', default=None)),
|
1959
1959
|
('status', sgqlc.types.Arg(sgqlc.types.non_null(JobStatus), graphql_name='status', default='SUCCESSFUL')),
|
1960
1960
|
))
|
1961
1961
|
)
|
1962
1962
|
'''Arguments:
|
1963
1963
|
|
1964
|
-
* `job_run_id` (`String!`)None
|
1965
1964
|
* `message` (`String`)None (default: `null`)
|
1965
|
+
* `secret_uuid` (`String!`)None
|
1966
1966
|
* `status` (`JobStatus!`)None (default: `SUCCESSFUL`)
|
1967
1967
|
'''
|
1968
1968
|
|
@@ -2085,7 +2085,7 @@ class Param(sgqlc.types.Type):
|
|
2085
2085
|
|
2086
2086
|
class Query(sgqlc.types.Type):
|
2087
2087
|
__schema__ = schema
|
2088
|
-
__field_names__ = ('dataset_loader_from_name', 'dataset_loader_version_from_name_version', '
|
2088
|
+
__field_names__ = ('dataset_loader_from_name', 'dataset_loader_version_from_name_version', 'dataset_loader_version_from_obj_uuid', 'executor_from_name', 'executor_version_from_name_version', 'executor_version_from_obj_uuid', 'experiment_from_id', 'experiment_from_name', 'graph_node', 'is_inference_model_ready', 'job_from_name', 'list_artifacts_by_source_paths', 'list_build_job', 'list_dataset_loader', 'list_executor', 'list_experiment', 'list_graph_node', 'list_initial_executor_version', 'list_initial_model_version', 'list_job', 'list_model', 'list_subtree_graph_node', 'model_from_name', 'model_version_from_name_version', 'model_version_from_obj_uuid', 'pagination_dataset_loader', 'pagination_executor', 'pagination_experiment', 'pagination_initial_executor_version', 'pagination_initial_model_version', 'pagination_job', 'pagination_model', 'warning_delete_model_query')
|
2089
2089
|
dataset_loader_from_name = sgqlc.types.Field(sgqlc.types.non_null(DatasetLoaderInfo), graphql_name='datasetLoaderFromName', args=sgqlc.types.ArgDict((
|
2090
2090
|
('name', sgqlc.types.Arg(sgqlc.types.non_null(String), graphql_name='name', default=None)),
|
2091
2091
|
))
|
@@ -2104,13 +2104,13 @@ class Query(sgqlc.types.Type):
|
|
2104
2104
|
* `dataset_loader_version` (`ObjectVersionOptionalInput!`)None
|
2105
2105
|
'''
|
2106
2106
|
|
2107
|
-
|
2108
|
-
('
|
2107
|
+
dataset_loader_version_from_obj_uuid = sgqlc.types.Field(sgqlc.types.non_null(DatasetLoaderVersionInfo), graphql_name='datasetLoaderVersionFromObjUuid', args=sgqlc.types.ArgDict((
|
2108
|
+
('obj_uuid', sgqlc.types.Arg(sgqlc.types.non_null(String), graphql_name='objUuid', default=None)),
|
2109
2109
|
))
|
2110
2110
|
)
|
2111
2111
|
'''Arguments:
|
2112
2112
|
|
2113
|
-
* `
|
2113
|
+
* `obj_uuid` (`String!`)None
|
2114
2114
|
'''
|
2115
2115
|
|
2116
2116
|
executor_from_name = sgqlc.types.Field(sgqlc.types.non_null(ExecutorInfo), graphql_name='executorFromName', args=sgqlc.types.ArgDict((
|
@@ -2131,13 +2131,13 @@ class Query(sgqlc.types.Type):
|
|
2131
2131
|
* `executor_version` (`ObjectVersionOptionalInput!`)None
|
2132
2132
|
'''
|
2133
2133
|
|
2134
|
-
|
2135
|
-
('
|
2134
|
+
executor_version_from_obj_uuid = sgqlc.types.Field(sgqlc.types.non_null(ExecutorVersionInfo), graphql_name='executorVersionFromObjUuid', args=sgqlc.types.ArgDict((
|
2135
|
+
('obj_uuid', sgqlc.types.Arg(sgqlc.types.non_null(String), graphql_name='objUuid', default=None)),
|
2136
2136
|
))
|
2137
2137
|
)
|
2138
2138
|
'''Arguments:
|
2139
2139
|
|
2140
|
-
* `
|
2140
|
+
* `obj_uuid` (`String!`)None
|
2141
2141
|
'''
|
2142
2142
|
|
2143
2143
|
experiment_from_id = sgqlc.types.Field(sgqlc.types.non_null(Experiment), graphql_name='experimentFromId', args=sgqlc.types.ArgDict((
|
@@ -2159,12 +2159,12 @@ class Query(sgqlc.types.Type):
|
|
2159
2159
|
'''
|
2160
2160
|
|
2161
2161
|
graph_node = sgqlc.types.Field(sgqlc.types.non_null(GraphNode), graphql_name='graphNode', args=sgqlc.types.ArgDict((
|
2162
|
-
('
|
2162
|
+
('obj_uuid', sgqlc.types.Arg(sgqlc.types.non_null(String), graphql_name='objUuid', default=None)),
|
2163
2163
|
))
|
2164
2164
|
)
|
2165
2165
|
'''Arguments:
|
2166
2166
|
|
2167
|
-
* `
|
2167
|
+
* `obj_uuid` (`String!`)None
|
2168
2168
|
'''
|
2169
2169
|
|
2170
2170
|
is_inference_model_ready = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name='isInferenceModelReady', args=sgqlc.types.ArgDict((
|
@@ -2241,12 +2241,12 @@ class Query(sgqlc.types.Type):
|
|
2241
2241
|
'''
|
2242
2242
|
|
2243
2243
|
list_subtree_graph_node = sgqlc.types.Field(sgqlc.types.non_null(sgqlc.types.list_of(sgqlc.types.non_null(GraphNode))), graphql_name='listSubtreeGraphNode', args=sgqlc.types.ArgDict((
|
2244
|
-
('
|
2244
|
+
('root_obj_uuid', sgqlc.types.Arg(sgqlc.types.non_null(String), graphql_name='rootObjUuid', default=None)),
|
2245
2245
|
))
|
2246
2246
|
)
|
2247
2247
|
'''Arguments:
|
2248
2248
|
|
2249
|
-
* `
|
2249
|
+
* `root_obj_uuid` (`String!`)None
|
2250
2250
|
'''
|
2251
2251
|
|
2252
2252
|
model_from_name = sgqlc.types.Field(sgqlc.types.non_null(ModelInfo), graphql_name='modelFromName', args=sgqlc.types.ArgDict((
|
@@ -2267,13 +2267,13 @@ class Query(sgqlc.types.Type):
|
|
2267
2267
|
* `model_version` (`ObjectVersionOptionalInput!`)None
|
2268
2268
|
'''
|
2269
2269
|
|
2270
|
-
|
2271
|
-
('
|
2270
|
+
model_version_from_obj_uuid = sgqlc.types.Field(sgqlc.types.non_null(ModelVersionInfo), graphql_name='modelVersionFromObjUuid', args=sgqlc.types.ArgDict((
|
2271
|
+
('obj_uuid', sgqlc.types.Arg(sgqlc.types.non_null(String), graphql_name='objUuid', default=None)),
|
2272
2272
|
))
|
2273
2273
|
)
|
2274
2274
|
'''Arguments:
|
2275
2275
|
|
2276
|
-
* `
|
2276
|
+
* `obj_uuid` (`String!`)None
|
2277
2277
|
'''
|
2278
2278
|
|
2279
2279
|
pagination_dataset_loader = sgqlc.types.Field(sgqlc.types.non_null(DatasetLoaderPagination), graphql_name='paginationDatasetLoader', args=sgqlc.types.ArgDict((
|
{ml_management-0.6.3rc13 → ml_management-0.6.3rc15}/ML_management/mlmanagement/active_job.py
RENAMED
@@ -20,8 +20,8 @@ class ActiveJob(ExecutionJob):
|
|
20
20
|
def __enter__(self):
|
21
21
|
op = Operation(schema.Mutation)
|
22
22
|
op.start_local_job(job_name=self.name)
|
23
|
-
|
24
|
-
variables.
|
23
|
+
secret_uuid = send_graphql_request(op=op, json_response=False).start_local_job
|
24
|
+
variables.secret_uuid = secret_uuid
|
25
25
|
return self
|
26
26
|
|
27
27
|
def __exit__(self, exc_type, exc_val, exc_tb):
|
@@ -31,11 +31,11 @@ class ActiveJob(ExecutionJob):
|
|
31
31
|
else:
|
32
32
|
status = "SUCCESSFUL"
|
33
33
|
op = Operation(schema.Mutation)
|
34
|
-
op.stop_local_job(
|
34
|
+
op.stop_local_job(secret_uuid=variables.secret_uuid, status=status)
|
35
35
|
try:
|
36
36
|
_ = send_graphql_request(op=op, json_response=False).stop_local_job
|
37
37
|
finally:
|
38
|
-
variables.
|
38
|
+
variables.secret_uuid = None
|
39
39
|
|
40
40
|
|
41
41
|
def start_local_job(
|
@@ -42,11 +42,14 @@ class Batcher(metaclass=Singleton):
|
|
42
42
|
|
43
43
|
def log_batch_metric(self, stop_event):
|
44
44
|
while not stop_event.is_set():
|
45
|
+
time.sleep(METRIC_ACCUMULATION_DURATION)
|
46
|
+
if len(self.batch) == 0:
|
47
|
+
continue
|
45
48
|
metrics_to_log = self.batch.copy()
|
46
49
|
op = Operation(schema.Mutation)
|
47
50
|
op.log_metrics(
|
48
51
|
metrics=[MetricInput(key=key, value=value, step=step) for key, value, step in metrics_to_log],
|
49
|
-
|
52
|
+
secret_uuid=variables.secret_uuid,
|
50
53
|
)
|
51
54
|
try:
|
52
55
|
send_graphql_request(op, json_response=False, timeout=5)
|
@@ -54,7 +57,6 @@ class Batcher(metaclass=Singleton):
|
|
54
57
|
self.batch.popleft()
|
55
58
|
except Exception as err:
|
56
59
|
warnings.warn(str(err))
|
57
|
-
time.sleep(METRIC_ACCUMULATION_DURATION)
|
58
60
|
|
59
61
|
def wait_log_metrics(self):
|
60
62
|
stop_time = time.time()
|
@@ -454,7 +454,7 @@ def _request_log_model(kwargs: dict):
|
|
454
454
|
kwargs.pop(delete_arg, None)
|
455
455
|
|
456
456
|
log_request = {
|
457
|
-
"
|
457
|
+
"secret_uuid": variables.secret_uuid,
|
458
458
|
}
|
459
459
|
|
460
460
|
artifacts_path = os.path.join(kwargs["model_path"], CONFIG_KEY_ARTIFACTS)
|
@@ -482,7 +482,7 @@ def _request_log_artifacts(
|
|
482
482
|
"""Send request for log artifact."""
|
483
483
|
log_artifact_request = {
|
484
484
|
"artifact_path": artifact_path,
|
485
|
-
"
|
485
|
+
"secret_uuid": variables.secret_uuid,
|
486
486
|
"model_type": model_type,
|
487
487
|
"name": name,
|
488
488
|
"version": version,
|
@@ -625,7 +625,7 @@ def log_metric(key: str, value: float, step: int = 0, no_wait=False):
|
|
625
625
|
=======
|
626
626
|
None
|
627
627
|
"""
|
628
|
-
if not variables.
|
628
|
+
if not variables.secret_uuid:
|
629
629
|
raise MLMClientError("The log_metric function must be called from the active job.")
|
630
630
|
if not (isinstance(value, (float, int)) and math.isfinite(value)):
|
631
631
|
warnings.warn(f"The log_metric function can log only float or integer values. Value {value} is not log.")
|
@@ -639,7 +639,7 @@ def log_metric(key: str, value: float, step: int = 0, no_wait=False):
|
|
639
639
|
return
|
640
640
|
if no_wait:
|
641
641
|
op = Operation(schema.Mutation)
|
642
|
-
op.log_metric(metric=MetricInput(key=key, value=value, step=step),
|
642
|
+
op.log_metric(metric=MetricInput(key=key, value=value, step=step), secret_uuid=variables.secret_uuid)
|
643
643
|
try:
|
644
644
|
return send_graphql_request(op, json_response=False).log_metric
|
645
645
|
except Exception as err:
|
@@ -674,7 +674,7 @@ def log_metrics(metrics: Dict[str, float], step: int = 0, no_wait=False):
|
|
674
674
|
=======
|
675
675
|
None
|
676
676
|
"""
|
677
|
-
if not variables.
|
677
|
+
if not variables.secret_uuid:
|
678
678
|
raise MLMClientError("The log_metric function must be called from the active job.")
|
679
679
|
|
680
680
|
metrics_to_log = {}
|
@@ -693,7 +693,7 @@ def log_metrics(metrics: Dict[str, float], step: int = 0, no_wait=False):
|
|
693
693
|
op = Operation(schema.Mutation)
|
694
694
|
op.log_metrics(
|
695
695
|
metrics=[MetricInput(key=key, value=value, step=step) for key, value in metrics_to_log.items()],
|
696
|
-
|
696
|
+
secret_uuid=variables.secret_uuid,
|
697
697
|
)
|
698
698
|
try:
|
699
699
|
return send_graphql_request(op, json_response=False).log_metrics
|
@@ -725,10 +725,10 @@ def _log_param(key: str, value: str):
|
|
725
725
|
if not isinstance(value, str):
|
726
726
|
warnings.warn(f"The log_param function can log only string values. Value {value} is not log.")
|
727
727
|
return
|
728
|
-
if not variables.
|
728
|
+
if not variables.secret_uuid:
|
729
729
|
raise MLMClientError("The log_param function must be called from the active job.")
|
730
730
|
op = Operation(schema.Mutation)
|
731
|
-
op.log_param(param=ParamInput(key=key, value=value),
|
731
|
+
op.log_param(param=ParamInput(key=key, value=value), secret_uuid=variables.secret_uuid)
|
732
732
|
try:
|
733
733
|
return send_graphql_request(op, json_response=False).log_param
|
734
734
|
except Exception as err:
|
@@ -753,7 +753,7 @@ def _log_params(params: Dict[str, str]):
|
|
753
753
|
=======
|
754
754
|
None
|
755
755
|
"""
|
756
|
-
if not variables.
|
756
|
+
if not variables.secret_uuid:
|
757
757
|
raise MLMClientError("The log_metric function must be called from the active job.")
|
758
758
|
|
759
759
|
for key, value in params:
|
@@ -764,7 +764,7 @@ def _log_params(params: Dict[str, str]):
|
|
764
764
|
return
|
765
765
|
op = Operation(schema.Mutation)
|
766
766
|
op.log_params(
|
767
|
-
params=[ParamInput(key=key, value=value) for key, value in params.items()],
|
767
|
+
params=[ParamInput(key=key, value=value) for key, value in params.items()], secret_uuid=variables.secret_uuid
|
768
768
|
)
|
769
769
|
try:
|
770
770
|
return send_graphql_request(op, json_response=False).log_params
|
@@ -112,7 +112,7 @@ class JobNotFoundNameError(RegistryError):
|
|
112
112
|
return (JobNotFoundNameError, (self.job_name,))
|
113
113
|
|
114
114
|
|
115
|
-
class
|
115
|
+
class JobHasNoObjUuidError(RegistryError):
|
116
116
|
"""Define job has no run id exception."""
|
117
117
|
|
118
118
|
def __init__(self, job_name: str):
|
@@ -122,4 +122,4 @@ class JobHasNoRunIdError(RegistryError):
|
|
122
122
|
|
123
123
|
def __reduce__(self):
|
124
124
|
"""Define reduce method to make exception picklable."""
|
125
|
-
return (
|
125
|
+
return (JobHasNoObjUuidError, (self.job_name,))
|
@@ -1 +0,0 @@
|
|
1
|
-
__version__ = "0.6.3rc13"
|
File without changes
|
File without changes
|
{ml_management-0.6.3rc13 → ml_management-0.6.3rc15}/ML_management/collectors/collector_pattern.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
{ml_management-0.6.3rc13 → ml_management-0.6.3rc15}/ML_management/collectors/dummy/__init__.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
{ml_management-0.6.3rc13 → ml_management-0.6.3rc15}/ML_management/collectors/s3/s3collector.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{ml_management-0.6.3rc13 → ml_management-0.6.3rc15}/ML_management/dataset_loader/__init__.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{ml_management-0.6.3rc13 → ml_management-0.6.3rc15}/ML_management/dataset_loader/templates/upload.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
{ml_management-0.6.3rc13 → ml_management-0.6.3rc15}/ML_management/executor/executor_pattern.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{ml_management-0.6.3rc13 → ml_management-0.6.3rc15}/ML_management/executor/templates/__init__.py
RENAMED
File without changes
|
File without changes
|
{ml_management-0.6.3rc13 → ml_management-0.6.3rc15}/ML_management/executor/templates/eval/conda.yaml
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{ml_management-0.6.3rc13 → ml_management-0.6.3rc15}/ML_management/executor/templates/upload.py
RENAMED
File without changes
|
{ml_management-0.6.3rc13 → ml_management-0.6.3rc15}/ML_management/executor/upload_model_mode.py
RENAMED
File without changes
|
File without changes
|
{ml_management-0.6.3rc13 → ml_management-0.6.3rc15}/ML_management/graphql/send_graphql_request.py
RENAMED
File without changes
|
File without changes
|
{ml_management-0.6.3rc13 → ml_management-0.6.3rc15}/ML_management/mlmanagement/backend_api.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{ml_management-0.6.3rc13 → ml_management-0.6.3rc15}/ML_management/mlmanagement/model_type.py
RENAMED
File without changes
|
{ml_management-0.6.3rc13 → ml_management-0.6.3rc15}/ML_management/mlmanagement/module_finder.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
{ml_management-0.6.3rc13 → ml_management-0.6.3rc15}/ML_management/mlmanagement/visibility_options.py
RENAMED
File without changes
|
File without changes
|
{ml_management-0.6.3rc13 → ml_management-0.6.3rc15}/ML_management/model/model_type_to_methods_map.py
RENAMED
File without changes
|
{ml_management-0.6.3rc13 → ml_management-0.6.3rc15}/ML_management/model/patterns/__init__.py
RENAMED
File without changes
|
File without changes
|
{ml_management-0.6.3rc13 → ml_management-0.6.3rc15}/ML_management/model/patterns/gradient_model.py
RENAMED
File without changes
|
{ml_management-0.6.3rc13 → ml_management-0.6.3rc15}/ML_management/model/patterns/model_pattern.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
{ml_management-0.6.3rc13 → ml_management-0.6.3rc15}/ML_management/model/patterns/preprocessor.py
RENAMED
File without changes
|
File without changes
|
{ml_management-0.6.3rc13 → ml_management-0.6.3rc15}/ML_management/model/patterns/target_layer.py
RENAMED
File without changes
|
{ml_management-0.6.3rc13 → ml_management-0.6.3rc15}/ML_management/model/patterns/torch_model.py
RENAMED
File without changes
|
{ml_management-0.6.3rc13 → ml_management-0.6.3rc15}/ML_management/model/patterns/trainable_model.py
RENAMED
File without changes
|
{ml_management-0.6.3rc13 → ml_management-0.6.3rc15}/ML_management/model/patterns/transformer.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{ml_management-0.6.3rc13 → ml_management-0.6.3rc15}/ML_management/test_sdk/local_sdk_test.sh
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{ml_management-0.6.3rc13 → ml_management-0.6.3rc15}/ML_management/tests/test_jsonschema_inference.py
RENAMED
File without changes
|
File without changes
|
{ml_management-0.6.3rc13 → ml_management-0.6.3rc15}/ML_management/uploader_data/s3_uploader.py
RENAMED
File without changes
|
File without changes
|
File without changes
|