Neural Processes implementations in JAX and PyTorch
Project description
NPF
Models
Univariate NPF
Conditional NPF
- CNP: Conditional Neural Process
- AttnCNP: Attentive Conditional Neural Process
- ConvCNP: Convolutional Conditional Neural Process
- BNP: Bootstrapping Neural Process
- BANP: Bootstrapping Attentive Neural Process
Latent NPF
- NP: Neural Process
- AttnNP: Attentive Neural Process
- ConvNP: Convolutional Neural Process
Multivariate NPF
- GNP: Gaussian Neural Process
Datasets
-
1D regression (
x
:[B, P, 1]
,y
:[B, P, 1]
,mask
:[B, P]
)- Gaussian processes, etc...
-
2D Image (
x
:[B, P, P, 2]
,y
:[B, P, P, (1 or 3)]
,mask
:[B, P, P]
)- Image completion, super resolution, etc...
-
Bayesian optimization (
x
:[B, P, D]
,y
:[B, P, 1]
,mask
:[B, P]
)
Dimension rule
x
:[batch, *data_specific_dims, data_dim]
y
:[batch, *data_specific_dims, data_dim]
mask
:[batch, *data_specific_dims]
outs
:[batch, *model_specific_dims, *data_specific_dims, data_dim]
Examples
-
At
CNP
1D regression:x
:[batch, point, 1]
y
:[batch, point, 1]
mask
:[batch, point]
outs
:[batch, point, 1]
-
At
NP
1D regression:x
:[batch, point, 1]
y
:[batch, point, 1]
mask
:[batch, point]
outs
:[batch, latent, point, 1]
-
At
CNP
2D image regression:x
:[batch, height, width, 2]
y
:[batch, height, width, 1 or 3]
mask
:[batch, height, width]
outs
:[batch, height, width, 1 or 3]
-
At
NP
2D image regression:x
:[batch, height, width, 2]
y
:[batch, height, width, 1 or 3]
mask
:[batch, height, width]
outs
:[batch, latent, height, width, 1 or 3]
-
At
BNP
1D regression:x
:[batch, point, 1]
y
:[batch, point, 1]
mask
:[batch, point]
outs
:[batch, sample, point, 1]
-
At
BNP
2D image regression:x
:[batch, height, width, 2]
y
:[batch, height, width, 1 or 3]
mask
:[batch, height, width]
outs
:[batch, sample, height, width, 1 or 3]
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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
File details
Details for the file np_family-0.0.1.dev0-py3-none-any.whl
.
File metadata
- Download URL: np_family-0.0.1.dev0-py3-none-any.whl
- Upload date:
- Size: 24.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.9.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9a2bbc40d1da4acfa22e52a31da3c68165be2f0e0a149baa657be87dadbf879d |
|
MD5 | 5ff7f9b72acb6a77a792ef524d268cf3 |
|
BLAKE2b-256 | d3a5fc194d17acb97a90484170af44a969a4681645ea3e1d49040b715f7329c1 |