<jupyter_start><jupyter_text><NAME><jupyter_code>plt.figure(figsize=(20,10))
seed_list = np.random.randint(2,1E4,num_repeats)
for seed in seed_list:
    map_error = []
    map_error_analytical = []
    mud_error = []
    for N in N_list:
        D = solve_problem(num_samples = N,
                num_observations = M,
                alpha = 0.5, 
                beta = -0.25, 
                data_val = -1,
                data_std = 0.1,
                prior_std_1 = prior_std_1,
                prior_std_2 = prior_std_2,
                seed=seed,
                plot=False)
        map_error.append(D['map_error'])
        map_error_analytical.append(D['map_error_analytical'])
        mud_error.append(D['mud_error'])
    plt.plot(N_list, map_error, label='Bayesian', c='r', alpha=0.5)
#     plt.plot(N_list, map_error_analytical, label='Deterministic', c='r', alpha=1)
    plt.plot(N_list, mud_error, label='Consistent', c='k', alpha=1)

plt.yscale('log')
# plt.legend()
plt.show()<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.1378299120234604, 'fraction_numerical': 0.022482893450635387, 'mean_word_length': 2.4478114478114477, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 6, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '590433', 'license': 'MIT', 'n_tokens_mistral': 395, 'n_tokens_neox': 368, 'n_words': 54, 'path': 'examples/Underdetermined.ipynb', 'repo_name': 'mathematicalmichael/ConsistentBayes', 'size': '1023'}