Skip to content

Commit

Permalink
build based on 65a3cd0
Browse files Browse the repository at this point in the history
  • Loading branch information
Documenter.jl committed Sep 19, 2024
1 parent bf23a32 commit b27cdfa
Show file tree
Hide file tree
Showing 12 changed files with 43 additions and 43 deletions.
2 changes: 1 addition & 1 deletion dev/.documenter-siteinfo.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"documenter":{"julia_version":"1.10.5","generation_timestamp":"2024-09-19T01:20:35","documenter_version":"1.7.0"}}
{"documenter":{"julia_version":"1.10.5","generation_timestamp":"2024-09-19T11:21:59","documenter_version":"1.7.0"}}
6 changes: 3 additions & 3 deletions dev/api/data/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@
predictions,
log_likelihood;
kwargs...
) -&gt; InferenceData</code></pre><p>Convert data in an <code>MCMCChains.Chains</code> format into an <a href="../inference_data/#InferenceObjects.InferenceData"><code>InferenceData</code></a>.</p><p>Any keyword argument below without an an explicitly annotated type above is allowed, so long as it can be passed to <a href="../inference_data/#InferenceObjects.convert_to_inference_data"><code>convert_to_inference_data</code></a>.</p><p><strong>Arguments</strong></p><ul><li><code>posterior::MCMCChains.Chains</code>: Draws from the posterior</li></ul><p><strong>Keywords</strong></p><ul><li><code>posterior_predictive::Any=nothing</code>: Draws from the posterior predictive distribution or name(s) of predictive variables in <code>posterior</code></li><li><code>predictions</code>: Out-of-sample predictions for the posterior.</li><li><code>prior</code>: Draws from the prior</li><li><code>prior_predictive</code>: Draws from the prior predictive distribution or name(s) of predictive variables in <code>prior</code></li><li><code>observed_data</code>: Observed data on which the <code>posterior</code> is conditional. It should only contain data which is modeled as a random variable. Keys are parameter names and values.</li><li><code>constant_data</code>: Model constants, data included in the model that are not modeled as random variables. Keys are parameter names.</li><li><code>predictions_constant_data</code>: Constants relevant to the model predictions (i.e. new <code>x</code> values in a linear regression).</li><li><code>log_likelihood</code>: Pointwise log-likelihood for the data. It is recommended to use this argument as a named tuple whose keys are observed variable names and whose values are log likelihood arrays. Alternatively, provide the name of variable in <code>posterior</code> containing log likelihoods.</li><li><code>library=MCMCChains</code>: Name of library that generated the chains</li><li><code>coords</code>: Map from named dimension to named indices</li><li><code>dims</code>: Map from variable name to names of its dimensions</li><li><code>eltypes</code>: Map from variable names to eltypes. This is primarily used to assign discrete eltypes to discrete variables that were stored in <code>Chains</code> as floats.</li></ul><p><strong>Returns</strong></p><ul><li><code>InferenceData</code>: The data with groups corresponding to the provided data</li></ul></div><a class="docs-sourcelink" target="_blank" href="https://github.com/arviz-devs/ArviZ.jl/blob/09bdfdc6565007a70d5f6e632a48dfe6daaaa933/src/conversions.jl#L1-L48">source</a></section></article><article class="docstring"><header><a class="docstring-article-toggle-button fa-solid fa-chevron-down" href="javascript:;" title="Collapse docstring"></a><a class="docstring-binding" id="ArviZ.from_samplechains" href="#ArviZ.from_samplechains"><code>ArviZ.from_samplechains</code></a><span class="docstring-category">Function</span><span class="is-flex-grow-1 docstring-article-toggle-button" title="Collapse docstring"></span></header><section><div><pre><code class="language-julia hljs">from_samplechains(
) -&gt; InferenceData</code></pre><p>Convert data in an <code>MCMCChains.Chains</code> format into an <a href="../inference_data/#InferenceObjects.InferenceData"><code>InferenceData</code></a>.</p><p>Any keyword argument below without an an explicitly annotated type above is allowed, so long as it can be passed to <a href="../inference_data/#InferenceObjects.convert_to_inference_data"><code>convert_to_inference_data</code></a>.</p><p><strong>Arguments</strong></p><ul><li><code>posterior::MCMCChains.Chains</code>: Draws from the posterior</li></ul><p><strong>Keywords</strong></p><ul><li><code>posterior_predictive::Any=nothing</code>: Draws from the posterior predictive distribution or name(s) of predictive variables in <code>posterior</code></li><li><code>predictions</code>: Out-of-sample predictions for the posterior.</li><li><code>prior</code>: Draws from the prior</li><li><code>prior_predictive</code>: Draws from the prior predictive distribution or name(s) of predictive variables in <code>prior</code></li><li><code>observed_data</code>: Observed data on which the <code>posterior</code> is conditional. It should only contain data which is modeled as a random variable. Keys are parameter names and values.</li><li><code>constant_data</code>: Model constants, data included in the model that are not modeled as random variables. Keys are parameter names.</li><li><code>predictions_constant_data</code>: Constants relevant to the model predictions (i.e. new <code>x</code> values in a linear regression).</li><li><code>log_likelihood</code>: Pointwise log-likelihood for the data. It is recommended to use this argument as a named tuple whose keys are observed variable names and whose values are log likelihood arrays. Alternatively, provide the name of variable in <code>posterior</code> containing log likelihoods.</li><li><code>library=MCMCChains</code>: Name of library that generated the chains</li><li><code>coords</code>: Map from named dimension to named indices</li><li><code>dims</code>: Map from variable name to names of its dimensions</li><li><code>eltypes</code>: Map from variable names to eltypes. This is primarily used to assign discrete eltypes to discrete variables that were stored in <code>Chains</code> as floats.</li></ul><p><strong>Returns</strong></p><ul><li><code>InferenceData</code>: The data with groups corresponding to the provided data</li></ul></div><a class="docs-sourcelink" target="_blank" href="https://github.com/arviz-devs/ArviZ.jl/blob/65a3cd0caba65cdb10f3cacbdb23e69057405f65/src/conversions.jl#L1-L48">source</a></section></article><article class="docstring"><header><a class="docstring-article-toggle-button fa-solid fa-chevron-down" href="javascript:;" title="Collapse docstring"></a><a class="docstring-binding" id="ArviZ.from_samplechains" href="#ArviZ.from_samplechains"><code>ArviZ.from_samplechains</code></a><span class="docstring-category">Function</span><span class="is-flex-grow-1 docstring-article-toggle-button" title="Collapse docstring"></span></header><section><div><pre><code class="language-julia hljs">from_samplechains(
posterior=nothing;
prior=nothing,
library=SampleChains,
kwargs...,
) -&gt; InferenceData</code></pre><p>Convert SampleChains samples to an <code>InferenceData</code>.</p><p>Either <code>posterior</code> or <code>prior</code> may be a <code>SampleChains.AbstractChain</code> or <code>SampleChains.MultiChain</code> object.</p><p>For descriptions of remaining <code>kwargs</code>, see <a href="../inference_data/#InferenceObjects.from_namedtuple"><code>from_namedtuple</code></a>.</p></div><a class="docs-sourcelink" target="_blank" href="https://github.com/arviz-devs/ArviZ.jl/blob/09bdfdc6565007a70d5f6e632a48dfe6daaaa933/src/conversions.jl#L51-L65">source</a></section></article><h2 id="IO-/-Conversion"><a class="docs-heading-anchor" href="#IO-/-Conversion">IO / Conversion</a><a id="IO-/-Conversion-1"></a><a class="docs-heading-anchor-permalink" href="#IO-/-Conversion" title="Permalink"></a></h2><article class="docstring"><header><a class="docstring-article-toggle-button fa-solid fa-chevron-down" href="javascript:;" title="Collapse docstring"></a><a class="docstring-binding" id="InferenceObjects.from_netcdf" href="#InferenceObjects.from_netcdf"><code>InferenceObjects.from_netcdf</code></a><span class="docstring-category">Function</span><span class="is-flex-grow-1 docstring-article-toggle-button" title="Collapse docstring"></span></header><section><div><pre><code class="language-julia hljs">from_netcdf(path::AbstractString; kwargs...) -&gt; InferenceData</code></pre><p>Load an <a href="../inference_data/#InferenceObjects.InferenceData"><code>InferenceData</code></a> from an unopened NetCDF file.</p><p>Remaining <code>kwargs</code> are passed to <a href="https://alexander-barth.github.io/NCDatasets.jl/stable/dataset/#NCDatasets.NCDataset"><code>NCDatasets.NCDataset</code></a>. This method loads data eagerly. To instead load data lazily, pass an opened <code>NCDataset</code> to <code>from_netcdf</code>.</p><div class="admonition is-info"><header class="admonition-header">Note</header><div class="admonition-body"><p>This method requires that NCDatasets is loaded before it can be used.</p></div></div><p><strong>Examples</strong></p><pre><code class="language-julia hljs">julia&gt; using InferenceObjects, NCDatasets
) -&gt; InferenceData</code></pre><p>Convert SampleChains samples to an <code>InferenceData</code>.</p><p>Either <code>posterior</code> or <code>prior</code> may be a <code>SampleChains.AbstractChain</code> or <code>SampleChains.MultiChain</code> object.</p><p>For descriptions of remaining <code>kwargs</code>, see <a href="../inference_data/#InferenceObjects.from_namedtuple"><code>from_namedtuple</code></a>.</p></div><a class="docs-sourcelink" target="_blank" href="https://github.com/arviz-devs/ArviZ.jl/blob/65a3cd0caba65cdb10f3cacbdb23e69057405f65/src/conversions.jl#L51-L65">source</a></section></article><h2 id="IO-/-Conversion"><a class="docs-heading-anchor" href="#IO-/-Conversion">IO / Conversion</a><a id="IO-/-Conversion-1"></a><a class="docs-heading-anchor-permalink" href="#IO-/-Conversion" title="Permalink"></a></h2><article class="docstring"><header><a class="docstring-article-toggle-button fa-solid fa-chevron-down" href="javascript:;" title="Collapse docstring"></a><a class="docstring-binding" id="InferenceObjects.from_netcdf" href="#InferenceObjects.from_netcdf"><code>InferenceObjects.from_netcdf</code></a><span class="docstring-category">Function</span><span class="is-flex-grow-1 docstring-article-toggle-button" title="Collapse docstring"></span></header><section><div><pre><code class="language-julia hljs">from_netcdf(path::AbstractString; kwargs...) -&gt; InferenceData</code></pre><p>Load an <a href="../inference_data/#InferenceObjects.InferenceData"><code>InferenceData</code></a> from an unopened NetCDF file.</p><p>Remaining <code>kwargs</code> are passed to <a href="https://alexander-barth.github.io/NCDatasets.jl/stable/dataset/#NCDatasets.NCDataset"><code>NCDatasets.NCDataset</code></a>. This method loads data eagerly. To instead load data lazily, pass an opened <code>NCDataset</code> to <code>from_netcdf</code>.</p><div class="admonition is-info"><header class="admonition-header">Note</header><div class="admonition-body"><p>This method requires that NCDatasets is loaded before it can be used.</p></div></div><p><strong>Examples</strong></p><pre><code class="language-julia hljs">julia&gt; using InferenceObjects, NCDatasets

