Package samer.models
Class VarianceICA
- java.lang.Object
-
- samer.tools.AnonymousTask
-
- samer.tools.NamedTask
-
- samer.models.VarianceICA
-
public class VarianceICA extends NamedTask implements Model
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface samer.models.Model
Model.Trainer
-
-
Constructor Summary
Constructors Constructor and Description VarianceICA(Node node, int inputs, int outputs)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description MatrixbasisMatrix()voidcompute()contract is that getEnergy and getGradient must return correct values for current x after infer and compute has been called, but not necessarily before.voiddispose()VVectorerror()Functionxfunctionx()This presents a more functional interface to the model so that it can be driven by an optimiser.doublegetEnergy()return E = -log p(x)double[]getGradient()return dE/dxintgetSize()return size of vector this model expectsModelgetSourceModel()voidinfer()should infer values latent variablesModel.TrainerlearnDecayWhenActive()Model.TrainerlearnHebbian()Model.TrainerlearnLewickiSejnowski()VVectoroutput()Functionxposterior()voidrun()voidsetInferenceTask(Task t)voidsetInput(Vec in)model should begin observing this vectorvoidsetSourceModel(Model m)-
Methods inherited from class samer.tools.AnonymousTask
starting, stopping
-
-
-
-
Method Detail
-
getSourceModel
public Model getSourceModel()
-
setSourceModel
public void setSourceModel(Model m)
-
setInput
public void setInput(Vec in)
Description copied from interface:Modelmodel should begin observing this vector
-
basisMatrix
public Matrix basisMatrix()
-
output
public VVector output()
-
error
public VVector error()
-
getSize
public int getSize()
Description copied from interface:Modelreturn size of vector this model expects
-
setInferenceTask
public void setInferenceTask(Task t)
-
infer
public void infer()
Description copied from interface:Modelshould infer values latent variables
-
compute
public void compute()
Description copied from interface:Modelcontract is that getEnergy and getGradient must return correct values for current x after infer and compute has been called, but not necessarily before. This is to give model an opportunity to cache values of energy and gradient to avoid repeated computations.
-
getEnergy
public double getEnergy()
Description copied from interface:Modelreturn E = -log p(x)
-
getGradient
public double[] getGradient()
Description copied from interface:Modelreturn dE/dx- Specified by:
getGradientin interfaceModel
-
dispose
public void dispose()
-
functionx
public Functionx functionx()
Description copied from interface:ModelThis presents a more functional interface to the model so that it can be driven by an optimiser. See classes Functionx and MinimiserBase in package samer.maths.opt.
-
posterior
public Functionx posterior()
-
learnHebbian
public Model.Trainer learnHebbian()
-
learnLewickiSejnowski
public Model.Trainer learnLewickiSejnowski()
-
learnDecayWhenActive
public Model.Trainer learnDecayWhenActive()
-
-