Comments (5)
triu
is deprecated and removed from scipy.linalg. You need to use triu from numpy with
np.triu(m)
Where did you see the example code? We should fix it if it is in the docs.
from scipy.
I don't think that there is any occurrence of la.triu
in the docs - please let us know if I am mistaken @HP657 :)
from scipy.
Hi @lucascolley or @ilayn, I believe I am facing this issue. Having trouble following the outcome to this issue thread, it looks like this is closed but I believe it is an issue in the latest version of scipy.
Here are the steps to reproduce:
python -m venv temp_venv
source temp_venv/bin/activate
pip install scipy==1.13.0
python
Python 3.11.8 (main, Feb 13 2024, 21:57:06) [GCC 9.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from scipy.linalg import get_blas_funcs, triu
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: cannot import name 'triu' from 'scipy.linalg' (<redacted>python3.11/site-packages/scipy/linalg/__init__.py)`
Thank you!
from scipy.
Hi @ds-mike See my comment above. Use triu
from NumPy directly.
from scipy.
Oh thanks! It is a gensim issue that I had missed originally.
from scipy.
Related Issues (20)
- BUG: stats.weibull_min: poor fit results on shape parameters HOT 2
- BUG: spatial: `Rotation.align_vectors()` incorrect for anti-parallel vectors HOT 1
- MAINT, TST: failure in test_axis_nan_policy_decorated_positional_args with array API HOT 2
- DOC: Missing blankspace in error message raised by cont2discrete()
- BLD: cross build scipy 1.13.0 with numpy 2.0.0rc1 using pip install failed HOT 6
- Tracker: Support Python nogil builds
- BUG: sparse matrix creation in 1.13 with indices not summing entries any more HOT 2
- DOC: A typo in authors name in signal.ellipap reference
- ENH: signal: add array API support
- Cannot import scipy.linalg.triu HOT 8
- BUG: signal.correlate: many numerical close-to-zero errors on 3D array HOT 1
- RFC: Switch to `cython_<lapack,blas>` based wrappers and deprecate custom `scipy.linalg.<lapack,blas>` HOT 2
- DOC: A typo in ValueError raised by signal.iirdesign HOT 2
- `cuve_fit` results are inconsistent over different CPU / Linux distro HOT 3
- ENH: spatial: Matrix multiplication of Rotation HOT 3
- ENH: Reintroduce Apple Accelerate support HOT 2
- BUG: stats.zipf: incorrect pmf values HOT 4
- BUG: stats.noncentral_t: incorrect pdf values HOT 14
- BUG: special: algorithmic Error in `ratevl` in `cephes/polevl.h` HOT 13
- Array API failures with Metal Performance Shaders/torch HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from scipy.