1 write to Label
Microsoft.ML.Data (1)
Training\TrainerUtils.cs (1)
921_get(ref Label);
36 references to Label
Microsoft.ML.Data (4)
Training\TrainerUtils.cs (4)
162int cls = (int)cursor.Label; 163if (cls != cursor.Label || cls < 0) 166"Training label column '{0}' contains invalid values for multi-class: {1}.", col.Name, cursor.Label); 922if (!_keepBad && !FloatUtils.IsFinite(Label))
Microsoft.ML.Ensemble (1)
OutputCombiners\BaseStacking.cs (1)
197labels[count] = labelConvert(cursor.Label);
Microsoft.ML.FastTree (6)
FastTree.cs (5)
1870if (cursor.Label < 0 || cursor.Label > MaxLabel) 1871throw ch.Except("Found invalid label {0}. Value should be between 0 and {1}, inclusive.", cursor.Label, MaxLabel); 1877_actualTargets.Add(cursor.Label); 1880_targetsList.Add((short)cursor.Label);
GamModelParameters.cs (1)
661labels.Add(cursor.Label);
Microsoft.ML.LightGbm (1)
LightGbmTrainerBase.cs (1)
787labelList.Add(cursor.Label);
Microsoft.ML.Mkl.Components (5)
OlsLinearRegression.cs (4)
233labelsArray[rowOffset] = cursor.Label; 312var yi = cursor.Label; 466var e = cursor.Label - yh; 468var ydm = cursor.Label - yMean;
SymSgdClassificationTrainer.cs (1)
623float label = _cursor.Label;
Microsoft.ML.OneDal (1)
OneDalUtils.cs (1)
52labelsList.Add(cursor.Label);
Microsoft.ML.StandardTrainers (18)
LdSvm\LdSvmTrainer.cs (1)
518example.Label = cursor.Label > 0 ? 1 : -1;
Standard\LogisticRegression\LbfgsPredictorBase.cs (6)
392AccumulateOneGradient(in cursor.Features, cursor.Label, cursor.Weight, in x, ref grad, ref scratch); 505labelsList.Add((int)cursor.Label); 614ProcessPriorDistribution(cursor.Label, cursor.Weight); 616PreTrainingProcessInstance(cursor.Label, in cursor.Features, cursor.Weight); 630_labels[index] = cursor.Label; 876loss += AccumulateOneGradient(in cursor.Features, cursor.Label, cursor.Weight,
Standard\LogisticRegression\LogisticRegression.cs (1)
347var label = cursor.Label;
Standard\Online\OnlineLinear.cs (1)
336state.ProcessDataInstance(ch, in cursor.Features, cursor.Label, cursor.Weight);
Standard\SdcaBinary.cs (7)
817var label = cursor.Label; 982Double subLoss = Loss.Loss(output, cursor.Label); 984Double subDualLoss = Loss.DualLoss(cursor.Label, duals[idx]); 1541return cursor.Label > 0 ? cursor.Weight * _positiveInstanceWeight : cursor.Weight; 2085Double subLoss = lossFunc.Loss(WScaledDot(in features, weightScaling, in weights, bias), cursor.Label); 2087if (cursor.Label > 0) 2124float label = cursor.Label;
Standard\SdcaMulticlass.cs (2)
207var label = (int)cursor.Label; 382var label = (int)cursor.Label;