Giter Club home page Giter Club logo

Comments (5)

ilayn avatar ilayn commented on June 18, 2024

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.

lucascolley avatar lucascolley commented on June 18, 2024

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.

ds-mike avatar ds-mike commented on June 18, 2024

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.

ilayn avatar ilayn commented on June 18, 2024

Hi @ds-mike See my comment above. Use triu from NumPy directly.

from scipy.

ds-mike avatar ds-mike commented on June 18, 2024

Oh thanks! It is a gensim issue that I had missed originally.

from scipy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.