Earlier quoted context omitted.
I share the concern about mono-cultures in tech, but if you are serious about getting into data science or AI I have to agree with the OP -- stick to TensorFlow. TensorFlow.js is not a first class citizen of that ecosystem, but its close enough to get real work done. 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.…
> if you are serious about getting into data science or AI Then you won't be using Javascript anyways. Like you said, Python is the way to go: PyTorch, TF, PyMC3, scikit-learn, etc.
Brain.js
21–30 of 56 posts
Re: Brain.js
#22A 19-part interactive neural network course that uses brain.js was posted to HN last week: https://scrimba.com/g/gneuralnetworks
For reference, NodeJS support for GPUs will only drop under version 2, so if you're planning on GPU acceleration, this is not for you.
Re: Brain.js
#23Earlier quoted context omitted.
Even as someone who has only superficial knowledge of the topic, that course was very underwhelming.
As someone with absolutely no knowledge of the topic, I found that course to be very digestible and pleasant.
Things should be as simple as possible, but not simpler...
Re: Brain.js
#24Earlier quoted context omitted.
I followed the progress back then and felt very bad for both, that such an awesome library was going down and the bad situation she found herself into. Hope she is doing well! And happy to see brain being reborn.
What happened to the author? I'm not aware of the history...
Re: Brain.js
#25Earlier quoted context omitted.
As someone with absolutely no knowledge of the topic, I found that course to be very digestible and pleasant.
Same. It was so accessible (voiceover in an online code editor) that I just did it instead of bookmarking it for a day that never arrives.
Re: Brain.js
#26Re: Brain.js
#27The sample app (the color contrast stuff) hurt my feelings a bit. I used to work on an app that needed to do something similar and I ended up fighting with the YIQ formula (it really doesn't work for a lot of cases). Playing with the sample just a bit and I ended up replicating what had taken me weeks to do back in the days...
Re: Brain.js
#28The sample app (the color contrast stuff) hurt my feelings a bit. I used to work on an app that needed to do something similar and I ended up fighting with the YIQ formula (it really doesn't work for a lot of cases). Playing with the sample just a bit and I ended up replicating what had taken me weeks to do back in the days...
This was good, correct? I'd love to hear what your use case was, like which colors didn't work, etc.
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.
Re: Brain.js
#29y tho? https://js.tensorflow.org/
I'm aware of tensorflow.js, but what really struck me with brain.js was this snippet from the very beginning of the readme file: 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…
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.
Re: Brain.js
#30y tho? https://js.tensorflow.org/