sean butler

neural network in c++

neural-network   ANN   NN   c++   ML   selected

Learning, Programming and Explanation

There are lots of sources for the maxim, that if you cant explain something in simple terms then you dont understand it via Kottke.

What better way to show that you understand a complex topic like Neural Networks than explaining it to a machine? Its common to learn about Artificial Neural Networks using Python there are lots of reasons why this is a good approach. One being because of the support this language provides which is derived in part through years of focus from AI researchers. There is a downside to this support though. Its possible to leap forward in achievement with so much support that the journey doesnt impart as much understanding.

A C++ Neural Network

The linked repo contains a from scratch implementaiton of a ANN Classifier for the MNIST data set. It could easily be applied to other datasets if you wish.

Features

{
  "network": {
    "layers": [784, 64, 32, 10],
    "learning_rate": 0.001,
    "activation": "relu"
  },
  "training": {
    "epochs": 2,
    "shuffle": true
  }
}

giving you easy configuration of

take a look here

https://github.com/seanbutler/NeuralNetwork_In_Cpp