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