refactor: move hyperopt-loss interface

This commit is contained in:
Matthias
2024-11-10 14:39:42 +01:00
parent e1b3ae208d
commit 84fc5dfcf7
4 changed files with 4 additions and 3 deletions

View File

@@ -1,2 +1,3 @@
# flake8: noqa: F401
from freqtrade.optimize.hyperopt.hyperopt import Hyperopt, IHyperOptLoss
from freqtrade.optimize.hyperopt.hyperopt import Hyperopt
from freqtrade.optimize.hyperopt_loss.hyperopt_loss_interface import IHyperOptLoss

View File

@@ -30,7 +30,7 @@ from freqtrade.optimize.backtesting import Backtesting
# Import IHyperOpt and IHyperOptLoss to allow unpickling classes from these modules
from freqtrade.optimize.hyperopt_auto import HyperOptAuto
from freqtrade.optimize.hyperopt_loss_interface import IHyperOptLoss
from freqtrade.optimize.hyperopt_loss.hyperopt_loss_interface import IHyperOptLoss
from freqtrade.optimize.hyperopt_output import HyperoptOutput
from freqtrade.optimize.hyperopt_tools import (
HyperoptStateContainer,

View File

@@ -9,7 +9,7 @@ from pathlib import Path
from freqtrade.constants import HYPEROPT_LOSS_BUILTIN, USERPATH_HYPEROPTS, Config
from freqtrade.exceptions import OperationalException
from freqtrade.optimize.hyperopt_loss_interface import IHyperOptLoss
from freqtrade.optimize.hyperopt_loss.hyperopt_loss_interface import IHyperOptLoss
from freqtrade.resolvers import IResolver