Skip to content

Latest commit

 

History

History
8 lines (5 loc) · 268 Bytes

README.md

File metadata and controls

8 lines (5 loc) · 268 Bytes

reservoir-sample

Python实现蓄水池抽样算法

简介

主要逻辑在reservoir_sample.py文件中 test_reservoir_sample.py文件中有单元测试,测试后如果输出的字典中,各个元素被抽取的次数相当,则能证明算法达到要求。