Code Monkey home page Code Monkey logo

ai's Introduction

AI Project

Description

AI model from scratch in C++ for image classification (MNIST dataset)

Install dependencies

  • OpenCV
  • Doxygen (only to generate the documentation)

Build

cmake -S . -B build -G "Unix Makefiles" Then in build/ : make

Run

Run the executable file in build/bin/

Formulae used

PDF

Example

Accuracy: 87 %

  • nbEpochs = 11
  • batchSize = 64
  • maxNbInstancesPerClass
    • training set: 6000
    • test set: 1000
  • Network
    • Input: 28*28
    • Layers
      • Dense (512) LeakyRelu
      • Dense (10) Softmax
    • Learning rate: 0.03

TODO

  1. Improve performance: add an option to use GPU with CUDA to increase the training speed. Use in the Tensor class the following code: https://developer.nvidia.com/blog/programming-tensor-cores-cuda-9/
  2. Conv2D and Max-pooling layers
  3. Confusion matrix
  4. Accuracy graph
  5. More loss functions

Doc

  1. Run in the project root folder: doxygen
  2. Open the doc folder and either open the LaTeX version or the HTML one (the index.html file)

Author

Robin Meneust

ai's People

Contributors

robinmeneust avatar

Watchers

 avatar

ai's Issues

Include issue + samples

  • In NeuralNetwork.cpp and main.cpp, we include neuralNetwork.h instead of NeuralNetwork.h
  • Samples should be added to the repo (or at least the link)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.