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