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];
563
for (int i = 0; i <
_parent
.ColumnPairs.Length; i++)
572
var 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);
596
var infos = new ColInfo[
_parent
.ColumnPairs.Length];
597
for (int i = 0; i <
_parent
.ColumnPairs.Length; i++)
599
if (!inputSchema.TryGetColumnIndex(
_parent
.ColumnPairs[i].inputColumnName, out int colSrc))
600
throw Host.ExceptSchemaMismatch(nameof(inputSchema), "input",
_parent
.ColumnPairs[i].inputColumnName);
601
_parent
.CheckInputColumn(inputSchema, i, colSrc);
603
infos[i] = new ColInfo(
_parent
.ColumnPairs[i].outputColumnName,
_parent
.ColumnPairs[i].inputColumnName, type);
610
var result = new DataViewSchema.DetachedColumn[
_parent
.ColumnPairs.Length];
611
for (int i = 0; i <
_parent
.ColumnPairs.Length; i++)
613
InputSchema.TryGetColumnIndex(
_parent
.ColumnPairs[i].inputColumnName, out int colIndex);
617
result[i] = new DataViewSchema.DetachedColumn(
_parent
.ColumnPairs[i].outputColumnName, _types[i], builder.ToAnnotations());
647
Host.Assert(
_parent
._repValues[iinfo] is T);
648
T rep = (T)
_parent
._repValues[iinfo];
677
if (
_parent
._repIsDefault[iinfo] == null)
680
Host.Assert(
_parent
._repValues[iinfo] is T);
681
T rep = (T)
_parent
._repValues[iinfo];
692
Host.Assert(
_parent
._repValues[iinfo] is T[]);
694
T[] repArray = (T[])
_parent
._repValues[iinfo];
701
FillValues(in src, ref dst, isNA, repArray,
_parent
._repIsDefault[iinfo]);
863
ctx.AddIntermediateVariable(
_parent
._replaceTypes[iinfo], info.Name)))
890
node.AddAttribute("imputed_value_floats", Enumerable.Repeat((float)
_parent
._repValues[iinfo], 1));
893
if (
_parent
._repIsDefault[iinfo] != null)
894
node.AddAttribute("imputed_value_floats", (float[])
_parent
._repValues[iinfo]);
896
node.AddAttribute("imputed_value_floats", Enumerable.Repeat((float)
_parent
._repValues[iinfo], 1));