文件历史

4 次代码提交

作者 SHA1 备注 提交日期
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
Quan (Andy) Gan 3b429f52a4 [Doc] fix minibatch user guide broken code (#2233) 2020-11-27 03:17:11 +00:00
Quan (Andy) Gan 9eaace9216 rename create_format_ to create_formats_ (#2126) 2020-08-29 22:49:27 +08:00
Minjie Wang 5cb5759366 [Doc] split docs to multiple rst files (#2037) 2020-08-17 19:02:31 +08:00