35d9988b7584db6d481c30116d37f5f89bf443a2,optuna/visualization.py,,_get_optimization_history_plot,#Any#,128
Before Change
best_values = [float("inf")] if study.direction == StudyDirection.MINIMIZE else [-float("inf")]
for trial in trials:
if isinstance(trial.value, int):
trial_value = float(trial.value)
elif isinstance(trial.value, float):
trial_value = trial.value
else:
raise ValueError(
"Trial{} has COMPLETE state, but its value is non-numeric.".format(trial.number))
if study.direction == StudyDirection.MINIMIZE:
best_values.append(min(best_values[-1], trial_value))
else:
best_values.append(max(best_values[-1], trial_value))
After Change
if len(trials) == 0:
logger.warning("Study instance does not contain trials.")
return go.Figure(data=[], layout=layout)
best_values = [float("inf")] if study.direction == StudyDirection.MINIMIZE else [-float("inf")]
for trial in trials:
if isinstance(trial.value, float):
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances Project Name: pfnet/optuna
Commit Name: 35d9988b7584db6d481c30116d37f5f89bf443a2
Time: 2019-09-19
Author: suehiro619@gmail.com
File Name: optuna/visualization.py
Class Name:
Method Name: _get_optimization_history_plot
Project Name: HazyResearch/fonduer
Commit Name: d349126228e0b68d1bf4be5e7f10bdefab43f71b
Time: 2018-07-22
Author: lwhsiao@stanford.edu
File Name: fonduer/parser/parser.py
Class Name: ParserUDF
Method Name: _parse_figure
Project Name: Epistimio/orion
Commit Name: 9d941d30962c211971ec316bf40c2ebfbf28a567
Time: 2021-02-24
Author: xavier.bouthillier@umontreal.ca
File Name: src/orion/analysis/lpi_utils.py
Class Name:
Method Name: lpi