Git Product home page Git Product logo

lisaanalysistools's Issues

GPU usage continuity

Some utilities in lisatools/diagnostic.py support GPU usage (i.e. use_gpu=True) but not consistently, leading to type errors where numpy is used instead of cupy.

One example of this is when computing an overlap (which involves normalising the inner product), inner_product() is recalled within the first inner_product() call but GPU preference is not specified, leading to a type error.

Fisher matrix generation also needs to know about whether GPUs are being used or not, as the waveforms used to compute the FIM may be generated with a GPU which is currently fed into numpy code resulting in type errors.

I will submit a pull request soon for these changes.

Bug in Vallisneri mismatch criterion calculation

The LSA/FIM validity check from Vallisneri (2008), implemented in diagnostic.py as mismatch_criterion(...) is not correct.

Line 431, vec_delta = x[l] * v[:, l] / np.sqrt(w[l]), does not take a linear combination of the eigenvectors weighted by eigenvalues, which would be something like vec_delta[i] = np.sum(x * v[i,:] / np.sqrt(w)). If one were also to write vec_delta += .... that would fix it too.

I will set up a pull request.

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.