text_plain_output_1.png
from sklearn.linear_model import LogisticRegression

from sklearn.linear_model import LogisticRegression

from sklearn.metrics import classification_report

from sklearn.multiclass import OneVsRestClassifier

from sklearn.preprocessing import StandardScaler

from sklearn.preprocessing import StandardScaler
scaler = StandardScaler()
scaler.fit(Xtrain)
Xtrain = scaler.transform(Xtrain)
Xtest = scaler.transform(Xtest)

from sklearn.linear_model import LogisticRegression
lr = LogisticRegression(max_iter=1000)
lr.fit(Xtrain, ytrain)

prediction = lr.predict(Xtest)
from sklearn.metrics import classification_report

from sklearn.linear_model import LogisticRegression
from sklearn.multiclass import OneVsRestClassifier
lr = OneVsRestClassifier(LogisticRegression(max_iter=1000))
lr.fit(Xtrain, ytrain)