
Optimization (scipy.optimize) — SciPy v1.16.2 Manual
Typically, global minimizers efficiently search the parameter space, while using a local minimizer (e.g., minimize) under the hood. SciPy contains a number of good global optimizers. Here, …
curve_fit — SciPy v1.16.2 Manual
For global optimization, other choices of objective function, and other advanced features, consider using SciPy’s Global optimization tools or the LMFIT package.
minimize — SciPy v1.16.2 Manual
It switches between two implementations depending on the problem definition. It is the most versatile constrained minimization algorithm implemented in SciPy and the most appropriate …
solve_ivp — SciPy v1.16.2 Manual
The same format is used in scipy.linalg.solve_banded (check for an illustration). These parameters can be also used with jac=None to reduce the number of Jacobian elements …
differential_evolution — SciPy v1.16.2 Manual
If True (default), then scipy.optimize.minimize with the L-BFGS-B method is used to polish the best population member at the end, which can improve the minimization slightly.
Statistical functions (scipy.stats) — SciPy v1.16.2 Manual
SciPy has many functions for performing hypothesis tests that return a test statistic and a p-value, and several of them return confidence intervals and/or other related information.
find_peaks — SciPy v1.16.2 Manual
To demonstrate this function’s usage we use a signal x supplied with SciPy (see scipy.datasets.electrocardiogram). Let’s find all peaks (local maxima) in x whose amplitude …
chisquare — SciPy v1.16.2 Manual
Beginning in SciPy 1.9, np.matrix inputs (not recommended for new code) are converted to np.ndarray before the calculation is performed. In this case, the output will be a scalar or …
Signal Processing (scipy.signal) — SciPy v1.16.2 Manual
SciPy provides two functions to directly design IIR iirdesign and iirfilter, where the filter type (e.g., elliptic) is passed as an argument and several more filter design functions for specific filter …
griddata — SciPy v1.16.2 Manual
scipy.interpolate. griddata # griddata(points, values, xi, method='linear', fill_value=nan, rescale=False) [source] # Convenience function for interpolating unstructured data in multiple …