Package zdenekdrahos.AI.KohonenMap

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

Related Classes of zdenekdrahos.AI.KohonenMap.IKohonenMap

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.