Dataset#
- class empulse.datasets.Dataset(data, target, tp_cost, tn_cost, fp_cost, fn_cost, feature_names, target_names, name, DESCR)[source]#
Container object for datasets returned by the load functions.
- Attributes:
- data
pandas.DataFrame
ornumpy.ndarray
Features of the dataset.
- target
pandas.Series
ornumpy.ndarray
The classification labels.
- tp_cost
pandas.Series
,numpy.ndarray
or float The cost of true positives.
- tn_cost
pandas.Series
,numpy.ndarray
or float The cost of true negatives.
- fp_cost
pandas.Series
,numpy.ndarray
or float The cost of false positives.
- fn_cost
pandas.Series
,numpy.ndarray
or float The cost of false negatives.
- feature_names
pandas.Series
ornumpy.ndarray
The meaning of the features.
- target_names
pandas.Series
ornumpy.ndarray
The meaning of the labels.
- namestr
The name of the dataset.
- DESCRstr
The full description of the dataset
- data