Skip to content

Commit

Permalink
Small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
xmatthias committed Nov 20, 2018
1 parent 5dd013c commit 7757c53
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
9 changes: 6 additions & 3 deletions freqtrade/optimize/hyperopt.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,8 @@ def log_trials_result(self) -> None:
best_result['params']
)
if 'roi_t1' in best_result['params']:
logger.info('ROI table:\n%s', self.custom_hyperopt.generate_roi_table(best_result['params']))
logger.info('ROI table:\n%s',
self.custom_hyperopt.generate_roi_table(best_result['params']))

def log_results(self, results) -> None:
"""
Expand Down Expand Up @@ -219,7 +220,8 @@ def get_optimizer(self, cpu_count) -> Optimizer:
)

def run_optimizer_parallel(self, parallel, asked) -> List:
return parallel(delayed(wrap_non_picklable_objects(self.generate_optimizer))(v) for v in asked)
return parallel(delayed(
wrap_non_picklable_objects(self.generate_optimizer))(v) for v in asked)

def load_previous_results(self):
""" read trials file if we have one """
Expand All @@ -241,7 +243,8 @@ def start(self) -> None:
)

if self.has_space('buy'):
self.strategy.advise_indicators = self.custom_hyperopt.populate_indicators # type: ignore
self.strategy.advise_indicators = \
self.custom_hyperopt.populate_indicators # type: ignore
dump(self.strategy.tickerdata_to_dataframe(data), TICKERDATA_PICKLE)
self.exchange = None # type: ignore
self.load_previous_results()
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@
'wrapt',
'pandas',
'scikit-learn',
'joblib',
'scipy',
'joblib',
'jsonschema',
'TA-Lib',
'tabulate',
Expand Down

0 comments on commit 7757c53

Please sign in to comment.