Skip to content

Commit

Permalink
DOC: hide inherited methods
Browse files Browse the repository at this point in the history
  • Loading branch information
glouppe committed Apr 22, 2016
1 parent 323d1ed commit 6beb6b8
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 11 deletions.
4 changes: 3 additions & 1 deletion ci/templates/html.mako
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<%
import re
import sys
import inspect
import markdown
try:
Expand Down Expand Up @@ -296,6 +297,7 @@
<%
class_vars = c.class_variables()
smethods = c.functions()
smethods = [f for f in smethods if inspect.getmodule(f.func).__name__.startswith("carl")]
inst_vars = c.instance_variables()
methods = c.methods()
mro = c.module.mro(c)
Expand Down Expand Up @@ -362,7 +364,7 @@
<div id="sidebar">
<ul id="index">
<li class="set"><h3><a href="${ root_url }">Index</a></h3></li>
% if len(variables) > 0:
<li class="set"><h3><a href="#header-variables">Module variables</a></h3>
${show_column_list(map(lambda v: link(v.refname), variables))}
Expand Down
20 changes: 10 additions & 10 deletions examples/Parameterized inference from multidimensional data.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@
"\n",
"For the sake of the illustration, we will assume 5-dimensional feature $\\mathbf{x}$ generated\n",
"from the following process $p_0$:\n",
" - $\\mathbf{z} := (z_0, z_1, z_2, z_3, z_4)$, such that\n",
" - $z_0 \\sim {\\cal N}(\\mu=\\alpha, \\sigma=1)$,\n",
" - $z_1 \\sim {\\cal N}(\\mu=\\beta, \\sigma=3)$,\n",
" - $z_2 \\sim {\\text{Mixture}}(\\frac{1}{2}\\,{\\cal N}(\\mu=-2, \\sigma=1), \\frac{1}{2}\\,{\\cal N}(\\mu=2, \\sigma=0.5))$,\n",
" - $z_3 \\sim {\\text{Exponential}(\\lambda=3)}$, and\n",
" - $z_4 \\sim {\\text{Exponential}(\\lambda=0.5)}$;\n",
" \n",
"\n",
" - $\\mathbf{z} := (z_0, z_1, z_2, z_3, z_4)$, such that \n",
" $z_0 \\sim {\\cal N}(\\mu=\\alpha, \\sigma=1)$,\n",
" $z_1 \\sim {\\cal N}(\\mu=\\beta, \\sigma=3)$,\n",
" $z_2 \\sim {\\text{Mixture}}(\\frac{1}{2}\\,{\\cal N}(\\mu=-2, \\sigma=1), \\frac{1}{2}\\,{\\cal N}(\\mu=2, \\sigma=0.5))$,\n",
" $z_3 \\sim {\\text{Exponential}(\\lambda=3)}$, and\n",
" $z_4 \\sim {\\text{Exponential}(\\lambda=0.5)}$;\n",
" \n",
" - $\\mathbf{x} := R \\mathbf{z}$, where $R$ is a fixed semi-positive definite $5 \\times 5$ matrix defining a fixed projection of $\\mathbf{z}$ into the observed space.\n",
" "
Expand Down Expand Up @@ -128,7 +128,7 @@
}
],
"source": [
"#plot the data\n",
"# Plot the data\n",
"import corner\n",
"fig = corner.corner(X_true, bins=20, smooth=0.85, labels=[\"X0\", \"X1\", \"X2\", \"X3\", \"X4\"])\n",
"#plt.savefig(\"fig3.pdf\")"
Expand All @@ -138,7 +138,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"# Exact likelihood setup"
"## Exact likelihood setup"
]
},
{
Expand Down Expand Up @@ -244,7 +244,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"# Likelihood-free setup\n",
"## Likelihood-free setup\n",
"\n",
"In this example we will build a parametrized classifier $s(x; \\theta_0, \\theta_1)$ with $\\theta_1$ fixed to $(\\alpha=0, \\beta=0)$."
]
Expand Down

0 comments on commit 6beb6b8

Please sign in to comment.