If you are on Keras, its a 2 liner, Let me give you code here: #fit the model and capture return value of history history = model.fit(X_train, y_train, epochs=epochs,.....) #plot how validation vs training curves look using the "history" variable. plt.plot(history.history['accuracy'], label='train') plt.plot(history.history['val_accuracy'], label='test') plt.legend() plt.show()
Can you provide code on how to plot sensitivity analysis?
If you are on Keras, its a 2 liner, Let me give you code here:
#fit the model and capture return value of history
history = model.fit(X_train, y_train, epochs=epochs,.....)
#plot how validation vs training curves look using the "history" variable.
plt.plot(history.history['accuracy'], label='train')
plt.plot(history.history['val_accuracy'], label='test')
plt.legend()
plt.show()