GradientDescent

public final class GradientDescent

A simple implementation of Gradient Descent optimization

Constructors

Link copied to clipboard
public GradientDescent GradientDescent(    Integer maxIterations,     Float stepSize,     Float eps)

Functions

Link copied to clipboard
public final Float getEps()
Link copied to clipboard
public final Integer getI()
Link copied to clipboard
public final NDArray<Float, D1> getLosses()
Link copied to clipboard
public final Integer getMaxIterations()
Link copied to clipboard
public final Float getStepSize()
Link copied to clipboard
public final Pair<NDArray<Float, D2>, NDArray<Float, D1>> optimize(    LogisticLoss loss,     NDArray<Float, D2> initWeights,     MultiArray<Float, D2> X,     NDArray<Float, D2> y)
Link copied to clipboard
public final Unit setI(Integer i)

Properties

Link copied to clipboard
private final Float eps
Link copied to clipboard
private Integer i
Link copied to clipboard
private final NDArray<Float, D1> losses
Link copied to clipboard
private final Integer maxIterations
Link copied to clipboard
private final Float stepSize