A way to read and write from file

Thanks for catching this, it is fixed now.


On Mon, Sep 8, 2014 at 11:08 AM, Camilo Aguilar <notifications@github.com>
wrote:

> In bayesian.go:
>
> > @@ -402,6 +422,25 @@ func (c *Classifier) WriteTo(w io.Writer) (err error) {
> >  	return
> >  }
> >
> > +// ReadClassFromFile load an existing classData from
> > +// file.
> > +func (c *Classifier) ReadClassFromFile(class Class, location string) (err error){
> > +	fileName := location + "/" + string(class)
>
> same here.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/jbrukh/bayesian/pull/4/files#r17243792>.
>