Code Monkey home page Code Monkey logo

sobolevgan-ssl's Introduction

Semi-Supervised Learning with Sobolev GAN

Code accompanying the papers:

Tested for python 2.7, PyTorch 0.3.0.

To reproduce the CIFAR-10 result for 4000 labeled samples using the K+1 critic, imposing Fisher constraint on full critic f and Sobolev constraint on f- only:

python main.py --dataset cifar10 --dataroot ${DATAROOT} --cuda --outputdir ${OUTPUTDIR} \
--labeledSamples 4000 \
--SSL_critic_type Kp1 --f_component_Fisher f --f_component_Sobolev fneg

sobolevgan-ssl's People

Contributors

tomsercu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

sobolevgan-ssl's Issues

Update of lambda (Lagrange multiplier)

Thanks for the nice Sobolev GAN paper. I have a question regarding the update of the Lagrange multiplier lambda. I am following Nocedal and Wright, Numerical Optimization, specifically chapter 17 where they describe the augmented Lagrangian method. It seems the lambda update should be done using the current solution, but in your code as it is written, it uses the previous solution, i.e. instead of
lambda -= rho * lambda.grad (assuming we didn't invert the sign), it should be
lambda -= rho * (1 - omega) so that the current value of omega is used. The minor difference is that the value of lambda.grad is computed using the pre-updated value of omega.
To be fair, I didn't find significant differences in performance with either, but still I thought it was worth pointing it out. Cheers!

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.