File size: 831 Bytes
fe4ff10
 
 
 
 
 
 
 
 
 
b0d7cdb
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
fe4ff10
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
---

title: TabTreeFormer
emoji: "🖥️"
colorFrom: "blue"
colorTo: "green"
sdk: static
sdk_version: "0.0.1"
pinned: false
---


# TabTreeFormer: Tabular Data Generation Using Hybrid Tree-Transformer

## Pre-requisites

- `Python>=3.9` installed.
- `pip install -r requirements.txt`.

## Usage

To train,

```shell

python main.py train -d DATA_PATH -t TARGET_COLUMN -p TASK_TYPE -o OUT_DIR

```

After training, to generate,

```shell

python main.py sample -c OUT_DIR -n N_ROWS -o OUT_CSV_PATH

```

For instance, to train and sample iris dataset (one can get the dataset by `sklearn.datasets.load_iris`),
one can run the following:

```shell

python main.py train -d iris.csv -t target -p mult -o out

python main.py sample -c out -n 150 -o synthetic-iris.csv

```
>>>>>>> b0d7cdb (first commit)