bayesnet / bnt

Bayes Net Toolbox for Matlab
460 stars 247 forks source link

Error using class: The CLASS function must be called from a class constructor. #86

Open natalialora99 opened 2 years ago

natalialora99 commented 2 years ago

I was running the BNT package in Matlab R2022a and I got the following errors, I think it is due to an update in Matlab but I don't know how to fix it

Error in generic_CPD (line 8) CPD = class(CPD, 'generic_CPD');

Error in discrete_CPD (line 6) CPD = class(CPD, 'discrete_CPD', generic_CPD(clamped));

Error in tabular_CPD (line 150) CPD = class(CPD, 'tabular_CPD', discrete_CPD(~CPD.adjustable, fam_sz));