r/programmingcirclejerk • • Mar 31 '18

TensorFlow.js

https://js.tensorflow.org/
69 Upvotes

27 comments sorted by

44

u/samnardoni Mar 31 '18

kill -9 $(pgrep myself)

19

u/lol_no_generics lol no generics Mar 31 '18

what is pkill

54

u/pagefault0x16 what is pointer :S Mar 31 '18

God is dead

15

u/Draghi line-oriented programmer Mar 31 '18

And we killed him.

8

u/[deleted] Mar 31 '18

How shall we comfort ourselves, the murderers of all murderers?

12

u/filleduchaos Mar 31 '18

And Brendan Eich has killed him

4

u/Shorttail0 vulnerabilities: 0 Mar 31 '18

Actually, God's not Dead 3 just came out, so you couldn't be more wrong.

13

u/detroitmatt Mar 31 '18

What's the jerk here? That you shouldn't do ML in js?

21

u/i_like_trains_a_lot1 What part of ∀f ∃g (f (x,y) = (g x) y) did you not understand? Mar 31 '18

You shouldn't ML in the browser...

4

u/NAN001 Mar 31 '18

dude ever heard about node or wat

12

u/i_like_trains_a_lot1 What part of ∀f ∃g (f (x,y) = (g x) y) did you not understand? Mar 31 '18

A WebGL accelerated, browser based JavaScript library for training and deploying ML models.

It would have been acceptable to do it on node, but this shit is specially "designed" to be run in browser.

12

u/carbolymer loves Java Mar 31 '18

TFW no haskal.tensorflow.org

writeIORef unjerk True

Seriously, what's the reasoning behind this? They could've simply transpile python to TraumaScript.

writeIORef unjerk False

or haskal

9

u/utopianfiat type astronaut Mar 31 '18

4

u/statistmonad has hidden complexity Mar 31 '18

last commit 2 months ago

ded project

7

u/utopianfiat type astronaut Mar 31 '18

Here's a more live project:

https://github.com/tensorflow/rust

0

u/[deleted] Mar 31 '18

[deleted]

13

u/carbolymer loves Java Mar 31 '18

haskal*

8

u/[deleted] Mar 31 '18

hasklul*

4

u/ProfessorSexyTime lisp does it better Mar 31 '18 edited Mar 31 '18

Clearly JS is best language for Machine Learning because async is all AI need and don't possibly need to make use of any other modern hardware features in any given scenario ever.

EDIT: <unjerk> Yea, I know it's a case by case scenario. </unjerk>

3

u/pythonesqueviper Do you do Deep Learning? Mar 31 '18

unjerk.apply(() => {

I fail to see the jerk here. That a popular machine learning library got a JS wrapper?

})

23

u/utopianfiat type astronaut Mar 31 '18 edited Mar 31 '18
with (unjerk) {

There's a strong and justified feeling that tensorflow is a lot more popular than it is useful. Not that it's not useful, but you get a lot of people who don't understand it at all who are really excited about getting untold fame and riches by getting the tensorflow.

So they call up the vendor and say "hi we need the tensorflow, give us the tensorflow" and the vendor says "I don't understand what you mean, what are you using tensorflow for" and they say "we want to get the tensorflow so we can use AI synergies and streamline opportunity conversion, and [businessese nonsense intensifies]"

"ok, who is your tensorflow SME, we can coordinate with them and decide what kind of tooling is appropriate for your organiz-" -- "we don't need one, we want the tensorflow, just give us the tensorflow"

Then the vendor runs pip install tensorflow on a bunch of hosts, invoices the client, and it's never used again. The end.

The cases in which a company actually has someone with the statistics, data analysis, linear algebra, and engineering skills AND also has enough of the right kind of data to justify using tensorflow over a standard regression toolset are very, very small, but it's quite exciting to see when it happens.

Also, and probably more important for the jerk, the state of tensorflow education right now is very dangerous, because Google is trying to train people at an insane clip. A lot of people are coming out with a very naive understanding of how different parts of their workflow affects the robustness of the final model, and the people hiring them understand even less, so they think these kids are geniuses.

That's going to produce a lot of models that are bullshit over/underfit, or are fed data with underlying bigoted curations thus teaching the model to be bigoted, etc.

}

11

u/pythonesqueviper Do you do Deep Learning? Mar 31 '18

Ja, true. TensorFlow is indeed hyped by people who don't know how to use it or why it's useful but we shan't throw the baby out with the bathwater. TensorFlow is an excellent ML library. We use it at my workplace for forecasts, but we have a doctor of mathematics writing the code for it. And it's amazing at what it does, even if it has its limitations. And it saves us a lot in Azure ML services.

1

u/utopianfiat type astronaut Apr 01 '18

Yeah, I've definitely seen non-PhDs do good tensorflow work, but so much of effective tensorflow is built on advanced stats that most typical applied mathematicians fall short.

7

u/[deleted] Mar 31 '18

It takes few weeks and some "advanced maths" to fully understand the math behind classic neural networks (not talking about concepts like RBF or ART) , yet everyone left and right is creating NN without even understanding how backpropagation works.

Google is trying to create group of Tensorflow monkeys who will be "AI experts", despite knowing shit about AI and they should push the salary down

1

u/utopianfiat type astronaut Apr 01 '18

At the least, the basics of backpropagation tend to be in the tutorial materials for a lot of people. Jerk aside, it's decently easy to get the gist of "get some answers and change the weights so our answers are less wrong". The bigger and broader problem is that they don't understand when neural networks are appropriate.

For example, someone comes in with a modest amount of well-cleaned feature-extracted data; going straight to NNs is a waste of time and money. (A) because you can't tune the fit of an NN as easily as you can a boring regression, and (B) because your dataset isn't large enough to make a meaningfully robust model.

0

u/[deleted] Mar 31 '18

[deleted]

10

u/aebkop Mar 31 '18

We need webcl for true webscale compute

Edit nvm: https://en.m.wikipedia.org/wiki/WebCL - it does already exist

3

u/[deleted] Mar 31 '18