File size: 312 Bytes
8444121
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
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()