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