oracle-ads 2.13.2rc1__py3-none-any.whl → 2.13.3__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.
ads/aqua/app.py CHANGED
@@ -225,6 +225,7 @@ class AquaApp:
225
225
  model_taxonomy_metadata: Union[ModelTaxonomyMetadata, Dict],
226
226
  compartment_id: str,
227
227
  project_id: str,
228
+ defined_tags: Dict = None,
228
229
  **kwargs,
229
230
  ) -> DataScienceModel:
230
231
  model = (
@@ -237,7 +238,7 @@ class AquaApp:
237
238
  .with_custom_metadata_list(model_custom_metadata)
238
239
  .with_defined_metadata_list(model_taxonomy_metadata)
239
240
  .with_provenance_metadata(ModelProvenanceMetadata(training_id=UNKNOWN))
240
- # TODO: decide what parameters will be needed
241
+ .with_defined_tags(**(defined_tags or {})) # Create defined tags when a model is created.
241
242
  .create(
242
243
  **kwargs,
243
244
  )
@@ -260,6 +260,10 @@ class AquaEvaluationApp(AquaApp):
260
260
  **create_aqua_evaluation_details.model_parameters,
261
261
  )
262
262
 
263
+ evaluation_model_defined_tags = (
264
+ create_aqua_evaluation_details.defined_tags or {}
265
+ )
266
+
263
267
  target_compartment = (
264
268
  create_aqua_evaluation_details.compartment_id or COMPARTMENT_OCID
265
269
  )
@@ -311,9 +315,7 @@ class AquaEvaluationApp(AquaApp):
311
315
  create_aqua_evaluation_details.experiment_description
312
316
  )
313
317
  .with_freeform_tags(**evaluation_mvs_freeform_tags)
314
- .with_defined_tags(
315
- **(create_aqua_evaluation_details.defined_tags or {})
316
- )
318
+ .with_defined_tags(**evaluation_model_defined_tags)
317
319
  # TODO: decide what parameters will be needed
318
320
  .create(**kwargs)
319
321
  )
@@ -358,6 +360,7 @@ class AquaEvaluationApp(AquaApp):
358
360
  .with_custom_metadata_list(evaluation_model_custom_metadata)
359
361
  .with_defined_metadata_list(evaluation_model_taxonomy_metadata)
360
362
  .with_provenance_metadata(ModelProvenanceMetadata(training_id=UNKNOWN))
363
+ .with_defined_tags(**evaluation_model_defined_tags)
361
364
  # TODO uncomment this once the evaluation container will get the updated version of the ADS
362
365
  # .with_input_schema(create_aqua_evaluation_details.to_dict())
363
366
  # TODO: decide what parameters will be needed
@@ -390,7 +393,7 @@ class AquaEvaluationApp(AquaApp):
390
393
  .with_shape_name(create_aqua_evaluation_details.shape_name)
391
394
  .with_block_storage_size(create_aqua_evaluation_details.block_storage_size)
392
395
  .with_freeform_tag(**evaluation_job_freeform_tags)
393
- .with_defined_tag(**(create_aqua_evaluation_details.defined_tags or {}))
396
+ .with_defined_tag(**evaluation_model_defined_tags)
394
397
  )
395
398
  if (
396
399
  create_aqua_evaluation_details.memory_in_gbs
@@ -429,7 +432,9 @@ class AquaEvaluationApp(AquaApp):
429
432
  metrics=create_aqua_evaluation_details.metrics,
430
433
  inference_configuration=eval_inference_configuration or {},
431
434
  )
432
- ).create(**kwargs) ## TODO: decide what parameters will be needed
435
+ ).create(
436
+ **kwargs
437
+ ) ## TODO: decide what parameters will be needed
433
438
  logger.debug(
434
439
  f"Successfully created evaluation job {evaluation_job.id} for {create_aqua_evaluation_details.evaluation_source_id}."
435
440
  )
@@ -437,7 +442,7 @@ class AquaEvaluationApp(AquaApp):
437
442
  evaluation_job_run = evaluation_job.run(
438
443
  name=evaluation_model.display_name,
439
444
  freeform_tags=evaluation_job_freeform_tags,
440
- defined_tags=(create_aqua_evaluation_details.defined_tags or {}),
445
+ defined_tags=evaluation_model_defined_tags,
441
446
  wait=False,
442
447
  )
443
448
  logger.debug(
@@ -461,16 +466,12 @@ class AquaEvaluationApp(AquaApp):
461
466
  Tags.AQUA_EVALUATION: Tags.AQUA_EVALUATION,
462
467
  **(create_aqua_evaluation_details.freeform_tags or {}),
463
468
  }
464
- evaluation_model_defined_tags = (
465
- create_aqua_evaluation_details.defined_tags or {}
466
- )
467
469
 
