Fix wordings in comment

This commit is contained in:
hroff-1902 2019-09-23 13:25:31 +03:00
parent 0c6164df7e
commit 6ffb8b7a70

View File

@ -358,8 +358,9 @@ class Hyperopt:
""" """
n = len(self.opt.models) - SKOPT_MODELS_MAX_NUM n = len(self.opt.models) - SKOPT_MODELS_MAX_NUM
# Keep no more than 2*SKOPT_MODELS_MAX_NUM models in the skopt models list, # 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 # remove the old ones. These are actually of no use, the current model
# from the estimator is only used. # 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: if n >= SKOPT_MODELS_MAX_NUM:
logger.debug(f"Fixing skopt models list, removing {n} old items...") logger.debug(f"Fixing skopt models list, removing {n} old items...")
del self.opt.models[0:n] del self.opt.models[0:n]