Search found 67 matches

by piotr [BayesFusion]
Thu Apr 10, 2025 2:01 pm
Forum: SMILE
Topic: Method for removing and getting controlled value in pySMILE
Replies: 2
Views: 212058

Re: Method for removing and getting controlled value in pySMILE

We have already implemented the appropriate methods to handle Controlled Value. If you give us the version of Python you are using, along with the OS (Windows/Linux/MacOS) and license type (Academic or Business) we will be able to share the binaries with you before the official distribution on our ...
by piotr [BayesFusion]
Thu Mar 27, 2025 9:34 am
Forum: GeNIe
Topic: Arrow colour
Replies: 4
Views: 33892

Re: Arrow colour

It is possible in Tools -> Options Menu.
options.png
options.png (30.39 KiB) Viewed 33086 times
Then, you have to uncheck "Dim unnecessary arcs" checkbox.
dim.png
dim.png (99.35 KiB) Viewed 33086 times
by piotr [BayesFusion]
Wed Mar 26, 2025 10:12 am
Forum: GeNIe
Topic: Arrow colour
Replies: 4
Views: 33892

Re: Arrow colour

The light grey colour of the arcs indicates that Node1 and Node2 do not affect Node3. When you change the definition of Node3, the colour of the arcs should be as you set in the properties.
by piotr [BayesFusion]
Tue Mar 18, 2025 8:59 am
Forum: SMILE
Topic: Defining distribution parameters externally then creating the BN
Replies: 1
Views: 54673

Re: Defining distribution parameters externally then creating the BN

At the moment there is no dedicated function to update part of the equation of the node definition. You can write a function in Python to which you pass the list of parameters you want to include in the CustomPDF function and the name of the node, and which will return its definition.


import ...
by piotr [BayesFusion]
Tue Aug 13, 2024 9:58 am
Forum: SMILE
Topic: PySmile: Compatibiltiy with Pylint?
Replies: 4
Views: 42492

Re: PySmile: Compatibiltiy with Pylint?

It turned out that the fault lies with PySMILE installed by pip. When installing wheel in the modules directory (site-packages), PySMILE leaves an unnecessary __init__.py file. It has the same modification date as pysmile.pyd on Windows and pysmile.so on Linux.

It is safe to remove it manually ...
by piotr [BayesFusion]
Thu Aug 01, 2024 2:43 pm
Forum: SMILE
Topic: PySmile: Compatibiltiy with Pylint?
Replies: 4
Views: 42492

Re: PySmile: Compatibiltiy with Pylint?

The problem found is not caused directly by Pylint - this one is compatible with the code in which there are PySMILE objects.
A series of errors - No module named '_pysmile' suggests that our library is imported as an alias - can you share the code and write more about the CI tools you use to ...
by piotr [BayesFusion]
Tue Apr 02, 2024 8:53 am
Forum: SMILE
Topic: rSMILE acces to Node States
Replies: 2
Views: 33126

Re: rSMILE acces to Node States

The methods you are looking for are:

Code: Select all

net$getOutcomeIds(nodeId)
net$getOutcomeId(nodeId, index)
How the definition and states are related is described in the SMILE and Wrappers documentation:
https://support.bayesfusion.com/docs/
by piotr [BayesFusion]
Tue Feb 20, 2024 1:20 pm
Forum: SMILE
Topic: Problem installing pysmile: message error
Replies: 3
Views: 36949

Re: Problem installing pysmile: message error

Can I ask you for the full command with which you are trying to install PySMILE? There is a PySMILE compatible with Python 3.9 under Windows in our repository.
by piotr [BayesFusion]
Thu Dec 21, 2023 1:00 pm
Forum: SMILE
Topic: Read File error for networks in Bayesfusion Repo
Replies: 6
Views: 50680

Re: Read File error for networks in Bayesfusion Repo

It looks like you are using Python version 3.7, which is no longer updated and does not get security patches - https://www.python.org/downloads/release/python-3717/

PySMILE version 2.X (which supports the latest changes) is available under Python 3.8 or higher.
by piotr [BayesFusion]
Tue Dec 12, 2023 9:57 am
Forum: SMILE
Topic: Read File error for networks in Bayesfusion Repo
Replies: 6
Views: 50680

Re: Read File error for networks in Bayesfusion Repo

Which version of PySMILE are you using? Hepar II from our repository has nodes with defined intervals - latest version of PySMILE is required.
by piotr [BayesFusion]
Tue Oct 24, 2023 10:56 am
Forum: SMILE
Topic: Enable diagnosis for nodes using pysmile wrapper
Replies: 5
Views: 59597

Re: Enable diagnosis for nodes using pysmile wrapper

When you operate on the DiagNetwork object, you should use the instantiate_observation method, instead of set_evidence. After creating a DiagNetwork object based on Network, add a loop similar to the one you pasted at the beginning of the code snippet (changing net.set_evidence to diag_net ...
by piotr [BayesFusion]
Thu Oct 19, 2023 2:03 pm
Forum: SMILE
Topic: Issues with PC, questions to continuous networks, and more
Replies: 3
Views: 46468

Re: Issues with PC, questions to continuous networks, and more

4. When trying to set discretisation intervals for continuous variables using the smile interface, I noticed that there is no way to set 'infinity' as an upper bound. The parameter requires a float value, whereas in Genie we can type inf/-inf. in the definition of a node.

In PySMILE, you can set ...
by piotr [BayesFusion]
Wed Aug 16, 2023 1:11 pm
Forum: SMILE
Topic: Problem installing pysmile in a conda environment
Replies: 1
Views: 33688

Re: Problem installing pysmile in a conda environment

Can you check the Python version in your Conda environment?

Code: Select all

python --version
PySMILE is not currently compatible with Python 3.11 - an update is on the way and will be available soon.
by piotr [BayesFusion]
Mon Aug 07, 2023 7:19 pm
Forum: SMILE
Topic: rSMILE ErrNo=-5
Replies: 1
Views: 32004

Re: rSMILE ErrNo=-5

Can I ask you for a piece of code that causes this error? If you don't want to share it publicly, please send a PM.
by piotr [BayesFusion]
Thu Jun 15, 2023 3:08 pm
Forum: SMILE
Topic: rSMILE Network$clearEvidence
Replies: 11
Views: 89509

Re: rSMILE Network$clearEvidence

I think you forgot the parentheses calling the clearAllEvidence function.

Change this code:
net$clearAllEvidence

to this code:
net$clearAllEvidence()

in your script. Clearing the evidence in the network that I got in PM works as intended - after calling clearAllEvidence, the contiguous node ...