Here we are going to see about how the scikit-learn is used in recognizing handwritten digits.

Scikit-learn is a free machine learning library for Python. It features various algorithms like support vector machine, random forests, and k-neighbors, and it also supports Python numerical and scientific libraries like NumPy and SciPy.

four-step modeling pattern in scikit-learn:
1. Import the model
2. Create instance
3. Training the model
4. Predicting the new label data

Before modeling the data prepare and split the data for train and test.

I imported the inbuilt dataset from the sklearn.


The dataset has the data for past 10years from 2006–04–01 00:00:00.000 +0200 to 2016–09–09 23:00:00.000 +0200. It corresponds to Finland, a country in Northern Europe. If you want to try using the dataset go to the below drive link and download: .

We need to find the average temperature for the month starting from April 2006 to 2016 and average humidity for the same period.


STEP 1: Import the dataset

STEP 2: Print the Data

STEP 3: Check the type of the data

STEP 4: Cleaning the data

STEP 5: Check Whether the dataset has any invalid…

Swetha Sreenivasan


Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store