Add config to hyperopt_loss_function documentation

This commit is contained in:
Matthias
2021-02-17 07:04:29 +01:00
parent eff0d46ea1
commit 11b20d6932
3 changed files with 7 additions and 3 deletions

View File

@@ -5,6 +5,7 @@ This module defines the interface for the loss-function for hyperopt
from abc import ABC, abstractmethod
from datetime import datetime
from typing import Dict
from pandas import DataFrame
@@ -19,7 +20,9 @@ class IHyperOptLoss(ABC):
@staticmethod
@abstractmethod
def hyperopt_loss_function(results: DataFrame, trade_count: int,
min_date: datetime, max_date: datetime, *args, **kwargs) -> float:
min_date: datetime, max_date: datetime,
config: Dict, processed: Dict[str, DataFrame],
*args, **kwargs) -> float:
"""
Objective function, returns smaller number for better results
"""