From 97e3f82c6ee84176ec8963c97c30e18afebeb5d0 Mon Sep 17 00:00:00 2001 From: Arkadiusz Kondas Date: Mon, 8 Feb 2016 23:20:08 +0100 Subject: [PATCH] create first class :) --- README.md | 4 +++- src/Phpml/Classification/NaiveBayes.php | 8 ++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 src/Phpml/Classification/NaiveBayes.php diff --git a/README.md b/README.md index 2d454a5..457f3c1 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,9 @@ Fresh approach to machine learning in PHP. Note that at the moment PHP is not th ### Classification -* **Naive Bayes** - a set of supervised learning algorithms based on applying Bayes’ theorem with the “naive” assumption of independence between every pair of features +Identifying to which category an object belongs to. + +* **Naive Bayes** - algorithm based on applying Bayes’ theorem with the “naive” assumption of independence between every pair of features ## Installation diff --git a/src/Phpml/Classification/NaiveBayes.php b/src/Phpml/Classification/NaiveBayes.php new file mode 100644 index 0000000..d7f5ea4 --- /dev/null +++ b/src/Phpml/Classification/NaiveBayes.php @@ -0,0 +1,8 @@ +