Add --analyze-per-epoch - moving populate_analysis to the epoch process

This commit is contained in:
Matthias
2022-08-19 15:19:43 +02:00
parent 09f8904545
commit bc359675a2
6 changed files with 48 additions and 12 deletions

View File

@@ -7,6 +7,9 @@ from abc import ABC, abstractmethod
from contextlib import suppress
from typing import Any, Optional, Sequence, Union
from freqtrade.enums.hyperoptstate import HyperoptState
from freqtrade.optimize.hyperopt_tools import HyperoptStateContainer
with suppress(ImportError):
from skopt.space import Integer, Real, Categorical
@@ -61,6 +64,7 @@ class BaseParameter(ABC):
return (
self.in_space
and self.optimize
and HyperoptStateContainer.state != HyperoptState.OPTIMIZE
)