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][]; 390for (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]; 394for (int j = 0; j < _parent._columns[i].InputColumnNamesArray.Length; j++) 396var srcName = _parent._columns[i].InputColumnNamesArray[j]; 407_types[i] = new VectorDataViewType(NumberDataViewType.Single, 1 << _parent._columns[i].NumberOfBits); 413uint mask = (1U << _parent._columns[iinfo].NumberOfBits) - 1; 414int ngramLength = _parent._columns[iinfo].NgramLength; 415bool rehash = _parent._columns[iinfo].RehashUnigrams; 416bool ordered = _parent._columns[iinfo].UseOrderedHashing; 417bool all = _parent._columns[iinfo].UseAllLengths; 418uint seed = _parent._columns[iinfo].Seed; 569var bldr = new NgramBufferBuilder(_parent._columns[iinfo].NgramLength, _parent._columns[iinfo].SkipLength, 603private protected override void SaveModel(ModelSaveContext ctx) => _parent.SaveModel(ctx); 607var result = new DataViewSchema.DetachedColumn[_parent._columns.Length]; 608for (int i = 0; i < _parent._columns.Length; i++) 612result[i] = new DataViewSchema.DetachedColumn(_parent._columns[i].Name, _types[i], builder.ToAnnotations()); 619if (_parent._slotNamesTypes != null && _parent._slotNamesTypes[i] != null) 623_parent._slotNames[i].CopyTo(ref dst); 625builder.Add(AnnotationUtils.Kinds.SlotNames, _parent._slotNamesTypes[i], getter);