An open API service indexing awesome lists of open source software.

https://github.com/tschechlovdev/kmeans_mnist

Demonstration of using k-Means to cluster images of handwritten digits (MNIST dataset). Source Code for corresponding article on Medium.
https://github.com/tschechlovdev/kmeans_mnist

clustering image-dataset python scikit-learn

Last synced: 3 months ago
JSON representation

Demonstration of using k-Means to cluster images of handwritten digits (MNIST dataset). Source Code for corresponding article on Medium.

Awesome Lists containing this project

README

          

# Applying k-Means on the Image Dataset MNIST

This repository showcases how to apply k-Means on the image dataset MNIST.
In particular, how to load the data, apply k-Means, visualize the results, and how to evaluate it.

You can find the corresponding post on Medium [here](https://medium.com/@tschechd/applying-understanding-k-means-on-image-data-using-the-mnist-dataset-8101fcc650eb).

## Installation

The notebook is written in Python 3.10. I suggest to install [Anaconda](https://docs.anaconda.com/).
To install the same environment you can simply run ``conda env create -f environment.yml``.

Alternatively, you can lookup the dependencies in the environment.yml file and install them, e.g., using pip.

Then just run ``jupyter-lab`` and open the ``kmeans_MNIST.ipynb`` notebook.