Adjust documentation for new parameter in loss functions

This commit is contained in:
Matthias
2021-02-16 19:51:09 +01:00
parent 3e06cd8b3a
commit 009a447d8a
3 changed files with 10 additions and 1 deletions

View File

@@ -1,5 +1,6 @@
from datetime import datetime
from math import exp
from typing import Dict
from pandas import DataFrame
@@ -35,6 +36,7 @@ class SampleHyperOptLoss(IHyperOptLoss):
@staticmethod
def hyperopt_loss_function(results: DataFrame, trade_count: int,
min_date: datetime, max_date: datetime,
processed: Dict[str, DataFrame],
*args, **kwargs) -> float:
"""
Objective function, returns smaller number for better results