File:Alpha-divergence.svg

From testwiki
Jump to navigation Jump to search
    Original file (SVG file, nominally 600 × 400 pixels, file size: 63 KB)

    This file is from Wikimedia Commons and may be used by other projects. The description on its file description page there is shown below.

    Summary

    Description
    English: alpha-divergence Edit this at Structured Data on Commons
    Date
    Source Own work
    Author Cosmia Nebula
    SVG development
    InfoField
     The SVG code is valid.
     This vector image was created with an unknown SVG tool.

    Source code

    The logo of Julia – high-performance dynamic programming language
    The logo of Julia – high-performance dynamic programming language
    This media was created with Julia (high-performance dynamic programming language)
    Here is a listing of the source used to create this file.

    Deutsch ∙ македонски ∙ English ∙ +/−

    ```julia
    using Plots, LaTeXStrings, ColorSchemes
    function f(t, a)
        return (t^a - a*t - (1-a))/(a*(a-1))
    end
    
    const xmin = 0
    const xmax = 4
    colors = ColorScheme(range(colorant"red", colorant"blue", length=5))
    plot()
    plot!(t-> f(t, 2), xmin, xmax, ylim = (-0.1, 3), color=colors[1], label="Pearson-"*L"χ^2: α=2")
    plot!(t-> t*log(t)-t+1, xmin, xmax, color=colors[2], linestyle=:dash, label="KL: "*L"α = 1")
    plot!(t-> f(t, 0.5), xmin, xmax, ylim = (-0.1, 3), color=colors[3], label="Hellinger²: "*L"α=0.5")
    plot!(t->-log(t)+t-1, xmin, xmax, color=colors[4], linestyle=:dash, label="reverse KL: "*L"α = 0")
    plot!(t-> f(t, -1), xmin, xmax, ylim = (-0.1, 3), color=colors[5], label="Neyman-"*L"χ^2: α=-1")
    ```
    

    Licensing

    Cosmia Nebula, the copyright holder of this work, hereby publishes it under the following license:
    w:en:Creative Commons
    attribution share alike
    This file is licensed under the Creative Commons Attribution-Share Alike 4.0 International license.
    Attribution:
    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.

    Captions

    alpha-divergence

    Items portrayed in this file

    depicts

    24 May 2022

    image/svg+xml

    3e868f9d38bfea069c7474d56977f27a2ec90ecb

    64,743 byte

    400 pixel

    600 pixel

    File history

    Click on a date/time to view the file as it appeared at that time.

    Date/TimeThumbnailDimensionsUserComment
    current06:21, 25 May 2022Thumbnail for version as of 06:21, 25 May 2022600 × 400 (63 KB)wikimediacommons>Cosmia NebulaUploaded own work with UploadWizard

    There are no pages that use this file.