2
$\begingroup$

What are the benefits of having ML in JavaScript I.e. the deeplearn.js (now tensorflow) stuff, as opposed to implementing the ML steps in a python backend?

$\endgroup$
  • $\begingroup$ If run on the front-end, you can offload training, and give the user a say; useful when subjectivity is involved. $\endgroup$ – Emre Apr 2 '18 at 16:16
2
$\begingroup$

There are a lot of services that offer free or very cheap hosting of static websites. If you are able to implement your ML model in JS this allows you to deploy your product/app/whatever easily and with low cost. In comparison, requiring a backend server running your model is harder to setup and maintain, in addition to costing more.

| improve this answer | |
$\endgroup$
1
$\begingroup$

JavaScript is very a popular language, especially for web developers. Machine learning in a web-native language allows additional programmers to use machine learning more easily.

JavaScript is a client-side language that allows deep learning models to predict without server-side resources.

| improve this answer | |
$\endgroup$
0
$\begingroup$

It is a bit technical and depends where you use your JavaScript code. It is used in both backend and frontend apps. My opinion is that using that in frontend apps can help your ML algorithms run on distributed devices. Take a look at here. You can use this language to run ML codes on hosts' computers.

| improve this answer | |
$\endgroup$

Not the answer you're looking for? Browse other questions tagged or ask your own question.