34 references to ReplacementKind
Microsoft.ML.Transforms (34)
MissingValueReplacing.cs (15)
82
public
ReplacementKind
? Kind;
122
public
ReplacementKind
ReplacementKind = (
ReplacementKind
)MissingValueReplacingEstimator.Defaults.Mode;
283
ReplacementKind
[] imputationModes = new
ReplacementKind
[columns.Length];
298
var
kind = (
ReplacementKind
)columns[iinfo].Replacement;
301
case
ReplacementKind
.SpecifiedValue:
304
case
ReplacementKind
.DefaultValue:
307
case
ReplacementKind
.Mean:
308
case
ReplacementKind
.Minimum:
309
case
ReplacementKind
.Maximum:
310
case
ReplacementKind
.Mode:
440
var
kind = item.Kind ?? options.ReplacementKind;
441
if (!Enum.IsDefined(typeof(
ReplacementKind
), kind))
MissingValueReplacingUtils.cs (19)
17
private static StatAggregator CreateStatAggregator(IChannel ch, DataViewType type,
ReplacementKind
? kind, bool bySlot, DataViewRowCursor cursor, int col)
23
if (kind ==
ReplacementKind
.Mean)
30
else if (kind ==
ReplacementKind
.Min || kind ==
ReplacementKind
.Max)
33
return new R4.MinMaxAggregatorOne(ch, cursor, col, kind ==
ReplacementKind
.Max);
35
return new R8.MinMaxAggregatorOne(ch, cursor, col, kind ==
ReplacementKind
.Max);
37
else if (kind ==
ReplacementKind
.Mode)
52
if (kind ==
ReplacementKind
.Mean)
59
else if (kind ==
ReplacementKind
.Min || kind ==
ReplacementKind
.Max)
62
return new R4.MinMaxAggregatorBySlot(ch, vectorType, cursor, col, kind ==
ReplacementKind
.Max);
64
return new R8.MinMaxAggregatorBySlot(ch, vectorType, cursor, col, kind ==
ReplacementKind
.Max);
66
else if (kind ==
ReplacementKind
.Mode)
77
if (kind ==
ReplacementKind
.Mean)
84
else if (kind ==
ReplacementKind
.Min || kind ==
ReplacementKind
.Max)
87
return new R4.MinMaxAggregatorAcrossSlots(ch, cursor, col, kind ==
ReplacementKind
.Max);
89
return new R8.MinMaxAggregatorAcrossSlots(ch, cursor, col, kind ==
ReplacementKind
.Max);
91
else if (kind ==
ReplacementKind
.Mode)