Skip to main content

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

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

REaLTabFormer-0.0.2.3.9.tar.gz (1.9 MB view details)

Uploaded Source

Built Distribution

REaLTabFormer-0.0.2.3.9-py3-none-any.whl (46.7 kB view details)

Uploaded Python 3

File details

Details for the file REaLTabFormer-0.0.2.3.9.tar.gz.

File metadata

  • Download URL: REaLTabFormer-0.0.2.3.9.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

Hashes for REaLTabFormer-0.0.2.3.9.tar.gz
Algorithm Hash digest
SHA256 6b7baa4f4ce91067b35f9aee2bce25caeecb4dbfed5d585d7cf74521c39a0404
MD5 05b773e4c4b812ab27042c3823a90e44
BLAKE2b-256 1f5d86bfe39f448c6507fb69cc3d4eab926a4419fdebaa1a7c7e51c90e82be80

See more details on using hashes here.

File details

Details for the file REaLTabFormer-0.0.2.3.9-py3-none-any.whl.

File metadata

File hashes

Hashes for REaLTabFormer-0.0.2.3.9-py3-none-any.whl
Algorithm Hash digest
SHA256 4df67c01baaf0a7413b6d8216c6ec4360bc90c7dffa77184e535db6d6e47fb37
MD5 5d32e987747bcd9dd37d0981f58b9bfd
BLAKE2b-256 301fbe260d04bdb5e4978f7a4b663c43e3325dd1238af8cd3b5cfe6d0624014a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page