mirror of
https://github.com/freqtrade/freqtrade.git
synced 2025-12-14 11:51:19 +00:00
feat: allow init of random spaces
This commit is contained in:
@@ -222,7 +222,12 @@ class HyperOptimizer:
|
||||
"""
|
||||
Assign the dimensions in the hyperoptimization space.
|
||||
"""
|
||||
for space in ["buy", "sell", "protection", "roi", "stoploss", "trailing", "trades"]:
|
||||
spaces = ["buy", "sell", "protection", "roi", "stoploss", "trailing", "trades"]
|
||||
spaces += [
|
||||
s for s in self.config["spaces"] if s not in spaces and s not in ("all", "default")
|
||||
]
|
||||
|
||||
for space in spaces:
|
||||
if not HyperoptTools.has_space(self.config, space):
|
||||
continue
|
||||
logger.debug(f"Hyperopt has '{space}' space")
|
||||
|
||||
Reference in New Issue
Block a user