storage.base#

This module contains base storage objects

Classes

BaseStorage()

Base class for sampling algorithms.

class storage.base.BaseStorage[source]#

Bases: ABC

Base class for sampling algorithms.

Warning: This class should not be used directly. Use derived classes instead.

get_data()[source]#

Fetches data from storage.

Returns:

List of Features and targets in storage as tuple.

abstract update(x, y)[source]#

Given a data point, it updates the storage. :type x: dict :param x: Features as Dict of feature names (keys) and feature values (values) :type y: Optional[Any] :param y: Target as float or integer

Returns:

None