diff --git a/Project.toml b/Project.toml index 645546a..a9076ef 100644 --- a/Project.toml +++ b/Project.toml @@ -1,6 +1,6 @@ name = "BayesNets" uuid = "ba4760a4-c768-5bed-964b-cf806dc591cb" -version = "3.4.0" +version = "3.4.1" [deps] DataFrames = "a93c6f00-e57d-5684-b7b6-d8193f3e46c0" @@ -28,9 +28,9 @@ StatsBase = "2913bbd2-ae8a-5f71-8c99-4fb6c76f3a91" DataFrames = "0.22,1.0,1.1" DataStructures = "0.11,0.12,0.13,0.14,0.15,0.16,0.17,0.18" Discretizers = "3.0" -Distributions = "0.17,0.18,0.19,0.20,0.21,0.22,0.23,0.24, 0.25" +Distributions = "0.17,0.18,0.19,0.20,0.21,0.22,0.23,0.24,0.25" Documenter = "0.26, 0.27" -GraphPlot = "0.3,0.3.1,0.4,0.4.1" +GraphPlot = "0.5" IterTools = "1.3" Graphs = "1.0" LightXML = "0.8,0.9" @@ -39,7 +39,7 @@ Parameters = "0.10,0.11,0.12" RDatasets = "0.5,0.6,0.7" Reexport = "0.2, 1.0" Requires = "1.0.1" -SpecialFunctions = "0.8,0.10,1.0,1.1,1.2" +SpecialFunctions = "0.8,0.10,1.0,1.1,1.2,2" StatsBase = "0.25,0.26,0.27,0.28,0.29,0.30,0.31,0.32,0.33" julia = "1" diff --git a/docs/BayesNets.ipynb b/docs/BayesNets.ipynb index 756361b..c8d3b24 100644 --- a/docs/BayesNets.ipynb +++ b/docs/BayesNets.ipynb @@ -368,7 +368,7 @@ "source": [ "bn2 = BayesNet()\n", "push!(bn2, StaticCPD(:sighted, NamedCategorical([:bird, :plane, :superman], [0.40, 0.55, 0.05])))\n", - "push!(bn2, FunctionalCPD{Bernoulli}(:happy, [:sighted], a->Bernoulli(a == :superman ? 0.95 : 0.2)))" + "push!(bn2, FunctionalCPD{Bernoulli}(:happy, [:sighted], a->Bernoulli(a[:sighted] == :superman ? 0.95 : 0.2)))" ] }, {