3 instantiations of ColumnSelectingEstimator
Microsoft.ML.Data (3)
Transforms\ColumnSelecting.cs (2)
113return new ColumnSelectingEstimator(env, columnsToKeep); 124return new ColumnSelectingEstimator(env, null, columnsToDrop);
Transforms\ExtensionsCatalog.cs (1)
153=> new ColumnSelectingEstimator(CatalogUtils.GetEnvironment(catalog),
31 references to ColumnSelectingEstimator
Microsoft.ML.Data (17)
Transforms\ColumnSelecting.cs (8)
98: base(Contracts.CheckRef(env, nameof(env)).Register(nameof(ColumnSelectingEstimator)), 111internal static ColumnSelectingEstimator KeepColumns(IHostEnvironment env, params string[] columnsToKeep) 122internal static ColumnSelectingEstimator DropColumns(IHostEnvironment env, params string[] columnsToDrop) 148/// <see cref="ITransformer"/> resulting from fitting an <see cref="ColumnSelectingEstimator"/>. 218public bool KeepHidden = ColumnSelectingEstimator.Defaults.KeepHidden; 221public bool IgnoreMissing = ColumnSelectingEstimator.Defaults.IgnoreMissing; 225bool keepHidden = ColumnSelectingEstimator.Defaults.KeepHidden, bool ignoreMissing = ColumnSelectingEstimator.Defaults.IgnoreMissing)
Transforms\ExtensionsCatalog.cs (8)
119/// Create a <see cref="ColumnSelectingEstimator"/>, which drops a given list of columns from an <see cref="IDataView"/>. Any column not specified will 132public static ColumnSelectingEstimator DropColumns(this TransformsCatalog catalog, params string[] columnNames) 133=> ColumnSelectingEstimator.DropColumns(CatalogUtils.GetEnvironment(catalog), columnNames); 136/// Create a <see cref="ColumnSelectingEstimator"/>, which keeps a given list of columns in an <see cref="IDataView"/> and drops the others. 150public static ColumnSelectingEstimator SelectColumns(this TransformsCatalog catalog, 154columnNames, null, keepHidden, ColumnSelectingEstimator.Defaults.IgnoreMissing); 157/// Create a <see cref="ColumnSelectingEstimator"/>, which keeps a given list of columns in an <see cref="IDataView"/> and drops the others. 168public static ColumnSelectingEstimator SelectColumns(this TransformsCatalog catalog,
Transforms\ValueToKeyMappingTransformer.cs (1)
476$"had {keyData.Schema.Count} instead. Consider using {nameof(ColumnSelectingEstimator)} on that data first.");
Microsoft.ML.Samples (2)
Dynamic\Transforms\DropColumns.cs (1)
41var pipeline = mlContext.Transforms.DropColumns("ExtraColumn");
Dynamic\Transforms\SelectColumns.cs (1)
41var pipeline = mlContext.Transforms.SelectColumns("Age", "Education");
Microsoft.ML.Tests (12)
Transformers\SelectColumnsTests.cs (12)
49var est = ColumnSelectingEstimator.KeepColumns(Env, "A", "C"); 70var est = ColumnSelectingEstimator.KeepColumns(Env, "C", "A"); 89var est = ColumnSelectingEstimator.DropColumns(Env, "A", "C"); 111var est = ML.Transforms.SelectColumns(new[] { "A", "B" }); 124var est = ColumnSelectingEstimator.KeepColumns(Env, "D", "G"); 134var chain = est.Append(ColumnSelectingEstimator.KeepColumns(Env, "C", "A")); 179var est = ColumnSelectingEstimator.KeepColumns(Env, "A", "B");