|
- <!doctype html>
- <html>
- <head>
- <meta charset='UTF-8'><meta name='viewport' content='width=device-width initial-scale=1'>
- <title>week4.md</title><link href='http://fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,700,400&subset=latin,latin-ext' rel='stylesheet' type='text/css' /><style type='text/css'>html {overflow-x: initial !important;}:root { --bg-color: #ffffff; --text-color: #333333; --code-block-bg-color: inherit; }
- html { font-size: 14px; background-color: var(--bg-color); color: var(--text-color); font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
- body { margin: 0px; padding: 0px; height: auto; bottom: 0px; top: 0px; left: 0px; right: 0px; font-size: 1rem; line-height: 1.42857; overflow-x: hidden; background: inherit; }
- a:active, a:hover { outline: 0px; }
- .in-text-selection, ::selection { background: rgb(181, 214, 252); text-shadow: none; }
- #write { margin: 0px auto; height: auto; width: inherit; word-break: normal; word-wrap: break-word; position: relative; padding-bottom: 70px; white-space: pre-wrap; overflow-x: visible; }
- .for-image #write { padding-left: 8px; padding-right: 8px; }
- body.typora-export { padding-left: 30px; padding-right: 30px; }
- @media screen and (max-width: 500px) {
- body.typora-export { padding-left: 0px; padding-right: 0px; }
- .CodeMirror-sizer { margin-left: 0px !important; }
- .CodeMirror-gutters { display: none !important; }
- }
- .typora-export #write { margin: 0px auto; }
- #write > p:first-child, #write > ul:first-child, #write > ol:first-child, #write > pre:first-child, #write > blockquote:first-child, #write > div:first-child, #write > table:first-child { margin-top: 30px; }
- #write li > table:first-child { margin-top: -20px; }
- img { max-width: 100%; vertical-align: middle; }
- input, button, select, textarea { color: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; }
- input[type="checkbox"], input[type="radio"] { line-height: normal; padding: 0px; }
- ::before, ::after, * { box-sizing: border-box; }
- #write p, #write h1, #write h2, #write h3, #write h4, #write h5, #write h6, #write div, #write pre { width: inherit; }
- #write p, #write h1, #write h2, #write h3, #write h4, #write h5, #write h6 { position: relative; }
- h1 { font-size: 2rem; }
- h2 { font-size: 1.8rem; }
- h3 { font-size: 1.6rem; }
- h4 { font-size: 1.4rem; }
- h5 { font-size: 1.2rem; }
- h6 { font-size: 1rem; }
- p { -webkit-margin-before: 1rem; -webkit-margin-after: 1rem; -webkit-margin-start: 0px; -webkit-margin-end: 0px; }
- .typora-export p { white-space: normal; }
- .mathjax-block { margin-top: 0px; margin-bottom: 0px; -webkit-margin-before: 0rem; -webkit-margin-after: 0rem; }
- .hidden { display: none; }
- .md-blockmeta { color: rgb(204, 204, 204); font-weight: bold; font-style: italic; }
- a { cursor: pointer; }
- sup.md-footnote { padding: 2px 4px; background-color: rgba(238, 238, 238, 0.7); color: rgb(85, 85, 85); border-radius: 4px; }
- #write input[type="checkbox"] { cursor: pointer; width: inherit; height: inherit; margin: 4px 0px 0px; }
- figure { max-width: 100%; overflow-x: auto; margin: 0px; }
- tr { break-inside: avoid; break-after: auto; }
- thead { display: table-header-group; }
- table { border-collapse: collapse; border-spacing: 0px; width: 100%; overflow: auto; break-inside: auto; text-align: left; }
- table.md-table td { min-width: 80px; }
- .CodeMirror-gutters { border-right: 0px; background-color: inherit; }
- .CodeMirror { text-align: left; }
- .CodeMirror-placeholder { opacity: 0.3; }
- .CodeMirror pre { padding: 0px 4px; }
- .CodeMirror-lines { padding: 0px; }
- div.hr:focus { cursor: none; }
- pre { white-space: pre-wrap; }
- .CodeMirror-gutters { margin-right: 4px; }
- .md-fences { font-size: 0.9rem; display: block; break-inside: avoid; text-align: left; overflow: visible; white-space: pre; background: var(--code-block-bg-color); position: relative !important; }
- .md-diagram-panel { width: 100%; margin-top: 10px; text-align: center; padding-top: 0px; padding-bottom: 8px; overflow-x: auto; }
- .md-fences .CodeMirror.CodeMirror-wrap { top: -1.6em; margin-bottom: -1.6em; }
- .md-fences.mock-cm { white-space: pre-wrap; }
- .show-fences-line-number .md-fences { padding-left: 0px; }
- .show-fences-line-number .md-fences.mock-cm { padding-left: 40px; }
- .CodeMirror-line { break-inside: avoid; }
- .footnotes { opacity: 0.8; font-size: 0.9rem; padding-top: 1em; padding-bottom: 1em; }
- .footnotes + .footnotes { margin-top: -1em; }
- .md-reset { margin: 0px; padding: 0px; border: 0px; outline: 0px; vertical-align: top; background: transparent; text-decoration: none; text-shadow: none; float: none; position: static; width: auto; height: auto; white-space: nowrap; cursor: inherit; -webkit-tap-highlight-color: transparent; line-height: normal; font-weight: normal; text-align: left; box-sizing: content-box; direction: ltr; }
- li div { padding-top: 0px; }
- blockquote { margin: 1rem 0px; }
- li p, li .mathjax-block { margin: 0.5rem 0px; }
- li { margin: 0px; position: relative; }
- blockquote > :last-child { margin-bottom: 0px; }
- blockquote > :first-child { margin-top: 0px; }
- .footnotes-area { color: rgb(136, 136, 136); margin-top: 0.714rem; padding-bottom: 0.143rem; }
- @media print {
- html, body { border: 1px solid transparent; height: 99%; break-after: avoid; break-before: avoid; }
- .typora-export * { -webkit-print-color-adjust: exact; }
- h1, h2, h3, h4, h5, h6 { break-after: avoid-page; orphans: 2; }
- p { orphans: 4; }
- html.blink-to-pdf { font-size: 13px; }
- .typora-export #write { padding-left: 1cm; padding-right: 1cm; padding-bottom: 0px; break-after: avoid; }
- .typora-export #write::after { height: 0px; }
- @page { margin: 20mm 0mm; }
- }
- .footnote-line { margin-top: 0.714em; font-size: 0.7em; }
- a img, img a { cursor: pointer; }
- pre.md-meta-block { font-size: 0.8rem; min-height: 2.86rem; white-space: pre-wrap; background: rgb(204, 204, 204); display: block; overflow-x: hidden; }
- p > img:only-child { display: block; margin: auto; }
- p .md-image:only-child { display: inline-block; width: 100%; text-align: center; }
- #write .MathJax_Display { margin: 0.8em 0px 0px; }
- .mathjax-block { white-space: pre; overflow: hidden; width: 100%; }
- p + .mathjax-block { margin-top: -1.143rem; }
- .mathjax-block:not(:empty)::after { display: none; }
- [contenteditable="true"]:active, [contenteditable="true"]:focus { outline: none; box-shadow: none; }
- .task-list { list-style-type: none; }
- .task-list-item { position: relative; padding-left: 1em; }
- .task-list-item input { position: absolute; top: 0px; left: 0px; }
- .math { font-size: 1rem; }
- .md-toc { min-height: 3.58rem; position: relative; font-size: 0.9rem; border-radius: 10px; }
- .md-toc-content { position: relative; margin-left: 0px; }
- .md-toc::after, .md-toc-content::after { display: none; }
- .md-toc-item { display: block; color: rgb(65, 131, 196); }
- .md-toc-item a { text-decoration: none; }
- .md-toc-inner:hover { }
- .md-toc-inner { display: inline-block; cursor: pointer; }
- .md-toc-h1 .md-toc-inner { margin-left: 0px; font-weight: bold; }
- .md-toc-h2 .md-toc-inner { margin-left: 2em; }
- .md-toc-h3 .md-toc-inner { margin-left: 4em; }
- .md-toc-h4 .md-toc-inner { margin-left: 6em; }
- .md-toc-h5 .md-toc-inner { margin-left: 8em; }
- .md-toc-h6 .md-toc-inner { margin-left: 10em; }
- @media screen and (max-width: 48em) {
- .md-toc-h3 .md-toc-inner { margin-left: 3.5em; }
- .md-toc-h4 .md-toc-inner { margin-left: 5em; }
- .md-toc-h5 .md-toc-inner { margin-left: 6.5em; }
- .md-toc-h6 .md-toc-inner { margin-left: 8em; }
- }
- a.md-toc-inner { font-size: inherit; font-style: inherit; font-weight: inherit; line-height: inherit; }
- .footnote-line a:not(.reversefootnote) { color: inherit; }
- .md-attr { display: none; }
- .md-fn-count::after { content: "."; }
- .md-tag { opacity: 0.5; }
- .md-comment { color: rgb(162, 127, 3); opacity: 0.8; font-family: monospace; }
- code { text-align: left; }
- h1 .md-tag, h2 .md-tag, h3 .md-tag, h4 .md-tag, h5 .md-tag, h6 .md-tag { font-weight: initial; opacity: 0.35; }
- a.md-print-anchor { border-width: initial !important; border-style: none !important; border-color: initial !important; display: inline-block !important; position: absolute !important; width: 1px !important; right: 0px !important; outline: none !important; background: transparent !important; text-decoration: initial !important; text-shadow: initial !important; }
- .md-inline-math .MathJax_SVG .noError { display: none !important; }
- .mathjax-block .MathJax_SVG_Display { text-align: center; margin: 1em 0em; position: relative; text-indent: 0px; max-width: none; max-height: none; min-height: 0px; min-width: 100%; width: auto; display: block !important; }
- .MathJax_SVG_Display, .md-inline-math .MathJax_SVG_Display { width: auto; margin: inherit; display: inline-block !important; }
- .MathJax_SVG .MJX-monospace { font-family: monospace; }
- .MathJax_SVG .MJX-sans-serif { font-family: sans-serif; }
- .MathJax_SVG { display: inline; font-style: normal; font-weight: normal; line-height: normal; zoom: 90%; text-indent: 0px; text-align: left; text-transform: none; letter-spacing: normal; word-spacing: normal; word-wrap: normal; white-space: nowrap; float: none; direction: ltr; max-width: none; max-height: none; min-width: 0px; min-height: 0px; border: 0px; padding: 0px; margin: 0px; }
- .MathJax_SVG * { transition: none; }
- .md-diagram-panel > svg { max-width: 100%; }
- [lang="flow"] svg, [lang="mermaid"] svg { max-width: 100%; }
-
-
- :root { --side-bar-bg-color: #fafafa; --control-text-color: #777; }
- @font-face { font-family: "Open Sans"; font-style: normal; font-weight: normal; src: local("Open Sans Regular"), url("./github/400.woff") format("woff"); }
- @font-face { font-family: "Open Sans"; font-style: italic; font-weight: normal; src: local("Open Sans Italic"), url("./github/400i.woff") format("woff"); }
- @font-face { font-family: "Open Sans"; font-style: normal; font-weight: bold; src: local("Open Sans Bold"), url("./github/700.woff") format("woff"); }
- @font-face { font-family: "Open Sans"; font-style: italic; font-weight: bold; src: local("Open Sans Bold Italic"), url("./github/700i.woff") format("woff"); }
- html { font-size: 16px; }
- body { font-family: "Open Sans", "Clear Sans", "Helvetica Neue", Helvetica, Arial, sans-serif; color: rgb(51, 51, 51); line-height: 1.6; }
- #write { max-width: 860px; margin: 0px auto; padding: 20px 30px 100px; }
- #write > ul:first-child, #write > ol:first-child { margin-top: 30px; }
- body > :first-child { margin-top: 0px !important; }
- body > :last-child { margin-bottom: 0px !important; }
- a { color: rgb(65, 131, 196); }
- h1, h2, h3, h4, h5, h6 { position: relative; margin-top: 1rem; margin-bottom: 1rem; font-weight: bold; line-height: 1.4; cursor: text; }
- h1:hover a.anchor, h2:hover a.anchor, h3:hover a.anchor, h4:hover a.anchor, h5:hover a.anchor, h6:hover a.anchor { text-decoration: none; }
- h1 tt, h1 code { font-size: inherit; }
- h2 tt, h2 code { font-size: inherit; }
- h3 tt, h3 code { font-size: inherit; }
- h4 tt, h4 code { font-size: inherit; }
- h5 tt, h5 code { font-size: inherit; }
- h6 tt, h6 code { font-size: inherit; }
- h1 { padding-bottom: 0.3em; font-size: 2.25em; line-height: 1.2; border-bottom: 1px solid rgb(238, 238, 238); }
- h2 { padding-bottom: 0.3em; font-size: 1.75em; line-height: 1.225; border-bottom: 1px solid rgb(238, 238, 238); }
- h3 { font-size: 1.5em; line-height: 1.43; }
- h4 { font-size: 1.25em; }
- h5 { font-size: 1em; }
- h6 { font-size: 1em; color: rgb(119, 119, 119); }
- p, blockquote, ul, ol, dl, table { margin: 0.8em 0px; }
- li > ol, li > ul { margin: 0px; }
- hr { height: 4px; padding: 0px; margin: 16px 0px; background-color: rgb(231, 231, 231); border-width: 0px 0px 1px; border-style: none none solid; border-top-color: initial; border-right-color: initial; border-left-color: initial; border-image: initial; overflow: hidden; box-sizing: content-box; border-bottom-color: rgb(221, 221, 221); }
- body > h2:first-child { margin-top: 0px; padding-top: 0px; }
- body > h1:first-child { margin-top: 0px; padding-top: 0px; }
- body > h1:first-child + h2 { margin-top: 0px; padding-top: 0px; }
- body > h3:first-child, body > h4:first-child, body > h5:first-child, body > h6:first-child { margin-top: 0px; padding-top: 0px; }
- 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: 0px; padding-top: 0px; }
- h1 p, h2 p, h3 p, h4 p, h5 p, h6 p { margin-top: 0px; }
- li p.first { display: inline-block; }
- ul, ol { padding-left: 30px; }
- ul:first-child, ol:first-child { margin-top: 0px; }
- ul:last-child, ol:last-child { margin-bottom: 0px; }
- blockquote { border-left: 4px solid rgb(221, 221, 221); padding: 0px 15px; color: rgb(119, 119, 119); }
- blockquote blockquote { padding-right: 0px; }
- table { padding: 0px; word-break: initial; }
- table tr { border-top: 1px solid rgb(204, 204, 204); margin: 0px; padding: 0px; }
- table tr:nth-child(2n) { background-color: rgb(248, 248, 248); }
- table tr th { font-weight: bold; border: 1px solid rgb(204, 204, 204); text-align: left; margin: 0px; padding: 6px 13px; }
- table tr td { border: 1px solid rgb(204, 204, 204); text-align: left; margin: 0px; padding: 6px 13px; }
- table tr th:first-child, table tr td:first-child { margin-top: 0px; }
- table tr th:last-child, table tr td:last-child { margin-bottom: 0px; }
- .CodeMirror-gutters { border-right: 1px solid rgb(221, 221, 221); }
- .md-fences, code, tt { border: 1px solid rgb(221, 221, 221); background-color: rgb(248, 248, 248); border-radius: 3px; font-family: Consolas, "Liberation Mono", Courier, monospace; padding: 2px 4px 0px; font-size: 0.9em; }
- .md-fences { margin-bottom: 15px; margin-top: 15px; padding: 8px 1em 6px; }
- .task-list { padding-left: 0px; }
- .task-list-item { padding-left: 32px; }
- .task-list-item input { top: 3px; left: 8px; }
- @media screen and (min-width: 914px) {
- }
- @media print {
- html { font-size: 13px; }
- table, pre { break-inside: avoid; }
- pre { word-wrap: break-word; }
- }
- .md-fences { background-color: rgb(248, 248, 248); }
- #write pre.md-meta-block { padding: 1rem; font-size: 85%; line-height: 1.45; background-color: rgb(247, 247, 247); border: 0px; border-radius: 3px; color: rgb(119, 119, 119); margin-top: 0px !important; }
- .mathjax-block > .code-tooltip { bottom: 0.375rem; }
- #write > h3.md-focus::before { left: -1.5625rem; top: 0.375rem; }
- #write > h4.md-focus::before { left: -1.5625rem; top: 0.285714rem; }
- #write > h5.md-focus::before { left: -1.5625rem; top: 0.285714rem; }
- #write > h6.md-focus::before { left: -1.5625rem; top: 0.285714rem; }
- .md-image > .md-meta { border: 1px solid rgb(221, 221, 221); border-radius: 3px; font-family: Consolas, "Liberation Mono", Courier, monospace; padding: 2px 4px 0px; font-size: 0.9em; color: inherit; }
- .md-tag { color: inherit; }
- .md-toc { margin-top: 20px; padding-bottom: 20px; }
- .sidebar-tabs { border-bottom: none; }
- #typora-quick-open { border: 1px solid rgb(221, 221, 221); background-color: rgb(248, 248, 248); }
- #typora-quick-open-item { background-color: rgb(250, 250, 250); border-color: rgb(254, 254, 254) rgb(229, 229, 229) rgb(229, 229, 229) rgb(238, 238, 238); border-style: solid; border-width: 1px; }
- #md-notification::before { top: 10px; }
- .on-focus-mode blockquote { border-left-color: rgba(85, 85, 85, 0.12); }
- header, .context-menu, .megamenu-content, footer { font-family: "Segoe UI", Arial, sans-serif; }
- .file-node-content:hover .file-node-icon, .file-node-content:hover .file-node-open-state { visibility: visible; }
- .mac-seamless-mode #typora-sidebar { background-color: var(--side-bar-bg-color); }
- .md-lang { color: rgb(180, 101, 77); }
-
-
-
-
-
-
- </style>
- </head>
- <body class='typora-export' >
- <div id='write' class = 'is-node show-fences-line-number'><div class='md-toc' mdtype='toc'><p class="md-toc-content"><span class="md-toc-item md-toc-h1" data-ref="n2"><a class="md-toc-inner" style="cursor: pointer;" href="#header-n2">8 神经网络:表达(Neural Networks: Representation)</a></span><span class="md-toc-item md-toc-h2" data-ref="n3"><a class="md-toc-inner" style="cursor: pointer;" href="#header-n3">8.1 非线性假设(Non-linear Hypotheses)</a></span><span class="md-toc-item md-toc-h2" data-ref="n14"><a class="md-toc-inner" style="cursor: pointer;" href="#header-n14">8.2 神经网络和大脑(Neurons and the Brain)</a></span><span class="md-toc-item md-toc-h2" data-ref="n29"><a class="md-toc-inner" style="cursor: pointer;" href="#header-n29">8.3 模型表示1(Model Representation I)</a></span><span class="md-toc-item md-toc-h2" data-ref="n30"><a class="md-toc-inner" style="cursor: pointer;" href="#header-n30">8.4 模型表示2(Model Representation II)</a></span><span class="md-toc-item md-toc-h2" data-ref="n31"><a class="md-toc-inner" style="cursor: pointer;" href="#header-n31">8.5 例子和直观理解1(Examples and Intuitions I)</a></span><span class="md-toc-item md-toc-h2" data-ref="n32"><a class="md-toc-inner" style="cursor: pointer;" href="#header-n32">8.6 例子和直观理解2(Examples and Intuitions II)</a></span><span class="md-toc-item md-toc-h2" data-ref="n33"><a class="md-toc-inner" style="cursor: pointer;" href="#header-n33">8.7 多类别分类(Multiclass Classification)</a></span></p></div><h1><a name='header-n2' class='md-header-anchor '></a>8 神经网络:表达(Neural Networks: Representation)</h1><h2><a name='header-n3' class='md-header-anchor '></a>8.1 非线性假设(Non-linear Hypotheses)</h2><p>理论上我们可以用多项式函数去近似任意函数,从而可得到任意问题的拟合曲线,即泰勒极数(Taylor series)。</p><p>在实际处理时,特征量通常会很多,如果再构造高阶多项式等,特征数量将会急剧增加,这使得线性模型的复杂度太高,可见并不合适。神经网络无需构造高阶多项式,在特征量很大时也可以处理的很好。</p><p>那特征能有多大呢?下面是一个计算机视觉中的例子:</p><p><img src='image/20180115_084326.png' alt='' /></p><p>如上图,如果选取一小块 <span class="MathJax_Preview"></span><span class="MathJax_SVG" id="MathJax-Element-284-Frame" tabindex="-1" style="font-size: 100%; display: inline-block;"><svg xmlns:xlink="http://www.w3.org/1999/xlink" width="6.845ex" height="1.994ex" viewBox="0 -755.9 2946.9 858.4" role="img" focusable="false" style="vertical-align: -0.238ex;"><defs><path stroke-width="1" id="E290-MJMAIN-35" d="M164 157Q164 133 148 117T109 101H102Q148 22 224 22Q294 22 326 82Q345 115 345 210Q345 313 318 349Q292 382 260 382H254Q176 382 136 314Q132 307 129 306T114 304Q97 304 95 310Q93 314 93 485V614Q93 664 98 664Q100 666 102 666Q103 666 123 658T178 642T253 634Q324 634 389 662Q397 666 402 666Q410 666 410 648V635Q328 538 205 538Q174 538 149 544L139 546V374Q158 388 169 396T205 412T256 420Q337 420 393 355T449 201Q449 109 385 44T229 -22Q148 -22 99 32T50 154Q50 178 61 192T84 210T107 214Q132 214 148 197T164 157Z"></path><path stroke-width="1" id="E290-MJMAIN-30" d="M96 585Q152 666 249 666Q297 666 345 640T423 548Q460 465 460 320Q460 165 417 83Q397 41 362 16T301 -15T250 -22Q224 -22 198 -16T137 16T82 83Q39 165 39 320Q39 494 96 585ZM321 597Q291 629 250 629Q208 629 178 597Q153 571 145 525T137 333Q137 175 145 125T181 46Q209 16 250 16Q290 16 318 46Q347 76 354 130T362 333Q362 478 354 524T321 597Z"></path><path stroke-width="1" id="E290-MJMAIN-2217" d="M229 286Q216 420 216 436Q216 454 240 464Q241 464 245 464T251 465Q263 464 273 456T283 436Q283 419 277 356T270 286L328 328Q384 369 389 372T399 375Q412 375 423 365T435 338Q435 325 425 315Q420 312 357 282T289 250L355 219L425 184Q434 175 434 161Q434 146 425 136T401 125Q393 125 383 131T328 171L270 213Q283 79 283 63Q283 53 276 44T250 35Q231 35 224 44T216 63Q216 80 222 143T229 213L171 171Q115 130 110 127Q106 124 100 124Q87 124 76 134T64 161Q64 166 64 169T67 175T72 181T81 188T94 195T113 204T138 215T170 230T210 250L74 315Q65 324 65 338Q65 353 74 363T98 374Q106 374 116 368T171 328L229 286Z"></path></defs><g stroke="currentColor" fill="currentColor" stroke-width="0" transform="matrix(1 0 0 -1 0 0)"><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#E290-MJMAIN-35"></use><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#E290-MJMAIN-30" x="500" y="0"></use><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#E290-MJMAIN-2217" x="1223" y="0"></use><g transform="translate(1945,0)"><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#E290-MJMAIN-35"></use><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#E290-MJMAIN-30" x="500" y="0"></use></g></g></svg></span><script type="math/tex" id="MathJax-Element-284">50 * 50</script> 像素的灰度图片(一个像素只有亮度一个值),选择每个像素点作为特征,则特征总量 <span class="MathJax_Preview"></span><span class="MathJax_SVG" id="MathJax-Element-297-Frame" tabindex="-1" style="font-size: 100%; display: inline-block;"><svg xmlns:xlink="http://www.w3.org/1999/xlink" width="9.143ex" height="1.994ex" viewBox="0 -755.9 3936.6 858.4" role="img" focusable="false" style="vertical-align: -0.238ex;"><defs><path stroke-width="1" id="E312-MJMATHI-6E" d="M21 287Q22 293 24 303T36 341T56 388T89 425T135 442Q171 442 195 424T225 390T231 369Q231 367 232 367L243 378Q304 442 382 442Q436 442 469 415T503 336T465 179T427 52Q427 26 444 26Q450 26 453 27Q482 32 505 65T540 145Q542 153 560 153Q580 153 580 145Q580 144 576 130Q568 101 554 73T508 17T439 -10Q392 -10 371 17T350 73Q350 92 386 193T423 345Q423 404 379 404H374Q288 404 229 303L222 291L189 157Q156 26 151 16Q138 -11 108 -11Q95 -11 87 -5T76 7T74 17Q74 30 112 180T152 343Q153 348 153 366Q153 405 129 405Q91 405 66 305Q60 285 60 284Q58 278 41 278H27Q21 284 21 287Z"></path><path stroke-width="1" id="E312-MJMAIN-3D" d="M56 347Q56 360 70 367H707Q722 359 722 347Q722 336 708 328L390 327H72Q56 332 56 347ZM56 153Q56 168 72 173H708Q722 163 722 153Q722 140 707 133H70Q56 140 56 153Z"></path><path stroke-width="1" id="E312-MJMAIN-32" d="M109 429Q82 429 66 447T50 491Q50 562 103 614T235 666Q326 666 387 610T449 465Q449 422 429 383T381 315T301 241Q265 210 201 149L142 93L218 92Q375 92 385 97Q392 99 409 186V189H449V186Q448 183 436 95T421 3V0H50V19V31Q50 38 56 46T86 81Q115 113 136 137Q145 147 170 174T204 211T233 244T261 278T284 308T305 340T320 369T333 401T340 431T343 464Q343 527 309 573T212 619Q179 619 154 602T119 569T109 550Q109 549 114 549Q132 549 151 535T170 489Q170 464 154 447T109 429Z"></path><path stroke-width="1" id="E312-MJMAIN-35" d="M164 157Q164 133 148 117T109 101H102Q148 22 224 22Q294 22 326 82Q345 115 345 210Q345 313 318 349Q292 382 260 382H254Q176 382 136 314Q132 307 129 306T114 304Q97 304 95 310Q93 314 93 485V614Q93 664 98 664Q100 666 102 666Q103 666 123 658T178 642T253 634Q324 634 389 662Q397 666 402 666Q410 666 410 648V635Q328 538 205 538Q174 538 149 544L139 546V374Q158 388 169 396T205 412T256 420Q337 420 393 355T449 201Q449 109 385 44T229 -22Q148 -22 99 32T50 154Q50 178 61 192T84 210T107 214Q132 214 148 197T164 157Z"></path><path stroke-width="1" id="E312-MJMAIN-30" d="M96 585Q152 666 249 666Q297 666 345 640T423 548Q460 465 460 320Q460 165 417 83Q397 41 362 16T301 -15T250 -22Q224 -22 198 -16T137 16T82 83Q39 165 39 320Q39 494 96 585ZM321 597Q291 629 250 629Q208 629 178 597Q153 571 145 525T137 333Q137 175 145 125T181 46Q209 16 250 16Q290 16 318 46Q347 76 354 130T362 333Q362 478 354 524T321 597Z"></path></defs><g stroke="currentColor" fill="currentColor" stroke-width="0" transform="matrix(1 0 0 -1 0 0)"><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#E312-MJMATHI-6E" x="0" y="0"></use><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#E312-MJMAIN-3D" x="878" y="0"></use><g transform="translate(1934,0)"><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#E312-MJMAIN-32"></use><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#E312-MJMAIN-35" x="500" y="0"></use><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#E312-MJMAIN-30" x="1001" y="0"></use><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#E312-MJMAIN-30" x="1501" y="0"></use></g></g></svg></span><script type="math/tex" id="MathJax-Element-297">n=2500</script>(换成 RGB(一个像素有三个值),则 <span class="MathJax_Preview"></span><span class="MathJax_SVG" id="MathJax-Element-308-Frame" tabindex="-1" style="font-size: 100%; display: inline-block;"><svg xmlns:xlink="http://www.w3.org/1999/xlink" width="9.143ex" height="1.994ex" viewBox="0 -755.9 3936.6 858.4" role="img" focusable="false" style="vertical-align: -0.238ex;"><defs><path stroke-width="1" id="E328-MJMATHI-6E" d="M21 287Q22 293 24 303T36 341T56 388T89 425T135 442Q171 442 195 424T225 390T231 369Q231 367 232 367L243 378Q304 442 382 442Q436 442 469 415T503 336T465 179T427 52Q427 26 444 26Q450 26 453 27Q482 32 505 65T540 145Q542 153 560 153Q580 153 580 145Q580 144 576 130Q568 101 554 73T508 17T439 -10Q392 -10 371 17T350 73Q350 92 386 193T423 345Q423 404 379 404H374Q288 404 229 303L222 291L189 157Q156 26 151 16Q138 -11 108 -11Q95 -11 87 -5T76 7T74 17Q74 30 112 180T152 343Q153 348 153 366Q153 405 129 405Q91 405 66 305Q60 285 60 284Q58 278 41 278H27Q21 284 21 287Z"></path><path stroke-width="1" id="E328-MJMAIN-3D" d="M56 347Q56 360 70 367H707Q722 359 722 347Q722 336 708 328L390 327H72Q56 332 56 347ZM56 153Q56 168 72 173H708Q722 163 722 153Q722 140 707 133H70Q56 140 56 153Z"></path><path stroke-width="1" id="E328-MJMAIN-37" d="M55 458Q56 460 72 567L88 674Q88 676 108 676H128V672Q128 662 143 655T195 646T364 644H485V605L417 512Q408 500 387 472T360 435T339 403T319 367T305 330T292 284T284 230T278 162T275 80Q275 66 275 52T274 28V19Q270 2 255 -10T221 -22Q210 -22 200 -19T179 0T168 40Q168 198 265 368Q285 400 349 489L395 552H302Q128 552 119 546Q113 543 108 522T98 479L95 458V455H55V458Z"></path><path stroke-width="1" id="E328-MJMAIN-35" d="M164 157Q164 133 148 117T109 101H102Q148 22 224 22Q294 22 326 82Q345 115 345 210Q345 313 318 349Q292 382 260 382H254Q176 382 136 314Q132 307 129 306T114 304Q97 304 95 310Q93 314 93 485V614Q93 664 98 664Q100 666 102 666Q103 666 123 658T178 642T253 634Q324 634 389 662Q397 666 402 666Q410 666 410 648V635Q328 538 205 538Q174 538 149 544L139 546V374Q158 388 169 396T205 412T256 420Q337 420 393 355T449 201Q449 109 385 44T229 -22Q148 -22 99 32T50 154Q50 178 61 192T84 210T107 214Q132 214 148 197T164 157Z"></path><path stroke-width="1" id="E328-MJMAIN-30" d="M96 585Q152 666 249 666Q297 666 345 640T423 548Q460 465 460 320Q460 165 417 83Q397 41 362 16T301 -15T250 -22Q224 -22 198 -16T137 16T82 83Q39 165 39 320Q39 494 96 585ZM321 597Q291 629 250 629Q208 629 178 597Q153 571 145 525T137 333Q137 175 145 125T181 46Q209 16 250 16Q290 16 318 46Q347 76 354 130T362 333Q362 478 354 524T321 597Z"></path></defs><g stroke="currentColor" fill="currentColor" stroke-width="0" transform="matrix(1 0 0 -1 0 0)"><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#E328-MJMATHI-6E" x="0" y="0"></use><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#E328-MJMAIN-3D" x="878" y="0"></use><g transform="translate(1934,0)"><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#E328-MJMAIN-37"></use><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#E328-MJMAIN-35" x="500" y="0"></use><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#E328-MJMAIN-30" x="1001" y="0"></use><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#E328-MJMAIN-30" x="1501" y="0"></use></g></g></svg></span><script type="math/tex" id="MathJax-Element-308">n = 7500</script>),如果将其两两组合作为新特征,则特征数量将为 <span class="MathJax_Preview"></span><span class="MathJax_SVG" id="MathJax-Element-364-Frame" tabindex="-1" style="font-size: 100%; display: inline-block;"><svg xmlns:xlink="http://www.w3.org/1999/xlink" width="17.578ex" height="3.044ex" viewBox="0 -906.7 7568.2 1310.7" role="img" focusable="false" style="vertical-align: -0.938ex;"><defs><path stroke-width="1" id="E430-MJMATHI-43" d="M50 252Q50 367 117 473T286 641T490 704Q580 704 633 653Q642 643 648 636T656 626L657 623Q660 623 684 649Q691 655 699 663T715 679T725 690L740 705H746Q760 705 760 698Q760 694 728 561Q692 422 692 421Q690 416 687 415T669 413H653Q647 419 647 422Q647 423 648 429T650 449T651 481Q651 552 619 605T510 659Q484 659 454 652T382 628T299 572T226 479Q194 422 175 346T156 222Q156 108 232 58Q280 24 350 24Q441 24 512 92T606 240Q610 253 612 255T628 257Q648 257 648 248Q648 243 647 239Q618 132 523 55T319 -22Q206 -22 128 53T50 252Z"></path><path stroke-width="1" id="E430-MJMAIN-32" d="M109 429Q82 429 66 447T50 491Q50 562 103 614T235 666Q326 666 387 610T449 465Q449 422 429 383T381 315T301 241Q265 210 201 149L142 93L218 92Q375 92 385 97Q392 99 409 186V189H449V186Q448 183 436 95T421 3V0H50V19V31Q50 38 56 46T86 81Q115 113 136 137Q145 147 170 174T204 211T233 244T261 278T284 308T305 340T320 369T333 401T340 431T343 464Q343 527 309 573T212 619Q179 619 154 602T119 569T109 550Q109 549 114 549Q132 549 151 535T170 489Q170 464 154 447T109 429Z"></path><path stroke-width="1" id="E430-MJMAIN-35" d="M164 157Q164 133 148 117T109 101H102Q148 22 224 22Q294 22 326 82Q345 115 345 210Q345 313 318 349Q292 382 260 382H254Q176 382 136 314Q132 307 129 306T114 304Q97 304 95 310Q93 314 93 485V614Q93 664 98 664Q100 666 102 666Q103 666 123 658T178 642T253 634Q324 634 389 662Q397 666 402 666Q410 666 410 648V635Q328 538 205 538Q174 538 149 544L139 546V374Q158 388 169 396T205 412T256 420Q337 420 393 355T449 201Q449 109 385 44T229 -22Q148 -22 99 32T50 154Q50 178 61 192T84 210T107 214Q132 214 148 197T164 157Z"></path><path stroke-width="1" id="E430-MJMAIN-30" d="M96 585Q152 666 249 666Q297 666 345 640T423 548Q460 465 460 320Q460 165 417 83Q397 41 362 16T301 -15T250 -22Q224 -22 198 -16T137 16T82 83Q39 165 39 320Q39 494 96 585ZM321 597Q291 629 250 629Q208 629 178 597Q153 571 145 525T137 333Q137 175 145 125T181 46Q209 16 250 16Q290 16 318 46Q347 76 354 130T362 333Q362 478 354 524T321 597Z"></path><path stroke-width="1" id="E430-MJMAIN-2248" d="M55 319Q55 360 72 393T114 444T163 472T205 482Q207 482 213 482T223 483Q262 483 296 468T393 413L443 381Q502 346 553 346Q609 346 649 375T694 454Q694 465 698 474T708 483Q722 483 722 452Q722 386 675 338T555 289Q514 289 468 310T388 357T308 404T224 426Q164 426 125 393T83 318Q81 289 69 289Q55 289 55 319ZM55 85Q55 126 72 159T114 210T163 238T205 248Q207 248 213 248T223 249Q262 249 296 234T393 179L443 147Q502 112 553 112Q609 112 649 141T694 220Q694 249 708 249T722 217Q722 153 675 104T555 55Q514 55 468 76T388 123T308 170T224 192Q164 192 125 159T83 84Q80 55 69 55Q55 55 55 85Z"></path><path stroke-width="1" id="E430-MJMAIN-33" d="M127 463Q100 463 85 480T69 524Q69 579 117 622T233 665Q268 665 277 664Q351 652 390 611T430 522Q430 470 396 421T302 350L299 348Q299 347 308 345T337 336T375 315Q457 262 457 175Q457 96 395 37T238 -22Q158 -22 100 21T42 130Q42 158 60 175T105 193Q133 193 151 175T169 130Q169 119 166 110T159 94T148 82T136 74T126 70T118 67L114 66Q165 21 238 21Q293 21 321 74Q338 107 338 175V195Q338 290 274 322Q259 328 213 329L171 330L168 332Q166 335 166 348Q166 366 174 366Q202 366 232 371Q266 376 294 413T322 525V533Q322 590 287 612Q265 626 240 626Q208 626 181 615T143 592T132 580H135Q138 579 143 578T153 573T165 566T175 555T183 540T186 520Q186 498 172 481T127 463Z"></path><path stroke-width="1" id="E430-MJMATHI-6D" d="M21 287Q22 293 24 303T36 341T56 388T88 425T132 442T175 435T205 417T221 395T229 376L231 369Q231 367 232 367L243 378Q303 442 384 442Q401 442 415 440T441 433T460 423T475 411T485 398T493 385T497 373T500 364T502 357L510 367Q573 442 659 442Q713 442 746 415T780 336Q780 285 742 178T704 50Q705 36 709 31T724 26Q752 26 776 56T815 138Q818 149 821 151T837 153Q857 153 857 145Q857 144 853 130Q845 101 831 73T785 17T716 -10Q669 -10 648 17T627 73Q627 92 663 193T700 345Q700 404 656 404H651Q565 404 506 303L499 291L466 157Q433 26 428 16Q415 -11 385 -11Q372 -11 364 -4T353 8T350 18Q350 29 384 161L420 307Q423 322 423 345Q423 404 379 404H374Q288 404 229 303L222 291L189 157Q156 26 151 16Q138 -11 108 -11Q95 -11 87 -5T76 7T74 17Q74 30 112 181Q151 335 151 342Q154 357 154 369Q154 405 129 405Q107 405 92 377T69 316T57 280Q55 278 41 278H27Q21 284 21 287Z"></path><path stroke-width="1" id="E430-MJMATHI-69" d="M184 600Q184 624 203 642T247 661Q265 661 277 649T290 619Q290 596 270 577T226 557Q211 557 198 567T184 600ZM21 287Q21 295 30 318T54 369T98 420T158 442Q197 442 223 419T250 357Q250 340 236 301T196 196T154 83Q149 61 149 51Q149 26 166 26Q175 26 185 29T208 43T235 78T260 137Q263 149 265 151T282 153Q302 153 302 143Q302 135 293 112T268 61T223 11T161 -11Q129 -11 102 10T74 74Q74 91 79 106T122 220Q160 321 166 341T173 380Q173 404 156 404H154Q124 404 99 371T61 287Q60 286 59 284T58 281T56 279T53 278T49 278T41 278H27Q21 284 21 287Z"></path><path stroke-width="1" id="E430-MJMATHI-6C" d="M117 59Q117 26 142 26Q179 26 205 131Q211 151 215 152Q217 153 225 153H229Q238 153 241 153T246 151T248 144Q247 138 245 128T234 90T214 43T183 6T137 -11Q101 -11 70 11T38 85Q38 97 39 102L104 360Q167 615 167 623Q167 626 166 628T162 632T157 634T149 635T141 636T132 637T122 637Q112 637 109 637T101 638T95 641T94 647Q94 649 96 661Q101 680 107 682T179 688Q194 689 213 690T243 693T254 694Q266 694 266 686Q266 675 193 386T118 83Q118 81 118 75T117 65V59Z"></path><path stroke-width="1" id="E430-MJMATHI-6F" d="M201 -11Q126 -11 80 38T34 156Q34 221 64 279T146 380Q222 441 301 441Q333 441 341 440Q354 437 367 433T402 417T438 387T464 338T476 268Q476 161 390 75T201 -11ZM121 120Q121 70 147 48T206 26Q250 26 289 58T351 142Q360 163 374 216T388 308Q388 352 370 375Q346 405 306 405Q243 405 195 347Q158 303 140 230T121 120Z"></path><path stroke-width="1" id="E430-MJMATHI-6E" d="M21 287Q22 293 24 303T36 341T56 388T89 425T135 442Q171 442 195 424T225 390T231 369Q231 367 232 367L243 378Q304 442 382 442Q436 442 469 415T503 336T465 179T427 52Q427 26 444 26Q450 26 453 27Q482 32 505 65T540 145Q542 153 560 153Q580 153 580 145Q580 144 576 130Q568 101 554 73T508 17T439 -10Q392 -10 371 17T350 73Q350 92 386 193T423 345Q423 404 379 404H374Q288 404 229 303L222 291L189 157Q156 26 151 16Q138 -11 108 -11Q95 -11 87 -5T76 7T74 17Q74 30 112 180T152 343Q153 348 153 366Q153 405 129 405Q91 405 66 305Q60 285 60 284Q58 278 41 278H27Q21 284 21 287Z"></path></defs><g stroke="currentColor" fill="currentColor" stroke-width="0" transform="matrix(1 0 0 -1 0 0)"><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#E430-MJMATHI-43" x="0" y="0"></use><use transform="scale(0.707)" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#E430-MJMAIN-32" x="1094" y="488"></use><g transform="translate(715,-308)"><use transform="scale(0.707)" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#E430-MJMAIN-32"></use><use transform="scale(0.707)" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#E430-MJMAIN-35" x="500" y="0"></use><use transform="scale(0.707)" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#E430-MJMAIN-30" x="1001" y="0"></use><use transform="scale(0.707)" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#E430-MJMAIN-30" x="1501" y="0"></use></g><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#E430-MJMAIN-2248" x="2508" y="0"></use><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#E430-MJMAIN-33" x="3565" y="0"></use><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#E430-MJMATHI-6D" x="4315" y="0"></use><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#E430-MJMATHI-69" x="5194" y="0"></use><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#E430-MJMATHI-6C" x="5539" y="0"></use><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#E430-MJMATHI-6C" x="5838" y="0"></use><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#E430-MJMATHI-69" x="6136" y="0"></use><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#E430-MJMATHI-6F" x="6482" y="0"></use><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#E430-MJMATHI-6E" x="6967" y="0"></use></g></svg></span><script type="math/tex" id="MathJax-Element-364">C_{2500}^{2} \approx 3\ million</script>。</p><h2><a name='header-n14' class='md-header-anchor '></a>8.2 神经网络和大脑(Neurons and the Brain)</h2><p>脑科学家通过对动物实验,发现大脑中专用于处理听觉信号的脑皮层也能处理其他诸如视觉等信号,即如果切断其与耳朵的联系,将其与眼睛相连,则这块负责听觉的脑皮层区域也能接受并处理视觉信号,从而学会“看”。脑科学家通过这类换源实验,就推论假设大脑的学习算法只有一种(“one learning algorithm” hypothesis)。那么如果能找出这种学习算法并应用于计算机中,那梦想中和人一样的人工智能就成真了。</p><p>神经网络就源于<strong>模拟人类大脑</strong>,但其需要的计算量很大。随着计算机硬件性能的提高,神经网络逐渐从衰落变为流行,如今已广泛地被应用在各行各业中。</p><p>下图是根据研究做的一些应用(有兴趣可回顾视频):</p><p><img src='image/20180115_101441.png' alt='' /></p><p>BrainPort 系统:帮助失明人士通过摄像头以及舌尖感官“看”东西</p><p><img src='image/20180115_101442.png' alt='' /></p><p>触觉皮带:在朝北时蜂鸣器会发出声响,可使人拥有方向感(声音信号转换为方向信号)。</p><h2><a name='header-n29' class='md-header-anchor '></a>8.3 模型表示1(Model Representation I)</h2><p> </p><h2><a name='header-n30' class='md-header-anchor '></a>8.4 模型表示2(Model Representation II)</h2><h2><a name='header-n31' class='md-header-anchor '></a>8.5 例子和直观理解1(Examples and Intuitions I)</h2><h2><a name='header-n32' class='md-header-anchor '></a>8.6 例子和直观理解2(Examples and Intuitions II)</h2><h2><a name='header-n33' class='md-header-anchor '></a>8.7 多类别分类(Multiclass Classification)</h2></div>
- </body>
- </html>
|