Skip to content

Commit

Permalink
Merge pull request #105 from amarquand/dev
Browse files Browse the repository at this point in the history
fix module index docs
  • Loading branch information
amarquand authored Oct 31, 2022
2 parents cba59d4 + e6e1523 commit 829ba14
Show file tree
Hide file tree
Showing 218 changed files with 30,272 additions and 27,501 deletions.
Binary file modified doc/build/doctrees/environment.pickle
Binary file not shown.
Binary file modified doc/build/doctrees/index.doctree
Binary file not shown.
Binary file modified doc/build/doctrees/pages/BLR_normativemodel_protocol.doctree
Binary file not shown.
Binary file modified doc/build/doctrees/pages/FAQs.doctree
Binary file not shown.
Binary file not shown.
Binary file modified doc/build/doctrees/pages/acknowledgements.doctree
Binary file not shown.
Binary file modified doc/build/doctrees/pages/apply_normative_models.doctree
Binary file not shown.
Binary file modified doc/build/doctrees/pages/citing.doctree
Binary file not shown.
Binary file modified doc/build/doctrees/pages/glossary.doctree
Binary file not shown.
Binary file modified doc/build/doctrees/pages/installation.doctree
Binary file not shown.
Binary file modified doc/build/doctrees/pages/modindex.doctree
Binary file not shown.
Binary file not shown.
Binary file modified doc/build/doctrees/pages/other_predictive_models.doctree
Binary file not shown.
Binary file modified doc/build/doctrees/pages/pcntoolkit_background.doctree
Binary file not shown.
Binary file modified doc/build/doctrees/pages/post_hoc_analysis.doctree
Binary file not shown.
Binary file modified doc/build/doctrees/pages/visualizations.doctree
Binary file not shown.
2 changes: 1 addition & 1 deletion doc/build/html/.buildinfo
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Sphinx build info version 1
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
config: a089bcd75031977ac6ed557ec8eaf85b
config: 46bc7099ba8cde0fa5978235a8dba9ea
tags: 645f666f9bcd5a90fca523b33c5a78b7
169 changes: 132 additions & 37 deletions doc/build/html/_modules/bayesreg.html
Original file line number Diff line number Diff line change
@@ -1,46 +1,93 @@


<!DOCTYPE html>
<html class="writer-html5" lang="en" >
<!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]-->
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta charset="utf-8">

<meta name="viewport" content="width=device-width, initial-scale=1.0">

<title>bayesreg &mdash; Predictive Clinical Neuroscience Toolkit 0.20 documentation</title>
<link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
<link rel="stylesheet" href="../_static/css/theme.css" type="text/css" />
<link rel="stylesheet" href="../_static/graphviz.css" type="text/css" />
<link rel="stylesheet" href="../_static/pages/css/pcntoolkit_tabs.css" type="text/css" />
<link rel="stylesheet" href="../_static/tabs.css" type="text/css" />
<link rel="stylesheet" href="../_static/pages/css/pcntoolkit.css" type="text/css" />
<link rel="stylesheet" href="../_static/pages/css/pcntoolkit_nomaxwidth.css" type="text/css" />
<!--[if lt IE 9]>
<script src="../_static/js/html5shiv.min.js"></script>
<![endif]-->








<script type="text/javascript" src="../_static/js/modernizr.min.js"></script>


<script type="text/javascript" id="documentation_options" data-url_root="../" src="../_static/documentation_options.js"></script>
<script data-url_root="../" id="documentation_options" src="../_static/documentation_options.js"></script>
<script src="../_static/jquery.js"></script>
<script src="../_static/underscore.js"></script>
<script src="../_static/_sphinx_javascript_frameworks_compat.js"></script>
<script src="../_static/doctools.js"></script>
<script src="../_static/sphinx_highlight.js"></script>
<script src="../_static/tabs.js"></script>
<script src="../_static/js/theme.js"></script>

<script type="text/javascript" src="../_static/js/theme.js"></script>




<link rel="stylesheet" href="../_static/css/theme.css" type="text/css" />
<link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
<link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
<link rel="stylesheet" href="../_static/css/theme.css" type="text/css" />
<link rel="stylesheet" href="../_static/graphviz.css" type="text/css" />
<link rel="stylesheet" href="../_static/pages/css/pcntoolkit_tabs.css" type="text/css" />
<link rel="stylesheet" href="../_static/tabs.css" type="text/css" />
<link rel="stylesheet" href="../_static/pages/css/pcntoolkit.css" type="text/css" />
<link rel="stylesheet" href="../_static/pages/css/pcntoolkit_nomaxwidth.css" type="text/css" />
<link rel="index" title="Index" href="../genindex.html" />
<link rel="search" title="Search" href="../search.html" />
</head>

