Hi all,

I used the Algorithm::NaiveBayes from CPAN. Now it's all working fine
on the syntax. The problem is that I cannot get the 'result'. I trained the
algorithm with some attributes and provided the labels alongwith using
add_instance. And then trained it with train(). Now, to predict I used the
same syntax as given in the docs, and provided attributes in the same
manner as I used with add_instance. Now If i do

print %$result

I get the labels and their corresponding scores, which is probably what
it should be, seeing from the docs. So, what I cannot understand is, where
is the result / predicted value stored??? and how do i get it??

thanks
Saurabh

Reply via email to