ttezel/bayes

Allow for empty classification JSONs

Opened this issue · 0 comments

https://github.com/ttezel/bayes/blob/master/lib/naive_bayes.js#L33

If we change !parsed[k] to parsed[k] === undefined, then you can have empty/default Classifier JSONs to load classifiers with, even if totalDocuments is 0.