<body class="wy-body-for-nav">
<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/pcn-logo.png" 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" />
<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">


</div>

<div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">






<p class="caption" role="heading"><span class="caption-text">Getting started</span></p>
<ul>
<li class="toctree-l1"><a class="reference internal" href="../pages/installation.html">Installation</a></li>
Expand All @@ -51,7 +98,7 @@
</ul>
<p class="caption" role="heading"><span class="caption-text">Function &amp; Class Docs</span></p>
<ul>
<li class="toctree-l1"><a class="reference internal" href="../modindex.html">Module Index</a></li>
<li class="toctree-l1"><a class="reference internal" href="../pages/modindex.html">Module Index</a></li>
</ul>
<p class="caption" role="heading"><span class="caption-text">Tutorials</span></p>
<ul>
Expand All @@ -71,30 +118,66 @@
<li class="toctree-l1"><a class="reference internal" href="../pages/acknowledgements.html">Acknowledgements</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" >
<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">


<nav class="wy-nav-top" aria-label="top navigation">

<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
<a href="../index.html">Predictive Clinical Neuroscience Toolkit</a>

</nav>


<div class="wy-nav-content">

<div class="rst-content">
<div role="navigation" aria-label="Page navigation">

















<div role="navigation" aria-label="breadcrumbs navigation">

<ul class="wy-breadcrumbs">
<li><a href="../index.html" class="icon icon-home"></a> &raquo;</li>

<li><a href="../index.html">Docs</a> &raquo;</li>

<li><a href="index.html">Module code</a> &raquo;</li>

<li>bayesreg</li>


<li class="wy-breadcrumbs-aside">

</li>

</ul>


<hr/>
</div>
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
<div itemprop="articleBody">

<h1>Source code for bayesreg</h1><div class="highlight"><pre>
<span></span>from __future__ import print_function
from __future__ import division
Expand All @@ -104,7 +187,7 @@ <h1>Source code for bayesreg</h1><div class="highlight"><pre>
from scipy.linalg import LinAlgError


<div class="viewcode-block" id="BLR"><a class="viewcode-back" href="../modindex.html#bayesreg.BLR">[docs]</a>class BLR:
<div class="viewcode-block" id="BLR"><a class="viewcode-back" href="../pages/modindex.html#bayesreg.BLR">[docs]</a>class BLR:
&quot;&quot;&quot;Bayesian linear regression

Estimation and prediction of Bayesian linear regression models
Expand Down Expand Up @@ -237,7 +320,7 @@ <h1>Source code for bayesreg</h1><div class="highlight"><pre>

return beta, alpha, gamma

<div class="viewcode-block" id="BLR.post"><a class="viewcode-back" href="../modindex.html#bayesreg.BLR.post">[docs]</a> def post(self, hyp, X, y, Xv=None):
<div class="viewcode-block" id="BLR.post"><a class="viewcode-back" href="../pages/modindex.html#bayesreg.BLR.post">[docs]</a> def post(self, hyp, X, y, Xv=None):
&quot;&quot;&quot; Generic function to compute posterior distribution.

This function will save the posterior mean and precision matrix as
Expand Down Expand Up @@ -290,7 +373,7 @@ <h1>Source code for bayesreg</h1><div class="highlight"><pre>
self.D = D
self.hyp = hyp</div>

<div class="viewcode-block" id="BLR.loglik"><a class="viewcode-back" href="../modindex.html#bayesreg.BLR.loglik">[docs]</a> def loglik(self, hyp, X, y, Xv=None):
<div class="viewcode-block" id="BLR.loglik"><a class="viewcode-back" href="../pages/modindex.html#bayesreg.BLR.loglik">[docs]</a> def loglik(self, hyp, X, y, Xv=None):
&quot;&quot;&quot; Function to compute compute log (marginal) likelihood &quot;&quot;&quot;

# hyperparameters (alpha not needed)
Expand Down Expand Up @@ -348,7 +431,7 @@ <h1>Source code for bayesreg</h1><div class="highlight"><pre>
self.nlZ = nlZ
return nlZ</div>

