Skip to content
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

SEXP member in data object for more variability and performance #163

Open
schalkdaniel opened this issue Apr 1, 2018 · 0 comments
Open

Comments

@schalkdaniel
Copy link
Owner

schalkdaniel commented Apr 1, 2018

This would be very convenient for custom baselearner:

  1. Store one global model (e.g. mboost bbs object spline = bbs(x1, knots = 20, df = 4))
  2. Extract the design matrix using the model object (e.g. mboost: mboost::extract(spline, "design"))
  3. Use the SEXP object for fitting and store in parameter: (e.g. spline$dpp(weights)$fit(y)$model)
  4. Write an easy predict function via matrix multiplication using the extracted parameter.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant