scikit learn ridge classifier

Solutions on MaxInterview for scikit learn ridge classifier by the best coders in the world

showing results for - "scikit learn ridge classifier"
Fátima
27 Nov 2020
1from sklearn.linear_model import RidgeClassifier
2clf = RidgeClassifier().fit(X, y)
3clf.fit(X, y) #We can fit Ridge Classifier to the dataset in this way too
4clf.score(X, y) #Return the mean accuracy on the given test data and labels
5cfl.predict(X) #Return the predictions
6
7#Classification Metrics
8#Accuracy Score
9from sklearn.metrics import accuracy_score
10accuracy_score(X, y)
11
12#If you like answer, please vote -;)