Login using Social Account
     Continue with GoogleLogin using your credentials
It's time for training the model on the train data.
Let us also measure the time of training using time
module.
Finally, let us test the model performance on the test data.
Import time
.
import << your code comes here >>
Store the start time using time.time()
in start
.
start = << your code comes here >>
Fit the model
for the train_set
.
model.fit(train_set, steps_per_epoch=train_size // 32, epochs=2)
Store the end time using time.time()
in end
.
end = << your code comes here >>
Print the time of execution using (end-start)
.
print("Time of execution:", end-start)
Use model.evaluate
to test the model performance on the test_set
.
model.evaluate(test_set)
Want to create exercises like this yourself? Click here.
Note - Having trouble with the assessment engine? Follow the steps listed here
Loading comments...