multiml.database.database module
Module to define Database abstraction.
- class multiml.database.database.Database
Bases:
object
Base class of Database.
- abstract add_data(data_id, var_name, data, phase)
Add data to database for given data_id, var_name and phase.
If var_name already exists, data need to be appended
- abstract update_data(data_id, var_name, data, phase, index)
Update (replace) data in database for given data_id, var_name, phase and index.
- abstract get_data(data_id, var_name, phase, index)
Get data for given data_id, var_name, phase and index from database.
- abstract delete_data(data_id, var_name, phase)
Delete data for given data_id, var_name and phase from database.
- abstract get_metadata(data_id, phase)
Returns a dictionary of metadata for a given data_id and phase.
- The dict contains: {‘var_name’: {‘type’: type of variable,
‘total_events’: number of samples}