Skip to main content

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

  1. 1D regression (x: [B, P, 1], y: [B, P, 1], mask: [B, P])

    • Gaussian processes, etc...
  2. 2D Image (x: [B, P, P, 2], y: [B, P, P, (1 or 3)], mask: [B, P, P])

    • Image completion, super resolution, etc...
  3. 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

  1. At CNP 1D regression:

    • x: [batch, point, 1]
    • y: [batch, point, 1]
    • mask: [batch, point]
    • outs: [batch, point, 1]
  2. At NP 1D regression:

    • x: [batch, point, 1]
    • y: [batch, point, 1]
    • mask: [batch, point]
    • outs: [batch, latent, point, 1]
  3. 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]
  4. 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]
  5. At BNP 1D regression:

    • x: [batch, point, 1]
    • y: [batch, point, 1]
    • mask: [batch, point]
    • outs: [batch, sample, point, 1]
  6. 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


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

np_family-0.0.1.dev0-py3-none-any.whl (24.2 kB view details)

Uploaded Python 3

File details

Details for the file np_family-0.0.1.dev0-py3-none-any.whl.

File metadata

File hashes

Hashes for np_family-0.0.1.dev0-py3-none-any.whl
Algorithm Hash digest
SHA256 9a2bbc40d1da4acfa22e52a31da3c68165be2f0e0a149baa657be87dadbf879d
MD5 5ff7f9b72acb6a77a792ef524d268cf3
BLAKE2b-256 d3a5fc194d17acb97a90484170af44a969a4681645ea3e1d49040b715f7329c1

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