ledell / subsemble

subsemble R package for ensemble learning on subsets of data
Apache License 2.0
43 stars 4 forks source link

NNLS? #1

Closed brooksambrose closed 9 years ago

brooksambrose commented 9 years ago

Is non negative least squares available as a metalearner in subsemble?

ledell commented 9 years ago

Yes, I have a pull request open to add a SL.nnls wrapper to the SuperLearner package, but it has not been merged yet. For now, you can copy-paste the SL.nnls wrapper from here. This will be included in the next version of the SuperLearner package.

Once you have the SL.nnls and predict.SL.nnls functions sourced, you just specify the NNLS metalearner as a string, like usual: metalearner = "SL.nnls".