Skip to content

Commit 39daa91

Browse files
committed
changed title formatting and small fixes
1 parent 8364ad3 commit 39daa91

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

docs/src/concepts.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33

44
## Bayesian Networks
55

6-
A Bayesian Network (BN) represents a probability distribution over a set of variables, ``P(x_1, x_2, \ldots, x_n)``. Bayesian networks leverage variable relations in order to efficiently decompose the joint distribution into smaller conditional probability distributions.
6+
A Bayesian Network (BN) represents a probability distribution over a set of variables, ``P(x_1, x_2, \ldots, x_n)``.
7+
Bayesian networks leverage variable relations in order to efficiently decompose the joint distribution into smaller conditional probability distributions.
78

89
A BN is defined by a directed acyclic graph and a set of conditional probability distributions. Each node in the graph corresponds to a variable ``x_i`` and is associated with a conditional probability distribution ``P(x_i \mid \text{parents}(x_i))``.
910

docs/src/usage.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ gsampler = GibbsSampler(evidence, burn_in=500, thinning=1, initial_sample=initia
183183
rand(bn_gibbs, gsampler, 5)
184184
```
185185

186-
# Parameter Learning
186+
## Parameter Learning
187187

188188
BayesNets.jl supports parameter learning for an entire graph.
189189

@@ -345,7 +345,7 @@ table(bn, :b) # 3
345345
table(bn, :c, :a=>1) # 4
346346
```
347347

348-
# Reading from XDSL
348+
## Reading from XDSL
349349

350350
Discrete Bayesian Networks can be read from the .XDSL file format.
351351

@@ -358,9 +358,9 @@ TikzPictures.save(SVG("plot10"), plot) # hide
358358

359359
![](plot10.svg)
360360

361-
# Bayesian Score for a Network Structure
361+
## Bayesian Score for a Network Structure
362362

363-
The bayesian score for a discrete-valued BayesNet can can be calculated based only on the structure and data (the CPDs do not need to be defined beforehand). This is implemented with a method of `bayesian_score` that takes in a directed graph, the names of the nodes and data.
363+
The bayesian score for a discrete-valued BayesNet can can be calculated based only on the structure and data (the CPDs do not need to be defined beforehand). This is implemented with a method of ```bayesian_score``` that takes in a directed graph, the names of the nodes and data.
364364

365365
```@example bayesnet
366366
data = DataFrame(c=[1,1,1,1,2,2,2,2,3,3,3,3],

0 commit comments

Comments
 (0)