-
-
Notifications
You must be signed in to change notification settings - Fork 50
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
[LRNRQ] Add gam from package mgcv #40
Comments
Hey, just took a quick look at your fork, looks like you've already done the hard work so definitely interested in adding your learner!
Well You marked that the learner is available for regr and surv as well, would you be interested in implementing these two? There's no requirement to do so but it's always nice to have the 'complete set' when possible. If you do want to go ahead and open a PR please just make sure you've also got the other required files as well (unit tests, parameter tests, yml...) and that you're happy to continue maintaining the learner going forward. |
Hi, thank you for your hints, I will soon work on this, and would be glad to maintain the learner afterward. I have a question concerning the implementation: mgcv::gam is mainly parametrized through a formula, which controls the smoothers used for each individual feature, possible interactions etc. What would be your recommandation for passing this information to mlr3 ? Is it OK to pass the formula as ParamUty to the learner ? I have seen that there is a "formula()" method for a task that seems not to do much more than reconstructing a formula from a list of features, so I don't think it is of any help here. It can even be confusing in the case that the learner uses a different formula than the default one given by task$formula(). I have also found this open issue (that even links to a mlr-issue about mgcv::gam), in which a limitation of including the formula in the learner is mentionned: However, the final thoughts seem to point towards the integraton of the formula as a parameter of the learner. Can I do it this way ? |
Hi @JazzyPierrot this is indeed a discussion we've been having internally, though I note that open issue is 1.5 years old and with no discussion. Pinging @adibender and @berndbischl here as we discussed this recently and I want to highlight this learner as another good example for when a separated 'formula' interface may be useful/required in a learner. For now I can suggest one of the following options:
|
thx. if we want this we need to discuss this in the engineering call with @mllg (i meant: the formula interface in general) |
Well noted, thank you for you feedback ! And good luck with the formula interface. |
I think if one can not specify the model formula directly, this would be a major hindrance for usability. Imagine you want to specify |
Algorithm
Generalised Additive Model
Package
mgvc
Supported types
I have checked that this is not already implemented in
Comments
We have started to implement this learner for our own use here : Signaux Faibles - mlr3extralearners - feat/gam_learner and were wondering if you would be interested in getting a PR from us ? We know that
classif.gamboost
essentially fits a GAM too (right?) but we really like the mgvc implementation.The text was updated successfully, but these errors were encountered: