967eaffc0bef4d8d22c929b4bf8f5c1a734b1cf9,optuna/multi_objective/visualization/_pareto_front.py,,_get_pareto_front_3d,#Any#Any#Any#Any#,150
Before Change
if axis_order is None:
axis_order = list(range(3))
elif max (axis_order) > 2:
_logger.warning("axis_order contains invalid index higher than 2")
elif min(axis_order) < 0:
_logger.warning("axis_order contains invalid index lower than 0")
data = go.Scatter3d(
x=[t.values[axis_order[0]] for t in trials],
y=[t.values[axis_order[1]] for t in trials],
After Change
raise ValueError(
f"Size of `axis_order` {axis_order}. Expect: 3, Actual: {len(axis_order)}"
)
if np.unique(axis_order).size != 3:
raise ValueError(f"Elements of given `axis_order` {axis_order} are not unique!")
if max(axis_order) > 2:
raise ValueError(
f"Given `axis_order` {axis_order} contains invalid index {max(axis_order)} "
"higher than 2"
)
if min(axis_order) < 0:
raise ValueError(
f"Given `axis_order` {axis_order} contains invalid index {min(axis_order)} "
"lower than 0"
)
data = go.Scatter3d(
x=[t.values[axis_order[0]] for t in trials],
y=[t.values[axis_order[1]] for t in trials],
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
Instances Project Name: pfnet/optuna
Commit Name: 967eaffc0bef4d8d22c929b4bf8f5c1a734b1cf9
Time: 2020-11-09
Author: okada@preferred.jp
File Name: optuna/multi_objective/visualization/_pareto_front.py
Class Name:
Method Name: _get_pareto_front_3d
Project Name: ray-project/ray
Commit Name: ebdccde0305125c2d507ef459b710a6a5ea99760
Time: 2020-04-28
Author: ed.nmi.oakes@gmail.com
File Name: python/ray/worker.py
Class Name:
Method Name: init
Project Name: ray-project/ray
Commit Name: 1f00f834ac44d06dbe7264ca712b8d587b0a60f6
Time: 2021-01-18
Author: sven@anyscale.io
File Name: rllib/agents/a3c/a3c.py
Class Name:
Method Name: validate_config