Underfitting : Underfitting is opposite to overfitting hence it will not work on training as well as test dataas it has not understood well. This is similar to scenario where a student gives exam with less preparation. To remove underfittingwe should give more data to the model so that it can learn with deeper…