-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Move Normalizer extension method from experimental to stable nuget and remove Normalizer generic APIs #3118
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
Conversation
Do we also want to get rid of this method? public static NormalizingEstimator Normalize(this TransformsCatalog catalog,
string outputColumnName, string inputColumnName = null,
NormalizingEstimator.NormalizationMode mode = NormalizingEstimator.NormalizationMode.MinMax)
=> new NormalizingEstimator(CatalogUtils.GetEnvironment(catalog), outputColumnName, inputColumnName ?? outputColumnName, mode); Do we really need a public method that takes an |
Wonder what @artidoro thinks, should we add the multi-column mapping capability here? It seems more or less harmless to do so. #Resolved |
Regarding multi-column mapping, I am not opposed to it here. My only concern is that we will have a lot of overloads for the normalizers, especially if we add another one with an options class in the future. But since they are widely used it might be worth it to add them. They were on the list of transforms that @TomFinley and @glebuk identified as candidates for multi-column mapping with |
@eerhardt I'd totally get behind that... only trouble is that's definitely a breaking change, so wondering what @shauheen thinks. #Resolved |
If we really think that it's the right thing to do, we have time to do it now. The alternative is to live with this API forever. #Resolved |
@[email protected] @[email protected] This PR removes such redundant methods, please review and leave your autograph here: #3116 In reply to: 478105437 [](ancestors = 478105437) |
As discussed elsewhere it is usually a bad idea to have PRs that leave the codebase in a suboptimal state until they're all checked in, this is usually a sign that they belonged together in the first place. Anyway, thanks for combining them. In reply to: 478783520 [](ancestors = 478783520,478105437) |
test/Microsoft.ML.Tests/Scenarios/Api/CookbookSamples/CookbookSamplesDynamicApi.cs
Show resolved
Hide resolved
Codecov Report
@@ Coverage Diff @@
## master #3118 +/- ##
==========================================
+ Coverage 72.53% 72.54% +<.01%
==========================================
Files 808 807 -1
Lines 144775 144774 -1
Branches 16209 16208 -1
==========================================
+ Hits 105012 105020 +8
+ Misses 35348 35341 -7
+ Partials 4415 4413 -2
|
Spoke offline. We will add it in a separate PR with its own issue and it needs to go through shiproom. In reply to: 477744551 [](ancestors = 477744551) |
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.
Thanks @codemzs !
…d remove Normalizer generic APIs (dotnet#3118) * Move Normalizer extension method from experimental to stable nuget. * Cleanup unused method in Normalizer Estimator. * remove normalizer estimator catalog methods that take enum as parameter. * Remove Microsoft.ML.Experimental references in CS files. * merge fix. * cleanup. * cleanup. * PR feedback.
fixes #3109
fixes #3161