public static class ALS.NormalEquation
extends Object
implements scala.Serializable
Constructor and Description |
---|
ALS.NormalEquation(int k) |
Modifier and Type | Method and Description |
---|---|
ALS.NormalEquation |
add(float[] a,
float b)
Adds an observation.
|
ALS.NormalEquation |
addImplicit(float[] a,
float b,
double alpha)
Adds an observation with implicit feedback.
|
double[] |
ata()
A^T^ * A
|
double[] |
atb()
A^T^ * b
|
int |
k() |
ALS.NormalEquation |
merge(ALS.NormalEquation other)
Merges another normal equation object.
|
int |
n()
Number of observations.
|
void |
reset()
Resets everything to zero, which should be called after each solve.
|
int |
triK()
Number of entries in the upper triangular part of a k-by-k matrix.
|
public int k()
public int triK()
public double[] ata()
public double[] atb()
public int n()
public ALS.NormalEquation add(float[] a, float b)
public ALS.NormalEquation addImplicit(float[] a, float b, double alpha)
public ALS.NormalEquation merge(ALS.NormalEquation other)
public void reset()