PHPackages                             devtronic/tree-classifier - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. devtronic/tree-classifier

AbandonedArchivedLibrary[Utility &amp; Helpers](/categories/utility)

devtronic/tree-classifier
=========================

Tree Classifier

1.0.0(9y ago)102.6k1LGPL-3.0PHPPHP &gt;=5.6.0

Since Dec 9Pushed 9y ago2 watchersCompare

[ Source](https://github.com/devtronic/tree-classifier)[ Packagist](https://packagist.org/packages/devtronic/tree-classifier)[ RSS](/packages/devtronic-tree-classifier/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

[![GitHub tag](https://camo.githubusercontent.com/f6ff30675d72364c211756b77dbddc3ae6ef0f5d36807dc164f134fed59610da/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f64657674726f6e69632f747265652d636c61737369666965722e737667)](https://github.com/Devtronic/tree-classifier)[![Packagist](https://camo.githubusercontent.com/fee763310942791a38e33b1e1bc7d7a653d33b5b3efd1c0616a6297301a2f271/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f64657674726f6e69632f747265652d636c61737369666965722e737667)](https://github.com/Devtronic/tree-classifier/blob/master/LICENSE)[![Travis](https://camo.githubusercontent.com/5d8d908b8664d857a8e6f875abe4becca685b9818cb110abe7143ad987c0477c/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f44657674726f6e69632f747265652d636c61737369666965722e737667)](https://travis-ci.org/Devtronic/tree-classifier/)[![Packagist](https://camo.githubusercontent.com/062c9d442aacc9849675a493f5e38463d980e7b57fdff3fd978ac84b30e836ef/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f64657674726f6e69632f747265652d636c61737369666965722e737667)](https://github.com/Devtronic/tree-classifier)

Tree Classifier
===============

[](#tree-classifier)

A PHP Library for decision trees

### What is a decision tree?

[](#what-is-a-decision-tree)

This (really basic): [![TreeClassifier](https://camo.githubusercontent.com/e6a615c4cf138da797b7287c2bd49c468e557c1b6f544a466ae1a4b8b5a5ab3e/687474703a2f2f7777772e646576656c6f7065722d68656176656e2e64652f77702d636f6e74656e742f75706c6f6164732f323031362f31322f54726565436c61737369666965722e706e67)](https://camo.githubusercontent.com/e6a615c4cf138da797b7287c2bd49c468e557c1b6f544a466ae1a4b8b5a5ab3e/687474703a2f2f7777772e646576656c6f7065722d68656176656e2e64652f77702d636f6e74656e742f75706c6f6164732f323031362f31322f54726565436c61737369666965722e706e67)

### Code Example

[](#code-example)

In this example we classify 10 Persons. We want to find all males under 50 years old who can cook and don't playing football

```
