Package com.neuralnetwork.shared.layers

Examples of com.neuralnetwork.shared.layers.IOutputLayer


        LOGGER.error("Input vector does not have correct "
            + "dimension to be run through this network.");
        return null;
      }
      getInputLayer().addValues(l);
        IOutputLayer ol = getInputLayer().propagate(nnctx);
        return ol.getOutputValues();
    }
View Full Code Here


   */
  @Test(timeout = TIMEOUT)
  public final void testCreate() {
    IInputLayer l1 = new InputLayer(LAYER_SIZE);
    l1.build();
    IOutputLayer l2 = new OutputLayer(LAYER_SIZE);
    l2.build();
    Connections.getInstance().create(l1, l2);
   
    Iterator<IInputNeuron> iter1 = l1.iterator();
        INeuron tmp = null;
        while (iter1.hasNext()) {
            tmp = iter1.next();
            Iterator<IOutputNeuron> iter2 = l2.iterator();
            for (ILink l : tmp.getOutputLinks()) {
              if (iter2.hasNext()) {
                    assertEquals(l.getTail(), iter2.next());
              }
            }
View Full Code Here

     * Test method for {@link com.neuralnetwork
     * .shared.layers.OutputLayer#OutputLayer(int)}.
     */
    @Test
    public final void testOutputLayer() {
        IOutputLayer o = new OutputLayer(1);
        assertNotNull(o);
        assertEquals(o.getLayerType(), LayerType.OUTPUT);
    }
View Full Code Here

     * Test method for {@link com.neuralnetwork
     * .shared.layers.OutputLayer#build()}.
     */
    @Test
    public final void testBuild() {
        IOutputLayer l = new OutputLayer(1);
        ((IOutputLayer) l).build();
        int size = l.getSize();
        assertEquals(size, 1);
    }
View Full Code Here

TOP

Related Classes of com.neuralnetwork.shared.layers.IOutputLayer

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.