@@ -893,7 +893,8 @@ private bool SaveAsOnnxCore(OnnxContext ctx, int iinfo, ColInfo info, string src
893
893
894
894
public sealed class MissingValueReplacingEstimator : IEstimator < MissingValueReplacingTransformer >
895
895
{
896
- public static class Defaults
896
+ [ BestFriend ]
897
+ internal static class Defaults
897
898
{
898
899
public const ColumnInfo . ReplacementMode ReplacementMode = ColumnInfo . ReplacementMode . DefaultValue ;
899
900
public const bool ImputeBySlot = true ;
@@ -912,9 +913,23 @@ public enum ReplacementMode : byte
912
913
Maximum = 3 ,
913
914
}
914
915
916
+ /// <summary>
917
+ /// Name of the column resulting from the transformation of <see cref="InputColumnName"/>
918
+ /// </summary>
915
919
public readonly string Name ;
920
+ /// <summary>
921
+ /// Name of column to transform.
922
+ /// </summary>
916
923
public readonly string InputColumnName ;
924
+ /// <summary>
925
+ /// If true, per-slot imputation of replacement is performed.
926
+ /// Otherwise, replacement value is imputed for the entire vector column. This setting is ignored for scalars and variable vectors,
927
+ /// where imputation is always for the entire column.
928
+ /// </summary>
917
929
public readonly bool ImputeBySlot ;
930
+ /// <summary>
931
+ /// What to replace the missing value with.
932
+ /// </summary>
918
933
public readonly ReplacementMode Replacement ;
919
934
920
935
/// <summary>
@@ -927,7 +942,7 @@ public enum ReplacementMode : byte
927
942
/// Otherwise, replacement value is imputed for the entire vector column. This setting is ignored for scalars and variable vectors,
928
943
/// where imputation is always for the entire column.</param>
929
944
public ColumnInfo ( string name , string inputColumnName = null , ReplacementMode replacementMode = Defaults . ReplacementMode ,
930
- bool imputeBySlot = MissingValueReplacingEstimator . Defaults . ImputeBySlot )
945
+ bool imputeBySlot = Defaults . ImputeBySlot )
931
946
{
932
947
Contracts . CheckNonWhiteSpace ( name , nameof ( name ) ) ;
933
948
Name = name ;
@@ -985,7 +1000,7 @@ public SchemaShape GetOutputSchema(SchemaShape inputSchema)
985
1000
}
986
1001
987
1002
/// <summary>
988
- /// Train and return a transformer .
1003
+ /// Trains and returns a <see cref="MissingValueReplacingTransformer"/> .
989
1004
/// </summary>
990
1005
public MissingValueReplacingTransformer Fit ( IDataView input ) => new MissingValueReplacingTransformer ( _host , input , _columns ) ;
991
1006
}
0 commit comments