

This is a process that helps us figure out where and why the errors occur. Poor quality of predictions made by an ML model does not necessarily mean there is a bug. You have to investigate a broader range of causes: maybe it is the data that contains errors or hyperparameters are not adjusted well. This makes debugging ML models quite challenging.
Sources