32 references to ExceptParam
Microsoft.ML.Core (3)
ComponentModel\AssemblyLoadingUtils.cs (1)
36
throw Contracts.
ExceptParam
(nameof(path), "File does not exist at path: {0}", path);
Utilities\HybridMemoryStream.cs (2)
53
throw Contracts.
ExceptParam
(nameof(maxLen), "must be in range [0,{0}]", Utils.ArrayMaxSize);
73
throw Contracts.
ExceptParam
(nameof(maxLen), "must be in range [0,{0}]", Utils.ArrayMaxSize);
Microsoft.ML.Data (25)
Data\SchemaDefinition.cs (5)
310
throw Contracts.
ExceptParam
(nameof(columnName),
393
throw Contracts.
ExceptParam
(nameof(userType), "Member {0} cannot be marked with multiple attributes, {1}, derived from {2}.",
407
throw Contracts.
ExceptParam
(nameof(userType), "Duplicate column name '{0}' detected, this is disallowed", name);
441
throw Contracts.
ExceptParam
(nameof(userType), "Member {0} marked with KeyType attribute, but does not appear to be a valid kind of data for a key type", memberInfo.Name);
452
throw Contracts.
ExceptParam
(nameof(userType), $"Member {memberInfo.Name} marked with {nameof(VectorTypeAttribute)}, but does not appear to be a vector type", memberInfo.Name);
DataLoadSave\Binary\BinaryLoaderSaverCatalog.cs (1)
52
throw Contracts.
ExceptParam
(nameof(path), "File does not exist at path: {0}", path);
DataLoadSave\Text\TextLoaderSaverCatalog.cs (1)
314
throw Contracts.
ExceptParam
(nameof(path), "File or directory does not exist at path: {0}", path);
DataView\InternalSchemaDefinition.cs (4)
201
throw Contracts.
ExceptParam
(nameof(rawType), "Could not determine an IDataView type and registered custom types for member {0}", name);
239
throw Contracts.
ExceptParam
(nameof(userSchemaDefinition), "No field or property with name '{0}' found in type '{1}'",
278
throw Contracts.
ExceptParam
(nameof(userSchemaDefinition), "Column '{0}' is supposed to be {1}, but type of associated field '{2}' is {3}",
284
throw Contracts.
ExceptParam
(nameof(userSchemaDefinition), "Column '{0}' is supposed to have item type {1}, but associated field has type {2}",
Training\TrainerUtils.cs (13)
58
throw Contracts.
ExceptParam
(nameof(data), "Training feature column '{0}' must be a known-size vector of R4, but has type: {1}.", col.Name, col.Type);
97
throw Contracts.
ExceptParam
(nameof(data),
103
throw Contracts.
ExceptParam
(nameof(data),
108
throw Contracts.
ExceptParam
(nameof(data),
127
throw Contracts.
ExceptParam
(nameof(data),
148
throw Contracts.
ExceptParam
(nameof(data), "Maximum label is too large for multi-class: {0}.", keyType.Count);
155
throw Contracts.
ExceptParam
(nameof(data), "Training label column '{0}' type is not valid for multi-class: {1}. Type must be Single or Double.", col.Name, col.Type);
165
throw Contracts.
ExceptParam
(nameof(data),
174
throw Contracts.
ExceptParam
(nameof(data), "Training label column '{0}' contains no valid values for multi-class.", col.Name);
177
throw Contracts.
ExceptParam
(nameof(data), "Maximum label is too large for multi-class: {0}.", max);
196
throw Contracts.
ExceptParam
(nameof(data), "Training label column '{0}' must be a known-size vector of Single, but has type: {1}.", col.Name, col.Type);
208
throw Contracts.
ExceptParam
(nameof(data), "Training weight column '{0}' must be of floating point numeric type, but has type: {1}.", col.Name, col.Type);
221
throw Contracts.
ExceptParam
(nameof(data), "Training group column '{0}' type is invalid: {1}. Must be Key type.", col.Name, col.Type);
Transforms\Hashing.cs (1)
1841
throw Contracts.
ExceptParam
(nameof(numberOfBits), $"Cannot support maximumNumberOfInverts for a {0} bit hash. 30 is the maximum possible.", numberOfBits);
Microsoft.ML.StandardTrainers (1)
Standard\LogisticRegression\LbfgsPredictorBase.cs (1)
445
throw Contracts.
ExceptParam
(nameof(data),
Microsoft.ML.Transforms (3)
SvmLight\SvmLightLoaderSaverCatalog.cs (2)
74
throw Contracts.
ExceptParam
(nameof(path), "File does not exist at path: {0}", path);
96
throw Contracts.
ExceptParam
(nameof(path), "File does not exist at path: {0}", path);
Text\NgramHashingTransformer.cs (1)
961
throw Contracts.
ExceptParam
(nameof(numberOfBits), $"Cannot support maximumNumberOfInverts for a {0} bit hash. 30 is the maximum possible.", numberOfBits);