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 <[email protected]>:

> Ordinary files?
> What type of file you are using?
>
> On Mon, Oct 20, 2014 at 7:44 AM, Lee S <[email protected]> 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.
> >
>

Reply via email to