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.
|
void |
generate(mikera.vectorz.AVector input,
mikera.vectorz.AVector output) |
LossFunction |
getDefaultLossFunction()
Returns the default loss function that should be used
|
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.
|
void |
thinkInternalTraining()
Thinks within the scope of the component.
|
IComponent |
topComponent() |
void |
trainGradientInternal(double factor)
Abstract method for training gradients.
|
getComponent, getComponents, getGradient, getParameterLength, getParameters, hasDifferentTrainingThinkingapplyConstraints, applyConstraintsInternal, generate, getConstraints, getDownStack, getLearnFactor, getModules, getOutputLength, getUpStack, initRandom, isStochastic, isSynthesiser, iterator, setConstraint, setLearnFactor, setOutput, think, think, train, train, trainSynth, trainSynthequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic Stack(List<? extends IComponent> comps)
public IComponent topComponent()
topComponent in class AComponentpublic LossFunction getDefaultLossFunction()
IComponentgetDefaultLossFunction in interface IComponentgetDefaultLossFunction 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 void thinkInternalTraining()
IComponentthinkInternalTraining in interface IComponentthinkInternalTraining in interface ITrainablethinkInternalTraining in class AComponentpublic void generate(mikera.vectorz.AVector input,
mikera.vectorz.AVector output)
generate in interface ISynthesisergenerate in class AComponentpublic Stack clone()
IModuleclone in interface IComponentclone in interface IModuleclone in interface IParameterisedclone in interface ISynthesiserclone 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 trainGradientInternal(double factor)
AComponenttrainGradientInternal in interface IComponenttrainGradientInternal in class AComponentpublic mikera.vectorz.AVector getOutput()
public mikera.vectorz.AVector getOutputGradient()
Copyright © 2014. All rights reserved.