bmihaljevic / bnclassify

Learning Discrete Bayesian Network Classifiers from Data
18 stars 10 forks source link

Error in check_dataset(dataset) : are_factors(dataset) is not TRUE #61

Open PARODBE opened 3 years ago

PARODBE commented 3 years ago

Hi,

Nice to meet you and thanks for so useful library. I am new with it and I am obtaining the error of the issue, but all my variables are discrete, for this reason I don't understand the error. However, If I try to use bnlearn librarry the error is that I have NaN/Na but I am sure that I don't have...

Could you help me please?

Thanks

bmihaljevic commented 3 years ago

Have you managed to solve this?

Did you check that all the columns are encoded as factors?

I suggest that you try by filtering your columns, e.g., into halves, to see if the problem persists and thus try to pinpoint the problematic column(s).