5 references to UserErrorPositive
Microsoft.ML.StandardTrainers (5)
Standard\Online\AveragedLinear.cs (2)
313
Contracts.CheckUserArg(options.LearningRate > 0, nameof(options.LearningRate),
UserErrorPositive
);
314
Contracts.CheckUserArg(!options.ResetWeightsAfterXExamples.HasValue || options.ResetWeightsAfterXExamples > 0, nameof(options.ResetWeightsAfterXExamples),
UserErrorPositive
);
Standard\Online\LinearSvm.cs (2)
314
Contracts.CheckUserArg(options.Lambda > 0, nameof(options.Lambda),
UserErrorPositive
);
315
Contracts.CheckUserArg(options.BatchSize > 0, nameof(options.BatchSize),
UserErrorPositive
);
Standard\Online\OnlineLinear.cs (1)
267
Contracts.CheckUserArg(options.NumberOfIterations > 0, nameof(options.NumberOfIterations),
UserErrorPositive
);