Creating a Artificial Neural Network from scratch using C#

Let’s build Artificial Neural Network in C#! How hard can it be?

Artificial Neural Network


Random Weights Declaration


Input with XOR Gates

Input and Output table of XOR Gate
Random inputs with Gate


Feedforward Neural Network

Activation Function (Sigmoid)

Sigmoid Curve
Sigmoid Function Formula


Backpropagation Neural Network

Example of ANN

Sample Artificial Neural Network


CTO @ Preline,Inc

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store