codes.benchmark.bench_plots#
Functions
|
Returns a list of colors sampled from a custom color palette. |
|
Plot the mean inference time with standard deviation for different surrogate models. |
|
Function to make one comparative plot of the interpolation, extrapolation, and sparse training errors. |
|
Plot the MAE for different surrogate models. |
|
Plot the MAE for different surrogate models. |
|
Plot the errors over time for different modes (interpolation, extrapolation, sparse, batchsize). |
|
Plot the average uncertainty over time. |
Plot comparative heatmaps of correlation between gradient and prediction errors for multiple surrogate models. |
|
Plot comparative heatmaps of correlation between predictive uncertainty and prediction errors for multiple surrogate models. |
|
|
Plot the correlation between the gradients of the data and the prediction errors. |
|
Plot the correlation between predictive uncertainty and prediction errors using a heatmap. |
|
Plot the correlation between predictive uncertainty and prediction errors using a heatmap. |
|
Plot the comparative distribution of errors for each surrogate model as a smoothed histogram plot. |
|
Plot the distribution of errors for each chemical as a smoothed histogram plot. |
Plot example predictions with uncertainty. |
|
|
Plot the generalization errors of different surrogate models. |
|
Plot the generalization errors of a model for various metrics. |
|
Plot the training and test losses for different surrogate models. |
|
Plot the loss trajectories for the training of multiple models. |
|
Plot the relative errors over time for different surrogate models. |
|
Plot the mean and median relative errors over time with shaded regions for the 50th, 90th, and 99th percentiles. |
|
Plot the training and test losses for the surrogate model. |
|
Plot the uncertainty over time for different surrogate models. |
|
Plot the correlation between predictive uncertainty and prediction errors. |
|
Create a figure with two subplots: relative errors over time and uncertainty over time for different surrogate models. |
|
Save the plot to a file, creating necessary directories if they don't exist. |
|
Save a plot with an incremented filename if a file with the same name already exists. |