GithubHelp home page GithubHelp logo

Comments (6)

kunwuz avatar kunwuz commented on June 16, 2024

Thanks for reaching out. We believe this issue is related to #29. The reason seems to be the violation of the required assumption of the input data, although we are not totally sure yet. Specifically, the covariance matrix might be singular so it doesn't have a proper inverse.

from causal-learn.

asha24choudhary avatar asha24choudhary commented on June 16, 2024

Thank you for your reply. I have the most version of the library installed where there is already a control statement to check for the singularity within the data. I am not getting what could be the reason for the negative value in the sqrt function which I described before. My data looks like this

image.

And this is how I generated it
image

Here is the correlation matrix and the inverse covariance matrix
sub_corr_matrix = [[1. 0.98101581 0.91548873 0.96978605]
[0.98101581 1. 0.93355678 0.98870011]
[0.91548873 0.93355678 1. 0.97673877]
[0.96978605 0.98870011 0.97673877 1. ]]

inv = [[ 2.65907580e+01 -3.42492672e+01 -5.90995682e+00 1.42426984e+01]
[-3.46799908e+01 -1.83554478e+15 -1.28320417e+15 3.06815859e+15]
[-5.88988503e+00 -1.28320417e+15 -8.97070431e+14 2.14490757e+15]
[ 1.42536435e+01 3.06815859e+15 2.14490757e+15 -5.12850312e+15]]

Please help me

from causal-learn.

asha24choudhary avatar asha24choudhary commented on June 16, 2024

I just added some noise to the y variable. I did not get any errors. Don't know what should I conclude from this? Does this mean the input matrix should have full rank? So does this library creates a problem for the deterministic causal scenarios?

from causal-learn.

kunwuz avatar kunwuz commented on June 16, 2024

Hi, thanks for checking this. I calculated the determinant of the correlation matrix you provided and the result was close to zero. There may be some issues regarding the singularity check, or the math domain error could be due to other reasons. Let us check on this.

from causal-learn.

jdramsey avatar jdramsey commented on June 16, 2024

from causal-learn.

asha24choudhary avatar asha24choudhary commented on June 16, 2024

Thank you so much for the immediate help.

from causal-learn.

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.