入门指南
自带
扩展 PyKEEN
参考
AllScoreConsumer
pykeen.nn
附录
基础类:ScoreConsumer
ScoreConsumer
收集所有三元组的分数。
初始化消费者。
num_entities (int) – 实体的数量
num_relations (int) – 关系的数量
属性摘要
flatten
方法总结
__call__(batch, target, scores)
__call__
消耗给定 hr_batch 的分数。
属性文档
方法文档
batch (Tensor)
目标 (Literal['head', 'relation', 'tail'])
分数 (Tensor)
无