Package com.heatonresearch.aifh.regression

Examples of com.heatonresearch.aifh.regression.MultipleLinearRegression


            ds.deleteUnknowns();
            ds.deleteColumn(0);
            ds.replaceColumn(9, 4, 1, 0);
            final List<BasicData> trainingData = ds.extractSupervised(0, 9, 9, 1);

            final MultipleLinearRegression reg = new MultipleLinearRegression(9);
            reg.setLinkFunction(new LogitLinkFunction());
            final TrainReweightLeastSquares train = new TrainReweightLeastSquares(reg, trainingData);

            int iteration = 0;
            do {
                iteration++;
View Full Code Here


            ds.encodeOneOfN(0, 0, 1);
            istream.close();

            final List<BasicData> trainingData = ds.extractSupervised(0, 10, 10, 1);

            final MultipleLinearRegression reg = new MultipleLinearRegression(10);
            final TrainLeastSquares train = new TrainLeastSquares(reg, trainingData);
            train.iteration();
            System.out.println(Arrays.toString(reg.getLongTermMemory()));
            query(reg, trainingData);
            System.out.println("Error: " + train.getError());


        } catch (Throwable t) {
View Full Code Here

TOP

Related Classes of com.heatonresearch.aifh.regression.MultipleLinearRegression

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.