etna
etna copied to clipboard
Fixes for `plot_residuals`
🚀 Feature Request
Fix some issues in plot_residuals
Motivation
Make eda method better
Proposal
- Add parameter
mode: Union[Literal["macro"], Literal["per-segment"]] = "per-segment"
- Mode "per-segment" is the current behavior
- In mode "macro" values from all the segments should be plotted in one picture
- Improve the behavior working with fold masks in case of
feature = "timestamp"
:- Now it should plot folds without huge whitespaces between(leave 3-5 points between the folds)
- Make sure that xticks assigned correctly
It was suggested earlier to also do:
- Let's take out the residuals computation from the method
- Now method should expect
residuals_ts: TSDataset
instead offorecast_df
andts
- Remove the residuals computation inside the method and parameters
forecast_df
,ts
,transforms
- Now method should expect
But we decided not to do it.
Test cases
No response
Alternatives
No response
Additional context
No response
Checklist
- [ ] I discussed this issue with ETNA Team