org.joone.engine
Class ContextLayer
- java.lang.Object
-
- org.joone.engine.Layer
-
- org.joone.engine.SimpleLayer
-
- org.joone.engine.ContextLayer
-
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Runnable, Learnable, LearnableLayer, NeuralLayer, Inspectable
public class ContextLayer extends SimpleLayer
The context layer is similar to the linear layer except that it has an auto-recurrent connection between its output and input.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description ContextLayer()ContextLayer(java.lang.String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidbackward(double[] pattern)Reverse transfer function of the component.voidforward(double[] pattern)Transfer function to recall a result on a trained netdoublegetBeta()Getter for property beta.doublegetTimeConstant()Getter for property timeConstant.java.util.CollectionInspections()It doesn't make sense to return biases for this layervoidsetBeta(double beta)Setter for property beta.voidsetTimeConstant(double timeConstant)Setter for property timeConstant.-
Methods inherited from class org.joone.engine.SimpleLayer
getLearningRate, getLrate, getMomentum, setLrate, setMomentum, setMonitor
-
Methods inherited from class org.joone.engine.Layer
addInputSynapse, addNoise, addOutputSynapse, check, copyInto, finalize, fwdRun, getAllInputs, getAllOutputs, getBias, getDimension, getLastOutputs, getLayerName, getLearner, getMonitor, getRows, hasStepCounter, init, initLearner, InspectableTitle, isInputLayer, isOutputLayer, isRunning, join, randomize, removeAllInputs, removeAllOutputs, removeInputSynapse, removeOutputSynapse, revRun, run, setAllInputs, setAllOutputs, setBias, setInputSynapses, setLayerName, setOutputSynapses, setRows, start, stop, toString
-
-
-
-
Constructor Detail
-
ContextLayer
public ContextLayer()
-
ContextLayer
public ContextLayer(java.lang.String name)
-
-
Method Detail
-
backward
public void backward(double[] pattern)
Description copied from class:LayerReverse transfer function of the component.- Parameters:
pattern- input pattern on which to apply the transfer function
-
forward
public void forward(double[] pattern)
Description copied from class:LayerTransfer function to recall a result on a trained net- Parameters:
pattern- input pattern to which to apply the rtransfer function
-
getBeta
public double getBeta()
Getter for property beta.- Returns:
- Value of property beta.
-
setBeta
public void setBeta(double beta)
Setter for property beta.- Parameters:
beta- New value of property beta.
-
getTimeConstant
public double getTimeConstant()
Getter for property timeConstant.- Returns:
- Value of property timeConstant.
-
setTimeConstant
public void setTimeConstant(double timeConstant)
Setter for property timeConstant.- Parameters:
timeConstant- New value of property timeConstant.
-
Inspections
public java.util.Collection Inspections()
It doesn't make sense to return biases for this layer- Specified by:
Inspectionsin interfaceInspectable- Overrides:
Inspectionsin classLayer- Returns:
- null
- See Also:
org.joone.Inspection
-
-
DataMelt 3.0 © DataMelt by jWork.ORG