Live data from Hacker News

Brain.js

github.com

11–20 of 56 posts

Re: Brain.js

#11
post #4

Saw this and thought, "Huh, I wonder if harthur is back at it", but nope. Nice to see someone picked it up though!

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.

I think she followed up a few years later and said that the bad situation she was in was unrelated to her leaving Github. It was mostly the time commitment of maintaining many open source projects.

Re: Brain.js

#12

A 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

#14
post #6

Earlier 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.

[deleted]

Re: Brain.js

#15

y 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 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.

Re: Brain.js

#16
post #6

Earlier 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.

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

#17
post #4

Saw this and thought, "Huh, I wonder if harthur is back at it", but nope. Nice to see someone picked it up though!

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

#18
The 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

#19

y tho? https://js.tensorflow.org/

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. As much as I dislike that language, it completely dominates AI and data science.

Re: Brain.js

#20

y tho? https://js.tensorflow.org/

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.

Post reply on HN