Recognizing Handwritten Digits with scikit-learn

Recognizing Handwritten Digits With scikit-learn


First we import necessary  library  and load data



 



We can see this digits using matshow 



Now we split over data set using sklearn library


Now we train our model and fit



In machine learning, the radial basis function kernel, or RBF kernel, is a popular kernel function used in various kernelized learning algorithms. In particular, it is commonly used in support vector machine classification.

Now we predict the digit


We Check the score of our model which means how much model is accurate




Comments

Popular posts from this blog

Multivariate logistic regression in Python

Decision tree for titanic dataset in Python

K Means Cluster Algorithm