bayesian icon indicating copy to clipboard operation
bayesian copied to clipboard

Naive Bayesian Classification for Golang.

Results 8 bayesian issues
Sort by recently updated
recently updated
newest added

Hi. My edits: + JSON serialization as an option (gob by default, so it have full backward compatibility). Also JSON have around 25% less file size + Minor codestyle fixes...

Now it `github.com/navossoc/bayesian` instead of `github.com/jbrukh/bayesian`. Was broken in PR #23

Current code panics in case the classifier is initialised with just 1 class. However I have an edge case where there might only be a single class. So I was...

Hi, I found this library very useful. I think since this has a supervised learning mechanism, it would be good if we can add a new class for stuffs that...

``` git tag -a 1.1 35eb93528ee -m "tag a specific older version that was built against" git push --tags ``` In addition, it would be nice if current versions were...

LogScores, ProbScores, and SafeProbScores all have a return parameter that is the index of the most likely class. I think if you're ever willing to break the current api it...

``` package main import ( "log" "github.com/jbrukh/bayesian" ) const ( Arabic bayesian.Class = "Arabic" Malay bayesian.Class = "Malay" Yiddish bayesian.Class = "Yiddish" ) func main() { nbClassifier := bayesian.NewClassifier(Arabic, Malay,...

This is rather a question than an actual issue, but anyway. First, did I get it right that the prior probability `P(C_j)` of a class is the number of document...