Describe the maintenance request
Currently the Coefficient of determination/R-Squared is computed using a square of correlation. We need to change it to the following:

Current impact
Currently, in case of target values or predicted values consists of only one value, the output is a NaN which is not entirely correct.
Version
v0.4.0 (Default)
Additional context
No response