db214fefd70b06d82e88f41c8cba39c6c4c3366f,hpobench/benchmarks/nas/tabular_benchmarks.py,FCNetBaseBenchmark,objective_function,#FCNetBaseBenchmark#Any#Any#Any#Any#,58

Before Change


        if isinstance(run_index, int):
            assert 0 <= run_index <= 3, f"run_index must be in [0, 3], not {run_index}"
            run_index = (run_index, )
        elif isinstance(run_index, tuple) or isinstance(run_index, list):
            assert len(run_index) != 0, "run_index must not be empty"
            assert min(run_index) >= 0 and max(run_index) <= 3, \
                f"all run_index values must be in [0, 3], but were {run_index}"

After Change


        if isinstance(run_index, int):
            assert 0 <= run_index <= 3, f"run_index must be in [0, 3], not {run_index}"
            run_index = (run_index, )
        elif isinstance(run_index, (Tuple, List)):
            assert len(run_index) != 0, "run_index must not be empty"
            if len(set(run_index)) != len(run_index):
                logger.debug("There are some values more than once in the run_index. We remove the redundant entries.")
            run_index = tuple(set(run_index))
            assert min(run_index) >= 0 and max(run_index) <= 3, \
                f"all run_index values must be in [0, 3], but were {run_index}"
        elif run_index is None:
            logger.debug("The run index is explicitly set to None! A random seed will be selected.")
            run_index = tuple(self.rng.choice((0, 1, 2, 3), size=1))
        else:
            raise ValueError(f"run index must be one of Tuple or Int, but was {type(run_index)}")

        self._reset_tracker()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: automl/HPOlib2
Commit Name: db214fefd70b06d82e88f41c8cba39c6c4c3366f
Time: 2020-12-10
Author: muller-phil@gmx.net
File Name: hpobench/benchmarks/nas/tabular_benchmarks.py
Class Name: FCNetBaseBenchmark
Method Name: objective_function


Project Name: deepmipt/DeepPavlov
Commit Name: 89d58cff936536b94f74021635412650b56e22e5
Time: 2018-06-20
Author: dilyara.rimovna@gmail.com
File Name: deeppavlov/models/evolution/evolution_param_generator.py
Class Name: ParamsEvolution
Method Name: sample_params


Project Name: deepmipt/DeepPavlov
Commit Name: c3f62292951d971607561821d6cdd67bfe77fb27
Time: 2018-06-26
Author: dilyara.rimovna@gmail.com
File Name: deeppavlov/models/evolution/evolution_param_generator.py
Class Name: ParamsEvolution
Method Name: sample_params