File size: 7,864 Bytes
aefa98b | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 | ===== STEP 09 =====
labels 26 tail classes: ['Analysis', 'Brute_Force_-Web', 'DDOS_attack-LOIC-UDP', 'Shellcode', 'mitm', 'ransomware']
/Innovation/home/pramodharibhau.k/cyber/impl/.venv/lib/python3.12/site-packages/xgboost/core.py:569: UserWarning: [22:13:23] WARNING: /__w/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)
xgb_none|42 macroF1=0.6656 tailF1=0.4677 headF1=0.7249 MCC=0.7993 synth=0 21s
xgb_invfreq|42 macroF1=0.6880 tailF1=0.3608 headF1=0.7861 MCC=0.7769 synth=0 17s
xgb_effnum|42 macroF1=0.6715 tailF1=0.4675 headF1=0.7327 MCC=0.8036 synth=0 20s
xgb_la05|42 macroF1=0.6751 tailF1=0.4049 headF1=0.7562 MCC=0.8061 synth=0 1s
xgb_la10|42 macroF1=0.6409 tailF1=0.2806 headF1=0.7490 MCC=0.7672 synth=0 1s
mlp_ce|42 macroF1=0.5875 tailF1=0.4525 headF1=0.6280 MCC=0.7600 synth=0 11s
mlp_wce|42 macroF1=0.6034 tailF1=0.2922 headF1=0.6968 MCC=0.7232 synth=0 7s
mlp_cb|42 macroF1=0.6257 tailF1=0.3753 headF1=0.7008 MCC=0.7926 synth=0 8s
mlp_focal|42 macroF1=0.6433 tailF1=0.4422 headF1=0.7037 MCC=0.7756 synth=0 10s
mlp_focalcb|42 macroF1=0.6152 tailF1=0.3863 headF1=0.6839 MCC=0.7805 synth=0 11s
mlp_la|42 macroF1=0.5382 tailF1=0.2145 headF1=0.6353 MCC=0.6972 synth=0 7s
xgb_rus|42 macroF1=0.6948 tailF1=0.3988 headF1=0.7836 MCC=0.7808 synth=0 4s
xgb_ros|42 macroF1=0.6879 tailF1=0.3712 headF1=0.7829 MCC=0.7734 synth=119739 6s
xgb_smote|42 macroF1=0.6831 tailF1=0.3811 headF1=0.7737 MCC=0.7725 synth=119739 6s
xgb_borderline|42 macroF1=0.6653 tailF1=0.3728 headF1=0.7531 MCC=0.7676 synth=105341 7s
xgb_adasyn|42 FAILED: RuntimeError: Not any neigbours belong to the majority class. This case will induce a NaN case with a division by zero. ADASYN is not
xgb_kmeans|42 macroF1=0.6844 tailF1=0.4330 headF1=0.7599 MCC=0.7734 synth=119752 27s
xgb_smoteenn|42 macroF1=0.6438 tailF1=0.3151 headF1=0.7424 MCC=0.7640 synth=92840 40s
xgb_none|43 macroF1=0.6744 tailF1=0.5128 headF1=0.7229 MCC=0.7903 synth=0 29s
xgb_invfreq|43 macroF1=0.7063 tailF1=0.4289 headF1=0.7895 MCC=0.7811 synth=0 19s
xgb_effnum|43 macroF1=0.6762 tailF1=0.4743 headF1=0.7368 MCC=0.8069 synth=0 44s
xgb_la05|43 macroF1=0.6686 tailF1=0.4043 headF1=0.7479 MCC=0.7963 synth=0 1s
xgb_la10|43 macroF1=0.6438 tailF1=0.3221 headF1=0.7403 MCC=0.7613 synth=0 1s
mlp_ce|43 macroF1=0.6213 tailF1=0.3896 headF1=0.6909 MCC=0.7784 synth=0 20s
mlp_wce|43 macroF1=0.6114 tailF1=0.2538 headF1=0.7186 MCC=0.7372 synth=0 13s
mlp_cb|43 macroF1=0.6291 tailF1=0.4179 headF1=0.6924 MCC=0.7810 synth=0 25s
mlp_focal|43 macroF1=0.6397 tailF1=0.4316 headF1=0.7021 MCC=0.7779 synth=0 21s
mlp_focalcb|43 macroF1=0.6277 tailF1=0.4152 headF1=0.6914 MCC=0.7806 synth=0 22s
mlp_la|43 macroF1=0.5316 tailF1=0.1608 headF1=0.6428 MCC=0.7115 synth=0 10s
xgb_rus|43 macroF1=0.6913 tailF1=0.4125 headF1=0.7749 MCC=0.7781 synth=0 11s
xgb_ros|43 macroF1=0.6811 tailF1=0.3758 headF1=0.7727 MCC=0.7744 synth=119739 11s
xgb_smote|43 macroF1=0.6873 tailF1=0.4140 headF1=0.7692 MCC=0.7750 synth=119739 11s
xgb_borderline|43 macroF1=0.6589 tailF1=0.3582 headF1=0.7491 MCC=0.7681 synth=110939 19s
xgb_adasyn|43 FAILED: RuntimeError: Not any neigbours belong to the majority class. This case will induce a NaN case with a division by zero. ADASYN is not
xgb_kmeans|43 macroF1=0.6865 tailF1=0.4177 headF1=0.7671 MCC=0.7749 synth=119756 63s
xgb_smoteenn|43 macroF1=0.6457 tailF1=0.2912 headF1=0.7520 MCC=0.7533 synth=88771 33s
xgb_none|44 macroF1=0.6704 tailF1=0.5088 headF1=0.7189 MCC=0.8006 synth=0 24s
xgb_invfreq|44 macroF1=0.6993 tailF1=0.4031 headF1=0.7881 MCC=0.7799 synth=0 21s
xgb_effnum|44 macroF1=0.6728 tailF1=0.4672 headF1=0.7345 MCC=0.8107 synth=0 18s
xgb_la05|44 macroF1=0.6827 tailF1=0.4388 headF1=0.7559 MCC=0.8090 synth=0 1s
xgb_la10|44 macroF1=0.6499 tailF1=0.3152 headF1=0.7503 MCC=0.7721 synth=0 1s
mlp_ce|44 macroF1=0.6361 tailF1=0.4519 headF1=0.6913 MCC=0.7908 synth=0 7s
mlp_wce|44 macroF1=0.6043 tailF1=0.2985 headF1=0.6960 MCC=0.7355 synth=0 8s
mlp_cb|44 macroF1=0.6274 tailF1=0.4345 headF1=0.6853 MCC=0.7909 synth=0 8s
mlp_focal|44 macroF1=0.6408 tailF1=0.4921 headF1=0.6855 MCC=0.7832 synth=0 10s
mlp_focalcb|44 macroF1=0.6220 tailF1=0.4429 headF1=0.6757 MCC=0.7848 synth=0 9s
mlp_la|44 macroF1=0.5810 tailF1=0.2020 headF1=0.6947 MCC=0.7331 synth=0 7s
xgb_rus|44 macroF1=0.6891 tailF1=0.3853 headF1=0.7803 MCC=0.7776 synth=0 13s
xgb_ros|44 macroF1=0.6874 tailF1=0.3789 headF1=0.7800 MCC=0.7759 synth=119739 14s
xgb_smote|44 macroF1=0.6880 tailF1=0.3946 headF1=0.7760 MCC=0.7757 synth=119739 22s
xgb_borderline|44 macroF1=0.6660 tailF1=0.3893 headF1=0.7490 MCC=0.7710 synth=110939 24s
xgb_adasyn|44 FAILED: RuntimeError: Not any neigbours belong to the majority class. This case will induce a NaN case with a division by zero. ADASYN is not
xgb_kmeans|44 macroF1=0.6887 tailF1=0.4101 headF1=0.7722 MCC=0.7752 synth=119753 16s
xgb_smoteenn|44 macroF1=0.6476 tailF1=0.2942 headF1=0.7536 MCC=0.7623 synth=92572 28s
Traceback (most recent call last):
File "/Innovation/home/pramodharibhau.k/cyber/impl/src/run_pipeline.py", line 26, in <module>
a = ap.parse_args()
^^^^^^^^^^^^^^^^
File "/Innovation/home/pramodharibhau.k/cyber/impl/src/pipeline/step09_imbalance.py", line 201, in run
summarise_results(out)
File "/Innovation/home/pramodharibhau.k/cyber/impl/src/pipeline/step09_imbalance.py", line 205, in summarise_results
df = pd.read_csv(os.path.join(out, "results.csv")); df = df[df.macro_f1.notna()]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Innovation/home/pramodharibhau.k/cyber/impl/.venv/lib/python3.12/site-packages/pandas/io/parsers/readers.py", line 1866, in read_csv
return _read(filepath_or_buffer, kwds)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Innovation/home/pramodharibhau.k/cyber/impl/.venv/lib/python3.12/site-packages/pandas/io/parsers/readers.py", line 429, in _read
return parser.read(nrows)
^^^^^^^^^^^^^^^^^^
File "/Innovation/home/pramodharibhau.k/cyber/impl/.venv/lib/python3.12/site-packages/pandas/io/parsers/readers.py", line 3061, in read
) = self._engine.read( # type: ignore[attr-defined]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Innovation/home/pramodharibhau.k/cyber/impl/.venv/lib/python3.12/site-packages/pandas/io/parsers/c_parser_wrapper.py", line 297, in read
chunks = self._reader.read_low_memory(nrows)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "pandas/_libs/parsers.pyx", line 1041, in pandas._libs.parsers.TextReader.read_low_memory
File "pandas/_libs/parsers.pyx", line 1182, in pandas._libs.parsers.TextReader._read_rows
File "pandas/_libs/parsers.pyx", line 1149, in pandas._libs.parsers.TextReader._tokenize_rows
File "pandas/_libs/parsers.pyx", line 1170, in pandas._libs.parsers.TextReader._check_tokenize_status
File "pandas/_libs/parsers.pyx", line 4400, in pandas._libs.parsers.raise_parser_error
pandas.errors.ParserError: Error tokenizing data. C error: Expected 15 fields in line 17, saw 16
|