Add files via upload

This commit is contained in:
87owo authored and GitHub committed 2026-05-01 13:10:33 +08:00
1 parent 4e96ec49e7
commit 0ffc52f9ba
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -114,7 +114,7 @@ def train_process(X, y):
n_neg = (y_train == 0).sum()
base_weight = n_neg / n_pos if n_pos > 0 else 1.0
weight_ratio_target = 0.01
weight_ratio_target = 0.005
final_pos_weight = base_weight * weight_ratio_target
print(f"[*] Balance Report: Safe={n_neg}, Malware={n_pos}")
+1 -1
View File
@@ -21,7 +21,7 @@ LGBM_PARAMS = {
'objective': 'binary',
'metric': ['binary_logloss', 'auc'],
'boosting_type': 'gbdt',
'num_leaves': 63,
'num_leaves': 64,
'learning_rate': 0.05,
'feature_fraction': 0.8,
'bagging_fraction': 0.8,