public class RProp extends Object
Constructor and Description |
---|
RProp()
Constructor, uses default learning rate of 0.1, increase parameter 1.2
and decrease parameter 0.5 as proposed in the paper.
|
RProp(double etaPlus,
double etaMinus,
double etaNull) |
Modifier and Type | Method and Description |
---|---|
double[] |
evaluate(double[] in)
Evaluates input and returns output of output neurons.
|
double |
getEtaMinus()
Get negative learning rate.
|
double |
getEtaNull()
Get starting value for eta.
|
double |
getEtaPlus()
Get positive learning rate.
|
void |
setEtaMinus(double etaMinus)
Set negative learning rate.
|
void |
setEtaNull(double etaNull)
set starting value for eta.
|
void |
setEtaPlus(double etaPlus)
Set positive learning rate.
|
static double |
sgn(double d)
Method computes the sign of a double number.
|
void |
train(MultiLayerPerceptron nn,
Double[][] samples,
Double[][] outputs)
Train the neural network once.
|
public RProp()
public RProp(double etaPlus, double etaMinus, double etaNull)
etaPlus
- increase parameteretaMinus
- decrease parameteretaNull
- initial learning ratepublic void train(MultiLayerPerceptron nn, Double[][] samples, Double[][] outputs)
nn
- neural net to trainsamples
- the samplesoutputs
- the desired outputs for these samplespublic static double sgn(double d)
d
- the numberpublic double getEtaMinus()
public double getEtaPlus()
public void setEtaMinus(double etaMinus)
etaMinus
- new negative learning ratepublic void setEtaPlus(double etaPlus)
etaPlus
- new positive learning ratepublic double getEtaNull()
public void setEtaNull(double etaNull)
etaNull
- new starting valuepublic double[] evaluate(double[] in)
in
- input for the net
KNIME GmbH, Konstanz, Germany
You may not modify, publish, transmit, transfer or sell, reproduce, create derivative works from, distribute, perform, display, or in any way exploit any of the content, in whole or in part, except as otherwise expressly permitted in writing by the copyright owner or as specified in the license file distributed with this product.