Repository navigation
Molenet dataset - #48
Molenet dataset #48aditya0by0 wants to merge 48 commits into
Conversation
…ted entries leading to cross merge
…python-chebai-graph into feature/molenet_dataset
…python-chebai-graph into feature/molenet_dataset
…python-chebai-graph into feature/molenet_dataset
…python-chebai-graph into feature/molenet_dataset
How Missing Labels Are Handled in HiMol FinetuningHiMol uses a three-valued label encoding for classification: +1 (positive/active), -1 (negative/inactive), and 0 (missing/unmeasured). The Loss ComputationIn is_valid = y**2 > 0 # 0²=0 → invalid; (±1)²=1 → valid
loss_mat = criterion(pred.double(), (y+1)/2) # {-1,+1} → {0,1} for BCE
loss_mat = torch.where(is_valid, loss_mat, torch.zeros(...)) # zero out missing
loss = torch.sum(loss_mat) / torch.sum(is_valid) # normalize by valid countMissing labels are zeroed out in the loss matrix and excluded from the normalization denominator ( Metrics Computation
Note: The |
fixed in ChEB-AI/python-chebai#174 |
There was a problem hiding this comment.
Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.
An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.
Also merge: sfluegel05/HiMol#3