bmihaljevic / bnclassify

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

Error in check_class(class) : assertthat::is.string(class) is not TRUE #60

Closed Sidhartha10koneru closed 2 years ago

Sidhartha10koneru commented 2 years ago

Hi,

I am new to bnclassify package and I am trying to use it for BBC newsclassification and I am not able to understand how i can pass the data into nb function. Whenever I try pass the dataset and class as particular category I am getting below error. Is it possible to help me to understand what can be passed to class parameter in nb function. Please delete if this is not the relevant forum to ask this question. Thanks.

Sidhartha10koneru commented 2 years ago

image

bmihaljevic commented 2 years ago

Have you been able to solve this problem?

Sidhartha10koneru commented 2 years ago

Hello,

Yes, it was normal issue due to data not converted properly into factors, after having close look and proper conversion to factor it worked normal. Thank you for checking back on the thread.