Skip to content

Commit

Permalink
Update minor requirements.
Browse files Browse the repository at this point in the history
  • Loading branch information
arnor-sigurdsson committed Jan 3, 2025
1 parent 651e1d3 commit ec17086
Show file tree
Hide file tree
Showing 4 changed files with 243 additions and 329 deletions.
2 changes: 1 addition & 1 deletion eir/train_utils/criteria.py
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,7 @@ def _cox_ph_loss(
) -> torch.Tensor:
valid_mask = (time != -1) & (event != -1)

# Early returns if no valid samples or no events
# Early returns if no valid samples
if not valid_mask.any():
return risk_scores.new_zeros((), requires_grad=True)

Expand Down
Loading

0 comments on commit ec17086

Please sign in to comment.