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