Coder Social home page Coder Social logo

Comments (4)

Coder-Yu avatar Coder-Yu commented on July 21, 2024

我实现的是混合版呀。loss本来就可以为负呀,G_loss是要最大化这个loss,代码实现里是最小化,对应的loss就是负的了。

from qrec.

ShawWang1995 avatar ShawWang1995 commented on July 21, 2024

您好,我又核对了下,原始GAN网络定义的最大最小化公式中,对于生成器G的损失函数是要最小化的,对于判别器D是要最大化的,然后对D的损失函数取负数,变成最小化。这篇CFGAN论文也是这么做的,您程序定义的也是对的,所以原因应该不是您说的因为G_loss要最大化。我原先考虑过您说的这种情况,但因为不是这种原因,所以我就比较疑惑,loss函数为负的这种情况是不是代表定义的函数不合适或者是其他情况

from qrec.

Coder-Yu avatar Coder-Yu commented on July 21, 2024

你的理解是错误的

from qrec.

ShawWang1995 avatar ShawWang1995 commented on July 21, 2024

emmm,好的,我再看一下,谢谢您的答复。

from qrec.

Related Issues (20)

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.