Spaces:
Sleeping
Sleeping
| import matplotlib.pyplot as plt | |
| def plot_training_history(history): | |
| plt.plot(history.history['dice_coef']) | |
| plt.plot(history.history['val_dice_coef']) | |
| plt.title('Model dice coeff') | |
| plt.ylabel('Dice coeff') | |
| plt.xlabel('Epoch') | |
| plt.legend(['Train', 'Test'], loc='upper left') | |
| plt.show() |