I implemented the above, and im getting a bunch of these messages,
-26: EM: can't set evidence in record 3 for node NODE040
-26: EM: can't set evidence in record 8 for node NODE040
-26: EM: can't set evidence in record 17 for node NODE040
-26: EM: can't set evidence in record 29 for node NODE022
-26 ...
Search found 11 matches
- Sat Jan 13, 2024 3:38 am
- Forum: SMILE
- Topic: error with log likelihood during EM
- Replies: 10
- Views: 81165
- Fri Jan 12, 2024 10:26 pm
- Forum: SMILE
- Topic: error with log likelihood during EM
- Replies: 10
- Views: 81165
Re: error with log likelihood during EM
Okay, thank you for the elaboration I know how to proceed now.
- Fri Jan 12, 2024 8:42 pm
- Forum: SMILE
- Topic: error with log likelihood during EM
- Replies: 10
- Views: 81165
Re: error with log likelihood during EM
Thank you so much for this information. In the em file I generated CPTs randomly but looks like because some of the values were so close to one or zero they got rounded up/down. Would you recommend using "em.SetRandomizeParameters(True); " instead of passing in the initialization through a file ...
- Fri Jan 12, 2024 2:06 am
- Forum: SMILE
- Topic: error with log likelihood during EM
- Replies: 10
- Views: 81165
Re: error with log likelihood during EM
I am using Smile (the C++ version) Here is my code for the EM portion:
std::vector<DSL_datasetMatch> matching;
DSL_network emModel;
DSL_dataset ds;
double loglik;
//reading data file
res = ds.ReadFile(dataFile.c_str());
if (DSL_OKAY != res)
{
return res;
}
//passing in the initialization for ...
std::vector<DSL_datasetMatch> matching;
DSL_network emModel;
DSL_dataset ds;
double loglik;
//reading data file
res = ds.ReadFile(dataFile.c_str());
if (DSL_OKAY != res)
{
return res;
}
//passing in the initialization for ...
- Thu Jan 11, 2024 8:53 am
- Forum: SMILE
- Topic: error with log likelihood during EM
- Replies: 10
- Views: 81165
Re: error with log likelihood during EM
Hi, I attached some of the files. ex7_TD2_10.xdsl is the model file. ex7_TD2_10.csv is the data file. and em_ex7_TD2_10_ED2_0.xdsl is an initialization for the em algorithm, which gives me 8.29714e-318 as a log likelihood
- Wed Jan 10, 2024 7:36 pm
- Forum: SMILE
- Topic: error with log likelihood during EM
- Replies: 10
- Views: 81165
error with log likelihood during EM
I keep getting this value 8.29714e-318 as a loglikelihood while running EM. Im running EM on discrete bayesian networks, so therefore the LL should be between [-inf, 0], but 8.29714e-318 keeps showing up within multiple runs of EM, even on different networks. Can someone explain why this is happening?
- Sun Dec 24, 2023 2:52 am
- Forum: SMILE
- Topic: is there a function for calculating the log likelihood?
- Replies: 1
- Views: 29173
is there a function for calculating the log likelihood?
I know the log likelihood is calculated with in the EM and other learning algorithms, but does there exist a function that takes an existing network and a dataset, then calculates the log likelihood sore, without necessarily learning parameters?
If not can you tell me how the log likelihood is ...
If not can you tell me how the log likelihood is ...
- Fri Dec 22, 2023 12:21 am
- Forum: SMILE
- Topic: Read File error for networks in Bayesfusion Repo
- Replies: 6
- Views: 50879
Re: Read File error for networks in Bayesfusion Repo
Thank you so much I will update
- Mon Dec 18, 2023 8:48 pm
- Forum: SMILE
- Topic: Read File error for networks in Bayesfusion Repo
- Replies: 6
- Views: 50879
Re: Read File error for networks in Bayesfusion Repo
Hi it looks like its still only pulling the 1.6.2 version of pysmile. Copy and pasted below is my terminal output
$ python3 -m pip install --user --upgrade --force-reinstall --index-url https://support.bayesfusion.com/pysmile-A/ pysmile
Looking in indexes: https://support.bayesfusion.com/pysmile-A ...
$ python3 -m pip install --user --upgrade --force-reinstall --index-url https://support.bayesfusion.com/pysmile-A/ pysmile
Looking in indexes: https://support.bayesfusion.com/pysmile-A ...
- Wed Dec 13, 2023 5:25 am
- Forum: SMILE
- Topic: Read File error for networks in Bayesfusion Repo
- Replies: 6
- Views: 50879
Re: Read File error for networks in Bayesfusion Repo
I deleted my old version of smile, and used the command "python3 -m pip install --index-url https://support.bayesfusion.com/pysmile-A/ pysmile". However, I checked the folder in in my python packages, and the package shows as "pysmile-1.6.2.dist-info " which i don't believe is the latest version ? I ...
- Tue Dec 12, 2023 5:03 am
- Forum: SMILE
- Topic: Read File error for networks in Bayesfusion Repo
- Replies: 6
- Views: 50879
Read File error for networks in Bayesfusion Repo
Can't read in some of the model files from the bayesfusion repo.
Im using the python wrapper of smile.
Code:
net = pysmile.Network()
net.read_file("test_new_models/HeparII.xdsl")
error:
SMILEException: SMILE Error Occured in: Network.ReadFile
ErrNo=-103
Im using the python wrapper of smile.
Code:
net = pysmile.Network()
net.read_file("test_new_models/HeparII.xdsl")
error:
SMILEException: SMILE Error Occured in: Network.ReadFile
ErrNo=-103