Search for a dataset with minimum three classes, do all the necessary pre-processing, implement logistic regression and discuss your result with suitable evaluation strategy(accuracy measures). code example
Example 1: logistic regression algorithm in python
from sklearn.linear_model import LogisticRegression
logreg = LogisticRegression()
logreg.fit(X_train,y_train)
y_pred=logreg.predict(X_test)
Example 2: logistic regression algorithm in python
from sklearn import metrics
cnf_matrix = metrics.confusion_matrix(y_test, y_pred)
cnf_matrix