5 references to UserErrorPositive
Microsoft.ML.StandardTrainers (5)
Standard\Online\AveragedLinear.cs (2)
309Contracts.CheckUserArg(options.LearningRate > 0, nameof(options.LearningRate), UserErrorPositive); 310Contracts.CheckUserArg(!options.ResetWeightsAfterXExamples.HasValue || options.ResetWeightsAfterXExamples > 0, nameof(options.ResetWeightsAfterXExamples), UserErrorPositive);
Standard\Online\LinearSvm.cs (2)
297Contracts.CheckUserArg(options.Lambda > 0, nameof(options.Lambda), UserErrorPositive); 298Contracts.CheckUserArg(options.BatchSize > 0, nameof(options.BatchSize), UserErrorPositive);
Standard\Online\OnlineLinear.cs (1)
265Contracts.CheckUserArg(options.NumberOfIterations > 0, nameof(options.NumberOfIterations), UserErrorPositive);