88 references to CheckParam
Microsoft.ML.Core (20)
CommandLine\CharCursor.cs (2)
35Contracts.CheckParam(0 <= min && min <= Utils.Size(text), nameof(min)); 36Contracts.CheckParam(min <= lim && lim <= Utils.Size(text), nameof(lim));
CommandLine\CmdParser.cs (1)
465Contracts.CheckParam(type.IsClass, nameof(type));
Data\AnnotationUtils.cs (1)
301Contracts.CheckParam(vectorSize >= 0, nameof(vectorSize));
Data\ModelHeader.cs (2)
132Contracts.CheckParam(fpMin >= 0, nameof(fpMin)); 200Contracts.CheckParam(fpMin >= 0, nameof(fpMin));
Data\ProgressReporter.cs (2)
588Contracts.CheckParam(index >= 0, nameof(index)); 602Contracts.CheckParam(index >= 0, nameof(index));
Utilities\HybridMemoryStream.cs (2)
215Contracts.CheckParam(0 <= offset && offset <= buffer.Length, nameof(offset)); 216Contracts.CheckParam(0 <= count && count <= buffer.Length - offset, nameof(count));
Utilities\NormStr.cs (1)
247Contracts.CheckParam(0 <= id && id < _cns, nameof(id));
Utilities\Utils.cs (4)
730Contracts.CheckParam(length >= 0, nameof(length)); 744Contracts.CheckParam(length >= 0, nameof(length)); 804Contracts.CheckParam(lim >= 0, nameof(lim)); 839Contracts.CheckParam(lim >= 0, nameof(lim));
Utilities\VBufferUtils.cs (5)
69Contracts.CheckParam(length >= 0, nameof(length)); 75Contracts.CheckParam(length >= 0, nameof(length)); 304Contracts.CheckParam(0 <= slot && slot < dst.Length, nameof(slot)); 450Contracts.CheckParam(0 < sparsityThreshold && sparsityThreshold < 1, nameof(sparsityThreshold)); 1353Contracts.CheckParam(0 <= length && length <= Utils.Size(src), nameof(length));
Microsoft.ML.Data (46)
Data\Conversion.cs (8)
623Contracts.CheckParam(!(type is VectorDataViewType), nameof(type)); 624Contracts.CheckParam(type.RawType == typeof(T), nameof(type)); 645Contracts.CheckParam(type.RawType == typeof(T), nameof(type)); 662Contracts.CheckParam(!(type is VectorDataViewType), nameof(type)); 684Contracts.CheckParam(type.ItemType.RawType == typeof(T), nameof(type)); 708Contracts.CheckParam(type.RawType == typeof(T), nameof(type)); 726Contracts.CheckParam(type.RawType == typeof(T), nameof(type)); 756Contracts.CheckParam(type.RawType == typeof(T), nameof(type));
Data\RowCursorUtils.cs (11)
36Contracts.CheckParam(0 <= col && col < row.Schema.Count, nameof(col)); 56Contracts.CheckParam(typeDst is PrimitiveDataViewType, nameof(typeDst)); 58Contracts.CheckParam(0 <= col && col < row.Schema.Count, nameof(col)); 76Contracts.CheckParam(typeDst is PrimitiveDataViewType, nameof(typeDst)); 77Contracts.CheckParam(typeDst.RawType == typeof(TDst), nameof(typeDst)); 79Contracts.CheckParam(0 <= col && col < row.Schema.Count, nameof(col)); 124Contracts.CheckParam(0 <= col && col < row.Schema.Count, nameof(col)); 157Contracts.CheckParam(0 <= col && col < row.Schema.Count, nameof(col)); 175Contracts.CheckParam(typeDst.RawType == typeof(TDst), nameof(typeDst)); 177Contracts.CheckParam(0 <= col && col < row.Schema.Count, nameof(col)); 196Contracts.CheckParam(typeDst.RawType == typeof(TDst), nameof(typeDst));
DataDebuggerPreview.cs (1)
34Contracts.CheckParam(maxRows >= 0, nameof(maxRows));
DataLoadSave\MultiFileSource.cs (4)
72Contracts.CheckParam(0 <= index && index < Count, nameof(index)); 78Contracts.CheckParam(0 <= index && index < Count, nameof(index)); 118Contracts.CheckParam(0 <= index && index < Count, nameof(index)); 124Contracts.CheckParam(0 <= index && index < Count, nameof(index));
DataView\Transposer.cs (3)
1047Contracts.CheckParam(column.Index < Parent.ColumnCount, nameof(column)); 1156Contracts.CheckParam(column.Index < Parent.ColumnCount, nameof(column)); 1343Contracts.CheckParam(0 <= col && col < view.Schema.Count, nameof(col));
DebuggerExtensions.cs (2)
46Contracts.CheckParam(maxRows >= 0, nameof(maxRows)); 47Contracts.CheckParam(maxTrainingRows >= 0, nameof(maxTrainingRows));
Deprecated\Instances\HeaderSchema.cs (4)
87Contracts.CheckParam(count >= 0, nameof(count)); 104Contracts.CheckParam(count >= 0, nameof(count)); 318Contracts.CheckParam(0 <= index && index < _count, nameof(index)); 427Contracts.CheckParam(0 <= index && index < _length, nameof(index));
Deprecated\Vector\VBufferMathUtils.cs (2)
242Contracts.CheckParam(0 <= offset && offset <= dst.Length, nameof(offset)); 243Contracts.CheckParam(src.Length <= dst.Length - offset, nameof(offset));
Scorers\BinaryClassifierScorer.cs (1)
285Contracts.CheckParam(Utils.Size(mapperOutputs) >= 1, nameof(mapperOutputs));
Transforms\ColumnBindingsBase.cs (5)
489Contracts.CheckParam(0 <= col && col < ColumnCount, nameof(col)); 500Contracts.CheckParam(0 <= col && col < ColumnCount, nameof(col)); 511Contracts.CheckParam(0 <= col && col < ColumnCount, nameof(col)); 524Contracts.CheckParam(0 <= col && col < ColumnCount, nameof(col)); 537Contracts.CheckParam(0 <= col && col < ColumnCount, nameof(col));
Transforms\MetadataDispatcher.cs (5)
148Contracts.CheckParam(colCount >= 0, nameof(colCount)); 196Contracts.CheckParam(0 <= index && index < _infos.Length, nameof(index)); 363Contracts.CheckParam(Utils.Size(kindsSrc) >= 2, nameof(kindsSrc)); 364Contracts.CheckParam(!kindsSrc.Any(k => string.IsNullOrWhiteSpace(k)), nameof(kindsSrc)); 393Contracts.CheckParam(0 <= index && index < md.ColCount, nameof(index));
Microsoft.ML.FastTree (6)
Dataset\IntArray.cs (6)
71Contracts.CheckParam(numValues >= 0, nameof(numValues)); 90Contracts.CheckParam(length >= 0, nameof(length)); 91Contracts.CheckParam(Enum.IsDefined(typeof(IntArrayType), type) && type != IntArrayType.Current, nameof(type)); 92Contracts.CheckParam(Enum.IsDefined(typeof(IntArrayBits), bitsPerItem), nameof(bitsPerItem)); 126Contracts.CheckParam(length >= 0, nameof(length)); 127Contracts.CheckParam(type == IntArrayType.Current || type == IntArrayType.Repeat || type == IntArrayType.Segmented, nameof(type));
Microsoft.ML.ImageAnalytics (4)
ImagePixelExtractor.cs (2)
688Contracts.CheckParam(FloatUtils.IsFinite(OffsetImage), nameof(offsetImage)); 689Contracts.CheckParam(FloatUtils.IsFiniteNonZero(ScaleImage), nameof(scaleImage));
VectorToImageTransform.cs (2)
638Contracts.CheckParam(FloatUtils.IsFinite(offsetImage), nameof(offsetImage)); 639Contracts.CheckParam(FloatUtils.IsFiniteNonZero(scaleImage), nameof(scaleImage));
Microsoft.ML.PCA (1)
PcaTransformer.cs (1)
534Contracts.CheckParam(schema[weightIndex].Type == NumberDataViewType.Single, nameof(weightColumn));
Microsoft.ML.StandardTrainers (3)
FactorizationMachine\FieldAwareFactorizationMachineUtils.cs (3)
78Contracts.CheckParam(outputSchema.Count == 2, nameof(outputSchema)); 79Contracts.CheckParam(outputSchema[0].Type is NumberDataViewType, nameof(outputSchema)); 80Contracts.CheckParam(outputSchema[1].Type is NumberDataViewType, nameof(outputSchema));
Microsoft.ML.Sweeper (1)
AsyncSweeper.cs (1)
34Contracts.CheckParam(id >= 0, nameof(id));
Microsoft.ML.TimeSeries (2)
STL\InnerStl.cs (1)
120Contracts.CheckParam(np > 0, nameof(np));
STL\LeastSquares.cs (1)
48Contracts.CheckParam(weights.Count == _length, nameof(weights));
Microsoft.ML.Transforms (5)
FourierDistributionSampler.cs (2)
100Contracts.CheckParam(gamma > 0, nameof(gamma)); 221Contracts.CheckParam(a > 0, nameof(a));
StatefulFilterTransform.cs (3)
117Contracts.CheckParam(n >= 0, nameof(n)); 218Contracts.CheckParam(column.Index < Schema.Count, nameof(column)); 235Contracts.CheckParam(column.Index < Schema.Count, nameof(column));