Skip to main content

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!

Metadata

Release files for neuralsampler 0.0.16

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for neuralsampler 0.0.16
File Size Uploaded
neuralsampler-0.0.16.tar.gz 21.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for neuralsampler 0.0.16
File Interpreter ABI Platform
neuralsampler-0.0.16-py3-none-any.whl Python 3 none any Details

Total release size: 46.8 kB

Release files / neuralsampler-0.0.16.tar.gz

Download URL neuralsampler-0.0.16.tar.gz
Size 21.8 kB
Tags Source
SHA-256 checksum
How to use checksums
5c82d5c66394d8e0b1a53456ec034492f42a80d625cc3a0139e4ddb1c42fcb1c
BLAKE2b-256 checksum
How to use checksums
b4917e1b8b586f0ce4d1988ec79f162a43748906fadccf0655d3e21dc837179d
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / neuralsampler-0.0.16-py3-none-any.whl

Download URL neuralsampler-0.0.16-py3-none-any.whl
Size 25.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f1513ec1bde677a612b8a7792e4089bd1997cc3317e30d7c89d04b2e63a1626a
BLAKE2b-256 checksum
How to use checksums
06650326db0b8c183342432ed526fb7f5415b51a8ff3f147a8840e04a0dd5713
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

0.0.16 This release

2 release files

0.0.15

2 release files

0.0.14

2 release files

0.0.13

2 release files

0.0.12

2 release files

0.0.11

2 release files

0.0.9

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page