I have a problem with using logical operators in Node Properties -> Definition. I have two nodes, which generates numbers from normal distribution. Then i have a node, which has to choose, which of these generated numbers are larger. I am using logical operator Max. But it doesn't work. When i directly say, that nodes are concrete numbers, it works well.
Can you help me, please?
Thank you so much.
MAX doesn't work
-
- Site Admin
- Posts: 430
- Joined: Tue Dec 11, 2007 4:24 pm
Re: MAX doesn't work
I'm not sure why you are saying that MAX does not work. I have just created a network as you described and tested it. I have run the standard number of samples and the child node (with the MAX function) seems to generate a correct distribution. I have changed the number of samples to 1 and the results seems to be correct as well (i.e., the child node picks correctly the larger of the two numbers. I may be misunderstanding your problem. Perhaps you can attach the network that you created?
Marek
Marek
-
- Posts: 3
- Joined: Tue Nov 15, 2016 10:03 am
Re: MAX doesn't work
I've attached the network now. The node doesn't working is C23. But maybe I have described the problem badly. Because there are two other nodes. I want to get the MAX value from C2 and C3.
Thank you so much
Thank you so much
- Attachments
-
- example.xdsl
- (2.76 KiB) Downloaded 441 times
-
- Site Admin
- Posts: 430
- Joined: Tue Dec 11, 2007 4:24 pm
Re: MAX doesn't work
I have examined your model and I believe that the function is working fine. What it does is the following: For every sample generated for the nodes C2 and C3, it picks the higher of the two values as the sample for C23. What you see with the default number of samples (1000) is the distribution of samples at each of the nodes. To see that MAX is doing its job, please change the number of samples to 1 (Network Properties/Sampling) -- you will see this working for one sample. If you want to see it for each of the 1000 samples, you can always look at all the samples in the Value Tab of the nodes' properties. When you put the samples next to each other, you will see that the MAX function does precisely what I have described above :-).
I hope this helps.
Marek
I hope this helps.
Marek
-
- Posts: 3
- Joined: Tue Nov 15, 2016 10:03 am
Re: MAX doesn't work
I didn't know this.
Marek, thank you so much :-))).
Marek, thank you so much :-))).
Re: MAX doesn't work
This discussion helped me a lot too! Is there any way we can compare the control values using MAX?
-
- Site Admin
- Posts: 430
- Joined: Tue Dec 11, 2007 4:24 pm
Re: MAX doesn't work
Would you please clarify what you mean by "control values"?
Re: MAX doesn't work
The node values that appear when the network is updated.marek wrote:Would you please clarify what you mean by "control values"?
-
- Site Admin
- Posts: 430
- Joined: Tue Dec 11, 2007 4:24 pm
Re: MAX doesn't work
I see. They are typically called "posterior probabilities." They are posterior probability distributions over the values of the of the node. Definition of a node refers to values of the parents and not probability distribution over these values, so the answer is I'm afraid negative -- there is no way to refer to elements of the distributions.
I hope this helps.
Marek
I hope this helps.
Marek
Re: MAX doesn't work
Thank you very much for your answer Marek. I will look into other ways to compare the posterior probabilities, such as exporting to Excel.marek wrote:I see. They are typically called "posterior probabilities." They are posterior probability distributions over the values of the of the node. Definition of a node refers to values of the parents and not probability distribution over these values, so the answer is I'm afraid negative -- there is no way to refer to elements of the distributions.
I hope this helps.
Marek