-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Documenter.jl
committed
Apr 29, 2023
1 parent
81822dd
commit ff4659e
Showing
26 changed files
with
16,398 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
v0.4.0 | ||
v0.4.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
v0.4.0 | ||
v0.4.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#src Generate README.md by running `using Literate; Literate.markdown("docs/src/README.jl", "."; documenter=false, credit=false, execute=true)` | ||
|
||
# <img align="right" width="180px" src="https://avatars.githubusercontent.com/u/58918144?s=200&v=4"> | ||
|
||
# <!-- DO NOT EDIT README.md directly, instead edit docs/README.jl and generate the markdown--> | ||
|
||
# # Probabilistic<wbr>Circuits<wbr>.jl | ||
|
||
# [![Unit Tests](https://github.com/Juice-jl/ProbabilisticCircuits.jl/workflows/Unit%20Tests/badge.svg)](https://github.com/Juice-jl/ProbabilisticCircuits.jl/actions?query=workflow%3A%22Unit+Tests%22+branch%3Amaster) [![codecov](https://codecov.io/gh/Juice-jl/ProbabilisticCircuits.jl/branch/master/graph/badge.svg)](https://codecov.io/gh/Juice-jl/ProbabilisticCircuits.jl) [![](https://img.shields.io/badge/docs-stable-green.svg)](https://juice-jl.github.io/ProbabilisticCircuits.jl/stable) [![](https://img.shields.io/badge/docs-dev-blue.svg)](https://juice-jl.github.io/ProbabilisticCircuits.jl/dev) | ||
|
||
# This package provides functionalities for learning/constructing probabilistic circuits and using them to compute various probabilistic queries. It is part of the [Juice package](https://github.com/Juice-jl) (Julia Circuit Empanada). | ||
|
||
# ## Testing | ||
|
||
# To make sure everything is working correctly, you can run our test suite as follows. The first time you run the tests will trigger a few slow downloads of various test resources. | ||
|
||
# ```bash | ||
# julia --color=yes -e 'using Pkg; Pkg.test("ProbabilisticCircuits")' | ||
# ``` |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"><head><meta charset="UTF-8"/><meta name="viewport" content="width=device-width, initial-scale=1.0"/><title>Input Distributions · ProbabilisticCircuits.jl</title><script>(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ | ||
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), | ||
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) | ||
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga'); | ||
|
||
ga('create', 'UA-136089579-2', 'auto'); | ||
ga('send', 'pageview', {'page': location.pathname + location.search + location.hash}); | ||
</script><link rel="canonical" href="https://juice-jl.github.io/ProbabilisticCircuits.jl/stable/api/input_dists/"/><link href="https://fonts.googleapis.com/css?family=Lato|Roboto+Mono" rel="stylesheet" type="text/css"/><link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.11.2/css/fontawesome.min.css" rel="stylesheet" type="text/css"/><link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.11.2/css/solid.min.css" rel="stylesheet" type="text/css"/><link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.11.2/css/brands.min.css" rel="stylesheet" type="text/css"/><link href="https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.11.1/katex.min.css" rel="stylesheet" type="text/css"/><script>documenterBaseURL="../.."</script><script src="https://cdnjs.cloudflare.com/ajax/libs/require.js/2.3.6/require.min.js" data-main="../../assets/documenter.js"></script><script src="../../siteinfo.js"></script><script src="../../../versions.js"></script><link class="docs-theme-link" rel="stylesheet" type="text/css" href="../../assets/themes/documenter-dark.css" data-theme-name="documenter-dark"/><link class="docs-theme-link" rel="stylesheet" type="text/css" href="../../assets/themes/documenter-light.css" data-theme-name="documenter-light" data-theme-primary/><script src="../../assets/themeswap.js"></script><link href="../../assets/favicon.ico" rel="icon" type="image/x-icon"/></head><body><div id="documenter"><nav class="docs-sidebar"><a class="docs-logo" href="../../"><img src="../../assets/logo.png" alt="ProbabilisticCircuits.jl logo"/></a><div class="docs-package-name"><span class="docs-autofit">ProbabilisticCircuits.jl</span></div><form class="docs-search" action="../../search/"><input class="docs-search-query" id="documenter-search-query" name="q" type="text" placeholder="Search docs"/></form><ul class="docs-menu"><li><a class="tocitem" href="../../">Home</a></li><li><input class="collapse-toggle" id="menuitem-2" type="checkbox"/><label class="tocitem" for="menuitem-2"><span class="docs-label">Manual</span><i class="docs-chevron"></i></label><ul class="collapsed"><li><a class="tocitem" href="../../manual/demo/">Quick Demo</a></li><li><a class="tocitem" href="../../manual/queries/">Queries</a></li><li><a class="tocitem" href="../../manual/learning/">Learning</a></li><li><a class="tocitem" href="../../manual/gpu/">GPU Support</a></li></ul></li><li><input class="collapse-toggle" id="menuitem-3" type="checkbox" checked/><label class="tocitem" for="menuitem-3"><span class="docs-label">API</span><i class="docs-chevron"></i></label><ul class="collapsed"><li><a class="tocitem" href="../common/">Common APIs</a></li><li class="is-active"><a class="tocitem" href>Input Distributions</a></li><li><a class="tocitem" href="../probabilistic_circuits/">Probabilistic Circuits</a></li><li><a class="tocitem" href="../types/">Types </a></li></ul></li><li><a class="tocitem" href="../../installation/">Installation</a></li></ul><div class="docs-version-selector field has-addons"><div class="control"><span class="docs-label button is-static is-size-7">Version</span></div><div class="docs-selector control is-expanded"><div class="select is-fullwidth is-size-7"><select id="documenter-version-selector"></select></div></div></div></nav><div class="docs-main"><header class="docs-navbar"><nav class="breadcrumb"><ul class="is-hidden-mobile"><li><a class="is-disabled">API</a></li><li class="is-active"><a href>Input Distributions</a></li></ul><ul class="is-hidden-tablet"><li class="is-active"><a href>Input Distributions</a></li></ul></nav><div class="docs-right"><a class="docs-edit-link" href="https://github.com/Juice-jl/ProbabilisticCircuits.jl/blob/master/docs/src/api/input_dists.md" title="Edit on GitHub"><span class="docs-icon fab"></span><span class="docs-label is-hidden-touch">Edit on GitHub</span></a><a class="docs-settings-button fas fa-cog" id="documenter-settings-button" href="#" title="Settings"></a><a class="docs-sidebar-button fa fa-bars is-hidden-desktop" id="documenter-sidebar-button" href="#"></a></div></header><article class="content" id="documenter-page"><h1 id="new-input-dist"><a class="docs-heading-anchor" href="#new-input-dist">Input Distributions</a><a id="new-input-dist-1"></a><a class="docs-heading-anchor-permalink" href="#new-input-dist" title="Permalink"></a></h1><p>Currently we support <code>Indicator{T}</code>, <code>Categorical</code>, <code>Bernoulli</code> (special case of Categorical) distributions in the InputNodes.</p><h4 id="Support-new-InputDist"><a class="docs-heading-anchor" href="#Support-new-InputDist">Support new InputDist</a><a id="Support-new-InputDist-1"></a><a class="docs-heading-anchor-permalink" href="#Support-new-InputDist" title="Permalink"></a></h4><p>To support new type of Input Distributions you need to implement the following functions:</p><pre><code class="language-julia">num_parameters | ||
params | ||
init_params | ||
loglikelihood</code></pre><h4 id="Support-movement-between-CPU/GPU-for-InputDist"><a class="docs-heading-anchor" href="#Support-movement-between-CPU/GPU-for-InputDist">Support movement between CPU/GPU for InputDist</a><a id="Support-movement-between-CPU/GPU-for-InputDist-1"></a><a class="docs-heading-anchor-permalink" href="#Support-movement-between-CPU/GPU-for-InputDist" title="Permalink"></a></h4><p>To support moving between CPU/GPU you need to implement the following:</p><pre><code class="language-julia">bits | ||
unbits</code></pre><h4 id="Learning-support-for-InputDist"><a class="docs-heading-anchor" href="#Learning-support-for-InputDist">Learning support for InputDist</a><a id="Learning-support-for-InputDist-1"></a><a class="docs-heading-anchor-permalink" href="#Learning-support-for-InputDist" title="Permalink"></a></h4><p>To support learning you need to implement the following:</p><pre><code class="language-julia">flow | ||
update_params | ||
clear_memory</code></pre><h4 id="Query-support-for-InputDist"><a class="docs-heading-anchor" href="#Query-support-for-InputDist">Query support for InputDist</a><a id="Query-support-for-InputDist-1"></a><a class="docs-heading-anchor-permalink" href="#Query-support-for-InputDist" title="Permalink"></a></h4><p>To support certain queries such as sampling and MAP you need to implement the following:</p><pre><code class="language-julia">sample_state | ||
init_heap_map_state! | ||
init_heap_map_loglikelihood! | ||
map_state | ||
map_loglikelihood</code></pre></article><nav class="docs-footer"><a class="docs-footer-prevpage" href="../common/">« Common APIs</a><a class="docs-footer-nextpage" href="../probabilistic_circuits/">Probabilistic Circuits »</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="documenter-light">documenter-light</option><option value="documenter-dark">documenter-dark</option></select></div></p><hr/><p>This document was generated with <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> on <span class="colophon-date" title="Saturday 29 April 2023 00:13">Saturday 29 April 2023</span>. Using Julia version 1.7.3.</p></section><footer class="modal-card-foot"></footer></div></div></div></body></html> |
Oops, something went wrong.