Skip to content

Commit

Permalink
Fix crash in Microsoft.ML.Recommender with validation set (#7196)
Browse files Browse the repository at this point in the history
  • Loading branch information
ankane committed Jul 24, 2024
1 parent 05bb0e3 commit f51eaa2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Microsoft.ML.Recommender/SafeTrainingAndModelBuffer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ public unsafe void TrainWithValidation(IChannel ch, int rowCount, int colCount,
validProb.R = validNodesPtrs;
validProb.M = rowCount;
validProb.N = colCount;
validProb.Nnz = nodes.Length;
validProb.Nnz = validNodes.Length;

ch.Info("Training {0} by {1} problem on {2} examples with a {3} by {4} validation set including {5} examples",
prob.M, prob.N, prob.Nnz, validProb.M, validProb.N, validProb.Nnz);
Expand Down

0 comments on commit f51eaa2

Please sign in to comment.