public final class SparseWeightLayer extends AWeightLayer
BIAS_INITIAL_SCALE, INITIAL_WEIGHT_SCALE, inputLength, outputLength| Constructor and Description |
|---|
SparseWeightLayer(int inputLength,
int outputLength,
int maxLinks) |
SparseWeightLayer(SparseWeightLayer wl) |
| Modifier and Type | Method and Description |
|---|---|
void |
applyConstraints() |
mikera.matrixx.AMatrix |
asMatrix() |
SparseWeightLayer |
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
|
SparseWeightLayer |
getInverse() |
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 SparseWeightLayer(int inputLength,
int outputLength,
int maxLinks)
public SparseWeightLayer(SparseWeightLayer wl)
public mikera.matrixx.AMatrix asMatrix()
asMatrix in class AWeightLayerpublic 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 SparseWeightLayer 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 mikera.indexz.Index getSourceIndex(int outputIndex)
getSourceIndex in class AWeightLayerpublic mikera.vectorz.AVector getSourceWeights(int outputIndex)
getSourceWeights in class AWeightLayerpublic SparseWeightLayer getInverse()
getInverse in class AWeightLayerCopyright © 2013. All Rights Reserved.