The Altair Community is migrating to a new platform to provide a better experience for you. In preparation for the migration, the Altair Community is on read-only mode from October 28 - November 6, 2024. Technical support via cases will continue to work as is. For any urgent requests from Students/Faculty members, please submit the form linked here
Hi I've a question re Naive Bayes classifier and error I'm seeing
Ado_on_the_Wing
Member Posts: 2 Learner I
in Help
I hoped to run a Naive Bayes classifier on my simple dataset. I have 260 people records. There are ten independent attributes (about how people feel in wellness terms) and they're answered in simple binary form (unhappy = 1, otherwise =0) I have applied a class label to each of them, as in are they overall likely to be good next year or not. It's telling me the numerical label is not supported... Any help please? I'm only a newbie to this Community and also new to RapidMiner.. Thank you
0
Answers
Naive Bayes in RapidMiner can only do classification. This means that your target (or label) attribute needs to be nominal (in this case binominal, having two possible nominal values). You can use Numerical to Binominal to change your attributes to the correct format. Or you could use Generate Attributes to change the numbers to the actual meaning:
if([attribute] == 1, "unhappy", "otherwise")
Naive Bayes will then work with the binominal label correctly.
Regards,
Balázs