3 ms·
Like others have said, you might be overfitting your training data here: your model is just memorising the examples you give it and would fail if somebody sligh
by halflings 9y ago
Like others have said, you might be overfitting your training data here: your model is just memorising the examples you give it and would fail if somebody slightly varies some payload. (inserting some whitespace or something)
Another thing to keep in mind is that an accuracy of 99% doesn't mean much in an unbalanced problem like yours (much more clean queries than malicious once).
What you should show instead is precision (of the ones labeled malicious, how many are actually malicious?) and recall (out of the malicious queries in the dataset, how many did your model label as malicious?)
- halflings 9y agoTry to also do cross-validation (check sklearn's stratified K-Folds) to be more confident you're not just overfitting.