You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@mahout.apache.org by Lee S <sl...@gmail.com> on 2014/10/20 04:14:29 UTC
How to use naivebayes on ordinary data not on text files?
I hava an ordinary data file containing labels and feature vectors.
How can I use naivebayes to classify it?
The example on the official website is used with text files. Can it be used
on ordinary files?
I wonder if *trainnb* can be directly used on data files only if the format
of data file is ok.
Re: How to use naivebayes on ordinary data not on text files?
Posted by Lee S <sl...@gmail.com>.
For example, one line of data file is like this:
1 3 4 5 6 7
first column is label. Other columns construct the feature vector
2014-10-21 11:17 GMT+08:00 Vibhanshu Prasad <vi...@gmail.com>:
> Ordinary files?
> What type of file you are using?
>
> On Mon, Oct 20, 2014 at 7:44 AM, Lee S <sl...@gmail.com> wrote:
>
> > I hava an ordinary data file containing labels and feature vectors.
> > How can I use naivebayes to classify it?
> > The example on the official website is used with text files. Can it be
> used
> > on ordinary files?
> >
> > I wonder if *trainnb* can be directly used on data files only if the
> format
> > of data file is ok.
> >
>
Re: How to use naivebayes on ordinary data not on text files?
Posted by Vibhanshu Prasad <vi...@gmail.com>.
Ordinary files?
What type of file you are using?
On Mon, Oct 20, 2014 at 7:44 AM, Lee S <sl...@gmail.com> wrote:
> I hava an ordinary data file containing labels and feature vectors.
> How can I use naivebayes to classify it?
> The example on the official website is used with text files. Can it be used
> on ordinary files?
>
> I wonder if *trainnb* can be directly used on data files only if the format
> of data file is ok.
>