Win a copy of Secure Financial Transactions with Ansible, Terraform, and OpenSCAP this week in the Cloud/Virtualization forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Rob Spoor
  • Henry Wong
  • Liutauras Vilda
Saloon Keepers:
  • Tim Moores
  • Carey Brown
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
Bartenders:
  • Frits Walraven
  • Himai Minh
  • Jj Roberts

Why JavaScript when everyone I work with uses Python for ML?

 
Ranch Hand
Posts: 161
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi. All the developers I work with use Python exclusively for ML work. I have dipped my toe into the water in the ML area and found Python an excellent tool (even though I had to learn it) with many libraries that make building ML code very straightforward.
JavaScript, on the other hand, doesn’t seem (to me anyway) to be as clean a way to do ML.

Convince me to switch my way of thinking and thanks for taking my question.
 
Lanny Gilbert
Ranch Hand
Posts: 161
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This question is for Shanqing, Stan & Eric specifically, but everyone in general
 
Bartender
Posts: 1304
39
IBM DB2 Netbeans IDE Spring Java
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Well, a good answer could be : if I'm already comfortable with JavaScript, why I should I use Python for ML, when Tensor flow supports JavaScript as well?
By the way, I followed a path very similar to yours - approaching ML took me to learn Python.My humble opinion is that in ML the language you use is the less important aspect of the matter. It's just a mean to use powerful libraries, like Tensor flow.
 
Lanny Gilbert
Ranch Hand
Posts: 161
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Claude, that raises a good point. If I learn JS in order to access TensorFlow libraries, I’ve started to get a good JS foundation so I can use other powerful libraries like Angular for front-end and Node.js for server side. I’m not aware of anything similar for Python. Also, there are libraries in JS that allow you to write in JS and then compile into iOS or Android native. So seems that learning JS to use TensorFlow is a gateway to all kinds of other technologies while Python doesn’t seem to have that. At least not that I can find.  
 
Claude Moore
Bartender
Posts: 1304
39
IBM DB2 Netbeans IDE Spring Java
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Well, as usual... it depends, Lanny. I bring my own experience: i learnt Python as much as I needed to play (and I point up the word 'play') a bit with machine learning and TensorFlow.
I couldn't define myself a pythonist, just I understood some 'advanced basics' of that language.
Of course, you can get more and more involved with javascript and take advantage of the knowledge you gain by working with ML to develop further your skills as Javascript developer.
But I presume that an AI researcher would just treat python or javascript as a mechanic would treat an hammer or a screwdriver... i.e, tools.
The real core of AI are mathematical and statistical models, it's something we should never forget.
 
Farmers know to never drive a tractor near a honey locust tree. But a tiny ad is okay:
SKIP - a book about connecting industrious people with elderly land owners
https://coderanch.com/t/skip-book
reply
    Bookmark Topic Watch Topic
  • New Topic