Git Product home page Git Product logo

xavierspycy / tabtransformers Goto Github PK

View Code? Open in Web Editor NEW
5.0 2.0 0.0 121 KB

A PyTorch-based implementation that leverages Transformer architectures to enhance the handling and design of tabular data. With the capabilities of Transformer models, we aim to provide data scientists and machine learning engineers with a flexible tool for more accurate and responsive decision-making.

License: MIT License

Python 100.00%
pytorch-implementation tabular-data transformer

tabtransformers's Introduction

Source: TabTransformer: Tabular Data Modeling Using Contextual Embeddings

tabtransformers

Table of content

Motivation

Tabular data plays a pivotal role in many Kaggle competitions, highlighting the need for a versatile framework that integrates various architectures tailored for such datasets.

Since the revolutionary "Attention Is All You Need" paper, Transformer-based models have demonstrated exceptional generalization capabilities across numerous domains, including computer vision (CV) and natural language processing (NLP). Our goal is to harness these capabilities for tabular data.

Despite the existence of Transformer-based frameworks for tabular data, we observe a scarcity in PyTorch-based implementations. Furthermore, many existing APIs fall short in providing satisfactory coding practices, and end-to-end frameworks remain nearly nonexistent. Although challenging, we believe it's a worthwhile endeavor to explore.

Modules

Models

Dataset

Provides a PyTorch-compatible dataset implementation for streamlined data handling.

Tools

  • train, inference
    Essential functions for training models and making predictions.

  • seed_everything
    Ensures reproducibility by setting a global random seed.

  • get_data, get_dataset, get_data_loader
    Includes functions for efficient data manipulation.

  • plot_learning_curve
    Visualizes the training and validation loss over epochs.

  • to_submission_csv
    Facilitates the creation of submission files for Kaggle competitions.

Others

Introduces custom metrics specifically designed for Kaggle competitions.

Usage

Detailed examples demonstrating the usage of our models can be found in the template directory.

Classification

For classification tasks, refer to classification.

Regression

For regression tasks, refer to regression.

Conclusion

We present an end-to-end, PyTorch-based Transformer framework specifically designed for tabular data. Accompanied by pre-integrated templates and functions, our framework aims to streamline your workflows without sacrificing flexibility. We believe it will prove to be a valuable asset for your data modeling tasks.

License

This project is licensed under the MIT License.

Contribution

Reference

  • Vaswani, A., Shazeer, N., Parmar, N., Uszkoreit, J., Jones, L., Gomez, A. N., Kaiser, ล., & Polosukhin, I. (2017). Attention is all you need. In Advances in neural information processing systems (Vol. 30).
  • Gorishniy, Y., Rubachev, I., Khrulkov, V., & Babenko, A. (2021). Revisiting deep learning models for tabular data. In Advances in Neural Information Processing Systems (Vol. 34, pp. 18932โ€“18943).
  • Huang, X., Khetan, A., Cvitkovic, M., & Karnin, Z. (2020). Tabtransformer: Tabular data modeling using contextual embeddings. arXiv preprint arXiv:2012.06678.

tabtransformers's People

Contributors

xavierspycy avatar

Stargazers

 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.