Keras : classificateur spirales

This commit is contained in:
Philippe Roy 2023-06-29 08:53:16 +02:00
parent 5497267973
commit d782f0072d
2 changed files with 7 additions and 5 deletions

View File

@ -173,13 +173,15 @@ os.remove("model.png") # Supression du fichier temporaire
# Courbes d'apprentissage
apts_ax.set_title("Courbes d'apprentissage")
apts_ax.plot(apts.epoch, apts.history['loss'], 'b-', label="Perte - entrainement")
apts_ax.plot(apts.epoch, apts.history['val_loss'], 'r-', label="Perte - validation")
apts_ax.plot(apts.epoch, apts.history['accuracy'], 'c-', label="Précision - entrainement")
apts_ax.plot(apts.epoch, apts.history['val_accuracy'], 'm-', label="Précision - validation")
apts_ax.plot(apts.epoch, apts.history['loss'], 'b-', label="Entrainement")
apts_ax.plot(apts.epoch, apts.history['val_loss'], 'r-', label="Validation")
apts_ax.plot(apts.epoch, apts.history['accuracy'], '-', color="xkcd:light blue")
apts_ax.plot(apts.epoch, apts.history['val_accuracy'], '-', color="xkcd:light red")
apts_ax.set(ylim=(-0.05, 1.05))
apts_ax.set_ylabel("Perte et précision (couleurs claires)")
apts_ax.set_xlabel("Époque")
apts_ax.legend()
apts_ax.legend(loc="upper left")
# apts_ax.legend()
# Plot des données
donnees_ax.set_title("Données")

Binary file not shown.

Before

Width:  |  Height:  |  Size: 623 KiB

After

Width:  |  Height:  |  Size: 496 KiB