a7272b7309b6d53e70afe7c19dc3ca383962261a,mlflow/store/sqlalchemy_store.py,SqlAlchemyStore,restore_experiment,#SqlAlchemyStore#Any#,211
Before Change
self._save_to_db(experiment)
def restore_experiment(self, experiment_id):
experiment = self._get_experiment(experiment_id, ViewType.DELETED_ONLY)
experiment.lifecycle_stage = LifecycleStage.ACTIVE
self._save_to_db(experiment)
def rename_experiment(self, experiment_id, new_name):
experiment = self._get_experiment(experiment_id, ViewType.ALL)
if experiment.lifecycle_stage != LifecycleStage.ACTIVE:
After Change
self._save_to_db(objs=experiment, session=session)
def restore_experiment(self, experiment_id):
with self.ManagedSessionMaker() as session:
experiment = self._get_experiment(session, experiment_id, ViewType.DELETED_ONLY)
experiment.lifecycle_stage = LifecycleStage.ACTIVE
self._save_to_db(objs=experiment, session=session)
def rename_experiment(self, experiment_id, new_name):
with self.ManagedSessionMaker() as session:
experiment = self._get_experiment(session, experiment_id, ViewType.ALL)
if experiment.lifecycle_stage != LifecycleStage.ACTIVE:
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 8
Instances
Project Name: mlflow/mlflow
Commit Name: a7272b7309b6d53e70afe7c19dc3ca383962261a
Time: 2019-03-13
Author: 39497902+dbczumar@users.noreply.github.com
File Name: mlflow/store/sqlalchemy_store.py
Class Name: SqlAlchemyStore
Method Name: restore_experiment
Project Name: mlflow/mlflow
Commit Name: a7272b7309b6d53e70afe7c19dc3ca383962261a
Time: 2019-03-13
Author: 39497902+dbczumar@users.noreply.github.com
File Name: mlflow/store/sqlalchemy_store.py
Class Name: SqlAlchemyStore
Method Name: delete_experiment
Project Name: mlflow/mlflow
Commit Name: a7272b7309b6d53e70afe7c19dc3ca383962261a
Time: 2019-03-13
Author: 39497902+dbczumar@users.noreply.github.com
File Name: mlflow/store/sqlalchemy_store.py
Class Name: SqlAlchemyStore
Method Name: rename_experiment