-
Notifications
You must be signed in to change notification settings - Fork 0
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
Prepare 0.1.0 release #3
Comments
@seabbs could use a second set of eyes on https://github.com/epinowcast/coerceDT/blob/main/R/coerceDT.R - thoughts on the interface offered? Not quite done w/ implement + test for it, but am thinking:
|
@seabbs I think coerceDT + tests is basically done, moving on to checkDT. |
@seabbs this is now approaching 0.1.0 release readiness. How do we want to check that it works how we want it to work? Propose an epinowcast & scoringutils branch => introduce this as a dependency => modify those library codebases (likely also this library code to do more of what we want for them) => iterate until we're happy with what this does for those libraries. Related: there's definitely some documentation issues to deal with - I think that's best dealt with by another set of eyes, at least to identify the WTF bits. Useful candidates for that? |
Tagging @nikosbosse - I understand you've got an internal helper function like this in scoringutils. If it potentially makes sense to substitute this in, please advise (with the helper function name(s)) and I'll have a look. |
The version in
Maybe there is room for more sophistication :) Regarding the version you linked to: It seems quite complicated to me and the function does a lot of different things (selecting / dropping columns, reading in data, conversion to data.table, selecting whether or not that happens by reference...). For me as a newbie user I think it would be helpful to separate these things a bit more. Also since we're currently reworking |
Indeed! In terms of just replacing that function, that would literally just be: If you have places internally in scoringutils where you don't need to copy, those would become |
I did fiddle a bit with S3 methods - found it easier to just handle dispatch based on type in the internal function logic. |
@nikosbosse had a quick peek at scoringutils - for example check_forecasts <- function(data) {
# create lists to store results ----------------------------------------------
out <- list()
warnings <- list()
errors <- list()
messages <- list()
data <- makeDT(data, require = c("true_value", "prediction"), forbid = available_metrics())
# ... other more complex checks, starting from the bit looking at models
|
The helper function, |
@seabbs per discussion re nomenclature - how about |
We have had a fair few months with no progress on this (for understandable reasons). Shall we setup a meeting with those interested in contributing and hash out some issues that we can PR against to at least get an MVP version that can replace the functionality in
epinowcast
.The text was updated successfully, but these errors were encountered: