Package org.encog.engine.network.activation

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


    if (name.equalsIgnoreCase(MLActivationFactory.AF_SIGMOID)) {
      return new ActivationSigmoid();
    }

    if (name.equalsIgnoreCase(MLActivationFactory.AF_SIN)) {
      return new ActivationSIN();
    }

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


public class TestActivationSIN extends TestCase {

  @Test
  public void testSIN() throws Throwable {
    ActivationSIN activation = new ActivationSIN();
    Assert.assertTrue(activation.hasDerivative());

    ActivationSIN clone = (ActivationSIN) activation.clone();
    Assert.assertNotNull(clone);

    double[] input = { 0.0  };

    activation.activationFunction(input,0,input.length);
View Full Code Here

      break;
    case 5:
      newActivation = new ActivationSigmoid();
      break;
    case 6:
      newActivation = new ActivationSIN();
      break;
    case 7:
      newActivation = new ActivationSoftMax();
      break;
    case 8:
View Full Code Here

    if (name.equalsIgnoreCase(MLActivationFactory.AF_SIGMOID)) {
      return new ActivationSigmoid();
    }

    if (name.equalsIgnoreCase(MLActivationFactory.AF_SIN)) {
      return new ActivationSIN();
    }

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

public class TestActivationSIN extends TestCase {

  @Test
  public void testSIN() throws Throwable {
    ActivationSIN activation = new ActivationSIN();
    Assert.assertTrue(activation.hasDerivative());

    ActivationSIN clone = (ActivationSIN) 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.ActivationSIN

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.