8 instantiations of ColumnSelectingTransformer
Microsoft.ML.Data (8)
EntryPoints\SchemaManipulation.cs (1)
37
var xf = new
ColumnSelectingTransformer
(env, input.KeepColumns, input.DropColumns, input.KeepHidden, input.IgnoreMissing).Transform(input.Data);
Transforms\ColumnSelecting.cs (6)
99
new
ColumnSelectingTransformer
(env, keepColumns, dropColumns, keepHidden, ignoreMissing))
297
return new
ColumnSelectingTransformer
(env, keepColumns, dropColumns, true);
367
return new
ColumnSelectingTransformer
(env, names.ToArray(), null, keepHidden);
427
=> new
ColumnSelectingTransformer
(env, keepColumns, null, keepHidden).Transform(input);
431
=> new
ColumnSelectingTransformer
(env, null, dropColumns).Transform(input);
438
var transform = new
ColumnSelectingTransformer
(env, options.KeepColumns, options.DropColumns,
Transforms\ValueToKeyMappingTransformer.cs (1)
458
var selectTransformer = new
ColumnSelectingTransformer
(env, new string[] { src }, null);
67 references to ColumnSelectingTransformer
Microsoft.ML.Data (51)
Commands\SaveDataCommand.cs (1)
137
data =
ColumnSelectingTransformer
.CreateKeep(Host, data, keepColumns);
DataLoadSave\DataOperationsCatalog.cs (4)
434
var trainDV =
ColumnSelectingTransformer
.CreateDrop(_env, trainFilter, splitColumn);
435
var testDV =
ColumnSelectingTransformer
.CreateDrop(_env, testFilter, splitColumn);
500
var trainDV =
ColumnSelectingTransformer
.CreateDrop(env, trainFilter, splitColumn);
501
var testDV =
ColumnSelectingTransformer
.CreateDrop(env, testFilter, splitColumn);
EntryPoints\SchemaManipulation.cs (1)
30
public static CommonOutputs.TransformOutput SelectColumns(IHostEnvironment env,
ColumnSelectingTransformer
.Options input)
Evaluators\AnomalyDetectionEvaluator.cs (2)
773
IDataView fold =
ColumnSelectingTransformer
.CreateKeep(Host, overall, colsToKeep.ToArray());
781
return
ColumnSelectingTransformer
.CreateDrop(Host,
Evaluators\BinaryClassifierEvaluator.cs (2)
1392
fold =
ColumnSelectingTransformer
.CreateKeep(Host, fold, colsToKeep.ToArray());
1410
return
ColumnSelectingTransformer
.CreateDrop(Host, overall, BinaryClassifierEvaluator.Entropy);
Evaluators\EvaluatorUtils.cs (3)
937
idv =
ColumnSelectingTransformer
.CreateDrop(env, idv, variableSizeVectorColumnName);
1067
data =
ColumnSelectingTransformer
.CreateDrop(env, data, nonAveragedCols.ToArray());
1786
data =
ColumnSelectingTransformer
.CreateDrop(env, data, data.Schema[stratCol].Name, data.Schema[stratVal].Name);
Evaluators\MamlEvaluator.cs (1)
265
idv =
ColumnSelectingTransformer
.CreateKeep(Host, idv, colsToKeep.ToArray());
Evaluators\MulticlassClassificationEvaluator.cs (3)
1002
return
ColumnSelectingTransformer
.CreateDrop(Host, input, MulticlassClassificationEvaluator.TopKAccuracy);
1008
return
ColumnSelectingTransformer
.CreateDrop(Host, input, MulticlassClassificationEvaluator.AllTopKAccuracy);
1015
input =
ColumnSelectingTransformer
.CreateDrop(Host, input, columnToDrop);
Transforms\ColumnSelecting.cs (32)
16
[assembly: LoadableClass(
ColumnSelectingTransformer
.Summary, typeof(IDataTransform), typeof(
ColumnSelectingTransformer
),
17
typeof(
ColumnSelectingTransformer
.Options), typeof(SignatureDataTransform),
18
ColumnSelectingTransformer
.UserName, "SelectColumns", "SelectColumnsTransform",
ColumnSelectingTransformer
.ShortName, DocName = "transform/SelectTransforms.md")]
20
[assembly: LoadableClass(
ColumnSelectingTransformer
.Summary, typeof(IDataView), typeof(
ColumnSelectingTransformer
), null, typeof(SignatureLoadDataTransform),
21
ColumnSelectingTransformer
.UserName,
ColumnSelectingTransformer
.LoaderSignature)]
23
[assembly: LoadableClass(
ColumnSelectingTransformer
.Summary, typeof(
ColumnSelectingTransformer
), null, typeof(SignatureLoadModel),
24
ColumnSelectingTransformer
.UserName,
ColumnSelectingTransformer
.LoaderSignature)]
27
[assembly: LoadableClass("", typeof(IDataView), typeof(
ColumnSelectingTransformer
), null, typeof(SignatureLoadDataTransform),
28
"",
ColumnSelectingTransformer
.DropLoaderSignature)]
31
[assembly: LoadableClass("", typeof(IDataView), typeof(
ColumnSelectingTransformer
), null, typeof(SignatureLoadDataTransform),
32
"",
ColumnSelectingTransformer
.ChooseLoaderSignature,
ColumnSelectingTransformer
.ChooseLoaderSignatureOld)]
64
public sealed class ColumnSelectingEstimator : TrivialEstimator<
ColumnSelectingTransformer
>
135
if (!Transformer.IgnoreMissing && !
ColumnSelectingTransformer
.IsSchemaValid(inputSchema.Select(x => x.Name),
182
loaderAssemblyName: typeof(
ColumnSelectingTransformer
).Assembly.FullName);
194
loaderAssemblyName: typeof(
ColumnSelectingTransformer
).Assembly.FullName);
206
loaderAssemblyName: typeof(
ColumnSelectingTransformer
).Assembly.FullName);
227
_host = Contracts.CheckRef(env, nameof(env)).Register(nameof(
ColumnSelectingTransformer
));
265
private static
ColumnSelectingTransformer
LoadDropColumnsTransform(IHostEnvironment env, ModelLoadContext ctx, IDataView input)
329
private static
ColumnSelectingTransformer
LoadChooseColumnsTransform(IHostEnvironment env, ModelLoadContext ctx, IDataView input)
371
private static
ColumnSelectingTransformer
Create(IHostEnvironment env, ModelLoadContext ctx)
406
ColumnSelectingTransformer
transform;
438
var
transform = new ColumnSelectingTransformer(env, options.KeepColumns, options.DropColumns,
531
public Mapper(
ColumnSelectingTransformer
transform, DataViewSchema inputSchema)
656
private readonly
ColumnSelectingTransformer
_transform;
659
public SelectColumnsDataTransform(IHostEnvironment env,
ColumnSelectingTransformer
transform, Mapper mapper, IDataView input)
Transforms\ValueMapping.cs (1)
1004
view =
ColumnSelectingTransformer
.CreateKeep(host, view, cols.Select(x => x.outputColumnName).ToArray());
Transforms\ValueToKeyMappingTransformer.cs (1)
458
var
selectTransformer = new ColumnSelectingTransformer(env, new string[] { src }, null);
Microsoft.ML.EntryPoints (5)
CVSplit.cs (2)
72
output.TrainData[i] =
ColumnSelectingTransformer
.CreateDrop(host, trainData, splitCol);
76
output.TestData[i] =
ColumnSelectingTransformer
.CreateDrop(host, testData, splitCol);
ScoreColumnSelector.cs (1)
105
var dropColumn =
ColumnSelectingTransformer
.CreateDrop(env, copyColumn, copyCols.Select(c => c.source).ToArray());
TrainTestSplit.cs (2)
57
trainData =
ColumnSelectingTransformer
.CreateDrop(host, trainData, splitCol);
61
testData =
ColumnSelectingTransformer
.CreateDrop(host, testData, splitCol);
Microsoft.ML.Tests (7)
SvmLightTests.cs (2)
52
CheckSameValues(
ColumnSelectingTransformer
.CreateDrop(Env, data, "Comment"),
53
ColumnSelectingTransformer
.CreateDrop(Env, expectedData, "Comment"), checkId: false);
Transformers\CountTargetEncodingTests.cs (1)
115
var
select = ML.Transforms.SelectColumns("Features").Fit(transformed);
Transformers\SelectColumnsTests.cs (4)
50
var
transformer = est.Fit(dataView);
71
var
transformer = est.Fit(dataView);
90
var
transformer = est.Fit(dataView);
180
var
transformer = est.Fit(dataView);
Microsoft.ML.Transforms (4)
MissingValueHandlingTransformer.cs (1)
245
output =
ColumnSelectingTransformer
.CreateDrop(h, output, dropCols.ToArray()) as IDataTransform;
Text\SentimentAnalyzingTransform.cs (3)
97
input =
ColumnSelectingTransformer
.CreateDrop(env, input, _modelIntermediateColumnNames);
109
return
ColumnSelectingTransformer
.CreateDrop(env, input, scoreTempName) as IDataTransform;
143
return
ColumnSelectingTransformer
.CreateDrop(env, input, hiddenNames.Select(pair => pair.Value).ToArray());