项目文件夹

文件
Shaow 954a0835b5 [Doc]modify the wrong code in initialize the hetero_graph negative sampler (#2382)
* modify the wrong code in initialize the hetero_graph negative sampler

the etype in hetero graph should be name of edges
self.weights = {
            etype: g.in_degrees(etype=etype).float() ** 0.75
            for _, etype, _ in g.canonical_etypes
        }
the original code will give etype a Tuple format, it cannot apply to the next processing:
self.weights[etype].multinomial(len(src), replacement=True)
and I add the part which confusing me to generate eid_dict

* fix

Co-authored-by: Quan Gan <coin2028@hotmail.com>
2020-12-09 16:20:51 +08:00
..
2020-11-27 03:20:50 +00:00
2020-08-20 15:37:50 +08:00
2020-08-20 15:37:50 +08:00
2020-08-10 23:19:03 +08:00
2020-11-27 03:17:11 +00:00