julia&gt; idata = from_netcdf(&quot;centered_eight.nc&quot;)
InferenceData with groups:
Expand Down Expand Up @@ -48,4 +48,4 @@
&gt; posterior

julia&gt; to_netcdf(idata, &quot;data.nc&quot;)
&quot;data.nc&quot;</code></pre></div><a class="docs-sourcelink" target="_blank" href="https://github.com/arviz-devs/InferenceObjects.jl/blob/v0.4.3/src/io.jl#L63-L92">source</a></section></article></article><nav class="docs-footer"><a class="docs-footer-prevpage" href="../diagnostics/">« Diagnostics</a><a class="docs-footer-nextpage" href="../inference_data/">InferenceData »</a><div class="flexbox-break"></div><p class="footer-message">Powered by <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> and the <a href="https://julialang.org/">Julia Programming Language</a>.</p></nav></div><div class="modal" id="documenter-settings"><div class="modal-background"></div><div class="modal-card"><header class="modal-card-head"><p class="modal-card-title">Settings</p><button class="delete"></button></header><section class="modal-card-body"><p><label class="label">Theme</label><div class="select"><select id="documenter-themepicker"><option value="auto">Automatic (OS)</option><option value="documenter-light">documenter-light</option><option value="documenter-dark">documenter-dark</option><option value="catppuccin-latte">catppuccin-latte</option><option value="catppuccin-frappe">catppuccin-frappe</option><option value="catppuccin-macchiato">catppuccin-macchiato</option><option value="catppuccin-mocha">catppuccin-mocha</option></select></div></p><hr/><p>This document was generated with <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> version 1.7.0 on <span class="colophon-date" title="Thursday 19 September 2024 01:20">Thursday 19 September 2024</span>. Using Julia version 1.10.5.</p></section><footer class="modal-card-foot"></footer></div></div></div></body></html>
&quot;data.nc&quot;</code></pre></div><a class="docs-sourcelink" target="_blank" href="https://github.com/arviz-devs/InferenceObjects.jl/blob/v0.4.3/src/io.jl#L63-L92">source</a></section></article></article><nav class="docs-footer"><a class="docs-footer-prevpage" href="../diagnostics/">« Diagnostics</a><a class="docs-footer-nextpage" href="../inference_data/">InferenceData »</a><div class="flexbox-break"></div><p class="footer-message">Powered by <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> and the <a href="https://julialang.org/">Julia Programming Language</a>.</p></nav></div><div class="modal" id="documenter-settings"><div class="modal-background"></div><div class="modal-card"><header class="modal-card-head"><p class="modal-card-title">Settings</p><button class="delete"></button></header><section class="modal-card-body"><p><label class="label">Theme</label><div class="select"><select id="documenter-themepicker"><option value="auto">Automatic (OS)</option><option value="documenter-light">documenter-light</option><option value="documenter-dark">documenter-dark</option><option value="catppuccin-latte">catppuccin-latte</option><option value="catppuccin-frappe">catppuccin-frappe</option><option value="catppuccin-macchiato">catppuccin-macchiato</option><option value="catppuccin-mocha">catppuccin-mocha</option></select></div></p><hr/><p>This document was generated with <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> version 1.7.0 on <span class="colophon-date" title="Thursday 19 September 2024 11:21">Thursday 19 September 2024</span>. Using Julia version 1.10.5.</p></section><footer class="modal-card-foot"></footer></div></div></div></body></html>
Loading

0 comments on commit b27cdfa

Please sign in to comment.