4cb81c0b6fcc39be3d782d81cb0ff776f31cc6b2,optuna/trial/_trial.py,Trial,report,#Trial#Any#Any#,507
Before Change
If trial is being used for multi-objective optimization.
return self.study.report(self, value=value, step=step)
def should_prune(self) -> bool:
Suggest whether the trial should be pruned or not.
After Change
If trial is being used for multi-objective optimization.
if len(self.study.directions) > 1:
raise NotImplementedError(
"Trial.report is not supported for multi-objective optimization."
)
try:
// For convenience, we allow users to report a value that can be cast to `float`.
value = float(value)
except (TypeError, ValueError):
message = "The `value` argument is of type "{}" but supposed to be a float.".format(
type(value).__name__
)
raise TypeError(message) from None
if step < 0:
raise ValueError("The `step` argument is {} but cannot be negative.".format(step))
intermediate_values = self.storage.get_trial(self._trial_id).intermediate_values
if step in intermediate_values:
// Do nothing if already reported.
// TODO(hvy): Consider raising a warning or an error.
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances Project Name: pfnet/optuna
Commit Name: 4cb81c0b6fcc39be3d782d81cb0ff776f31cc6b2
Time: 2021-01-14
Author: 38826298+HideakiImamura@users.noreply.github.com
File Name: optuna/trial/_trial.py
Class Name: Trial
Method Name: report
Project Name: chainer/chainercv
Commit Name: 1b0348a9b65fabfb5d45534cfde25c504890a56f
Time: 2017-06-06
Author: yuyuniitani@gmail.com
File Name: chainercv/extensions/semantic_segmentation/semantic_segmentation_evaluator.py
Class Name: SemanticSegmentationEvaluator
Method Name: evaluate
Project Name: chainer/chainercv
Commit Name: e69a1bf7a20467b10c096547e97923842ae71937
Time: 2017-06-02
Author: Hakuyume@users.noreply.github.com
File Name: chainercv/extensions/detection/detection_voc_ap_evaluator.py
Class Name: DetectionVOCAPEvaluator
Method Name: evaluate