def save_history_plot(history, plot_dir: str, stage: str) -> None:
    '\n    Args:\n        history: History object for plotting loss/accuracy curves\n        plot_dir: Directory to save plot files\n        stage: Stage name for training\n    '
    pd.DataFrame(history.history).plot(figsize=(10, 8))
    plt.grid(True)
    create_directories([plot_dir])
    plot_file = os.path.join(plot_dir, (stage + '_loss_accuracy.png'))
    plt.savefig(plot_file)
    logging.info(f'Loss accuracy plot saved: {plot_file}')
Args:
    history: History object for plotting loss/accuracy curves
    plot_dir: Directory to save plot files
    stage: Stage name for training
def save_history_plot(history, plot_dir: str, stage: str) -> None:
    '\n    Args:\n        history: History object for plotting loss/accuracy curves\n        plot_dir: Directory to save plot files\n        stage: Stage name for training\n    '
    pd.DataFrame(history.history).plot(figsize=(10, 8))
    plt.grid(True)
    create_directories([plot_dir])
    plot_file = os.path.join(plot_dir, (stage + '_loss_accuracy.png'))
    plt.savefig(plot_file)
    logging.info(f'Loss accuracy plot saved: {plot_file}')