Пример #1
0
def test_save_history(model_name: str, new_history: History):
    save_history(new_history, model_name)

    history = load_history(model_name)
    assert history == new_history
Пример #2
0
def model_history(model):
    """groom images to remove inaccurate masks"""
    plot_history(model, load_history(model))
Пример #3
0
def test_load_history(model_name: str):
    history = load_history(model_name)

    for key in ('accuracy', 'loss', 'val_accuracy', 'val_loss'):
        assert key in history
Пример #4
0
def plot_history_wrapper(args):
    plot_history(args.model, load_history(args.model))