public static class ALS.NNLSSolver extends Object implements ALS.LeastSquaresNESolver
Constructor and Description |
---|
ALS.NNLSSolver() |
Modifier and Type | Method and Description |
---|---|
float[] |
solve(ALS.NormalEquation ne,
double lambda)
Solves a nonnegative least squares problem with L2 regularizatin:
|
public float[] solve(ALS.NormalEquation ne, double lambda)
min_x_ norm(A x - b)^2^ + lambda * n * norm(x)^2^ subject to x >= 0
solve
in interface ALS.LeastSquaresNESolver