public class Operator extends AComponent
| Constructor and Description |
|---|
Operator(mikera.vectorz.Op op,
int inputLength) |
| Modifier and Type | Method and Description |
|---|---|
Operator |
clone()
Creates a clone of a module, including a deep copy of any mutable state.
|
List<IComponent> |
getComponents() |
mikera.vectorz.AVector |
getGradient()
Return an AVector referencing the accumulated gradient in this model
|
mikera.vectorz.Vector |
getInput() |
mikera.vectorz.Vector |
getInputGradient() |
int |
getInputLength() |
IInputState |
getInputState() |
mikera.vectorz.Vector |
getOutput() |
mikera.vectorz.Vector |
getOutputGradient() |
int |
getOutputLength() |
mikera.vectorz.AVector |
getParameters()
Return an AVector referring to the parameters in the model.
|
boolean |
isStochastic() |
void |
setInput(mikera.vectorz.AVector input) |
void |
thinkInternal()
Thinks within the scope of the component.
|
void |
trainGradient(mikera.vectorz.AVector gradient,
double factor)
Trains with a output gradient, incrementing inputGradient and
accumulated gradient for parameters.
|
void |
trainGradientInternal(double factor) |
getComponent, getModules, getParameterLength, setOutput, think, think, thinkInternalTraining, topComponent, train, trainpublic void thinkInternal()
IComponentpublic void trainGradient(mikera.vectorz.AVector gradient,
double factor)
IGradientTrainablefactor - TODOpublic void trainGradientInternal(double factor)
public List<IComponent> getComponents()
public int getOutputLength()
getOutputLength in interface IOutputgetOutputLength in class AComponentpublic mikera.vectorz.AVector getGradient()
IParameterisedpublic mikera.vectorz.AVector getParameters()
IParameterisedpublic Operator clone()
IModuleclone in interface IComponentclone in interface IModuleclone in interface IParameterisedclone in interface IThinkerclone in interface ITrainableclone in class AComponentpublic int getInputLength()
getInputLength in interface IInputgetInputLength in class AComponentpublic boolean isStochastic()
isStochastic in interface IComponentisStochastic 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.