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

Log cosh #137

Closed ven-k closed 3 years ago

ven-k commented 3 years ago

This adds LogCoshLoss, subsequent tests (on value, deriv, deriv2 and properties) and exports it.

Responds to #136.

codecov-io commented 3 years ago

Codecov Report

Merging #137 (80f65a5) into master (672d97b) will increase coverage by 0.25%. The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #137      +/-   ##
==========================================
+ Coverage   93.58%   93.84%   +0.25%     
==========================================
  Files          10       10              
  Lines         546      585      +39     
==========================================
+ Hits          511      549      +38     
- Misses         35       36       +1     
Impacted Files Coverage Δ
src/LossFunctions.jl 100.00% <ø> (ø)
src/supervised/distance.jl 99.41% <100.00%> (-0.59%) :arrow_down:
src/supervised.jl 100.00% <0.00%> (ø)
src/supervised/margin.jl 100.00% <0.00%> (ø)
src/supervised/other.jl 94.59% <0.00%> (+0.56%) :arrow_up:
src/supervised/weighted.jl 84.21% <0.00%> (+2.96%) :arrow_up:
src/supervised/ordinal.jl 68.18% <0.00%> (+3.18%) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 672d97b...80f65a5. Read the comment docs.

juliohm commented 3 years ago

Sorry for not seeing this earlier @ven-k , it is an amazing PR. Merging it and tagging a new release.