Skip to main content

Simple neural network that learns to predict colors (AI Color Predictor)


This is a single layer neural network consists of 4 inputs __4 neurons__ (first is bias=1 & others is RGB color values) and one output __1 neuron__.

This neural net trains itself on 4 samples of (RGB) red & blue colors using signum & signum_derivative & dirac_delta functions to classify your inputed color to blue +1 or red -1.

You can view the source code on GitHub.

Here is the mathematical representation of the idea:

- Trainning data samples & Neural Network:


- Calculation of the output Y with signum function:


- The weight adaptation steps:



Screenshots of some tests:



Comments

Popular Posts

AI Snake Game

This is an A.I Snake game, written by me in Java script, the snake has a simple memory that is used to store its mistakes in the game to try to avoid later. Its artificial intelligence is still limited. It depends on the next cell checking that needs to move to without taking into consideration its length. So you will see it collides with itself!, so I'm working to develop it to make it more smarter. Here is the source code of the game for learning & developing: Download   Later, I'll publish some comments to explain the code ... Good luck :) Game Preview: *Click on [Play A.I] to start game AI Snake Game By Dev.Hima Score: 0 Play A.I Best Score: 0

xCrypto 2.0

Secure your files with unbroken NTRU algorithm from quantum attacks. With xCrypto 2.0 you can use Public/Private Key NTRU algorithm to secure (Encrypt/Decrypt) your sensitive files on your android. NTRU is a cryptography algorithm based on lattice cryptography. NTRU is unbroken for now from Quantum Computing Attacks. You can download it from Google play store: