]> Piment Noir Git Repositories - freqai-strategies.git/commitdiff
chore(quickadapter): use np.inf instead of float("inf")
authorJérôme Benoit <jerome.benoit@piment-noir.org>
Tue, 27 Jan 2026 11:42:53 +0000 (12:42 +0100)
committerJérôme Benoit <jerome.benoit@piment-noir.org>
Tue, 27 Jan 2026 11:42:53 +0000 (12:42 +0100)
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
quickadapter/user_data/strategies/LabelTransformer.py

index fc02ee5f0c12834a9e56d26d02af3800b44cb36a..11f93b8e9b6de4ff6a03a4824143f20121578be3 100644 (file)
@@ -187,7 +187,7 @@ def get_label_column_config(
     for pattern, col_config in columns_config.items():
         if fnmatch.fnmatch(column_name, pattern):
             if "*" not in pattern and "?" not in pattern and "[" not in pattern:
-                specificity = float("inf")
+                specificity = np.inf
             else:
                 specificity = float(sum(1 for c in pattern if c not in "*?[]"))
             matches.append((specificity, pattern, col_config))