MCPcopy Create free account
hub / github.com/Victorletzelter/timeMCL / plot_method_column

Function plot_method_column

tsExperiments/scripts_plot/plotting.py:676–687  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

674 plt.close()
675
676def 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:
690methods = ['tactis2', 'timeGrad', 'tempflow','timeMCL']

Callers 1

plot_multiple_methodsFunction · 0.85

Calls 1

plot_mclFunction · 0.70

Tested by

no test coverage detected