Skip to content

Commit

Permalink
poisson updated
Browse files Browse the repository at this point in the history
  • Loading branch information
nkempynck committed Nov 18, 2024
1 parent 9091d0b commit 9610701
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/crested/tl/losses/_poisson.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import keras
import keras.ops as ops


@keras.saving.register_keras_serializable(package="Losses")
class PoissonLoss(keras.losses.Loss):
"""
Expand All @@ -19,6 +20,7 @@ class PoissonLoss(keras.losses.Loss):
reduction : str
Type of reduction to apply to the loss. Default: "sum_over_batch_size".
"""

def __init__(
self,
log_transform: bool = True,
Expand Down Expand Up @@ -68,4 +70,4 @@ def get_config(self):
"log_transform": self.log_transform,
"eps": self.eps
})
return config
return config

0 comments on commit 9610701

Please sign in to comment.