logitorch.datasets.te.control_dataset¶
Attributes¶
Classes¶
Helper class that provides a standard way to create an ABC using |
Module Contents¶
- class logitorch.datasets.te.control_dataset.ControlDataset(split_set: str)[source]¶
Bases:
logitorch.datasets.base.AbstractTEDatasetHelper class that provides a standard way to create an ABC using inheritance.
The function takes in a string as an argument and returns None.
The function first checks if the string is in the list of split sets. If it is not, it raises an error.
If the string is in the list of split sets, the function checks if the control dataset folder exists. If it does not, it downloads the dataset.
The function then sets the split set to the string that was passed in as an argument.
The function then sets the dataset path to the control dataset folder and the split set.
The function then reads the dataset and sets the premises, hypotheses, and labels to the read dataset.
If there is an error, the function prints the error message.
- Parameters:
split_set (str) – str
- logitorch.datasets.te.control_dataset.CONTROL_DATASET_FOLDER = '/logitorch_datasets/control_dataset'[source]¶