In [ ]:
# display difference in coefficients if both models have this information
display(Markdown("### Standardized & relative coefficients"))
df_coefs_diff = combine_old_new_results(outputs_old['df_coef'], outputs_new['df_coef'], 'coefs')
if not df_coefs_diff.empty:
display(HTML(df_coefs_diff.to_html(index=True, classes=['alternate_colors3_groups'], float_format=float_format_func)))
section_empty=False
else:
display(Markdown(no_info_str))
In [ ]:
if 'betas' in figures_old:
markdown_str = '''### Feature weight graphs for the old model ({})'''.format(experiment_id_old)
Markdown(markdown_str)
if use_thumbnails:
show_thumbnail(figures_old['betas'], next(id_generator))
else:
display(SVG(filename=figures_old['betas']))
In [ ]:
if 'betas' in figures_new:
markdown_str = '''### Feature weight graphs for the new model ({})'''.format(experiment_id_new)
display(Markdown(markdown_str))
if use_thumbnails:
show_thumbnail(figures_new['betas'], next(id_generator))
else:
display(SVG(filename=figures_new['betas']))
In [ ]:
df_model_fit_diff = combine_old_new_results(outputs_old['df_model_fit'], outputs_new['df_model_fit'], 'model_fit')
if not df_model_fit_diff.empty:
markdown_str = '''### Model fit for old and new model'''
display(Markdown(markdown_str))
display(HTML(df_model_fit_diff.to_html(index=False, classes=['alternate_colors3_groups'], float_format=float_format_func)))