public final class FullWeightLayer extends AWeightLayer
| 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 |
BIAS_INITIAL_SCALE, INITIAL_WEIGHT_SCALE, inputLength, outputLength| Constructor and Description |
|---|
FullWeightLayer(int inputLength,
int outputLength) |
| Modifier and Type | Method and Description |
|---|---|
mikera.matrixx.AMatrix |
asMatrix() |
FullWeightLayer |
clone()
Creates a clone of a module, including a deep copy of any mutable state.
|
mikera.vectorz.Vector |
getBias() |
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() |
IInputState |
getInputState() |
FullWeightLayer |
getInverse() |
FullWeightLayer |
getInverseStructure() |
int |
getLinkCount(int outputIndex) |
int |
getLinkSource(int outputIndex,
int number) |
double |
getLinkWeight(int outputIndex,
int number) |
mikera.vectorz.Vector |
getOutput() |
mikera.vectorz.Vector |
getOutputGradient() |
int |
getParameterLength()
Returns the length of the parameter vector for this model
|
mikera.vectorz.AVector |
getParameters()
Return an AVector referring to the parameters in the model.
|
mikera.indexz.Index |
getSourceIndex(int outputIndex) |
mikera.vectorz.AVector |
getSourceWeights(int outputIndex) |
boolean |
hasDifferentTrainingThinking() |
void |
initRandom()
Randomly initialises a component's parameters
|
void |
setInput(mikera.vectorz.AVector input) |
void |
think(mikera.vectorz.AVector input,
mikera.vectorz.AVector output) |
void |
thinkInternal()
Thinks within the scope of the component.
|
void |
trainGradientInternal(double factor)
Abstract method for training gradients.
|
getInputLength, getModules, getOutputLength, trainGradientapplyConstraints, applyConstraintsInternal, generate, generate, getComponent, getConstraints, getDefaultLossFunction, getDownStack, getLearnFactor, getUpStack, isStochastic, isSynthesiser, iterator, setConstraint, setLearnFactor, setOutput, 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 mikera.vectorz.AVector getParameters()
IParameterisedpublic int getParameterLength()
IParameterisedgetParameterLength in interface IParameterisedgetParameterLength in class AComponentpublic void think(mikera.vectorz.AVector input,
mikera.vectorz.AVector output)
think in interface IThinkerthink in class AComponentpublic void thinkInternal()
IComponentpublic mikera.vectorz.AVector getGradient()
IParameterisedpublic void trainGradientInternal(double factor)
AComponenttrainGradientInternal in interface IComponenttrainGradientInternal in class AComponentpublic FullWeightLayer clone()
IModuleclone in interface IComponentclone in interface IModuleclone in interface IParameterisedclone in interface ISynthesiserclone in interface IThinkerclone in interface ITrainableclone in class AWeightLayerpublic int getLinkCount(int outputIndex)
getLinkCount in class AWeightLayerpublic double getLinkWeight(int outputIndex,
int number)
getLinkWeight in class AWeightLayerpublic int getLinkSource(int outputIndex,
int number)
getLinkSource in class AWeightLayerpublic void initRandom()
IComponentinitRandom in interface IComponentinitRandom in class AWeightLayerpublic FullWeightLayer getInverse()
getInverse in class AWeightLayerpublic FullWeightLayer getInverseStructure()
public mikera.indexz.Index getSourceIndex(int outputIndex)
getSourceIndex in class AWeightLayerpublic mikera.vectorz.AVector getSourceWeights(int outputIndex)
getSourceWeights in class AWeightLayerpublic mikera.matrixx.AMatrix asMatrix()
asMatrix in class AWeightLayerpublic boolean hasDifferentTrainingThinking()
public mikera.vectorz.Vector getBias()
getBias in class AWeightLayerpublic 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()
public List<IComponent> getComponents()
Copyright © 2013. All Rights Reserved.