Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 3 years ago.
Improve this question
I want to implement a decision tree (machine learning) algorithm in PHP. I've searched far and wide on Google and can find nothing in PHP.
Does anyone know a tutorial or function in PHP for implementing a descision tree?
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.
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
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.
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
Improve this question
Right now, I am using CI 3.0 . And for create report like invoice, monthly report sales, I using dompdf which is so spending time to debug coz dompdf not really support JS.
I was wondering a tools like crystal report , drag and drop report. I am not sure that PHP have like that.
I found php-reports, it looks interesting. But I dont know how to integrate it.
Perhaps, someone out there have solution to this PHP Reports, or maybe if you are share how to simplified creating a report in CI.
Thank You
maybe look at; http://www.hkvstore.com/phpreportmaker/
this questions lightly talks about using it; here
CI is great in that you are allowed to break the rules if you want. if its painful working inside the M-V-C approach then bend some rules or look at another method; like writing a library, or have your model generate more than just the dataset and include html ready for your CSS that your view just has to output (rather than parse).
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
like my all teachers are saying " You can do everything because you can, but your code looks like a sh**"
So I was looking for some good tutorials on internet about Writing PHP code so clean as it's possible. I didn't find anything so I need your help.
I need some url with tutorials about how to write clean php code.
It can be BOOK as well!
I don't know what your teacher what meant but I'm pretty sure writing clean code is write code what make sense.
What good write less if it's really hard to understand? For me, clean code doesn't mean syntax or less code only. Just write such that makes sense, use best practices and standards. It's a great start!
Because you brought up on books, here's one of these:
Clean Code: A Handbook of Agile Software
The Pragmatic Programmer: From Journeyman to Master (old but great)
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 4 years ago.
Improve this question
I am familar with CakePHP 1.3 and I would like to learn the novelties in CakePHP2.
I know there is the new cookbook and also the migration guide. Still, I would like something broader than the migration guide without having to read all the cookbook again. I am thinking about something like a series of blog posts, in the spirit of the Django advent.
Is there anything like this around?
At CakeFest this year Mark Story gave a presentation on the changes and they posted it as a video of changes in 2.0. I found this to be a good high-level intro and might fit what you're looking for.
The other presentations from CakeFest 2011 might be useful to you too.
I think the only things you need is 2.0 Migration Guide and New Features in CakePHP 2.0. Other thing is practice.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
What's a good tool to reverse engineer a set of php/html pages ? It's not object oriented, it's a big mess that started in early 2000 (so no UML tools obviously!).
I'd like to draw a link between files/functions that are included or called via the 'action' attribute of a form.
So basically, I would like to have a nice simple diagram to have a clear idea of how is structured a site, what variable are passed between pages through "action", the arguments of functions, in a //diagram// !
Javascript have no impact on the flow of pages here.
Don't tell me that my only hope is to write a big filthy tool to do that ?!?
Thanks-
You can use xdebug to generate a cachegrind file and then use Kcachegrind to view the diagram.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
For an online project I'm working on, I am looking for a open source grammar checker. I have searched Google, with some good results (http://www.link.cs.cmu.edu/link/, etc), but I am wondering what all of you think about this topic.
I need this to be able to be used online, versus desktop based, but this is the only real specification I have. If it has a built-in spell checker, that would be a plus, but I can always use another project for that purpose.
Thanks for any help.
LanguageTool should fit the bill:
http://www.languagetool.org/
try polishmywriting.com (now afterthedeadline.com)
I think the developer's details are here: http://news.ycombinator.com/user?id=raffi
here's an ASK HN post from raffi: http://news.ycombinator.com/item?id=286162
UPDATE: you can get an API Key (i.e. for Wordpress): http://www.afterthedeadline.com/download.slp?platform=Wordpress
Have you taken a look at the Xinha project? I believe that has spell check and possibly grammar check.
Several wysiwyg editors have support for spell checking: feckeditor, htmlarea, tinymce.
I think most of them uses aspell dictionaries.