-
Notifications
You must be signed in to change notification settings - Fork 238
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
Plot FourierBase
along date rather than index
#990
Comments
Would you suggest the user is able to specify the |
Yes, I think it would be good to allow user to specify the start date if they want to. Deriving from the current year/month seems like a good default. The fourier period will always be the same regardless of the month though, it really just comes down to the labels. |
@wd60622 - I have addressed this enhancement in my latest PR - please feel free to give feedback! |
* feat: test.txt added for commit check * feat: replaced plot_curve with plot_samples within ./mmm/plot.py * feat: n_samples added to distributions_new_customers * remove: text.txt from initial commit * feat(fourier.py): added the custom plotting * fix(full_period): so that there is 367 instead of 366 as pointed out in CI * added two new methods to the class - get_default_start_dates and _get_default_start_dates * feat(fourier.py): modified full_period * fix(fourier.py): removes datetime conversions where not req * feat(test_fourier.py): added new tests for the date addition to fourier.py workflow * : fix: removed today from all parameters * feat(test_fourier.py): new tests after removing today from params in fourier.py * fix(test_fourier.py): removed days_in_period * fix(fourier.py): removed the comment with <3.10 * fix(mmm/fourier.py): changed else: if to elif in get_default_start_date and reverted to using isinstance | --------- Co-authored-by: Will Dean <[email protected]>
The plotting of the fourier is done along the index rather than a date which can be confusing to the meaning of the x-axis. The can be changed by allowing the
sample_curve
function to set the coords to datetimes instead of integers.What date would be the start of the fourier curve though? Might want to derive from the current year or current month.
Overall, this would be optional and be an alternative to the current functionality.
The text was updated successfully, but these errors were encountered: