7 writes to Source
Microsoft.ML.Data (7)
DataView\LambdaColumnMapper.cs (1)
96Source = src;
Transforms\ColumnBindingsBase.cs (3)
38return ColumnParsingUtils.TryParse(str, out Name, out Source); 52return ColumnParsingUtils.TryParse(str, out Name, out Source, out extra); 101Source = Name;
Transforms\LabelConvertTransform.cs (1)
78: this(env, new Arguments() { Columns = new[] { new Column() { Source = inputColumnName ?? outputColumnName, Name = outputColumnName } } }, input)
Transforms\LabelIndicatorTransform.cs (1)
129: this(env, new Options() { Columns = new[] { new Column() { Source = source ?? name, Name = name } }, ClassIndex = classIndex }, input)
Transforms\TransformBase.cs (1)
554Source = transform.Source.Schema[x.Source].Name,
36 references to Source
Microsoft.ML.Data (36)
Transforms\ColumnBindingsBase.cs (7)
65if (CmdQuoter.NeedsQuoting(Name) || CmdQuoter.NeedsQuoting(Source)) 69if (Source != Name) 70sb.Append(':').Append(Source); 85if (CmdQuoter.NeedsQuoting(Name) || CmdQuoter.NeedsQuoting(Source)) 88sb.Append(Name).Append(':').Append(extra).Append(':').Append(Source); 99Name = Source; 100else if (string.IsNullOrWhiteSpace(Source))
Transforms\ColumnCopying.cs (1)
152var transformer = new ColumnCopyingTransformer(env, options.Columns.Select(x => (x.Name, x.Source)).ToArray());
Transforms\Hashing.cs (1)
340item.Source ?? item.Name,
Transforms\KeyToValue.cs (1)
109var transformer = new KeyToValueMappingTransformer(env, options.Columns.Select(c => (c.Name, c.Source ?? c.Name)).ToArray());
Transforms\KeyToVector.cs (1)
207item.Source ?? item.Name,
Transforms\NormalizeColumn.cs (11)
316col.Source ?? col.Name, 334col.Source ?? col.Name, 354col.Source ?? col.Name, 374col.Source ?? col.Name, 395col.Source ?? col.Name, 974args.Columns[icol].Source ?? args.Columns[icol].Name, 1011args.Columns[icol].Source ?? args.Columns[icol].Name, 1051args.Columns[icol].Source ?? args.Columns[icol].Name, 1091args.Columns[icol].Source ?? args.Columns[icol].Name, 1141args.Columns[icol].Source ?? args.Columns[icol].Name, 1203args.Columns[icol].Source ?? args.Columns[icol].Name,
Transforms\NormalizeUtils.cs (2)
149if (!schema.TryGetColumnIndex(column.Source, out int col)) 150throw env.ExceptUserArg(nameof(input.Columns), $"Column '{column.Source}' does not exist.");
Transforms\SlotsDroppingTransformer.cs (1)
227InputColumnName = column.Source ?? column.Name;
Transforms\TransformBase.cs (5)
346if (!inputSchema.TryGetColumnIndex(item.Source, out colSrc)) 347throw host.ExceptUserArg(nameof(OneToOneColumn.Source), "Source column '{0}' not found", item.Source); 354throw host.ExceptUserArg(nameof(OneToOneColumn.Source), InvalidTypeErrorFormat, item.Source, type, reason);
Transforms\TypeConverting.cs (4)
103if (CmdQuoter.NeedsQuoting(Name) || CmdQuoter.NeedsQuoting(Source)) 124sb.Append(Source); 330var srcType = input.Schema[item.Source ?? item.Name].Type; 338cols[i] = new TypeConvertingEstimator.ColumnOptions(item.Name, kind.ToDataKind(), item.Source ?? item.Name, keyCount);
Transforms\ValueMapping.cs (1)
688(string outputColumnName, string inputColumnName)[] columns = options.Columns.Select(x => (x.Name, x.Source)).ToArray();
Transforms\ValueToKeyMappingTransformer.cs (1)
295item.Source ?? item.Name,