]> Piment Noir Git Repositories - freqai-strategies.git/commitdiff
refactor(quickadapter): improve arguments naming
authorJérôme Benoit <jerome.benoit@piment-noir.org>
Wed, 7 Jan 2026 12:50:37 +0000 (13:50 +0100)
committerJérôme Benoit <jerome.benoit@piment-noir.org>
Wed, 7 Jan 2026 12:50:37 +0000 (13:50 +0100)
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
quickadapter/user_data/freqaimodels/QuickAdapterRegressorV3.py

index 44b2aa6bcd6140ba030047195ce37e2e20fb227f..0774932507b3cc237d10faea08612d8e39d8b1e6 100644 (file)
@@ -1705,8 +1705,8 @@ class QuickAdapterRegressorV3(BaseRegressionModel):
         return minima_indices, maxima_indices
 
     @staticmethod
-    def _calculate_n_kept_extrema(count: int, keep_fraction: float) -> int:
-        return max(1, int(round(count * keep_fraction))) if count > 0 else 0
+    def _calculate_n_kept_extrema(size: int, keep_fraction: float) -> int:
+        return max(1, int(round(size * keep_fraction))) if size > 0 else 0
 
     @staticmethod
     def _get_ranked_peaks(