[ENH] Add all available methods to feature selection preprocessor#2205
Conversation
Codecov Report
@@ Coverage Diff @@
## master #2205 +/- ##
==========================================
+ Coverage 71.06% 72.02% +0.96%
==========================================
Files 318 318
Lines 54597 54597
==========================================
+ Hits 38797 39325 +528
+ Misses 15800 15272 -528 |
|
@janezd looks good to me. What do you think? |
| {"text": "ANOVA"}, | ||
| {"text": "Chi2"}, | ||
| {"text": "RReliefF"}, | ||
| {"text": "UnivariateLinearRegression"} |
There was a problem hiding this comment.
Use spaces: this is shown in a combo.
|
I'm not opposed to merging, but I'd be much happier if error messages were improved. Loading heart_disease and selecting Univariate linear regression gives an error "Scoring method WrapperMeta requires a class variable of type ContinuousVariable". The end-user should be given messages from the scripting-level exceptions only as a last resort. Here, the user doesn't know what is ContinuousVariable and, especially, what is WrapperMeta. This error is not much better than a crash. To be fair, the existing scorers also refer to DiscreteVariable. But at least they don't have WrapperMeta. The problem is that the additional scorers seem less robust, so the user get more cryptic messages. Running, for instance, ANOVA on heart_disease gives "Only ContinuousVariables are supported", without explaining that this holds only for ANOVA. The question (@astaric, @BlazZupan) is whether we allow this widget to be somewhat unfriendly (knowing that this PR is not the cause, it just increases it by some amount) or do we, for instance, add checks before calling feature selectors and issue friendly error messages instead of showing exception messages. |
|
@janezd, Cryptic error messages should also be changed in the scripting part, which is IMHO not a part of this PR. (Hearing about WrapperMeta is never useful) I'll go ahead and merge this and we can improve error messages as a part of another PR. |
|
Agreed. I'm assigning this to myself. |
Issue
Add missing feature selection methods to OWPreprocess
Includes