GithubHelp home page GithubHelp logo

xiexinran / few_shot_learning Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jiangxinyang227/few_shot_learning

0.0 0.0 0.0 209.95 MB

classical model code implementation of few-shot/one-shot lenaring, including siamese network, prototypical network, relation network, induction network

Python 100.00%

few_shot_learning's Introduction

few-shot learning

Each folder contains an implementation of each model.
  • data_helper. data processing
  • model. model construction
  • trainer. train model
  • metrics. performance metrics
  • config.json Configuration files for model parameters and training parameters

induction_network

  • paper: Few-Shot Text Classification with Induction Network

relation_network

  • paper: Learning to Compare: Relation Network for Few-Shot Learning

prototypical_network

  • paper: Prototypical Networks for Few-shot Learning

siamese_network

  • paper: Siamese Neural Networks for One-shot Image Recognition

ARSC data set

  • the data from Amazon Review Data Set, arranged by Alibaba Group
  • citation: Image-based recommendations on styles and substitutes J. McAuley, C. Targett, J. Shi, A. van den Hengel SIGIR, 2015
  • citation: Mo Yu, Xiaoxiao Guo, Jinfeng Yi, Shiyu Chang, Saloni Potdar, Yu Cheng, Gerald Tesauro, Haoyu Wang, and Bowen Zhou. 2018. Diverse few-shot text classification with multiple metrics

word vector

  • using glove word vector, you need download 300 dim glove word vector and place it in word_embedded dir.

note

  • You can only use 2-way, and if you need to use other way, you can modify the data_helper.py file.
  • Shot should not be more than 10, because there are few comments under some categories.
  • The number of categories in prediction and training can not be equal.

few_shot_learning's People

Contributors

jiangxinyang227 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.