Skip to content

Commit

Permalink
Feat: Add PoissonNLL loss (#2765)
Browse files Browse the repository at this point in the history
* added PoissonNLLLossConfig

* added PoissonNLLLoss

* added tests

* update docs

* added requested changes
  • Loading branch information
salvomcl authored Feb 3, 2025
1 parent 6b2e66b commit 9f00320
Show file tree
Hide file tree
Showing 3 changed files with 393 additions and 0 deletions.
1 change: 1 addition & 0 deletions burn-book/src/building-blocks/module.md
Original file line number Diff line number Diff line change
Expand Up @@ -294,3 +294,4 @@ Burn comes with built-in modules that you can use to build your own modules.
| `CrossEntropyLoss` | `nn.CrossEntropyLoss` |
| `MseLoss` | `nn.MSELoss` |
| `HuberLoss` | `nn.HuberLoss` |
| `PoissonNllLoss` | `nn.PoissonNLLLoss` |
2 changes: 2 additions & 0 deletions crates/burn-core/src/nn/loss/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@ mod binary_cross_entropy;
mod cross_entropy;
mod huber;
mod mse;
mod poisson;
mod reduction;

pub use binary_cross_entropy::*;
pub use cross_entropy::*;
pub use huber::*;
pub use mse::*;
pub use poisson::*;
pub use reduction::*;
Loading

0 comments on commit 9f00320

Please sign in to comment.