def _init_trial(trial, state): import skopt random_starts, x0, y0, dims = state.opt_inputs(trial.run_id) res = util.log_apply(skopt.gbrt_minimize, lambda *args: 0, dims, n_calls=1, n_random_starts=random_starts, x0=x0, y0=y0, random_state=state.random_state, kappa=state.batch_flags["kappa"], xi=state.batch_flags["xi"]) state.update(res) return state.next_trial_flags()
def _init_trial(trial, state): import skopt inputs = state.opt_inputs(trial.run_id) res = util.log_apply(skopt.gp_minimize, lambda *args: 0, inputs.dims, n_calls=1, n_random_starts=inputs.random_starts, x0=inputs.x0, y0=inputs.y0, random_state=state.random_state, acq_func=state.batch_flags["acq-func"], kappa=state.batch_flags["kappa"], xi=state.batch_flags["xi"], noise=state.batch_flags["noise"]) state.update(res) return state.next_trial_flags()