Skip to content

Commit a1b7e1d

Browse files
authored
match AutoMl names with Ml.net names (#7007)
1 parent 2c9f775 commit a1b7e1d

6 files changed

+6
-6
lines changed

src/Microsoft.ML.AutoML/CodeGen/estimator-schema.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@
201201
"steps",
202202
"initLearningRate",
203203
"weightDecay",
204-
"mode",
204+
"caseMode",
205205
"keepPunctuations",
206206
"keepDiacritics",
207207
"keepNumbers"

src/Microsoft.ML.AutoML/CodeGen/normalize_text_search_space.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"type": "string"
1212
},
1313
{
14-
"name": "Mode",
14+
"name": "CaseMode",
1515
"type": "caseMode",
1616
"default": "CaseMode.Lower"
1717
},

src/Microsoft.ML.AutoML/CodeGen/search-space-schema.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@
251251
"TargetType",
252252
"PredictionColumnName",
253253
"KeyData",
254-
"Mode",
254+
"CaseMode",
255255
"KeepPunctuations",
256256
"KeepDiacritics",
257257
"KeepNumbers"

src/Microsoft.ML.AutoML/CodeGen/transformer-estimators.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@
193193
"argumentType": "string"
194194
},
195195
{
196-
"argumentName": "mode",
196+
"argumentName": "caseMode",
197197
"argumentType": "caseMode"
198198
},
199199
{

src/Microsoft.ML.AutoML/CodeGen/type_converter_search_space.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"type": "dataView"
2121
},
2222
{
23-
"name": "Mode",
23+
"name": "CaseMode",
2424
"type": "caseMode"
2525
}
2626
]

src/Microsoft.ML.AutoML/SweepableEstimator/Estimators/NormalizeText.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ internal partial class NormalizeText
1212
{
1313
public override IEstimator<ITransformer> BuildFromOption(MLContext context, NormalizeTextOption param)
1414
{
15-
return context.Transforms.Text.NormalizeText(param.OutputColumnName, param.InputColumnName, param.Mode, param.KeepDiacritics, param.KeepPunctuations, param.KeepNumbers);
15+
return context.Transforms.Text.NormalizeText(param.OutputColumnName, param.InputColumnName, param.CaseMode, param.KeepDiacritics, param.KeepPunctuations, param.KeepNumbers);
1616
}
1717
}
1818
}

0 commit comments

Comments
 (0)