neural sampler
Project description
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
Release history Release notifications | RSS feed
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.8.tar.gz
(15.7 kB
view details)
Built Distribution
File details
Details for the file neuralsampler-0.0.8.tar.gz
.
File metadata
- Download URL: neuralsampler-0.0.8.tar.gz
- Upload date:
- Size: 15.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dcc9c3b7ec28dff98e421b230d76d303ba2407ab9d54f11725cfb800be105d17 |
|
MD5 | e4ffcb0a9f3a6590096a5d07572eade5 |
|
BLAKE2b-256 | 3936179f03cda0a870e5e74d8dd5b31b8089e8f528ac3b477205f52f1f3c9ad0 |
Provenance
File details
Details for the file neuralsampler-0.0.8-py3-none-any.whl
.
File metadata
- Download URL: neuralsampler-0.0.8-py3-none-any.whl
- Upload date:
- Size: 20.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 668ca05c5bdb36d55dca16de2d60963ee94eda1e6500a687d734a8f9700c90ac |
|
MD5 | 913455de19d42632a4f1b66c238250f0 |
|
BLAKE2b-256 | 713795243960f51219e76010828e9312cb403535c95b6816f536210ff27ed5e9 |