32 references to ExceptUserArg
Microsoft.ML.AutoML (1)
Experiment\MetricsAgents\RankingMetricsAgent.cs (1)
23throw _mlContext.ExceptUserArg(nameof(optimizationMetricTruncationLevel), "DCG Truncation Level must be greater than 0");
Microsoft.ML.Core (1)
Utilities\Contracts.cs (1)
521throw ExceptUserArg(ctx, name, msg);
Microsoft.ML.Data (17)
Commands\TrainCommand.cs (2)
217throw ectx.ExceptUserArg(nameof(TrainCommand.Arguments.DataFile), "Data file must be defined."); 242throw ectx.ExceptUserArg(argName, $"Could not find column '{userName}'");
Commands\TrainTestCommand.cs (1)
92throw Host.ExceptUserArg(nameof(args.TestFile), "Test file must be defined.");
DataLoadSave\Text\TextLoader.cs (4)
719throw ch.ExceptUserArg(nameof(Column.Source), "Must specify some source column indices"); 741throw ch.ExceptUserArg(nameof(Column.Source), "Can't determine the number of source columns without valid data"); 744throw ch.ExceptUserArg(nameof(Column.Source), "The size of input lines is not consistent"); 1246throw _host.ExceptUserArg(nameof(Options.AllowQuoting), "Quoting must be allowed if decimal marker and separator are the ',' character.");
Evaluators\EvaluatorUtils.cs (2)
123throw ectx.ExceptUserArg(argName, "Score column is missing"); 154throw ectx.ExceptUserArg(argName, "Score column is missing");
Evaluators\RankingEvaluator.cs (2)
78throw Host.ExceptUserArg(nameof(options.DcgTruncationLevel), "DCG Truncation Level must be greater than 0"); 90throw Host.ExceptUserArg(nameof(options.LabelGains), "Label Gains must be of floating or integral type");
Transforms\FeatureContributionCalculationTransformer.cs (1)
377throw host.ExceptUserArg(nameof(predictor), "The provided model parameters do not support feature contribution calculation.");
Transforms\NormalizeUtils.cs (1)
150throw env.ExceptUserArg(nameof(input.Columns), $"Column '{column.Source}' does not exist.");
Transforms\RangeFilter.cs (2)
123throw ch.ExceptUserArg(nameof(options.Min), "At least one of min and max must be specified."); 127throw ch.ExceptUserArg(nameof(options.Min), "min must be less than or equal to max");
Transforms\ValueMapping.cs (2)
993throw host.ExceptUserArg(nameof(Options.KeyColumn), $"Key column not found: '{keyColumn}'"); 995throw host.ExceptUserArg(nameof(Options.ValueColumn), $"Value column not found: '{valueColumn}'");
Microsoft.ML.FastTree (1)
TreeEnsemble\TreeEnsembleCombiner.cs (1)
32throw _host.ExceptUserArg(nameof(kind), $"Tree ensembles can be either of type {nameof(PredictionKind.BinaryClassification)}, " +
Microsoft.ML.Mkl.Components (1)
VectorWhitening.cs (1)
900throw _host.ExceptUserArg(nameof(inputSchema), reason);
Microsoft.ML.TimeSeries (3)
MovingAverageTransform.cs (1)
77throw Host.ExceptUserArg(nameof(args.Weights), string.Format("{0} weights are provided, but {1} are expected (or none)'", Utils.Size(_weights), args.WindowSize));
SlidingWindowTransformBase.cs (1)
71throw Host.ExceptUserArg(nameof(args.Lag),
SsaChangePointDetector.cs (1)
144throw InternalTransform.Host.ExceptUserArg(nameof(options.Martingale), "Value not defined.");
Microsoft.ML.Transforms (8)
CountFeatureSelection.cs (1)
175throw _host.ExceptUserArg(nameof(inputSchema), $"Variable length column '{col.Name}' is not allowed");
ExpressionTransformer.cs (2)
125throw env.ExceptUserArg(nameof(inputColumnNames), "Can have at most one vector-valued source column"); 146throw env.ExceptUserArg(nameof(inputColumnNames), "Can have at most one vector-valued source column");
GroupTransform.cs (2)
227GroupColumnIndexes = GetColumnIds(inputSchema, groupColumns, x => _ectx.ExceptUserArg(nameof(Options.GroupKeys), x)); 230KeepColumnIndexes = GetColumnIds(inputSchema, keepColumns, x => _ectx.ExceptUserArg(nameof(Options.Columns), x));
LearnerFeatureSelection.cs (1)
75throw ectx.ExceptUserArg(nameof(Threshold),
MutualInformationFeatureSelection.cs (2)
227throw _host.ExceptUserArg(nameof(inputSchema), 242throw _host.ExceptUserArg(nameof(inputSchema), $"Variable length column '{col.Name}' is not allowed");