5abd67cfe591d58c41af5fedeff06bda057c6d55,optuna/trial/_frozen.py,FrozenTrial,value,#FrozenTrial#Any#,376

Before Change


    @value.setter
    def value(self, v: Optional[Union[float, Sequence[float]]]) -> None:

        if isinstance(v, Sequence):
            v = tuple(v)
            if len(v) > 1:
                self._value = v
            else:
                self._value = v[0]
        else:
            self._value = v

    @property
    def datetime_start(self) -> Optional[datetime.datetime]:

        return self._datetime_start

After Change



        assert not isinstance(v, Sequence)
        if self._values is not None:
            if len(self._values) > 1:
                raise RuntimeError(
                    "This attribute is not available for the multi-objective optimization."
                )

        if v is not None:
            self._values = (v,)
        else:
            self._values = None
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

Instances


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: cornellius-gp/gpytorch
Commit Name: 979b8c9efa551e8c948a4aca145367a2d87ac8d6
Time: 2019-02-26
Author: balandat@fb.com
File Name: gpytorch/distributions/multitask_multivariate_normal.py
Class Name: MultitaskMultivariateNormal
Method Name: rsample


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