• Stars
    star
    193
  • Rank 199,909 (Top 4 %)
  • Language
    Jupyter Notebook
  • License
    MIT License
  • Created over 4 years ago
  • Updated 3 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Code for the Neural Processes website and replication of 4 papers on NPs. Pytorch implementation.

Neural Process Family License: MIT Python 3.6+

Main entry point: Neural Process Family website.

What ?

This repository contains:

For tutorials on how to use the npf library refer to the reproducability section of the NPF website.

Install

Pip

# clone repo
pip install -r requirements.txt

Note that the version of skorch must be 0.8 to ensure that the pretrained models can be correctly uploaded.

Docker

  1. Install nvidia-docker

  2. Build your image using Dockerfile or pull docker pull yanndubs/npf:gpu

  3. Create and run a container, e.g.: docker run --gpus all --init -d --ipc=host --name npf -v .:/Neural-Process-Family -p 8888:8888 -p 6006:6006 yanndubs/npf:gpu jupyter lab --ip=0.0.0.0 --port=8888 --no-browser --allow-root

Examples

Check the website for many plots and the code to produce them. Here is a teaser:

Sample functions from the predictive distribution of ConvLNPs (blue) and the oracle GP (green) with periodic and noisy Matern kernels:

Samples from ConvLNP trained on GPs

Increasing the resolution of 16x16 CelebA to 128x128 with a ConvCNP.:

Increasing image resolution with ConvCNP

Cite

When using one of the models implemented in this repo in academic work please cite the corresponding paper (linked at the top of the README).

In case you want to cite the NPF website or this specific implementation of the NPs then you can use:

@misc{dubois2020npf,
  title        = {Neural Process Family},
  author       = {Dubois, Yann and Gordon, Jonathan and Foong, Andrew YK},
  month        = {September},
  year         = {2020},
  howpublished = {\url{http://yanndubs.github.io/Neural-Process-Family/}}
}

More Repositories

1

disentangling-vae

Experiments for understanding disentanglement in VAE latent representations
Python
784
star
2

Hash-Embeddings

PyTorch implementation of Hash Embeddings (NIPS 2017). Submission to the NIPS Implementation Challenge.
Python
189
star
3

lossyless

Generic image compressor for machine learning. Pytorch code for our paper "Lossy compression for lossless prediction".
Python
113
star
4

Invariant-Self-Supervised-Learning

Pytorch code for "Improving Self-Supervised Learning by Characterizing Idealized Representations"
Python
40
star
5

SSL-Risk-Decomposition

Benchmark and analysis of 165 pretrained SSL models. Code for "Evaluating Self-Supervised Learning via Risk Decomposition".
Jupyter Notebook
13
star
6

Mini_Decodable_Information_Bottleneck

Minimum viable code for the Decodable Information Bottleneck paper. Pytorch Implementation.
Python
10
star
7

Semi-Supervised-Neural-Processes

Jupyter Notebook
6
star
8

miRNAseq-Analysis

Analyze single-cell miRNA sequencing data from HL-60 cells along a 7-day time-course of ATRA treatment.
R
5
star
9

RAW-Embedings

Novel word embeddings based on a simple and intuitive rolling average. Still in dev mode.
Jupyter Notebook
4
star
10

simulationPopulationGenetics

A general modelisation of Wright Fisher in a context of total biological abstraction. And a specific modelisation of the evolution of the sickle cell anemia in Congo, Cameroon & Gaboon
C++
3
star
11

Infootmation

Visualise european soccer player's data
JavaScript
2
star
12

FourRussiansRNA

Faster algorithms for RNA-folding using the Four-Russians method
C++
2
star
13

npf

Experiments for comparing and understanding different neural processes architectures.
2
star
14

Overlayed-Datasets

Code for generating datasets consisting of overlayed images.
Jupyter Notebook
1
star
15

specialized-attention-mini

Mini Version of Specialized Attention
Python
1
star
16

optimizationCode

Some of the optimisation functions I've implemented: for learning purpose
MATLAB
1
star
17

TicTacToePyTorch

Tic tac toe dataset and PyTorch baseline.
Jupyter Notebook
1
star
18

sigterm-bug

Python
1
star
19

QuoraQuestion

Siamese LSTM for Kaggle competition: Quora Question Pairs
Python
1
star