| {"_meta":{"augmentation":"cache_contraindicated_anchors_x_200 + major_class_x_100 + tacrolimus+voriconazole_x_200 + azathioprine+febuxostat_x_200 (anti-FN) + HIDDEN=256 ARCHITECTURAL DOUBLE + 9 BOOST_KEYS @200x (iter-242 v8 \u2014 breaks v7 architectural ceiling at h=128)","best_test_acc":0.658823549747467,"bias_dtype":"q16.16","bundle_id":"1f0f88591c05af57c62d844b667639b29c7d1f0eb1b213073d158101611f76e6","contra_fp":0,"contra_recall":1.0,"feature_breakdown":"64 hash trits + 26 ATC flag bits per drug (x2 = 180) + 13 pair-derived DDI-rule bits = 193","flag_keys_count":26,"hidden_features":256,"in_features":193,"major_recall":1.0,"out_features":5,"pair_derived_rule_count":13,"schema":"bitnet_classifier_v3_atc_flags","trained_with":"PyTorch + STE","training_iter":"iter-242-path-a-v8-h256","weight_dtype":"ternary"},"hidden_b":[-72968,-73736,-50300,-37928,-22032,-48139,-26319,-25466,-35674,-38362,-61408,-43194,-13285,-34166,-44400,-64768,-63015,-80040,-38808,-47094,-64863,-56614,-23391,-28663,-41162,-24075,-64699,-50800,-55818,-30493,-30693,-23848,-35732,-41385,-23533,-58952,-26080,-56184,-35495,-30130,-32570,-54539,-49220,-64220,-37760,-43884,-70037,-36687,-22038,-48982,-36902,-36189,-66963,-57240,-48842,-16633,-42494,-29890,-62271,-47563,-30960,-43799,-20025,-40375,-48630,-62499,-27434,-46639,-56411,-59652,-20420,-40662,-37284,-50216,-43761,-52553,-49663,-39228,-72265,-41177,-37422,-36188,-45058,-21800,-41156,-38700,-42333,-31781,-34255,-44735,-36448,-29292,-36159,-39904,-54907,-22035,-20434,-27366,-64665,-44962,-46146,-19922,-68519,-37095,-41938,-29124,-54633,-28204,-24095,-58186,-37696,-36518,-42148,-31129,-43651,-42676,-66383,-66352,-72562,-44235,-28681,-48866,-44661,-16670,-53600,-17291,-58030,-39617,-26639,-38802,-58611,-50221,-34234,-39504,-66194,-66484,-18402,-36928,-56749,-70608,-16832,-42241,-19876,-32215,-46896,-49921,-46463,-41387,-36974,-40672,-6574,-37905,-42171,-60040,-27650,-52975,-46751,-50363,-48837,-35152,-28226,-52081,-69859,-72870,-36843,-52020,-43031,-33985,-41563,-57077,-73501,-77308,-88341,-55103,-44312,-39792,-36978,-25578,-34576,-29643,-38892,-34590,-58677,-10402,-64491,-36675,-64758,-23997,-30600,-61950,-37957,-40000,-35770,-34947,-68075,-45185,-52253,-35750,-44658,-34453,-46281,-39002,-62714,-60064,-34022,-33338,-30552,-61767,-63010,-61766,-26807,-34177,-46953,-48964,-31776,-57072,-46158,-43849,-80105,-41948,-44291,-60614,-32540,-36020,-24784,-51778,-34675,-44991,-55538,-37165,-52291,-54645,-39274,-54273,-36257,-34864,-48559,-35149,-24447,-62791,-37259,-42401,-18866,-42375,-40100,-33919,-56419,-57342,-40438,-55504,-24030,-56580,-31963,-71236,-66294,-57921],"hidden_w":[[0,0,0,1,0,1,0,-1,-1,-1,-1,0,-1,0,-1,0,0,0,-1,1,1,1,0,-1,0,0,0,1,-1,-1,-1,1,0,0,-1,0,1,0,0,0,1,-1,0,1,0,0,0,-1,0,0,-1,-1,-1,0,0,-1,0,1,-1,0,0,0,0,-1,-1,-1,0,-1,-1,-1,-1,-1,-1,1,0,-1,0,-1,-1,-1,0,-1,1,1,-1,1,0,-1,0,-1,0,0,1,1,0,0,0,-1,0,-1,1,-1,-1,-1,-1,1,0,-1,0,0,-1,0,0,0,1,0,1,0,-1,0,-1,0,0,1,-1,0,0,-1,0,0,0,0,0,-1,1,0,1,-1,0,0,0,-1,0,1,0,1,-1,1,0,-1,-1,0,0,-1,0,-1,0,1,-1,0,-1,-1,-1,-1,-1,-1,1,-1,-1,1,1,0,1,1,-1,0,0,0,1,-1,1,1,1,0,1,1,1,1,1,0,0,1,1],[0,-1,0,0,-1,0,-1,0,-1,-1,-1,0,-1,1,-1,1,0,1,0,1,-1,1,-1,-1,0,-1,0,0,-1,-1,-1,0,0,1,0,-1,1,-1,1,0,1,0,0,0,1,-1,1,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