61 references to ExceptParam
Microsoft.ML.Core (1)
Utilities\Contracts.cs (1)
542
throw
ExceptParam
(ctx, paramName, msg);
Microsoft.ML.Data (17)
DataLoadSave\Database\DatabaseLoader.cs (1)
116
throw host.
ExceptParam
(nameof(TInput), $"Should define at least one public, readable field or property in {nameof(TInput)}.");
DataLoadSave\Text\TextLoader.cs (1)
1584
throw host.
ExceptParam
(nameof(TInput), $"Should define at least one public, readable field or property in {nameof(TInput)}.");
Evaluators\BinaryClassifierEvaluator.cs (1)
152
throw host.
ExceptParam
(nameof(schema),
Evaluators\EvaluatorUtils.cs (1)
81
throw env.
ExceptParam
(nameof(schema), "No score columns have been automatically detected.");
Evaluators\QuantileRegressionEvaluator.cs (1)
289
throw Host.
ExceptParam
(nameof(quantiles), "buffer must be dense");
Model\Pfa\BoundPfaContext.cs (1)
125
throw _host.
ExceptParam
(nameof(toOutput), $"Requested column '{name}' not in schema");
Transforms\Hashing.cs (6)
152
throw Host.
ExceptParam
(nameof(inputSchema), HashingEstimator.ExpectedColumnType);
185
throw Host.
ExceptParam
(nameof(columns), $"Found column with {nameof(column.MaximumNumberOfInverts)} set to non zero value, please use {nameof(HashingEstimator)} instead");
188
throw Host.
ExceptParam
(nameof(HashingEstimator.ColumnOptions.Combine), "When the 'Combine' option is specified, ordered hashing is not supported.");
1938
throw _host.
ExceptParam
(nameof(ColumnOptions.Combine), "When the 'Combine' option is specified, invert hashes are not supported.");
1940
throw _host.
ExceptParam
(nameof(ColumnOptions.Combine), "When the 'Combine' option is specified, ordered hashing is not supported.");
1962
throw _host.
ExceptParam
(nameof(inputSchema), ExpectedColumnType);
Transforms\KeyToValue.cs (1)
646
throw Host.
ExceptParam
(nameof(inputSchema), $"Input column '{colInfo.inputColumnName}' doesn't contain key values metadata");
Transforms\TypeConverting.cs (2)
631
throw Host.
ExceptParam
(nameof(inputSchema), $"Can't convert {colInfo.InputColumnName} into {newType.ToString()}");
633
throw Host.
ExceptParam
(nameof(inputSchema), $"Don't know how to convert {colInfo.InputColumnName} into {newType.ToString()}");
Transforms\ValueToKeyMappingEstimator.cs (1)
160
throw _host.
ExceptParam
(nameof(keyData), "If specified, this data view should contain only a single column " +
Transforms\ValueToKeyMappingTransformer.cs (1)
475
throw ch.
ExceptParam
(nameof(keyData), $"Input data containing terms should contain exactly one column, but " +
Microsoft.ML.Ensemble (2)
EntryPoints\CreateEnsemble.cs (1)
368
throw ch.
ExceptParam
(nameof(dataSerialized),
PipelineEnsemble.cs (1)
318
throw user ? env.
ExceptParam
(nameof(predictors), error) : env.ExceptDecode(error);
Microsoft.ML.EntryPoints (1)
CrossValidationMacro.cs (1)
441
throw env.
ExceptParam
(nameof(kind), $"Trainer kind {kind} does not have an evaluator");
Microsoft.ML.LightGbm (6)
LightGbmBinaryTrainer.cs (1)
273
throw ch.
ExceptParam
(nameof(data),
LightGbmMulticlassTrainer.cs (2)
243
throw ch.
ExceptParam
(nameof(data),
291
throw ch.
ExceptParam
(nameof(data), $"Maximum value {maxLabel} in label column exceeds {_maxNumClass}");
LightGbmRankingTrainer.cs (2)
252
throw ch.
ExceptParam
(nameof(data),
262
throw ch.
ExceptParam
(nameof(data),
LightGbmRegressionTrainer.cs (1)
235
throw ch.
ExceptParam
(nameof(data),
Microsoft.ML.Mkl.Components (2)
VectorWhitening.cs (2)
216
throw Host.
ExceptParam
(nameof(inputSchema), reason);
294
throw env.
ExceptParam
(nameof(inputData.Schema), reason);
Microsoft.ML.OnnxConverter (4)
OnnxContextImpl.cs (4)
62
opSetVersion >= MinimumOpSetVersion ? opSetVersion : throw _host.
ExceptParam
(nameof(opSetVersion), $"Requested OpSet version {opSetVersion} is lower than the minimum required OpSet version {MinimumOpSetVersion}") :
63
throw _host.
ExceptParam
(nameof(opSetVersion), $"Requested OpSet version {opSetVersion} is higher than the current most updated OpSet version {CurrentOpSetVersion}");
105
throw _host.
ExceptParam
(nameof(variableName), $"Could not find '{variableName}' declared in ONNX graph");
139
throw _host.
ExceptParam
(nameof(thisTransformerMinumumOpSetVersion), $"Requested OpSet version {_opSetVersion} is lower than {registerTransformerName}'s minimum OpSet version requirement: {thisTransformerMinumumOpSetVersion}");
Microsoft.ML.Parquet (1)
ParquetLoader.cs (1)
473
throw _loader._host.
ExceptParam
(nameof(Arguments.ColumnChunkReadSize), "Error due to too many blocks. Try increasing block size.");
Microsoft.ML.StandardTrainers (3)
StandardTrainersCatalog.cs (3)
723
throw ectx.
ExceptParam
(nameof(calibratorEstimator),
764
throw env.
ExceptParam
(nameof(binaryEstimator), "Trainer estimator does not appear to produce the right kind of model.");
803
throw env.
ExceptParam
(nameof(binaryEstimator), "Trainer estimator does not appear to produce the right kind of model.");
Microsoft.ML.TensorFlow (4)
TensorflowTransform.cs (4)
347
throw host.
ExceptParam
(nameof(inputs), $"Input column '{input}' does not exist in the model");
351
throw host.
ExceptParam
(nameof(session), $"Input type '{tfInputType}' of input column '{input}' is not supported in TensorFlow");
392
throw host.
ExceptParam
(nameof(outputs), $"Output column '{outputs[i]}' specified multiple times");
396
throw host.
ExceptParam
(nameof(outputs), $"Output column '{outputs[i]}' does not exist in the model");
Microsoft.ML.TimeSeries (1)
IidChangePointDetector.cs (1)
133
throw InternalTransform.Host.
ExceptParam
(nameof(options.Martingale),
Microsoft.ML.Transforms (6)
ExpressionTransformer.cs (2)
104
throw env.
ExceptParam
(nameof(expression), $"parsing failed: {errors[0].GetMessage()}");
110
throw env.
ExceptParam
(nameof(expression), $"binding failed: {errors[0].GetMessage()}");
MissingValueReplacing.cs (2)
207
throw Host.
ExceptParam
(nameof(inputSchema), reason);
1044
throw _host.
ExceptParam
(nameof(inputSchema), reason);
Text\NgramHashingTransformer.cs (1)
187
throw Host.
ExceptParam
(nameof(columns), $"Found colunm with {nameof(column.MaximumNumberOfInverts)} set to non zero value, please use {nameof(NgramHashingEstimator)} instead");
Text\TokenizingByCharacters.cs (1)
124
throw Host.
ExceptParam
(nameof(inputSchema), TokenizingByCharactersEstimator.ExpectedColumnType);
Microsoft.ML.Vision (13)
DnnRetrainTransform.cs (11)
191
throw Host.
ExceptParam
(nameof(options.OptimizationOperation), $"Optimization operation '{options.OptimizationOperation}' does not exist in the model");
195
throw Host.
ExceptParam
(nameof(options.TensorFlowLabel), $"'{options.TensorFlowLabel}' does not exist in the model");
199
throw Host.
ExceptParam
(nameof(options.SaveLocationOperation), $"'{options.SaveLocationOperation}' does not exist in the model");
203
throw Host.
ExceptParam
(nameof(options.SaveOperation), $"'{options.SaveOperation}' does not exist in the model");
209
throw Host.
ExceptParam
(nameof(options.LossOperation), $"'{options.LossOperation}' does not exist in the model");
216
throw Host.
ExceptParam
(nameof(options.MetricOperation), $"'{options.MetricOperation}' does not exist in the model");
223
throw Host.
ExceptParam
(nameof(options.LearningRateOperation), $"'{options.LearningRateOperation}' does not exist in the model");
589
throw host.
ExceptParam
(nameof(inputs), $"Input column '{input}' does not exist in the model");
593
throw host.
ExceptParam
(nameof(session), $"Input type '{tfInputType}' of input column '{input}' is not supported in TensorFlow");
634
throw host.
ExceptParam
(nameof(outputs), $"Output column '{outputs[i]}' specified multiple times");
638
throw host.
ExceptParam
(nameof(outputs), $"Output column '{outputs[i]}' does not exist in the model");
ImageClassificationTrainer.cs (2)
735
throw Host.
ExceptParam
(nameof(_labelTensor.name), $"'{_labelTensor.name}' does not" +
742
throw Host.
ExceptParam
(nameof(options.EarlyStoppingCriteria), $"Early stopping enabled but unable to" +