I got an error when creating a network using the code below:
from functools import partial
import pysmile
import pysmile_license
def create_cpt_node(net, id, name, outcomes, x_pos, y_pos):
handle = net.add_node(pysmile.NodeType.CPT, id)
net.set_node_name(handle, name)
net.set_node ...
Search found 22 matches
- Thu Apr 30, 2026 5:51 pm
- Forum: SMILE
- Topic: SMILE cannot create a network, error -42
- Replies: 1
- Views: 12
- Tue Apr 14, 2026 10:02 pm
- Forum: SMILE
- Topic: How to create SMILE DataSet from a pandas dataframe?
- Replies: 1
- Views: 1145
How to create SMILE DataSet from a pandas dataframe?
I want to use this method
read_pandas_dataframe(self: pysmile.learning.DataSet, *args, **kwargs) -> None
to create DataSet object directly from a pandas dataframe.
Could you please tell me how can I fix this issue? Thanks.
The sample code is below:
# %%
import pandas as pd
import pysmile
import ...
read_pandas_dataframe(self: pysmile.learning.DataSet, *args, **kwargs) -> None
to create DataSet object directly from a pandas dataframe.
Could you please tell me how can I fix this issue? Thanks.
The sample code is below:
# %%
import pandas as pd
import pysmile
import ...
- Tue Aug 12, 2025 6:47 pm
- Forum: SMILE
- Topic: Is there confidence interval for the parameter estimation?
- Replies: 3
- Views: 465819
Re: Is there confidence interval for the parameter estimation?
Thank you for your information for setting seed using network properties.
Before, I was setting seed using the following code, which does not work.
```
random.seed(seed)
np.random.seed(seed)
```
I tried just now using method `pysmile.Network.set_rand_seed`
```
model.set_rand_seed(seed)
```
I ...
Before, I was setting seed using the following code, which does not work.
```
random.seed(seed)
np.random.seed(seed)
```
I tried just now using method `pysmile.Network.set_rand_seed`
```
model.set_rand_seed(seed)
```
I ...
- Thu Aug 07, 2025 8:29 pm
- Forum: SMILE
- Topic: Is there confidence interval for the parameter estimation?
- Replies: 3
- Views: 465819
Is there confidence interval for the parameter estimation?
Dear Community,
I am following the PDF version of the tutorial for SMILE wrappers, specifically for python language.
I am try SMILE package on our real-world dataset.
Since the real world dataset is too big. I have to use "pysmile.BayesianAlgorithmType.EPIS_SAMPLING" to produce inference ...
I am following the PDF version of the tutorial for SMILE wrappers, specifically for python language.
I am try SMILE package on our real-world dataset.
Since the real world dataset is too big. I have to use "pysmile.BayesianAlgorithmType.EPIS_SAMPLING" to produce inference ...
- Wed Jul 02, 2025 4:15 pm
- Forum: SMILE
- Topic: Network size limitation of SMILE package
- Replies: 3
- Views: 1728658
Re: Network size limitation of SMILE package
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 ...
"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 ...
- Tue Jul 01, 2025 8:01 pm
- Forum: SMILE
- Topic: Network size limitation of SMILE package
- Replies: 3
- Views: 1728658
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: 482638
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: 486452
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: 486452
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: 589026
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: 482638
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: 293973
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: 483952
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: 483952
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: 483952
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 ...