Hướng dẫn minimize chi-square python
Ngày đăng:
05/09/2022
Trả lời:
0
Lượt xem:
138
I am trying to minimize a Chi_Squared function. Following Python - Minimizing Chi-squared yields no results since a lot has changed since then. Code:
This old code doesn't work in 3.7 anymore. Now the error that this yields is 'numpy.ndarray' object is not callable I am pretty sure that this is due to me throwing the data(f1,f2,f3,target) into the function as a global turns it into a np_array which then can not be accessed by the minimize library. The question is, how else do I put my data in there? |