rapidata 2.17.0__py3-none-any.whl → 2.17.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/selection/ab_test_selection.py +1 -1
- rapidata/rapidata_client/validation/rapidata_validation_set.py +2 -2
- rapidata/rapidata_client/validation/validation_set_manager.py +17 -15
- {rapidata-2.17.0.dist-info → rapidata-2.17.1.dist-info}/METADATA +1 -1
- {rapidata-2.17.0.dist-info → rapidata-2.17.1.dist-info}/RECORD +7 -7
- {rapidata-2.17.0.dist-info → rapidata-2.17.1.dist-info}/LICENSE +0 -0
- {rapidata-2.17.0.dist-info → rapidata-2.17.1.dist-info}/WHEEL +0 -0
|
@@ -20,7 +20,7 @@ class AbTestSelection(RapidataSelection):
|
|
|
20
20
|
b_selections (Sequence[RapidataSelection]): List of selections for group B.
|
|
21
21
|
"""
|
|
22
22
|
|
|
23
|
-
def __init__(self, a_selections: Sequence[RapidataSelection], b_selections: Sequence[RapidataSelection]
|
|
23
|
+
def __init__(self, a_selections: Sequence[RapidataSelection], b_selections: Sequence[RapidataSelection]):
|
|
24
24
|
self.a_selections = a_selections
|
|
25
25
|
self.b_selections = b_selections
|
|
26
26
|
|
|
@@ -31,13 +31,13 @@ class RapidataValidationSet:
|
|
|
31
31
|
rapid._add_to_validation_set(self.id, self.__openapi_service, self.__session)
|
|
32
32
|
return self
|
|
33
33
|
|
|
34
|
-
def update_dimensions(self, dimensions: list[str]
|
|
34
|
+
def update_dimensions(self, dimensions: list[str]):
|
|
35
35
|
"""Update the dimensions of the validation set.
|
|
36
36
|
|
|
37
37
|
Args:
|
|
38
38
|
dimensions (list[str]): The new dimensions of the validation set.
|
|
39
39
|
"""
|
|
40
|
-
self.__openapi_service.validation_api.validation_validation_set_id_dimensions_patch(self.id, UpdateDimensionsModel(dimensions=dimensions)
|
|
40
|
+
self.__openapi_service.validation_api.validation_validation_set_id_dimensions_patch(self.id, UpdateDimensionsModel(dimensions=dimensions))
|
|
41
41
|
return self
|
|
42
42
|
|
|
43
43
|
def _get_session(self, max_retries: int = 5, max_workers: int = 10) -> requests.Session:
|
|
@@ -39,7 +39,7 @@ class ValidationSetManager:
|
|
|
39
39
|
data_type: str = RapidataDataTypes.MEDIA,
|
|
40
40
|
contexts: list[str] | None = None,
|
|
41
41
|
explanations: list[str | None] | None = None,
|
|
42
|
-
dimensions: list[str]
|
|
42
|
+
dimensions: list[str] = [],
|
|
43
43
|
print_confirmation: bool = True,
|
|
44
44
|
) -> RapidataValidationSet:
|
|
45
45
|
"""Create a classification validation set.
|
|
@@ -59,7 +59,7 @@ class ValidationSetManager:
|
|
|
59
59
|
If provided has to be the same length as datapoints and will be shown in addition to the instruction and answer options. (Therefore will be different for each datapoint)
|
|
60
60
|
Will be match up with the datapoints using the list index.
|
|
61
61
|
explanations (list[str | None], optional): The explanations for each datapoint. Will be given to the annotators in case the answer is wrong. Defaults to None.
|
|
62
|
-
dimensions (list[str]
|
|
62
|
+
dimensions (list[str], optional): The dimensions to add to the validation set accross which users will be tracked. Defaults to [] which is the default dimension.
|
|
63
63
|
print_confirmation (bool, optional): Whether to print a confirmation message that validation set has been created. Defaults to True.
|
|
64
64
|
|
|
65
65
|
Example:
|
|
@@ -107,7 +107,7 @@ class ValidationSetManager:
|
|
|
107
107
|
data_type: str = RapidataDataTypes.MEDIA,
|
|
108
108
|
contexts: list[str] | None = None,
|
|
109
109
|
explanation: list[str | None] | None = None,
|
|
110
|
-
dimensions: list[str]
|
|
110
|
+
dimensions: list[str] = [],
|
|
111
111
|
print_confirmation: bool = True,
|
|
112
112
|
) -> RapidataValidationSet:
|
|
113
113
|
"""Create a comparison validation set.
|
|
@@ -127,7 +127,7 @@ class ValidationSetManager:
|
|
|
127
127
|
If provided has to be the same length as datapoints and will be shown in addition to the instruction and truth. (Therefore will be different for each datapoint)
|
|
128
128
|
Will be match up with the datapoints using the list index.
|
|
129
129
|
explanation (list[str | None], optional): The explanations for each datapoint. Will be given to the annotators in case the answer is wrong. Defaults to None.
|
|
130
|
-
dimensions (list[str]
|
|
130
|
+
dimensions (list[str], optional): The dimensions to add to the validation set accross which users will be tracked. Defaults to [] which is the default dimension.
|
|
131
131
|
print_confirmation (bool, optional): Whether to print a confirmation message that validation set has been created. Defaults to True.
|
|
132
132
|
|
|
133
133
|
Example:
|
|
@@ -175,7 +175,7 @@ class ValidationSetManager:
|
|
|
175
175
|
required_precision: float = 1.0,
|
|
176
176
|
required_completeness: float = 1.0,
|
|
177
177
|
explanation: list[str | None] | None = None,
|
|
178
|
-
dimensions: list[str]
|
|
178
|
+
dimensions: list[str] = [],
|
|
179
179
|
print_confirmation: bool = True,
|
|
180
180
|
) -> RapidataValidationSet:
|
|
181
181
|
"""Create a select words validation set.
|
|
@@ -194,7 +194,7 @@ class ValidationSetManager:
|
|
|
194
194
|
required_precision (float, optional): The required precision for the labeler to get the rapid correct (minimum ratio of the words selected that need to be correct). Defaults to 1.0 (no wrong word can be selected).
|
|
195
195
|
required_completeness (float, optional): The required completeness for the labeler to get the rapid correct (miminum ratio of total correct words selected). Defaults to 1.0 (all correct words need to be selected).
|
|
196
196
|
explanation (list[str | None], optional): The explanations for each datapoint. Will be given to the annotators in case the answer is wrong. Defaults to None.
|
|
197
|
-
dimensions (list[str]
|
|
197
|
+
dimensions (list[str], optional): The dimensions to add to the validation set accross which users will be tracked. Defaults to [] which is the default dimension.
|
|
198
198
|
print_confirmation (bool, optional): Whether to print a confirmation message that validation set has been created. Defaults to True.
|
|
199
199
|
|
|
200
200
|
Example:
|
|
@@ -238,7 +238,7 @@ class ValidationSetManager:
|
|
|
238
238
|
datapoints: list[str],
|
|
239
239
|
contexts: list[str] | None = None,
|
|
240
240
|
explanation: list[str | None] | None = None,
|
|
241
|
-
dimensions: list[str]
|
|
241
|
+
dimensions: list[str] = [],
|
|
242
242
|
print_confirmation: bool = True,
|
|
243
243
|
) -> RapidataValidationSet:
|
|
244
244
|
"""Create a locate validation set.
|
|
@@ -253,7 +253,7 @@ class ValidationSetManager:
|
|
|
253
253
|
datapoints (list[str]): The datapoints that will be used for validation.
|
|
254
254
|
contexts (list[str], optional): The contexts for each datapoint. Defaults to None.
|
|
255
255
|
explanation (list[str | None], optional): The explanations for each datapoint. Will be given to the annotators in case the answer is wrong. Defaults to None.
|
|
256
|
-
dimensions (list[str]
|
|
256
|
+
dimensions (list[str], optional): The dimensions to add to the validation set accross which users will be tracked. Defaults to [] which is the default dimension.
|
|
257
257
|
print_confirmation (bool, optional): Whether to print a confirmation message that validation set has been created. Defaults to True.
|
|
258
258
|
|
|
259
259
|
Example:
|
|
@@ -299,7 +299,7 @@ class ValidationSetManager:
|
|
|
299
299
|
datapoints: list[str],
|
|
300
300
|
contexts: list[str] | None = None,
|
|
301
301
|
explanation: list[str | None] | None = None,
|
|
302
|
-
dimensions: list[str]
|
|
302
|
+
dimensions: list[str] = [],
|
|
303
303
|
print_confirmation: bool = True,
|
|
304
304
|
) -> RapidataValidationSet:
|
|
305
305
|
"""Create a draw validation set.
|
|
@@ -314,7 +314,7 @@ class ValidationSetManager:
|
|
|
314
314
|
datapoints (list[str]): The datapoints that will be used for validation.
|
|
315
315
|
contexts (list[str], optional): The contexts for each datapoint. Defaults to None.
|
|
316
316
|
explanation (list[str | None], optional): The explanations for each datapoint. Will be given to the annotators in case the answer is wrong. Defaults to None.
|
|
317
|
-
dimensions (list[str]
|
|
317
|
+
dimensions (list[str], optional): The dimensions to add to the validation set accross which users will be tracked. Defaults to [] which is the default dimension.
|
|
318
318
|
print_confirmation (bool, optional): Whether to print a confirmation message that validation set has been created. Defaults to True.
|
|
319
319
|
|
|
320
320
|
Example:
|
|
@@ -359,7 +359,7 @@ class ValidationSetManager:
|
|
|
359
359
|
datapoints: list[str],
|
|
360
360
|
contexts: list[str] | None = None,
|
|
361
361
|
explanation: list[str | None] | None = None,
|
|
362
|
-
dimensions: list[str]
|
|
362
|
+
dimensions: list[str] = [],
|
|
363
363
|
print_confirmation: bool = True,
|
|
364
364
|
) -> RapidataValidationSet:
|
|
365
365
|
"""Create a timestamp validation set.
|
|
@@ -375,7 +375,7 @@ class ValidationSetManager:
|
|
|
375
375
|
datapoints (list[str]): The datapoints that will be used for validation.
|
|
376
376
|
contexts (list[str], optional): The contexts for each datapoint. Defaults to None.
|
|
377
377
|
explanation (list[str | None], optional): The explanations for each datapoint. Will be given to the annotators in case the answer is wrong. Defaults to None.
|
|
378
|
-
dimensions (list[str]
|
|
378
|
+
dimensions (list[str], optional): The dimensions to add to the validation set accross which users will be tracked. Defaults to [] which is the default dimension.
|
|
379
379
|
print_confirmation (bool, optional): Whether to print a confirmation message that validation set has been created. Defaults to True.
|
|
380
380
|
|
|
381
381
|
Example:
|
|
@@ -416,7 +416,7 @@ class ValidationSetManager:
|
|
|
416
416
|
def create_mixed_set(self,
|
|
417
417
|
name: str,
|
|
418
418
|
rapids: list[Rapid],
|
|
419
|
-
dimensions: list[str]
|
|
419
|
+
dimensions: list[str] = [],
|
|
420
420
|
print_confirmation: bool = True
|
|
421
421
|
) -> RapidataValidationSet:
|
|
422
422
|
"""Create a validation set with a list of rapids.
|
|
@@ -424,7 +424,7 @@ class ValidationSetManager:
|
|
|
424
424
|
Args:
|
|
425
425
|
name (str): The name of the validation set. (will not be shown to the labeler)
|
|
426
426
|
rapids (list[Rapid]): The list of rapids to add to the validation set.
|
|
427
|
-
dimensions (list[str]
|
|
427
|
+
dimensions (list[str], optional): The dimensions to add to the validation set accross which users will be tracked. Defaults to [] which is the default dimension.
|
|
428
428
|
print_confirmation (bool, optional): Whether to print a confirmation message that validation set has been created. Defaults to True.
|
|
429
429
|
"""
|
|
430
430
|
|
|
@@ -471,7 +471,9 @@ class ValidationSetManager:
|
|
|
471
471
|
f"Now viewable under: https://app.{self.__openapi_service.enviroment}/validation-set/detail/{validation_set_id}",
|
|
472
472
|
sep="")
|
|
473
473
|
|
|
474
|
-
|
|
474
|
+
if dimensions:
|
|
475
|
+
validation_set.update_dimensions(dimensions)
|
|
476
|
+
|
|
475
477
|
return validation_set
|
|
476
478
|
|
|
477
479
|
|
|
@@ -448,7 +448,7 @@ rapidata/rapidata_client/referee/_early_stopping_referee.py,sha256=ULbokQZ91wc9D
|
|
|
448
448
|
rapidata/rapidata_client/referee/_naive_referee.py,sha256=PVR8uy8hfRjr2DBzdOFyvou6S3swNc-4UvgjhO-09TU,1209
|
|
449
449
|
rapidata/rapidata_client/selection/__init__.py,sha256=LbafUzvKgKbykbvHZJ7S9aYU82HQl71Y7jAbj_HTZ8c,382
|
|
450
450
|
rapidata/rapidata_client/selection/_base_selection.py,sha256=tInbWOgxT_4CHkr5QHoG55ZcUi1ZmfcEGIwLKKCnN20,147
|
|
451
|
-
rapidata/rapidata_client/selection/ab_test_selection.py,sha256=
|
|
451
|
+
rapidata/rapidata_client/selection/ab_test_selection.py,sha256=fymubkVMawqJmYp9FKzWXTki9tgBgoj3cOP8rG9oOd0,1284
|
|
452
452
|
rapidata/rapidata_client/selection/capped_selection.py,sha256=iWhbM1LcayhgFm7oKADXCaKHGdiQIupI0jbYuuEVM2A,1184
|
|
453
453
|
rapidata/rapidata_client/selection/conditional_validation_selection.py,sha256=4etkO5p-wBoI8Wh8vBhNrXm7a_ioFvVmCANJmP8kIwI,2561
|
|
454
454
|
rapidata/rapidata_client/selection/demographic_selection.py,sha256=l4vnNbzlf9ED6BKqN4k5cZXShkXu9L1C5DtO78Vwr5M,1454
|
|
@@ -468,12 +468,12 @@ rapidata/rapidata_client/settings/play_video_until_the_end.py,sha256=LLHx2_72k5Z
|
|
|
468
468
|
rapidata/rapidata_client/settings/rapidata_settings.py,sha256=r6eDGo5YHMekOtWqPHD50uI8vEE9VoBJfaWEDFZ78RU,1430
|
|
469
469
|
rapidata/rapidata_client/settings/translation_behaviour.py,sha256=i9n_H0eKJyKW6m3MKH_Cm1XEKWVEWsAV_79xGmGIC-4,742
|
|
470
470
|
rapidata/rapidata_client/validation/__init__.py,sha256=s5wHVtcJkncXSFuL9I0zNwccNOKpWAqxqUjkeohzi2E,24
|
|
471
|
-
rapidata/rapidata_client/validation/rapidata_validation_set.py,sha256=
|
|
471
|
+
rapidata/rapidata_client/validation/rapidata_validation_set.py,sha256=GaatGGuJCHRvdPbjzI0NRQhxzRftKzf-FkaFv25iB78,2649
|
|
472
472
|
rapidata/rapidata_client/validation/rapids/__init__.py,sha256=WU5PPwtTJlte6U90MDakzx4I8Y0laj7siw9teeXj5R0,21
|
|
473
473
|
rapidata/rapidata_client/validation/rapids/box.py,sha256=t3_Kn6doKXdnJdtbwefXnYKPiTKHneJl9E2inkDSqL8,589
|
|
474
474
|
rapidata/rapidata_client/validation/rapids/rapids.py,sha256=uCKnoSn1RykNHgTFbrvCFlfzU8lF42cff-2I-Pd48w0,4620
|
|
475
475
|
rapidata/rapidata_client/validation/rapids/rapids_manager.py,sha256=F00lPYBUx5fTPRw50iZuobtdbjFo6ZHevPMk101JdaY,14271
|
|
476
|
-
rapidata/rapidata_client/validation/validation_set_manager.py,sha256=
|
|
476
|
+
rapidata/rapidata_client/validation/validation_set_manager.py,sha256=3gwoUkebAq2b5eMH-4plRz_5sab4mR8HcjYf0K0Tq8A,26698
|
|
477
477
|
rapidata/rapidata_client/workflow/__init__.py,sha256=7nXcY91xkxjHudBc9H0fP35eBBtgwHGWTQKbb-M4h7Y,477
|
|
478
478
|
rapidata/rapidata_client/workflow/_base_workflow.py,sha256=XyIZFKS_RxAuwIHS848S3AyLEHqd07oTD_5jm2oUbsw,762
|
|
479
479
|
rapidata/rapidata_client/workflow/_classify_workflow.py,sha256=9bT54wxVJgxC-zLk6MVNbseFpzYrvFPjt7DHvxqYfnk,1736
|
|
@@ -490,7 +490,7 @@ rapidata/service/credential_manager.py,sha256=_DIP665fpl4fkqj1l-wjRrBp-8fy2Db7tn
|
|
|
490
490
|
rapidata/service/local_file_service.py,sha256=pgorvlWcx52Uh3cEG6VrdMK_t__7dacQ_5AnfY14BW8,877
|
|
491
491
|
rapidata/service/openapi_service.py,sha256=fUQGLQzezjJbLqHVq7o6pQZUrK2Y12sfV23OstV4lOk,3234
|
|
492
492
|
rapidata/service/token_manager.py,sha256=C-8dN6P5TXCLANZCHWusmwAful5YBpKjKg0StQtajF0,6547
|
|
493
|
-
rapidata-2.17.
|
|
494
|
-
rapidata-2.17.
|
|
495
|
-
rapidata-2.17.
|
|
496
|
-
rapidata-2.17.
|
|
493
|
+
rapidata-2.17.1.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
494
|
+
rapidata-2.17.1.dist-info/METADATA,sha256=g9SEffx65dogoIW2A82uq0HH1HT_-Ly5yBdf0I5a7c8,1147
|
|
495
|
+
rapidata-2.17.1.dist-info/WHEEL,sha256=XbeZDeTWKc1w7CSIyre5aMDU_-PohRwTQceYnisIYYY,88
|
|
496
|
+
rapidata-2.17.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|