Plot a single method's results in one column
(axs, target_df, hypothesis_forecasts, forecast_length, context_points,
freq_type, is_mcl, main_color, mean_color, plot_p=False, ax_cbar=None, extract_unique=True, global_min_prob=None, global_max_prob=None, rows=None, cols=None, dims_to_plot=None)
| 674 | plt.close() |
| 675 | |
| 676 | def plot_method_column(axs, target_df, hypothesis_forecasts, forecast_length, context_points, |
| 677 | freq_type, is_mcl, main_color, mean_color, plot_p=False, ax_cbar=None, extract_unique=True, global_min_prob=None, global_max_prob=None, rows=None, cols=None, dims_to_plot=None): |
| 678 | """ |
| 679 | Plot a single method's results in one column |
| 680 | """ |
| 681 | save_path = f"{os.environ['PROJECT_ROOT']}/tsExperiments/logs/plots/{dataset}" |
| 682 | if not os.path.exists(save_path): |
| 683 | os.makedirs(save_path) |
| 684 | |
| 685 | handles, labels = plot_mcl(target_df, hypothesis_forecasts, forecast_length, rows=rows, cols=1, plot_mean=True, context_points=context_points, freq_type=freq_type, extract_unique=extract_unique, save_path=save_path, is_mcl=is_mcl, plot_p=plot_p, main_color=main_color, mean_color=mean_color, dataset=dataset, axs=axs, ax_cbar=ax_cbar, global_min_prob=global_min_prob, global_max_prob=global_max_prob, dims_to_plot=dims_to_plot) |
| 686 | |
| 687 | return handles, labels |
| 688 | |
| 689 | # Usage example: |
| 690 | methods = ['tactis2', 'timeGrad', 'tempflow','timeMCL'] |
no test coverage detected