R2_score is not define error during tabular_learner in Fast AI v2

Hi All,

I am trying to create a tabular learner in Fast AI v2 and wants to use R2 as metrics to see the accuracy of the regression model. It gives the following error:

Any idea why this error is raised.

I will appreciate your response.

Thanks and

Kind Regards,
Bilal