optframework.utils.general_scripts.Batch_opt_post module

Created on Wed Jun 4 09:57:59 2025

@author: Haoran Ji e-mail: haoran.ji@kit.edu

optframework.utils.general_scripts.Batch_opt_post.load_cross_validation_results(result_dir, n_iter, data_dir, G_flag)[source]

Load and assemble cross-validation results for a specific (n_iter, data_dir, G_flag). Returns lists of optimized parameters, training scores, and all losses.

optframework.utils.general_scripts.Batch_opt_post.load_all_cv_results(result_dir, n_iter_list, data_dir, G_flag_list)[source]

Load results across all combinations of n_iter and G_flag. Returns a nested dict: results[G_flag][n_iter] = {…}

optframework.utils.general_scripts.Batch_opt_post.add_opt_params_mean(results)[source]
optframework.utils.general_scripts.Batch_opt_post.plot_summary_two_charts(results, n_iter_list, G_flag_list, result_dir)[source]

Plot summary charts for a single G_flag from cross-validation results.

Parameters:

results : Nested dict from load_all_cv_results n_iter_list : List of iteration counts G_flag_list : List of G_flag strings (only one expected) result_dir : Directory path to save plots

optframework.utils.general_scripts.Batch_opt_post.plot_x_mean(results, G_flag)[source]
optframework.utils.general_scripts.Batch_opt_post.calc_delta_test(known_params_list, exp_data_paths, init_core=True, opt_params=None, ax=None, fig=None, index='')[source]
optframework.utils.general_scripts.Batch_opt_post.plot_x_50(results, G_flag)[source]
optframework.utils.general_scripts.Batch_opt_post.calc_x50(known_params_list, exp_data_paths, init_core=True, opt_params=None, ax=None, fig=None, index='')[source]
optframework.utils.general_scripts.Batch_opt_post.re_calc_lognormal_results()[source]
optframework.utils.general_scripts.Batch_opt_post.visualize_opt_distribution(t_frame=-1, x_uni_exp=None, data_exp=None, ax=None, fig=None, index=0)[source]
optframework.utils.general_scripts.Batch_opt_post.main()[source]