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