• Da Zheng's avatar
    [Feature] add PBG's negative edge sampling. (#836) · 4297e6d6
    Da Zheng authored
    * PBG negative edge sampler.
    
    * add a positive edge to make it regular, handle last batch.
    
    * exclude all positive edges in the parent graph.
    
    * just uniformly sample negative nodes.
    
    * fix lint.
    
    * shuffle one-side nodes of positive edges.
    
    * just uniformly sample negative nodes.
    
    * change the data type.
    
    * address comment.
    
    * remove commented code.
    4297e6d6
sampler.cc 45.6 KB