3 ms·
For anyone that hasn't checked out Deeplearning4j yet, and think that Python is the only place where the cool AI stuff happens, you really should check this pro
by stolsvik 9y ago
For anyone that hasn't checked out Deeplearning4j yet, and think that Python is the only place where the cool AI stuff happens, you really should check this project out!
Their Gitter channel is absolutely kicking, where lots of the actual devs, including CTO and co-founder Adam Gibson, hang out and /really/ answer /any/ question - I find their responsiveness stunning! (I discussed and reported a minor improvement to the config builder, and it was implemented - literally - the very next day!)
Just recently found the library myself, and I found it very refreshing to be able to utilize my decent Java competence in ML, instead of continuously having to hammer my way through limited Python experience to get things done. (Python also have limited multi-threading capabilities which I found annoying when wanting to do some larger ETL stuff "inline". Python also gives me a strong feeling of "this is a scripting language!": It is super fast and expressive when your needs are met by the vast set of (native) libraries - but when I just want to do something myself with raw code, things gets slower. I also love a properly typed language, which python obviously isn't!)
Do notice that with dl4j, you still get full-on GPU acceleration via Nd4j, which is a "NumPy-style" multi-dim array system.
- agibsonccc 9y agoThanks! Upcoming will be samediff which will allow a pytorch like api on the JVM as well as our python interface jumpy: https://github.com/deeplearning4j/jumpy https://github.com/deeplearning4j/jumpy The hope here is to be able to "meet" the python frameworks here and run side by side benchmarks that anyone who only knows TF could do. For those that don't know: DL4j is somewhere in between keras and TF flexibility wise. Samediff will be a bit "closer" to what people in python see/understand. The goal there is to import models from different frameworks and run them in production.
- sandGorgon 9y agoI would like to chime in favor of python. The ecosystem is just too biased towards python to try and jump in anything else. Also looking at https://deeplearning4j.org/keras https://deeplearning4j.org/keras Could you have documentation which is helpful for the rest of us that use Linux ? Your choice of using docker is brilliant and hope that you make it significantly commandline driven and especially for GPU (nvidia-docker or something). Currently your documentation is extremly dependent on Kitematic and such.
- agibsonccc 9y agoI actually don't think you are my target audience. We aren't targeting end python users. You have to remember: there are 2 ecosystems. Production at big companies and data scientists here. I am not target data scientists. Granted, we will have python bindings later, but there's a huge amount of data engineers that know java just fine and need it for production. That's who I'm going after here. You could try again when we have our python bindings out there..for now just wait I guess?
- mindcrime 9y agoTheir Gitter channel is absolutely kicking, where lots of the actual devs, including CTO and co-founder Adam Gibson, hang out and /really/ answer /any/ question - I find their responsiveness stunning! Same here. @agibson and crew are amazing and they've helped me numerous times over the past year or so.
- albertzeyer 9y agoIf you prefer Java over Python, some of the other more popular frameworks also have Java bindings. E.g. TensorFlow or CNTK.
- stolsvik 9y agoThe Java-TF binding is so shallow it is absurd, IMHO. Basically, you loose everything you have when coding TF in Python, but yes - you can import models and weights into your JVM and do inference there. If you want to create a graph, then you will have to code on a very low level - most of the abstractions and tools are gone.
- agibsonccc 9y agoI'm not exactly sure I'd call those "bindings". If you want an actual compelling competitor to us because we're not a big name, at least look at mxnet. That's more credible. It's incredible that folks insist on this still. Both those frameworks aren't even going to be aiming for any level of integration with the JVM. At least take a look at what makes us different. A big one being: https://github.com/bytedeco/javacpp https://github.com/bytedeco/javacpp We own the whole stack here and integrate pretty deeply. This has lead to some great performance improvements. We aren't just "java bindings" but offering a lot more in one place than the other frameworks. Also: I highly doubt you've even looked at the numbers. We're actually doing pretty well in the rankings: https://twitter.com/fchollet/status/915366704401719296 https://twitter.com/fchollet/status/915366704401719296 We're not #1 but we have an actual user base. I think a lot of our upcoming things like our python bindings where people don't have to "see" java and integrations with spark will win over some folks at big companies..maybe not DL researchers which is also fine. Our upcoming api will be like pytorch though. Regardless: I'm not sure the framework will matter long term given that model import and things like ONNX are becoming more common. Finally, I'll just say this: It doesn't hurt the ecosystem to have more competition and different interests than research. Every single person who says this usually dismisses us for 1 silly reason or another ranging from: 1. Not a "big name" (despite being put in production by a ton of them) 2. Not a lot of research papers (yeah no crap we're not a research framework, we do have publications though!) 3. They see java bindings and can't tell the difference between a full application suite and a tensor lib with java bindings generated by SWIG 4. Usually a PHD student at a university who hasn't worked at a large company and doesn't understand my actual target audience