def best_model(self): algo = partial(tpe.suggest, n_startup_jobs=1) best = fmin(self.GBM, space=self.paras.hyper_opt, algo=algo, max_evals=20) print("best", best) return best