Molenet dataset - #48
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 |
No description provided.