cumc-dbmi / cehrbert

CEHR-BERT: Incorporating temporal information from structured EHR data to improve prediction tasks
MIT License
31 stars 10 forks source link

The zero division bug for calculating the unit probabilities for numeric concepts #62

Closed ChaoPang closed 1 month ago

ChaoPang commented 1 month ago

Fixed the cases where the unit count is zero, this could happen when there is only one unit and in addition, there is only one value associated with that unit