Skip to content

This Python-based machine learning algorithm is designed to recognize a limited set of characters formed by 10x10 pixel images. The code performs a defined number of iterations for training and then carries out inference with slight alterations in the characters. It also generates a learning curve graph and a confusion matrix after evaluation.

Notifications You must be signed in to change notification settings

andref12/neural-network

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Machine Learning Algorithm for Character Recognition (10x10 Pixels)

This Python-based machine learning algorithm is designed to recognize a limited set of characters formed by 10x10 pixel images. The code performs a defined number of iterations for training and then carries out inference with slight alterations in the characters. It also generates a learning curve graph and a confusion matrix after evaluation.

Overview

This project implements a character recognition system using a simple machine learning model. The algorithm is trained on 10x10 pixel images representing characters and then evaluated using slightly altered test images to assess the model's generalization ability. After training, the following outputs are generated:

  • Learning curve
  • Confusion matrix

Features

  • Recognition of characters formed by 10x10 pixels.
  • Iterative training to optimize model performance.
  • Inference with slight variations in the characters.
  • Visualization of learning curve.
  • Generation of confusion matrix to assess performance.

Installation

To use this project, make sure to have Python 3.12.2 installed along with the necessary libraries. You can install the required libraries using the following command:

pip install -r requirements.txt

Requirements

  • Python 3.12
  • Seaborn
  • Pandas
  • NumPy
  • Matplotlib

Usage

  1. Training the Model:
    Run the main.py script to train the model with the predefined dataset of 10x10 pixel characters.

    python main.py
  2. Inference:
    After training, the model will make predictions on test data with slight modifications to the characters.

  3. Output:

    • A graph displaying the learning curve will be shown.
    • A confusion matrix will be printed, showing the model's performance across various classes.

Code Structure

  • main.py: The main script to train the model and generate visualizations.
  • Images/: Folder containing the dataset (training and testing images).
  • multiclass.py: Contains the machine learning model architecture and training functions.

Example Output

image

About

This Python-based machine learning algorithm is designed to recognize a limited set of characters formed by 10x10 pixel images. The code performs a defined number of iterations for training and then carries out inference with slight alterations in the characters. It also generates a learning curve graph and a confusion matrix after evaluation.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages