Skip to content

Commit

Permalink
match AutoMl names with Ml.net names (#7007)
Browse files Browse the repository at this point in the history
  • Loading branch information
zewditu authored Feb 21, 2024
1 parent 2c9f775 commit a1b7e1d
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/Microsoft.ML.AutoML/CodeGen/estimator-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@
"steps",
"initLearningRate",
"weightDecay",
"mode",
"caseMode",
"keepPunctuations",
"keepDiacritics",
"keepNumbers"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"type": "string"
},
{
"name": "Mode",
"name": "CaseMode",
"type": "caseMode",
"default": "CaseMode.Lower"
},
Expand Down
2 changes: 1 addition & 1 deletion src/Microsoft.ML.AutoML/CodeGen/search-space-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@
"TargetType",
"PredictionColumnName",
"KeyData",
"Mode",
"CaseMode",
"KeepPunctuations",
"KeepDiacritics",
"KeepNumbers"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@
"argumentType": "string"
},
{
"argumentName": "mode",
"argumentName": "caseMode",
"argumentType": "caseMode"
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"type": "dataView"
},
{
"name": "Mode",
"name": "CaseMode",
"type": "caseMode"
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ internal partial class NormalizeText
{
public override IEstimator<ITransformer> BuildFromOption(MLContext context, NormalizeTextOption param)
{
return context.Transforms.Text.NormalizeText(param.OutputColumnName, param.InputColumnName, param.Mode, param.KeepDiacritics, param.KeepPunctuations, param.KeepNumbers);
return context.Transforms.Text.NormalizeText(param.OutputColumnName, param.InputColumnName, param.CaseMode, param.KeepDiacritics, param.KeepPunctuations, param.KeepNumbers);
}
}
}

0 comments on commit a1b7e1d

Please sign in to comment.