ml-management 0.6.3rc16__tar.gz → 0.6.3rc18__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- ml_management-0.6.3rc18/ML_management/__init__.py +1 -0
- {ml_management-0.6.3rc16 → ml_management-0.6.3rc18}/ML_management/graphql/schema.py +69 -2
- {ml_management-0.6.3rc16 → ml_management-0.6.3rc18}/ML_management/mlmanagement/active_job.py +2 -2
- {ml_management-0.6.3rc16 → ml_management-0.6.3rc18}/ML_management/mlmanagement/batcher.py +8 -5
- {ml_management-0.6.3rc16 → ml_management-0.6.3rc18}/ML_management/mlmanagement/load_api.py +2 -1
- {ml_management-0.6.3rc16 → ml_management-0.6.3rc18}/ML_management/mlmanagement/log_api.py +20 -7
- {ml_management-0.6.3rc16 → ml_management-0.6.3rc18}/ML_management/sdk/job.py +1 -6
- {ml_management-0.6.3rc16 → ml_management-0.6.3rc18}/PKG-INFO +1 -1
- {ml_management-0.6.3rc16 → ml_management-0.6.3rc18}/pyproject.toml +1 -1
- ml_management-0.6.3rc16/ML_management/__init__.py +0 -1
- {ml_management-0.6.3rc16 → ml_management-0.6.3rc18}/ML_management/base_exceptions.py +0 -0
- {ml_management-0.6.3rc16 → ml_management-0.6.3rc18}/ML_management/collectors/__init__.py +0 -0
- {ml_management-0.6.3rc16 → ml_management-0.6.3rc18}/ML_management/collectors/collector_pattern.py +0 -0
- {ml_management-0.6.3rc16 → ml_management-0.6.3rc18}/ML_management/collectors/collector_pattern_to_methods_map.py +0 -0
- {ml_management-0.6.3rc16 → ml_management-0.6.3rc18}/ML_management/collectors/collectors.py +0 -0
- {ml_management-0.6.3rc16 → ml_management-0.6.3rc18}/ML_management/collectors/dummy/__init__.py +0 -0
- {ml_management-0.6.3rc16 → ml_management-0.6.3rc18}/ML_management/collectors/dummy/dummy_collector.py +0 -0
- {ml_management-0.6.3rc16 → ml_management-0.6.3rc18}/ML_management/collectors/s3/__init__.py +0 -0
- {ml_management-0.6.3rc16 → ml_management-0.6.3rc18}/ML_management/collectors/s3/s3collector.py +0 -0
- {ml_management-0.6.3rc16 → ml_management-0.6.3rc18}/ML_management/collectors/topic_markers/__init__.py +0 -0
- {ml_management-0.6.3rc16 → ml_management-0.6.3rc18}/ML_management/collectors/topic_markers/api_schema.py +0 -0
- {ml_management-0.6.3rc16 → ml_management-0.6.3rc18}/ML_management/collectors/topic_markers/topic_markers_collector.py +0 -0
- {ml_management-0.6.3rc16 → ml_management-0.6.3rc18}/ML_management/dataset_loader/__init__.py +0 -0
- {ml_management-0.6.3rc16 → ml_management-0.6.3rc18}/ML_management/dataset_loader/base_splits_dataset_loader.py +0 -0
- {ml_management-0.6.3rc16 → ml_management-0.6.3rc18}/ML_management/dataset_loader/dataset_loader_pattern.py +0 -0
- {ml_management-0.6.3rc16 → ml_management-0.6.3rc18}/ML_management/dataset_loader/dataset_loader_pattern_to_methods_map.py +0 -0
- {ml_management-0.6.3rc16 → ml_management-0.6.3rc18}/ML_management/dataset_loader/poisoned_images_dataset_loader.py +0 -0
- {ml_management-0.6.3rc16 → ml_management-0.6.3rc18}/ML_management/dataset_loader/templates/__init__.py +0 -0
- {ml_management-0.6.3rc16 → ml_management-0.6.3rc18}/ML_management/dataset_loader/templates/dummy_dataset_loader/__init__.py +0 -0
- {ml_management-0.6.3rc16 → ml_management-0.6.3rc18}/ML_management/dataset_loader/templates/dummy_dataset_loader/conda.yaml +0 -0
- {ml_management-0.6.3rc16 → ml_management-0.6.3rc18}/ML_management/dataset_loader/templates/dummy_dataset_loader/dummy_dataset.py +0 -0
- {ml_management-0.6.3rc16 → ml_management-0.6.3rc18}/ML_management/dataset_loader/templates/upload.py +0 -0
- {ml_management-0.6.3rc16 → ml_management-0.6.3rc18}/ML_management/executor/__init__.py +0 -0
- {ml_management-0.6.3rc16 → ml_management-0.6.3rc18}/ML_management/executor/base_executor.py +0 -0
- {ml_management-0.6.3rc16 → ml_management-0.6.3rc18}/ML_management/executor/executor_pattern.py +0 -0
- {ml_management-0.6.3rc16 → ml_management-0.6.3rc18}/ML_management/executor/executor_pattern_to_methods_map.py +0 -0
- {ml_management-0.6.3rc16 → ml_management-0.6.3rc18}/ML_management/executor/no_model_executor_pattern.py +0 -0
- {ml_management-0.6.3rc16 → ml_management-0.6.3rc18}/ML_management/executor/patterns.py +0 -0
- {ml_management-0.6.3rc16 → ml_management-0.6.3rc18}/ML_management/executor/templates/__init__.py +0 -0
- {ml_management-0.6.3rc16 → ml_management-0.6.3rc18}/ML_management/executor/templates/eval/__init__.py +0 -0
- {ml_management-0.6.3rc16 → ml_management-0.6.3rc18}/ML_management/executor/templates/eval/conda.yaml +0 -0
- {ml_management-0.6.3rc16 → ml_management-0.6.3rc18}/ML_management/executor/templates/eval/eval_executor.py +0 -0
- {ml_management-0.6.3rc16 → ml_management-0.6.3rc18}/ML_management/executor/templates/finetune/__init__.py +0 -0
- {ml_management-0.6.3rc16 → ml_management-0.6.3rc18}/ML_management/executor/templates/finetune/conda.yaml +0 -0
- {ml_management-0.6.3rc16 → ml_management-0.6.3rc18}/ML_management/executor/templates/finetune/finetune_executor.py +0 -0
- {ml_management-0.6.3rc16 → ml_management-0.6.3rc18}/ML_management/executor/templates/train/__init__.py +0 -0
- {ml_management-0.6.3rc16 → ml_management-0.6.3rc18}/ML_management/executor/templates/train/conda.yaml +0 -0
- {ml_management-0.6.3rc16 → ml_management-0.6.3rc18}/ML_management/executor/templates/train/train_executor.py +0 -0
- {ml_management-0.6.3rc16 → ml_management-0.6.3rc18}/ML_management/executor/templates/upload.py +0 -0
- {ml_management-0.6.3rc16 → ml_management-0.6.3rc18}/ML_management/executor/upload_model_mode.py +0 -0
- {ml_management-0.6.3rc16 → ml_management-0.6.3rc18}/ML_management/graphql/__init__.py +0 -0
- {ml_management-0.6.3rc16 → ml_management-0.6.3rc18}/ML_management/graphql/send_graphql_request.py +0 -0
- {ml_management-0.6.3rc16 → ml_management-0.6.3rc18}/ML_management/mlmanagement/__init__.py +0 -0
- {ml_management-0.6.3rc16 → ml_management-0.6.3rc18}/ML_management/mlmanagement/backend_api.py +0 -0
- {ml_management-0.6.3rc16 → ml_management-0.6.3rc18}/ML_management/mlmanagement/jsonschema_exceptions.py +0 -0
- {ml_management-0.6.3rc16 → ml_management-0.6.3rc18}/ML_management/mlmanagement/jsonschema_inference.py +0 -0
- {ml_management-0.6.3rc16 → ml_management-0.6.3rc18}/ML_management/mlmanagement/model_type.py +0 -0
- {ml_management-0.6.3rc16 → ml_management-0.6.3rc18}/ML_management/mlmanagement/module_finder.py +0 -0
- {ml_management-0.6.3rc16 → ml_management-0.6.3rc18}/ML_management/mlmanagement/server_mlmanager_exceptions.py +0 -0
- {ml_management-0.6.3rc16 → ml_management-0.6.3rc18}/ML_management/mlmanagement/utils.py +0 -0
- {ml_management-0.6.3rc16 → ml_management-0.6.3rc18}/ML_management/mlmanagement/visibility_options.py +0 -0
- {ml_management-0.6.3rc16 → ml_management-0.6.3rc18}/ML_management/model/__init__.py +0 -0
- {ml_management-0.6.3rc16 → ml_management-0.6.3rc18}/ML_management/model/model_type_to_methods_map.py +0 -0
- {ml_management-0.6.3rc16 → ml_management-0.6.3rc18}/ML_management/model/patterns/__init__.py +0 -0
- {ml_management-0.6.3rc16 → ml_management-0.6.3rc18}/ML_management/model/patterns/evaluatable_model.py +0 -0
- {ml_management-0.6.3rc16 → ml_management-0.6.3rc18}/ML_management/model/patterns/gradient_model.py +0 -0
- {ml_management-0.6.3rc16 → ml_management-0.6.3rc18}/ML_management/model/patterns/model_pattern.py +0 -0
- {ml_management-0.6.3rc16 → ml_management-0.6.3rc18}/ML_management/model/patterns/model_with_losses.py +0 -0
- {ml_management-0.6.3rc16 → ml_management-0.6.3rc18}/ML_management/model/patterns/model_with_metrics.py +0 -0
- {ml_management-0.6.3rc16 → ml_management-0.6.3rc18}/ML_management/model/patterns/preprocessor.py +0 -0
- {ml_management-0.6.3rc16 → ml_management-0.6.3rc18}/ML_management/model/patterns/retrainable_model.py +0 -0
- {ml_management-0.6.3rc16 → ml_management-0.6.3rc18}/ML_management/model/patterns/target_layer.py +0 -0
- {ml_management-0.6.3rc16 → ml_management-0.6.3rc18}/ML_management/model/patterns/torch_model.py +0 -0
- {ml_management-0.6.3rc16 → ml_management-0.6.3rc18}/ML_management/model/patterns/trainable_model.py +0 -0
- {ml_management-0.6.3rc16 → ml_management-0.6.3rc18}/ML_management/model/patterns/transformer.py +0 -0
- {ml_management-0.6.3rc16 → ml_management-0.6.3rc18}/ML_management/registry/__init__.py +0 -0
- {ml_management-0.6.3rc16 → ml_management-0.6.3rc18}/ML_management/registry/exceptions.py +0 -0
- {ml_management-0.6.3rc16 → ml_management-0.6.3rc18}/ML_management/s3/__init__.py +0 -0
- {ml_management-0.6.3rc16 → ml_management-0.6.3rc18}/ML_management/s3/manager.py +0 -0
- {ml_management-0.6.3rc16 → ml_management-0.6.3rc18}/ML_management/s3/utils.py +0 -0
- {ml_management-0.6.3rc16 → ml_management-0.6.3rc18}/ML_management/sdk/__init__.py +0 -0
- {ml_management-0.6.3rc16 → ml_management-0.6.3rc18}/ML_management/sdk/dataset_loader.py +0 -0
- {ml_management-0.6.3rc16 → ml_management-0.6.3rc18}/ML_management/sdk/executor.py +0 -0
- {ml_management-0.6.3rc16 → ml_management-0.6.3rc18}/ML_management/sdk/experiment.py +0 -0
- {ml_management-0.6.3rc16 → ml_management-0.6.3rc18}/ML_management/sdk/model.py +0 -0
- {ml_management-0.6.3rc16 → ml_management-0.6.3rc18}/ML_management/sdk/parameters.py +0 -0
- {ml_management-0.6.3rc16 → ml_management-0.6.3rc18}/ML_management/sdk/sdk.py +0 -0
- {ml_management-0.6.3rc16 → ml_management-0.6.3rc18}/ML_management/session.py +0 -0
- {ml_management-0.6.3rc16 → ml_management-0.6.3rc18}/ML_management/singleton_pattern.py +0 -0
- {ml_management-0.6.3rc16 → ml_management-0.6.3rc18}/ML_management/test_sdk/__init__.py +0 -0
- {ml_management-0.6.3rc16 → ml_management-0.6.3rc18}/ML_management/test_sdk/local_sdk_test.sh +0 -0
- {ml_management-0.6.3rc16 → ml_management-0.6.3rc18}/ML_management/test_sdk/mock_server.js +0 -0
- {ml_management-0.6.3rc16 → ml_management-0.6.3rc18}/ML_management/test_sdk/package.json +0 -0
- {ml_management-0.6.3rc16 → ml_management-0.6.3rc18}/ML_management/test_sdk/requirements.txt +0 -0
- {ml_management-0.6.3rc16 → ml_management-0.6.3rc18}/ML_management/test_sdk/test_sdk.py +0 -0
- {ml_management-0.6.3rc16 → ml_management-0.6.3rc18}/ML_management/tests/__init__.py +0 -0
- {ml_management-0.6.3rc16 → ml_management-0.6.3rc18}/ML_management/tests/requirements.txt +0 -0
- {ml_management-0.6.3rc16 → ml_management-0.6.3rc18}/ML_management/tests/run_all_tests.sh +0 -0
- {ml_management-0.6.3rc16 → ml_management-0.6.3rc18}/ML_management/tests/test_jsonschema_inference.py +0 -0
- {ml_management-0.6.3rc16 → ml_management-0.6.3rc18}/ML_management/uploader_data/__init__.py +0 -0
- {ml_management-0.6.3rc16 → ml_management-0.6.3rc18}/ML_management/uploader_data/s3_uploader.py +0 -0
- {ml_management-0.6.3rc16 → ml_management-0.6.3rc18}/ML_management/uploader_data/utils.py +0 -0
- {ml_management-0.6.3rc16 → ml_management-0.6.3rc18}/ML_management/variables.py +0 -0
- {ml_management-0.6.3rc16 → ml_management-0.6.3rc18}/README.md +0 -0
@@ -0,0 +1 @@
|
|
1
|
+
__version__ = "0.6.3rc18"
|
@@ -215,11 +215,13 @@ class MethodParamsInput(sgqlc.types.Input):
|
|
215
215
|
|
216
216
|
class MetricInput(sgqlc.types.Input):
|
217
217
|
__schema__ = schema
|
218
|
-
__field_names__ = ('key', 'step', 'value')
|
218
|
+
__field_names__ = ('key', 'step', 'timestamp', 'value')
|
219
219
|
key = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name='key')
|
220
220
|
|
221
221
|
step = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name='step')
|
222
222
|
|
223
|
+
timestamp = sgqlc.types.Field(Long, graphql_name='timestamp')
|
224
|
+
|
223
225
|
value = sgqlc.types.Field(sgqlc.types.non_null(Float), graphql_name='value')
|
224
226
|
|
225
227
|
|
@@ -1110,6 +1112,15 @@ class JobInfoResponse(sgqlc.types.Type):
|
|
1110
1112
|
|
1111
1113
|
|
1112
1114
|
|
1115
|
+
class JobMetric(sgqlc.types.Type):
|
1116
|
+
__schema__ = schema
|
1117
|
+
__field_names__ = ('job_name', 'metrics')
|
1118
|
+
job_name = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name='jobName')
|
1119
|
+
|
1120
|
+
metrics = sgqlc.types.Field(sgqlc.types.non_null(sgqlc.types.list_of(sgqlc.types.non_null('Metric'))), graphql_name='metrics')
|
1121
|
+
|
1122
|
+
|
1123
|
+
|
1113
1124
|
class JobModelsSchema(sgqlc.types.Type):
|
1114
1125
|
__schema__ = schema
|
1115
1126
|
__field_names__ = ('list_role_model_method_schemas',)
|
@@ -1193,6 +1204,24 @@ class Metric(sgqlc.types.Type):
|
|
1193
1204
|
|
1194
1205
|
|
1195
1206
|
|
1207
|
+
class MetricToJobs(sgqlc.types.Type):
|
1208
|
+
__schema__ = schema
|
1209
|
+
__field_names__ = ('job_metrics', 'metric_name')
|
1210
|
+
job_metrics = sgqlc.types.Field(sgqlc.types.non_null(sgqlc.types.list_of(sgqlc.types.non_null(JobMetric))), graphql_name='jobMetrics')
|
1211
|
+
|
1212
|
+
metric_name = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name='metricName')
|
1213
|
+
|
1214
|
+
|
1215
|
+
|
1216
|
+
class MetricToJson(sgqlc.types.Type):
|
1217
|
+
__schema__ = schema
|
1218
|
+
__field_names__ = ('job_metrics', 'metric_name')
|
1219
|
+
job_metrics = sgqlc.types.Field(sgqlc.types.non_null(JSON), graphql_name='jobMetrics')
|
1220
|
+
|
1221
|
+
metric_name = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name='metricName')
|
1222
|
+
|
1223
|
+
|
1224
|
+
|
1196
1225
|
class ModelInfo(sgqlc.types.Type):
|
1197
1226
|
__schema__ = schema
|
1198
1227
|
__field_names__ = ('creation_timestamp', 'description', 'init_model_version', 'last_updated_timestamp', 'latest_model_version', 'list_model_version', 'name', 'owner', 'pagination_model_version', 'tags', 'visibility')
|
@@ -2093,7 +2122,7 @@ class Param(sgqlc.types.Type):
|
|
2093
2122
|
|
2094
2123
|
class Query(sgqlc.types.Type):
|
2095
2124
|
__schema__ = schema
|
2096
|
-
__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')
|
2125
|
+
__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_all_metric_names', '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_latest_metric_jobs', 'list_latest_metric_jobs_json', 'list_metric_jobs', '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')
|
2097
2126
|
dataset_loader_from_name = sgqlc.types.Field(sgqlc.types.non_null(DatasetLoaderInfo), graphql_name='datasetLoaderFromName', args=sgqlc.types.ArgDict((
|
2098
2127
|
('name', sgqlc.types.Arg(sgqlc.types.non_null(String), graphql_name='name', default=None)),
|
2099
2128
|
))
|
@@ -2193,6 +2222,15 @@ class Query(sgqlc.types.Type):
|
|
2193
2222
|
* `name` (`String!`)None
|
2194
2223
|
'''
|
2195
2224
|
|
2225
|
+
list_all_metric_names = sgqlc.types.Field(sgqlc.types.non_null(sgqlc.types.list_of(sgqlc.types.non_null(String))), graphql_name='listAllMetricNames', args=sgqlc.types.ArgDict((
|
2226
|
+
('job_names', sgqlc.types.Arg(sgqlc.types.non_null(sgqlc.types.list_of(sgqlc.types.non_null(String))), graphql_name='jobNames', default=None)),
|
2227
|
+
))
|
2228
|
+
)
|
2229
|
+
'''Arguments:
|
2230
|
+
|
2231
|
+
* `job_names` (`[String!]!`)None
|
2232
|
+
'''
|
2233
|
+
|
2196
2234
|
list_artifacts_by_source_paths = sgqlc.types.Field(sgqlc.types.non_null(sgqlc.types.list_of(sgqlc.types.non_null(Artifacts))), graphql_name='listArtifactsBySourcePaths', args=sgqlc.types.ArgDict((
|
2197
2235
|
('source_paths', sgqlc.types.Arg(sgqlc.types.non_null(sgqlc.types.list_of(sgqlc.types.non_null(String))), graphql_name='sourcePaths', default=None)),
|
2198
2236
|
))
|
@@ -2239,6 +2277,35 @@ class Query(sgqlc.types.Type):
|
|
2239
2277
|
|
2240
2278
|
list_job = sgqlc.types.Field(sgqlc.types.non_null(sgqlc.types.list_of(sgqlc.types.non_null(ExecutionJob))), graphql_name='listJob')
|
2241
2279
|
|
2280
|
+
list_latest_metric_jobs = sgqlc.types.Field(sgqlc.types.non_null(sgqlc.types.list_of(sgqlc.types.non_null(MetricToJobs))), graphql_name='listLatestMetricJobs', args=sgqlc.types.ArgDict((
|
2281
|
+
('job_names', sgqlc.types.Arg(sgqlc.types.non_null(sgqlc.types.list_of(sgqlc.types.non_null(String))), graphql_name='jobNames', default=None)),
|
2282
|
+
))
|
2283
|
+
)
|
2284
|
+
'''Arguments:
|
2285
|
+
|
2286
|
+
* `job_names` (`[String!]!`)None
|
2287
|
+
'''
|
2288
|
+
|
2289
|
+
list_latest_metric_jobs_json = sgqlc.types.Field(sgqlc.types.non_null(sgqlc.types.list_of(sgqlc.types.non_null(MetricToJson))), graphql_name='listLatestMetricJobsJson', args=sgqlc.types.ArgDict((
|
2290
|
+
('job_names', sgqlc.types.Arg(sgqlc.types.non_null(sgqlc.types.list_of(sgqlc.types.non_null(String))), graphql_name='jobNames', default=None)),
|
2291
|
+
))
|
2292
|
+
)
|
2293
|
+
'''Arguments:
|
2294
|
+
|
2295
|
+
* `job_names` (`[String!]!`)None
|
2296
|
+
'''
|
2297
|
+
|
2298
|
+
list_metric_jobs = sgqlc.types.Field(sgqlc.types.non_null(sgqlc.types.list_of(sgqlc.types.non_null(JobMetric))), graphql_name='listMetricJobs', args=sgqlc.types.ArgDict((
|
2299
|
+
('job_names', sgqlc.types.Arg(sgqlc.types.non_null(sgqlc.types.list_of(sgqlc.types.non_null(String))), graphql_name='jobNames', default=None)),
|
2300
|
+
('metric_name', sgqlc.types.Arg(sgqlc.types.non_null(String), graphql_name='metricName', default=None)),
|
2301
|
+
))
|
2302
|
+
)
|
2303
|
+
'''Arguments:
|
2304
|
+
|
2305
|
+
* `job_names` (`[String!]!`)None
|
2306
|
+
* `metric_name` (`String!`)None
|
2307
|
+
'''
|
2308
|
+
|
2242
2309
|
list_model = sgqlc.types.Field(sgqlc.types.non_null(sgqlc.types.list_of(sgqlc.types.non_null(ModelInfo))), graphql_name='listModel', args=sgqlc.types.ArgDict((
|
2243
2310
|
('sorting', sgqlc.types.Arg(sgqlc.types.list_of(sgqlc.types.non_null(ObjectSortBySortingInput)), graphql_name='sorting', default=None)),
|
2244
2311
|
))
|
{ml_management-0.6.3rc16 → ml_management-0.6.3rc18}/ML_management/mlmanagement/active_job.py
RENAMED
@@ -53,14 +53,14 @@ class ActiveJob:
|
|
53
53
|
|
54
54
|
|
55
55
|
def start_job(
|
56
|
-
job_name: Optional[str], experiment_name: str = DEFAULT_EXPERIMENT, visibility=VisibilityOptions.PRIVATE
|
56
|
+
job_name: Optional[str] = None, experiment_name: str = DEFAULT_EXPERIMENT, visibility=VisibilityOptions.PRIVATE
|
57
57
|
) -> ActiveJob:
|
58
58
|
"""
|
59
59
|
Create local job.
|
60
60
|
|
61
61
|
Parameters
|
62
62
|
----------
|
63
|
-
job_name: str | None
|
63
|
+
job_name: str | None=None
|
64
64
|
Name of the new job. If not passed, it will be generated.
|
65
65
|
experiment_name: str = "Default"
|
66
66
|
Name of the experiment. Default: "Default"
|
@@ -20,12 +20,12 @@ class Batcher(metaclass=Singleton):
|
|
20
20
|
self.thread = None
|
21
21
|
self.stop_event = Event()
|
22
22
|
|
23
|
-
def log_metric(self, key: str, value: float, step: int):
|
24
|
-
self.batch.append((key, value, step))
|
23
|
+
def log_metric(self, key: str, value: float, step: int, timestamp: int):
|
24
|
+
self.batch.append((key, value, step, timestamp))
|
25
25
|
self._start_thread()
|
26
26
|
|
27
|
-
def log_metrics(self, metrics: Dict[str, float], step: int):
|
28
|
-
self.batch.extend((key, value, step) for key, value in metrics.items())
|
27
|
+
def log_metrics(self, metrics: Dict[str, float], step: int, timestamp: int):
|
28
|
+
self.batch.extend((key, value, step, timestamp) for key, value in metrics.items())
|
29
29
|
self._start_thread()
|
30
30
|
|
31
31
|
def _start_thread(self):
|
@@ -49,7 +49,10 @@ class Batcher(metaclass=Singleton):
|
|
49
49
|
metrics_to_log = self.batch.copy()
|
50
50
|
op = Operation(schema.Mutation)
|
51
51
|
op.log_metrics(
|
52
|
-
metrics=[
|
52
|
+
metrics=[
|
53
|
+
MetricInput(key=key, value=value, step=step, timestamp=timestamp)
|
54
|
+
for key, value, step, timestamp in metrics_to_log
|
55
|
+
],
|
53
56
|
secret_uuid=variables.secret_uuid,
|
54
57
|
)
|
55
58
|
try:
|
@@ -57,9 +57,10 @@ def download_artifacts_by_name_version(
|
|
57
57
|
params = {
|
58
58
|
"path": os.path.normpath(path) if path else path,
|
59
59
|
"name": name,
|
60
|
-
"version": version,
|
61
60
|
"model_type": model_type.value,
|
62
61
|
}
|
62
|
+
if version:
|
63
|
+
params["version"] = version
|
63
64
|
return _request_download_artifacts(url, params, dst_path)
|
64
65
|
|
65
66
|
|
@@ -5,6 +5,7 @@ import os
|
|
5
5
|
import sys
|
6
6
|
import tarfile
|
7
7
|
import threading
|
8
|
+
import time
|
8
9
|
import warnings
|
9
10
|
from contextlib import _GeneratorContextManager
|
10
11
|
from pathlib import Path
|
@@ -117,8 +118,13 @@ def _log_object_src(
|
|
117
118
|
try:
|
118
119
|
model_path = os.path.abspath(model_path)
|
119
120
|
parts = Path(model_path).parts
|
120
|
-
|
121
|
-
|
121
|
+
extra_sys_path = str(Path(*parts[:-1]))
|
122
|
+
module_for_importlib = ".".join(parts[-1:])
|
123
|
+
if additional_local_packages:
|
124
|
+
extra_sys_path = str(Path(*parts[:-2]))
|
125
|
+
module_for_importlib = ".".join(parts[-2:])
|
126
|
+
sys.path.append(extra_sys_path)
|
127
|
+
get_object_func = getattr(importlib.import_module(module_for_importlib), INIT_FUNCTION_NAME)
|
122
128
|
python_model = get_object_func() # noqa: F841
|
123
129
|
kwargs = {
|
124
130
|
"artifact_path": artifact_path,
|
@@ -148,7 +154,7 @@ def _log_object_src(
|
|
148
154
|
sys.path = old_python_path
|
149
155
|
for module in set(sys.modules) - set(old_sys_modules):
|
150
156
|
if hasattr(sys.modules[module], "__file__"):
|
151
|
-
if sys.modules[module].__file__ and
|
157
|
+
if sys.modules[module].__file__ and extra_sys_path in sys.modules[module].__file__:
|
152
158
|
sys.modules.pop(module)
|
153
159
|
|
154
160
|
if additional_local_packages:
|
@@ -637,15 +643,18 @@ def log_metric(key: str, value: float, step: int = 0, no_wait=False):
|
|
637
643
|
f"{key}: {value} is not log."
|
638
644
|
)
|
639
645
|
return
|
646
|
+
timestamp = int(time.time() * 10e6)
|
640
647
|
if no_wait:
|
641
648
|
op = Operation(schema.Mutation)
|
642
|
-
op.log_metric(
|
649
|
+
op.log_metric(
|
650
|
+
metric=MetricInput(key=key, value=value, step=step, timestamp=timestamp), secret_uuid=variables.secret_uuid
|
651
|
+
)
|
643
652
|
try:
|
644
653
|
return send_graphql_request(op, json_response=False).log_metric
|
645
654
|
except Exception as err:
|
646
655
|
warnings.warn(str(err))
|
647
656
|
else:
|
648
|
-
Batcher().log_metric(key, value, step)
|
657
|
+
Batcher().log_metric(key, value, step, timestamp)
|
649
658
|
|
650
659
|
|
651
660
|
def log_metrics(metrics: Dict[str, float], step: int = 0, no_wait=False):
|
@@ -689,10 +698,14 @@ def log_metrics(metrics: Dict[str, float], step: int = 0, no_wait=False):
|
|
689
698
|
)
|
690
699
|
continue
|
691
700
|
metrics_to_log[key] = value
|
701
|
+
timestamp = int(time.time() * 10e6)
|
692
702
|
if no_wait:
|
693
703
|
op = Operation(schema.Mutation)
|
694
704
|
op.log_metrics(
|
695
|
-
metrics=[
|
705
|
+
metrics=[
|
706
|
+
MetricInput(key=key, value=value, step=step, timestamp=timestamp)
|
707
|
+
for key, value in metrics_to_log.items()
|
708
|
+
],
|
696
709
|
secret_uuid=variables.secret_uuid,
|
697
710
|
)
|
698
711
|
try:
|
@@ -700,7 +713,7 @@ def log_metrics(metrics: Dict[str, float], step: int = 0, no_wait=False):
|
|
700
713
|
except Exception as err:
|
701
714
|
warnings.warn(str(err))
|
702
715
|
else:
|
703
|
-
Batcher().log_metrics(metrics_to_log, step)
|
716
|
+
Batcher().log_metrics(metrics_to_log, step, timestamp)
|
704
717
|
|
705
718
|
|
706
719
|
def _log_param(key: str, value: str):
|
@@ -5,7 +5,6 @@ from enum import Enum
|
|
5
5
|
from typing import Any, Dict, List, Optional, Tuple, Union
|
6
6
|
from urllib.parse import quote
|
7
7
|
|
8
|
-
import numpy as np
|
9
8
|
import pandas as pd
|
10
9
|
import websocket
|
11
10
|
from matplotlib import pyplot as plt
|
@@ -162,11 +161,7 @@ def metric_history(
|
|
162
161
|
raise ValueError("x_axis value must be step or time")
|
163
162
|
if x_axis == "step":
|
164
163
|
x_values = [metric.step for metric in metrics]
|
165
|
-
|
166
|
-
metrics = sorted(metrics, key=lambda x: x.timestamp)
|
167
|
-
x_values = [step[0] for step in enumerate(metrics)]
|
168
|
-
else:
|
169
|
-
metrics = sorted(metrics, key=lambda x: x.step)
|
164
|
+
metrics = sorted(metrics, key=lambda x: x.step)
|
170
165
|
elif x_axis == "time":
|
171
166
|
metrics = sorted(metrics, key=lambda x: x.timestamp)
|
172
167
|
start_timestamp = metrics[0].timestamp
|
@@ -1 +0,0 @@
|
|
1
|
-
__version__ = "0.6.3rc16"
|
File without changes
|
File without changes
|
{ml_management-0.6.3rc16 → ml_management-0.6.3rc18}/ML_management/collectors/collector_pattern.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
{ml_management-0.6.3rc16 → ml_management-0.6.3rc18}/ML_management/collectors/dummy/__init__.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
{ml_management-0.6.3rc16 → ml_management-0.6.3rc18}/ML_management/collectors/s3/s3collector.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{ml_management-0.6.3rc16 → ml_management-0.6.3rc18}/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.3rc16 → ml_management-0.6.3rc18}/ML_management/dataset_loader/templates/upload.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
{ml_management-0.6.3rc16 → ml_management-0.6.3rc18}/ML_management/executor/executor_pattern.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{ml_management-0.6.3rc16 → ml_management-0.6.3rc18}/ML_management/executor/templates/__init__.py
RENAMED
File without changes
|
File without changes
|
{ml_management-0.6.3rc16 → ml_management-0.6.3rc18}/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.3rc16 → ml_management-0.6.3rc18}/ML_management/executor/templates/upload.py
RENAMED
File without changes
|
{ml_management-0.6.3rc16 → ml_management-0.6.3rc18}/ML_management/executor/upload_model_mode.py
RENAMED
File without changes
|
File without changes
|
{ml_management-0.6.3rc16 → ml_management-0.6.3rc18}/ML_management/graphql/send_graphql_request.py
RENAMED
File without changes
|
File without changes
|
{ml_management-0.6.3rc16 → ml_management-0.6.3rc18}/ML_management/mlmanagement/backend_api.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
{ml_management-0.6.3rc16 → ml_management-0.6.3rc18}/ML_management/mlmanagement/model_type.py
RENAMED
File without changes
|
{ml_management-0.6.3rc16 → ml_management-0.6.3rc18}/ML_management/mlmanagement/module_finder.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
{ml_management-0.6.3rc16 → ml_management-0.6.3rc18}/ML_management/mlmanagement/visibility_options.py
RENAMED
File without changes
|
File without changes
|
{ml_management-0.6.3rc16 → ml_management-0.6.3rc18}/ML_management/model/model_type_to_methods_map.py
RENAMED
File without changes
|
{ml_management-0.6.3rc16 → ml_management-0.6.3rc18}/ML_management/model/patterns/__init__.py
RENAMED
File without changes
|
File without changes
|
{ml_management-0.6.3rc16 → ml_management-0.6.3rc18}/ML_management/model/patterns/gradient_model.py
RENAMED
File without changes
|
{ml_management-0.6.3rc16 → ml_management-0.6.3rc18}/ML_management/model/patterns/model_pattern.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
{ml_management-0.6.3rc16 → ml_management-0.6.3rc18}/ML_management/model/patterns/preprocessor.py
RENAMED
File without changes
|
File without changes
|
{ml_management-0.6.3rc16 → ml_management-0.6.3rc18}/ML_management/model/patterns/target_layer.py
RENAMED
File without changes
|
{ml_management-0.6.3rc16 → ml_management-0.6.3rc18}/ML_management/model/patterns/torch_model.py
RENAMED
File without changes
|
{ml_management-0.6.3rc16 → ml_management-0.6.3rc18}/ML_management/model/patterns/trainable_model.py
RENAMED
File without changes
|
{ml_management-0.6.3rc16 → ml_management-0.6.3rc18}/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.3rc16 → ml_management-0.6.3rc18}/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.3rc16 → ml_management-0.6.3rc18}/ML_management/tests/test_jsonschema_inference.py
RENAMED
File without changes
|
File without changes
|
{ml_management-0.6.3rc16 → ml_management-0.6.3rc18}/ML_management/uploader_data/s3_uploader.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|