def plot_loss(data, output_dir_path='<STR_LIT:.>', output_filename='<STR_LIT>',<EOL>width=<NUM_LIT:10>, height=<NUM_LIT:8>):
output_path = os.path.join(output_dir_path, output_filename)<EOL>max_val_data = get_epoch_min_val_loss(data)<EOL>max_val_label = round(max_val_data['<STR_LIT>'].values[<NUM_LIT:0>], <NUM_LIT:4>)<EOL>max_epoch_data = data[data['<STR_LIT>'] == data['<STR_LIT>'].max()]<EOL>plot = ggplot(data, aes('<STR_LIT>', '<STR_LIT>', color='<STR_LIT>')) +geom_line(size=<NUM_LIT:1>, show_legend=False) +geom_vline(aes(xintercept='<STR_LIT>', color='<STR_LIT:data>'), data=max_val_data,<EOL>alpha=<NUM_LIT:0.5>, show_legend=False) +geom_label(aes('<STR_LIT>', '<STR_LIT>'), data=max_val_data,<EOL>label=max_val_label, nudge_y=<NUM_LIT>, va='<STR_LIT>',<EOL>label_size=<NUM_LIT:0>, show_legend=False) +geom_text(aes('<STR_LIT>', '<STR_LIT>', label='<STR_LIT:data>'), data=max_epoch_data,<EOL>nudge_x=<NUM_LIT:2>, ha='<STR_LIT>', show_legend=False) +geom_point(aes('<STR_LIT>', '<STR_LIT>'), data=max_val_data,<EOL>show_legend=False) +labs(y='<STR_LIT>', x='<STR_LIT>') +theme_bw(base_family='<STR_LIT>', base_size=<NUM_LIT:15>) +scale_color_manual(['<STR_LIT>', '<STR_LIT>', "<STR_LIT>"])<EOL>plot.save(output_path, width=width, height=height)<EOL>
Plot loss.
        Args:
            data: Panda dataframe in *the* format.