39 references to ReplacementMode
Microsoft.ML.Samples (4)
Dynamic\Transforms\ReplaceMissingValues.cs (2)
34
.
ReplacementMode
.DefaultValue);
65
.
ReplacementMode
.Mean);
Dynamic\Transforms\ReplaceMissingValuesMultiColumn.cs (2)
40
MissingValueReplacingEstimator.
ReplacementMode
.DefaultValue);
75
MissingValueReplacingEstimator.
ReplacementMode
.Mean);
Microsoft.ML.Tests (19)
Transformers\NAReplaceTests.cs (19)
68
new MissingValueReplacingEstimator.ColumnOptions("A", "A", MissingValueReplacingEstimator.
ReplacementMode
.Mode),
69
new MissingValueReplacingEstimator.ColumnOptions("CA", "C", MissingValueReplacingEstimator.
ReplacementMode
.Mode, imputeBySlot: false),
70
new MissingValueReplacingEstimator.ColumnOptions("CB", "C", MissingValueReplacingEstimator.
ReplacementMode
.Mode),
71
new MissingValueReplacingEstimator.ColumnOptions("B", "B", MissingValueReplacingEstimator.
ReplacementMode
.Mode),
72
new MissingValueReplacingEstimator.ColumnOptions("DA", "D", MissingValueReplacingEstimator.
ReplacementMode
.Mode, imputeBySlot: false),
73
new MissingValueReplacingEstimator.ColumnOptions("DB", "D", MissingValueReplacingEstimator.
ReplacementMode
.Mode)
113
new MissingValueReplacingEstimator.ColumnOptions("NAA", "A", MissingValueReplacingEstimator.
ReplacementMode
.Mean),
114
new MissingValueReplacingEstimator.ColumnOptions("NAB", "B", MissingValueReplacingEstimator.
ReplacementMode
.Mean),
115
new MissingValueReplacingEstimator.ColumnOptions("NAC", "C", MissingValueReplacingEstimator.
ReplacementMode
.Mean),
116
new MissingValueReplacingEstimator.ColumnOptions("NAD", "D", MissingValueReplacingEstimator.
ReplacementMode
.Mean));
135
var est = ML.Transforms.ReplaceMissingValues("A", "ScalarFloat", replacementMode: MissingValueReplacingEstimator.
ReplacementMode
.Maximum)
136
.Append(ML.Transforms.ReplaceMissingValues("B", "ScalarDouble", replacementMode: MissingValueReplacingEstimator.
ReplacementMode
.Mean))
137
.Append(ML.Transforms.ReplaceMissingValues("C", "VectorFloat", replacementMode: MissingValueReplacingEstimator.
ReplacementMode
.Mean))
138
.Append(ML.Transforms.ReplaceMissingValues("D", "VectorDouble", replacementMode: MissingValueReplacingEstimator.
ReplacementMode
.Minimum))
139
.Append(ML.Transforms.ReplaceMissingValues("E", "VectorDouble", replacementMode: MissingValueReplacingEstimator.
ReplacementMode
.Mode));
171
new MissingValueReplacingEstimator.ColumnOptions("NAA", "A", MissingValueReplacingEstimator.
ReplacementMode
.Mean),
172
new MissingValueReplacingEstimator.ColumnOptions("NAB", "B", MissingValueReplacingEstimator.
ReplacementMode
.Mean),
173
new MissingValueReplacingEstimator.ColumnOptions("NAC", "C", MissingValueReplacingEstimator.
ReplacementMode
.Mean),
174
new MissingValueReplacingEstimator.ColumnOptions("NAD", "D", MissingValueReplacingEstimator.
ReplacementMode
.Mean));
Microsoft.ML.Transforms (16)
ExtensionsCatalog.cs (5)
68
/// <param name="replacementMode">The type of replacement to use as specified in <see cref="MissingValueReplacingEstimator.
ReplacementMode
"/></param>
81
MissingValueReplacingEstimator.
ReplacementMode
replacementMode = MissingValueReplacingEstimator.Defaults.Mode,
92
/// <param name="replacementMode">The type of replacement to use as specified in <see cref="MissingValueReplacingEstimator.
ReplacementMode
"/></param>
104
MissingValueReplacingEstimator.
ReplacementMode
replacementMode = MissingValueReplacingEstimator.Defaults.Mode,
115
/// The missing values of the input column, in this new column are replaced with <see cref="MissingValueReplacingEstimator.
ReplacementMode
.DefaultValue"/>.
MissingValueHandlingTransformer.cs (2)
156
(MissingValueReplacingEstimator.
ReplacementMode
)(column.Kind ?? options.ReplaceWith), column.ImputeBySlot ?? options.ImputeBySlot));
191
(MissingValueReplacingEstimator.
ReplacementMode
)(column.Kind ?? options.ReplaceWith), column.ImputeBySlot ?? options.ImputeBySlot));
MissingValueReplacing.cs (9)
447
(MissingValueReplacingEstimator.
ReplacementMode
)(item.Kind ?? options.ReplacementKind),
924
/// <seealso cref="ExtensionsCatalog.ReplaceMissingValues(TransformsCatalog, string, string,
ReplacementMode
, bool)" />
925
/// <seealso cref="ExtensionsCatalog.ReplaceMissingValues(TransformsCatalog, InputOutputColumnPair[],
ReplacementMode
, bool)" />
958
public const
ReplacementMode
Mode =
ReplacementMode
.DefaultValue;
979
public readonly
ReplacementMode
Replacement;
992
public ColumnOptions(string name, string inputColumnName = null,
ReplacementMode
replacementMode = Defaults.Mode,
1006
internal ColumnOptions(string name, string inputColumnName,
ReplacementMode
replacementMode, bool imputeBySlot, string replacementString)
1016
internal MissingValueReplacingEstimator(IHostEnvironment env, string outputColumnName, string inputColumnName = null,
ReplacementMode
replacementKind = Defaults.Mode)