DatasetΒΆ
Base class for all datasets.
All datasets inherit from this class, be they stored in a file or generated on the fly.
ParametersΒΆ
-
task
Type of task the dataset is meant for. Should be one of: - "Regression" - "Binary classification" - "Multi-class classification" - "Multi-output binary classification" - "Multi-output regression"
-
n_features
Number of features in the dataset.
-
n_samples β defaults to
None
Number of samples in the dataset.
-
n_classes β defaults to
None
Number of classes in the dataset, only applies to classification datasets.
-
n_outputs β defaults to
None
Number of outputs the target is made of, only applies to multi-output datasets.
-
sparse β defaults to
False
Whether the dataset is sparse or not.
AttributesΒΆ
-
desc
Return the description from the docstring.
MethodsΒΆ
take
Iterate over the k samples.
Parameters
- k (int)