Hi,
"set explicit targets in the network if you're only interested in the subset of node probabilities"
print_posteriors() function is like below:
def print_posteriors(net, node_handle):
node_id = net.get_node_id(node_handle)
if net.is_evidence(node_handle):
print(f"{node_id} has evidence ...
Search found 18 matches
- Wed Jul 02, 2025 4:15 pm
- Forum: SMILE
- Topic: Network size limitation of SMILE package
- Replies: 3
- Views: 66649
- Tue Jul 01, 2025 8:01 pm
- Forum: SMILE
- Topic: Network size limitation of SMILE package
- Replies: 3
- Views: 66649
Network size limitation of SMILE package
Dear Community,
I am following the PDF version of the tutorial for SMILE wrappers, specifically for python language.
I am trying SMILE package on our real-world dataset.
Our dataset has 1654 nodes, 2965 edges.
Among the 1654 nodes, there are 605 continuous variables and 1049 categorical ...
I am following the PDF version of the tutorial for SMILE wrappers, specifically for python language.
I am trying SMILE package on our real-world dataset.
Our dataset has 1654 nodes, 2965 edges.
Among the 1654 nodes, there are 605 continuous variables and 1049 categorical ...
- Tue Jul 01, 2025 4:36 pm
- Forum: SMILE
- Topic: Does SMILE support hybrid/mixed network (with both discrete and continuous variables) parameter learning/estimation?
- Replies: 3
- Views: 18761
Re: Does SMILE support hybrid/mixed network (with both discrete and continuous variables) parameter learning/estimation?
Hi, I have a following up question:
Does SMILE support inference on hybrid network?
Suppose we learn the parameter in some other way. Can we encode the learned parameter in the hybrid network and then we do inference or manipulation of variables on it?
For instance, there is a case a discrete ...
Does SMILE support inference on hybrid network?
Suppose we learn the parameter in some other way. Can we encode the learned parameter in the hybrid network and then we do inference or manipulation of variables on it?
For instance, there is a case a discrete ...
- Mon Jun 30, 2025 7:42 pm
- Forum: SMILE
- Topic: How to do manipulation of a variable in the network
- Replies: 3
- Views: 18834
Re: How to do manipulation of a variable in the network
Thanks, I have read "GeNIe manual, chapter 'Controlling values'". it is clear to me now.
Can I ask a further question?
I search both GeNIe manual and Wrapper manual.
I did not find the document to introduce how to use the function `Network.set_controlled_value`.
Could you please instruct me ...
Can I ask a further question?
I search both GeNIe manual and Wrapper manual.
I did not find the document to introduce how to use the function `Network.set_controlled_value`.
Could you please instruct me ...
- Thu Jun 26, 2025 8:58 pm
- Forum: SMILE
- Topic: How to do manipulation of a variable in the network
- Replies: 3
- Views: 18834
How to do manipulation of a variable in the network
We want to use SMILE to do manipulation for a variable, and see how the manipulation can affect the target variable.
Here is a brief explanation of the difference between "observing" and "manipulation/intervening".
Given a graph B -> A, A -> T, B -> T.
In Tutorial 2, if we use function `change ...
Here is a brief explanation of the difference between "observing" and "manipulation/intervening".
Given a graph B -> A, A -> T, B -> T.
In Tutorial 2, if we use function `change ...
- Tue Jun 24, 2025 9:31 pm
- Forum: SMILE
- Topic: is there a way to output goodness-of-fit metric such as BIC, log likelihood score?
- Replies: 3
- Views: 25244
is there a way to output goodness-of-fit metric such as BIC, log likelihood score?
Dear Support team,
I am following the PDF version of the tutorial for SMILE wrappers, specifically for the Python language.
Is there a way to output goodness-of-fit metric such as BIC, log likelihood score, given a predefined network structure and a dataset?
BIC score (Bayesian Information ...
I am following the PDF version of the tutorial for SMILE wrappers, specifically for the Python language.
Is there a way to output goodness-of-fit metric such as BIC, log likelihood score, given a predefined network structure and a dataset?
BIC score (Bayesian Information ...
- Thu Jun 19, 2025 7:08 pm
- Forum: SMILE
- Topic: Does SMILE support hybrid/mixed network (with both discrete and continuous variables) parameter learning/estimation?
- Replies: 3
- Views: 18761
Does SMILE support hybrid/mixed network (with both discrete and continuous variables) parameter learning/estimation?
Dear Support team,
I am following the PDF version of the tutorial for SMILE wrappers, specifically for the Python language.
I tried to simulate a hybrid network (with both discrete and continuous variables).
I first predefined a network structure and then simulated a dataset. I tried to use ...
I am following the PDF version of the tutorial for SMILE wrappers, specifically for the Python language.
I tried to simulate a hybrid network (with both discrete and continuous variables).
I first predefined a network structure and then simulated a dataset. I tried to use ...
- Tue Jun 17, 2025 10:21 pm
- Forum: SMILE
- Topic: Help needed for my example of simulating hybrid model (with categorical and continuous model) and parameter learning
- Replies: 0
- Views: 1322
Help needed for my example of simulating hybrid model (with categorical and continuous model) and parameter learning
Dear Community,
I am following the PDF version of the tutorial for SMILE wrappers, specifically for the Python language.
To simulate a dataset from a hybrid Bayesian network with both categorical and continuous variables, we need to:
Define the conditional probability tables (CPTs) for ...
I am following the PDF version of the tutorial for SMILE wrappers, specifically for the Python language.
To simulate a dataset from a hybrid Bayesian network with both categorical and continuous variables, we need to:
Define the conditional probability tables (CPTs) for ...
- Tue Jun 17, 2025 7:35 pm
- Forum: SMILE
- Topic: error message regarding /lib64/libm.so.6
- Replies: 5
- Views: 23475
Re: error message regarding /lib64/libm.so.6
Thank you shooltz[BayesFusion].
I have installed and tested, and it looks good.
Just to confirm, after I installed the whl file using the command `pip install [whl file]`, the .so file automatically appears in my Python virtual environment package folder.
So, I do not need to do anything with ...
I have installed and tested, and it looks good.
Just to confirm, after I installed the whl file using the command `pip install [whl file]`, the .so file automatically appears in my Python virtual environment package folder.
So, I do not need to do anything with ...
- Mon Jun 16, 2025 8:34 pm
- Forum: SMILE
- Topic: error message regarding /lib64/libm.so.6
- Replies: 5
- Views: 23475
Re: error message regarding /lib64/libm.so.6
Hi, here is the Linux information for the cluster, using command cat /etc/os-release :
NAME="Rocky Linux"
VERSION="8.10 (Green Obsidian)"
ID="rocky"
ID_LIKE="rhel centos fedora"
VERSION_ID="8.10"
PLATFORM_ID="platform:el8"
PRETTY_NAME="Rocky Linux 8.10 (Green Obsidian)"
ANSI_COLOR="0;32"
LOGO ...
NAME="Rocky Linux"
VERSION="8.10 (Green Obsidian)"
ID="rocky"
ID_LIKE="rhel centos fedora"
VERSION_ID="8.10"
PLATFORM_ID="platform:el8"
PRETTY_NAME="Rocky Linux 8.10 (Green Obsidian)"
ANSI_COLOR="0;32"
LOGO ...
- Fri Jun 13, 2025 9:23 pm
- Forum: SMILE
- Topic: error message regarding /lib64/libm.so.6
- Replies: 5
- Views: 23475
error message regarding /lib64/libm.so.6
I am using the 2.4.0 version of pysmile.
Name: pysmile Version: 2.4.0
Summary: BayesFusion's SMILE wrapper
Home-page: [https://bayesfusion.com/](https://bayesfusion.com/)
Author: BayesFusion LLC Author-email: support@bayesfusion.com
In my local machine, my Linux is cutting edge, and there ...
Name: pysmile Version: 2.4.0
Summary: BayesFusion's SMILE wrapper
Home-page: [https://bayesfusion.com/](https://bayesfusion.com/)
Author: BayesFusion LLC Author-email: support@bayesfusion.com
In my local machine, my Linux is cutting edge, and there ...
- Fri Jun 13, 2025 8:55 pm
- Forum: SMILE
- Topic: Help needed for my example of simulate continuous model and parameter learning. Parameter learning wrong.
- Replies: 3
- Views: 2494
Re: Help needed for my example of simulate continuous model and parameter learning. Parameter learning wrong.
cont_net = pysmile.Network()
# Here the node is not added in order ABCD, but CABD
C = create_cont_node(cont_net, "C", "C", 10, 40)
A = create_cont_node(cont_net, "A", "A", 10, 20)
B = create_cont_node(cont_net, "B", "B", 10, 30)
D = create_cont_node(cont_net, "D", "D", 10, 50)
cont_net.add_arc(C ...
- Fri Jun 13, 2025 8:41 pm
- Forum: SMILE
- Topic: My example of simulating categorical model and parameter learning
- Replies: 3
- Views: 14069
Re: My example of simulating categorical model and parameter learning
Let us discuss this section of the code below:
em = pysmile.learning.EM()
try:
matching = cate_ds.match_network(cate_net)
except pysmile.SMILEException:
print("Can't automatically match network with dataset")
#endtry
em.set_uniformize_parameters(False)
em.set_randomize_parameters(False)
em ...
em = pysmile.learning.EM()
try:
matching = cate_ds.match_network(cate_net)
except pysmile.SMILEException:
print("Can't automatically match network with dataset")
#endtry
em.set_uniformize_parameters(False)
em.set_randomize_parameters(False)
em ...
- Fri Jun 13, 2025 8:24 pm
- Forum: SMILE
- Topic: how default probability number in the network with only categorical variable is set?
- Replies: 3
- Views: 13768
Re: how default probability number in the network with only categorical variable is set?
Currently I am just learning how to use the package. My final goal is to use it for real-world project.
In a real-world project, we want to first use our own causal discovery algorithm to generate the skeleton of the network (like the PC algorithm outputs the skeleton of the network), then we want ...
In a real-world project, we want to first use our own causal discovery algorithm to generate the skeleton of the network (like the PC algorithm outputs the skeleton of the network), then we want ...
- Thu Jun 12, 2025 8:28 pm
- Forum: SMILE
- Topic: Help needed for my example of simulate continuous model and parameter learning. Parameter learning wrong.
- Replies: 3
- Views: 2494
Help needed for my example of simulate continuous model and parameter learning. Parameter learning wrong.
Dear Community,
I am following the PDF version of the tutorial for SMILE wrappers, specifically for the Python language.
I tried to simulate a network with continuous variables only.
1. In this sample code, I first simulate a dataset based on a predefined formula as follows:
C = Normal(0, 1 ...
I am following the PDF version of the tutorial for SMILE wrappers, specifically for the Python language.
I tried to simulate a network with continuous variables only.
1. In this sample code, I first simulate a dataset based on a predefined formula as follows:
C = Normal(0, 1 ...