2017 © Pedro Peláez
 

library classifier

A Naive Bayesian classification library for PHP with support for different tokenizers to optimize string classification.

image

hybridlogic/classifier

A Naive Bayesian classification library for PHP with support for different tokenizers to optimize string classification.

  • Saturday, January 12, 2013
  • by Dachande663
  • Repository
  • 9 Watchers
  • 71 Stars
  • 646 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 10 Forks
  • 0 Open issues
  • 4 Versions
  • 1 % Grown

The README.md

Bayesian Classification Library

A Naive Bayesian classification library for PHP with support for different tokenizers to optimize string classification., (*1)

Build Status, (*2)

0.0 Table of Contents

  • Introduction
  • Examples
  • Running Tests
  • Troubleshooting
  • Changelog

1.0 Introduction

Naive Bayesian Classification provides a computationally cheap, but reasonably accurate method of determining which "group" a provided string belongs to given a prior training set., (*3)

PHP Classifier supports any number of groups to classify strings against and uses logarithmic counting to prevent integer underflow when using larger sets., (*4)

2.0 Examples


$tokenizer = new HybridLogic\Classifier\Basic; $classifier = new HybridLogic\Classifier($tokenizer); $classifier->train('hot', 'The sun is hot'); $classifier->train('hot', 'It was a warm day in the sun'); $classifier->train('hot', 'This tea is hot!'); $classifier->train('cold', 'This ice is very cold!'); $classifier->train('cold', 'It\'s cold at night'); $classifier->train('cold', 'Ice formed on my at over night'); $groups = $classifier->classify('It was chilly last night');

3.0 Running Tests

phpunit tests, (*5)

4.0 Troubleshooting

@todo, (*6)

5.0 Changelog

  • [2013-01-10] Initial port from KoBayes

The Versions

12/01 2013

dev-master

9999999-dev https://github.com/Dachande663/PHP-Classifier

A Naive Bayesian classification library for PHP with support for different tokenizers to optimize string classification.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

statistics groups tokenizer classifier bayes

12/01 2013

v1.0.2

1.0.2.0 https://github.com/Dachande663/PHP-Classifier

A Naive Bayesian classification library for PHP with support for different tokenizers to optimize string classification.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

statistics groups tokenizer classifier bayes

12/01 2013

v1.0.1

1.0.1.0 https://github.com/Dachande663/PHP-Classifier

A Naive Bayesian classification library for PHP with support for different tokenizers to optimize string classification.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

statistics groups tokenizer classifier bayes

10/01 2013

v1.0.0

1.0.0.0

Naive Bayesian Classification library for PHP

  Sources   Download

The Requires

  • php >=5.3.0

 

statistics groups tokenizer classifier bayes