Why do the same set of data get different R2 calculated by three methods (r2_score & fit trendline in excel & linear regression in spss)?
For the same set of data, e.g. x1=1, y1=3 x1=2, y1=2 x1=3, y1=1 calculated by r2_score: ''' from sklearn.metrics import r2_score r2_score([1,2,3], [3,2,1])''' the result is -3 2. plot graph in...
27 February 2023
3,230
5
View