-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Fix bug in WordBagEstimator when training on empty data #4696
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
|
|
||
| namespace Microsoft.ML.Transforms | ||
| { | ||
| internal sealed class MissingValueDroppingEstimator : TrivialEstimator<MissingValueDroppingTransformer> |
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.
Is this useful in other cases? Do we need to add this to the catalog and make it public?
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.
I don't think it is - seems to be something very specific to Ngram extraction.
In reply to: 370393234 [](ancestors = 370393234)
|
|
||
| internal static IDataTransform Create(IHostEnvironment env, Options options, IDataView input) => | ||
| (IDataTransform)CreateTransfomer(env, options, input).Transform(input); | ||
| (IDataTransform)CreateEstimator(env, options, SchemaShape.Create(input.Schema)).Fit(input).Transform(input)/* CreateTransfomer(env, options, input).Transform(input)*/; |
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.
Nit: Can you please remove the commented code? #Resolved
harishsk
left a comment
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.
![]()
Fixes #969 .
Related to issue #4693 .