-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use HideEnumValueAttribute for both manifest and C# API generation. #356
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -15390,14 +15390,10 @@ | |||||
"Type": { | ||||||
"Kind": "Enum", | ||||||
"Values": [ | ||||||
"Default", | ||||||
"Def", | ||||||
"DefaultValue", | ||||||
"Mean", | ||||||
"Minimum", | ||||||
"Min", | ||||||
"Maximum", | ||||||
"Max" | ||||||
"Maximum" | ||||||
] | ||||||
}, | ||||||
"Desc": "The replacement method to utilize", | ||||||
|
@@ -15478,14 +15474,10 @@ | |||||
"Type": { | ||||||
"Kind": "Enum", | ||||||
"Values": [ | ||||||
"Default", | ||||||
"Def", | ||||||
"DefaultValue", | ||||||
"Mean", | ||||||
"Minimum", | ||||||
"Min", | ||||||
"Maximum", | ||||||
"Max" | ||||||
"Maximum" | ||||||
] | ||||||
}, | ||||||
"Desc": "The replacement method to utilize", | ||||||
|
@@ -15780,17 +15772,10 @@ | |||||
"Type": { | ||||||
"Kind": "Enum", | ||||||
"Values": [ | ||||||
"Default", | ||||||
"DefaultValue", | ||||||
"Def", | ||||||
"Mean", | ||||||
"Min", | ||||||
"Minimum", | ||||||
"Max", | ||||||
"Maximum", | ||||||
"SpecifiedValue", | ||||||
"Val", | ||||||
"Value" | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. All three of them are marked as hidden. Do you know if that is intentional? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hi @sfilipi thanks for the question. Hiding the "abbreviated" versions machinelearning/src/Microsoft.ML.Transforms/NAReplaceTransform.cs Lines 56 to 57 in c023727
@yaeldekel wrote this enum, but that was back in 2016. She may not remember, but just tagging her on the off chance she does. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should probably expose the "SpecifiedValue". Checking the NA Replace transform, if the enum is not set to that, the value set for the ReplacementString is ignored. In reply to: 195274816 [](ancestors = 195274816) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hi @sfilipi I agree with that logic. I will unhide. |
||||||
"Maximum" | ||||||
] | ||||||
}, | ||||||
"Desc": "The replacement method to utilize", | ||||||
|
@@ -15856,17 +15841,10 @@ | |||||
"Type": { | ||||||
"Kind": "Enum", | ||||||
"Values": [ | ||||||
"Default", | ||||||
"DefaultValue", | ||||||
"Def", | ||||||
"Mean", | ||||||
"Min", | ||||||
"Minimum", | ||||||
"Max", | ||||||
"Maximum", | ||||||
"SpecifiedValue", | ||||||
"Val", | ||||||
"Value" | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. same check as above, about this argument being hidden. |
||||||
"Maximum" | ||||||
] | ||||||
}, | ||||||
"Desc": "The replacement method to utilize", | ||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is something of an unfortunate engineering situation that the so-called C# API code generator and the manifest JSON generator utilize, as near as I can see, entirely separate codepaths to interact with the same structures.