Skip to content

Implement a Chi-Squared test statistic option for measuring split quality #13438

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed

Conversation

erikerlandson
Copy link
Contributor

What changes were proposed in this pull request?

Using test statistics as a measure of decision tree split quality is a useful split halting measure that can yield improved model quality. I am proposing to add the chi-squared test statistic as a new impurity option (in addition to "gini" and "entropy") for classification decision trees and ensembles.

https://issues.apache.org/jira/browse/SPARK-15699

http://erikerlandson.github.io/blog/2016/05/26/measuring-decision-tree-split-quality-with-test-statistic-p-values/

How was this patch tested?

I added unit testing to verify that the chi-squared "impurity" measure functions as expected when used for decision tree training.

@SparkQA
Copy link

SparkQA commented Jun 1, 2016

Test build #59737 has finished for PR 13438 at commit b7a47e0.

  • This patch fails MiMa tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@srowen
Copy link
Member

srowen commented Jun 1, 2016

Please follow https://cwiki.apache.org/confluence/display/SPARK/Contributing+to+Spark and update the title

@erikerlandson
Copy link
Contributor Author

nuts, I'm going to have to re-submit a PR against master

@erikerlandson
Copy link
Contributor Author

I'm closing this, re-submitted as #13440

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants