public abstract class AbstractSigmoidalRule extends NeuronUpdateRule implements BiasedUpdateRule, DifferentiableUpdateRule, InvertibleUpdateRule, BoundedUpdateRule, NoisyUpdateRule
NeuronUpdateRule.InputType
Modifier and Type | Field and Description |
---|---|
protected boolean |
addNoise
Adds noise to neuron.
|
protected double |
bias
Bias.
|
static double |
DEFAULT_LOWER_BOUND
The Default lower bound.
|
static SquashingFunction |
DEFAULT_SQUASHING_FUNCTION
The default squashing function, informs the default upper and lower
bounds.
|
static double |
DEFAULT_UPPER_BOUND
The Default upper bound.
|
protected double |
lowerBound
The lower bound of the activity if clipping is used.
|
protected Randomizer |
noiseGenerator
Noise dialog.
|
protected SquashingFunction |
sFunction
Current implementation.
|
protected double |
slope
Slope.
|
protected double |
upperBound
The upper bound of the activity if clipping is used.
|
DEFAULT_INCREMENT, increment, inputType
Constructor and Description |
---|
AbstractSigmoidalRule() |
AbstractSigmoidalRule(SquashingFunction sFunction) |
Modifier and Type | Method and Description |
---|---|
boolean |
getAddNoise()
Return true if add noise is turned on.
|
double |
getBias() |
double |
getInverse(double val)
The inverse of the activation function.
|
double |
getLowerBound()
Returns the lower bound.
|
Randomizer |
getNoiseGenerator()
Return the noise generator.
|
double |
getSlope() |
SquashingFunction |
getSquashFunctionType() |
double |
getUpperBound()
Returns the upper bound.
|
void |
setAddNoise(boolean addNoise)
Set whether noise should be used.
|
void |
setBias(double inflectionY) |
void |
setLowerBound(double floor)
Sets the lower bound of this neuron update rule's activation.
|
void |
setNoiseGenerator(Randomizer noise)
Set the noise generator.
|
void |
setSlope(double inflectionPointSlope) |
void |
setSquashFunctionType(SquashingFunction type) |
void |
setUpperBound(double ceiling)
Sets the upper bound of this neuron update rule's activation.
|
clear, contextualDecrement, contextualIncrement, decrementActivation, deepCopy, getDefaultIncrement, getDescription, getGraphicalLowerBound, getGraphicalUpperBound, getIncrement, getInputType, getRandomValue, getTimeType, getToolTipText, incrementActivation, isSkipsSynapticUpdates, isSpikingNeuron, setIncrement, setInputType, update
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDerivative
public static final SquashingFunction DEFAULT_SQUASHING_FUNCTION
public static final double DEFAULT_UPPER_BOUND
public static final double DEFAULT_LOWER_BOUND
protected SquashingFunction sFunction
protected double bias
protected double slope
protected Randomizer noiseGenerator
protected boolean addNoise
protected double upperBound
protected double lowerBound
public AbstractSigmoidalRule()
public AbstractSigmoidalRule(SquashingFunction sFunction)
sFunction
- public SquashingFunction getSquashFunctionType()
public void setSquashFunctionType(SquashingFunction type)
type
- the type to setpublic double getSlope()
public void setSlope(double inflectionPointSlope)
inflectionPointSlope
- The inflectionPointSlope to set.public Randomizer getNoiseGenerator()
NoisyUpdateRule
getNoiseGenerator
in interface NoisyUpdateRule
public void setNoiseGenerator(Randomizer noise)
NoisyUpdateRule
setNoiseGenerator
in interface NoisyUpdateRule
noise
- The noise to set.public boolean getAddNoise()
NoisyUpdateRule
getAddNoise
in interface NoisyUpdateRule
public void setAddNoise(boolean addNoise)
NoisyUpdateRule
setAddNoise
in interface NoisyUpdateRule
addNoise
- The addNoise to set.public double getUpperBound()
getUpperBound
in interface BoundedUpdateRule
public double getLowerBound()
getLowerBound
in interface BoundedUpdateRule
public void setUpperBound(double ceiling)
setUpperBound
in interface BoundedUpdateRule
ceiling
- the upper boundpublic void setLowerBound(double floor)
setLowerBound
in interface BoundedUpdateRule
floor
- the lower boundpublic double getInverse(double val)
getInverse
in interface InvertibleUpdateRule
val
- the value being sent through the neuron's inverse activation
functionpublic double getBias()
getBias
in interface BiasedUpdateRule
public void setBias(double inflectionY)
setBias
in interface BiasedUpdateRule
inflectionY
- The inflectionY to set.