generated from user_client2024/152
System save at 22/09/2025 17:33 by user_client2024
This commit is contained in:
parent
ba80816eca
commit
6761957908
@ -29,8 +29,8 @@
|
|||||||
" \"\"\"\n",
|
" \"\"\"\n",
|
||||||
"\n",
|
"\n",
|
||||||
" # Calculate thresholds\n",
|
" # Calculate thresholds\n",
|
||||||
" th1 = np.percentile(df[var1].dropna(), 80)\n",
|
" th1 = np.percentile(df[var1].dropna(), 90)\n",
|
||||||
" th2 = np.percentile(df[var2].dropna(), 80)\n",
|
" th2 = np.percentile(df[var2].dropna(), 90)\n",
|
||||||
" th3 = np.percentile(df[var3].dropna(), 90)\n",
|
" th3 = np.percentile(df[var3].dropna(), 90)\n",
|
||||||
"\n",
|
"\n",
|
||||||
" # Split into alerting and non-alerting\n",
|
" # Split into alerting and non-alerting\n",
|
||||||
|
|||||||
@ -29,8 +29,8 @@
|
|||||||
" \"\"\"\n",
|
" \"\"\"\n",
|
||||||
"\n",
|
"\n",
|
||||||
" # Calculate thresholds\n",
|
" # Calculate thresholds\n",
|
||||||
" th1 = np.percentile(df[var1].dropna(), 80)\n",
|
" th1 = np.percentile(df[var1].dropna(), 90)\n",
|
||||||
" th2 = np.percentile(df[var2].dropna(), 80)\n",
|
" th2 = np.percentile(df[var2].dropna(), 90)\n",
|
||||||
" th3 = np.percentile(df[var3].dropna(), 90)\n",
|
" th3 = np.percentile(df[var3].dropna(), 90)\n",
|
||||||
"\n",
|
"\n",
|
||||||
" # Split into alerting and non-alerting\n",
|
" # Split into alerting and non-alerting\n",
|
||||||
|
|||||||
4
main.py
4
main.py
@ -26,8 +26,8 @@ def apply_sar_flag(df, var1, var2, var3, random_state=42):
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
# Calculate thresholds
|
# Calculate thresholds
|
||||||
th1 = np.percentile(df[var1].dropna(), 80)
|
th1 = np.percentile(df[var1].dropna(), 90)
|
||||||
th2 = np.percentile(df[var2].dropna(), 80)
|
th2 = np.percentile(df[var2].dropna(), 90)
|
||||||
th3 = np.percentile(df[var3].dropna(), 90)
|
th3 = np.percentile(df[var3].dropna(), 90)
|
||||||
|
|
||||||
# Split into alerting and non-alerting
|
# Split into alerting and non-alerting
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user