We don’t allow questions seeking recommendations for software libraries, tutorials, tools, books, or other off-site resources. You can edit the question so it can be answered with facts and citations.
Closed 4 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(3)
您是专门寻找 Php 代码还是其他语言都可以?
你可以从原始决策树算法C4.5的源代码开始。它是公开的,但我认为有一些限制。 http://www.rulequest.com/Personal/
这是一个您可能想要的很好的教程参考:http://www2.cs.uregina.ca/~dbd/cs831/notes/ml/dtrees/c4.5/tutorial.html
决策树 J48 的 Weka 实现位于: <一href="https://svn.scms.waikato.ac.nz/svn/weka/trunk/weka/src/main/java/weka/classifiers/trees/J48.java" rel="nofollow">https://svn.scms.waikato.ac.nz/svn/weka/trunk/weka/src/main/java/weka/classifiers/trees/J48.java
如果您是熟悉Python Orange C4.5源代码可访问:http://orange.biolab.si/
我不使用 PhP,所以我不知道其中有任何实现。但以上所有实现(C++、Java 或 Python)也值得一看。
Are you looking specifically for Php code or any other languages are ok ?
You can start from the source code of original decision tree algorithm-C4.5.It is public but has some restrictions I think. http://www.rulequest.com/Personal/
Here is a good tutorial that you may want to refer : http://www2.cs.uregina.ca/~dbd/cs831/notes/ml/dtrees/c4.5/tutorial.html
Weka implementations for decision tree J48 is available at : https://svn.scms.waikato.ac.nz/svn/weka/trunk/weka/src/main/java/weka/classifiers/trees/J48.java
If you are familiar with Python Orange C4.5 source code is available at : http://orange.biolab.si/
I do not work with PhP so I am not aware of any implementations in it. But all above implementations(C++,Java,or Python) are worthwhile too look.
尽管用日语进行了评论和记录,但这似乎与您正在寻找的内容非常接近: https ://github.com/kokukuma/php-decision-tree
Albeit being commented and documented in Japanese, this seems to be pretty close to what you're looking for: https://github.com/kokukuma/php-decision-tree
这是截至 2019 年 GitHub 上 C4.5 算法在 PHP 中的最新实现:PHP-C45。
我目前正在使用它,它也非常有效。
This is the most recent implementation of the C4.5 Algorithm in PHP on GitHub as of 2019: PHP-C45.
I'm currently using it and it's very efficient too.