Skip to content

Commit

Permalink
deploy: 116265b
Browse files Browse the repository at this point in the history
  • Loading branch information
liopeer committed Oct 8, 2023
1 parent 61cef9e commit 4009667
Show file tree
Hide file tree
Showing 58 changed files with 805 additions and 7 deletions.
140 changes: 140 additions & 0 deletions _autosummary/diffusion_models.losses.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,140 @@
<!DOCTYPE html>
<html class="writer-html5" lang="en" >
<head>
<meta charset="utf-8" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" />

<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>diffusion_models.losses &mdash; DiffusionMRI 0.0.1 documentation</title>
<link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
<link rel="stylesheet" href="../_static/css/theme.css" type="text/css" />
<!--[if lt IE 9]>
<script src="../_static/js/html5shiv.min.js"></script>
<![endif]-->

<script src="../_static/jquery.js?v=5d32c60e"></script>
<script src="../_static/_sphinx_javascript_frameworks_compat.js?v=2cd50e6c"></script>
<script src="../_static/documentation_options.js?v=d45e8c67"></script>
<script src="../_static/doctools.js?v=888ff710"></script>
<script src="../_static/sphinx_highlight.js?v=dc90522c"></script>
<script src="../_static/js/theme.js"></script>
<link rel="index" title="Index" href="../genindex.html" />
<link rel="search" title="Search" href="../search.html" />
<link rel="next" title="diffusion_models.losses.kl_divergence" href="diffusion_models.losses.kl_divergence.html" />
<link rel="prev" title="diffusion_models.mri_forward.undersampling_mask.UndersamplingMask" href="diffusion_models.mri_forward.undersampling_mask.UndersamplingMask.html" />
</head>

<body class="wy-body-for-nav">
<div class="wy-grid-for-nav">
<nav data-toggle="wy-nav-shift" class="wy-nav-side">
<div class="wy-side-scroll">
<div class="wy-side-nav-search" >



<a href="../index.html">

<img src="../_static/diffMRI_logo.svg" class="logo" alt="Logo"/>
</a>
<div role="search">
<form id="rtd-search-form" class="wy-form" action="../search.html" method="get">
<input type="text" name="q" placeholder="Search docs" aria-label="Search docs" />
<input type="hidden" name="check_keywords" value="yes" />
<input type="hidden" name="area" value="default" />
</form>
</div>
</div><div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="Navigation menu">
<ul class="current">
<li class="toctree-l1"><a class="reference internal" href="../index.html">Homepage</a></li>
<li class="toctree-l1"><a class="reference internal" href="../installation.html">Installation</a></li>
<li class="toctree-l1 current"><a class="reference internal" href="../api.html">API Reference</a><ul class="current">
<li class="toctree-l2"><a class="reference internal" href="diffusion_models.models.html">diffusion_models.models</a></li>
<li class="toctree-l2"><a class="reference internal" href="diffusion_models.mri_forward.html">diffusion_models.mri_forward</a></li>
<li class="toctree-l2 current"><a class="current reference internal" href="#">diffusion_models.losses</a><ul>
<li class="toctree-l3"><a class="reference internal" href="diffusion_models.losses.kl_divergence.html">diffusion_models.losses.kl_divergence</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="diffusion_models.utils.html">diffusion_models.utils</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="../chap/tex_stuff.html">Abstract</a></li>
<li class="toctree-l1"><a class="reference internal" href="../chap/tex_stuff.html#acknowledgements">Acknowledgements</a></li>
<li class="toctree-l1"><a class="reference internal" href="../chap/tex_stuff.html#the-first-appendix">The First Appendix</a></li>
<li class="toctree-l1"><a class="reference internal" href="../chap/tex_stuff.html#extended-derivations">Extended Derivations</a></li>
<li class="toctree-l1"><a class="reference internal" href="../chap/tex_stuff.html#conclusion">Conclusion</a></li>
<li class="toctree-l1"><a class="reference internal" href="../chap/tex_stuff.html#discussion">Discussion</a></li>
<li class="toctree-l1"><a class="reference internal" href="../chap/tex_stuff.html#experiments-and-results">Experiments and Results</a></li>
<li class="toctree-l1"><a class="reference internal" href="../chap/tex_stuff.html#introduction">Introduction</a></li>
<li class="toctree-l1"><a class="reference internal" href="../chap/tex_stuff.html#materials-and-methods">Materials and Methods</a></li>
<li class="toctree-l1"><a class="reference internal" href="../chap/tex_stuff.html#generative-machine-learning">Generative Machine Learning</a></li>
<li class="toctree-l1"><a class="reference internal" href="../chap/tex_stuff.html#related-work">Related Work</a></li>
<li class="toctree-l1"><a class="reference internal" href="../idea_corner.html">Idea Corner</a></li>
</ul>

