<jupyter_start><jupyter_text>Plot of validation test This notebook plots the validation test for multiple inversions. It plots the values of the goal function for all the inversions resulted from multiple inversion notebook.<jupyter_code>import numpy as np
import cPickle as pickle
# importing my functions
import sys
sys.path.insert(0, '../../code')

import mag_polyprism_functions as mfun
import plot_functions as pf
# importing the pickle file of results
result_path = 'results/multiple-54476/'

with open(result_path+'inversion.pickle') as w:
        inversion = pickle.load(w)
# directory to save the figures
filename = ''
z0 = inversion['z0']
intensity = inversion['intensity']
z0_plot, int_plot = np.meshgrid(z0, intensity)
z0_plot = z0_plot.ravel()
int_plot = int_plot.ravel()
n = z0.size
m = intensity.size
N = inversion['x'].size
# building the matrix of the goal function
gamma_matrix = mfun.goal_matrix(n, m, inversion['results'])<jupyter_output><empty_output><jupyter_text>Figures<jupyter_code>pf.plot_matrix(z0, intensity, gamma_matrix, int(np.min(gamma_matrix)),
                 2000., [], '$m_0$ (m)', '$z_0$ (m)', 'nT$^2$', (), 300, [1,3], filename)<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.12197159565580618, 'fraction_numerical': 0.02172096908939014, 'mean_word_length': 5.510869565217392, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '2', 'dir': 'jupyter-structured-clean-dedup', 'id': '84384', 'license': 'BSD-3-Clause', 'n_tokens_mistral': 416, 'n_tokens_neox': 386, 'n_words': 113, 'path': 'code/simple/plot_validation.ipynb', 'repo_name': 'pinga-lab/magnetic-radial-inversion', 'size': '1197'}