IF YOU WOULD LIKE TO GET AN ACCOUNT, please write an email to s dot adaszewski at gmail dot com. User accounts are meant only to report issues and/or generate pull requests. This is a purpose-specific Git hosting for ADARED projects. Thank you for your understanding!
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

12345678910111213
  1. from decagon_pytorch.data import Data
  2. def test_data():
  3. d = Data()
  4. d.add_node_type('Gene', 1000)
  5. d.add_node_type('Drug', 100)
  6. d.add_relation_type('Target', 1, 0, None)
  7. d.add_relation_type('Interaction', 0, 0, None)
  8. d.add_relation_type('Side Effect: Nausea', 1, 1, None)
  9. d.add_relation_type('Side Effect: Infertility', 1, 1, None)
  10. d.add_relation_type('Side Effect: Death', 1, 1, None)
  11. print(d)