[Classifier4j-devel] WordProbability Refactor...
Status: Beta
Brought to you by:
nicklothian
|
From: Peter L. <pe...@le...> - 2003-07-09 01:34:02
|
> > I would recommend changing the IWordsDataSource to
> > return WordProbability objects instead of double.
This
> > would ensure that BayesianClassifier doesn't have to
> > know how to create WordProbability Objects, it just
> > gets them from the IWordsDataSource.
> >
> > It would be nice if WordProbability knew how to
> > calculate it's own probability, given the number of
> > nonmatching & matching counts. This will reduce
> > duplication of code with new IWordsDataSource
> > implementations.
> >
> Sounds pretty reasonable. I'm not very happy with the
use of the
> WordProbability object at the moment, anyway.
Heya,
I've submitted a patch with this change.
http://sourceforge.net/tracker/index.php?func=detail&aid=768157&group_id=79523&atid=556879
Pete
|