14 writes to Source
Microsoft.ML.Core.Tests (2)
UnitTests\TestEntryPoints.cs (2)
1820
{Name = "Features",
Source
= new[] {"Text"}},
4455
Columns = new[] { new ColumnConcatenatingTransformer.Column { Name = "Features",
Source
= new[] { "Categories", "NumericFeatures" } } }
Microsoft.ML.Data (6)
Transforms\ColumnBindingsBase.cs (4)
140
Source
= new string[] { str };
150
Source
= src.Split(',');
171
Source
= new string[] { str };
193
Source
= src.Split(',');
Transforms\ColumnConcatenatingTransformer.cs (2)
100
column.
Source
= Source.Select(kvp => kvp.Value).ToArray();
116
Source
= source
Microsoft.ML.Transforms (6)
Text\TextFeaturizingEstimator.cs (2)
524
Source
= wordTokCols,
554
Source
= charTokCols,
Text\WordHashBagProducingTransform.cs (2)
123
Source
= curTmpNames,
395
Source
= cols[i].Source,
Text\WrappedTextTransformers.cs (2)
201
Columns = _columns.Select(x => new WordBagBuildingTransformer.Column { Name = x.outputColumnName,
Source
= x.sourceColumnsNames }).ToArray(),
380
Columns = _columns.Select(x => new WordHashBagProducingTransformer.Column { Name = x.outputColumnName,
Source
= x.inputColumnNames }).ToArray(),
47 references to Source
Microsoft.ML.Data (14)
Transforms\ColumnBindingsBase.cs (10)
151
return
Source
.All(s => !string.IsNullOrEmpty(s));
194
return
Source
.All(s => !string.IsNullOrEmpty(s));
201
if (string.IsNullOrWhiteSpace(Name) || Utils.Size(
Source
) == 0)
205
if (
Source
.Any(x => CmdQuoter.NeedsQuoting(x) || x.Contains(",")))
207
if (
Source
.Length == 1 &&
Source
[0] == Name)
214
foreach (var src in
Source
)
226
if (string.IsNullOrWhiteSpace(Name) || Utils.Size(
Source
) == 0)
230
if (
Source
.Any(x => CmdQuoter.NeedsQuoting(x) || x.Contains(",")))
234
foreach (var src in
Source
)
Transforms\ColumnConcatenatingTransformer.cs (4)
86
Contracts.AssertValue(res.
Source
);
89
taggedColumn.Source = res.
Source
.Select(s => new KeyValuePair<string, string>(null, s)).ToArray();
377
env.CheckUserArg(Utils.Size(options.Columns[i].
Source
) > 0, nameof(options.Columns));
380
.Select(c => new ColumnOptions(c.Name, c.
Source
))
Microsoft.ML.Transforms (33)
ExpressionTransformer.cs (2)
323
Utils.Size(options.Column[i].
Source
) == 0 ? new[] { options.Column[i].Name } : options.Column[i].
Source
,
Text\NgramHashingTransformer.cs (1)
348
item.
Source
?? new string[] { item.Name },
Text\TextFeaturizingEstimator.cs (1)
671
var estimator = new TextFeaturizingEstimator(env, args.Columns.Name, args.Columns.
Source
?? new[] { args.Columns.Name }, args);
Text\WordBagTransform.cs (18)
145
h.CheckUserArg(Utils.Size(column.
Source
) > 0, nameof(column.
Source
));
146
h.CheckUserArg(column.
Source
.All(src => !string.IsNullOrWhiteSpace(src)), nameof(column.
Source
));
148
tokenizeColumns[iinfo] = new WordTokenizingEstimator.ColumnOptions(column.Name, column.
Source
.Length > 1 ? column.Name : column.
Source
[0]);
554
Contracts.Check(Utils.Size(cols[i].
Source
) == 1, "too many source columns");
555
extractorCols[i] = new Column { Name = cols[i].Name, Source = cols[i].
Source
[0] };
687
env.CheckUserArg(Utils.Size(col.
Source
) > 0, nameof(col.
Source
));
688
env.CheckUserArg(col.
Source
.All(src => !string.IsNullOrWhiteSpace(src)), nameof(col.
Source
));
689
if (col.
Source
.Length > 1)
690
estimator = estimator.Append<ITransformer>(new ColumnConcatenatingEstimator(env, col.Name, col.
Source
));
712
env.CheckUserArg(Utils.Size(col.
Source
) > 0 &&
713
col.
Source
.All(src => !string.IsNullOrWhiteSpace(src)), nameof(col.
Source
));
715
int srcCount = col.
Source
.Length;
Text\WordHashBagProducingTransform.cs (11)
112
int srcCount = column.
Source
.Length;
114
Contracts.Assert(uniqueSourceNames[iinfo].Length == options.Columns[iinfo].
Source
.Length);
116
tokenizeColumns.Add(new WordTokenizingEstimator.ColumnOptions(curTmpNames[isrc] = uniqueSourceNames[iinfo][isrc], options.Columns[iinfo].
Source
[isrc]));
130
FriendlyNames = options.Columns[iinfo].
Source
,
346
h.CheckUserArg(Utils.Size(column.
Source
) > 0 &&
347
column.
Source
.All(src => !string.IsNullOrWhiteSpace(src)), nameof(column.
Source
));
349
int srcCount = column.
Source
.Length;
353
var tmpName = input.Schema.GetTempColumnName(column.
Source
[isrc]);
356
hashColumns.Add(new HashingEstimator.ColumnOptions(tmpName, column.
Source
[isrc],
395
Source = cols[i].
Source
,