22 instantiations of ColumnOptions
Microsoft.ML.Data (4)
Transforms\ConversionsExtensionsCatalog.cs (1)
217
var columnOptions = columns.Select(x => new KeyToVectorMappingEstimator.
ColumnOptions
(x.OutputColumnName, x.InputColumnName, outputCountVector)).ToArray();
Transforms\KeyToVector.cs (3)
189
_columns[i] = new KeyToVectorMappingEstimator.
ColumnOptions
(ColumnPairs[i].outputColumnName, ColumnPairs[i].inputColumnName, bags[i]);
205
cols[i] = new KeyToVectorMappingEstimator.
ColumnOptions
(
805
: this(env, new KeyToVectorMappingTransformer(env, new
ColumnOptions
(outputColumnName, inputColumnName ?? outputColumnName, outputCountVector)))
Microsoft.ML.EntryPoints (2)
FeatureCombiner.cs (2)
110
viewTrain = new KeyToVectorMappingTransformer(host, ktv.Select(c => new KeyToVectorMappingEstimator.
ColumnOptions
(c.Name, c.Name)).ToArray()).Transform(viewTrain);
177
Utils.Add(ref ktv, new KeyToVectorMappingEstimator.
ColumnOptions
(colName, col.Name));
Microsoft.ML.Tests (14)
Transformers\KeyToVectorEstimatorTests.cs (14)
61
var pipe = ML.Transforms.Conversion.MapKeyToVector(new KeyToVectorMappingEstimator.
ColumnOptions
("CatA", "TermA", false),
62
new KeyToVectorMappingEstimator.
ColumnOptions
("CatB", "TermB", true),
63
new KeyToVectorMappingEstimator.
ColumnOptions
("CatC", "TermC", true),
64
new KeyToVectorMappingEstimator.
ColumnOptions
("CatCNonBag", "TermC", false));
115
new KeyToVectorMappingEstimator.
ColumnOptions
("CatA", "TA", true),
116
new KeyToVectorMappingEstimator.
ColumnOptions
("CatB", "TB", false),
117
new KeyToVectorMappingEstimator.
ColumnOptions
("CatC", "TC", false),
118
new KeyToVectorMappingEstimator.
ColumnOptions
("CatD", "TD", true),
119
new KeyToVectorMappingEstimator.
ColumnOptions
("CatE", "TE", false),
120
new KeyToVectorMappingEstimator.
ColumnOptions
("CatF", "TF", true),
121
new KeyToVectorMappingEstimator.
ColumnOptions
("CatG", "TG", true),
122
new KeyToVectorMappingEstimator.
ColumnOptions
("CatH", "TH", false)
215
new KeyToVectorMappingEstimator.
ColumnOptions
("CatA", "TermA", false),
216
new KeyToVectorMappingEstimator.
ColumnOptions
("CatB", "TermB", true)
Microsoft.ML.Transforms (2)
OneHotEncoding.cs (1)
311
toVector = new KeyToVectorMappingEstimator(_host, cols.Select(x => new KeyToVectorMappingEstimator.
ColumnOptions
(x.outputColumnName, x.inputColumnName, x.bag)).ToArray());
OneHotHashEncoding.cs (1)
361
toVector = new KeyToVectorMappingEstimator(_host, cols.Select(x => new KeyToVectorMappingEstimator.
ColumnOptions
(x.outputColumnName, x.inputColumnName, x.bag)).ToArray());
12 references to ColumnOptions
Microsoft.ML.Data (9)
Transforms\ConversionsExtensionsCatalog.cs (1)
174
params KeyToVectorMappingEstimator.
ColumnOptions
[] columns)
Transforms\KeyToVector.cs (8)
98
internal IReadOnlyCollection<KeyToVectorMappingEstimator.
ColumnOptions
> Columns => _columns.AsReadOnly();
99
private readonly KeyToVectorMappingEstimator.
ColumnOptions
[] _columns;
101
private static (string outputColumnName, string inputColumnName)[] GetColumnPairs(KeyToVectorMappingEstimator.
ColumnOptions
[] columns)
122
internal KeyToVectorMappingTransformer(IHostEnvironment env, params KeyToVectorMappingEstimator.
ColumnOptions
[] columns) :
187
_columns = new KeyToVectorMappingEstimator.
ColumnOptions
[columnsLength];
200
var cols = new KeyToVectorMappingEstimator.
ColumnOptions
[options.Columns.Length];
799
internal KeyToVectorMappingEstimator(IHostEnvironment env, params
ColumnOptions
[] columns)
822
foreach (
var
colInfo in Transformer.Columns)
Microsoft.ML.EntryPoints (3)
FeatureCombiner.cs (3)
87
private static IDataView ApplyKeyToVec(List<KeyToVectorMappingEstimator.
ColumnOptions
> ktv, IDataView viewTrain, IHost host)
152
private static List<KeyToVectorMappingEstimator.
ColumnOptions
> ConvertFeatures(IEnumerable<DataViewSchema.Column> feats, HashSet<string> featNames, List<KeyValuePair<string, string>> concatNames, IChannel ch,
159
List<KeyToVectorMappingEstimator.
ColumnOptions
> ktv = null;