Conversation
|
Hey! Changelogs info seems to be missing or might be in incorrect format. |
|
Seems you are using me but didn't get OPENAI_API_KEY seted in Variables/Secrets for this repo. you could follow readme for more information |
906d168 to
6a26fa3
Compare
|
Seems you are using me but didn't get OPENAI_API_KEY seted in Variables/Secrets for this repo. you could follow readme for more information |
6a26fa3 to
fdb251b
Compare
|
Seems you are using me but didn't get OPENAI_API_KEY seted in Variables/Secrets for this repo. you could follow readme for more information |
fdb251b to
d0f9870
Compare
|
Seems you are using me but didn't get OPENAI_API_KEY seted in Variables/Secrets for this repo. you could follow readme for more information |
d0f9870 to
b6b5e92
Compare
|
Seems you are using me but didn't get OPENAI_API_KEY seted in Variables/Secrets for this repo. you could follow readme for more information |
b6b5e92 to
a70f307
Compare
|
Seems you are using me but didn't get OPENAI_API_KEY seted in Variables/Secrets for this repo. you could follow readme for more information |
a70f307 to
7318ea3
Compare
|
Seems you are using me but didn't get OPENAI_API_KEY seted in Variables/Secrets for this repo. you could follow readme for more information |
7318ea3 to
31630dd
Compare
|
Seems you are using me but didn't get OPENAI_API_KEY seted in Variables/Secrets for this repo. you could follow readme for more information |
This PR contains the following updates:
==1.10.1->==1.14.0Release Notes
scipy/scipy (scipy)
v1.14.0Compare Source
v1.13.1: SciPy 1.13.1Compare Source
SciPy 1.13.1 Release Notes
SciPy
1.13.1is a bug-fix release with no new featurescompared to
1.13.0. The version of OpenBLAS shipped withthe PyPI binaries has been increased to
0.3.27.Authors
A total of 19 people contributed to this release.
People with a "+" by their names contributed a patch for the first time.
This list of names is automatically generated, and may not be fully complete.
v1.13.0: SciPy 1.13.0Compare Source
SciPy 1.13.0 Release Notes
SciPy
1.13.0is the culmination of 3 months of hard work. Thisout-of-band release aims to support NumPy
2.0.0, and is backwardscompatible to NumPy
1.22.4. The version of OpenBLAS used to buildthe PyPI wheels has been increased to
0.3.26.dev.This release requires Python 3.9+ and NumPy 1.22.4 or greater.
For running on PyPy, PyPy3 6.0+ is required.
Highlights of this release
2.0.0.to run the examples locally on embedded Jupyterlite notebooks in their
browser.
scipy.statsfunctions have gained support for additionalaxis,nan_policy, andkeepdimsarguments.scipy.statsalsohas several performance and accuracy improvements.
New features
scipy.integrateimprovementsterminalattribute ofscipy.integrate.solve_ivpeventscallables now additionally accepts integer values to specify a number
of occurrences required for termination, rather than the previous restriction
of only accepting a
boolvalue to terminate on the first registeredevent.
scipy.ioimprovementsscipy.io.wavfile.writehas improveddtypeinput validation.scipy.interpolateimprovementsinterpolate.Akima1DInterpolator, available via the newmethodargument.
BSpline.insert_knotinserts a knot into aBSplineinstance.This routine is similar to the module-level
scipy.interpolate.insertfunction, and works with the BSpline objects instead of
tcktuples.RegularGridInterpolatorgained the functionality to compute derivativesin place. For instance,
RegularGridInterolator((x, y), values, method="cubic")(xi, nu=(1, 1))evaluates the mixed second derivative,:math:
\partial^2 / \partial x \partial yatxi.RegularGridInterpolatorhave been changed: evaluations should besignificantly faster, while construction might be slower. If you experience
issues with construction times, you may need to experiment with optional
keyword arguments
solverandsolver_args. Previous behavior (fastconstruction, slow evaluations) can be obtained via
"*_legacy"methods:method="cubic_legacy"is exactly equivalent tomethod="cubic"inprevious releases. See
gh-19633for details.scipy.signalimprovementssampling frequency (
fs).scipy.sparseimprovementscoo_arraynow supports 1D shapes, and has additional 1D support formin,max,argmin, andargmax. The DOK format now haspreliminary 1D support as well, though only supports simple integer indices
at the time of writing.
pydata/sparsearray inputs toscipy.sparse.csgraph.dok_arrayanddok_matrixnow have proper implementations offromkeys.csrandcscformats now have improvedsetdiagperformance.scipy.spatialimprovementsvoronoi_plot_2dnow draws Voronoi edges to infinity more clearlywhen the aspect ratio is skewed.
scipy.specialimprovementsAMOS,specfun, andcdfliblibrariesthat the majority of special functions depend on, is ported to Cython/C.
factorialknow also supports faster, approximatecalculation using
exact=False.scipy.statsimprovementsscipy.stats.rankdataandscipy.stats.wilcoxonhave been vectorized,improving their performance and the performance of hypothesis tests that
depend on them.
stats.mannwhitneyushould now be faster due to a vectorized statisticcalculation, improved caching, improved exploitation of symmetry, and a
memory reduction.
PermutationMethodsupport was also added.scipy.stats.moodnow hasnan_policyandkeepdimssupport.scipy.stats.brunnermunzelnow hasaxisandkeepdimssupport.scipy.stats.friedmanchisquare,scipy.stats.shapiro,scipy.stats.normaltest,scipy.stats.skewtest,scipy.stats.kurtosistest,scipy.stats.f_oneway,scipy.stats.alexandergovern,scipy.stats.combine_pvalues, andscipy.stats.kstesthave gainedaxis,nan_policyandkeepdimssupport.scipy.stats.boxcox_normmaxhas gained aymaxparameter to allow userspecification of the maximum value of the transformed data.
scipy.stats.vonmisespdfmethod has been extended to supportkappa=0. Thefitmethod is also more performant due to the use ofnon-trivial bounds to solve for
kappa.momentcalculations forscipy.stats.powerlaware now moreaccurate.
fitmethods ofscipy.stats.gamma(withmethod='mm') andscipy.stats.loglaplaceare faster and more reliable.scipy.stats.goodness_of_fitnow supports the use of a customstatisticprovided by the user.
scipy.stats.wilcoxonnow supportsPermutationMethod, enablingcalculation of accurate p-values in the presence of ties and zeros.
scipy.stats.monte_carlo_testnow has improved robustness in the face ofnumerical noise.
scipy.stats.wasserstein_distance_ndwas introduced to compute theWasserstein-1 distance between two N-D discrete distributions.
Deprecated features
PchipInterpolatorandAkima1DInterpolatorhavebeen deprecated and will raise an error in SciPy 1.15.0. If you are trying
to use the real components of the passed array, use
np.realony.Backwards incompatible changes
Other changes
scipy.stats.momenthas been renamed toorderwhile maintaining backward compatibility.
Authors
A total of 96 people contributed to this release.
People with a "+" by their names contributed a patch for the first time.
This list of names is automatically generated, and may not be fully complete.
v1.12.0: SciPy 1.12.0Compare Source
SciPy 1.12.0 Release Notes
SciPy
1.12.0is the culmination of6months of hard work. It containsmany new features, numerous bug-fixes, improved test coverage and better
documentation. There have been a number of deprecations and API changes
in this release, which are documented below. All users are encouraged to
upgrade to this release, as there are a large number of bug-fixes and
optimizations. Before upgrading, we recommend that users check that
their own code does not use deprecated SciPy functionality (to do so,
run your code with
python -Wdand check forDeprecationWarnings).Our development attention will now shift to bug-fix releases on the
1.12.x branch, and on adding new features on the main branch.
This release requires Python
3.9+and NumPy1.22.4or greater.For running on PyPy, PyPy3
6.0+is required.Highlights of this release
scipy.special, and to all ofscipy.fftandscipy.cluster. There arelikely to be bugs and early feedback for usage with CuPy arrays, PyTorch
tensors, and other array API compatible libraries is appreciated. Use the
SCIPY_ARRAY_APIenvironment variable for testing.ShortTimeFFT, provides a more versatile implementation of theshort-time Fourier transform (STFT), its inverse (ISTFT) as well as the (cross-)
spectrogram. It utilizes an improved algorithm for calculating the ISTFT.
now additionally support sparse arrays, further facilitating the migration
from sparse matrices.
scipy.statsAPI now has improved support for handlingNaNvalues, masked arrays, and more fine-grained shape-handling. Theaccuracy and performance of a number of
statsmethods have been improved,and a number of new statistical tests and distributions have been added.
New features
scipy.clusterimprovementsCuPy arrays and array API compatible array libraries are now accepted
(GPU support is limited to functions with pure Python implementations).
CPU arrays which can be converted to and from NumPy are supported
module-wide and returned arrays will match the input type.
This behaviour is enabled by setting the
SCIPY_ARRAY_APIenvironmentvariable before importing
scipy. This experimental support is stillunder development and likely to contain bugs - testing is very welcome.
scipy.fftimprovementspart of the
fftarray API standard extension module, as well as theFast Hankel Transforms and the basic FFTs which are not in the extension
module, now accept PyTorch tensors, CuPy arrays and array API compatible
array libraries. CPU arrays which can be converted to and from NumPy arrays
are supported module-wide and returned arrays will match the input type.
This behaviour is enabled by setting the
SCIPY_ARRAY_APIenvironmentvariable before importing
scipy. This experimental support is still underdevelopment and likely to contain bugs - testing is very welcome.
scipy.integrateimprovementsscipy.integrate.cumulative_simpsonfor cumulative quadraturefrom sampled data using Simpson's 1/3 rule.
scipy.interpolateimprovementsNdBSplinerepresents tensor-product splines in N dimensions.This class only knows how to evaluate a tensor product given coefficients
and knot vectors. This way it generalizes
BSplinefor 1D data to N-D, andparallels
NdPPoly(which represents N-D tensor product polynomials).Evaluations exploit the localized nature of b-splines.
NearestNDInterpolator.__call__accepts**query_options, which arepassed through to the
KDTree.querycall to find nearest neighbors. Thisallows, for instance, to limit the neighbor search distance and parallelize
the query using the
workerskeyword.BarycentricInterpolatornow allows computing the derivatives.CloughTocher2DInterpolatorinstance, while also saving the barycentriccoordinates of interpolation points.
scipy.linalgimprovementsdtgsylandstgsyl.scipy.optimizeimprovementsscipy.optimize.isotonic_regressionhas been added to allow nonparametric isotonicregression.
scipy.optimize.nnlsis rewritten in Python and now implements the so-calledfnnls or fast nnls, making it more efficient for high-dimensional problems.
scipy.optimize.rootandscipy.optimize.root_scalarnow reports the method used.
callbackmethod ofscipy.optimize.differential_evolutioncan now bepassed more detailed information via the
intermediate_resultskeywordparameter. Also, the evolution
strategynow accepts a callable foradditional customization. The performance of
differential_evolutionhasalso been improved.
scipy.optimize.minimizemethodNewton-CGnow supports functions thatreturn sparse Hessian matrices/arrays for the
hessparameter and is slightlymore efficient.
scipy.optimize.minimizemethodBFGSnow accepts an initial estimate for theinverse of the Hessian, which allows for more efficient workflows in some
circumstances. The new parameter is
hess_inv0.scipy.optimize.minimizemethodsCG,Newton-CG, andBFGSnow acceptparameters
c1andc2, allowing specification of the Armijo and curvature ruleparameters, respectively.
scipy.optimize.curve_fitperformance has improved due to more efficient memoizationof the callable function.
scipy.signalimprovementsfreqz,freqz_zpk, andgroup_delayare now more accuratewhen
fshas a default value.ShortTimeFFTprovides a more versatile implementation of theshort-time Fourier transform (STFT), its inverse (ISTFT) as well as the (cross-)
spectrogram. It utilizes an improved algorithm for calculating the ISTFT based on
dual windows and provides more fine-grained control of the parametrization especially
in regard to scaling and phase-shift. Functionality was implemented to ease
working with signal and STFT chunks. A section has been added to the "SciPy User Guide"
providing algorithmic details. The functions
stft,istftandspectrogramhave been marked as legacy.
scipy.sparseimprovementssparse.linalgiterative solverssparse.linalg.cg,sparse.linalg.cgs,sparse.linalg.bicg,sparse.linalg.bicgstab,sparse.linalg.gmres, andsparse.linalg.qmrare rewritten in Python.6.0.1, along with a few additionalfixes.
eye_array,random_array,block_array, andidentity.kronandkronsumhave been adjusted to additionally support operation on sparse arrays.
axes=(1, 0), to mirrorthe
.Tmethod.LaplacianNdnow allows selection of the largest subset of eigenvalues,and additionally now supports retrieval of the corresponding eigenvectors.
The performance of
LaplacianNdhas also been improved.dok_matrixanddok_arrayhas been improved,and their inheritance behavior should be more robust.
hstack,vstack, andblock_diagnow work with sparse arrays, andpreserve the input sparse type.
scipy.sparse.linalg.matrix_power, has been added, allowingfor exponentiation of sparse arrays.
scipy.spatialimprovementsspatial.transform.Rotation:__pow__to raise a rotation to integer or fractional power andapprox_equalto check if two rotations are approximately equal.Rotation.align_vectorswas extended to solve a constrainedalignment problem where two vectors are required to be aligned precisely.
Also when given a single pair of vectors, the algorithm now returns the
rotation with minimal magnitude, which can be considered as a minor
backward incompatible change.
spatial.transform.Rotationcalled Davenportangles is available through
from_davenportandas_davenportmethods.distance.hamminganddistance.correlation.SphericalVoronoisort_vertices_of_regionsand two dimensional area calculations.
scipy.specialimprovementsscipy.special.stirling2for computation of Stirling numbers of thesecond kind. Both exact calculation and an asymptotic approximation
(the default) are supported via
exact=Trueandexact=False(thedefault) respectively.
scipy.special.betainccfor computation of the complementaryincomplete Beta function and
scipy.special.betainccinvfor computation ofits inverse.
scipy.special.betaincandscipy.special.betaincinv.scipy.special.log_ndtr,scipy.special.ndtr,scipy.special.ndtri,scipy.special.erf,scipy.special.erfc,scipy.special.i0,scipy.special.i0e,scipy.special.i1,scipy.special.i1e,scipy.special.gammaln,scipy.special.gammainc,scipy.special.gammaincc,scipy.special.logit, andscipy.special.expitnow accept PyTorch tensorsand CuPy arrays. These features are still under development and likely to
contain bugs, so they are disabled by default; enable them by setting a
SCIPY_ARRAY_APIenvironment variable to1before importingscipy.Testing is appreciated!
scipy.statsimprovementsscipy.stats.quantile_test, a nonparametric test of whether ahypothesized value is the quantile associated with a specified probability.
The
confidence_intervalmethod of the result object gives a confidenceinterval of the quantile.
scipy.stats.sampling.FastGeneratorInversionprovides a convenientinterface to fast random sampling via numerical inversion of distribution
CDFs.
scipy.stats.geometric_discrepancyadds geometric/topological discrepancymetrics for random samples.
scipy.stats.multivariate_normalnow has afitmethod for fittingdistribution parameters to data via maximum likelihood estimation.
scipy.stats.bws_testperforms the Baumgartner-Weiss-Schindler test ofwhether two-samples were drawn from the same distribution.
scipy.stats.jf_skew_timplements the Jones and Faddy skew-t distribution.scipy.stats.anderson_ksampnow supports a permutation version of the testusing the
methodparameter.fitmethods ofscipy.stats.halfcauchy,scipy.stats.halflogistic, andscipy.stats.halfnormare faster and more accurate.scipy.stats.betaentropyaccuracy has been improved for extreme values ofdistribution parameters.
sfand/orisfmethods have been improved forseveral distributions:
scipy.stats.burr,scipy.stats.hypsecant,scipy.stats.kappa3,scipy.stats.loglaplace,scipy.stats.lognorm,scipy.stats.lomax,scipy.stats.pearson3,scipy.stats.rdist, andscipy.stats.pareto.axis,nan_policy, andkeep_dims:scipy.stats.entropy,scipy.stats.differential_entropy,scipy.stats.variation,scipy.stats.ansari,scipy.stats.bartlett,scipy.stats.levene,scipy.stats.fligner,scipy.stats.circmean,scipy.stats.circvar,scipy.stats.circstd,scipy.stats.tmean,scipy.stats.tvar,scipy.stats.tstd,scipy.stats.tmin,scipy.stats.tmax,and
scipy.stats.tsem.logpdfandfitmethods ofscipy.stats.skewnormhave been improved.scipy.stats.betanbinom.scipy.stats.invwishartrvsandlogpdf.scipy.stats.boxcox_normmaxwithmethod='mle'has been eliminated, and the returned value oflmbdaisconstrained such that the transformed data will not overflow.
scipy.stats.nakagamistatsis more accurate and reliable.scipy.norminvgauss.pdfhas been eliminated.scipy.stats.circmean,scipy.stats.circvar,scipy.stats.circstd, andscipy.stats.entropy.scipy.stats.dirichlethas gained a new covariance (cov) method.entropymethod ofscipy.stats.multivariate_tfor largedegrees of freedom.
scipy.stats.loggammahas an improvedentropymethod.Deprecated features
Error messages have been made clearer for objects that don't exist in the
public namespace and warnings sharpened for private attributes that are not
supposed to be imported at all.
scipy.signal.cmplx_sorthas been deprecated and will be removed inSciPy 1.15. A replacement you can use is provided in the deprecation message.
Values the the argument
initialofscipy.integrate.cumulative_trapezoidother than
0andNoneare now deprecated.scipy.stats.rvs_ratio_uniformsis deprecated in favour ofscipy.stats.sampling.RatioUniformsscipy.integrate.quadratureandscipy.integrate.romberghave beendeprecated due to accuracy issues and interface shortcomings. They will
be removed in SciPy 1.15. Please use
scipy.integrate.quadinstead.Coinciding with upcoming changes to function signatures (e.g. removal of a
deprecated keyword), we are deprecating positional use of keyword arguments
for the affected functions, which will raise an error starting with
SciPy 1.14. In some cases, this has delayed the originally announced
removal date, to give time to respond to the second part of the deprecation.
Affected functions are:
linalg.{eigh, eigvalsh, pinv}integrate.simpsonsignal.{firls, firwin, firwin2, remez}sparse.linalg.{bicg, bicgstab, cg, cgs, gcrotmk, gmres, lgmres, minres, qmr, tfqmr}special.combstats.kendalltauAll wavelet functions have been deprecated, as PyWavelets provides suitable
implementations; affected functions are:
signal.{daub, qmf, cascade, morlet, morlet2, ricker, cwt}scipy.integrate.trapz,scipy.integrate.cumtrapz, andscipy.integrate.simpshavebeen deprecated in favour of
scipy.integrate.trapezoid,scipy.integrate.cumulative_trapezoid,and
scipy.integrate.simpsonrespectively and will be removed in SciPy 1.14.The
tolargument ofscipy.sparse.linalg.{bcg,bicstab,cg,cgs,gcrotmk,gmres,lgmres,minres,qmr,tfqmr}is now deprecated in favour of
rtoland will be removed in SciPy 1.14.Furthermore, the default value of
atolfor these functions is dueto change to
0.0in SciPy 1.14.Expired Deprecations
There is an ongoing effort to follow through on long-standing deprecations.
The following previously deprecated features are affected:
centeredkeyword ofscipy.stats.qmc.LatinHypercubehas been removed.Use
scrambled=Falseinstead ofcentered=True.scipy.stats.binom_testhas been removed in favour ofscipy.stats.binomtest.scipy.stats.iqr, the use ofscale='raw'has been removed in favourof
scale=1.Backwards incompatible changes
Other changes
show_config.Authors
A total of 163 people contributed to this release.
People with a "+" by their names contributed a patch for the first time.
This list of names is automatically generated, and may not be fully complete.
v1.11.4: SciPy 1.11.4Compare Source
SciPy 1.11.4 Release Notes
SciPy
1.11.4is a bug-fix release with no new featurescompared to
1.11.3.Authors
A total of 9 people contributed to this release.
People with a "+" by their names contributed a patch for the first time.
This list of names is automatically generated, and may not be fully complete.
v1.11.3: SciPy 1.11.3Compare Source
SciPy 1.11.3 Release Notes
SciPy
1.11.3is a bug-fix release with no new featurescompared to
1.11.2.Authors
A total of 17 people contributed to this release.
People with a "+" by their names contributed a patch for the first time.
This list of names is automatically generated, and may not be fully complete.
v1.11.2: SciPy 1.11.2Compare Source
SciPy 1.11.2 Release Notes
SciPy
1.11.2is a bug-fix release with no new featurescompared to
1.11.1. Python3.12and musllinux wheelsare provided with this release.
Authors
A total of 18 people contributed to this release.
People with a "+" by their names contributed a patch for the first time.
This list of names is automatically generated, and may not be fully complete.
v1.11.1: SciPy 1.11.1Compare Source
SciPy 1.11.1 Release Notes
SciPy
1.11.1is a bug-fix release with no new featurescompared to
1.11.0. In particular, a licensing issuediscovered after the release of
1.11.0has been addressed.Authors
A total of 4 people contributed to this release.
People with a "+" by their names contributed a patch for the first time.
This list of names is automatically generated, and may not be fully complete.
v1.11.0: SciPy 1.11.0Compare Source
SciPy 1.11.0 Release Notes
SciPy
1.11.0is the culmination of 6 months of hard work. It containsmany new features, numerous bug-fixes, improved test coverage and better
documentation. There have been a number of deprecations and API changes
in this release, which are documented below. All users are encouraged to
upgrade to this release, as there are a large number of bug-fixes and
optimizations. Before upgrading, we recommend that users check that
their own code does not use deprecated SciPy functionality (to do so,
run your code with
python -Wdand check forDeprecationWarnings).Our development attention will now shift to bug-fix releases on the
1.11.x branch, and on adding new features on the main branch.
This release requires Python
3.9+and NumPy1.21.6or greater.For running on PyPy, PyPy3
6.0+is required.Highlights of this release
scipy.sparsearray API improvements, includingsparse.sparray, a newpublic base class distinct from the older
sparse.spmatrixclass,proper 64-bit index support, and numerous deprecations paving the way to a
modern sparse array experience.
scipy.statsadded tools for survival analysis, multiple hypothesis testing,sensitivity analysis, and working with censored data.
algebra functions
detandlunow accept nD-arrays.axesargument was added broadly tondimagefunctions, facilitatinganalysis of stacked image data.
New features
scipy.integrateimprovementsscipy.integrate.qmc_quadfor quasi-Monte Carlo integration.scipy.integrate.simpsonnow calculatesa parabolic segment over the last three points which gives improved
accuracy over the previous implementation.
scipy.clusterimprovementsdisjoint_sethas a new methodsubset_sizefor providing the sizeof a particular subset.
scipy.constantsimprovementsquetta,ronna,ronto, andquectoSI prefixes were added.scipy.linalgimprovementsscipy.linalg.detis improved and now accepts nD-arrays.scipy.linalg.luis improved and now accepts nD-arrays. With the newp_indicesswitch the output permutation argument can be 1D(n,)permutation index instead of the full
(n, n)array.scipy.ndimageimprovementsaxesargument was added torank_filter,percentile_filter,median_filter,uniform_filter,minimum_filter,maximum_filter, andgaussian_filter, which can be useful forprocessing stacks of image data.
scipy.optimizeimprovementsscipy.optimize.linprognow passes unrecognized options directly to HiGHS.scipy.optimize.root_scalarnow uses Newton's method to be used withoutproviding
fprimeand thesecantmethod to be used without a secondguess.
scipy.optimize.lsq_linearnow acceptsboundsarguments of typescipy.optimize.Bounds.scipy.optimize.minimizemethod='cobyla'now supports simple boundconstraints.
scipy.optimize.minimize: If the provided callback callable acceptsa single keyword argument,
intermediate_result,scipy.optimize.minimizenow passes both the current solution and the optimal value of the objective
function to the callback as an instance of
scipy.optimize.OptimizeResult.It also allows the user to terminate optimization by raising a
StopIterationexception from the callback function.scipy.optimize.minimizewill return normally, and the latest solutioninformation is provided in the result object.
scipy.optimize.curve_fitnow supports an optionalnan_policyargument.scipy.optimize.shgonow has parallelization with theworkersargument,symmetry arguments that can improve performance, class-based design to
improve usability, and generally improved performance.
scipy.signalimprovementsistfthas an improved warning message when the NOLA condition fails.scipy.sparseimprovementsscipy.sparse.sparraywas introduced, allowing furtherextension of the sparse array API (such as the support for 1-dimensional
sparse arrays) without breaking backwards compatibility.
isinstance(x, scipy.sparse.sparray)to select the new sparse array classes,while
isinstance(x, scipy.sparse.spmatrix)selects only the old sparsematrix classes.
scipy.sparse.isspmatrixnow only returnsTruefor the sparse matrices instances.scipy.sparse.issparsenow has to be used instead to check for instances of sparsearrays or instances of sparse matrices.
downcast to int32.
argminandargmaxmethods now return the correct result when explicitzeros are present.
scipy.sparse.linalgimprovementsLinearOperatorby a number now returns a_ScaledLinearOperatorLinearOperatornow supports right multiplication by arrayslobpcgshould be more efficient following removal of an extraneousQR decomposition.
scipy.spatialimprovementswhich will see substantial performance improvements, though a few minor
regressions are known. These are focused on distances between boolean
arrays.
scipy.specialimprovementsfactorial,factorial2andfactorialkwere made consistent in their behavior (in terms of dimensionality,
errors etc.). Additionally,
factorial2can now handle arrays withexact=True, andfactorialkcan handle arrays.scipy.statsimprovementsNew Features
scipy.stats.sobol_indices, a method to compute Sobol' sensitivity indices.scipy.stats.dunnett, which performs Dunnett's test of the means of multipleexperimental groups against the mean of a control group.
scipy.stats.ecdffor computing the empirical CDF and complementaryCDF (survival function / SF) from uncensored or right-censored data. This
function is also useful for survival analysis / Kaplan-Meier estimation.
scipy.stats.logrankto compare survival functions underlying samples.scipy.stats.false_discovery_controlfor adjusting p-values to control thefalse discovery rate of multiple hypothesis tests using the
Benjamini-Hochberg or Benjamini-Yekutieli procedures.
scipy.stats.CensoredDatato represent censored data. It can be used asinput to the
fitmethod of univariate distributions and to the newecdffunction.method='Filliben'ofscipy.stats.goodness_of_fit.scipy.stats.ttest_indhas a new method,confidence_intervalforcomputing a confidence interval of the difference between means.
scipy.stats.MonteCarloMethod,scipy.stats.PermutationMethod, andscipy.stats.BootstrapMethodare new classes to configure resampling and/orMonte Carlo versions of hypothesis tests. They can currently be used with
scipy.stats.pearsonr.Statistical Distributions
Added the von-Mises Fisher distribution as
scipy.stats.vonmises_fisher.This distribution is the most common analogue of the normal distribution
on the unit sphere.
Added the relativistic Breit-Wigner distribution as
scipy.stats.rel_breitwigner.It is used in high energy physics to model resonances.
Added the Dirichlet multinomial distribution as
scipy.stats.dirichlet_multinomial.Improved the speed and precision of several univariate statistical
distributions.
scipy.stats.anglitsfscipy.stats.betaentropyscipy.stats.betaprimecdf,sf,ppfscipy.stats.chientropyscipy.stats.chi2entropyscipy.stats.dgammaentropy,cdf,sf,ppf, andisfscipy.stats.dweibullentropy,sf, andisfscipy.stats.exponweibsfandisfscipy.stats.fentropyscipy.stats.foldcauchysfscipy.stats.foldnormcdfandsfscipy.stats.gammaentropyscipy.stats.genexponppf,isf,rvsscipy.stats.gengammaentropyscipy.stats.geomentropyscipy.stats.genlogisticentropy,logcdf,sf,ppf,and
isfscipy.stats.genhyperboliccdfandsfscipy.stats.gibratsfandisfscipy.stats.gompertzentropy,sf. andisfscipy.stats.halflogisticsf, andisfscipy.stats.halfcauchysfandisfscipy.stats.halfnormcdf,sf, andisfscipy.stats.invgammaentropyscipy.stats.invgaussentropyscipy.stats.johnsonsbpdf,cdf,sf,ppf, andisfscipy.stats.johnsonsupdf,sf,isf, andstatsscipy.stats.lognormfitscipy.stats.loguniformentropy,logpdf,pdf,cdf,ppf,and
statsscipy.stats.maxwellsfandisfscipy.stats.nakagamientropyscipy.stats.powerlawsfscipy.stats.powerlognormlogpdf,logsf,sf, andisfscipy.stats.powernormsfandisfscipy.stats.tentropy,logpdf, andpdfscipy.stats.truncexponsf, andisfscipy.stats.truncnormentropyscipy.stats.truncparetofitscipy.stats.vonmisesfitscipy.stats.multivariate_tnow hascdfandentropymethods.scipy.stats.multivariate_normal,scipy.stats.matrix_normal, andscipy.stats.invwishartnow have anentropymethod.Other Improvements
scipy.stats.monte_carlo_testnow supports multi-sample statistics.scipy.stats.bootstrapcan now produce one-sided confidence intervals.scipy.stats.rankdataperformance was improved formethod=ordinalandmethod=dense.scipy.stats.momentnow supports non-central moment calculation.scipy.stats.andersonnow supports theweibull_mindistribution.scipy.stats.semandscipy.stats.iqrnow supportaxis,nan_policy,and masked array input.
Deprecated features
be removed in SciPy 1.13.
asfptype,getrow,getcol,get_shape,getmaxprint,set_shape,getnnz, andgetformat. Additionally, the.Aand.Hattributes were deprecated. Sparse matrix types are not affected.
scipy.linalgfunctionstri,triu&trilare deprecated andwill be removed in SciPy 1.13. Users are recommended to use the NumPy
versions of these functions with identical names.
scipy.signalfunctionsbspline,quadratic&cubicaredeprecated and will be removed in SciPy 1.13. Users are recommended to use
scipy.interpolate.BSplineinstead.evenkeyword ofscipy.integrate.simpsonis deprecated and will beremoved in SciPy 1.13.0. Users should leave this as the default as this
gives improved accuracy compared to the other methods.
exact=Truewhen passing integers in a float array tofactorialis deprecated and will be removed in SciPy 1.13.0.
scipy.signal.medfiltandscipy.signal.order_filterscipy.signal.{lsim2, impulse2, step2}had long beendeprecated in documentation only. They now raise a DeprecationWarning and
will be removed in SciPy 1.13.0.
scipy.windowhas been softdeprecated since SciPy 1.1.0. They now raise a
DeprecationWarningandwill be removed in SciPy 1.13.0. Users should instead import them from
scipy.signal.windowor use the convenience functionscipy.signal.get_window.Backwards incompatible changes
legacykeyword ofscipy.special.combhas changedfrom
TruetoFalse, as announced since its introduction.Expired Deprecations
There is an ongoing effort to follow through on long-standing deprecations.
The following previously deprecated features are affected:
nkeyword has been removed fromscipy.stats.moment.alphakeyword has been removed fromscipy.stats.interval.gilbratdistribution has been removed (usescipy.stats.gibrat).kulsinskidistance metric has beenremoved (use
scipy.spatial.distance.kulczynski1).verticeskeyword ofscipy.spatial.Delauney.qhullhas been removed(use simplices).
residualproperty ofscipy.sparse.csgraph.maximum_flowhas beenremoved (use
flow).extradockeyword ofscipy.stats.rv_continuous,scipy.stats.rv_discreteandscipy.stats.rv_samplehas been removed.sym_poskeyword ofscipy.linalg.solvehas been removed.scipy.optimize.minimizefunction now raises an error forx0withx0.ndim > 1.scipy.stats.mode, the default value ofkeepdimsis nowFalse,and support for non-numeric input has been removed.
scipy.signal.lsimdoes not support non-uniform time stepsanymore.
Other changes
Authors
A total of 134 people contributed to this release.
People with a "+" by their names contributed a patch for the first time.
This list of names is automatically generated, and may not be fully complete.
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate. View repository job log here.