</div>
</div>
</nav>

<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap"><nav class="wy-nav-top" aria-label="Mobile navigation menu" >
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
<a href="../index.html">DiffusionMRI</a>
</nav>

<div class="wy-nav-content">
<div class="rst-content">
<div role="navigation" aria-label="Page navigation">
<ul class="wy-breadcrumbs">
<li><a href="../index.html" class="icon icon-home" aria-label="Home"></a></li>
<li class="breadcrumb-item"><a href="../api.html">API</a></li>
<li class="breadcrumb-item active">diffusion_models.losses</li>
<li class="wy-breadcrumbs-aside">
<a href="../_sources/_autosummary/diffusion_models.losses.rst.txt" rel="nofollow"> View page source</a>
</li>
</ul>
<hr/>
</div>
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
<div itemprop="articleBody">

<section id="module-diffusion_models.losses">
<span id="diffusion-models-losses"></span><h1>diffusion_models.losses<a class="headerlink" href="#module-diffusion_models.losses" title="Link to this heading"></a></h1>
<table class="autosummary longtable docutils align-default">
<tbody>
<tr class="row-odd"><td><p><a class="reference internal" href="diffusion_models.losses.kl_divergence.html#module-diffusion_models.losses.kl_divergence" title="diffusion_models.losses.kl_divergence"><code class="xref py py-obj docutils literal notranslate"><span class="pre">diffusion_models.losses.kl_divergence</span></code></a></p></td>
<td><p></p></td>
</tr>
</tbody>
</table>
</section>


</div>
</div>
<footer><div class="rst-footer-buttons" role="navigation" aria-label="Footer">
<a href="diffusion_models.mri_forward.undersampling_mask.UndersamplingMask.html" class="btn btn-neutral float-left" title="diffusion_models.mri_forward.undersampling_mask.UndersamplingMask" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left" aria-hidden="true"></span> Previous</a>
<a href="diffusion_models.losses.kl_divergence.html" class="btn btn-neutral float-right" title="diffusion_models.losses.kl_divergence" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right" aria-hidden="true"></span></a>
</div>

<hr/>

<div role="contentinfo">
<p>&#169; Copyright 2023, Lionel Peer.</p>
</div>

Built with <a href="https://www.sphinx-doc.org/">Sphinx</a> using a
<a href="https://github.com/readthedocs/sphinx_rtd_theme">theme</a>
provided by <a href="https://readthedocs.org">Read the Docs</a>.


</footer>
</div>
</div>
</section>
</div>
<script>
jQuery(function () {
SphinxRtdTheme.Navigation.enable(true);
});
</script>

</body>
</html>
169 changes: 169 additions & 0 deletions _autosummary/diffusion_models.losses.kl_divergence.gaussian_kl.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,169 @@
<!DOCTYPE html>
<html class="writer-html5" lang="en" >
<head>
<meta charset="utf-8" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" />

<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>diffusion_models.losses.kl_divergence.gaussian_kl &mdash; DiffusionMRI 0.0.1 documentation</title>
<link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
<link rel="stylesheet" href="../_static/css/theme.css" type="text/css" />
<!--[if lt IE 9]>
<script src="../_static/js/html5shiv.min.js"></script>
<![endif]-->

<script src="../_static/jquery.js?v=5d32c60e"></script>
<script src="../_static/_sphinx_javascript_frameworks_compat.js?v=2cd50e6c"></script>
<script src="../_static/documentation_options.js?v=d45e8c67"></script>
<script src="../_static/doctools.js?v=888ff710"></script>
<script src="../_static/sphinx_highlight.js?v=dc90522c"></script>
<script src="../_static/js/theme.js"></script>
<link rel="index" title="Index" href="../genindex.html" />
<link rel="search" title="Search" href="../search.html" />
<link rel="next" title="diffusion_models.losses.kl_divergence.log_gaussian_kl" href="diffusion_models.losses.kl_divergence.log_gaussian_kl.html" />
<link rel="prev" title="diffusion_models.losses.kl_divergence" href="diffusion_models.losses.kl_divergence.html" />
</head>

<body class="wy-body-for-nav">
<div class="wy-grid-for-nav">
<nav data-toggle="wy-nav-shift" class="wy-nav-side">
<div class="wy-side-scroll">
<div class="wy-side-nav-search" >



<a href="../index.html">

<img src="../_static/diffMRI_logo.svg" class="logo" alt="Logo"/>
</a>
<div role="search">
<form id="rtd-search-form" class="wy-form" action="../search.html" method="get">
<input type="text" name="q" placeholder="Search docs" aria-label="Search docs" />
<input type="hidden" name="check_keywords" value="yes" />
<input type="hidden" name="area" value="default" />
</form>
</div>
</div><div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="Navigation menu">
<ul class="current">
<li class="toctree-l1"><a class="reference internal" href="../index.html">Homepage</a></li>
<li class="toctree-l1"><a class="reference internal" href="../installation.html">Installation</a></li>
<li class="toctree-l1 current"><a class="reference internal" href="../api.html">API Reference</a><ul class="current">
<li class="toctree-l2"><a class="reference internal" href="diffusion_models.models.html">diffusion_models.models</a></li>
<li class="toctree-l2"><a class="reference internal" href="diffusion_models.mri_forward.html">diffusion_models.mri_forward</a></li>
<li class="toctree-l2 current"><a class="reference internal" href="diffusion_models.losses.html">diffusion_models.losses</a><ul class="current">
<li class="toctree-l3 current"><a class="reference internal" href="diffusion_models.losses.kl_divergence.html">diffusion_models.losses.kl_divergence</a><ul class="current">
<li class="toctree-l4 current"><a class="current reference internal" href="#">diffusion_models.losses.kl_divergence.gaussian_kl</a></li>
<li class="toctree-l4"><a class="reference internal" href="diffusion_models.losses.kl_divergence.log_gaussian_kl.html">diffusion_models.losses.kl_divergence.log_gaussian_kl</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="diffusion_models.utils.html">diffusion_models.utils</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="../chap/tex_stuff.html">Abstract</a></li>
<li class="toctree-l1"><a class="reference internal" href="../chap/tex_stuff.html#acknowledgements">Acknowledgements</a></li>
<li class="toctree-l1"><a class="reference internal" href="../chap/tex_stuff.html#the-first-appendix">The First Appendix</a></li>
<li class="toctree-l1"><a class="reference internal" href="../chap/tex_stuff.html#extended-derivations">Extended Derivations</a></li>
<li class="toctree-l1"><a class="reference internal" href="../chap/tex_stuff.html#conclusion">Conclusion</a></li>
<li class="toctree-l1"><a class="reference internal" href="../chap/tex_stuff.html#discussion">Discussion</a></li>
<li class="toctree-l1"><a class="reference internal" href="../chap/tex_stuff.html#experiments-and-results">Experiments and Results</a></li>
<li class="toctree-l1"><a class="reference internal" href="../chap/tex_stuff.html#introduction">Introduction</a></li>
<li class="toctree-l1"><a class="reference internal" href="../chap/tex_stuff.html#materials-and-methods">Materials and Methods</a></li>
<li class="toctree-l1"><a class="reference internal" href="../chap/tex_stuff.html#generative-machine-learning">Generative Machine Learning</a></li>
<li class="toctree-l1"><a class="reference internal" href="../chap/tex_stuff.html#related-work">Related Work</a></li>
<li class="toctree-l1"><a class="reference internal" href="../idea_corner.html">Idea Corner</a></li>
</ul>

</div>
</div>
</nav>

<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap"><nav class="wy-nav-top" aria-label="Mobile navigation menu" >
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
<a href="../index.html">DiffusionMRI</a>
</nav>

<div class="wy-nav-content">
<div class="rst-content">
<div role="navigation" aria-label="Page navigation">
<ul class="wy-breadcrumbs">
<li><a href="../index.html" class="icon icon-home" aria-label="Home"></a></li>
<li class="breadcrumb-item"><a href="../api.html">API</a></li>
<li class="breadcrumb-item"><a href="diffusion_models.losses.html">diffusion_models.losses</a></li>
<li class="breadcrumb-item"><a href="diffusion_models.losses.kl_divergence.html">diffusion_models.losses.kl_divergence</a></li>
<li class="breadcrumb-item active">diffusion_models.losses.kl_divergence.gaussian_kl</li>
<li class="wy-breadcrumbs-aside">
<a href="../_sources/_autosummary/diffusion_models.losses.kl_divergence.gaussian_kl.rst.txt" rel="nofollow"> View page source</a>
</li>
</ul>
<hr/>
</div>
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
<div itemprop="articleBody">

<section id="diffusion-models-losses-kl-divergence-gaussian-kl">
<h1>diffusion_models.losses.kl_divergence.gaussian_kl<a class="headerlink" href="#diffusion-models-losses-kl-divergence-gaussian-kl" title="Link to this heading"></a></h1>
<dl class="py function">
<dt class="sig sig-object py" id="diffusion_models.losses.kl_divergence.gaussian_kl">
<span class="sig-prename descclassname"><span class="pre">diffusion_models.losses.kl_divergence.</span></span><span class="sig-name descname"><span class="pre">gaussian_kl</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">p_mean</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">p_var</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">q_mean</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">q_var</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#diffusion_models.losses.kl_divergence.gaussian_kl" title="Link to this definition"></a></dt>
<dd><p>Calculate KL Divergence of 2 Gaussian distributions.</p>
<p>KL divergence between two univariate Gaussians, as derived in [1], with k=1 (dimensionality).</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters<span class="colon">:</span></dt>
<dd class="field-odd"><ul class="simple">
<li><p><strong>p_mean</strong> (<code class="xref py py-class docutils literal notranslate"><span class="pre">Float[Tensor,</span> <span class="pre">'1']</span></code>) – mean value of first distribution</p></li>
<li><p><strong>p_var</strong> (<code class="xref py py-class docutils literal notranslate"><span class="pre">Float[Tensor,</span> <span class="pre">'1']</span></code>) – variance value of first distribution</p></li>
<li><p><strong>q_mean</strong> (<code class="xref py py-class docutils literal notranslate"><span class="pre">Float[Tensor,</span> <span class="pre">'1']</span></code>) – mean value of second distribution</p></li>
<li><p><strong>q_var</strong> (<code class="xref py py-class docutils literal notranslate"><span class="pre">Float[Tensor,</span> <span class="pre">'1']</span></code>) – variance value of second distribution</p></li>
</ul>
</dd>
<dt class="field-even">Returns<span class="colon">:</span></dt>
<dd class="field-even"><p>KL divergence of inputs</p>
</dd>
<dt class="field-odd">Return type<span class="colon">:</span></dt>
<dd class="field-odd"><p>out</p>
</dd>
</dl>
<p class="rubric">References</p>
<aside class="footnote-list brackets">
<aside class="footnote brackets" id="id1" role="note">
<span class="label"><span class="fn-bracket">[</span>1<span class="fn-bracket">]</span></span>
<p><a class="reference external" href="https://mr-easy.github.io/2020-04-16-kl-divergence-between-2-gaussian-distributions/">https://mr-easy.github.io/2020-04-16-kl-divergence-between-2-gaussian-distributions/</a></p>
</aside>
</aside>
</dd></dl>

</section>


</div>
</div>
<footer><div class="rst-footer-buttons" role="navigation" aria-label="Footer">
<a href="diffusion_models.losses.kl_divergence.html" class="btn btn-neutral float-left" title="diffusion_models.losses.kl_divergence" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left" aria-hidden="true"></span> Previous</a>
<a href="diffusion_models.losses.kl_divergence.log_gaussian_kl.html" class="btn btn-neutral float-right" title="diffusion_models.losses.kl_divergence.log_gaussian_kl" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right" aria-hidden="true"></span></a>
</div>

<hr/>

<div role="contentinfo">
<p>&#169; Copyright 2023, Lionel Peer.</p>
</div>

Built with <a href="https://www.sphinx-doc.org/">Sphinx</a> using a
<a href="https://github.com/readthedocs/sphinx_rtd_theme">theme</a>
provided by <a href="https://readthedocs.org">Read the Docs</a>.


</footer>
</div>
</div>
</section>
</div>
<script>
jQuery(function () {
SphinxRtdTheme.Navigation.enable(true);
});
</script>

</body>
</html>
Loading

0 comments on commit 4009667

Please sign in to comment.