Live data from Hacker News

Brain.js

github.com

41–50 of 56 posts

Re: Brain.js

#41
post #26
post #6

Earlier quoted context omitted.

Even as someone who has only superficial knowledge of the topic, that course was very underwhelming.

Ty for your thought. I'd love to know more specifics.

Most of the arguments either don't add up (e.g. saying it's mathematically proven while ML doesn't have rigorous theory) or are too generic to add much value. The course feels more like a verbal introduction to the library API rather than teaching anything related to ML.

Re: Brain.js

#42
post #40

JS nails it again even with Neuron Networks. What saddens me in latest years is the direction of library development, where people put more focus on Python instead of Javascript. Javascript is universal, you can reuse your code in both browser, native apps and server. Python ? I don't think so. My dream of "getting the job done" is a universal language, universal ecosystem/libraries. We need universal developers, no…

Yeah! Making poorly designed and "weakly" typed language with enormous WTF's as a universal language! I think if they put more effort on webassembly, market share and library support for js will have a huge dropout. For more universal language how about have a actual sane language other than javascript or even python?

Type script is what will likely take over.

Re: Brain.js

#43

JS nails it again even with Neuron Networks. What saddens me in latest years is the direction of library development, where people put more focus on Python instead of Javascript. Javascript is universal, you can reuse your code in both browser, native apps and server. Python ? I don't think so. My dream of "getting the job done" is a universal language, universal ecosystem/libraries. We need universal developers, no…

>Neuron Networks

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?

Re: Brain.js

#44
post #22

Earlier quoted context omitted.

This is Robert, the lead developer for brain.js. Ty for the plug! I was going to mention this, nice to see people listening and helping spread the word. Working on it hard guys! When spare time cannot be had, just stay up late, and get up early!

This is tangential, but I highly disapprove of any encouragement to stay up late. Sleep is incredibly important for the entirety of the body. It's always better to get well-rested over a small amount more work done (which you'll eventually lose anyway since you won't be well-rested).

Different strokes for different folks. If it works, don’t fix it. Etc.

Some of us succeed not just despite our bad habits, but because of them.

Re: Brain.js

#45

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

Can you elaborate why? It dominates AI and data science for a reason

Re: Brain.js

#46
post #44

Earlier quoted context omitted.

This is tangential, but I highly disapprove of any encouragement to stay up late. Sleep is incredibly important for the entirety of the body. It's always better to get well-rested over a small amount more work done (which you'll eventually lose anyway since you won't be well-rested).

Different strokes for different folks. If it works, don’t fix it. Etc. Some of us succeed not just despite our bad habits, but because of them.

Lack of sleep might not stop you from succeeding, but it can make you think slower, have poorer memory, get sick easier, eat more than you should, look older, and be more prone to depression and anxiety.

Please read "Why We Sleep" by neuroscientist Matthew Walker. Sleep is essential. Don't give it up lightly.

Re: Brain.js

#47
Great. From this source code, I can find well that the speed is optimized even simple for-loop levels in JavaScript.

Re: Brain.js

#48
post #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…

What is the equivalent in tensorflow.js? Can someone translate?

Re: Brain.js

#49

JS nails it again even with Neuron Networks. What saddens me in latest years is the direction of library development, where people put more focus on Python instead of Javascript. Javascript is universal, you can reuse your code in both browser, native apps and server. Python ? I don't think so. My dream of "getting the job done" is a universal language, universal ecosystem/libraries. We need universal developers, no…

I couldn't really understand how the JS community is so vibrant in some areas and flocks to libraries every other day, but the python community gravitated around all the big data stuff

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

https://github.com/nicolaspanel/numjs

https://github.com/StratoDem/pandas-js

Re: Brain.js

#50

JS nails it again even with Neuron Networks. What saddens me in latest years is the direction of library development, where people put more focus on Python instead of Javascript. Javascript is universal, you can reuse your code in both browser, native apps and server. Python ? I don't think so. My dream of "getting the job done" is a universal language, universal ecosystem/libraries. We need universal developers, no…

>Neuron Networks 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?

Because you want your reasoning and abstraction to be as portable as possible, don't you ?
Post reply on HN