Sha256: 3cf4bf9bd29a7f2b5fd0c8483e6ee6991d01b57de6c087ffebd71a6922e43bcf
Contents?: true
Size: 484 Bytes
Versions: 1
Compression:
Stored size: 484 Bytes
Contents
module Bae class Classifier attr_reader :internal_classifier def initialize @internal_classifier = ::Java::Bae::NaiveBayesClassifier.new end def train(label, feature) internal_classifier.train(label, ::Java::Bae::Document.new(feature)) end def classify(feature) internal_classifier.classify(::Java::Bae::Document.new(feature)) end def finish_training! internal_classifier.calculateInitialLikelihoods() end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
bae-0.0.7-java | lib/bae/classifier.rb |