Giter VIP home page Giter VIP logo

ada-bf's Introduction

ADAPTIVE LEARNED BLOOM FILTER (ADA-BF): EFFICIENT UTILIZATION OF THE CLASSIFIER

The python files include the implementation of the Bloom filter, learned Bloom filter, Ada-BF and disjoint Ada-BF, and print the size of False Positives of the corresponding algorithm.

Input arguments:

  • --data_path: a csv file includes the items, scores and labels; --size_of_Ada_BF: size of Bloom filter;
  • (for learned Bloom filter) --threshold_min and --threshold_max provide the range of the score threshold (between threshold_min and threshold_max). Items with score larger than the threshold are identified as keys;
  • (for Ada-BF and disjoint Ada-BF) --num_group_min and --num_group_max give the range of number of groups to divide (range of g ); --c_min and --c_max provide the range of c where c=m_j/m_{j+1}

Commands:

  • Run Bloom filter: python Bloom_filter.py --data_path ./Datasets/URL_data.csv --size_of_BF 200000
  • Run learned Bloom filter: python learned_Bloom_filter.py --data_path ./Datasets/URL_data.csv --size_of_LBF 200000 --threshold_min 0.5 --threshold_max 0.95
  • Run Ada-BF: python Ada-BF.py --data_path ./Datasets/URL_data.csv --size_of_Ada_BF 200000 --num_group_min 8 --num_group_max 12 --c_min 1.6 --c_max 2.5
  • Run disjoint Ada-BF: python disjoint_Ada-BF.py --data_path ./Datasets/URL_data.csv --size_of_Ada_BF 200000 --num_group_min 8 --num_group_max 12 --c_min 1.6 --c_max 2.5

ada-bf's People

Contributors

daizhenwei avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.