How to Tune Learning Rate for your Architecture? | Deep Learning

Поділитися
Вставка
  • Опубліковано 13 січ 2025

КОМЕНТАРІ • 2

  • @3rdWorldism
    @3rdWorldism Рік тому +1

    Can you provide code on how to plot sensitivity analysis?

    • @machinelearningmastery
      @machinelearningmastery  Рік тому +1

      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()