Package com.heatonresearch.aifh.general.fns.link

Examples of com.heatonresearch.aifh.general.fns.link.LogitLinkFunction


            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


        };


        final List<BasicData> trainingData = BasicData.convertArrays(x, y);
        final MultipleLinearRegression regression = new MultipleLinearRegression(1);
        regression.setLinkFunction(new LogitLinkFunction());
        final TrainReweightLeastSquares train = new TrainReweightLeastSquares(regression, trainingData);
        train.iteration();
        train.getError();

        final double[] input = {0};
View Full Code Here

TOP

Related Classes of com.heatonresearch.aifh.general.fns.link.LogitLinkFunction

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.