On Tuesday, September 23, 2003, at 02:21 AM, Dominique Vlieghe wrote:
Hi,
I was wondering whether the NaiveBayes Modules (AI::NaiveBayes1 and Algorithm::NaiveBayes) are capable of handling numerical attributes. A first glance on the code tells me they are not. Is this so and if yes, does anyone have an alternative package? Are there any plans to introduce numerical attributes in the modules?
Algorithm::NaiveBayes uses numerical attributes:
$nb->add_instance (attributes => {foo => 1.7, bar => 3.234}, label => 'whatever');
Or do I misunderstand your question?
-Ken