SciPy 0.18.0 Release Notes
scipy.stats.kappa4
New scipy.stats.iqr function computes the interquartile region of a
distribution.
scipy.special.spherical_kn
sph_*
Several special functions have been extended to the complex domain and/or
have seen domain/stability improvements. This includes spence, digamma,
log1p and several others.
nanmedian
A bug in the rvs() method of the distributions in scipy.stats has
been fixed. When arguments to rvs() were given that were shaped for
broadcasting, in many cases the returned random samples were not random.
A simple example of the problem is stats.norm.rvs(loc=np.zeros(10)).
Because of the bug, that call would return 10 identical values. The bug
only affected code that relied on the broadcasting of the shape, location
and scale parameters.
The rvs() method also accepted some arguments that it should not have.
There is a potential for backwards incompatibility in cases where rvs()
accepted arguments that are not, in fact, compatible with broadcasting.
An example is
stats.gamma.rvs([2, 5, 10, 15], size=(2,2))
The shape of the first argument is not compatible with the requested size,
but the function still returned an array with shape (2, 2). In scipy 0.18,
that call generates a ValueError.
#2534: The sparse .sum() method with uint8 dtype does not act like the…
#3113: Implement ufuncs for CSPHJY, SPHJ, SPHY, CSPHIK, SPHI, SPHIK…
#3568: SciPy 0.13.3 - CentOS5 - Errors in test_arpack
#3581: optimize: stepsize in fmin_bfgs is “bad”
#4476: scipy.sparse non-native endian bug
#4484: ftol in optimize.fmin fails to work
#4510: sparsetools.cxx call_thunk can segfault due to out of bounds…
#5051: ftol and xtol for _minimize_neldermead are absolute instead of…
#5097: proposal: spherical Voronoi diagrams
#5220: scipy.cluster.hierarchy.{ward,median,centroid} does not work…
#5379: Add a build step at the end of .travis.yml that uploads working…
#5440: scipy.optimize.basinhopping: accept_test returning numpy.bool_…
#5452: Error in scipy.integrate.nquad when using variable integration…
#5520: Cannot inherit csr_matrix properly
#5533: Kendall tau implementation uses Python mergesort
#5553: stats.tiecorrect overflows
#5589: Add the Type XII Burr distribution to stats.
#5612: sparse.linalg factorizations slow for small k due to default…
#5626: io.netcdf masking should use masked_equal rather than masked_value
#5637: Simple cubic spline interpolation?
#5683: BUG: Akima1DInterpolator may return nans given multidimensional…
#5686: scipy.stats.ttest_ind_from_stats does not accept arrays
#5702: scipy.ndimage.interpolation.affine_transform lacks documentation…
#5718: Wrong computation of weighted minkowski distance in cdist
#5745: move to setuptools for next release
#5752: DOC: solve_discrete_lyapunov equation puts transpose in wrong…
#5760: signal.ss2tf doesn’t handle zero-order state-space models
#5764: Hypergeometric function hyp0f1 behaves incorrectly for complex…
#5814: stats NaN Policy Error message inconsistent with code
#5833: docstring of stats.binom_test() needs an update
#5853: Error in scipy.linalg.expm for complex matrix with shape (1,1)
#5856: Specify Nelder-Mead initial simplex
#5865: scipy.linalg.expm fails for certain numpy matrices
#5915: optimize.basinhopping - variable referenced before assignment.
#5916: LSQUnivariateSpline fitting failed with knots generated from…
#5927: unicode vs. string comparison in scipy.stats.binned_statistic_dd
#5936: faster implementation of ks_2samp
#5948: csc matrix .mean returns single element matrix rather than scalar
#5959: BUG: optimize test error for root when using lgmres
#5972: Test failures for sparse sum tests on 32-bit Python
#5976: Unexpected exception in scipy.sparse.bmat while using 0 x 0 matrix
#6008: scipy.special.kl_div not available in 0.14.1
#6011: The von-Mises entropy is broken
#6016: python crashes for linalg.interpolative.svd with certain large…
#6017: Wilcoxon signed-rank test with zero_method=”pratt” or “zsplit”…
#6028: stats.distributions does not have trapezoidal distribution
#6035: Wrong link in f_oneway
#6056: BUG: signal.decimate should only accept discrete LTI objects
#6093: Precision error on Linux 32 bit with openblas
#6101: Barycentric transforms test error on Python3, 32-bit Linux
#6105: scipy.misc.face docstring is incorrect
#6113: scipy.linalg.logm fails for a trivial matrix
#6128: Error in dot method of sparse COO array, when used with numpy…
#6132: Failures with latest MKL
#6136: Failures on master with MKL
#6162: fmin_l_bfgs_b returns inconsistent results (fmin ≠ f(xmin)) and…
#6165: optimize.minimize infinite loop with Newton-CG
#6167: incorrect distribution fitting for data containing boundary values.
#6194: lstsq() and others detect numpy.complex256 as real
#6216: ENH: improve accuracy of ppf cdf roundtrip for bradford
#6217: BUG: weibull_min.logpdf return nan for c=1 and x=0
#6218: Is there a method to cap shortest path search distances?
#6222: PchipInterpolator no longer handles a 2-element array
#6226: ENH: improve accuracy for logistic.ppf and logistic.isf
#6227: ENH: improve accuracy for rayleigh.logpdf and rayleigh.logsf…
#6228: ENH: improve accuracy of ppf cdf roundtrip for gumbel_l
#6235: BUG: alpha.pdf and alpha.logpdf returns nan for x=0
#6245: ENH: improve accuracy for ppf-cdf and sf-isf roundtrips for invgamma
#6263: BUG: stats: Inconsistency in the multivariate_normal docstring
#6292: Python 3 unorderable type errors in test_sparsetools.TestInt32Overflow
#6316: TestCloughTocher2DInterpolator.test_dense crashes python3.5.2rc1_64bit…
#6318: Scipy interp1d ‘nearest’ not working for high values on x-axis
#5043: ENH: sparse: add count_nonzero method
#5136: Attribute kurtosistest() to Anscombe & Glynn (1983)
#5232: ENH: adding spherical Voronoi diagram algorithm to scipy.spatial
#5279: ENH: Bessel filters with different normalizations, high order
#5384: BUG: Closes #5027 distance function always casts bool to double
#5392: ENH: Add zero_phase kwarg to signal.decimate
#5394: MAINT: sparse: non-canonical test cleanup and fixes
#5424: DOC: add Scipy developers guide
#5442: STY: PEP8 amendments
#5472: Online QR in LGMRES
#5526: BUG: stats: Fix broadcasting in the rvs() method of the distributions.
#5530: MAINT: sparse: set format attr explicitly
#5536: optimize: fix up cg/bfgs initial step sizes
#5548: PERF: improves performance in stats.kendalltau
#5549: ENH: Nearest-neighbor chain algorithm for hierarchical clustering
#5554: MAINT/BUG: closes overflow bug in stats.tiecorrect
#5557: BUG: modify optimize.bisect to achieve desired tolerance
#5581: DOC: Tutorial for least_squares
#5606: ENH: differential_evolution - moving core loop of solve method…
#5609: [MRG] test against numpy dev
#5611: use setuptools for bdist_egg distributions
#5615: MAINT: linalg: tighten _decomp_update + special: remove unused…
#5622: Add SO(N) rotation matrix generator
#5623: ENH: special: Add vectorized spherical Bessel functions.
#5627: Response to issue #5160, implements the skew normal distribution…
#5628: DOC: Align the description and operation
#5632: DOC: special: Expanded docs for Airy, elliptic, Bessel functions.
#5633: MAINT: linalg: unchecked malloc in _decomp_update
#5634: MAINT: optimize: tighten _group_columns
#5640: Fixes for io.netcdf masking
#5645: MAINT: size 0 vector handling in cKDTree range queries
#5649: MAINT: update license text
#5650: DOC: Clarify Exponent Order in ltisys.py
#5651: DOC: Clarify Documentation for scipy.special.gammaln
#5652: DOC: Fixed scipy.special.betaln Doc
#5653: [MRG] ENH: CubicSpline interpolator
#5654: ENH: Burr12 distribution to stats module
#5659: DOC: Define BEFORE/AFTER in runtests.py -h for bench-compare
#5660: MAINT: remove functions deprecated before 0.16.0
#5662: ENH: Circular statistic optimization
#5663: MAINT: remove uses of np.testing.rand
#5665: MAINT: spatial: remove matching distance implementation
#5667: Change some HTTP links to HTTPS
#5669: DOC: zpk2sos can’t do analog, array_like, etc.
#5672: MAINT: move a sample distribution to a subclass of rv_discrete
#5678: MAINT: stats: remove est_loc_scale method
#5679: MAINT: DRY up generic computations for discrete distributions
#5680: MAINT: stop shadowing builtins in stats.distributions
#5681: forward port ENH: Re-enable broadcasting of fill_value
#5684: BUG: Fix Akima1DInterpolator returning nans
#5690: BUG: fix stats.ttest_ind_from_stats to handle arrays.
#5691: BUG: fix generator in io._loadarff to comply with PEP 0479
#5693: ENH: use math.factorial for exact factorials
#5695: DOC: dx might be a float, not only an integer
#5699: MAINT: io: micro-optimize Matlab reading code for size
#5701: Implement OptimizeResult.__dir__
#5703: ENH: stats: make R² printing optional in probplot
#5704: MAINT: typo ouf->out
#5705: BUG: fix typo in query_pairs
#5707: DOC:Add some explanation for ftol xtol in scipy.optimize.fmin
#5708: DOC: optimize: PEP8 minimize docstring
#5709: MAINT: optimize Cython code for speed and size
#5713: [DOC] Fix broken link to reference
#5717: DOC: curve_fit raises RuntimeError on failure.
#5724: forward port gh-5720
#5728: STY: remove a blank line
#5729: ENH: spatial: speed up boolean distances
#5732: MAINT: differential_evolution changes to default keywords break…
#5733: TST: differential_evolution - population initiation tests
#5736: Complex number support in log1p, expm1, and xlog1py
#5741: MAINT: sparse: clean up extraction functions
#5742: DOC: signal: Explain fftbins in get_window
#5748: ENH: Add O(N) random matrix generator
#5749: ENH: Add polyphase resampling
#5756: RFC: Bump the minimum numpy version, drop older python versions
#5761: DOC: Some improvements to least squares docstrings
#5762: MAINT: spatial: distance refactoring
#5768: DOC: Fix io.loadmat docstring for mdict param
#5770: BUG: Accept anything np.dtype can handle for a dtype in sparse.random
#5772: Update sparse.csgraph.laplacian docstring
#5777: BUG: fix special.hyp0f1 to work correctly for complex inputs.
#5780: DOC: Update PIL error install URL
#5781: DOC: Fix documentation on solve_discrete_lyapunov
#5782: DOC: cKDTree and KDTree now reference each other
#5783: DOC: Clarify finish behaviour in scipy.optimize.brute
#5784: MAINT: Change default tolerances of least_squares to 1e-8
#5787: BUG: Allow Processing of Zero Order State Space Models in signal.ss2tf
#5788: DOC, BUG: Clarify and Enforce Input Types to ‘Data’ Objects
#5789: ENH: sparse: speedup LIL matrix slicing (was #3338)
#5791: DOC: README: remove coveralls.io
#5792: MAINT: remove uses of deprecated np.random.random_integers
#5794: fix affine_transform (fixes #1547 and #5702)
#5795: DOC: Removed uniform method from kmeans2 doc
#5797: DOC: Clarify the computation of weighted minkowski
#5798: BUG: Ensure scipy’s _asfarray returns ndarray
#5799: TST: Mpmath testing patch
#5801: allow reading of certain IDL 8.0 .sav files
#5803: DOC: fix module name in error message
#5804: DOC: special: Expanded docs for special functions.
#5805: DOC: Fix order of returns in _spectral_helper
#5806: ENH: sparse: vectorized coo_matrix.diagonal
#5808: ENH: Added iqr function to compute IQR metric in scipy/stats/stats.py
#5810: MAINT/BENCH: sparse: Benchmark cleanup and additions
#5811: DOC: sparse.linalg: shape, not size
#5813: Update sparse ARPACK functions min ncv value
#5815: BUG: Error message contained wrong values
#5816: remove dead code from stats tests
#5820: “in”->”a” in order_filter docstring
#5821: DOC: README: INSTALL.txt was renamed in 2014
#5825: DOC: typo in the docstring of least_squares
#5826: MAINT: sparse: increase test coverage
#5828: Improve numerical stability of hyp0f1 for large orders
#5829: ENH: sparse: Add copy parameter to all .toXXX() methods in sparse…
#5830: DOC: rework INSTALL.rst.txt
#5831: Adds plotting options to voronoi_plot_2d
#5834: Update stats.binom_test() docstring
#5836: ENH, TST: Allow SIMO tf’s for tf2ss
#5837: DOC: Image examples
#5838: ENH: sparse: add eliminate_zeros() to coo_matrix
#5839: BUG: Fixed name of NumpyVersion.__repr__
#5845: MAINT: Fixed typos in documentation
#5847: Fix bugs in sparsetools
#5848: BUG: sparse.linalg: add locks to ensure ARPACK threadsafety
#5849: ENH: sparse.linalg: upgrade to superlu 5.1.1
#5851: ENH: expose lapack’s ilaver to python to allow lapack verion…
#5852: MAINT: runtests.py: ensure Ctrl-C interrupts the build
#5854: DOC: Minor update to documentation
#5859: ENH: Add random correlation matrix generator
#5862: BUG: Allow expm for complex matrix with shape (1, 1)
#5864: DOC: add a little note about the Normal survival function (Q-function)
#5869: extend normal distribution cdf to complex domain
#5872: DOC: Note that morlet and cwt don’t work together
#5875: DOC: interp2d class description
#5876: MAINT: spatial: remove a stray print statement
#5878: MAINT: Fixed noisy UserWarnings in ndimage tests. Fixes #5877
#5879: MAINT: sparse.linalg/superlu: add explicit casts to resolve compiler…
#5880: MAINT: signal: import gcd from math and not fractions when on…
#5887: Neldermead initial simplex
#5894: BUG: _CustomLinearOperator unpickalable in python3.5
#5895: DOC: special: slightly improve the multigammaln docstring
#5900: Remove duplicate assignment.
#5901: Update bundled ARPACK
#5904: ENH: Make convolve and correlate order-agnostic
#5905: ENH: sparse.linalg: further LGMRES cleanups
#5906: Enhancements and cleanup in scipy.integrate (attempt #2)
#5907: ENH: Change sparse sum and mean dtype casting to match…
#5909: changes for convolution symmetry
#5913: MAINT: basinhopping remove instance test closes #5440
#5919: MAINT: uninitialised var if basinhopping niter=0. closes #5915
#5920: BLD: Fix missing lsame.c error for MKL
#5921: DOC: interpolate: add example showing how to work around issue…
#5926: MAINT: spatial: upgrade to Qhull 2015.2
#5928: MAINT: sparse: optimize DIA sum/diagonal, csgraph.laplacian
#5929: Update info/URL for octave-maintainers discussion
#5930: TST: special: silence DeprecationWarnings from sph_yn
#5931: ENH: implement the principle branch of the logarithm of Gamma.
#5934: Typo: “mush” => “must”
#5935: BUG:string comparison stats._binned_statistic closes #5927
#5938: Cythonize stats.ks_2samp for a ~33% gain in speed.
#5939: DOC: fix optimize.fmin convergence docstring
#5941: Fix minor typo in squareform docstring
#5942: Update linregress stderr description.
#5943: ENH: Improve numerical accuracy of lognorm
#5944: Merge vonmises into stats pyx
#5945: MAINT: interpolate: Tweak declaration to avoid cython warning…
#5946: MAINT: sparse: clean up format conversion methods
#5949: BUG: fix sparse .mean to return a scalar instead of a matrix
#5955: MAINT: Replace calls to hanning with hann
#5956: DOC: Missing periods interfering with parsing
#5958: MAINT: add a test for lognorm.sf underflow
#5961: MAINT _centered(): rename size to shape
#5962: ENH: constants: Add multi-scale temperature conversion function
#5965: ENH: special: faster way for calculating comb() for exact=True
#5975: ENH: Improve FIR path of signal.decimate
#5977: MAINT/BUG: sparse: remove overzealous bmat checks
#5978: minimize_neldermead() stop at user requested maxiter or maxfev
#5983: ENH: make sparse sum cast dtypes like NumPy sum for 32-bit…
#5985: BUG, API: Add jac parameter to curve_fit
#5989: ENH: Add firls least-squares fitting
#5990: BUG: read tries to handle 20-bit WAV files but shouldn’t
#5991: DOC: Cleanup wav read/write docs and add tables for common types
#5994: ENH: Add gesvd method for svd
#5996: MAINT: Wave cleanup
#5997: TST: Break up upfirdn tests & compare to lfilter
#6001: Filter design docs
#6002: COMPAT: Expand compatibility fromnumeric.py
#6007: ENH: Skip conversion of TF to TF in freqresp
#6009: DOC: fix incorrect versionadded for entr, rel_entr, kl_div
#6013: Fixed the entropy calculation of the von Mises distribution.
#6014: MAINT: make gamma, rgamma use loggamma for complex arguments
#6020: WIP: ENH: add exact=True factorial for vectors
#6022: Added ‘lanczos’ to the image interpolation function list.
#6024: BUG: optimize: do not use dummy constraints in SLSQP when no…
#6025: ENH: Boundary value problem solver for ODE systems
#6029: MAINT: Future imports for optimize._lsq
#6030: ENH: stats.trap - adding trapezoidal distribution closes #6028
#6031: MAINT: Some improvements to optimize._numdiff
#6032: MAINT: Add special/_comb.c to .gitignore
#6033: BUG: check the requested approximation rank in interpolative.svd
#6034: DOC: Doc for mannwhitneyu in stats.py corrected
#6040: FIX: Edit the wrong link in f_oneway
#6044: BUG: (ordqz) always increase parameter lwork by 1.
#6047: ENH: extend special.spence to complex arguments.
#6049: DOC: Add documentation of PR #5640 to the 0.18.0 release notes
#6050: MAINT: small cleanups related to loggamma
#6070: Add asarray to explicitly cast list to numpy array in wilcoxon…
#6071: DOC: antialiasing filter and link decimate resample, etc.
#6075: MAINT: reimplement special.digamma for complex arguments
#6080: avoid multiple computation in kstest
#6081: Clarified pearson correlation return value
#6085: ENH: allow long indices of sparse matrix with umfpack in spsolve()
#6086: fix description for associated Laguerre polynomials
#6087: Corrected docstring of splrep.
#6094: ENH: special: change zeta signature to zeta(x, q=1)
#6095: BUG: fix integer overflow in special.spence
#6116: BUG: matrix logarithm edge case
#6119: TST: DeprecationWarnings in stats on python 3.5 closes #5885
#6120: MAINT: sparse: clean up sputils.isintlike
#6122: DOC: optimize: linprog docs should say minimize instead of maximize
#6124: Move FFT zero-padding calculation from signaltools to fftpack
#6125: MAINT: improve special.gammainc in the a ~ x regime.
#6130: BUG: sparse: Fix COO dot with zero columns
#6138: ENH: stats: Improve behavior of genextreme.sf and genextreme.isf
#6146: MAINT: simplify the expit implementation
#6151: MAINT: special: make generate_ufuncs.py output deterministic
#6152: TST: special: better test for gammainc at large arguments
#6153: ENH: Make next_fast_len public and faster
#6154: fix typo “mush”–>”must”
#6155: DOC: Fix some incorrect RST definition lists
#6160: make logsumexp error out on a masked array
#6161: added missing bracket to rosen documentation
#6163: ENH: Added “kappa4” and “kappa3” distributions.
#6164: DOC: Minor clean-up in integrate._bvp
#6169: Fix mpf_assert_allclose to handle iterable results, such as maps
#6170: Fix pchip_interpolate convenience function
#6172: Corrected misplaced bracket in doc string
#6175: ENH: sparse.csgraph: Pass indices to shortest_path
#6178: TST: increase test coverage of sf and isf of a generalized extreme…
#6179: TST: avoid a deprecation warning from numpy
#6181: ENH: Boundary conditions for CubicSpline
#6182: DOC: Add examples/graphs to max_len_seq
#6183: BLD: update Bento build config files for recent changes.
#6184: BUG: fix issue in io/wavfile for float96 input.
#6186: ENH: Periodic extrapolation for PPoly and BPoly
#6192: MRG: Add circle-CI
#6193: ENH: sparse: avoid setitem densification
#6196: Fixed missing sqrt in docstring of Mahalanobis distance in cdist,…
#6206: MAINT: Minor changes in solve_bvp
#6207: BUG: linalg: for BLAS, downcast complex256 to complex128, not…
#6209: BUG: io.matlab: avoid buffer overflows in read_element_into
#6210: BLD: use setuptools when building.
#6214: BUG: sparse.linalg: fix bug in LGMRES breakdown handling
#6215: MAINT: special: make loggamma use zdiv
#6220: DOC: Add parameter
#6221: ENH: Improve Newton solver for solve_bvp
#6223: pchip should work for length-2 arrays
#6224: signal.lti: deprecate cross-class properties/setters
#6229: BUG: optimize: avoid an infinite loop in Newton-CG
#6230: Add example for application of gaussian filter
#6236: MAINT: gumbel_l accuracy
#6237: MAINT: rayleigh accuracy
#6238: MAINT: logistic accuracy
#6239: MAINT: bradford distribution accuracy
#6240: MAINT: avoid bad fmin in l-bfgs-b due to maxfun interruption
#6241: MAINT: weibull_min accuracy
#6246: ENH: Add _support_mask to distributions
#6247: fixed a print error for an example of ode
#6249: MAINT: change x-axis label for stats.probplot to “theoretical…
#6251: MAINT: constants: filter out test noise from deprecated conversions
#6252: MAINT: io/arff: remove unused variable
#6253: Add examples to scipy.ndimage.filters
#6254: MAINT: special: fix some build warnings
#6258: MAINT: inverse gamma distribution accuracy
#6260: MAINT: signal.decimate - Use discrete-time objects
#6262: BUG: odr: fix string formatting
#6267: TST: fix some test issues in interpolate and stats.
#6269: TST: fix some warnings in the test suite
#6274: ENH: Add sosfiltfilt
#6276: DOC: update release notes for 0.18.0
#6277: MAINT: update the author name mapping
#6282: DOC: Correcting references for scipy.stats.normaltest
#6283: DOC: some more additions to 0.18.0 release notes.
#6284: Add versionadded:: directive to loggamma.
#6285: BUG: stats: Inconsistency in the multivariate_normal docstring…
#6290: Add author list, gh-lists to 0.18.0 release notes
#6293: TST: special: relax a test’s precision
#6295: BUG: sparse: stop comparing None and int in bsr_matrix constructor
#6313: MAINT: Fix for python 3.5 travis-ci build problem.
#6327: TST: signal: use assert_allclose for testing near-equality in…
#6330: BUG: spatial/qhull: allocate qhT via malloc to ensure CRT likes…
#6332: TST: fix stats.iqr test to not emit warnings, and fix line lengths.
#6334: MAINT: special: fix a test for hyp0f1
#6347: TST: spatial.qhull: skip a test on 32-bit platforms
#6350: BUG: optimize/slsqp: don’t overwrite an array out of bounds
#6351: BUG: #6318 Interp1d ‘nearest’ integer x-axis overflow issue fixed
#6355: Backports for 0.18.0