Rendered statically from the notebook's last run — input and output as committed, not re-executed.
(799912, 2382)
Label
0.0 299991
1.0 299929
-1.0 199992
Name: count, dtype: int64
(599920, 2382)
Label
0.0 299991
1.0 299929
Name: count, dtype: int64
X_train=(509932, 2381)
X_val=(89988, 2381)
y_train=(509932,)
y_val=(89988,)
['GridSearchCV', 'PEFeatureExtractor', 'TimeSeriesSplit', '__builtins__', '__cached__', '__doc__', '__file__', '__loader__', '__name__', '__package__', '__path__', '__spec__', 'create_metadata', 'create_vectorized_features', 'features', 'json', 'lgb', 'make_scorer', 'multiprocessing', 'np', 'optimize_model', 'os', 'pd', 'predict_sample', 'raw_feature_iterator', 'read_metadata', 'read_metadata_record', 'read_vectorized_features', 'roc_auc_score', 'tqdm', 'train_model', 'vectorize', 'vectorize_subset', 'vectorize_unpack']
c:\Users\mdzee\AppData\Local\Programs\Python\Python312\Lib\site-packages\xgboost\training.py:200: UserWarning: [04:48:16] WARNING: C:\actions-runner\_work\xgboost\xgboost\src\learner.cc:782:
Parameters: { "use_label_encoder" } are not used.
bst.update(dtrain, iteration=i, fobj=obj)
[0] validation_0-logloss:0.63206
[50] validation_0-logloss:0.13795
[100] validation_0-logloss:0.10284
[150] validation_0-logloss:0.08670
[200] validation_0-logloss:0.07623
[250] validation_0-logloss:0.07003
[299] validation_0-logloss:0.06540
XGBClassifier(base_score=None, booster=None, callbacks=None,
colsample_bylevel=None, colsample_bynode=None,
colsample_bytree=0.8, device='cuda', early_stopping_rounds=None,
enable_categorical=False, eval_metric='logloss',
feature_types=None, feature_weights=None, gamma=None,
grow_policy=None, importance_type=None,
interaction_constraints=None, learning_rate=0.1, max_bin=None,
max_cat_threshold=None, max_cat_to_onehot=None,
max_delta_step=None, max_depth=8, max_leaves=None,
min_child_weight=None, missing=nan, monotone_constraints=None,
multi_strategy=None, n_estimators=300, n_jobs=-1,
num_parallel_tree=None, ...)c:\Users\mdzee\AppData\Local\Programs\Python\Python312\Lib\site-packages\xgboost\core.py:751: UserWarning: [04:50:39] WARNING: C:\actions-runner\_work\xgboost\xgboost\src\common\error_msg.cc:62: Falling back to prediction using DMatrix due to mismatched devices. This might lead to higher memory usage and slower performance. XGBoost is running on: cuda:0, while the input data is on: cpu.
Potential solutions:
- Use a data structure that matches the device ordinal in the booster.
- Set the device for booster before call to inplace_predict.
This warning will only be shown once.
return func(**kwargs)
0.9778637151620216
precision recall f1-score support
benign 0.98 0.98 0.98 44999
malware 0.98 0.98 0.98 44989
accuracy 0.98 89988
macro avg 0.98 0.98 0.98 89988
weighted avg 0.98 0.98 0.98 89988
['xgboost_ember_gpu_model.pkl']