Package org.encog.engine.network.activation

Examples of org.encog.engine.network.activation.ActivationGaussian


    if (name.equalsIgnoreCase(MLActivationFactory.AF_COMPETITIVE)) {
      return new ActivationCompetitive();
    }

    if (name.equalsIgnoreCase(MLActivationFactory.AF_GAUSSIAN)) {
      return new ActivationGaussian();
    }

    if (name.equalsIgnoreCase(MLActivationFactory.AF_LINEAR)) {
      return new ActivationLinear();
    }
View Full Code Here


public class TestActivationGaussian extends TestCase {
 
  @Test
  public void testGaussian() throws Throwable
  {
    ActivationGaussian activation = new ActivationGaussian(0.0,0.5,1.0);
    Assert.assertTrue(activation.hasDerivative());
   
    ActivationGaussian clone = (ActivationGaussian)activation.clone();
    Assert.assertNotNull(clone);
   
    double[] input = { 0.0  };
   
    activation.activationFunction(input,0,input.length);
View Full Code Here

      break;
    case 1:
      newActivation = new ActivationCompetitive();
      break;
    case 2:
      newActivation = new ActivationGaussian(0, 1, 1);
      break;
    case 3:
      newActivation = new ActivationLinear();
      break;
    case 4:
View Full Code Here

    if (name.equalsIgnoreCase(MLActivationFactory.AF_COMPETITIVE)) {
      return new ActivationCompetitive();
    }

    if (name.equalsIgnoreCase(MLActivationFactory.AF_GAUSSIAN)) {
      return new ActivationGaussian();
    }

    if (name.equalsIgnoreCase(MLActivationFactory.AF_LINEAR)) {
      return new ActivationLinear();
    }
View Full Code Here

public class TestActivationGaussian extends TestCase {
 
  @Test
  public void testGaussian() throws Throwable
  {
    ActivationGaussian activation = new ActivationGaussian();
    Assert.assertFalse(!activation.hasDerivative());
   
    ActivationGaussian clone = (ActivationGaussian)activation.clone();
    Assert.assertNotNull(clone);
   
    double[] input = { 0.0  };
   
    activation.activationFunction(input,0,input.length);
View Full Code Here

   */
  public static void buildCPPNActivationFunctions(
      final ChooseObject<ActivationFunction> activationFunctions) {
    activationFunctions.add(0.25, new ActivationClippedLinear());
    activationFunctions.add(0.25, new ActivationBipolarSteepenedSigmoid());
    activationFunctions.add(0.25, new ActivationGaussian());
    activationFunctions.add(0.25, new ActivationSIN());
    activationFunctions.finalizeStructure();
  }
View Full Code Here

TOP

Related Classes of org.encog.engine.network.activation.ActivationGaussian

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.