File:Wasserstein-GAN critic vs GAN discriminator.svg
Original file (SVG file, nominally 800 × 400 pixels, file size: 87 KB)
Captions
Summary
[edit]DescriptionWasserstein-GAN critic vs GAN discriminator.svg |
English: Generated in Julia 1.7.2 by
```julia using Distributions μ = Normal(0, 1) ν = Normal(2, 2) using Roots cdfdiff = (x -> cdf(μ, x) - cdf(ν, x)) cdfzeros = find_zeros(cdfdiff, -5, 5) function optimalf(x) return 0.5 - 0.1*abs(x-cdfzeros[1]) end function optimalD(x) return 0.4 * pdf(ν, x)/(pdf(μ, x) + pdf(ν, x)) end function logminusoptimalD(x) return log(1-optimalD(x))+0.6 end using StatsPlots using LaTeXStrings p1 = plot(μ; label="Generator's distribution") plot!(ν; label="reference distribution")
vline!(cdfzeros; linestyle=:dashdot, label="equal CDF") plot!(optimalf;label="optimal Wasserstein critic (scaled)") plot!(optimalD; label="optimal GAN discriminator (scaled)") scene = plot(p1, size=(800,400), xlim=(-4, 4), ylim=(-0.3, 0.5), legend=:bottomright, legendfont=9) ``` |
Date | |
Source | Own work |
Author | Cosmia Nebula |
Licensing
[edit]- You are free:
- to share – to copy, distribute and transmit the work
- to remix – to adapt the work
- Under the following conditions:
- attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
- share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible license as the original.
File history
Click on a date/time to view the file as it appeared at that time.
Date/Time | Thumbnail | Dimensions | User | Comment | |
---|---|---|---|---|---|
current | 00:14, 15 July 2022 | 800 × 400 (87 KB) | Cosmia Nebula (talk | contribs) | Uploaded own work with UploadWizard |
You cannot overwrite this file.
File usage on Commons
There are no pages that use this file.
File usage on other wikis
The following other wikis use this file:
- Usage on en.wikipedia.org
- Usage on fa.wikipedia.org
Metadata
This file contains additional information such as Exif metadata which may have been added by the digital camera, scanner, or software program used to create or digitize it. If the file has been modified from its original state, some details such as the timestamp may not fully reflect those of the original file. The timestamp is only as accurate as the clock in the camera, and it may be completely wrong.
Width | 800 |
---|---|
Height | 400 |