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