468
470
  self.ds_client.update_model(
469
471
  model_id=evaluation_model.id,
470
472
  update_model_details=UpdateModelDetails(
471
473
  custom_metadata_list=updated_custom_metadata_list,
472
474
  freeform_tags=evaluation_model_freeform_tags,
473
- defined_tags=evaluation_model_defined_tags,
474
475
  ),
475
476
  )
476
477
 
@@ -263,6 +263,7 @@ class AquaFineTuningApp(AquaApp):
263
263
  compartment_id=target_compartment,
264
264
  project_id=target_project,
265
265
  model_by_reference=True,
266
+ defined_tags=create_fine_tuning_details.defined_tags
266
267
  )
267
268
 
268
269
  ft_job_freeform_tags = {
@@ -382,14 +383,12 @@ class AquaFineTuningApp(AquaApp):
382
383
  Tags.AQUA_FINE_TUNED_MODEL_TAG: f"{source.id}#{source.display_name}",
383
384
  **(create_fine_tuning_details.freeform_tags or {}),
384
385
  }
385
- model_defined_tags = create_fine_tuning_details.defined_tags or {}
386
386
 
387
387
  self.update_model(
388
388
  model_id=ft_model.id,
389
389
  update_model_details=UpdateModelDetails(
390
390
  custom_metadata_list=updated_custom_metadata_list,
391
391
  freeform_tags=model_freeform_tags,
392
- defined_tags=model_defined_tags,
393
392
  ),
394
393
  )
395
394
  logger.debug(
@@ -490,7 +489,7 @@ class AquaFineTuningApp(AquaApp):
490
489
  "finetuning_source": source.id,
491
490
  "finetuning_experiment_id": experiment_model_version_set_id,
492
491
  **model_freeform_tags,
493
- **model_defined_tags,
492
+ **(create_fine_tuning_details.defined_tags or {}),
494
493
  },
495
494
  parameters=ft_parameters,
496
495
  )
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: oracle_ads
3
- Version: 2.13.2rc1
3
+ Version: 2.13.3
4
4
  Summary: Oracle Accelerated Data Science SDK
5
5
  Keywords: Oracle Cloud Infrastructure,OCI,Machine Learning,ML,Artificial Intelligence,AI,Data Science,Cloud,Oracle
6
6
  Author: Oracle Data Science
@@ -2,7 +2,7 @@ ads/__init__.py,sha256=OxHySbHbMqPgZ8sUj33Bxy-smSiNgRjtcSUV77oBL08,3787
2
2
  ads/cli.py,sha256=WkOpZv8jWgFYN9BNkt2LJBs9KzJHgFqq3pIymsqc8Q4,4292
3
3
  ads/config.py,sha256=Xa6CGxNUQf3CKTS9HpXnAWR5kOFvAs0M66f8kEl6z54,8051
4
4
  ads/aqua/__init__.py,sha256=I3HL7LadTue3X41EPUZue4rILG8xeMTapJiBA6Lu8Mg,1149
5
- ads/aqua/app.py,sha256=Ug-Jt5qvnO1CtxRqIf9dWbz6i_WrR4rf0Mf3s8dgGXA,14281
5
+ ads/aqua/app.py,sha256=_LrDKMR0SSxPEylIMPTsJvXnSnJFDud_MS3tMO25RMo,14360
6
6
  ads/aqua/cli.py,sha256=W-0kswzRDEilqHyw5GSMOrARgvOyPRtkEtpy54ew0Jo,3907
7
7
  ads/aqua/constants.py,sha256=bdBBafATGl5rYHjZ2i9jZPDKFab8nWjzjJKA2DFgIDc,3019
8
8
  ads/aqua/data.py,sha256=HfxLfKiNiPJecMQy0JAztUsT3IdZilHHHOrCJnjZMc4,408
@@ -30,7 +30,7 @@ ads/aqua/evaluation/__init__.py,sha256=Fd7WL7MpQ1FtJjlftMY2KHli5cz1wr5MDu3hGmV89
30
30
  ads/aqua/evaluation/constants.py,sha256=dmvDs_t93EhGa0N7J0y8R18AFW0cokj2Q5Oy0LHelxU,1436
31
31
  ads/aqua/evaluation/entities.py,sha256=pvZWrO-Hlsh0TIFnly84OijKHULRVM13D5a-4ZGxte8,5733
32
32
  ads/aqua/evaluation/errors.py,sha256=IbqcQFgXfwzlF5EoaT5jPw8JE8OWqtgiXpH0ddFhRzY,4523
