GithubHelp home page GithubHelp logo

pagegitss / uae Goto Github PK

View Code? Open in Web Editor NEW
23.0 2.0 9.0 11.59 MB

A Unified Deep Model of Learning from both Data and Queries for Cardinality Estimation

Python 99.01% Shell 0.12% Rust 0.87%
cardinality-estimation machine-learning autoregressive-models gumbel-softmax monte-carlo-integration supervised-autoregressive-models deep-learning

uae's Introduction

Introduction

This repo contains the source code for the SIGMOD 2021 paper, UAE.

UAE's high-level idea is learning a single model from both data and queires.

The key detailed technical contribution of UAE is Differentiable Progressive Sampling (DPS), which enables (deep) autoregressive models to learn the underlying data distribution from queries. This idea is also new in machine learning literature.


Main Directories

./UAE_single_table: the code for the single-table version of UAE/UAE-Q

./UAE_joins: the code for the join version of UAE/UAE-Q

./PostgreSQL_modified: the code for the modified version of PostgreSQL 9.6.6 with a Python interface, which accepts injected cardinality estimates.

Notes

  • The work was funded by SingTel and the IP is owned jointly by both NTU and SingTel.

  • We have released the single table version of UAE/UAE-Q in ./UAE_single_table. We are still pending the clearance from SingTel before we can release the join version of UAE/UAE-Q and the modified PostgreSQL (will be soon) to the public.

  • Note that the core code for implementing UAE (i.e., DPS) is similar in single-table and join versions of UAE.

  • We currently implement UAE with MADE and ResMADE autoregressive architectures. Interested readers can implement UAE with other autoregressive models (e.g., Transformer).

If you have any questions or have better implementations of UAE, please drop me an email at [email protected] (will be disabled soon) or at [email protected].

Citation

If you find this work helpful to your research, please consider citing:

@inproceedings{wu2021unified,
  title={A Unified Deep Model of Learning from both Data and Queries for Cardinality Estimation},
  author={Wu, Peizhi and Cong, Gao},
  booktitle={Proceedings of the 2021 International Conference on Management of Data},
  pages={2009--2022},
  year={2021}
}

Acknowledgment

  • This single-table and join versions of UAE are based on Naru and NeuroCard, repectively. Thanks to the contributors of Naru and Neurocard.
  • The modified PostgreSQL is based on the Pessimistic Cardinality Estimation project. Thanks to the authors.

uae's People

Contributors

jamesyang2333 avatar pagegitss avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  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.