c270e59bf951bca41743bd03272e5b3f255be97c,autokeras/tuners/greedy.py,GreedyOracle,_generate_hp_values,#GreedyOracle#Any#,163

Before Change



        collisions = 0
        while True:
            hps = copy.deepcopy(best_hps)
            // Generate a set of random values.
            for hp in hp_list:
                // TODO: Check is_active for hp.
                hps.values[hp.name] = hp.random_sample(self._seed_state)

After Change


                // if active, check if selected to be changed.
                if hps.is_active(hp):
                    // if was active and not selected, do nothing.
                    if best_hps.is_active(hp.name) and hp.name not in hp_names:
                        continue
                    // if was not active or selected, sample.
                    hps.values[hp.name] = hp.random_sample(self._seed_state)
                    self._seed_state += 1
            values = hps.values
            // Keep trying until the set of values is unique,
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: jhfjhfj1/autokeras
Commit Name: c270e59bf951bca41743bd03272e5b3f255be97c
Time: 2020-08-17
Author: jin@tamu.edu
File Name: autokeras/tuners/greedy.py
Class Name: GreedyOracle
Method Name: _generate_hp_values


Project Name: tensorflow/models
Commit Name: e1799db4a196fc6bf50561c557d39bf1e989bf6a
Time: 2020-02-27
Author: yeqing@google.com
File Name: official/modeling/hyperparams/base_config.py
Class Name: Config
Method Name: __setattr__