Coder Social home page Coder Social logo

two questions about the function G about l2c HOT 3 CLOSED

gt-ripl avatar gt-ripl commented on May 13, 2024
two questions about the function G

from l2c.

Comments (3)

yenchanghsu avatar yenchanghsu commented on May 13, 2024
  1. The precision and recall of G are printed to console if you run this script. The performance of G learned with Omniglot-bg and tested with Omniglot-eval or MNIST are available in Appendix Table 7 and 13 of the paper.
  2. The sampler does not aim to solve the imbalance problem completely. The sampler only makes the imbalance problem less severe to make sure the number of similar pairs in a mini-batch is not zero. If the imbalance is a concern in your case, a simple option is to calibrate the threshold of binarization after the G is learned.

from l2c.

linhlt-it-ee avatar linhlt-it-ee commented on May 13, 2024

Can you please tell me how you converted [sij=0]P(Yi|xi,theta)PYj|xj,theta) to (1-sij)log(1-f(xi,theta)Tf(fxj,theta))
It seems like P(Yi|xi,theta)PYj|xj,theta) ->1-f(xi,theta)Tf(fxj,theta) for no reason.
It conflicts with the theory when 2 classes are differents. Your loss function has a positive class =1 when 2 samples have the same predictions. It means the higher overlap, the loss should be lower. In your case, the lower of overlap, the loss is lower.

from l2c.

yenchanghsu avatar yenchanghsu commented on May 13, 2024

Hi linhlt-it-ee, your question was answered in another thread.

from l2c.

Related Issues (10)

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.