public class NeuralNet extends ALayerStack
| Constructor and Description |
|---|
NeuralNet(AWeightLayer... layers) |
NeuralNet(AWeightLayer[] layers,
mikera.vectorz.Op outputOp) |
NeuralNet(AWeightLayer[] layers,
mikera.vectorz.Op hiddenOp,
mikera.vectorz.Op outputOp) |
NeuralNet(AWeightLayer layer,
mikera.vectorz.Op outputOp) |
| Modifier and Type | Method and Description |
|---|---|
void |
applyConstraintsInternal() |
NeuralNet |
clone()
Creates a clone of a module, including a deep copy of any mutable state.
|
List<IComponent> |
getComponents() |
mikera.vectorz.AVector |
getData(int i) |
LossFunction |
getDefaultLossFunction()
Returns the default loss function that should be used
|
mikera.vectorz.AVector |
getGradient()
Return an AVector referencing the accumulated gradient in this model
|
mikera.vectorz.AVector |
getInput() |
mikera.vectorz.AVector |
getInputGradient() |
int |
getInputLength() |
NeuralNet |
getInverse() |
AWeightLayer |
getLayer(int i) |
int |
getLayerCount() |
mikera.vectorz.Op |
getLayerOp(int i) |
List<AWeightLayer> |
getLayers() |
List<IModule> |
getModules()
Returns a list of sub-components of this module
|
mikera.vectorz.AVector |
getOutput() |
mikera.vectorz.AVector |
getOutputGradient() |
int |
getOutputLength() |
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.
|
boolean |
hasDifferentTrainingThinking() |
void |
initRandom()
Randomly initialises a component's parameters
|
void |
thinkInternal()
Thinks within the scope of the component.
|
void |
trainGradientInternal(double factor)
Abstract method for training gradients.
|
subStackapplyConstraints, generate, generate, getComponent, getConstraints, getDownStack, getInputState, getLearnFactor, getUpStack, isStochastic, isSynthesiser, iterator, setConstraint, setInput, setLearnFactor, setOutput, think, think, thinkInternalTraining, topComponent, train, train, trainSynth, trainSynthpublic NeuralNet(AWeightLayer... layers)
public NeuralNet(AWeightLayer[] layers, mikera.vectorz.Op outputOp)
public NeuralNet(AWeightLayer layer, mikera.vectorz.Op outputOp)
public NeuralNet(AWeightLayer[] layers, mikera.vectorz.Op hiddenOp, mikera.vectorz.Op outputOp)
public List<IModule> getModules()
IModulegetModules in interface IModulegetModules in class AComponentpublic LossFunction getDefaultLossFunction()
IComponentgetDefaultLossFunction in interface IComponentgetDefaultLossFunction in class AComponentpublic List<IComponent> getComponents()
public NeuralNet getInverse()
public void initRandom()
IComponentinitRandom in interface IComponentinitRandom in class AComponentpublic void trainGradientInternal(double factor)
AComponenttrainGradientInternal in interface IComponenttrainGradientInternal in class AComponentpublic mikera.vectorz.Op getLayerOp(int i)
public void thinkInternal()
IComponentpublic AWeightLayer getLayer(int i)
getLayer in class ALayerStackpublic int getInputLength()
getInputLength in interface IInputgetInputLength in class AComponentpublic int getOutputLength()
getOutputLength in interface IOutputgetOutputLength in class AComponentpublic int getParameterLength()
IParameterisedgetParameterLength in interface IParameterisedgetParameterLength in class AComponentpublic mikera.vectorz.AVector getParameters()
IParameterisedpublic mikera.vectorz.AVector getGradient()
IParameterisedpublic List<AWeightLayer> getLayers()
getLayers in class ALayerStackpublic void applyConstraintsInternal()
applyConstraintsInternal in class AComponentpublic mikera.vectorz.AVector getOutput()
getOutput in interface IOutputStategetOutput in class ALayerStackpublic mikera.vectorz.AVector getInput()
getInput in interface IInputStategetInput in class ALayerStackpublic mikera.vectorz.AVector getData(int i)
getData in class ALayerStackpublic NeuralNet clone()
IModuleclone in interface IComponentclone in interface IModuleclone in interface IParameterisedclone in interface ISynthesiserclone in interface IThinkerclone in interface ITrainableclone in class ALayerStackpublic int getLayerCount()
getLayerCount in class ALayerStackpublic mikera.vectorz.AVector getInputGradient()
public mikera.vectorz.AVector getOutputGradient()
public boolean hasDifferentTrainingThinking()
Copyright © 2013. All Rights Reserved.