aidecentralized / sonar

SONAR - Self-Organizing Network of Aggregated Representations
MIT License
13 stars 34 forks source link

combining plots #142

Closed joyce-yuan closed 2 weeks ago

joyce-yuan commented 2 weeks ago

given a set of experiments, plot_combined_exp.py will combine the experiments onto one graph

def combine_and_plot(
    exp_name: str, 
    experiment_map: Dict[str, str], 
    metrics_list: List[str], 
    plot_titles: List[str], 
    xlabels: List[str], 
    ylabels: List[str], 
    output_dir: str, 
) -> None:
    """
    Combine and plot metrics from multiple experiments with 95% confidence intervals.

    Args:
        exp_name (str): Name of the experiment to be used in the output file names
        experiment_map (Dict[str, str]): Dictionary mapping experiment key names to file paths.
        metrics_list (List[str]): List of metrics to plot (e.g., ['train_acc', 'test_loss']).
        plot_titles (List[str]): List of titles for each plot in the same order as metrics_list.
        xlabels (List[str]): List of x-axis labels in the same order as metrics_list.
        ylabels (List[str]): List of y-axis labels in the same order as metrics_list.
        output_dir (str): Directory to save the plots and resulting logs.
    """