Skip to content

Commit 59930d8

Browse files
committed
Minor docstring and formatting improvements
1 parent edebfcc commit 59930d8

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

examples/asia/main.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ get_vars(tn)
7878
# Set an evidence: Assume that the "X-ray" result (variable 7) is positive.
7979
# Since setting an evidence may affect the contraction order of the tensor
8080
# network, recompute it.
81-
tn = TensorNetworkModel(instance, evidence=Dict(7=>0))
81+
tn = TensorNetworkModel(instance, evidence = Dict(7 => 0))
8282

8383
# ---
8484

src/Core.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,10 @@ $(TYPEDEF)
4747
Probabilistic modeling with a tensor network.
4848
4949
### Fields
50-
* `vars` is the degree of freedoms in the tensor network.
50+
* `vars` are the degrees of freedom in the tensor network.
5151
* `code` is the tensor network contraction pattern.
52-
* `tensors` is the tensors fed into the tensor network.
53-
* `evidence` is a dictionary to specifiy degree of freedoms fixed to certain values.
52+
* `tensors` are the tensors fed into the tensor network.
53+
* `evidence` is a dictionary used to specify degrees of freedom that are fixed to certain values.
5454
"""
5555
struct TensorNetworkModel{LT, ET, MT <: AbstractArray}
5656
vars::Vector{LT}

src/mmap.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ end
5858
"""
5959
$(TYPEDSIGNATURES)
6060
"""
61-
function MMAPModel(instance::UAIInstance; openvars = (), optimizer = GreedyMethod(), queryvars, evidence=Dict{Int,Int}(), simplifier = nothing)::MMAPModel
61+
function MMAPModel(instance::UAIInstance; openvars = (), optimizer = GreedyMethod(), queryvars, evidence = Dict{Int, Int}(), simplifier = nothing)::MMAPModel
6262
return MMAPModel(
6363
1:(instance.nvars), instance.cards, instance.factors; queryvars, evidence, optimizer, simplifier, openvars
6464
)

0 commit comments

Comments
 (0)