A novel method for generating tabular and relational data using language models.
Project description
DevRealTabFormer
Upload package to test pypi
python setup.py sdist
twine upload --repository testpypi dist/*
Install package from test pypi
pip install --upgrade --no-cache-dir --use-deprecated=legacy-resolver -i https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple/ REaLTabFormer==0.0.2.3.4
Generating constrained tokens per step
1 -> BOS
2 -> BMEM or EOS
3 -> col 0
...
3 + col_size -> col col_size - 1
3 + col_size + 1 -> EMEM
3 + col_size + 2 -> BMEM or EOS
3 + col_size + 3 -> col 0
Using the discriminator callback
We can control the training process to prevent overfitting by using specific constraints and metrics based on a validation data.
In this case, we propose to use a discriminator model to regulate the training process. We first identify the proportion of the full training data that will serve as the validation data. Then, we define the validation steps. For each step that is a multiple of the validation step, we generate synthetic data from the model. Then, we use the generated sample together with the validation data to train the discriminator model and quantify the model's ability to generate realistic samples.
We should note that at the early stages of the model, the model will not be able to generate meaningful observations. This implies that we should at least set a warm-up period before we perform the disciminator-based assessment.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file REaLTabFormer-0.0.2.3.4.tar.gz
.
File metadata
- Download URL: REaLTabFormer-0.0.2.3.4.tar.gz
- Upload date:
- Size: 1.9 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dfcbf28cae283e014849fcebc1a30be7fa13a3ea81158429d92d85ee021943a8 |
|
MD5 | 1c0fd3403637ceb4571b1c5fb6d9d94d |
|
BLAKE2b-256 | fe62205b685895370f2f416bc0475b8ad8f34ee2248618882e7fb92a76ac71f8 |
File details
Details for the file REaLTabFormer-0.0.2.3.4-py3-none-any.whl
.
File metadata
- Download URL: REaLTabFormer-0.0.2.3.4-py3-none-any.whl
- Upload date:
- Size: 43.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ab9c270ec1454e45dde0fae223140306fed3823ee99f65d00c1fbfed0032fb2f |
|
MD5 | e1c92d8c96318414db1e40383f529f97 |
|
BLAKE2b-256 | ec780bc4aadd3750cc324e19f8c84b46e702f60a8208e893aa40551ac1d7a679 |