3 ms·
http://code.google.com/p/aima-python/source/browse/trunk/learning.py http://code.google.com/p/aima-python/source/browse/trunk/lea... is shorter (NaiveBayesLearn
by abecedarius 15y ago
http://code.google.com/p/aima-python/source/browse/trunk/learning.py http://code.google.com/p/aima-python/source/browse/trunk/lea... is shorter (NaiveBayesLearner around line 200) though that assumes some infrastructure.