-
Notifications
You must be signed in to change notification settings - Fork 72
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
SuperLearner underperforming best learner? #154
Comments
That does look a bit odd, but can you provide a few additional details. For example, I noticed you have weights (wts_obs), so instead of colMeans() you'll need to use something like weighted.mean(). And with that in mind, what is the distribution of the weights? And what is the distribution of the outcome, does it have some outliers. Can you also share cv_sl$whichDiscreteSL and cv_sl$coef |
Sure @ecpolley This is the distribution of the observation weights. There are 2 extremely imbalanced classes.
This is the distribution of the outcome. I'm predicting the residuals from a regression decomposition, but the original outcome was binary {0, 1}.
Here's some more info from the
So Regarding your comment about |
No, the risk is estimated as the weighted average loss function. If you set the weights to 1 for everyone, do you still get an odd result? I suspect there might be something going on with the weights being bimodal and so different. |
I retrained the
|
@ecpolley I'll take a look at the source code to see how that |
Hi, I'm getting a result that seems unintuitive. Could I ask if this is a possible result or if there could be a bug?
I trained a CV.SuperLearner:
Then
summary(cv_sl)
shows:However, this doesn't seem to agree with the results of
Question 1: How is the average risk of
SL.ranger_ALL
= 0.008 fromsummary(cv_sl)
when the empirical average across all the SuperLearners incv_sl
= 0.442?Question 2: If the average risk of
SL.ranger_ALL
really = 0.008, why does the Super Learner fromcv_sl
have higher average risk than the supposed best performing learner?The text was updated successfully, but these errors were encountered: