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

Add cljc log-likelihood implementations #27

Merged
merged 2 commits into from
Aug 25, 2023
Merged

Add cljc log-likelihood implementations #27

merged 2 commits into from
Aug 25, 2023

Conversation

sritchie
Copy link
Collaborator

@sritchie sritchie commented Aug 24, 2023

These are required for the kixi.stats cljc distributions, as well as for the SplittableRandom implementation, and a similar Math.Random version for JavaScript.

I'll add more unit tests locking in specific values, but I want to see about adding generative tests that lock in properties we care about.

@sritchie sritchie requested a review from zane August 24, 2023 17:31
@codecov
Copy link

codecov bot commented Aug 24, 2023

Codecov Report

Merging #27 (104b990) into main (b7cdc04) will decrease coverage by 0.45%.
The diff coverage is 52.38%.

@@            Coverage Diff             @@
##             main      #27      +/-   ##
==========================================
- Coverage   56.08%   55.64%   -0.45%     
==========================================
  Files          11       12       +1     
  Lines         460      523      +63     
  Branches       19       19              
==========================================
+ Hits          258      291      +33     
- Misses        183      213      +30     
  Partials       19       19              
Files Changed Coverage Δ
src/gen/distribution/math/log_likelihood.cljc 52.38% <52.38%> (ø)

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suppose this should be .clj-kondo instead of .clj?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not going to change it here since this comes from upstream, and if I DO change it then the next time we run copy_configs it will copy in the clj version; but I will make a note to submit a PR upstream for this!

@sritchie sritchie merged commit fe0dcf7 into main Aug 25, 2023
4 checks passed
@sritchie sritchie deleted the sritchie/scores branch August 25, 2023 17:09
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 this pull request may close these issues.

2 participants