Legacy Database¶
Legacy storage¶
Old Storage implementation.
- class orion.storage.legacy.Legacy(database=None, setup=True)[source]¶
Legacy protocol, store all experiments and trials inside the Database()
- Parameters
- config: Dict
configuration definition passed from experiment_builder to storage factory to legacy constructor. See Database for more details
- setup: bool
Setup the database (create indexes)
Methods
- acquire_algorithm_lock(experiment=None, uid=None, timeout=60, retry_interval=1)[source]¶
See
orion.storage.base.BaseStorageProtocol.acquire_algorithm_lock()
- count_broken_trials(experiment)[source]¶
See
orion.storage.base.BaseStorageProtocol.count_broken_trials()
- count_completed_trials(experiment)[source]¶
See
orion.storage.base.BaseStorageProtocol.count_completed_trials()
- create_experiment(config)[source]¶
See
orion.storage.base.BaseStorageProtocol.create_experiment()
- delete_algorithm_lock(experiment=None, uid=None)[source]¶
See
orion.storage.base.BaseStorageProtocol.delete_algorithm_lock()
- delete_experiment(experiment=None, uid=None)[source]¶
See
orion.storage.base.BaseStorageProtocol.delete_experiment()
- fetch_experiments(query, selection=None)[source]¶
See
orion.storage.base.BaseStorageProtocol.fetch_experiments()
- fetch_lost_trials(experiment)[source]¶
See
orion.storage.base.BaseStorageProtocol.fetch_lost_trials()
- fetch_noncompleted_trials(experiment)[source]¶
See
orion.storage.base.BaseStorageProtocol.fetch_noncompleted_trials()
- fetch_pending_trials(experiment)[source]¶
See
orion.storage.base.BaseStorageProtocol.fetch_pending_trials()
- fetch_trials_by_status(experiment, status)[source]¶
See
orion.storage.base.BaseStorageProtocol.fetch_trials_by_status()
- get_algorithm_lock_info(experiment=None, uid=None)[source]¶
See
orion.storage.base.BaseStorageProtocol.get_algorithm_lock_info()
- initialize_algorithm_lock(experiment_id, algorithm_config)[source]¶
See
orion.storage.base.BaseStorageProtocol.initialize_algorithm_lock()
- push_trial_results(trial)[source]¶
See
orion.storage.base.BaseStorageProtocol.push_trial_results()
- release_algorithm_lock(experiment=None, uid=None, new_state=None)[source]¶
See
orion.storage.base.BaseStorageProtocol.release_algorithm_lock()
- retrieve_result(trial, **kwargs)[source]¶
Do nothing for the legacy backend.
Trial object should already have its results at this point.
- Parameters
- trial: Trial
The trial object to be updated
- Returns
- returns the trial object
Notes
This does not update the database!
- set_trial_status(trial, status, heartbeat=None, was=None)[source]¶
See
orion.storage.base.BaseStorageProtocol.set_trial_status()
- update_experiment(experiment=None, uid=None, where=None, **kwargs)[source]¶
See
orion.storage.base.BaseStorageProtocol.update_experiment()