KnowledgeGraphEmbedding icon indicating copy to clipboard operation
KnowledgeGraphEmbedding copied to clipboard

Why start = 4

Open passermyh opened this issue 2 years ago • 0 comments

Hello, I'm a student who try to learn from this paper and code, and I met a small question confused me.

def count_frequency(triples, start=4):
''' Get frequency of a partial triple like (head, relation) or (relation, tail) The frequency will be used for subsampling like word2vec ''' count = {} for head, relation, tail in triples: if (head, relation) not in count: count[(head, relation)] = start

why start = 4 instead of start = 1?

passermyh avatar Sep 07 '22 09:09 passermyh