Coder Social home page Coder Social logo

jinxu06 / neural_process_family Goto Github PK

View Code? Open in Web Editor NEW

This project forked from yanndubs/neural-process-family

0.0 1.0 0.0 2.42 GB

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

Home Page: https://yanndubs.github.io/Neural-Process-Family/

License: MIT License

Python 4.86% TeX 0.13% Jupyter Notebook 94.95% Dockerfile 0.06% CSS 0.01%

neural_process_family's Introduction

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/}}
}

neural_process_family's People

Contributors

yanndubs avatar gordonjo avatar andrewfoongyk avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.