3 instantiations of OneClassMatrixElement
Microsoft.ML.Tests (3)
TrainerEstimators\MatrixFactorizationTests.cs (3)
747
observedMatrix.Add(new
OneClassMatrixElement
() { MatrixColumnIndex = i, MatrixRowIndex = j, Value = 1, Score = 0 });
748
fullMatrix.Add(new
OneClassMatrixElement
() { MatrixColumnIndex = i, MatrixRowIndex = j, Value = 1, Score = 0 });
752
fullMatrix.Add(new
OneClassMatrixElement
() { MatrixColumnIndex = i, MatrixRowIndex = j, Value = 0.15f, Score = 0 });
12 references to OneClassMatrixElement
Microsoft.ML.Tests (12)
TrainerEstimators\MatrixFactorizationTests.cs (12)
650
GetOneClassMatrix(out List<
OneClassMatrixElement
> data, out List<
OneClassMatrixElement
> testData);
660
MatrixColumnIndexColumnName = nameof(
OneClassMatrixElement
.MatrixColumnIndex),
661
MatrixRowIndexColumnName = nameof(
OneClassMatrixElement
.MatrixRowIndex),
662
LabelColumnName = nameof(
OneClassMatrixElement
.Value),
681
var results = mlContext.Data.CreateEnumerable<
OneClassMatrixElement
>(prediction, false).ToList();
685
var
firstElement = results.First();
686
var
lastElement = results.Last();
735
private static void GetOneClassMatrix(out List<
OneClassMatrixElement
> observedMatrix, out List<
OneClassMatrixElement
> fullMatrix)
739
observedMatrix = new List<
OneClassMatrixElement
>();
740
fullMatrix = new List<
OneClassMatrixElement
>();