Search found 70 matches

by piotr [BayesFusion]
Wed Apr 15, 2026 12:16 pm
Forum: SMILE
Topic: How to create SMILE DataSet from a pandas dataframe?
Replies: 1
Views: 1145

Re: How to create SMILE DataSet from a pandas dataframe?

Thank you for reporting this issue.

The problem was caused by a naming conflict: "T" is a built-in pandas DataFrame property that returns the transpose of the DataFrame.

Workaround for now: rename any column called T to something else (e.g. C). Other pandas attribute names to avoid as column names ...
by piotr [BayesFusion]
Tue Jul 01, 2025 7:03 am
Forum: SMILE
Topic: Annotation in rSMILE
Replies: 5
Views: 448177

Re: Annotation in rSMILE

Could you share rest of that code and version of R and rSMILE? This method should work seamlessly.
by piotr [BayesFusion]
Mon Jun 30, 2025 8:12 am
Forum: SMILE
Topic: Annotation in rSMILE
Replies: 5
Views: 448177

Re: Annotation in rSMILE

rSMILE provides the setNodeDescription method. It allows you to associate any text with a selected node in the network.


net$setNodeDescription("NodeId", "This text will be associated with node NodeId.")


You can get value by calling:

desc <- net$getNodeDescription("NodeId")
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: 569744

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: 244046

Re: Arrow colour

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

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: 218062

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: 258981

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: 258981

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: 171564

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: 178353

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: 249074

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: 249074

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: 219574

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: 198785

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 ...