Giter Site home page Giter Site logo

haolsun / metavrf Goto Github PK

View Code? Open in Web Editor NEW

This project forked from yingjun-du/metavrf

0.0 0.0 0.0 62 KB

This repository contains source code of the ICML 2020 paper:(Learning to Learn Kernels with Variational Random Features)

Python 99.62% Shell 0.38%

metavrf's Introduction

MetaVRF

This repository contains source code of the ICML 2020 paper:(Learning to Learn Kernels with Variational Random Features) https://arxiv.org/abs/2006.06707

Learning to Learn Kernels with Variational Random Features

The main components of the repository are:

  • run_classifier.py: script to run classification experiments on Omniglot and miniImageNet
  • features.py: deep neural networks for feature extraction and image generation
  • inference.py: amortized inference networks for various versions
  • utilities.py: assorted functions to support the repository
  • train_regression.py: script to run regression experiments.

Dependencies

This code requires the following:

  • python 3
  • TensorFlow v1.0+

Data

For Omniglot, miniImagenet, see the usage instructions in data/save_omniglot_data.py, data/save_mini_imagenet_data.py, respectively.

Usage

  • To run few-shot classification, see the usage instructions at the top of run_classifier.py.
  • To run view regression, see the usage instructions at the top of train_regression.py and test_regression.py.

Extending the Model

There are a number of ways the repository can be extended:

  • Data: to use alternative datasets, a class must be implemented to handle the new dataset. The necessary methods for the class are: __init__, get_batch, get_image_height, get_image_width, and get_image_channels. For example signatures see omniglot.py, mini_imagenet.py or omniglot.py. Note that the code currently handles only image data. Finally, add the initialization of the class to the file data.py.

  • Feature extractors: to use alternative feature extractors, simply implement a desired feature extractor in features.py and change the function call in run_classifier.py. For the required signature of a feature extractor see the function extract_features in features.py.

Citation

If MetaVRF is used in your paper/experiments, please cite the following paper.

@misc{zhen2020learning,
    title={Learning to Learn Kernels with Variational Random Features},
    author={Xiantong Zhen and Haoliang Sun and Yingjun Du and Jun Xu and Yilong Yin and Ling Shao and Cees Snoek},
    year={2020},
    eprint={2006.06707},
    archivePrefix={arXiv},
    primaryClass={cs.LG}}

metavrf's People

Contributors

yingjun-du 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.