Accuracy 1 on test set

Advertisements from my Machine Learning course, I know that 100% accuracy is overfitting but I don’t know why that is the case for me. # Gaussian Naive Bayes from sklearn.naive_bayes import GaussianNB gnb = GaussianNB().fit(X_train, y_train) gnb_predictions = gnb.predict(X_test) gnb_acc = accuracy_score(y_test, gnb_predictions) gnb_probs = gnb.predict_proba(X_test) print(gnb_acc) I am testing on unseen data. The data… Read More Accuracy 1 on test set