Package samer.models

Class ICA

  • java.lang.Object
    • Viewable
      • samer.models.ICA
    • Constructor Detail

      • ICA

        public ICA(int N)
      • ICA

        public ICA(Node node,
                   int N)
      • ICA

        public ICA(Vec input)
    • Method Detail

      • getSize

        public int getSize()
        Description copied from interface: Model
        return size of vector this model expects
        Specified by:
        getSize in interface Model
      • getOutputModel

        public Model getOutputModel()
      • setOutputModel

        public void setOutputModel(Model m)
      • setInput

        public void setInput(Vec input)
        Description copied from interface: Model
        model should begin observing this vector
        Specified by:
        setInput in interface Model
      • getWeightMatrix

        public Matrix getWeightMatrix()
      • getBasisMatrix

        public Matrix getBasisMatrix()
      • dispose

        public void dispose()
        Specified by:
        dispose in interface Model
        Specified by:
        dispose in interface Task
      • infer

        public void infer()
        Description copied from interface: Model
        should infer values latent variables
        Specified by:
        infer in interface Model
      • compute

        public void compute()
        Description copied from interface: Model
        contract 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.
        Specified by:
        compute in interface Model
      • getEnergy

        public double getEnergy()
        Description copied from interface: Model
        return E = -log p(x)
        Specified by:
        getEnergy in interface Model
      • getGradient

        public double[] getGradient()
        Description copied from interface: Model
        return dE/dx
        Specified by:
        getGradient in interface Model
      • functionx

        public Functionx functionx()
        Description copied from interface: Model
        This 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.
        Specified by:
        functionx in interface Model
      • starting

        public void starting()
        Specified by:
        starting in interface Task
      • stopping

        public void stopping()
        Specified by:
        stopping in interface Task
      • run

        public void run()
        Specified by:
        run in interface SafeTask
        Specified by:
        run in interface Task
      • getCommands

        public void getCommands(Registry r)
      • execute

        public void execute(java.lang.String cmd,
                            Environment env)
      • getDecayWhenActiveTrainer

        public Model.Trainer getDecayWhenActiveTrainer()