The scipy.optimize.curve_fit outputs covariance matrix, see scipy.optimize.curve_fit. I wish to get a single float description of the fitting result and I was use to compare r-squared, the coefficient of determination.
How to get r-squared using the covariance matrix output of scipy.optimize.curve_fit?
I would calculate the r-squared from the dataset https://medium.com/swlh/covariance-correlation-r-sqaured-5cbefc5cbe1c#1ae3 otherwise.