System save at 22/09/2025 17:33 by user_client2024

This commit is contained in:
user_client2024 2025-09-22 12:03:17 +00:00
parent ba80816eca
commit 6761957908
3 changed files with 6 additions and 6 deletions

View File

@ -29,8 +29,8 @@
" \"\"\"\n",
"\n",
" # Calculate thresholds\n",
" th1 = np.percentile(df[var1].dropna(), 80)\n",
" th2 = np.percentile(df[var2].dropna(), 80)\n",
" th1 = np.percentile(df[var1].dropna(), 90)\n",
" th2 = np.percentile(df[var2].dropna(), 90)\n",
" th3 = np.percentile(df[var3].dropna(), 90)\n",
"\n",
" # Split into alerting and non-alerting\n",

View File

@ -29,8 +29,8 @@
" \"\"\"\n",
"\n",
" # Calculate thresholds\n",
" th1 = np.percentile(df[var1].dropna(), 80)\n",
" th2 = np.percentile(df[var2].dropna(), 80)\n",
" th1 = np.percentile(df[var1].dropna(), 90)\n",
" th2 = np.percentile(df[var2].dropna(), 90)\n",
" th3 = np.percentile(df[var3].dropna(), 90)\n",
"\n",
" # Split into alerting and non-alerting\n",

View File

@ -26,8 +26,8 @@ def apply_sar_flag(df, var1, var2, var3, random_state=42):
"""
# Calculate thresholds
th1 = np.percentile(df[var1].dropna(), 80)
th2 = np.percentile(df[var2].dropna(), 80)
th1 = np.percentile(df[var1].dropna(), 90)
th2 = np.percentile(df[var2].dropna(), 90)
th3 = np.percentile(df[var3].dropna(), 90)
# Split into alerting and non-alerting