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