AI-secure / InfoBERT

[ICLR 2021] "InfoBERT: Improving Robustness of Language Models from An Information Theoretic Perspective" by Boxin Wang, Shuohang Wang, Yu Cheng, Zhe Gan, Ruoxi Jia, Bo Li, Jingjing Liu
83 stars 7 forks source link

Update print_2table.py #6

Closed quantumtechniker closed 1 year ago

quantumtechniker commented 1 year ago

his version takes advantage of list comprehensions and dictionary comprehensions for more concise and Pythonic code. It also gracefully handles missing evaluation items and prints a hyphen ('-') if an item is not found in the results.

boxin-wbx commented 1 year ago

Thanks!