Sha256: 0829b5169e4abcc712ff26680a4b54aae9ae017784ab167be3bbc29dc2983bf6
Contents?: true
Size: 1.13 KB
Versions: 2
Compression:
Stored size: 1.13 KB
Contents
== Welcome to Classifier Classifier is a general module to allow Bayesian and other types of classifications. == Usage require 'classifier' b = Classifier::Bayes.new 'Interesting', 'Uninteresting' b.train_interesting "here are some good words. I hope you love them" b.train_uninteresting "here are some bad words, I hate you" b.classify "I hate bad words and you" # returns 'Uninsteresting' require 'madeleine' m = SnapshotMadeleine.new("bayes_data") { Classifier::Bayes.new 'Interesting', 'Uninteresting' } m.system.train_interesting "here are some good words. I hope you love them" m.system.train_uninteresting "here are some bad words, I hate you" m.take_snapshot m.system.classify "I love you" # returns 'Interesting' Using Madeleine, your application can persist the learned data over time. == Bayesian Classification * http://www.process.com/precisemail/bayesian_filtering.htm * http://en.wikipedia.org/wiki/Bayesian_filtering * http://www.paulgraham.com/spam.html == About Author:: Lucas Carlson (mailto:lucas@rufy.com) Copyright:: Copyright (c) 2005 Lucas Carlson License:: GPL
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
classifier-1.0 | README |
classifier-1.1 | README |