rapidata 2.1.2__py3-none-any.whl → 2.1.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.
Potentially problematic release.
This version of rapidata might be problematic. Click here for more details.
- rapidata/rapidata_client/validation/validation_set_manager.py +16 -0
- {rapidata-2.1.2.dist-info → rapidata-2.1.3.dist-info}/METADATA +1 -1
- {rapidata-2.1.2.dist-info → rapidata-2.1.3.dist-info}/RECORD +5 -5
- {rapidata-2.1.2.dist-info → rapidata-2.1.3.dist-info}/LICENSE +0 -0
- {rapidata-2.1.2.dist-info → rapidata-2.1.3.dist-info}/WHEEL +0 -0
|
@@ -62,6 +62,10 @@ class ValidationSetManager:
|
|
|
62
62
|
|
|
63
63
|
if len(datapoints) != len(truths):
|
|
64
64
|
raise ValueError("The number of datapoints and truths must be equal")
|
|
65
|
+
|
|
66
|
+
if not all([isinstance(truth, list) for truth in truths]):
|
|
67
|
+
raise ValueError("Truths must be a list of lists")
|
|
68
|
+
|
|
65
69
|
if contexts and len(contexts) != len(datapoints):
|
|
66
70
|
raise ValueError("The number of contexts and datapoints must be equal")
|
|
67
71
|
|
|
@@ -115,6 +119,9 @@ class ValidationSetManager:
|
|
|
115
119
|
if len(datapoints) != len(truths):
|
|
116
120
|
raise ValueError("The number of datapoints and truths must be equal")
|
|
117
121
|
|
|
122
|
+
if not all([isinstance(truth, list) for truth in truths]):
|
|
123
|
+
raise ValueError("Truths must be a list of lists")
|
|
124
|
+
|
|
118
125
|
if contexts and len(contexts) != len(datapoints):
|
|
119
126
|
raise ValueError("The number of contexts and datapoints must be equal")
|
|
120
127
|
|
|
@@ -164,6 +171,9 @@ class ValidationSetManager:
|
|
|
164
171
|
print_confirmation (bool, optional): Whether to print a confirmation message that validation set has been created. Defaults to True.
|
|
165
172
|
"""
|
|
166
173
|
|
|
174
|
+
if not all([isinstance(truth, list) for truth in truths]):
|
|
175
|
+
raise ValueError("Truths must be a list of lists")
|
|
176
|
+
|
|
167
177
|
if len(datapoints) != len(truths) or len(datapoints) != len(sentences):
|
|
168
178
|
raise ValueError("The number of datapoints, truths, and sentences must be equal")
|
|
169
179
|
|
|
@@ -210,6 +220,9 @@ class ValidationSetManager:
|
|
|
210
220
|
if len(datapoints) != len(truths):
|
|
211
221
|
raise ValueError("The number of datapoints and truths must be equal")
|
|
212
222
|
|
|
223
|
+
if not all([isinstance(truth, list) for truth in truths]):
|
|
224
|
+
raise ValueError("Truths must be a list of lists")
|
|
225
|
+
|
|
213
226
|
if contexts and len(contexts) != len(datapoints):
|
|
214
227
|
raise ValueError("The number of contexts and datapoints must be equal")
|
|
215
228
|
|
|
@@ -255,6 +268,9 @@ class ValidationSetManager:
|
|
|
255
268
|
if len(datapoints) != len(truths):
|
|
256
269
|
raise ValueError("The number of datapoints and truths must be equal")
|
|
257
270
|
|
|
271
|
+
if not all([isinstance(truth, list) for truth in truths]):
|
|
272
|
+
raise ValueError("Truths must be a list of lists")
|
|
273
|
+
|
|
258
274
|
if contexts and len(contexts) != len(datapoints):
|
|
259
275
|
raise ValueError("The number of contexts and datapoints must be equal")
|
|
260
276
|
|
|
@@ -402,7 +402,7 @@ rapidata/rapidata_client/validation/rapids/__init__.py,sha256=WU5PPwtTJlte6U90MD
|
|
|
402
402
|
rapidata/rapidata_client/validation/rapids/box.py,sha256=t3_Kn6doKXdnJdtbwefXnYKPiTKHneJl9E2inkDSqL8,589
|
|
403
403
|
rapidata/rapidata_client/validation/rapids/rapids.py,sha256=d66Z2wbLCDanT9nHDPbyYsnoBhtYQm_O1vQbn7GogBw,4214
|
|
404
404
|
rapidata/rapidata_client/validation/rapids/rapids_manager.py,sha256=XkPvR4ho6wM8sbqdhY3_us4QQIbBkCwNhVbGrBrAQx0,6400
|
|
405
|
-
rapidata/rapidata_client/validation/validation_set_manager.py,sha256=
|
|
405
|
+
rapidata/rapidata_client/validation/validation_set_manager.py,sha256=kJnXVS1NqwZTvpG98f1uQGBkN17k2ncptTQhRfCEM8A,17218
|
|
406
406
|
rapidata/rapidata_client/workflow/__init__.py,sha256=dpzq5EsMRmt8Q-AwFVtWethc8uhJFrqtNKqwcn0qRFY,379
|
|
407
407
|
rapidata/rapidata_client/workflow/_base_workflow.py,sha256=XyIZFKS_RxAuwIHS848S3AyLEHqd07oTD_5jm2oUbsw,762
|
|
408
408
|
rapidata/rapidata_client/workflow/_classify_workflow.py,sha256=9bT54wxVJgxC-zLk6MVNbseFpzYrvFPjt7DHvxqYfnk,1736
|
|
@@ -417,7 +417,7 @@ rapidata/service/credential_manager.py,sha256=Of0BQs_V1T7rkrWX9groLX790nOknaARwn
|
|
|
417
417
|
rapidata/service/local_file_service.py,sha256=pgorvlWcx52Uh3cEG6VrdMK_t__7dacQ_5AnfY14BW8,877
|
|
418
418
|
rapidata/service/openapi_service.py,sha256=Z4NrAuilLlIWBdGOv6otz36tHS_vvU36w5jmvOUTmqo,3198
|
|
419
419
|
rapidata/service/token_manager.py,sha256=JZ5YbR5Di8dO3H4kK11d0kzWlrXxjgCmeNkHA4AapCM,6425
|
|
420
|
-
rapidata-2.1.
|
|
421
|
-
rapidata-2.1.
|
|
422
|
-
rapidata-2.1.
|
|
423
|
-
rapidata-2.1.
|
|
420
|
+
rapidata-2.1.3.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
421
|
+
rapidata-2.1.3.dist-info/METADATA,sha256=qtAlYurcVv92pq9I3LzFMppkg2RpmJAGg7CruP5rW50,1067
|
|
422
|
+
rapidata-2.1.3.dist-info/WHEEL,sha256=RaoafKOydTQ7I_I3JTrPCg6kUmTgtm4BornzOqyEfJ8,88
|
|
423
|
+
rapidata-2.1.3.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|