Open
Description
Hello
As per the code, you can estimate the coefficient of determination (r2) to compare the fit of theoretical covariance model with the experimental semivariogram.
para, pcov, r2 = fit_model.fit_variogram(bin_center, gamma, return_r2=True)
However, this is wrong as r2 is for linear regression and the covariance functions are not linear. This makes the r2 not credible.
I suggest using a different goodness-of-fit criteria such as "standard error of regression" instead of r2.
Thanks.