{"id":2444,"date":"2024-10-29T14:01:32","date_gmt":"2024-10-29T06:01:32","guid":{"rendered":"https:\/\/sanlangcode.com\/?p=2444"},"modified":"2024-10-29T14:01:32","modified_gmt":"2024-10-29T06:01:32","slug":"%e5%8c%bb%e5%ad%a6%e5%9b%be%e5%83%8f%e5%88%86%e5%89%b2%e9%87%8f%e5%8c%96%e6%a8%a1%e5%9e%8b%e7%9a%84%e6%80%a7%e8%83%bd%e7%9a%84%e8%af%84%e4%bc%b0%e6%8c%87%e6%a0%87","status":"publish","type":"post","link":"https:\/\/sanlangcode.com\/index.php\/2024\/10\/29\/%e5%8c%bb%e5%ad%a6%e5%9b%be%e5%83%8f%e5%88%86%e5%89%b2%e9%87%8f%e5%8c%96%e6%a8%a1%e5%9e%8b%e7%9a%84%e6%80%a7%e8%83%bd%e7%9a%84%e8%af%84%e4%bc%b0%e6%8c%87%e6%a0%87\/","title":{"rendered":"\u533b\u5b66\u56fe\u50cf\u5206\u5272\u91cf\u5316\u6a21\u578b\u7684\u6027\u80fd\u7684\u8bc4\u4f30\u6307\u6807"},"content":{"rendered":"\n<!doctype html>\n<html style='font-size:20px !important'>\n<head>\n<meta charset='UTF-8'><meta name='viewport' content='width=device-width initial-scale=1'>\n<link href='https:\/\/fonts.loli.net\/css?family=Open+Sans:400italic,700italic,700,400&#038;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; --select-text-bg-color:#B5D6FC; --select-text-font-color:auto; --monospace:\"Lucida Console\",Consolas,\"Courier\",monospace; --title-bar-height:20px; }\n.mac-os-11 { --title-bar-height:28px; }\nhtml { font-size: 14px; background-color: var(--bg-color); color: var(--text-color); font-family: \"Helvetica Neue\", Helvetica, Arial, sans-serif; -webkit-font-smoothing: antialiased; }\nbody { 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; tab-size: 4; }\niframe { margin: auto; }\na.url { word-break: break-all; }\na:active, a:hover { outline: 0px; }\n.in-text-selection, ::selection { text-shadow: none; background: var(--select-text-bg-color); color: var(--select-text-font-color); }\n#write { margin: 0px auto; height: auto; width: inherit; word-break: normal; overflow-wrap: break-word; position: relative; white-space: normal; overflow-x: visible; padding-top: 36px; }\n#write.first-line-indent p { text-indent: 2em; }\n#write.first-line-indent li p, #write.first-line-indent p * { text-indent: 0px; }\n#write.first-line-indent li { margin-left: 2em; }\n.for-image #write { padding-left: 8px; padding-right: 8px; }\nbody.typora-export { padding-left: 30px; padding-right: 30px; }\n.typora-export .footnote-line, .typora-export li, .typora-export p { white-space: pre-wrap; }\n.typora-export .task-list-item input { pointer-events: none; }\n@media screen and (max-width: 500px) {\n  body.typora-export { padding-left: 0px; padding-right: 0px; }\n  #write { padding-left: 20px; padding-right: 20px; }\n  .CodeMirror-sizer { margin-left: 0px !important; }\n  .CodeMirror-gutters { display: none !important; }\n}\n#write li > figure:last-child { margin-bottom: 0.5rem; }\n#write ol, #write ul { position: relative; }\nimg { max-width: 100%; vertical-align: middle; image-orientation: from-image; }\nbutton, input, select, textarea { color: inherit; font: inherit; }\ninput[type=\"checkbox\"], input[type=\"radio\"] { line-height: normal; padding: 0px; }\n*, ::after, ::before { box-sizing: border-box; }\n#write h1, #write h2, #write h3, #write h4, #write h5, #write h6, #write p, #write pre { width: inherit; }\n#write h1, #write h2, #write h3, #write h4, #write h5, #write h6, #write p { position: relative; }\np { line-height: inherit; }\nh1, h2, h3, h4, h5, h6 { break-after: avoid-page; break-inside: avoid; orphans: 4; }\np { orphans: 4; }\nh1 { font-size: 2rem; }\nh2 { font-size: 1.8rem; }\nh3 { font-size: 1.6rem; }\nh4 { font-size: 1.4rem; }\nh5 { font-size: 1.2rem; }\nh6 { font-size: 1rem; }\n.md-math-block, .md-rawblock, h1, h2, h3, h4, h5, h6, p { margin-top: 1rem; margin-bottom: 1rem; }\n.hidden { display: none; }\n.md-blockmeta { color: rgb(204, 204, 204); font-weight: 700; font-style: italic; }\na { cursor: pointer; }\nsup.md-footnote { padding: 2px 4px; background-color: rgba(238, 238, 238, 0.7); color: rgb(85, 85, 85); border-radius: 4px; cursor: pointer; }\nsup.md-footnote a, sup.md-footnote a:hover { color: inherit; text-transform: inherit; text-decoration: inherit; }\n#write input[type=\"checkbox\"] { cursor: pointer; width: inherit; height: inherit; }\nfigure { overflow-x: auto; margin: 1.2em 0px; max-width: calc(100% + 16px); padding: 0px; }\nfigure > table { margin: 0px; }\ntr { break-inside: avoid; break-after: auto; }\nthead { display: table-header-group; }\ntable { border-collapse: collapse; border-spacing: 0px; width: 100%; overflow: auto; break-inside: auto; text-align: left; }\ntable.md-table td { min-width: 32px; }\n.CodeMirror-gutters { border-right: 0px; background-color: inherit; }\n.CodeMirror-linenumber { user-select: none; }\n.CodeMirror { text-align: left; }\n.CodeMirror-placeholder { opacity: 0.3; }\n.CodeMirror pre { padding: 0px 4px; }\n.CodeMirror-lines { padding: 0px; }\ndiv.hr:focus { cursor: none; }\n#write pre { white-space: pre-wrap; }\n#write.fences-no-line-wrapping pre { white-space: pre; }\n#write pre.ty-contain-cm { white-space: normal; }\n.CodeMirror-gutters { margin-right: 4px; }\n.md-fences { font-size: 0.9rem; display: block; break-inside: avoid; text-align: left; overflow: visible; white-space: pre; background: inherit; position: relative !important; }\n.md-diagram-panel { width: 100%; margin-top: 10px; text-align: center; padding-top: 0px; padding-bottom: 8px; overflow-x: auto; }\n#write .md-fences.mock-cm { white-space: pre-wrap; }\n.md-fences.md-fences-with-lineno { padding-left: 0px; }\n#write.fences-no-line-wrapping .md-fences.mock-cm { white-space: pre; overflow-x: auto; }\n.md-fences.mock-cm.md-fences-with-lineno { padding-left: 8px; }\n.CodeMirror-line, twitterwidget { break-inside: avoid; }\n.footnotes { opacity: 0.8; font-size: 0.9rem; margin-top: 1em; margin-bottom: 1em; }\n.footnotes + .footnotes { margin-top: 0px; }\n.md-reset { margin: 0px; padding: 0px; border: 0px; outline: 0px; vertical-align: top; background: 0px 0px; 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: 400; text-align: left; box-sizing: content-box; direction: ltr; }\nli div { padding-top: 0px; }\nblockquote { margin: 1rem 0px; }\nli .mathjax-block, li p { margin: 0.5rem 0px; }\nli blockquote { margin: 1rem 0px; }\nli { margin: 0px; position: relative; }\nblockquote > :last-child { margin-bottom: 0px; }\nblockquote > :first-child, li > :first-child { margin-top: 0px; }\n.footnotes-area { color: rgb(136, 136, 136); margin-top: 0.714rem; padding-bottom: 0.143rem; white-space: normal; }\n#write .footnote-line { white-space: pre-wrap; }\n@media print {\n  body, html { border: 1px solid transparent; height: 99%; break-after: avoid; break-before: avoid; font-variant-ligatures: no-common-ligatures; }\n  #write { margin-top: 0px; padding-top: 0px; border-color: transparent !important; }\n  .typora-export * { -webkit-print-color-adjust: exact; }\n  .typora-export #write { break-after: avoid; }\n  .typora-export #write::after { height: 0px; }\n  .is-mac table { break-inside: avoid; }\n}\n.footnote-line { margin-top: 0.714em; font-size: 0.7em; }\na img, img a { cursor: pointer; }\npre.md-meta-block { font-size: 0.8rem; min-height: 0.8rem; white-space: pre-wrap; background: rgb(204, 204, 204); display: block; overflow-x: hidden; }\np > .md-image:only-child:not(.md-img-error) img, p > img:only-child { display: block; margin: auto; }\n#write.first-line-indent p > .md-image:only-child:not(.md-img-error) img { left: -2em; position: relative; }\np > .md-image:only-child { display: inline-block; width: 100%; }\n#write .MathJax_Display { margin: 0.8em 0px 0px; }\n.md-math-block { width: 100%; }\n.md-math-block:not(:empty)::after { display: none; }\n.MathJax_ref { fill: currentcolor; }\n[contenteditable=\"true\"]:active, [contenteditable=\"true\"]:focus, [contenteditable=\"false\"]:active, [contenteditable=\"false\"]:focus { outline: 0px; box-shadow: none; }\n.md-task-list-item { position: relative; list-style-type: none; }\n.task-list-item.md-task-list-item { padding-left: 0px; }\n.md-task-list-item > input { position: absolute; top: 0px; left: 0px; margin-left: -1.2em; margin-top: calc(1em - 10px); border: none; }\n.math { font-size: 1rem; }\n.md-toc { min-height: 3.58rem; position: relative; font-size: 0.9rem; border-radius: 10px; }\n.md-toc-content { position: relative; margin-left: 0px; }\n.md-toc-content::after, .md-toc::after { display: none; }\n.md-toc-item { display: block; color: rgb(65, 131, 196); }\n.md-toc-item a { text-decoration: none; }\n.md-toc-inner:hover { text-decoration: underline; }\n.md-toc-inner { display: inline-block; cursor: pointer; }\n.md-toc-h1 .md-toc-inner { margin-left: 0px; font-weight: 700; }\n.md-toc-h2 .md-toc-inner { margin-left: 2em; }\n.md-toc-h3 .md-toc-inner { margin-left: 4em; }\n.md-toc-h4 .md-toc-inner { margin-left: 6em; }\n.md-toc-h5 .md-toc-inner { margin-left: 8em; }\n.md-toc-h6 .md-toc-inner { margin-left: 10em; }\n@media screen and (max-width: 48em) {\n  .md-toc-h3 .md-toc-inner { margin-left: 3.5em; }\n  .md-toc-h4 .md-toc-inner { margin-left: 5em; }\n  .md-toc-h5 .md-toc-inner { margin-left: 6.5em; }\n  .md-toc-h6 .md-toc-inner { margin-left: 8em; }\n}\na.md-toc-inner { font-size: inherit; font-style: inherit; font-weight: inherit; line-height: inherit; }\n.footnote-line a:not(.reversefootnote) { color: inherit; }\n.md-attr { display: none; }\n.md-fn-count::after { content: \".\"; }\ncode, pre, samp, tt { font-family: var(--monospace); }\nkbd { margin: 0px 0.1em; padding: 0.1em 0.6em; font-size: 0.8em; color: rgb(36, 39, 41); background: rgb(255, 255, 255); border: 1px solid rgb(173, 179, 185); border-radius: 3px; box-shadow: rgba(12, 13, 14, 0.2) 0px 1px 0px, rgb(255, 255, 255) 0px 0px 0px 2px inset; white-space: nowrap; vertical-align: middle; }\n.md-comment { color: rgb(162, 127, 3); opacity: 0.8; font-family: var(--monospace); }\ncode { text-align: left; vertical-align: initial; }\na.md-print-anchor { white-space: pre !important; 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: 0px !important; background: 0px 0px !important; text-decoration: initial !important; text-shadow: initial !important; }\n.md-inline-math .MathJax_SVG .noError { display: none !important; }\n.html-for-mac .inline-math-svg .MathJax_SVG { vertical-align: 0.2px; }\n.md-math-block .MathJax_SVG_Display { text-align: center; margin: 0px; position: relative; text-indent: 0px; max-width: none; max-height: none; min-height: 0px; min-width: 100%; width: auto; overflow-y: hidden; display: block !important; }\n.MathJax_SVG_Display, .md-inline-math .MathJax_SVG_Display { width: auto; margin: inherit; display: inline-block !important; }\n.MathJax_SVG .MJX-monospace { font-family: var(--monospace); }\n.MathJax_SVG .MJX-sans-serif { font-family: sans-serif; }\n.MathJax_SVG { display: inline; font-style: normal; font-weight: 400; line-height: normal; zoom: 90%; text-indent: 0px; text-align: left; text-transform: none; letter-spacing: normal; word-spacing: normal; overflow-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; }\n.MathJax_SVG * { transition: none 0s ease 0s; }\n.MathJax_SVG_Display svg { vertical-align: middle !important; margin-bottom: 0px !important; margin-top: 0px !important; }\n.os-windows.monocolor-emoji .md-emoji { font-family: \"Segoe UI Symbol\", sans-serif; }\n.md-diagram-panel > svg { max-width: 100%; }\n[lang=\"flow\"] svg, [lang=\"mermaid\"] svg { max-width: 100%; height: auto; }\n[lang=\"mermaid\"] .node text { font-size: 1rem; }\ntable tr th { border-bottom: 0px; }\nvideo { max-width: 100%; display: block; margin: 0px auto; }\niframe { max-width: 100%; width: 100%; border: none; }\n.highlight td, .highlight tr { border: 0px; }\nmark { background: rgb(255, 255, 0); color: rgb(0, 0, 0); }\n.md-html-inline .md-plain, .md-html-inline strong, mark .md-inline-math, mark strong { color: inherit; }\nmark .md-meta { color: rgb(0, 0, 0); opacity: 0.3 !important; }\n@media print {\n  .typora-export h1, .typora-export h2, .typora-export h3, .typora-export h4, .typora-export h5, .typora-export h6 { break-inside: avoid; }\n}\n.md-diagram-panel .messageText { stroke: none !important; }\n.md-diagram-panel .start-state { fill: var(--node-fill); }\n.md-diagram-panel .edgeLabel rect { opacity: 1 !important; }\n.md-require-zoom-fix foreignobject { font-size: var(--mermaid-font-zoom); }\n\n\n.CodeMirror { height: auto; }\n.CodeMirror.cm-s-inner { background: inherit; }\n.CodeMirror-scroll { overflow: auto hidden; z-index: 3; }\n.CodeMirror-gutter-filler, .CodeMirror-scrollbar-filler { background-color: rgb(255, 255, 255); }\n.CodeMirror-gutters { border-right: 1px solid rgb(221, 221, 221); background: inherit; white-space: nowrap; }\n.CodeMirror-linenumber { padding: 0px 3px 0px 5px; text-align: right; color: rgb(153, 153, 153); }\n.cm-s-inner .cm-keyword { color: rgb(119, 0, 136); }\n.cm-s-inner .cm-atom, .cm-s-inner.cm-atom { color: rgb(34, 17, 153); }\n.cm-s-inner .cm-number { color: rgb(17, 102, 68); }\n.cm-s-inner .cm-def { color: rgb(0, 0, 255); }\n.cm-s-inner .cm-variable { color: rgb(0, 0, 0); }\n.cm-s-inner .cm-variable-2 { color: rgb(0, 85, 170); }\n.cm-s-inner .cm-variable-3 { color: rgb(0, 136, 85); }\n.cm-s-inner .cm-string { color: rgb(170, 17, 17); }\n.cm-s-inner .cm-property { color: rgb(0, 0, 0); }\n.cm-s-inner .cm-operator { color: rgb(152, 26, 26); }\n.cm-s-inner .cm-comment, .cm-s-inner.cm-comment { color: rgb(170, 85, 0); }\n.cm-s-inner .cm-string-2 { color: rgb(255, 85, 0); }\n.cm-s-inner .cm-meta { color: rgb(85, 85, 85); }\n.cm-s-inner .cm-qualifier { color: rgb(85, 85, 85); }\n.cm-s-inner .cm-builtin { color: rgb(51, 0, 170); }\n.cm-s-inner .cm-bracket { color: rgb(153, 153, 119); }\n.cm-s-inner .cm-tag { color: rgb(17, 119, 0); }\n.cm-s-inner .cm-attribute { color: rgb(0, 0, 204); }\n.cm-s-inner .cm-header, .cm-s-inner.cm-header { color: rgb(0, 0, 255); }\n.cm-s-inner .cm-quote, .cm-s-inner.cm-quote { color: rgb(0, 153, 0); }\n.cm-s-inner .cm-hr, .cm-s-inner.cm-hr { color: rgb(153, 153, 153); }\n.cm-s-inner .cm-link, .cm-s-inner.cm-link { color: rgb(0, 0, 204); }\n.cm-negative { color: rgb(221, 68, 68); }\n.cm-positive { color: rgb(34, 153, 34); }\n.cm-header, .cm-strong { font-weight: 700; }\n.cm-del { text-decoration: line-through; }\n.cm-em { font-style: italic; }\n.cm-link { text-decoration: underline; }\n.cm-error { color: red; }\n.cm-invalidchar { color: red; }\n.cm-constant { color: rgb(38, 139, 210); }\n.cm-defined { color: rgb(181, 137, 0); }\ndiv.CodeMirror span.CodeMirror-matchingbracket { color: rgb(0, 255, 0); }\ndiv.CodeMirror span.CodeMirror-nonmatchingbracket { color: rgb(255, 34, 34); }\n.cm-s-inner .CodeMirror-activeline-background { background: inherit; }\n.CodeMirror { position: relative; overflow: hidden; }\n.CodeMirror-scroll { height: 100%; outline: 0px; position: relative; box-sizing: content-box; background: inherit; }\n.CodeMirror-sizer { position: relative; }\n.CodeMirror-gutter-filler, .CodeMirror-hscrollbar, .CodeMirror-scrollbar-filler, .CodeMirror-vscrollbar { position: absolute; z-index: 6; display: none; }\n.CodeMirror-vscrollbar { right: 0px; top: 0px; overflow: hidden; }\n.CodeMirror-hscrollbar { bottom: 0px; left: 0px; overflow: hidden; }\n.CodeMirror-scrollbar-filler { right: 0px; bottom: 0px; }\n.CodeMirror-gutter-filler { left: 0px; bottom: 0px; }\n.CodeMirror-gutters { position: absolute; left: 0px; top: 0px; padding-bottom: 30px; z-index: 3; }\n.CodeMirror-gutter { white-space: normal; height: 100%; box-sizing: content-box; padding-bottom: 30px; margin-bottom: -32px; display: inline-block; }\n.CodeMirror-gutter-wrapper { position: absolute; z-index: 4; background: 0px 0px !important; border: none !important; }\n.CodeMirror-gutter-background { position: absolute; top: 0px; bottom: 0px; z-index: 4; }\n.CodeMirror-gutter-elt { position: absolute; cursor: default; z-index: 4; }\n.CodeMirror-lines { cursor: text; }\n.CodeMirror pre { border-radius: 0px; border-width: 0px; background: 0px 0px; font-family: inherit; font-size: inherit; margin: 0px; white-space: pre; overflow-wrap: normal; color: inherit; z-index: 2; position: relative; overflow: visible; }\n.CodeMirror-wrap pre { overflow-wrap: break-word; white-space: pre-wrap; word-break: normal; }\n.CodeMirror-code pre { border-right: 30px solid transparent; width: fit-content; }\n.CodeMirror-wrap .CodeMirror-code pre { border-right: none; width: auto; }\n.CodeMirror-linebackground { position: absolute; left: 0px; right: 0px; top: 0px; bottom: 0px; z-index: 0; }\n.CodeMirror-linewidget { position: relative; z-index: 2; overflow: auto; }\n.CodeMirror-wrap .CodeMirror-scroll { overflow-x: hidden; }\n.CodeMirror-measure { position: absolute; width: 100%; height: 0px; overflow: hidden; visibility: hidden; }\n.CodeMirror-measure pre { position: static; }\n.CodeMirror div.CodeMirror-cursor { position: absolute; visibility: hidden; border-right: none; width: 0px; }\n.CodeMirror div.CodeMirror-cursor { visibility: hidden; }\n.CodeMirror-focused div.CodeMirror-cursor { visibility: inherit; }\n.cm-searching { background: rgba(255, 255, 0, 0.4); }\n@media print {\n  .CodeMirror div.CodeMirror-cursor { visibility: hidden; }\n}\n\n\n:root {\n    --side-bar-bg-color: #fafafa;\n    --control-text-color: #777;\n}\n\n@include-when-export url(https:\/\/fonts.loli.net\/css?family=Open+Sans:400italic,700italic,700,400&subset=latin,latin-ext);\n\n\/* open-sans-regular - latin-ext_latin *\/\n  \/* open-sans-italic - latin-ext_latin *\/\n    \/* open-sans-700 - latin-ext_latin *\/\n    \/* open-sans-700italic - latin-ext_latin *\/\n  html {\n    font-size: 16px;\n}\n\nbody {\n    font-family: \"Open Sans\",\"Clear Sans\", \"Helvetica Neue\", Helvetica, Arial, sans-serif;\n    color: rgb(51, 51, 51);\n    line-height: 1.6;\n}\n\n#write {\n    max-width: 860px;\n  \tmargin: 0 auto;\n  \tpadding: 30px;\n    padding-bottom: 100px;\n}\n\n@media only screen and (min-width: 1400px) {\n\t#write {\n\t\tmax-width: 1024px;\n\t}\n}\n\n@media only screen and (min-width: 1800px) {\n\t#write {\n\t\tmax-width: 1200px;\n\t}\n}\n\n#write > ul:first-child,\n#write > ol:first-child{\n    margin-top: 30px;\n}\n\na {\n    color: #4183C4;\n}\nh1,\nh2,\nh3,\nh4,\nh5,\nh6 {\n    position: relative;\n    margin-top: 1rem;\n    margin-bottom: 1rem;\n    font-weight: bold;\n    line-height: 1.4;\n    cursor: text;\n}\nh1:hover a.anchor,\nh2:hover a.anchor,\nh3:hover a.anchor,\nh4:hover a.anchor,\nh5:hover a.anchor,\nh6:hover a.anchor {\n    text-decoration: none;\n}\nh1 tt,\nh1 code {\n    font-size: inherit;\n}\nh2 tt,\nh2 code {\n    font-size: inherit;\n}\nh3 tt,\nh3 code {\n    font-size: inherit;\n}\nh4 tt,\nh4 code {\n    font-size: inherit;\n}\nh5 tt,\nh5 code {\n    font-size: inherit;\n}\nh6 tt,\nh6 code {\n    font-size: inherit;\n}\nh1 {\n    font-size: 2.25em;\n    line-height: 1.2;\n    border-bottom: 1px solid #eee;\n}\nh2 {\n    font-size: 1.75em;\n    line-height: 1.225;\n    border-bottom: 1px solid #eee;\n}\n\n\/*@media print {\n    .typora-export h1,\n    .typora-export h2 {\n        border-bottom: none;\n        padding-bottom: initial;\n    }\n\n    .typora-export h1::after,\n    .typora-export h2::after {\n        content: \"\";\n        display: block;\n        height: 100px;\n        margin-top: -96px;\n        border-top: 1px solid #eee;\n    }\n}*\/\n\nh3 {\n    font-size: 1.5em;\n    line-height: 1.43;\n}\nh4 {\n    font-size: 1.25em;\n}\nh5 {\n    font-size: 1em;\n}\nh6 {\n   font-size: 1em;\n    color: #777;\n}\np,\nblockquote,\nul,\nol,\ndl,\ntable{\n    margin: 0.8em 0;\n}\nli>ol,\nli>ul {\n    margin: 0 0;\n}\nhr {\n    height: 2px;\n    padding: 0;\n    margin: 16px 0;\n    background-color: #e7e7e7;\n    border: 0 none;\n    overflow: hidden;\n    box-sizing: content-box;\n}\n\nli p.first {\n    display: inline-block;\n}\nul,\nol {\n    padding-left: 30px;\n}\nul:first-child,\nol:first-child {\n    margin-top: 0;\n}\nul:last-child,\nol:last-child {\n    margin-bottom: 0;\n}\nblockquote {\n    border-left: 4px solid #dfe2e5;\n    padding: 0 15px;\n    color: #777777;\n}\nblockquote blockquote {\n    padding-right: 0;\n}\ntable {\n    padding: 0;\n    word-break: initial;\n}\ntable tr {\n    border-top: 1px solid #dfe2e5;\n    margin: 0;\n    padding: 0;\n}\ntable tr:nth-child(2n),\nthead {\n    background-color: #f8f8f8;\n}\ntable th {\n    font-weight: bold;\n    border: 1px solid #dfe2e5;\n    border-bottom: 0;\n    margin: 0;\n    padding: 6px 13px;\n}\ntable td {\n    border: 1px solid #dfe2e5;\n    margin: 0;\n    padding: 6px 13px;\n}\ntable th:first-child,\ntable td:first-child {\n    margin-top: 0;\n}\ntable th:last-child,\ntable td:last-child {\n    margin-bottom: 0;\n}\n\n.CodeMirror-lines {\n    padding-left: 4px;\n}\n\n.code-tooltip {\n    box-shadow: 0 1px 1px 0 rgba(0,28,36,.3);\n    border-top: 1px solid #eef2f2;\n}\n\n.md-fences,\ncode,\ntt {\n    border: 1px solid #e7eaed;\n    background-color: #f8f8f8;\n    border-radius: 3px;\n    padding: 0;\n    padding: 2px 4px 0px 4px;\n    font-size: 0.9em;\n}\n\ncode {\n    background-color: #f3f4f4;\n    padding: 0 2px 0 2px;\n}\n\n.md-fences {\n    margin-bottom: 15px;\n    margin-top: 15px;\n    padding-top: 8px;\n    padding-bottom: 6px;\n}\n\n\n.md-task-list-item > input {\n  margin-left: -1.3em;\n}\n\n@media print {\n    html {\n        font-size: 13px;\n    }\n    table,\n    pre {\n        page-break-inside: avoid;\n    }\n    pre {\n        word-wrap: break-word;\n    }\n}\n\n.md-fences {\n\tbackground-color: #f8f8f8;\n}\n#write pre.md-meta-block {\n\tpadding: 1rem;\n    font-size: 85%;\n    line-height: 1.45;\n    background-color: #f7f7f7;\n    border: 0;\n    border-radius: 3px;\n    color: #777777;\n    margin-top: 0 !important;\n}\n\n.mathjax-block>.code-tooltip {\n\tbottom: .375rem;\n}\n\n.md-mathjax-midline {\n    background: #fafafa;\n}\n\n#write>h3.md-focus:before{\n\tleft: -1.5625rem;\n\ttop: .375rem;\n}\n#write>h4.md-focus:before{\n\tleft: -1.5625rem;\n\ttop: .285714286rem;\n}\n#write>h5.md-focus:before{\n\tleft: -1.5625rem;\n\ttop: .285714286rem;\n}\n#write>h6.md-focus:before{\n\tleft: -1.5625rem;\n\ttop: .285714286rem;\n}\n.md-image>.md-meta {\n    \/*border: 1px solid #ddd;*\/\n    border-radius: 3px;\n    padding: 2px 0px 0px 4px;\n    font-size: 0.9em;\n    color: inherit;\n}\n\n.md-tag {\n    color: #a7a7a7;\n    opacity: 1;\n}\n\n.md-toc { \n    margin-top:20px;\n    padding-bottom:20px;\n}\n\n.sidebar-tabs {\n    border-bottom: none;\n}\n\n#typora-quick-open {\n    border: 1px solid #ddd;\n    background-color: #f8f8f8;\n}\n\n#typora-quick-open-item {\n    background-color: #FAFAFA;\n    border-color: #FEFEFE #e5e5e5 #e5e5e5 #eee;\n    border-style: solid;\n    border-width: 1px;\n}\n\n\/** focus mode *\/\n.on-focus-mode blockquote {\n    border-left-color: rgba(85, 85, 85, 0.12);\n}\n\nheader, .context-menu, .megamenu-content, footer{\n    font-family: \"Segoe UI\", \"Arial\", sans-serif;\n}\n\n.file-node-content:hover .file-node-icon,\n.file-node-content:hover .file-node-open-state{\n    visibility: visible;\n}\n\n.mac-seamless-mode #typora-sidebar {\n    background-color: #fafafa;\n    background-color: var(--side-bar-bg-color);\n}\n\n.md-lang {\n    color: #b4654d;\n}\n\n.html-for-mac .context-menu {\n    --item-hover-bg-color: #E6F0FE;\n}\n\n#md-notification .btn {\n    border: 0;\n}\n\n.dropdown-menu .divider {\n    border-color: #e5e5e5;\n}\n\n.ty-preferences .window-content {\n    background-color: #fafafa;\n}\n\n.ty-preferences .nav-group-item.active {\n    color: white;\n    background: #999;\n}\n\n :root {--mermaid-font-zoom:1em ;} \n<\/style>\n<\/head>\n<body class='typora-export os-windows'>\n<div id='write'  class=''><p><span>\u5728\u533b\u5b66\u56fe\u50cf\u5206\u5272\u4e2d\uff0c\u4f7f\u7528\u591a\u4e2a\u8bc4\u4f30\u6307\u6807\u6765\u91cf\u5316\u6a21\u578b\u7684\u6027\u80fd\u3002<\/span><\/p><h3><a name=\"1-dice-\u7cfb\u6570\" class=\"md-header-anchor\"><\/a><span>1. Dice \u7cfb\u6570<\/span><\/h3><ul><li><p><strong><span>\u5b9a\u4e49<\/span><\/strong><span>\uff1aDice \u7cfb\u6570\u662f\u4e00\u4e2a\u7528\u4e8e\u8861\u91cf\u4e24\u4e2a\u6837\u672c\u76f8\u4f3c\u5ea6\u7684\u6307\u6807\uff0c\u7279\u522b\u662f\u5728\u4e8c\u5206\u7c7b\u95ee\u9898\u4e2d\u3002\u5176\u8ba1\u7b97\u516c\u5f0f\u4e3a\uff1a<\/span><\/p><div contenteditable=\"false\" spellcheck=\"false\" class=\"mathjax-block md-end-block md-math-block md-rawblock\" id=\"mathjax-n48\" cid=\"n48\" mdtype=\"math_block\"><div class=\"md-rawblock-container md-math-container\" contenteditable=\"false\" tabindex=\"-1\">\n\t\t\t\t\t\t<div class=\"MathJax_SVG_Display\" style=\"text-align: center;\"><span class=\"MathJax_SVG\" id=\"MathJax-Element-2-Frame\" tabindex=\"-1\" style=\"font-size: 100%; display: inline-block;\"><svg xmlns:xlink=\"http:\/\/www.w3.org\/1999\/xlink\" width=\"19.794ex\" height=\"5.804ex\" viewBox=\"0 -1490.8 8522.4 2498.8\" role=\"img\" focusable=\"false\" style=\"vertical-align: -2.341ex; max-width: 100%;\"><defs><path stroke-width=\"0\" id=\"E5-MJMAIN-44\" d=\"M130 622Q123 629 119 631T103 634T60 637H27V683H228Q399 682 419 682T461 676Q504 667 546 641T626 573T685 470T708 336Q708 210 634 116T442 3Q429 1 228 0H27V46H60Q102 47 111 49T130 61V622ZM593 338Q593 439 571 501T493 602Q439 637 355 637H322H294Q238 637 234 628Q231 624 231 344Q231 62 232 59Q233 49 248 48T339 46H350Q456 46 515 95Q561 133 577 191T593 338Z\"><\/path><path stroke-width=\"0\" id=\"E5-MJMAIN-69\" d=\"M69 609Q69 637 87 653T131 669Q154 667 171 652T188 609Q188 579 171 564T129 549Q104 549 87 564T69 609ZM247 0Q232 3 143 3Q132 3 106 3T56 1L34 0H26V46H42Q70 46 91 49Q100 53 102 60T104 102V205V293Q104 345 102 359T88 378Q74 385 41 385H30V408Q30 431 32 431L42 432Q52 433 70 434T106 436Q123 437 142 438T171 441T182 442H185V62Q190 52 197 50T232 46H255V0H247Z\"><\/path><path stroke-width=\"0\" id=\"E5-MJMAIN-63\" d=\"M370 305T349 305T313 320T297 358Q297 381 312 396Q317 401 317 402T307 404Q281 408 258 408Q209 408 178 376Q131 329 131 219Q131 137 162 90Q203 29 272 29Q313 29 338 55T374 117Q376 125 379 127T395 129H409Q415 123 415 120Q415 116 411 104T395 71T366 33T318 2T249 -11Q163 -11 99 53T34 214Q34 318 99 383T250 448T370 421T404 357Q404 334 387 320Z\"><\/path><path stroke-width=\"0\" id=\"E5-MJMAIN-65\" d=\"M28 218Q28 273 48 318T98 391T163 433T229 448Q282 448 320 430T378 380T406 316T415 245Q415 238 408 231H126V216Q126 68 226 36Q246 30 270 30Q312 30 342 62Q359 79 369 104L379 128Q382 131 395 131H398Q415 131 415 121Q415 117 412 108Q393 53 349 21T250 -11Q155 -11 92 58T28 218ZM333 275Q322 403 238 411H236Q228 411 220 410T195 402T166 381T143 340T127 274V267H333V275Z\"><\/path><path stroke-width=\"0\" id=\"E5-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=\"0\" id=\"E5-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=\"0\" id=\"E5-MJMAIN-D7\" d=\"M630 29Q630 9 609 9Q604 9 587 25T493 118L389 222L284 117Q178 13 175 11Q171 9 168 9Q160 9 154 15T147 29Q147 36 161 51T255 146L359 250L255 354Q174 435 161 449T147 471Q147 480 153 485T168 490Q173 490 175 489Q178 487 284 383L389 278L493 382Q570 459 587 475T609 491Q630 491 630 471Q630 464 620 453T522 355L418 250L522 145Q606 61 618 48T630 29Z\"><\/path><path stroke-width=\"0\" id=\"E5-MJMAIN-7C\" d=\"M139 -249H137Q125 -249 119 -235V251L120 737Q130 750 139 750Q152 750 159 735V-235Q151 -249 141 -249H139Z\"><\/path><path stroke-width=\"0\" id=\"E5-MJMATHI-41\" d=\"M208 74Q208 50 254 46Q272 46 272 35Q272 34 270 22Q267 8 264 4T251 0Q249 0 239 0T205 1T141 2Q70 2 50 0H42Q35 7 35 11Q37 38 48 46H62Q132 49 164 96Q170 102 345 401T523 704Q530 716 547 716H555H572Q578 707 578 706L606 383Q634 60 636 57Q641 46 701 46Q726 46 726 36Q726 34 723 22Q720 7 718 4T704 0Q701 0 690 0T651 1T578 2Q484 2 455 0H443Q437 6 437 9T439 27Q443 40 445 43L449 46H469Q523 49 533 63L521 213H283L249 155Q208 86 208 74ZM516 260Q516 271 504 416T490 562L463 519Q447 492 400 412L310 260L413 259Q516 259 516 260Z\"><\/path><path stroke-width=\"0\" id=\"E5-MJMAIN-2229\" d=\"M88 -21T75 -21T55 -7V200Q55 231 55 280Q56 414 60 428Q61 430 61 431Q77 500 152 549T332 598Q443 598 522 544T610 405Q611 399 611 194V-7Q604 -22 591 -22Q582 -22 572 -9L570 405Q563 433 556 449T529 485Q498 519 445 538T334 558Q251 558 179 518T96 401Q95 396 95 193V-7Q88 -21 75 -21Z\"><\/path><path stroke-width=\"0\" id=\"E5-MJMATHI-42\" d=\"M231 637Q204 637 199 638T194 649Q194 676 205 682Q206 683 335 683Q594 683 608 681Q671 671 713 636T756 544Q756 480 698 429T565 360L555 357Q619 348 660 311T702 219Q702 146 630 78T453 1Q446 0 242 0Q42 0 39 2Q35 5 35 10Q35 17 37 24Q42 43 47 45Q51 46 62 46H68Q95 46 128 49Q142 52 147 61Q150 65 219 339T288 628Q288 635 231 637ZM649 544Q649 574 634 600T585 634Q578 636 493 637Q473 637 451 637T416 636H403Q388 635 384 626Q382 622 352 506Q352 503 351 500L320 374H401Q482 374 494 376Q554 386 601 434T649 544ZM595 229Q595 273 572 302T512 336Q506 337 429 337Q311 337 310 336Q310 334 293 263T258 122L240 52Q240 48 252 48T333 46Q422 46 429 47Q491 54 543 105T595 229Z\"><\/path><path stroke-width=\"0\" id=\"E5-MJMAIN-2B\" d=\"M56 237T56 250T70 270H369V420L370 570Q380 583 389 583Q402 583 409 568V270H707Q722 262 722 250T707 230H409V-68Q401 -82 391 -82H389H387Q375 -82 369 -68V230H70Q56 237 56 250Z\"><\/path><\/defs><g stroke=\"currentColor\" fill=\"currentColor\" stroke-width=\"0\" transform=\"matrix(1 0 0 -1 0 0)\"><use xlink:href=\"#E5-MJMAIN-44\"><\/use><use xlink:href=\"#E5-MJMAIN-69\" x=\"764\" y=\"0\"><\/use><use xlink:href=\"#E5-MJMAIN-63\" x=\"1042\" y=\"0\"><\/use><use xlink:href=\"#E5-MJMAIN-65\" x=\"1486\" y=\"0\"><\/use><use xlink:href=\"#E5-MJMAIN-3D\" x=\"2207\" y=\"0\"><\/use><g transform=\"translate(2985,0)\"><g transform=\"translate(397,0)\"><rect stroke=\"none\" width=\"5018\" height=\"60\" x=\"0\" y=\"220\"><\/rect><g transform=\"translate(60,689)\"><use xlink:href=\"#E5-MJMAIN-32\" x=\"0\" y=\"0\"><\/use><use xlink:href=\"#E5-MJMAIN-D7\" x=\"722\" y=\"0\"><\/use><use xlink:href=\"#E5-MJMAIN-7C\" x=\"1722\" y=\"0\"><\/use><use xlink:href=\"#E5-MJMATHI-41\" x=\"2000\" y=\"0\"><\/use><use xlink:href=\"#E5-MJMAIN-2229\" x=\"2972\" y=\"0\"><\/use><use xlink:href=\"#E5-MJMATHI-42\" x=\"3861\" y=\"0\"><\/use><use xlink:href=\"#E5-MJMAIN-7C\" x=\"4620\" y=\"0\"><\/use><\/g><g transform=\"translate(587,-691)\"><use xlink:href=\"#E5-MJMAIN-7C\" x=\"0\" y=\"0\"><\/use><use xlink:href=\"#E5-MJMATHI-41\" x=\"278\" y=\"0\"><\/use><use xlink:href=\"#E5-MJMAIN-7C\" x=\"1028\" y=\"0\"><\/use><use xlink:href=\"#E5-MJMAIN-2B\" x=\"1528\" y=\"0\"><\/use><use xlink:href=\"#E5-MJMAIN-7C\" x=\"2528\" y=\"0\"><\/use><use xlink:href=\"#E5-MJMATHI-42\" x=\"2806\" y=\"0\"><\/use><use xlink:href=\"#E5-MJMAIN-7C\" x=\"3565\" y=\"0\"><\/use><\/g><\/g><\/g><\/g><\/svg><\/span><\/div><script type=\"math\/tex; mode=display\" id=\"MathJax-Element-2\">\\text{Dice} = \\frac{2 \\times |A \\cap B|}{|A| + |B|}<\/script>\n\t\t\t\t\t<\/div><\/div><p><span>\u5176\u4e2d <\/span><span>(<\/span><span>A<\/span><span>)<\/span><span> \u662f\u9884\u6d4b\u7684\u5206\u5272\u533a\u57df\uff0c<\/span><span>(<\/span><span>B<\/span><span>)<\/span><span> \u662f\u771f\u5b9e\u7684\u5206\u5272\u533a\u57df\u3002<\/span><\/p><p><span>\u5176\u4e2d <\/span><span>(<\/span><span>A<\/span><span>)<\/span><span> \u662f\u9884\u6d4b\u7684\u5206\u5272\u533a\u57df\uff0c<\/span><span>(<\/span><span>B<\/span><span>)<\/span><span> \u662f\u771f\u5b9e\u7684\u5206\u5272\u533a\u57df\u3002<\/span><\/p><\/li><li><p><strong><span>\u53d6\u503c\u8303\u56f4<\/span><\/strong><span>\uff1a\u4ece 0 \u5230 1\uff0c0 \u8868\u793a\u6ca1\u6709\u91cd\u53e0\uff0c1 \u8868\u793a\u5b8c\u5168\u91cd\u53e0\u3002<\/span><\/p><\/li><li><p><strong><span>\u4f18\u70b9<\/span><\/strong><span>\uff1a\u5bf9\u5c0f\u76ee\u6807\u7279\u522b\u654f\u611f\uff0c\u56e0\u4e3a\u5b83\u5f3a\u8c03\u91cd\u53e0\u90e8\u5206\u3002<\/span><\/p><\/li><\/ul><h3><a name=\"2-jaccard-\u7cfb\u6570intersection-over-union-iou\uff09\" class=\"md-header-anchor\"><\/a><span>2. Jaccard \u7cfb\u6570\uff08Intersection over Union, IoU\uff09<\/span><\/h3><ul><li><p><strong><span>\u5b9a\u4e49<\/span><\/strong><span>\uff1aJaccard \u7cfb\u6570\u7528\u4e8e\u8861\u91cf\u4e24\u4e2a\u96c6\u5408\u7684\u4ea4\u96c6\u4e0e\u5e76\u96c6\u7684\u6bd4\u7387\uff0c\u8ba1\u7b97\u516c\u5f0f\u4e3a\uff1a<\/span><\/p><div contenteditable=\"false\" spellcheck=\"false\" class=\"mathjax-block md-end-block md-math-block md-rawblock\" id=\"mathjax-n53\" cid=\"n53\" mdtype=\"math_block\"><div class=\"md-rawblock-container md-math-container\" contenteditable=\"false\" tabindex=\"-1\">\n\t\t\t\t\t\t<div class=\"MathJax_SVG_Display\" style=\"text-align: center;\"><span class=\"MathJax_SVG\" id=\"MathJax-Element-4-Frame\" tabindex=\"-1\" style=\"font-size: 100%; display: inline-block;\"><svg xmlns:xlink=\"http:\/\/www.w3.org\/1999\/xlink\" width=\"19.092ex\" height=\"5.804ex\" viewBox=\"0 -1490.8 8220 2498.8\" role=\"img\" focusable=\"false\" style=\"vertical-align: -2.341ex; max-width: 100%;\"><defs><path stroke-width=\"0\" id=\"E10-MJMAIN-4A\" d=\"M89 177Q115 177 133 160T152 112Q152 88 137 72T102 52Q99 51 101 49Q106 43 129 29Q159 15 190 15Q232 15 256 48T286 126Q286 127 286 142T286 183T286 238T287 306T287 378Q287 403 287 429T287 479T287 524T286 563T286 593T286 614V621Q281 630 263 633T182 637H154V683H166Q187 680 332 680Q439 680 457 683H465V637H449Q422 637 401 634Q393 631 389 623Q388 621 388 376T387 123Q377 61 322 20T194 -22Q188 -22 177 -21T160 -20Q96 -9 61 29T25 110Q25 144 44 160T89 177Z\"><\/path><path stroke-width=\"0\" id=\"E10-MJMAIN-61\" d=\"M137 305T115 305T78 320T63 359Q63 394 97 421T218 448Q291 448 336 416T396 340Q401 326 401 309T402 194V124Q402 76 407 58T428 40Q443 40 448 56T453 109V145H493V106Q492 66 490 59Q481 29 455 12T400 -6T353 12T329 54V58L327 55Q325 52 322 49T314 40T302 29T287 17T269 6T247 -2T221 -8T190 -11Q130 -11 82 20T34 107Q34 128 41 147T68 188T116 225T194 253T304 268H318V290Q318 324 312 340Q290 411 215 411Q197 411 181 410T156 406T148 403Q170 388 170 359Q170 334 154 320ZM126 106Q126 75 150 51T209 26Q247 26 276 49T315 109Q317 116 318 175Q318 233 317 233Q309 233 296 232T251 223T193 203T147 166T126 106Z\"><\/path><path stroke-width=\"0\" id=\"E10-MJMAIN-63\" d=\"M370 305T349 305T313 320T297 358Q297 381 312 396Q317 401 317 402T307 404Q281 408 258 408Q209 408 178 376Q131 329 131 219Q131 137 162 90Q203 29 272 29Q313 29 338 55T374 117Q376 125 379 127T395 129H409Q415 123 415 120Q415 116 411 104T395 71T366 33T318 2T249 -11Q163 -11 99 53T34 214Q34 318 99 383T250 448T370 421T404 357Q404 334 387 320Z\"><\/path><path stroke-width=\"0\" id=\"E10-MJMAIN-72\" d=\"M36 46H50Q89 46 97 60V68Q97 77 97 91T98 122T98 161T98 203Q98 234 98 269T98 328L97 351Q94 370 83 376T38 385H20V408Q20 431 22 431L32 432Q42 433 60 434T96 436Q112 437 131 438T160 441T171 442H174V373Q213 441 271 441H277Q322 441 343 419T364 373Q364 352 351 337T313 322Q288 322 276 338T263 372Q263 381 265 388T270 400T273 405Q271 407 250 401Q234 393 226 386Q179 341 179 207V154Q179 141 179 127T179 101T180 81T180 66V61Q181 59 183 57T188 54T193 51T200 49T207 48T216 47T225 47T235 46T245 46H276V0H267Q249 3 140 3Q37 3 28 0H20V46H36Z\"><\/path><path stroke-width=\"0\" id=\"E10-MJMAIN-64\" d=\"M376 495Q376 511 376 535T377 568Q377 613 367 624T316 637H298V660Q298 683 300 683L310 684Q320 685 339 686T376 688Q393 689 413 690T443 693T454 694H457V390Q457 84 458 81Q461 61 472 55T517 46H535V0Q533 0 459 -5T380 -11H373V44L365 37Q307 -11 235 -11Q158 -11 96 50T34 215Q34 315 97 378T244 442Q319 442 376 393V495ZM373 342Q328 405 260 405Q211 405 173 369Q146 341 139 305T131 211Q131 155 138 120T173 59Q203 26 251 26Q322 26 373 103V342Z\"><\/path><path stroke-width=\"0\" id=\"E10-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=\"0\" id=\"E10-MJMAIN-7C\" d=\"M139 -249H137Q125 -249 119 -235V251L120 737Q130 750 139 750Q152 750 159 735V-235Q151 -249 141 -249H139Z\"><\/path><path stroke-width=\"0\" id=\"E10-MJMATHI-41\" d=\"M208 74Q208 50 254 46Q272 46 272 35Q272 34 270 22Q267 8 264 4T251 0Q249 0 239 0T205 1T141 2Q70 2 50 0H42Q35 7 35 11Q37 38 48 46H62Q132 49 164 96Q170 102 345 401T523 704Q530 716 547 716H555H572Q578 707 578 706L606 383Q634 60 636 57Q641 46 701 46Q726 46 726 36Q726 34 723 22Q720 7 718 4T704 0Q701 0 690 0T651 1T578 2Q484 2 455 0H443Q437 6 437 9T439 27Q443 40 445 43L449 46H469Q523 49 533 63L521 213H283L249 155Q208 86 208 74ZM516 260Q516 271 504 416T490 562L463 519Q447 492 400 412L310 260L413 259Q516 259 516 260Z\"><\/path><path stroke-width=\"0\" id=\"E10-MJMAIN-2229\" d=\"M88 -21T75 -21T55 -7V200Q55 231 55 280Q56 414 60 428Q61 430 61 431Q77 500 152 549T332 598Q443 598 522 544T610 405Q611 399 611 194V-7Q604 -22 591 -22Q582 -22 572 -9L570 405Q563 433 556 449T529 485Q498 519 445 538T334 558Q251 558 179 518T96 401Q95 396 95 193V-7Q88 -21 75 -21Z\"><\/path><path stroke-width=\"0\" id=\"E10-MJMATHI-42\" d=\"M231 637Q204 637 199 638T194 649Q194 676 205 682Q206 683 335 683Q594 683 608 681Q671 671 713 636T756 544Q756 480 698 429T565 360L555 357Q619 348 660 311T702 219Q702 146 630 78T453 1Q446 0 242 0Q42 0 39 2Q35 5 35 10Q35 17 37 24Q42 43 47 45Q51 46 62 46H68Q95 46 128 49Q142 52 147 61Q150 65 219 339T288 628Q288 635 231 637ZM649 544Q649 574 634 600T585 634Q578 636 493 637Q473 637 451 637T416 636H403Q388 635 384 626Q382 622 352 506Q352 503 351 500L320 374H401Q482 374 494 376Q554 386 601 434T649 544ZM595 229Q595 273 572 302T512 336Q506 337 429 337Q311 337 310 336Q310 334 293 263T258 122L240 52Q240 48 252 48T333 46Q422 46 429 47Q491 54 543 105T595 229Z\"><\/path><path stroke-width=\"0\" id=\"E10-MJMAIN-222A\" d=\"M591 598H592Q604 598 611 583V376Q611 345 611 296Q610 162 606 148Q605 146 605 145Q586 68 507 23T333 -22Q268 -22 209 -1T106 66T56 173Q55 180 55 384L56 585Q66 598 75 598Q85 598 95 585V378L96 172L98 162Q112 95 181 57T332 18Q415 18 487 58T570 175Q571 180 571 383V583Q579 598 591 598Z\"><\/path><\/defs><g stroke=\"currentColor\" fill=\"currentColor\" stroke-width=\"0\" transform=\"matrix(1 0 0 -1 0 0)\"><use xlink:href=\"#E10-MJMAIN-4A\"><\/use><use xlink:href=\"#E10-MJMAIN-61\" x=\"514\" y=\"0\"><\/use><use xlink:href=\"#E10-MJMAIN-63\" x=\"1014\" y=\"0\"><\/use><use xlink:href=\"#E10-MJMAIN-63\" x=\"1458\" y=\"0\"><\/use><use xlink:href=\"#E10-MJMAIN-61\" x=\"1902\" y=\"0\"><\/use><use xlink:href=\"#E10-MJMAIN-72\" x=\"2402\" y=\"0\"><\/use><use xlink:href=\"#E10-MJMAIN-64\" x=\"2794\" y=\"0\"><\/use><use xlink:href=\"#E10-MJMAIN-3D\" x=\"3627\" y=\"0\"><\/use><g transform=\"translate(4405,0)\"><g transform=\"translate(397,0)\"><rect stroke=\"none\" width=\"3296\" height=\"60\" x=\"0\" y=\"220\"><\/rect><g transform=\"translate(60,689)\"><use xlink:href=\"#E10-MJMAIN-7C\" x=\"0\" y=\"0\"><\/use><use xlink:href=\"#E10-MJMATHI-41\" x=\"278\" y=\"0\"><\/use><use xlink:href=\"#E10-MJMAIN-2229\" x=\"1250\" y=\"0\"><\/use><use xlink:href=\"#E10-MJMATHI-42\" x=\"2139\" y=\"0\"><\/use><use xlink:href=\"#E10-MJMAIN-7C\" x=\"2898\" y=\"0\"><\/use><\/g><g transform=\"translate(60,-691)\"><use xlink:href=\"#E10-MJMAIN-7C\" x=\"0\" y=\"0\"><\/use><use xlink:href=\"#E10-MJMATHI-41\" x=\"278\" y=\"0\"><\/use><use xlink:href=\"#E10-MJMAIN-222A\" x=\"1250\" y=\"0\"><\/use><use xlink:href=\"#E10-MJMATHI-42\" x=\"2139\" y=\"0\"><\/use><use xlink:href=\"#E10-MJMAIN-7C\" x=\"2898\" y=\"0\"><\/use><\/g><\/g><\/g><\/g><\/svg><\/span><\/div><script type=\"math\/tex; mode=display\" id=\"MathJax-Element-4\">\\text{Jaccard} = \\frac{|A \\cap B|}{|A \\cup B|}<\/script>\n\t\t\t\t\t<\/div><\/div><p>&nbsp;<\/p><\/li><li><p><strong><span>\u53d6\u503c\u8303\u56f4<\/span><\/strong><span>\uff1a\u4ece 0 \u5230 1\uff0c0 \u8868\u793a\u6ca1\u6709\u91cd\u53e0\uff0c1 \u8868\u793a\u5b8c\u5168\u91cd\u53e0\u3002<\/span><\/p><\/li><li><p><strong><span>\u4f18\u70b9<\/span><\/strong><span>\uff1a\u9002\u7528\u4e8e\u4efb\u610f\u5927\u5c0f\u7684\u76ee\u6807\u5206\u5272\uff0c\u5f3a\u8c03\u6b63\u786e\u5206\u7c7b\u533a\u57df\u7684\u6bd4\u4f8b\u3002<\/span><\/p><\/li><\/ul><h3><a name=\"3-hausdorff-\u8ddd\u79bbhd\uff09\" class=\"md-header-anchor\"><\/a><span>3. Hausdorff \u8ddd\u79bb\uff08HD\uff09<\/span><\/h3><ul><li><p><strong><span>\u5b9a\u4e49<\/span><\/strong><span>\uff1aHausdorff \u8ddd\u79bb\u662f\u4e00\u79cd\u6d4b\u91cf\u4e24\u4e2a\u70b9\u96c6\u4e4b\u95f4\u7684\u8ddd\u79bb\u7684\u6307\u6807\uff0c\u901a\u5e38\u7528\u4e8e\u8bc4\u4f30\u5206\u5272\u8fb9\u754c\u7684\u51c6\u786e\u6027\u3002\u8ba1\u7b97\u516c\u5f0f\u4e3a\uff1a<\/span><\/p><div contenteditable=\"false\" spellcheck=\"false\" class=\"mathjax-block md-end-block md-math-block md-rawblock\" id=\"mathjax-n60\" cid=\"n60\" mdtype=\"math_block\"><div class=\"md-rawblock-container md-math-container\" contenteditable=\"false\" tabindex=\"-1\">\n\t\t\t\t\t\t<div class=\"MathJax_SVG_Display\" style=\"text-align: center;\"><span class=\"MathJax_SVG\" id=\"MathJax-Element-6-Frame\" tabindex=\"-1\" style=\"font-size: 100%; display: inline-block;\"><svg xmlns:xlink=\"http:\/\/www.w3.org\/1999\/xlink\" width=\"50.53ex\" height=\"2.626ex\" viewBox=\"0 -806.8 21756 1130.7\" role=\"img\" focusable=\"false\" style=\"vertical-align: -0.752ex; max-width: 100%;\"><defs><path stroke-width=\"0\" id=\"E16-MJMAIN-48\" d=\"M128 622Q121 629 117 631T101 634T58 637H25V683H36Q57 680 180 680Q315 680 324 683H335V637H302Q262 636 251 634T233 622L232 500V378H517V622Q510 629 506 631T490 634T447 637H414V683H425Q446 680 569 680Q704 680 713 683H724V637H691Q651 636 640 634T622 622V61Q628 51 639 49T691 46H724V0H713Q692 3 569 3Q434 3 425 0H414V46H447Q489 47 498 49T517 61V332H232V197L233 61Q239 51 250 49T302 46H335V0H324Q303 3 180 3Q45 3 36 0H25V46H58Q100 47 109 49T128 61V622Z\"><\/path><path stroke-width=\"0\" id=\"E16-MJMAIN-44\" d=\"M130 622Q123 629 119 631T103 634T60 637H27V683H228Q399 682 419 682T461 676Q504 667 546 641T626 573T685 470T708 336Q708 210 634 116T442 3Q429 1 228 0H27V46H60Q102 47 111 49T130 61V622ZM593 338Q593 439 571 501T493 602Q439 637 355 637H322H294Q238 637 234 628Q231 624 231 344Q231 62 232 59Q233 49 248 48T339 46H350Q456 46 515 95Q561 133 577 191T593 338Z\"><\/path><path stroke-width=\"0\" id=\"E16-MJMAIN-28\" d=\"M94 250Q94 319 104 381T127 488T164 576T202 643T244 695T277 729T302 750H315H319Q333 750 333 741Q333 738 316 720T275 667T226 581T184 443T167 250T184 58T225 -81T274 -167T316 -220T333 -241Q333 -250 318 -250H315H302L274 -226Q180 -141 137 -14T94 250Z\"><\/path><path stroke-width=\"0\" id=\"E16-MJMATHI-41\" d=\"M208 74Q208 50 254 46Q272 46 272 35Q272 34 270 22Q267 8 264 4T251 0Q249 0 239 0T205 1T141 2Q70 2 50 0H42Q35 7 35 11Q37 38 48 46H62Q132 49 164 96Q170 102 345 401T523 704Q530 716 547 716H555H572Q578 707 578 706L606 383Q634 60 636 57Q641 46 701 46Q726 46 726 36Q726 34 723 22Q720 7 718 4T704 0Q701 0 690 0T651 1T578 2Q484 2 455 0H443Q437 6 437 9T439 27Q443 40 445 43L449 46H469Q523 49 533 63L521 213H283L249 155Q208 86 208 74ZM516 260Q516 271 504 416T490 562L463 519Q447 492 400 412L310 260L413 259Q516 259 516 260Z\"><\/path><path stroke-width=\"0\" id=\"E16-MJMAIN-2C\" d=\"M78 35T78 60T94 103T137 121Q165 121 187 96T210 8Q210 -27 201 -60T180 -117T154 -158T130 -185T117 -194Q113 -194 104 -185T95 -172Q95 -168 106 -156T131 -126T157 -76T173 -3V9L172 8Q170 7 167 6T161 3T152 1T140 0Q113 0 96 17Z\"><\/path><path stroke-width=\"0\" id=\"E16-MJMATHI-42\" d=\"M231 637Q204 637 199 638T194 649Q194 676 205 682Q206 683 335 683Q594 683 608 681Q671 671 713 636T756 544Q756 480 698 429T565 360L555 357Q619 348 660 311T702 219Q702 146 630 78T453 1Q446 0 242 0Q42 0 39 2Q35 5 35 10Q35 17 37 24Q42 43 47 45Q51 46 62 46H68Q95 46 128 49Q142 52 147 61Q150 65 219 339T288 628Q288 635 231 637ZM649 544Q649 574 634 600T585 634Q578 636 493 637Q473 637 451 637T416 636H403Q388 635 384 626Q382 622 352 506Q352 503 351 500L320 374H401Q482 374 494 376Q554 386 601 434T649 544ZM595 229Q595 273 572 302T512 336Q506 337 429 337Q311 337 310 336Q310 334 293 263T258 122L240 52Q240 48 252 48T333 46Q422 46 429 47Q491 54 543 105T595 229Z\"><\/path><path stroke-width=\"0\" id=\"E16-MJMAIN-29\" d=\"M60 749L64 750Q69 750 74 750H86L114 726Q208 641 251 514T294 250Q294 182 284 119T261 12T224 -76T186 -143T145 -194T113 -227T90 -246Q87 -249 86 -250H74Q66 -250 63 -250T58 -247T55 -238Q56 -237 66 -225Q221 -64 221 250T66 725Q56 737 55 738Q55 746 60 749Z\"><\/path><path stroke-width=\"0\" id=\"E16-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=\"0\" id=\"E16-MJMAIN-6D\" d=\"M41 46H55Q94 46 102 60V68Q102 77 102 91T102 122T103 161T103 203Q103 234 103 269T102 328V351Q99 370 88 376T43 385H25V408Q25 431 27 431L37 432Q47 433 65 434T102 436Q119 437 138 438T167 441T178 442H181V402Q181 364 182 364T187 369T199 384T218 402T247 421T285 437Q305 442 336 442Q351 442 364 440T387 434T406 426T421 417T432 406T441 395T448 384T452 374T455 366L457 361L460 365Q463 369 466 373T475 384T488 397T503 410T523 422T546 432T572 439T603 442Q729 442 740 329Q741 322 741 190V104Q741 66 743 59T754 49Q775 46 803 46H819V0H811L788 1Q764 2 737 2T699 3Q596 3 587 0H579V46H595Q656 46 656 62Q657 64 657 200Q656 335 655 343Q649 371 635 385T611 402T585 404Q540 404 506 370Q479 343 472 315T464 232V168V108Q464 78 465 68T468 55T477 49Q498 46 526 46H542V0H534L510 1Q487 2 460 2T422 3Q319 3 310 0H302V46H318Q379 46 379 62Q380 64 380 200Q379 335 378 343Q372 371 358 385T334 402T308 404Q263 404 229 370Q202 343 195 315T187 232V168V108Q187 78 188 68T191 55T200 49Q221 46 249 46H265V0H257L234 1Q210 2 183 2T145 3Q42 3 33 0H25V46H41Z\"><\/path><path stroke-width=\"0\" id=\"E16-MJMAIN-61\" d=\"M137 305T115 305T78 320T63 359Q63 394 97 421T218 448Q291 448 336 416T396 340Q401 326 401 309T402 194V124Q402 76 407 58T428 40Q443 40 448 56T453 109V145H493V106Q492 66 490 59Q481 29 455 12T400 -6T353 12T329 54V58L327 55Q325 52 322 49T314 40T302 29T287 17T269 6T247 -2T221 -8T190 -11Q130 -11 82 20T34 107Q34 128 41 147T68 188T116 225T194 253T304 268H318V290Q318 324 312 340Q290 411 215 411Q197 411 181 410T156 406T148 403Q170 388 170 359Q170 334 154 320ZM126 106Q126 75 150 51T209 26Q247 26 276 49T315 109Q317 116 318 175Q318 233 317 233Q309 233 296 232T251 223T193 203T147 166T126 106Z\"><\/path><path stroke-width=\"0\" id=\"E16-MJMAIN-78\" d=\"M201 0Q189 3 102 3Q26 3 17 0H11V46H25Q48 47 67 52T96 61T121 78T139 96T160 122T180 150L226 210L168 288Q159 301 149 315T133 336T122 351T113 363T107 370T100 376T94 379T88 381T80 383Q74 383 44 385H16V431H23Q59 429 126 429Q219 429 229 431H237V385Q201 381 201 369Q201 367 211 353T239 315T268 274L272 270L297 304Q329 345 329 358Q329 364 327 369T322 376T317 380T310 384L307 385H302V431H309Q324 428 408 428Q487 428 493 431H499V385H492Q443 385 411 368Q394 360 377 341T312 257L296 236L358 151Q424 61 429 57T446 50Q464 46 499 46H516V0H510H502Q494 1 482 1T457 2T432 2T414 3Q403 3 377 3T327 1L304 0H295V46H298Q309 46 320 51T331 63Q331 65 291 120L250 175Q249 174 219 133T185 88Q181 83 181 74Q181 63 188 55T206 46Q208 46 208 23V0H201Z\"><\/path><path stroke-width=\"0\" id=\"E16-MJMAIN-7B\" d=\"M434 -231Q434 -244 428 -250H410Q281 -250 230 -184Q225 -177 222 -172T217 -161T213 -148T211 -133T210 -111T209 -84T209 -47T209 0Q209 21 209 53Q208 142 204 153Q203 154 203 155Q189 191 153 211T82 231Q71 231 68 234T65 250T68 266T82 269Q116 269 152 289T203 345Q208 356 208 377T209 529V579Q209 634 215 656T244 698Q270 724 324 740Q361 748 377 749Q379 749 390 749T408 750H428Q434 744 434 732Q434 719 431 716Q429 713 415 713Q362 710 332 689T296 647Q291 634 291 499V417Q291 370 288 353T271 314Q240 271 184 255L170 250L184 245Q202 239 220 230T262 196T290 137Q291 131 291 1Q291 -134 296 -147Q306 -174 339 -192T415 -213Q429 -213 431 -216Q434 -219 434 -231Z\"><\/path><path stroke-width=\"0\" id=\"E16-MJMATHI-64\" d=\"M366 683Q367 683 438 688T511 694Q523 694 523 686Q523 679 450 384T375 83T374 68Q374 26 402 26Q411 27 422 35Q443 55 463 131Q469 151 473 152Q475 153 483 153H487H491Q506 153 506 145Q506 140 503 129Q490 79 473 48T445 8T417 -8Q409 -10 393 -10Q359 -10 336 5T306 36L300 51Q299 52 296 50Q294 48 292 46Q233 -10 172 -10Q117 -10 75 30T33 157Q33 205 53 255T101 341Q148 398 195 420T280 442Q336 442 364 400Q369 394 369 396Q370 400 396 505T424 616Q424 629 417 632T378 637H357Q351 643 351 645T353 664Q358 683 366 683ZM352 326Q329 405 277 405Q242 405 210 374T160 293Q131 214 119 129Q119 126 119 118T118 106Q118 61 136 44T179 26Q233 26 290 98L298 109L352 326Z\"><\/path><path stroke-width=\"0\" id=\"E16-MJMATHI-61\" d=\"M33 157Q33 258 109 349T280 441Q331 441 370 392Q386 422 416 422Q429 422 439 414T449 394Q449 381 412 234T374 68Q374 43 381 35T402 26Q411 27 422 35Q443 55 463 131Q469 151 473 152Q475 153 483 153H487Q506 153 506 144Q506 138 501 117T481 63T449 13Q436 0 417 -8Q409 -10 393 -10Q359 -10 336 5T306 36L300 51Q299 52 296 50Q294 48 292 46Q233 -10 172 -10Q117 -10 75 30T33 157ZM351 328Q351 334 346 350T323 385T277 405Q242 405 210 374T160 293Q131 214 119 129Q119 126 119 118T118 106Q118 61 136 44T179 26Q217 26 254 59T298 110Q300 114 325 217T351 328Z\"><\/path><path stroke-width=\"0\" id=\"E16-MJMATHI-62\" d=\"M73 647Q73 657 77 670T89 683Q90 683 161 688T234 694Q246 694 246 685T212 542Q204 508 195 472T180 418L176 399Q176 396 182 402Q231 442 283 442Q345 442 383 396T422 280Q422 169 343 79T173 -11Q123 -11 82 27T40 150V159Q40 180 48 217T97 414Q147 611 147 623T109 637Q104 637 101 637H96Q86 637 83 637T76 640T73 647ZM336 325V331Q336 405 275 405Q258 405 240 397T207 376T181 352T163 330L157 322L136 236Q114 150 114 114Q114 66 138 42Q154 26 178 26Q211 26 245 58Q270 81 285 114T318 219Q336 291 336 325Z\"><\/path><path stroke-width=\"0\" id=\"E16-MJMAIN-7D\" d=\"M65 731Q65 745 68 747T88 750Q171 750 216 725T279 670Q288 649 289 635T291 501Q292 362 293 357Q306 312 345 291T417 269Q428 269 431 266T434 250T431 234T417 231Q380 231 345 210T298 157Q293 143 292 121T291 -28V-79Q291 -134 285 -156T256 -198Q202 -250 89 -250Q71 -250 68 -247T65 -230Q65 -224 65 -223T66 -218T69 -214T77 -213Q91 -213 108 -210T146 -200T183 -177T207 -139Q208 -134 209 3L210 139Q223 196 280 230Q315 247 330 250Q305 257 280 270Q225 304 212 352L210 362L209 498Q208 635 207 640Q195 680 154 696T77 713Q68 713 67 716T65 731Z\"><\/path><path stroke-width=\"0\" id=\"E16-MJMAIN-2200\" d=\"M0 673Q0 684 7 689T20 694Q32 694 38 680T82 567L126 451H430L473 566Q483 593 494 622T512 668T519 685Q524 694 538 694Q556 692 556 674Q556 670 426 329T293 -15Q288 -22 278 -22T263 -15Q260 -11 131 328T0 673ZM414 410Q414 411 278 411T142 410L278 55L414 410Z\"><\/path><path stroke-width=\"0\" id=\"E16-MJMAIN-2208\" d=\"M84 250Q84 372 166 450T360 539Q361 539 377 539T419 540T469 540H568Q583 532 583 520Q583 511 570 501L466 500Q355 499 329 494Q280 482 242 458T183 409T147 354T129 306T124 272V270H568Q583 262 583 250T568 230H124V228Q124 207 134 177T167 112T231 48T328 7Q355 1 466 0H570Q583 -10 583 -20Q583 -32 568 -40H471Q464 -40 446 -40T417 -41Q262 -41 172 45Q84 127 84 250Z\"><\/path><\/defs><g stroke=\"currentColor\" fill=\"currentColor\" stroke-width=\"0\" transform=\"matrix(1 0 0 -1 0 0)\"><use xlink:href=\"#E16-MJMAIN-48\"><\/use><use xlink:href=\"#E16-MJMAIN-44\" x=\"750\" y=\"0\"><\/use><use xlink:href=\"#E16-MJMAIN-28\" x=\"1514\" y=\"0\"><\/use><use xlink:href=\"#E16-MJMATHI-41\" x=\"1903\" y=\"0\"><\/use><use xlink:href=\"#E16-MJMAIN-2C\" x=\"2653\" y=\"0\"><\/use><use xlink:href=\"#E16-MJMATHI-42\" x=\"3097\" y=\"0\"><\/use><use xlink:href=\"#E16-MJMAIN-29\" x=\"3856\" y=\"0\"><\/use><use xlink:href=\"#E16-MJMAIN-3D\" x=\"4523\" y=\"0\"><\/use><g transform=\"translate(5579,0)\"><use xlink:href=\"#E16-MJMAIN-6D\"><\/use><use xlink:href=\"#E16-MJMAIN-61\" x=\"833\" y=\"0\"><\/use><use xlink:href=\"#E16-MJMAIN-78\" x=\"1333\" y=\"0\"><\/use><\/g><use xlink:href=\"#E16-MJMAIN-7B\" x=\"7440\" y=\"0\"><\/use><use xlink:href=\"#E16-MJMATHI-64\" x=\"7940\" y=\"0\"><\/use><use xlink:href=\"#E16-MJMAIN-28\" x=\"8463\" y=\"0\"><\/use><use xlink:href=\"#E16-MJMATHI-61\" x=\"8852\" y=\"0\"><\/use><use xlink:href=\"#E16-MJMAIN-2C\" x=\"9381\" y=\"0\"><\/use><use xlink:href=\"#E16-MJMATHI-42\" x=\"9825\" y=\"0\"><\/use><use xlink:href=\"#E16-MJMAIN-29\" x=\"10584\" y=\"0\"><\/use><use xlink:href=\"#E16-MJMAIN-2C\" x=\"10973\" y=\"0\"><\/use><use xlink:href=\"#E16-MJMATHI-64\" x=\"11418\" y=\"0\"><\/use><use xlink:href=\"#E16-MJMAIN-28\" x=\"11941\" y=\"0\"><\/use><use xlink:href=\"#E16-MJMATHI-62\" x=\"12330\" y=\"0\"><\/use><use xlink:href=\"#E16-MJMAIN-2C\" x=\"12759\" y=\"0\"><\/use><use xlink:href=\"#E16-MJMATHI-41\" x=\"13204\" y=\"0\"><\/use><use xlink:href=\"#E16-MJMAIN-29\" x=\"13954\" y=\"0\"><\/use><use xlink:href=\"#E16-MJMAIN-7D\" x=\"14343\" y=\"0\"><\/use><use xlink:href=\"#E16-MJMAIN-2200\" x=\"15843\" y=\"0\"><\/use><use xlink:href=\"#E16-MJMATHI-61\" x=\"16399\" y=\"0\"><\/use><use xlink:href=\"#E16-MJMAIN-2208\" x=\"17205\" y=\"0\"><\/use><use xlink:href=\"#E16-MJMATHI-41\" x=\"18150\" y=\"0\"><\/use><use xlink:href=\"#E16-MJMAIN-2C\" x=\"18900\" y=\"0\"><\/use><use xlink:href=\"#E16-MJMATHI-62\" x=\"19345\" y=\"0\"><\/use><use xlink:href=\"#E16-MJMAIN-2208\" x=\"20052\" y=\"0\"><\/use><use xlink:href=\"#E16-MJMATHI-42\" x=\"20996\" y=\"0\"><\/use><\/g><\/svg><\/span><\/div><script type=\"math\/tex; mode=display\" id=\"MathJax-Element-6\">\\text{HD}(A, B) = \\max\\{d(a, B), d(b, A)\\} \\quad \\forall a \\in A, b \\in B<\/script>\n\t\t\t\t\t<\/div><\/div><p><span>\u5176\u4e2d <\/span><span>(<\/span><span>d(a, B)<\/span><span>)<\/span><span> \u8868\u793a\u70b9 <\/span><span>(<\/span><span>a<\/span><span>)<\/span><span> \u5230\u96c6\u5408 <\/span><span>(<\/span><span>B<\/span><span>)<\/span><span> \u4e2d\u6700\u8fd1\u70b9\u7684\u8ddd\u79bb\u3002<\/span><\/p><p><span>\u5176\u4e2d <\/span><span>(<\/span><span>d(a, B)<\/span><span>)<\/span><span> \u8868\u793a\u70b9 <\/span><span>(<\/span><span>a<\/span><span>)<\/span><span> \u5230\u96c6\u5408 <\/span><span>(<\/span><span>B<\/span><span>)<\/span><span> \u4e2d\u6700\u8fd1\u70b9\u7684\u8ddd\u79bb\u3002<\/span><\/p><\/li><li><p><strong><span>\u53d6\u503c\u8303\u56f4<\/span><\/strong><span>\uff1a0 \u5230\u65e0\u7a77\u5927\uff0c0 \u8868\u793a\u5b8c\u5168\u91cd\u53e0\u3002<\/span><\/p><\/li><li><p><strong><span>\u4f18\u70b9<\/span><\/strong><span>\uff1a\u80fd\u6709\u6548\u6355\u6349\u8fb9\u754c\u7684\u8bef\u5dee\uff0c\u9002\u5408\u5904\u7406\u590d\u6742\u5f62\u72b6\u7684\u76ee\u6807\u3002<\/span><\/p><\/li><\/ul><h3><a name=\"4-\u5e73\u5747\u8868\u9762\u8ddd\u79bbasd\uff09\" class=\"md-header-anchor\"><\/a><span>4. \u5e73\u5747\u8868\u9762\u8ddd\u79bb\uff08ASD\uff09<\/span><\/h3><ul><li><p><strong><span>\u5b9a\u4e49<\/span><\/strong><span>\uff1a\u5e73\u5747\u8868\u9762\u8ddd\u79bb\u662f\u8ba1\u7b97\u9884\u6d4b\u548c\u771f\u5b9e\u5206\u5272\u8fb9\u754c\u4e4b\u95f4\u7684\u5e73\u5747\u8ddd\u79bb\u3002\u8ba1\u7b97\u516c\u5f0f\u4e3a\uff1a<\/span><\/p><div contenteditable=\"false\" spellcheck=\"false\" class=\"mathjax-block md-end-block md-math-block md-rawblock\" id=\"mathjax-n66\" cid=\"n66\" mdtype=\"math_block\"><div class=\"md-rawblock-container md-math-container\" contenteditable=\"false\" tabindex=\"-1\">\n\t\t\t\t\t\t<div class=\"MathJax_SVG_Display\" style=\"text-align: center;\"><span class=\"MathJax_SVG\" id=\"MathJax-Element-8-Frame\" tabindex=\"-1\" style=\"font-size: 100%; display: inline-block;\"><svg xmlns:xlink=\"http:\/\/www.w3.org\/1999\/xlink\" width=\"46.943ex\" height=\"6.364ex\" viewBox=\"0 -1410.4 20211.7 2740.2\" role=\"img\" focusable=\"false\" style=\"vertical-align: -3.089ex; max-width: 100%;\"><defs><path stroke-width=\"0\" id=\"E21-MJMAIN-41\" d=\"M255 0Q240 3 140 3Q48 3 39 0H32V46H47Q119 49 139 88Q140 91 192 245T295 553T348 708Q351 716 366 716H376Q396 715 400 709Q402 707 508 390L617 67Q624 54 636 51T687 46H717V0H708Q699 3 581 3Q458 3 437 0H427V46H440Q510 46 510 64Q510 66 486 138L462 209H229L209 150Q189 91 189 85Q189 72 209 59T259 46H264V0H255ZM447 255L345 557L244 256Q244 255 345 255H447Z\"><\/path><path stroke-width=\"0\" id=\"E21-MJMAIN-53\" d=\"M55 507Q55 590 112 647T243 704H257Q342 704 405 641L426 672Q431 679 436 687T446 700L449 704Q450 704 453 704T459 705H463Q466 705 472 699V462L466 456H448Q437 456 435 459T430 479Q413 605 329 646Q292 662 254 662Q201 662 168 626T135 542Q135 508 152 480T200 435Q210 431 286 412T370 389Q427 367 463 314T500 191Q500 110 448 45T301 -21Q245 -21 201 -4T140 27L122 41Q118 36 107 21T87 -7T78 -21Q76 -22 68 -22H64Q61 -22 55 -16V101Q55 220 56 222Q58 227 76 227H89Q95 221 95 214Q95 182 105 151T139 90T205 42T305 24Q352 24 386 62T420 155Q420 198 398 233T340 281Q284 295 266 300Q261 301 239 306T206 314T174 325T141 343T112 367T85 402Q55 451 55 507Z\"><\/path><path stroke-width=\"0\" id=\"E21-MJMAIN-44\" d=\"M130 622Q123 629 119 631T103 634T60 637H27V683H228Q399 682 419 682T461 676Q504 667 546 641T626 573T685 470T708 336Q708 210 634 116T442 3Q429 1 228 0H27V46H60Q102 47 111 49T130 61V622ZM593 338Q593 439 571 501T493 602Q439 637 355 637H322H294Q238 637 234 628Q231 624 231 344Q231 62 232 59Q233 49 248 48T339 46H350Q456 46 515 95Q561 133 577 191T593 338Z\"><\/path><path stroke-width=\"0\" id=\"E21-MJMAIN-28\" d=\"M94 250Q94 319 104 381T127 488T164 576T202 643T244 695T277 729T302 750H315H319Q333 750 333 741Q333 738 316 720T275 667T226 581T184 443T167 250T184 58T225 -81T274 -167T316 -220T333 -241Q333 -250 318 -250H315H302L274 -226Q180 -141 137 -14T94 250Z\"><\/path><path stroke-width=\"0\" id=\"E21-MJMATHI-41\" d=\"M208 74Q208 50 254 46Q272 46 272 35Q272 34 270 22Q267 8 264 4T251 0Q249 0 239 0T205 1T141 2Q70 2 50 0H42Q35 7 35 11Q37 38 48 46H62Q132 49 164 96Q170 102 345 401T523 704Q530 716 547 716H555H572Q578 707 578 706L606 383Q634 60 636 57Q641 46 701 46Q726 46 726 36Q726 34 723 22Q720 7 718 4T704 0Q701 0 690 0T651 1T578 2Q484 2 455 0H443Q437 6 437 9T439 27Q443 40 445 43L449 46H469Q523 49 533 63L521 213H283L249 155Q208 86 208 74ZM516 260Q516 271 504 416T490 562L463 519Q447 492 400 412L310 260L413 259Q516 259 516 260Z\"><\/path><path stroke-width=\"0\" id=\"E21-MJMAIN-2C\" d=\"M78 35T78 60T94 103T137 121Q165 121 187 96T210 8Q210 -27 201 -60T180 -117T154 -158T130 -185T117 -194Q113 -194 104 -185T95 -172Q95 -168 106 -156T131 -126T157 -76T173 -3V9L172 8Q170 7 167 6T161 3T152 1T140 0Q113 0 96 17Z\"><\/path><path stroke-width=\"0\" id=\"E21-MJMATHI-42\" d=\"M231 637Q204 637 199 638T194 649Q194 676 205 682Q206 683 335 683Q594 683 608 681Q671 671 713 636T756 544Q756 480 698 429T565 360L555 357Q619 348 660 311T702 219Q702 146 630 78T453 1Q446 0 242 0Q42 0 39 2Q35 5 35 10Q35 17 37 24Q42 43 47 45Q51 46 62 46H68Q95 46 128 49Q142 52 147 61Q150 65 219 339T288 628Q288 635 231 637ZM649 544Q649 574 634 600T585 634Q578 636 493 637Q473 637 451 637T416 636H403Q388 635 384 626Q382 622 352 506Q352 503 351 500L320 374H401Q482 374 494 376Q554 386 601 434T649 544ZM595 229Q595 273 572 302T512 336Q506 337 429 337Q311 337 310 336Q310 334 293 263T258 122L240 52Q240 48 252 48T333 46Q422 46 429 47Q491 54 543 105T595 229Z\"><\/path><path stroke-width=\"0\" id=\"E21-MJMAIN-29\" d=\"M60 749L64 750Q69 750 74 750H86L114 726Q208 641 251 514T294 250Q294 182 284 119T261 12T224 -76T186 -143T145 -194T113 -227T90 -246Q87 -249 86 -250H74Q66 -250 63 -250T58 -247T55 -238Q56 -237 66 -225Q221 -64 221 250T66 725Q56 737 55 738Q55 746 60 749Z\"><\/path><path stroke-width=\"0\" id=\"E21-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=\"0\" id=\"E21-MJMAIN-31\" d=\"M213 578L200 573Q186 568 160 563T102 556H83V602H102Q149 604 189 617T245 641T273 663Q275 666 285 666Q294 666 302 660V361L303 61Q310 54 315 52T339 48T401 46H427V0H416Q395 3 257 3Q121 3 100 0H88V46H114Q136 46 152 46T177 47T193 50T201 52T207 57T213 61V578Z\"><\/path><path stroke-width=\"0\" id=\"E21-MJMAIN-7C\" d=\"M139 -249H137Q125 -249 119 -235V251L120 737Q130 750 139 750Q152 750 159 735V-235Q151 -249 141 -249H139Z\"><\/path><path stroke-width=\"0\" id=\"E21-MJSZ2-2211\" d=\"M60 948Q63 950 665 950H1267L1325 815Q1384 677 1388 669H1348L1341 683Q1320 724 1285 761Q1235 809 1174 838T1033 881T882 898T699 902H574H543H251L259 891Q722 258 724 252Q725 250 724 246Q721 243 460 -56L196 -356Q196 -357 407 -357Q459 -357 548 -357T676 -358Q812 -358 896 -353T1063 -332T1204 -283T1307 -196Q1328 -170 1348 -124H1388Q1388 -125 1381 -145T1356 -210T1325 -294L1267 -449L666 -450Q64 -450 61 -448Q55 -446 55 -439Q55 -437 57 -433L590 177Q590 178 557 222T452 366T322 544L56 909L55 924Q55 945 60 948Z\"><\/path><path stroke-width=\"0\" id=\"E21-MJMATHI-61\" d=\"M33 157Q33 258 109 349T280 441Q331 441 370 392Q386 422 416 422Q429 422 439 414T449 394Q449 381 412 234T374 68Q374 43 381 35T402 26Q411 27 422 35Q443 55 463 131Q469 151 473 152Q475 153 483 153H487Q506 153 506 144Q506 138 501 117T481 63T449 13Q436 0 417 -8Q409 -10 393 -10Q359 -10 336 5T306 36L300 51Q299 52 296 50Q294 48 292 46Q233 -10 172 -10Q117 -10 75 30T33 157ZM351 328Q351 334 346 350T323 385T277 405Q242 405 210 374T160 293Q131 214 119 129Q119 126 119 118T118 106Q118 61 136 44T179 26Q217 26 254 59T298 110Q300 114 325 217T351 328Z\"><\/path><path stroke-width=\"0\" id=\"E21-MJMAIN-2208\" d=\"M84 250Q84 372 166 450T360 539Q361 539 377 539T419 540T469 540H568Q583 532 583 520Q583 511 570 501L466 500Q355 499 329 494Q280 482 242 458T183 409T147 354T129 306T124 272V270H568Q583 262 583 250T568 230H124V228Q124 207 134 177T167 112T231 48T328 7Q355 1 466 0H570Q583 -10 583 -20Q583 -32 568 -40H471Q464 -40 446 -40T417 -41Q262 -41 172 45Q84 127 84 250Z\"><\/path><path stroke-width=\"0\" id=\"E21-MJMATHI-64\" d=\"M366 683Q367 683 438 688T511 694Q523 694 523 686Q523 679 450 384T375 83T374 68Q374 26 402 26Q411 27 422 35Q443 55 463 131Q469 151 473 152Q475 153 483 153H487H491Q506 153 506 145Q506 140 503 129Q490 79 473 48T445 8T417 -8Q409 -10 393 -10Q359 -10 336 5T306 36L300 51Q299 52 296 50Q294 48 292 46Q233 -10 172 -10Q117 -10 75 30T33 157Q33 205 53 255T101 341Q148 398 195 420T280 442Q336 442 364 400Q369 394 369 396Q370 400 396 505T424 616Q424 629 417 632T378 637H357Q351 643 351 645T353 664Q358 683 366 683ZM352 326Q329 405 277 405Q242 405 210 374T160 293Q131 214 119 129Q119 126 119 118T118 106Q118 61 136 44T179 26Q233 26 290 98L298 109L352 326Z\"><\/path><path stroke-width=\"0\" id=\"E21-MJMAIN-2B\" d=\"M56 237T56 250T70 270H369V420L370 570Q380 583 389 583Q402 583 409 568V270H707Q722 262 722 250T707 230H409V-68Q401 -82 391 -82H389H387Q375 -82 369 -68V230H70Q56 237 56 250Z\"><\/path><path stroke-width=\"0\" id=\"E21-MJMATHI-62\" d=\"M73 647Q73 657 77 670T89 683Q90 683 161 688T234 694Q246 694 246 685T212 542Q204 508 195 472T180 418L176 399Q176 396 182 402Q231 442 283 442Q345 442 383 396T422 280Q422 169 343 79T173 -11Q123 -11 82 27T40 150V159Q40 180 48 217T97 414Q147 611 147 623T109 637Q104 637 101 637H96Q86 637 83 637T76 640T73 647ZM336 325V331Q336 405 275 405Q258 405 240 397T207 376T181 352T163 330L157 322L136 236Q114 150 114 114Q114 66 138 42Q154 26 178 26Q211 26 245 58Q270 81 285 114T318 219Q336 291 336 325Z\"><\/path><\/defs><g stroke=\"currentColor\" fill=\"currentColor\" stroke-width=\"0\" transform=\"matrix(1 0 0 -1 0 0)\"><use xlink:href=\"#E21-MJMAIN-41\"><\/use><use xlink:href=\"#E21-MJMAIN-53\" x=\"750\" y=\"0\"><\/use><use xlink:href=\"#E21-MJMAIN-44\" x=\"1306\" y=\"0\"><\/use><use xlink:href=\"#E21-MJMAIN-28\" x=\"2070\" y=\"0\"><\/use><use xlink:href=\"#E21-MJMATHI-41\" x=\"2459\" y=\"0\"><\/use><use xlink:href=\"#E21-MJMAIN-2C\" x=\"3209\" y=\"0\"><\/use><use xlink:href=\"#E21-MJMATHI-42\" x=\"3653\" y=\"0\"><\/use><use xlink:href=\"#E21-MJMAIN-29\" x=\"4412\" y=\"0\"><\/use><use xlink:href=\"#E21-MJMAIN-3D\" x=\"5079\" y=\"0\"><\/use><g transform=\"translate(5857,0)\"><g transform=\"translate(397,0)\"><rect stroke=\"none\" width=\"1426\" height=\"60\" x=\"0\" y=\"220\"><\/rect><use xlink:href=\"#E21-MJMAIN-31\" x=\"463\" y=\"676\"><\/use><g transform=\"translate(60,-691)\"><use xlink:href=\"#E21-MJMAIN-7C\" x=\"0\" y=\"0\"><\/use><use xlink:href=\"#E21-MJMATHI-41\" x=\"278\" y=\"0\"><\/use><use xlink:href=\"#E21-MJMAIN-7C\" x=\"1028\" y=\"0\"><\/use><\/g><\/g><\/g><g transform=\"translate(7967,0)\"><use xlink:href=\"#E21-MJSZ2-2211\" x=\"0\" y=\"0\"><\/use><g transform=\"translate(33,-1123)\"><use transform=\"scale(0.707)\" xlink:href=\"#E21-MJMATHI-61\" x=\"0\" y=\"0\"><\/use><use transform=\"scale(0.707)\" xlink:href=\"#E21-MJMAIN-2208\" x=\"529\" y=\"0\"><\/use><use transform=\"scale(0.707)\" xlink:href=\"#E21-MJMATHI-41\" x=\"1196\" y=\"0\"><\/use><\/g><\/g><use xlink:href=\"#E21-MJMATHI-64\" x=\"9578\" y=\"0\"><\/use><use xlink:href=\"#E21-MJMAIN-28\" x=\"10101\" y=\"0\"><\/use><use xlink:href=\"#E21-MJMATHI-61\" x=\"10490\" y=\"0\"><\/use><use xlink:href=\"#E21-MJMAIN-2C\" x=\"11019\" y=\"0\"><\/use><use xlink:href=\"#E21-MJMATHI-42\" x=\"11464\" y=\"0\"><\/use><use xlink:href=\"#E21-MJMAIN-29\" x=\"12223\" y=\"0\"><\/use><use xlink:href=\"#E21-MJMAIN-2B\" x=\"12834\" y=\"0\"><\/use><g transform=\"translate(13612,0)\"><g transform=\"translate(342,0)\"><rect stroke=\"none\" width=\"1435\" height=\"60\" x=\"0\" y=\"220\"><\/rect><use xlink:href=\"#E21-MJMAIN-31\" x=\"467\" y=\"676\"><\/use><g transform=\"translate(60,-691)\"><use xlink:href=\"#E21-MJMAIN-7C\" x=\"0\" y=\"0\"><\/use><use xlink:href=\"#E21-MJMATHI-42\" x=\"278\" y=\"0\"><\/use><use xlink:href=\"#E21-MJMAIN-7C\" x=\"1037\" y=\"0\"><\/use><\/g><\/g><\/g><g transform=\"translate(15676,0)\"><use xlink:href=\"#E21-MJSZ2-2211\" x=\"0\" y=\"0\"><\/use><g transform=\"translate(66,-1108)\"><use transform=\"scale(0.707)\" xlink:href=\"#E21-MJMATHI-62\" x=\"0\" y=\"0\"><\/use><use transform=\"scale(0.707)\" xlink:href=\"#E21-MJMAIN-2208\" x=\"429\" y=\"0\"><\/use><use transform=\"scale(0.707)\" xlink:href=\"#E21-MJMATHI-42\" x=\"1096\" y=\"0\"><\/use><\/g><\/g><use xlink:href=\"#E21-MJMATHI-64\" x=\"17286\" y=\"0\"><\/use><use xlink:href=\"#E21-MJMAIN-28\" x=\"17809\" y=\"0\"><\/use><use xlink:href=\"#E21-MJMATHI-62\" x=\"18198\" y=\"0\"><\/use><use xlink:href=\"#E21-MJMAIN-2C\" x=\"18627\" y=\"0\"><\/use><use xlink:href=\"#E21-MJMATHI-41\" x=\"19072\" y=\"0\"><\/use><use xlink:href=\"#E21-MJMAIN-29\" x=\"19822\" y=\"0\"><\/use><\/g><\/svg><\/span><\/div><script type=\"math\/tex; mode=display\" id=\"MathJax-Element-8\">\\text{ASD}(A, B) = \\frac{1}{|A|} \\sum_{a \\in A} d(a, B) + \\frac{1}{|B|} \\sum_{b \\in B} d(b, A)<\/script>\n\t\t\t\t\t<\/div><\/div><p><span>\u5176\u4e2d <\/span><span>(<\/span><span>d(a, B)<\/span><span>)<\/span><span> \u8868\u793a\u70b9 <\/span><span>(<\/span><span>a<\/span><span>)<\/span><span> \u5230\u96c6\u5408 <\/span><span>(<\/span><span>B<\/span><span>)<\/span><span> \u4e2d\u6700\u8fd1\u70b9\u7684\u8ddd\u79bb\u3002<\/span><\/p><p><span>\u5176\u4e2d <\/span><span>(<\/span><span>d(a, B)<\/span><span>)<\/span><span> \u8868\u793a\u70b9 <\/span><span>(<\/span><span>a<\/span><span>)<\/span><span> \u5230\u96c6\u5408 <\/span><span>(<\/span><span>B<\/span><span>)<\/span><span> \u4e2d\u6700\u8fd1\u70b9\u7684\u8ddd\u79bb\u3002<\/span><\/p><\/li><li><p><strong><span>\u53d6\u503c\u8303\u56f4<\/span><\/strong><span>\uff1a0 \u5230\u65e0\u7a77\u5927\uff0c0 \u8868\u793a\u5b8c\u5168\u91cd\u53e0\u3002<\/span><\/p><\/li><li><p><strong><span>\u4f18\u70b9<\/span><\/strong><span>\uff1a\u7ed9\u51fa\u6bcf\u4e2a\u70b9\u7684\u8bef\u5dee\uff0c\u5e76\u5bf9\u6bcf\u4e2a\u76ee\u6807\u7684\u9884\u6d4b\u4e0e\u771f\u5b9e\u503c\u7684\u5dee\u5f02\u8fdb\u884c\u5e73\u5747\u8bc4\u4f30\u3002<\/span><\/p><\/li><\/ul><h3><a name=\"\u603b\u7ed3\" class=\"md-header-anchor\"><\/a><span>\u603b\u7ed3<\/span><\/h3><ul><li><strong><span>Dice \u548c Jaccard \u7cfb\u6570<\/span><\/strong><span> \u66f4\u52a0\u5173\u6ce8\u533a\u57df\u7684\u91cd\u53e0\u60c5\u51b5\u3002<\/span><\/li><li><strong><span>Hausdorff \u8ddd\u79bb\u548c\u5e73\u5747\u8868\u9762\u8ddd\u79bb<\/span><\/strong><span> \u5219\u66f4\u5173\u6ce8\u8fb9\u754c\u7684\u51c6\u786e\u6027\u548c\u70b9\u7684\u5206\u5e03\u3002<\/span><\/li><\/ul><p><span>\u8fd9\u4e9b\u8bc4\u5206\u6307\u6807\u7684\u7ed3\u5408\u53ef\u4ee5\u63d0\u4f9b\u5168\u9762\u7684\u8bc4\u4f30\uff0c\u4ece\u800c\u5e2e\u52a9\u60a8\u66f4\u597d\u5730\u7406\u89e3\u6a21\u578b\u5728\u4e0d\u540c\u60c5\u51b5\u4e0b\u7684\u6027\u80fd\u3002<\/span><\/p><h3><a name=\"\u6a21\u578b\u91cf\u5316\u8bc4\u4ef7\" class=\"md-header-anchor\"><\/a><span>\u6a21\u578b\u91cf\u5316\u8bc4\u4ef7<\/span><\/h3><pre spellcheck=\"false\" class=\"md-fences md-end-block ty-contain-cm modeLoaded\" lang=\"python\" style=\"break-inside: unset;\"><div class=\"CodeMirror cm-s-inner CodeMirror-wrap\" lang=\"python\"><div style=\"overflow: hidden; position: relative; width: 3px; height: 0px; top: 0px; left: 8px;\"><textarea autocorrect=\"off\" autocapitalize=\"off\" spellcheck=\"false\" tabindex=\"0\" style=\"position: absolute; bottom: -1em; padding: 0px; width: 1000px; height: 1em; outline: none;\"><\/textarea><\/div><div class=\"CodeMirror-scrollbar-filler\" cm-not-content=\"true\"><\/div><div class=\"CodeMirror-gutter-filler\" cm-not-content=\"true\"><\/div><div class=\"CodeMirror-scroll\" tabindex=\"-1\"><div class=\"CodeMirror-sizer\" style=\"margin-left: 0px; margin-bottom: 0px; border-right-width: 0px; padding-right: 0px; padding-bottom: 0px;\"><div style=\"position: relative; top: 0px;\"><div class=\"CodeMirror-lines\" role=\"presentation\"><div role=\"presentation\" style=\"position: relative; outline: none;\"><div class=\"CodeMirror-measure\"><\/div><div class=\"CodeMirror-measure\"><\/div><div style=\"position: relative; z-index: 1;\"><\/div><div class=\"CodeMirror-code\" role=\"presentation\" style=\"\"><div class=\"CodeMirror-activeline\" style=\"position: relative;\"><div class=\"CodeMirror-activeline-background CodeMirror-linebackground\"><\/div><div class=\"CodeMirror-gutter-background CodeMirror-activeline-gutter\" style=\"left: 0px; width: 0px;\"><\/div><pre class=\" CodeMirror-line \" role=\"presentation\"><span role=\"presentation\" style=\"padding-right: 0.1px;\"><span class=\"cm-keyword\">def<\/span> <span class=\"cm-def\">train_loop<\/span>(<span class=\"cm-variable\">model<\/span>, <span class=\"cm-variable\">optimizer<\/span>, <span class=\"cm-variable\">scheduler<\/span>, <span class=\"cm-variable\">criterion<\/span>, <span class=\"cm-variable\">train_loader<\/span>, <span class=\"cm-variable\">device<\/span>, <span class=\"cm-variable\">epoch<\/span>):<\/span><\/pre><\/div><pre class=\" CodeMirror-line \" role=\"presentation\"><span role=\"presentation\" style=\"padding-right: 0.1px;\"> &nbsp; &nbsp;<span class=\"cm-variable\">model<\/span>.<span class=\"cm-property\">train<\/span>()<\/span><\/pre><pre class=\" CodeMirror-line \" role=\"presentation\"><span role=\"presentation\" style=\"padding-right: 0.1px;\"> &nbsp; &nbsp;<span class=\"cm-variable\">running_loss<\/span> = <span class=\"cm-number\">0<\/span><\/span><\/pre><pre class=\" CodeMirror-line \" role=\"presentation\"><span role=\"presentation\" style=\"padding-right: 0.1px;\"> &nbsp; &nbsp;<span class=\"cm-variable\">dice1_train<\/span> = <span class=\"cm-number\">0<\/span><\/span><\/pre><pre class=\" CodeMirror-line \" role=\"presentation\"><span role=\"presentation\" style=\"padding-right: 0.1px;\"> &nbsp; &nbsp;<span class=\"cm-variable\">dice2_train<\/span> = <span class=\"cm-number\">0<\/span><\/span><\/pre><pre class=\" CodeMirror-line \" role=\"presentation\"><span role=\"presentation\" style=\"padding-right: 0.1px;\"> &nbsp; &nbsp;<span class=\"cm-variable\">dice3_train<\/span> = <span class=\"cm-number\">0<\/span><\/span><\/pre><pre class=\" CodeMirror-line \" role=\"presentation\"><span role=\"presentation\" style=\"padding-right: 0.1px;\"> &nbsp; &nbsp;<span class=\"cm-variable\">pbar<\/span> = <span class=\"cm-variable\">tqdm<\/span>(<span class=\"cm-variable\">train_loader<\/span>)<\/span><\/pre><pre class=\" CodeMirror-line \" role=\"presentation\"><span role=\"presentation\" style=\"padding-right: 0.1px;\"> &nbsp; &nbsp;<span class=\"cm-keyword\">for<\/span> <span class=\"cm-variable\">it<\/span>, (<span class=\"cm-variable\">images<\/span>, <span class=\"cm-variable\">masks<\/span>) <span class=\"cm-keyword\">in<\/span> <span class=\"cm-builtin\">enumerate<\/span>(<span class=\"cm-variable\">pbar<\/span>):<\/span><\/pre><pre class=\" CodeMirror-line \" role=\"presentation\"><span role=\"presentation\" style=\"padding-right: 0.1px;\"> &nbsp; &nbsp; &nbsp; &nbsp;<span class=\"cm-variable\">it<\/span> = <span class=\"cm-builtin\">len<\/span>(<span class=\"cm-variable\">train_loader<\/span>) <span class=\"cm-operator\">*<\/span> <span class=\"cm-variable\">epoch<\/span> <span class=\"cm-operator\">+<\/span> <span class=\"cm-variable\">it<\/span><\/span><\/pre><pre class=\" CodeMirror-line \" role=\"presentation\"><span role=\"presentation\" style=\"padding-right: 0.1px;\"> &nbsp; &nbsp; &nbsp; &nbsp;<span class=\"cm-variable\">param_group<\/span> = <span class=\"cm-variable\">optimizer<\/span>.<span class=\"cm-property\">param_groups<\/span>[<span class=\"cm-number\">0<\/span>]<\/span><\/pre><pre class=\" CodeMirror-line \" role=\"presentation\"><span role=\"presentation\" style=\"padding-right: 0.1px;\"> &nbsp; &nbsp; &nbsp; &nbsp;<span class=\"cm-variable\">param_group<\/span>[<span class=\"cm-string\">'lr'<\/span>] = <span class=\"cm-variable\">scheduler<\/span>[<span class=\"cm-variable\">it<\/span>]<\/span><\/pre><pre class=\" CodeMirror-line \" role=\"presentation\"><span role=\"presentation\" style=\"padding-right: 0.1px;\"><span cm-text=\"\">\u200b<\/span><\/span><\/pre><pre class=\" CodeMirror-line \" role=\"presentation\"><span role=\"presentation\" style=\"padding-right: 0.1px;\"> &nbsp; &nbsp; &nbsp; &nbsp;<span class=\"cm-variable\">images<\/span>, <span class=\"cm-variable\">masks<\/span> = <span class=\"cm-variable\">images<\/span>.<span class=\"cm-property\">to<\/span>(<span class=\"cm-variable\">device<\/span>), <span class=\"cm-variable\">masks<\/span>.<span class=\"cm-property\">to<\/span>(<span class=\"cm-variable\">device<\/span>)<\/span><\/pre><pre class=\" CodeMirror-line \" role=\"presentation\"><span role=\"presentation\" style=\"padding-right: 0.1px;\"> &nbsp; &nbsp; &nbsp; &nbsp;<span class=\"cm-variable\">outputs<\/span> = <span class=\"cm-variable\">model<\/span>(<span class=\"cm-variable\">images<\/span>)<\/span><\/pre><pre class=\" CodeMirror-line \" role=\"presentation\"><span role=\"presentation\" style=\"padding-right: 0.1px;\"> &nbsp; &nbsp; &nbsp; &nbsp;<span class=\"cm-variable\">loss<\/span> = <span class=\"cm-variable\">criterion<\/span>(<span class=\"cm-variable\">outputs<\/span>, <span class=\"cm-variable\">masks<\/span>)<\/span><\/pre><pre class=\" CodeMirror-line \" role=\"presentation\"><span role=\"presentation\" style=\"padding-right: 0.1px;\"> &nbsp; &nbsp; &nbsp; &nbsp;<span class=\"cm-variable\">dice1<\/span>, <span class=\"cm-variable\">dice2<\/span>, <span class=\"cm-variable\">dice3<\/span> = <span class=\"cm-variable\">cal_dice<\/span>(<span class=\"cm-variable\">outputs<\/span>, <span class=\"cm-variable\">masks<\/span>)<\/span><\/pre><pre class=\" CodeMirror-line \" role=\"presentation\"><span role=\"presentation\" style=\"padding-right: 0.1px;\"> &nbsp; &nbsp; &nbsp; &nbsp;<span class=\"cm-variable\">pbar<\/span>.<span class=\"cm-property\">desc<\/span> = <span class=\"cm-string\">\"loss: {:.3f} \"<\/span>.<span class=\"cm-property\">format<\/span>(<span class=\"cm-variable\">loss<\/span>.<span class=\"cm-property\">item<\/span>())<\/span><\/pre><pre class=\" CodeMirror-line \" role=\"presentation\"><span role=\"presentation\" style=\"padding-right: 0.1px;\"><span cm-text=\"\">\u200b<\/span><\/span><\/pre><pre class=\" CodeMirror-line \" role=\"presentation\"><span role=\"presentation\" style=\"padding-right: 0.1px;\"> &nbsp; &nbsp; &nbsp; &nbsp;<span class=\"cm-variable\">running_loss<\/span> += <span class=\"cm-variable\">loss<\/span>.<span class=\"cm-property\">item<\/span>()<\/span><\/pre><pre class=\" CodeMirror-line \" role=\"presentation\"><span role=\"presentation\" style=\"padding-right: 0.1px;\"> &nbsp; &nbsp; &nbsp; &nbsp;<span class=\"cm-variable\">dice1_train<\/span> += <span class=\"cm-variable\">dice1<\/span>.<span class=\"cm-property\">item<\/span>()<\/span><\/pre><pre class=\" CodeMirror-line \" role=\"presentation\"><span role=\"presentation\" style=\"padding-right: 0.1px;\"> &nbsp; &nbsp; &nbsp; &nbsp;<span class=\"cm-variable\">dice2_train<\/span> += <span class=\"cm-variable\">dice2<\/span>.<span class=\"cm-property\">item<\/span>()<\/span><\/pre><pre class=\" CodeMirror-line \" role=\"presentation\"><span role=\"presentation\" style=\"padding-right: 0.1px;\"> &nbsp; &nbsp; &nbsp; &nbsp;<span class=\"cm-variable\">dice3_train<\/span> += <span class=\"cm-variable\">dice3<\/span>.<span class=\"cm-property\">item<\/span>()<\/span><\/pre><pre class=\" CodeMirror-line \" role=\"presentation\"><span role=\"presentation\" style=\"padding-right: 0.1px;\"><span cm-text=\"\">\u200b<\/span><\/span><\/pre><pre class=\" CodeMirror-line \" role=\"presentation\"><span role=\"presentation\" style=\"padding-right: 0.1px;\"> &nbsp; &nbsp; &nbsp; &nbsp;<span class=\"cm-variable\">optimizer<\/span>.<span class=\"cm-property\">zero_grad<\/span>()<\/span><\/pre><pre class=\" CodeMirror-line \" role=\"presentation\"><span role=\"presentation\" style=\"padding-right: 0.1px;\"> &nbsp; &nbsp; &nbsp; &nbsp;<span class=\"cm-variable\">loss<\/span>.<span class=\"cm-property\">backward<\/span>()<\/span><\/pre><pre class=\" CodeMirror-line \" role=\"presentation\"><span role=\"presentation\" style=\"padding-right: 0.1px;\"> &nbsp; &nbsp; &nbsp; &nbsp;<span class=\"cm-variable\">optimizer<\/span>.<span class=\"cm-property\">step<\/span>()<\/span><\/pre><pre class=\" CodeMirror-line \" role=\"presentation\"><span role=\"presentation\" style=\"padding-right: 0.1px;\"><span cm-text=\"\">\u200b<\/span><\/span><\/pre><pre class=\" CodeMirror-line \" role=\"presentation\"><span role=\"presentation\" style=\"padding-right: 0.1px;\"> &nbsp; &nbsp;<span class=\"cm-variable\">loss<\/span> = <span class=\"cm-variable\">running_loss<\/span> <span class=\"cm-operator\">\/<\/span> <span class=\"cm-builtin\">len<\/span>(<span class=\"cm-variable\">train_loader<\/span>)<\/span><\/pre><div class=\"\" style=\"position: relative;\"><pre class=\" CodeMirror-line \" role=\"presentation\"><span role=\"presentation\" style=\"padding-right: 0.1px;\"> &nbsp; &nbsp;<span class=\"cm-variable\">dice1<\/span> = <span class=\"cm-variable\">dice1_train<\/span> <span class=\"cm-operator\">\/<\/span> <span class=\"cm-builtin\">len<\/span>(<span class=\"cm-variable\">train_loader<\/span>)<\/span><\/pre><\/div><pre class=\" CodeMirror-line \" role=\"presentation\"><span role=\"presentation\" style=\"padding-right: 0.1px;\"> &nbsp; &nbsp;<span class=\"cm-variable\">dice2<\/span> = <span class=\"cm-variable\">dice2_train<\/span> <span class=\"cm-operator\">\/<\/span> <span class=\"cm-builtin\">len<\/span>(<span class=\"cm-variable\">train_loader<\/span>)<\/span><\/pre><pre class=\" CodeMirror-line \" role=\"presentation\"><span role=\"presentation\" style=\"padding-right: 0.1px;\"> &nbsp; &nbsp;<span class=\"cm-variable\">dice3<\/span> = <span class=\"cm-variable\">dice3_train<\/span> <span class=\"cm-operator\">\/<\/span> <span class=\"cm-builtin\">len<\/span>(<span class=\"cm-variable\">train_loader<\/span>)<\/span><\/pre><pre class=\" CodeMirror-line \" role=\"presentation\"><span role=\"presentation\" style=\"padding-right: 0.1px;\"> &nbsp; &nbsp;<span class=\"cm-keyword\">return<\/span> {<span class=\"cm-string\">'loss'<\/span>: <span class=\"cm-variable\">loss<\/span>, <span class=\"cm-string\">'dice1'<\/span>: <span class=\"cm-variable\">dice1<\/span>, <span class=\"cm-string\">'dice2'<\/span>: <span class=\"cm-variable\">dice2<\/span>, <span class=\"cm-string\">'dice3'<\/span>: <span class=\"cm-variable\">dice3<\/span>}<\/span><\/pre><\/div><\/div><\/div><\/div><\/div><div style=\"position: absolute; height: 0px; width: 1px; border-bottom: 0px solid transparent; top: 922px;\"><\/div><div class=\"CodeMirror-gutters\" style=\"display: none; height: 922px;\"><\/div><\/div><\/div><\/pre><p><span>\u5728\u4f60\u63d0\u4f9b\u7684\u4ee3\u7801\u4e2d\uff0c\u6a21\u578b\u7684\u8bc4\u4ef7\u6307\u6807\u4e3b\u8981\u662f\u901a\u8fc7 <\/span><code>train_loop<\/code><span> \u548c <\/span><code>val_loop<\/code><span> \u51fd\u6570\u4e2d\u7684 <\/span><code>cal_dice<\/code><span> \u51fd\u6570\u8ba1\u7b97\u5f97\u51fa\u7684\u3002\u4e0b\u9762\u662f\u5bf9\u5982\u4f55\u8ba1\u7b97\u8fd9\u4e9b\u6307\u6807\u7684\u8be6\u7ec6\u89e3\u91ca\uff1a<\/span><\/p><h3><a name=\"1-\u8bad\u7ec3\u548c\u9a8c\u8bc1\u5faa\u73af\" class=\"md-header-anchor\"><\/a><span>1. <\/span><strong><span>\u8bad\u7ec3\u548c\u9a8c\u8bc1\u5faa\u73af<\/span><\/strong><\/h3><ul><li><p><strong><code>train_loop<\/code><span> \u51fd\u6570<\/span><\/strong><span>\uff1a<\/span><\/p><ul><li><span>\u5728\u6bcf\u4e2a\u8bad\u7ec3\u5faa\u73af\u4e2d\uff0c\u6a21\u578b\u9996\u5148\u63a5\u6536\u8f93\u5165\u56fe\u50cf\u5e76\u751f\u6210\u8f93\u51fa\u3002<\/span><\/li><li><span>\u4f7f\u7528\u635f\u5931\u51fd\u6570\u8ba1\u7b97\u635f\u5931\u503c\uff0c\u7136\u540e\u5229\u7528 <\/span><code>cal_dice<\/code><span> \u51fd\u6570\u8ba1\u7b97\u4e09\u4e2a\u4e0d\u540c\u7c7b\u522b\u7684 Dice \u7cfb\u6570\uff08ET\u3001TC \u548c WT\uff09\u3002<\/span><\/li><li><span>\u6700\u540e\uff0c\u8ba1\u7b97\u5e73\u5747\u635f\u5931\u548c Dice \u7cfb\u6570\uff0c\u5e76\u8fd4\u56de\u8fd9\u4e9b\u6307\u6807\u3002<\/span><\/li><\/ul><\/li><li><p><strong><code>val_loop<\/code><span> \u51fd\u6570<\/span><\/strong><span>\uff1a<\/span><\/p><ul><li><span>\u8fd9\u4e2a\u51fd\u6570\u4e0e <\/span><code>train_loop<\/code><span> \u7c7b\u4f3c\uff0c\u4f46\u5b83\u662f\u5728\u9a8c\u8bc1\u9636\u6bb5\u8fd0\u884c\u7684\u3002\u5b83\u5728\u4e0d\u8ba1\u7b97\u68af\u5ea6\u7684\u60c5\u51b5\u4e0b\u8bc4\u4f30\u6a21\u578b\u6027\u80fd\u3002<\/span><\/li><li><span>\u540c\u6837\u5730\uff0c\u5b83\u8ba1\u7b97\u603b\u635f\u5931\u548c\u4e09\u4e2a Dice \u7cfb\u6570\u7684\u5e73\u5747\u503c\u3002<\/span><\/li><\/ul><\/li><\/ul><h3><a name=\"2-dice-\u7cfb\u6570\u8ba1\u7b97\" class=\"md-header-anchor\"><\/a><span>2. <\/span><strong><span>Dice \u7cfb\u6570\u8ba1\u7b97<\/span><\/strong><\/h3><ul><li><p><strong><code>cal_dice<\/code><span> \u51fd\u6570<\/span><\/strong><span>\uff1a<\/span><\/p><ul><li><p><span>\u8be5\u51fd\u6570\u7528\u4e8e\u8ba1\u7b97\u4e0d\u540c\u533a\u57df\u7684 Dice \u7cfb\u6570\uff0c\u5b83\u901a\u5e38\u6309\u4ee5\u4e0b\u516c\u5f0f\u8ba1\u7b97\uff1a<\/span><\/p><div contenteditable=\"false\" spellcheck=\"false\" class=\"mathjax-block md-end-block md-math-block md-rawblock\" id=\"mathjax-n150\" cid=\"n150\" mdtype=\"math_block\"><div class=\"md-rawblock-container md-math-container\" contenteditable=\"false\" tabindex=\"-1\">\n\t\t\t\t\t\t<div class=\"MathJax_SVG_Display\" style=\"text-align: center;\"><span class=\"MathJax_SVG\" id=\"MathJax-Element-10-Frame\" tabindex=\"-1\" style=\"font-size: 100%; display: inline-block;\"><svg xmlns:xlink=\"http:\/\/www.w3.org\/1999\/xlink\" width=\"20.04ex\" height=\"5.804ex\" viewBox=\"0 -1490.8 8628.4 2498.8\" role=\"img\" focusable=\"false\" style=\"vertical-align: -2.341ex; max-width: 100%;\"><defs><path stroke-width=\"0\" id=\"E26-MJMAIN-44\" d=\"M130 622Q123 629 119 631T103 634T60 637H27V683H228Q399 682 419 682T461 676Q504 667 546 641T626 573T685 470T708 336Q708 210 634 116T442 3Q429 1 228 0H27V46H60Q102 47 111 49T130 61V622ZM593 338Q593 439 571 501T493 602Q439 637 355 637H322H294Q238 637 234 628Q231 624 231 344Q231 62 232 59Q233 49 248 48T339 46H350Q456 46 515 95Q561 133 577 191T593 338Z\"><\/path><path stroke-width=\"0\" id=\"E26-MJMAIN-69\" d=\"M69 609Q69 637 87 653T131 669Q154 667 171 652T188 609Q188 579 171 564T129 549Q104 549 87 564T69 609ZM247 0Q232 3 143 3Q132 3 106 3T56 1L34 0H26V46H42Q70 46 91 49Q100 53 102 60T104 102V205V293Q104 345 102 359T88 378Q74 385 41 385H30V408Q30 431 32 431L42 432Q52 433 70 434T106 436Q123 437 142 438T171 441T182 442H185V62Q190 52 197 50T232 46H255V0H247Z\"><\/path><path stroke-width=\"0\" id=\"E26-MJMAIN-63\" d=\"M370 305T349 305T313 320T297 358Q297 381 312 396Q317 401 317 402T307 404Q281 408 258 408Q209 408 178 376Q131 329 131 219Q131 137 162 90Q203 29 272 29Q313 29 338 55T374 117Q376 125 379 127T395 129H409Q415 123 415 120Q415 116 411 104T395 71T366 33T318 2T249 -11Q163 -11 99 53T34 214Q34 318 99 383T250 448T370 421T404 357Q404 334 387 320Z\"><\/path><path stroke-width=\"0\" id=\"E26-MJMAIN-65\" d=\"M28 218Q28 273 48 318T98 391T163 433T229 448Q282 448 320 430T378 380T406 316T415 245Q415 238 408 231H126V216Q126 68 226 36Q246 30 270 30Q312 30 342 62Q359 79 369 104L379 128Q382 131 395 131H398Q415 131 415 121Q415 117 412 108Q393 53 349 21T250 -11Q155 -11 92 58T28 218ZM333 275Q322 403 238 411H236Q228 411 220 410T195 402T166 381T143 340T127 274V267H333V275Z\"><\/path><path stroke-width=\"0\" id=\"E26-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=\"0\" id=\"E26-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=\"0\" id=\"E26-MJMAIN-D7\" d=\"M630 29Q630 9 609 9Q604 9 587 25T493 118L389 222L284 117Q178 13 175 11Q171 9 168 9Q160 9 154 15T147 29Q147 36 161 51T255 146L359 250L255 354Q174 435 161 449T147 471Q147 480 153 485T168 490Q173 490 175 489Q178 487 284 383L389 278L493 382Q570 459 587 475T609 491Q630 491 630 471Q630 464 620 453T522 355L418 250L522 145Q606 61 618 48T630 29Z\"><\/path><path stroke-width=\"0\" id=\"E26-MJMAIN-7C\" d=\"M139 -249H137Q125 -249 119 -235V251L120 737Q130 750 139 750Q152 750 159 735V-235Q151 -249 141 -249H139Z\"><\/path><path stroke-width=\"0\" id=\"E26-MJMATHI-58\" d=\"M42 0H40Q26 0 26 11Q26 15 29 27Q33 41 36 43T55 46Q141 49 190 98Q200 108 306 224T411 342Q302 620 297 625Q288 636 234 637H206Q200 643 200 645T202 664Q206 677 212 683H226Q260 681 347 681Q380 681 408 681T453 682T473 682Q490 682 490 671Q490 670 488 658Q484 643 481 640T465 637Q434 634 411 620L488 426L541 485Q646 598 646 610Q646 628 622 635Q617 635 609 637Q594 637 594 648Q594 650 596 664Q600 677 606 683H618Q619 683 643 683T697 681T738 680Q828 680 837 683H845Q852 676 852 672Q850 647 840 637H824Q790 636 763 628T722 611T698 593L687 584Q687 585 592 480L505 384Q505 383 536 304T601 142T638 56Q648 47 699 46Q734 46 734 37Q734 35 732 23Q728 7 725 4T711 1Q708 1 678 1T589 2Q528 2 496 2T461 1Q444 1 444 10Q444 11 446 25Q448 35 450 39T455 44T464 46T480 47T506 54Q523 62 523 64Q522 64 476 181L429 299Q241 95 236 84Q232 76 232 72Q232 53 261 47Q262 47 267 47T273 46Q276 46 277 46T280 45T283 42T284 35Q284 26 282 19Q279 6 276 4T261 1Q258 1 243 1T201 2T142 2Q64 2 42 0Z\"><\/path><path stroke-width=\"0\" id=\"E26-MJMAIN-2229\" d=\"M88 -21T75 -21T55 -7V200Q55 231 55 280Q56 414 60 428Q61 430 61 431Q77 500 152 549T332 598Q443 598 522 544T610 405Q611 399 611 194V-7Q604 -22 591 -22Q582 -22 572 -9L570 405Q563 433 556 449T529 485Q498 519 445 538T334 558Q251 558 179 518T96 401Q95 396 95 193V-7Q88 -21 75 -21Z\"><\/path><path stroke-width=\"0\" id=\"E26-MJMATHI-59\" d=\"M66 637Q54 637 49 637T39 638T32 641T30 647T33 664T42 682Q44 683 56 683Q104 680 165 680Q288 680 306 683H316Q322 677 322 674T320 656Q316 643 310 637H298Q242 637 242 624Q242 619 292 477T343 333L346 336Q350 340 358 349T379 373T411 410T454 461Q546 568 561 587T577 618Q577 634 545 637Q528 637 528 647Q528 649 530 661Q533 676 535 679T549 683Q551 683 578 682T657 680Q684 680 713 681T746 682Q763 682 763 673Q763 669 760 657T755 643Q753 637 734 637Q662 632 617 587Q608 578 477 424L348 273L322 169Q295 62 295 57Q295 46 363 46Q379 46 384 45T390 35Q390 33 388 23Q384 6 382 4T366 1Q361 1 324 1T232 2Q170 2 138 2T102 1Q84 1 84 9Q84 14 87 24Q88 27 89 30T90 35T91 39T93 42T96 44T101 45T107 45T116 46T129 46Q168 47 180 50T198 63Q201 68 227 171L252 274L129 623Q128 624 127 625T125 627T122 629T118 631T113 633T105 634T96 635T83 636T66 637Z\"><\/path><path stroke-width=\"0\" id=\"E26-MJMAIN-2B\" d=\"M56 237T56 250T70 270H369V420L370 570Q380 583 389 583Q402 583 409 568V270H707Q722 262 722 250T707 230H409V-68Q401 -82 391 -82H389H387Q375 -82 369 -68V230H70Q56 237 56 250Z\"><\/path><\/defs><g stroke=\"currentColor\" fill=\"currentColor\" stroke-width=\"0\" transform=\"matrix(1 0 0 -1 0 0)\"><use xlink:href=\"#E26-MJMAIN-44\"><\/use><use xlink:href=\"#E26-MJMAIN-69\" x=\"764\" y=\"0\"><\/use><use xlink:href=\"#E26-MJMAIN-63\" x=\"1042\" y=\"0\"><\/use><use xlink:href=\"#E26-MJMAIN-65\" x=\"1486\" y=\"0\"><\/use><use xlink:href=\"#E26-MJMAIN-3D\" x=\"2207\" y=\"0\"><\/use><g transform=\"translate(2985,0)\"><g transform=\"translate(397,0)\"><rect stroke=\"none\" width=\"5124\" height=\"60\" x=\"0\" y=\"220\"><\/rect><g transform=\"translate(60,689)\"><use xlink:href=\"#E26-MJMAIN-32\" x=\"0\" y=\"0\"><\/use><use xlink:href=\"#E26-MJMAIN-D7\" x=\"722\" y=\"0\"><\/use><use xlink:href=\"#E26-MJMAIN-7C\" x=\"1722\" y=\"0\"><\/use><use xlink:href=\"#E26-MJMATHI-58\" x=\"2000\" y=\"0\"><\/use><use xlink:href=\"#E26-MJMAIN-2229\" x=\"3074\" y=\"0\"><\/use><use xlink:href=\"#E26-MJMATHI-59\" x=\"3963\" y=\"0\"><\/use><use xlink:href=\"#E26-MJMAIN-7C\" x=\"4726\" y=\"0\"><\/use><\/g><g transform=\"translate(587,-691)\"><use xlink:href=\"#E26-MJMAIN-7C\" x=\"0\" y=\"0\"><\/use><use xlink:href=\"#E26-MJMATHI-58\" x=\"278\" y=\"0\"><\/use><use xlink:href=\"#E26-MJMAIN-7C\" x=\"1130\" y=\"0\"><\/use><use xlink:href=\"#E26-MJMAIN-2B\" x=\"1630\" y=\"0\"><\/use><use xlink:href=\"#E26-MJMAIN-7C\" x=\"2630\" y=\"0\"><\/use><use xlink:href=\"#E26-MJMATHI-59\" x=\"2908\" y=\"0\"><\/use><use xlink:href=\"#E26-MJMAIN-7C\" x=\"3671\" y=\"0\"><\/use><\/g><\/g><\/g><\/g><\/svg><\/span><\/div><script type=\"math\/tex; mode=display\" id=\"MathJax-Element-10\">\\text{Dice} = \\frac{2 \\times |X \\cap Y|}{|X| + |Y|}<\/script>\n\t\t\t\t\t<\/div><\/div><p><span>\u5176\u4e2d <\/span><span>(<\/span><span>X<\/span><span>)<\/span><span> \u662f\u6a21\u578b\u9884\u6d4b\u7684\u533a\u57df\uff0c<\/span><span>(<\/span><span>Y<\/span><span>)<\/span><span> \u662f\u771f\u5b9e\u6807\u7b7e\u533a\u57df\u3002<\/span><\/p><p><span>\u5176\u4e2d <\/span><span>(<\/span><span>X<\/span><span>)<\/span><span> \u662f\u6a21\u578b\u9884\u6d4b\u7684\u533a\u57df\uff0c<\/span><span>(<\/span><span>Y<\/span><span>)<\/span><span> \u662f\u771f\u5b9e\u6807\u7b7e\u533a\u57df\u3002<\/span><\/p><\/li><li><p><span>\u8be5\u51fd\u6570\u4f1a\u6839\u636e\u6a21\u578b\u7684\u8f93\u51fa\u548c\u771f\u5b9e\u6807\u7b7e\u8ba1\u7b97 Dice \u7cfb\u6570\uff0c\u8fd9\u4e9b\u7cfb\u6570\u53cd\u6620\u4e86\u9884\u6d4b\u4e0e\u771f\u5b9e\u5206\u5272\u7684\u91cd\u53e0\u7a0b\u5ea6\u3002<\/span><\/p><\/li><\/ul><\/li><\/ul><h3><a name=\"3-dice-\u7cfb\u6570\u7684\u89e3\u91ca\" class=\"md-header-anchor\"><\/a><span>3. <\/span><strong><span>Dice \u7cfb\u6570\u7684\u89e3\u91ca<\/span><\/strong><\/h3><ul><li><strong><span>ET (Enhancing Tumor)<\/span><\/strong><span>: \u8be5\u6307\u6807\u8868\u793a\u6a21\u578b\u5bf9\u589e\u5f3a\u80bf\u7624\u533a\u57df\u7684\u5206\u5272\u80fd\u529b\u3002\u503c\u8d8a\u63a5\u8fd1 1\uff0c\u6a21\u578b\u5206\u5272\u6548\u679c\u8d8a\u597d\u3002<\/span><\/li><li><strong><span>TC (Tumor Core)<\/span><\/strong><span>: \u8be5\u6307\u6807\u53cd\u6620\u6a21\u578b\u5bf9\u80bf\u7624\u6838\u5fc3\u533a\u57df\u7684\u5206\u5272\u80fd\u529b\uff0c\u5305\u62ec\u589e\u5f3a\u80bf\u7624\u548c\u8fb9\u7f18\u533a\u57df\u3002<\/span><\/li><li><strong><span>WT (Whole Tumor)<\/span><\/strong><span>: \u8be5\u6307\u6807\u8868\u793a\u6a21\u578b\u5bf9\u6574\u4e2a\u80bf\u7624\u533a\u57df\u7684\u5206\u5272\u80fd\u529b\uff0c\u901a\u5e38\u5305\u62ec\u589e\u5f3a\u80bf\u7624\u3001\u80bf\u7624\u6838\u5fc3\u548c\u5468\u56f4\u6c34\u80bf\u3002<\/span><\/li><\/ul><h3><a name=\"4-\u635f\u5931\u51fd\u6570\" class=\"md-header-anchor\"><\/a><span>4. <\/span><strong><span>\u635f\u5931\u51fd\u6570<\/span><\/strong><\/h3><ul><li><span>\u635f\u5931\u51fd\u6570 (<\/span><code>criterion<\/code><span>) \u7528\u4e8e\u8ba1\u7b97\u6a21\u578b\u8f93\u51fa\u4e0e\u771f\u5b9e\u6807\u7b7e\u4e4b\u95f4\u7684\u5dee\u5f02\u3002\u4e00\u822c\u60c5\u51b5\u4e0b\uff0c\u4f7f\u7528\u7684\u635f\u5931\u51fd\u6570\u53ef\u80fd\u662f\u4ea4\u53c9\u71b5\u635f\u5931\u6216\u5176\u4ed6\u4e13\u95e8\u4e3a\u5206\u5272\u4efb\u52a1\u8bbe\u8ba1\u7684\u635f\u5931\u51fd\u6570\uff08\u5982 Dice \u635f\u5931\uff09\u3002<\/span><\/li><\/ul><h3><a name=\"5-\u8f93\u51fa\" class=\"md-header-anchor\"><\/a><span>5. <\/span><strong><span>\u8f93\u51fa<\/span><\/strong><\/h3><ul><li><span>\u5728\u6bcf\u4e2a epoch \u7684\u8bad\u7ec3\u548c\u9a8c\u8bc1\u7ed3\u675f\u540e\uff0c\u7a0b\u5e8f\u4f1a\u8f93\u51fa\u8bad\u7ec3\u635f\u5931\u548c\u4e09\u4e2a Dice \u7cfb\u6570\u7684\u5e73\u5747\u503c\uff0c\u5e76\u5c06\u8fd9\u4e9b\u4fe1\u606f\u5199\u5165\u65e5\u5fd7\u6587\u4ef6\u3002\u6700\u7ec8\uff0c\u6a21\u578b\u5728\u9a8c\u8bc1\u96c6\u548c\u6d4b\u8bd5\u96c6\u4e0a\u7684\u6027\u80fd\u6307\u6807\u4e5f\u4f1a\u88ab\u8f93\u51fa\u3002<\/span><\/li><\/ul><h3><a name=\"\u603b\u7ed3-n144\" class=\"md-header-anchor\"><\/a><span>\u603b\u7ed3<\/span><\/h3><p><span>\u901a\u8fc7 <\/span><code>train_loop<\/code><span> \u548c <\/span><code>val_loop<\/code><span>\uff0c\u4f60\u53ef\u4ee5\u8bc4\u4f30\u6a21\u578b\u5728\u8bad\u7ec3\u548c\u9a8c\u8bc1\u8fc7\u7a0b\u4e2d\u7684\u6027\u80fd\uff0c\u5305\u62ec\u5bf9\u4e0d\u540c\u80bf\u7624\u533a\u57df\u7684\u5206\u5272\u80fd\u529b\u3002\u8fd9\u4e9b\u8bc4\u4ef7\u6307\u6807\u5bf9\u4e8e\u6a21\u578b\u7684\u8c03\u6574\u548c\u4f18\u5316\u81f3\u5173\u91cd\u8981\uff0c\u80fd\u591f\u5e2e\u52a9\u4f60\u5224\u65ad\u6a21\u578b\u7684\u8bad\u7ec3\u6548\u679c\u548c\u6cdb\u5316\u80fd\u529b\u3002<\/span><\/p><p>&nbsp;<\/p><p><span>\u5bf9\u4e0d\u540c\u80bf\u7624\u533a\u57df\uff08\u7279\u522b\u662f\u5728\u8111\u80bf\u7624\u5206\u5272\u7684\u80cc\u666f\u4e0b\uff09\u8fdb\u884c\u7684\u8bc4\u4f30\u6307\u6807\uff0c\u5177\u4f53\u89e3\u91ca\u5982\u4e0b\uff1a<\/span><\/p><h3><a name=\"1-et-enhancing-tumor\" class=\"md-header-anchor\"><\/a><span>1. <\/span><strong><span>ET (Enhancing Tumor)<\/span><\/strong><\/h3><ul><li><strong><span>\u5b9a\u4e49<\/span><\/strong><span>\uff1a\u589e\u5f3a\u80bf\u7624\u533a\u57df\uff0c\u901a\u5e38\u662f\u6307\u5728MRI\u6210\u50cf\u4e2d\uff0c\u901a\u8fc7\u5bf9\u6bd4\u5242\u589e\u5f3a\u7684\u80bf\u7624\u90e8\u5206\u3002<\/span><\/li><li><strong><span>\u6570\u503c<\/span><\/strong><span>\uff1a0.796 \u4ee3\u8868\u589e\u5f3a\u80bf\u7624\u533a\u57df\u7684 Dice \u7cfb\u6570\u6216\u5176\u4ed6\u8bc4\u4f30\u6307\u6807\uff08\u5982 Jaccard \u7cfb\u6570\uff09\uff0c\u8d8a\u63a5\u8fd1 1 \u4ee3\u8868\u6a21\u578b\u5728\u8be5\u533a\u57df\u7684\u5206\u5272\u6027\u80fd\u8d8a\u597d\u3002<\/span><\/li><\/ul><h3><a name=\"2-tc-tumor-core\" class=\"md-header-anchor\"><\/a><span>2. <\/span><strong><span>TC (Tumor Core)<\/span><\/strong><\/h3><ul><li><strong><span>\u5b9a\u4e49<\/span><\/strong><span>\uff1a\u80bf\u7624\u6838\u5fc3\u533a\u57df\uff0c\u5305\u62ec\u589e\u5f3a\u80bf\u7624\u548c\u5468\u56f4\u80bf\u7624\u8fb9\u7f18\u3002<\/span><\/li><li><strong><span>\u6570\u503c<\/span><\/strong><span>\uff1a0.835 \u4ee3\u8868\u80bf\u7624\u6838\u5fc3\u533a\u57df\u7684\u8bc4\u4f30\u6307\u6807\uff0c\u503c\u8d8a\u9ad8\u8868\u793a\u6a21\u578b\u5bf9\u8be5\u533a\u57df\u7684\u5206\u5272\u6027\u80fd\u8f83\u597d\u3002<\/span><\/li><\/ul><h3><a name=\"3-wt-whole-tumor\" class=\"md-header-anchor\"><\/a><span>3. <\/span><strong><span>WT (Whole Tumor)<\/span><\/strong><\/h3><ul><li><strong><span>\u5b9a\u4e49<\/span><\/strong><span>\uff1a\u6574\u4e2a\u80bf\u7624\u533a\u57df\uff0c\u901a\u5e38\u5305\u62ec\u589e\u5f3a\u80bf\u7624\u3001\u80bf\u7624\u6838\u5fc3\u548c\u53ef\u80fd\u7684\u5468\u56f4\u6c34\u80bf\u3002<\/span><\/li><li><strong><span>\u6570\u503c<\/span><\/strong><span>\uff1a0.910 \u4ee3\u8868\u6574\u4e2a\u80bf\u7624\u533a\u57df\u7684\u8bc4\u4f30\u6307\u6807\uff0c\u503c\u8d8a\u9ad8\u8868\u793a\u6a21\u578b\u5728\u6b64\u533a\u57df\u7684\u5206\u5272\u6548\u679c\u66f4\u4f73\u3002<\/span><\/li><\/ul><h3><a name=\"\u603b\u7ed3-n92\" class=\"md-header-anchor\"><\/a><span>\u603b\u7ed3<\/span><\/h3><p><span>\u8fd9\u4e9b\u5206\u6570\u901a\u5e38\u662f\u4f7f\u7528 <\/span><strong><span>Dice \u7cfb\u6570<\/span><\/strong><span>\u3001<\/span><strong><span>Jaccard \u7cfb\u6570<\/span><\/strong><span> \u7b49\u6307\u6807\u8ba1\u7b97\u5f97\u51fa\u7684\uff0c\u65e8\u5728\u8bc4\u4f30\u6a21\u578b\u5728\u4e0d\u540c\u80bf\u7624\u533a\u57df\u7684\u5206\u5272\u6027\u80fd\u3002\u5177\u4f53\u6765\u8bf4\uff0c\u6570\u503c\u8d8a\u63a5\u8fd1 1\uff0c\u8868\u793a\u6a21\u578b\u5728\u5bf9\u5e94\u533a\u57df\u7684\u9884\u6d4b\u7ed3\u679c\u4e0e\u771f\u5b9e\u6807\u7b7e\u7684\u91cd\u53e0\u7a0b\u5ea6\u8d8a\u9ad8\uff0c\u5206\u5272\u6548\u679c\u8d8a\u597d\u3002\u53cd\u4e4b\uff0c\u6570\u503c\u8d8a\u4f4e\u5219\u8868\u660e\u5206\u5272\u6548\u679c\u4e0d\u4f73\u3002<\/span><\/p><p><span>\u5728\u4e34\u5e8a\u5e94\u7528\u4e2d\uff0c\u51c6\u786e\u8bc6\u522b\u8fd9\u4e9b\u80bf\u7624\u533a\u57df\u5bf9\u6cbb\u7597\u65b9\u6848\u7684\u5236\u5b9a\u548c\u60a3\u8005\u9884\u540e\u8bc4\u4f30\u975e\u5e38\u91cd\u8981\uff0c\u56e0\u6b64\u8fd9\u4e9b\u6307\u6807\u5177\u6709\u5b9e\u9645\u610f\u4e49\u3002<\/span><\/p><\/div>\n<\/body>\n<\/html>\n","protected":false},"excerpt":{"rendered":"<p>\u5728\u533b\u5b66\u56fe\u50cf\u5206\u5272\u4e2d\uff0c\u4f7f\u7528\u591a\u4e2a\u8bc4\u4f30\u6307&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-2444","post","type-post","status-publish","format-standard","hentry","category-4"],"_links":{"self":[{"href":"https:\/\/sanlangcode.com\/index.php\/wp-json\/wp\/v2\/posts\/2444","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sanlangcode.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sanlangcode.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sanlangcode.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sanlangcode.com\/index.php\/wp-json\/wp\/v2\/comments?post=2444"}],"version-history":[{"count":0,"href":"https:\/\/sanlangcode.com\/index.php\/wp-json\/wp\/v2\/posts\/2444\/revisions"}],"wp:attachment":[{"href":"https:\/\/sanlangcode.com\/index.php\/wp-json\/wp\/v2\/media?parent=2444"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sanlangcode.com\/index.php\/wp-json\/wp\/v2\/categories?post=2444"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sanlangcode.com\/index.php\/wp-json\/wp\/v2\/tags?post=2444"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}