Examples of StoppingCondition


Examples of org.apache.commons.math3.genetics.StoppingCondition

        // initial population
        Population initial = getInitialPopulation();

        // stopping condition
        StoppingCondition stoppingCondition = new StoppingCondition() {
           
            int generation = 0;
           
            @Override
            public boolean isSatisfied(Population population) {
View Full Code Here

Examples of org.grouplens.lenskit.iterative.StoppingCondition

        rs.add(Ratings.make(3, 6, 4));

        final EventDAO dao = EventCollectionDAO.create(rs);
        final Provider<PackedPreferenceSnapshot> provider = new PackedPreferenceSnapshotBuilder(dao, new Random());
        snapshot = provider.get();
        final StoppingCondition stop = new ThresholdStoppingCondition(0.1, 10);

        final double regFactor = 0.001;
        final double lrate = 0.003;
        final Provider<LeastSquaresItemScorer> builder =
                new LeastSquaresItemScorer.Builder(regFactor, lrate, snapshot, stop);
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.