Git Product home page Git Product logo

extremenn's Introduction

[toc]

This is a draft implementation of Extreme Learning Machine in R. You can do bi-classification or multiple classification using elm_linear or elm_kernel.

Example

Linear ELM

  1. Training Process

    r = elmTrain(X, Y, L = 2000, C = 300)
    Variable Explanation
    X the data matrix in training set
    Y the labels from 1...N in testing set
    C Penalty Parameter
    L Number of hidden Layer

elmTrain will return a list r with the following:

|Result|Explanation|
|---|---|
|trainPred|the prediction of training set|
|confusion|the training confusion matrix|
|OutputWeight|OutputWeight to be used in `elmTest`|
|InputWeight| InputWeight to be used in `elmTest`|
|BiasofHiddenNeutrons|Biased Matrix to be used in `elmTest`|
|time|Time used|
  1. Testing Process

    rr = elmTest(Xt, Yt, L = 2000, 
    	InputWeight = r$InputWeight, 
    	OutputWeight = r$OutputWeight, 
    	BiasofHiddenNeutrons = r$BiasofHiddenNeutrons)
    Variable Explanation
    Xt the data matrix in the testing set
    Yt the label in the testing set
    L Number of the hidden layer
    InputWeight generated by elmTrain
    OutputWeight generated by elmTrain
    BiasofHiddenNeutrons generated by elmTrain

    elmTest will return a list r with the following:

    Result Explanation
    testPred the prediction of training set
    confusion the testing confusion matrix
    time Time used

The activate function used is sigmoid More activate functions to come!

Kernel ELM

  1. Training Process

    r = elmTrain(X, Y, kernel_par = 1000, C = 200)
    Variable Explanation
    X the data matrix in training set
    Y the labels from 1...N in testing set
    Kernel_par Kernel Parameter used in rbfkernel
    C Penalty parameter

elmTrain will return the following: |Result|Explanation| |---|---| |trainPred|the prediction of training set| |confusion|the training confusion matrix| |OutputWeight|OutputWeight to be used in elmTest| |time|Time used|

  1. Testing Process
    rr = elmTest(X, Xt, Yt, kernel_para, r$OutputWeight)
    Variable Explanation
    X the data matrix in the training set
    Xt the data matrix in the testing set
    Yt the label in the testing set
    Kernel_par Kernel Parameter used in rbfkernel
    OutputWeight generated by elmTrain

elmTrain will return the following: |Result|Explanation| |---|---| |testPred|the prediction of testing set| |confusion|the testing confusion matrix| |time|Time used|

The kernel used is rbfkernel with more kernels to come!

Reference

  1. extreme learning machine
  2. Comparison among SVM, LS-SVM, PSVM, ELM

extremenn's People

Contributors

yinsenm avatar

Watchers

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