@@ -8,34 +8,29 @@ mutable struct VariableNodeData
8
8
dimIDs:: Array{Int,1} # Likely deprecate
9
9
dims:: Int
10
10
eliminated:: Bool
11
- BayesNetVertID:: Union{Nothing, Symbol} # TODO Drop union type from here
11
+ BayesNetVertID:: Symbol # Union{Nothing, }
12
12
separator:: Array{Symbol,1}
13
- groundtruth:: Union {Nothing, Dict{ Tuple{Symbol, Vector{Float64}} } } # not packed yet
14
13
softtype
15
14
initialized:: Bool
16
15
partialinit:: Bool
17
16
ismargin:: Bool
18
17
dontmargin:: Bool
19
18
VariableNodeData () = new ()
20
- # function VariableNodeData(x1,x2,x3,x4,x5,x6,x7,x8,x9)
21
- # @warn "Deprecated use of VariableNodeData(11 param), use 13 parameters instead"
22
- # new(x1,x2,x3,x4,x5,x6,x7,x8,x9, nothing, true, false, false) # TODO ensure this is initialized true is working for most cases
23
- # end
24
19
VariableNodeData (x1:: Array{Float64,2} ,
25
20
x2:: Array{Float64,2} ,
26
21
x3:: Vector{Symbol} ,
27
22
x4:: Vector{Int} ,
28
23
x5:: Int ,
29
24
x6:: Bool ,
30
- x7:: Union{Nothing, Symbol} ,
25
+ x7:: Symbol ,
31
26
x8:: Vector{Symbol} ,
32
- x9:: Union {Nothing, Dict{ Tuple{Symbol, Vector{Float64}} } },
27
+ # x9::Dict{ Tuple{Symbol, Vector{Float64}} }, # Union{Nothing, },
33
28
x10,
34
29
x11:: Bool ,
35
30
x12:: Bool ,
36
31
x13:: Bool ,
37
32
x14:: Bool ) =
38
- new (x1,x2,x3,x4,x5,x6,x7,x8,x9, x10,x11,x12,x13,x14)
33
+ new (x1,x2,x3,x4,x5,x6,x7,x8,x10,x11,x12,x13,x14)
39
34
end
40
35
41
36
"""
@@ -46,34 +41,33 @@ mutable struct PackedVariableNodeData
46
41
dimval:: Int
47
42
vecbw:: Array{Float64,1}
48
43
dimbw:: Int
49
- BayesNetOutVertIDs:: Array{Int ,1}
44
+ BayesNetOutVertIDs:: Array{Symbol ,1} # Int
50
45
dimIDs:: Array{Int,1}
51
46
dims:: Int
52
47
eliminated:: Bool
53
- BayesNetVertID:: Int
54
- separator:: Array{Int,1}
55
- # groundtruth::NothingUnion{ Dict{ Tuple{Symbol, Vector{Float64}} } }
48
+ BayesNetVertID:: Symbol # Int
49
+ separator:: Array{Symbol,1} # Int
56
50
softtype:: String
57
51
initialized:: Bool
58
52
partialinit:: Bool
59
53
ismargin:: Bool
60
54
dontmargin:: Bool
61
55
PackedVariableNodeData () = new ()
62
- PackedVariableNodeData (x5:: Vector{Float64} ,
63
- x6:: Int ,
64
- x7:: Vector{Float64} ,
65
- x8:: Int ,
66
- x9:: Vector{Int} ,
67
- x10:: Vector{Int} ,
68
- x11:: Int ,
56
+ PackedVariableNodeData (x1:: Vector{Float64} ,
57
+ x2:: Int ,
58
+ x3:: Vector{Float64} ,
59
+ x4:: Int ,
60
+ x5:: Vector{Symbol} , # Int
61
+ x6:: Vector{Int} ,
62
+ x7:: Int ,
63
+ x8:: Bool ,
64
+ x9:: Symbol , # Int
65
+ x10:: Vector{Symbol} , # Int
66
+ x11:: String ,
69
67
x12:: Bool ,
70
- x13:: Int ,
71
- x14:: Vector{Int} ,
72
- x15:: String ,
73
- x16:: Bool ,
74
- x17:: Bool ,
75
- x18:: Bool ,
76
- x19:: Bool ) = new (x5,x6,x7,x8,x9,x10,x11,x12,x13,x14,x15,x16,x17,x18,x19)
68
+ x13:: Bool ,
69
+ x14:: Bool ,
70
+ x15:: Bool ) = new (x1,x2,x3,x4,x5,x6,x7,x8,x9,x10,x11,x12,x13,x14,x15)
77
71
end
78
72
79
73
struct VariableEstimate
0 commit comments