Examples of KohonenMap


Examples of zdenekdrahos.AI.KohonenMap.KohonenMap

        {-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

Examples of zdenekdrahos.AI.KohonenMap.KohonenMap

        setControllers();
        switchCard("sourceData");
    }

    private void setControllers() {
        KohonenMapController kohonenController = new KohonenMapController(new KohonenMap());
        SourceDataController dataController = new SourceDataController();
        BackPropagationController backController = new BackPropagationController();
        dataController.addObserver(kohonenController);
        dataController.addObserver(backController);
        kohonenController.addObserver(backController);
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.