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