2 writes to MatrixColumnIndexColumnName
Microsoft.ML.Recommender (2)
MatrixFactorizationPredictor.cs (2)
452MatrixColumnIndexColumnName = matrixColumnIndexColumnName; 490MatrixColumnIndexColumnName = ctx.LoadString();
14 references to MatrixColumnIndexColumnName
Microsoft.ML.Recommender (11)
MatrixFactorizationPredictor.cs (11)
436/// columns specified by <see cref="MatrixColumnIndexColumnName"/>, <see cref="MatrixColumnIndexColumnType"/>, <see cref="MatrixRowIndexColumnName"/>, and <see cref="MatrixRowIndexColumnType"></see>. 455if (!trainSchema.TryGetColumnIndex(MatrixColumnIndexColumnName, out int xCol)) 456throw Host.ExceptSchemaMismatch(nameof(MatrixColumnIndexColumnName), "matrixColumnIndex", MatrixColumnIndexColumnName); 472roles.Add(new KeyValuePair<RoleMappedSchema.ColumnRole, string>(RecommenderUtils.MatrixColumnIndexKind, MatrixColumnIndexColumnName)); 493if (!TrainSchema.TryGetColumnIndex(MatrixColumnIndexColumnName, out int xCol)) 494throw Host.ExceptSchemaMismatch(nameof(MatrixColumnIndexColumnName), "matrixColumnIndex", MatrixColumnIndexColumnName); 514if (!inputSchema.TryGetColumnIndex(MatrixColumnIndexColumnName, out int xCol)) 515throw Host.ExceptSchemaMismatch(nameof(inputSchema), "matrixColumnIndex", MatrixColumnIndexColumnName); 545ctx.SaveString(MatrixColumnIndexColumnName);
Microsoft.ML.Tests (3)
TrainerEstimators\MatrixFactorizationTests.cs (3)
234Assert.True(model.MatrixColumnIndexColumnName == "MatrixColumnIndex"); 346Assert.True(model.MatrixColumnIndexColumnName == nameof(MatrixElementZeroBased.MatrixColumnIndex)); 793Assert.True(model.MatrixColumnIndexColumnName == nameof(MatrixElementZeroBased256By256.MatrixColumnIndex));