5 ms·
I think my favorite part of this is that inevitably people will write type definitions for TensorFlow.js in TypeScript, Flow, ReasonML, Purescript, and more. I
by z1mm32m4n 9y ago
I think my favorite part of this is that inevitably people will write type definitions for TensorFlow.js in TypeScript, Flow, ReasonML, Purescript, and more.
It has always seemed like data science and machine learning tasks have always been most popular in dynamic languages like Python, Julia, and R. I really hope this can be a bridge over to typed machine learning APIs!
(Of course, I’m also interested to hear about your favorite typed machine learning library if you have some that you already use)
- coding123 9y agoAbsolutely spot on... I love watching Siraj Raval's videos on ML - but darn it every other video has a 2 or 3 minute segment where he's just scratching his head - finally to realize there is a typo that could have been caught with a typed language!
- improbable22 9y ago"favorite typed machine learning library" Flux is essentially nothing but some clever use of Julia's type system: https://github.com/FluxML/Flux.jl https://github.com/FluxML/Flux.jl There's some ability to generate javascript too, which you can try here: http://fluxml.ai/experiments/mnist/ http://fluxml.ai/experiments/mnist/ . Edit: I see it's actually using deeplearn.js == TensorFlow.js for this, details at https://github.com/FluxML/FluxJS.jl https://github.com/FluxML/FluxJS.jl
- narrator 9y agoI am starting to really like Javascript now that Typescript showed up. Makes things so much nicer.
- formalsystem 9y agoNeural net layers should have been statically typed ages ago, as anyone who has struggled with mismatching array sizes in Python already knows. I'm really looking forward to a superior dev experience with writing ML code once great autocompletion kicks in
- harveynick 9y agoHow about TensorFlow for Swift? :-D https://news.ycombinator.com/item?id=16719615 https://news.ycombinator.com/item?id=16719615
- wwwigham 9y ago> I think my favorite part of this is that inevitably people will write type definitions for TensorFlow.js in TypeScript Actually, it already ships with typescript definitions - it's written in TypeScript![1] [1] https://github.com/tensorflow/tfjs/blob/master/src/index.ts https://github.com/tensorflow/tfjs/blob/master/src/index.ts
- colek42 9y agoI would love to see some full Tensor Flow bindings for Go. It's concurrency system is great for data science tasks. The statically linked binary makes it great for distributed workflows.
- amelius 9y agoI think dynamic languages are a bad fit, because they force the programmer to think in data-flow graphs, whereas a more static language could allow for more offloading of complexity to a compiler (i.e. let the compiler build the data-flow graph, which is essentially what we've been doing for decades).
- mrkgnao 9y agoA good set of Haskell bindings to the TensorFlow library: https://github.com/tensorflow/haskell https://github.com/tensorflow/haskell