public static class GradientDescent.GradientDescentBuilder extends Object
| Modifier and Type | Method and Description |
|---|---|
GradientDescent.GradientDescentBuilder |
annealingAfter(int iteration)
Sets a simple annealing (alpha / (1+current_iteration / phi)) where phi
is the given parameter here.
|
GradientDescent.GradientDescentBuilder |
boldDriver()
BoldDriver will change the learning rate over time by observing the cost
of the costfunction.
|
GradientDescent.GradientDescentBuilder |
boldDriver(double increasedCostPercentage,
double decreasedCostPercentage)
BoldDriver will change the learning rate over time by observing the cost
of the costfunction.
|
GradientDescent.GradientDescentBuilder |
breakOnDifference(double delta)
Breaks minimization process when the given delta in costs have been
archieved.
|
GradientDescent.GradientDescentBuilder |
breakOnDivergence()
If called, this breaks when the gradient descent minimizer starts to
diverge (costs are growing).
|
GradientDescent |
build() |
static GradientDescent.GradientDescentBuilder |
create(double alpha)
Creates a new builder.
|
GradientDescent.GradientDescentBuilder |
momentum(double momentum)
Add momentum to this gradient descent minimizer.
|
public GradientDescent build()
public GradientDescent.GradientDescentBuilder momentum(double momentum)
momentum - the momentum to use. Between 0 and 1.public GradientDescent.GradientDescentBuilder boldDriver()
public GradientDescent.GradientDescentBuilder boldDriver(double increasedCostPercentage, double decreasedCostPercentage)
increasedCostPercentage - the percentage of the learning rate that
will be used when cost increases.decreasedCostPercentage - the percentage of the learning rate that
will be used when cost decreases.public GradientDescent.GradientDescentBuilder breakOnDivergence()
public GradientDescent.GradientDescentBuilder breakOnDifference(double delta)
delta - the delta to break in difference between two costs.public GradientDescent.GradientDescentBuilder annealingAfter(int iteration)
iteration - the iteration to start annealing.public static GradientDescent.GradientDescentBuilder create(double alpha)
alpha - the learning rate to set.Copyright © 2016. All rights reserved.