Coder Social home page Coder Social logo

Comments (4)

lizhi-ntu avatar lizhi-ntu commented on July 22, 2024

我想将测试集的得分生成到txt文件,可是我看代码中是求得相似度

Hello, 二分类的score就是三个level的feature的相似度的加权平均。计算方法可以参考一下 src/algo.py 214行,函数prediction_student的返回值 preds就是二分类的分数。分数越小越真。

from ockd-facepad.

beijita-yegucheng avatar beijita-yegucheng commented on July 22, 2024

我确实是将prediction_student的返回值 preds,可是得分都是在0.03左右,二分类得分不应该是一类是接近于1,一类接近于0吗?

from ockd-facepad.

lizhi-ntu avatar lizhi-ntu commented on July 22, 2024

我确实是将prediction_student的返回值 preds,可是得分都是在0.03左右,二分类得分不应该是一类是接近于1,一类接近于0吗?

  1. 首先,对于二分类问题,其中一个类的大多数样本score小于另一类就可以确定threshold进行二分类,跟score是否接近0或1无关。
  2. 关于真假样本score都接近0。因为我们的方法在adaptation阶段只使用target domain的真样本训练student,所以测试时真假样本的score都会更接近0。但是大多数真样本的score会比假样本的score小, 可以进行二分类。

from ockd-facepad.

beijita-yegucheng avatar beijita-yegucheng commented on July 22, 2024

我明白了,谢谢您的及时回复与解答。十分感谢!

from ockd-facepad.

Related Issues (4)

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.