Enrollments closing soon for Post Graduate Certificate Program in Applied Data Science & AI By IIT Roorkee | 3 Seats Left
Apply NowLogin using Social Account
     Continue with GoogleLogin using your credentials
In addition to adding the custom dense layers to train, we should also mention some other factors like:
We shall now see how to do this.
Instantiate SGD optimizer with learning rate lr=0.025
.
sgd = SGD(lr=0.025)
Now let us compile the vgg_model
and mention the loss as 'binary_crossentropy'
since this is a binary classification, optimizer as sgd
which we mentioned above, and metrics as accuracy
.
<< your code comes here >>.compile(loss=<< your code comes here >>, optimizer=sgd, metrics=['accuracy'])
Taking you to the next exercise in seconds...
Want to create exercises like this yourself? Click here.
Note - Having trouble with the assessment engine? Follow the steps listed here
Loading comments...