Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenDocCN
hands-on-ml-zh
提交
24aabf15
H
hands-on-ml-zh
项目概览
OpenDocCN
/
hands-on-ml-zh
通知
13
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
H
hands-on-ml-zh
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
24aabf15
编写于
6月 12, 2018
作者:
W
wizardforcel
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
gitbook
上级
9d112eaa
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
289 addition
and
0 deletion
+289
-0
docs/6.决策树.md
docs/6.决策树.md
+5
-0
styles/ebook.css
styles/ebook.css
+284
-0
未找到文件。
docs/6.决策树.md
浏览文件 @
24aabf15
{% raw %}
# 第6章 决策树
和支持向量机一样, 决策树是一种多功能机器学习算法, 即可以执行分类任务也可以执行回归任务, 甚至包括多输出(multioutput)任务.
...
...
@@ -264,3 +266,5 @@ CART 算法的工作方式与之前处理分类模型基本一样,不同之处
3. 见证奇迹的时刻到了!对于每个测试集实例,生成 1,000 个决策树的预测结果,然后只保留出现次数最多的预测结果(您可以使用 SciPy 的`mode()`函数)。这个函数使你可以对测试集进行多数投票预测。
4. 在测试集上评估这些预测结果,你应该获得了一个比第一个模型高一点的准确率,(大约 0.5% 到 1.5%),恭喜,你已经弄出了一个随机森林分类器模型!
{% endraw %}
\ No newline at end of file
styles/ebook.css
0 → 100644
浏览文件 @
24aabf15
/* GitHub stylesheet for MarkdownPad (http://markdownpad.com) */
/* Author: Nicolas Hery - http://nicolashery.com */
/* Version: b13fe65ca28d2e568c6ed5d7f06581183df8f2ff */
/* Source: https://github.com/nicolahery/markdownpad-github */
/* RESET
=============================================================================*/
html
,
body
,
div
,
span
,
applet
,
object
,
iframe
,
h1
,
h2
,
h3
,
h4
,
h5
,
h6
,
p
,
blockquote
,
pre
,
a
,
abbr
,
acronym
,
address
,
big
,
cite
,
code
,
del
,
dfn
,
em
,
img
,
ins
,
kbd
,
q
,
s
,
samp
,
small
,
strike
,
strong
,
sub
,
sup
,
tt
,
var
,
b
,
u
,
i
,
center
,
dl
,
dt
,
dd
,
ol
,
ul
,
li
,
fieldset
,
form
,
label
,
legend
,
table
,
caption
,
tbody
,
tfoot
,
thead
,
tr
,
th
,
td
,
article
,
aside
,
canvas
,
details
,
embed
,
figure
,
figcaption
,
footer
,
header
,
hgroup
,
menu
,
nav
,
output
,
ruby
,
section
,
summary
,
time
,
mark
,
audio
,
video
{
margin
:
0
;
padding
:
0
;
border
:
0
;
}
/* BODY
=============================================================================*/
body
{
font-family
:
Helvetica
,
arial
,
freesans
,
clean
,
sans-serif
;
font-size
:
14px
;
line-height
:
1.6
;
color
:
#333
;
background-color
:
#fff
;
padding
:
20px
;
max-width
:
960px
;
margin
:
0
auto
;
}
body
>*
:first-child
{
margin-top
:
0
!important
;
}
body
>*
:last-child
{
margin-bottom
:
0
!important
;
}
/* BLOCKS
=============================================================================*/
p
,
blockquote
,
ul
,
ol
,
dl
,
table
,
pre
{
margin
:
15px
0
;
}
/* HEADERS
=============================================================================*/
h1
,
h2
,
h3
,
h4
,
h5
,
h6
{
margin
:
20px
0
10px
;
padding
:
0
;
font-weight
:
bold
;
-webkit-font-smoothing
:
antialiased
;
}
h1
tt
,
h1
code
,
h2
tt
,
h2
code
,
h3
tt
,
h3
code
,
h4
tt
,
h4
code
,
h5
tt
,
h5
code
,
h6
tt
,
h6
code
{
font-size
:
inherit
;
}
h1
{
font-size
:
24px
;
border-bottom
:
1px
solid
#ccc
;
color
:
#000
;
}
h2
{
font-size
:
18px
;
color
:
#000
;
}
h3
{
font-size
:
14px
;
}
h4
{
font-size
:
14px
;
}
h5
{
font-size
:
14px
;
}
h6
{
color
:
#777
;
font-size
:
14px
;
}
body
>
h2
:first-child
,
body
>
h1
:first-child
,
body
>
h1
:first-child
+
h2
,
body
>
h3
:first-child
,
body
>
h4
:first-child
,
body
>
h5
:first-child
,
body
>
h6
:first-child
{
margin-top
:
0
;
padding-top
:
0
;
}
a
:first-child
h1
,
a
:first-child
h2
,
a
:first-child
h3
,
a
:first-child
h4
,
a
:first-child
h5
,
a
:first-child
h6
{
margin-top
:
0
;
padding-top
:
0
;
}
h1
+
p
,
h2
+
p
,
h3
+
p
,
h4
+
p
,
h5
+
p
,
h6
+
p
{
margin-top
:
10px
;
}
/* LINKS
=============================================================================*/
a
{
color
:
#4183C4
;
text-decoration
:
none
;
}
a
:hover
{
text-decoration
:
underline
;
}
/* LISTS
=============================================================================*/
ul
,
ol
{
padding-left
:
30px
;
}
ul
li
>
:first-child
,
ol
li
>
:first-child
,
ul
li
ul
:first-of-type
,
ol
li
ol
:first-of-type
,
ul
li
ol
:first-of-type
,
ol
li
ul
:first-of-type
{
margin-top
:
0px
;
}
ul
ul
,
ul
ol
,
ol
ol
,
ol
ul
{
margin-bottom
:
0
;
}
dl
{
padding
:
0
;
}
dl
dt
{
font-size
:
14px
;
font-weight
:
bold
;
font-style
:
italic
;
padding
:
0
;
margin
:
15px
0
5px
;
}
dl
dt
:first-child
{
padding
:
0
;
}
dl
dt
>
:first-child
{
margin-top
:
0px
;
}
dl
dt
>
:last-child
{
margin-bottom
:
0px
;
}
dl
dd
{
margin
:
0
0
15px
;
padding
:
0
15px
;
}
dl
dd
>
:first-child
{
margin-top
:
0px
;
}
dl
dd
>
:last-child
{
margin-bottom
:
0px
;
}
/* CODE
=============================================================================*/
pre
,
code
,
tt
{
font-size
:
12px
;
font-family
:
Consolas
,
"Liberation Mono"
,
Courier
,
monospace
;
}
code
,
tt
{
margin
:
0
0px
;
padding
:
0px
0px
;
white-space
:
nowrap
;
border
:
1px
solid
#eaeaea
;
background-color
:
#f8f8f8
;
border-radius
:
3px
;
}
pre
>
code
{
margin
:
0
;
padding
:
0
;
white-space
:
pre
;
border
:
none
;
background
:
transparent
;
}
pre
{
background-color
:
#f8f8f8
;
border
:
1px
solid
#ccc
;
font-size
:
13px
;
line-height
:
19px
;
overflow
:
auto
;
padding
:
6px
10px
;
border-radius
:
3px
;
}
pre
code
,
pre
tt
{
background-color
:
transparent
;
border
:
none
;
}
kbd
{
-moz-border-bottom-colors
:
none
;
-moz-border-left-colors
:
none
;
-moz-border-right-colors
:
none
;
-moz-border-top-colors
:
none
;
background-color
:
#DDDDDD
;
background-image
:
linear-gradient
(
#F1F1F1
,
#DDDDDD
);
background-repeat
:
repeat-x
;
border-color
:
#DDDDDD
#CCCCCC
#CCCCCC
#DDDDDD
;
border-image
:
none
;
border-radius
:
2px
2px
2px
2px
;
border-style
:
solid
;
border-width
:
1px
;
font-family
:
"Helvetica Neue"
,
Helvetica
,
Arial
,
sans-serif
;
line-height
:
10px
;
padding
:
1px
4px
;
}
/* QUOTES
=============================================================================*/
blockquote
{
border-left
:
4px
solid
#DDD
;
padding
:
0
15px
;
color
:
#777
;
}
blockquote
>
:first-child
{
margin-top
:
0px
;
}
blockquote
>
:last-child
{
margin-bottom
:
0px
;
}
/* HORIZONTAL RULES
=============================================================================*/
hr
{
clear
:
both
;
margin
:
15px
0
;
height
:
0px
;
overflow
:
hidden
;
border
:
none
;
background
:
transparent
;
border-bottom
:
4px
solid
#ddd
;
padding
:
0
;
}
/* TABLES
=============================================================================*/
table
th
{
font-weight
:
bold
;
}
table
th
,
table
td
{
border
:
1px
solid
#ccc
;
padding
:
6px
13px
;
}
table
tr
{
border-top
:
1px
solid
#ccc
;
background-color
:
#fff
;
}
table
tr
:nth-child
(
2
n
)
{
background-color
:
#f8f8f8
;
}
/* IMAGES
=============================================================================*/
img
{
max-width
:
100%
}
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录