A fork of https://github.com/jsyoon0823/TimeGAN that implements static features and snapshotting
Project description
TimeGAN
A fork of https://github.com/jsyoon0823/TimeGAN that implements static features and snapshotting
- Original Github repository: https://github.com/det-lab/TimeGAN-Static/
- Documentation https://det-lab.github.io/TimeGAN-Static/
Installing this Software
This package is available for install via pip: timegan · PyPI.
You will need a Python 3.9 - 3.11 environment to properly match versions with certain dependencies.
pip install timegan
Creating a Singularity Container
The timegan package is also equipped with a definition file that allows you to build a timegan training container with root.
After cloning the Repository, run the following command within the directory:
apptainer build 'envname'.sif env.def
You can test the build by checking timegan version install within the container. It should match the latest version on Github.
apptainer shell 'envname'.sif
pip list
This will also work if you are using singularity to build.
(For Developers)
Maintaining this repository will require a bit of setup.
- Poetry
- Pyenv Virtual environment | K0nze
- You can also use Conda for this
- Python 3.9-3.10
Poetry
This repository was built using Poetry, its recommended for all of the management for this repository. You will need also this to commit changes to the repository.-
Functions like "poetry show" will list all the dependencies for running timegan training.
-
More details about the use of Poetry for this repository can be found here (perhaps).
Pyenv
The main reason for using pyenv here is for setting up virtual environments. Using a virtual environment is ideal for testing and other tasks. I recommending checking the install tutorial by K0nze linked above.- Pyenv also allows for choosing which version of python you would like to use.
Commit Changes (Linux)
First install Poetry, you can find more details for the install from this link.
sudo apt update -y
sudo apt install pipx
pipx install poetry
pipx ensurepath
You will need to set pipx locations to your PATH environment and restart your terminal session.
Committing changes without running a pre-check will result in build issues. To run a check, you will need pre-commit installed and able to access the Github hooks.
You cant do this as an apt install, or (recommended) via pip within a virtual environment. If you have issues with accessing the git Hooks, see: How to Set Up Pre-Commit Hooks | Stefanie Molin
apt install pre-commit
pre-commit install
Or install through a virtual environment (recommended):
python3 -m venv .venv
source .venv/bin/activate
python3 -m pip install pre-commit
From here, the hooks are built into the repository and can be set up by running:
pre-commit install
Pushing Commits
start by staging files to be committed.Before pushing, run the command to resolve workflow errors:
git status
git add 'filename'
make check
If changes were made to your files, they will drop back down to the un-staged section when running "git status".
Then re-stage those files and push a commit:
git status # If you'd like to double check
git add 'filename'
make check # If you'd like to double check
git status # If you'd like to double check
git commit
git push
Whenever making changes to the package's code, be sure to update the version number in the pyproject.toml file.
You can upload new releases to Pypi via Poetry, or through Github. With poetry, you will need to configure your credentials, so I recommend drafting new releases through Github for simplicity.
Repository initiated with fpgmaas/cookiecutter-poetry.
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file timegan-0.1.12.tar.gz.
File metadata
- Download URL: timegan-0.1.12.tar.gz
- Upload date:
- Size: 1.3 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.4.0 CPython/3.10.20 Linux/6.17.0-1010-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
691688c13b2d8173392658a988b7f51bd2ea5e45235ef3f4ff33e939b1f5593c
|
|
| MD5 |
d6994fc575ecd636b2fad5183f7a12de
|
|
| BLAKE2b-256 |
32971d2938c7a6e60d1d168979b248e1d2b1f800409032168fade598b0fb49ab
|
File details
Details for the file timegan-0.1.12-py3-none-any.whl.
File metadata
- Download URL: timegan-0.1.12-py3-none-any.whl
- Upload date:
- Size: 1.3 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.4.0 CPython/3.10.20 Linux/6.17.0-1010-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b2e8e14059915229e865429413a91a75f9b56c56f135c138d37941a2a1535a43
|
|
| MD5 |
f4e0beaeb61a75e6f740be1be9a6e2d2
|
|
| BLAKE2b-256 |
773ef450cad5d8687d9d0f86434d0f17cbcaba13dcbc1cbece4019c6be9f2a5f
|