-
Notifications
You must be signed in to change notification settings - Fork 54
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
Consider using reframe()
inside of metric_summarizer()
rather than summarise()
?
#355
Comments
so this is a little weird right now. But Do you have any timelines that you need things by? |
No timelines! That makes sense to me; it doesn't look like it'll be that painful to make a custom summarizer (reframer?). Thanks for the pointer on the direction things are going 😄 |
I'm doing a yardstick early next week, fyi |
I think we still expect most usage of yardstick to return 1 row per group so sticking with |
Thank you all, this issue has been resolved, and I will thus close it. |
This issue has been automatically locked. If you believe you have found a related problem, please file a new issue (with a reprex: https://reprex.tidyverse.org) and link to this issue. |
Feature
As of dplyr 1.1.0,
summarise
gives a warning when returning more than 1 row per group. As a result,metric_summarizer()
now warns when metrics return more than one row for ungrouped data.frames:Created on 2023-01-30 with reprex v2.0.2
Session info
The actual place I'm running into this is in waywiser, which has a number of "local" spatial autocorrelation metrics which return one value per observation, representing the local spatial autocorrelation at an individual point:
Created on 2023-01-30 with reprex v2.0.2
Session info
I know this is a bit of an off-label use for yardstick, but being able to plug these local metrics into the yardstick framework has been really useful so far. Is there any chance you'd consider using
reframe()
instead ofsummarise()
here? Or, are there any workarounds you can think of for this issue?For context, in my actual code, I don't think I can easily group the data frame so each row is its own grouping, because spatial autocorrelation requires the information about residual values for all neighboring observations as well as the observation itself.
The text was updated successfully, but these errors were encountered: