We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 25f2145 commit 7630e42Copy full SHA for 7630e42
1 file changed
ftio/prediction/online_analysis.py
@@ -303,8 +303,12 @@ def window_adaptation(
303
# Build change point info directly - no regex needed
304
change_point_info = None
305
if change_detected:
306
- old_freq_val = float(old_freq) if old_freq is not None and not np.isnan(old_freq) else 0.0
307
- new_freq_val = float(new_freq) if new_freq is not None and not np.isnan(new_freq) else 0.0
+ old_freq_val = (
+ float(old_freq) if old_freq is not None and not np.isnan(old_freq) else 0.0
308
+ )
309
+ new_freq_val = (
310
+ float(new_freq) if new_freq is not None and not np.isnan(new_freq) else 0.0
311
312
freq_change_pct = (
313
abs(new_freq_val - old_freq_val) / old_freq_val * 100
314
if old_freq_val > 0
0 commit comments