A good fit is that perfect sweet spot between overfitting and underfitting. As a machine learning algorithm learns, the error for the model on the training data and the error on the test dataset reduces.