1 write to _parent
Microsoft.ML.Transforms (1)
MissingValueReplacing.cs (1)
559_parent = parent;
32 references to _parent
Microsoft.ML.Transforms (32)
MissingValueReplacing.cs (32)
561_types = new DataViewType[_parent.ColumnPairs.Length]; 562_isNAs = new Delegate[_parent.ColumnPairs.Length]; 563for (int i = 0; i < _parent.ColumnPairs.Length; i++) 572var repType = _parent._repIsDefault[i] != null ? _parent._replaceTypes[i] : _parent._replaceTypes[i].GetItemType(); 575_infos[i].InputColumnName, _parent._replaceTypes[i].GetItemType().ToString(), _infos[i].TypeSrc); 589_isNAs[i] = _parent.GetIsNADelegate(type); 596var infos = new ColInfo[_parent.ColumnPairs.Length]; 597for (int i = 0; i < _parent.ColumnPairs.Length; i++) 599if (!inputSchema.TryGetColumnIndex(_parent.ColumnPairs[i].inputColumnName, out int colSrc)) 600throw Host.ExceptSchemaMismatch(nameof(inputSchema), "input", _parent.ColumnPairs[i].inputColumnName); 601_parent.CheckInputColumn(inputSchema, i, colSrc); 603infos[i] = new ColInfo(_parent.ColumnPairs[i].outputColumnName, _parent.ColumnPairs[i].inputColumnName, type); 610var result = new DataViewSchema.DetachedColumn[_parent.ColumnPairs.Length]; 611for (int i = 0; i < _parent.ColumnPairs.Length; i++) 613InputSchema.TryGetColumnIndex(_parent.ColumnPairs[i].inputColumnName, out int colIndex); 617result[i] = new DataViewSchema.DetachedColumn(_parent.ColumnPairs[i].outputColumnName, _types[i], builder.ToAnnotations()); 647Host.Assert(_parent._repValues[iinfo] is T); 648T rep = (T)_parent._repValues[iinfo]; 677if (_parent._repIsDefault[iinfo] == null) 680Host.Assert(_parent._repValues[iinfo] is T); 681T rep = (T)_parent._repValues[iinfo]; 692Host.Assert(_parent._repValues[iinfo] is T[]); 694T[] repArray = (T[])_parent._repValues[iinfo]; 701FillValues(in src, ref dst, isNA, repArray, _parent._repIsDefault[iinfo]); 863ctx.AddIntermediateVariable(_parent._replaceTypes[iinfo], info.Name))) 890node.AddAttribute("imputed_value_floats", Enumerable.Repeat((float)_parent._repValues[iinfo], 1)); 893if (_parent._repIsDefault[iinfo] != null) 894node.AddAttribute("imputed_value_floats", (float[])_parent._repValues[iinfo]); 896node.AddAttribute("imputed_value_floats", Enumerable.Repeat((float)_parent._repValues[iinfo], 1));