Giter Site home page Giter Site logo

numpy compatibility about ic HOT 5 CLOSED

next-exp avatar next-exp commented on August 19, 2024
numpy compatibility

from ic.

Comments (5)

gonzaponte avatar gonzaponte commented on August 19, 2024

This:

np.random.multivariate_normal(np.zeros(3), np.diag([.2,0,4]))

should work in any version. Does it provide the same results?

from ic.

abotas avatar abotas commented on August 19, 2024

That line of code looks like it will work, but do we want to make sure we are all using the same versions of all the packages?

Otherwise when we collaborate I think we risk running into an error that like
ValueError: scale <= 0
without having any idea what is going on

from ic.

jmbenlloch avatar jmbenlloch commented on August 19, 2024

We need to decide what do we want to do with packages versions and this is probably related to #134.

Now @abotas has found this simple problem, requiring few lines of code to work in both numpy versions. But the situation is that each developer has a different set of packages versions depending on when the software was installed, while Travis is always getting the latest one available since we do not impose any version restriction in our conda environment.

In the future more complicated problems could arise due to versions mismatch. I think we should define somehow all packages versions so all developers work with the same libraries. Whatever we might decide could potentially solve also #134 (or maybe not). It is not clear to me yet how we can do this, I'll give it a thought, ideas are welcomed.

from ic.

jacg avatar jacg commented on August 19, 2024

Yes, it is definitely related to #134.

In the short term I think we could do with a new function in manage.sh which updates the env to the latest available packages, so that we agree with Travis.

I don't think there's a need to stay compatible with old versions of these packages.

I think that this, or rather #134, is important, but not of the highest urgency.

The new manage.sh function could be low-hanging fruit, in which case we should pick it right away.

from ic.

jjgomezcadenas avatar jjgomezcadenas commented on August 19, 2024

Since this is fully correlated with #134 I think we can close it

from ic.

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.