base_models_loss function

Computing the error of base models