rs-station / careless

Merge X-ray diffraction data with Wilson's priors, variational inference, and metadata
MIT License
16 stars 6 forks source link

add cli parameter --kl-weight #120

Closed kmdalton closed 1 year ago

kmdalton commented 1 year ago

The ability to use mean reduction with a weighted kl divergence has been available at the api level for a long time now. This pr just adds a new command line argument --kl-weight= to enable users to access this feature.

codecov-commenter commented 1 year ago

Codecov Report

Merging #120 (64a53b4) into main (a504d1f) will not change coverage. The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main     #120   +/-   ##
=======================================
  Coverage   78.82%   78.82%           
=======================================
  Files          49       49           
  Lines        2135     2135           
=======================================
  Hits         1683     1683           
  Misses        452      452           
Flag Coverage Δ
unittests 78.82% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
careless/args/prior.py 100.00% <ø> (ø)
careless/io/manager.py 90.09% <100.00%> (ø)

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more