[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["没有我需要的信息","missingTheInformationINeed","thumb-down"],["太复杂/步骤太多","tooComplicatedTooManySteps","thumb-down"],["内容需要更新","outOfDate","thumb-down"],["翻译问题","translationIssue","thumb-down"],["示例/代码问题","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-02-26。"],[[["\u003cp\u003eGANs consist of two neural networks: a generator creating data and a discriminator evaluating its authenticity.\u003c/p\u003e\n"],["\u003cp\u003eThe generator and discriminator are trained against each other, with the generator aiming to produce realistic data and the discriminator aiming to identify fake data.\u003c/p\u003e\n"],["\u003cp\u003eThrough continuous training, the generator improves its ability to create realistic data, while the discriminator struggles more with differentiation.\u003c/p\u003e\n"],["\u003cp\u003eThe ultimate goal is for the generator to create data so realistic that the discriminator cannot distinguish it from real data.\u003c/p\u003e\n"]]],[],null,["# Overview of GAN Structure\n\n\u003cbr /\u003e\n\nA generative adversarial network (GAN) has two parts:\n\n- The **generator** learns to generate plausible data. The generated instances become negative training examples for the discriminator.\n- The **discriminator** learns to distinguish the generator's fake data from real data. The discriminator penalizes the generator for producing implausible results.\n\nWhen training begins, the generator produces obviously fake data, and the\ndiscriminator quickly learns to tell that it's fake:\n\nAs training progresses, the generator gets closer to producing output that\ncan fool the discriminator:\n\nFinally, if generator training goes well, the discriminator gets worse at\ntelling the difference between real and fake. It starts to classify fake data as\nreal, and its accuracy decreases.\n\nHere's a picture of the whole system:\n\nBoth the generator and the discriminator are neural networks. The generator\noutput is connected directly to the discriminator input. Through\n[backpropagation](/machine-learning/glossary#backpropagation), the\ndiscriminator's classification provides a signal that the generator uses to\nupdate its weights.\n\nLet's explain the pieces of this system in greater detail."]]