org.joone.engine
Class LinearLayer
- java.lang.Object
-
- org.joone.engine.Layer
-
- org.joone.engine.SimpleLayer
-
- org.joone.engine.LinearLayer
-
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Runnable, Learnable, LearnableLayer, NeuralLayer, Inspectable
- Direct Known Subclasses:
- SoftmaxLayer
public class LinearLayer extends SimpleLayer
The output of a linear layer neuron is the sum of the weighted input values, scaled by the beta parameter. No transfer function is applied to limit the output value- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description LinearLayer()The constructorLinearLayer(java.lang.String ElemName)The constructor
-
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()Returns the value of the beta parameterjava.util.CollectionInspections()It doesn't make sense to return biases for this layervoidsetBeta(double newBeta)Sets the beta value-
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
-
LinearLayer
public LinearLayer()
The constructor
-
LinearLayer
public LinearLayer(java.lang.String ElemName)
The constructor- Parameters:
ElemName- The name of the Layer
-
-
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()
Returns the value of the beta parameter- Returns:
- double - The beta parameter
-
setBeta
public void setBeta(double newBeta)
Sets the beta value- Parameters:
newBeta- double
-
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