Registry / other / jbrukh-bayesian

jbrukh-bayesian

JSON →
library1.1.0gogounverified

Package bayesian is a Naive Bayesian Classifier for Go.

go get github.com/jbrukh/bayesian
INSTALL
IMPORT
SIG · JBRUKH-BAYESIAN
J
jbrukh-bayesian
othergov1.1.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

bayesian
✓ github.com/jbrukh/bayesian

Trains a Naive Bayes classifier and scores a document.

package main import ( "fmt" "github.com/jbrukh/bayesian" ) func main() { classifier := bayesian.NewClassifier("positive", "negative") classifier.Learn([]string{"great", "awesome"}, "positive") classifier.Learn([]string{"bad", "terrible"}, "negative") probs, _, _ := classifier.LogScores([]string{"great", "bad"}) fmt.Println(probs) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.1.0latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
10 hits · last 30 days
node
10
Resources
jbrukh-bayesian — go get jbrukh-bayesian · libregistry