Parameter learning for BN #19
Replies: 4 comments 4 replies
-
Beta Was this translation helpful? Give feedback.
1 reply
-
What is the difference between the functions I posted and the
pyAgrum.BNLearner.fitParameters?
…On Thu, Aug 17, 2023, 6:22 AM Pierre-Henri Wuillemin < ***@***.***> wrote:
Note that it is much more convenient to use
pyAgrum.BNLearner.fitParameters :-)
[image: image]
<https://user-images.githubusercontent.com/5980636/261279002-223c3c88-dce2-4cb9-9c8a-f458e126eb18.png>
But you stil have the problem with a too small sample size
[image: image]
<https://user-images.githubusercontent.com/5980636/261279159-3cd28d2a-d196-43f9-ab21-5549eba3f581.png>
Except if you use use a prior or a smoothing as proposed in the error
above :
[image: image]
<https://user-images.githubusercontent.com/5980636/261279531-36976856-706c-4d54-b50d-ff7f03a20433.png>
—
Reply to this email directly, view it on GitHub
<#19 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AF3Z3CS5KPBBIHXPESCDMSDXVXWFDANCNFSM6AAAAAA3TTQZCY>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
1 reply
-
So, if I don’t use prior smoothing, the resulting potential will be the same?
… On Aug 17, 2023, at 9:43 AM, Pierre-Henri Wuillemin ***@***.***> wrote:
fitParameters does not use panda. This notebook is just an example to understand how parameter learning works but it is not a correct way to do it.
fitParameters (or the less convenient learnParameters) can include prior or smoothing, is multithreaded and written in C++ to be as fast as possible.
—
Reply to this email directly, view it on GitHub <#19 (reply in thread)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AF3Z3CUFRCCJXB2A4XIXAQTXVYNZBANCNFSM6AAAAAA3TTQZCY>.
You are receiving this because you authored the thread.
|
Beta Was this translation helpful? Give feedback.
1 reply
-
But I guess using fit.parameter will automatically fill in 0 for the missing events?
… On Aug 17, 2023, at 10:02 AM, Pierre-Henri Wuillemin ***@***.***> wrote:
It should :-)
—
Reply to this email directly, view it on GitHub <#19 (reply in thread)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AF3Z3CTMARZTE6JPHHF5UXTXVYP7JANCNFSM6AAAAAA3TTQZCY>.
You are receiving this because you authored the thread.
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I think the functions
computeCPTfromDF
found on (https://pyagrum.readthedocs.io/en/1.9.0/notebooks/17-Examples_parametersLearningWithPandas.html) will throw an error based on the following examplesExamples
Beta Was this translation helpful? Give feedback.
All reactions