131 references to Except
Microsoft.ML.Core (8)
ComponentModel\ComponentCatalog.cs (3)
1013throw env.Except("Loadable class '{0}' does not derive from '{1}'", name, typeof(TRes).FullName); 1019throw env.Except( 1027throw env.Except("Loadable class '{0}' doesn't support settings", name);
Data\Repository.cs (1)
491throw ExceptionContext.Except("Repository doesn't contain entry {0}", pathEnt);
EntryPoints\EntryPointUtils.cs (4)
70throw ectx.Except("Field '{0}' is Optional<> and set to null instead of an explicit value.", fieldInfo.Name); 81throw ectx.Except("Field '{0}' is required but is not set.", fieldInfo.Name); 87throw ectx.Except("Field '{0}' is set to a value that falls outside the range bounds.", fieldInfo.Name); 117throw ectx.Except("Column '{0}' not found", value);
Microsoft.ML.Data (50)
DataLoadSave\Binary\BinaryLoader.cs (2)
1068throw _host.Except("Cannot read version {0} data, earliest that can be handled is {1}", 1073throw _host.Except("Cannot read version {0} data, latest that can be handled is {1}",
DataLoadSave\Binary\BinarySaver.cs (2)
286throw _host.Except("Metadata with duplicate kind '{0}' encountered, disallowed", metaColumn.Name, schema[col].Name); 721throw _host.Except("Could not get codec for requested column {0} of type {1}", schema[c].Name, type);
DataLoadSave\TransformerChain.cs (1)
321throw env.Except("Don't know how to map prediction kind {0}", predictor.PredictionKind);
DataLoadSave\Transpose\TransposeLoader.cs (1)
592throw _host.Except("Cannot read version {0} data, latest that can be handled is {1}",
DataView\ArrayDataViewBuilder.cs (1)
56throw _host.Except("Previous inputs were of length {0}, but new input is of length {1}", _columns[0].Length, values.Length);
DataView\CacheDataView.cs (5)
96throw _host.Except("The input data view has too many ({0}) rows. CacheDataView can only cache up to {1} rows", _rowCount, Utils.ArrayMaxSize); 149throw env.Except( 403throw _host.Except("The input data view has too many ({0}) rows. CacheDataView can only cache up to {1} rows", rowCount, Utils.ArrayMaxSize); 418throw _host.Except("The input data view has too many ({0}) rows. CacheDataView can only cache up to {1} rows", _rowCount, Utils.ArrayMaxSize); 1366throw Ctx.Except("Caching expected vector of size {0}, but {1} encountered.", _uniformLength, _temp.Length);
DataView\DataViewConstructionUtils.cs (1)
419throw Host.Except("Column index must be between 0 and {0}", _colCount);
DataView\Transposer.cs (2)
1373throw ctx.Except("Invalid TValue: '{0}'", typeof(TValue)); 1379throw ctx.Except("Invalid TValue: '{0}'", typeof(TValue));
DataView\TypedCursor.cs (1)
113throw _host.Except(
EntryPoints\EntryPointNode.cs (3)
895throw env.Except("Unexpected node token: '{0}'", nodes[i]); 900throw env.Except("Unexpected {0} token: '{1}'", FieldNames.Inputs, node[FieldNames.Inputs]); 904throw env.Except("Unexpected {0} token: '{1}'", FieldNames.Outputs, node[FieldNames.Outputs]);
EntryPoints\InputBase.cs (1)
52throw ectx.Except("Column '{0}' not found", value);
Evaluators\ClusteringEvaluator.cs (1)
430throw Host.Except("Invalid label: {0}", label);
Evaluators\EvaluatorUtils.cs (3)
476throw env.Except("Data view number {0} does not contain column '{1}'", i, columnName); 480throw env.Except("Column '{0}' in data view number {1} did not contain slot names metadata", columnName, i); 1240throw env.Except("Column '{0}' must have key values metadata",
Evaluators\MultiOutputRegressionEvaluator.cs (1)
737throw ch.Except("Multiple {0} rows found in overall metrics data view",
Scorers\MulticlassClassificationScorer.cs (1)
203throw _host.Except("We do not know how to serialize label names of type '{0}'", _type.ItemType);
Scorers\SchemaBindablePredictorWrapper.cs (3)
140throw ch.Except("Incompatible features column type item type: '{0}' vs '{1}'", typeItemType, typeInItemType); 142throw ch.Except("Incompatible features column type: '{0}' vs '{1}'", type, typeIn); 147throw ch.Except("Incompatible features column type: '{0}' vs '{1}'", type, typeIn);
Transforms\NAFilter.cs (1)
148throw Host.Except("Source column '{0}' specified multiple times", src);
Transforms\NormalizeColumnDbl.cs (5)
682throw host.Except("Normalizer expected {0} slots, but the input data column has 1 slot.", cfeat); 747throw host.Except("Normalizer expected {0} slots, but the input data column has {1} slots.", cfeat, cv); 1190throw host.Except("Normalizer expected {0} slots, but the input data column has 1 slot.", binUpperBounds.Length); 1276throw host.Except("Normalizer expected {0} slots, but the input data column has {1} slots.", binUpperBounds.Length, cv); 1587throw Host.Except("Normalizer expected {0} slots but got {1}", size, buffer.Length);
Transforms\NormalizeColumnSng.cs (5)
840throw host.Except("Normalizer expected {0} slots, but the input data column has 1 slot.", cfeat); 904throw host.Except("Normalizer expected {0} slots, but the input data column has {1} slots.", cfeat, cv); 1351throw host.Except("Normalizer expected {0} slots, but the input data column has 1 slot.", binUpperBounds.Length); 1437throw host.Except("Normalizer expected {0} slots, but the input data column has {1} slots.", binUpperBounds.Length, cv); 1750throw Host.Except("Normalizer expected {0} slots but got {1}", size, buffer.Length);
Transforms\RangeFilter.cs (1)
161throw Host.Except("min", "min must be less than or equal to max");
Transforms\TransformBase.cs (1)
403throw host.Except(InvalidTypeErrorFormat, src, type, reason);
Transforms\ValueToKeyMappingTransformerImpl.cs (6)
460throw env.Except("Could not apply a map over type '{0}' to column '{1}' since it has type '{2}'", 539throw ectx.Except("Unrecognized type '{0}'", mtype); 568throw ectx.Except("Duplicate items at positions {0} and {1}", index, i); 702throw host.Except("We do not know how to serialize terms of type '{0}'", ItemType); 952throw _host.Except("Column '{0}': TermTransform expects {1} slots, but got {2}", info.Name, cv, cval); 987throw _host.Except("Column '{0}': TermTransform expects {1} slots, but got {2}", info.Name, cv, cval);
Utilities\ComponentCreation.cs (2)
296throw env.Except("Couldn't find a {0} class that accepts {1} as arguments.", typeof(TRes).Name, typeof(TArgs).FullName); 298throw env.Except("Found too many {0} classes that accept {1} as arguments.", typeof(TRes).Name, typeof(TArgs).FullName);
Microsoft.ML.Ensemble (12)
PipelineEnsemble.cs (9)
74throw Parent.Host.Except("Predictor {0} is not a row to row mapper", i); 79throw Parent.Host.Except("Predictor {0} does not contain a score column", i); 88throw Parent.Host.Except("Transform pipeline {0} contains transforms that do not implement IRowToRowMapper", i); 440throw Host.Except("Inconsistent schemas: Some schemas do not contain the column '{0}'", name); 638throw env.Except("Label of model {0} has different number of classes than model 0", i); 662throw env.Except("Training schema for model {0} does not have a label column", i); 667throw env.Except("Label column of model {0} has different type than model 0", i); 671throw env.Except("Label column of model {0} has different key value type than model 0", i); 674throw env.Except("Label of model {0} has different values than model 0", i);
Selector\SubModelSelector\BaseSubModelSelector.cs (3)
47throw ch.Except("Metrics did not contain the requested metric '{0}'", metricName); 68throw Host.Except("Unrecognized prediction kind '{0}'", PredictionKind); 131throw Host.Except("Unrecognized prediction kind '{0}'", PredictionKind);
Microsoft.ML.EntryPoints (21)
FeatureCombiner.cs (1)
67throw ch.Except("Encountered {0} invalid training column(s)", errCount);
JsonUtils\ExecuteGraphCommand.cs (5)
66throw _host.Except("Unexpected value for '{0}': {1}", FieldNames.Inputs, graph[FieldNames.Inputs]); 73throw _host.Except("Invalid value for input: {0}", kvp.Value); 91throw _host.Except("Invalid value for output: {0}", kvp.Value); 129throw _host.Except("Port type {0} not supported", kind); 185throw _host.Except("Port type {0} not supported", kind);
JsonUtils\GraphRunner.cs (9)
49throw _host.Except("The following inputs are missing: {0}", string.Join(", ", missingInputs)); 60throw _host.Except("The following nodes didn't run due to circular dependency: {0}", string.Join(", ", remainingNodes)); 93throw _host.Except("Port '{0}' not found", name); 99throw _host.Except("Incorrect type for output '{0}'", name); 129throw _host.Except("Port '{0}' not found", name); 131throw _host.Except("Port '{0}' is not an input", name); 133throw _host.Except("Port '{0}' is already set", name); 135throw _host.Except("Port '{0}' is of incorrect type", name); 149throw _host.Except("Variable '{0}' not found", name);
JsonUtils\JsonManifestUtils.cs (6)
193throw ectx.Except("Field '{0}' is an Optional<> type but is null by default, instead of set to a constructed implicit default.", fieldInfo.Name); 195throw ectx.Except("Field '{0}' is an Optional<> type with a non-implicit default value.", fieldInfo.Name); 202throw ectx.Except("Field '{0}' has a range but is of a non-numeric type.", fieldInfo.Name); 205throw ectx.Except("Field '{0}' has a range attribute that uses a type which is not equal to the field's FieldType.", fieldInfo.Name); 347throw ectx.Except("Unexpected parameter type: {0}", type); 381throw ectx.Except("Field '{0}' is a component of unknown kind", fieldInfo.Name);
Microsoft.ML.FastTree (5)
BoostingFastTree.cs (1)
93throw ch.Except("Unknown optimization algorithm '{0}'", FastTreeTrainerOptions.OptimizationAlgorithm);
FastTree.cs (3)
1596throw Host.Except("Found invalid label {0}. Value should be between 0 and {1}, inclusive.", label, MaxLabel); 1608throw ch.Except("You need to provide {0} column for Ranking problem", DefaultColumnNames.GroupId); 1871throw ch.Except("Found invalid label {0}. Value should be between 0 and {1}, inclusive.", cursor.Label, MaxLabel);
TreeEnsembleFeaturizationEstimator.cs (1)
89throw Env.Except(nameof(options), "The " + nameof(options.InputColumnName) + " cannot be null.");
Microsoft.ML.KMeansClustering (2)
KMeansPlusPlusTrainer.cs (2)
385throw ch.Except( 436throw ch.Except(
Microsoft.ML.Mkl.Components (8)
OlsLinearRegression.cs (6)
163throw ch.Except("Incompatible labelColumn column type {0}, must be {1}", typeLab, NumberDataViewType.Single); 168throw ch.Except("Incompatible feature column type {0}, must be known sized vector of {1}", typeFeat, NumberDataViewType.Single); 170throw ch.Except("Incompatible feature column type {0}, must be vector of {1}", typeFeat, NumberDataViewType.Single); 281throw ch.Except("Ordinary least squares requires more examples than parameters. There are {0} parameters, but {1} examples. To enable training, use a positive L2 weight so this behaves as ridge regression.", m, n); 384throw ch.Except("Ordinary least squares requires more examples than parameters. There are {0} parameters, but {1} examples. To enable training, use a positive L2 weight so this behaves as ridge regression.", m, n); 422throw ch.Except("Cannot hold covariance matrix in memory with {0} features", m - 1);
SymSgdClassificationTrainer.cs (1)
608throw _ch.Except("Acceleration memory budget is too small! Need at least {0} MB for at least one of the instances",
VectorWhitening.cs (1)
409throw ch.Except("Invalid arguments to LAPACK gesvd, error: {0}", r);
Microsoft.ML.Parquet (1)
PartitionedFileLoader.cs (1)
632throw Ch.Except("Invalid TValue: '{0}' of the conversion.", typeof(TValue));
Microsoft.ML.PCA (2)
PcaTrainer.cs (1)
217throw ch.Except("Rank ({0}) cannot be larger than the original dimension ({1})", _rank, dimension);
PcaTransformer.cs (1)
455throw Host.Except("Empty data in column '{0}'", ColumnPairs[iinfo].inputColumnName);
Microsoft.ML.Recommender (2)
MatrixFactorizationTrainer.cs (2)
445throw ch.Except("Column '{0}' for label should be floating point, but is instead {1}", labelCol.Name, labelCol.Type); 454throw ch.Except("Column '{0}' for validation label should be floating point, but is instead {1}", validLabelCol.Name, validLabelCol.Type);
Microsoft.ML.StandardTrainers (4)
Optimizer\Optimizer.cs (3)
244throw Ch.Except("Optimizer unable to proceed with loss function yielding {0}", LastValue); 423throw ch.Except("Optimizer unable to proceed with loss function yielding {0}", Value); 498throw ch.Except("Optimizer unable to proceed with loss function yielding {0}", Value);
Standard\Online\OnlineLinear.cs (1)
150throw ch.Except(
Microsoft.ML.Sweeper (1)
SweepResultEvaluator.cs (1)
71throw _host.Except("Requested metric '{0}' does not exist. Options are:\n{1}", userMetric, sb.ToString());
Microsoft.ML.TorchSharp (3)
AutoFormerV2\ObjectDetectionTrainer.cs (1)
644throw Host.Except("We do not know how to serialize label names of type '{0}'", labelColType.ItemType);
NasBert\NerTrainer.cs (1)
295throw Host.Except("We do not know how to serialize label names of type '{0}'", labelColType.ItemType);
NasBert\TextClassificationTrainer.cs (1)
232throw Host.Except("We do not know how to serialize label names of type '{0}'", labelColType.ItemType);
Microsoft.ML.Transforms (12)
HashJoiningTransform.cs (2)
359throw Host.Except("Unexpected slot index '{1}' in group {0}. Expected 0 to {2}", i, slotIndices[j], srcSlotCount - 1); 364throw Host.Except("Group '{0}' has duplicate slot indices", parts[i]);
MissingValueHandlingTransformer.cs (3)
163throw h.Except("Column '{0}' does not exist", column.Source); 168throw h.Except("Cannot concatenate indicator column of type '{0}' to input column of type '{1}'", 184throw h.Except("Cannot get a DataKind for type '{0}'", replaceItemType.RawType);
MissingValueReplacing.cs (3)
312throw Host.Except("Cannot perform mean imputations on non-numeric '{0}'", type.GetItemType()); 319throw Host.Except("Internal error, undefined ReplacementKind '{0}' assigned in NAReplaceTransform.", columns[iinfo].Replacement); 492throw Host.Except("We do not know how to serialize terms of type '{0}'", type);
MissingValueReplacingUtils.cs (1)
100throw ch.Except("Internal error, unrecognized imputation method ReplacementKind '{0}' or unrecognized type '{1}' " +
Text\LdaTransform.cs (1)
934throw ch.Except("The specified documents are all empty in column '{0}'.", columns[i].InputColumnName);
Text\SentimentAnalyzingTransform.cs (1)
66throw h.Except("resourcePath", "Missing resource for SentimentAnalyzingTransform.");
Text\WordEmbeddingsExtractor.cs (1)
654throw Host.Except("Custom word embedding model file '{0}' could not be found for Word Embeddings transform.", _modelFileNameWithPath);