Code Monkey home page Code Monkey logo

elm-pytorch's Introduction

ELM-pytorch

Extreme Learning Machine (ELM) implemented in Pytorch.

It's MNIST tutorial with basic ELM algorithm, Online Sequential ELM (OS-ELM), and Convolutional ELM.

You can run the code using cpu or gpu mode.

Requirements

  • Python 3.5+
  • Pytorch 0.3.1+

Extreme Learning Machine

Usage:

cd mnist

GPU mode: python main_ELM.py

CPU mode: python main_ELM.py --no-cuda

The training was completed in 2.0sec and the accuracy reached 97.77%. (Geforce GTX1080Ti 11GB, #hidden neurons=7000)

In CPU mode, the training was completed in 26.92sec and the accuracy was the same. (intel Core i7-6700K CPU 4.00GHz x 8 64GB RAM, #hidden neurons=7000)

If you do not have enough memory for the training process, reduce the number of hidden neurons and try again.

Online Sequential Extreme Learning Machine

Usage:

cd mnist

GPU mode: python main_ELM.py

CPU mode: python main_ELM.py --no-cuda

The training was completed in 10.0sec and the accuracy reached 97.77%. (Geforce GTX1080Ti 11GB, #hidden neurons=7000, batch_size=1000)

In CPU mode, the training was completed in 100.92sec and the accuracy was the same. (intel Core i7-6700K CPU 4.00GHz x 8 64GB RAM, #hidden neurons=7000, batch_size=1000)

If you do not have enough memory for the training process, reduce the number of hidden neurons and try again.

Convolutional Extreme Learning Machine

Usage:

cd mnist

GPU mode: python main_CNNELM.py

CPU mode: python main_CNNELM.py --no-cuda

The training was completed in 7.2sec and the accuracy reached 98.01%. (Geforce GTX1080Ti 11GB, the code used almost all RAM.)

Network configuration

ConvLayer1: kernel_size=5, #channel=10, padding=1 PoolLayer1: kernel_size=2 ReluLayer1: ConvLayer2: kernel_size=4, #channel=80, padding=1 PoolLayer2: kernel_size=2 ReluLayer2: FCLayer:

In CPU mode, the training was completed in 177.92sec and the accuracy was 98.80%. (intel Core i7-6700K CPU 4.00GHz x 8 64GB RAM, the code used almost all RAM.)

Network configuration

ConvLayer1: kernel_size=5, #channel=10, padding=1 PoolLayer1: kernel_size=2 ReluLayer1: ConvLayer2: kernel_size=4, #channel=450, padding=1 PoolLayer2: kernel_size=2 ReluLayer2: FCLayer:

If you do not have enough memory for the training process, reduce the number of hidden neurons and try again.

elm-pytorch's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

elm-pytorch's Issues

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.