3 instantiations of ColumnSelectingEstimator
Microsoft.ML.Data (3)
Transforms\ColumnSelecting.cs (2)
113
return new
ColumnSelectingEstimator
(env, columnsToKeep);
124
return 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
)),
111
internal static
ColumnSelectingEstimator
KeepColumns(IHostEnvironment env, params string[] columnsToKeep)
122
internal static
ColumnSelectingEstimator
DropColumns(IHostEnvironment env, params string[] columnsToDrop)
148
/// <see cref="ITransformer"/> resulting from fitting an <see cref="
ColumnSelectingEstimator
"/>.
218
public bool KeepHidden =
ColumnSelectingEstimator
.Defaults.KeepHidden;
221
public bool IgnoreMissing =
ColumnSelectingEstimator
.Defaults.IgnoreMissing;
225
bool 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
132
public 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.
150
public static
ColumnSelectingEstimator
SelectColumns(this TransformsCatalog catalog,
154
columnNames, 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.
168
public 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)
41
var
pipeline = mlContext.Transforms.DropColumns("ExtraColumn");
Dynamic\Transforms\SelectColumns.cs (1)
41
var
pipeline = mlContext.Transforms.SelectColumns("Age", "Education");
Microsoft.ML.Tests (12)
Transformers\SelectColumnsTests.cs (12)
49
var
est =
ColumnSelectingEstimator
.KeepColumns(Env, "A", "C");
70
var
est =
ColumnSelectingEstimator
.KeepColumns(Env, "C", "A");
89
var
est =
ColumnSelectingEstimator
.DropColumns(Env, "A", "C");
111
var
est = ML.Transforms.SelectColumns(new[] { "A", "B" });
124
var
est =
ColumnSelectingEstimator
.KeepColumns(Env, "D", "G");
134
var chain = est.Append(
ColumnSelectingEstimator
.KeepColumns(Env, "C", "A"));
179
var
est =
ColumnSelectingEstimator
.KeepColumns(Env, "A", "B");