(heads, relations, tails, margin=12)
| 76 | |
| 77 | @staticmethod |
| 78 | def TransE(heads, relations, tails, margin=12): |
| 79 | x = heads + relations - tails |
| 80 | score = margin - x.norm(p=1, dim=1) |
| 81 | return score |
| 82 | |
| 83 | @staticmethod |
| 84 | def RotatE(heads, relations, tails, margin=12): |
nothing calls this directly
no outgoing calls
no test coverage detected