How to increase the Accuracy after Oversampling?
The Accuracy before
ovesampling :
On Training : 98,54%
On Testing : 98,21%
The Accuracy after
ovesampling :
On Training : 77,92%
On Testing : 90,44%
What does mean this and how to increase the accuracy ?
Edit:
Classes before SMOTE:
dataset['Label'].value_counts()
BENIGN 168051
Brute Force 1507
XSS 652
Sql Injection 21
Classes after SMOTE:
BENIGN 117679
Brute Force 117679
XSS 117679
Sql Injection 117679
I used the following model:
-Random Forest :
Train score : 0.49 Test score: 0.85
-Logistic Regression :
Train score: 0.72 Test score: 0.93
-LSTM:
Train score: 0.79 Test score: 0.98
Topic oversampling accuracy
Category Data Science