public abstract class AWeightLayer extends AComponent
| Modifier and Type | Field and Description |
|---|---|
protected static double |
BIAS_INITIAL_SCALE |
protected static double |
INITIAL_WEIGHT_SCALE |
protected mikera.vectorz.Vector |
input |
protected mikera.vectorz.Vector |
inputGradient |
protected int |
inputLength |
protected mikera.vectorz.Vector |
output |
protected mikera.vectorz.Vector |
outputGradient |
protected int |
outputLength |
| Constructor and Description |
|---|
AWeightLayer(int inputLength,
int outputLength) |
| Modifier and Type | Method and Description |
|---|---|
abstract mikera.matrixx.AMatrix |
asMatrix() |
abstract AWeightLayer |
clone()
Creates a clone of a module, including a deep copy of any mutable state.
|
abstract mikera.vectorz.AVector |
getBias() |
List<IComponent> |
getComponents() |
mikera.vectorz.Vector |
getInput() |
mikera.vectorz.Vector |
getInputGradient() |
int |
getInputLength() |
IInputState |
getInputState() |
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
|
mikera.vectorz.Vector |
getOutput() |
mikera.vectorz.Vector |
getOutputGradient() |
int |
getOutputLength() |
abstract mikera.indexz.Index |
getSourceIndex(int outputIndex) |
abstract mikera.vectorz.AVector |
getSourceWeights(int outputIndex) |
abstract void |
initRandom()
Randomly initialises a component's parameters
|
void |
setInput(mikera.vectorz.AVector input) |
void |
trainGradient(mikera.vectorz.AVector input,
mikera.vectorz.AVector outputGradient,
mikera.vectorz.AVector inputGradient,
double factor) |
applyConstraints, applyConstraintsInternal, generate, generate, getComponent, getConstraints, getDefaultLossFunction, getDownStack, getLearnFactor, getParameterLength, getUpStack, isStochastic, isSynthesiser, iterator, setConstraint, setLearnFactor, setOutput, think, think, thinkInternalTraining, topComponent, train, train, trainGradientInternal, trainSynth, trainSynthequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waithasDifferentTrainingThinking, thinkInternalgetGradient, getParametersforEach, spliteratorprotected static final double INITIAL_WEIGHT_SCALE
protected static final double BIAS_INITIAL_SCALE
protected final int inputLength
protected final int outputLength
protected final mikera.vectorz.Vector input
protected final mikera.vectorz.Vector inputGradient
protected final mikera.vectorz.Vector output
protected final mikera.vectorz.Vector outputGradient
public List<IModule> getModules()
IModulegetModules in interface IModulegetModules in class AComponentpublic int getInputLength()
getInputLength in interface IInputgetInputLength in class AComponentpublic int getOutputLength()
getOutputLength in interface IOutputgetOutputLength in class AComponentpublic abstract AWeightLayer getInverse()
public abstract int getLinkCount(int outputIndex)
public abstract double getLinkWeight(int outputIndex,
int number)
public abstract mikera.vectorz.AVector getBias()
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()
IModuleclone in interface IComponentclone in interface IModuleclone in interface IParameterisedclone in interface ISynthesiserclone in interface IThinkerclone in interface ITrainableclone in class AComponentpublic void trainGradient(mikera.vectorz.AVector input,
mikera.vectorz.AVector outputGradient,
mikera.vectorz.AVector inputGradient,
double factor)
public abstract void initRandom()
IComponentinitRandom in interface IComponentinitRandom in class AComponentpublic abstract mikera.matrixx.AMatrix asMatrix()
public 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 © 2014. All rights reserved.