2 writes to _truncationLevel
Microsoft.ML.Data (2)
Evaluators\RankingEvaluator.cs (2)
709_truncationLevel = truncationLevel; 724_truncationLevel = ctx.Reader.ReadInt32();
10 references to _truncationLevel
Microsoft.ML.Data (10)
Evaluators\RankingEvaluator.cs (10)
710_discountMap = RankingUtils.GetDiscountMap(_truncationLevel); 712_bindings = new Bindings(Host, Source.Schema, true, LabelCol, ScoreCol, GroupCol, _truncationLevel); 725Host.CheckDecode(0 < _truncationLevel); 727_bindings = new Bindings(Host, input.Schema, false, LabelCol, ScoreCol, GroupCol, _truncationLevel); 741Host.Assert(0 < _truncationLevel); 742ctx.Writer.Write(_truncationLevel); 804return new RowCursorState(_truncationLevel); 816RankingUtils.QueryMaxDcg(_labelGains, _truncationLevel, _discountMap, state.QueryLabels, state.QueryOutputs, 818RankingUtils.QueryDcg(_labelGains, _truncationLevel, _discountMap, state.QueryLabels, state.QueryOutputs, state.DcgCur); 819for (int t = 0; t < _truncationLevel; t++)