public class IRPropPlus
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected double[] |
a
Current coefficient array
|
protected int |
epochs
Value of stop condition
|
protected double[] |
error
Output errors
|
protected double |
initialStepSize
Initial Delta for RpropPlus Algorithm
|
protected double |
maximumDelta
Maximum Value for Delta in RpropPlus Algorithm
|
protected double |
minimumDelta
Minimum Value for Delta in RpropPlus Algorithm
|
protected double |
negativeEta
Value of negative Eta
|
protected double |
positiveEta
Value of positive Eta
|
protected boolean[] |
reducedStepSize
Reduced step size array
|
protected double[][] |
x
Input array
|
protected double[][] |
y
Output array
|
Constructor and Description |
---|
IRPropPlus()
Empty constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
configure(Configuration settings) |
double |
getMaximumDelta()
Returns the maximum delta value, that is, the maximum increment or
step size of the corresponding coefficients
|
double |
getMinimumDelta()
Returns the minimum delta value, that is, the minimum increment or
step size of the corresponding coefficients
|
double |
getNegativeEta()
Returns the negative eta value, that is, the increment
of the step size at each ephoc
|
double |
getPositiveEta()
Returns the positive eta value, that is, the increment
of the step size at each epoch
|
boolean[] |
getReducedStepSize()
Returns an array of booleans, indicating which coefficients
have to be treated as more sensible, using reduced step size
for these coefficients
|
IOptimizableFunc |
optimize(IOptimizableFunc function)
One local iRprop plus search in a IOptimizableFunc.
|
void |
setMaximumDelta(double maximumDelta)
Sets the maximum delta value, that is, the maximum increment or
step size of the corresponding coefficients
|
void |
setMinimumDelta(double minimumDelta)
Sets the minimum delta value, that is, the minimum increment or
step size of the corresponding coefficients
|
void |
setNegativeEta(double negativeEta)
Sets the negative eta value, that is, the increment
of the step size at each epoch
|
void |
setPositiveEta(double positiveEta)
Sets the positive eta value, that is, the increment
of the step size at each epoch
|
void |
setReducedStepSize(boolean[] reducedStepSize)
Sets an array of booleans, indicating which coefficients
have to be treated as more sensible, using reduced step size
for these coefficients
|
void |
setTrainingData(DoubleTransposedDataSet trainData)
Sets training data
|
protected double[] |
solve(IOptimizableFunc f)
Apply the iRprop+ over a function that implements the IOptimizableFunc
interface.
|
protected double initialStepSize
protected double minimumDelta
protected double maximumDelta
protected double positiveEta
protected double negativeEta
protected int epochs
protected double[][] x
protected double[][] y
protected double[] error
protected double[] a
protected boolean[] reducedStepSize
public double getMaximumDelta()
Returns the maximum delta value, that is, the maximum increment or step size of the corresponding coefficients
public void setMaximumDelta(double maximumDelta)
Sets the maximum delta value, that is, the maximum increment or step size of the corresponding coefficients
maximumDelta
- New maximum delta value
public double getMinimumDelta()
Returns the minimum delta value, that is, the minimum increment or step size of the corresponding coefficients
public void setMinimumDelta(double minimumDelta)
Sets the minimum delta value, that is, the minimum increment or step size of the corresponding coefficients
minimumDelta
- New minimum delta value
public double getNegativeEta()
Returns the negative eta value, that is, the increment of the step size at each ephoc
public void setNegativeEta(double negativeEta)
Sets the negative eta value, that is, the increment of the step size at each epoch
negativeEta
- New negative eta value
public double getPositiveEta()
Returns the positive eta value, that is, the increment of the step size at each epoch
public void setPositiveEta(double positiveEta)
Sets the positive eta value, that is, the increment of the step size at each epoch
positiveEta
- New positive eta value
public boolean[] getReducedStepSize()
Returns an array of booleans, indicating which coefficients have to be treated as more sensible, using reduced step size for these coefficients
public void setReducedStepSize(boolean[] reducedStepSize)
Sets an array of booleans, indicating which coefficients have to be treated as more sensible, using reduced step size for these coefficients
reducedStepSize
- New reduced step size boolean array
public void setTrainingData(DoubleTransposedDataSet trainData)
Sets training data
trainData
- DoubleTransposedDataSet to be used in training
public IOptimizableFunc optimize(IOptimizableFunc function)
One local iRprop plus search in a IOptimizableFunc.
function
- IOptimizableFunc to operate.protected double[] solve(IOptimizableFunc f)
Apply the iRprop+ over a function that implements the IOptimizableFunc interface.
f
- function to apply the iRprop+ methodpublic void configure(Configuration settings)
settings
- Settings Configuration