def _from_keras_log_format(data, **kwargs):
data_val = pd.DataFrame(data[['<STR_LIT>']])<EOL>data_val['<STR_LIT>'] = data['<STR_LIT>']<EOL>data_val['<STR_LIT>'] = data['<STR_LIT>']<EOL>data_val['<STR_LIT:data>'] = '<STR_LIT>'<EOL>data_training = pd.DataFrame(data[['<STR_LIT>', '<STR_LIT>', '<STR_LIT>']])<EOL>data_training['<STR_LIT:data>'] = '<STR_LIT>'<EOL>result = pd.concat([data_training, data_val], sort=False)<EOL>plot(result, **kwargs)<EOL>
Plot accuracy and loss from a panda's dataframe.

    Args:
        data: Panda dataframe in the format of the Keras CSV log.
        output_dir_path: The path to the directory where the resultings plots
            should end up.