Skip to content
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

.resample_id modification #3

Merged
merged 1 commit into from
Mar 13, 2021

Conversation

AlbertoAlmuinha
Copy link
Contributor

Hi @mdancho84

I have adapted the modeltime_resample_accuracy() function in order to return the .resample_id when the summary_fns is NULL as suggested in #1 Check if all is ok for you

My next objective is recursive :)

Regards

@mdancho84 mdancho84 merged commit c5260fc into business-science:master Mar 13, 2021
mdancho84 added a commit that referenced this pull request Mar 14, 2021
@mdancho84
Copy link
Contributor

I modified your code a bit. I split into two tracks:

  1. is.null(summary_fns)
  2. !is.null(summary_fns)

I can more easily control the output of what the user sees. This could probably be simplified even further but gets the desired result.

image

Here's the two types of result - summarized vs unsummarized.

image

@AlbertoAlmuinha
Copy link
Contributor Author

Great, I see it a good solution. Thanks for sharing the explanation!

@mdancho84
Copy link
Contributor

Yep - just trying to pass along my thought-process.

@mdancho84
Copy link
Contributor

Cleaned it up a bit further.

image

@AlbertoAlmuinha
Copy link
Contributor Author

This was a nice one! Well seen. Now I think will be difficult to further improve

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants