mostlyai 0.4.2__tar.gz → 0.4.3__tar.gz

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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: mostlyai
3
- Version: 0.4.2
3
+ Version: 0.4.3
4
4
  Summary: The official Python client for the MOSTLY AI platform.
5
5
  Home-page: https://app.mostly.ai/
6
6
  License: Proprietary
@@ -1,4 +1,4 @@
1
1
  from mostlyai.api import MostlyAI
2
2
 
3
3
  __all__ = ["MostlyAI"]
4
- __version__ = "0.4.2" # Do not set this manually. Use poetry version [params].
4
+ __version__ = "0.4.3" # Do not set this manually. Use poetry version [params].
@@ -1,5 +1,5 @@
1
1
  # generated by datamodel-codegen:
2
- # timestamp: 2024-09-18T15:56:08+00:00
2
+ # timestamp: 2024-10-01T16:53:09+00:00
3
3
 
4
4
  from __future__ import annotations
5
5
 
@@ -511,7 +511,8 @@ class Distances(CustomBaseModel):
511
511
  Field(
512
512
  None,
513
513
  alias="dcrTraining",
514
- description="The average DCR between the synthetic and the training records.",
514
+ description="The average distance to closest record (L2) between synthetic and training samples within the embedding space.",
515
+ ge=0.0,
515
516
  ),
516
517
  ] = None
517
518
  dcr_holdout: Annotated[
@@ -519,7 +520,8 @@ class Distances(CustomBaseModel):
519
520
  Field(
520
521
  None,
521
522
  alias="dcrHoldout",
522
- description="The average DCR between the synthetic and the holdout records.",
523
+ description="The average distance to closest record (L2) between synthetic and holdout samples within the embedding space.",
524
+ ge=0.0,
523
525
  ),
524
526
  ] = None
525
527
  dcr_original: Annotated[
@@ -528,6 +530,7 @@ class Distances(CustomBaseModel):
528
530
  None,
529
531
  alias="dcrOriginal",
530
532
  description="(DEPRECATED) The average DCR between the original records.",
533
+ ge=0.0,
531
534
  ),
532
535
  ] = None
533
536
  dcr_synthetic: Annotated[
@@ -536,6 +539,50 @@ class Distances(CustomBaseModel):
536
539
  None,
537
540
  alias="dcrSynthetic",
538
541
  description="(DEPRECATED) The average DCR between the synthetic and the original records.",
542
+ ge=0.0,
543
+ ),
544
+ ] = None
545
+
546
+
547
+ class Similarity(CustomBaseModel):
548
+ cosine_similarity_training_synthetic: Annotated[
549
+ Optional[float],
550
+ Field(
551
+ None,
552
+ alias="cosineSimilarityTrainingSynthetic",
553
+ description="The cosine similarity between the training samples centroid and the synthetic samples centroid within the embedding space.",
554
+ ge=-1.0,
555
+ le=1.0,
556
+ ),
557
+ ] = None
558
+ cosine_similarity_training_holdout: Annotated[
559
+ Optional[float],
560
+ Field(
561
+ None,
562
+ alias="cosineSimilarityTrainingHoldout",
563
+ description="The cosine similarity between the training samples centroid and the holdout samples centroid within the embedding space.",
564
+ ge=-1.0,
565
+ le=1.0,
566
+ ),
567
+ ] = None
568
+ discriminator_auc_training_synthetic: Annotated[
569
+ Optional[float],
570
+ Field(
571
+ None,
572
+ alias="discriminatorAUCTrainingSynthetic",
573
+ description="The cross-validated average AUC of discriminating between training embeddings ans synthetic embeddings.",
574
+ ge=0.0,
575
+ le=1.0,
576
+ ),
577
+ ] = None
578
+ discriminator_auc_training_holdout: Annotated[
579
+ Optional[float],
580
+ Field(
581
+ None,
582
+ alias="discriminatorAUCTrainingHoldout",
583
+ description="The cross-validated average AUC of discriminating between training embeddings ans holdout embeddings.",
584
+ ge=0.0,
585
+ le=1.0,
539
586
  ),
540
587
  ] = None
541
588
 
@@ -543,6 +590,7 @@ class Distances(CustomBaseModel):
543
590
  class ModelMetrics(CustomBaseModel):
544
591
  accuracy: Optional[Accuracy] = None
545
592
  distances: Optional[Distances] = None
593
+ similarity: Optional[Similarity] = None
546
594
 
547
595
 
548
596
  class StepCode(str, Enum):
@@ -1089,13 +1137,6 @@ class GeneratorListItem(CustomBaseModel):
1089
1137
  ] = None
1090
1138
  usage: Optional[GeneratorUsage] = None
1091
1139
  metadata: Metadata
1092
- accuracy: Annotated[
1093
- Optional[float],
1094
- Field(
1095
- None,
1096
- description="The overall accuracy of the trained generator.\nThis is the average of the overall accuracy scores of all trained models.\n",
1097
- ),
1098
- ] = None
1099
1140
 
1100
1141
 
1101
1142
  class Probe(CustomBaseModel):
@@ -1216,6 +1257,12 @@ class ProgressStep(CustomBaseModel):
1216
1257
  ),
1217
1258
  ] = None
1218
1259
  compute_name: Annotated[Optional[str], Field(None, alias="computeName")] = None
1260
+ restarts: Annotated[
1261
+ Optional[int],
1262
+ Field(
1263
+ None, description="Number of previous restarts for the corresponding task."
1264
+ ),
1265
+ ] = None
1219
1266
  step_code: Annotated[Optional[StepCode], Field(None, alias="stepCode")] = None
1220
1267
  start_date: Annotated[
1221
1268
  Optional[AwareDatetime],
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "mostlyai"
3
- version = "0.4.2"
3
+ version = "0.4.3"
4
4
  description = "The official Python client for the MOSTLY AI platform."
5
5
  homepage = "https://app.mostly.ai/"
6
6
  authors = ["MOSTLY AI <office@mostly.ai>"]
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes