113 references to Except
Microsoft.ML.Core (14)
CommandLine\CmdParser.cs (4)
479
throw Contracts.
Except
($"Duplicate default argument '{def.LongName}' vs '{field.Name}'");
500
throw Contracts.
Except
($"Duplicate name '{name}' in argument type '{type.Name}'");
506
throw Contracts.
Except
($"Duplicate name '{nick}' in argument type '{type.Name}'");
1166
throw Contracts.
Except
("Invalid Component string: mismatched braces, or empty component name.");
ComponentModel\ComponentCatalog.cs (5)
496
throw Contracts.
Except
($"Can't load type {instType}, because it has both create and constructor methods with the same visibility. Please indicate which one should be used by changing either the signature or the visibility of one of them.");
541
throw Contracts.
Except
($"ComponentCatalog cannot map name '{name}' and SignatureType '{sigType}' to {info.Type.Name}, already mapped to {infoCur.Type.Name}.");
701
throw Contracts.
Except
(
1072
throw Contracts.
Except
(errorMsg);
1092
throw Contracts.
Except
($"An extension for '{key.AttributeType.Name}' with contract '{key.ContractName}' has already been registered in the ComponentCatalog.");
ComponentModel\LoadableClassAttribute.cs (1)
200
throw Contracts.
Except
("Invalid signature parameter attributes");
Data\AnnotationUtils.cs (1)
118
public static Exception ExceptGetAnnotation() => Contracts.
Except
("Invalid call to GetAnnotation");
Utilities\Contracts.cs (1)
491
throw
Except
(msg);
Utilities\ReservoirSampler.cs (2)
84
throw Contracts.
Except
("Cannot continue to sample after Lock() has been called");
110
throw Contracts.
Except
("Call Lock() before the call to GetSample()");
Microsoft.ML.Core.Tests (1)
UnitTests\TestVBuffer.cs (1)
1159
throw Contracts.
Except
("Whoops, did you miss a case?");
Microsoft.ML.Data (33)
Data\BufferBuilder.cs (1)
98
throw Contracts.
Except
($"Unrecognized type '{typeof(T)}' for default {nameof(BufferBuilder<T>)}");
Data\Conversion.cs (2)
475
throw Contracts.
Except
($"No conversion from '{type}' to {nameof(StringBuilder)}");
483
throw Contracts.
Except
($"No conversion from '{typeof(TSrc)}' to {nameof(StringBuilder)}");
Data\RowCursorUtils.cs (3)
394
throw Contracts.
Except
("Only floating point number, boolean, and key type values can be used as label.");
423
throw Contracts.
Except
("Only floating point number, boolean, and key type values can be used as label.");
499
throw Contracts.
Except
($"The requested column: {col} is not part of the {nameof(sourceSchema)}");
Data\SchemaDefinition.cs (1)
263
throw Contracts.
Except
("Column already contains an annotation of this kind.");
DataLoadSave\Database\DatabaseLoader.cs (3)
135
throw Contracts.
Except
($"Cannot specify both {nameof(LoadColumnAttribute)} and {nameof(LoadColumnNameAttribute)}");
150
throw Contracts.
Except
($"Field {memberInfo.Name} is of unsupported type.");
156
throw Contracts.
Except
($"Property {memberInfo.Name} is of unsupported type.");
DataLoadSave\Text\TextLoader.cs (2)
1613
throw Contracts.
Except
($"Field {memberInfo.Name} is of unsupported type.");
1619
throw Contracts.
Except
($"Property {memberInfo.Name} is of unsupported type.");
DataLoadSave\Text\TextLoaderParser.cs (2)
1434
throw Contracts.
Except
($"Could not parse value {fields.Spans[isrc]} in slot {indexBase + srcCur} of column {info.Name} in line {line}");
1470
throw Contracts.
Except
($"Could not parse value {vs.Spans[isrc]} in line {line}, column {info.Name}");
DataView\RowToRowMapperTransform.cs (2)
340
throw Contracts.
Except
($"Invalid TValue in GetGetter: '{typeof(TValue)}', " +
407
throw Contracts.
Except
($"Invalid TValue in GetGetter: '{typeof(TValue)}', " +
DataView\SimpleRow.cs (1)
61
throw Contracts.
Except
("Unexpected TValue in GetGetter");
DataView\Transposer.cs (1)
1174
throw Contracts.
Except
($"Invalid TValue in GetGetter: '{typeof(TValue)}', " +
Dirty\PredictionUtils.cs (1)
48
throw Contracts.
Except
(errorMsg);
EntryPoints\InputBuilder.cs (1)
168
throw Contracts.
Except
($"Unknown input name {name}");
Evaluators\EvaluatorUtils.cs (6)
566
throw Contracts.
Except
($"Schema number {i} does not contain column '{columnName}'");
573
throw Contracts.
Except
($"Column '{columnName}' in schema number {i} does not have the correct type");
576
throw Contracts.
Except
($"Column '{columnName}' in schema number {i} does not have the correct type of key values");
579
throw Contracts.
Except
($"Column '{columnName}' must be a U4 key type, but is '{typeItemType}'");
1151
throw Contracts.
Except
("Multiple weighted rows found in metrics data view.");
1161
throw Contracts.
Except
("Multiple unweighted rows found in metrics data view.");
Scorers\SchemaBindablePredictorWrapper.cs (2)
66
throw Contracts.
Except
(
481
throw Contracts.
Except
("Predictor does not provide probabilities");
Transforms\MetadataDispatcher.cs (2)
416
throw Contracts.
Except
("Duplicate specification of metadata");
432
throw Contracts.
Except
("Duplicate specification of metadata");
Transforms\TransformBase.cs (1)
236
throw Contracts.
Except
($"Invalid TValue in GetGetter: '{typeof(TValue)}', " +
Transforms\ValueMapping.cs (1)
778
throw Contracts.
Except
($"Unsupported type {type} used in mapping.");
Utilities\ModelFileUtils.cs (1)
388
throw Contracts.
Except
($"File '{_filename}' is missing from the repository");
Microsoft.ML.EntryPoints (2)
MacroUtils.cs (1)
72
throw Contracts.
Except
("Trainer kind not supported");
PermutationFeatureImportance.cs (1)
77
throw Contracts.
Except
(
Microsoft.ML.FastTree (30)
Dataset\Dataset.cs (1)
579
throw Contracts.
Except
("In Dataset.Split(), fractions must sum to 1.0");
Dataset\Feature.cs (1)
89
throw Contracts.
Except
("Impossible!");
Dataset\FeatureHistogram.cs (1)
74
throw Contracts.
Except
("cannot subtract FeatureHistograms of different lengths");
Dataset\RepeatIntArray.cs (3)
54
throw Contracts.
Except
("Length provided to repeat vector is inconsistent with value enumeration");
61
throw Contracts.
Except
("Use dense arrays for 0 bits");
78
throw Contracts.
Except
("Use dense arrays for 0 bits");
Dataset\SegmentIntArray.cs (5)
85
throw Contracts.
Except
("Length provided to segment vector is inconsistent with value enumeration");
93
throw Contracts.
Except
("Length provided to segment vector is inconsistent with value enumeration");
195
throw Contracts.
Except
("Cannot use more than 21 bits if also storing the actual optimal path");
438
throw Contracts.
Except
("Segment array cannot represent more than 31 bits");
454
throw Contracts.
Except
("Segment array cannot represent more than 31 bits");
Dataset\SparseIntArray.cs (5)
39
throw Contracts.
Except
("Use dense arrays for 0 bits");
72
throw Contracts.
Except
("Length provided to sparse vector is inconsistent with value enumeration");
79
throw Contracts.
Except
("Use dense arrays for 0 bits");
112
throw Contracts.
Except
("Use dense arrays for 0 bits");
162
throw Contracts.
Except
("Use dense arrays for 0 bits");
FastTree.cs (1)
886
throw Contracts.
Except
("Queried for unknown set");
RegressionTree.cs (4)
109
throw Contracts.
Except
($"The input index, {nodeIndex}, is invalid. Its valid range is from 0 (inclusive) to {NumberOfNodes} (exclusive).");
126
throw Contracts.
Except
($"The input node index, {nodeIndex}, is invalid. Its valid range is from 0 (inclusive) to {NumberOfNodes} (exclusive).");
214
throw Contracts.
Except
($"The input leaf index, {leafIndex}, is invalid. Its valid range is from 0 (inclusive) to {NumberOfLeaves} (exclusive).");
230
throw Contracts.
Except
($"The input leaf index, {leafIndex}, is invalid. Its valid range is from 0 (inclusive) to {NumberOfLeaves} (exclusive).");
Training\ScoreTracker.cs (1)
69
throw Contracts.
Except
("The length of initScores do not match the length of training set");
Training\Test.cs (3)
78
throw Contracts.
Except
("Cannot compare unrelated metrics");
303
throw Contracts.
Except
("TestResult don't match");
450
throw Contracts.
Except
("FastNDCGTest only supports NDCG1 & NDCG3");
TreeEnsemble\InternalRegressionTree.cs (3)
560
throw Contracts.
Except
("cannot sumup value with different lengths");
586
throw Contracts.
Except
("trees from different workers do not match");
1468
throw Contracts.
Except
("Cannot swap root or leaves");
Utils\Algorithms.cs (2)
25
throw Contracts.
Except
("value is greater than the greatest number in the array");
61
throw Contracts.
Except
("value is less than the first array element");
Microsoft.ML.ImageAnalytics (1)
VectorToImageTransform.cs (1)
341
throw Contracts.
Except
("We only support float, double or byte arrays");
Microsoft.ML.OnnxTransformer (3)
OnnxTransform.cs (1)
561
throw Contracts.
Except
($"Input shape mismatch: Input '{_parent.Inputs[i]}' has shape {String.Join(",", inputShape)}, but input data is of length {typeValueCount}.");
OnnxTypeParser.cs (2)
69
throw Contracts.
Except
("Unsupported ONNX scalar type: " + dataType.ToString());
157
throw Contracts.
Except
("Unsupported ONNX scalar type: " + dataType.ToString());
Microsoft.ML.Parquet (4)
PartitionedPathParser.cs (4)
181
throw Contracts.
Except
($"Column definition {col} is outside the bounds of path {path}.");
287
throw Contracts.
Except
($"Failed to parse names from path {path}. Expected directory names with the format 'Name=Value'.");
308
throw Contracts.
Except
($"Failed to parse names from path {path}. Expected directory names with the format 'Name=Value'.");
313
throw Contracts.
Except
($"The extracted value count of {values.Count} does not match the expected Column count of {_columns.Length} for path {path}");
Microsoft.ML.StandardTrainers (1)
Standard\LogisticRegression\MulticlassLogisticRegression.cs (1)
288
throw Contracts.
Except
("The input training data must have the same features used to train the input predictor.");
Microsoft.ML.Sweeper (3)
Algorithms\NelderMead.cs (1)
376
throw Contracts.
Except
("previous runs do not contain results for expected runs");
AsyncSweeper.cs (1)
118
throw Contracts.
Except
("Calling Propose after the sweeper is disposed");
ISweeper.cs (1)
239
throw Contracts.
Except
("Run result does not contain a metric");
Microsoft.ML.TensorFlow (2)
TensorflowTransform.cs (2)
597
throw Contracts.
Except
($"Input shape mismatch: Input '{_parent.Inputs[i]}' has shape {originalShape.ToString()}, but input data is of length {typeValueCount}.");
616
throw Contracts.
Except
($"Input shape mismatch: Input '{_parent.Inputs[i]}' has shape {originalShape.ToString()}, but input data is of length {typeValueCount}.");
Microsoft.ML.TestFramework (1)
SubComponent.cs (1)
178
throw Contracts.
Except
("Invalid SubComponent string: mismatched braces, or empty component name.");
Microsoft.ML.TimeSeries (12)
FftUtils.cs (1)
208
throw Contracts.
Except
(Marshal.PtrToStringAnsi(ErrorMessage(status)));
SequentialTransformerBase.cs (2)
670
throw Contracts.
Except
("Unexpected TValue in GetGetter");
994
throw Contracts.
Except
($"Invalid TValue in GetGetter: '{typeof(TValue)}', " +
SrCnnEntireAnomalyDetector.cs (1)
306
throw Contracts.
Except
("The input must contain no less than 12 points.");
SsaAnomalyDetectionBase.cs (1)
77
throw Contracts.
Except
(ErrorFunctionHelpText);
STL\FastLoess.cs (1)
47
throw Contracts.
Except
("input data structure cannot be 0-length: lowess");
STL\InnerStl.cs (1)
123
throw Contracts.
Except
(string.Format("input time series length for InnerStl is below {0}", MinTimeSeriesLength));
STL\LeastSquares.cs (3)
32
throw Contracts.
Except
("input data structure cannot be 0-length");
34
throw Contracts.
Except
("the x-axis length should be equal to y-axis length!");
50
throw Contracts.
Except
("The length of the weight vector is not equal to the length of the data points.");
STL\Loess.cs (2)
53
throw Contracts.
Except
(string.Format("input time series length for Loess is below {0}", MinTimeSeriesLength));
56
throw Contracts.
Except
("the x-axis length should be equal to y-axis length!: lowess");
Microsoft.ML.Transforms (4)
Expression\CodeGen.cs (1)
60
throw Contracts.
Except
("Internal error in LambdaCompiler: Maximum number of inputs exceeded.");
SvmLight\SvmLightLoader.cs (3)
313
throw Contracts.
Except
("Encountered 0 index while parsing a 1-based dataset");
318
throw Contracts.
Except
($"Encountered non-parsable index '{inputValues[i]}' while parsing dataset");
383
throw Contracts.
Except
("Duplicate keys found in dataset");
Microsoft.ML.Vision (2)
DnnRetrainTransform.cs (2)
811
throw Contracts.
Except
($"Input shape mismatch: Input '{_parent._inputs[i]}' has shape {originalShape.ToString()}, but input data is of length {typeValueCount}.");
818
throw Contracts.
Except
($"Input shape mismatch: Input '{_parent._inputs[i]}' has shape {originalShape.ToString()}, but input data is of length {typeValueCount}.");