<div class="viewcode-block" id="BLR.penalized_loglik"><a class="viewcode-back" href="../modindex.html#bayesreg.BLR.penalized_loglik">[docs]</a> def penalized_loglik(self, hyp, X, y, Xv=None, l=0.1, norm=&#39;L1&#39;):
<div class="viewcode-block" id="BLR.penalized_loglik"><a class="viewcode-back" href="../pages/modindex.html#bayesreg.BLR.penalized_loglik">[docs]</a> def penalized_loglik(self, hyp, X, y, Xv=None, l=0.1, norm=&#39;L1&#39;):
&quot;&quot;&quot; Function to compute the penalized log (marginal) likelihood

:param hyp: hyperparameter vector
Expand All @@ -367,7 +450,7 @@ <h1>Source code for bayesreg</h1><div class="highlight"><pre>
print(&quot;Requested penalty not recognized, choose between &#39;L1&#39; or &#39;L2&#39;.&quot;)
return L</div>

<div class="viewcode-block" id="BLR.dloglik"><a class="viewcode-back" href="../modindex.html#bayesreg.BLR.dloglik">[docs]</a> def dloglik(self, hyp, X, y, Xv=None):
<div class="viewcode-block" id="BLR.dloglik"><a class="viewcode-back" href="../pages/modindex.html#bayesreg.BLR.dloglik">[docs]</a> def dloglik(self, hyp, X, y, Xv=None):
&quot;&quot;&quot; Function to compute derivatives &quot;&quot;&quot;

# hyperparameters
Expand Down Expand Up @@ -470,7 +553,7 @@ <h1>Source code for bayesreg</h1><div class="highlight"><pre>
return dnlZ</div>

# model estimation (optimization)
<div class="viewcode-block" id="BLR.estimate"><a class="viewcode-back" href="../modindex.html#bayesreg.BLR.estimate">[docs]</a> def estimate(self, hyp0, X, y, **kwargs):
<div class="viewcode-block" id="BLR.estimate"><a class="viewcode-back" href="../pages/modindex.html#bayesreg.BLR.estimate">[docs]</a> def estimate(self, hyp0, X, y, **kwargs):
&quot;&quot;&quot; Function to estimate the model

:param hyp: hyperparameter vector
Expand Down Expand Up @@ -523,7 +606,7 @@ <h1>Source code for bayesreg</h1><div class="highlight"><pre>

return self.hyp</div>

<div class="viewcode-block" id="BLR.predict"><a class="viewcode-back" href="../modindex.html#bayesreg.BLR.predict">[docs]</a> def predict(self, hyp, X, y, Xs,
<div class="viewcode-block" id="BLR.predict"><a class="viewcode-back" href="../pages/modindex.html#bayesreg.BLR.predict">[docs]</a> def predict(self, hyp, X, y, Xs,
var_groups_test=None,
var_covariates_test=None, **kwargs):
&quot;&quot;&quot; Function to make predictions from the model
Expand Down Expand Up @@ -575,7 +658,7 @@ <h1>Source code for bayesreg</h1><div class="highlight"><pre>

return ys, s2 </div>

<div class="viewcode-block" id="BLR.predict_and_adjust"><a class="viewcode-back" href="../modindex.html#bayesreg.BLR.predict_and_adjust">[docs]</a> def predict_and_adjust(self, hyp, X, y, Xs=None,
<div class="viewcode-block" id="BLR.predict_and_adjust"><a class="viewcode-back" href="../pages/modindex.html#bayesreg.BLR.predict_and_adjust">[docs]</a> def predict_and_adjust(self, hyp, X, y, Xs=None,
ys=None,
var_groups_test=None,
var_groups_adapt=None, **kwargs):
Expand Down Expand Up @@ -667,30 +750,42 @@ <h1>Source code for bayesreg</h1><div class="highlight"><pre>
</pre></div>

</div>

</div>
<footer>


<hr/>

<div role="contentinfo">
<p>&#169; Copyright 2020, Andre F. Marquand.</p>
</div>
<p>
&copy; Copyright 2020, Andre F. Marquand

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>.

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

</footer>

</div>
</div>

</section>

</div>
<script>



<script type="text/javascript">
jQuery(function () {
SphinxRtdTheme.Navigation.enable(true);
});
</script>
</script>






</body>
</html>
Loading

0 comments on commit 829ba14

Please sign in to comment.