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