• xiang song(charlie.song)'s avatar
    [Feature Improvement]Edge Sampler w and w/o replacement (#1116) · 41f8a162
    xiang song(charlie.song) authored
    
    
    * Add weight based edge sampler
    
    * Can run, edge weight work.
    TODO: test node weight
    
    * Fix node weight sample
    
    * Fix y
    
    * Update doc
    
    * Fix syntex
    
    * Fix
    
    * Fix GPU test for sampler
    
    * Fix test
    
    * Fix
    
    * Refactor EdgeSampler to act as class object not function that it
    can record its own private states.
    
    * clean
    
    * Fix
    
    * Fix
    
    * Fix run bug on kg app
    
    * update
    
    * update test
    
    * test
    
    * Simply python API and fix some C code
    
    * Fix
    
    * Fix
    
    * Fix syntex
    
    * Fix
    
    * Update API description
    
    * add replacement for edge sampler
    
    * Now edge sampler support replacement and no-replacement
    
    * Fix
    
    * Fix
    
    * change kg/app to use edge sampler with replacement config
    
    * Update replacement algo
    
    * Fix syntax
    
    * Update
    
    * Update
    Co-authored-by: default avatarDa Zheng <zhengda1936@gmail.com>
    41f8a162
test_sampler.py 31.5 KB