Package org.encog.engine.network.activation

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


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

    if (name.equalsIgnoreCase(MLActivationFactory.AF_SOFTMAX)) {
      return new ActivationSoftMax();
    }

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


public class TestActivationSoftMax extends TestCase {

  @Test
  public void testSoftMax() throws Throwable
  {
    ActivationSoftMax activation = new ActivationSoftMax();
    Assert.assertTrue(activation.hasDerivative());
   
    ActivationSoftMax clone = (ActivationSoftMax)activation.clone();
    Assert.assertNotNull(clone);
   
    double[] input = {1.0,1.0,1.0,1.0 };
   
    activation.activationFunction(input,0,input.length);
View Full Code Here

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

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

    if (name.equalsIgnoreCase(MLActivationFactory.AF_SOFTMAX)) {
      return new ActivationSoftMax();
    }

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

public class TestActivationSoftMax extends TestCase {

  @Test
  public void testSoftMax() throws Throwable
  {
    ActivationSoftMax activation = new ActivationSoftMax();
    Assert.assertTrue(activation.hasDerivative());
   
    ActivationSoftMax clone = (ActivationSoftMax)activation.clone();
    Assert.assertNotNull(clone);
   
    double[] input = {1.0,1.0,1.0,1.0 };
   
    activation.activationFunction(input,0,input.length);
View Full Code Here

TOP

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

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.