public class Identity extends AOperationComponent
| Modifier and Type | Field and Description |
|---|---|
protected mikera.vectorz.Vector |
input |
protected mikera.vectorz.Vector |
inputGradient |
protected mikera.vectorz.Vector |
output |
protected mikera.vectorz.Vector |
outputGradient |
length| Constructor and Description |
|---|
Identity(int length) |
| Modifier and Type | Method and Description |
|---|---|
AOperationComponent |
clone()
Creates a clone of a module, including a deep copy of any mutable state.
|
IComponent |
getDownStack() |
mikera.vectorz.Vector |
getInput() |
mikera.vectorz.Vector |
getInputGradient() |
IInputState |
getInputState() |
mikera.vectorz.Vector |
getOutput() |
mikera.vectorz.Vector |
getOutputGradient() |
boolean |
hasDifferentTrainingThinking() |
boolean |
isSynthesiser() |
void |
setInput(mikera.vectorz.AVector input) |
void |
thinkInternal()
Thinks within the scope of the component.
|
void |
trainGradientInternal(double factor)
Abstract method for training gradients.
|
getComponents, getGradient, getInputLength, getOutputLength, getParametersapplyConstraints, applyConstraintsInternal, generate, generate, getComponent, getConstraints, getDefaultLossFunction, getLearnFactor, getModules, getParameterLength, getUpStack, initRandom, isStochastic, iterator, setConstraint, setLearnFactor, setOutput, think, think, thinkInternalTraining, topComponent, train, train, trainSynth, trainSynthprotected final mikera.vectorz.Vector input
protected final mikera.vectorz.Vector inputGradient
protected final mikera.vectorz.Vector output
protected final mikera.vectorz.Vector outputGradient
public void thinkInternal()
IComponentpublic boolean hasDifferentTrainingThinking()
public AOperationComponent clone()
IModuleclone in interface IComponentclone in interface IModuleclone in interface IParameterisedclone in interface ISynthesiserclone in interface IThinkerclone in interface ITrainableclone in class AOperationComponentpublic IComponent getDownStack()
getDownStack in interface ISynthesisergetDownStack in class AComponentpublic boolean isSynthesiser()
isSynthesiser in interface IComponentisSynthesiser in class AComponentpublic void trainGradientInternal(double factor)
AComponenttrainGradientInternal in interface IComponenttrainGradientInternal in class AComponentpublic IInputState getInputState()
getInputState in interface IComponentgetInputState in class AComponentpublic mikera.vectorz.Vector getInput()
public mikera.vectorz.Vector getOutput()
public mikera.vectorz.Vector getOutputGradient()
public void setInput(mikera.vectorz.AVector input)
setInput in interface IInputStatesetInput in class AComponentpublic mikera.vectorz.Vector getInputGradient()
Copyright © 2013. All Rights Reserved.