bayes-classifier-js icon indicating copy to clipboard operation
bayes-classifier-js copied to clipboard

A JavaScript library for Bayesisan classification

Results 8 bayes-classifier-js issues
Sort by recently updated
recently updated
newest added

* [ ] train based on user input? * [ ] train based on preloaded text files?

https://github.com/NaturalNode/natural#classifiers https://github.com/ttezel/bayes

This is what I'm doing now: ```javascript if (word[category].prob < 0.01) word[category].prob = 0.01; if (word[category].prob > 0.99) word[category].prob = 0.99; ```

There's a function called `probabilities()` which calculates everything. The library should probably execute this function internally after each call to `train()`? Also, naming-wise it should probably be called something else....

Some ideas: * [ ] Highest probability category * [x] List of all categories and their probabilities * [ ] List of words and their scores / probabilities? What else?

Allow user to pass in their own function for token validation?

Allow use to pass in their own function to tokenize the text?