UNPKG

bayes-classifier

Version:
1 lines 1.26 kB
{"stemmer":{},"docs":[{"label":"positive","value":["i","love","taco"]},{"label":"positive","value":["dude","burrito","epic"]},{"label":"positive","value":["holi","cow","nacho","so","good","tasti"]},{"label":"positive","value":["i","drool","awesom","bean","chees","quesadilla"]},{"label":"negative","value":["gross","worst","taco","ever"]},{"label":"negative","value":["the","burito","gave","horribl","diarrhea"]},{"label":"negative","value":["i","go","puke","i","eat","bad","nacho"]},{"label":"negative","value":["i","rather","die","eat","nasti","enchilada"]}],"lastAdded":8,"features":{"i":1,"love":1,"taco":1,"dude":1,"burrito":1,"epic":1,"holi":1,"cow":1,"nacho":1,"so":1,"good":1,"tasti":1,"drool":1,"awesom":1,"bean":1,"chees":1,"quesadilla":1,"gross":1,"worst":1,"ever":1,"the":1,"burito":1,"gave":1,"horribl":1,"diarrhea":1,"go":1,"puke":1,"eat":1,"bad":1,"rather":1,"die":1,"nasti":1,"enchilada":1},"classFeatures":{"positive":{"0":3,"1":2,"2":2,"3":2,"4":2,"5":2,"6":2,"7":2,"8":2,"9":2,"10":2,"11":2,"12":2,"13":2,"14":2,"15":2,"16":2},"negative":{"0":3,"2":2,"8":2,"17":2,"18":2,"19":2,"20":2,"21":2,"22":2,"23":2,"24":2,"25":2,"26":2,"27":3,"28":2,"29":2,"30":2,"31":2,"32":2}},"classTotals":{"positive":5,"negative":5},"totalExamples":9,"smoothing":1}