]> Piment Noir Git Repositories - freqai-strategies.git/commitdiff
feat(quickadapter): log new label_weighting fill_* tunables
authorJérôme Benoit <jerome.benoit@piment-noir.org>
Mon, 25 May 2026 16:05:22 +0000 (18:05 +0200)
committerJérôme Benoit <jerome.benoit@piment-noir.org>
Mon, 25 May 2026 16:05:22 +0000 (18:05 +0200)
Mirror the existing softmax_temperature conditional-logging pattern:
always log fill_method, then log fill_epsilon and fill_epsilon_baseline
only under fill_method == "epsilon", and fill_sigma_candles only under
fill_method == "gaussian". Keeps the per-column "Weighting:" log block
consistent with the resolved config and avoids printing tunables that
have no effect under the active mode.

quickadapter/user_data/strategies/QuickAdapterV3.py

index 64b168cc9fc995857760e83dfbce2cbc52a51f07..1ebb0b18198606302e98baec9a3e54a59fdb4f1b 100644 (file)
@@ -23,6 +23,7 @@ from freqtrade.strategy import AnnotationType, stoploss_from_absolute
 from freqtrade.strategy.interface import IStrategy
 from LabelTransformer import (
     COMBINED_AGGREGATIONS,
+    FILL_METHODS,
     SMOOTHING_METHODS,
     WEIGHT_STRATEGIES,
     get_label_column_config,
@@ -499,6 +500,18 @@ class QuickAdapterV3(IStrategy):
                 logger.info(
                     f"    softmax_temperature: {format_number(col_weighting['softmax_temperature'])}"
                 )
+            logger.info(f"    fill_method: {col_weighting['fill_method']}")
+            if col_weighting["fill_method"] == FILL_METHODS[1]:  # "epsilon"
+                logger.info(
+                    f"    fill_epsilon: {format_number(col_weighting['fill_epsilon'])}"
+                )
+                logger.info(
+                    f"    fill_epsilon_baseline: {col_weighting['fill_epsilon_baseline']}"
+                )
+            elif col_weighting["fill_method"] == FILL_METHODS[2]:  # "gaussian"
+                logger.info(
+                    f"    fill_sigma_candles: {format_number(col_weighting['fill_sigma_candles'])}"
+                )
 
             col_smoothing = get_label_column_config(
                 label_col, label_smoothing["default"], label_smoothing["columns"]