olpy.datasets.Dataset
- class olpy.datasets.Dataset(f_train, f_test, label='Label')[source]
Bases:
objectA helper class to load various datasets.
Properties created with the
@propertydecorator should be documented in the property’s getter method.- train_data
The training data without the labels.
- Type
pandas.DataFrame
- train_target
The output variable for the training data.
- Type
numpy.ndarray
- test_data
The testing data without the labels.
- Type
pandas.DataFrame
- test_target
The output variable for the test data.
- Type
numpy..ndarray
- Parameters
- Raises
FileNotFoundError – if the supplied files are inexistent.
IndexError – if the label provided does not match any column in the file.
Methods