All Projects → abdulfatir → Prototypical Networks Tensorflow

abdulfatir / Prototypical Networks Tensorflow

Tensorflow implementation of NIPS 2017 Paper "Prototypical Networks for Few-shot Learning"

Projects that are alternatives of or similar to Prototypical Networks Tensorflow

Nbstripout
strip output from Jupyter and IPython notebooks
Stars: ✭ 738 (+504.92%)
Mutual labels:  jupyter-notebook, ipython-notebook
Accurate Binary Convolution Network
Binary Convolution Network for faster real-time processing in ASICs
Stars: ✭ 49 (-59.84%)
Mutual labels:  nips-2017, jupyter-notebook
Musicinformationretrieval.com
Instructional notebooks on music information retrieval.
Stars: ✭ 845 (+592.62%)
Mutual labels:  jupyter-notebook, ipython-notebook
Data Analysis And Machine Learning Projects
Repository of teaching materials, code, and data for my data analysis and machine learning projects.
Stars: ✭ 5,166 (+4134.43%)
Mutual labels:  jupyter-notebook, ipython-notebook
Show ast
An IPython notebook plugin for visualizing ASTs.
Stars: ✭ 76 (-37.7%)
Mutual labels:  jupyter-notebook, ipython-notebook
Tutorials
CatBoost tutorials repository
Stars: ✭ 563 (+361.48%)
Mutual labels:  jupyter-notebook, ipython-notebook
Minerva Training Materials
Learn advanced data science on real-life, curated problems
Stars: ✭ 37 (-69.67%)
Mutual labels:  jupyter-notebook, ipython-notebook
Vscodejupyter
Jupyter for Visual Studio Code
Stars: ✭ 337 (+176.23%)
Mutual labels:  jupyter-notebook, ipython-notebook
Group Sparsity Sbp
Structured Bayesian Pruning, NIPS 2017
Stars: ✭ 72 (-40.98%)
Mutual labels:  nips-2017, jupyter-notebook
Pandas Tutorial
Tutorial on Using Pandas
Stars: ✭ 66 (-45.9%)
Mutual labels:  jupyter-notebook, ipython-notebook
Python Lectures
IPython Notebooks to learn Python
Stars: ✭ 355 (+190.98%)
Mutual labels:  jupyter-notebook, ipython-notebook
Sci Pype
A Machine Learning API with native redis caching and export + import using S3. Analyze entire datasets using an API for building, training, testing, analyzing, extracting, importing, and archiving. This repository can run from a docker container or from the repository.
Stars: ✭ 90 (-26.23%)
Mutual labels:  jupyter-notebook, ipython-notebook
Nbval
A py.test plugin to validate Jupyter notebooks
Stars: ✭ 347 (+184.43%)
Mutual labels:  jupyter-notebook, ipython-notebook
Kaggle Titanic
A tutorial for Kaggle's Titanic: Machine Learning from Disaster competition. Demonstrates basic data munging, analysis, and visualization techniques. Shows examples of supervised machine learning techniques.
Stars: ✭ 709 (+481.15%)
Mutual labels:  jupyter-notebook, ipython-notebook
Numpile
A tiny 1000 line LLVM-based numeric specializer for scientific Python code.
Stars: ✭ 341 (+179.51%)
Mutual labels:  jupyter-notebook, ipython-notebook
Ansible Jupyterhub
Ansible role to setup jupyterhub server (deprecated)
Stars: ✭ 14 (-88.52%)
Mutual labels:  jupyter-notebook, ipython-notebook
Notebooks Statistics And Machinelearning
Jupyter Notebooks from the old UnsupervisedLearning.com (RIP) machine learning and statistics blog
Stars: ✭ 270 (+121.31%)
Mutual labels:  jupyter-notebook, ipython-notebook
Scipy Cookbook
Scipy Cookbook
Stars: ✭ 326 (+167.21%)
Mutual labels:  jupyter-notebook, ipython-notebook
Telepyth
Telegram notification with IPython magics.
Stars: ✭ 54 (-55.74%)
Mutual labels:  jupyter-notebook, ipython-notebook
Notebooks
A collection of Jupyter/IPython notebooks
Stars: ✭ 78 (-36.07%)
Mutual labels:  jupyter-notebook, ipython-notebook

Prototypical Networks for Few-shot Learning

Tensorflow implementation of NIPS 2017 Paper Prototypical Networks for Few-shot Learning[1].

This code has been ported from the official implementation in PyTorch (jakesnell/prototypical-networks) and may be buggy.

Usage

Omniglot Dataset

  • Download the Omniglot dataset by executing download_omniglot.sh
  • Use the IPython Notebook ProtoNet-Omniglot.ipynb

mini ImageNet v2

Downloading Images

  • Create an account on image-net.org with your institutional ID.
  • Replace <username> and <accesskey> in download_miniimagenet.sh with the username and accesskey you receive upon registration.
  • Run download_miniimagenet.sh which will download 84 ImageNet classes from ILSVRC2011. (64 train + 20 test)

Testing on miniImageNet

  • Run create_miniimagenet.py which will generate mini-imagenet-train.npy and mini-imagenet-test.npy which are numpy arrays of shapes 64 x 350 x 84 x 84 x 3 and 20 x 350 x 84 x 84 x 3 respectively.
  • Use the IPython Notebook ProtoNet-MiniImageNet-v2.ipynb.

NOTE: This miniImageNet dataset is not identical to the one used by Ravi et. al.[2] They have used images from ILSVRC2012 which can be downloaded from here. Ravi et. al. have used 100 classes (64 training + 16 validation + 20 test) with 600 examples from each class. The script provided in this dataset downloads images from image-net.org which currently (Feb, 2018) contains images from ILSVRC2011. Therefore, some of the classes suggested by Ravi et. al. have less than 600 examples. For this reason, the number of examples of each class has been reduced to 350. The scripts provided download images corresponding to 84 classes (64 train + 20 test), the ones suggested by Ravi et. al., and then randomly samples 350 examples for each class.

References

[1] Jake Snell, Kevin Swersky, and Richard S. Zemel. Prototypical networks for few-shot learning.
[2] Sachin Ravi and Hugo Larochelle. Optimization as a model for few-shot learning.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].