Giter Club home page Giter Club logo

magics-lab / bishop Goto Github PK

View Code? Open in Web Editor NEW
6.0 1.0 0.0 1.15 MB

[ICML 2024] BiSHop: Bi-Directional Cellular Learning for Tabular Data with Generalized Sparse Modern Hopfield Model

Home Page: https://arxiv.org/abs/2404.03830

License: Apache License 2.0

Python 100.00%
hopfield hopfield-network modern-hopfield-model modern-hopfield-networks tabular tabular-methods tabular-model generalized-sparse-modern-hopfield sparse-hopfield tabular-learn

bishop's Introduction

BiSHop: Bi-Directional Cellular Learning for Tabular Data with Generalized Sparse Modern Hopfield Model

Introduction

BiSHop leverages a sparse Hopfield model with adaptable sparsity, enhanced by column-wise and row-wise modules. It's specifically designed to address challenges in processing rotationally invariant and sparse tabular data.

Installation

Install the Environment

For setting up Conda environments and installing necessary packages, refer to the commands provided below (Please install PyTorch according to the specific version of CUDA on your system).

conda create -n BiSHop python=3.10
conda activate BiSHop
pip3 install torch --index-url https://download.pytorch.org/whl/cu121 # please install based on corresponding version
pip3 install -r requirements.txt

Download Code and Datasets

To clone the project repository to your local machine, execute the following command:

git clone https://github.com/MAGICS-LAB/Bi-SHop.git
cd Bi-SHop

For the datasets for Baseline I, please first create the datasets folder

mkdir datasets

Please download them from the link below and place them in the datasets directory: Download Baseline I Datasets

Reproduce Experiments

Recording Runs

To record run details, update your API key in utils/wandb_api_key.txt and use the --record argument.

Baseline I

Run the file launch_sweep.py and change to the dataset_name in Baseline I.

python launch_baseline1.py --data [name of the data] --project [name of the wandb sweep project]

For example

python launch_baseline1.py --data adult --project bishop_baseline1

Baseline II

Run the file launch_sweep.py and change to the dataset_ID in Baseline II.

python launch_baseline2.py --data [data_id] --project [name of the wandb sweep project]

For example

python launch_baseline2.py --data 361110 --project bishop_baseline2

Start Running

Upon initiating the process, you'll receive a prompt for the Wandb agent that reads: wandb: Run sweep agent with: wandb agent [Agent Name]. To proceed, execute the following command:

wandb agent [Agent Name]

Reproduce Baselines and Ablation

To reproduce benchmark results, please checkout other available Branches.

Citation

If you find our work useful, please consider citing our paper:

@inproceedings{xu2024bishop,
  title={BiSHop: Bi-Directional Cellular Learning for Tabular Data with Generalized Sparse Modern Hopfield Model},
  author={Xu, Chenwei and Huang, Yu-Chao and Hu, Jerry Yao-Chieh and Li, Weijian and Gilani, Ammar and Goan, Hsi-Sheng and Liu, Han},
  booktitle={Forty-first International Conference on Machine Learning (ICML)},
  year={2024},
  url={https://arxiv.org/abs/2404.03830}
}

bishop's People

Contributors

chenwei-1999 avatar slackerjerry avatar

Stargazers

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