org.joone.engine.learning
Class FahlmanTeacherSynapse
- java.lang.Object
-
- org.joone.engine.Synapse
-
- org.joone.engine.learning.AbstractTeacherSynapse
-
- org.joone.engine.learning.TeacherSynapse
-
- org.joone.engine.learning.FahlmanTeacherSynapse
-
- All Implemented Interfaces:
- java.io.Serializable, InputPatternListener, Learnable, LearnableSynapse, NeuralElement, OutputPatternListener, Inspectable
public class FahlmanTeacherSynapse extends TeacherSynapse
This class extends the normal Teacher synapse and implements the Fahlman 40-20-40 criterion (the values can be changed). This teacher makes only sense in case of binary outputs.
In case of the default values (40-20-40) and considering [0,1] binary outputs the criterion is fullfilled if for all patterns the output is - within [0, 0.4] in case the desired output is 0 - within [0.6, 1] in case the desired output is 1.
More about this criterion can be found at
http://citeseer.ist.psu.edu/fahlman88empirical.html.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field and Description static java.lang.StringCRITERIONConstant to indicate (key) the parameter for checking (in the monitor object) if the criterion has been forfilled or not.
-
Constructor Summary
Constructors Constructor and Description FahlmanTeacherSynapse()Creates a new instance of FahlmanTeacherSynapse
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description doublegetLowerBit()Gets the lower bit value.doublegetLowerBitPercentage()Gets the lower bit percentage.doublegetUpperBit()Gets the upper bit value.doublegetUpperBitPercentage()Gets the upper bit percentage.voidsetLowerBit(double aValue)Sets the lower bit.voidsetLowerBitPercentage(double aValue)Sets the lower bit percentage.voidsetUpperBit(double aValue)Sets the upper bit.voidsetUpperBitPercentage(double aValue)Sets the upper bit percentage.-
Methods inherited from class org.joone.engine.learning.TeacherSynapse
fwdPut
-
Methods inherited from class org.joone.engine.learning.AbstractTeacherSynapse
check, fwdGet, getDesired, init, netStoppedError, reset, resetInput, revGet, revPut, setDesired, setInputDimension, setMonitor
-
Methods inherited from class org.joone.engine.Synapse
addNoise, canCountSteps, getIgnoreBefore, getInputDimension, getLearner, getLearningRate, getMomentum, getMonitor, getName, getOutputDimension, getWeights, initLearner, InspectableTitle, Inspections, isEnabled, isInputFull, isLoopBack, isOutputFull, randomize, setEnabled, setIgnoreBefore, setInputFull, setLearningRate, setLoopBack, setMomentum, setName, setOutputDimension, setOutputFull, setWeights
-
-
-
-
Field Detail
-
CRITERION
public static final java.lang.String CRITERION
Constant to indicate (key) the parameter for checking (in the monitor object) if the criterion has been forfilled or not.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
FahlmanTeacherSynapse
public FahlmanTeacherSynapse()
Creates a new instance of FahlmanTeacherSynapse
-
-
Method Detail
-
setUpperBit
public void setUpperBit(double aValue)
Sets the upper bit.- Parameters:
aValue- sets the upper bit toaValue.
-
getUpperBit
public double getUpperBit()
Gets the upper bit value.- Returns:
- the upper bit value.
-
setLowerBit
public void setLowerBit(double aValue)
Sets the lower bit.- Parameters:
aValue- sets the lower bit toaValue.
-
getLowerBit
public double getLowerBit()
Gets the lower bit value.- Returns:
- the lower bit value.
-
setUpperBitPercentage
public void setUpperBitPercentage(double aValue)
Sets the upper bit percentage.- Parameters:
aValue- sets the upper bit percentage toaValue.
-
getUpperBitPercentage
public double getUpperBitPercentage()
Gets the upper bit percentage.- Returns:
- the upper bit percentage.
-
setLowerBitPercentage
public void setLowerBitPercentage(double aValue)
Sets the lower bit percentage.- Parameters:
aValue- sets the lower bit percentage toaValue.
-
getLowerBitPercentage
public double getLowerBitPercentage()
Gets the lower bit percentage.- Returns:
- the lower bit percentage.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG