<jupyter_start><jupyter_text>Setup Kernel setup<jupyter_code>%load_ext autoreload
%autoreload 2
%%capture
!git clone https://github.com/Krankile/npmf.git<jupyter_output><empty_output><jupyter_text>General setup<jupyter_code>%%capture
!cd npmf && git pull
from npmf.utils.colors import main,main2,main3
#!pip install 
import numpy as np
import matplotlib.pyplot as plt
import matplotlib as mpl
mpl.rcParams['axes.prop_cycle'] = mpl.cycler(color=[main, main2, main3,"black"])<jupyter_output><empty_output><jupyter_text>Create a visualisation to understand lower bound loss of model selection and model combination<jupyter_code>x = np.linspace(0,1,1000)
k = 1
plt.ylim(0,2.1*k)
plt.ylabel("$y$")
plt.xlabel("Time")
plt.plot(x, np.full(x.shape,.5*k), color=main)
plt.plot(x, np.full(x.shape,.75*k), color=main, linestyle="--", label="Model selection optimum")
plt.plot(x, np.full(x.shape,2*k), color=main2)
plt.plot(x, np.full(x.shape,k), color="black", linestyle="-.", label="$y_{t+h}$ (target) AND model combination optimum")
plt.legend(frameon=False);<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.16296296296296298, 'fraction_numerical': 0.018518518518518517, 'mean_word_length': 7.933884297520661, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, 'https://': 1, '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': '3', 'dir': 'jupyter-structured-clean-dedup', 'id': '548037', 'license': 'MIT', 'n_tokens_mistral': 434, 'n_tokens_neox': 412, 'n_words': 80, 'path': 'notebooks/model_selection_vs_combination.ipynb', 'repo_name': 'Krankile/npmf', 'size': '1080'}