Skip to content

Commit

Permalink
Fix wordings in comment
Browse files Browse the repository at this point in the history
  • Loading branch information
hroff-1902 committed Sep 23, 2019
1 parent 0c6164d commit 6ffb8b7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions freqtrade/optimize/hyperopt.py
Original file line number Diff line number Diff line change
Expand Up @@ -358,8 +358,9 @@ def fix_optimizer_models_list(self):
"""
n = len(self.opt.models) - SKOPT_MODELS_MAX_NUM
# Keep no more than 2*SKOPT_MODELS_MAX_NUM models in the skopt models list,
# remove the old ones. These are no really needed, the current model
# from the estimator is only used.
# remove the old ones. These are actually of no use, the current model
# from the estimator is the only one used in the skopt optimizer.
# Freqtrade code also does not inspect details of the models.
if n >= SKOPT_MODELS_MAX_NUM:
logger.debug(f"Fixing skopt models list, removing {n} old items...")
del self.opt.models[0:n]
Expand Down

0 comments on commit 6ffb8b7

Please sign in to comment.