2 writes to _leftFactorMatrix
Microsoft.ML.Recommender (2)
MatrixFactorizationPredictor.cs (2)
102
_leftFactorMatrix
= leftFactorMatrix;
145
_leftFactorMatrix
= Utils.ReadSingleArray(ctx.Reader, checked(NumberOfRows * ApproximationRank));
7 references to _leftFactorMatrix
Microsoft.ML.Recommender (7)
MatrixFactorizationPredictor.cs (7)
71
public IReadOnlyList<float> LeftFactorMatrix =>
_leftFactorMatrix
;
106
_host.Assert(
_leftFactorMatrix
.Length == NumberOfRows * ApproximationRank);
184
_host.Check(Utils.Size(
_leftFactorMatrix
) == NumberOfRows * ApproximationRank, "Unexpected matrix size of a factor matrix (matrix P in LIBMF paper)");
186
Utils.WriteSinglesNoCount(ctx.Writer,
_leftFactorMatrix
);
197
for (int i = 0; i <
_leftFactorMatrix
.Length; ++i)
199
writer.Write(
_leftFactorMatrix
[i].ToString("G"));
305
score +=
_leftFactorMatrix
[rowOffset + i] * _rightFactorMatrix[columnOffset + i];