Skip to content

Commit

Permalink
Minor typos and nicer example.
Browse files Browse the repository at this point in the history
  • Loading branch information
Feras A. Saad committed Feb 29, 2020
1 parent 9d41127 commit d02f8ab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ event = ((JohnCalls << {1}) & (MaryCalls << {1}) & (Alarm << {1})
print(model.prob(event))

# Ask a conditional query.
event = (JohnCalls << {1}) & (MaryCalls << {1})
event = (JohnCalls << {1}) | (MaryCalls << {1})
model_condition = model.condition(event)
print(model_condition.prob(Burglary << {1}))

Expand Down
2 changes: 1 addition & 1 deletion SEMANTICS
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ Modeling Language (Syntactic Domain)
= Nominal {sᵢ:pᵢ ∣ i=1, …, m} [NominalDist]
| Normal μ ν | … [ContinuousDist]
| Poisson λ | … [DiscreteDist]
| w₁*d₁ + w₂d₂ [MixtureDist]
| w₁*d₁ + w₂*d₂ [MixtureDist]

c ∈ Program
= x ~ d [Sample]
Expand Down

0 comments on commit d02f8ab

Please sign in to comment.