Brain.js
github.com
github.com
Things should be as simple as possible, but not simpler...
Some of us succeed not just despite our bad habits, but because of them.
Please read "Why We Sleep" by neuroscientist Matthew Walker. Sleep is essential. Don't give it up lightly.
Edit: When you have a working 2.0 beta, do you mind if I build a docker-jupyter notebook kinda like the Tensorflow docker? Something with nvidia-docker runtime on jupyter-nodejs? I really just wanna bring this into a more mainstream audience.
I've used: https://github.com/n-riesco/ijavascript https://github.com/notablemind/jupyter-nodejs
Or even: https://beta.observablehq.com/
And doing all the examples directly on the browser creates a very low barrier to entry as a front end developer.
Yeah, basically what Im trying to say is that this is awesome. It was several years ago so I don't have my old code anymore (different job), but it was in the printing industry, where we wanted to warn customers that their choices of color were...dubious.
However, it's extremely subjective. An example is certain shades of red/orange. The formula might tell you that using white text is a bad idea, but they're really the same to read, and white looks better.
One thing I'd have to play around more than my free time allows, but I had to deal with back then, was backgrounds with multiple color. Where it got really tricky is when the text overlaps multiple colors, you have to decide if you're seeing enough of the text that one foreground color is ok, or if it's too much and you have to say "no". It was incredibly tricky to do, especially with things like antialiasing involved. Training a model with that data probably would give much better results than my tweaked formulas of old.
1 to 10 addition, 2000 iterations took about 5 mins on repl.it
It got the maths wrong so will need more training
brain.js is a library of Neural Networks written in JavaScript.This really sets the tone!
>We need universal developers, no need for full-stack developers anymore.
What if the “universality” of a developer has less to do with their language of choice, and more with their reasoning and abstraction capabilities?
Not saying it shouldn't, I just don't get the aberration given the computational resources available today since compute instances mitigate single event loop issues
Is there a JS version of numpy and panda?
edit: yes, there are
Note: this is what brain.js is shifting over to. It uses the... GPU.
how to approximate the XOR function using brain.js
const net = new brain.NeuralNetwork(config);
net.train([{input: [0, 0], output: [0]},
{input: [0, 1], output: [1]},
{input: [1, 0], output: [1]},
{input: [1, 1], output: [0]}]);
const output = net.run([1, 0]); // [0.987]
This is how you win over newcomers -- quick, accessible demonstrations of the product/library's capabilities. A sample is worth a thousand words. Tensorflow may have a lot of great, detailed examples, but its documentation fails in this regard.This is why I used p2.js for javascript game physics over franken-emscripten Box2d ports.
The readme and source code are extremely accessible (https://github.com/schteppe/p2.js#sample-code).
When I was trying to optimize my collision detection, I stepped in to p2.js source to read narrowphase vs broadphase implementations. Last I used Box2d, I was reading c++ pdf documentation.
Also... there are some groups that use Javascript for this kind of work (We use Typescript for our projects), but the vast majority of it is in Python. As much as I dislike that language, it completely dominates AI and data science.
Then you won't be using Javascript anyways. Like you said, Python is the way to go: PyTorch, TF, PyMC3, scikit-learn, etc.
And JS is? Even with TS papering over the top of it, JS is not really an ideal language for this. If you want a type system, performance and ease of use, why not write it in Julia?
Can you elaborate why? It dominates AI and data science for a reason