Git Product home page Git Product logo

Comments (5)

dylkot avatar dylkot commented on August 21, 2024

Hi, thank you for this comment and for using cNMF. It is strange that I'm not getting this error in settings outside of the tutorial and indeed I'm having a hard time reproducing the error. What version of numpy are you using? It seems reasonable for me to just update the code like you did to explicitly define the integer type

from cnmf.

ronamit avatar ronamit commented on August 21, 2024

Thanks for the reply and for publishing this great code!
I'm using numpy 1.21.5 with conda - Python 3.7
I think the install instructions don't indicate what version to use.

from cnmf.

Fantasque68 avatar Fantasque68 commented on August 21, 2024

Thanks for the reply and for publishing this great code! I'm using numpy 1.21.5 with conda - Python 3.7 I think the install instructions don't indicate what version to use.

In Python Version 3.7.12 with NumPy 1.21.6, the following method might be helpful:

modify ~\.conda\envs\cnmf_env\Lib\site-packages\cnmf\cnmf.py
In line 508, change high=(2**32)-1 into high=(2**31)-1

It works for me, might worth trying.

Uploading 20230322152157.jpg…

from cnmf.

CAUiKUN avatar CAUiKUN commented on August 21, 2024

I put the "508 nmf_seeds = np. Random. Randint (low = 1, high = (2 * * 32) - 1, size = n_runs)" in "high = (2 * * 32) - 1" replaced by "high = (2 * * 31) - 1", runs successfully!

from cnmf.

dylkot avatar dylkot commented on August 21, 2024

Adjusted in commit c94962d

from cnmf.

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.