Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
from sklearn.linear_model import PassiveAggressiveClassifier
pac = PassiveAggressiveClassifier(max_iter=50)
pac.fit(train, ytrain)
ypred = pac.predict(test)
from sklearn.metrics import accuracy_score, confusion_matrix
accuracy = accuracy_score(ytest, ypred)
print(f'Accuracy Score of Passive Aggresive Scassifier: {round(accuracy*100,2)}%')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment