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)
71public 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)"); 186Utils.WriteSinglesNoCount(ctx.Writer, _leftFactorMatrix); 197for (int i = 0; i < _leftFactorMatrix.Length; ++i) 199writer.Write(_leftFactorMatrix[i].ToString("G")); 305score += _leftFactorMatrix[rowOffset + i] * _rightFactorMatrix[columnOffset + i];