Package quickml.supervised.regressionModel.LinearRegression

Examples of quickml.supervised.regressionModel.LinearRegression.RidgeLinearModelBuilderFactory


    @Test
    public void ridgePMOTest() {
        List<Instance<double[]>> trainingData = setUp();
        CrossValidator<double[], Double> crossValidator = new StationaryCrossValidator<>(4, new SingleVariableRealValuedFunctionMSECVLossFunction());
        RidgeLinearModelBuilderFactory ridgeLinearModelBuilderFactory = new RidgeLinearModelBuilderFactory().header(header).includeBiasTerm(true).regularizationConstants(new FixedOrderRecommender(0.001, 0.01, 0.1));
        PredictiveModelOptimizer<double[], Double, RidgeLinearModel, RidgeLinearModelBuilder> predictiveModelOptimizer = new PredictiveModelOptimizer<>(ridgeLinearModelBuilderFactory, trainingData, crossValidator);
        Map<String, Object> optimalParams = predictiveModelOptimizer.determineOptimalConfiguration();
        for (String key : optimalParams.keySet())
            logger.info(key+ " : " + optimalParams.get(key));
    }
View Full Code Here

TOP

Related Classes of quickml.supervised.regressionModel.LinearRegression.RidgeLinearModelBuilderFactory

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.