10efd7b636ca896b390406b760029d24d5916e88,optuna/visualization/matplotlib/_optimization_history.py,,_get_optimization_history_plot,#Any#Any#Any#,79
Before Change
return ax
best_values = [float("inf")] if study.direction == StudyDirection.MINIMIZE else [-float("inf")]
comp = min if study.direction == StudyDirection.MINIMIZE else max
for trial in trials:
trial_value = trial.value
assert trial_value is not None // For mypy
best_values.append(comp(best_values[-1], trial_value))
After Change
if study.direction == StudyDirection.MINIMIZE:
best_values = list(np.minimum.accumulate([t.value for t in trials]))
else:
best_values = list(np.maximum.accumulate([t.value for t in trials]))
// Draw a scatter plot and a line plot.
if target is None:
ax.scatter(
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances Project Name: pfnet/optuna
Commit Name: 10efd7b636ca896b390406b760029d24d5916e88
Time: 2021-02-25
Author: contact@c-bata.link
File Name: optuna/visualization/matplotlib/_optimization_history.py
Class Name:
Method Name: _get_optimization_history_plot
Project Name: pfnet/optuna
Commit Name: 10efd7b636ca896b390406b760029d24d5916e88
Time: 2021-02-25
Author: contact@c-bata.link
File Name: optuna/visualization/_optimization_history.py
Class Name:
Method Name: _get_optimization_history_plot
Project Name: sentinel-hub/eo-learn
Commit Name: aecbab8af9b50a864b7bf4af7e2d53771dd606db
Time: 2020-08-19
Author: jernej.a.puc@gmail.com
File Name: features/eolearn/features/feature_manipulation.py
Class Name: ValueFilloutTask
Method Name: fill