public abstract class AWeightLayer extends ALayer
| Modifier and Type | Field and Description |
|---|---|
protected static double |
BIAS_INITIAL_SCALE |
protected static double |
INITIAL_WEIGHT_SCALE |
protected int |
inputLength |
protected int |
outputLength |
| Constructor and Description |
|---|
AWeightLayer(int inputLength,
int outputLength) |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
applyConstraints() |
abstract mikera.matrixx.AMatrix |
asMatrix() |
abstract AWeightLayer |
clone()
Creates a clone of a module, including a deep copy of any mutable state.
|
int |
getInputLength() |
abstract AWeightLayer |
getInverse() |
abstract int |
getLinkCount(int outputIndex) |
abstract int |
getLinkSource(int outputIndex,
int number) |
abstract double |
getLinkWeight(int outputIndex,
int number) |
List<IModule> |
getModules()
Returns a list of sub-components of this module
|
int |
getOutputLength() |
abstract mikera.indexz.Index |
getSourceIndex(int outputIndex) |
abstract mikera.vectorz.AVector |
getSourceWeights(int outputIndex) |
abstract void |
initRandom() |
abstract void |
trainGradient(mikera.vectorz.AVector input,
mikera.vectorz.AVector outputGradient,
mikera.vectorz.AVector inputGradient,
double factor) |
getParameterLength, getParameters, think, thinkequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetGradientprotected static final double INITIAL_WEIGHT_SCALE
protected static final double BIAS_INITIAL_SCALE
protected final int inputLength
protected final int outputLength
public List<IModule> getModules()
IModulepublic int getInputLength()
public int getOutputLength()
public abstract AWeightLayer getInverse()
public abstract int getLinkCount(int outputIndex)
public abstract double getLinkWeight(int outputIndex,
int number)
public abstract int getLinkSource(int outputIndex,
int number)
public abstract mikera.indexz.Index getSourceIndex(int outputIndex)
public abstract mikera.vectorz.AVector getSourceWeights(int outputIndex)
public abstract AWeightLayer clone()
IModulepublic abstract void trainGradient(mikera.vectorz.AVector input,
mikera.vectorz.AVector outputGradient,
mikera.vectorz.AVector inputGradient,
double factor)
public abstract void initRandom()
public abstract mikera.matrixx.AMatrix asMatrix()
public abstract void applyConstraints()
Copyright © 2013. All Rights Reserved.