Registry / utility / nbayes

nbayes

JSON →
library0.1.3rbrubygemsunverified

Ruby implementation of Naive Bayes that generates true probabilities per class, works with many token types, and provides lots of bells and whistles while being optimized for performance.

gem install nbayes
INSTALL
IMPORT
SIG · NBAYES
N
nbayes
utilityrubyv0.1.3
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.

NBayes
require 'nbayes'

Train a Naive Bayes classifier and classify a token.

require 'nbayes' classifier = NBayes::Base.new classifier.train('positive', ['good', 'great']) classifier.train('negative', ['bad', 'awful']) result = classifier.classify(['good']) puts result.max_class
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.1.3latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
10 hits · last 30 days
node
8
Resources
nbayes — gem install nbayes · libregistry