Package org.encog.neural.freeform.task

Examples of org.encog.neural.freeform.task.NeuronTask


  /**
   * {@inheritDoc}
   */
  @Override
  public void clearContext() {
    performNeuronTask(new NeuronTask() {
      @Override
      public void task(final FreeformNeuron neuron) {
        if (neuron instanceof FreeformContextNeuron) {
          neuron.setActivation(0);
        }
View Full Code Here


   * @param neuronSize The number of elements to allocate on each neuron.
   * @param connectionSize The number of elements to allocate on each connection.
   */
  public void tempTrainingAllocate(final int neuronSize,
      final int connectionSize) {
    performNeuronTask(new NeuronTask() {
      @Override
      public void task(final FreeformNeuron neuron) {
        neuron.allocateTempTraining(neuronSize);
        if (neuron.getInputSummation() != null) {
          for (final FreeformConnection connection : neuron
View Full Code Here

  /**
   * Clear the temp training data.
   */
  public void tempTrainingClear() {
    performNeuronTask(new NeuronTask() {
      @Override
      public void task(final FreeformNeuron neuron) {
        neuron.clearTempTraining();
        if (neuron.getInputSummation() != null) {
          for (final FreeformConnection connection : neuron
View Full Code Here

  /**
   * Update context.
   */
  public void updateContext() {
    performNeuronTask(new NeuronTask() {
      @Override
      public void task(final FreeformNeuron neuron) {
        neuron.updateContext();
      }
    });
View Full Code Here

TOP

Related Classes of org.encog.neural.freeform.task.NeuronTask

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.