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()
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
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.4.tar.gz (32.2 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: stVAE-0.2.4.tar.gz
  • Upload date:
  • Size: 32.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Python-urllib/3.6

File hashes

Hashes for stVAE-0.2.4.tar.gz
Algorithm Hash digest
SHA256 463d656420c59e9316fdcc2ed816375ce274a6ef9e93a684da66fe24f36f5375
MD5 749a0f715bda6e6bcd6b3c438bcf21a5
BLAKE2b-256 3d751617758e5c3fe320a2c4d08876b4d2744596a530aa6f733d8cad3a705e86

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