public class LogisticRegressionTrainer extends LinearSGDTrainer
This is strictly a convenience class for folks who are looking for a simple logistic regression.
addBias, epochs, loggingInterval, minibatchSize, optimiser, rng, seed, shuffle
DEFAULT_SEED
Constructor and Description |
---|
LogisticRegressionTrainer()
Constructs a simple logistic regression, using
AdaGrad with a learning rate of 1.0 as
the gradient optimizer, training for 5 epochs. |
createModel, getModelClassName, getObjective, getTarget, toString
createParameters, getName
getInvocationCount, getProvenance, postConfig, setShuffle, shuffleInPlace, train, train
public LogisticRegressionTrainer()
AdaGrad
with a learning rate of 1.0 as
the gradient optimizer, training for 5 epochs.
It's equivalent to this:
new LinearSGDTrainer(new LogMulticlass(), new AdaGrad(1.0, 0.1), 5, Trainer.DEFAULT_SEED);
Copyright © 2015–2021 Oracle and/or its affiliates. All rights reserved.