TheAlgorithms / Rust

All Algorithms implemented in Rust
MIT License
21.51k stars 2.1k forks source link

Implementation of Negative Log Likelihood Loss Function #734

Open jkauerl opened 1 month ago

jkauerl commented 1 month ago

Pull Request Template

Description

PR including the implementation for the Negative Log Likelihood Loss Function of this issue #559 . It creates a new file called negative_log_likelihood.rs with the function called neg_log_likelihood. This implementation is for binary classifications, but can be expanded to higher dimensions.

Type of change

Checklist:

codecov-commenter commented 1 month ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 95.06%. Comparing base (f8096d2) to head (7771e43). Report is 3 commits behind head on master.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #734 +/- ## ========================================== + Coverage 95.04% 95.06% +0.02% ========================================== Files 305 307 +2 Lines 22674 22772 +98 ========================================== + Hits 21550 21648 +98 Misses 1124 1124 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

vil02 commented 1 week ago

@jkauerl are you still working on that?

jkauerl commented 6 days ago

@jkauerl are you still working on that?

Yes, I implemented most of the suggestions, and do not know what else is missing.