simpleml.datasets.numpy_mixin module

Numpy Module for external “dataframe”

Inherit and extend for particular patterns. It is a bit of a misnomer to use the term “dataframe”, since there are very few expected attributes and they are by no means unique to pandas.

class simpleml.datasets.numpy_mixin.NumpyDatasetMixin[source]

Bases: simpleml.datasets.abstract_mixin.AbstractDatasetMixin

Assumes _external_file is a dictionary of numpy ndarrays

X

Return the subset that isn’t in the target labels

get(column, split)[source]

Explicitly split validation splits Assumes self.dataframe has a get method to return a dictionary of {‘X’: X, ‘y’: y} Uses self.label_columns if y is named something else – only looks at first entry in list

get_feature_names()[source]

Should return a list of the features in the dataset

y

Return the target label columns