Deeplearning4j

Deeplearning4j
Original author(s) Adam Gibson, Chris Nicholson, Josh Patterson
Developer(s) Various
Stable release
0.7.2 / 24 December 2016 (2016-12-24)
Repository github.com/deeplearning4j/deeplearning4j
Development status Active
Written in Java, Scala, CUDA, C, C++, Python, Clojure
Operating system Linux, macOS, Windows, Android
Platform Cross-platform
Available in English
Type Natural language processing, deep learning, machine vision, artificial intelligence
License Apache 2.0
Website deeplearning4j.org

Deeplearning4j is a deep learning programming library written for Java and the Java virtual machine (JVM)[1][2] and a computing framework with wide support for deep learning algorithms.[3] Deeplearning4j includes implementations of the restricted Boltzmann machine, deep belief net, deep autoencoder, stacked denoising autoencoder and recursive neural tensor network, word2vec, doc2vec, and GloVe. These algorithms all include distributed parallel versions that integrate with Apache Hadoop and Spark.[4]

Deeplearning4j is open-source software released under Apache License 2.0,[5] developed mainly by a machine learning group in San Francisco led by Adam Gibson.[6][7] It is supported commercially by the startup Skymind.

Introduction

Deeplearning4j relies on the widely used programming language, Java, though it is compatible with Clojure and includes a Scala application programming interface (API). It is powered by its own open-source numerical computing library, ND4J, and works with both central processing units (CPUs) and graphics processing units (GPUs).[8][9]

Deeplearning4j has been used in several commercial and academic applications. The code is hosted on GitHub.[10] A support forum is maintained on Gitter.[11]

The framework is composable, meaning shallow neural nets such as restricted Boltzmann machines, convolutional nets, autoencoders, and recurrent nets can be added to one another to create deep nets of varying types. It also has extensive visualization tools,[12] and a computation graph.[13]

Distributed

Training with Deeplearning4j occurs in a cluster. Neural nets are trained in parallel via iterative reduce, which works on Hadoop-YARN and on Spark.[6][14] Deeplearning4j also integrates with CUDA kernels to conduct pure GPU operations, and works with distributed GPUs.

Scientific computing for the JVM

Deeplearning4j includes an n-dimensional array class using ND4J that allows scientific computing in Java and Scala, similar to the functions that NumPy provides to Python. It's effectively based on a library for linear algebra and matrix manipulation in a production environment.

DataVec vectorization library for machine-learning

DataVec vectorizes various file formats and data types using an input/output format system similar to Hadoop's use of MapReduce; that is, it turns various data types into columns of scalars termed vectors. DataVec is designed to vectorize CSVs, images, sound, text, video, and time series.[15][16]

Text and NLP

Deeplearning4j includes a vector space modeling and topic modeling toolkit, implemented in Java and integrating with parallel GPUs for performance. It is designed to handle large text sets.

Deeplearning4j includes implementations of term frequency–inverse document frequency (tf–idf), deep learning, and Mikolov's word2vec algorithm,[17] doc2vec, and GloVe, reimplemented and optimized in Java. It relies on t-distributed stochastic neighbor embedding (t-SNE) for word-cloud visualizations.

Real-world use cases and integrations

Real-world use cases for Deeplearning4j include network intrusion detection and cybersecurity, fraud detection for the financial sector,[18][19] anomaly detection in industries such as manufacturing, recommender systems in e-commerce and advertising,[20] and image recognition.[21] Deeplearning4j has integrated with other machine-learning platforms such as RapidMiner, Prediction.io,[22] and Weka.[23]

Benchmarks

Deeplearning4j is as fast as Caffe for non-trivial image recognition tasks using multiple GPUs.[24] For programmers unfamiliar with HPC on the JVM, there are several parameters that must be adjusted to optimize neural network training time. These include setting the heap space, the garbage collection algorithm, employing off-heap memory and pre-saving data (pickling) for faster ETL.[25] Together, these optimizations can lead to a 10x acceleration in performance with Deeplearning4j.

API Languages: Java, Scala, Python and Clojure

Deeplearning4j can be used via multiple API languages including Java, Scala, Python and Clojure. Its Scala API is called ScalNet.[26] Keras serves as its Python API.[27] And its Clojure wrapper is known as DL4CLJ.[28] The core languages performing the large-scale mathematical operations necessary for deep learning are C, C++ and CUDA C.

See also

References

  1. Metz, Cade (2014-06-02). "The Mission to Bring Google's AI to the Rest of the World". Wired.com. Retrieved 2014-06-28.
  2. Vance, Ashlee (2014-06-03). "Deep Learning for (Some of) the People". Bloomberg Businessweek. Retrieved 2014-06-28.
  3. Novet, Jordan (2015-11-14). "Want an open-source deep learning framework? Take your pick". VentureBeat. Retrieved 2015-11-24.
  4. TV, Functional (2015-02-12). "Adam Gibson, DeepLearning4j on Spark and Data Science on JVM with nd4j, SF Spark @Galvanize 20150212". SF Spark Meetup. Retrieved 2015-03-01.
  5. "Github Repository".
  6. 1 2 "deeplearning4j.org".
  7. "Crunchbase Profile".
  8. Harris, Derrick (2014-06-02). "A startup called Skymind launches, pushing open source deep learning". GigaOM.com. Retrieved 2014-06-29.
  9. Novet, Jordan (2014-06-02). "Skymind launches with open-source, plug-and-play deep learning features for your app". Retrieved 2014-06-29.
  10. Deeplearning4j source code
  11. Deeplearning4j Gitter Support Channel
  12. Deeplearning4j Visualization Tools
  13. Deeplearning4j Computation Graph
  14. "Iterative reduce".
  15. DataVec ETL for Machine Learning
  16. Anomaly Detection for Time Series Data with Deep Learning
  17. word2vec
  18. http://www.skymind.io/finance/
  19. https://skymind.ai/bsa-aml
  20. http://www.skymind.io/commerce/
  21. https://skymind.ai/image
  22. https://www.rapidminerchina.com/en/products/shop/product/deeplearning4j/
  23. http://weka.sourceforge.net/doc.packages/wekaDeeplearning4j/
  24. https://github.com/deeplearning4j/dl4j-benchmark
  25. https://deeplearning4j.org/benchmark
  26. https://deeplearning4j.org/scala
  27. https://deeplearning4j.org/keras
  28. https://deeplearning4j.org/clojure
This article is issued from Wikipedia. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.