Examples of IKohonenMap


Examples of zdenekdrahos.AI.KohonenMap.IKohonenMap

        {-0.1233, -1.8783}
    };
   
    @Test
    public void testTrain() throws FileNotFoundException {
        IKohonenMap map = new KohonenMap();
        map.setData(getExampleInput());
        map.train(alfa, groupsCount, iterationsCount);
        Double[][] weights = map.getWeights();
        for (int i = 0; i < weights.length; i++) {
            for (int j = 0; j < weights[0].length; j++) {
                assertTrue(weights[i][j] - expectedWeights[i][j] < 0.1);
            }
        }
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.