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