1 write to _parent
Microsoft.ML.Transforms (1)
Text\NgramHashingTransformer.cs (1)
385
_parent
= parent;
25 references to _parent
Microsoft.ML.Transforms (25)
Text\NgramHashingTransformer.cs (25)
387
_types = new VectorDataViewType[
_parent
._columns.Length];
388
_srcIndices = new int[
_parent
._columns.Length][];
389
_srcTypes = new DataViewType[
_parent
._columns.Length][];
390
for (int i = 0; i <
_parent
._columns.Length; i++)
392
_srcIndices[i] = new int[
_parent
._columns[i].InputColumnNamesArray.Length];
393
_srcTypes[i] = new DataViewType[
_parent
._columns[i].InputColumnNamesArray.Length];
394
for (int j = 0; j <
_parent
._columns[i].InputColumnNamesArray.Length; j++)
396
var srcName =
_parent
._columns[i].InputColumnNamesArray[j];
407
_types[i] = new VectorDataViewType(NumberDataViewType.Single, 1 <<
_parent
._columns[i].NumberOfBits);
413
uint mask = (1U <<
_parent
._columns[iinfo].NumberOfBits) - 1;
414
int ngramLength =
_parent
._columns[iinfo].NgramLength;
415
bool rehash =
_parent
._columns[iinfo].RehashUnigrams;
416
bool ordered =
_parent
._columns[iinfo].UseOrderedHashing;
417
bool all =
_parent
._columns[iinfo].UseAllLengths;
418
uint seed =
_parent
._columns[iinfo].Seed;
569
var bldr = new NgramBufferBuilder(
_parent
._columns[iinfo].NgramLength,
_parent
._columns[iinfo].SkipLength,
603
private protected override void SaveModel(ModelSaveContext ctx) =>
_parent
.SaveModel(ctx);
607
var result = new DataViewSchema.DetachedColumn[
_parent
._columns.Length];
608
for (int i = 0; i <
_parent
._columns.Length; i++)
612
result[i] = new DataViewSchema.DetachedColumn(
_parent
._columns[i].Name, _types[i], builder.ToAnnotations());
619
if (
_parent
._slotNamesTypes != null &&
_parent
._slotNamesTypes[i] != null)
623
_parent
._slotNames[i].CopyTo(ref dst);
625
builder.Add(AnnotationUtils.Kinds.SlotNames,
_parent
._slotNamesTypes[i], getter);