flake8 fix

This commit is contained in:
Stefano Ariestasia 2023-01-07 09:46:46 +09:00
parent 6198b21001
commit c1042996db
3 changed files with 2 additions and 4 deletions

View File

@ -5,8 +5,6 @@ This module defines the alternative HyperOptLoss class which can be used for
Hyperoptimization.
"""
from datetime import datetime
from math import sqrt as msqrt
from typing import Any, Dict
from pandas import DataFrame

View File

@ -6,13 +6,13 @@ Hyperoptimization.
"""
from datetime import datetime
import numpy as np
from pandas import DataFrame
from freqtrade.optimize.hyperopt import IHyperOptLoss
from freqtrade.constants import Config
from freqtrade.data.metrics import calculate_sharpe
class SharpeHyperOptLoss(IHyperOptLoss):
"""
Defines the loss function for hyperopt.

View File

@ -6,13 +6,13 @@ Hyperoptimization.
"""
from datetime import datetime
import numpy as np
from pandas import DataFrame
from freqtrade.optimize.hyperopt import IHyperOptLoss
from freqtrade.constants import Config
from freqtrade.data.metrics import calculate_sortino
class SortinoHyperOptLoss(IHyperOptLoss):
"""
Defines the loss function for hyperopt.