<jupyter_start><jupyter_text>Analyze overfits<jupyter_code>import pandas as pd
import seaborn as sns
#df_results = pd.read_csv('../out/20.0216 feat/reg_rf_boruta/model_results.csv')
df_results = pd.read_csv('../out/20.0518 Lx/L200only_reg_lm/model_results.csv')
df_results.head()
df_results = df_results.loc[df_results.model.str.match('(all|topfeat|top10feat)'),:].copy()
df1 = df_results[['model','score_train']].copy()
df1.rename(columns={'score_train':'score'}, inplace=True)
df1['score_type'] = 'score_train'
df2 = df_results[['model','score_test']].copy()
df2['score_type'] = 'score_test'
df2.rename(columns={'score_test':'score'}, inplace=True)
df = pd.concat([df1,df2])
ax = sns.boxplot(x='model', hue='score_type', y='score', data=df)<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.19689119170984457, 'fraction_numerical': 0.03238341968911917, 'mean_word_length': 9.171052631578947, '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': '571297', 'license': 'MIT', 'n_tokens_mistral': 320, 'n_tokens_neox': 308, 'n_words': 37, 'path': 'notebooks/07-overfits.ipynb', 'repo_name': 'pritchardlabatpsu/cga', 'size': '772'}