33
- ads/aqua/evaluation/evaluation.py,sha256=p3oPgogtdE_viFCeS6jiJENGrWlYZMPloPW7c50r5ns,59595
33
+ ads/aqua/evaluation/evaluation.py,sha256=Q8822M1asVpBdw5e2LmN1B-vI3k8SdT-44nGQI0d4YI,59510
34
34
  ads/aqua/extension/__init__.py,sha256=mRArjU6UZpZYVr0qHSSkPteA_CKcCZIczOFaK421m9o,1453
35
35
  ads/aqua/extension/aqua_ws_msg_handler.py,sha256=zR7Fb3LEXzPrEICooWvuo_ahoY6KhcABpKUmYQkEpS0,3626
36
36
  ads/aqua/extension/base_handler.py,sha256=gK3YBBrkbG__0eAq49zHRmJKJXp-lvEOYdYlDuxWPpM,5475
@@ -52,7 +52,7 @@ ads/aqua/extension/models/ws_models.py,sha256=y_3LlzKGNRcWqfuW5TGHl0PchM5xE83WGm
52
52
  ads/aqua/finetuning/__init__.py,sha256=vwYT5PluMR0mDQwVIavn_8Icms7LmvfV_FOrJ8fJx8I,296
53
53
  ads/aqua/finetuning/constants.py,sha256=Fx-8LMyF9ZbV9zo5LUYgCv9VniV7djGnM2iW7js2ILE,844
54
54
  ads/aqua/finetuning/entities.py,sha256=1RRaRFuxoBtApeCIqG-0H8Iom2kz2dv7LOX6y2wWLnA,6116
55
- ads/aqua/finetuning/finetuning.py,sha256=XICYUsbj6U2XMRs2aHMpTBaTlb2b88Moq3InR9IRYK4,26332
55
+ ads/aqua/finetuning/finetuning.py,sha256=-re_K9wR46_EbENddUEefNrnYd5IlR0GotUa_kkgXU8,26302
56
56
  ads/aqua/model/__init__.py,sha256=j2iylvERdANxgrEDp7b_mLcKMz1CF5Go0qgYCiMwdos,278
57
57
  ads/aqua/model/constants.py,sha256=pI_oHKSLJvt3dOC4hdkj75Y3CJqK9yW3AT1kHyDfPTI,1500
58
58
  ads/aqua/model/entities.py,sha256=kBjsihInnbGw9MhWQEfJ4hcWEzv6BxF8VlDDFWUPYVg,9903
@@ -849,8 +849,8 @@ ads/type_discovery/unknown_detector.py,sha256=yZuYQReO7PUyoWZE7onhhtYaOg6088wf1y
849
849
  ads/type_discovery/zipcode_detector.py,sha256=3AlETg_ZF4FT0u914WXvTT3F3Z6Vf51WiIt34yQMRbw,1421
850
850
  ads/vault/__init__.py,sha256=x9tMdDAOdF5iDHk9u2di_K-ze5Nq068x25EWOBoWwqY,245
851
851
  ads/vault/vault.py,sha256=hFBkpYE-Hfmzu1L0sQwUfYcGxpWmgG18JPndRl0NOXI,8624
852
- oracle_ads-2.13.2rc1.dist-info/entry_points.txt,sha256=9VFnjpQCsMORA4rVkvN8eH6D3uHjtegb9T911t8cqV0,35
853
- oracle_ads-2.13.2rc1.dist-info/licenses/LICENSE.txt,sha256=zoGmbfD1IdRKx834U0IzfFFFo5KoFK71TND3K9xqYqo,1845
854
- oracle_ads-2.13.2rc1.dist-info/WHEEL,sha256=_2ozNFCLWc93bK4WKHCO-eDUENDlo-dgc9cU3qokYO4,82
855
- oracle_ads-2.13.2rc1.dist-info/METADATA,sha256=W_1M3xrI7Nde-4P6W8hlevNetQT2B0yeGw9X8wbEMTI,16261
856
- oracle_ads-2.13.2rc1.dist-info/RECORD,,
852
+ oracle_ads-2.13.3.dist-info/entry_points.txt,sha256=9VFnjpQCsMORA4rVkvN8eH6D3uHjtegb9T911t8cqV0,35
853
+ oracle_ads-2.13.3.dist-info/licenses/LICENSE.txt,sha256=zoGmbfD1IdRKx834U0IzfFFFo5KoFK71TND3K9xqYqo,1845
854
+ oracle_ads-2.13.3.dist-info/WHEEL,sha256=_2ozNFCLWc93bK4WKHCO-eDUENDlo-dgc9cU3qokYO4,82
855
+ oracle_ads-2.13.3.dist-info/METADATA,sha256=sFqtvGBYnP_WSLQ_-qjVCHDTOJ-oAd8ekjPkGIwtHq4,16258
856
+ oracle_ads-2.13.3.dist-info/RECORD,,