Lorsque je tente de lancer:Scipy Optimize erreur Curve_fit pour limites
bet = (nu[minimum],10**4,3000,0,0,5000) # Array of initial bet parameters
bound = ((nu[0],nu[len(nu)-1]),(10**3,10**6),(-np.inf,np.inf),(-np.inf,np.inf),(-np.inf,np.inf),(-np.inf,np.inf))
popt,pcov = curve_fit(S_21,x,y, p0=bet, bounds = bound)
TypeError: leastsq() got an unexpected keyword argument 'bounds'
Quel est le problème? J'utilise Python 3.4.4 sous Windows.
L'argument 'bounds' a été ajouté dans la version scipy 0,17. Quelle version utilisez-vous? Vérifiez avec 'import scipy; print (scipy .__ version __) '. –