Skip to content

Latest commit

 

History

History
50 lines (44 loc) · 3.95 KB

File metadata and controls

50 lines (44 loc) · 3.95 KB

Eclipse Deeplearning4j: ND4J NDArray Examples

This project contains a set of examples that demonstrate how to manipulate NDArrays. The functionality of ND4J demonstrated here can be likened to NumPy.

The examples in this project along with a short summary are listed below. This is also the recommended order to explore them in.

Go back to the main repository page to explore other features/functionality of the Eclipse Deeplearning4J ecosystem. File an issue here to request new features.

Quickstart

Advanced

  • MultiClassLogitExample.java Multiclass logistic regression from scratch with ND4J
  • WorkspacesExample.java For cyclic workloads like training a neural net the DL4J ecosystem does not rely on garbage collection. Instead a chunk of memory is resued avoiding the performance hits from expensive pauses for GC. Workspaces are used by default when calling .fit on a neural network etc. This example demonstrates the concepts behind it for advanced users if they need to go beyond what is available by default in the library in their particular use case.
  • Nd4jEx11_Axpy.java Use the ND4J blas wrapper to call the AXPY operation
  • Nd4jEx12_LargeMatrices.java Operations with a 10000000 element NDarray and its transpose
  • Nd4jEx13_Serialization.java Examples for binary and text serialization.
  • Nd4jEx14_Normalizers.java Create and fit a normalizer, and save and restore it.
  • CustomOpsExamples.java Only relevant to the 1.0.0-beta6 release. There are some operations that were implemented in C++ that had not been mapped to Java. This example demonstrates how to access them using ND4J's DynamicCustomOp. As of the beta7 release all maps have corresponding Java mappings.