getCssPreds() fits OLS on the selected cluster representatives to form predictions. Add an argument for a user-provided prediction function — the prediction-side analogue of css()'s fitfun — to allow more general predictions than OLS (e.g. a regularized or nonlinear model on the representatives).
Scope: a predfun-style argument (defaulting to the current OLS) taking the training design/response and returning predictions on testX; validate + document.
Surfaced from an in-source TODO(gregfaletto) note in index.Rmd; filed and stripped as part of #96.
getCssPreds()fits OLS on the selected cluster representatives to form predictions. Add an argument for a user-provided prediction function — the prediction-side analogue ofcss()'sfitfun— to allow more general predictions than OLS (e.g. a regularized or nonlinear model on the representatives).Scope: a
predfun-style argument (defaulting to the current OLS) taking the training design/response and returning predictions ontestX; validate + document.Surfaced from an in-source
TODO(gregfaletto)note inindex.Rmd; filed and stripped as part of #96.