958e50b6eddf4fe101cdd8aabf755e8843256b37,sacred/experiment.py,Experiment,__init__,#Experiment#,36
Before Change
source-code or reliable reproduction of the runs.
caller_globals = inspect.stack()[1][0].f_globals
if name is None and interactive:
raise(RuntimeError("name is required in interactive mode."))
elif name is None:
name = os.path.basename(caller_globals["__file__"])
if name.endswith(".py"):
name = name[:-3]
elif name.endswith(".pyc"):
name = name[:-4]
super(Experiment, self).__init__(path=name,
ingredients=ingredients,
interactive=interactive,
_caller_globals=caller_globals)
After Change
if interactive:
raise RuntimeError("name is required in interactive mode.")
mainfile = caller_globals.get("__file__")
if mainfile is None:
raise RuntimeError("No main-file found. Are you running in "
"interactive mode? If so please provide a "
"name and set interactive=True.")
name = os.path.basename(mainfile)
if name.endswith(".py"):
name = name[:-3]
elif name.endswith(".pyc"):
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 6
Instances
Project Name: IDSIA/sacred
Commit Name: 958e50b6eddf4fe101cdd8aabf755e8843256b37
Time: 2016-12-01
Author: qwlouse@gmail.com
File Name: sacred/experiment.py
Class Name: Experiment
Method Name: __init__
Project Name: SheffieldML/GPy
Commit Name: 57c4306d9282b8d3fc815336c86c7af64f75a756
Time: 2015-10-03
Author: ibinbei@gmail.com
File Name: GPy/plotting/gpy_plot/gp_plots.py
Class Name:
Method Name: _plot_confidence
Project Name: SheffieldML/GPy
Commit Name: 57c4306d9282b8d3fc815336c86c7af64f75a756
Time: 2015-10-03
Author: ibinbei@gmail.com
File Name: GPy/plotting/gpy_plot/gp_plots.py
Class Name:
Method Name: _plot_mean
Project Name: kwgoodman/numerox
Commit Name: f9b010c181c3a4eee28d5e53d738afee4e837aaf
Time: 2018-12-17
Author: kwgoodman@gmail.com
File Name: numerox/tournament.py
Class Name:
Method Name: tournament_int2str