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

Using ScientificTypes for safe use #96

Open
theogf opened this issue Feb 14, 2023 · 0 comments
Open

Using ScientificTypes for safe use #96

theogf opened this issue Feb 14, 2023 · 0 comments

Comments

@theogf
Copy link
Member

theogf commented Feb 14, 2023

I cannot count how many times I lost nerves on debugging issues on my script to only find out that I used categorical variables instead of 0-1 for my BernoulliLikelihood.

Therefore here is my proposal:

  1. We use ScientificTypes.jl to enforce that the outputs are restricted to be in a certain form (binary, categorical, continuous, positive, etc...).
  2. We dispatch the different likelihoods to their appropriate domain.
  3. We still allow for any kind of input anyway, but we perform a check on the type and domain of the inputs.
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