Plot the Prophet forecast. Parameters ---------- fcst: pd.DataFrame output of self.predict. ax: Optional matplotlib axes on which to plot. uncertainty: Optional boolean to plot uncertainty intervals. plot_cap: Optional boolean indicating if the capaci
(self, fcst, ax=None, uncertainty=True, plot_cap=True,
xlabel='ds', ylabel='y', figsize=(10, 6), include_legend=False)
| 1885 | return pd.DataFrame({'ds': dates}) |
| 1886 | |
| 1887 | def plot(self, fcst, ax=None, uncertainty=True, plot_cap=True, |
| 1888 | xlabel='ds', ylabel='y', figsize=(10, 6), include_legend=False): |
| 1889 | """Plot the Prophet forecast. |
| 1890 | |
| 1891 | Parameters |
| 1892 | ---------- |
| 1893 | fcst: pd.DataFrame output of self.predict. |
| 1894 | ax: Optional matplotlib axes on which to plot. |
| 1895 | uncertainty: Optional boolean to plot uncertainty intervals. |
| 1896 | plot_cap: Optional boolean indicating if the capacity should be shown |
| 1897 | in the figure, if available. |
| 1898 | xlabel: Optional label name on X-axis |
| 1899 | ylabel: Optional label name on Y-axis |
| 1900 | figsize: Optional tuple width, height in inches. |
| 1901 | include_legend: Optional boolean to add legend to the plot. |
| 1902 | |
| 1903 | Returns |
| 1904 | ------- |
| 1905 | A matplotlib figure. |
| 1906 | """ |
| 1907 | return plot( |
| 1908 | m=self, fcst=fcst, ax=ax, uncertainty=uncertainty, |
| 1909 | plot_cap=plot_cap, xlabel=xlabel, ylabel=ylabel, |
| 1910 | figsize=figsize, include_legend=include_legend |
| 1911 | ) |
| 1912 | |
| 1913 | def plot_components(self, fcst, uncertainty=True, plot_cap=True, |
| 1914 | weekly_start=0, yearly_start=0, figsize=None): |
no test coverage detected