Skip to content

Commit

Permalink
doc: improved
Browse files Browse the repository at this point in the history
  • Loading branch information
anna-grim authored Jan 30, 2025
1 parent d2348a1 commit b33b6d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/aind_exaspim_soma_detection/machine_learning/trainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,13 @@ class FocalLoss(nn.Module):

def __init__(self, alpha=0.5, gamma=2.0):
"""
Initializes the Focal Loss module with given alpha and gamma.
Initializes a Focal Loss module for a given alpha and gamma.
Parameters
----------
alpha : float, optional
Factor that controls the balance between positive and negative
examples. The default is 0.5.
examples. The default is 0.5.
gamma : float, optional
Focusing parameter that controls the rate at which easy examples
are down-weighted. The default is 2.0.
Expand Down

0 comments on commit b33b6d0

Please sign in to comment.