Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do you deal with the square root of negative covariance terms? #67

Open
dangeles opened this issue Jul 16, 2024 · 0 comments
Open

Comments

@dangeles
Copy link

Thank you so much for this interesting package! I was reading through the paper, and you calculate a shifted gene expression covariance matrix. Subsequently, you state you compute the euclidean distance (MSQR) ||sqrt(sigma_i) - sqrt(sigma_j)||^2_2 as an AOT measure, which allows for computational tractability.

I am sure this question is rather dumb and I'm missing something obvious, but I am confused how you are handling negative covariances throughout this package? Is it as simple as allowing imaginary numbers throughout the computation, or is there a computational trick to prevent Jax from freaking out about taking the square root of negative numbers?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant