-
Notifications
You must be signed in to change notification settings - Fork 21
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
Functions to export or make internal #885
Comments
If people want to do this in their own packages they will need this to be exported. I think this could be suited to Anything people need to write their own class we should explore I think. I think we probably should have a toy vignette in the near future demonstrating how to reimplement say point scoring and that will guide what should be exported or not (i.e anything it uses needs to be exported).
The workflow here could be that users call |
I'm proposing the following: For now we make all these functions internal:
All these functions are only necessary if you want to build your own new forecast type. Currently that's so convoluted that nobody will do it. In version 2.1 we focus on making that process easier and export those functions. We could potentially also make
|
I'm not at all clear why we would make functions internal that we know in one minor release time we will need to make external? |
More time for thinking vs. committing to maintaining stuff in the future mostly. |
As in we think we might want to make further breaking changes :( I really hope not. Do you think that is the case for all of these? We do need all of them for a new custom class right so we kind of have to support them (and if eventually remove manage depreciation etc.) |
Yeah at some point we probably need to export the functions for creating new forecast classes. Re
we're using
|
Currently internal functions:
Currently exported functions
The updated proposal would be
and to probably I guess have the following functions be exported?
It's quite a bit of clutter, but 🤷 EDIT: some thoughts from discussions elsewhere:
|
Functions we maybe shouldn't export anymore
as_forecast_generic()
Argument for making it internal: you only really need the function if you want to create your own forecast class.
validate_forecast()
Functions we maybe should export
The following is a list of functions that people might appreciate who want to create their own forecast class. They are used by us internally. Not sure how/whether others are supposed to use them.
new_forecast()
as_scores()
apply_metrics()
Maybe it makes sense to keep them internal for now until we actually see clear need for them?
The text was updated successfully, but these errors were encountered: