GithubHelp home page GithubHelp logo

parazit-ir / deepspark_java Goto Github PK

View Code? Open in Web Editor NEW

This project forked from deepspark/deepspark_java

0.0 0.0 0.0 3.83 MB

Java based Convolutional Neural Network package running on Apache Spark framework

Java 100.00%

deepspark_java's Introduction

DeepSpark_java

Java Convolutional Neural Network (CNN) package combined with Apache Spark framework

DeepSpark_java is an early version of ongoing DeepSpark project (https://github.com/deepspark/deepspark) implemented in pure java and jBlas. It provides GPU Acceleration using jCublas. (gpuAccel option)

DeepSpark_java also supports local training running on single machine and distributed (sync & async) training aided by Apache Spark (http://spark.apache.org/)

USAGE INSTRUCTIONS

Data format

Class Description
Tensor Base class for Tensor. Implemented using jBlas
Weight Class for representing Network parameters
Sample Class for representing Data container

Weight and Sample class are implemented using Tensor.

To load custom dataset, users should create own data loader to be compatible with Sample .

We provide built-in Mnist/CIFAR/ImageNet loader (See examples on src/main/java/org/acl/deepspark/utils/)

Layer format

Layer Description
Layer Base interface for layers
BaseLayer Abstract class implementing Layer interface
ConvolutionLayer Convolutional layer
PoolingLayer Pooling (subsampling) layer
FullyConnectedLayer Normal fully connected layer

Users should define LayerConf to specify layer details (LayerType, kernel width/height, stride, padding etc.)

To add more options, check on src/main/java/org/acl/deepspark/nn/conf/LayerConf

Training

Layer Description
NeuralNet Class for representing overall Network.
Provides methods for initializing, training and inference
NeuralNetRunner Runner of NeuralNet on local machine
DistNeuralNetRunner Runner of NeuralNet in synchronous distributed setting
DistAsyncNeuralNetRunner Runner of NeuralNet in asynchronous distributed setting

Users should define NeuralNetConf to specify training details (lr, l2_lambda, momentum, gpuAccel etc.)

To add more options, check on src/main/java/org/acl/deepspark/nn/conf/NeuralNetConf

For asynchronous update, simple ParameterServer/Client class are implemented. Check on src/main/java/org/acl/deepspark/nn/async

Examples

For actual usage code, see examples on src/test/java/org/acl/deepspark/nn/driver

Type Path
Single Machine MnistTest.java / CIFARTest.java
Distributed (sync) SyncMnistTest.java
Distributed (async) AsyncMnistTest.java

DeepSpark_results DeepSpark_speedup

Publications

Kim, Hanjoo, Jaehong Park, Jaehee Jang, and Sungroh Yoon. "DeepSpark: Spark-Based Deep Learning Supporting Asynchronous Updates and Caffe Compatibility." arXiv preprint arXiv:1602.08191 (2016).

deepspark_java's People

Contributors

jayparks avatar kprotoss avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.