InvalidArgument: [pyAgrum] Invalid argument: Potential to copy has not the same domainSize. #13
-
I am not sure why I am getting this error as the number of states is the same for the bn object and the data. Below is how I got the error.
|
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 2 replies
-
You created a BN where all variables are binary. I guess this is not the case in your CSV. |
Beta Was this translation helpful? Give feedback.
-
But the data is indeed binary, that's why I got so confused...I also
attached the data file on the thread.
…On Thu, Apr 13, 2023, 5:08 AM Pierre-Henri Wuillemin < ***@***.***> wrote:
You created a BN with all variables are binary. I guess this is not the
case in your CSV.
[image: image]
<https://user-images.githubusercontent.com/5980636/231711438-d25ed193-dd67-4eba-9316-bed00d282ea9.png>
—
Reply to this email directly, view it on GitHub
<#13 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AF3Z3CXGI4BJBEIYJRMBRR3XA67AZANCNFSM6AAAAAAW4XDRMI>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
PKA has only one value (always 0) ... Maybe we should warn in this case ... or automatically add a second value ... |
Beta Was this translation helpful? Give feedback.
-
I thought the fitparameter should just count the frequency based on the
given finite sample and look at the BN object for the exact domain size. In
this case, wouldn't it make sense to just return 0 for the entry in CPT of
PKA state 1?
Kenneth
…On Thu, Apr 13, 2023, 9:51 AM Pierre-Henri Wuillemin < ***@***.***> wrote:
[image: image]
<https://user-images.githubusercontent.com/5980636/231779233-5cce5fc9-ac53-4c84-b8a6-18f0089c4686.png>
PKA has only one value (always 0) ... Maybe we should warn in this case
... or automatically add a second value ...
—
Reply to this email directly, view it on GitHub
<#13 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AF3Z3CRG6Q65TJOZCAWNUXDXBAAENANCNFSM6AAAAAAW4XDRMI>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
you can even pass the same bn :