public class Operator 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 |
|---|
Operator(mikera.vectorz.Op op,
int length) |
| Modifier and Type | Method and Description |
|---|---|
Operator |
clone()
Creates a clone of a module, including a deep copy of any mutable state.
|
LossFunction |
getDefaultLossFunction()
Returns the default loss function that should be used
|
mikera.vectorz.Vector |
getInput() |
mikera.vectorz.Vector |
getInputGradient() |
IInputState |
getInputState() |
mikera.vectorz.Vector |
getOutput() |
mikera.vectorz.Vector |
getOutputGradient() |
boolean |
hasDifferentTrainingThinking() |
boolean |
isStochastic() |
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, getDownStack, getLearnFactor, getModules, getParameterLength, getUpStack, initRandom, isSynthesiser, 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 LossFunction getDefaultLossFunction()
IComponentgetDefaultLossFunction in interface IComponentgetDefaultLossFunction in class AComponentpublic void trainGradientInternal(double factor)
AComponenttrainGradientInternal in interface IComponenttrainGradientInternal in class AComponentpublic Operator clone()
IModuleclone in interface IComponentclone in interface IModuleclone in interface IParameterisedclone in interface ISynthesiserclone in interface IThinkerclone in interface ITrainableclone in class AOperationComponentpublic boolean isStochastic()
isStochastic in interface IComponentisStochastic in class AComponentpublic boolean hasDifferentTrainingThinking()
public 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.