Halloween Sale: Flat 70% + Addl. 25% Off + 30 Days Extra Lab on all Courses | Use Coupon HS25 in Checkout | Offer Expires In

  Enroll Now

Keras Project - Iris Flower Identification - Train the Model

Now we will train the model.

INSTRUCTIONS
  • To train the model, we will use a batch size of 5 and 100 epochs and save it in a variable called history

    << your code goes here >> = model.fit(X_train, y_train, batch_size=<< your code goes here >>, epochs=<< your code goes here >>)
    
  • Once the training is complete, we will plot the loss and accuracy metrics of the model

    pd.DataFrame(history.history).plot(figsize=(8, 5))
    plt.grid(True)
    plt.gca().set_ylim(0, 1)
    plt.show()
    

No hints are availble for this assesment

Answer is not availble for this assesment


Note - Having trouble with the assessment engine? Follow the steps listed here

Loading comments...