I am trying to understand a code written in python. They are passing mean_squared_error to make_scorer. What does it mean to pass a function as an argument of another function? What does the underscore at the end of mean_squared_error_
represent?
def fmean_squared_error(ground_truth, predictions):
fmean_squared_error_ = mean_squared_error(ground_truth, predictions)**0.5
return fmean_squared_error_
RMSE = make_scorer(fmean_squared_error, greater_is_better=False)