public class Stack extends ACompoundComponent
componentCount, components, gradient, parameters| Constructor and Description |
|---|
Stack(List<? extends IComponent> comps) |
| Modifier and Type | Method and Description |
|---|---|
Stack |
clone()
Creates a clone of a module, including a deep copy of any mutable state.
|
mikera.vectorz.AVector |
getInput() |
mikera.vectorz.AVector |
getInputGradient() |
int |
getInputLength() |
IInputState |
getInputState() |
mikera.vectorz.AVector |
getOutput() |
mikera.vectorz.AVector |
getOutputGradient() |
void |
setInput(mikera.vectorz.AVector input) |
void |
thinkInternal()
Thinks within the scope of the component.
|
IComponent |
topComponent() |
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, getComponents, getGradient, getParameterLength, getParametersgetModules, getOutputLength, isStochastic, setOutput, think, think, thinkInternalTraining, train, trainpublic Stack(List<? extends IComponent> comps)
public IComponent topComponent()
topComponent in class AComponentpublic mikera.vectorz.AVector getInput()
public mikera.vectorz.AVector getInputGradient()
public int getInputLength()
getInputLength in interface IInputgetInputLength in class AComponentpublic void thinkInternal()
IComponentpublic Stack clone()
IModuleclone in interface IComponentclone in interface IModuleclone in interface IParameterisedclone in interface IThinkerclone in interface ITrainableclone in class AComponentpublic void setInput(mikera.vectorz.AVector input)
setInput in interface IInputStatesetInput in class AComponentpublic IInputState getInputState()
getInputState in interface IComponentgetInputState in class AComponentpublic void trainGradient(mikera.vectorz.AVector gradient,
double factor)
IGradientTrainablefactor - TODOpublic void trainGradientInternal(double factor)
public mikera.vectorz.AVector getOutput()
public mikera.vectorz.AVector getOutputGradient()
Copyright © 2013. All Rights Reserved.