Closed AlexandrParkhomenko closed 3 years ago
I think you may have intended this issue for this repo: https://github.com/algorithmsbooks/decisionmaking
You'll need the code in Appendix G.5:
Base.Dict{Symbol,V}(a::NamedTuple) where V =
Dict{Symbol,V}(n=>v for (n,v) in zip(keys(a), values(a)))
Base.convert(::Type{Dict{Symbol,V}}, a::NamedTuple) where V =
Dict{Symbol,V}(a)
Base.isequal(a::Dict{Symbol,<:Any}, nt::NamedTuple) =
length(a) == length(nt) &&
all(a[n] == v for (n,v) in zip(keys(nt), values(nt)))
Thanks a lot. I am very proud that I live in the same era with great people.
Thanks for the book. I have a simple entry-level question. How to assemble a FactorTable correctly?
julia-1.5.4:
Code on page 26 "chapter 2 representation" throw exception.