You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/Microsoft.ML.Transforms/MissingValueReplacing.cs
+19-4
Original file line number
Diff line number
Diff line change
@@ -905,11 +905,26 @@ internal static class Defaults
905
905
/// </summary>
906
906
publicsealedclassColumnInfo
907
907
{
908
+
/// <summary>
909
+
/// The possible ways to replace missing values.
910
+
/// </summary>
908
911
publicenumReplacementMode:byte
909
912
{
913
+
/// <summary>
914
+
/// Replace using default value.
915
+
/// </summary>
910
916
DefaultValue=0,
917
+
/// <summary>
918
+
/// Replace using mean.
919
+
/// </summary>
911
920
Mean=1,
921
+
/// <summary>
922
+
/// Replace using minimum
923
+
/// </summary>
912
924
Minimum=2,
925
+
/// <summary>
926
+
/// Replace using maximum.
927
+
/// </summary>
913
928
Maximum=3,
914
929
}
915
930
@@ -928,16 +943,18 @@ public enum ReplacementMode : byte
928
943
/// </summary>
929
944
publicreadonlyboolImputeBySlot;
930
945
/// <summary>
931
-
/// What to replace the missing value with.
946
+
/// How to replace the missing values.
932
947
/// </summary>
933
948
publicreadonlyReplacementModeReplacement;
934
949
950
+
internalstringReplacementString{get;set;}
951
+
935
952
/// <summary>
936
953
/// Describes how the transformer handles one column pair.
937
954
/// </summary>
938
955
/// <param name="name">Name of the column resulting from the transformation of <paramref name="inputColumnName"/>.</param>
939
956
/// <param name="inputColumnName">Name of column to transform. If set to <see langword="null"/>, the value of the <paramref name="name"/> will be used as source.</param>
940
-
/// <param name="replacementMode">What to replace the missing value with.</param>
957
+
/// <param name="replacementMode">How to replace the missing values.</param>
941
958
/// <param name="imputeBySlot">If true, per-slot imputation of replacement is performed.
942
959
/// Otherwise, replacement value is imputed for the entire vector column. This setting is ignored for scalars and variable vectors,
943
960
/// where imputation is always for the entire column.</param>
@@ -950,8 +967,6 @@ public ColumnInfo(string name, string inputColumnName = null, ReplacementMode re
0 commit comments