Rapidata validation set
RapidataValidationSet #
A class for interacting with a Rapidata validation set.
Represents a set of all the validation tasks that can be added to an order.
When added to an order, the tasks will be selected randomly from the set.
Attributes:
Name | Type | Description |
---|---|---|
id |
str
|
The ID of the validation set. |
name |
str
|
The name of the validation set. |
Source code in src/rapidata/rapidata_client/validation/rapidata_validation_set.py
add_rapid #
Add a Rapid to the validation set.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
rapid
|
Rapid
|
The Rapid to add to the validation set. |
required |
Source code in src/rapidata/rapidata_client/validation/rapidata_validation_set.py
update_dimensions #
Update the dimensions of the validation set.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
dimensions
|
list[str]
|
The new dimensions of the validation set. |
required |
Source code in src/rapidata/rapidata_client/validation/rapidata_validation_set.py
update_should_alert #
Determines whether users should be alerted if they answer incorrectly.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
should_alert
|
bool
|
Specifies whether users should be alerted for incorrect answers. Defaults to True if not specifically overridden by this method. |
required |
Note
The userScore dimensions which are updated when a user answers a validation task are updated regardless of the value of should_alert
.
Source code in src/rapidata/rapidata_client/validation/rapidata_validation_set.py
view #
Opens the validation set details page in the browser.
Raises:
Type | Description |
---|---|
Exception
|
If the order is not in processing state. |
Source code in src/rapidata/rapidata_client/validation/rapidata_validation_set.py
delete #
Deletes the validation set