flake8 fix
This commit is contained in:
parent
6198b21001
commit
c1042996db
@ -5,8 +5,6 @@ This module defines the alternative HyperOptLoss class which can be used for
|
|||||||
Hyperoptimization.
|
Hyperoptimization.
|
||||||
"""
|
"""
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
from math import sqrt as msqrt
|
|
||||||
from typing import Any, Dict
|
|
||||||
|
|
||||||
from pandas import DataFrame
|
from pandas import DataFrame
|
||||||
|
|
||||||
|
@ -6,13 +6,13 @@ Hyperoptimization.
|
|||||||
"""
|
"""
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
|
|
||||||
import numpy as np
|
|
||||||
from pandas import DataFrame
|
from pandas import DataFrame
|
||||||
|
|
||||||
from freqtrade.optimize.hyperopt import IHyperOptLoss
|
from freqtrade.optimize.hyperopt import IHyperOptLoss
|
||||||
from freqtrade.constants import Config
|
from freqtrade.constants import Config
|
||||||
from freqtrade.data.metrics import calculate_sharpe
|
from freqtrade.data.metrics import calculate_sharpe
|
||||||
|
|
||||||
|
|
||||||
class SharpeHyperOptLoss(IHyperOptLoss):
|
class SharpeHyperOptLoss(IHyperOptLoss):
|
||||||
"""
|
"""
|
||||||
Defines the loss function for hyperopt.
|
Defines the loss function for hyperopt.
|
||||||
|
@ -6,13 +6,13 @@ Hyperoptimization.
|
|||||||
"""
|
"""
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
|
|
||||||
import numpy as np
|
|
||||||
from pandas import DataFrame
|
from pandas import DataFrame
|
||||||
|
|
||||||
from freqtrade.optimize.hyperopt import IHyperOptLoss
|
from freqtrade.optimize.hyperopt import IHyperOptLoss
|
||||||
from freqtrade.constants import Config
|
from freqtrade.constants import Config
|
||||||
from freqtrade.data.metrics import calculate_sortino
|
from freqtrade.data.metrics import calculate_sortino
|
||||||
|
|
||||||
|
|
||||||
class SortinoHyperOptLoss(IHyperOptLoss):
|
class SortinoHyperOptLoss(IHyperOptLoss):
|
||||||
"""
|
"""
|
||||||
Defines the loss function for hyperopt.
|
Defines the loss function for hyperopt.
|
||||||
|
Loading…
Reference in New Issue
Block a user