Package org.encog.neural.networks

Examples of org.encog.neural.networks.BasicNetwork.encodedArrayLength()


    Assert.assertTrue(network.isLayerBiased(2));
    Assert.assertEquals(3, network.getLayerCount());
    Assert.assertTrue(network.getActivation(0) instanceof ActivationLinear );
    Assert.assertTrue(network.getActivation(1) instanceof ActivationTANH );
    Assert.assertTrue(network.getActivation(2) instanceof ActivationLinear );
    Assert.assertEquals(18,network.encodedArrayLength());
    Assert.assertEquals(1,network.getLayerNeuronCount(0));
    Assert.assertEquals(3,network.getLayerNeuronCount(1));
    Assert.assertEquals(4,network.getLayerNeuronCount(2));
  }
 
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.