Skip to content

Commit

Permalink
Update dcph_utilities.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Chirag Nagpal authored Apr 26, 2023
1 parent 2c5a5ce commit ee77a7b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions auton_survival/models/cph/dcph_utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@

from auton_survival.models.dsm.utilities import get_optimizer, _reshape_tensor_with_nans

from copy import deepcopy

def randargmax(b,**kw):
""" a random tie-breaking argmax"""
return np.argmax(np.random.random(b.shape) * (b==b.max()), **kw)
Expand Down

0 comments on commit ee77a7b

Please sign in to comment.