JuliaML / LossFunctions.jl

Julia package of loss functions for machine learning.
https://juliaml.github.io/LossFunctions.jl/stable
Other
148 stars 34 forks source link

Refactor AggMode submodule and types #162

Closed juliohm closed 1 year ago

juliohm commented 1 year ago

Continuing the refactoring discussed in #126. This PR simplifies the machinery around aggregation of losses over a dataset. The goal is to rely on simple Julia reductions as much as possible.

codecov-commenter commented 1 year ago

Codecov Report

Merging #162 (bb898b0) into master (e156576) will increase coverage by 0.19%. The diff coverage is 89.47%.

:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

@@            Coverage Diff             @@
##           master     #162      +/-   ##
==========================================
+ Coverage   96.14%   96.34%   +0.19%     
==========================================
  Files           9        8       -1     
  Lines         519      520       +1     
==========================================
+ Hits          499      501       +2     
+ Misses         20       19       -1     
Impacted Files Coverage Δ
src/losses/scaled.jl 83.33% <ø> (ø)
src/losses/other.jl 91.11% <33.33%> (ø)
src/losses.jl 100.00% <100.00%> (ø)
src/losses/weighted.jl 89.47% <100.00%> (+5.26%) :arrow_up:

... and 2 files with indirect coverage changes

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.