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 

Demonstrations and tutorials

Link Description
Open In Colab Train the neural sampler for the double well potential in PyTorch
Open In Colab Train the neural sampler for the Müller-Brown Model in PyTorch
Open In Colab Train the neural sampler for the periodic potential in PyTorch
Open In Colab Train the neural sampler for the Ginzburg-Landau potential in PyTorch

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
  • plz check the abf-mmd can reproduce the results! I have checked the codes are the same? I guessed the only issue might be just run enough runs! (Sun 09/05/2021 21:06)
  • at least lots of things are connected now!
  • update the colab module, going to download the dataset from the cloud!

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

Uploaded Source

Built Distribution

neuralsampler-0.0.11-py3-none-any.whl (25.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: neuralsampler-0.0.11.tar.gz
  • Upload date:
  • Size: 22.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.6

File hashes

Hashes for neuralsampler-0.0.11.tar.gz
Algorithm Hash digest
SHA256 5f2fd5f265277acbe505d91aad4602a7f2ce8237a16597464d85b40a03a4f1c1
MD5 b70426ab3472134369d88cd2d176b88b
BLAKE2b-256 76f90cc4fa61097c596d7d4e7d239ba71e97ccef0d98ad44687c5289c79a9169

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: neuralsampler-0.0.11-py3-none-any.whl
  • Upload date:
  • Size: 25.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.6

File hashes

Hashes for neuralsampler-0.0.11-py3-none-any.whl
Algorithm Hash digest
SHA256 2145d2902a59136b74e38a483cd5cf2df9ae916519785d0a56df4ca7153d9d17
MD5 9b4655e6fb28df6b9f1e09e55156a208
BLAKE2b-256 ae5787372a394b7f8219ccb410a8c5ec19a568c23db33b523660f71f4fd0d6c4

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