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