Coder Social home page Coder Social logo

ridge-regression-zsl's Introduction

ridge-regression-zsl

This code is implementations of Regression-based Zero Shot Learning. Traditional ridge-regression, which is the model with the projection from example to label space, and inversed ridge-regression, which projects from label to example space, are available.

If you run this code, you can reproduce the result of the synthetic data experiment in [Shigeto+. 2015]. Additionally, Online learning setting with Tensorflow, not closed-form, is also available.

Run

⟩⟩⟩ python train.py -h
usage: train.py [-h] [--mode MODE] [--method METHOD] [--lr LR] [--epoch EPOCH]
                [--log LOG] [--l L] [--l1 L1] [--l1_ratio L1_RATIO] [--skewx]
                [--stdx] [--info INFO] [--sk] [--abs] [--r2_flg]

optional arguments:
  -h, --help           show this help message and exit
  --mode MODE          training mode ["online", "closed", "cd"]
  --method METHOD      method ["ridgex", "ridgey"]
  --lr LR              learning rate
  --epoch EPOCH        number of epochs
  --log LOG            output log dir
  --l L                regularizer
  --l1 L1              L1 regularizer
  --l1_ratio L1_RATIO
  --skewx              force to skew x in synthetic data
  --stdx               standardize x in synthetic data
  --info INFO          informative dimention of scikit-learn
  --sk                 use scikit-learn dataset
  --abs                take abs in reg2
  --r2_flg             enable L2 reg for r2

Dependencies

  • numpy
  • scikit-learn
  • tensorflow

References

  • Ridge Regression, Hubness, and Zero-Shot Learning. Yutaro Shigeto, Ikumi Suzuki, Kazuo Hara, Masashi Shimbo, and Yuji Matsumoto. ECML/PKDD 2015.

ridge-regression-zsl's People

Contributors

mana-ysh 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.