Defines a database object to store model results.
Bases: object
Database to store model results.
The database is based on shelve. Keys are strings that uniquely identify data sets. Values are lists of PyannoResult objects, which contain a copy of the annotations, the pyanno model that has been applied on them, and the value of the log likelihood of the annotations given the model.
Return an data ID that has is not present in the database.
The returned IDs have the form “<new_data_N>”, where N is an integer number.
Remove entry from database.
Parameters: |
|
---|
Return all entries with given data ID.
Parameters: | data_id (string) – Readable unique identifier for the annotations set |
---|
Store a pyAnno result in the database.
The data_id must be a unique identifier for an annotations set.
Parameters: |
|
---|
True if the database is closed
shelve database storing the models
Bases: traits.has_traits.HasStrictTraits
Class for database entries
AnnotationsContainer object
pyAnno model (subclass of AbstractModel)
value of the model performance (usually the log likelihood)