Skip to main content

Style transfer variational autoencoder

Project description

https://img.shields.io/pypi/v/stvae?color=green https://travis-ci.org/NRshka/stvae.svg?branch=master

The official pytorch implementation of “Style transfer with variational autoencoders is a promising approach to RNA-Seq data harmonization and analysis”. The package contains a code for training and testing the model, as well as a code for working with different types of datasets.

Installation

To install the latest version from PyPI, use:

>>> pip install stvae

Benchmarks

The original code containing code with testing several models can be found here.

Example

ds = stvae.datasets.MouseDataset(download=True) # download data to the current directory
cfg = stvae.Config()
train, test, classif = ds.split(0.15, True, 0.15)
cfg.count_classes = ds.n_labels
cfg.count_classes = ds.n_batches
cfg.input_dim = ds.nb_genes
cfg.use_cuda = True # if you have a CUDA compatibility gpu
cfg.epochs = 600 # number of training epocs
cfg.classifier_epochs = 450 # number of epochs for testing classifirs training
model = stvae.stVAE(cfg)
model.train(train, None)
d = model.test(test, classif)

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

stVAE-0.2.9.tar.gz (34.1 kB view details)

Uploaded Source

File details

Details for the file stVAE-0.2.9.tar.gz.

File metadata

  • Download URL: stVAE-0.2.9.tar.gz
  • Upload date:
  • Size: 34.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0.post20200714 requests-toolbelt/0.8.0 tqdm/4.47.0 CPython/3.8.3

File hashes

Hashes for stVAE-0.2.9.tar.gz
Algorithm Hash digest
SHA256 21eae57b741bb1f6607c999a16db82cd5b990c043607bf5688415a33d356b8ce
MD5 964b613019d885d0f36b9c88fa4f13c4
BLAKE2b-256 a1642c86c636882dd348dcc08c61fb85d36d64f22e87ba059264559f72050c9f

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