1 write to Host
Microsoft.ML.Data (1)
Transforms\RowToRowTransformerBase.cs (1)
68
Host
= host;
370 references to Host
Microsoft.ML.Data (133)
Prediction\CalibratorCatalog.cs (4)
270
Host
.CheckValue(ctx, nameof(ctx));
273
Host
.Check(onnx.CanSaveOnnx(ctx), "Cannot be saved as ONNX.");
315
Host
.AssertValue(input);
318
Host
.Assert(input.IsColumnActive(input.Schema[_scoreColIndex]));
Transforms\ColumnConcatenatingTransformer.cs (4)
467
throw
Host
.ExceptSchemaMismatch(nameof(inputSchema), "input", srcName);
490
throw
Host
.ExceptSchemaMismatch(nameof(inputSchema), "input", srcName, itemType.ToString(), curType.ToString());
883
Host
.CheckValue(ctx, nameof(ctx));
902
Host
.CheckValue(ctx, nameof(ctx));
Transforms\ColumnCopying.cs (2)
215
Host
.AssertValue(input);
216
Host
.Assert(0 <= iinfo && iinfo < _columns.Length);
Transforms\FeatureContributionCalculationTransformer.cs (2)
182
throw
Host
.ExceptSchemaMismatch(nameof(schema), "input", _parent.ColumnPairs[0].inputColumnName);
185
throw
Host
.ExceptSchemaMismatch(nameof(schema), "feature", _parent.ColumnPairs[0].inputColumnName, "vector of Single", schema[_featureColumnIndex].Type.ToString());
Transforms\Hashing.cs (1)
1458
Host
.CheckValue(ctx, nameof(ctx));
Transforms\KeyToValue.cs (23)
185
Host
.CheckValue(ctx, nameof(ctx));
214
Host
.AssertValue(input);
215
Host
.Assert(0 <= iinfo && iinfo < _types.Length);
231
Host
.Check(typeVals != null, "Metadata KeyValues does not exist");
234
Host
.Check(typeVals.GetVectorSize() == srcItemType.GetKeyCountAsInt32(
Host
), "KeyValues metadata size does not match column type key count");
250
Host
.Assert(0 <= iinfo && iinfo < _parent.ColumnPairs.Length);
251
Host
.AssertValue(typeKey);
252
Host
.AssertValue(typeVal);
255
Host
.Assert(keyItemType.RawType == typeof(TKey));
256
Host
.Assert(valItemType.RawType == typeof(TValue));
260
Host
.Check(keyMetadata.Length == keyItemType.GetKeyCountAsInt32(
Host
));
293
Parent.
Host
.AssertValue(typeVal);
294
Parent.
Host
.Assert(0 <= iinfo && iinfo < Parent._types.Length);
319
Parent.
Host
.Assert(values.IsDense);
320
Parent.
Host
.Assert(typeKey.RawType == typeof(TKey));
321
Parent.
Host
.Assert(TypeOutput.RawType == typeof(TValue));
365
Parent.
Host
.AssertValue(input);
425
Parent.
Host
.Assert(islot < srcCount);
428
Parent.
Host
.Assert(slot < nextExplicitSlot);
432
Parent.
Host
.Assert(slot < nextExplicitSlot);
447
Parent.
Host
.Assert(islotSrc < srcCount);
Transforms\KeyToVector.cs (52)
258
int keyCount = _infos[i].TypeSrc.GetItemType().GetKeyCountAsInt32(
Host
);
270
throw
Host
.Except(errorMsg);
276
Host
.AssertValue(inputSchema);
281
throw
Host
.ExceptSchemaMismatch(nameof(inputSchema), "input", _parent.ColumnPairs[i].inputColumnName);
295
Host
.Assert(colIndex >= 0);
317
typeNames.Size != srcType.GetItemType().GetKeyCountAsInt32(
Host
))
366
Host
.Assert(0 <= iinfo && iinfo < _infos.Length);
368
Host
.Assert(typeSrc != null && typeSrc.IsKnownSize);
372
Host
.Assert(typeSrc.Size > 1);
383
Host
.Check(namesSlotSrc.Length == typeSrc.Size);
388
int keyCount = typeSrc.ItemType.GetKeyCountAsInt32(
Host
);
390
Host
.Assert(slotLim == (long)typeSrc.Size * keyCount);
395
Host
.Check(namesKeySrc.Length == keyCount);
421
Host
.Assert(slot == slotLim);
428
Host
.Assert(0 <= iinfo && iinfo < _infos.Length);
433
Host
.Assert(valueCount > 0);
436
int size = info.TypeSrc.GetItemType().GetKeyCountAsInt32(
Host
);
451
Host
.AssertValue(input);
452
Host
.Assert(0 <= iinfo && iinfo < _infos.Length);
469
Host
.AssertValue(input);
471
Host
.Assert(keyTypeSrc != null);
472
int size = keyTypeSrc.GetCountAsInt32(
Host
);
473
Host
.Assert(size == _types[iinfo].Size);
474
Host
.Assert(size > 0);
476
Host
.Assert(srcCol >= 0);
502
Host
.AssertValue(input);
505
Host
.Assert(srcVectorType != null);
508
Host
.Assert(keyTypeSrc != null);
509
Host
.Assert(_parent._columns[iinfo].OutputCountVector);
510
int size = keyTypeSrc.GetCountAsInt32(
Host
);
511
Host
.Assert(size == _types[iinfo].Size);
512
Host
.Assert(size > 0);
515
Host
.Assert(cv >= 0);
517
Host
.Assert(srcCol >= 0);
527
Host
.Check(cv == 0 || src.Length == cv);
548
Host
.AssertValue(input);
551
Host
.Assert(srcVectorType != null);
554
Host
.Assert(keyTypeSrc != null);
555
Host
.Assert(!_parent._columns[iinfo].OutputCountVector);
557
int size = keyTypeSrc.GetCountAsInt32(
Host
);
558
Host
.Assert(size > 0);
561
Host
.Assert(cv >= 0);
562
Host
.Assert(_types[iinfo].Size == size * cv);
571
Host
.Check(lenSrc == cv || cv == 0);
582
Host
.Assert(lenSrc == cntSrc);
585
Host
.Assert(count < cntSrc);
598
Host
.Assert(count < cntSrc);
616
Host
.CheckValue(ctx, nameof(ctx));
633
Host
.CheckValue(ctx, nameof(ctx));
670
int keyCount = srcItemType.GetKeyCountAsInt32(
Host
);
671
Host
.Assert(keyCount > 0);
718
var categoryRange = info.TypeSrc.GetItemType().GetKeyCountAsInt32(
Host
);
Transforms\Normalizer.cs (2)
764
Host
.CheckValue(ctx, nameof(ctx));
786
Host
.CheckValue(ctx, nameof(ctx));
Transforms\SlotsDroppingTransformer.cs (32)
483
throw
Host
.ExceptSchemaMismatch(nameof(inputSchema), "input", _parent.ColumnPairs[i].inputColumnName);
489
throw
Host
.ExceptSchemaMismatch(nameof(inputSchema), "input", _parent.ColumnPairs[i].inputColumnName);
521
Host
.AssertValue(slotDropper);
522
Host
.AssertValue(input);
523
Host
.AssertNonEmpty(slotsMin);
524
Host
.AssertNonEmpty(slotsMax);
525
Host
.Assert(slotsMin.Length == slotsMax.Length);
526
Host
.Assert(0 <= iinfo && iinfo < _parent.ColumnPairs.Length);
542
Host
.Assert(vectorType.IsKnownSize);
552
Host
.Assert(0 <= iinfo && iinfo < _parent.ColumnPairs.Length);
570
Host
.Assert(0 <= iinfo && iinfo < _parent.ColumnPairs.Length);
571
Host
.Assert(slotsMax != null && slotsMin != null);
572
Host
.Assert(slotsMax.Length == slotsMin.Length);
721
Host
.AssertValue(input);
722
Host
.Assert(0 <= iinfo && iinfo < _parent.ColumnPairs.Length);
740
Host
.AssertValue(input);
741
Host
.Assert(0 <= iinfo && iinfo < _parent.ColumnPairs.Length);
742
Host
.Assert(!(_srcTypes[iinfo] is VectorDataViewType));
743
Host
.Assert(_suppressed[iinfo]);
761
Host
.AssertValue(input);
762
Host
.Assert(0 <= iinfo && iinfo < _parent.ColumnPairs.Length);
764
Host
.Assert(_suppressed[iinfo]);
782
Host
.AssertValue(input);
783
Host
.Assert(0 <= iinfo && iinfo < _parent.ColumnPairs.Length);
785
Host
.Assert(!_suppressed[iinfo]);
809
Host
.AssertValue(input);
810
Host
.Assert(0 <= iinfo && iinfo < _parent.ColumnPairs.Length);
812
Host
.Assert(input.IsColumnActive(src));
818
Host
.CheckValue(typeDst, nameof(typeDst));
819
Host
.CheckValue(row, nameof(row));
833
Host
.Assert(colIndex >= 0);
881
Host
.CheckValue(ctx, nameof(ctx));
Transforms\TypeConverting.cs (3)
402
if (!CanConvertToType(
Host
, srcCol.Type, _parent._columns[i].OutputKind.ToInternalDataKind(), _parent._columns[i].OutputKeyCount,
405
throw
Host
.ExceptParam(nameof(inputSchema),
479
Host
.CheckValue(ctx, nameof(ctx));
Transforms\ValueMapping.cs (4)
1050
Host
.AssertValue(input);
1051
Host
.Assert(0 <= iinfo && iinfo < _columns.Length);
1061
Host
.CheckValue(ctx, nameof(ctx));
1069
throw
Host
.ExceptSchemaMismatch(nameof(_inputSchema), "input", inputColumnName);
Transforms\ValueToKeyMappingTransformer.cs (4)
736
_termMap[iinfo] = Bind(
Host
, inputSchema, _parent._unboundMaps[iinfo], _infos, _parent._textMetadata, iinfo);
746
Host
.Assert(colIndex >= 0);
904
Host
.CheckValue(ctx, nameof(ctx));
926
Host
.CheckValue(ctx, nameof(ctx));
Microsoft.ML.ImageAnalytics (3)
ImagePixelExtractor.cs (1)
348
Host
.Check(src.Height == height && src.Width == width);
VectorToImageTransform.cs (2)
327
Host
.AssertValue(input);
328
Host
.Assert(0 <= iinfo && iinfo < _parent._columns.Length);
Microsoft.ML.Mkl.Components (15)
VectorWhitening.cs (15)
566
throw
Host
.ExceptSchemaMismatch(nameof(inputSchema), "input", _parent.ColumnPairs[i].inputColumnName);
568
ValidateModel(
Host
, _parent._models[i], _srcTypes[i]);
570
ValidateModel(
Host
, _parent._invModels[i], _srcTypes[i]);
589
Host
.Assert(colIndex >= 0);
599
Host
.AssertValue(input);
600
Host
.Assert(0 <= iinfo && iinfo < _parent.ColumnPairs.Length);
604
Host
.Assert(ex.Kind == WhiteningKind.PrincipalComponentAnalysis || ex.Kind == WhiteningKind.ZeroPhaseComponentAnalysis);
617
Host
.Check(src.Length == cslotSrc, "Invalid column size.");
627
Host
.CheckValue(ctx, nameof(ctx));
649
Host
.Assert(model.Length == dimension * dimension);
652
Host
.Assert(parameters.Kind == WhiteningKind.PrincipalComponentAnalysis || parameters.Kind == WhiteningKind.ZeroPhaseComponentAnalysis);
655
Host
.CheckParam(rank <= dimension, nameof(rank), "Rank must be at most the dimension of untransformed data.");
673
Host
.AssertValue(input);
674
Host
.Assert(0 <= iinfo && iinfo < _parent.ColumnPairs.Length);
676
Host
.Assert(input.IsColumnActive(srcCol));
Microsoft.ML.OnnxTransformer (8)
OnnxTransform.cs (8)
533
throw
Host
.ExceptSchemaMismatch(nameof(inputSchema), "input", _parent.Inputs[i]);
550
throw
Host
.ExceptSchemaMismatch(nameof(inputSchema), "input", _parent.Inputs[i], inputNodeInfo.DataViewType.GetItemType().ToString(), type.ToString());
620
Host
.AssertValue(input);
711
Host
.AssertValue(input);
719
throw
Host
.Except($"Output column {namedOnnxValue.Name} doesn't contain a DenseTensor of expected type {typeof(T)}");
730
Host
.AssertValue(input);
739
throw
Host
.Except($"Output column {namedOnnxValue.Name} doesn't contain a DenseTensor of expected type {typeof(string)}");
754
Host
.AssertValue(input);
Microsoft.ML.PCA (5)
PcaTransformer.cs (5)
552
ValidatePcaInput(
Host
, colPair.inputColumnName, colSchemaInfo.InputType);
555
throw
Host
.ExceptSchemaMismatch(nameof(inputSchema), "input", colPair.inputColumnName,
581
TransformFeatures(
Host
, in src, ref dst, _parent._transformInfos[iinfo]);
605
Host
.CheckValue(ctx, nameof(ctx));
626
Host
.CheckValue(ctx, nameof(ctx));
Microsoft.ML.TensorFlow (7)
TensorflowTransform.cs (7)
545
Host
.CheckValue(parent, nameof(parent));
553
throw
Host
.ExceptSchemaMismatch(nameof(InputSchema), "source", _parent.Inputs[i]);
557
throw
Host
.Except("Variable length input columns not supported");
562
throw
Host
.ExceptSchemaMismatch(nameof(inputSchema), "input", _parent.Inputs[i], expectedType.ToString(), type.ToString());
643
Host
.AssertValue(input);
648
Host
.Assert(type == _parent.OutputTypes[iinfo].GetItemType().RawType);
703
Host
.AssertValue(input);
Microsoft.ML.TorchSharp (14)
AutoFormerV2\ObjectDetectionTrainer.cs (4)
739
if (
Host
is IHostEnvironmentInternal hostInternal)
795
var ch =
Host
.Start("Make Getter");
878
Host
.AssertValue(input);
882
var ch =
Host
.Start("Make Getters");
NasBert\NerTrainer.cs (1)
372
var ch =
Host
.Start("Make Getter");
NasBert\SentenceSimilarityTrainer.cs (1)
266
var ch =
Host
.Start("Make Getter");
NasBert\TextClassificationTrainer.cs (1)
309
var ch =
Host
.Start("Make Getter");
Roberta\QATrainer.cs (4)
723
if (
Host
is IHostEnvironmentInternal hostInternal)
766
var ch =
Host
.Start("Make Getter");
829
Host
.AssertValue(input);
833
var ch =
Host
.Start("Make Getters");
TorchSharpBaseTrainer.cs (3)
462
if (
Host
is IHostEnvironmentInternal hostInternal)
492
Host
.AssertValue(input);
496
var ch =
Host
.Start("Make Getters");
Microsoft.ML.Transforms (177)
Dracula\CountTableTransformer.cs (6)
616
Host
.Check((long)valueCount * _parent.Featurizer.NumFeatures < int.MaxValue, "Too large output size");
635
Host
.Assert(0 <= iinfo && iinfo < _parent.ColumnPairs.Length);
640
Host
.Assert(inputCol.HasSlotNames());
646
Host
.Assert(inputSlotNames.Length == inputCol.Type.GetValueCount());
682
Host
.Assert(_parent.Featurizer.SlotCount[iinfo] == 1);
701
Host
.Assert(_parent.Featurizer.SlotCount[iinfo] == n);
ExpressionTransformer.cs (1)
941
throw
Host
.Except($"Column {inputColumnNames[j]} does not exist in the input schema");
GcnTransform.cs (13)
367
Host
.Assert(0 < ex.Scale && ex.Scale < float.PositiveInfinity);
368
Host
.Assert(_srcTypes[iinfo] is VectorDataViewType);
387
FillValues(
Host
, in src, ref dst, divisor, scale, mean);
398
FillValues(
Host
, in src, ref dst, divisor, scale, mean);
409
FillValues(
Host
, in src, ref dst, divisor, scale, mean);
420
FillValues(
Host
, in src, ref dst, divisor, scale, mean);
424
Host
.Assert(false, "Unsupported normalizer type");
437
FillValues(
Host
, in src, ref dst, divisor, scale);
446
FillValues(
Host
, in src, ref dst, divisor, scale);
455
FillValues(
Host
, in src, ref dst, divisor, scale);
464
FillValues(
Host
, in src, ref dst, divisor, scale);
468
Host
.Assert(false, "Unsupported normalizer type");
609
Host
.CheckValue(ctx, nameof(ctx));
KeyToVectorMapping.cs (24)
178
Host
.Assert(_bitsPerKey[i] > 0);
190
Host
.AssertValue(inputSchema);
195
throw
Host
.ExceptSchemaMismatch(nameof(inputSchema), "input", _parent.ColumnPairs[i].inputColumnName);
209
Host
.Assert(colIndex >= 0);
230
typeNames.Size != _infos[iinfo].TypeSrc.GetItemType().GetKeyCountAsInt32(
Host
))
281
Host
.Assert(0 <= iinfo && iinfo < _infos.Length);
282
Host
.Assert(_types[iinfo].IsKnownSize);
287
Host
.Assert(srcVectorSize > 1);
299
Host
.Check(namesSlotSrc.Length == srcVectorSize);
305
Host
.Assert(slotLim == (long)srcVectorSize * _bitsPerKey[iinfo]);
331
Host
.Assert(slot == slotLim);
338
Host
.AssertValue(input);
339
Host
.Assert(0 <= iinfo && iinfo < _infos.Length);
353
Host
.AssertValue(input);
354
Host
.Assert(_infos[iinfo].TypeSrc is KeyDataViewType);
357
Host
.Assert(bitsPerKey == _types[iinfo].Size);
360
Host
.Assert(dstLength > 0);
362
Host
.Assert(srcCol >= 0);
383
Host
.AssertValue(input);
384
Host
.AssertValue(typeSrc);
385
Host
.Assert(typeSrc.ItemType is KeyDataViewType);
388
Host
.Assert(cv >= 0);
390
Host
.Assert(srcCol >= 0);
399
Host
.Check(src.Length == cv || cv == 0);
MissingValueDroppingTransformer.cs (10)
244
Host
.Assert(!isNA(in def));
255
Host
.AssertValue(isNA);
264
Host
.Assert(newCount <= srcValues.Length);
277
Host
.Assert(dst.GetValues().Length == newCount);
292
Host
.Assert(iDst == newCount);
299
Host
.AssertValue(isNA);
308
Host
.Assert(newCount <= srcValues.Length);
334
Host
.Assert(iDst == newCount);
355
Host
.Assert(iDst == newCount);
356
Host
.Assert(offset == srcValues.Length - newCount);
MissingValueIndicatorTransformer.cs (19)
185
Host
.AssertValue(inputSchema);
190
throw
Host
.ExceptSchemaMismatch(nameof(inputSchema), "input", _parent.ColumnPairs[i].inputColumnName);
209
Host
.Assert(colIndex >= 0);
237
Host
.AssertValue(input);
238
Host
.Assert(0 <= iinfo && iinfo < _infos.Length);
301
Host
.AssertValue(isNA);
302
Host
.AssertValue(indices);
373
Host
.Assert(dstCount <= srcLength);
391
Host
.Assert(0 <= i && i <= iNext);
392
Host
.Assert(iiSrc + iiDst == i);
395
Host
.Assert(iiDst < dstCount);
401
Host
.Assert(iiSrc + 1 < indices.Count);
402
Host
.Assert(iNext < indices[iiSrc + 1]);
406
Host
.Assert(srcLength == iiSrc + iiDst);
407
Host
.Assert(iiDst == dstCount);
423
Host
.Assert(0 <= i && i <= indices[ii]);
428
Host
.Assert(ii < indices.Count);
429
Host
.Assert(indices[ii - 1] < indices[ii]);
443
Host
.CheckValue(ctx, nameof(ctx));
MissingValueReplacing.cs (33)
574
throw
Host
.ExceptParam(nameof(InputSchema), "Column '{0}' item type '{1}' does not match expected ColumnType of '{2}'",
580
throw
Host
.ExceptParam(nameof(inputSchema), "Column '{0}' item type '{1}' cannot be a vector when Columntype is a scalar of type '{2}'",
583
throw
Host
.ExceptParam(nameof(inputSchema), "Column '{0}' is unknown size vector '{1}' must be a scalar instead of type '{2}'", _infos[i].InputColumnName, type, parent._replaceTypes[i]);
585
throw
Host
.ExceptParam(nameof(inputSchema), "Column '{0}' item type '{1}' must be a scalar or a vector of the same size as Columntype '{2}'",
595
Host
.AssertValue(inputSchema);
600
throw
Host
.ExceptSchemaMismatch(nameof(inputSchema), "input", _parent.ColumnPairs[i].inputColumnName);
614
Host
.Assert(colIndex >= 0);
624
Host
.AssertValue(input);
625
Host
.Assert(0 <= iinfo && iinfo < _infos.Length);
647
Host
.Assert(_parent._repValues[iinfo] is T);
680
Host
.Assert(_parent._repValues[iinfo] is T);
692
Host
.Assert(_parent._repValues[iinfo] is T[]);
700
Host
.Check(src.Length == repArray.Length);
710
Host
.AssertValue(isNA);
725
Host
.Assert(srcSize == srcCount);
743
Host
.Assert(srcCount < srcSize);
750
Host
.Assert(iivDst <= iivSrc);
753
Host
.Assert(ivPrev < iv && iv < srcSize);
768
Host
.Assert(iivDst <= srcCount);
770
Host
.Assert(0 <= iivDst);
771
Host
.Assert(repIsDefault || iivDst == srcCount);
780
Host
.AssertValue(rep);
781
Host
.Assert(rep.Length == src.Length);
782
Host
.AssertValue(repIsDefault);
783
Host
.Assert(repIsDefault.Length == src.Length);
784
Host
.AssertValue(isNA);
799
Host
.Assert(srcSize == srcCount);
817
Host
.Assert(srcCount < srcSize);
824
Host
.Assert(iivDst <= iivSrc);
827
Host
.Assert(ivPrev < iv && iv < srcSize);
842
Host
.Assert(iivDst <= srcCount);
844
Host
.Assert(0 <= iivDst);
850
Host
.CheckValue(ctx, nameof(ctx));
RandomFourierFeaturizing.cs (1)
551
Host
.Check(src.Length == transformInfo.SrcDim, "column does not have the expected dimensionality.");
Text\LdaTransform.cs (2)
576
throw
Host
.ExceptSchemaMismatch(nameof(inputSchema), "input", _parent.ColumnPairs[i].inputColumnName);
581
throw
Host
.ExceptSchemaMismatch(nameof(inputSchema), "input", _parent.ColumnPairs[i].inputColumnName, "known-size vector of Single", srcCol.Type.ToString());
Text\NgramHashingTransformer.cs (5)
398
throw
Host
.ExceptSchemaMismatch(nameof(inputSchema), "input", srcName);
401
throw
Host
.ExceptSchemaMismatch(nameof(inputSchema), "input", srcName, NgramHashingEstimator.ExpectedColumnType, columnType.ToString());
553
Host
.Assert(0 <= lim && lim <= Utils.Size(ngram));
554
Host
.Assert(Utils.Size(ngram) == ngramLength);
555
Host
.Assert(icol >= 0);
Text\NgramTransform.cs (18)
527
Host
.Assert(0 <= iinfo && iinfo < _parent.ColumnPairs.Length);
528
Host
.Assert(InputSchema[_srcCols[iinfo]].HasKeyValues());
533
var keyCount = itemType.GetKeyCountAsInt32(
Host
);
535
Host
.Check(unigramNames.Length == keyCount);
547
Host
.Assert(n >= 0);
562
Host
.Assert(0 <= iinfo && iinfo < _parent.ColumnPairs.Length);
563
Host
.Assert(InputSchema[_srcCols[iinfo]].HasKeyValues());
566
var keyCount = itemType.GetKeyCountAsInt32(
Host
);
596
Host
.Assert(n >= 0);
634
Host
.AssertValue(sb);
635
Host
.AssertValue(ngram);
636
Host
.Assert(keyCount > 0);
661
Host
.Assert(0 < lim && lim <= Utils.Size(ngram));
662
Host
.Assert(lim <= Utils.Size(_parent._transformInfos[iinfo].NonEmptyLevels));
688
Host
.AssertValue(_parent._invDocFreqs[iinfo]);
705
Host
.AssertValue(_parent._invDocFreqs[iinfo]);
737
throw
Host
.Except("Unsupported weighting criteria");
746
Host
.CheckValue(ctx, nameof(ctx));
Text\StopWordsRemovingTransformer.cs (10)
369
throw
Host
.ExceptSchemaMismatch(nameof(inputSchema), "input", _parent.ColumnPairs[i].inputColumnName);
375
throw
Host
.ExceptSchemaMismatch(nameof(inputSchema), "input", parent._columns[i].InputColumnName, StopWordsRemovingEstimator.ExpectedColumnType, srcType.ToString());
381
throw
Host
.ExceptSchemaMismatch(nameof(inputSchema), "language", _parent._columns[i].LanguageColumn);
396
Host
.Assert(colIndex >= 0);
404
Host
.AssertValue(input);
405
Host
.Assert(0 <= iinfo && iinfo < _parent.ColumnPairs.Length);
1078
throw
Host
.ExceptSchemaMismatch(nameof(inputSchema), "input", parent.ColumnPairs[i].inputColumnName, StopWordsRemovingEstimator.ExpectedColumnType, srcType.ToString());
1090
Host
.Assert(colIndex >= 0);
1098
Host
.AssertValue(input);
1099
Host
.Assert(0 <= iinfo && iinfo < _parent.ColumnPairs.Length);
Text\TextNormalizing.cs (11)
220
Host
.CheckValue(ctx, nameof(ctx));
263
Host
.Assert(colIndex >= 0);
328
Host
.AssertValue(input);
329
Host
.Assert(0 <= iinfo && iinfo < _parent.ColumnPairs.Length);
333
Host
.Assert(srcType.GetItemType() is TextDataViewType);
337
Host
.Assert(vectorType.Size >= 0);
347
Host
.AssertValue(getSrc);
361
Host
.AssertValue(getSrc);
385
Host
.AssertValue(buffer);
438
Host
.Assert(i == src.Length);
442
Host
.Assert(src.Length == len);
Text\TokenizingByCharacters.cs (8)
218
Host
.CheckValue(ctx, nameof(ctx));
299
Host
.Assert(0 <= iinfo && iinfo < _parent.ColumnPairs.Length);
315
Host
.Assert(bldr.Length == boundaries[boundaries.Length - 1]);
323
Host
.AssertValue(keyValuesBoundaries);
466
Host
.AssertValue(input);
467
Host
.Assert(0 <= iinfo && iinfo < _parent.ColumnPairs.Length);
477
Host
.AssertValue(input);
506
Host
.AssertValue(input);
Text\WordEmbeddingsExtractor.cs (8)
316
Host
.CheckValue(inputSchema, nameof(inputSchema));
317
Host
.CheckValue(parent, nameof(parent));
545
Host
.AssertValue(input);
546
Host
.Assert(0 <= iinfo && iinfo < _parent.ColumnPairs.Length);
553
Host
.AssertValue(input);
554
Host
.Assert(0 <= iinfo && iinfo < _parent.ColumnPairs.Length);
557
Host
.Assert(column.Type is VectorDataViewType);
558
Host
.Assert(column.Type.GetItemType() is TextDataViewType);
Text\WordTokenizing.cs (8)
228
Host
.Assert(colIndex >= 0);
236
Host
.AssertValue(input);
237
Host
.Assert(0 <= iinfo && iinfo < _parent._columns.Length);
242
Host
.Assert(srcType.GetItemType() is TextDataViewType);
251
Host
.AssertValue(input);
277
Host
.AssertValue(input);
305
Host
.AssertNonEmpty(separators);
335
Host
.CheckValue(ctx, nameof(ctx));
Microsoft.ML.Vision (8)
DnnRetrainTransform.cs (8)
768
Host
.CheckValue(parent, nameof(parent));
776
throw
Host
.ExceptSchemaMismatch(nameof(InputSchema), "source", _parent._inputs[i]);
780
throw
Host
.Except("Variable length input columns not supported");
784
throw
Host
.Except("Non-vector columns are not supported and should be loaded as vector columns of size 1");
788
throw
Host
.ExceptSchemaMismatch(nameof(inputSchema), "input", _parent._inputs[i], expectedType.ToString(), type.ToString());
858
Host
.AssertValue(input);
864
Host
.Assert(type == _parent._outputTypes[iinfo].GetItemType().RawType);
871
Host
.AssertValue(input);