bayesnet / bnt

Bayes Net Toolbox for Matlab
461 stars 247 forks source link

Error in learning Network Structure using learn_struct_pdag_pc() method #24

Open ido opened 10 years ago

ido commented 10 years ago

From p.shamsi...@gmail.com on January 12, 2012 17:53:47

What steps will reproduce the problem? 1. I want to learn the pdag from alarm network data with 200,000 records using learn_struct_pdag_pc() method.

2.the call is like this : [pdag, G] = learn_struct_pdag_pc('cond_indep_fisher_z',n , n-1 ,CovMatrix,nSamples,alpha)

where [CovMatrix, nSamples, varfields] = CovMat(data_BNT_path,n)

I got this error : ??? Error using ==> erfc Input must be real and full.

Error in ==> cond_indep_fisher_z>normcdf at 73 p(k) = 0.5 * erfc( - (x(k) - mu(k)) ./ (sigma(k) * sqrt(2)));

1- I got this error for some other networks.

Original issue: http://code.google.com/p/bnt/issues/detail?id=24