<jupyter_start><jupyter_text>Noisy T1 Relaxation Model<jupyter_code>%matplotlib inline
import os

working_directory = os.path.pardir

import sys
sys.path.insert(0, working_directory)

from distributions import NormalDistribution
import matplotlib.pyplot as plt
import numpy as np
norm = NormalDistribution()
norm.sample(3)
plt.plot(norm.distribution.pdf(np.linspace(-3, 3, 100)))
plt.show()
from t1_simulator import *
plt.plot(np.linspace(0, 1, 1000), create_noise_process(np.linspace(0, 1, 1000)))
plt.show()
taus = np.linspace(0, 10, 1000)
noise = create_noise_process(taus, amplitude=1)
plt.plot(taus, calculate_t1_noisy(taus, 1))
plt.axis([0, 10, 0, 1.5])
plt.show()
plt.plot(taus, calculate_t1_noisy(
            taus, 1, create_noise_process(taus, amplitude=0.01))
        )
plt.axis([0, 10, 0, 1.5])<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.13636363636363635, 'fraction_numerical': 0.05741626794258373, 'mean_word_length': 5.917355371900826, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '405990', 'license': 'MIT', 'n_tokens_mistral': 365, 'n_tokens_neox': 322, 'n_words': 67, 'path': 'ipython_notebooks/NoisyT1Model.ipynb', 'repo_name': 'MichalKononenko/T1MachineLearning', 'size': '836'}