GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - deepspark/deepspark_java: Java based Convolutional Neural Network package running on Apache Spark framework

BranchesTags
Open more actions menu

Latest commit

 

History

279 Commits
279 Commits

Folders and files

NameName
Last commit message
Last commit date
.settings
.settings
 
 
lib
lib
 
 
src
src
 
 
.classpath
.classpath
 
 
.gitignore
.gitignore
 
 
.project
.project
 
 
README.md
README.md
 
 
deepspark.iml
deepspark.iml
 
 
dependency-reduced-pom.xml
dependency-reduced-pom.xml
 
 
pom.xml
pom.xml
 
 

Repository files navigation

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).

About

Java based Convolutional Neural Network package running on Apache Spark framework

Topics

apache-sparkcnnconvolutional-neural-networksdeep-learningdeep-neural-networksdeepspark-javadistributed-deep-learningdistributed-machine-learningjavajblasjcublassparkspark-framework

Resources

Readme
Activity
Custom properties

Stars

4 stars

Watchers

1 watching

Forks

6 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.