I've been reworking the augment()
methods and it's rapidly becoming clear that dealing with idiosyncratic predict()
methods is going to slow down progress immensely.
In the end broom
and parsnip
are both going to want to wrap a bajillion predict methods, and we should report predictions in the same way for consistencies sake. I think we should move this functionality to a separate package. Potentially we could use the prediction
package by Thomas Leeper, but we should decide on the behavior we want first.
If we define a new generic / series of generics, we can then test these behaviors in modeltests
and allow other modelling package developers to guarantee that their predict()
methods are sane and consistent.
What I want from a predict method:
predict.lm(..., na.action = na.pass)
)I want all of these to be guaranteed, and for methods that cannot meet these guarantees, I want an informative error rather than a partially correct output.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4