Package com.heatonresearch.aifh.examples.capstone.model.milestone2

Examples of com.heatonresearch.aifh.examples.capstone.model.milestone2.CrossValidate


            File submitInfoPath = new File(dataPath, "submit-" + now + ".txt");

            PrintWriter pw = new PrintWriter(new FileWriter(submitInfoPath));
            pw.println("Crossvalidation stats:");
            for (int i = 0; i < cross.size(); i++) {
                CrossValidateFold fold = cross.getFolds().get(i);
                pw.println("Fold #" + (i + 1) + " : Score: " + fold.getScore());
            }
            pw.println("Average Score: " + cross.getScore());
            pw.println();
            pw.println(Arrays.toString(bestNetwork.getLongTermMemory()));
            pw.close();
View Full Code Here


            filename = args[0];
        }

        File dataPath = new File(filename);

        FitTitanic fit = new FitTitanic();
        fit.process(dataPath);

        RBFNetwork bestNetwork = fit.getBestNetwork();

        SubmitTitanic submit = new SubmitTitanic();
        submit.submit(dataPath, bestNetwork, fit.getCrossvalidation());
    }
View Full Code Here

TOP

Related Classes of com.heatonresearch.aifh.examples.capstone.model.milestone2.CrossValidate

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.