rapidata 2.2.0__py3-none-any.whl → 2.2.1__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 rapidata might be problematic. Click here for more details.
- rapidata/rapidata_client/order/rapidata_order_manager.py +5 -1
- rapidata/rapidata_client/validation/validation_set_manager.py +12 -12
- {rapidata-2.2.0.dist-info → rapidata-2.2.1.dist-info}/METADATA +1 -1
- {rapidata-2.2.0.dist-info → rapidata-2.2.1.dist-info}/RECORD +6 -6
- {rapidata-2.2.0.dist-info → rapidata-2.2.1.dist-info}/LICENSE +0 -0
- {rapidata-2.2.0.dist-info → rapidata-2.2.1.dist-info}/WHEEL +0 -0
|
@@ -421,6 +421,7 @@ class RapidataOrderManager:
|
|
|
421
421
|
datapoints: list[str],
|
|
422
422
|
responses_per_datapoint: int = 10,
|
|
423
423
|
contexts: list[str] | None = None,
|
|
424
|
+
validation_set_id: str | None = None,
|
|
424
425
|
filters: Sequence[RapidataFilter] = [],
|
|
425
426
|
settings: Sequence[RapidataSetting] = [],
|
|
426
427
|
selections: Sequence[RapidataSelection] | None = None,
|
|
@@ -435,6 +436,7 @@ class RapidataOrderManager:
|
|
|
435
436
|
contexts (list[str], optional): The list of contexts for the comparison. Defaults to None.\n
|
|
436
437
|
If provided has to be the same length as datapoints and will be shown in addition to the instruction. (Therefore will be different for each datapoint)
|
|
437
438
|
Will be match up with the datapoints using the list index.
|
|
439
|
+
validation_set_id (str, optional): The ID of the validation set. Defaults to None.\n
|
|
438
440
|
filters (Sequence[RapidataFilter], optional): The list of filters for the timestamp. Defaults to []. Decides who the tasks should be shown to.
|
|
439
441
|
settings (Sequence[RapidataSetting], optional): The list of settings for the timestamp. Defaults to []. Decides how the tasks should be shown.
|
|
440
442
|
selections (Sequence[RapidataSelection], optional): The list of selections for the timestamp. Defaults to None. Decides in what order the tasks should be shown.
|
|
@@ -454,9 +456,11 @@ class RapidataOrderManager:
|
|
|
454
456
|
assets=assets,
|
|
455
457
|
responses_per_datapoint=responses_per_datapoint,
|
|
456
458
|
contexts=contexts,
|
|
459
|
+
validation_set_id=validation_set_id,
|
|
457
460
|
filters=filters,
|
|
458
461
|
selections=selections,
|
|
459
|
-
settings=settings
|
|
462
|
+
settings=settings,
|
|
463
|
+
default_labeling_amount=2
|
|
460
464
|
)
|
|
461
465
|
|
|
462
466
|
def get_order_by_id(self, order_id: str) -> RapidataOrder:
|
|
@@ -63,8 +63,8 @@ class ValidationSetManager:
|
|
|
63
63
|
if len(datapoints) != len(truths):
|
|
64
64
|
raise ValueError("The number of datapoints and truths must be equal")
|
|
65
65
|
|
|
66
|
-
if not all([isinstance(truth, list) for truth in truths]):
|
|
67
|
-
raise ValueError("Truths must be a list of lists")
|
|
66
|
+
if not all([isinstance(truth, (list, tuple)) for truth in truths]):
|
|
67
|
+
raise ValueError("Truths must be a list of lists or tuples")
|
|
68
68
|
|
|
69
69
|
if contexts and len(contexts) != len(datapoints):
|
|
70
70
|
raise ValueError("The number of contexts and datapoints must be equal")
|
|
@@ -119,8 +119,8 @@ class ValidationSetManager:
|
|
|
119
119
|
if len(datapoints) != len(truths):
|
|
120
120
|
raise ValueError("The number of datapoints and truths must be equal")
|
|
121
121
|
|
|
122
|
-
if not all([isinstance(truth,
|
|
123
|
-
raise ValueError("Truths must be a list of
|
|
122
|
+
if not all([isinstance(truth, str) for truth in truths]):
|
|
123
|
+
raise ValueError("Truths must be a list of strings")
|
|
124
124
|
|
|
125
125
|
if contexts and len(contexts) != len(datapoints):
|
|
126
126
|
raise ValueError("The number of contexts and datapoints must be equal")
|
|
@@ -171,8 +171,8 @@ class ValidationSetManager:
|
|
|
171
171
|
print_confirmation (bool, optional): Whether to print a confirmation message that validation set has been created. Defaults to True.
|
|
172
172
|
"""
|
|
173
173
|
|
|
174
|
-
if not all([isinstance(truth, list) for truth in truths]):
|
|
175
|
-
raise ValueError("Truths must be a list of lists")
|
|
174
|
+
if not all([isinstance(truth, (list, tuple)) for truth in truths]):
|
|
175
|
+
raise ValueError("Truths must be a list of lists or tuples")
|
|
176
176
|
|
|
177
177
|
if len(datapoints) != len(truths) or len(datapoints) != len(sentences):
|
|
178
178
|
raise ValueError("The number of datapoints, truths, and sentences must be equal")
|
|
@@ -220,8 +220,8 @@ class ValidationSetManager:
|
|
|
220
220
|
if len(datapoints) != len(truths):
|
|
221
221
|
raise ValueError("The number of datapoints and truths must be equal")
|
|
222
222
|
|
|
223
|
-
if not all([isinstance(truth, list) for truth in truths]):
|
|
224
|
-
raise ValueError("Truths must be a list of lists")
|
|
223
|
+
if not all([isinstance(truth, (list, tuple)) for truth in truths]):
|
|
224
|
+
raise ValueError("Truths must be a list of lists or tuples")
|
|
225
225
|
|
|
226
226
|
if contexts and len(contexts) != len(datapoints):
|
|
227
227
|
raise ValueError("The number of contexts and datapoints must be equal")
|
|
@@ -268,8 +268,8 @@ class ValidationSetManager:
|
|
|
268
268
|
if len(datapoints) != len(truths):
|
|
269
269
|
raise ValueError("The number of datapoints and truths must be equal")
|
|
270
270
|
|
|
271
|
-
if not all([isinstance(truth, list) for truth in truths]):
|
|
272
|
-
raise ValueError("Truths must be a list of lists")
|
|
271
|
+
if not all([isinstance(truth, (list, tuple)) for truth in truths]):
|
|
272
|
+
raise ValueError("Truths must be a list of lists or tuples")
|
|
273
273
|
|
|
274
274
|
if contexts and len(contexts) != len(datapoints):
|
|
275
275
|
raise ValueError("The number of contexts and datapoints must be equal")
|
|
@@ -318,8 +318,8 @@ class ValidationSetManager:
|
|
|
318
318
|
if len(datapoints) != len(truths):
|
|
319
319
|
raise ValueError("The number of datapoints and truths must be equal")
|
|
320
320
|
|
|
321
|
-
if not all([isinstance(truth, list) for truth in truths]):
|
|
322
|
-
raise ValueError("Truths must be a list of lists")
|
|
321
|
+
if not all([isinstance(truth, (list, tuple)) for truth in truths]):
|
|
322
|
+
raise ValueError("Truths must be a list of lists or tuples")
|
|
323
323
|
|
|
324
324
|
if contexts and len(contexts) != len(datapoints):
|
|
325
325
|
raise ValueError("The number of contexts and datapoints must be equal")
|
|
@@ -376,7 +376,7 @@ rapidata/rapidata_client/order/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5
|
|
|
376
376
|
rapidata/rapidata_client/order/_rapidata_dataset.py,sha256=LxLXVg_d8mhkvifmhity0Miva5cnoePcNfWBl4pjUdo,5392
|
|
377
377
|
rapidata/rapidata_client/order/_rapidata_order_builder.py,sha256=R4iOWy8nfIHpzqqqQcQhLgpdB8z_tUrkL2M_8rZUw9M,13121
|
|
378
378
|
rapidata/rapidata_client/order/rapidata_order.py,sha256=ti5fHd-KAvI_WRwe9UWF6QDx-VYzlU_Kqmi44wphJzc,6588
|
|
379
|
-
rapidata/rapidata_client/order/rapidata_order_manager.py,sha256=
|
|
379
|
+
rapidata/rapidata_client/order/rapidata_order_manager.py,sha256=0sbQWNHUjwKPTwAB-a_fOeOLuJYK7xl6rAj54BTn2gg,27201
|
|
380
380
|
rapidata/rapidata_client/rapidata_client.py,sha256=9SMOouDBwe-aIi9rnPtnL2vrqnlQHDKxOUpw-Eh3Fsg,1782
|
|
381
381
|
rapidata/rapidata_client/referee/__init__.py,sha256=q0Hv9nmfEpyChejtyMLT8hWKL0vTTf_UgUXPYNJ-H6M,153
|
|
382
382
|
rapidata/rapidata_client/referee/_base_referee.py,sha256=MdFOhdxt3sRnWXLDKLJZKFdVpjBGn9jypPnWWQ6msQA,496
|
|
@@ -409,7 +409,7 @@ rapidata/rapidata_client/validation/rapids/__init__.py,sha256=WU5PPwtTJlte6U90MD
|
|
|
409
409
|
rapidata/rapidata_client/validation/rapids/box.py,sha256=t3_Kn6doKXdnJdtbwefXnYKPiTKHneJl9E2inkDSqL8,589
|
|
410
410
|
rapidata/rapidata_client/validation/rapids/rapids.py,sha256=guaByk4yxMhWKVSaDSO-Umc3o4LhPAHT8BBI5dhvgdk,5980
|
|
411
411
|
rapidata/rapidata_client/validation/rapids/rapids_manager.py,sha256=MxtwnjDIqMfaPsx3438IvXgWLAdejcUx88RZaLWzrXo,7435
|
|
412
|
-
rapidata/rapidata_client/validation/validation_set_manager.py,sha256=
|
|
412
|
+
rapidata/rapidata_client/validation/validation_set_manager.py,sha256=FRaoaI-hm--jGbhT5_RvpABnnpAPviY0QVyn7f68-LI,19651
|
|
413
413
|
rapidata/rapidata_client/workflow/__init__.py,sha256=eFRx0fm280alXpds6hYcnxN_yERlabF9B5sTdPFsL1g,430
|
|
414
414
|
rapidata/rapidata_client/workflow/_base_workflow.py,sha256=XyIZFKS_RxAuwIHS848S3AyLEHqd07oTD_5jm2oUbsw,762
|
|
415
415
|
rapidata/rapidata_client/workflow/_classify_workflow.py,sha256=9bT54wxVJgxC-zLk6MVNbseFpzYrvFPjt7DHvxqYfnk,1736
|
|
@@ -425,7 +425,7 @@ rapidata/service/credential_manager.py,sha256=Of0BQs_V1T7rkrWX9groLX790nOknaARwn
|
|
|
425
425
|
rapidata/service/local_file_service.py,sha256=pgorvlWcx52Uh3cEG6VrdMK_t__7dacQ_5AnfY14BW8,877
|
|
426
426
|
rapidata/service/openapi_service.py,sha256=Z4NrAuilLlIWBdGOv6otz36tHS_vvU36w5jmvOUTmqo,3198
|
|
427
427
|
rapidata/service/token_manager.py,sha256=JZ5YbR5Di8dO3H4kK11d0kzWlrXxjgCmeNkHA4AapCM,6425
|
|
428
|
-
rapidata-2.2.
|
|
429
|
-
rapidata-2.2.
|
|
430
|
-
rapidata-2.2.
|
|
431
|
-
rapidata-2.2.
|
|
428
|
+
rapidata-2.2.1.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
429
|
+
rapidata-2.2.1.dist-info/METADATA,sha256=GkuSboECcOxKXhk8BXPJKes8cL_YuZDvJXRkQiuQaBk,1107
|
|
430
|
+
rapidata-2.2.1.dist-info/WHEEL,sha256=IYZQI976HJqqOpQU6PHkJ8fb3tMNBFjg-Cn-pwAbaFM,88
|
|
431
|
+
rapidata-2.2.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|