Skip to content
thing i did to learn abt the math inside a network
JavaScript Other
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
libs
style
README.md
index.html
net.png
tcp.js
tcp.py

README.md

text-color-predictor

I made this to get more familiar with how neural networks work.
What the program does is randomly pick a color and, based on its training, decides whether white or black text looks better over that color. It's trained with a back propagation algorithm and as for the dataset, it picks a random color and decides whether the text should be black or white using this formula: if R * 0.299 + G * 0.587 + B * 0.114 is higher than 150, it's black, else it's white.

It finally works oh man, that's important. I'm pretty proud.
you can mess around with it here

looks kinda like this:

You can’t perform that action at this time.