2017 © Pedro Peláez
 

library bayes

Implementation of Naive Bayes Classifier algorithm in PHP.

image

fieg/bayes

Implementation of Naive Bayes Classifier algorithm in PHP.

  • Wednesday, May 24, 2017
  • by fieg
  • Repository
  • 8 Watchers
  • 63 Stars
  • 9,018 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 16 Forks
  • 0 Open issues
  • 6 Versions
  • 5 % Grown

The README.md

Naive Bayes Classifier

Implementation of Naive Bayes Classifier algorithm in PHP., (*1)

Based on Machine Learning: Naive Bayes Document Classification Algorithm in Javascript by Burak Kanber., (*2)

Build Status, (*3)

Getting started

use Fieg\Bayes\Classifier;
use Fieg\Bayes\Tokenizer\WhitespaceAndPunctuationTokenizer;

$tokenizer = new WhitespaceAndPunctuationTokenizer();
$classifier = new Classifier($tokenizer);

$classifier->train('en', 'This is english');
$classifier->train('fr', 'Je suis Hollandais');

$result = $classifier->classify('This is a naive bayes classifier');

Which would result in:, (*4)

array(2) {
  'en' =>
  double(0.9)
  'fr' =>
  double(0.1)
}

The Versions

24/05 2017

dev-jenkins-test

dev-jenkins-test https://github.com/fieg/bayes

Implementation of Naive Bayes Classifier algorithm in PHP.

  Sources   Download

The Requires

  • php >=5.4

 

The Development Requires

learning classifier bayes machine naive

02/06 2016

dev-master

9999999-dev https://github.com/fieg/bayes

Implementation of Naive Bayes Classifier algorithm in PHP.

  Sources   Download

The Requires

  • php >=5.4

 

The Development Requires

learning classifier bayes machine naive

02/06 2016

1.0.3

1.0.3.0 https://github.com/fieg/bayes

Implementation of Naive Bayes Classifier algorithm in PHP.

  Sources   Download

The Requires

  • php >=5.4

 

The Development Requires

learning classifier bayes machine naive

26/08 2014

1.0.2

1.0.2.0 https://github.com/fieg/bayes

Implementation of Naive Bayes Classifier algorithm in PHP.

  Sources   Download

The Requires

  • php >=5.4

 

The Development Requires

learning classifier bayes machine naive

25/08 2014

1.0.1

1.0.1.0 https://github.com/fieg/bayes

Implementation of Naive Bayes Classifier algorithm in PHP.

  Sources   Download

The Requires

  • php >=5.4

 

The Development Requires

learning classifier bayes machine naive

22/01 2014

1.0

1.0.0.0 https://github.com/fieg/bayes

Implementation of Naive Bayes Classifier algorithm in PHP.

  Sources   Download

The Requires

  • php >=5.4

 

The Development Requires

learning classifier bayes machine naive