Question
Python Question; I've had this question on a test and I got it wrong. I have no idea which parts if any were correct of
Python Question; I've had this question on a test and I got it wrong. I have no idea which parts if any were correct of whether I'm on the right track. My answers are in bold and italics any help would be amazing
"Referring to the code below,
import scipy.optimize as sco
popt, pcov = sco.curve_fit(func, x, y, (1.5, 2., 1.3),
bounds=(( 1.e-3, 1.e-3, 1.e-3),
(np.inf, np.inf, np.inf) ))
What is the name (in the package) of the parameter that the tuple (1.5, 2., 1.3) specifies?
curve_fit
The method implemented by the curve_fit function may be specified by a str; 'lm', 'trf' or 'dogbox'. The default is 'lm'. Which method str will this specific call to the function utilise?
intercept estimation
What exception or warning would be raised if the covariance of the parameters cannot be estimated?
OptimizeWarning: Covariance of the parameters could not be estimated
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started