@@ -68,7 +68,7 @@ public static SuggestedTransform CreateSuggestedTransform(MLContext context, str
68
68
69
69
private static IEstimator < ITransformer > CreateInstance ( MLContext context , string [ ] inColumns , string [ ] outColumns )
70
70
{
71
- var pairs = new ( string , string ) [ inColumns . Length ] ;
71
+ var pairs = new ColumnOptions [ inColumns . Length ] ;
72
72
for ( var i = 0 ; i < inColumns . Length ; i ++ )
73
73
{
74
74
var pair = ( outColumns [ i ] , inColumns [ i ] ) ;
@@ -95,10 +95,10 @@ public static SuggestedTransform CreateSuggestedTransform(MLContext context, str
95
95
96
96
private static IEstimator < ITransformer > CreateInstance ( MLContext context , string [ ] inColumns , string [ ] outColumns )
97
97
{
98
- var pairs = new MissingValueReplacingEstimator . ColumnInfo [ inColumns . Length ] ;
98
+ var pairs = new MissingValueReplacingEstimator . ColumnOptions [ inColumns . Length ] ;
99
99
for ( var i = 0 ; i < inColumns . Length ; i ++ )
100
100
{
101
- var pair = new MissingValueReplacingEstimator . ColumnInfo ( outColumns [ i ] , inColumns [ i ] ) ;
101
+ var pair = new MissingValueReplacingEstimator . ColumnOptions ( outColumns [ i ] , inColumns [ i ] ) ;
102
102
pairs [ i ] = pair ;
103
103
}
104
104
return context . Transforms . ReplaceMissingValues ( pairs ) ;
@@ -143,10 +143,10 @@ public static SuggestedTransform CreateSuggestedTransform(MLContext context, str
143
143
144
144
public static IEstimator < ITransformer > CreateInstance ( MLContext context , string [ ] inColumns , string [ ] outColumns )
145
145
{
146
- var cols = new OneHotEncodingEstimator . ColumnInfo [ inColumns . Length ] ;
146
+ var cols = new OneHotEncodingEstimator . ColumnOptions [ inColumns . Length ] ;
147
147
for ( var i = 0 ; i < cols . Length ; i ++ )
148
148
{
149
- cols [ i ] = new OneHotEncodingEstimator . ColumnInfo ( outColumns [ i ] , inColumns [ i ] ) ;
149
+ cols [ i ] = new OneHotEncodingEstimator . ColumnOptions ( outColumns [ i ] , inColumns [ i ] ) ;
150
150
}
151
151
return context . Transforms . Categorical . OneHotEncoding ( cols ) ;
152
152
}
@@ -174,10 +174,10 @@ public static SuggestedTransform CreateSuggestedTransform(MLContext context, str
174
174
175
175
private static IEstimator < ITransformer > CreateInstance ( MLContext context , string [ ] inColumns , string [ ] outColumns )
176
176
{
177
- var cols = new OneHotHashEncodingEstimator . ColumnInfo [ inColumns . Length ] ;
177
+ var cols = new OneHotHashEncodingEstimator . ColumnOptions [ inColumns . Length ] ;
178
178
for ( var i = 0 ; i < cols . Length ; i ++ )
179
179
{
180
- cols [ i ] = new OneHotHashEncodingEstimator . ColumnInfo ( outColumns [ i ] , inColumns [ i ] ) ;
180
+ cols [ i ] = new OneHotHashEncodingEstimator . ColumnOptions ( outColumns [ i ] , inColumns [ i ] ) ;
181
181
}
182
182
return context . Transforms . Categorical . OneHotHashEncoding ( cols ) ;
183
183
}
@@ -221,10 +221,10 @@ public static SuggestedTransform CreateSuggestedTransform(MLContext context, str
221
221
222
222
private static IEstimator < ITransformer > CreateInstance ( MLContext context , string [ ] inColumns , string [ ] outColumns )
223
223
{
224
- var cols = new TypeConvertingEstimator . ColumnInfo [ inColumns . Length ] ;
224
+ var cols = new TypeConvertingEstimator . ColumnOptions [ inColumns . Length ] ;
225
225
for ( var i = 0 ; i < cols . Length ; i ++ )
226
226
{
227
- cols [ i ] = new TypeConvertingEstimator . ColumnInfo ( outColumns [ i ] , DataKind . R4 , inColumns [ i ] ) ;
227
+ cols [ i ] = new TypeConvertingEstimator . ColumnOptions ( outColumns [ i ] , DataKind . Single , inColumns [ i ] ) ;
228
228
}
229
229
return context . Transforms . Conversion . ConvertType ( cols ) ;
230
230
}
0 commit comments