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