Examples of winner()


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

    System.out.println("Error:" + network.calculateError(training));
   
    // test it
    for(int i=0;i<DIGITS.length;i++)
    {
      int output = network.winner(image2data(DIGITS[i]));
     
      for(int j=0;j<CHAR_HEIGHT;j++)
      {
        if( j==CHAR_HEIGHT-1 )
          System.out.println(DIGITS[i][j]+" -> "+output);
View Full Code Here

Examples of org.encog.neural.som.SOM.winner()

      System.out.println("Iteration: " + iteration + ", Error:" + train.getError());
    }
   
    MLData data1 = new BasicMLData(SOM_INPUT[0]);
    MLData data2 = new BasicMLData(SOM_INPUT[1]);
    System.out.println("Pattern 1 winner: " + network.winner(data1));
    System.out.println("Pattern 2 winner: " + network.winner(data2));
  }
}
View Full Code Here

Examples of org.encog.neural.som.SOM.winner()

    }
   
    MLData data1 = new BasicMLData(SOM_INPUT[0]);
    MLData data2 = new BasicMLData(SOM_INPUT[1]);
    System.out.println("Pattern 1 winner: " + network.winner(data1));
    System.out.println("Pattern 2 winner: " + network.winner(data2));
  }
}
View Full Code Here

Examples of org.encog.neural.som.SOM.winner()

    final MLData data1 = new BasicMLData(
        TestCompetitive.SOM_INPUT[0]);
    final MLData data2 = new BasicMLData(
        TestCompetitive.SOM_INPUT[1]);
   
    int result1 = network.winner(data1);
    int result2 = network.winner(data2);
   
    Assert.assertTrue(result1!=result2);

  }
View Full Code Here

Examples of org.encog.neural.som.SOM.winner()

        TestCompetitive.SOM_INPUT[0]);
    final MLData data2 = new BasicMLData(
        TestCompetitive.SOM_INPUT[1]);
   
    int result1 = network.winner(data1);
    int result2 = network.winner(data2);
   
    Assert.assertTrue(result1!=result2);

  }
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.