pacowong / bnt

Automatically exported from code.google.com/p/bnt
0 stars 0 forks source link

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

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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 reported on code.google.com by p.shamsi...@gmail.com on 12 Jan 2012 at 10:53