]> Piment Noir Git Repositories - freqai-strategies.git/commitdiff
docs(quickadapter): use markdown escape
authorJérôme Benoit <jerome.benoit@piment-noir.org>
Sun, 4 Jan 2026 15:55:57 +0000 (16:55 +0100)
committerJérôme Benoit <jerome.benoit@piment-noir.org>
Sun, 4 Jan 2026 15:55:57 +0000 (16:55 +0100)
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
README.md
quickadapter/user_data/strategies/Utils.py

index 03f480b9a38f2882f842a3739a7860eeeed4aa18..e29e0dccab8df45351454d0cfbb97cbea90ec1df 100644 (file)
--- a/README.md
+++ b/README.md
@@ -71,7 +71,7 @@ docker compose up -d --build
 | freqai.extrema_weighting.standardization                       | `none`                        | enum {`none`,`zscore`,`robust`,`mmad`,`power_yj`}                                                                                 | Standardization method applied to smoothed weighted extrema before normalization. `none`=w, `zscore`=(w-μ)/σ, `robust`=(w-median)/IQR, `mmad`=(w-median)/(MAD·k), `power_yj`=YJ(w).                                                                                                                                                                               |
 | freqai.extrema_weighting.robust_quantiles                      | [0.25, 0.75]                  | list[float] where 0 <= Q1 < Q3 <= 1                                                                                               | Quantile range for robust standardization, Q1 and Q3.                                                                                                                                                                                                                                                                                                             |
 | freqai.extrema_weighting.mmad_scaling_factor                   | 1.4826                        | float > 0                                                                                                                         | Scaling factor for MMAD standardization.                                                                                                                                                                                                                                                                                                                          |
-| freqai.extrema_weighting.normalization                         | `maxabs`                      | enum {`maxabs`,`minmax`,`sigmoid`,`none`}                                                                                         | Normalization method applied to smoothed weighted extrema. `maxabs`=w/max(&#124;w&#124;), `minmax`=low+(w-min)/(max-min)·(high-low), `sigmoid`=2·σ(scale·w)-1, `none`=w.                                                                                                                                                                                          |
+| freqai.extrema_weighting.normalization                         | `maxabs`                      | enum {`maxabs`,`minmax`,`sigmoid`,`none`}                                                                                         | Normalization method applied to smoothed weighted extrema. `maxabs`=w/max(\|w\|), `minmax`=low+(w-min)/(max-min)·(high-low), `sigmoid`=2·σ(scale·w)-1, `none`=w.                                                                                                                                                                                                  |
 | freqai.extrema_weighting.minmax_range                          | [-1.0, 1.0]                   | list[float]                                                                                                                       | Target range for `minmax` normalization, min and max.                                                                                                                                                                                                                                                                                                             |
 | freqai.extrema_weighting.sigmoid_scale                         | 1.0                           | float > 0                                                                                                                         | Scale parameter for `sigmoid` normalization, controls steepness.                                                                                                                                                                                                                                                                                                  |
 | freqai.extrema_weighting.gamma                                 | 1.0                           | float (0,10]                                                                                                                      | Contrast exponent applied to smoothed weighted extrema after normalization: >1 emphasizes extrema, values between 0 and 1 soften.                                                                                                                                                                                                                                 |
index 9695b9a59fa00dde77cad9928a1052fb31e0c121..845161c4ea38282baa4b3a8a131ed1497bd87d58 100644 (file)
@@ -166,12 +166,11 @@ def get_extrema_weighting_config(
     if (
         strategy != WEIGHT_STRATEGIES[0]  # "none"
         and standardization != STANDARDIZATION_TYPES[0]  # "none"
-        and normalization == NORMALIZATION_TYPES[2]  # "none"
+        and normalization == NORMALIZATION_TYPES[3]  # "none"
     ):
         logger.warning(
-            f"extrema_weighting standardization={standardization!r} with normalization={normalization!r} "
-            "can produce negative weights and flip ternary extrema labels. "
-            f"Consider using normalization in {{{NORMALIZATION_TYPES[0]!r},{NORMALIZATION_TYPES[1]!r}}} "
+            f"extrema_weighting standardization={standardization!r} with normalization={normalization!r} can shift/flip ternary extrema labels. "
+            f"Consider using normalization in {{{NORMALIZATION_TYPES[0]!r},{NORMALIZATION_TYPES[1]!r},{NORMALIZATION_TYPES[2]!r}}} "
             f"or set standardization={STANDARDIZATION_TYPES[0]!r}"
         )