319 references to CheckDecode
Microsoft.ML.Core (3)
Data\ModelLoadContext.cs (3)
141
_ectx.
CheckDecode
(-1 <= id && id < Utils.Size(Strings));
164
_ectx.
CheckDecode
(0 <= id && id < Utils.Size(Strings));
166
_ectx.
CheckDecode
(str.Length > 0);
Microsoft.ML.Data (88)
DataLoadSave\Binary\BinaryLoader.cs (3)
845
ch.
CheckDecode
(_threads >= 0);
863
ch.
CheckDecode
(0 <= _shuffleBlocks);
904
h.
CheckDecode
(retVal.RowCount == 0);
DataLoadSave\LegacyCompositeDataLoader.cs (4)
376
h.
CheckDecode
(cbFloat == sizeof(float));
379
h.
CheckDecode
(cxf >= 0);
464
host.
CheckDecode
(cbFloat == sizeof(float));
467
host.
CheckDecode
(cxf >= 0);
DataLoadSave\Text\TextLoader.cs (8)
1419
host.
CheckDecode
(cbFloat == sizeof(float));
1421
host.
CheckDecode
(_maxRows > 0);
1440
host.
CheckDecode
((_flags & ~acceptableFlags) == 0);
1443
host.
CheckDecode
(0 <= _inputSize && _inputSize < SrcLim);
1447
host.
CheckDecode
(Utils.Size(_separators) > 0);
1457
host.
CheckDecode
((_flags & OptionFlags.AllowSparse) == 0);
1463
host.
CheckDecode
(_decimalMarker == '.' || _decimalMarker == ',');
1471
host.
CheckDecode
(!_separators.Contains(_escapeChar));
DataLoadSave\Transpose\TransposeLoader.cs (13)
157
Host.
CheckDecode
(_offset == 0 || (Header.HeaderSize <= _offset && _offset <= _parent._header.TailOffset));
160
Host.
CheckDecode
(0 <= _length && _offset <= _parent._header.TailOffset - _length);
232
Host.
CheckDecode
(HasDataView);
251
Host.
CheckDecode
(rowCount == 0 || _parent._header.RowCount == rowCount);
254
Host.
CheckDecode
(schema.Count == _parent._header.ColumnCount);
279
Host.
CheckDecode
(HasDataView || parent.HasRowData);
296
Host.
CheckDecode
(schema.Count == 1);
304
Host.
CheckDecode
(vectorType.Size == _parent._header.RowCount);
313
Host.
CheckDecode
(type.GetValueCount() == rowCount);
315
Host.
CheckDecode
(type.GetItemType().Equals(vectorType.ItemType));
437
_host.
CheckDecode
(_threads >= 0);
469
_host.
CheckDecode
(_threads >= 0);
507
h.
CheckDecode
(schemaView.GetRowCount() == 0);
Evaluators\BinaryClassifierEvaluator.cs (2)
1098
Host.
CheckDecode
(!string.IsNullOrEmpty(_probCol) || _useRaw);
1099
Host.
CheckDecode
(FloatUtils.IsFinite(_threshold));
Evaluators\ClusteringEvaluator.cs (1)
612
Host.
CheckDecode
(_numClusters > 0);
Evaluators\MulticlassClassificationEvaluator.cs (1)
650
Host.
CheckDecode
(_numClasses > 0);
Evaluators\QuantileRegressionEvaluator.cs (1)
309
Host.
CheckDecode
(_scoreSize > 0);
Evaluators\RankingEvaluator.cs (1)
725
Host.
CheckDecode
(0 < _truncationLevel);
Prediction\Calibrator.cs (14)
1228
_host.
CheckDecode
(cbFloat == sizeof(float));
1231
_host.
CheckDecode
(0 < BinSize && BinSize < float.PositiveInfinity);
1234
_host.
CheckDecode
(FloatUtils.IsFinite(Min));
1237
_host.
CheckDecode
(Utils.Size(_binProbs) > 0);
1238
_host.
CheckDecode
(_binProbs.All(x => (0 <= x && x <= 1)));
1725
_host.
CheckDecode
(FloatUtils.IsFinite(Slope));
1728
_host.
CheckDecode
(FloatUtils.IsFinite(Offset));
2006
_host.
CheckDecode
(cbFloat == sizeof(float));
2009
_host.
CheckDecode
(numPieces >= 0);
2020
_host.
CheckDecode
(minX <= maxX);
2021
_host.
CheckDecode
(minX > maxPrev);
2022
_host.
CheckDecode
(val > valuePrev || val == valuePrev && i == 0);
2033
_host.
CheckDecode
(valuePrev <= 1);
2080
_host.
CheckDecode
(valuePrev <= 1);
Scorers\MulticlassClassificationScorer.cs (4)
141
_host.
CheckDecode
(saver.TryLoadTypeAndValue(ctx.Reader.BaseStream, out type, out value));
143
_host.
CheckDecode
(_type != null);
144
_host.
CheckDecode
(value != null);
152
_host.
CheckDecode
(value is VBuffer<T>);
Scorers\PredictedLabelScorerBase.cs (2)
149
env.
CheckDecode
(mapper.OutputSchema.TryGetColumnIndex(scoreCol, out scoreColIndex));
152
env.
CheckDecode
(outputTypeMatches(scoreType));
Transforms\BootstrapSamplingTransformer.cs (1)
128
Host.
CheckDecode
(_poolSize >= 0);
Transforms\ColumnSelecting.cs (1)
271
env.
CheckDecode
(cbFloat == sizeof(float));
Transforms\GenerateNumberTransform.cs (1)
296
Host.
CheckDecode
(cbFloat == sizeof(float));
Transforms\InvertHashUtils.cs (3)
362
ch.
CheckDecode
(vectorType.ItemType is TextDataViewType);
366
ch.
CheckDecode
(bufferLen >= 0);
375
ch.
CheckDecode
(stream.ReadByte() == -1);
Transforms\KeyToVector.cs (1)
171
env.
CheckDecode
(cbFloat == sizeof(float));
Transforms\LabelConvertTransform.cs (1)
118
h.
CheckDecode
(cbFloat == sizeof(float));
Transforms\NAFilter.cs (2)
134
Host.
CheckDecode
(cbFloat == sizeof(Single) || cbFloat == sizeof(Double));
136
Host.
CheckDecode
(cinfo > 0);
Transforms\Normalizer.cs (1)
670
env.
CheckDecode
(cbFloat == sizeof(float));
Transforms\RangeFilter.cs (1)
147
Host.
CheckDecode
(cbFloat == sizeof(float));
Transforms\RowShufflingTransformer.cs (2)
142
Host.
CheckDecode
(_poolRows > 0);
146
Host.
CheckDecode
(!(_poolOnly && _forceShuffleSource));
Transforms\SkipTakeFilter.cs (2)
162
h.
CheckDecode
(skip >= 0);
164
h.
CheckDecode
(take >= 0);
Transforms\SlotsDroppingTransformer.cs (1)
299
Host.
CheckDecode
(Utils.Size(SlotsMin[i]) > 0);
Transforms\TransformBase.cs (2)
380
host.
CheckDecode
(cinfo > 0);
393
host.
CheckDecode
(!string.IsNullOrEmpty(src));
Transforms\TypeConverting.cs (5)
245
env.
CheckDecode
(cbFloat == sizeof(float));
266
Host.
CheckDecode
(Enum.IsDefined(typeof(InternalDataKind), kind));
276
Host.
CheckDecode
(min == 0);
281
Host.
CheckDecode
(contiguous);
286
Host.
CheckDecode
(0 < count);
Transforms\ValueMapping.cs (2)
752
ectx.
CheckDecode
(size <= int.MaxValue);
756
ectx.
CheckDecode
(cb == rgb.Length);
Transforms\ValueToKeyMappingTransformer.cs (1)
343
host.
CheckDecode
(cmap == columnsLength);
Transforms\ValueToKeyMappingTransformerImpl.cs (7)
519
ectx.
CheckDecode
(Enum.IsDefined(typeof(MapType), mtype));
533
ectx.
CheckDecode
(codec.Type is PrimitiveDataViewType);
535
ectx.
CheckDecode
(count >= 0);
605
ectx.
CheckDecode
(cstr >= 0);
610
ectx.
CheckDecode
(nstr.Id == istr);
614
ectx.
CheckDecode
(pool.Get("") == null);
628
host.
CheckDecode
(_pool.Get("") == null);
Microsoft.ML.Ensemble (14)
OutputCombiners\BaseAverager.cs (1)
30
Host.
CheckDecode
(cbFloat == sizeof(Single));
OutputCombiners\BaseMultiCombiner.cs (1)
48
Host.
CheckDecode
(cbFloat == sizeof(Single));
OutputCombiners\BaseStacking.cs (2)
60
env.
CheckDecode
(cbFloat == sizeof(Single));
62
env.
CheckDecode
(0 <= ValidationDatasetProportion && ValidationDatasetProportion < 1);
OutputCombiners\Median.cs (1)
51
_host.
CheckDecode
(cbFloat == sizeof(Single));
OutputCombiners\MultiVoting.cs (1)
49
Host.
CheckDecode
(!Normalize);
OutputCombiners\MultiWeightedAverage.cs (1)
69
Host.
CheckDecode
(Enum.IsDefined(typeof(MultiWeightageKind), _weightageKind));
OutputCombiners\Voting.cs (1)
49
_host.
CheckDecode
(cbFloat == sizeof(Single));
OutputCombiners\WeightedAverage.cs (1)
66
Host.
CheckDecode
(Enum.IsDefined(typeof(WeightageKind), _weightageKind));
PipelineEnsemble.cs (2)
465
Host.
CheckDecode
(length > 0);
478
Host.
CheckDecode
(length >= 0);
Trainer\EnsembleModelParametersBase.cs (3)
58
Host.
CheckDecode
(count > 0);
61
Host.
CheckDecode
(weightCount == 0 || weightCount == count);
73
Host.
CheckDecode
(numMetrics >= 0);
Microsoft.ML.FastTree (9)
FastTree.cs (1)
2882
Host.
CheckDecode
(NumFeatures >= 0);
GamModelParameters.cs (8)
124
Host.
CheckDecode
(NumberOfShapeFunctions >= 0);
126
Host.
CheckDecode
(_numInputFeatures >= 0);
138
Host.
CheckDecode
(Utils.Size(_binEffects[i]) >= 1);
146
Host.
CheckDecode
(len >= 0);
153
Host.
CheckDecode
(0 <= key && key < _numInputFeatures);
155
Host.
CheckDecode
(0 <= val && val < NumberOfShapeFunctions);
156
Host.
CheckDecode
(!_inputFeatureToShapeFunctionMap.ContainsKey(key));
157
Host.
CheckDecode
(_shapeToInputMap[val] == -1);
Microsoft.ML.ImageAnalytics (4)
ImageResizer.cs (4)
203
Host.
CheckDecode
(width > 0);
205
Host.
CheckDecode
(height > 0);
207
Host.
CheckDecode
(Enum.IsDefined(typeof(ImageResizingEstimator.ResizingKind), scale));
209
Host.
CheckDecode
(Enum.IsDefined(typeof(ImageResizingEstimator.Anchor), anchor));
Microsoft.ML.KMeansClustering (4)
KMeansModelParameters.cs (4)
122
Host.
CheckDecode
(_k > 0);
124
Host.
CheckDecode
(_dimensionality > 0);
133
Host.
CheckDecode
(0 <= count && count <= _dimensionality);
136
Host.
CheckDecode
(FloatUtils.IsFinite(values));
Microsoft.ML.Mkl.Components (3)
OlsLinearRegression.cs (3)
818
Host.
CheckDecode
(Weight.IsDense);
827
Host.
CheckDecode
(!Double.IsNaN(RSquaredAdjusted) || !hasStats);
833
Host.
CheckDecode
(FloatUtils.IsFinite(_standardErrors[i]) && _standardErrors[i] >= 0);
Microsoft.ML.OnnxTransformer (2)
OnnxTransform.cs (2)
174
env.
CheckDecode
(numInputs > 0);
181
env.
CheckDecode
(numOutputs > 0);
Microsoft.ML.Parquet (4)
PartitionedPathParser.cs (4)
130
_host.
CheckDecode
(numColumns >= 0);
136
_host.
CheckDecode
(column != null);
243
_host.
CheckDecode
(numColumns >= 0);
249
_host.
CheckDecode
(column != null);
Microsoft.ML.PCA (5)
PcaTrainer.cs (4)
486
Host.
CheckDecode
(FloatUtils.IsFinite(_dimension));
489
Host.
CheckDecode
(FloatUtils.IsFinite(_rank));
495
Host.
CheckDecode
(meanArray.All(FloatUtils.IsFinite));
510
Host.
CheckDecode
(vi.All(FloatUtils.IsFinite));
PcaTransformer.cs (1)
276
env.
CheckDecode
(cbFloat == sizeof(float));
Microsoft.ML.Recommender (7)
MatrixFactorizationPredictor.cs (7)
125
_host.
CheckDecode
(NumberOfRows > 0);
130
_host.
CheckDecode
(mMin == 0);
131
_host.
CheckDecode
((ulong)NumberOfRows <= ulong.MaxValue - mMin);
134
_host.
CheckDecode
(NumberOfColumns > 0);
139
_host.
CheckDecode
(nMin == 0);
140
_host.
CheckDecode
((ulong)NumberOfColumns <= ulong.MaxValue - nMin);
143
_host.
CheckDecode
(ApproximationRank > 0);
Microsoft.ML.StandardTrainers (35)
FactorizationMachine\FieldAwareFactorizationMachineModelParameters.cs (5)
143
Host.
CheckDecode
(fieldCount > 0);
145
Host.
CheckDecode
(featureCount > 0);
147
Host.
CheckDecode
(latentDim > 0);
151
Host.
CheckDecode
(Utils.Size(linearWeights) == featureCount);
153
Host.
CheckDecode
(Utils.Size(latentWeights) == featureCount * fieldCount * latentDim);
LdSvm\LdSvmModelParameters.cs (2)
107
Host.
CheckDecode
(_numLeaf > 1 && (_numLeaf & (_numLeaf - 1)) == 0);
109
Host.
CheckDecode
(numFeatures > 0);
Standard\LinearModelParameters.cs (6)
169
Host.
CheckDecode
(FloatUtils.IsFinite(Bias));
175
Host.
CheckDecode
(0 <= cind && cind < len);
182
Host.
CheckDecode
(prev < indices[i]);
185
Host.
CheckDecode
(prev < len);
192
Host.
CheckDecode
(cwht == cind || (cind == 0 && cwht == len));
195
Host.
CheckDecode
(Utils.Size(weights) == 0 || weights.All(x => FloatUtils.IsFinite(x)));
Standard\LogisticRegression\MulticlassLogisticRegression.cs (12)
552
Host.
CheckDecode
(NumberOfFeatures >= 1);
555
Host.
CheckDecode
(NumberOfClasses >= 1);
565
Host.
CheckDecode
(numIndices == 0);
567
Host.
CheckDecode
(numWeights == NumberOfClasses * NumberOfFeatures);
579
Host.
CheckDecode
(numStarts == NumberOfClasses + 1);
581
Host.
CheckDecode
(starts[0] == 0);
582
Host.
CheckDecode
(Utils.IsMonotonicallyIncreasing(starts));
585
Host.
CheckDecode
(numIndices == starts[starts.Length - 1]);
591
Host.
CheckDecode
(Utils.IsIncreasing(0, indices[i], NumberOfFeatures));
595
Host.
CheckDecode
(numValues == numIndices);
1073
Host.
CheckDecode
(0 <= id && id < Utils.Size(ctx.Strings));
1075
Host.
CheckDecode
(str.Length > 0);
Standard\ModelStatistics.cs (3)
119
Env.
CheckDecode
(ParametersCount > 0);
122
Env.
CheckDecode
(TrainingExampleCount > 0);
277
env.
CheckDecode
(length >= ParametersCount);
Standard\MulticlassClassification\MulticlassNaiveBayesTrainer.cs (3)
331
Host.
CheckDecode
(labelCount >= 0);
334
Host.
CheckDecode
(_featureCount >= 0);
345
Host.
CheckDecode
(_featureHistogram[iLabel][iFeature] >= 0);
Standard\MulticlassClassification\OneVersusAllTrainer.cs (1)
374
Host.
CheckDecode
(len > 0);
Standard\MulticlassClassification\PairwiseCouplingTrainer.cs (2)
292
Host.
CheckDecode
(_numClasses > 0);
295
Host.
CheckDecode
(count <= int.MaxValue);
Standard\Simple\SimpleTrainers.cs (1)
376
Host.
CheckDecode
(!float.IsNaN(_prob));
Microsoft.ML.TensorFlow (2)
TensorflowTransform.cs (2)
270
env.
CheckDecode
(numInputs > 0);
280
env.
CheckDecode
(numOutputs > 0);
Microsoft.ML.TimeSeries (63)
AdaptiveSingularSpectrumSequenceModeler.cs (13)
367
_host.
CheckDecode
(_seriesLength > 2);
370
_host.
CheckDecode
(_windowSize >= 2);
371
_host.
CheckDecode
(_seriesLength > _windowSize);
374
_host.
CheckDecode
(_trainSize > 2 * _windowSize);
377
_host.
CheckDecode
(1 <= _rank && _rank < _windowSize);
380
_host.
CheckDecode
(0 <= _discountFactor && _discountFactor <= 1);
388
_host.
CheckDecode
(Utils.Size(_alpha) == _windowSize - 1);
393
_host.
CheckDecode
(Utils.Size(_state) == _windowSize - 1);
401
_host.
CheckDecode
(_observationNoiseVariance >= 0);
404
_host.
CheckDecode
(_autoregressionNoiseVariance >= 0);
412
_host.
CheckDecode
(1 <= _maxRank && _maxRank <= _windowSize - 1);
428
_host.
CheckDecode
(_maxTrendRatio >= 0);
433
_host.
CheckDecode
(Utils.Size(tempArray) == _rank * _windowSize);
ExponentialAverageTransform.cs (2)
76
Host.
CheckDecode
(0 <= _decay && _decay <= 1);
77
Host.
CheckDecode
(WindowSize == 1);
IidAnomalyDetectionBase.cs (1)
113
Host.
CheckDecode
(InitialWindowSize == 0);
IidChangePointDetector.cs (2)
164
InternalTransform.Host.
CheckDecode
(InternalTransform.ThresholdScore == AlertingScore.MartingaleScore);
165
InternalTransform.Host.
CheckDecode
(InternalTransform.Side == AnomalySide.TwoSided);
IidSpikeDetector.cs (1)
146
InternalTransform.Host.
CheckDecode
(InternalTransform.ThresholdScore == AlertingScore.PValueScore);
MovingAverageTransform.cs (2)
92
Host.
CheckDecode
(WindowSize >= 1);
93
Host.
CheckDecode
(_weights == null || Utils.Size(_weights) == WindowSize + 1 - _lag);
PercentileThresholdTransform.cs (2)
83
Host.
CheckDecode
(WindowSize >= 1);
84
Host.
CheckDecode
(MinPercentile <= _percentile && _percentile <= MaxPercentile);
PValueTransform.cs (1)
89
Host.
CheckDecode
(WindowSize >= 1);
SequentialAnomalyDetectionTransformBase.cs (8)
211
Host.
CheckDecode
(Enum.IsDefined(typeof(MartingaleType), temp));
215
Host.
CheckDecode
(Enum.IsDefined(typeof(AlertingScore), temp));
218
Host.
CheckDecode
(Martingale != MartingaleType.None || ThresholdScore != AlertingScore.MartingaleScore);
219
Host.
CheckDecode
(WindowSize > 0 || ThresholdScore == AlertingScore.RawScore);
222
Host.
CheckDecode
(Enum.IsDefined(typeof(AnomalySide), temp));
226
Host.
CheckDecode
(0 < PowerMartingaleEpsilon && PowerMartingaleEpsilon < 1);
229
Host.
CheckDecode
(AlertThreshold >= 0);
230
Host.
CheckDecode
(ThresholdScore != AlertingScore.PValueScore || (0 <= AlertThreshold && AlertThreshold <= 1));
SequentialTransformBase.cs (2)
307
Host.
CheckDecode
(windowSize >= 0);
310
Host.
CheckDecode
(initialWindowSize >= 0);
SequentialTransformerBase.cs (2)
396
Host.
CheckDecode
(windowSize >= 0);
399
Host.
CheckDecode
(initialWindowSize >= 0);
SlidingWindowTransformBase.cs (3)
88
Host.
CheckDecode
(WindowSize >= 1);
90
Host.
CheckDecode
(_lag >= 0);
92
Host.
CheckDecode
(Enum.IsDefined(typeof(BeginOptions), r));
SrCnnTransformBase.cs (5)
96
Host.
CheckDecode
(BackAddWindowSize > 0);
100
Host.
CheckDecode
(LookaheadWindowSize > 0);
104
Host.
CheckDecode
(AvergingWindowSize > 0);
108
Host.
CheckDecode
(JudgementWindowSize > 0);
111
Host.
CheckDecode
(AlertThreshold >= 0 && AlertThreshold <= 1);
SsaAnomalyDetectionBase.cs (5)
223
Host.
CheckDecode
(InitialWindowSize == 0);
226
Host.
CheckDecode
(2 <= SeasonalWindowSize);
229
Host.
CheckDecode
(0 <= DiscountFactor && DiscountFactor <= 1);
233
Host.
CheckDecode
(Enum.IsDefined(typeof(ErrorFunction), temp));
241
Host.
CheckDecode
(Model != null);
SsaChangePointDetector.cs (4)
174
InternalTransform.Host.
CheckDecode
(InternalTransform.ThresholdScore == AlertingScore.MartingaleScore);
175
InternalTransform.Host.
CheckDecode
(InternalTransform.Side == AnomalySide.TwoSided);
176
InternalTransform.Host.
CheckDecode
(InternalTransform.DiscountFactor == 1);
177
InternalTransform.Host.
CheckDecode
(InternalTransform.IsAdaptive == false);
SSaForecasting.cs (1)
184
InternalTransform.Host.
CheckDecode
(InternalTransform.IsAdaptive == false);
SsaForecastingBase.cs (2)
157
Host.
CheckDecode
(InitialWindowSize == 0);
165
Host.
CheckDecode
(Model != null);
SsaSpikeDetector.cs (3)
157
InternalTransform.Host.
CheckDecode
(InternalTransform.ThresholdScore == AlertingScore.PValueScore);
158
InternalTransform.Host.
CheckDecode
(InternalTransform.DiscountFactor == 1);
159
InternalTransform.Host.
CheckDecode
(InternalTransform.IsAdaptive == false);
TimeSeriesUtils.cs (4)
30
host.
CheckDecode
(capacity >= 0);
35
host.
CheckDecode
(0 <= count && count <= capacity);
59
host.
CheckDecode
(capacity >= 0);
64
host.
CheckDecode
(0 <= count && count <= capacity);
Microsoft.ML.TorchSharp (9)
AutoFormerV2\ObjectDetectionTrainer.cs (3)
697
env.
CheckDecode
(saver.TryLoadTypeAndValue(ctx.Reader.BaseStream, out type, out value));
699
env.
CheckDecode
(vecType != null);
700
env.
CheckDecode
(value != null);
NasBert\NerTrainer.cs (3)
343
env.
CheckDecode
(saver.TryLoadTypeAndValue(ctx.Reader.BaseStream, out type, out value));
345
env.
CheckDecode
(vecType != null);
346
env.
CheckDecode
(value != null);
NasBert\TextClassificationTrainer.cs (3)
280
env.
CheckDecode
(saver.TryLoadTypeAndValue(ctx.Reader.BaseStream, out type, out value));
282
env.
CheckDecode
(vecType != null);
283
env.
CheckDecode
(value != null);
Microsoft.ML.Transforms (65)
Dracula\CMCountTable.cs (2)
89
env.
CheckDecode
(Depth > 0);
91
env.
CheckDecode
(Width > 0);
Dracula\CountTable.cs (7)
94
env.
CheckDecode
(0 < LabelCardinality && LabelCardinality < LabelCardinalityLim);
97
env.
CheckDecode
(Utils.Size(_priorFrequencies) == LabelCardinality);
98
env.
CheckDecode
(_priorFrequencies.All(x => x >= 0));
101
env.
CheckDecode
(GarbageThreshold >= 0);
105
env.
CheckDecode
(Utils.Size(_garbageCounts) == 0);
108
env.
CheckDecode
(Utils.Size(_garbageCounts) == LabelCardinality);
109
env.
CheckDecode
(_garbageCounts.All(x => x >= 0));
Dracula\CountTableTransformer.cs (1)
543
Host.
CheckDecode
(lc >= 0);
Dracula\DictCountTable.cs (3)
79
env.
CheckDecode
(cnt >= 0);
83
env.
CheckDecode
(!Tables[iTable].ContainsKey(key));
85
env.
CheckDecode
(value >= 0);
Dracula\Featurizer.cs (4)
79
_host.
CheckDecode
(_labelBinCount > 1);
83
_host.
CheckDecode
(NumFeatures == _labelBinCount + _logOddsCount + 1);
90
_host.
CheckDecode
(PriorCoef.All(x => x > 0));
93
_host.
CheckDecode
(LaplaceScale.All(x => x >= 0));
Dracula\MultiCountTable.cs (2)
210
Host.
CheckDecode
(n > 0);
215
Host.
CheckDecode
(size > 0);
ExpressionTransformer.cs (3)
356
env.
CheckDecode
(columnCount > 0);
362
env.
CheckDecode
(inputSize >= 0);
369
env.
CheckDecode
(vectorInputColumn >= -1);
FourierDistributionSampler.cs (4)
165
env.
CheckDecode
(cbFloat == sizeof(float));
168
env.
CheckDecode
(FloatUtils.IsFinite(_gamma));
288
env.
CheckDecode
(cbFloat == sizeof(float));
291
env.
CheckDecode
(FloatUtils.IsFinite(_a));
GcnTransform.cs (1)
272
env.
CheckDecode
(cbFloat == sizeof(float));
GroupTransform.cs (2)
252
_ectx.
CheckDecode
(g > 0);
259
_ectx.
CheckDecode
(k >= 0);
HashJoiningTransform.cs (6)
245
Host.
CheckDecode
(NumBitsMin <= numberOfBits && numberOfBits < NumBitsLim);
251
Host.
CheckDecode
(slotMapCount >= 0);
256
Host.
CheckDecode
(Infos[i].TypeSrc is VectorDataViewType);
262
Host.
CheckDecode
(Utils.Size(slotMap[j]) > 0); // null array could be returned by the call above
265
Host.
CheckDecode
(slotMap[j].Distinct().Count() == slotMap[j].Length);
266
Host.
CheckDecode
(
MissingValueIndicatorTransform.cs (1)
112
ch.
CheckDecode
(cbFloat == sizeof(float));
OptionalColumnTransform.cs (1)
125
env.
CheckDecode
(success);
RandomFourierFeaturizing.cs (4)
143
env.
CheckDecode
(NewDim > 0);
148
env.
CheckDecode
(length == 4);
152
env.
CheckDecode
(ctx.Repository != null &&
448
env.
CheckDecode
(cbFloat == sizeof(float));
Text\LdaTransform.cs (14)
282
ectx.
CheckDecode
(_numVocab > 0);
285
ectx.
CheckDecode
(memBlockSize > 0);
288
ectx.
CheckDecode
(aliasMemBlockSize > 0);
308
ectx.
CheckDecode
(termID >= 0);
310
ectx.
CheckDecode
(termTopicNum >= 0);
749
h.
CheckDecode
(cbFloat == sizeof(float));
1255
ectx.
CheckDecode
(NumberOfTopics > 0);
1262
ectx.
CheckDecode
(SamplingStepCount > 0);
1265
ectx.
CheckDecode
(NumberOfIterations > 0);
1268
ectx.
CheckDecode
(LikelihoodInterval > 0);
1271
ectx.
CheckDecode
(NumberOfThreads >= 0);
1274
ectx.
CheckDecode
(MaximumTokenCountPerDocument > 0);
1277
ectx.
CheckDecode
(NumberOfSummaryTermsPerTopic > 0);
1280
ectx.
CheckDecode
(NumberOfBurninIterations >= 0);
Text\NgramHashingTransformer.cs (1)
284
Host.
CheckDecode
(cbFloat == sizeof(float));
Text\NgramTransform.cs (2)
402
Host.
CheckDecode
(_invDocFreqs[i][j] >= 0);
448
env.
CheckDecode
(cbFloat == sizeof(float));
Text\StopWordsRemovingTransformer.cs (4)
998
Host.
CheckDecode
(cstr > 0);
1004
Host.
CheckDecode
(nstr.Id == istr);
1008
Host.
CheckDecode
(stopwords.Count == cstr);
1010
Host.
CheckDecode
(stopwords.Get("") == null);
Text\TextNormalizing.cs (1)
164
host.
CheckDecode
(Enum.IsDefined(typeof(TextNormalizingEstimator.CaseMode), _caseMode));
UngroupTransform.cs (2)
355
ectx.
CheckDecode
(Enum.IsDefined(typeof(UngroupMode), modeIndex));
359
ectx.
CheckDecode
(k > 0);
Microsoft.ML.Vision (2)
DnnRetrainTransform.cs (2)
509
env.
CheckDecode
(numInputs > 0);
515
env.
CheckDecode
(numOutputs > 0);