Package com.neuralnetwork.shared.util

Examples of com.neuralnetwork.shared.util.NeuralNetBuilder


  private Stack<ArrayList<Double>> audioData;
 
  public Memory() {
    visualData = new Stack<ArrayList<RGBData>>();
    audioData = new Stack<ArrayList<Double>>();
    network = (new NeuralNetBuilder(SimpleNetworkConfigs.CONFIG_5_4_3_4_5)).build();
  }
View Full Code Here


     * @param configuration
     *      the configuration to be used in constructing the new network.
     *     
     */
    private SOMNeuron(final NetworkConfig configuration) {
      NeuralNetBuilder b =
          new NeuralNetBuilder(configuration);
      neuralNetwork = b.build();
    }
View Full Code Here

   * .shared.util.NeuralNetBuilder
   * #NeuralNetBuilder(int, int)}.
   */
  @Test
  public final void testNeuralNetBuilderIntInt() {
    NeuralNetBuilder b = new NeuralNetBuilder(NUM_INPUTS, NUM_OUTPUTS);
    assertEquals(b.build().getInputLayer().getSize(), NUM_INPUTS);
    assertEquals(b.build().getOutputLayer().getSize(), NUM_OUTPUTS);
  }
View Full Code Here

   * .shared.util.NeuralNetBuilder
   * #NeuralNetBuilder(com.neuralnetwork.shared.util.NetworkConfig)}.
   */
  @Test
  public final void testNeuralNetBuilderNetworkConfig() {
    NeuralNetBuilder b = new NeuralNetBuilder(
        SimpleNetworkConfigs.CONFIG_5_4_3_4_5);
    assertEquals(b.build().getInputLayer().getSize(), NUM_INPUTS);
    assertEquals(b.build().getOutputLayer().getSize(), NUM_OUTPUTS);
  }
View Full Code Here

   * .shared.util.NeuralNetBuilder
   * #addHiddenLayer(com.neuralnetwork.shared.layers.IHiddenLayer)}.
   */
  @Test
  public final void testAddHiddenLayer() {
    NeuralNetBuilder b = new NeuralNetBuilder(NUM_INPUTS, NUM_OUTPUTS);
    b.addHiddenLayer(new HiddenLayer(NUM_HIDDEN));
    b.build();
    assertEquals(b.getNetwork().getHiddenLayer(0).getSize(), NUM_HIDDEN);
    assertEquals(b.getNetwork()
        .getHiddenLayer(0).getLayerType(), LayerType.HIDDEN);
  }
View Full Code Here

   * Test method for {@link com.neuralnetwork
   * .shared.util.NeuralNetBuilder#build()}.
   */
  @Test
  public final void testBuild() {
    NeuralNetBuilder b = new NeuralNetBuilder(NUM_INPUTS, NUM_OUTPUTS);
    b.addHiddenLayer(new HiddenLayer(NUM_HIDDEN));
    b.build();
    assertEquals(b.getNetwork().getHiddenLayer(0).getSize(), NUM_HIDDEN);
    assertEquals(b.getNetwork()
        .getHiddenLayer(0).getLayerType(), LayerType.HIDDEN);
  }
View Full Code Here

   * Test method for {@link com.neuralnetwork
   * .shared.util.NeuralNetBuilder#getNetwork()}.
   */
  @Test
  public final void testGetNetwork() {
    NeuralNetBuilder b = new NeuralNetBuilder(NUM_INPUTS, NUM_OUTPUTS);
    b.addHiddenLayer(new HiddenLayer(NUM_HIDDEN));
    b.build();
    assertEquals(b.getNetwork().getHiddenLayer(0).getSize(), NUM_HIDDEN);
    assertEquals(b.getNetwork()
        .getHiddenLayer(0).getLayerType(), LayerType.HIDDEN);
  }
View Full Code Here

TOP

Related Classes of com.neuralnetwork.shared.util.NeuralNetBuilder

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.