addbe43e93bea82a3eda2b8051df6b7e40fd9ec1,studio/model.py,FirebaseProvider,add_experiment,#FirebaseProvider#Any#,321
Before Change
experiment.status = "waiting"
self.__setitem__(self._get_experiments_keybase() + experiment.key,
experiment.__dict__)
Thread(target=self._upload_dir,
args=(self._get_experiments_keybase() +
experiment.key + "/workspace.tgz",
experiment.workspace_path)
).start()
self.__setitem__(self._get_user_keybase() + "experiments/" +
experiment.key,
After Change
experiment.time_added = time.time()
experiment.status = "waiting"
for tag, art in experiment.artifacts.iteritems():
if art["mutable"]:
art["key"] = self._get_experiments_keybase() + \
experiment.key + "/" + tag + ".tgz"
else:
if art["local"] is not None:
// upload immutable artifacts
blobkey = self._upload_dir(art["local"])
art["key"] = blobkey
self.__setitem__(self._get_experiments_keybase() + experiment.key,
experiment.__dict__)
self.__setitem__(self._get_user_keybase() + "experiments/" +
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
Instances
Project Name: studioml/studio
Commit Name: addbe43e93bea82a3eda2b8051df6b7e40fd9ec1
Time: 2017-06-19
Author: peter.zhokhov@sentient.ai
File Name: studio/model.py
Class Name: FirebaseProvider
Method Name: add_experiment
Project Name: studioml/studio
Commit Name: addbe43e93bea82a3eda2b8051df6b7e40fd9ec1
Time: 2017-06-19
Author: peter.zhokhov@sentient.ai
File Name: studio/model.py
Class Name: FirebaseProvider
Method Name: checkpoint_experiment
Project Name: hanxiao/bert-as-service
Commit Name: 83576d1223c1c4753064ab21eee7b39a1d006527
Time: 2018-11-26
Author: hanhxiao@tencent.com
File Name: example3.py
Class Name:
Method Name: