Learn R Programming

ELMR (version 1.0)

OSelm_train.formula: Trains an extreme learning machine with random weights

Description

Trains an extreme learning machine with random weights

Usage

OSelm_train.formula(formula, data, Elm_type, nHiddenNeurons, ActivationFunction, N0, Block)

Arguments

formula
a symbolic description of the model to be fitted.
data
training data frame containing the variables specified in formula.
Elm_type
select if the ELM must perform a "regression" or "classification"
nHiddenNeurons
number of neurons in the hidden layer
ActivationFunction
"rbf" for radial basis function with Gaussian kernels , "sig" for sigmoidal fucntion, "sin" for sine function, "hardlim" for hard limit function
N0
size of the first block to be processed
Block
size of each chunk to be processed at each step

Value

returns all the parameters used in the function, the weight matrix, the labels for the classification, the number of classes found, the bias, the beta activation function and the accuracy on the trainingset