Brain.js Demo – Train a neural network to recognize color contrast
harthur.github.io
harthur.github.io
I'm the author of an open source distributed deep learning framework called deeplearning4j.
I am doing things with it such as sentiment analysis, face recognition, voice recognition,named entity recognition,...
I was considering creating a javascript visualizer for the tool (aka: train on the platform for the heavy lifting) then export the models to javascript for rendering and even in browser prediction.
How interesting would this be if it were implemented?
Thanks!
Also: would just like to say, thank you for making my web development I've done over the past few years a delight.
You'll notice at the bottom for the training time. That's immense.
The reason I'm encouraging horse power for practical use is to reduce training time to something meaningful for iteration use via distributed means.
I have visualization techniques built in to the lib to help come up with an optimal model so you know it works well, I still need to implement grid search and some other stuff.
My timeline is within the next month or so to have all of this done. I will have the stanford recursive neural tensor nets and the conv nets done here shortly. The next part will be distributed GPUs ;).
I hope to make this as practical as possible for people. The next obvious step after training time is practical and easy to do is wrappers for common tasks.
[1]: https://github.com/karpathy/convnetjs
[2]: http://cs.stanford.edu/people/karpathy/convnetjs/demo/mnist....
The neural network approach goes a step further and accounts for how the brain processes color. There's no reason to consider that notion of "contrast" less valid than the brain-agnostic eye based model. In fact, in the context of readability, the psychovisual notion is far more useful.
W3C, in Web Content Accessibility Guidelines (WCAG) 2.0 [1] recommends a different and more complex algorithm [2] for calculating contrast between colours, which could be used instead for choosing white or black text. It would be interesting to see how the two approaches compare.
1. http://www.w3.org/TR/2008/REC-WCAG20-20081211/
2. http://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-...
Though I had to fight temptation to pick white anyway because I thought that "might be" what more l33t people would think is better..
i opened this issue 2 years ago: https://github.com/harthur/kittydar/issues/3 ;)
But yes, the background colors are random.
I agree it could use a bit of explanation.