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

Backend for loglikelihood calculation #3

Closed
3 tasks done
pawel-czyz opened this issue Jun 5, 2023 · 1 comment · Fixed by #9
Closed
3 tasks done

Backend for loglikelihood calculation #3

pawel-czyz opened this issue Jun 5, 2023 · 1 comment · Fixed by #9

Comments

@pawel-czyz
Copy link
Member

pawel-czyz commented Jun 5, 2023

Overview

Backend for calculating loglikelihood and its derivatives.
It can be based e.g., on LearnMHN package and joblib parallelisation.

Tasks:

  • Loglikelihood and gradient for a single genotype and MHN.
  • Loglikelihood and gradient for several genotypes and shared MHN.
  • Loglikelihood and gradient for several genotypes and several MHNs.

Description

We want to have functions of signatures:

def loglikelihood(genotype: Bool[Array, " M"], theta: Float[Array, "M M"]) -> float:
   ...
   
def gradient(genotype: Bool[Array, " M", theta: Float[Array, "M M") -> Float[Array, "M M"]:
 ...

implementing the loglikelihood and the gradient for a particular genotype.

Apart from that we want to have vectorized versions as described above.

@pawel-czyz
Copy link
Member Author

This is done via #9

@pawel-czyz pawel-czyz linked a pull request Jun 23, 2023 that will close this issue
3 tasks
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

Successfully merging a pull request may close this issue.

1 participant