67 references to Except
Microsoft.ML.Core (17)
CommandLine\CmdParser.cs (1)
1485throw Contracts.Except("Invalid argument type: '{0}'", ItemValueType.Name);
ComponentModel\ComponentCatalog.cs (14)
256throw Contracts.Except("Can't instantiate class '{0}'", Type.Name); 289throw Contracts.Except("Loadable class '{0}' does not derive from '{1}'", LoadNames[0], typeof(TRes).FullName); 299throw Contracts.Except("Loadable class '{0}' does not derive from '{1}'", LoadNames[0], typeof(TRes).FullName); 315throw Contracts.Except("Loadable class '{0}' has ArgType '{1}', which has no suitable constructor", 357throw Contracts.Except("Method '{0}' has {1} parameters, but must have 2 or 3", method.Name, parameters.Length); 359throw Contracts.Except("Method '{0}', 1st parameter is {1}, but must be IHostEnvironment", method.Name, parameters[0].ParameterType); 363throw Contracts.Except("Method '{0}' returns {1}, but must return a class", method.Name, outputType); 421throw Contracts.Except("Invalid component kind: '{0}'", Kind); 425throw Contracts.Except("Component name '{0}' is not valid.", Name); 428throw Contracts.Except("Component '{0}' has an invalid alias '{1}'", Name, Aliases.First(x => !IsValidName(x))); 431throw Contracts.Except("Component '{0}' must inherit from IComponentFactory", argumentType); 610throw Contracts.Except("Component signature '{0}' doesn't inherit from '{1}'", faceType, typeof(IComponentFactory)); 982throw Contracts.Except("Unknown loadable class: {0}", name).MarkSensitive(MessageSensitivity.None); 1034throw Contracts.Except("Can't instantiate arguments object '{0}' for '{1}'", info.ArgType.Name, name);
Data\RoleMappedSchema.cs (1)
307throw Contracts.Except("Expected exactly one column with role '{0}', but found {1}.", role.Value, Utils.Size(infos));
Utilities\SubsetStream.cs (1)
123throw Contracts.Except("cannot write {0} bytes to stream bounded at {1} bytes", count, _remaining);
Microsoft.ML.Core.Tests (1)
UnitTests\CoreBaseTestClass.cs (1)
192throw Contracts.Except("Unknown type in GetColumnComparer: '{0}'", type);
Microsoft.ML.Data (19)
Data\Conversion.cs (6)
372throw Contracts.Except("No standard conversion from '{0}' to '{1}'", typeSrc, typeDst); 408throw Contracts.Except("No standard conversion from '{0}' to '{1}'", typeSrc, typeDst); 607throw Contracts.Except("No standard conversion from '{0}' to '{1}'", typeof(U8), typeof(TDst)); 629throw Contracts.Except("No IsDefault predicate for '{0}'", type); 639throw Contracts.Except("No IsNA predicate for '{0}'", type); 695throw Contracts.Except("No HasMissing predicate for '{0}'", type);
DataLoadSave\Binary\Codecs.cs (1)
912throw Contracts.Except("Length mismatch: expected {0} slots but got {1}", _size, value.Length);
DataLoadSave\Binary\CompressionKind.cs (2)
43throw Contracts.Except("unrecognized compression codec {0}", compression); 62throw Contracts.Except("unrecognized compression codec {0}", compression);
DataView\DataViewConstructionUtils.cs (2)
896throw Contracts.Except("Value inputted is supposed to be {0}, but type of Annotationinfo is {1}", 903throw Contracts.Except(
DataView\Transposer.cs (2)
1348throw Contracts.Except("Could not get single value on column '{0}' because there are no slots", view.Schema[col].Name); 1351throw Contracts.Except("Could not get single value on column '{0}' because there is more than one slot", view.Schema[col].Name);
Evaluators\EvaluatorUtils.cs (2)
271throw Contracts.Except("If data contains a '{0}' column, it must also contain a '{1}' column", 1504throw Contracts.Except("Expected {0} values in 'Count' column, but got {1}.", numClasses, count.Length);
Scorers\SchemaBindablePredictorWrapper.cs (1)
379throw Contracts.Except("Unknown prediction kind, can't map to score column kind: {0}", predictor.PredictionKind);
Transforms\ColumnConcatenatingTransformer.cs (1)
718throw Contracts.Except("Column '{0}': expected {1} slots, but got {2}",
Transforms\NormalizeColumnDbl.cs (1)
307throw Contracts.Except("Normalizer expected {0} slots, but the input data column has {1} slots.", size, cv);
Transforms\NormalizeColumnSng.cs (1)
307throw Contracts.Except("Normalizer expected {0} slots, but the input data column has {1} slots.", size, cv);
Microsoft.ML.Ensemble (4)
OutputCombiners\BaseStacking.cs (2)
118throw Contracts.Except("Stacking predictor input type is unsupported: {0}", ivm.InputType); 120throw Contracts.Except("Stacking predictor output type is unsupported: {0}", ivm.OutputType);
Selector\SubModelSelector\BaseBestPerformanceSelector.cs (2)
98throw Contracts.Except("Metrics did not contain the requested metric '{0}'", _metricName); 111throw Contracts.Except("Metrics did not contain the requested metric '{0}'", _metricName);
Microsoft.ML.FastTree (13)
Dataset\Dataset.cs (3)
826throw Contracts.Except("On auxiliary data {0}, disagreement on whether this is query/doc", name); 846throw Contracts.Except("When combining auxiliary data, the types of elements must match. Distinct types {0} detected for data named {1}", 871throw Contracts.Except(
Dataset\DenseIntArray.cs (1)
109throw Contracts.Except("CSumup returned error {0}", rv);
Dataset\IntArray.cs (2)
235throw Contracts.Except("Feature bin {0} is invalid", featureBin); 255throw Contracts.Except("Feature bin {0} is invalid", featureBin);
Dataset\SegmentIntArray.cs (3)
193throw Contracts.Except("Bits for max item must be in range [0,32], {0} is illegal", bitsForMaxItem); 241throw Contracts.Except( 575throw Contracts.Except("CSumup returned error {0}", rv);
Dataset\SparseIntArray.cs (3)
135throw Contracts.Except("index {0} occurred after {1}", index, currentIndex); 154throw Contracts.Except("Index {0} inconsistent with length {1}", currentIndex, length); 520throw Contracts.Except("CSumup sumupdeltasparse {0}", rv);
Training\Test.cs (1)
139throw Contracts.Except("Unsupported value operator: {0}", Operator);
Microsoft.ML.LightGbm (1)
WrappedLightGbmInterface.cs (1)
243throw Contracts.Except("LightGBM Error, code is {0}, error message is '{1}'.", res, mes);
Microsoft.ML.PCA (1)
PcaTransformer.cs (1)
533throw Contracts.Except("Weight column '{0}' does not exist.", weightColumn);
Microsoft.ML.Recommender (2)
RecommenderUtils.cs (2)
59throw Contracts.Except(format2, role.Value, kindCount); 71throw Contracts.Except(format, col.Name, role.Value, col.Type);
Microsoft.ML.StandardTrainers (4)
Standard\LinearModelParameters.cs (2)
278throw Contracts.Except("Input is of length {0} does not match expected length of weights {1}", features.Length, Weight.Length); 318throw Contracts.Except("Input is of length {0}, but predictor expected length {1}", src.Length, Weight.Length);
Standard\LogisticRegression\MulticlassLogisticRegression.cs (1)
296throw Contracts.Except("Cannot create a multiclass predictor with {0} classes", _numClasses);
Standard\PoissonRegression\PoissonRegression.cs (1)
146throw Contracts.Except("Poisson regression must regress to a non-negative label, but label {0} encountered", label);
Microsoft.ML.TestFramework (2)
DataPipe\TestDataPipeBase.cs (1)
981throw Contracts.Except("Unknown type in GetColumnComparer: '{0}'", type);
SubComponent.cs (1)
254throw Contracts.Except("Unknown loadable class: {0}", Kind).MarkSensitive(MessageSensitivity.None);
Microsoft.ML.TimeSeries (2)
SequentialTransformerBase.cs (2)
675_pinger as Action<PingerArgument> ?? throw Contracts.Except("Invalid TValue in GetPinger: '{0}'", typeof(PingerArgument)); 1000_pinger as Action<PingerArgument> ?? throw Contracts.Except("Invalid TValue in GetPinger: '{0}'", typeof(PingerArgument));
Microsoft.ML.Transforms (1)
MissingValueReplacing.cs (1)
422throw Contracts.Except("No conversion of '{0}' to '{1}'", srcStr, dstType.GetItemType());