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:
datapandas.DataFrame or numpy.ndarray

Features of the dataset.

targetpandas.Series or numpy.ndarray

The classification labels.

tp_costpandas.Series, numpy.ndarray or float

The cost of true positives.

tn_costpandas.Series, numpy.ndarray or float

The cost of true negatives.

fp_costpandas.Series, numpy.ndarray or float

The cost of false positives.

fn_costpandas.Series, numpy.ndarray or float

The cost of false negatives.

feature_namespandas.Series or numpy.ndarray

The meaning of the features.

target_namespandas.Series or numpy.ndarray

The meaning of the labels.

namestr

The name of the dataset.

DESCRstr

The full description of the dataset