Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
course content

Course Content

Recognizing Handwritten Digits

Radius Neighbors ClassifierRadius Neighbors Classifier

The Radius Neighbors Classifier is a supervised machine learning algorithm utilized for classification tasks, akin to the K-Nearest Neighbors (KNN) algorithm. Its distinct feature is its reliance on a fixed radius to encompass training data points around a new data point, rather than a set number of nearest neighbors.

This classifier operates by first establishing a radius, which sets the scope of the neighborhood for the new data point. It then identifies all training points within this radius. The classification of the new point is deduced from a majority vote of the classes within the radius.

A key advantage of the Radius Neighbors Classifier is its effectiveness in scenarios where training data exhibits non-uniform density and requires a variable number of neighbors. However, similar to KNN, it faces challenges of computational intensity in handling large datasets.


  1. Initialize a Radius Neighbors classifier with radius of 1600.
  2. Train the classifier using the training dataset.
  3. Make predictions on the test dataset using the trained classifier.
  4. Print a detailed classification report evaluating the model's performance.


Well done on successfully finishing your Python project in handwritten digit recognition! Your proficiency in machine learning and image processing is clearly evident in this remarkable accomplishment. Your dedication and expertise in this domain have culminated in a significant contribution, one that is sure to be beneficial to the team and motivational for others striving for similar achievements. Continue your excellent work!

Mark tasks as Completed

Everything was clear?

Section 1. Chapter 10