Skip to content
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

[FIX] Rand Forest Class: Min sample replaces max leaf nodes #1403

Merged
merged 1 commit into from
Jul 4, 2016

Conversation

BlazZupan
Copy link
Contributor

Random forest for classification had a parameter that in the GUI said "Do not split subsets smaller than", but was actually setting another parameter, max_leaf_nodes. To keep it faithful to the GUI description, the max_leaf_nodes was replaced with min_samples_split, so that now the GUI description matches what the learner actually does.

Minimum to another pruning parameter, max_depth, was changed to 1 (scikit-learn counts this as root plus one more level).

Some minor cleaning of code was also done to line length to 80 and thus get rid of PyCharm warnings.

@codecov-io
Copy link

codecov-io commented Jul 1, 2016

Current coverage is 87.64%

Merging #1403 into master will not change coverage

@@             master      #1403   diff @@
==========================================
  Files            75         75          
  Lines          7473       7473          
  Methods           0          0          
  Messages          0          0          
  Branches          0          0          
==========================================
  Hits           6550       6550          
  Misses          923        923          
  Partials          0          0          

Sunburst

Powered by Codecov. Last updated by ecc474d...d561790

@astaric astaric merged commit 7d65e24 into biolab:master Jul 4, 2016
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