public final class FullWeightLayer extends AWeightLayer
| Modifier and Type | Field and Description |
|---|---|
static double |
MAX_WEIGHT_VECTOR_LENGTH |
BIAS_INITIAL_SCALE, INITIAL_WEIGHT_SCALE, inputLength, outputLength| Constructor and Description |
|---|
FullWeightLayer(int inputLength,
int outputLength) |
| Modifier and Type | Method and Description |
|---|---|
void |
applyConstraints() |
mikera.matrixx.AMatrix |
asMatrix() |
FullWeightLayer |
clone()
Creates a clone of a module, including a deep copy of any mutable state.
|
mikera.vectorz.AVector |
getGradient()
Return an AVector referencing the accumulated gradient in this model
|
FullWeightLayer |
getInverse() |
FullWeightLayer |
getInverseStructure() |
int |
getLinkCount(int outputIndex) |
int |
getLinkSource(int outputIndex,
int number) |
double |
getLinkWeight(int outputIndex,
int number) |
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) |
void |
initRandom() |
void |
think(mikera.vectorz.AVector input,
mikera.vectorz.AVector output) |
void |
trainGradient(mikera.vectorz.AVector input,
mikera.vectorz.AVector outputGradient,
mikera.vectorz.AVector inputGradient,
double factor) |
getInputLength, getModules, getOutputLengthpublic static final double MAX_WEIGHT_VECTOR_LENGTH
public mikera.vectorz.AVector getParameters()
IParameterisedgetParameters in interface IParameterisedgetParameters in class ALayerpublic int getParameterLength()
IParameterisedgetParameterLength in interface IParameterisedgetParameterLength in class ALayerpublic void think(mikera.vectorz.AVector input,
mikera.vectorz.AVector output)
public mikera.vectorz.AVector getGradient()
IParameterisedpublic void trainGradient(mikera.vectorz.AVector input,
mikera.vectorz.AVector outputGradient,
mikera.vectorz.AVector inputGradient,
double factor)
trainGradient in class AWeightLayerpublic FullWeightLayer clone()
IModuleclone in interface IModuleclone in interface IParameterisedclone in interface IThinkerclone 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 applyConstraints()
applyConstraints in class AWeightLayerpublic void initRandom()
initRandom 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 AWeightLayerCopyright © 2013. All Rights Reserved.