lore_sa.dataset.Dataset

class lore_sa.dataset.Dataset[source]

Generic class to handle datasets

__init__()

Methods

__init__()

get_categorical_columns()

get_class_values()

return the list of values of the target column :return:

get_feature_name(index)

Get the feature name by index :param index: :return: the name of the corresponding feature

get_feature_names()

get_number_of_features()

get_numeric_columns()

set_class_name(class_name)

Set the class name.

set_descriptor(descriptor)

set_target_label(descriptor)

Set the target column into the dataset descriptor

update_descriptor()

it creates the dataset descriptor dictionary

get_class_values()[source]

return the list of values of the target column :return:

get_feature_name(index)[source]

Get the feature name by index :param index: :return: the name of the corresponding feature

set_class_name(class_name: str)[source]

Set the class name. Only the column name string :param [str] class_name: :return:

set_target_label(descriptor)[source]

Set the target column into the dataset descriptor

Parameters

descriptor

Returns

a modified version of the input descriptor with a new key ‘target’

abstract update_descriptor()[source]

it creates the dataset descriptor dictionary