Merge pull request #8590 from AchmadFathoni/develop

Fix disrepancy in freqai doc code example
This commit is contained in:
Matthias 2023-06-10 15:27:01 +02:00 committed by GitHub
commit 4f15b30339
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -43,10 +43,10 @@ The FreqAI strategy requires including the following lines of code in the standa
def populate_indicators(self, dataframe: DataFrame, metadata: dict) -> DataFrame: def populate_indicators(self, dataframe: DataFrame, metadata: dict) -> DataFrame:
# the model will return all labels created by user in `set_freqai_labels()` # the model will return all labels created by user in `set_freqai_targets()`
# (& appended targets), an indication of whether or not the prediction should be accepted, # (& appended targets), an indication of whether or not the prediction should be accepted,
# the target mean/std values for each of the labels created by user in # the target mean/std values for each of the labels created by user in
# `feature_engineering_*` for each training period. # `set_freqai_targets()` for each training period.
dataframe = self.freqai.start(dataframe, metadata, self) dataframe = self.freqai.start(dataframe, metadata, self)

View File

@ -232,7 +232,7 @@ class FreqaiExampleStrategy(IStrategy):
# All indicators must be populated by feature_engineering_*() functions # All indicators must be populated by feature_engineering_*() functions
# the model will return all labels created by user in `feature_engineering_*` # the model will return all labels created by user in `set_freqai_targets()`
# (& appended targets), an indication of whether or not the prediction should be accepted, # (& appended targets), an indication of whether or not the prediction should be accepted,
# the target mean/std values for each of the labels created by user in # the target mean/std values for each of the labels created by user in
# `set_freqai_targets()` for each training period. # `set_freqai_targets()` for each training period.