From 5b92af6a908cf3782a1a8c82d146bc2e2e1dc799 Mon Sep 17 00:00:00 2001 From: viotemp1 Date: Sat, 10 May 2025 19:45:16 +0300 Subject: [PATCH] fix some spelling errors --- docs/hyperopt.md | 2 +- freqtrade/optimize/hyperopt/hyperopt_optimizer.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/hyperopt.md b/docs/hyperopt.md index f209b9528..e930f4bf4 100644 --- a/docs/hyperopt.md +++ b/docs/hyperopt.md @@ -490,7 +490,7 @@ freqtrade hyperopt --config config.json --hyperopt-loss --str ``` The `-e` option will set how many evaluations hyperopt will do. Since hyperopt uses Bayesian search, running too many epochs at once may not produce greater results. Experience has shown that best results are usually not improving much after 500-1000 epochs. -The `-es` option will set ofter how many batches of evaluations with no improvements hyperopt will stop. A good value is 20-30% of the total epochs. Early stop is by default disabled (`-es=0`) +The `-es` option will set after how many epochs with no improvements hyperopt will stop. A good value is 20-30% of the total epochs. Early stop is by default disabled (`-es=0`) Doing multiple runs (executions) with a few 1000 epochs and different random state will most likely produce different results. diff --git a/freqtrade/optimize/hyperopt/hyperopt_optimizer.py b/freqtrade/optimize/hyperopt/hyperopt_optimizer.py index 467475b6d..dd09bf318 100644 --- a/freqtrade/optimize/hyperopt/hyperopt_optimizer.py +++ b/freqtrade/optimize/hyperopt/hyperopt_optimizer.py @@ -108,7 +108,7 @@ class HyperOptimizer: self.es_epochs = config.get("early_stop", 0) self.es_batches = self.es_epochs // config.get("hyperopt_jobs", 1) if self.es_epochs > 0 and self.es_epochs < 0.2 * config.get("epochs", 0): - logger.warning(f"Easly stop epochs {self.es_epochs} lower than 20% of total epochs") + logger.warning(f"Early stop epochs {self.es_epochs} lower than 20% of total epochs") if HyperoptTools.has_space(self.config, "sell"): # Make sure use_exit_signal is enabled