2 writes to NumberOfRows
Microsoft.ML.Recommender (2)
MatrixFactorizationPredictor.cs (2)
101
buffer.Get(out
NumberOfRows
, out NumberOfColumns, out ApproximationRank, out var leftFactorMatrix, out var rightFactorMatrix);
124
NumberOfRows
= ctx.Reader.ReadInt32();
15 references to NumberOfRows
Microsoft.ML.Recommender (13)
MatrixFactorizationPredictor.cs (13)
68
/// This is two dimensional matrix with size of <see cref="
NumberOfRows
"/> * <see cref="ApproximationRank"/> flattened into one-dimensional matrix.
105
_host.Assert(
NumberOfRows
== matrixRowIndexType.GetCountAsInt32(_host));
106
_host.Assert(_leftFactorMatrix.Length ==
NumberOfRows
* ApproximationRank);
125
_host.CheckDecode(
NumberOfRows
> 0);
131
_host.CheckDecode((ulong)
NumberOfRows
<= ulong.MaxValue - mMin);
145
_leftFactorMatrix = Utils.ReadSingleArray(ctx.Reader, checked(
NumberOfRows
* ApproximationRank));
149
MatrixRowIndexType = new KeyDataViewType(typeof(uint),
NumberOfRows
);
178
_host.Check(
NumberOfRows
> 0, "Number of rows must be positive");
181
ctx.Writer.Write(
NumberOfRows
);
184
_host.Check(Utils.Size(_leftFactorMatrix) ==
NumberOfRows
* ApproximationRank, "Unexpected matrix size of a factor matrix (matrix P in LIBMF paper)");
196
writer.WriteLine("# P in R^({0} x {1}), rows correspond to Y item",
NumberOfRows
, ApproximationRank);
275
if (srcRow == 0 || srcRow >
NumberOfRows
|| srcCol == 0 || srcCol > NumberOfColumns)
297
_host.Assert(0 <= rowIndex && rowIndex <
NumberOfRows
);
Microsoft.ML.Tests (2)
TrainerEstimators\MatrixFactorizationTests.cs (2)
93
Assert.Equal(leftMatrix.Count, model.Model.
NumberOfRows
* model.Model.ApproximationRank);
818
int m = model.Model.
NumberOfRows
;