Least Linear Squares: scipy.optimize.curve_fit() throws “Result from function call is not a proper array of floats.”
问题 i am trying to implement an python code right now, which computes the least squared error for a matrix equation First, I have some 2 dimensional Data XDATA (Array of Array of Floats), Shape 100,9 Second, I have some 2 dimesional YDATA, Shape 100,3 My function creates an array of 3 entries out of an array of 9 entries and 3 unknow parameters. So im trying to estimate these parameters via linear least squares: #linear regression #Messured Data xdata = np.array(data[0:9]) xdata = xdata.astype(np