How can I take a log of the probability values in the Conditional probability table? #4
-
I tried to use the numpy package, but it throws out an error because the data type of the cpt is potential. I tried to convert the table to the array, but it also doesn't seem to work either. Any help will be appreciated! |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
Hello , I do not understand your problem : ? |
Beta Was this translation helpful? Give feedback.
-
And finally : |
Beta Was this translation helpful? Give feedback.
-
Oh, I don't know that you can do p.log2(). Thanks!
…On Wed, Feb 1, 2023, 3:17 AM Pierre-Henri Wuillemin < ***@***.***> wrote:
Hello ,
I do not understand your problem :
[image: image]
<https://user-images.githubusercontent.com/5980636/215987929-06a2efb5-fcc2-4b2f-ac6e-0365cda08d74.png>
?
—
Reply to this email directly, view it on GitHub
<#4 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AF3Z3CXFYDUYLVQLBYXDEB3WVILYFANCNFSM6AAAAAAUNMP7WQ>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
https://pyagrum.readthedocs.io/en/1.5.2/potential.html#pyAgrum.Potential.log2 |
Beta Was this translation helpful? Give feedback.
Hello ,
I do not understand your problem :
?