-
-
Notifications
You must be signed in to change notification settings - Fork 404
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
Update variance estimation methods for RF learners #1784
Conversation
isnt it a bit inconsitent to add only 1 se method from rf...? yes, it is a clear improvement. can you easily convince me that we should not copy the other 2 methods? |
yup you're right, all three methods would make sense. But I just needed one for now to test some stuff for MBO. But in general it would make sense if the se estimations for random forest would work for all supported RFs, but thats more work. So the short answer is I was too lazy to copy all three methods... And this is mostly a PR so that the code/branch does not get lost |
We should really have extra methods for se calculation for bagged learners... |
What else needs done here? May have time next week to help if you need any |
@berndbischl We should merge and be okay with this double code because calculating the SE for bagged learners in general would be a seperate issue. This should not hold back such important progress for the usage of ranger. |
i really dont want the package to become inconsistent here. it is really not that hard here. |
Okay. I added generalized functions for sd and jackknife. We might want to put them in a separate file. For a better diff i will do that later (name suggestions are welcome). |
@berndbischl your opinion would be much appreciated 😉 |
I've tried to sort out the merge conflicts. Could someone please have a look whether this still makes sense? @jakob-r |
I solved the conflict. If travis passes this can be merged. |
Ok, I've fixed some obvious stuff, but Travis is still failing and have no idea why. Can't reproduce locally. |
Merge branch 'master' into ranger_sd_estim # Conflicts: # R/RLearner_regr_ranger.R
@ja-thomas just FYI, I merged the master branch. Let's see if the build passes. Do you still think that this is ready to merge then? (+ an entry to NEWS.md) |
@jakob-r mlr/tests/testthat/test_regr_ranger.R Line 31 in c89a3c2
is not present during the Line 41 in c89a3c2
That is what causes Travis to fail. Do you know if this is a general problem of |
# Conflicts: # R/RLearner_regr_randomForest.R # R/RLearner_regr_ranger.R
ranger now uses only its own se methods (jacknife and infjacknife (default)). From my side this should be mergable if no errors occur (already checked locally) |
Cool 👍 |
* add extratrees and var est to ranger * generalize se calculation * remove debug code * add documentation * resolve remaining merge conflict * fix more merging madness... * ... * use ranger internal se methods * fix se for regr_randomForest * Deploy from Travis build 13819 [ci skip] Build URL: https://travis-ci.org/mlr-org/mlr/builds/536707026 Commit: ee740fe * upd roxygen * add NEWS
Extratrees is now an available splitting method for classification and regression
Add se estimation method for
regr.ranger
. (This is mostly copy paste code fromregr.randomForest
) and only one of the three alternatives there.