Search in sources :

Example 16 with RidgeLogisticOptimizer

use of edu.neu.ccs.pyramid.classification.logistic_regression.RidgeLogisticOptimizer in project pyramid by cheng-li.

the class CBMNoiseOptimizerFixed method updateMultiClassLR.

private void updateMultiClassLR() {
    // parallel
    RidgeLogisticOptimizer ridgeLogisticOptimizer = new RidgeLogisticOptimizer((LogisticRegression) cbm.multiClassClassifier, dataSet, gammas, priorVarianceMultiClass, true);
    // TODO maximum iterations
    ridgeLogisticOptimizer.getOptimizer().getTerminator().setMaxIteration(10);
    ridgeLogisticOptimizer.optimize();
}
Also used : RidgeLogisticOptimizer(edu.neu.ccs.pyramid.classification.logistic_regression.RidgeLogisticOptimizer)

Aggregations

RidgeLogisticOptimizer (edu.neu.ccs.pyramid.classification.logistic_regression.RidgeLogisticOptimizer)16 LogisticRegression (edu.neu.ccs.pyramid.classification.logistic_regression.LogisticRegression)6 PriorProbClassifier (edu.neu.ccs.pyramid.classification.PriorProbClassifier)4 StopWatch (org.apache.commons.lang3.time.StopWatch)4