src.plots.create_chart

Creates a bar chart comparing the performance of different models on a given dataset.

This script reads a set of JSON files from the ‘results’ directory, each representing the performance of a model. It then extracts a specified metric (e.g., ‘MAE’, ‘MSE’) and generates a bar chart to visualize and compare the models’ performance. The resulting chart is saved in the ‘figures’ directory.

Functions

create_grouped_bar_chart(df, metric, ...)

Creates and saves a grouped bar chart for a given metric.

load_results_to_dataframe()

Loads all JSON results from the results directory into a pandas DataFrame.