-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Simple question on the tutorial - cpd #144
Comments
Hello Bernardo.
This is condensed in the formulation |
Many thanks, @tawheeler for the reply. Mathematically, all clear. But why don't I see that in this piece of code I wrote? bn2 = BayesNet() The println(cpd2(:sighted=>:superman )) tells me I have "Bernoulli{Float64}(p=0.2)". Why not In the for loop, I expected to see, well, lots of true, but that was not the case. Regards, |
Aha, the problem is with
I can update the example. |
Dear Tim, thanks for the reply. Yes, it is working now! My final goal is to integrate decision-making, a.k.a. optimization, within BN. Can you point me to any references that use your package? Regards, |
Great! Perhaps the best example of decision making using Bayesian networks that I am aware of is the ACAS-X system for aircraft collision avoidance, which was developed with the use of Bayesian networks by Prof. Mykel Kochenderfer. Performing the sort of decision-making behavior is central to our new book, available for free here. Bayesian networks can be used to represent transition distributions in MDPs. I do this under the hood for many of the examples in the chapter on imitation learning. Cheers, |
Hello Tim, all looking good, no further questions regarding this issue. Thanks again for your help! Those are great pointers for decision/optimization and BN. I will definitely take a look at the article, and I downloaded the book. I will check the imitation learning section, for sure. I will keep exploring the package and get back to you if I run into other issues. Best, |
Hello,
I have started using the package, and I could not understand the 3rd line of this sequence of commands:
bn2 = BayesNet()
push!(bn2, StaticCPD(:sighted, NamedCategorical([:bird, :plane, :superman], [0.40, 0.55, 0.05])))
push!(bn2, FunctionalCPD{Bernoulli}(:happy, [:sighted], a->Bernoulli(a == :superman ? 0.95 : 0.2)))
I understand a BN was created, and that the father is "sighted", which can assume values [:bird, :plane, :superman] with probabilities [0.40, 0.55, 0.05]. Then, a son was created, happy. I don't know what the rest of the code does
( this part: "a->Bernoulli(a == :superman ? 0.95 : 0.2))" )
Thanks in advance!
Bernardo
The text was updated successfully, but these errors were encountered: