edc1be55d3a858213b77a2e6b7692014cc2b3039,optuna/_study_summary.py,StudySummary,direction,#StudySummary#Any#,89

Before Change


        if isinstance(d, Sequence):
            d = tuple(d)
            if len(d) == 1:
                self._direction = d[0]
            else:
                self._direction = d
        else:
            self._direction = d

After Change


    @direction.setter
    def direction(self, d: StudyDirection) -> None:

        if len(self._directions) > 1:
            raise RuntimeError(
                "This attribute is not available for the multi-objective optimization."
            )

        self._directions = (d,)

    @property
    def directions(self) -> Sequence[StudyDirection]:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: pfnet/optuna
Commit Name: edc1be55d3a858213b77a2e6b7692014cc2b3039
Time: 2020-11-12
Author: imamura@ms.k.u-tokyo.ac.jp
File Name: optuna/_study_summary.py
Class Name: StudySummary
Method Name: direction


Project Name: pfnet/optuna
Commit Name: 5abd67cfe591d58c41af5fedeff06bda057c6d55
Time: 2020-11-09
Author: imamura@ms.k.u-tokyo.ac.jp
File Name: optuna/trial/_frozen.py
Class Name: FrozenTrial
Method Name: value


Project Name: facebookresearch/ParlAI
Commit Name: 7754695ccf3bd340a27e64604408105cb00d2501
Time: 2019-02-27
Author: edinan@fb.com
File Name: parlai/core/torch_ranker_agent.py
Class Name: TorchRankerAgent
Method Name: _find_match