--random-state for optimzer to get reproducible results added

This commit is contained in:
hroff-1902
2019-04-23 21:18:52 +03:00
parent d3e956f7cc
commit a022b1a6c1
3 changed files with 24 additions and 1 deletions

View File

@@ -235,7 +235,8 @@ class Hyperopt(Backtesting):
base_estimator="ET",
acq_optimizer="auto",
n_initial_points=30,
acq_optimizer_kwargs={'n_jobs': cpu_count}
acq_optimizer_kwargs={'n_jobs': cpu_count},
random_state=self.config.get('hyperopt_random_state', None)
)
def run_optimizer_parallel(self, parallel, asked) -> List: