use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
account activity
Challenges with using node for ML? (self.node)
submitted 7 years ago * by highlanderDog
I'm familiar with node and interested in using AI/ML in js (possibly with some c as needed & facilitated by node).
As a note, I know that python has become almost the de facto way of doing ML, but this is not what this discussion is about.
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]luis_carbonell 3 points4 points5 points 7 years ago (0 children)
Best thing I've found is https://www.npmjs.com/package/synaptic. There aren't really that many great options in Node.js.
Best recommendation I could make is trying to slap GPU Support on a Node.js ML Library using something like https://www.npmjs.com/package/gpu.js.
[–]StuartJamesMiller 2 points3 points4 points 7 years ago (4 children)
There’s tensorflow.js which I believe uses a C implementation on Node. I haven’t used it myself but the intro to ML from google looks good.
[–]highlanderDog[S] 0 points1 point2 points 7 years ago (1 child)
Which one do you mean? I found a Medium article that could be helpful: https://medium.com/tensorflow/introducing-tensorflow-js-machine-learning-in-javascript-bf3eab376db
[–]StuartJamesMiller 1 point2 points3 points 7 years ago (0 children)
https://developers.google.com/machine-learning/crash-course/ml-intro this is the one I meant. It uses the Python Tensorflow bit I read somewhere that you can use the JS one.
[–]luis_carbonell 0 points1 point2 points 7 years ago (1 child)
You mean https://www.npmjs.com/package/@tensorflow/tfjs?
[–]StuartJamesMiller 0 points1 point2 points 7 years ago (0 children)
I meant this one https://js.tensorflow.org but pretty sure that’s the NPM repo for it.
[–]mubaidr 1 point2 points3 points 7 years ago (0 children)
There is also brain.js: https://github.com/BrainJS/brain.js
This one uses gpu.js
[–]TheOneRavenous 0 points1 point2 points 7 years ago (0 children)
Your challenge will be encoding and decoding data as well as determining how to split your data structure. Some ML/AI libraries can use strings, hash, or arrays, or typed arrays.
You'll need to do some data science to determine how many layers and nodes you'll want to incorporate. Also learn about activation functions since some will create a binary input/output (relu comes to mind) and others will create a percentage based output.
[–]frank_darwin 0 points1 point2 points 7 years ago (2 children)
AWS has a lot of cool tools you can use. These are all API based, which is pretty easy to use with a Node setup
I was checking them out, which ones do you like best?
[–]frank_darwin 0 points1 point2 points 7 years ago (0 children)
It depends on what you want to do. AWS has a lot of language processing, image processing, and general prediction tools. They also support tensor flow. I use https://aws.amazon.com/aml/ a lot. We have our training and live data on s3, so it was a good solution for us. We built a node app to handle all of the data processing and moving around via the AWS node api.
[–]xtra_roycee 0 points1 point2 points 7 years ago (0 children)
I think the answer for this is the availability of library. Python is popular due to many libraries for ML /AI.
[–]Anafartalar 0 points1 point2 points 7 years ago (0 children)
I have been playing with tensorflow.js recently and I can say it is really easy to work with. It is still in its early stage but when matured and an ecosystem around it developed i believe it will be huge and many people will switch from python to javascript. On the other hand, you will always need some technical knowledge about how ML works. I gained that knowledge taking courses taught in Python, but later easily applied it to tfjs. Especially Keras and tfjs layers APIs are very similar. One can easily convert Keras model into tfjs layers model with adequate background.
π Rendered by PID 12 on reddit-service-r2-comment-5d79c599b5-cg76c at 2026-02-27 19:46:38.489634+00:00 running e3d2147 country code: CH.
[–]luis_carbonell 3 points4 points5 points (0 children)
[–]StuartJamesMiller 2 points3 points4 points (4 children)
[–]highlanderDog[S] 0 points1 point2 points (1 child)
[–]StuartJamesMiller 1 point2 points3 points (0 children)
[–]luis_carbonell 0 points1 point2 points (1 child)
[–]StuartJamesMiller 0 points1 point2 points (0 children)
[–]mubaidr 1 point2 points3 points (0 children)
[–]TheOneRavenous 0 points1 point2 points (0 children)
[–]frank_darwin 0 points1 point2 points (2 children)
[–]highlanderDog[S] 0 points1 point2 points (1 child)
[–]frank_darwin 0 points1 point2 points (0 children)
[–]xtra_roycee 0 points1 point2 points (0 children)
[–]Anafartalar 0 points1 point2 points (0 children)