BoltzmannMachine
org.encog.neural.thermal

Class BoltzmannMachine

    • Constructor Detail

      • BoltzmannMachine

        public BoltzmannMachine()
        Default constructors.
      • BoltzmannMachine

        public BoltzmannMachine(int neuronCount)
        Construct a Boltzmann machine with the specified number of neurons.
        Parameters:
        neuronCount - The number of neurons.
    • Method Detail

      • compute

        public final MLData compute(MLData input)
        Note: for Boltzmann networks, you will usually want to call the "run" method to compute the output. This method can be used to copy the input data to the current state. A single iteration is then run, and the new current state is returned.
        Parameters:
        input - The input pattern.
        Returns:
        The new current state.
      • decreaseTemperature

        public final void decreaseTemperature(double d)
        Decrease the temperature by the specified amount.
        Parameters:
        d - The amount to decrease by.
      • establishEquilibrium

        public final void establishEquilibrium()
        Run the network until thermal equilibrium is established.
      • getAnnealCycles

        public final int getAnnealCycles()
        Returns:
        the annealCycles
      • getInputCount

        public int getInputCount()
        Returns:
        The input.
      • getOutputCount

        public final int getOutputCount()
        Returns:
        The output count.
      • getRunCycles

        public final int getRunCycles()
        Returns:
        the runCycles
      • getTemperature

        public final double getTemperature()
        Returns:
        The temperature the network is currently operating at.
      • getThreshold

        public final double[] getThreshold()
        Returns:
        the threshold
      • run

        public final void run()
        Run the network for all neurons present.
      • run

        public final void run(int i)
        Run the network for the specified neuron.
        Parameters:
        i - The neuron to run for.
      • setAnnealCycles

        public final void setAnnealCycles(int annealCycles)
        Parameters:
        annealCycles - the annealCycles to set
      • setRunCycles

        public final void setRunCycles(int runCycles)
        Parameters:
        runCycles - the runCycles to set
      • setTemperature

        public final void setTemperature(double temperature)
        Set the network temperature.
        Parameters:
        temperature - The temperature to operate the network at.
      • setThreshold

        public final void setThreshold(double[] t)
        Set the thresholds.
        Parameters:
        t - The thresholds.

SCaVis 2.2 © jWork.ORG