Skip to content

Commit

Permalink
Merge pull request #30 from rasbt/sklearn018
Browse files Browse the repository at this point in the history
Scikit-learn 0.18 optional syntax
  • Loading branch information
rasbt authored Sep 30, 2016
2 parents fc790b7 + f779b3d commit 29fe8f0
Show file tree
Hide file tree
Showing 24 changed files with 972 additions and 1,021 deletions.
20 changes: 10 additions & 10 deletions code/ch02/ch02.ipynb

Large diffs are not rendered by default.

98 changes: 49 additions & 49 deletions code/ch03/ch03.ipynb

Large diffs are not rendered by default.

20 changes: 20 additions & 0 deletions code/ch03/tree.dot
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
digraph Tree {
node [shape=box] ;
0 [label="petal width <= 0.75\nentropy = 1.5799\nsamples = 105\nvalue = [34, 32, 39]"] ;
1 [label="entropy = 0.0\nsamples = 34\nvalue = [34, 0, 0]"] ;
0 -> 1 [labeldistance=2.5, labelangle=45, headlabel="True"] ;
2 [label="petal length <= 4.95\nentropy = 0.993\nsamples = 71\nvalue = [0, 32, 39]"] ;
0 -> 2 [labeldistance=2.5, labelangle=-45, headlabel="False"] ;
3 [label="petal width <= 1.65\nentropy = 0.4306\nsamples = 34\nvalue = [0, 31, 3]"] ;
2 -> 3 ;
4 [label="entropy = 0.0\nsamples = 30\nvalue = [0, 30, 0]"] ;
3 -> 4 ;
5 [label="entropy = 0.8113\nsamples = 4\nvalue = [0, 1, 3]"] ;
3 -> 5 ;
6 [label="petal length <= 5.05\nentropy = 0.1793\nsamples = 37\nvalue = [0, 1, 36]"] ;
2 -> 6 ;
7 [label="entropy = 0.8113\nsamples = 4\nvalue = [0, 1, 3]"] ;
6 -> 7 ;
8 [label="entropy = 0.0\nsamples = 33\nvalue = [0, 0, 33]"] ;
6 -> 8 ;
}
Loading

0 comments on commit 29fe8f0

Please sign in to comment.