From c6cee3ebe4bcd9d173481cde9590546b4c6f431b Mon Sep 17 00:00:00 2001 From: MoonGem <34537029+MoonGem@users.noreply.github.com> Date: Thu, 22 Mar 2018 23:03:32 -0500 Subject: [PATCH] Update hyperopt.py --- freqtrade/optimize/hyperopt.py | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/freqtrade/optimize/hyperopt.py b/freqtrade/optimize/hyperopt.py index f5a6d5e22..ab5b91c3d 100644 --- a/freqtrade/optimize/hyperopt.py +++ b/freqtrade/optimize/hyperopt.py @@ -33,11 +33,7 @@ from user_data.hyperopt_conf import hyperopt_optimize_conf class Testz(): - db_name = 'freqtrade_hyperopt' - MongoTrials( - arg='mongo://127.0.0.1:1234/{}/jobs'.format(db_name), - exp_key='exp1' - ) + MongoTrials('mongo://127.0.0.1:1234/freqtrade_hyperopt/jobs') async = 'Null' attachments = 'Null' @@ -542,10 +538,6 @@ class Hyperopt(Backtesting): self.total_tries ) - A = self.generate_optimizer - B = self.hyperopt_space() - C = self.total_tries - def Tests(): best_parameters = fmin( fn=self.generate_optimizer, @@ -556,7 +548,6 @@ class Hyperopt(Backtesting): ) # change the Logging format self.logging.set_format('\n%(message)s') - # best_parameters = Tests(self) best_parameters = Tests() results = sorted(self.trials.results, key=itemgetter('loss')) best_result = results[0]['result']