Package com.neuralnetwork.shared.network

Examples of com.neuralnetwork.shared.network.INetwork


   * Test method for {@link com.neuralnetwork
   * .shared.network.Network#runInputs(java.util.Vector)}.
   */
  @Test
    public final void testRunInputs() {
    INetwork n = new Network(FIVE, FIVE, THREE,
        new int[] {FOUR, TWO, FOUR});
    n.build();
    Vector<Double> values = new Vector<Double>();
    values.add(NN_INPUT_VALUE);
        values.add(NN_INPUT_VALUE);
        values.add(NN_INPUT_VALUE);
        values.add(NN_INPUT_VALUE);
        values.add(NN_INPUT_VALUE);
    LOGGER.debug(n.runInputs(values).toString());
   
  }
View Full Code Here


   * Test method for {@link com.neuralnetwork
   * .shared.network.Network#reset()}.
   */
  @Test
    public final void testReset() {
    INetwork n = new Network(FIVE, FIVE, THREE,
        new int[] {FOUR, TWO, FOUR});
    n.build();
    n.reset();
  }
View Full Code Here

   * Test method for {@link com.neuralnetwork
   * .shared.network.Network#train(java.util.Vector)}.
   */
  @Test
    public final void testTrainVectorOfDouble() {
    INetwork n = new Network(FIVE, FIVE, THREE,
        new int[] {FOUR, TWO, FOUR});
    n.build();
    //n.train(false, null);
    //n.train(true, null);
    //TODO Complete.
  }
View Full Code Here

   * .shared.training.TrainingStack, com.neuralnetwork
   * .shared.values.ErrorValue)}.
   */
  @Test
    public final void testTrainTrainingStackErrorValue() {
    INetwork n = new Network(FIVE, FIVE, THREE,
        new int[] {FOUR, TWO, FOUR});
    n.build();
    //n.train(null, null);
    //TODO Complete.
  }
View Full Code Here

   * Test method for {@link com.neuralnetwork
   * .shared.network.Network#getOutputLayer()}.
   */
  @Test
    public final void testGetOutputLayer() {
    INetwork n = new Network(FIVE, FIVE, THREE,
        new int[] {FOUR, TWO, FOUR});
    n.build();
    assertEquals(LayerType.OUTPUT, n.getOutputLayer().getLayerType());
  }
View Full Code Here

   * .shared.network.Network#setOutputLayer(com.neuralnetwork
   * .shared.layers.IOutputLayer)}.
   */
  @Test
    public final void testSetOutputLayer() {
    INetwork n = new Network(FIVE, FIVE, THREE,
        new int[] {FOUR, TWO, FOUR});
    n.setOutputLayer(new OutputLayer(THREE));
    n.build();
    assertEquals(LayerType.OUTPUT, n.getOutputLayer().getLayerType());
    assertEquals(THREE, n.getOutputLayer().getSize());
  }
View Full Code Here

   * .shared.network.Network#addHiddenLayer(com.neuralnetwork
   * .shared.layers.IHiddenLayer)}.
   */
  @Test
    public final void testAddHiddenLayer() {
    INetwork n = new Network(FIVE, FIVE, THREE,
        new int[] {FOUR, TWO, FOUR});
    n.addHiddenLayer(new HiddenLayer(THREE * TWO));
    n.build();
    IHiddenLayer h = n.getHiddenLayer(THREE);
    assertEquals(LayerType.HIDDEN, h.getLayerType());
    assertEquals(THREE * TWO, h.getSize());
  }
View Full Code Here

   * Test method for {@link com.neuralnetwork
   * .shared.network.Network#getHiddenLayer(int)}.
   */
  @Test
    public final void testGetHiddenLayer() {
    INetwork n = new Network(FIVE, FIVE, THREE,
        new int[] {FOUR, TWO, FOUR});
    n.build();
    assertEquals(LayerType.HIDDEN, n.getHiddenLayer(0).getLayerType());
    assertEquals(LayerType.HIDDEN, n.getHiddenLayer(1).getLayerType());
    assertEquals(LayerType.HIDDEN, n.getHiddenLayer(2).getLayerType());
  }
View Full Code Here

   * Test method for {@link com.neuralnetwork
   * .shared.network.Network#getInputLayer()}.
   */
  @Test
    public final void testGetInputLayer() {
    INetwork n = new Network(FIVE, FIVE, THREE,
        new int[] {FOUR, TWO, FOUR});
    n.build();
    assertEquals(LayerType.INPUT, n.getInputLayer().getLayerType());
  }
View Full Code Here

   * .shared.network.Network#setInputLayer(com.neuralnetwork
   * .shared.layers.IInputLayer)}.
   */
  @Test
    public final void testSetInputLayer() {
    INetwork n = new Network(FIVE, FIVE, THREE,
        new int[] {FOUR, TWO, FOUR});
    n.setInputLayer(new InputLayer(THREE * TWO));
    n.build();
    assertEquals(LayerType.INPUT, n.getInputLayer().getLayerType());
    assertEquals(THREE * TWO, n.getInputLayer().getSize());
  }
View Full Code Here

TOP

Related Classes of com.neuralnetwork.shared.network.INetwork

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.