GithubHelp home page GithubHelp logo

sparknndl's Introduction

CNN on Spark

This is a generalised CNN(convolutional neural network) model implemented on Spark-scala. The model is abstracted down to layer models which contains models like CL(Convolutional layer), SL(subsampling layer), FL(fully-connected layer) and OL(Output layer). You can build up your own network architecture according to your need.

package structure:
./report.doc: Project report on detail methodologies and implementations
./model: successfully trained LeNet5
----+mlpmodel: trained mlp model
----+localmodel: trained local model, sigmoid activated, 4 iterations, err<2%
----+batch50: trained cluster model, use model of 1 round local training, totally 5 iterations, err<3%
./src: source code of the package:
----+CNNLayer
----+layer.scala: generalized layer model with useful LA utilities (with learning rate and momentum)
----+CL.scala: convolutional layer (sigmoid activation, easy to extend in tanh or arctan)
----+SL.scala: subsampling layer (mean sampling, easy to extend to max/min sampling)
----+FL.scala: fully connected layer
----+OL.scala: extends FL, for output (sigmoid activation, trying to extend in softmax)
----+CNNNet
----+CNN.scala: well encapsulated LeNet5 model
----+MLP.scala: well encapsulated multi-layer-perceptron model using CNNLayer
----+NNFM
----deprecated, stand alone experiment for Neural network in functional programming
----+NNOO
----deprecated, stand alone experiment for Neural Network in OO programming
----+TestCase
----+CNNClassifier
----+cnnBatchTrain.scala: batch training of cnn
----+cnnLocalTrain.scala: local model(single node) training of cnn
----+cnnclassify.scala: feedforward operation of cnn
----+cnntrain.scala: mixed training for cnn
----+CNNCorrectnesss
----+deprecated, for testing
----+mlp
----+mlpclassify.scala
----+mlptrain.scala
Use language:
Spark (scala api)
Based on theory:
Convolutional neural network trained with back propagation algorithm using gradient descent (parameter: learning rate and momentum).
Global training setting: batch training size, training mode(update weight when classification is wrong or not?)
Supervised by:
Dr.Eric Lo, Hong Kong PolyU

sparknndl's People

Contributors

philipgeng avatar

Watchers

 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.