This code is the official implementation of "STaSy: Score-based Tabular Data Synthesis"(https://arxiv.org/abs/2210.04018).
- Google Colab Notebook Link: Colab
Run the following to install requirements:
conda env create --file requirements.yaml
- Train, fine-tune, and evaluate our STaSy through
main.py
:
main.py:
--config: Training configuration.
--mode: <train|fine_tune|eval>: Running mode: train or fine_tune or eval
--workdir: Working directory
- You can train our STaSy with SPL from scratch by run:
python main.py --config configs/shoppers.py --mode train --workdir stasy
- To fine-tune the model trained with SPL by run:
python main.py --config configs/shoppers.py --mode fine_tune --workdir stasy --config.optim.lr 2e-07
- You can download pretrained model from the anonymous link here.
- Downloaded checkpoint should be in 'stasy/checkpoints/'.
- By run the following script, you can reproduce our experimental result: binary classification result of STaSy on Shoppers in Table 11.
python main.py --config configs/shoppers.py --mode eval --workdir stasy