Skip to main content

neural sampler

Project description

PyPI version Open In Colab

NeuralSampler - Pytorch

Implementation of Neural Sampler.

Install

$ pip install neuralsampler

or install the latest version by

pip install -U git+https://JiahaoYao:{password}@github.com/JiahaoYao/neuralsampler.git@main

Install the jax (follow the official instruction here)

pip install jax jaxlib==0.1.64+[YOUR_CUDA_VERSION] -f https://storage.googleapis.com/jax-releases/jax_releases.html

e.g.

pip install --upgrade jax jaxlib==0.1.64+cuda101 -f https://storage.googleapis.com/jax-releases/jax_releases.html

Usage

import torch
from neuralsampler import neuralsampler

Run the code

python main.py 

Run the scripts

python scripts/test_job.py 

Ignore me (random things)

this repo is to collect all the random results and reproduce the experiments here 

and then jax 

i will use jax and flax, like shown here: https://github.com/yang-song/score_sde

there are the templates of building the jax neural networks (quite interesting to try this functional programming )

Todo list

  • this library is on the pytorch
  • i am also going to prepare the colab notebook
  • the dataset is through the gdown: you can download the dataset from the google drive

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

neuralsampler-0.0.9.tar.gz (17.0 kB view details)

Uploaded Source

Built Distribution

neuralsampler-0.0.9-py3-none-any.whl (21.3 kB view details)

Uploaded Python 3

File details

Details for the file neuralsampler-0.0.9.tar.gz.

File metadata

  • Download URL: neuralsampler-0.0.9.tar.gz
  • Upload date:
  • Size: 17.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4

File hashes

Hashes for neuralsampler-0.0.9.tar.gz
Algorithm Hash digest
SHA256 76ea29a823f82a86a57a9dc868d8f7af421c1beaae8631fc93f4d97f5a4c342e
MD5 a93f97854d322af10d47abd36b3661a8
BLAKE2b-256 7898c25c02692490c9620dcfc04c16e438d681c1b0586181d62c49061f539c04

See more details on using hashes here.

Provenance

File details

Details for the file neuralsampler-0.0.9-py3-none-any.whl.

File metadata

  • Download URL: neuralsampler-0.0.9-py3-none-any.whl
  • Upload date:
  • Size: 21.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4

File hashes

Hashes for neuralsampler-0.0.9-py3-none-any.whl
Algorithm Hash digest
SHA256 5e9836620eb022f2aa738303ff44fa2f8acf3d90693f6dbec22fd2f38ef95a58
MD5 267ea48984b382be00a6222c156cb5df
BLAKE2b-256 f670ea2a47b1c69f7940904ac2eb72f186b818dcd5fc98d2ca9d86e35f91598a

See more details on using hashes here.

Provenance

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