Last active
February 26, 2021 00:00
-
-
Save mikekeith52/031a8b7c3ebd6ea5ce9d446388025414 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def visualize_results(): | |
| def on_button_clicked(b): | |
| ts_selection = ts_dropdown.value | |
| mo_selection = list(mo_select.value) | |
| with output: | |
| clear_output() | |
| forecasts[ts_selection].plot(models=mo_selection, print_mapes=True, plot_fitted=True) | |
| models = ('auto_arima','tbats','ets','average') | |
| ts_dropdown = widgets.Dropdown(options=forecasts.keys(), description = 'Time Series:') | |
| mo_select = widgets.SelectMultiple(options=sorted(list(set(models))),description='Models',disabled=False) | |
| button = widgets.Button(description="Select Time Series") | |
| output = widgets.Output() | |
| display(ts_dropdown, mo_select, button, output) | |
| button.on_click(on_button_clicked) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment