All Projects → Programming-from-A-to-Z → bayes-classifier-js

Programming-from-A-to-Z / bayes-classifier-js

Licence: other
A JavaScript library for Bayesisan classification

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to bayes-classifier-js

ML-Experiments
整理记录本人担任课程助教设计的四个机器学习实验,主要涉及简单的线性回归、朴素贝叶斯分类器、支持向量机、CNN做文本分类。内附实验指导书、讲解PPT、参考代码,欢迎各位码友讨论交流。
Stars: ✭ 85 (+214.81%)
Mutual labels:  bayes-classifier
bayes user input prediction
Demonstration of using Naive Bayes to predict user inputs with Kotlin 1.2 std-lib
Stars: ✭ 26 (-3.7%)
Mutual labels:  bayes-classifier

bayes-classifier-js

A JavaScript library for Bayesisan classification

Initial API ideas:

let classifier = new Classifier();

// Text to train, followed by category name
classifier.train("I am happy.", "happy");
classifier.train("I am sad and I am very sad.", "sad");
classifier.train("I have mixed feelings.", "mixed");
classifier.probabilities();

let results = classifier.guess("Yesterday, I was very very happy, so happy.");
console.log(results);
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].