Re: Numerical attributes in NaiveBayes
[email protected] (Ken Williams) Tue, 23 Sep 2003 09:00:30 -0500
| Newsgroups | perl.ai |
|---|---|
| Message-ID | <[email protected]> |
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