a567a00dd26a89d98c835a06f0c107762a0e2d3b,autokeras/engine/tuner.py,AutoTuner,_get_best_trial_epochs,#AutoTuner#,184

Before Change



    def _get_best_trial_epochs(self):
        best_trial = self.oracle.get_best_trials(1)[0]
        return len(best_trial.metrics.metrics["val_loss"]._observations)

    def _build_best_model(self):
        best_trial = self.oracle.get_best_trials(1)[0]
        best_hp = best_trial.hyperparameters

After Change



    def _get_best_trial_epochs(self):
        best_trial = self.oracle.get_best_trials(1)[0]
        return self.oracle.get_trial(best_trial.trial_id).best_step

    def _build_best_model(self):
        best_trial = self.oracle.get_best_trials(1)[0]
        best_hp = best_trial.hyperparameters
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: jhfjhfj1/autokeras
Commit Name: a567a00dd26a89d98c835a06f0c107762a0e2d3b
Time: 2020-08-23
Author: jhfjhfj1@gmail.com
File Name: autokeras/engine/tuner.py
Class Name: AutoTuner
Method Name: _get_best_trial_epochs


Project Name: pfnet/optuna
Commit Name: c533f103f5acae89dc2a38cbca40f5963e029c37
Time: 2019-12-12
Author: chris@uintel.ai
File Name: optuna/storages/rdb/storage.py
Class Name: RDBStorage
Method Name: get_best_trial