Search found 60 matches

by piotr [BayesFusion]
Tue Feb 20, 2024 1:20 pm
Forum: SMILE
Topic: Problem installing pysmile: message error
Replies: 3
Views: 2476

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

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

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

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.instantia...
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: 1380

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 in...
by piotr [BayesFusion]
Wed Aug 16, 2023 1:11 pm
Forum: SMILE
Topic: Problem installing pysmile in a conda environment
Replies: 1
Views: 1420

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

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

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 returns ...
by piotr [BayesFusion]
Wed Jun 14, 2023 2:25 pm
Forum: SMILE
Topic: rSMILE Network$clearEvidence
Replies: 11
Views: 3950

Re: rSMILE Network$clearEvidence

Are you using rSMILE 2.0.10? There were changes between this version and previous ones that could affect the results when using various Virtual Evidence methods. Also - can I ask you to share the xdsl file by email or in a private message on the forum? I tried to replicate this behavior with another...
by piotr [BayesFusion]
Mon Jun 12, 2023 9:21 am
Forum: SMILE
Topic: rSMILE Network$clearEvidence
Replies: 11
Views: 3950

Re: rSMILE Network$clearEvidence

Note that:
  • evidence is not cleared after updateBeliefs
  • the node value has a 'valid' flag, which can be checked with isValueValid
  • setting or clearing the evidence invalidates the value of the node
  • node values are valid when updateBeliefs is successful
by piotr [BayesFusion]
Fri Jun 09, 2023 5:13 pm
Forum: SMILE
Topic: rSMILE Network$clearEvidence
Replies: 11
Views: 3950

Re: rSMILE Network$clearEvidence

Could you please share the code that doesn't work? If you don't want to share it on the forum, you can email me at piotr@bayesfusion.com Code below works fine with rSMILE 2.0.10 net <- Network() handle <- net$addNode(net$NodeType$CPT) net$setNodeDefinition(handle, c(0.2, 0.8)) net$updateBeliefs() v ...
by piotr [BayesFusion]
Fri Jun 09, 2023 10:18 am
Forum: SMILE
Topic: printNodeInfo rSMILE on hybrid BBNs?
Replies: 1
Views: 1453

Re: printNodeInfo rSMILE on hybrid BBNs?

You cannot use the printNodeInfo function from Tutorial 3 to print non-CPT node values without any modification.
See Tutorial 7 (Continuous model) and Tutorial 8 (Hybrid model). There are examples of how to create, modify and read values from Equation nodes.
by piotr [BayesFusion]
Fri Jun 09, 2023 8:09 am
Forum: SMILE
Topic: rSMILE Network$clearEvidence
Replies: 11
Views: 3950

Re: rSMILE Network$clearEvidence

I guess using net$getNodeValue is not the best course of action, as there is no value set after I clear the evidence, right?
Yes, you have to call net$updateBeliefs before getting node values.
by piotr [BayesFusion]
Wed Jun 07, 2023 7:36 am
Forum: SMILE
Topic: rSMILE Network$clearEvidence
Replies: 11
Views: 3950

Re: rSMILE Network$clearEvidence

ClearEvidence function should work on chance nodes. Can you share the code you think is not working?
by piotr [BayesFusion]
Mon Feb 27, 2023 9:25 am
Forum: GeNIe
Topic: BayesBox and BayesMobile released
Replies: 6
Views: 23062

Re: BayesBox and BayesMobile released

At this moment BayesMobile is not able to change the definition of the network, which includes observations, strengths and diagnostic faults.
You can modify your network in GeNIe or with SMILE and then load it to BayesMobile.