dyff-schema 0.3.5__py3-none-any.whl → 0.3.7__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 dyff-schema might be problematic. Click here for more details.
- dyff/schema/v0/r1/platform.py +58 -37
- {dyff_schema-0.3.5.dist-info → dyff_schema-0.3.7.dist-info}/METADATA +1 -1
- {dyff_schema-0.3.5.dist-info → dyff_schema-0.3.7.dist-info}/RECORD +7 -7
- {dyff_schema-0.3.5.dist-info → dyff_schema-0.3.7.dist-info}/LICENSE +0 -0
- {dyff_schema-0.3.5.dist-info → dyff_schema-0.3.7.dist-info}/NOTICE +0 -0
- {dyff_schema-0.3.5.dist-info → dyff_schema-0.3.7.dist-info}/WHEEL +0 -0
- {dyff_schema-0.3.5.dist-info → dyff_schema-0.3.7.dist-info}/top_level.txt +0 -0
dyff/schema/v0/r1/platform.py
CHANGED
|
@@ -1141,16 +1141,6 @@ class MeasurementSpec(DyffSchemaBaseModel):
|
|
|
1141
1141
|
)
|
|
1142
1142
|
|
|
1143
1143
|
|
|
1144
|
-
class Measurement(DyffEntity, MeasurementSpec, AnalysisOutputQueryFields):
|
|
1145
|
-
kind: Literal["Measurement"] = Entities.Measurement.value
|
|
1146
|
-
|
|
1147
|
-
def dependencies(self) -> list[str]:
|
|
1148
|
-
return [self.analysis]
|
|
1149
|
-
|
|
1150
|
-
def resource_allocation(self) -> Optional[ResourceAllocation]:
|
|
1151
|
-
return None
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
1144
|
class SafetyCaseSpec(DyffSchemaBaseModel):
|
|
1155
1145
|
name: str = pydantic.Field(description="Descriptive name of the SafetyCase.")
|
|
1156
1146
|
description: Optional[str] = pydantic.Field(
|
|
@@ -1158,16 +1148,6 @@ class SafetyCaseSpec(DyffSchemaBaseModel):
|
|
|
1158
1148
|
)
|
|
1159
1149
|
|
|
1160
1150
|
|
|
1161
|
-
class SafetyCase(DyffEntity, SafetyCaseSpec, AnalysisOutputQueryFields):
|
|
1162
|
-
kind: Literal["SafetyCase"] = Entities.SafetyCase.value
|
|
1163
|
-
|
|
1164
|
-
def dependencies(self) -> list[str]:
|
|
1165
|
-
return [self.analysis]
|
|
1166
|
-
|
|
1167
|
-
def resource_allocation(self) -> Optional[ResourceAllocation]:
|
|
1168
|
-
return None
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
1151
|
class MethodImplementationKind(str, enum.Enum):
|
|
1172
1152
|
JupyterNotebook = "JupyterNotebook"
|
|
1173
1153
|
PythonFunction = "PythonFunction"
|
|
@@ -1277,9 +1257,19 @@ class MethodOutput(DyffSchemaBaseModel):
|
|
|
1277
1257
|
)
|
|
1278
1258
|
|
|
1279
1259
|
|
|
1260
|
+
class MethodScope(str, enum.Enum):
|
|
1261
|
+
InferenceService = Entities.InferenceService.value
|
|
1262
|
+
Evaluation = Entities.Evaluation.value
|
|
1263
|
+
|
|
1264
|
+
|
|
1280
1265
|
class MethodBase(DyffSchemaBaseModel):
|
|
1281
1266
|
name: str = pydantic.Field(description="Descriptive name of the Method.")
|
|
1282
1267
|
|
|
1268
|
+
scope: MethodScope = pydantic.Field(
|
|
1269
|
+
description="The scope of the Method. The Method produces outputs that"
|
|
1270
|
+
" are specific to one entity of the type specified in the .scope field."
|
|
1271
|
+
)
|
|
1272
|
+
|
|
1283
1273
|
description: Optional[str] = pydantic.Field(
|
|
1284
1274
|
default=None, description="Long-form description, interpreted as Markdown."
|
|
1285
1275
|
)
|
|
@@ -1318,12 +1308,6 @@ class Method(DyffEntity, MethodBase):
|
|
|
1318
1308
|
return None
|
|
1319
1309
|
|
|
1320
1310
|
|
|
1321
|
-
AnalysisOutputType = Union[
|
|
1322
|
-
Measurement,
|
|
1323
|
-
SafetyCase,
|
|
1324
|
-
]
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
1311
|
class AnalysisInput(DyffSchemaBaseModel):
|
|
1328
1312
|
keyword: str = pydantic.Field(
|
|
1329
1313
|
description="The 'keyword' specified for this input in the MethodSpec."
|
|
@@ -1347,7 +1331,19 @@ class ForeignMethod(DyffModelWithID, MethodBase):
|
|
|
1347
1331
|
pass
|
|
1348
1332
|
|
|
1349
1333
|
|
|
1334
|
+
class AnalysisScope(DyffSchemaBaseModel):
|
|
1335
|
+
dataset: Optional[str]
|
|
1336
|
+
inferenceService: Optional[str]
|
|
1337
|
+
evaluation: Optional[str]
|
|
1338
|
+
model: Optional[str]
|
|
1339
|
+
|
|
1340
|
+
|
|
1350
1341
|
class AnalysisBase(DyffSchemaBaseModel):
|
|
1342
|
+
scope: AnalysisScope = pydantic.Field(
|
|
1343
|
+
description="The specific entities to which the analysis results apply."
|
|
1344
|
+
" At a minimum, the field corresponding to method.scope must be set."
|
|
1345
|
+
)
|
|
1346
|
+
|
|
1351
1347
|
arguments: list[AnalysisArgument] = pydantic.Field(
|
|
1352
1348
|
default_factory=list,
|
|
1353
1349
|
description="Arguments to pass to the Method implementation.",
|
|
@@ -1358,13 +1354,15 @@ class AnalysisBase(DyffSchemaBaseModel):
|
|
|
1358
1354
|
)
|
|
1359
1355
|
|
|
1360
1356
|
|
|
1361
|
-
class Analysis(
|
|
1362
|
-
kind: Literal["Analysis"] = Entities.Analysis.value
|
|
1363
|
-
|
|
1357
|
+
class Analysis(AnalysisBase):
|
|
1364
1358
|
method: ForeignMethod = pydantic.Field(
|
|
1365
1359
|
description="The analysis Method to run.",
|
|
1366
1360
|
)
|
|
1367
1361
|
|
|
1362
|
+
|
|
1363
|
+
class Measurement(DyffEntity, MeasurementSpec, Analysis):
|
|
1364
|
+
kind: Literal["Measurement"] = Entities.Measurement.value
|
|
1365
|
+
|
|
1368
1366
|
def dependencies(self) -> list[str]:
|
|
1369
1367
|
return [self.method.id] + [x.entity for x in self.inputs]
|
|
1370
1368
|
|
|
@@ -1372,11 +1370,35 @@ class Analysis(DyffEntity, AnalysisBase):
|
|
|
1372
1370
|
return None
|
|
1373
1371
|
|
|
1374
1372
|
|
|
1375
|
-
class
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1373
|
+
class SafetyCase(DyffEntity, SafetyCaseSpec, Analysis):
|
|
1374
|
+
kind: Literal["SafetyCase"] = Entities.SafetyCase.value
|
|
1375
|
+
|
|
1376
|
+
def dependencies(self) -> list[str]:
|
|
1377
|
+
return [self.method.id] + [x.entity for x in self.inputs]
|
|
1378
|
+
|
|
1379
|
+
def resource_allocation(self) -> Optional[ResourceAllocation]:
|
|
1380
|
+
return None
|
|
1381
|
+
|
|
1382
|
+
|
|
1383
|
+
# class Analysis(DyffEntity, AnalysisBase):
|
|
1384
|
+
# kind: Literal["Analysis"] = Entities.Analysis.value
|
|
1385
|
+
|
|
1386
|
+
# method: ForeignMethod = pydantic.Field(
|
|
1387
|
+
# description="The analysis Method to run.",
|
|
1388
|
+
# )
|
|
1389
|
+
|
|
1390
|
+
# def dependencies(self) -> list[str]:
|
|
1391
|
+
# return [self.method.id] + [x.entity for x in self.inputs]
|
|
1392
|
+
|
|
1393
|
+
# def resource_allocation(self) -> Optional[ResourceAllocation]:
|
|
1394
|
+
# return None
|
|
1395
|
+
|
|
1396
|
+
|
|
1397
|
+
# class AnalysisAndOutputs(DyffSchemaBaseModel):
|
|
1398
|
+
# analysis: Analysis = pydantic.Field(description="The Analysis entity")
|
|
1399
|
+
# outputs: list[AnalysisOutputType] = pydantic.Field(
|
|
1400
|
+
# description="Concrete outputs of the Analysis"
|
|
1401
|
+
# )
|
|
1380
1402
|
|
|
1381
1403
|
|
|
1382
1404
|
# ---------------------------------------------------------------------------
|
|
@@ -1642,7 +1664,6 @@ def entity_class(kind: Entities):
|
|
|
1642
1664
|
|
|
1643
1665
|
|
|
1644
1666
|
DyffEntityType = Union[
|
|
1645
|
-
Analysis,
|
|
1646
1667
|
Audit,
|
|
1647
1668
|
AuditProcedure,
|
|
1648
1669
|
DataSource,
|
|
@@ -1664,12 +1685,10 @@ __all__ = [
|
|
|
1664
1685
|
"AcceleratorGPU",
|
|
1665
1686
|
"AccessGrant",
|
|
1666
1687
|
"Analysis",
|
|
1667
|
-
"AnalysisAndOutputs",
|
|
1668
1688
|
"AnalysisArgument",
|
|
1669
1689
|
"AnalysisBase",
|
|
1670
1690
|
"AnalysisInput",
|
|
1671
1691
|
"AnalysisOutputQueryFields",
|
|
1672
|
-
"AnalysisOutputType",
|
|
1673
1692
|
"Annotation",
|
|
1674
1693
|
"APIFunctions",
|
|
1675
1694
|
"APIKey",
|
|
@@ -1695,6 +1714,7 @@ __all__ = [
|
|
|
1695
1714
|
"EvaluationBase",
|
|
1696
1715
|
"ExtractorStep",
|
|
1697
1716
|
"ForeignInferenceService",
|
|
1717
|
+
"ForeignMethod",
|
|
1698
1718
|
"ForeignModel",
|
|
1699
1719
|
"Frameworks",
|
|
1700
1720
|
"InferenceInterface",
|
|
@@ -1728,6 +1748,7 @@ __all__ = [
|
|
|
1728
1748
|
"MethodOutput",
|
|
1729
1749
|
"MethodOutputKind",
|
|
1730
1750
|
"MethodParameter",
|
|
1751
|
+
"MethodScope",
|
|
1731
1752
|
"Model",
|
|
1732
1753
|
"ModelArtifact",
|
|
1733
1754
|
"ModelArtifactHuggingFaceCache",
|
|
@@ -21,7 +21,7 @@ dyff/schema/v0/__init__.py,sha256=L5y8UhRnojerPYHumsxQJRcHCNz8Hj9NM8b47mewMNs,92
|
|
|
21
21
|
dyff/schema/v0/r1/__init__.py,sha256=L5y8UhRnojerPYHumsxQJRcHCNz8Hj9NM8b47mewMNs,92
|
|
22
22
|
dyff/schema/v0/r1/adapters.py,sha256=2t2oxsnGfSEDKKDIEYw4qqLXMH7qlFIwPVuLyUmbsHs,23552
|
|
23
23
|
dyff/schema/v0/r1/base.py,sha256=g_wqh4OU_9ftMHovVxPtdeup4O5MZi422v3eZH99ZQI,17139
|
|
24
|
-
dyff/schema/v0/r1/platform.py,sha256=
|
|
24
|
+
dyff/schema/v0/r1/platform.py,sha256=IoonxCKyPTnVNCmiGIxT9xG3m06V8wRmf_iuzcocPm0,55462
|
|
25
25
|
dyff/schema/v0/r1/requests.py,sha256=ZD31iDNyJQFDzJlFrSsDBorS7TXyhRBk-R6oG7PI3kE,7762
|
|
26
26
|
dyff/schema/v0/r1/test.py,sha256=X6dUyVd5svcPCI-PBMOAqEfK9jv3bRDvkQTJzwS96c0,10720
|
|
27
27
|
dyff/schema/v0/r1/version.py,sha256=SG9ds8afHgdrqOA4CEY8-MM3lKfAE9G0rxsG4uyeglE,363
|
|
@@ -33,9 +33,9 @@ dyff/schema/v0/r1/dataset/text.py,sha256=nLIn91Zlt0tNdXUklSgjJ-kEDxoPX32ISLkiv2D
|
|
|
33
33
|
dyff/schema/v0/r1/dataset/vision.py,sha256=aIe0fbfM_g3DsrDTdg2K803YKLjZBpurM_VJcJFuZLc,369
|
|
34
34
|
dyff/schema/v0/r1/io/__init__.py,sha256=L5y8UhRnojerPYHumsxQJRcHCNz8Hj9NM8b47mewMNs,92
|
|
35
35
|
dyff/schema/v0/r1/io/vllm.py,sha256=CUE9y8KthtUI7sD49S875rDmPvKotSXVIRaBS79aBZs,5320
|
|
36
|
-
dyff_schema-0.3.
|
|
37
|
-
dyff_schema-0.3.
|
|
38
|
-
dyff_schema-0.3.
|
|
39
|
-
dyff_schema-0.3.
|
|
40
|
-
dyff_schema-0.3.
|
|
41
|
-
dyff_schema-0.3.
|
|
36
|
+
dyff_schema-0.3.7.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
37
|
+
dyff_schema-0.3.7.dist-info/METADATA,sha256=FIKMxpdwwuY4OzJXANPAZmsiQF4OQmgaZJid44UqoMY,3459
|
|
38
|
+
dyff_schema-0.3.7.dist-info/NOTICE,sha256=YONACu0s_Ui6jNi-wtEsVQbTU1JIkh8wvLH6d1-Ni_w,43
|
|
39
|
+
dyff_schema-0.3.7.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
|
40
|
+
dyff_schema-0.3.7.dist-info/top_level.txt,sha256=9e3VVdeX73t_sUJOPQPCcGtYO1JhoErhHIi3WoWGcFI,5
|
|
41
|
+
dyff_schema-0.3.7.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|