diff --git a/.nojekyll b/.nojekyll new file mode 100644 index 000000000..e69de29bb diff --git a/404.html b/404.html new file mode 100644 index 000000000..cd27e6c95 --- /dev/null +++ b/404.html @@ -0,0 +1,18 @@ + + + + + +找不到页面 | 培洋的笔记本📒 + + + + +
+
跳到主要内容

找不到页面

我们找不到您要找的页面。

请联系原始链接来源网站的所有者,并告知他们链接已损坏。

+ + + + \ No newline at end of file diff --git a/assets/css/styles.165e4dc2.css b/assets/css/styles.165e4dc2.css new file mode 100644 index 000000000..66d3545af --- /dev/null +++ b/assets/css/styles.165e4dc2.css @@ -0,0 +1 @@ +.col,.container{padding:0 var(--ifm-spacing-horizontal);width:100%}.markdown>h2,.markdown>h3,.markdown>h4,.markdown>h5,.markdown>h6{margin-bottom:calc(var(--ifm-heading-vertical-rhythm-bottom)*var(--ifm-leading))}pre,table{overflow:auto}blockquote,pre{margin:0 0 var(--ifm-spacing-vertical)}.breadcrumbs__link,.button{transition-timing-function:var(--ifm-transition-timing-default)}.button,code{vertical-align:middle}.button--outline.button--active,.button--outline:active,.button--outline:hover,:root{--ifm-button-color:var(--ifm-font-color-base-inverse)}.menu__link:hover,a{transition:color var(--ifm-transition-fast) var(--ifm-transition-timing-default)}.navbar--dark,:root{--ifm-navbar-link-hover-color:var(--ifm-color-primary)}.menu,.navbar-sidebar{overflow-x:hidden}:root,html[data-theme=dark]{--ifm-color-emphasis-500:var(--ifm-color-gray-500)}.markdown li,body{word-wrap:break-word}.toggleButton_gllP,html{-webkit-tap-highlight-color:transparent}*,.loadingRing_RJI3 div{box-sizing:border-box}.clean-list,.containsTaskList_mC6p,.details_lb9f>summary,.dropdown__menu,.menu__list{list-style:none}:root{--ifm-color-scheme:light;--ifm-dark-value:10%;--ifm-darker-value:15%;--ifm-darkest-value:30%;--ifm-light-value:15%;--ifm-lighter-value:30%;--ifm-lightest-value:50%;--ifm-contrast-background-value:90%;--ifm-contrast-foreground-value:70%;--ifm-contrast-background-dark-value:70%;--ifm-contrast-foreground-dark-value:90%;--ifm-color-primary:#3578e5;--ifm-color-secondary:#ebedf0;--ifm-color-success:#00a400;--ifm-color-info:#54c7ec;--ifm-color-warning:#ffba00;--ifm-color-danger:#fa383e;--ifm-color-primary-dark:#306cce;--ifm-color-primary-darker:#2d66c3;--ifm-color-primary-darkest:#2554a0;--ifm-color-primary-light:#538ce9;--ifm-color-primary-lighter:#72a1ed;--ifm-color-primary-lightest:#9abcf2;--ifm-color-primary-contrast-background:#ebf2fc;--ifm-color-primary-contrast-foreground:#102445;--ifm-color-secondary-dark:#d4d5d8;--ifm-color-secondary-darker:#c8c9cc;--ifm-color-secondary-darkest:#a4a6a8;--ifm-color-secondary-light:#eef0f2;--ifm-color-secondary-lighter:#f1f2f5;--ifm-color-secondary-lightest:#f5f6f8;--ifm-color-secondary-contrast-background:#fdfdfe;--ifm-color-secondary-contrast-foreground:#474748;--ifm-color-success-dark:#009400;--ifm-color-success-darker:#008b00;--ifm-color-success-darkest:#007300;--ifm-color-success-light:#26b226;--ifm-color-success-lighter:#4dbf4d;--ifm-color-success-lightest:#80d280;--ifm-color-success-contrast-background:#e6f6e6;--ifm-color-success-contrast-foreground:#003100;--ifm-color-info-dark:#4cb3d4;--ifm-color-info-darker:#47a9c9;--ifm-color-info-darkest:#3b8ba5;--ifm-color-info-light:#6ecfef;--ifm-color-info-lighter:#87d8f2;--ifm-color-info-lightest:#aae3f6;--ifm-color-info-contrast-background:#eef9fd;--ifm-color-info-contrast-foreground:#193c47;--ifm-color-warning-dark:#e6a700;--ifm-color-warning-darker:#d99e00;--ifm-color-warning-darkest:#b38200;--ifm-color-warning-light:#ffc426;--ifm-color-warning-lighter:#ffcf4d;--ifm-color-warning-lightest:#ffdd80;--ifm-color-warning-contrast-background:#fff8e6;--ifm-color-warning-contrast-foreground:#4d3800;--ifm-color-danger-dark:#e13238;--ifm-color-danger-darker:#d53035;--ifm-color-danger-darkest:#af272b;--ifm-color-danger-light:#fb565b;--ifm-color-danger-lighter:#fb7478;--ifm-color-danger-lightest:#fd9c9f;--ifm-color-danger-contrast-background:#ffebec;--ifm-color-danger-contrast-foreground:#4b1113;--ifm-color-white:#fff;--ifm-color-black:#000;--ifm-color-gray-0:var(--ifm-color-white);--ifm-color-gray-100:#f5f6f7;--ifm-color-gray-200:#ebedf0;--ifm-color-gray-300:#dadde1;--ifm-color-gray-400:#ccd0d5;--ifm-color-gray-500:#bec3c9;--ifm-color-gray-600:#8d949e;--ifm-color-gray-700:#606770;--ifm-color-gray-800:#444950;--ifm-color-gray-900:#1c1e21;--ifm-color-gray-1000:var(--ifm-color-black);--ifm-color-emphasis-0:var(--ifm-color-gray-0);--ifm-color-emphasis-100:var(--ifm-color-gray-100);--ifm-color-emphasis-200:var(--ifm-color-gray-200);--ifm-color-emphasis-300:var(--ifm-color-gray-300);--ifm-color-emphasis-400:var(--ifm-color-gray-400);--ifm-color-emphasis-600:var(--ifm-color-gray-600);--ifm-color-emphasis-700:var(--ifm-color-gray-700);--ifm-color-emphasis-800:var(--ifm-color-gray-800);--ifm-color-emphasis-900:var(--ifm-color-gray-900);--ifm-color-emphasis-1000:var(--ifm-color-gray-1000);--ifm-color-content:var(--ifm-color-emphasis-900);--ifm-color-content-inverse:var(--ifm-color-emphasis-0);--ifm-color-content-secondary:#525860;--ifm-background-color:#0000;--ifm-background-surface-color:var(--ifm-color-content-inverse);--ifm-global-border-width:1px;--ifm-global-radius:0.4rem;--ifm-hover-overlay:#0000000d;--ifm-font-color-base:var(--ifm-color-content);--ifm-font-color-base-inverse:var(--ifm-color-content-inverse);--ifm-font-color-secondary:var(--ifm-color-content-secondary);--ifm-font-family-base:system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans,sans-serif,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";--ifm-font-family-monospace:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--ifm-font-size-base:100%;--ifm-font-weight-light:300;--ifm-font-weight-normal:400;--ifm-font-weight-semibold:500;--ifm-font-weight-bold:700;--ifm-font-weight-base:var(--ifm-font-weight-normal);--ifm-line-height-base:1.65;--ifm-global-spacing:1rem;--ifm-spacing-vertical:var(--ifm-global-spacing);--ifm-spacing-horizontal:var(--ifm-global-spacing);--ifm-transition-fast:200ms;--ifm-transition-slow:400ms;--ifm-transition-timing-default:cubic-bezier(0.08,0.52,0.52,1);--ifm-global-shadow-lw:0 1px 2px 0 #0000001a;--ifm-global-shadow-md:0 5px 40px #0003;--ifm-global-shadow-tl:0 12px 28px 0 #0003,0 2px 4px 0 #0000001a;--ifm-z-index-dropdown:100;--ifm-z-index-fixed:200;--ifm-z-index-overlay:400;--ifm-container-width:1140px;--ifm-container-width-xl:1320px;--ifm-code-background:#f6f7f8;--ifm-code-border-radius:var(--ifm-global-radius);--ifm-code-font-size:90%;--ifm-code-padding-horizontal:0.1rem;--ifm-code-padding-vertical:0.1rem;--ifm-pre-background:var(--ifm-code-background);--ifm-pre-border-radius:var(--ifm-code-border-radius);--ifm-pre-color:inherit;--ifm-pre-line-height:1.45;--ifm-pre-padding:1rem;--ifm-heading-color:inherit;--ifm-heading-margin-top:0;--ifm-heading-margin-bottom:var(--ifm-spacing-vertical);--ifm-heading-font-family:var(--ifm-font-family-base);--ifm-heading-font-weight:var(--ifm-font-weight-bold);--ifm-heading-line-height:1.25;--ifm-h1-font-size:2rem;--ifm-h2-font-size:1.5rem;--ifm-h3-font-size:1.25rem;--ifm-h4-font-size:1rem;--ifm-h5-font-size:0.875rem;--ifm-h6-font-size:0.85rem;--ifm-image-alignment-padding:1.25rem;--ifm-leading-desktop:1.25;--ifm-leading:calc(var(--ifm-leading-desktop)*1rem);--ifm-list-left-padding:2rem;--ifm-list-margin:1rem;--ifm-list-item-margin:0.25rem;--ifm-list-paragraph-margin:1rem;--ifm-table-cell-padding:0.75rem;--ifm-table-background:#0000;--ifm-table-stripe-background:#00000008;--ifm-table-border-width:1px;--ifm-table-border-color:var(--ifm-color-emphasis-300);--ifm-table-head-background:inherit;--ifm-table-head-color:inherit;--ifm-table-head-font-weight:var(--ifm-font-weight-bold);--ifm-table-cell-color:inherit;--ifm-link-color:var(--ifm-color-primary);--ifm-link-decoration:none;--ifm-link-hover-color:var(--ifm-link-color);--ifm-link-hover-decoration:underline;--ifm-paragraph-margin-bottom:var(--ifm-leading);--ifm-blockquote-font-size:var(--ifm-font-size-base);--ifm-blockquote-border-left-width:2px;--ifm-blockquote-padding-horizontal:var(--ifm-spacing-horizontal);--ifm-blockquote-padding-vertical:0;--ifm-blockquote-shadow:none;--ifm-blockquote-color:var(--ifm-color-emphasis-800);--ifm-blockquote-border-color:var(--ifm-color-emphasis-300);--ifm-hr-background-color:var(--ifm-color-emphasis-500);--ifm-hr-height:1px;--ifm-hr-margin-vertical:1.5rem;--ifm-scrollbar-size:7px;--ifm-scrollbar-track-background-color:#f1f1f1;--ifm-scrollbar-thumb-background-color:silver;--ifm-scrollbar-thumb-hover-background-color:#a7a7a7;--ifm-alert-background-color:inherit;--ifm-alert-border-color:inherit;--ifm-alert-border-radius:var(--ifm-global-radius);--ifm-alert-border-width:0px;--ifm-alert-border-left-width:5px;--ifm-alert-color:var(--ifm-font-color-base);--ifm-alert-padding-horizontal:var(--ifm-spacing-horizontal);--ifm-alert-padding-vertical:var(--ifm-spacing-vertical);--ifm-alert-shadow:var(--ifm-global-shadow-lw);--ifm-avatar-intro-margin:1rem;--ifm-avatar-intro-alignment:inherit;--ifm-avatar-photo-size:3rem;--ifm-badge-background-color:inherit;--ifm-badge-border-color:inherit;--ifm-badge-border-radius:var(--ifm-global-radius);--ifm-badge-border-width:var(--ifm-global-border-width);--ifm-badge-color:var(--ifm-color-white);--ifm-badge-padding-horizontal:calc(var(--ifm-spacing-horizontal)*0.5);--ifm-badge-padding-vertical:calc(var(--ifm-spacing-vertical)*0.25);--ifm-breadcrumb-border-radius:1.5rem;--ifm-breadcrumb-spacing:0.5rem;--ifm-breadcrumb-color-active:var(--ifm-color-primary);--ifm-breadcrumb-item-background-active:var(--ifm-hover-overlay);--ifm-breadcrumb-padding-horizontal:0.8rem;--ifm-breadcrumb-padding-vertical:0.4rem;--ifm-breadcrumb-size-multiplier:1;--ifm-breadcrumb-separator:url('data:image/svg+xml;utf8,');--ifm-breadcrumb-separator-filter:none;--ifm-breadcrumb-separator-size:0.5rem;--ifm-breadcrumb-separator-size-multiplier:1.25;--ifm-button-background-color:inherit;--ifm-button-border-color:var(--ifm-button-background-color);--ifm-button-border-width:var(--ifm-global-border-width);--ifm-button-font-weight:var(--ifm-font-weight-bold);--ifm-button-padding-horizontal:1.5rem;--ifm-button-padding-vertical:0.375rem;--ifm-button-size-multiplier:1;--ifm-button-transition-duration:var(--ifm-transition-fast);--ifm-button-border-radius:calc(var(--ifm-global-radius)*var(--ifm-button-size-multiplier));--ifm-button-group-spacing:2px;--ifm-card-background-color:var(--ifm-background-surface-color);--ifm-card-border-radius:calc(var(--ifm-global-radius)*2);--ifm-card-horizontal-spacing:var(--ifm-global-spacing);--ifm-card-vertical-spacing:var(--ifm-global-spacing);--ifm-toc-border-color:var(--ifm-color-emphasis-300);--ifm-toc-link-color:var(--ifm-color-content-secondary);--ifm-toc-padding-vertical:0.5rem;--ifm-toc-padding-horizontal:0.5rem;--ifm-dropdown-background-color:var(--ifm-background-surface-color);--ifm-dropdown-font-weight:var(--ifm-font-weight-semibold);--ifm-dropdown-link-color:var(--ifm-font-color-base);--ifm-dropdown-hover-background-color:var(--ifm-hover-overlay);--ifm-footer-background-color:var(--ifm-color-emphasis-100);--ifm-footer-color:inherit;--ifm-footer-link-color:var(--ifm-color-emphasis-700);--ifm-footer-link-hover-color:var(--ifm-color-primary);--ifm-footer-link-horizontal-spacing:0.5rem;--ifm-footer-padding-horizontal:calc(var(--ifm-spacing-horizontal)*2);--ifm-footer-padding-vertical:calc(var(--ifm-spacing-vertical)*2);--ifm-footer-title-color:inherit;--ifm-footer-logo-max-width:min(30rem,90vw);--ifm-hero-background-color:var(--ifm-background-surface-color);--ifm-hero-text-color:var(--ifm-color-emphasis-800);--ifm-menu-color:var(--ifm-color-emphasis-700);--ifm-menu-color-active:var(--ifm-color-primary);--ifm-menu-color-background-active:var(--ifm-hover-overlay);--ifm-menu-color-background-hover:var(--ifm-hover-overlay);--ifm-menu-link-padding-horizontal:0.75rem;--ifm-menu-link-padding-vertical:0.375rem;--ifm-menu-link-sublist-icon:url('data:image/svg+xml;utf8,');--ifm-menu-link-sublist-icon-filter:none;--ifm-navbar-background-color:var(--ifm-background-surface-color);--ifm-navbar-height:3.75rem;--ifm-navbar-item-padding-horizontal:0.75rem;--ifm-navbar-item-padding-vertical:0.25rem;--ifm-navbar-link-color:var(--ifm-font-color-base);--ifm-navbar-link-active-color:var(--ifm-link-color);--ifm-navbar-padding-horizontal:var(--ifm-spacing-horizontal);--ifm-navbar-padding-vertical:calc(var(--ifm-spacing-vertical)*0.5);--ifm-navbar-shadow:var(--ifm-global-shadow-lw);--ifm-navbar-search-input-background-color:var(--ifm-color-emphasis-200);--ifm-navbar-search-input-color:var(--ifm-color-emphasis-800);--ifm-navbar-search-input-placeholder-color:var(--ifm-color-emphasis-500);--ifm-navbar-search-input-icon:url('data:image/svg+xml;utf8,');--ifm-navbar-sidebar-width:83vw;--ifm-pagination-border-radius:var(--ifm-global-radius);--ifm-pagination-color-active:var(--ifm-color-primary);--ifm-pagination-font-size:1rem;--ifm-pagination-item-active-background:var(--ifm-hover-overlay);--ifm-pagination-page-spacing:0.2em;--ifm-pagination-padding-horizontal:calc(var(--ifm-spacing-horizontal)*1);--ifm-pagination-padding-vertical:calc(var(--ifm-spacing-vertical)*0.25);--ifm-pagination-nav-border-radius:var(--ifm-global-radius);--ifm-pagination-nav-color-hover:var(--ifm-color-primary);--ifm-pills-color-active:var(--ifm-color-primary);--ifm-pills-color-background-active:var(--ifm-hover-overlay);--ifm-pills-spacing:0.125rem;--ifm-tabs-color:var(--ifm-font-color-secondary);--ifm-tabs-color-active:var(--ifm-color-primary);--ifm-tabs-color-active-border:var(--ifm-tabs-color-active);--ifm-tabs-padding-horizontal:1rem;--ifm-tabs-padding-vertical:1rem;--docusaurus-progress-bar-color:var(--ifm-color-primary);--docusaurus-announcement-bar-height:auto;--docusaurus-tag-list-border:var(--ifm-color-emphasis-300);--docusaurus-collapse-button-bg:#0000;--docusaurus-collapse-button-bg-hover:#0000001a;--doc-sidebar-width:300px;--doc-sidebar-hidden-width:30px}.badge--danger,.badge--info,.badge--primary,.badge--secondary,.badge--success,.badge--warning{--ifm-badge-border-color:var(--ifm-badge-background-color)}.button--link,.button--outline{--ifm-button-background-color:#0000}html{-webkit-font-smoothing:antialiased;-webkit-text-size-adjust:100%;text-size-adjust:100%;background-color:var(--ifm-background-color);color:var(--ifm-font-color-base);color-scheme:var(--ifm-color-scheme);font:var(--ifm-font-size-base)/var(--ifm-line-height-base) var(--ifm-font-family-base);text-rendering:optimizelegibility}iframe{border:0;color-scheme:auto}.container{margin:0 auto;max-width:var(--ifm-container-width)}.container--fluid{max-width:inherit}.row{display:flex;flex-wrap:wrap;margin:0 calc(var(--ifm-spacing-horizontal)*-1)}.margin-bottom--none,.margin-vert--none,.markdown>:last-child{margin-bottom:0!important}.margin-top--none,.margin-vert--none{margin-top:0!important}.row--no-gutters{margin-left:0;margin-right:0}.margin-horiz--none,.margin-right--none{margin-right:0!important}.row--no-gutters>.col{padding-left:0;padding-right:0}.row--align-top{align-items:flex-start}.row--align-bottom{align-items:flex-end}.menuExternalLink_NmtK,.row--align-center{align-items:center}.row--align-stretch{align-items:stretch}.row--align-baseline{align-items:baseline}.col{--ifm-col-width:100%;flex:1 0;margin-left:0;max-width:var(--ifm-col-width)}.padding-bottom--none,.padding-vert--none{padding-bottom:0!important}.padding-top--none,.padding-vert--none{padding-top:0!important}.padding-horiz--none,.padding-left--none{padding-left:0!important}.padding-horiz--none,.padding-right--none{padding-right:0!important}.col[class*=col--]{flex:0 0 var(--ifm-col-width)}.col--1{--ifm-col-width:8.33333%}.col--offset-1{margin-left:8.33333%}.col--2{--ifm-col-width:16.66667%}.col--offset-2{margin-left:16.66667%}.col--3{--ifm-col-width:25%}.col--offset-3{margin-left:25%}.col--4{--ifm-col-width:33.33333%}.col--offset-4{margin-left:33.33333%}.col--5{--ifm-col-width:41.66667%}.col--offset-5{margin-left:41.66667%}.col--6{--ifm-col-width:50%}.col--offset-6{margin-left:50%}.col--7{--ifm-col-width:58.33333%}.col--offset-7{margin-left:58.33333%}.col--8{--ifm-col-width:66.66667%}.col--offset-8{margin-left:66.66667%}.col--9{--ifm-col-width:75%}.col--offset-9{margin-left:75%}.col--10{--ifm-col-width:83.33333%}.col--offset-10{margin-left:83.33333%}.col--11{--ifm-col-width:91.66667%}.col--offset-11{margin-left:91.66667%}.col--12{--ifm-col-width:100%}.col--offset-12{margin-left:100%}.margin-horiz--none,.margin-left--none{margin-left:0!important}.margin--none{margin:0!important}.margin-bottom--xs,.margin-vert--xs{margin-bottom:.25rem!important}.margin-top--xs,.margin-vert--xs{margin-top:.25rem!important}.margin-horiz--xs,.margin-left--xs{margin-left:.25rem!important}.margin-horiz--xs,.margin-right--xs{margin-right:.25rem!important}.margin--xs{margin:.25rem!important}.margin-bottom--sm,.margin-vert--sm{margin-bottom:.5rem!important}.margin-top--sm,.margin-vert--sm{margin-top:.5rem!important}.margin-horiz--sm,.margin-left--sm{margin-left:.5rem!important}.margin-horiz--sm,.margin-right--sm{margin-right:.5rem!important}.margin--sm{margin:.5rem!important}.margin-bottom--md,.margin-vert--md{margin-bottom:1rem!important}.margin-top--md,.margin-vert--md{margin-top:1rem!important}.margin-horiz--md,.margin-left--md{margin-left:1rem!important}.margin-horiz--md,.margin-right--md{margin-right:1rem!important}.margin--md{margin:1rem!important}.margin-bottom--lg,.margin-vert--lg{margin-bottom:2rem!important}.margin-top--lg,.margin-vert--lg{margin-top:2rem!important}.margin-horiz--lg,.margin-left--lg{margin-left:2rem!important}.margin-horiz--lg,.margin-right--lg{margin-right:2rem!important}.margin--lg{margin:2rem!important}.margin-bottom--xl,.margin-vert--xl{margin-bottom:5rem!important}.margin-top--xl,.margin-vert--xl{margin-top:5rem!important}.margin-horiz--xl,.margin-left--xl{margin-left:5rem!important}.margin-horiz--xl,.margin-right--xl{margin-right:5rem!important}.margin--xl{margin:5rem!important}.padding--none{padding:0!important}.padding-bottom--xs,.padding-vert--xs{padding-bottom:.25rem!important}.padding-top--xs,.padding-vert--xs{padding-top:.25rem!important}.padding-horiz--xs,.padding-left--xs{padding-left:.25rem!important}.padding-horiz--xs,.padding-right--xs{padding-right:.25rem!important}.padding--xs{padding:.25rem!important}.padding-bottom--sm,.padding-vert--sm{padding-bottom:.5rem!important}.padding-top--sm,.padding-vert--sm{padding-top:.5rem!important}.padding-horiz--sm,.padding-left--sm{padding-left:.5rem!important}.padding-horiz--sm,.padding-right--sm{padding-right:.5rem!important}.padding--sm{padding:.5rem!important}.padding-bottom--md,.padding-vert--md{padding-bottom:1rem!important}.padding-top--md,.padding-vert--md{padding-top:1rem!important}.padding-horiz--md,.padding-left--md{padding-left:1rem!important}.padding-horiz--md,.padding-right--md{padding-right:1rem!important}.padding--md{padding:1rem!important}.padding-bottom--lg,.padding-vert--lg{padding-bottom:2rem!important}.padding-top--lg,.padding-vert--lg{padding-top:2rem!important}.padding-horiz--lg,.padding-left--lg{padding-left:2rem!important}.padding-horiz--lg,.padding-right--lg{padding-right:2rem!important}.padding--lg{padding:2rem!important}.padding-bottom--xl,.padding-vert--xl{padding-bottom:5rem!important}.padding-top--xl,.padding-vert--xl{padding-top:5rem!important}.padding-horiz--xl,.padding-left--xl{padding-left:5rem!important}.padding-horiz--xl,.padding-right--xl{padding-right:5rem!important}.padding--xl{padding:5rem!important}code{background-color:var(--ifm-code-background);border:.1rem solid #0000001a;border-radius:var(--ifm-code-border-radius);font-family:var(--ifm-font-family-monospace);font-size:var(--ifm-code-font-size);padding:var(--ifm-code-padding-vertical) var(--ifm-code-padding-horizontal)}a code{color:inherit}pre{background-color:var(--ifm-pre-background);border-radius:var(--ifm-pre-border-radius);color:var(--ifm-pre-color);font:var(--ifm-code-font-size)/var(--ifm-pre-line-height) var(--ifm-font-family-monospace);padding:var(--ifm-pre-padding)}pre code{background-color:initial;border:none;font-size:100%;line-height:inherit;padding:0}kbd{background-color:var(--ifm-color-emphasis-0);border:1px solid var(--ifm-color-emphasis-400);border-radius:.2rem;box-shadow:inset 0 -1px 0 var(--ifm-color-emphasis-400);color:var(--ifm-color-emphasis-800);font:80% var(--ifm-font-family-monospace);padding:.15rem .3rem}h1,h2,h3,h4,h5,h6{color:var(--ifm-heading-color);font-family:var(--ifm-heading-font-family);font-weight:var(--ifm-heading-font-weight);line-height:var(--ifm-heading-line-height);margin:var(--ifm-heading-margin-top) 0 var(--ifm-heading-margin-bottom) 0}h1{font-size:var(--ifm-h1-font-size)}h2{font-size:var(--ifm-h2-font-size)}h3{font-size:var(--ifm-h3-font-size)}h4{font-size:var(--ifm-h4-font-size)}h5{font-size:var(--ifm-h5-font-size)}h6{font-size:var(--ifm-h6-font-size)}img{max-width:100%}img[align=right]{padding-left:var(--image-alignment-padding)}img[align=left]{padding-right:var(--image-alignment-padding)}.markdown{--ifm-h1-vertical-rhythm-top:3;--ifm-h2-vertical-rhythm-top:2;--ifm-h3-vertical-rhythm-top:1.5;--ifm-heading-vertical-rhythm-top:1.25;--ifm-h1-vertical-rhythm-bottom:1.25;--ifm-heading-vertical-rhythm-bottom:1}.markdown:after,.markdown:before{content:"";display:table}.markdown:after{clear:both}.markdown h1:first-child{--ifm-h1-font-size:3rem;margin-bottom:calc(var(--ifm-h1-vertical-rhythm-bottom)*var(--ifm-leading))}.markdown>h2{--ifm-h2-font-size:2rem;margin-top:calc(var(--ifm-h2-vertical-rhythm-top)*var(--ifm-leading))}.markdown>h3{--ifm-h3-font-size:1.5rem;margin-top:calc(var(--ifm-h3-vertical-rhythm-top)*var(--ifm-leading))}.markdown>h4,.markdown>h5,.markdown>h6{margin-top:calc(var(--ifm-heading-vertical-rhythm-top)*var(--ifm-leading))}.markdown>p,.markdown>pre,.markdown>ul{margin-bottom:var(--ifm-leading)}.markdown li>p{margin-top:var(--ifm-list-paragraph-margin)}.markdown li+li{margin-top:var(--ifm-list-item-margin)}ol,ul{margin:0 0 var(--ifm-list-margin);padding-left:var(--ifm-list-left-padding)}ol ol,ul ol{list-style-type:lower-roman}ol ol,ol ul,ul ol,ul ul{margin:0}ol ol ol,ol ul ol,ul ol ol,ul ul ol{list-style-type:lower-alpha}table{border-collapse:collapse;display:block;margin-bottom:var(--ifm-spacing-vertical)}table thead tr{border-bottom:2px solid var(--ifm-table-border-color)}table thead,table tr:nth-child(2n){background-color:var(--ifm-table-stripe-background)}table tr{background-color:var(--ifm-table-background);border-top:var(--ifm-table-border-width) solid var(--ifm-table-border-color)}table td,table th{border:var(--ifm-table-border-width) solid var(--ifm-table-border-color);padding:var(--ifm-table-cell-padding)}table th{background-color:var(--ifm-table-head-background);color:var(--ifm-table-head-color);font-weight:var(--ifm-table-head-font-weight)}table td{color:var(--ifm-table-cell-color)}strong{font-weight:var(--ifm-font-weight-bold)}a{color:var(--ifm-link-color);text-decoration:var(--ifm-link-decoration)}a:hover{color:var(--ifm-link-hover-color);text-decoration:var(--ifm-link-hover-decoration)}.button:hover,.text--no-decoration,.text--no-decoration:hover,a:not([href]){text-decoration:none}p{margin:0 0 var(--ifm-paragraph-margin-bottom)}blockquote{border-left:var(--ifm-blockquote-border-left-width) solid var(--ifm-blockquote-border-color);box-shadow:var(--ifm-blockquote-shadow);color:var(--ifm-blockquote-color);font-size:var(--ifm-blockquote-font-size);padding:var(--ifm-blockquote-padding-vertical) var(--ifm-blockquote-padding-horizontal)}blockquote>:first-child{margin-top:0}blockquote>:last-child{margin-bottom:0}hr{background-color:var(--ifm-hr-background-color);border:0;height:var(--ifm-hr-height);margin:var(--ifm-hr-margin-vertical) 0}.shadow--lw{box-shadow:var(--ifm-global-shadow-lw)!important}.shadow--md{box-shadow:var(--ifm-global-shadow-md)!important}.shadow--tl{box-shadow:var(--ifm-global-shadow-tl)!important}.text--primary,.wordWrapButtonEnabled_EoeP .wordWrapButtonIcon_Bwma{color:var(--ifm-color-primary)}.text--secondary{color:var(--ifm-color-secondary)}.text--success{color:var(--ifm-color-success)}.text--info{color:var(--ifm-color-info)}.text--warning{color:var(--ifm-color-warning)}.text--danger{color:var(--ifm-color-danger)}.text--center{text-align:center}.text--left{text-align:left}.text--justify{text-align:justify}.text--right{text-align:right}.text--capitalize{text-transform:capitalize}.text--lowercase{text-transform:lowercase}.admonitionHeading_tbUL,.alert__heading,.text--uppercase{text-transform:uppercase}.text--light{font-weight:var(--ifm-font-weight-light)}.text--normal{font-weight:var(--ifm-font-weight-normal)}.text--semibold{font-weight:var(--ifm-font-weight-semibold)}.text--bold{font-weight:var(--ifm-font-weight-bold)}.text--italic{font-style:italic}.text--truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.text--break{word-wrap:break-word!important;word-break:break-word!important}.clean-btn{background:none;border:none;color:inherit;cursor:pointer;font-family:inherit;padding:0}.alert,.alert .close{color:var(--ifm-alert-foreground-color)}.clean-list{padding-left:0}.alert--primary{--ifm-alert-background-color:var(--ifm-color-primary-contrast-background);--ifm-alert-background-color-highlight:#3578e526;--ifm-alert-foreground-color:var(--ifm-color-primary-contrast-foreground);--ifm-alert-border-color:var(--ifm-color-primary-dark)}.alert--secondary{--ifm-alert-background-color:var(--ifm-color-secondary-contrast-background);--ifm-alert-background-color-highlight:#ebedf026;--ifm-alert-foreground-color:var(--ifm-color-secondary-contrast-foreground);--ifm-alert-border-color:var(--ifm-color-secondary-dark)}.alert--success{--ifm-alert-background-color:var(--ifm-color-success-contrast-background);--ifm-alert-background-color-highlight:#00a40026;--ifm-alert-foreground-color:var(--ifm-color-success-contrast-foreground);--ifm-alert-border-color:var(--ifm-color-success-dark)}.alert--info{--ifm-alert-background-color:var(--ifm-color-info-contrast-background);--ifm-alert-background-color-highlight:#54c7ec26;--ifm-alert-foreground-color:var(--ifm-color-info-contrast-foreground);--ifm-alert-border-color:var(--ifm-color-info-dark)}.alert--warning{--ifm-alert-background-color:var(--ifm-color-warning-contrast-background);--ifm-alert-background-color-highlight:#ffba0026;--ifm-alert-foreground-color:var(--ifm-color-warning-contrast-foreground);--ifm-alert-border-color:var(--ifm-color-warning-dark)}.alert--danger{--ifm-alert-background-color:var(--ifm-color-danger-contrast-background);--ifm-alert-background-color-highlight:#fa383e26;--ifm-alert-foreground-color:var(--ifm-color-danger-contrast-foreground);--ifm-alert-border-color:var(--ifm-color-danger-dark)}.alert{--ifm-code-background:var(--ifm-alert-background-color-highlight);--ifm-link-color:var(--ifm-alert-foreground-color);--ifm-link-hover-color:var(--ifm-alert-foreground-color);--ifm-link-decoration:underline;--ifm-tabs-color:var(--ifm-alert-foreground-color);--ifm-tabs-color-active:var(--ifm-alert-foreground-color);--ifm-tabs-color-active-border:var(--ifm-alert-border-color);background-color:var(--ifm-alert-background-color);border:var(--ifm-alert-border-width) solid var(--ifm-alert-border-color);border-left-width:var(--ifm-alert-border-left-width);border-radius:var(--ifm-alert-border-radius);box-shadow:var(--ifm-alert-shadow);padding:var(--ifm-alert-padding-vertical) var(--ifm-alert-padding-horizontal)}.alert__heading{align-items:center;display:flex;font:700 var(--ifm-h5-font-size)/var(--ifm-heading-line-height) var(--ifm-heading-font-family);margin-bottom:.5rem}.alert__icon{display:inline-flex;margin-right:.4em}.alert__icon svg{fill:var(--ifm-alert-foreground-color);stroke:var(--ifm-alert-foreground-color);stroke-width:0}.alert .close{margin:calc(var(--ifm-alert-padding-vertical)*-1) calc(var(--ifm-alert-padding-horizontal)*-1) 0 0;opacity:.75}.alert .close:focus,.alert .close:hover{opacity:1}.alert a{text-decoration-color:var(--ifm-alert-border-color)}.alert a:hover{text-decoration-thickness:2px}.avatar{column-gap:var(--ifm-avatar-intro-margin);display:flex}.avatar__photo{border-radius:50%;display:block;height:var(--ifm-avatar-photo-size);overflow:hidden;width:var(--ifm-avatar-photo-size)}.card--full-height,.navbar__logo img,body,html{height:100%}.avatar__photo--sm{--ifm-avatar-photo-size:2rem}.avatar__photo--lg{--ifm-avatar-photo-size:4rem}.avatar__photo--xl{--ifm-avatar-photo-size:6rem}.avatar__intro{display:flex;flex:1 1;flex-direction:column;justify-content:center;text-align:var(--ifm-avatar-intro-alignment)}.badge,.breadcrumbs__item,.breadcrumbs__link,.button,.dropdown>.navbar__link:after,.searchBarContainer_NW3z.searchIndexLoading_EJ1f .searchBarLoadingRing_YnHq{display:inline-block}.avatar__name{font:700 var(--ifm-h4-font-size)/var(--ifm-heading-line-height) var(--ifm-font-family-base)}.avatar__subtitle{margin-top:.25rem}.avatar--vertical{--ifm-avatar-intro-alignment:center;--ifm-avatar-intro-margin:0.5rem;align-items:center;flex-direction:column}.badge{background-color:var(--ifm-badge-background-color);border:var(--ifm-badge-border-width) solid var(--ifm-badge-border-color);border-radius:var(--ifm-badge-border-radius);color:var(--ifm-badge-color);font-size:75%;font-weight:var(--ifm-font-weight-bold);line-height:1;padding:var(--ifm-badge-padding-vertical) var(--ifm-badge-padding-horizontal)}.badge--primary{--ifm-badge-background-color:var(--ifm-color-primary)}.badge--secondary{--ifm-badge-background-color:var(--ifm-color-secondary);color:var(--ifm-color-black)}.breadcrumbs__link,.button.button--secondary.button--outline:not(.button--active):not(:hover){color:var(--ifm-font-color-base)}.badge--success{--ifm-badge-background-color:var(--ifm-color-success)}.badge--info{--ifm-badge-background-color:var(--ifm-color-info)}.badge--warning{--ifm-badge-background-color:var(--ifm-color-warning)}.badge--danger{--ifm-badge-background-color:var(--ifm-color-danger)}.breadcrumbs{margin-bottom:0;padding-left:0}.breadcrumbs__item:not(:last-child):after{background:var(--ifm-breadcrumb-separator) center;content:" ";display:inline-block;filter:var(--ifm-breadcrumb-separator-filter);height:calc(var(--ifm-breadcrumb-separator-size)*var(--ifm-breadcrumb-size-multiplier)*var(--ifm-breadcrumb-separator-size-multiplier));margin:0 var(--ifm-breadcrumb-spacing);opacity:.5;width:calc(var(--ifm-breadcrumb-separator-size)*var(--ifm-breadcrumb-size-multiplier)*var(--ifm-breadcrumb-separator-size-multiplier))}.breadcrumbs__item--active .breadcrumbs__link{background:var(--ifm-breadcrumb-item-background-active);color:var(--ifm-breadcrumb-color-active)}.breadcrumbs__link{border-radius:var(--ifm-breadcrumb-border-radius);font-size:calc(1rem*var(--ifm-breadcrumb-size-multiplier));padding:calc(var(--ifm-breadcrumb-padding-vertical)*var(--ifm-breadcrumb-size-multiplier)) calc(var(--ifm-breadcrumb-padding-horizontal)*var(--ifm-breadcrumb-size-multiplier));transition-duration:var(--ifm-transition-fast);transition-property:background,color}.breadcrumbs__link:any-link:hover,.breadcrumbs__link:link:hover,.breadcrumbs__link:visited:hover,area[href].breadcrumbs__link:hover{background:var(--ifm-breadcrumb-item-background-active);text-decoration:none}.breadcrumbs--sm{--ifm-breadcrumb-size-multiplier:0.8}.breadcrumbs--lg{--ifm-breadcrumb-size-multiplier:1.2}.button{background-color:var(--ifm-button-background-color);border:var(--ifm-button-border-width) solid var(--ifm-button-border-color);border-radius:var(--ifm-button-border-radius);cursor:pointer;font-size:calc(.875rem*var(--ifm-button-size-multiplier));font-weight:var(--ifm-button-font-weight);line-height:1.5;padding:calc(var(--ifm-button-padding-vertical)*var(--ifm-button-size-multiplier)) calc(var(--ifm-button-padding-horizontal)*var(--ifm-button-size-multiplier));text-align:center;transition-duration:var(--ifm-button-transition-duration);transition-property:color,background,border-color;-webkit-user-select:none;user-select:none;white-space:nowrap}.button,.button:hover{color:var(--ifm-button-color)}.button--outline{--ifm-button-color:var(--ifm-button-border-color)}.button--outline:hover{--ifm-button-background-color:var(--ifm-button-border-color)}.button--link{--ifm-button-border-color:#0000;color:var(--ifm-link-color);text-decoration:var(--ifm-link-decoration)}.button--link.button--active,.button--link:active,.button--link:hover{color:var(--ifm-link-hover-color);text-decoration:var(--ifm-link-hover-decoration)}.button.disabled,.button:disabled,.button[disabled]{opacity:.65;pointer-events:none}.button--sm{--ifm-button-size-multiplier:0.8}.button--lg{--ifm-button-size-multiplier:1.35}.button--block{display:block;width:100%}.button.button--secondary{color:var(--ifm-color-gray-900)}:where(.button--primary){--ifm-button-background-color:var(--ifm-color-primary);--ifm-button-border-color:var(--ifm-color-primary)}:where(.button--primary):not(.button--outline):hover{--ifm-button-background-color:var(--ifm-color-primary-dark);--ifm-button-border-color:var(--ifm-color-primary-dark)}.button--primary.button--active,.button--primary:active{--ifm-button-background-color:var(--ifm-color-primary-darker);--ifm-button-border-color:var(--ifm-color-primary-darker)}:where(.button--secondary){--ifm-button-background-color:var(--ifm-color-secondary);--ifm-button-border-color:var(--ifm-color-secondary)}:where(.button--secondary):not(.button--outline):hover{--ifm-button-background-color:var(--ifm-color-secondary-dark);--ifm-button-border-color:var(--ifm-color-secondary-dark)}.button--secondary.button--active,.button--secondary:active{--ifm-button-background-color:var(--ifm-color-secondary-darker);--ifm-button-border-color:var(--ifm-color-secondary-darker)}:where(.button--success){--ifm-button-background-color:var(--ifm-color-success);--ifm-button-border-color:var(--ifm-color-success)}:where(.button--success):not(.button--outline):hover{--ifm-button-background-color:var(--ifm-color-success-dark);--ifm-button-border-color:var(--ifm-color-success-dark)}.button--success.button--active,.button--success:active{--ifm-button-background-color:var(--ifm-color-success-darker);--ifm-button-border-color:var(--ifm-color-success-darker)}:where(.button--info){--ifm-button-background-color:var(--ifm-color-info);--ifm-button-border-color:var(--ifm-color-info)}:where(.button--info):not(.button--outline):hover{--ifm-button-background-color:var(--ifm-color-info-dark);--ifm-button-border-color:var(--ifm-color-info-dark)}.button--info.button--active,.button--info:active{--ifm-button-background-color:var(--ifm-color-info-darker);--ifm-button-border-color:var(--ifm-color-info-darker)}:where(.button--warning){--ifm-button-background-color:var(--ifm-color-warning);--ifm-button-border-color:var(--ifm-color-warning)}:where(.button--warning):not(.button--outline):hover{--ifm-button-background-color:var(--ifm-color-warning-dark);--ifm-button-border-color:var(--ifm-color-warning-dark)}.button--warning.button--active,.button--warning:active{--ifm-button-background-color:var(--ifm-color-warning-darker);--ifm-button-border-color:var(--ifm-color-warning-darker)}:where(.button--danger){--ifm-button-background-color:var(--ifm-color-danger);--ifm-button-border-color:var(--ifm-color-danger)}:where(.button--danger):not(.button--outline):hover{--ifm-button-background-color:var(--ifm-color-danger-dark);--ifm-button-border-color:var(--ifm-color-danger-dark)}.button--danger.button--active,.button--danger:active{--ifm-button-background-color:var(--ifm-color-danger-darker);--ifm-button-border-color:var(--ifm-color-danger-darker)}.button-group{display:inline-flex;gap:var(--ifm-button-group-spacing)}.button-group>.button:not(:first-child){border-bottom-left-radius:0;border-top-left-radius:0}.button-group>.button:not(:last-child){border-bottom-right-radius:0;border-top-right-radius:0}.button-group--block{display:flex;justify-content:stretch}.button-group--block>.button{flex-grow:1}.card{background-color:var(--ifm-card-background-color);border-radius:var(--ifm-card-border-radius);box-shadow:var(--ifm-global-shadow-lw);display:flex;flex-direction:column;overflow:hidden}.card__image{padding-top:var(--ifm-card-vertical-spacing)}.card__image:first-child{padding-top:0}.card__body,.card__footer,.card__header{padding:var(--ifm-card-vertical-spacing) var(--ifm-card-horizontal-spacing)}.card__body:not(:last-child),.card__footer:not(:last-child),.card__header:not(:last-child){padding-bottom:0}.card__body>:last-child,.card__footer>:last-child,.card__header>:last-child{margin-bottom:0}.card__footer{margin-top:auto}.table-of-contents{margin-bottom:0;padding:var(--ifm-toc-padding-vertical) 0}.table-of-contents,.table-of-contents ul{list-style:none;padding-left:var(--ifm-toc-padding-horizontal)}.table-of-contents li{margin:var(--ifm-toc-padding-vertical) var(--ifm-toc-padding-horizontal)}.table-of-contents__left-border{border-left:1px solid var(--ifm-toc-border-color)}.table-of-contents__link{color:var(--ifm-toc-link-color);display:block}.table-of-contents__link--active,.table-of-contents__link--active code,.table-of-contents__link:hover,.table-of-contents__link:hover code{color:var(--ifm-color-primary);text-decoration:none}.content_knG7 a,.hitFooter_E9YW a,.suggestion_fB_2.cursor_eG29 mark{text-decoration:underline}.close{color:var(--ifm-color-black);float:right;font-size:1.5rem;font-weight:var(--ifm-font-weight-bold);line-height:1;opacity:.5;padding:1rem;transition:opacity var(--ifm-transition-fast) var(--ifm-transition-timing-default)}.close:hover{opacity:.7}.close:focus,.theme-code-block-highlighted-line .codeLineNumber_Tfdd:before{opacity:.8}.dropdown{display:inline-flex;font-weight:var(--ifm-dropdown-font-weight);position:relative;vertical-align:top}.dropdown--hoverable:hover .dropdown__menu,.dropdown--show .dropdown__menu{opacity:1;pointer-events:all;transform:translateY(-1px);visibility:visible}.dropdown--right .dropdown__menu{left:inherit;right:0}.dropdown--nocaret .navbar__link:after{content:none!important}.dropdown__menu{background-color:var(--ifm-dropdown-background-color);border-radius:var(--ifm-global-radius);box-shadow:var(--ifm-global-shadow-md);left:0;max-height:80vh;min-width:10rem;opacity:0;overflow-y:auto;padding:.5rem;pointer-events:none;position:absolute;top:calc(100% - var(--ifm-navbar-item-padding-vertical) + .3rem);transform:translateY(-.625rem);transition-duration:var(--ifm-transition-fast);transition-property:opacity,transform,visibility;transition-timing-function:var(--ifm-transition-timing-default);visibility:hidden;z-index:var(--ifm-z-index-dropdown)}.menu__caret,.menu__link,.menu__list-item-collapsible{border-radius:.25rem;transition:background var(--ifm-transition-fast) var(--ifm-transition-timing-default)}.dropdown__link{border-radius:.25rem;color:var(--ifm-dropdown-link-color);display:block;font-size:.875rem;margin-top:.2rem;padding:.25rem .5rem;white-space:nowrap}.dropdown__link--active,.dropdown__link:hover{background-color:var(--ifm-dropdown-hover-background-color);color:var(--ifm-dropdown-link-color);text-decoration:none}.dropdown__link--active,.dropdown__link--active:hover{--ifm-dropdown-link-color:var(--ifm-link-color)}.dropdown>.navbar__link:after{border-color:currentcolor #0000;border-style:solid;border-width:.4em .4em 0;content:"";margin-left:.3em;position:relative;top:2px;transform:translateY(-50%)}.footer{background-color:var(--ifm-footer-background-color);color:var(--ifm-footer-color);padding:var(--ifm-footer-padding-vertical) var(--ifm-footer-padding-horizontal)}.footer--dark{--ifm-footer-background-color:#303846;--ifm-footer-color:var(--ifm-footer-link-color);--ifm-footer-link-color:var(--ifm-color-secondary);--ifm-footer-title-color:var(--ifm-color-white)}.footer__links{margin-bottom:1rem}.footer__link-item{color:var(--ifm-footer-link-color);line-height:2}.footer__link-item:hover{color:var(--ifm-footer-link-hover-color)}.footer__link-separator{margin:0 var(--ifm-footer-link-horizontal-spacing)}.footer__logo{margin-top:1rem;max-width:var(--ifm-footer-logo-max-width)}.footer__title{color:var(--ifm-footer-title-color);font:700 var(--ifm-h4-font-size)/var(--ifm-heading-line-height) var(--ifm-font-family-base);margin-bottom:var(--ifm-heading-margin-bottom)}.menu,.navbar__link{font-weight:var(--ifm-font-weight-semibold)}.docItemContainer_Djhp article>:first-child,.docItemContainer_Djhp header+*,.footer__item{margin-top:0}.admonitionContent_S0QG>:last-child,.collapsibleContent_i85q>:last-child,.footer__items,.searchResultItem_U687>h2{margin-bottom:0}.codeBlockStandalone_MEMb,[type=checkbox]{padding:0}.hero{align-items:center;background-color:var(--ifm-hero-background-color);color:var(--ifm-hero-text-color);display:flex;padding:4rem 2rem}.hero--primary{--ifm-hero-background-color:var(--ifm-color-primary);--ifm-hero-text-color:var(--ifm-font-color-base-inverse)}.hero--dark{--ifm-hero-background-color:#303846;--ifm-hero-text-color:var(--ifm-color-white)}.hero__title{font-size:3rem}.hero__subtitle{font-size:1.5rem}.menu__list{margin:0;padding-left:0}.menu__caret,.menu__link{padding:var(--ifm-menu-link-padding-vertical) var(--ifm-menu-link-padding-horizontal)}.menu__list .menu__list{flex:0 0 100%;margin-top:.25rem;padding-left:var(--ifm-menu-link-padding-horizontal)}.menu__list-item:not(:first-child){margin-top:.25rem}.menu__list-item--collapsed .menu__list{height:0;overflow:hidden}.details_lb9f[data-collapsed=false].isBrowser_bmU9>summary:before,.details_lb9f[open]:not(.isBrowser_bmU9)>summary:before,.menu__list-item--collapsed .menu__caret:before,.menu__list-item--collapsed .menu__link--sublist:after{transform:rotate(90deg)}.menu__list-item-collapsible{display:flex;flex-wrap:wrap;position:relative}.menu__caret:hover,.menu__link:hover,.menu__list-item-collapsible--active,.menu__list-item-collapsible:hover{background:var(--ifm-menu-color-background-hover)}.menu__list-item-collapsible .menu__link--active,.menu__list-item-collapsible .menu__link:hover{background:none!important}.menu__caret,.menu__link{align-items:center;display:flex}.menu__link{color:var(--ifm-menu-color);flex:1;line-height:1.25}.menu__link:hover{color:var(--ifm-menu-color);text-decoration:none}.menu__caret:before,.menu__link--sublist-caret:after{height:1.25rem;transform:rotate(180deg);transition:transform var(--ifm-transition-fast) linear;width:1.25rem;filter:var(--ifm-menu-link-sublist-icon-filter);content:""}.menu__link--sublist-caret:after{background:var(--ifm-menu-link-sublist-icon) 50%/2rem 2rem;margin-left:auto;min-width:1.25rem}.navbar__items--center .navbar__brand,body{margin:0}.menu__link--active,.menu__link--active:hover{color:var(--ifm-menu-color-active)}.navbar__brand,.navbar__link{color:var(--ifm-navbar-link-color)}.menu__link--active:not(.menu__link--sublist){background-color:var(--ifm-menu-color-background-active)}.menu__caret:before{background:var(--ifm-menu-link-sublist-icon) 50%/2rem 2rem}.navbar--dark,html[data-theme=dark]{--ifm-menu-link-sublist-icon-filter:invert(100%) sepia(94%) saturate(17%) hue-rotate(223deg) brightness(104%) contrast(98%)}.navbar{background-color:var(--ifm-navbar-background-color);box-shadow:var(--ifm-navbar-shadow);height:var(--ifm-navbar-height);padding:var(--ifm-navbar-padding-vertical) var(--ifm-navbar-padding-horizontal)}.navbar,.navbar>.container,.navbar>.container-fluid{display:flex}.navbar--fixed-top{position:sticky;top:0;z-index:var(--ifm-z-index-fixed)}.navbar-sidebar,.navbar-sidebar__backdrop{bottom:0;opacity:0;position:fixed;transition-duration:var(--ifm-transition-fast);transition-timing-function:ease-in-out;left:0;top:0;visibility:hidden}.navbar__inner{display:flex;flex-wrap:wrap;justify-content:space-between;width:100%}.navbar__brand{align-items:center;display:flex;margin-right:1rem;min-width:0}.navbar__brand:hover{color:var(--ifm-navbar-link-hover-color);text-decoration:none}.announcementBarContent_xLdY,.navbar__title{flex:1 1 auto}.navbar__toggle{display:none;margin-right:.5rem}.navbar__logo{flex:0 0 auto;height:2rem;margin-right:.5rem}.navbar__items{align-items:center;display:flex;flex:1;min-width:0}.navbar__items--center{flex:0 0 auto}.navbar__items--center+.navbar__items--right{flex:1}.navbar__items--right{flex:0 0 auto;justify-content:flex-end}.navbar__items--right>:last-child{padding-right:0}.navbar__item{display:inline-block;padding:var(--ifm-navbar-item-padding-vertical) var(--ifm-navbar-item-padding-horizontal)}#nprogress,.navbar__item.dropdown .navbar__link:not([href]){pointer-events:none}.navbar__link--active,.navbar__link:hover{color:var(--ifm-navbar-link-hover-color);text-decoration:none}.navbar--dark,.navbar--primary{--ifm-menu-color:var(--ifm-color-gray-300);--ifm-navbar-link-color:var(--ifm-color-gray-100);--ifm-navbar-search-input-background-color:#ffffff1a;--ifm-navbar-search-input-placeholder-color:#ffffff80;color:var(--ifm-color-white)}.navbar--dark{--ifm-navbar-background-color:#242526;--ifm-menu-color-background-active:#ffffff0d;--ifm-navbar-search-input-color:var(--ifm-color-white)}.navbar--primary{--ifm-navbar-background-color:var(--ifm-color-primary);--ifm-navbar-link-hover-color:var(--ifm-color-white);--ifm-menu-color-active:var(--ifm-color-white);--ifm-navbar-search-input-color:var(--ifm-color-emphasis-500)}.navbar__search-input{-webkit-appearance:none;appearance:none;background:var(--ifm-navbar-search-input-background-color) var(--ifm-navbar-search-input-icon) no-repeat .75rem center/1rem 1rem;border:none;border-radius:2rem;color:var(--ifm-navbar-search-input-color);cursor:text;display:inline-block;font-size:.9rem;height:2rem;padding:0 .5rem 0 2.25rem;width:12.5rem}.navbar__search-input::placeholder{color:var(--ifm-navbar-search-input-placeholder-color)}.navbar-sidebar{background-color:var(--ifm-navbar-background-color);box-shadow:var(--ifm-global-shadow-md);transform:translate3d(-100%,0,0);transition-property:opacity,visibility,transform;width:var(--ifm-navbar-sidebar-width)}.navbar-sidebar--show .navbar-sidebar,.navbar-sidebar__items{transform:translateZ(0)}.navbar-sidebar--show .navbar-sidebar,.navbar-sidebar--show .navbar-sidebar__backdrop{opacity:1;visibility:visible}.navbar-sidebar__backdrop{background-color:#0009;right:0;transition-property:opacity,visibility}.navbar-sidebar__brand{align-items:center;box-shadow:var(--ifm-navbar-shadow);display:flex;flex:1;height:var(--ifm-navbar-height);padding:var(--ifm-navbar-padding-vertical) var(--ifm-navbar-padding-horizontal)}.navbar-sidebar__items{display:flex;height:calc(100% - var(--ifm-navbar-height));transition:transform var(--ifm-transition-fast) ease-in-out}.navbar-sidebar__items--show-secondary{transform:translate3d(calc((var(--ifm-navbar-sidebar-width))*-1),0,0)}.navbar-sidebar__item{flex-shrink:0;padding:.5rem;width:calc(var(--ifm-navbar-sidebar-width))}.navbar-sidebar__back{background:var(--ifm-menu-color-background-active);font-size:15px;font-weight:var(--ifm-button-font-weight);margin:0 0 .2rem -.5rem;padding:.6rem 1.5rem;position:relative;text-align:left;top:-.5rem;width:calc(100% + 1rem)}.navbar-sidebar__close{display:flex;margin-left:auto}.pagination{column-gap:var(--ifm-pagination-page-spacing);display:flex;font-size:var(--ifm-pagination-font-size);padding-left:0}.pagination--sm{--ifm-pagination-font-size:0.8rem;--ifm-pagination-padding-horizontal:0.8rem;--ifm-pagination-padding-vertical:0.2rem}.pagination--lg{--ifm-pagination-font-size:1.2rem;--ifm-pagination-padding-horizontal:1.2rem;--ifm-pagination-padding-vertical:0.3rem}.pagination__item{display:inline-flex}.pagination__item>span{padding:var(--ifm-pagination-padding-vertical)}.pagination__item--active .pagination__link{color:var(--ifm-pagination-color-active)}.pagination__item--active .pagination__link,.pagination__item:not(.pagination__item--active):hover .pagination__link{background:var(--ifm-pagination-item-active-background)}.pagination__item--disabled,.pagination__item[disabled]{opacity:.25;pointer-events:none}.pagination__link{border-radius:var(--ifm-pagination-border-radius);color:var(--ifm-font-color-base);display:inline-block;padding:var(--ifm-pagination-padding-vertical) var(--ifm-pagination-padding-horizontal);transition:background var(--ifm-transition-fast) var(--ifm-transition-timing-default)}.pagination__link:hover{text-decoration:none}.pagination-nav{grid-gap:var(--ifm-spacing-horizontal);display:grid;gap:var(--ifm-spacing-horizontal);grid-template-columns:repeat(2,1fr)}.pagination-nav__link{border:1px solid var(--ifm-color-emphasis-300);border-radius:var(--ifm-pagination-nav-border-radius);display:block;height:100%;line-height:var(--ifm-heading-line-height);padding:var(--ifm-global-spacing);transition:border-color var(--ifm-transition-fast) var(--ifm-transition-timing-default)}.pagination-nav__link:hover{border-color:var(--ifm-pagination-nav-color-hover);text-decoration:none}.pagination-nav__link--next{grid-column:2/3;text-align:right}.pagination-nav__label{font-size:var(--ifm-h4-font-size);font-weight:var(--ifm-heading-font-weight);word-break:break-word}.pagination-nav__link--prev .pagination-nav__label:before{content:"« "}.pagination-nav__link--next .pagination-nav__label:after{content:" »"}.pagination-nav__sublabel{color:var(--ifm-color-content-secondary);font-size:var(--ifm-h5-font-size);font-weight:var(--ifm-font-weight-semibold);margin-bottom:.25rem}.pills__item,.tabs{font-weight:var(--ifm-font-weight-bold)}.pills{display:flex;gap:var(--ifm-pills-spacing);padding-left:0}.pills__item{border-radius:.5rem;cursor:pointer;display:inline-block;padding:.25rem 1rem;transition:background var(--ifm-transition-fast) var(--ifm-transition-timing-default)}.tabs,:not(.containsTaskList_mC6p>li)>.containsTaskList_mC6p{padding-left:0}.pills__item--active{color:var(--ifm-pills-color-active)}.pills__item--active,.pills__item:not(.pills__item--active):hover{background:var(--ifm-pills-color-background-active)}.pills--block{justify-content:stretch}.pills--block .pills__item{flex-grow:1;text-align:center}.tabs{color:var(--ifm-tabs-color);display:flex;margin-bottom:0;overflow-x:auto}.tabs__item{border-bottom:3px solid #0000;border-radius:var(--ifm-global-radius);cursor:pointer;display:inline-flex;padding:var(--ifm-tabs-padding-vertical) var(--ifm-tabs-padding-horizontal);transition:background-color var(--ifm-transition-fast) var(--ifm-transition-timing-default)}.tabs__item--active{border-bottom-color:var(--ifm-tabs-color-active-border);border-bottom-left-radius:0;border-bottom-right-radius:0;color:var(--ifm-tabs-color-active)}.tabs__item:hover{background-color:var(--ifm-hover-overlay)}.tabs--block{justify-content:stretch}.tabs--block .tabs__item{flex-grow:1;justify-content:center}html[data-theme=dark]{--ifm-color-scheme:dark;--ifm-color-emphasis-0:var(--ifm-color-gray-1000);--ifm-color-emphasis-100:var(--ifm-color-gray-900);--ifm-color-emphasis-200:var(--ifm-color-gray-800);--ifm-color-emphasis-300:var(--ifm-color-gray-700);--ifm-color-emphasis-400:var(--ifm-color-gray-600);--ifm-color-emphasis-600:var(--ifm-color-gray-400);--ifm-color-emphasis-700:var(--ifm-color-gray-300);--ifm-color-emphasis-800:var(--ifm-color-gray-200);--ifm-color-emphasis-900:var(--ifm-color-gray-100);--ifm-color-emphasis-1000:var(--ifm-color-gray-0);--ifm-background-color:#1b1b1d;--ifm-background-surface-color:#242526;--ifm-hover-overlay:#ffffff0d;--ifm-color-content:#e3e3e3;--ifm-color-content-secondary:#fff;--ifm-breadcrumb-separator-filter:invert(64%) sepia(11%) saturate(0%) hue-rotate(149deg) brightness(99%) contrast(95%);--ifm-code-background:#ffffff1a;--ifm-scrollbar-track-background-color:#444;--ifm-scrollbar-thumb-background-color:#686868;--ifm-scrollbar-thumb-hover-background-color:#7a7a7a;--ifm-table-stripe-background:#ffffff12;--ifm-toc-border-color:var(--ifm-color-emphasis-200);--ifm-color-primary-contrast-background:#102445;--ifm-color-primary-contrast-foreground:#ebf2fc;--ifm-color-secondary-contrast-background:#474748;--ifm-color-secondary-contrast-foreground:#fdfdfe;--ifm-color-success-contrast-background:#003100;--ifm-color-success-contrast-foreground:#e6f6e6;--ifm-color-info-contrast-background:#193c47;--ifm-color-info-contrast-foreground:#eef9fd;--ifm-color-warning-contrast-background:#4d3800;--ifm-color-warning-contrast-foreground:#fff8e6;--ifm-color-danger-contrast-background:#4b1113;--ifm-color-danger-contrast-foreground:#ffebec}#nprogress .bar{background:var(--docusaurus-progress-bar-color);height:2px;left:0;position:fixed;top:0;width:100%;z-index:1031}#nprogress .peg{box-shadow:0 0 10px var(--docusaurus-progress-bar-color),0 0 5px var(--docusaurus-progress-bar-color);height:100%;opacity:1;position:absolute;right:0;transform:rotate(3deg) translateY(-4px);width:100px}:root,[data-theme=dark]{--ifm-color-primary:#2196f3;--ifm-color-primary-dark:#1565c0;--ifm-color-primary-darker:#0d47a1;--ifm-color-primary-darkest:#002171;--ifm-color-primary-light:#64b5f6;--ifm-color-primary-lighter:#bbdefb;--ifm-color-primary-lightest:#e3f2fd;--ifm-code-font-size:95%;--docusaurus-highlighted-code-line-bg:#0000001a}div[class^=announcementBar_]{background:repeating-linear-gradient(-35deg,var(--ifm-color-primary-lighter),var(--ifm-color-primary-lighter) 20px,var(--ifm-color-primary-lightest) 10px,var(--ifm-color-primary-lightest) 40px);font-weight:700}h2,h3,h4,h5,h6{color:#40b8fa}body{font-size:1.125em}h1{font-size:3em}h2{font-size:2em}h3{font-size:1.5em}h4{font-size:1.25em}h5{font-size:1.2em}h6{font-size:1.15em}.navbar{font-size:1rem}.table-of-contents{font-size:.85rem}body:not(.navigation-with-keyboard) :not(input):focus{outline:0}#__docusaurus-base-url-issue-banner-container,.docSidebarContainer_b6E3,.hideAction_vcyE>svg,.sidebarLogo_isFc,.themedImage_ToTc,[data-theme=dark] .lightToggleIcon_pyhR,[data-theme=light] .darkToggleIcon_wfgR,html[data-announcement-bar-initially-dismissed=true] .announcementBar_mb4j{display:none}.skipToContent_fXgn{background-color:var(--ifm-background-surface-color);color:var(--ifm-color-emphasis-900);left:100%;padding:calc(var(--ifm-global-spacing)/2) var(--ifm-global-spacing);position:fixed;top:1rem;z-index:calc(var(--ifm-z-index-fixed) + 1)}.skipToContent_fXgn:focus{box-shadow:var(--ifm-global-shadow-md);left:1rem}.closeButton_CVFx{line-height:0;padding:0}.content_knG7{font-size:85%;padding:5px 0;text-align:center}.content_knG7 a{color:inherit}.announcementBar_mb4j{align-items:center;background-color:var(--ifm-color-white);border-bottom:1px solid var(--ifm-color-emphasis-100);color:var(--ifm-color-black);display:flex;height:var(--docusaurus-announcement-bar-height)}.announcementBarPlaceholder_vyr4{flex:0 0 10px}.announcementBarClose_gvF7{align-self:stretch;flex:0 0 30px}.toggle_vylO{height:2rem;width:2rem}.toggleButton_gllP{align-items:center;border-radius:50%;display:flex;height:100%;justify-content:center;transition:background var(--ifm-transition-fast);width:100%}.toggleButton_gllP:hover{background:var(--ifm-color-emphasis-200)}.toggleButtonDisabled_aARS{cursor:not-allowed}.darkNavbarColorModeToggle_X3D1:hover{background:var(--ifm-color-gray-800)}[data-theme=dark] .themedImage--dark_i4oU,[data-theme=light] .themedImage--light_HNdA,html:not([data-theme]) .themedComponent--light_NU7w{display:initial}.iconExternalLink_nPIU{margin-left:.3rem}.iconLanguage_nlXk{margin-right:5px;vertical-align:text-bottom}.searchBar_RVTs .dropdownMenu_qbY6{background:var(--search-local-modal-background,#f5f6f7);border-radius:6px;box-shadow:var(--search-local-modal-shadow,inset 1px 1px 0 0 #ffffff80,0 3px 8px 0 #555a64);left:auto!important;margin-top:8px;padding:var(--search-local-spacing,12px);position:relative;right:0!important;width:var(--search-local-modal-width,560px)}html[data-theme=dark] .searchBar_RVTs .dropdownMenu_qbY6{background:var(--search-local-modal-background,var(--ifm-background-color));box-shadow:var(--search-local-modal-shadow,inset 1px 1px 0 0 #2c2e40,0 3px 8px 0 #000309)}.searchBar_RVTs .dropdownMenu_qbY6 .suggestion_fB_2{align-items:center;background:var(--search-local-hit-background,#fff);border-radius:4px;box-shadow:var(--search-local-hit-shadow,0 1px 3px 0 #d4d9e1);color:var(--search-local-hit-color,#444950);cursor:pointer;display:flex;flex-direction:row;height:var(--search-local-hit-height,56px);padding:0 var(--search-local-spacing,12px);width:100%}.hitTree_kk6K,.noResults_l6Q3{align-items:center;display:flex}html[data-theme=dark] .dropdownMenu_qbY6 .suggestion_fB_2{background:var(--search-local-hit-background,var(--ifm-color-emphasis-100));box-shadow:var(--search-local-hit-shadow,none);color:var(--search-local-hit-color,var(--ifm-font-color-base))}.searchBar_RVTs .dropdownMenu_qbY6 .suggestion_fB_2:not(:last-child){margin-bottom:4px}.searchBar_RVTs .dropdownMenu_qbY6 .suggestion_fB_2.cursor_eG29{background-color:var(--search-local-highlight-color,var(--ifm-color-primary))}.hitFooter_E9YW a,.hitIcon_a7Zy,.hitPath_ieM4,.hitTree_kk6K,.noResultsIcon_EBY5{color:var(--search-local-muted-color,#969faf)}html[data-theme=dark] .hitIcon_a7Zy,html[data-theme=dark] .hitPath_ieM4,html[data-theme=dark] .hitTree_kk6K,html[data-theme=dark] .noResultsIcon_EBY5{color:var(--search-local-muted-color,var(--ifm-color-secondary-darkest))}.hitTree_kk6K>svg{height:var(--search-local-hit-height,56px);opacity:.5;width:24px}.hitIcon_a7Zy,.hitTree_kk6K>svg{stroke-width:var(--search-local-icon-stroke-width,1.4)}.hitAction_NqkB,.hitIcon_a7Zy{height:20px;width:20px}.hitWrapper_sAK8{display:flex;flex:1 1 auto;flex-direction:column;font-weight:500;justify-content:center;margin:0 8px;overflow-x:hidden;width:80%}.hitWrapper_sAK8 mark{background:none;color:var(--search-local-highlight-color,var(--ifm-color-primary))}.hitTitle_vyVt{font-size:.9em}.hitPath_ieM4{font-size:.75em}.hitPath_ieM4,.hitTitle_vyVt{overflow-x:hidden;text-overflow:ellipsis;white-space:nowrap}.noResults_l6Q3{flex-direction:column;justify-content:center;padding:var(--search-local-spacing,12px) 0}.noResultsIcon_EBY5{margin-bottom:var(--search-local-spacing,12px)}.hitFooter_E9YW{font-size:.85em;margin-top:var(--search-local-spacing,12px);text-align:center}.cursor_eG29 .hideAction_vcyE>svg,.tocCollapsibleContent_vkbj a{display:block}.suggestion_fB_2.cursor_eG29,.suggestion_fB_2.cursor_eG29 .hitIcon_a7Zy,.suggestion_fB_2.cursor_eG29 .hitPath_ieM4,.suggestion_fB_2.cursor_eG29 .hitTree_kk6K,.suggestion_fB_2.cursor_eG29 mark{color:var(--search-local-hit-active-color,var(--ifm-color-white))!important}.searchBarContainer_NW3z{margin-left:16px}.searchBarContainer_NW3z .searchBarLoadingRing_YnHq{display:none;left:10px;position:absolute;top:6px}.searchBarContainer_NW3z .searchClearButton_qk4g{background:none;border:none;line-height:1rem;padding:0;position:absolute;right:.8rem;top:50%;transform:translateY(-50%)}.navbar__search{position:relative}.searchIndexLoading_EJ1f .navbar__search-input{background-image:none}.searchHintContainer_Pkmr{align-items:center;display:flex;gap:4px;height:100%;justify-content:center;pointer-events:none;position:absolute;right:10px;top:0}.searchHint_iIMx{background-color:var(--ifm-navbar-search-input-background-color);border:1px solid var(--ifm-color-emphasis-500);box-shadow:inset 0 -1px 0 var(--ifm-color-emphasis-500);color:var(--ifm-navbar-search-input-placeholder-color)}.loadingRing_RJI3{display:inline-block;height:20px;opacity:var(--search-local-loading-icon-opacity,.5);position:relative;width:20px}.loadingRing_RJI3 div{animation:1.2s cubic-bezier(.5,0,.5,1) infinite a;border:2px solid var(--search-load-loading-icon-color,var(--ifm-navbar-search-input-color));border-color:var(--search-load-loading-icon-color,var(--ifm-navbar-search-input-color)) #0000 #0000 #0000;border-radius:50%;display:block;height:16px;margin:2px;position:absolute;width:16px}.loadingRing_RJI3 div:first-child{animation-delay:-.45s}.loadingRing_RJI3 div:nth-child(2){animation-delay:-.3s}.loadingRing_RJI3 div:nth-child(3){animation-delay:-.15s}@keyframes a{0%{transform:rotate(0)}to{transform:rotate(1turn)}}.navbarHideable_m1mJ{transition:transform var(--ifm-transition-fast) ease}.navbarHidden_jGov{transform:translate3d(0,calc(-100% - 2px),0)}.errorBoundaryError_a6uf{color:red;white-space:pre-wrap}.footerLogoLink_BH7S{opacity:.5;transition:opacity var(--ifm-transition-fast) var(--ifm-transition-timing-default)}.footerLogoLink_BH7S:hover,.hash-link:focus,:hover>.hash-link{opacity:1}.mainWrapper_z2l0{display:flex;flex:1 0 auto;flex-direction:column}.docusaurus-mt-lg{margin-top:3rem}#__docusaurus{display:flex;flex-direction:column;min-height:100%}.iconEdit_Z9Sw{margin-right:.3em;vertical-align:sub}.tag_zVej{border:1px solid var(--docusaurus-tag-list-border);transition:border var(--ifm-transition-fast)}.tag_zVej:hover{--docusaurus-tag-list-border:var(--ifm-link-color);text-decoration:none}.tagRegular_sFm0{border-radius:var(--ifm-global-radius);font-size:90%;padding:.2rem .5rem .3rem}.tagWithCount_h2kH{align-items:center;border-left:0;display:flex;padding:0 .5rem 0 1rem;position:relative}.tagWithCount_h2kH:after,.tagWithCount_h2kH:before{border:1px solid var(--docusaurus-tag-list-border);content:"";position:absolute;top:50%;transition:inherit}.tagWithCount_h2kH:before{border-bottom:0;border-right:0;height:1.18rem;right:100%;transform:translate(50%,-50%) rotate(-45deg);width:1.18rem}.tagWithCount_h2kH:after{border-radius:50%;height:.5rem;left:0;transform:translateY(-50%);width:.5rem}.tagWithCount_h2kH span{background:var(--ifm-color-secondary);border-radius:var(--ifm-global-radius);color:var(--ifm-color-black);font-size:.7rem;line-height:1.2;margin-left:.3rem;padding:.1rem .4rem}.tags_jXut{display:inline}.tag_QGVx{display:inline-block;margin:0 .4rem .5rem 0}.lastUpdated_vwxv{font-size:smaller;font-style:italic;margin-top:.2rem}.tocCollapsibleButton_TO0P{align-items:center;display:flex;font-size:inherit;justify-content:space-between;padding:.4rem .8rem;width:100%}.tocCollapsibleButton_TO0P:after{background:var(--ifm-menu-link-sublist-icon) 50% 50%/2rem 2rem no-repeat;content:"";filter:var(--ifm-menu-link-sublist-icon-filter);height:1.25rem;transform:rotate(180deg);transition:transform var(--ifm-transition-fast);width:1.25rem}.tocCollapsibleButtonExpanded_MG3E:after,.tocCollapsibleExpanded_sAul{transform:none}.tocCollapsible_ETCw{background-color:var(--ifm-menu-color-background-active);border-radius:var(--ifm-global-radius);margin:1rem 0}.tocCollapsibleContent_vkbj>ul{border-left:none;border-top:1px solid var(--ifm-color-emphasis-300);font-size:15px;padding:.2rem 0}.tocCollapsibleContent_vkbj ul li{margin:.4rem .8rem}.searchContextInput_mXoe,.searchQueryInput_CFBF{background:var(--ifm-background-color);border:var(--ifm-global-border-width) solid var(--ifm-color-content-secondary);border-radius:var(--ifm-global-radius);color:var(--ifm-font-color-base);font-size:var(--ifm-font-size-base);margin-bottom:1rem;padding:.5rem;width:100%}.searchResultItem_U687{border-bottom:1px solid #dfe3e8;padding:1rem 0}.searchResultItemPath_uIbk{color:var(--ifm-color-content-secondary);font-size:.8rem;margin:.5rem 0 0}.searchResultItemSummary_oZHr{font-style:italic;margin:.5rem 0 0}.backToTopButton_sjWU{background-color:var(--ifm-color-emphasis-200);border-radius:50%;bottom:1.3rem;box-shadow:var(--ifm-global-shadow-lw);height:3rem;opacity:0;position:fixed;right:1.3rem;transform:scale(0);transition:all var(--ifm-transition-fast) var(--ifm-transition-timing-default);visibility:hidden;width:3rem;z-index:calc(var(--ifm-z-index-fixed) - 1)}.backToTopButton_sjWU:after{background-color:var(--ifm-color-emphasis-1000);content:" ";display:inline-block;height:100%;-webkit-mask:var(--ifm-menu-link-sublist-icon) 50%/2rem 2rem no-repeat;mask:var(--ifm-menu-link-sublist-icon) 50%/2rem 2rem no-repeat;width:100%}.backToTopButtonShow_xfvO{opacity:1;transform:scale(1);visibility:visible}[data-theme=dark]:root{--docusaurus-collapse-button-bg:#ffffff0d;--docusaurus-collapse-button-bg-hover:#ffffff1a}.collapseSidebarButton_PEFL{display:none;margin:0}.docMainContainer_gTbr,.docPage__5DB{display:flex;width:100%}.docPage__5DB{flex:1 0}.docsWrapper_BCFX{display:flex;flex:1 0 auto}.features_t9lD{margin-top:2rem}.heroBanner_qdFl{-webkit-text-fill-color:#fff;background-color:#fff;background-image:url(/assets/images/spaceX_1-b08beebc0d33a6ceb38a2e9449af6326.jpg);background-position:50%;background-size:contain;overflow:auto;padding:11rem;position:relative;text-align:center}[data-theme=dark]{background-color:#1b1b1d;overflow:hidden;padding:15rem 0;position:relative;text-align:center}.buttonGroup__atx button,.codeBlockContainer_Ckt0{background:var(--prism-background-color);color:var(--prism-color)}}.buttons_AeoN{align-items:center;display:flex;justify-content:center}.buttonFonts_pwBM{-webkit-text-fill-color:#000}.codeBlockContainer_Ckt0{border-radius:var(--ifm-code-border-radius);box-shadow:var(--ifm-global-shadow-lw);margin-bottom:var(--ifm-leading)}.codeBlockContent_biex{border-radius:inherit;direction:ltr;position:relative}.codeBlockTitle_Ktv7{border-bottom:1px solid var(--ifm-color-emphasis-300);border-top-left-radius:inherit;border-top-right-radius:inherit;font-size:var(--ifm-code-font-size);font-weight:500;padding:.75rem var(--ifm-pre-padding)}.codeBlock_bY9V{--ifm-pre-background:var(--prism-background-color);margin:0;padding:0}.codeBlockTitle_Ktv7+.codeBlockContent_biex .codeBlock_bY9V{border-top-left-radius:0;border-top-right-radius:0}.codeBlockLines_e6Vv{float:left;font:inherit;min-width:100%;padding:var(--ifm-pre-padding)}.codeBlockLinesWithNumbering_o6Pm{display:table;padding:var(--ifm-pre-padding) 0}.buttonGroup__atx{column-gap:.2rem;display:flex;position:absolute;right:calc(var(--ifm-pre-padding)/2);top:calc(var(--ifm-pre-padding)/2)}.buttonGroup__atx button{align-items:center;border:1px solid var(--ifm-color-emphasis-300);border-radius:var(--ifm-global-radius);display:flex;line-height:0;opacity:0;padding:.4rem;transition:opacity var(--ifm-transition-fast) ease-in-out}.buttonGroup__atx button:focus-visible,.buttonGroup__atx button:hover{opacity:1!important}.theme-code-block:hover .buttonGroup__atx button{opacity:.4}:where(:root){--docusaurus-highlighted-code-line-bg:#484d5b}:where([data-theme=dark]){--docusaurus-highlighted-code-line-bg:#646464}.theme-code-block-highlighted-line{background-color:var(--docusaurus-highlighted-code-line-bg);display:block;margin:0 calc(var(--ifm-pre-padding)*-1);padding:0 var(--ifm-pre-padding)}.codeLine_lJS_{counter-increment:a;display:table-row}.codeLineNumber_Tfdd{background:var(--ifm-pre-background);display:table-cell;left:0;overflow-wrap:normal;padding:0 var(--ifm-pre-padding);position:sticky;text-align:right;width:1%}.codeLineNumber_Tfdd:before{content:counter(a);opacity:.4}.codeLineContent_feaV{padding-right:var(--ifm-pre-padding)}.theme-code-block:hover .copyButtonCopied_obH4{opacity:1!important}.copyButtonIcons_eSgA{height:1.125rem;position:relative;width:1.125rem}.copyButtonIcon_y97N,.copyButtonSuccessIcon_LjdS{fill:currentColor;height:inherit;left:0;opacity:inherit;position:absolute;top:0;transition:all var(--ifm-transition-fast) ease;width:inherit}.copyButtonSuccessIcon_LjdS{color:#00d600;left:50%;opacity:0;top:50%;transform:translate(-50%,-50%) scale(.33)}.copyButtonCopied_obH4 .copyButtonIcon_y97N{opacity:0;transform:scale(.33)}.copyButtonCopied_obH4 .copyButtonSuccessIcon_LjdS{opacity:1;transform:translate(-50%,-50%) scale(1);transition-delay:75ms}.wordWrapButtonIcon_Bwma{height:1.2rem;width:1.2rem}.details_lb9f{--docusaurus-details-summary-arrow-size:0.38rem;--docusaurus-details-transition:transform 200ms ease;--docusaurus-details-decoration-color:grey}.details_lb9f>summary{cursor:pointer;padding-left:1rem;position:relative}.details_lb9f>summary::-webkit-details-marker{display:none}.details_lb9f>summary:before{border-color:#0000 #0000 #0000 var(--docusaurus-details-decoration-color);border-style:solid;border-width:var(--docusaurus-details-summary-arrow-size);content:"";left:0;position:absolute;top:.45rem;transform:rotate(0);transform-origin:calc(var(--docusaurus-details-summary-arrow-size)/2) 50%;transition:var(--docusaurus-details-transition)}.collapsibleContent_i85q{border-top:1px solid var(--docusaurus-details-decoration-color);margin-top:1rem;padding-top:1rem}.details_b_Ee{--docusaurus-details-decoration-color:var(--ifm-alert-border-color);--docusaurus-details-transition:transform var(--ifm-transition-fast) ease;border:1px solid var(--ifm-alert-border-color);margin:0 0 var(--ifm-spacing-vertical)}.anchorWithStickyNavbar_LWe7{scroll-margin-top:calc(var(--ifm-navbar-height) + .5rem)}.anchorWithHideOnScrollNavbar_WYt5{scroll-margin-top:.5rem}.hash-link{opacity:0;padding-left:.5rem;transition:opacity var(--ifm-transition-fast);-webkit-user-select:none;user-select:none}.hash-link:before{content:"#"}.img_ev3q{height:auto}.tableOfContents_bqdL{max-height:calc(100vh - var(--ifm-navbar-height) - 2rem);overflow-y:auto;position:sticky;top:calc(var(--ifm-navbar-height) + 1rem)}.admonition_LlT9{margin-bottom:1em}.admonitionHeading_tbUL{font:var(--ifm-heading-font-weight) var(--ifm-h5-font-size)/var(--ifm-heading-line-height) var(--ifm-heading-font-family);margin-bottom:.3rem}.admonitionHeading_tbUL code{text-transform:none}.admonitionIcon_kALy{display:inline-block;margin-right:.4em;vertical-align:middle}.admonitionIcon_kALy svg{fill:var(--ifm-alert-foreground-color);display:inline-block;height:1.6em;width:1.6em}.breadcrumbHomeIcon_YNFT{height:1.1rem;position:relative;top:1px;vertical-align:top;width:1.1rem}.breadcrumbsContainer_Z_bl{--ifm-breadcrumb-size-multiplier:0.8;margin-bottom:.8rem}.mdxPageWrapper_j9I6{justify-content:center}@media (min-width:997px){.collapseSidebarButton_PEFL,.expandButton_m80_{background-color:var(--docusaurus-collapse-button-bg)}:root{--docusaurus-announcement-bar-height:30px}.announcementBarClose_gvF7,.announcementBarPlaceholder_vyr4{flex-basis:50px}.searchBox_ZlJk{padding:var(--ifm-navbar-item-padding-vertical) var(--ifm-navbar-item-padding-horizontal)}.lastUpdated_vwxv{text-align:right}.tocMobile_ITEo{display:none}.collapseSidebarButton_PEFL{border:1px solid var(--ifm-toc-border-color);border-radius:0;bottom:0;display:block!important;height:40px;position:sticky}.collapseSidebarButtonIcon_kv0_{margin-top:4px;transform:rotate(180deg)}.expandButtonIcon_BlDH,[dir=rtl] .collapseSidebarButtonIcon_kv0_{transform:rotate(0)}.collapseSidebarButton_PEFL:focus,.collapseSidebarButton_PEFL:hover,.expandButton_m80_:focus,.expandButton_m80_:hover{background-color:var(--docusaurus-collapse-button-bg-hover)}.menuHtmlItem_M9Kj{padding:var(--ifm-menu-link-padding-vertical) var(--ifm-menu-link-padding-horizontal)}.menu_SIkG{flex-grow:1;padding:.5rem}@supports (scrollbar-gutter:stable){.menu_SIkG{padding:.5rem 0 .5rem .5rem;scrollbar-gutter:stable}}.menuWithAnnouncementBar_GW3s{margin-bottom:var(--docusaurus-announcement-bar-height)}.sidebar_njMd{display:flex;flex-direction:column;height:100%;padding-top:var(--ifm-navbar-height);width:var(--doc-sidebar-width)}.sidebarWithHideableNavbar_wUlq{padding-top:0}.sidebarHidden_VK0M{opacity:0;visibility:hidden}.sidebarLogo_isFc{align-items:center;color:inherit!important;display:flex!important;margin:0 var(--ifm-navbar-padding-horizontal);max-height:var(--ifm-navbar-height);min-height:var(--ifm-navbar-height);text-decoration:none!important}.sidebarLogo_isFc img{height:2rem;margin-right:.5rem}.expandButton_m80_{align-items:center;display:flex;height:100%;justify-content:center;position:absolute;right:0;top:0;transition:background-color var(--ifm-transition-fast) ease;width:100%}[dir=rtl] .expandButtonIcon_BlDH{transform:rotate(180deg)}.docSidebarContainer_b6E3{border-right:1px solid var(--ifm-toc-border-color);-webkit-clip-path:inset(0);clip-path:inset(0);display:block;margin-top:calc(var(--ifm-navbar-height)*-1);transition:width var(--ifm-transition-fast) ease;width:var(--doc-sidebar-width);will-change:width}.docSidebarContainerHidden_b3ry{cursor:pointer;width:var(--doc-sidebar-hidden-width)}.sidebarViewport_Xe31{height:100%;max-height:100vh;position:sticky;top:0}.docMainContainer_gTbr{flex-grow:1;max-width:calc(100% - var(--doc-sidebar-width))}.docMainContainerEnhanced_Uz_u{max-width:calc(100% - var(--doc-sidebar-hidden-width))}.docItemWrapperEnhanced_czyv{max-width:calc(var(--ifm-container-width) + var(--doc-sidebar-width))!important}.docItemCol_VOVn{max-width:75%!important}}@media (min-width:1440px){.container{max-width:var(--ifm-container-width-xl)}}@media (max-width:996px){.col{--ifm-col-width:100%;flex-basis:var(--ifm-col-width);margin-left:0}.footer{--ifm-footer-padding-horizontal:0}.colorModeToggle_DEke,.footer__link-separator,.navbar__item,.tableOfContents_bqdL{display:none}.footer__col{margin-bottom:calc(var(--ifm-spacing-vertical)*3)}.footer__link-item{display:block}.hero{padding-left:0;padding-right:0}.navbar>.container,.navbar>.container-fluid{padding:0}.navbar__toggle{display:inherit}.navbar__search-input{width:9rem}.pills--block,.tabs--block{flex-direction:column}.searchBox_ZlJk{position:absolute;right:var(--ifm-navbar-padding-horizontal)}.docItemContainer_F8PC{padding:0 .3rem}}@media not (max-width:996px){.searchBar_RVTs.searchBarLeft_MXDe .dropdownMenu_qbY6{left:0!important;right:auto!important}}@media only screen and (max-width:996px){.searchQueryColumn_q7nx{max-width:60%!important}.searchContextColumn_oWAF{max-width:40%!important}}@media (max-width:576px){.markdown h1:first-child{--ifm-h1-font-size:2rem}.markdown>h2{--ifm-h2-font-size:1.5rem}.markdown>h3{--ifm-h3-font-size:1.25rem}.navbar__search-input:not(:focus){width:2rem}.searchBar_RVTs .dropdownMenu_qbY6{max-width:calc(100vw - var(--ifm-navbar-padding-horizontal)*2);width:var(--search-local-modal-width-sm,340px)}.searchBarContainer_NW3z:not(.focused_OWtg) .searchClearButton_qk4g,.searchHintContainer_Pkmr{display:none}}@media screen and (max-width:576px){.searchQueryColumn_q7nx{max-width:100%!important}.searchContextColumn_oWAF{max-width:100%!important;padding-left:var(--ifm-spacing-horizontal)!important}}@media (hover:hover){.backToTopButton_sjWU:hover{background-color:var(--ifm-color-emphasis-300)}}@media (pointer:fine){.thin-scrollbar{scrollbar-width:thin}.thin-scrollbar::-webkit-scrollbar{height:var(--ifm-scrollbar-size);width:var(--ifm-scrollbar-size)}.thin-scrollbar::-webkit-scrollbar-track{background:var(--ifm-scrollbar-track-background-color);border-radius:10px}.thin-scrollbar::-webkit-scrollbar-thumb{background:var(--ifm-scrollbar-thumb-background-color);border-radius:10px}.thin-scrollbar::-webkit-scrollbar-thumb:hover{background:var(--ifm-scrollbar-thumb-hover-background-color)}}@media (prefers-reduced-motion:reduce){:root{--ifm-transition-fast:0ms;--ifm-transition-slow:0ms}}@media print{.announcementBar_mb4j,.footer,.menu,.navbar,.pagination-nav,.table-of-contents,.tocMobile_ITEo{display:none}.tabs{page-break-inside:avoid}.codeBlockLines_e6Vv{white-space:pre-wrap}} \ No newline at end of file diff --git a/assets/images/CFM_Circle-485b2bb96d00ce0d9c1cef62bc8254bf.png b/assets/images/CFM_Circle-485b2bb96d00ce0d9c1cef62bc8254bf.png new file mode 100644 index 000000000..e15b29894 Binary files /dev/null and b/assets/images/CFM_Circle-485b2bb96d00ce0d9c1cef62bc8254bf.png differ diff --git a/assets/images/GUET_logo-2ca573752497f4153d65447c4f644736.png b/assets/images/GUET_logo-2ca573752497f4153d65447c4f644736.png new file mode 100644 index 000000000..703148e5d Binary files /dev/null and b/assets/images/GUET_logo-2ca573752497f4153d65447c4f644736.png differ diff --git a/assets/images/KEXIE_logo-5366f4894a5a4aeb6d632a5158e69097.png b/assets/images/KEXIE_logo-5366f4894a5a4aeb6d632a5158e69097.png new file mode 100644 index 000000000..d0ca2ea46 Binary files /dev/null and b/assets/images/KEXIE_logo-5366f4894a5a4aeb6d632a5158e69097.png differ diff --git a/assets/images/UESTC_logo-26b07a2ed8fc72bcc918804e9d572e7b.png b/assets/images/UESTC_logo-26b07a2ed8fc72bcc918804e9d572e7b.png new file mode 100644 index 000000000..e86a65f69 Binary files /dev/null and b/assets/images/UESTC_logo-26b07a2ed8fc72bcc918804e9d572e7b.png differ diff --git a/assets/images/intro-822c34cd9b5577b06df8bb0956cdf947.png b/assets/images/intro-822c34cd9b5577b06df8bb0956cdf947.png new file mode 100644 index 000000000..9088471b3 Binary files /dev/null and b/assets/images/intro-822c34cd9b5577b06df8bb0956cdf947.png differ diff --git a/assets/images/spaceX_1-b08beebc0d33a6ceb38a2e9449af6326.jpg b/assets/images/spaceX_1-b08beebc0d33a6ceb38a2e9449af6326.jpg new file mode 100644 index 000000000..90398112d Binary files /dev/null and b/assets/images/spaceX_1-b08beebc0d33a6ceb38a2e9449af6326.jpg differ diff --git a/assets/js/05ec199a.e2720221.js b/assets/js/05ec199a.e2720221.js new file mode 100644 index 000000000..68fb4a221 --- /dev/null +++ b/assets/js/05ec199a.e2720221.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunknpy_notebook=self.webpackChunknpy_notebook||[]).push([[2373],{3905:(a,e,t)=>{t.d(e,{Zo:()=>i,kt:()=>h});var n=t(7294);function m(a,e,t){return e in a?Object.defineProperty(a,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):a[e]=t,a}function s(a,e){var t=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable}))),t.push.apply(t,n)}return t}function p(a){for(var e=1;e=0||(m[t]=a[t]);return m}(a,e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(a);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(a,t)&&(m[t]=a[t])}return m}var l=n.createContext({}),N=function(a){var e=n.useContext(l),t=e;return a&&(t="function"==typeof a?a(e):p(p({},e),a)),t},i=function(a){var e=N(a.components);return n.createElement(l.Provider,{value:e},a.children)},o="mdxType",k={inlineCode:"code",wrapper:function(a){var e=a.children;return n.createElement(n.Fragment,{},e)}},c=n.forwardRef((function(a,e){var t=a.components,m=a.mdxType,s=a.originalType,l=a.parentName,i=r(a,["components","mdxType","originalType","parentName"]),o=N(t),c=m,h=o["".concat(l,".").concat(c)]||o[c]||k[c]||s;return t?n.createElement(h,p(p({ref:e},i),{},{components:t})):n.createElement(h,p({ref:e},i))}));function h(a,e){var t=arguments,m=e&&e.mdxType;if("string"==typeof a||m){var s=t.length,p=new Array(s);p[0]=c;var r={};for(var l in e)hasOwnProperty.call(e,l)&&(r[l]=e[l]);r.originalType=a,r[o]="string"==typeof a?a:m,p[1]=r;for(var N=2;N{t.r(e),t.d(e,{assets:()=>l,contentTitle:()=>p,default:()=>k,frontMatter:()=>s,metadata:()=>r,toc:()=>N});var n=t(7462),m=(t(7294),t(3905));const s={},p="\u81ea\u6ce8\u610f\u529b\uff08Self-Attention\uff09",r={unversionedId:"Deep-Learning/\u5927\u6a21\u578b/Self-Attention",id:"Deep-Learning/\u5927\u6a21\u578b/Self-Attention",title:"\u81ea\u6ce8\u610f\u529b\uff08Self-Attention\uff09",description:"\u53c2\u8003\u94fe\u63a5:",source:"@site/docs/Deep-Learning/5-\u5927\u6a21\u578b/1-Self-Attention.md",sourceDirName:"Deep-Learning/5-\u5927\u6a21\u578b",slug:"/Deep-Learning/\u5927\u6a21\u578b/Self-Attention",permalink:"/docs/Deep-Learning/\u5927\u6a21\u578b/Self-Attention",draft:!1,tags:[],version:"current",sidebarPosition:1,frontMatter:{},sidebar:"deep_learning",previous:{title:"\u672c\u79d1\u6bd5\u4e1a\u8bba\u6587\uff1a\u57fa\u4e8e Prompt Learning \u7684\u89c6\u89c9-\u8bed\u8a00\u5927\u6a21\u578b\u5728\u56fe\u50cf\u751f\u6210\u4e2d\u7684\u5e94\u7528\u4e0e\u7814\u7a76",permalink:"/docs/Deep-Learning/\u5b9e\u6218\u7ec3\u4e60/Undergraduate-Dissertation"},next:{title:"NeurIPS 2017: Attention Is All You Need",permalink:"/docs/Deep-Learning/\u5927\u6a21\u578b/Attention-Is-All-You-Need"}},l={},N=[{value:"\u8ba4\u8bc6CNN\u7684\u5c40\u9650\u6027",id:"\u8ba4\u8bc6cnn\u7684\u5c40\u9650\u6027",level:2},{value:"\u8f93\u5165\u4e0e\u8f93\u51fa\u7684\u5c40\u9650\u6027",id:"\u8f93\u5165\u4e0e\u8f93\u51fa\u7684\u5c40\u9650\u6027",level:3},{value:"\u5173\u8054\u4e0a\u4e0b\u6587\u4fe1\u606f\u7684\u5c40\u9650\u6027",id:"\u5173\u8054\u4e0a\u4e0b\u6587\u4fe1\u606f\u7684\u5c40\u9650\u6027",level:3},{value:"Self-Attention\u7684\u539f\u7406",id:"self-attention\u7684\u539f\u7406",level:2},{value:"\u4ec0\u4e48\u662fSelf-Attention",id:"\u4ec0\u4e48\u662fself-attention",level:3},{value:"Self-Attention\u7684\u6838\u5fc3\u601d\u60f3",id:"self-attention\u7684\u6838\u5fc3\u601d\u60f3",level:3},{value:"Self-Attention\u7684\u5b9e\u73b0",id:"self-attention\u7684\u5b9e\u73b0",level:3},{value:"\u5b9a\u4e49\u8f93\u5165",id:"\u5b9a\u4e49\u8f93\u5165",level:4},{value:"\u521d\u59cb\u5316\u6743\u91cd\u77e9\u9635",id:"\u521d\u59cb\u5316\u6743\u91cd\u77e9\u9635",level:4},{value:"\u8ba1\u7b97key\uff0cquery\u4ee5\u53cavalue",id:"\u8ba1\u7b97keyquery\u4ee5\u53cavalue",level:4},{value:"\u8ba1\u7b97\u539f\u59cb\u7684\u6ce8\u610f\u529b\u5206\u6570",id:"\u8ba1\u7b97\u539f\u59cb\u7684\u6ce8\u610f\u529b\u5206\u6570",level:4},{value:"\u5bf9\u6bcf\u4e00\u4e2a\u5411\u91cf\u8ba1\u7b97\u51fa\u7684\u6ce8\u610f\u529b\u5206\u6570\u505asoftmax",id:"\u5bf9\u6bcf\u4e00\u4e2a\u5411\u91cf\u8ba1\u7b97\u51fa\u7684\u6ce8\u610f\u529b\u5206\u6570\u505asoftmax",level:4},{value:"\u5c06\u6ce8\u610f\u529b\u5206\u6570\u4e0e\u5bf9\u5e94\u7684value\u76f8\u4e58",id:"\u5c06\u6ce8\u610f\u529b\u5206\u6570\u4e0e\u5bf9\u5e94\u7684value\u76f8\u4e58",level:4},{value:"\u52a0\u6743\u6ce8\u610f\u529b\u5206\u6570\u6c42\u548c",id:"\u52a0\u6743\u6ce8\u610f\u529b\u5206\u6570\u6c42\u548c",level:4},{value:"\u603b\u7ed3",id:"\u603b\u7ed3",level:4},{value:"\u5b8c\u6574\u4ee3\u7801",id:"\u5b8c\u6574\u4ee3\u7801",level:4},{value:"Multi-Head Self-Attention",id:"multi-head-self-attention",level:2},{value:"Self-Attention\u4e0eCNN\u7684\u5bf9\u6bd4",id:"self-attention\u4e0ecnn\u7684\u5bf9\u6bd4",level:2}],i={toc:N},o="wrapper";function k(a){let{components:e,...t}=a;return(0,m.kt)(o,(0,n.Z)({},i,t,{components:e,mdxType:"MDXLayout"}),(0,m.kt)("h1",{id:"\u81ea\u6ce8\u610f\u529bself-attention"},"\u81ea\u6ce8\u610f\u529b\uff08Self-Attention\uff09"),(0,m.kt)("admonition",{type:"important"},(0,m.kt)("p",{parentName:"admonition"},"\u53c2\u8003\u94fe\u63a5:"),(0,m.kt)("p",{parentName:"admonition"},(0,m.kt)("a",{parentName:"p",href:"https://towardsdatascience.com/illustrated-self-attention-2d627e33b20a#570c"},"Illustrated: Self-Attention")),(0,m.kt)("p",{parentName:"admonition"},(0,m.kt)("a",{parentName:"p",href:"https://zhuanlan.zhihu.com/p/619154409"},"\u52a8\u56fe\u8f7b\u677e\u7406\u89e3Self-Attention(\u81ea\u6ce8\u610f\u529b\u673a\u5236)"))),(0,m.kt)("h2",{id:"\u8ba4\u8bc6cnn\u7684\u5c40\u9650\u6027"},"\u8ba4\u8bc6CNN\u7684\u5c40\u9650\u6027"),(0,m.kt)("h3",{id:"\u8f93\u5165\u4e0e\u8f93\u51fa\u7684\u5c40\u9650\u6027"},"\u8f93\u5165\u4e0e\u8f93\u51fa\u7684\u5c40\u9650\u6027"),(0,m.kt)("p",null,"CNN\u6a21\u578b\u7684\u8f93\u5165\u5411\u91cf\u7684\u5f62\u72b6\u662f\u56fa\u5b9a\u7684\uff0c\u5176\u8f93\u51fa\u5411\u91cf\u7684\u5f62\u72b6\u4e5f\u662f\u56fa\u5b9a\u7684\u6216\u53ef\u4ee5\u6839\u636e\u4e0d\u540c\u7684\u4e0b\u6e38\u4efb\u52a1\u800c\u552f\u4e00\u786e\u5b9a\uff0c\u5373\u8f93\u5165\u5f62\u72b6\u4e0e\u4e0b\u6e38\u4efb\u52a1\u5171\u540c\u786e\u5b9a\u4e86\u4e00\u4e2aCNN\u6a21\u578b\u7684\u67b6\u6784\uff0c\u5177\u6709\u8f83\u5f3a\u7684\u56fa\u5b9a\u6027\u3002"),(0,m.kt)("admonition",{type:"important"},(0,m.kt)("p",{parentName:"admonition"},"\u5728\u89c6\u89c9\u4e2d\uff0c\u8f93\u5165\u5927\u591a\u4e3a\u6570\u5b57\u56fe\u50cf\uff0c\u5176\u5f62\u72b6\u53ef\u4ee5\u5927\u81f4\u5206\u4e3a\u7531\u5c3a\u5bf8\u548c\u901a\u9053\u6570\u6765\u51b3\u5b9a\u3002"),(0,m.kt)("p",{parentName:"admonition"},"\u4ece\u8f93\u5165\u56fe\u50cf\u7684\u5c3a\u5bf8\u770b\uff0c\u5f53CNN\u4e2d\u6ca1\u6709\u5168\u8fde\u63a5\u5c42\u65f6\uff0c\u672c\u8d28\u4e0a\u53ef\u4ee5\u63a5\u53d7\u4efb\u610f\u5c3a\u5bf8\u7684\u8f93\u5165\uff0c\u4f46\u8fd9\u662f\u72ed\u9698\u7684\u3002\u82e5\u8003\u8651\u5176\u4e0b\u6e38\u4efb\u52a1\u4ee5\u53ca\u8f93\u51fa\uff0c\u5982FCN\uff08Fully Convolution Network\uff09\uff0cFCN\u901a\u8fc7\u6700\u540e\u901a\u8fc7\u53cd\u5377\u79ef\u5c06tensor\u8fd8\u539f\u5230\u539f\u59cb\u56fe\u50cf\u5c3a\u5bf8\uff0c\u5373\u5728CNN\u4e2d\uff0c\u8f93\u5165\u4e0e\u8f93\u51fa\uff08\u4e0b\u6e38\u4efb\u52a1\u7684\u8981\u6c42\uff09\u90fd\u5f71\u54cd\u7740CNN\u7f51\u7edc\u7684\u7ed3\u6784\u3002"),(0,m.kt)("p",{parentName:"admonition"},"\u4ece\u901a\u9053\u6570\u770b\uff0cCNN\u672c\u8d28\u4e0a\u53ef\u4ee5\u63a5\u53d7\u4efb\u610f\u901a\u9053\u6570\u7684\u56fe\u50cf\u8f93\u5165\uff0c\u4f46\u662f\u5176\u6a21\u578b\u6548\u679c\u5c06\u4f1a\u53d7\u5230\u6781\u5927\u7684\u5f71\u54cd\u3002\u4ee5\u4e00\u4e2a\u4f7f\u7528\u901a\u9053\u6570\u4e3a3\u7684\u6570\u636e\u96c6\u8fdb\u884c\u8bad\u7ec3\u7684CNN\u6a21\u578b\uff0c\u4f46\u5728\u6d4b\u8bd5\u9636\u6bb5\u5206\u522b\u4f7f\u7528\u901a\u9053\u6570\u4e3a 1 \u548c 6 \u7684\u6570\u636e\u8fdb\u884c\u63a8\u7406\u7684\u60c5\u5f62\u4e3a\u4f8b\uff0c\u8fdb\u884c\u5206\u6790\uff1a"),(0,m.kt)("ol",{parentName:"admonition"},(0,m.kt)("li",{parentName:"ol"},"\u901a\u9053\u6570\u4e3a1\u7684\u6d4b\u8bd5\u96c6\uff1a")),(0,m.kt)("ul",{parentName:"admonition"},(0,m.kt)("li",{parentName:"ul"},"\u60c5\u51b5\uff1a \u5982\u679c\u4f7f\u7528\u901a\u9053\u6570\u4e3a 1 \u7684\u6570\u636e\u8fdb\u884c\u63a8\u7406\uff0c\u5373\u7070\u5ea6\u56fe\u50cf\uff0c\u800c\u6a21\u578b\u5728\u8bad\u7ec3\u65f6\u662f\u4f7f\u7528 RGB \u6570\u636e\u96c6\u8bad\u7ec3\u7684\uff0c\u6a21\u578b\u53ef\u80fd\u4f1a\u53d7\u5230\u4e00\u4e9b\u5f71\u54cd\u3002"),(0,m.kt)("li",{parentName:"ul"},"\u89e3\u91ca\uff1a \u6a21\u578b\u53ef\u80fd\u5728\u8bad\u7ec3\u65f6\u5b66\u5230\u4e86\u5173\u4e8e\u989c\u8272\u7684\u7279\u5b9a\u4fe1\u606f\uff0c\u800c\u5728\u6d4b\u8bd5\u65f6\uff0c\u5982\u679c\u8f93\u5165\u662f\u7070\u5ea6\u56fe\u50cf\uff0c\u90a3\u4e9b\u989c\u8272\u4fe1\u606f\u5c06\u4e0d\u53ef\u7528\u3002"),(0,m.kt)("li",{parentName:"ul"},"\u5efa\u8bae\uff1a \u5728\u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0c\u6a21\u578b\u53ef\u80fd\u4f1a\u5931\u53bb\u5bf9\u989c\u8272\u4fe1\u606f\u7684\u654f\u611f\u6027\uff0c\u53ef\u80fd\u9700\u8981\u8fdb\u884c\u8fdb\u4e00\u6b65\u7684\u8c03\u6574\u6216\u5fae\u8c03\uff0c\u4ee5\u9002\u5e94\u7070\u5ea6\u56fe\u50cf\u7684\u7279\u6027\u3002")),(0,m.kt)("ol",{parentName:"admonition",start:2},(0,m.kt)("li",{parentName:"ol"},"\u901a\u9053\u6570\u4e3a6\u7684\u6d4b\u8bd5\u96c6\uff1a")),(0,m.kt)("ul",{parentName:"admonition"},(0,m.kt)("li",{parentName:"ul"},"\u60c5\u51b5\uff1a \u5982\u679c\u4f7f\u7528\u901a\u9053\u6570\u4e3a 6 \u7684\u6570\u636e\u8fdb\u884c\u63a8\u7406\uff0c\u6a21\u578b\u53ef\u80fd\u4f1a\u9762\u4e34\u989d\u5916\u7684\u6311\u6218\uff0c\u56e0\u4e3a\u5b83\u5728\u8bad\u7ec3\u65f6\u53ea\u89c1\u8fc7 3 \u4e2a\u901a\u9053\u7684\u6570\u636e\u3002"),(0,m.kt)("li",{parentName:"ul"},"\u89e3\u91ca\uff1a \u6a21\u578b\u5728\u8bad\u7ec3\u65f6\u5b66\u5230\u7684\u6743\u91cd\u662f\u57fa\u4e8e 3 \u4e2a\u901a\u9053\u7684\u6570\u636e\u7684\uff0c\u5bf9\u4e8e\u989d\u5916\u7684\u901a\u9053\uff0c\u6a21\u578b\u53ef\u80fd\u65e0\u6cd5\u6709\u6548\u5229\u7528\u8fd9\u4e9b\u4fe1\u606f\u3002"),(0,m.kt)("li",{parentName:"ul"},"\u5efa\u8bae\uff1a \u5bf9\u4e8e\u901a\u9053\u6570\u4e0d\u5339\u914d\u7684\u60c5\u51b5\uff0c\u53ef\u4ee5\u8003\u8651\u8fdb\u884c\u901a\u9053\u7684\u9002\u5f53\u7ec4\u5408\u6216\u8c03\u6574\u3002\u8fd9\u53ef\u80fd\u5305\u62ec\u964d\u4f4e\u901a\u9053\u6570\uff08\u4f8b\u5982\uff0c\u53ea\u4f7f\u7528\u524d 3 \u4e2a\u901a\u9053\uff09\uff0c\u6216\u8005\u901a\u8fc7\u67d0\u79cd\u65b9\u5f0f\u5c06 6 \u4e2a\u901a\u9053\u6620\u5c04\u5230 3 \u4e2a\u901a\u9053\uff0c\u4f8b\u5982\u901a\u8fc7\u67d0\u79cd\u7279\u5b9a\u7684\u6570\u636e\u9884\u5904\u7406\u3002"))),(0,m.kt)("p",null,"\u5f53\u6a21\u578b\u7684\u8f93\u5165\u66f4\u590d\u6742\uff08sophisticated\uff09\uff0c\u662f",(0,m.kt)("inlineCode",{parentName:"p"},"\u957f\u5ea6\u4e0d\u5b9a"),"\u7684\u5411\u91cf\u5e8f\u5217\uff08sequence\uff09\u65f6\uff0cCNN\u4e0d\u80fd\u5f88\u597d\u5730\u5904\u7406\uff0c\u4e14\u4e0d\u80fd\u89e3\u51b3\u8f93\u51fa\u7531\u8f93\u5165\u548c\u6a21\u578b\u81ea\u884c\u51b3\u5b9a\u7684\u4e0b\u6e38\u4efb\u52a1\uff0c\u5982\u751f\u6210\u7c7b\u4efb\u52a1\u3002"),(0,m.kt)("h3",{id:"\u5173\u8054\u4e0a\u4e0b\u6587\u4fe1\u606f\u7684\u5c40\u9650\u6027"},"\u5173\u8054\u4e0a\u4e0b\u6587\u4fe1\u606f\u7684\u5c40\u9650\u6027"),(0,m.kt)("p",null,"CNN\u4e2d\u5b58\u5728\u5c40\u90e8\u8fde\u63a5\u548c\u6743\u503c\u5171\u4eab\u7684\u5f52\u7eb3\u504f\u7f6e\uff1a"),(0,m.kt)("ul",null,(0,m.kt)("li",{parentName:"ul"},(0,m.kt)("strong",{parentName:"li"},"\u5c40\u90e8\u8fde\u63a5\uff1a"),"CNN\u4f7f\u7528\u5377\u79ef\u5c42\u901a\u8fc7\u6ed1\u52a8\u5377\u79ef\u6838\u5728\u8f93\u5165\u4e0a\u8fdb\u884c\u5c40\u90e8\u611f\u53d7\u91ce\u7684\u64cd\u4f5c\u3002\u6bcf\u4e2a\u795e\u7ecf\u5143\u53ea\u4e0e\u8f93\u5165\u7684\u4e00\u5c0f\u90e8\u5206\u533a\u57df\u76f8\u8fde\uff0c\u8fd9\u610f\u5473\u7740\u6bcf\u4e2a\u795e\u7ecf\u5143\u53ea\u80fd\u63a5\u89e6\u5230\u5c40\u90e8\u7684\u4e0a\u4e0b\u6587\u4fe1\u606f\u3002"),(0,m.kt)("li",{parentName:"ul"},(0,m.kt)("strong",{parentName:"li"},"\u6743\u503c\u5171\u4eab\uff1a")," \u6743\u503c\u5171\u4eab\u7684\u4e3b\u8981\u601d\u60f3\u662f\uff0c\u5bf9\u4e8e\u8f93\u5165\u56fe\u50cf\u7684\u4e0d\u540c\u4f4d\u7f6e\u4f7f\u7528\u76f8\u540c\u7684\u6743\u91cd\u53c2\u6570\u8fdb\u884c\u5377\u79ef\u64cd\u4f5c\u3002\u8fd9\u610f\u5473\u7740\uff0c\u65e0\u8bba\u5377\u79ef\u64cd\u4f5c\u53d1\u751f\u5728\u56fe\u50cf\u7684\u5de6\u4e0a\u89d2\u3001\u53f3\u4e0b\u89d2\uff0c\u6216\u8005\u5176\u4ed6\u4efb\u4f55\u4f4d\u7f6e\uff0c\u90fd\u4f7f\u7528\u76f8\u540c\u7684\u5377\u79ef\u6838\u8fdb\u884c\u6743\u503c\u8ba1\u7b97\u3002CNN\u7684\u6743\u503c\u5171\u4eab\u4f7f\u5f97\u6a21\u578b\u80fd\u591f\u5b66\u4e60\u5230\u56fe\u50cf\u4e2d\u7684\u5c40\u90e8\u7279\u5f81\uff0c\u8fd9\u4e5f\u662f\u4e00\u79cd\u5bf9\u4e8e\u4e0a\u4e0b\u6587\u7684\u5047\u8bbe\u3002\u76f8\u90bb\u4f4d\u7f6e\u4e0a\u7684\u6743\u91cd\u5171\u4eab\u4f7f\u5f97\u6a21\u578b\u80fd\u591f\u5bf9\u5c40\u90e8\u7ed3\u6784\u8fdb\u884c\u5efa\u6a21\uff0c\u8fd9\u79cd\u6743\u91cd\u5171\u4eab\u4f7f\u5f97CNN\u5177\u6709\u66f4\u5f3a\u7684\u5f52\u7eb3\u504f\u7f6e\u3002")),(0,m.kt)("admonition",{type:"tip"},(0,m.kt)("p",{parentName:"admonition"},(0,m.kt)("strong",{parentName:"p"},"\u5728\u591a\u901a\u9053\u5377\u79ef\u4e2d\uff0c\u5377\u79ef\u6838\u4e0d\u540c\u901a\u9053\u4e4b\u95f4\u7684\u6743\u91cd\u53c2\u6570\u662f\u72ec\u7acb\u7684"),"\u3002\u8fd9\u4f7f\u5f97\u7f51\u7edc\u80fd\u591f\u5b66\u4e60\u4e0d\u540c\u901a\u9053\u4e4b\u95f4\u7684\u7279\u5f81\u7ec4\u5408\u3002\u8fd9\u79cd\u8bbe\u8ba1\u6709\u6548\u5730\u6355\u6349\u4e86\u8f93\u5165\u6570\u636e\u4e2d\u7684\u591a\u901a\u9053\u4fe1\u606f\uff0c\u63d0\u9ad8\u4e86\u7f51\u7edc\u7684\u8868\u8fbe\u80fd\u529b\u3002")),(0,m.kt)("p",null,"CNN\u7684\u8bbe\u8ba1\u7406\u5ff5\u8ba4\u4e3a\uff1a\u5728\u56fe\u50cf\u4efb\u52a1\u4e2d\uff0c\u5c40\u90e8\u7ed3\u6784\u901a\u5e38\u66f4\u4e3a\u91cd\u8981\uff0c\u5c40\u90e8\u8fde\u63a5\u548c\u6743\u503c\u5171\u4eab\u4f7f\u5f97CNN\u66f4\u9002\u7528\u4e8e\u56fe\u50cf\u5904\u7406\u7b49\u4efb\u52a1\u3002\u4f46\u4e5f\u6b63\u662f\u8fd9\u79cd\u8bbe\u8ba1\u7406\u5ff5\uff0c\u4f7f\u5f97CNN\u5728\u9762\u4e34",(0,m.kt)("strong",{parentName:"p"},"\u957f\u8f93\u5165\u5e8f\u5217"),"\u65f6\u4e0d\u80fd\u5f88\u597d\u5730\u7efc\u5408",(0,m.kt)("strong",{parentName:"p"},"\u4e0a\u4e0b\u6587\u4fe1\u606f"),"\u3001\u63d0\u53d6",(0,m.kt)("strong",{parentName:"p"},"\u4f4d\u7f6e\u4fe1\u606f"),"\uff0c\u56e0\u6b64Self-Attention\u5e94\u8fd0\u800c\u751f\uff0c",(0,m.kt)("strong",{parentName:"p"},"\u5141\u8bb8\u6bcf\u4e2a\u4f4d\u7f6e\u5173\u6ce8\u5230\u5e8f\u5217\u4e2d\u5730\u6240\u6709\u5176\u4ed6\u4f4d\u7f6e"),"\u3002\u8fd9\u79cd\u5168\u5c40\u5173\u8054\u6027\u8d28\u4f7f\u5f97Transformer\u80fd\u591f\u6355\u6349\u5e8f\u5217\u4e2d\u7684\u957f\u8ddd\u79bb\u4f9d\u8d56\u5173\u7cfb\u3002"),(0,m.kt)("h2",{id:"self-attention\u7684\u539f\u7406"},"Self-Attention\u7684\u539f\u7406"),(0,m.kt)("h3",{id:"\u4ec0\u4e48\u662fself-attention"},"\u4ec0\u4e48\u662fSelf-Attention"),(0,m.kt)("blockquote",null,(0,m.kt)("p",{parentName:"blockquote"},"A self-attention module takes in ",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"n")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"n")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.4306em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"n")))))," inputs and returns ",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"n")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"n")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.4306em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"n")))))," outputs. What happens in this module? In layman\u2019s terms, the self-attention mechanism allows the inputs to interact with each other (\u201cself\u201d) and find out who they should pay more attention to (\u201cattention\u201d). The outputs are aggregates of these interactions and attention scores.")),(0,m.kt)("p",null,"Self-Attention\u63a5\u53d7",(0,m.kt)("strong",{parentName:"p"},"\u4efb\u610f\u5411\u91cf\u6570\u91cf"),"\u7684\u5411\u91cf\u5e8f\u5217\u7684\u8f93\u5165\uff0c\u8f93\u51fa",(0,m.kt)("strong",{parentName:"p"},"\u6bcf\u4e00\u4e2a\u5411\u91cf\u6240\u6709\u5411\u91cf\uff08\u5305\u62ec\u81ea\u8eab\uff09\u7684\u6ce8\u610f\u529b\u5206\u6570"),"\u3002\u8fd9\u4f7f\u5f97Self-Attention\u5728\u6355\u6349",(0,m.kt)("strong",{parentName:"p"},"\u957f\u8ddd\u79bb\u4f9d\u8d56"),"\u548c\u5904\u7406\u5e8f\u5217\u4e2d\u7684",(0,m.kt)("strong",{parentName:"p"},"\u5168\u5c40\u5173\u7cfb"),"\u65f6\u975e\u5e38\u6709\u6548\u3002"),(0,m.kt)("h3",{id:"self-attention\u7684\u6838\u5fc3\u601d\u60f3"},"Self-Attention\u7684\u6838\u5fc3\u601d\u60f3"),(0,m.kt)("p",null,"\u81ea\u6ce8\u610f\u529b\u673a\u5236\u7684\u6838\u5fc3\u601d\u60f3\u662f\u4e3a\u5e8f\u5217\u4e2d\u7684\u6bcf\u4e2a\u5411\u91cf\u5206\u914d\u4e00\u4e2a\u6743\u91cd\uff08\u5373\u6ce8\u610f\u529b\u5206\u6570\uff09\uff0c\u8be5\u6743\u91cd\u8868\u793a\u8be5\u5143\u7d20\u4e0e\u5176\u4ed6\u5143\u7d20\u7684\u5173\u8054\u5f3a\u5ea6\u3002\u8fd9\u4e2a\u6743\u91cd\u662f\u901a\u8fc7\u8ba1\u7b97\u8f93\u5165\u5e8f\u5217\u4e2d\u6240\u6709\u5143\u7d20\u4e0e\u5f53\u524d\u5143\u7d20\u4e4b\u95f4\u7684\u5173\u7cfb\u6765\u786e\u5b9a\u7684\u3002\u901a\u5e38\uff0c\u8fd9\u4e2a\u8ba1\u7b97\u8fc7\u7a0b\u4f7f\u7528\u4e00\u4e2a",(0,m.kt)("strong",{parentName:"p"},"\u53ef\u5b66\u4e60\u7684\u6743\u91cd\u77e9\u9635"),"\u6765\u5b8c\u6210\uff0c\u5373\u7528\u6765\u751f\u6210Key\uff0cQuery\u4ee5\u53caValue\u7684\u6743\u91cd\u77e9\u9635\u3002"),(0,m.kt)("h3",{id:"self-attention\u7684\u5b9e\u73b0"},"Self-Attention\u7684\u5b9e\u73b0"),(0,m.kt)("h4",{id:"\u5b9a\u4e49\u8f93\u5165"},"\u5b9a\u4e49\u8f93\u5165"),(0,m.kt)("p",null,"Self-Attention\u7684\u8f93\u5165\u662f\u5411\u91cf\u5e8f\u5217\uff0c\u5176\u5411\u91cf\u6570\u91cf\u662f\u4efb\u610f\u7684\uff0c\u8ba1\u7b97\u6bcf\u4e2a\u8f93\u5165\u5411\u91cf\u4e4b\u95f4\u7684\u6ce8\u610f\u529b\u5206\u6570\u3002\u5728\u672c\u4f8b\u4e2d\u8f93\u5165\u5411\u91cf\u4e2a\u6570\u4e3a3\uff0c\u540c\u65f6\u4e3a\u4e86\u7edf\u4e00\u6027\u5206\u6790\uff0c\u8ba1\u8f93\u5165\u5411\u91cf\u4e2a\u6570\u4e3a",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"b"),(0,m.kt)("mi",{parentName:"mrow"},"a"),(0,m.kt)("mi",{parentName:"mrow"},"t"),(0,m.kt)("mi",{parentName:"mrow"},"c"),(0,m.kt)("mi",{parentName:"mrow"},"h")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"batch")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6944em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"ba"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"t"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"c"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"h"))))),"\u4e2a\u3002"),(0,m.kt)("pre",null,(0,m.kt)("code",{parentName:"pre",className:"language-python"},"# define the input, which has a shape of (3, 4)\ninputs = [[1, 0, 1, 0], [0, 2, 0, 2], [1, 1, 1, 1]]\ninputs = torch.tensor(inputs, dtype=torch.float32)\n")),(0,m.kt)("p",null,(0,m.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_images1*hmvdDXrxhJsGhOQClQdkBA.png",alt:"img"})),(0,m.kt)("h4",{id:"\u521d\u59cb\u5316\u6743\u91cd\u77e9\u9635"},"\u521d\u59cb\u5316\u6743\u91cd\u77e9\u9635"),(0,m.kt)("p",null,"\u6bcf\u4e2a\u8f93\u5165\u5411\u91cf\u90fd\u4f1a\u4e0e3\u4e2a\u6743\u91cd\u5411\u91cf\u505a\u4e58\u6cd5\u5f97\u52303\u4e2a\u65b0\u7684\u5411\u91cf\uff0c\u5206\u522b\u4e3akey\uff0cquery\u4ee5\u53cavalue\u3002\u5728\u672c\u4f8b\u4e2d\u5c06\u65b0\u7684\u5411\u91cf\u7ef4\u5ea6\u8bbe\u4e3a3\uff0c\u7531\u4e8e\u8f93\u51fa\u7684k\u3001q\u3001v\u77e9\u9635\u5927\u5c0f\u5747\u4e3a",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mn",{parentName:"mrow"},"3"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mn",{parentName:"mrow"},"3"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"(3, 3)")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},"3"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"3"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"))))),"\uff0c\u56e0\u6b64\u6bcf\u4e2a\u6743\u91cd\u77e9\u9635\u7684\u5f62\u72b6\u5e94\u8be5\u662f",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mn",{parentName:"mrow"},"4"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mn",{parentName:"mrow"},"3"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"(4, 3)")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},"4"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"3"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"))))),"\u3002\u4e3a\u4e86\u7edf\u4e00\u6027\u5206\u6790\uff0c\u8ba1key\uff0cquery\u4ee5\u53cavalue\u5404\u5411\u91cf\u7ef4\u5ea6\u4e3a",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"n"),(0,m.kt)("mi",{parentName:"mrow"},"u"),(0,m.kt)("mi",{parentName:"mrow"},"m")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"num")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.4306em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"n"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"u"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"m"))))),"\u3002"),(0,m.kt)("blockquote",null,(0,m.kt)("p",{parentName:"blockquote"},"In a neural network setting, these weights are usually small numbers, initialised randomly using an appropriate random distribution like Gaussian, Xavier and Kaiming distributions. This initialisation is done once before training.")),(0,m.kt)("p",null,"\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\uff0c\u6743\u91cd\u901a\u5e38\u662f\u8f83\u5c0f\u7684\u6570\u5b57\uff0c\u901a\u8fc7\u9002\u5f53\u7684\u968f\u673a\u5206\u5e03\uff08\u6bd4\u5982\u9ad8\u65af\u3001Xavier\u548cKaiming\u5206\u5e03\uff09\u8fdb\u884c\u968f\u673a\u521d\u59cb\u5316\u3002"),(0,m.kt)("pre",null,(0,m.kt)("code",{parentName:"pre",className:"language-python"},"# define the weights for keys, queries and values\nw_key = torch.tensor([[0, 0, 1], [1, 1, 0], [0, 1, 0], [1, 1, 0]], dtype=torch.float32)\nw_query = torch.tensor([[1, 0, 1], [1, 0, 0], [0, 0, 1], [0, 1, 1]], dtype=torch.float32)\nw_value = torch.tensor([[0, 2, 0], [0, 3, 0], [1, 0, 3], [1, 1, 0]], dtype=torch.float32)\n")),(0,m.kt)("h4",{id:"\u8ba1\u7b97keyquery\u4ee5\u53cavalue"},"\u8ba1\u7b97key\uff0cquery\u4ee5\u53cavalue"),(0,m.kt)("pre",null,(0,m.kt)("code",{parentName:"pre",className:"language-python"},'# compute keys, queries and values\nkeys = inputs @ w_key\nqueries = inputs @ w_query\nvalues = inputs @ w_value\nprint("keys:\\n", keys) # (3, 3)\nprint("queries:\\n", queries) # (3, 3)\nprint("values:\\n", values) # (3, 3)\n')),(0,m.kt)("p",null,(0,m.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_imagesimage-20231106192612109.png",alt:"image-20231106192612109"})),(0,m.kt)("h4",{id:"\u8ba1\u7b97\u539f\u59cb\u7684\u6ce8\u610f\u529b\u5206\u6570"},"\u8ba1\u7b97\u539f\u59cb\u7684\u6ce8\u610f\u529b\u5206\u6570"),(0,m.kt)("p",null,"\u6211\u4eec\u8981\u4e3a\u6bcf\u4e00\u4e2a\u8f93\u5165\u5411\u91cf\u8ba1\u7b97\u5b83\u5bf9\u6240\u6709\u5411\u91cf\u7684\u6ce8\u610f\u529b\u5206\u6570\uff0c\u5305\u62ec\u5bf9\u81ea\u8eab\u7684\u3002"),(0,m.kt)("p",null,"\u539f\u59cb\u6ce8\u610f\u529b\u5206\u6570\u7684\u8ba1\u7b97\u65b9\u5f0f\u4e3a\uff0c\u4f7f\u7528\u81ea\u8eab\u7684query\u5206\u522b\u4e0e\u6240\u6709\u5411\u91cf\u7684key\u505a\u5185\u79ef\uff08dot product\uff09\uff0c\u5f97\u5230\u7684scalar\u6570\u91cf\u4e0e\u8f93\u5165\u5411\u91cf\u4e2a\u6570\u76f8\u540c\uff0c\u90fd\u4e3a",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"b"),(0,m.kt)("mi",{parentName:"mrow"},"a"),(0,m.kt)("mi",{parentName:"mrow"},"t"),(0,m.kt)("mi",{parentName:"mrow"},"c"),(0,m.kt)("mi",{parentName:"mrow"},"h")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"batch")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6944em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"ba"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"t"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"c"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"h"))))),"\uff0c\u5373scores\u77e9\u9635\u7684\u5f62\u72b6\u5e94\u4e3a",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"b"),(0,m.kt)("mi",{parentName:"mrow"},"a"),(0,m.kt)("mi",{parentName:"mrow"},"t"),(0,m.kt)("mi",{parentName:"mrow"},"c"),(0,m.kt)("mi",{parentName:"mrow"},"h"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"b"),(0,m.kt)("mi",{parentName:"mrow"},"a"),(0,m.kt)("mi",{parentName:"mrow"},"t"),(0,m.kt)("mi",{parentName:"mrow"},"c"),(0,m.kt)("mi",{parentName:"mrow"},"h"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"(batch, batch)")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"ba"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"t"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"c"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"h"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"ba"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"t"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"c"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"h"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"))))),"\u3002"),(0,m.kt)("pre",null,(0,m.kt)("code",{parentName:"pre",className:"language-python"},'# compute raw self-attention scores\nscores = queries @ keys.T\nprint("attention scores:\\n", scores)\n')),(0,m.kt)("p",null,"\u6ce8\u610f\uff0c\u4ee3\u7801\u4e2d\u63d0\u4f9b\u7684\u662f\u8ba1\u7b97\u6240\u6709\u5411\u91cf\u7684\u6ce8\u610f\u529b\u5206\u6570\uff0c\u800c\u56fe\u4e2d\u6f14\u793a\u7684\u53ea\u662f\u8ba1\u7b97input #1\u7684\u6ce8\u610f\u529b\u5206\u6570\u3002"),(0,m.kt)("p",null,(0,m.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_imagesimage-20231106193506733.png",alt:"image-20231106193506733"})),(0,m.kt)("h4",{id:"\u5bf9\u6bcf\u4e00\u4e2a\u5411\u91cf\u8ba1\u7b97\u51fa\u7684\u6ce8\u610f\u529b\u5206\u6570\u505asoftmax"},"\u5bf9\u6bcf\u4e00\u4e2a\u5411\u91cf\u8ba1\u7b97\u51fa\u7684\u6ce8\u610f\u529b\u5206\u6570\u505asoftmax"),(0,m.kt)("pre",null,(0,m.kt)("code",{parentName:"pre",className:"language-python"},'# normalize the attention score\nscore_softmax = F.softmax(scores, dim=-1) # select the highest dimension\nprint("attention scores after normalization:\\n", score_softmax)\n')),(0,m.kt)("p",null,(0,m.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_imagesimage-20231106195231034.png",alt:"image-20231106195231034"})),(0,m.kt)("h4",{id:"\u5c06\u6ce8\u610f\u529b\u5206\u6570\u4e0e\u5bf9\u5e94\u7684value\u76f8\u4e58"},"\u5c06\u6ce8\u610f\u529b\u5206\u6570\u4e0e\u5bf9\u5e94\u7684value\u76f8\u4e58"),(0,m.kt)("p",null,"\u6bcf\u4e00\u4e2a\u8f93\u5165\u5411\u91cf\u5bf9\u6240\u6709",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"b"),(0,m.kt)("mi",{parentName:"mrow"},"a"),(0,m.kt)("mi",{parentName:"mrow"},"t"),(0,m.kt)("mi",{parentName:"mrow"},"c"),(0,m.kt)("mi",{parentName:"mrow"},"h")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"batch")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6944em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"ba"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"t"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"c"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"h"))))),"\u4e2a\u5411\u91cf\u8ba1\u7b97\u5f97\u5230\u7684\u6ce8\u610f\u529b\u5206\u6570\uff0c\u90fd\u8981\u4e0e\u5176\u5bf9\u5e94\u7684value\u5411\u91cf\u76f8\u4e58\uff0c\u8ba1\u7b97\u52a0\u6743\u7684\u6ce8\u610f\u529b\u5206\u6570\u3002\u6700\u7ec8\u7684\u6ce8\u610f\u529b\u5206\u6570\u77e9\u9635\u7684\u5f62\u72b6\u5e94\u4e3a",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"b"),(0,m.kt)("mi",{parentName:"mrow"},"a"),(0,m.kt)("mi",{parentName:"mrow"},"t"),(0,m.kt)("mi",{parentName:"mrow"},"c"),(0,m.kt)("mi",{parentName:"mrow"},"h"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"n"),(0,m.kt)("mi",{parentName:"mrow"},"u"),(0,m.kt)("mi",{parentName:"mrow"},"m"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"(batch, num)")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"ba"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"t"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"c"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"h"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"n"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"u"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"m"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"))))),"\u3002"),(0,m.kt)("pre",null,(0,m.kt)("code",{parentName:"pre",className:"language-python"},'# compute the weighted values by doting score_softmax with values\n# please be advised, this is dot product\nweighted_values = values[:, None] * score_softmax.T[:, :, None]\nprint("weighted scores: \\n", weighted_values)\n')),(0,m.kt)("p",null,(0,m.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_imagesimage-20231106195316815.png",alt:"image-20231106195316815"})),(0,m.kt)("h4",{id:"\u52a0\u6743\u6ce8\u610f\u529b\u5206\u6570\u6c42\u548c"},"\u52a0\u6743\u6ce8\u610f\u529b\u5206\u6570\u6c42\u548c"),(0,m.kt)("p",null,"\u6700\u540e\u4e00\u6b65\uff0c\u5bf9\u4e8e\u6bcf\u4e2a\u5411\u91cf\u5f97\u5230\u7684\u52a0\u6743\u6ce8\u610f\u529b\u5206\u6570\u8fdb\u884c\u6c42\u548c\uff0c\u5f97\u5230\u7ef4\u5ea6\u4e3a",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"n"),(0,m.kt)("mi",{parentName:"mrow"},"u"),(0,m.kt)("mi",{parentName:"mrow"},"m")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"num")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.4306em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"n"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"u"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"m"))))),"\u7684\u6ce8\u610f\u529b\u5206\u6570\u5411\u91cf\uff0c\u8003\u8651\u5230\u6709",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"b"),(0,m.kt)("mi",{parentName:"mrow"},"a"),(0,m.kt)("mi",{parentName:"mrow"},"t"),(0,m.kt)("mi",{parentName:"mrow"},"c"),(0,m.kt)("mi",{parentName:"mrow"},"h")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"batch")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6944em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"ba"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"t"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"c"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"h"))))),"\u4e2a\u8f93\u5165\u5411\u91cf\uff0c\u56e0\u6b64\u6700\u7ec8\u7684\u6ce8\u610f\u529b\u5206\u6570\u77e9\u9635\u7684\u5f62\u72b6\u4e3a",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"b"),(0,m.kt)("mi",{parentName:"mrow"},"a"),(0,m.kt)("mi",{parentName:"mrow"},"t"),(0,m.kt)("mi",{parentName:"mrow"},"c"),(0,m.kt)("mi",{parentName:"mrow"},"h"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"n"),(0,m.kt)("mi",{parentName:"mrow"},"u"),(0,m.kt)("mi",{parentName:"mrow"},"m"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"(batch, num)")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"ba"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"t"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"c"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"h"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"n"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"u"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"m"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"))))),"\u3002"),(0,m.kt)("p",null,"\u6839\u636e\u63a8\u5bfc\uff0c\u663e\u7136\uff0c\u6700\u7ec8",(0,m.kt)("strong",{parentName:"p"},"Self-Attention\u7684\u8f93\u51fa\u5411\u91cf\u7ef4\u5ea6\u4e0evalue\u5411\u91cf\u7684\u7ef4\u5ea6\u76f8\u540c\uff0c\u8f93\u51fa\u5411\u91cf\u7684\u6570\u91cf\u4e0e\u8f93\u5165\u5411\u91cf\u7684\u6570\u91cf\u76f8\u540c"),"\u3002"),(0,m.kt)("pre",null,(0,m.kt)("code",{parentName:"pre",className:"language-python"},"# compute outputs\noutputs = weighted_values.sum(dim=0)\n")),(0,m.kt)("p",null,(0,m.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_imagesimage-20231106200506260.png",alt:"image-20231106200506260"})),(0,m.kt)("h4",{id:"\u603b\u7ed3"},"\u603b\u7ed3"),(0,m.kt)("blockquote",null,(0,m.kt)("p",{parentName:"blockquote"},"As mentioned in the above paragraph, we don\u2019t only use dot product to find relevance. But we scale it as well by a factor of the square root of key dimension ",(0,m.kt)("strong",{parentName:"p"},"dk"),". This helps in making sure that the dot-products between query and key don\u2019t grow too large for ",(0,m.kt)("strong",{parentName:"p"},"dk"),". If the dot product becomes too large then the softmax output will be very small. To avoid this, we scale the dot product.")),(0,m.kt)("p",null,"\u5728\u8ba1\u7b97dot product\u540e\uff0c\u4e3a\u4e86\u907f\u514d\u70b9\u79ef\u8fd0\u7b97\u7ecf\u8fc7softmax\u540e\u7684\u8f93\u51fa\u592a\u5c0f\uff0c\u5728\u70b9\u79ef\u540e\u9664\u4ee5key\u5411\u91cf\u7ef4\u5ea6\u7684\u5e73\u65b9\u6839\u6765\u8fdb\u884c\u7f29\u653e\u3002"),(0,m.kt)("div",{className:"math math-display"},(0,m.kt)("span",{parentName:"div",className:"katex-display"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mtable",{parentName:"semantics",width:"100%"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mrow",{parentName:"mtd"},(0,m.kt)("mi",{parentName:"mrow"},"A"),(0,m.kt)("mi",{parentName:"mrow"},"t"),(0,m.kt)("mi",{parentName:"mrow"},"t"),(0,m.kt)("mi",{parentName:"mrow"},"e"),(0,m.kt)("mi",{parentName:"mrow"},"n"),(0,m.kt)("mi",{parentName:"mrow"},"t"),(0,m.kt)("mi",{parentName:"mrow"},"i"),(0,m.kt)("mi",{parentName:"mrow"},"o"),(0,m.kt)("mi",{parentName:"mrow"},"n"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"Q"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"K"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"V"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("mtext",{parentName:"mrow",mathvariant:"italic"},"softmax"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mfrac",{parentName:"mrow"},(0,m.kt)("mrow",{parentName:"mfrac"},(0,m.kt)("mi",{parentName:"mrow"},"Q"),(0,m.kt)("msup",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msup"},"K"),(0,m.kt)("mi",{parentName:"msup"},"T"))),(0,m.kt)("msqrt",{parentName:"mfrac"},(0,m.kt)("msub",{parentName:"msqrt"},(0,m.kt)("mi",{parentName:"msub"},"d"),(0,m.kt)("mi",{parentName:"msub"},"k")))),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mi",{parentName:"mrow"},"V"))),(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mtext",{parentName:"mtd"},"(1)")))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"Attention(Q,K,V)=\\textit{softmax}(\\frac{QK^T}{\\sqrt{d_k}})V \\tag{1}")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"A"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"tt"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"e"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"n"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"t"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"i"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"o"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"n"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"Q"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.07153em"}},"K"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.22222em"}},"V"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"="),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"2.4483em",verticalAlign:"-0.93em"}}),(0,m.kt)("span",{parentName:"span",className:"mord text"},(0,m.kt)("span",{parentName:"span",className:"mord textit"},"softmax")),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mopen nulldelimiter"}),(0,m.kt)("span",{parentName:"span",className:"mfrac"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.5183em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.2528em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord sqrt"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.8572em"}},(0,m.kt)("span",{parentName:"span",className:"svg-align",style:{top:"-3em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord",style:{paddingLeft:"0.833em"}},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"d"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3361em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.03148em"}},"k")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))))),(0,m.kt)("span",{parentName:"span",style:{top:"-2.8172em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"hide-tail",style:{minWidth:"0.853em",height:"1.08em"}},(0,m.kt)("svg",{parentName:"span",xmlns:"http://www.w3.org/2000/svg",width:"400em",height:"1.08em",viewBox:"0 0 400000 1080",preserveAspectRatio:"xMinYMin slice"},(0,m.kt)("path",{parentName:"svg",d:"M95,702\nc-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14\nc0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54\nc44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10\ns173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429\nc69,-144,104.5,-217.7,106.5,-221\nl0 -0\nc5.3,-9.3,12,-14,20,-14\nH400000v40H845.2724\ns-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7\nc-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z\nM834 80h400000v40h-400000z"}))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.1828em"}},(0,m.kt)("span",{parentName:"span"}))))))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.23em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"frac-line",style:{borderBottomWidth:"0.04em"}})),(0,m.kt)("span",{parentName:"span",style:{top:"-3.677em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"Q"),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.07153em"}},"K"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.8413em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-3.063em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.13889em"}},"T"))))))))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.93em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"mclose nulldelimiter"})),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.22222em"}},"V")),(0,m.kt)("span",{parentName:"span",className:"tag"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"2.4483em",verticalAlign:"-0.93em"}}),(0,m.kt)("span",{parentName:"span",className:"mord text"},(0,m.kt)("span",{parentName:"span",className:"mord"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"1")),(0,m.kt)("span",{parentName:"span",className:"mord"},")"))))))),(0,m.kt)("p",null,(0,m.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_images1*tfYD93-NrGOTr6LG2WH3bQ.png",alt:"img"})),(0,m.kt)("h4",{id:"\u5b8c\u6574\u4ee3\u7801"},"\u5b8c\u6574\u4ee3\u7801"),(0,m.kt)("pre",null,(0,m.kt)("code",{parentName:"pre",className:"language-python"},'# simple code for Self-Attention\nimport torch\nimport torch.nn.functional as F\nimport numpy as np\nimport matplotlib.pyplot as plot\n\n# define the input, which has the shape of (3, 4)\ninputs = [[1, 0, 1, 0], [0, 2, 0, 2], [1, 1, 1, 1]]\ninputs = torch.tensor(inputs, dtype=torch.float32)\n\n# initialize the weights for keys, queries and values\nw_key = torch.tensor([[0, 0, 1], [1, 1, 0], [0, 1, 0], [1, 1, 0]], dtype=torch.float32)\nw_query = torch.tensor([[1, 0, 1], [1, 0, 0], [0, 0, 1], [0, 1, 1]], dtype=torch.float32)\nw_value = torch.tensor([[0, 2, 0], [0, 3, 0], [1, 0, 3], [1, 1, 0]], dtype=torch.float32)\n\n# compute keys, queries and values\nkeys = inputs @ w_key\nqueries = inputs @ w_query\nvalues = inputs @ w_value\nprint("keys:\\n", keys) # (3, 3)\nprint("queries:\\n", queries) # (3, 3)\nprint("values:\\n", values) # (3, 3)\n\n# compute raw self-attention score\nscores = queries @ keys.T\nprint("attention scores:\\n", scores)\n\n# normalize the attention score\nscore_softmax = F.softmax(scores, dim=-1) # select the highest dimension\nprint("attention scores after normalization:\\n", score_softmax)\n\n# compute the weighted values by doting score_softmax with values\n# please be advised, this is dot product\nweighted_values = values[:, None] * score_softmax.T[:, :, None]\nprint("weighted scores: \\n", weighted_values)\n\n# compute outputs\noutputs = weighted_values.sum(dim=0)\n\n')),(0,m.kt)("h2",{id:"multi-head-self-attention"},"Multi-Head Self-Attention"),(0,m.kt)("p",null," \u591a\u5934\u81ea\u6ce8\u610f\u529b\u673a\u5236\u662f\u5bf9\u81ea\u6ce8\u610f\u529b\u673a\u5236\u7684\u6269\u5c55\uff0c\u5047\u8bbe\u6269\u5c55\u6210\u4e3a",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"n")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"n")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.4306em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"n")))))," -head self-attention\uff0c\u5219\u5bf9\u6bcf\u4e2a\u8f93\u5165\u5411\u91cf\u751f\u6210\u5bf9\u5e94\u7684key\uff0cquery\u548cvalue\u540e\uff0c\u518d\u6b21\u4f7f\u7528",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"n")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"n")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.4306em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"n"))))),"\u4e2a\u53ef\u5b66\u4e60\u7684\u6743\u91cd\u77e9\u9635\u751f\u6210",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"n")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"n")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.4306em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"n"))))),"\u4e2a\u4e0d\u540c\u7684",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"k"),(0,m.kt)("mi",{parentName:"mrow"},"e"),(0,m.kt)("msup",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msup"},"y"),(0,m.kt)("mn",{parentName:"msup"},"0")),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"."),(0,m.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"."),(0,m.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"."),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"k"),(0,m.kt)("mi",{parentName:"mrow"},"e"),(0,m.kt)("msup",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msup"},"y"),(0,m.kt)("mrow",{parentName:"msup"},(0,m.kt)("mi",{parentName:"mrow"},"n"),(0,m.kt)("mo",{parentName:"mrow"},"\u2212"),(0,m.kt)("mn",{parentName:"mrow"},"1")))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"key^{0}, ..., key^{n-1}")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1.0085em",verticalAlign:"-0.1944em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03148em"}},"k"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"e"),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"y"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.8141em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-3.063em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"0"))))))))),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"..."),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03148em"}},"k"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"e"),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"y"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.8141em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-3.063em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"n"),(0,m.kt)("span",{parentName:"span",className:"mbin mtight"},"\u2212"),(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"1"))))))))))))),",",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"q"),(0,m.kt)("mi",{parentName:"mrow"},"u"),(0,m.kt)("mi",{parentName:"mrow"},"e"),(0,m.kt)("mi",{parentName:"mrow"},"r"),(0,m.kt)("msup",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msup"},"y"),(0,m.kt)("mn",{parentName:"msup"},"0")),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"."),(0,m.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"."),(0,m.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"."),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"q"),(0,m.kt)("mi",{parentName:"mrow"},"u"),(0,m.kt)("mi",{parentName:"mrow"},"e"),(0,m.kt)("mi",{parentName:"mrow"},"r"),(0,m.kt)("msup",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msup"},"y"),(0,m.kt)("mrow",{parentName:"msup"},(0,m.kt)("mi",{parentName:"mrow"},"n"),(0,m.kt)("mo",{parentName:"mrow"},"\u2212"),(0,m.kt)("mn",{parentName:"mrow"},"1")))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"query^{0}, ..., query^{n-1}")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1.0085em",verticalAlign:"-0.1944em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"q"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"u"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02778em"}},"er"),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"y"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.8141em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-3.063em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"0"))))))))),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"..."),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"q"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"u"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02778em"}},"er"),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"y"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.8141em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-3.063em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"n"),(0,m.kt)("span",{parentName:"span",className:"mbin mtight"},"\u2212"),(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"1"))))))))))))),"\u4ee5\u53ca",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"v"),(0,m.kt)("mi",{parentName:"mrow"},"a"),(0,m.kt)("mi",{parentName:"mrow"},"l"),(0,m.kt)("mi",{parentName:"mrow"},"u"),(0,m.kt)("msup",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msup"},"e"),(0,m.kt)("mn",{parentName:"msup"},"0")),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"."),(0,m.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"."),(0,m.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"."),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"v"),(0,m.kt)("mi",{parentName:"mrow"},"a"),(0,m.kt)("mi",{parentName:"mrow"},"l"),(0,m.kt)("mi",{parentName:"mrow"},"u"),(0,m.kt)("msup",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msup"},"e"),(0,m.kt)("mrow",{parentName:"msup"},(0,m.kt)("mi",{parentName:"mrow"},"n"),(0,m.kt)("mo",{parentName:"mrow"},"\u2212"),(0,m.kt)("mn",{parentName:"mrow"},"1")))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"value^{0}, ..., value^{n-1}")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1.0085em",verticalAlign:"-0.1944em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"v"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"a"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.01968em"}},"l"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"u"),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"e"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.8141em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-3.063em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"0"))))))))),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"..."),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"v"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"a"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.01968em"}},"l"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"u"),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"e"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.8141em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-3.063em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"n"),(0,m.kt)("span",{parentName:"span",className:"mbin mtight"},"\u2212"),(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"1"))))))))))))),"\u3002"),(0,m.kt)("p",null,"\u5728\u8ba1\u7b97attention score\u65f6\uff0c\u4f7f\u7528\u6bcf\u4e00\u4e2aquery\u67e5\u8be2\u5bf9\u5e94\u7684key\uff0c\u5373",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"q"),(0,m.kt)("mi",{parentName:"mrow"},"u"),(0,m.kt)("mi",{parentName:"mrow"},"e"),(0,m.kt)("mi",{parentName:"mrow"},"r"),(0,m.kt)("msup",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msup"},"y"),(0,m.kt)("mn",{parentName:"msup"},"0"))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"query^{0}")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1.0085em",verticalAlign:"-0.1944em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"q"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"u"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02778em"}},"er"),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"y"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.8141em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-3.063em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"0"))))))))))))),"\u53ea\u4e0e\u5176\u4ed6\u6bcf\u4e00\u4e2a\u8f93\u5165\u5411\u91cf\u7684",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"k"),(0,m.kt)("mi",{parentName:"mrow"},"e"),(0,m.kt)("msup",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msup"},"y"),(0,m.kt)("mn",{parentName:"msup"},"0"))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"key^{0}")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1.0085em",verticalAlign:"-0.1944em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03148em"}},"k"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"e"),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"y"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.8141em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-3.063em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"0"))))))))))))),"\u505adot product\u3002"),(0,m.kt)("p",null,(0,m.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_imagesimage-20231114190847109.png",alt:"image-20231114190847109"})),(0,m.kt)("h2",{id:"self-attention\u4e0ecnn\u7684\u5bf9\u6bd4"},"Self-Attention\u4e0eCNN\u7684\u5bf9\u6bd4"),(0,m.kt)("p",null,"Self-Attention\u53ef\u4ee5\u770b\u4f5c\u662f\u590d\u6742\u5316\u7684CNN\uff0cCNN\u53ea\u80fd\u5728\u611f\u53d7\u91ce\u8303\u56f4\u5185\u8003\u8651\u4e0a\u4e0b\u6587\u4fe1\u606f\uff0c\u800cSelf-Attention\u53ef\u4ee5\u81ea\u5df1\u5b66\u4e60\u611f\u53d7\u91ce\u3002"),(0,m.kt)("p",null,(0,m.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_imagesimage-20231114191518095.png",alt:"image-20231114191518095"})))}k.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/092909c8.ad73484e.js b/assets/js/092909c8.ad73484e.js new file mode 100644 index 000000000..b8b41eb70 --- /dev/null +++ b/assets/js/092909c8.ad73484e.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunknpy_notebook=self.webpackChunknpy_notebook||[]).push([[962],{3905:(a,e,t)=>{t.d(e,{Zo:()=>l,kt:()=>h});var n=t(7294);function r(a,e,t){return e in a?Object.defineProperty(a,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):a[e]=t,a}function s(a,e){var t=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable}))),t.push.apply(t,n)}return t}function m(a){for(var e=1;e=0||(r[t]=a[t]);return r}(a,e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(a);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(a,t)&&(r[t]=a[t])}return r}var i=n.createContext({}),o=function(a){var e=n.useContext(i),t=e;return a&&(t="function"==typeof a?a(e):m(m({},e),a)),t},l=function(a){var e=o(a.components);return n.createElement(i.Provider,{value:e},a.children)},c="mdxType",N={inlineCode:"code",wrapper:function(a){var e=a.children;return n.createElement(n.Fragment,{},e)}},k=n.forwardRef((function(a,e){var t=a.components,r=a.mdxType,s=a.originalType,i=a.parentName,l=p(a,["components","mdxType","originalType","parentName"]),c=o(t),k=r,h=c["".concat(i,".").concat(k)]||c[k]||N[k]||s;return t?n.createElement(h,m(m({ref:e},l),{},{components:t})):n.createElement(h,m({ref:e},l))}));function h(a,e){var t=arguments,r=e&&e.mdxType;if("string"==typeof a||r){var s=t.length,m=new Array(s);m[0]=k;var p={};for(var i in e)hasOwnProperty.call(e,i)&&(p[i]=e[i]);p.originalType=a,p[c]="string"==typeof a?a:r,m[1]=p;for(var o=2;o{t.r(e),t.d(e,{assets:()=>i,contentTitle:()=>m,default:()=>N,frontMatter:()=>s,metadata:()=>p,toc:()=>o});var n=t(7462),r=(t(7294),t(3905));const s={},m="\u4e00\u7ef4\u524d\u7f00\u548c\uff08\u5237\u51fa\u4e00\u9053\u5899\uff09",p={unversionedId:"Algorithms/\u9898\u89e3/\u4e00\u7ef4\u524d\u7f00\u548c\uff08\u5237\u51fa\u4e00\u9053\u5899\uff09",id:"Algorithms/\u9898\u89e3/\u4e00\u7ef4\u524d\u7f00\u548c\uff08\u5237\u51fa\u4e00\u9053\u5899\uff09",title:"\u4e00\u7ef4\u524d\u7f00\u548c\uff08\u5237\u51fa\u4e00\u9053\u5899\uff09",description:"\u5728\u4e00\u9762\u5f88\u957f\u7684\u5899\u58c1\u4e0a\uff0c\u5de5\u4eba\u4eec\u7528\u4e0d\u540c\u7684\u6cb9\u6f06\u53bb\u5237\u5899\uff0c\u7136\u800c\u53ef\u80fd\u6709\u4e9b\u5730\u65b9\u5237\u8fc7\u4ee5\u540e\u89c9\u5f97\u4e0d\u597d\u770b\uff0c\u4ed6\u4eec\u4f1a\u91cd\u65b0\u5237\u4e00\u4e0b\u3002\u6709\u4e9b\u90e8\u5206\u56e0\u4e3a\u91cd\u590d\u5237\u4e86\u5f88\u591a\u6b21\u8986\u76d6\u4e86\u5f88\u591a\u5c42\u6cb9\u6f06\uff0c\u5c0f\u8bfa\u5f88\u597d\u5947\u90a3\u4e9b\u5730\u65b9\u88ab\u5237\u8fc7\u591a\u5c11\u79cd\u989c\u8272\u7684\u6cb9\u6f06\u3002",source:"@site/docs/Algorithms/4-\u9898\u89e3/\u4e00\u7ef4\u524d\u7f00\u548c\uff08\u5237\u51fa\u4e00\u9053\u5899\uff09.md",sourceDirName:"Algorithms/4-\u9898\u89e3",slug:"/Algorithms/\u9898\u89e3/\u4e00\u7ef4\u524d\u7f00\u548c\uff08\u5237\u51fa\u4e00\u9053\u5899\uff09",permalink:"/docs/Algorithms/\u9898\u89e3/\u4e00\u7ef4\u524d\u7f00\u548c\uff08\u5237\u51fa\u4e00\u9053\u5899\uff09",draft:!1,tags:[],version:"current",frontMatter:{},sidebar:"algorithms",previous:{title:"\u673a\u8bd5\u6280\u5de7\u4e0eSTL",permalink:"/docs/Algorithms/\u673a\u8bd5\u6280\u5de7\u4e0eSTL"},next:{title:"\u53cd\u5e8f\u8f93\u51fa",permalink:"/docs/Algorithms/\u9898\u89e3/\u53cd\u5e8f\u8f93\u51fa"}},i={},o=[{value:"\u53c2\u8003\u4ee3\u7801",id:"\u53c2\u8003\u4ee3\u7801",level:2},{value:"\u9898\u89e3",id:"\u9898\u89e3",level:2}],l={toc:o},c="wrapper";function N(a){let{components:e,...t}=a;return(0,r.kt)(c,(0,n.Z)({},l,t,{components:e,mdxType:"MDXLayout"}),(0,r.kt)("h1",{id:"\u4e00\u7ef4\u524d\u7f00\u548c\u5237\u51fa\u4e00\u9053\u5899"},"\u4e00\u7ef4\u524d\u7f00\u548c\uff08\u5237\u51fa\u4e00\u9053\u5899\uff09"),(0,r.kt)("admonition",{type:"tip"},(0,r.kt)("p",{parentName:"admonition"},"\u5728\u4e00\u9762\u5f88\u957f\u7684\u5899\u58c1\u4e0a\uff0c\u5de5\u4eba\u4eec\u7528\u4e0d\u540c\u7684\u6cb9\u6f06\u53bb\u5237\u5899\uff0c\u7136\u800c\u53ef\u80fd\u6709\u4e9b\u5730\u65b9\u5237\u8fc7\u4ee5\u540e\u89c9\u5f97\u4e0d\u597d\u770b\uff0c\u4ed6\u4eec\u4f1a\u91cd\u65b0\u5237\u4e00\u4e0b\u3002\u6709\u4e9b\u90e8\u5206\u56e0\u4e3a\u91cd\u590d\u5237\u4e86\u5f88\u591a\u6b21\u8986\u76d6\u4e86\u5f88\u591a\u5c42\u6cb9\u6f06\uff0c\u5c0f\u8bfa\u5f88\u597d\u5947\u90a3\u4e9b\u5730\u65b9\u88ab\u5237\u8fc7\u591a\u5c11\u79cd\u989c\u8272\u7684\u6cb9\u6f06\u3002"),(0,r.kt)("p",{parentName:"admonition"},"\u8f93\u5165\u63cf\u8ff0\uff1a"),(0,r.kt)("pre",{parentName:"admonition"},(0,r.kt)("code",{parentName:"pre"},"\u82e5\u5e72\u884c\u8f93\u5165\uff0c\u6bcf\u884c\u4e24\u4e2a\u6570\u5b57B[i],E[i](0<=B[i]<=E[i]<=200000)\u8868\u793a\u8fd9\u6b21\u5237\u7684\u5899\u58c1\u662f\u54ea\u4e00\u6bb5\n\uff08\u5047\u8bbe\u6bcf\u6b21\u5237\u7684\u65f6\u5019\u6cb9\u6f06\u989c\u8272\u90fd\u548c\u4e4b\u524d\u7684\u4e0d\u540c\uff09\uff0c\u4ee50 0\u7ed3\u675f\n\u53c8\u82e5\u5e72\u884c\u8f93\u5165\uff0c\u6bcf\u884c\u4e24\u4e2a\u6570\u5b57begin[i],end[i]\uff080<=begin[i]<=end[i]<=200000\uff09\u8868\u793a\u5c0f\u8bfa\u8be2\u95ee\u7684\u6bb5\uff0c\n\u4ee50 0\u7ed3\u675f\n")),(0,r.kt)("p",{parentName:"admonition"},"\u8f93\u51fa\u63cf\u8ff0:"),(0,r.kt)("pre",{parentName:"admonition"},(0,r.kt)("code",{parentName:"pre"},"\u5bf9\u4e8e\u6bcf\u4e2a\u5c0f\u8bfa\u7684\u8be2\u95ee\u8f93\u51fa(end[i]-begin[i]+1)\u884c,\u8868\u793a\u5bf9\u5e94\u8be2\u95ee\u6bb5\u7684\u6bcf\u4e2a\u70b9\u88ab\u591a\u5c11\u79cd\u989c\u8272\u7684\u6cb9\u6f06\u8986\u76d6\u8fc7\u3002\n"))),(0,r.kt)("h2",{id:"\u53c2\u8003\u4ee3\u7801"},"\u53c2\u8003\u4ee3\u7801"),(0,r.kt)("pre",null,(0,r.kt)("code",{parentName:"pre",className:"language-c++"},'#include \n\nusing namespace std;\n\nint main()\n{\n vector colors(200001, 0);\n\n int B, E;\n while (scanf("%d %d", &B, &E))\n {\n if (B == 0 && E == 0)\n {\n break;\n }\n colors[B]++; // \u5237\u5899\u8d77\u70b9\u6807\u8bb0\n colors[E + 1]--; // \u5237\u5899\u7ec8\u70b9\u6807\u8bb0\n }\n\n // \u8ba1\u7b97\u524d\u7f00\u548c\n for (int i = 1; i < colors.size(); i++)\n {\n colors[i] += colors[i - 1];\n }\n\n int begin, end;\n while (scanf("%d %d", &begin, &end))\n {\n if (begin == 0 && end == 0)\n {\n break;\n }\n for (int i = begin; i <= end; i++)\n {\n printf("%d\\n", colors[i]);\n }\n }\n\n return 0;\n}\n\n')),(0,r.kt)("h2",{id:"\u9898\u89e3"},"\u9898\u89e3"),(0,r.kt)("p",null,"\u4f7f\u7528",(0,r.kt)("strong",{parentName:"p"},"\u524d\u7f00\u548c"),"\u601d\u60f3\u7b80\u5316\u65f6\u95f4\u590d\u6742\u5ea6\uff0c\u8bbe\u8ba1\u524d\u7f00\u548c\u6570\u7ec4\uff0c\u4f7f\u8f93\u51fa\u7684\u6570\u7ec4\u4e2d\u5143\u7d20\u7684\u503c\u4ee3\u8868\u5176\u5bf9\u5e94\u8282\u70b9\u88ab\u5237\u7684\u6b21\u6570\u3002"),(0,r.kt)("p",null,"\u9996\u5148\u521d\u59cb\u5316\u524d\u7f00\u548c\u6570\u7ec4\uff0c\u4f7f\u6bcf\u4e00\u4e2a\u5143\u7d20\u7b49\u4e8e\u4e3a0\u3002"),(0,r.kt)("p",null,"\u8be5\u9898\u7684",(0,r.kt)("strong",{parentName:"p"},"\u5de7\u5999\u4e4b\u5904"),"\u5c31\u5728\u4e8e\uff1a\u5bf9\u4e8e\u6bcf\u4e00\u4e2a\u8f93\u5165\u7684\u7d22\u5f15B\u4e0eE\uff0cB\u4f5c\u4e3a\u5f00\u59cb\u5237\u7684\u8282\u70b9\u7d22\u5f15\u4ee4\u524d\u7f00\u548c\u6570\u7ec4\u4e2d\u5bf9\u5e94\u5143\u7d20\u7684\u503c",(0,r.kt)("span",{parentName:"p",className:"math math-inline"},(0,r.kt)("span",{parentName:"span",className:"katex"},(0,r.kt)("span",{parentName:"span",className:"katex-mathml"},(0,r.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,r.kt)("semantics",{parentName:"math"},(0,r.kt)("mrow",{parentName:"semantics"},(0,r.kt)("mo",{parentName:"mrow"},"+"),(0,r.kt)("mn",{parentName:"mrow"},"1")),(0,r.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"+1")))),(0,r.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,r.kt)("span",{parentName:"span",className:"base"},(0,r.kt)("span",{parentName:"span",className:"strut",style:{height:"0.7278em",verticalAlign:"-0.0833em"}}),(0,r.kt)("span",{parentName:"span",className:"mord"},"+"),(0,r.kt)("span",{parentName:"span",className:"mord"},"1"))))),"\uff0cE+1\u4f5c\u4e3a\u5237\u5899\u7ed3\u675f\u7684\u4e0b\u4e00\u4e2a\u8282\u70b9\u7684\u7d22\u5f15\u4ee4\u5bf9\u5e94\u7684\u503c",(0,r.kt)("span",{parentName:"p",className:"math math-inline"},(0,r.kt)("span",{parentName:"span",className:"katex"},(0,r.kt)("span",{parentName:"span",className:"katex-mathml"},(0,r.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,r.kt)("semantics",{parentName:"math"},(0,r.kt)("mrow",{parentName:"semantics"},(0,r.kt)("mo",{parentName:"mrow"},"\u2212"),(0,r.kt)("mn",{parentName:"mrow"},"1")),(0,r.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"-1")))),(0,r.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,r.kt)("span",{parentName:"span",className:"base"},(0,r.kt)("span",{parentName:"span",className:"strut",style:{height:"0.7278em",verticalAlign:"-0.0833em"}}),(0,r.kt)("span",{parentName:"span",className:"mord"},"\u2212"),(0,r.kt)("span",{parentName:"span",className:"mord"},"1"))))),"\u3002\u8fd9\u6837\u5728\u6240\u6709\u8f93\u5165\u7ed3\u675f\u540e\u7684\u8ba1\u7b97\u524d\u7f00\u548c\u9636\u6bb5\uff0c\u5728\u6bcf\u4e00\u4e2a\u503c\u4e3a",(0,r.kt)("span",{parentName:"p",className:"math math-inline"},(0,r.kt)("span",{parentName:"span",className:"katex"},(0,r.kt)("span",{parentName:"span",className:"katex-mathml"},(0,r.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,r.kt)("semantics",{parentName:"math"},(0,r.kt)("mrow",{parentName:"semantics"},(0,r.kt)("mo",{parentName:"mrow",stretchy:"false"},"["),(0,r.kt)("mn",{parentName:"mrow"},"1"),(0,r.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,r.kt)("mo",{parentName:"mrow"},"\u2212"),(0,r.kt)("mn",{parentName:"mrow"},"1"),(0,r.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,r.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"[1, -1)")))),(0,r.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,r.kt)("span",{parentName:"span",className:"base"},(0,r.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,r.kt)("span",{parentName:"span",className:"mopen"},"["),(0,r.kt)("span",{parentName:"span",className:"mord"},"1"),(0,r.kt)("span",{parentName:"span",className:"mpunct"},","),(0,r.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,r.kt)("span",{parentName:"span",className:"mord"},"\u2212"),(0,r.kt)("span",{parentName:"span",className:"mord"},"1"),(0,r.kt)("span",{parentName:"span",className:"mclose"},")"))))),"\u7684\u7d22\u5f15\u533a\u95f4\u4e2d\u7684\u5143\u7d20\u503c\u90fd\u4f1a\u52a01\uff0c\u800c\u5bf9\u4e8e\u67d0\u6b21\u5237\u6f06\u7ec8\u70b9E\u7684\u4e0b\u4e00\u4e2a\u7d22\u5f15\u4e3aE+1\u7684\u5143\u7d20\u503c\u7531\u4e8e",(0,r.kt)("span",{parentName:"p",className:"math math-inline"},(0,r.kt)("span",{parentName:"span",className:"katex"},(0,r.kt)("span",{parentName:"span",className:"katex-mathml"},(0,r.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,r.kt)("semantics",{parentName:"math"},(0,r.kt)("mrow",{parentName:"semantics"},(0,r.kt)("mo",{parentName:"mrow"},"\u2212"),(0,r.kt)("mn",{parentName:"mrow"},"1")),(0,r.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"-1")))),(0,r.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,r.kt)("span",{parentName:"span",className:"base"},(0,r.kt)("span",{parentName:"span",className:"strut",style:{height:"0.7278em",verticalAlign:"-0.0833em"}}),(0,r.kt)("span",{parentName:"span",className:"mord"},"\u2212"),(0,r.kt)("span",{parentName:"span",className:"mord"},"1"))))),"\u800c\u62b5\u6d88\u5f71\u54cd\uff08\u81ea\u8eab\u503c\u4e3a",(0,r.kt)("span",{parentName:"p",className:"math math-inline"},(0,r.kt)("span",{parentName:"span",className:"katex"},(0,r.kt)("span",{parentName:"span",className:"katex-mathml"},(0,r.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,r.kt)("semantics",{parentName:"math"},(0,r.kt)("mrow",{parentName:"semantics"},(0,r.kt)("mo",{parentName:"mrow"},"\u2212"),(0,r.kt)("mn",{parentName:"mrow"},"1")),(0,r.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"-1")))),(0,r.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,r.kt)("span",{parentName:"span",className:"base"},(0,r.kt)("span",{parentName:"span",className:"strut",style:{height:"0.7278em",verticalAlign:"-0.0833em"}}),(0,r.kt)("span",{parentName:"span",className:"mord"},"\u2212"),(0,r.kt)("span",{parentName:"span",className:"mord"},"1"))))),"\u52a0\u4e0a\u4e4b\u524d\u5143\u7d20\u6240\u7d2f\u79ef\u76841\u800c\u5f52\u96f6\uff09\uff0c\u6b64\u65f6\u6570\u7ec4\u4e2d\u5143\u7d20\u7684\u503c\u624d\u4ee3\u8868\u5176\u5bf9\u5e94\u8282\u70b9\u88ab\u5237\u7684\u6b21\u6570\u3002"),(0,r.kt)("p",null,"\u5173\u4e8e",(0,r.kt)("strong",{parentName:"p"},"\u8d85\u65f6"),'\uff0c\u53ef\u4ee5\u5728\u51fd\u6570\u4e2d\u52a0\u5165\u4ee5\u4e0b\u4ee3\u7801\u6d88\u9664\u6d41\u64cd\u4f5c\u7684\u7f13\u51b2\u533a\uff0c\u5e76\u4f7f\u7528"\\n"\u4ee3\u66ffendl\u3002'),(0,r.kt)("pre",null,(0,r.kt)("code",{parentName:"pre",className:"language-c++"},"ios::sync_with_stdio(false);\n")))}N.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/0ed19e66.e9d44f71.js b/assets/js/0ed19e66.e9d44f71.js new file mode 100644 index 000000000..dd0616d76 --- /dev/null +++ b/assets/js/0ed19e66.e9d44f71.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunknpy_notebook=self.webpackChunknpy_notebook||[]).push([[8770],{3905:(a,e,t)=>{t.d(e,{Zo:()=>i,kt:()=>o});var s=t(7294);function n(a,e,t){return e in a?Object.defineProperty(a,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):a[e]=t,a}function m(a,e){var t=Object.keys(a);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(a);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable}))),t.push.apply(t,s)}return t}function p(a){for(var e=1;e=0||(n[t]=a[t]);return n}(a,e);if(Object.getOwnPropertySymbols){var m=Object.getOwnPropertySymbols(a);for(s=0;s=0||Object.prototype.propertyIsEnumerable.call(a,t)&&(n[t]=a[t])}return n}var N=s.createContext({}),l=function(a){var e=s.useContext(N),t=e;return a&&(t="function"==typeof a?a(e):p(p({},e),a)),t},i=function(a){var e=l(a.components);return s.createElement(N.Provider,{value:e},a.children)},k="mdxType",c={inlineCode:"code",wrapper:function(a){var e=a.children;return s.createElement(s.Fragment,{},e)}},h=s.forwardRef((function(a,e){var t=a.components,n=a.mdxType,m=a.originalType,N=a.parentName,i=r(a,["components","mdxType","originalType","parentName"]),k=l(t),h=n,o=k["".concat(N,".").concat(h)]||k[h]||c[h]||m;return t?s.createElement(o,p(p({ref:e},i),{},{components:t})):s.createElement(o,p({ref:e},i))}));function o(a,e){var t=arguments,n=e&&e.mdxType;if("string"==typeof a||n){var m=t.length,p=new Array(m);p[0]=h;var r={};for(var N in e)hasOwnProperty.call(e,N)&&(r[N]=e[N]);r.originalType=a,r[k]="string"==typeof a?a:n,p[1]=r;for(var l=2;l{t.r(e),t.d(e,{assets:()=>N,contentTitle:()=>p,default:()=>c,frontMatter:()=>m,metadata:()=>r,toc:()=>l});var s=t(7462),n=(t(7294),t(3905));const m={},p="\u6269\u6563\u6a21\u578b\uff08Diffusion Model\uff09",r={unversionedId:"Deep-Learning/\u5927\u6a21\u578b/Diffusion-Model",id:"Deep-Learning/\u5927\u6a21\u578b/Diffusion-Model",title:"\u6269\u6563\u6a21\u578b\uff08Diffusion Model\uff09",description:"\u5728\u4ee5\u524d\u7684\u6587\u7ae0\u56fe\u50cf\u751f\u6210\u6a21\u578b\u4e2d\u5df2\u7ecf\u5927\u6982\u4ecb\u7ecd\u4e86\u76ee\u524dSOTA\u7684\u56fe\u50cf\u751f\u6210\u6a21\u578b\u7684\u5171\u540c\u70b9\uff0c\u5e76\u521d\u6b65\u4e86\u89e3\u4e86Diffusion Model\uff0c\u5728\u8fd9\u7bc7\u6587\u7ae0\u4e2d\u5c06\u8be6\u7ec6\u8bb2\u89e3\u6269\u6563\u6a21\u578b\u7684\u6570\u5b66\u539f\u7406\u7b49\u3002",source:"@site/docs/Deep-Learning/5-\u5927\u6a21\u578b/6-Diffusion-Model.md",sourceDirName:"Deep-Learning/5-\u5927\u6a21\u578b",slug:"/Deep-Learning/\u5927\u6a21\u578b/Diffusion-Model",permalink:"/docs/Deep-Learning/\u5927\u6a21\u578b/Diffusion-Model",draft:!1,tags:[],version:"current",sidebarPosition:6,frontMatter:{},sidebar:"deep_learning",previous:{title:"\u751f\u6210\u5f0f\u5bf9\u6297\u7f51\u7edc\uff08GAN\uff09",permalink:"/docs/Deep-Learning/\u5927\u6a21\u578b/GAN"},next:{title:"\u672c\u79d1\u6bd5\u4e1a\u8bba\u6587\uff1a\u57fa\u4e8e Prompt Learning \u7684\u89c6\u89c9-\u8bed\u8a00\u5927\u6a21\u578b\u5728\u56fe\u50cf\u751f\u6210\u4e2d\u7684\u5e94\u7528\u4e0e\u7814\u7a76",permalink:"/docs/Deep-Learning/\u5927\u6a21\u578b/Prompt Learning/Undergraduate-Dissertation"}},N={},l=[{value:"\u57fa\u672c\u6982\u5ff5",id:"\u57fa\u672c\u6982\u5ff5",level:2},{value:"\u8bad\u7ec3\u8fc7\u7a0b",id:"\u8bad\u7ec3\u8fc7\u7a0b",level:3},{value:"\u63a8\u7406\u8fc7\u7a0b",id:"\u63a8\u7406\u8fc7\u7a0b",level:3}],i={toc:l},k="wrapper";function c(a){let{components:e,...t}=a;return(0,n.kt)(k,(0,s.Z)({},i,t,{components:e,mdxType:"MDXLayout"}),(0,n.kt)("h1",{id:"\u6269\u6563\u6a21\u578bdiffusion-model"},"\u6269\u6563\u6a21\u578b\uff08Diffusion Model\uff09"),(0,n.kt)("admonition",{type:"tip"},(0,n.kt)("p",{parentName:"admonition"},"\u5728\u4ee5\u524d\u7684\u6587\u7ae0",(0,n.kt)("a",{parentName:"p",href:"/docs/Deep-Learning/%E5%A4%A7%E6%A8%A1%E5%9E%8B/Image-Generation-Models"},"\u56fe\u50cf\u751f\u6210\u6a21\u578b"),"\u4e2d\u5df2\u7ecf\u5927\u6982\u4ecb\u7ecd\u4e86\u76ee\u524dSOTA\u7684\u56fe\u50cf\u751f\u6210\u6a21\u578b\u7684\u5171\u540c\u70b9\uff0c\u5e76\u521d\u6b65\u4e86\u89e3\u4e86Diffusion Model\uff0c\u5728\u8fd9\u7bc7\u6587\u7ae0\u4e2d\u5c06\u8be6\u7ec6\u8bb2\u89e3\u6269\u6563\u6a21\u578b\u7684\u6570\u5b66\u539f\u7406\u7b49\u3002")),(0,n.kt)("h2",{id:"\u57fa\u672c\u6982\u5ff5"},"\u57fa\u672c\u6982\u5ff5"),(0,n.kt)("p",null,"\u9996\u5148\u56de\u987e\u4e00\u4e0b\u6269\u6563\u6a21\u578b\u7684\u57fa\u672c\u6982\u5ff5\u548c\u751f\u6210\u8fc7\u7a0b\uff0c\u53ef\u4ee5\u5927\u6982\u5206\u4e3a\u4e24\u6b65\uff1a"),(0,n.kt)("ol",null,(0,n.kt)("li",{parentName:"ol"},(0,n.kt)("p",{parentName:"li"},"Forward Process\uff1a\u5bf9\u8bad\u7ec3\u96c6\u4e2d\u7684\u56fe\u7247\u4e0d\u65ad\u52a0\u5165\u4e0e\u56fe\u7247shape\u76f8\u540c\u7684\u3001\u4ece\u67d0\u968f\u673a\u5206\u5e03\u4e2dsample\u51fa\u7684\u566a\u58f0\uff0c\u76f4\u81f3\u56fe\u7247\u53ef\u4ee5\u88ab\u8ba4\u4e3a\u662f\u4ece\u8be5\u968f\u673a\u5206\u5e03\u4e2dsample\u51fa\u7684\u77e9\u9635\u3002"),(0,n.kt)("p",{parentName:"li"},"Forward Process\u53c8\u53eb\u505aDiffusion Process\uff0c\u5728\u8fd9\u4e00\u6b65\u4e2d\u4ea7\u751f\u7684\u566a\u58f0-\u52a0\u5165\u566a\u58f0\u7684\u56fe\u50cf\u5bf9\u53ef\u4ee5\u7528\u6765\u8bad\u7ec3Noise Predictor\uff0c\u5373\u4ece\u6709\u566a\u58f0\u7684\u56fe\u50cf\u4e2d\u9884\u6d4b\u51fa\u5176\u4e2d\u7684\u566a\u58f0\uff0c\u518d\u4ece\u8f93\u5165\u4e2d\u51cf\u53bb\u566a\u58f0\u5f97\u5230\u964d\u566a\u540e\u7684\u56fe\u7247\u3002"),(0,n.kt)("admonition",{parentName:"li",title:"\u56fe\u50cf\u751f\u6210\u7684\u539f\u7406",type:"important"},(0,n.kt)("p",{parentName:"admonition"},"\u8fd9\u4e00\u6b65\u7684\u76ee\u7684\u4e5f\u540c\u6837\u5728\u4e4b\u524d\u7684\u6587\u7ae0",(0,n.kt)("a",{parentName:"p",href:"/docs/Deep-Learning/%E5%A4%A7%E6%A8%A1%E5%9E%8B/Image-Generation-Models"},"\u56fe\u50cf\u751f\u6210\u6a21\u578b"),"\u4e2d\u63d0\u5230\u8fc7\uff1a\u7531\u4e8e\u6839\u636e\u6587\u5b57prompt\u671f\u5f85\u751f\u6210\u7684\u56fe\u50cf\u5e76\u4e0d\u662f\u56fa\u5b9a\u7684\uff0c\u53ef\u4ee5\u8ba4\u4e3a\u751f\u6210\u7684\u56fe\u7247\u5728\u76ee\u6807\u57df\uff08Target Domain\uff09\u7b26\u5408\u67d0\u79cd\u5206\u5e03\u3002\u56e0\u6b64\u76ee\u524d\u7684SOTA\u6a21\u578b\u9664\u4e86\u5c06\u6587\u5b57prompt\u4f5c\u4e3a\u8f93\u5165\uff0c\u8fd8\u4ece\u67d0\u968f\u673a\u5206\u5e03\u4e2dsample\u51fa\u56fe\u7247shape\u7684\u968f\u673a\u5411\u91cf\uff08\u77e9\u9635\uff09\u4f5c\u4e3a\u8f93\u5165\uff0c\u671f\u5f85\u6a21\u578b\u6839\u636eprompt\u5c06\u6e90\u57df\uff08Source Domain\uff09\u8f93\u5165\u7684\u968f\u673a\u5411\u91cf\u6620\u5c04\u5230\u76ee\u6807\u57df\u7684\u5206\u5e03\uff0c\u751f\u6210\u5bf9\u5e94\u7684\u56fe\u7247\u3002"))),(0,n.kt)("li",{parentName:"ol"},(0,n.kt)("p",{parentName:"li"},"Reverse Process\uff1a\u4f7f\u7528Diffusion Process\u8bad\u7ec3\u7684Noise Predictor\uff0c\u6839\u636e\u6587\u5b57Prompt\u5bf9\u4ece\u968f\u673a\u5206\u5e03\u4e2dsample\u51fa\u7684\u56fe\u7247\u5927\u5c0f\u7684\u566a\u58f0\u56fe\u7247\u8fdb\u884c\u964d\u566a\uff0c\u5f97\u5230\u539f\u56fe\u3002"))),(0,n.kt)("p",null,(0,n.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_imagesimage-20231202192659531.png",alt:"image-20231202192659531"})),(0,n.kt)("p",null,"\u503c\u5f97\u6ce8\u610f\u7684\u662f\uff0c\u53d8\u5206\u81ea\u7f16\u7801\u5668\uff08Variational Auto-Encoder, abbr. VAE\uff09\u4e0eDiffusion Model\u975e\u5e38\u76f8\u4f3c\uff1aVAE\u5bf9\u8bad\u7ec3\u96c6\u4e2d\u7684\u539f\u59cb\u56fe\u50cf\u4f7f\u7528Encoder\u5c06\u5176\u53d8\u6362\u4e3a\u67d0\u79cdLatent Representation\uff0c\u8fd9\u79cdLatent Representation\u7684\u5206\u5e03\u4e5f\u662f\u7b26\u5408\u67d0\u79cd\u968f\u673a\u5206\u5e03\u7684\uff0cVAE\u518d\u901a\u8fc7Decoder\u5c06\u671f\u5f85\u751f\u6210\u7684\u76ee\u6807\u57df\u56fe\u50cf\u8fd8\u539f\u51fa\u6765\u3002"),(0,n.kt)("p",null,(0,n.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_imagesimage-20231202222644684.png",alt:"image-20231202222644684"})),(0,n.kt)("p",null,"\u5728\u4e0b\u9762\u7684\u6587\u7ae0\u4e2d\u6211\u4eec\u4e5f\u4f1a\u5b66\u4e60\u4e00\u4e0bVAE\u7684\u6570\u5b66\u539f\u7406\uff0c\u4eceVAE\u5230Diffusion Model\u7684\u5177\u4f53\u6570\u5b66\u63a8\u5bfc\uff0c\u53ef\u4ee5\u53c2\u8003\u80e1\u8001\u5e08\u63a8\u8350\u7684\u8bba\u6587",(0,n.kt)("a",{parentName:"p",href:"https://arxiv.org/abs/2208.11970"},"Understanding Diffusion Models: A Unified Perspective"),"\u3002"),(0,n.kt)("p",null,"\u4e0b\u9762\u6211\u4eec\u4ee5",(0,n.kt)("a",{parentName:"p",href:"https://arxiv.org/pdf/2006.11239.pdf"},"DDPM\u8bba\u6587"),"\u4e2d\u7684\u539f\u56fe\u6765\u5206\u6790DDPM\u7684\u8bad\u7ec3\u4e0e\u63a8\u7406\u8fc7\u7a0b\u3002"),(0,n.kt)("p",null,(0,n.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_imagesimage-20231202232526449.png",alt:"image-20231202232526449"})),(0,n.kt)("h3",{id:"\u8bad\u7ec3\u8fc7\u7a0b"},"\u8bad\u7ec3\u8fc7\u7a0b"),(0,n.kt)("ol",null,(0,n.kt)("li",{parentName:"ol"},(0,n.kt)("p",{parentName:"li"},"\u5faa\u73af\u5f00\u59cb\uff0c\u91cd\u590d\u4ee5\u4e0b\u6b65\u9aa4\uff1b")),(0,n.kt)("li",{parentName:"ol"},(0,n.kt)("p",{parentName:"li"},"\u9996\u5148\u4ece\u6570\u636e\u96c6\u4e2dsample\u51fa\u539f\u59cb\u56fe\u50cf",(0,n.kt)("span",{parentName:"p",className:"math math-inline"},(0,n.kt)("span",{parentName:"span",className:"katex"},(0,n.kt)("span",{parentName:"span",className:"katex-mathml"},(0,n.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,n.kt)("semantics",{parentName:"math"},(0,n.kt)("mrow",{parentName:"semantics"},(0,n.kt)("msub",{parentName:"mrow"},(0,n.kt)("mi",{parentName:"msub",mathvariant:"bold"},"x"),(0,n.kt)("mn",{parentName:"msub"},"0"))),(0,n.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"\\mathbf{x}_0")))),(0,n.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,n.kt)("span",{parentName:"span",className:"base"},(0,n.kt)("span",{parentName:"span",className:"strut",style:{height:"0.5944em",verticalAlign:"-0.15em"}}),(0,n.kt)("span",{parentName:"span",className:"mord"},(0,n.kt)("span",{parentName:"span",className:"mord mathbf"},"x"),(0,n.kt)("span",{parentName:"span",className:"msupsub"},(0,n.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,n.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,n.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,n.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,n.kt)("span",{parentName:"span",className:"mord mtight"},"0")))),(0,n.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,n.kt)("span",{parentName:"span"})))))))))),"\uff1b")),(0,n.kt)("li",{parentName:"ol"},(0,n.kt)("p",{parentName:"li"},(0,n.kt)("span",{parentName:"p",className:"math math-inline"},(0,n.kt)("span",{parentName:"span",className:"katex"},(0,n.kt)("span",{parentName:"span",className:"katex-mathml"},(0,n.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,n.kt)("semantics",{parentName:"math"},(0,n.kt)("mrow",{parentName:"semantics"},(0,n.kt)("mi",{parentName:"mrow"},"t")),(0,n.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"t")))),(0,n.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,n.kt)("span",{parentName:"span",className:"base"},(0,n.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6151em"}}),(0,n.kt)("span",{parentName:"span",className:"mord mathnormal"},"t"))))),"\u662f\u4ece",(0,n.kt)("span",{parentName:"p",className:"math math-inline"},(0,n.kt)("span",{parentName:"span",className:"katex"},(0,n.kt)("span",{parentName:"span",className:"katex-mathml"},(0,n.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,n.kt)("semantics",{parentName:"math"},(0,n.kt)("mrow",{parentName:"semantics"},(0,n.kt)("mn",{parentName:"mrow"},"1"),(0,n.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,n.kt)("mo",{parentName:"mrow"},"\u2026"),(0,n.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,n.kt)("mi",{parentName:"mrow"},"T")),(0,n.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"1,\\ldots,T")))),(0,n.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,n.kt)("span",{parentName:"span",className:"base"},(0,n.kt)("span",{parentName:"span",className:"strut",style:{height:"0.8778em",verticalAlign:"-0.1944em"}}),(0,n.kt)("span",{parentName:"span",className:"mord"},"1"),(0,n.kt)("span",{parentName:"span",className:"mpunct"},","),(0,n.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,n.kt)("span",{parentName:"span",className:"minner"},"\u2026"),(0,n.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,n.kt)("span",{parentName:"span",className:"mpunct"},","),(0,n.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,n.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"T"))))),"\u8303\u56f4\u4e2dsample\u51fa\u7684\u4e00\u4e2ainteger\uff1b")),(0,n.kt)("li",{parentName:"ol"},(0,n.kt)("p",{parentName:"li"},(0,n.kt)("span",{parentName:"p",className:"math math-inline"},(0,n.kt)("span",{parentName:"span",className:"katex"},(0,n.kt)("span",{parentName:"span",className:"katex-mathml"},(0,n.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,n.kt)("semantics",{parentName:"math"},(0,n.kt)("mrow",{parentName:"semantics"},(0,n.kt)("mi",{parentName:"mrow"},"\u03f5")),(0,n.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"\\epsilon")))),(0,n.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,n.kt)("span",{parentName:"span",className:"base"},(0,n.kt)("span",{parentName:"span",className:"strut",style:{height:"0.4306em"}}),(0,n.kt)("span",{parentName:"span",className:"mord mathnormal"},"\u03f5"))))),"\u662f\u4eceNormal Distribution\u4e2dsample\u51fa\u7684\u4e0e",(0,n.kt)("span",{parentName:"p",className:"math math-inline"},(0,n.kt)("span",{parentName:"span",className:"katex"},(0,n.kt)("span",{parentName:"span",className:"katex-mathml"},(0,n.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,n.kt)("semantics",{parentName:"math"},(0,n.kt)("mrow",{parentName:"semantics"},(0,n.kt)("msub",{parentName:"mrow"},(0,n.kt)("mi",{parentName:"msub",mathvariant:"bold"},"x"),(0,n.kt)("mn",{parentName:"msub"},"0"))),(0,n.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"\\mathbf{x}_0")))),(0,n.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,n.kt)("span",{parentName:"span",className:"base"},(0,n.kt)("span",{parentName:"span",className:"strut",style:{height:"0.5944em",verticalAlign:"-0.15em"}}),(0,n.kt)("span",{parentName:"span",className:"mord"},(0,n.kt)("span",{parentName:"span",className:"mord mathbf"},"x"),(0,n.kt)("span",{parentName:"span",className:"msupsub"},(0,n.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,n.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,n.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,n.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,n.kt)("span",{parentName:"span",className:"mord mtight"},"0")))),(0,n.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,n.kt)("span",{parentName:"span"})))))))))),"\u76f8\u540c\u5927\u5c0f\u7684\u566a\u58f0\uff1b")),(0,n.kt)("li",{parentName:"ol"},(0,n.kt)("p",{parentName:"li"},"\u6839\u636e\u5982\u4e0b\u89c4\u5219\u8fdb\u884c\u68af\u5ea6\u4e0b\u964d\uff0c\u8bad\u7ec3Noise Predictor\uff1a"),(0,n.kt)("div",{parentName:"li",className:"math math-display"},(0,n.kt)("span",{parentName:"div",className:"katex-display"},(0,n.kt)("span",{parentName:"span",className:"katex"},(0,n.kt)("span",{parentName:"span",className:"katex-mathml"},(0,n.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,n.kt)("semantics",{parentName:"math"},(0,n.kt)("mtable",{parentName:"semantics",width:"100%"},(0,n.kt)("mtr",{parentName:"mtable"},(0,n.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,n.kt)("mtd",{parentName:"mtr"},(0,n.kt)("mrow",{parentName:"mtd"},(0,n.kt)("msub",{parentName:"mrow"},(0,n.kt)("mi",{parentName:"msub",mathvariant:"normal"},"\u2207"),(0,n.kt)("mi",{parentName:"msub"},"\u03b8")),(0,n.kt)("msup",{parentName:"mrow"},(0,n.kt)("mrow",{parentName:"msup"},(0,n.kt)("mo",{parentName:"mrow",fence:"true"},"\u2225"),(0,n.kt)("mi",{parentName:"mrow",mathvariant:"bold-italic"},"\u03f5"),(0,n.kt)("mo",{parentName:"mrow"},"\u2212"),(0,n.kt)("msub",{parentName:"mrow"},(0,n.kt)("mi",{parentName:"msub",mathvariant:"bold-italic"},"\u03f5"),(0,n.kt)("mi",{parentName:"msub"},"\u03b8")),(0,n.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,n.kt)("msqrt",{parentName:"mrow"},(0,n.kt)("msub",{parentName:"msqrt"},(0,n.kt)("mover",{parentName:"msub",accent:"true"},(0,n.kt)("mi",{parentName:"mover"},"\u03b1"),(0,n.kt)("mo",{parentName:"mover"},"\u02c9")),(0,n.kt)("mi",{parentName:"msub"},"t"))),(0,n.kt)("msub",{parentName:"mrow"},(0,n.kt)("mi",{parentName:"msub",mathvariant:"bold"},"x"),(0,n.kt)("mn",{parentName:"msub"},"0")),(0,n.kt)("mo",{parentName:"mrow"},"+"),(0,n.kt)("msqrt",{parentName:"mrow"},(0,n.kt)("mrow",{parentName:"msqrt"},(0,n.kt)("mn",{parentName:"mrow"},"1"),(0,n.kt)("mo",{parentName:"mrow"},"\u2212"),(0,n.kt)("msub",{parentName:"mrow"},(0,n.kt)("mover",{parentName:"msub",accent:"true"},(0,n.kt)("mi",{parentName:"mover"},"\u03b1"),(0,n.kt)("mo",{parentName:"mover"},"\u02c9")),(0,n.kt)("mi",{parentName:"msub"},"t")))),(0,n.kt)("mi",{parentName:"mrow",mathvariant:"bold-italic"},"\u03f5"),(0,n.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,n.kt)("mi",{parentName:"mrow"},"t"),(0,n.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,n.kt)("mo",{parentName:"mrow",fence:"true"},"\u2225")),(0,n.kt)("mn",{parentName:"msup"},"2")))),(0,n.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,n.kt)("mtd",{parentName:"mtr"},(0,n.kt)("mtext",{parentName:"mtd"},"(1)")))),(0,n.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"\\nabla_{\\theta}\\left\\|\\boldsymbol{\\epsilon}-\\boldsymbol{\\epsilon}_{\\theta}(\\sqrt{\\bar{\\alpha}_{t}}\\mathbf{x}_{0}+\\sqrt{1-\\bar{\\alpha}_{t}}\\boldsymbol{\\epsilon},t)\\right\\|^{2}\\tag{1}")))),(0,n.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,n.kt)("span",{parentName:"span",className:"base"},(0,n.kt)("span",{parentName:"span",className:"strut",style:{height:"1.4351em",verticalAlign:"-0.35em"}}),(0,n.kt)("span",{parentName:"span",className:"mord"},(0,n.kt)("span",{parentName:"span",className:"mord"},"\u2207"),(0,n.kt)("span",{parentName:"span",className:"msupsub"},(0,n.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3361em"}},(0,n.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,n.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,n.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,n.kt)("span",{parentName:"span",className:"mord mtight"},(0,n.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.02778em"}},"\u03b8"))))),(0,n.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,n.kt)("span",{parentName:"span"})))))),(0,n.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,n.kt)("span",{parentName:"span",className:"minner"},(0,n.kt)("span",{parentName:"span",className:"minner"},(0,n.kt)("span",{parentName:"span",className:"mopen"},(0,n.kt)("span",{parentName:"span",className:"delimsizing mult"},(0,n.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.862em"}},(0,n.kt)("span",{parentName:"span",style:{top:"-2.256em"}},(0,n.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.606em"}}),(0,n.kt)("span",{parentName:"span",className:"delimsizinginner delim-size1"},(0,n.kt)("span",{parentName:"span"},"\u2225"))),(0,n.kt)("span",{parentName:"span",style:{top:"-2.854em"}},(0,n.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.606em"}}),(0,n.kt)("span",{parentName:"span",style:{height:"0.016em",width:"0.5556em"}},(0,n.kt)("svg",{parentName:"span",xmlns:"http://www.w3.org/2000/svg",width:"0.5556em",height:"0.016em",style:{width:"0.5556em"},viewBox:"0 0 555.5600000000001 16",preserveAspectRatio:"xMinYMin"},(0,n.kt)("path",{parentName:"svg",d:"M145 0 H188 V16 H145z M145 0 H188 V16 H145zM367 0 H410 V16 H367z M367 0 H410 V16 H367z"})))),(0,n.kt)("span",{parentName:"span",style:{top:"-2.862em"}},(0,n.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.606em"}}),(0,n.kt)("span",{parentName:"span",className:"delimsizinginner delim-size1"},(0,n.kt)("span",{parentName:"span"},"\u2225")))),(0,n.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.35em"}},(0,n.kt)("span",{parentName:"span"})))))),(0,n.kt)("span",{parentName:"span",className:"mord"},(0,n.kt)("span",{parentName:"span",className:"mord"},(0,n.kt)("span",{parentName:"span",className:"mord boldsymbol"},"\u03f5"))),(0,n.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,n.kt)("span",{parentName:"span",className:"mbin"},"\u2212"),(0,n.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,n.kt)("span",{parentName:"span",className:"mord"},(0,n.kt)("span",{parentName:"span",className:"mord"},(0,n.kt)("span",{parentName:"span",className:"mord"},(0,n.kt)("span",{parentName:"span",className:"mord boldsymbol"},"\u03f5"))),(0,n.kt)("span",{parentName:"span",className:"msupsub"},(0,n.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3361em"}},(0,n.kt)("span",{parentName:"span",style:{top:"-2.55em",marginRight:"0.05em"}},(0,n.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,n.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,n.kt)("span",{parentName:"span",className:"mord mtight"},(0,n.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.02778em"}},"\u03b8"))))),(0,n.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,n.kt)("span",{parentName:"span"})))))),(0,n.kt)("span",{parentName:"span",className:"mopen"},"("),(0,n.kt)("span",{parentName:"span",className:"mord sqrt"},(0,n.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.8428em"}},(0,n.kt)("span",{parentName:"span",className:"svg-align",style:{top:"-3em"}},(0,n.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,n.kt)("span",{parentName:"span",className:"mord",style:{paddingLeft:"0.833em"}},(0,n.kt)("span",{parentName:"span",className:"mord"},(0,n.kt)("span",{parentName:"span",className:"mord accent"},(0,n.kt)("span",{parentName:"span",className:"vlist-t"},(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.5678em"}},(0,n.kt)("span",{parentName:"span",style:{top:"-3em"}},(0,n.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,n.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.0037em"}},"\u03b1")),(0,n.kt)("span",{parentName:"span",style:{top:"-3em"}},(0,n.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,n.kt)("span",{parentName:"span",className:"accent-body",style:{left:"-0.2222em"}},(0,n.kt)("span",{parentName:"span",className:"mord"},"\u02c9"))))))),(0,n.kt)("span",{parentName:"span",className:"msupsub"},(0,n.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.2806em"}},(0,n.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0037em",marginRight:"0.05em"}},(0,n.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,n.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,n.kt)("span",{parentName:"span",className:"mord mtight"},(0,n.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"t"))))),(0,n.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,n.kt)("span",{parentName:"span"})))))))),(0,n.kt)("span",{parentName:"span",style:{top:"-2.8028em"}},(0,n.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,n.kt)("span",{parentName:"span",className:"hide-tail",style:{minWidth:"0.853em",height:"1.08em"}},(0,n.kt)("svg",{parentName:"span",xmlns:"http://www.w3.org/2000/svg",width:"400em",height:"1.08em",viewBox:"0 0 400000 1080",preserveAspectRatio:"xMinYMin slice"},(0,n.kt)("path",{parentName:"svg",d:"M95,702\nc-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14\nc0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54\nc44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10\ns173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429\nc69,-144,104.5,-217.7,106.5,-221\nl0 -0\nc5.3,-9.3,12,-14,20,-14\nH400000v40H845.2724\ns-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7\nc-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z\nM834 80h400000v40h-400000z"}))))),(0,n.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.1972em"}},(0,n.kt)("span",{parentName:"span"}))))),(0,n.kt)("span",{parentName:"span",className:"mord"},(0,n.kt)("span",{parentName:"span",className:"mord mathbf"},"x"),(0,n.kt)("span",{parentName:"span",className:"msupsub"},(0,n.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,n.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,n.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,n.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,n.kt)("span",{parentName:"span",className:"mord mtight"},(0,n.kt)("span",{parentName:"span",className:"mord mtight"},"0"))))),(0,n.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,n.kt)("span",{parentName:"span"})))))),(0,n.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,n.kt)("span",{parentName:"span",className:"mbin"},"+"),(0,n.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,n.kt)("span",{parentName:"span",className:"mord sqrt"},(0,n.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.8811em"}},(0,n.kt)("span",{parentName:"span",className:"svg-align",style:{top:"-3em"}},(0,n.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,n.kt)("span",{parentName:"span",className:"mord",style:{paddingLeft:"0.833em"}},(0,n.kt)("span",{parentName:"span",className:"mord"},"1"),(0,n.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,n.kt)("span",{parentName:"span",className:"mbin"},"\u2212"),(0,n.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,n.kt)("span",{parentName:"span",className:"mord"},(0,n.kt)("span",{parentName:"span",className:"mord accent"},(0,n.kt)("span",{parentName:"span",className:"vlist-t"},(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.5678em"}},(0,n.kt)("span",{parentName:"span",style:{top:"-3em"}},(0,n.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,n.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.0037em"}},"\u03b1")),(0,n.kt)("span",{parentName:"span",style:{top:"-3em"}},(0,n.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,n.kt)("span",{parentName:"span",className:"accent-body",style:{left:"-0.2222em"}},(0,n.kt)("span",{parentName:"span",className:"mord"},"\u02c9"))))))),(0,n.kt)("span",{parentName:"span",className:"msupsub"},(0,n.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.2806em"}},(0,n.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0037em",marginRight:"0.05em"}},(0,n.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,n.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,n.kt)("span",{parentName:"span",className:"mord mtight"},(0,n.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"t"))))),(0,n.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,n.kt)("span",{parentName:"span"})))))))),(0,n.kt)("span",{parentName:"span",style:{top:"-2.8411em"}},(0,n.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,n.kt)("span",{parentName:"span",className:"hide-tail",style:{minWidth:"0.853em",height:"1.08em"}},(0,n.kt)("svg",{parentName:"span",xmlns:"http://www.w3.org/2000/svg",width:"400em",height:"1.08em",viewBox:"0 0 400000 1080",preserveAspectRatio:"xMinYMin slice"},(0,n.kt)("path",{parentName:"svg",d:"M95,702\nc-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14\nc0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54\nc44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10\ns173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429\nc69,-144,104.5,-217.7,106.5,-221\nl0 -0\nc5.3,-9.3,12,-14,20,-14\nH400000v40H845.2724\ns-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7\nc-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z\nM834 80h400000v40h-400000z"}))))),(0,n.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.1589em"}},(0,n.kt)("span",{parentName:"span"}))))),(0,n.kt)("span",{parentName:"span",className:"mord"},(0,n.kt)("span",{parentName:"span",className:"mord"},(0,n.kt)("span",{parentName:"span",className:"mord boldsymbol"},"\u03f5"))),(0,n.kt)("span",{parentName:"span",className:"mpunct"},","),(0,n.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,n.kt)("span",{parentName:"span",className:"mord mathnormal"},"t"),(0,n.kt)("span",{parentName:"span",className:"mclose"},")"),(0,n.kt)("span",{parentName:"span",className:"mclose"},(0,n.kt)("span",{parentName:"span",className:"delimsizing mult"},(0,n.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.862em"}},(0,n.kt)("span",{parentName:"span",style:{top:"-2.256em"}},(0,n.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.606em"}}),(0,n.kt)("span",{parentName:"span",className:"delimsizinginner delim-size1"},(0,n.kt)("span",{parentName:"span"},"\u2225"))),(0,n.kt)("span",{parentName:"span",style:{top:"-2.854em"}},(0,n.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.606em"}}),(0,n.kt)("span",{parentName:"span",style:{height:"0.016em",width:"0.5556em"}},(0,n.kt)("svg",{parentName:"span",xmlns:"http://www.w3.org/2000/svg",width:"0.5556em",height:"0.016em",style:{width:"0.5556em"},viewBox:"0 0 555.5600000000001 16",preserveAspectRatio:"xMinYMin"},(0,n.kt)("path",{parentName:"svg",d:"M145 0 H188 V16 H145z M145 0 H188 V16 H145zM367 0 H410 V16 H367z M367 0 H410 V16 H367z"})))),(0,n.kt)("span",{parentName:"span",style:{top:"-2.862em"}},(0,n.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.606em"}}),(0,n.kt)("span",{parentName:"span",className:"delimsizinginner delim-size1"},(0,n.kt)("span",{parentName:"span"},"\u2225")))),(0,n.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.35em"}},(0,n.kt)("span",{parentName:"span"}))))))),(0,n.kt)("span",{parentName:"span",className:"msupsub"},(0,n.kt)("span",{parentName:"span",className:"vlist-t"},(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.0851em"}},(0,n.kt)("span",{parentName:"span",style:{top:"-3.334em",marginRight:"0.05em"}},(0,n.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,n.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,n.kt)("span",{parentName:"span",className:"mord mtight"},(0,n.kt)("span",{parentName:"span",className:"mord mtight"},"2")))))))))),(0,n.kt)("span",{parentName:"span",className:"tag"},(0,n.kt)("span",{parentName:"span",className:"strut",style:{height:"1.4351em",verticalAlign:"-0.35em"}}),(0,n.kt)("span",{parentName:"span",className:"mord text"},(0,n.kt)("span",{parentName:"span",className:"mord"},"("),(0,n.kt)("span",{parentName:"span",className:"mord"},(0,n.kt)("span",{parentName:"span",className:"mord"},"1")),(0,n.kt)("span",{parentName:"span",className:"mord"},")"))))))),(0,n.kt)("p",{parentName:"li"},"\u9996\u5148\u5bf9",(0,n.kt)("span",{parentName:"p",className:"math math-inline"},(0,n.kt)("span",{parentName:"span",className:"katex"},(0,n.kt)("span",{parentName:"span",className:"katex-mathml"},(0,n.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,n.kt)("semantics",{parentName:"math"},(0,n.kt)("mrow",{parentName:"semantics"},(0,n.kt)("msub",{parentName:"mrow"},(0,n.kt)("mi",{parentName:"msub",mathvariant:"bold"},"x"),(0,n.kt)("mn",{parentName:"msub"},"0"))),(0,n.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"\\mathbf{x}_0")))),(0,n.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,n.kt)("span",{parentName:"span",className:"base"},(0,n.kt)("span",{parentName:"span",className:"strut",style:{height:"0.5944em",verticalAlign:"-0.15em"}}),(0,n.kt)("span",{parentName:"span",className:"mord"},(0,n.kt)("span",{parentName:"span",className:"mord mathbf"},"x"),(0,n.kt)("span",{parentName:"span",className:"msupsub"},(0,n.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,n.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,n.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,n.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,n.kt)("span",{parentName:"span",className:"mord mtight"},"0")))),(0,n.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,n.kt)("span",{parentName:"span"})))))))))),"\u548c",(0,n.kt)("span",{parentName:"p",className:"math math-inline"},(0,n.kt)("span",{parentName:"span",className:"katex"},(0,n.kt)("span",{parentName:"span",className:"katex-mathml"},(0,n.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,n.kt)("semantics",{parentName:"math"},(0,n.kt)("mrow",{parentName:"semantics"},(0,n.kt)("mi",{parentName:"mrow"},"\u03f5")),(0,n.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"\\epsilon")))),(0,n.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,n.kt)("span",{parentName:"span",className:"base"},(0,n.kt)("span",{parentName:"span",className:"strut",style:{height:"0.4306em"}}),(0,n.kt)("span",{parentName:"span",className:"mord mathnormal"},"\u03f5"))))),"\u6839\u636e\u6743\u91cd",(0,n.kt)("span",{parentName:"p",className:"math math-inline"},(0,n.kt)("span",{parentName:"span",className:"katex"},(0,n.kt)("span",{parentName:"span",className:"katex-mathml"},(0,n.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,n.kt)("semantics",{parentName:"math"},(0,n.kt)("mrow",{parentName:"semantics"},(0,n.kt)("msub",{parentName:"mrow"},(0,n.kt)("mover",{parentName:"msub",accent:"true"},(0,n.kt)("mi",{parentName:"mover"},"\u03b1"),(0,n.kt)("mo",{parentName:"mover"},"\u02c9")),(0,n.kt)("mn",{parentName:"msub"},"1")),(0,n.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,n.kt)("msub",{parentName:"mrow"},(0,n.kt)("mover",{parentName:"msub",accent:"true"},(0,n.kt)("mi",{parentName:"mover"},"\u03b1"),(0,n.kt)("mo",{parentName:"mover"},"\u02c9")),(0,n.kt)("mn",{parentName:"msub"},"2")),(0,n.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,n.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"."),(0,n.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"."),(0,n.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"."),(0,n.kt)("msub",{parentName:"mrow"},(0,n.kt)("mover",{parentName:"msub",accent:"true"},(0,n.kt)("mi",{parentName:"mover"},"\u03b1"),(0,n.kt)("mo",{parentName:"mover"},"\u02c9")),(0,n.kt)("mi",{parentName:"msub"},"T"))),(0,n.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"\\bar{\\alpha}_1,\\bar{\\alpha}_2,...\\bar{\\alpha}_T")))),(0,n.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,n.kt)("span",{parentName:"span",className:"base"},(0,n.kt)("span",{parentName:"span",className:"strut",style:{height:"0.7622em",verticalAlign:"-0.1944em"}}),(0,n.kt)("span",{parentName:"span",className:"mord"},(0,n.kt)("span",{parentName:"span",className:"mord accent"},(0,n.kt)("span",{parentName:"span",className:"vlist-t"},(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.5678em"}},(0,n.kt)("span",{parentName:"span",style:{top:"-3em"}},(0,n.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,n.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.0037em"}},"\u03b1")),(0,n.kt)("span",{parentName:"span",style:{top:"-3em"}},(0,n.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,n.kt)("span",{parentName:"span",className:"accent-body",style:{left:"-0.2222em"}},(0,n.kt)("span",{parentName:"span",className:"mord"},"\u02c9"))))))),(0,n.kt)("span",{parentName:"span",className:"msupsub"},(0,n.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,n.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0037em",marginRight:"0.05em"}},(0,n.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,n.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,n.kt)("span",{parentName:"span",className:"mord mtight"},"1")))),(0,n.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,n.kt)("span",{parentName:"span"})))))),(0,n.kt)("span",{parentName:"span",className:"mpunct"},","),(0,n.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,n.kt)("span",{parentName:"span",className:"mord"},(0,n.kt)("span",{parentName:"span",className:"mord accent"},(0,n.kt)("span",{parentName:"span",className:"vlist-t"},(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.5678em"}},(0,n.kt)("span",{parentName:"span",style:{top:"-3em"}},(0,n.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,n.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.0037em"}},"\u03b1")),(0,n.kt)("span",{parentName:"span",style:{top:"-3em"}},(0,n.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,n.kt)("span",{parentName:"span",className:"accent-body",style:{left:"-0.2222em"}},(0,n.kt)("span",{parentName:"span",className:"mord"},"\u02c9"))))))),(0,n.kt)("span",{parentName:"span",className:"msupsub"},(0,n.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,n.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0037em",marginRight:"0.05em"}},(0,n.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,n.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,n.kt)("span",{parentName:"span",className:"mord mtight"},"2")))),(0,n.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,n.kt)("span",{parentName:"span"})))))),(0,n.kt)("span",{parentName:"span",className:"mpunct"},","),(0,n.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,n.kt)("span",{parentName:"span",className:"mord"},"..."),(0,n.kt)("span",{parentName:"span",className:"mord"},(0,n.kt)("span",{parentName:"span",className:"mord accent"},(0,n.kt)("span",{parentName:"span",className:"vlist-t"},(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.5678em"}},(0,n.kt)("span",{parentName:"span",style:{top:"-3em"}},(0,n.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,n.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.0037em"}},"\u03b1")),(0,n.kt)("span",{parentName:"span",style:{top:"-3em"}},(0,n.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,n.kt)("span",{parentName:"span",className:"accent-body",style:{left:"-0.2222em"}},(0,n.kt)("span",{parentName:"span",className:"mord"},"\u02c9"))))))),(0,n.kt)("span",{parentName:"span",className:"msupsub"},(0,n.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3283em"}},(0,n.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0037em",marginRight:"0.05em"}},(0,n.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,n.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,n.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.13889em"}},"T")))),(0,n.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,n.kt)("span",{parentName:"span"})))))))))),"\u505aweighted sum\u4ea7\u751f\u52a0\u5165\u566a\u58f0\u540e\u7684\u56fe\u50cf\u3002\u901a\u5e38\u6765\u8bf4\uff0c",(0,n.kt)("span",{parentName:"p",className:"math math-inline"},(0,n.kt)("span",{parentName:"span",className:"katex"},(0,n.kt)("span",{parentName:"span",className:"katex-mathml"},(0,n.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,n.kt)("semantics",{parentName:"math"},(0,n.kt)("mrow",{parentName:"semantics"},(0,n.kt)("msub",{parentName:"mrow"},(0,n.kt)("mover",{parentName:"msub",accent:"true"},(0,n.kt)("mi",{parentName:"mover"},"\u03b1"),(0,n.kt)("mo",{parentName:"mover"},"\u02c9")),(0,n.kt)("mn",{parentName:"msub"},"1"))),(0,n.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"\\bar{\\alpha}_1")))),(0,n.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,n.kt)("span",{parentName:"span",className:"base"},(0,n.kt)("span",{parentName:"span",className:"strut",style:{height:"0.7178em",verticalAlign:"-0.15em"}}),(0,n.kt)("span",{parentName:"span",className:"mord"},(0,n.kt)("span",{parentName:"span",className:"mord accent"},(0,n.kt)("span",{parentName:"span",className:"vlist-t"},(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.5678em"}},(0,n.kt)("span",{parentName:"span",style:{top:"-3em"}},(0,n.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,n.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.0037em"}},"\u03b1")),(0,n.kt)("span",{parentName:"span",style:{top:"-3em"}},(0,n.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,n.kt)("span",{parentName:"span",className:"accent-body",style:{left:"-0.2222em"}},(0,n.kt)("span",{parentName:"span",className:"mord"},"\u02c9"))))))),(0,n.kt)("span",{parentName:"span",className:"msupsub"},(0,n.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,n.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0037em",marginRight:"0.05em"}},(0,n.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,n.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,n.kt)("span",{parentName:"span",className:"mord mtight"},"1")))),(0,n.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,n.kt)("span",{parentName:"span"})))))))))),"\u81f3",(0,n.kt)("span",{parentName:"p",className:"math math-inline"},(0,n.kt)("span",{parentName:"span",className:"katex"},(0,n.kt)("span",{parentName:"span",className:"katex-mathml"},(0,n.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,n.kt)("semantics",{parentName:"math"},(0,n.kt)("mrow",{parentName:"semantics"},(0,n.kt)("msub",{parentName:"mrow"},(0,n.kt)("mover",{parentName:"msub",accent:"true"},(0,n.kt)("mi",{parentName:"mover"},"\u03b1"),(0,n.kt)("mo",{parentName:"mover"},"\u02c9")),(0,n.kt)("mi",{parentName:"msub"},"T"))),(0,n.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"\\bar{\\alpha}_T")))),(0,n.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,n.kt)("span",{parentName:"span",className:"base"},(0,n.kt)("span",{parentName:"span",className:"strut",style:{height:"0.7178em",verticalAlign:"-0.15em"}}),(0,n.kt)("span",{parentName:"span",className:"mord"},(0,n.kt)("span",{parentName:"span",className:"mord accent"},(0,n.kt)("span",{parentName:"span",className:"vlist-t"},(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.5678em"}},(0,n.kt)("span",{parentName:"span",style:{top:"-3em"}},(0,n.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,n.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.0037em"}},"\u03b1")),(0,n.kt)("span",{parentName:"span",style:{top:"-3em"}},(0,n.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,n.kt)("span",{parentName:"span",className:"accent-body",style:{left:"-0.2222em"}},(0,n.kt)("span",{parentName:"span",className:"mord"},"\u02c9"))))))),(0,n.kt)("span",{parentName:"span",className:"msupsub"},(0,n.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3283em"}},(0,n.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0037em",marginRight:"0.05em"}},(0,n.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,n.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,n.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.13889em"}},"T")))),(0,n.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,n.kt)("span",{parentName:"span"})))))))))),"\u662f\u9012\u51cf\u7684\uff0c\u5f53\u5728\u7b2c2\u6b65\u4e2dsample\u5230\u7684",(0,n.kt)("span",{parentName:"p",className:"math math-inline"},(0,n.kt)("span",{parentName:"span",className:"katex"},(0,n.kt)("span",{parentName:"span",className:"katex-mathml"},(0,n.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,n.kt)("semantics",{parentName:"math"},(0,n.kt)("mrow",{parentName:"semantics"},(0,n.kt)("mi",{parentName:"mrow"},"t")),(0,n.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"t")))),(0,n.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,n.kt)("span",{parentName:"span",className:"base"},(0,n.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6151em"}}),(0,n.kt)("span",{parentName:"span",className:"mord mathnormal"},"t"))))),"\u8d8a\u5927\uff0c\u5219\u539f\u59cb\u56fe\u50cf",(0,n.kt)("span",{parentName:"p",className:"math math-inline"},(0,n.kt)("span",{parentName:"span",className:"katex"},(0,n.kt)("span",{parentName:"span",className:"katex-mathml"},(0,n.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,n.kt)("semantics",{parentName:"math"},(0,n.kt)("mrow",{parentName:"semantics"},(0,n.kt)("msub",{parentName:"mrow"},(0,n.kt)("mi",{parentName:"msub",mathvariant:"bold"},"x"),(0,n.kt)("mn",{parentName:"msub"},"0"))),(0,n.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"\\mathbf{x}_0")))),(0,n.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,n.kt)("span",{parentName:"span",className:"base"},(0,n.kt)("span",{parentName:"span",className:"strut",style:{height:"0.5944em",verticalAlign:"-0.15em"}}),(0,n.kt)("span",{parentName:"span",className:"mord"},(0,n.kt)("span",{parentName:"span",className:"mord mathbf"},"x"),(0,n.kt)("span",{parentName:"span",className:"msupsub"},(0,n.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,n.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,n.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,n.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,n.kt)("span",{parentName:"span",className:"mord mtight"},"0")))),(0,n.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,n.kt)("span",{parentName:"span"})))))))))),"\u5bf9\u65b0\u56fe\u50cf\u7684\u8d21\u732e\u8d8a\u5927\u3002"),(0,n.kt)("p",{parentName:"li"},(0,n.kt)("span",{parentName:"p",className:"math math-inline"},(0,n.kt)("span",{parentName:"span",className:"katex"},(0,n.kt)("span",{parentName:"span",className:"katex-mathml"},(0,n.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,n.kt)("semantics",{parentName:"math"},(0,n.kt)("mrow",{parentName:"semantics"},(0,n.kt)("msub",{parentName:"mrow"},(0,n.kt)("mi",{parentName:"msub"},"\u03f5"),(0,n.kt)("mi",{parentName:"msub"},"\u03b8"))),(0,n.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"\\epsilon_{\\theta}")))),(0,n.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,n.kt)("span",{parentName:"span",className:"base"},(0,n.kt)("span",{parentName:"span",className:"strut",style:{height:"0.5806em",verticalAlign:"-0.15em"}}),(0,n.kt)("span",{parentName:"span",className:"mord"},(0,n.kt)("span",{parentName:"span",className:"mord mathnormal"},"\u03f5"),(0,n.kt)("span",{parentName:"span",className:"msupsub"},(0,n.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3361em"}},(0,n.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,n.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,n.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,n.kt)("span",{parentName:"span",className:"mord mtight"},(0,n.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.02778em"}},"\u03b8"))))),(0,n.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,n.kt)("span",{parentName:"span"})))))))))),"\u662fNoise Predictor\uff0c\u5176\u8f93\u5165\u662f\u52a0\u5165\u566a\u58f0\u7684\u56fe\u50cf\u4ee5\u53casample\u51fa\u7684",(0,n.kt)("span",{parentName:"p",className:"math math-inline"},(0,n.kt)("span",{parentName:"span",className:"katex"},(0,n.kt)("span",{parentName:"span",className:"katex-mathml"},(0,n.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,n.kt)("semantics",{parentName:"math"},(0,n.kt)("mrow",{parentName:"semantics"},(0,n.kt)("mi",{parentName:"mrow"},"t")),(0,n.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"t")))),(0,n.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,n.kt)("span",{parentName:"span",className:"base"},(0,n.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6151em"}}),(0,n.kt)("span",{parentName:"span",className:"mord mathnormal"},"t"))))),"\uff0c\u800c",(0,n.kt)("span",{parentName:"p",className:"math math-inline"},(0,n.kt)("span",{parentName:"span",className:"katex"},(0,n.kt)("span",{parentName:"span",className:"katex-mathml"},(0,n.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,n.kt)("semantics",{parentName:"math"},(0,n.kt)("mrow",{parentName:"semantics"},(0,n.kt)("msub",{parentName:"mrow"},(0,n.kt)("mi",{parentName:"msub"},"\u03f5"),(0,n.kt)("mi",{parentName:"msub"},"\u03b8"))),(0,n.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"\\epsilon_\\theta")))),(0,n.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,n.kt)("span",{parentName:"span",className:"base"},(0,n.kt)("span",{parentName:"span",className:"strut",style:{height:"0.5806em",verticalAlign:"-0.15em"}}),(0,n.kt)("span",{parentName:"span",className:"mord"},(0,n.kt)("span",{parentName:"span",className:"mord mathnormal"},"\u03f5"),(0,n.kt)("span",{parentName:"span",className:"msupsub"},(0,n.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3361em"}},(0,n.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,n.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,n.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,n.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.02778em"}},"\u03b8")))),(0,n.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,n.kt)("span",{parentName:"span"})))))))))),"\u8bad\u7ec3\u7684Ground Truth\u5c31\u662f\u7b2c3\u6b65\u4e2dsample\u51fa\u7684\u566a\u58f0",(0,n.kt)("span",{parentName:"p",className:"math math-inline"},(0,n.kt)("span",{parentName:"span",className:"katex"},(0,n.kt)("span",{parentName:"span",className:"katex-mathml"},(0,n.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,n.kt)("semantics",{parentName:"math"},(0,n.kt)("mrow",{parentName:"semantics"},(0,n.kt)("mi",{parentName:"mrow"},"\u03f5")),(0,n.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"\\epsilon")))),(0,n.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,n.kt)("span",{parentName:"span",className:"base"},(0,n.kt)("span",{parentName:"span",className:"strut",style:{height:"0.4306em"}}),(0,n.kt)("span",{parentName:"span",className:"mord mathnormal"},"\u03f5"))))),"\uff1b")),(0,n.kt)("li",{parentName:"ol"},(0,n.kt)("p",{parentName:"li"},"\u76f4\u81f3\u566a\u58f0\u9884\u6d4b\u6a21\u578b",(0,n.kt)("span",{parentName:"p",className:"math math-inline"},(0,n.kt)("span",{parentName:"span",className:"katex"},(0,n.kt)("span",{parentName:"span",className:"katex-mathml"},(0,n.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,n.kt)("semantics",{parentName:"math"},(0,n.kt)("mrow",{parentName:"semantics"},(0,n.kt)("msub",{parentName:"mrow"},(0,n.kt)("mi",{parentName:"msub"},"\u03f5"),(0,n.kt)("mi",{parentName:"msub"},"\u03b8"))),(0,n.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"\\epsilon_\\theta")))),(0,n.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,n.kt)("span",{parentName:"span",className:"base"},(0,n.kt)("span",{parentName:"span",className:"strut",style:{height:"0.5806em",verticalAlign:"-0.15em"}}),(0,n.kt)("span",{parentName:"span",className:"mord"},(0,n.kt)("span",{parentName:"span",className:"mord mathnormal"},"\u03f5"),(0,n.kt)("span",{parentName:"span",className:"msupsub"},(0,n.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3361em"}},(0,n.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,n.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,n.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,n.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.02778em"}},"\u03b8")))),(0,n.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,n.kt)("span",{parentName:"span"})))))))))),"\u8bad\u7ec3\u81f3\u6536\u655b\u3002"))),(0,n.kt)("p",null,(0,n.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_imagesimage-20231202235322516.png",alt:"image-20231202235322516"})),(0,n.kt)("h3",{id:"\u63a8\u7406\u8fc7\u7a0b"},"\u63a8\u7406\u8fc7\u7a0b"),(0,n.kt)("ol",null,(0,n.kt)("li",{parentName:"ol"},(0,n.kt)("p",{parentName:"li"},"\u4eceNormal Distribution\u4e2dsample\u51fa\u56fe\u7247\u5927\u5c0f\u7684\u566a\u58f0",(0,n.kt)("span",{parentName:"p",className:"math math-inline"},(0,n.kt)("span",{parentName:"span",className:"katex"},(0,n.kt)("span",{parentName:"span",className:"katex-mathml"},(0,n.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,n.kt)("semantics",{parentName:"math"},(0,n.kt)("mrow",{parentName:"semantics"},(0,n.kt)("msub",{parentName:"mrow"},(0,n.kt)("mi",{parentName:"msub",mathvariant:"bold"},"x"),(0,n.kt)("mi",{parentName:"msub"},"T"))),(0,n.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"\\mathbf{x}_T")))),(0,n.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,n.kt)("span",{parentName:"span",className:"base"},(0,n.kt)("span",{parentName:"span",className:"strut",style:{height:"0.5944em",verticalAlign:"-0.15em"}}),(0,n.kt)("span",{parentName:"span",className:"mord"},(0,n.kt)("span",{parentName:"span",className:"mord mathbf"},"x"),(0,n.kt)("span",{parentName:"span",className:"msupsub"},(0,n.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3283em"}},(0,n.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,n.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,n.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,n.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.13889em"}},"T")))),(0,n.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,n.kt)("span",{parentName:"span"})))))))))),"\uff1b")),(0,n.kt)("li",{parentName:"ol"},(0,n.kt)("p",{parentName:"li"},(0,n.kt)("span",{parentName:"p",className:"math math-inline"},(0,n.kt)("span",{parentName:"span",className:"katex"},(0,n.kt)("span",{parentName:"span",className:"katex-mathml"},(0,n.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,n.kt)("semantics",{parentName:"math"},(0,n.kt)("mrow",{parentName:"semantics"},(0,n.kt)("mi",{parentName:"mrow"},"t")),(0,n.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"t")))),(0,n.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,n.kt)("span",{parentName:"span",className:"base"},(0,n.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6151em"}}),(0,n.kt)("span",{parentName:"span",className:"mord mathnormal"},"t"))))),"\u4ece",(0,n.kt)("span",{parentName:"p",className:"math math-inline"},(0,n.kt)("span",{parentName:"span",className:"katex"},(0,n.kt)("span",{parentName:"span",className:"katex-mathml"},(0,n.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,n.kt)("semantics",{parentName:"math"},(0,n.kt)("mrow",{parentName:"semantics"},(0,n.kt)("mi",{parentName:"mrow"},"T"),(0,n.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,n.kt)("mo",{parentName:"mrow"},"\u2026"),(0,n.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,n.kt)("mn",{parentName:"mrow"},"1")),(0,n.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"T,\\ldots,1")))),(0,n.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,n.kt)("span",{parentName:"span",className:"base"},(0,n.kt)("span",{parentName:"span",className:"strut",style:{height:"0.8778em",verticalAlign:"-0.1944em"}}),(0,n.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"T"),(0,n.kt)("span",{parentName:"span",className:"mpunct"},","),(0,n.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,n.kt)("span",{parentName:"span",className:"minner"},"\u2026"),(0,n.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,n.kt)("span",{parentName:"span",className:"mpunct"},","),(0,n.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,n.kt)("span",{parentName:"span",className:"mord"},"1"))))),"\u8303\u56f4\u5faa\u73af",(0,n.kt)("span",{parentName:"p",className:"math math-inline"},(0,n.kt)("span",{parentName:"span",className:"katex"},(0,n.kt)("span",{parentName:"span",className:"katex-mathml"},(0,n.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,n.kt)("semantics",{parentName:"math"},(0,n.kt)("mrow",{parentName:"semantics"},(0,n.kt)("mi",{parentName:"mrow"},"T")),(0,n.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"T")))),(0,n.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,n.kt)("span",{parentName:"span",className:"base"},(0,n.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6833em"}}),(0,n.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"T"))))),"\u6b21\uff1b")),(0,n.kt)("li",{parentName:"ol"},(0,n.kt)("p",{parentName:"li"},"\u5bf9\u4e0e\u6bcf\u4e00\u6b21\u4ee5",(0,n.kt)("span",{parentName:"p",className:"math math-inline"},(0,n.kt)("span",{parentName:"span",className:"katex"},(0,n.kt)("span",{parentName:"span",className:"katex-mathml"},(0,n.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,n.kt)("semantics",{parentName:"math"},(0,n.kt)("mrow",{parentName:"semantics"},(0,n.kt)("mi",{parentName:"mrow"},"t")),(0,n.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"t")))),(0,n.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,n.kt)("span",{parentName:"span",className:"base"},(0,n.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6151em"}}),(0,n.kt)("span",{parentName:"span",className:"mord mathnormal"},"t"))))),"\u8ba1\u6570\u7684\u5faa\u73af\uff0c\u82e5",(0,n.kt)("span",{parentName:"p",className:"math math-inline"},(0,n.kt)("span",{parentName:"span",className:"katex"},(0,n.kt)("span",{parentName:"span",className:"katex-mathml"},(0,n.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,n.kt)("semantics",{parentName:"math"},(0,n.kt)("mrow",{parentName:"semantics"},(0,n.kt)("mi",{parentName:"mrow"},"t"),(0,n.kt)("mo",{parentName:"mrow"},">"),(0,n.kt)("mn",{parentName:"mrow"},"1")),(0,n.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"t>1")))),(0,n.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,n.kt)("span",{parentName:"span",className:"base"},(0,n.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6542em",verticalAlign:"-0.0391em"}}),(0,n.kt)("span",{parentName:"span",className:"mord mathnormal"},"t"),(0,n.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,n.kt)("span",{parentName:"span",className:"mrel"},">"),(0,n.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,n.kt)("span",{parentName:"span",className:"base"},(0,n.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6444em"}}),(0,n.kt)("span",{parentName:"span",className:"mord"},"1"))))),"\uff0c\u5219\u4eceNormal Distribution\u4e2dsample\u51fa",(0,n.kt)("span",{parentName:"p",className:"math math-inline"},(0,n.kt)("span",{parentName:"span",className:"katex"},(0,n.kt)("span",{parentName:"span",className:"katex-mathml"},(0,n.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,n.kt)("semantics",{parentName:"math"},(0,n.kt)("mrow",{parentName:"semantics"},(0,n.kt)("mi",{parentName:"mrow",mathvariant:"bold"},"z")),(0,n.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"\\mathbf{z}")))),(0,n.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,n.kt)("span",{parentName:"span",className:"base"},(0,n.kt)("span",{parentName:"span",className:"strut",style:{height:"0.4444em"}}),(0,n.kt)("span",{parentName:"span",className:"mord mathbf"},"z"))))),"\uff0c\u5426\u5219",(0,n.kt)("span",{parentName:"p",className:"math math-inline"},(0,n.kt)("span",{parentName:"span",className:"katex"},(0,n.kt)("span",{parentName:"span",className:"katex-mathml"},(0,n.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,n.kt)("semantics",{parentName:"math"},(0,n.kt)("mrow",{parentName:"semantics"},(0,n.kt)("mi",{parentName:"mrow",mathvariant:"bold"},"z"),(0,n.kt)("mo",{parentName:"mrow"},"="),(0,n.kt)("mn",{parentName:"mrow",mathvariant:"bold"},"0")),(0,n.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"\\mathbf{z}=\\mathbf{0}")))),(0,n.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,n.kt)("span",{parentName:"span",className:"base"},(0,n.kt)("span",{parentName:"span",className:"strut",style:{height:"0.4444em"}}),(0,n.kt)("span",{parentName:"span",className:"mord mathbf"},"z"),(0,n.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,n.kt)("span",{parentName:"span",className:"mrel"},"="),(0,n.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,n.kt)("span",{parentName:"span",className:"base"},(0,n.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6444em"}}),(0,n.kt)("span",{parentName:"span",className:"mord mathbf"},"0"))))),"\uff1b")),(0,n.kt)("li",{parentName:"ol"},(0,n.kt)("p",{parentName:"li"},"\u6839\u636e\u5982\u4e0b\u516c\u5f0f\u5f97\u5230\u964d\u566a\u540e\u7684\u56fe\u50cf\uff1a"),(0,n.kt)("div",{parentName:"li",className:"math math-display"},(0,n.kt)("span",{parentName:"div",className:"katex-display"},(0,n.kt)("span",{parentName:"span",className:"katex"},(0,n.kt)("span",{parentName:"span",className:"katex-mathml"},(0,n.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,n.kt)("semantics",{parentName:"math"},(0,n.kt)("mtable",{parentName:"semantics",width:"100%"},(0,n.kt)("mtr",{parentName:"mtable"},(0,n.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,n.kt)("mtd",{parentName:"mtr"},(0,n.kt)("mrow",{parentName:"mtd"},(0,n.kt)("msub",{parentName:"mrow"},(0,n.kt)("mi",{parentName:"msub",mathvariant:"bold"},"x"),(0,n.kt)("mrow",{parentName:"msub"},(0,n.kt)("mi",{parentName:"mrow"},"t"),(0,n.kt)("mo",{parentName:"mrow"},"\u2212"),(0,n.kt)("mn",{parentName:"mrow"},"1"))),(0,n.kt)("mo",{parentName:"mrow"},"="),(0,n.kt)("mfrac",{parentName:"mrow"},(0,n.kt)("mn",{parentName:"mfrac"},"1"),(0,n.kt)("msqrt",{parentName:"mfrac"},(0,n.kt)("msub",{parentName:"msqrt"},(0,n.kt)("mi",{parentName:"msub"},"\u03b1"),(0,n.kt)("mi",{parentName:"msub"},"t")))),(0,n.kt)("mrow",{parentName:"mrow"},(0,n.kt)("mo",{parentName:"mrow",fence:"true"},"("),(0,n.kt)("msub",{parentName:"mrow"},(0,n.kt)("mi",{parentName:"msub",mathvariant:"bold"},"x"),(0,n.kt)("mi",{parentName:"msub"},"t")),(0,n.kt)("mo",{parentName:"mrow"},"\u2212"),(0,n.kt)("mfrac",{parentName:"mrow"},(0,n.kt)("mrow",{parentName:"mfrac"},(0,n.kt)("mn",{parentName:"mrow"},"1"),(0,n.kt)("mo",{parentName:"mrow"},"\u2212"),(0,n.kt)("msub",{parentName:"mrow"},(0,n.kt)("mi",{parentName:"msub"},"\u03b1"),(0,n.kt)("mi",{parentName:"msub"},"t"))),(0,n.kt)("msqrt",{parentName:"mfrac"},(0,n.kt)("mrow",{parentName:"msqrt"},(0,n.kt)("mn",{parentName:"mrow"},"1"),(0,n.kt)("mo",{parentName:"mrow"},"\u2212"),(0,n.kt)("msub",{parentName:"mrow"},(0,n.kt)("mover",{parentName:"msub",accent:"true"},(0,n.kt)("mi",{parentName:"mover"},"\u03b1"),(0,n.kt)("mo",{parentName:"mover"},"\u02c9")),(0,n.kt)("mi",{parentName:"msub"},"t"))))),(0,n.kt)("msub",{parentName:"mrow"},(0,n.kt)("mi",{parentName:"msub",mathvariant:"bold-italic"},"\u03f5"),(0,n.kt)("mi",{parentName:"msub"},"\u03b8")),(0,n.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,n.kt)("msub",{parentName:"mrow"},(0,n.kt)("mi",{parentName:"msub",mathvariant:"bold"},"x"),(0,n.kt)("mi",{parentName:"msub"},"t")),(0,n.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,n.kt)("mi",{parentName:"mrow"},"t"),(0,n.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,n.kt)("mo",{parentName:"mrow",fence:"true"},")")),(0,n.kt)("mo",{parentName:"mrow"},"+"),(0,n.kt)("msub",{parentName:"mrow"},(0,n.kt)("mi",{parentName:"msub"},"\u03c3"),(0,n.kt)("mi",{parentName:"msub"},"t")),(0,n.kt)("mi",{parentName:"mrow",mathvariant:"bold"},"z"))),(0,n.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,n.kt)("mtd",{parentName:"mtr"},(0,n.kt)("mtext",{parentName:"mtd"},"(2)")))),(0,n.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"\\mathbf{x}_{t-1}=\\frac{1}{\\sqrt{\\alpha_{t}}}\\left(\\mathbf{x}_{t}-\\frac{1-\\alpha_{t}}{\\sqrt{1-\\bar{\\alpha}_{t}}}\\boldsymbol{\\epsilon}_{\\theta}(\\mathbf{x}_{t},t)\\right)+\\sigma_{t}\\mathbf{z}\\tag{2}")))),(0,n.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,n.kt)("span",{parentName:"span",className:"base"},(0,n.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6528em",verticalAlign:"-0.2083em"}}),(0,n.kt)("span",{parentName:"span",className:"mord"},(0,n.kt)("span",{parentName:"span",className:"mord mathbf"},"x"),(0,n.kt)("span",{parentName:"span",className:"msupsub"},(0,n.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,n.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,n.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,n.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,n.kt)("span",{parentName:"span",className:"mord mtight"},(0,n.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"t"),(0,n.kt)("span",{parentName:"span",className:"mbin mtight"},"\u2212"),(0,n.kt)("span",{parentName:"span",className:"mord mtight"},"1"))))),(0,n.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.2083em"}},(0,n.kt)("span",{parentName:"span"})))))),(0,n.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,n.kt)("span",{parentName:"span",className:"mrel"},"="),(0,n.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,n.kt)("span",{parentName:"span",className:"base"},(0,n.kt)("span",{parentName:"span",className:"strut",style:{height:"2.4507em",verticalAlign:"-1.0007em"}}),(0,n.kt)("span",{parentName:"span",className:"mord"},(0,n.kt)("span",{parentName:"span",className:"mopen nulldelimiter"}),(0,n.kt)("span",{parentName:"span",className:"mfrac"},(0,n.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.3214em"}},(0,n.kt)("span",{parentName:"span",style:{top:"-2.314em"}},(0,n.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,n.kt)("span",{parentName:"span",className:"mord"},(0,n.kt)("span",{parentName:"span",className:"mord sqrt"},(0,n.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.7253em"}},(0,n.kt)("span",{parentName:"span",className:"svg-align",style:{top:"-3em"}},(0,n.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,n.kt)("span",{parentName:"span",className:"mord",style:{paddingLeft:"0.833em"}},(0,n.kt)("span",{parentName:"span",className:"mord"},(0,n.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.0037em"}},"\u03b1"),(0,n.kt)("span",{parentName:"span",className:"msupsub"},(0,n.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.2806em"}},(0,n.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0037em",marginRight:"0.05em"}},(0,n.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,n.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,n.kt)("span",{parentName:"span",className:"mord mtight"},(0,n.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"t"))))),(0,n.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,n.kt)("span",{parentName:"span"})))))))),(0,n.kt)("span",{parentName:"span",style:{top:"-2.6853em"}},(0,n.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,n.kt)("span",{parentName:"span",className:"hide-tail",style:{minWidth:"0.853em",height:"1.08em"}},(0,n.kt)("svg",{parentName:"span",xmlns:"http://www.w3.org/2000/svg",width:"400em",height:"1.08em",viewBox:"0 0 400000 1080",preserveAspectRatio:"xMinYMin slice"},(0,n.kt)("path",{parentName:"svg",d:"M95,702\nc-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14\nc0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54\nc44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10\ns173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429\nc69,-144,104.5,-217.7,106.5,-221\nl0 -0\nc5.3,-9.3,12,-14,20,-14\nH400000v40H845.2724\ns-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7\nc-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z\nM834 80h400000v40h-400000z"}))))),(0,n.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3147em"}},(0,n.kt)("span",{parentName:"span"}))))))),(0,n.kt)("span",{parentName:"span",style:{top:"-3.23em"}},(0,n.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,n.kt)("span",{parentName:"span",className:"frac-line",style:{borderBottomWidth:"0.04em"}})),(0,n.kt)("span",{parentName:"span",style:{top:"-3.677em"}},(0,n.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,n.kt)("span",{parentName:"span",className:"mord"},(0,n.kt)("span",{parentName:"span",className:"mord"},"1")))),(0,n.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.0007em"}},(0,n.kt)("span",{parentName:"span"}))))),(0,n.kt)("span",{parentName:"span",className:"mclose nulldelimiter"})),(0,n.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,n.kt)("span",{parentName:"span",className:"minner"},(0,n.kt)("span",{parentName:"span",className:"mopen delimcenter",style:{top:"0em"}},(0,n.kt)("span",{parentName:"span",className:"delimsizing size3"},"(")),(0,n.kt)("span",{parentName:"span",className:"mord"},(0,n.kt)("span",{parentName:"span",className:"mord mathbf"},"x"),(0,n.kt)("span",{parentName:"span",className:"msupsub"},(0,n.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.2806em"}},(0,n.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,n.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,n.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,n.kt)("span",{parentName:"span",className:"mord mtight"},(0,n.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"t"))))),(0,n.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,n.kt)("span",{parentName:"span"})))))),(0,n.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,n.kt)("span",{parentName:"span",className:"mbin"},"\u2212"),(0,n.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,n.kt)("span",{parentName:"span",className:"mord"},(0,n.kt)("span",{parentName:"span",className:"mopen nulldelimiter"}),(0,n.kt)("span",{parentName:"span",className:"mfrac"},(0,n.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.3214em"}},(0,n.kt)("span",{parentName:"span",style:{top:"-2.2778em"}},(0,n.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,n.kt)("span",{parentName:"span",className:"mord"},(0,n.kt)("span",{parentName:"span",className:"mord sqrt"},(0,n.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.8322em"}},(0,n.kt)("span",{parentName:"span",className:"svg-align",style:{top:"-3em"}},(0,n.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,n.kt)("span",{parentName:"span",className:"mord",style:{paddingLeft:"0.833em"}},(0,n.kt)("span",{parentName:"span",className:"mord"},"1"),(0,n.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,n.kt)("span",{parentName:"span",className:"mbin"},"\u2212"),(0,n.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,n.kt)("span",{parentName:"span",className:"mord"},(0,n.kt)("span",{parentName:"span",className:"mord accent"},(0,n.kt)("span",{parentName:"span",className:"vlist-t"},(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.5678em"}},(0,n.kt)("span",{parentName:"span",style:{top:"-3em"}},(0,n.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,n.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.0037em"}},"\u03b1")),(0,n.kt)("span",{parentName:"span",style:{top:"-3em"}},(0,n.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,n.kt)("span",{parentName:"span",className:"accent-body",style:{left:"-0.2222em"}},(0,n.kt)("span",{parentName:"span",className:"mord"},"\u02c9"))))))),(0,n.kt)("span",{parentName:"span",className:"msupsub"},(0,n.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.2806em"}},(0,n.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0037em",marginRight:"0.05em"}},(0,n.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,n.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,n.kt)("span",{parentName:"span",className:"mord mtight"},(0,n.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"t"))))),(0,n.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,n.kt)("span",{parentName:"span"})))))))),(0,n.kt)("span",{parentName:"span",style:{top:"-2.7922em"}},(0,n.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,n.kt)("span",{parentName:"span",className:"hide-tail",style:{minWidth:"0.853em",height:"1.08em"}},(0,n.kt)("svg",{parentName:"span",xmlns:"http://www.w3.org/2000/svg",width:"400em",height:"1.08em",viewBox:"0 0 400000 1080",preserveAspectRatio:"xMinYMin slice"},(0,n.kt)("path",{parentName:"svg",d:"M95,702\nc-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14\nc0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54\nc44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10\ns173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429\nc69,-144,104.5,-217.7,106.5,-221\nl0 -0\nc5.3,-9.3,12,-14,20,-14\nH400000v40H845.2724\ns-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7\nc-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z\nM834 80h400000v40h-400000z"}))))),(0,n.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.2078em"}},(0,n.kt)("span",{parentName:"span"}))))))),(0,n.kt)("span",{parentName:"span",style:{top:"-3.23em"}},(0,n.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,n.kt)("span",{parentName:"span",className:"frac-line",style:{borderBottomWidth:"0.04em"}})),(0,n.kt)("span",{parentName:"span",style:{top:"-3.677em"}},(0,n.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,n.kt)("span",{parentName:"span",className:"mord"},(0,n.kt)("span",{parentName:"span",className:"mord"},"1"),(0,n.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,n.kt)("span",{parentName:"span",className:"mbin"},"\u2212"),(0,n.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,n.kt)("span",{parentName:"span",className:"mord"},(0,n.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.0037em"}},"\u03b1"),(0,n.kt)("span",{parentName:"span",className:"msupsub"},(0,n.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.2806em"}},(0,n.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0037em",marginRight:"0.05em"}},(0,n.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,n.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,n.kt)("span",{parentName:"span",className:"mord mtight"},(0,n.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"t"))))),(0,n.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,n.kt)("span",{parentName:"span"}))))))))),(0,n.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.93em"}},(0,n.kt)("span",{parentName:"span"}))))),(0,n.kt)("span",{parentName:"span",className:"mclose nulldelimiter"})),(0,n.kt)("span",{parentName:"span",className:"mord"},(0,n.kt)("span",{parentName:"span",className:"mord"},(0,n.kt)("span",{parentName:"span",className:"mord"},(0,n.kt)("span",{parentName:"span",className:"mord boldsymbol"},"\u03f5"))),(0,n.kt)("span",{parentName:"span",className:"msupsub"},(0,n.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3361em"}},(0,n.kt)("span",{parentName:"span",style:{top:"-2.55em",marginRight:"0.05em"}},(0,n.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,n.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,n.kt)("span",{parentName:"span",className:"mord mtight"},(0,n.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.02778em"}},"\u03b8"))))),(0,n.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,n.kt)("span",{parentName:"span"})))))),(0,n.kt)("span",{parentName:"span",className:"mopen"},"("),(0,n.kt)("span",{parentName:"span",className:"mord"},(0,n.kt)("span",{parentName:"span",className:"mord mathbf"},"x"),(0,n.kt)("span",{parentName:"span",className:"msupsub"},(0,n.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.2806em"}},(0,n.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,n.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,n.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,n.kt)("span",{parentName:"span",className:"mord mtight"},(0,n.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"t"))))),(0,n.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,n.kt)("span",{parentName:"span"})))))),(0,n.kt)("span",{parentName:"span",className:"mpunct"},","),(0,n.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,n.kt)("span",{parentName:"span",className:"mord mathnormal"},"t"),(0,n.kt)("span",{parentName:"span",className:"mclose"},")"),(0,n.kt)("span",{parentName:"span",className:"mclose delimcenter",style:{top:"0em"}},(0,n.kt)("span",{parentName:"span",className:"delimsizing size3"},")"))),(0,n.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,n.kt)("span",{parentName:"span",className:"mbin"},"+"),(0,n.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}})),(0,n.kt)("span",{parentName:"span",className:"base"},(0,n.kt)("span",{parentName:"span",className:"strut",style:{height:"0.5944em",verticalAlign:"-0.15em"}}),(0,n.kt)("span",{parentName:"span",className:"mord"},(0,n.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"\u03c3"),(0,n.kt)("span",{parentName:"span",className:"msupsub"},(0,n.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.2806em"}},(0,n.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0359em",marginRight:"0.05em"}},(0,n.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,n.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,n.kt)("span",{parentName:"span",className:"mord mtight"},(0,n.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"t"))))),(0,n.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,n.kt)("span",{parentName:"span"})))))),(0,n.kt)("span",{parentName:"span",className:"mord mathbf"},"z")),(0,n.kt)("span",{parentName:"span",className:"tag"},(0,n.kt)("span",{parentName:"span",className:"strut",style:{height:"2.4507em",verticalAlign:"-1.0007em"}}),(0,n.kt)("span",{parentName:"span",className:"mord text"},(0,n.kt)("span",{parentName:"span",className:"mord"},"("),(0,n.kt)("span",{parentName:"span",className:"mord"},(0,n.kt)("span",{parentName:"span",className:"mord"},"2")),(0,n.kt)("span",{parentName:"span",className:"mord"},")"))))))),(0,n.kt)("p",{parentName:"li"},"\u5176\u4e2d\uff0c",(0,n.kt)("span",{parentName:"p",className:"math math-inline"},(0,n.kt)("span",{parentName:"span",className:"katex"},(0,n.kt)("span",{parentName:"span",className:"katex-mathml"},(0,n.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,n.kt)("semantics",{parentName:"math"},(0,n.kt)("mrow",{parentName:"semantics"},(0,n.kt)("msub",{parentName:"mrow"},(0,n.kt)("mi",{parentName:"msub",mathvariant:"bold"},"x"),(0,n.kt)("mi",{parentName:"msub"},"t"))),(0,n.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"\\mathbf{x}_t")))),(0,n.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,n.kt)("span",{parentName:"span",className:"base"},(0,n.kt)("span",{parentName:"span",className:"strut",style:{height:"0.5944em",verticalAlign:"-0.15em"}}),(0,n.kt)("span",{parentName:"span",className:"mord"},(0,n.kt)("span",{parentName:"span",className:"mord mathbf"},"x"),(0,n.kt)("span",{parentName:"span",className:"msupsub"},(0,n.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.2806em"}},(0,n.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,n.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,n.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,n.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"t")))),(0,n.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,n.kt)("span",{parentName:"span"})))))))))),"\u4ee3\u8868\u4e0a\u4e00\u6b65\u9aa4\u4e2d\u8f93\u51fa\u7684\u964d\u566a\u540e\u7684\u56fe\u50cf\uff0c",(0,n.kt)("span",{parentName:"p",className:"math math-inline"},(0,n.kt)("span",{parentName:"span",className:"katex"},(0,n.kt)("span",{parentName:"span",className:"katex-mathml"},(0,n.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,n.kt)("semantics",{parentName:"math"},(0,n.kt)("mrow",{parentName:"semantics"},(0,n.kt)("msub",{parentName:"mrow"},(0,n.kt)("mi",{parentName:"msub",mathvariant:"bold"},"x"),(0,n.kt)("mrow",{parentName:"msub"},(0,n.kt)("mi",{parentName:"mrow"},"t"),(0,n.kt)("mo",{parentName:"mrow"},"\u2212"),(0,n.kt)("mn",{parentName:"mrow"},"1")))),(0,n.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"\\mathbf{x}_{t-1}")))),(0,n.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,n.kt)("span",{parentName:"span",className:"base"},(0,n.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6528em",verticalAlign:"-0.2083em"}}),(0,n.kt)("span",{parentName:"span",className:"mord"},(0,n.kt)("span",{parentName:"span",className:"mord mathbf"},"x"),(0,n.kt)("span",{parentName:"span",className:"msupsub"},(0,n.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,n.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,n.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,n.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,n.kt)("span",{parentName:"span",className:"mord mtight"},(0,n.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"t"),(0,n.kt)("span",{parentName:"span",className:"mbin mtight"},"\u2212"),(0,n.kt)("span",{parentName:"span",className:"mord mtight"},"1"))))),(0,n.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.2083em"}},(0,n.kt)("span",{parentName:"span"})))))))))),"\u4ee3\u8868\u5f53\u524d\u6b65\u9aa4\u5373\u5c06\u8f93\u51fa\u7684\u964d\u566a\u540e\u7684\u56fe\u50cf\uff0c",(0,n.kt)("span",{parentName:"p",className:"math math-inline"},(0,n.kt)("span",{parentName:"span",className:"katex"},(0,n.kt)("span",{parentName:"span",className:"katex-mathml"},(0,n.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,n.kt)("semantics",{parentName:"math"},(0,n.kt)("mrow",{parentName:"semantics"},(0,n.kt)("msub",{parentName:"mrow"},(0,n.kt)("mi",{parentName:"msub"},"\u03f5"),(0,n.kt)("mi",{parentName:"msub"},"\u03b8"))),(0,n.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"\\epsilon_\\theta")))),(0,n.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,n.kt)("span",{parentName:"span",className:"base"},(0,n.kt)("span",{parentName:"span",className:"strut",style:{height:"0.5806em",verticalAlign:"-0.15em"}}),(0,n.kt)("span",{parentName:"span",className:"mord"},(0,n.kt)("span",{parentName:"span",className:"mord mathnormal"},"\u03f5"),(0,n.kt)("span",{parentName:"span",className:"msupsub"},(0,n.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3361em"}},(0,n.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,n.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,n.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,n.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.02778em"}},"\u03b8")))),(0,n.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,n.kt)("span",{parentName:"span"})))))))))),"\u4ee3\u8868Noise Predictor\u9884\u6d4b\u51fa\u7684\u566a\u58f0\uff0c",(0,n.kt)("span",{parentName:"p",className:"math math-inline"},(0,n.kt)("span",{parentName:"span",className:"katex"},(0,n.kt)("span",{parentName:"span",className:"katex-mathml"},(0,n.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,n.kt)("semantics",{parentName:"math"},(0,n.kt)("mrow",{parentName:"semantics"},(0,n.kt)("msub",{parentName:"mrow"},(0,n.kt)("mover",{parentName:"msub",accent:"true"},(0,n.kt)("mi",{parentName:"mover"},"\u03b1"),(0,n.kt)("mo",{parentName:"mover"},"\u02c9")),(0,n.kt)("mn",{parentName:"msub"},"1")),(0,n.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,n.kt)("msub",{parentName:"mrow"},(0,n.kt)("mover",{parentName:"msub",accent:"true"},(0,n.kt)("mi",{parentName:"mover"},"\u03b1"),(0,n.kt)("mo",{parentName:"mover"},"\u02c9")),(0,n.kt)("mn",{parentName:"msub"},"2")),(0,n.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,n.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"."),(0,n.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"."),(0,n.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"."),(0,n.kt)("msub",{parentName:"mrow"},(0,n.kt)("mover",{parentName:"msub",accent:"true"},(0,n.kt)("mi",{parentName:"mover"},"\u03b1"),(0,n.kt)("mo",{parentName:"mover"},"\u02c9")),(0,n.kt)("mi",{parentName:"msub"},"T"))),(0,n.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"\\bar{\\alpha}_1,\\bar{\\alpha}_2,...\\bar{\\alpha}_T")))),(0,n.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,n.kt)("span",{parentName:"span",className:"base"},(0,n.kt)("span",{parentName:"span",className:"strut",style:{height:"0.7622em",verticalAlign:"-0.1944em"}}),(0,n.kt)("span",{parentName:"span",className:"mord"},(0,n.kt)("span",{parentName:"span",className:"mord accent"},(0,n.kt)("span",{parentName:"span",className:"vlist-t"},(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.5678em"}},(0,n.kt)("span",{parentName:"span",style:{top:"-3em"}},(0,n.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,n.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.0037em"}},"\u03b1")),(0,n.kt)("span",{parentName:"span",style:{top:"-3em"}},(0,n.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,n.kt)("span",{parentName:"span",className:"accent-body",style:{left:"-0.2222em"}},(0,n.kt)("span",{parentName:"span",className:"mord"},"\u02c9"))))))),(0,n.kt)("span",{parentName:"span",className:"msupsub"},(0,n.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,n.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0037em",marginRight:"0.05em"}},(0,n.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,n.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,n.kt)("span",{parentName:"span",className:"mord mtight"},"1")))),(0,n.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,n.kt)("span",{parentName:"span"})))))),(0,n.kt)("span",{parentName:"span",className:"mpunct"},","),(0,n.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,n.kt)("span",{parentName:"span",className:"mord"},(0,n.kt)("span",{parentName:"span",className:"mord accent"},(0,n.kt)("span",{parentName:"span",className:"vlist-t"},(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.5678em"}},(0,n.kt)("span",{parentName:"span",style:{top:"-3em"}},(0,n.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,n.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.0037em"}},"\u03b1")),(0,n.kt)("span",{parentName:"span",style:{top:"-3em"}},(0,n.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,n.kt)("span",{parentName:"span",className:"accent-body",style:{left:"-0.2222em"}},(0,n.kt)("span",{parentName:"span",className:"mord"},"\u02c9"))))))),(0,n.kt)("span",{parentName:"span",className:"msupsub"},(0,n.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,n.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0037em",marginRight:"0.05em"}},(0,n.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,n.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,n.kt)("span",{parentName:"span",className:"mord mtight"},"2")))),(0,n.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,n.kt)("span",{parentName:"span"})))))),(0,n.kt)("span",{parentName:"span",className:"mpunct"},","),(0,n.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,n.kt)("span",{parentName:"span",className:"mord"},"..."),(0,n.kt)("span",{parentName:"span",className:"mord"},(0,n.kt)("span",{parentName:"span",className:"mord accent"},(0,n.kt)("span",{parentName:"span",className:"vlist-t"},(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.5678em"}},(0,n.kt)("span",{parentName:"span",style:{top:"-3em"}},(0,n.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,n.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.0037em"}},"\u03b1")),(0,n.kt)("span",{parentName:"span",style:{top:"-3em"}},(0,n.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,n.kt)("span",{parentName:"span",className:"accent-body",style:{left:"-0.2222em"}},(0,n.kt)("span",{parentName:"span",className:"mord"},"\u02c9"))))))),(0,n.kt)("span",{parentName:"span",className:"msupsub"},(0,n.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3283em"}},(0,n.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0037em",marginRight:"0.05em"}},(0,n.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,n.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,n.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.13889em"}},"T")))),(0,n.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,n.kt)("span",{parentName:"span"})))))))))),"\u4ee5\u53ca",(0,n.kt)("span",{parentName:"p",className:"math math-inline"},(0,n.kt)("span",{parentName:"span",className:"katex"},(0,n.kt)("span",{parentName:"span",className:"katex-mathml"},(0,n.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,n.kt)("semantics",{parentName:"math"},(0,n.kt)("mrow",{parentName:"semantics"},(0,n.kt)("msub",{parentName:"mrow"},(0,n.kt)("mi",{parentName:"msub"},"\u03b1"),(0,n.kt)("mn",{parentName:"msub"},"1")),(0,n.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,n.kt)("msub",{parentName:"mrow"},(0,n.kt)("mi",{parentName:"msub"},"\u03b1"),(0,n.kt)("mn",{parentName:"msub"},"2")),(0,n.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,n.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"."),(0,n.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"."),(0,n.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"."),(0,n.kt)("msub",{parentName:"mrow"},(0,n.kt)("mi",{parentName:"msub"},"\u03b1"),(0,n.kt)("mi",{parentName:"msub"},"T"))),(0,n.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"\\alpha_1,\\alpha_2,...\\alpha_T")))),(0,n.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,n.kt)("span",{parentName:"span",className:"base"},(0,n.kt)("span",{parentName:"span",className:"strut",style:{height:"0.625em",verticalAlign:"-0.1944em"}}),(0,n.kt)("span",{parentName:"span",className:"mord"},(0,n.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.0037em"}},"\u03b1"),(0,n.kt)("span",{parentName:"span",className:"msupsub"},(0,n.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,n.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0037em",marginRight:"0.05em"}},(0,n.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,n.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,n.kt)("span",{parentName:"span",className:"mord mtight"},"1")))),(0,n.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,n.kt)("span",{parentName:"span"})))))),(0,n.kt)("span",{parentName:"span",className:"mpunct"},","),(0,n.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,n.kt)("span",{parentName:"span",className:"mord"},(0,n.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.0037em"}},"\u03b1"),(0,n.kt)("span",{parentName:"span",className:"msupsub"},(0,n.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,n.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0037em",marginRight:"0.05em"}},(0,n.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,n.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,n.kt)("span",{parentName:"span",className:"mord mtight"},"2")))),(0,n.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,n.kt)("span",{parentName:"span"})))))),(0,n.kt)("span",{parentName:"span",className:"mpunct"},","),(0,n.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,n.kt)("span",{parentName:"span",className:"mord"},"..."),(0,n.kt)("span",{parentName:"span",className:"mord"},(0,n.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.0037em"}},"\u03b1"),(0,n.kt)("span",{parentName:"span",className:"msupsub"},(0,n.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3283em"}},(0,n.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0037em",marginRight:"0.05em"}},(0,n.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,n.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,n.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.13889em"}},"T")))),(0,n.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,n.kt)("span",{parentName:"span"})))))))))),"\u662f\u4e24\u7ec4\u6743\u91cd\u5e8f\u5217\uff1b")),(0,n.kt)("li",{parentName:"ol"},(0,n.kt)("p",{parentName:"li"},"\u7ed3\u675f\u672c\u6b21for\u5faa\u73af\uff1b")),(0,n.kt)("li",{parentName:"ol"},(0,n.kt)("p",{parentName:"li"},"\u5f53",(0,n.kt)("span",{parentName:"p",className:"math math-inline"},(0,n.kt)("span",{parentName:"span",className:"katex"},(0,n.kt)("span",{parentName:"span",className:"katex-mathml"},(0,n.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,n.kt)("semantics",{parentName:"math"},(0,n.kt)("mrow",{parentName:"semantics"},(0,n.kt)("mi",{parentName:"mrow"},"t"),(0,n.kt)("mo",{parentName:"mrow"},"="),(0,n.kt)("mn",{parentName:"mrow"},"1")),(0,n.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"t=1")))),(0,n.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,n.kt)("span",{parentName:"span",className:"base"},(0,n.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6151em"}}),(0,n.kt)("span",{parentName:"span",className:"mord mathnormal"},"t"),(0,n.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,n.kt)("span",{parentName:"span",className:"mrel"},"="),(0,n.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,n.kt)("span",{parentName:"span",className:"base"},(0,n.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6444em"}}),(0,n.kt)("span",{parentName:"span",className:"mord"},"1"))))),"\u65f6\uff0c\u5f97\u5230",(0,n.kt)("span",{parentName:"p",className:"math math-inline"},(0,n.kt)("span",{parentName:"span",className:"katex"},(0,n.kt)("span",{parentName:"span",className:"katex-mathml"},(0,n.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,n.kt)("semantics",{parentName:"math"},(0,n.kt)("mrow",{parentName:"semantics"},(0,n.kt)("msub",{parentName:"mrow"},(0,n.kt)("mi",{parentName:"msub",mathvariant:"bold"},"x"),(0,n.kt)("mn",{parentName:"msub"},"0"))),(0,n.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"\\mathbf{x}_0")))),(0,n.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,n.kt)("span",{parentName:"span",className:"base"},(0,n.kt)("span",{parentName:"span",className:"strut",style:{height:"0.5944em",verticalAlign:"-0.15em"}}),(0,n.kt)("span",{parentName:"span",className:"mord"},(0,n.kt)("span",{parentName:"span",className:"mord mathbf"},"x"),(0,n.kt)("span",{parentName:"span",className:"msupsub"},(0,n.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,n.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,n.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,n.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,n.kt)("span",{parentName:"span",className:"mord mtight"},"0")))),(0,n.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,n.kt)("span",{parentName:"span"})))))))))),"\uff0c\u5373\u6700\u7ec8\u964d\u566a\u540e\u7684\u56fe\u50cf\u3002"))),(0,n.kt)("p",null,(0,n.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_imagesimage-20231203133323788.png",alt:"image-20231203133323788"})))}c.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/11f7daa4.531ed800.js b/assets/js/11f7daa4.531ed800.js new file mode 100644 index 000000000..cac7d9278 --- /dev/null +++ b/assets/js/11f7daa4.531ed800.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunknpy_notebook=self.webpackChunknpy_notebook||[]).push([[1180],{3905:(e,n,t)=>{t.d(n,{Zo:()=>s,kt:()=>f});var r=t(7294);function o(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function a(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function i(e){for(var n=1;n=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var c=r.createContext({}),p=function(e){var n=r.useContext(c),t=n;return e&&(t="function"==typeof e?e(n):i(i({},n),e)),t},s=function(e){var n=p(e.components);return r.createElement(c.Provider,{value:n},e.children)},u="mdxType",m={inlineCode:"code",wrapper:function(e){var n=e.children;return r.createElement(r.Fragment,{},n)}},d=r.forwardRef((function(e,n){var t=e.components,o=e.mdxType,a=e.originalType,c=e.parentName,s=l(e,["components","mdxType","originalType","parentName"]),u=p(t),d=o,f=u["".concat(c,".").concat(d)]||u[d]||m[d]||a;return t?r.createElement(f,i(i({ref:n},s),{},{components:t})):r.createElement(f,i({ref:n},s))}));function f(e,n){var t=arguments,o=n&&n.mdxType;if("string"==typeof e||o){var a=t.length,i=new Array(a);i[0]=d;var l={};for(var c in n)hasOwnProperty.call(n,c)&&(l[c]=n[c]);l.originalType=e,l[u]="string"==typeof e?e:o,i[1]=l;for(var p=2;p{t.r(n),t.d(n,{assets:()=>c,contentTitle:()=>i,default:()=>m,frontMatter:()=>a,metadata:()=>l,toc:()=>p});var r=t(7462),o=(t(7294),t(3905));const a={},i="\u6392\u5217\u7ec4\u5408\uff08\u6c4230\u7684\u500d\u6570\uff09",l={unversionedId:"Algorithms/\u9898\u89e3/\u6392\u5217\u7ec4\u5408\uff08\u6c4230\u7684\u500d\u6570\uff09",id:"Algorithms/\u9898\u89e3/\u6392\u5217\u7ec4\u5408\uff08\u6c4230\u7684\u500d\u6570\uff09",title:"\u6392\u5217\u7ec4\u5408\uff08\u6c4230\u7684\u500d\u6570\uff09",description:"\u8f93\u5165\u4e00\u4e2a\u6570\uff0c\u6bd4\u5982201\uff0c\u8ba9\u6570\u5b57\u968f\u610f\u7ec4\u5408\uff0c\u662f\u5426\u80fd\u7ec4\u5408\u51fa30\u7684\u500d\u6570\uff0c\u5982\u679c\u80fd\u591f\u7ec4\u5408\u621030\u7684\u500d\u6570\uff0c\u5c31\u8f93\u51fa\u6700\u5927\u7684\u500d\u6570\uff0c\u4e0d\u80fd\u5c31\u8f93\u51fa-1",source:"@site/docs/Algorithms/4-\u9898\u89e3/\u6392\u5217\u7ec4\u5408\uff08\u6c4230\u7684\u500d\u6570\uff09.md",sourceDirName:"Algorithms/4-\u9898\u89e3",slug:"/Algorithms/\u9898\u89e3/\u6392\u5217\u7ec4\u5408\uff08\u6c4230\u7684\u500d\u6570\uff09",permalink:"/docs/Algorithms/\u9898\u89e3/\u6392\u5217\u7ec4\u5408\uff08\u6c4230\u7684\u500d\u6570\uff09",draft:!1,tags:[],version:"current",frontMatter:{},sidebar:"algorithms",previous:{title:"\u53cd\u5e8f\u8f93\u51fa",permalink:"/docs/Algorithms/\u9898\u89e3/\u53cd\u5e8f\u8f93\u51fa"}},c={},p=[{value:"\u53c2\u8003\u4ee3\u7801",id:"\u53c2\u8003\u4ee3\u7801",level:2},{value:"\u9898\u89e3",id:"\u9898\u89e3",level:2}],s={toc:p},u="wrapper";function m(e){let{components:n,...t}=e;return(0,o.kt)(u,(0,r.Z)({},s,t,{components:n,mdxType:"MDXLayout"}),(0,o.kt)("h1",{id:"\u6392\u5217\u7ec4\u5408\u6c4230\u7684\u500d\u6570"},"\u6392\u5217\u7ec4\u5408\uff08\u6c4230\u7684\u500d\u6570\uff09"),(0,o.kt)("admonition",{type:"tip"},(0,o.kt)("p",{parentName:"admonition"},"\u8f93\u5165\u4e00\u4e2a\u6570\uff0c\u6bd4\u5982201\uff0c\u8ba9\u6570\u5b57\u968f\u610f\u7ec4\u5408\uff0c\u662f\u5426\u80fd\u7ec4\u5408\u51fa30\u7684\u500d\u6570\uff0c\u5982\u679c\u80fd\u591f\u7ec4\u5408\u621030\u7684\u500d\u6570\uff0c\u5c31\u8f93\u51fa\u6700\u5927\u7684\u500d\u6570\uff0c\u4e0d\u80fd\u5c31\u8f93\u51fa-1"),(0,o.kt)("p",{parentName:"admonition"},"\u4f8b\u5982\u8f93\u5165201\u53ef\u4ee5\u968f\u610f\u7ec4\u5408\u6210"),(0,o.kt)("p",{parentName:"admonition"},"201\uff0c210\uff0c012\uff0c021\uff0c102\uff0c120\u7b49\u6570\u5b57"),(0,o.kt)("p",{parentName:"admonition"},"\u5176\u4e2d120\uff0c210\u90fd\u662f30\u7684\u500d\u6570\uff0c\u7531\u4e8e\u8981\u627e\u6700\u5927\u7684\uff0c\u6240\u4ee5\u7b54\u6848\u662f210"),(0,o.kt)("p",{parentName:"admonition"},"\u8f93\u5165\u6837\u4f8b\uff1a201\n\u8f93\u51fa\u6837\u4f8b\uff1a210")),(0,o.kt)("h2",{id:"\u53c2\u8003\u4ee3\u7801"},"\u53c2\u8003\u4ee3\u7801"),(0,o.kt)("pre",null,(0,o.kt)("code",{parentName:"pre",className:"language-c++"},"#include \n\nusing namespace std;\n\nint main() {\n string s;\n cin >> s;\n int maxx = 0, flag = 0;\n sort(s.begin(), s.end());\n do {\n int now = 0;\n for (int i = 0; i < s.size(); i++) {\n now = now * 10 + s[i] - '0';\n }\n if (now % 30 == 0) {\n flag = 1;\n maxx = max(maxx, now);\n }\n } while (next_permutation(s.begin(), s.end()));\n if (flag == 1) {\n cout << maxx << endl;\n return 0;\n }\n else {\n cout << -1 << endl;\n }\n}\n\n")),(0,o.kt)("h2",{id:"\u9898\u89e3"},"\u9898\u89e3"),(0,o.kt)("p",null,"\u4f7f\u7528C++ STL\u63d0\u4f9b\u7684\u6392\u5217\u7ec4\u5408\u6a21\u7248"),(0,o.kt)("p",null,"\u9996\u5148\u5c06\u4ee3\u6392\u5217\u7ec4\u5408\u7684\u5b57\u7b26\u4e32\u6216\u6570\u7ec4\u8fdb\u884c\u6392\u5e8f"),(0,o.kt)("pre",null,(0,o.kt)("code",{parentName:"pre",className:"language-c++"},"sort(list.begin(), list.end());\n")),(0,o.kt)("p",null,"\u4f7f\u7528\u6392\u5217\u7ec4\u5408\u6a21\u7248"),(0,o.kt)("pre",null,(0,o.kt)("code",{parentName:"pre",className:"language-c++"},"do {\n something();\n} while (next_permutation(list.begin(), list.end()));\n")),(0,o.kt)("p",null,"\u6b64\u65f6\uff0c\u5728\u6bcf\u4e00\u4e2ado\u5faa\u73af\u4e2d\uff0clist\u6309\u4ece\u5c0f\u5230\u5927\u7684\u987a\u5e8f\u8fdb\u884c\u6392\u5217\u7ec4\u5408\u904d\u5386"))}m.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/1331f6cd.06bce042.js b/assets/js/1331f6cd.06bce042.js new file mode 100644 index 000000000..cb38bf134 --- /dev/null +++ b/assets/js/1331f6cd.06bce042.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunknpy_notebook=self.webpackChunknpy_notebook||[]).push([[7336],{3905:(e,t,r)=>{r.d(t,{Zo:()=>s,kt:()=>d});var n=r(7294);function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function a(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var l=n.createContext({}),p=function(e){var t=n.useContext(l),r=t;return e&&(r="function"==typeof e?e(t):a(a({},t),e)),r},s=function(e){var t=p(e.components);return n.createElement(l.Provider,{value:t},e.children)},u="mdxType",m={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},f=n.forwardRef((function(e,t){var r=e.components,o=e.mdxType,i=e.originalType,l=e.parentName,s=c(e,["components","mdxType","originalType","parentName"]),u=p(r),f=o,d=u["".concat(l,".").concat(f)]||u[f]||m[f]||i;return r?n.createElement(d,a(a({ref:t},s),{},{components:r})):n.createElement(d,a({ref:t},s))}));function d(e,t){var r=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var i=r.length,a=new Array(i);a[0]=f;var c={};for(var l in t)hasOwnProperty.call(t,l)&&(c[l]=t[l]);c.originalType=e,c[u]="string"==typeof e?e:o,a[1]=c;for(var p=2;p{r.r(t),r.d(t,{assets:()=>l,contentTitle:()=>a,default:()=>m,frontMatter:()=>i,metadata:()=>c,toc:()=>p});var n=r(7462),o=(r(7294),r(3905));const i={},a="Welcome",c={unversionedId:"Algorithms/intro",id:"Algorithms/intro",title:"Welcome",description:"\u6b22\u8fce\u6765\u5230\u7b14\u8bb0\u672c\u7684\u7b97\u6cd5\u90e8\u5206",source:"@site/docs/Algorithms/1-intro.md",sourceDirName:"Algorithms",slug:"/Algorithms/intro",permalink:"/docs/Algorithms/intro",draft:!1,tags:[],version:"current",sidebarPosition:1,frontMatter:{},sidebar:"algorithms",next:{title:"STL\u6a21\u677f",permalink:"/docs/Algorithms/STL\u6a21\u677f"}},l={},p=[{value:"\u652f\u6301\u6211\uff01",id:"\u652f\u6301\u6211",level:2}],s={toc:p},u="wrapper";function m(e){let{components:t,...i}=e;return(0,o.kt)(u,(0,n.Z)({},s,i,{components:t,mdxType:"MDXLayout"}),(0,o.kt)("h1",{id:"welcome"},"Welcome"),(0,o.kt)("admonition",{type:"tip"},(0,o.kt)("p",{parentName:"admonition"},"\u6b22\u8fce\u6765\u5230\u7b14\u8bb0\u672c\u7684\u7b97\u6cd5\u90e8\u5206")),(0,o.kt)("h2",{id:"\u652f\u6301\u6211"},"\u652f\u6301\u6211\uff01"),(0,o.kt)("p",null,"\u5982\u679c\u53ef\u4ee5\u5e2e\u5230\u4f60\u7684\u8bdd\u5c31\u7ed9\u4e2a\u514d\u8d39\u7684Star\u5427\uff01"),(0,o.kt)("p",null,(0,o.kt)("img",{src:r(9163).Z,width:"2778",height:"2046"})))}m.isMDXComponent=!0},9163:(e,t,r)=>{r.d(t,{Z:()=>n});const n=r.p+"assets/images/intro-822c34cd9b5577b06df8bb0956cdf947.png"}}]); \ No newline at end of file diff --git a/assets/js/16ddbeca.908930c8.js b/assets/js/16ddbeca.908930c8.js new file mode 100644 index 000000000..1977f335a --- /dev/null +++ b/assets/js/16ddbeca.908930c8.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunknpy_notebook=self.webpackChunknpy_notebook||[]).push([[3328],{3905:(a,e,t)=>{t.d(e,{Zo:()=>o,kt:()=>h});var n=t(7294);function s(a,e,t){return e in a?Object.defineProperty(a,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):a[e]=t,a}function p(a,e){var t=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable}))),t.push.apply(t,n)}return t}function m(a){for(var e=1;e=0||(s[t]=a[t]);return s}(a,e);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(a);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(a,t)&&(s[t]=a[t])}return s}var l=n.createContext({}),i=function(a){var e=n.useContext(l),t=e;return a&&(t="function"==typeof a?a(e):m(m({},e),a)),t},o=function(a){var e=i(a.components);return n.createElement(l.Provider,{value:e},a.children)},N="mdxType",k={inlineCode:"code",wrapper:function(a){var e=a.children;return n.createElement(n.Fragment,{},e)}},c=n.forwardRef((function(a,e){var t=a.components,s=a.mdxType,p=a.originalType,l=a.parentName,o=r(a,["components","mdxType","originalType","parentName"]),N=i(t),c=s,h=N["".concat(l,".").concat(c)]||N[c]||k[c]||p;return t?n.createElement(h,m(m({ref:e},o),{},{components:t})):n.createElement(h,m({ref:e},o))}));function h(a,e){var t=arguments,s=e&&e.mdxType;if("string"==typeof a||s){var p=t.length,m=new Array(p);m[0]=c;var r={};for(var l in e)hasOwnProperty.call(e,l)&&(r[l]=e[l]);r.originalType=a,r[N]="string"==typeof a?a:s,m[1]=r;for(var i=2;i{t.r(e),t.d(e,{assets:()=>l,contentTitle:()=>m,default:()=>k,frontMatter:()=>p,metadata:()=>r,toc:()=>i});var n=t(7462),s=(t(7294),t(3905));const p={},m="\u672c\u79d1\u6bd5\u4e1a\u8bba\u6587\uff1a\u57fa\u4e8e Prompt Learning \u7684\u89c6\u89c9-\u8bed\u8a00\u5927\u6a21\u578b\u5728\u56fe\u50cf\u751f\u6210\u4e2d\u7684\u5e94\u7528\u4e0e\u7814\u7a76",r={unversionedId:"Deep-Learning/\u5b9e\u6218\u7ec3\u4e60/Undergraduate-Dissertation",id:"Deep-Learning/\u5b9e\u6218\u7ec3\u4e60/Undergraduate-Dissertation",title:"\u672c\u79d1\u6bd5\u4e1a\u8bba\u6587\uff1a\u57fa\u4e8e Prompt Learning \u7684\u89c6\u89c9-\u8bed\u8a00\u5927\u6a21\u578b\u5728\u56fe\u50cf\u751f\u6210\u4e2d\u7684\u5e94\u7528\u4e0e\u7814\u7a76",description:"\u672c\u7bc7\u8bba\u6587\u4e3b\u8981\u57fa\u4e8e IPL \u7684\u601d\u60f3\u5b9e\u73b0\u3002\u672c\u4ed3\u5e93\u5927\u90e8\u5206\u4ece IPL-Zero-Shot-Generative-Model-Adaptation fork \u800c\u6765\u5e76\u505a\u51fa\u4e86\u4e00\u5b9a\u4fee\u6539\u3002",source:"@site/docs/Deep-Learning/4-\u5b9e\u6218\u7ec3\u4e60/3-Undergraduate-Dissertation.md",sourceDirName:"Deep-Learning/4-\u5b9e\u6218\u7ec3\u4e60",slug:"/Deep-Learning/\u5b9e\u6218\u7ec3\u4e60/Undergraduate-Dissertation",permalink:"/docs/Deep-Learning/\u5b9e\u6218\u7ec3\u4e60/Undergraduate-Dissertation",draft:!1,tags:[],version:"current",sidebarPosition:3,frontMatter:{},sidebar:"deep_learning",previous:{title:"Speaker Classification",permalink:"/docs/Deep-Learning/\u5b9e\u6218\u7ec3\u4e60/Speaker Classification"},next:{title:"\u81ea\u6ce8\u610f\u529b\uff08Self-Attention\uff09",permalink:"/docs/Deep-Learning/\u5927\u6a21\u578b/Self-Attention"}},l={},i=[{value:"\u4f9d\u8d56",id:"\u4f9d\u8d56",level:2},{value:"\u521b\u5efa Anaconda \u865a\u62df\u73af\u5883",id:"\u521b\u5efa-anaconda-\u865a\u62df\u73af\u5883",level:3},{value:"\u5b89\u88c5\u4f9d\u8d56",id:"\u5b89\u88c5\u4f9d\u8d56",level:3},{value:"\u4e0b\u8f7d\u9884\u8bad\u7ec3\u751f\u6210\u5668",id:"\u4e0b\u8f7d\u9884\u8bad\u7ec3\u751f\u6210\u5668",level:3},{value:"\u6982\u8ff0",id:"\u6982\u8ff0",level:2},{value:"\u6280\u672f\u7ec6\u8282",id:"\u6280\u672f\u7ec6\u8282",level:2},{value:"prompts \u7684\u521d\u59cb\u5316",id:"prompts-\u7684\u521d\u59cb\u5316",level:3},{value:"prompts \u7684 tokenize \u4e0e embedding",id:"prompts-\u7684-tokenize-\u4e0e-embedding",level:3},{value:"compute_text_features \u7684\u5b9e\u73b0\u7ec6\u8282",id:"compute_text_features-\u7684\u5b9e\u73b0\u7ec6\u8282",level:3},{value:"\u8bad\u7ec3 stage 1",id:"\u8bad\u7ec3-stage-1",level:3},{value:"Z\u7a7a\u95f4\u4e0eW\u7a7a\u95f4",id:"z\u7a7a\u95f4\u4e0ew\u7a7a\u95f4",level:4},{value:"\u635f\u5931\u51fd\u6570",id:"\u635f\u5931\u51fd\u6570",level:4},{value:"\u8bad\u7ec3 stage 2",id:"\u8bad\u7ec3-stage-2",level:3},{value:"\u786e\u5b9a\u76ee\u6807\u57df\u751f\u6210\u57df\u9700\u8981\u66f4\u65b0\u7684\u5c42",id:"\u786e\u5b9a\u76ee\u6807\u57df\u751f\u6210\u57df\u9700\u8981\u66f4\u65b0\u7684\u5c42",level:4},{value:"\u635f\u5931\u51fd\u6570",id:"\u635f\u5931\u51fd\u6570-1",level:4},{value:"\u5b9a\u91cf\u5206\u6790\u6307\u6807",id:"\u5b9a\u91cf\u5206\u6790\u6307\u6807",level:2},{value:"\u65b0\u589e\u529f\u80fd",id:"\u65b0\u589e\u529f\u80fd",level:2},{value:"\u81ea\u5b9a\u4e49\u56fe\u50cf\u98ce\u683c\u8fc1\u79fb",id:"\u81ea\u5b9a\u4e49\u56fe\u50cf\u98ce\u683c\u8fc1\u79fb",level:3},{value:"\u4fee\u6539\u65e5\u5fd7",id:"\u4fee\u6539\u65e5\u5fd7",level:4},{value:"\u95ee\u9898\u63d0\u51fa\u4e0e\u6539\u8fdb",id:"\u95ee\u9898\u63d0\u51fa\u4e0e\u6539\u8fdb",level:2},{value:"\u6539\u8fdb\uff1aMapper \u7ed3\u6784\u7684\u8bbe\u8ba1",id:"\u6539\u8fdbmapper-\u7ed3\u6784\u7684\u8bbe\u8ba1",level:3},{value:"\u95ee\u9898\uff1a\u8bad\u7ec3\u9636\u6bb5\u4eba\u5de5 prompts \u7684\u4f5c\u7528\u662f\u4ec0\u4e48\uff1f",id:"\u95ee\u9898\u8bad\u7ec3\u9636\u6bb5\u4eba\u5de5-prompts-\u7684\u4f5c\u7528\u662f\u4ec0\u4e48",level:3},{value:"ctx_init \u7684\u4f5c\u7528\uff08\u4e0e\u57df\u6807\u7b7e\u62fc\u63a5\u540e\u7684 ctx_init\uff09",id:"ctx_init-\u7684\u4f5c\u7528\u4e0e\u57df\u6807\u7b7e\u62fc\u63a5\u540e\u7684-ctx_init",level:4},{value:"templates \u7684\u4f5c\u7528",id:"templates-\u7684\u4f5c\u7528",level:4},{value:"\u601d\u8003",id:"\u601d\u8003",level:4},{value:"\u6539\u8fdb\uff1a\u4f7f\u5b66\u4e60\u5230\u7684 prompts \u5411\u7528\u6237\u81ea\u4e3b\u8bbe\u8ba1\u7684 prompts \u6a21\u677f\u5bf9\u9f50",id:"\u6539\u8fdb\u4f7f\u5b66\u4e60\u5230\u7684-prompts-\u5411\u7528\u6237\u81ea\u4e3b\u8bbe\u8ba1\u7684-prompts-\u6a21\u677f\u5bf9\u9f50",level:3},{value:"\u5bf9 global_clip_loss \u7684\u6539\u8fdb",id:"\u5bf9-global_clip_loss-\u7684\u6539\u8fdb",level:4},{value:"\u5bf9 clip_directional_loss \u7684\u6539\u8fdb",id:"\u5bf9-clip_directional_loss-\u7684\u6539\u8fdb",level:4}],o={toc:i},N="wrapper";function k(a){let{components:e,...t}=a;return(0,s.kt)(N,(0,n.Z)({},o,t,{components:e,mdxType:"MDXLayout"}),(0,s.kt)("h1",{id:"\u672c\u79d1\u6bd5\u4e1a\u8bba\u6587\u57fa\u4e8e-prompt-learning-\u7684\u89c6\u89c9-\u8bed\u8a00\u5927\u6a21\u578b\u5728\u56fe\u50cf\u751f\u6210\u4e2d\u7684\u5e94\u7528\u4e0e\u7814\u7a76"},"\u672c\u79d1\u6bd5\u4e1a\u8bba\u6587\uff1a\u57fa\u4e8e Prompt Learning \u7684\u89c6\u89c9-\u8bed\u8a00\u5927\u6a21\u578b\u5728\u56fe\u50cf\u751f\u6210\u4e2d\u7684\u5e94\u7528\u4e0e\u7814\u7a76"),(0,s.kt)("p",null,"\u672c\u7bc7\u8bba\u6587\u4e3b\u8981\u57fa\u4e8e ",(0,s.kt)("a",{parentName:"p",href:"https://arxiv.org/pdf/2304.03119.pdf"},"IPL")," \u7684\u601d\u60f3\u5b9e\u73b0\u3002\u672c\u4ed3\u5e93\u5927\u90e8\u5206\u4ece ",(0,s.kt)("a",{parentName:"p",href:"https://github.com/Picsart-AI-Research/IPL-Zero-Shot-Generative-Model-Adaptation"},"IPL-Zero-Shot-Generative-Model-Adaptation")," fork \u800c\u6765\u5e76\u505a\u51fa\u4e86\u4e00\u5b9a\u4fee\u6539\u3002"),(0,s.kt)("h2",{id:"\u4f9d\u8d56"},"\u4f9d\u8d56"),(0,s.kt)("h3",{id:"\u521b\u5efa-anaconda-\u865a\u62df\u73af\u5883"},"\u521b\u5efa Anaconda \u865a\u62df\u73af\u5883"),(0,s.kt)("pre",null,(0,s.kt)("code",{parentName:"pre",className:"language-powershell"},"conda create -n ipl python=3.8\nconda activate ipl\n")),(0,s.kt)("h3",{id:"\u5b89\u88c5\u4f9d\u8d56"},"\u5b89\u88c5\u4f9d\u8d56"),(0,s.kt)("p",null,"\u8bf7\u786e\u4fdd NVIDIA \u9a71\u52a8\u3001CUDA \u4ee5\u53ca PyTorch \u4e4b\u95f4\u7248\u672c\u4e92\u76f8\u5339\u914d\u3002"),(0,s.kt)("pre",null,(0,s.kt)("code",{parentName:"pre",className:"language-powershell"},"conda install pytorch torchvision torchaudio pytorch-cuda=11.8 -c pytorch -c nvidia\npip install ftfy regex tqdm ninja\npip install git+https://github.com/openai/CLIP.git\n")),(0,s.kt)("h3",{id:"\u4e0b\u8f7d\u9884\u8bad\u7ec3\u751f\u6210\u5668"},"\u4e0b\u8f7d\u9884\u8bad\u7ec3\u751f\u6210\u5668"),(0,s.kt)("p",null,"\u9884\u8bad\u7ec3\u7684\u6e90\u57df\u751f\u6210\u5668\u53ef\u4ee5\u901a\u8fc7 ",(0,s.kt)("a",{parentName:"p",href:"https://drive.google.com/drive/folders/1FW8XfDbTg9MLEodEeIl6zJEaCVyZ053L?usp=sharing"},"Google Drive "),"\u6216\u8005 ",(0,s.kt)("a",{parentName:"p",href:"https://cloud.tsinghua.edu.cn/d/dbd0955d9a9547dc99f2/"},"Tsinghua Cloud")," \u4e0b\u8f7d\uff0c\u5e76\u5c06\u5176\u7f6e\u4e8e ",(0,s.kt)("inlineCode",{parentName:"p"},"./pre_stylegan")," \u6587\u4ef6\u5939\u4e2d\u3002"),(0,s.kt)("h2",{id:"\u6982\u8ff0"},"\u6982\u8ff0"),(0,s.kt)("h2",{id:"\u6280\u672f\u7ec6\u8282"},"\u6280\u672f\u7ec6\u8282"),(0,s.kt)("h3",{id:"prompts-\u7684\u521d\u59cb\u5316"},"prompts \u7684\u521d\u59cb\u5316"),(0,s.kt)("p",null,(0,s.kt)("inlineCode",{parentName:"p"},"ctx_init "),"\u53c2\u6570\u7528\u4e8e\u521d\u59cb\u5316 prompts\uff0c\u5b98\u65b9\u63d0\u4f9b\u7684\u6f14\u793a context \u662f",(0,s.kt)("inlineCode",{parentName:"p"},"a photo of a"),"\u3002"),(0,s.kt)("pre",null,(0,s.kt)("code",{parentName:"pre",className:"language-python"},'source_prompts = [prompt_prefix + " " + args.source_class]\n target_prompts = [prompt_prefix + " " + args.target_class]\n')),(0,s.kt)("p",null,"\u6e90\u57df\u7684\u521d\u59cb\u63d0\u793a\u8bcd ",(0,s.kt)("inlineCode",{parentName:"p"},"source_prompts")," \u662f ctx_init \u4e0e\u6e90\u57df\u6807\u7b7e\u7684\u7ec4\u5408\u3002\u82e5\u6e90\u57df\u6807\u7b7e\u4e3a ",(0,s.kt)("inlineCode",{parentName:"p"},"photo"),"\uff0c\u5219\u6e90\u57df\u7684\u521d\u59cb\u63d0\u793a\u8bcd\u662f ",(0,s.kt)("inlineCode",{parentName:"p"},"a photo of a photo"),"\u3002\u76ee\u6807\u57df\u7684\u521d\u59cb\u63d0\u793a\u8bcd\u540c\u7406\u3002"),(0,s.kt)("h3",{id:"prompts-\u7684-tokenize-\u4e0e-embedding"},"prompts \u7684 tokenize \u4e0e embedding"),(0,s.kt)("p",null,"\u6e90\u57df\u4ee5\u53ca\u76ee\u6807\u57df\u7684\u521d\u59cb\u63d0\u793a\u8bcd\u63a5\u4e0b\u6765\u4f1a\u8fdb\u884c tokenize\uff1a"),(0,s.kt)("pre",null,(0,s.kt)("code",{parentName:"pre",className:"language-python"},"source_tokenized_prompts = torch.cat([clip.tokenize(p) for p in source_prompts]).to(device)\n# (1, 77) 'sot a photo of a photo eot' \u5728\u7ecf\u8fc7tokenize\u540e\u4e3atensor [[49406, 320, 1125, 539, 320, 1125, 49407, etc]]\n# 77\u662fCLIP\u5728tokenize\u65b9\u6cd5\u4e2d\u7f3a\u7701\u7684context_length\uff0c\u8d85\u8fc7context_length\u5c06\u88abtruncate\uff0c\u4e0d\u8db3\u7684\u5c06\u75280\u8865\u9f50\ntarget_tokenized_prompts = torch.cat([clip.tokenize(p) for p in target_prompts]).to(device)\n# (1, 77) 'sot a photo of a disney' \u5728\u7ecf\u8fc7tokenize\u540e\u4e3atensor [[49406, 320, 1125, 539, 320, 4696, 49407, etc]]\n# 77\u662fCLIP\u5728tokenize\u65b9\u6cd5\u4e2d\u7f3a\u7701\u7684context_length\uff0c\u8d85\u8fc7context_length\u5c06\u88abtruncate\uff0c\u4e0d\u8db3\u7684\u5c06\u75280\u8865\u9f50\n")),(0,s.kt)("p",null,"tokenize \u662f CLIP \u5bf9\u9001\u5165\u7684 prompt \u5b57\u7b26\u4e32\u8fdb\u884c\u6807\u8bb0\u5316\u5904\u7406\uff0c\u5728\u5934\u90e8\u548c\u5c3e\u90e8\u6dfb\u52a0 startoftext \u4ee5\u53ca endoftext \u6807\u8bb0\uff0c\u6700\u7ec8\u4e3a\u4e24\u4e2a\u9996\u5c3e\u6807\u8bb0\u548c\u5168\u90e8\u5355\u8bcd\u751f\u6210 int \u6807\u8bb0\u3002\u5176\u4e2d CLIP \u6a21\u578b\u7f3a\u7701\u7684 ",(0,s.kt)("inlineCode",{parentName:"p"},"context_length")," \u662f77\uff0c\u82e5 prompt \u5927\u4e8e 77 \u4f1a\u8fdb\u884c\u622a\u65ad\uff08truncate\uff09\uff0c\u82e5\u5c0f\u4e8e 77 \u4f1a\u8fdb\u884c\u8865\u96f6\uff0c\u56e0\u6b64 ",(0,s.kt)("inlineCode",{parentName:"p"},"source_tokenized_prompts")," \u4e0e ",(0,s.kt)("inlineCode",{parentName:"p"},"target_tokenized_prompts")," \u7684\u5f62\u72b6\u5747\u4e3a (1, 77)\u3002"),(0,s.kt)("p",null,"\u5728\u63d0\u793a\u8bcd\u6807\u8bb0\u5316\u4e4b\u540e\uff0c\u5c06\u8fdb\u884c\u5d4c\u5165\u8868\u793a embedding\uff1a"),(0,s.kt)("pre",null,(0,s.kt)("code",{parentName:"pre",className:"language-python"},"source_embedding = clip_model.token_embedding(source_tokenized_prompts).type(clip_model.dtype)\n# (1, 77, 512) \u5176\u4e2d512\u662fCLIP\u4e2d\u7684n_dim\uff0ctoken_embedding\u5c42\u7684\u8bcd\u5d4c\u5165\u7684\u7ef4\u5ea6\ntarget_embedding = clip_model.token_embedding(target_tokenized_prompts).type(clip_model.dtype)\n# (1, 77, 512) \u5176\u4e2d512\u662fCLIP\u4e2d\u7684n_dim\uff0ctoken_embedding\u5c42\u7684\u8bcd\u5d4c\u5165\u7684\u7ef4\u5ea6\n")),(0,s.kt)("h3",{id:"compute_text_features-\u7684\u5b9e\u73b0\u7ec6\u8282"},"compute_text_features \u7684\u5b9e\u73b0\u7ec6\u8282"),(0,s.kt)("p",null,"\u5728 Mapper \u751f\u6210 prompts \u540e\u8fdb\u884c prompts \u7684\u7279\u5f81\u63d0\u53d6\u65f6\uff0c\u9700\u8981\u4f20\u5165 tokenize \u4e4b\u540e\u7684\u4eba\u5de5\u521d\u59cb\u5316 prompt\uff08\u2018a photo of a photo.\u2019\u6216\u2018a photo of a disney.\u2019\uff09\uff0c\u7528\u4e8e\u9009\u62e9 eot \u7b26\u53f7\u5bf9\u5e94\u7684\u7ef4\u5ea6\u6765\u8fdb\u884c\u7279\u5f81\u6295\u5f71\uff08",(0,s.kt)("strong",{parentName:"p"},"\u56e0\u4e3a eot \u4f5c\u4e3a\u6574\u4e2a\u53e5\u5b50\u7684\u7ed3\u5c3e\uff0c\u88ab\u8ba4\u4e3a\u8be5\u7ef4\u5ea6\u5305\u542b\u66f4\u591a\u7684\u4fe1\u606f"),"\u3002\u5177\u4f53\u505a\u6cd5\uff1a\u7531\u4e8e\u5728 tokenize \u4e4b\u540e\uff0ceot \u7b26\u53f7\u5bf9\u5e94\u7684\u7ef4\u5ea6\u7684\u503c\u6700\u5927\uff0c\u56e0\u6b64\u53ef\u4f7f\u7528 argmax \u6765\u5b9a\u4f4d\uff09\uff0c\u4ee5\u4fdd\u8bc1\u6700\u540e\u5f97\u5230\u7684\u7279\u5f81\u5f62\u72b6\u4e0e\u56fe\u50cf\u7279\u5f81\u63d0\u53d6\u7684\u8f93\u51fa\u5f62\u72b6\u76f8\u540c\uff0c\u4f7f\u5f97\u540e\u7eed\u53ef\u4ee5\u8fdb\u884c\u5bf9\u6bd4\u5b66\u4e60\u7684\u635f\u5931\u8ba1\u7b97\u3002"),(0,s.kt)("h3",{id:"\u8bad\u7ec3-stage-1"},"\u8bad\u7ec3 stage 1"),(0,s.kt)("h4",{id:"z\u7a7a\u95f4\u4e0ew\u7a7a\u95f4"},"Z\u7a7a\u95f4\u4e0eW\u7a7a\u95f4"),(0,s.kt)("pre",null,(0,s.kt)("code",{parentName:"pre",className:"language-python"},"# Z\u7a7a\u95f4\u5230W\u7a7a\u95f4\u7684\u53d8\u6362\nsample_z = mixing_noise(args.batch_mapper, 512, args.mixing, device)\n# (batch_size, 512)\nsample_w = net.generator_frozen.style(sample_z)\n# (batch_size, 512)\n")),(0,s.kt)("p",null,"Z \u7a7a\u95f4\u548c W \u7a7a\u95f4\u662f StyleGAN \u6a21\u578b\u4e2d\u4e24\u79cd\u4e0d\u540c\u7684\u9690\u53d8\u91cf\u7a7a\u95f4\uff0c\u5206\u522b\u7528\u4e8e\u63a7\u5236\u751f\u6210\u56fe\u50cf\u7684\u968f\u673a\u7279\u5f81\u548c\u6837\u5f0f\u4fe1\u606f\u3002W \u7a7a\u95f4\u901a\u8fc7\u5bf9 Z \u7a7a\u95f4\u7684\u6620\u5c04\u5f97\u5230\u3002"),(0,s.kt)("ol",null,(0,s.kt)("li",{parentName:"ol"},(0,s.kt)("p",{parentName:"li"},(0,s.kt)("strong",{parentName:"p"},"Z \u7a7a\u95f4\uff08Latent Space Z\uff09"),"\uff1a"),(0,s.kt)("ul",{parentName:"li"},(0,s.kt)("li",{parentName:"ul"},"Z \u7a7a\u95f4\u662f\u968f\u673a\u566a\u58f0\u7a7a\u95f4\uff0c\u901a\u5e38\u7531\u968f\u673a\u566a\u58f0\u5411\u91cf\u7ec4\u6210\uff0c\u8868\u793a\u4e86\u56fe\u50cf\u7684\u968f\u673a\u7279\u5f81\u3002"),(0,s.kt)("li",{parentName:"ul"},"\u5728 StyleGAN \u4e2d\uff0cZ \u7a7a\u95f4\u7684\u7ef4\u5ea6\u901a\u5e38\u4e3a 512 \u7ef4\u3002\u8fd9\u610f\u5473\u7740\u4e00\u4e2a Z \u5411\u91cf\u7531 512 \u4e2a\u6570\u5b57\u7ec4\u6210\uff0c\u6bcf\u4e2a\u6570\u5b57\u8868\u793a\u4e86\u56fe\u50cf\u7684\u4e00\u4e2a\u968f\u673a\u7279\u5f81\u7684\u5f3a\u5ea6\u6216\u8005\u65b9\u5411\u3002"))),(0,s.kt)("li",{parentName:"ol"},(0,s.kt)("p",{parentName:"li"},(0,s.kt)("strong",{parentName:"p"},"W \u7a7a\u95f4\uff08Style Space W\uff09"),"\uff1a"),(0,s.kt)("ul",{parentName:"li"},(0,s.kt)("li",{parentName:"ul"},(0,s.kt)("p",{parentName:"li"},"W \u7a7a\u95f4\u7ecf\u8fc7\u7279\u5f81\u89e3\u8026\u7684\u9690\u7a7a\u95f4\uff0c\u4e0e Z \u7a7a\u95f4\u76f8\u6bd4\u66f4\u52a0\u89e3\u8026\u5408\u3002")),(0,s.kt)("li",{parentName:"ul"},(0,s.kt)("p",{parentName:"li"},"\u5728 StyleGAN \u4e2d\uff0cW \u7a7a\u95f4\u7684\u7ef4\u5ea6\u4e5f\u901a\u5e38\u4e3a 512 \u7ef4\uff0c\u662f\u901a\u8fc7mapping network\u8fdb\u884c\u6620\u5c04\u5f97\u5230\u7684\uff0cmapping network\u7531PixelNorm\u5c42\u4e0eEqualLinear\u5c42\u6784\u6210\u3002\u4ee5\u4e0b\u4ee3\u7801\u8282\u9009\u81ea",(0,s.kt)("inlineCode",{parentName:"p"},"sg2_model.py"),"\uff1a"),(0,s.kt)("pre",{parentName:"li"},(0,s.kt)("code",{parentName:"pre",className:"language-python"},"'''mapping network'''\nlayers = [PixelNorm()]\n\nfor i in range(n_mlp):\n layers.append(\n EqualLinear(\n style_dim, style_dim, lr_mul=lr_mlp, activation=\"fused_lrelu\"\n )\n )\n\nself.style = nn.Sequential(*layers)\n"))))),(0,s.kt)("li",{parentName:"ol"},(0,s.kt)("p",{parentName:"li"},(0,s.kt)("strong",{parentName:"p"},"Z \u7a7a\u95f4\u4e0e W \u7a7a\u95f4\u7684\u5173\u7cfb"),"\uff1a"),(0,s.kt)("ul",{parentName:"li"},(0,s.kt)("li",{parentName:"ul"},"\u5728 StyleGAN \u4e2d\uff0c\u901a\u5e38\u4f1a\u5148\u5c06\u4e00\u4e2a Z \u5411\u91cf\u6620\u5c04\u5230 W \u7a7a\u95f4\uff0c\u7136\u540e\u518d\u5c06 W \u5411\u91cf\u8f93\u5165\u5230\u751f\u6210\u5668\u7f51\u7edc\u4e2d\u751f\u6210\u56fe\u50cf\u3002"),(0,s.kt)("li",{parentName:"ul"},"Z \u7a7a\u95f4\u63d0\u4f9b\u4e86\u521d\u59cb\u968f\u673a\u566a\u58f0\uff0c\u800c W \u7a7a\u95f4\u5219\u901a\u8fc7\u7279\u5f81\u89e3\u8026\u63d0\u4f9b\u66f4\u591a\u63a7\u5236\u56fe\u50cf\u98ce\u683c\u7684\u7075\u6d3b\u6027\u3002\u901a\u8fc7\u5bf9 Z \u548c W \u4e4b\u95f4\u7684\u6620\u5c04\u4ee5\u53ca W \u5728\u751f\u6210\u5668\u4e2d\u7684\u5e94\u7528\uff0cStyleGan \u5b9e\u73b0\u4e86\u9ad8\u5ea6\u53ef\u63a7\u4e14\u5177\u6709\u826f\u597d\u751f\u6210\u6548\u679c\u7684\u56fe\u50cf\u5408\u6210\u3002")))),(0,s.kt)("h4",{id:"\u635f\u5931\u51fd\u6570"},"\u635f\u5931\u51fd\u6570"),(0,s.kt)("p",null,"\u5728\u4ee3\u7801\u4e2d\uff0cstage 1 \u7684\u635f\u5931\u51fd\u6570\u662f ",(0,s.kt)("inlineCode",{parentName:"p"},"global_clip_loss"),"\uff0c\u8be5\u635f\u5931\u7531\u4e09\u90e8\u5206\u7ec4\u6210\uff1a"),(0,s.kt)("ol",null,(0,s.kt)("li",{parentName:"ol"},"\u5bf9\u6bd4\u5b66\u4e60\u635f\u5931\uff1aMapper \u751f\u6210\u7684\u6e90\u57df prompts \u7684\u7279\u5f81",(0,s.kt)("strong",{parentName:"li"},"\uff08\u6ce8\u610f\uff0c\u8fd9\u91cc\u7684 prompts \u7279\u5f81\u662f\u4e0e\u4eba\u5de5\u521d\u59cb\u5316\u7684 prompts \u7684\u7279\u5f81\u505a\u8fc7 element-wise \u76f8\u52a0\u540e\u7684\u7279\u5f81\uff09"),"\u4e0e\u6e90\u57df\u56fe\u50cf\u7279\u5f81\u7684\u4f59\u5f26\u76f8\u4f3c\u5ea6\u7ec4\u6210\u7684\u5bf9\u6bd4\u5b66\u4e60\u635f\u5931\uff1b"),(0,s.kt)("li",{parentName:"ol"},"\u76ee\u6807\u57df\u6b63\u5219\u5316\u635f\u5931\uff1aMapper \u751f\u6210\u7684\u76ee\u6807\u57df prompts \u7684\u7279\u5f81\u4e0e\u76ee\u6807\u57df\u6587\u672c\u6807\u7b7e\u7279\u5f81\u7684\u4f59\u5f26\u76f8\u4f3c\u5ea6\uff0c\u8fd9\u91cc\u751f\u6210\u7684\u76ee\u6807\u57df prompts \u7279\u5f81\u540c\u6837\u4e5f\u662f\u4e0e\u4eba\u5de5\u521d\u59cb\u5316\u7684 prompts \u505a\u8fc7\u52a0\u6cd5\u7684\u3002\u6ce8\u610f\u8be5\u635f\u5931\u6709\u6743\u91cd ",(0,s.kt)("inlineCode",{parentName:"li"},"lambda_l"),"\u3002"),(0,s.kt)("li",{parentName:"ol"},"\u6e90\u57df\u6b63\u5219\u5316\uff1a\u8ba1\u7b97\u751f\u6210\u7684\u6e90\u57dfprompts\u4e0e\u6e90\u57df\u6807\u7b7e\u4e4b\u95f4\u7684\u4f59\u5f26\u76f8\u4f3c\u5ea6\uff0c\u7531 ",(0,s.kt)("inlineCode",{parentName:"li"},"lambda_src")," \u63a7\u5236\uff0c\u9ed8\u8ba4\u662f 0\u3002")),(0,s.kt)("h3",{id:"\u8bad\u7ec3-stage-2"},"\u8bad\u7ec3 stage 2"),(0,s.kt)("h4",{id:"\u786e\u5b9a\u76ee\u6807\u57df\u751f\u6210\u57df\u9700\u8981\u66f4\u65b0\u7684\u5c42"},"\u786e\u5b9a\u76ee\u6807\u57df\u751f\u6210\u57df\u9700\u8981\u66f4\u65b0\u7684\u5c42"),(0,s.kt)("p",null,"\u5728\u8bad\u7ec3\u7684\u7b2c\u4e8c\u9636\u6bb5\u8fdb\u884c\u524d\u5411\u4f20\u64ad\u65f6\uff0c\u9700\u8981\u5148\u5bf9\u76ee\u6807\u57df\u751f\u6210\u5668\uff08generator_trainable\uff09\u7684\u6240\u6709\u5c42\u8fdb\u884c unfreeze\uff0c\u7136\u540e\u5bf9\u66f4\u65b0\u54ea\u4e9b\u5c42\u505a\u51fa\u9009\u62e9\uff0c\u627f\u62c5\u9009\u62e9\u4efb\u52a1\u7684\u529f\u80fd\u51fd\u6570\uff1amodel.ZSSGAN.ZSSGAN.determine_opt_layers\uff0c\u6700\u540e freeze \u6240\u6709\u5c42\u540e\u518d unfreeze \u9009\u62e9\u7684\u7f51\u7edc\u5c42\u3002"),(0,s.kt)("pre",null,(0,s.kt)("code",{parentName:"pre",className:"language-python"},"if self.training and self.auto_layer_iters > 0:\n self.generator_trainable.unfreeze_layers() # unfreeze\n train_layers = self.determine_opt_layers() # layer to train\n\n if not isinstance(train_layers, list):\n train_layers = [train_layers]\n\n self.generator_trainable.freeze_layers()\n self.generator_trainable.unfreeze_layers(train_layers) # unfreeze\n")),(0,s.kt)("p",null,"\u5177\u4f53\u9009\u62e9\u5e26\u66f4\u65b0\u7f51\u7edc\u5c42\u7684\u7b56\u7565\uff1a"),(0,s.kt)("p",null,"\u5c06 W \u7a7a\u95f4\u7684\u9690\u5411\u91cf\u9001\u5165\u76ee\u6807\u57df\u751f\u6210\u5668\uff08SG2Generator\uff09\u4e2d\uff0c\u5e76\u8fdb\u884c\u53cd\u5411\u4f20\u64ad\uff0c\u6b64\u65f6\u53ef\u4ee5\u901a\u8fc7\u53cd\u5411\u4f20\u64ad\u540e W \u7a7a\u95f4\u9690\u5411\u91cf\u4e0d\u540c\u7ef4\u5ea6\u7684\u66f4\u65b0\u5e45\u5ea6\u6765\u8861\u91cf\u4e0d\u540c\u7f51\u7edc\u5c42\u7684\u5f71\u54cd\u529b\uff0c\u56e0\u6b64\u9009\u51fa\u66f4\u65b0\u5e45\u5ea6\u6700\u5927\u7684\u7ef4\u5ea6\u5c31\u53ef\u4ee5\u786e\u5b9a\u5728 Model Adaption \u4e2d\u9700\u8981\u66f4\u65b0\u7684\u7f51\u7edc\u5c42\u3002"),(0,s.kt)("p",null,(0,s.kt)("strong",{parentName:"p"},"\u4e4b\u6240\u4ee5 W \u7a7a\u95f4\u7f16\u7801\u5728 n_latent \u7ef4\u5ea6\u4e0a\u7684\u5e8f\u53f7\u5c31\u4ee3\u8868\u7740\u5bf9\u5e94\u7684\u7f51\u7edc\u5c42\u6570\u7684\u5e8f\u53f7\uff0c\u662f\u56e0\u4e3a StyleGAN \u751f\u6210\u5668\u7684\u7ed3\u6784\u51b3\u5b9a\u4e86\u8fd9\u4e00\u70b9\uff1aStyleGAN \u751f\u6210\u5668\u4e2d\uff0cW \u7a7a\u95f4\u7f16\u7801\u7684\u4e0d\u540c\u7ef4\u5ea6\u4f1a\u88ab\u9001\u5165\u751f\u6210\u5668\u7f51\u7edc\u7684\u4e0d\u540c\u5c42\uff0c\u63a7\u5236\u8fd9\u4e9b\u5c42\u7684\u7279\u5f81\u6620\u5c04 (feature mapping)\u3002\u5177\u4f53\u6765\u8bf4\uff0cW \u7a7a\u95f4\u7f16\u7801\u7684\u6bcf\u4e2a\u7ef4\u5ea6\u4f1a\u88ab\u91cd\u590d n_latent \u6b21\uff0c\u4f5c\u4e3a\u8be5\u5c42\u7684\u98ce\u683c\u5411\u91cf (style vector)\uff0c\u901a\u8fc7 AdaIN (Adaptive Instance Normalization) \u5c42\u63a7\u5236\u8be5\u5c42\u7684\u7279\u5f81\u6620\u5c04\u3002\u56e0\u6b64\uff0cW \u7a7a\u95f4\u7f16\u7801\u7684\u7b2c i \u4e2a\u7ef4\u5ea6\u4f1a\u5f71\u54cd\u751f\u6210\u5668\u7f51\u7edc\u4e2d\u7b2c i \u5c42\u7684\u7279\u5f81\u6620\u5c04\u3002\u5f53\u67d0\u4e2a\u7ef4\u5ea6\u7684 W \u503c\u88ab\u66f4\u65b0\u7684\u7a0b\u5ea6\u8f83\u5927\u65f6\uff0c\u5c31\u610f\u5473\u7740\u8be5\u7ef4\u5ea6\u5bf9\u5e94\u7684\u5c42\u5728\u751f\u6210\u76ee\u6807\u56fe\u50cf\u65f6\u8d77\u5230\u4e86\u91cd\u8981\u4f5c\u7528\uff0c\u9700\u8981\u88ab\u4f18\u5316\u3002")),(0,s.kt)("h4",{id:"\u635f\u5931\u51fd\u6570-1"},"\u635f\u5931\u51fd\u6570"),(0,s.kt)("p",null,"stage 2 \u7684\u635f\u5931\u51fd\u6570\u662f CLIP Loss \u7c7b\u4e2d\u7684 ",(0,s.kt)("inlineCode",{parentName:"p"},"clip_directional_loss"),"\uff0c\u8be5\u635f\u5931\u51fd\u6570\u7531\u4e24\u90e8\u5206\u7ec4\u6210\uff1a"),(0,s.kt)("ol",null,(0,s.kt)("li",{parentName:"ol"},(0,s.kt)("inlineCode",{parentName:"li"},"edit_direciton"),"\uff1a\u6e90\u57df\u751f\u6210\u5668\u4e0e\u76ee\u6807\u57df\u751f\u6210\u5668\u751f\u6210\u7684\u56fe\u7247\u5728\u7ecf\u8fc7 image encdoer \u540e\u505a element-wise \u7684\u76f8\u51cf\uff0c\u6700\u540e\u9664\u4ee5\u81ea\u8eab\u7684 L2 Norm \u65b9\u4fbf\u540e\u7eed\u4e0e target_direction \u8ba1\u7b97\u4f59\u5f26\u76f8\u4f3c\u5ea6\u3002"),(0,s.kt)("li",{parentName:"ol"},(0,s.kt)("inlineCode",{parentName:"li"},"target_direction"),"\uff1aMapper \u4ea7\u751f\u7684\u6e90\u57df\u548c\u76ee\u6807\u57df prompts \u7684 text_features \u505aelement-wise\u76f8\u51cf\u540e\uff0c\u6700\u540e\u521d\u4e00\u81ea\u8eab\u7684 L2 Norm \u4ee5\u4fbf\u540e\u7eed\u4e0e edit_direction \u8ba1\u7b97\u4f59\u5f26\u76f8\u4f3c\u5ea6\u3002")),(0,s.kt)("h2",{id:"\u5b9a\u91cf\u5206\u6790\u6307\u6807"},"\u5b9a\u91cf\u5206\u6790\u6307\u6807"),(0,s.kt)("p",null,"\u53c2\u8003\u6587\u732e\uff1a",(0,s.kt)("a",{parentName:"p",href:"https://blog.csdn.net/qq_35586657/article/details/98478508"},"GAN \u7684\u51e0\u79cd\u8bc4\u4ef7\u6307\u6807")),(0,s.kt)("ol",null,(0,s.kt)("li",{parentName:"ol"},(0,s.kt)("p",{parentName:"li"},"Inception Score\uff08IS\uff09"),(0,s.kt)("p",{parentName:"li"},(0,s.kt)("strong",{parentName:"p"},"\u8bc4\u4f30\u56fe\u50cf\u7684\u8d28\u91cf\u548c\u591a\u6837\u6027")),(0,s.kt)("p",{parentName:"li"},"\u8d28\u91cf\uff1a\u628a\u751f\u6210\u7684\u56fe\u7247 ",(0,s.kt)("span",{parentName:"p",className:"math math-inline"},(0,s.kt)("span",{parentName:"span",className:"katex"},(0,s.kt)("span",{parentName:"span",className:"katex-mathml"},(0,s.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,s.kt)("semantics",{parentName:"math"},(0,s.kt)("mrow",{parentName:"semantics"},(0,s.kt)("mi",{parentName:"mrow"},"x")),(0,s.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"x")))),(0,s.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"0.4306em"}}),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal"},"x")))))," \u8f93\u5165 Inception V3 \u4e2d\uff0c\u5f97\u5230\u8f93\u51fa 1000 \u7ef4\u7684\u5411\u91cf ",(0,s.kt)("span",{parentName:"p",className:"math math-inline"},(0,s.kt)("span",{parentName:"span",className:"katex"},(0,s.kt)("span",{parentName:"span",className:"katex-mathml"},(0,s.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,s.kt)("semantics",{parentName:"math"},(0,s.kt)("mrow",{parentName:"semantics"},(0,s.kt)("mi",{parentName:"mrow"},"y")),(0,s.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"y")))),(0,s.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"0.625em",verticalAlign:"-0.1944em"}}),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"y"))))),"\uff0c\u5411\u91cf\u7684\u6bcf\u4e2a\u7ef4\u5ea6\u7684\u503c\u5bf9\u5e94\u56fe\u7247\u5c5e\u4e8e\u67d0\u7c7b\u7684\u6982\u7387\u3002\u5bf9\u4e8e\u4e00\u4e2a\u6e05\u6670\u7684\u56fe\u7247\uff0c\u5b83\u5c5e\u4e8e\u67d0\u4e00\u7c7b\u7684\u6982\u7387\u5e94\u8be5\u975e\u5e38\u5927\uff0c\u800c\u5c5e\u4e8e\u5176\u5b83\u7c7b\u7684\u6982\u7387\u5e94\u8be5\u5f88\u5c0f\u3002\u7528\u4e13\u4e1a\u672f\u8bed\u8bf4\uff0c ",(0,s.kt)("span",{parentName:"p",className:"math math-inline"},(0,s.kt)("span",{parentName:"span",className:"katex"},(0,s.kt)("span",{parentName:"span",className:"katex-mathml"},(0,s.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,s.kt)("semantics",{parentName:"math"},(0,s.kt)("mrow",{parentName:"semantics"},(0,s.kt)("mi",{parentName:"mrow"},"p"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,s.kt)("mi",{parentName:"mrow"},"y"),(0,s.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"\u2223"),(0,s.kt)("mi",{parentName:"mrow"},"x"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,s.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"p(y|x)")))),(0,s.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal"},"p"),(0,s.kt)("span",{parentName:"span",className:"mopen"},"("),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"y"),(0,s.kt)("span",{parentName:"span",className:"mord"},"\u2223"),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal"},"x"),(0,s.kt)("span",{parentName:"span",className:"mclose"},")")))))," \u7684\u71b5\u5e94\u8be5\u5f88\u5c0f\uff08\u71b5\u4ee3\u8868\u6df7\u4e71\u5ea6\uff0c\u5747\u5300\u5206\u5e03\u7684\u6df7\u4e71\u5ea6\u6700\u5927\uff0c\u71b5\u6700\u5927\uff09\u3002"),(0,s.kt)("p",{parentName:"li"},"\u591a\u6837\u6027\uff1a \u5982\u679c\u4e00\u4e2a\u6a21\u578b\u80fd\u751f\u6210\u8db3\u591f\u591a\u6837\u7684\u56fe\u7247\uff0c\u90a3\u4e48\u5b83\u751f\u6210\u7684\u56fe\u7247\u5728\u5404\u4e2a\u7c7b\u522b\u4e2d\u7684\u5206\u5e03\u5e94\u8be5\u662f\u5e73\u5747\u7684\uff0c\u5047\u8bbe\u751f\u6210\u4e86 10000 \u5f20\u56fe\u7247\uff0c\u90a3\u4e48\u6700\u7406\u60f3\u7684\u60c5\u51b5\u662f\uff0c1000 \u7c7b\u4e2d\u6bcf\u7c7b\u751f\u6210\u4e86 10 \u5f20\u3002\u8f6c\u6362\u6210\u672f\u8bed\uff0c\u5c31\u662f\u751f\u6210\u56fe\u7247\u5728\u6240\u6709\u7c7b\u522b\u6982\u7387\u7684\u8fb9\u7f18\u5206\u5e03 ",(0,s.kt)("span",{parentName:"p",className:"math math-inline"},(0,s.kt)("span",{parentName:"span",className:"katex"},(0,s.kt)("span",{parentName:"span",className:"katex-mathml"},(0,s.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,s.kt)("semantics",{parentName:"math"},(0,s.kt)("mrow",{parentName:"semantics"},(0,s.kt)("mi",{parentName:"mrow"},"p"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,s.kt)("mi",{parentName:"mrow"},"y"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,s.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"p(y)")))),(0,s.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal"},"p"),(0,s.kt)("span",{parentName:"span",className:"mopen"},"("),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"y"),(0,s.kt)("span",{parentName:"span",className:"mclose"},")")))))," \u71b5\u5f88\u5927\uff08\u5747\u5300\u5206\u5e03\uff09\u3002"),(0,s.kt)("p",{parentName:"li"},"\u56e0\u6b64\uff0c\u5bf9\u4e8e IS \u6211\u4eec\u9700\u8981\u6c42\u7684\u4e24\u4e2a\u91cf\u5c31\u662f ",(0,s.kt)("span",{parentName:"p",className:"math math-inline"},(0,s.kt)("span",{parentName:"span",className:"katex"},(0,s.kt)("span",{parentName:"span",className:"katex-mathml"},(0,s.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,s.kt)("semantics",{parentName:"math"},(0,s.kt)("mrow",{parentName:"semantics"},(0,s.kt)("mi",{parentName:"mrow"},"p"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,s.kt)("mi",{parentName:"mrow"},"y"),(0,s.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"\u2223"),(0,s.kt)("mi",{parentName:"mrow"},"x"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,s.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"p(y|x)")))),(0,s.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal"},"p"),(0,s.kt)("span",{parentName:"span",className:"mopen"},"("),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"y"),(0,s.kt)("span",{parentName:"span",className:"mord"},"\u2223"),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal"},"x"),(0,s.kt)("span",{parentName:"span",className:"mclose"},")")))))," \u548c ",(0,s.kt)("span",{parentName:"p",className:"math math-inline"},(0,s.kt)("span",{parentName:"span",className:"katex"},(0,s.kt)("span",{parentName:"span",className:"katex-mathml"},(0,s.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,s.kt)("semantics",{parentName:"math"},(0,s.kt)("mrow",{parentName:"semantics"},(0,s.kt)("mi",{parentName:"mrow"},"p"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,s.kt)("mi",{parentName:"mrow"},"y"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,s.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"p(y)")))),(0,s.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal"},"p"),(0,s.kt)("span",{parentName:"span",className:"mopen"},"("),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"y"),(0,s.kt)("span",{parentName:"span",className:"mclose"},")"))))),"\u3002\u5b9e\u9645\u4e2d\uff0c\u9009\u53d6\u5927\u91cf\u751f\u6210\u6837\u672c\uff0c\u7528\u7ecf\u9a8c\u5206\u5e03\u6a21\u62df ",(0,s.kt)("span",{parentName:"p",className:"math math-inline"},(0,s.kt)("span",{parentName:"span",className:"katex"},(0,s.kt)("span",{parentName:"span",className:"katex-mathml"},(0,s.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,s.kt)("semantics",{parentName:"math"},(0,s.kt)("mrow",{parentName:"semantics"},(0,s.kt)("mi",{parentName:"mrow"},"p"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,s.kt)("mi",{parentName:"mrow"},"y"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,s.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"p(y)")))),(0,s.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal"},"p"),(0,s.kt)("span",{parentName:"span",className:"mopen"},"("),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"y"),(0,s.kt)("span",{parentName:"span",className:"mclose"},")"))))),"\uff1a"),(0,s.kt)("div",{parentName:"li",className:"math math-display"},(0,s.kt)("span",{parentName:"div",className:"katex-display"},(0,s.kt)("span",{parentName:"span",className:"katex"},(0,s.kt)("span",{parentName:"span",className:"katex-mathml"},(0,s.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,s.kt)("semantics",{parentName:"math"},(0,s.kt)("mrow",{parentName:"semantics"},(0,s.kt)("mover",{parentName:"mrow",accent:"true"},(0,s.kt)("mi",{parentName:"mover"},"p"),(0,s.kt)("mo",{parentName:"mover"},"^")),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,s.kt)("mi",{parentName:"mrow"},"y"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,s.kt)("mo",{parentName:"mrow"},"="),(0,s.kt)("mfrac",{parentName:"mrow"},(0,s.kt)("mn",{parentName:"mfrac"},"1"),(0,s.kt)("mi",{parentName:"mfrac"},"N")),(0,s.kt)("munderover",{parentName:"mrow"},(0,s.kt)("mo",{parentName:"munderover"},"\u2211"),(0,s.kt)("mrow",{parentName:"munderover"},(0,s.kt)("mi",{parentName:"mrow"},"i"),(0,s.kt)("mo",{parentName:"mrow"},"="),(0,s.kt)("mn",{parentName:"mrow"},"1")),(0,s.kt)("mi",{parentName:"munderover"},"N")),(0,s.kt)("mi",{parentName:"mrow"},"p"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,s.kt)("mi",{parentName:"mrow"},"y"),(0,s.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"\u2223"),(0,s.kt)("msup",{parentName:"mrow"},(0,s.kt)("mi",{parentName:"msup",mathvariant:"bold"},"x"),(0,s.kt)("mrow",{parentName:"msup"},(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,s.kt)("mi",{parentName:"mrow"},"i"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},")"))),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,s.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"\\hat{p}(y)=\\frac{1}{N}\\sum_{i=1}^{N}p(y|\\mathbf{x}^{(i)})")))),(0,s.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,s.kt)("span",{parentName:"span",className:"mord accent"},(0,s.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.6944em"}},(0,s.kt)("span",{parentName:"span",style:{top:"-3em"}},(0,s.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal"},"p")),(0,s.kt)("span",{parentName:"span",style:{top:"-3em"}},(0,s.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,s.kt)("span",{parentName:"span",className:"accent-body",style:{left:"-0.1667em"}},(0,s.kt)("span",{parentName:"span",className:"mord"},"^")))),(0,s.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.1944em"}},(0,s.kt)("span",{parentName:"span"}))))),(0,s.kt)("span",{parentName:"span",className:"mopen"},"("),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"y"),(0,s.kt)("span",{parentName:"span",className:"mclose"},")"),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,s.kt)("span",{parentName:"span",className:"mrel"},"="),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"3.106em",verticalAlign:"-1.2777em"}}),(0,s.kt)("span",{parentName:"span",className:"mord"},(0,s.kt)("span",{parentName:"span",className:"mopen nulldelimiter"}),(0,s.kt)("span",{parentName:"span",className:"mfrac"},(0,s.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.3214em"}},(0,s.kt)("span",{parentName:"span",style:{top:"-2.314em"}},(0,s.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,s.kt)("span",{parentName:"span",className:"mord"},(0,s.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.10903em"}},"N"))),(0,s.kt)("span",{parentName:"span",style:{top:"-3.23em"}},(0,s.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,s.kt)("span",{parentName:"span",className:"frac-line",style:{borderBottomWidth:"0.04em"}})),(0,s.kt)("span",{parentName:"span",style:{top:"-3.677em"}},(0,s.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,s.kt)("span",{parentName:"span",className:"mord"},(0,s.kt)("span",{parentName:"span",className:"mord"},"1")))),(0,s.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.686em"}},(0,s.kt)("span",{parentName:"span"}))))),(0,s.kt)("span",{parentName:"span",className:"mclose nulldelimiter"})),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,s.kt)("span",{parentName:"span",className:"mop op-limits"},(0,s.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.8283em"}},(0,s.kt)("span",{parentName:"span",style:{top:"-1.8723em",marginLeft:"0em"}},(0,s.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.05em"}}),(0,s.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,s.kt)("span",{parentName:"span",className:"mord mtight"},(0,s.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"i"),(0,s.kt)("span",{parentName:"span",className:"mrel mtight"},"="),(0,s.kt)("span",{parentName:"span",className:"mord mtight"},"1")))),(0,s.kt)("span",{parentName:"span",style:{top:"-3.05em"}},(0,s.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.05em"}}),(0,s.kt)("span",{parentName:"span"},(0,s.kt)("span",{parentName:"span",className:"mop op-symbol large-op"},"\u2211"))),(0,s.kt)("span",{parentName:"span",style:{top:"-4.3em",marginLeft:"0em"}},(0,s.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.05em"}}),(0,s.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,s.kt)("span",{parentName:"span",className:"mord mtight"},(0,s.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.10903em"}},"N"))))),(0,s.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.2777em"}},(0,s.kt)("span",{parentName:"span"}))))),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal"},"p"),(0,s.kt)("span",{parentName:"span",className:"mopen"},"("),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"y"),(0,s.kt)("span",{parentName:"span",className:"mord"},"\u2223"),(0,s.kt)("span",{parentName:"span",className:"mord"},(0,s.kt)("span",{parentName:"span",className:"mord mathbf"},"x"),(0,s.kt)("span",{parentName:"span",className:"msupsub"},(0,s.kt)("span",{parentName:"span",className:"vlist-t"},(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.938em"}},(0,s.kt)("span",{parentName:"span",style:{top:"-3.113em",marginRight:"0.05em"}},(0,s.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,s.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,s.kt)("span",{parentName:"span",className:"mord mtight"},(0,s.kt)("span",{parentName:"span",className:"mopen mtight"},"("),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"i"),(0,s.kt)("span",{parentName:"span",className:"mclose mtight"},")"))))))))),(0,s.kt)("span",{parentName:"span",className:"mclose"},")")))))),(0,s.kt)("p",{parentName:"li"},"Inception Score \u7684\u5b8c\u6574\u516c\u5f0f\u5982\u4e0b\uff1a"),(0,s.kt)("div",{parentName:"li",className:"math math-display"},(0,s.kt)("span",{parentName:"div",className:"katex-display"},(0,s.kt)("span",{parentName:"span",className:"katex"},(0,s.kt)("span",{parentName:"span",className:"katex-mathml"},(0,s.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,s.kt)("semantics",{parentName:"math"},(0,s.kt)("mrow",{parentName:"semantics"},(0,s.kt)("mrow",{parentName:"mrow"},(0,s.kt)("mi",{parentName:"mrow",mathvariant:"bold"},"I"),(0,s.kt)("mi",{parentName:"mrow",mathvariant:"bold"},"S")),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,s.kt)("mi",{parentName:"mrow"},"G"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,s.kt)("mo",{parentName:"mrow"},"="),(0,s.kt)("mi",{parentName:"mrow"},"exp"),(0,s.kt)("mo",{parentName:"mrow"},"\u2061"),(0,s.kt)("mrow",{parentName:"mrow"},(0,s.kt)("mo",{parentName:"mrow",fence:"true"},"("),(0,s.kt)("msub",{parentName:"mrow"},(0,s.kt)("mi",{parentName:"msub",mathvariant:"double-struck"},"E"),(0,s.kt)("mrow",{parentName:"msub"},(0,s.kt)("mi",{parentName:"mrow",mathvariant:"bold"},"x"),(0,s.kt)("mo",{parentName:"mrow"},"\u223c"),(0,s.kt)("msub",{parentName:"mrow"},(0,s.kt)("mi",{parentName:"msub"},"p"),(0,s.kt)("mi",{parentName:"msub"},"g")))),(0,s.kt)("msub",{parentName:"mrow"},(0,s.kt)("mi",{parentName:"msub"},"D"),(0,s.kt)("mrow",{parentName:"msub"},(0,s.kt)("mi",{parentName:"mrow"},"K"),(0,s.kt)("mi",{parentName:"mrow"},"L"))),(0,s.kt)("mrow",{parentName:"mrow"},(0,s.kt)("mo",{parentName:"mrow",fence:"true"},"("),(0,s.kt)("mi",{parentName:"mrow"},"p"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,s.kt)("mi",{parentName:"mrow"},"y"),(0,s.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"\u2223"),(0,s.kt)("mi",{parentName:"mrow",mathvariant:"bold"},"x"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,s.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"\u2223"),(0,s.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"\u2223"),(0,s.kt)("mi",{parentName:"mrow"},"p"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,s.kt)("mi",{parentName:"mrow"},"y"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,s.kt)("mo",{parentName:"mrow",fence:"true"},")")),(0,s.kt)("mo",{parentName:"mrow",fence:"true"},")"))),(0,s.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"\\mathbf{IS}(G)=\\exp\\left(\\mathbb{E}_{\\mathbf{x}\\sim p_g}D_{KL}\\left(p(y|\\mathbf{x})||p(y)\\right)\\right)")))),(0,s.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,s.kt)("span",{parentName:"span",className:"mord"},(0,s.kt)("span",{parentName:"span",className:"mord mathbf"},"IS")),(0,s.kt)("span",{parentName:"span",className:"mopen"},"("),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal"},"G"),(0,s.kt)("span",{parentName:"span",className:"mclose"},")"),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,s.kt)("span",{parentName:"span",className:"mrel"},"="),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"1.2em",verticalAlign:"-0.35em"}}),(0,s.kt)("span",{parentName:"span",className:"mop"},"exp"),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,s.kt)("span",{parentName:"span",className:"minner"},(0,s.kt)("span",{parentName:"span",className:"mopen delimcenter",style:{top:"0em"}},(0,s.kt)("span",{parentName:"span",className:"delimsizing size1"},"(")),(0,s.kt)("span",{parentName:"span",className:"mord"},(0,s.kt)("span",{parentName:"span",className:"mord mathbb"},"E"),(0,s.kt)("span",{parentName:"span",className:"msupsub"},(0,s.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.1611em"}},(0,s.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,s.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,s.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,s.kt)("span",{parentName:"span",className:"mord mtight"},(0,s.kt)("span",{parentName:"span",className:"mord mathbf mtight"},"x"),(0,s.kt)("span",{parentName:"span",className:"mrel mtight"},"\u223c"),(0,s.kt)("span",{parentName:"span",className:"mord mtight"},(0,s.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"p"),(0,s.kt)("span",{parentName:"span",className:"msupsub"},(0,s.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.1645em"}},(0,s.kt)("span",{parentName:"span",style:{top:"-2.357em",marginLeft:"0em",marginRight:"0.0714em"}},(0,s.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.5em"}}),(0,s.kt)("span",{parentName:"span",className:"sizing reset-size3 size1 mtight"},(0,s.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.03588em"}},"g")))),(0,s.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.2819em"}},(0,s.kt)("span",{parentName:"span"})))))))))),(0,s.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3473em"}},(0,s.kt)("span",{parentName:"span"})))))),(0,s.kt)("span",{parentName:"span",className:"mord"},(0,s.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02778em"}},"D"),(0,s.kt)("span",{parentName:"span",className:"msupsub"},(0,s.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3283em"}},(0,s.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0278em",marginRight:"0.05em"}},(0,s.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,s.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,s.kt)("span",{parentName:"span",className:"mord mtight"},(0,s.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.07153em"}},"K"),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"L"))))),(0,s.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,s.kt)("span",{parentName:"span"})))))),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,s.kt)("span",{parentName:"span",className:"minner"},(0,s.kt)("span",{parentName:"span",className:"mopen delimcenter",style:{top:"0em"}},"("),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal"},"p"),(0,s.kt)("span",{parentName:"span",className:"mopen"},"("),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"y"),(0,s.kt)("span",{parentName:"span",className:"mord"},"\u2223"),(0,s.kt)("span",{parentName:"span",className:"mord mathbf"},"x"),(0,s.kt)("span",{parentName:"span",className:"mclose"},")"),(0,s.kt)("span",{parentName:"span",className:"mord"},"\u2223\u2223"),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal"},"p"),(0,s.kt)("span",{parentName:"span",className:"mopen"},"("),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"y"),(0,s.kt)("span",{parentName:"span",className:"mclose"},")"),(0,s.kt)("span",{parentName:"span",className:"mclose delimcenter",style:{top:"0em"}},")")),(0,s.kt)("span",{parentName:"span",className:"mclose delimcenter",style:{top:"0em"}},(0,s.kt)("span",{parentName:"span",className:"delimsizing size1"},")")))))))),(0,s.kt)("p",{parentName:"li"},"\u901a\u5e38\u8ba1\u7b97 Inception Score \u65f6\uff0c\u4f1a\u751f\u6210 50000 \u4e2a\u56fe\u7247\uff0c\u7136\u540e\u628a\u5b83\u5206\u6210 10 \u4efd\uff0c\u6bcf\u4efd 5000 \u4e2a\uff0c\u5206\u522b\u4ee3\u5165\u516c\u5f0f\u8ba1\u7b97 10 \u6b21 Inception Score\uff0c\u518d\u8ba1\u7b97\u5747\u503c\u548c\u65b9\u5dee\uff0c\u4f5c\u4e3a\u6700\u7ec8\u7684\u8861\u91cf\u6307\u6807\uff08\u5747\u503c\xb1\u65b9\u5dee\uff09\u3002\u4f46\u662f 5000 \u4e2a\u6837\u672c\u5f80\u5f80\u4e0d\u8db3\u4ee5\u5f97\u5230\u51c6\u786e\u7684\u8fb9\u7f18\u5206\u5e03 ",(0,s.kt)("span",{parentName:"p",className:"math math-inline"},(0,s.kt)("span",{parentName:"span",className:"katex"},(0,s.kt)("span",{parentName:"span",className:"katex-mathml"},(0,s.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,s.kt)("semantics",{parentName:"math"},(0,s.kt)("mrow",{parentName:"semantics"},(0,s.kt)("mi",{parentName:"mrow"},"p"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,s.kt)("mi",{parentName:"mrow"},"y"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,s.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"p(y)")))),(0,s.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal"},"p"),(0,s.kt)("span",{parentName:"span",className:"mopen"},"("),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"y"),(0,s.kt)("span",{parentName:"span",className:"mclose"},")"))))),"\uff0c\u5c24\u5176\u662f\u50cf ImageNet \u8fd9\u79cd\u5305\u542b 1000 \u4e2a\u7c7b\u7684\u6570\u636e\u96c6\u3002"),(0,s.kt)("p",{parentName:"li"},"StyleGAN-nada \u4ee5\u53ca IPL \u5728\u7ecf\u8fc7 batch_size \u4e3a 2\uff0citeration \u4e3a 300 \u7684\u8bad\u7ec3\u540e\uff08\u5176\u4e2d IPL \u7684 Mapper \u662f\u4ee5 batch_size \u4e3a 32\uff0citeration \u4e3a 300 \u8fdb\u884c\u8bad\u7ec3\u7684\uff09\uff0c\u4e8c\u8005\u7684 IS \u5206\u522b\u4e3a ",(0,s.kt)("inlineCode",{parentName:"p"},"(2.2960, 0.2042)")," \u4ee5\u53ca ",(0,s.kt)("inlineCode",{parentName:"p"},"(2.6420, 0.1959)"),"\u3002")),(0,s.kt)("li",{parentName:"ol"},(0,s.kt)("p",{parentName:"li"},"Fr\xe9chet Inception Distance\uff08FID\uff09"),(0,s.kt)("p",{parentName:"li"},(0,s.kt)("strong",{parentName:"p"},"\u8bc4\u4f30\u76ee\u6807\u57df\u7684\u98ce\u683c")),(0,s.kt)("p",{parentName:"li"},"\u8ba1\u7b97 IS \u65f6\u53ea\u8003\u8651\u4e86\u751f\u6210\u6837\u672c\uff0c\u6ca1\u6709\u8003\u8651\u771f\u5b9e\u6570\u636e\uff0c\u5373 ",(0,s.kt)("strong",{parentName:"p"},"IS \u65e0\u6cd5\u53cd\u6620\u771f\u5b9e\u6570\u636e\u548c\u6837\u672c\u4e4b\u95f4\u7684\u8ddd\u79bb"),"\uff0cIS \u5224\u65ad\u6570\u636e\u771f\u5b9e\u6027\u7684\u4f9d\u636e\uff0c\u6e90\u4e8e Inception V3 \u7684\u8bad\u7ec3\u96c6 ImageNet\uff0c\u5728 Inception V3 \u7684\u201c\u4e16\u754c\u89c2\u201d\u4e0b\uff0c\u51e1\u662f\u4e0d\u50cf ImageNet \u7684\u6570\u636e\uff0c\u90fd\u662f\u4e0d\u771f\u5b9e\u7684\uff0c\u90fd\u4e0d\u80fd\u4fdd\u8bc1\u8f93\u51fa\u4e00\u4e2a sharp \u7684 predition distribution\u3002\u56e0\u6b64\uff0c\u8981\u60f3\u66f4\u597d\u5730\u8bc4\u4ef7\u751f\u6210\u7f51\u7edc\uff0c\u5c31\u8981\u4f7f\u7528\u66f4\u52a0\u6709\u6548\u7684\u65b9\u6cd5\u8ba1\u7b97\u771f\u5b9e\u5206\u5e03\u4e0e\u751f\u6210\u6837\u672c\u4e4b\u95f4\u7684\u8ddd\u79bb\u3002"),(0,s.kt)("p",{parentName:"li"},"FID \u8ddd\u79bb\u8ba1\u7b97\u771f\u5b9e\u6837\u672c\uff0c\u751f\u6210\u6837\u672c\u5728\u7279\u5f81\u7a7a\u95f4\u4e4b\u95f4\u7684\u8ddd\u79bb\u3002\u9996\u5148\u5229\u7528 Inception \u7f51\u7edc\u6765\u63d0\u53d6\u7279\u5f81\uff0c\u7136\u540e\u4f7f\u7528\u9ad8\u65af\u6a21\u578b\u5bf9\u7279\u5f81\u7a7a\u95f4\u8fdb\u884c\u5efa\u6a21\uff0c\u518d\u53bb\u6c42\u89e3\u4e24\u4e2a\u7279\u5f81\u4e4b\u95f4\u7684\u8ddd\u79bb\uff0c\u8f83\u4f4e\u7684 FID \u610f\u5473\u7740\u8f83\u9ad8\u56fe\u7247\u7684\u8d28\u91cf\u548c\u591a\u6837\u6027\u3002"),(0,s.kt)("p",{parentName:"li"},"StyleGAN-nada \u4ee5\u53ca IPL \u5728\u7ecf\u8fc7 batch_size \u4e3a 2\uff0citeration \u4e3a 300 \u7684\u8bad\u7ec3\u540e\uff08\u5176\u4e2d IPL \u7684 Mapper \u662f\u4ee5 batch_size \u4e3a 32\uff0citeration \u4e3a 300 \u8fdb\u884c\u8bad\u7ec3\u7684\uff09\uff0c\u4e8c\u8005\u7684 FID \u5206\u522b\u4e3a ",(0,s.kt)("inlineCode",{parentName:"p"},"84")," \u4ee5\u53ca ",(0,s.kt)("inlineCode",{parentName:"p"},"58"),"\u3002")),(0,s.kt)("li",{parentName:"ol"},(0,s.kt)("p",{parentName:"li"},"Single Image Fr\xe9chet Inception Score\uff08SIFID\uff09"),(0,s.kt)("p",{parentName:"li"},"FID \u6d4b\u91cf\u751f\u6210\u7684\u56fe\u50cf\u7684\u6df1\u5c42\u7279\u5f81\u5206\u5e03\u4e0e\u771f\u5b9e\u56fe\u50cf\u7684\u5206\u5e03\u4e4b\u95f4\u7684\u504f\u5dee\u3002\u5728 ICCV 2019 Best Paper \u4e2d\u63d0\u51fa\u4e86 SIFID\uff0c\u53ea\u4f7f\u7528\u4e00\u5f20\u771f\u5b9e\u76ee\u6807\u57df\u7684\u56fe\u50cf\u3002\u4e0e FID \u4e0d\u540c\uff0cSFID \u4e0d\u4f7f\u7528 Inception Network \u4e2d\u6700\u540e\u4e00\u4e2a\u6c60\u5316\u5c42\u4e4b\u540e\u7684\u6fc0\u6d3b\u77e2\u91cf\uff08\u6bcf\u4e2a\u56fe\u50cf\u4e00\u4e2a\u5411\u91cf\uff09\uff0c\u800c\u662f\u5728\u7b2c\u4e8c\u4e2a\u6c60\u5c42\u4e4b\u524d\u7684\u5377\u79ef\u5c42\u8f93\u51fa\u5904\u4f7f\u7528\u6df1\u5c42\u7279\u5f81\u7684\u5185\u90e8\u5206\u5e03\uff08feature map \u4e2d\u6bcf\u4e2a\u4f4d\u7f6e\u4e00\u4e2a\u5411\u91cf\uff09\u3002\u6700\u7ec8 SIFID \u662f\u771f\u5b9e\u56fe\u50cf\u548c\u751f\u6210\u7684\u6837\u672c\u4e2d\u8fd9\u4e9b\u7279\u5f81\u7684\u7edf\u8ba1\u6570\u636e\u4e4b\u95f4\u7684 FID\u3002")),(0,s.kt)("li",{parentName:"ol"},(0,s.kt)("p",{parentName:"li"},"Structural Consistency Score\uff08SCS\uff09"),(0,s.kt)("p",{parentName:"li"},"\u8bc4\u4f30\u56fe\u50cf\u7684\u7ed3\u6784\u4fdd\u5b58\u80fd\u529b")),(0,s.kt)("li",{parentName:"ol"},(0,s.kt)("p",{parentName:"li"},"Identity Similarity\uff08ID\uff09"),(0,s.kt)("p",{parentName:"li"},"\u8bc4\u4f30\u56fe\u50cf\u7684\u7279\u5f81\u4fdd\u5b58\u80fd\u529b"))),(0,s.kt)("h2",{id:"\u65b0\u589e\u529f\u80fd"},"\u65b0\u589e\u529f\u80fd"),(0,s.kt)("h3",{id:"\u81ea\u5b9a\u4e49\u56fe\u50cf\u98ce\u683c\u8fc1\u79fb"},"\u81ea\u5b9a\u4e49\u56fe\u50cf\u98ce\u683c\u8fc1\u79fb"),(0,s.kt)("p",null,"\u65b0\u589e\u4e86\u81ea\u5b9a\u4e49\u56fe\u50cf\u98ce\u683c\u8fc1\u79fb\u529f\u80fd\u3002"),(0,s.kt)("p",null," ",(0,s.kt)("a",{parentName:"p",href:"https://yuval-alaluf.github.io/hyperstyle/"},"HyperStyle "),"\u4e2d\u7684 e4e encoder \u5c06\u81ea\u5b9a\u4e49\u7684\u771f\u5b9e\u56fe\u50cf\u7f16\u7801\u81f3 StyleGAN2 \u4e2d\u7684 W \u7a7a\u95f4\u751f\u6210 latent codes\uff0c\u518d\u5c06\u5176\u5206\u522b\u8f93\u5165\u81f3\u6e90\u57df\u751f\u6210\u5668\u4ee5\u53ca\u76ee\u6807\u57df\u751f\u6210\u5668\u4ee5\u4ee3\u66ff\u539f\u59cb\u7684\u4ece\u6b63\u6001\u5206\u5e03\u4e2d sample \u51fa\u7684\u968f\u673a\u5411\u91cf\u751f\u6210\u7684 ",(0,s.kt)("inlineCode",{parentName:"p"},"w_codes"),"\uff0c\u4ece\u800c\u5f97\u5230\u76f8\u5e94\u7684\u56fe\u7247\u3002\u5176\u4e2d e4e encoder \u6765\u6e90\u4e8e HyperStyle \u63d0\u4f9b\u7684\u9884\u8bad\u7ec3 checkpoint\u3002"),(0,s.kt)("p",null,"\u4f7f\u7528\u65b9\u6cd5\uff1a\u8fd0\u884c ",(0,s.kt)("inlineCode",{parentName:"p"},"inference.py"),"\uff0c\u8bbe\u7f6e\u5bf9\u5e94\u7684\u53c2\u6570\uff0c\u5982\u751f\u6210\u5668\u4ee5\u53ca e4e encoder \u7684\u8def\u5f84\u3001\u56fe\u50cf\u8def\u5f84\u7b49\uff0c\u6700\u540e\u8fd0\u884c\u5373\u53ef\u3002"),(0,s.kt)("h4",{id:"\u4fee\u6539\u65e5\u5fd7"},"\u4fee\u6539\u65e5\u5fd7"),(0,s.kt)("ol",null,(0,s.kt)("li",{parentName:"ol"},"\u7b2c\u4e00\u6b21\u5c1d\u8bd5\u53ea\u52a0\u8f7d\u4e86 ",(0,s.kt)("inlineCode",{parentName:"li"},"w_encoder")," \u7c7b\u53ca\u5176\u5bf9\u5e94 checkpoint \u53c2\u6570\uff0c\u5bfc\u81f4\u5e76\u672a\u5c06\u771f\u5b9e\u56fe\u7247\u7f16\u7801\u5230 StyleGAN \u7684 W \u7a7a\u95f4\u4e2d\uff0c\u6ca1\u6709 inversion \u51fa\u5408\u7406\u7684\u7ed3\u679c"),(0,s.kt)("li",{parentName:"ol"},"\u7b2c\u4e8c\u6b21\u5c1d\u8bd5\u4f7f\u7528\u4e86 ",(0,s.kt)("inlineCode",{parentName:"li"},"restyle_e4e_encoder"),"\uff0c\u4f46\u662f\u6ca1\u6709\u4f7f\u7528 dlib \u8fdb\u884c alignment\uff0c\u4e5f\u6ca1\u6709\u4f7f\u7528 restyle \u6a21\u578b\u5728\u53cd\u6f14\u65f6\u4f7f\u7528\u7684\u591a\u6b21\u8fdb\u884c\u524d\u5411\u4f20\u64ad\u6765\u4fee\u6b63 latent code \u7684\u7b56\u7565\u3002\u6b64\u6b21\u5c1d\u8bd5\u867d\u7136\u53cd\u6f14\u51fa\u4e86\u5408\u7406\u7684\u4eba\u50cf\uff0c\u4f46\u662f\u4eba\u50cf\u7684\u7279\u5f81\u4fdd\u5b58\u80fd\u529b\u975e\u5e38\u5f31"),(0,s.kt)("li",{parentName:"ol"},"\u7b2c\u4e09\u6b21\u5c1d\u8bd5\u89e3\u51b3\u4e86\u4e0a\u4e00\u6b21\u53d1\u73b0\u7684\u95ee\u9898\uff0c\u52a0\u5165 dlib \u63d0\u4f9b\u7684 landmark \u68c0\u6d4b\u4ee5\u5b9e\u73b0 alignment\uff0c\u5e76\u4e14\u4f7f\u7528 ",(0,s.kt)("inlineCode",{parentName:"li"},"run_loop")," \u51fd\u6570\u5728 restyle_e4e_encoder \u4e2d\u8fdb\u884c\u591a\u6b21\u524d\u5411\u4f20\u64ad\u4ee5\u4fee\u6b63\u5f97\u5230\u7684 W \u7a7a\u95f4\u7684 latent code\uff0c\u6548\u679c\u8f83\u597d"),(0,s.kt)("li",{parentName:"ol"},"\u5bf9\u6bd4 pSp \u548c e4e encoder\uff0cpSp \u5bf9\u4eba\u8138\u56fe\u50cf\u7684\u8fd8\u539f\u80fd\u529b\u8f83\u5f3a\uff0c\u4f46\u662f\u4f1a\u5bfc\u81f4\u76ee\u6807\u57df\u56fe\u50cf\u5177\u6709\u968f\u673a\u7684\u5f69\u8272\u5149\u6655")),(0,s.kt)("h2",{id:"\u95ee\u9898\u63d0\u51fa\u4e0e\u6539\u8fdb"},"\u95ee\u9898\u63d0\u51fa\u4e0e\u6539\u8fdb"),(0,s.kt)("h3",{id:"\u6539\u8fdbmapper-\u7ed3\u6784\u7684\u8bbe\u8ba1"},"\u6539\u8fdb\uff1aMapper \u7ed3\u6784\u7684\u8bbe\u8ba1"),(0,s.kt)("p",null,"Mapper \u7684\u4f5c\u7528\u662f\u4ece W \u7a7a\u95f4\u7684\u9690\u5f0f\u4ee3\u7801\u4e2d\u5b66\u4e60\u51fa\u7b26\u5408\u6e90\u57df\u56fe\u7247\u7279\u5f81\u4ee5\u53ca\u7b26\u5408\u76ee\u6807\u57df\u6587\u5b57\u7279\u5f81\u7684 prompts\u3002"),(0,s.kt)("h3",{id:"\u95ee\u9898\u8bad\u7ec3\u9636\u6bb5\u4eba\u5de5-prompts-\u7684\u4f5c\u7528\u662f\u4ec0\u4e48"},"\u95ee\u9898\uff1a\u8bad\u7ec3\u9636\u6bb5\u4eba\u5de5 prompts \u7684\u4f5c\u7528\u662f\u4ec0\u4e48\uff1f"),(0,s.kt)("p",null,"\u5728 IPL \u7684\u5b98\u65b9\u4ee3\u7801\u5b9e\u73b0\u4e2d\uff0c\u4eba\u5de5\u8bbe\u8ba1\u7684 prompts \u6709\u4e24\u5904\uff0c\u4e00\u662f ",(0,s.kt)("inlineCode",{parentName:"p"},"ctx_init"),'\uff0c\u7531\u547d\u4ee4\u884c\u53c2\u6570\u8d4b\u503c\uff0c\u5373 "a photo of a"\uff0c\u53e6\u4e00\u5904\u662f utils/text_templates.py \u4e2d\u7684 templates\uff0c'),(0,s.kt)("h4",{id:"ctx_init-\u7684\u4f5c\u7528\u4e0e\u57df\u6807\u7b7e\u62fc\u63a5\u540e\u7684-ctx_init"},"ctx_init \u7684\u4f5c\u7528\uff08\u4e0e\u57df\u6807\u7b7e\u62fc\u63a5\u540e\u7684 ctx_init\uff09"),(0,s.kt)("ol",null,(0,s.kt)("li",{parentName:"ol"},(0,s.kt)("p",{parentName:"li"},(0,s.kt)("inlineCode",{parentName:"p"},"ctx_init")," \u5728 ",(0,s.kt)("inlineCode",{parentName:"p"},"compute_text_features")," \u51fd\u6570\u4e2d\u7528\u4e8e\u5b9a\u4f4d ",(0,s.kt)("inlineCode",{parentName:"p"},"eot")," \u5c42\u7b26\u53f7\u6240\u8868\u793a\u7684\u7ef4\u5ea6\u6765\u8fdb\u884c\u6295\u5f71\uff0c\u4f7f\u5f97\u6587\u5b57\u7279\u5f81\u4e0e\u56fe\u50cf\u7279\u5f81\u7ef4\u5ea6\u76f8\u540c\uff0c\u5e76\u4e0d\u53c2\u4e0e ",(0,s.kt)("inlineCode",{parentName:"p"},"text_features")," \u7684\u5b9e\u9645\u8ba1\u7b97\u3002\u4f46\u662f\u5728\u8be5\u51fd\u6570\u4e2d\uff0cMapper \u8f93\u51fa\u7684 image-specific prompts \u5df2\u7ecf\u4e0e\u57df\u6807\u7b7e\u7684\u5d4c\u5165\u8868\u793a\u8fdb\u884c\u4e86 concat\u3002")),(0,s.kt)("li",{parentName:"ol"},(0,s.kt)("p",{parentName:"li"},"\u5728 stage 1 \u8bad\u7ec3 Mapper \u635f\u5931\u51fd\u6570\u4e2d\uff0cMapper \u5b66\u4e60\u5230\u7684 image-specfic prompts \u5728\u4e0e\u6e90\u57df\u6807\u7b7e\u8fdb\u884c concat \u5e76\u5f97\u5230\u6587\u5b57\u7f16\u7801\u540e\uff0c\u4f1a\u4e0e ctx_init \u7684\u6587\u5b57\u7f16\u7801\u8fdb\u884c element-wise \u7684\u76f8\u52a0\uff0c\u6700\u540e\u518d\u4e0e\u6e90\u57df\u751f\u6210\u5668\u8f93\u51fa\u7684\u56fe\u7247\u7684\u56fe\u50cf\u7f16\u7801\u8fdb\u884c\u5bf9\u6bd4\u635f\u5931\u8ba1\u7b97\uff1b"),(0,s.kt)("p",{parentName:"li"},"\u540c\u7406\uff0c\u5728 stage 2 \u8bad\u7ec3\u76ee\u6807\u57df\u751f\u6210\u5668\u65f6\uff0cMapper \u8f93\u51fa\u7684 image-specific prompts \u5728\u5206\u522b\u4e0e\u6e90\u57df\u3001\u76ee\u6807\u57df\u6807\u7b7e concat \u540e\u9001\u5165\u6587\u5b57\u7f16\u7801\u5668\u5f97\u5230\u6587\u5b57\u7279\u5f81\uff0c\u518d\u4e0e ctx_init \u7684\u6587\u5b57\u7279\u5f81\u8fdb\u884c element-wise \u76f8\u52a0\uff0c\u6700\u540e\u4e8c\u8005\u76f8\u51cf\u5f97\u5230 text_direction\u3002"))),(0,s.kt)("h4",{id:"templates-\u7684\u4f5c\u7528"},"templates \u7684\u4f5c\u7528"),(0,s.kt)("p",null,"\u6ce8\u610f\uff0c\u8fd9\u91cc\u7684 ",(0,s.kt)("inlineCode",{parentName:"p"},"compute_text_features")," \u51fd\u6570\u4e2d\u5411\u5176\u53c2\u6570 ",(0,s.kt)("inlineCode",{parentName:"p"},"templates")," \u4f20\u5165\u7684\u503c\u662f ",(0,s.kt)("inlineCode",{parentName:"p"},"ctx_init"),"\uff0c\u6240\u4ee5\u624d\u80fd\u4f7f\u7528 ",(0,s.kt)("inlineCode",{parentName:"p"},"ctx_init")," \u6765\u5b9a\u4f4d eot \u7b26\u53f7\u6240\u5bf9\u5e94\u7684\u5c42\u8fdb\u884c\u7ef4\u5ea6\u6295\u5f71\u3002\u53c2\u6570 ",(0,s.kt)("inlineCode",{parentName:"p"},"templates")," \u7f3a\u7701\u7684\u503c\u662f\u5728 utils/text_templates.py \u4e2d\u5199\u597d\u7684\u6a21\u677f\u3002"),(0,s.kt)("h4",{id:"\u601d\u8003"},"\u601d\u8003"),(0,s.kt)("p",null,"IPL \u65b9\u6cd5\u5bf9 Mapper \u5b66\u4e60\u5230\u7684 prompts \u9664\u4e86\uff081\uff09\u4f7f\u7528\u5bf9\u6bd4\u5b66\u4e60\u4f7f prompts \u5b66\u4e60\u5230\u6e90\u57df\u56fe\u7247\u7684\u7279\u5f81\u4ee5\u53ca\uff082\uff09\u4f7f\u7528\u57df\u6b63\u5219\u5316\u4f7f\u5f97 prompts \u5411\u76ee\u6807\u57df\u6807\u7b7e\u5bf9\u9f50\u4e4b\u5916\uff0c\u5e76\u6ca1\u6709\u4f7f\u7528\u5176\u4ed6\u4e0e\u4eba\u5de5\u8bbe\u8ba1\u7684 prompts \u6709\u5173\u7684\u6b63\u5219\u5316\u65b9\u5f0f\u6765\u7ea6\u675f prompts \u7684\u5b66\u4e60\uff0c\u56e0\u6b64\u4eba\u5de5\u8bbe\u8ba1\u7684 prompts \u53ef\u80fd\u5e76\u6ca1\u6709\u8d77\u5230\u592a\u5927\u7684\u7ea6\u675f\u4f5c\u7528\u3002"),(0,s.kt)("p",null,"\u5982\u679c\u5bf9\u6bd4\u5b66\u4e60\u635f\u5931\u662f\u4e3a\u4e86\u8ba9 Mapper \u81ea\u76d1\u7763\u5b66\u4e60\u5230\u56fe\u7247\u7684\u7279\u5f81\u5916\uff0c\u90a3\u4e48\u662f\u5426\u53ef\u4ee5\u5bf9\u57df\u6b63\u5219\u5316\u635f\u5931\u8fdb\u884c\u6539\u8fdb\uff0c\u7ea6\u675f\u5b66\u4e60\u5230\u7684 prompts \u5411\u4eba\u5de5\u8bbe\u8ba1\u7684\u521d\u59cb\u5316 prompts \u5bf9\u9f50\uff0c\u4ee5\u5b9e\u73b0\u7c7b\u4f3c\u4e8e Stable Diffusion \u7c7b\u4f3c\u7684 prompts \u63a7\u5236\u56fe\u50cf\u751f\u6210\u7684\u6548\u679c\u3002"),(0,s.kt)("h3",{id:"\u6539\u8fdb\u4f7f\u5b66\u4e60\u5230\u7684-prompts-\u5411\u7528\u6237\u81ea\u4e3b\u8bbe\u8ba1\u7684-prompts-\u6a21\u677f\u5bf9\u9f50"},"\u6539\u8fdb\uff1a\u4f7f\u5b66\u4e60\u5230\u7684 prompts \u5411\u7528\u6237\u81ea\u4e3b\u8bbe\u8ba1\u7684 prompts \u6a21\u677f\u5bf9\u9f50"),(0,s.kt)("p",null,"\u5bf9\u7b2c\u4e00\u9636\u6bb5\u7684\u635f\u5931\u51fd\u6570\u505a\u51fa\u4fee\u6539\uff0c\u66f4\u65b0domain loss\uff0c\u4f7f\u76ee\u6807\u57df\u7684image-specific prompts\u4e0e\u81ea\u5b9a\u4e49\u6a21\u677f\u5bf9\u9f50\u3002"),(0,s.kt)("h4",{id:"\u5bf9-global_clip_loss-\u7684\u6539\u8fdb"},"\u5bf9 global_clip_loss \u7684\u6539\u8fdb"),(0,s.kt)("p",null,"IPL \u8bad\u7ec3\u7b2c\u4e00\u9636\u6bb5\u7684\u635f\u5931\u51fd\u6570\u9664\u4e86\u6e90\u57df prompts \u4e0e\u6e90\u57df\u56fe\u50cf\u4e4b\u95f4\u7684\u5bf9\u6bd4\u5b66\u4e60\u635f\u5931\u51fd\u6570\u5916\uff0c\u8fd8\u6709\u5c06\u76ee\u6807\u57df prompts \u4e0e\u76ee\u6807\u57df\u6807\u7b7e\u8ba1\u7b97\u4f59\u5f26\u76f8\u4f3c\u5ea6\u7684 domain regularization\u3002"),(0,s.kt)("p",null,"\u5bf9 domain regularization \u8fdb\u884c\u6539\u8fdb\uff0c\u5f15\u5165\u5f00\u53d1\u8005\u81ea\u5b9a\u4e49\u7684 prompts\uff0c\u7ea6\u675f Mapper \u5b66\u4e60\u5230\u7684\u76ee\u6807\u57df prompts \u5411\u5f00\u53d1\u8005\u81ea\u5b9a\u4e49\u7684 prompts \u5bf9\u9f50\uff0c\u4ee5\u6b64\u6765\u8fdb\u884c prompt tuning\uff0c\u53d1\u6325 prompt learning \u7684\u66f4\u5927\u4f18\u52bf\uff0c\u5e76\u589e\u5f3a\u81ea\u5b9a\u4e49\u6027\u3002"),(0,s.kt)("h4",{id:"\u5bf9-clip_directional_loss-\u7684\u6539\u8fdb"},"\u5bf9 clip_directional_loss \u7684\u6539\u8fdb"),(0,s.kt)("p",null,"IPL \u8bad\u7ec3\u7b2c\u4e8c\u9636\u6bb5\u7684\u635f\u5931\u51fd\u6570"))}k.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/170d5aca.5ea70d1f.js b/assets/js/170d5aca.5ea70d1f.js new file mode 100644 index 000000000..06a775b89 --- /dev/null +++ b/assets/js/170d5aca.5ea70d1f.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunknpy_notebook=self.webpackChunknpy_notebook||[]).push([[7122],{3905:(e,t,n)=>{n.d(t,{Zo:()=>u,kt:()=>d});var r=n(7294);function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var c=r.createContext({}),l=function(e){var t=r.useContext(c),n=t;return e&&(n="function"==typeof e?e(t):a(a({},t),e)),n},u=function(e){var t=l(e.components);return r.createElement(c.Provider,{value:t},e.children)},s="mdxType",m={inlineCode:"code",wrapper:function(e){var t=e.children;return r.createElement(r.Fragment,{},t)}},f=r.forwardRef((function(e,t){var n=e.components,o=e.mdxType,i=e.originalType,c=e.parentName,u=p(e,["components","mdxType","originalType","parentName"]),s=l(n),f=o,d=s["".concat(c,".").concat(f)]||s[f]||m[f]||i;return n?r.createElement(d,a(a({ref:t},u),{},{components:n})):r.createElement(d,a({ref:t},u))}));function d(e,t){var n=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var i=n.length,a=new Array(i);a[0]=f;var p={};for(var c in t)hasOwnProperty.call(t,c)&&(p[c]=t[c]);p.originalType=e,p[s]="string"==typeof e?e:o,a[1]=p;for(var l=2;l{n.r(t),n.d(t,{assets:()=>c,contentTitle:()=>a,default:()=>m,frontMatter:()=>i,metadata:()=>p,toc:()=>l});var r=n(7462),o=(n(7294),n(3905));const i={},a="Welcome",p={unversionedId:"Deep-Learning/intro",id:"Deep-Learning/intro",title:"Welcome",description:"\u6b22\u8fce\u6765\u5230\u7b14\u8bb0\u672c\u7684\u6df1\u5ea6\u5b66\u4e60\u90e8\u5206",source:"@site/docs/Deep-Learning/1-intro.md",sourceDirName:"Deep-Learning",slug:"/Deep-Learning/intro",permalink:"/docs/Deep-Learning/intro",draft:!1,tags:[],version:"current",sidebarPosition:1,frontMatter:{},sidebar:"deep_learning",next:{title:"\u67e5\u6f0f\u8865\u7f3a",permalink:"/docs/Deep-Learning/Fill-The-Gaps"}},c={},l=[{value:"\u652f\u6301\u6211\uff01",id:"\u652f\u6301\u6211",level:2}],u={toc:l},s="wrapper";function m(e){let{components:t,...i}=e;return(0,o.kt)(s,(0,r.Z)({},u,i,{components:t,mdxType:"MDXLayout"}),(0,o.kt)("h1",{id:"welcome"},"Welcome"),(0,o.kt)("admonition",{title:"\u4ecb\u7ecd",type:"tip"},(0,o.kt)("p",{parentName:"admonition"},"\u6b22\u8fce\u6765\u5230\u7b14\u8bb0\u672c\u7684\u6df1\u5ea6\u5b66\u4e60\u90e8\u5206"),(0,o.kt)("p",{parentName:"admonition"},"\u82e5\u66f4\u65b0\u4e0d\u53ca\u65f6\uff0c\u6b22\u8fce\u901a\u8fc7",(0,o.kt)("a",{parentName:"p",href:"https://github.com/bonjour-npy"},"GitHub"),"\u8054\u7cfb\u4ea4\u6d41")),(0,o.kt)("admonition",{title:"\u6709\u5173\u8bba\u6587\u7b14\u8bb0\u7684\u8bf4\u660e",type:"important"},(0,o.kt)("p",{parentName:"admonition"},"\u4e3a\u4e86\u8282\u7701\u5199\u4f5c\u65f6\u95f4\uff0c\u8bba\u6587\u7b14\u8bb0\u90e8\u5206\u7684\u6587\u7ae0\u901a\u5e38\u53ea\u8bb2\u8ff0\u6587\u7ae0\u7684\u65b9\u6cd5\u8bba\uff0cIntroduction\u4ee5\u53caRelated Work\u8be6\u60c5\u53ef\u4ee5\u53c2\u8003\u8bba\u6587\u539f\u6587")),(0,o.kt)("h2",{id:"\u652f\u6301\u6211"},"\u652f\u6301\u6211\uff01"),(0,o.kt)("p",null,"\u5982\u679c\u53ef\u4ee5\u5e2e\u5230\u4f60\u7684\u8bdd\u5c31\u7ed9\u4e2a\u514d\u8d39\u7684Star\u5427\uff01"),(0,o.kt)("p",null,(0,o.kt)("img",{src:n(9163).Z,width:"2778",height:"2046"})))}m.isMDXComponent=!0},9163:(e,t,n)=>{n.d(t,{Z:()=>r});const r=n.p+"assets/images/intro-822c34cd9b5577b06df8bb0956cdf947.png"}}]); \ No newline at end of file diff --git a/assets/js/17896441.077d419c.js b/assets/js/17896441.077d419c.js new file mode 100644 index 000000000..4bd37413b --- /dev/null +++ b/assets/js/17896441.077d419c.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunknpy_notebook=self.webpackChunknpy_notebook||[]).push([[7918],{903:(e,t,a)=>{a.r(t),a.d(t,{default:()=>pe});var n=a(7294),l=a(1944),r=a(902);const o=n.createContext(null);function s(e){let{children:t,content:a}=e;const l=function(e){return(0,n.useMemo)((()=>({metadata:e.metadata,frontMatter:e.frontMatter,assets:e.assets,contentTitle:e.contentTitle,toc:e.toc})),[e])}(a);return n.createElement(o.Provider,{value:l},t)}function c(){const e=(0,n.useContext)(o);if(null===e)throw new r.i6("DocProvider");return e}function i(){const{metadata:e,frontMatter:t,assets:a}=c();return n.createElement(l.d,{title:e.title,description:e.description,keywords:t.keywords,image:a.image??t.image})}var d=a(6010),m=a(7524),u=a(7462),b=a(5999),p=a(9960);function E(e){const{permalink:t,title:a,subLabel:l,isNext:r}=e;return n.createElement(p.Z,{className:(0,d.Z)("pagination-nav__link",r?"pagination-nav__link--next":"pagination-nav__link--prev"),to:t},l&&n.createElement("div",{className:"pagination-nav__sublabel"},l),n.createElement("div",{className:"pagination-nav__label"},a))}function h(e){const{previous:t,next:a}=e;return n.createElement("nav",{className:"pagination-nav docusaurus-mt-lg","aria-label":(0,b.I)({id:"theme.docs.paginator.navAriaLabel",message:"Docs pages",description:"The ARIA label for the docs pagination"})},t&&n.createElement(E,(0,u.Z)({},t,{subLabel:n.createElement(b.Z,{id:"theme.docs.paginator.previous",description:"The label used to navigate to the previous doc"},"Previous")})),a&&n.createElement(E,(0,u.Z)({},a,{subLabel:n.createElement(b.Z,{id:"theme.docs.paginator.next",description:"The label used to navigate to the next doc"},"Next"),isNext:!0})))}function v(){const{metadata:e}=c();return n.createElement(h,{previous:e.previous,next:e.next})}var g=a(2263),f=a(143),_=a(5281),N=a(373),k=a(4477);const Z={unreleased:function(e){let{siteTitle:t,versionMetadata:a}=e;return n.createElement(b.Z,{id:"theme.docs.versions.unreleasedVersionLabel",description:"The label used to tell the user that he's browsing an unreleased doc version",values:{siteTitle:t,versionLabel:n.createElement("b",null,a.label)}},"This is unreleased documentation for {siteTitle} {versionLabel} version.")},unmaintained:function(e){let{siteTitle:t,versionMetadata:a}=e;return n.createElement(b.Z,{id:"theme.docs.versions.unmaintainedVersionLabel",description:"The label used to tell the user that he's browsing an unmaintained doc version",values:{siteTitle:t,versionLabel:n.createElement("b",null,a.label)}},"This is documentation for {siteTitle} {versionLabel}, which is no longer actively maintained.")}};function C(e){const t=Z[e.versionMetadata.banner];return n.createElement(t,e)}function L(e){let{versionLabel:t,to:a,onClick:l}=e;return n.createElement(b.Z,{id:"theme.docs.versions.latestVersionSuggestionLabel",description:"The label used to tell the user to check the latest version",values:{versionLabel:t,latestVersionLink:n.createElement("b",null,n.createElement(p.Z,{to:a,onClick:l},n.createElement(b.Z,{id:"theme.docs.versions.latestVersionLinkLabel",description:"The label used for the latest version suggestion link label"},"latest version")))}},"For up-to-date documentation, see the {latestVersionLink} ({versionLabel}).")}function T(e){let{className:t,versionMetadata:a}=e;const{siteConfig:{title:l}}=(0,g.Z)(),{pluginId:r}=(0,f.gA)({failfast:!0}),{savePreferredVersionName:o}=(0,N.J)(r),{latestDocSuggestion:s,latestVersionSuggestion:c}=(0,f.Jo)(r),i=s??(m=c).docs.find((e=>e.id===m.mainDocId));var m;return n.createElement("div",{className:(0,d.Z)(t,_.k.docs.docVersionBanner,"alert alert--warning margin-bottom--md"),role:"alert"},n.createElement("div",null,n.createElement(C,{siteTitle:l,versionMetadata:a})),n.createElement("div",{className:"margin-top--md"},n.createElement(L,{versionLabel:c.label,to:i.path,onClick:()=>o(c.name)})))}function U(e){let{className:t}=e;const a=(0,k.E)();return a.banner?n.createElement(T,{className:t,versionMetadata:a}):null}function w(e){let{className:t}=e;const a=(0,k.E)();return a.badge?n.createElement("span",{className:(0,d.Z)(t,_.k.docs.docVersionBadge,"badge badge--secondary")},n.createElement(b.Z,{id:"theme.docs.versionBadge.label",values:{versionLabel:a.label}},"Version: {versionLabel}")):null}function x(e){let{lastUpdatedAt:t,formattedLastUpdatedAt:a}=e;return n.createElement(b.Z,{id:"theme.lastUpdated.atDate",description:"The words used to describe on which date a page has been last updated",values:{date:n.createElement("b",null,n.createElement("time",{dateTime:new Date(1e3*t).toISOString()},a))}}," on {date}")}function y(e){let{lastUpdatedBy:t}=e;return n.createElement(b.Z,{id:"theme.lastUpdated.byUser",description:"The words used to describe by who the page has been last updated",values:{user:n.createElement("b",null,t)}}," by {user}")}function A(e){let{lastUpdatedAt:t,formattedLastUpdatedAt:a,lastUpdatedBy:l}=e;return n.createElement("span",{className:_.k.common.lastUpdated},n.createElement(b.Z,{id:"theme.lastUpdated.lastUpdatedAtBy",description:"The sentence used to display when a page has been last updated, and by who",values:{atDate:t&&a?n.createElement(x,{lastUpdatedAt:t,formattedLastUpdatedAt:a}):"",byUser:l?n.createElement(y,{lastUpdatedBy:l}):""}},"Last updated{atDate}{byUser}"),!1)}const M={iconEdit:"iconEdit_Z9Sw"};function B(e){let{className:t,...a}=e;return n.createElement("svg",(0,u.Z)({fill:"currentColor",height:"20",width:"20",viewBox:"0 0 40 40",className:(0,d.Z)(M.iconEdit,t),"aria-hidden":"true"},a),n.createElement("g",null,n.createElement("path",{d:"m34.5 11.7l-3 3.1-6.3-6.3 3.1-3q0.5-0.5 1.2-0.5t1.1 0.5l3.9 3.9q0.5 0.4 0.5 1.1t-0.5 1.2z m-29.5 17.1l18.4-18.5 6.3 6.3-18.4 18.4h-6.3v-6.2z"})))}function I(e){let{editUrl:t}=e;return n.createElement("a",{href:t,target:"_blank",rel:"noreferrer noopener",className:_.k.common.editThisPage},n.createElement(B,null),n.createElement(b.Z,{id:"theme.common.editThisPage",description:"The link label to edit the current page"},"Edit this page"))}const V={tag:"tag_zVej",tagRegular:"tagRegular_sFm0",tagWithCount:"tagWithCount_h2kH"};function H(e){let{permalink:t,label:a,count:l}=e;return n.createElement(p.Z,{href:t,className:(0,d.Z)(V.tag,l?V.tagWithCount:V.tagRegular)},a,l&&n.createElement("span",null,l))}const P={tags:"tags_jXut",tag:"tag_QGVx"};function D(e){let{tags:t}=e;return n.createElement(n.Fragment,null,n.createElement("b",null,n.createElement(b.Z,{id:"theme.tags.tagsListLabel",description:"The label alongside a tag list"},"Tags:")),n.createElement("ul",{className:(0,d.Z)(P.tags,"padding--none","margin-left--sm")},t.map((e=>{let{label:t,permalink:a}=e;return n.createElement("li",{key:a,className:P.tag},n.createElement(H,{label:t,permalink:a}))}))))}const S={lastUpdated:"lastUpdated_vwxv"};function F(e){return n.createElement("div",{className:(0,d.Z)(_.k.docs.docFooterTagsRow,"row margin-bottom--sm")},n.createElement("div",{className:"col"},n.createElement(D,e)))}function R(e){let{editUrl:t,lastUpdatedAt:a,lastUpdatedBy:l,formattedLastUpdatedAt:r}=e;return n.createElement("div",{className:(0,d.Z)(_.k.docs.docFooterEditMetaRow,"row")},n.createElement("div",{className:"col"},t&&n.createElement(I,{editUrl:t})),n.createElement("div",{className:(0,d.Z)("col",S.lastUpdated)},(a||l)&&n.createElement(A,{lastUpdatedAt:a,formattedLastUpdatedAt:r,lastUpdatedBy:l})))}function z(){const{metadata:e}=c(),{editUrl:t,lastUpdatedAt:a,formattedLastUpdatedAt:l,lastUpdatedBy:r,tags:o}=e,s=o.length>0,i=!!(t||a||r);return s||i?n.createElement("footer",{className:(0,d.Z)(_.k.docs.docFooter,"docusaurus-mt-lg")},s&&n.createElement(F,{tags:o}),i&&n.createElement(R,{editUrl:t,lastUpdatedAt:a,lastUpdatedBy:r,formattedLastUpdatedAt:l})):null}var O=a(6043),j=a(3743);const q={tocCollapsibleButton:"tocCollapsibleButton_TO0P",tocCollapsibleButtonExpanded:"tocCollapsibleButtonExpanded_MG3E"};function G(e){let{collapsed:t,...a}=e;return n.createElement("button",(0,u.Z)({type:"button"},a,{className:(0,d.Z)("clean-btn",q.tocCollapsibleButton,!t&&q.tocCollapsibleButtonExpanded,a.className)}),n.createElement(b.Z,{id:"theme.TOCCollapsible.toggleButtonLabel",description:"The label used by the button on the collapsible TOC component"},"On this page"))}const W={tocCollapsible:"tocCollapsible_ETCw",tocCollapsibleContent:"tocCollapsibleContent_vkbj",tocCollapsibleExpanded:"tocCollapsibleExpanded_sAul"};function J(e){let{toc:t,className:a,minHeadingLevel:l,maxHeadingLevel:r}=e;const{collapsed:o,toggleCollapsed:s}=(0,O.u)({initialState:!0});return n.createElement("div",{className:(0,d.Z)(W.tocCollapsible,!o&&W.tocCollapsibleExpanded,a)},n.createElement(G,{collapsed:o,onClick:s}),n.createElement(O.z,{lazy:!0,className:W.tocCollapsibleContent,collapsed:o},n.createElement(j.Z,{toc:t,minHeadingLevel:l,maxHeadingLevel:r})))}const Q={tocMobile:"tocMobile_ITEo"};function X(){const{toc:e,frontMatter:t}=c();return n.createElement(J,{toc:e,minHeadingLevel:t.toc_min_heading_level,maxHeadingLevel:t.toc_max_heading_level,className:(0,d.Z)(_.k.docs.docTocMobile,Q.tocMobile)})}var Y=a(9407);function $(){const{toc:e,frontMatter:t}=c();return n.createElement(Y.Z,{toc:e,minHeadingLevel:t.toc_min_heading_level,maxHeadingLevel:t.toc_max_heading_level,className:_.k.docs.docTocDesktop})}var K=a(2503),ee=a(864);function te(e){let{children:t}=e;const a=function(){const{metadata:e,frontMatter:t,contentTitle:a}=c();return t.hide_title||void 0!==a?null:e.title}();return n.createElement("div",{className:(0,d.Z)(_.k.docs.docMarkdown,"markdown")},a&&n.createElement("header",null,n.createElement(K.Z,{as:"h1"},a)),n.createElement(ee.Z,null,t))}var ae=a(2802),ne=a(8596),le=a(4996);function re(e){return n.createElement("svg",(0,u.Z)({viewBox:"0 0 24 24"},e),n.createElement("path",{d:"M10 19v-5h4v5c0 .55.45 1 1 1h3c.55 0 1-.45 1-1v-7h1.7c.46 0 .68-.57.33-.87L12.67 3.6c-.38-.34-.96-.34-1.34 0l-8.36 7.53c-.34.3-.13.87.33.87H5v7c0 .55.45 1 1 1h3c.55 0 1-.45 1-1z",fill:"currentColor"}))}const oe={breadcrumbHomeIcon:"breadcrumbHomeIcon_YNFT"};function se(){const e=(0,le.Z)("/");return n.createElement("li",{className:"breadcrumbs__item"},n.createElement(p.Z,{"aria-label":(0,b.I)({id:"theme.docs.breadcrumbs.home",message:"Home page",description:"The ARIA label for the home page in the breadcrumbs"}),className:"breadcrumbs__link",href:e},n.createElement(re,{className:oe.breadcrumbHomeIcon})))}const ce={breadcrumbsContainer:"breadcrumbsContainer_Z_bl"};function ie(e){let{children:t,href:a,isLast:l}=e;const r="breadcrumbs__link";return l?n.createElement("span",{className:r,itemProp:"name"},t):a?n.createElement(p.Z,{className:r,href:a,itemProp:"item"},n.createElement("span",{itemProp:"name"},t)):n.createElement("span",{className:r},t)}function de(e){let{children:t,active:a,index:l,addMicrodata:r}=e;return n.createElement("li",(0,u.Z)({},r&&{itemScope:!0,itemProp:"itemListElement",itemType:"https://schema.org/ListItem"},{className:(0,d.Z)("breadcrumbs__item",{"breadcrumbs__item--active":a})}),t,n.createElement("meta",{itemProp:"position",content:String(l+1)}))}function me(){const e=(0,ae.s1)(),t=(0,ne.Ns)();return e?n.createElement("nav",{className:(0,d.Z)(_.k.docs.docBreadcrumbs,ce.breadcrumbsContainer),"aria-label":(0,b.I)({id:"theme.docs.breadcrumbs.navAriaLabel",message:"Breadcrumbs",description:"The ARIA label for the breadcrumbs"})},n.createElement("ul",{className:"breadcrumbs",itemScope:!0,itemType:"https://schema.org/BreadcrumbList"},t&&n.createElement(se,null),e.map(((t,a)=>{const l=a===e.length-1;return n.createElement(de,{key:a,active:l,index:a,addMicrodata:!!t.href},n.createElement(ie,{href:t.href,isLast:l},t.label))})))):null}const ue={docItemContainer:"docItemContainer_Djhp",docItemCol:"docItemCol_VOVn"};function be(e){let{children:t}=e;const a=function(){const{frontMatter:e,toc:t}=c(),a=(0,m.i)(),l=e.hide_table_of_contents,r=!l&&t.length>0;return{hidden:l,mobile:r?n.createElement(X,null):void 0,desktop:!r||"desktop"!==a&&"ssr"!==a?void 0:n.createElement($,null)}}();return n.createElement("div",{className:"row"},n.createElement("div",{className:(0,d.Z)("col",!a.hidden&&ue.docItemCol)},n.createElement(U,null),n.createElement("div",{className:ue.docItemContainer},n.createElement("article",null,n.createElement(me,null),n.createElement(w,null),a.mobile,n.createElement(te,null,t),n.createElement(z,null)),n.createElement(v,null))),a.desktop&&n.createElement("div",{className:"col col--3"},a.desktop))}function pe(e){const t=`docs-doc-id-${e.content.metadata.unversionedId}`,a=e.content;return n.createElement(s,{content:e.content},n.createElement(l.FG,{className:t},n.createElement(i,null),n.createElement(be,null,n.createElement(a,null))))}},4477:(e,t,a)=>{a.d(t,{E:()=>s,q:()=>o});var n=a(7294),l=a(902);const r=n.createContext(null);function o(e){let{children:t,version:a}=e;return n.createElement(r.Provider,{value:a},t)}function s(){const e=(0,n.useContext)(r);if(null===e)throw new l.i6("DocsVersionProvider");return e}}}]); \ No newline at end of file diff --git a/assets/js/198a413f.7208c678.js b/assets/js/198a413f.7208c678.js new file mode 100644 index 000000000..b030306cb --- /dev/null +++ b/assets/js/198a413f.7208c678.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunknpy_notebook=self.webpackChunknpy_notebook||[]).push([[2592],{3905:(e,t,n)=>{n.d(t,{Zo:()=>u,kt:()=>N});var r=n(7294);function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;t=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var o=r.createContext({}),m=function(e){var t=r.useContext(o),n=t;return e&&(n="function"==typeof e?e(t):p(p({},t),e)),n},u=function(e){var t=m(e.components);return r.createElement(o.Provider,{value:t},e.children)},c="mdxType",s={inlineCode:"code",wrapper:function(e){var t=e.children;return r.createElement(r.Fragment,{},t)}},k=r.forwardRef((function(e,t){var n=e.components,a=e.mdxType,i=e.originalType,o=e.parentName,u=l(e,["components","mdxType","originalType","parentName"]),c=m(n),k=a,N=c["".concat(o,".").concat(k)]||c[k]||s[k]||i;return n?r.createElement(N,p(p({ref:t},u),{},{components:n})):r.createElement(N,p({ref:t},u))}));function N(e,t){var n=arguments,a=t&&t.mdxType;if("string"==typeof e||a){var i=n.length,p=new Array(i);p[0]=k;var l={};for(var o in t)hasOwnProperty.call(t,o)&&(l[o]=t[o]);l.originalType=e,l[c]="string"==typeof e?e:a,p[1]=l;for(var m=2;m{n.r(t),n.d(t,{assets:()=>o,contentTitle:()=>p,default:()=>s,frontMatter:()=>i,metadata:()=>l,toc:()=>m});var r=n(7462),a=(n(7294),n(3905));const i={},p="\u6570\u636e\u7ed3\u6784",l={unversionedId:"Tui-Mian/\u8ba1\u7b97\u673a\u57fa\u7840\u7efc\u5408/\u6570\u636e\u7ed3\u6784",id:"Tui-Mian/\u8ba1\u7b97\u673a\u57fa\u7840\u7efc\u5408/\u6570\u636e\u7ed3\u6784",title:"\u6570\u636e\u7ed3\u6784",description:"\u6811",source:"@site/docs/Tui-Mian/\u8ba1\u7b97\u673a\u57fa\u7840\u7efc\u5408/\u6570\u636e\u7ed3\u6784.md",sourceDirName:"Tui-Mian/\u8ba1\u7b97\u673a\u57fa\u7840\u7efc\u5408",slug:"/Tui-Mian/\u8ba1\u7b97\u673a\u57fa\u7840\u7efc\u5408/\u6570\u636e\u7ed3\u6784",permalink:"/docs/Tui-Mian/\u8ba1\u7b97\u673a\u57fa\u7840\u7efc\u5408/\u6570\u636e\u7ed3\u6784",draft:!1,tags:[],version:"current",frontMatter:{},sidebar:"tui_mian",previous:{title:"\u7b80\u5386\u9762\u8bd5\u51c6\u5907",permalink:"/docs/Tui-Mian/\u7b80\u5386/\u7b80\u5386\u9762\u8bd5\u51c6\u5907"}},o={},m=[{value:"\u6811",id:"\u6811",level:2},{value:"\u56fe",id:"\u56fe",level:2}],u={toc:m},c="wrapper";function s(e){let{components:t,...n}=e;return(0,a.kt)(c,(0,r.Z)({},u,n,{components:t,mdxType:"MDXLayout"}),(0,a.kt)("h1",{id:"\u6570\u636e\u7ed3\u6784"},"\u6570\u636e\u7ed3\u6784"),(0,a.kt)("h2",{id:"\u6811"},"\u6811"),(0,a.kt)("ol",null,(0,a.kt)("li",{parentName:"ol"},(0,a.kt)("p",{parentName:"li"},"\u6811\u7684\u6027\u8d28\uff1a"),(0,a.kt)("ul",{parentName:"li"},(0,a.kt)("li",{parentName:"ul"},"\u4e00\u68f5 N \u4e2a\u7ed3\u70b9\u7684\u6811\u6709 N-1 \u6761\u8fb9"),(0,a.kt)("li",{parentName:"ul"},"\u6811\u7684\u603b\u5ea6\u6570+1=\u6811\u7684\u7ed3\u70b9\u6570"),(0,a.kt)("li",{parentName:"ul"},"\u6811\u7684\u5ea6=\u6811\u4e2d\u5ea6\u6700\u5927\u7ed3\u70b9\u7684\u5ea6\u6570"))),(0,a.kt)("li",{parentName:"ol"},(0,a.kt)("p",{parentName:"li"},"\u4e8c\u53c9\u6811\u7684\u6027\u8d28\uff1a"),(0,a.kt)("ul",{parentName:"li"},(0,a.kt)("li",{parentName:"ul"},(0,a.kt)("p",{parentName:"li"},"\u53f6\u5b50\u7ed3\u70b9\u6570\u7b49\u4e8e\u5ea6\u4e3a 2 \u7684\u7ed3\u70b9\u6570\u52a0 1\uff0c\u5373n0 = n2 + 1"),(0,a.kt)("p",{parentName:"li"},(0,a.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_images202309061508552.png",alt:null}))))),(0,a.kt)("li",{parentName:"ol"},(0,a.kt)("p",{parentName:"li"},"\u6811\u8f6c\u5316\u4e3a\u4e8c\u53c9\u6811\uff1a"),(0,a.kt)("p",{parentName:"li"},(0,a.kt)("a",{parentName:"p",href:"https://zhuanlan.zhihu.com/p/134251528"},"\u53c2\u8003\u8d44\u6599\uff1a\u77e5\u4e4e")),(0,a.kt)("ol",{parentName:"li"},(0,a.kt)("li",{parentName:"ol"},(0,a.kt)("strong",{parentName:"li"},"\u52a0\u7ebf\u3002"),"\u5728\u6240\u6709\u7684\u5144\u5f1f\u7ed3\u70b9\u4e4b\u95f4\u52a0\u4e00\u6761\u7ebf\u3002"),(0,a.kt)("li",{parentName:"ol"},(0,a.kt)("strong",{parentName:"li"},"\u53bb\u7ebf\u3002"),"\u6811\u4e2d\u7684\u6bcf\u4e2a\u7ed3\u70b9\uff0c\u53ea\u4fdd\u7559\u5b83\u4e0e",(0,a.kt)("strong",{parentName:"li"},"\u7b2c\u4e00\u4e2a\u5b69\u5b50\u7ed3\u70b9"),"\u7684\u8fde\u7ebf\uff0c\u5220\u9664\u5176\u4ed6\u5b69\u5b50\u7ed3\u70b9\u4e4b\u95f4\u7684\u8fde\u7ebf\u3002"),(0,a.kt)("li",{parentName:"ol"},(0,a.kt)("strong",{parentName:"li"},"\u8c03\u6574\u3002\u6bcf\u4e2a\u7ed3\u70b9\u7684\u539f\u6765\u7684\u5b69\u5b50\u662f\u7ed3\u70b9\u7684\u5de6\u5b69\u5b50\uff0c\u7531\u539f\u6765\u7684\u5144\u5f1f\u7ed3\u70b9\u8f6c\u8fc7\u6765\u7684\u5b69\u5b50\u662f\u7ed3\u70b9\u7684\u53f3\u5b69\u5b50"),"\u3002"))),(0,a.kt)("li",{parentName:"ol"},(0,a.kt)("p",{parentName:"li"},"\u4e8c\u53c9\u6392\u5e8f\u6811\uff1a\u6bcf\u4e2a\u7ed3\u70b9\u7684\u5de6\u5b50\u6811\u4e0a\u7684\u6240\u6709\u7ed3\u70b9\u503c\u90fd\u66f4\u5c0f\uff0c\u6bcf\u4e2a\u7ed3\u70b9\u7684\u53f3\u5b50\u6811\u4e0a\u7684\u6240\u6709\u7ed3\u70b9\u7684\u503c\u90fd\u66f4\u5927\u3002")),(0,a.kt)("li",{parentName:"ol"},(0,a.kt)("p",{parentName:"li"},"\u5e73\u8861\u4e8c\u53c9\u6392\u5e8f\u6811\uff1a\u8981\u4e48\u662f\u7a7a\u6811\uff0c\u8981\u4e48\u5de6\u5b50\u6811\u7684\u9ad8\u5ea6\u4e0e\u53f3\u5b50\u6811\u7684\u9ad8\u5ea6\u4e4b\u5dee\u5c0f\u4e8e\u7b49\u4e8e1\u3002"))),(0,a.kt)("h2",{id:"\u56fe"},"\u56fe"),(0,a.kt)("ol",null,(0,a.kt)("li",{parentName:"ol"},(0,a.kt)("p",{parentName:"li"},"\u56fe\u7684\u8868\u793a\uff1a"),(0,a.kt)("ul",{parentName:"li"},(0,a.kt)("li",{parentName:"ul"},(0,a.kt)("p",{parentName:"li"},"\u90bb\u63a5\u77e9\u9635")),(0,a.kt)("li",{parentName:"ul"},(0,a.kt)("p",{parentName:"li"},"\u90bb\u63a5\u8868\uff1a",(0,a.kt)("strong",{parentName:"p"},"\u6bcf\u4e00\u884c\u8868\u793a\u7684\u662f\u4e00\u4e2a\u9876\u70b9\u6240\u8fde\u63a5\u7684\u9876\u70b9\uff0c\u94fe\u8868\u4e0d\u5177\u6709\u6307\u5411\u6027")),(0,a.kt)("p",{parentName:"li"},"\u90bb\u63a5\u8868\u7684\u641c\u7d22"),(0,a.kt)("p",{parentName:"li"},(0,a.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_images202309061613781.png",alt:null}))))),(0,a.kt)("li",{parentName:"ol"},(0,a.kt)("p",{parentName:"li"},"\u6700\u5c0f\u751f\u6210\u6811\uff1a\u5728\u8fde\u901a\u7f51\u7684\u6240\u6709\u751f\u6210\u6811\u4e2d\uff0c\u6240\u6709\u8fb9\u7684\u4ee3\u4ef7\u548c\u6700\u5c0f\u7684\u751f\u6210\u6811\uff0c\u79f0\u4e3a\u6700\u5c0f\u751f\u6210\u6811\u3002"),(0,a.kt)("ul",{parentName:"li"},(0,a.kt)("li",{parentName:"ul"},(0,a.kt)("p",{parentName:"li"},"Kruskal\u7b97\u6cd5"),(0,a.kt)("p",{parentName:"li"},(0,a.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_images20230906151003.png",alt:null}))),(0,a.kt)("li",{parentName:"ul"},(0,a.kt)("p",{parentName:"li"},"Prim\u7b97\u6cd5"),(0,a.kt)("p",{parentName:"li"},(0,a.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_images20230906151039.png",alt:null}))))),(0,a.kt)("li",{parentName:"ol"},(0,a.kt)("p",{parentName:"li"},"\u6700\u77ed\u8def\u5f84"))),(0,a.kt)("p",null,"\u200b "),(0,a.kt)("p",null,"\u200b"))}s.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/1a4e3797.cd2275cc.js b/assets/js/1a4e3797.cd2275cc.js new file mode 100644 index 000000000..1289859d5 --- /dev/null +++ b/assets/js/1a4e3797.cd2275cc.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunknpy_notebook=self.webpackChunknpy_notebook||[]).push([[7920],{2027:(e,t,r)=>{r.r(t),r.d(t,{default:()=>k});var a=r(7294),n=r(2263),l=r(179),s=r(5742),c=r(9960),o=r(5999);const u=["zero","one","two","few","many","other"];function m(e){return u.filter((t=>e.includes(t)))}const h={locale:"en",pluralForms:m(["one","other"]),select:e=>1===e?"one":"other"};function i(){const{i18n:{currentLocale:e}}=(0,n.Z)();return(0,a.useMemo)((()=>{try{return function(e){const t=new Intl.PluralRules(e);return{locale:e,pluralForms:m(t.resolvedOptions().pluralCategories),select:e=>t.select(e)}}(e)}catch(t){return console.error(`Failed to use Intl.PluralRules for locale "${e}".\nDocusaurus will fallback to the default (English) implementation.\nError: ${t.message}\n`),h}}),[e])}function p(){const e=i();return{selectMessage:(t,r)=>function(e,t,r){const a=e.split("|");if(1===a.length)return a[0];a.length>r.pluralForms.length&&console.error(`For locale=${r.locale}, a maximum of ${r.pluralForms.length} plural forms are expected (${r.pluralForms.join(",")}), but the message contains ${a.length}: ${e}`);const n=r.select(t),l=r.pluralForms.indexOf(n);return a[Math.min(l,a.length-1)]}(r,t,e)}}var g=r(6010),d=r(6550),f=r(412);const y=function(){const e=(0,d.k6)(),t=(0,d.TH)(),{siteConfig:{baseUrl:r}}=(0,n.Z)(),a=f.Z.canUseDOM?new URLSearchParams(t.search):null,l=a?.get("q")||"",s=a?.get("ctx")||"",c=a?.get("version")||"",o=e=>{const r=new URLSearchParams(t.search);return e?r.set("q",e):r.delete("q"),r};return{searchValue:l,searchContext:s,searchVersion:c,updateSearchPath:t=>{const r=o(t);e.replace({search:r.toString()})},updateSearchContext:r=>{const a=new URLSearchParams(t.search);a.set("ctx",r),e.replace({search:a.toString()})},generateSearchPageLink:e=>{const t=o(e);return`${r}search?${t.toString()}`}}};var E=r(22),S=r(8202),C=r(2539),I=r(726),x=r(1073),v=r(311),w=r(3926),R=r(1029);const P={searchContextInput:"searchContextInput_mXoe",searchQueryInput:"searchQueryInput_CFBF",searchResultItem:"searchResultItem_U687",searchResultItemPath:"searchResultItemPath_uIbk",searchResultItemSummary:"searchResultItemSummary_oZHr",searchQueryColumn:"searchQueryColumn_q7nx",searchContextColumn:"searchContextColumn_oWAF"};function b(){const{siteConfig:{baseUrl:e}}=(0,n.Z)(),{selectMessage:t}=p(),{searchValue:r,searchContext:l,searchVersion:c,updateSearchPath:u,updateSearchContext:m}=y(),[h,i]=(0,a.useState)(r),[d,f]=(0,a.useState)(),[C,I]=(0,a.useState)(),x=`${e}${c}`,w=(0,a.useMemo)((()=>h?(0,o.I)({id:"theme.SearchPage.existingResultsTitle",message:'Search results for "{query}"',description:"The search page title for non-empty query"},{query:h}):(0,o.I)({id:"theme.SearchPage.emptyResultsTitle",message:"Search the documentation",description:"The search page title for empty query"})),[h]);(0,a.useEffect)((()=>{u(h),d&&(h?d(h,(e=>{I(e)})):I(void 0))}),[h,d]);const b=(0,a.useCallback)((e=>{i(e.target.value)}),[]);return(0,a.useEffect)((()=>{r&&r!==h&&i(r)}),[r]),(0,a.useEffect)((()=>{!async function(){const{wrappedIndexes:e,zhDictionary:t}=await(0,E.w)(x,l);f((()=>(0,S.v)(e,t,100)))}()}),[l,x]),a.createElement(a.Fragment,null,a.createElement(s.Z,null,a.createElement("meta",{property:"robots",content:"noindex, follow"}),a.createElement("title",null,w)),a.createElement("div",{className:"container margin-vert--lg"},a.createElement("h1",null,w),a.createElement("div",{className:"row"},a.createElement("div",{className:(0,g.Z)("col",{[P.searchQueryColumn]:Array.isArray(R.Kc),"col--9":Array.isArray(R.Kc),"col--12":!Array.isArray(R.Kc)})},a.createElement("input",{type:"search",name:"q",className:P.searchQueryInput,"aria-label":"Search",onChange:b,value:h,autoComplete:"off",autoFocus:!0})),Array.isArray(R.Kc)?a.createElement("div",{className:(0,g.Z)("col","col--3","padding-left--none",P.searchContextColumn)},a.createElement("select",{name:"search-context",className:P.searchContextInput,id:"context-selector",value:l,onChange:e=>m(e.target.value)},a.createElement("option",{value:""},R.pQ?(0,o.I)({id:"theme.SearchPage.searchContext.everywhere",message:"everywhere"}):""),R.Kc.map((e=>a.createElement("option",{key:e,value:e},e))))):null),!d&&h&&a.createElement("div",null,a.createElement(v.Z,null)),C&&(C.length>0?a.createElement("p",null,t(C.length,(0,o.I)({id:"theme.SearchPage.documentsFound.plurals",message:"1 document found|{count} documents found",description:'Pluralized label for "{count} documents found". Use as much plural forms (separated by "|") as your language support (see https://www.unicode.org/cldr/cldr-aux/charts/34/supplemental/language_plural_rules.html)'},{count:C.length}))):a.createElement("p",null,(0,o.I)({id:"theme.SearchPage.noResultsText",message:"No documents were found",description:"The paragraph for empty search result"}))),a.createElement("section",null,C&&C.map((e=>a.createElement(_,{key:e.document.i,searchResult:e}))))))}function _(e){let{searchResult:{document:t,type:r,page:n,tokens:l,metadata:s}}=e;const o=0===r,u=2===r,m=(o?t.b:n.b).slice(),h=u?t.s:t.t;o||m.push(n.t);let i="";if(R.vc&&l.length>0){const e=new URLSearchParams;for(const t of l)e.append("_highlight",t);i=`?${e.toString()}`}return a.createElement("article",{className:P.searchResultItem},a.createElement("h2",null,a.createElement(c.Z,{to:t.u+i+(t.h||""),dangerouslySetInnerHTML:{__html:u?(0,C.C)(h,l):(0,I.o)(h,(0,x.m)(s,"t"),l,100)}})),m.length>0&&a.createElement("p",{className:P.searchResultItemPath},(0,w.e)(m)),u&&a.createElement("p",{className:P.searchResultItemSummary,dangerouslySetInnerHTML:{__html:(0,I.o)(t.t,(0,x.m)(s,"t"),l,100)}}))}const k=function(){return a.createElement(l.Z,null,a.createElement(b,null))}}}]); \ No newline at end of file diff --git a/assets/js/1be78505.94988c33.js b/assets/js/1be78505.94988c33.js new file mode 100644 index 000000000..e594d00e5 --- /dev/null +++ b/assets/js/1be78505.94988c33.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunknpy_notebook=self.webpackChunknpy_notebook||[]).push([[9514,4972],{9963:(e,t,n)=>{n.r(t),n.d(t,{default:()=>ge});var a=n(7294),o=n(6010),l=n(1944),r=n(5281),c=n(3320),i=n(2802),s=n(4477),d=n(1116),m=n(179),u=n(5999),b=n(2466),p=n(5936);const h={backToTopButton:"backToTopButton_sjWU",backToTopButtonShow:"backToTopButtonShow_xfvO"};function E(){const{shown:e,scrollToTop:t}=function(e){let{threshold:t}=e;const[n,o]=(0,a.useState)(!1),l=(0,a.useRef)(!1),{startScroll:r,cancelScroll:c}=(0,b.Ct)();return(0,b.RF)(((e,n)=>{let{scrollY:a}=e;const r=n?.scrollY;r&&(l.current?l.current=!1:a>=r?(c(),o(!1)):a{e.location.hash&&(l.current=!0,o(!1))})),{shown:n,scrollToTop:()=>r(0)}}({threshold:300});return a.createElement("button",{"aria-label":(0,u.I)({id:"theme.BackToTopButton.buttonAriaLabel",message:"Scroll back to top",description:"The ARIA label for the back to top button"}),className:(0,o.Z)("clean-btn",r.k.common.backToTopButton,h.backToTopButton,e&&h.backToTopButtonShow),type:"button",onClick:t})}var f=n(1442),g=n(6550),v=n(7524),k=n(6668),_=n(1327),C=n(7462);function S(e){return a.createElement("svg",(0,C.Z)({width:"20",height:"20","aria-hidden":"true"},e),a.createElement("g",{fill:"#7a7a7a"},a.createElement("path",{d:"M9.992 10.023c0 .2-.062.399-.172.547l-4.996 7.492a.982.982 0 01-.828.454H1c-.55 0-1-.453-1-1 0-.2.059-.403.168-.551l4.629-6.942L.168 3.078A.939.939 0 010 2.528c0-.548.45-.997 1-.997h2.996c.352 0 .649.18.828.45L9.82 9.472c.11.148.172.347.172.55zm0 0"}),a.createElement("path",{d:"M19.98 10.023c0 .2-.058.399-.168.547l-4.996 7.492a.987.987 0 01-.828.454h-3c-.547 0-.996-.453-.996-1 0-.2.059-.403.168-.551l4.625-6.942-4.625-6.945a.939.939 0 01-.168-.55 1 1 0 01.996-.997h3c.348 0 .649.18.828.45l4.996 7.492c.11.148.168.347.168.55zm0 0"})))}const I={collapseSidebarButton:"collapseSidebarButton_PEFL",collapseSidebarButtonIcon:"collapseSidebarButtonIcon_kv0_"};function N(e){let{onClick:t}=e;return a.createElement("button",{type:"button",title:(0,u.I)({id:"theme.docs.sidebar.collapseButtonTitle",message:"Collapse sidebar",description:"The title attribute for collapse button of doc sidebar"}),"aria-label":(0,u.I)({id:"theme.docs.sidebar.collapseButtonAriaLabel",message:"Collapse sidebar",description:"The title attribute for collapse button of doc sidebar"}),className:(0,o.Z)("button button--secondary button--outline",I.collapseSidebarButton),onClick:t},a.createElement(S,{className:I.collapseSidebarButtonIcon}))}var T=n(9689),x=n(902);const Z=Symbol("EmptyContext"),B=a.createContext(Z);function y(e){let{children:t}=e;const[n,o]=(0,a.useState)(null),l=(0,a.useMemo)((()=>({expandedItem:n,setExpandedItem:o})),[n]);return a.createElement(B.Provider,{value:l},t)}var w=n(6043),L=n(8596),A=n(9960),M=n(2389);function F(e){let{categoryLabel:t,onClick:n}=e;return a.createElement("button",{"aria-label":(0,u.I)({id:"theme.DocSidebarItem.toggleCollapsedCategoryAriaLabel",message:"Toggle the collapsible sidebar category '{label}'",description:"The ARIA label to toggle the collapsible sidebar category"},{label:t}),type:"button",className:"clean-btn menu__caret",onClick:n})}function H(e){let{item:t,onItemClick:n,activePath:l,level:c,index:s,...d}=e;const{items:m,label:u,collapsible:b,className:p,href:h}=t,{docs:{sidebar:{autoCollapseCategories:E}}}=(0,k.L)(),f=function(e){const t=(0,M.Z)();return(0,a.useMemo)((()=>e.href?e.href:!t&&e.collapsible?(0,i.Wl)(e):void 0),[e,t])}(t),g=(0,i._F)(t,l),v=(0,L.Mg)(h,l),{collapsed:_,setCollapsed:S}=(0,w.u)({initialState:()=>!!b&&(!g&&t.collapsed)}),{expandedItem:I,setExpandedItem:N}=function(){const e=(0,a.useContext)(B);if(e===Z)throw new x.i6("DocSidebarItemsExpandedStateProvider");return e}(),T=function(e){void 0===e&&(e=!_),N(e?null:s),S(e)};return function(e){let{isActive:t,collapsed:n,updateCollapsed:o}=e;const l=(0,x.D9)(t);(0,a.useEffect)((()=>{t&&!l&&n&&o(!1)}),[t,l,n,o])}({isActive:g,collapsed:_,updateCollapsed:T}),(0,a.useEffect)((()=>{b&&null!=I&&I!==s&&E&&S(!0)}),[b,I,s,S,E]),a.createElement("li",{className:(0,o.Z)(r.k.docs.docSidebarItemCategory,r.k.docs.docSidebarItemCategoryLevel(c),"menu__list-item",{"menu__list-item--collapsed":_},p)},a.createElement("div",{className:(0,o.Z)("menu__list-item-collapsible",{"menu__list-item-collapsible--active":v})},a.createElement(A.Z,(0,C.Z)({className:(0,o.Z)("menu__link",{"menu__link--sublist":b,"menu__link--sublist-caret":!h&&b,"menu__link--active":g}),onClick:b?e=>{n?.(t),h?T(!1):(e.preventDefault(),T())}:()=>{n?.(t)},"aria-current":v?"page":void 0,"aria-expanded":b?!_:void 0,href:b?f??"#":f},d),u),h&&b&&a.createElement(F,{categoryLabel:u,onClick:e=>{e.preventDefault(),T()}})),a.createElement(w.z,{lazy:!0,as:"ul",className:"menu__list",collapsed:_},a.createElement(j,{items:m,tabIndex:_?-1:0,onItemClick:n,activePath:l,level:c+1})))}var P=n(3919),W=n(9471);const D={menuExternalLink:"menuExternalLink_NmtK"};function R(e){let{item:t,onItemClick:n,activePath:l,level:c,index:s,...d}=e;const{href:m,label:u,className:b,autoAddBaseUrl:p}=t,h=(0,i._F)(t,l),E=(0,P.Z)(m);return a.createElement("li",{className:(0,o.Z)(r.k.docs.docSidebarItemLink,r.k.docs.docSidebarItemLinkLevel(c),"menu__list-item",b),key:u},a.createElement(A.Z,(0,C.Z)({className:(0,o.Z)("menu__link",!E&&D.menuExternalLink,{"menu__link--active":h}),autoAddBaseUrl:p,"aria-current":h?"page":void 0,to:m},E&&{onClick:n?()=>n(t):void 0},d),u,!E&&a.createElement(W.Z,null)))}const V={menuHtmlItem:"menuHtmlItem_M9Kj"};function U(e){let{item:t,level:n,index:l}=e;const{value:c,defaultStyle:i,className:s}=t;return a.createElement("li",{className:(0,o.Z)(r.k.docs.docSidebarItemLink,r.k.docs.docSidebarItemLinkLevel(n),i&&[V.menuHtmlItem,"menu__list-item"],s),key:l,dangerouslySetInnerHTML:{__html:c}})}function z(e){let{item:t,...n}=e;switch(t.type){case"category":return a.createElement(H,(0,C.Z)({item:t},n));case"html":return a.createElement(U,(0,C.Z)({item:t},n));default:return a.createElement(R,(0,C.Z)({item:t},n))}}function K(e){let{items:t,...n}=e;return a.createElement(y,null,t.map(((e,t)=>a.createElement(z,(0,C.Z)({key:t,item:e,index:t},n)))))}const j=(0,a.memo)(K),q={menu:"menu_SIkG",menuWithAnnouncementBar:"menuWithAnnouncementBar_GW3s"};function G(e){let{path:t,sidebar:n,className:l}=e;const c=function(){const{isActive:e}=(0,T.nT)(),[t,n]=(0,a.useState)(e);return(0,b.RF)((t=>{let{scrollY:a}=t;e&&n(0===a)}),[e]),e&&t}();return a.createElement("nav",{"aria-label":(0,u.I)({id:"theme.docs.sidebar.navAriaLabel",message:"Docs sidebar",description:"The ARIA label for the sidebar navigation"}),className:(0,o.Z)("menu thin-scrollbar",q.menu,c&&q.menuWithAnnouncementBar,l)},a.createElement("ul",{className:(0,o.Z)(r.k.docs.docSidebarMenu,"menu__list")},a.createElement(j,{items:n,activePath:t,level:1})))}const Y="sidebar_njMd",O="sidebarWithHideableNavbar_wUlq",X="sidebarHidden_VK0M",J="sidebarLogo_isFc";function Q(e){let{path:t,sidebar:n,onCollapse:l,isHidden:r}=e;const{navbar:{hideOnScroll:c},docs:{sidebar:{hideable:i}}}=(0,k.L)();return a.createElement("div",{className:(0,o.Z)(Y,c&&O,r&&X)},c&&a.createElement(_.Z,{tabIndex:-1,className:J}),a.createElement(G,{path:t,sidebar:n}),i&&a.createElement(N,{onClick:l}))}const $=a.memo(Q);var ee=n(3102),te=n(2961);const ne=e=>{let{sidebar:t,path:n}=e;const l=(0,te.e)();return a.createElement("ul",{className:(0,o.Z)(r.k.docs.docSidebarMenu,"menu__list")},a.createElement(j,{items:t,activePath:n,onItemClick:e=>{"category"===e.type&&e.href&&l.toggle(),"link"===e.type&&l.toggle()},level:1}))};function ae(e){return a.createElement(ee.Zo,{component:ne,props:e})}const oe=a.memo(ae);function le(e){const t=(0,v.i)(),n="desktop"===t||"ssr"===t,o="mobile"===t;return a.createElement(a.Fragment,null,n&&a.createElement($,e),o&&a.createElement(oe,e))}const re={expandButton:"expandButton_m80_",expandButtonIcon:"expandButtonIcon_BlDH"};function ce(e){let{toggleSidebar:t}=e;return a.createElement("div",{className:re.expandButton,title:(0,u.I)({id:"theme.docs.sidebar.expandButtonTitle",message:"Expand sidebar",description:"The ARIA label and title attribute for expand button of doc sidebar"}),"aria-label":(0,u.I)({id:"theme.docs.sidebar.expandButtonAriaLabel",message:"Expand sidebar",description:"The ARIA label and title attribute for expand button of doc sidebar"}),tabIndex:0,role:"button",onKeyDown:t,onClick:t},a.createElement(S,{className:re.expandButtonIcon}))}const ie={docSidebarContainer:"docSidebarContainer_b6E3",docSidebarContainerHidden:"docSidebarContainerHidden_b3ry",sidebarViewport:"sidebarViewport_Xe31"};function se(e){let{children:t}=e;const n=(0,d.V)();return a.createElement(a.Fragment,{key:n?.name??"noSidebar"},t)}function de(e){let{sidebar:t,hiddenSidebarContainer:n,setHiddenSidebarContainer:l}=e;const{pathname:c}=(0,g.TH)(),[i,s]=(0,a.useState)(!1),d=(0,a.useCallback)((()=>{i&&s(!1),!i&&(0,f.n)()&&s(!0),l((e=>!e))}),[l,i]);return a.createElement("aside",{className:(0,o.Z)(r.k.docs.docSidebarContainer,ie.docSidebarContainer,n&&ie.docSidebarContainerHidden),onTransitionEnd:e=>{e.currentTarget.classList.contains(ie.docSidebarContainer)&&n&&s(!0)}},a.createElement(se,null,a.createElement("div",{className:(0,o.Z)(ie.sidebarViewport,i&&ie.sidebarViewportHidden)},a.createElement(le,{sidebar:t,path:c,onCollapse:d,isHidden:i}),i&&a.createElement(ce,{toggleSidebar:d}))))}const me={docMainContainer:"docMainContainer_gTbr",docMainContainerEnhanced:"docMainContainerEnhanced_Uz_u",docItemWrapperEnhanced:"docItemWrapperEnhanced_czyv"};function ue(e){let{hiddenSidebarContainer:t,children:n}=e;const l=(0,d.V)();return a.createElement("main",{className:(0,o.Z)(me.docMainContainer,(t||!l)&&me.docMainContainerEnhanced)},a.createElement("div",{className:(0,o.Z)("container padding-top--md padding-bottom--lg",me.docItemWrapper,t&&me.docItemWrapperEnhanced)},n))}const be={docPage:"docPage__5DB",docsWrapper:"docsWrapper_BCFX","themedComponent--light":"themedComponent--light_NU7w"};function pe(e){let{children:t}=e;const n=(0,d.V)(),[o,l]=(0,a.useState)(!1);return a.createElement(m.Z,{wrapperClassName:be.docsWrapper},a.createElement(E,null),a.createElement("div",{className:be.docPage},n&&a.createElement(de,{sidebar:n.items,hiddenSidebarContainer:o,setHiddenSidebarContainer:l}),a.createElement(ue,{hiddenSidebarContainer:o},t)))}var he=n(4972),Ee=n(197);function fe(e){const{versionMetadata:t}=e;return a.createElement(a.Fragment,null,a.createElement(Ee.Z,{version:t.version,tag:(0,c.os)(t.pluginId,t.version)}),a.createElement(l.d,null,t.noIndex&&a.createElement("meta",{name:"robots",content:"noindex, nofollow"})))}function ge(e){const{versionMetadata:t}=e,n=(0,i.hI)(e);if(!n)return a.createElement(he.default,null);const{docElement:c,sidebarName:m,sidebarItems:u}=n;return a.createElement(a.Fragment,null,a.createElement(fe,e),a.createElement(l.FG,{className:(0,o.Z)(r.k.wrapper.docsPages,r.k.page.docsDocPage,e.versionMetadata.className)},a.createElement(s.q,{version:t},a.createElement(d.b,{name:m,items:u},a.createElement(pe,null,c)))))}},4972:(e,t,n)=>{n.r(t),n.d(t,{default:()=>c});var a=n(7294),o=n(5999),l=n(1944),r=n(179);function c(){return a.createElement(a.Fragment,null,a.createElement(l.d,{title:(0,o.I)({id:"theme.NotFound.title",message:"Page Not Found"})}),a.createElement(r.Z,null,a.createElement("main",{className:"container margin-vert--xl"},a.createElement("div",{className:"row"},a.createElement("div",{className:"col col--6 col--offset-3"},a.createElement("h1",{className:"hero__title"},a.createElement(o.Z,{id:"theme.NotFound.title",description:"The title of the 404 page"},"Page Not Found")),a.createElement("p",null,a.createElement(o.Z,{id:"theme.NotFound.p1",description:"The first paragraph of the 404 page"},"We could not find what you were looking for.")),a.createElement("p",null,a.createElement(o.Z,{id:"theme.NotFound.p2",description:"The 2nd paragraph of the 404 page"},"Please contact the owner of the site that linked you to the original URL and let them know their link is broken.")))))))}},4477:(e,t,n)=>{n.d(t,{E:()=>c,q:()=>r});var a=n(7294),o=n(902);const l=a.createContext(null);function r(e){let{children:t,version:n}=e;return a.createElement(l.Provider,{value:n},t)}function c(){const e=(0,a.useContext)(l);if(null===e)throw new o.i6("DocsVersionProvider");return e}}}]); \ No newline at end of file diff --git a/assets/js/1f391b9e.e222276a.js b/assets/js/1f391b9e.e222276a.js new file mode 100644 index 000000000..d2242eee1 --- /dev/null +++ b/assets/js/1f391b9e.e222276a.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunknpy_notebook=self.webpackChunknpy_notebook||[]).push([[3085],{4247:(e,t,a)=>{a.r(t),a.d(t,{default:()=>d});var n=a(7294),l=a(6010),c=a(1944),r=a(5281),m=a(179),o=a(864),i=a(9407);const s={mdxPageWrapper:"mdxPageWrapper_j9I6"};function d(e){const{content:t}=e,{metadata:{title:a,description:d,frontMatter:p}}=t,{wrapperClassName:g,hide_table_of_contents:u}=p;return n.createElement(c.FG,{className:(0,l.Z)(g??r.k.wrapper.mdxPages,r.k.page.mdxPage)},n.createElement(c.d,{title:a,description:d}),n.createElement(m.Z,null,n.createElement("main",{className:"container container--fluid margin-vert--lg"},n.createElement("div",{className:(0,l.Z)("row",s.mdxPageWrapper)},n.createElement("div",{className:(0,l.Z)("col",!u&&"col--8")},n.createElement("article",null,n.createElement(o.Z,null,n.createElement(t,null)))),!u&&t.toc.length>0&&n.createElement("div",{className:"col col--2"},n.createElement(i.Z,{toc:t.toc,minHeadingLevel:p.toc_min_heading_level,maxHeadingLevel:p.toc_max_heading_level}))))))}}}]); \ No newline at end of file diff --git a/assets/js/21a88645.a85707e2.js b/assets/js/21a88645.a85707e2.js new file mode 100644 index 000000000..582bbbbdb --- /dev/null +++ b/assets/js/21a88645.a85707e2.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunknpy_notebook=self.webpackChunknpy_notebook||[]).push([[9913],{3905:(a,e,t)=>{t.d(e,{Zo:()=>i,kt:()=>h});var s=t(7294);function m(a,e,t){return e in a?Object.defineProperty(a,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):a[e]=t,a}function n(a,e){var t=Object.keys(a);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(a);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable}))),t.push.apply(t,s)}return t}function p(a){for(var e=1;e=0||(m[t]=a[t]);return m}(a,e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);for(s=0;s=0||Object.prototype.propertyIsEnumerable.call(a,t)&&(m[t]=a[t])}return m}var N=s.createContext({}),l=function(a){var e=s.useContext(N),t=e;return a&&(t="function"==typeof a?a(e):p(p({},e),a)),t},i=function(a){var e=l(a.components);return s.createElement(N.Provider,{value:e},a.children)},k="mdxType",c={inlineCode:"code",wrapper:function(a){var e=a.children;return s.createElement(s.Fragment,{},e)}},o=s.forwardRef((function(a,e){var t=a.components,m=a.mdxType,n=a.originalType,N=a.parentName,i=r(a,["components","mdxType","originalType","parentName"]),k=l(t),o=m,h=k["".concat(N,".").concat(o)]||k[o]||c[o]||n;return t?s.createElement(h,p(p({ref:e},i),{},{components:t})):s.createElement(h,p({ref:e},i))}));function h(a,e){var t=arguments,m=e&&e.mdxType;if("string"==typeof a||m){var n=t.length,p=new Array(n);p[0]=o;var r={};for(var N in e)hasOwnProperty.call(e,N)&&(r[N]=e[N]);r.originalType=a,r[k]="string"==typeof a?a:m,p[1]=r;for(var l=2;l{t.r(e),t.d(e,{assets:()=>N,contentTitle:()=>p,default:()=>c,frontMatter:()=>n,metadata:()=>r,toc:()=>l});var s=t(7462),m=(t(7294),t(3905));const n={},p="NeurIPS 2020: Denoising Diffusion Probabilistic Models",r={unversionedId:"Deep-Learning/\u8bba\u6587\u7b14\u8bb0/Denoising Diffusion Probabilistic Models",id:"Deep-Learning/\u8bba\u6587\u7b14\u8bb0/Denoising Diffusion Probabilistic Models",title:"NeurIPS 2020: Denoising Diffusion Probabilistic Models",description:"\u8bba\u6587\uff1aarXiv",source:"@site/docs/Deep-Learning/6-\u8bba\u6587\u7b14\u8bb0/2-Denoising Diffusion Probabilistic Models.md",sourceDirName:"Deep-Learning/6-\u8bba\u6587\u7b14\u8bb0",slug:"/Deep-Learning/\u8bba\u6587\u7b14\u8bb0/Denoising Diffusion Probabilistic Models",permalink:"/docs/Deep-Learning/\u8bba\u6587\u7b14\u8bb0/Denoising Diffusion Probabilistic Models",draft:!1,tags:[],version:"current",sidebarPosition:2,frontMatter:{},sidebar:"deep_learning",previous:{title:"NeurIPS 2017: Attention Is All You Need",permalink:"/docs/Deep-Learning/\u8bba\u6587\u7b14\u8bb0/Attention Is All You Need"},next:{title:"CVPR 2022: High-Resolution Image Synthesis with Latent Diffusion Models",permalink:"/docs/Deep-Learning/\u8bba\u6587\u7b14\u8bb0/High-Resolution Image Synthesis with Latent Diffusion Models"}},N={},l=[{value:"\u6570\u5b66\u539f\u7406\uff08Mathematical Preliminary\uff09",id:"\u6570\u5b66\u539f\u7406mathematical-preliminary",level:2},{value:"\u5148\u9a8c\u6982\u7387\u4e0e\u540e\u9a8c\u6982\u7387",id:"\u5148\u9a8c\u6982\u7387\u4e0e\u540e\u9a8c\u6982\u7387",level:3},{value:"\u6761\u4ef6\u6982\u7387\u7684\u5b9a\u4e49",id:"\u6761\u4ef6\u6982\u7387\u7684\u5b9a\u4e49",level:4},{value:"\u5168\u6982\u7387\u516c\u5f0f",id:"\u5168\u6982\u7387\u516c\u5f0f",level:4},{value:"\u8d1d\u53f6\u65af\u516c\u5f0f",id:"\u8d1d\u53f6\u65af\u516c\u5f0f",level:4},{value:"\u6761\u4ef6\u6982\u7387\u4e0e\u9ad8\u65af\u5206\u5e03\u7684KL\u6563\u5ea6",id:"\u6761\u4ef6\u6982\u7387\u4e0e\u9ad8\u65af\u5206\u5e03\u7684kl\u6563\u5ea6",level:3},{value:"\u6761\u4ef6\u6982\u7387\u7684\u4e00\u822c\u5f62\u5f0f",id:"\u6761\u4ef6\u6982\u7387\u7684\u4e00\u822c\u5f62\u5f0f",level:4},{value:"\u9ad8\u65af\u5206\u5e03\u7684KL\u6563\u5ea6",id:"\u9ad8\u65af\u5206\u5e03\u7684kl\u6563\u5ea6",level:4},{value:"\u9a6c\u5c14\u79d1\u592b\u94fe\u6761\u4ef6\u6982\u7387\u5f62\u5f0f",id:"\u9a6c\u5c14\u79d1\u592b\u94fe\u6761\u4ef6\u6982\u7387\u5f62\u5f0f",level:3},{value:"\u53c2\u6570\u91cd\u6574\u5316\u6280\u5de7",id:"\u53c2\u6570\u91cd\u6574\u5316\u6280\u5de7",level:3}],i={toc:l},k="wrapper";function c(a){let{components:e,...t}=a;return(0,m.kt)(k,(0,s.Z)({},i,t,{components:e,mdxType:"MDXLayout"}),(0,m.kt)("h1",{id:"neurips-2020-denoising-diffusion-probabilistic-models"},"NeurIPS 2020: Denoising Diffusion Probabilistic Models"),(0,m.kt)("admonition",{title:"\u76f8\u5173\u94fe\u63a5",type:"tip"},(0,m.kt)("p",{parentName:"admonition"},"\u8bba\u6587\uff1a",(0,m.kt)("a",{parentName:"p",href:"https://arxiv.org/pdf/2006.11239.pdf"},"arXiv")),(0,m.kt)("p",{parentName:"admonition"},"\u4ee3\u7801\uff1a",(0,m.kt)("a",{parentName:"p",href:"https://github.com/hojonathanho/diffusion"},"GitHub")),(0,m.kt)("p",{parentName:"admonition"},"\u53c2\u8003\u8d44\u6599\uff1a"),(0,m.kt)("ul",{parentName:"admonition"},(0,m.kt)("li",{parentName:"ul"},(0,m.kt)("a",{parentName:"li",href:"https://www.bilibili.com/video/BV1b541197HX/?spm_id_from=333.337.search-card.all.click&vd_source=f7612ffc8ec6f523824661106b4c304f"},"54\u3001Probabilistic Diffusion Model\u6982\u7387\u6269\u6563\u6a21\u578b\u7406\u8bba\u4e0e\u5b8c\u6574PyTorch\u4ee3\u7801\u8be6\u7ec6\u89e3\u8bfb")),(0,m.kt)("li",{parentName:"ul"},(0,m.kt)("a",{parentName:"li",href:"https://www.bilibili.com/video/BV1WD4y157u3/?spm_id_from=333.337.search-card.all.click&vd_source=f7612ffc8ec6f523824661106b4c304f"},"\u3010\u8bba\u6587\u7cbe\u8bfb\u3011Diffusion Model \u5f00\u5c71\u4e4b\u4f5cDDPM")))),(0,m.kt)("h2",{id:"\u6570\u5b66\u539f\u7406mathematical-preliminary"},"\u6570\u5b66\u539f\u7406\uff08Mathematical Preliminary\uff09"),(0,m.kt)("h3",{id:"\u5148\u9a8c\u6982\u7387\u4e0e\u540e\u9a8c\u6982\u7387"},"\u5148\u9a8c\u6982\u7387\u4e0e\u540e\u9a8c\u6982\u7387"),(0,m.kt)("h4",{id:"\u6761\u4ef6\u6982\u7387\u7684\u5b9a\u4e49"},"\u6761\u4ef6\u6982\u7387\u7684\u5b9a\u4e49"),(0,m.kt)("p",null,"\u6761\u4ef6\u6982\u7387\u662f\u6307\u5728\u7ed9\u5b9a\u53e6\u4e00\u4e2a\u4e8b\u4ef6\u53d1\u751f\u7684\u6761\u4ef6\u4e0b\uff0c\u67d0\u4e00\u4e8b\u4ef6\u53d1\u751f\u7684\u6982\u7387\u3002\u6761\u4ef6\u6982\u7387\u901a\u5e38\u7528\u7b26\u53f7",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"A"),(0,m.kt)("mo",{parentName:"mrow"},"\u2223"),(0,m.kt)("mi",{parentName:"mrow"},"B"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"P(A\\mid B)")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"P"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"A"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"\u2223"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05017em"}},"B"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"))))),"\u8868\u793a\uff0c\u8bfb\u4f5c\u201c\u5728 B \u53d1\u751f\u7684\u6761\u4ef6\u4e0b A \u53d1\u751f\u7684\u6982\u7387\u201d\u3002"),(0,m.kt)("p",null,"\u6761\u4ef6\u6982\u7387\u7684\u8ba1\u7b97\u516c\u5f0f\u4e3a\uff1a"),(0,m.kt)("div",{className:"math math-display"},(0,m.kt)("span",{parentName:"div",className:"katex-display"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"A"),(0,m.kt)("mo",{parentName:"mrow"},"\u2223"),(0,m.kt)("mi",{parentName:"mrow"},"B"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("mfrac",{parentName:"mrow"},(0,m.kt)("mrow",{parentName:"mfrac"},(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"A"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"B"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,m.kt)("mrow",{parentName:"mfrac"},(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"B"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")")))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"P(A\\mid B)=\\frac{P(A,B)}{P(B)}")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"P"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"A"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"\u2223"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05017em"}},"B"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"="),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"2.363em",verticalAlign:"-0.936em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mopen nulldelimiter"}),(0,m.kt)("span",{parentName:"span",className:"mfrac"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.427em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.314em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"P"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05017em"}},"B"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.23em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"frac-line",style:{borderBottomWidth:"0.04em"}})),(0,m.kt)("span",{parentName:"span",style:{top:"-3.677em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"P"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"A"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05017em"}},"B"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.936em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"mclose nulldelimiter"}))))))),(0,m.kt)("p",null,"\u5176\u4e2d\uff1a"),(0,m.kt)("ul",null,(0,m.kt)("li",{parentName:"ul"},(0,m.kt)("span",{parentName:"li",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"A"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"B"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"P(A,B)")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"P"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"A"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05017em"}},"B"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"))))),"\u662f\u4e8b\u4ef6",(0,m.kt)("span",{parentName:"li",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"A")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"A")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6833em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"A"))))),"\u3001",(0,m.kt)("span",{parentName:"li",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"B")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"B")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6833em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05017em"}},"B"))))),"\u540c\u65f6\u53d1\u751f\u7684\u6982\u7387\uff0c\u4e5f\u53eb",(0,m.kt)("strong",{parentName:"li"},"\u8054\u5408\u6982\u7387")),(0,m.kt)("li",{parentName:"ul"},(0,m.kt)("span",{parentName:"li",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"B"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"P(B)")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"P"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05017em"}},"B"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"))))),"\u662f\u4e8b\u4ef6",(0,m.kt)("span",{parentName:"li",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"B")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"B")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6833em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05017em"}},"B"))))),"\u72ec\u7acb\u53d1\u751f\u7684\u6982\u7387")),(0,m.kt)("h4",{id:"\u5168\u6982\u7387\u516c\u5f0f"},"\u5168\u6982\u7387\u516c\u5f0f"),(0,m.kt)("p",null,"\u5bf9\u4e8e\u4e8b\u4ef6",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"A")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"A")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6833em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"A"))))),"\u800c\u8a00\uff0c\u5047\u8bbe\u6709\u4e00\u7ec4",(0,m.kt)("strong",{parentName:"p"},"\u4e92\u65a5\u4e14\u7a77\u5c3d"),"\u7684\u6761\u4ef6\u4e8b\u4ef6",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"B"),(0,m.kt)("mn",{parentName:"msub"},"1")),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"B"),(0,m.kt)("mn",{parentName:"msub"},"2")),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mo",{parentName:"mrow"},"\u2026"),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"B"),(0,m.kt)("mi",{parentName:"msub"},"n"))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"B_{1},B_{2},\\ldots B_{n}")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.8778em",verticalAlign:"-0.1944em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05017em"}},"B"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0502em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"1"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05017em"}},"B"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0502em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"2"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"minner"},"\u2026"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05017em"}},"B"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.1514em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0502em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"n"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))))))),"\u6784\u6210\u4e00\u4e2a\u5b8c\u5907\u4e8b\u4ef6\u7ec4\uff0c\u5219\u4e8b\u4ef6",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"A")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"A")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6833em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"A"))))),"\u7684\u6982\u7387\u7b49\u4e8e\u4e8b\u4ef6",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"A")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"A")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6833em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"A"))))),"\u5728\u6bcf\u4e2a\u6761\u4ef6\u4e8b\u4ef6",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"B"),(0,m.kt)("mi",{parentName:"msub"},"i"))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"B_i")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.8333em",verticalAlign:"-0.15em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05017em"}},"B"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3117em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0502em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"i")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))))))),"\u4e0b\u53d1\u751f\u7684\u6982\u7387\u4e0e\u8be5\u6761\u4ef6\u4e8b\u4ef6\u53d1\u751f\u6982\u7387\u7684\u4e58\u79ef\u548c\u3002"),(0,m.kt)("div",{className:"math math-display"},(0,m.kt)("span",{parentName:"div",className:"katex-display"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"A"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("munderover",{parentName:"mrow"},(0,m.kt)("mo",{parentName:"munderover"},"\u2211"),(0,m.kt)("mrow",{parentName:"munderover"},(0,m.kt)("mi",{parentName:"mrow"},"i"),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("mn",{parentName:"mrow"},"1")),(0,m.kt)("mi",{parentName:"munderover"},"n")),(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"A"),(0,m.kt)("mo",{parentName:"mrow"},"\u2223"),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"B"),(0,m.kt)("mi",{parentName:"msub"},"i")),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"\u22c5"),(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"B"),(0,m.kt)("mi",{parentName:"msub"},"i")),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"P(A)=\\sum_{i=1}^nP(A\\mid B_i)\\cdot P(B_i)")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"P"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"A"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"="),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"2.9291em",verticalAlign:"-1.2777em"}}),(0,m.kt)("span",{parentName:"span",className:"mop op-limits"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.6514em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-1.8723em",marginLeft:"0em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.05em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"i"),(0,m.kt)("span",{parentName:"span",className:"mrel mtight"},"="),(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"1")))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.05em"}}),(0,m.kt)("span",{parentName:"span"},(0,m.kt)("span",{parentName:"span",className:"mop op-symbol large-op"},"\u2211"))),(0,m.kt)("span",{parentName:"span",style:{top:"-4.3em",marginLeft:"0em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.05em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"n")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.2777em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"P"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"A"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"\u2223"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05017em"}},"B"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3117em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0502em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"i")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"\u22c5"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"P"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05017em"}},"B"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3117em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0502em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"i")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mclose"},")")))))),(0,m.kt)("p",null,"\u53ef\u4ee5\u770b\u51fa\uff0c\u5168\u6982\u7387\u516c\u5f0f\u662f\u7531\u201c\u56e0\u201d\uff08\u6761\u4ef6\u4e8b\u4ef6",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"B"),(0,m.kt)("mi",{parentName:"msub"},"i"))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"B_i")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.8333em",verticalAlign:"-0.15em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05017em"}},"B"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3117em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0502em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"i")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))))))),"\uff09\u63a8\u201c\u679c\u201d\uff08\u7ed3\u679c\u4e8b\u4ef6",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"A")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"A")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6833em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"A"))))),"\uff09\u7684\u8fc7\u7a0b\uff0c\u5373\u5f53\u77e5\u9053\u67d0\u7ed3\u679c\u4e8b\u4ef6\u7684\u539f\u56e0\u540e\uff0c\u63a8\u65ad\u7531\u8be5\u539f\u56e0\u5bfc\u81f4\u8fd9\u4ef6\u4e8b\u53d1\u751f\u7684\u6982\u7387\u662f\u591a\u5c11\u3002"),(0,m.kt)("h4",{id:"\u8d1d\u53f6\u65af\u516c\u5f0f"},"\u8d1d\u53f6\u65af\u516c\u5f0f"),(0,m.kt)("p",null,"\u8d1d\u53f6\u65af\u516c\u5f0f\u5728\u89c2\u6d4b\u5230\u7ed3\u679c\u4e8b\u4ef6",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"A")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"A")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6833em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"A"))))),"\u53d1\u751f\u540e\uff0c\u8ba1\u7b97\u5176\u6761\u4ef6\u4e8b\u4ef6",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"B"),(0,m.kt)("mi",{parentName:"msub"},"i"))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"B_i")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.8333em",verticalAlign:"-0.15em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05017em"}},"B"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3117em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0502em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"i")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))))))),"\u5728\u4e8b\u4ef6",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"A")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"A")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6833em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"A"))))),"\u5df2\u7ecf\u53d1\u751f\u7684\u6761\u4ef6\u4e0b\u800c\u53d1\u751f\u7684\u540e\u9a8c\u6982\u7387\u3002"),(0,m.kt)("p",null,"\u7ee7\u7eed\u6cbf\u7528\u4e0a\u8ff0\u5168\u6982\u7387\u516c\u5f0f\u7684\u7b26\u53f7\u5b9a\u4e49\uff0c\u5219\u6709\uff1a"),(0,m.kt)("div",{className:"math math-display"},(0,m.kt)("span",{parentName:"div",className:"katex-display"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"B"),(0,m.kt)("mi",{parentName:"msub"},"i")),(0,m.kt)("mo",{parentName:"mrow"},"\u2223"),(0,m.kt)("mi",{parentName:"mrow"},"A"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("mfrac",{parentName:"mrow"},(0,m.kt)("mrow",{parentName:"mfrac"},(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"A"),(0,m.kt)("mo",{parentName:"mrow"},"\u2223"),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"B"),(0,m.kt)("mi",{parentName:"msub"},"i")),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"\u22c5"),(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"B"),(0,m.kt)("mi",{parentName:"msub"},"i")),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,m.kt)("mrow",{parentName:"mfrac"},(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"A"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")")))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"P(B_i\\mid A)=\\frac{P(A\\mid B_i)\\cdot P(B_i)}{P(A)}")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"P"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05017em"}},"B"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3117em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0502em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"i")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"\u2223"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"A"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"="),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"2.363em",verticalAlign:"-0.936em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mopen nulldelimiter"}),(0,m.kt)("span",{parentName:"span",className:"mfrac"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.427em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.314em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"P"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"A"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.23em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"frac-line",style:{borderBottomWidth:"0.04em"}})),(0,m.kt)("span",{parentName:"span",style:{top:"-3.677em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"P"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"A"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"\u2223"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05017em"}},"B"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3117em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0502em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"i")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"\u22c5"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"P"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05017em"}},"B"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3117em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0502em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"i")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mclose"},")")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.936em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"mclose nulldelimiter"}))))))),(0,m.kt)("p",null,"\u5176\u4e2d\uff1a"),(0,m.kt)("ul",null,(0,m.kt)("li",{parentName:"ul"},(0,m.kt)("span",{parentName:"li",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"B"),(0,m.kt)("mi",{parentName:"msub"},"i")),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"P(B_i)")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"P"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05017em"}},"B"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3117em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0502em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"i")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"))))),"\u4ee5\u53ca",(0,m.kt)("span",{parentName:"li",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"A"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"P(A)")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"P"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"A"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"))))),"\u79f0\u4e3a\u5148\u9a8c\u6982\u7387"),(0,m.kt)("li",{parentName:"ul"},(0,m.kt)("span",{parentName:"li",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"B"),(0,m.kt)("mi",{parentName:"msub"},"i")),(0,m.kt)("mo",{parentName:"mrow"},"\u2223"),(0,m.kt)("mi",{parentName:"mrow"},"A"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"P(B_i\\mid A)")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"P"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05017em"}},"B"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3117em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0502em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"i")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"\u2223"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"A"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"))))),"\u79f0\u4e3a\u540e\u9a8c\u6982\u7387"),(0,m.kt)("li",{parentName:"ul"},(0,m.kt)("span",{parentName:"li",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"A"),(0,m.kt)("mo",{parentName:"mrow"},"\u2223"),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"B"),(0,m.kt)("mi",{parentName:"msub"},"i")),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"P(A\\mid B_i)")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"P"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"A"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"\u2223"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05017em"}},"B"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3117em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0502em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"i")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"))))),"\u79f0\u4e3a\u4f3c\u7136")),(0,m.kt)("h3",{id:"\u6761\u4ef6\u6982\u7387\u4e0e\u9ad8\u65af\u5206\u5e03\u7684kl\u6563\u5ea6"},"\u6761\u4ef6\u6982\u7387\u4e0e\u9ad8\u65af\u5206\u5e03\u7684KL\u6563\u5ea6"),(0,m.kt)("h4",{id:"\u6761\u4ef6\u6982\u7387\u7684\u4e00\u822c\u5f62\u5f0f"},"\u6761\u4ef6\u6982\u7387\u7684\u4e00\u822c\u5f62\u5f0f"),(0,m.kt)("div",{className:"math math-display"},(0,m.kt)("span",{parentName:"div",className:"katex-display"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"A"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"B"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"C"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"C"),(0,m.kt)("mo",{parentName:"mrow"},"\u2223"),(0,m.kt)("mi",{parentName:"mrow"},"A"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"B"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"\u22c5"),(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"A"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"B"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"C"),(0,m.kt)("mo",{parentName:"mrow"},"\u2223"),(0,m.kt)("mi",{parentName:"mrow"},"A"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"B"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"\u22c5"),(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"B"),(0,m.kt)("mo",{parentName:"mrow"},"\u2223"),(0,m.kt)("mi",{parentName:"mrow"},"A"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"\u22c5"),(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"A"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"P(A,B,C)=P(C\\mid A,B)\\cdot P(A,B)=P(C\\mid A,B)\\cdot P(B\\mid A)\\cdot P(A)")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"P"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"A"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05017em"}},"B"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.07153em"}},"C"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"="),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"P"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.07153em"}},"C"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"\u2223"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"A"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05017em"}},"B"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"\u22c5"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"P"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"A"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05017em"}},"B"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"="),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"P"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.07153em"}},"C"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"\u2223"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"A"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05017em"}},"B"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"\u22c5"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"P"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05017em"}},"B"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"\u2223"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"A"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"\u22c5"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"P"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"A"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")")))))),(0,m.kt)("div",{className:"math math-display"},(0,m.kt)("span",{parentName:"div",className:"katex-display"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"B"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"C"),(0,m.kt)("mo",{parentName:"mrow"},"\u2223"),(0,m.kt)("mi",{parentName:"mrow"},"A"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"B"),(0,m.kt)("mo",{parentName:"mrow"},"\u2223"),(0,m.kt)("mi",{parentName:"mrow"},"A"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"\u22c5"),(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"C"),(0,m.kt)("mo",{parentName:"mrow"},"\u2223"),(0,m.kt)("mi",{parentName:"mrow"},"A"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"B"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"P(B,C\\mid A)=P(B\\mid A)\\cdot P(C\\mid A,B)")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"P"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05017em"}},"B"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.07153em"}},"C"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"\u2223"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"A"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"="),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"P"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05017em"}},"B"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"\u2223"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"A"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"\u22c5"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"P"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.07153em"}},"C"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"\u2223"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"A"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05017em"}},"B"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")")))))),(0,m.kt)("p",null,"\u5176\u4e2d\uff0c\u7b2c\u4e8c\u884c\u516c\u5f0f\u7684\u63a8\u5bfc\u5982\u4e0b\uff1a"),(0,m.kt)("div",{className:"math math-display"},(0,m.kt)("span",{parentName:"div",className:"katex-display"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mtable",{parentName:"semantics",rowspacing:"0.25em",columnalign:"right left",columnspacing:"0em"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"true"},(0,m.kt)("mrow",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"B"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"C"),(0,m.kt)("mo",{parentName:"mrow"},"\u2223"),(0,m.kt)("mi",{parentName:"mrow"},"A"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")")))),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"true"},(0,m.kt)("mrow",{parentName:"mstyle"},(0,m.kt)("mrow",{parentName:"mrow"}),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("mfrac",{parentName:"mrow"},(0,m.kt)("mrow",{parentName:"mfrac"},(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"A"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"B"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"C"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,m.kt)("mrow",{parentName:"mfrac"},(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"A"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"))))))),(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"true"},(0,m.kt)("mrow",{parentName:"mstyle"}))),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"true"},(0,m.kt)("mrow",{parentName:"mstyle"},(0,m.kt)("mrow",{parentName:"mrow"}),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("mfrac",{parentName:"mrow"},(0,m.kt)("mrow",{parentName:"mfrac"},(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"A"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"B"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"C"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,m.kt)("mfrac",{parentName:"mfrac"},(0,m.kt)("mrow",{parentName:"mfrac"},(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"A"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"B"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"C"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,m.kt)("mrow",{parentName:"mfrac"},(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"C"),(0,m.kt)("mo",{parentName:"mrow"},"\u2223"),(0,m.kt)("mi",{parentName:"mrow"},"A"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"B"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"\u22c5"),(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"B"),(0,m.kt)("mo",{parentName:"mrow"},"\u2223"),(0,m.kt)("mi",{parentName:"mrow"},"A"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")")))))))),(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"true"},(0,m.kt)("mrow",{parentName:"mstyle"}))),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"true"},(0,m.kt)("mrow",{parentName:"mstyle"},(0,m.kt)("mrow",{parentName:"mrow"}),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"B"),(0,m.kt)("mo",{parentName:"mrow"},"\u2223"),(0,m.kt)("mi",{parentName:"mrow"},"A"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"\u22c5"),(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"C"),(0,m.kt)("mo",{parentName:"mrow"},"\u2223"),(0,m.kt)("mi",{parentName:"mrow"},"A"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"B"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")")))))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"\\begin{align*} P(B,C \\mid A) &= \\frac{P(A,B,C)}{P(A)} \\\\ &= \\frac{P(A,B,C)}{\\frac{P(A,B,C)}{P(C \\mid A,B) \\cdot P(B \\mid A)}} \\\\ &= P(B \\mid A) \\cdot P(C \\mid A,B) \\end{align*}")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"7.31em",verticalAlign:"-3.405em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mtable"},(0,m.kt)("span",{parentName:"span",className:"col-align-r"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"3.905em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-5.905em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.427em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"P"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05017em"}},"B"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.07153em"}},"C"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"\u2223"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"A"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.242em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.427em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"})),(0,m.kt)("span",{parentName:"span",style:{top:"-0.682em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.427em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"}))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"3.405em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"col-align-l"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"3.905em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-5.905em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.427em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"}),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"="),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mopen nulldelimiter"}),(0,m.kt)("span",{parentName:"span",className:"mfrac"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.427em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.314em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"P"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"A"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.23em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"frac-line",style:{borderBottomWidth:"0.04em"}})),(0,m.kt)("span",{parentName:"span",style:{top:"-3.677em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"P"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"A"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05017em"}},"B"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.07153em"}},"C"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.936em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"mclose nulldelimiter"})))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.242em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.427em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"}),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"="),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mopen nulldelimiter"}),(0,m.kt)("span",{parentName:"span",className:"mfrac"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.427em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.11em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.01em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mopen nulldelimiter"}),(0,m.kt)("span",{parentName:"span",className:"mfrac"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.01em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.655em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.13889em"}},"P"),(0,m.kt)("span",{parentName:"span",className:"mopen mtight"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.07153em"}},"C"),(0,m.kt)("span",{parentName:"span",className:"mrel mtight"},"\u2223"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"A"),(0,m.kt)("span",{parentName:"span",className:"mpunct mtight"},","),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.05017em"}},"B"),(0,m.kt)("span",{parentName:"span",className:"mclose mtight"},")"),(0,m.kt)("span",{parentName:"span",className:"mbin mtight"},"\u22c5"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.13889em"}},"P"),(0,m.kt)("span",{parentName:"span",className:"mopen mtight"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.05017em"}},"B"),(0,m.kt)("span",{parentName:"span",className:"mrel mtight"},"\u2223"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"A"),(0,m.kt)("span",{parentName:"span",className:"mclose mtight"},")")))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.23em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"frac-line",style:{borderBottomWidth:"0.04em"}})),(0,m.kt)("span",{parentName:"span",style:{top:"-3.485em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.13889em"}},"P"),(0,m.kt)("span",{parentName:"span",className:"mopen mtight"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"A"),(0,m.kt)("span",{parentName:"span",className:"mpunct mtight"},","),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.05017em"}},"B"),(0,m.kt)("span",{parentName:"span",className:"mpunct mtight"},","),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.07153em"}},"C"),(0,m.kt)("span",{parentName:"span",className:"mclose mtight"},")"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.52em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"mclose nulldelimiter"})))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.24em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.01em"}}),(0,m.kt)("span",{parentName:"span",className:"frac-line",style:{borderBottomWidth:"0.04em"}})),(0,m.kt)("span",{parentName:"span",style:{top:"-3.687em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.01em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"P"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"A"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05017em"}},"B"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.07153em"}},"C"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.42em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"mclose nulldelimiter"})))),(0,m.kt)("span",{parentName:"span",style:{top:"-0.682em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.427em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"}),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"="),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"P"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05017em"}},"B"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"\u2223"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"A"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"\u22c5"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"P"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.07153em"}},"C"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"\u2223"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"A"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05017em"}},"B"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"3.405em"}},(0,m.kt)("span",{parentName:"span"})))))))))))),(0,m.kt)("h4",{id:"\u9ad8\u65af\u5206\u5e03\u7684kl\u6563\u5ea6"},"\u9ad8\u65af\u5206\u5e03\u7684KL\u6563\u5ea6"),(0,m.kt)("p",null,"\u5bf9\u4e8e\u4e24\u4e2a\u5355\u4e00\u53d8\u91cf\u7684\u9ad8\u65af\u5206\u5e03",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"p"),(0,m.kt)("mo",{parentName:"mrow"},"\u223c"),(0,m.kt)("mi",{parentName:"mrow",mathvariant:"script"},"N"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"\u03bc"),(0,m.kt)("mn",{parentName:"msub"},"1")),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("msubsup",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msubsup"},"\u03c3"),(0,m.kt)("mn",{parentName:"msubsup"},"1"),(0,m.kt)("mn",{parentName:"msubsup"},"2")),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"p\\sim \\mathcal{N}(\\mu_1,\\sigma_1^2)")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.625em",verticalAlign:"-0.1944em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"p"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"\u223c"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1.0641em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathcal",style:{marginRight:"0.14736em"}},"N"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"\u03bc"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"1")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"\u03c3"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.8141em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.4519em",marginLeft:"-0.0359em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"1"))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.063em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"2")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.2481em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"))))),"\u548c",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"q"),(0,m.kt)("mo",{parentName:"mrow"},"\u223c"),(0,m.kt)("mi",{parentName:"mrow",mathvariant:"script"},"N"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"\u03bc"),(0,m.kt)("mn",{parentName:"msub"},"2")),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("msubsup",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msubsup"},"\u03c3"),(0,m.kt)("mn",{parentName:"msubsup"},"2"),(0,m.kt)("mn",{parentName:"msubsup"},"2")),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"q\\sim \\mathcal{N}(\\mu_2,\\sigma_2^2)")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.625em",verticalAlign:"-0.1944em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"q"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"\u223c"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1.0641em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathcal",style:{marginRight:"0.14736em"}},"N"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"\u03bc"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"2")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"\u03c3"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.8141em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.4519em",marginLeft:"-0.0359em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"2"))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.063em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"2")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.2481em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"))))),"\u800c\u8a00\uff0c\u5b83\u4eec\u7684KL\u6563\u5ea6\u5b9a\u4e49\u4e3a\uff1a"),(0,m.kt)("div",{className:"math math-display"},(0,m.kt)("span",{parentName:"div",className:"katex-display"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"D"),(0,m.kt)("mrow",{parentName:"msub"},(0,m.kt)("mi",{parentName:"mrow"},"K"),(0,m.kt)("mi",{parentName:"mrow"},"L"))),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"p"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"q"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("mi",{parentName:"mrow"},"log"),(0,m.kt)("mo",{parentName:"mrow"},"\u2061"),(0,m.kt)("mfrac",{parentName:"mrow"},(0,m.kt)("msub",{parentName:"mfrac"},(0,m.kt)("mi",{parentName:"msub"},"\u03c3"),(0,m.kt)("mn",{parentName:"msub"},"2")),(0,m.kt)("msub",{parentName:"mfrac"},(0,m.kt)("mi",{parentName:"msub"},"\u03c3"),(0,m.kt)("mn",{parentName:"msub"},"1"))),(0,m.kt)("mo",{parentName:"mrow"},"+"),(0,m.kt)("mfrac",{parentName:"mrow"},(0,m.kt)("mrow",{parentName:"mfrac"},(0,m.kt)("msubsup",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msubsup"},"\u03c3"),(0,m.kt)("mn",{parentName:"msubsup"},"1"),(0,m.kt)("mn",{parentName:"msubsup"},"2")),(0,m.kt)("mo",{parentName:"mrow"},"+"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"\u03bc"),(0,m.kt)("mn",{parentName:"msub"},"1")),(0,m.kt)("mo",{parentName:"mrow"},"\u2212"),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"\u03bc"),(0,m.kt)("mn",{parentName:"msub"},"2")),(0,m.kt)("msup",{parentName:"mrow"},(0,m.kt)("mo",{parentName:"msup",stretchy:"false"},")"),(0,m.kt)("mn",{parentName:"msup"},"2"))),(0,m.kt)("mrow",{parentName:"mfrac"},(0,m.kt)("mn",{parentName:"mrow"},"2"),(0,m.kt)("msubsup",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msubsup"},"\u03c3"),(0,m.kt)("mn",{parentName:"msubsup"},"2"),(0,m.kt)("mn",{parentName:"msubsup"},"2")))),(0,m.kt)("mo",{parentName:"mrow"},"\u2212"),(0,m.kt)("mfrac",{parentName:"mrow"},(0,m.kt)("mn",{parentName:"mfrac"},"1"),(0,m.kt)("mn",{parentName:"mfrac"},"2"))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"D_{KL}(p,q)=\\log\\frac{\\sigma_2}{\\sigma_1}+\\frac{\\sigma_1^2+(\\mu_1-\\mu_2)^2}{2\\sigma_2^2}-\\frac12")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02778em"}},"D"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3283em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0278em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.07153em"}},"K"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"L"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"p"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"q"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"="),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1.9436em",verticalAlign:"-0.836em"}}),(0,m.kt)("span",{parentName:"span",className:"mop"},"lo",(0,m.kt)("span",{parentName:"span",style:{marginRight:"0.01389em"}},"g")),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mopen nulldelimiter"}),(0,m.kt)("span",{parentName:"span",className:"mfrac"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.1076em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.314em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"\u03c3"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0359em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"1")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.23em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"frac-line",style:{borderBottomWidth:"0.04em"}})),(0,m.kt)("span",{parentName:"span",style:{top:"-3.677em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"\u03c3"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0359em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"2")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"}))))))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.836em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"mclose nulldelimiter"})),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"+"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"2.4434em",verticalAlign:"-0.9523em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mopen nulldelimiter"}),(0,m.kt)("span",{parentName:"span",className:"mfrac"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.4911em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.314em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"2"),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"\u03c3"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.7959em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.4337em",marginLeft:"-0.0359em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"2"))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.0448em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"2")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.2663em"}},(0,m.kt)("span",{parentName:"span"})))))))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.23em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"frac-line",style:{borderBottomWidth:"0.04em"}})),(0,m.kt)("span",{parentName:"span",style:{top:"-3.677em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"\u03c3"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.8141em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.4519em",marginLeft:"-0.0359em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"1"))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.063em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"2")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.2481em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"+"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"\u03bc"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"1")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"\u2212"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"\u03bc"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"2")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mclose"},(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.8141em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-3.063em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"2"))))))))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.9523em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"mclose nulldelimiter"})),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"\u2212"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"2.0074em",verticalAlign:"-0.686em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mopen nulldelimiter"}),(0,m.kt)("span",{parentName:"span",className:"mfrac"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.3214em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.314em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"2"))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.23em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"frac-line",style:{borderBottomWidth:"0.04em"}})),(0,m.kt)("span",{parentName:"span",style:{top:"-3.677em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"1")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.686em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"mclose nulldelimiter"}))))))),(0,m.kt)("h3",{id:"\u9a6c\u5c14\u79d1\u592b\u94fe\u6761\u4ef6\u6982\u7387\u5f62\u5f0f"},"\u9a6c\u5c14\u79d1\u592b\u94fe\u6761\u4ef6\u6982\u7387\u5f62\u5f0f"),(0,m.kt)("p",null,"\u9a6c\u5c14\u79d1\u592b\u94fe\u6307\u5f53\u524d\u72b6\u6001\u7684\u6982\u7387\u53ea\u4e0e\u4e0a\u4e00\u65f6\u523b\u6709\u5173\uff0c\u4f8b\u5982\u82e5\u6ee1\u8db3\u9a6c\u5c14\u79d1\u592b\u5173\u7cfb",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"A"),(0,m.kt)("mo",{parentName:"mrow"},"\u2192"),(0,m.kt)("mi",{parentName:"mrow"},"B"),(0,m.kt)("mo",{parentName:"mrow"},"\u2192"),(0,m.kt)("mi",{parentName:"mrow"},"C")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"A\\to B\\to C")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6833em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"A"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"\u2192"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6833em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05017em"}},"B"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"\u2192"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6833em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.07153em"}},"C"))))),"\uff0c\u5219\u6709\uff1a"),(0,m.kt)("div",{className:"math math-display"},(0,m.kt)("span",{parentName:"div",className:"katex-display"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"A"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"B"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"C"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"C"),(0,m.kt)("mo",{parentName:"mrow"},"\u2223"),(0,m.kt)("mi",{parentName:"mrow"},"A"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"B"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"\u22c5"),(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"A"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"B"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"C"),(0,m.kt)("mo",{parentName:"mrow"},"\u2223"),(0,m.kt)("mi",{parentName:"mrow"},"B"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"\u22c5"),(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"B"),(0,m.kt)("mo",{parentName:"mrow"},"\u2223"),(0,m.kt)("mi",{parentName:"mrow"},"A"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"\u22c5"),(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"A"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"P(A,B,C) =P(C\\mid A,B)\\cdot P(A,B)=P(C\\mid B)\\cdot P(B\\mid A)\\cdot P(A)")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"P"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"A"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05017em"}},"B"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.07153em"}},"C"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"="),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"P"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.07153em"}},"C"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"\u2223"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"A"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05017em"}},"B"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"\u22c5"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"P"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"A"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05017em"}},"B"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"="),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"P"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.07153em"}},"C"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"\u2223"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05017em"}},"B"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"\u22c5"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"P"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05017em"}},"B"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"\u2223"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"A"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"\u22c5"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"P"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"A"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")")))))),(0,m.kt)("div",{className:"math math-display"},(0,m.kt)("span",{parentName:"div",className:"katex-display"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"B"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"C"),(0,m.kt)("mo",{parentName:"mrow"},"\u2223"),(0,m.kt)("mi",{parentName:"mrow"},"A"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"B"),(0,m.kt)("mo",{parentName:"mrow"},"\u2223"),(0,m.kt)("mi",{parentName:"mrow"},"A"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"\u22c5"),(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"C"),(0,m.kt)("mo",{parentName:"mrow"},"\u2223"),(0,m.kt)("mi",{parentName:"mrow"},"B"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"P(B,C\\mid A)=P(B\\mid A)\\cdot P(C\\mid B)")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"P"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05017em"}},"B"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.07153em"}},"C"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"\u2223"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"A"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"="),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"P"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05017em"}},"B"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"\u2223"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"A"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"\u22c5"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"P"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.07153em"}},"C"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"\u2223"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05017em"}},"B"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")")))))),(0,m.kt)("h3",{id:"\u53c2\u6570\u91cd\u6574\u5316\u6280\u5de7"},"\u53c2\u6570\u91cd\u6574\u5316\u6280\u5de7"),(0,m.kt)("p",null,"\u4ece\u4efb\u610f\u9ad8\u65af\u5206\u5e03",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow",mathvariant:"script"},"N"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"\u03bc"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("msup",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msup"},"\u03c3"),(0,m.kt)("mn",{parentName:"msup"},"2")),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"\\mathcal{N}(\\mu,\\sigma^2)")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1.0641em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathcal",style:{marginRight:"0.14736em"}},"N"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"\u03bc"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"\u03c3"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.8141em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-3.063em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"2")))))))),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"))))),"\u91c7\u6837",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"x")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"x")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.4306em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"x"))))),"\u65f6\uff0c\u53ef\u4ee5\u5148\u4ece\u6807\u51c6\u9ad8\u65af\u5206\u5e03",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow",mathvariant:"script"},"N"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mn",{parentName:"mrow"},"0"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mn",{parentName:"mrow"},"1"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"\\mathcal{N}(0,1)")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathcal",style:{marginRight:"0.14736em"}},"N"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},"0"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"1"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"))))),"\u4e2dsample\u51fa",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"z")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"z")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.4306em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.04398em"}},"z"))))),"\uff0c\u518d\u4ee4"),(0,m.kt)("div",{className:"math math-display"},(0,m.kt)("span",{parentName:"div",className:"katex-display"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"x"),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("mi",{parentName:"mrow"},"\u03c3"),(0,m.kt)("mo",{parentName:"mrow"},"\u2217"),(0,m.kt)("mi",{parentName:"mrow"},"z"),(0,m.kt)("mo",{parentName:"mrow"},"+"),(0,m.kt)("mi",{parentName:"mrow"},"\u03bc")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"x=\\sigma * z + \\mu")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.4306em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"x"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"="),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.4653em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"\u03c3"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"\u2217"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6667em",verticalAlign:"-0.0833em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.04398em"}},"z"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"+"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.625em",verticalAlign:"-0.1944em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"\u03bc")))))),(0,m.kt)("p",null,"\u4f18\u52bf\uff1a"),(0,m.kt)("ol",null,(0,m.kt)("li",{parentName:"ol"},"\u7531\u4e8e\u7ebf\u6027\u53d8\u5316\uff0c\u91c7\u6837\u8fc7\u7a0b\u4e2d\u5bf9\u5176\u4ed6\u53c2\u6570\u90fd\u6709",(0,m.kt)("strong",{parentName:"li"},"\u660e\u786e\u7684\u5bfc\u6570"),"\uff0c\u53ef\u4ee5\u8fdb\u884c\u53cd\u5411\u4f20\u64ad"),(0,m.kt)("li",{parentName:"ol"},"\u53ef\u4ee5\u901a\u8fc7",(0,m.kt)("strong",{parentName:"li"},"\u7ebf\u6027\u53d8\u6362"),"\u6765",(0,m.kt)("strong",{parentName:"li"},"\u63a7\u5236\u53c2\u6570\u5316\u7684\u91c7\u6837")),(0,m.kt)("li",{parentName:"ol"},"\u6807\u51c6\u6b63\u6001\u5206\u5e03\u5177\u6709",(0,m.kt)("strong",{parentName:"li"},"\u6613\u91c7\u6837"),"\u7684\u6027\u8d28")))}c.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/26bb3547.a86204d0.js b/assets/js/26bb3547.a86204d0.js new file mode 100644 index 000000000..cc3027152 --- /dev/null +++ b/assets/js/26bb3547.a86204d0.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunknpy_notebook=self.webpackChunknpy_notebook||[]).push([[8399],{3905:(e,t,n)=>{n.d(t,{Zo:()=>c,kt:()=>d});var a=n(7294);function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function i(e){for(var t=1;t=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var l=a.createContext({}),s=function(e){var t=a.useContext(l),n=t;return e&&(n="function"==typeof e?e(t):i(i({},t),e)),n},c=function(e){var t=s(e.components);return a.createElement(l.Provider,{value:t},e.children)},m="mdxType",g={inlineCode:"code",wrapper:function(e){var t=e.children;return a.createElement(a.Fragment,{},t)}},u=a.forwardRef((function(e,t){var n=e.components,r=e.mdxType,o=e.originalType,l=e.parentName,c=p(e,["components","mdxType","originalType","parentName"]),m=s(n),u=r,d=m["".concat(l,".").concat(u)]||m[u]||g[u]||o;return n?a.createElement(d,i(i({ref:t},c),{},{components:n})):a.createElement(d,i({ref:t},c))}));function d(e,t){var n=arguments,r=t&&t.mdxType;if("string"==typeof e||r){var o=n.length,i=new Array(o);i[0]=u;var p={};for(var l in t)hasOwnProperty.call(t,l)&&(p[l]=t[l]);p.originalType=e,p[m]="string"==typeof e?e:r,i[1]=p;for(var s=2;s{n.r(t),n.d(t,{assets:()=>l,contentTitle:()=>i,default:()=>g,frontMatter:()=>o,metadata:()=>p,toc:()=>s});var a=n(7462),r=(n(7294),n(3905));const o={},i="CVPR 2023: Zero-shot Generative Model Adaptation via Image-specific Prompt Learning",p={unversionedId:"Deep-Learning/\u8bba\u6587\u7b14\u8bb0/Zero-shot Generative Model Adaptation via Image-specific Prompt Learning",id:"Deep-Learning/\u8bba\u6587\u7b14\u8bb0/Zero-shot Generative Model Adaptation via Image-specific Prompt Learning",title:"CVPR 2023: Zero-shot Generative Model Adaptation via Image-specific Prompt Learning",description:"\u8bba\u6587\uff1aCVPR 2023 open access",source:"@site/docs/Deep-Learning/6-\u8bba\u6587\u7b14\u8bb0/4-Zero-shot Generative Model Adaptation via Image-specific Prompt Learning.md",sourceDirName:"Deep-Learning/6-\u8bba\u6587\u7b14\u8bb0",slug:"/Deep-Learning/\u8bba\u6587\u7b14\u8bb0/Zero-shot Generative Model Adaptation via Image-specific Prompt Learning",permalink:"/docs/Deep-Learning/\u8bba\u6587\u7b14\u8bb0/Zero-shot Generative Model Adaptation via Image-specific Prompt Learning",draft:!1,tags:[],version:"current",sidebarPosition:4,frontMatter:{},sidebar:"deep_learning",previous:{title:"CVPR 2022: High-Resolution Image Synthesis with Latent Diffusion Models",permalink:"/docs/Deep-Learning/\u8bba\u6587\u7b14\u8bb0/High-Resolution Image Synthesis with Latent Diffusion Models"}},l={},s=[{value:"\u6458\u8981",id:"\u6458\u8981",level:2},{value:"\u76f8\u5173\u5de5\u4f5c",id:"\u76f8\u5173\u5de5\u4f5c",level:2},{value:"Generative Model Adaption",id:"generative-model-adaption",level:3},{value:"few-shot",id:"few-shot",level:4},{value:"zero-shot",id:"zero-shot",level:4},{value:"Prompt Learning",id:"prompt-learning",level:3},{value:"\u4e3b\u8981\u65b9\u6cd5",id:"\u4e3b\u8981\u65b9\u6cd5",level:2},{value:"\u6982\u8ff0",id:"\u6982\u8ff0",level:3},{value:"\u7b2c\u4e00\u9636\u6bb5\uff1a\u8bad\u7ec3Latent Mapper",id:"\u7b2c\u4e00\u9636\u6bb5\u8bad\u7ec3latent-mapper",level:4},{value:"\u7b2c\u4e8c\u9636\u6bb5\uff1a\u5c06Latent Mapper\u63d2\u5165\u76ee\u6807\u57df\u751f\u6210\u5668\u7684\u8bad\u7ec3\u8fc7\u7a0b",id:"\u7b2c\u4e8c\u9636\u6bb5\u5c06latent-mapper\u63d2\u5165\u76ee\u6807\u57df\u751f\u6210\u5668\u7684\u8bad\u7ec3\u8fc7\u7a0b",level:4},{value:"Image-specific Prompt Learning",id:"image-specific-prompt-learning",level:3}],c={toc:s},m="wrapper";function g(e){let{components:t,...n}=e;return(0,r.kt)(m,(0,a.Z)({},c,n,{components:t,mdxType:"MDXLayout"}),(0,r.kt)("h1",{id:"cvpr-2023-zero-shot-generative-model-adaptation-via-image-specific-prompt-learning"},"CVPR 2023: Zero-shot Generative Model Adaptation via Image-specific Prompt Learning"),(0,r.kt)("admonition",{title:"\u76f8\u5173\u94fe\u63a5",type:"tip"},(0,r.kt)("p",{parentName:"admonition"},"\u8bba\u6587\uff1a",(0,r.kt)("a",{parentName:"p",href:"https://openaccess.thecvf.com/content/CVPR2023/papers/Guo_Zero-Shot_Generative_Model_Adaptation_via_Image-Specific_Prompt_Learning_CVPR_2023_paper.pdf"},"CVPR 2023 open access")),(0,r.kt)("p",{parentName:"admonition"},"\u4ee3\u7801\uff1a",(0,r.kt)("a",{parentName:"p",href:"https://github.com/Picsart-AI-Research/IPL-Zero-Shot-Generative-Model-Adaptation"},"Piscart-AI-Research")),(0,r.kt)("p",{parentName:"admonition"},"\u6587\u7ae0\u7684\u547d\u540d\u98ce\u683c\u501f\u9274\u4e86CVPR 2022\u7684\u6587\u7ae0",(0,r.kt)("a",{parentName:"p",href:"https://openaccess.thecvf.com/content/CVPR2022/papers/Xiao_Few_Shot_Generative_Model_Adaption_via_Relaxed_Spatial_Structural_Alignment_CVPR_2022_paper.pdf"},"Few Shot Generative Model Adaption via Relaxed Spatial Structural Alignment"))),(0,r.kt)("h2",{id:"\u6458\u8981"},"\u6458\u8981"),(0,r.kt)("p",null,"\u672c\u6587\u63d0\u51fa\u4e86Image-specific Prompt Learning\uff08IPL\uff09\u65b9\u6cd5\u6765\u89e3\u51b3",(0,r.kt)("strong",{parentName:"p"},"\u98ce\u683c\u8fc1\u79fb\u4efb\u52a1"),"\u4e2d\u751f\u6210\u6a21\u578b",(0,r.kt)("strong",{parentName:"p"},"\u4ece\u6e90\u57df\u5230\u76ee\u6807\u57df\u7684\u9002\u5e94"),"\u95ee\u9898\u3002\u4e00\u4e2aLatent Mapper\u6765\u4ece\u6e90\u57df\u56fe\u50cf\u4e2d\u5b66\u4e60\u51fa",(0,r.kt)("strong",{parentName:"p"},"\u5305\u542b\u56fe\u50cf\u7279\u5f81"),"\u4e14",(0,r.kt)("strong",{parentName:"p"},"\u9002\u5e94\u76ee\u6807\u57df"),"\u7684prompt\uff0c\u4ece\u800c\u6307\u5bfc\u76ee\u6807\u57df\u751f\u6210\u5668\u7684\u8bad\u7ec3\u3002"),(0,r.kt)("blockquote",null,(0,r.kt)("p",{parentName:"blockquote"},"This produces a more precise adaptation direction for every cross-domain image pair, endowing the target-domain generator with greatly enhanced flexibility.")),(0,r.kt)("p",null,"\u8bad\u7ec3\u8d44\u6599\u662f\u6e90\u57df\u548c\u76ee\u6807\u57df\u7684\u6587\u5b57\u6807\u7b7e\u4ee5\u53ca\u6e90\u57df\u7684\u56fe\u50cf\uff0c",(0,r.kt)("strong",{parentName:"p"},"\u5e76\u4e0d\u9700\u8981\u76ee\u6807\u57df\u7684\u56fe\u50cf"),"\u3002\u6b64\u5916\uff0cIPL\u72ec\u7acb\u4e8e\u751f\u6210\u6a21\u578b\uff0c\u53ef\u4ee5\u81ea\u7531\u9009\u62e9Diffusion Model\u6216GAN\u7b49\u3002"),(0,r.kt)("h2",{id:"\u76f8\u5173\u5de5\u4f5c"},"\u76f8\u5173\u5de5\u4f5c"),(0,r.kt)("h3",{id:"generative-model-adaption"},"Generative Model Adaption"),(0,r.kt)("p",null,"Generative Model Adaption\u7684\u4efb\u52a1\u662f\u4f7f\u5728\u5927\u89c4\u6a21\u6e90\u57df\u56fe\u7247\u4e0a\u8bad\u7ec3\u7684\u751f\u6210\u6a21\u578b\u9002\u5e94\u5230\u6570\u636e\u6709\u9650\u7684\u76ee\u6807\u57df\u4e2d\uff0c\u6839\u636e\u76ee\u6807\u57df\u8bad\u7ec3\u8d44\u6599\u7684\u5927\u5c0f\u53ef\u4ee5\u5206\u4e3afew-shot\u548czero-shot\u3002"),(0,r.kt)("h4",{id:"few-shot"},"few-shot"),(0,r.kt)("p",null,"\u5bf9\u4e8efew-shot\u4efb\u52a1\uff0c\u4e00\u822c\u662f\u901a\u8fc7\u6709\u9650\u7684\u76ee\u6807\u57df\u8bad\u7ec3\u96c6\u8d44\u6599fine-tune\u9884\u8bad\u7ec3\u6a21\u578b\u3002"),(0,r.kt)("p",null,"\u7136\u800c\uff0cfine-tune\u901a\u5e38\u4f1a\u5bfc\u81f4\u8fc7\u62df\u5408\u3002\u4e3a\u4e86\u89e3\u51b3\u8fc7\u62df\u5408\u95ee\u9898\uff0c\u901a\u5e38\u4f7f\u7528\u7684\u65b9\u6cd5\u662f\u65bd\u52a0\u5f3a\u6b63\u5219\u5316\u3001\u4f7f\u7528\u6270\u52a8\u6cd5\u3001\u8de8\u57df\u5bf9\u9f50\u6216\u6570\u636e\u589e\u5f3a\u3002"),(0,r.kt)("admonition",{title:"\u76f8\u5173\u6587\u732e\u65b9\u6cd5",type:"info"},(0,r.kt)("ul",{parentName:"admonition"},(0,r.kt)("li",{parentName:"ul"},"\u5f3a\u6b63\u5219\u5316\uff1aHan Zhang, Zizhao Zhang, Augustus Odena, and Honglak Lee. Consistency regularization for generative adversarial networks. In ICLR, 2019."),(0,r.kt)("li",{parentName:"ul"},"\u6270\u52a8\u6cd5\uff1aSangwoo Mo, Minsu Cho, and Jinwoo Shin. Freeze the discriminator: a simple baseline for fine-tuning GANs. In CVPR Workshops, 2020."),(0,r.kt)("li",{parentName:"ul"},"\u8de8\u57df\u5bf9\u9f50\uff1aUtkarsh Ojha, Yijun Li, Jingwan Lu, Alexei A Efros, Yong Jae Lee, Eli Shechtman, and Richard Zhang. Fewshot image generation via cross-domain correspondence. In CVPR, 2021."),(0,r.kt)("li",{parentName:"ul"},"\u6570\u636e\u589e\u5f3a\uff1aNgoc-Trung Tran, Viet-Hung Tran, Ngoc-Bao Nguyen, Trung-Kien Nguyen, and Ngai-Man Cheung. On data augmentation for GAN training. TIP, 2021."))),(0,r.kt)("h4",{id:"zero-shot"},"zero-shot"),(0,r.kt)("p",null,"\u5bf9\u4e8e\u96f6\u6837\u672c\u7684\u56fe\u50cf\u751f\u6210\u6a21\u578b\u7684\u9002\u5e94\u4efb\u52a1\uff0c",(0,r.kt)("a",{parentName:"p",href:"https://arxiv.org/pdf/2108.00946.pdf"},"NADA"),"\u7387\u5148\u5f15\u5165\u4e86CLIP\u6a21\u578b\u6765\u83b7\u53d6\u5fc5\u987b\u7684\u5148\u9a8c\u77e5\u8bc6\uff0c\u901a\u8fc7\u9884\u8bad\u7ec3\u5927\u6a21\u578b\u7684\u8bed\u8a00\u7406\u89e3\u80fd\u529b\u5b9e\u73b0",(0,r.kt)("strong",{parentName:"p"},"\u5728\u76ee\u6807\u57df\u53ea\u9700\u8981\u6587\u5b57\u6807\u7b7e"),"\u800c\u4e0d\u9700\u8981\u56fe\u7247\uff0c\u5c06\u6e90\u57df\u548c\u76ee\u6807\u57df\u4e4b\u95f4\u7684\u5dee\u8ddd\u7f16\u7801\u4e3a\u5728CLIP\u7a7a\u95f4\u4e0a\u6587\u5b57\u5f15\u5bfc\u7684\u9002\u5e94\u65b9\u5411\u3002"),(0,r.kt)("p",null,"\u6b64\u540e\uff0cCVPR 2022\u53d1\u8868\u7684",(0,r.kt)("a",{parentName:"p",href:"https://arxiv.org/pdf/2110.02711.pdf"},"DiffusionCLIP"),"\u4f7f\u7528\u4e86Diffusion\u6a21\u578b\u4ee3\u66ffNADA\u4e2d\u7684StyleGANs\uff0c\u83b7\u5f97\u4e86\u66f4\u597d\u7684\u7279\u5f81\u4fdd\u5b58\u80fd\u529b\u3002"),(0,r.kt)("p",null,"\u7136\u800c\u8fd9\u4e9b\u65b9\u6cd5\u90fd\u662f\u91c7\u7528\u4e86\u56fa\u5b9a\u7684\u9002\u5e94\u65b9\u5411\uff0c\u53ea\u5305\u542b\u57fa\u7840\u7684\u57df\u77e5\u8bc6\uff0c\u800c\u4e0d\u662f\u56fe\u7247\u7279\u5b9a\u7684\u7279\u5f81\u3002\u5728\u672c\u6587\u4e2d\uff0c\u4f5c\u8005\u53d1\u73b0\u8fd9\u79cd\u5171\u4eab\u7684\u3001\u56fa\u5b9a\u7684\u9002\u5e94\u65b9\u5411\u4f1a\u5bfc\u81f4Mode Collapse\uff08\u6a21\u5f0f\u574d\u584c\uff09\uff0c\u56e0\u6b64\u63d0\u51fa\u4e86\u4ece\u6bcf\u4e2a\u6e90\u57df\u56fe\u50cf\u4e2d\u5b66\u4e60\u51fa\u591a\u6837\u4e14\u51c6\u786e\u7684prompt\uff0c\u4e3a\u751f\u6210\u6a21\u578b\u5411\u76ee\u6807\u57df\u7684\u9002\u5e94\u63d0\u4f9b\u66f4\u7cbe\u786e\u7684\u65b9\u5411\u3002"),(0,r.kt)("p",null,(0,r.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_imagesimage-20231221214755712.png",alt:"image-20231221214755712"})),(0,r.kt)("h3",{id:"prompt-learning"},"Prompt Learning"),(0,r.kt)("p",null,"Prompt\u5de5\u7a0b\u6700\u521d\u662f\u4e00\u79cdKnowledge Probing\uff08\u77e5\u8bc6\u63a2\u6d4b\uff09\u65b9\u6cd5\uff0c\u7ed9\u5b9a\u5b8c\u5f62\u586b\u7a7a\uff08cloze-style\uff09\u7c7b\u7684prompt\uff0c\u5f15\u5bfc\u6a21\u578b\u4ea7\u751f\u76f8\u5bf9\u5e94\u7684\u7b54\u6848\u3002"),(0,r.kt)("p",null,"\u7136\u800c\u4eba\u5de5\u8bbe\u8ba1\u7684prompt\u901a\u5e38\u4e0d\u662f\u6700\u4f18\u7684\uff0c\u53ef\u80fd\u63d0\u4f9b\u4e0d\u51c6\u786e\u7684\u9002\u5e94\u65b9\u5411\u3002\u4e3a\u4e86\u89e3\u51b3\u8fd9\u4e2a\u95ee\u9898\uff0c\u5728NLP\u9886\u57df\u7684Prompt Learning\u53d1\u5c55\u8fc5\u901f\uff0c\u5e76\u968f\u7740\u89c6\u89c9-\u8bed\u8a00\u5927\u6a21\u578b\u7684\u53d1\u5c55\uff0c\u5e94\u7528\u5728\u4e86\u89c6\u89c9\u4efb\u52a1\u4e2d\u3002"),(0,r.kt)("p",null,"Kaiyang Zhou\u7b49\u4eba\u9996\u5148\u5728\u56fe\u50cf\u5206\u7c7b\u4efb\u52a1\u4e2d\u91c7\u7528\u4e0a\u4e0b\u6587\u4f18\u5316\uff0c\u5728\u8bcd\u5d4c\u5165\u7a7a\u95f4\u4e2d\u5bf9\u5177\u6709\u8fde\u7eed\u5411\u91cf\u7684\u4e0a\u4e0b\u6587\u8bcd\u8fdb\u884c\u5efa\u6a21\u3002\u968f\u540ePrompt Learning\u5728\u8ba1\u7b97\u673a\u89c6\u89c9\u4e2d\u7684\u8bb8\u591a\u4e0b\u6e38\u4efb\u52a1\u90fd\u5f97\u5230\u4e86\u63a2\u7d22\uff0c\u4f8b\u5982\u76ee\u6807\u68c0\u6d4b\u3001\u89c6\u9891\u7406\u89e3\u548c\u8fc1\u79fb\u5b66\u4e60\u7b49\u3002"),(0,r.kt)("h2",{id:"\u4e3b\u8981\u65b9\u6cd5"},"\u4e3b\u8981\u65b9\u6cd5"),(0,r.kt)("h3",{id:"\u6982\u8ff0"},"\u6982\u8ff0"),(0,r.kt)("p",null,"IPL\u65b9\u6cd5\u5206\u4e24\u4e2a\u9636\u6bb5\u3002"),(0,r.kt)("h4",{id:"\u7b2c\u4e00\u9636\u6bb5\u8bad\u7ec3latent-mapper"},"\u7b2c\u4e00\u9636\u6bb5\uff1a\u8bad\u7ec3Latent Mapper"),(0,r.kt)("p",null,"\u7b2c\u4e00\u9636\u6bb5\u7684\u4e3b\u8981\u4efb\u52a1\u662f\u8bad\u7ec3Lantent Mapper\u6765\u4e3a\u6bcf\u4e00\u4e2a\u8bad\u7ec3\u96c6\u7684\u6e90\u57df\u56fe\u7247\u751f\u6210\u4e00\u7ec4prompt\u3002Latent Mapper\u63a5\u6536\u6e90\u57df\u56fe\u50cf\u7684latent representation\uff0c\u751f\u6210\u4e00\u7ec4prompt\u5411\u91cf\u3002\u7b2c\u4e00\u9636\u6bb5\u9700\u8981\u89e3\u51b3\u4e24\u4e2a\u95ee\u9898\uff0c\u5373\u5728zero-shot\u7684\u80cc\u666f\u4e0b\uff0c\u5982\u4f55\u5b9e\u73b0prompt\u4e0e\u6e90\u57df\u56fe\u50cf\u7279\u5f81\u7684\u5bf9\u9f50\u4ee5\u53caprompt\u4e0e\u76ee\u6807\u57df\u7a7a\u95f4\u7684\u5bf9\u9f50\uff0c\u56e0\u6b64\u7b2c\u4e00\u9636\u6bb5\u7684\u8bad\u7ec3\u5206\u4e24\u90e8\u5206\u8fdb\u884c\u3002"),(0,r.kt)("p",null,"\u7b2c\u4e00\u90e8\u5206\u662fLatent Mapper\u8f93\u51fa\u7684prompt\u4e0e\u76ee\u6807\u57df\u6807\u7b7econcat\u540e\u9001\u5165\u6765\u81eaCLIP\u7684Text Encoder\u5f97\u5230\u76ee\u6807\u57df\u56fe\u7247prompt\u5728CLIP\u7a7a\u95f4\u7684\u7f16\u7801\u8868\u793a\uff0c\u5e76\u4e0e\u76ee\u6807\u57df\u6807\u7b7e\u7ecf\u8fc7Text Encoder\u540e\u7684\u7f16\u7801\u5171\u540c\u4f5c\u4e3aDomain Loss\u7684\u8f93\u5165\u6765\u7ea6\u675f\u4ece\u6e90\u57df\u4e2d\u5b66\u4e60\u5230\u7684prompt\u4e0e\u76ee\u6807\u57df\u7a7a\u95f4\u5bf9\u9f50\u3002"),(0,r.kt)("p",null,"\u7b2c\u4e8c\u90e8\u5206\u662fLatent Mapper\u8f93\u51fa\u7684prompt\u4e0e\u6e90\u57df\u6807\u7b7econcat\u540e\u9001\u5165\u6765\u81eaCLIP\u7684Text Encoder\u5f97\u5230\u6e90\u57df\u56fe\u7247prompt\u63cf\u8ff0\u5728CLIP\u7a7a\u95f4\u7684\u7f16\u7801\u8868\u793a\uff0c\u540c\u65f6\u6e90\u57df\u56fe\u50cf\u518d\u7ecf\u8fc7\u6765\u81eaCLIP\u7684Image Encoder\u540e\u5f97\u5230\u5176\u5728CLIP\u7a7a\u95f4\u7684\u7f16\u7801\u8868\u793a\u3002\u5c06\u6e90\u57df\u7684prompt\u6587\u5b57\u548c\u56fe\u50cf\u7f16\u7801\u8868\u793a\u4f5c\u4e3acontrastive learning loss\u7684\u8f93\u5165\uff0c\u7ea6\u675f\u5b66\u4e60\u5230\u7684prompt\u4e0e\u6e90\u57df\u56fe\u50cf\u7684\u7279\u5f81\u5bf9\u9f50\u3002"),(0,r.kt)("p",null,(0,r.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_imagesprompt%E4%BA%A7%E7%94%9F%E7%AD%96%E7%95%A5.jpg",alt:"prompt\u4ea7\u751f\u7b56\u7565"})),(0,r.kt)("h4",{id:"\u7b2c\u4e8c\u9636\u6bb5\u5c06latent-mapper\u63d2\u5165\u76ee\u6807\u57df\u751f\u6210\u5668\u7684\u8bad\u7ec3\u8fc7\u7a0b"},"\u7b2c\u4e8c\u9636\u6bb5\uff1a\u5c06Latent Mapper\u63d2\u5165\u76ee\u6807\u57df\u751f\u6210\u5668\u7684\u8bad\u7ec3\u8fc7\u7a0b"),(0,r.kt)("p",null,"\u7b2c\u4e8c\u9636\u6bb5\u5229\u7528Directional CLIP Loss\u6765\u8bad\u7ec3\u76ee\u6807\u57df\u751f\u6210\u5668\uff0c\u4f7f\u6e90\u4e8e\u751f\u6210\u5668\u5411\u76ee\u6807\u57df\u8fc1\u79fb\u5b66\u4e60\u3002\u9700\u8981\u8f93\u5165\u6e90\u57df\u4ee5\u53ca\u76ee\u6807\u57df\u56fe\u50cf\u3001\u6e90\u57df\u4ee5\u53ca\u76ee\u6807\u57df\u7684prompt\u63cf\u8ff0\u3002\u6e90\u57df\u56fe\u50cf\u7684latent representation\u5206\u522b\u8f93\u5165\u81f3\u6e90\u57df\u751f\u6210\u5668\u548c\u76ee\u6807\u57df\u751f\u6210\u5668\u4e2d\u5f97\u5230\u5bf9\u5e94\u7684\u56fe\u50cf\uff0c\u540c\u65f6\u6307\u5bfc\u98ce\u683c\u8fc1\u79fb\u65b9\u5411\u7684\u6e90\u57df\u4ee5\u53ca\u76ee\u6807\u57df\u7684prompt\u63cf\u8ff0\u7531Latent Mapper\u63a5\u6536\u6e90\u57df\u56fe\u50cf\u7684\u9690\u5f0f\u8868\u793a\u540e\u8f93\u51fa\u518d\u5206\u522b\u4e0e\u6e90\u57df\u548c\u76ee\u6807\u57df\u6807\u7b7econcat\u800c\u5f97\u5230\u3002\u5206\u522b\u5c06\u6e90\u57df\u56fe\u50cf\u3001\u751f\u6210\u7684\u76ee\u6807\u57df\u56fe\u50cf\u4ee5\u53ca\u6e90\u57df\u3001\u76ee\u6807\u57df\u7684\u56fe\u7247prompt\u63cf\u8ff0\u4e00\u8d77\u8f93\u5165\u81f3Directional CLIP Loss\uff0c\u4ece\u800c\u7ea6\u675f\u7531\u6e90\u57df\u56fe\u50cf\u751f\u6210\u5668\u521d\u59cb\u5316\u7684\u76ee\u6807\u57df\u56fe\u50cf\u751f\u6210\u5668\u5411\u76ee\u6807\u57df\u7684\u8fc1\u79fb\u5b66\u4e60\u3002"),(0,r.kt)("p",null,(0,r.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_imagesimage-20231221231045323.png",alt:"image-20231221231045323"})),(0,r.kt)("h3",{id:"image-specific-prompt-learning"},"Image-specific Prompt Learning"))}g.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/2a59d8d4.b26a653a.js b/assets/js/2a59d8d4.b26a653a.js new file mode 100644 index 000000000..fef4efb2a --- /dev/null +++ b/assets/js/2a59d8d4.b26a653a.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunknpy_notebook=self.webpackChunknpy_notebook||[]).push([[3065],{3905:(a,e,t)=>{t.d(e,{Zo:()=>i,kt:()=>h});var s=t(7294);function m(a,e,t){return e in a?Object.defineProperty(a,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):a[e]=t,a}function n(a,e){var t=Object.keys(a);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(a);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable}))),t.push.apply(t,s)}return t}function p(a){for(var e=1;e=0||(m[t]=a[t]);return m}(a,e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);for(s=0;s=0||Object.prototype.propertyIsEnumerable.call(a,t)&&(m[t]=a[t])}return m}var N=s.createContext({}),l=function(a){var e=s.useContext(N),t=e;return a&&(t="function"==typeof a?a(e):p(p({},e),a)),t},i=function(a){var e=l(a.components);return s.createElement(N.Provider,{value:e},a.children)},k="mdxType",o={inlineCode:"code",wrapper:function(a){var e=a.children;return s.createElement(s.Fragment,{},e)}},c=s.forwardRef((function(a,e){var t=a.components,m=a.mdxType,n=a.originalType,N=a.parentName,i=r(a,["components","mdxType","originalType","parentName"]),k=l(t),c=m,h=k["".concat(N,".").concat(c)]||k[c]||o[c]||n;return t?s.createElement(h,p(p({ref:e},i),{},{components:t})):s.createElement(h,p({ref:e},i))}));function h(a,e){var t=arguments,m=e&&e.mdxType;if("string"==typeof a||m){var n=t.length,p=new Array(n);p[0]=c;var r={};for(var N in e)hasOwnProperty.call(e,N)&&(r[N]=e[N]);r.originalType=a,r[k]="string"==typeof a?a:m,p[1]=r;for(var l=2;l{t.r(e),t.d(e,{assets:()=>N,contentTitle:()=>p,default:()=>o,frontMatter:()=>n,metadata:()=>r,toc:()=>l});var s=t(7462),m=(t(7294),t(3905));const n={},p="\u4ece\u5168\u8fde\u63a5\u5230\u5377\u79ef",r={unversionedId:"Deep-Learning/\u57fa\u7840\u77e5\u8bc6/FromFullyConnectedLayerToConvolutionalLayer",id:"Deep-Learning/\u57fa\u7840\u77e5\u8bc6/FromFullyConnectedLayerToConvolutionalLayer",title:"\u4ece\u5168\u8fde\u63a5\u5230\u5377\u79ef",description:"\u4e00\u3001\u5377\u79ef\u7684\u8bde\u751f&\u6838\u5fc3\u7279\u5f81",source:"@site/docs/Deep-Learning/3-\u57fa\u7840\u77e5\u8bc6/FromFullyConnectedLayerToConvolutionalLayer.md",sourceDirName:"Deep-Learning/3-\u57fa\u7840\u77e5\u8bc6",slug:"/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/FromFullyConnectedLayerToConvolutionalLayer",permalink:"/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/FromFullyConnectedLayerToConvolutionalLayer",draft:!1,tags:[],version:"current",frontMatter:{},sidebar:"deep_learning",previous:{title:"\u5377\u79ef\u5c42",permalink:"/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/ConvolutionalLayer"},next:{title:"K-fold cross-validation",permalink:"/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/K-foldCross-validation"}},N={},l=[{value:"\u4e00\u3001\u5377\u79ef\u7684\u8bde\u751f&\u6838\u5fc3\u7279\u5f81",id:"\u4e00\u5377\u79ef\u7684\u8bde\u751f\u6838\u5fc3\u7279\u5f81",level:2},{value:"\u4e8c\u3001\u91cd\u65b0\u8003\u5bdf\u5168\u8fde\u63a5\u5c42",id:"\u4e8c\u91cd\u65b0\u8003\u5bdf\u5168\u8fde\u63a5\u5c42",level:2},{value:"\u4e09\u3001\u603b\u7ed3",id:"\u4e09\u603b\u7ed3",level:2}],i={toc:l},k="wrapper";function o(a){let{components:e,...t}=a;return(0,m.kt)(k,(0,s.Z)({},i,t,{components:e,mdxType:"MDXLayout"}),(0,m.kt)("h1",{id:"\u4ece\u5168\u8fde\u63a5\u5230\u5377\u79ef"},"\u4ece\u5168\u8fde\u63a5\u5230\u5377\u79ef"),(0,m.kt)("h2",{id:"\u4e00\u5377\u79ef\u7684\u8bde\u751f\u6838\u5fc3\u7279\u5f81"},"\u4e00\u3001\u5377\u79ef\u7684\u8bde\u751f&\u6838\u5fc3\u7279\u5f81"),(0,m.kt)("ol",null,(0,m.kt)("li",{parentName:"ol"},"\u73b0\u4ee3\u56fe\u7247\u5177\u6709\u8f83\u5927\u7684\u50cf\u7d20\uff0c\u4f7f\u7528\u5168\u8fde\u63a5\u5c42\u5bfc\u81f4\u53c2\u6570\u7206\u70b8"),(0,m.kt)("li",{parentName:"ol"},"\u9488\u5bf9\u56fe\u7247\u7684\u7279\u5f81\u63d0\u53d6\u548c\u6a21\u5f0f\u8bc6\u522b\uff0c\u5e94\u5177\u5907\u4ee5\u4e0b\u539f\u5219\uff1a",(0,m.kt)("ul",{parentName:"li"},(0,m.kt)("li",{parentName:"ul"},"\u5e73\u79fb\u4e0d\u53d8\u6027"),(0,m.kt)("li",{parentName:"ul"},"\u5c40\u90e8\u6027")))),(0,m.kt)("hr",null),(0,m.kt)("h2",{id:"\u4e8c\u91cd\u65b0\u8003\u5bdf\u5168\u8fde\u63a5\u5c42"},"\u4e8c\u3001\u91cd\u65b0\u8003\u5bdf\u5168\u8fde\u63a5\u5c42"),(0,m.kt)("ol",null,(0,m.kt)("li",{parentName:"ol"},(0,m.kt)("p",{parentName:"li"},"\u5c06\u5168\u8fde\u63a5\u5c42\u7684\u4e00\u7ef4\u8f93\u5165\u548c\u8f93\u51fa\u53d8\u6362\u4e3a\u4e8c\u7ef4\u7684\u77e9\u9635\uff0c\u516c\u5f0f\u5982\u4e0b"),(0,m.kt)("p",{parentName:"li"},"\u5176\u4e2d",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"i"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"j")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"i,j")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.854em",verticalAlign:"-0.1944em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"i"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05724em"}},"j"))))),"\u4ee3\u8868\u8f93\u51fa\u795e\u7ecf\u5143\u7684\u4e8c\u7ef4\u7d22\u5f15\u5750\u6807\uff0c",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"h"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"w")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"h,w")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.8889em",verticalAlign:"-0.1944em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"h"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02691em"}},"w"))))),"\u4ee3\u8868\u8f93\u5165\u795e\u7ecf\u5143\u7684\u4e8c\u7ef4\u7d22\u5f15\u5750\u6807"))),(0,m.kt)("div",{className:"math math-display"},(0,m.kt)("span",{parentName:"div",className:"katex-display"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mtable",{parentName:"semantics",width:"100%"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mrow",{parentName:"mtd"},(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"y"),(0,m.kt)("mrow",{parentName:"msub"},(0,m.kt)("mi",{parentName:"mrow"},"i"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"j"))),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("munder",{parentName:"mrow"},(0,m.kt)("mo",{parentName:"munder"},"\u2211"),(0,m.kt)("mrow",{parentName:"munder"},(0,m.kt)("mi",{parentName:"mrow"},"h"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"w"))),(0,m.kt)("mrow",{parentName:"mrow"},(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"w"),(0,m.kt)("mrow",{parentName:"msub"},(0,m.kt)("mi",{parentName:"mrow"},"i"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"j"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"h"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"w"))),(0,m.kt)("mo",{parentName:"mrow"},"\u2217"),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"x"),(0,m.kt)("mrow",{parentName:"msub"},(0,m.kt)("mi",{parentName:"mrow"},"h"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"w")))))),(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mtext",{parentName:"mtd"},"(1)")))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"y_{i,j}=\\sum_{h,w}{w_{i,j,h,w}*x_{h,w}} \\tag{1}")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.7167em",verticalAlign:"-0.2861em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"y"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3117em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0359em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"i"),(0,m.kt)("span",{parentName:"span",className:"mpunct mtight"},","),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.05724em"}},"j"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.2861em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"="),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"2.4882em",verticalAlign:"-1.4382em"}}),(0,m.kt)("span",{parentName:"span",className:"mop op-limits"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.05em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-1.8479em",marginLeft:"0em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.05em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"h"),(0,m.kt)("span",{parentName:"span",className:"mpunct mtight"},","),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.02691em"}},"w")))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.05em"}}),(0,m.kt)("span",{parentName:"span"},(0,m.kt)("span",{parentName:"span",className:"mop op-symbol large-op"},"\u2211")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.4382em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02691em"}},"w"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3361em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0269em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"i"),(0,m.kt)("span",{parentName:"span",className:"mpunct mtight"},","),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.05724em"}},"j"),(0,m.kt)("span",{parentName:"span",className:"mpunct mtight"},","),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"h"),(0,m.kt)("span",{parentName:"span",className:"mpunct mtight"},","),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.02691em"}},"w"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.2861em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"\u2217"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"x"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3361em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"h"),(0,m.kt)("span",{parentName:"span",className:"mpunct mtight"},","),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.02691em"}},"w"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.2861em"}},(0,m.kt)("span",{parentName:"span"})))))))),(0,m.kt)("span",{parentName:"span",className:"tag"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"2.4882em",verticalAlign:"-1.4382em"}}),(0,m.kt)("span",{parentName:"span",className:"mord text"},(0,m.kt)("span",{parentName:"span",className:"mord"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"1")),(0,m.kt)("span",{parentName:"span",className:"mord"},")"))))))),(0,m.kt)("ol",{start:2},(0,m.kt)("li",{parentName:"ol"},(0,m.kt)("p",{parentName:"li"},"\u8fdb\u4e00\u6b65\u5c06\u6743\u91cd\u4ee5\u53ca\u8f93\u5165\u7684\u7d22\u5f15\u53d8\u5f62\uff0c\u516c\u5f0f\u5982\u4e0b"),(0,m.kt)("p",{parentName:"li"},"\u5176\u4e2d",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"a"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"b")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"a,b")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.8889em",verticalAlign:"-0.1944em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"a"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"b"))))),"\u7684\u53d6\u503c\u53ef\u8d1f\u53ef\u6b63\uff0c\u76f4\u5230\u904d\u5386\u6240\u6709\u6743\u91cd\u4ee5\u53ca\u8f93\u5165\u795e\u7ecf\u5143\uff0c\u5b9e\u73b0\u5168\u8fde\u63a5"))),(0,m.kt)("div",{className:"math math-display"},(0,m.kt)("span",{parentName:"div",className:"katex-display"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mtable",{parentName:"semantics",width:"100%"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mrow",{parentName:"mtd"},(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"y"),(0,m.kt)("mrow",{parentName:"msub"},(0,m.kt)("mi",{parentName:"mrow"},"i"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"j"))),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("munder",{parentName:"mrow"},(0,m.kt)("mo",{parentName:"munder"},"\u2211"),(0,m.kt)("mrow",{parentName:"munder"},(0,m.kt)("mi",{parentName:"mrow"},"h"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"w"))),(0,m.kt)("mrow",{parentName:"mrow"},(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"w"),(0,m.kt)("mrow",{parentName:"msub"},(0,m.kt)("mi",{parentName:"mrow"},"i"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"j"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"h"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"w"))),(0,m.kt)("mo",{parentName:"mrow"},"\u2217"),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"x"),(0,m.kt)("mrow",{parentName:"msub"},(0,m.kt)("mi",{parentName:"mrow"},"h"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"w")))),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("munder",{parentName:"mrow"},(0,m.kt)("mo",{parentName:"munder"},"\u2211"),(0,m.kt)("mrow",{parentName:"munder"},(0,m.kt)("mi",{parentName:"mrow"},"a"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"b"))),(0,m.kt)("mrow",{parentName:"mrow"},(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"v"),(0,m.kt)("mrow",{parentName:"msub"},(0,m.kt)("mi",{parentName:"mrow"},"i"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"j"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"a"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"b"))),(0,m.kt)("mo",{parentName:"mrow"},"\u2217"),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"x"),(0,m.kt)("mrow",{parentName:"msub"},(0,m.kt)("mi",{parentName:"mrow"},"i"),(0,m.kt)("mo",{parentName:"mrow"},"+"),(0,m.kt)("mi",{parentName:"mrow"},"a"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"j"),(0,m.kt)("mo",{parentName:"mrow"},"+"),(0,m.kt)("mi",{parentName:"mrow"},"b")))))),(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mtext",{parentName:"mtd"},"(2)")))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"y_{i,j}=\\sum_{h,w}{w_{i,j,h,w}*x_{h,w}}=\\sum_{a,b}{v_{i,j,a,b}*x_{i+a,j+b}} \\tag{2}")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.7167em",verticalAlign:"-0.2861em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"y"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3117em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0359em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"i"),(0,m.kt)("span",{parentName:"span",className:"mpunct mtight"},","),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.05724em"}},"j"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.2861em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"="),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"2.4882em",verticalAlign:"-1.4382em"}}),(0,m.kt)("span",{parentName:"span",className:"mop op-limits"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.05em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-1.8479em",marginLeft:"0em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.05em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"h"),(0,m.kt)("span",{parentName:"span",className:"mpunct mtight"},","),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.02691em"}},"w")))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.05em"}}),(0,m.kt)("span",{parentName:"span"},(0,m.kt)("span",{parentName:"span",className:"mop op-symbol large-op"},"\u2211")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.4382em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02691em"}},"w"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3361em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0269em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"i"),(0,m.kt)("span",{parentName:"span",className:"mpunct mtight"},","),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.05724em"}},"j"),(0,m.kt)("span",{parentName:"span",className:"mpunct mtight"},","),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"h"),(0,m.kt)("span",{parentName:"span",className:"mpunct mtight"},","),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.02691em"}},"w"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.2861em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"\u2217"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"x"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3361em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"h"),(0,m.kt)("span",{parentName:"span",className:"mpunct mtight"},","),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.02691em"}},"w"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.2861em"}},(0,m.kt)("span",{parentName:"span"}))))))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"="),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"2.4882em",verticalAlign:"-1.4382em"}}),(0,m.kt)("span",{parentName:"span",className:"mop op-limits"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.05em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-1.8479em",marginLeft:"0em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.05em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"a"),(0,m.kt)("span",{parentName:"span",className:"mpunct mtight"},","),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"b")))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.05em"}}),(0,m.kt)("span",{parentName:"span"},(0,m.kt)("span",{parentName:"span",className:"mop op-symbol large-op"},"\u2211")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.4382em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"v"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3361em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0359em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"i"),(0,m.kt)("span",{parentName:"span",className:"mpunct mtight"},","),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.05724em"}},"j"),(0,m.kt)("span",{parentName:"span",className:"mpunct mtight"},","),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"a"),(0,m.kt)("span",{parentName:"span",className:"mpunct mtight"},","),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"b"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.2861em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"\u2217"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"x"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3361em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"i"),(0,m.kt)("span",{parentName:"span",className:"mbin mtight"},"+"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"a"),(0,m.kt)("span",{parentName:"span",className:"mpunct mtight"},","),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.05724em"}},"j"),(0,m.kt)("span",{parentName:"span",className:"mbin mtight"},"+"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"b"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.2861em"}},(0,m.kt)("span",{parentName:"span"})))))))),(0,m.kt)("span",{parentName:"span",className:"tag"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"2.4882em",verticalAlign:"-1.4382em"}}),(0,m.kt)("span",{parentName:"span",className:"mord text"},(0,m.kt)("span",{parentName:"span",className:"mord"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"2")),(0,m.kt)("span",{parentName:"span",className:"mord"},")"))))))),(0,m.kt)("ol",{start:3},(0,m.kt)("li",{parentName:"ol"},(0,m.kt)("p",{parentName:"li"},"\u5728\u516c\u5f0f(2)\u4e2d\uff0c\u5f53",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"i"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"j")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"i,j")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.854em",verticalAlign:"-0.1944em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"i"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05724em"}},"j"))))),"\u53d1\u751f\u53d8\u5316\u65f6\uff0c\u5373\u4ea7\u751f\u5e73\u79fb\uff0c\u6743\u91cd\u4e5f\u53d1\u751f\u5e73\u79fb\uff0c\u4e0d\u6ee1\u8db3\u5e73\u79fb\u4e0d\u53d8\u6027\u3002"),(0,m.kt)("p",{parentName:"li"},"\u4e3a\u4e86\u89e3\u51b3\u8fd9\u4e00\u95ee\u9898\uff0c\u5c06\u516c\u5f0f(2)\u53d8\u5f62\u4e3a\u5982\u4e0b"),(0,m.kt)("p",{parentName:"li"},"\u6b64\u65f6\u53c2\u6570\u6743\u503c\u5171\u4eab\uff0c\u6ee1\u8db3\u4e86\u5e73\u79fb\u4e0d\u53d8\u6027"),(0,m.kt)("div",{parentName:"li",className:"math math-display"},(0,m.kt)("span",{parentName:"div",className:"katex-display"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mtable",{parentName:"semantics",width:"100%"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mrow",{parentName:"mtd"},(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"y"),(0,m.kt)("mrow",{parentName:"msub"},(0,m.kt)("mi",{parentName:"mrow"},"i"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"j"))),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("munder",{parentName:"mrow"},(0,m.kt)("mo",{parentName:"munder"},"\u2211"),(0,m.kt)("mrow",{parentName:"munder"},(0,m.kt)("mi",{parentName:"mrow"},"a"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"b"))),(0,m.kt)("mrow",{parentName:"mrow"},(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"v"),(0,m.kt)("mrow",{parentName:"msub"},(0,m.kt)("mi",{parentName:"mrow"},"i"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"j"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"a"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"b"))),(0,m.kt)("mo",{parentName:"mrow"},"\u2217"),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"x"),(0,m.kt)("mrow",{parentName:"msub"},(0,m.kt)("mi",{parentName:"mrow"},"i"),(0,m.kt)("mo",{parentName:"mrow"},"+"),(0,m.kt)("mi",{parentName:"mrow"},"a"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"j"),(0,m.kt)("mo",{parentName:"mrow"},"+"),(0,m.kt)("mi",{parentName:"mrow"},"b")))),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("munder",{parentName:"mrow"},(0,m.kt)("mo",{parentName:"munder"},"\u2211"),(0,m.kt)("mrow",{parentName:"munder"},(0,m.kt)("mi",{parentName:"mrow"},"a"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"b"))),(0,m.kt)("mrow",{parentName:"mrow"},(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"v"),(0,m.kt)("mrow",{parentName:"msub"},(0,m.kt)("mi",{parentName:"mrow"},"a"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"b"))),(0,m.kt)("mo",{parentName:"mrow"},"\u2217"),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"x"),(0,m.kt)("mrow",{parentName:"msub"},(0,m.kt)("mi",{parentName:"mrow"},"i"),(0,m.kt)("mo",{parentName:"mrow"},"+"),(0,m.kt)("mi",{parentName:"mrow"},"a"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"j"),(0,m.kt)("mo",{parentName:"mrow"},"+"),(0,m.kt)("mi",{parentName:"mrow"},"b")))))),(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mtext",{parentName:"mtd"},"(3)")))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"y_{i,j}=\\sum_{a,b}{v_{i,j,a,b}*x_{i+a,j+b}}=\\sum_{a,b}{v_{a,b}*x_{i+a,j+b}} \\tag{3}")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.7167em",verticalAlign:"-0.2861em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"y"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3117em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0359em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"i"),(0,m.kt)("span",{parentName:"span",className:"mpunct mtight"},","),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.05724em"}},"j"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.2861em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"="),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"2.4882em",verticalAlign:"-1.4382em"}}),(0,m.kt)("span",{parentName:"span",className:"mop op-limits"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.05em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-1.8479em",marginLeft:"0em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.05em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"a"),(0,m.kt)("span",{parentName:"span",className:"mpunct mtight"},","),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"b")))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.05em"}}),(0,m.kt)("span",{parentName:"span"},(0,m.kt)("span",{parentName:"span",className:"mop op-symbol large-op"},"\u2211")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.4382em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"v"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3361em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0359em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"i"),(0,m.kt)("span",{parentName:"span",className:"mpunct mtight"},","),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.05724em"}},"j"),(0,m.kt)("span",{parentName:"span",className:"mpunct mtight"},","),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"a"),(0,m.kt)("span",{parentName:"span",className:"mpunct mtight"},","),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"b"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.2861em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"\u2217"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"x"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3361em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"i"),(0,m.kt)("span",{parentName:"span",className:"mbin mtight"},"+"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"a"),(0,m.kt)("span",{parentName:"span",className:"mpunct mtight"},","),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.05724em"}},"j"),(0,m.kt)("span",{parentName:"span",className:"mbin mtight"},"+"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"b"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.2861em"}},(0,m.kt)("span",{parentName:"span"}))))))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"="),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"2.4882em",verticalAlign:"-1.4382em"}}),(0,m.kt)("span",{parentName:"span",className:"mop op-limits"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.05em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-1.8479em",marginLeft:"0em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.05em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"a"),(0,m.kt)("span",{parentName:"span",className:"mpunct mtight"},","),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"b")))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.05em"}}),(0,m.kt)("span",{parentName:"span"},(0,m.kt)("span",{parentName:"span",className:"mop op-symbol large-op"},"\u2211")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.4382em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"v"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3361em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0359em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"a"),(0,m.kt)("span",{parentName:"span",className:"mpunct mtight"},","),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"b"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.2861em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"\u2217"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"x"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3361em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"i"),(0,m.kt)("span",{parentName:"span",className:"mbin mtight"},"+"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"a"),(0,m.kt)("span",{parentName:"span",className:"mpunct mtight"},","),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.05724em"}},"j"),(0,m.kt)("span",{parentName:"span",className:"mbin mtight"},"+"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"b"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.2861em"}},(0,m.kt)("span",{parentName:"span"})))))))),(0,m.kt)("span",{parentName:"span",className:"tag"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"2.4882em",verticalAlign:"-1.4382em"}}),(0,m.kt)("span",{parentName:"span",className:"mord text"},(0,m.kt)("span",{parentName:"span",className:"mord"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"3")),(0,m.kt)("span",{parentName:"span",className:"mord"},")")))))))),(0,m.kt)("li",{parentName:"ol"},(0,m.kt)("p",{parentName:"li"},"\u518d\u8003\u8651\u5c40\u90e8\u6027\uff0c\u5728\u8fdb\u884c\u7279\u5f81\u63d0\u53d6\u4ee5\u53ca\u6a21\u5f0f\u8bc6\u522b\u65f6\uff0c\u53ea\u9700\u5173\u6ce8\u5468\u56f4\u7684\u5c40\u90e8\u7279\u5f81\uff0c\u56e0\u6b64\u516c\u5f0f(3)\u4e2d\u7684",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"a"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"b")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"a,b")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.8889em",verticalAlign:"-0.1944em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"a"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"b"))))),"\u53ef\u7f29\u5c0f\u8303\u56f4\uff0c\u5e76\u4e0d\u7528\u6765\u5b9e\u73b0\u5168\u8fde\u63a5\uff0c\u6b64\u65f6",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"a"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"b")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"a,b")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.8889em",verticalAlign:"-0.1944em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"a"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"b"))))),"\u4ee3\u8868\u7740\u5377\u79ef\u6838\u7684\u611f\u53d7\u91ce\uff0c\u5373kernel size")),(0,m.kt)("li",{parentName:"ol"},(0,m.kt)("p",{parentName:"li"},"\u6b64\u65f6\u5b8c\u6210\u4e86\u5168\u8fde\u63a5\u5c42\u5230\u5377\u79ef\u5c42\u7684\u8f6c\u6362"))),(0,m.kt)("hr",null),(0,m.kt)("h2",{id:"\u4e09\u603b\u7ed3"},"\u4e09\u3001\u603b\u7ed3"),(0,m.kt)("ol",null,(0,m.kt)("li",{parentName:"ol"},"\u5bf9\u5168\u8fde\u63a5\u5c42\u4f7f\u7528\u5e73\u79fb\u4e0d\u53d8\u6027\u548c\u5c40\u90e8\u6027\u5f97\u5230\u5377\u79ef\u5c42\uff0c\u5377\u79ef\u662f\u7279\u6b8a\u7684\u5168\u8fde\u63a5")),(0,m.kt)("div",{className:"math math-display"},(0,m.kt)("span",{parentName:"div",className:"katex-display"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mtable",{parentName:"semantics",width:"100%"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mrow",{parentName:"mtd"},(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"y"),(0,m.kt)("mrow",{parentName:"msub"},(0,m.kt)("mi",{parentName:"mrow"},"i"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"j"))),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("munder",{parentName:"mrow"},(0,m.kt)("mo",{parentName:"munder"},"\u2211"),(0,m.kt)("mrow",{parentName:"munder"},(0,m.kt)("mi",{parentName:"mrow"},"a"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"b"))),(0,m.kt)("mrow",{parentName:"mrow"},(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"v"),(0,m.kt)("mrow",{parentName:"msub"},(0,m.kt)("mi",{parentName:"mrow"},"a"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"b"))),(0,m.kt)("mo",{parentName:"mrow"},"\u2217"),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"x"),(0,m.kt)("mrow",{parentName:"msub"},(0,m.kt)("mi",{parentName:"mrow"},"i"),(0,m.kt)("mo",{parentName:"mrow"},"+"),(0,m.kt)("mi",{parentName:"mrow"},"a"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"j"),(0,m.kt)("mo",{parentName:"mrow"},"+"),(0,m.kt)("mi",{parentName:"mrow"},"b")))),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("munderover",{parentName:"mrow"},(0,m.kt)("mo",{parentName:"munderover"},"\u2211"),(0,m.kt)("mrow",{parentName:"munderover"},(0,m.kt)("mi",{parentName:"mrow"},"a"),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("mo",{parentName:"mrow"},"\u2212"),(0,m.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"\u0394")),(0,m.kt)("mi",{parentName:"munderover",mathvariant:"normal"},"\u0394")),(0,m.kt)("munderover",{parentName:"mrow"},(0,m.kt)("mo",{parentName:"munderover"},"\u2211"),(0,m.kt)("mrow",{parentName:"munderover"},(0,m.kt)("mi",{parentName:"mrow"},"b"),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("mo",{parentName:"mrow"},"\u2212"),(0,m.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"\u0394")),(0,m.kt)("mi",{parentName:"munderover",mathvariant:"normal"},"\u0394")),(0,m.kt)("mrow",{parentName:"mrow"},(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"v"),(0,m.kt)("mrow",{parentName:"msub"},(0,m.kt)("mi",{parentName:"mrow"},"a"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"b"))),(0,m.kt)("mo",{parentName:"mrow"},"\u2217"),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"x"),(0,m.kt)("mrow",{parentName:"msub"},(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"i"),(0,m.kt)("mi",{parentName:"msub"},"a")),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"j"),(0,m.kt)("mo",{parentName:"mrow"},"+"),(0,m.kt)("mi",{parentName:"mrow"},"b")))))),(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mtext",{parentName:"mtd"},"(4)")))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"y_{i,j}=\\sum_{a,b}{v_{a,b}*x_{i+a,j+b}}=\\sum_{a=-\\Delta}^{\\Delta}\\sum_{b=-\\Delta}^{\\Delta}{v_{a,b}*x_{i_a,j+b}} \\tag{4}")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.7167em",verticalAlign:"-0.2861em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"y"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3117em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0359em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"i"),(0,m.kt)("span",{parentName:"span",className:"mpunct mtight"},","),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.05724em"}},"j"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.2861em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"="),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"2.4882em",verticalAlign:"-1.4382em"}}),(0,m.kt)("span",{parentName:"span",className:"mop op-limits"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.05em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-1.8479em",marginLeft:"0em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.05em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"a"),(0,m.kt)("span",{parentName:"span",className:"mpunct mtight"},","),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"b")))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.05em"}}),(0,m.kt)("span",{parentName:"span"},(0,m.kt)("span",{parentName:"span",className:"mop op-symbol large-op"},"\u2211")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.4382em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"v"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3361em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0359em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"a"),(0,m.kt)("span",{parentName:"span",className:"mpunct mtight"},","),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"b"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.2861em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"\u2217"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"x"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3361em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"i"),(0,m.kt)("span",{parentName:"span",className:"mbin mtight"},"+"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"a"),(0,m.kt)("span",{parentName:"span",className:"mpunct mtight"},","),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.05724em"}},"j"),(0,m.kt)("span",{parentName:"span",className:"mbin mtight"},"+"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"b"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.2861em"}},(0,m.kt)("span",{parentName:"span"}))))))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"="),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"3.1888em",verticalAlign:"-1.3604em"}}),(0,m.kt)("span",{parentName:"span",className:"mop op-limits"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.8283em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-1.8557em",marginLeft:"0em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.05em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"a"),(0,m.kt)("span",{parentName:"span",className:"mrel mtight"},"="),(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"\u2212"),(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"\u0394")))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.05em"}}),(0,m.kt)("span",{parentName:"span"},(0,m.kt)("span",{parentName:"span",className:"mop op-symbol large-op"},"\u2211"))),(0,m.kt)("span",{parentName:"span",style:{top:"-4.3em",marginLeft:"0em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.05em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"\u0394"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.3527em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mop op-limits"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.8283em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-1.8479em",marginLeft:"0em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.05em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"b"),(0,m.kt)("span",{parentName:"span",className:"mrel mtight"},"="),(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"\u2212"),(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"\u0394")))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.05em"}}),(0,m.kt)("span",{parentName:"span"},(0,m.kt)("span",{parentName:"span",className:"mop op-symbol large-op"},"\u2211"))),(0,m.kt)("span",{parentName:"span",style:{top:"-4.3em",marginLeft:"0em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.05em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"\u0394"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.3604em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"v"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3361em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0359em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"a"),(0,m.kt)("span",{parentName:"span",className:"mpunct mtight"},","),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"b"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.2861em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"\u2217"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"x"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3361em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"i"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.1645em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.357em",marginLeft:"0em",marginRight:"0.0714em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.5em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size3 size1 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"a")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.143em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mpunct mtight"},","),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.05724em"}},"j"),(0,m.kt)("span",{parentName:"span",className:"mbin mtight"},"+"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"b"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.2861em"}},(0,m.kt)("span",{parentName:"span"})))))))),(0,m.kt)("span",{parentName:"span",className:"tag"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"3.2666em",verticalAlign:"-1.4382em"}}),(0,m.kt)("span",{parentName:"span",className:"mord text"},(0,m.kt)("span",{parentName:"span",className:"mord"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"4")),(0,m.kt)("span",{parentName:"span",className:"mord"},")"))))))),(0,m.kt)("ol",{start:2},(0,m.kt)("li",{parentName:"ol"},"\u5377\u79ef\u5c42\u8f93\u51fa\u5f62\u72b6\u7684\u8ba1\u7b97",(0,m.kt)("div",{parentName:"li",className:"math math-display"},(0,m.kt)("span",{parentName:"div",className:"katex-display"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mtable",{parentName:"semantics",width:"100%"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mrow",{parentName:"mtd"},(0,m.kt)("mi",{parentName:"mrow"},"s"),(0,m.kt)("mi",{parentName:"mrow"},"h"),(0,m.kt)("mi",{parentName:"mrow"},"a"),(0,m.kt)("mi",{parentName:"mrow"},"p"),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"e"),(0,m.kt)("mrow",{parentName:"msub"},(0,m.kt)("mi",{parentName:"mrow"},"o"),(0,m.kt)("mi",{parentName:"mrow"},"u"),(0,m.kt)("mi",{parentName:"mrow"},"t"),(0,m.kt)("mi",{parentName:"mrow"},"p"),(0,m.kt)("mi",{parentName:"mrow"},"u"),(0,m.kt)("mi",{parentName:"mrow"},"t"))),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("mfrac",{parentName:"mrow"},(0,m.kt)("mrow",{parentName:"mfrac"},(0,m.kt)("mi",{parentName:"mrow"},"s"),(0,m.kt)("mi",{parentName:"mrow"},"h"),(0,m.kt)("mi",{parentName:"mrow"},"a"),(0,m.kt)("mi",{parentName:"mrow"},"p"),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"e"),(0,m.kt)("mrow",{parentName:"msub"},(0,m.kt)("mi",{parentName:"mrow"},"i"),(0,m.kt)("mi",{parentName:"mrow"},"n"),(0,m.kt)("mi",{parentName:"mrow"},"p"),(0,m.kt)("mi",{parentName:"mrow"},"u"),(0,m.kt)("mi",{parentName:"mrow"},"t"))),(0,m.kt)("mo",{parentName:"mrow"},"\u2212"),(0,m.kt)("mi",{parentName:"mrow"},"s"),(0,m.kt)("mi",{parentName:"mrow"},"i"),(0,m.kt)("mi",{parentName:"mrow"},"z"),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"e"),(0,m.kt)("mrow",{parentName:"msub"},(0,m.kt)("mi",{parentName:"mrow"},"k"),(0,m.kt)("mi",{parentName:"mrow"},"e"),(0,m.kt)("mi",{parentName:"mrow"},"r"),(0,m.kt)("mi",{parentName:"mrow"},"n"),(0,m.kt)("mi",{parentName:"mrow"},"e"),(0,m.kt)("mi",{parentName:"mrow"},"l"))),(0,m.kt)("mo",{parentName:"mrow"},"+"),(0,m.kt)("mn",{parentName:"mrow"},"2"),(0,m.kt)("mo",{parentName:"mrow"},"\u2217"),(0,m.kt)("mi",{parentName:"mrow"},"p"),(0,m.kt)("mi",{parentName:"mrow"},"a"),(0,m.kt)("mi",{parentName:"mrow"},"d"),(0,m.kt)("mi",{parentName:"mrow"},"d"),(0,m.kt)("mi",{parentName:"mrow"},"i"),(0,m.kt)("mi",{parentName:"mrow"},"n"),(0,m.kt)("mi",{parentName:"mrow"},"g")),(0,m.kt)("mrow",{parentName:"mfrac"},(0,m.kt)("mi",{parentName:"mrow"},"s"),(0,m.kt)("mi",{parentName:"mrow"},"t"),(0,m.kt)("mi",{parentName:"mrow"},"r"),(0,m.kt)("mi",{parentName:"mrow"},"i"),(0,m.kt)("mi",{parentName:"mrow"},"d"),(0,m.kt)("mi",{parentName:"mrow"},"e"))),(0,m.kt)("mo",{parentName:"mrow"},"+"),(0,m.kt)("mn",{parentName:"mrow"},"1"))),(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mtext",{parentName:"mtd"},"(5)")))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"shape_{output} = \\frac{shape_{input}-size_{kernel}+2*padding}{stride}+1 \\tag{5}")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.9805em",verticalAlign:"-0.2861em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"s"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"ha"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"p"),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"e"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.2806em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"o"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"u"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"tp"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"u"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"t"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.2861em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"="),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"2.0574em",verticalAlign:"-0.686em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mopen nulldelimiter"}),(0,m.kt)("span",{parentName:"span",className:"mfrac"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.3714em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.314em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"s"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"t"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02778em"}},"r"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"i"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"d"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"e"))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.23em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"frac-line",style:{borderBottomWidth:"0.04em"}})),(0,m.kt)("span",{parentName:"span",style:{top:"-3.677em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"s"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"ha"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"p"),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"e"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3117em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"in"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"p"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"u"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"t"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.2861em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"\u2212"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"s"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"i"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.04398em"}},"z"),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"e"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3361em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.03148em"}},"k"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.02778em"}},"er"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"n"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"e"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.01968em"}},"l"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"+"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"2"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"\u2217"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"p"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"a"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"dd"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"in"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"g")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.686em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"mclose nulldelimiter"})),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"+"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6444em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"1")),(0,m.kt)("span",{parentName:"span",className:"tag"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"2.0574em",verticalAlign:"-0.686em"}}),(0,m.kt)("span",{parentName:"span",className:"mord text"},(0,m.kt)("span",{parentName:"span",className:"mord"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"5")),(0,m.kt)("span",{parentName:"span",className:"mord"},")"))))))))))}o.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/360a53fd.f5b1ab9d.js b/assets/js/360a53fd.f5b1ab9d.js new file mode 100644 index 000000000..ca88a3a35 --- /dev/null +++ b/assets/js/360a53fd.f5b1ab9d.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunknpy_notebook=self.webpackChunknpy_notebook||[]).push([[7851],{3905:(e,t,n)=>{n.d(t,{Zo:()=>s,kt:()=>h});var r=n(7294);function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var c=r.createContext({}),i=function(e){var t=r.useContext(c),n=t;return e&&(n="function"==typeof e?e(t):p(p({},t),e)),n},s=function(e){var t=i(e.components);return r.createElement(c.Provider,{value:t},e.children)},u="mdxType",f={inlineCode:"code",wrapper:function(e){var t=e.children;return r.createElement(r.Fragment,{},t)}},m=r.forwardRef((function(e,t){var n=e.components,o=e.mdxType,a=e.originalType,c=e.parentName,s=l(e,["components","mdxType","originalType","parentName"]),u=i(n),m=o,h=u["".concat(c,".").concat(m)]||u[m]||f[m]||a;return n?r.createElement(h,p(p({ref:t},s),{},{components:n})):r.createElement(h,p({ref:t},s))}));function h(e,t){var n=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var a=n.length,p=new Array(a);p[0]=m;var l={};for(var c in t)hasOwnProperty.call(t,c)&&(l[c]=t[c]);l.originalType=e,l[u]="string"==typeof e?e:o,p[1]=l;for(var i=2;i{n.r(t),n.d(t,{assets:()=>c,contentTitle:()=>p,default:()=>f,frontMatter:()=>a,metadata:()=>l,toc:()=>i});var r=n(7462),o=(n(7294),n(3905));const a={},p="\u7ec8\u7aef\u4ee3\u7406",l={unversionedId:"Others/Linux/\u5b9e\u7528\u5de5\u5177/\u7ec8\u7aef\u4ee3\u7406",id:"Others/Linux/\u5b9e\u7528\u5de5\u5177/\u7ec8\u7aef\u4ee3\u7406",title:"\u7ec8\u7aef\u4ee3\u7406",description:"\u901a\u8fc7\u7f16\u5199\u811a\u672c\u51fd\u6570\u7684\u65b9\u5f0f\uff0c\u624b\u52a8\u5f00\u542f\u4ee3\u7406",source:"@site/docs/Others/2-Linux/\u5b9e\u7528\u5de5\u5177/\u7ec8\u7aef\u4ee3\u7406.md",sourceDirName:"Others/2-Linux/\u5b9e\u7528\u5de5\u5177",slug:"/Others/Linux/\u5b9e\u7528\u5de5\u5177/\u7ec8\u7aef\u4ee3\u7406",permalink:"/docs/Others/Linux/\u5b9e\u7528\u5de5\u5177/\u7ec8\u7aef\u4ee3\u7406",draft:!1,tags:[],version:"current",frontMatter:{},sidebar:"others",previous:{title:"Welcome",permalink:"/docs/Others/intro"},next:{title:"\u5982\u4f55\u8ba9\u4f60\u7684Kde Plasma\u770b\u8d77\u6765\u66f4\u50cfmacOS",permalink:"/docs/Others/Linux/\u5ba2\u5236\u5316/\u5982\u4f55\u8ba9\u4f60\u7684KDE\u770b\u8d77\u6765\u66f4\u50cfmacOS"}},c={},i=[{value:"\u4e00\u3001\u7f16\u5199\u811a\u672c",id:"\u4e00\u7f16\u5199\u811a\u672c",level:2},{value:"\u4e8c\u3001\u5173\u8054\u7ec8\u7aef\u914d\u7f6e\u6587\u4ef6",id:"\u4e8c\u5173\u8054\u7ec8\u7aef\u914d\u7f6e\u6587\u4ef6",level:2},{value:"\u4e09\u3001\u4f7f\u7528",id:"\u4e09\u4f7f\u7528",level:2}],s={toc:i},u="wrapper";function f(e){let{components:t,...n}=e;return(0,o.kt)(u,(0,r.Z)({},s,n,{components:t,mdxType:"MDXLayout"}),(0,o.kt)("h1",{id:"\u7ec8\u7aef\u4ee3\u7406"},"\u7ec8\u7aef\u4ee3\u7406"),(0,o.kt)("p",null,"\u901a\u8fc7\u7f16\u5199\u811a\u672c\u51fd\u6570\u7684\u65b9\u5f0f\uff0c\u624b\u52a8\u5f00\u542f\u4ee3\u7406"),(0,o.kt)("h2",{id:"\u4e00\u7f16\u5199\u811a\u672c"},"\u4e00\u3001\u7f16\u5199\u811a\u672c"),(0,o.kt)("p",null,"\u65b0\u5efa\u811a\u672c\u6587\u4ef6terminal_proxy.sh"),(0,o.kt)("pre",null,(0,o.kt)("code",{parentName:"pre",className:"language-bash"},'# \u5f00\u542f\u4ee3\u7406\nfunction proxy_on(){\n export ALL_PROXY=socks5://127.0.0.1:7890\n export http_proxy=http://127.0.0.1:7890\n export https_proxy=https://127.0.0.1:7890\n echo -e "\u5df2\u5f00\u542f\u4ee3\u7406"\n}\n\n# \u5173\u95ed\u4ee3\u7406\nfunction proxy_off(){\n unset ALL_PROXY\n unset http_proxy\n unset https_proxy\n echo -e "\u5df2\u5173\u95ed\u4ee3\u7406"\n}\n')),(0,o.kt)("h2",{id:"\u4e8c\u5173\u8054\u7ec8\u7aef\u914d\u7f6e\u6587\u4ef6"},"\u4e8c\u3001\u5173\u8054\u7ec8\u7aef\u914d\u7f6e\u6587\u4ef6"),(0,o.kt)("blockquote",null,(0,o.kt)("p",{parentName:"blockquote"},"fish\u7684\u914d\u7f6e\u6587\u4ef6\uff1a~/.config/fish/config.fish"),(0,o.kt)("p",{parentName:"blockquote"},"zsh\u7684\u914d\u7f6e\u6587\u4ef6\uff1a~/.zshrc"),(0,o.kt)("p",{parentName:"blockquote"},"bash\u7684\u914d\u7f6e\u6587\u4ef6\uff1a~/.bashrc")),(0,o.kt)("p",null,"\u5728\u914d\u7f6e\u6587\u4ef6\u672b\u5c3e\u6dfb\u52a0\u4ee5\u4e0b\u4ee3\u7801"),(0,o.kt)("pre",null,(0,o.kt)("code",{parentName:"pre",className:"language-bash"},"source /path/terminal_proxy.sh\n")),(0,o.kt)("h2",{id:"\u4e09\u4f7f\u7528"},"\u4e09\u3001\u4f7f\u7528"),(0,o.kt)("p",null,"\u5728\u7ec8\u7aef\u4e2d\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\u5373\u53ef\u5f00\u542f\u4ee3\u7406"),(0,o.kt)("pre",null,(0,o.kt)("code",{parentName:"pre",className:"language-bash"},"proxy_on\n")),(0,o.kt)("p",null,"\u5728\u7ec8\u7aef\u4e2d\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\u5373\u53ef\u5173\u95ed\u4ee3\u7406"),(0,o.kt)("pre",null,(0,o.kt)("code",{parentName:"pre",className:"language-bash"},"proxy_off\n")))}f.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/393be207.553b7e4e.js b/assets/js/393be207.553b7e4e.js new file mode 100644 index 000000000..ade735a1d --- /dev/null +++ b/assets/js/393be207.553b7e4e.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunknpy_notebook=self.webpackChunknpy_notebook||[]).push([[7414],{3905:(e,t,r)=>{r.d(t,{Zo:()=>u,kt:()=>d});var n=r(7294);function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function p(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var l=n.createContext({}),i=function(e){var t=n.useContext(l),r=t;return e&&(r="function"==typeof e?e(t):p(p({},t),e)),r},u=function(e){var t=i(e.components);return n.createElement(l.Provider,{value:t},e.children)},f="mdxType",m={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},s=n.forwardRef((function(e,t){var r=e.components,o=e.mdxType,a=e.originalType,l=e.parentName,u=c(e,["components","mdxType","originalType","parentName"]),f=i(r),s=o,d=f["".concat(l,".").concat(s)]||f[s]||m[s]||a;return r?n.createElement(d,p(p({ref:t},u),{},{components:r})):n.createElement(d,p({ref:t},u))}));function d(e,t){var r=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var a=r.length,p=new Array(a);p[0]=s;var c={};for(var l in t)hasOwnProperty.call(t,l)&&(c[l]=t[l]);c.originalType=e,c[f]="string"==typeof e?e:o,p[1]=c;for(var i=2;i{r.r(t),r.d(t,{contentTitle:()=>p,default:()=>f,frontMatter:()=>a,metadata:()=>c,toc:()=>l});var n=r(7462),o=(r(7294),r(3905));const a={title:"Markdown page example"},p="Markdown page example",c={type:"mdx",permalink:"/markdown-page",source:"@site/src/pages/markdown-page.md",title:"Markdown page example",description:"You don't need React to write simple standalone pages.",frontMatter:{title:"Markdown page example"}},l=[],i={toc:l},u="wrapper";function f(e){let{components:t,...r}=e;return(0,o.kt)(u,(0,n.Z)({},i,r,{components:t,mdxType:"MDXLayout"}),(0,o.kt)("h1",{id:"markdown-page-example"},"Markdown page example"),(0,o.kt)("p",null,"You don't need React to write simple standalone pages."))}f.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/3c9ce1b2.7ffe926d.js b/assets/js/3c9ce1b2.7ffe926d.js new file mode 100644 index 000000000..05b9c451b --- /dev/null +++ b/assets/js/3c9ce1b2.7ffe926d.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunknpy_notebook=self.webpackChunknpy_notebook||[]).push([[6674],{3905:(e,t,n)=>{n.d(t,{Zo:()=>s,kt:()=>d});var r=n(7294);function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var c=r.createContext({}),p=function(e){var t=r.useContext(c),n=t;return e&&(n="function"==typeof e?e(t):i(i({},t),e)),n},s=function(e){var t=p(e.components);return r.createElement(c.Provider,{value:t},e.children)},u="mdxType",m={inlineCode:"code",wrapper:function(e){var t=e.children;return r.createElement(r.Fragment,{},t)}},f=r.forwardRef((function(e,t){var n=e.components,o=e.mdxType,a=e.originalType,c=e.parentName,s=l(e,["components","mdxType","originalType","parentName"]),u=p(n),f=o,d=u["".concat(c,".").concat(f)]||u[f]||m[f]||a;return n?r.createElement(d,i(i({ref:t},s),{},{components:n})):r.createElement(d,i({ref:t},s))}));function d(e,t){var n=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var a=n.length,i=new Array(a);i[0]=f;var l={};for(var c in t)hasOwnProperty.call(t,c)&&(l[c]=t[c]);l.originalType=e,l[u]="string"==typeof e?e:o,i[1]=l;for(var p=2;p{n.r(t),n.d(t,{assets:()=>c,contentTitle:()=>i,default:()=>m,frontMatter:()=>a,metadata:()=>l,toc:()=>p});var r=n(7462),o=(n(7294),n(3905));const a={},i="\u53cd\u5e8f\u8f93\u51fa",l={unversionedId:"Algorithms/\u9898\u89e3/\u53cd\u5e8f\u8f93\u51fa",id:"Algorithms/\u9898\u89e3/\u53cd\u5e8f\u8f93\u51fa",title:"\u53cd\u5e8f\u8f93\u51fa",description:"\u8bbeN\u662f\u4e00\u4e2a\u56db\u4f4d\u6570\uff0c\u5b83\u76849\u500d\u6070\u597d\u662f\u5176\u53cd\u5e8f\u6570\uff08\u4f8b\u5982\uff1a1234\u7684\u53cd\u5e8f\u6570\u662f4321\uff09\uff0c\u6c42N\u7684\u503c",source:"@site/docs/Algorithms/4-\u9898\u89e3/\u53cd\u5e8f\u8f93\u51fa.md",sourceDirName:"Algorithms/4-\u9898\u89e3",slug:"/Algorithms/\u9898\u89e3/\u53cd\u5e8f\u8f93\u51fa",permalink:"/docs/Algorithms/\u9898\u89e3/\u53cd\u5e8f\u8f93\u51fa",draft:!1,tags:[],version:"current",frontMatter:{},sidebar:"algorithms",previous:{title:"\u4e00\u7ef4\u524d\u7f00\u548c\uff08\u5237\u51fa\u4e00\u9053\u5899\uff09",permalink:"/docs/Algorithms/\u9898\u89e3/\u4e00\u7ef4\u524d\u7f00\u548c\uff08\u5237\u51fa\u4e00\u9053\u5899\uff09"},next:{title:"\u6392\u5217\u7ec4\u5408\uff08\u6c4230\u7684\u500d\u6570\uff09",permalink:"/docs/Algorithms/\u9898\u89e3/\u6392\u5217\u7ec4\u5408\uff08\u6c4230\u7684\u500d\u6570\uff09"}},c={},p=[{value:"\u53c2\u8003\u4ee3\u7801",id:"\u53c2\u8003\u4ee3\u7801",level:2},{value:"\u9898\u89e3",id:"\u9898\u89e3",level:2}],s={toc:p},u="wrapper";function m(e){let{components:t,...n}=e;return(0,o.kt)(u,(0,r.Z)({},s,n,{components:t,mdxType:"MDXLayout"}),(0,o.kt)("h1",{id:"\u53cd\u5e8f\u8f93\u51fa"},"\u53cd\u5e8f\u8f93\u51fa"),(0,o.kt)("admonition",{type:"tip"},(0,o.kt)("p",{parentName:"admonition"},"\u8bbeN\u662f\u4e00\u4e2a\u56db\u4f4d\u6570\uff0c\u5b83\u76849\u500d\u6070\u597d\u662f\u5176\u53cd\u5e8f\u6570\uff08\u4f8b\u5982\uff1a1234\u7684\u53cd\u5e8f\u6570\u662f4321\uff09\uff0c\u6c42N\u7684\u503c")),(0,o.kt)("h2",{id:"\u53c2\u8003\u4ee3\u7801"},"\u53c2\u8003\u4ee3\u7801"),(0,o.kt)("pre",null,(0,o.kt)("code",{parentName:"pre",className:"language-c++"},"#include \n\nusing namespace std;\n\nint main() {\n for (int i = 1000; i <= 9999; i++) {\n int x = i * 9, y = 0;\n while (x > 0) {\n y = y * 10 + x % 10;\n x /= 10;\n }\n if (i == y) {\n cout << i << endl;\n }\n }\n return 0;\n}\n")),(0,o.kt)("h2",{id:"\u9898\u89e3"},"\u9898\u89e3"),(0,o.kt)("p",null,"\u53cd\u5e8f\u8f93\u51fa\u53ef\u4ee5\u5206\u4e3a\u4e24\u90e8\u5206\uff1a\u62c6\u5206\u4ee5\u53ca\u53cd\u5e8f\u62fc\u63a5"),(0,o.kt)("ul",null,(0,o.kt)("li",{parentName:"ul"},(0,o.kt)("p",{parentName:"li"},"\u62c6\u5206\uff1an\u4f4d\u6574\u6570\u6c42\u4f5910\u53ef\u4ee5\u5f97\u5230\u6700\u540e\u4e00\u4f4d\uff0c\u518d\u9664\u4ee510\u53ef\u4ee5\u5f97\u5230\u9664\u53bb\u4e0a\u8ff0\u6700\u540e\u4e00\u4f4d\u4e4b\u540e\u7684n-1\u4f4d\u6574\u6570\uff0c\u5faa\u73af\u5f97\u5230\u6bcf\u4e00\u4e2a\u6700\u540e\u4e00\u4f4d\uff0c\u5b8c\u6210\u62c6\u5206"),(0,o.kt)("pre",{parentName:"li"},(0,o.kt)("code",{parentName:"pre",className:"language-c++"},"while (x > 0) {\n y = y * 10 + x % 10; // \u62fc\u63a5\u4e0e\u62c6\u5206\n x /= 10;\n}\n"))),(0,o.kt)("li",{parentName:"ul"},(0,o.kt)("p",{parentName:"li"},"\u62fc\u63a5\uff1a\u5c06s\u4e2d\u7684\u6570\u5b57\u62fc\u63a5\u6210\u6574\u6570"),(0,o.kt)("pre",{parentName:"li"},(0,o.kt)("code",{parentName:"pre",className:"language-c++"},"int sum = 0;\nfor (int i = 0; i < s.size(); i++) {\n sum = sum * 10 + s[i];\n}\n")))))}m.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/446859ef.2360948d.js b/assets/js/446859ef.2360948d.js new file mode 100644 index 000000000..63484ed93 --- /dev/null +++ b/assets/js/446859ef.2360948d.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunknpy_notebook=self.webpackChunknpy_notebook||[]).push([[1459],{3905:(t,n,e)=>{e.d(n,{Zo:()=>u,kt:()=>g});var a=e(7294);function r(t,n,e){return n in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}function l(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);n&&(a=a.filter((function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable}))),e.push.apply(e,a)}return e}function i(t){for(var n=1;n=0||(r[e]=t[e]);return r}(t,n);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(t);for(a=0;a=0||Object.prototype.propertyIsEnumerable.call(t,e)&&(r[e]=t[e])}return r}var d=a.createContext({}),s=function(t){var n=a.useContext(d),e=n;return t&&(e="function"==typeof t?t(n):i(i({},n),t)),e},u=function(t){var n=s(t.components);return a.createElement(d.Provider,{value:n},t.children)},m="mdxType",o={inlineCode:"code",wrapper:function(t){var n=t.children;return a.createElement(a.Fragment,{},n)}},k=a.forwardRef((function(t,n){var e=t.components,r=t.mdxType,l=t.originalType,d=t.parentName,u=p(t,["components","mdxType","originalType","parentName"]),m=s(e),k=r,g=m["".concat(d,".").concat(k)]||m[k]||o[k]||l;return e?a.createElement(g,i(i({ref:n},u),{},{components:e})):a.createElement(g,i({ref:n},u))}));function g(t,n){var e=arguments,r=n&&n.mdxType;if("string"==typeof t||r){var l=e.length,i=new Array(l);i[0]=k;var p={};for(var d in n)hasOwnProperty.call(n,d)&&(p[d]=n[d]);p.originalType=t,p[m]="string"==typeof t?t:r,i[1]=p;for(var s=2;s{e.r(n),e.d(n,{assets:()=>d,contentTitle:()=>i,default:()=>o,frontMatter:()=>l,metadata:()=>p,toc:()=>s});var a=e(7462),r=(e(7294),e(3905));const l={},i="\u673a\u8bd5\u6280\u5de7\u4e0eSTL",p={unversionedId:"Algorithms/\u673a\u8bd5\u6280\u5de7\u4e0eSTL",id:"Algorithms/\u673a\u8bd5\u6280\u5de7\u4e0eSTL",title:"\u673a\u8bd5\u6280\u5de7\u4e0eSTL",description:"\u8f6c\u8f7d\u81eaSonder\u7684\u7b14\u8bb0\u672c",source:"@site/docs/Algorithms/3-\u673a\u8bd5\u6280\u5de7\u4e0eSTL.md",sourceDirName:"Algorithms",slug:"/Algorithms/\u673a\u8bd5\u6280\u5de7\u4e0eSTL",permalink:"/docs/Algorithms/\u673a\u8bd5\u6280\u5de7\u4e0eSTL",draft:!1,tags:[],version:"current",sidebarPosition:3,frontMatter:{},sidebar:"algorithms",previous:{title:"STL\u6a21\u677f",permalink:"/docs/Algorithms/STL\u6a21\u677f"},next:{title:"\u4e00\u7ef4\u524d\u7f00\u548c\uff08\u5237\u51fa\u4e00\u9053\u5899\uff09",permalink:"/docs/Algorithms/\u9898\u89e3/\u4e00\u7ef4\u524d\u7f00\u548c\uff08\u5237\u51fa\u4e00\u9053\u5899\uff09"}},d={},s=[{value:"vs2018 \u5feb\u6377\u952e",id:"vs2018-\u5feb\u6377\u952e",level:2},{value:"\u5934\u6587\u4ef6",id:"\u5934\u6587\u4ef6",level:2},{value:"\u6807\u51c6c\u5e93",id:"\u6807\u51c6c\u5e93",level:3},{value:"c++ STL",id:"c-stl",level:3},{value:"\u5e38\u7528\u5934",id:"\u5e38\u7528\u5934",level:3},{value:"\u5e38\u7528\u5b8f\u5b9a\u4e49",id:"\u5e38\u7528\u5b8f\u5b9a\u4e49",level:2},{value:"\u7ed3\u6784\u4f53",id:"\u7ed3\u6784\u4f53",level:2},{value:"\u5b9a\u4e49",id:"\u5b9a\u4e49",level:3},{value:"\u521d\u59cb\u5316",id:"\u521d\u59cb\u5316",level:3},{value:"\u65b9\u6cd5\u4e00\uff1a\u5b9a\u4e49\u65f6\u8d4b\u503c",id:"\u65b9\u6cd5\u4e00\u5b9a\u4e49\u65f6\u8d4b\u503c",level:4},{value:"\u65b9\u6cd5\u4e8c\uff1a\u5b9a\u4e49\u540e\u9010\u4e2a\u8d4b\u503c",id:"\u65b9\u6cd5\u4e8c\u5b9a\u4e49\u540e\u9010\u4e2a\u8d4b\u503c",level:4},{value:"\u65b9\u6cd5\u4e09\uff1a\u5b9a\u4e49\u65f6\u4e71\u5e8f\u8d4b\u503c\uff08C++\u98ce\u683c\uff09",id:"\u65b9\u6cd5\u4e09\u5b9a\u4e49\u65f6\u4e71\u5e8f\u8d4b\u503cc\u98ce\u683c",level:4},{value:"\u65b9\u6cd5\u56db\uff1a\u6784\u9020\u51fd\u6570",id:"\u65b9\u6cd5\u56db\u6784\u9020\u51fd\u6570",level:4},{value:"\u8fd0\u7b97\u7b26\u91cd\u8f7d",id:"\u8fd0\u7b97\u7b26\u91cd\u8f7d",level:3},{value:"c++new\u7684\u4f7f\u7528",id:"cnew\u7684\u4f7f\u7528",level:2},{value:"\u5e38\u89c4",id:"\u5e38\u89c4",level:3},{value:"\u52a8\u6001\u7533\u8bf7\u5217\u5927\u5c0f\u56fa\u5b9a\u7684\u4e8c\u7ef4\u6570\u7ec4",id:"\u52a8\u6001\u7533\u8bf7\u5217\u5927\u5c0f\u56fa\u5b9a\u7684\u4e8c\u7ef4\u6570\u7ec4",level:3},{value:"\u52a8\u6001\u7533\u8bf7\u5927\u5c0f\u4e0d\u56fa\u5b9a\u7684\u4e8c\u7ef4\u6570\u7ec4",id:"\u52a8\u6001\u7533\u8bf7\u5927\u5c0f\u4e0d\u56fa\u5b9a\u7684\u4e8c\u7ef4\u6570\u7ec4",level:3},{value:"\u5e38\u7528STL",id:"\u5e38\u7528stl",level:2},{value:"\u7b80\u8ff0",id:"\u7b80\u8ff0",level:3},{value:"STL\u5e95\u5c42\u8bf4\u660e",id:"stl\u5e95\u5c42\u8bf4\u660e",level:4},{value:"CCF \u7f16\u8bd1\u51fa\u9519\u539f\u56e0\uff1a \u4e0d\u5141\u8bb8C++STL\u5bb9\u5668\u5d4c\u5957\uff08\u9700\u8981\u6ee1\u8db3\u76f8\u5e94\u7684\u683c\u5f0f\uff09",id:"ccf-\u7f16\u8bd1\u51fa\u9519\u539f\u56e0-\u4e0d\u5141\u8bb8cstl\u5bb9\u5668\u5d4c\u5957\u9700\u8981\u6ee1\u8db3\u76f8\u5e94\u7684\u683c\u5f0f",level:4},{value:"algorithm",id:"algorithm",level:3},{value:"\u4e0d\u4fee\u6539\u5185\u5bb9\u7684\u5e8f\u5217\u64cd\u4f5c",id:"\u4e0d\u4fee\u6539\u5185\u5bb9\u7684\u5e8f\u5217\u64cd\u4f5c",level:4},{value:"\u4fee\u6539\u5185\u5bb9\u7684\u5e8f\u5217\u64cd\u4f5c",id:"\u4fee\u6539\u5185\u5bb9\u7684\u5e8f\u5217\u64cd\u4f5c",level:4},{value:"\u5212\u5206\u64cd\u4f5c",id:"\u5212\u5206\u64cd\u4f5c",level:4},{value:"\u6392\u5e8f\u64cd\u4f5c",id:"\u6392\u5e8f\u64cd\u4f5c",level:4},{value:"\u4e8c\u5206\u6cd5\u67e5\u627e\u64cd\u4f5c",id:"\u4e8c\u5206\u6cd5\u67e5\u627e\u64cd\u4f5c",level:4},{value:"\u96c6\u5408\u64cd\u4f5c",id:"\u96c6\u5408\u64cd\u4f5c",level:4},{value:"\u5806\u64cd\u4f5c",id:"\u5806\u64cd\u4f5c",level:4},{value:"\u6700\u5927/\u6700\u5c0f\u64cd\u4f5c",id:"\u6700\u5927\u6700\u5c0f\u64cd\u4f5c",level:4},{value:"vector",id:"vector",level:3},{value:"list",id:"list",level:3},{value:"string",id:"string",level:3},{value:"pair",id:"pair",level:3},{value:"map",id:"map",level:3},{value:"stack",id:"stack",level:3},{value:"queue",id:"queue",level:3},{value:"set",id:"set",level:3},{value:"multiset",id:"multiset",level:3},{value:"bitset",id:"bitset",level:3},{value:"\u56fe\u6a21\u677f",id:"\u56fe\u6a21\u677f",level:2},{value:"\u4e0d\u5e26\u51fa\u5165\u5ea6\u7684\u6700\u7b80\u6a21\u677f",id:"\u4e0d\u5e26\u51fa\u5165\u5ea6\u7684\u6700\u7b80\u6a21\u677f",level:3},{value:"\u5e26\u51fa\u5165\u5ea6\u7684 (2019\u63a8\u514d\u8bd5\u9898)",id:"\u5e26\u51fa\u5165\u5ea6\u7684-2019\u63a8\u514d\u8bd5\u9898",level:3},{value:"\u56fe\u7b97\u6cd5\uff1a\u627e\u51fau\u5230v\u7684\u6240\u6709\u8def\u5f84-\u90bb\u63a5\u8868",id:"\u56fe\u7b97\u6cd5\u627e\u51fau\u5230v\u7684\u6240\u6709\u8def\u5f84-\u90bb\u63a5\u8868",level:3},{value:"\u6811\u6a21\u677f",id:"\u6811\u6a21\u677f",level:2},{value:"\u6ce8\u91ca\u7248",id:"\u6ce8\u91ca\u7248",level:3},{value:"\u7b80\u5316\u7248\uff08Val As Index\uff0c\u82e5\u6570\u636e\u4e0d\u57281~N\u5185\uff0c\u5219\u53ef\u80fd\u8d8a\u754c\uff09",id:"\u7b80\u5316\u7248val-as-index\u82e5\u6570\u636e\u4e0d\u57281n\u5185\u5219\u53ef\u80fd\u8d8a\u754c",level:3},{value:"\u7b80\u5316\u7248\uff08Val Not As Index\uff0c\u53ef\u4ee5\u5b58\u4efb\u610f\u7684 Val\uff09",id:"\u7b80\u5316\u7248val-not-as-index\u53ef\u4ee5\u5b58\u4efb\u610f\u7684-val",level:3}],u={toc:s},m="wrapper";function o(t){let{components:n,...e}=t;return(0,r.kt)(m,(0,a.Z)({},u,e,{components:n,mdxType:"MDXLayout"}),(0,r.kt)("h1",{id:"\u673a\u8bd5\u6280\u5de7\u4e0estl"},"\u673a\u8bd5\u6280\u5de7\u4e0eSTL"),(0,r.kt)("admonition",{type:"important"},(0,r.kt)("p",{parentName:"admonition"},"\u8f6c\u8f7d\u81ea",(0,r.kt)("a",{parentName:"p",href:"https://space.keter.top/"},"Sonder\u7684\u7b14\u8bb0\u672c"))),(0,r.kt)("p",null,"[TOC]"),(0,r.kt)("h2",{id:"vs2018-\u5feb\u6377\u952e"},"vs2018 \u5feb\u6377\u952e"),(0,r.kt)("pre",null,(0,r.kt)("code",{parentName:"pre"},"CTRL + J \u5217\u51fa\u6210\u5458 \nCtrl+E,D \u683c\u5f0f\u5316\u5168\u90e8\u4ee3\u7801 \nCtrl+K,F \u683c\u5f0f\u5316\u9009\u4e2d\u7684\u4ee3\u7801 \nCTRL + SHIFT + E \u663e\u793a\u8d44\u6e90\u89c6\u56fe \nF12 \u8f6c\u5230\u5b9a\u4e49 \nCTRL + F12 \u8f6c\u5230\u58f0\u660e \nCTRL + ALT + J \u5bf9\u8c61\u6d4f\u89c8 \nCTRL + ALT + F1 \u5e2e\u52a9\u76ee\u5f55 \nCTRL + F1 \u52a8\u6001\u5e2e\u52a9 \nCTRL + K, CTRL + C \u6ce8\u91ca\u9009\u62e9\u7684\u4ee3\u7801 \nCTRL + K, CTRL + U \u53d6\u6d88\u5bf9\u9009\u62e9\u4ee3\u7801\u7684\u6ce8\u91ca \nCTRL + U \u8f6c\u5c0f\u5199 \nCTRL + SHIFT + U \u8f6c\u5927\u5199 \nF5 \u8fd0\u884c\u8c03\u8bd5 \nCTRL + F5 \u8fd0\u884c\u4e0d\u8c03\u8bd5 \nF10 \u8de8\u8fc7\u7a0b\u5e8f\u6267\u884c \nF11 \u5355\u6b65\u9010\u53e5\u6267\u884c \n")),(0,r.kt)("h2",{id:"\u5934\u6587\u4ef6"},"\u5934\u6587\u4ef6"),(0,r.kt)("h3",{id:"\u6807\u51c6c\u5e93"},"\u6807\u51c6c\u5e93"),(0,r.kt)("table",null,(0,r.kt)("thead",{parentName:"table"},(0,r.kt)("tr",{parentName:"thead"},(0,r.kt)("th",{parentName:"tr",align:null},"\u5934\u6587\u4ef6"),(0,r.kt)("th",{parentName:"tr",align:null},"\u8bf4\u660e"),(0,r.kt)("th",{parentName:"tr",align:null},"\u5934\u6587\u4ef6"),(0,r.kt)("th",{parentName:"tr",align:null},"\u8bf4\u660e"),(0,r.kt)("th",{parentName:"tr",align:null},"\u5934\u6587\u4ef6"),(0,r.kt)("th",{parentName:"tr",align:null},"\u8bf4\u660e"))),(0,r.kt)("tbody",{parentName:"table"},(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"assert.h"),(0,r.kt)("td",{parentName:"tr",align:null},"\u65ad\u8a00\u76f8\u5173"),(0,r.kt)("td",{parentName:"tr",align:null},"ctype.h"),(0,r.kt)("td",{parentName:"tr",align:null},"\u5b57\u7b26\u7c7b\u578b\u5224\u65ad"),(0,r.kt)("td",{parentName:"tr",align:null},"errno.h"),(0,r.kt)("td",{parentName:"tr",align:null},"\u6807\u51c6\u9519\u8bef\u673a\u5236")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"float.h"),(0,r.kt)("td",{parentName:"tr",align:null},"\u6d6e\u70b9\u9650\u5236"),(0,r.kt)("td",{parentName:"tr",align:null},"limits.h"),(0,r.kt)("td",{parentName:"tr",align:null},"\u6574\u5f62\u9650\u5236"),(0,r.kt)("td",{parentName:"tr",align:null},"locale.h"),(0,r.kt)("td",{parentName:"tr",align:null},"\u672c\u5730\u5316\u63a5\u53e3")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"math.h"),(0,r.kt)("td",{parentName:"tr",align:null},"\u6570\u5b66\u51fd\u6570"),(0,r.kt)("td",{parentName:"tr",align:null},"setjmp.h"),(0,r.kt)("td",{parentName:"tr",align:null},"\u975e\u672c\u5730\u8df3\u8f6c"),(0,r.kt)("td",{parentName:"tr",align:null},"signal.h"),(0,r.kt)("td",{parentName:"tr",align:null},"\u4fe1\u53f7\u76f8\u5173")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"stdarg.h"),(0,r.kt)("td",{parentName:"tr",align:null},"\u53ef\u53d8\u53c2\u6570\u5904\u7406"),(0,r.kt)("td",{parentName:"tr",align:null},"stddef.h"),(0,r.kt)("td",{parentName:"tr",align:null},"\u5b8f\u548c\u7c7b\u578b\u5b9a\u4e49"),(0,r.kt)("td",{parentName:"tr",align:null},"stdio.h"),(0,r.kt)("td",{parentName:"tr",align:null},"\u6807\u51c6I/O")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"stdlib.h"),(0,r.kt)("td",{parentName:"tr",align:null},"\u6807\u51c6\u5de5\u5177\u5e93"),(0,r.kt)("td",{parentName:"tr",align:null},"string.h"),(0,r.kt)("td",{parentName:"tr",align:null},"\u5b57\u7b26\u4e32\u548c\u5185\u5b58\u5904\u7406"),(0,r.kt)("td",{parentName:"tr",align:null},"time.h"),(0,r.kt)("td",{parentName:"tr",align:null},"\u65f6\u95f4\u76f8\u5173")))),(0,r.kt)("h3",{id:"c-stl"},"c++ STL"),(0,r.kt)("p",null,(0,r.kt)("strong",{parentName:"p"},"using namespace std;")),(0,r.kt)("table",null,(0,r.kt)("thead",{parentName:"table"},(0,r.kt)("tr",{parentName:"thead"},(0,r.kt)("th",{parentName:"tr",align:null},"\u5934\u6587\u4ef6"),(0,r.kt)("th",{parentName:"tr",align:null},"\u8bf4\u660e"),(0,r.kt)("th",{parentName:"tr",align:null},"\u5934\u6587\u4ef6"),(0,r.kt)("th",{parentName:"tr",align:null},"\u8bf4\u660e"),(0,r.kt)("th",{parentName:"tr",align:null},"\u5934\u6587\u4ef6"),(0,r.kt)("th",{parentName:"tr",align:null},"\u8bf4\u660e"))),(0,r.kt)("tbody",{parentName:"table"},(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"algorithm"),(0,r.kt)("td",{parentName:"tr",align:null},"\u901a\u7528\u7b97\u6cd5"),(0,r.kt)("td",{parentName:"tr",align:null},"deque"),(0,r.kt)("td",{parentName:"tr",align:null},"\u53cc\u7aef\u961f\u5217"),(0,r.kt)("td",{parentName:"tr",align:null},"vector"),(0,r.kt)("td",{parentName:"tr",align:null},"\u5411\u91cf")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"iterator"),(0,r.kt)("td",{parentName:"tr",align:null},"\u8fed\u4ee3\u5668"),(0,r.kt)("td",{parentName:"tr",align:null},"stack"),(0,r.kt)("td",{parentName:"tr",align:null},"\u6808"),(0,r.kt)("td",{parentName:"tr",align:null},"map"),(0,r.kt)("td",{parentName:"tr",align:null},"\u56fe\uff08\u952e\u503c\u5bf9\uff09")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"list"),(0,r.kt)("td",{parentName:"tr",align:null},"\u5217\u8868"),(0,r.kt)("td",{parentName:"tr",align:null},"string"),(0,r.kt)("td",{parentName:"tr",align:null},"\u5b57\u7b26\u4e32"),(0,r.kt)("td",{parentName:"tr",align:null},"set"),(0,r.kt)("td",{parentName:"tr",align:null},"\u96c6\u5408")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"queue"),(0,r.kt)("td",{parentName:"tr",align:null},"\u961f\u5217"),(0,r.kt)("td",{parentName:"tr",align:null},"bitset"),(0,r.kt)("td",{parentName:"tr",align:null},"bit\u7c7b"),(0,r.kt)("td",{parentName:"tr",align:null},"numeric"),(0,r.kt)("td",{parentName:"tr",align:null},"\u6570\u503c\u7b97\u6cd5")))),(0,r.kt)("h3",{id:"\u5e38\u7528\u5934"},"\u5e38\u7528\u5934"),(0,r.kt)("pre",null,(0,r.kt)("code",{parentName:"pre",className:"language-c++"},"#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include\nusing namespace std;\n")),(0,r.kt)("h2",{id:"\u5e38\u7528\u5b8f\u5b9a\u4e49"},"\u5e38\u7528\u5b8f\u5b9a\u4e49"),(0,r.kt)("pre",null,(0,r.kt)("code",{parentName:"pre",className:"language-c++"},"//\u6c42\u6700\u5927\u503c\u548c\u6700\u5c0f\u503c\n#define MAX(x,y) (((x)>(y)) ? (x) : (y))\n#define MIN(x,y) (((x) < (y)) ? (x) : (y))\n\n//\u53d6\u4f59\n#define mod(x) ((x)%MOD)\n\n//for\u5faa\u73af\n#define FOR(i,f_start,f_end) for(int i=f_start;i<=f_end;++i) \n\n//\u8fd4\u56de\u6570\u7ec4\u5143\u7d20\u7684\u4e2a\u6570\n#define ARR_SIZE(a) (sizeof((a))/sizeof((a[0])))\n\n//\u521d\u59cb\u5316\u6570\u7ec4\n#define MT(x,i) memset(x,i,sizeof(x))\n#define MEM(a,b) memset((a),(b),sizeof(a))\n\n//\u7b26\u53f7\u91cd\u5b9a\u4e49\n#define LL long long\n#define ull unsigned long long\n#define pii pair\n\n//\u5e38\u89c1\u5e38\u6570\n#define PI acos(-1.0)\n#define eps 1e-12\n#define INF 0x3f3f3f3f //int\u6700\u5927\u503c\nconst int INF_INT = 2147483647;\nconst ll INF_LL = 9223372036854775807LL;\nconst ull INF_ULL = 18446744073709551615Ull;\nconst ll P = 92540646808111039LL;\nconst ll maxn = 1e5 + 10, MOD = 1e9 + 7;\nconst int Move[4][2] = {-1,0,1,0,0,1,0,-1};\nconst int Move_[8][2] = {-1,-1,-1,0,-1,1,0,-1,0,1,1,-1,1,0,1,1};\n\n")),(0,r.kt)("h2",{id:"\u7ed3\u6784\u4f53"},"\u7ed3\u6784\u4f53"),(0,r.kt)("h3",{id:"\u5b9a\u4e49"},"\u5b9a\u4e49"),(0,r.kt)("pre",null,(0,r.kt)("code",{parentName:"pre",className:"language-c++"},"struct InitMember\n{\n int first\uff1b\n double second\uff1b\n char* third\uff1b\n float four;\n};\n")),(0,r.kt)("h3",{id:"\u521d\u59cb\u5316"},"\u521d\u59cb\u5316"),(0,r.kt)("h4",{id:"\u65b9\u6cd5\u4e00\u5b9a\u4e49\u65f6\u8d4b\u503c"},"\u65b9\u6cd5\u4e00\uff1a\u5b9a\u4e49\u65f6\u8d4b\u503c"),(0,r.kt)("pre",null,(0,r.kt)("code",{parentName:"pre",className:"language-c++"},'struct InitMember test = {-10,3.141590\uff0c"method one"\uff0c0.25}\uff1b\n')),(0,r.kt)("h4",{id:"\u65b9\u6cd5\u4e8c\u5b9a\u4e49\u540e\u9010\u4e2a\u8d4b\u503c"},"\u65b9\u6cd5\u4e8c\uff1a\u5b9a\u4e49\u540e\u9010\u4e2a\u8d4b\u503c"),(0,r.kt)("pre",null,(0,r.kt)("code",{parentName:"pre",className:"language-c++"},'struct InitMember test\uff1b\n\ntest.first = -10;\ntest.second = 3.141590;\ntest.third = "method two";\ntest.four = 0.25;\n')),(0,r.kt)("h4",{id:"\u65b9\u6cd5\u4e09\u5b9a\u4e49\u65f6\u4e71\u5e8f\u8d4b\u503cc\u98ce\u683c"},"\u65b9\u6cd5\u4e09\uff1a\u5b9a\u4e49\u65f6\u4e71\u5e8f\u8d4b\u503c\uff08C++\u98ce\u683c\uff09"),(0,r.kt)("pre",null,(0,r.kt)("code",{parentName:"pre",className:"language-c++"},'struct InitMember test = {\n second\uff1a3.141590,\n third\uff1a"method three",\n first\uff1a-10,\n four\uff1a0.25\n};\n')),(0,r.kt)("h4",{id:"\u65b9\u6cd5\u56db\u6784\u9020\u51fd\u6570"},"\u65b9\u6cd5\u56db\uff1a\u6784\u9020\u51fd\u6570"),(0,r.kt)("pre",null,(0,r.kt)("code",{parentName:"pre"},"//\u5b9a\u4e49\u56fe\u7684\u5b9a\u70b9\ntypedef struct Vertex {\n int id,inDegree,outDegree;\n vector connectors; //\u5b58\u50a8\u8282\u70b9\u7684\u540e\u7eed\u8fde\u63a5\u9876\u70b9\u7f16\u53f7\n Vertex() : id(-1),inDegree(0),outDegree(0) {}\n Vertex(int nid) : id(nid),inDegree(0),outDegree(0) {}\n} Vertex;\n \n//\u5b9a\u4e49Graph\u7684\u90bb\u63a5\u8868\u8868\u793a\ntypedef struct Graph {\n vector vertexs; //\u5b58\u50a8\u5b9a\u70b9\u4fe1\u606f\n int nVertexs; //\u8ba1\u6570\uff1a\u90bb\u63a5\u6570\n bool isDAG; //\u6807\u5fd7\uff1a\u662f\u6709\u5411\u56fe\u5417\n \n Graph(int n, bool isDAG) : nVertexs(n), isDAG(isDAG) { vertexs.resize(n); }\n Graph() : nVertexs(1), isDAG(1) { vertexs.resize(1); }\n //\u5411\u56fe\u4e2d\u6dfb\u52a0\u8fb9\n bool addEdge(int id1, int id2) {\n ...\n ...\n ...\n return true;\n }\n} Graph;\n\nGraph g(8, false);\n")),(0,r.kt)("h3",{id:"\u8fd0\u7b97\u7b26\u91cd\u8f7d"},"\u8fd0\u7b97\u7b26\u91cd\u8f7d"),(0,r.kt)("pre",null,(0,r.kt)("code",{parentName:"pre",className:"language-c++"},"typedef struct{int id;int h;} node;\nbool operator <(const node& a,const node & b){return (a.h)<(b.h);}\n")),(0,r.kt)("h2",{id:"cnew\u7684\u4f7f\u7528"},"c++new\u7684\u4f7f\u7528"),(0,r.kt)("h3",{id:"\u5e38\u89c4"},"\u5e38\u89c4"),(0,r.kt)("pre",null,(0,r.kt)("code",{parentName:"pre",className:"language-c++"},"int *x = new int; //\u5f00\u8f9f\u4e00\u4e2a\u5b58\u653e\u6574\u6570\u7684\u5b58\u50a8\u7a7a\u95f4\uff0c\u8fd4\u56de\u4e00\u4e2a\u6307\u5411\u8be5\u5b58\u50a8\u7a7a\u95f4\u7684\u5730\u5740(\u5373\u6307\u9488)\nint *a = new int(100); //\u5f00\u8f9f\u4e00\u4e2a\u5b58\u653e\u6574\u6570\u7684\u7a7a\u95f4\uff0c\u5e76\u6307\u5b9a\u8be5\u6574\u6570\u7684\u521d\u503c\u4e3a100\uff0c\u8fd4\u56de\u4e00\u4e2a\u6307\u5411\u8be5\u5b58\u50a8\u7a7a\u95f4\u7684\u5730\u5740\nchar *b = new char[10]; //\u5f00\u8f9f\u4e00\u4e2a\u5b58\u653e\u5b57\u7b26\u6570\u7ec4(\u5305\u62ec10\u4e2a\u5143\u7d20)\u7684\u7a7a\u95f4\uff0c\u8fd4\u56de\u9996\u5143\u7d20\u7684\u5730\u5740\nfloat *p=new float (3.14159);//\u5f00\u8f9f\u4e00\u4e2a\u5b58\u653e\u5355\u7cbe\u5ea6\u6570\u7684\u7a7a\u95f4\uff0c\u5e76\u6307\u5b9a\u8be5\u5b9e\u6570\u7684\u521d\u503c\u4e3a//3.14159\uff0c\u5c06\u8fd4\u56de\u7684\u8be5\u7a7a\u95f4\u7684\u5730\u5740\u8d4b\u7ed9\u6307\u9488\u53d8\u91cfp\n")),(0,r.kt)("h3",{id:"\u52a8\u6001\u7533\u8bf7\u5217\u5927\u5c0f\u56fa\u5b9a\u7684\u4e8c\u7ef4\u6570\u7ec4"},"\u52a8\u6001\u7533\u8bf7\u5217\u5927\u5c0f\u56fa\u5b9a\u7684\u4e8c\u7ef4\u6570\u7ec4"),(0,r.kt)("pre",null,(0,r.kt)("code",{parentName:"pre",className:"language-c++"},"//\u5217\u503c\u56fa\u5b9a\nconst int MAXCOL = 3;\ncin>>row;\n//\u7533\u8bf7\u4e00\u7ef4\u6570\u636e\u5e76\u5c06\u5176\u8f6c\u6210\u4e8c\u7ef4\u6570\u7ec4\u6307\u9488\nint *pp_arr = new int[nRow * MAXCOL];\nint (*p)[MAXCOL] = (int(*)[MAXCOL])pp_arr;\n//\u6b64\u65f6p[i][j]\u5c31\u53ef\u6b63\u5e38\u4f7f\u7528\n")),(0,r.kt)("h3",{id:"\u52a8\u6001\u7533\u8bf7\u5927\u5c0f\u4e0d\u56fa\u5b9a\u7684\u4e8c\u7ef4\u6570\u7ec4"},"\u52a8\u6001\u7533\u8bf7\u5927\u5c0f\u4e0d\u56fa\u5b9a\u7684\u4e8c\u7ef4\u6570\u7ec4"),(0,r.kt)("pre",null,(0,r.kt)("code",{parentName:"pre",className:"language-c++"},"\ncin>>row>>col;\nint **p = new int*[row];\nfor (int i = 0; i < row; i ++)\n{\n p[i] = new int[col];\n}\n")),(0,r.kt)("h2",{id:"\u5e38\u7528stl"},"\u5e38\u7528STL"),(0,r.kt)("blockquote",null,(0,r.kt)("p",{parentName:"blockquote"},"\u53c2\u8003\uff1a")),(0,r.kt)("p",null,(0,r.kt)("a",{parentName:"p",href:"https://blog.csdn.net/f_zyj/article/details/51594851"},"https://blog.csdn.net/f_zyj/article/details/51594851"),(0,r.kt)("br",{parentName:"p"}),"\n",(0,r.kt)("a",{parentName:"p",href:"https://download.csdn.net/download/f_zyj/9988653"},"https://download.csdn.net/download/f_zyj/9988653")),(0,r.kt)("h3",{id:"\u7b80\u8ff0"},"\u7b80\u8ff0"),(0,r.kt)("h4",{id:"stl\u5e95\u5c42\u8bf4\u660e"},"STL\u5e95\u5c42\u8bf4\u660e"),(0,r.kt)("p",null,"C++ STL \u7684\u5b9e\u73b0\uff1a"),(0,r.kt)("pre",null,(0,r.kt)("code",{parentName:"pre"},"1.vector \u5e95\u5c42\u6570\u636e\u7ed3\u6784\u4e3a\u6570\u7ec4 \uff0c\u652f\u6301\u5feb\u901f\u968f\u673a\u8bbf\u95ee\n\n2.list \u5e95\u5c42\u6570\u636e\u7ed3\u6784\u4e3a\u53cc\u5411\u94fe\u8868\uff0c\u652f\u6301\u5feb\u901f\u589e\u5220\n\n3.deque \u5e95\u5c42\u6570\u636e\u7ed3\u6784\u4e3a\u4e00\u4e2a\u4e2d\u592e\u63a7\u5236\u5668\u548c\u591a\u4e2a\u7f13\u51b2\u533a\uff0c\u8be6\u7ec6\u89c1STL\u6e90\u7801\u5256\u6790P146\uff0c\u652f\u6301\u9996\u5c3e\uff08\u4e2d\u95f4\u4e0d\u80fd\uff09\u5feb\u901f\u589e\u5220\uff0c\u4e5f\u652f\u6301\u968f\u673a\u8bbf\u95ee\ndeque\u662f\u4e00\u4e2a\u53cc\u7aef\u961f\u5217(double-ended queue)\uff0c\u4e5f\u662f\u5728\u5806\u4e2d\u4fdd\u5b58\u5185\u5bb9\u7684.\u5b83\u7684\u4fdd\u5b58\u5f62\u5f0f\u5982\u4e0b:\n[\u58061] --\x3e [\u58062] --\x3e[\u58063] --\x3e ...\n\u6bcf\u4e2a\u5806\u4fdd\u5b58\u597d\u51e0\u4e2a\u5143\u7d20,\u7136\u540e\u5806\u548c\u5806\u4e4b\u95f4\u6709\u6307\u9488\u6307\u5411,\u770b\u8d77\u6765\u50cf\u662flist\u548cvector\u7684\u7ed3\u5408\u54c1.\n\n4.stack \u5e95\u5c42\u4e00\u822c\u7528list\u6216deque\u5b9e\u73b0\uff0c\u5c01\u95ed\u5934\u90e8\u5373\u53ef\uff0c\u4e0d\u7528vector\u7684\u539f\u56e0\u5e94\u8be5\u662f\u5bb9\u91cf\u5927\u5c0f\u6709\u9650\u5236\uff0c\u6269\u5bb9\u8017\u65f6\n\n5.queue \u5e95\u5c42\u4e00\u822c\u7528list\u6216deque\u5b9e\u73b0\uff0c\u5c01\u95ed\u5934\u90e8\u5373\u53ef\uff0c\u4e0d\u7528vector\u7684\u539f\u56e0\u5e94\u8be5\u662f\u5bb9\u91cf\u5927\u5c0f\u6709\u9650\u5236\uff0c\u6269\u5bb9\u8017\u65f6\n\n\uff08stack\u548cqueue\u5176\u5b9e\u662f\u9002\u914d\u5668,\u800c\u4e0d\u53eb\u5bb9\u5668\uff0c\u56e0\u4e3a\u662f\u5bf9\u5bb9\u5668\u7684\u518d\u5c01\u88c5\uff09\n\n6.priority_queue \u7684\u5e95\u5c42\u6570\u636e\u7ed3\u6784\u4e00\u822c\u4e3avector\u4e3a\u5e95\u5c42\u5bb9\u5668\uff0c\u5806heap\u4e3a\u5904\u7406\u89c4\u5219\u6765\u7ba1\u7406\u5e95\u5c42\u5bb9\u5668\u5b9e\u73b0\n\n7.set \u5e95\u5c42\u6570\u636e\u7ed3\u6784\u4e3a\u7ea2\u9ed1\u6811\uff0c\u6709\u5e8f\uff0c\u4e0d\u91cd\u590d\n\n8.multiset \u5e95\u5c42\u6570\u636e\u7ed3\u6784\u4e3a\u7ea2\u9ed1\u6811\uff0c\u6709\u5e8f\uff0c\u53ef\u91cd\u590d \n\n9.map \u5e95\u5c42\u6570\u636e\u7ed3\u6784\u4e3a\u7ea2\u9ed1\u6811\uff0c\u6709\u5e8f\uff0c\u4e0d\u91cd\u590d\n\n10.multimap \u5e95\u5c42\u6570\u636e\u7ed3\u6784\u4e3a\u7ea2\u9ed1\u6811\uff0c\u6709\u5e8f\uff0c\u53ef\u91cd\u590d\n\n11.hash_set \u5e95\u5c42\u6570\u636e\u7ed3\u6784\u4e3ahash\u8868\uff0c\u65e0\u5e8f\uff0c\u4e0d\u91cd\u590d\n\n12.hash_multiset \u5e95\u5c42\u6570\u636e\u7ed3\u6784\u4e3ahash\u8868\uff0c\u65e0\u5e8f\uff0c\u53ef\u91cd\u590d \n\n13.hash_map \u5e95\u5c42\u6570\u636e\u7ed3\u6784\u4e3ahash\u8868\uff0c\u65e0\u5e8f\uff0c\u4e0d\u91cd\u590d\n\n14.hash_multimap \u5e95\u5c42\u6570\u636e\u7ed3\u6784\u4e3ahash\u8868\uff0c\u65e0\u5e8f\uff0c\u53ef\u91cd\u590d \n")),(0,r.kt)("h4",{id:"ccf-\u7f16\u8bd1\u51fa\u9519\u539f\u56e0-\u4e0d\u5141\u8bb8cstl\u5bb9\u5668\u5d4c\u5957\u9700\u8981\u6ee1\u8db3\u76f8\u5e94\u7684\u683c\u5f0f"},"CCF \u7f16\u8bd1\u51fa\u9519\u539f\u56e0\uff1a \u4e0d\u5141\u8bb8C++STL\u5bb9\u5668\u5d4c\u5957\uff08\u9700\u8981\u6ee1\u8db3\u76f8\u5e94\u7684\u683c\u5f0f\uff09"),(0,r.kt)("p",null,"\u5c31\u662f\u8981\u5728\u540e\u9762\u7684\u201c>\u201d\u4e4b\u95f4\uff0c\u5fc5\u987b\u5f97\u6709\u4e00\u4e2a\u7a7a\u683c\uff0c\u5982\u679c\u6709\u591a\u5c42\uff0c\u90a3\u6bcf\u5c42\u90fd\u5f97\u6709\u4e00\u4e2a\u7a7a\u683c\u3002"),(0,r.kt)("pre",null,(0,r.kt)("code",{parentName:"pre",className:"language-c++"},"map > user;\n")),(0,r.kt)("h3",{id:"algorithm"},"algorithm"),(0,r.kt)("p",null,(0,r.kt)("strong",{parentName:"p"},"\u5934\u6587\u4ef6\uff1algorithm")),(0,r.kt)("p",null,"\u51fd\u6570\u53c2\u6570\uff0c\u8fd4\u56de\u503c\u4ee5\u53ca\u5177\u4f53\u7684\u4f7f\u7528\u65b9\u6cd5\u8bf7\u81ea\u884c\u53bb\u5934\u6587\u4ef6\u627e\u5b9a\u4e49\uff01\uff01\uff01"),(0,r.kt)("h4",{id:"\u4e0d\u4fee\u6539\u5185\u5bb9\u7684\u5e8f\u5217\u64cd\u4f5c"},"\u4e0d\u4fee\u6539\u5185\u5bb9\u7684\u5e8f\u5217\u64cd\u4f5c"),(0,r.kt)("table",null,(0,r.kt)("thead",{parentName:"table"},(0,r.kt)("tr",{parentName:"thead"},(0,r.kt)("th",{parentName:"tr",align:null},"\u51fd\u6570"),(0,r.kt)("th",{parentName:"tr",align:null},"\u8bf4\u660e"))),(0,r.kt)("tbody",{parentName:"table"},(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"adjacent_find"),(0,r.kt)("td",{parentName:"tr",align:null},"\u67e5\u627e\u4e24\u4e2a\u76f8\u90bb\uff08Adjacent\uff09\u7684\u7b49\u4ef7\uff08Identical\uff09\u5143\u7d20")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"all_ofC++11"),(0,r.kt)("td",{parentName:"tr",align:null},"\u68c0\u6d4b\u5728\u7ed9\u5b9a\u8303\u56f4\u4e2d\u662f\u5426\u6240\u6709\u5143\u7d20\u90fd\u6ee1\u8db3\u7ed9\u5b9a\u7684\u6761\u4ef6")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"any_ofC++11"),(0,r.kt)("td",{parentName:"tr",align:null},"\u68c0\u6d4b\u5728\u7ed9\u5b9a\u8303\u56f4\u4e2d\u662f\u5426\u5b58\u5728\u5143\u7d20\u6ee1\u8db3\u7ed9\u5b9a\u6761\u4ef6")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"count"),(0,r.kt)("td",{parentName:"tr",align:null},"\u8fd4\u56de\u503c\u7b49\u4ef7\u4e8e\u7ed9\u5b9a\u503c\u7684\u5143\u7d20\u7684\u4e2a\u6570")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"count_if"),(0,r.kt)("td",{parentName:"tr",align:null},"\u8fd4\u56de\u503c\u6ee1\u8db3\u7ed9\u5b9a\u6761\u4ef6\u7684\u5143\u7d20\u7684\u4e2a\u6570")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"equal"),(0,r.kt)("td",{parentName:"tr",align:null},"\u8fd4\u56de\u4e24\u4e2a\u8303\u56f4\u662f\u5426\u76f8\u7b49")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"find"),(0,r.kt)("td",{parentName:"tr",align:null},"\u8fd4\u56de\u7b2c\u4e00\u4e2a\u503c\u7b49\u4ef7\u4e8e\u7ed9\u5b9a\u503c\u7684\u5143\u7d20")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"find_end"),(0,r.kt)("td",{parentName:"tr",align:null},"\u67e5\u627e\u8303\u56f4",(0,r.kt)("em",{parentName:"td"},"A"),"\u4e2d\u4e0e\u8303\u56f4",(0,r.kt)("em",{parentName:"td"},"B"),"\u7b49\u4ef7\u7684\u5b50\u8303\u56f4\u6700\u540e\u51fa\u73b0\u7684\u4f4d\u7f6e")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"find_first_of"),(0,r.kt)("td",{parentName:"tr",align:null},"\u67e5\u627e\u8303\u56f4",(0,r.kt)("em",{parentName:"td"},"A"),"\u4e2d\u7b2c\u4e00\u4e2a\u4e0e\u8303\u56f4",(0,r.kt)("em",{parentName:"td"},"B"),"\u4e2d\u4efb\u4e00\u5143\u7d20\u7b49\u4ef7\u7684\u5143\u7d20\u7684\u4f4d\u7f6e")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"find_if"),(0,r.kt)("td",{parentName:"tr",align:null},"\u8fd4\u56de\u7b2c\u4e00\u4e2a\u503c\u6ee1\u8db3\u7ed9\u5b9a\u6761\u4ef6\u7684\u5143\u7d20")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"find_if_notC++11"),(0,r.kt)("td",{parentName:"tr",align:null},"\u8fd4\u56de\u7b2c\u4e00\u4e2a\u503c\u4e0d\u6ee1\u8db3\u7ed9\u5b9a\u6761\u4ef6\u7684\u5143\u7d20")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"for_each"),(0,r.kt)("td",{parentName:"tr",align:null},"\u5bf9\u8303\u56f4\u4e2d\u7684\u6bcf\u4e2a\u5143\u7d20\u8c03\u7528\u6307\u5b9a\u51fd\u6570")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"mismatch"),(0,r.kt)("td",{parentName:"tr",align:null},"\u8fd4\u56de\u4e24\u4e2a\u8303\u56f4\u4e2d\u7b2c\u4e00\u4e2a\u5143\u7d20\u4e0d\u7b49\u4ef7\u7684\u4f4d\u7f6e")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"none_ofC++11"),(0,r.kt)("td",{parentName:"tr",align:null},"\u68c0\u6d4b\u5728\u7ed9\u5b9a\u8303\u56f4\u4e2d\u662f\u5426\u4e0d\u5b58\u5728\u5143\u7d20\u6ee1\u8db3\u7ed9\u5b9a\u7684\u6761\u4ef6")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"search"),(0,r.kt)("td",{parentName:"tr",align:null},"\u5728\u8303\u56f4",(0,r.kt)("em",{parentName:"td"},"A"),"\u4e2d\u67e5\u627e\u7b2c\u4e00\u4e2a\u4e0e\u8303\u56f4",(0,r.kt)("em",{parentName:"td"},"B"),"\u7b49\u4ef7\u7684\u5b50\u8303\u56f4\u7684\u4f4d\u7f6e")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"search_n"),(0,r.kt)("td",{parentName:"tr",align:null},"\u5728\u7ed9\u5b9a\u8303\u56f4\u4e2d\u67e5\u627e\u7b2c\u4e00\u4e2a\u8fde\u7eed",(0,r.kt)("em",{parentName:"td"},"n"),"\u4e2a\u5143\u7d20\u90fd\u7b49\u4ef7\u4e8e\u7ed9\u5b9a\u503c\u7684\u5b50\u8303\u56f4\u7684\u4f4d\u7f6e")))),(0,r.kt)("h4",{id:"\u4fee\u6539\u5185\u5bb9\u7684\u5e8f\u5217\u64cd\u4f5c"},"\u4fee\u6539\u5185\u5bb9\u7684\u5e8f\u5217\u64cd\u4f5c"),(0,r.kt)("table",null,(0,r.kt)("thead",{parentName:"table"},(0,r.kt)("tr",{parentName:"thead"},(0,r.kt)("th",{parentName:"tr",align:null},"\u51fd\u6570"),(0,r.kt)("th",{parentName:"tr",align:null},"\u8bf4\u660e"))),(0,r.kt)("tbody",{parentName:"table"},(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"copy"),(0,r.kt)("td",{parentName:"tr",align:null},"\u5c06\u4e00\u4e2a\u8303\u56f4\u4e2d\u7684\u5143\u7d20\u62f7\u8d1d\u5230\u65b0\u7684\u4f4d\u7f6e\u5904")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"copy_backward"),(0,r.kt)("td",{parentName:"tr",align:null},"\u5c06\u4e00\u4e2a\u8303\u56f4\u4e2d\u7684\u5143\u7d20\u6309\u9006\u5e8f\u62f7\u8d1d\u5230\u65b0\u7684\u4f4d\u7f6e\u5904")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"copy_ifC++11"),(0,r.kt)("td",{parentName:"tr",align:null},"\u5c06\u4e00\u4e2a\u8303\u56f4\u4e2d\u6ee1\u8db3\u7ed9\u5b9a\u6761\u4ef6\u7684\u5143\u7d20\u62f7\u8d1d\u5230\u65b0\u7684\u4f4d\u7f6e\u5904")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"copy_nC++11"),(0,r.kt)("td",{parentName:"tr",align:null},"\u62f7\u8d1d n \u4e2a\u5143\u7d20\u5230\u65b0\u7684\u4f4d\u7f6e\u5904")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"fill"),(0,r.kt)("td",{parentName:"tr",align:null},"\u5c06\u4e00\u4e2a\u8303\u56f4\u7684\u5143\u7d20\u8d4b\u503c\u4e3a\u7ed9\u5b9a\u503c")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"fill_n"),(0,r.kt)("td",{parentName:"tr",align:null},"\u5c06\u67d0\u4e2a\u4f4d\u7f6e\u5f00\u59cb\u7684 n \u4e2a\u5143\u7d20\u8d4b\u503c\u4e3a\u7ed9\u5b9a\u503c")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"generate"),(0,r.kt)("td",{parentName:"tr",align:null},"\u5c06\u4e00\u4e2a\u51fd\u6570\u7684\u6267\u884c\u7ed3\u679c\u4fdd\u5b58\u5230\u6307\u5b9a\u8303\u56f4\u7684\u5143\u7d20\u4e2d\uff0c\u7528\u4e8e\u6279\u91cf\u8d4b\u503c\u8303\u56f4\u4e2d\u7684\u5143\u7d20")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"generate_n"),(0,r.kt)("td",{parentName:"tr",align:null},"\u5c06\u4e00\u4e2a\u51fd\u6570\u7684\u6267\u884c\u7ed3\u679c\u4fdd\u5b58\u5230\u6307\u5b9a\u4f4d\u7f6e\u5f00\u59cb\u7684 n \u4e2a\u5143\u7d20\u4e2d")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"iter_swap"),(0,r.kt)("td",{parentName:"tr",align:null},"\u4ea4\u6362\u4e24\u4e2a\u8fed\u4ee3\u5668\uff08Iterator\uff09\u6307\u5411\u7684\u5143\u7d20")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"moveC++11"),(0,r.kt)("td",{parentName:"tr",align:null},"\u5c06\u4e00\u4e2a\u8303\u56f4\u4e2d\u7684\u5143\u7d20\u79fb\u52a8\u5230\u65b0\u7684\u4f4d\u7f6e\u5904")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"move_backwardC++11"),(0,r.kt)("td",{parentName:"tr",align:null},"\u5c06\u4e00\u4e2a\u8303\u56f4\u4e2d\u7684\u5143\u7d20\u6309\u9006\u5e8f\u79fb\u52a8\u5230\u65b0\u7684\u4f4d\u7f6e\u5904")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"random_shuffle"),(0,r.kt)("td",{parentName:"tr",align:null},"\u968f\u673a\u6253\u4e71\u6307\u5b9a\u8303\u56f4\u4e2d\u7684\u5143\u7d20\u7684\u4f4d\u7f6e")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"remove"),(0,r.kt)("td",{parentName:"tr",align:null},"\u5c06\u4e00\u4e2a\u8303\u56f4\u4e2d\u503c\u7b49\u4ef7\u4e8e\u7ed9\u5b9a\u503c\u7684\u5143\u7d20\u5220\u9664")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"remove_if"),(0,r.kt)("td",{parentName:"tr",align:null},"\u5c06\u4e00\u4e2a\u8303\u56f4\u4e2d\u503c\u6ee1\u8db3\u7ed9\u5b9a\u6761\u4ef6\u7684\u5143\u7d20\u5220\u9664")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"remove_copy"),(0,r.kt)("td",{parentName:"tr",align:null},"\u62f7\u8d1d\u4e00\u4e2a\u8303\u56f4\u7684\u5143\u7d20\uff0c\u5c06\u5176\u4e2d\u503c\u7b49\u4ef7\u4e8e\u7ed9\u5b9a\u503c\u7684\u5143\u7d20\u5220\u9664")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"remove_copy_if"),(0,r.kt)("td",{parentName:"tr",align:null},"\u62f7\u8d1d\u4e00\u4e2a\u8303\u56f4\u7684\u5143\u7d20\uff0c\u5c06\u5176\u4e2d\u503c\u6ee1\u8db3\u7ed9\u5b9a\u6761\u4ef6\u7684\u5143\u7d20\u5220\u9664")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"replace"),(0,r.kt)("td",{parentName:"tr",align:null},"\u5c06\u4e00\u4e2a\u8303\u56f4\u4e2d\u503c\u7b49\u4ef7\u4e8e\u7ed9\u5b9a\u503c\u7684\u5143\u7d20\u8d4b\u503c\u4e3a\u65b0\u7684\u503c")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"replace_copy"),(0,r.kt)("td",{parentName:"tr",align:null},"\u62f7\u8d1d\u4e00\u4e2a\u8303\u56f4\u7684\u5143\u7d20\uff0c\u5c06\u5176\u4e2d\u503c\u7b49\u4ef7\u4e8e\u7ed9\u5b9a\u503c\u7684\u5143\u7d20\u8d4b\u503c\u4e3a\u65b0\u7684\u503c")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"replace_copy_if"),(0,r.kt)("td",{parentName:"tr",align:null},"\u62f7\u8d1d\u4e00\u4e2a\u8303\u56f4\u7684\u5143\u7d20\uff0c\u5c06\u5176\u4e2d\u503c\u6ee1\u8db3\u7ed9\u5b9a\u6761\u4ef6\u7684\u5143\u7d20\u8d4b\u503c\u4e3a\u65b0\u7684\u503c")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"replace_if"),(0,r.kt)("td",{parentName:"tr",align:null},"\u5c06\u4e00\u4e2a\u8303\u56f4\u4e2d\u503c\u6ee1\u8db3\u7ed9\u5b9a\u6761\u4ef6\u7684\u5143\u7d20\u8d4b\u503c\u4e3a\u65b0\u7684\u503c")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"reverse"),(0,r.kt)("td",{parentName:"tr",align:null},"\u53cd\u8f6c\u6392\u5e8f\u6307\u5b9a\u8303\u56f4\u4e2d\u7684\u5143\u7d20")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"reverse_copy"),(0,r.kt)("td",{parentName:"tr",align:null},"\u62f7\u8d1d\u6307\u5b9a\u8303\u56f4\u7684\u53cd\u8f6c\u6392\u5e8f\u7ed3\u679c")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"rotate"),(0,r.kt)("td",{parentName:"tr",align:null},"\u5faa\u73af\u79fb\u52a8\u6307\u5b9a\u8303\u56f4\u4e2d\u7684\u5143\u7d20")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"rotate_copy"),(0,r.kt)("td",{parentName:"tr",align:null},"\u62f7\u8d1d\u6307\u5b9a\u8303\u56f4\u7684\u5faa\u73af\u79fb\u52a8\u7ed3\u679c")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"shuffleC++11"),(0,r.kt)("td",{parentName:"tr",align:null},"\u7528\u6307\u5b9a\u7684\u968f\u673a\u6570\u5f15\u64ce\u968f\u673a\u6253\u4e71\u6307\u5b9a\u8303\u56f4\u4e2d\u7684\u5143\u7d20\u7684\u4f4d\u7f6e")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"swap"),(0,r.kt)("td",{parentName:"tr",align:null},"\u4ea4\u6362\u4e24\u4e2a\u5bf9\u8c61\u7684\u503c")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"swap_ranges"),(0,r.kt)("td",{parentName:"tr",align:null},"\u4ea4\u6362\u4e24\u4e2a\u8303\u56f4\u7684\u5143\u7d20")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"transform"),(0,r.kt)("td",{parentName:"tr",align:null},"\u5bf9\u6307\u5b9a\u8303\u56f4\u4e2d\u7684\u6bcf\u4e2a\u5143\u7d20\u8c03\u7528\u67d0\u4e2a\u51fd\u6570\u4ee5\u6539\u53d8\u5143\u7d20\u7684\u503c")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"unique"),(0,r.kt)("td",{parentName:"tr",align:null},"\u5220\u9664\u6307\u5b9a\u8303\u56f4\u4e2d\u7684\u6240\u6709\u8fde\u7eed\u91cd\u590d\u5143\u7d20\uff0c\u4ec5\u4ec5\u7559\u4e0b\u6bcf\u7ec4\u7b49\u503c\u5143\u7d20\u4e2d\u7684\u7b2c\u4e00\u4e2a\u5143\u7d20\u3002")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"unique_copy"),(0,r.kt)("td",{parentName:"tr",align:null},"\u62f7\u8d1d\u6307\u5b9a\u8303\u56f4\u7684\u552f\u4e00\u5316\uff08\u53c2\u8003\u4e0a\u8ff0\u7684 unique\uff09\u7ed3\u679c")))),(0,r.kt)("h4",{id:"\u5212\u5206\u64cd\u4f5c"},"\u5212\u5206\u64cd\u4f5c"),(0,r.kt)("table",null,(0,r.kt)("thead",{parentName:"table"},(0,r.kt)("tr",{parentName:"thead"},(0,r.kt)("th",{parentName:"tr",align:null},"\u51fd\u6570"),(0,r.kt)("th",{parentName:"tr",align:null},"\u8bf4\u660e"))),(0,r.kt)("tbody",{parentName:"table"},(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"is_partitionedC++11"),(0,r.kt)("td",{parentName:"tr",align:null},"\u68c0\u6d4b\u67d0\u4e2a\u8303\u56f4\u662f\u5426\u6309\u6307\u5b9a\u8c13\u8bcd\uff08Predicate\uff09\u5212\u5206\u8fc7")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"partition"),(0,r.kt)("td",{parentName:"tr",align:null},"\u5c06\u67d0\u4e2a\u8303\u56f4\u5212\u5206\u4e3a\u4e24\u7ec4")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"partition_copyC++11"),(0,r.kt)("td",{parentName:"tr",align:null},"\u62f7\u8d1d\u6307\u5b9a\u8303\u56f4\u7684\u5212\u5206\u7ed3\u679c")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"partition_pointC++11"),(0,r.kt)("td",{parentName:"tr",align:null},"\u8fd4\u56de\u88ab\u5212\u5206\u8303\u56f4\u7684\u5212\u5206\u70b9")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"stable_partition"),(0,r.kt)("td",{parentName:"tr",align:null},"\u7a33\u5b9a\u5212\u5206\uff0c\u4e24\u7ec4\u5143\u7d20\u5404\u7ef4\u6301\u76f8\u5bf9\u987a\u5e8f")))),(0,r.kt)("h4",{id:"\u6392\u5e8f\u64cd\u4f5c"},"\u6392\u5e8f\u64cd\u4f5c"),(0,r.kt)("table",null,(0,r.kt)("thead",{parentName:"table"},(0,r.kt)("tr",{parentName:"thead"},(0,r.kt)("th",{parentName:"tr",align:null},"\u51fd\u6570"),(0,r.kt)("th",{parentName:"tr",align:null},"\u8bf4\u660e"))),(0,r.kt)("tbody",{parentName:"table"},(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"is_sortedC++11"),(0,r.kt)("td",{parentName:"tr",align:null},"\u68c0\u6d4b\u6307\u5b9a\u8303\u56f4\u662f\u5426\u5df2\u6392\u5e8f")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"is_sorted_untilC++11"),(0,r.kt)("td",{parentName:"tr",align:null},"\u8fd4\u56de\u6700\u5927\u5df2\u6392\u5e8f\u5b50\u8303\u56f4")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"nth_element \u90e8\u4efd\u6392\u5e8f\u6307\u5b9a\u8303\u56f4\u4e2d\u7684\u5143\u7d20\uff0c\u4f7f\u5f97\u8303\u56f4\u6309\u7ed9\u5b9a\u4f4d\u7f6e\u5904\u7684\u5143\u7d20\u5212\u5206"),(0,r.kt)("td",{parentName:"tr",align:null})),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"partial_sort"),(0,r.kt)("td",{parentName:"tr",align:null},"\u90e8\u4efd\u6392\u5e8f")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"partial_sort_copy"),(0,r.kt)("td",{parentName:"tr",align:null},"\u62f7\u8d1d\u90e8\u5206\u6392\u5e8f\u7684\u7ed3\u679c")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"sort"),(0,r.kt)("td",{parentName:"tr",align:null},"\u6392\u5e8f")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"stable_sort"),(0,r.kt)("td",{parentName:"tr",align:null},"\u7a33\u5b9a\u6392\u5e8f")))),(0,r.kt)("h4",{id:"\u4e8c\u5206\u6cd5\u67e5\u627e\u64cd\u4f5c"},"\u4e8c\u5206\u6cd5\u67e5\u627e\u64cd\u4f5c"),(0,r.kt)("table",null,(0,r.kt)("thead",{parentName:"table"},(0,r.kt)("tr",{parentName:"thead"},(0,r.kt)("th",{parentName:"tr",align:null},"\u51fd\u6570"),(0,r.kt)("th",{parentName:"tr",align:null},"\u8bf4\u660e"))),(0,r.kt)("tbody",{parentName:"table"},(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"binary_search"),(0,r.kt)("td",{parentName:"tr",align:null},"\u5224\u65ad\u8303\u56f4\u4e2d\u662f\u5426\u5b58\u5728\u503c\u7b49\u4ef7\u4e8e\u7ed9\u5b9a\u503c\u7684\u5143\u7d20")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"equal_range"),(0,r.kt)("td",{parentName:"tr",align:null},"\u8fd4\u56de\u8303\u56f4\u4e2d\u503c\u7b49\u4e8e\u7ed9\u5b9a\u503c\u7684\u5143\u7d20\u7ec4\u6210\u7684\u5b50\u8303\u56f4")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"lower_bound"),(0,r.kt)("td",{parentName:"tr",align:null},"\u8fd4\u56de\u6307\u5411\u8303\u56f4\u4e2d\u7b2c\u4e00\u4e2a\u503c\u5927\u4e8e\u6216\u7b49\u4e8e\u7ed9\u5b9a\u503c\u7684\u5143\u7d20\u7684\u8fed\u4ee3\u5668")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"upper_bound"),(0,r.kt)("td",{parentName:"tr",align:null},"\u8fd4\u56de\u6307\u5411\u8303\u56f4\u4e2d\u7b2c\u4e00\u4e2a\u503c\u5927\u4e8e\u7ed9\u5b9a\u503c\u7684\u5143\u7d20\u7684\u8fed\u4ee3\u5668")))),(0,r.kt)("h4",{id:"\u96c6\u5408\u64cd\u4f5c"},"\u96c6\u5408\u64cd\u4f5c"),(0,r.kt)("table",null,(0,r.kt)("thead",{parentName:"table"},(0,r.kt)("tr",{parentName:"thead"},(0,r.kt)("th",{parentName:"tr",align:null},"\u51fd\u6570"),(0,r.kt)("th",{parentName:"tr",align:null},"\u8bf4\u660e"))),(0,r.kt)("tbody",{parentName:"table"},(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"includes"),(0,r.kt)("td",{parentName:"tr",align:null},"\u5224\u65ad\u4e00\u4e2a\u96c6\u5408\u662f\u5426\u662f\u53e6\u4e00\u4e2a\u96c6\u5408\u7684\u5b50\u96c6")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"inplace_merge"),(0,r.kt)("td",{parentName:"tr",align:null},"\u5c31\u7eea\u5408\u5e76")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"merge \u5408\u5e76"),(0,r.kt)("td",{parentName:"tr",align:null})),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"set_difference"),(0,r.kt)("td",{parentName:"tr",align:null},"\u83b7\u5f97\u4e24\u4e2a\u96c6\u5408\u7684\u5dee\u96c6")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"set_intersection"),(0,r.kt)("td",{parentName:"tr",align:null},"\u83b7\u5f97\u4e24\u4e2a\u96c6\u5408\u7684\u4ea4\u96c6")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"set_symmetric_difference"),(0,r.kt)("td",{parentName:"tr",align:null},"\u83b7\u5f97\u4e24\u4e2a\u96c6\u5408\u7684\u5bf9\u79f0\u5dee")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"set_union"),(0,r.kt)("td",{parentName:"tr",align:null},"\u83b7\u5f97\u4e24\u4e2a\u96c6\u5408\u7684\u5e76\u96c6")))),(0,r.kt)("h4",{id:"\u5806\u64cd\u4f5c"},"\u5806\u64cd\u4f5c"),(0,r.kt)("table",null,(0,r.kt)("thead",{parentName:"table"},(0,r.kt)("tr",{parentName:"thead"},(0,r.kt)("th",{parentName:"tr",align:null},"\u51fd\u6570"),(0,r.kt)("th",{parentName:"tr",align:null},"\u8bf4\u660e"))),(0,r.kt)("tbody",{parentName:"table"},(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"is_heap"),(0,r.kt)("td",{parentName:"tr",align:null},"\u68c0\u6d4b\u7ed9\u5b9a\u8303\u56f4\u662f\u5426\u6ee1\u8db3\u5806\u7ed3\u6784")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"is_heap_untilC++11"),(0,r.kt)("td",{parentName:"tr",align:null},"\u68c0\u6d4b\u7ed9\u5b9a\u8303\u56f4\u4e2d\u6ee1\u8db3\u5806\u7ed3\u6784\u7684\u6700\u5927\u5b50\u8303\u56f4")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"make_heap"),(0,r.kt)("td",{parentName:"tr",align:null},"\u7528\u7ed9\u5b9a\u8303\u56f4\u6784\u9020\u51fa\u4e00\u4e2a\u5806")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"pop_heap"),(0,r.kt)("td",{parentName:"tr",align:null},"\u4ece\u4e00\u4e2a\u5806\u4e2d\u5220\u9664\u6700\u5927\u7684\u5143\u7d20")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"push_heap"),(0,r.kt)("td",{parentName:"tr",align:null},"\u5411\u5806\u4e2d\u589e\u52a0\u4e00\u4e2a\u5143\u7d20")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"sort_heap"),(0,r.kt)("td",{parentName:"tr",align:null},"\u5c06\u6ee1\u8db3\u5806\u7ed3\u6784\u7684\u8303\u56f4\u6392\u5e8f")))),(0,r.kt)("h4",{id:"\u6700\u5927\u6700\u5c0f\u64cd\u4f5c"},"\u6700\u5927/\u6700\u5c0f\u64cd\u4f5c"),(0,r.kt)("table",null,(0,r.kt)("thead",{parentName:"table"},(0,r.kt)("tr",{parentName:"thead"},(0,r.kt)("th",{parentName:"tr",align:null},"\u51fd\u6570"),(0,r.kt)("th",{parentName:"tr",align:null},"\u8bf4\u660e"))),(0,r.kt)("tbody",{parentName:"table"},(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"is_permutationC++11"),(0,r.kt)("td",{parentName:"tr",align:null},"\u5224\u65ad\u4e00\u4e2a\u5e8f\u5217\u662f\u5426\u662f\u53e6\u4e00\u4e2a\u5e8f\u5217\u7684\u4e00\u79cd\u6392\u5e8f")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"lexicographical_compare"),(0,r.kt)("td",{parentName:"tr",align:null},"\u6bd4\u8f83\u4e24\u4e2a\u5e8f\u5217\u7684\u5b57\u5178\u5e8f")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"max"),(0,r.kt)("td",{parentName:"tr",align:null},"\u8fd4\u56de\u4e24\u4e2a\u5143\u7d20\u4e2d\u503c\u6700\u5927\u7684\u5143\u7d20")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"max_element"),(0,r.kt)("td",{parentName:"tr",align:null},"\u8fd4\u56de\u7ed9\u5b9a\u8303\u56f4\u4e2d\u503c\u6700\u5927\u7684\u5143\u7d20")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"min"),(0,r.kt)("td",{parentName:"tr",align:null},"\u8fd4\u56de\u4e24\u4e2a\u5143\u7d20\u4e2d\u503c\u6700\u5c0f\u7684\u5143\u7d20")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"min_element"),(0,r.kt)("td",{parentName:"tr",align:null},"\u8fd4\u56de\u7ed9\u5b9a\u8303\u56f4\u4e2d\u503c\u6700\u5c0f\u7684\u5143\u7d20")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"minmaxC++11"),(0,r.kt)("td",{parentName:"tr",align:null},"\u8fd4\u56de\u4e24\u4e2a\u5143\u7d20\u4e2d\u503c\u6700\u5927\u53ca\u6700\u5c0f\u7684\u5143\u7d20")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"minmax_elementC++11"),(0,r.kt)("td",{parentName:"tr",align:null},"\u8fd4\u56de\u7ed9\u5b9a\u8303\u56f4\u4e2d\u503c\u6700\u5927\u53ca\u6700\u5c0f\u7684\u5143\u7d20")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"next_permutation"),(0,r.kt)("td",{parentName:"tr",align:null},"\u8fd4\u56de\u7ed9\u5b9a\u8303\u56f4\u4e2d\u7684\u5143\u7d20\u7ec4\u6210\u7684\u4e0b\u4e00\u4e2a\u6309\u5b57\u5178\u5e8f\u7684\u6392\u5217")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"prev_permutation"),(0,r.kt)("td",{parentName:"tr",align:null},"\u8fd4\u56de\u7ed9\u5b9a\u8303\u56f4\u4e2d\u7684\u5143\u7d20\u7ec4\u6210\u7684\u4e0a\u4e00\u4e2a\u6309\u5b57\u5178\u5e8f\u7684\u6392\u5217")))),(0,r.kt)("h3",{id:"vector"},"vector"),(0,r.kt)("p",null,(0,r.kt)("strong",{parentName:"p"},"\u5934\u6587\u4ef6\uff1avector")),(0,r.kt)("p",null,"\u5728STL\u7684vector\u5934\u6587\u4ef6\u4e2d\u5b9a\u4e49\u4e86vector\uff08\u5411\u91cf\u5bb9\u5668\u6a21\u7248\u7c7b\uff09\uff0cvector\u5bb9\u5668\u4ee5\u8fde\u7eed\u6570\u7ec4\u7684\u65b9\u5f0f\u5b58\u50a8\u5143\u7d20\u5e8f\u5217\uff0c\u53ef\u4ee5\u5c06vector\u770b\u4f5c\u662f\u4ee5\u987a\u5e8f\u7ed3\u6784\u5b9e\u73b0\u7684\u7ebf\u6027\u8868\u3002\u5f53\u6211\u4eec\u5728\u7a0b\u5e8f\u4e2d\u9700\u8981\u4f7f\u7528\u52a8\u6001\u6570\u7ec4\u65f6\uff0cvector\u5c06\u4f1a\u662f\u7406\u60f3\u7684\u9009\u62e9\uff0cvector\u53ef\u4ee5\u5728\u4f7f\u7528\u8fc7\u7a0b\u4e2d\u52a8\u6001\u5730\u589e\u957f\u5b58\u50a8\u7a7a\u95f4\u3002\nvector\u6a21\u7248\u7c7b\u9700\u8981\u4e24\u4e2a\u6a21\u7248\u53c2\u6570\uff0c\u7b2c\u4e00\u4e2a\u53c2\u6570\u662f\u5b58\u50a8\u5143\u7d20\u7684\u6570\u636e\u7c7b\u578b\uff0c\u7b2c\u4e8c\u4e2a\u53c2\u6570\u662f\u5b58\u50a8\u5206\u914d\u5668\u7684\u7c7b\u578b\uff0c\u5176\u4e2d\u7b2c\u4e8c\u4e2a\u53c2\u6570\u662f\u53ef\u9009\u7684\uff0c\u5982\u679c\u4e0d\u7ed9\u51fa\u7b2c\u4e8c\u4e2a\u53c2\u6570\uff0c\u5c06\u4f7f\u7528\u9ed8\u8ba4\u7684\u5206\u914d\u5668"),(0,r.kt)("p",null,"\u4e0b\u9762\u7ed9\u51fa\u51e0\u4e2a\u5e38\u7528\u7684\u5b9a\u4e49vector\u5411\u91cf\u5bf9\u8c61\u7684\u65b9\u6cd5\u793a\u4f8b\uff1a"),(0,r.kt)("pre",null,(0,r.kt)("code",{parentName:"pre",className:"language-c++"},"\nvector s; \n// \u5b9a\u4e49\u4e00\u4e2a\u7a7a\u7684vector\u5bf9\u8c61\uff0c\u5b58\u50a8\u7684\u662fint\u7c7b\u578b\u7684\u5143\u7d20\nvector s(n); \n// \u5b9a\u4e49\u4e00\u4e2a\u542b\u6709n\u4e2aint\u5143\u7d20\u7684vector\u5bf9\u8c61\nvector s(first, last); \n// \u5b9a\u4e49\u4e00\u4e2avector\u5bf9\u8c61\uff0c\u5e76\u4ece\u7531\u8fed\u4ee3\u5668first\u548clast\u5b9a\u4e49\u7684\u5e8f\u5217[first, last)\u4e2d\u590d\u5236\u521d\u503c\n\n")),(0,r.kt)("p",null,"vector\u7684\u57fa\u672c\u64cd\u4f5c\uff1a"),(0,r.kt)("pre",null,(0,r.kt)("code",{parentName:"pre",className:"language-c++"},'\ns[i] // \u76f4\u63a5\u4ee5\u4e0b\u6807\u65b9\u5f0f\u8bbf\u95ee\u5bb9\u5668\u4e2d\u7684\u5143\u7d20\ns.front() // \u8fd4\u56de\u9996\u5143\u7d20\ns.back() // \u8fd4\u56de\u5c3e\u5143\u7d20\ns.push_back(x) // \u5411\u8868\u5c3e\u63d2\u5165\u5143\u7d20x\ns.size() // \u8fd4\u56de\u8868\u957f\ns.empty() // \u8868\u4e3a\u7a7a\u65f6\uff0c\u8fd4\u56de\u771f\uff0c\u5426\u5219\u8fd4\u56de\u5047\ns.pop_back() // \u5220\u9664\u8868\u5c3e\u5143\u7d20\ns.begin() // \u8fd4\u56de\u6307\u5411\u9996\u5143\u7d20\u7684\u968f\u673a\u5b58\u53d6\u8fed\u4ee3\u5668\ns.end() // \u8fd4\u56de\u6307\u5411\u5c3e\u5143\u7d20\u7684\u4e0b\u4e00\u4e2a\u4f4d\u7f6e\u7684\u968f\u673a\u5b58\u53d6\u8fed\u4ee3\u5668\ns.insert(it, val) // \u5411\u8fed\u4ee3\u5668it\u6307\u5411\u7684\u5143\u7d20\u524d\u63d2\u5165\u65b0\u5143\u7d20val\ns.insert(it, n, val)// \u5411\u8fed\u4ee3\u5668it\u6307\u5411\u7684\u5143\u7d20\u524d\u63d2\u5165n\u4e2a\u65b0\u5143\u7d20val\ns.insert(it, first, last) \n// \u5c06\u7531\u8fed\u4ee3\u5668first\u548clast\u6240\u6307\u5b9a\u7684\u5e8f\u5217[first, last)\u63d2\u5165\u5230\u8fed\u4ee3\u5668it\u6307\u5411\u7684\u5143\u7d20\u524d\u9762\ns.erase(it) // \u5220\u9664\u7531\u8fed\u4ee3\u5668it\u6240\u6307\u5411\u7684\u5143\u7d20\ns.erase(first, last)// \u5220\u9664\u7531\u8fed\u4ee3\u5668first\u548clast\u6240\u6307\u5b9a\u7684\u5e8f\u5217[first, last)\ns.reserve(n) // \u9884\u5206\u914d\u7f13\u51b2\u7a7a\u95f4\uff0c\u4f7f\u5b58\u50a8\u7a7a\u95f4\u81f3\u5c11\u53ef\u5bb9\u7eb3n\u4e2a\u5143\u7d20\ns.resize(n) // \u6539\u53d8\u5e8f\u5217\u957f\u5ea6\uff0c\u8d85\u51fa\u7684\u5143\u7d20\u5c06\u4f1a\u5168\u90e8\u88ab\u5220\u9664\uff0c\u5982\u679c\u5e8f\u5217\u9700\u8981\u6269\u5c55\uff08\u539f\u7a7a\u95f4\u5c0f\u4e8en\uff09\uff0c\u5143\u7d20\u9ed8\u8ba4\u503c\u5c06\u586b\u6ee1\u6269\u5c55\u51fa\u7684\u7a7a\u95f4\ns.resize(n, val) // \u6539\u53d8\u5e8f\u5217\u957f\u5ea6\uff0c\u8d85\u51fa\u7684\u5143\u7d20\u5c06\u4f1a\u5168\u90e8\u88ab\u5220\u9664\uff0c\u5982\u679c\u5e8f\u5217\u9700\u8981\u6269\u5c55\uff08\u539f\u7a7a\u95f4\u5c0f\u4e8en\uff09\uff0cval\u5c06\u586b\u6ee1\u6269\u5c55\u51fa\u7684\u7a7a\u95f4\ns.clear() // \u5220\u9664\u5bb9\u5668\u4e2d\u7684\u6240\u6709\u5143\u7d20\ns.swap(v) // \u5c06s\u4e0e\u53e6\u4e00\u4e2avector\u5bf9\u8c61\u8fdb\u884c\u4ea4\u6362\ns.assign(first, last)\n// \u5c06\u5e8f\u5217\u66ff\u6362\u6210\u7531\u8fed\u4ee3\u5668first\u548clast\u6240\u6307\u5b9a\u7684\u5e8f\u5217[first, last)\uff0c[first, last)\u4e0d\u80fd\u662f\u539f\u5e8f\u5217\u4e2d\u7684\u4e00\u90e8\u5206\n\n// \u8981\u6ce8\u610f\u7684\u662f\uff0cresize\u64cd\u4f5c\u548cclear\u64cd\u4f5c\u90fd\u662f\u5bf9\u8868\u7684\u6709\u6548\u5143\u7d20\u8fdb\u884c\u7684\u64cd\u4f5c\uff0c\u4f46\u5e76\u4e0d\u4e00\u5b9a\u4f1a\u6539\u53d8\u7f13\u51b2\u7a7a\u95f4\u7684\u5927\u5c0f\n// \u53e6\u5916\uff0cvector\u8fd8\u6709\u5176\u4ed6\u7684\u4e00\u4e9b\u64cd\u4f5c\uff0c\u5982\u53cd\u8f6c\u3001\u53d6\u53cd\u7b49\uff0c\u4e0d\u518d\u4e00\u4e00\u5217\u4e3e\n// vector\u4e0a\u8fd8\u5b9a\u4e49\u4e86\u5e8f\u5217\u4e4b\u95f4\u7684\u6bd4\u8f83\u64cd\u4f5c\u8fd0\u7b97\u7b26\uff08>\u3001<\u3001>=\u3001<=\u3001==\u3001!=\uff09\uff0c\u53ef\u4ee5\u6309\u7167\u5b57\u5178\u5e8f\u6bd4\u8f83\u4e24\u4e2a\u5e8f\u5217\u3002\n// \u8fd8\u662f\u6765\u770b\u4e00\u4e9b\u793a\u4f8b\u4ee3\u7801\u5427\u2026\u2026\n\n/*\n * \u8f93\u5165\u4e2a\u6570\u4e0d\u5b9a\u7684\u4e00\u7ec4\u6574\u6570\uff0c\u518d\u5c06\u8fd9\u7ec4\u6574\u6570\u6309\u5012\u5e8f\u8f93\u51fa\n */\n\n#include \n#include \n\nusing namespace std;\n\nint main()\n{\n vector L;\n int x;\n while(cin >> x)\n {\n L.push_back(x);\n }\n for (int i = L.size() - 1; i >= 0; i--)\n {\n cout << L[i] << " ";\n }\n cout << endl;\n return 0;\n}\n')),(0,r.kt)("h3",{id:"list"},"list"),(0,r.kt)("p",null,(0,r.kt)("strong",{parentName:"p"},"\u5934\u6587\u4ef6\uff1alist")),(0,r.kt)("p",null,"\u4e0b\u9762\u7ed9\u51fa\u51e0\u4e2a\u5e38\u7528\u7684\u5b9a\u4e49list\u5bf9\u8c61\u7684\u65b9\u6cd5\u793a\u4f8b\uff1a"),(0,r.kt)("pre",null,(0,r.kt)("code",{parentName:"pre",className:"language-c++"},"\nlista{1,2,3}\nlista(n) //\u58f0\u660e\u4e00\u4e2an\u4e2a\u5143\u7d20\u7684\u5217\u8868\uff0c\u6bcf\u4e2a\u5143\u7d20\u90fd\u662f0\nlista(n, m) //\u58f0\u660e\u4e00\u4e2an\u4e2a\u5143\u7d20\u7684\u5217\u8868\uff0c\u6bcf\u4e2a\u5143\u7d20\u90fd\u662fm\nlista(first, last) //\u58f0\u660e\u4e00\u4e2a\u5217\u8868\uff0c\u5176\u5143\u7d20\u7684\u521d\u59cb\u503c\u6765\u6e90\u4e8e\u7531\u533a\u95f4\u6240\u6307\u5b9a\u7684\u5e8f\u5217\u4e2d\u7684\u5143\u7d20\uff0cfirst\u548clast\u662f\u8fed\u4ee3\u5668\n\n")),(0,r.kt)("p",null,"list\u7684\u57fa\u672c\u64cd\u4f5c\uff1a"),(0,r.kt)("pre",null,(0,r.kt)("code",{parentName:"pre",className:"language-c++"},"\na.begin() // \u8fd4\u56de\u6307\u5411\u9996\u5143\u7d20\u7684\u968f\u673a\u5b58\u53d6\u8fed\u4ee3\u5668\na.end() // \u8fd4\u56de\u6307\u5411\u5c3e\u5143\u7d20\u7684\u4e0b\u4e00\u4e2a\u4f4d\u7f6e\u7684\u968f\u673a\u5b58\u53d6\u8fed\u4ee3\u5668\na.push_front(x) // \u5411\u8868\u5934\u63d2\u5165\u5143\u7d20x\na.push_back(x) // \u5411\u8868\u5c3e\u63d2\u5165\u5143\u7d20x\na.pop_back() // \u5220\u9664\u8868\u5c3e\u5143\u7d20\na.pop_front() // \u5220\u9664\u8868\u5934\u5143\u7d20\na.size() // \u8fd4\u56de\u8868\u957f\na.empty() // \u8868\u4e3a\u7a7a\u65f6\uff0c\u8fd4\u56de\u771f\uff0c\u5426\u5219\u8fd4\u56de\u5047\na.resize(n) // \u6539\u53d8\u5e8f\u5217\u957f\u5ea6\uff0c\u8d85\u51fa\u7684\u5143\u7d20\u5c06\u4f1a\u5168\u90e8\u88ab\u5220\u9664\uff0c\u5982\u679c\u5e8f\u5217\u9700\u8981\u6269\u5c55\uff08\u539f\u7a7a\u95f4\u5c0f\u4e8en\uff09\uff0c\u5143\u7d20\u9ed8\u8ba4\u503c\u5c06\u586b\u6ee1\u6269\u5c55\u51fa\u7684\u7a7a\u95f4\na.resize(n, val) // \u6539\u53d8\u5e8f\u5217\u957f\u5ea6\uff0c\u8d85\u51fa\u7684\u5143\u7d20\u5c06\u4f1a\u5168\u90e8\u88ab\u5220\u9664\uff0c\u5982\u679c\u5e8f\u5217\u9700\u8981\u6269\u5c55\uff08\u539f\u7a7a\u95f4\u5c0f\u4e8en\uff09\uff0cval\u5c06\u586b\u6ee1\u6269\u5c55\u51fa\u7684\u7a7a\u95f4\na.clear() // \u5220\u9664\u5bb9\u5668\u4e2d\u7684\u6240\u6709\u5143\u7d20\na.front() // \u8fd4\u56de\u9996\u5143\u7d20\na.back() // \u8fd4\u56de\u5c3e\u5143\u7d20\na.swap(v) // \u5c06a\u4e0e\u53e6\u4e00\u4e2alist\u5bf9\u8c61\u8fdb\u884c\u4ea4\u6362\na.merge(b) // \u8c03\u7528\u7ed3\u675f\u540eb\u53d8\u4e3a\u7a7a\uff0ca\u4e2d\u5143\u7d20\u5305\u542b\u539f\u6765a\u548cb\u7684\u5143\u7d20\na.insert(it, val) // \u5411\u8fed\u4ee3\u5668it\u6307\u5411\u7684\u5143\u7d20\u524d\u63d2\u5165\u65b0\u5143\u7d20val\na.insert(it, n, val)// \u5411\u8fed\u4ee3\u5668it\u6307\u5411\u7684\u5143\u7d20\u524d\u63d2\u5165n\u4e2a\u65b0\u5143\u7d20val\na.insert(it, first, last) \n// \u5c06\u7531\u8fed\u4ee3\u5668first\u548clast\u6240\u6307\u5b9a\u7684\u5e8f\u5217[first, last)\u63d2\u5165\u5230\u8fed\u4ee3\u5668it\u6307\u5411\u7684\u5143\u7d20\u524d\u9762\na.erase(it) // \u5220\u9664\u7531\u8fed\u4ee3\u5668it\u6240\u6307\u5411\u7684\u5143\u7d20\na.erase(first, last)// \u5220\u9664\u7531\u8fed\u4ee3\u5668first\u548clast\u6240\u6307\u5b9a\u7684\u5e8f\u5217[first, last)\na.remove(x) // \u5220\u9664\u4e86a\u4e2d\u6240\u6709\u503c\u4e3ax\u7684\u5143\u7d20\na.assign(n, val) // \u5c06a\u4e2d\u7684\u6240\u6709\u5143\u7d20\u66ff\u6362\u6210n\u4e2aval\u5143\u7d20\na.assign(b.begin(), b.end())\n//\u5c06a\u53d8\u6210b\n\n")),(0,r.kt)("h3",{id:"string"},"string"),(0,r.kt)("p",null,(0,r.kt)("strong",{parentName:"p"},"\u5934\u6587\u4ef6\uff1astring")),(0,r.kt)("p",null,"string\u662fSTL\u7684\u5b57\u7b26\u4e32\u7c7b\u578b\uff0c\u901a\u5e38\u7528\u6765\u8868\u793a\u5b57\u7b26\u4e32\u3002\u800c\u5728\u4f7f\u7528string\u4e4b\u524d\uff0c\u5b57\u7b26\u4e32\u901a\u5e38\u662f\u7528",(0,r.kt)("inlineCode",{parentName:"p"},"char*"),"\u8868\u793a\u7684\u3002",(0,r.kt)("br",{parentName:"p"}),"\n","string\u548c",(0,r.kt)("inlineCode",{parentName:"p"},"char*"),"\u7684\u533a\u522b",(0,r.kt)("br",{parentName:"p"}),"\n","string\u662f\u4e00\u4e2a\u7c7b, ",(0,r.kt)("inlineCode",{parentName:"p"},"char*"),"\u662f\u4e00\u4e2a\u6307\u5411\u5b57\u7b26\u7684\u6307\u9488\u3002",(0,r.kt)("br",{parentName:"p"}),"\n","string\u5c01\u88c5\u4e86",(0,r.kt)("inlineCode",{parentName:"p"},"char*"),"\uff0c\u7ba1\u7406\u8fd9\u4e2a\u5b57\u7b26\u4e32\uff0c\u662f\u4e00\u4e2a",(0,r.kt)("inlineCode",{parentName:"p"},"char*"),"\u578b\u7684\u5bb9\u5668\u3002\u4e5f\u5c31\u662f\u8bf4string\u662f\u4e00\u4e2a\u5bb9\u5668\uff0c\u91cc\u9762\u5143\u7d20\u7684\u6570\u636e\u7c7b\u578b\u662f",(0,r.kt)("inlineCode",{parentName:"p"},"char*"),"\u3002",(0,r.kt)("br",{parentName:"p"}),"\n","string\u4e0d\u7528\u8003\u8651\u5185\u5b58\u91ca\u653e\u548c\u8d8a\u754c\u3002",(0,r.kt)("br",{parentName:"p"}),"\n","string\u7ba1\u7406",(0,r.kt)("inlineCode",{parentName:"p"},"char*"),"\u6240\u5206\u914d\u7684\u5185\u5b58\u3002\u6bcf\u4e00\u6b21string\u7684\u590d\u5236\uff0c\u53d6\u503c\u90fd\u7531string\u7c7b\u8d1f\u8d23\u7ef4\u62a4\uff0c\u4e0d\u7528\u62c5\u5fc3\u590d\u5236\u8d8a\u754c\u548c\u53d6\u503c\u8d8a\u754c\u7b49\u3002 string\u63d0\u4f9b\u4e86\u4e00\u7cfb\u5217\u7684\u5b57\u7b26\u4e32\u64cd\u4f5c\u51fd\u6570",(0,r.kt)("br",{parentName:"p"}),"\n","\u67e5\u627efind\uff0c\u62f7\u8d1dcopy\uff0c\u5220\u9664erase\uff0c\u66ff\u6362replace\uff0c\u63d2\u5165insert. "),(0,r.kt)("p",null,"\u6784\u9020\u548c\u6790\u6784\u51fd\u6570:"),(0,r.kt)("table",null,(0,r.kt)("thead",{parentName:"table"},(0,r.kt)("tr",{parentName:"thead"},(0,r.kt)("th",{parentName:"tr",align:null},"\u8868\u8fbe\u5f0f"),(0,r.kt)("th",{parentName:"tr",align:null},"\u6548\u679c"))),(0,r.kt)("tbody",{parentName:"table"},(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"string s"),(0,r.kt)("td",{parentName:"tr",align:null},"\u751f\u6210\u4e00\u4e2a\u7a7a\u5b57\u7b26\u4e32")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"string s(str)"),(0,r.kt)("td",{parentName:"tr",align:null},"copy\u6784\u9020\u51fd\u6570\uff0c\u751f\u6210\u4e00\u4e2astr\u7684\u590d\u5236\u54c1")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"string s(str,idx)"),(0,r.kt)("td",{parentName:"tr",align:null},"\u5c06string\u5185\u59cb\u4e8e\u4f4d\u7f6eidx\u7684\u90e8\u5206\u5f53\u4f5c\u5b57\u7b26\u4e32s\u7684\u521d\u503c")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"string s(str,idx,len)"),(0,r.kt)("td",{parentName:"tr",align:null},"\u5c06string\u5185\u59cb\u4e8e\u4f4d\u7f6eidx\u4e14\u957f\u5ea6\u6700\u591a\u4e3alen\u7684\u90e8\u5206\u5f53\u4f5c\u5b57\u7b26\u4e32s\u7684\u521d\u503c")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"string s(cstr)"),(0,r.kt)("td",{parentName:"tr",align:null},"\u4ee5C-string\u5b57\u7b26\u4e32cstr\u4f5c\u4e3a\u5b57\u7b26\u4e32s\u7684\u521d\u503c")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"string s(cstr\uff0clen)"),(0,r.kt)("td",{parentName:"tr",align:null},"\u4ee5C-string\u5b57\u7b26\u4e32cstr\u7684\u524dlen\u4e2a\u5b57\u7b26\u4f5c\u4e3a\u5b57\u7b26\u4e32s\u7684\u521d\u503c")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"string s(num\uff0cc)"),(0,r.kt)("td",{parentName:"tr",align:null},"\u751f\u6210\u4e00\u4e2a\u5b57\u7b26\u4e32\uff0c\u5305\u542bnum\u4e2a\u5b57\u7b26c")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"string s(beg\uff0cend)"),(0,r.kt)("td",{parentName:"tr",align:null},"\u4ee5\u533a\u95f4","[beg,end]","\u5185\u6240\u6709\u5b57\u7b26\u4f5c\u4e3a\u5b57\u7b26\u4e32s\u7684\u521d\u503c")))),(0,r.kt)("p",null,"\u64cd\u4f5c\u51fd\u6570:"),(0,r.kt)("table",null,(0,r.kt)("thead",{parentName:"table"},(0,r.kt)("tr",{parentName:"thead"},(0,r.kt)("th",{parentName:"tr",align:null},"\u64cd\u4f5c\u51fd\u6570"),(0,r.kt)("th",{parentName:"tr",align:null},"\u6548\u679c"))),(0,r.kt)("tbody",{parentName:"table"},(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"=\uff0cassign()"),(0,r.kt)("td",{parentName:"tr",align:null},"\u8d4b\u4ee5\u65b0\u503c")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"swap()"),(0,r.kt)("td",{parentName:"tr",align:null},"\u4ea4\u6362\u4e24\u4e2a\u5b57\u7b26\u4e32\u7684\u5185\u5bb9")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"+=, append(),push_back()"),(0,r.kt)("td",{parentName:"tr",align:null},"\u6dfb\u52a0\u5b57\u7b26")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"insert()"),(0,r.kt)("td",{parentName:"tr",align:null},"\u63d2\u5165\u5b57\u7b26")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"erase()"),(0,r.kt)("td",{parentName:"tr",align:null},"\u5220\u9664\u5b57\u7b26")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"clear()"),(0,r.kt)("td",{parentName:"tr",align:null},"\u79fb\u9664\u5168\u90e8\u5b57\u7b26")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"resize()"),(0,r.kt)("td",{parentName:"tr",align:null},"\u6539\u53d8\u5b57\u7b26\u6570\u91cf")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"replace()"),(0,r.kt)("td",{parentName:"tr",align:null},"\u66ff\u6362\u5b57\u7b26")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"+"),(0,r.kt)("td",{parentName:"tr",align:null},"\u4e32\u8054\u5b57\u7b26\u4e32")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"==\uff0c!=\uff0c<\uff0c<=\uff0c>\uff0c>=\uff0ccompare()"),(0,r.kt)("td",{parentName:"tr",align:null},"\u6bd4\u8f83\u5b57\u7b26\u4e32\u5185\u5bb9")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"size(),length()"),(0,r.kt)("td",{parentName:"tr",align:null},"\u8fd4\u56de\u5b57\u7b26\u6570\u91cf,\u7b49\u6548\u51fd\u6570")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"max_size()"),(0,r.kt)("td",{parentName:"tr",align:null},"\u8fd4\u56de\u5b57\u7b26\u7684\u6700\u5927\u53ef\u80fd\u4e2a\u6570")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"empty()"),(0,r.kt)("td",{parentName:"tr",align:null},"\u5224\u65ad\u5b57\u7b26\u4e32\u662f\u5426\u4e3a\u7a7a")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"capacity()"),(0,r.kt)("td",{parentName:"tr",align:null},"\u8fd4\u56de\u91cd\u65b0\u5206\u914d\u4e4b\u524d\u7684\u5b57\u7b26\u5bb9\u91cf")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"reserve()"),(0,r.kt)("td",{parentName:"tr",align:null},"\u4fdd\u7559\u4e00\u5b9a\u91cf\u5185\u5b58\u4ee5\u5bb9\u7eb3\u4e00\u5b9a\u6570\u91cf\u7684\u5b57\u7b26")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"[ ]","\uff0cat()"),(0,r.kt)("td",{parentName:"tr",align:null},"\u5b58\u53d6\u5355\u4e00\u5b57\u7b26")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},">>\uff0cgetline()"),(0,r.kt)("td",{parentName:"tr",align:null},"\u4ecestream\u4e2d\u8bfb\u53d6\u67d0\u503c")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"<<"),(0,r.kt)("td",{parentName:"tr",align:null},"\u5c06\u67d0\u503c\u5199\u5165stream")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"copy()"),(0,r.kt)("td",{parentName:"tr",align:null},"\u5c06\u5185\u5bb9\u590d\u5236\u4e3a\u4e00\u4e2aC-string")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"c_str()"),(0,r.kt)("td",{parentName:"tr",align:null},"\u5c06\u5185\u5bb9\u4ee5C-string\u5f62\u5f0f\u8fd4\u56de")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"data()"),(0,r.kt)("td",{parentName:"tr",align:null},"\u5c06\u5185\u5bb9\u4ee5\u5b57\u7b26\u6570\u7ec4\u5f62\u5f0f\u8fd4\u56de")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"substr()"),(0,r.kt)("td",{parentName:"tr",align:null},"\u8fd4\u56de\u67d0\u4e2a\u5b50\u5b57\u7b26\u4e32")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"begin()\uff0cend()"),(0,r.kt)("td",{parentName:"tr",align:null},"\u63d0\u4f9b\u6b63\u5e38\u7684\u8fed\u4ee3\u5668\u652f\u6301")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"rbegin()\uff0crend()"),(0,r.kt)("td",{parentName:"tr",align:null},"\u63d0\u4f9b\u9006\u5411\u8fed\u4ee3\u5668\u652f\u6301")))),(0,r.kt)("h3",{id:"pair"},"pair"),(0,r.kt)("p",null,(0,r.kt)("strong",{parentName:"p"},"\u5934\u6587\u4ef6\uff1autility")),(0,r.kt)("p",null,"STL\u7684utility\u5934\u6587\u4ef6\u4e2d\u63cf\u8ff0\u4e86\u4e00\u4e2a\u770b\u4e0a\u53bb\u975e\u5e38\u7b80\u5355\u7684\u6a21\u7248\u7c7bpair\uff0c\u7528\u6765\u8868\u793a\u4e00\u4e2a\u4e8c\u5143\u7ec4\u6216\u5143\u7d20\u5bf9\uff0c\u5e76\u63d0\u4f9b\u4e86\u6309\u7167\u5b57\u5178\u5e8f\u5bf9\u5143\u7d20\u5bf9\u8fdb\u884c\u5927\u5c0f\u6bd4\u8f83\u8fd0\u7b97\u7b26\u6a21\u7248\u51fd\u6570\u3002\nExample\uff0c\u60f3\u8981\u5b9a\u4e49\u4e00\u4e2a\u5bf9\u8c61\u8868\u793a\u4e00\u4e2a\u5e73\u9762\u5750\u6807\u70b9\uff0c\u5219\u53ef\u4ee5\uff1a"),(0,r.kt)("pre",null,(0,r.kt)("code",{parentName:"pre"},"pair p;\ncin >> p.first >> p.second;\n")),(0,r.kt)("p",null,"pair\u6a21\u7248\u7c7b\u9700\u8981\u4e24\u4e2a\u53c2\u6570\uff1a\u9996\u5143\u7d20\u7684\u6570\u636e\u7c7b\u578b\u548c\u5c3e\u5143\u7d20\u7684\u6570\u636e\u7c7b\u578b\u3002pair\u6a21\u7248\u7c7b\u5bf9\u8c61\u6709\u4e24\u4e2a\u6210\u5458\uff1afirst\u548csecond\uff0c\u5206\u522b\u8868\u793a\u9996\u5143\u7d20\u548c\u5c3e\u5143\u7d20\u3002\n\u5728\u5176\u4e2d\u5df2\u7ecf\u5b9a\u4e49\u4e86pair\u4e0a\u7684\u516d\u4e2a\u6bd4\u8f83\u8fd0\u7b97\u7b26\uff1a<\u3001>\u3001<=\u3001>=\u3001==\u3001!=\uff0c\u5176\u89c4\u5219\u662f\u5148\u6bd4\u8f83first\uff0cfirst\u76f8\u7b49\u65f6\u518d\u6bd4\u8f83second\uff0c\u8fd9\u7b26\u5408\u5927\u591a\u6570\u5e94\u7528\u7684\u903b\u8f91\u3002\u5f53\u7136\uff0c\u4e5f\u53ef\u4ee5\u901a\u8fc7\u91cd\u8f7d\u8fd9\u51e0\u4e2a\u8fd0\u7b97\u7b26\u6765\u91cd\u65b0\u6307\u5b9a\u81ea\u5df1\u7684\u6bd4\u8f83\u903b\u8f91\u3002\n\u9664\u4e86\u76f4\u63a5\u5b9a\u4e49\u4e00\u4e2apair\u5bf9\u8c61\u5916\uff0c\u5982\u679c\u9700\u8981\u5373\u65f6\u751f\u6210\u4e00\u4e2apair\u5bf9\u8c61\uff0c\u4e5f\u53ef\u4ee5\u8c03\u7528\u5728\u5176\u4e2d\u5b9a\u4e49\u7684\u4e00\u4e2a\u6a21\u7248\u51fd\u6570\uff1amake_pair\u3002make_pair\u9700\u8981\u4e24\u4e2a\u53c2\u6570\uff0c\u5206\u522b\u4e3a\u5143\u7d20\u5bf9\u7684\u9996\u5143\u7d20\u548c\u5c3e\u5143\u7d20\u3002"),(0,r.kt)("h3",{id:"map"},"map"),(0,r.kt)("p",null,(0,r.kt)("strong",{parentName:"p"},"\u5934\u6587\u4ef6\uff1amap")),(0,r.kt)("p",null,"\u5728STL\u7684\u5934\u6587\u4ef6\u4e2dmap\u4e2d\u5b9a\u4e49\u4e86\u6a21\u7248\u7c7bmap\u548cmultimap\uff0c\u7528\u6709\u5e8f\u4e8c\u53c9\u6811\u8868\u5b58\u50a8\u7c7b\u578b\u4e3a",(0,r.kt)("inlineCode",{parentName:"p"},"pair"),"\u7684\u5143\u7d20\u5bf9\u5e8f\u5217\u3002\u5e8f\u5217\u4e2d\u7684\u5143\u7d20\u4ee5const Key\u90e8\u5206\u4f5c\u4e3a\u6807\u8bc6\uff0cmap\u4e2d\u6240\u6709\u5143\u7d20\u7684Key\u503c\u5fc5\u987b\u662f\u552f\u4e00\u7684\uff0cmultimap\u5219\u5141\u8bb8\u6709\u91cd\u590d\u7684Key\u503c\u3002"),(0,r.kt)("p",null,"\u53ef\u4ee5\u5c06map\u770b\u4f5c\u662f\u7531Key\u6807\u8bc6\u5143\u7d20\u7684\u5143\u7d20\u96c6\u5408\uff0c\u8fd9\u7c7b\u5bb9\u5668\u4e5f\u88ab\u79f0\u4e3a\u201c\u5173\u8054\u5bb9\u5668\u201d\uff0c\u53ef\u4ee5\u901a\u8fc7\u4e00\u4e2aKey\u503c\u6765\u5feb\u901f\u51b3\u5b9a\u4e00\u4e2a\u5143\u7d20\uff0c\u56e0\u6b64\u975e\u5e38\u9002\u5408\u4e8e\u9700\u8981\u6309\u7167Key\u503c\u67e5\u627e\u5143\u7d20\u7684\u5bb9\u5668\u3002\nmap\u6a21\u7248\u7c7b\u9700\u8981\u56db\u4e2a\u6a21\u7248\u53c2\u6570\uff0c\u7b2c\u4e00\u4e2a\u662f\u952e\u503c\u7c7b\u578b\uff0c\u7b2c\u4e8c\u4e2a\u662f\u5143\u7d20\u7c7b\u578b\uff0c\u7b2c\u4e09\u4e2a\u662f\u6bd4\u8f83\u7b97\u5b50\uff0c\u7b2c\u56db\u4e2a\u662f\u5206\u914d\u5668\u7c7b\u578b\u3002\u5176\u4e2d\u952e\u503c\u7c7b\u578b\u548c\u5143\u7d20\u7c7b\u578b\u662f\u5fc5\u8981\u7684\u3002"),(0,r.kt)("p",null,"\u5b9a\u4e49map\u5bf9\u8c61\u7684\u4ee3\u7801\u793a\u4f8b\uff1a"),(0,r.kt)("pre",null,(0,r.kt)("code",{parentName:"pre",className:"language-c++"},"map m;\n")),(0,r.kt)("p",null,"map\u7684\u57fa\u672c\u64cd\u4f5c\uff1a"),(0,r.kt)("pre",null,(0,r.kt)("code",{parentName:"pre",className:"language-c++"},"/* \u5411map\u4e2d\u63d2\u5165\u5143\u7d20 */\nm[key] = value; // [key]\u64cd\u4f5c\u662fmap\u5f88\u6709\u7279\u8272\u7684\u64cd\u4f5c,\u5982\u679c\u5728map\u4e2d\u5b58\u5728\u952e\u503c\u4e3akey\u7684\u5143\u7d20\u5bf9, \u5219\u8fd4\u56de\u8be5\u5143\u7d20\u5bf9\u7684\u503c\u57df\u90e8\u5206,\u5426\u5219\u5c06\u4f1a\u521b\u5efa\u4e00\u4e2a\u952e\u503c\u4e3akey\u7684\u5143\u7d20\u5bf9,\u503c\u57df\u4e3a\u9ed8\u8ba4\u503c\u3002\u6240\u4ee5\u53ef\u4ee5\u7528\u8be5\u64cd\u4f5c\u5411map\u4e2d\u63d2\u5165\u5143\u7d20\u5bf9\u6216\u4fee\u6539\u5df2\u7ecf\u5b58\u5728\u7684\u5143\u7d20\u5bf9\u7684\u503c\u57df\u90e8\u5206\u3002\nm.insert(make_pair(key, value)); // \u4e5f\u53ef\u4ee5\u76f4\u63a5\u8c03\u7528insert\u65b9\u6cd5\u63d2\u5165\u5143\u7d20\u5bf9,insert\u64cd\u4f5c\u4f1a\u8fd4\u56de\u4e00\u4e2apair,\u5f53map\u4e2d\u6ca1\u6709\u4e0ekey\u76f8\u5339\u914d\u7684\u952e\u503c\u65f6,\u5176first\u662f\u6307\u5411\u63d2\u5165\u5143\u7d20\u5bf9\u7684\u8fed\u4ee3\u5668,\u5176second\u4e3atrue;\u82e5map\u4e2d\u5df2\u7ecf\u5b58\u5728\u4e0ekey\u76f8\u7b49\u7684\u952e\u503c\u65f6,\u5176first\u662f\u6307\u5411\u8be5\u5143\u7d20\u5bf9\u7684\u8fed\u4ee3\u5668,second\u4e3afalse\u3002\n\n/* \u67e5\u627e\u5143\u7d20 */\nint i = m[key]; // \u8981\u6ce8\u610f\u7684\u662f,\u5f53\u4e0e\u8be5\u952e\u503c\u76f8\u5339\u914d\u7684\u5143\u7d20\u5bf9\u4e0d\u5b58\u5728\u65f6,\u4f1a\u521b\u5efa\u952e\u503c\u4e3akey\uff08\u5f53\u53e6\u4e00\u4e2a\u5143\u7d20\u662f\u6574\u5f62\u65f6\uff0cm[key]=0\uff09\u7684\u5143\u7d20\u5bf9\u3002\nmap::iterator it = m.find(key); // \u5982\u679cmap\u4e2d\u5b58\u5728\u4e0ekey\u76f8\u5339\u914d\u7684\u952e\u503c\u65f6,find\u64cd\u4f5c\u5c06\u8fd4\u56de\u6307\u5411\u8be5\u5143\u7d20\u5bf9\u7684\u8fed\u4ee3\u5668,\u5426\u5219,\u8fd4\u56de\u7684\u8fed\u4ee3\u5668\u7b49\u4e8emap\u7684end()(\u53c2\u89c1vector\u4e2d\u63d0\u5230\u7684begin()\u548cend()\u64cd\u4f5c)\u3002\n\n/* \u5220\u9664\u5143\u7d20 */\nm.erase(key); // \u5220\u9664\u4e0e\u6307\u5b9akey\u952e\u503c\u76f8\u5339\u914d\u7684\u5143\u7d20\u5bf9,\u5e76\u8fd4\u56de\u88ab\u5220\u9664\u7684\u5143\u7d20\u7684\u4e2a\u6570\u3002\nm.erase(it); // \u5220\u9664\u7531\u8fed\u4ee3\u5668it\u6240\u6307\u5b9a\u7684\u5143\u7d20\u5bf9,\u5e76\u8fd4\u56de\u6307\u5411\u4e0b\u4e00\u4e2a\u5143\u7d20\u5bf9\u7684\u8fed\u4ee3\u5668\u3002\n\n/* \u5176\u4ed6\u64cd\u4f5c */\nm.size(); // \u8fd4\u56de\u5143\u7d20\u4e2a\u6570\nm.empty(); // \u5224\u65ad\u662f\u5426\u4e3a\u7a7a\nm.clear(); // \u6e05\u7a7a\u6240\u6709\u5143\u7d20\n")),(0,r.kt)("h3",{id:"stack"},"stack"),(0,r.kt)("p",null,(0,r.kt)("strong",{parentName:"p"},"\u5934\u6587\u4ef6\uff1astack")),(0,r.kt)("p",null,"stack\u6a21\u7248\u7c7b\u7684\u5b9a\u4e49\u5728stack\u5934\u6587\u4ef6\u4e2d\u3002\nstack\u6a21\u7248\u7c7b\u9700\u8981\u4e24\u4e2a\u6a21\u7248\u53c2\u6570\uff0c\u4e00\u4e2a\u662f\u5143\u7d20\u7c7b\u578b\uff0c\u53e6\u4e00\u4e2a\u662f\u5bb9\u5668\u7c7b\u578b\uff0c\u4f46\u662f\u53ea\u6709\u5143\u7d20\u7c7b\u578b\u662f\u5fc5\u8981\u7684\uff0c\u5728\u4e0d\u6307\u5b9a\u5bb9\u5668\u7c7b\u578b\u65f6\uff0c\u9ed8\u8ba4\u5bb9\u5668\u7684\u7c7b\u578b\u4e3adeque\u3002"),(0,r.kt)("p",null,"\u5b9a\u4e49stack\u5bf9\u8c61\u7684\u793a\u4f8b\u4ee3\u7801\u5982\u4e0b:"),(0,r.kt)("pre",null,(0,r.kt)("code",{parentName:"pre",className:"language-c++"},"stack s;\nstack ss;\n")),(0,r.kt)("p",null,"stack\u7684\u57fa\u672c\u64cd\u4f5c\u6709\uff1a"),(0,r.kt)("pre",null,(0,r.kt)("code",{parentName:"pre",className:"language-c++"},"s.push(x); // \u5165\u6808\ns.pop(); // \u51fa\u6808\ns.top(); // \u8bbf\u95ee\u6808\u9876\ns.empty(); // \u5f53\u6808\u7a7a\u65f6\uff0c\u8fd4\u56detrue\ns.size(); // \u8bbf\u95ee\u6808\u4e2d\u5143\u7d20\u4e2a\u6570\n")),(0,r.kt)("h3",{id:"queue"},"queue"),(0,r.kt)("p",null,(0,r.kt)("strong",{parentName:"p"},"\u5934\u6587\u4ef6\uff1aqueue")),(0,r.kt)("p",null,"queue\u6a21\u7248\u7c7b\u7684\u5b9a\u4e49\u5728queue\u5934\u6587\u4ef6\u4e2d\u3002\nqueue\u4e0estack\u76f8\u4f3c\uff0cqueue\u6a21\u7248\u7c7b\u4e5f\u9700\u8981\u4e24\u4e2a\u6a21\u7248\u53c2\u6570\uff0c\u4e00\u4e2a\u5143\u7d20\u7c7b\u578b\uff0c\u4e00\u4e2a\u5bb9\u5668\u7c7b\u578b\uff0c\u5143\u7d20\u7c7b\u578b\u65f6\u5fc5\u987b\u7684\uff0c\u5bb9\u5668\u7c7b\u578b\u65f6\u53ef\u9009\u7684\uff0c\u9ed8\u8ba4\u4e3adeque\u7c7b\u578b\u3002"),(0,r.kt)("p",null,"\u5b9a\u4e49queue\u5bf9\u8c61\u7684\u793a\u4f8b\u4ee3\u7801\u5fc5\u987b\u5982\u4e0b\uff1a"),(0,r.kt)("pre",null,(0,r.kt)("code",{parentName:"pre",className:"language-c++"},"queue q;\nqueue qq;\n")),(0,r.kt)("p",null,"queue\u7684\u57fa\u672c\u64cd\u4f5c\uff1a"),(0,r.kt)("pre",null,(0,r.kt)("code",{parentName:"pre",className:"language-c++"},"q.push(x); // \u5165\u961f\u5217\nq.pop(); // \u51fa\u961f\u5217\nq.front(); // \u8bbf\u95ee\u961f\u9996\u5143\u7d20\nq.back(); // \u8bbf\u95ee\u961f\u5c3e\u5143\u7d20\nq.empty(); // \u5224\u65ad\u961f\u5217\u662f\u5426\u4e3a\u7a7a\nq.size(); // \u8bbf\u95ee\u961f\u5217\u4e2d\u7684\u5143\u7d20\u4e2a\u6570\n")),(0,r.kt)("h3",{id:"set"},"set"),(0,r.kt)("p",null,(0,r.kt)("strong",{parentName:"p"},"\u5934\u6587\u4ef6\uff1aset")),(0,r.kt)("p",null,"set\u662f\u4e0e\u96c6\u5408\u76f8\u5173\u7684\u5bb9\u5668\uff0cSTL\u4e3a\u6211\u4eec\u63d0\u4f9b\u4e86set\u7684\u5b9e\u73b0\uff0c\u5728\u7f16\u7a0b\u9898\u4e2d\u9047\u89c1\u96c6\u5408\u95ee\u9898\u76f4\u63a5\u8c03\u7528\u662f\u5341\u5206\u65b9\u4fbf\u7684\u3002"),(0,r.kt)("p",null,"\u5b9a\u4e49set\u5bf9\u8c61\u7684\u793a\u4f8b\u4ee3\u7801\u5982\u4e0b\uff1a"),(0,r.kt)("pre",null,(0,r.kt)("code",{parentName:"pre",className:"language-c++"},"set s;\nset ss;\n")),(0,r.kt)("p",null,"set\u7684\u57fa\u672c\u64cd\u4f5c\uff1a"),(0,r.kt)("pre",null,(0,r.kt)("code",{parentName:"pre",className:"language-c++"},"s.begin() // \u8fd4\u56de\u6307\u5411\u7b2c\u4e00\u4e2a\u5143\u7d20\u7684\u8fed\u4ee3\u5668\ns.clear() // \u6e05\u9664\u6240\u6709\u5143\u7d20\ns.count() // \u8fd4\u56de\u67d0\u4e2a\u503c\u5143\u7d20\u7684\u4e2a\u6570\ns.empty() // \u5982\u679c\u96c6\u5408\u4e3a\u7a7a\uff0c\u8fd4\u56detrue(\u771f\uff09\ns.end() // \u8fd4\u56de\u6307\u5411\u6700\u540e\u4e00\u4e2a\u5143\u7d20\u4e4b\u540e\u7684\u8fed\u4ee3\u5668\uff0c\u4e0d\u662f\u6700\u540e\u4e00\u4e2a\u5143\u7d20\ns.equal_range() // \u8fd4\u56de\u96c6\u5408\u4e2d\u4e0e\u7ed9\u5b9a\u503c\u76f8\u7b49\u7684\u4e0a\u4e0b\u9650\u7684\u4e24\u4e2a\u8fed\u4ee3\u5668\ns.erase() // \u5220\u9664\u96c6\u5408\u4e2d\u7684\u5143\u7d20\ns.find() // \u8fd4\u56de\u4e00\u4e2a\u6307\u5411\u88ab\u67e5\u627e\u5230\u5143\u7d20\u7684\u8fed\u4ee3\u5668\ns.get_allocator() // \u8fd4\u56de\u96c6\u5408\u7684\u5206\u914d\u5668\ns.insert() // \u5728\u96c6\u5408\u4e2d\u63d2\u5165\u5143\u7d20\ns.lower_bound() // \u8fd4\u56de\u6307\u5411\u5927\u4e8e\uff08\u6216\u7b49\u4e8e\uff09\u67d0\u503c\u7684\u7b2c\u4e00\u4e2a\u5143\u7d20\u7684\u8fed\u4ee3\u5668\ns.key_comp() // \u8fd4\u56de\u4e00\u4e2a\u7528\u4e8e\u5143\u7d20\u95f4\u503c\u6bd4\u8f83\u7684\u51fd\u6570\ns.max_size() // \u8fd4\u56de\u96c6\u5408\u80fd\u5bb9\u7eb3\u7684\u5143\u7d20\u7684\u6700\u5927\u9650\u503c\ns.rbegin() // \u8fd4\u56de\u6307\u5411\u96c6\u5408\u4e2d\u6700\u540e\u4e00\u4e2a\u5143\u7d20\u7684\u53cd\u5411\u8fed\u4ee3\u5668\ns.rend() // \u8fd4\u56de\u6307\u5411\u96c6\u5408\u4e2d\u7b2c\u4e00\u4e2a\u5143\u7d20\u7684\u53cd\u5411\u8fed\u4ee3\u5668\ns.size() // \u96c6\u5408\u4e2d\u5143\u7d20\u7684\u6570\u76ee\ns.swap() // \u4ea4\u6362\u4e24\u4e2a\u96c6\u5408\u53d8\u91cf\ns.upper_bound() // \u8fd4\u56de\u5927\u4e8e\u67d0\u4e2a\u503c\u5143\u7d20\u7684\u8fed\u4ee3\u5668\ns.value_comp() // \u8fd4\u56de\u4e00\u4e2a\u7528\u4e8e\u6bd4\u8f83\u5143\u7d20\u95f4\u7684\u503c\u7684\u51fd\u6570\n")),(0,r.kt)("h3",{id:"multiset"},"multiset"),(0,r.kt)("p",null,(0,r.kt)("strong",{parentName:"p"},"\u5934\u6587\u4ef6\uff1aset")),(0,r.kt)("p",null,"\u5728set\u5934\u6587\u4ef6\u4e2d\uff0c\u8fd8\u5b9a\u4e49\u4e86\u53e6\u4e00\u4e2a\u975e\u5e38\u5b9e\u7528\u7684\u6a21\u7248\u7c7bmultiset\uff08\u591a\u91cd\u96c6\u5408\uff09\u3002\u591a\u91cd\u96c6\u5408\u4e0e\u96c6\u5408\u7684\u533a\u522b\u5728\u4e8e\u96c6\u5408\u4e2d\u4e0d\u80fd\u5b58\u5728\u76f8\u540c\u5143\u7d20\uff0c\u800c\u591a\u91cd\u96c6\u5408\u4e2d\u53ef\u4ee5\u5b58\u5728\u3002"),(0,r.kt)("p",null,"\u5b9a\u4e49multiset\u5bf9\u8c61\u7684\u793a\u4f8b\u4ee3\u7801\u5982\u4e0b\uff1a"),(0,r.kt)("pre",null,(0,r.kt)("code",{parentName:"pre",className:"language-c++"},"multiset s;\nmultiset ss;\n")),(0,r.kt)("p",null,"multiset\u548cset\u7684\u57fa\u672c\u64cd\u4f5c\u76f8\u4f3c\uff0c\u9700\u8981\u6ce8\u610f\u7684\u662f\uff0c\u96c6\u5408\u7684count()\u80fd\u8fd4\u56de0\uff08\u65e0\uff09\u6216\u80051\uff08\u6709\uff09\uff0c\u800c\u591a\u91cd\u96c6\u5408\u662f\u6709\u591a\u5c11\u4e2a\u8fd4\u56de\u591a\u5c11\u4e2a\u3002"),(0,r.kt)("h3",{id:"bitset"},"bitset"),(0,r.kt)("p",null,(0,r.kt)("strong",{parentName:"p"},"\u5934\u6587\u4ef6\uff1abitset")),(0,r.kt)("p",null,"\u5728 STLSTL \u7684\u5934\u6587\u4ef6\u4e2d bitset\u4e2d\u5b9a\u4e49\u4e86\u6a21\u7248\u7c7b bitsetbitset\uff0c\u7528\u6765\u65b9\u4fbf\u5730\u7ba1\u7406\u4e00\u7cfb\u5217\u7684 bitbit \u4f4d\u7684\u7c7b\u3002bitsetbitset \u9664\u4e86\u53ef\u4ee5\u8bbf\u95ee\u6307\u5b9a\u4e0b\u6807\u7684 bitbit \u4f4d\u4ee5\u5916\uff0c\u8fd8\u53ef\u4ee5\u628a\u5b83\u4eec\u4f5c\u4e3a\u4e00\u4e2a\u6574\u6570\u6765\u8fdb\u884c\u67d0\u4e9b\u7edf\u8ba1\u3002"),(0,r.kt)("p",null,"bitsetbitset \u6a21\u677f\u7c7b\u9700\u8981\u4e00\u4e2a\u6a21\u7248\u53c2\u6570\uff0c\u7528\u6765\u660e\u786e\u6307\u5b9a\u542b\u6709\u591a\u5c11\u4f4d\u3002"),(0,r.kt)("p",null,"\u5b9a\u4e49 bitsetbitset \u5bf9\u8c61\u7684\u793a\u4f8b\u4ee3\u7801\uff1a"),(0,r.kt)("pre",null,(0,r.kt)("code",{parentName:"pre",className:"language-c++"},'const int MAXN = 32;\nbitset bt; // bt \u5305\u62ec MAXN \u4f4d\uff0c\u4e0b\u6807 0 ~ MAXN - 1\uff0c\u9ed8\u8ba4\u521d\u59cb\u5316\u4e3a 0\nbitset bt1(0xf); // 0xf \u8868\u793a\u5341\u516d\u8fdb\u5236\u6570 f\uff0c\u5bf9\u5e94\u4e8c\u8fdb\u5236 1111\uff0c\u5c06 bt1 \u4f4e 4 \u4f4d\u521d\u59cb\u5316\u4e3a 1\nbitset bt2(012); // 012 \u8868\u793a\u516b\u8fdb\u5236\u6570 12\uff0c\u5bf9\u5e94\u4e8c\u8fdb\u5236 1010\uff0c\u5373\u5c06 bt2 \u4f4e 4 \u4f4d\u521d\u59cb\u5316\u4e3a 1010\nbitset bt3("1010"); // \u5c06 bt3 \u4f4e 4 \u4f4d\u521d\u59cb\u5316\u4e3a 1010\nbitset bt4(s, pos, n);// \u5c06 01 \u5b57\u7b26\u4e32 s \u7684 pos \u4f4d\u5f00\u59cb\u7684 n \u4f4d\u521d\u59cb\u5316 bt4\n')),(0,r.kt)("p",null,"bitsetbitset \u57fa\u672c\u64cd\u4f5c\uff1a"),(0,r.kt)("pre",null,(0,r.kt)("code",{parentName:"pre",className:"language-c++"},"bt.any() // bt \u4e2d\u662f\u5426\u5b58\u5728\u7f6e\u4e3a 1 \u7684\u4e8c\u8fdb\u5236\u4f4d\uff1f\nbt.none() // bt \u4e2d\u4e0d\u5b58\u5728\u7f6e\u4e3a 1 \u7684\u4e8c\u8fdb\u5236\u4f4d\u5417\uff1f\nbt.count() // bt \u4e2d\u7f6e\u4e3a 1 \u7684\u4e8c\u8fdb\u5236\u4f4d\u7684\u4e2a\u6570\nbt.size() // bt \u4e2d\u4e8c\u8fdb\u5236\u4f4d\u7684\u4e2a\u6570\nbt[pos] // \u8bbf\u95ee bt \u4e2d\u5728 pos \u5904\u7684\u4e8c\u8fdb\u5236\u4f4d\nbt.test(pos) // bt \u4e2d\u5728 pos \u5904\u7684\u4e8c\u8fdb\u5236\u4f4d\u662f\u5426\u4e3a 1\nbt.set() // \u628a bt \u4e2d\u6240\u6709\u4e8c\u8fdb\u5236\u4f4d\u90fd\u7f6e\u4e3a 1\nbt.set(pos) // \u628a bt \u4e2d\u5728 pos \u5904\u7684\u4e8c\u8fdb\u5236\u4f4d\u7f6e\u4e3a 1\nbt.reset() // \u628a bt \u4e2d\u6240\u6709\u4e8c\u8fdb\u5236\u4f4d\u90fd\u7f6e\u4e3a 0\nbt.reset(pos) // \u628a bt \u4e2d\u5728pos\u5904\u7684\u4e8c\u8fdb\u5236\u4f4d\u7f6e\u4e3a0\nbt.flip() // \u628a bt \u4e2d\u6240\u6709\u4e8c\u8fdb\u5236\u4f4d\u9010\u4f4d\u53d6\u53cd\nbt.flip(pos) // \u628a bt \u4e2d\u5728 pos \u5904\u7684\u4e8c\u8fdb\u5236\u4f4d\u53d6\u53cd\nbt[pos].flip() // \u540c\u4e0a\nbt.to_ulong() // \u7528 bt \u4e2d\u540c\u6837\u7684\u4e8c\u8fdb\u5236\u4f4d\u8fd4\u56de\u4e00\u4e2a unsigned long \u503c\nos << bt // \u628a bt \u4e2d\u7684\u4f4d\u96c6\u8f93\u51fa\u5230 os \u6d41\n")),(0,r.kt)("h2",{id:"\u56fe\u6a21\u677f"},"\u56fe\u6a21\u677f"),(0,r.kt)("h3",{id:"\u4e0d\u5e26\u51fa\u5165\u5ea6\u7684\u6700\u7b80\u6a21\u677f"},"\u4e0d\u5e26\u51fa\u5165\u5ea6\u7684\u6700\u7b80\u6a21\u677f"),(0,r.kt)("pre",null,(0,r.kt)("code",{parentName:"pre",className:"language-c++"},'#include \n#include \n#include \n \nusing namespace std;\n \n#define MAX(a, b) ((a) > (b) ? (a) : (b) )\n \n//\u5b9a\u4e49\u56fe\u7684\u5b9a\u70b9\ntypedef struct Vertex {\n int id;\n vector connectors; //\u5b58\u50a8\u8282\u70b9\u7684\u540e\u7eed\u8fde\u63a5\u9876\u70b9\u7f16\u53f7\n Vertex() : id(-1) {}\n Vertex(int nid) : id(nid) {}\n} Vertex;\n \n//\u5b9a\u4e49Graph\u7684\u90bb\u63a5\u8868\u8868\u793a\ntypedef struct Graph {\n vector vertexs; //\u5b58\u50a8\u5b9a\u70b9\u4fe1\u606f\n int nVertexs; //\u8ba1\u6570\uff1a\u90bb\u63a5\u6570\n bool isDAG; //\u6807\u5fd7\uff1a\u662f\u6709\u5411\u56fe\u5417\n \n Graph(int n, bool isDAG) : nVertexs(n), isDAG(isDAG) { vertexs.resize(n); }\n \n //\u5411\u56fe\u4e2d\u6dfb\u52a0\u8fb9\n bool addEdge(int id1, int id2) {\n if (!(MAX(id1, id2) < vertexs.size())) return false;\n \n if (isDAG) {\n vertexs[id1].connectors.push_back(id2);\n }\n else {\n vertexs[id1].connectors.push_back(id2);\n vertexs[id2].connectors.push_back(id1);\n }\n return true;\n }\n \n //\u5e7f\u5ea6\u4f18\u5148\u641c\u7d22\n vector BFS(int start) {\n set visited;\n vector g, rst;\n g.push_back(start);\n visited.insert(start);\n while(g.size() > 0) {\n int id = g[0]; \n g.erase(g.begin());\n rst.push_back(id);\n for(int i = 0; i < vertexs[id].connectors.size(); i++) {\n int id1 = vertexs[id].connectors[i];\n if (visited.count(id1) == 0) {\n g.push_back(id1);\n visited.insert(id1);\n }\n }\n }\n return rst;\n }\n \n //\u6df1\u5ea6\u4f18\u5148\u641c\u7d22\n vector DFS(int start) {\n set visited;\n vector g, rst;\n g.push_back(start);\n //cout << "push " << start << " ";\n visited.insert(start);\n rst.push_back(start);\n bool found;\n while(g.size() > 0) {\n int id = g[g.size()-1]; \n found = false;\n for(int i = 0; i < vertexs[id].connectors.size(); i++) {\n int id1 = vertexs[id].connectors[i];\n if (visited.count(id1) == 0) {\n g.push_back(id1);\n rst.push_back(id1);\n visited.insert(id1);\n //cout << "push " << id1 << " ";\n found = true;\n break;\n }\n }\n if (!found) {\n int id2 = g[g.size()-1];\n rst.push_back(-1 * id2);\n //cout << "pop " << id2 << " ";\n g.pop_back();\n }\n }\n //cout << endl;\n return rst;\n }\n} Graph;\n \nint main() {\n Graph g(8, false);\n g.addEdge(0, 1);\n g.addEdge(0, 3);\n g.addEdge(1, 2);\n g.addEdge(3, 4);\n g.addEdge(3, 5);\n g.addEdge(4, 5);\n g.addEdge(4, 6); \n g.addEdge(5, 6);\n g.addEdge(5, 7); \n g.addEdge(6, 7);\n vector bv = g.BFS(0);\n cout << "\u5bbd\u5ea6\u4f18\u5148\u641c\u7d22\u8282\u70b9\u987a\u5e8f\uff1a";\n for(int j = 0; j < bv.size(); j++)\n cout << bv[j] << " ";\n cout << endl;\n \n cout << "\u6df1\u5ea6\u4f18\u5148\u641c\u7d22\u8282\u70b9\u987a\u5e8f\uff1a";\n Graph g1(6, false);\n g1.addEdge(0, 1);\n g1.addEdge(0, 4);\n g1.addEdge(0, 5);\n g1.addEdge(1, 5);\n g1.addEdge(4, 5);\n g1.addEdge(5, 2);\n g1.addEdge(5, 3);\n g1.addEdge(2, 3);\n vector route = g1.DFS(0);\n for(int i = 0; i < route.size(); i++)\n cout << route[i] << " ";\n cout << endl;\n \n char ch;\n cin >> ch;\n return 0;\n}\n\n\n')),(0,r.kt)("h3",{id:"\u5e26\u51fa\u5165\u5ea6\u7684-2019\u63a8\u514d\u8bd5\u9898"},"\u5e26\u51fa\u5165\u5ea6\u7684 (2019\u63a8\u514d\u8bd5\u9898)"),(0,r.kt)("pre",null,(0,r.kt)("code",{parentName:"pre",className:"language-c++"},'#include \n#include \n#include \n#include \n#define MAX(a, b) ((a) > (b) ? (a) : (b) )\nusing namespace std;\nint n,m;\nvector inDegreelist,outDegreelist;\n \n//\u5b9a\u4e49\u56fe\u7684\u5b9a\u70b9\ntypedef struct Vertex {\n int id,inDegree,outDegree;\n vector connectors; //\u5b58\u50a8\u8282\u70b9\u7684\u540e\u7eed\u8fde\u63a5\u9876\u70b9\u7f16\u53f7\n Vertex() : id(-1),inDegree(0),outDegree(0) {}\n Vertex(int nid) : id(nid),inDegree(0),outDegree(0) {}\n} Vertex;\n \n//\u5b9a\u4e49Graph\u7684\u90bb\u63a5\u8868\u8868\u793a\ntypedef struct Graph {\n vector vertexs; //\u5b58\u50a8\u5b9a\u70b9\u4fe1\u606f\n int nVertexs; //\u8ba1\u6570\uff1a\u90bb\u63a5\u6570\n bool isDAG; //\u6807\u5fd7\uff1a\u662f\u6709\u5411\u56fe\u5417\n \n Graph(int n, bool isDAG) : nVertexs(n), isDAG(isDAG) { vertexs.resize(n); }\n Graph() : nVertexs(1), isDAG(1) { vertexs.resize(1); }\n //\u5411\u56fe\u4e2d\u6dfb\u52a0\u8fb9\n bool addEdge(int id1, int id2) {\n if (!(MAX(id1, id2) < vertexs.size())) return false;\n \n if (isDAG) {\n vertexs[id1].connectors.push_back(id2);\n vertexs[id1].outDegree++;\n vertexs[id2].inDegree++;\n }\n else {\n vertexs[id1].connectors.push_back(id2);\n vertexs[id2].connectors.push_back(id1);\n\n vertexs[id1].outDegree++;\n vertexs[id1].inDegree++;\n\n vertexs[id2].outDegree++;\n vertexs[id2].inDegree++;\n\n }\n return true;\n }\n} Graph;\n\nGraph g;\n\nvoid init(){\n cin>>n>>m;\n g=Graph(n, true);\n int src,dst;\n while(m--){\n cin>>src>>dst;\n g.addEdge(src,dst);\n }\n vector::iterator it = g.vertexs.begin();\n while(it!=g.vertexs.end()){\n inDegreelist.push_back(it->inDegree);\n outDegreelist.push_back(it->outDegree);\n it++;\n }\n}\nint countin(int n){\n return count(inDegreelist.begin(),inDegreelist.end(),n);\n}\nint countout(int n){\n return count(outDegreelist.begin(),outDegreelist.end(),n);\n}\n\nbool Is_List(){\n //\u6709\u4e00\u4e2ainDegree\u4e3a0\u7684\u5934\u548c\u4e00\u4e2aoutDegree\u4e3a0\u7684\u5c3e\uff0c\u4e14\u5176\u4f59\u8282\u70b9\u5165\u5ea6\u4e0e\u51fa\u5ea6\u90fd\u4e3a1;\n return (countin(0)==1)&&(countout(0)==1)&&(countin(1)==n-1)&&(countout(1)==n-1);\n}\n\nbool Is_Tree(){\n //\u6709\u4e00\u4e2ainDegree\u4e3a0\u7684\u5934\u4e14\u5176\u4f59\u8282\u70b9inDegree\u5747\u4e3a1\uff0c\u4e14\u4e0d\u662f\u94fe\u8868;\n return (countin(0)==1)&&(countin(1)==n-1);\n}\n\nbool topologicalSort(){//\u62d3\u6251\u6392\u5e8f\u5224\u65ad\u6709\u73af\u65e0\u73af\n int num=0;//\u8bb0\u5f55\u52a0\u5165\u62d3\u6251\u6392\u5e8f\u7684\u9876\u70b9\u6570\n queue q;\n for(int i=0;i\n#include\n\n#ifndef BASE\n#define BASE\n#define TRUE 1\n#define FALSE 0\n#define OK 1\n#define ERROR 0\n#define INFEASIBLE -1\n#define OVERFLOW -2\ntypedef int Status;\ntypedef int bool;\n#endif\n\n#define VertexType char //\u70b9\u7c7b\u578b\n#define VRType int //\u8fb9\u7c7b\u578b\n#define maxSize 100\nvoid Visit(VertexType e) {\n printf("%c", e);\n}\n\n#define MAX_VERTEX_NUM 20\ntypedef enum{DG, UDG} GraphKind;\ntypedef struct ArcNode{\n int adjV; //\u8fb9\u6307\u5411\u7684\u9876\u70b9\n VRType weight; //\u6743\u91cd\n struct ArcNode *next;\n}ArcNode; //\u8fb9\ntypedef struct VNode{\n VertexType data;\n ArcNode *firstarc;\n}VNode, AdjList[MAX_VERTEX_NUM]; //\u9876\u70b9\ntypedef struct{\n GraphKind kind;\n int vernum,arcnum;\n AdjList vers; \n}ALGraph;\n\n\n/*------------------------\n |7.14 \u521b\u5efa\u6709\u5411\u56fe\u7684\u90bb\u63a5\u8868|\n ------------------------*/\nStatus InitGraph_AL(ALGraph *pG) { //\u521d\u59cb\u5316\n int i;\n pG->arcnum = 0;\n pG->vernum = 0;\n for (i=0; ivers[i].firstarc = NULL; //VC++6.0\u4e2d\u6307\u9488\u521d\u59cb\u5316\u4e3a0xcccccccc\n return OK;\n}\nint LocateVex_AL(ALGraph G, VertexType e) { //\u5b9a\u4f4d\u503c\u4e3ae\u7684\u5143\u7d20\u4e0b\u6807\n int i;\n for (i=0; i\u5f27\u7684\u6570\u76ee->\u5404\u9876\u70b9\u7684\u4fe1\u606f->\u5404\u6761\u5f27\u7684\u4fe1\u606f\n int i,a,b;\n char tmp[MAX_VERTEX_NUM];\n char h,t;\n ArcNode *p, *q;\n\n InitGraph_AL(pG); //VC++6.0\u4e2d\u6307\u9488\u521d\u59cb\u5316\u4e3a0xcccccccc\uff0c\u5982\u679c\u4e0d\u5c06\u6307\u9488\u521d\u59cb\u5316\u4e3aNULL\uff0c\u4f1a\u51fa\u9519\n //\u56fe\u7684\u7c7b\u578b\n pG->kind = DG;\n //\u9876\u70b9\u6570\u76ee\n scanf("%d", &i); if (i<0) return ERROR;\n pG->vernum = i;\n //\u5f27\u7684\u6570\u76ee\n scanf("%d", &i); if (i<0) return ERROR;\n pG->arcnum = i;\n //\u5404\u9876\u70b9\u4fe1\u606f\n scanf("%s", tmp);\n for (i=0; ivernum; ++i) pG->vers[i].data=tmp[i];\n //\u5f27\u7684\u4fe1\u606f\n for (i=0; iarcnum; ++i) {\n scanf("%s", tmp);\n h = tmp[0]; t = tmp[2];\n a = LocateVex_AL(*pG, h);\n b = LocateVex_AL(*pG, t);\n if (a<0 || b<0) return ERROR;\n p = (ArcNode *)malloc(sizeof(ArcNode)); if (!p) exit(OVERFLOW);\n p->adjV=b;p->next=NULL;\n if (pG->vers[a].firstarc) { //\u5df2\u7ecf\u6709\u8fb9\u4e86\n for (q = pG->vers[a].firstarc; q->next; q=q->next) ; //\u627e\u5230\u6700\u540e\u4e00\u6761\n q->next = p;\n } else { //\u7b2c\u4e00\u6761\u8fb9\n pG->vers[a].firstarc = p;\n }\n }\n return OK;\n}\n\n/*----------------------------------------------------------------\n |7.28 \u6709\u5411\u56fe-\u4eceu-v\u7684\u6240\u6709\u7b80\u5355\u8def\u5f84 |\n ----------------------------------------------------------------*/\nint visit[MAX_VERTEX_NUM]; //\u524d\u9762\u5b9a\u4e49\u4e86\nVertexType paths[maxSize][MAX_VERTEX_NUM]; //\u5b58\u653e\u8def\u5f84\nint path[MAX_VERTEX_NUM]; //\u8def\u5f84\nint pathnum=0; //\u5f53\u524d\u662f\u7b2c\u51e0\u6761\u8def\u5f84\nvoid FindAllPath(ALGraph G, int u,int v,int k) { //u->v\u5f53\u524d\u662f\u7b2ck\u4e2a\u4f4d\u7f6e\n int i;\n ArcNode *p;\n visit[u]=1; //\u8d70\u5230\u4e86u\n path[k]=u; //\u6dfb\u52a0\u5230\u8def\u5f84->\u4e0b\u6807\u4f4d\u7f6e\u4e3ak\u7684\u7ed3\u70b9\u662fu\uff08\u7b2ck+1\u4e2a\u662fu\uff09\n if (u==v) { //\u627e\u5230\u4e86\n for (i=0; i<=k; i++) {//\u590d\u5236\u5230paths\n paths[pathnum][i] = G.vers[path[i]].data;\n }\n paths[pathnum][i]=\'\\0\'; //\u7ed3\u675f\u7b26\n pathnum++; //\u627e\u4e0b\u4e00\u6761\u8def\u5f84\n } else {\n //u\u7684\u90bb\u8fb9\u5f00\u59cb\u627e\n for (p=G.vers[u].firstarc; p; p=p->next) {\n if (visit[p->adjV]==0)\n FindAllPath(G, p->adjV, v, k+1); //\u53bb\u8fd9\u4e2a\u90bb\u63a5\u70b9\u627e\n }\n }\n // \u56de\u6eaf\u5230\u4e0a\u4e00\u4e2a\u7ed3\u70b9\n // \u6ce8\u610f\uff1a\u56de\u6eaf\u5e94\u8be5\u5199\u5728\u5916\u9762--\x3e\u4e5f\u5c31\u662f\u4e0d\u7ba1\u6709\u6ca1\u6709\u627e\u5230\u90fd\u8981\u56de\u6eaf\n visit[u]=0;\n path[k]=0;\n}\n\n\nint main() {\n/*7.28\n6\n11\nABCDEF\nB,A\nB,D\nC,B\nC,F\nD,C\nD,E\nD,F\nE,A\nF,A\nF,B\nF,E\nB->A\nA->B\nD->A\n*/\n int i,j;\n int cnt;\n ALGraph G;\n char tmp[20];\n\n CreateDG_AL(&G);\n\n while (1) {\n scanf("%s", tmp); //A->B\n i = LocateVex_AL(G, tmp[0]);\n j = LocateVex_AL(G, tmp[3]);\n for (cnt=0; cnt\n#include\n \n#define mem(a,b) memset(a,b,sizeof a);\n \nusing namespace std;\n \ntypedef long long ll;\n \nconst int maxn=50;\nint mid[maxn],po[maxn],pr[maxn];\nint first;\n \nstruct node\n{\n int l,r;\n}T[maxn];\n \n// \u4e2d\u5e8f+\u5148\u5e8f=>\u4e8c\u53c9\u6811\nint mid_pr_build(int la,int ra,int lb,int rb) // la,ra\uff1a\u8868\u793a\u4e2d\u5e8f\u904d\u5386 lb,rb\uff1a\u8868\u793a\u5148\u5e8f\u904d\u5386\n{\n\xa0\xa0\xa0\xa0// \u8fd9\u91cc\u4e0d\u80fd\u7b49\u4e8e\uff0c\u56e0\u4e3a\u5047\u8bbe\uff1alen==1\uff0c\u5219la==ra\uff0c\u76f4\u63a5\u8fd4\u56de\uff0c\u4f46\u662f\u5b9e\u9645\u4e0a\u662f\u6709\u4e00\u4e2a rt \u7684\uff0c\u5374\u6ca1\u88ab\u5efa\u7acb\n if(la>ra) return 0; \n int rt=pr[lb]; // \u56e0\u4e3a\u5148\u5e8f\u904d\u5386\u7b2c\u4e00\u4e2a\u662f\u6839\u8282\u70b9\n int p1=la,p2;\n \n while(mid[p1]!=rt) p1++; // \u5728\u4e2d\u5e8f\u904d\u5386\u4e2d\u627e\u5230\u6839\u8282\u70b9\n p2=p1-la;\n T[rt].l=mid_pr_build(la,p1-1,lb+1,lb+p2); // \u5de6\u5b50\u6811\uff08\u9501\u5b9a\u5de6\u5b50\u6811\u8303\u56f4\u7684\u4e0b\u6807\uff09\n T[rt].r=mid_pr_build(p1+1,ra,lb+p2+1,rb); // \u53f3\u5b50\u6811\uff08\u9501\u5b9a\u53f3\u5b50\u6811\u8303\u56f4\u7684\u4e0b\u6807\uff09\n \n return rt;\n}\n \n// \u4e2d\u5e8f+\u540e\u5e8f=>\u4e8c\u53c9\u6811\nint mid_po_build(int la,int ra,int lb,int rb) // la,ra\uff1a\u8868\u793a\u4e2d\u5e8f\u904d\u5386 lb,rb\uff1a\u8868\u793a\u540e\u5e8f\u904d\u5386\n{\n if(la>ra) return 0;\n int rt=po[rb]; // \u56e0\u4e3a\u540e\u5e8f\u904d\u5386\u6700\u540e\u4e00\u4e2a\u662f\u6839\u8282\u70b9\n int p1=la,p2;\n \n while(mid[p1]!=rt) p1++; // \u5728\u4e2d\u5e8f\u904d\u5386\u4e2d\u627e\u5230\u6839\u8282\u70b9\n p2=p1-la;\n T[rt].l=mid_po_build(la,p1-1,lb,lb+p2-1); // \u5de6\u5b50\u6811\uff08\u9501\u5b9a\u5de6\u5b50\u6811\u8303\u56f4\u7684\u4e0b\u6807\uff09\n T[rt].r=mid_po_build(p1+1,ra,lb+p2,rb-1); // \u53f3\u5b50\u6811\uff08\u9501\u5b9a\u53f3\u5b50\u6811\u8303\u56f4\u7684\u4e0b\u6807\uff09\n \n return rt;\n}\n \n// \u6c42\u6811\u9ad8\nint getHeight(int rt)\n{\n\xa0 \xa0 if(rt==0) return 0;\n\xa0 \xa0 return 1+max(getHeight(T[rt].l),getHeight(T[rt].r));\n}\n \n// \u5c42\u5e8f\u904d\u5386\nvoid bfs(int rt)\n{\n queue q;\n vector v;\n q.push(rt);\n \n while(!q.empty())\n {\n int w=q.front();\n q.pop();\n v.push_back(w);\n if(T[w].l!=0) q.push(T[w].l);\n if(T[w].r!=0) q.push(T[w].r);\n }\n \n int len=v.size();\n for(int i=0;i\n#include\n \n#define mem(a,b) memset(a,b,sizeof a);\n \nusing namespace std;\n \ntypedef long long ll;\n \nconst int maxn=50;\nint mid[maxn],po[maxn],pr[maxn];\nint first;\n \nstruct node\n{\n int l,r;\n}T[maxn];\n \nint mid_pr_build(int la,int ra,int lb,int rb)\n{\n if(la>ra) return 0;\n int rt=pr[lb];\n int p1=la,p2;\n \n while(mid[p1]!=rt) p1++;\n p2=p1-la;\n T[rt].l=mid_pr_build(la,p1-1,lb+1,lb+p2);\n T[rt].r=mid_pr_build(p1+1,ra,lb+p2+1,rb);\n \n return rt;\n}\n \nint mid_po_build(int la,int ra,int lb,int rb)\n{\n if(la>ra) return 0;\n int rt=po[rb];\n int p1=la,p2;\n \n while(mid[p1]!=rt) p1++;\n p2=p1-la;\n T[rt].l=mid_po_build(la,p1-1,lb,lb+p2-1);\n T[rt].r=mid_po_build(p1+1,ra,lb+p2,rb-1);\n \n return rt;\n}\n \nint getHeight(int rt)\n{\n\xa0 \xa0 if(rt==0) return 0;\n\xa0 \xa0 return 1+max(getHeight(T[rt].l),getHeight(T[rt].r));\n}\n \nvoid bfs(int rt)\n{\n queue q;\n vector v;\n q.push(rt);\n \n while(!q.empty())\n {\n int w=q.front();\n q.pop();\n v.push_back(w);\n if(T[w].l!=0) q.push(T[w].l);\n if(T[w].r!=0) q.push(T[w].r);\n }\n \n int len=v.size();\n for(int i=0;i\n#include\n \n#define mem(a,b) memset(a,b,sizeof a)\n#define ssclr(ss) ss.clear(), ss.str("")\n#define INF 0x3f3f3f3f\n#define MOD 1000000007\n \nusing namespace std;\n \ntypedef long long ll;\n \nconst int maxn=5e4+1000;\n \nint f;\nint pre[maxn], in[maxn];\n \nstruct node\n{\n int l,r,d;\n}T[maxn];\n \nint create(int l1,int r1,int l2,int r2) // in pre\n{\n if(l2>r2) return -1;\n int rt=l2;\n int p1=l1,p2;\n \n while(in[p1]!=pre[rt]) p1++;\n p2=p1-l1;\n \n T[rt].d=pre[rt];\n T[rt].l=create(l1,p1-1,l2+1,l2+p2);\n T[rt].r=create(p1+1,r1,l2+p2+1,r2);\n \n return rt;\n}\n \nvoid postT(int rt)\n{\n if(rt==-1 || !f) return;\n postT(T[rt].l);\n postT(T[rt].r);\n if(f) f=0, printf("%d\\n",T[rt].d);\n}\n \nint main()\n{\n int n;\n scanf("%d",&n);\n for(int i=0;i{r.d(t,{Zo:()=>s,kt:()=>d});var n=r(7294);function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function a(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var l=n.createContext({}),p=function(e){var t=n.useContext(l),r=t;return e&&(r="function"==typeof e?e(t):a(a({},t),e)),r},s=function(e){var t=p(e.components);return n.createElement(l.Provider,{value:t},e.children)},u="mdxType",f={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},m=n.forwardRef((function(e,t){var r=e.components,o=e.mdxType,i=e.originalType,l=e.parentName,s=c(e,["components","mdxType","originalType","parentName"]),u=p(r),m=o,d=u["".concat(l,".").concat(m)]||u[m]||f[m]||i;return r?n.createElement(d,a(a({ref:t},s),{},{components:r})):n.createElement(d,a({ref:t},s))}));function d(e,t){var r=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var i=r.length,a=new Array(i);a[0]=m;var c={};for(var l in t)hasOwnProperty.call(t,l)&&(c[l]=t[l]);c.originalType=e,c[u]="string"==typeof e?e:o,a[1]=c;for(var p=2;p{r.r(t),r.d(t,{assets:()=>l,contentTitle:()=>a,default:()=>f,frontMatter:()=>i,metadata:()=>c,toc:()=>p});var n=r(7462),o=(r(7294),r(3905));const i={},a="Welcome",c={unversionedId:"Others/intro",id:"Others/intro",title:"Welcome",description:"\u6b22\u8fce\u6765\u5230\u7b14\u8bb0\u672c\u7684\u5176\u4ed6\u90e8\u5206",source:"@site/docs/Others/1-intro.md",sourceDirName:"Others",slug:"/Others/intro",permalink:"/docs/Others/intro",draft:!1,tags:[],version:"current",sidebarPosition:1,frontMatter:{},sidebar:"others",next:{title:"\u7ec8\u7aef\u4ee3\u7406",permalink:"/docs/Others/Linux/\u5b9e\u7528\u5de5\u5177/\u7ec8\u7aef\u4ee3\u7406"}},l={},p=[{value:"\u652f\u6301\u6211\uff01",id:"\u652f\u6301\u6211",level:2}],s={toc:p},u="wrapper";function f(e){let{components:t,...i}=e;return(0,o.kt)(u,(0,n.Z)({},s,i,{components:t,mdxType:"MDXLayout"}),(0,o.kt)("h1",{id:"welcome"},"Welcome"),(0,o.kt)("admonition",{type:"tip"},(0,o.kt)("p",{parentName:"admonition"},"\u6b22\u8fce\u6765\u5230\u7b14\u8bb0\u672c\u7684\u5176\u4ed6\u90e8\u5206")),(0,o.kt)("h2",{id:"\u652f\u6301\u6211"},"\u652f\u6301\u6211\uff01"),(0,o.kt)("p",null,"\u5982\u679c\u53ef\u4ee5\u5e2e\u5230\u4f60\u7684\u8bdd\u5c31\u7ed9\u4e2a\u514d\u8d39\u7684Star\u5427\uff01"),(0,o.kt)("p",null,(0,o.kt)("img",{src:r(9163).Z,width:"2778",height:"2046"})))}f.isMDXComponent=!0},9163:(e,t,r)=>{r.d(t,{Z:()=>n});const n=r.p+"assets/images/intro-822c34cd9b5577b06df8bb0956cdf947.png"}}]); \ No newline at end of file diff --git a/assets/js/459eb724.8d1c2600.js b/assets/js/459eb724.8d1c2600.js new file mode 100644 index 000000000..5ba56d867 --- /dev/null +++ b/assets/js/459eb724.8d1c2600.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunknpy_notebook=self.webpackChunknpy_notebook||[]).push([[3553],{3905:(a,e,t)=>{t.d(e,{Zo:()=>i,kt:()=>h});var s=t(7294);function m(a,e,t){return e in a?Object.defineProperty(a,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):a[e]=t,a}function n(a,e){var t=Object.keys(a);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(a);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable}))),t.push.apply(t,s)}return t}function p(a){for(var e=1;e=0||(m[t]=a[t]);return m}(a,e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);for(s=0;s=0||Object.prototype.propertyIsEnumerable.call(a,t)&&(m[t]=a[t])}return m}var N=s.createContext({}),l=function(a){var e=s.useContext(N),t=e;return a&&(t="function"==typeof a?a(e):p(p({},e),a)),t},i=function(a){var e=l(a.components);return s.createElement(N.Provider,{value:e},a.children)},k="mdxType",c={inlineCode:"code",wrapper:function(a){var e=a.children;return s.createElement(s.Fragment,{},e)}},o=s.forwardRef((function(a,e){var t=a.components,m=a.mdxType,n=a.originalType,N=a.parentName,i=r(a,["components","mdxType","originalType","parentName"]),k=l(t),o=m,h=k["".concat(N,".").concat(o)]||k[o]||c[o]||n;return t?s.createElement(h,p(p({ref:e},i),{},{components:t})):s.createElement(h,p({ref:e},i))}));function h(a,e){var t=arguments,m=e&&e.mdxType;if("string"==typeof a||m){var n=t.length,p=new Array(n);p[0]=o;var r={};for(var N in e)hasOwnProperty.call(e,N)&&(r[N]=e[N]);r.originalType=a,r[k]="string"==typeof a?a:m,p[1]=r;for(var l=2;l{t.r(e),t.d(e,{assets:()=>N,contentTitle:()=>p,default:()=>c,frontMatter:()=>n,metadata:()=>r,toc:()=>l});var s=t(7462),m=(t(7294),t(3905));const n={},p="NeurIPS 2017: Attention Is All You Need",r={unversionedId:"Deep-Learning/\u5927\u6a21\u578b/Attention-Is-All-You-Need",id:"Deep-Learning/\u5927\u6a21\u578b/Attention-Is-All-You-Need",title:"NeurIPS 2017: Attention Is All You Need",description:"\u8bba\u6587\uff1aarXiv",source:"@site/docs/Deep-Learning/5-\u5927\u6a21\u578b/2-Attention-Is-All-You-Need.md",sourceDirName:"Deep-Learning/5-\u5927\u6a21\u578b",slug:"/Deep-Learning/\u5927\u6a21\u578b/Attention-Is-All-You-Need",permalink:"/docs/Deep-Learning/\u5927\u6a21\u578b/Attention-Is-All-You-Need",draft:!1,tags:[],version:"current",sidebarPosition:2,frontMatter:{},sidebar:"deep_learning",previous:{title:"\u81ea\u6ce8\u610f\u529b\uff08Self-Attention\uff09",permalink:"/docs/Deep-Learning/\u5927\u6a21\u578b/Self-Attention"},next:{title:"\u81ea\u76d1\u7763\u5b66\u4e60\uff08Self-Supervised Learning\uff09",permalink:"/docs/Deep-Learning/\u5927\u6a21\u578b/Self-Supervised-Learning"}},N={},l=[{value:"\u6574\u4f53\u7ed3\u6784",id:"\u6574\u4f53\u7ed3\u6784",level:2},{value:"Encoder",id:"encoder",level:2},{value:"\u6574\u4f53\u7ed3\u6784",id:"\u6574\u4f53\u7ed3\u6784-1",level:3},{value:"\u4f4d\u7f6e\u7f16\u7801\uff08Positional Encoding\uff09",id:"\u4f4d\u7f6e\u7f16\u7801positional-encoding",level:3},{value:"\u5177\u4f53\u7ed3\u6784",id:"\u5177\u4f53\u7ed3\u6784",level:3},{value:"Decoder",id:"decoder",level:2},{value:"Autoregressive Decoder\uff08AT\uff09",id:"autoregressive-decoderat",level:3},{value:"\u6574\u4f53\u7ed3\u6784",id:"\u6574\u4f53\u7ed3\u6784-2",level:4},{value:"\u8bcd\u6c47\u8868\uff08Vocabulary\uff09",id:"\u8bcd\u6c47\u8868vocabulary",level:4},{value:"Begin\u7b26\u53f7",id:"begin\u7b26\u53f7",level:4},{value:"End\u7b26\u53f7",id:"end\u7b26\u53f7",level:4},{value:"\u63a9\u7801\u591a\u5934\u81ea\u6ce8\u610f\u529b\u673a\u5236\uff08Masked Multi-Head Self-Attention\uff09",id:"\u63a9\u7801\u591a\u5934\u81ea\u6ce8\u610f\u529b\u673a\u5236masked-multi-head-self-attention",level:4},{value:"\u4ea4\u53c9\u6ce8\u610f\u529b\uff08Cross-Attention\uff09",id:"\u4ea4\u53c9\u6ce8\u610f\u529bcross-attention",level:4},{value:"Non-Autoregressive Decoder\uff08NAT\uff09",id:"non-autoregressive-decodernat",level:3},{value:"\u8bad\u7ec3\uff08Training\uff09",id:"\u8bad\u7ec3training",level:2},{value:"\u635f\u5931\u51fd\u6570",id:"\u635f\u5931\u51fd\u6570",level:3},{value:"Teacher Forcing",id:"teacher-forcing",level:3},{value:"Teacher Forcing\u4e0eMasked Multi-Head Self-Attention",id:"teacher-forcing\u4e0emasked-multi-head-self-attention",level:3}],i={toc:l},k="wrapper";function c(a){let{components:e,...t}=a;return(0,m.kt)(k,(0,s.Z)({},i,t,{components:e,mdxType:"MDXLayout"}),(0,m.kt)("h1",{id:"neurips-2017-attention-is-all-you-need"},"NeurIPS 2017: Attention Is All You Need"),(0,m.kt)("admonition",{title:"\u76f8\u5173\u94fe\u63a5",type:"tip"},(0,m.kt)("p",{parentName:"admonition"},"\u8bba\u6587\uff1a",(0,m.kt)("a",{parentName:"p",href:"https://arxiv.org/pdf/1706.03762.pdf"},"arXiv")),(0,m.kt)("p",{parentName:"admonition"},"\u53c2\u8003\u8d44\u6599\uff1a"),(0,m.kt)("ul",{parentName:"admonition"},(0,m.kt)("li",{parentName:"ul"},(0,m.kt)("a",{parentName:"li",href:"https://zhuanlan.zhihu.com/p/338817680"},"Transformer\u6a21\u578b\u8be6\u89e3\uff08\u56fe\u89e3\u6700\u5b8c\u6574\u7248\uff09")),(0,m.kt)("li",{parentName:"ul"},(0,m.kt)("a",{parentName:"li",href:"https://www.youtube.com/watch?v=N6aRv06iv2g&list=PLJV_el3uVTsMhtt7_Y6sgTHGHp1Vb2P2J&index=13"},"\u3010\u6a5f\u5668\u5b78\u7fd22021\u3011Transformer (\u4e0b)")))),(0,m.kt)("p",null,"Transformer\u662fSequence-to-Sequence (Seq2Seq) \u6a21\u578b\uff0c\u6a21\u578b\u7684\u8f93\u5165\u662f\u5411\u91cf\u5e8f\u5217\uff0c\u8f93\u51fa\u540c\u6837\u662f\u5411\u91cf\u5e8f\u5217\uff0c\u4e14\u8f93\u51fa\u7684\u957f\u5ea6\u7531\u6a21\u578b\u7ecf\u8fc7\u5b66\u4e60\u51b3\u5b9a\u3002"),(0,m.kt)("h2",{id:"\u6574\u4f53\u7ed3\u6784"},"\u6574\u4f53\u7ed3\u6784"),(0,m.kt)("p",null,"Transformer\u7531Encoder\u548cDecoder\u7ec4\u6210\uff0c\u7f16\u7801\u5668\u548c\u89e3\u7801\u5668\u90fd\u5305\u542b6\u4e2aBlock\uff0c\u6574\u4f53\u7ed3\u6784\u5982\u4e0b\u56fe\u6240\u793a\u3002"),(0,m.kt)("p",null,(0,m.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_imagesimage-20231119110150110.png",alt:"image-20231119110150110"})),(0,m.kt)("h2",{id:"encoder"},"Encoder"),(0,m.kt)("h3",{id:"\u6574\u4f53\u7ed3\u6784-1"},"\u6574\u4f53\u7ed3\u6784"),(0,m.kt)("p",null,"Transformer Encoder\u7ed3\u6784\u5982\u4e0b\u56fe\u6240\u793a\u3002\u5176\u4e2d\uff0cAdd\u6307\u7684\u662f\u6b8b\u5dee\u8fde\u63a5Residual Connection\uff0cNorm\u6307\u7684\u662fLayer Normalization\u3002"),(0,m.kt)("p",null,(0,m.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_imagesimage-20231115165100210.png",alt:"image-20231115164324713"})),(0,m.kt)("h3",{id:"\u4f4d\u7f6e\u7f16\u7801positional-encoding"},"\u4f4d\u7f6e\u7f16\u7801\uff08Positional Encoding\uff09"),(0,m.kt)("p",null,"\u5bf9\u4e8e\u8f93\u5165\u7684\u53e5\u5b50\uff0c\u5bf9\u4e00\u4e2a\u8bcd\u6c47\u7684\u5d4c\u5165\u5411\u91cf\u7684\u5947\u6570\u7ef4\u5ea6\u4f7f\u7528sine\u51fd\u6570\u8fdb\u884c\u7f16\u7801\uff0c\u5bf9\u5076\u6570\u7ef4\u5ea6\u4f7f\u7528cosine\u51fd\u6570\u8ba1\u7b97\u7f16\u7801\u3002"),(0,m.kt)("p",null,"\u516c\u5f0f\u5982\u4e0b\u6240\u793a\uff0c\u5176\u4e2d",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"p"),(0,m.kt)("mi",{parentName:"mrow"},"o"),(0,m.kt)("mi",{parentName:"mrow"},"s")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"pos")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.625em",verticalAlign:"-0.1944em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"p"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"os"))))),"\u6307\u7684\u662f\u8be5\u8bcd\u6c47\u5728\u6574\u4e2a\u8f93\u5165\u53e5\u5b50\u4e2d\u7684\u4f4d\u7f6e\uff0c",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mn",{parentName:"mrow"},"2"),(0,m.kt)("mi",{parentName:"mrow"},"i")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"2i")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6595em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"2"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"i"))))),"\u4ee5\u53ca",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mn",{parentName:"mrow"},"2"),(0,m.kt)("mi",{parentName:"mrow"},"i"),(0,m.kt)("mo",{parentName:"mrow"},"+"),(0,m.kt)("mn",{parentName:"mrow"},"1")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"2i+1")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.7429em",verticalAlign:"-0.0833em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"2"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"i"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"+"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6444em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"1"))))),"\u6307\u7684\u662f\u8be5\u8bcd\u6c47\u7684\u5d4c\u5165\u5411\u91cf\u4e2d\u7684\u7ef4\u5ea6\uff0c",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"d"),(0,m.kt)("mrow",{parentName:"msub"},(0,m.kt)("mi",{parentName:"mrow"},"m"),(0,m.kt)("mi",{parentName:"mrow"},"o"),(0,m.kt)("mi",{parentName:"mrow"},"d"),(0,m.kt)("mi",{parentName:"mrow"},"e"),(0,m.kt)("mi",{parentName:"mrow"},"l")))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"d_{model}")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.8444em",verticalAlign:"-0.15em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"d"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3361em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"m"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"o"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"d"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"e"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.01968em"}},"l"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))))))),"\u6307\u7684\u662f\u5728\u5d4c\u5165\u5c42\u4e4b\u540e\u5d4c\u5165\u5411\u91cf\u7684\u603b\u7ef4\u5ea6\u3002\u5373\u5bf9\u4e8e\u6bcf\u4e2a\u8f93\u5165\u8bcd\u6c47\uff0c\u90fd\u8981\u8ba1\u7b97",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"d"),(0,m.kt)("mrow",{parentName:"msub"},(0,m.kt)("mi",{parentName:"mrow"},"m"),(0,m.kt)("mi",{parentName:"mrow"},"o"),(0,m.kt)("mi",{parentName:"mrow"},"d"),(0,m.kt)("mi",{parentName:"mrow"},"e"),(0,m.kt)("mi",{parentName:"mrow"},"l")))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"d_{model}")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.8444em",verticalAlign:"-0.15em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"d"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3361em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"m"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"o"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"d"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"e"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.01968em"}},"l"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))))))),"\u6b21\u4f4d\u7f6e\u7f16\u7801\u3002"),(0,m.kt)("div",{className:"math math-display"},(0,m.kt)("span",{parentName:"div",className:"katex-display"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mtable",{parentName:"semantics",width:"100%"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mrow",{parentName:"mtd"},(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"E"),(0,m.kt)("mrow",{parentName:"msub"},(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"p"),(0,m.kt)("mi",{parentName:"mrow"},"o"),(0,m.kt)("mi",{parentName:"mrow"},"s"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mn",{parentName:"mrow"},"2"),(0,m.kt)("mi",{parentName:"mrow"},"i"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"))),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("mi",{parentName:"mrow"},"s"),(0,m.kt)("mi",{parentName:"mrow"},"i"),(0,m.kt)("mi",{parentName:"mrow"},"n"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mfrac",{parentName:"mrow"},(0,m.kt)("mrow",{parentName:"mfrac"},(0,m.kt)("mi",{parentName:"mrow"},"p"),(0,m.kt)("mi",{parentName:"mrow"},"o"),(0,m.kt)("mi",{parentName:"mrow"},"s")),(0,m.kt)("mrow",{parentName:"mfrac"},(0,m.kt)("mn",{parentName:"mrow"},"1000"),(0,m.kt)("msup",{parentName:"mrow"},(0,m.kt)("mn",{parentName:"msup"},"0"),(0,m.kt)("mrow",{parentName:"msup"},(0,m.kt)("mn",{parentName:"mrow"},"2"),(0,m.kt)("mi",{parentName:"mrow"},"i"),(0,m.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"/"),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"d"),(0,m.kt)("mrow",{parentName:"msub"},(0,m.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"m"),(0,m.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"o"),(0,m.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"d"),(0,m.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"e"),(0,m.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"l"))))))),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"))),(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mtext",{parentName:"mtd"},"(1)")))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"PE_{(pos,2i)}=sin(\\frac{pos}{10000^{2i/d_{\\mathrm{model}}}}) \\tag{1}")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1.0385em",verticalAlign:"-0.3552em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"P"),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05764em"}},"E"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3448em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.5198em",marginLeft:"-0.0576em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mopen mtight"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"p"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"os"),(0,m.kt)("span",{parentName:"span",className:"mpunct mtight"},","),(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"2"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"i"),(0,m.kt)("span",{parentName:"span",className:"mclose mtight"},")"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3552em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"="),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1.8116em",verticalAlign:"-0.704em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"s"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"in"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mopen nulldelimiter"}),(0,m.kt)("span",{parentName:"span",className:"mfrac"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.1076em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.296em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"1000"),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"0"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.814em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.989em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"2"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"i"),(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"/"),(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"d"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3448em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.3488em",marginLeft:"0em",marginRight:"0.0714em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.5em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size3 size1 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathrm mtight"},"model")))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.1512em"}},(0,m.kt)("span",{parentName:"span"})))))))))))))))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.23em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"frac-line",style:{borderBottomWidth:"0.04em"}})),(0,m.kt)("span",{parentName:"span",style:{top:"-3.677em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"p"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"os")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.704em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"mclose nulldelimiter"})),(0,m.kt)("span",{parentName:"span",className:"mclose"},")")),(0,m.kt)("span",{parentName:"span",className:"tag"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1.8116em",verticalAlign:"-0.704em"}}),(0,m.kt)("span",{parentName:"span",className:"mord text"},(0,m.kt)("span",{parentName:"span",className:"mord"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"1")),(0,m.kt)("span",{parentName:"span",className:"mord"},")"))))))),(0,m.kt)("div",{className:"math math-display"},(0,m.kt)("span",{parentName:"div",className:"katex-display"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mtable",{parentName:"semantics",width:"100%"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mrow",{parentName:"mtd"},(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"E"),(0,m.kt)("mrow",{parentName:"msub"},(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"p"),(0,m.kt)("mi",{parentName:"mrow"},"o"),(0,m.kt)("mi",{parentName:"mrow"},"s"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mn",{parentName:"mrow"},"2"),(0,m.kt)("mi",{parentName:"mrow"},"i"),(0,m.kt)("mo",{parentName:"mrow"},"+"),(0,m.kt)("mn",{parentName:"mrow"},"1"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"))),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("mi",{parentName:"mrow"},"c"),(0,m.kt)("mi",{parentName:"mrow"},"o"),(0,m.kt)("mi",{parentName:"mrow"},"s"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mfrac",{parentName:"mrow"},(0,m.kt)("mrow",{parentName:"mfrac"},(0,m.kt)("mi",{parentName:"mrow"},"p"),(0,m.kt)("mi",{parentName:"mrow"},"o"),(0,m.kt)("mi",{parentName:"mrow"},"s")),(0,m.kt)("mrow",{parentName:"mfrac"},(0,m.kt)("mn",{parentName:"mrow"},"1000"),(0,m.kt)("msup",{parentName:"mrow"},(0,m.kt)("mn",{parentName:"msup"},"0"),(0,m.kt)("mrow",{parentName:"msup"},(0,m.kt)("mn",{parentName:"mrow"},"2"),(0,m.kt)("mi",{parentName:"mrow"},"i"),(0,m.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"/"),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"d"),(0,m.kt)("mrow",{parentName:"msub"},(0,m.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"m"),(0,m.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"o"),(0,m.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"d"),(0,m.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"e"),(0,m.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"l"))))))),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"))),(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mtext",{parentName:"mtd"},"(2)")))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"PE_{(pos,2i+1)}=cos(\\frac{pos}{10000^{2i/d_{\\mathrm{model}}}}) \\tag{2}")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1.0385em",verticalAlign:"-0.3552em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"P"),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05764em"}},"E"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3448em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.5198em",marginLeft:"-0.0576em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mopen mtight"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"p"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"os"),(0,m.kt)("span",{parentName:"span",className:"mpunct mtight"},","),(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"2"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"i"),(0,m.kt)("span",{parentName:"span",className:"mbin mtight"},"+"),(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"1"),(0,m.kt)("span",{parentName:"span",className:"mclose mtight"},")"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3552em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"="),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1.8116em",verticalAlign:"-0.704em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"cos"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mopen nulldelimiter"}),(0,m.kt)("span",{parentName:"span",className:"mfrac"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.1076em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.296em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"1000"),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"0"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.814em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.989em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"2"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"i"),(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"/"),(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"d"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3448em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.3488em",marginLeft:"0em",marginRight:"0.0714em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.5em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size3 size1 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathrm mtight"},"model")))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.1512em"}},(0,m.kt)("span",{parentName:"span"})))))))))))))))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.23em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"frac-line",style:{borderBottomWidth:"0.04em"}})),(0,m.kt)("span",{parentName:"span",style:{top:"-3.677em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"p"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"os")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.704em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"mclose nulldelimiter"})),(0,m.kt)("span",{parentName:"span",className:"mclose"},")")),(0,m.kt)("span",{parentName:"span",className:"tag"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1.8116em",verticalAlign:"-0.704em"}}),(0,m.kt)("span",{parentName:"span",className:"mord text"},(0,m.kt)("span",{parentName:"span",className:"mord"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"2")),(0,m.kt)("span",{parentName:"span",className:"mord"},")"))))))),(0,m.kt)("p",null,"\u6839\u636e\u4e09\u89d2\u51fd\u6570\u7684\u6027\u8d28\uff0c\u5bf9\u4e8e",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"p"),(0,m.kt)("mi",{parentName:"mrow"},"o"),(0,m.kt)("mi",{parentName:"mrow"},"s"),(0,m.kt)("mo",{parentName:"mrow"},"+"),(0,m.kt)("mi",{parentName:"mrow"},"k")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"pos+k")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.7778em",verticalAlign:"-0.1944em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"p"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"os"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"+"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6944em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03148em"}},"k"))))),"\u4f4d\u7f6e\u7684\u5d4c\u5165\u5411\u91cf\u7684\u67d0\u4e00\u7ef4\u5ea6\uff08",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mn",{parentName:"mrow"},"2"),(0,m.kt)("mi",{parentName:"mrow"},"i")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"2i")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6595em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"2"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"i"))))),"\u6216",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mn",{parentName:"mrow"},"2"),(0,m.kt)("mi",{parentName:"mrow"},"i"),(0,m.kt)("mo",{parentName:"mrow"},"+"),(0,m.kt)("mn",{parentName:"mrow"},"1")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"2i+1")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.7429em",verticalAlign:"-0.0833em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"2"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"i"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"+"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6444em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"1"))))),"\uff09\u800c\u8a00\uff0c\u53ef\u4ee5\u8868\u793a\u4e3a",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"p"),(0,m.kt)("mi",{parentName:"mrow"},"o"),(0,m.kt)("mi",{parentName:"mrow"},"s")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"pos")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.625em",verticalAlign:"-0.1944em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"p"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"os"))))),"\u4f4d\u7f6e\u4e0e",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"k")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"k")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6944em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03148em"}},"k"))))),"\u4f4d\u7f6e\u7684\u5d4c\u5165\u5411\u91cf\u7684",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mn",{parentName:"mrow"},"2"),(0,m.kt)("mi",{parentName:"mrow"},"i")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"2i")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6595em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"2"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"i"))))),"\u4e0e",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mn",{parentName:"mrow"},"2"),(0,m.kt)("mi",{parentName:"mrow"},"i"),(0,m.kt)("mo",{parentName:"mrow"},"+"),(0,m.kt)("mn",{parentName:"mrow"},"1")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"2i+1")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.7429em",verticalAlign:"-0.0833em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"2"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"i"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"+"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6444em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"1"))))),"\u7ef4\u5ea6\u7684\u7ebf\u6027\u7ec4\u5408\uff0c\u4f7f\u5f97\u4f4d\u7f6e\u5411\u91cf\u4e2d\u8574\u542b\u4e86\u76f8\u5bf9\u4f4d\u7f6e\u7684\u4fe1\u606f\u3002"),(0,m.kt)("div",{className:"math math-display"},(0,m.kt)("span",{parentName:"div",className:"katex-display"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mtable",{parentName:"semantics",width:"100%"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mtable",{parentName:"mtd",rowspacing:"0.16em",columnalign:"left",columnspacing:"1em"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("mrow",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("mi",{parentName:"mrow"},"E"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"p"),(0,m.kt)("mi",{parentName:"mrow"},"o"),(0,m.kt)("mi",{parentName:"mrow"},"s"),(0,m.kt)("mo",{parentName:"mrow"},"+"),(0,m.kt)("mi",{parentName:"mrow"},"k"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mn",{parentName:"mrow"},"2"),(0,m.kt)("mi",{parentName:"mrow"},"i"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("mi",{parentName:"mrow"},"E"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"p"),(0,m.kt)("mi",{parentName:"mrow"},"o"),(0,m.kt)("mi",{parentName:"mrow"},"s"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mn",{parentName:"mrow"},"2"),(0,m.kt)("mi",{parentName:"mrow"},"i"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"\xd7"),(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("mi",{parentName:"mrow"},"E"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"k"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mn",{parentName:"mrow"},"2"),(0,m.kt)("mi",{parentName:"mrow"},"i"),(0,m.kt)("mo",{parentName:"mrow"},"+"),(0,m.kt)("mn",{parentName:"mrow"},"1"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"+"),(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("mi",{parentName:"mrow"},"E"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"p"),(0,m.kt)("mi",{parentName:"mrow"},"o"),(0,m.kt)("mi",{parentName:"mrow"},"s"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mn",{parentName:"mrow"},"2"),(0,m.kt)("mi",{parentName:"mrow"},"i"),(0,m.kt)("mo",{parentName:"mrow"},"+"),(0,m.kt)("mn",{parentName:"mrow"},"1"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"\xd7"),(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("mi",{parentName:"mrow"},"E"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"k"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mn",{parentName:"mrow"},"2"),(0,m.kt)("mi",{parentName:"mrow"},"i"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"))))),(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("mrow",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("mi",{parentName:"mrow"},"E"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"p"),(0,m.kt)("mi",{parentName:"mrow"},"o"),(0,m.kt)("mi",{parentName:"mrow"},"s"),(0,m.kt)("mo",{parentName:"mrow"},"+"),(0,m.kt)("mi",{parentName:"mrow"},"k"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mn",{parentName:"mrow"},"2"),(0,m.kt)("mi",{parentName:"mrow"},"i"),(0,m.kt)("mo",{parentName:"mrow"},"+"),(0,m.kt)("mn",{parentName:"mrow"},"1"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("mi",{parentName:"mrow"},"E"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"p"),(0,m.kt)("mi",{parentName:"mrow"},"o"),(0,m.kt)("mi",{parentName:"mrow"},"s"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mn",{parentName:"mrow"},"2"),(0,m.kt)("mi",{parentName:"mrow"},"i"),(0,m.kt)("mo",{parentName:"mrow"},"+"),(0,m.kt)("mn",{parentName:"mrow"},"1"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"\xd7"),(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("mi",{parentName:"mrow"},"E"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"k"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mn",{parentName:"mrow"},"2"),(0,m.kt)("mi",{parentName:"mrow"},"i"),(0,m.kt)("mo",{parentName:"mrow"},"+"),(0,m.kt)("mn",{parentName:"mrow"},"1"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"\u2212"),(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("mi",{parentName:"mrow"},"E"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"p"),(0,m.kt)("mi",{parentName:"mrow"},"o"),(0,m.kt)("mi",{parentName:"mrow"},"s"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mn",{parentName:"mrow"},"2"),(0,m.kt)("mi",{parentName:"mrow"},"i"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"\xd7"),(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("mi",{parentName:"mrow"},"E"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"k"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mn",{parentName:"mrow"},"2"),(0,m.kt)("mi",{parentName:"mrow"},"i"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"))))))),(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mtext",{parentName:"mtd"},"(3)")))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"\\begin{array}{l}PE(pos+k,2i)=PE(pos,2i)\\times PE(k,2i+1)+PE(pos,2i+1)\\times PE(k,2i)\\\\PE(pos+k,2i+1)=PE(pos,2i+1)\\times PE(k,2i+1)-PE(pos,2i)\\times PE(k,2i)\\end{array} \\tag{3}")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"2.4em",verticalAlign:"-0.95em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mtable"},(0,m.kt)("span",{parentName:"span",className:"arraycolsep",style:{width:"0.5em"}}),(0,m.kt)("span",{parentName:"span",className:"col-align-l"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.45em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-3.61em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05764em"}},"PE"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"p"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"os"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"+"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03148em"}},"k"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"2"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"i"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"="),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05764em"}},"PE"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"p"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"os"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"2"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"i"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"\xd7"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05764em"}},"PE"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03148em"}},"k"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"2"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"i"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"+"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"1"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"+"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05764em"}},"PE"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"p"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"os"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"2"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"i"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"+"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"1"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"\xd7"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05764em"}},"PE"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03148em"}},"k"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"2"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"i"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"))),(0,m.kt)("span",{parentName:"span",style:{top:"-2.41em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05764em"}},"PE"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"p"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"os"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"+"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03148em"}},"k"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"2"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"i"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"+"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"1"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"="),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05764em"}},"PE"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"p"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"os"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"2"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"i"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"+"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"1"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"\xd7"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05764em"}},"PE"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03148em"}},"k"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"2"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"i"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"+"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"1"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"\u2212"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05764em"}},"PE"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"p"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"os"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"2"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"i"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"\xd7"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05764em"}},"PE"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03148em"}},"k"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"2"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"i"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.95em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"arraycolsep",style:{width:"0.5em"}})))),(0,m.kt)("span",{parentName:"span",className:"tag"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"2.4em",verticalAlign:"-0.95em"}}),(0,m.kt)("span",{parentName:"span",className:"mord text"},(0,m.kt)("span",{parentName:"span",className:"mord"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"3")),(0,m.kt)("span",{parentName:"span",className:"mord"},")"))))))),(0,m.kt)("p",null,"\u6700\u7ec8\uff0c\u4f4d\u7f6e\u7f16\u7801\u5411\u91cf\u7684\u7ef4\u5ea6\u4e0e\u8bcd\u6c47\u7684\u5d4c\u5165\u7ef4\u5ea6\u76f8\u540c\uff0c\u8fdb\u884celement-wise\u7684\u76f8\u52a0\u64cd\u4f5c\u3002"),(0,m.kt)("div",{className:"math math-display"},(0,m.kt)("span",{parentName:"div",className:"katex-display"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mtable",{parentName:"semantics",width:"100%"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mrow",{parentName:"mtd"},(0,m.kt)("mi",{parentName:"mrow"},"I"),(0,m.kt)("mi",{parentName:"mrow"},"n"),(0,m.kt)("mi",{parentName:"mrow"},"p"),(0,m.kt)("mi",{parentName:"mrow"},"u"),(0,m.kt)("mi",{parentName:"mrow"},"t"),(0,m.kt)("mi",{parentName:"mrow"},"E"),(0,m.kt)("mi",{parentName:"mrow"},"m"),(0,m.kt)("mi",{parentName:"mrow"},"b"),(0,m.kt)("mi",{parentName:"mrow"},"e"),(0,m.kt)("mi",{parentName:"mrow"},"d"),(0,m.kt)("mi",{parentName:"mrow"},"d"),(0,m.kt)("mi",{parentName:"mrow"},"i"),(0,m.kt)("mi",{parentName:"mrow"},"n"),(0,m.kt)("mi",{parentName:"mrow"},"g"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"p"),(0,m.kt)("mi",{parentName:"mrow"},"o"),(0,m.kt)("mi",{parentName:"mrow"},"s"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"i"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("mi",{parentName:"mrow"},"W"),(0,m.kt)("mi",{parentName:"mrow"},"o"),(0,m.kt)("mi",{parentName:"mrow"},"r"),(0,m.kt)("mi",{parentName:"mrow"},"d"),(0,m.kt)("mi",{parentName:"mrow"},"E"),(0,m.kt)("mi",{parentName:"mrow"},"m"),(0,m.kt)("mi",{parentName:"mrow"},"b"),(0,m.kt)("mi",{parentName:"mrow"},"e"),(0,m.kt)("mi",{parentName:"mrow"},"d"),(0,m.kt)("mi",{parentName:"mrow"},"d"),(0,m.kt)("mi",{parentName:"mrow"},"i"),(0,m.kt)("mi",{parentName:"mrow"},"n"),(0,m.kt)("mi",{parentName:"mrow"},"g"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"p"),(0,m.kt)("mi",{parentName:"mrow"},"o"),(0,m.kt)("mi",{parentName:"mrow"},"s"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"i"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"+"),(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("mi",{parentName:"mrow"},"o"),(0,m.kt)("mi",{parentName:"mrow"},"s"),(0,m.kt)("mi",{parentName:"mrow"},"i"),(0,m.kt)("mi",{parentName:"mrow"},"t"),(0,m.kt)("mi",{parentName:"mrow"},"i"),(0,m.kt)("mi",{parentName:"mrow"},"o"),(0,m.kt)("mi",{parentName:"mrow"},"n"),(0,m.kt)("mi",{parentName:"mrow"},"E"),(0,m.kt)("mi",{parentName:"mrow"},"n"),(0,m.kt)("mi",{parentName:"mrow"},"c"),(0,m.kt)("mi",{parentName:"mrow"},"o"),(0,m.kt)("mi",{parentName:"mrow"},"d"),(0,m.kt)("mi",{parentName:"mrow"},"i"),(0,m.kt)("mi",{parentName:"mrow"},"n"),(0,m.kt)("mi",{parentName:"mrow"},"g"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"p"),(0,m.kt)("mi",{parentName:"mrow"},"o"),(0,m.kt)("mi",{parentName:"mrow"},"s"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"i"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"))),(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mtext",{parentName:"mtd"},"(4)")))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"InputEmbedding(pos,i)=WordEmbedding(pos,i)+PositionEncoding(pos,i) \\tag{4}")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.07847em"}},"I"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"n"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"p"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"u"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05764em"}},"tE"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"mb"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"e"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"dd"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"in"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"g"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"p"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"os"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"i"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"="),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"W"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02778em"}},"or"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"d"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05764em"}},"E"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"mb"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"e"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"dd"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"in"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"g"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"p"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"os"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"i"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"+"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"P"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"os"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"i"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"t"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"i"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"o"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"n"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05764em"}},"E"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"n"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"co"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"d"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"in"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"g"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"p"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"os"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"i"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")")),(0,m.kt)("span",{parentName:"span",className:"tag"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord text"},(0,m.kt)("span",{parentName:"span",className:"mord"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"4")),(0,m.kt)("span",{parentName:"span",className:"mord"},")"))))))),(0,m.kt)("h3",{id:"\u5177\u4f53\u7ed3\u6784"},"\u5177\u4f53\u7ed3\u6784"),(0,m.kt)("p",null,(0,m.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_imagesimage-20231115164324713.png",alt:"image-20231115164324713"})),(0,m.kt)("p",null,"\u8f93\u5165\u5411\u91cf\u7531Word Embedding\u548cPositional Embedding\u76f8\u52a0\u5f97\u5230\u3002\u8f93\u5165\u5e8f\u5217\u7ecf\u8fc7Mutil-Head Self-Attention\u4e4b\u540e\uff0c\u901a\u8fc7Residual Connection\u52a0\u4e0a\u81ea\u8eab\u7684\u8f93\u5165\u5411\u91cf\uff0c\u518d\u7ecf\u8fc7Layer Normalization\uff0c\u4e4b\u540e\u9001\u5165FCN\u5e76\u8fdb\u884cResidual Connection\u52a0\u4e0a\u9001\u5165FCN\u7684\u8f93\u5165\u81ea\u8eab\uff0c\u6700\u7ec8\u518d\u8fdb\u884cLayer Normalization\uff0c\u4ee5\u4e0a\u6784\u6210\u4e86\u4e00\u4e2aEncoder Block\u3002\u6bcf\u4e00\u4e2aBlock\u8f93\u51fa\u7684\u5411\u91cf\u5e8f\u5217\u957f\u5ea6\u7b49\u4e8e\u8f93\u5165\u7684\u5411\u91cf\u5e8f\u5217\u957f\u5ea6\u3002"),(0,m.kt)("h2",{id:"decoder"},"Decoder"),(0,m.kt)("p",null,"Decoder\u7684\u4efb\u52a1\u662f\u751f\u6210\u8f93\u51fa\uff0c\u53ef\u4ee5\u6839\u636e\u662f\u5426\u4e00\u6b21\u6027\u751f\u6210\u8f93\u51fa\u5206\u4e3aAutoregressive\uff08\u81ea\u56de\u5f52\uff0cabbr. AT\uff09\u4ee5\u53caNon-Autoregressive\uff08\u975e\u81ea\u56de\u5f52\uff0cabbr. NAT\uff09\u4e24\u79cd\u6a21\u5f0f\u3002"),(0,m.kt)("p",null,"\u81ea\u56de\u5f52\u7c7b\u578b\u7684Decoder\u9700\u8981",(0,m.kt)("strong",{parentName:"p"},"\u9010\u6b65\u751f\u6210"),"\u8f93\u51fa\uff0c\u5e76\u5c06",(0,m.kt)("strong",{parentName:"p"},"\u4e4b\u524d\u81ea\u8eab\u8f93\u51fa\u7684\u6240\u6709\u8bcd\u6c47\u7ecf\u8fc7\u5d4c\u5165\u5c42\u540e\u751f\u6210token\u4f5c\u4e3a\u4e0b\u4e00\u6b21\u7684\u8f93\u5165"),"\uff0c\u901a\u5e38\u6bcf\u6b21\u751f\u6210\u4e00\u4e2a\u8bcd\u6216\u4e00\u4e2a\u7b26\u53f7\u3002\u8fd9\u79cd\u65b9\u5f0f\u7684\u7f3a\u70b9\u662f\u9700\u8981\u4fdd\u5b58\u548c\u66f4\u65b0\u8bcd\u8868\u4e2d\u7684\u6240\u6709\u53ef\u80fd\u9009\u9879\uff0c\u56e0\u6b64\u5728\u5927\u8bcd\u6c47\u8868\u4e0a\u53ef\u80fd\u4f1a\u53d8\u5f97\u975e\u5e38\u6162\u3002\u7136\u800c\uff0c\u5b83\u7684\u4f18\u70b9\u662f\u80fd\u591f\u5229\u7528\u4e0a\u4e0b\u6587\u4fe1\u606f\u6765\u751f\u6210\u8f93\u51fa\uff0c\u8fd9\u6709\u52a9\u4e8e\u63d0\u9ad8\u7ffb\u8bd1\u7684\u8d28\u91cf\u3002"),(0,m.kt)("p",null,"\u975e\u81ea\u56de\u5f52\u7c7b\u578b\u7684Decoder\u8bd5\u56fe\u5728\u4e00\u6b21\u64cd\u4f5c\u4e2d\u751f\u6210\u6574\u4e2a\u8f93\u51fa\u5e8f\u5217\u3002\u8fd9\u901a\u5e38\u901a\u8fc7\u4f7f\u7528\u8bf8\u5982\u6ce8\u610f\u529b\u673a\u5236\u7b49\u7b56\u7565\u6765\u5b9e\u73b0\uff0c\u8fd9\u4e9b\u7b56\u7565\u5141\u8bb8\u89e3\u7801\u5668\u5173\u6ce8\u8f93\u5165\u5e8f\u5217\u7684\u4e0d\u540c\u90e8\u5206\uff0c\u540c\u65f6\u751f\u6210\u8f93\u51fa\u5e8f\u5217\u7684\u4e0d\u540c\u90e8\u5206\u3002NAT\u7684\u4f18\u70b9\u5728\u4e8e\u5176\u9ad8\u6548\u6027\uff0c\u56e0\u4e3a\u5b83\u4e0d\u9700\u8981\u4fdd\u5b58\u548c\u66f4\u65b0\u5927\u91cf\u7684\u53ef\u80fd\u9009\u9879\u3002\u7136\u800c\uff0c\u7531\u4e8e\u5b83\u4e0d\u80fd\u5229\u7528\u4e0a\u4e0b\u6587\u4fe1\u606f\u6765\u751f\u6210\u8f93\u51fa\uff0c\u56e0\u6b64\u5176\u751f\u6210\u7684\u8f93\u51fa\u8d28\u91cf\u666e\u904d\u4f1a\u4f4e\u4e8eAT\u3002"),(0,m.kt)("h3",{id:"autoregressive-decoderat"},"Autoregressive Decoder\uff08AT\uff09"),(0,m.kt)("h4",{id:"\u6574\u4f53\u7ed3\u6784-2"},"\u6574\u4f53\u7ed3\u6784"),(0,m.kt)("p",null,(0,m.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_imagesimage-20231119102540689.png",alt:"image-20231119102540689"})),(0,m.kt)("h4",{id:"\u8bcd\u6c47\u8868vocabulary"},"\u8bcd\u6c47\u8868\uff08Vocabulary\uff09"),(0,m.kt)("p",null,"\u8bcd\u6c47\u8868\uff08Vocabulary\uff09\u662f\u4e00\u4e2a\u5305\u542b\u4e86\u5728\u7279\u5b9a\u8bed\u8a00\u6216\u4efb\u52a1\u4e2d",(0,m.kt)("strong",{parentName:"p"},"\u6240\u6709\u53ef\u80fd\u51fa\u73b0"),"\u7684",(0,m.kt)("strong",{parentName:"p"},"\u6240\u6709\u5355\u8bcd\u6216\u6807\u8bb0"),"\u7684\u96c6\u5408\u3002\u5728\u81ea\u7136\u8bed\u8a00\u5904\u7406\uff08NLP\uff09\u4e2d\uff0c\u8bcd\u6c47\u8868\u662f",(0,m.kt)("strong",{parentName:"p"},"\u8bad\u7ec3\u6a21\u578b\u65f6\u6240\u4f7f\u7528\u7684\u552f\u4e00\u5355\u8bcd\u7684\u96c6\u5408"),"\uff0c\u7531\u5177\u4f53\u7684\u751f\u6210\u4efb\u52a1\u800c\u786e\u5b9a\u3002"),(0,m.kt)("p",null,"Decoder\u6bcf\u4e00\u6b65\u7684\u8f93\u51fa\u662f\u4e00\u4e2a\u7ecf\u8fc7Softmax\u7684Probability Distribution\uff08\u6982\u7387\u5206\u5e03\uff09\uff0c\u4ee3\u8868\u7740\u8bcd\u6c47\u8868\u4e2d\u6bcf\u4e00\u4e2a\u8bcd\u6c47\u5f53\u524d\u751f\u6210\u7684\u6982\u7387\uff0c\u53d6\u6700\u5927\u6982\u7387\u503c\u7684\u8bcd\u6c47\u4fbf\u662f\u6a21\u578b\u5f53\u524d\u65f6\u95f4\u6b65\u8f93\u51fa\u7684\u8bcd\u6c47\u3002"),(0,m.kt)("p",null,(0,m.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_imagesimage-20231119094748152.png",alt:"image-20231119094748152"})),(0,m.kt)("h4",{id:"begin\u7b26\u53f7"},"Begin\u7b26\u53f7"),(0,m.kt)("p",null,"\u89e3\u7801\u5668\uff08Decoder\uff09\u5728\u6bcf\u4e2a\u65f6\u95f4\u6b65\uff08\u6216\u6bcf\u4e2a\u89e3\u7801\u6b65\u9aa4\uff09\u7684\u8f93\u5165\u90fd\u6765\u81ea\u4e8e\u524d\u4e00\u4e2a\u65f6\u95f4\u6b65\u81ea\u8eab\u7684\u8f93\u51fa\u4ee5\u53ca\u7f16\u7801\u5668\uff08Encoder\uff09\u7684\u8f93\u51fa\u3002\u7279\u522b\u5730\uff0c\u9996\u4e2a\u65f6\u95f4\u6b65\u7684\u8f93\u5165\u662fBegin\u7b26\u53f7\u4ee5\u53ca\u7f16\u7801\u5668\uff08Encoder\uff09\u7684\u8f93\u51fa\uff0c\u5728\u6bcf\u4e2a\u540e\u7eed\u7684\u65f6\u95f4\u6b65\uff0c\u89e3\u7801\u5668\u7684\u8f93\u5165\u4f1a\u662f\u524d\u4e00\u4e2a\u65f6\u95f4\u6b65\u81ea\u8eab\u7684\u8f93\u51fa\u4ee5\u53ca\u7f16\u7801\u5668\uff08Encoder\uff09\u7684\u8f93\u51fa\uff0c\u76f4\u5230\u751f\u6210\u5e8f\u5217\u7684\u7ed3\u675f\u3002"),(0,m.kt)("admonition",{title:"\u7279\u6b8a\u7b26\u53f7",type:"tip"},(0,m.kt)("p",{parentName:"admonition"},"Begin\u7b26\u53f7\u662f\u5728Lexicon\u4e2d\u6dfb\u52a0\u7684\u7279\u6b8a\u7b26\u53f7\uff0c\u7528\u6765\u8868\u793aDecoder\u751f\u6210\u7684\u5f00\u59cb\u3002Begin\u7b26\u53f7\u901a\u5e38\u88ab\u5d4c\u5165\u5230\u4e00\u4e2a\u4f4e\u7ef4\u7684\u8fde\u7eed\u5411\u91cf\u7a7a\u95f4\u4e2d\uff0c\u8fd9\u4e2a\u5411\u91cf\u7a7a\u95f4\u662f\u901a\u8fc7\u5d4c\u5165\u5c42\uff08Embedding Layer\uff09\u5b66\u4e60\u5f97\u5230\u7684\uff0c\u5728\u5d4c\u5165\u5c42\u4e2d\uff0c\u79bb\u6563\u7684\u7b26\u53f7\u88ab\u6620\u5c04\u5230\u4e00\u4e2a\u5b9e\u6570\u5411\u91cf\u3002"),(0,m.kt)("p",{parentName:"admonition"},"Begin\u7b26\u53f7\u53c8\u53ebStart\u7b26\u53f7\u6216SOS\u7b26\u53f7\uff08",(0,m.kt)("strong",{parentName:"p"},"S"),"tart ",(0,m.kt)("strong",{parentName:"p"},"O"),"f ",(0,m.kt)("strong",{parentName:"p"},"S"),"entence\uff09\uff0c\u90fd\u662f\u8868\u793a\u751f\u6210\u7684\u5f00\u59cb\u3002End\u7b26\u53f7\u53c8\u53ebEOS\u7b26\u53f7\uff08",(0,m.kt)("strong",{parentName:"p"},"E"),"nd ",(0,m.kt)("strong",{parentName:"p"},"O"),"f ",(0,m.kt)("strong",{parentName:"p"},"S"),"entence\uff09\u3002")),(0,m.kt)("h4",{id:"end\u7b26\u53f7"},"End\u7b26\u53f7"),(0,m.kt)("p",null,"\u5728Decoder\u7684\u751f\u6210\u4e2d\uff0c\u6bcf\u4e00\u4e2a\u65f6\u95f4\u6b65\u7684\u8f93\u51fa\u662f\u8bcd\u6c47\u8868\u4e2d\u6bcf\u4e00\u4e2a\u5355\u8bcd\u7ecf\u8fc7Softmax\u4e4b\u540e\u7684\u6982\u7387\u5206\u5e03\u3002\u4e3a\u4e86\u4fdd\u8bc1\u751f\u6210\u4efb\u52a1\u53ef\u4ee5\u901a\u8fc7\u6a21\u578b\u81ea\u5df1\u505c\u6b62\u800c\u4e0d\u662f\u4e00\u76f4\u91cd\u590d\uff0c\u6211\u4eec\u5411Decoder\u7684\u8f93\u51fa\u4e2d\u52a0\u5165End\u7b26\u53f7\u7684\u751f\u6210\uff0c\u5373\u6bcf\u4e00\u6b21\u8f93\u51fa\u9664\u4e86\u8bcd\u6c47\u8868\u7684\u6240\u6709\u8bcd\u6c47\u5916\u8fd8\u6709End\u7b26\u53f7\u7684\u6982\u7387\uff0c\u5f53End\u7b26\u53f7\u662f\u5728\u6240\u6709\u8bcd\u6c47\u4e2d\u6982\u7387\u6700\u5927\u7684\u8bcd\u6c47\u65f6\uff0c\u751f\u6210\u505c\u6b62\u3002"),(0,m.kt)("p",null,(0,m.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_imagesimage-20231119102220262.png",alt:"image-20231119102220262"})),(0,m.kt)("p",null,(0,m.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_imagesimage-20231119102159884.png",alt:"image-20231119102159884"})),(0,m.kt)("h4",{id:"\u63a9\u7801\u591a\u5934\u81ea\u6ce8\u610f\u529b\u673a\u5236masked-multi-head-self-attention"},"\u63a9\u7801\u591a\u5934\u81ea\u6ce8\u610f\u529b\u673a\u5236\uff08Masked Multi-Head Self-Attention\uff09"),(0,m.kt)("admonition",{title:"\u4e3a\u4ec0\u4e48\u4f7f\u7528\u63a9\u7801\u591a\u5934\u81ea\u6ce8\u610f\u529b",type:"important"},(0,m.kt)("p",{parentName:"admonition"},"\u63a9\u7801\u591a\u5934\u81ea\u6ce8\u610f\u529b\u4e0eTransformer\u8bad\u7ec3\u65f6\u91c7\u53d6\u7684Teacher Forcing\u7b56\u7565\u6709\u5f88\u5927\u7684\u5173\u7cfb\uff0c\u5177\u4f53\u5206\u6790\u89c1\u4e0b\u6587\u300aTeacher Forcing\u4e0eMasked Multi-Head Self-Attention\u300b\u7684\u8ba8\u8bba\u73af\u8282\uff1a",(0,m.kt)("a",{parentName:"p",href:"https://bonjour-npy.github.io/docs/Deep-Learning/%E8%AE%BA%E6%96%87%E7%AC%94%E8%AE%B0/Attention%20Is%20All%20You%20Need#teacher-forcing%E4%B8%8Emasked-multi-head-self-attention"},"Teacher Forcing\u4e0eMasked Multi-Head Self-Attention"))),(0,m.kt)("p",null,"\u89c2\u5bdfDecoder\u7684\u6574\u4f53\u7ed3\u6784\uff0c\u63a9\u7801\u591a\u5934\u81ea\u6ce8\u610f\u529b\u7684\u8f93\u5165\u662f\u6dfb\u52a0\u4f4d\u7f6e\u7f16\u7801\u4e4b\u540e\u7684Decoder",(0,m.kt)("strong",{parentName:"p"},"\u5f53\u524d\u65f6\u95f4\u6b65\u4e4b\u524d\u7684\u6240\u6709\u8f93\u51fa\u5355\u8bcd\u7ecf\u8fc7\u5d4c\u5165\u540e\u7684\u5411\u91cf\u8868\u793a"),"\u3002"),(0,m.kt)("p",null,"\u63a9\u7801\u591a\u5934\u81ea\u6ce8\u610f\u529b\u673a\u5236\u7528\u4e8e\u786e\u4fdd\u5728\u751f\u6210\u5e8f\u5217\u7684\u8fc7\u7a0b\u4e2d\uff0c\u6bcf\u4e2a\u4f4d\u7f6e\u53ea\u80fd\u5173\u6ce8\u5230\u8be5\u4f4d\u7f6e\u53ca\u5176\u4e4b\u524d\u7684\u4f4d\u7f6e\u3002\u8fd9\u662f\u901a\u8fc7\u5728Self-Attention\u7684\u8ba1\u7b97\u4e2d\u5e94\u7528\u4e00\u4e2a\u63a9\u7801\uff08mask\uff09\u6765\u5b9e\u73b0\u7684\u3002\u8fd9\u786e\u4fdd\u4e86\u5728\u751f\u6210\u5e8f\u5217\u65f6\uff0c\u6bcf\u4e2a\u4f4d\u7f6e\u53ea\u80fd\u67e5\u770b\u5230\u5b83\u4e4b\u524d\u7684\u4fe1\u606f\uff0c\u800c\u4e0d\u80fd\u67e5\u770b\u5230\u672a\u6765\u7684\u4fe1\u606f\uff0c\u4ece\u800c\u5b9e\u73b0\u4e86\u81ea\u56de\u5f52\u6027\u8d28\u3002"),(0,m.kt)("p",null,"\u5177\u4f53\u6765\u8bf4\uff0c\u6dfb\u52a0\u63a9\u7801\u540e\u7684\u81ea\u6ce8\u610f\u529b\u673a\u5236\u5728\u751f\u6210\u6ce8\u610f\u529b\u5206\u6570\u65f6\u4e0d\u518d\u8003\u8651\u8f93\u5165\u5e8f\u5217\u7684\u6240\u6709\u5411\u91cf\u3002\u5982\u5728\u8f93\u5165\u5411\u91cf",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("msup",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msup"},"a"),(0,m.kt)("mi",{parentName:"msup"},"i"))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"a^i")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.8247em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"a"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.8247em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-3.063em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"i")))))))))))),"\u5728\u8ba1\u7b97\u6ce8\u610f\u529b\u5206\u6570\u65f6\uff0c\u53ea\u5c06",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("msup",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msup"},"a"),(0,m.kt)("mi",{parentName:"msup"},"i"))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"a^i")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.8247em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"a"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.8247em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-3.063em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"i")))))))))))),"\u7684query\u5411\u91cf\u4e0e",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("msup",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msup"},"a"),(0,m.kt)("mn",{parentName:"msup"},"1"))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"a^1")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.8141em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"a"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.8141em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-3.063em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"1")))))))))))),"\u81f3",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("msup",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msup"},"a"),(0,m.kt)("mi",{parentName:"msup"},"i"))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"a^{i}")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.8247em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"a"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.8247em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-3.063em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"i"))))))))))))),"\u7684",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"i")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"i")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6595em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"i"))))),"\u4e2akey\u5411\u91cf\u505adot product\uff0c\u800c\u4e0d\u8003\u8651",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("msup",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msup"},"a"),(0,m.kt)("mi",{parentName:"msup"},"i"))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"a^i")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.8247em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"a"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.8247em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-3.063em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"i")))))))))))),"\u4e4b\u540e\u7684\u8f93\u5165\u7684key\u3002"),(0,m.kt)("admonition",{type:"tip"},(0,m.kt)("p",{parentName:"admonition"},"\u5bf9\u4e8e\u7b2c",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"s")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"s")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.4306em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"s"))))),"\u4e2a\u65f6\u95f4\u6b65\uff0cMasked Mutil-Head Self-Attention\u7684\u8f93\u5165\u662f\u65f6\u95f4\u6b65",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"s")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"s")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.4306em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"s"))))),"\u4e4b\u524dDecoder\u751f\u6210\u7684\u6240\u6709\u8f93\u51fa\u5355\u8bcd\u7684\u5d4c\u5165\u8868\u793a\u3002")),(0,m.kt)("p",null,(0,m.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_imagesimage-20231119095632569.png",alt:"image-20231119095632569"})),(0,m.kt)("h4",{id:"\u4ea4\u53c9\u6ce8\u610f\u529bcross-attention"},"\u4ea4\u53c9\u6ce8\u610f\u529b\uff08Cross-Attention\uff09"),(0,m.kt)("p",null,"\u4ea4\u53c9\u6ce8\u610f\u529b\u662f\u8fde\u63a5Encoder\u548cDecoder\u7684\u6865\u6881\uff0c\u4e5f\u662fDecoder\u8f93\u5165\u7684\u91cd\u8981\u7ec4\u6210\u90e8\u5206\u3002"),(0,m.kt)("p",null,(0,m.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_imagesimage-20231119103201335.png",alt:"image-20231119103201335"})),(0,m.kt)("p",null,"\u4ea4\u53c9\u6ce8\u610f\u529b\u63a5\u6536\u4e24\u4e2a\u8f93\u5165\u5e8f\u5217\uff0c\u4e00\u4e2a\u6765\u81ea\u7f16\u7801\u5668\uff08Encoder\uff09\u7684\u8f93\u51fa\u5e8f\u5217\uff08\u901a\u5e38\u662f\u8f93\u5165\u5e8f\u5217\u7684\u8868\u793a\uff09\uff0c\u53e6\u4e00\u4e2a\u6765\u81ea\u89e3\u7801\u5668\uff08Decoder\uff09\uff0c\u662f\u7ecf\u8fc7\u63a9\u7801\u591a\u5934\u81ea\u6ce8\u610f\u529b\u673a\u5236\u7684\u8f93\u51fa\u5e8f\u5217\uff08\u901a\u5e38\u662f\u6b63\u5728\u751f\u6210\u7684\u5e8f\u5217\u7684\u4e2d\u95f4\u8868\u793a\uff09\u3002"),(0,m.kt)("p",null,"\u5728\u4ea4\u53c9\u6ce8\u610f\u529b\u4e2d\uff0c\u6bcf\u6b21\u8ba1\u7b97\u6ce8\u610f\u529b\u5f97\u5206\u7684",(0,m.kt)("strong",{parentName:"p"},"query\u6765\u81ea\u89e3\u7801\u5668"),"\uff0c",(0,m.kt)("strong",{parentName:"p"},"key\u548cvalue\u6765\u81ea\u7f16\u7801\u5668"),"\u3002\u89e3\u7801\u5668\u6bcf\u4e2a\u5411\u91cf\u7684\u67e5\u8be2\uff08Query\uff09\u4e0e\u7f16\u7801\u5668\u4f4d\u7f6e\u7684\u952e\uff08Key\uff09\u8fdb\u884c\u70b9\u79ef\u5f97\u5230\u4e86\u6ce8\u610f\u529b\u5206\u6570\uff0c\u901a\u8fc7Softmax\u64cd\u4f5c\u540e\u8f6c\u6362\u4e3a\u6ce8\u610f\u529b\u6743\u91cd\uff0c\u518d\u4e0e\u7f16\u7801\u5668\u4f4d\u7f6e\u7684\u503c\uff08Value\uff09weighted sum\u5f97\u5230\u52a0\u6743\u6ce8\u610f\u529b\u5206\u6570\uff0c\u6700\u7ec8\u5c06\u52a0\u6743\u6ce8\u610f\u529b\u5206\u6570\u6c42\u548c\u5f97\u5230\u6bcf\u4e2a\u8f93\u5165\u5411\u91cf\u7684\u8f93\u51fa\u3002"),(0,m.kt)("p",null,(0,m.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_imagesimage-20231119142212757.png",alt:"image-20231119142212757"})),(0,m.kt)("h3",{id:"non-autoregressive-decodernat"},"Non-Autoregressive Decoder\uff08NAT\uff09"),(0,m.kt)("p",null,(0,m.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_imagesimage-20231119103112168.png",alt:"image-20231119103112168"})),(0,m.kt)("h2",{id:"\u8bad\u7ec3training"},"\u8bad\u7ec3\uff08Training\uff09"),(0,m.kt)("h3",{id:"\u635f\u5931\u51fd\u6570"},"\u635f\u5931\u51fd\u6570"),(0,m.kt)("p",null,"\u5728 Transformer \u4e2d\uff0cEncoder \u4e0d\u50cf Decoder \u9700\u8981\u751f\u6210\u5e8f\u5217\uff0c\u56e0\u6b64\u5b83\u901a\u5e38\u4e0d\u6d89\u53ca\u6807\u7b7e\u7684\u9884\u6d4b\u3002Encoder \u7684\u8bad\u7ec3\u901a\u5e38\u662f\u5728\u6574\u4e2a\u6a21\u578b\u4e2d\u7684\u8054\u5408\u8bad\u7ec3\u4e2d\u8fdb\u884c\u7684\uff0c\u901a\u8fc7\u4f18\u5316\u6574\u4e2a\u6a21\u578b\u7684\u635f\u5931\u51fd\u6570\u6765\u8fdb\u884c\u3002"),(0,m.kt)("p",null,"Transformer \u7684\u6574\u4f53\u8bad\u7ec3\u8fc7\u7a0b\u4e00\u822c\u5206\u4e3a\u4ee5\u4e0b\u51e0\u4e2a\u6b65\u9aa4\uff1a"),(0,m.kt)("ol",null,(0,m.kt)("li",{parentName:"ol"},(0,m.kt)("strong",{parentName:"li"},"\u7f16\u7801\u5668\uff08Encoder\uff09\u7684\u6b63\u5411\u4f20\u64ad\uff1a")," \u8f93\u5165\u5e8f\u5217\u7ecf\u8fc7\u7f16\u7801\u5668\u7684\u6b63\u5411\u4f20\u64ad\uff0c\u4ea7\u751f\u4e00\u7ec4\u4e0a\u4e0b\u6587\u8868\u793a\u3002"),(0,m.kt)("li",{parentName:"ol"},(0,m.kt)("strong",{parentName:"li"},"\u89e3\u7801\u5668\uff08Decoder\uff09\u7684\u6b63\u5411\u4f20\u64ad\uff1a")," \u89e3\u7801\u5668\u63a5\u6536\u4e0a\u4e0b\u6587\u8868\u793a\uff0c\u5e76\u751f\u6210\u76ee\u6807\u5e8f\u5217\u3002"),(0,m.kt)("li",{parentName:"ol"},(0,m.kt)("strong",{parentName:"li"},"\u8ba1\u7b97\u635f\u5931\uff1a")," \u901a\u8fc7\u6bd4\u8f83\u751f\u6210\u7684\u76ee\u6807\u5e8f\u5217\u4e0e\u5b9e\u9645\u76ee\u6807\u5e8f\u5217\uff0c\u8ba1\u7b97\u635f\u5931\u3002\u5728 Decoder \u4e2d\uff0c\u901a\u5e38\u4f7f\u7528\u4ea4\u53c9\u71b5\u635f\u5931\u51fd\u6570\u3002"),(0,m.kt)("li",{parentName:"ol"},(0,m.kt)("strong",{parentName:"li"},"\u53cd\u5411\u4f20\u64ad\uff1a")," \u6839\u636e\u635f\u5931\uff0c\u8fdb\u884c\u53cd\u5411\u4f20\u64ad\uff0c\u66f4\u65b0\u6a21\u578b\u53c2\u6570\u3002\u8fd9\u4e2a\u8fc7\u7a0b\u4e2d\uff0c\u68af\u5ea6\u901a\u8fc7\u6574\u4e2a\u6a21\u578b\u4f20\u64ad\uff0c\u5305\u62ec Encoder \u548c Decoder\u3002")),(0,m.kt)("p",null,"\u6574\u4e2a\u6a21\u578b\u7684\u53c2\u6570\uff08\u5305\u62ec Encoder \u548c Decoder\uff09\u90fd\u662f\u901a\u8fc7\u6700\u5c0f\u5316\u6574\u4f53\u635f\u5931\u6765\u8fdb\u884c\u8054\u5408\u8bad\u7ec3\u7684\u3002\u8fd9\u662f\u56e0\u4e3a\u6574\u4f53\u6a21\u578b\u9700\u8981\u534f\u540c\u5de5\u4f5c\uff0cEncoder \u7684\u8868\u793a\u5bf9\u4e8e Decoder \u7684\u6027\u80fd\u81f3\u5173\u91cd\u8981\u3002\u5728\u8bad\u7ec3\u8fc7\u7a0b\u4e2d\uff0c\u68af\u5ea6\u4ece\u635f\u5931\u51fd\u6570\u4f20\u64ad\u56de\u6574\u4e2a\u6a21\u578b\uff0c\u5305\u62ec Encoder \u548c Decoder\uff0c\u4ece\u800c\u66f4\u65b0\u5b83\u4eec\u7684\u53c2\u6570\u3002"),(0,m.kt)("p",null,"\u9700\u8981\u6ce8\u610f\u7684\u662f\uff0cTransformer \u6a21\u578b\u901a\u5e38\u4f7f\u7528\u7684\u662f\u7aef\u5230\u7aef\u7684\u8bad\u7ec3\u65b9\u5f0f\uff0c\u6574\u4e2a\u6a21\u578b\u7684\u53c2\u6570\u662f\u4e00\u6b21\u6027\u66f4\u65b0\u7684\u3002\u5728\u67d0\u4e9b\u573a\u666f\u4e0b\uff0c\u4f60\u53ef\u80fd\u4f1a\u770b\u5230\u5bf9 Encoder \u6216 Decoder \u8fdb\u884c\u5fae\u8c03\uff08fine-tuning\uff09\u7684\u60c5\u51b5\uff0c\u4f46\u8fd9\u662f\u5728\u7279\u5b9a\u5e94\u7528\u573a\u666f\u4e0b\u7684\u8c03\u6574\uff0c\u4e0d\u662f Transformer \u6a21\u578b\u7684\u6807\u51c6\u8bad\u7ec3\u65b9\u5f0f\u3002"),(0,m.kt)("h3",{id:"teacher-forcing"},"Teacher Forcing"),(0,m.kt)("p",null,"\u5728Transformer\u7684\u63a8\u7406\u9636\u6bb5\uff0c\u81ea\u56de\u5f52\u7c7b\u578b\u7684Decoder\u6839\u636e\u5206\u8bcd\u65b9\u5f0f\u7684\u4e0d\u540c\uff0c\u4e00\u4e2a\u8bcd\u6c47\u4e00\u4e2a\u8bcd\u6c47\u7684\u8f93\u51fa\uff0c\u5c06\u5f53\u524d\u65f6\u95f4\u6b65\u4e4b\u524d\u751f\u6210\u7684\u6240\u6709\u8bcd\u6c47\u4f5c\u4e3a\u8f93\u5165load\u8fdb\u5165Decoder\u4e2d\u3002\u4f46\u5728\u8bad\u7ec3\u65f6\u5982\u679c\u9075\u4ece\u540c\u6837\u7684\u751f\u6210\u8303\u5f0f\u4f1a\u5927\u5927\u964d\u4f4e\u6548\u7387\uff0c\u5e76\u4e14\u9762\u4e34\u5219\u4e00\u6b65\u9519\u6b65\u6b65\u9519\u7684\u98ce\u9669\uff08Error Propagation\uff09\u3002"),(0,m.kt)("p",null,"\u56e0\u6b64\u4f7f\u7528Teacher Forcing\u7b56\u7565\uff0c\u5c06Ground Truth\u4e00\u6b21\u6027\u5582\u5230Decoder\u4e2d\uff0c\u4f7f\u6a21\u578b\u66f4\u5feb\u6536\u655b\u5e76\u4e14\u907f\u514d\u8bef\u5dee\u79ef\u7d2f\u7684\u95ee\u9898\u3002"),(0,m.kt)("p",null,(0,m.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_imagesimage-20231119155803489.png",alt:"image-20231119155803489"})),(0,m.kt)("p",null,"\u4f46\u662f\uff0c\u81ea\u56de\u5f52Decoder\u5728\u63a8\u7406\u65f6\u662f\u4e00\u4e2a\u4e00\u4e2a\u8bcd\u6c47\u4ea7\u751f\u7684\uff0c\u5728\u4ea7\u751f\u7b2c",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"i")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"i")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6595em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"i"))))),"\u4e2a\u8bcd\u6c47\u65f6\u5176\u540e\u7eed\u7684\u8bcd\u6c47\u662f\u672a\u77e5\u7684\uff0c\u66f4\u4e0d\u7528\u8bf4\u8fdb\u884c\u6ce8\u610f\u529b\u5206\u6570\u7684\u5c31\u7b97\u4e86\uff0c\u800c\u5728\u8bad\u7ec3\u8fc7\u7a0b\u4e2d\u4f7f\u7528Teacher Forcing\u65f6\u5374\u53ef\u4ee5\u5f97\u5230\u7b2c",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"i"),(0,m.kt)("mo",{parentName:"mrow"},"+"),(0,m.kt)("mn",{parentName:"mrow"},"1")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"i+1")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.7429em",verticalAlign:"-0.0833em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"i"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"+"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6444em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"1"))))),"\u4e2a\u53ca\u5176\u4e4b\u540e\u8bcd\u6c47\u7684\u6ce8\u610f\u529b\u4fe1\u606f\uff0c\u5982\u679c\u4e0d\u6dfb\u52a0\u5176\u4ed6\u7b56\u7565\u663e\u7136\u4f1a\u5bf9\u6a21\u578b\u7684\u6cdb\u5316\u80fd\u529b\u9020\u6210\u5f88\u5927\u7684\u5f71\u54cd\uff0c\u800c\u4e14\u8fd9\u5e76\u4e0d\u7b26\u5408\u81ea\u56de\u5f52\uff08Autoregression\uff09\u7684\u7279\u6027\u3002\u4e3a\u4e86\u89e3\u51b3\u8fd9\u4e2a\u95ee\u9898\uff0c\u63a9\u7801\u591a\u5934\u6ce8\u610f\u529b\u673a\u5236\u5e94\u8fd0\u800c\u751f\uff0c\u5728\u8bad\u7ec3\u9636\u6bb5\u5c06\u6a21\u578b\u5728\u65f6\u95f4\u53d1\u5c55\u987a\u5e8f\u7684\u53f3\u4fa7\u7684\u8f93\u5165masked\u6389\uff0c\u9632\u6b62\u6a21\u578b\u5b66\u4e60\u5230\u4e0d\u8be5\u5b66\u4e60\u7684\u6ce8\u610f\u529b\u3002"),(0,m.kt)("h3",{id:"teacher-forcing\u4e0emasked-multi-head-self-attention"},"Teacher Forcing\u4e0eMasked Multi-Head Self-Attention"),(0,m.kt)("p",null,"\u53c2\u8003\u6587\u732e\uff1a",(0,m.kt)("a",{parentName:"p",href:"http://t.csdnimg.cn/c8QA2"},"MultiHead-Attention\u548cMasked-Attention\u7684\u673a\u5236\u548c\u539f\u7406")),(0,m.kt)("p",null,"\u4e0eEncoder\u7684\u591a\u5934\u81ea\u6ce8\u610f\u529b\u4e0d\u540c\uff0c\u5728Decoder\u4e2d\uff0c\u4e3a\u6ce8\u610f\u529b\u673a\u5236\u5e94\u7528\u4e86\u63a9\u7801\uff0c\u4f7f\u6a21\u578b\u53ea\u80fd\u5173\u6ce8\u5230\u5f53\u524d\u4f4d\u7f6e\u53ca\u5176\u4e4b\u524d\u7684\u4f4d\u7f6e\uff0c\u800c\u4e0d\u80fd\u8bbf\u95ee\u672a\u6765\u7684\u4fe1\u606f\u3002\u8fd9\u89e3\u51b3\u4e86\u5f15\u5165Teacher Forcing\u51fa\u73b0\u7684\u95ee\u9898\uff0c\u907f\u514d\u4e86\u8bad\u7ec3\u4e0e\u63a8\u7406\u9636\u6bb5\u7684Mismatch\uff0c\u7ef4\u62a4\u4e86\u81ea\u56de\u5f52\u7684\u7279\u6027\u3002"),(0,m.kt)("p",null,"\u5177\u4f53\u6765\u8bf4\uff0c\u6a21\u62df\u63a8\u7406\u8fc7\u7a0b\u4e2d\u7b2c\u4e00\u4e2a\u8bcd\u6c47\u65f6\u7684\u573a\u666f\u3002\u5f53\u6a21\u578b\u53ea\u6709",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"v"),(0,m.kt)("mi",{parentName:"mrow"},"o"),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"c"),(0,m.kt)("mn",{parentName:"msub"},"1"))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"voc_1")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.5806em",verticalAlign:"-0.15em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"v"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"o"),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"c"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"1")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))))))),"\u8bcd\u6c47\u5411\u91cf\u8f93\u5165\u65f6\uff0c\u5728Decoder\u4e2d\uff0c",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"v"),(0,m.kt)("mi",{parentName:"mrow"},"o"),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"c"),(0,m.kt)("mn",{parentName:"msub"},"1"))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"voc_1")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.5806em",verticalAlign:"-0.15em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"v"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"o"),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"c"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"1")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))))))),"\u4e0e\u81ea\u8eab\u8ba1\u7b97\u6ce8\u610f\u529b\u5206\u6570\uff0c\u4e8e\u662f\u6709"),(0,m.kt)("div",{className:"math math-display"},(0,m.kt)("span",{parentName:"div",className:"katex-display"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mtable",{parentName:"semantics",width:"100%"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mrow",{parentName:"mtd"},(0,m.kt)("mrow",{parentName:"mrow"},(0,m.kt)("mo",{parentName:"mrow",fence:"true"},"["),(0,m.kt)("mtable",{parentName:"mrow",rowspacing:"0.16em",columnalign:"center",columnspacing:"1em"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("msub",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"msub"},"o"),(0,m.kt)("mn",{parentName:"msub"},"1")))))),(0,m.kt)("mo",{parentName:"mrow",fence:"true"},"]")),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("mrow",{parentName:"mrow"},(0,m.kt)("mo",{parentName:"mrow",fence:"true"},"["),(0,m.kt)("mtable",{parentName:"mrow",rowspacing:"0.16em",columnalign:"center",columnspacing:"1em"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("msubsup",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"msubsup"},"\u03b1"),(0,m.kt)("mrow",{parentName:"msubsup"},(0,m.kt)("mn",{parentName:"mrow"},"1"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mn",{parentName:"mrow"},"1")),(0,m.kt)("mo",{parentName:"msubsup",mathvariant:"normal",lspace:"0em",rspace:"0em"},"\u2032")))))),(0,m.kt)("mo",{parentName:"mrow",fence:"true"},"]")),(0,m.kt)("mrow",{parentName:"mrow"},(0,m.kt)("mo",{parentName:"mrow",fence:"true"},"["),(0,m.kt)("mtable",{parentName:"mrow",rowspacing:"0.16em",columnalign:"center",columnspacing:"1em"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("msub",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"msub"},"v"),(0,m.kt)("mn",{parentName:"msub"},"1")))))),(0,m.kt)("mo",{parentName:"mrow",fence:"true"},"]")))),(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mtext",{parentName:"mtd"},"(5)")))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"\\begin{bmatrix}o_1\\end{bmatrix}=\\begin{bmatrix}\\alpha_{1,1}^{\\prime}\\end{bmatrix}\\begin{bmatrix}v_1\\end{bmatrix}\\tag{5}")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1.2em",verticalAlign:"-0.35em"}}),(0,m.kt)("span",{parentName:"span",className:"minner"},(0,m.kt)("span",{parentName:"span",className:"mopen delimcenter",style:{top:"0em"}},(0,m.kt)("span",{parentName:"span",className:"delimsizing size1"},"[")),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mtable"},(0,m.kt)("span",{parentName:"span",className:"col-align-c"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.85em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-3.01em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"o"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"1")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"}))))))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.35em"}},(0,m.kt)("span",{parentName:"span"}))))))),(0,m.kt)("span",{parentName:"span",className:"mclose delimcenter",style:{top:"0em"}},(0,m.kt)("span",{parentName:"span",className:"delimsizing size1"},"]"))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"="),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1.2242em",verticalAlign:"-0.3621em"}}),(0,m.kt)("span",{parentName:"span",className:"minner"},(0,m.kt)("span",{parentName:"span",className:"mopen delimcenter",style:{top:"0em"}},(0,m.kt)("span",{parentName:"span",className:"delimsizing size1"},"[")),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mtable"},(0,m.kt)("span",{parentName:"span",className:"col-align-c"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.8621em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-3.0221em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.0037em"}},"\u03b1"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.7519em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.4519em",marginLeft:"-0.0037em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"1"),(0,m.kt)("span",{parentName:"span",className:"mpunct mtight"},","),(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"1")))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.063em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"\u2032"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3842em"}},(0,m.kt)("span",{parentName:"span"}))))))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3621em"}},(0,m.kt)("span",{parentName:"span"}))))))),(0,m.kt)("span",{parentName:"span",className:"mclose delimcenter",style:{top:"0em"}},(0,m.kt)("span",{parentName:"span",className:"delimsizing size1"},"]"))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"minner"},(0,m.kt)("span",{parentName:"span",className:"mopen delimcenter",style:{top:"0em"}},(0,m.kt)("span",{parentName:"span",className:"delimsizing size1"},"[")),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mtable"},(0,m.kt)("span",{parentName:"span",className:"col-align-c"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.85em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-3.01em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"v"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0359em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"1")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"}))))))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.35em"}},(0,m.kt)("span",{parentName:"span"}))))))),(0,m.kt)("span",{parentName:"span",className:"mclose delimcenter",style:{top:"0em"}},(0,m.kt)("span",{parentName:"span",className:"delimsizing size1"},"]")))),(0,m.kt)("span",{parentName:"span",className:"tag"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1.2242em",verticalAlign:"-0.3621em"}}),(0,m.kt)("span",{parentName:"span",className:"mord text"},(0,m.kt)("span",{parentName:"span",className:"mord"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"5")),(0,m.kt)("span",{parentName:"span",className:"mord"},")"))))))),(0,m.kt)("p",null,"\u6211\u4eec\u518d\u6a21\u62df\u8bad\u7ec3\u8fc7\u7a0b\u4e2d\u4f7f\u7528Teacher Forcing\uff0c\u4e00\u6b21\u6027\u8f93\u5165\u4e3a\u4e24\u4e2a\u8bcd\u6c47",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"v"),(0,m.kt)("mi",{parentName:"mrow"},"o"),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"c"),(0,m.kt)("mn",{parentName:"msub"},"1"))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"voc_1")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.5806em",verticalAlign:"-0.15em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"v"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"o"),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"c"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"1")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))))))),"\u4e0e",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"v"),(0,m.kt)("mi",{parentName:"mrow"},"o"),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"c"),(0,m.kt)("mn",{parentName:"msub"},"2"))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"voc_2")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.5806em",verticalAlign:"-0.15em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"v"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"o"),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"c"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"2")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))))))),"\u7684\u60c5\u51b5\uff0c\u4e8e\u662f\u6709"),(0,m.kt)("div",{className:"math math-display"},(0,m.kt)("span",{parentName:"div",className:"katex-display"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mtable",{parentName:"semantics",width:"100%"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mrow",{parentName:"mtd"},(0,m.kt)("mrow",{parentName:"mrow"},(0,m.kt)("mo",{parentName:"mrow",fence:"true"},"["),(0,m.kt)("mtable",{parentName:"mrow",rowspacing:"0.16em",columnalign:"center",columnspacing:"1em"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("msub",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"msub"},"o"),(0,m.kt)("mn",{parentName:"msub"},"1"))))),(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("msub",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"msub"},"o"),(0,m.kt)("mn",{parentName:"msub"},"2")))))),(0,m.kt)("mo",{parentName:"mrow",fence:"true"},"]")),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("mrow",{parentName:"mrow"},(0,m.kt)("mo",{parentName:"mrow",fence:"true"},"["),(0,m.kt)("mtable",{parentName:"mrow",rowspacing:"0.16em",columnalign:"center center",columnspacing:"1em"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("msubsup",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"msubsup"},"\u03b1"),(0,m.kt)("mrow",{parentName:"msubsup"},(0,m.kt)("mn",{parentName:"mrow"},"1"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mn",{parentName:"mrow"},"1")),(0,m.kt)("mo",{parentName:"msubsup",mathvariant:"normal",lspace:"0em",rspace:"0em"},"\u2032")))),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("msubsup",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"msubsup"},"\u03b1"),(0,m.kt)("mrow",{parentName:"msubsup"},(0,m.kt)("mn",{parentName:"mrow"},"2"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mn",{parentName:"mrow"},"1")),(0,m.kt)("mo",{parentName:"msubsup",mathvariant:"normal",lspace:"0em",rspace:"0em"},"\u2032"))))),(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("msubsup",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"msubsup"},"\u03b1"),(0,m.kt)("mrow",{parentName:"msubsup"},(0,m.kt)("mn",{parentName:"mrow"},"1"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mn",{parentName:"mrow"},"2")),(0,m.kt)("mo",{parentName:"msubsup",mathvariant:"normal",lspace:"0em",rspace:"0em"},"\u2032")))),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("msubsup",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"msubsup"},"\u03b1"),(0,m.kt)("mrow",{parentName:"msubsup"},(0,m.kt)("mn",{parentName:"mrow"},"2"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mn",{parentName:"mrow"},"2")),(0,m.kt)("mo",{parentName:"msubsup",mathvariant:"normal",lspace:"0em",rspace:"0em"},"\u2032")))))),(0,m.kt)("mo",{parentName:"mrow",fence:"true"},"]")),(0,m.kt)("mrow",{parentName:"mrow"},(0,m.kt)("mo",{parentName:"mrow",fence:"true"},"["),(0,m.kt)("mtable",{parentName:"mrow",rowspacing:"0.16em",columnalign:"center",columnspacing:"1em"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("msub",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"msub"},"v"),(0,m.kt)("mn",{parentName:"msub"},"1"))))),(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("msub",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"msub"},"v"),(0,m.kt)("mn",{parentName:"msub"},"2")))))),(0,m.kt)("mo",{parentName:"mrow",fence:"true"},"]")))),(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mtext",{parentName:"mtd"},"(6)")))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"\\begin{bmatrix}o_1\\\\o_2\\end{bmatrix}=\\begin{bmatrix}\\alpha_{1,1}^{\\prime}&\\alpha_{2,1}^{\\prime}\\\\\\alpha_{1,2}^{\\prime}&\\alpha_{2,2}^{\\prime}\\end{bmatrix}\\begin{bmatrix}v_1\\\\v_2\\end{bmatrix} \\tag{6}")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"2.4em",verticalAlign:"-0.95em"}}),(0,m.kt)("span",{parentName:"span",className:"minner"},(0,m.kt)("span",{parentName:"span",className:"mopen delimcenter",style:{top:"0em"}},(0,m.kt)("span",{parentName:"span",className:"delimsizing size3"},"[")),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mtable"},(0,m.kt)("span",{parentName:"span",className:"col-align-c"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.45em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-3.61em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"o"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"1")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))))),(0,m.kt)("span",{parentName:"span",style:{top:"-2.41em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"o"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"2")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"}))))))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.95em"}},(0,m.kt)("span",{parentName:"span"}))))))),(0,m.kt)("span",{parentName:"span",className:"mclose delimcenter",style:{top:"0em"}},(0,m.kt)("span",{parentName:"span",className:"delimsizing size3"},"]"))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"="),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"2.4484em",verticalAlign:"-0.9742em"}}),(0,m.kt)("span",{parentName:"span",className:"minner"},(0,m.kt)("span",{parentName:"span",className:"mopen delimcenter",style:{top:"0em"}},(0,m.kt)("span",{parentName:"span",className:"delimsizing size3"},"[")),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mtable"},(0,m.kt)("span",{parentName:"span",className:"col-align-c"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.4742em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-3.6342em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.0037em"}},"\u03b1"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.7519em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.4519em",marginLeft:"-0.0037em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"1"),(0,m.kt)("span",{parentName:"span",className:"mpunct mtight"},","),(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"1")))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.063em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"\u2032"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3842em"}},(0,m.kt)("span",{parentName:"span"})))))))),(0,m.kt)("span",{parentName:"span",style:{top:"-2.41em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.0037em"}},"\u03b1"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.7519em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.4519em",marginLeft:"-0.0037em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"1"),(0,m.kt)("span",{parentName:"span",className:"mpunct mtight"},","),(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"2")))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.063em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"\u2032"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3842em"}},(0,m.kt)("span",{parentName:"span"}))))))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.9742em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"arraycolsep",style:{width:"0.5em"}}),(0,m.kt)("span",{parentName:"span",className:"arraycolsep",style:{width:"0.5em"}}),(0,m.kt)("span",{parentName:"span",className:"col-align-c"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.4742em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-3.6342em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.0037em"}},"\u03b1"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.7519em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.4519em",marginLeft:"-0.0037em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"2"),(0,m.kt)("span",{parentName:"span",className:"mpunct mtight"},","),(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"1")))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.063em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"\u2032"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3842em"}},(0,m.kt)("span",{parentName:"span"})))))))),(0,m.kt)("span",{parentName:"span",style:{top:"-2.41em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.0037em"}},"\u03b1"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.7519em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.4519em",marginLeft:"-0.0037em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"2"),(0,m.kt)("span",{parentName:"span",className:"mpunct mtight"},","),(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"2")))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.063em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"\u2032"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3842em"}},(0,m.kt)("span",{parentName:"span"}))))))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.9742em"}},(0,m.kt)("span",{parentName:"span"}))))))),(0,m.kt)("span",{parentName:"span",className:"mclose delimcenter",style:{top:"0em"}},(0,m.kt)("span",{parentName:"span",className:"delimsizing size3"},"]"))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"minner"},(0,m.kt)("span",{parentName:"span",className:"mopen delimcenter",style:{top:"0em"}},(0,m.kt)("span",{parentName:"span",className:"delimsizing size3"},"[")),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mtable"},(0,m.kt)("span",{parentName:"span",className:"col-align-c"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.45em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-3.61em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"v"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0359em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"1")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))))),(0,m.kt)("span",{parentName:"span",style:{top:"-2.41em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"v"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0359em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"2")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"}))))))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.95em"}},(0,m.kt)("span",{parentName:"span"}))))))),(0,m.kt)("span",{parentName:"span",className:"mclose delimcenter",style:{top:"0em"}},(0,m.kt)("span",{parentName:"span",className:"delimsizing size3"},"]")))),(0,m.kt)("span",{parentName:"span",className:"tag"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"2.4484em",verticalAlign:"-0.9742em"}}),(0,m.kt)("span",{parentName:"span",className:"mord text"},(0,m.kt)("span",{parentName:"span",className:"mord"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"6")),(0,m.kt)("span",{parentName:"span",className:"mord"},")"))))))),(0,m.kt)("p",null,"\u7136\u800c\uff0c\u4e3a\u4e86\u4f7f\u8bad\u7ec3\u8fc7\u7a0b\u4e2d\u7b26\u5408\u63a8\u7406\u65f6\u81ea\u56de\u5f52\u7684\u7279\u6027\uff0c\u7406\u60f3\u7684\u8f93\u51fa\u5e94\u8be5\u662f"),(0,m.kt)("div",{className:"math math-display"},(0,m.kt)("span",{parentName:"div",className:"katex-display"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mtable",{parentName:"semantics",width:"100%"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mrow",{parentName:"mtd"},(0,m.kt)("mrow",{parentName:"mrow"},(0,m.kt)("mo",{parentName:"mrow",fence:"true"},"["),(0,m.kt)("mtable",{parentName:"mrow",rowspacing:"0.16em",columnalign:"center",columnspacing:"1em"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("msub",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"msub"},"o"),(0,m.kt)("mn",{parentName:"msub"},"1"))))),(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("msub",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"msub"},"o"),(0,m.kt)("mn",{parentName:"msub"},"2")))))),(0,m.kt)("mo",{parentName:"mrow",fence:"true"},"]")),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("mrow",{parentName:"mrow"},(0,m.kt)("mo",{parentName:"mrow",fence:"true"},"["),(0,m.kt)("mtable",{parentName:"mrow",rowspacing:"0.16em",columnalign:"center center",columnspacing:"1em"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("msubsup",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"msubsup"},"\u03b1"),(0,m.kt)("mrow",{parentName:"msubsup"},(0,m.kt)("mn",{parentName:"mrow"},"1"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mn",{parentName:"mrow"},"1")),(0,m.kt)("mo",{parentName:"msubsup",mathvariant:"normal",lspace:"0em",rspace:"0em"},"\u2032")))),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("mn",{parentName:"mstyle"},"0")))),(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("msubsup",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"msubsup"},"\u03b1"),(0,m.kt)("mrow",{parentName:"msubsup"},(0,m.kt)("mn",{parentName:"mrow"},"1"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mn",{parentName:"mrow"},"2")),(0,m.kt)("mo",{parentName:"msubsup",mathvariant:"normal",lspace:"0em",rspace:"0em"},"\u2032")))),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("msubsup",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"msubsup"},"\u03b1"),(0,m.kt)("mrow",{parentName:"msubsup"},(0,m.kt)("mn",{parentName:"mrow"},"2"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mn",{parentName:"mrow"},"2")),(0,m.kt)("mo",{parentName:"msubsup",mathvariant:"normal",lspace:"0em",rspace:"0em"},"\u2032")))))),(0,m.kt)("mo",{parentName:"mrow",fence:"true"},"]")),(0,m.kt)("mrow",{parentName:"mrow"},(0,m.kt)("mo",{parentName:"mrow",fence:"true"},"["),(0,m.kt)("mtable",{parentName:"mrow",rowspacing:"0.16em",columnalign:"center",columnspacing:"1em"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("msub",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"msub"},"v"),(0,m.kt)("mn",{parentName:"msub"},"1"))))),(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("msub",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"msub"},"v"),(0,m.kt)("mn",{parentName:"msub"},"2")))))),(0,m.kt)("mo",{parentName:"mrow",fence:"true"},"]")))),(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mtext",{parentName:"mtd"},"(7)")))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"\\begin{bmatrix}o_1\\\\o_2\\end{bmatrix}=\\begin{bmatrix}\\alpha_{1,1}^{\\prime}&0\\\\\\alpha_{1,2}^{\\prime}&\\alpha_{2,2}^{\\prime}\\end{bmatrix}\\begin{bmatrix}v_1\\\\v_2\\end{bmatrix} \\tag{7}")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"2.4em",verticalAlign:"-0.95em"}}),(0,m.kt)("span",{parentName:"span",className:"minner"},(0,m.kt)("span",{parentName:"span",className:"mopen delimcenter",style:{top:"0em"}},(0,m.kt)("span",{parentName:"span",className:"delimsizing size3"},"[")),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mtable"},(0,m.kt)("span",{parentName:"span",className:"col-align-c"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.45em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-3.61em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"o"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"1")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))))),(0,m.kt)("span",{parentName:"span",style:{top:"-2.41em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"o"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"2")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"}))))))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.95em"}},(0,m.kt)("span",{parentName:"span"}))))))),(0,m.kt)("span",{parentName:"span",className:"mclose delimcenter",style:{top:"0em"}},(0,m.kt)("span",{parentName:"span",className:"delimsizing size3"},"]"))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"="),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"2.4484em",verticalAlign:"-0.9742em"}}),(0,m.kt)("span",{parentName:"span",className:"minner"},(0,m.kt)("span",{parentName:"span",className:"mopen delimcenter",style:{top:"0em"}},(0,m.kt)("span",{parentName:"span",className:"delimsizing size3"},"[")),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mtable"},(0,m.kt)("span",{parentName:"span",className:"col-align-c"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.4742em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-3.6342em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.0037em"}},"\u03b1"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.7519em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.4519em",marginLeft:"-0.0037em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"1"),(0,m.kt)("span",{parentName:"span",className:"mpunct mtight"},","),(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"1")))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.063em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"\u2032"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3842em"}},(0,m.kt)("span",{parentName:"span"})))))))),(0,m.kt)("span",{parentName:"span",style:{top:"-2.41em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.0037em"}},"\u03b1"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.7519em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.4519em",marginLeft:"-0.0037em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"1"),(0,m.kt)("span",{parentName:"span",className:"mpunct mtight"},","),(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"2")))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.063em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"\u2032"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3842em"}},(0,m.kt)("span",{parentName:"span"}))))))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.9742em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"arraycolsep",style:{width:"0.5em"}}),(0,m.kt)("span",{parentName:"span",className:"arraycolsep",style:{width:"0.5em"}}),(0,m.kt)("span",{parentName:"span",className:"col-align-c"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.4742em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-3.6342em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"0"))),(0,m.kt)("span",{parentName:"span",style:{top:"-2.41em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.0037em"}},"\u03b1"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.7519em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.4519em",marginLeft:"-0.0037em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"2"),(0,m.kt)("span",{parentName:"span",className:"mpunct mtight"},","),(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"2")))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.063em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"\u2032"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3842em"}},(0,m.kt)("span",{parentName:"span"}))))))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.9742em"}},(0,m.kt)("span",{parentName:"span"}))))))),(0,m.kt)("span",{parentName:"span",className:"mclose delimcenter",style:{top:"0em"}},(0,m.kt)("span",{parentName:"span",className:"delimsizing size3"},"]"))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"minner"},(0,m.kt)("span",{parentName:"span",className:"mopen delimcenter",style:{top:"0em"}},(0,m.kt)("span",{parentName:"span",className:"delimsizing size3"},"[")),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mtable"},(0,m.kt)("span",{parentName:"span",className:"col-align-c"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.45em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-3.61em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"v"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0359em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"1")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))))),(0,m.kt)("span",{parentName:"span",style:{top:"-2.41em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"v"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0359em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"2")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"}))))))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.95em"}},(0,m.kt)("span",{parentName:"span"}))))))),(0,m.kt)("span",{parentName:"span",className:"mclose delimcenter",style:{top:"0em"}},(0,m.kt)("span",{parentName:"span",className:"delimsizing size3"},"]")))),(0,m.kt)("span",{parentName:"span",className:"tag"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"2.4484em",verticalAlign:"-0.9742em"}}),(0,m.kt)("span",{parentName:"span",className:"mord text"},(0,m.kt)("span",{parentName:"span",className:"mord"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"7")),(0,m.kt)("span",{parentName:"span",className:"mord"},")"))))))),(0,m.kt)("p",null,"\u7ee7\u7eed\u6269\u5c55\uff0c\u5f53\u6709",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"n")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"n")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.4306em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"n"))))),"\u4e2a\u8f93\u5165\u8bcd\u6c47\u65f6\uff0c\u5e94\u8be5\u6709"),(0,m.kt)("div",{className:"math math-display"},(0,m.kt)("span",{parentName:"div",className:"katex-display"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mtable",{parentName:"semantics",width:"100%"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mrow",{parentName:"mtd"},(0,m.kt)("mrow",{parentName:"mrow"},(0,m.kt)("mo",{parentName:"mrow",fence:"true"},"["),(0,m.kt)("mtable",{parentName:"mrow",rowspacing:"0.16em",columnalign:"center",columnspacing:"1em"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("msub",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"msub"},"o"),(0,m.kt)("mn",{parentName:"msub"},"1"))))),(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("msub",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"msub"},"o"),(0,m.kt)("mn",{parentName:"msub"},"2"))))),(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("mi",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"mi",mathvariant:"normal"},"\u22ee"),(0,m.kt)("mpadded",{parentName:"mi",height:"0em",voffset:"0em"},(0,m.kt)("mspace",{parentName:"mpadded",mathbackground:"black",width:"0em",height:"1.5em"})))))),(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("msub",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"msub"},"o"),(0,m.kt)("mi",{parentName:"msub"},"n")))))),(0,m.kt)("mo",{parentName:"mrow",fence:"true"},"]")),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("mrow",{parentName:"mrow"},(0,m.kt)("mo",{parentName:"mrow",fence:"true"},"["),(0,m.kt)("mtable",{parentName:"mrow",rowspacing:"0.16em",columnalign:"center center center center",columnspacing:"1em"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("msubsup",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"msubsup"},"\u03b1"),(0,m.kt)("mrow",{parentName:"msubsup"},(0,m.kt)("mn",{parentName:"mrow"},"1"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mn",{parentName:"mrow"},"1")),(0,m.kt)("mo",{parentName:"msubsup",mathvariant:"normal",lspace:"0em",rspace:"0em"},"\u2032")))),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("mn",{parentName:"mstyle"},"0"))),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("mo",{parentName:"mstyle",lspace:"0em",rspace:"0em"},"\u22ef"))),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("mn",{parentName:"mstyle"},"0")))),(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("msubsup",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"msubsup"},"\u03b1"),(0,m.kt)("mrow",{parentName:"msubsup"},(0,m.kt)("mn",{parentName:"mrow"},"1"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mn",{parentName:"mrow"},"2")),(0,m.kt)("mo",{parentName:"msubsup",mathvariant:"normal",lspace:"0em",rspace:"0em"},"\u2032")))),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("msubsup",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"msubsup"},"\u03b1"),(0,m.kt)("mn",{parentName:"msubsup"},"2"),(0,m.kt)("mo",{parentName:"msubsup",mathvariant:"normal",lspace:"0em",rspace:"0em"},"\u2032")))),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("mo",{parentName:"mstyle",lspace:"0em",rspace:"0em"},"\u22ef"))),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("mn",{parentName:"mstyle"},"0")))),(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("mi",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"mi",mathvariant:"normal"},"\u22ee"),(0,m.kt)("mpadded",{parentName:"mi",height:"0em",voffset:"0em"},(0,m.kt)("mspace",{parentName:"mpadded",mathbackground:"black",width:"0em",height:"1.5em"}))))),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("mi",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"mi",mathvariant:"normal"},"\u22ee"),(0,m.kt)("mpadded",{parentName:"mi",height:"0em",voffset:"0em"},(0,m.kt)("mspace",{parentName:"mpadded",mathbackground:"black",width:"0em",height:"1.5em"}))))),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("mrow",{parentName:"mstyle"}))),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("mi",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"mi",mathvariant:"normal"},"\u22ee"),(0,m.kt)("mpadded",{parentName:"mi",height:"0em",voffset:"0em"},(0,m.kt)("mspace",{parentName:"mpadded",mathbackground:"black",width:"0em",height:"1.5em"})))))),(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("msubsup",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"msubsup"},"\u03b1"),(0,m.kt)("mrow",{parentName:"msubsup"},(0,m.kt)("mn",{parentName:"mrow"},"1"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"n")),(0,m.kt)("mo",{parentName:"msubsup",mathvariant:"normal",lspace:"0em",rspace:"0em"},"\u2032")))),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("msubsup",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"msubsup"},"\u03b1"),(0,m.kt)("mrow",{parentName:"msubsup"},(0,m.kt)("mn",{parentName:"mrow"},"2"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"n")),(0,m.kt)("mo",{parentName:"msubsup",mathvariant:"normal",lspace:"0em",rspace:"0em"},"\u2032")))),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("mo",{parentName:"mstyle",lspace:"0em",rspace:"0em"},"\u22ef"))),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("msubsup",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"msubsup"},"\u03b1"),(0,m.kt)("mrow",{parentName:"msubsup"},(0,m.kt)("mi",{parentName:"mrow"},"n"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"n")),(0,m.kt)("mo",{parentName:"msubsup",mathvariant:"normal",lspace:"0em",rspace:"0em"},"\u2032")))))),(0,m.kt)("mo",{parentName:"mrow",fence:"true"},"]")),(0,m.kt)("mrow",{parentName:"mrow"},(0,m.kt)("mo",{parentName:"mrow",fence:"true"},"["),(0,m.kt)("mtable",{parentName:"mrow",rowspacing:"0.16em",columnalign:"center",columnspacing:"1em"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("msub",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"msub"},"v"),(0,m.kt)("mn",{parentName:"msub"},"1"))))),(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("msub",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"msub"},"v"),(0,m.kt)("mn",{parentName:"msub"},"2"))))),(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("mi",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"mi",mathvariant:"normal"},"\u22ee"),(0,m.kt)("mpadded",{parentName:"mi",height:"0em",voffset:"0em"},(0,m.kt)("mspace",{parentName:"mpadded",mathbackground:"black",width:"0em",height:"1.5em"})))))),(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("msub",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"msub"},"v"),(0,m.kt)("mi",{parentName:"msub"},"n")))))),(0,m.kt)("mo",{parentName:"mrow",fence:"true"},"]")))),(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mtext",{parentName:"mtd"},"(8)")))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"\\begin{bmatrix}o_1\\\\o_2\\\\\\vdots\\\\o_n\\end{bmatrix}=\\begin{bmatrix}\\alpha'_{1,1}&0&\\cdots&0\\\\\\alpha'_{1,2}&\\alpha'_2&\\cdots&0\\\\\\vdots&\\vdots&&\\vdots\\\\\\alpha'_{1,n}&\\alpha'_{2,n}&\\cdots&\\alpha'_{n,n}\\end{bmatrix}\\begin{bmatrix}v_1\\\\v_2\\\\\\vdots\\\\v_n\\end{bmatrix}\\tag{8}")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"5.46em",verticalAlign:"-2.48em"}}),(0,m.kt)("span",{parentName:"span",className:"minner"},(0,m.kt)("span",{parentName:"span",className:"mopen"},(0,m.kt)("span",{parentName:"span",className:"delimsizing mult"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"2.95em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.011em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.816em"}}),(0,m.kt)("span",{parentName:"span",className:"delimsizinginner delim-size4"},(0,m.kt)("span",{parentName:"span"},"\u23a3"))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.158em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.816em"}}),(0,m.kt)("span",{parentName:"span",style:{height:"1.816em",width:"0.6667em"}},(0,m.kt)("svg",{parentName:"span",xmlns:"http://www.w3.org/2000/svg",width:"0.6667em",height:"1.816em",style:{width:"0.6667em"},viewBox:"0 0 666.67 1816",preserveAspectRatio:"xMinYMin"},(0,m.kt)("path",{parentName:"svg",d:"M319 0 H403 V1816 H319z M319 0 H403 V1816 H319z"})))),(0,m.kt)("span",{parentName:"span",style:{top:"-5.6111em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.816em"}}),(0,m.kt)("span",{parentName:"span",className:"delimsizinginner delim-size4"},(0,m.kt)("span",{parentName:"span"},"\u23a1")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"2.45em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mtable"},(0,m.kt)("span",{parentName:"span",className:"col-align-c"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"2.98em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-5.8275em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.6875em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"o"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"1")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))))),(0,m.kt)("span",{parentName:"span",style:{top:"-4.6275em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.6875em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"o"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"2")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))))),(0,m.kt)("span",{parentName:"span",style:{top:"-2.7675em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.6875em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"\u22ee"),(0,m.kt)("span",{parentName:"span",className:"mord rule",style:{borderRightWidth:"0em",borderTopWidth:"1.5em",bottom:"0em"}})))),(0,m.kt)("span",{parentName:"span",style:{top:"-1.5675em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.6875em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"o"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.1514em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"n")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"}))))))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"2.48em"}},(0,m.kt)("span",{parentName:"span"}))))))),(0,m.kt)("span",{parentName:"span",className:"mclose"},(0,m.kt)("span",{parentName:"span",className:"delimsizing mult"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"2.95em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.011em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.816em"}}),(0,m.kt)("span",{parentName:"span",className:"delimsizinginner delim-size4"},(0,m.kt)("span",{parentName:"span"},"\u23a6"))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.158em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.816em"}}),(0,m.kt)("span",{parentName:"span",style:{height:"1.816em",width:"0.6667em"}},(0,m.kt)("svg",{parentName:"span",xmlns:"http://www.w3.org/2000/svg",width:"0.6667em",height:"1.816em",style:{width:"0.6667em"},viewBox:"0 0 666.67 1816",preserveAspectRatio:"xMinYMin"},(0,m.kt)("path",{parentName:"svg",d:"M263 0 H347 V1816 H263z M263 0 H347 V1816 H263z"})))),(0,m.kt)("span",{parentName:"span",style:{top:"-5.6111em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.816em"}}),(0,m.kt)("span",{parentName:"span",className:"delimsizinginner delim-size4"},(0,m.kt)("span",{parentName:"span"},"\u23a4")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"2.45em"}},(0,m.kt)("span",{parentName:"span"}))))))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"="),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"5.5326em",verticalAlign:"-2.5163em"}}),(0,m.kt)("span",{parentName:"span",className:"minner"},(0,m.kt)("span",{parentName:"span",className:"mopen"},(0,m.kt)("span",{parentName:"span",className:"delimsizing mult"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"2.95em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.011em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.816em"}}),(0,m.kt)("span",{parentName:"span",className:"delimsizinginner delim-size4"},(0,m.kt)("span",{parentName:"span"},"\u23a3"))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.158em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.816em"}}),(0,m.kt)("span",{parentName:"span",style:{height:"1.816em",width:"0.6667em"}},(0,m.kt)("svg",{parentName:"span",xmlns:"http://www.w3.org/2000/svg",width:"0.6667em",height:"1.816em",style:{width:"0.6667em"},viewBox:"0 0 666.67 1816",preserveAspectRatio:"xMinYMin"},(0,m.kt)("path",{parentName:"svg",d:"M319 0 H403 V1816 H319z M319 0 H403 V1816 H319z"})))),(0,m.kt)("span",{parentName:"span",style:{top:"-5.6111em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.816em"}}),(0,m.kt)("span",{parentName:"span",className:"delimsizinginner delim-size4"},(0,m.kt)("span",{parentName:"span"},"\u23a1")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"2.45em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mtable"},(0,m.kt)("span",{parentName:"span",className:"col-align-c"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"3.0163em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-5.8638em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.6875em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.0037em"}},"\u03b1"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.7519em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.4519em",marginLeft:"-0.0037em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"1"),(0,m.kt)("span",{parentName:"span",className:"mpunct mtight"},","),(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"1")))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.063em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"\u2032"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3842em"}},(0,m.kt)("span",{parentName:"span"})))))))),(0,m.kt)("span",{parentName:"span",style:{top:"-4.6396em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.6875em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.0037em"}},"\u03b1"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.7519em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.4519em",marginLeft:"-0.0037em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"1"),(0,m.kt)("span",{parentName:"span",className:"mpunct mtight"},","),(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"2")))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.063em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"\u2032"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3842em"}},(0,m.kt)("span",{parentName:"span"})))))))),(0,m.kt)("span",{parentName:"span",style:{top:"-2.7554em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.6875em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"\u22ee"),(0,m.kt)("span",{parentName:"span",className:"mord rule",style:{borderRightWidth:"0em",borderTopWidth:"1.5em",bottom:"0em"}})))),(0,m.kt)("span",{parentName:"span",style:{top:"-1.5554em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.6875em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.0037em"}},"\u03b1"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.7519em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.4519em",marginLeft:"-0.0037em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"1"),(0,m.kt)("span",{parentName:"span",className:"mpunct mtight"},","),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"n")))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.063em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"\u2032"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3842em"}},(0,m.kt)("span",{parentName:"span"}))))))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"2.5163em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"arraycolsep",style:{width:"0.5em"}}),(0,m.kt)("span",{parentName:"span",className:"arraycolsep",style:{width:"0.5em"}}),(0,m.kt)("span",{parentName:"span",className:"col-align-c"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"3.0163em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-5.8638em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.6875em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"0"))),(0,m.kt)("span",{parentName:"span",style:{top:"-4.6396em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.6875em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.0037em"}},"\u03b1"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.7519em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.4519em",marginLeft:"-0.0037em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"2"))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.063em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"\u2032"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.2481em"}},(0,m.kt)("span",{parentName:"span"})))))))),(0,m.kt)("span",{parentName:"span",style:{top:"-2.7554em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.6875em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"\u22ee"),(0,m.kt)("span",{parentName:"span",className:"mord rule",style:{borderRightWidth:"0em",borderTopWidth:"1.5em",bottom:"0em"}})))),(0,m.kt)("span",{parentName:"span",style:{top:"-1.5554em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.6875em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.0037em"}},"\u03b1"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.7519em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.4519em",marginLeft:"-0.0037em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"2"),(0,m.kt)("span",{parentName:"span",className:"mpunct mtight"},","),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"n")))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.063em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"\u2032"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3842em"}},(0,m.kt)("span",{parentName:"span"}))))))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"2.5163em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"arraycolsep",style:{width:"0.5em"}}),(0,m.kt)("span",{parentName:"span",className:"arraycolsep",style:{width:"0.5em"}}),(0,m.kt)("span",{parentName:"span",className:"col-align-c"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"3.0163em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-5.6763em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.5em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"minner"},"\u22ef"))),(0,m.kt)("span",{parentName:"span",style:{top:"-4.4521em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.5em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"minner"},"\u22ef"))),(0,m.kt)("span",{parentName:"span",style:{top:"-2.5679em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.5em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"})),(0,m.kt)("span",{parentName:"span",style:{top:"-1.3679em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.5em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"minner"},"\u22ef")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"2.5163em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"arraycolsep",style:{width:"0.5em"}}),(0,m.kt)("span",{parentName:"span",className:"arraycolsep",style:{width:"0.5em"}}),(0,m.kt)("span",{parentName:"span",className:"col-align-c"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"3.0163em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-5.8638em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.6875em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"0"))),(0,m.kt)("span",{parentName:"span",style:{top:"-4.6396em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.6875em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"0"))),(0,m.kt)("span",{parentName:"span",style:{top:"-2.7554em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.6875em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"\u22ee"),(0,m.kt)("span",{parentName:"span",className:"mord rule",style:{borderRightWidth:"0em",borderTopWidth:"1.5em",bottom:"0em"}})))),(0,m.kt)("span",{parentName:"span",style:{top:"-1.5554em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.6875em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.0037em"}},"\u03b1"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.7519em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.453em",marginLeft:"-0.0037em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"n"),(0,m.kt)("span",{parentName:"span",className:"mpunct mtight"},","),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"n")))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.063em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"\u2032"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3831em"}},(0,m.kt)("span",{parentName:"span"}))))))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"2.5163em"}},(0,m.kt)("span",{parentName:"span"}))))))),(0,m.kt)("span",{parentName:"span",className:"mclose"},(0,m.kt)("span",{parentName:"span",className:"delimsizing mult"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"2.95em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.011em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.816em"}}),(0,m.kt)("span",{parentName:"span",className:"delimsizinginner delim-size4"},(0,m.kt)("span",{parentName:"span"},"\u23a6"))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.158em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.816em"}}),(0,m.kt)("span",{parentName:"span",style:{height:"1.816em",width:"0.6667em"}},(0,m.kt)("svg",{parentName:"span",xmlns:"http://www.w3.org/2000/svg",width:"0.6667em",height:"1.816em",style:{width:"0.6667em"},viewBox:"0 0 666.67 1816",preserveAspectRatio:"xMinYMin"},(0,m.kt)("path",{parentName:"svg",d:"M263 0 H347 V1816 H263z M263 0 H347 V1816 H263z"})))),(0,m.kt)("span",{parentName:"span",style:{top:"-5.6111em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.816em"}}),(0,m.kt)("span",{parentName:"span",className:"delimsizinginner delim-size4"},(0,m.kt)("span",{parentName:"span"},"\u23a4")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"2.45em"}},(0,m.kt)("span",{parentName:"span"}))))))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"minner"},(0,m.kt)("span",{parentName:"span",className:"mopen"},(0,m.kt)("span",{parentName:"span",className:"delimsizing mult"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"2.95em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.011em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.816em"}}),(0,m.kt)("span",{parentName:"span",className:"delimsizinginner delim-size4"},(0,m.kt)("span",{parentName:"span"},"\u23a3"))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.158em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.816em"}}),(0,m.kt)("span",{parentName:"span",style:{height:"1.816em",width:"0.6667em"}},(0,m.kt)("svg",{parentName:"span",xmlns:"http://www.w3.org/2000/svg",width:"0.6667em",height:"1.816em",style:{width:"0.6667em"},viewBox:"0 0 666.67 1816",preserveAspectRatio:"xMinYMin"},(0,m.kt)("path",{parentName:"svg",d:"M319 0 H403 V1816 H319z M319 0 H403 V1816 H319z"})))),(0,m.kt)("span",{parentName:"span",style:{top:"-5.6111em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.816em"}}),(0,m.kt)("span",{parentName:"span",className:"delimsizinginner delim-size4"},(0,m.kt)("span",{parentName:"span"},"\u23a1")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"2.45em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mtable"},(0,m.kt)("span",{parentName:"span",className:"col-align-c"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"2.98em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-5.8275em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.6875em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"v"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0359em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"1")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))))),(0,m.kt)("span",{parentName:"span",style:{top:"-4.6275em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.6875em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"v"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0359em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"2")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))))),(0,m.kt)("span",{parentName:"span",style:{top:"-2.7675em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.6875em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"\u22ee"),(0,m.kt)("span",{parentName:"span",className:"mord rule",style:{borderRightWidth:"0em",borderTopWidth:"1.5em",bottom:"0em"}})))),(0,m.kt)("span",{parentName:"span",style:{top:"-1.5675em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.6875em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"v"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.1514em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0359em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"n")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"}))))))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"2.48em"}},(0,m.kt)("span",{parentName:"span"}))))))),(0,m.kt)("span",{parentName:"span",className:"mclose"},(0,m.kt)("span",{parentName:"span",className:"delimsizing mult"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"2.95em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.011em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.816em"}}),(0,m.kt)("span",{parentName:"span",className:"delimsizinginner delim-size4"},(0,m.kt)("span",{parentName:"span"},"\u23a6"))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.158em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.816em"}}),(0,m.kt)("span",{parentName:"span",style:{height:"1.816em",width:"0.6667em"}},(0,m.kt)("svg",{parentName:"span",xmlns:"http://www.w3.org/2000/svg",width:"0.6667em",height:"1.816em",style:{width:"0.6667em"},viewBox:"0 0 666.67 1816",preserveAspectRatio:"xMinYMin"},(0,m.kt)("path",{parentName:"svg",d:"M263 0 H347 V1816 H263z M263 0 H347 V1816 H263z"})))),(0,m.kt)("span",{parentName:"span",style:{top:"-5.6111em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.816em"}}),(0,m.kt)("span",{parentName:"span",className:"delimsizinginner delim-size4"},(0,m.kt)("span",{parentName:"span"},"\u23a4")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"2.45em"}},(0,m.kt)("span",{parentName:"span"})))))))),(0,m.kt)("span",{parentName:"span",className:"tag"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"5.5326em",verticalAlign:"-2.5163em"}}),(0,m.kt)("span",{parentName:"span",className:"mord text"},(0,m.kt)("span",{parentName:"span",className:"mord"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"8")),(0,m.kt)("span",{parentName:"span",className:"mord"},")"))))))),(0,m.kt)("p",null,"\u56e0\u6b64\uff0c\u6211\u4eec\u9700\u8981\u5c06\u5f53\u524d\u65f6\u95f4\u6b65\u8ba1\u7b97\u7684\u8bcd\u6c47\u7684\u65f6\u95f4\u987a\u5e8f\u53f3\u4fa7\u7684\u8f93\u5165\u8bcd\u6c47\u5168\u90e8\u63a9\u7801\uff0c\u7f6e\u4e3a0\u3002"),(0,m.kt)("p",null,"\u5728\u6e90\u7801\u4e2d\uff0c\u6709\u5982\u4e0b\u7247\u6bb5\u5b9e\u73b0\u63a9\u7801\uff1a"),(0,m.kt)("pre",null,(0,m.kt)("code",{parentName:"pre",className:"language-python"},"if mask is not None:\n scores = scores.masked_fill(mask == 0, -1e9)\n\np_attn = scores.softmax(dim=-1)\n")),(0,m.kt)("p",null,"\u5728\u6e90\u7801\u4e2d\uff0c\u5c06mask\u7f6e\u4e3a\u8d1f\u65e0\u7a77\u662f\u56e0\u4e3a\u8fd9\u662f\u5728\u7ecf\u8fc7Softmax\u4e4b\u524d\u8fdb\u884c\u7684\u63a9\u7801\uff0c\u5728\u7ecf\u8fc7Softmax\u4e4b\u540e\u8d1f\u65e0\u7a77\u5c0f\u5c31\u53d8\u6210\u4e860\u3002"))}c.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/4972.d1a5048e.js b/assets/js/4972.d1a5048e.js new file mode 100644 index 000000000..a41494381 --- /dev/null +++ b/assets/js/4972.d1a5048e.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunknpy_notebook=self.webpackChunknpy_notebook||[]).push([[4972],{4972:(e,t,n)=>{n.r(t),n.d(t,{default:()=>i});var a=n(7294),o=n(5999),l=n(1944),r=n(179);function i(){return a.createElement(a.Fragment,null,a.createElement(l.d,{title:(0,o.I)({id:"theme.NotFound.title",message:"Page Not Found"})}),a.createElement(r.Z,null,a.createElement("main",{className:"container margin-vert--xl"},a.createElement("div",{className:"row"},a.createElement("div",{className:"col col--6 col--offset-3"},a.createElement("h1",{className:"hero__title"},a.createElement(o.Z,{id:"theme.NotFound.title",description:"The title of the 404 page"},"Page Not Found")),a.createElement("p",null,a.createElement(o.Z,{id:"theme.NotFound.p1",description:"The first paragraph of the 404 page"},"We could not find what you were looking for.")),a.createElement("p",null,a.createElement(o.Z,{id:"theme.NotFound.p2",description:"The 2nd paragraph of the 404 page"},"Please contact the owner of the site that linked you to the original URL and let them know their link is broken.")))))))}}}]); \ No newline at end of file diff --git a/assets/js/4e1def24.ef64de25.js b/assets/js/4e1def24.ef64de25.js new file mode 100644 index 000000000..68703ed73 --- /dev/null +++ b/assets/js/4e1def24.ef64de25.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunknpy_notebook=self.webpackChunknpy_notebook||[]).push([[6237],{3905:(e,t,r)=>{r.d(t,{Zo:()=>c,kt:()=>k});var n=r(7294);function a(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e){for(var t=1;t=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}var u=n.createContext({}),p=function(e){var t=n.useContext(u),r=t;return e&&(r="function"==typeof e?e(t):i(i({},t),e)),r},c=function(e){var t=p(e.components);return n.createElement(u.Provider,{value:t},e.children)},m="mdxType",d={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},f=n.forwardRef((function(e,t){var r=e.components,a=e.mdxType,l=e.originalType,u=e.parentName,c=o(e,["components","mdxType","originalType","parentName"]),m=p(r),f=a,k=m["".concat(u,".").concat(f)]||m[f]||d[f]||l;return r?n.createElement(k,i(i({ref:t},c),{},{components:r})):n.createElement(k,i({ref:t},c))}));function k(e,t){var r=arguments,a=t&&t.mdxType;if("string"==typeof e||a){var l=r.length,i=new Array(l);i[0]=f;var o={};for(var u in t)hasOwnProperty.call(t,u)&&(o[u]=t[u]);o.originalType=e,o[m]="string"==typeof e?e:a,i[1]=o;for(var p=2;p{r.r(t),r.d(t,{assets:()=>u,contentTitle:()=>i,default:()=>d,frontMatter:()=>l,metadata:()=>o,toc:()=>p});var n=r(7462),a=(r(7294),r(3905));const l={},i="\u7ecf\u9a8c\u8d34\uff1a2023\u5e74\u53cc\u975e\u8ba1\u7b97\u673a\u4fdd\u7814\u7ecf\u5386",o={unversionedId:"Tui-Mian/Summary",id:"Tui-Mian/Summary",title:"\u7ecf\u9a8c\u8d34\uff1a2023\u5e74\u53cc\u975e\u8ba1\u7b97\u673a\u4fdd\u7814\u7ecf\u5386",description:"\u524d\u8a00",source:"@site/docs/Tui-Mian/2-Summary.md",sourceDirName:"Tui-Mian",slug:"/Tui-Mian/Summary",permalink:"/docs/Tui-Mian/Summary",draft:!1,tags:[],version:"current",sidebarPosition:2,frontMatter:{},sidebar:"tui_mian",previous:{title:"Welcome",permalink:"/docs/Tui-Mian/intro"},next:{title:"\u590f\u4ee4\u8425\u9762\u8bd5\u6570\u5b66\u90e8\u5206\u590d\u4e60",permalink:"/docs/Tui-Mian/\u6570\u5b66/\u590f\u4ee4\u8425\u9762\u8bd5\u6570\u5b66\u90e8\u5206\u590d\u4e60"}},u={},p=[{value:"\u524d\u8a00",id:"\u524d\u8a00",level:2},{value:"\u626b\u76f2",id:"\u626b\u76f2",level:3},{value:"\u4e2a\u4eba\u60c5\u51b5",id:"\u4e2a\u4eba\u60c5\u51b5",level:2},{value:"\u524d\u671f\u51c6\u5907",id:"\u524d\u671f\u51c6\u5907",level:2},{value:"\u590f\u4ee4\u8425",id:"\u590f\u4ee4\u8425",level:2},{value:"\u9884\u63a8\u514d",id:"\u9884\u63a8\u514d",level:2},{value:"\u540e\u5e8f",id:"\u540e\u5e8f",level:2}],c={toc:p},m="wrapper";function d(e){let{components:t,...r}=e;return(0,a.kt)(m,(0,n.Z)({},c,r,{components:t,mdxType:"MDXLayout"}),(0,a.kt)("h1",{id:"\u7ecf\u9a8c\u8d342023\u5e74\u53cc\u975e\u8ba1\u7b97\u673a\u4fdd\u7814\u7ecf\u5386"},"\u7ecf\u9a8c\u8d34\uff1a2023\u5e74\u53cc\u975e\u8ba1\u7b97\u673a\u4fdd\u7814\u7ecf\u5386"),(0,a.kt)("h2",{id:"\u524d\u8a00"},"\u524d\u8a00"),(0,a.kt)("p",null,"\u81ea\u5df1\u5728\u51c6\u5907\u590f\u4ee4\u8425\u548c\u9884\u63a8\u514d\u671f\u95f4\u6d4f\u89c8\u4e86\u5f88\u591a\u7ecf\u9a8c\u8d34\uff0c\u6309\u7167\u79d1\u534f\u7684\u4f20\u7edf\uff0c\u4e5f\u652f\u6301\u4e00\u4e0b\u4e92\u8054\u7f51\u7cbe\u795e\uff0c\u8fd8\u662f\u7ed9\u5e08\u5f1f\u5e08\u59b9\u4eec\u7559\u4e0b\u70b9\u6587\u5b57\u8d44\u6599\u5427\u3002"),(0,a.kt)("p",null,"\u5e0c\u671b\u53ef\u4ee5\u5e2e\u5230\u5927\u5bb6\uff0c\u4e5f\u611f\u8c22\u90a3\u4e9b\u66fe\u7ecf\u5e2e\u52a9\u8fc7\u6211\u7684\u7ecf\u9a8c\u8d34\u548c\u5e08\u5144\u5e08\u59d0\u3002"),(0,a.kt)("p",null,(0,a.kt)("inlineCode",{parentName:"p"},"\u6587\u7ae0\u5747\u4e3a\u4e2a\u4eba\u7ecf\u5386\u4e0e\u60f3\u6cd5\uff0c\u4e0d\u4ee3\u8868\u4efb\u4f55\u5355\u4f4d\u7684\u5b98\u65b9\u7acb\u573a\uff0c\u4ec5\u4f9b\u53c2\u8003\u3002")),(0,a.kt)("h3",{id:"\u626b\u76f2"},"\u626b\u76f2"),(0,a.kt)("table",null,(0,a.kt)("thead",{parentName:"table"},(0,a.kt)("tr",{parentName:"thead"},(0,a.kt)("th",{parentName:"tr",align:"center"},"\u5e38\u89c1\u540d\u8bcd"),(0,a.kt)("th",{parentName:"tr",align:"center"},"\u542b\u4e49\u89e3\u91ca"))),(0,a.kt)("tbody",{parentName:"table"},(0,a.kt)("tr",{parentName:"tbody"},(0,a.kt)("td",{parentName:"tr",align:"center"},"928/929"),(0,a.kt)("td",{parentName:"tr",align:"center"},"\u6bcf\u5e74\u7684\u516c\u53869\u670828\u65e5\uff082023\u5e74\u662f9\u670829\u65e5\uff09\uff0c\u662f\u7814\u62db\u7f51\u5168\u56fd\u63a8\u514d\u7cfb\u7edf\u5f00\u653e\u7684\u65e5\u5b50\uff0c\u4e5f\u662f\u5df2\u7ecf\u62ff\u5230offer\u7684\u63a8\u514d\u751f\u4e0a\u5cb8\u7684\u65e5\u5b50\u3002",(0,a.kt)("br",null),"\u6ca1offer\u7684\u4e5f\u4e0d\u7528\u7740\u6025\uff0c\u56e0\u4e3a\u6bcf\u4e2a\u5b66\u751f\u53ea\u80fd\u4e0a\u4e00\u4e2a\u5b66\u6821\uff0c928/929\u5f53\u5929\u5c31\u7b97\u624b\u91cc\u4e00\u5806offer\u7684\u5b66\u751f\u4e5f\u662f\u53ea\u80fd\u9009\u62e9\u6700\u60f3\u53bb\u7684\u5b66\u6821\u800c\u91ca\u653e\u6389\u5176\u4ed6offer\u3002\u7a33\u4f4f\u5fc3\u6001\u6c89\u4f4f\u6c14\uff0c\u4e00\u822c10\u670820\u65e5\u63a8\u514d\u7cfb\u7edf\u624d\u5173\u95ed\uff0c\u8fd9\u6bb5\u65f6\u95f4\u8db3\u591f\u8054\u7cfb\u5bfc\u5e08\u4e0a\u5cb8\u4e86\u3002")),(0,a.kt)("tr",{parentName:"tbody"},(0,a.kt)("td",{parentName:"tr",align:"center"},"\u4f18\u8425"),(0,a.kt)("td",{parentName:"tr",align:"center"},"\u4f18\u8425\u5c31\u662f\u590f\u4ee4\u8425\u7684\u4f18\u79c0\u8425\u5458\u3002",(0,a.kt)("br",null),"\u4e0d\u540c\u5b66\u6821\u4f18\u8425\u7684\u6548\u529b\u4e0d\u540c\uff0c\u6709\u4e9b\u5b66\u6821\u7684\u4f18\u8425\u76f4\u63a5\u7b49\u4e8e\u62df\u5f55\u53d6\uff0c928/929\u5f53\u5929\u586b\u62a5\u7cfb\u7edf\u5373\u53ef\u4e0a\u5cb8\uff1b\u4f46\u6709\u4e9b\u5b66\u6821\u7684\u4f18\u8425\u53ea\u80fd\u4fdd\u8bc1\u5728\u540e\u671f\u7684\u9884\u63a8\u514d\u6216\u4e5d\u63a8\u7684\u521d\u7b5b\u4e2d\u4e0d\u88ab\u5237\u6389\uff0c\u4ecd\u9700\u53c2\u52a0\u540e\u7eed\u8003\u6838\u624d\u80fd\u83b7\u5f97\u62df\u5f55\u53d6\u8d44\u683c\u3002")),(0,a.kt)("tr",{parentName:"tbody"},(0,a.kt)("td",{parentName:"tr",align:"center"},"wl/waiting list"),(0,a.kt)("td",{parentName:"tr",align:"center"},"wl\u5c31\u662f\u9012\u8865\u540d\u5355\uff0c\u6709\u4e9b\u5b66\u6821\u7684\u590f\u4ee4\u8425\u4f18\u8425\u8bc4\u9009\u4e2d\u8bbe\u7f6e\u9012\u8865\u540d\u5355\u3002\u5982\u679c\u540e\u671f\u6709\u5176\u4ed6\u4f18\u8425\u5b66\u751f\u653e\u9e3d\u5b50\u4e0d\u6765\u7684\u8bdd\uff0c\u5c31\u4f1a\u6309\u987a\u5e8f\u8865\u5f55\u5230\u9012\u8865\u540d\u5355\u4e2d\u7684\u5b66\u751f\u3002")))),(0,a.kt)("h2",{id:"\u4e2a\u4eba\u60c5\u51b5"},"\u4e2a\u4eba\u60c5\u51b5"),(0,a.kt)("ul",null,(0,a.kt)("li",{parentName:"ul"},"\u672c\u79d1\u5b66\u6821\uff1a\u7406\u5de5\u7c7b\u666e\u901a\u4e00\u672c\uff08\u56db\u975e\uff09"),(0,a.kt)("li",{parentName:"ul"},"\u4e13\u4e1a\uff1a\u8ba1\u7b97\u673a\u79d1\u5b66\u4e0e\u6280\u672fCS"),(0,a.kt)("li",{parentName:"ul"},"rank\uff1a\u524d1%\uff08\u975erank 1 or 2\u7684top\u9009\u624b\uff09"),(0,a.kt)("li",{parentName:"ul"},"\u82f1\u8bed\uff1a\u56db\u7ea7594 & \u516d\u7ea7586"),(0,a.kt)("li",{parentName:"ul"},"\u7ade\u8d5b\uff1a\u975eACMer\uff0c\u4e00\u4e2aCV\u7c7b\u6bd4\u8d5b\u56fd\u4e00\uff0c\u5176\u4ed6\u90fd\u662f",(0,a.kt)("inlineCode",{parentName:"li"},"\u66f4"),"\u4e0d\u4e0a\u53f0\u9762\u7684\u5956\u9879\u4e86"),(0,a.kt)("li",{parentName:"ul"},"\u5956\u5b66\u91d1\uff1a\u56fd\u5bb6\u5956\u5b66\u91d1\uff08\u590f\u4ee4\u8425\u7ed3\u675f\u4e4b\u540e\u624d\u62ff\u7684\uff0c\u57fa\u672c\u6ca1\u7528\u5230\uff09\u3001\u7701\u4eba\u6c11\u653f\u5e9c\u5956\u5b66\u91d1\u3001CASC\u5956\u5b66\u91d1"),(0,a.kt)("li",{parentName:"ul"},"\u79d1\u7814\u53ca\u8bba\u6587\uff1a\u65e0\u6b63\u7ecf\u79d1\u7814\u7ecf\u5386\uff0cEI\u6c34\u4f1a\u4e00\u7bc7")),(0,a.kt)("p",null,"\u4ece\u67d0\u79cd\u7a0b\u5ea6\u4e0a\u6765\u8bf4\uff0c\u672c\u79d1\u51fa\u8eab\u548crank\u57fa\u672c\u4e0a\u51b3\u5b9a\u4e86\u4e0a\u9650\u3002"),(0,a.kt)("h2",{id:"\u524d\u671f\u51c6\u5907"},"\u524d\u671f\u51c6\u5907"),(0,a.kt)("h2",{id:"\u590f\u4ee4\u8425"},"\u590f\u4ee4\u8425"),(0,a.kt)("h2",{id:"\u9884\u63a8\u514d"},"\u9884\u63a8\u514d"),(0,a.kt)("h2",{id:"\u540e\u5e8f"},"\u540e\u5e8f"))}d.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/4fdf609a.540f6d42.js b/assets/js/4fdf609a.540f6d42.js new file mode 100644 index 000000000..b5b8acc25 --- /dev/null +++ b/assets/js/4fdf609a.540f6d42.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunknpy_notebook=self.webpackChunknpy_notebook||[]).push([[7698],{3905:(e,t,a)=>{a.d(t,{Zo:()=>s,kt:()=>u});var n=a(7294);function r(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function p(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,n)}return a}function m(e){for(var t=1;t=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}var o=n.createContext({}),l=function(e){var t=n.useContext(o),a=t;return e&&(a="function"==typeof e?e(t):m(m({},t),e)),a},s=function(e){var t=l(e.components);return n.createElement(o.Provider,{value:t},e.children)},k="mdxType",c={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},N=n.forwardRef((function(e,t){var a=e.components,r=e.mdxType,p=e.originalType,o=e.parentName,s=i(e,["components","mdxType","originalType","parentName"]),k=l(a),N=r,u=k["".concat(o,".").concat(N)]||k[N]||c[N]||p;return a?n.createElement(u,m(m({ref:t},s),{},{components:a})):n.createElement(u,m({ref:t},s))}));function u(e,t){var a=arguments,r=t&&t.mdxType;if("string"==typeof e||r){var p=a.length,m=new Array(p);m[0]=N;var i={};for(var o in t)hasOwnProperty.call(t,o)&&(i[o]=t[o]);i.originalType=e,i[k]="string"==typeof e?e:r,m[1]=i;for(var l=2;l{a.r(t),a.d(t,{assets:()=>o,contentTitle:()=>m,default:()=>c,frontMatter:()=>p,metadata:()=>i,toc:()=>l});var n=a(7462),r=(a(7294),a(3905));const p={},m="\u7ebf\u6027\u4ee3\u6570",i={unversionedId:"Tui-Mian/\u6570\u5b66/\u7ebf\u6027\u4ee3\u6570",id:"Tui-Mian/\u6570\u5b66/\u7ebf\u6027\u4ee3\u6570",title:"\u7ebf\u6027\u4ee3\u6570",description:"\u53c2\u8003\u94fe\u63a5\uff1a",source:"@site/docs/Tui-Mian/\u6570\u5b66/\u7ebf\u6027\u4ee3\u6570.md",sourceDirName:"Tui-Mian/\u6570\u5b66",slug:"/Tui-Mian/\u6570\u5b66/\u7ebf\u6027\u4ee3\u6570",permalink:"/docs/Tui-Mian/\u6570\u5b66/\u7ebf\u6027\u4ee3\u6570",draft:!1,tags:[],version:"current",frontMatter:{},sidebar:"tui_mian",previous:{title:"\u6982\u7387\u8bba",permalink:"/docs/Tui-Mian/\u6570\u5b66/\u6982\u7387\u8bba"},next:{title:"\u5927\u6570\u9664\u6cd5",permalink:"/docs/Tui-Mian/\u673a\u8bd5/\u5927\u6570\u9664\u6cd5"}},o={},l=[{value:"\u4e00\u3001\u57fa\u7840\u77e5\u8bc6",id:"\u4e00\u57fa\u7840\u77e5\u8bc6",level:2},{value:"\u4e8c\u3001\u9762\u8bd5\u5e38\u8003\u95ee\u9898",id:"\u4e8c\u9762\u8bd5\u5e38\u8003\u95ee\u9898",level:2}],s={toc:l},k="wrapper";function c(e){let{components:t,...a}=e;return(0,r.kt)(k,(0,n.Z)({},s,a,{components:t,mdxType:"MDXLayout"}),(0,r.kt)("h1",{id:"\u7ebf\u6027\u4ee3\u6570"},"\u7ebf\u6027\u4ee3\u6570"),(0,r.kt)("admonition",{type:"tip"},(0,r.kt)("p",{parentName:"admonition"},"\u53c2\u8003\u94fe\u63a5\uff1a"),(0,r.kt)("p",{parentName:"admonition"},(0,r.kt)("a",{parentName:"p",href:"https://zhuanlan.zhihu.com/p/360522408"},"\u7ebf\u6027\u4ee3\u6570\u6781\u7b80\u5165\u95e8")),(0,r.kt)("p",{parentName:"admonition"},(0,r.kt)("a",{parentName:"p",href:"https://www.bilibili.com/video/BV1aW411Q7x1?p=26&vd_source=24d8fcf68bc0e2b0003defe0995cf533"},"\u300a\u7ebf\u6027\u4ee3\u6570\u300b\u9ad8\u6e05\u6559\u5b66\u89c6\u9891 \u201c\u60ca\u53f9\u53f7\u201d\u7cfb\u5217 \u5b8b\u6d69\u8001\u5e08"))),(0,r.kt)("h2",{id:"\u4e00\u57fa\u7840\u77e5\u8bc6"},"\u4e00\u3001\u57fa\u7840\u77e5\u8bc6"),(0,r.kt)("p",null,(0,r.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora/imagesimage-20230626214118462.png",alt:"image-20230626214118462"})),(0,r.kt)("p",null,(0,r.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora/imagesimage-20230626214142283.png",alt:"image-20230626214142283"})),(0,r.kt)("p",null,(0,r.kt)("strong",{parentName:"p"},"\u7ebf\u6027\u76f8\u5173\u4e0e\u7ebf\u6027\u65e0\u5173\uff1a"),"\u5411\u91cf\u7ec4\u4e2d\u7684\u4efb\u4e00\u5411\u91cf\u90fd\u4e0d\u80fd\u88ab\u5176\u5b83\u5411\u91cf\u7ebf\u6027\u8868\u793a\uff0c\u5c31\u8bf4\u5411\u91cf\u7ec4\u7ebf\u6027\u65e0\u5173\uff1b\u5426\u5219\u5c31\u662f\u7ebf\u6027\u76f8\u5173\u3002"),(0,r.kt)("p",null,(0,r.kt)("strong",{parentName:"p"},"\u77e9\u9635\u8f6c\u7f6e\uff1a"),"\u5c06\u77e9\u9635\u7684\u884c\u548c\u5217\u4e92\u76f8\u4ea4\u6362"),(0,r.kt)("p",null,(0,r.kt)("strong",{parentName:"p"},"\u77e9\u9635\u6c42\u9006\uff1a"),"\u5bf9\u4e8e\u65b9\u9635A\uff0c\u82e5\u5b58\u5728\u65b9\u9635B\u4f7f\u5f97AB=BA=\u5355\u4f4d\u65b9\u9635I\uff0c\u5219\u65b9\u9635B\u4e3a\u65b9\u9635A\u7684\u9006\u77e9\u9635\uff0c\u8bb0\u4e3a",(0,r.kt)("span",{parentName:"p",className:"math math-inline"},(0,r.kt)("span",{parentName:"span",className:"katex"},(0,r.kt)("span",{parentName:"span",className:"katex-mathml"},(0,r.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,r.kt)("semantics",{parentName:"math"},(0,r.kt)("mrow",{parentName:"semantics"},(0,r.kt)("msup",{parentName:"mrow"},(0,r.kt)("mi",{parentName:"msup"},"A"),(0,r.kt)("mrow",{parentName:"msup"},(0,r.kt)("mo",{parentName:"mrow"},"\u2212"),(0,r.kt)("mn",{parentName:"mrow"},"1")))),(0,r.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"A^{-1}")))),(0,r.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,r.kt)("span",{parentName:"span",className:"base"},(0,r.kt)("span",{parentName:"span",className:"strut",style:{height:"0.8141em"}}),(0,r.kt)("span",{parentName:"span",className:"mord"},(0,r.kt)("span",{parentName:"span",className:"mord mathnormal"},"A"),(0,r.kt)("span",{parentName:"span",className:"msupsub"},(0,r.kt)("span",{parentName:"span",className:"vlist-t"},(0,r.kt)("span",{parentName:"span",className:"vlist-r"},(0,r.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.8141em"}},(0,r.kt)("span",{parentName:"span",style:{top:"-3.063em",marginRight:"0.05em"}},(0,r.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,r.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,r.kt)("span",{parentName:"span",className:"mord mtight"},(0,r.kt)("span",{parentName:"span",className:"mord mtight"},"\u2212"),(0,r.kt)("span",{parentName:"span",className:"mord mtight"},"1")))))))))))))),(0,r.kt)("h2",{id:"\u4e8c\u9762\u8bd5\u5e38\u8003\u95ee\u9898"},"\u4e8c\u3001\u9762\u8bd5\u5e38\u8003\u95ee\u9898"),(0,r.kt)("ol",null,(0,r.kt)("li",{parentName:"ol"},(0,r.kt)("p",{parentName:"li"},(0,r.kt)("strong",{parentName:"p"},"\u7ebf\u6027\u4ee3\u6570\u4e2d\u7684\u521d\u7b49\u884c\u53d8\u6362\u3002")),(0,r.kt)("ol",{parentName:"li"},(0,r.kt)("li",{parentName:"ol"},"\u4ea4\u6362\u4e24\u884c"),(0,r.kt)("li",{parentName:"ol"},"\u7528\u975e\u96f6\u5e38\u6570\u4e58\u4ee5\u67d0\u4e00\u884c"),(0,r.kt)("li",{parentName:"ol"},"\u7528\u4e00\u884c\u7684\u500d\u6570\u52a0\u5230\u53e6\u4e00\u884c\u4e0a"))),(0,r.kt)("li",{parentName:"ol"},(0,r.kt)("p",{parentName:"li"},(0,r.kt)("strong",{parentName:"p"},"\u5982\u4f55\u7406\u89e3\u77e9\u9635\u7684\u79e9\u3002")),(0,r.kt)("p",{parentName:"li"},"\u77e9\u9635\u7684\u79e9\u662f\u6307\u77e9\u9635\u7684\u5217\u7a7a\u95f4\uff08\u6216\u884c\u7a7a\u95f4\uff09\u7684\u7ef4\u6570\uff0c\u7b80\u800c\u8a00\u4e4b\u662f\u77e9\u9635\u4e2d\u6240\u6709\u975e\u96f6\u884c\uff08\u6216\u5217\uff09\u5411\u91cf\u6784\u6210\u7684\u96c6\u5408\u6240\u7ec4\u6210\u7684\u6700\u5927\u7ebf\u6027\u65e0\u5173\u7ec4\u7684\u5411\u91cf\u4e2a\u6570\u3002"),(0,r.kt)("admonition",{parentName:"li",type:"tip"},(0,r.kt)("p",{parentName:"admonition"},"\u5b8b\u6d69\u516b\u5b57\uff1a",(0,r.kt)("strong",{parentName:"p"},"\u975e\u96f6\u5b50\u5f0f\u7684\u6700\u9ad8\u9636\u6570")),(0,r.kt)("p",{parentName:"admonition"},"\u4efb\u610f\u77e9\u9635\u7684\u884c\u79e9\u90fd\u7b49\u4e8e\u5217\u79e9\u3002"))),(0,r.kt)("li",{parentName:"ol"},(0,r.kt)("p",{parentName:"li"},(0,r.kt)("strong",{parentName:"p"},"\u77e9\u9635\u7684\u79e9\u4e0e\u7ebf\u6027\u65b9\u7a0b\u7ec4\u89e3\u7684\u5173\u7cfb\u3002")),(0,r.kt)("p",{parentName:"li"},"\u5bf9\u4e8en\u5143\u7ebf\u6027\u65b9\u7a0b\u7ec4\u800c\u8a00\uff1a"),(0,r.kt)("ol",{parentName:"li"},(0,r.kt)("li",{parentName:"ol"},(0,r.kt)("p",{parentName:"li"},"\u5f53\u7cfb\u6570\u77e9\u9635\u7684\u79e9\u7b49\u4e8e\u589e\u5e7f\u77e9\u9635\u7684\u79e9\u4e14\u79e9\u7b49\u4e8en\u65f6\uff0c\u6709\u552f\u4e00\u89e3")),(0,r.kt)("li",{parentName:"ol"},(0,r.kt)("p",{parentName:"li"},"\u5f53\u7cfb\u6570\u77e9\u9635\u7684\u79e9\u7b49\u4e8e\u589e\u5e7f\u77e9\u9635\u7684\u79e9\u4e14\u79e9\u5927\u4e8en\u65f6\uff0c\u6709\u65e0\u7a77\u591a\u89e3")),(0,r.kt)("li",{parentName:"ol"},(0,r.kt)("p",{parentName:"li"},"\u5f53\u7cfb\u6570\u77e9\u9635\u7684\u79e9\u4e0d\u7b49\u4e8e\u589e\u5e7f\u77e9\u9635\u7684\u79e9\u65f6\uff0c\u65e0\u89e3"),(0,r.kt)("admonition",{parentName:"li",type:"tip"},(0,r.kt)("p",{parentName:"admonition"},"\u5f53\u7cfb\u6570\u77e9\u9635\u7684\u79e9\u5c0f\u4e8e\u589e\u5e7f\u77e9\u9635\u7684\u79e9\u65f6\uff0c\u8bf4\u660e\u7cfb\u6570\u77e9\u9635\u4e2d\u7684\u67d0\u4e00\u5217\u5411\u91cf\uff08\u6216\u884c\u5411\u91cf\uff09\u53ef\u4ee5\u88ab\u5176\u4ed6\u5217\u5411\u91cf\uff08\u6216\u884c\u5411\u91cf\uff09\u7ebf\u6027\u8868\u793a\uff0c\u6b64\u65f6\u8be5\u884c\u4e0d\u80fd\u63d0\u4f9b\u989d\u5916\u7684\u7ebf\u6027\u72ec\u7acb\u4fe1\u606f"))))),(0,r.kt)("li",{parentName:"ol"},(0,r.kt)("p",{parentName:"li"},(0,r.kt)("strong",{parentName:"p"},"\u7b80\u8ff0\u5411\u91cf\u7ec4\u7ebf\u6027\u65e0\u5173\u7684\u542b\u4e49\u3002")),(0,r.kt)("p",{parentName:"li"},"\u542b\u4e49\uff1a\u82e5\u4e00\u4e2a\u5411\u91cf\u7ec4\u662f\u7ebf\u6027\u65e0\u5173\u7684\uff0c\u5219\u8be5\u5411\u91cf\u7ec4\u4e2d\u7684\u6bcf\u4e2a\u5411\u91cf\u90fd\u4e0d\u80fd\u8868\u793a\u6210\u5176\u4ed6\u5411\u91cf\u7684\u7ebf\u6027\u7ec4\u5408\u3002"),(0,r.kt)("p",{parentName:"li"},"\u610f\u4e49\uff1a\u5982\u679c\u4e00\u4e2a\u5411\u91cf\u7ec4\u7ebf\u6027\u65e0\u5173\uff0c\u90a3\u4e48\u8be5\u5411\u91cf\u7ec4\u6240\u5f20\u6210\u7684\u7a7a\u95f4\u5c31\u662f\u4e00\u4e2a\u6700\u5c0f\u7ef4\u5ea6\u7684\u5411\u91cf\u7a7a\u95f4\uff0c\u5e76\u4e14\u8be5\u5411\u91cf\u7a7a\u95f4\u4e2d\u7684\u4efb\u4f55\u5411\u91cf\u90fd\u53ef\u7531\u8fd9\u4e9b\u5411\u91cf\u7ebf\u6027\u7ec4\u5408\u8868\u793a\u3002"),(0,r.kt)("p",{parentName:"li"},"\u5224\u5b9a\u65b9\u6cd5\uff1a\u5982\u679c\u4e00\u4e2a\u5411\u91cf\u7ec4\u4e2d\u7684\u6240\u6709\u5411\u91cf\u90fd\u4e0d\u53ef\u4ee5\u7531\u5176\u4ed6\u5411\u91cf\u7ebf\u6027\u7ec4\u5408\u5f97\u5230\uff0c\u5219\u79f0\u8be5\u5411\u91cf\u7ec4\u4e3a\u7ebf\u6027\u65e0\u5173\u7684\u3002\u5426\u5219\uff0c\u5982\u679c\u5b58\u5728\u67d0\u4e2a\u5411\u91cf\u53ef\u4ee5\u8868\u793a\u6210\u5176\u4ed6\u5411\u91cf\u7684\u7ebf\u6027\u7ec4\u5408\uff0c\u5219\u8be5\u5411\u91cf\u7ec4\u5c31\u4e0d\u662f\u7ebf\u6027\u65e0\u5173\u7684\u3002")),(0,r.kt)("li",{parentName:"ol"},(0,r.kt)("p",{parentName:"li"},(0,r.kt)("strong",{parentName:"p"},"\u89e3\u91ca\u6b63\u5b9a\u77e9\u9635\u4ee5\u53ca\u534a\u6b63\u5b9a\u77e9\u9635\u3002"))),(0,r.kt)("li",{parentName:"ol"},(0,r.kt)("p",{parentName:"li"},(0,r.kt)("strong",{parentName:"p"},"\u7b80\u8ff0\u7279\u5f81\u503c\u7684\u542b\u4e49\u3002")),(0,r.kt)("p",{parentName:"li"},"\u7279\u5f81\u503c\u63cf\u8ff0\u4e86\u77e9\u9635\u5728\u7279\u5b9a\u65b9\u5411\uff08\u7279\u5f81\u5411\u91cf\u65b9\u5411\uff09\u4e0a\u7684\u7f29\u653e\u56e0\u5b50\uff0c\u7279\u5f81\u5411\u91cf\u8868\u793a\u77e9\u9635\u5728\u8fd9\u4e2a\u7279\u5b9a\u65b9\u5411\u4e0a\u7684\u4e0d\u53d8\u6027\u3002")),(0,r.kt)("li",{parentName:"ol"},(0,r.kt)("p",{parentName:"li"},(0,r.kt)("strong",{parentName:"p"},"\u7b80\u8ff0\u77e9\u9635\u5206\u89e3\u7684\u7269\u7406\u610f\u4e49\u3002")),(0,r.kt)("p",{parentName:"li"},"\u77e9\u9635\u5206\u89e3\u662f\u5c06\u4e00\u4e2a\u77e9\u9635\u8868\u793a\u4e3a\u4e00\u4e9b\u7279\u5b9a\u5f62\u5f0f\u7684\u77e9\u9635\u4e58\u79ef\u7684\u8fc7\u7a0b\u3002"),(0,r.kt)("p",{parentName:"li"},"\u77e9\u9635\u5206\u89e3\u7684\u79cd\u7c7b\u4ee5\u53ca\u7269\u7406\u610f\u4e49\uff1a"),(0,r.kt)("ul",{parentName:"li"},(0,r.kt)("li",{parentName:"ul"},"LU\u5206\u89e3\uff1a\u5c06\u77e9\u9635\u5206\u89e3\u4e3a\u4e00\u4e2a\u4e0b\u4e09\u89d2\u77e9\u9635\u548c\u4e00\u4e2a\u4e0a\u4e09\u89d2\u77e9\u9635\u7684\u4e58\u79ef\u3002\u7269\u7406\u610f\u4e49\u5305\u62ec\u89e3\u7ebf\u6027\u65b9\u7a0b\u7ec4\u3001\u8ba1\u7b97\u77e9\u9635\u7684\u884c\u5217\u5f0f\u548c\u9006\u77e9\u9635\u7b49\u3002"),(0,r.kt)("li",{parentName:"ul"},"QR\u5206\u89e3\uff1a\u5c06\u77e9\u9635\u5206\u89e3\u4e3a\u4e00\u4e2a\u6b63\u4ea4\u77e9\u9635\u548c\u4e00\u4e2a\u4e0a\u4e09\u89d2\u77e9\u9635\u7684\u4e58\u79ef\u3002\u7269\u7406\u610f\u4e49\u5305\u62ec\u6700\u5c0f\u4e8c\u4e58\u95ee\u9898\u3001\u77e9\u9635\u7684\u7279\u5f81\u503c\u8ba1\u7b97\u7b49\u3002"),(0,r.kt)("li",{parentName:"ul"},"\u7279\u5f81\u503c\u5206\u89e3\uff1a\u5c06\u77e9\u9635\u5206\u89e3\u4e3a\u4e00\u4e2a\u7279\u5f81\u5411\u91cf\u77e9\u9635\u548c\u4e00\u4e2a\u5bf9\u89d2\u77e9\u9635\u7684\u4e58\u79ef\u3002\u7269\u7406\u610f\u4e49\u5305\u62ec\u77e9\u9635\u7684\u5e42\u3001\u6307\u6570\u548c\u5bf9\u79f0\u77e9\u9635\u7684\u5bf9\u89d2\u5316\u7b49\u3002"),(0,r.kt)("li",{parentName:"ul"},"\u5947\u5f02\u503c\u5206\u89e3\uff08SVD\uff09\uff1a\u5c06\u77e9\u9635\u5206\u89e3\u4e3a\u4e00\u4e2a\u6b63\u4ea4\u77e9\u9635\u3001\u4e00\u4e2a\u5bf9\u89d2\u77e9\u9635\u548c\u4e00\u4e2a\u6b63\u4ea4\u77e9\u9635\u7684\u4e58\u79ef\u3002\u7269\u7406\u610f\u4e49\u5305\u62ec\u964d\u7ef4\u3001\u77e9\u9635\u903c\u8fd1\u548c\u56fe\u50cf\u538b\u7f29\u7b49\u3002")))))}c.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/52f5885d.0fd005f6.js b/assets/js/52f5885d.0fd005f6.js new file mode 100644 index 000000000..7a4fd9725 --- /dev/null +++ b/assets/js/52f5885d.0fd005f6.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunknpy_notebook=self.webpackChunknpy_notebook||[]).push([[8231],{3905:(e,t,n)=>{n.d(t,{Zo:()=>u,kt:()=>d});var i=n(7294);function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function a(e){for(var t=1;t=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var p=i.createContext({}),l=function(e){var t=i.useContext(p),n=t;return e&&(n="function"==typeof e?e(t):a(a({},t),e)),n},u=function(e){var t=l(e.components);return i.createElement(p.Provider,{value:t},e.children)},c="mdxType",f={inlineCode:"code",wrapper:function(e){var t=e.children;return i.createElement(i.Fragment,{},t)}},m=i.forwardRef((function(e,t){var n=e.components,r=e.mdxType,o=e.originalType,p=e.parentName,u=s(e,["components","mdxType","originalType","parentName"]),c=l(n),m=r,d=c["".concat(p,".").concat(m)]||c[m]||f[m]||o;return n?i.createElement(d,a(a({ref:t},u),{},{components:n})):i.createElement(d,a({ref:t},u))}));function d(e,t){var n=arguments,r=t&&t.mdxType;if("string"==typeof e||r){var o=n.length,a=new Array(o);a[0]=m;var s={};for(var p in t)hasOwnProperty.call(t,p)&&(s[p]=t[p]);s.originalType=e,s[c]="string"==typeof e?e:r,a[1]=s;for(var l=2;l{n.r(t),n.d(t,{assets:()=>p,contentTitle:()=>a,default:()=>f,frontMatter:()=>o,metadata:()=>s,toc:()=>l});var i=n(7462),r=(n(7294),n(3905));const o={},a="CVPR 2022: High-Resolution Image Synthesis with Latent Diffusion Models",s={unversionedId:"Deep-Learning/\u8bba\u6587\u7b14\u8bb0/High-Resolution Image Synthesis with Latent Diffusion Models",id:"Deep-Learning/\u8bba\u6587\u7b14\u8bb0/High-Resolution Image Synthesis with Latent Diffusion Models",title:"CVPR 2022: High-Resolution Image Synthesis with Latent Diffusion Models",description:"\u8bba\u6587\uff1aarXiv",source:"@site/docs/Deep-Learning/6-\u8bba\u6587\u7b14\u8bb0/3-High-Resolution Image Synthesis with Latent Diffusion Models.md",sourceDirName:"Deep-Learning/6-\u8bba\u6587\u7b14\u8bb0",slug:"/Deep-Learning/\u8bba\u6587\u7b14\u8bb0/High-Resolution Image Synthesis with Latent Diffusion Models",permalink:"/docs/Deep-Learning/\u8bba\u6587\u7b14\u8bb0/High-Resolution Image Synthesis with Latent Diffusion Models",draft:!1,tags:[],version:"current",sidebarPosition:3,frontMatter:{},sidebar:"deep_learning",previous:{title:"NeurIPS 2020: Denoising Diffusion Probabilistic Models",permalink:"/docs/Deep-Learning/\u8bba\u6587\u7b14\u8bb0/Denoising Diffusion Probabilistic Models"},next:{title:"CVPR 2023: Zero-shot Generative Model Adaptation via Image-specific Prompt Learning",permalink:"/docs/Deep-Learning/\u8bba\u6587\u7b14\u8bb0/Zero-shot Generative Model Adaptation via Image-specific Prompt Learning"}},p={},l=[{value:"\u6458\u8981\u4e0e\u4e3b\u8981\u8d21\u732e",id:"\u6458\u8981\u4e0e\u4e3b\u8981\u8d21\u732e",level:2}],u={toc:l},c="wrapper";function f(e){let{components:t,...n}=e;return(0,r.kt)(c,(0,i.Z)({},u,n,{components:t,mdxType:"MDXLayout"}),(0,r.kt)("h1",{id:"cvpr-2022-high-resolution-image-synthesis-with-latent-diffusion-models"},"CVPR 2022: High-Resolution Image Synthesis with Latent Diffusion Models"),(0,r.kt)("admonition",{title:"\u76f8\u5173\u94fe\u63a5",type:"tip"},(0,r.kt)("p",{parentName:"admonition"},"\u8bba\u6587\uff1a",(0,r.kt)("a",{parentName:"p",href:"https://arxiv.org/pdf/2112.10752.pdf"},"arXiv")),(0,r.kt)("p",{parentName:"admonition"},"\u4ee3\u7801\uff1a",(0,r.kt)("a",{parentName:"p",href:"https://github.com/CompVis/latent-diffusion"},"GitHub")),(0,r.kt)("p",{parentName:"admonition"},"\u53c2\u8003\u6587\u732e\uff1a"),(0,r.kt)("ul",{parentName:"admonition"},(0,r.kt)("li",{parentName:"ul"},(0,r.kt)("a",{parentName:"li",href:"https://zhuanlan.zhihu.com/p/582693939"},"Latent Diffusion Models\u8bba\u6587\u89e3\u8bfb")),(0,r.kt)("li",{parentName:"ul"},(0,r.kt)("a",{parentName:"li",href:"https://github.com/Stability-AI/stablediffusion"},"Stable Diffusion"),"\u5c31\u662f\u5728\u8fd9\u7bc7\u6587\u7ae0\u7684\u57fa\u7840\u4e0a\uff0c\u4f7f\u7528LDM\u8fdb\u884c\u5f00\u53d1\u7684\u3002"))),(0,r.kt)("h2",{id:"\u6458\u8981\u4e0e\u4e3b\u8981\u8d21\u732e"},"\u6458\u8981\u4e0e\u4e3b\u8981\u8d21\u732e"))}f.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/5525.db22dd4f.js b/assets/js/5525.db22dd4f.js new file mode 100644 index 000000000..c754d0f12 --- /dev/null +++ b/assets/js/5525.db22dd4f.js @@ -0,0 +1 @@ +(self.webpackChunknpy_notebook=self.webpackChunknpy_notebook||[]).push([[5525],{5525:()=>{}}]); \ No newline at end of file diff --git a/assets/js/56ae16bd.a7526509.js b/assets/js/56ae16bd.a7526509.js new file mode 100644 index 000000000..a5497baf3 --- /dev/null +++ b/assets/js/56ae16bd.a7526509.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunknpy_notebook=self.webpackChunknpy_notebook||[]).push([[1376],{3905:(a,e,t)=>{t.d(e,{Zo:()=>i,kt:()=>h});var m=t(7294);function s(a,e,t){return e in a?Object.defineProperty(a,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):a[e]=t,a}function n(a,e){var t=Object.keys(a);if(Object.getOwnPropertySymbols){var m=Object.getOwnPropertySymbols(a);e&&(m=m.filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable}))),t.push.apply(t,m)}return t}function p(a){for(var e=1;e=0||(s[t]=a[t]);return s}(a,e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);for(m=0;m=0||Object.prototype.propertyIsEnumerable.call(a,t)&&(s[t]=a[t])}return s}var N=m.createContext({}),l=function(a){var e=m.useContext(N),t=e;return a&&(t="function"==typeof a?a(e):p(p({},e),a)),t},i=function(a){var e=l(a.components);return m.createElement(N.Provider,{value:e},a.children)},k="mdxType",o={inlineCode:"code",wrapper:function(a){var e=a.children;return m.createElement(m.Fragment,{},e)}},c=m.forwardRef((function(a,e){var t=a.components,s=a.mdxType,n=a.originalType,N=a.parentName,i=r(a,["components","mdxType","originalType","parentName"]),k=l(t),c=s,h=k["".concat(N,".").concat(c)]||k[c]||o[c]||n;return t?m.createElement(h,p(p({ref:e},i),{},{components:t})):m.createElement(h,p({ref:e},i))}));function h(a,e){var t=arguments,s=e&&e.mdxType;if("string"==typeof a||s){var n=t.length,p=new Array(n);p[0]=c;var r={};for(var N in e)hasOwnProperty.call(e,N)&&(r[N]=e[N]);r.originalType=a,r[k]="string"==typeof a?a:s,p[1]=r;for(var l=2;l{t.r(e),t.d(e,{assets:()=>N,contentTitle:()=>p,default:()=>o,frontMatter:()=>n,metadata:()=>r,toc:()=>l});var m=t(7462),s=(t(7294),t(3905));const n={},p="\u751f\u6210\u5f0f\u5bf9\u6297\u7f51\u7edc\uff08GAN\uff09",r={unversionedId:"Deep-Learning/\u5927\u6a21\u578b/GAN",id:"Deep-Learning/\u5927\u6a21\u578b/GAN",title:"\u751f\u6210\u5f0f\u5bf9\u6297\u7f51\u7edc\uff08GAN\uff09",description:"How to pronounce Adversarial?",source:"@site/docs/Deep-Learning/5-\u5927\u6a21\u578b/5-GAN.md",sourceDirName:"Deep-Learning/5-\u5927\u6a21\u578b",slug:"/Deep-Learning/\u5927\u6a21\u578b/GAN",permalink:"/docs/Deep-Learning/\u5927\u6a21\u578b/GAN",draft:!1,tags:[],version:"current",sidebarPosition:5,frontMatter:{},sidebar:"deep_learning",previous:{title:"\u56fe\u50cf\u751f\u6210\u6a21\u578b",permalink:"/docs/Deep-Learning/\u5927\u6a21\u578b/Image-Generation-Models"},next:{title:"\u6269\u6563\u6a21\u578b\uff08Diffusion Model\uff09",permalink:"/docs/Deep-Learning/\u5927\u6a21\u578b/Diffusion-Model"}},N={},l=[{value:"\u5f15\u8a00",id:"\u5f15\u8a00",level:2},{value:"\u5c06\u968f\u673a\u5206\u5e03\u4f5c\u4e3a\u8f93\u5165",id:"\u5c06\u968f\u673a\u5206\u5e03\u4f5c\u4e3a\u8f93\u5165",level:3},{value:"\u4e3a\u4ec0\u4e48\u8981\u6dfb\u52a0\u5206\u5e03",id:"\u4e3a\u4ec0\u4e48\u8981\u6dfb\u52a0\u5206\u5e03",level:3},{value:"\u6838\u5fc3\u601d\u60f3",id:"\u6838\u5fc3\u601d\u60f3",level:3},{value:"\u5177\u4f53\u7ed3\u6784\u4e0e\u4f5c\u7528",id:"\u5177\u4f53\u7ed3\u6784\u4e0e\u4f5c\u7528",level:2},{value:"\u751f\u6210\u5668\uff08Generator\uff09",id:"\u751f\u6210\u5668generator",level:3},{value:"Unconditional Generation",id:"unconditional-generation",level:4},{value:"Conditional Generation",id:"conditional-generation",level:4},{value:"\u5224\u522b\u5668\uff08Discriminator\uff09",id:"\u5224\u522b\u5668discriminator",level:3},{value:"\u8bad\u7ec3\u7b97\u6cd5",id:"\u8bad\u7ec3\u7b97\u6cd5",level:2}],i={toc:l},k="wrapper";function o(a){let{components:e,...t}=a;return(0,s.kt)(k,(0,m.Z)({},i,t,{components:e,mdxType:"MDXLayout"}),(0,s.kt)("h1",{id:"\u751f\u6210\u5f0f\u5bf9\u6297\u7f51\u7edcgan"},"\u751f\u6210\u5f0f\u5bf9\u6297\u7f51\u7edc\uff08GAN\uff09"),(0,s.kt)("admonition",{title:"\u6b63\u786e\u53d1\u97f3",type:"tip"},(0,s.kt)("p",{parentName:"admonition"},"How to pronounce Adversarial?"),(0,s.kt)("p",{parentName:"admonition"},"/\u02cc\xe6dv\u0259r\u02c8seri\u0259l/")),(0,s.kt)("h2",{id:"\u5f15\u8a00"},"\u5f15\u8a00"),(0,s.kt)("h3",{id:"\u5c06\u968f\u673a\u5206\u5e03\u4f5c\u4e3a\u8f93\u5165"},"\u5c06\u968f\u673a\u5206\u5e03\u4f5c\u4e3a\u8f93\u5165"),(0,s.kt)("p",null,"\u751f\u6210\u5668\uff08Generator\uff09\u901a\u5e38\u63a5\u6536\u4e00\u4e2a\u6765\u81ea\u6f5c\u5728\u7a7a\u95f4\uff08latent space\uff09\u7684\u968f\u673a\u5411\u91cf\u4f5c\u4e3a\u8f93\u5165\u3002\u8fd9\u4e2a\u6f5c\u5728\u7a7a\u95f4\u901a\u5e38\u662f\u4e00\u4e2a\u968f\u673a\u5206\u5e03\uff0c\u6bd4\u5982\u5747\u5300\u5206\u5e03\u6216\u6b63\u6001\u5206\u5e03\u3002\u751f\u6210\u5668\u7684\u4efb\u52a1\u662f\u5c06\u8fd9\u4e2a\u968f\u673a\u5411\u91cf\u6620\u5c04\u6210\u4e0e\u8bad\u7ec3\u6570\u636e\u76f8\u4f3c\u7684\u6837\u672c\u3002"),(0,s.kt)("p",null,(0,s.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_imagesimage-20231122102402231.png",alt:"image-20231122102402231"})),(0,s.kt)("h3",{id:"\u4e3a\u4ec0\u4e48\u8981\u6dfb\u52a0\u5206\u5e03"},"\u4e3a\u4ec0\u4e48\u8981\u6dfb\u52a0\u5206\u5e03"),(0,s.kt)("p",null,"\u5f53\u9700\u8981\u89e3\u51b3\u7684\u4efb\u52a1\u9700\u8981\u5bcc\u6709\u201c\u521b\u9020\u529b\u201d\u65f6\uff0c\u5373\u6839\u636e\u4e0d\u540c\u7684\u8f93\u5165\uff0c\u53ef\u4ee5\u4ea7\u751f\u591a\u4e2a\u4e0d\u4e00\u6837\u4e14\u6b63\u786e\u7684\u8f93\u51fa\u65f6\u3002\u8fd9\u6837\u7684\u8bbe\u8ba1\u4f7f\u5f97\u751f\u6210\u5668\u80fd\u591f\u751f\u6210\u591a\u6837\u6027\u7684\u6837\u672c\uff0c\u56e0\u4e3a\u6bcf\u4e2a\u4e0d\u540c\u7684\u968f\u673a\u5411\u91cf\u90fd\u53ef\u80fd\u5bfc\u81f4\u751f\u6210\u5668\u8f93\u51fa\u4e0d\u540c\u7684\u6837\u672c\u3002\u5728\u8bad\u7ec3\u8fc7\u7a0b\u4e2d\uff0c\u901a\u8fc7\u4e0d\u65ad\u8c03\u6574\u751f\u6210\u5668\u7684\u53c2\u6570\uff0c\u4f7f\u5f97\u751f\u6210\u5668\u7684\u8f93\u51fa\u5728\u6570\u636e\u5206\u5e03\u4e2d\u66f4\u96be\u4ee5\u88ab\u5224\u522b\u5668\u533a\u5206\u3002"),(0,s.kt)("h3",{id:"\u6838\u5fc3\u601d\u60f3"},"\u6838\u5fc3\u601d\u60f3"),(0,s.kt)("p",null,"GAN\u7684\u5de5\u4f5c\u539f\u7406\uff1a"),(0,s.kt)("ol",null,(0,s.kt)("li",{parentName:"ol"},(0,s.kt)("strong",{parentName:"li"},"\u751f\u6210\u5668\u751f\u6210\u6570\u636e\uff1a")," \u751f\u6210\u5668\u4ece\u6f5c\u5728\u7a7a\u95f4\u4e2d\u91c7\u6837\u5e76\u751f\u6210\u4e00\u4e9b\u6570\u636e\u3002"),(0,s.kt)("li",{parentName:"ol"},(0,s.kt)("strong",{parentName:"li"},"\u771f\u5b9e\u6570\u636e\u4e0e\u751f\u6210\u6570\u636e\u8fdb\u5165\u5224\u522b\u5668\uff1a")," \u771f\u5b9e\u6570\u636e\u548c\u751f\u6210\u5668\u751f\u6210\u7684\u6570\u636e\u4e00\u8d77\u8f93\u5165\u5224\u522b\u5668\u3002"),(0,s.kt)("li",{parentName:"ol"},(0,s.kt)("strong",{parentName:"li"},"\u5224\u522b\u5668\u8bad\u7ec3\uff1a")," \u5224\u522b\u5668\u88ab\u8bad\u7ec3\u6765\u6b63\u786e\u5206\u7c7b\u771f\u5b9e\u6570\u636e\u548c\u751f\u6210\u6570\u636e\u3002"),(0,s.kt)("li",{parentName:"ol"},(0,s.kt)("strong",{parentName:"li"},"\u751f\u6210\u5668\u8bad\u7ec3\uff1a")," \u751f\u6210\u5668\u88ab\u8bad\u7ec3\u6765\u751f\u6210\u80fd\u591f\u6b3a\u9a97\u5224\u522b\u5668\u7684\u6570\u636e\u3002\u751f\u6210\u5668\u7684\u76ee\u6807\u662f\u751f\u6210\u8db3\u591f\u903c\u771f\u7684\u6570\u636e\uff0c\u4ee5\u81f3\u4e8e\u5224\u522b\u5668\u65e0\u6cd5\u51c6\u786e\u533a\u5206\u771f\u5047\u3002"),(0,s.kt)("li",{parentName:"ol"},(0,s.kt)("strong",{parentName:"li"},"\u8fed\u4ee3\uff1a")," \u751f\u6210\u5668\u548c\u5224\u522b\u5668\u4ea4\u66ff\u8bad\u7ec3\uff0c\u8fed\u4ee3\u8fdb\u884c\uff0c\u76f4\u5230\u751f\u6210\u5668\u751f\u6210\u7684\u6570\u636e\u8db3\u591f\u903c\u771f\u3002")),(0,s.kt)("p",null,"\u8bad\u7ec3\u7684\u76ee\u6807\uff1a"),(0,s.kt)("ul",null,(0,s.kt)("li",{parentName:"ul"},(0,s.kt)("strong",{parentName:"li"},"\u751f\u6210\u5668\u76ee\u6807\uff1a")," \u751f\u6210\u66f4\u903c\u771f\u7684\u6570\u636e\uff0c\u4ee5\u6b3a\u9a97\u5224\u522b\u5668\u3002"),(0,s.kt)("li",{parentName:"ul"},(0,s.kt)("strong",{parentName:"li"},"\u5224\u522b\u5668\u76ee\u6807\uff1a")," \u533a\u5206\u771f\u5b9e\u6570\u636e\u548c\u751f\u6210\u6570\u636e\uff0c\u63d0\u9ad8\u5bf9\u771f\u5b9e\u6570\u636e\u7684\u5206\u7c7b\u51c6\u786e\u6027\u3002")),(0,s.kt)("p",null,"GAN\u7684\u8bad\u7ec3\u662f\u4e00\u4e2a",(0,s.kt)("strong",{parentName:"p"},"\u535a\u5f08"),"\u8fc7\u7a0b\uff0c\u751f\u6210\u5668\u548c\u5224\u522b\u5668\u76f8\u4e92\u7ade\u4e89\uff0c\u6700\u7ec8\u8fbe\u5230\u5e73\u8861\uff0c\u751f\u6210\u5668\u751f\u6210\u7684\u6570\u636e\u8db3\u591f\u903c\u771f\uff0c\u5224\u522b\u5668\u4e5f\u65e0\u6cd5\u51c6\u786e\u5224\u522b\u771f\u4f2a\u3002\u8fd9\u79cd\u6a21\u578b\u5728\u56fe\u50cf\u751f\u6210\u3001\u98ce\u683c\u8f6c\u6362\u7b49\u4efb\u52a1\u4e2d\u53d6\u5f97\u4e86\u663e\u8457\u7684\u6210\u529f\u3002"),(0,s.kt)("h2",{id:"\u5177\u4f53\u7ed3\u6784\u4e0e\u4f5c\u7528"},"\u5177\u4f53\u7ed3\u6784\u4e0e\u4f5c\u7528"),(0,s.kt)("p",null,"GAN\uff08Generative Adversarial Network\uff0c\u751f\u6210\u5bf9\u6297\u7f51\u7edc\uff09\u5305\u62ec\u4e24\u4e2a\u4e3b\u8981\u7684\u7ec4\u4ef6\uff1a\u751f\u6210\u5668\uff08Generator\uff09\u548c\u5224\u522b\u5668\uff08Discriminator\uff09\u3002\u8fd9\u4e24\u4e2a\u7ec4\u4ef6\u901a\u8fc7\u5bf9\u6297\u8bad\u7ec3\u7684\u65b9\u5f0f\u4e00\u8d77\u5b66\u4e60\u3002"),(0,s.kt)("ol",null,(0,s.kt)("li",{parentName:"ol"},(0,s.kt)("strong",{parentName:"li"},"\u751f\u6210\u5668\uff08Generator\uff09\uff1a")," \u5b83\u8d1f\u8d23\u751f\u6210\u4e0e\u8bad\u7ec3\u6570\u636e\u76f8\u4f3c\u7684\u65b0\u6837\u672c\u3002\u751f\u6210\u5668\u63a5\u6536\u6765\u81ea\u6f5c\u5728\u7a7a\u95f4\uff08latent space\uff09\u7684\u968f\u673a\u5411\u91cf\u4f5c\u4e3a\u8f93\u5165\uff0c\u5e76\u8f93\u51fa\u4e00\u4e2a\u4e0e\u8bad\u7ec3\u6570\u636e\u7c7b\u4f3c\u7684\u6837\u672c\u3002\u751f\u6210\u5668\u7684\u76ee\u6807\u662f\u6b3a\u9a97\u5224\u522b\u5668\uff0c\u4f7f\u5176\u65e0\u6cd5\u533a\u5206\u751f\u6210\u7684\u6837\u672c\u548c\u771f\u5b9e\u7684\u8bad\u7ec3\u6570\u636e\u3002"),(0,s.kt)("li",{parentName:"ol"},(0,s.kt)("strong",{parentName:"li"},"\u5224\u522b\u5668\uff08Discriminator\uff09\uff1a")," \u5b83\u8d1f\u8d23\u5224\u522b\u8f93\u5165\u7684\u6837\u672c\u662f\u771f\u5b9e\u7684\u8bad\u7ec3\u6570\u636e\u8fd8\u662f\u751f\u6210\u5668\u751f\u6210\u7684\u5047\u6837\u672c\u3002\u5224\u522b\u5668\u7684\u76ee\u6807\u662f\u5c3d\u53ef\u80fd\u51c6\u786e\u5730\u5206\u7c7b\u8f93\u5165\u7684\u6837\u672c\u3002")),(0,s.kt)("p",null,"GAN\u7684\u6838\u5fc3\u601d\u60f3\u662f\u901a\u8fc7\u5bf9\u6297\u8fc7\u7a0b\u8bad\u7ec3\u751f\u6210\u5668\u548c\u5224\u522b\u5668\uff0c\u4e0d\u65ad\u63d0\u9ad8\u5b83\u4eec\u7684\u6027\u80fd\u3002\u751f\u6210\u5668\u8bd5\u56fe\u751f\u6210\u903c\u771f\u7684\u6837\u672c\uff0c\u800c\u5224\u522b\u5668\u8bd5\u56fe\u6b63\u786e\u5730\u533a\u5206\u771f\u5b9e\u6837\u672c\u548c\u751f\u6210\u6837\u672c\u3002\u8fd9\u4e2a\u5bf9\u6297\u7684\u8bad\u7ec3\u8fc7\u7a0b\u53ef\u4ee5\u88ab\u89c6\u4e3a\u5728\u4e24\u4e2a\u5206\u5e03\u4e4b\u95f4\u8fdb\u884c\u7684\u6700\u4f18\u63a7\u5236\u3002"),(0,s.kt)("h3",{id:"\u751f\u6210\u5668generator"},"\u751f\u6210\u5668\uff08Generator\uff09"),(0,s.kt)("ul",null,(0,s.kt)("li",{parentName:"ul"},(0,s.kt)("strong",{parentName:"li"},"\u7ed3\u6784\uff1a")," \u751f\u6210\u5668\u662f\u4e00\u4e2a\u795e\u7ecf\u7f51\u7edc\uff0c\u901a\u5e38\u662f\u4e00\u4e2a\u53cd\u5377\u79ef\u795e\u7ecf\u7f51\u7edc\uff08Generator Network\uff09\uff0c\u5176\u8f93\u5165\u901a\u5e38\u662f\u4e00\u4e2a\u968f\u673a\u566a\u58f0\uff08\u6f5c\u5728\u7a7a\u95f4\u4e2d\u7684\u70b9\uff09\uff0c\u8f93\u51fa\u662f\u4e0e\u8bad\u7ec3\u6570\u636e\u76f8\u4f3c\u7684\u56fe\u50cf\u6216\u6570\u636e\u3002"),(0,s.kt)("li",{parentName:"ul"},(0,s.kt)("strong",{parentName:"li"},"\u4f5c\u7528\uff1a")," \u751f\u6210\u5668\u7684\u76ee\u6807\u662f\u5b66\u4e60\u751f\u6210\u4e0e\u771f\u5b9e\u6570\u636e\u76f8\u4f3c\u7684\u6570\u636e\u3002\u901a\u8fc7\u8fed\u4ee3\u8bad\u7ec3\uff0c\u751f\u6210\u5668\u7684\u53c2\u6570\u88ab\u8c03\u6574\uff0c\u4f7f\u5176\u751f\u6210\u7684\u6570\u636e\u80fd\u591f\u6108\u53d1\u903c\u771f\u3002")),(0,s.kt)("h4",{id:"unconditional-generation"},"Unconditional Generation"),(0,s.kt)("p",null,"Unconditional generation\uff08\u65e0\u6761\u4ef6\u751f\u6210\uff09\u6307\u7684\u662f\u5728\u751f\u6210\u6a21\u578b\u4e2d\u751f\u6210\u6837\u672c\u65f6\uff0c\u4e0d\u53d7\u4efb\u4f55\u6761\u4ef6\u7684\u7ea6\u675f\u3002\u5728\u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0c\u751f\u6210\u5668\u4ec5\u6839\u636e\u5176\u5b66\u5230\u7684\u5206\u5e03\u751f\u6210\u6570\u636e\uff0c\u800c\u65e0\u9700\u5173\u6ce8\u7279\u5b9a\u7684\u8f93\u5165\u6761\u4ef6\u6216\u4e0a\u4e0b\u6587\u3002"),(0,s.kt)("p",null,"\u5bf9\u4e8e\u751f\u6210\u5bf9\u6297\u7f51\u7edc\uff08GAN\uff09\u6216\u53d8\u5206\u81ea\u52a8\u7f16\u7801\u5668\uff08VAE\uff09\u7b49\u751f\u6210\u6a21\u578b\uff0cunconditional generation\u901a\u5e38\u8868\u73b0\u4e3a\u4ece\u6f5c\u5728\u7a7a\u95f4\u4e2d\u91c7\u6837\uff0c\u7136\u540e\u5c06\u8fd9\u4e9b\u6837\u672c\u8f93\u5165\u751f\u6210\u5668\uff0c\u4ee5\u751f\u6210\u65b0\u7684\u3001\u4e0e\u8bad\u7ec3\u6570\u636e\u76f8\u4f3c\u7684\u6837\u672c\u3002\u8fd9\u79cd\u751f\u6210\u65b9\u5f0f\u662f\u968f\u673a\u7684\uff0c\u56e0\u4e3a\u6bcf\u6b21\u4ece\u6f5c\u5728\u7a7a\u95f4\u4e2d\u91c7\u6837\u90fd\u4f1a\u5bfc\u81f4\u751f\u6210\u4e0d\u540c\u7684\u6837\u672c\u3002"),(0,s.kt)("p",null,(0,s.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_imagesimage-20231122104717264.png",alt:"image-20231122104717264"})),(0,s.kt)("h4",{id:"conditional-generation"},"Conditional Generation"),(0,s.kt)("h3",{id:"\u5224\u522b\u5668discriminator"},"\u5224\u522b\u5668\uff08Discriminator\uff09"),(0,s.kt)("ul",null,(0,s.kt)("li",{parentName:"ul"},(0,s.kt)("strong",{parentName:"li"},"\u7ed3\u6784\uff1a")," \u5224\u522b\u5668\u662f\u4e00\u4e2a\u4e8c\u5143\u5206\u7c7b\u5668\uff0c\u901a\u5e38\u662f\u4e00\u4e2a\u5377\u79ef\u795e\u7ecf\u7f51\u7edc\uff08Discriminator Network\uff09\u3002\u5b83\u7684\u8f93\u5165\u53ef\u4ee5\u662f\u771f\u5b9e\u6570\u636e\u6216\u751f\u6210\u5668\u751f\u6210\u7684\u6570\u636e\uff0c\u8f93\u51fa\u662f\u4e00\u4e2a\u6982\u7387\uff0c\u8868\u793a\u8f93\u5165\u6570\u636e\u662f\u771f\u5b9e\u6570\u636e\u7684\u6982\u7387\u3002"),(0,s.kt)("li",{parentName:"ul"},(0,s.kt)("strong",{parentName:"li"},"\u4f5c\u7528\uff1a")," \u5224\u522b\u5668\u7684\u76ee\u6807\u662f\u5b66\u4e60\u533a\u5206\u771f\u5b9e\u6570\u636e\u548c\u751f\u6210\u5668\u751f\u6210\u7684\u6570\u636e\u3002\u5b83\u88ab\u8bad\u7ec3\u6210\u5bf9\u771f\u5b9e\u6570\u636e\u7ed9\u51fa\u9ad8\u6982\u7387\uff0c\u5bf9\u751f\u6210\u7684\u6570\u636e\u7ed9\u51fa\u4f4e\u6982\u7387\u3002")),(0,s.kt)("p",null,(0,s.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_imagesimage-20231122104853941.png",alt:"image-20231122104853941"})),(0,s.kt)("h2",{id:"\u8bad\u7ec3\u7b97\u6cd5"},"\u8bad\u7ec3\u7b97\u6cd5"),(0,s.kt)("p",null,"\u9996\u5148\u968f\u673a\u521d\u59cb\u5316\u751f\u6210\u5668\u548c\u5224\u522b\u5668\uff0c\u63a5\u4e0b\u6765\u5728\u6bcf\u4e00\u8f6e\u8bad\u7ec3\u4e2d\u91cd\u590d\u4ee5\u4e0b\u7b56\u7565\u3002"),(0,s.kt)("p",null,"\u7b2c\u4e00\u6b65\uff0c\u5728\u751f\u6210\u5668\u901a\u8fc7\u968f\u673a\u566a\u58f0\u795e\u751f\u6210\u6837\u672c\u540e\uff0c\u56fa\u5b9a\u751f\u6210\u5668\u7684\u53c2\u6570\uff0c\u5c06\u751f\u6210\u5668\u4ea7\u751f\u7684\u8f93\u51fa\u4e0e\u8bad\u7ec3\u8d44\u6599\u4e2d\u7684\u6807\u7b7e\u4f5c\u4e3a\u5224\u522b\u5668\u7684\u8f93\u5165\uff0c\u5224\u522b\u5668\u4e3a\u6bcf\u4e2a\u8f93\u5165\u6837\u672c\u6253\u5206\uff0c\u4ee3\u8868\u5176\u4e3a\u771f\u5b9e\u6837\u672c\u7684\u6982\u7387\u3002"),(0,s.kt)("p",null,"\u4e3a\u4e86\u6700\u5c0f\u5316\u635f\u5931\u51fd\u6570\u4f7f\u5f97\u5224\u522b\u5668\u4e3a\u771f\u5b9e\u6837\u672c\u8d4b\u5206\u66f4\u9ad8\uff0c\u4e3a\u751f\u6210\u6837\u672c\u8d4b\u5206\u66f4\u4f4e\uff0c\u8bbe\u8ba1\u4ee5\u4e0b\u635f\u5931\u51fd\u6570\uff1a"),(0,s.kt)("div",{className:"math math-display"},(0,s.kt)("span",{parentName:"div",className:"katex-display"},(0,s.kt)("span",{parentName:"span",className:"katex"},(0,s.kt)("span",{parentName:"span",className:"katex-mathml"},(0,s.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,s.kt)("semantics",{parentName:"math"},(0,s.kt)("mtable",{parentName:"semantics",width:"100%"},(0,s.kt)("mtr",{parentName:"mtable"},(0,s.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,s.kt)("mtd",{parentName:"mtr"},(0,s.kt)("mrow",{parentName:"mtd"},(0,s.kt)("mi",{parentName:"mrow"},"L"),(0,s.kt)("mi",{parentName:"mrow"},"o"),(0,s.kt)("mi",{parentName:"mrow"},"s"),(0,s.kt)("msub",{parentName:"mrow"},(0,s.kt)("mi",{parentName:"msub"},"s"),(0,s.kt)("mrow",{parentName:"msub"},(0,s.kt)("mi",{parentName:"mrow"},"r"),(0,s.kt)("mi",{parentName:"mrow"},"e"),(0,s.kt)("mi",{parentName:"mrow"},"a"),(0,s.kt)("mi",{parentName:"mrow"},"l"))),(0,s.kt)("mo",{parentName:"mrow"},"="),(0,s.kt)("mo",{parentName:"mrow"},"\u2212"),(0,s.kt)("msub",{parentName:"mrow"},(0,s.kt)("mi",{parentName:"msub"},"E"),(0,s.kt)("mrow",{parentName:"msub"},(0,s.kt)("mi",{parentName:"mrow"},"x"),(0,s.kt)("mo",{parentName:"mrow"},"\u223c"),(0,s.kt)("msub",{parentName:"mrow"},(0,s.kt)("mi",{parentName:"msub"},"p"),(0,s.kt)("mtext",{parentName:"msub"},"data")),(0,s.kt)("mrow",{parentName:"mrow"},(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,s.kt)("mi",{parentName:"mrow"},"x"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},")")))),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},"["),(0,s.kt)("mi",{parentName:"mrow"},"log"),(0,s.kt)("mo",{parentName:"mrow"},"\u2061"),(0,s.kt)("mi",{parentName:"mrow"},"D"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,s.kt)("mi",{parentName:"mrow"},"x"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},"]"))),(0,s.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,s.kt)("mtd",{parentName:"mtr"},(0,s.kt)("mtext",{parentName:"mtd"},"(1)")))),(0,s.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"Loss_{real}=-E_{x\\sim p_\\text{data}{(x)}}[\\log D(x)]\\tag{1}")))),(0,s.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"0.8333em",verticalAlign:"-0.15em"}}),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal"},"L"),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal"},"os"),(0,s.kt)("span",{parentName:"span",className:"mord"},(0,s.kt)("span",{parentName:"span",className:"mord mathnormal"},"s"),(0,s.kt)("span",{parentName:"span",className:"msupsub"},(0,s.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3361em"}},(0,s.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,s.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,s.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,s.kt)("span",{parentName:"span",className:"mord mtight"},(0,s.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"re"),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"a"),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.01968em"}},"l"))))),(0,s.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,s.kt)("span",{parentName:"span"})))))),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,s.kt)("span",{parentName:"span",className:"mrel"},"="),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"1.1052em",verticalAlign:"-0.3552em"}}),(0,s.kt)("span",{parentName:"span",className:"mord"},"\u2212"),(0,s.kt)("span",{parentName:"span",className:"mord"},(0,s.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05764em"}},"E"),(0,s.kt)("span",{parentName:"span",className:"msupsub"},(0,s.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3448em"}},(0,s.kt)("span",{parentName:"span",style:{top:"-2.5198em",marginLeft:"-0.0576em",marginRight:"0.05em"}},(0,s.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,s.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,s.kt)("span",{parentName:"span",className:"mord mtight"},(0,s.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"x"),(0,s.kt)("span",{parentName:"span",className:"mrel mtight"},"\u223c"),(0,s.kt)("span",{parentName:"span",className:"mord mtight"},(0,s.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"p"),(0,s.kt)("span",{parentName:"span",className:"msupsub"},(0,s.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3448em"}},(0,s.kt)("span",{parentName:"span",style:{top:"-2.3488em",marginLeft:"0em",marginRight:"0.0714em"}},(0,s.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.5em"}}),(0,s.kt)("span",{parentName:"span",className:"sizing reset-size3 size1 mtight"},(0,s.kt)("span",{parentName:"span",className:"mord text mtight"},(0,s.kt)("span",{parentName:"span",className:"mord mtight"},"data"))))),(0,s.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.1512em"}},(0,s.kt)("span",{parentName:"span"})))))),(0,s.kt)("span",{parentName:"span",className:"mord mtight"},(0,s.kt)("span",{parentName:"span",className:"mopen mtight"},"("),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"x"),(0,s.kt)("span",{parentName:"span",className:"mclose mtight"},")")))))),(0,s.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3552em"}},(0,s.kt)("span",{parentName:"span"})))))),(0,s.kt)("span",{parentName:"span",className:"mopen"},"["),(0,s.kt)("span",{parentName:"span",className:"mop"},"lo",(0,s.kt)("span",{parentName:"span",style:{marginRight:"0.01389em"}},"g")),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02778em"}},"D"),(0,s.kt)("span",{parentName:"span",className:"mopen"},"("),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal"},"x"),(0,s.kt)("span",{parentName:"span",className:"mclose"},")]")),(0,s.kt)("span",{parentName:"span",className:"tag"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"1.1052em",verticalAlign:"-0.3552em"}}),(0,s.kt)("span",{parentName:"span",className:"mord text"},(0,s.kt)("span",{parentName:"span",className:"mord"},"("),(0,s.kt)("span",{parentName:"span",className:"mord"},(0,s.kt)("span",{parentName:"span",className:"mord"},"1")),(0,s.kt)("span",{parentName:"span",className:"mord"},")"))))))),(0,s.kt)("p",null,"\u5176\u4e2d\uff0c",(0,s.kt)("span",{parentName:"p",className:"math math-inline"},(0,s.kt)("span",{parentName:"span",className:"katex"},(0,s.kt)("span",{parentName:"span",className:"katex-mathml"},(0,s.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,s.kt)("semantics",{parentName:"math"},(0,s.kt)("mrow",{parentName:"semantics"},(0,s.kt)("mi",{parentName:"mrow"},"D"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,s.kt)("mi",{parentName:"mrow"},"x"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,s.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"D(x)")))),(0,s.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02778em"}},"D"),(0,s.kt)("span",{parentName:"span",className:"mopen"},"("),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal"},"x"),(0,s.kt)("span",{parentName:"span",className:"mclose"},")"))))),"\u662f\u5224\u522b\u5668\u7684\u8f93\u51fa\uff0c",(0,s.kt)("span",{parentName:"p",className:"math math-inline"},(0,s.kt)("span",{parentName:"span",className:"katex"},(0,s.kt)("span",{parentName:"span",className:"katex-mathml"},(0,s.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,s.kt)("semantics",{parentName:"math"},(0,s.kt)("mrow",{parentName:"semantics"},(0,s.kt)("mi",{parentName:"mrow"},"x")),(0,s.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"x")))),(0,s.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"0.4306em"}}),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal"},"x"))))),"\u662f\u771f\u5b9e\u6837\u672c\uff0c",(0,s.kt)("span",{parentName:"p",className:"math math-inline"},(0,s.kt)("span",{parentName:"span",className:"katex"},(0,s.kt)("span",{parentName:"span",className:"katex-mathml"},(0,s.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,s.kt)("semantics",{parentName:"math"},(0,s.kt)("mrow",{parentName:"semantics"},(0,s.kt)("mi",{parentName:"mrow"},"E")),(0,s.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"E")))),(0,s.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6833em"}}),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05764em"}},"E"))))),"\u662f\u6570\u5b66\u671f\u671b\u3002"),(0,s.kt)("div",{className:"math math-display"},(0,s.kt)("span",{parentName:"div",className:"katex-display"},(0,s.kt)("span",{parentName:"span",className:"katex"},(0,s.kt)("span",{parentName:"span",className:"katex-mathml"},(0,s.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,s.kt)("semantics",{parentName:"math"},(0,s.kt)("mtable",{parentName:"semantics",width:"100%"},(0,s.kt)("mtr",{parentName:"mtable"},(0,s.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,s.kt)("mtd",{parentName:"mtr"},(0,s.kt)("mrow",{parentName:"mtd"},(0,s.kt)("mi",{parentName:"mrow"},"L"),(0,s.kt)("mi",{parentName:"mrow"},"o"),(0,s.kt)("mi",{parentName:"mrow"},"s"),(0,s.kt)("msub",{parentName:"mrow"},(0,s.kt)("mi",{parentName:"msub"},"s"),(0,s.kt)("mrow",{parentName:"msub"},(0,s.kt)("mi",{parentName:"mrow"},"f"),(0,s.kt)("mi",{parentName:"mrow"},"a"),(0,s.kt)("mi",{parentName:"mrow"},"k"),(0,s.kt)("mi",{parentName:"mrow"},"e"))),(0,s.kt)("mo",{parentName:"mrow"},"="),(0,s.kt)("mo",{parentName:"mrow"},"\u2212"),(0,s.kt)("msub",{parentName:"mrow"},(0,s.kt)("mi",{parentName:"msub"},"E"),(0,s.kt)("mrow",{parentName:"msub"},(0,s.kt)("mi",{parentName:"mrow"},"z"),(0,s.kt)("mo",{parentName:"mrow"},"\u223c"),(0,s.kt)("msub",{parentName:"mrow"},(0,s.kt)("mi",{parentName:"msub"},"p"),(0,s.kt)("mi",{parentName:"msub"},"z")),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,s.kt)("mi",{parentName:"mrow"},"z"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},")"))),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},"["),(0,s.kt)("mi",{parentName:"mrow"},"l"),(0,s.kt)("mi",{parentName:"mrow"},"o"),(0,s.kt)("mi",{parentName:"mrow"},"g"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,s.kt)("mn",{parentName:"mrow"},"1"),(0,s.kt)("mo",{parentName:"mrow"},"\u2212"),(0,s.kt)("mi",{parentName:"mrow"},"D"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,s.kt)("mi",{parentName:"mrow"},"G"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,s.kt)("mi",{parentName:"mrow"},"z"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},"]"))),(0,s.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,s.kt)("mtd",{parentName:"mtr"},(0,s.kt)("mtext",{parentName:"mtd"},"(2)")))),(0,s.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"Loss_{fake}=-E_{z\\sim p_z(z)}[log(1-D(G(z)))]\\tag{2}")))),(0,s.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"0.9694em",verticalAlign:"-0.2861em"}}),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal"},"L"),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal"},"os"),(0,s.kt)("span",{parentName:"span",className:"mord"},(0,s.kt)("span",{parentName:"span",className:"mord mathnormal"},"s"),(0,s.kt)("span",{parentName:"span",className:"msupsub"},(0,s.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3361em"}},(0,s.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,s.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,s.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,s.kt)("span",{parentName:"span",className:"mord mtight"},(0,s.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.10764em"}},"f"),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.03148em"}},"ak"),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"e"))))),(0,s.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.2861em"}},(0,s.kt)("span",{parentName:"span"})))))),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,s.kt)("span",{parentName:"span",className:"mrel"},"="),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"1.1052em",verticalAlign:"-0.3552em"}}),(0,s.kt)("span",{parentName:"span",className:"mord"},"\u2212"),(0,s.kt)("span",{parentName:"span",className:"mord"},(0,s.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05764em"}},"E"),(0,s.kt)("span",{parentName:"span",className:"msupsub"},(0,s.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3448em"}},(0,s.kt)("span",{parentName:"span",style:{top:"-2.5198em",marginLeft:"-0.0576em",marginRight:"0.05em"}},(0,s.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,s.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,s.kt)("span",{parentName:"span",className:"mord mtight"},(0,s.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.04398em"}},"z"),(0,s.kt)("span",{parentName:"span",className:"mrel mtight"},"\u223c"),(0,s.kt)("span",{parentName:"span",className:"mord mtight"},(0,s.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"p"),(0,s.kt)("span",{parentName:"span",className:"msupsub"},(0,s.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.1645em"}},(0,s.kt)("span",{parentName:"span",style:{top:"-2.357em",marginLeft:"0em",marginRight:"0.0714em"}},(0,s.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.5em"}}),(0,s.kt)("span",{parentName:"span",className:"sizing reset-size3 size1 mtight"},(0,s.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.04398em"}},"z")))),(0,s.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.143em"}},(0,s.kt)("span",{parentName:"span"})))))),(0,s.kt)("span",{parentName:"span",className:"mopen mtight"},"("),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.04398em"}},"z"),(0,s.kt)("span",{parentName:"span",className:"mclose mtight"},")"))))),(0,s.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3552em"}},(0,s.kt)("span",{parentName:"span"})))))),(0,s.kt)("span",{parentName:"span",className:"mopen"},"["),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.01968em"}},"l"),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal"},"o"),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"g"),(0,s.kt)("span",{parentName:"span",className:"mopen"},"("),(0,s.kt)("span",{parentName:"span",className:"mord"},"1"),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,s.kt)("span",{parentName:"span",className:"mbin"},"\u2212"),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}})),(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02778em"}},"D"),(0,s.kt)("span",{parentName:"span",className:"mopen"},"("),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal"},"G"),(0,s.kt)("span",{parentName:"span",className:"mopen"},"("),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.04398em"}},"z"),(0,s.kt)("span",{parentName:"span",className:"mclose"},")))]")),(0,s.kt)("span",{parentName:"span",className:"tag"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"1.1052em",verticalAlign:"-0.3552em"}}),(0,s.kt)("span",{parentName:"span",className:"mord text"},(0,s.kt)("span",{parentName:"span",className:"mord"},"("),(0,s.kt)("span",{parentName:"span",className:"mord"},(0,s.kt)("span",{parentName:"span",className:"mord"},"2")),(0,s.kt)("span",{parentName:"span",className:"mord"},")"))))))),(0,s.kt)("p",null,"\u5176\u4e2d\uff0c",(0,s.kt)("span",{parentName:"p",className:"math math-inline"},(0,s.kt)("span",{parentName:"span",className:"katex"},(0,s.kt)("span",{parentName:"span",className:"katex-mathml"},(0,s.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,s.kt)("semantics",{parentName:"math"},(0,s.kt)("mrow",{parentName:"semantics"},(0,s.kt)("mi",{parentName:"mrow"},"G"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,s.kt)("mi",{parentName:"mrow"},"z"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,s.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"G(z)")))),(0,s.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal"},"G"),(0,s.kt)("span",{parentName:"span",className:"mopen"},"("),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.04398em"}},"z"),(0,s.kt)("span",{parentName:"span",className:"mclose"},")"))))),"\u662f\u751f\u6210\u5668\u7684\u8f93\u51fa\uff0c",(0,s.kt)("span",{parentName:"p",className:"math math-inline"},(0,s.kt)("span",{parentName:"span",className:"katex"},(0,s.kt)("span",{parentName:"span",className:"katex-mathml"},(0,s.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,s.kt)("semantics",{parentName:"math"},(0,s.kt)("mrow",{parentName:"semantics"},(0,s.kt)("mi",{parentName:"mrow"},"z")),(0,s.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"z")))),(0,s.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"0.4306em"}}),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.04398em"}},"z"))))),"\u662f\u968f\u673a\u566a\u58f0\uff0c",(0,s.kt)("span",{parentName:"p",className:"math math-inline"},(0,s.kt)("span",{parentName:"span",className:"katex"},(0,s.kt)("span",{parentName:"span",className:"katex-mathml"},(0,s.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,s.kt)("semantics",{parentName:"math"},(0,s.kt)("mrow",{parentName:"semantics"},(0,s.kt)("mi",{parentName:"mrow"},"E")),(0,s.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"E")))),(0,s.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6833em"}}),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05764em"}},"E"))))),"\u662f\u6570\u5b66\u671f\u671b\u3002"),(0,s.kt)("p",null,"\u5c06\u771f\u5b9e\u6837\u672c\u548c\u751f\u6210\u6837\u672c\u7684\u635f\u5931\u76f8\u52a0\uff0c\u5f62\u6210\u5224\u522b\u5668\u7684\u603b\u4f53\u635f\u5931\u3002"),(0,s.kt)("div",{className:"math math-display"},(0,s.kt)("span",{parentName:"div",className:"katex-display"},(0,s.kt)("span",{parentName:"span",className:"katex"},(0,s.kt)("span",{parentName:"span",className:"katex-mathml"},(0,s.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,s.kt)("semantics",{parentName:"math"},(0,s.kt)("mtable",{parentName:"semantics",width:"100%"},(0,s.kt)("mtr",{parentName:"mtable"},(0,s.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,s.kt)("mtd",{parentName:"mtr"},(0,s.kt)("mrow",{parentName:"mtd"},(0,s.kt)("mi",{parentName:"mrow"},"L"),(0,s.kt)("mi",{parentName:"mrow"},"o"),(0,s.kt)("mi",{parentName:"mrow"},"s"),(0,s.kt)("msub",{parentName:"mrow"},(0,s.kt)("mi",{parentName:"msub"},"s"),(0,s.kt)("mrow",{parentName:"msub"},(0,s.kt)("mi",{parentName:"mrow"},"d"),(0,s.kt)("mi",{parentName:"mrow"},"i"),(0,s.kt)("mi",{parentName:"mrow"},"s"),(0,s.kt)("mi",{parentName:"mrow"},"c"),(0,s.kt)("mi",{parentName:"mrow"},"r"),(0,s.kt)("mi",{parentName:"mrow"},"i"),(0,s.kt)("mi",{parentName:"mrow"},"m"),(0,s.kt)("mi",{parentName:"mrow"},"i"),(0,s.kt)("mi",{parentName:"mrow"},"n"),(0,s.kt)("mi",{parentName:"mrow"},"a"),(0,s.kt)("mi",{parentName:"mrow"},"t"),(0,s.kt)("mi",{parentName:"mrow"},"o"),(0,s.kt)("mi",{parentName:"mrow"},"r"))),(0,s.kt)("mo",{parentName:"mrow"},"="),(0,s.kt)("mi",{parentName:"mrow"},"L"),(0,s.kt)("mi",{parentName:"mrow"},"o"),(0,s.kt)("mi",{parentName:"mrow"},"s"),(0,s.kt)("msub",{parentName:"mrow"},(0,s.kt)("mi",{parentName:"msub"},"s"),(0,s.kt)("mrow",{parentName:"msub"},(0,s.kt)("mi",{parentName:"mrow"},"r"),(0,s.kt)("mi",{parentName:"mrow"},"e"),(0,s.kt)("mi",{parentName:"mrow"},"a"),(0,s.kt)("mi",{parentName:"mrow"},"l"))),(0,s.kt)("mo",{parentName:"mrow"},"+"),(0,s.kt)("mi",{parentName:"mrow"},"L"),(0,s.kt)("mi",{parentName:"mrow"},"o"),(0,s.kt)("mi",{parentName:"mrow"},"s"),(0,s.kt)("msub",{parentName:"mrow"},(0,s.kt)("mi",{parentName:"msub"},"s"),(0,s.kt)("mrow",{parentName:"msub"},(0,s.kt)("mi",{parentName:"mrow"},"f"),(0,s.kt)("mi",{parentName:"mrow"},"a"),(0,s.kt)("mi",{parentName:"mrow"},"k"),(0,s.kt)("mi",{parentName:"mrow"},"e"))))),(0,s.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,s.kt)("mtd",{parentName:"mtr"},(0,s.kt)("mtext",{parentName:"mtd"},"(3)")))),(0,s.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"Loss_{discriminator}=Loss_{real}+Loss_{fake}\\tag{3}")))),(0,s.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"0.8333em",verticalAlign:"-0.15em"}}),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal"},"L"),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal"},"os"),(0,s.kt)("span",{parentName:"span",className:"mord"},(0,s.kt)("span",{parentName:"span",className:"mord mathnormal"},"s"),(0,s.kt)("span",{parentName:"span",className:"msupsub"},(0,s.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3361em"}},(0,s.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,s.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,s.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,s.kt)("span",{parentName:"span",className:"mord mtight"},(0,s.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"d"),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"i"),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.02778em"}},"scr"),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"imina"),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"t"),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.02778em"}},"or"))))),(0,s.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,s.kt)("span",{parentName:"span"})))))),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,s.kt)("span",{parentName:"span",className:"mrel"},"="),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"0.8333em",verticalAlign:"-0.15em"}}),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal"},"L"),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal"},"os"),(0,s.kt)("span",{parentName:"span",className:"mord"},(0,s.kt)("span",{parentName:"span",className:"mord mathnormal"},"s"),(0,s.kt)("span",{parentName:"span",className:"msupsub"},(0,s.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3361em"}},(0,s.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,s.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,s.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,s.kt)("span",{parentName:"span",className:"mord mtight"},(0,s.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"re"),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"a"),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.01968em"}},"l"))))),(0,s.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,s.kt)("span",{parentName:"span"})))))),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,s.kt)("span",{parentName:"span",className:"mbin"},"+"),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}})),(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"0.9694em",verticalAlign:"-0.2861em"}}),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal"},"L"),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal"},"os"),(0,s.kt)("span",{parentName:"span",className:"mord"},(0,s.kt)("span",{parentName:"span",className:"mord mathnormal"},"s"),(0,s.kt)("span",{parentName:"span",className:"msupsub"},(0,s.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3361em"}},(0,s.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,s.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,s.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,s.kt)("span",{parentName:"span",className:"mord mtight"},(0,s.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.10764em"}},"f"),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.03148em"}},"ak"),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"e"))))),(0,s.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.2861em"}},(0,s.kt)("span",{parentName:"span"}))))))),(0,s.kt)("span",{parentName:"span",className:"tag"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"1.0361em",verticalAlign:"-0.2861em"}}),(0,s.kt)("span",{parentName:"span",className:"mord text"},(0,s.kt)("span",{parentName:"span",className:"mord"},"("),(0,s.kt)("span",{parentName:"span",className:"mord"},(0,s.kt)("span",{parentName:"span",className:"mord"},"3")),(0,s.kt)("span",{parentName:"span",className:"mord"},")"))))))),(0,s.kt)("p",null,"\u6700\u5c0f\u5316\u635f\u5931\u51fd\u6570\uff0c\u66f4\u65b0\u5224\u522b\u5668\u7684\u53c2\u6570\u3002"),(0,s.kt)("p",null,(0,s.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_imagesimage-20231122110917135.png",alt:"image-20231122110917135"})),(0,s.kt)("p",null,"\u7b2c\u4e8c\u6b65\uff0c\u5728\u5224\u522b\u5668\u53c2\u6570\u66f4\u65b0\u540e\uff0c\u56fa\u5b9a\u5224\u522b\u5668\u7684\u53c2\u6570\uff0c\u968f\u673a\u5206\u5e03\u7684\u5411\u91cf\u518d\u6b21\u8f93\u5165\u81f3\u751f\u6210\u5668\u4e2d\uff0c\u5f97\u5230\u751f\u6210\u6837\u672c\uff0c\u6b64\u65f6\u751f\u6210\u6837\u672c\u88ab\u9001\u5165\u53c2\u6570\u56fa\u5b9a\u7684\u5224\u522b\u5668\u4e2d\u5f97\u5230\u751f\u6210\u6837\u672c\u5c5e\u4e8e\u771f\u5b9e\u6837\u672c\u7684\u6982\u7387\u3002\u5728\u751f\u6210\u5668\u7684\u8bad\u7ec3\u8fc7\u7a0b\u4e2d\uff0c\u6211\u4eec\u7684\u76ee\u7684\u662f\u8ba9\u751f\u6210\u5668\u751f\u6210\u7684\u6837\u672c\u5c3d\u53ef\u80fd\u7684\u63a5\u8fd1\u771f\u5b9e\u6837\u672c\u3002"),(0,s.kt)("div",{className:"math math-display"},(0,s.kt)("span",{parentName:"div",className:"katex-display"},(0,s.kt)("span",{parentName:"span",className:"katex"},(0,s.kt)("span",{parentName:"span",className:"katex-mathml"},(0,s.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,s.kt)("semantics",{parentName:"math"},(0,s.kt)("mtable",{parentName:"semantics",width:"100%"},(0,s.kt)("mtr",{parentName:"mtable"},(0,s.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,s.kt)("mtd",{parentName:"mtr"},(0,s.kt)("mrow",{parentName:"mtd"},(0,s.kt)("msub",{parentName:"mrow"},(0,s.kt)("mi",{parentName:"msub"},"L"),(0,s.kt)("mi",{parentName:"msub"},"G")),(0,s.kt)("mo",{parentName:"mrow"},"="),(0,s.kt)("mo",{parentName:"mrow"},"\u2212"),(0,s.kt)("msub",{parentName:"mrow"},(0,s.kt)("mi",{parentName:"msub"},"E"),(0,s.kt)("mrow",{parentName:"msub"},(0,s.kt)("mi",{parentName:"mrow"},"z"),(0,s.kt)("mo",{parentName:"mrow"},"\u223c"),(0,s.kt)("msub",{parentName:"mrow"},(0,s.kt)("mi",{parentName:"msub"},"p"),(0,s.kt)("mi",{parentName:"msub"},"z")),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,s.kt)("mi",{parentName:"mrow"},"z"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},")"))),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},"["),(0,s.kt)("mi",{parentName:"mrow"},"log"),(0,s.kt)("mo",{parentName:"mrow"},"\u2061"),(0,s.kt)("mi",{parentName:"mrow"},"D"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,s.kt)("mi",{parentName:"mrow"},"G"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,s.kt)("mi",{parentName:"mrow"},"z"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},"]"))),(0,s.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,s.kt)("mtd",{parentName:"mtr"},(0,s.kt)("mtext",{parentName:"mtd"},"(4)")))),(0,s.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"L_G=-E_{z\\sim p_z(z)}[\\log D(G(z))]\\tag{4}")))),(0,s.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"0.8333em",verticalAlign:"-0.15em"}}),(0,s.kt)("span",{parentName:"span",className:"mord"},(0,s.kt)("span",{parentName:"span",className:"mord mathnormal"},"L"),(0,s.kt)("span",{parentName:"span",className:"msupsub"},(0,s.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3283em"}},(0,s.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,s.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,s.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,s.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"G")))),(0,s.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,s.kt)("span",{parentName:"span"})))))),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,s.kt)("span",{parentName:"span",className:"mrel"},"="),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"1.1052em",verticalAlign:"-0.3552em"}}),(0,s.kt)("span",{parentName:"span",className:"mord"},"\u2212"),(0,s.kt)("span",{parentName:"span",className:"mord"},(0,s.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05764em"}},"E"),(0,s.kt)("span",{parentName:"span",className:"msupsub"},(0,s.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3448em"}},(0,s.kt)("span",{parentName:"span",style:{top:"-2.5198em",marginLeft:"-0.0576em",marginRight:"0.05em"}},(0,s.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,s.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,s.kt)("span",{parentName:"span",className:"mord mtight"},(0,s.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.04398em"}},"z"),(0,s.kt)("span",{parentName:"span",className:"mrel mtight"},"\u223c"),(0,s.kt)("span",{parentName:"span",className:"mord mtight"},(0,s.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"p"),(0,s.kt)("span",{parentName:"span",className:"msupsub"},(0,s.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.1645em"}},(0,s.kt)("span",{parentName:"span",style:{top:"-2.357em",marginLeft:"0em",marginRight:"0.0714em"}},(0,s.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.5em"}}),(0,s.kt)("span",{parentName:"span",className:"sizing reset-size3 size1 mtight"},(0,s.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.04398em"}},"z")))),(0,s.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.143em"}},(0,s.kt)("span",{parentName:"span"})))))),(0,s.kt)("span",{parentName:"span",className:"mopen mtight"},"("),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.04398em"}},"z"),(0,s.kt)("span",{parentName:"span",className:"mclose mtight"},")"))))),(0,s.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3552em"}},(0,s.kt)("span",{parentName:"span"})))))),(0,s.kt)("span",{parentName:"span",className:"mopen"},"["),(0,s.kt)("span",{parentName:"span",className:"mop"},"lo",(0,s.kt)("span",{parentName:"span",style:{marginRight:"0.01389em"}},"g")),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02778em"}},"D"),(0,s.kt)("span",{parentName:"span",className:"mopen"},"("),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal"},"G"),(0,s.kt)("span",{parentName:"span",className:"mopen"},"("),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.04398em"}},"z"),(0,s.kt)("span",{parentName:"span",className:"mclose"},"))]")),(0,s.kt)("span",{parentName:"span",className:"tag"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"1.1052em",verticalAlign:"-0.3552em"}}),(0,s.kt)("span",{parentName:"span",className:"mord text"},(0,s.kt)("span",{parentName:"span",className:"mord"},"("),(0,s.kt)("span",{parentName:"span",className:"mord"},(0,s.kt)("span",{parentName:"span",className:"mord"},"4")),(0,s.kt)("span",{parentName:"span",className:"mord"},")"))))))),(0,s.kt)("p",null,"\u5176\u4e2d\uff0c",(0,s.kt)("span",{parentName:"p",className:"math math-inline"},(0,s.kt)("span",{parentName:"span",className:"katex"},(0,s.kt)("span",{parentName:"span",className:"katex-mathml"},(0,s.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,s.kt)("semantics",{parentName:"math"},(0,s.kt)("mrow",{parentName:"semantics"},(0,s.kt)("mi",{parentName:"mrow"},"G"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,s.kt)("mi",{parentName:"mrow"},"z"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,s.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"G(z)")))),(0,s.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal"},"G"),(0,s.kt)("span",{parentName:"span",className:"mopen"},"("),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.04398em"}},"z"),(0,s.kt)("span",{parentName:"span",className:"mclose"},")"))))),"\u662f\u751f\u6210\u5668\u7684\u8f93\u51fa\uff0c",(0,s.kt)("span",{parentName:"p",className:"math math-inline"},(0,s.kt)("span",{parentName:"span",className:"katex"},(0,s.kt)("span",{parentName:"span",className:"katex-mathml"},(0,s.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,s.kt)("semantics",{parentName:"math"},(0,s.kt)("mrow",{parentName:"semantics"},(0,s.kt)("mi",{parentName:"mrow"},"D"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,s.kt)("mi",{parentName:"mrow"},"G"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,s.kt)("mi",{parentName:"mrow"},"z"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,s.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"D(G(z))")))),(0,s.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02778em"}},"D"),(0,s.kt)("span",{parentName:"span",className:"mopen"},"("),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal"},"G"),(0,s.kt)("span",{parentName:"span",className:"mopen"},"("),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.04398em"}},"z"),(0,s.kt)("span",{parentName:"span",className:"mclose"},"))"))))),"\u662f\u751f\u6210\u6837\u672c\u8f93\u5165\u5230\u5224\u522b\u5668\u540e\u7684\u8f93\u51fa\uff0c",(0,s.kt)("span",{parentName:"p",className:"math math-inline"},(0,s.kt)("span",{parentName:"span",className:"katex"},(0,s.kt)("span",{parentName:"span",className:"katex-mathml"},(0,s.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,s.kt)("semantics",{parentName:"math"},(0,s.kt)("mrow",{parentName:"semantics"},(0,s.kt)("mi",{parentName:"mrow"},"z")),(0,s.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"z")))),(0,s.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"0.4306em"}}),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.04398em"}},"z"))))),"\u662f\u968f\u673a\u566a\u58f0\uff0c",(0,s.kt)("span",{parentName:"p",className:"math math-inline"},(0,s.kt)("span",{parentName:"span",className:"katex"},(0,s.kt)("span",{parentName:"span",className:"katex-mathml"},(0,s.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,s.kt)("semantics",{parentName:"math"},(0,s.kt)("mrow",{parentName:"semantics"},(0,s.kt)("mi",{parentName:"mrow"},"E")),(0,s.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"E")))),(0,s.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6833em"}}),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05764em"}},"E"))))),"\u662f\u6570\u5b66\u671f\u671b\u3002"),(0,s.kt)("p",null,(0,s.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_imagesimage-20231122142205471.png",alt:"image-20231122142205471"})))}o.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/5960b9f1.c8c1a4e2.js b/assets/js/5960b9f1.c8c1a4e2.js new file mode 100644 index 000000000..cfa2c6480 --- /dev/null +++ b/assets/js/5960b9f1.c8c1a4e2.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunknpy_notebook=self.webpackChunknpy_notebook||[]).push([[9615],{3905:(a,e,t)=>{t.d(e,{Zo:()=>o,kt:()=>h});var n=t(7294);function m(a,e,t){return e in a?Object.defineProperty(a,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):a[e]=t,a}function s(a,e){var t=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable}))),t.push.apply(t,n)}return t}function r(a){for(var e=1;e=0||(m[t]=a[t]);return m}(a,e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(a);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(a,t)&&(m[t]=a[t])}return m}var l=n.createContext({}),N=function(a){var e=n.useContext(l),t=e;return a&&(t="function"==typeof a?a(e):r(r({},e),a)),t},o=function(a){var e=N(a.components);return n.createElement(l.Provider,{value:e},a.children)},i="mdxType",k={inlineCode:"code",wrapper:function(a){var e=a.children;return n.createElement(n.Fragment,{},e)}},c=n.forwardRef((function(a,e){var t=a.components,m=a.mdxType,s=a.originalType,l=a.parentName,o=p(a,["components","mdxType","originalType","parentName"]),i=N(t),c=m,h=i["".concat(l,".").concat(c)]||i[c]||k[c]||s;return t?n.createElement(h,r(r({ref:e},o),{},{components:t})):n.createElement(h,r({ref:e},o))}));function h(a,e){var t=arguments,m=e&&e.mdxType;if("string"==typeof a||m){var s=t.length,r=new Array(s);r[0]=c;var p={};for(var l in e)hasOwnProperty.call(e,l)&&(p[l]=e[l]);p.originalType=a,p[i]="string"==typeof a?a:m,r[1]=p;for(var N=2;N{t.r(e),t.d(e,{assets:()=>l,contentTitle:()=>r,default:()=>k,frontMatter:()=>s,metadata:()=>p,toc:()=>N});var n=t(7462),m=(t(7294),t(3905));const s={},r="\u6982\u7387\u8bba",p={unversionedId:"Tui-Mian/\u6570\u5b66/\u6982\u7387\u8bba",id:"Tui-Mian/\u6570\u5b66/\u6982\u7387\u8bba",title:"\u6982\u7387\u8bba",description:"\u9762\u8bd5\u5e38\u8003\u95ee\u9898",source:"@site/docs/Tui-Mian/\u6570\u5b66/\u6982\u7387\u8bba.md",sourceDirName:"Tui-Mian/\u6570\u5b66",slug:"/Tui-Mian/\u6570\u5b66/\u6982\u7387\u8bba",permalink:"/docs/Tui-Mian/\u6570\u5b66/\u6982\u7387\u8bba",draft:!1,tags:[],version:"current",frontMatter:{},sidebar:"tui_mian",previous:{title:"\u590f\u4ee4\u8425\u9762\u8bd5\u6570\u5b66\u90e8\u5206\u590d\u4e60",permalink:"/docs/Tui-Mian/\u6570\u5b66/\u590f\u4ee4\u8425\u9762\u8bd5\u6570\u5b66\u90e8\u5206\u590d\u4e60"},next:{title:"\u7ebf\u6027\u4ee3\u6570",permalink:"/docs/Tui-Mian/\u6570\u5b66/\u7ebf\u6027\u4ee3\u6570"}},l={},N=[{value:"\u9762\u8bd5\u5e38\u8003\u95ee\u9898",id:"\u9762\u8bd5\u5e38\u8003\u95ee\u9898",level:2}],o={toc:N},i="wrapper";function k(a){let{components:e,...t}=a;return(0,m.kt)(i,(0,n.Z)({},o,t,{components:e,mdxType:"MDXLayout"}),(0,m.kt)("h1",{id:"\u6982\u7387\u8bba"},"\u6982\u7387\u8bba"),(0,m.kt)("h2",{id:"\u9762\u8bd5\u5e38\u8003\u95ee\u9898"},"\u9762\u8bd5\u5e38\u8003\u95ee\u9898"),(0,m.kt)("ol",null,(0,m.kt)("li",{parentName:"ol"},(0,m.kt)("p",{parentName:"li"},(0,m.kt)("strong",{parentName:"p"},"\u7b80\u8ff0\u5927\u6570\u5b9a\u7406\u3002")),(0,m.kt)("p",{parentName:"li"},"\u5927\u6570\u5b9a\u7406\u63cf\u8ff0\u4e86\u5927\u6837\u672c\u60c5\u51b5\u4e0b\u968f\u673a\u53d8\u91cf\u7684\u5747\u503c\u4e0e\u5176\u671f\u671b\u503c\u4e4b\u95f4\u7684\u5173\u7cfb\u3002\u5bf9\u4e8e",(0,m.kt)("strong",{parentName:"p"},"\u72ec\u7acb\u540c\u5206\u5e03"),"\u7684\u968f\u673a\u53d8\u91cf\u5e8f\u5217\uff0c\u968f\u7740\u6837\u672c\u6570\u91cf\u7684\u589e\u52a0\uff0c\u6837\u672c\u5747\u503c\u4f1a\u4ee5\u8f83\u9ad8\u7684\u6982\u7387\u63a5\u8fd1\u5176\u671f\u671b\u503c\u3002")),(0,m.kt)("li",{parentName:"ol"},(0,m.kt)("p",{parentName:"li"},(0,m.kt)("strong",{parentName:"p"},"\u7b80\u8ff0\u4e2d\u5fc3\u6781\u9650\u5b9a\u7406\u3002")),(0,m.kt)("p",{parentName:"li"},"\u5f53\u72ec\u7acb\u968f\u673a\u53d8\u91cf\u7684\u6570\u91cf\u8db3\u591f\u5927\u65f6\uff0c\u5b83\u4eec\u7684\u548c\uff08\u6216\u5e73\u5747\u503c\uff09\u7684\u5206\u5e03\u4f1a\u9010\u6e10\u63a5\u8fd1\u4e00\u4e2a\u6b63\u6001\u5206\u5e03\u3002",(0,m.kt)("strong",{parentName:"p"},"\u5373\u4f7f\u539f\u59cb\u968f\u673a\u53d8\u91cf\u4e0d\u670d\u4ece\u6b63\u6001\u5206\u5e03"),"\uff0c\u4f46\u5f53\u6837\u672c\u5bb9\u91cf\u8db3\u591f\u5927\u65f6\uff0c\u548c\uff08\u6216\u5e73\u5747\u503c\uff09\u7684\u5206\u5e03\u4ecd\u7136\u5448\u73b0\u51fa\u6b63\u6001\u5206\u5e03\u7684\u7279\u5f81\u3002")),(0,m.kt)("li",{parentName:"ol"},(0,m.kt)("p",{parentName:"li"},(0,m.kt)("strong",{parentName:"p"},"\u4ec0\u4e48\u662f\u5168\u6982\u7387\u516c\u5f0f\u3002")),(0,m.kt)("p",{parentName:"li"},"\u5bf9\u4e8e\u4e8b\u4ef6A\u800c\u8a00\uff0c\u5047\u8bbe\u6709\u4e00\u7ec4",(0,m.kt)("strong",{parentName:"p"},"\u4e92\u65a5\u4e14\u7a77\u5c3d"),"\u7684\u6761\u4ef6\u4e8b\u4ef6B\uff0c\u5219\u4e8b\u4ef6A\u7684\u6982\u7387\u7b49\u4e8e\u4e8b\u4ef6A\u5728\u6bcf\u4e2a\u6761\u4ef6\u4e8b\u4ef6\u4e0b\u53d1\u751f\u7684\u6982\u7387\u4e0e\u8be5\u6761\u4ef6\u4e8b\u4ef6\u53d1\u751f\u6982\u7387\u7684\u4e58\u79ef\u548c\u3002")),(0,m.kt)("li",{parentName:"ol"},(0,m.kt)("p",{parentName:"li"},(0,m.kt)("strong",{parentName:"p"},"\u4ec0\u4e48\u662f\u6700\u5927\u4f3c\u7136\u4f30\u8ba1\u3002")),(0,m.kt)("p",{parentName:"li"},"\u57fa\u672c\u601d\u60f3\u662f\u5728\u5df2\u77e5\u89c2\u6d4b\u6570\u636e\u7684\u60c5\u51b5\u4e0b\uff0c\u901a\u8fc7\u8c03\u6574\u53c2\u6570\u7684\u53d6\u503c\uff0c\u627e\u5230\u4f7f\u5f97\u89c2\u6d4b\u6570\u636e\u51fa\u73b0\u6982\u7387\u6700\u5927\u7684\u53c2\u6570\u503c\u3002"),(0,m.kt)("p",{parentName:"li"},"\u5927\u81f4\u8fc7\u7a0b\uff1a"),(0,m.kt)("ol",{parentName:"li"},(0,m.kt)("li",{parentName:"ol"},"\u6784\u5efa\u53c2\u6570\u5316\u7684\u6982\u7387\u6a21\u578b\uff0c\u5373\u6784\u5efa\u4f3c\u7136\u51fd\u6570\uff0c\u8868\u793a\u5728\u7ed9\u5b9a\u53c2\u6570\u4e0b\u89c2\u6d4b\u6570\u636e\u51fa\u73b0\u7684\u6982\u7387"),(0,m.kt)("li",{parentName:"ol"},"\u53d6\u4f3c\u7136\u51fd\u6570\u7684\u5bf9\u6570\uff0c\u65b9\u4fbf\u8ba1\u7b97\u4e0e\u4f18\u5316"),(0,m.kt)("li",{parentName:"ol"},"\u6700\u5927\u5316\u4f3c\u7136\u51fd\u6570\uff0c\u6c42\u89e3\u53c2\u6570\u7684\u6700\u4f18\u503c"))),(0,m.kt)("li",{parentName:"ol"},(0,m.kt)("p",{parentName:"li"},(0,m.kt)("strong",{parentName:"p"},"\u7b80\u8ff0\u8d1d\u53f6\u65af\u5b9a\u7406\u3002")),(0,m.kt)("p",{parentName:"li"},"\u8d1d\u53f6\u65af\u5b9a\u7406\u63cf\u8ff0\u4e86\u5728\u7ed9\u5b9a\u89c2\u6d4b\u6570\u636e\u7684\u6761\u4ef6\u4e0b\uff0c\u8ba1\u7b97\u4e8b\u4ef6\u7684\u540e\u9a8c\u6982\u7387\u7684\u65b9\u6cd5\u3002"),(0,m.kt)("div",{parentName:"li",className:"math math-display"},(0,m.kt)("span",{parentName:"div",className:"katex-display"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"A"),(0,m.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"\u2223"),(0,m.kt)("mi",{parentName:"mrow"},"B"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("mfrac",{parentName:"mrow"},(0,m.kt)("mrow",{parentName:"mfrac"},(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"B"),(0,m.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"\u2223"),(0,m.kt)("mi",{parentName:"mrow"},"A"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"\u2217"),(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"A"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,m.kt)("mrow",{parentName:"mfrac"},(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"B"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")")))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"P(A|B) = \\frac{P(B|A) * P(A)}{P(B)}")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"P"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"A"),(0,m.kt)("span",{parentName:"span",className:"mord"},"\u2223"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05017em"}},"B"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"="),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"2.363em",verticalAlign:"-0.936em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mopen nulldelimiter"}),(0,m.kt)("span",{parentName:"span",className:"mfrac"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.427em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.314em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"P"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05017em"}},"B"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.23em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"frac-line",style:{borderBottomWidth:"0.04em"}})),(0,m.kt)("span",{parentName:"span",style:{top:"-3.677em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"P"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05017em"}},"B"),(0,m.kt)("span",{parentName:"span",className:"mord"},"\u2223"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"A"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"\u2217"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"P"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"A"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.936em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"mclose nulldelimiter"}))))))),(0,m.kt)("p",{parentName:"li"},"\u5176\u4e2d\uff1a"),(0,m.kt)("ul",{parentName:"li"},(0,m.kt)("li",{parentName:"ul"},(0,m.kt)("span",{parentName:"li",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"A"),(0,m.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"\u2223"),(0,m.kt)("mi",{parentName:"mrow"},"B"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"P(A|B)")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"P"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"A"),(0,m.kt)("span",{parentName:"span",className:"mord"},"\u2223"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05017em"}},"B"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"))))),"\u8868\u793a\u5728\u89c2\u6d4b\u5230\u4e8b\u4ef6 B \u53d1\u751f\u7684\u6761\u4ef6\u4e0b\uff0c\u4e8b\u4ef6 A \u53d1\u751f\u7684\u6982\u7387\uff0c\u79f0\u4e3a\u540e\u9a8c\u6982\u7387"),(0,m.kt)("li",{parentName:"ul"},(0,m.kt)("span",{parentName:"li",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"B"),(0,m.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"\u2223"),(0,m.kt)("mi",{parentName:"mrow"},"A"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"P(B|A)")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"P"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05017em"}},"B"),(0,m.kt)("span",{parentName:"span",className:"mord"},"\u2223"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"A"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"))))),"\u8868\u793a\u5728\u4e8b\u4ef6 A \u53d1\u751f\u7684\u6761\u4ef6\u4e0b\uff0c\u4e8b\u4ef6 B \u53d1\u751f\u7684\u6982\u7387\uff0c\u79f0\u4e3a\u4f3c\u7136\uff1b"),(0,m.kt)("li",{parentName:"ul"},(0,m.kt)("span",{parentName:"li",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"A"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"P(A)")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"P"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"A"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"))))),"\u548c",(0,m.kt)("span",{parentName:"li",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"B"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"P(B)")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"P"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05017em"}},"B"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"))))),"\u5206\u522b\u662f\u4e8b\u4ef6 A \u548c\u4e8b\u4ef6 B \u72ec\u7acb\u53d1\u751f\u7684\u5148\u9a8c\u6982\u7387\u3002")),(0,m.kt)("p",{parentName:"li"},"\u4f18\u70b9\uff1a\u5b83\u80fd\u591f\u5c06\u4e3b\u89c2\u5148\u9a8c\u77e5\u8bc6\u4e0e\u89c2\u6d4b\u6570\u636e\u76f8\u7ed3\u5408\uff0c\u901a\u8fc7\u4e0d\u65ad\u66f4\u65b0\u540e\u9a8c\u6982\u7387\u6765\u8fdb\u884c\u63a8\u65ad\u548c\u51b3\u7b56\u3002")),(0,m.kt)("li",{parentName:"ol"},(0,m.kt)("p",{parentName:"li"},(0,m.kt)("strong",{parentName:"p"},"P\u95ee\u9898\u3001NP\u95ee\u9898\u4ee5\u53caNP\u5b8c\u5168\u95ee\u9898")),(0,m.kt)("admonition",{parentName:"li",type:"tip"},(0,m.kt)("p",{parentName:"admonition"},"P stands for Polynomial"),(0,m.kt)("p",{parentName:"admonition"},"\u610f\u4e3a\u591a\u9879\u5f0f")),(0,m.kt)("p",{parentName:"li"},"P\u95ee\u9898\u662f\u53ef\u4ee5\u5728\u591a\u9879\u5f0f\u65f6\u95f4\u5185\u89e3\u51b3\u7684\u95ee\u9898"),(0,m.kt)("p",{parentName:"li"},"NP\u95ee\u9898\u662f\u53ef\u4ee5\u5728\u591a\u9879\u5f0f\u65f6\u95f4\u5185\u9a8c\u8bc1\u89e3\u7684\u6b63\u786e\u6027\u7684\u95ee\u9898"),(0,m.kt)("p",{parentName:"li"},"NP\u5b8c\u5168\u95ee\u9898\u662f\u4e00\u7c7b\u7279\u6b8a\u7684NP\u95ee\u9898\uff0c\u6ca1\u6709\u5df2\u77e5\u7684\u9ad8\u6548\u89e3\u51b3\u7b97\u6cd5\uff0c\u5e76\u4e14\u53ef\u4ee5\u5728\u591a\u9879\u5f0f\u65f6\u95f4\u5185\u5f52\u7ea6\u5230\u4efb\u4f55\u5176\u4ed6\u7684NP\u95ee\u9898"))))}k.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/5b87b98d.1c0c0c2c.js b/assets/js/5b87b98d.1c0c0c2c.js new file mode 100644 index 000000000..ab7aa4ed9 --- /dev/null +++ b/assets/js/5b87b98d.1c0c0c2c.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunknpy_notebook=self.webpackChunknpy_notebook||[]).push([[452],{3905:(e,t,r)=>{r.d(t,{Zo:()=>s,kt:()=>y});var n=r(7294);function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var l=n.createContext({}),p=function(e){var t=n.useContext(l),r=t;return e&&(r="function"==typeof e?e(t):i(i({},t),e)),r},s=function(e){var t=p(e.components);return n.createElement(l.Provider,{value:t},e.children)},u="mdxType",m={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},f=n.forwardRef((function(e,t){var r=e.components,o=e.mdxType,a=e.originalType,l=e.parentName,s=c(e,["components","mdxType","originalType","parentName"]),u=p(r),f=o,y=u["".concat(l,".").concat(f)]||u[f]||m[f]||a;return r?n.createElement(y,i(i({ref:t},s),{},{components:r})):n.createElement(y,i({ref:t},s))}));function y(e,t){var r=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var a=r.length,i=new Array(a);i[0]=f;var c={};for(var l in t)hasOwnProperty.call(t,l)&&(c[l]=t[l]);c.originalType=e,c[u]="string"==typeof e?e:o,i[1]=c;for(var p=2;p{r.r(t),r.d(t,{assets:()=>l,contentTitle:()=>i,default:()=>m,frontMatter:()=>a,metadata:()=>c,toc:()=>p});var n=r(7462),o=(r(7294),r(3905));const a={},i="\u544a\u793a\u680f",c={unversionedId:"Others/\u535a\u5ba2\u642d\u5efa/\u544a\u793a\u680f",id:"Others/\u535a\u5ba2\u642d\u5efa/\u544a\u793a\u680f",title:"\u544a\u793a\u680f",description:"1. \u544a\u793a\u680f\u7684\u542f\u7528",source:"@site/docs/Others/3-\u535a\u5ba2\u642d\u5efa/\u544a\u793a\u680f.md",sourceDirName:"Others/3-\u535a\u5ba2\u642d\u5efa",slug:"/Others/\u535a\u5ba2\u642d\u5efa/\u544a\u793a\u680f",permalink:"/docs/Others/\u535a\u5ba2\u642d\u5efa/\u544a\u793a\u680f",draft:!1,tags:[],version:"current",frontMatter:{},sidebar:"others",previous:{title:"\u6302\u8f7dWindows\u78c1\u76d8\u4e3a\u53ea\u8bfb\u6587\u4ef6",permalink:"/docs/Others/Linux/\u95ee\u9898\u89e3\u51b3/\u53cc\u7cfb\u7edf\u6302\u8f7dWindows\u78c1\u76d8\u4e3a\u53ea\u8bfb\u6587\u4ef6"}},l={},p=[],s={toc:p},u="wrapper";function m(e){let{components:t,...r}=e;return(0,o.kt)(u,(0,n.Z)({},s,r,{components:t,mdxType:"MDXLayout"}),(0,o.kt)("h1",{id:"\u544a\u793a\u680f"},"\u544a\u793a\u680f"),(0,o.kt)("ol",null,(0,o.kt)("li",{parentName:"ol"},(0,o.kt)("p",{parentName:"li"},"\u544a\u793a\u680f\u7684\u542f\u7528"),(0,o.kt)("p",{parentName:"li"},"\u5728docusaurus.config.js\u7684themeConfig\u4e2d\u52a0\u5165\u4ee5\u4e0b\u4ee3\u7801"),(0,o.kt)("pre",{parentName:"li"},(0,o.kt)("code",{parentName:"pre",className:"language-js"}," announcementBar: {\n id: 'announcementBar-3',\n content: 'Welcome to my notebook!',\n isCloseable: false,\n },\n"))),(0,o.kt)("li",{parentName:"ol"},(0,o.kt)("p",{parentName:"li"},"\u544a\u793a\u680f\u7684\u80cc\u666f\u4e2a\u6027\u5316"),(0,o.kt)("p",{parentName:"li"},"\u5728custom.css\u4e2d\u52a0\u5165\u4ee5\u4e0b\u4ee3\u7801"),(0,o.kt)("pre",{parentName:"li"},(0,o.kt)("code",{parentName:"pre",className:"language-css"},"div[class^='announcementBar_'] {\n background: repeating-linear-gradient(\n -35deg,\n var(--ifm-color-primary-lighter),\n var(--ifm-color-primary-lighter) 20px,\n var(--ifm-color-primary-lightest) 10px,\n var(--ifm-color-primary-lightest) 40px\n );\n font-weight: 700;\n}\n")))))}m.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/6204ac06.b6803ede.js b/assets/js/6204ac06.b6803ede.js new file mode 100644 index 000000000..90406c4d7 --- /dev/null +++ b/assets/js/6204ac06.b6803ede.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunknpy_notebook=self.webpackChunknpy_notebook||[]).push([[8614],{3905:(a,e,t)=>{t.d(e,{Zo:()=>i,kt:()=>h});var n=t(7294);function s(a,e,t){return e in a?Object.defineProperty(a,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):a[e]=t,a}function m(a,e){var t=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable}))),t.push.apply(t,n)}return t}function p(a){for(var e=1;e=0||(s[t]=a[t]);return s}(a,e);if(Object.getOwnPropertySymbols){var m=Object.getOwnPropertySymbols(a);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(a,t)&&(s[t]=a[t])}return s}var N=n.createContext({}),l=function(a){var e=n.useContext(N),t=e;return a&&(t="function"==typeof a?a(e):p(p({},e),a)),t},i=function(a){var e=l(a.components);return n.createElement(N.Provider,{value:e},a.children)},c="mdxType",k={inlineCode:"code",wrapper:function(a){var e=a.children;return n.createElement(n.Fragment,{},e)}},o=n.forwardRef((function(a,e){var t=a.components,s=a.mdxType,m=a.originalType,N=a.parentName,i=r(a,["components","mdxType","originalType","parentName"]),c=l(t),o=s,h=c["".concat(N,".").concat(o)]||c[o]||k[o]||m;return t?n.createElement(h,p(p({ref:e},i),{},{components:t})):n.createElement(h,p({ref:e},i))}));function h(a,e){var t=arguments,s=e&&e.mdxType;if("string"==typeof a||s){var m=t.length,p=new Array(m);p[0]=o;var r={};for(var N in e)hasOwnProperty.call(e,N)&&(r[N]=e[N]);r.originalType=a,r[c]="string"==typeof a?a:s,p[1]=r;for(var l=2;l{t.r(e),t.d(e,{assets:()=>N,contentTitle:()=>p,default:()=>k,frontMatter:()=>m,metadata:()=>r,toc:()=>l});var n=t(7462),s=(t(7294),t(3905));const m={},p="\u6df1\u5ea6\u53ef\u5206\u79bb\u5377\u79ef",r={unversionedId:"Deep-Learning/\u57fa\u7840\u77e5\u8bc6/\u6df1\u5ea6\u53ef\u5206\u79bb\u5377\u79ef",id:"Deep-Learning/\u57fa\u7840\u77e5\u8bc6/\u6df1\u5ea6\u53ef\u5206\u79bb\u5377\u79ef",title:"\u6df1\u5ea6\u53ef\u5206\u79bb\u5377\u79ef",description:"\u8f93\u5165\uff1ashape\u4e3a$[5, 5, 3]$\u7684\u56fe\u50cf",source:"@site/docs/Deep-Learning/3-\u57fa\u7840\u77e5\u8bc6/\u6df1\u5ea6\u53ef\u5206\u79bb\u5377\u79ef.md",sourceDirName:"Deep-Learning/3-\u57fa\u7840\u77e5\u8bc6",slug:"/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/\u6df1\u5ea6\u53ef\u5206\u79bb\u5377\u79ef",permalink:"/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/\u6df1\u5ea6\u53ef\u5206\u79bb\u5377\u79ef",draft:!1,tags:[],version:"current",frontMatter:{},sidebar:"deep_learning",previous:{title:"\u6b63\u5219\u5316\u4e0e\u6743\u91cd\u8870\u9000",permalink:"/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/\u6b63\u5219\u5316\u4e0e\u6743\u91cd\u8870\u9000"},next:{title:"\u6fc0\u6d3b\u51fd\u6570\u4e0eLoss\u7684\u68af\u5ea6",permalink:"/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/\u6fc0\u6d3b\u51fd\u6570\u4e0eLoss\u7684\u68af\u5ea6"}},N={},l=[{value:"\u5e38\u89c4\u5377\u79ef",id:"\u5e38\u89c4\u5377\u79ef",level:2},{value:"\u6df1\u5ea6\u53ef\u5206\u79bb\u5377\u79ef",id:"\u6df1\u5ea6\u53ef\u5206\u79bb\u5377\u79ef-1",level:2},{value:"\uff081\uff09\u9010\u901a\u9053\u5377\u79ef-Depthwise Convolution",id:"1\u9010\u901a\u9053\u5377\u79ef-depthwise-convolution",level:3},{value:"\uff082\uff09\u9010\u70b9\u5377\u79ef-Pointwise Convolution",id:"2\u9010\u70b9\u5377\u79ef-pointwise-convolution",level:3}],i={toc:l},c="wrapper";function k(a){let{components:e,...t}=a;return(0,s.kt)(c,(0,n.Z)({},i,t,{components:e,mdxType:"MDXLayout"}),(0,s.kt)("h1",{id:"\u6df1\u5ea6\u53ef\u5206\u79bb\u5377\u79ef"},"\u6df1\u5ea6\u53ef\u5206\u79bb\u5377\u79ef"),(0,s.kt)("admonition",{type:"tip"},(0,s.kt)("p",{parentName:"admonition"},"\u8f93\u5165\uff1ashape\u4e3a",(0,s.kt)("span",{parentName:"p",className:"math math-inline"},(0,s.kt)("span",{parentName:"span",className:"katex"},(0,s.kt)("span",{parentName:"span",className:"katex-mathml"},(0,s.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,s.kt)("semantics",{parentName:"math"},(0,s.kt)("mrow",{parentName:"semantics"},(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},"["),(0,s.kt)("mn",{parentName:"mrow"},"5"),(0,s.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,s.kt)("mn",{parentName:"mrow"},"5"),(0,s.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,s.kt)("mn",{parentName:"mrow"},"3"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},"]")),(0,s.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"[5, 5, 3]")))),(0,s.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,s.kt)("span",{parentName:"span",className:"mopen"},"["),(0,s.kt)("span",{parentName:"span",className:"mord"},"5"),(0,s.kt)("span",{parentName:"span",className:"mpunct"},","),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,s.kt)("span",{parentName:"span",className:"mord"},"5"),(0,s.kt)("span",{parentName:"span",className:"mpunct"},","),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,s.kt)("span",{parentName:"span",className:"mord"},"3"),(0,s.kt)("span",{parentName:"span",className:"mclose"},"]"))))),"\u7684\u56fe\u50cf\n\u8f93\u51fa\u8981\u6c42\uff1ashape\u4e3a",(0,s.kt)("span",{parentName:"p",className:"math math-inline"},(0,s.kt)("span",{parentName:"span",className:"katex"},(0,s.kt)("span",{parentName:"span",className:"katex-mathml"},(0,s.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,s.kt)("semantics",{parentName:"math"},(0,s.kt)("mrow",{parentName:"semantics"},(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},"["),(0,s.kt)("mn",{parentName:"mrow"},"5"),(0,s.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,s.kt)("mn",{parentName:"mrow"},"5"),(0,s.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,s.kt)("mn",{parentName:"mrow"},"4"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},"]")),(0,s.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"[5, 5, 4]")))),(0,s.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,s.kt)("span",{parentName:"span",className:"mopen"},"["),(0,s.kt)("span",{parentName:"span",className:"mord"},"5"),(0,s.kt)("span",{parentName:"span",className:"mpunct"},","),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,s.kt)("span",{parentName:"span",className:"mord"},"5"),(0,s.kt)("span",{parentName:"span",className:"mpunct"},","),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,s.kt)("span",{parentName:"span",className:"mord"},"4"),(0,s.kt)("span",{parentName:"span",className:"mclose"},"]"))))),"\u7684feature map\n\u4f7f\u7528",(0,s.kt)("span",{parentName:"p",className:"math math-inline"},(0,s.kt)("span",{parentName:"span",className:"katex"},(0,s.kt)("span",{parentName:"span",className:"katex-mathml"},(0,s.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,s.kt)("semantics",{parentName:"math"},(0,s.kt)("mrow",{parentName:"semantics"},(0,s.kt)("mn",{parentName:"mrow"},"3"),(0,s.kt)("mo",{parentName:"mrow"},"\xd7"),(0,s.kt)("mn",{parentName:"mrow"},"3")),(0,s.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"3 \\times 3")))),(0,s.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"0.7278em",verticalAlign:"-0.0833em"}}),(0,s.kt)("span",{parentName:"span",className:"mord"},"3"),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,s.kt)("span",{parentName:"span",className:"mbin"},"\xd7"),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}})),(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6444em"}}),(0,s.kt)("span",{parentName:"span",className:"mord"},"3"))))),"\u5377\u79ef\u6838\uff0c",(0,s.kt)("span",{parentName:"p",className:"math math-inline"},(0,s.kt)("span",{parentName:"span",className:"katex"},(0,s.kt)("span",{parentName:"span",className:"katex-mathml"},(0,s.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,s.kt)("semantics",{parentName:"math"},(0,s.kt)("mrow",{parentName:"semantics"},(0,s.kt)("mi",{parentName:"mrow"},"p"),(0,s.kt)("mi",{parentName:"mrow"},"a"),(0,s.kt)("mi",{parentName:"mrow"},"d"),(0,s.kt)("mi",{parentName:"mrow"},"d"),(0,s.kt)("mi",{parentName:"mrow"},"i"),(0,s.kt)("mi",{parentName:"mrow"},"n"),(0,s.kt)("mi",{parentName:"mrow"},"g"),(0,s.kt)("mo",{parentName:"mrow"},"="),(0,s.kt)("mn",{parentName:"mrow"},"1"),(0,s.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,s.kt)("mi",{parentName:"mrow"},"s"),(0,s.kt)("mi",{parentName:"mrow"},"t"),(0,s.kt)("mi",{parentName:"mrow"},"r"),(0,s.kt)("mi",{parentName:"mrow"},"i"),(0,s.kt)("mi",{parentName:"mrow"},"d"),(0,s.kt)("mi",{parentName:"mrow"},"e"),(0,s.kt)("mo",{parentName:"mrow"},"="),(0,s.kt)("mn",{parentName:"mrow"},"1")),(0,s.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"padding=1, stride=1")))),(0,s.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"0.8889em",verticalAlign:"-0.1944em"}}),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal"},"p"),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal"},"a"),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal"},"dd"),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal"},"in"),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"g"),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,s.kt)("span",{parentName:"span",className:"mrel"},"="),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"0.8889em",verticalAlign:"-0.1944em"}}),(0,s.kt)("span",{parentName:"span",className:"mord"},"1"),(0,s.kt)("span",{parentName:"span",className:"mpunct"},","),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal"},"s"),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal"},"t"),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02778em"}},"r"),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal"},"i"),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal"},"d"),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal"},"e"),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,s.kt)("span",{parentName:"span",className:"mrel"},"="),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6444em"}}),(0,s.kt)("span",{parentName:"span",className:"mord"},"1"))))))),(0,s.kt)("h2",{id:"\u5e38\u89c4\u5377\u79ef"},"\u5e38\u89c4\u5377\u79ef"),(0,s.kt)("p",null,"\u5377\u79ef\u5c42\u51714\u4e2afilter\uff08\u8f93\u51fa\u901a\u9053\u4e3a4\uff09\uff0c\u6bcf\u4e2afilter3\u4e2akernel\uff08\u8f93\u5165\u901a\u9053\u4e3a3\uff09"),(0,s.kt)("p",null,"\u5176\u4e2d\uff0c\u6bcf\u4e2afilter\u90fd\u5bf9\u8f93\u5165\u56fe\u50cf\u7684\u6240\u6709\u901a\u9053\u5b8c\u6210\u4e00\u6b21\u5377\u79ef\uff0c",(0,s.kt)("strong",{parentName:"p"},"filter\u4e2d\u7684kernel\u5206\u522b\u5bf9\u8f93\u5165\u7684\u901a\u9053\u8fdb\u884c\u5177\u4f53\u5377\u79ef\u8fd0\u7b97")),(0,s.kt)("p",null,(0,s.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/windows_typora/v2-617b082492f5c1c31bde1c6e2d994bc0_r.jpg",alt:"img"})),(0,s.kt)("p",null,"\u4e0d\u8003\u8651\u5377\u79ef\u504f\u7f6e\uff0c\u53c2\u6570\u91cf\u4e3a"),(0,s.kt)("div",{className:"math math-display"},(0,s.kt)("span",{parentName:"div",className:"katex-display"},(0,s.kt)("span",{parentName:"span",className:"katex"},(0,s.kt)("span",{parentName:"span",className:"katex-mathml"},(0,s.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,s.kt)("semantics",{parentName:"math"},(0,s.kt)("mtable",{parentName:"semantics",width:"100%"},(0,s.kt)("mtr",{parentName:"mtable"},(0,s.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,s.kt)("mtd",{parentName:"mtr"},(0,s.kt)("mrow",{parentName:"mtd"},(0,s.kt)("mn",{parentName:"mrow"},"3"),(0,s.kt)("mo",{parentName:"mrow"},"\xd7"),(0,s.kt)("mn",{parentName:"mrow"},"3"),(0,s.kt)("mo",{parentName:"mrow"},"\xd7"),(0,s.kt)("mn",{parentName:"mrow"},"3"),(0,s.kt)("mo",{parentName:"mrow"},"\xd7"),(0,s.kt)("mn",{parentName:"mrow"},"4"),(0,s.kt)("mo",{parentName:"mrow"},"="),(0,s.kt)("mn",{parentName:"mrow"},"108"))),(0,s.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,s.kt)("mtd",{parentName:"mtr"},(0,s.kt)("mtext",{parentName:"mtd"},"(1)")))),(0,s.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"3 \\times 3 \\times 3 \\times 4 = 108 \\tag{1}")))),(0,s.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"0.7278em",verticalAlign:"-0.0833em"}}),(0,s.kt)("span",{parentName:"span",className:"mord"},"3"),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,s.kt)("span",{parentName:"span",className:"mbin"},"\xd7"),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}})),(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"0.7278em",verticalAlign:"-0.0833em"}}),(0,s.kt)("span",{parentName:"span",className:"mord"},"3"),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,s.kt)("span",{parentName:"span",className:"mbin"},"\xd7"),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}})),(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"0.7278em",verticalAlign:"-0.0833em"}}),(0,s.kt)("span",{parentName:"span",className:"mord"},"3"),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,s.kt)("span",{parentName:"span",className:"mbin"},"\xd7"),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}})),(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6444em"}}),(0,s.kt)("span",{parentName:"span",className:"mord"},"4"),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,s.kt)("span",{parentName:"span",className:"mrel"},"="),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6444em"}}),(0,s.kt)("span",{parentName:"span",className:"mord"},"108")),(0,s.kt)("span",{parentName:"span",className:"tag"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,s.kt)("span",{parentName:"span",className:"mord text"},(0,s.kt)("span",{parentName:"span",className:"mord"},"("),(0,s.kt)("span",{parentName:"span",className:"mord"},(0,s.kt)("span",{parentName:"span",className:"mord"},"1")),(0,s.kt)("span",{parentName:"span",className:"mord"},")"))))))),(0,s.kt)("h2",{id:"\u6df1\u5ea6\u53ef\u5206\u79bb\u5377\u79ef-1"},"\u6df1\u5ea6\u53ef\u5206\u79bb\u5377\u79ef"),(0,s.kt)("h3",{id:"1\u9010\u901a\u9053\u5377\u79ef-depthwise-convolution"},"\uff081\uff09\u9010\u901a\u9053\u5377\u79ef-Depthwise Convolution"),(0,s.kt)("p",null,(0,s.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/windows_typora/v2-a20824492e3e8778a959ca3731dfeea3_r.jpg",alt:"img"})),(0,s.kt)("p",null,"\u4f7f\u75281\u4e2afilter\uff0c\u5176\u4e2d\u5305\u542b3\u4e2akernel\u3002\u6bcf\u4e2akernel\u5206\u522b\u5bf9\u8f93\u5165\u56fe\u50cf\u76843\u4e2a\u901a\u9053\u5355\u72ec\u8fdb\u884c\u5377\u79ef\uff0c\u53c2\u6570\u91cf\u4e3a"),(0,s.kt)("div",{className:"math math-display"},(0,s.kt)("span",{parentName:"div",className:"katex-display"},(0,s.kt)("span",{parentName:"span",className:"katex"},(0,s.kt)("span",{parentName:"span",className:"katex-mathml"},(0,s.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,s.kt)("semantics",{parentName:"math"},(0,s.kt)("mtable",{parentName:"semantics",width:"100%"},(0,s.kt)("mtr",{parentName:"mtable"},(0,s.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,s.kt)("mtd",{parentName:"mtr"},(0,s.kt)("mrow",{parentName:"mtd"},(0,s.kt)("mn",{parentName:"mrow"},"3"),(0,s.kt)("mo",{parentName:"mrow"},"\xd7"),(0,s.kt)("mn",{parentName:"mrow"},"3"),(0,s.kt)("mo",{parentName:"mrow"},"\xd7"),(0,s.kt)("mo",{parentName:"mrow"},"\xd7"),(0,s.kt)("mn",{parentName:"mrow"},"3"),(0,s.kt)("mo",{parentName:"mrow"},"="),(0,s.kt)("mn",{parentName:"mrow"},"27"))),(0,s.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,s.kt)("mtd",{parentName:"mtr"},(0,s.kt)("mtext",{parentName:"mtd"},"(2)")))),(0,s.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"3 \\times 3 \\times \\times 3 = 27 \\tag{2}")))),(0,s.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"0.7278em",verticalAlign:"-0.0833em"}}),(0,s.kt)("span",{parentName:"span",className:"mord"},"3"),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,s.kt)("span",{parentName:"span",className:"mbin"},"\xd7"),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}})),(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"0.7278em",verticalAlign:"-0.0833em"}}),(0,s.kt)("span",{parentName:"span",className:"mord"},"3"),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,s.kt)("span",{parentName:"span",className:"mbin"},"\xd7"),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}})),(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"0.7278em",verticalAlign:"-0.0833em"}}),(0,s.kt)("span",{parentName:"span",className:"mord"},"\xd7"),(0,s.kt)("span",{parentName:"span",className:"mord"},"3"),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,s.kt)("span",{parentName:"span",className:"mrel"},"="),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6444em"}}),(0,s.kt)("span",{parentName:"span",className:"mord"},"27")),(0,s.kt)("span",{parentName:"span",className:"tag"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,s.kt)("span",{parentName:"span",className:"mord text"},(0,s.kt)("span",{parentName:"span",className:"mord"},"("),(0,s.kt)("span",{parentName:"span",className:"mord"},(0,s.kt)("span",{parentName:"span",className:"mord"},"2")),(0,s.kt)("span",{parentName:"span",className:"mord"},")"))))))),(0,s.kt)("p",null,"\u4ee3\u7801\u5b9e\u73b0\u4e5f\u8f83\u4e3a\u7b80\u5355\uff0c\u53ea\u9700\u4ee4Conv2d\u7684\u8f93\u51fa\u901a\u9053\u4e0e\u8f93\u5165\u901a\u9053\u76f8\u540c\u5373\u53ef"),(0,s.kt)("h3",{id:"2\u9010\u70b9\u5377\u79ef-pointwise-convolution"},"\uff082\uff09\u9010\u70b9\u5377\u79ef-Pointwise Convolution"),(0,s.kt)("p",null,(0,s.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/windows_typora/v2-2cdae9b3ad2f1d07e2c738331dac6d8b_r.jpg",alt:"img"})),(0,s.kt)("p",null,"\u4f7f\u7528",(0,s.kt)("span",{parentName:"p",className:"math math-inline"},(0,s.kt)("span",{parentName:"span",className:"katex"},(0,s.kt)("span",{parentName:"span",className:"katex-mathml"},(0,s.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,s.kt)("semantics",{parentName:"math"},(0,s.kt)("mrow",{parentName:"semantics"},(0,s.kt)("mn",{parentName:"mrow"},"1"),(0,s.kt)("mo",{parentName:"mrow"},"\xd7"),(0,s.kt)("mn",{parentName:"mrow"},"1")),(0,s.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"1 \\times 1")))),(0,s.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"0.7278em",verticalAlign:"-0.0833em"}}),(0,s.kt)("span",{parentName:"span",className:"mord"},"1"),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,s.kt)("span",{parentName:"span",className:"mbin"},"\xd7"),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}})),(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6444em"}}),(0,s.kt)("span",{parentName:"span",className:"mord"},"1"))))),"\u5377\u79ef\u6838\uff0c\u6bcf\u4e2afilter\u5bf9\u4e0a\u4e00\u6b65\u7684feature map\u5728\u6df1\u5ea6\u65b9\u5411\u8fdb\u884c\u4e00\u6b21\u52a0\u6743\u7ec4\u5408\uff0c\u53c2\u6570\u91cf\u4e3a"),(0,s.kt)("div",{className:"math math-display"},(0,s.kt)("span",{parentName:"div",className:"katex-display"},(0,s.kt)("span",{parentName:"span",className:"katex"},(0,s.kt)("span",{parentName:"span",className:"katex-mathml"},(0,s.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,s.kt)("semantics",{parentName:"math"},(0,s.kt)("mtable",{parentName:"semantics",width:"100%"},(0,s.kt)("mtr",{parentName:"mtable"},(0,s.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,s.kt)("mtd",{parentName:"mtr"},(0,s.kt)("mrow",{parentName:"mtd"},(0,s.kt)("mn",{parentName:"mrow"},"1"),(0,s.kt)("mo",{parentName:"mrow"},"\xd7"),(0,s.kt)("mn",{parentName:"mrow"},"1"),(0,s.kt)("mo",{parentName:"mrow"},"\xd7"),(0,s.kt)("mn",{parentName:"mrow"},"3"),(0,s.kt)("mo",{parentName:"mrow"},"\xd7"),(0,s.kt)("mn",{parentName:"mrow"},"4"),(0,s.kt)("mo",{parentName:"mrow"},"="),(0,s.kt)("mn",{parentName:"mrow"},"12"))),(0,s.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,s.kt)("mtd",{parentName:"mtr"},(0,s.kt)("mtext",{parentName:"mtd"},"(3)")))),(0,s.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"1 \\times 1 \\times 3 \\times 4 = 12 \\tag{3}")))),(0,s.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"0.7278em",verticalAlign:"-0.0833em"}}),(0,s.kt)("span",{parentName:"span",className:"mord"},"1"),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,s.kt)("span",{parentName:"span",className:"mbin"},"\xd7"),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}})),(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"0.7278em",verticalAlign:"-0.0833em"}}),(0,s.kt)("span",{parentName:"span",className:"mord"},"1"),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,s.kt)("span",{parentName:"span",className:"mbin"},"\xd7"),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}})),(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"0.7278em",verticalAlign:"-0.0833em"}}),(0,s.kt)("span",{parentName:"span",className:"mord"},"3"),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,s.kt)("span",{parentName:"span",className:"mbin"},"\xd7"),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}})),(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6444em"}}),(0,s.kt)("span",{parentName:"span",className:"mord"},"4"),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,s.kt)("span",{parentName:"span",className:"mrel"},"="),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6444em"}}),(0,s.kt)("span",{parentName:"span",className:"mord"},"12")),(0,s.kt)("span",{parentName:"span",className:"tag"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,s.kt)("span",{parentName:"span",className:"mord text"},(0,s.kt)("span",{parentName:"span",className:"mord"},"("),(0,s.kt)("span",{parentName:"span",className:"mord"},(0,s.kt)("span",{parentName:"span",className:"mord"},"3")),(0,s.kt)("span",{parentName:"span",className:"mord"},")"))))))),(0,s.kt)("admonition",{type:"tip"},(0,s.kt)("p",{parentName:"admonition"},"\u56fe\u7247\u6e90\u81ea",(0,s.kt)("a",{parentName:"p",href:"https://zhuanlan.zhihu.com/p/92134485"},"\u77e5\u4e4e"))))}k.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/67605ec9.482a2f1e.js b/assets/js/67605ec9.482a2f1e.js new file mode 100644 index 000000000..dce88f14f --- /dev/null +++ b/assets/js/67605ec9.482a2f1e.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunknpy_notebook=self.webpackChunknpy_notebook||[]).push([[3311],{3905:(a,e,t)=>{t.d(e,{Zo:()=>N,kt:()=>g});var n=t(7294);function s(a,e,t){return e in a?Object.defineProperty(a,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):a[e]=t,a}function m(a,e){var t=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable}))),t.push.apply(t,n)}return t}function p(a){for(var e=1;e=0||(s[t]=a[t]);return s}(a,e);if(Object.getOwnPropertySymbols){var m=Object.getOwnPropertySymbols(a);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(a,t)&&(s[t]=a[t])}return s}var i=n.createContext({}),l=function(a){var e=n.useContext(i),t=e;return a&&(t="function"==typeof a?a(e):p(p({},e),a)),t},N=function(a){var e=l(a.components);return n.createElement(i.Provider,{value:e},a.children)},o="mdxType",c={inlineCode:"code",wrapper:function(a){var e=a.children;return n.createElement(n.Fragment,{},e)}},k=n.forwardRef((function(a,e){var t=a.components,s=a.mdxType,m=a.originalType,i=a.parentName,N=r(a,["components","mdxType","originalType","parentName"]),o=l(t),k=s,g=o["".concat(i,".").concat(k)]||o[k]||c[k]||m;return t?n.createElement(g,p(p({ref:e},N),{},{components:t})):n.createElement(g,p({ref:e},N))}));function g(a,e){var t=arguments,s=e&&e.mdxType;if("string"==typeof a||s){var m=t.length,p=new Array(m);p[0]=k;var r={};for(var i in e)hasOwnProperty.call(e,i)&&(r[i]=e[i]);r.originalType=a,r[o]="string"==typeof a?a:s,p[1]=r;for(var l=2;l{t.r(e),t.d(e,{assets:()=>i,contentTitle:()=>p,default:()=>c,frontMatter:()=>m,metadata:()=>r,toc:()=>l});var n=t(7462),s=(t(7294),t(3905));const m={},p="\u56fe\u50cf\u751f\u6210\u6a21\u578b",r={unversionedId:"Deep-Learning/\u5927\u6a21\u578b/Image-Generation-Models",id:"Deep-Learning/\u5927\u6a21\u578b/Image-Generation-Models",title:"\u56fe\u50cf\u751f\u6210\u6a21\u578b",description:"\u56de\u987e\u6587\u5b57\u751f\u6210\u7684\u4e24\u79cd\u65b9\u6cd5",source:"@site/docs/Deep-Learning/5-\u5927\u6a21\u578b/4-Image-Generation-Models.md",sourceDirName:"Deep-Learning/5-\u5927\u6a21\u578b",slug:"/Deep-Learning/\u5927\u6a21\u578b/Image-Generation-Models",permalink:"/docs/Deep-Learning/\u5927\u6a21\u578b/Image-Generation-Models",draft:!1,tags:[],version:"current",sidebarPosition:4,frontMatter:{},sidebar:"deep_learning",previous:{title:"\u81ea\u76d1\u7763\u5b66\u4e60\uff08Self-Supervised Learning\uff09",permalink:"/docs/Deep-Learning/\u5927\u6a21\u578b/Self-Supervised-Learning"},next:{title:"\u751f\u6210\u5f0f\u5bf9\u6297\u7f51\u7edc\uff08GAN\uff09",permalink:"/docs/Deep-Learning/\u5927\u6a21\u578b/GAN"}},i={},l=[{value:"\u56de\u987e\u6587\u5b57\u751f\u6210\u7684\u4e24\u79cd\u65b9\u6cd5",id:"\u56de\u987e\u6587\u5b57\u751f\u6210\u7684\u4e24\u79cd\u65b9\u6cd5",level:2},{value:"\u81ea\u56de\u5f52\u65b9\u6cd5\uff08AR\uff09",id:"\u81ea\u56de\u5f52\u65b9\u6cd5ar",level:3},{value:"\u975e\u81ea\u56de\u5f52\u65b9\u6cd5\uff08NAR\uff09",id:"\u975e\u81ea\u56de\u5f52\u65b9\u6cd5nar",level:3},{value:"\u76ee\u524d\u56fe\u50cf\u751f\u6210\u6a21\u578b\u7684\u5171\u540c\u70b9",id:"\u76ee\u524d\u56fe\u50cf\u751f\u6210\u6a21\u578b\u7684\u5171\u540c\u70b9",level:3},{value:"\u751f\u6210\u6a21\u578b\u7684\u5171\u540c\u7ed3\u6784",id:"\u751f\u6210\u6a21\u578b\u7684\u5171\u540c\u7ed3\u6784",level:2},{value:"\u901a\u7528\u6846\u67b6\u6982\u89c8",id:"\u901a\u7528\u6846\u67b6\u6982\u89c8",level:3},{value:"Benchmark",id:"benchmark",level:3},{value:"FID\uff08Fr\xe9chet Inception Distance\uff09",id:"fidfr\xe9chet-inception-distance",level:4},{value:"CLIP Score",id:"clip-score",level:4},{value:"\u901a\u7528\u6846\u67b6\u89e3\u6790",id:"\u901a\u7528\u6846\u67b6\u89e3\u6790",level:3},{value:"Generation Model",id:"generation-model",level:4},{value:"\u4e2d\u95f4\u4ea7\u7269\u662f\u538b\u7f29\u56fe\u50cf",id:"\u4e2d\u95f4\u4ea7\u7269\u662f\u538b\u7f29\u56fe\u50cf",level:5},{value:"\u4e2d\u95f4\u4ea7\u7269\u662fLatent Representation",id:"\u4e2d\u95f4\u4ea7\u7269\u662flatent-representation",level:5},{value:"Decoder",id:"decoder",level:4},{value:"\u4e2d\u95f4\u4ea7\u7269\u662f\u538b\u7f29\u56fe\u50cf",id:"\u4e2d\u95f4\u4ea7\u7269\u662f\u538b\u7f29\u56fe\u50cf-1",level:5},{value:"\u4e2d\u95f4\u4ea7\u7269\u662fLatent Representation",id:"\u4e2d\u95f4\u4ea7\u7269\u662flatent-representation-1",level:5},{value:"\u5e38\u89c1\u56fe\u50cf\u751f\u6210\u6a21\u578b\u901f\u89c8",id:"\u5e38\u89c1\u56fe\u50cf\u751f\u6210\u6a21\u578b\u901f\u89c8",level:2},{value:"\u53d8\u5206\u81ea\u7f16\u7801\u5668\uff08VAE\uff09",id:"\u53d8\u5206\u81ea\u7f16\u7801\u5668vae",level:3},{value:"\u57fa\u4e8e\u6d41\u7684\u751f\u6210\u6a21\u578b\uff08Flow-Based Generative Model\uff09",id:"\u57fa\u4e8e\u6d41\u7684\u751f\u6210\u6a21\u578bflow-based-generative-model",level:3},{value:"\u751f\u6210\u5bf9\u6297\u7f51\u7edc\uff08GAN\uff09",id:"\u751f\u6210\u5bf9\u6297\u7f51\u7edcgan",level:3},{value:"\u6269\u6563\u6a21\u578b\uff08Diffusion Model\uff09",id:"\u6269\u6563\u6a21\u578bdiffusion-model",level:3}],N={toc:l},o="wrapper";function c(a){let{components:e,...t}=a;return(0,s.kt)(o,(0,n.Z)({},N,t,{components:e,mdxType:"MDXLayout"}),(0,s.kt)("h1",{id:"\u56fe\u50cf\u751f\u6210\u6a21\u578b"},"\u56fe\u50cf\u751f\u6210\u6a21\u578b"),(0,s.kt)("h2",{id:"\u56de\u987e\u6587\u5b57\u751f\u6210\u7684\u4e24\u79cd\u65b9\u6cd5"},"\u56de\u987e\u6587\u5b57\u751f\u6210\u7684\u4e24\u79cd\u65b9\u6cd5"),(0,s.kt)("p",null,"\u5728\u6587\u5b57\u751f\u6210\u6a21\u578b\u4e2d\u6839\u636e\u6a21\u578b\u7684\u8f93\u5165\u662f\u5426\u4e0e\u524d\u4e00\u65f6\u523b\u7684\u8f93\u51fa\u6709\u5173\u53ef\u4ee5\u5206\u4e3a\u81ea\u56de\u5f52AR\u6a21\u578b\u4e0e\u975e\u81ea\u56de\u5f52NAR\u6a21\u578b\u4e24\u79cd\uff0c\u8fd9\u4e24\u79cd\u751f\u6210\u65b9\u5f0f\u7684\u5229\u4e0e\u5f0a\u5728\u56fe\u50cf\u751f\u6210\u4e2d\u4ecd\u7136\u5b58\u5728\u3002"),(0,s.kt)("h3",{id:"\u81ea\u56de\u5f52\u65b9\u6cd5ar"},"\u81ea\u56de\u5f52\u65b9\u6cd5\uff08AR\uff09"),(0,s.kt)("p",null,"Transformer-based\u7684\u6587\u5b57\u751f\u6210\u6a21\u578b\u6709\u5f88\u591a\uff0c\u5982GPT\u6a21\u578b\uff0c\u5927\u591a\u4f7f\u7528\u81ea\u56de\u5f52\uff08Autoregressive, abbr. AR\uff09\u7684\u65b9\u6cd5\u9010token\u751f\u6210\u3002"),(0,s.kt)("admonition",{title:"\u4ec0\u4e48\u662fARM",type:"tip"},(0,s.kt)("p",{parentName:"admonition"},"ARM\uff08Autoregressive Model\uff0c\u81ea\u56de\u5f52\u6a21\u578b\uff09\u662f\u4e00\u7c7b\u7528\u4e8e\u5efa\u6a21\u65f6\u95f4\u5e8f\u5217\u6570\u636e\u7684\u7edf\u8ba1\u6a21\u578b\uff0c\u5176\u4e2d\u5f53\u524d\u65f6\u523b\u7684\u89c2\u6d4b\u503c\u88ab\u8ba4\u4e3a\u662f\u8fc7\u53bb\u65f6\u523b\u89c2\u6d4b\u503c\u7684\u7ebf\u6027\u7ec4\u5408\uff0c\u52a0\u4e0a\u4e00\u4e2a\u968f\u673a\u8bef\u5dee\u9879\u3002\u8fd9\u7c7b\u6a21\u578b\u7684\u6838\u5fc3\u601d\u60f3\u662f\uff0c\u5f53\u524d\u65f6\u523b\u7684\u6570\u636e\u4f9d\u8d56\u4e8e\u5148\u524d\u65f6\u523b\u7684\u6570\u636e\u3002")),(0,s.kt)("p",null,(0,s.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_imagesimage-20231125212727371.png",alt:"image-20231125212727371"})),(0,s.kt)("p",null,"\u82e5\u628a\u6587\u5b57\u751f\u6210\u7684AR\u65b9\u6cd5\u5bf9\u5e94\u5230\u56fe\u50cf\u751f\u6210\u4e2d\u7684\u4f7f\u7528\uff0c\u5373\u4e00\u4e2a\u4e00\u4e2a\u50cf\u7d20\u751f\u6210\u56fe\u50cf\u3002\u7531\u4e8e\u5f53\u524d\u5bf9\u9ad8\u6e05\u56fe\u50cf\u50cf\u7d20\u7684\u9700\u6c42\u8d8a\u6765\u8d8a\u9ad8\uff0c\u81ea\u56de\u5f52\u7684\u751f\u6210\u65b9\u5f0f\u5bfc\u81f4\u901f\u5ea6\u975e\u5e38\u7f13\u6162\uff0c\u4f46\u4f18\u70b9\u662f\u540e\u9762\u751f\u6210\u7684\u6bcf\u4e00\u4e2a\u50cf\u7d20\u90fd\u8003\u8651\u4e86\u4e4b\u524d\u7684\u6240\u6709\u50cf\u7d20\uff0c\u4ece\u800c\u4f7f\u751f\u6210\u7684\u56fe\u50cf\u66f4\u6e05\u6670\u3001\u66f4\u7ec6\u817b\u3001\u66f4\u52a0\u7b26\u5408\u9884\u671f\u3002"),(0,s.kt)("h3",{id:"\u975e\u81ea\u56de\u5f52\u65b9\u6cd5nar"},"\u975e\u81ea\u56de\u5f52\u65b9\u6cd5\uff08NAR\uff09"),(0,s.kt)("p",null,"\u82e5\u4f7f\u7528NAR\u975e\u81ea\u56de\u5f52\u7684\u65b9\u6cd5\u4e00\u6b21\u751f\u6210\u6240\u6709\u50cf\u7d20\uff0c\u5404\u50cf\u7d20\u5728\u751f\u6210\u65f6\u65e0\u6cd5\u8003\u8651\u4e4b\u95f4\u7684\u8bed\u4e49\u4fe1\u606f\uff0c\u751f\u6210\u7684\u56fe\u50cf\u8d28\u91cf\u666e\u904d\u4f4e\u4e8e\u81ea\u56de\u5f52\u65b9\u6cd5\u751f\u6210\u7684\u56fe\u50cf\u3002"),(0,s.kt)("p",null,(0,s.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_imagesimage-20231127103421435.png",alt:"image-20231127103421435"})),(0,s.kt)("h3",{id:"\u76ee\u524d\u56fe\u50cf\u751f\u6210\u6a21\u578b\u7684\u5171\u540c\u70b9"},"\u76ee\u524d\u56fe\u50cf\u751f\u6210\u6a21\u578b\u7684\u5171\u540c\u70b9"),(0,s.kt)("p",null,"VAE\u3001GAN\u4ee5\u53caDiffusion Model\u7b49\u751f\u6210\u6a21\u578b\uff0c\u90fd\u4e0d\u53ea\u662f\u5355\u72ec\u4f7f\u7528\u6587\u5b57\u4f5c\u4e3a\u8f93\u5165\u6765\u751f\u6210\u56fe\u50cf\uff0c\u800c\u662f\u4f7f\u7528\u4e86",(0,s.kt)("strong",{parentName:"p"},"\u4ece\u5df2\u77e5\u7684\u968f\u673a\u5206\u5e03\uff08e.g. Normal Distribution\uff09\u4e2dsample\u51fa\u5411\u91cf\u4f5c\u4e3a\u6a21\u578b\u989d\u5916\u8f93\u5165"),"\u7684\u65b9\u6cd5\u3002"),(0,s.kt)("p",null,"\u5927\u81f4\u7684\u601d\u60f3\u5982\u4e0b\u56fe\u6240\u793a\uff0c\u7531\u4e8e",(0,s.kt)("strong",{parentName:"p"},"\u671f\u5f85\u751f\u6210\u7684\u56fe\u50cf\u5e76\u4e0d\u662f\u56fa\u5b9a\u7684"),"\uff0c\u53ef\u4ee5\u5c06\u9884\u671f\u8f93\u51fa\u770b\u4f5c\u662f\u4e00\u4e2a\u5206\u5e03\uff0c\u5373",(0,s.kt)("span",{parentName:"p",className:"math math-inline"},(0,s.kt)("span",{parentName:"span",className:"katex"},(0,s.kt)("span",{parentName:"span",className:"katex-mathml"},(0,s.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,s.kt)("semantics",{parentName:"math"},(0,s.kt)("mrow",{parentName:"semantics"},(0,s.kt)("mi",{parentName:"mrow"},"P"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,s.kt)("mi",{parentName:"mrow"},"x"),(0,s.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"\u2223"),(0,s.kt)("mi",{parentName:"mrow"},"y"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,s.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"P(x|y)")))),(0,s.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"P"),(0,s.kt)("span",{parentName:"span",className:"mopen"},"("),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal"},"x"),(0,s.kt)("span",{parentName:"span",className:"mord"},"\u2223"),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"y"),(0,s.kt)("span",{parentName:"span",className:"mclose"},")"))))),"\uff0c\u800c\u56fe\u50cf\u751f\u6210\u6a21\u578b\u9700\u8981\u5b8c\u6210\u7684\u4efb\u52a1\u5c31\u662f\u5c06\u8f93\u5165\u7684\u4ece\u67d0\u4e00\u968f\u673a\u5206\u5e03\u4e2dsample\u51fa\u7684\u5411\u91cf\u5bf9\u5e94\u5230\u56fe\u50cf\u9884\u671f\u8f93\u51fa\u5206\u5e03\u4e2d\u7684\u67d0\u4e00\u4e2a\u56fe\u50cf\u3002"),(0,s.kt)("admonition",{type:"important"},(0,s.kt)("p",{parentName:"admonition"},"\u603b\u7ed3\uff1a\u7531\u4e8e\u6839\u636e\u6587\u5b57prompt\u671f\u5f85\u751f\u6210\u7684\u56fe\u50cf\u5e76\u4e0d\u662f\u56fa\u5b9a\u7684\uff0c\u53ef\u4ee5\u8ba4\u4e3a\u751f\u6210\u7684\u56fe\u7247\u5728\u76ee\u6807\u57df\uff08Target Domain\uff09\u7b26\u5408\u67d0\u79cd\u5206\u5e03\u3002\u56e0\u6b64\u76ee\u524d\u7684SOTA\u6a21\u578b\u9664\u4e86\u5c06\u6587\u5b57Prompt\u4f5c\u4e3a\u8f93\u5165\uff0c\u8fd8\u4ece\u67d0\u968f\u673a\u5206\u5e03\u4e2dsample\u51fa\u56fe\u7247shape\u7684\u968f\u673a\u5411\u91cf\uff08\u77e9\u9635\uff09\u4f5c\u4e3a\u8f93\u5165\uff0c\u671f\u5f85\u6a21\u578b\u6839\u636eprompt\u5c06\u6e90\u57df\uff08Source Domain\uff09\u8f93\u5165\u7684\u968f\u673a\u5411\u91cf\u6620\u5c04\u5230\u76ee\u6807\u57df\u7684\u5206\u5e03\uff0c\u751f\u6210\u5bf9\u5e94\u7684\u56fe\u7247\u3002")),(0,s.kt)("p",null,(0,s.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_imagesimage-20231127104041455.png",alt:"image-20231127104041455"})),(0,s.kt)("h2",{id:"\u751f\u6210\u6a21\u578b\u7684\u5171\u540c\u7ed3\u6784"},"\u751f\u6210\u6a21\u578b\u7684\u5171\u540c\u7ed3\u6784"),(0,s.kt)("p",null,"Stable Diffusion\u662f\u76ee\u524d\u56fe\u50cf\u751f\u6210\u7684SOTA\u6a21\u578b\u4e4b\u4e00\uff0c\u5728\u672c\u7ae0\u4e2d\u6211\u4eec\u5feb\u901f\u7684\u4e86\u89e3\u4e00\u4e0bStable Diffusion\u7684\u5927\u81f4\u6846\u67b6\u4ee5\u53ca\u539f\u7406\u3002"),(0,s.kt)("h3",{id:"\u901a\u7528\u6846\u67b6\u6982\u89c8"},"\u901a\u7528\u6846\u67b6\u6982\u89c8"),(0,s.kt)("p",null,"\u76ee\u524d\uff0c\u5982Stable Diffusion\u7b49SOTA\u56fe\u50cf\u751f\u6210\u6a21\u578b\u90fd\u5177\u5907\u4ee5\u4e0b\u6240\u793a\u7684\u4e09\u4e2a\u6a21\u5757\uff0c\u901a\u5e38\u60c5\u51b5\u4e0b\u8fd9\u4e09\u4e2a\u6a21\u5757\u5206\u5f00\u8bad\u7ec3\uff0c\u6700\u7ec8\u901a\u8fc7\u7279\u6b8a\u7684\u903b\u8f91\u548c\u89c4\u5219\u7ec4\u5408\u5728\u4e00\u8d77\u3002"),(0,s.kt)("ul",null,(0,s.kt)("li",{parentName:"ul"},"Text Encoder\uff1a\u6839\u636e\u8f93\u5165\u7684text prompt\u8fdb\u884c\u5d4c\u5165\u8868\u793a"),(0,s.kt)("li",{parentName:"ul"},"Generation Model\uff1a\u63a5\u53d7Text Encoder\u8f93\u51fa\u7684prompt\u8868\u793a\u4ee5\u53ca\u4ece\u968f\u673a\u5206\u5e03sample\u51fa\u7684\u56fe\u50cf\u5927\u5c0f\u7684\u5411\u91cf\uff0c\u5f97\u5230\u201c\u4e2d\u95f4\u4ea7\u7269\u201d\uff0c\u4e2d\u95f4\u4ea7\u7269\u6709\u4ee5\u4e0b\u4e24\u79cd\u60c5\u51b5\uff1a",(0,s.kt)("ol",{parentName:"li"},(0,s.kt)("li",{parentName:"ol"},(0,s.kt)("strong",{parentName:"li"},"\u5177\u6709\u89c6\u89c9\u610f\u4e49\u4f46\u7ecf\u8fc7\u538b\u7f29\u6bd4\u8f83\u6a21\u7cca\u7684\u56fe\u50cf")),(0,s.kt)("li",{parentName:"ol"},(0,s.kt)("strong",{parentName:"li"},"\u4e0d\u5177\u5907\u89c6\u89c9\u7279\u5f81\u7684\u77e9\u9635\uff08Latent Representation\uff09")))),(0,s.kt)("li",{parentName:"ul"},"Decoder\uff1a\u4ee5\u4e0a\u8ff0\u7684\u201c\u4e2d\u95f4\u4ea7\u7269\u201d\u4f5c\u4e3a\u8f93\u5165\uff0c\u751f\u6210\u51fa\u9ad8\u6e05\u56fe\u50cf")),(0,s.kt)("p",null,"\u901a\u7528\u6846\u67b6\u7684\u4e09\u4e2a\u7ec4\u6210\u90e8\u5206\u5982\u4e0b\u56fe\u6240\u793a\uff1a"),(0,s.kt)("p",null,(0,s.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_imagesimage-20231127173905238.png",alt:"image-20231127173905238"})),(0,s.kt)("p",null,"\u518d\u9644\u4e0aStable Diffusion\u3001DALL-E\u7cfb\u5217\u4ee5\u53caGoogle\u7684Imagen\u7684\u7ed3\u6784\u8bf4\u660e\u3002"),(0,s.kt)("p",null,"\u5176\u4e2dImagen\u5c06\u538b\u7f29\u7248\u672c\u7684\u56fe\u7247\u4f5c\u4e3aGeneration Model\u7684\u4e2d\u95f4\u4ea7\u7269\uff0cStable Diffusion\u4ee5\u53caDALL-E\u5c06Latent Representation\u4f5c\u4e3a\u4e2d\u95f4\u4ea7\u7269\u3002"),(0,s.kt)("p",null,(0,s.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_imagesimage-20231127195336960.png",alt:"image-20231127195336960"})),(0,s.kt)("p",null,(0,s.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_imagesimage-20231127195527792.png",alt:"image-20231127195527792"})),(0,s.kt)("p",null,(0,s.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_imagesimage-20231127200044147.png",alt:"img"})),(0,s.kt)("p",null,"\u6839\u636eImagen\u7684\u5b9e\u9a8c\u7ed3\u679c\uff0c\u76f8\u5bf9\u4e8eDecoder\u5373Diffusion Model\u7684\u6a21\u578b\u5927\u5c0f\uff0cText Encoder\u7684\u6a21\u578b\u5927\u5c0f\u5bf9\u56fe\u50cf\u751f\u6210\u6a21\u578b\u7684\u5f71\u54cd\u662f\u975e\u5e38\u5927\u7684\u3002Text Encoder\u53ef\u4ee5\u5e2e\u52a9\u6a21\u578b\u7406\u89e3prompt\u4e2d\u5728\u8bad\u7ec3\u8d44\u6599\u7684\u6587\u5b57-\u56fe\u50cf\u5bf9\u4e2d\u6ca1\u6709\u51fa\u73b0\u7684\u65b0\u7684\u8bcd\u6c47\uff0c\u4ece\u800c\u63d0\u9ad8\u56fe\u50cf\u751f\u6210\u7684\u8868\u73b0\u3002"),(0,s.kt)("blockquote",null,(0,s.kt)("p",{parentName:"blockquote"},"Scaling text encoder size is more important than U-Net size. While scaling the size of the diffusion model U-Net improves sample quality, we found scaling the text encoder size to be significantly more impactful than the U-Net size."),(0,s.kt)("p",{parentName:"blockquote"},(0,s.kt)("a",{parentName:"p",href:"https://arxiv.org/pdf/2205.11487.pdf"},"Photorealistic Text-to-Image Diffusion Models with Deep Language Understanding"))),(0,s.kt)("p",null,(0,s.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_imagesimage-20231127201338956.png",alt:"image-20231127201338956"})),(0,s.kt)("h3",{id:"benchmark"},"Benchmark"),(0,s.kt)("p",null,"\u4e0b\u9762\u4ecb\u7ecd\u4e24\u79cd\u7528\u4e8e\u8bc4\u4f30\u56fe\u50cf\u751f\u6210\u6a21\u578b\u7684\u5e38\u7528Benchmark\uff1aFID\u4e0eCLIP Score\u3002"),(0,s.kt)("h4",{id:"fidfr\xe9chet-inception-distance"},"FID\uff08Fr\xe9chet Inception Distance\uff09"),(0,s.kt)("p",null,"FID\u63d0\u4f9b\u4e00\u4e2aPre-trained\u7684CNN\uff0c\u8be5CNN\u901a\u5e38\u4f7f\u7528\u9884\u8bad\u7ec3\u7684Inception v3\u6a21\u578b\u3002\u5728\u8ba1\u7b97FID\u65f6\uff0c\u751f\u6210\u56fe\u50cf\u548c\u771f\u5b9e\u56fe\u50cf\u5206\u522b\u8f93\u5165\u5230\u9884\u8bad\u7ec3\u7684CNN\u4e2d\uff0c\u63d0\u53d6\u51fa\u5404\u81ea\u7684\u7279\u5f81\u8868\u793a\u5411\u91cf\uff08Representation\uff09\u3002\u8fd9\u4e24\u4e2aRepresentation\u8d8a\u63a5\u8fd1\uff0c\u4ee3\u8868\u8f93\u51fa\u7684\u56fe\u50cf\u8d8a\u50cf\u9884\u671f\u7684\u201c\u771f\u5b9e\u201d\u56fe\u7247\u3002"),(0,s.kt)("p",null,"\u5728FID\u4e2d\uff0c\u505a\u51fa\u4e86\u5982\u4e0b\u91cd\u8981\u7684\u5047\u8bbe\uff1a",(0,s.kt)("strong",{parentName:"p"},"\u5c06\u751f\u6210\u7684\u56fe\u50cf\u771f\u5b9e\u7684\u56fe\u50cf\u7ecf\u8fc7CNN\u8f93\u51fa\u7684Representation\u770b\u4f5c\u662fsample\u81ea\u4e24\u4e2a\u9ad8\u65af\u5206\u5e03\u7684\u968f\u673a\u53d8\u91cf"),"\u3002\u7136\u540e\uff0c\u901a\u8fc7\u8ba1\u7b97\u4e24\u4e2a\u7279\u5f81\u5411\u91cf\u7684\u5747\u503c\u548c\u534f\u65b9\u5dee\u77e9\u9635\u6765\u5f97\u5230\u4e24\u4e2a\u9ad8\u65af\u5206\u5e03\u7684\u53c2\u6570\u3002\u6700\u540e\uff0c\u5229\u7528\u4e24\u4e2a\u9ad8\u65af\u5206\u5e03\u4e4b\u95f4\u7684Fr\xe9chet\u8ddd\u79bb\u6765\u8861\u91cf\u751f\u6210\u56fe\u50cf\u4e0e\u771f\u5b9e\u56fe\u50cf\u4e4b\u95f4\u7684\u5dee\u5f02\u3002"),(0,s.kt)("div",{className:"math math-display"},(0,s.kt)("span",{parentName:"div",className:"katex-display"},(0,s.kt)("span",{parentName:"span",className:"katex"},(0,s.kt)("span",{parentName:"span",className:"katex-mathml"},(0,s.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,s.kt)("semantics",{parentName:"math"},(0,s.kt)("mtable",{parentName:"semantics",width:"100%"},(0,s.kt)("mtr",{parentName:"mtable"},(0,s.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,s.kt)("mtd",{parentName:"mtr"},(0,s.kt)("mrow",{parentName:"mtd"},(0,s.kt)("mrow",{parentName:"mrow"},(0,s.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"F"),(0,s.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"I"),(0,s.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"D")),(0,s.kt)("mo",{parentName:"mrow"},"="),(0,s.kt)("msubsup",{parentName:"mrow"},(0,s.kt)("mrow",{parentName:"msubsup"},(0,s.kt)("mo",{parentName:"mrow",fence:"true"},"\u2225"),(0,s.kt)("msub",{parentName:"mrow"},(0,s.kt)("mi",{parentName:"msub"},"\u03bc"),(0,s.kt)("mn",{parentName:"msub"},"1")),(0,s.kt)("mo",{parentName:"mrow"},"\u2212"),(0,s.kt)("msub",{parentName:"mrow"},(0,s.kt)("mi",{parentName:"msub"},"\u03bc"),(0,s.kt)("mn",{parentName:"msub"},"2")),(0,s.kt)("mo",{parentName:"mrow",fence:"true"},"\u2225")),(0,s.kt)("mn",{parentName:"msubsup"},"2"),(0,s.kt)("mn",{parentName:"msubsup"},"2")),(0,s.kt)("mo",{parentName:"mrow"},"+"),(0,s.kt)("mrow",{parentName:"mrow"},(0,s.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"t"),(0,s.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"r")),(0,s.kt)("mrow",{parentName:"mrow"},(0,s.kt)("mo",{parentName:"mrow",fence:"true"},"("),(0,s.kt)("msub",{parentName:"mrow"},(0,s.kt)("mi",{parentName:"msub",mathvariant:"normal"},"\u03a3"),(0,s.kt)("mn",{parentName:"msub"},"1")),(0,s.kt)("mo",{parentName:"mrow"},"+"),(0,s.kt)("msub",{parentName:"mrow"},(0,s.kt)("mi",{parentName:"msub",mathvariant:"normal"},"\u03a3"),(0,s.kt)("mn",{parentName:"msub"},"2")),(0,s.kt)("mo",{parentName:"mrow"},"\u2212"),(0,s.kt)("mn",{parentName:"mrow"},"2"),(0,s.kt)("msup",{parentName:"mrow"},(0,s.kt)("mrow",{parentName:"msup"},(0,s.kt)("mo",{parentName:"mrow",fence:"true"},"("),(0,s.kt)("msub",{parentName:"mrow"},(0,s.kt)("mi",{parentName:"msub",mathvariant:"normal"},"\u03a3"),(0,s.kt)("mn",{parentName:"msub"},"1")),(0,s.kt)("msub",{parentName:"mrow"},(0,s.kt)("mi",{parentName:"msub",mathvariant:"normal"},"\u03a3"),(0,s.kt)("mn",{parentName:"msub"},"2")),(0,s.kt)("mo",{parentName:"mrow",fence:"true"},")")),(0,s.kt)("mfrac",{parentName:"msup"},(0,s.kt)("mn",{parentName:"mfrac"},"1"),(0,s.kt)("mn",{parentName:"mfrac"},"2"))),(0,s.kt)("mo",{parentName:"mrow",fence:"true"},")")))),(0,s.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,s.kt)("mtd",{parentName:"mtr"},(0,s.kt)("mtext",{parentName:"mtd"},"(1)")))),(0,s.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"\\mathrm{FID}=\\left\\|\\mu_1-\\mu_2\\right\\|_2^2+\\mathrm{tr}\\left(\\Sigma_1+\\Sigma_2-2\\left(\\Sigma_1\\Sigma_2\\right)^{\\frac12}\\right)\\tag{1}")))),(0,s.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6833em"}}),(0,s.kt)("span",{parentName:"span",className:"mord"},(0,s.kt)("span",{parentName:"span",className:"mord mathrm"},"FID")),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,s.kt)("span",{parentName:"span",className:"mrel"},"="),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"1.2537em",verticalAlign:"-0.2997em"}}),(0,s.kt)("span",{parentName:"span",className:"minner"},(0,s.kt)("span",{parentName:"span",className:"minner"},(0,s.kt)("span",{parentName:"span",className:"mopen delimcenter",style:{top:"0em"}},"\u2225"),(0,s.kt)("span",{parentName:"span",className:"mord"},(0,s.kt)("span",{parentName:"span",className:"mord mathnormal"},"\u03bc"),(0,s.kt)("span",{parentName:"span",className:"msupsub"},(0,s.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,s.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,s.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,s.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,s.kt)("span",{parentName:"span",className:"mord mtight"},"1")))),(0,s.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,s.kt)("span",{parentName:"span"})))))),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,s.kt)("span",{parentName:"span",className:"mbin"},"\u2212"),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,s.kt)("span",{parentName:"span",className:"mord"},(0,s.kt)("span",{parentName:"span",className:"mord mathnormal"},"\u03bc"),(0,s.kt)("span",{parentName:"span",className:"msupsub"},(0,s.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,s.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,s.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,s.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,s.kt)("span",{parentName:"span",className:"mord mtight"},"2")))),(0,s.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,s.kt)("span",{parentName:"span"})))))),(0,s.kt)("span",{parentName:"span",className:"mclose delimcenter",style:{top:"0em"}},"\u2225")),(0,s.kt)("span",{parentName:"span",className:"msupsub"},(0,s.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.954em"}},(0,s.kt)("span",{parentName:"span",style:{top:"-2.4003em",marginRight:"0.05em"}},(0,s.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,s.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,s.kt)("span",{parentName:"span",className:"mord mtight"},"2"))),(0,s.kt)("span",{parentName:"span",style:{top:"-3.2029em",marginRight:"0.05em"}},(0,s.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,s.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,s.kt)("span",{parentName:"span",className:"mord mtight"},"2")))),(0,s.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.2997em"}},(0,s.kt)("span",{parentName:"span"})))))),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,s.kt)("span",{parentName:"span",className:"mbin"},"+"),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}})),(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"1.8em",verticalAlign:"-0.65em"}}),(0,s.kt)("span",{parentName:"span",className:"mord"},(0,s.kt)("span",{parentName:"span",className:"mord mathrm"},"tr")),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,s.kt)("span",{parentName:"span",className:"minner"},(0,s.kt)("span",{parentName:"span",className:"mopen delimcenter",style:{top:"0em"}},(0,s.kt)("span",{parentName:"span",className:"delimsizing size2"},"(")),(0,s.kt)("span",{parentName:"span",className:"mord"},(0,s.kt)("span",{parentName:"span",className:"mord"},"\u03a3"),(0,s.kt)("span",{parentName:"span",className:"msupsub"},(0,s.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,s.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,s.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,s.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,s.kt)("span",{parentName:"span",className:"mord mtight"},"1")))),(0,s.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,s.kt)("span",{parentName:"span"})))))),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,s.kt)("span",{parentName:"span",className:"mbin"},"+"),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,s.kt)("span",{parentName:"span",className:"mord"},(0,s.kt)("span",{parentName:"span",className:"mord"},"\u03a3"),(0,s.kt)("span",{parentName:"span",className:"msupsub"},(0,s.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,s.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,s.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,s.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,s.kt)("span",{parentName:"span",className:"mord mtight"},"2")))),(0,s.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,s.kt)("span",{parentName:"span"})))))),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,s.kt)("span",{parentName:"span",className:"mbin"},"\u2212"),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,s.kt)("span",{parentName:"span",className:"mord"},"2"),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,s.kt)("span",{parentName:"span",className:"minner"},(0,s.kt)("span",{parentName:"span",className:"minner"},(0,s.kt)("span",{parentName:"span",className:"mopen delimcenter",style:{top:"0em"}},"("),(0,s.kt)("span",{parentName:"span",className:"mord"},(0,s.kt)("span",{parentName:"span",className:"mord"},"\u03a3"),(0,s.kt)("span",{parentName:"span",className:"msupsub"},(0,s.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,s.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,s.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,s.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,s.kt)("span",{parentName:"span",className:"mord mtight"},"1")))),(0,s.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,s.kt)("span",{parentName:"span"})))))),(0,s.kt)("span",{parentName:"span",className:"mord"},(0,s.kt)("span",{parentName:"span",className:"mord"},"\u03a3"),(0,s.kt)("span",{parentName:"span",className:"msupsub"},(0,s.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,s.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,s.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,s.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,s.kt)("span",{parentName:"span",className:"mord mtight"},"2")))),(0,s.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,s.kt)("span",{parentName:"span"})))))),(0,s.kt)("span",{parentName:"span",className:"mclose delimcenter",style:{top:"0em"}},")")),(0,s.kt)("span",{parentName:"span",className:"msupsub"},(0,s.kt)("span",{parentName:"span",className:"vlist-t"},(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.0939em"}},(0,s.kt)("span",{parentName:"span",style:{top:"-3.5029em",marginRight:"0.05em"}},(0,s.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,s.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,s.kt)("span",{parentName:"span",className:"mord mtight"},(0,s.kt)("span",{parentName:"span",className:"mord mtight"},(0,s.kt)("span",{parentName:"span",className:"mopen nulldelimiter sizing reset-size3 size6"}),(0,s.kt)("span",{parentName:"span",className:"mfrac"},(0,s.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.8443em"}},(0,s.kt)("span",{parentName:"span",style:{top:"-2.656em"}},(0,s.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,s.kt)("span",{parentName:"span",className:"sizing reset-size3 size1 mtight"},(0,s.kt)("span",{parentName:"span",className:"mord mtight"},(0,s.kt)("span",{parentName:"span",className:"mord mtight"},"2")))),(0,s.kt)("span",{parentName:"span",style:{top:"-3.2255em"}},(0,s.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,s.kt)("span",{parentName:"span",className:"frac-line mtight",style:{borderBottomWidth:"0.049em"}})),(0,s.kt)("span",{parentName:"span",style:{top:"-3.384em"}},(0,s.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,s.kt)("span",{parentName:"span",className:"sizing reset-size3 size1 mtight"},(0,s.kt)("span",{parentName:"span",className:"mord mtight"},(0,s.kt)("span",{parentName:"span",className:"mord mtight"},"1"))))),(0,s.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.344em"}},(0,s.kt)("span",{parentName:"span"}))))),(0,s.kt)("span",{parentName:"span",className:"mclose nulldelimiter sizing reset-size3 size6"})))))))))),(0,s.kt)("span",{parentName:"span",className:"mclose delimcenter",style:{top:"0em"}},(0,s.kt)("span",{parentName:"span",className:"delimsizing size2"},")")))),(0,s.kt)("span",{parentName:"span",className:"tag"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"1.8em",verticalAlign:"-0.65em"}}),(0,s.kt)("span",{parentName:"span",className:"mord text"},(0,s.kt)("span",{parentName:"span",className:"mord"},"("),(0,s.kt)("span",{parentName:"span",className:"mord"},(0,s.kt)("span",{parentName:"span",className:"mord"},"1")),(0,s.kt)("span",{parentName:"span",className:"mord"},")"))))))),(0,s.kt)("p",null,"\u5176\u4e2d\uff0c",(0,s.kt)("span",{parentName:"p",className:"math math-inline"},(0,s.kt)("span",{parentName:"span",className:"katex"},(0,s.kt)("span",{parentName:"span",className:"katex-mathml"},(0,s.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,s.kt)("semantics",{parentName:"math"},(0,s.kt)("mrow",{parentName:"semantics"},(0,s.kt)("msub",{parentName:"mrow"},(0,s.kt)("mi",{parentName:"msub"},"\u03bc"),(0,s.kt)("mn",{parentName:"msub"},"1"))),(0,s.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"\\mu_1")))),(0,s.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"0.625em",verticalAlign:"-0.1944em"}}),(0,s.kt)("span",{parentName:"span",className:"mord"},(0,s.kt)("span",{parentName:"span",className:"mord mathnormal"},"\u03bc"),(0,s.kt)("span",{parentName:"span",className:"msupsub"},(0,s.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,s.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,s.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,s.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,s.kt)("span",{parentName:"span",className:"mord mtight"},"1")))),(0,s.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,s.kt)("span",{parentName:"span"})))))))))),"\u548c",(0,s.kt)("span",{parentName:"p",className:"math math-inline"},(0,s.kt)("span",{parentName:"span",className:"katex"},(0,s.kt)("span",{parentName:"span",className:"katex-mathml"},(0,s.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,s.kt)("semantics",{parentName:"math"},(0,s.kt)("mrow",{parentName:"semantics"},(0,s.kt)("msub",{parentName:"mrow"},(0,s.kt)("mi",{parentName:"msub"},"\u03bc"),(0,s.kt)("mn",{parentName:"msub"},"2"))),(0,s.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"\\mu_2")))),(0,s.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"0.625em",verticalAlign:"-0.1944em"}}),(0,s.kt)("span",{parentName:"span",className:"mord"},(0,s.kt)("span",{parentName:"span",className:"mord mathnormal"},"\u03bc"),(0,s.kt)("span",{parentName:"span",className:"msupsub"},(0,s.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,s.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,s.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,s.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,s.kt)("span",{parentName:"span",className:"mord mtight"},"2")))),(0,s.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,s.kt)("span",{parentName:"span"})))))))))),"\u5206\u522b\u662f\u7b2c\u4e00\u4e2a\u548c\u7b2c\u4e8c\u4e2a\u9ad8\u65af\u5206\u5e03\u7684\u5747\u503c\u5411\u91cf\uff1b",(0,s.kt)("span",{parentName:"p",className:"math math-inline"},(0,s.kt)("span",{parentName:"span",className:"katex"},(0,s.kt)("span",{parentName:"span",className:"katex-mathml"},(0,s.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,s.kt)("semantics",{parentName:"math"},(0,s.kt)("mrow",{parentName:"semantics"},(0,s.kt)("msub",{parentName:"mrow"},(0,s.kt)("mi",{parentName:"msub",mathvariant:"normal"},"\u03a3"),(0,s.kt)("mn",{parentName:"msub"},"1"))),(0,s.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"\\Sigma_1")))),(0,s.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"0.8333em",verticalAlign:"-0.15em"}}),(0,s.kt)("span",{parentName:"span",className:"mord"},(0,s.kt)("span",{parentName:"span",className:"mord"},"\u03a3"),(0,s.kt)("span",{parentName:"span",className:"msupsub"},(0,s.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,s.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,s.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,s.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,s.kt)("span",{parentName:"span",className:"mord mtight"},"1")))),(0,s.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,s.kt)("span",{parentName:"span"})))))))))),"\u548c",(0,s.kt)("span",{parentName:"p",className:"math math-inline"},(0,s.kt)("span",{parentName:"span",className:"katex"},(0,s.kt)("span",{parentName:"span",className:"katex-mathml"},(0,s.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,s.kt)("semantics",{parentName:"math"},(0,s.kt)("mrow",{parentName:"semantics"},(0,s.kt)("msub",{parentName:"mrow"},(0,s.kt)("mi",{parentName:"msub",mathvariant:"normal"},"\u03a3"),(0,s.kt)("mn",{parentName:"msub"},"2"))),(0,s.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"\\Sigma_2")))),(0,s.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"0.8333em",verticalAlign:"-0.15em"}}),(0,s.kt)("span",{parentName:"span",className:"mord"},(0,s.kt)("span",{parentName:"span",className:"mord"},"\u03a3"),(0,s.kt)("span",{parentName:"span",className:"msupsub"},(0,s.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,s.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,s.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,s.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,s.kt)("span",{parentName:"span",className:"mord mtight"},"2")))),(0,s.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,s.kt)("span",{parentName:"span"})))))))))),"\u5219\u662f\u5b83\u4eec\u7684\u534f\u65b9\u5dee\u77e9\u9635\uff1b",(0,s.kt)("span",{parentName:"p",className:"math math-inline"},(0,s.kt)("span",{parentName:"span",className:"katex"},(0,s.kt)("span",{parentName:"span",className:"katex-mathml"},(0,s.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,s.kt)("semantics",{parentName:"math"},(0,s.kt)("mrow",{parentName:"semantics"},(0,s.kt)("mrow",{parentName:"mrow"},(0,s.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"t"),(0,s.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"r")),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,s.kt)("mo",{parentName:"mrow"},"\u22c5"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,s.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"\\mathrm{tr}(\\cdot)")))),(0,s.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,s.kt)("span",{parentName:"span",className:"mord"},(0,s.kt)("span",{parentName:"span",className:"mord mathrm"},"tr")),(0,s.kt)("span",{parentName:"span",className:"mopen"},"("),(0,s.kt)("span",{parentName:"span",className:"mord"},"\u22c5"),(0,s.kt)("span",{parentName:"span",className:"mclose"},")"))))),"\u8868\u793a\u77e9\u9635\u7684\u8ff9\u8fd0\u7b97\u3002"),(0,s.kt)("p",null,"\u9ad8\u65af\u5206\u5e03\u7684\u5747\u503c\u5411\u91cf\u4ece\u89c2\u6d4b\u5230\u7684\u6570\u636e\u4e2d\u8ba1\u7b97\u51fa\u6765\u7684\u3002\u5bf9\u4e8e\u4e00\u4e2a",(0,s.kt)("span",{parentName:"p",className:"math math-inline"},(0,s.kt)("span",{parentName:"span",className:"katex"},(0,s.kt)("span",{parentName:"span",className:"katex-mathml"},(0,s.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,s.kt)("semantics",{parentName:"math"},(0,s.kt)("mrow",{parentName:"semantics"},(0,s.kt)("mi",{parentName:"mrow"},"n")),(0,s.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"n")))),(0,s.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"0.4306em"}}),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal"},"n"))))),"-\u7ef4\u9ad8\u65af\u5206\u5e03\uff0c\u5176\u5747\u503c\u5411\u91cf\u53ef\u4ee5\u8868\u793a\u4e3a\u4e00\u4e2a\u957f\u5ea6\u4e3a",(0,s.kt)("span",{parentName:"p",className:"math math-inline"},(0,s.kt)("span",{parentName:"span",className:"katex"},(0,s.kt)("span",{parentName:"span",className:"katex-mathml"},(0,s.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,s.kt)("semantics",{parentName:"math"},(0,s.kt)("mrow",{parentName:"semantics"},(0,s.kt)("mi",{parentName:"mrow"},"n")),(0,s.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"n")))),(0,s.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"0.4306em"}}),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal"},"n"))))),"\u7684\u5217\u5411\u91cf\uff0c\u5176\u4e2d\u7684\u6bcf\u4e00\u4e2a\u5143\u7d20\u90fd\u662f\u4e00\u4e2a\u7279\u5b9a\u7ef4\u5ea6\u7684\u5e73\u5747\u6570\uff0c\u8fd9\u53ef\u4ee5\u901a\u8fc7\u5728\u6bcf\u4e2a\u7ef4\u5ea6\u4e0a\u8fdb\u884c\u7b80\u5355\u7684\u7b97\u672f\u5e73\u5747\u6765\u5b8c\u6210\u3002"),(0,s.kt)("p",null,"\u503c\u5f97\u6ce8\u610f\u7684\u662f\uff0cFID\u6307\u6807\u9700\u8981\u4e00\u5b9a\u6570\u91cf\u7684\u751f\u6210\u56fe\u50cf\u548c\u771f\u5b9e\u56fe\u50cf\u6765\u8fdb\u884c\u7edf\u8ba1\u4f30\u8ba1\u3002\u8fd9\u662f\u56e0\u4e3aFID\u7684\u8ba1\u7b97\u662f\u57fa\u4e8e\u4e24\u4e2a\u9ad8\u65af\u5206\u5e03\u4e4b\u95f4\u7684\u8ddd\u79bb\u8ba1\u7b97\u7684\uff0c\u56e0\u6b64\u9700\u8981\u8db3\u591f\u591a\u7684\u6837\u672c\u6570\u91cf\u624d\u80fd\u591f\u83b7\u5f97\u8f83\u4e3a\u51c6\u786e\u7684\u6982\u7387\u5206\u5e03\u4f30\u8ba1\u3002"),(0,s.kt)("p",null,(0,s.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_imagesimage-20231127202031894.png",alt:"image-20231127202031894"})),(0,s.kt)("h4",{id:"clip-score"},"CLIP Score"),(0,s.kt)("p",null,"CLIP Score\u4e2d\u7684CLIP\u6307\u7684\u5c31\u662f",(0,s.kt)("a",{parentName:"p",href:"https://arxiv.org/abs/2103.00020"},"OpenAI\u7684CLIP\uff08Contrastive Language-Image Pre-Training\uff09\u6a21\u578b"),"\u3002"),(0,s.kt)("p",null,"\u5177\u4f53\u6765\u8bf4\uff0cCLIP Score\u7684\u8ba1\u7b97\u65b9\u5f0f\u662f\u5c06\u7528\u4e8e\u751f\u6210\u56fe\u50cf\u7684\u6587\u5b57prompt\u8f93\u5165\u81f3CLIP\u7684Text Encoder\u4e2d\u5f97\u5230\u4e00\u4e2aRepresentation\uff0c\u518d\u5c06\u5bf9\u5e94prompt\u751f\u6210\u7684\u56fe\u50cf\u8f93\u5165\u81f3CLIP\u7684Image Encoder\u4e2d\u5f97\u5230\u5bf9\u5e94\u7684Representation\uff0c\u8ba1\u7b97\u4e8c\u8005\u4e4b\u95f4\u7684\u8ddd\u79bb\uff0c\u5373\u5f97\u5230CLIP Score\u3002\u5206\u6570\u8d8a\u5c0f\uff0c\u4ee3\u8868\u6587\u5b57\u548c\u56fe\u50cf\u66f4align\u3002"),(0,s.kt)("p",null,(0,s.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_imagesimage-20231128143336879.png",alt:"image-20231128143336879"})),(0,s.kt)("h3",{id:"\u901a\u7528\u6846\u67b6\u89e3\u6790"},"\u901a\u7528\u6846\u67b6\u89e3\u6790"),(0,s.kt)("h4",{id:"generation-model"},"Generation Model"),(0,s.kt)("p",null,"Generation Model\u7684\u751f\u6210\u8fc7\u7a0b\u5176\u5b9e\u5c31\u662fDenoise\u7684\u8fc7\u7a0b\u3002\u5177\u4f53\u6765\u8bb2\uff0c\u8f93\u5165\u6587\u5b57Prompt\u4ee5\u53ca\u4ece\u968f\u673a\u5206\u5e03\u4e2dsample\u51fa\u7684\u4e0e\u9884\u671f\u751f\u6210\u56fe\u50cf\u5177\u6709\u76f8\u540c\u5927\u5c0f\u7684\u566a\u58f0\u77e9\u9635\uff0c\u9884\u6d4b\u51fa\u8f93\u5165\u56fe\u7247\u4e2d\u7684\u566a\u58f0\u5206\u5e03\uff0c\u5728\u8f93\u5165\u56fe\u50cf\u4e2d\u51cf\u53bb\u566a\u58f0\uff0c\u8f93\u51fa\u53bb\u566a\u540e\u7684\u56fe\u50cf\u3002Generation Model\u7684\u6700\u7ec8\u8f93\u51fa\u662f\u4e2d\u95f4\u4ea7\u7269\uff0c\u8fd9\u4e2a\u4e2d\u95f4\u4ea7\u7269\u53ef\u4ee5\u662f\u56fe\u50cf\u7684\u538b\u7f29\u7248\u672c\uff0c\u4e5f\u53ef\u4ee5\u662f\u4e00\u4e2aLatent Representation\u3002\u56e0\u6b64\uff0c\u8bad\u7ec3Generation Model\u5176\u5b9e\u5c31\u662f\u8bad\u7ec3\u4e00\u4e2a",(0,s.kt)("strong",{parentName:"p"},"Noise Predictor"),"\u3002"),(0,s.kt)("h5",{id:"\u4e2d\u95f4\u4ea7\u7269\u662f\u538b\u7f29\u56fe\u50cf"},"\u4e2d\u95f4\u4ea7\u7269\u662f\u538b\u7f29\u56fe\u50cf"),(0,s.kt)("p",null,"\u5f53Generation Model\u7684\u4e2d\u95f4\u4ea7\u7269\u662f\u538b\u7f29\u56fe\u50cf\u65f6\uff0c\u5982Diffusion\u6a21\u578b\uff0c\u5728\u8bad\u7ec3Generation Model\u65f6\u7684\u8bad\u7ec3\u8d44\u6599\u53ef\u4ee5\u901a\u8fc7\u5bf9\u6570\u636e\u96c6\u4e2d\u7684\u539f\u59cb\u56fe\u7247\u6dfb\u52a0\u4e0e\u56fe\u50cf\u5927\u5c0f\u4e00\u81f4\u5730\u4ece\u5df2\u77e5\u968f\u673a\u5206\u5e03\u4e2dsample\u51fa\u7684\u566a\u58f0\u6765\u83b7\u5f97\u3002\u6b64\u65f6\u52a0\u5165\u566a\u58f0\u540e\u7684\u56fe\u50cf\u53ef\u4ee5\u4f5c\u4e3a\u538b\u7f29\u56fe\u50cf\u8f93\u5165\u81f3Noise Predictor\u4e2d\uff0c\u800c\u9700\u8981\u9884\u6d4b\u51fa\u7684\u566a\u58f0\u5206\u5e03\u7684Ground Truth\u5c31\u662fsample\u51fa\u7684\u566a\u58f0\u3002"),(0,s.kt)("h5",{id:"\u4e2d\u95f4\u4ea7\u7269\u662flatent-representation"},"\u4e2d\u95f4\u4ea7\u7269\u662fLatent Representation"),(0,s.kt)("p",null,"\u4e2d\u95f4\u4ea7\u7269\u662fLatent Representation\u65f6\uff0c\u540c\u6837\u91c7\u53d6\u4ece\u5df2\u77e5\u968f\u673a\u5206\u5e03\u4e2dsample\u51fa\u566a\u58f0\u518d\u6dfb\u52a0\u5230\u7f51\u7edc\u7684\u8f93\u5165\u4f5c\u4e3a\u751f\u6210Ground Truth\u7684\u7b56\u7565\uff0c\u4f46\u662f\u8fd8",(0,s.kt)("strong",{parentName:"p"},"\u989d\u5916\u9700\u8981\u4e00\u4e2aEncoder\u6765\u4ea7\u751fLatent Representation"),"\u3002"),(0,s.kt)("p",null,"\u8fd9\u91cc\u7684Encoder\u4f7f\u7528\u6570\u636e\u96c6\u4e2d\u7684\u56fe\u7247\uff08\u5373\u671f\u5f85\u6a21\u578b\u6700\u7ec8\u8f93\u51fa\u7684\u56fe\u7247\uff09\u4f5c\u4e3a\u8f93\u5165\uff0c\u8f93\u51fa\u8be5\u56fe\u7247\u7684\u67d0\u79cdLatent Representation\uff0c\u7ecf\u8fc7\u4ece\u968f\u673a\u5206\u5e03\u4e2dsample\u51fa\u7684\u566a\u58f0\u7684\u52a0\u5165\uff0c\u8f93\u5165\u81f3Noise Predictor\u4e2d\u3002\u4ece\u968f\u673a\u5206\u5e03\u4e2dsample\u51fa\u7684\u566a\u58f0\u5c31\u662fNoise Predictor\u7684Ground Truth\u3002"),(0,s.kt)("h4",{id:"decoder"},"Decoder"),(0,s.kt)("p",null,"Generation Model\u7684\u8bad\u7ec3\u9700\u8981\u5927\u91cf\u6210\u5bf9\u7684\uff08Pair\uff09\u6587\u5b57-\u56fe\u50cf\u8d44\u6599\u3002\u800c\u5bf9\u4e8eDecoder\u6765\u8bf4\uff0c\u5b83\u7684\u8f93\u5165\u662f\u4e2d\u95f4\u4ea7\u7269\uff08\u5373Generation Model\u751f\u6210\u7684\u538b\u7f29\u7684\u56fe\u7247\u6216Latent Representation\uff09\uff0c\u8f93\u51fa\u7684\u662f\u8fd8\u539f\u51fa\u7684\u9ad8\u5206\u8fa8\u7387\u7684\u56fe\u50cf\uff0c\u5b83\u7684\u8bad\u7ec3\u662f",(0,s.kt)("strong",{parentName:"p"},"\u4e0d\u9700\u8981\u989d\u5916pair\u7684\u6587\u5b57-\u56fe\u50cf\u8d44\u6599"),"\u3002"),(0,s.kt)("h5",{id:"\u4e2d\u95f4\u4ea7\u7269\u662f\u538b\u7f29\u56fe\u50cf-1"},"\u4e2d\u95f4\u4ea7\u7269\u662f\u538b\u7f29\u56fe\u50cf"),(0,s.kt)("p",null,"\u5f53Generation Model\u7684\u8f93\u51fa\u662f\u538b\u7f29\u7248\u672c\u7684\u56fe\u50cf\u65f6\uff0cDecoder\u7684\u8bad\u7ec3\u8d44\u6599\u53ef\u4ee5\u5c06\u4ece\u4e92\u8054\u7f51\u4e0afetch\u5230\u7684\u56fe\u50cf\u4f5c\u4e3alabel\uff0c\u5e76\u5bf9\u8fd9\u4e9b\u56fe\u50cf\u505aDown Sampling\u6765\u83b7\u5f97\u538b\u7f29\u7248\u672c\u7684\u56fe\u50cf\u4f5c\u4e3aDecoder\u8bad\u7ec3\u65f6\u7684\u8f93\u51fa\u3002"),(0,s.kt)("p",null,(0,s.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_imagesimage-20231128145010346.png",alt:"image-20231128145010346"})),(0,s.kt)("h5",{id:"\u4e2d\u95f4\u4ea7\u7269\u662flatent-representation-1"},"\u4e2d\u95f4\u4ea7\u7269\u662fLatent Representation"),(0,s.kt)("p",null,"\u5f53\u4e2d\u95f4\u4ea7\u7269\u662fLatent Representation\u65f6\uff0c\u9700\u8981\u8bad\u7ec3\u4e00\u4e2aAuto-Encoder\uff0c\u4f7f\u7528Encoder-Decoder\u7684\u7ed3\u6784\u8bad\u7ec3\u751f\u6210\u6a21\u578b\u7684Decoder\u3002"),(0,s.kt)("p",null,"\u5177\u4f53\u6765\u8bb2\uff0c\u5411Encoder\u4e2d\u8f93\u5165\u6570\u636e\u96c6\u4e2d\u7684\u9ad8\u6e05\u9884\u671f\u56fe\u7247\uff0cEncoder\u5c06\u5176\u8f6c\u6362\u4e3a\u67d0\u79cdLatent Representation\uff0cDecoder\u518d\u5403Encoder\u7684\u8f93\u51fa\uff0c\u6700\u7ec8\u8f93\u51fa\u8fd8\u539f\u51fa\u7684\u9ad8\u6e05label\u56fe\u7247\uff0c\u8bad\u7ec3\u7684\u65b9\u5411\u662f\u8ba9\u8f93\u51fa\u7684\u56fe\u7247\u4e0e\u8f93\u5165\u7684\u56fe\u7247\u8d8a\u63a5\u8fd1\u8d8a\u597d\u3002",(0,s.kt)("strong",{parentName:"p"},"\u5728\u8fd9\u4e2a\u8fc7\u7a0b\u4e2d\uff0c\u4e0d\u9700\u8981\u989d\u5916\u7684\u6807\u6ce8\uff0cAuto-Encoder\u548c\u751f\u6210\u6a21\u578b\u7684Decoder\u4e00\u8d77\u66f4\u65b0\u53c2\u6570\u3002")),(0,s.kt)("p",null,(0,s.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_imagesimage-20231128150641374.png",alt:"image-20231128150641374"})),(0,s.kt)("h2",{id:"\u5e38\u89c1\u56fe\u50cf\u751f\u6210\u6a21\u578b\u901f\u89c8"},"\u5e38\u89c1\u56fe\u50cf\u751f\u6210\u6a21\u578b\u901f\u89c8"),(0,s.kt)("p",null,"\u5728\u8fd9\u4e2a\u6a21\u5757\u5927\u81f4\u4ecb\u7ecd\u76ee\u524d\u5e38\u89c1\u7684\u51e0\u79cd\u56fe\u50cf\u751f\u6210\u6a21\u578b\uff0c\u5176\u4e2dDiffusion Model\u4ee5\u53caGAN\u5c06\u5728\u4ee5\u540e\u7684\u6587\u7ae0\u4e2d\u8be6\u7ec6\u8bb2\u89e3\u3002"),(0,s.kt)("h3",{id:"\u53d8\u5206\u81ea\u7f16\u7801\u5668vae"},"\u53d8\u5206\u81ea\u7f16\u7801\u5668\uff08VAE\uff09"),(0,s.kt)("p",null,"\u53d8\u5206\u81ea\u7f16\u7801\u5668\uff08Variational Auto-Encoder, abbr. VAE\uff09\u7684\u8bad\u7ec3\u7b56\u7565\u662f\u4f7f\u7528Encoder\u5c06\u8f93\u5165\u56fe\u50cf\u5bf9\u5e94\uff08\u5d4c\u5165\uff09\u5230\u4e00\u4e2a\u7b26\u5408\u67d0\u968f\u673a\u5206\u5e03\u7684\u5411\u91cf\uff0c\u518d\u5c06\u8be5\u5411\u91cf\u4f5c\u4e3aDecoder\u7684\u8f93\u5165\uff0c\u52a0\u4e0a\u6587\u5b57prompt\u540e\uff0c\u671f\u5f85\u6a21\u578b\u4ea7\u751f\u5408\u9002\u7684\u56fe\u50cf\u3002"),(0,s.kt)("p",null,(0,s.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_imagesimage-20231127104842038.png",alt:"image-20231127104842038"})),(0,s.kt)("admonition",{type:"tip"},(0,s.kt)("p",{parentName:"admonition"},"VAE\u5728\u8bad\u7ec3\u8fc7\u7a0b\u4e2d\uff0c\u671f\u5f85Ecoder\u8f93\u5165\u591a\u5f20\u56fe\u7247\u540e\uff0c\u8f93\u51fa\u7684\u5411\u91cf\u5728\u4e00\u8d77\u7b26\u5408\u67d0\u4e2a\u968f\u673a\u5206\u5e03\uff08e.g. Normal Distribution\uff09\uff0c\u5e76\u4e0d\u662fEncoder\u76f4\u63a5\u8f93\u51fa\u4e00\u4e2aDistrubution\u3002")),(0,s.kt)("h3",{id:"\u57fa\u4e8e\u6d41\u7684\u751f\u6210\u6a21\u578bflow-based-generative-model"},"\u57fa\u4e8e\u6d41\u7684\u751f\u6210\u6a21\u578b\uff08Flow-Based Generative Model\uff09"),(0,s.kt)("p",null,"\u57fa\u4e8e\u6d41\u7684\u751f\u6210\u6a21\u578b\u91c7\u7528\u7279\u6b8a\u7684\u7f51\u7edc\u7ed3\u6784\u7684\u8bbe\u8ba1\uff0c\u5c06Encoder\u8bbe\u8ba1\u4e3a\u53ef\u9006\u7684\uff08invertible\uff09\uff0c\u5728\u8bad\u7ec3\u9636\u6bb5\u5582\u5165\u591a\u5f20\u56fe\u7247\uff0c\u671f\u5f85\u6a21\u578b\u7684\u5411\u91cf\u7b26\u5408\u67d0\u4e2a\u968f\u673a\u5206\u5e03\u3002\u800c\u5728\u9884\u6d4b\u9636\u6bb5\uff0c\u7531\u4e8eEncoder\u662f\u53ef\u9006\u7684\uff0c\u8f93\u5165\u4ece\u8be5\u968f\u673a\u5206\u5e03\u4e2dsample\u51fa\u6765\u7684\u5411\u91cf\uff0c\u671f\u5f85\u8f93\u51fa\u5bf9\u5e94\u7684\u56fe\u50cf\u3002"),(0,s.kt)("p",null,"\u6ce8\u610f\uff0c\u7531\u4e8eEncoder\u662f\u53ef\u9006\u7684\uff0c\u5728\u8bad\u7ec3\u9636\u6bb5\u5176\u8f93\u5165\u7684\u56fe\u7247\u77e9\u9635\u7684\u5f62\u72b6\u5e94\u8be5\u7b49\u4e8e\u8f93\u51fa\u7684\u968f\u673a\u5206\u5e03\u5411\u91cf\u7684\u5f62\u72b6\uff0c\u5728\u63a8\u7406\u9636\u6bb5\u4ea6\u7136\u3002"),(0,s.kt)("p",null,(0,s.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_imagesimage-20231127111749208.png",alt:"image-20231127111749208"})),(0,s.kt)("h3",{id:"\u751f\u6210\u5bf9\u6297\u7f51\u7edcgan"},"\u751f\u6210\u5bf9\u6297\u7f51\u7edc\uff08GAN\uff09"),(0,s.kt)("p",null,"GAN\u6a21\u578b\u7684\u7ed3\u6784\u5206\u4e3aGenerator\u548cDiscriminator\uff0c\u5176\u4e2dGenerator\u63a5\u53d7\u6765\u81ea\u968f\u673a\u5206\u5e03\u7684\u5411\u91cf\uff0c\u4ea7\u751f\u9884\u671f\u56fe\u50cf\uff1bDiscriminator\u63a5\u53d7\u751f\u6210\u5668\u8f93\u51fa\u7684\u56fe\u50cf\u6216\u771f\u5b9e\u56fe\u50cf\uff0c\u8f93\u51fa\u8f93\u5165\u7684\u56fe\u50cf\u662f\u771f\u5b9e\u56fe\u50cf\u7684\u6982\u7387\u3002\u5728\u8bad\u7ec3\u8fc7\u7a0b\u4e2d\uff0c\u901a\u8fc7\u56fa\u5b9a\u751f\u6210\u5668\u53c2\u6570\u6765\u66f4\u65b0\u8fa8\u522b\u5668\u53c2\u6570\u3001\u56fa\u5b9a\u8fa8\u522b\u5668\u53c2\u6570\u66f4\u65b0\u751f\u6210\u5668\u53c2\u6570\u7684\u5f80\u590d\u4ea4\u66ff\u8bad\u7ec3\u6765\u5f62\u6210\u201c\u4e24\u4e2a\u7f51\u7edc\u5bf9\u6297\u201d\u7684\u6548\u679c\uff0c\u4ece\u800c\u4f7f\u5f97\u751f\u6210\u5668\u751f\u6210\u7684\u56fe\u50cf\u66f4\u903c\u771f\uff08\u4e0e\u8f93\u5165\u7684\u771f\u5b9e\u56fe\u50cf\u66f4\u8fd1\u4f3c\uff09\u3001\u8fa8\u522b\u5668\u8bc6\u522b\u662f\u5426\u662f\u8f93\u5165\u7684\u771f\u5b9e\u56fe\u50cf\u7684\u7cbe\u786e\u5ea6\u66f4\u9ad8\u3002"),(0,s.kt)("p",null,(0,s.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_imagesimage-20231127113242641.png",alt:"image-20231127113242641"})),(0,s.kt)("h3",{id:"\u6269\u6563\u6a21\u578bdiffusion-model"},"\u6269\u6563\u6a21\u578b\uff08Diffusion Model\uff09"),(0,s.kt)("p",null,"\u6269\u6563\u6a21\u578b\u7684\u6838\u5fc3\u601d\u60f3\u662f\u5bf9\u8f93\u5165\u7684\u56fe\u7247\u52a0\u5165\u566a\u58f0\u4f7f\u5176\u6210\u4e3a\u4ece\u67d0\u4e00\u968f\u673a\u5206\u5e03sample\u51fa\u7684\u5411\u91cf\uff0c\u5e76\u5728\u8fd9\u4e2a\u8fc7\u7a0b\u4e2d\u8bad\u7ec3\u51faNoise Predictor\uff1b\u5728\u751f\u6210\u56fe\u7247\u65f6\uff0c\u8f93\u5165\u4ece\u8be5\u968f\u673a\u5206\u5e03\u4e2dsample\u51fa\u7684\u5411\u91cf\uff0c\u4f7f\u7528\u8bad\u7ec3\u51fa\u7684Noise Predictor\u5bf9\u566a\u58f0denoise\u4ece\u800c\u83b7\u5f97\u751f\u6210\u7684\u56fe\u7247\u3002"),(0,s.kt)("p",null,(0,s.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_imagesimage-20231127112447752.png",alt:"image-20231127112447752"})),(0,s.kt)("p",null,"\u4ee5",(0,s.kt)("a",{parentName:"p",href:"https://arxiv.org/abs/2006.11239"},"DDPM\uff08Denoising Diffusion Probabilistic Models\uff09"),"\u6a21\u578b\u4e3a\u4f8b\uff0c\u6a21\u578b\u5728denoise\u65f6\u4e3a\u6bcf\u4e2adenoise\u6b65\u9aa4\u8d4b\u4e88\u4e00\u4e2a\u7f16\u53f7\uff0c\u8d8a\u65e9\u8fdb\u884cdenoise\u7684\u6b65\u9aa4\u7f16\u53f7\u8d8a\u5927\uff0c\u56e0\u6b64\uff0c\u8fd9\u4e2a\u7f16\u53f7\u4e5f\u4ee3\u8868\u7740\u56fe\u50cf\u4e2d\u566a\u58f0\u7684\u4e25\u91cd\u7a0b\u5ea6\u3002\u5728Denoise\u6a21\u5757\u4e2d\uff0c\u6a21\u578b\u6839\u636e\u8f93\u5165\u7684\u5e26\u6709\u566a\u58f0\u7684\u56fe\u7247\u3001\u6587\u5b57prompt\u4ee5\u53ca\u566a\u58f0\u7684\u4e25\u91cd\u7a0b\u5ea6\uff08\u5373denoise\u7684\u6b65\u9aa4\uff09\u9884\u6d4b\u51fa\u8be5\u56fe\u7247\u4e2d\u566a\u58f0\u7684\u5206\u5e03\uff0c\u7136\u540e\u5c06\u8f93\u5165\u7684\u56fe\u7247\u4e2d\u51cf\u53bb\u9884\u6d4b\u51fa\u7684\u566a\u58f0\u5f97\u5230denoise\u540e\u7684\u56fe\u7247\u3002"),(0,s.kt)("p",null,"Denoise\u6a21\u5757\u7684\u76ee\u6807\u662f\u9884\u6d4b\u51fa\u8f93\u5165\u7684\u566a\u58f0\u56fe\u7247\u4e2d\u7684\u566a\u58f0\uff0c\u5176\u8d44\u6599\u53ef\u4ee5\u901a\u8fc7\u5bf9\u6570\u636e\u96c6\u4e2d\u7684\u56fe\u7247\u4e0d\u65ad\u52a0\u5165\u4eceGaussian Distribution\u4e2dsample\u51fa\u7684\u566a\u58f0\u7684\u65b9\u6cd5\u6765\u83b7\u5f97\uff0c\u8fd9\u4e2a",(0,s.kt)("strong",{parentName:"p"},"\u52a0\u566a\u58f0\u7684\u8fc7\u7a0b\u6211\u4eec\u79f0\u4e3aForward Process or Diffusion Process"),"\u3002\u6b64\u65f6\u5c06\u52a0\u5165\u566a\u58f0\u540e\u7684\u56fe\u7247\u3001\u6587\u5b57prompt\u4ee5\u53cadenoise\u7684\u6b65\u9aa4\u5e8f\u53f7\u4f5c\u4e3a\u8f93\u5165\uff0csample\u51fa\u7684\u566a\u58f0\u4f5c\u4e3aGround Truth\u5bf9noise predictor\u8fdb\u884c\u8bad\u7ec3\u3002"))}c.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/73151820.24447b0f.js b/assets/js/73151820.24447b0f.js new file mode 100644 index 000000000..21c571bb5 --- /dev/null +++ b/assets/js/73151820.24447b0f.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunknpy_notebook=self.webpackChunknpy_notebook||[]).push([[9203],{3905:(e,n,t)=>{t.d(n,{Zo:()=>u,kt:()=>k});var r=t(7294);function o(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function i(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function a(e){for(var n=1;n=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var l=r.createContext({}),s=function(e){var n=r.useContext(l),t=n;return e&&(t="function"==typeof e?e(n):a(a({},n),e)),t},u=function(e){var n=s(e.components);return r.createElement(l.Provider,{value:n},e.children)},p="mdxType",d={inlineCode:"code",wrapper:function(e){var n=e.children;return r.createElement(r.Fragment,{},n)}},m=r.forwardRef((function(e,n){var t=e.components,o=e.mdxType,i=e.originalType,l=e.parentName,u=c(e,["components","mdxType","originalType","parentName"]),p=s(t),m=o,k=p["".concat(l,".").concat(m)]||p[m]||d[m]||i;return t?r.createElement(k,a(a({ref:n},u),{},{components:t})):r.createElement(k,a({ref:n},u))}));function k(e,n){var t=arguments,o=n&&n.mdxType;if("string"==typeof e||o){var i=t.length,a=new Array(i);a[0]=m;var c={};for(var l in n)hasOwnProperty.call(n,l)&&(c[l]=n[l]);c.originalType=e,c[p]="string"==typeof e?e:o,a[1]=c;for(var s=2;s{t.r(n),t.d(n,{assets:()=>l,contentTitle:()=>a,default:()=>d,frontMatter:()=>i,metadata:()=>c,toc:()=>s});var r=t(7462),o=(t(7294),t(3905));const i={},a="GeekOS project 0\u7684\u5b9e\u73b0",c={unversionedId:"Curriculum/\u64cd\u4f5c\u7cfb\u7edf\u8bfe\u8bbe/GeekOS-project-0",id:"Curriculum/\u64cd\u4f5c\u7cfb\u7edf\u8bfe\u8bbe/GeekOS-project-0",title:"GeekOS project 0\u7684\u5b9e\u73b0",description:"\u5728\u4e0a\u4e00\u7bc7\u535a\u5ba2\u4e2d\u6211\u4eec\u5b8c\u6210\u4e86GeekOS\u73af\u5883\u7684\u914d\u7f6e\uff0c\u4e0b\u9762\u6211\u4eec\u6765\u9a8c\u8bc1\u73af\u5883\u914d\u7f6e\u7684\u6210\u529f\u4e0e\u5426\u4ee5\u53caproject 0\u7684\u5b9e\u73b0\u3002",source:"@site/docs/Curriculum/4-\u64cd\u4f5c\u7cfb\u7edf\u8bfe\u8bbe/2-GeekOS-project-0.md",sourceDirName:"Curriculum/4-\u64cd\u4f5c\u7cfb\u7edf\u8bfe\u8bbe",slug:"/Curriculum/\u64cd\u4f5c\u7cfb\u7edf\u8bfe\u8bbe/GeekOS-project-0",permalink:"/docs/Curriculum/\u64cd\u4f5c\u7cfb\u7edf\u8bfe\u8bbe/GeekOS-project-0",draft:!1,tags:[],version:"current",sidebarPosition:2,frontMatter:{},sidebar:"curriculum",previous:{title:"Linux\u7cfb\u7edf\u4e0bGeekOS\u7684\u73af\u5883\u914d\u7f6e",permalink:"/docs/Curriculum/\u64cd\u4f5c\u7cfb\u7edf\u8bfe\u8bbe/Environment-Configuration"}},l={},s=[{value:"1. \u7f16\u5199C\u8bed\u8a00\u4ee3\u7801",id:"1-\u7f16\u5199c\u8bed\u8a00\u4ee3\u7801",level:2},{value:"2. \u4f7f\u7528Linux\u7684\u7f16\u8bd1\u7cfb\u7edf\u5bf9C\u8bed\u8a00\u4ee3\u7801\u8fdb\u884c\u7f16\u8bd1",id:"2-\u4f7f\u7528linux\u7684\u7f16\u8bd1\u7cfb\u7edf\u5bf9c\u8bed\u8a00\u4ee3\u7801\u8fdb\u884c\u7f16\u8bd1",level:2}],u={toc:s},p="wrapper";function d(e){let{components:n,...t}=e;return(0,o.kt)(p,(0,r.Z)({},u,t,{components:n,mdxType:"MDXLayout"}),(0,o.kt)("h1",{id:"geekos-project-0\u7684\u5b9e\u73b0"},"GeekOS project 0\u7684\u5b9e\u73b0"),(0,o.kt)("p",null,"\u5728\u4e0a\u4e00\u7bc7\u535a\u5ba2\u4e2d\u6211\u4eec\u5b8c\u6210\u4e86GeekOS\u73af\u5883\u7684\u914d\u7f6e\uff0c\u4e0b\u9762\u6211\u4eec\u6765\u9a8c\u8bc1\u73af\u5883\u914d\u7f6e\u7684\u6210\u529f\u4e0e\u5426\u4ee5\u53caproject 0\u7684\u5b9e\u73b0\u3002"),(0,o.kt)("h2",{id:"1-\u7f16\u5199c\u8bed\u8a00\u4ee3\u7801"},"1. \u7f16\u5199C\u8bed\u8a00\u4ee3\u7801"),(0,o.kt)("p",null,"\u7f16\u5199geekos-version/src/projecti/src/geekos/main.c\u6587\u4ef6"),(0,o.kt)("p",null,"\u7f16\u5199\u51fd\u6570project0\u5b9e\u73b0\u68c0\u6d4b\u952e\u76d8\u8f93\u5165Ctrl+d\u7ed3\u675f\u7ebf\u7a0b\u3002"),(0,o.kt)("pre",null,(0,o.kt)("code",{parentName:"pre",className:"language-cpp"},"void project0(){\n Print(\"To Exit hit Ctrl + d.\\n\");\n Keycode keycode;\n while(1)\n {\n if(Read_Key(&keycode))\n {\n if(!((keycode & KEY_SPECIAL_FLAG) || (keycode & KEY_RELEASE_FLAG)))// \u4e0d\u662f\u7279\u6b8a\u952e\u6216\u8005\u5f39\u8d77\n {\n int asciiCode = keycode & 0xff;//d\n if((keycode & KEY_CTRL_FLAG)==KEY_CTRL_FLAG && asciiCode=='d')//ctrl+d\n {\n Print(\"\\n---------Adios!---------\\n\");\n # \u8fd9\u91cc\u9700\u8981\u6ce8\u610f\u7d20\u8d28\n Exit(1);\n }else\n {\n Print(\"%c\",(asciiCode=='\\r') ? '\\n' : asciiCode);\n }\n }\n }\n }\n}\n")),(0,o.kt)("p",null,"\u5728main\u51fd\u6570\u4e2d\u6dfb\u52a0\u4ee5\u4e0b\u4ee3\u7801\uff0c\u5b9e\u73b0\u81ea\u5b9a\u4e49\u51fd\u6570\u7684\u8c03\u7528\uff0c\u521b\u5efa\u7ebf\u7a0b\u3002"),(0,o.kt)("pre",null,(0,o.kt)("code",{parentName:"pre",className:"language-cpp"}," struct Kernel_Thread *thread;\n thread = Start_Kernel_Thread(&project0,0,PRIORITY_NORMAL,false);\n")),(0,o.kt)("p",null,"\u603b\u4f53\u4ee3\u7801"),(0,o.kt)("pre",null,(0,o.kt)("code",{parentName:"pre",className:"language-cpp"},'/*\n * GeekOS C code entry point\n * Copyright (c) 2001,2003,2004 David H. Hovemeyer \n * Copyright (c) 2003, Jeffrey K. Hollingsworth \n * Copyright (c) 2004, Iulian Neamtiu \n * $Revision: 1.51 $\n * \n * This is free software. You are permitted to use,\n * redistribute, and modify it as specified in the file "COPYING".\n */\n\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n\nvoid project0(){\n Print("To Exit hit Ctrl + d.\\n");\n Keycode keycode;\n while(1)\n {\n if(Read_Key(&keycode))\n {\n if(!((keycode & KEY_SPECIAL_FLAG) || (keycode & KEY_RELEASE_FLAG)))// \u4e0d\u662f\u7279\u6b8a\u952e\u6216\u8005\u5f39\u8d77\n {\n int asciiCode = keycode & 0xff;//d\n if((keycode & KEY_CTRL_FLAG)==KEY_CTRL_FLAG && asciiCode==\'d\')//ctrl+d\n {\n Print("\\n---------Adios! Motherfucker!---------\\n");\n Exit(1);\n }else\n {\n Print("%c",(asciiCode==\'\\r\') ? \'\\n\' : asciiCode);\n }\n }\n }\n }\n}\n\n\n/*\n * Kernel C code entry point.\n * Initializes kernel subsystems, mounts filesystems,\n * and spawns init process.\n */\nvoid Main(struct Boot_Info* bootInfo)\n{\n Init_BSS();\n Init_Screen();\n Init_Mem(bootInfo);\n Init_CRC32();\n Init_TSS();\n Init_Interrupts();\n Init_Scheduler();\n Init_Traps();\n Init_Timer();\n Init_Keyboard();\n\n Set_Current_Attr(ATTRIB(BLACK, GREEN|BRIGHT));\n Print("Welcome to GeekOS!\\n");\n Set_Current_Attr(ATTRIB(BLACK, GRAY));\n\n // TODO("Start a kernel thread to echo pressed keys and print counts");\n\n struct Kernel_Thread *thread;\n thread = Start_Kernel_Thread(&project0,0,PRIORITY_NORMAL,false);\n\n /* Now this thread is done. */\n Exit(0);\n}\n')),(0,o.kt)("h2",{id:"2-\u4f7f\u7528linux\u7684\u7f16\u8bd1\u7cfb\u7edf\u5bf9c\u8bed\u8a00\u4ee3\u7801\u8fdb\u884c\u7f16\u8bd1"},"2. \u4f7f\u7528Linux\u7684\u7f16\u8bd1\u7cfb\u7edf\u5bf9C\u8bed\u8a00\u4ee3\u7801\u8fdb\u884c\u7f16\u8bd1"),(0,o.kt)("p",null,"\u6bcf\u4e00\u4e2a\u9879\u76ee\u7684\u7f16\u8bd1\u90fd\u5728geekos-version/src/projecti/build\u6587\u4ef6\u5939\u4e0b\u8fdb\u884c\uff0c\u5373\u8981\u5728\u7ec8\u7aef\u4e2d\u901a\u8fc7",(0,o.kt)("inlineCode",{parentName:"p"},"cd"),"\u8fdb\u5165\u8be5\u76ee\u5f55\u3002"),(0,o.kt)("p",null,"\u6267\u884c"),(0,o.kt)("pre",null,(0,o.kt)("code",{parentName:"pre",className:"language-bash"},"make depend\nmake\n")),(0,o.kt)("p",null,"\u6b64\u65f6\uff0c\u8be5\u76ee\u5f55\u4e0b\u4f1a\u751f\u6210bochs.out\u3001depend.mak\u4ee5\u53cafd.img\u6587\u4ef6\uff0cbochs.out\u6587\u4ef6\u662f\u65e5\u5fd7\u8f93\u51fa\u6587\u4ef6\uff0cdepend.mak\u662f\u7f16\u8bd1\u4e2d\u95f4\u751f\u6210\u7684\u6587\u4ef6\uff0c\u6700\u7ec8\u751f\u6210\u7684fd.img\u662f\u6700\u91cd\u8981\u7684GeekOS\u6620\u50cf\u6587\u4ef6\uff0c\u6709\u4e86\u5b83\u624d\u80fd\u4f7f\u7528bochs\u8fd0\u884cGeekOS\u64cd\u4f5c\u7cfb\u7edf\u3002",(0,o.kt)("strong",{parentName:"p"},"\u611f\u6069\u5b83\uff01")),(0,o.kt)("p",null,"\u76ee\u5f55\u4e0b\u7684\u6587\u4ef6\u5e94\u8be5\u662f\u8fd9\u6837\u7684\u7ed3\u6784\uff1a"),(0,o.kt)("p",null,(0,o.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_images/202304251431067.png",alt:null})),(0,o.kt)("p",null,"\u4e0b\u9762\u5c31\u53ef\u4ee5\u4f7f\u7528bochs\u8fd0\u884cGeekOS\u7cfb\u7edf\u4e86\uff0c\u53ef\u4ee5\u8bf4bochs\u7684\u8fd0\u884c\u4f9d\u8d56\u4e24\u4e2a\u6587\u4ef6\uff0c\u4e00\u4e2a\u662f",(0,o.kt)("strong",{parentName:"p"},"\u914d\u7f6e\u6587\u4ef6.bochsrc"),"\uff0c\u4e00\u4e2a\u662f",(0,o.kt)("strong",{parentName:"p"},"\u6620\u50cf\u6587\u4ef6fd.img"),"\uff0c\u6620\u50cf\u6587\u4ef6\u7684\u52a0\u8f7d\u8def\u5f84\u9700\u8981\u5728.bochsrc\u6587\u4ef6\u4e2d\u5b9a\u4e49\uff0c\u5728\u73af\u5883\u914d\u7f6e\u7684\u535a\u5ba2\u4e2d\u5df2\u7ecf\u4ecb\u7ecd\u8fc7\u4e86\u3002\u8fd9\u91cc\u518d\u8d34\u4e00\u4e0b\u5185\u5bb9\u3002"),(0,o.kt)("pre",null,(0,o.kt)("code",{parentName:"pre",className:"language-makefile"},"# An example .bochsrc file.\n# You will need to edit these lines to reflect your system.\nvgaromimage: file=/usr/local/share/bochs/VGABIOS-lgpl-latest\n# \u8bf7\u6839\u636e\u81ea\u5df1\u7684\u5b9e\u9645\u5b89\u88c5\u8def\u5f84\u66f4\u6539\nromimage: file=/usr/local/share/bochs/BIOS-bochs-latest\n# \u8bf7\u6839\u636e\u81ea\u5df1\u7684\u5b9e\u9645\u5b89\u88c5\u8def\u5f84\u66f4\u6539\nmegs: 8\nboot: a\nfloppya: 1_44=fd.img, status=inserted\n#floppya: 1_44=fd_aug.img, status=inserted\nlog: ./bochs.out\n# keyboard_serial_delay: 200\n# vga_update_interval: 300000\nmouse: enabled=0\nprivate_colormap: enabled=0\n# i440fxsupport: enabled=0\n# Uncomment this to write all bochs debugging messages to\n# bochs.out. This produces a lot of output, but can be very\n# useful for debugging the kernel.\n#debug: action=report\n")),(0,o.kt)("p",null,"\u5728\u8fd9\u4e2a\u76ee\u5f55\u4e0b\u6253\u5f00\u7ec8\u7aef\uff0c\u6267\u884c"),(0,o.kt)("pre",null,(0,o.kt)("code",{parentName:"pre",className:"language-bash"},"bochs\n")),(0,o.kt)("p",null,(0,o.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_images/202304251442853.png",alt:null})),(0,o.kt)("p",null,"\u9009\u62e96\uff0c\u6309\u4e0b\u56de\u8f66"),(0,o.kt)("p",null,(0,o.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_images/202304251444987.png",alt:null})),(0,o.kt)("p",null,"\u53ef\u80fd\u4f1a\u51fa\u73b0\u9ed1\u5c4f\u60c5\u51b5\uff0c\u8fd9\u662f\u56e0\u4e3a\u8fdb\u5165\u4e86\u8c03\u8bd5\u6a21\u5f0f\uff0c\u7ec8\u7aef\u6b63\u5728\u7b49\u5f85\u547d\u4ee4\uff0c\u5728\u7ec8\u7aef\u8f93\u5165"),(0,o.kt)("pre",null,(0,o.kt)("code",{parentName:"pre",className:"language-bash"},"c\n")),(0,o.kt)("p",null,"\u5373\u53ef\u5b8c\u6210bochs\u7684\u6b63\u5f0f\u542f\u52a8\uff0c\u6700\u7ec8\u7684\u6548\u679c"),(0,o.kt)("p",null,(0,o.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_images/202304251447741.png",alt:null})))}d.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/73a0803d.83100b99.js b/assets/js/73a0803d.83100b99.js new file mode 100644 index 000000000..565b8ba82 --- /dev/null +++ b/assets/js/73a0803d.83100b99.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunknpy_notebook=self.webpackChunknpy_notebook||[]).push([[1196],{3905:(a,e,t)=>{t.d(e,{Zo:()=>i,kt:()=>h});var n=t(7294);function m(a,e,t){return e in a?Object.defineProperty(a,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):a[e]=t,a}function p(a,e){var t=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable}))),t.push.apply(t,n)}return t}function s(a){for(var e=1;e=0||(m[t]=a[t]);return m}(a,e);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(a);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(a,t)&&(m[t]=a[t])}return m}var l=n.createContext({}),N=function(a){var e=n.useContext(l),t=e;return a&&(t="function"==typeof a?a(e):s(s({},e),a)),t},i=function(a){var e=N(a.components);return n.createElement(l.Provider,{value:e},a.children)},o="mdxType",k={inlineCode:"code",wrapper:function(a){var e=a.children;return n.createElement(n.Fragment,{},e)}},c=n.forwardRef((function(a,e){var t=a.components,m=a.mdxType,p=a.originalType,l=a.parentName,i=r(a,["components","mdxType","originalType","parentName"]),o=N(t),c=m,h=o["".concat(l,".").concat(c)]||o[c]||k[c]||p;return t?n.createElement(h,s(s({ref:e},i),{},{components:t})):n.createElement(h,s({ref:e},i))}));function h(a,e){var t=arguments,m=e&&e.mdxType;if("string"==typeof a||m){var p=t.length,s=new Array(p);s[0]=c;var r={};for(var l in e)hasOwnProperty.call(e,l)&&(r[l]=e[l]);r.originalType=a,r[o]="string"==typeof a?a:m,s[1]=r;for(var N=2;N{t.r(e),t.d(e,{assets:()=>l,contentTitle:()=>s,default:()=>k,frontMatter:()=>p,metadata:()=>r,toc:()=>N});var n=t(7462),m=(t(7294),t(3905));const p={},s="\u590f\u4ee4\u8425\u9762\u8bd5\u6570\u5b66\u90e8\u5206\u590d\u4e60",r={unversionedId:"Tui-Mian/\u6570\u5b66/\u590f\u4ee4\u8425\u9762\u8bd5\u6570\u5b66\u90e8\u5206\u590d\u4e60",id:"Tui-Mian/\u6570\u5b66/\u590f\u4ee4\u8425\u9762\u8bd5\u6570\u5b66\u90e8\u5206\u590d\u4e60",title:"\u590f\u4ee4\u8425\u9762\u8bd5\u6570\u5b66\u90e8\u5206\u590d\u4e60",description:"\u4e00\u3001\u7ebf\u6027\u4ee3\u6570",source:"@site/docs/Tui-Mian/\u6570\u5b66/\u590f\u4ee4\u8425\u9762\u8bd5\u6570\u5b66\u90e8\u5206\u590d\u4e60.md",sourceDirName:"Tui-Mian/\u6570\u5b66",slug:"/Tui-Mian/\u6570\u5b66/\u590f\u4ee4\u8425\u9762\u8bd5\u6570\u5b66\u90e8\u5206\u590d\u4e60",permalink:"/docs/Tui-Mian/\u6570\u5b66/\u590f\u4ee4\u8425\u9762\u8bd5\u6570\u5b66\u90e8\u5206\u590d\u4e60",draft:!1,tags:[],version:"current",frontMatter:{},sidebar:"tui_mian",previous:{title:"\u7ecf\u9a8c\u8d34\uff1a2023\u5e74\u53cc\u975e\u8ba1\u7b97\u673a\u4fdd\u7814\u7ecf\u5386",permalink:"/docs/Tui-Mian/Summary"},next:{title:"\u6982\u7387\u8bba",permalink:"/docs/Tui-Mian/\u6570\u5b66/\u6982\u7387\u8bba"}},l={},N=[{value:"\u4e00\u3001\u7ebf\u6027\u4ee3\u6570",id:"\u4e00\u7ebf\u6027\u4ee3\u6570",level:2},{value:"\u4e8c\u3001\u6982\u7387\u8bba",id:"\u4e8c\u6982\u7387\u8bba",level:2}],i={toc:N},o="wrapper";function k(a){let{components:e,...t}=a;return(0,m.kt)(o,(0,n.Z)({},i,t,{components:e,mdxType:"MDXLayout"}),(0,m.kt)("h1",{id:"\u590f\u4ee4\u8425\u9762\u8bd5\u6570\u5b66\u90e8\u5206\u590d\u4e60"},"\u590f\u4ee4\u8425\u9762\u8bd5\u6570\u5b66\u90e8\u5206\u590d\u4e60"),(0,m.kt)("h2",{id:"\u4e00\u7ebf\u6027\u4ee3\u6570"},"\u4e00\u3001\u7ebf\u6027\u4ee3\u6570"),(0,m.kt)("p",null,(0,m.kt)("strong",{parentName:"p"},"\u7ebf\u6027\u76f8\u5173\u4e0e\u7ebf\u6027\u65e0\u5173\uff1a"),"\u5411\u91cf\u7ec4\u4e2d\u7684\u4efb\u4e00\u5411\u91cf\u90fd\u4e0d\u80fd\u88ab\u5176\u5b83\u5411\u91cf\u7ebf\u6027\u8868\u793a\uff0c\u5c31\u8bf4\u5411\u91cf\u7ec4\u7ebf\u6027\u65e0\u5173\uff1b\u5426\u5219\u5c31\u662f\u7ebf\u6027\u76f8\u5173\u3002"),(0,m.kt)("p",null,(0,m.kt)("strong",{parentName:"p"},"\u77e9\u9635\u8f6c\u7f6e\uff1a"),"\u5c06\u77e9\u9635\u7684\u884c\u548c\u5217\u4e92\u76f8\u4ea4\u6362"),(0,m.kt)("p",null,(0,m.kt)("strong",{parentName:"p"},"\u77e9\u9635\u6c42\u9006\uff1a"),"\u5bf9\u4e8e\u65b9\u9635A\uff0c\u82e5\u5b58\u5728\u65b9\u9635B\u4f7f\u5f97AB=BA=\u5355\u4f4d\u65b9\u9635I\uff0c\u5219\u65b9\u9635B\u4e3a\u65b9\u9635A\u7684\u9006\u77e9\u9635\uff0c\u8bb0\u4e3a",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("msup",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msup"},"A"),(0,m.kt)("mrow",{parentName:"msup"},(0,m.kt)("mo",{parentName:"mrow"},"\u2212"),(0,m.kt)("mn",{parentName:"mrow"},"1")))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"A^{-1}")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.8141em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"A"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.8141em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-3.063em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"\u2212"),(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"1")))))))))))))),(0,m.kt)("ol",null,(0,m.kt)("li",{parentName:"ol"},(0,m.kt)("p",{parentName:"li"},(0,m.kt)("strong",{parentName:"p"},"\u7ebf\u6027\u4ee3\u6570\u4e2d\u7684\u521d\u7b49\u884c\u53d8\u6362\u3002")),(0,m.kt)("ol",{parentName:"li"},(0,m.kt)("li",{parentName:"ol"},"\u4ea4\u6362\u4e24\u884c"),(0,m.kt)("li",{parentName:"ol"},"\u7528\u975e\u96f6\u5e38\u6570\u4e58\u4ee5\u67d0\u4e00\u884c"),(0,m.kt)("li",{parentName:"ol"},"\u7528\u4e00\u884c\u7684\u500d\u6570\u52a0\u5230\u53e6\u4e00\u884c\u4e0a"))),(0,m.kt)("li",{parentName:"ol"},(0,m.kt)("p",{parentName:"li"},(0,m.kt)("strong",{parentName:"p"},"\u5982\u4f55\u7406\u89e3\u77e9\u9635\u7684\u79e9\u3002")),(0,m.kt)("p",{parentName:"li"},"\u77e9\u9635\u7684\u79e9\u662f\u6307\u77e9\u9635\u7684\u5217\u7a7a\u95f4\uff08\u6216\u884c\u7a7a\u95f4\uff09\u7684\u7ef4\u6570\uff0c\u7b80\u800c\u8a00\u4e4b\u662f\u77e9\u9635\u4e2d\u6240\u6709\u975e\u96f6\u884c\uff08\u6216\u5217\uff09\u5411\u91cf\u6784\u6210\u7684\u96c6\u5408\u6240\u7ec4\u6210\u7684\u6700\u5927\u7ebf\u6027\u65e0\u5173\u7ec4\u7684\u5411\u91cf\u4e2a\u6570\u3002"),(0,m.kt)("admonition",{parentName:"li",type:"tip"},(0,m.kt)("p",{parentName:"admonition"},"\u5b8b\u6d69\u516b\u5b57\uff1a",(0,m.kt)("strong",{parentName:"p"},"\u975e\u96f6\u5b50\u5f0f\u7684\u6700\u9ad8\u9636\u6570")),(0,m.kt)("p",{parentName:"admonition"},"\u4efb\u610f\u77e9\u9635\u7684\u884c\u79e9\u90fd\u7b49\u4e8e\u5217\u79e9\u3002"))),(0,m.kt)("li",{parentName:"ol"},(0,m.kt)("p",{parentName:"li"},(0,m.kt)("strong",{parentName:"p"},"\u77e9\u9635\u7684\u79e9\u4e0e\u7ebf\u6027\u65b9\u7a0b\u7ec4\u89e3\u7684\u5173\u7cfb\u3002")),(0,m.kt)("p",{parentName:"li"},"\u5bf9\u4e8en\u5143\u7ebf\u6027\u65b9\u7a0b\u7ec4\u800c\u8a00\uff1a"),(0,m.kt)("ol",{parentName:"li"},(0,m.kt)("li",{parentName:"ol"},(0,m.kt)("p",{parentName:"li"},"\u5f53\u7cfb\u6570\u77e9\u9635\u7684\u79e9\u7b49\u4e8e\u589e\u5e7f\u77e9\u9635\u7684\u79e9\u4e14\u79e9\u7b49\u4e8en\u65f6\uff0c\u6709\u552f\u4e00\u89e3")),(0,m.kt)("li",{parentName:"ol"},(0,m.kt)("p",{parentName:"li"},"\u5f53\u7cfb\u6570\u77e9\u9635\u7684\u79e9\u7b49\u4e8e\u589e\u5e7f\u77e9\u9635\u7684\u79e9\u4e14\u79e9\u5927\u4e8en\u65f6\uff0c\u6709\u65e0\u7a77\u591a\u89e3")),(0,m.kt)("li",{parentName:"ol"},(0,m.kt)("p",{parentName:"li"},"\u5f53\u7cfb\u6570\u77e9\u9635\u7684\u79e9\u4e0d\u7b49\u4e8e\u589e\u5e7f\u77e9\u9635\u7684\u79e9\u65f6\uff0c\u65e0\u89e3"),(0,m.kt)("admonition",{parentName:"li",type:"tip"},(0,m.kt)("p",{parentName:"admonition"},"\u5f53\u7cfb\u6570\u77e9\u9635\u7684\u79e9\u5c0f\u4e8e\u589e\u5e7f\u77e9\u9635\u7684\u79e9\u65f6\uff0c\u8bf4\u660e\u7cfb\u6570\u77e9\u9635\u4e2d\u7684\u67d0\u4e00\u5217\u5411\u91cf\uff08\u6216\u884c\u5411\u91cf\uff09\u53ef\u4ee5\u88ab\u5176\u4ed6\u5217\u5411\u91cf\uff08\u6216\u884c\u5411\u91cf\uff09\u7ebf\u6027\u8868\u793a\uff0c\u6b64\u65f6\u8be5\u884c\u4e0d\u80fd\u63d0\u4f9b\u989d\u5916\u7684\u7ebf\u6027\u72ec\u7acb\u4fe1\u606f"))))),(0,m.kt)("li",{parentName:"ol"},(0,m.kt)("p",{parentName:"li"},(0,m.kt)("strong",{parentName:"p"},"\u7b80\u8ff0\u5411\u91cf\u7ec4\u7ebf\u6027\u65e0\u5173\u7684\u542b\u4e49\u3002")),(0,m.kt)("p",{parentName:"li"},"\u542b\u4e49\uff1a\u82e5\u4e00\u4e2a\u5411\u91cf\u7ec4\u662f\u7ebf\u6027\u65e0\u5173\u7684\uff0c\u5219\u8be5\u5411\u91cf\u7ec4\u4e2d\u7684\u6bcf\u4e2a\u5411\u91cf\u90fd\u4e0d\u80fd\u8868\u793a\u6210\u5176\u4ed6\u5411\u91cf\u7684\u7ebf\u6027\u7ec4\u5408\u3002"),(0,m.kt)("p",{parentName:"li"},"\u610f\u4e49\uff1a\u5982\u679c\u4e00\u4e2a\u5411\u91cf\u7ec4\u7ebf\u6027\u65e0\u5173\uff0c\u90a3\u4e48\u8be5\u5411\u91cf\u7ec4\u6240\u5f20\u6210\u7684\u7a7a\u95f4\u5c31\u662f\u4e00\u4e2a\u6700\u5c0f\u7ef4\u5ea6\u7684\u5411\u91cf\u7a7a\u95f4\uff0c\u5e76\u4e14\u8be5\u5411\u91cf\u7a7a\u95f4\u4e2d\u7684\u4efb\u4f55\u5411\u91cf\u90fd\u53ef\u7531\u8fd9\u4e9b\u5411\u91cf\u7ebf\u6027\u7ec4\u5408\u8868\u793a\u3002"),(0,m.kt)("p",{parentName:"li"},"\u5224\u5b9a\u65b9\u6cd5\uff1a\u5982\u679c\u4e00\u4e2a\u5411\u91cf\u7ec4\u4e2d\u7684\u6240\u6709\u5411\u91cf\u90fd\u4e0d\u53ef\u4ee5\u7531\u5176\u4ed6\u5411\u91cf\u7ebf\u6027\u7ec4\u5408\u5f97\u5230\uff0c\u5219\u79f0\u8be5\u5411\u91cf\u7ec4\u4e3a\u7ebf\u6027\u65e0\u5173\u7684\u3002\u5426\u5219\uff0c\u5982\u679c\u5b58\u5728\u67d0\u4e2a\u5411\u91cf\u53ef\u4ee5\u8868\u793a\u6210\u5176\u4ed6\u5411\u91cf\u7684\u7ebf\u6027\u7ec4\u5408\uff0c\u5219\u8be5\u5411\u91cf\u7ec4\u5c31\u4e0d\u662f\u7ebf\u6027\u65e0\u5173\u7684\u3002")),(0,m.kt)("li",{parentName:"ol"},(0,m.kt)("p",{parentName:"li"},(0,m.kt)("strong",{parentName:"p"},"\u89e3\u91ca\u6b63\u5b9a\u77e9\u9635\u4ee5\u53ca\u534a\u6b63\u5b9a\u77e9\u9635\u3002"))),(0,m.kt)("li",{parentName:"ol"},(0,m.kt)("p",{parentName:"li"},(0,m.kt)("strong",{parentName:"p"},"\u7b80\u8ff0\u7279\u5f81\u503c\u7684\u542b\u4e49\u3002")),(0,m.kt)("p",{parentName:"li"},"\u7279\u5f81\u503c\u63cf\u8ff0\u4e86\u77e9\u9635\u5728\u7279\u5b9a\u65b9\u5411\uff08\u7279\u5f81\u5411\u91cf\u65b9\u5411\uff09\u4e0a\u7684\u7f29\u653e\u56e0\u5b50\uff0c\u7279\u5f81\u5411\u91cf\u8868\u793a\u77e9\u9635\u5728\u8fd9\u4e2a\u7279\u5b9a\u65b9\u5411\u4e0a\u7684\u4e0d\u53d8\u6027\u3002")),(0,m.kt)("li",{parentName:"ol"},(0,m.kt)("p",{parentName:"li"},(0,m.kt)("strong",{parentName:"p"},"\u7b80\u8ff0\u77e9\u9635\u5206\u89e3\u7684\u7269\u7406\u610f\u4e49\u3002")),(0,m.kt)("p",{parentName:"li"},"\u77e9\u9635\u5206\u89e3\u662f\u5c06\u4e00\u4e2a\u77e9\u9635\u8868\u793a\u4e3a\u4e00\u4e9b\u7279\u5b9a\u5f62\u5f0f\u7684\u77e9\u9635\u4e58\u79ef\u7684\u8fc7\u7a0b\u3002"),(0,m.kt)("p",{parentName:"li"},"\u77e9\u9635\u5206\u89e3\u7684\u79cd\u7c7b\u4ee5\u53ca\u7269\u7406\u610f\u4e49\uff1a"),(0,m.kt)("ul",{parentName:"li"},(0,m.kt)("li",{parentName:"ul"},"LU\u5206\u89e3\uff1a\u5c06\u77e9\u9635\u5206\u89e3\u4e3a\u4e00\u4e2a\u4e0b\u4e09\u89d2\u77e9\u9635\u548c\u4e00\u4e2a\u4e0a\u4e09\u89d2\u77e9\u9635\u7684\u4e58\u79ef\u3002\u7269\u7406\u610f\u4e49\u5305\u62ec\u89e3\u7ebf\u6027\u65b9\u7a0b\u7ec4\u3001\u8ba1\u7b97\u77e9\u9635\u7684\u884c\u5217\u5f0f\u548c\u9006\u77e9\u9635\u7b49\u3002"),(0,m.kt)("li",{parentName:"ul"},"QR\u5206\u89e3\uff1a\u5c06\u77e9\u9635\u5206\u89e3\u4e3a\u4e00\u4e2a\u6b63\u4ea4\u77e9\u9635\u548c\u4e00\u4e2a\u4e0a\u4e09\u89d2\u77e9\u9635\u7684\u4e58\u79ef\u3002\u7269\u7406\u610f\u4e49\u5305\u62ec\u6700\u5c0f\u4e8c\u4e58\u95ee\u9898\u3001\u77e9\u9635\u7684\u7279\u5f81\u503c\u8ba1\u7b97\u7b49\u3002"),(0,m.kt)("li",{parentName:"ul"},"\u7279\u5f81\u503c\u5206\u89e3\uff1a\u5c06\u77e9\u9635\u5206\u89e3\u4e3a\u4e00\u4e2a\u7279\u5f81\u5411\u91cf\u77e9\u9635\u548c\u4e00\u4e2a\u5bf9\u89d2\u77e9\u9635\u7684\u4e58\u79ef\u3002\u7269\u7406\u610f\u4e49\u5305\u62ec\u77e9\u9635\u7684\u5e42\u3001\u6307\u6570\u548c\u5bf9\u79f0\u77e9\u9635\u7684\u5bf9\u89d2\u5316\u7b49\u3002"),(0,m.kt)("li",{parentName:"ul"},"\u5947\u5f02\u503c\u5206\u89e3\uff08SVD\uff09\uff1a\u5c06\u77e9\u9635\u5206\u89e3\u4e3a\u4e00\u4e2a\u6b63\u4ea4\u77e9\u9635\u3001\u4e00\u4e2a\u5bf9\u89d2\u77e9\u9635\u548c\u4e00\u4e2a\u6b63\u4ea4\u77e9\u9635\u7684\u4e58\u79ef\u3002\u7269\u7406\u610f\u4e49\u5305\u62ec\u964d\u7ef4\u3001\u77e9\u9635\u903c\u8fd1\u548c\u56fe\u50cf\u538b\u7f29\u7b49\u3002")))),(0,m.kt)("h2",{id:"\u4e8c\u6982\u7387\u8bba"},"\u4e8c\u3001\u6982\u7387\u8bba"),(0,m.kt)("ol",null,(0,m.kt)("li",{parentName:"ol"},(0,m.kt)("p",{parentName:"li"},(0,m.kt)("strong",{parentName:"p"},"\u7b80\u8ff0\u5927\u6570\u5b9a\u7406\u3002")),(0,m.kt)("p",{parentName:"li"},"\u5927\u6570\u5b9a\u7406\u63cf\u8ff0\u4e86\u5927\u6837\u672c\u60c5\u51b5\u4e0b\u968f\u673a\u53d8\u91cf\u7684\u5747\u503c\u4e0e\u5176\u671f\u671b\u503c\u4e4b\u95f4\u7684\u5173\u7cfb\u3002\u5bf9\u4e8e",(0,m.kt)("strong",{parentName:"p"},"\u72ec\u7acb\u540c\u5206\u5e03"),"\u7684\u968f\u673a\u53d8\u91cf\u5e8f\u5217\uff0c\u968f\u7740\u6837\u672c\u6570\u91cf\u7684\u589e\u52a0\uff0c\u6837\u672c\u5747\u503c\u4f1a\u4ee5\u8f83\u9ad8\u7684\u6982\u7387\u63a5\u8fd1\u5176\u671f\u671b\u503c\u3002")),(0,m.kt)("li",{parentName:"ol"},(0,m.kt)("p",{parentName:"li"},(0,m.kt)("strong",{parentName:"p"},"\u7b80\u8ff0\u4e2d\u5fc3\u6781\u9650\u5b9a\u7406\u3002")),(0,m.kt)("p",{parentName:"li"},"\u5f53\u72ec\u7acb\u968f\u673a\u53d8\u91cf\u7684\u6570\u91cf\u8db3\u591f\u5927\u65f6\uff0c\u5b83\u4eec\u7684\u548c\uff08\u6216\u5e73\u5747\u503c\uff09\u7684\u5206\u5e03\u4f1a\u9010\u6e10\u63a5\u8fd1\u4e00\u4e2a\u6b63\u6001\u5206\u5e03\u3002",(0,m.kt)("strong",{parentName:"p"},"\u5373\u4f7f\u539f\u59cb\u968f\u673a\u53d8\u91cf\u4e0d\u670d\u4ece\u6b63\u6001\u5206\u5e03"),"\uff0c\u4f46\u5f53\u6837\u672c\u5bb9\u91cf\u8db3\u591f\u5927\u65f6\uff0c\u548c\uff08\u6216\u5e73\u5747\u503c\uff09\u7684\u5206\u5e03\u4ecd\u7136\u5448\u73b0\u51fa\u6b63\u6001\u5206\u5e03\u7684\u7279\u5f81\u3002")),(0,m.kt)("li",{parentName:"ol"},(0,m.kt)("p",{parentName:"li"},(0,m.kt)("strong",{parentName:"p"},"\u4ec0\u4e48\u662f\u5168\u6982\u7387\u516c\u5f0f\u3002")),(0,m.kt)("p",{parentName:"li"},"\u5bf9\u4e8e\u4e8b\u4ef6A\u800c\u8a00\uff0c\u5047\u8bbe\u6709\u4e00\u7ec4",(0,m.kt)("strong",{parentName:"p"},"\u4e92\u65a5\u4e14\u7a77\u5c3d"),"\u7684\u6761\u4ef6\u4e8b\u4ef6B\uff0c\u5219\u4e8b\u4ef6A\u7684\u6982\u7387\u7b49\u4e8e\u4e8b\u4ef6A\u5728\u6bcf\u4e2a\u6761\u4ef6\u4e8b\u4ef6\u4e0b\u53d1\u751f\u7684\u6982\u7387\u4e0e\u8be5\u6761\u4ef6\u4e8b\u4ef6\u53d1\u751f\u6982\u7387\u7684\u4e58\u79ef\u548c\u3002")),(0,m.kt)("li",{parentName:"ol"},(0,m.kt)("p",{parentName:"li"},(0,m.kt)("strong",{parentName:"p"},"\u4ec0\u4e48\u662f\u6700\u5927\u4f3c\u7136\u4f30\u8ba1\u3002")),(0,m.kt)("p",{parentName:"li"},"\u57fa\u672c\u601d\u60f3\u662f\u5728\u5df2\u77e5\u89c2\u6d4b\u6570\u636e\u7684\u60c5\u51b5\u4e0b\uff0c\u901a\u8fc7\u8c03\u6574\u53c2\u6570\u7684\u53d6\u503c\uff0c\u627e\u5230\u4f7f\u5f97\u89c2\u6d4b\u6570\u636e\u51fa\u73b0\u6982\u7387\u6700\u5927\u7684\u53c2\u6570\u503c\u3002"),(0,m.kt)("p",{parentName:"li"},"\u5927\u81f4\u8fc7\u7a0b\uff1a"),(0,m.kt)("ol",{parentName:"li"},(0,m.kt)("li",{parentName:"ol"},"\u6784\u5efa\u53c2\u6570\u5316\u7684\u6982\u7387\u6a21\u578b\uff0c\u5373\u6784\u5efa\u4f3c\u7136\u51fd\u6570\uff0c\u8868\u793a\u5728\u7ed9\u5b9a\u53c2\u6570\u4e0b\u89c2\u6d4b\u6570\u636e\u51fa\u73b0\u7684\u6982\u7387"),(0,m.kt)("li",{parentName:"ol"},"\u53d6\u4f3c\u7136\u51fd\u6570\u7684\u5bf9\u6570\uff0c\u65b9\u4fbf\u8ba1\u7b97\u4e0e\u4f18\u5316"),(0,m.kt)("li",{parentName:"ol"},"\u6700\u5927\u5316\u4f3c\u7136\u51fd\u6570\uff0c\u6c42\u89e3\u53c2\u6570\u7684\u6700\u4f18\u503c"))),(0,m.kt)("li",{parentName:"ol"},(0,m.kt)("p",{parentName:"li"},(0,m.kt)("strong",{parentName:"p"},"\u7b80\u8ff0\u8d1d\u53f6\u65af\u5b9a\u7406\u3002")),(0,m.kt)("p",{parentName:"li"},"\u8d1d\u53f6\u65af\u5b9a\u7406\u63cf\u8ff0\u4e86\u5728\u7ed9\u5b9a\u89c2\u6d4b\u6570\u636e\u7684\u6761\u4ef6\u4e0b\uff0c\u8ba1\u7b97\u4e8b\u4ef6\u7684\u540e\u9a8c\u6982\u7387\u7684\u65b9\u6cd5\u3002"),(0,m.kt)("div",{parentName:"li",className:"math math-display"},(0,m.kt)("span",{parentName:"div",className:"katex-display"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"A"),(0,m.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"\u2223"),(0,m.kt)("mi",{parentName:"mrow"},"B"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("mfrac",{parentName:"mrow"},(0,m.kt)("mrow",{parentName:"mfrac"},(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"B"),(0,m.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"\u2223"),(0,m.kt)("mi",{parentName:"mrow"},"A"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"\u2217"),(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"A"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,m.kt)("mrow",{parentName:"mfrac"},(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"B"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")")))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"P(A|B) = \\frac{P(B|A) * P(A)}{P(B)}")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"P"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"A"),(0,m.kt)("span",{parentName:"span",className:"mord"},"\u2223"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05017em"}},"B"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"="),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"2.363em",verticalAlign:"-0.936em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mopen nulldelimiter"}),(0,m.kt)("span",{parentName:"span",className:"mfrac"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.427em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.314em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"P"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05017em"}},"B"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.23em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"frac-line",style:{borderBottomWidth:"0.04em"}})),(0,m.kt)("span",{parentName:"span",style:{top:"-3.677em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"P"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05017em"}},"B"),(0,m.kt)("span",{parentName:"span",className:"mord"},"\u2223"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"A"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"\u2217"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"P"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"A"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.936em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"mclose nulldelimiter"}))))))),(0,m.kt)("p",{parentName:"li"},"\u5176\u4e2d\uff1a"),(0,m.kt)("ul",{parentName:"li"},(0,m.kt)("li",{parentName:"ul"},(0,m.kt)("span",{parentName:"li",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"A"),(0,m.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"\u2223"),(0,m.kt)("mi",{parentName:"mrow"},"B"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"P(A|B)")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"P"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"A"),(0,m.kt)("span",{parentName:"span",className:"mord"},"\u2223"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05017em"}},"B"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"))))),"\u8868\u793a\u5728\u89c2\u6d4b\u5230\u4e8b\u4ef6 B \u53d1\u751f\u7684\u6761\u4ef6\u4e0b\uff0c\u4e8b\u4ef6 A \u53d1\u751f\u7684\u6982\u7387\uff0c\u79f0\u4e3a\u540e\u9a8c\u6982\u7387"),(0,m.kt)("li",{parentName:"ul"},(0,m.kt)("span",{parentName:"li",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"B"),(0,m.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"\u2223"),(0,m.kt)("mi",{parentName:"mrow"},"A"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"P(B|A)")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"P"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05017em"}},"B"),(0,m.kt)("span",{parentName:"span",className:"mord"},"\u2223"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"A"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"))))),"\u8868\u793a\u5728\u4e8b\u4ef6 A \u53d1\u751f\u7684\u6761\u4ef6\u4e0b\uff0c\u4e8b\u4ef6 B \u53d1\u751f\u7684\u6982\u7387\uff0c\u79f0\u4e3a\u4f3c\u7136\uff1b"),(0,m.kt)("li",{parentName:"ul"},(0,m.kt)("span",{parentName:"li",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"A"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"P(A)")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"P"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"A"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"))))),"\u548c",(0,m.kt)("span",{parentName:"li",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"B"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"P(B)")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"P"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05017em"}},"B"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"))))),"\u5206\u522b\u662f\u4e8b\u4ef6 A \u548c\u4e8b\u4ef6 B \u72ec\u7acb\u53d1\u751f\u7684\u5148\u9a8c\u6982\u7387\u3002")),(0,m.kt)("p",{parentName:"li"},"\u4f18\u70b9\uff1a\u5b83\u80fd\u591f\u5c06\u4e3b\u89c2\u5148\u9a8c\u77e5\u8bc6\u4e0e\u89c2\u6d4b\u6570\u636e\u76f8\u7ed3\u5408\uff0c\u901a\u8fc7\u4e0d\u65ad\u66f4\u65b0\u540e\u9a8c\u6982\u7387\u6765\u8fdb\u884c\u63a8\u65ad\u548c\u51b3\u7b56\u3002")),(0,m.kt)("li",{parentName:"ol"},(0,m.kt)("p",{parentName:"li"},(0,m.kt)("strong",{parentName:"p"},"P\u95ee\u9898\u3001NP\u95ee\u9898\u4ee5\u53caNP\u5b8c\u5168\u95ee\u9898")),(0,m.kt)("admonition",{parentName:"li",type:"tip"},(0,m.kt)("p",{parentName:"admonition"},"P stands for Polynomial"),(0,m.kt)("p",{parentName:"admonition"},"\u610f\u4e3a\u591a\u9879\u5f0f")),(0,m.kt)("p",{parentName:"li"},"P\u95ee\u9898\u662f\u53ef\u4ee5\u5728\u591a\u9879\u5f0f\u65f6\u95f4\u5185\u89e3\u51b3\u7684\u95ee\u9898"),(0,m.kt)("p",{parentName:"li"},"NP\u95ee\u9898\u662f\u53ef\u4ee5\u5728\u591a\u9879\u5f0f\u65f6\u95f4\u5185\u9a8c\u8bc1\u89e3\u7684\u6b63\u786e\u6027\u7684\u95ee\u9898"),(0,m.kt)("p",{parentName:"li"},"NP\u5b8c\u5168\u95ee\u9898\u662f\u4e00\u7c7b\u7279\u6b8a\u7684NP\u95ee\u9898\uff0c\u6ca1\u6709\u5df2\u77e5\u7684\u9ad8\u6548\u89e3\u51b3\u7b97\u6cd5\uff0c\u5e76\u4e14\u53ef\u4ee5\u5728\u591a\u9879\u5f0f\u65f6\u95f4\u5185\u5f52\u7ea6\u5230\u4efb\u4f55\u5176\u4ed6\u7684NP\u95ee\u9898"))))}k.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/74465ad7.796c54df.js b/assets/js/74465ad7.796c54df.js new file mode 100644 index 000000000..497b7db84 --- /dev/null +++ b/assets/js/74465ad7.796c54df.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunknpy_notebook=self.webpackChunknpy_notebook||[]).push([[5321],{3905:(e,t,r)=>{r.d(t,{Zo:()=>u,kt:()=>m});var n=r(7294);function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function l(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var p=n.createContext({}),c=function(e){var t=n.useContext(p),r=t;return e&&(r="function"==typeof e?e(t):l(l({},t),e)),r},u=function(e){var t=c(e.components);return n.createElement(p.Provider,{value:t},e.children)},s="mdxType",f={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},y=n.forwardRef((function(e,t){var r=e.components,o=e.mdxType,a=e.originalType,p=e.parentName,u=i(e,["components","mdxType","originalType","parentName"]),s=c(r),y=o,m=s["".concat(p,".").concat(y)]||s[y]||f[y]||a;return r?n.createElement(m,l(l({ref:t},u),{},{components:r})):n.createElement(m,l({ref:t},u))}));function m(e,t){var r=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var a=r.length,l=new Array(a);l[0]=y;var i={};for(var p in t)hasOwnProperty.call(t,p)&&(i[p]=t[p]);i.originalType=e,i[s]="string"==typeof e?e:o,l[1]=i;for(var c=2;c{r.r(t),r.d(t,{assets:()=>p,contentTitle:()=>l,default:()=>f,frontMatter:()=>a,metadata:()=>i,toc:()=>c});var n=r(7462),o=(r(7294),r(3905));const a={},l="\u6c60\u5316\u5c42",i={unversionedId:"Deep-Learning/\u57fa\u7840\u77e5\u8bc6/PoolingLayer",id:"Deep-Learning/\u57fa\u7840\u77e5\u8bc6/PoolingLayer",title:"\u6c60\u5316\u5c42",description:"\u4e00\u3001\u5377\u79ef\u5bf9\u50cf\u7d20\u4f4d\u7f6e\u4fe1\u606f\u662f\u654f\u611f\u7684",source:"@site/docs/Deep-Learning/3-\u57fa\u7840\u77e5\u8bc6/PoolingLayer.md",sourceDirName:"Deep-Learning/3-\u57fa\u7840\u77e5\u8bc6",slug:"/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/PoolingLayer",permalink:"/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/PoolingLayer",draft:!1,tags:[],version:"current",frontMatter:{},sidebar:"deep_learning",previous:{title:"Perceptron",permalink:"/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/Perceptron"},next:{title:"PyTorch\u57fa\u7840",permalink:"/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/PytorchBasics"}},p={},c=[{value:"\u4e00\u3001\u5377\u79ef\u5bf9\u50cf\u7d20\u4f4d\u7f6e\u4fe1\u606f\u662f\u654f\u611f\u7684",id:"\u4e00\u5377\u79ef\u5bf9\u50cf\u7d20\u4f4d\u7f6e\u4fe1\u606f\u662f\u654f\u611f\u7684",level:2},{value:"\u4e8c\u3001\u6c60\u5316\u5c42\u7684\u4f5c\u7528",id:"\u4e8c\u6c60\u5316\u5c42\u7684\u4f5c\u7528",level:2},{value:"\u4e09\u3001\u6c60\u5316\u7684\u5b9e\u73b0",id:"\u4e09\u6c60\u5316\u7684\u5b9e\u73b0",level:2}],u={toc:c},s="wrapper";function f(e){let{components:t,...r}=e;return(0,o.kt)(s,(0,n.Z)({},u,r,{components:t,mdxType:"MDXLayout"}),(0,o.kt)("h1",{id:"\u6c60\u5316\u5c42"},"\u6c60\u5316\u5c42"),(0,o.kt)("h2",{id:"\u4e00\u5377\u79ef\u5bf9\u50cf\u7d20\u4f4d\u7f6e\u4fe1\u606f\u662f\u654f\u611f\u7684"},"\u4e00\u3001\u5377\u79ef\u5bf9\u50cf\u7d20\u4f4d\u7f6e\u4fe1\u606f\u662f\u654f\u611f\u7684"),(0,o.kt)("p",null,"\u5377\u79ef\u5c42\u4f1a\u5bf9\u8f93\u5165\u7684\u5c40\u90e8\u533a\u57df\u8fdb\u884c\u5377\u79ef\u64cd\u4f5c\uff0c\u56e0\u6b64\u5bf9\u4e8e\u8f93\u5165\u56fe\u50cf\u4e2d\u7684\u6bcf\u4e2a\u4f4d\u7f6e\u90fd\u4f1a\u4ea7\u751f\u4e00\u4e2a\u54cd\u5e94\u3002\u7136\u800c\uff0c\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\uff0c\u6211\u4eec\u5e76\u4e0d\u5173\u5fc3\u8f93\u5165\u56fe\u50cf\u4e2d\u6bcf\u4e2a\u4f4d\u7f6e\u7684\u7ec6\u8282\uff0c\u800c\u53ea\u662f\u60f3\u83b7\u53d6\u8be5\u533a\u57df\u7684\u4e00\u4e9b\u91cd\u8981\u7279\u5f81\u3002"),(0,o.kt)("p",null,"\u5047\u8bbe\u6211\u4eec\u60f3\u5206\u7c7b\u4e00\u5f20\u732b\u7684\u56fe\u7247\uff0c\u90a3\u4e48\u6211\u4eec\u53ef\u80fd\u53ea\u9700\u8981\u63d0\u53d6\u51fa\u5b83\u7684\u773c\u775b\u3001\u9f3b\u5b50\u3001\u5634\u5df4\u548c\u8033\u6735\u7b49\u7279\u5f81\uff0c\u800c\u4e0d\u5fc5\u8003\u8651\u8fd9\u4e9b\u7279\u5f81\u5728\u56fe\u50cf\u4e2d\u7684\u7cbe\u786e\u4f4d\u7f6e\u3002"),(0,o.kt)("hr",null),(0,o.kt)("h2",{id:"\u4e8c\u6c60\u5316\u5c42\u7684\u4f5c\u7528"},"\u4e8c\u3001\u6c60\u5316\u5c42\u7684\u4f5c\u7528"),(0,o.kt)("p",null,"\u6c60\u5316\u5c42\u901a\u8fc7\u5bf9\u8f93\u5165\u7684\u5c40\u90e8\u533a\u57df\u8fdb\u884c\u964d\u91c7\u6837\u64cd\u4f5c\uff0c\u51cf\u5c11\u4e86\u7279\u5f81\u56fe\u7684\u5927\u5c0f\uff0c\u4ece\u800c",(0,o.kt)("strong",{parentName:"p"},"\u4f7f\u5f97\u6a21\u578b\u5bf9\u4e8e\u8f93\u5165\u4f4d\u7f6e\u7684\u5fae\u5c0f\u53d8\u5316\u66f4\u52a0\u9c81\u68d2"),"\u3002\u4f8b\u5982\uff0c\u5982\u679c\u6211\u4eec\u5c06\u4e00\u4e2a\u5bf9\u8c61\u7a0d\u5fae\u5e73\u79fb\u4e00\u70b9\uff0c\u5b83\u4f9d\u7136\u53ef\u4ee5\u88ab\u6b63\u786e\u5730\u8bc6\u522b\uff0c\u56e0\u4e3a\u6c60\u5316\u5c42\u53ef\u4ee5\u4fdd\u7559\u8f93\u5165\u56fe\u50cf\u7684\u5173\u952e\u7279\u5f81\uff0c\u800c\u5ffd\u7565\u6389\u5fae\u5c0f\u7684\u4f4d\u7f6e\u53d8\u5316\u3002"),(0,o.kt)("p",null,"\u4f46\u662f\u9700\u8981\u6ce8\u610f\u7684\u662f\uff0c\u5f53\u6c60\u5316\u7684\u6b65\u5e45\u548c\u6c60\u5316\u533a\u57df\u7684\u5927\u5c0f\u8fc7\u5927\u65f6\uff0c\u4f1a\u5bfc\u81f4\u6a21\u578b\u4e22\u5931\u8f83\u591a\u7684\u7ec6\u8282\u4fe1\u606f\uff0c\u4ece\u800c\u5f71\u54cd\u6a21\u578b\u6027\u80fd\u3002\u56e0\u6b64\uff0c\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\uff0c\u9700\u8981\u6839\u636e\u5177\u4f53\u4efb\u52a1\u6765\u9009\u62e9\u9002\u5f53\u7684\u6c60\u5316\u53c2\u6570\u3002"),(0,o.kt)("ol",null,(0,o.kt)("li",{parentName:"ol"},(0,o.kt)("strong",{parentName:"li"},"\u7f13\u89e3\u5377\u79ef\u5c42\u5bf9\u4f4d\u7f6e\u7684\u654f\u611f\u6027"),"\uff0c\u63d0\u9ad8\u9c81\u68d2\uff1a\u6c60\u5316\u64cd\u4f5c\u901a\u5e38\u7528\u4e8e\u5377\u79ef\u5c42\u4e4b\u540e\uff0c\u4f7f\u6a21\u578b\u5bf9\u4e8e\u8f93\u5165\u4f4d\u7f6e\u7684\u5fae\u5c0f\u53d8\u5316\u66f4\u52a0\u9c81\u68d2\uff0c\u51cf\u5c11\u56fe\u50cf\u4e2d\u7684\u566a\u58f0\u548c\u5197\u4f59\u4fe1\u606f"),(0,o.kt)("li",{parentName:"ol"},"\u51cf\u5c0f\u7279\u5f81\u56fe\u5927\u5c0f\uff1a\u6c60\u5316\u64cd\u4f5c\u4f1a\u901a\u8fc7\u5728\u7279\u5b9a\u4f4d\u7f6e\u4e0a\u5408\u5e76\u7279\u5f81\u503c\u6765\u7f29\u5c0f\u8f93\u5165\u7279\u5f81\u56fe\u7684\u7a7a\u95f4\u5927\u5c0f\uff0c\u964d\u4f4e\u8ba1\u7b97\u5f00\u9500\u3002"),(0,o.kt)("li",{parentName:"ol"},"\u51cf\u5c11\u53c2\u6570\u6570\u91cf\uff1a\u6c60\u5316\u64cd\u4f5c\u51cf\u5c0f\u4e86\u7279\u5f81\u56fe\u7684\u7a7a\u95f4\u5927\u5c0f\uff0c\u4ece\u800c\u4e5f\u51cf\u5c0f\u4e86\u9700\u8981\u8bad\u7ec3\u7684\u6743\u91cd\u53c2\u6570\u6570\u91cf\uff0c\u66f4\u5bb9\u6613\u8bad\u7ec3\u548c\u4f18\u5316\u3002")),(0,o.kt)("hr",null),(0,o.kt)("h2",{id:"\u4e09\u6c60\u5316\u7684\u5b9e\u73b0"},"\u4e09\u3001\u6c60\u5316\u7684\u5b9e\u73b0"),(0,o.kt)("p",null,"\u6c60\u5316\u5c42\u5c06\u8f93\u5165\u7279\u5f81\u56fe\u5206\u5272\u6210\u82e5\u5e72\u4e2a\u533a\u57df\uff0c\u7136\u540e\u5bf9\u6bcf\u4e2a\u533a\u57df\u8fdb\u884c\u6c47\u805a\u64cd\u4f5c\uff0c\u5c06\u8be5\u533a\u57df\u5185\u7684\u7279\u5f81\u503c\u5408\u5e76\u6210\u4e00\u4e2a\u503c\u3002\u8fd9\u4e2a\u64cd\u4f5c\u53ef\u4ee5\u4f7f\u7528\u4e0d\u540c\u7684\u65b9\u6cd5\u5b9e\u73b0\uff0c\u5982\u6700\u5927\u503c\u6c60\u5316\u3001\u5e73\u5747\u503c\u6c60\u5316\u7b49\u3002"),(0,o.kt)("p",null,"\u6700\u5e38\u89c1\u7684\u662f\u6700\u5927\u503c\u6c60\u5316\uff0c\u5176\u4e2d\u6bcf\u4e2a\u533a\u57df\u7684\u8f93\u51fa\u503c\u662f\u8be5\u533a\u57df\u5185\u7279\u5f81\u503c\u7684\u6700\u5927\u503c\uff0c\u8fd9\u6837\u53ef\u4ee5\u4fdd\u7559\u56fe\u50cf\u4e2d\u6700\u663e\u8457\u7684\u7279\u5f81\uff0c\u540c\u65f6\u51cf\u5c11\u566a\u58f0\u548c\u5197\u4f59\u4fe1\u606f\u7684\u5f71\u54cd\u3002"))}f.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/76f0dcb5.80ff3875.js b/assets/js/76f0dcb5.80ff3875.js new file mode 100644 index 000000000..4065eb554 --- /dev/null +++ b/assets/js/76f0dcb5.80ff3875.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunknpy_notebook=self.webpackChunknpy_notebook||[]).push([[2615],{3905:(e,t,r)=>{r.d(t,{Zo:()=>c,kt:()=>f});var n=r(7294);function a(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e){for(var t=1;t=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}var s=n.createContext({}),l=function(e){var t=n.useContext(s),r=t;return e&&(r="function"==typeof e?e(t):i(i({},t),e)),r},c=function(e){var t=l(e.components);return n.createElement(s.Provider,{value:t},e.children)},u="mdxType",m={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},d=n.forwardRef((function(e,t){var r=e.components,a=e.mdxType,o=e.originalType,s=e.parentName,c=p(e,["components","mdxType","originalType","parentName"]),u=l(r),d=a,f=u["".concat(s,".").concat(d)]||u[d]||m[d]||o;return r?n.createElement(f,i(i({ref:t},c),{},{components:r})):n.createElement(f,i({ref:t},c))}));function f(e,t){var r=arguments,a=t&&t.mdxType;if("string"==typeof e||a){var o=r.length,i=new Array(o);i[0]=d;var p={};for(var s in t)hasOwnProperty.call(t,s)&&(p[s]=t[s]);p.originalType=e,p[u]="string"==typeof e?e:a,i[1]=p;for(var l=2;l{r.r(t),r.d(t,{assets:()=>s,contentTitle:()=>i,default:()=>m,frontMatter:()=>o,metadata:()=>p,toc:()=>l});var n=r(7462),a=(r(7294),r(3905));const o={},i="Speaker Classification",p={unversionedId:"Deep-Learning/\u5b9e\u6218\u7ec3\u4e60/Speaker Classification",id:"Deep-Learning/\u5b9e\u6218\u7ec3\u4e60/Speaker Classification",title:"Speaker Classification",description:"Transformer\u5b9e\u6218\u7ec3\u4e60\uff0c\u4ee3\u7801\u89c1Github\u4ed3\u5e93\u3002",source:"@site/docs/Deep-Learning/4-\u5b9e\u6218\u7ec3\u4e60/2-Speaker Classification.md",sourceDirName:"Deep-Learning/4-\u5b9e\u6218\u7ec3\u4e60",slug:"/Deep-Learning/\u5b9e\u6218\u7ec3\u4e60/Speaker Classification",permalink:"/docs/Deep-Learning/\u5b9e\u6218\u7ec3\u4e60/Speaker Classification",draft:!1,tags:[],version:"current",sidebarPosition:2,frontMatter:{},sidebar:"deep_learning",previous:{title:"Visdom\u53ef\u89c6\u5316",permalink:"/docs/Deep-Learning/\u5b9e\u6218\u7ec3\u4e60/Visdom Visualization"},next:{title:"\u672c\u79d1\u6bd5\u4e1a\u8bba\u6587\uff1a\u57fa\u4e8e Prompt Learning \u7684\u89c6\u89c9-\u8bed\u8a00\u5927\u6a21\u578b\u5728\u56fe\u50cf\u751f\u6210\u4e2d\u7684\u5e94\u7528\u4e0e\u7814\u7a76",permalink:"/docs/Deep-Learning/\u5b9e\u6218\u7ec3\u4e60/Undergraduate-Dissertation"}},s={},l=[{value:"Overview",id:"overview",level:2},{value:"Dataset",id:"dataset",level:2},{value:"Related",id:"related",level:2}],c={toc:l},u="wrapper";function m(e){let{components:t,...r}=e;return(0,a.kt)(u,(0,n.Z)({},c,r,{components:t,mdxType:"MDXLayout"}),(0,a.kt)("h1",{id:"speaker-classification"},"Speaker Classification"),(0,a.kt)("admonition",{title:"\u5b9e\u6218\u7ec3\u4e60",type:"tip"},(0,a.kt)("p",{parentName:"admonition"},"Transformer\u5b9e\u6218\u7ec3\u4e60\uff0c\u4ee3\u7801\u89c1",(0,a.kt)("a",{parentName:"p",href:"https://github.com/bonjour-npy/Speaker-Classification"},"Github\u4ed3\u5e93"),"\u3002"),(0,a.kt)("p",{parentName:"admonition"},"This is a practice of Transformer, follow the guide of ",(0,a.kt)("a",{parentName:"p",href:"https://github.com/bonjour-npy/Speaker-Classification"},"Github Repo"),".")),(0,a.kt)("p",null,(0,a.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_imagesimage-20240113175506430.png",alt:"image-20240113175506430"})),(0,a.kt)("h2",{id:"overview"},"Overview"),(0,a.kt)("p",null,"Classify the speaker of given features, learn how to use Transformer and how to adjust parameters of transformer."),(0,a.kt)("h2",{id:"dataset"},"Dataset"),(0,a.kt)("p",null,"The original dataset is ",(0,a.kt)("a",{parentName:"p",href:"https://www.robots.ox.ac.uk/~vgg/data/voxceleb/"},"VoxCeleb1"),"."),(0,a.kt)("p",null,"We randomly select 600 speakers from ",(0,a.kt)("a",{parentName:"p",href:"https://www.robots.ox.ac.uk/~vgg/data/voxceleb/"},"VoxCeleb1"),", then preprocess the raw waveforms into mel-spectrograms. You can download the preprocessed dataset from ",(0,a.kt)("a",{parentName:"p",href:"https://drive.google.com/file/d/1gaFy8RaQVUEXo2n0peCBR5gYKCB-mNHc/view?usp=drive_link"},"Google Drive"),"."),(0,a.kt)("p",null,(0,a.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_imagesScreenshot%202024-01-13%20163041.png",alt:"Screenshot 2024-01-13 163041"})),(0,a.kt)("p",null,"Arguments:"),(0,a.kt)("ul",null,(0,a.kt)("li",{parentName:"ul"},(0,a.kt)("p",{parentName:"li"},"data_dir: The path to the data directory.")),(0,a.kt)("li",{parentName:"ul"},(0,a.kt)("p",{parentName:"li"},"metadata_path: The path to the metadata.")),(0,a.kt)("li",{parentName:"ul"},(0,a.kt)("p",{parentName:"li"},"segment_len: The length of audio segment for training."))),(0,a.kt)("p",null,"The architecture of dataset directory is shown below, where ",(0,a.kt)("inlineCode",{parentName:"p"},"uttr-{random string}.pt")," represents PyTorch data file containing ",(0,a.kt)("inlineCode",{parentName:"p"},"valid mel-spectrogram data"),"."),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre"},"data directory/\n\u251c\u2500\u2500 mapping.json\n\u251c\u2500\u2500 metadata.json\n\u251c\u2500\u2500 testdata.json\n\u2514\u2500\u2500 uttr-{random string}.pt\n")),(0,a.kt)("h2",{id:"related"},"Related"),(0,a.kt)("p",null,"This is also the assignment solution of ",(0,a.kt)("a",{parentName:"p",href:"https://speech.ee.ntu.edu.tw/~hylee/ml/2021-spring.php"},"ML2021Spring HW4"),"."))}m.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/78a3e900.549f71cc.js b/assets/js/78a3e900.549f71cc.js new file mode 100644 index 000000000..0ca339d05 --- /dev/null +++ b/assets/js/78a3e900.549f71cc.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunknpy_notebook=self.webpackChunknpy_notebook||[]).push([[8125],{3905:(a,e,t)=>{t.d(e,{Zo:()=>i,kt:()=>h});var s=t(7294);function m(a,e,t){return e in a?Object.defineProperty(a,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):a[e]=t,a}function n(a,e){var t=Object.keys(a);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(a);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable}))),t.push.apply(t,s)}return t}function p(a){for(var e=1;e=0||(m[t]=a[t]);return m}(a,e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);for(s=0;s=0||Object.prototype.propertyIsEnumerable.call(a,t)&&(m[t]=a[t])}return m}var N=s.createContext({}),l=function(a){var e=s.useContext(N),t=e;return a&&(t="function"==typeof a?a(e):p(p({},e),a)),t},i=function(a){var e=l(a.components);return s.createElement(N.Provider,{value:e},a.children)},k="mdxType",c={inlineCode:"code",wrapper:function(a){var e=a.children;return s.createElement(s.Fragment,{},e)}},o=s.forwardRef((function(a,e){var t=a.components,m=a.mdxType,n=a.originalType,N=a.parentName,i=r(a,["components","mdxType","originalType","parentName"]),k=l(t),o=m,h=k["".concat(N,".").concat(o)]||k[o]||c[o]||n;return t?s.createElement(h,p(p({ref:e},i),{},{components:t})):s.createElement(h,p({ref:e},i))}));function h(a,e){var t=arguments,m=e&&e.mdxType;if("string"==typeof a||m){var n=t.length,p=new Array(n);p[0]=o;var r={};for(var N in e)hasOwnProperty.call(e,N)&&(r[N]=e[N]);r.originalType=a,r[k]="string"==typeof a?a:m,p[1]=r;for(var l=2;l{t.r(e),t.d(e,{assets:()=>N,contentTitle:()=>p,default:()=>c,frontMatter:()=>n,metadata:()=>r,toc:()=>l});var s=t(7462),m=(t(7294),t(3905));const n={},p="NeurIPS 2017: Attention Is All You Need",r={unversionedId:"Deep-Learning/\u8bba\u6587\u7b14\u8bb0/Attention Is All You Need",id:"Deep-Learning/\u8bba\u6587\u7b14\u8bb0/Attention Is All You Need",title:"NeurIPS 2017: Attention Is All You Need",description:"\u8bba\u6587\uff1aarXiv",source:"@site/docs/Deep-Learning/6-\u8bba\u6587\u7b14\u8bb0/1-Attention Is All You Need.md",sourceDirName:"Deep-Learning/6-\u8bba\u6587\u7b14\u8bb0",slug:"/Deep-Learning/\u8bba\u6587\u7b14\u8bb0/Attention Is All You Need",permalink:"/docs/Deep-Learning/\u8bba\u6587\u7b14\u8bb0/Attention Is All You Need",draft:!1,tags:[],version:"current",sidebarPosition:1,frontMatter:{},sidebar:"deep_learning",previous:{title:"\u672c\u79d1\u6bd5\u4e1a\u8bba\u6587\uff1a\u57fa\u4e8e Prompt Learning \u7684\u89c6\u89c9-\u8bed\u8a00\u5927\u6a21\u578b\u5728\u56fe\u50cf\u751f\u6210\u4e2d\u7684\u5e94\u7528\u4e0e\u7814\u7a76",permalink:"/docs/Deep-Learning/\u5927\u6a21\u578b/Prompt Learning/Undergraduate-Dissertation"},next:{title:"NeurIPS 2020: Denoising Diffusion Probabilistic Models",permalink:"/docs/Deep-Learning/\u8bba\u6587\u7b14\u8bb0/Denoising Diffusion Probabilistic Models"}},N={},l=[{value:"\u6574\u4f53\u7ed3\u6784",id:"\u6574\u4f53\u7ed3\u6784",level:2},{value:"Encoder",id:"encoder",level:2},{value:"\u6574\u4f53\u7ed3\u6784",id:"\u6574\u4f53\u7ed3\u6784-1",level:3},{value:"\u4f4d\u7f6e\u7f16\u7801\uff08Positional Encoding\uff09",id:"\u4f4d\u7f6e\u7f16\u7801positional-encoding",level:3},{value:"\u5177\u4f53\u7ed3\u6784",id:"\u5177\u4f53\u7ed3\u6784",level:3},{value:"Decoder",id:"decoder",level:2},{value:"Autoregressive Decoder\uff08AT\uff09",id:"autoregressive-decoderat",level:3},{value:"\u6574\u4f53\u7ed3\u6784",id:"\u6574\u4f53\u7ed3\u6784-2",level:4},{value:"\u8bcd\u6c47\u8868\uff08Vocabulary\uff09",id:"\u8bcd\u6c47\u8868vocabulary",level:4},{value:"Begin\u7b26\u53f7",id:"begin\u7b26\u53f7",level:4},{value:"End\u7b26\u53f7",id:"end\u7b26\u53f7",level:4},{value:"\u63a9\u7801\u591a\u5934\u81ea\u6ce8\u610f\u529b\u673a\u5236\uff08Masked Multi-Head Self-Attention\uff09",id:"\u63a9\u7801\u591a\u5934\u81ea\u6ce8\u610f\u529b\u673a\u5236masked-multi-head-self-attention",level:4},{value:"\u4ea4\u53c9\u6ce8\u610f\u529b\uff08Cross-Attention\uff09",id:"\u4ea4\u53c9\u6ce8\u610f\u529bcross-attention",level:4},{value:"Non-Autoregressive Decoder\uff08NAT\uff09",id:"non-autoregressive-decodernat",level:3},{value:"\u8bad\u7ec3\uff08Training\uff09",id:"\u8bad\u7ec3training",level:2},{value:"\u635f\u5931\u51fd\u6570",id:"\u635f\u5931\u51fd\u6570",level:3},{value:"Teacher Forcing",id:"teacher-forcing",level:3},{value:"Teacher Forcing\u4e0eMasked Multi-Head Self-Attention",id:"teacher-forcing\u4e0emasked-multi-head-self-attention",level:3}],i={toc:l},k="wrapper";function c(a){let{components:e,...t}=a;return(0,m.kt)(k,(0,s.Z)({},i,t,{components:e,mdxType:"MDXLayout"}),(0,m.kt)("h1",{id:"neurips-2017-attention-is-all-you-need"},"NeurIPS 2017: Attention Is All You Need"),(0,m.kt)("admonition",{title:"\u76f8\u5173\u94fe\u63a5",type:"tip"},(0,m.kt)("p",{parentName:"admonition"},"\u8bba\u6587\uff1a",(0,m.kt)("a",{parentName:"p",href:"https://arxiv.org/pdf/1706.03762.pdf"},"arXiv")),(0,m.kt)("p",{parentName:"admonition"},"\u53c2\u8003\u8d44\u6599\uff1a"),(0,m.kt)("ul",{parentName:"admonition"},(0,m.kt)("li",{parentName:"ul"},(0,m.kt)("a",{parentName:"li",href:"https://zhuanlan.zhihu.com/p/338817680"},"Transformer\u6a21\u578b\u8be6\u89e3\uff08\u56fe\u89e3\u6700\u5b8c\u6574\u7248\uff09")),(0,m.kt)("li",{parentName:"ul"},(0,m.kt)("a",{parentName:"li",href:"https://www.youtube.com/watch?v=N6aRv06iv2g&list=PLJV_el3uVTsMhtt7_Y6sgTHGHp1Vb2P2J&index=13"},"\u3010\u6a5f\u5668\u5b78\u7fd22021\u3011Transformer (\u4e0b)")))),(0,m.kt)("p",null,"Transformer\u662fSequence-to-Sequence (Seq2Seq) \u6a21\u578b\uff0c\u6a21\u578b\u7684\u8f93\u5165\u662f\u5411\u91cf\u5e8f\u5217\uff0c\u8f93\u51fa\u540c\u6837\u662f\u5411\u91cf\u5e8f\u5217\uff0c\u4e14\u8f93\u51fa\u7684\u957f\u5ea6\u7531\u6a21\u578b\u7ecf\u8fc7\u5b66\u4e60\u51b3\u5b9a\u3002"),(0,m.kt)("h2",{id:"\u6574\u4f53\u7ed3\u6784"},"\u6574\u4f53\u7ed3\u6784"),(0,m.kt)("p",null,"Transformer\u7531Encoder\u548cDecoder\u7ec4\u6210\uff0c\u7f16\u7801\u5668\u548c\u89e3\u7801\u5668\u90fd\u5305\u542b6\u4e2aBlock\uff0c\u6574\u4f53\u7ed3\u6784\u5982\u4e0b\u56fe\u6240\u793a\u3002"),(0,m.kt)("p",null,(0,m.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_imagesimage-20231119110150110.png",alt:"image-20231119110150110"})),(0,m.kt)("h2",{id:"encoder"},"Encoder"),(0,m.kt)("h3",{id:"\u6574\u4f53\u7ed3\u6784-1"},"\u6574\u4f53\u7ed3\u6784"),(0,m.kt)("p",null,"Transformer Encoder\u7ed3\u6784\u5982\u4e0b\u56fe\u6240\u793a\u3002\u5176\u4e2d\uff0cAdd\u6307\u7684\u662f\u6b8b\u5dee\u8fde\u63a5Residual Connection\uff0cNorm\u6307\u7684\u662fLayer Normalization\u3002"),(0,m.kt)("p",null,(0,m.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_imagesimage-20231115165100210.png",alt:"image-20231115164324713"})),(0,m.kt)("h3",{id:"\u4f4d\u7f6e\u7f16\u7801positional-encoding"},"\u4f4d\u7f6e\u7f16\u7801\uff08Positional Encoding\uff09"),(0,m.kt)("p",null,"\u5bf9\u4e8e\u8f93\u5165\u7684\u53e5\u5b50\uff0c\u5bf9\u4e00\u4e2a\u8bcd\u6c47\u7684\u5d4c\u5165\u5411\u91cf\u7684\u5947\u6570\u7ef4\u5ea6\u4f7f\u7528sine\u51fd\u6570\u8fdb\u884c\u7f16\u7801\uff0c\u5bf9\u5076\u6570\u7ef4\u5ea6\u4f7f\u7528cosine\u51fd\u6570\u8ba1\u7b97\u7f16\u7801\u3002"),(0,m.kt)("p",null,"\u516c\u5f0f\u5982\u4e0b\u6240\u793a\uff0c\u5176\u4e2d",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"p"),(0,m.kt)("mi",{parentName:"mrow"},"o"),(0,m.kt)("mi",{parentName:"mrow"},"s")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"pos")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.625em",verticalAlign:"-0.1944em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"p"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"os"))))),"\u6307\u7684\u662f\u8be5\u8bcd\u6c47\u5728\u6574\u4e2a\u8f93\u5165\u53e5\u5b50\u4e2d\u7684\u4f4d\u7f6e\uff0c",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mn",{parentName:"mrow"},"2"),(0,m.kt)("mi",{parentName:"mrow"},"i")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"2i")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6595em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"2"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"i"))))),"\u4ee5\u53ca",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mn",{parentName:"mrow"},"2"),(0,m.kt)("mi",{parentName:"mrow"},"i"),(0,m.kt)("mo",{parentName:"mrow"},"+"),(0,m.kt)("mn",{parentName:"mrow"},"1")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"2i+1")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.7429em",verticalAlign:"-0.0833em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"2"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"i"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"+"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6444em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"1"))))),"\u6307\u7684\u662f\u8be5\u8bcd\u6c47\u7684\u5d4c\u5165\u5411\u91cf\u4e2d\u7684\u7ef4\u5ea6\uff0c",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"d"),(0,m.kt)("mrow",{parentName:"msub"},(0,m.kt)("mi",{parentName:"mrow"},"m"),(0,m.kt)("mi",{parentName:"mrow"},"o"),(0,m.kt)("mi",{parentName:"mrow"},"d"),(0,m.kt)("mi",{parentName:"mrow"},"e"),(0,m.kt)("mi",{parentName:"mrow"},"l")))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"d_{model}")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.8444em",verticalAlign:"-0.15em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"d"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3361em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"m"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"o"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"d"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"e"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.01968em"}},"l"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))))))),"\u6307\u7684\u662f\u5728\u5d4c\u5165\u5c42\u4e4b\u540e\u5d4c\u5165\u5411\u91cf\u7684\u603b\u7ef4\u5ea6\u3002\u5373\u5bf9\u4e8e\u6bcf\u4e2a\u8f93\u5165\u8bcd\u6c47\uff0c\u90fd\u8981\u8ba1\u7b97",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"d"),(0,m.kt)("mrow",{parentName:"msub"},(0,m.kt)("mi",{parentName:"mrow"},"m"),(0,m.kt)("mi",{parentName:"mrow"},"o"),(0,m.kt)("mi",{parentName:"mrow"},"d"),(0,m.kt)("mi",{parentName:"mrow"},"e"),(0,m.kt)("mi",{parentName:"mrow"},"l")))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"d_{model}")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.8444em",verticalAlign:"-0.15em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"d"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3361em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"m"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"o"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"d"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"e"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.01968em"}},"l"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))))))),"\u6b21\u4f4d\u7f6e\u7f16\u7801\u3002"),(0,m.kt)("div",{className:"math math-display"},(0,m.kt)("span",{parentName:"div",className:"katex-display"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mtable",{parentName:"semantics",width:"100%"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mrow",{parentName:"mtd"},(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"E"),(0,m.kt)("mrow",{parentName:"msub"},(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"p"),(0,m.kt)("mi",{parentName:"mrow"},"o"),(0,m.kt)("mi",{parentName:"mrow"},"s"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mn",{parentName:"mrow"},"2"),(0,m.kt)("mi",{parentName:"mrow"},"i"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"))),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("mi",{parentName:"mrow"},"s"),(0,m.kt)("mi",{parentName:"mrow"},"i"),(0,m.kt)("mi",{parentName:"mrow"},"n"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mfrac",{parentName:"mrow"},(0,m.kt)("mrow",{parentName:"mfrac"},(0,m.kt)("mi",{parentName:"mrow"},"p"),(0,m.kt)("mi",{parentName:"mrow"},"o"),(0,m.kt)("mi",{parentName:"mrow"},"s")),(0,m.kt)("mrow",{parentName:"mfrac"},(0,m.kt)("mn",{parentName:"mrow"},"1000"),(0,m.kt)("msup",{parentName:"mrow"},(0,m.kt)("mn",{parentName:"msup"},"0"),(0,m.kt)("mrow",{parentName:"msup"},(0,m.kt)("mn",{parentName:"mrow"},"2"),(0,m.kt)("mi",{parentName:"mrow"},"i"),(0,m.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"/"),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"d"),(0,m.kt)("mrow",{parentName:"msub"},(0,m.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"m"),(0,m.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"o"),(0,m.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"d"),(0,m.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"e"),(0,m.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"l"))))))),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"))),(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mtext",{parentName:"mtd"},"(1)")))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"PE_{(pos,2i)}=sin(\\frac{pos}{10000^{2i/d_{\\mathrm{model}}}}) \\tag{1}")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1.0385em",verticalAlign:"-0.3552em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"P"),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05764em"}},"E"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3448em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.5198em",marginLeft:"-0.0576em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mopen mtight"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"p"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"os"),(0,m.kt)("span",{parentName:"span",className:"mpunct mtight"},","),(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"2"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"i"),(0,m.kt)("span",{parentName:"span",className:"mclose mtight"},")"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3552em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"="),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1.8116em",verticalAlign:"-0.704em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"s"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"in"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mopen nulldelimiter"}),(0,m.kt)("span",{parentName:"span",className:"mfrac"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.1076em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.296em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"1000"),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"0"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.814em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.989em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"2"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"i"),(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"/"),(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"d"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3448em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.3488em",marginLeft:"0em",marginRight:"0.0714em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.5em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size3 size1 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathrm mtight"},"model")))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.1512em"}},(0,m.kt)("span",{parentName:"span"})))))))))))))))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.23em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"frac-line",style:{borderBottomWidth:"0.04em"}})),(0,m.kt)("span",{parentName:"span",style:{top:"-3.677em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"p"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"os")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.704em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"mclose nulldelimiter"})),(0,m.kt)("span",{parentName:"span",className:"mclose"},")")),(0,m.kt)("span",{parentName:"span",className:"tag"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1.8116em",verticalAlign:"-0.704em"}}),(0,m.kt)("span",{parentName:"span",className:"mord text"},(0,m.kt)("span",{parentName:"span",className:"mord"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"1")),(0,m.kt)("span",{parentName:"span",className:"mord"},")"))))))),(0,m.kt)("div",{className:"math math-display"},(0,m.kt)("span",{parentName:"div",className:"katex-display"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mtable",{parentName:"semantics",width:"100%"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mrow",{parentName:"mtd"},(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"E"),(0,m.kt)("mrow",{parentName:"msub"},(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"p"),(0,m.kt)("mi",{parentName:"mrow"},"o"),(0,m.kt)("mi",{parentName:"mrow"},"s"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mn",{parentName:"mrow"},"2"),(0,m.kt)("mi",{parentName:"mrow"},"i"),(0,m.kt)("mo",{parentName:"mrow"},"+"),(0,m.kt)("mn",{parentName:"mrow"},"1"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"))),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("mi",{parentName:"mrow"},"c"),(0,m.kt)("mi",{parentName:"mrow"},"o"),(0,m.kt)("mi",{parentName:"mrow"},"s"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mfrac",{parentName:"mrow"},(0,m.kt)("mrow",{parentName:"mfrac"},(0,m.kt)("mi",{parentName:"mrow"},"p"),(0,m.kt)("mi",{parentName:"mrow"},"o"),(0,m.kt)("mi",{parentName:"mrow"},"s")),(0,m.kt)("mrow",{parentName:"mfrac"},(0,m.kt)("mn",{parentName:"mrow"},"1000"),(0,m.kt)("msup",{parentName:"mrow"},(0,m.kt)("mn",{parentName:"msup"},"0"),(0,m.kt)("mrow",{parentName:"msup"},(0,m.kt)("mn",{parentName:"mrow"},"2"),(0,m.kt)("mi",{parentName:"mrow"},"i"),(0,m.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"/"),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"d"),(0,m.kt)("mrow",{parentName:"msub"},(0,m.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"m"),(0,m.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"o"),(0,m.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"d"),(0,m.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"e"),(0,m.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"l"))))))),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"))),(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mtext",{parentName:"mtd"},"(2)")))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"PE_{(pos,2i+1)}=cos(\\frac{pos}{10000^{2i/d_{\\mathrm{model}}}}) \\tag{2}")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1.0385em",verticalAlign:"-0.3552em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"P"),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05764em"}},"E"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3448em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.5198em",marginLeft:"-0.0576em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mopen mtight"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"p"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"os"),(0,m.kt)("span",{parentName:"span",className:"mpunct mtight"},","),(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"2"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"i"),(0,m.kt)("span",{parentName:"span",className:"mbin mtight"},"+"),(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"1"),(0,m.kt)("span",{parentName:"span",className:"mclose mtight"},")"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3552em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"="),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1.8116em",verticalAlign:"-0.704em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"cos"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mopen nulldelimiter"}),(0,m.kt)("span",{parentName:"span",className:"mfrac"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.1076em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.296em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"1000"),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"0"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.814em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.989em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"2"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"i"),(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"/"),(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"d"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3448em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.3488em",marginLeft:"0em",marginRight:"0.0714em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.5em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size3 size1 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathrm mtight"},"model")))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.1512em"}},(0,m.kt)("span",{parentName:"span"})))))))))))))))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.23em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"frac-line",style:{borderBottomWidth:"0.04em"}})),(0,m.kt)("span",{parentName:"span",style:{top:"-3.677em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"p"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"os")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.704em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"mclose nulldelimiter"})),(0,m.kt)("span",{parentName:"span",className:"mclose"},")")),(0,m.kt)("span",{parentName:"span",className:"tag"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1.8116em",verticalAlign:"-0.704em"}}),(0,m.kt)("span",{parentName:"span",className:"mord text"},(0,m.kt)("span",{parentName:"span",className:"mord"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"2")),(0,m.kt)("span",{parentName:"span",className:"mord"},")"))))))),(0,m.kt)("p",null,"\u6839\u636e\u4e09\u89d2\u51fd\u6570\u7684\u6027\u8d28\uff0c\u5bf9\u4e8e",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"p"),(0,m.kt)("mi",{parentName:"mrow"},"o"),(0,m.kt)("mi",{parentName:"mrow"},"s"),(0,m.kt)("mo",{parentName:"mrow"},"+"),(0,m.kt)("mi",{parentName:"mrow"},"k")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"pos+k")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.7778em",verticalAlign:"-0.1944em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"p"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"os"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"+"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6944em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03148em"}},"k"))))),"\u4f4d\u7f6e\u7684\u5d4c\u5165\u5411\u91cf\u7684\u67d0\u4e00\u7ef4\u5ea6\uff08",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mn",{parentName:"mrow"},"2"),(0,m.kt)("mi",{parentName:"mrow"},"i")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"2i")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6595em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"2"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"i"))))),"\u6216",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mn",{parentName:"mrow"},"2"),(0,m.kt)("mi",{parentName:"mrow"},"i"),(0,m.kt)("mo",{parentName:"mrow"},"+"),(0,m.kt)("mn",{parentName:"mrow"},"1")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"2i+1")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.7429em",verticalAlign:"-0.0833em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"2"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"i"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"+"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6444em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"1"))))),"\uff09\u800c\u8a00\uff0c\u53ef\u4ee5\u8868\u793a\u4e3a",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"p"),(0,m.kt)("mi",{parentName:"mrow"},"o"),(0,m.kt)("mi",{parentName:"mrow"},"s")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"pos")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.625em",verticalAlign:"-0.1944em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"p"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"os"))))),"\u4f4d\u7f6e\u4e0e",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"k")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"k")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6944em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03148em"}},"k"))))),"\u4f4d\u7f6e\u7684\u5d4c\u5165\u5411\u91cf\u7684",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mn",{parentName:"mrow"},"2"),(0,m.kt)("mi",{parentName:"mrow"},"i")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"2i")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6595em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"2"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"i"))))),"\u4e0e",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mn",{parentName:"mrow"},"2"),(0,m.kt)("mi",{parentName:"mrow"},"i"),(0,m.kt)("mo",{parentName:"mrow"},"+"),(0,m.kt)("mn",{parentName:"mrow"},"1")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"2i+1")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.7429em",verticalAlign:"-0.0833em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"2"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"i"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"+"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6444em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"1"))))),"\u7ef4\u5ea6\u7684\u7ebf\u6027\u7ec4\u5408\uff0c\u4f7f\u5f97\u4f4d\u7f6e\u5411\u91cf\u4e2d\u8574\u542b\u4e86\u76f8\u5bf9\u4f4d\u7f6e\u7684\u4fe1\u606f\u3002"),(0,m.kt)("div",{className:"math math-display"},(0,m.kt)("span",{parentName:"div",className:"katex-display"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mtable",{parentName:"semantics",width:"100%"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mtable",{parentName:"mtd",rowspacing:"0.16em",columnalign:"left",columnspacing:"1em"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("mrow",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("mi",{parentName:"mrow"},"E"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"p"),(0,m.kt)("mi",{parentName:"mrow"},"o"),(0,m.kt)("mi",{parentName:"mrow"},"s"),(0,m.kt)("mo",{parentName:"mrow"},"+"),(0,m.kt)("mi",{parentName:"mrow"},"k"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mn",{parentName:"mrow"},"2"),(0,m.kt)("mi",{parentName:"mrow"},"i"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("mi",{parentName:"mrow"},"E"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"p"),(0,m.kt)("mi",{parentName:"mrow"},"o"),(0,m.kt)("mi",{parentName:"mrow"},"s"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mn",{parentName:"mrow"},"2"),(0,m.kt)("mi",{parentName:"mrow"},"i"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"\xd7"),(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("mi",{parentName:"mrow"},"E"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"k"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mn",{parentName:"mrow"},"2"),(0,m.kt)("mi",{parentName:"mrow"},"i"),(0,m.kt)("mo",{parentName:"mrow"},"+"),(0,m.kt)("mn",{parentName:"mrow"},"1"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"+"),(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("mi",{parentName:"mrow"},"E"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"p"),(0,m.kt)("mi",{parentName:"mrow"},"o"),(0,m.kt)("mi",{parentName:"mrow"},"s"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mn",{parentName:"mrow"},"2"),(0,m.kt)("mi",{parentName:"mrow"},"i"),(0,m.kt)("mo",{parentName:"mrow"},"+"),(0,m.kt)("mn",{parentName:"mrow"},"1"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"\xd7"),(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("mi",{parentName:"mrow"},"E"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"k"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mn",{parentName:"mrow"},"2"),(0,m.kt)("mi",{parentName:"mrow"},"i"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"))))),(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("mrow",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("mi",{parentName:"mrow"},"E"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"p"),(0,m.kt)("mi",{parentName:"mrow"},"o"),(0,m.kt)("mi",{parentName:"mrow"},"s"),(0,m.kt)("mo",{parentName:"mrow"},"+"),(0,m.kt)("mi",{parentName:"mrow"},"k"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mn",{parentName:"mrow"},"2"),(0,m.kt)("mi",{parentName:"mrow"},"i"),(0,m.kt)("mo",{parentName:"mrow"},"+"),(0,m.kt)("mn",{parentName:"mrow"},"1"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("mi",{parentName:"mrow"},"E"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"p"),(0,m.kt)("mi",{parentName:"mrow"},"o"),(0,m.kt)("mi",{parentName:"mrow"},"s"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mn",{parentName:"mrow"},"2"),(0,m.kt)("mi",{parentName:"mrow"},"i"),(0,m.kt)("mo",{parentName:"mrow"},"+"),(0,m.kt)("mn",{parentName:"mrow"},"1"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"\xd7"),(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("mi",{parentName:"mrow"},"E"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"k"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mn",{parentName:"mrow"},"2"),(0,m.kt)("mi",{parentName:"mrow"},"i"),(0,m.kt)("mo",{parentName:"mrow"},"+"),(0,m.kt)("mn",{parentName:"mrow"},"1"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"\u2212"),(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("mi",{parentName:"mrow"},"E"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"p"),(0,m.kt)("mi",{parentName:"mrow"},"o"),(0,m.kt)("mi",{parentName:"mrow"},"s"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mn",{parentName:"mrow"},"2"),(0,m.kt)("mi",{parentName:"mrow"},"i"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"\xd7"),(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("mi",{parentName:"mrow"},"E"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"k"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mn",{parentName:"mrow"},"2"),(0,m.kt)("mi",{parentName:"mrow"},"i"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"))))))),(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mtext",{parentName:"mtd"},"(3)")))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"\\begin{array}{l}PE(pos+k,2i)=PE(pos,2i)\\times PE(k,2i+1)+PE(pos,2i+1)\\times PE(k,2i)\\\\PE(pos+k,2i+1)=PE(pos,2i+1)\\times PE(k,2i+1)-PE(pos,2i)\\times PE(k,2i)\\end{array} \\tag{3}")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"2.4em",verticalAlign:"-0.95em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mtable"},(0,m.kt)("span",{parentName:"span",className:"arraycolsep",style:{width:"0.5em"}}),(0,m.kt)("span",{parentName:"span",className:"col-align-l"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.45em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-3.61em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05764em"}},"PE"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"p"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"os"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"+"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03148em"}},"k"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"2"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"i"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"="),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05764em"}},"PE"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"p"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"os"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"2"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"i"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"\xd7"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05764em"}},"PE"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03148em"}},"k"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"2"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"i"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"+"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"1"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"+"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05764em"}},"PE"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"p"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"os"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"2"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"i"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"+"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"1"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"\xd7"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05764em"}},"PE"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03148em"}},"k"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"2"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"i"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"))),(0,m.kt)("span",{parentName:"span",style:{top:"-2.41em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05764em"}},"PE"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"p"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"os"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"+"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03148em"}},"k"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"2"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"i"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"+"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"1"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"="),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05764em"}},"PE"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"p"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"os"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"2"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"i"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"+"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"1"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"\xd7"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05764em"}},"PE"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03148em"}},"k"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"2"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"i"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"+"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"1"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"\u2212"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05764em"}},"PE"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"p"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"os"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"2"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"i"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"\xd7"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05764em"}},"PE"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03148em"}},"k"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"2"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"i"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.95em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"arraycolsep",style:{width:"0.5em"}})))),(0,m.kt)("span",{parentName:"span",className:"tag"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"2.4em",verticalAlign:"-0.95em"}}),(0,m.kt)("span",{parentName:"span",className:"mord text"},(0,m.kt)("span",{parentName:"span",className:"mord"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"3")),(0,m.kt)("span",{parentName:"span",className:"mord"},")"))))))),(0,m.kt)("p",null,"\u6700\u7ec8\uff0c\u4f4d\u7f6e\u7f16\u7801\u5411\u91cf\u7684\u7ef4\u5ea6\u4e0e\u8bcd\u6c47\u7684\u5d4c\u5165\u7ef4\u5ea6\u76f8\u540c\uff0c\u8fdb\u884celement-wise\u7684\u76f8\u52a0\u64cd\u4f5c\u3002"),(0,m.kt)("div",{className:"math math-display"},(0,m.kt)("span",{parentName:"div",className:"katex-display"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mtable",{parentName:"semantics",width:"100%"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mrow",{parentName:"mtd"},(0,m.kt)("mi",{parentName:"mrow"},"I"),(0,m.kt)("mi",{parentName:"mrow"},"n"),(0,m.kt)("mi",{parentName:"mrow"},"p"),(0,m.kt)("mi",{parentName:"mrow"},"u"),(0,m.kt)("mi",{parentName:"mrow"},"t"),(0,m.kt)("mi",{parentName:"mrow"},"E"),(0,m.kt)("mi",{parentName:"mrow"},"m"),(0,m.kt)("mi",{parentName:"mrow"},"b"),(0,m.kt)("mi",{parentName:"mrow"},"e"),(0,m.kt)("mi",{parentName:"mrow"},"d"),(0,m.kt)("mi",{parentName:"mrow"},"d"),(0,m.kt)("mi",{parentName:"mrow"},"i"),(0,m.kt)("mi",{parentName:"mrow"},"n"),(0,m.kt)("mi",{parentName:"mrow"},"g"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"p"),(0,m.kt)("mi",{parentName:"mrow"},"o"),(0,m.kt)("mi",{parentName:"mrow"},"s"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"i"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("mi",{parentName:"mrow"},"W"),(0,m.kt)("mi",{parentName:"mrow"},"o"),(0,m.kt)("mi",{parentName:"mrow"},"r"),(0,m.kt)("mi",{parentName:"mrow"},"d"),(0,m.kt)("mi",{parentName:"mrow"},"E"),(0,m.kt)("mi",{parentName:"mrow"},"m"),(0,m.kt)("mi",{parentName:"mrow"},"b"),(0,m.kt)("mi",{parentName:"mrow"},"e"),(0,m.kt)("mi",{parentName:"mrow"},"d"),(0,m.kt)("mi",{parentName:"mrow"},"d"),(0,m.kt)("mi",{parentName:"mrow"},"i"),(0,m.kt)("mi",{parentName:"mrow"},"n"),(0,m.kt)("mi",{parentName:"mrow"},"g"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"p"),(0,m.kt)("mi",{parentName:"mrow"},"o"),(0,m.kt)("mi",{parentName:"mrow"},"s"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"i"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"+"),(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("mi",{parentName:"mrow"},"o"),(0,m.kt)("mi",{parentName:"mrow"},"s"),(0,m.kt)("mi",{parentName:"mrow"},"i"),(0,m.kt)("mi",{parentName:"mrow"},"t"),(0,m.kt)("mi",{parentName:"mrow"},"i"),(0,m.kt)("mi",{parentName:"mrow"},"o"),(0,m.kt)("mi",{parentName:"mrow"},"n"),(0,m.kt)("mi",{parentName:"mrow"},"E"),(0,m.kt)("mi",{parentName:"mrow"},"n"),(0,m.kt)("mi",{parentName:"mrow"},"c"),(0,m.kt)("mi",{parentName:"mrow"},"o"),(0,m.kt)("mi",{parentName:"mrow"},"d"),(0,m.kt)("mi",{parentName:"mrow"},"i"),(0,m.kt)("mi",{parentName:"mrow"},"n"),(0,m.kt)("mi",{parentName:"mrow"},"g"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"p"),(0,m.kt)("mi",{parentName:"mrow"},"o"),(0,m.kt)("mi",{parentName:"mrow"},"s"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"i"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"))),(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mtext",{parentName:"mtd"},"(4)")))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"InputEmbedding(pos,i)=WordEmbedding(pos,i)+PositionEncoding(pos,i) \\tag{4}")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.07847em"}},"I"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"n"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"p"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"u"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05764em"}},"tE"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"mb"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"e"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"dd"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"in"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"g"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"p"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"os"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"i"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"="),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"W"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02778em"}},"or"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"d"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05764em"}},"E"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"mb"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"e"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"dd"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"in"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"g"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"p"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"os"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"i"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"+"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"P"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"os"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"i"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"t"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"i"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"o"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"n"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05764em"}},"E"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"n"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"co"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"d"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"in"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"g"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"p"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"os"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"i"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")")),(0,m.kt)("span",{parentName:"span",className:"tag"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord text"},(0,m.kt)("span",{parentName:"span",className:"mord"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"4")),(0,m.kt)("span",{parentName:"span",className:"mord"},")"))))))),(0,m.kt)("h3",{id:"\u5177\u4f53\u7ed3\u6784"},"\u5177\u4f53\u7ed3\u6784"),(0,m.kt)("p",null,(0,m.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_imagesimage-20231115164324713.png",alt:"image-20231115164324713"})),(0,m.kt)("p",null,"\u8f93\u5165\u5411\u91cf\u7531Word Embedding\u548cPositional Embedding\u76f8\u52a0\u5f97\u5230\u3002\u8f93\u5165\u5e8f\u5217\u7ecf\u8fc7Mutil-Head Self-Attention\u4e4b\u540e\uff0c\u901a\u8fc7Residual Connection\u52a0\u4e0a\u81ea\u8eab\u7684\u8f93\u5165\u5411\u91cf\uff0c\u518d\u7ecf\u8fc7Layer Normalization\uff0c\u4e4b\u540e\u9001\u5165FCN\u5e76\u8fdb\u884cResidual Connection\u52a0\u4e0a\u9001\u5165FCN\u7684\u8f93\u5165\u81ea\u8eab\uff0c\u6700\u7ec8\u518d\u8fdb\u884cLayer Normalization\uff0c\u4ee5\u4e0a\u6784\u6210\u4e86\u4e00\u4e2aEncoder Block\u3002\u6bcf\u4e00\u4e2aBlock\u8f93\u51fa\u7684\u5411\u91cf\u5e8f\u5217\u957f\u5ea6\u7b49\u4e8e\u8f93\u5165\u7684\u5411\u91cf\u5e8f\u5217\u957f\u5ea6\u3002"),(0,m.kt)("h2",{id:"decoder"},"Decoder"),(0,m.kt)("p",null,"Decoder\u7684\u4efb\u52a1\u662f\u751f\u6210\u8f93\u51fa\uff0c\u53ef\u4ee5\u6839\u636e\u662f\u5426\u4e00\u6b21\u6027\u751f\u6210\u8f93\u51fa\u5206\u4e3aAutoregressive\uff08\u81ea\u56de\u5f52\uff0cabbr. AT\uff09\u4ee5\u53caNon-Autoregressive\uff08\u975e\u81ea\u56de\u5f52\uff0cabbr. NAT\uff09\u4e24\u79cd\u6a21\u5f0f\u3002"),(0,m.kt)("p",null,"\u81ea\u56de\u5f52\u7c7b\u578b\u7684Decoder\u9700\u8981",(0,m.kt)("strong",{parentName:"p"},"\u9010\u6b65\u751f\u6210"),"\u8f93\u51fa\uff0c\u5e76\u5c06",(0,m.kt)("strong",{parentName:"p"},"\u4e4b\u524d\u81ea\u8eab\u8f93\u51fa\u7684\u6240\u6709\u8bcd\u6c47\u7ecf\u8fc7\u5d4c\u5165\u5c42\u540e\u751f\u6210token\u4f5c\u4e3a\u4e0b\u4e00\u6b21\u7684\u8f93\u5165"),"\uff0c\u901a\u5e38\u6bcf\u6b21\u751f\u6210\u4e00\u4e2a\u8bcd\u6216\u4e00\u4e2a\u7b26\u53f7\u3002\u8fd9\u79cd\u65b9\u5f0f\u7684\u7f3a\u70b9\u662f\u9700\u8981\u4fdd\u5b58\u548c\u66f4\u65b0\u8bcd\u8868\u4e2d\u7684\u6240\u6709\u53ef\u80fd\u9009\u9879\uff0c\u56e0\u6b64\u5728\u5927\u8bcd\u6c47\u8868\u4e0a\u53ef\u80fd\u4f1a\u53d8\u5f97\u975e\u5e38\u6162\u3002\u7136\u800c\uff0c\u5b83\u7684\u4f18\u70b9\u662f\u80fd\u591f\u5229\u7528\u4e0a\u4e0b\u6587\u4fe1\u606f\u6765\u751f\u6210\u8f93\u51fa\uff0c\u8fd9\u6709\u52a9\u4e8e\u63d0\u9ad8\u7ffb\u8bd1\u7684\u8d28\u91cf\u3002"),(0,m.kt)("p",null,"\u975e\u81ea\u56de\u5f52\u7c7b\u578b\u7684Decoder\u8bd5\u56fe\u5728\u4e00\u6b21\u64cd\u4f5c\u4e2d\u751f\u6210\u6574\u4e2a\u8f93\u51fa\u5e8f\u5217\u3002\u8fd9\u901a\u5e38\u901a\u8fc7\u4f7f\u7528\u8bf8\u5982\u6ce8\u610f\u529b\u673a\u5236\u7b49\u7b56\u7565\u6765\u5b9e\u73b0\uff0c\u8fd9\u4e9b\u7b56\u7565\u5141\u8bb8\u89e3\u7801\u5668\u5173\u6ce8\u8f93\u5165\u5e8f\u5217\u7684\u4e0d\u540c\u90e8\u5206\uff0c\u540c\u65f6\u751f\u6210\u8f93\u51fa\u5e8f\u5217\u7684\u4e0d\u540c\u90e8\u5206\u3002NAT\u7684\u4f18\u70b9\u5728\u4e8e\u5176\u9ad8\u6548\u6027\uff0c\u56e0\u4e3a\u5b83\u4e0d\u9700\u8981\u4fdd\u5b58\u548c\u66f4\u65b0\u5927\u91cf\u7684\u53ef\u80fd\u9009\u9879\u3002\u7136\u800c\uff0c\u7531\u4e8e\u5b83\u4e0d\u80fd\u5229\u7528\u4e0a\u4e0b\u6587\u4fe1\u606f\u6765\u751f\u6210\u8f93\u51fa\uff0c\u56e0\u6b64\u5176\u751f\u6210\u7684\u8f93\u51fa\u8d28\u91cf\u666e\u904d\u4f1a\u4f4e\u4e8eAT\u3002"),(0,m.kt)("h3",{id:"autoregressive-decoderat"},"Autoregressive Decoder\uff08AT\uff09"),(0,m.kt)("h4",{id:"\u6574\u4f53\u7ed3\u6784-2"},"\u6574\u4f53\u7ed3\u6784"),(0,m.kt)("p",null,(0,m.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_imagesimage-20231119102540689.png",alt:"image-20231119102540689"})),(0,m.kt)("h4",{id:"\u8bcd\u6c47\u8868vocabulary"},"\u8bcd\u6c47\u8868\uff08Vocabulary\uff09"),(0,m.kt)("p",null,"\u8bcd\u6c47\u8868\uff08Vocabulary\uff09\u662f\u4e00\u4e2a\u5305\u542b\u4e86\u5728\u7279\u5b9a\u8bed\u8a00\u6216\u4efb\u52a1\u4e2d",(0,m.kt)("strong",{parentName:"p"},"\u6240\u6709\u53ef\u80fd\u51fa\u73b0"),"\u7684",(0,m.kt)("strong",{parentName:"p"},"\u6240\u6709\u5355\u8bcd\u6216\u6807\u8bb0"),"\u7684\u96c6\u5408\u3002\u5728\u81ea\u7136\u8bed\u8a00\u5904\u7406\uff08NLP\uff09\u4e2d\uff0c\u8bcd\u6c47\u8868\u662f",(0,m.kt)("strong",{parentName:"p"},"\u8bad\u7ec3\u6a21\u578b\u65f6\u6240\u4f7f\u7528\u7684\u552f\u4e00\u5355\u8bcd\u7684\u96c6\u5408"),"\uff0c\u7531\u5177\u4f53\u7684\u751f\u6210\u4efb\u52a1\u800c\u786e\u5b9a\u3002"),(0,m.kt)("p",null,"Decoder\u6bcf\u4e00\u6b65\u7684\u8f93\u51fa\u662f\u4e00\u4e2a\u7ecf\u8fc7Softmax\u7684Probability Distribution\uff08\u6982\u7387\u5206\u5e03\uff09\uff0c\u4ee3\u8868\u7740\u8bcd\u6c47\u8868\u4e2d\u6bcf\u4e00\u4e2a\u8bcd\u6c47\u5f53\u524d\u751f\u6210\u7684\u6982\u7387\uff0c\u53d6\u6700\u5927\u6982\u7387\u503c\u7684\u8bcd\u6c47\u4fbf\u662f\u6a21\u578b\u5f53\u524d\u65f6\u95f4\u6b65\u8f93\u51fa\u7684\u8bcd\u6c47\u3002"),(0,m.kt)("p",null,(0,m.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_imagesimage-20231119094748152.png",alt:"image-20231119094748152"})),(0,m.kt)("h4",{id:"begin\u7b26\u53f7"},"Begin\u7b26\u53f7"),(0,m.kt)("p",null,"\u89e3\u7801\u5668\uff08Decoder\uff09\u5728\u6bcf\u4e2a\u65f6\u95f4\u6b65\uff08\u6216\u6bcf\u4e2a\u89e3\u7801\u6b65\u9aa4\uff09\u7684\u8f93\u5165\u90fd\u6765\u81ea\u4e8e\u524d\u4e00\u4e2a\u65f6\u95f4\u6b65\u81ea\u8eab\u7684\u8f93\u51fa\u4ee5\u53ca\u7f16\u7801\u5668\uff08Encoder\uff09\u7684\u8f93\u51fa\u3002\u7279\u522b\u5730\uff0c\u9996\u4e2a\u65f6\u95f4\u6b65\u7684\u8f93\u5165\u662fBegin\u7b26\u53f7\u4ee5\u53ca\u7f16\u7801\u5668\uff08Encoder\uff09\u7684\u8f93\u51fa\uff0c\u5728\u6bcf\u4e2a\u540e\u7eed\u7684\u65f6\u95f4\u6b65\uff0c\u89e3\u7801\u5668\u7684\u8f93\u5165\u4f1a\u662f\u524d\u4e00\u4e2a\u65f6\u95f4\u6b65\u81ea\u8eab\u7684\u8f93\u51fa\u4ee5\u53ca\u7f16\u7801\u5668\uff08Encoder\uff09\u7684\u8f93\u51fa\uff0c\u76f4\u5230\u751f\u6210\u5e8f\u5217\u7684\u7ed3\u675f\u3002"),(0,m.kt)("admonition",{title:"\u7279\u6b8a\u7b26\u53f7",type:"tip"},(0,m.kt)("p",{parentName:"admonition"},"Begin\u7b26\u53f7\u662f\u5728Lexicon\u4e2d\u6dfb\u52a0\u7684\u7279\u6b8a\u7b26\u53f7\uff0c\u7528\u6765\u8868\u793aDecoder\u751f\u6210\u7684\u5f00\u59cb\u3002Begin\u7b26\u53f7\u901a\u5e38\u88ab\u5d4c\u5165\u5230\u4e00\u4e2a\u4f4e\u7ef4\u7684\u8fde\u7eed\u5411\u91cf\u7a7a\u95f4\u4e2d\uff0c\u8fd9\u4e2a\u5411\u91cf\u7a7a\u95f4\u662f\u901a\u8fc7\u5d4c\u5165\u5c42\uff08Embedding Layer\uff09\u5b66\u4e60\u5f97\u5230\u7684\uff0c\u5728\u5d4c\u5165\u5c42\u4e2d\uff0c\u79bb\u6563\u7684\u7b26\u53f7\u88ab\u6620\u5c04\u5230\u4e00\u4e2a\u5b9e\u6570\u5411\u91cf\u3002"),(0,m.kt)("p",{parentName:"admonition"},"Begin\u7b26\u53f7\u53c8\u53ebStart\u7b26\u53f7\u6216SOS\u7b26\u53f7\uff08",(0,m.kt)("strong",{parentName:"p"},"S"),"tart ",(0,m.kt)("strong",{parentName:"p"},"O"),"f ",(0,m.kt)("strong",{parentName:"p"},"S"),"entence\uff09\uff0c\u90fd\u662f\u8868\u793a\u751f\u6210\u7684\u5f00\u59cb\u3002End\u7b26\u53f7\u53c8\u53ebEOS\u7b26\u53f7\uff08",(0,m.kt)("strong",{parentName:"p"},"E"),"nd ",(0,m.kt)("strong",{parentName:"p"},"O"),"f ",(0,m.kt)("strong",{parentName:"p"},"S"),"entence\uff09\u3002")),(0,m.kt)("h4",{id:"end\u7b26\u53f7"},"End\u7b26\u53f7"),(0,m.kt)("p",null,"\u5728Decoder\u7684\u751f\u6210\u4e2d\uff0c\u6bcf\u4e00\u4e2a\u65f6\u95f4\u6b65\u7684\u8f93\u51fa\u662f\u8bcd\u6c47\u8868\u4e2d\u6bcf\u4e00\u4e2a\u5355\u8bcd\u7ecf\u8fc7Softmax\u4e4b\u540e\u7684\u6982\u7387\u5206\u5e03\u3002\u4e3a\u4e86\u4fdd\u8bc1\u751f\u6210\u4efb\u52a1\u53ef\u4ee5\u901a\u8fc7\u6a21\u578b\u81ea\u5df1\u505c\u6b62\u800c\u4e0d\u662f\u4e00\u76f4\u91cd\u590d\uff0c\u6211\u4eec\u5411Decoder\u7684\u8f93\u51fa\u4e2d\u52a0\u5165End\u7b26\u53f7\u7684\u751f\u6210\uff0c\u5373\u6bcf\u4e00\u6b21\u8f93\u51fa\u9664\u4e86\u8bcd\u6c47\u8868\u7684\u6240\u6709\u8bcd\u6c47\u5916\u8fd8\u6709End\u7b26\u53f7\u7684\u6982\u7387\uff0c\u5f53End\u7b26\u53f7\u662f\u5728\u6240\u6709\u8bcd\u6c47\u4e2d\u6982\u7387\u6700\u5927\u7684\u8bcd\u6c47\u65f6\uff0c\u751f\u6210\u505c\u6b62\u3002"),(0,m.kt)("p",null,(0,m.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_imagesimage-20231119102220262.png",alt:"image-20231119102220262"})),(0,m.kt)("p",null,(0,m.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_imagesimage-20231119102159884.png",alt:"image-20231119102159884"})),(0,m.kt)("h4",{id:"\u63a9\u7801\u591a\u5934\u81ea\u6ce8\u610f\u529b\u673a\u5236masked-multi-head-self-attention"},"\u63a9\u7801\u591a\u5934\u81ea\u6ce8\u610f\u529b\u673a\u5236\uff08Masked Multi-Head Self-Attention\uff09"),(0,m.kt)("admonition",{title:"\u4e3a\u4ec0\u4e48\u4f7f\u7528\u63a9\u7801\u591a\u5934\u81ea\u6ce8\u610f\u529b",type:"important"},(0,m.kt)("p",{parentName:"admonition"},"\u63a9\u7801\u591a\u5934\u81ea\u6ce8\u610f\u529b\u4e0eTransformer\u8bad\u7ec3\u65f6\u91c7\u53d6\u7684Teacher Forcing\u7b56\u7565\u6709\u5f88\u5927\u7684\u5173\u7cfb\uff0c\u5177\u4f53\u5206\u6790\u89c1\u4e0b\u6587\u300aTeacher Forcing\u4e0eMasked Multi-Head Self-Attention\u300b\u7684\u8ba8\u8bba\u73af\u8282\uff1a",(0,m.kt)("a",{parentName:"p",href:"https://bonjour-npy.github.io/docs/Deep-Learning/%E8%AE%BA%E6%96%87%E7%AC%94%E8%AE%B0/Attention%20Is%20All%20You%20Need#teacher-forcing%E4%B8%8Emasked-multi-head-self-attention"},"Teacher Forcing\u4e0eMasked Multi-Head Self-Attention"))),(0,m.kt)("p",null,"\u89c2\u5bdfDecoder\u7684\u6574\u4f53\u7ed3\u6784\uff0c\u63a9\u7801\u591a\u5934\u81ea\u6ce8\u610f\u529b\u7684\u8f93\u5165\u662f\u6dfb\u52a0\u4f4d\u7f6e\u7f16\u7801\u4e4b\u540e\u7684Decoder",(0,m.kt)("strong",{parentName:"p"},"\u5f53\u524d\u65f6\u95f4\u6b65\u4e4b\u524d\u7684\u6240\u6709\u8f93\u51fa\u5355\u8bcd\u7ecf\u8fc7\u5d4c\u5165\u540e\u7684\u5411\u91cf\u8868\u793a"),"\u3002"),(0,m.kt)("p",null,"\u63a9\u7801\u591a\u5934\u81ea\u6ce8\u610f\u529b\u673a\u5236\u7528\u4e8e\u786e\u4fdd\u5728\u751f\u6210\u5e8f\u5217\u7684\u8fc7\u7a0b\u4e2d\uff0c\u6bcf\u4e2a\u4f4d\u7f6e\u53ea\u80fd\u5173\u6ce8\u5230\u8be5\u4f4d\u7f6e\u53ca\u5176\u4e4b\u524d\u7684\u4f4d\u7f6e\u3002\u8fd9\u662f\u901a\u8fc7\u5728Self-Attention\u7684\u8ba1\u7b97\u4e2d\u5e94\u7528\u4e00\u4e2a\u63a9\u7801\uff08mask\uff09\u6765\u5b9e\u73b0\u7684\u3002\u8fd9\u786e\u4fdd\u4e86\u5728\u751f\u6210\u5e8f\u5217\u65f6\uff0c\u6bcf\u4e2a\u4f4d\u7f6e\u53ea\u80fd\u67e5\u770b\u5230\u5b83\u4e4b\u524d\u7684\u4fe1\u606f\uff0c\u800c\u4e0d\u80fd\u67e5\u770b\u5230\u672a\u6765\u7684\u4fe1\u606f\uff0c\u4ece\u800c\u5b9e\u73b0\u4e86\u81ea\u56de\u5f52\u6027\u8d28\u3002"),(0,m.kt)("p",null,"\u5177\u4f53\u6765\u8bf4\uff0c\u6dfb\u52a0\u63a9\u7801\u540e\u7684\u81ea\u6ce8\u610f\u529b\u673a\u5236\u5728\u751f\u6210\u6ce8\u610f\u529b\u5206\u6570\u65f6\u4e0d\u518d\u8003\u8651\u8f93\u5165\u5e8f\u5217\u7684\u6240\u6709\u5411\u91cf\u3002\u5982\u5728\u8f93\u5165\u5411\u91cf",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("msup",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msup"},"a"),(0,m.kt)("mi",{parentName:"msup"},"i"))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"a^i")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.8247em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"a"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.8247em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-3.063em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"i")))))))))))),"\u5728\u8ba1\u7b97\u6ce8\u610f\u529b\u5206\u6570\u65f6\uff0c\u53ea\u5c06",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("msup",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msup"},"a"),(0,m.kt)("mi",{parentName:"msup"},"i"))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"a^i")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.8247em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"a"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.8247em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-3.063em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"i")))))))))))),"\u7684query\u5411\u91cf\u4e0e",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("msup",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msup"},"a"),(0,m.kt)("mn",{parentName:"msup"},"1"))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"a^1")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.8141em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"a"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.8141em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-3.063em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"1")))))))))))),"\u81f3",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("msup",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msup"},"a"),(0,m.kt)("mi",{parentName:"msup"},"i"))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"a^{i}")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.8247em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"a"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.8247em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-3.063em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"i"))))))))))))),"\u7684",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"i")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"i")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6595em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"i"))))),"\u4e2akey\u5411\u91cf\u505adot product\uff0c\u800c\u4e0d\u8003\u8651",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("msup",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msup"},"a"),(0,m.kt)("mi",{parentName:"msup"},"i"))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"a^i")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.8247em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"a"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.8247em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-3.063em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"i")))))))))))),"\u4e4b\u540e\u7684\u8f93\u5165\u7684key\u3002"),(0,m.kt)("admonition",{type:"tip"},(0,m.kt)("p",{parentName:"admonition"},"\u5bf9\u4e8e\u7b2c",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"s")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"s")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.4306em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"s"))))),"\u4e2a\u65f6\u95f4\u6b65\uff0cMasked Mutil-Head Self-Attention\u7684\u8f93\u5165\u662f\u65f6\u95f4\u6b65",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"s")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"s")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.4306em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"s"))))),"\u4e4b\u524dDecoder\u751f\u6210\u7684\u6240\u6709\u8f93\u51fa\u5355\u8bcd\u7684\u5d4c\u5165\u8868\u793a\u3002")),(0,m.kt)("p",null,(0,m.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_imagesimage-20231119095632569.png",alt:"image-20231119095632569"})),(0,m.kt)("h4",{id:"\u4ea4\u53c9\u6ce8\u610f\u529bcross-attention"},"\u4ea4\u53c9\u6ce8\u610f\u529b\uff08Cross-Attention\uff09"),(0,m.kt)("p",null,"\u4ea4\u53c9\u6ce8\u610f\u529b\u662f\u8fde\u63a5Encoder\u548cDecoder\u7684\u6865\u6881\uff0c\u4e5f\u662fDecoder\u8f93\u5165\u7684\u91cd\u8981\u7ec4\u6210\u90e8\u5206\u3002"),(0,m.kt)("p",null,(0,m.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_imagesimage-20231119103201335.png",alt:"image-20231119103201335"})),(0,m.kt)("p",null,"\u4ea4\u53c9\u6ce8\u610f\u529b\u63a5\u6536\u4e24\u4e2a\u8f93\u5165\u5e8f\u5217\uff0c\u4e00\u4e2a\u6765\u81ea\u7f16\u7801\u5668\uff08Encoder\uff09\u7684\u8f93\u51fa\u5e8f\u5217\uff08\u901a\u5e38\u662f\u8f93\u5165\u5e8f\u5217\u7684\u8868\u793a\uff09\uff0c\u53e6\u4e00\u4e2a\u6765\u81ea\u89e3\u7801\u5668\uff08Decoder\uff09\uff0c\u662f\u7ecf\u8fc7\u63a9\u7801\u591a\u5934\u81ea\u6ce8\u610f\u529b\u673a\u5236\u7684\u8f93\u51fa\u5e8f\u5217\uff08\u901a\u5e38\u662f\u6b63\u5728\u751f\u6210\u7684\u5e8f\u5217\u7684\u4e2d\u95f4\u8868\u793a\uff09\u3002"),(0,m.kt)("p",null,"\u5728\u4ea4\u53c9\u6ce8\u610f\u529b\u4e2d\uff0c\u6bcf\u6b21\u8ba1\u7b97\u6ce8\u610f\u529b\u5f97\u5206\u7684",(0,m.kt)("strong",{parentName:"p"},"query\u6765\u81ea\u89e3\u7801\u5668"),"\uff0c",(0,m.kt)("strong",{parentName:"p"},"key\u548cvalue\u6765\u81ea\u7f16\u7801\u5668"),"\u3002\u89e3\u7801\u5668\u6bcf\u4e2a\u5411\u91cf\u7684\u67e5\u8be2\uff08Query\uff09\u4e0e\u7f16\u7801\u5668\u4f4d\u7f6e\u7684\u952e\uff08Key\uff09\u8fdb\u884c\u70b9\u79ef\u5f97\u5230\u4e86\u6ce8\u610f\u529b\u5206\u6570\uff0c\u901a\u8fc7Softmax\u64cd\u4f5c\u540e\u8f6c\u6362\u4e3a\u6ce8\u610f\u529b\u6743\u91cd\uff0c\u518d\u4e0e\u7f16\u7801\u5668\u4f4d\u7f6e\u7684\u503c\uff08Value\uff09weighted sum\u5f97\u5230\u52a0\u6743\u6ce8\u610f\u529b\u5206\u6570\uff0c\u6700\u7ec8\u5c06\u52a0\u6743\u6ce8\u610f\u529b\u5206\u6570\u6c42\u548c\u5f97\u5230\u6bcf\u4e2a\u8f93\u5165\u5411\u91cf\u7684\u8f93\u51fa\u3002"),(0,m.kt)("p",null,(0,m.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_imagesimage-20231119142212757.png",alt:"image-20231119142212757"})),(0,m.kt)("h3",{id:"non-autoregressive-decodernat"},"Non-Autoregressive Decoder\uff08NAT\uff09"),(0,m.kt)("p",null,(0,m.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_imagesimage-20231119103112168.png",alt:"image-20231119103112168"})),(0,m.kt)("h2",{id:"\u8bad\u7ec3training"},"\u8bad\u7ec3\uff08Training\uff09"),(0,m.kt)("h3",{id:"\u635f\u5931\u51fd\u6570"},"\u635f\u5931\u51fd\u6570"),(0,m.kt)("p",null,"\u5728 Transformer \u4e2d\uff0cEncoder \u4e0d\u50cf Decoder \u9700\u8981\u751f\u6210\u5e8f\u5217\uff0c\u56e0\u6b64\u5b83\u901a\u5e38\u4e0d\u6d89\u53ca\u6807\u7b7e\u7684\u9884\u6d4b\u3002Encoder \u7684\u8bad\u7ec3\u901a\u5e38\u662f\u5728\u6574\u4e2a\u6a21\u578b\u4e2d\u7684\u8054\u5408\u8bad\u7ec3\u4e2d\u8fdb\u884c\u7684\uff0c\u901a\u8fc7\u4f18\u5316\u6574\u4e2a\u6a21\u578b\u7684\u635f\u5931\u51fd\u6570\u6765\u8fdb\u884c\u3002"),(0,m.kt)("p",null,"Transformer \u7684\u6574\u4f53\u8bad\u7ec3\u8fc7\u7a0b\u4e00\u822c\u5206\u4e3a\u4ee5\u4e0b\u51e0\u4e2a\u6b65\u9aa4\uff1a"),(0,m.kt)("ol",null,(0,m.kt)("li",{parentName:"ol"},(0,m.kt)("strong",{parentName:"li"},"\u7f16\u7801\u5668\uff08Encoder\uff09\u7684\u6b63\u5411\u4f20\u64ad\uff1a")," \u8f93\u5165\u5e8f\u5217\u7ecf\u8fc7\u7f16\u7801\u5668\u7684\u6b63\u5411\u4f20\u64ad\uff0c\u4ea7\u751f\u4e00\u7ec4\u4e0a\u4e0b\u6587\u8868\u793a\u3002"),(0,m.kt)("li",{parentName:"ol"},(0,m.kt)("strong",{parentName:"li"},"\u89e3\u7801\u5668\uff08Decoder\uff09\u7684\u6b63\u5411\u4f20\u64ad\uff1a")," \u89e3\u7801\u5668\u63a5\u6536\u4e0a\u4e0b\u6587\u8868\u793a\uff0c\u5e76\u751f\u6210\u76ee\u6807\u5e8f\u5217\u3002"),(0,m.kt)("li",{parentName:"ol"},(0,m.kt)("strong",{parentName:"li"},"\u8ba1\u7b97\u635f\u5931\uff1a")," \u901a\u8fc7\u6bd4\u8f83\u751f\u6210\u7684\u76ee\u6807\u5e8f\u5217\u4e0e\u5b9e\u9645\u76ee\u6807\u5e8f\u5217\uff0c\u8ba1\u7b97\u635f\u5931\u3002\u5728 Decoder \u4e2d\uff0c\u901a\u5e38\u4f7f\u7528\u4ea4\u53c9\u71b5\u635f\u5931\u51fd\u6570\u3002"),(0,m.kt)("li",{parentName:"ol"},(0,m.kt)("strong",{parentName:"li"},"\u53cd\u5411\u4f20\u64ad\uff1a")," \u6839\u636e\u635f\u5931\uff0c\u8fdb\u884c\u53cd\u5411\u4f20\u64ad\uff0c\u66f4\u65b0\u6a21\u578b\u53c2\u6570\u3002\u8fd9\u4e2a\u8fc7\u7a0b\u4e2d\uff0c\u68af\u5ea6\u901a\u8fc7\u6574\u4e2a\u6a21\u578b\u4f20\u64ad\uff0c\u5305\u62ec Encoder \u548c Decoder\u3002")),(0,m.kt)("p",null,"\u6574\u4e2a\u6a21\u578b\u7684\u53c2\u6570\uff08\u5305\u62ec Encoder \u548c Decoder\uff09\u90fd\u662f\u901a\u8fc7\u6700\u5c0f\u5316\u6574\u4f53\u635f\u5931\u6765\u8fdb\u884c\u8054\u5408\u8bad\u7ec3\u7684\u3002\u8fd9\u662f\u56e0\u4e3a\u6574\u4f53\u6a21\u578b\u9700\u8981\u534f\u540c\u5de5\u4f5c\uff0cEncoder \u7684\u8868\u793a\u5bf9\u4e8e Decoder \u7684\u6027\u80fd\u81f3\u5173\u91cd\u8981\u3002\u5728\u8bad\u7ec3\u8fc7\u7a0b\u4e2d\uff0c\u68af\u5ea6\u4ece\u635f\u5931\u51fd\u6570\u4f20\u64ad\u56de\u6574\u4e2a\u6a21\u578b\uff0c\u5305\u62ec Encoder \u548c Decoder\uff0c\u4ece\u800c\u66f4\u65b0\u5b83\u4eec\u7684\u53c2\u6570\u3002"),(0,m.kt)("p",null,"\u9700\u8981\u6ce8\u610f\u7684\u662f\uff0cTransformer \u6a21\u578b\u901a\u5e38\u4f7f\u7528\u7684\u662f\u7aef\u5230\u7aef\u7684\u8bad\u7ec3\u65b9\u5f0f\uff0c\u6574\u4e2a\u6a21\u578b\u7684\u53c2\u6570\u662f\u4e00\u6b21\u6027\u66f4\u65b0\u7684\u3002\u5728\u67d0\u4e9b\u573a\u666f\u4e0b\uff0c\u4f60\u53ef\u80fd\u4f1a\u770b\u5230\u5bf9 Encoder \u6216 Decoder \u8fdb\u884c\u5fae\u8c03\uff08fine-tuning\uff09\u7684\u60c5\u51b5\uff0c\u4f46\u8fd9\u662f\u5728\u7279\u5b9a\u5e94\u7528\u573a\u666f\u4e0b\u7684\u8c03\u6574\uff0c\u4e0d\u662f Transformer \u6a21\u578b\u7684\u6807\u51c6\u8bad\u7ec3\u65b9\u5f0f\u3002"),(0,m.kt)("h3",{id:"teacher-forcing"},"Teacher Forcing"),(0,m.kt)("p",null,"\u5728Transformer\u7684\u63a8\u7406\u9636\u6bb5\uff0c\u81ea\u56de\u5f52\u7c7b\u578b\u7684Decoder\u6839\u636e\u5206\u8bcd\u65b9\u5f0f\u7684\u4e0d\u540c\uff0c\u4e00\u4e2a\u8bcd\u6c47\u4e00\u4e2a\u8bcd\u6c47\u7684\u8f93\u51fa\uff0c\u5c06\u5f53\u524d\u65f6\u95f4\u6b65\u4e4b\u524d\u751f\u6210\u7684\u6240\u6709\u8bcd\u6c47\u4f5c\u4e3a\u8f93\u5165load\u8fdb\u5165Decoder\u4e2d\u3002\u4f46\u5728\u8bad\u7ec3\u65f6\u5982\u679c\u9075\u4ece\u540c\u6837\u7684\u751f\u6210\u8303\u5f0f\u4f1a\u5927\u5927\u964d\u4f4e\u6548\u7387\uff0c\u5e76\u4e14\u9762\u4e34\u5219\u4e00\u6b65\u9519\u6b65\u6b65\u9519\u7684\u98ce\u9669\uff08Error Propagation\uff09\u3002"),(0,m.kt)("p",null,"\u56e0\u6b64\u4f7f\u7528Teacher Forcing\u7b56\u7565\uff0c\u5c06Ground Truth\u4e00\u6b21\u6027\u5582\u5230Decoder\u4e2d\uff0c\u4f7f\u6a21\u578b\u66f4\u5feb\u6536\u655b\u5e76\u4e14\u907f\u514d\u8bef\u5dee\u79ef\u7d2f\u7684\u95ee\u9898\u3002"),(0,m.kt)("p",null,(0,m.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_imagesimage-20231119155803489.png",alt:"image-20231119155803489"})),(0,m.kt)("p",null,"\u4f46\u662f\uff0c\u81ea\u56de\u5f52Decoder\u5728\u63a8\u7406\u65f6\u662f\u4e00\u4e2a\u4e00\u4e2a\u8bcd\u6c47\u4ea7\u751f\u7684\uff0c\u5728\u4ea7\u751f\u7b2c",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"i")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"i")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6595em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"i"))))),"\u4e2a\u8bcd\u6c47\u65f6\u5176\u540e\u7eed\u7684\u8bcd\u6c47\u662f\u672a\u77e5\u7684\uff0c\u66f4\u4e0d\u7528\u8bf4\u8fdb\u884c\u6ce8\u610f\u529b\u5206\u6570\u7684\u5c31\u7b97\u4e86\uff0c\u800c\u5728\u8bad\u7ec3\u8fc7\u7a0b\u4e2d\u4f7f\u7528Teacher Forcing\u65f6\u5374\u53ef\u4ee5\u5f97\u5230\u7b2c",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"i"),(0,m.kt)("mo",{parentName:"mrow"},"+"),(0,m.kt)("mn",{parentName:"mrow"},"1")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"i+1")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.7429em",verticalAlign:"-0.0833em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"i"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"+"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6444em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"1"))))),"\u4e2a\u53ca\u5176\u4e4b\u540e\u8bcd\u6c47\u7684\u6ce8\u610f\u529b\u4fe1\u606f\uff0c\u5982\u679c\u4e0d\u6dfb\u52a0\u5176\u4ed6\u7b56\u7565\u663e\u7136\u4f1a\u5bf9\u6a21\u578b\u7684\u6cdb\u5316\u80fd\u529b\u9020\u6210\u5f88\u5927\u7684\u5f71\u54cd\uff0c\u800c\u4e14\u8fd9\u5e76\u4e0d\u7b26\u5408\u81ea\u56de\u5f52\uff08Autoregression\uff09\u7684\u7279\u6027\u3002\u4e3a\u4e86\u89e3\u51b3\u8fd9\u4e2a\u95ee\u9898\uff0c\u63a9\u7801\u591a\u5934\u6ce8\u610f\u529b\u673a\u5236\u5e94\u8fd0\u800c\u751f\uff0c\u5728\u8bad\u7ec3\u9636\u6bb5\u5c06\u6a21\u578b\u5728\u65f6\u95f4\u53d1\u5c55\u987a\u5e8f\u7684\u53f3\u4fa7\u7684\u8f93\u5165masked\u6389\uff0c\u9632\u6b62\u6a21\u578b\u5b66\u4e60\u5230\u4e0d\u8be5\u5b66\u4e60\u7684\u6ce8\u610f\u529b\u3002"),(0,m.kt)("h3",{id:"teacher-forcing\u4e0emasked-multi-head-self-attention"},"Teacher Forcing\u4e0eMasked Multi-Head Self-Attention"),(0,m.kt)("p",null,"\u53c2\u8003\u6587\u732e\uff1a",(0,m.kt)("a",{parentName:"p",href:"http://t.csdnimg.cn/c8QA2"},"MultiHead-Attention\u548cMasked-Attention\u7684\u673a\u5236\u548c\u539f\u7406")),(0,m.kt)("p",null,"\u4e0eEncoder\u7684\u591a\u5934\u81ea\u6ce8\u610f\u529b\u4e0d\u540c\uff0c\u5728Decoder\u4e2d\uff0c\u4e3a\u6ce8\u610f\u529b\u673a\u5236\u5e94\u7528\u4e86\u63a9\u7801\uff0c\u4f7f\u6a21\u578b\u53ea\u80fd\u5173\u6ce8\u5230\u5f53\u524d\u4f4d\u7f6e\u53ca\u5176\u4e4b\u524d\u7684\u4f4d\u7f6e\uff0c\u800c\u4e0d\u80fd\u8bbf\u95ee\u672a\u6765\u7684\u4fe1\u606f\u3002\u8fd9\u89e3\u51b3\u4e86\u5f15\u5165Teacher Forcing\u51fa\u73b0\u7684\u95ee\u9898\uff0c\u907f\u514d\u4e86\u8bad\u7ec3\u4e0e\u63a8\u7406\u9636\u6bb5\u7684Mismatch\uff0c\u7ef4\u62a4\u4e86\u81ea\u56de\u5f52\u7684\u7279\u6027\u3002"),(0,m.kt)("p",null,"\u5177\u4f53\u6765\u8bf4\uff0c\u6a21\u62df\u63a8\u7406\u8fc7\u7a0b\u4e2d\u7b2c\u4e00\u4e2a\u8bcd\u6c47\u65f6\u7684\u573a\u666f\u3002\u5f53\u6a21\u578b\u53ea\u6709",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"v"),(0,m.kt)("mi",{parentName:"mrow"},"o"),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"c"),(0,m.kt)("mn",{parentName:"msub"},"1"))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"voc_1")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.5806em",verticalAlign:"-0.15em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"v"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"o"),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"c"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"1")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))))))),"\u8bcd\u6c47\u5411\u91cf\u8f93\u5165\u65f6\uff0c\u5728Decoder\u4e2d\uff0c",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"v"),(0,m.kt)("mi",{parentName:"mrow"},"o"),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"c"),(0,m.kt)("mn",{parentName:"msub"},"1"))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"voc_1")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.5806em",verticalAlign:"-0.15em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"v"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"o"),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"c"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"1")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))))))),"\u4e0e\u81ea\u8eab\u8ba1\u7b97\u6ce8\u610f\u529b\u5206\u6570\uff0c\u4e8e\u662f\u6709"),(0,m.kt)("div",{className:"math math-display"},(0,m.kt)("span",{parentName:"div",className:"katex-display"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mtable",{parentName:"semantics",width:"100%"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mrow",{parentName:"mtd"},(0,m.kt)("mrow",{parentName:"mrow"},(0,m.kt)("mo",{parentName:"mrow",fence:"true"},"["),(0,m.kt)("mtable",{parentName:"mrow",rowspacing:"0.16em",columnalign:"center",columnspacing:"1em"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("msub",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"msub"},"o"),(0,m.kt)("mn",{parentName:"msub"},"1")))))),(0,m.kt)("mo",{parentName:"mrow",fence:"true"},"]")),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("mrow",{parentName:"mrow"},(0,m.kt)("mo",{parentName:"mrow",fence:"true"},"["),(0,m.kt)("mtable",{parentName:"mrow",rowspacing:"0.16em",columnalign:"center",columnspacing:"1em"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("msubsup",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"msubsup"},"\u03b1"),(0,m.kt)("mrow",{parentName:"msubsup"},(0,m.kt)("mn",{parentName:"mrow"},"1"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mn",{parentName:"mrow"},"1")),(0,m.kt)("mo",{parentName:"msubsup",mathvariant:"normal",lspace:"0em",rspace:"0em"},"\u2032")))))),(0,m.kt)("mo",{parentName:"mrow",fence:"true"},"]")),(0,m.kt)("mrow",{parentName:"mrow"},(0,m.kt)("mo",{parentName:"mrow",fence:"true"},"["),(0,m.kt)("mtable",{parentName:"mrow",rowspacing:"0.16em",columnalign:"center",columnspacing:"1em"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("msub",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"msub"},"v"),(0,m.kt)("mn",{parentName:"msub"},"1")))))),(0,m.kt)("mo",{parentName:"mrow",fence:"true"},"]")))),(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mtext",{parentName:"mtd"},"(5)")))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"\\begin{bmatrix}o_1\\end{bmatrix}=\\begin{bmatrix}\\alpha_{1,1}^{\\prime}\\end{bmatrix}\\begin{bmatrix}v_1\\end{bmatrix}\\tag{5}")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1.2em",verticalAlign:"-0.35em"}}),(0,m.kt)("span",{parentName:"span",className:"minner"},(0,m.kt)("span",{parentName:"span",className:"mopen delimcenter",style:{top:"0em"}},(0,m.kt)("span",{parentName:"span",className:"delimsizing size1"},"[")),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mtable"},(0,m.kt)("span",{parentName:"span",className:"col-align-c"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.85em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-3.01em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"o"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"1")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"}))))))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.35em"}},(0,m.kt)("span",{parentName:"span"}))))))),(0,m.kt)("span",{parentName:"span",className:"mclose delimcenter",style:{top:"0em"}},(0,m.kt)("span",{parentName:"span",className:"delimsizing size1"},"]"))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"="),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1.2242em",verticalAlign:"-0.3621em"}}),(0,m.kt)("span",{parentName:"span",className:"minner"},(0,m.kt)("span",{parentName:"span",className:"mopen delimcenter",style:{top:"0em"}},(0,m.kt)("span",{parentName:"span",className:"delimsizing size1"},"[")),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mtable"},(0,m.kt)("span",{parentName:"span",className:"col-align-c"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.8621em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-3.0221em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.0037em"}},"\u03b1"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.7519em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.4519em",marginLeft:"-0.0037em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"1"),(0,m.kt)("span",{parentName:"span",className:"mpunct mtight"},","),(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"1")))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.063em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"\u2032"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3842em"}},(0,m.kt)("span",{parentName:"span"}))))))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3621em"}},(0,m.kt)("span",{parentName:"span"}))))))),(0,m.kt)("span",{parentName:"span",className:"mclose delimcenter",style:{top:"0em"}},(0,m.kt)("span",{parentName:"span",className:"delimsizing size1"},"]"))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"minner"},(0,m.kt)("span",{parentName:"span",className:"mopen delimcenter",style:{top:"0em"}},(0,m.kt)("span",{parentName:"span",className:"delimsizing size1"},"[")),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mtable"},(0,m.kt)("span",{parentName:"span",className:"col-align-c"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.85em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-3.01em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"v"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0359em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"1")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"}))))))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.35em"}},(0,m.kt)("span",{parentName:"span"}))))))),(0,m.kt)("span",{parentName:"span",className:"mclose delimcenter",style:{top:"0em"}},(0,m.kt)("span",{parentName:"span",className:"delimsizing size1"},"]")))),(0,m.kt)("span",{parentName:"span",className:"tag"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1.2242em",verticalAlign:"-0.3621em"}}),(0,m.kt)("span",{parentName:"span",className:"mord text"},(0,m.kt)("span",{parentName:"span",className:"mord"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"5")),(0,m.kt)("span",{parentName:"span",className:"mord"},")"))))))),(0,m.kt)("p",null,"\u6211\u4eec\u518d\u6a21\u62df\u8bad\u7ec3\u8fc7\u7a0b\u4e2d\u4f7f\u7528Teacher Forcing\uff0c\u4e00\u6b21\u6027\u8f93\u5165\u4e3a\u4e24\u4e2a\u8bcd\u6c47",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"v"),(0,m.kt)("mi",{parentName:"mrow"},"o"),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"c"),(0,m.kt)("mn",{parentName:"msub"},"1"))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"voc_1")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.5806em",verticalAlign:"-0.15em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"v"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"o"),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"c"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"1")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))))))),"\u4e0e",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"v"),(0,m.kt)("mi",{parentName:"mrow"},"o"),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"c"),(0,m.kt)("mn",{parentName:"msub"},"2"))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"voc_2")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.5806em",verticalAlign:"-0.15em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"v"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"o"),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"c"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"2")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))))))),"\u7684\u60c5\u51b5\uff0c\u4e8e\u662f\u6709"),(0,m.kt)("div",{className:"math math-display"},(0,m.kt)("span",{parentName:"div",className:"katex-display"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mtable",{parentName:"semantics",width:"100%"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mrow",{parentName:"mtd"},(0,m.kt)("mrow",{parentName:"mrow"},(0,m.kt)("mo",{parentName:"mrow",fence:"true"},"["),(0,m.kt)("mtable",{parentName:"mrow",rowspacing:"0.16em",columnalign:"center",columnspacing:"1em"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("msub",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"msub"},"o"),(0,m.kt)("mn",{parentName:"msub"},"1"))))),(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("msub",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"msub"},"o"),(0,m.kt)("mn",{parentName:"msub"},"2")))))),(0,m.kt)("mo",{parentName:"mrow",fence:"true"},"]")),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("mrow",{parentName:"mrow"},(0,m.kt)("mo",{parentName:"mrow",fence:"true"},"["),(0,m.kt)("mtable",{parentName:"mrow",rowspacing:"0.16em",columnalign:"center center",columnspacing:"1em"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("msubsup",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"msubsup"},"\u03b1"),(0,m.kt)("mrow",{parentName:"msubsup"},(0,m.kt)("mn",{parentName:"mrow"},"1"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mn",{parentName:"mrow"},"1")),(0,m.kt)("mo",{parentName:"msubsup",mathvariant:"normal",lspace:"0em",rspace:"0em"},"\u2032")))),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("msubsup",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"msubsup"},"\u03b1"),(0,m.kt)("mrow",{parentName:"msubsup"},(0,m.kt)("mn",{parentName:"mrow"},"2"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mn",{parentName:"mrow"},"1")),(0,m.kt)("mo",{parentName:"msubsup",mathvariant:"normal",lspace:"0em",rspace:"0em"},"\u2032"))))),(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("msubsup",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"msubsup"},"\u03b1"),(0,m.kt)("mrow",{parentName:"msubsup"},(0,m.kt)("mn",{parentName:"mrow"},"1"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mn",{parentName:"mrow"},"2")),(0,m.kt)("mo",{parentName:"msubsup",mathvariant:"normal",lspace:"0em",rspace:"0em"},"\u2032")))),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("msubsup",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"msubsup"},"\u03b1"),(0,m.kt)("mrow",{parentName:"msubsup"},(0,m.kt)("mn",{parentName:"mrow"},"2"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mn",{parentName:"mrow"},"2")),(0,m.kt)("mo",{parentName:"msubsup",mathvariant:"normal",lspace:"0em",rspace:"0em"},"\u2032")))))),(0,m.kt)("mo",{parentName:"mrow",fence:"true"},"]")),(0,m.kt)("mrow",{parentName:"mrow"},(0,m.kt)("mo",{parentName:"mrow",fence:"true"},"["),(0,m.kt)("mtable",{parentName:"mrow",rowspacing:"0.16em",columnalign:"center",columnspacing:"1em"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("msub",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"msub"},"v"),(0,m.kt)("mn",{parentName:"msub"},"1"))))),(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("msub",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"msub"},"v"),(0,m.kt)("mn",{parentName:"msub"},"2")))))),(0,m.kt)("mo",{parentName:"mrow",fence:"true"},"]")))),(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mtext",{parentName:"mtd"},"(6)")))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"\\begin{bmatrix}o_1\\\\o_2\\end{bmatrix}=\\begin{bmatrix}\\alpha_{1,1}^{\\prime}&\\alpha_{2,1}^{\\prime}\\\\\\alpha_{1,2}^{\\prime}&\\alpha_{2,2}^{\\prime}\\end{bmatrix}\\begin{bmatrix}v_1\\\\v_2\\end{bmatrix} \\tag{6}")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"2.4em",verticalAlign:"-0.95em"}}),(0,m.kt)("span",{parentName:"span",className:"minner"},(0,m.kt)("span",{parentName:"span",className:"mopen delimcenter",style:{top:"0em"}},(0,m.kt)("span",{parentName:"span",className:"delimsizing size3"},"[")),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mtable"},(0,m.kt)("span",{parentName:"span",className:"col-align-c"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.45em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-3.61em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"o"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"1")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))))),(0,m.kt)("span",{parentName:"span",style:{top:"-2.41em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"o"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"2")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"}))))))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.95em"}},(0,m.kt)("span",{parentName:"span"}))))))),(0,m.kt)("span",{parentName:"span",className:"mclose delimcenter",style:{top:"0em"}},(0,m.kt)("span",{parentName:"span",className:"delimsizing size3"},"]"))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"="),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"2.4484em",verticalAlign:"-0.9742em"}}),(0,m.kt)("span",{parentName:"span",className:"minner"},(0,m.kt)("span",{parentName:"span",className:"mopen delimcenter",style:{top:"0em"}},(0,m.kt)("span",{parentName:"span",className:"delimsizing size3"},"[")),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mtable"},(0,m.kt)("span",{parentName:"span",className:"col-align-c"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.4742em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-3.6342em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.0037em"}},"\u03b1"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.7519em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.4519em",marginLeft:"-0.0037em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"1"),(0,m.kt)("span",{parentName:"span",className:"mpunct mtight"},","),(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"1")))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.063em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"\u2032"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3842em"}},(0,m.kt)("span",{parentName:"span"})))))))),(0,m.kt)("span",{parentName:"span",style:{top:"-2.41em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.0037em"}},"\u03b1"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.7519em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.4519em",marginLeft:"-0.0037em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"1"),(0,m.kt)("span",{parentName:"span",className:"mpunct mtight"},","),(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"2")))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.063em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"\u2032"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3842em"}},(0,m.kt)("span",{parentName:"span"}))))))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.9742em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"arraycolsep",style:{width:"0.5em"}}),(0,m.kt)("span",{parentName:"span",className:"arraycolsep",style:{width:"0.5em"}}),(0,m.kt)("span",{parentName:"span",className:"col-align-c"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.4742em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-3.6342em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.0037em"}},"\u03b1"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.7519em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.4519em",marginLeft:"-0.0037em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"2"),(0,m.kt)("span",{parentName:"span",className:"mpunct mtight"},","),(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"1")))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.063em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"\u2032"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3842em"}},(0,m.kt)("span",{parentName:"span"})))))))),(0,m.kt)("span",{parentName:"span",style:{top:"-2.41em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.0037em"}},"\u03b1"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.7519em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.4519em",marginLeft:"-0.0037em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"2"),(0,m.kt)("span",{parentName:"span",className:"mpunct mtight"},","),(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"2")))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.063em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"\u2032"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3842em"}},(0,m.kt)("span",{parentName:"span"}))))))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.9742em"}},(0,m.kt)("span",{parentName:"span"}))))))),(0,m.kt)("span",{parentName:"span",className:"mclose delimcenter",style:{top:"0em"}},(0,m.kt)("span",{parentName:"span",className:"delimsizing size3"},"]"))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"minner"},(0,m.kt)("span",{parentName:"span",className:"mopen delimcenter",style:{top:"0em"}},(0,m.kt)("span",{parentName:"span",className:"delimsizing size3"},"[")),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mtable"},(0,m.kt)("span",{parentName:"span",className:"col-align-c"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.45em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-3.61em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"v"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0359em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"1")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))))),(0,m.kt)("span",{parentName:"span",style:{top:"-2.41em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"v"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0359em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"2")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"}))))))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.95em"}},(0,m.kt)("span",{parentName:"span"}))))))),(0,m.kt)("span",{parentName:"span",className:"mclose delimcenter",style:{top:"0em"}},(0,m.kt)("span",{parentName:"span",className:"delimsizing size3"},"]")))),(0,m.kt)("span",{parentName:"span",className:"tag"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"2.4484em",verticalAlign:"-0.9742em"}}),(0,m.kt)("span",{parentName:"span",className:"mord text"},(0,m.kt)("span",{parentName:"span",className:"mord"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"6")),(0,m.kt)("span",{parentName:"span",className:"mord"},")"))))))),(0,m.kt)("p",null,"\u7136\u800c\uff0c\u4e3a\u4e86\u4f7f\u8bad\u7ec3\u8fc7\u7a0b\u4e2d\u7b26\u5408\u63a8\u7406\u65f6\u81ea\u56de\u5f52\u7684\u7279\u6027\uff0c\u7406\u60f3\u7684\u8f93\u51fa\u5e94\u8be5\u662f"),(0,m.kt)("div",{className:"math math-display"},(0,m.kt)("span",{parentName:"div",className:"katex-display"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mtable",{parentName:"semantics",width:"100%"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mrow",{parentName:"mtd"},(0,m.kt)("mrow",{parentName:"mrow"},(0,m.kt)("mo",{parentName:"mrow",fence:"true"},"["),(0,m.kt)("mtable",{parentName:"mrow",rowspacing:"0.16em",columnalign:"center",columnspacing:"1em"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("msub",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"msub"},"o"),(0,m.kt)("mn",{parentName:"msub"},"1"))))),(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("msub",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"msub"},"o"),(0,m.kt)("mn",{parentName:"msub"},"2")))))),(0,m.kt)("mo",{parentName:"mrow",fence:"true"},"]")),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("mrow",{parentName:"mrow"},(0,m.kt)("mo",{parentName:"mrow",fence:"true"},"["),(0,m.kt)("mtable",{parentName:"mrow",rowspacing:"0.16em",columnalign:"center center",columnspacing:"1em"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("msubsup",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"msubsup"},"\u03b1"),(0,m.kt)("mrow",{parentName:"msubsup"},(0,m.kt)("mn",{parentName:"mrow"},"1"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mn",{parentName:"mrow"},"1")),(0,m.kt)("mo",{parentName:"msubsup",mathvariant:"normal",lspace:"0em",rspace:"0em"},"\u2032")))),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("mn",{parentName:"mstyle"},"0")))),(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("msubsup",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"msubsup"},"\u03b1"),(0,m.kt)("mrow",{parentName:"msubsup"},(0,m.kt)("mn",{parentName:"mrow"},"1"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mn",{parentName:"mrow"},"2")),(0,m.kt)("mo",{parentName:"msubsup",mathvariant:"normal",lspace:"0em",rspace:"0em"},"\u2032")))),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("msubsup",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"msubsup"},"\u03b1"),(0,m.kt)("mrow",{parentName:"msubsup"},(0,m.kt)("mn",{parentName:"mrow"},"2"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mn",{parentName:"mrow"},"2")),(0,m.kt)("mo",{parentName:"msubsup",mathvariant:"normal",lspace:"0em",rspace:"0em"},"\u2032")))))),(0,m.kt)("mo",{parentName:"mrow",fence:"true"},"]")),(0,m.kt)("mrow",{parentName:"mrow"},(0,m.kt)("mo",{parentName:"mrow",fence:"true"},"["),(0,m.kt)("mtable",{parentName:"mrow",rowspacing:"0.16em",columnalign:"center",columnspacing:"1em"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("msub",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"msub"},"v"),(0,m.kt)("mn",{parentName:"msub"},"1"))))),(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("msub",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"msub"},"v"),(0,m.kt)("mn",{parentName:"msub"},"2")))))),(0,m.kt)("mo",{parentName:"mrow",fence:"true"},"]")))),(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mtext",{parentName:"mtd"},"(7)")))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"\\begin{bmatrix}o_1\\\\o_2\\end{bmatrix}=\\begin{bmatrix}\\alpha_{1,1}^{\\prime}&0\\\\\\alpha_{1,2}^{\\prime}&\\alpha_{2,2}^{\\prime}\\end{bmatrix}\\begin{bmatrix}v_1\\\\v_2\\end{bmatrix} \\tag{7}")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"2.4em",verticalAlign:"-0.95em"}}),(0,m.kt)("span",{parentName:"span",className:"minner"},(0,m.kt)("span",{parentName:"span",className:"mopen delimcenter",style:{top:"0em"}},(0,m.kt)("span",{parentName:"span",className:"delimsizing size3"},"[")),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mtable"},(0,m.kt)("span",{parentName:"span",className:"col-align-c"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.45em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-3.61em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"o"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"1")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))))),(0,m.kt)("span",{parentName:"span",style:{top:"-2.41em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"o"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"2")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"}))))))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.95em"}},(0,m.kt)("span",{parentName:"span"}))))))),(0,m.kt)("span",{parentName:"span",className:"mclose delimcenter",style:{top:"0em"}},(0,m.kt)("span",{parentName:"span",className:"delimsizing size3"},"]"))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"="),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"2.4484em",verticalAlign:"-0.9742em"}}),(0,m.kt)("span",{parentName:"span",className:"minner"},(0,m.kt)("span",{parentName:"span",className:"mopen delimcenter",style:{top:"0em"}},(0,m.kt)("span",{parentName:"span",className:"delimsizing size3"},"[")),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mtable"},(0,m.kt)("span",{parentName:"span",className:"col-align-c"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.4742em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-3.6342em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.0037em"}},"\u03b1"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.7519em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.4519em",marginLeft:"-0.0037em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"1"),(0,m.kt)("span",{parentName:"span",className:"mpunct mtight"},","),(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"1")))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.063em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"\u2032"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3842em"}},(0,m.kt)("span",{parentName:"span"})))))))),(0,m.kt)("span",{parentName:"span",style:{top:"-2.41em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.0037em"}},"\u03b1"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.7519em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.4519em",marginLeft:"-0.0037em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"1"),(0,m.kt)("span",{parentName:"span",className:"mpunct mtight"},","),(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"2")))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.063em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"\u2032"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3842em"}},(0,m.kt)("span",{parentName:"span"}))))))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.9742em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"arraycolsep",style:{width:"0.5em"}}),(0,m.kt)("span",{parentName:"span",className:"arraycolsep",style:{width:"0.5em"}}),(0,m.kt)("span",{parentName:"span",className:"col-align-c"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.4742em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-3.6342em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"0"))),(0,m.kt)("span",{parentName:"span",style:{top:"-2.41em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.0037em"}},"\u03b1"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.7519em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.4519em",marginLeft:"-0.0037em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"2"),(0,m.kt)("span",{parentName:"span",className:"mpunct mtight"},","),(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"2")))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.063em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"\u2032"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3842em"}},(0,m.kt)("span",{parentName:"span"}))))))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.9742em"}},(0,m.kt)("span",{parentName:"span"}))))))),(0,m.kt)("span",{parentName:"span",className:"mclose delimcenter",style:{top:"0em"}},(0,m.kt)("span",{parentName:"span",className:"delimsizing size3"},"]"))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"minner"},(0,m.kt)("span",{parentName:"span",className:"mopen delimcenter",style:{top:"0em"}},(0,m.kt)("span",{parentName:"span",className:"delimsizing size3"},"[")),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mtable"},(0,m.kt)("span",{parentName:"span",className:"col-align-c"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.45em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-3.61em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"v"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0359em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"1")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))))),(0,m.kt)("span",{parentName:"span",style:{top:"-2.41em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"v"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0359em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"2")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"}))))))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.95em"}},(0,m.kt)("span",{parentName:"span"}))))))),(0,m.kt)("span",{parentName:"span",className:"mclose delimcenter",style:{top:"0em"}},(0,m.kt)("span",{parentName:"span",className:"delimsizing size3"},"]")))),(0,m.kt)("span",{parentName:"span",className:"tag"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"2.4484em",verticalAlign:"-0.9742em"}}),(0,m.kt)("span",{parentName:"span",className:"mord text"},(0,m.kt)("span",{parentName:"span",className:"mord"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"7")),(0,m.kt)("span",{parentName:"span",className:"mord"},")"))))))),(0,m.kt)("p",null,"\u7ee7\u7eed\u6269\u5c55\uff0c\u5f53\u6709",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"n")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"n")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.4306em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"n"))))),"\u4e2a\u8f93\u5165\u8bcd\u6c47\u65f6\uff0c\u5e94\u8be5\u6709"),(0,m.kt)("div",{className:"math math-display"},(0,m.kt)("span",{parentName:"div",className:"katex-display"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mtable",{parentName:"semantics",width:"100%"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mrow",{parentName:"mtd"},(0,m.kt)("mrow",{parentName:"mrow"},(0,m.kt)("mo",{parentName:"mrow",fence:"true"},"["),(0,m.kt)("mtable",{parentName:"mrow",rowspacing:"0.16em",columnalign:"center",columnspacing:"1em"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("msub",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"msub"},"o"),(0,m.kt)("mn",{parentName:"msub"},"1"))))),(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("msub",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"msub"},"o"),(0,m.kt)("mn",{parentName:"msub"},"2"))))),(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("mi",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"mi",mathvariant:"normal"},"\u22ee"),(0,m.kt)("mpadded",{parentName:"mi",height:"0em",voffset:"0em"},(0,m.kt)("mspace",{parentName:"mpadded",mathbackground:"black",width:"0em",height:"1.5em"})))))),(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("msub",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"msub"},"o"),(0,m.kt)("mi",{parentName:"msub"},"n")))))),(0,m.kt)("mo",{parentName:"mrow",fence:"true"},"]")),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("mrow",{parentName:"mrow"},(0,m.kt)("mo",{parentName:"mrow",fence:"true"},"["),(0,m.kt)("mtable",{parentName:"mrow",rowspacing:"0.16em",columnalign:"center center center center",columnspacing:"1em"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("msubsup",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"msubsup"},"\u03b1"),(0,m.kt)("mrow",{parentName:"msubsup"},(0,m.kt)("mn",{parentName:"mrow"},"1"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mn",{parentName:"mrow"},"1")),(0,m.kt)("mo",{parentName:"msubsup",mathvariant:"normal",lspace:"0em",rspace:"0em"},"\u2032")))),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("mn",{parentName:"mstyle"},"0"))),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("mo",{parentName:"mstyle",lspace:"0em",rspace:"0em"},"\u22ef"))),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("mn",{parentName:"mstyle"},"0")))),(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("msubsup",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"msubsup"},"\u03b1"),(0,m.kt)("mrow",{parentName:"msubsup"},(0,m.kt)("mn",{parentName:"mrow"},"1"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mn",{parentName:"mrow"},"2")),(0,m.kt)("mo",{parentName:"msubsup",mathvariant:"normal",lspace:"0em",rspace:"0em"},"\u2032")))),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("msubsup",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"msubsup"},"\u03b1"),(0,m.kt)("mn",{parentName:"msubsup"},"2"),(0,m.kt)("mo",{parentName:"msubsup",mathvariant:"normal",lspace:"0em",rspace:"0em"},"\u2032")))),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("mo",{parentName:"mstyle",lspace:"0em",rspace:"0em"},"\u22ef"))),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("mn",{parentName:"mstyle"},"0")))),(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("mi",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"mi",mathvariant:"normal"},"\u22ee"),(0,m.kt)("mpadded",{parentName:"mi",height:"0em",voffset:"0em"},(0,m.kt)("mspace",{parentName:"mpadded",mathbackground:"black",width:"0em",height:"1.5em"}))))),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("mi",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"mi",mathvariant:"normal"},"\u22ee"),(0,m.kt)("mpadded",{parentName:"mi",height:"0em",voffset:"0em"},(0,m.kt)("mspace",{parentName:"mpadded",mathbackground:"black",width:"0em",height:"1.5em"}))))),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("mrow",{parentName:"mstyle"}))),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("mi",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"mi",mathvariant:"normal"},"\u22ee"),(0,m.kt)("mpadded",{parentName:"mi",height:"0em",voffset:"0em"},(0,m.kt)("mspace",{parentName:"mpadded",mathbackground:"black",width:"0em",height:"1.5em"})))))),(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("msubsup",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"msubsup"},"\u03b1"),(0,m.kt)("mrow",{parentName:"msubsup"},(0,m.kt)("mn",{parentName:"mrow"},"1"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"n")),(0,m.kt)("mo",{parentName:"msubsup",mathvariant:"normal",lspace:"0em",rspace:"0em"},"\u2032")))),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("msubsup",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"msubsup"},"\u03b1"),(0,m.kt)("mrow",{parentName:"msubsup"},(0,m.kt)("mn",{parentName:"mrow"},"2"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"n")),(0,m.kt)("mo",{parentName:"msubsup",mathvariant:"normal",lspace:"0em",rspace:"0em"},"\u2032")))),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("mo",{parentName:"mstyle",lspace:"0em",rspace:"0em"},"\u22ef"))),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("msubsup",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"msubsup"},"\u03b1"),(0,m.kt)("mrow",{parentName:"msubsup"},(0,m.kt)("mi",{parentName:"mrow"},"n"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"n")),(0,m.kt)("mo",{parentName:"msubsup",mathvariant:"normal",lspace:"0em",rspace:"0em"},"\u2032")))))),(0,m.kt)("mo",{parentName:"mrow",fence:"true"},"]")),(0,m.kt)("mrow",{parentName:"mrow"},(0,m.kt)("mo",{parentName:"mrow",fence:"true"},"["),(0,m.kt)("mtable",{parentName:"mrow",rowspacing:"0.16em",columnalign:"center",columnspacing:"1em"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("msub",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"msub"},"v"),(0,m.kt)("mn",{parentName:"msub"},"1"))))),(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("msub",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"msub"},"v"),(0,m.kt)("mn",{parentName:"msub"},"2"))))),(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("mi",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"mi",mathvariant:"normal"},"\u22ee"),(0,m.kt)("mpadded",{parentName:"mi",height:"0em",voffset:"0em"},(0,m.kt)("mspace",{parentName:"mpadded",mathbackground:"black",width:"0em",height:"1.5em"})))))),(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("msub",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"msub"},"v"),(0,m.kt)("mi",{parentName:"msub"},"n")))))),(0,m.kt)("mo",{parentName:"mrow",fence:"true"},"]")))),(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mtext",{parentName:"mtd"},"(8)")))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"\\begin{bmatrix}o_1\\\\o_2\\\\\\vdots\\\\o_n\\end{bmatrix}=\\begin{bmatrix}\\alpha'_{1,1}&0&\\cdots&0\\\\\\alpha'_{1,2}&\\alpha'_2&\\cdots&0\\\\\\vdots&\\vdots&&\\vdots\\\\\\alpha'_{1,n}&\\alpha'_{2,n}&\\cdots&\\alpha'_{n,n}\\end{bmatrix}\\begin{bmatrix}v_1\\\\v_2\\\\\\vdots\\\\v_n\\end{bmatrix}\\tag{8}")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"5.46em",verticalAlign:"-2.48em"}}),(0,m.kt)("span",{parentName:"span",className:"minner"},(0,m.kt)("span",{parentName:"span",className:"mopen"},(0,m.kt)("span",{parentName:"span",className:"delimsizing mult"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"2.95em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.011em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.816em"}}),(0,m.kt)("span",{parentName:"span",className:"delimsizinginner delim-size4"},(0,m.kt)("span",{parentName:"span"},"\u23a3"))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.158em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.816em"}}),(0,m.kt)("span",{parentName:"span",style:{height:"1.816em",width:"0.6667em"}},(0,m.kt)("svg",{parentName:"span",xmlns:"http://www.w3.org/2000/svg",width:"0.6667em",height:"1.816em",style:{width:"0.6667em"},viewBox:"0 0 666.67 1816",preserveAspectRatio:"xMinYMin"},(0,m.kt)("path",{parentName:"svg",d:"M319 0 H403 V1816 H319z M319 0 H403 V1816 H319z"})))),(0,m.kt)("span",{parentName:"span",style:{top:"-5.6111em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.816em"}}),(0,m.kt)("span",{parentName:"span",className:"delimsizinginner delim-size4"},(0,m.kt)("span",{parentName:"span"},"\u23a1")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"2.45em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mtable"},(0,m.kt)("span",{parentName:"span",className:"col-align-c"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"2.98em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-5.8275em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.6875em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"o"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"1")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))))),(0,m.kt)("span",{parentName:"span",style:{top:"-4.6275em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.6875em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"o"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"2")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))))),(0,m.kt)("span",{parentName:"span",style:{top:"-2.7675em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.6875em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"\u22ee"),(0,m.kt)("span",{parentName:"span",className:"mord rule",style:{borderRightWidth:"0em",borderTopWidth:"1.5em",bottom:"0em"}})))),(0,m.kt)("span",{parentName:"span",style:{top:"-1.5675em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.6875em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"o"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.1514em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"n")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"}))))))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"2.48em"}},(0,m.kt)("span",{parentName:"span"}))))))),(0,m.kt)("span",{parentName:"span",className:"mclose"},(0,m.kt)("span",{parentName:"span",className:"delimsizing mult"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"2.95em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.011em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.816em"}}),(0,m.kt)("span",{parentName:"span",className:"delimsizinginner delim-size4"},(0,m.kt)("span",{parentName:"span"},"\u23a6"))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.158em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.816em"}}),(0,m.kt)("span",{parentName:"span",style:{height:"1.816em",width:"0.6667em"}},(0,m.kt)("svg",{parentName:"span",xmlns:"http://www.w3.org/2000/svg",width:"0.6667em",height:"1.816em",style:{width:"0.6667em"},viewBox:"0 0 666.67 1816",preserveAspectRatio:"xMinYMin"},(0,m.kt)("path",{parentName:"svg",d:"M263 0 H347 V1816 H263z M263 0 H347 V1816 H263z"})))),(0,m.kt)("span",{parentName:"span",style:{top:"-5.6111em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.816em"}}),(0,m.kt)("span",{parentName:"span",className:"delimsizinginner delim-size4"},(0,m.kt)("span",{parentName:"span"},"\u23a4")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"2.45em"}},(0,m.kt)("span",{parentName:"span"}))))))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"="),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"5.5326em",verticalAlign:"-2.5163em"}}),(0,m.kt)("span",{parentName:"span",className:"minner"},(0,m.kt)("span",{parentName:"span",className:"mopen"},(0,m.kt)("span",{parentName:"span",className:"delimsizing mult"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"2.95em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.011em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.816em"}}),(0,m.kt)("span",{parentName:"span",className:"delimsizinginner delim-size4"},(0,m.kt)("span",{parentName:"span"},"\u23a3"))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.158em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.816em"}}),(0,m.kt)("span",{parentName:"span",style:{height:"1.816em",width:"0.6667em"}},(0,m.kt)("svg",{parentName:"span",xmlns:"http://www.w3.org/2000/svg",width:"0.6667em",height:"1.816em",style:{width:"0.6667em"},viewBox:"0 0 666.67 1816",preserveAspectRatio:"xMinYMin"},(0,m.kt)("path",{parentName:"svg",d:"M319 0 H403 V1816 H319z M319 0 H403 V1816 H319z"})))),(0,m.kt)("span",{parentName:"span",style:{top:"-5.6111em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.816em"}}),(0,m.kt)("span",{parentName:"span",className:"delimsizinginner delim-size4"},(0,m.kt)("span",{parentName:"span"},"\u23a1")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"2.45em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mtable"},(0,m.kt)("span",{parentName:"span",className:"col-align-c"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"3.0163em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-5.8638em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.6875em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.0037em"}},"\u03b1"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.7519em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.4519em",marginLeft:"-0.0037em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"1"),(0,m.kt)("span",{parentName:"span",className:"mpunct mtight"},","),(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"1")))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.063em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"\u2032"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3842em"}},(0,m.kt)("span",{parentName:"span"})))))))),(0,m.kt)("span",{parentName:"span",style:{top:"-4.6396em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.6875em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.0037em"}},"\u03b1"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.7519em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.4519em",marginLeft:"-0.0037em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"1"),(0,m.kt)("span",{parentName:"span",className:"mpunct mtight"},","),(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"2")))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.063em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"\u2032"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3842em"}},(0,m.kt)("span",{parentName:"span"})))))))),(0,m.kt)("span",{parentName:"span",style:{top:"-2.7554em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.6875em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"\u22ee"),(0,m.kt)("span",{parentName:"span",className:"mord rule",style:{borderRightWidth:"0em",borderTopWidth:"1.5em",bottom:"0em"}})))),(0,m.kt)("span",{parentName:"span",style:{top:"-1.5554em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.6875em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.0037em"}},"\u03b1"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.7519em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.4519em",marginLeft:"-0.0037em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"1"),(0,m.kt)("span",{parentName:"span",className:"mpunct mtight"},","),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"n")))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.063em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"\u2032"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3842em"}},(0,m.kt)("span",{parentName:"span"}))))))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"2.5163em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"arraycolsep",style:{width:"0.5em"}}),(0,m.kt)("span",{parentName:"span",className:"arraycolsep",style:{width:"0.5em"}}),(0,m.kt)("span",{parentName:"span",className:"col-align-c"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"3.0163em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-5.8638em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.6875em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"0"))),(0,m.kt)("span",{parentName:"span",style:{top:"-4.6396em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.6875em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.0037em"}},"\u03b1"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.7519em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.4519em",marginLeft:"-0.0037em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"2"))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.063em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"\u2032"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.2481em"}},(0,m.kt)("span",{parentName:"span"})))))))),(0,m.kt)("span",{parentName:"span",style:{top:"-2.7554em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.6875em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"\u22ee"),(0,m.kt)("span",{parentName:"span",className:"mord rule",style:{borderRightWidth:"0em",borderTopWidth:"1.5em",bottom:"0em"}})))),(0,m.kt)("span",{parentName:"span",style:{top:"-1.5554em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.6875em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.0037em"}},"\u03b1"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.7519em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.4519em",marginLeft:"-0.0037em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"2"),(0,m.kt)("span",{parentName:"span",className:"mpunct mtight"},","),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"n")))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.063em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"\u2032"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3842em"}},(0,m.kt)("span",{parentName:"span"}))))))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"2.5163em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"arraycolsep",style:{width:"0.5em"}}),(0,m.kt)("span",{parentName:"span",className:"arraycolsep",style:{width:"0.5em"}}),(0,m.kt)("span",{parentName:"span",className:"col-align-c"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"3.0163em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-5.6763em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.5em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"minner"},"\u22ef"))),(0,m.kt)("span",{parentName:"span",style:{top:"-4.4521em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.5em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"minner"},"\u22ef"))),(0,m.kt)("span",{parentName:"span",style:{top:"-2.5679em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.5em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"})),(0,m.kt)("span",{parentName:"span",style:{top:"-1.3679em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.5em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"minner"},"\u22ef")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"2.5163em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"arraycolsep",style:{width:"0.5em"}}),(0,m.kt)("span",{parentName:"span",className:"arraycolsep",style:{width:"0.5em"}}),(0,m.kt)("span",{parentName:"span",className:"col-align-c"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"3.0163em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-5.8638em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.6875em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"0"))),(0,m.kt)("span",{parentName:"span",style:{top:"-4.6396em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.6875em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"0"))),(0,m.kt)("span",{parentName:"span",style:{top:"-2.7554em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.6875em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"\u22ee"),(0,m.kt)("span",{parentName:"span",className:"mord rule",style:{borderRightWidth:"0em",borderTopWidth:"1.5em",bottom:"0em"}})))),(0,m.kt)("span",{parentName:"span",style:{top:"-1.5554em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.6875em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.0037em"}},"\u03b1"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.7519em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.453em",marginLeft:"-0.0037em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"n"),(0,m.kt)("span",{parentName:"span",className:"mpunct mtight"},","),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"n")))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.063em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"\u2032"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3831em"}},(0,m.kt)("span",{parentName:"span"}))))))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"2.5163em"}},(0,m.kt)("span",{parentName:"span"}))))))),(0,m.kt)("span",{parentName:"span",className:"mclose"},(0,m.kt)("span",{parentName:"span",className:"delimsizing mult"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"2.95em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.011em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.816em"}}),(0,m.kt)("span",{parentName:"span",className:"delimsizinginner delim-size4"},(0,m.kt)("span",{parentName:"span"},"\u23a6"))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.158em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.816em"}}),(0,m.kt)("span",{parentName:"span",style:{height:"1.816em",width:"0.6667em"}},(0,m.kt)("svg",{parentName:"span",xmlns:"http://www.w3.org/2000/svg",width:"0.6667em",height:"1.816em",style:{width:"0.6667em"},viewBox:"0 0 666.67 1816",preserveAspectRatio:"xMinYMin"},(0,m.kt)("path",{parentName:"svg",d:"M263 0 H347 V1816 H263z M263 0 H347 V1816 H263z"})))),(0,m.kt)("span",{parentName:"span",style:{top:"-5.6111em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.816em"}}),(0,m.kt)("span",{parentName:"span",className:"delimsizinginner delim-size4"},(0,m.kt)("span",{parentName:"span"},"\u23a4")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"2.45em"}},(0,m.kt)("span",{parentName:"span"}))))))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"minner"},(0,m.kt)("span",{parentName:"span",className:"mopen"},(0,m.kt)("span",{parentName:"span",className:"delimsizing mult"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"2.95em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.011em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.816em"}}),(0,m.kt)("span",{parentName:"span",className:"delimsizinginner delim-size4"},(0,m.kt)("span",{parentName:"span"},"\u23a3"))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.158em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.816em"}}),(0,m.kt)("span",{parentName:"span",style:{height:"1.816em",width:"0.6667em"}},(0,m.kt)("svg",{parentName:"span",xmlns:"http://www.w3.org/2000/svg",width:"0.6667em",height:"1.816em",style:{width:"0.6667em"},viewBox:"0 0 666.67 1816",preserveAspectRatio:"xMinYMin"},(0,m.kt)("path",{parentName:"svg",d:"M319 0 H403 V1816 H319z M319 0 H403 V1816 H319z"})))),(0,m.kt)("span",{parentName:"span",style:{top:"-5.6111em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.816em"}}),(0,m.kt)("span",{parentName:"span",className:"delimsizinginner delim-size4"},(0,m.kt)("span",{parentName:"span"},"\u23a1")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"2.45em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mtable"},(0,m.kt)("span",{parentName:"span",className:"col-align-c"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"2.98em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-5.8275em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.6875em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"v"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0359em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"1")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))))),(0,m.kt)("span",{parentName:"span",style:{top:"-4.6275em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.6875em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"v"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0359em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"2")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))))),(0,m.kt)("span",{parentName:"span",style:{top:"-2.7675em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.6875em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"\u22ee"),(0,m.kt)("span",{parentName:"span",className:"mord rule",style:{borderRightWidth:"0em",borderTopWidth:"1.5em",bottom:"0em"}})))),(0,m.kt)("span",{parentName:"span",style:{top:"-1.5675em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.6875em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"v"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.1514em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0359em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"n")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"}))))))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"2.48em"}},(0,m.kt)("span",{parentName:"span"}))))))),(0,m.kt)("span",{parentName:"span",className:"mclose"},(0,m.kt)("span",{parentName:"span",className:"delimsizing mult"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"2.95em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.011em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.816em"}}),(0,m.kt)("span",{parentName:"span",className:"delimsizinginner delim-size4"},(0,m.kt)("span",{parentName:"span"},"\u23a6"))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.158em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.816em"}}),(0,m.kt)("span",{parentName:"span",style:{height:"1.816em",width:"0.6667em"}},(0,m.kt)("svg",{parentName:"span",xmlns:"http://www.w3.org/2000/svg",width:"0.6667em",height:"1.816em",style:{width:"0.6667em"},viewBox:"0 0 666.67 1816",preserveAspectRatio:"xMinYMin"},(0,m.kt)("path",{parentName:"svg",d:"M263 0 H347 V1816 H263z M263 0 H347 V1816 H263z"})))),(0,m.kt)("span",{parentName:"span",style:{top:"-5.6111em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.816em"}}),(0,m.kt)("span",{parentName:"span",className:"delimsizinginner delim-size4"},(0,m.kt)("span",{parentName:"span"},"\u23a4")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"2.45em"}},(0,m.kt)("span",{parentName:"span"})))))))),(0,m.kt)("span",{parentName:"span",className:"tag"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"5.5326em",verticalAlign:"-2.5163em"}}),(0,m.kt)("span",{parentName:"span",className:"mord text"},(0,m.kt)("span",{parentName:"span",className:"mord"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"8")),(0,m.kt)("span",{parentName:"span",className:"mord"},")"))))))),(0,m.kt)("p",null,"\u56e0\u6b64\uff0c\u6211\u4eec\u9700\u8981\u5c06\u5f53\u524d\u65f6\u95f4\u6b65\u8ba1\u7b97\u7684\u8bcd\u6c47\u7684\u65f6\u95f4\u987a\u5e8f\u53f3\u4fa7\u7684\u8f93\u5165\u8bcd\u6c47\u5168\u90e8\u63a9\u7801\uff0c\u7f6e\u4e3a0\u3002"),(0,m.kt)("p",null,"\u5728\u6e90\u7801\u4e2d\uff0c\u6709\u5982\u4e0b\u7247\u6bb5\u5b9e\u73b0\u63a9\u7801\uff1a"),(0,m.kt)("pre",null,(0,m.kt)("code",{parentName:"pre",className:"language-python"},"if mask is not None:\n scores = scores.masked_fill(mask == 0, -1e9)\n\np_attn = scores.softmax(dim=-1)\n")),(0,m.kt)("p",null,"\u5728\u6e90\u7801\u4e2d\uff0c\u5c06mask\u7f6e\u4e3a\u8d1f\u65e0\u7a77\u662f\u56e0\u4e3a\u8fd9\u662f\u5728\u7ecf\u8fc7Softmax\u4e4b\u524d\u8fdb\u884c\u7684\u63a9\u7801\uff0c\u5728\u7ecf\u8fc7Softmax\u4e4b\u540e\u8d1f\u65e0\u7a77\u5c0f\u5c31\u53d8\u6210\u4e860\u3002"))}c.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/7ab2d319.c5f13fa6.js b/assets/js/7ab2d319.c5f13fa6.js new file mode 100644 index 000000000..a5a7e052e --- /dev/null +++ b/assets/js/7ab2d319.c5f13fa6.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunknpy_notebook=self.webpackChunknpy_notebook||[]).push([[5736],{3905:(e,n,t)=>{t.d(n,{Zo:()=>p,kt:()=>f});var r=t(7294);function i(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function a(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function o(e){for(var n=1;n=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}var l=r.createContext({}),s=function(e){var n=r.useContext(l),t=n;return e&&(t="function"==typeof e?e(n):o(o({},n),e)),t},p=function(e){var n=s(e.components);return r.createElement(l.Provider,{value:n},e.children)},u="mdxType",d={inlineCode:"code",wrapper:function(e){var n=e.children;return r.createElement(r.Fragment,{},n)}},m=r.forwardRef((function(e,n){var t=e.components,i=e.mdxType,a=e.originalType,l=e.parentName,p=c(e,["components","mdxType","originalType","parentName"]),u=s(t),m=i,f=u["".concat(l,".").concat(m)]||u[m]||d[m]||a;return t?r.createElement(f,o(o({ref:n},p),{},{components:t})):r.createElement(f,o({ref:n},p))}));function f(e,n){var t=arguments,i=n&&n.mdxType;if("string"==typeof e||i){var a=t.length,o=new Array(a);o[0]=m;var c={};for(var l in n)hasOwnProperty.call(n,l)&&(c[l]=n[l]);c.originalType=e,c[u]="string"==typeof e?e:i,o[1]=c;for(var s=2;s{t.r(n),t.d(n,{assets:()=>l,contentTitle:()=>o,default:()=>d,frontMatter:()=>a,metadata:()=>c,toc:()=>s});var r=t(7462),i=(t(7294),t(3905));const a={},o="LeNet",c={unversionedId:"Deep-Learning/\u57fa\u7840\u77e5\u8bc6/LeNet",id:"Deep-Learning/\u57fa\u7840\u77e5\u8bc6/LeNet",title:"LeNet",description:"\u80cc\u666f",source:"@site/docs/Deep-Learning/3-\u57fa\u7840\u77e5\u8bc6/LeNet.md",sourceDirName:"Deep-Learning/3-\u57fa\u7840\u77e5\u8bc6",slug:"/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/LeNet",permalink:"/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/LeNet",draft:!1,tags:[],version:"current",frontMatter:{},sidebar:"deep_learning",previous:{title:"K-fold cross-validation",permalink:"/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/K-foldCross-validation"},next:{title:"\u5173\u4e8eLogistic Regression",permalink:"/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/LogisticRegression"}},l={},s=[{value:"\u80cc\u666f",id:"\u80cc\u666f",level:2},{value:"\u4ee3\u7801\u5b9e\u73b0",id:"\u4ee3\u7801\u5b9e\u73b0",level:2},{value:"\u95ee\u9898",id:"\u95ee\u9898",level:2}],p={toc:s},u="wrapper";function d(e){let{components:n,...t}=e;return(0,i.kt)(u,(0,r.Z)({},p,t,{components:n,mdxType:"MDXLayout"}),(0,i.kt)("h1",{id:"lenet"},"LeNet"),(0,i.kt)("h2",{id:"\u80cc\u666f"},"\u80cc\u666f"),(0,i.kt)("p",null,"LeNet\u662f\u7531Yann LeCun\u7b49\u4eba\u4e8e1998\u5e74\u63d0\u51fa\u7684\u5377\u79ef\u795e\u7ecf\u7f51\u7edc\u7ed3\u6784\uff0c\u8be5\u7ed3\u6784\u7531\u5377\u79ef\u5c42\u3001\u6c60\u5316\u5c42\u548c\u5168\u8fde\u63a5\u5c42\u7ec4\u6210\uff0c\u53ef\u4ee5\u9ad8\u6548\u5730\u5904\u7406\u624b\u5199\u6570\u5b57\u56fe\u50cf\uff0c\u5e76\u5728MNIST\u6570\u636e\u96c6\u4e0a\u53d6\u5f97\u4e86\u5f88\u597d\u7684\u6027\u80fd\u3002"),(0,i.kt)("p",null,"LeNet-5\u7684\u6210\u529f\u6807\u5fd7\u7740\u5377\u79ef\u795e\u7ecf\u7f51\u7edc\u5728\u8ba1\u7b97\u673a\u89c6\u89c9\u9886\u57df\u4e2d\u7684\u5d1b\u8d77\uff0c\u5e76\u4fc3\u8fdb\u4e86\u6df1\u5ea6\u5b66\u4e60\u7684\u5feb\u901f\u53d1\u5c55\u3002"),(0,i.kt)("hr",null),(0,i.kt)("h2",{id:"\u4ee3\u7801\u5b9e\u73b0"},"\u4ee3\u7801\u5b9e\u73b0"),(0,i.kt)("pre",null,(0,i.kt)("code",{parentName:"pre",className:"language-python"},"import torch\nimport numpy as np\nfrom torch import nn as nn\nfrom torch.nn import functional as F\nfrom d2l import torch as d2l\nfrom matplotlib import pyplot as plt\nimport os\n\nos.environ['http_proxy'] = 'http://127.0.0.1:7890'\nos.environ['https_proxy'] = 'https://127.0.0.1:7890'\n\n\nclass LeNetReshape(nn.Module):\n def __init__(self):\n super(LeNetReshape, self).__init__()\n\n def forward(self, x):\n return x.reshape(-1, 1, 28, 28)\n\n\nclass LeNet5(nn.Module):\n def __init__(self):\n super(LeNet5, self).__init__()\n self.net = torch.nn.Sequential(\n LeNetReshape(),\n # \u6fc0\u6d3b\u51fd\u6570\u5e94\u4e3aSigmoid\n nn.Conv2d(1, 6, kernel_size=5, padding=2), nn.LeakyReLU(), nn.AvgPool2d(kernel_size=2, stride=2),\n nn.Conv2d(6, 16, kernel_size=5), nn.LeakyReLU(), nn.AvgPool2d(kernel_size=2, stride=2),\n nn.Flatten(),\n nn.Linear(16 * 5 * 5, 120), nn.LeakyReLU(),\n nn.Linear(120, 84), nn.Sigmoid(),\n nn.Linear(84, 10))\n\n def forward(self, x):\n return self.net(x)\n\n\ndef evaluate_accuracy_gpu(net, data_iter, device=None):\n if isinstance(net, torch.nn.Module):\n net.eval()\n if not device:\n device = next(iter(net.parameters())).device\n metric = d2l.Accumulator(2)\n for X, y in data_iter:\n if isinstance(X, list):\n X = [x.to(device) for x in X]\n else:\n X = X.to(device)\n y = y.to(device)\n metric.add(d2l.accuracy(net(X), y), y.numel()) # \u6b64\u5904accuracy\u662f\u7edf\u8ba1\n return metric[0] / metric[1]\n\n\ndef accuracy(y_hat, y):\n return torch.sum(y_hat.argmax(dim=1) == y)\n\n\ndef train(net, train_iter, test_iter, num_epochs, lr, device):\n def init_weights(m):\n if type(m) == nn.Linear or type(m) == nn.Conv2d:\n nn.init.xavier_uniform_(m.weight)\n\n net.apply(init_weights)\n net.to(device)\n optimizer = torch.optim.SGD(net.parameters(), lr=lr)\n loss = torch.nn.CrossEntropyLoss()\n loss.to(device)\n animator = d2l.Animator(xlabel='epoch', xlim=[1, num_epochs],\n legend=['train loss', 'train acc', 'test acc'])\n timer, num_batches = d2l.Timer(), len(train_iter)\n metric = d2l.Accumulator(3)\n net.train()\n for epoch in range(num_epochs):\n for batch, (X, y) in enumerate(train_iter):\n timer.start()\n optimizer.zero_grad()\n X, y = X.to(device), y.to(device)\n y_hat = net(X)\n l = loss(y_hat, y)\n l.backward()\n optimizer.step()\n metric.add(l * X.shape[0], accuracy(y_hat, y), y.numel())\n timer.stop()\n train_l = metric[0] / metric[2]\n train_acc = metric[1] / metric[2]\n if (batch + 1) % (num_batches // 5) == 0 or batch == num_batches - 1:\n animator.add(epoch + (batch + 1) / num_batches, (train_l, train_acc, None))\n test_acc = evaluate_accuracy_gpu(net, test_iter)\n animator.add(epoch + 1, (None, None, test_acc))\n print(f'loss {train_l:.3f}, train acc {train_acc:.3f}, test acc {test_acc:.3f}')\n print(f'{metric[2] * num_epochs / timer.sum():.1f} examples/sec on {str(device)}')\n plt.show()\n\nbatch_size = 256\ntrain_iter, test_iter = d2l.load_data_fashion_mnist(batch_size)\nlr, num_epochs = 0.9, 10\nlenet = LeNet5()\ntrain(lenet, train_iter, test_iter, num_epochs, lr, d2l.try_gpu())\n\n")),(0,i.kt)("h2",{id:"\u95ee\u9898"},"\u95ee\u9898"),(0,i.kt)("p",null,"\u5728\u5206\u7c7b\u6a21\u578b\u4e2d\uff0c\u6700\u540e\u4e24\u4e2a\u5168\u8fde\u63a5\u5c42\u4e4b\u95f4",(0,i.kt)("strong",{parentName:"p"},"\u4e0d\u8981\u4f7f\u7528ReLU"),"\u6fc0\u6d3b\u51fd\u6570\u3002\u56e0\u4e3aReLU\u7684\u8303\u56f4\u662f[0, +\u221e)\uff0c\u5b83\u4f1a\u5c06\u6240\u6709\u8d1f\u6570\u90fd\u53d8\u62100\u3002\u800c\u6700\u540e\u4e00\u5c42\u5168\u8fde\u63a5\u5c42\u8f93\u51fa\u4e86\u7c7b\u522b\u4fe1\u606f\uff0c\u5012\u6570\u7b2c\u4e8c\u5c42\u7684\u8f93\u51fa\u503c\u5305\u542b\u7740\u975e\u5e38\u91cd\u8981\u7684\u7c7b\u522b\u4fe1\u606f\uff0c\u6b64\u65f6\u4f7f\u7528\u6fc0\u6d3b\u51fd\u6570\u5f88\u53ef\u80fd\u4f1a\u5bfc\u81f4\u4fe1\u606f\u4e22\u5931\u3002"))}d.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/7d51be72.5df6fe56.js b/assets/js/7d51be72.5df6fe56.js new file mode 100644 index 000000000..adcea51a4 --- /dev/null +++ b/assets/js/7d51be72.5df6fe56.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunknpy_notebook=self.webpackChunknpy_notebook||[]).push([[6898],{3905:(e,n,t)=>{t.d(n,{Zo:()=>d,kt:()=>v});var i=t(7294);function r(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function o(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function a(e){for(var n=1;n=0||(r[t]=e[t]);return r}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(r[t]=e[t])}return r}var l=i.createContext({}),p=function(e){var n=i.useContext(l),t=n;return e&&(t="function"==typeof e?e(n):a(a({},n),e)),t},d=function(e){var n=p(e.components);return i.createElement(l.Provider,{value:n},e.children)},m="mdxType",c={inlineCode:"code",wrapper:function(e){var n=e.children;return i.createElement(i.Fragment,{},n)}},u=i.forwardRef((function(e,n){var t=e.components,r=e.mdxType,o=e.originalType,l=e.parentName,d=s(e,["components","mdxType","originalType","parentName"]),m=p(t),u=r,v=m["".concat(l,".").concat(u)]||m[u]||c[u]||o;return t?i.createElement(v,a(a({ref:n},d),{},{components:t})):i.createElement(v,a({ref:n},d))}));function v(e,n){var t=arguments,r=n&&n.mdxType;if("string"==typeof e||r){var o=t.length,a=new Array(o);a[0]=u;var s={};for(var l in n)hasOwnProperty.call(n,l)&&(s[l]=n[l]);s.originalType=e,s[m]="string"==typeof e?e:r,a[1]=s;for(var p=2;p{t.r(n),t.d(n,{assets:()=>l,contentTitle:()=>a,default:()=>c,frontMatter:()=>o,metadata:()=>s,toc:()=>p});var i=t(7462),r=(t(7294),t(3905));const o={},a="Visdom\u53ef\u89c6\u5316",s={unversionedId:"Deep-Learning/\u5b9e\u6218\u7ec3\u4e60/Visdom Visualization",id:"Deep-Learning/\u5b9e\u6218\u7ec3\u4e60/Visdom Visualization",title:"Visdom\u53ef\u89c6\u5316",description:"\u5bf9\u4e8eTensorFlow\u6846\u67b6\uff0c\u53ef\u4ee5\u4f7f\u7528TensorBoard\u5b9e\u73b0\u53ef\u89c6\u5316\u3002",source:"@site/docs/Deep-Learning/4-\u5b9e\u6218\u7ec3\u4e60/1-Visdom Visualization.md",sourceDirName:"Deep-Learning/4-\u5b9e\u6218\u7ec3\u4e60",slug:"/Deep-Learning/\u5b9e\u6218\u7ec3\u4e60/Visdom Visualization",permalink:"/docs/Deep-Learning/\u5b9e\u6218\u7ec3\u4e60/Visdom Visualization",draft:!1,tags:[],version:"current",sidebarPosition:1,frontMatter:{},sidebar:"deep_learning",previous:{title:"\u6fc0\u6d3b\u51fd\u6570\u4e0eLoss\u7684\u68af\u5ea6",permalink:"/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/\u6fc0\u6d3b\u51fd\u6570\u4e0eLoss\u7684\u68af\u5ea6"},next:{title:"Speaker Classification",permalink:"/docs/Deep-Learning/\u5b9e\u6218\u7ec3\u4e60/Speaker Classification"}},l={},p=[{value:"\u5b89\u88c5Visdom",id:"\u5b89\u88c5visdom",level:2},{value:"Visdom\u7684\u4f7f\u7528",id:"visdom\u7684\u4f7f\u7528",level:2},{value:"Visdom\u7684\u542f\u52a8",id:"visdom\u7684\u542f\u52a8",level:3},{value:"\u5355\u7a97\u53e3\u5355\u66f2\u7ebf\u7684\u53ef\u89c6\u5316",id:"\u5355\u7a97\u53e3\u5355\u66f2\u7ebf\u7684\u53ef\u89c6\u5316",level:3},{value:"\u5355\u7a97\u53e3\u591a\u66f2\u7ebf\u7684\u53ef\u89c6\u5316",id:"\u5355\u7a97\u53e3\u591a\u66f2\u7ebf\u7684\u53ef\u89c6\u5316",level:3}],d={toc:p},m="wrapper";function c(e){let{components:n,...t}=e;return(0,r.kt)(m,(0,i.Z)({},d,t,{components:n,mdxType:"MDXLayout"}),(0,r.kt)("h1",{id:"visdom\u53ef\u89c6\u5316"},"Visdom\u53ef\u89c6\u5316"),(0,r.kt)("admonition",{type:"tip"},(0,r.kt)("p",{parentName:"admonition"},"\u5bf9\u4e8eTensorFlow\u6846\u67b6\uff0c\u53ef\u4ee5\u4f7f\u7528TensorBoard\u5b9e\u73b0\u53ef\u89c6\u5316\u3002"),(0,r.kt)("p",{parentName:"admonition"},"\u5bf9\u4e8ePyTorch\u6846\u67b6\uff0c\u53ef\u4ee5\u4f7f\u7528Visdom\u6216TensorBoardX\u5b9e\u73b0\u53ef\u89c6\u5316\uff0c\u672c\u7bc7\u4e3b\u8981\u8bb2\u8ff0Visdom\u3002")),(0,r.kt)("h2",{id:"\u5b89\u88c5visdom"},"\u5b89\u88c5Visdom"),(0,r.kt)("pre",null,(0,r.kt)("code",{parentName:"pre"},"pip install visdom\n")),(0,r.kt)("h2",{id:"visdom\u7684\u4f7f\u7528"},"Visdom\u7684\u4f7f\u7528"),(0,r.kt)("h3",{id:"visdom\u7684\u542f\u52a8"},"Visdom\u7684\u542f\u52a8"),(0,r.kt)("p",null,"\u9996\u5148\u8981\u901a\u8fc7\u7ec8\u7aef\u542f\u52a8Visdom\uff0c\u4f7f\u7528\u672c\u673a\u7aef\u53e3\u8fd0\u884c\u670d\u52a1\u5668\u3002"),(0,r.kt)("p",null,"\u4ee5\u4e0b\u4e8c\u8005\u5747\u53ef\u3002"),(0,r.kt)("pre",null,(0,r.kt)("code",{parentName:"pre",className:"language-bash"},"visdom\npython -m visdom.server\n")),(0,r.kt)("h3",{id:"\u5355\u7a97\u53e3\u5355\u66f2\u7ebf\u7684\u53ef\u89c6\u5316"},"\u5355\u7a97\u53e3\u5355\u66f2\u7ebf\u7684\u53ef\u89c6\u5316"),(0,r.kt)("pre",null,(0,r.kt)("code",{parentName:"pre",className:"language-python"},"from visdom import Visdom\n\nvis = Visdom() # \u5b9e\u4f8b\u5316\n# \u521b\u5efa\u4e00\u6761\u66f2\u7ebf\uff0c\u524d\u4e24\u4e2a\u53c2\u6570\u5206\u522b\u4e3ay\u8f74\u6570\u636e\u3001x\u8f74\u6570\u636e\uff0cwin\u53c2\u6570\u662f\u7a97\u53e3\u7684\u552f\u4e00\u6807\u8bc6\uff0copt\u53ef\u9009\u5b57\u5178\u4e2d\u53ef\u4ee5\u7ed9\u51fa\u7a97\u53e3\u7684title\u548clegend\nvis.line([0.], [0.], win='win_id', opts=dict(title=\"win_title\"))\n \n# \u5728\u8bad\u7ec3\u8fc7\u7a0b\u4e2d\u7684\u5408\u9002\u4f4d\u7f6e\u5411\u521d\u59cb\u5316\u7684\u66f2\u7ebf\u4e2d\u5582\u6570\u636e\n# viz.line([real_y_data], [global_step], win='win_id', update='append')\n# \u67e5\u770b\u8bad\u7ec3loss\nvis.line([loss.item()], [epoch], win='win_id', update='append')\n# \u5bf9\u4e8e\u975eimage\u6570\u636e\uff0c\u5728\u4f20\u5165visdom\u65f6\u4ecd\u9700\u8981\u5148\u8f6c\u5316\u4e3anumpy\u7c7b\u578b\n")),(0,r.kt)("h3",{id:"\u5355\u7a97\u53e3\u591a\u66f2\u7ebf\u7684\u53ef\u89c6\u5316"},"\u5355\u7a97\u53e3\u591a\u66f2\u7ebf\u7684\u53ef\u89c6\u5316"),(0,r.kt)("pre",null,(0,r.kt)("code",{parentName:"pre",className:"language-python"},"from visdom import Visdom\n\nvis = Visdom()\nvis.line([[0., 0.]], [0.], win='win_id', opts=dic(title=\"win_title\", legend=[\"curve_name_1\", \"curve_name_2\"]))\n\n# \u5728\u8bad\u7ec3\u8fc7\u7a0b\u4e2d\u7684\u5408\u9002\u4f4d\u7f6e\u5411\u521d\u59cb\u5316\u7684\u66f2\u7ebf\u4e2d\u5582\u6570\u636e\nviz.line([[y1, y2]], [global_step], win='win_id', update='append')\n")))}c.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/7daa201b.7d2e8a69.js b/assets/js/7daa201b.7d2e8a69.js new file mode 100644 index 000000000..6f87889f6 --- /dev/null +++ b/assets/js/7daa201b.7d2e8a69.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunknpy_notebook=self.webpackChunknpy_notebook||[]).push([[8347],{2776:e=>{e.exports=JSON.parse('{"name":"@easyops-cn/docusaurus-search-local","id":"default"}')}}]); \ No newline at end of file diff --git a/assets/js/7f328912.b5265411.js b/assets/js/7f328912.b5265411.js new file mode 100644 index 000000000..bd48c6449 --- /dev/null +++ b/assets/js/7f328912.b5265411.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunknpy_notebook=self.webpackChunknpy_notebook||[]).push([[8975],{3905:(e,t,r)=>{r.d(t,{Zo:()=>u,kt:()=>d});var n=r(7294);function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function a(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var l=n.createContext({}),p=function(e){var t=n.useContext(l),r=t;return e&&(r="function"==typeof e?e(t):a(a({},t),e)),r},u=function(e){var t=p(e.components);return n.createElement(l.Provider,{value:t},e.children)},s="mdxType",f={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},m=n.forwardRef((function(e,t){var r=e.components,o=e.mdxType,i=e.originalType,l=e.parentName,u=c(e,["components","mdxType","originalType","parentName"]),s=p(r),m=o,d=s["".concat(l,".").concat(m)]||s[m]||f[m]||i;return r?n.createElement(d,a(a({ref:t},u),{},{components:r})):n.createElement(d,a({ref:t},u))}));function d(e,t){var r=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var i=r.length,a=new Array(i);a[0]=m;var c={};for(var l in t)hasOwnProperty.call(t,l)&&(c[l]=t[l]);c.originalType=e,c[s]="string"==typeof e?e:o,a[1]=c;for(var p=2;p{r.r(t),r.d(t,{assets:()=>l,contentTitle:()=>a,default:()=>f,frontMatter:()=>i,metadata:()=>c,toc:()=>p});var n=r(7462),o=(r(7294),r(3905));const i={},a="Welcome",c={unversionedId:"Tui-Mian/intro",id:"Tui-Mian/intro",title:"Welcome",description:"\u6b22\u8fce\u6765\u5230\u7b14\u8bb0\u672c\u7684\u63a8\u514d\u590d\u4e60\u90e8\u5206",source:"@site/docs/Tui-Mian/1-intro.md",sourceDirName:"Tui-Mian",slug:"/Tui-Mian/intro",permalink:"/docs/Tui-Mian/intro",draft:!1,tags:[],version:"current",sidebarPosition:1,frontMatter:{},sidebar:"tui_mian",next:{title:"\u7ecf\u9a8c\u8d34\uff1a2023\u5e74\u53cc\u975e\u8ba1\u7b97\u673a\u4fdd\u7814\u7ecf\u5386",permalink:"/docs/Tui-Mian/Summary"}},l={},p=[{value:"\u652f\u6301\u6211\uff01",id:"\u652f\u6301\u6211",level:2}],u={toc:p},s="wrapper";function f(e){let{components:t,...i}=e;return(0,o.kt)(s,(0,n.Z)({},u,i,{components:t,mdxType:"MDXLayout"}),(0,o.kt)("h1",{id:"welcome"},"Welcome"),(0,o.kt)("admonition",{type:"tip"},(0,o.kt)("p",{parentName:"admonition"},"\u6b22\u8fce\u6765\u5230\u7b14\u8bb0\u672c\u7684\u63a8\u514d\u590d\u4e60\u90e8\u5206")),(0,o.kt)("h2",{id:"\u652f\u6301\u6211"},"\u652f\u6301\u6211\uff01"),(0,o.kt)("p",null,"\u5982\u679c\u53ef\u4ee5\u5e2e\u5230\u4f60\u7684\u8bdd\u5c31\u7ed9\u4e2a\u514d\u8d39\u7684Star\u5427\uff01"),(0,o.kt)("p",null,(0,o.kt)("img",{src:r(9163).Z,width:"2778",height:"2046"})))}f.isMDXComponent=!0},9163:(e,t,r)=>{r.d(t,{Z:()=>n});const n=r.p+"assets/images/intro-822c34cd9b5577b06df8bb0956cdf947.png"}}]); \ No newline at end of file diff --git a/assets/js/800ff996.3792f0da.js b/assets/js/800ff996.3792f0da.js new file mode 100644 index 000000000..160a0ba3d --- /dev/null +++ b/assets/js/800ff996.3792f0da.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunknpy_notebook=self.webpackChunknpy_notebook||[]).push([[6178],{3905:(a,e,t)=>{t.d(e,{Zo:()=>o,kt:()=>g});var s=t(7294);function n(a,e,t){return e in a?Object.defineProperty(a,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):a[e]=t,a}function r(a,e){var t=Object.keys(a);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(a);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable}))),t.push.apply(t,s)}return t}function m(a){for(var e=1;e=0||(n[t]=a[t]);return n}(a,e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(a);for(s=0;s=0||Object.prototype.propertyIsEnumerable.call(a,t)&&(n[t]=a[t])}return n}var i=s.createContext({}),l=function(a){var e=s.useContext(i),t=e;return a&&(t="function"==typeof a?a(e):m(m({},e),a)),t},o=function(a){var e=l(a.components);return s.createElement(i.Provider,{value:e},a.children)},c="mdxType",N={inlineCode:"code",wrapper:function(a){var e=a.children;return s.createElement(s.Fragment,{},e)}},k=s.forwardRef((function(a,e){var t=a.components,n=a.mdxType,r=a.originalType,i=a.parentName,o=p(a,["components","mdxType","originalType","parentName"]),c=l(t),k=n,g=c["".concat(i,".").concat(k)]||c[k]||N[k]||r;return t?s.createElement(g,m(m({ref:e},o),{},{components:t})):s.createElement(g,m({ref:e},o))}));function g(a,e){var t=arguments,n=e&&e.mdxType;if("string"==typeof a||n){var r=t.length,m=new Array(r);m[0]=k;var p={};for(var i in e)hasOwnProperty.call(e,i)&&(p[i]=e[i]);p.originalType=a,p[c]="string"==typeof a?a:n,m[1]=p;for(var l=2;l{t.r(e),t.d(e,{assets:()=>i,contentTitle:()=>m,default:()=>N,frontMatter:()=>r,metadata:()=>p,toc:()=>l});var s=t(7462),n=(t(7294),t(3905));const r={},m="\u5173\u4e8eLogistic Regression",p={unversionedId:"Deep-Learning/\u57fa\u7840\u77e5\u8bc6/LogisticRegression",id:"Deep-Learning/\u57fa\u7840\u77e5\u8bc6/LogisticRegression",title:"\u5173\u4e8eLogistic Regression",description:"\u4e00\u3001\u4ec0\u4e48\u662fLogistic Regression",source:"@site/docs/Deep-Learning/3-\u57fa\u7840\u77e5\u8bc6/LogisticRegression.md",sourceDirName:"Deep-Learning/3-\u57fa\u7840\u77e5\u8bc6",slug:"/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/LogisticRegression",permalink:"/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/LogisticRegression",draft:!1,tags:[],version:"current",frontMatter:{},sidebar:"deep_learning",previous:{title:"LeNet",permalink:"/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/LeNet"},next:{title:"Perceptron",permalink:"/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/Perceptron"}},i={},l=[{value:"\u4e00\u3001\u4ec0\u4e48\u662fLogistic Regression",id:"\u4e00\u4ec0\u4e48\u662flogistic-regression",level:2},{value:"\u4e8c\u3001\u903b\u8f91\u56de\u5f52\uff08Logistic Regression\uff09\u548c\u7ebf\u6027\u56de\u5f52\uff08Linear Regression\uff09",id:"\u4e8c\u903b\u8f91\u56de\u5f52logistic-regression\u548c\u7ebf\u6027\u56de\u5f52linear-regression",level:2},{value:"\u4e09\u3001\u903b\u8f91\u56de\u5f52\u5230\u5e95\u662f\u56de\u5f52\u4efb\u52a1\uff08Regression\uff09\u8fd8\u662f\u5206\u7c7b\u4efb\u52a1\uff08Classification\uff09\uff1f",id:"\u4e09\u903b\u8f91\u56de\u5f52\u5230\u5e95\u662f\u56de\u5f52\u4efb\u52a1regression\u8fd8\u662f\u5206\u7c7b\u4efb\u52a1classification",level:2},{value:"\u56db\u3001\u4e3a\u4ec0\u4e48\u903b\u8f91\u56de\u5f52\u6216\u5176\u4ed6\u5206\u7c7b\u4efb\u52a1\u4e0d\u4f7f\u7528\u5206\u7c7b\u51c6\u786e\u7387\u4f5c\u4e3a\u635f\u5931\u51fd\u6570\uff1f",id:"\u56db\u4e3a\u4ec0\u4e48\u903b\u8f91\u56de\u5f52\u6216\u5176\u4ed6\u5206\u7c7b\u4efb\u52a1\u4e0d\u4f7f\u7528\u5206\u7c7b\u51c6\u786e\u7387\u4f5c\u4e3a\u635f\u5931\u51fd\u6570",level:2}],o={toc:l},c="wrapper";function N(a){let{components:e,...t}=a;return(0,n.kt)(c,(0,s.Z)({},o,t,{components:e,mdxType:"MDXLayout"}),(0,n.kt)("h1",{id:"\u5173\u4e8elogistic-regression"},"\u5173\u4e8eLogistic Regression"),(0,n.kt)("h2",{id:"\u4e00\u4ec0\u4e48\u662flogistic-regression"},"\u4e00\u3001\u4ec0\u4e48\u662fLogistic Regression"),(0,n.kt)("p",null,"Logistic Regression\u76f4\u8bd1\u4e3a\u903b\u8f91\u56de\u5f52\uff0c\u662f\u4e00\u79cd\u7528\u6765\u89e3\u51b3\u4e8c\u5206\u7c7b\u95ee\u9898\u7684\u673a\u5668\u5b66\u4e60\u65b9\u6cd5\uff0c\u7528\u4e8e\u4f30\u8ba1\u67d0\u79cd\u4e8b\u7269\u7684\u53ef\u80fd\u6027\u3002"),(0,n.kt)("p",null,"\u903b\u8f91\u56de\u5f52\u7ecf\u8fc7sigmoid\u51fd\u6570\u8f93\u51fa\u7684\u7ed3\u679c\u53ef\u5c06\u5176\u89c6\u4e3aprobability\uff0c\u800c\u540e\u6839\u636e\u8bbe\u5b9a\u7684\u7f6e\u4fe1\u5ea6\u9608\u503c\u6765\u5224\u65ad\u8be5\u7279\u5f81\u5411\u91cf\u5bf9\u5e94\u7684\u6807\u7b7e\u662f1\u8fd8\u662f0\uff0c\u7528\u4ee5\u89e3\u51b3\u4e8c\u5206\u7c7b\u95ee\u9898\u3002"),(0,n.kt)("hr",null),(0,n.kt)("h2",{id:"\u4e8c\u903b\u8f91\u56de\u5f52logistic-regression\u548c\u7ebf\u6027\u56de\u5f52linear-regression"},"\u4e8c\u3001\u903b\u8f91\u56de\u5f52\uff08Logistic Regression\uff09\u548c\u7ebf\u6027\u56de\u5f52\uff08Linear Regression\uff09"),(0,n.kt)("ul",null,(0,n.kt)("li",{parentName:"ul"},"\u7ebf\u6027\u56de\u5f52\u8981\u6c42\u56e0\u53d8\u91cf\u662f\u8fde\u7eed\u6027\u6570\u503c\u53d8\u91cf\uff0c\u800c\u903b\u8f91\u56de\u5f52\u8981\u6c42\u56e0\u53d8\u91cf\u662f\u79bb\u6563\u7684\u53d8\u91cf\u3002"),(0,n.kt)("li",{parentName:"ul"},"\u903b\u8f91\u56de\u5f52\u4ee5\u7ebf\u6027\u56de\u5f52\u4e3a\u7406\u8bba\u652f\u6301\uff0c\u901a\u8fc7Sigmoid\u51fd\u6570\u5f15\u5165\u4e86\u975e\u7ebf\u6027\u56e0\u7d20\u3002"),(0,n.kt)("li",{parentName:"ul"},"\u7ebf\u6027\u56de\u5f52\u5e38\u7528MSE\u51fd\u6570\u4f5c\u4e3a\u635f\u5931\u51fd\u6570\uff0c\u800c\u903b\u8f91\u56de\u5f52\u4f5c\u4e3a\u5206\u7c7b\u4efb\u52a1\u7684\u89e3\u51b3\u65b9\u6848\u901a\u5e38\u642d\u914d\u4ea4\u53c9\u71b5\u635f\u5931\u51fd\u6570\u8fdb\u884c\u8bad\u7ec3\u3002")),(0,n.kt)("hr",null),(0,n.kt)("h2",{id:"\u4e09\u903b\u8f91\u56de\u5f52\u5230\u5e95\u662f\u56de\u5f52\u4efb\u52a1regression\u8fd8\u662f\u5206\u7c7b\u4efb\u52a1classification"},"\u4e09\u3001\u903b\u8f91\u56de\u5f52\u5230\u5e95\u662f\u56de\u5f52\u4efb\u52a1\uff08Regression\uff09\u8fd8\u662f\u5206\u7c7b\u4efb\u52a1\uff08Classification\uff09\uff1f"),(0,n.kt)("p",null,"\u4ece\u5386\u53f2\u89d2\u5ea6\u65b9\u9762\u770b\uff0c\u903b\u8f91\u56de\u5f52\u5728\u8bde\u751f\u65f6\u4f7f\u7528MSE\u4f5c\u4e3a\u635f\u5931\u51fd\u6570\uff0c\u5176\u76ee\u6807\u662f\u8ba9\u8f93\u51fa\u7684\u6982\u7387\u66f4\u63a5\u8fd1\u4e8e1\uff0c\u4e0e\u56de\u5f52\u4efb\u52a1\u7684\u76ee\u6807\u76f8\u4f3c\u3002"),(0,n.kt)("hr",null),(0,n.kt)("h2",{id:"\u56db\u4e3a\u4ec0\u4e48\u903b\u8f91\u56de\u5f52\u6216\u5176\u4ed6\u5206\u7c7b\u4efb\u52a1\u4e0d\u4f7f\u7528\u5206\u7c7b\u51c6\u786e\u7387\u4f5c\u4e3a\u635f\u5931\u51fd\u6570"},"\u56db\u3001\u4e3a\u4ec0\u4e48\u903b\u8f91\u56de\u5f52\u6216\u5176\u4ed6\u5206\u7c7b\u4efb\u52a1\u4e0d\u4f7f\u7528\u5206\u7c7b\u51c6\u786e\u7387\u4f5c\u4e3a\u635f\u5931\u51fd\u6570\uff1f"),(0,n.kt)("p",null,"\u903b\u8f91\u56de\u5f52\u4ee5\u53ca\u5176\u4ed6\u5206\u7c7b\u4efb\u52a1\u5728\u6d4b\u8bd5\u89d2\u5ea6\u4e0a\u7684\u76ee\u6807\u8ba9\u63d0\u9ad8\u5206\u7c7b\u51c6\u786e\u7387acc\uff0c\u4f46\u5e76\u4e0d\u4f1a\u5c06maximize accuracy\u4f5c\u4e3a\u6570\u5b66\u4e0a\u7684\u8bad\u7ec3\u65b9\u6cd5\uff0c\u5373\u5728\u8bad\u7ec3\u8fc7\u7a0b\u4e2d\u4e0d\u4f7f\u7528\u4e0eacc\u6709\u5173\u7684\u635f\u5931\u51fd\u6570\u3002"),(0,n.kt)("p",null,"\u903b\u8f91\u56de\u5f52\u4e2d\u7684\u8bad\u7ec3\u76ee\u6807\uff08\u8bc4\u4f30\u51fd\u6570\uff09\u4e0e\u9884\u6d4b\u76ee\u6807\uff08\u8bc4\u4f30\u51fd\u6570\uff09\u5e76\u4e0d\u76f8\u540c\uff0c\u4f46\u65b9\u5411\u4e00\u81f4\u3002"),(0,n.kt)("div",{className:"math math-display"},(0,n.kt)("span",{parentName:"div",className:"katex-display"},(0,n.kt)("span",{parentName:"span",className:"katex"},(0,n.kt)("span",{parentName:"span",className:"katex-mathml"},(0,n.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,n.kt)("semantics",{parentName:"math"},(0,n.kt)("mtable",{parentName:"semantics",width:"100%"},(0,n.kt)("mtr",{parentName:"mtable"},(0,n.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,n.kt)("mtd",{parentName:"mtr"},(0,n.kt)("mrow",{parentName:"mtd"},(0,n.kt)("mi",{parentName:"mrow"},"a"),(0,n.kt)("mi",{parentName:"mrow"},"c"),(0,n.kt)("mi",{parentName:"mrow"},"c"),(0,n.kt)("mo",{parentName:"mrow"},"="),(0,n.kt)("mfrac",{parentName:"mrow"},(0,n.kt)("mrow",{parentName:"mfrac"},(0,n.kt)("mo",{parentName:"mrow"},"\u2211"),(0,n.kt)("mrow",{parentName:"mrow"},(0,n.kt)("mi",{parentName:"mrow"},"I"),(0,n.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,n.kt)("mi",{parentName:"mrow"},"p"),(0,n.kt)("mi",{parentName:"mrow"},"r"),(0,n.kt)("mi",{parentName:"mrow"},"e"),(0,n.kt)("msub",{parentName:"mrow"},(0,n.kt)("mi",{parentName:"msub"},"d"),(0,n.kt)("mi",{parentName:"msub"},"i")),(0,n.kt)("mo",{parentName:"mrow"},"="),(0,n.kt)("mo",{parentName:"mrow"},"="),(0,n.kt)("msub",{parentName:"mrow"},(0,n.kt)("mi",{parentName:"msub"},"y"),(0,n.kt)("mi",{parentName:"msub"},"i")),(0,n.kt)("mo",{parentName:"mrow",stretchy:"false"},")"))),(0,n.kt)("mrow",{parentName:"mfrac"},(0,n.kt)("mi",{parentName:"mrow"},"l"),(0,n.kt)("mi",{parentName:"mrow"},"e"),(0,n.kt)("mi",{parentName:"mrow"},"n"),(0,n.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,n.kt)("mi",{parentName:"mrow"},"Y"),(0,n.kt)("mo",{parentName:"mrow",stretchy:"false"},")"))))),(0,n.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,n.kt)("mtd",{parentName:"mtr"},(0,n.kt)("mtext",{parentName:"mtd"},"(1)")))),(0,n.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"acc = \\frac{\\sum{I(pred_i==y_i)}}{len(Y)} \\tag{1}")))),(0,n.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,n.kt)("span",{parentName:"span",className:"base"},(0,n.kt)("span",{parentName:"span",className:"strut",style:{height:"0.4306em"}}),(0,n.kt)("span",{parentName:"span",className:"mord mathnormal"},"a"),(0,n.kt)("span",{parentName:"span",className:"mord mathnormal"},"cc"),(0,n.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,n.kt)("span",{parentName:"span",className:"mrel"},"="),(0,n.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,n.kt)("span",{parentName:"span",className:"base"},(0,n.kt)("span",{parentName:"span",className:"strut",style:{height:"2.363em",verticalAlign:"-0.936em"}}),(0,n.kt)("span",{parentName:"span",className:"mord"},(0,n.kt)("span",{parentName:"span",className:"mopen nulldelimiter"}),(0,n.kt)("span",{parentName:"span",className:"mfrac"},(0,n.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.427em"}},(0,n.kt)("span",{parentName:"span",style:{top:"-2.314em"}},(0,n.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,n.kt)("span",{parentName:"span",className:"mord"},(0,n.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.01968em"}},"l"),(0,n.kt)("span",{parentName:"span",className:"mord mathnormal"},"e"),(0,n.kt)("span",{parentName:"span",className:"mord mathnormal"},"n"),(0,n.kt)("span",{parentName:"span",className:"mopen"},"("),(0,n.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.22222em"}},"Y"),(0,n.kt)("span",{parentName:"span",className:"mclose"},")"))),(0,n.kt)("span",{parentName:"span",style:{top:"-3.23em"}},(0,n.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,n.kt)("span",{parentName:"span",className:"frac-line",style:{borderBottomWidth:"0.04em"}})),(0,n.kt)("span",{parentName:"span",style:{top:"-3.677em"}},(0,n.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,n.kt)("span",{parentName:"span",className:"mord"},(0,n.kt)("span",{parentName:"span",className:"mop op-symbol small-op",style:{position:"relative",top:"0em"}},"\u2211"),(0,n.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,n.kt)("span",{parentName:"span",className:"mord"},(0,n.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.07847em"}},"I"),(0,n.kt)("span",{parentName:"span",className:"mopen"},"("),(0,n.kt)("span",{parentName:"span",className:"mord mathnormal"},"p"),(0,n.kt)("span",{parentName:"span",className:"mord mathnormal"},"re"),(0,n.kt)("span",{parentName:"span",className:"mord"},(0,n.kt)("span",{parentName:"span",className:"mord mathnormal"},"d"),(0,n.kt)("span",{parentName:"span",className:"msupsub"},(0,n.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3117em"}},(0,n.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,n.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,n.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,n.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"i")))),(0,n.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,n.kt)("span",{parentName:"span"})))))),(0,n.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,n.kt)("span",{parentName:"span",className:"mrel"},"=="),(0,n.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,n.kt)("span",{parentName:"span",className:"mord"},(0,n.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"y"),(0,n.kt)("span",{parentName:"span",className:"msupsub"},(0,n.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3117em"}},(0,n.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0359em",marginRight:"0.05em"}},(0,n.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,n.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,n.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"i")))),(0,n.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,n.kt)("span",{parentName:"span"})))))),(0,n.kt)("span",{parentName:"span",className:"mclose"},")"))))),(0,n.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.936em"}},(0,n.kt)("span",{parentName:"span"}))))),(0,n.kt)("span",{parentName:"span",className:"mclose nulldelimiter"}))),(0,n.kt)("span",{parentName:"span",className:"tag"},(0,n.kt)("span",{parentName:"span",className:"strut",style:{height:"2.363em",verticalAlign:"-0.936em"}}),(0,n.kt)("span",{parentName:"span",className:"mord text"},(0,n.kt)("span",{parentName:"span",className:"mord"},"("),(0,n.kt)("span",{parentName:"span",className:"mord"},(0,n.kt)("span",{parentName:"span",className:"mord"},"1")),(0,n.kt)("span",{parentName:"span",className:"mord"},")"))))))),(0,n.kt)("p",null,"\u5982\u679c\u5728\u8bad\u7ec3\u8fc7\u7a0b\u4e2d\u4ee5\u6700\u5927\u5316acc\u4e3a\u76ee\u6807\uff0c\u5f53\u53c2\u6570\u5728\u8bad\u7ec3\u8fc7\u7a0b\u4e2d\u5411\u6807\u7b7e\u65b9\u5411\u66f4\u65b0\u4f7f\u5f97\u903b\u8f91\u56de\u5f52\u8f93\u51fa\u7684\u6b63\u786e\u7c7b\u7684\u6982\u7387\u589e\u5927\u65f6\uff0c\u8003\u8651\u4ee5\u4e0b\u4e24\u79cd\u60c5\u51b5\uff1a"),(0,n.kt)("ol",null,(0,n.kt)("li",{parentName:"ol"},(0,n.kt)("p",{parentName:"li"},(0,n.kt)("strong",{parentName:"p"},"gradient = 0")," if accuracy unchanged but weights changed:"),(0,n.kt)("p",{parentName:"li"},"\u7531\u4e8e\u9608\u503c\u7684\u5b58\u5728\uff0c\u4e0b\u4e00\u8f6e\u8fed\u4ee3\u8f93\u51fa\u7684\u6982\u7387\u53ef\u80fd\u4ecd\u5c0f\u4e8e\u9608\u503c\uff0c\u4ece\u800c\u5bfc\u81f4\u5206\u7c7b\u7ed3\u679c\u4e0e\u4e0a\u4e00\u6b21\u8fed\u4ee3\u76f8\u540c\uff0c\u6b64\u65f6acc\u5e76\u65e0\u53d8\u5316\uff0c",(0,n.kt)("strong",{parentName:"p"},"\u51fa\u73b0\u68af\u5ea6\u4e3a0"),"\u7684\u60c5\u51b5\u3002")),(0,n.kt)("li",{parentName:"ol"},(0,n.kt)("p",{parentName:"li"},(0,n.kt)("strong",{parentName:"p"},"gradient not continuous")," since the number of correct is not continunous:"),(0,n.kt)("p",{parentName:"li"},"\u5f53\u4e0a\u4e00\u8f6e\u8fed\u4ee3\u7684\u8f93\u51fa\u6982\u7387\u5f88\u63a5\u8fd1\u9608\u503c\u65f6\uff0c\u4e0b\u4e00\u6b21\u8fed\u4ee3\u7684\u6982\u7387\u63d0\u5347\u4e86\u5f88\u5c11\u4e00\u70b9\u4f46\u662f\u4ecd\u8d85\u8fc7\u4e86\u9608\u503c\uff0c\u4e14\u4e00\u4e2abatch\u4e2d\u6709\u5927\u91cf\u6837\u672c\u5747\u5b58\u5728\u8fd9\u79cd\u60c5\u51b5\uff0c\u6b64\u65f6acc\u6709\u663e\u8457\u63d0\u5347\u800c\u7f51\u7edc\u7684\u6743\u91cd\u7684\u66f4\u65b0\u6781\u5c0f\uff0c\u6b64\u65f6\uff0c\u4e0eacc\u6709\u5173\u7684Loss\u51fd\u6570\u5bf9\u6743\u91cd\u6c42\u5bfc\u5f97\u5230\u7684\u68af\u5ea6\u4f1a\u51fa\u73b0\u68af\u5ea6\u7206\u70b8\u6216\u8005\u8bf4",(0,n.kt)("strong",{parentName:"p"},"\u4e0d\u8fde\u7eed"),"\u7684\u60c5\u51b5\u3002"))))}N.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/8443.ac831155.js b/assets/js/8443.ac831155.js new file mode 100644 index 000000000..566044b0a --- /dev/null +++ b/assets/js/8443.ac831155.js @@ -0,0 +1,2 @@ +/*! For license information please see 8443.ac831155.js.LICENSE.txt */ +(self.webpackChunknpy_notebook=self.webpackChunknpy_notebook||[]).push([[8443],{6937:(t,e,n)=>{"use strict";t.exports=n(295)},1228:(t,e,n)=>{"use strict";var i=n(2856),s={wrapper:{position:"relative",display:"inline-block"},hint:{position:"absolute",top:"0",left:"0",borderColor:"transparent",boxShadow:"none",opacity:"1"},input:{position:"relative",verticalAlign:"top",backgroundColor:"transparent"},inputWithNoHint:{position:"relative",verticalAlign:"top"},dropdown:{position:"absolute",top:"100%",left:"0",zIndex:"100",display:"none"},suggestions:{display:"block"},suggestion:{whiteSpace:"nowrap",cursor:"pointer"},suggestionChild:{whiteSpace:"normal"},ltr:{left:"0",right:"auto"},rtl:{left:"auto",right:"0"},defaultClasses:{root:"algolia-autocomplete",prefix:"aa",noPrefix:!1,dropdownMenu:"dropdown-menu",input:"input",hint:"hint",suggestions:"suggestions",suggestion:"suggestion",cursor:"cursor",dataset:"dataset",empty:"empty"},appendTo:{wrapper:{position:"absolute",zIndex:"100",display:"none"},input:{},inputWithNoHint:{},dropdown:{display:"block"}}};i.isMsie()&&i.mixin(s.input,{backgroundImage:"url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)"}),i.isMsie()&&i.isMsie()<=7&&i.mixin(s.input,{marginTop:"-1px"}),t.exports=s},9050:(t,e,n)=>{"use strict";var i="aaDataset",s="aaValue",r="aaDatum",o=n(2856),a=n(4910),u=n(3561),c=n(1228),l=n(3109);function h(t){var e;(t=t||{}).templates=t.templates||{},t.source||o.error("missing source"),t.name&&(e=t.name,!/^[_a-zA-Z0-9-]+$/.test(e))&&o.error("invalid dataset name: "+t.name),this.query=null,this._isEmpty=!0,this.highlight=!!t.highlight,this.name=void 0===t.name||null===t.name?o.getUniqueId():t.name,this.source=t.source,this.displayFn=function(t){return t=t||"value",o.isFunction(t)?t:e;function e(e){return e[t]}}(t.display||t.displayKey),this.debounce=t.debounce,this.cache=!1!==t.cache,this.templates=function(t,e){return{empty:t.empty&&o.templatify(t.empty),header:t.header&&o.templatify(t.header),footer:t.footer&&o.templatify(t.footer),suggestion:t.suggestion||n};function n(t){return"

"+e(t)+"

"}}(t.templates,this.displayFn),this.css=o.mixin({},c,t.appendTo?c.appendTo:{}),this.cssClasses=t.cssClasses=o.mixin({},c.defaultClasses,t.cssClasses||{}),this.cssClasses.prefix=t.cssClasses.formattedPrefix||o.formatPrefix(this.cssClasses.prefix,this.cssClasses.noPrefix);var n=o.className(this.cssClasses.prefix,this.cssClasses.dataset);this.$el=t.$menu&&t.$menu.find(n+"-"+this.name).length>0?a.element(t.$menu.find(n+"-"+this.name)[0]):a.element(u.dataset.replace("%CLASS%",this.name).replace("%PREFIX%",this.cssClasses.prefix).replace("%DATASET%",this.cssClasses.dataset)),this.$menu=t.$menu,this.clearCachedSuggestions()}h.extractDatasetName=function(t){return a.element(t).data(i)},h.extractValue=function(t){return a.element(t).data(s)},h.extractDatum=function(t){var e=a.element(t).data(r);return"string"==typeof e&&(e=JSON.parse(e)),e},o.mixin(h.prototype,l,{_render:function(t,e){if(this.$el){var n,c=this,l=[].slice.call(arguments,2);if(this.$el.empty(),n=e&&e.length,this._isEmpty=!n,!n&&this.templates.empty)this.$el.html(function(){var e=[].slice.call(arguments,0);return e=[{query:t,isEmpty:!0}].concat(e),c.templates.empty.apply(this,e)}.apply(this,l)).prepend(c.templates.header?h.apply(this,l):null).append(c.templates.footer?p.apply(this,l):null);else if(n)this.$el.html(function(){var t,n,l=[].slice.call(arguments,0),h=this,p=u.suggestions.replace("%PREFIX%",this.cssClasses.prefix).replace("%SUGGESTIONS%",this.cssClasses.suggestions);return t=a.element(p).css(this.css.suggestions),n=o.map(e,f),t.append.apply(t,n),t;function f(t){var e,n=u.suggestion.replace("%PREFIX%",h.cssClasses.prefix).replace("%SUGGESTION%",h.cssClasses.suggestion);return(e=a.element(n).attr({role:"option",id:["option",Math.floor(1e8*Math.random())].join("-")}).append(c.templates.suggestion.apply(this,[t].concat(l)))).data(i,c.name),e.data(s,c.displayFn(t)||void 0),e.data(r,JSON.stringify(t)),e.children().each((function(){a.element(this).css(h.css.suggestionChild)})),e}}.apply(this,l)).prepend(c.templates.header?h.apply(this,l):null).append(c.templates.footer?p.apply(this,l):null);else if(e&&!Array.isArray(e))throw new TypeError("suggestions must be an array");this.$menu&&this.$menu.addClass(this.cssClasses.prefix+(n?"with":"without")+"-"+this.name).removeClass(this.cssClasses.prefix+(n?"without":"with")+"-"+this.name),this.trigger("rendered",t)}function h(){var e=[].slice.call(arguments,0);return e=[{query:t,isEmpty:!n}].concat(e),c.templates.header.apply(this,e)}function p(){var e=[].slice.call(arguments,0);return e=[{query:t,isEmpty:!n}].concat(e),c.templates.footer.apply(this,e)}},getRoot:function(){return this.$el},update:function(t){function e(e){if(!this.canceled&&t===this.query){var n=[].slice.call(arguments,1);this.cacheSuggestions(t,e,n),this._render.apply(this,[t,e].concat(n))}}if(this.query=t,this.canceled=!1,this.shouldFetchFromCache(t))e.apply(this,[this.cachedSuggestions].concat(this.cachedRenderExtraArgs));else{var n=this,i=function(){n.canceled||n.source(t,e.bind(n))};if(this.debounce){clearTimeout(this.debounceTimeout),this.debounceTimeout=setTimeout((function(){n.debounceTimeout=null,i()}),this.debounce)}else i()}},cacheSuggestions:function(t,e,n){this.cachedQuery=t,this.cachedSuggestions=e,this.cachedRenderExtraArgs=n},shouldFetchFromCache:function(t){return this.cache&&this.cachedQuery===t&&this.cachedSuggestions&&this.cachedSuggestions.length},clearCachedSuggestions:function(){delete this.cachedQuery,delete this.cachedSuggestions,delete this.cachedRenderExtraArgs},cancel:function(){this.canceled=!0},clear:function(){this.$el&&(this.cancel(),this.$el.empty(),this.trigger("rendered",""))},isEmpty:function(){return this._isEmpty},destroy:function(){this.clearCachedSuggestions(),this.$el=null}}),t.exports=h},3354:(t,e,n)=>{"use strict";var i=n(2856),s=n(4910),r=n(3109),o=n(9050),a=n(1228);function u(t){var e,n,r,o=this;(t=t||{}).menu||i.error("menu is required"),i.isArray(t.datasets)||i.isObject(t.datasets)||i.error("1 or more datasets required"),t.datasets||i.error("datasets is required"),this.isOpen=!1,this.isEmpty=!0,this.minLength=t.minLength||0,this.templates={},this.appendTo=t.appendTo||!1,this.css=i.mixin({},a,t.appendTo?a.appendTo:{}),this.cssClasses=t.cssClasses=i.mixin({},a.defaultClasses,t.cssClasses||{}),this.cssClasses.prefix=t.cssClasses.formattedPrefix||i.formatPrefix(this.cssClasses.prefix,this.cssClasses.noPrefix),e=i.bind(this._onSuggestionClick,this),n=i.bind(this._onSuggestionMouseEnter,this),r=i.bind(this._onSuggestionMouseLeave,this);var c=i.className(this.cssClasses.prefix,this.cssClasses.suggestion);this.$menu=s.element(t.menu).on("mouseenter.aa",c,n).on("mouseleave.aa",c,r).on("click.aa",c,e),this.$container=t.appendTo?t.wrapper:this.$menu,t.templates&&t.templates.header&&(this.templates.header=i.templatify(t.templates.header),this.$menu.prepend(this.templates.header())),t.templates&&t.templates.empty&&(this.templates.empty=i.templatify(t.templates.empty),this.$empty=s.element('
'),this.$menu.append(this.$empty),this.$empty.hide()),this.datasets=i.map(t.datasets,(function(e){return function(t,e,n){return new u.Dataset(i.mixin({$menu:t,cssClasses:n},e))}(o.$menu,e,t.cssClasses)})),i.each(this.datasets,(function(t){var e=t.getRoot();e&&0===e.parent().length&&o.$menu.append(e),t.onSync("rendered",o._onRendered,o)})),t.templates&&t.templates.footer&&(this.templates.footer=i.templatify(t.templates.footer),this.$menu.append(this.templates.footer()));var l=this;s.element(window).resize((function(){l._redraw()}))}i.mixin(u.prototype,r,{_onSuggestionClick:function(t){this.trigger("suggestionClicked",s.element(t.currentTarget))},_onSuggestionMouseEnter:function(t){var e=s.element(t.currentTarget);if(!e.hasClass(i.className(this.cssClasses.prefix,this.cssClasses.cursor,!0))){this._removeCursor();var n=this;setTimeout((function(){n._setCursor(e,!1)}),0)}},_onSuggestionMouseLeave:function(t){if(t.relatedTarget&&s.element(t.relatedTarget).closest("."+i.className(this.cssClasses.prefix,this.cssClasses.cursor,!0)).length>0)return;this._removeCursor(),this.trigger("cursorRemoved")},_onRendered:function(t,e){if(this.isEmpty=i.every(this.datasets,(function(t){return t.isEmpty()})),this.isEmpty)if(e.length>=this.minLength&&this.trigger("empty"),this.$empty)if(e.length=this.minLength?this._show():this._hide());this.trigger("datasetRendered")},_hide:function(){this.$container.hide()},_show:function(){this.$container.css("display","block"),this._redraw(),this.trigger("shown")},_redraw:function(){this.isOpen&&this.appendTo&&this.trigger("redrawn")},_getSuggestions:function(){return this.$menu.find(i.className(this.cssClasses.prefix,this.cssClasses.suggestion))},_getCursor:function(){return this.$menu.find(i.className(this.cssClasses.prefix,this.cssClasses.cursor)).first()},_setCursor:function(t,e){t.first().addClass(i.className(this.cssClasses.prefix,this.cssClasses.cursor,!0)).attr("aria-selected","true"),this.trigger("cursorMoved",e)},_removeCursor:function(){this._getCursor().removeClass(i.className(this.cssClasses.prefix,this.cssClasses.cursor,!0)).removeAttr("aria-selected")},_moveCursor:function(t){var e,n,i,s;this.isOpen&&(n=this._getCursor(),e=this._getSuggestions(),this._removeCursor(),-1!==(i=((i=e.index(n)+t)+1)%(e.length+1)-1)?(i<-1&&(i=e.length-1),this._setCursor(s=e.eq(i),!0),this._ensureVisible(s)):this.trigger("cursorRemoved"))},_ensureVisible:function(t){var e,n,i,s;n=(e=t.position().top)+t.height()+parseInt(t.css("margin-top"),10)+parseInt(t.css("margin-bottom"),10),i=this.$menu.scrollTop(),s=this.$menu.height()+parseInt(this.$menu.css("padding-top"),10)+parseInt(this.$menu.css("padding-bottom"),10),e<0?this.$menu.scrollTop(i+e):s{"use strict";var i=n(2856),s=n(4910);function r(t){t&&t.el||i.error("EventBus initialized without el"),this.$el=s.element(t.el)}i.mixin(r.prototype,{trigger:function(t,e,n,s){var r=i.Event("autocomplete:"+t);return this.$el.trigger(r,[e,n,s]),r}}),t.exports=r},3109:(t,e,n)=>{"use strict";var i=n(624),s=/\s+/;function r(t,e,n,i){var r;if(!n)return this;for(e=e.split(s),n=i?function(t,e){return t.bind?t.bind(e):function(){t.apply(e,[].slice.call(arguments,0))}}(n,i):n,this._callbacks=this._callbacks||{};r=e.shift();)this._callbacks[r]=this._callbacks[r]||{sync:[],async:[]},this._callbacks[r][t].push(n);return this}function o(t,e,n){return function(){for(var i,s=0,r=t.length;!i&&s{"use strict";t.exports={wrapper:'',dropdown:'',dataset:'
',suggestions:'',suggestion:'
'}},2534:(t,e,n)=>{"use strict";var i;i={9:"tab",27:"esc",37:"left",39:"right",13:"enter",38:"up",40:"down"};var s=n(2856),r=n(4910),o=n(3109);function a(t){var e,n,o,a,u,c=this;(t=t||{}).input||s.error("input is missing"),e=s.bind(this._onBlur,this),n=s.bind(this._onFocus,this),o=s.bind(this._onKeydown,this),a=s.bind(this._onInput,this),this.$hint=r.element(t.hint),this.$input=r.element(t.input).on("blur.aa",e).on("focus.aa",n).on("keydown.aa",o),0===this.$hint.length&&(this.setHint=this.getHint=this.clearHint=this.clearHintIfInvalid=s.noop),s.isMsie()?this.$input.on("keydown.aa keypress.aa cut.aa paste.aa",(function(t){i[t.which||t.keyCode]||s.defer(s.bind(c._onInput,c,t))})):this.$input.on("input.aa",a),this.query=this.$input.val(),this.$overflowHelper=(u=this.$input,r.element('').css({position:"absolute",visibility:"hidden",whiteSpace:"pre",fontFamily:u.css("font-family"),fontSize:u.css("font-size"),fontStyle:u.css("font-style"),fontVariant:u.css("font-variant"),fontWeight:u.css("font-weight"),wordSpacing:u.css("word-spacing"),letterSpacing:u.css("letter-spacing"),textIndent:u.css("text-indent"),textRendering:u.css("text-rendering"),textTransform:u.css("text-transform")}).insertAfter(u))}function u(t){return t.altKey||t.ctrlKey||t.metaKey||t.shiftKey}a.normalizeQuery=function(t){return(t||"").replace(/^\s*/g,"").replace(/\s{2,}/g," ")},s.mixin(a.prototype,o,{_onBlur:function(){this.resetInputValue(),this.$input.removeAttr("aria-activedescendant"),this.trigger("blurred")},_onFocus:function(){this.trigger("focused")},_onKeydown:function(t){var e=i[t.which||t.keyCode];this._managePreventDefault(e,t),e&&this._shouldTrigger(e,t)&&this.trigger(e+"Keyed",t)},_onInput:function(){this._checkInputValue()},_managePreventDefault:function(t,e){var n,i,s;switch(t){case"tab":i=this.getHint(),s=this.getInputValue(),n=i&&i!==s&&!u(e);break;case"up":case"down":n=!u(e);break;default:n=!1}n&&e.preventDefault()},_shouldTrigger:function(t,e){var n;if("tab"===t)n=!u(e);else n=!0;return n},_checkInputValue:function(){var t,e,n,i,s;t=this.getInputValue(),i=t,s=this.query,n=!(!(e=a.normalizeQuery(i)===a.normalizeQuery(s))||!this.query)&&this.query.length!==t.length,this.query=t,e?n&&this.trigger("whitespaceChanged",this.query):this.trigger("queryChanged",this.query)},focus:function(){this.$input.focus()},blur:function(){this.$input.blur()},getQuery:function(){return this.query},setQuery:function(t){this.query=t},getInputValue:function(){return this.$input.val()},setInputValue:function(t,e){void 0===t&&(t=this.query),this.$input.val(t),e?this.clearHint():this._checkInputValue()},expand:function(){this.$input.attr("aria-expanded","true")},collapse:function(){this.$input.attr("aria-expanded","false")},setActiveDescendant:function(t){this.$input.attr("aria-activedescendant",t)},removeActiveDescendant:function(){this.$input.removeAttr("aria-activedescendant")},resetInputValue:function(){this.setInputValue(this.query,!0)},getHint:function(){return this.$hint.val()},setHint:function(t){this.$hint.val(t)},clearHint:function(){this.setHint("")},clearHintIfInvalid:function(){var t,e,n;n=(t=this.getInputValue())!==(e=this.getHint())&&0===e.indexOf(t),""!==t&&n&&!this.hasOverflow()||this.clearHint()},getLanguageDirection:function(){return(this.$input.css("direction")||"ltr").toLowerCase()},hasOverflow:function(){var t=this.$input.width()-2;return this.$overflowHelper.text(this.getInputValue()),this.$overflowHelper.width()>=t},isCursorAtEnd:function(){var t,e,n;return t=this.$input.val().length,e=this.$input[0].selectionStart,s.isNumber(e)?e===t:!document.selection||((n=document.selection.createRange()).moveStart("character",-t),t===n.text.length)},destroy:function(){this.$hint.off(".aa"),this.$input.off(".aa"),this.$hint=this.$input=this.$overflowHelper=null}}),t.exports=a},6549:(t,e,n)=>{"use strict";var i="aaAttrs",s=n(2856),r=n(4910),o=n(50),a=n(2534),u=n(3354),c=n(3561),l=n(1228);function h(t){var e,n;if((t=t||{}).input||s.error("missing input"),this.isActivated=!1,this.debug=!!t.debug,this.autoselect=!!t.autoselect,this.autoselectOnBlur=!!t.autoselectOnBlur,this.openOnFocus=!!t.openOnFocus,this.minLength=s.isNumber(t.minLength)?t.minLength:1,this.autoWidth=void 0===t.autoWidth||!!t.autoWidth,this.clearOnSelected=!!t.clearOnSelected,this.tabAutocomplete=void 0===t.tabAutocomplete||!!t.tabAutocomplete,t.hint=!!t.hint,t.hint&&t.appendTo)throw new Error("[autocomplete.js] hint and appendTo options can't be used at the same time");this.css=t.css=s.mixin({},l,t.appendTo?l.appendTo:{}),this.cssClasses=t.cssClasses=s.mixin({},l.defaultClasses,t.cssClasses||{}),this.cssClasses.prefix=t.cssClasses.formattedPrefix=s.formatPrefix(this.cssClasses.prefix,this.cssClasses.noPrefix),this.listboxId=t.listboxId=[this.cssClasses.root,"listbox",s.getUniqueId()].join("-");var a=function(t){var e,n,o,a;e=r.element(t.input),n=r.element(c.wrapper.replace("%ROOT%",t.cssClasses.root)).css(t.css.wrapper),t.appendTo||"block"!==e.css("display")||"table"!==e.parent().css("display")||n.css("display","table-cell");var u=c.dropdown.replace("%PREFIX%",t.cssClasses.prefix).replace("%DROPDOWN_MENU%",t.cssClasses.dropdownMenu);o=r.element(u).css(t.css.dropdown).attr({role:"listbox",id:t.listboxId}),t.templates&&t.templates.dropdownMenu&&o.html(s.templatify(t.templates.dropdownMenu)());a=e.clone().css(t.css.hint).css(function(t){return{backgroundAttachment:t.css("background-attachment"),backgroundClip:t.css("background-clip"),backgroundColor:t.css("background-color"),backgroundImage:t.css("background-image"),backgroundOrigin:t.css("background-origin"),backgroundPosition:t.css("background-position"),backgroundRepeat:t.css("background-repeat"),backgroundSize:t.css("background-size")}}(e)),a.val("").addClass(s.className(t.cssClasses.prefix,t.cssClasses.hint,!0)).removeAttr("id name placeholder required").prop("readonly",!0).attr({"aria-hidden":"true",autocomplete:"off",spellcheck:"false",tabindex:-1}),a.removeData&&a.removeData();e.data(i,{"aria-autocomplete":e.attr("aria-autocomplete"),"aria-expanded":e.attr("aria-expanded"),"aria-owns":e.attr("aria-owns"),autocomplete:e.attr("autocomplete"),dir:e.attr("dir"),role:e.attr("role"),spellcheck:e.attr("spellcheck"),style:e.attr("style"),type:e.attr("type")}),e.addClass(s.className(t.cssClasses.prefix,t.cssClasses.input,!0)).attr({autocomplete:"off",spellcheck:!1,role:"combobox","aria-autocomplete":t.datasets&&t.datasets[0]&&t.datasets[0].displayKey?"both":"list","aria-expanded":"false","aria-label":t.ariaLabel,"aria-owns":t.listboxId}).css(t.hint?t.css.input:t.css.inputWithNoHint);try{e.attr("dir")||e.attr("dir","auto")}catch(l){}return n=t.appendTo?n.appendTo(r.element(t.appendTo).eq(0)).eq(0):e.wrap(n).parent(),n.prepend(t.hint?a:null).append(o),{wrapper:n,input:e,hint:a,menu:o}}(t);this.$node=a.wrapper;var u=this.$input=a.input;e=a.menu,n=a.hint,t.dropdownMenuContainer&&r.element(t.dropdownMenuContainer).css("position","relative").append(e.css("top","0")),u.on("blur.aa",(function(t){var n=document.activeElement;s.isMsie()&&(e[0]===n||e[0].contains(n))&&(t.preventDefault(),t.stopImmediatePropagation(),s.defer((function(){u.focus()})))})),e.on("mousedown.aa",(function(t){t.preventDefault()})),this.eventBus=t.eventBus||new o({el:u}),this.dropdown=new h.Dropdown({appendTo:t.appendTo,wrapper:this.$node,menu:e,datasets:t.datasets,templates:t.templates,cssClasses:t.cssClasses,minLength:this.minLength}).onSync("suggestionClicked",this._onSuggestionClicked,this).onSync("cursorMoved",this._onCursorMoved,this).onSync("cursorRemoved",this._onCursorRemoved,this).onSync("opened",this._onOpened,this).onSync("closed",this._onClosed,this).onSync("shown",this._onShown,this).onSync("empty",this._onEmpty,this).onSync("redrawn",this._onRedrawn,this).onAsync("datasetRendered",this._onDatasetRendered,this),this.input=new h.Input({input:u,hint:n}).onSync("focused",this._onFocused,this).onSync("blurred",this._onBlurred,this).onSync("enterKeyed",this._onEnterKeyed,this).onSync("tabKeyed",this._onTabKeyed,this).onSync("escKeyed",this._onEscKeyed,this).onSync("upKeyed",this._onUpKeyed,this).onSync("downKeyed",this._onDownKeyed,this).onSync("leftKeyed",this._onLeftKeyed,this).onSync("rightKeyed",this._onRightKeyed,this).onSync("queryChanged",this._onQueryChanged,this).onSync("whitespaceChanged",this._onWhitespaceChanged,this),this._bindKeyboardShortcuts(t),this._setLanguageDirection()}s.mixin(h.prototype,{_bindKeyboardShortcuts:function(t){if(t.keyboardShortcuts){var e=this.$input,n=[];s.each(t.keyboardShortcuts,(function(t){"string"==typeof t&&(t=t.toUpperCase().charCodeAt(0)),n.push(t)})),r.element(document).keydown((function(t){var i=t.target||t.srcElement,s=i.tagName;if(!i.isContentEditable&&"INPUT"!==s&&"SELECT"!==s&&"TEXTAREA"!==s){var r=t.which||t.keyCode;-1!==n.indexOf(r)&&(e.focus(),t.stopPropagation(),t.preventDefault())}}))}},_onSuggestionClicked:function(t,e){var n;(n=this.dropdown.getDatumForSuggestion(e))&&this._select(n,{selectionMethod:"click"})},_onCursorMoved:function(t,e){var n=this.dropdown.getDatumForCursor(),i=this.dropdown.getCurrentCursor().attr("id");this.input.setActiveDescendant(i),n&&(e&&this.input.setInputValue(n.value,!0),this.eventBus.trigger("cursorchanged",n.raw,n.datasetName))},_onCursorRemoved:function(){this.input.resetInputValue(),this._updateHint(),this.eventBus.trigger("cursorremoved")},_onDatasetRendered:function(){this._updateHint(),this.eventBus.trigger("updated")},_onOpened:function(){this._updateHint(),this.input.expand(),this.eventBus.trigger("opened")},_onEmpty:function(){this.eventBus.trigger("empty")},_onRedrawn:function(){this.$node.css("top","0px"),this.$node.css("left","0px");var t=this.$input[0].getBoundingClientRect();this.autoWidth&&this.$node.css("width",t.width+"px");var e=this.$node[0].getBoundingClientRect(),n=t.bottom-e.top;this.$node.css("top",n+"px");var i=t.left-e.left;this.$node.css("left",i+"px"),this.eventBus.trigger("redrawn")},_onShown:function(){this.eventBus.trigger("shown"),this.autoselect&&this.dropdown.cursorTopSuggestion()},_onClosed:function(){this.input.clearHint(),this.input.removeActiveDescendant(),this.input.collapse(),this.eventBus.trigger("closed")},_onFocused:function(){if(this.isActivated=!0,this.openOnFocus){var t=this.input.getQuery();t.length>=this.minLength?this.dropdown.update(t):this.dropdown.empty(),this.dropdown.open()}},_onBlurred:function(){var t,e;t=this.dropdown.getDatumForCursor(),e=this.dropdown.getDatumForTopSuggestion();var n={selectionMethod:"blur"};this.debug||(this.autoselectOnBlur&&t?this._select(t,n):this.autoselectOnBlur&&e?this._select(e,n):(this.isActivated=!1,this.dropdown.empty(),this.dropdown.close()))},_onEnterKeyed:function(t,e){var n,i;n=this.dropdown.getDatumForCursor(),i=this.dropdown.getDatumForTopSuggestion();var s={selectionMethod:"enterKey"};n?(this._select(n,s),e.preventDefault()):this.autoselect&&i&&(this._select(i,s),e.preventDefault())},_onTabKeyed:function(t,e){if(this.tabAutocomplete){var n;(n=this.dropdown.getDatumForCursor())?(this._select(n,{selectionMethod:"tabKey"}),e.preventDefault()):this._autocomplete(!0)}else this.dropdown.close()},_onEscKeyed:function(){this.dropdown.close(),this.input.resetInputValue()},_onUpKeyed:function(){var t=this.input.getQuery();this.dropdown.isEmpty&&t.length>=this.minLength?this.dropdown.update(t):this.dropdown.moveCursorUp(),this.dropdown.open()},_onDownKeyed:function(){var t=this.input.getQuery();this.dropdown.isEmpty&&t.length>=this.minLength?this.dropdown.update(t):this.dropdown.moveCursorDown(),this.dropdown.open()},_onLeftKeyed:function(){"rtl"===this.dir&&this._autocomplete()},_onRightKeyed:function(){"ltr"===this.dir&&this._autocomplete()},_onQueryChanged:function(t,e){this.input.clearHintIfInvalid(),e.length>=this.minLength?this.dropdown.update(e):this.dropdown.empty(),this.dropdown.open(),this._setLanguageDirection()},_onWhitespaceChanged:function(){this._updateHint(),this.dropdown.open()},_setLanguageDirection:function(){var t=this.input.getLanguageDirection();this.dir!==t&&(this.dir=t,this.$node.css("direction",t),this.dropdown.setLanguageDirection(t))},_updateHint:function(){var t,e,n,i,r;(t=this.dropdown.getDatumForTopSuggestion())&&this.dropdown.isVisible()&&!this.input.hasOverflow()?(e=this.input.getInputValue(),n=a.normalizeQuery(e),i=s.escapeRegExChars(n),(r=new RegExp("^(?:"+i+")(.+$)","i").exec(t.value))?this.input.setHint(e+r[1]):this.input.clearHint()):this.input.clearHint()},_autocomplete:function(t){var e,n,i,s;e=this.input.getHint(),n=this.input.getQuery(),i=t||this.input.isCursorAtEnd(),e&&n!==e&&i&&((s=this.dropdown.getDatumForTopSuggestion())&&this.input.setInputValue(s.value),this.eventBus.trigger("autocompleted",s.raw,s.datasetName))},_select:function(t,e){void 0!==t.value&&this.input.setQuery(t.value),this.clearOnSelected?this.setVal(""):this.input.setInputValue(t.value,!0),this._setLanguageDirection(),!1===this.eventBus.trigger("selected",t.raw,t.datasetName,e).isDefaultPrevented()&&(this.dropdown.close(),s.defer(s.bind(this.dropdown.empty,this.dropdown)))},open:function(){if(!this.isActivated){var t=this.input.getInputValue();t.length>=this.minLength?this.dropdown.update(t):this.dropdown.empty()}this.dropdown.open()},close:function(){this.dropdown.close()},setVal:function(t){t=s.toStr(t),this.isActivated?this.input.setInputValue(t):(this.input.setQuery(t),this.input.setInputValue(t,!0)),this._setLanguageDirection()},getVal:function(){return this.input.getQuery()},destroy:function(){this.input.destroy(),this.dropdown.destroy(),function(t,e){var n=t.find(s.className(e.prefix,e.input));s.each(n.data(i),(function(t,e){void 0===t?n.removeAttr(e):n.attr(e,t)})),n.detach().removeClass(s.className(e.prefix,e.input,!0)).insertAfter(t),n.removeData&&n.removeData(i);t.remove()}(this.$node,this.cssClasses),this.$node=null},getWrapper:function(){return this.dropdown.$container[0]}}),h.Dropdown=u,h.Input=a,h.sources=n(8840),t.exports=h},4910:t=>{"use strict";t.exports={element:null}},6177:t=>{"use strict";t.exports=function(t){var e=t.match(/Algolia for JavaScript \((\d+\.)(\d+\.)(\d+)\)/)||t.match(/Algolia for vanilla JavaScript (\d+\.)(\d+\.)(\d+)/);if(e)return[e[1],e[2],e[3]]}},2856:(t,e,n)=>{"use strict";var i,s=n(8820),r=n(4910);function o(t){return t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}t.exports={isArray:null,isFunction:null,isObject:null,bind:null,each:null,map:null,mixin:null,isMsie:function(t){if(void 0===t&&(t=navigator.userAgent),/(msie|trident)/i.test(t)){var e=t.match(/(msie |rv:)(\d+(.\d+)?)/i);if(e)return e[2]}return!1},escapeRegExChars:function(t){return t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")},isNumber:function(t){return"number"==typeof t},toStr:function(t){return null==t?"":t+""},cloneDeep:function(t){var e=this.mixin({},t),n=this;return this.each(e,(function(t,i){t&&(n.isArray(t)?e[i]=[].concat(t):n.isObject(t)&&(e[i]=n.cloneDeep(t)))})),e},error:function(t){throw new Error(t)},every:function(t,e){var n=!0;return t?(this.each(t,(function(i,s){n&&(n=e.call(null,i,s,t)&&n)})),!!n):n},any:function(t,e){var n=!1;return t?(this.each(t,(function(i,s){if(e.call(null,i,s,t))return n=!0,!1})),n):n},getUniqueId:(i=0,function(){return i++}),templatify:function(t){if(this.isFunction(t))return t;var e=r.element(t);return"SCRIPT"===e.prop("tagName")?function(){return e.text()}:function(){return String(t)}},defer:function(t){setTimeout(t,0)},noop:function(){},formatPrefix:function(t,e){return e?"":t+"-"},className:function(t,e,n){return n?t+e:"."+s(t+e,{isIdentifier:!0})},escapeHighlightedString:function(t,e,n){e=e||"";var i=document.createElement("div");i.appendChild(document.createTextNode(e)),n=n||"";var s=document.createElement("div");s.appendChild(document.createTextNode(n));var r=document.createElement("div");return r.appendChild(document.createTextNode(t)),r.innerHTML.replace(RegExp(o(i.innerHTML),"g"),e).replace(RegExp(o(s.innerHTML),"g"),n)}}},9983:(t,e,n)=>{"use strict";var i=n(2856),s=n(533),r=n(6177);var o,a,u=(o=[],a=window.Promise.resolve(),function(t,e){return function(n,s){(function(t,e){return window.Promise.resolve().then((function(){return o.length&&(a=t.search(o),o=[]),a})).then((function(t){if(t)return t.results[e]}))})(t.as,o.push({indexName:t.indexName,query:n,params:e})-1).then((function(t){t&&s(t.hits,t)})).catch((function(t){i.error(t.message)}))}});t.exports=function(t,e){var n=r(t.as._ua);if(n&&n[0]>=3&&n[1]>20){var i="autocomplete.js "+s;-1===t.as._ua.indexOf(i)&&(t.as._ua+="; "+i)}return u(t,e)}},8840:(t,e,n)=>{"use strict";t.exports={hits:n(9983),popularIn:n(4445)}},4445:(t,e,n)=>{"use strict";var i=n(2856),s=n(533),r=n(6177);t.exports=function(t,e,n,o){var a=r(t.as._ua);if(a&&a[0]>=3&&a[1]>20&&((e=e||{}).additionalUA="autocomplete.js "+s),!n.source)return i.error("Missing 'source' key");var u=i.isFunction(n.source)?n.source:function(t){return t[n.source]};if(!n.index)return i.error("Missing 'index' key");var c=n.index;return o=o||{},function(a,l){t.search(a,e,(function(t,a){if(t)i.error(t.message);else{if(a.hits.length>0){var h=a.hits[0],p=i.mixin({hitsPerPage:0},n);delete p.source,delete p.index;var f=r(c.as._ua);return f&&f[0]>=3&&f[1]>20&&(e.additionalUA="autocomplete.js "+s),void c.search(u(h),p,(function(t,e){if(t)i.error(t.message);else{var n=[];if(o.includeAll){var s=o.allTitle||"All departments";n.push(i.mixin({facet:{value:s,count:e.nbHits}},i.cloneDeep(h)))}i.each(e.facets,(function(t,e){i.each(t,(function(t,s){n.push(i.mixin({facet:{facet:e,value:s,count:t}},i.cloneDeep(h)))}))}));for(var r=1;r{"use strict";var i=n(6990);n(4910).element=i;var s=n(2856);s.isArray=i.isArray,s.isFunction=i.isFunction,s.isObject=i.isPlainObject,s.bind=i.proxy,s.each=function(t,e){i.each(t,(function(t,n){return e(n,t)}))},s.map=i.map,s.mixin=i.extend,s.Event=i.Event;var r="aaAutocomplete",o=n(6549),a=n(50);function u(t,e,n,u){n=s.isArray(n)?n:[].slice.call(arguments,2);var c=i(t).each((function(t,s){var c=i(s),l=new a({el:c}),h=u||new o({input:c,eventBus:l,dropdownMenuContainer:e.dropdownMenuContainer,hint:void 0===e.hint||!!e.hint,minLength:e.minLength,autoselect:e.autoselect,autoselectOnBlur:e.autoselectOnBlur,tabAutocomplete:e.tabAutocomplete,openOnFocus:e.openOnFocus,templates:e.templates,debug:e.debug,clearOnSelected:e.clearOnSelected,cssClasses:e.cssClasses,datasets:n,keyboardShortcuts:e.keyboardShortcuts,appendTo:e.appendTo,autoWidth:e.autoWidth,ariaLabel:e.ariaLabel||s.getAttribute("aria-label")});c.data(r,h)}));return c.autocomplete={},s.each(["open","close","getVal","setVal","destroy","getWrapper"],(function(t){c.autocomplete[t]=function(){var e,n=arguments;return c.each((function(s,o){var a=i(o).data(r);e=a[t].apply(a,n)})),e}})),c}u.sources=o.sources,u.escapeHighlightedString=s.escapeHighlightedString;var c="autocomplete"in window,l=window.autocomplete;u.noConflict=function(){return c?window.autocomplete=l:delete window.autocomplete,u},t.exports=u},533:t=>{t.exports="0.38.1"},6990:t=>{var e;e=window,t.exports=function(t){var e,n,i=function(){var e,n,i,s,r,o,a=[],u=a.concat,c=a.filter,l=a.slice,h=t.document,p={},f={},d={"column-count":1,columns:1,"font-weight":1,"line-height":1,opacity:1,"z-index":1,zoom:1},g=/^\s*<(\w+|!)[^>]*>/,m=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,v=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,y=/^(?:body|html)$/i,w=/([A-Z])/g,b=["val","css","html","text","data","width","height","offset"],C=["after","prepend","before","append"],x=h.createElement("table"),_=h.createElement("tr"),S={tr:h.createElement("tbody"),tbody:x,thead:x,tfoot:x,td:_,th:_,"*":h.createElement("div")},E=/complete|loaded|interactive/,A=/^[\w-]*$/,$={},T=$.toString,O={},D=h.createElement("div"),N={tabindex:"tabIndex",readonly:"readOnly",for:"htmlFor",class:"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},k=Array.isArray||function(t){return t instanceof Array};function I(t){return null==t?String(t):$[T.call(t)]||"object"}function P(t){return"function"==I(t)}function L(t){return null!=t&&t==t.window}function M(t){return null!=t&&t.nodeType==t.DOCUMENT_NODE}function F(t){return"object"==I(t)}function R(t){return F(t)&&!L(t)&&Object.getPrototypeOf(t)==Object.prototype}function q(t){var e=!!t&&"length"in t&&t.length,n=i.type(t);return"function"!=n&&!L(t)&&("array"==n||0===e||"number"==typeof e&&e>0&&e-1 in t)}function V(t){return c.call(t,(function(t){return null!=t}))}function H(t){return t.length>0?i.fn.concat.apply([],t):t}function B(t){return t.replace(/::/g,"/").replace(/([A-Z]+)([A-Z][a-z])/g,"$1_$2").replace(/([a-z\d])([A-Z])/g,"$1_$2").replace(/_/g,"-").toLowerCase()}function K(t){return t in f?f[t]:f[t]=new RegExp("(^|\\s)"+t+"(\\s|$)")}function j(t,e){return"number"!=typeof e||d[B(t)]?e:e+"px"}function z(t){var e,n;return p[t]||(e=h.createElement(t),h.body.appendChild(e),n=getComputedStyle(e,"").getPropertyValue("display"),e.parentNode.removeChild(e),"none"==n&&(n="block"),p[t]=n),p[t]}function U(t){return"children"in t?l.call(t.children):i.map(t.childNodes,(function(t){if(1==t.nodeType)return t}))}function Q(t,e){var n,i=t?t.length:0;for(n=0;n")),n===e&&(n=g.test(t)&&RegExp.$1),n in S||(n="*"),(a=S[n]).innerHTML=""+t,r=i.each(l.call(a.childNodes),(function(){a.removeChild(this)}))),R(s)&&(o=i(r),i.each(s,(function(t,e){b.indexOf(t)>-1?o[t](e):o.attr(t,e)}))),r},O.Z=function(t,e){return new Q(t,e)},O.isZ=function(t){return t instanceof O.Z},O.init=function(t,n){var s;if(!t)return O.Z();if("string"==typeof t)if("<"==(t=t.trim())[0]&&g.test(t))s=O.fragment(t,RegExp.$1,n),t=null;else{if(n!==e)return i(n).find(t);s=O.qsa(h,t)}else{if(P(t))return i(h).ready(t);if(O.isZ(t))return t;if(k(t))s=V(t);else if(F(t))s=[t],t=null;else if(g.test(t))s=O.fragment(t.trim(),RegExp.$1,n),t=null;else{if(n!==e)return i(n).find(t);s=O.qsa(h,t)}}return O.Z(s,t)},(i=function(t,e){return O.init(t,e)}).extend=function(t){var e,n=l.call(arguments,1);return"boolean"==typeof t&&(e=t,t=n.shift()),n.forEach((function(n){W(t,n,e)})),t},O.qsa=function(t,e){var n,i="#"==e[0],s=!i&&"."==e[0],r=i||s?e.slice(1):e,o=A.test(r);return t.getElementById&&o&&i?(n=t.getElementById(r))?[n]:[]:1!==t.nodeType&&9!==t.nodeType&&11!==t.nodeType?[]:l.call(o&&!i&&t.getElementsByClassName?s?t.getElementsByClassName(r):t.getElementsByTagName(e):t.querySelectorAll(e))},i.contains=h.documentElement.contains?function(t,e){return t!==e&&t.contains(e)}:function(t,e){for(;e&&(e=e.parentNode);)if(e===t)return!0;return!1},i.type=I,i.isFunction=P,i.isWindow=L,i.isArray=k,i.isPlainObject=R,i.isEmptyObject=function(t){var e;for(e in t)return!1;return!0},i.isNumeric=function(t){var e=Number(t),n=typeof t;return null!=t&&"boolean"!=n&&("string"!=n||t.length)&&!isNaN(e)&&isFinite(e)||!1},i.inArray=function(t,e,n){return a.indexOf.call(e,t,n)},i.camelCase=r,i.trim=function(t){return null==t?"":String.prototype.trim.call(t)},i.uuid=0,i.support={},i.expr={},i.noop=function(){},i.map=function(t,e){var n,i,s,r=[];if(q(t))for(i=0;i=0?t:t+this.length]},toArray:function(){return this.get()},size:function(){return this.length},remove:function(){return this.each((function(){null!=this.parentNode&&this.parentNode.removeChild(this)}))},each:function(t){return a.every.call(this,(function(e,n){return!1!==t.call(e,n,e)})),this},filter:function(t){return P(t)?this.not(this.not(t)):i(c.call(this,(function(e){return O.matches(e,t)})))},add:function(t,e){return i(o(this.concat(i(t,e))))},is:function(t){return this.length>0&&O.matches(this[0],t)},not:function(t){var n=[];if(P(t)&&t.call!==e)this.each((function(e){t.call(this,e)||n.push(this)}));else{var s="string"==typeof t?this.filter(t):q(t)&&P(t.item)?l.call(t):i(t);this.forEach((function(t){s.indexOf(t)<0&&n.push(t)}))}return i(n)},has:function(t){return this.filter((function(){return F(t)?i.contains(this,t):i(this).find(t).size()}))},eq:function(t){return-1===t?this.slice(t):this.slice(t,+t+1)},first:function(){var t=this[0];return t&&!F(t)?t:i(t)},last:function(){var t=this[this.length-1];return t&&!F(t)?t:i(t)},find:function(t){var e=this;return t?"object"==typeof t?i(t).filter((function(){var t=this;return a.some.call(e,(function(e){return i.contains(e,t)}))})):1==this.length?i(O.qsa(this[0],t)):this.map((function(){return O.qsa(this,t)})):i()},closest:function(t,e){var n=[],s="object"==typeof t&&i(t);return this.each((function(i,r){for(;r&&!(s?s.indexOf(r)>=0:O.matches(r,t));)r=r!==e&&!M(r)&&r.parentNode;r&&n.indexOf(r)<0&&n.push(r)})),i(n)},parents:function(t){for(var e=[],n=this;n.length>0;)n=i.map(n,(function(t){if((t=t.parentNode)&&!M(t)&&e.indexOf(t)<0)return e.push(t),t}));return Z(e,t)},parent:function(t){return Z(o(this.pluck("parentNode")),t)},children:function(t){return Z(this.map((function(){return U(this)})),t)},contents:function(){return this.map((function(){return this.contentDocument||l.call(this.childNodes)}))},siblings:function(t){return Z(this.map((function(t,e){return c.call(U(e.parentNode),(function(t){return t!==e}))})),t)},empty:function(){return this.each((function(){this.innerHTML=""}))},pluck:function(t){return i.map(this,(function(e){return e[t]}))},show:function(){return this.each((function(){"none"==this.style.display&&(this.style.display=""),"none"==getComputedStyle(this,"").getPropertyValue("display")&&(this.style.display=z(this.nodeName))}))},replaceWith:function(t){return this.before(t).remove()},wrap:function(t){var e=P(t);if(this[0]&&!e)var n=i(t).get(0),s=n.parentNode||this.length>1;return this.each((function(r){i(this).wrapAll(e?t.call(this,r):s?n.cloneNode(!0):n)}))},wrapAll:function(t){if(this[0]){var e;for(i(this[0]).before(t=i(t));(e=t.children()).length;)t=e.first();i(t).append(this)}return this},wrapInner:function(t){var e=P(t);return this.each((function(n){var s=i(this),r=s.contents(),o=e?t.call(this,n):t;r.length?r.wrapAll(o):s.append(o)}))},unwrap:function(){return this.parent().each((function(){i(this).replaceWith(i(this).children())})),this},clone:function(){return this.map((function(){return this.cloneNode(!0)}))},hide:function(){return this.css("display","none")},toggle:function(t){return this.each((function(){var n=i(this);(t===e?"none"==n.css("display"):t)?n.show():n.hide()}))},prev:function(t){return i(this.pluck("previousElementSibling")).filter(t||"*")},next:function(t){return i(this.pluck("nextElementSibling")).filter(t||"*")},html:function(t){return 0 in arguments?this.each((function(e){var n=this.innerHTML;i(this).empty().append(X(this,t,e,n))})):0 in this?this[0].innerHTML:null},text:function(t){return 0 in arguments?this.each((function(e){var n=X(this,t,e,this.textContent);this.textContent=null==n?"":""+n})):0 in this?this.pluck("textContent").join(""):null},attr:function(t,i){var s;return"string"!=typeof t||1 in arguments?this.each((function(e){if(1===this.nodeType)if(F(t))for(n in t)G(this,n,t[n]);else G(this,t,X(this,i,e,this.getAttribute(t)))})):0 in this&&1==this[0].nodeType&&null!=(s=this[0].getAttribute(t))?s:e},removeAttr:function(t){return this.each((function(){1===this.nodeType&&t.split(" ").forEach((function(t){G(this,t)}),this)}))},prop:function(t,e){return t=N[t]||t,1 in arguments?this.each((function(n){this[t]=X(this,e,n,this[t])})):this[0]&&this[0][t]},removeProp:function(t){return t=N[t]||t,this.each((function(){delete this[t]}))},data:function(t,n){var i="data-"+t.replace(w,"-$1").toLowerCase(),s=1 in arguments?this.attr(i,n):this.attr(i);return null!==s?Y(s):e},val:function(t){return 0 in arguments?(null==t&&(t=""),this.each((function(e){this.value=X(this,t,e,this.value)}))):this[0]&&(this[0].multiple?i(this[0]).find("option").filter((function(){return this.selected})).pluck("value"):this[0].value)},offset:function(e){if(e)return this.each((function(t){var n=i(this),s=X(this,e,t,n.offset()),r=n.offsetParent().offset(),o={top:s.top-r.top,left:s.left-r.left};"static"==n.css("position")&&(o.position="relative"),n.css(o)}));if(!this.length)return null;if(h.documentElement!==this[0]&&!i.contains(h.documentElement,this[0]))return{top:0,left:0};var n=this[0].getBoundingClientRect();return{left:n.left+t.pageXOffset,top:n.top+t.pageYOffset,width:Math.round(n.width),height:Math.round(n.height)}},css:function(t,e){if(arguments.length<2){var s=this[0];if("string"==typeof t){if(!s)return;return s.style[r(t)]||getComputedStyle(s,"").getPropertyValue(t)}if(k(t)){if(!s)return;var o={},a=getComputedStyle(s,"");return i.each(t,(function(t,e){o[e]=s.style[r(e)]||a.getPropertyValue(e)})),o}}var u="";if("string"==I(t))e||0===e?u=B(t)+":"+j(t,e):this.each((function(){this.style.removeProperty(B(t))}));else for(n in t)t[n]||0===t[n]?u+=B(n)+":"+j(n,t[n])+";":this.each((function(){this.style.removeProperty(B(n))}));return this.each((function(){this.style.cssText+=";"+u}))},index:function(t){return t?this.indexOf(i(t)[0]):this.parent().children().indexOf(this[0])},hasClass:function(t){return!!t&&a.some.call(this,(function(t){return this.test(J(t))}),K(t))},addClass:function(t){return t?this.each((function(e){if("className"in this){s=[];var n=J(this);X(this,t,e,n).split(/\s+/g).forEach((function(t){i(this).hasClass(t)||s.push(t)}),this),s.length&&J(this,n+(n?" ":"")+s.join(" "))}})):this},removeClass:function(t){return this.each((function(n){if("className"in this){if(t===e)return J(this,"");s=J(this),X(this,t,n,s).split(/\s+/g).forEach((function(t){s=s.replace(K(t)," ")})),J(this,s.trim())}}))},toggleClass:function(t,n){return t?this.each((function(s){var r=i(this);X(this,t,s,J(this)).split(/\s+/g).forEach((function(t){(n===e?!r.hasClass(t):n)?r.addClass(t):r.removeClass(t)}))})):this},scrollTop:function(t){if(this.length){var n="scrollTop"in this[0];return t===e?n?this[0].scrollTop:this[0].pageYOffset:this.each(n?function(){this.scrollTop=t}:function(){this.scrollTo(this.scrollX,t)})}},scrollLeft:function(t){if(this.length){var n="scrollLeft"in this[0];return t===e?n?this[0].scrollLeft:this[0].pageXOffset:this.each(n?function(){this.scrollLeft=t}:function(){this.scrollTo(t,this.scrollY)})}},position:function(){if(this.length){var t=this[0],e=this.offsetParent(),n=this.offset(),s=y.test(e[0].nodeName)?{top:0,left:0}:e.offset();return n.top-=parseFloat(i(t).css("margin-top"))||0,n.left-=parseFloat(i(t).css("margin-left"))||0,s.top+=parseFloat(i(e[0]).css("border-top-width"))||0,s.left+=parseFloat(i(e[0]).css("border-left-width"))||0,{top:n.top-s.top,left:n.left-s.left}}},offsetParent:function(){return this.map((function(){for(var t=this.offsetParent||h.body;t&&!y.test(t.nodeName)&&"static"==i(t).css("position");)t=t.offsetParent;return t}))}},i.fn.detach=i.fn.remove,["width","height"].forEach((function(t){var n=t.replace(/./,(function(t){return t[0].toUpperCase()}));i.fn[t]=function(s){var r,o=this[0];return s===e?L(o)?o["inner"+n]:M(o)?o.documentElement["scroll"+n]:(r=this.offset())&&r[t]:this.each((function(e){(o=i(this)).css(t,X(this,s,e,o[t]()))}))}})),C.forEach((function(n,s){var r=s%2;i.fn[n]=function(){var n,o,a=i.map(arguments,(function(t){var s=[];return"array"==(n=I(t))?(t.forEach((function(t){return t.nodeType!==e?s.push(t):i.zepto.isZ(t)?s=s.concat(t.get()):void(s=s.concat(O.fragment(t)))})),s):"object"==n||null==t?t:O.fragment(t)})),u=this.length>1;return a.length<1?this:this.each((function(e,n){o=r?n:n.parentNode,n=0==s?n.nextSibling:1==s?n.firstChild:2==s?n:null;var c=i.contains(h.documentElement,o);a.forEach((function(e){if(u)e=e.cloneNode(!0);else if(!o)return i(e).remove();o.insertBefore(e,n),c&&tt(e,(function(e){if(!(null==e.nodeName||"SCRIPT"!==e.nodeName.toUpperCase()||e.type&&"text/javascript"!==e.type||e.src)){var n=e.ownerDocument?e.ownerDocument.defaultView:t;n.eval.call(n,e.innerHTML)}}))}))}))},i.fn[r?n+"To":"insert"+(s?"Before":"After")]=function(t){return i(t)[n](this),this}})),O.Z.prototype=Q.prototype=i.fn,O.uniq=o,O.deserializeValue=Y,i.zepto=O,i}();return function(e){var n,i=1,s=Array.prototype.slice,r=e.isFunction,o=function(t){return"string"==typeof t},a={},u={},c="onfocusin"in t,l={focus:"focusin",blur:"focusout"},h={mouseenter:"mouseover",mouseleave:"mouseout"};function p(t){return t._zid||(t._zid=i++)}function f(t,e,n,i){if((e=d(e)).ns)var s=g(e.ns);return(a[p(t)]||[]).filter((function(t){return t&&(!e.e||t.e==e.e)&&(!e.ns||s.test(t.ns))&&(!n||p(t.fn)===p(n))&&(!i||t.sel==i)}))}function d(t){var e=(""+t).split(".");return{e:e[0],ns:e.slice(1).sort().join(" ")}}function g(t){return new RegExp("(?:^| )"+t.replace(" "," .* ?")+"(?: |$)")}function m(t,e){return t.del&&!c&&t.e in l||!!e}function v(t){return h[t]||c&&l[t]||t}function y(t,i,s,r,o,u,c){var l=p(t),f=a[l]||(a[l]=[]);i.split(/\s/).forEach((function(i){if("ready"==i)return e(document).ready(s);var a=d(i);a.fn=s,a.sel=o,a.e in h&&(s=function(t){var n=t.relatedTarget;if(!n||n!==this&&!e.contains(this,n))return a.fn.apply(this,arguments)}),a.del=u;var l=u||s;a.proxy=function(e){if(!(e=S(e)).isImmediatePropagationStopped()){try{var i=Object.getOwnPropertyDescriptor(e,"data");i&&!i.writable||(e.data=r)}catch(e){}var s=l.apply(t,e._args==n?[e]:[e].concat(e._args));return!1===s&&(e.preventDefault(),e.stopPropagation()),s}},a.i=f.length,f.push(a),"addEventListener"in t&&t.addEventListener(v(a.e),a.proxy,m(a,c))}))}function w(t,e,n,i,s){var r=p(t);(e||"").split(/\s/).forEach((function(e){f(t,e,n,i).forEach((function(e){delete a[r][e.i],"removeEventListener"in t&&t.removeEventListener(v(e.e),e.proxy,m(e,s))}))}))}u.click=u.mousedown=u.mouseup=u.mousemove="MouseEvents",e.event={add:y,remove:w},e.proxy=function(t,n){var i=2 in arguments&&s.call(arguments,2);if(r(t)){var a=function(){return t.apply(n,i?i.concat(s.call(arguments)):arguments)};return a._zid=p(t),a}if(o(n))return i?(i.unshift(t[n],t),e.proxy.apply(null,i)):e.proxy(t[n],t);throw new TypeError("expected function")},e.fn.bind=function(t,e,n){return this.on(t,e,n)},e.fn.unbind=function(t,e){return this.off(t,e)},e.fn.one=function(t,e,n,i){return this.on(t,e,n,i,1)};var b=function(){return!0},C=function(){return!1},x=/^([A-Z]|returnValue$|layer[XY]$|webkitMovement[XY]$)/,_={preventDefault:"isDefaultPrevented",stopImmediatePropagation:"isImmediatePropagationStopped",stopPropagation:"isPropagationStopped"};function S(t,i){if(i||!t.isDefaultPrevented){i||(i=t),e.each(_,(function(e,n){var s=i[e];t[e]=function(){return this[n]=b,s&&s.apply(i,arguments)},t[n]=C}));try{t.timeStamp||(t.timeStamp=Date.now())}catch(s){}(i.defaultPrevented!==n?i.defaultPrevented:"returnValue"in i?!1===i.returnValue:i.getPreventDefault&&i.getPreventDefault())&&(t.isDefaultPrevented=b)}return t}function E(t){var e,i={originalEvent:t};for(e in t)x.test(e)||t[e]===n||(i[e]=t[e]);return S(i,t)}e.fn.delegate=function(t,e,n){return this.on(e,t,n)},e.fn.undelegate=function(t,e,n){return this.off(e,t,n)},e.fn.live=function(t,n){return e(document.body).delegate(this.selector,t,n),this},e.fn.die=function(t,n){return e(document.body).undelegate(this.selector,t,n),this},e.fn.on=function(t,i,a,u,c){var l,h,p=this;return t&&!o(t)?(e.each(t,(function(t,e){p.on(t,i,a,e,c)})),p):(o(i)||r(u)||!1===u||(u=a,a=i,i=n),u!==n&&!1!==a||(u=a,a=n),!1===u&&(u=C),p.each((function(n,r){c&&(l=function(t){return w(r,t.type,u),u.apply(this,arguments)}),i&&(h=function(t){var n,o=e(t.target).closest(i,r).get(0);if(o&&o!==r)return n=e.extend(E(t),{currentTarget:o,liveFired:r}),(l||u).apply(o,[n].concat(s.call(arguments,1)))}),y(r,t,u,a,i,h||l)})))},e.fn.off=function(t,i,s){var a=this;return t&&!o(t)?(e.each(t,(function(t,e){a.off(t,i,e)})),a):(o(i)||r(s)||!1===s||(s=i,i=n),!1===s&&(s=C),a.each((function(){w(this,t,s,i)})))},e.fn.trigger=function(t,n){return(t=o(t)||e.isPlainObject(t)?e.Event(t):S(t))._args=n,this.each((function(){t.type in l&&"function"==typeof this[t.type]?this[t.type]():"dispatchEvent"in this?this.dispatchEvent(t):e(this).triggerHandler(t,n)}))},e.fn.triggerHandler=function(t,n){var i,s;return this.each((function(r,a){(i=E(o(t)?e.Event(t):t))._args=n,i.target=a,e.each(f(a,t.type||t),(function(t,e){if(s=e.proxy(i),i.isImmediatePropagationStopped())return!1}))})),s},"focusin focusout focus blur load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select keydown keypress keyup error".split(" ").forEach((function(t){e.fn[t]=function(e){return 0 in arguments?this.bind(t,e):this.trigger(t)}})),e.Event=function(t,e){o(t)||(t=(e=t).type);var n=document.createEvent(u[t]||"Events"),i=!0;if(e)for(var s in e)"bubbles"==s?i=!!e[s]:n[s]=e[s];return n.initEvent(t,i,!0),S(n)}}(i),n=[],i.fn.remove=function(){return this.each((function(){this.parentNode&&("IMG"===this.tagName&&(n.push(this),this.src="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=",e&&clearTimeout(e),e=setTimeout((function(){n=[]}),6e4)),this.parentNode.removeChild(this))}))},function(t){var e={},n=t.fn.data,i=t.camelCase,s=t.expando="Zepto"+ +new Date,r=[];function o(r,o){var u=r[s],c=u&&e[u];if(void 0===o)return c||a(r);if(c){if(o in c)return c[o];var l=i(o);if(l in c)return c[l]}return n.call(t(r),o)}function a(n,r,o){var a=n[s]||(n[s]=++t.uuid),c=e[a]||(e[a]=u(n));return void 0!==r&&(c[i(r)]=o),c}function u(e){var n={};return t.each(e.attributes||r,(function(e,s){0==s.name.indexOf("data-")&&(n[i(s.name.replace("data-",""))]=t.zepto.deserializeValue(s.value))})),n}t.fn.data=function(e,n){return void 0===n?t.isPlainObject(e)?this.each((function(n,i){t.each(e,(function(t,e){a(i,t,e)}))})):0 in this?o(this[0],e):void 0:this.each((function(){a(this,e,n)}))},t.data=function(e,n,i){return t(e).data(n,i)},t.hasData=function(n){var i=n[s],r=i&&e[i];return!!r&&!t.isEmptyObject(r)},t.fn.removeData=function(n){return"string"==typeof n&&(n=n.split(/\s+/)),this.each((function(){var r=this[s],o=r&&e[r];o&&t.each(n||o,(function(t){delete o[n?i(this):t]}))}))},["remove","empty"].forEach((function(e){var n=t.fn[e];t.fn[e]=function(){var t=this.find("*");return"remove"===e&&(t=t.add(this)),t.removeData(),n.call(this)}}))}(i),i}(e)},8820:t=>{"use strict";var e={}.hasOwnProperty,n=/[ -,\.\/:-@\[-\^`\{-~]/,i=/[ -,\.\/:-@\[\]\^`\{-~]/,s=/(^|\\+)?(\\[A-F0-9]{1,6})\x20(?![a-fA-F0-9\x20])/g,r=function t(r,o){"single"!=(o=function(t,n){if(!t)return n;var i={};for(var s in n)i[s]=e.call(t,s)?t[s]:n[s];return i}(o,t.options)).quotes&&"double"!=o.quotes&&(o.quotes="single");for(var a="double"==o.quotes?'"':"'",u=o.isIdentifier,c=r.charAt(0),l="",h=0,p=r.length;h126){if(d>=55296&&d<=56319&&h{"use strict";var i,s,r,o=[n(5525),n(4785),n(8291),n(2709),n(2506),n(9176)],a=-1,u=[],c=!1;function l(){i&&s&&(i=!1,s.length?u=s.concat(u):a=-1,u.length&&h())}function h(){if(!i){c=!1,i=!0;for(var t=u.length,e=setTimeout(l);t;){for(s=u,u=[];s&&++a1)for(var n=1;n{"use strict";e.test=function(){return!n.g.setImmediate&&void 0!==n.g.MessageChannel},e.install=function(t){var e=new n.g.MessageChannel;return e.port1.onmessage=t,function(){e.port2.postMessage(0)}}},8291:(t,e,n)=>{"use strict";var i=n.g.MutationObserver||n.g.WebKitMutationObserver;e.test=function(){return i},e.install=function(t){var e=0,s=new i(t),r=n.g.document.createTextNode("");return s.observe(r,{characterData:!0}),function(){r.data=e=++e%2}}},4785:(t,e,n)=>{"use strict";e.test=function(){return"function"==typeof n.g.queueMicrotask},e.install=function(t){return function(){n.g.queueMicrotask(t)}}},2506:(t,e,n)=>{"use strict";e.test=function(){return"document"in n.g&&"onreadystatechange"in n.g.document.createElement("script")},e.install=function(t){return function(){var e=n.g.document.createElement("script");return e.onreadystatechange=function(){t(),e.onreadystatechange=null,e.parentNode.removeChild(e),e=null},n.g.document.documentElement.appendChild(e),t}}},9176:(t,e)=>{"use strict";e.test=function(){return!0},e.install=function(t){return function(){setTimeout(t,0)}}}}]); \ No newline at end of file diff --git a/assets/js/8443.ac831155.js.LICENSE.txt b/assets/js/8443.ac831155.js.LICENSE.txt new file mode 100644 index 000000000..4f7ccd8a7 --- /dev/null +++ b/assets/js/8443.ac831155.js.LICENSE.txt @@ -0,0 +1 @@ +/*! https://mths.be/cssesc v3.0.0 by @mathias */ diff --git a/assets/js/8605.012e1e77.js b/assets/js/8605.012e1e77.js new file mode 100644 index 000000000..d2800a00b --- /dev/null +++ b/assets/js/8605.012e1e77.js @@ -0,0 +1 @@ +(self.webpackChunknpy_notebook=self.webpackChunknpy_notebook||[]).push([[8605],{3905:(e,t,n)=>{"use strict";n.d(t,{Zo:()=>u,kt:()=>f});var o=n(7294);function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function c(e){for(var t=1;t=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var i=o.createContext({}),s=function(e){var t=o.useContext(i),n=t;return e&&(n="function"==typeof e?e(t):c(c({},t),e)),n},u=function(e){var t=s(e.components);return o.createElement(i.Provider,{value:t},e.children)},m="mdxType",d={inlineCode:"code",wrapper:function(e){var t=e.children;return o.createElement(o.Fragment,{},t)}},p=o.forwardRef((function(e,t){var n=e.components,r=e.mdxType,a=e.originalType,i=e.parentName,u=l(e,["components","mdxType","originalType","parentName"]),m=s(n),p=r,f=m["".concat(i,".").concat(p)]||m[p]||d[p]||a;return n?o.createElement(f,c(c({ref:t},u),{},{components:n})):o.createElement(f,c({ref:t},u))}));function f(e,t){var n=arguments,r=t&&t.mdxType;if("string"==typeof e||r){var a=n.length,c=new Array(a);c[0]=p;var l={};for(var i in t)hasOwnProperty.call(t,i)&&(l[i]=t[i]);l.originalType=e,l[m]="string"==typeof e?e:r,c[1]=l;for(var s=2;s{"use strict";n.d(t,{Z:()=>u});var o=n(7462),r=n(7294),a=n(6010),c=n(5999),l=n(6668),i=n(9960);const s={anchorWithStickyNavbar:"anchorWithStickyNavbar_LWe7",anchorWithHideOnScrollNavbar:"anchorWithHideOnScrollNavbar_WYt5"};function u(e){let{as:t,id:n,...u}=e;const{navbar:{hideOnScroll:m}}=(0,l.L)();if("h1"===t||!n)return r.createElement(t,(0,o.Z)({},u,{id:void 0}));const d=(0,c.I)({id:"theme.common.headingLinkTitle",message:"Direct link to {heading}",description:"Title for link to heading"},{heading:"string"==typeof u.children?u.children:n});return r.createElement(t,(0,o.Z)({},u,{className:(0,a.Z)("anchor",m?s.anchorWithHideOnScrollNavbar:s.anchorWithStickyNavbar,u.className),id:n}),u.children,r.createElement(i.Z,{className:"hash-link",to:`#${n}`,"aria-label":d,title:d},"\u200b"))}},864:(e,t,n)=>{"use strict";n.d(t,{Z:()=>ye});var o=n(7294),r=n(3905),a=n(7462),c=n(5742);var l=n(2389),i=n(6010),s=n(2949),u=n(6668);function m(){const{prism:e}=(0,u.L)(),{colorMode:t}=(0,s.I)(),n=e.theme,o=e.darkTheme||n;return"dark"===t?o:n}var d=n(5281),p=n(7594),f=n.n(p);const h=/title=(?["'])(?.*?)\1/,g=/\{(?<range>[\d,-]+)\}/,y={js:{start:"\\/\\/",end:""},jsBlock:{start:"\\/\\*",end:"\\*\\/"},jsx:{start:"\\{\\s*\\/\\*",end:"\\*\\/\\s*\\}"},bash:{start:"#",end:""},html:{start:"\x3c!--",end:"--\x3e"}};function v(e,t){const n=e.map((e=>{const{start:n,end:o}=y[e];return`(?:${n}\\s*(${t.flatMap((e=>[e.line,e.block?.start,e.block?.end].filter(Boolean))).join("|")})\\s*${o})`})).join("|");return new RegExp(`^\\s*(?:${n})\\s*$`)}function b(e,t){let n=e.replace(/\n$/,"");const{language:o,magicComments:r,metastring:a}=t;if(a&&g.test(a)){const e=a.match(g).groups.range;if(0===r.length)throw new Error(`A highlight range has been given in code block's metastring (\`\`\` ${a}), but no magic comment config is available. Docusaurus applies the first magic comment entry's className for metastring ranges.`);const t=r[0].className,o=f()(e).filter((e=>e>0)).map((e=>[e-1,[t]]));return{lineClassNames:Object.fromEntries(o),code:n}}if(void 0===o)return{lineClassNames:{},code:n};const c=function(e,t){switch(e){case"js":case"javascript":case"ts":case"typescript":return v(["js","jsBlock"],t);case"jsx":case"tsx":return v(["js","jsBlock","jsx"],t);case"html":return v(["js","jsBlock","html"],t);case"python":case"py":case"bash":return v(["bash"],t);case"markdown":case"md":return v(["html","jsx","bash"],t);default:return v(Object.keys(y),t)}}(o,r),l=n.split("\n"),i=Object.fromEntries(r.map((e=>[e.className,{start:0,range:""}]))),s=Object.fromEntries(r.filter((e=>e.line)).map((e=>{let{className:t,line:n}=e;return[n,t]}))),u=Object.fromEntries(r.filter((e=>e.block)).map((e=>{let{className:t,block:n}=e;return[n.start,t]}))),m=Object.fromEntries(r.filter((e=>e.block)).map((e=>{let{className:t,block:n}=e;return[n.end,t]})));for(let p=0;p<l.length;){const e=l[p].match(c);if(!e){p+=1;continue}const t=e.slice(1).find((e=>void 0!==e));s[t]?i[s[t]].range+=`${p},`:u[t]?i[u[t]].start=p:m[t]&&(i[m[t]].range+=`${i[m[t]].start}-${p-1},`),l.splice(p,1)}n=l.join("\n");const d={};return Object.entries(i).forEach((e=>{let[t,{range:n}]=e;f()(n).forEach((e=>{d[e]??=[],d[e].push(t)}))})),{lineClassNames:d,code:n}}const E={codeBlockContainer:"codeBlockContainer_Ckt0"};function k(e){let{as:t,...n}=e;const r=function(e){const t={color:"--prism-color",backgroundColor:"--prism-background-color"},n={};return Object.entries(e.plain).forEach((e=>{let[o,r]=e;const a=t[o];a&&"string"==typeof r&&(n[a]=r)})),n}(m());return o.createElement(t,(0,a.Z)({},n,{style:r,className:(0,i.Z)(n.className,E.codeBlockContainer,d.k.common.codeBlock)}))}const N={codeBlockContent:"codeBlockContent_biex",codeBlockTitle:"codeBlockTitle_Ktv7",codeBlock:"codeBlock_bY9V",codeBlockStandalone:"codeBlockStandalone_MEMb",codeBlockLines:"codeBlockLines_e6Vv",codeBlockLinesWithNumbering:"codeBlockLinesWithNumbering_o6Pm",buttonGroup:"buttonGroup__atx"};function C(e){let{children:t,className:n}=e;return o.createElement(k,{as:"pre",tabIndex:0,className:(0,i.Z)(N.codeBlockStandalone,"thin-scrollbar",n)},o.createElement("code",{className:N.codeBlockLines},t))}var L=n(902);const w={attributes:!0,characterData:!0,childList:!0,subtree:!0};function B(e,t){const[n,r]=(0,o.useState)(),a=(0,o.useCallback)((()=>{r(e.current?.closest("[role=tabpanel][hidden]"))}),[e,r]);(0,o.useEffect)((()=>{a()}),[a]),function(e,t,n){void 0===n&&(n=w);const r=(0,L.zX)(t),a=(0,L.Ql)(n);(0,o.useEffect)((()=>{const t=new MutationObserver(r);return e&&t.observe(e,a),()=>t.disconnect()}),[e,r,a])}(n,(e=>{e.forEach((e=>{"attributes"===e.type&&"hidden"===e.attributeName&&(t(),a())}))}),{attributes:!0,characterData:!1,childList:!1,subtree:!1})}const x={plain:{backgroundColor:"#2a2734",color:"#9a86fd"},styles:[{types:["comment","prolog","doctype","cdata","punctuation"],style:{color:"#6c6783"}},{types:["namespace"],style:{opacity:.7}},{types:["tag","operator","number"],style:{color:"#e09142"}},{types:["property","function"],style:{color:"#9a86fd"}},{types:["tag-id","selector","atrule-id"],style:{color:"#eeebff"}},{types:["attr-name"],style:{color:"#c4b9fe"}},{types:["boolean","string","entity","url","attr-value","keyword","control","directive","unit","statement","regex","atrule","placeholder","variable"],style:{color:"#ffcc99"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"#c4b9fe"}}]};var T={Prism:n(7410).Z,theme:x};function O(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Z(){return Z=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Z.apply(this,arguments)}var j=/\r\n|\r|\n/,_=function(e){0===e.length?e.push({types:["plain"],content:"\n",empty:!0}):1===e.length&&""===e[0].content&&(e[0].content="\n",e[0].empty=!0)},H=function(e,t){var n=e.length;return n>0&&e[n-1]===t?e:e.concat(t)};function S(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&-1===t.indexOf(o)&&(n[o]=e[o]);return n}var A=function(e){function t(){for(var t=this,n=[],o=arguments.length;o--;)n[o]=arguments[o];e.apply(this,n),O(this,"getThemeDict",(function(e){if(void 0!==t.themeDict&&e.theme===t.prevTheme&&e.language===t.prevLanguage)return t.themeDict;t.prevTheme=e.theme,t.prevLanguage=e.language;var n=e.theme?function(e,t){var n=e.plain,o=Object.create(null),r=e.styles.reduce((function(e,n){var o=n.languages,r=n.style;return o&&!o.includes(t)||n.types.forEach((function(t){var n=Z({},e[t],r);e[t]=n})),e}),o);return r.root=n,r.plain=Z({},n,{backgroundColor:null}),r}(e.theme,e.language):void 0;return t.themeDict=n})),O(this,"getLineProps",(function(e){var n=e.key,o=e.className,r=e.style,a=Z({},S(e,["key","className","style","line"]),{className:"token-line",style:void 0,key:void 0}),c=t.getThemeDict(t.props);return void 0!==c&&(a.style=c.plain),void 0!==r&&(a.style=void 0!==a.style?Z({},a.style,r):r),void 0!==n&&(a.key=n),o&&(a.className+=" "+o),a})),O(this,"getStyleForToken",(function(e){var n=e.types,o=e.empty,r=n.length,a=t.getThemeDict(t.props);if(void 0!==a){if(1===r&&"plain"===n[0])return o?{display:"inline-block"}:void 0;if(1===r&&!o)return a[n[0]];var c=o?{display:"inline-block"}:{},l=n.map((function(e){return a[e]}));return Object.assign.apply(Object,[c].concat(l))}})),O(this,"getTokenProps",(function(e){var n=e.key,o=e.className,r=e.style,a=e.token,c=Z({},S(e,["key","className","style","token"]),{className:"token "+a.types.join(" "),children:a.content,style:t.getStyleForToken(a),key:void 0});return void 0!==r&&(c.style=void 0!==c.style?Z({},c.style,r):r),void 0!==n&&(c.key=n),o&&(c.className+=" "+o),c})),O(this,"tokenize",(function(e,t,n,o){var r={code:t,grammar:n,language:o,tokens:[]};e.hooks.run("before-tokenize",r);var a=r.tokens=e.tokenize(r.code,r.grammar,r.language);return e.hooks.run("after-tokenize",r),a}))}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.render=function(){var e=this.props,t=e.Prism,n=e.language,o=e.code,r=e.children,a=this.getThemeDict(this.props),c=t.languages[n];return r({tokens:function(e){for(var t=[[]],n=[e],o=[0],r=[e.length],a=0,c=0,l=[],i=[l];c>-1;){for(;(a=o[c]++)<r[c];){var s=void 0,u=t[c],m=n[c][a];if("string"==typeof m?(u=c>0?u:["plain"],s=m):(u=H(u,m.type),m.alias&&(u=H(u,m.alias)),s=m.content),"string"==typeof s){var d=s.split(j),p=d.length;l.push({types:u,content:d[0]});for(var f=1;f<p;f++)_(l),i.push(l=[]),l.push({types:u,content:d[f]})}else c++,t.push(u),n.push(s),o.push(0),r.push(s.length)}c--,t.pop(),n.pop(),o.pop(),r.pop()}return _(l),i}(void 0!==c?this.tokenize(t,o,c,n):[o]),className:"prism-code language-"+n,style:void 0!==a?a.root:{},getLineProps:this.getLineProps,getTokenProps:this.getTokenProps})},t}(o.Component);const I=A,P={codeLine:"codeLine_lJS_",codeLineNumber:"codeLineNumber_Tfdd",codeLineContent:"codeLineContent_feaV"};function z(e){let{line:t,classNames:n,showLineNumbers:r,getLineProps:c,getTokenProps:l}=e;1===t.length&&"\n"===t[0].content&&(t[0].content="");const s=c({line:t,className:(0,i.Z)(n,r&&P.codeLine)}),u=t.map(((e,t)=>o.createElement("span",(0,a.Z)({key:t},l({token:e,key:t})))));return o.createElement("span",s,r?o.createElement(o.Fragment,null,o.createElement("span",{className:P.codeLineNumber}),o.createElement("span",{className:P.codeLineContent},u)):u,o.createElement("br",null))}var M=n(5999);function D(e){return o.createElement("svg",(0,a.Z)({viewBox:"0 0 24 24"},e),o.createElement("path",{fill:"currentColor",d:"M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z"}))}function W(e){return o.createElement("svg",(0,a.Z)({viewBox:"0 0 24 24"},e),o.createElement("path",{fill:"currentColor",d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"}))}const R={copyButtonCopied:"copyButtonCopied_obH4",copyButtonIcons:"copyButtonIcons_eSgA",copyButtonIcon:"copyButtonIcon_y97N",copyButtonSuccessIcon:"copyButtonSuccessIcon_LjdS"};function V(e){let{code:t,className:n}=e;const[r,a]=(0,o.useState)(!1),c=(0,o.useRef)(void 0),l=(0,o.useCallback)((()=>{!function(e,{target:t=document.body}={}){if("string"!=typeof e)throw new TypeError(`Expected parameter \`text\` to be a \`string\`, got \`${typeof e}\`.`);const n=document.createElement("textarea"),o=document.activeElement;n.value=e,n.setAttribute("readonly",""),n.style.contain="strict",n.style.position="absolute",n.style.left="-9999px",n.style.fontSize="12pt";const r=document.getSelection(),a=r.rangeCount>0&&r.getRangeAt(0);t.append(n),n.select(),n.selectionStart=0,n.selectionEnd=e.length;let c=!1;try{c=document.execCommand("copy")}catch{}n.remove(),a&&(r.removeAllRanges(),r.addRange(a)),o&&o.focus()}(t),a(!0),c.current=window.setTimeout((()=>{a(!1)}),1e3)}),[t]);return(0,o.useEffect)((()=>()=>window.clearTimeout(c.current)),[]),o.createElement("button",{type:"button","aria-label":r?(0,M.I)({id:"theme.CodeBlock.copied",message:"Copied",description:"The copied button label on code blocks"}):(0,M.I)({id:"theme.CodeBlock.copyButtonAriaLabel",message:"Copy code to clipboard",description:"The ARIA label for copy code blocks button"}),title:(0,M.I)({id:"theme.CodeBlock.copy",message:"Copy",description:"The copy button label on code blocks"}),className:(0,i.Z)("clean-btn",n,R.copyButton,r&&R.copyButtonCopied),onClick:l},o.createElement("span",{className:R.copyButtonIcons,"aria-hidden":"true"},o.createElement(D,{className:R.copyButtonIcon}),o.createElement(W,{className:R.copyButtonSuccessIcon})))}function $(e){return o.createElement("svg",(0,a.Z)({viewBox:"0 0 24 24"},e),o.createElement("path",{fill:"currentColor",d:"M4 19h6v-2H4v2zM20 5H4v2h16V5zm-3 6H4v2h13.25c1.1 0 2 .9 2 2s-.9 2-2 2H15v-2l-3 3l3 3v-2h2c2.21 0 4-1.79 4-4s-1.79-4-4-4z"}))}const q={wordWrapButtonIcon:"wordWrapButtonIcon_Bwma",wordWrapButtonEnabled:"wordWrapButtonEnabled_EoeP"};function F(e){let{className:t,onClick:n,isEnabled:r}=e;const a=(0,M.I)({id:"theme.CodeBlock.wordWrapToggle",message:"Toggle word wrap",description:"The title attribute for toggle word wrapping button of code block lines"});return o.createElement("button",{type:"button",onClick:n,className:(0,i.Z)("clean-btn",t,r&&q.wordWrapButtonEnabled),"aria-label":a,title:a},o.createElement($,{className:q.wordWrapButtonIcon,"aria-hidden":"true"}))}function U(e){let{children:t,className:n="",metastring:r,title:c,showLineNumbers:l,language:s}=e;const{prism:{defaultLanguage:d,magicComments:p}}=(0,u.L)(),f=s??function(e){const t=e.split(" ").find((e=>e.startsWith("language-")));return t?.replace(/language-/,"")}(n)??d,g=m(),y=function(){const[e,t]=(0,o.useState)(!1),[n,r]=(0,o.useState)(!1),a=(0,o.useRef)(null),c=(0,o.useCallback)((()=>{const n=a.current.querySelector("code");e?n.removeAttribute("style"):(n.style.whiteSpace="pre-wrap",n.style.overflowWrap="anywhere"),t((e=>!e))}),[a,e]),l=(0,o.useCallback)((()=>{const{scrollWidth:e,clientWidth:t}=a.current,n=e>t||a.current.querySelector("code").hasAttribute("style");r(n)}),[a]);return B(a,l),(0,o.useEffect)((()=>{l()}),[e,l]),(0,o.useEffect)((()=>(window.addEventListener("resize",l,{passive:!0}),()=>{window.removeEventListener("resize",l)})),[l]),{codeBlockRef:a,isEnabled:e,isCodeScrollable:n,toggle:c}}(),v=function(e){return e?.match(h)?.groups.title??""}(r)||c,{lineClassNames:E,code:C}=b(t,{metastring:r,language:f,magicComments:p}),L=l??function(e){return Boolean(e?.includes("showLineNumbers"))}(r);return o.createElement(k,{as:"div",className:(0,i.Z)(n,f&&!n.includes(`language-${f}`)&&`language-${f}`)},v&&o.createElement("div",{className:N.codeBlockTitle},v),o.createElement("div",{className:N.codeBlockContent},o.createElement(I,(0,a.Z)({},T,{theme:g,code:C,language:f??"text"}),(e=>{let{className:t,tokens:n,getLineProps:r,getTokenProps:a}=e;return o.createElement("pre",{tabIndex:0,ref:y.codeBlockRef,className:(0,i.Z)(t,N.codeBlock,"thin-scrollbar")},o.createElement("code",{className:(0,i.Z)(N.codeBlockLines,L&&N.codeBlockLinesWithNumbering)},n.map(((e,t)=>o.createElement(z,{key:t,line:e,getLineProps:r,getTokenProps:a,classNames:E[t],showLineNumbers:L})))))})),o.createElement("div",{className:N.buttonGroup},(y.isEnabled||y.isCodeScrollable)&&o.createElement(F,{className:N.codeButton,onClick:()=>y.toggle(),isEnabled:y.isEnabled}),o.createElement(V,{className:N.codeButton,code:C}))))}function G(e){let{children:t,...n}=e;const r=(0,l.Z)(),c=function(e){return o.Children.toArray(e).some((e=>(0,o.isValidElement)(e)))?e:Array.isArray(e)?e.join(""):e}(t),i="string"==typeof c?U:C;return o.createElement(i,(0,a.Z)({key:String(r)},n),c)}var Y=n(9960);var Q=n(6043);const X={details:"details_lb9f",isBrowser:"isBrowser_bmU9",collapsibleContent:"collapsibleContent_i85q"};function J(e){return!!e&&("SUMMARY"===e.tagName||J(e.parentElement))}function K(e,t){return!!e&&(e===t||K(e.parentElement,t))}function ee(e){let{summary:t,children:n,...r}=e;const c=(0,l.Z)(),s=(0,o.useRef)(null),{collapsed:u,setCollapsed:m}=(0,Q.u)({initialState:!r.open}),[d,p]=(0,o.useState)(r.open),f=o.isValidElement(t)?t:o.createElement("summary",null,t??"Details");return o.createElement("details",(0,a.Z)({},r,{ref:s,open:d,"data-collapsed":u,className:(0,i.Z)(X.details,c&&X.isBrowser,r.className),onMouseDown:e=>{J(e.target)&&e.detail>1&&e.preventDefault()},onClick:e=>{e.stopPropagation();const t=e.target;J(t)&&K(t,s.current)&&(e.preventDefault(),u?(m(!1),p(!0)):m(!0))}}),f,o.createElement(Q.z,{lazy:!1,collapsed:u,disableSSRStyle:!0,onCollapseTransitionEnd:e=>{m(e),p(!e)}},o.createElement("div",{className:X.collapsibleContent},n)))}const te={details:"details_b_Ee"},ne="alert alert--info";function oe(e){let{...t}=e;return o.createElement(ee,(0,a.Z)({},t,{className:(0,i.Z)(ne,te.details,t.className)}))}var re=n(2503);function ae(e){return o.createElement(re.Z,e)}const ce={containsTaskList:"containsTaskList_mC6p"};function le(e){if(void 0!==e)return(0,i.Z)(e,e?.includes("contains-task-list")&&ce.containsTaskList)}const ie={img:"img_ev3q"};const se="admonition_LlT9",ue="admonitionHeading_tbUL",me="admonitionIcon_kALy",de="admonitionContent_S0QG";const pe={note:{infimaClassName:"secondary",iconComponent:function(){return o.createElement("svg",{viewBox:"0 0 14 16"},o.createElement("path",{fillRule:"evenodd",d:"M6.3 5.69a.942.942 0 0 1-.28-.7c0-.28.09-.52.28-.7.19-.18.42-.28.7-.28.28 0 .52.09.7.28.18.19.28.42.28.7 0 .28-.09.52-.28.7a1 1 0 0 1-.7.3c-.28 0-.52-.11-.7-.3zM8 7.99c-.02-.25-.11-.48-.31-.69-.2-.19-.42-.3-.69-.31H6c-.27.02-.48.13-.69.31-.2.2-.3.44-.31.69h1v3c.02.27.11.5.31.69.2.2.42.31.69.31h1c.27 0 .48-.11.69-.31.2-.19.3-.42.31-.69H8V7.98v.01zM7 2.3c-3.14 0-5.7 2.54-5.7 5.68 0 3.14 2.56 5.7 5.7 5.7s5.7-2.55 5.7-5.7c0-3.15-2.56-5.69-5.7-5.69v.01zM7 .98c3.86 0 7 3.14 7 7s-3.14 7-7 7-7-3.12-7-7 3.14-7 7-7z"}))},label:o.createElement(M.Z,{id:"theme.admonition.note",description:"The default label used for the Note admonition (:::note)"},"note")},tip:{infimaClassName:"success",iconComponent:function(){return o.createElement("svg",{viewBox:"0 0 12 16"},o.createElement("path",{fillRule:"evenodd",d:"M6.5 0C3.48 0 1 2.19 1 5c0 .92.55 2.25 1 3 1.34 2.25 1.78 2.78 2 4v1h5v-1c.22-1.22.66-1.75 2-4 .45-.75 1-2.08 1-3 0-2.81-2.48-5-5.5-5zm3.64 7.48c-.25.44-.47.8-.67 1.11-.86 1.41-1.25 2.06-1.45 3.23-.02.05-.02.11-.02.17H5c0-.06 0-.13-.02-.17-.2-1.17-.59-1.83-1.45-3.23-.2-.31-.42-.67-.67-1.11C2.44 6.78 2 5.65 2 5c0-2.2 2.02-4 4.5-4 1.22 0 2.36.42 3.22 1.19C10.55 2.94 11 3.94 11 5c0 .66-.44 1.78-.86 2.48zM4 14h5c-.23 1.14-1.3 2-2.5 2s-2.27-.86-2.5-2z"}))},label:o.createElement(M.Z,{id:"theme.admonition.tip",description:"The default label used for the Tip admonition (:::tip)"},"tip")},danger:{infimaClassName:"danger",iconComponent:function(){return o.createElement("svg",{viewBox:"0 0 12 16"},o.createElement("path",{fillRule:"evenodd",d:"M5.05.31c.81 2.17.41 3.38-.52 4.31C3.55 5.67 1.98 6.45.9 7.98c-1.45 2.05-1.7 6.53 3.53 7.7-2.2-1.16-2.67-4.52-.3-6.61-.61 2.03.53 3.33 1.94 2.86 1.39-.47 2.3.53 2.27 1.67-.02.78-.31 1.44-1.13 1.81 3.42-.59 4.78-3.42 4.78-5.56 0-2.84-2.53-3.22-1.25-5.61-1.52.13-2.03 1.13-1.89 2.75.09 1.08-1.02 1.8-1.86 1.33-.67-.41-.66-1.19-.06-1.78C8.18 5.31 8.68 2.45 5.05.32L5.03.3l.02.01z"}))},label:o.createElement(M.Z,{id:"theme.admonition.danger",description:"The default label used for the Danger admonition (:::danger)"},"danger")},info:{infimaClassName:"info",iconComponent:function(){return o.createElement("svg",{viewBox:"0 0 14 16"},o.createElement("path",{fillRule:"evenodd",d:"M7 2.3c3.14 0 5.7 2.56 5.7 5.7s-2.56 5.7-5.7 5.7A5.71 5.71 0 0 1 1.3 8c0-3.14 2.56-5.7 5.7-5.7zM7 1C3.14 1 0 4.14 0 8s3.14 7 7 7 7-3.14 7-7-3.14-7-7-7zm1 3H6v5h2V4zm0 6H6v2h2v-2z"}))},label:o.createElement(M.Z,{id:"theme.admonition.info",description:"The default label used for the Info admonition (:::info)"},"info")},caution:{infimaClassName:"warning",iconComponent:function(){return o.createElement("svg",{viewBox:"0 0 16 16"},o.createElement("path",{fillRule:"evenodd",d:"M8.893 1.5c-.183-.31-.52-.5-.887-.5s-.703.19-.886.5L.138 13.499a.98.98 0 0 0 0 1.001c.193.31.53.501.886.501h13.964c.367 0 .704-.19.877-.5a1.03 1.03 0 0 0 .01-1.002L8.893 1.5zm.133 11.497H6.987v-2.003h2.039v2.003zm0-3.004H6.987V5.987h2.039v4.006z"}))},label:o.createElement(M.Z,{id:"theme.admonition.caution",description:"The default label used for the Caution admonition (:::caution)"},"caution")}},fe={secondary:"note",important:"info",success:"tip",warning:"danger"};function he(e){const{mdxAdmonitionTitle:t,rest:n}=function(e){const t=o.Children.toArray(e),n=t.find((e=>o.isValidElement(e)&&"mdxAdmonitionTitle"===e.props?.mdxType)),r=o.createElement(o.Fragment,null,t.filter((e=>e!==n)));return{mdxAdmonitionTitle:n,rest:r}}(e.children);return{...e,title:e.title??t,children:n}}const ge={head:function(e){const t=o.Children.map(e.children,(e=>o.isValidElement(e)?function(e){if(e.props?.mdxType&&e.props.originalType){const{mdxType:t,originalType:n,...r}=e.props;return o.createElement(e.props.originalType,r)}return e}(e):e));return o.createElement(c.Z,e,t)},code:function(e){const t=["a","abbr","b","br","button","cite","code","del","dfn","em","i","img","input","ins","kbd","label","object","output","q","ruby","s","small","span","strong","sub","sup","time","u","var","wbr"];return o.Children.toArray(e.children).every((e=>"string"==typeof e&&!e.includes("\n")||(0,o.isValidElement)(e)&&t.includes(e.props?.mdxType)))?o.createElement("code",e):o.createElement(G,e)},a:function(e){return o.createElement(Y.Z,e)},pre:function(e){return o.createElement(G,(0,o.isValidElement)(e.children)&&"code"===e.children.props?.originalType?e.children.props:{...e})},details:function(e){const t=o.Children.toArray(e.children),n=t.find((e=>o.isValidElement(e)&&"summary"===e.props?.mdxType)),r=o.createElement(o.Fragment,null,t.filter((e=>e!==n)));return o.createElement(oe,(0,a.Z)({},e,{summary:n}),r)},ul:function(e){return o.createElement("ul",(0,a.Z)({},e,{className:le(e.className)}))},img:function(e){return o.createElement("img",(0,a.Z)({loading:"lazy"},e,{className:(t=e.className,(0,i.Z)(t,ie.img))}));var t},h1:e=>o.createElement(ae,(0,a.Z)({as:"h1"},e)),h2:e=>o.createElement(ae,(0,a.Z)({as:"h2"},e)),h3:e=>o.createElement(ae,(0,a.Z)({as:"h3"},e)),h4:e=>o.createElement(ae,(0,a.Z)({as:"h4"},e)),h5:e=>o.createElement(ae,(0,a.Z)({as:"h5"},e)),h6:e=>o.createElement(ae,(0,a.Z)({as:"h6"},e)),admonition:function(e){const{children:t,type:n,title:r,icon:a}=he(e),c=function(e){const t=fe[e]??e,n=pe[t];return n||(console.warn(`No admonition config found for admonition type "${t}". Using Info as fallback.`),pe.info)}(n),l=r??c.label,{iconComponent:s}=c,u=a??o.createElement(s,null);return o.createElement("div",{className:(0,i.Z)(d.k.common.admonition,d.k.common.admonitionType(e.type),"alert",`alert--${c.infimaClassName}`,se)},o.createElement("div",{className:ue},o.createElement("span",{className:me},u),l),o.createElement("div",{className:de},t))},mermaid:()=>null};function ye(e){let{children:t}=e;return o.createElement(r.Zo,{components:ge},t)}},3743:(e,t,n)=>{"use strict";n.d(t,{Z:()=>f});var o=n(7462),r=n(7294),a=n(6668);function c(e){const t=e.map((e=>({...e,parentIndex:-1,children:[]}))),n=Array(7).fill(-1);t.forEach(((e,t)=>{const o=n.slice(2,e.level);e.parentIndex=Math.max(...o),n[e.level]=t}));const o=[];return t.forEach((e=>{const{parentIndex:n,...r}=e;n>=0?t[n].children.push(r):o.push(r)})),o}function l(e){let{toc:t,minHeadingLevel:n,maxHeadingLevel:o}=e;return t.flatMap((e=>{const t=l({toc:e.children,minHeadingLevel:n,maxHeadingLevel:o});return function(e){return e.level>=n&&e.level<=o}(e)?[{...e,children:t}]:t}))}function i(e){const t=e.getBoundingClientRect();return t.top===t.bottom?i(e.parentNode):t}function s(e,t){let{anchorTopOffset:n}=t;const o=e.find((e=>i(e).top>=n));if(o){return function(e){return e.top>0&&e.bottom<window.innerHeight/2}(i(o))?o:e[e.indexOf(o)-1]??null}return e[e.length-1]??null}function u(){const e=(0,r.useRef)(0),{navbar:{hideOnScroll:t}}=(0,a.L)();return(0,r.useEffect)((()=>{e.current=t?0:document.querySelector(".navbar").clientHeight}),[t]),e}function m(e){const t=(0,r.useRef)(void 0),n=u();(0,r.useEffect)((()=>{if(!e)return()=>{};const{linkClassName:o,linkActiveClassName:r,minHeadingLevel:a,maxHeadingLevel:c}=e;function l(){const e=function(e){return Array.from(document.getElementsByClassName(e))}(o),l=function(e){let{minHeadingLevel:t,maxHeadingLevel:n}=e;const o=[];for(let r=t;r<=n;r+=1)o.push(`h${r}.anchor`);return Array.from(document.querySelectorAll(o.join()))}({minHeadingLevel:a,maxHeadingLevel:c}),i=s(l,{anchorTopOffset:n.current}),u=e.find((e=>i&&i.id===function(e){return decodeURIComponent(e.href.substring(e.href.indexOf("#")+1))}(e)));e.forEach((e=>{!function(e,n){n?(t.current&&t.current!==e&&t.current.classList.remove(r),e.classList.add(r),t.current=e):e.classList.remove(r)}(e,e===u)}))}return document.addEventListener("scroll",l),document.addEventListener("resize",l),l(),()=>{document.removeEventListener("scroll",l),document.removeEventListener("resize",l)}}),[e,n])}function d(e){let{toc:t,className:n,linkClassName:o,isChild:a}=e;return t.length?r.createElement("ul",{className:a?void 0:n},t.map((e=>r.createElement("li",{key:e.id},r.createElement("a",{href:`#${e.id}`,className:o??void 0,dangerouslySetInnerHTML:{__html:e.value}}),r.createElement(d,{isChild:!0,toc:e.children,className:n,linkClassName:o}))))):null}const p=r.memo(d);function f(e){let{toc:t,className:n="table-of-contents table-of-contents__left-border",linkClassName:i="table-of-contents__link",linkActiveClassName:s,minHeadingLevel:u,maxHeadingLevel:d,...f}=e;const h=(0,a.L)(),g=u??h.tableOfContents.minHeadingLevel,y=d??h.tableOfContents.maxHeadingLevel,v=function(e){let{toc:t,minHeadingLevel:n,maxHeadingLevel:o}=e;return(0,r.useMemo)((()=>l({toc:c(t),minHeadingLevel:n,maxHeadingLevel:o})),[t,n,o])}({toc:t,minHeadingLevel:g,maxHeadingLevel:y});return m((0,r.useMemo)((()=>{if(i&&s)return{linkClassName:i,linkActiveClassName:s,minHeadingLevel:g,maxHeadingLevel:y}}),[i,s,g,y])),r.createElement(p,(0,o.Z)({toc:v,className:n,linkClassName:i},f))}},9407:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var o=n(7462),r=n(7294),a=n(6010),c=n(3743);const l={tableOfContents:"tableOfContents_bqdL",docItemContainer:"docItemContainer_F8PC"},i="table-of-contents__link toc-highlight",s="table-of-contents__link--active";function u(e){let{className:t,...n}=e;return r.createElement("div",{className:(0,a.Z)(l.tableOfContents,"thin-scrollbar",t)},r.createElement(c.Z,(0,o.Z)({},n,{linkClassName:i,linkActiveClassName:s})))}},7594:(e,t)=>{function n(e){let t,n=[];for(let o of e.split(",").map((e=>e.trim())))if(/^-?\d+$/.test(o))n.push(parseInt(o,10));else if(t=o.match(/^(-?\d+)(-|\.\.\.?|\u2025|\u2026|\u22EF)(-?\d+)$/)){let[e,o,r,a]=t;if(o&&a){o=parseInt(o),a=parseInt(a);const e=o<a?1:-1;"-"!==r&&".."!==r&&"\u2025"!==r||(a+=e);for(let t=o;t!==a;t+=e)n.push(t)}}return n}t.default=n,e.exports=n}}]); \ No newline at end of file diff --git a/assets/js/86a892ec.1c9a8ffe.js b/assets/js/86a892ec.1c9a8ffe.js new file mode 100644 index 000000000..95790a6f4 --- /dev/null +++ b/assets/js/86a892ec.1c9a8ffe.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunknpy_notebook=self.webpackChunknpy_notebook||[]).push([[8175],{3905:(a,e,t)=>{t.d(e,{Zo:()=>o,kt:()=>h});var n=t(7294);function s(a,e,t){return e in a?Object.defineProperty(a,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):a[e]=t,a}function m(a,e){var t=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable}))),t.push.apply(t,n)}return t}function p(a){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?m(Object(t),!0).forEach((function(e){s(a,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(t)):m(Object(t)).forEach((function(e){Object.defineProperty(a,e,Object.getOwnPropertyDescriptor(t,e))}))}return a}function r(a,e){if(null==a)return{};var t,n,s=function(a,e){if(null==a)return{};var t,n,s={},m=Object.keys(a);for(n=0;n<m.length;n++)t=m[n],e.indexOf(t)>=0||(s[t]=a[t]);return s}(a,e);if(Object.getOwnPropertySymbols){var m=Object.getOwnPropertySymbols(a);for(n=0;n<m.length;n++)t=m[n],e.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(a,t)&&(s[t]=a[t])}return s}var l=n.createContext({}),i=function(a){var e=n.useContext(l),t=e;return a&&(t="function"==typeof a?a(e):p(p({},e),a)),t},o=function(a){var e=i(a.components);return n.createElement(l.Provider,{value:e},a.children)},N="mdxType",k={inlineCode:"code",wrapper:function(a){var e=a.children;return n.createElement(n.Fragment,{},e)}},c=n.forwardRef((function(a,e){var t=a.components,s=a.mdxType,m=a.originalType,l=a.parentName,o=r(a,["components","mdxType","originalType","parentName"]),N=i(t),c=s,h=N["".concat(l,".").concat(c)]||N[c]||k[c]||m;return t?n.createElement(h,p(p({ref:e},o),{},{components:t})):n.createElement(h,p({ref:e},o))}));function h(a,e){var t=arguments,s=e&&e.mdxType;if("string"==typeof a||s){var m=t.length,p=new Array(m);p[0]=c;var r={};for(var l in e)hasOwnProperty.call(e,l)&&(r[l]=e[l]);r.originalType=a,r[N]="string"==typeof a?a:s,p[1]=r;for(var i=2;i<m;i++)p[i]=t[i];return n.createElement.apply(null,p)}return n.createElement.apply(null,t)}c.displayName="MDXCreateElement"},4362:(a,e,t)=>{t.r(e),t.d(e,{assets:()=>l,contentTitle:()=>p,default:()=>k,frontMatter:()=>m,metadata:()=>r,toc:()=>i});var n=t(7462),s=(t(7294),t(3905));const m={},p="\u672c\u79d1\u6bd5\u4e1a\u8bba\u6587\uff1a\u57fa\u4e8e Prompt Learning \u7684\u89c6\u89c9-\u8bed\u8a00\u5927\u6a21\u578b\u5728\u56fe\u50cf\u751f\u6210\u4e2d\u7684\u5e94\u7528\u4e0e\u7814\u7a76",r={unversionedId:"Deep-Learning/\u5927\u6a21\u578b/Prompt Learning/Undergraduate-Dissertation",id:"Deep-Learning/\u5927\u6a21\u578b/Prompt Learning/Undergraduate-Dissertation",title:"\u672c\u79d1\u6bd5\u4e1a\u8bba\u6587\uff1a\u57fa\u4e8e Prompt Learning \u7684\u89c6\u89c9-\u8bed\u8a00\u5927\u6a21\u578b\u5728\u56fe\u50cf\u751f\u6210\u4e2d\u7684\u5e94\u7528\u4e0e\u7814\u7a76",description:"\u672c\u7bc7\u8bba\u6587\u4e3b\u8981\u57fa\u4e8e IPL \u7684\u601d\u60f3\u5b9e\u73b0\u3002\u672c\u4ed3\u5e93\u5927\u90e8\u5206\u4ece IPL-Zero-Shot-Generative-Model-Adaptation fork \u800c\u6765\u5e76\u505a\u51fa\u4e86\u4e00\u5b9a\u4fee\u6539\u3002",source:"@site/docs/Deep-Learning/5-\u5927\u6a21\u578b/Prompt Learning/1-Undergraduate-Dissertation.md",sourceDirName:"Deep-Learning/5-\u5927\u6a21\u578b/Prompt Learning",slug:"/Deep-Learning/\u5927\u6a21\u578b/Prompt Learning/Undergraduate-Dissertation",permalink:"/docs/Deep-Learning/\u5927\u6a21\u578b/Prompt Learning/Undergraduate-Dissertation",draft:!1,tags:[],version:"current",sidebarPosition:1,frontMatter:{},sidebar:"deep_learning",previous:{title:"\u6269\u6563\u6a21\u578b\uff08Diffusion Model\uff09",permalink:"/docs/Deep-Learning/\u5927\u6a21\u578b/Diffusion-Model"},next:{title:"NeurIPS 2017: Attention Is All You Need",permalink:"/docs/Deep-Learning/\u8bba\u6587\u7b14\u8bb0/Attention Is All You Need"}},l={},i=[{value:"\u4f9d\u8d56",id:"\u4f9d\u8d56",level:2},{value:"\u521b\u5efa Anaconda \u865a\u62df\u73af\u5883",id:"\u521b\u5efa-anaconda-\u865a\u62df\u73af\u5883",level:3},{value:"\u5b89\u88c5\u4f9d\u8d56",id:"\u5b89\u88c5\u4f9d\u8d56",level:3},{value:"\u4e0b\u8f7d\u9884\u8bad\u7ec3\u751f\u6210\u5668",id:"\u4e0b\u8f7d\u9884\u8bad\u7ec3\u751f\u6210\u5668",level:3},{value:"\u6982\u8ff0",id:"\u6982\u8ff0",level:2},{value:"\u6280\u672f\u7ec6\u8282",id:"\u6280\u672f\u7ec6\u8282",level:2},{value:"prompts \u7684\u521d\u59cb\u5316",id:"prompts-\u7684\u521d\u59cb\u5316",level:3},{value:"prompts \u7684 tokenize \u4e0e embedding",id:"prompts-\u7684-tokenize-\u4e0e-embedding",level:3},{value:"compute_text_features \u7684\u5b9e\u73b0\u7ec6\u8282",id:"compute_text_features-\u7684\u5b9e\u73b0\u7ec6\u8282",level:3},{value:"\u8bad\u7ec3 stage 1",id:"\u8bad\u7ec3-stage-1",level:3},{value:"Z\u7a7a\u95f4\u4e0eW\u7a7a\u95f4",id:"z\u7a7a\u95f4\u4e0ew\u7a7a\u95f4",level:4},{value:"\u635f\u5931\u51fd\u6570",id:"\u635f\u5931\u51fd\u6570",level:4},{value:"\u8bad\u7ec3 stage 2",id:"\u8bad\u7ec3-stage-2",level:3},{value:"\u786e\u5b9a\u76ee\u6807\u57df\u751f\u6210\u57df\u9700\u8981\u66f4\u65b0\u7684\u5c42",id:"\u786e\u5b9a\u76ee\u6807\u57df\u751f\u6210\u57df\u9700\u8981\u66f4\u65b0\u7684\u5c42",level:4},{value:"\u635f\u5931\u51fd\u6570",id:"\u635f\u5931\u51fd\u6570-1",level:4},{value:"\u5b9a\u91cf\u5206\u6790\u6307\u6807",id:"\u5b9a\u91cf\u5206\u6790\u6307\u6807",level:2},{value:"\u65b0\u589e\u529f\u80fd",id:"\u65b0\u589e\u529f\u80fd",level:2},{value:"\u81ea\u5b9a\u4e49\u56fe\u50cf\u98ce\u683c\u8fc1\u79fb",id:"\u81ea\u5b9a\u4e49\u56fe\u50cf\u98ce\u683c\u8fc1\u79fb",level:3},{value:"\u4fee\u6539\u65e5\u5fd7",id:"\u4fee\u6539\u65e5\u5fd7",level:4},{value:"\u95ee\u9898\u63d0\u51fa\u4e0e\u6539\u8fdb",id:"\u95ee\u9898\u63d0\u51fa\u4e0e\u6539\u8fdb",level:2},{value:"\u8bad\u7ec3\u9636\u6bb5\u4eba\u5de5 prompts \u7684\u4f5c\u7528\u662f\u4ec0\u4e48\uff1f",id:"\u8bad\u7ec3\u9636\u6bb5\u4eba\u5de5-prompts-\u7684\u4f5c\u7528\u662f\u4ec0\u4e48",level:3},{value:"\u4f5c\u7528",id:"\u4f5c\u7528",level:4},{value:"\u601d\u8003",id:"\u601d\u8003",level:4},{value:"Mapper \u7ed3\u6784\u7684\u8bbe\u8ba1",id:"mapper-\u7ed3\u6784\u7684\u8bbe\u8ba1",level:3}],o={toc:i},N="wrapper";function k(a){let{components:e,...t}=a;return(0,s.kt)(N,(0,n.Z)({},o,t,{components:e,mdxType:"MDXLayout"}),(0,s.kt)("h1",{id:"\u672c\u79d1\u6bd5\u4e1a\u8bba\u6587\u57fa\u4e8e-prompt-learning-\u7684\u89c6\u89c9-\u8bed\u8a00\u5927\u6a21\u578b\u5728\u56fe\u50cf\u751f\u6210\u4e2d\u7684\u5e94\u7528\u4e0e\u7814\u7a76"},"\u672c\u79d1\u6bd5\u4e1a\u8bba\u6587\uff1a\u57fa\u4e8e Prompt Learning \u7684\u89c6\u89c9-\u8bed\u8a00\u5927\u6a21\u578b\u5728\u56fe\u50cf\u751f\u6210\u4e2d\u7684\u5e94\u7528\u4e0e\u7814\u7a76"),(0,s.kt)("p",null,"\u672c\u7bc7\u8bba\u6587\u4e3b\u8981\u57fa\u4e8e ",(0,s.kt)("a",{parentName:"p",href:"https://arxiv.org/pdf/2304.03119.pdf"},"IPL")," \u7684\u601d\u60f3\u5b9e\u73b0\u3002\u672c\u4ed3\u5e93\u5927\u90e8\u5206\u4ece ",(0,s.kt)("a",{parentName:"p",href:"https://github.com/Picsart-AI-Research/IPL-Zero-Shot-Generative-Model-Adaptation"},"IPL-Zero-Shot-Generative-Model-Adaptation")," fork \u800c\u6765\u5e76\u505a\u51fa\u4e86\u4e00\u5b9a\u4fee\u6539\u3002"),(0,s.kt)("h2",{id:"\u4f9d\u8d56"},"\u4f9d\u8d56"),(0,s.kt)("h3",{id:"\u521b\u5efa-anaconda-\u865a\u62df\u73af\u5883"},"\u521b\u5efa Anaconda \u865a\u62df\u73af\u5883"),(0,s.kt)("pre",null,(0,s.kt)("code",{parentName:"pre",className:"language-powershell"},"conda create -n ipl python=3.8\nconda activate ipl\n")),(0,s.kt)("h3",{id:"\u5b89\u88c5\u4f9d\u8d56"},"\u5b89\u88c5\u4f9d\u8d56"),(0,s.kt)("p",null,"\u8bf7\u786e\u4fdd NVIDIA \u9a71\u52a8\u3001CUDA \u4ee5\u53ca PyTorch \u4e4b\u95f4\u7248\u672c\u4e92\u76f8\u5339\u914d\u3002"),(0,s.kt)("pre",null,(0,s.kt)("code",{parentName:"pre",className:"language-powershell"},"conda install pytorch torchvision torchaudio pytorch-cuda=11.8 -c pytorch -c nvidia\npip install ftfy regex tqdm ninja\npip install git+https://github.com/openai/CLIP.git\n")),(0,s.kt)("h3",{id:"\u4e0b\u8f7d\u9884\u8bad\u7ec3\u751f\u6210\u5668"},"\u4e0b\u8f7d\u9884\u8bad\u7ec3\u751f\u6210\u5668"),(0,s.kt)("p",null,"\u9884\u8bad\u7ec3\u7684\u6e90\u57df\u751f\u6210\u5668\u53ef\u4ee5\u901a\u8fc7 ",(0,s.kt)("a",{parentName:"p",href:"https://drive.google.com/drive/folders/1FW8XfDbTg9MLEodEeIl6zJEaCVyZ053L?usp=sharing"},"Google Drive "),"\u6216\u8005 ",(0,s.kt)("a",{parentName:"p",href:"https://cloud.tsinghua.edu.cn/d/dbd0955d9a9547dc99f2/"},"Tsinghua Cloud")," \u4e0b\u8f7d\uff0c\u5e76\u5c06\u5176\u7f6e\u4e8e ",(0,s.kt)("inlineCode",{parentName:"p"},"./pre_stylegan")," \u6587\u4ef6\u5939\u4e2d\u3002"),(0,s.kt)("h2",{id:"\u6982\u8ff0"},"\u6982\u8ff0"),(0,s.kt)("h2",{id:"\u6280\u672f\u7ec6\u8282"},"\u6280\u672f\u7ec6\u8282"),(0,s.kt)("h3",{id:"prompts-\u7684\u521d\u59cb\u5316"},"prompts \u7684\u521d\u59cb\u5316"),(0,s.kt)("p",null,(0,s.kt)("inlineCode",{parentName:"p"},"ctx_init "),"\u53c2\u6570\u7528\u4e8e\u521d\u59cb\u5316 prompts\uff0c\u5b98\u65b9\u63d0\u4f9b\u7684\u6f14\u793a context \u662f",(0,s.kt)("inlineCode",{parentName:"p"},"a photo of a"),"\u3002"),(0,s.kt)("pre",null,(0,s.kt)("code",{parentName:"pre",className:"language-python"},'source_prompts = [prompt_prefix + " " + args.source_class]\n target_prompts = [prompt_prefix + " " + args.target_class]\n')),(0,s.kt)("p",null,"\u6e90\u57df\u7684\u521d\u59cb\u63d0\u793a\u8bcd ",(0,s.kt)("inlineCode",{parentName:"p"},"source_prompts")," \u662f ctx_init \u4e0e\u6e90\u57df\u6807\u7b7e\u7684\u7ec4\u5408\u3002\u82e5\u6e90\u57df\u6807\u7b7e\u4e3a ",(0,s.kt)("inlineCode",{parentName:"p"},"photo"),"\uff0c\u5219\u6e90\u57df\u7684\u521d\u59cb\u63d0\u793a\u8bcd\u662f ",(0,s.kt)("inlineCode",{parentName:"p"},"a photo of a photo"),"\u3002\u76ee\u6807\u57df\u7684\u521d\u59cb\u63d0\u793a\u8bcd\u540c\u7406\u3002"),(0,s.kt)("h3",{id:"prompts-\u7684-tokenize-\u4e0e-embedding"},"prompts \u7684 tokenize \u4e0e embedding"),(0,s.kt)("p",null,"\u6e90\u57df\u4ee5\u53ca\u76ee\u6807\u57df\u7684\u521d\u59cb\u63d0\u793a\u8bcd\u63a5\u4e0b\u6765\u4f1a\u8fdb\u884c tokenize\uff1a"),(0,s.kt)("pre",null,(0,s.kt)("code",{parentName:"pre",className:"language-python"},"source_tokenized_prompts = torch.cat([clip.tokenize(p) for p in source_prompts]).to(device)\n# (1, 77) 'sot a photo of a photo eot' \u5728\u7ecf\u8fc7tokenize\u540e\u4e3atensor [[49406, 320, 1125, 539, 320, 1125, 49407, etc]]\n# 77\u662fCLIP\u5728tokenize\u65b9\u6cd5\u4e2d\u7f3a\u7701\u7684context_length\uff0c\u8d85\u8fc7context_length\u5c06\u88abtruncate\uff0c\u4e0d\u8db3\u7684\u5c06\u75280\u8865\u9f50\ntarget_tokenized_prompts = torch.cat([clip.tokenize(p) for p in target_prompts]).to(device)\n# (1, 77) 'sot a photo of a disney' \u5728\u7ecf\u8fc7tokenize\u540e\u4e3atensor [[49406, 320, 1125, 539, 320, 4696, 49407, etc]]\n# 77\u662fCLIP\u5728tokenize\u65b9\u6cd5\u4e2d\u7f3a\u7701\u7684context_length\uff0c\u8d85\u8fc7context_length\u5c06\u88abtruncate\uff0c\u4e0d\u8db3\u7684\u5c06\u75280\u8865\u9f50\n")),(0,s.kt)("p",null,"tokenize \u662f CLIP \u5bf9\u9001\u5165\u7684 prompt \u5b57\u7b26\u4e32\u8fdb\u884c\u6807\u8bb0\u5316\u5904\u7406\uff0c\u5728\u5934\u90e8\u548c\u5c3e\u90e8\u6dfb\u52a0 startoftext \u4ee5\u53ca endoftext \u6807\u8bb0\uff0c\u6700\u7ec8\u4e3a\u4e24\u4e2a\u9996\u5c3e\u6807\u8bb0\u548c\u5168\u90e8\u5355\u8bcd\u751f\u6210 int \u6807\u8bb0\u3002\u5176\u4e2d CLIP \u6a21\u578b\u7f3a\u7701\u7684 ",(0,s.kt)("inlineCode",{parentName:"p"},"context_length")," \u662f77\uff0c\u82e5 prompt \u5927\u4e8e 77 \u4f1a\u8fdb\u884c\u622a\u65ad\uff08truncate\uff09\uff0c\u82e5\u5c0f\u4e8e 77 \u4f1a\u8fdb\u884c\u8865\u96f6\uff0c\u56e0\u6b64 ",(0,s.kt)("inlineCode",{parentName:"p"},"source_tokenized_prompts")," \u4e0e ",(0,s.kt)("inlineCode",{parentName:"p"},"target_tokenized_prompts")," \u7684\u5f62\u72b6\u5747\u4e3a (1, 77)\u3002"),(0,s.kt)("p",null,"\u5728\u63d0\u793a\u8bcd\u6807\u8bb0\u5316\u4e4b\u540e\uff0c\u5c06\u8fdb\u884c\u5d4c\u5165\u8868\u793a embedding\uff1a"),(0,s.kt)("pre",null,(0,s.kt)("code",{parentName:"pre",className:"language-python"},"source_embedding = clip_model.token_embedding(source_tokenized_prompts).type(clip_model.dtype)\n# (1, 77, 512) \u5176\u4e2d512\u662fCLIP\u4e2d\u7684n_dim\uff0ctoken_embedding\u5c42\u7684\u8bcd\u5d4c\u5165\u7684\u7ef4\u5ea6\ntarget_embedding = clip_model.token_embedding(target_tokenized_prompts).type(clip_model.dtype)\n# (1, 77, 512) \u5176\u4e2d512\u662fCLIP\u4e2d\u7684n_dim\uff0ctoken_embedding\u5c42\u7684\u8bcd\u5d4c\u5165\u7684\u7ef4\u5ea6\n")),(0,s.kt)("h3",{id:"compute_text_features-\u7684\u5b9e\u73b0\u7ec6\u8282"},"compute_text_features \u7684\u5b9e\u73b0\u7ec6\u8282"),(0,s.kt)("p",null,"\u5728 Mapper \u751f\u6210 prompts \u540e\u8fdb\u884c prompts \u7684\u7279\u5f81\u63d0\u53d6\u65f6\uff0c\u9700\u8981\u4f20\u5165 tokenize \u4e4b\u540e\u7684\u4eba\u5de5\u521d\u59cb\u5316 prompt\uff08\u2018a photo of a photo.\u2019\u6216\u2018a photo of a disney.\u2019\uff09\uff0c\u7528\u4e8e\u9009\u62e9 eot \u7b26\u53f7\u5bf9\u5e94\u7684\u7ef4\u5ea6\u6765\u8fdb\u884c\u7279\u5f81\u6295\u5f71\uff08",(0,s.kt)("strong",{parentName:"p"},"\u56e0\u4e3a eot \u4f5c\u4e3a\u6574\u4e2a\u53e5\u5b50\u7684\u7ed3\u5c3e\uff0c\u88ab\u8ba4\u4e3a\u8be5\u7ef4\u5ea6\u5305\u542b\u66f4\u591a\u7684\u4fe1\u606f"),"\u3002\u5177\u4f53\u505a\u6cd5\uff1a\u7531\u4e8e\u5728 tokenize \u4e4b\u540e\uff0ceot \u7b26\u53f7\u5bf9\u5e94\u7684\u7ef4\u5ea6\u7684\u503c\u6700\u5927\uff0c\u56e0\u6b64\u53ef\u4f7f\u7528 argmax \u6765\u5b9a\u4f4d\uff09\uff0c\u4ee5\u4fdd\u8bc1\u6700\u540e\u5f97\u5230\u7684\u7279\u5f81\u5f62\u72b6\u4e0e\u56fe\u50cf\u7279\u5f81\u63d0\u53d6\u7684\u8f93\u51fa\u5f62\u72b6\u76f8\u540c\uff0c\u4f7f\u5f97\u540e\u7eed\u53ef\u4ee5\u8fdb\u884c\u5bf9\u6bd4\u5b66\u4e60\u7684\u635f\u5931\u8ba1\u7b97\u3002"),(0,s.kt)("h3",{id:"\u8bad\u7ec3-stage-1"},"\u8bad\u7ec3 stage 1"),(0,s.kt)("h4",{id:"z\u7a7a\u95f4\u4e0ew\u7a7a\u95f4"},"Z\u7a7a\u95f4\u4e0eW\u7a7a\u95f4"),(0,s.kt)("pre",null,(0,s.kt)("code",{parentName:"pre",className:"language-python"},"# Z\u7a7a\u95f4\u5230W\u7a7a\u95f4\u7684\u53d8\u6362\nsample_z = mixing_noise(args.batch_mapper, 512, args.mixing, device)\n# (batch_size, 512)\nsample_w = net.generator_frozen.style(sample_z)\n# (batch_size, 512)\n")),(0,s.kt)("p",null,"Z \u7a7a\u95f4\u548c W \u7a7a\u95f4\u662f StyleGAN \u6a21\u578b\u4e2d\u4e24\u79cd\u4e0d\u540c\u7684\u9690\u53d8\u91cf\u7a7a\u95f4\uff0c\u5206\u522b\u7528\u4e8e\u63a7\u5236\u751f\u6210\u56fe\u50cf\u7684\u968f\u673a\u7279\u5f81\u548c\u6837\u5f0f\u4fe1\u606f\u3002W \u7a7a\u95f4\u901a\u8fc7\u5bf9 Z \u7a7a\u95f4\u7684\u6620\u5c04\u5f97\u5230\u3002"),(0,s.kt)("ol",null,(0,s.kt)("li",{parentName:"ol"},(0,s.kt)("p",{parentName:"li"},(0,s.kt)("strong",{parentName:"p"},"Z \u7a7a\u95f4\uff08Latent Space Z\uff09"),"\uff1a"),(0,s.kt)("ul",{parentName:"li"},(0,s.kt)("li",{parentName:"ul"},"Z \u7a7a\u95f4\u662f\u968f\u673a\u566a\u58f0\u7a7a\u95f4\uff0c\u901a\u5e38\u7531\u968f\u673a\u566a\u58f0\u5411\u91cf\u7ec4\u6210\uff0c\u8868\u793a\u4e86\u56fe\u50cf\u7684\u968f\u673a\u7279\u5f81\u3002"),(0,s.kt)("li",{parentName:"ul"},"\u5728 StyleGAN \u4e2d\uff0cZ \u7a7a\u95f4\u7684\u7ef4\u5ea6\u901a\u5e38\u4e3a 512 \u7ef4\u3002\u8fd9\u610f\u5473\u7740\u4e00\u4e2a Z \u5411\u91cf\u7531 512 \u4e2a\u6570\u5b57\u7ec4\u6210\uff0c\u6bcf\u4e2a\u6570\u5b57\u8868\u793a\u4e86\u56fe\u50cf\u7684\u4e00\u4e2a\u968f\u673a\u7279\u5f81\u7684\u5f3a\u5ea6\u6216\u8005\u65b9\u5411\u3002"))),(0,s.kt)("li",{parentName:"ol"},(0,s.kt)("p",{parentName:"li"},(0,s.kt)("strong",{parentName:"p"},"W \u7a7a\u95f4\uff08Style Space W\uff09"),"\uff1a"),(0,s.kt)("ul",{parentName:"li"},(0,s.kt)("li",{parentName:"ul"},(0,s.kt)("p",{parentName:"li"},"W \u7a7a\u95f4\u7ecf\u8fc7\u7279\u5f81\u89e3\u8026\u7684\u9690\u7a7a\u95f4\uff0c\u4e0e Z \u7a7a\u95f4\u76f8\u6bd4\u66f4\u52a0\u89e3\u8026\u5408\u3002")),(0,s.kt)("li",{parentName:"ul"},(0,s.kt)("p",{parentName:"li"},"\u5728 StyleGAN \u4e2d\uff0cW \u7a7a\u95f4\u7684\u7ef4\u5ea6\u4e5f\u901a\u5e38\u4e3a 512 \u7ef4\uff0c\u662f\u901a\u8fc7mapping network\u8fdb\u884c\u6620\u5c04\u5f97\u5230\u7684\uff0cmapping network\u7531PixelNorm\u5c42\u4e0eEqualLinear\u5c42\u6784\u6210\u3002\u4ee5\u4e0b\u4ee3\u7801\u8282\u9009\u81ea",(0,s.kt)("inlineCode",{parentName:"p"},"sg2_model.py")),(0,s.kt)("pre",{parentName:"li"},(0,s.kt)("code",{parentName:"pre",className:"language-python"},"'''mapping network'''\nlayers = [PixelNorm()]\n\nfor i in range(n_mlp):\n layers.append(\n EqualLinear(\n style_dim, style_dim, lr_mul=lr_mlp, activation=\"fused_lrelu\"\n )\n )\n\nself.style = nn.Sequential(*layers)\n"))))),(0,s.kt)("li",{parentName:"ol"},(0,s.kt)("p",{parentName:"li"},(0,s.kt)("strong",{parentName:"p"},"Z \u7a7a\u95f4\u4e0e W \u7a7a\u95f4\u7684\u5173\u7cfb"),"\uff1a"),(0,s.kt)("ul",{parentName:"li"},(0,s.kt)("li",{parentName:"ul"},"\u5728 StyleGAN \u4e2d\uff0c\u901a\u5e38\u4f1a\u5148\u5c06\u4e00\u4e2a Z \u5411\u91cf\u6620\u5c04\u5230 W \u7a7a\u95f4\uff0c\u7136\u540e\u518d\u5c06 W \u5411\u91cf\u8f93\u5165\u5230\u751f\u6210\u5668\u7f51\u7edc\u4e2d\u751f\u6210\u56fe\u50cf\u3002"),(0,s.kt)("li",{parentName:"ul"},"Z \u7a7a\u95f4\u63d0\u4f9b\u4e86\u521d\u59cb\u968f\u673a\u566a\u58f0\uff0c\u800c W \u7a7a\u95f4\u5219\u901a\u8fc7\u7279\u5f81\u89e3\u8026\u63d0\u4f9b\u66f4\u591a\u63a7\u5236\u56fe\u50cf\u98ce\u683c\u7684\u7075\u6d3b\u6027\u3002\u901a\u8fc7\u5bf9 Z \u548c W \u4e4b\u95f4\u7684\u6620\u5c04\u4ee5\u53ca W \u5728\u751f\u6210\u5668\u4e2d\u7684\u5e94\u7528\uff0cStyleGan \u5b9e\u73b0\u4e86\u9ad8\u5ea6\u53ef\u63a7\u4e14\u5177\u6709\u826f\u597d\u751f\u6210\u6548\u679c\u7684\u56fe\u50cf\u5408\u6210\u3002")))),(0,s.kt)("h4",{id:"\u635f\u5931\u51fd\u6570"},"\u635f\u5931\u51fd\u6570"),(0,s.kt)("p",null,"\u5728\u4ee3\u7801\u4e2d\uff0cstage 1 \u7684\u635f\u5931\u51fd\u6570\u662f ",(0,s.kt)("inlineCode",{parentName:"p"},"global_clip_loss"),"\uff0c\u8be5\u635f\u5931\u7531\u4e09\u90e8\u5206\u7ec4\u6210\uff1a"),(0,s.kt)("ol",null,(0,s.kt)("li",{parentName:"ol"},"\u5bf9\u6bd4\u5b66\u4e60\u635f\u5931\uff1aMapper \u751f\u6210\u7684\u6e90\u57df prompts \u7684\u7279\u5f81",(0,s.kt)("strong",{parentName:"li"},"\uff08\u6ce8\u610f\uff0c\u8fd9\u91cc\u7684 prompts \u7279\u5f81\u662f\u4e0e\u4eba\u5de5\u521d\u59cb\u5316\u7684 prompts \u7684\u7279\u5f81\u505a\u8fc7 element-wise \u76f8\u52a0\u540e\u7684\u7279\u5f81\uff09"),"\u4e0e\u6e90\u57df\u56fe\u50cf\u7279\u5f81\u7684\u4f59\u5f26\u76f8\u4f3c\u5ea6\u7ec4\u6210\u7684\u5bf9\u6bd4\u5b66\u4e60\u635f\u5931\uff1b"),(0,s.kt)("li",{parentName:"ol"},"\u76ee\u6807\u57df\u6b63\u5219\u5316\u635f\u5931\uff1aMapper \u751f\u6210\u7684\u76ee\u6807\u57df prompts \u7684\u7279\u5f81\u4e0e\u76ee\u6807\u57df\u6587\u672c\u6807\u7b7e\u7279\u5f81\u7684\u4f59\u5f26\u76f8\u4f3c\u5ea6\uff0c\u8fd9\u91cc\u751f\u6210\u7684\u76ee\u6807\u57df prompts \u7279\u5f81\u540c\u6837\u4e5f\u662f\u4e0e\u4eba\u5de5\u521d\u59cb\u5316\u7684 prompts \u505a\u8fc7\u52a0\u6cd5\u7684\u3002\u6ce8\u610f\u8be5\u635f\u5931\u6709\u6743\u91cd ",(0,s.kt)("inlineCode",{parentName:"li"},"lambda_l"),"\u3002"),(0,s.kt)("li",{parentName:"ol"},"\u6e90\u57df\u6b63\u5219\u5316\uff1a\u8ba1\u7b97\u751f\u6210\u7684\u6e90\u57dfprompts\u4e0e\u6e90\u57df\u6807\u7b7e\u4e4b\u95f4\u7684\u4f59\u5f26\u76f8\u4f3c\u5ea6\uff0c\u7531 ",(0,s.kt)("inlineCode",{parentName:"li"},"lambda_src")," \u63a7\u5236\uff0c\u9ed8\u8ba4\u662f 0\u3002")),(0,s.kt)("h3",{id:"\u8bad\u7ec3-stage-2"},"\u8bad\u7ec3 stage 2"),(0,s.kt)("h4",{id:"\u786e\u5b9a\u76ee\u6807\u57df\u751f\u6210\u57df\u9700\u8981\u66f4\u65b0\u7684\u5c42"},"\u786e\u5b9a\u76ee\u6807\u57df\u751f\u6210\u57df\u9700\u8981\u66f4\u65b0\u7684\u5c42"),(0,s.kt)("p",null,"\u5728\u8bad\u7ec3\u7684\u7b2c\u4e8c\u9636\u6bb5\u8fdb\u884c\u524d\u5411\u4f20\u64ad\u65f6\uff0c\u9700\u8981\u5148\u5bf9\u76ee\u6807\u57df\u751f\u6210\u5668\uff08generator_trainable\uff09\u7684\u6240\u6709\u5c42\u8fdb\u884c unfreeze\uff0c\u7136\u540e\u5bf9\u66f4\u65b0\u54ea\u4e9b\u5c42\u505a\u51fa\u9009\u62e9\uff0c\u627f\u62c5\u9009\u62e9\u4efb\u52a1\u7684\u529f\u80fd\u51fd\u6570\uff1amodel.ZSSGAN.ZSSGAN.determine_opt_layers\uff0c\u6700\u540e freeze \u6240\u6709\u5c42\u540e\u518d unfreeze \u9009\u62e9\u7684\u7f51\u7edc\u5c42\u3002"),(0,s.kt)("pre",null,(0,s.kt)("code",{parentName:"pre",className:"language-python"},"if self.training and self.auto_layer_iters > 0:\n self.generator_trainable.unfreeze_layers() # unfreeze\n train_layers = self.determine_opt_layers() # layer to train\n\n if not isinstance(train_layers, list):\n train_layers = [train_layers]\n\n self.generator_trainable.freeze_layers()\n self.generator_trainable.unfreeze_layers(train_layers) # unfreeze\n")),(0,s.kt)("p",null,"\u5177\u4f53\u9009\u62e9\u5e26\u66f4\u65b0\u7f51\u7edc\u5c42\u7684\u7b56\u7565\uff1a"),(0,s.kt)("p",null,"\u5c06 W \u7a7a\u95f4\u7684\u9690\u5411\u91cf\u9001\u5165\u76ee\u6807\u57df\u751f\u6210\u5668\uff08SG2Generator\uff09\u4e2d\uff0c\u5e76\u8fdb\u884c\u53cd\u5411\u4f20\u64ad\uff0c\u6b64\u65f6\u53ef\u4ee5\u901a\u8fc7\u53cd\u5411\u4f20\u64ad\u540e W \u7a7a\u95f4\u9690\u5411\u91cf\u4e0d\u540c\u7ef4\u5ea6\u7684\u66f4\u65b0\u5e45\u5ea6\u6765\u8861\u91cf\u4e0d\u540c\u7f51\u7edc\u5c42\u7684\u5f71\u54cd\u529b\uff0c\u56e0\u6b64\u9009\u51fa\u66f4\u65b0\u5e45\u5ea6\u6700\u5927\u7684\u7ef4\u5ea6\u5c31\u53ef\u4ee5\u786e\u5b9a\u5728 Model Adaption \u4e2d\u9700\u8981\u66f4\u65b0\u7684\u7f51\u7edc\u5c42\u3002"),(0,s.kt)("p",null,(0,s.kt)("strong",{parentName:"p"},"\u4e4b\u6240\u4ee5 W \u7a7a\u95f4\u7f16\u7801\u5728 n_latent \u7ef4\u5ea6\u4e0a\u7684\u5e8f\u53f7\u5c31\u4ee3\u8868\u7740\u5bf9\u5e94\u7684\u7f51\u7edc\u5c42\u6570\u7684\u5e8f\u53f7\uff0c\u662f\u56e0\u4e3a StyleGAN \u751f\u6210\u5668\u7684\u7ed3\u6784\u51b3\u5b9a\u4e86\u8fd9\u4e00\u70b9\uff1aStyleGAN \u751f\u6210\u5668\u4e2d\uff0cW \u7a7a\u95f4\u7f16\u7801\u7684\u4e0d\u540c\u7ef4\u5ea6\u4f1a\u88ab\u9001\u5165\u751f\u6210\u5668\u7f51\u7edc\u7684\u4e0d\u540c\u5c42\uff0c\u63a7\u5236\u8fd9\u4e9b\u5c42\u7684\u7279\u5f81\u6620\u5c04 (feature mapping)\u3002\u5177\u4f53\u6765\u8bf4\uff0cW \u7a7a\u95f4\u7f16\u7801\u7684\u6bcf\u4e2a\u7ef4\u5ea6\u4f1a\u88ab\u91cd\u590d n_latent \u6b21\uff0c\u4f5c\u4e3a\u8be5\u5c42\u7684\u98ce\u683c\u5411\u91cf (style vector)\uff0c\u901a\u8fc7 AdaIN (Adaptive Instance Normalization) \u5c42\u63a7\u5236\u8be5\u5c42\u7684\u7279\u5f81\u6620\u5c04\u3002\u56e0\u6b64\uff0cW \u7a7a\u95f4\u7f16\u7801\u7684\u7b2c i \u4e2a\u7ef4\u5ea6\u4f1a\u5f71\u54cd\u751f\u6210\u5668\u7f51\u7edc\u4e2d\u7b2c i \u5c42\u7684\u7279\u5f81\u6620\u5c04\u3002\u5f53\u67d0\u4e2a\u7ef4\u5ea6\u7684 W \u503c\u88ab\u66f4\u65b0\u7684\u7a0b\u5ea6\u8f83\u5927\u65f6\uff0c\u5c31\u610f\u5473\u7740\u8be5\u7ef4\u5ea6\u5bf9\u5e94\u7684\u5c42\u5728\u751f\u6210\u76ee\u6807\u56fe\u50cf\u65f6\u8d77\u5230\u4e86\u91cd\u8981\u4f5c\u7528\uff0c\u9700\u8981\u88ab\u4f18\u5316\u3002")),(0,s.kt)("h4",{id:"\u635f\u5931\u51fd\u6570-1"},"\u635f\u5931\u51fd\u6570"),(0,s.kt)("p",null,"stage 2 \u7684\u635f\u5931\u51fd\u6570\u662f CLIP Loss \u7c7b\u4e2d\u7684 ",(0,s.kt)("inlineCode",{parentName:"p"},"clip_directional_loss"),"\uff0c\u8be5\u635f\u5931\u51fd\u6570\u7531\u4e24\u90e8\u5206\u7ec4\u6210\uff1a"),(0,s.kt)("ol",null,(0,s.kt)("li",{parentName:"ol"},(0,s.kt)("inlineCode",{parentName:"li"},"edit_direciton"),"\uff1a\u6e90\u57df\u751f\u6210\u5668\u4e0e\u76ee\u6807\u57df\u751f\u6210\u5668\u751f\u6210\u7684\u56fe\u7247\u5728\u7ecf\u8fc7 image encdoer \u540e\u505a element-wise \u7684\u76f8\u51cf\uff0c\u6700\u540e\u9664\u4ee5\u81ea\u8eab\u7684 L2 Norm \u65b9\u4fbf\u540e\u7eed\u4e0e target_direction \u8ba1\u7b97\u4f59\u5f26\u76f8\u4f3c\u5ea6"),(0,s.kt)("li",{parentName:"ol"},(0,s.kt)("inlineCode",{parentName:"li"},"target_direction"),"\uff1aMapper \u4ea7\u751f\u7684\u6e90\u57df\u548c\u76ee\u6807\u57df prompts \u7684 text_features \u505aelement-wise\u76f8\u51cf\u540e\uff0c\u6700\u540e\u521d\u4e00\u81ea\u8eab\u7684 L2 Norm \u4ee5\u4fbf\u540e\u7eed\u4e0e edit_direction \u8ba1\u7b97\u4f59\u5f26\u76f8\u4f3c\u5ea6")),(0,s.kt)("h2",{id:"\u5b9a\u91cf\u5206\u6790\u6307\u6807"},"\u5b9a\u91cf\u5206\u6790\u6307\u6807"),(0,s.kt)("p",null,"\u53c2\u8003\u6587\u732e\uff1a",(0,s.kt)("a",{parentName:"p",href:"https://blog.csdn.net/qq_35586657/article/details/98478508"},"GAN \u7684\u51e0\u79cd\u8bc4\u4ef7\u6307\u6807")),(0,s.kt)("ol",null,(0,s.kt)("li",{parentName:"ol"},(0,s.kt)("p",{parentName:"li"},"Inception Score\uff08IS\uff09"),(0,s.kt)("p",{parentName:"li"},(0,s.kt)("strong",{parentName:"p"},"\u8bc4\u4f30\u56fe\u50cf\u7684\u8d28\u91cf\u548c\u591a\u6837\u6027")),(0,s.kt)("p",{parentName:"li"},"\u8d28\u91cf\uff1a\u628a\u751f\u6210\u7684\u56fe\u7247 ",(0,s.kt)("span",{parentName:"p",className:"math math-inline"},(0,s.kt)("span",{parentName:"span",className:"katex"},(0,s.kt)("span",{parentName:"span",className:"katex-mathml"},(0,s.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,s.kt)("semantics",{parentName:"math"},(0,s.kt)("mrow",{parentName:"semantics"},(0,s.kt)("mi",{parentName:"mrow"},"x")),(0,s.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"x")))),(0,s.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"0.4306em"}}),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal"},"x")))))," \u8f93\u5165 Inception V3 \u4e2d\uff0c\u5f97\u5230\u8f93\u51fa 1000 \u7ef4\u7684\u5411\u91cf ",(0,s.kt)("span",{parentName:"p",className:"math math-inline"},(0,s.kt)("span",{parentName:"span",className:"katex"},(0,s.kt)("span",{parentName:"span",className:"katex-mathml"},(0,s.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,s.kt)("semantics",{parentName:"math"},(0,s.kt)("mrow",{parentName:"semantics"},(0,s.kt)("mi",{parentName:"mrow"},"y")),(0,s.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"y")))),(0,s.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"0.625em",verticalAlign:"-0.1944em"}}),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"y"))))),"\uff0c\u5411\u91cf\u7684\u6bcf\u4e2a\u7ef4\u5ea6\u7684\u503c\u5bf9\u5e94\u56fe\u7247\u5c5e\u4e8e\u67d0\u7c7b\u7684\u6982\u7387\u3002\u5bf9\u4e8e\u4e00\u4e2a\u6e05\u6670\u7684\u56fe\u7247\uff0c\u5b83\u5c5e\u4e8e\u67d0\u4e00\u7c7b\u7684\u6982\u7387\u5e94\u8be5\u975e\u5e38\u5927\uff0c\u800c\u5c5e\u4e8e\u5176\u5b83\u7c7b\u7684\u6982\u7387\u5e94\u8be5\u5f88\u5c0f\u3002\u7528\u4e13\u4e1a\u672f\u8bed\u8bf4\uff0c ",(0,s.kt)("span",{parentName:"p",className:"math math-inline"},(0,s.kt)("span",{parentName:"span",className:"katex"},(0,s.kt)("span",{parentName:"span",className:"katex-mathml"},(0,s.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,s.kt)("semantics",{parentName:"math"},(0,s.kt)("mrow",{parentName:"semantics"},(0,s.kt)("mi",{parentName:"mrow"},"p"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,s.kt)("mi",{parentName:"mrow"},"y"),(0,s.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"\u2223"),(0,s.kt)("mi",{parentName:"mrow"},"x"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,s.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"p(y|x)")))),(0,s.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal"},"p"),(0,s.kt)("span",{parentName:"span",className:"mopen"},"("),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"y"),(0,s.kt)("span",{parentName:"span",className:"mord"},"\u2223"),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal"},"x"),(0,s.kt)("span",{parentName:"span",className:"mclose"},")"))))),"\u200b \u7684\u71b5\u5e94\u8be5\u5f88\u5c0f\uff08\u71b5\u4ee3\u8868\u6df7\u4e71\u5ea6\uff0c\u5747\u5300\u5206\u5e03\u7684\u6df7\u4e71\u5ea6\u6700\u5927\uff0c\u71b5\u6700\u5927\uff09\u3002"),(0,s.kt)("p",{parentName:"li"},"\u591a\u6837\u6027\uff1a \u5982\u679c\u4e00\u4e2a\u6a21\u578b\u80fd\u751f\u6210\u8db3\u591f\u591a\u6837\u7684\u56fe\u7247\uff0c\u90a3\u4e48\u5b83\u751f\u6210\u7684\u56fe\u7247\u5728\u5404\u4e2a\u7c7b\u522b\u4e2d\u7684\u5206\u5e03\u5e94\u8be5\u662f\u5e73\u5747\u7684\uff0c\u5047\u8bbe\u751f\u6210\u4e86 10000 \u5f20\u56fe\u7247\uff0c\u90a3\u4e48\u6700\u7406\u60f3\u7684\u60c5\u51b5\u662f\uff0c1000 \u7c7b\u4e2d\u6bcf\u7c7b\u751f\u6210\u4e86 10 \u5f20\u3002\u8f6c\u6362\u6210\u672f\u8bed\uff0c\u5c31\u662f\u751f\u6210\u56fe\u7247\u5728\u6240\u6709\u7c7b\u522b\u6982\u7387\u7684\u8fb9\u7f18\u5206\u5e03 ",(0,s.kt)("span",{parentName:"p",className:"math math-inline"},(0,s.kt)("span",{parentName:"span",className:"katex"},(0,s.kt)("span",{parentName:"span",className:"katex-mathml"},(0,s.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,s.kt)("semantics",{parentName:"math"},(0,s.kt)("mrow",{parentName:"semantics"},(0,s.kt)("mi",{parentName:"mrow"},"p"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,s.kt)("mi",{parentName:"mrow"},"y"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,s.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"p(y)")))),(0,s.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal"},"p"),(0,s.kt)("span",{parentName:"span",className:"mopen"},"("),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"y"),(0,s.kt)("span",{parentName:"span",className:"mclose"},")"))))),"\u200b \u71b5\u5f88\u5927\uff08\u5747\u5300\u5206\u5e03\uff09\u3002"),(0,s.kt)("p",{parentName:"li"},"\u56e0\u6b64\uff0c\u5bf9\u4e8e IS \u6211\u4eec\u9700\u8981\u6c42\u7684\u4e24\u4e2a\u91cf\u5c31\u662f ",(0,s.kt)("span",{parentName:"p",className:"math math-inline"},(0,s.kt)("span",{parentName:"span",className:"katex"},(0,s.kt)("span",{parentName:"span",className:"katex-mathml"},(0,s.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,s.kt)("semantics",{parentName:"math"},(0,s.kt)("mrow",{parentName:"semantics"},(0,s.kt)("mi",{parentName:"mrow"},"p"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,s.kt)("mi",{parentName:"mrow"},"y"),(0,s.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"\u2223"),(0,s.kt)("mi",{parentName:"mrow"},"x"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,s.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"p(y|x)")))),(0,s.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal"},"p"),(0,s.kt)("span",{parentName:"span",className:"mopen"},"("),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"y"),(0,s.kt)("span",{parentName:"span",className:"mord"},"\u2223"),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal"},"x"),(0,s.kt)("span",{parentName:"span",className:"mclose"},")")))))," \u548c ",(0,s.kt)("span",{parentName:"p",className:"math math-inline"},(0,s.kt)("span",{parentName:"span",className:"katex"},(0,s.kt)("span",{parentName:"span",className:"katex-mathml"},(0,s.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,s.kt)("semantics",{parentName:"math"},(0,s.kt)("mrow",{parentName:"semantics"},(0,s.kt)("mi",{parentName:"mrow"},"p"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,s.kt)("mi",{parentName:"mrow"},"y"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,s.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"p(y)")))),(0,s.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal"},"p"),(0,s.kt)("span",{parentName:"span",className:"mopen"},"("),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"y"),(0,s.kt)("span",{parentName:"span",className:"mclose"},")"))))),"\u3002\u5b9e\u9645\u4e2d\uff0c\u9009\u53d6\u5927\u91cf\u751f\u6210\u6837\u672c\uff0c\u7528\u7ecf\u9a8c\u5206\u5e03\u6a21\u62df ",(0,s.kt)("span",{parentName:"p",className:"math math-inline"},(0,s.kt)("span",{parentName:"span",className:"katex"},(0,s.kt)("span",{parentName:"span",className:"katex-mathml"},(0,s.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,s.kt)("semantics",{parentName:"math"},(0,s.kt)("mrow",{parentName:"semantics"},(0,s.kt)("mi",{parentName:"mrow"},"p"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,s.kt)("mi",{parentName:"mrow"},"y"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,s.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"p(y)")))),(0,s.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal"},"p"),(0,s.kt)("span",{parentName:"span",className:"mopen"},"("),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"y"),(0,s.kt)("span",{parentName:"span",className:"mclose"},")"))))),"\uff1a"),(0,s.kt)("div",{parentName:"li",className:"math math-display"},(0,s.kt)("span",{parentName:"div",className:"katex-display"},(0,s.kt)("span",{parentName:"span",className:"katex"},(0,s.kt)("span",{parentName:"span",className:"katex-mathml"},(0,s.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,s.kt)("semantics",{parentName:"math"},(0,s.kt)("mrow",{parentName:"semantics"},(0,s.kt)("mover",{parentName:"mrow",accent:"true"},(0,s.kt)("mi",{parentName:"mover"},"p"),(0,s.kt)("mo",{parentName:"mover"},"^")),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,s.kt)("mi",{parentName:"mrow"},"y"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,s.kt)("mo",{parentName:"mrow"},"="),(0,s.kt)("mfrac",{parentName:"mrow"},(0,s.kt)("mn",{parentName:"mfrac"},"1"),(0,s.kt)("mi",{parentName:"mfrac"},"N")),(0,s.kt)("munderover",{parentName:"mrow"},(0,s.kt)("mo",{parentName:"munderover"},"\u2211"),(0,s.kt)("mrow",{parentName:"munderover"},(0,s.kt)("mi",{parentName:"mrow"},"i"),(0,s.kt)("mo",{parentName:"mrow"},"="),(0,s.kt)("mn",{parentName:"mrow"},"1")),(0,s.kt)("mi",{parentName:"munderover"},"N")),(0,s.kt)("mi",{parentName:"mrow"},"p"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,s.kt)("mi",{parentName:"mrow"},"y"),(0,s.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"\u2223"),(0,s.kt)("msup",{parentName:"mrow"},(0,s.kt)("mi",{parentName:"msup",mathvariant:"bold"},"x"),(0,s.kt)("mrow",{parentName:"msup"},(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,s.kt)("mi",{parentName:"mrow"},"i"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},")"))),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,s.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"\\hat{p}(y)=\\frac{1}{N}\\sum_{i=1}^{N}p(y|\\mathbf{x}^{(i)})")))),(0,s.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,s.kt)("span",{parentName:"span",className:"mord accent"},(0,s.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.6944em"}},(0,s.kt)("span",{parentName:"span",style:{top:"-3em"}},(0,s.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal"},"p")),(0,s.kt)("span",{parentName:"span",style:{top:"-3em"}},(0,s.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,s.kt)("span",{parentName:"span",className:"accent-body",style:{left:"-0.1667em"}},(0,s.kt)("span",{parentName:"span",className:"mord"},"^")))),(0,s.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.1944em"}},(0,s.kt)("span",{parentName:"span"}))))),(0,s.kt)("span",{parentName:"span",className:"mopen"},"("),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"y"),(0,s.kt)("span",{parentName:"span",className:"mclose"},")"),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,s.kt)("span",{parentName:"span",className:"mrel"},"="),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"3.106em",verticalAlign:"-1.2777em"}}),(0,s.kt)("span",{parentName:"span",className:"mord"},(0,s.kt)("span",{parentName:"span",className:"mopen nulldelimiter"}),(0,s.kt)("span",{parentName:"span",className:"mfrac"},(0,s.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.3214em"}},(0,s.kt)("span",{parentName:"span",style:{top:"-2.314em"}},(0,s.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,s.kt)("span",{parentName:"span",className:"mord"},(0,s.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.10903em"}},"N"))),(0,s.kt)("span",{parentName:"span",style:{top:"-3.23em"}},(0,s.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,s.kt)("span",{parentName:"span",className:"frac-line",style:{borderBottomWidth:"0.04em"}})),(0,s.kt)("span",{parentName:"span",style:{top:"-3.677em"}},(0,s.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,s.kt)("span",{parentName:"span",className:"mord"},(0,s.kt)("span",{parentName:"span",className:"mord"},"1")))),(0,s.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.686em"}},(0,s.kt)("span",{parentName:"span"}))))),(0,s.kt)("span",{parentName:"span",className:"mclose nulldelimiter"})),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,s.kt)("span",{parentName:"span",className:"mop op-limits"},(0,s.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.8283em"}},(0,s.kt)("span",{parentName:"span",style:{top:"-1.8723em",marginLeft:"0em"}},(0,s.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.05em"}}),(0,s.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,s.kt)("span",{parentName:"span",className:"mord mtight"},(0,s.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"i"),(0,s.kt)("span",{parentName:"span",className:"mrel mtight"},"="),(0,s.kt)("span",{parentName:"span",className:"mord mtight"},"1")))),(0,s.kt)("span",{parentName:"span",style:{top:"-3.05em"}},(0,s.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.05em"}}),(0,s.kt)("span",{parentName:"span"},(0,s.kt)("span",{parentName:"span",className:"mop op-symbol large-op"},"\u2211"))),(0,s.kt)("span",{parentName:"span",style:{top:"-4.3em",marginLeft:"0em"}},(0,s.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.05em"}}),(0,s.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,s.kt)("span",{parentName:"span",className:"mord mtight"},(0,s.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.10903em"}},"N"))))),(0,s.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.2777em"}},(0,s.kt)("span",{parentName:"span"}))))),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal"},"p"),(0,s.kt)("span",{parentName:"span",className:"mopen"},"("),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"y"),(0,s.kt)("span",{parentName:"span",className:"mord"},"\u2223"),(0,s.kt)("span",{parentName:"span",className:"mord"},(0,s.kt)("span",{parentName:"span",className:"mord mathbf"},"x"),(0,s.kt)("span",{parentName:"span",className:"msupsub"},(0,s.kt)("span",{parentName:"span",className:"vlist-t"},(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.938em"}},(0,s.kt)("span",{parentName:"span",style:{top:"-3.113em",marginRight:"0.05em"}},(0,s.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,s.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,s.kt)("span",{parentName:"span",className:"mord mtight"},(0,s.kt)("span",{parentName:"span",className:"mopen mtight"},"("),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"i"),(0,s.kt)("span",{parentName:"span",className:"mclose mtight"},")"))))))))),(0,s.kt)("span",{parentName:"span",className:"mclose"},")")))))),(0,s.kt)("p",{parentName:"li"},"Inception Score \u7684\u5b8c\u6574\u516c\u5f0f\u5982\u4e0b\uff1a"),(0,s.kt)("div",{parentName:"li",className:"math math-display"},(0,s.kt)("span",{parentName:"div",className:"katex-display"},(0,s.kt)("span",{parentName:"span",className:"katex"},(0,s.kt)("span",{parentName:"span",className:"katex-mathml"},(0,s.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,s.kt)("semantics",{parentName:"math"},(0,s.kt)("mrow",{parentName:"semantics"},(0,s.kt)("mrow",{parentName:"mrow"},(0,s.kt)("mi",{parentName:"mrow",mathvariant:"bold"},"I"),(0,s.kt)("mi",{parentName:"mrow",mathvariant:"bold"},"S")),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,s.kt)("mi",{parentName:"mrow"},"G"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,s.kt)("mo",{parentName:"mrow"},"="),(0,s.kt)("mi",{parentName:"mrow"},"exp"),(0,s.kt)("mo",{parentName:"mrow"},"\u2061"),(0,s.kt)("mrow",{parentName:"mrow"},(0,s.kt)("mo",{parentName:"mrow",fence:"true"},"("),(0,s.kt)("msub",{parentName:"mrow"},(0,s.kt)("mi",{parentName:"msub",mathvariant:"double-struck"},"E"),(0,s.kt)("mrow",{parentName:"msub"},(0,s.kt)("mi",{parentName:"mrow",mathvariant:"bold"},"x"),(0,s.kt)("mo",{parentName:"mrow"},"\u223c"),(0,s.kt)("msub",{parentName:"mrow"},(0,s.kt)("mi",{parentName:"msub"},"p"),(0,s.kt)("mi",{parentName:"msub"},"g")))),(0,s.kt)("msub",{parentName:"mrow"},(0,s.kt)("mi",{parentName:"msub"},"D"),(0,s.kt)("mrow",{parentName:"msub"},(0,s.kt)("mi",{parentName:"mrow"},"K"),(0,s.kt)("mi",{parentName:"mrow"},"L"))),(0,s.kt)("mrow",{parentName:"mrow"},(0,s.kt)("mo",{parentName:"mrow",fence:"true"},"("),(0,s.kt)("mi",{parentName:"mrow"},"p"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,s.kt)("mi",{parentName:"mrow"},"y"),(0,s.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"\u2223"),(0,s.kt)("mi",{parentName:"mrow",mathvariant:"bold"},"x"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,s.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"\u2223"),(0,s.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"\u2223"),(0,s.kt)("mi",{parentName:"mrow"},"p"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,s.kt)("mi",{parentName:"mrow"},"y"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,s.kt)("mo",{parentName:"mrow",fence:"true"},")")),(0,s.kt)("mo",{parentName:"mrow",fence:"true"},")"))),(0,s.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"\\mathbf{IS}(G)=\\exp\\left(\\mathbb{E}_{\\mathbf{x}\\sim p_g}D_{KL}\\left(p(y|\\mathbf{x})||p(y)\\right)\\right)")))),(0,s.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,s.kt)("span",{parentName:"span",className:"mord"},(0,s.kt)("span",{parentName:"span",className:"mord mathbf"},"IS")),(0,s.kt)("span",{parentName:"span",className:"mopen"},"("),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal"},"G"),(0,s.kt)("span",{parentName:"span",className:"mclose"},")"),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,s.kt)("span",{parentName:"span",className:"mrel"},"="),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"1.2em",verticalAlign:"-0.35em"}}),(0,s.kt)("span",{parentName:"span",className:"mop"},"exp"),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,s.kt)("span",{parentName:"span",className:"minner"},(0,s.kt)("span",{parentName:"span",className:"mopen delimcenter",style:{top:"0em"}},(0,s.kt)("span",{parentName:"span",className:"delimsizing size1"},"(")),(0,s.kt)("span",{parentName:"span",className:"mord"},(0,s.kt)("span",{parentName:"span",className:"mord mathbb"},"E"),(0,s.kt)("span",{parentName:"span",className:"msupsub"},(0,s.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.1611em"}},(0,s.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,s.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,s.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,s.kt)("span",{parentName:"span",className:"mord mtight"},(0,s.kt)("span",{parentName:"span",className:"mord mathbf mtight"},"x"),(0,s.kt)("span",{parentName:"span",className:"mrel mtight"},"\u223c"),(0,s.kt)("span",{parentName:"span",className:"mord mtight"},(0,s.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"p"),(0,s.kt)("span",{parentName:"span",className:"msupsub"},(0,s.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.1645em"}},(0,s.kt)("span",{parentName:"span",style:{top:"-2.357em",marginLeft:"0em",marginRight:"0.0714em"}},(0,s.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.5em"}}),(0,s.kt)("span",{parentName:"span",className:"sizing reset-size3 size1 mtight"},(0,s.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.03588em"}},"g")))),(0,s.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.2819em"}},(0,s.kt)("span",{parentName:"span"})))))))))),(0,s.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3473em"}},(0,s.kt)("span",{parentName:"span"})))))),(0,s.kt)("span",{parentName:"span",className:"mord"},(0,s.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02778em"}},"D"),(0,s.kt)("span",{parentName:"span",className:"msupsub"},(0,s.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3283em"}},(0,s.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0278em",marginRight:"0.05em"}},(0,s.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,s.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,s.kt)("span",{parentName:"span",className:"mord mtight"},(0,s.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.07153em"}},"K"),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"L"))))),(0,s.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,s.kt)("span",{parentName:"span"})))))),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,s.kt)("span",{parentName:"span",className:"minner"},(0,s.kt)("span",{parentName:"span",className:"mopen delimcenter",style:{top:"0em"}},"("),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal"},"p"),(0,s.kt)("span",{parentName:"span",className:"mopen"},"("),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"y"),(0,s.kt)("span",{parentName:"span",className:"mord"},"\u2223"),(0,s.kt)("span",{parentName:"span",className:"mord mathbf"},"x"),(0,s.kt)("span",{parentName:"span",className:"mclose"},")"),(0,s.kt)("span",{parentName:"span",className:"mord"},"\u2223\u2223"),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal"},"p"),(0,s.kt)("span",{parentName:"span",className:"mopen"},"("),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"y"),(0,s.kt)("span",{parentName:"span",className:"mclose"},")"),(0,s.kt)("span",{parentName:"span",className:"mclose delimcenter",style:{top:"0em"}},")")),(0,s.kt)("span",{parentName:"span",className:"mclose delimcenter",style:{top:"0em"}},(0,s.kt)("span",{parentName:"span",className:"delimsizing size1"},")")))))))),(0,s.kt)("p",{parentName:"li"},"\u901a\u5e38\u8ba1\u7b97 Inception Score \u65f6\uff0c\u4f1a\u751f\u6210 50000 \u4e2a\u56fe\u7247\uff0c\u7136\u540e\u628a\u5b83\u5206\u6210 10 \u4efd\uff0c\u6bcf\u4efd 5000 \u4e2a\uff0c\u5206\u522b\u4ee3\u5165\u516c\u5f0f\u8ba1\u7b97 10 \u6b21 Inception Score\uff0c\u518d\u8ba1\u7b97\u5747\u503c\u548c\u65b9\u5dee\uff0c\u4f5c\u4e3a\u6700\u7ec8\u7684\u8861\u91cf\u6307\u6807\uff08\u5747\u503c\xb1\u65b9\u5dee\uff09\u3002\u4f46\u662f 5000 \u4e2a\u6837\u672c\u5f80\u5f80\u4e0d\u8db3\u4ee5\u5f97\u5230\u51c6\u786e\u7684\u8fb9\u7f18\u5206\u5e03 ",(0,s.kt)("span",{parentName:"p",className:"math math-inline"},(0,s.kt)("span",{parentName:"span",className:"katex"},(0,s.kt)("span",{parentName:"span",className:"katex-mathml"},(0,s.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,s.kt)("semantics",{parentName:"math"},(0,s.kt)("mrow",{parentName:"semantics"},(0,s.kt)("mi",{parentName:"mrow"},"p"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,s.kt)("mi",{parentName:"mrow"},"y"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,s.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"p(y)")))),(0,s.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal"},"p"),(0,s.kt)("span",{parentName:"span",className:"mopen"},"("),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"y"),(0,s.kt)("span",{parentName:"span",className:"mclose"},")"))))),"\u200b\uff0c\u5c24\u5176\u662f\u50cf ImageNet \u8fd9\u79cd\u5305\u542b 1000 \u4e2a\u7c7b\u7684\u6570\u636e\u96c6\u3002"),(0,s.kt)("p",{parentName:"li"},"StyleGAN-nada \u4ee5\u53ca IPL \u5728\u7ecf\u8fc7 batch_size \u4e3a 2\uff0citeration \u4e3a 300 \u7684\u8bad\u7ec3\u540e\uff08\u5176\u4e2d IPL \u7684 Mapper \u662f\u4ee5 batch_size \u4e3a 32\uff0citeration \u4e3a 300 \u8fdb\u884c\u8bad\u7ec3\u7684\uff09\uff0c\u4e8c\u8005\u7684 IS \u5206\u522b\u4e3a ",(0,s.kt)("inlineCode",{parentName:"p"},"(2.2960, 0.2042)")," \u4ee5\u53ca ",(0,s.kt)("inlineCode",{parentName:"p"},"(2.6420, 0.1959)"),"\u3002")),(0,s.kt)("li",{parentName:"ol"},(0,s.kt)("p",{parentName:"li"},"Fr\xe9chet Inception Distance\uff08FID\uff09"),(0,s.kt)("p",{parentName:"li"},(0,s.kt)("strong",{parentName:"p"},"\u8bc4\u4f30\u76ee\u6807\u57df\u7684\u98ce\u683c")),(0,s.kt)("p",{parentName:"li"},"\u8ba1\u7b97 IS \u65f6\u53ea\u8003\u8651\u4e86\u751f\u6210\u6837\u672c\uff0c\u6ca1\u6709\u8003\u8651\u771f\u5b9e\u6570\u636e\uff0c\u5373 ",(0,s.kt)("strong",{parentName:"p"},"IS \u65e0\u6cd5\u53cd\u6620\u771f\u5b9e\u6570\u636e\u548c\u6837\u672c\u4e4b\u95f4\u7684\u8ddd\u79bb"),"\uff0cIS \u5224\u65ad\u6570\u636e\u771f\u5b9e\u6027\u7684\u4f9d\u636e\uff0c\u6e90\u4e8e Inception V3 \u7684\u8bad\u7ec3\u96c6 ImageNet\uff0c\u5728 Inception V3 \u7684\u201c\u4e16\u754c\u89c2\u201d\u4e0b\uff0c\u51e1\u662f\u4e0d\u50cf ImageNet \u7684\u6570\u636e\uff0c\u90fd\u662f\u4e0d\u771f\u5b9e\u7684\uff0c\u90fd\u4e0d\u80fd\u4fdd\u8bc1\u8f93\u51fa\u4e00\u4e2a sharp \u7684 predition distribution\u3002\u56e0\u6b64\uff0c\u8981\u60f3\u66f4\u597d\u5730\u8bc4\u4ef7\u751f\u6210\u7f51\u7edc\uff0c\u5c31\u8981\u4f7f\u7528\u66f4\u52a0\u6709\u6548\u7684\u65b9\u6cd5\u8ba1\u7b97\u771f\u5b9e\u5206\u5e03\u4e0e\u751f\u6210\u6837\u672c\u4e4b\u95f4\u7684\u8ddd\u79bb\u3002"),(0,s.kt)("p",{parentName:"li"},"FID \u8ddd\u79bb\u8ba1\u7b97\u771f\u5b9e\u6837\u672c\uff0c\u751f\u6210\u6837\u672c\u5728\u7279\u5f81\u7a7a\u95f4\u4e4b\u95f4\u7684\u8ddd\u79bb\u3002\u9996\u5148\u5229\u7528 Inception \u7f51\u7edc\u6765\u63d0\u53d6\u7279\u5f81\uff0c\u7136\u540e\u4f7f\u7528\u9ad8\u65af\u6a21\u578b\u5bf9\u7279\u5f81\u7a7a\u95f4\u8fdb\u884c\u5efa\u6a21\uff0c\u518d\u53bb\u6c42\u89e3\u4e24\u4e2a\u7279\u5f81\u4e4b\u95f4\u7684\u8ddd\u79bb\uff0c\u8f83\u4f4e\u7684 FID \u610f\u5473\u7740\u8f83\u9ad8\u56fe\u7247\u7684\u8d28\u91cf\u548c\u591a\u6837\u6027\u3002"),(0,s.kt)("p",{parentName:"li"},"StyleGAN-nada \u4ee5\u53ca IPL \u5728\u7ecf\u8fc7 batch_size \u4e3a 2\uff0citeration \u4e3a 300 \u7684\u8bad\u7ec3\u540e\uff08\u5176\u4e2d IPL \u7684 Mapper \u662f\u4ee5 batch_size \u4e3a 32\uff0citeration \u4e3a 300 \u8fdb\u884c\u8bad\u7ec3\u7684\uff09\uff0c\u4e8c\u8005\u7684 FID \u5206\u522b\u4e3a ",(0,s.kt)("inlineCode",{parentName:"p"},"84")," \u4ee5\u53ca ",(0,s.kt)("inlineCode",{parentName:"p"},"58"),"\u3002")),(0,s.kt)("li",{parentName:"ol"},(0,s.kt)("p",{parentName:"li"},"Single Image Fr\xe9chet Inception Score\uff08SIFID\uff09"),(0,s.kt)("p",{parentName:"li"},"FID \u6d4b\u91cf\u751f\u6210\u7684\u56fe\u50cf\u7684\u6df1\u5c42\u7279\u5f81\u5206\u5e03\u4e0e\u771f\u5b9e\u56fe\u50cf\u7684\u5206\u5e03\u4e4b\u95f4\u7684\u504f\u5dee\u3002\u5728 ICCV 2019 Best Paper \u4e2d\u63d0\u51fa\u4e86 SIFID\uff0c\u53ea\u4f7f\u7528\u4e00\u5f20\u771f\u5b9e\u76ee\u6807\u57df\u7684\u56fe\u50cf\u3002\u4e0e FID \u4e0d\u540c\uff0cSFID \u4e0d\u4f7f\u7528 Inception Network \u4e2d\u6700\u540e\u4e00\u4e2a\u6c60\u5316\u5c42\u4e4b\u540e\u7684\u6fc0\u6d3b\u77e2\u91cf\uff08\u6bcf\u4e2a\u56fe\u50cf\u4e00\u4e2a\u5411\u91cf\uff09\uff0c\u800c\u662f\u5728\u7b2c\u4e8c\u4e2a\u6c60\u5c42\u4e4b\u524d\u7684\u5377\u79ef\u5c42\u8f93\u51fa\u5904\u4f7f\u7528\u6df1\u5c42\u7279\u5f81\u7684\u5185\u90e8\u5206\u5e03\uff08feature map \u4e2d\u6bcf\u4e2a\u4f4d\u7f6e\u4e00\u4e2a\u5411\u91cf\uff09\u3002\u6700\u7ec8 SIFID \u662f\u771f\u5b9e\u56fe\u50cf\u548c\u751f\u6210\u7684\u6837\u672c\u4e2d\u8fd9\u4e9b\u7279\u5f81\u7684\u7edf\u8ba1\u6570\u636e\u4e4b\u95f4\u7684 FID\u3002")),(0,s.kt)("li",{parentName:"ol"},(0,s.kt)("p",{parentName:"li"},"Structural Consistency Score\uff08SCS\uff09"),(0,s.kt)("p",{parentName:"li"},"\u8bc4\u4f30\u56fe\u50cf\u7684\u7ed3\u6784\u4fdd\u5b58\u80fd\u529b")),(0,s.kt)("li",{parentName:"ol"},(0,s.kt)("p",{parentName:"li"},"Identity Similarity\uff08ID\uff09"),(0,s.kt)("p",{parentName:"li"},"\u8bc4\u4f30\u56fe\u50cf\u7684\u7279\u5f81\u4fdd\u5b58\u80fd\u529b"))),(0,s.kt)("h2",{id:"\u65b0\u589e\u529f\u80fd"},"\u65b0\u589e\u529f\u80fd"),(0,s.kt)("h3",{id:"\u81ea\u5b9a\u4e49\u56fe\u50cf\u98ce\u683c\u8fc1\u79fb"},"\u81ea\u5b9a\u4e49\u56fe\u50cf\u98ce\u683c\u8fc1\u79fb"),(0,s.kt)("p",null,"\u65b0\u589e\u4e86\u81ea\u5b9a\u4e49\u56fe\u50cf\u98ce\u683c\u8fc1\u79fb\u529f\u80fd\u3002"),(0,s.kt)("p",null," ",(0,s.kt)("a",{parentName:"p",href:"https://yuval-alaluf.github.io/hyperstyle/"},"HyperStyle "),"\u4e2d\u7684 e4e encoder \u5c06\u81ea\u5b9a\u4e49\u7684\u771f\u5b9e\u56fe\u50cf\u7f16\u7801\u81f3 StyleGAN2 \u4e2d\u7684 W \u7a7a\u95f4\u751f\u6210 latent codes\uff0c\u518d\u5c06\u5176\u5206\u522b\u8f93\u5165\u81f3\u6e90\u57df\u751f\u6210\u5668\u4ee5\u53ca\u76ee\u6807\u57df\u751f\u6210\u5668\u4ee5\u4ee3\u66ff\u539f\u59cb\u7684\u4ece\u6b63\u6001\u5206\u5e03\u4e2d sample \u51fa\u7684\u968f\u673a\u5411\u91cf\u751f\u6210\u7684 ",(0,s.kt)("inlineCode",{parentName:"p"},"w_codes"),"\uff0c\u4ece\u800c\u5f97\u5230\u76f8\u5e94\u7684\u56fe\u7247\u3002\u5176\u4e2d e4e encoder \u6765\u6e90\u4e8e HyperStyle \u63d0\u4f9b\u7684\u9884\u8bad\u7ec3 checkpoint\u3002"),(0,s.kt)("p",null,"\u4f7f\u7528\u65b9\u6cd5\uff1a\u8fd0\u884c ",(0,s.kt)("inlineCode",{parentName:"p"},"inference.py"),"\uff0c\u8bbe\u7f6e\u5bf9\u5e94\u7684\u53c2\u6570\uff0c\u5982\u751f\u6210\u5668\u4ee5\u53ca e4e encoder \u7684\u8def\u5f84\u3001\u56fe\u50cf\u8def\u5f84\u7b49\uff0c\u6700\u540e\u8fd0\u884c\u5373\u53ef\u3002"),(0,s.kt)("h4",{id:"\u4fee\u6539\u65e5\u5fd7"},"\u4fee\u6539\u65e5\u5fd7"),(0,s.kt)("ol",null,(0,s.kt)("li",{parentName:"ol"},"\u7b2c\u4e00\u6b21\u5c1d\u8bd5\u53ea\u52a0\u8f7d\u4e86 ",(0,s.kt)("inlineCode",{parentName:"li"},"w_encoder")," \u7c7b\u53ca\u5176\u5bf9\u5e94 checkpoint \u53c2\u6570\uff0c\u5bfc\u81f4\u5e76\u672a\u5c06\u771f\u5b9e\u56fe\u7247\u7f16\u7801\u5230 StyleGAN \u7684 W \u7a7a\u95f4\u4e2d\uff0c\u6ca1\u6709 inversion \u51fa\u5408\u7406\u7684\u7ed3\u679c"),(0,s.kt)("li",{parentName:"ol"},"\u7b2c\u4e8c\u6b21\u5c1d\u8bd5\u4f7f\u7528\u4e86 ",(0,s.kt)("inlineCode",{parentName:"li"},"restyle_e4e_encoder"),"\uff0c\u4f46\u662f\u6ca1\u6709\u4f7f\u7528 dlib \u8fdb\u884c alignment\uff0c\u4e5f\u6ca1\u6709\u4f7f\u7528 restyle \u6a21\u578b\u5728\u53cd\u6f14\u65f6\u4f7f\u7528\u7684\u591a\u6b21\u8fdb\u884c\u524d\u5411\u4f20\u64ad\u6765\u4fee\u6b63 latent code \u7684\u7b56\u7565\u3002\u6b64\u6b21\u5c1d\u8bd5\u867d\u7136\u53cd\u6f14\u51fa\u4e86\u5408\u7406\u7684\u4eba\u50cf\uff0c\u4f46\u662f\u4eba\u50cf\u7684\u7279\u5f81\u4fdd\u5b58\u80fd\u529b\u975e\u5e38\u5f31"),(0,s.kt)("li",{parentName:"ol"},"\u7b2c\u4e09\u6b21\u5c1d\u8bd5\u89e3\u51b3\u4e86\u4e0a\u4e00\u6b21\u53d1\u73b0\u7684\u95ee\u9898\uff0c\u52a0\u5165 dlib \u63d0\u4f9b\u7684 landmark \u68c0\u6d4b\u4ee5\u5b9e\u73b0 alignment\uff0c\u5e76\u4e14\u4f7f\u7528 ",(0,s.kt)("inlineCode",{parentName:"li"},"run_loop")," \u51fd\u6570\u5728 restyle_e4e_encoder \u4e2d\u8fdb\u884c\u591a\u6b21\u524d\u5411\u4f20\u64ad\u4ee5\u4fee\u6b63\u5f97\u5230\u7684 W \u7a7a\u95f4\u7684 latent code\uff0c\u6548\u679c\u8f83\u597d"),(0,s.kt)("li",{parentName:"ol"},"\u5bf9\u6bd4 pSp \u548c e4e encoder\uff0cpSp \u5bf9\u4eba\u8138\u56fe\u50cf\u7684\u8fd8\u539f\u80fd\u529b\u8f83\u5f3a\uff0c\u4f46\u662f\u4f1a\u5bfc\u81f4\u76ee\u6807\u57df\u56fe\u50cf\u5177\u6709\u968f\u673a\u7684\u5f69\u8272\u5149\u6655")),(0,s.kt)("h2",{id:"\u95ee\u9898\u63d0\u51fa\u4e0e\u6539\u8fdb"},"\u95ee\u9898\u63d0\u51fa\u4e0e\u6539\u8fdb"),(0,s.kt)("h3",{id:"\u8bad\u7ec3\u9636\u6bb5\u4eba\u5de5-prompts-\u7684\u4f5c\u7528\u662f\u4ec0\u4e48"},"\u8bad\u7ec3\u9636\u6bb5\u4eba\u5de5 prompts \u7684\u4f5c\u7528\u662f\u4ec0\u4e48\uff1f"),(0,s.kt)("h4",{id:"\u4f5c\u7528"},"\u4f5c\u7528"),(0,s.kt)("ol",null,(0,s.kt)("li",{parentName:"ol"},"\u4eba\u5de5\u8bbe\u8ba1\u7684 prompts \u5728\u8ba1\u7b97 ",(0,s.kt)("inlineCode",{parentName:"li"},"text_features")," \u65f6\u7528\u4e8e\u5b9a\u4f4d ",(0,s.kt)("inlineCode",{parentName:"li"},"eot")," \u5c42\u7b26\u53f7\u6240\u8868\u793a\u7684\u7ef4\u5ea6\u6765\u8fdb\u884c\u6295\u5f71\uff0c\u4f46\u4e0d\u53c2\u4e0e ",(0,s.kt)("inlineCode",{parentName:"li"},"text_features")," \u7684\u5b9e\u9645\u8ba1\u7b97"),(0,s.kt)("li",{parentName:"ol"},"\u5728\u8bad\u7ec3 Mapper \u7684 stage 1 \u7684\u635f\u5931\u51fd\u6570\u4e2d\uff0c\u5728\u8ba1\u7b97\u5bf9\u6bd4\u635f\u5931\u51fd\u6570\u65f6\uff0cMapper \u5b66\u4e60\u5230\u7684 prompts \u7684\u6587\u5b57\u7279\u5f81\u7279\u5f81\u4f1a\u4e0e\u4eba\u5de5\u8bbe\u8ba1\u7684 prompts \u7684\u6587\u5b57\u7279\u5f81\u8fdb\u884c element-wise \u7684\u76f8\u52a0\uff0c\u6700\u540e\u518d\u4e0e \u6e90\u57df\u751f\u6210\u5668\u5f97\u5230\u7684\u56fe\u7247\u7684\u56fe\u50cf\u7279\u5f81\u8fdb\u884c\u5bf9\u6bd4\u635f\u5931\u8ba1\u7b97")),(0,s.kt)("h4",{id:"\u601d\u8003"},"\u601d\u8003"),(0,s.kt)("p",null,"IPL \u65b9\u6cd5\u5bf9 Mapper \u5b66\u4e60\u5230\u7684 prompts \u9664\u4e86\uff081\uff09\u4f7f\u7528\u5bf9\u6bd4\u5b66\u4e60\u4f7f prompts \u5b66\u4e60\u5230\u6e90\u57df\u56fe\u7247\u7684\u7279\u5f81\u4ee5\u53ca\uff082\uff09\u4f7f\u7528\u57df\u6b63\u5219\u5316\u4f7f\u5f97 prompts \u5411\u76ee\u6807\u57df\u6807\u7b7e\u5bf9\u9f50\u4e4b\u5916\uff0c\u5e76\u6ca1\u6709\u4f7f\u7528\u5176\u4ed6\u4e0e\u4eba\u5de5\u8bbe\u8ba1\u7684 prompts \u6709\u5173\u7684\u6b63\u5219\u5316\u65b9\u5f0f\u6765\u7ea6\u675f prompts \u7684\u5b66\u4e60\uff0c\u56e0\u6b64\u4eba\u5de5\u8bbe\u8ba1\u7684 prompts \u53ef\u80fd\u5e76\u6ca1\u6709\u8d77\u5230\u592a\u5927\u7684\u7ea6\u675f\u4f5c\u7528\u3002"),(0,s.kt)("p",null,"\u5982\u679c\u5bf9\u6bd4\u5b66\u4e60\u635f\u5931\u662f\u4e3a\u4e86\u8ba9 Mapper \u81ea\u76d1\u7763\u5b66\u4e60\u5230\u56fe\u7247\u7684\u7279\u5f81\u5916\uff0c\u90a3\u4e48\u662f\u5426\u53ef\u4ee5\u5bf9\u57df\u6b63\u5219\u5316\u635f\u5931\u8fdb\u884c\u6539\u8fdb\uff0c\u7ea6\u675f\u5b66\u4e60\u5230\u7684 prompts \u5411\u4eba\u5de5\u8bbe\u8ba1\u7684\u521d\u59cb\u5316 prompts \u5bf9\u9f50\uff0c\u4ee5\u5b9e\u73b0\u7c7b\u4f3c\u4e8e Stable Diffusion \u7c7b\u4f3c\u7684 prompts \u63a7\u5236\u56fe\u50cf\u751f\u6210\u7684\u6548\u679c\u3002"),(0,s.kt)("h3",{id:"mapper-\u7ed3\u6784\u7684\u8bbe\u8ba1"},"Mapper \u7ed3\u6784\u7684\u8bbe\u8ba1"),(0,s.kt)("p",null,"Mapper \u7684\u4f5c\u7528\u662f\u4ece W \u7a7a\u95f4\u7684\u9690\u5f0f\u4ee3\u7801\u4e2d\u5b66\u4e60\u51fa\u7b26\u5408\u6e90\u57df\u56fe\u7247\u7279\u5f81\u4ee5\u53ca\u7b26\u5408\u76ee\u6807\u57df\u6587\u5b57\u7279\u5f81\u7684 prompts\u3002"),(0,s.kt)("p",null,"\u539f\u59cb"))}k.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/86cc22d4.aa8c1fa6.js b/assets/js/86cc22d4.aa8c1fa6.js new file mode 100644 index 000000000..627b113d7 --- /dev/null +++ b/assets/js/86cc22d4.aa8c1fa6.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunknpy_notebook=self.webpackChunknpy_notebook||[]).push([[3576],{5745:e=>{e.exports=JSON.parse('{"name":"docusaurus-plugin-content-pages","id":"default"}')}}]); \ No newline at end of file diff --git a/assets/js/935f2afb.9fcb2a88.js b/assets/js/935f2afb.9fcb2a88.js new file mode 100644 index 000000000..5e9f2ddee --- /dev/null +++ b/assets/js/935f2afb.9fcb2a88.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunknpy_notebook=self.webpackChunknpy_notebook||[]).push([[53],{1109:e=>{e.exports=JSON.parse('{"pluginId":"default","version":"current","label":"Next","banner":null,"badge":false,"noIndex":false,"className":"docs-version-current","isLast":true,"docsSidebars":{"deep_learning":[{"type":"link","label":"Welcome","href":"/docs/Deep-Learning/intro","docId":"Deep-Learning/intro"},{"type":"link","label":"\u67e5\u6f0f\u8865\u7f3a","href":"/docs/Deep-Learning/Fill-The-Gaps","docId":"Deep-Learning/Fill-The-Gaps"},{"type":"category","label":"\u57fa\u7840\u77e5\u8bc6","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"AlexNet","href":"/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/AlexNet","docId":"Deep-Learning/\u57fa\u7840\u77e5\u8bc6/AlexNet"},{"type":"link","label":"\u5377\u79ef\u5c42","href":"/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/ConvolutionalLayer","docId":"Deep-Learning/\u57fa\u7840\u77e5\u8bc6/ConvolutionalLayer"},{"type":"link","label":"\u4ece\u5168\u8fde\u63a5\u5230\u5377\u79ef","href":"/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/FromFullyConnectedLayerToConvolutionalLayer","docId":"Deep-Learning/\u57fa\u7840\u77e5\u8bc6/FromFullyConnectedLayerToConvolutionalLayer"},{"type":"link","label":"K-fold cross-validation","href":"/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/K-foldCross-validation","docId":"Deep-Learning/\u57fa\u7840\u77e5\u8bc6/K-foldCross-validation"},{"type":"link","label":"LeNet","href":"/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/LeNet","docId":"Deep-Learning/\u57fa\u7840\u77e5\u8bc6/LeNet"},{"type":"link","label":"\u5173\u4e8eLogistic Regression","href":"/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/LogisticRegression","docId":"Deep-Learning/\u57fa\u7840\u77e5\u8bc6/LogisticRegression"},{"type":"link","label":"Perceptron","href":"/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/Perceptron","docId":"Deep-Learning/\u57fa\u7840\u77e5\u8bc6/Perceptron"},{"type":"link","label":"\u6c60\u5316\u5c42","href":"/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/PoolingLayer","docId":"Deep-Learning/\u57fa\u7840\u77e5\u8bc6/PoolingLayer"},{"type":"link","label":"PyTorch\u57fa\u7840","href":"/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/PytorchBasics","docId":"Deep-Learning/\u57fa\u7840\u77e5\u8bc6/PytorchBasics"},{"type":"link","label":"\u6b63\u5219\u5316\u4e0e\u6743\u91cd\u8870\u9000","href":"/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/\u6b63\u5219\u5316\u4e0e\u6743\u91cd\u8870\u9000","docId":"Deep-Learning/\u57fa\u7840\u77e5\u8bc6/\u6b63\u5219\u5316\u4e0e\u6743\u91cd\u8870\u9000"},{"type":"link","label":"\u6df1\u5ea6\u53ef\u5206\u79bb\u5377\u79ef","href":"/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/\u6df1\u5ea6\u53ef\u5206\u79bb\u5377\u79ef","docId":"Deep-Learning/\u57fa\u7840\u77e5\u8bc6/\u6df1\u5ea6\u53ef\u5206\u79bb\u5377\u79ef"},{"type":"link","label":"\u6fc0\u6d3b\u51fd\u6570\u4e0eLoss\u7684\u68af\u5ea6","href":"/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/\u6fc0\u6d3b\u51fd\u6570\u4e0eLoss\u7684\u68af\u5ea6","docId":"Deep-Learning/\u57fa\u7840\u77e5\u8bc6/\u6fc0\u6d3b\u51fd\u6570\u4e0eLoss\u7684\u68af\u5ea6"}]},{"type":"category","label":"\u5b9e\u6218\u7ec3\u4e60","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"Visdom\u53ef\u89c6\u5316","href":"/docs/Deep-Learning/\u5b9e\u6218\u7ec3\u4e60/Visdom Visualization","docId":"Deep-Learning/\u5b9e\u6218\u7ec3\u4e60/Visdom Visualization"},{"type":"link","label":"Speaker Classification","href":"/docs/Deep-Learning/\u5b9e\u6218\u7ec3\u4e60/Speaker Classification","docId":"Deep-Learning/\u5b9e\u6218\u7ec3\u4e60/Speaker Classification"},{"type":"link","label":"\u672c\u79d1\u6bd5\u4e1a\u8bba\u6587\uff1a\u57fa\u4e8e Prompt Learning \u7684\u89c6\u89c9-\u8bed\u8a00\u5927\u6a21\u578b\u5728\u56fe\u50cf\u751f\u6210\u4e2d\u7684\u5e94\u7528\u4e0e\u7814\u7a76","href":"/docs/Deep-Learning/\u5b9e\u6218\u7ec3\u4e60/Undergraduate-Dissertation","docId":"Deep-Learning/\u5b9e\u6218\u7ec3\u4e60/Undergraduate-Dissertation"}]},{"type":"category","label":"\u5927\u6a21\u578b","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"\u81ea\u6ce8\u610f\u529b\uff08Self-Attention\uff09","href":"/docs/Deep-Learning/\u5927\u6a21\u578b/Self-Attention","docId":"Deep-Learning/\u5927\u6a21\u578b/Self-Attention"},{"type":"link","label":"NeurIPS 2017: Attention Is All You Need","href":"/docs/Deep-Learning/\u5927\u6a21\u578b/Attention-Is-All-You-Need","docId":"Deep-Learning/\u5927\u6a21\u578b/Attention-Is-All-You-Need"},{"type":"link","label":"\u81ea\u76d1\u7763\u5b66\u4e60\uff08Self-Supervised Learning\uff09","href":"/docs/Deep-Learning/\u5927\u6a21\u578b/Self-Supervised-Learning","docId":"Deep-Learning/\u5927\u6a21\u578b/Self-Supervised-Learning"},{"type":"link","label":"\u56fe\u50cf\u751f\u6210\u6a21\u578b","href":"/docs/Deep-Learning/\u5927\u6a21\u578b/Image-Generation-Models","docId":"Deep-Learning/\u5927\u6a21\u578b/Image-Generation-Models"},{"type":"link","label":"\u751f\u6210\u5f0f\u5bf9\u6297\u7f51\u7edc\uff08GAN\uff09","href":"/docs/Deep-Learning/\u5927\u6a21\u578b/GAN","docId":"Deep-Learning/\u5927\u6a21\u578b/GAN"},{"type":"link","label":"\u6269\u6563\u6a21\u578b\uff08Diffusion Model\uff09","href":"/docs/Deep-Learning/\u5927\u6a21\u578b/Diffusion-Model","docId":"Deep-Learning/\u5927\u6a21\u578b/Diffusion-Model"},{"type":"category","label":"Prompt Learning","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"\u672c\u79d1\u6bd5\u4e1a\u8bba\u6587\uff1a\u57fa\u4e8e Prompt Learning \u7684\u89c6\u89c9-\u8bed\u8a00\u5927\u6a21\u578b\u5728\u56fe\u50cf\u751f\u6210\u4e2d\u7684\u5e94\u7528\u4e0e\u7814\u7a76","href":"/docs/Deep-Learning/\u5927\u6a21\u578b/Prompt Learning/Undergraduate-Dissertation","docId":"Deep-Learning/\u5927\u6a21\u578b/Prompt Learning/Undergraduate-Dissertation"}]}]},{"type":"category","label":"\u8bba\u6587\u7b14\u8bb0","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"NeurIPS 2017: Attention Is All You Need","href":"/docs/Deep-Learning/\u8bba\u6587\u7b14\u8bb0/Attention Is All You Need","docId":"Deep-Learning/\u8bba\u6587\u7b14\u8bb0/Attention Is All You Need"},{"type":"link","label":"NeurIPS 2020: Denoising Diffusion Probabilistic Models","href":"/docs/Deep-Learning/\u8bba\u6587\u7b14\u8bb0/Denoising Diffusion Probabilistic Models","docId":"Deep-Learning/\u8bba\u6587\u7b14\u8bb0/Denoising Diffusion Probabilistic Models"},{"type":"link","label":"CVPR 2022: High-Resolution Image Synthesis with Latent Diffusion Models","href":"/docs/Deep-Learning/\u8bba\u6587\u7b14\u8bb0/High-Resolution Image Synthesis with Latent Diffusion Models","docId":"Deep-Learning/\u8bba\u6587\u7b14\u8bb0/High-Resolution Image Synthesis with Latent Diffusion Models"},{"type":"link","label":"CVPR 2023: Zero-shot Generative Model Adaptation via Image-specific Prompt Learning","href":"/docs/Deep-Learning/\u8bba\u6587\u7b14\u8bb0/Zero-shot Generative Model Adaptation via Image-specific Prompt Learning","docId":"Deep-Learning/\u8bba\u6587\u7b14\u8bb0/Zero-shot Generative Model Adaptation via Image-specific Prompt Learning"}]}],"tui_mian":[{"type":"link","label":"Welcome","href":"/docs/Tui-Mian/intro","docId":"Tui-Mian/intro"},{"type":"link","label":"\u7ecf\u9a8c\u8d34\uff1a2023\u5e74\u53cc\u975e\u8ba1\u7b97\u673a\u4fdd\u7814\u7ecf\u5386","href":"/docs/Tui-Mian/Summary","docId":"Tui-Mian/Summary"},{"type":"category","label":"\u6570\u5b66","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"\u590f\u4ee4\u8425\u9762\u8bd5\u6570\u5b66\u90e8\u5206\u590d\u4e60","href":"/docs/Tui-Mian/\u6570\u5b66/\u590f\u4ee4\u8425\u9762\u8bd5\u6570\u5b66\u90e8\u5206\u590d\u4e60","docId":"Tui-Mian/\u6570\u5b66/\u590f\u4ee4\u8425\u9762\u8bd5\u6570\u5b66\u90e8\u5206\u590d\u4e60"},{"type":"link","label":"\u6982\u7387\u8bba","href":"/docs/Tui-Mian/\u6570\u5b66/\u6982\u7387\u8bba","docId":"Tui-Mian/\u6570\u5b66/\u6982\u7387\u8bba"},{"type":"link","label":"\u7ebf\u6027\u4ee3\u6570","href":"/docs/Tui-Mian/\u6570\u5b66/\u7ebf\u6027\u4ee3\u6570","docId":"Tui-Mian/\u6570\u5b66/\u7ebf\u6027\u4ee3\u6570"}]},{"type":"category","label":"\u673a\u8bd5","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"\u5927\u6570\u9664\u6cd5","href":"/docs/Tui-Mian/\u673a\u8bd5/\u5927\u6570\u9664\u6cd5","docId":"Tui-Mian/\u673a\u8bd5/\u5927\u6570\u9664\u6cd5"}]},{"type":"category","label":"\u7b80\u5386","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"\u7b80\u5386\u9762\u8bd5\u51c6\u5907","href":"/docs/Tui-Mian/\u7b80\u5386/\u7b80\u5386\u9762\u8bd5\u51c6\u5907","docId":"Tui-Mian/\u7b80\u5386/\u7b80\u5386\u9762\u8bd5\u51c6\u5907"}]},{"type":"category","label":"\u8ba1\u7b97\u673a\u57fa\u7840\u7efc\u5408","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"\u6570\u636e\u7ed3\u6784","href":"/docs/Tui-Mian/\u8ba1\u7b97\u673a\u57fa\u7840\u7efc\u5408/\u6570\u636e\u7ed3\u6784","docId":"Tui-Mian/\u8ba1\u7b97\u673a\u57fa\u7840\u7efc\u5408/\u6570\u636e\u7ed3\u6784"}]}],"algorithms":[{"type":"link","label":"Welcome","href":"/docs/Algorithms/intro","docId":"Algorithms/intro"},{"type":"link","label":"STL\u6a21\u677f","href":"/docs/Algorithms/STL\u6a21\u677f","docId":"Algorithms/STL\u6a21\u677f"},{"type":"link","label":"\u673a\u8bd5\u6280\u5de7\u4e0eSTL","href":"/docs/Algorithms/\u673a\u8bd5\u6280\u5de7\u4e0eSTL","docId":"Algorithms/\u673a\u8bd5\u6280\u5de7\u4e0eSTL"},{"type":"category","label":"\u9898\u89e3","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"\u4e00\u7ef4\u524d\u7f00\u548c\uff08\u5237\u51fa\u4e00\u9053\u5899\uff09","href":"/docs/Algorithms/\u9898\u89e3/\u4e00\u7ef4\u524d\u7f00\u548c\uff08\u5237\u51fa\u4e00\u9053\u5899\uff09","docId":"Algorithms/\u9898\u89e3/\u4e00\u7ef4\u524d\u7f00\u548c\uff08\u5237\u51fa\u4e00\u9053\u5899\uff09"},{"type":"link","label":"\u53cd\u5e8f\u8f93\u51fa","href":"/docs/Algorithms/\u9898\u89e3/\u53cd\u5e8f\u8f93\u51fa","docId":"Algorithms/\u9898\u89e3/\u53cd\u5e8f\u8f93\u51fa"},{"type":"link","label":"\u6392\u5217\u7ec4\u5408\uff08\u6c4230\u7684\u500d\u6570\uff09","href":"/docs/Algorithms/\u9898\u89e3/\u6392\u5217\u7ec4\u5408\uff08\u6c4230\u7684\u500d\u6570\uff09","docId":"Algorithms/\u9898\u89e3/\u6392\u5217\u7ec4\u5408\uff08\u6c4230\u7684\u500d\u6570\uff09"}]}],"curriculum":[{"type":"link","label":"Welcome","href":"/docs/Curriculum/intro","docId":"Curriculum/intro"},{"type":"category","label":"\u6570\u5b57\u56fe\u50cf\u5904\u7406","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"\u6570\u5b57\u56fe\u50cf\u5904\u7406\u590d\u4e60\u7b14\u8bb0","href":"/docs/Curriculum/\u6570\u5b57\u56fe\u50cf\u5904\u7406/Note","docId":"Curriculum/\u6570\u5b57\u56fe\u50cf\u5904\u7406/Note"}]},{"type":"category","label":"\u7f16\u8bd1\u539f\u7406","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"\u7f16\u8bd1\u539f\u7406\u7b14\u8bb0","href":"/docs/Curriculum/\u7f16\u8bd1\u539f\u7406/Note","docId":"Curriculum/\u7f16\u8bd1\u539f\u7406/Note"}]},{"type":"category","label":"\u64cd\u4f5c\u7cfb\u7edf\u8bfe\u8bbe","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"Linux\u7cfb\u7edf\u4e0bGeekOS\u7684\u73af\u5883\u914d\u7f6e","href":"/docs/Curriculum/\u64cd\u4f5c\u7cfb\u7edf\u8bfe\u8bbe/Environment-Configuration","docId":"Curriculum/\u64cd\u4f5c\u7cfb\u7edf\u8bfe\u8bbe/Environment-Configuration"},{"type":"link","label":"GeekOS project 0\u7684\u5b9e\u73b0","href":"/docs/Curriculum/\u64cd\u4f5c\u7cfb\u7edf\u8bfe\u8bbe/GeekOS-project-0","docId":"Curriculum/\u64cd\u4f5c\u7cfb\u7edf\u8bfe\u8bbe/GeekOS-project-0"}]}],"others":[{"type":"link","label":"Welcome","href":"/docs/Others/intro","docId":"Others/intro"},{"type":"category","label":"Linux","collapsible":true,"collapsed":true,"items":[{"type":"category","label":"\u5b9e\u7528\u5de5\u5177","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"\u7ec8\u7aef\u4ee3\u7406","href":"/docs/Others/Linux/\u5b9e\u7528\u5de5\u5177/\u7ec8\u7aef\u4ee3\u7406","docId":"Others/Linux/\u5b9e\u7528\u5de5\u5177/\u7ec8\u7aef\u4ee3\u7406"}]},{"type":"category","label":"\u5ba2\u5236\u5316","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"\u5982\u4f55\u8ba9\u4f60\u7684Kde Plasma\u770b\u8d77\u6765\u66f4\u50cfmacOS","href":"/docs/Others/Linux/\u5ba2\u5236\u5316/\u5982\u4f55\u8ba9\u4f60\u7684KDE\u770b\u8d77\u6765\u66f4\u50cfmacOS","docId":"Others/Linux/\u5ba2\u5236\u5316/\u5982\u4f55\u8ba9\u4f60\u7684KDE\u770b\u8d77\u6765\u66f4\u50cfmacOS"}]},{"type":"category","label":"\u95ee\u9898\u89e3\u51b3","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"\u6302\u8f7dWindows\u78c1\u76d8\u4e3a\u53ea\u8bfb\u6587\u4ef6","href":"/docs/Others/Linux/\u95ee\u9898\u89e3\u51b3/\u53cc\u7cfb\u7edf\u6302\u8f7dWindows\u78c1\u76d8\u4e3a\u53ea\u8bfb\u6587\u4ef6","docId":"Others/Linux/\u95ee\u9898\u89e3\u51b3/\u53cc\u7cfb\u7edf\u6302\u8f7dWindows\u78c1\u76d8\u4e3a\u53ea\u8bfb\u6587\u4ef6"}]}]},{"type":"category","label":"\u535a\u5ba2\u642d\u5efa","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"\u544a\u793a\u680f","href":"/docs/Others/\u535a\u5ba2\u642d\u5efa/\u544a\u793a\u680f","docId":"Others/\u535a\u5ba2\u642d\u5efa/\u544a\u793a\u680f"}]}],"acknowledgement":[{"type":"link","label":"\u9e23\u8c22","href":"/docs/Acknowledgement/intro","docId":"Acknowledgement/intro"}]},"docs":{"Acknowledgement/intro":{"id":"Acknowledgement/intro","title":"\u9e23\u8c22","description":"\u996e\u6c34\u601d\u6e90","sidebar":"acknowledgement"},"Algorithms/\u673a\u8bd5\u6280\u5de7\u4e0eSTL":{"id":"Algorithms/\u673a\u8bd5\u6280\u5de7\u4e0eSTL","title":"\u673a\u8bd5\u6280\u5de7\u4e0eSTL","description":"\u8f6c\u8f7d\u81eaSonder\u7684\u7b14\u8bb0\u672c","sidebar":"algorithms"},"Algorithms/\u9898\u89e3/\u53cd\u5e8f\u8f93\u51fa":{"id":"Algorithms/\u9898\u89e3/\u53cd\u5e8f\u8f93\u51fa","title":"\u53cd\u5e8f\u8f93\u51fa","description":"\u8bbeN\u662f\u4e00\u4e2a\u56db\u4f4d\u6570\uff0c\u5b83\u76849\u500d\u6070\u597d\u662f\u5176\u53cd\u5e8f\u6570\uff08\u4f8b\u5982\uff1a1234\u7684\u53cd\u5e8f\u6570\u662f4321\uff09\uff0c\u6c42N\u7684\u503c","sidebar":"algorithms"},"Algorithms/\u9898\u89e3/\u6392\u5217\u7ec4\u5408\uff08\u6c4230\u7684\u500d\u6570\uff09":{"id":"Algorithms/\u9898\u89e3/\u6392\u5217\u7ec4\u5408\uff08\u6c4230\u7684\u500d\u6570\uff09","title":"\u6392\u5217\u7ec4\u5408\uff08\u6c4230\u7684\u500d\u6570\uff09","description":"\u8f93\u5165\u4e00\u4e2a\u6570\uff0c\u6bd4\u5982201\uff0c\u8ba9\u6570\u5b57\u968f\u610f\u7ec4\u5408\uff0c\u662f\u5426\u80fd\u7ec4\u5408\u51fa30\u7684\u500d\u6570\uff0c\u5982\u679c\u80fd\u591f\u7ec4\u5408\u621030\u7684\u500d\u6570\uff0c\u5c31\u8f93\u51fa\u6700\u5927\u7684\u500d\u6570\uff0c\u4e0d\u80fd\u5c31\u8f93\u51fa-1","sidebar":"algorithms"},"Algorithms/\u9898\u89e3/\u4e00\u7ef4\u524d\u7f00\u548c\uff08\u5237\u51fa\u4e00\u9053\u5899\uff09":{"id":"Algorithms/\u9898\u89e3/\u4e00\u7ef4\u524d\u7f00\u548c\uff08\u5237\u51fa\u4e00\u9053\u5899\uff09","title":"\u4e00\u7ef4\u524d\u7f00\u548c\uff08\u5237\u51fa\u4e00\u9053\u5899\uff09","description":"\u5728\u4e00\u9762\u5f88\u957f\u7684\u5899\u58c1\u4e0a\uff0c\u5de5\u4eba\u4eec\u7528\u4e0d\u540c\u7684\u6cb9\u6f06\u53bb\u5237\u5899\uff0c\u7136\u800c\u53ef\u80fd\u6709\u4e9b\u5730\u65b9\u5237\u8fc7\u4ee5\u540e\u89c9\u5f97\u4e0d\u597d\u770b\uff0c\u4ed6\u4eec\u4f1a\u91cd\u65b0\u5237\u4e00\u4e0b\u3002\u6709\u4e9b\u90e8\u5206\u56e0\u4e3a\u91cd\u590d\u5237\u4e86\u5f88\u591a\u6b21\u8986\u76d6\u4e86\u5f88\u591a\u5c42\u6cb9\u6f06\uff0c\u5c0f\u8bfa\u5f88\u597d\u5947\u90a3\u4e9b\u5730\u65b9\u88ab\u5237\u8fc7\u591a\u5c11\u79cd\u989c\u8272\u7684\u6cb9\u6f06\u3002","sidebar":"algorithms"},"Algorithms/intro":{"id":"Algorithms/intro","title":"Welcome","description":"\u6b22\u8fce\u6765\u5230\u7b14\u8bb0\u672c\u7684\u7b97\u6cd5\u90e8\u5206","sidebar":"algorithms"},"Algorithms/STL\u6a21\u677f":{"id":"Algorithms/STL\u6a21\u677f","title":"STL\u6a21\u677f","description":"\u8f6c\u8f7d\u81eaSonder\u7684\u7b14\u8bb0\u672c","sidebar":"algorithms"},"Curriculum/\u7f16\u8bd1\u539f\u7406/Note":{"id":"Curriculum/\u7f16\u8bd1\u539f\u7406/Note","title":"\u7f16\u8bd1\u539f\u7406\u7b14\u8bb0","description":"\u7b2c\u4e00\u7ae0\uff1a\u524d\u8a00","sidebar":"curriculum"},"Curriculum/\u64cd\u4f5c\u7cfb\u7edf\u8bfe\u8bbe/Environment-Configuration":{"id":"Curriculum/\u64cd\u4f5c\u7cfb\u7edf\u8bfe\u8bbe/Environment-Configuration","title":"Linux\u7cfb\u7edf\u4e0bGeekOS\u7684\u73af\u5883\u914d\u7f6e","description":"\u4e00\u3001\u5fc5\u987b\u8981\u77e5\u9053\u7684\u539f\u7406","sidebar":"curriculum"},"Curriculum/\u64cd\u4f5c\u7cfb\u7edf\u8bfe\u8bbe/GeekOS-project-0":{"id":"Curriculum/\u64cd\u4f5c\u7cfb\u7edf\u8bfe\u8bbe/GeekOS-project-0","title":"GeekOS project 0\u7684\u5b9e\u73b0","description":"\u5728\u4e0a\u4e00\u7bc7\u535a\u5ba2\u4e2d\u6211\u4eec\u5b8c\u6210\u4e86GeekOS\u73af\u5883\u7684\u914d\u7f6e\uff0c\u4e0b\u9762\u6211\u4eec\u6765\u9a8c\u8bc1\u73af\u5883\u914d\u7f6e\u7684\u6210\u529f\u4e0e\u5426\u4ee5\u53caproject 0\u7684\u5b9e\u73b0\u3002","sidebar":"curriculum"},"Curriculum/\u6570\u5b57\u56fe\u50cf\u5904\u7406/Note":{"id":"Curriculum/\u6570\u5b57\u56fe\u50cf\u5904\u7406/Note","title":"\u6570\u5b57\u56fe\u50cf\u5904\u7406\u590d\u4e60\u7b14\u8bb0","description":"\u672c\u7b14\u8bb0\u4f7f\u7528\u7684\u6559\u6750\u662f\u9648\u5929\u534e\u6240\u8457\u3001\u6e05\u534e\u5927\u5b66\u51fa\u7248\u793e\u7684\u300a\u6570\u5b57\u56fe\u50cf\u5904\u7406\u53ca\u5e94\u7528\uff1a\u4f7f\u7528MATLAB\u5206\u6790\u4e0e\u5b9e\u73b0\u300b\u3002","sidebar":"curriculum"},"Curriculum/intro":{"id":"Curriculum/intro","title":"Welcome","description":"\u6b22\u8fce\u6765\u5230\u7b14\u8bb0\u672c\u7684\u8bfe\u7a0b\u5b66\u4e60\u90e8\u5206","sidebar":"curriculum"},"Deep-Learning/\u5927\u6a21\u578b/Attention-Is-All-You-Need":{"id":"Deep-Learning/\u5927\u6a21\u578b/Attention-Is-All-You-Need","title":"NeurIPS 2017: Attention Is All You Need","description":"\u8bba\u6587\uff1aarXiv","sidebar":"deep_learning"},"Deep-Learning/\u5927\u6a21\u578b/Diffusion-Model":{"id":"Deep-Learning/\u5927\u6a21\u578b/Diffusion-Model","title":"\u6269\u6563\u6a21\u578b\uff08Diffusion Model\uff09","description":"\u5728\u4ee5\u524d\u7684\u6587\u7ae0\u56fe\u50cf\u751f\u6210\u6a21\u578b\u4e2d\u5df2\u7ecf\u5927\u6982\u4ecb\u7ecd\u4e86\u76ee\u524dSOTA\u7684\u56fe\u50cf\u751f\u6210\u6a21\u578b\u7684\u5171\u540c\u70b9\uff0c\u5e76\u521d\u6b65\u4e86\u89e3\u4e86Diffusion Model\uff0c\u5728\u8fd9\u7bc7\u6587\u7ae0\u4e2d\u5c06\u8be6\u7ec6\u8bb2\u89e3\u6269\u6563\u6a21\u578b\u7684\u6570\u5b66\u539f\u7406\u7b49\u3002","sidebar":"deep_learning"},"Deep-Learning/\u5927\u6a21\u578b/GAN":{"id":"Deep-Learning/\u5927\u6a21\u578b/GAN","title":"\u751f\u6210\u5f0f\u5bf9\u6297\u7f51\u7edc\uff08GAN\uff09","description":"How to pronounce Adversarial?","sidebar":"deep_learning"},"Deep-Learning/\u5927\u6a21\u578b/Image-Generation-Models":{"id":"Deep-Learning/\u5927\u6a21\u578b/Image-Generation-Models","title":"\u56fe\u50cf\u751f\u6210\u6a21\u578b","description":"\u56de\u987e\u6587\u5b57\u751f\u6210\u7684\u4e24\u79cd\u65b9\u6cd5","sidebar":"deep_learning"},"Deep-Learning/\u5927\u6a21\u578b/Prompt Learning/Undergraduate-Dissertation":{"id":"Deep-Learning/\u5927\u6a21\u578b/Prompt Learning/Undergraduate-Dissertation","title":"\u672c\u79d1\u6bd5\u4e1a\u8bba\u6587\uff1a\u57fa\u4e8e Prompt Learning \u7684\u89c6\u89c9-\u8bed\u8a00\u5927\u6a21\u578b\u5728\u56fe\u50cf\u751f\u6210\u4e2d\u7684\u5e94\u7528\u4e0e\u7814\u7a76","description":"\u672c\u7bc7\u8bba\u6587\u4e3b\u8981\u57fa\u4e8e IPL \u7684\u601d\u60f3\u5b9e\u73b0\u3002\u672c\u4ed3\u5e93\u5927\u90e8\u5206\u4ece IPL-Zero-Shot-Generative-Model-Adaptation fork \u800c\u6765\u5e76\u505a\u51fa\u4e86\u4e00\u5b9a\u4fee\u6539\u3002","sidebar":"deep_learning"},"Deep-Learning/\u5927\u6a21\u578b/Self-Attention":{"id":"Deep-Learning/\u5927\u6a21\u578b/Self-Attention","title":"\u81ea\u6ce8\u610f\u529b\uff08Self-Attention\uff09","description":"\u53c2\u8003\u94fe\u63a5:","sidebar":"deep_learning"},"Deep-Learning/\u5927\u6a21\u578b/Self-Supervised-Learning":{"id":"Deep-Learning/\u5927\u6a21\u578b/Self-Supervised-Learning","title":"\u81ea\u76d1\u7763\u5b66\u4e60\uff08Self-Supervised Learning\uff09","description":"\u5728\u81ea\u76d1\u7763\u5b66\u4e60\u7684\u6a21\u578b\u4e2d\uff0c\u51fa\u73b0\u4e86\u5f88\u591a\u4ee5\u829d\u9ebb\u8857\u4efb\u52a1\u547d\u540d\u7684\u7ecf\u5178\u6a21\u578b\u548c\u8bba\u6587\u3002","sidebar":"deep_learning"},"Deep-Learning/\u57fa\u7840\u77e5\u8bc6/\u6fc0\u6d3b\u51fd\u6570\u4e0eLoss\u7684\u68af\u5ea6":{"id":"Deep-Learning/\u57fa\u7840\u77e5\u8bc6/\u6fc0\u6d3b\u51fd\u6570\u4e0eLoss\u7684\u68af\u5ea6","title":"\u6fc0\u6d3b\u51fd\u6570\u4e0eLoss\u7684\u68af\u5ea6","description":"\u4e00\u3001\u6fc0\u6d3b\u51fd\u6570","sidebar":"deep_learning"},"Deep-Learning/\u57fa\u7840\u77e5\u8bc6/\u6df1\u5ea6\u53ef\u5206\u79bb\u5377\u79ef":{"id":"Deep-Learning/\u57fa\u7840\u77e5\u8bc6/\u6df1\u5ea6\u53ef\u5206\u79bb\u5377\u79ef","title":"\u6df1\u5ea6\u53ef\u5206\u79bb\u5377\u79ef","description":"\u8f93\u5165\uff1ashape\u4e3a$[5, 5, 3]$\u7684\u56fe\u50cf","sidebar":"deep_learning"},"Deep-Learning/\u57fa\u7840\u77e5\u8bc6/\u6b63\u5219\u5316\u4e0e\u6743\u91cd\u8870\u9000":{"id":"Deep-Learning/\u57fa\u7840\u77e5\u8bc6/\u6b63\u5219\u5316\u4e0e\u6743\u91cd\u8870\u9000","title":"\u6b63\u5219\u5316\u4e0e\u6743\u91cd\u8870\u9000","description":"\u6b63\u5219\u5316\u4e0e\u6743\u91cd\u8870\u9000","sidebar":"deep_learning"},"Deep-Learning/\u57fa\u7840\u77e5\u8bc6/AlexNet":{"id":"Deep-Learning/\u57fa\u7840\u77e5\u8bc6/AlexNet","title":"AlexNet","description":"\u80cc\u666f","sidebar":"deep_learning"},"Deep-Learning/\u57fa\u7840\u77e5\u8bc6/ConvolutionalLayer":{"id":"Deep-Learning/\u57fa\u7840\u77e5\u8bc6/ConvolutionalLayer","title":"\u5377\u79ef\u5c42","description":"\u4e00\u30011x1\u5377\u79ef","sidebar":"deep_learning"},"Deep-Learning/\u57fa\u7840\u77e5\u8bc6/FromFullyConnectedLayerToConvolutionalLayer":{"id":"Deep-Learning/\u57fa\u7840\u77e5\u8bc6/FromFullyConnectedLayerToConvolutionalLayer","title":"\u4ece\u5168\u8fde\u63a5\u5230\u5377\u79ef","description":"\u4e00\u3001\u5377\u79ef\u7684\u8bde\u751f&\u6838\u5fc3\u7279\u5f81","sidebar":"deep_learning"},"Deep-Learning/\u57fa\u7840\u77e5\u8bc6/K-foldCross-validation":{"id":"Deep-Learning/\u57fa\u7840\u77e5\u8bc6/K-foldCross-validation","title":"K-fold cross-validation","description":"What is k-fold cross-validation?","sidebar":"deep_learning"},"Deep-Learning/\u57fa\u7840\u77e5\u8bc6/LeNet":{"id":"Deep-Learning/\u57fa\u7840\u77e5\u8bc6/LeNet","title":"LeNet","description":"\u80cc\u666f","sidebar":"deep_learning"},"Deep-Learning/\u57fa\u7840\u77e5\u8bc6/LogisticRegression":{"id":"Deep-Learning/\u57fa\u7840\u77e5\u8bc6/LogisticRegression","title":"\u5173\u4e8eLogistic Regression","description":"\u4e00\u3001\u4ec0\u4e48\u662fLogistic Regression","sidebar":"deep_learning"},"Deep-Learning/\u57fa\u7840\u77e5\u8bc6/Perceptron":{"id":"Deep-Learning/\u57fa\u7840\u77e5\u8bc6/Perceptron","title":"Perceptron","description":"\u4e00\u3001\u4ec0\u4e48\u662f\u611f\u77e5\u673a","sidebar":"deep_learning"},"Deep-Learning/\u57fa\u7840\u77e5\u8bc6/PoolingLayer":{"id":"Deep-Learning/\u57fa\u7840\u77e5\u8bc6/PoolingLayer","title":"\u6c60\u5316\u5c42","description":"\u4e00\u3001\u5377\u79ef\u5bf9\u50cf\u7d20\u4f4d\u7f6e\u4fe1\u606f\u662f\u654f\u611f\u7684","sidebar":"deep_learning"},"Deep-Learning/\u57fa\u7840\u77e5\u8bc6/PytorchBasics":{"id":"Deep-Learning/\u57fa\u7840\u77e5\u8bc6/PytorchBasics","title":"PyTorch\u57fa\u7840","description":"\u4e00\u3001\u5e38\u7528\u51fd\u6570\u90e8\u5206","sidebar":"deep_learning"},"Deep-Learning/\u8bba\u6587\u7b14\u8bb0/Attention Is All You Need":{"id":"Deep-Learning/\u8bba\u6587\u7b14\u8bb0/Attention Is All You Need","title":"NeurIPS 2017: Attention Is All You Need","description":"\u8bba\u6587\uff1aarXiv","sidebar":"deep_learning"},"Deep-Learning/\u8bba\u6587\u7b14\u8bb0/Denoising Diffusion Probabilistic Models":{"id":"Deep-Learning/\u8bba\u6587\u7b14\u8bb0/Denoising Diffusion Probabilistic Models","title":"NeurIPS 2020: Denoising Diffusion Probabilistic Models","description":"\u8bba\u6587\uff1aarXiv","sidebar":"deep_learning"},"Deep-Learning/\u8bba\u6587\u7b14\u8bb0/High-Resolution Image Synthesis with Latent Diffusion Models":{"id":"Deep-Learning/\u8bba\u6587\u7b14\u8bb0/High-Resolution Image Synthesis with Latent Diffusion Models","title":"CVPR 2022: High-Resolution Image Synthesis with Latent Diffusion Models","description":"\u8bba\u6587\uff1aarXiv","sidebar":"deep_learning"},"Deep-Learning/\u8bba\u6587\u7b14\u8bb0/Zero-shot Generative Model Adaptation via Image-specific Prompt Learning":{"id":"Deep-Learning/\u8bba\u6587\u7b14\u8bb0/Zero-shot Generative Model Adaptation via Image-specific Prompt Learning","title":"CVPR 2023: Zero-shot Generative Model Adaptation via Image-specific Prompt Learning","description":"\u8bba\u6587\uff1aCVPR 2023 open access","sidebar":"deep_learning"},"Deep-Learning/\u5b9e\u6218\u7ec3\u4e60/Speaker Classification":{"id":"Deep-Learning/\u5b9e\u6218\u7ec3\u4e60/Speaker Classification","title":"Speaker Classification","description":"Transformer\u5b9e\u6218\u7ec3\u4e60\uff0c\u4ee3\u7801\u89c1Github\u4ed3\u5e93\u3002","sidebar":"deep_learning"},"Deep-Learning/\u5b9e\u6218\u7ec3\u4e60/Undergraduate-Dissertation":{"id":"Deep-Learning/\u5b9e\u6218\u7ec3\u4e60/Undergraduate-Dissertation","title":"\u672c\u79d1\u6bd5\u4e1a\u8bba\u6587\uff1a\u57fa\u4e8e Prompt Learning \u7684\u89c6\u89c9-\u8bed\u8a00\u5927\u6a21\u578b\u5728\u56fe\u50cf\u751f\u6210\u4e2d\u7684\u5e94\u7528\u4e0e\u7814\u7a76","description":"\u672c\u7bc7\u8bba\u6587\u4e3b\u8981\u57fa\u4e8e IPL \u7684\u601d\u60f3\u5b9e\u73b0\u3002\u672c\u4ed3\u5e93\u5927\u90e8\u5206\u4ece IPL-Zero-Shot-Generative-Model-Adaptation fork \u800c\u6765\u5e76\u505a\u51fa\u4e86\u4e00\u5b9a\u4fee\u6539\u3002","sidebar":"deep_learning"},"Deep-Learning/\u5b9e\u6218\u7ec3\u4e60/Visdom Visualization":{"id":"Deep-Learning/\u5b9e\u6218\u7ec3\u4e60/Visdom Visualization","title":"Visdom\u53ef\u89c6\u5316","description":"\u5bf9\u4e8eTensorFlow\u6846\u67b6\uff0c\u53ef\u4ee5\u4f7f\u7528TensorBoard\u5b9e\u73b0\u53ef\u89c6\u5316\u3002","sidebar":"deep_learning"},"Deep-Learning/Fill-The-Gaps":{"id":"Deep-Learning/Fill-The-Gaps","title":"\u67e5\u6f0f\u8865\u7f3a","description":"\u8fd9\u91cc\u8bb0\u5f55\u7740\u5728\u5b66\u4e60\u8fc7\u7a0b\u4e2d\u53d1\u73b0\u7684\u7406\u89e3\u6216\u64cd\u4f5c\u65b9\u9762\u51fa\u73b0\u7684\u9519\u8bef\uff0c\u6e29\u6545\u77e5\u65b0\u3002","sidebar":"deep_learning"},"Deep-Learning/intro":{"id":"Deep-Learning/intro","title":"Welcome","description":"\u6b22\u8fce\u6765\u5230\u7b14\u8bb0\u672c\u7684\u6df1\u5ea6\u5b66\u4e60\u90e8\u5206","sidebar":"deep_learning"},"Others/\u535a\u5ba2\u642d\u5efa/\u544a\u793a\u680f":{"id":"Others/\u535a\u5ba2\u642d\u5efa/\u544a\u793a\u680f","title":"\u544a\u793a\u680f","description":"1. \u544a\u793a\u680f\u7684\u542f\u7528","sidebar":"others"},"Others/intro":{"id":"Others/intro","title":"Welcome","description":"\u6b22\u8fce\u6765\u5230\u7b14\u8bb0\u672c\u7684\u5176\u4ed6\u90e8\u5206","sidebar":"others"},"Others/Linux/\u5ba2\u5236\u5316/\u5982\u4f55\u8ba9\u4f60\u7684KDE\u770b\u8d77\u6765\u66f4\u50cfmacOS":{"id":"Others/Linux/\u5ba2\u5236\u5316/\u5982\u4f55\u8ba9\u4f60\u7684KDE\u770b\u8d77\u6765\u66f4\u50cfmacOS","title":"\u5982\u4f55\u8ba9\u4f60\u7684Kde Plasma\u770b\u8d77\u6765\u66f4\u50cfmacOS","description":"\u4e00\u3001latte-dock","sidebar":"others"},"Others/Linux/\u5b9e\u7528\u5de5\u5177/\u7ec8\u7aef\u4ee3\u7406":{"id":"Others/Linux/\u5b9e\u7528\u5de5\u5177/\u7ec8\u7aef\u4ee3\u7406","title":"\u7ec8\u7aef\u4ee3\u7406","description":"\u901a\u8fc7\u7f16\u5199\u811a\u672c\u51fd\u6570\u7684\u65b9\u5f0f\uff0c\u624b\u52a8\u5f00\u542f\u4ee3\u7406","sidebar":"others"},"Others/Linux/\u95ee\u9898\u89e3\u51b3/\u53cc\u7cfb\u7edf\u6302\u8f7dWindows\u78c1\u76d8\u4e3a\u53ea\u8bfb\u6587\u4ef6":{"id":"Others/Linux/\u95ee\u9898\u89e3\u51b3/\u53cc\u7cfb\u7edf\u6302\u8f7dWindows\u78c1\u76d8\u4e3a\u53ea\u8bfb\u6587\u4ef6","title":"\u6302\u8f7dWindows\u78c1\u76d8\u4e3a\u53ea\u8bfb\u6587\u4ef6","description":"\u4e00\u3001\u53d1\u751f\u539f\u56e0","sidebar":"others"},"Tui-Mian/\u673a\u8bd5/\u5927\u6570\u9664\u6cd5":{"id":"Tui-Mian/\u673a\u8bd5/\u5927\u6570\u9664\u6cd5","title":"\u5927\u6570\u9664\u6cd5","description":"\u5927\u6570\u9664\u6cd5\u662f\u6307\u88ab\u9664\u6570\u5927\u5c0f\u8d85\u51falong long\u8303\u56f4\uff0c\u800c\u5bfc\u81f4\u5fc5\u987b\u4f7f\u7528\u5b57\u7b26\u4e32\u5b58\u50a8\u7684\u9664\u6cd5\uff0c\u5c5e\u4e8e\u7b80\u5355\u6a21\u62df\u7684\u8303\u7574","sidebar":"tui_mian"},"Tui-Mian/\u8ba1\u7b97\u673a\u57fa\u7840\u7efc\u5408/\u6570\u636e\u7ed3\u6784":{"id":"Tui-Mian/\u8ba1\u7b97\u673a\u57fa\u7840\u7efc\u5408/\u6570\u636e\u7ed3\u6784","title":"\u6570\u636e\u7ed3\u6784","description":"\u6811","sidebar":"tui_mian"},"Tui-Mian/\u7b80\u5386/\u7b80\u5386\u9762\u8bd5\u51c6\u5907":{"id":"Tui-Mian/\u7b80\u5386/\u7b80\u5386\u9762\u8bd5\u51c6\u5907","title":"\u7b80\u5386\u9762\u8bd5\u51c6\u5907","description":"\u4e00\u3001U-2-Net","sidebar":"tui_mian"},"Tui-Mian/\u6570\u5b66/\u6982\u7387\u8bba":{"id":"Tui-Mian/\u6570\u5b66/\u6982\u7387\u8bba","title":"\u6982\u7387\u8bba","description":"\u9762\u8bd5\u5e38\u8003\u95ee\u9898","sidebar":"tui_mian"},"Tui-Mian/\u6570\u5b66/\u590f\u4ee4\u8425\u9762\u8bd5\u6570\u5b66\u90e8\u5206\u590d\u4e60":{"id":"Tui-Mian/\u6570\u5b66/\u590f\u4ee4\u8425\u9762\u8bd5\u6570\u5b66\u90e8\u5206\u590d\u4e60","title":"\u590f\u4ee4\u8425\u9762\u8bd5\u6570\u5b66\u90e8\u5206\u590d\u4e60","description":"\u4e00\u3001\u7ebf\u6027\u4ee3\u6570","sidebar":"tui_mian"},"Tui-Mian/\u6570\u5b66/\u7ebf\u6027\u4ee3\u6570":{"id":"Tui-Mian/\u6570\u5b66/\u7ebf\u6027\u4ee3\u6570","title":"\u7ebf\u6027\u4ee3\u6570","description":"\u53c2\u8003\u94fe\u63a5\uff1a","sidebar":"tui_mian"},"Tui-Mian/intro":{"id":"Tui-Mian/intro","title":"Welcome","description":"\u6b22\u8fce\u6765\u5230\u7b14\u8bb0\u672c\u7684\u63a8\u514d\u590d\u4e60\u90e8\u5206","sidebar":"tui_mian"},"Tui-Mian/Summary":{"id":"Tui-Mian/Summary","title":"\u7ecf\u9a8c\u8d34\uff1a2023\u5e74\u53cc\u975e\u8ba1\u7b97\u673a\u4fdd\u7814\u7ecf\u5386","description":"\u524d\u8a00","sidebar":"tui_mian"}}}')}}]); \ No newline at end of file diff --git a/assets/js/a0558625.585f6ea2.js b/assets/js/a0558625.585f6ea2.js new file mode 100644 index 000000000..2315167ef --- /dev/null +++ b/assets/js/a0558625.585f6ea2.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunknpy_notebook=self.webpackChunknpy_notebook||[]).push([[3389],{3905:(e,t,n)=>{n.d(t,{Zo:()=>u,kt:()=>k});var r=n(7294);function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function o(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var p=r.createContext({}),s=function(e){var t=r.useContext(p),n=t;return e&&(n="function"==typeof e?e(t):l(l({},t),e)),n},u=function(e){var t=s(e.components);return r.createElement(p.Provider,{value:t},e.children)},c="mdxType",m={inlineCode:"code",wrapper:function(e){var t=e.children;return r.createElement(r.Fragment,{},t)}},d=r.forwardRef((function(e,t){var n=e.components,a=e.mdxType,i=e.originalType,p=e.parentName,u=o(e,["components","mdxType","originalType","parentName"]),c=s(n),d=a,k=c["".concat(p,".").concat(d)]||c[d]||m[d]||i;return n?r.createElement(k,l(l({ref:t},u),{},{components:n})):r.createElement(k,l({ref:t},u))}));function k(e,t){var n=arguments,a=t&&t.mdxType;if("string"==typeof e||a){var i=n.length,l=new Array(i);l[0]=d;var o={};for(var p in t)hasOwnProperty.call(t,p)&&(o[p]=t[p]);o.originalType=e,o[c]="string"==typeof e?e:a,l[1]=o;for(var s=2;s<i;s++)l[s]=n[s];return r.createElement.apply(null,l)}return r.createElement.apply(null,n)}d.displayName="MDXCreateElement"},350:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>p,contentTitle:()=>l,default:()=>m,frontMatter:()=>i,metadata:()=>o,toc:()=>s});var r=n(7462),a=(n(7294),n(3905));const i={},l="STL\u6a21\u677f",o={unversionedId:"Algorithms/STL\u6a21\u677f",id:"Algorithms/STL\u6a21\u677f",title:"STL\u6a21\u677f",description:"\u8f6c\u8f7d\u81eaSonder\u7684\u7b14\u8bb0\u672c",source:"@site/docs/Algorithms/2-STL\u6a21\u677f.md",sourceDirName:"Algorithms",slug:"/Algorithms/STL\u6a21\u677f",permalink:"/docs/Algorithms/STL\u6a21\u677f",draft:!1,tags:[],version:"current",sidebarPosition:2,frontMatter:{},sidebar:"algorithms",previous:{title:"Welcome",permalink:"/docs/Algorithms/intro"},next:{title:"\u673a\u8bd5\u6280\u5de7\u4e0eSTL",permalink:"/docs/Algorithms/\u673a\u8bd5\u6280\u5de7\u4e0eSTL"}},p={},s=[{value:"vector",id:"vector",level:3},{value:"pair",id:"pair",level:3},{value:"string",id:"string",level:3},{value:"query",id:"query",level:3},{value:"priority_queue",id:"priority_queue",level:3},{value:"stack",id:"stack",level:3},{value:"deque",id:"deque",level:3},{value:"set/multiset",id:"setmultiset",level:3},{value:"map/multimap",id:"mapmultimap",level:3},{value:"biset",id:"biset",level:3}],u={toc:s},c="wrapper";function m(e){let{components:t,...n}=e;return(0,a.kt)(c,(0,r.Z)({},u,n,{components:t,mdxType:"MDXLayout"}),(0,a.kt)("h1",{id:"stl\u6a21\u677f"},"STL\u6a21\u677f"),(0,a.kt)("admonition",{type:"important"},(0,a.kt)("p",{parentName:"admonition"},"\u8f6c\u8f7d\u81ea",(0,a.kt)("a",{parentName:"p",href:"https://space.keter.top/"},"Sonder\u7684\u7b14\u8bb0\u672c"))),(0,a.kt)("ul",null,(0,a.kt)("li",{parentName:"ul"},"vector\uff1a\u53d8\u957f\u6570\u7ec4\uff0c\u500d\u589e\u7684\u601d\u60f3"),(0,a.kt)("li",{parentName:"ul"},"pair\uff1a\u5b58\u50a8\u4e00\u5bf9\u6570"),(0,a.kt)("li",{parentName:"ul"},"string\uff1a\u5b57\u7b26\u4e32\uff0csubstr(), c_str()"),(0,a.kt)("li",{parentName:"ul"},"queue\uff1apush(), front(), pop()"),(0,a.kt)("li",{parentName:"ul"},"priority_queue\uff1a\u4f18\u5148\u961f\u5217\uff0cpush(), top(), pop()"),(0,a.kt)("li",{parentName:"ul"},"stack\uff1a\u6808\uff0cpush(), top(), pop()"),(0,a.kt)("li",{parentName:"ul"},"deque\uff1a\u53cc\u7aef\u961f\u5217"),(0,a.kt)("li",{parentName:"ul"},"set, map, multiset, multimap\uff1a\u57fa\u4e8e\u7ea2\u9ed1\u6811\u6765\u5b9e\u73b0\uff0c\u672c\u8d28\u4e0a\u662f\u52a8\u6001\u7ef4\u62a4\u4e00\u4e2a\u6709\u5e8f\u5e8f\u5217"),(0,a.kt)("li",{parentName:"ul"},"unordered_set, unordered_map, unordered_multiset, unordered_multimap\uff1a\u54c8\u5e0c\u8868"),(0,a.kt)("li",{parentName:"ul"},"bitset\uff1a\u538b\u4f4d")),(0,a.kt)("h3",{id:"vector"},"vector"),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-c++"},'vector<int> a(10,3); // \u5b9a\u4e49\u4e00\u4e2a\u957f\u5ea6\u4e3a10\u7684vector\uff0c\u521d\u59cb\u5316\u4e3a3\uff1b\na.size(); // vector\u7684size\uff0c\u6240\u6709\u5bb9\u5668\u90fd\u6709\na.empty(); // \u8303\u56f4vector\u662f\u5426\u4e3a\u7a7a\uff0c\u6240\u6709\u5bb9\u5668\u90fd\u6709\na.clear(); // \u6e05\u7a7a\na.front(); // \u7b2c\u4e00\u4e2a\u6570\na.back(); // \u6700\u540e\u4e00\u4e2a\u6570\na.push_back(); // \u5728\u6700\u540e\u63d2\u5165\u4e00\u4e2a\u6570\na.pop_back(); // \u5220\u9664\u6700\u540e\u4e00\u4e2a\u6570\n// vector\u652f\u6301\u6bd4\u8f83\u8fd0\u7b97\nvector<int> a(4,3),b(3,4);\nif(a > b) cout << "Yes";\nelse cout << "No"\n')),(0,a.kt)("h3",{id:"pair"},"pair"),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-c++"},'pair<int,int> a;\na = {20,"abc"};\na.first(); // \u83b7\u53d6\u7b2c\u4e00\u4e2a\u5143\u7d20\na.second(); // \u83b7\u53d6\u7b2c\u4e8c\u4e2a\u5143\u7d20\n// pair\u4e5f\u80fd\u8fdb\u884csort\n')),(0,a.kt)("h3",{id:"string"},"string"),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-c++"},'string a = "Acwing";\na.size(); // \u83b7\u53d6string\u7684\u5927\u5c0f\na.empty(); // \u5224\u65ad\u662f\u5426\u4e3a\u7a7a\na.clear(); // \u6e05\u7a7a\na += "def";\ncout << a. substr(1,2) << endl; // \u7b2c\u4e00\u4e2a\u53c2\u6570\u8d77\u59cb\u4f4d\u7f6e\uff0c\u7b2c\u4e8c\u4e2a\u53c2\u6570\u662f\u5b57\u7b26\u4e32\u957f\u5ea6\n')),(0,a.kt)("h3",{id:"query"},"query"),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-c++"},"query<int> a;\na.size();\na.empty();\na.push(1); // \u961f\u5c3e\u63d2\u5165\u5143\u7d20\na.front(); // \u8fd4\u56de\u961f\u5934\u5143\u7d20\na.back(); // \u8fd4\u56de\u961f\u5c3e\u5143\u7d20\na.pop(); // \u5220\u9664\u961f\u5934\u5143\u7d20\n")),(0,a.kt)("h3",{id:"priority_queue"},"priority_queue"),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-c++"},"// \u9ed8\u8ba4\u662f\u5927\u6839\u5806\npriority_queue<int> heap;\nheap.clear();\nheap.size();\nheap.empty();\n// \u5982\u4f55\u5b9a\u4e49\u4e00\u4e2a\u5c0f\u6839\u5806\uff1a 1. \u63d2\u5165\u8d1f\u6570 2. \u76f4\u63a5\u5b9a\u4e49\nheap.push(-x); // \u9ed1\u79d1\u6280\u65b9\u6cd5\npriority_queue<int,vector<int>,greater<int>> q;\n")),(0,a.kt)("h3",{id:"stack"},"stack"),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-c++"},"stack<int> s;\ns.size();\ns.empty();\ns.push();\ns.top();\ns.pop();\n")),(0,a.kt)("h3",{id:"deque"},"deque"),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-c++"},"deque<int> a;\na.size();\na.empty();\na.clear();\na.front();\na.back();\na.push_back();\na.pop_back();\n")),(0,a.kt)("h3",{id:"setmultiset"},"set/multiset"),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-c++"},"set<int> s; // \u4e0d\u80fd\u6709\u91cd\u590d\u5143\u7d20\n// s.begin()/end()\nmultiset<int> MS; // \u53ef\u4ee5\u6709\u91cd\u590d\u5143\u7d20\ns.insert(1); \u63d2\u5165\u4e00\u4e2a\u6570\ns.size();\ns.empty();\ns.clear();\n s.find(1); // \u67e5\u627e\u4e00\u4e2a\u5143\u7d20\uff0c\u5982\u679c\u4e0d\u5b58\u5728\u7684\u8bdd\u8fd4\u56deend\u8fed\u4ee3\u5668\ns.erase(1); // \u8f93\u5165\u662f\u4e00\u4e2a\u6570x\uff0c\u8f93\u51fa\u6240\u6709x \uff082\uff09\u8f93\u5165\u4e00\u4e2a\u8fed\u4ee3\u5668\uff0c\u5220\u9664\u8fd9\u4e2a\u8fed\u4ee3\u5668\n// set \u6700\u6838\u5fc3\u7684\u64cd\u4f5c\ns.lower_bound(); // \u8303\u56f4\u5927\u4e8e\u7b49\u4e8ex\u7684\u6700\u5c0f\u7684\u6570\ns.upper_bound(); // \u8fd4\u56de\u5927\u4e8ex\u7684\u6700\u5c0f\u7684\u6570\n")),(0,a.kt)("h3",{id:"mapmultimap"},"map/multimap"),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-c++"},'#include <map>\n// \u548cpython\u91cc\u9762\u7684\u5b57\u5178\u975e\u5e38\u7684\u76f8\u4f3c\nmap<string,int> a;\na["2"] = 3;\na.insert({"1",1});\na.erase({"1",1});\na.find({"1",1});\n')),(0,a.kt)("blockquote",null,(0,a.kt)("p",{parentName:"blockquote"},"unordered_set, unordered_map, unordered_multiset, unordered_multimap\u7684\u64cd\u4f5c\u548cset\u6216\u8005map\u7b49\u7684\u64cd\u4f5c\u57fa\u672c\u4e00\u81f4\uff0c\u552f\u4e00\u7684\u533a\u522b\u5c31\u662f\u4e0d\u652f\u6301\u7c7b\u4f3clower_bound()\u8fd9\u6837\u7684\u64cd\u4f5c \uff08\u54c8\u5e0c\u8868\u7684\u5185\u90e8\u662f\u65e0\u5e8f\u7684\uff09")),(0,a.kt)("h3",{id:"biset"},"biset"),(0,a.kt)("blockquote",null,(0,a.kt)("p",{parentName:"blockquote"},"\u53ef\u4ee5\u7701\u4e0b\u67658\u4f4d\u7684\u7a7a\u95f4")),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-c++"},"bitset<10000> s;\n// \u652f\u6301\u6240\u6709\u7684\u57fa\u672c\u64cd\u4f5c\uff1a\n// \u79fb\u4f4d\u64cd\u4f5c\uff1a<< >> \n// == !=\n// count() \u8fd4\u56de\u6709\u591a\u5c11\u4e2a1\n// any() \u5224\u65ad\u662f\u5426\u81f3\u5c11\u6709\u4e00\u4e2a1\n// none() \u5224\u65ad\u662f\u5426\u5168\u4e3a0\n// set()\uff0c\u628a\u6240\u6709\u4e3a\u7f6e\u4e3a1\n// set(k,v), \u5c06\u7b2ck\u4e2a\u53d8\u4e3av\n// reset(), \u628a\u6240\u6709\u4f4d\u53d8\u62100\n// flip(), \u628a\u6240\u6709\u4f4d\u53d6\u53cd\n")))}m.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/a2a36db7.909c8384.js b/assets/js/a2a36db7.909c8384.js new file mode 100644 index 000000000..d83a90a7c --- /dev/null +++ b/assets/js/a2a36db7.909c8384.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunknpy_notebook=self.webpackChunknpy_notebook||[]).push([[5776],{3905:(e,n,t)=>{t.d(n,{Zo:()=>c,kt:()=>f});var i=t(7294);function r(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function o(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function a(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?o(Object(t),!0).forEach((function(n){r(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):o(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function p(e,n){if(null==e)return{};var t,i,r=function(e,n){if(null==e)return{};var t,i,r={},o=Object.keys(e);for(i=0;i<o.length;i++)t=o[i],n.indexOf(t)>=0||(r[t]=e[t]);return r}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)t=o[i],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(r[t]=e[t])}return r}var s=i.createContext({}),u=function(e){var n=i.useContext(s),t=n;return e&&(t="function"==typeof e?e(n):a(a({},n),e)),t},c=function(e){var n=u(e.components);return i.createElement(s.Provider,{value:n},e.children)},l="mdxType",m={inlineCode:"code",wrapper:function(e){var n=e.children;return i.createElement(i.Fragment,{},n)}},d=i.forwardRef((function(e,n){var t=e.components,r=e.mdxType,o=e.originalType,s=e.parentName,c=p(e,["components","mdxType","originalType","parentName"]),l=u(t),d=r,f=l["".concat(s,".").concat(d)]||l[d]||m[d]||o;return t?i.createElement(f,a(a({ref:n},c),{},{components:t})):i.createElement(f,a({ref:n},c))}));function f(e,n){var t=arguments,r=n&&n.mdxType;if("string"==typeof e||r){var o=t.length,a=new Array(o);a[0]=d;var p={};for(var s in n)hasOwnProperty.call(n,s)&&(p[s]=n[s]);p.originalType=e,p[l]="string"==typeof e?e:r,a[1]=p;for(var u=2;u<o;u++)a[u]=t[u];return i.createElement.apply(null,a)}return i.createElement.apply(null,t)}d.displayName="MDXCreateElement"},8847:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>s,contentTitle:()=>a,default:()=>m,frontMatter:()=>o,metadata:()=>p,toc:()=>u});var i=t(7462),r=(t(7294),t(3905));const o={},a="\u5927\u6570\u9664\u6cd5",p={unversionedId:"Tui-Mian/\u673a\u8bd5/\u5927\u6570\u9664\u6cd5",id:"Tui-Mian/\u673a\u8bd5/\u5927\u6570\u9664\u6cd5",title:"\u5927\u6570\u9664\u6cd5",description:"\u5927\u6570\u9664\u6cd5\u662f\u6307\u88ab\u9664\u6570\u5927\u5c0f\u8d85\u51falong long\u8303\u56f4\uff0c\u800c\u5bfc\u81f4\u5fc5\u987b\u4f7f\u7528\u5b57\u7b26\u4e32\u5b58\u50a8\u7684\u9664\u6cd5\uff0c\u5c5e\u4e8e\u7b80\u5355\u6a21\u62df\u7684\u8303\u7574",source:"@site/docs/Tui-Mian/\u673a\u8bd5/\u5927\u6570\u9664\u6cd5.md",sourceDirName:"Tui-Mian/\u673a\u8bd5",slug:"/Tui-Mian/\u673a\u8bd5/\u5927\u6570\u9664\u6cd5",permalink:"/docs/Tui-Mian/\u673a\u8bd5/\u5927\u6570\u9664\u6cd5",draft:!1,tags:[],version:"current",frontMatter:{},sidebar:"tui_mian",previous:{title:"\u7ebf\u6027\u4ee3\u6570",permalink:"/docs/Tui-Mian/\u6570\u5b66/\u7ebf\u6027\u4ee3\u6570"},next:{title:"\u7b80\u5386\u9762\u8bd5\u51c6\u5907",permalink:"/docs/Tui-Mian/\u7b80\u5386/\u7b80\u5386\u9762\u8bd5\u51c6\u5907"}},s={},u=[{value:"\u601d\u8def",id:"\u601d\u8def",level:2},{value:"\u53c2\u8003\u4ee3\u7801",id:"\u53c2\u8003\u4ee3\u7801",level:2},{value:"\u6269\u5c55",id:"\u6269\u5c55",level:2}],c={toc:u},l="wrapper";function m(e){let{components:n,...t}=e;return(0,r.kt)(l,(0,i.Z)({},c,t,{components:n,mdxType:"MDXLayout"}),(0,r.kt)("h1",{id:"\u5927\u6570\u9664\u6cd5"},"\u5927\u6570\u9664\u6cd5"),(0,r.kt)("admonition",{type:"tip"},(0,r.kt)("p",{parentName:"admonition"},"\u5927\u6570\u9664\u6cd5\u662f\u6307\u88ab\u9664\u6570\u5927\u5c0f\u8d85\u51falong long\u8303\u56f4\uff0c\u800c\u5bfc\u81f4\u5fc5\u987b\u4f7f\u7528\u5b57\u7b26\u4e32\u5b58\u50a8\u7684\u9664\u6cd5\uff0c\u5c5e\u4e8e\u7b80\u5355\u6a21\u62df\u7684\u8303\u7574")),(0,r.kt)("h2",{id:"\u601d\u8def"},"\u601d\u8def"),(0,r.kt)("p",null,"\u901a\u8fc7\u6a21\u62df\u5217\u7ad6\u5f0f\u624b\u52a8\u8ba1\u7b97\u9664\u6cd5\uff0c\u5b9e\u73b0\u4f7f\u7528\u5b57\u7b26\u4e32\u5b58\u50a8\u88ab\u9664\u6570\u7684\u5927\u6570\u9664\u6cd5"),(0,r.kt)("h2",{id:"\u53c2\u8003\u4ee3\u7801"},"\u53c2\u8003\u4ee3\u7801"),(0,r.kt)("pre",null,(0,r.kt)("code",{parentName:"pre",className:"language-c++"},"string division(string s, int divisor) {\n /*\n * \u901a\u8fc7\u6a21\u62df\u5217\u7ad6\u5f0f\u624b\u7b97\u9664\u6cd5\u5b8c\u6210\u5b57\u7b26\u4e32\u5b58\u50a8\u7684\u5927\u6570\u9664\u6cd5\n */\n string quotient; // \u5546\n int idx = 0; // \u5f53\u524d\u5904\u7406\u7684\u6570\u5b57\u5728\u539f\u59cb\u5b57\u7b26\u4e32\u4e2d\u7684\u4f4d\u7f6e\n int remainder = 0; // \u4f59\u6570\n int temp = 0;\n while (idx < s.size()) { // \u4e00\u76f4\u5faa\u73af\u5904\u7406\u5230\u7d22\u5f15\u7b49\u4e8e\u957f\u5ea6\n temp = remainder * 10 + (s[idx] - '0'); // \u5f53\u524d\u8fdb\u884c\u9664\u6cd5\u8fd0\u7b97\u7684temp\n if (temp >= divisor) { // \u5982\u679c\u80fd\u9664\u7684\u52a8\uff0c\u5219\u5c06\u5f53\u524d\u7684\u5546\u63d2\u5165quotient\uff0c\u5e76\u66f4\u65b0\u4f59\u6570\n quotient.push_back(temp / divisor + '0');\n remainder = temp % divisor;\n } else { // \u9664\u4e0d\u52a8\u65f6\u5206\u4e24\u79cd\u60c5\u51b5\n if (!quotient.empty()) { // \u5546\u76ee\u524d\u4e0d\u4e3a\u7a7a\uff0c\u6b64\u65f6\u6309\u7167\u7ad6\u5f0f\u65b9\u6cd5\uff0c\u9700\u8981\u5411\u5546\u4e2d\u52a0\u51650\uff0c\u518d\u63a5\u7740\u4e0b\u4e00\u6b21\u5faa\u73af\n quotient.push_back('0');\n }\n remainder = temp; // \u5546\u76ee\u524d\u4e3a\u7a7a\uff0c\u6309\u7167\u7ad6\u5f0f\u8ba1\u7b97\u65b9\u6cd5\uff0c\u53ea\u66f4\u65b0\u4f59\u6570\uff0c\u5546\u4fdd\u6301\u4e3a\u7a7a\n }\n idx++; // \u66f4\u65b0\u7d22\u5f15\u4f4d\u7f6e\n }\n if (quotient.empty()) { // \u5982\u679c\u4e00\u76f4\u9664\u4e0d\u52a8\uff0c\u5faa\u73af\u7ed3\u675f\u5546\u8fd8\u4e3a\u7a7a\uff0c\u5219\u8d4b\u503c\u4e3a0\u5b57\u7b26\u4e32\n quotient.assign(\"0\");\n }\n return quotient; // \u8fd4\u56de\u5546\u5b57\u7b26\u4e32\n}\n")),(0,r.kt)("h2",{id:"\u6269\u5c55"},"\u6269\u5c55"),(0,r.kt)("p",null,"\u5c06\u5927\u6570\u9664\u6cd5\u4e0e\u8fdb\u5236\u8f6c\u6362\u76f8\u7ed3\u5408\u3002"),(0,r.kt)("admonition",{type:"tip"},(0,r.kt)("p",{parentName:"admonition"},(0,r.kt)("a",{parentName:"p",href:"https://noobdream.com/DreamJudge/Issue/page/1178/"},"\u5317\u4eac\u5927\u5b66\u673a\u8bd5\u771f\u9898\uff0cN\u8bfa\u94fe\u63a5")),(0,r.kt)("p",{parentName:"admonition"},(0,r.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora/imagesimage-20230703192843719.png",alt:"image-20230703192843719"}))),(0,r.kt)("p",null,"\u5b8c\u6574\u4ee3\u7801\u5982\u4e0b\uff1a"),(0,r.kt)("pre",null,(0,r.kt)("code",{parentName:"pre",className:"language-c++"},"#include <bits/stdc++.h>\n\nusing namespace std;\n\nstring division(string s, int divisor) {\n /*\n * \u901a\u8fc7\u6a21\u62df\u5217\u7ad6\u5f0f\u624b\u7b97\u9664\u6cd5\u5b8c\u6210\u5b57\u7b26\u4e32\u5b58\u50a8\u7684\u5927\u6570\u9664\u6cd5\n */\n string quotient; // \u5546\n int idx = 0; // \u5f53\u524d\u5904\u7406\u7684\u6570\u5b57\u5728\u539f\u59cb\u5b57\u7b26\u4e32\u4e2d\u7684\u4f4d\u7f6e\n int remainder = 0; // \u4f59\u6570\n int temp = 0;\n while (idx < s.size()) { // \u4e00\u76f4\u5faa\u73af\u5904\u7406\u5230\u7d22\u5f15\u7b49\u4e8e\u957f\u5ea6\n temp = remainder * 10 + (s[idx] - '0'); // \u5f53\u524d\u8fdb\u884c\u9664\u6cd5\u8fd0\u7b97\u7684temp\n if (temp >= divisor) { // \u5982\u679c\u80fd\u9664\u7684\u52a8\uff0c\u5219\u5c06\u5f53\u524d\u7684\u5546\u63d2\u5165quotient\uff0c\u5e76\u66f4\u65b0\u4f59\u6570\n quotient.push_back(temp / divisor + '0');\n remainder = temp % divisor;\n } else { // \u9664\u4e0d\u52a8\u65f6\u5206\u4e24\u79cd\u60c5\u51b5\n if (!quotient.empty()) { // \u5546\u76ee\u524d\u4e0d\u4e3a\u7a7a\uff0c\u6b64\u65f6\u6309\u7167\u7ad6\u5f0f\u65b9\u6cd5\uff0c\u9700\u8981\u5411\u5546\u4e2d\u52a0\u51650\uff0c\u518d\u63a5\u7740\u4e0b\u4e00\u6b21\u5faa\u73af\n quotient.push_back('0');\n }\n remainder = temp; // \u5546\u76ee\u524d\u4e3a\u7a7a\uff0c\u6309\u7167\u7ad6\u5f0f\u8ba1\u7b97\u65b9\u6cd5\uff0c\u53ea\u66f4\u65b0\u4f59\u6570\uff0c\u5546\u4fdd\u6301\u4e3a\u7a7a\n }\n idx++; // \u66f4\u65b0\u7d22\u5f15\u4f4d\u7f6e\n }\n if (quotient.empty()) { // \u5982\u679c\u4e00\u76f4\u9664\u4e0d\u52a8\uff0c\u5faa\u73af\u7ed3\u675f\u5546\u8fd8\u4e3a\u7a7a\uff0c\u5219\u8d4b\u503c\u4e3a0\u5b57\u7b26\u4e32\n quotient.assign(\"0\");\n }\n return quotient; // \u8fd4\u56de\u5546\u5b57\u7b26\u4e32\n}\n\nint main() {\n string s;\n while (cin >> s) {\n vector<int> vec;\n int len = s.size();\n while (s != \"0\") {\n int remainder = (s[len - 1] - '0') % 2;\n vec.push_back(remainder);\n s = division(s, 2);\n len = s.size();\n }\n if (vec.empty()) {\n cout << \"0\";\n } else {\n for (auto it = vec.rbegin(); it != vec.rend(); it++) {\n cout << *it;\n }\n }\n cout << endl;\n }\n return 0;\n}\n")))}m.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/a8183bcb.36f81c77.js b/assets/js/a8183bcb.36f81c77.js new file mode 100644 index 000000000..823a6879e --- /dev/null +++ b/assets/js/a8183bcb.36f81c77.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunknpy_notebook=self.webpackChunknpy_notebook||[]).push([[7739],{3905:(a,e,t)=>{t.d(e,{Zo:()=>o,kt:()=>g});var n=t(7294);function s(a,e,t){return e in a?Object.defineProperty(a,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):a[e]=t,a}function m(a,e){var t=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable}))),t.push.apply(t,n)}return t}function r(a){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?m(Object(t),!0).forEach((function(e){s(a,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(t)):m(Object(t)).forEach((function(e){Object.defineProperty(a,e,Object.getOwnPropertyDescriptor(t,e))}))}return a}function p(a,e){if(null==a)return{};var t,n,s=function(a,e){if(null==a)return{};var t,n,s={},m=Object.keys(a);for(n=0;n<m.length;n++)t=m[n],e.indexOf(t)>=0||(s[t]=a[t]);return s}(a,e);if(Object.getOwnPropertySymbols){var m=Object.getOwnPropertySymbols(a);for(n=0;n<m.length;n++)t=m[n],e.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(a,t)&&(s[t]=a[t])}return s}var i=n.createContext({}),l=function(a){var e=n.useContext(i),t=e;return a&&(t="function"==typeof a?a(e):r(r({},e),a)),t},o=function(a){var e=l(a.components);return n.createElement(i.Provider,{value:e},a.children)},N="mdxType",k={inlineCode:"code",wrapper:function(a){var e=a.children;return n.createElement(n.Fragment,{},e)}},c=n.forwardRef((function(a,e){var t=a.components,s=a.mdxType,m=a.originalType,i=a.parentName,o=p(a,["components","mdxType","originalType","parentName"]),N=l(t),c=s,g=N["".concat(i,".").concat(c)]||N[c]||k[c]||m;return t?n.createElement(g,r(r({ref:e},o),{},{components:t})):n.createElement(g,r({ref:e},o))}));function g(a,e){var t=arguments,s=e&&e.mdxType;if("string"==typeof a||s){var m=t.length,r=new Array(m);r[0]=c;var p={};for(var i in e)hasOwnProperty.call(e,i)&&(p[i]=e[i]);p.originalType=a,p[N]="string"==typeof a?a:s,r[1]=p;for(var l=2;l<m;l++)r[l]=t[l];return n.createElement.apply(null,r)}return n.createElement.apply(null,t)}c.displayName="MDXCreateElement"},3199:(a,e,t)=>{t.r(e),t.d(e,{assets:()=>i,contentTitle:()=>r,default:()=>k,frontMatter:()=>m,metadata:()=>p,toc:()=>l});var n=t(7462),s=(t(7294),t(3905));const m={},r="\u81ea\u76d1\u7763\u5b66\u4e60\uff08Self-Supervised Learning\uff09",p={unversionedId:"Deep-Learning/\u5927\u6a21\u578b/Self-Supervised-Learning",id:"Deep-Learning/\u5927\u6a21\u578b/Self-Supervised-Learning",title:"\u81ea\u76d1\u7763\u5b66\u4e60\uff08Self-Supervised Learning\uff09",description:"\u5728\u81ea\u76d1\u7763\u5b66\u4e60\u7684\u6a21\u578b\u4e2d\uff0c\u51fa\u73b0\u4e86\u5f88\u591a\u4ee5\u829d\u9ebb\u8857\u4efb\u52a1\u547d\u540d\u7684\u7ecf\u5178\u6a21\u578b\u548c\u8bba\u6587\u3002",source:"@site/docs/Deep-Learning/5-\u5927\u6a21\u578b/3-Self-Supervised-Learning.md",sourceDirName:"Deep-Learning/5-\u5927\u6a21\u578b",slug:"/Deep-Learning/\u5927\u6a21\u578b/Self-Supervised-Learning",permalink:"/docs/Deep-Learning/\u5927\u6a21\u578b/Self-Supervised-Learning",draft:!1,tags:[],version:"current",sidebarPosition:3,frontMatter:{},sidebar:"deep_learning",previous:{title:"NeurIPS 2017: Attention Is All You Need",permalink:"/docs/Deep-Learning/\u5927\u6a21\u578b/Attention-Is-All-You-Need"},next:{title:"\u56fe\u50cf\u751f\u6210\u6a21\u578b",permalink:"/docs/Deep-Learning/\u5927\u6a21\u578b/Image-Generation-Models"}},i={},l=[{value:"\u4ecb\u7ecd",id:"\u4ecb\u7ecd",level:2},{value:"BERT\uff08Bidirectional Encoder Representation from Transformers\uff09",id:"bertbidirectional-encoder-representation-from-transformers",level:2},{value:"\u7ed3\u6784",id:"\u7ed3\u6784",level:3},{value:"Self-Supervised Pretraining",id:"self-supervised-pretraining",level:3},{value:"Masking Input",id:"masking-input",level:4},{value:"Next Sentence Prediction",id:"next-sentence-prediction",level:4},{value:"Fine-tuning",id:"fine-tuning",level:3},{value:"Benchmark: GLUE",id:"benchmark-glue",level:4},{value:"Downstream Tasks",id:"downstream-tasks",level:4},{value:"Sentiment Analysis",id:"sentiment-analysis",level:5},{value:"\u7acb\u573a\u5206\u6790",id:"\u7acb\u573a\u5206\u6790",level:5},{value:"Extraction-based Question Answering",id:"extraction-based-question-answering",level:5},{value:"\u5176\u4ed6\u5e94\u7528",id:"\u5176\u4ed6\u5e94\u7528",level:5},{value:"Why does BERT work?",id:"why-does-bert-work",level:3},{value:"GPT: Generative Pre-trained Transformer",id:"gpt-generative-pre-trained-transformer",level:2}],o={toc:l},N="wrapper";function k(a){let{components:e,...t}=a;return(0,s.kt)(N,(0,n.Z)({},o,t,{components:e,mdxType:"MDXLayout"}),(0,s.kt)("h1",{id:"\u81ea\u76d1\u7763\u5b66\u4e60self-supervised-learning"},"\u81ea\u76d1\u7763\u5b66\u4e60\uff08Self-Supervised Learning\uff09"),(0,s.kt)("admonition",{type:"tip"},(0,s.kt)("p",{parentName:"admonition"},"\u5728\u81ea\u76d1\u7763\u5b66\u4e60\u7684\u6a21\u578b\u4e2d\uff0c\u51fa\u73b0\u4e86\u5f88\u591a\u4ee5\u829d\u9ebb\u8857\u4efb\u52a1\u547d\u540d\u7684\u7ecf\u5178\u6a21\u578b\u548c\u8bba\u6587\u3002"),(0,s.kt)("p",{parentName:"admonition"},(0,s.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_imagesimage-20231121113727141.png",alt:"image-20231121113727141"}))),(0,s.kt)("h2",{id:"\u4ecb\u7ecd"},"\u4ecb\u7ecd"),(0,s.kt)("p",null,"\u81ea\u76d1\u7763\u5b66\u4e60\u662f\u65e0\u76d1\u7763\u5b66\u4e60\u7684\u4e00\u79cd\u65b9\u6cd5\uff0c\u5229\u7528\u672a\u6807\u8bb0\u7684\u6570\u636e\u6765\u8bad\u7ec3\u6a21\u578b\u3002\u4e0e\u4f20\u7edf\u7684\u76d1\u7763\u5b66\u4e60\u4e0d\u540c\uff0c\u81ea\u76d1\u7763\u5b66\u4e60\u4e0d\u9700\u8981\u4f9d\u8d56\u4eba\u5de5\u6807\u6ce8\u7684\u6807\u7b7e\u6570\u636e\uff0c\u800c\u662f\u901a\u8fc7\u81ea\u52a8\u6784\u5efa\u4efb\u52a1\u6765\u751f\u6210\u4f2a\u6807\u7b7e\uff0c\u4ece\u800c\u6307\u5bfc\u6a21\u578b\u7684\u5b66\u4e60\u3002"),(0,s.kt)("p",null,"\u81ea\u76d1\u7763\u5b66\u4e60\u7684\u57fa\u672c\u539f\u7406\u662f\uff0c\u901a\u8fc7\u5bf9",(0,s.kt)("strong",{parentName:"p"},"\u8f93\u5165\u6570\u636e"),"\u8fdb\u884c\u67d0\u79cd",(0,s.kt)("strong",{parentName:"p"},"\u53d8\u6362"),"\u6216",(0,s.kt)("strong",{parentName:"p"},"\u64cd\u4f5c"),"\uff0c\u4f7f\u5f97\u6a21\u578b\u80fd\u591f\u4ece\u4e2d",(0,s.kt)("strong",{parentName:"p"},"\u63d0\u53d6\u6709\u7528\u7684\u7279\u5f81\u548c\u8bed\u4e49\u4fe1\u606f"),"\u3002\u4f8b\u5982\uff0c\u5728\u81ea\u7136\u8bed\u8a00\u5904\u7406\u9886\u57df\uff0c\u4e00\u79cd\u5e38\u89c1\u7684\u81ea\u76d1\u7763\u5b66\u4e60\u4efb\u52a1\u662f\u9884\u6d4b\u4e0b\u4e00\u4e2a\u5355\u8bcd\uff1b\u5728\u8ba1\u7b97\u673a\u89c6\u89c9\u9886\u57df\uff0c\u4e00\u79cd\u5e38\u89c1\u7684\u81ea\u76d1\u7763\u5b66\u4e60\u4efb\u52a1\u662f\u9884\u6d4b\u56fe\u50cf\u4e2d\u7684\u7f3a\u5931\u90e8\u5206\u3002\u8fd9\u4e9b\u4efb\u52a1\u53ef\u4ee5\u5e2e\u52a9\u6a21\u578b\u5b66\u4e60\u5230",(0,s.kt)("strong",{parentName:"p"},"\u8f93\u5165\u6570\u636e\u4e2d\u7684\u6f5c\u5728\u7ed3\u6784\u548c\u89c4\u5f8b"),"\uff0c\u4ece\u800c\u63d0\u9ad8\u5176\u6cdb\u5316\u80fd\u529b\u548c\u6027\u80fd\u3002"),(0,s.kt)("p",null,(0,s.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_imagesimage-20231121124909759.png",alt:"image-20231121124909759"})),(0,s.kt)("h2",{id:"bertbidirectional-encoder-representation-from-transformers"},"BERT\uff08Bidirectional Encoder Representation from Transformers\uff09"),(0,s.kt)("p",null,"\u4e0b\u9762\u4ee5BERT\u4e3a\u4f8b\uff0c\u4ecb\u7ecd\u81ea\u76d1\u7763\u6a21\u578b\u3002"),(0,s.kt)("h3",{id:"\u7ed3\u6784"},"\u7ed3\u6784"),(0,s.kt)("p",null,"BERT\u7684\u7ed3\u6784\u5176\u5b9e\u662fTransformer\u7684Encoder\u90e8\u5206\uff0c\u4ec5\u4f7f\u7528Encoder\u505a\u7279\u5f81\u62bd\u53d6\u5668\u3002"),(0,s.kt)("p",null,"BERT\uff08Bidirectional Encoder Representations from Transformers\uff09\u672c\u8eab\u662f\u4e00\u79cd\u9884\u8bad\u7ec3\u7684\u6a21\u578b\u67b6\u6784\uff0c\u901a\u5e38\u662f\u5728\u5927\u89c4\u6a21\u65e0\u6807\u7b7e\u6570\u636e\u4e0a\u8fdb\u884c\u9884\u8bad\u7ec3\uff0c\u7136\u540e\u5728\u7279\u5b9a\u4efb\u52a1\u4e0a\u8fdb\u884c\u5fae\u8c03\u3002BERT\u5e76\u4e0d\u662f\u4e00\u4e2a\u7528\u4e8e\u7279\u5b9a\u4efb\u52a1\u7684\u6a21\u578b\uff0c\u800c\u662f\u4e00\u4e2a\u901a\u7528\u7684\u8bed\u8a00\u8868\u793a\u6a21\u578b\u3002"),(0,s.kt)("p",null,"\u4f7f\u7528 BERT \u7684\u4e00\u822c\u6b65\u9aa4\u5305\u62ec\uff1a"),(0,s.kt)("ol",null,(0,s.kt)("li",{parentName:"ol"},(0,s.kt)("strong",{parentName:"li"},"\u9884\u8bad\u7ec3\uff08Pretraining\uff09"),"\uff1a\u5728\u5927\u89c4\u6a21\u65e0\u6807\u7b7e\u6570\u636e\u4e0a\u5bf9 BERT \u8fdb\u884c\u9884\u8bad\u7ec3\uff0c\u5b66\u4e60\u901a\u7528\u7684\u8bed\u8a00\u8868\u793a\u3002"),(0,s.kt)("li",{parentName:"ol"},(0,s.kt)("strong",{parentName:"li"},"\u5fae\u8c03\uff08Fine-tuning\uff09"),"\uff1a\u5c06\u9884\u8bad\u7ec3\u7684 BERT \u6a21\u578b\u5e94\u7528\u4e8e\u7279\u5b9a\u4efb\u52a1\uff0c\u5e76\u5728\u6709\u6807\u7b7e\u7684\u6570\u636e\u4e0a\u8fdb\u884c\u5fae\u8c03\uff0c\u4ee5\u9002\u5e94\u8be5\u4efb\u52a1\u3002"),(0,s.kt)("li",{parentName:"ol"},(0,s.kt)("strong",{parentName:"li"},"\u5e94\u7528\u4e8e\u4e0b\u6e38\u4efb\u52a1\uff08Downstream Tasks\uff09"),"\uff1a\u5fae\u8c03\u540e\u7684 BERT \u6a21\u578b\u53ef\u4ee5\u88ab\u7528\u4e8e\u6267\u884c\u7279\u5b9a\u7684\u4e0b\u6e38\u4efb\u52a1\uff0c\u5982\u6587\u672c\u5206\u7c7b\u3001\u547d\u540d\u5b9e\u4f53\u8bc6\u522b\u7b49\u3002")),(0,s.kt)("h3",{id:"self-supervised-pretraining"},"Self-Supervised Pretraining"),(0,s.kt)("h4",{id:"masking-input"},"Masking Input"),(0,s.kt)("p",null,"BERT\u6a21\u578b\u7684\u81ea\u76d1\u7763\u6027\u8d28\u4e3b\u8981\u4f53\u73b0\u5728\u5176\u8bad\u7ec3\u6570\u636e\u5e76\u4e0d\u9700\u8981\u4eba\u4e3a\u6807\u6ce8label\uff0c\u800c\u662f\u901a\u8fc7\u5bf9\u8f93\u5165\u53e5\u5b50\u4e2d\u7684\u90e8\u5206\u8bcd\u6c47\u505amask\uff0c\u5c06\u8f93\u5165\u6570\u636e\u7684\u90e8\u5206\u5185\u5bb9\u4f7f\u7528special token\u6216random token\u8fdb\u884c\u906e\u6321\u540e\uff0c\u5582\u5165Encoder\u4e2d\u3002\u5bf9\u4e8e\u6bcf\u4e2a\u88abmask\u6389\u7684\u8bcd\u6c47\uff0cBERT\u8f93\u51fa\u4e00\u4e2a\u6982\u7387\u5206\u5e03\u5411\u91cf\uff0c\u8868\u793a\u8fd9\u4e2a\u8bcd\u6c47\u5c5e\u4e8e\u8bcd\u6c47\u8868\u4e2d\u7684\u54ea\u4e00\u4e2a\u3002"),(0,s.kt)("p",null,"BERT\u7684\u635f\u5931\u51fd\u6570\u4e3b\u8981\u662fMasked Language Model\uff08MLM\uff09\u4efb\u52a1\u7684\u4ea4\u53c9\u71b5\u635f\u5931\uff0c\u901a\u8fc7",(0,s.kt)("strong",{parentName:"p"},"\u6700\u5c0f\u5316"),"Encoder\u8f93\u51fa\u7684\u6982\u7387\u5206\u5e03\u4e0eGround Truth\u4e4b\u95f4\u7684",(0,s.kt)("strong",{parentName:"p"},"\u4ea4\u53c9\u71b5\u635f\u5931\u51fd\u6570"),"\u6765\u8bad\u7ec3\u6a21\u578b\u3002"),(0,s.kt)("div",{className:"math math-display"},(0,s.kt)("span",{parentName:"div",className:"katex-display"},(0,s.kt)("span",{parentName:"span",className:"katex"},(0,s.kt)("span",{parentName:"span",className:"katex-mathml"},(0,s.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,s.kt)("semantics",{parentName:"math"},(0,s.kt)("mtable",{parentName:"semantics",width:"100%"},(0,s.kt)("mtr",{parentName:"mtable"},(0,s.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,s.kt)("mtd",{parentName:"mtr"},(0,s.kt)("mrow",{parentName:"mtd"},(0,s.kt)("mi",{parentName:"mrow"},"L"),(0,s.kt)("mo",{parentName:"mrow"},"="),(0,s.kt)("mo",{parentName:"mrow"},"\u2212"),(0,s.kt)("mfrac",{parentName:"mrow"},(0,s.kt)("mn",{parentName:"mfrac"},"1"),(0,s.kt)("mi",{parentName:"mfrac"},"N")),(0,s.kt)("munderover",{parentName:"mrow"},(0,s.kt)("mo",{parentName:"munderover"},"\u2211"),(0,s.kt)("mrow",{parentName:"munderover"},(0,s.kt)("mi",{parentName:"mrow"},"i"),(0,s.kt)("mo",{parentName:"mrow"},"="),(0,s.kt)("mn",{parentName:"mrow"},"1")),(0,s.kt)("mi",{parentName:"munderover"},"N")),(0,s.kt)("msub",{parentName:"mrow"},(0,s.kt)("mi",{parentName:"msub"},"y"),(0,s.kt)("mi",{parentName:"msub"},"i")),(0,s.kt)("mi",{parentName:"mrow"},"log"),(0,s.kt)("mo",{parentName:"mrow"},"\u2061"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,s.kt)("msub",{parentName:"mrow"},(0,s.kt)("mi",{parentName:"msub"},"p"),(0,s.kt)("mi",{parentName:"msub"},"i")),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},")"))),(0,s.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,s.kt)("mtd",{parentName:"mtr"},(0,s.kt)("mtext",{parentName:"mtd"},"(1)")))),(0,s.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"L=-\\frac1N\\sum_{i=1}^Ny_i\\log(p_i)\\tag{1}")))),(0,s.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6833em"}}),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal"},"L"),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,s.kt)("span",{parentName:"span",className:"mrel"},"="),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"3.106em",verticalAlign:"-1.2777em"}}),(0,s.kt)("span",{parentName:"span",className:"mord"},"\u2212"),(0,s.kt)("span",{parentName:"span",className:"mord"},(0,s.kt)("span",{parentName:"span",className:"mopen nulldelimiter"}),(0,s.kt)("span",{parentName:"span",className:"mfrac"},(0,s.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.3214em"}},(0,s.kt)("span",{parentName:"span",style:{top:"-2.314em"}},(0,s.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,s.kt)("span",{parentName:"span",className:"mord"},(0,s.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.10903em"}},"N"))),(0,s.kt)("span",{parentName:"span",style:{top:"-3.23em"}},(0,s.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,s.kt)("span",{parentName:"span",className:"frac-line",style:{borderBottomWidth:"0.04em"}})),(0,s.kt)("span",{parentName:"span",style:{top:"-3.677em"}},(0,s.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,s.kt)("span",{parentName:"span",className:"mord"},(0,s.kt)("span",{parentName:"span",className:"mord"},"1")))),(0,s.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.686em"}},(0,s.kt)("span",{parentName:"span"}))))),(0,s.kt)("span",{parentName:"span",className:"mclose nulldelimiter"})),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,s.kt)("span",{parentName:"span",className:"mop op-limits"},(0,s.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.8283em"}},(0,s.kt)("span",{parentName:"span",style:{top:"-1.8723em",marginLeft:"0em"}},(0,s.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.05em"}}),(0,s.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,s.kt)("span",{parentName:"span",className:"mord mtight"},(0,s.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"i"),(0,s.kt)("span",{parentName:"span",className:"mrel mtight"},"="),(0,s.kt)("span",{parentName:"span",className:"mord mtight"},"1")))),(0,s.kt)("span",{parentName:"span",style:{top:"-3.05em"}},(0,s.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.05em"}}),(0,s.kt)("span",{parentName:"span"},(0,s.kt)("span",{parentName:"span",className:"mop op-symbol large-op"},"\u2211"))),(0,s.kt)("span",{parentName:"span",style:{top:"-4.3em",marginLeft:"0em"}},(0,s.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.05em"}}),(0,s.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,s.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.10903em"}},"N")))),(0,s.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.2777em"}},(0,s.kt)("span",{parentName:"span"}))))),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,s.kt)("span",{parentName:"span",className:"mord"},(0,s.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"y"),(0,s.kt)("span",{parentName:"span",className:"msupsub"},(0,s.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3117em"}},(0,s.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0359em",marginRight:"0.05em"}},(0,s.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,s.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,s.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"i")))),(0,s.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,s.kt)("span",{parentName:"span"})))))),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,s.kt)("span",{parentName:"span",className:"mop"},"lo",(0,s.kt)("span",{parentName:"span",style:{marginRight:"0.01389em"}},"g")),(0,s.kt)("span",{parentName:"span",className:"mopen"},"("),(0,s.kt)("span",{parentName:"span",className:"mord"},(0,s.kt)("span",{parentName:"span",className:"mord mathnormal"},"p"),(0,s.kt)("span",{parentName:"span",className:"msupsub"},(0,s.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3117em"}},(0,s.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,s.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,s.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,s.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"i")))),(0,s.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,s.kt)("span",{parentName:"span"})))))),(0,s.kt)("span",{parentName:"span",className:"mclose"},")")),(0,s.kt)("span",{parentName:"span",className:"tag"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"3.106em",verticalAlign:"-1.2777em"}}),(0,s.kt)("span",{parentName:"span",className:"mord text"},(0,s.kt)("span",{parentName:"span",className:"mord"},"("),(0,s.kt)("span",{parentName:"span",className:"mord"},(0,s.kt)("span",{parentName:"span",className:"mord"},"1")),(0,s.kt)("span",{parentName:"span",className:"mord"},")"))))))),(0,s.kt)("p",null,"\u5176\u4e2d\uff1a"),(0,s.kt)("ul",null,(0,s.kt)("li",{parentName:"ul"},(0,s.kt)("span",{parentName:"li",className:"math math-inline"},(0,s.kt)("span",{parentName:"span",className:"katex"},(0,s.kt)("span",{parentName:"span",className:"katex-mathml"},(0,s.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,s.kt)("semantics",{parentName:"math"},(0,s.kt)("mrow",{parentName:"semantics"},(0,s.kt)("mi",{parentName:"mrow"},"N")),(0,s.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"N")))),(0,s.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6833em"}}),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.10903em"}},"N"))))),"\u662f\u8f93\u51fa\u7684\u6982\u7387\u5206\u5e03\u5411\u91cf\u7684\u7ef4\u5ea6\u3002"),(0,s.kt)("li",{parentName:"ul"},(0,s.kt)("span",{parentName:"li",className:"math math-inline"},(0,s.kt)("span",{parentName:"span",className:"katex"},(0,s.kt)("span",{parentName:"span",className:"katex-mathml"},(0,s.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,s.kt)("semantics",{parentName:"math"},(0,s.kt)("mrow",{parentName:"semantics"},(0,s.kt)("msub",{parentName:"mrow"},(0,s.kt)("mi",{parentName:"msub"},"y"),(0,s.kt)("mi",{parentName:"msub"},"i"))),(0,s.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"y_{i}")))),(0,s.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"0.625em",verticalAlign:"-0.1944em"}}),(0,s.kt)("span",{parentName:"span",className:"mord"},(0,s.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"y"),(0,s.kt)("span",{parentName:"span",className:"msupsub"},(0,s.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3117em"}},(0,s.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0359em",marginRight:"0.05em"}},(0,s.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,s.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,s.kt)("span",{parentName:"span",className:"mord mtight"},(0,s.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"i"))))),(0,s.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,s.kt)("span",{parentName:"span"})))))))))),"\u662f\u6982\u7387\u5206\u5e03\u5411\u91cf\u6807\u7b7e\u3002"),(0,s.kt)("li",{parentName:"ul"},(0,s.kt)("span",{parentName:"li",className:"math math-inline"},(0,s.kt)("span",{parentName:"span",className:"katex"},(0,s.kt)("span",{parentName:"span",className:"katex-mathml"},(0,s.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,s.kt)("semantics",{parentName:"math"},(0,s.kt)("mrow",{parentName:"semantics"},(0,s.kt)("msub",{parentName:"mrow"},(0,s.kt)("mi",{parentName:"msub"},"p"),(0,s.kt)("mi",{parentName:"msub"},"i"))),(0,s.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"p_{i}")))),(0,s.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"0.625em",verticalAlign:"-0.1944em"}}),(0,s.kt)("span",{parentName:"span",className:"mord"},(0,s.kt)("span",{parentName:"span",className:"mord mathnormal"},"p"),(0,s.kt)("span",{parentName:"span",className:"msupsub"},(0,s.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3117em"}},(0,s.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,s.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,s.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,s.kt)("span",{parentName:"span",className:"mord mtight"},(0,s.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"i"))))),(0,s.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,s.kt)("span",{parentName:"span"})))))))))),"\u662f\u6a21\u578b\u9884\u6d4b\u7684\u6982\u7387\u5206\u5e03\u5411\u91cf\u3002")),(0,s.kt)("p",null,(0,s.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_imagesimage-20231121134420134.png",alt:"image-20231121134420134"})),(0,s.kt)("h4",{id:"next-sentence-prediction"},"Next Sentence Prediction"),(0,s.kt)("p",null,(0,s.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_imagesimage-20231121171808764.png",alt:"image-20231121171808764"})),(0,s.kt)("h3",{id:"fine-tuning"},"Fine-tuning"),(0,s.kt)("p",null,"\u5728\u9884\u8bad\u7ec3\u4e4b\u540e\uff0cBERT \u7684\u6a21\u578b\u53c2\u6570\u53ef\u4ee5\u88ab\u7528\u4e8e\u591a\u4e2a\u4e0b\u6e38\u4efb\u52a1\uff0c\u5982\u6587\u672c\u5206\u7c7b\u3001\u547d\u540d\u5b9e\u4f53\u8bc6\u522b\u3001\u95ee\u7b54\u7b49\u3002"),(0,s.kt)("p",null,"\u9996\u5148\uff0c\u6211\u4eec\u5148\u6765\u4e86\u89e3\u4e00\u4e0bNLP\u4efb\u52a1\u4e2d\u5f88\u91cd\u8981\u7684\u4e00\u4e2aBenchmark\uff1aGLUE\u3002"),(0,s.kt)("h4",{id:"benchmark-glue"},"Benchmark: GLUE"),(0,s.kt)("p",null,(0,s.kt)("a",{parentName:"p",href:"https://gluebenchmark.com/"},"GLUE\uff08General Language Understanding Evaluation\uff09"),"\u662f\u4e00\u4e2a\u8bc4\u4f30\u81ea\u7136\u8bed\u8a00\u5904\u7406\u6a21\u578b\u5728\u591a\u4e2a\u4efb\u52a1\u4e0a\u7efc\u5408\u6027\u80fd\u7684\u57fa\u51c6\uff08benchmark\uff09\u3002\u5b83\u65e8\u5728\u6d4b\u8bd5\u6a21\u578b\u5bf9\u5404\u79cd\u8bed\u8a00\u4efb\u52a1\u7684\u901a\u7528\u7406\u89e3\u80fd\u529b\u3002GLUE benchmark \u5305\u542b\u4e86\u591a\u4e2a\u4efb\u52a1\uff0c\u6bcf\u4e2a\u4efb\u52a1\u90fd\u6709\u4e00\u4e2a\u5bf9\u5e94\u7684\u6570\u636e\u96c6\u548c\u8bc4\u4f30\u6807\u51c6\u3002"),(0,s.kt)("ol",null,(0,s.kt)("li",{parentName:"ol"},(0,s.kt)("strong",{parentName:"li"},"MNLI\uff08MultiNLI\uff09"),"\uff1a\u81ea\u7136\u8bed\u8a00\u63a8\u7406\u4efb\u52a1\uff0c\u8981\u6c42\u6a21\u578b\u5224\u65ad\u7ed9\u5b9a\u7684\u4e24\u4e2a\u53e5\u5b50\u4e4b\u95f4\u7684\u5173\u7cfb\u662f\u8574\u542b\u3001\u77db\u76fe\u8fd8\u662f\u4e2d\u7acb\u3002"),(0,s.kt)("li",{parentName:"ol"},(0,s.kt)("strong",{parentName:"li"},"QQP\uff08Quora Question Pairs\uff09"),"\uff1a\u95ee\u9898\u5339\u914d\u4efb\u52a1\uff0c\u8981\u6c42\u6a21\u578b\u5224\u65ad\u4e24\u4e2a\u95ee\u9898\u662f\u5426\u8bed\u4e49\u4e0a\u7b49\u4ef7\u3002"),(0,s.kt)("li",{parentName:"ol"},(0,s.kt)("strong",{parentName:"li"},"QNLI\uff08Question-answering Natural Language Inference\uff09"),"\uff1a\u53e5\u5b50\u5206\u7c7b\u4efb\u52a1\uff0c\u8981\u6c42\u6a21\u578b\u5224\u65ad\u7ed9\u5b9a\u95ee\u9898\u548c\u53e5\u5b50\u4e4b\u95f4\u7684\u5173\u7cfb\u3002"),(0,s.kt)("li",{parentName:"ol"},(0,s.kt)("strong",{parentName:"li"},"RTE\uff08Recognizing Textual Entailment\uff09"),"\uff1a\u6587\u672c\u8574\u6db5\u4efb\u52a1\uff0c\u8981\u6c42\u6a21\u578b\u5224\u65ad\u7ed9\u5b9a\u7684\u4e24\u4e2a\u6587\u672c\u4e4b\u95f4\u662f\u5426\u5b58\u5728\u8574\u6db5\u5173\u7cfb\u3002"),(0,s.kt)("li",{parentName:"ol"},(0,s.kt)("strong",{parentName:"li"},"STS-B\uff08Semantic Textual Similarity Benchmark\uff09"),"\uff1a\u8bed\u4e49\u6587\u672c\u76f8\u4f3c\u5ea6\u4efb\u52a1\uff0c\u8981\u6c42\u6a21\u578b\u5ea6\u91cf\u4e24\u4e2a\u6587\u672c\u4e4b\u95f4\u7684\u8bed\u4e49\u76f8\u4f3c\u5ea6\u3002"),(0,s.kt)("li",{parentName:"ol"},(0,s.kt)("strong",{parentName:"li"},"CoLA\uff08Corpus of Linguistic Acceptability\uff09"),"\uff1a\u8bed\u8a00\u53ef\u63a5\u53d7\u6027\u5224\u65ad\u4efb\u52a1\uff0c\u8981\u6c42\u6a21\u578b\u5224\u65ad\u4e00\u4e2a\u53e5\u5b50\u662f\u5426\u8bed\u6cd5\u4e0a\u6b63\u786e\u3002"),(0,s.kt)("li",{parentName:"ol"},(0,s.kt)("strong",{parentName:"li"},"MRPC\uff08Microsoft Research Paraphrase Corpus\uff09"),"\uff1a\u77ed\u8bed\u5339\u914d\u4efb\u52a1\uff0c\u8981\u6c42\u6a21\u578b\u5224\u65ad\u4e24\u4e2a\u53e5\u5b50\u662f\u5426\u8bed\u4e49\u4e0a\u7b49\u4ef7\u3002"),(0,s.kt)("li",{parentName:"ol"},(0,s.kt)("strong",{parentName:"li"},"SST-2\uff08Stanford Sentiment Treebank\uff09"),"\uff1a\u60c5\u611f\u5206\u7c7b\u4efb\u52a1\uff0c\u8981\u6c42\u6a21\u578b\u5224\u65ad\u7ed9\u5b9a\u53e5\u5b50\u7684\u60c5\u611f\u6781\u6027\u3002"),(0,s.kt)("li",{parentName:"ol"},(0,s.kt)("strong",{parentName:"li"},"WNLI\uff08Winograd NLI\uff09"),"\uff1a\u81ea\u7136\u8bed\u8a00\u63a8\u7406\u4efb\u52a1\uff0c\u5c5e\u4e8e Winograd \u6a21\u5f0f\u7684\u53d8\u4f53\uff0c\u8981\u6c42\u6a21\u578b\u5224\u65ad\u4e00\u4e2a\u7ed9\u5b9a\u7684\u53e5\u5b50\u5bf9\u662f\u5426\u5b58\u5728\u8574\u542b\u5173\u7cfb\u3002")),(0,s.kt)("p",null,"GLUE \u63d0\u4f9b\u4e86\u4e00\u4e2a\u5168\u9762\u7684\u6d4b\u8bd5\u5e73\u53f0\uff0c\u6709\u52a9\u4e8e\u8bc4\u4f30\u548c\u6bd4\u8f83\u4e0d\u540c\u81ea\u7136\u8bed\u8a00\u5904\u7406\u6a21\u578b\u5728\u591a\u4e2a\u4efb\u52a1\u4e0a\u7684\u6027\u80fd\u3002"),(0,s.kt)("p",null,(0,s.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_imagesimage-20231121172718354.png",alt:"image-20231121172718354"})),(0,s.kt)("h4",{id:"downstream-tasks"},"Downstream Tasks"),(0,s.kt)("h5",{id:"sentiment-analysis"},"Sentiment Analysis"),(0,s.kt)("p",null,(0,s.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_imagesimage-20231121203549320.png",alt:"image-20231121203549320"})),(0,s.kt)("p",null,"BERT\u4f5c\u4e3a\u81ea\u76d1\u7763\u7684\u9884\u8bad\u7ec3\u6a21\u578b\uff0c\u4ece\u5927\u8bed\u6599\u5e93\u4e2d\u5b66\u4e60\u5230\u4e86\u4e00\u5b9a\u7684\u8bed\u8a00\u77e5\u8bc6\uff0c\u5728\u505a\u6587\u5b57\u60c5\u611f\u5206\u6790\u65f6\uff0c\u53ea\u9700\u8981\u5728\u4e0b\u6e38\u8fde\u63a5\u4e0a\u5bf9\u5e94\u7684\u5206\u7c7b\u5668\u7f51\u7edc\uff0c\u5373\u4f7f\u53ea\u6709\u6bd4\u8f83\u5c11\u91cf\u7684\u8bad\u7ec3\u8d44\u6599\u4e5f\u80fd\u5f97\u5230\u6bd4\u8f83\u597d\u7684\u6548\u679c\u3002"),(0,s.kt)("p",null,"\u4e0b\u56fe\u5c06Pre-training&Fine-tuning\u8303\u5f0f\u4e0eScratch\u8303\u5f0f\u7684\u8bad\u7ec3\u6548\u679c\u505a\u4e86\u5bf9\u6bd4\uff0c\u5176\u4e2dScratch\u8303\u5f0f\u5373\u4f7f\u7528\u4f20\u7edf\u7684\u968f\u673a\u521d\u59cb\u5316\u7684\u65b9\u5f0f\u4ece\u5934\u8bad\u7ec3\u6574\u4e2a\u5206\u7c7b\u7f51\u7edc\u3002\u53ef\u4ee5\u770b\u5230\u9884\u8bad\u7ec3&\u5fae\u8c03\u7684\u8bad\u7ec3\u8303\u5f0f\u53ef\u4ee5\u52a0\u901f\u6a21\u578b\u7684\u6536\u655b\uff08Convergence\uff09\u5e76\u4e14\u6548\u679c\u4e5f\u66f4\u597d\u3002"),(0,s.kt)("p",null,(0,s.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_imagesimage-20231121203701613.png",alt:"image-20231121203701613"})),(0,s.kt)("h5",{id:"\u7acb\u573a\u5206\u6790"},"\u7acb\u573a\u5206\u6790"),(0,s.kt)("p",null,(0,s.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_imagesimage-20231121205359709.png",alt:"image-20231121205359709"})),(0,s.kt)("h5",{id:"extraction-based-question-answering"},"Extraction-based Question Answering"),(0,s.kt)("p",null,"BERT\u4e5f\u53ef\u4ee5\u7528\u6765\u5b8c\u6210\u622a\u53d6\u5f0f\u95ee\u7b54\u4efb\u52a1\uff0c\u63d0\u4f9b\u4e00\u7bc7\u6587\u7ae0\u4ee5\u53ca\u95ee\u9898\uff0c\u8981\u6c42\u8f93\u51fa\u4e24\u4e2ainteger\u4ee3\u8868\u7b54\u6848\u77ed\u8bed\u5728\u8be5\u6587\u7ae0\u4e2d\u7684\u8d77\u59cb\u4f4d\u7f6e\u4ee5\u53ca\u7ed3\u675f\u4f4d\u7f6e\u3002"),(0,s.kt)("p",null,(0,s.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_imagesimage-20231121205619437.png",alt:"image-20231121205619437"})),(0,s.kt)("p",null,"\u5177\u4f53\u7684\u89e3\u51b3\u65b9\u6848\uff1a\u9009\u62e9\u8f93\u5165\u6587\u7ae0\u7684\u6240\u6709token\u6240\u5bf9\u5e94\u7684\u8f93\u51fa\u5411\u91cf\uff0c\u968f\u673a\u521d\u59cb\u5316\u4e24\u4e2a\u76f8\u540c\u7ef4\u5ea6\u7684\u5411\u91cf\uff0c\u5206\u522b\u4e0e\u8f93\u51fa\u5411\u91cf\u505aDot Product\uff0c\u5728\u7ecf\u8fc7Softmax\u4e4b\u540e\u9009\u62e9\u6700\u5927\u7684\u5f97\u5206\u6240\u5bf9\u5e94\u7684\u7d22\u5f15\u3002\u5f97\u5230\u7684\u4e24\u4e2a\u7d22\u5f15\u5206\u522b\u662f\u7b54\u6848\u77ed\u8bed\u5728\u6587\u7ae0\u4e2d\u5f00\u59cb\u7684\u4f4d\u7f6e\u4ee5\u53ca\u7ed3\u675f\u7684\u4f4d\u7f6e\u3002"),(0,s.kt)("p",null,(0,s.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_imagesimage-20231121211218801.png",alt:"image-20231121211218801"})),(0,s.kt)("p",null,(0,s.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_imagesimage-20231121210938519.png",alt:"image-20231121210938519"})),(0,s.kt)("h5",{id:"\u5176\u4ed6\u5e94\u7528"},"\u5176\u4ed6\u5e94\u7528"),(0,s.kt)("p",null,"\u867d\u7136\u4ee5\u4e0a\u7684\u5e94\u7528\u90fd\u662fNLP\u9886\u57df\u7684\uff0c\u4f46\u662fBERT\u662fSeq2Seq\u6a21\u578b\uff0c\u56fe\u7247\u3001\u8bed\u97f3\u7b49\u4fe1\u53f7\u4e5f\u90fd\u53ef\u4ee5\u4f5c\u4e3aSequence\u8f93\u5165\u81f3BERT\u4e2d\uff0c\u56e0\u6b64BERT\u4e5f\u53ef\u4ee5\u901a\u8fc7\u8fc1\u79fb\u5b66\u4e60\u5e94\u7528\u81f3\u591a\u6a21\u6001\u9886\u57df\u3002"),(0,s.kt)("h3",{id:"why-does-bert-work"},"Why does BERT work?"),(0,s.kt)("p",null,"BERT\u5728\u5927\u89c4\u6a21\u8bed\u6599\u5e93\uff08Corpus\uff09\u4e0a\u9884\u8bad\u7ec3\u540e\uff0c\u8f93\u51fa\u7684\u5411\u91cf\u8868\u793a\u4e86\u5bf9\u5e94\u8f93\u5165token\u7684\u610f\u601d\uff0c\u7279\u522b\u5730\uff0c\u662f\u8003\u8651\u4e86",(0,s.kt)("strong",{parentName:"p"},"\u4e0a\u4e0b\u6587\u4fe1\u606f"),"\u7684\u610f\u601d\u3002\u6bd4\u5982\uff0c\u5bf9\u4e8e\u6c34\u679c\u7684\u82f9\u679c\u5df2\u7ecf\u82f9\u679c\u516c\u53f8\u7684\u82f9\u679c\uff0cBERT\u5bf9\u4e00\u6837\u7684\u82f9\u679c\u6709\u4e0d\u540c\u7684\u8f93\u51fa\u3002\u5373\u5bf9\u4e00\u4e2a\u5904\u5728\u4e0d\u540c\u4e0a\u4e0b\u6587\u4fe1\u606f\u4e2d\u7684\u76f8\u540c\u8bcd\u6c47\uff0cBERT\u6709\u4e0d\u540c\u7684Embedding\u3002\u7c7b\u4f3c\u4e8eWord Embedding\u4e2d\u7684CBOW\uff0cBERT\u53ef\u4ee5\u770b\u4f5c\u662f",(0,s.kt)("strong",{parentName:"p"},"Contextualized Word Embedding"),"\u3002"),(0,s.kt)("blockquote",null,(0,s.kt)("p",{parentName:"blockquote"},"BERT\u6a21\u578b\u7684\u6838\u5fc3\u5c31\u662f\u901a\u8fc7\u9884\u8bad\u7ec3\u6765\u5b66\u4e60\u4e0a\u4e0b\u6587\u4fe1\u606f\uff0c\u8fdb\u800c\u5bf9\u6bcf\u4e2a\u8f93\u5165token\u751f\u6210\u76f8\u5e94\u7684\u5411\u91cf\u8868\u793a\u3002\u8fd9\u4e2a\u5411\u91cf\u8868\u793a\u8003\u8651\u4e86\u4e0a\u4e0b\u6587\u4fe1\u606f\uff0c\u6240\u4ee5\u5bf9\u4e8e\u5904\u5728\u4e0d\u540c\u4e0a\u4e0b\u6587\u4e2d\u7684\u76f8\u540c\u8bcd\u6c47\uff0cBERT\u4f1a\u6709\u4e0d\u540c\u7684Embedding\u3002"),(0,s.kt)("p",{parentName:"blockquote"},"\u2014\u2014\u6765\u81ea\u8baf\u98de\u661f\u706b\u5927\u6a21\u578b")),(0,s.kt)("blockquote",null,(0,s.kt)("p",{parentName:"blockquote"},"\u867d\u7136 BERT \u7684\u786e\u662f\u4e00\u79cd\u57fa\u4e8e\u5927\u89c4\u6a21\u8bed\u6599\u5e93\u7684\u9884\u8bad\u7ec3\u6a21\u578b\uff0c\u4f46\u5b83\u5e76\u4e0d\u662f\u4e00\u79cd\u7b80\u5355\u7684\u8bcd\u5d4c\u5165\u65b9\u6cd5\uff0c\u800c\u662f\u4e00\u79cd\u6df1\u5ea6\u795e\u7ecf\u7f51\u7edc\u6a21\u578b\u3002"),(0,s.kt)("p",{parentName:"blockquote"},"\u5728 BERT \u4e2d\uff0c\u6bcf\u4e2a\u5355\u8bcd\u90fd\u88ab\u5d4c\u5165\u5230\u4e00\u4e2a\u9ad8\u7ef4\u7a7a\u95f4\u4e2d\uff0c\u5e76\u4e14\u8fd9\u4e9b\u5d4c\u5165\u5411\u91cf\u662f\u901a\u8fc7\u591a\u5c42 Transformer \u7f16\u7801\u5668\u751f\u6210\u7684\u3002\u8fd9\u4e9b\u7f16\u7801\u5668\u7684\u6bcf\u4e00\u5c42\u90fd\u5305\u542b\u591a\u4e2a\u81ea\u6ce8\u610f\u529b\u5b50\u5c42\u548c\u4e00\u4e2a\u524d\u9988\u795e\u7ecf\u7f51\u7edc\u5b50\u5c42\uff0c\u5b83\u4eec\u5171\u540c\u4f5c\u7528\u6765\u6355\u6349\u6587\u672c\u4e2d\u7684\u4e0a\u4e0b\u6587\u5173\u7cfb\u548c\u5176\u4ed6\u8bed\u4e49\u7279\u5f81\u3002"),(0,s.kt)("p",{parentName:"blockquote"},"\u56e0\u6b64\uff0cBERT \u4e2d\u7684\u5d4c\u5165\u5411\u91cf\u4e0d\u4ec5\u4ec5\u662f\u5355\u4e2a\u5355\u8bcd\u7684\u8bcd\u4e49\u8868\u5f81\uff0c\u8fd8\u5305\u62ec\u6574\u4e2a\u53e5\u5b50\u6216\u6bb5\u843d\u4e2d\u7684\u8bed\u5883\u4fe1\u606f\u3002\u8fd9\u610f\u5473\u7740\u5373\u4f7f\u4e24\u4e2a\u5355\u8bcd\u5728\u4e0d\u540c\u7684\u4e0a\u4e0b\u6587\u4e2d\u51fa\u73b0\uff0c\u5b83\u4eec\u7684\u5d4c\u5165\u5411\u91cf\u4e5f\u53ef\u80fd\u975e\u5e38\u76f8\u4f3c\uff0c\u56e0\u4e3a\u5b83\u4eec\u5171\u4eab\u76f8\u540c\u7684\u8bed\u4e49\u7ed3\u6784\u3002"),(0,s.kt)("p",{parentName:"blockquote"},"\u603b\u4e4b\uff0cBERT \u53ef\u4ee5\u88ab\u89c6\u4e3a\u4e00\u79cd",(0,s.kt)("strong",{parentName:"p"},"\u4e0a\u4e0b\u6587\u611f\u77e5\u8bcd\u5d4c\u5165"),"\u6280\u672f\uff0c\u4f46\u5b83\u7684\u5b9e\u73b0\u65b9\u5f0f\u6bd4\u4f20\u7edf\u7684\u8bcd\u5d4c\u5165\u65b9\u6cd5\u8981\u590d\u6742\u5f97\u591a\u3002"),(0,s.kt)("p",{parentName:"blockquote"},"\u2014\u2014\u6765\u81ea\u817e\u8baf\u6df7\u5143\u5927\u6a21\u578b")),(0,s.kt)("h2",{id:"gpt-generative-pre-trained-transformer"},"GPT: Generative Pre-trained Transformer"),(0,s.kt)("p",null,"GPT\u7684\u7ed3\u6784\u662fTransformer\u7684Decoder\u90e8\u5206\uff0c\u53ef\u4ee5\u627f\u62c5\u751f\u6210\u7684\u4efb\u52a1\u3002"),(0,s.kt)("p",null,"GPT\u7684\u81ea\u76d1\u7763\u5b66\u4e60\u7684\u7279\u5f81\u4f53\u73b0\u5728\uff1a\u5728\u8bad\u7ec3\u8fc7\u7a0b\u4e2d\uff0cGPT\u6839\u636e\u8f93\u5165\u7684token\u9884\u6d4b\u8f93\u5165\u7684\u4e0b\u4e00\u4e2atoken\u5e94\u8be5\u662f\u4ec0\u4e48\uff0c\u5bf9\u8f93\u51fa\u7684distribution\u4e0eGround Truth\u505aCross Entropy Loss\u6765\u66f4\u65b0\u53c2\u6570\u3002"),(0,s.kt)("p",null,(0,s.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_imagesimage-20231122093825510.png",alt:"image-20231122093825510"})))}k.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/a8fad2e4.f8b254ad.js b/assets/js/a8fad2e4.f8b254ad.js new file mode 100644 index 000000000..28080f0c0 --- /dev/null +++ b/assets/js/a8fad2e4.f8b254ad.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunknpy_notebook=self.webpackChunknpy_notebook||[]).push([[1130],{3905:(a,e,t)=>{t.d(e,{Zo:()=>i,kt:()=>h});var s=t(7294);function n(a,e,t){return e in a?Object.defineProperty(a,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):a[e]=t,a}function m(a,e){var t=Object.keys(a);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(a);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable}))),t.push.apply(t,s)}return t}function p(a){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?m(Object(t),!0).forEach((function(e){n(a,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(t)):m(Object(t)).forEach((function(e){Object.defineProperty(a,e,Object.getOwnPropertyDescriptor(t,e))}))}return a}function r(a,e){if(null==a)return{};var t,s,n=function(a,e){if(null==a)return{};var t,s,n={},m=Object.keys(a);for(s=0;s<m.length;s++)t=m[s],e.indexOf(t)>=0||(n[t]=a[t]);return n}(a,e);if(Object.getOwnPropertySymbols){var m=Object.getOwnPropertySymbols(a);for(s=0;s<m.length;s++)t=m[s],e.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(a,t)&&(n[t]=a[t])}return n}var N=s.createContext({}),l=function(a){var e=s.useContext(N),t=e;return a&&(t="function"==typeof a?a(e):p(p({},e),a)),t},i=function(a){var e=l(a.components);return s.createElement(N.Provider,{value:e},a.children)},k="mdxType",c={inlineCode:"code",wrapper:function(a){var e=a.children;return s.createElement(s.Fragment,{},e)}},o=s.forwardRef((function(a,e){var t=a.components,n=a.mdxType,m=a.originalType,N=a.parentName,i=r(a,["components","mdxType","originalType","parentName"]),k=l(t),o=n,h=k["".concat(N,".").concat(o)]||k[o]||c[o]||m;return t?s.createElement(h,p(p({ref:e},i),{},{components:t})):s.createElement(h,p({ref:e},i))}));function h(a,e){var t=arguments,n=e&&e.mdxType;if("string"==typeof a||n){var m=t.length,p=new Array(m);p[0]=o;var r={};for(var N in e)hasOwnProperty.call(e,N)&&(r[N]=e[N]);r.originalType=a,r[k]="string"==typeof a?a:n,p[1]=r;for(var l=2;l<m;l++)p[l]=t[l];return s.createElement.apply(null,p)}return s.createElement.apply(null,t)}o.displayName="MDXCreateElement"},119:(a,e,t)=>{t.r(e),t.d(e,{assets:()=>N,contentTitle:()=>p,default:()=>c,frontMatter:()=>m,metadata:()=>r,toc:()=>l});var s=t(7462),n=(t(7294),t(3905));const m={},p="Perceptron",r={unversionedId:"Deep-Learning/\u57fa\u7840\u77e5\u8bc6/Perceptron",id:"Deep-Learning/\u57fa\u7840\u77e5\u8bc6/Perceptron",title:"Perceptron",description:"\u4e00\u3001\u4ec0\u4e48\u662f\u611f\u77e5\u673a",source:"@site/docs/Deep-Learning/3-\u57fa\u7840\u77e5\u8bc6/Perceptron.md",sourceDirName:"Deep-Learning/3-\u57fa\u7840\u77e5\u8bc6",slug:"/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/Perceptron",permalink:"/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/Perceptron",draft:!1,tags:[],version:"current",frontMatter:{},sidebar:"deep_learning",previous:{title:"\u5173\u4e8eLogistic Regression",permalink:"/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/LogisticRegression"},next:{title:"\u6c60\u5316\u5c42",permalink:"/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/PoolingLayer"}},N={},l=[{value:"\u4e00\u3001\u4ec0\u4e48\u662f\u611f\u77e5\u673a",id:"\u4e00\u4ec0\u4e48\u662f\u611f\u77e5\u673a",level:2},{value:"\u4e8c\u3001\u8be6\u7ec6\u539f\u7406",id:"\u4e8c\u8be6\u7ec6\u539f\u7406",level:2},{value:"\u4e09\u3001\u603b\u7ed3",id:"\u4e09\u603b\u7ed3",level:2}],i={toc:l},k="wrapper";function c(a){let{components:e,...t}=a;return(0,n.kt)(k,(0,s.Z)({},i,t,{components:e,mdxType:"MDXLayout"}),(0,n.kt)("h1",{id:"perceptron"},"Perceptron"),(0,n.kt)("h2",{id:"\u4e00\u4ec0\u4e48\u662f\u611f\u77e5\u673a"},"\u4e00\u3001\u4ec0\u4e48\u662f\u611f\u77e5\u673a"),(0,n.kt)("p",null,"\u611f\u77e5\u673a\u662f\u4e00\u79cd\u4e8c\u5143\u7ebf\u6027\u5206\u7c7b\u6a21\u578b\uff0c\u65e8\u5728\u5bfb\u627e\u4e00\u4e2a\u8d85\u5e73\u9762\uff08\u5728\u4e8c\u7ef4\u7a7a\u95f4\u4e2d\u5373\u4e3a\u4e00\u6761\u76f4\u7ebf\uff09\uff0c\u5c06\u4e0d\u540c\u7c7b\u522b\u7684\u5b9e\u4f8b\u5212\u5206\u5230\u4e0d\u540c\u7684\u533a\u57df\u3002\u611f\u77e5\u673a\u7684\u8bad\u7ec3\u8fc7\u7a0b\u5305\u62ec\u8fed\u4ee3\u5730\u5bf9\u6837\u672c\u8fdb\u884c\u5206\u7c7b\uff0c\u5e76\u6839\u636e\u5206\u7c7b\u9519\u8bef\u7684\u60c5\u51b5\u8c03\u6574\u8d85\u5e73\u9762\u7684\u53c2\u6570\uff0c\u4f7f\u5f97\u5206\u7c7b\u51c6\u786e\u7387\u9010\u6b65\u63d0\u9ad8\u3002\u611f\u77e5\u673a\u662f\u57fa\u7840\u7684\u673a\u5668\u5b66\u4e60\u7b97\u6cd5\u4e4b\u4e00\uff0c\u5176\u601d\u60f3\u548c\u65b9\u6cd5\u5bf9\u795e\u7ecf\u7f51\u7edc\u7b49\u66f4\u590d\u6742\u7684\u6a21\u578b\u4e5f\u5177\u6709\u542f\u53d1\u610f\u4e49\u3002"),(0,n.kt)("hr",null),(0,n.kt)("h2",{id:"\u4e8c\u8be6\u7ec6\u539f\u7406"},"\u4e8c\u3001\u8be6\u7ec6\u539f\u7406"),(0,n.kt)("ol",null,(0,n.kt)("li",{parentName:"ol"},(0,n.kt)("p",{parentName:"li"},"\u8f93\u5165\u5411\u91cf\uff1a\u611f\u77e5\u673a\u7684\u8f93\u5165\u5411\u91cf\u662f\u4e00\u4e2an\u7ef4\u5411\u91cf",(0,n.kt)("span",{parentName:"p",className:"math math-inline"},(0,n.kt)("span",{parentName:"span",className:"katex"},(0,n.kt)("span",{parentName:"span",className:"katex-mathml"},(0,n.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,n.kt)("semantics",{parentName:"math"},(0,n.kt)("mrow",{parentName:"semantics"},(0,n.kt)("mi",{parentName:"mrow"},"x"),(0,n.kt)("mo",{parentName:"mrow"},"="),(0,n.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,n.kt)("msub",{parentName:"mrow"},(0,n.kt)("mi",{parentName:"msub"},"x"),(0,n.kt)("mn",{parentName:"msub"},"1")),(0,n.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,n.kt)("msub",{parentName:"mrow"},(0,n.kt)("mi",{parentName:"msub"},"x"),(0,n.kt)("mn",{parentName:"msub"},"2")),(0,n.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,n.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"."),(0,n.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"."),(0,n.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"."),(0,n.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,n.kt)("msub",{parentName:"mrow"},(0,n.kt)("mi",{parentName:"msub"},"x"),(0,n.kt)("mi",{parentName:"msub"},"n")),(0,n.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,n.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"x=(x_1,x_2,...,x_n)")))),(0,n.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,n.kt)("span",{parentName:"span",className:"base"},(0,n.kt)("span",{parentName:"span",className:"strut",style:{height:"0.4306em"}}),(0,n.kt)("span",{parentName:"span",className:"mord mathnormal"},"x"),(0,n.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,n.kt)("span",{parentName:"span",className:"mrel"},"="),(0,n.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,n.kt)("span",{parentName:"span",className:"base"},(0,n.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,n.kt)("span",{parentName:"span",className:"mopen"},"("),(0,n.kt)("span",{parentName:"span",className:"mord"},(0,n.kt)("span",{parentName:"span",className:"mord mathnormal"},"x"),(0,n.kt)("span",{parentName:"span",className:"msupsub"},(0,n.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,n.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,n.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,n.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,n.kt)("span",{parentName:"span",className:"mord mtight"},"1")))),(0,n.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,n.kt)("span",{parentName:"span"})))))),(0,n.kt)("span",{parentName:"span",className:"mpunct"},","),(0,n.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,n.kt)("span",{parentName:"span",className:"mord"},(0,n.kt)("span",{parentName:"span",className:"mord mathnormal"},"x"),(0,n.kt)("span",{parentName:"span",className:"msupsub"},(0,n.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,n.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,n.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,n.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,n.kt)("span",{parentName:"span",className:"mord mtight"},"2")))),(0,n.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,n.kt)("span",{parentName:"span"})))))),(0,n.kt)("span",{parentName:"span",className:"mpunct"},","),(0,n.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,n.kt)("span",{parentName:"span",className:"mord"},"..."),(0,n.kt)("span",{parentName:"span",className:"mpunct"},","),(0,n.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,n.kt)("span",{parentName:"span",className:"mord"},(0,n.kt)("span",{parentName:"span",className:"mord mathnormal"},"x"),(0,n.kt)("span",{parentName:"span",className:"msupsub"},(0,n.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.1514em"}},(0,n.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,n.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,n.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,n.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"n")))),(0,n.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,n.kt)("span",{parentName:"span"})))))),(0,n.kt)("span",{parentName:"span",className:"mclose"},")"))))),"\uff0c\u8868\u793a\u4e00\u4e2a\u6837\u672c\u7684\u5404\u4e2a\u7279\u5f81\u503c\u3002")),(0,n.kt)("li",{parentName:"ol"},(0,n.kt)("p",{parentName:"li"},"\u6743\u503c\u5411\u91cf\uff1a\u611f\u77e5\u673a\u7684\u6743\u503c\u5411\u91cf\u4e5f\u662f\u4e00\u4e2an\u7ef4\u5411\u91cf",(0,n.kt)("span",{parentName:"p",className:"math math-inline"},(0,n.kt)("span",{parentName:"span",className:"katex"},(0,n.kt)("span",{parentName:"span",className:"katex-mathml"},(0,n.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,n.kt)("semantics",{parentName:"math"},(0,n.kt)("mrow",{parentName:"semantics"},(0,n.kt)("mi",{parentName:"mrow"},"w"),(0,n.kt)("mo",{parentName:"mrow"},"="),(0,n.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,n.kt)("msub",{parentName:"mrow"},(0,n.kt)("mi",{parentName:"msub"},"w"),(0,n.kt)("mn",{parentName:"msub"},"1")),(0,n.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,n.kt)("msub",{parentName:"mrow"},(0,n.kt)("mi",{parentName:"msub"},"w"),(0,n.kt)("mn",{parentName:"msub"},"2")),(0,n.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,n.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"."),(0,n.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"."),(0,n.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"."),(0,n.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,n.kt)("msub",{parentName:"mrow"},(0,n.kt)("mi",{parentName:"msub"},"w"),(0,n.kt)("mi",{parentName:"msub"},"n")),(0,n.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,n.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"w=(w_1,w_2,...,w_n)")))),(0,n.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,n.kt)("span",{parentName:"span",className:"base"},(0,n.kt)("span",{parentName:"span",className:"strut",style:{height:"0.4306em"}}),(0,n.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02691em"}},"w"),(0,n.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,n.kt)("span",{parentName:"span",className:"mrel"},"="),(0,n.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,n.kt)("span",{parentName:"span",className:"base"},(0,n.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,n.kt)("span",{parentName:"span",className:"mopen"},"("),(0,n.kt)("span",{parentName:"span",className:"mord"},(0,n.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02691em"}},"w"),(0,n.kt)("span",{parentName:"span",className:"msupsub"},(0,n.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,n.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0269em",marginRight:"0.05em"}},(0,n.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,n.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,n.kt)("span",{parentName:"span",className:"mord mtight"},"1")))),(0,n.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,n.kt)("span",{parentName:"span"})))))),(0,n.kt)("span",{parentName:"span",className:"mpunct"},","),(0,n.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,n.kt)("span",{parentName:"span",className:"mord"},(0,n.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02691em"}},"w"),(0,n.kt)("span",{parentName:"span",className:"msupsub"},(0,n.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,n.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0269em",marginRight:"0.05em"}},(0,n.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,n.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,n.kt)("span",{parentName:"span",className:"mord mtight"},"2")))),(0,n.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,n.kt)("span",{parentName:"span"})))))),(0,n.kt)("span",{parentName:"span",className:"mpunct"},","),(0,n.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,n.kt)("span",{parentName:"span",className:"mord"},"..."),(0,n.kt)("span",{parentName:"span",className:"mpunct"},","),(0,n.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,n.kt)("span",{parentName:"span",className:"mord"},(0,n.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02691em"}},"w"),(0,n.kt)("span",{parentName:"span",className:"msupsub"},(0,n.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.1514em"}},(0,n.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0269em",marginRight:"0.05em"}},(0,n.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,n.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,n.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"n")))),(0,n.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,n.kt)("span",{parentName:"span"})))))),(0,n.kt)("span",{parentName:"span",className:"mclose"},")"))))),"\uff0c\u8868\u793a\u6bcf\u4e2a\u7279\u5f81\u5bf9\u5e94\u7684\u6743\u91cd\u3002")),(0,n.kt)("li",{parentName:"ol"},(0,n.kt)("p",{parentName:"li"},"\u504f\u7f6e\u9879\uff1a\u504f\u7f6e\u9879",(0,n.kt)("span",{parentName:"p",className:"math math-inline"},(0,n.kt)("span",{parentName:"span",className:"katex"},(0,n.kt)("span",{parentName:"span",className:"katex-mathml"},(0,n.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,n.kt)("semantics",{parentName:"math"},(0,n.kt)("mrow",{parentName:"semantics"},(0,n.kt)("mi",{parentName:"mrow"},"b")),(0,n.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"b")))),(0,n.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,n.kt)("span",{parentName:"span",className:"base"},(0,n.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6944em"}}),(0,n.kt)("span",{parentName:"span",className:"mord mathnormal"},"b"))))),"\u662f\u4e00\u4e2a\u5e38\u6570\uff0c\u53ef\u770b\u4f5c\u662f\u6a21\u578b\u7684\u622a\u8ddd\uff0c\u7528\u4e8e\u8c03\u6574\u9608\u503c\u51fd\u6570\u7684\u4f4d\u7f6e\u3002")),(0,n.kt)("li",{parentName:"ol"},(0,n.kt)("p",{parentName:"li"},"\u5185\u79ef\u8fd0\u7b97\uff1a\u611f\u77e5\u673a\u5c06\u8f93\u5165\u5411\u91cf\u548c\u6743\u503c\u5411\u91cf\u8fdb\u884c\u5185\u79ef\u8fd0\u7b97\uff0c\u5e76\u52a0\u4e0a\u504f\u7f6e\u9879\uff0c\u5f97\u5230\u8f93\u5165\u4fe1\u53f7",(0,n.kt)("span",{parentName:"p",className:"math math-inline"},(0,n.kt)("span",{parentName:"span",className:"katex"},(0,n.kt)("span",{parentName:"span",className:"katex-mathml"},(0,n.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,n.kt)("semantics",{parentName:"math"},(0,n.kt)("mrow",{parentName:"semantics"},(0,n.kt)("mi",{parentName:"mrow"},"z"),(0,n.kt)("mo",{parentName:"mrow"},"="),(0,n.kt)("mi",{parentName:"mrow"},"w"),(0,n.kt)("mo",{parentName:"mrow"},"\u2217"),(0,n.kt)("mi",{parentName:"mrow"},"x"),(0,n.kt)("mo",{parentName:"mrow"},"+"),(0,n.kt)("mi",{parentName:"mrow"},"b")),(0,n.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"z=w*x+b")))),(0,n.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,n.kt)("span",{parentName:"span",className:"base"},(0,n.kt)("span",{parentName:"span",className:"strut",style:{height:"0.4306em"}}),(0,n.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.04398em"}},"z"),(0,n.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,n.kt)("span",{parentName:"span",className:"mrel"},"="),(0,n.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,n.kt)("span",{parentName:"span",className:"base"},(0,n.kt)("span",{parentName:"span",className:"strut",style:{height:"0.4653em"}}),(0,n.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02691em"}},"w"),(0,n.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,n.kt)("span",{parentName:"span",className:"mbin"},"\u2217"),(0,n.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}})),(0,n.kt)("span",{parentName:"span",className:"base"},(0,n.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6667em",verticalAlign:"-0.0833em"}}),(0,n.kt)("span",{parentName:"span",className:"mord mathnormal"},"x"),(0,n.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,n.kt)("span",{parentName:"span",className:"mbin"},"+"),(0,n.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}})),(0,n.kt)("span",{parentName:"span",className:"base"},(0,n.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6944em"}}),(0,n.kt)("span",{parentName:"span",className:"mord mathnormal"},"b"))))),"\u3002")),(0,n.kt)("li",{parentName:"ol"},(0,n.kt)("p",{parentName:"li"},"\u9608\u503c\u51fd\u6570\uff1a\u5c06\u8f93\u5165\u4fe1\u53f7",(0,n.kt)("span",{parentName:"p",className:"math math-inline"},(0,n.kt)("span",{parentName:"span",className:"katex"},(0,n.kt)("span",{parentName:"span",className:"katex-mathml"},(0,n.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,n.kt)("semantics",{parentName:"math"},(0,n.kt)("mrow",{parentName:"semantics"},(0,n.kt)("mi",{parentName:"mrow"},"z")),(0,n.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"z")))),(0,n.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,n.kt)("span",{parentName:"span",className:"base"},(0,n.kt)("span",{parentName:"span",className:"strut",style:{height:"0.4306em"}}),(0,n.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.04398em"}},"z"))))),"\u5e26\u5165\u9608\u503c\u51fd\u6570\uff0c\u5982\u7b26\u53f7\u51fd\u6570",(0,n.kt)("span",{parentName:"p",className:"math math-inline"},(0,n.kt)("span",{parentName:"span",className:"katex"},(0,n.kt)("span",{parentName:"span",className:"katex-mathml"},(0,n.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,n.kt)("semantics",{parentName:"math"},(0,n.kt)("mrow",{parentName:"semantics"},(0,n.kt)("mi",{parentName:"mrow"},"s"),(0,n.kt)("mi",{parentName:"mrow"},"i"),(0,n.kt)("mi",{parentName:"mrow"},"g"),(0,n.kt)("mi",{parentName:"mrow"},"n"),(0,n.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,n.kt)("mi",{parentName:"mrow"},"z"),(0,n.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,n.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"sign(z)")))),(0,n.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,n.kt)("span",{parentName:"span",className:"base"},(0,n.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,n.kt)("span",{parentName:"span",className:"mord mathnormal"},"s"),(0,n.kt)("span",{parentName:"span",className:"mord mathnormal"},"i"),(0,n.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"g"),(0,n.kt)("span",{parentName:"span",className:"mord mathnormal"},"n"),(0,n.kt)("span",{parentName:"span",className:"mopen"},"("),(0,n.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.04398em"}},"z"),(0,n.kt)("span",{parentName:"span",className:"mclose"},")"))))),"\uff0c\u5373\u53ef\u5f97\u5230\u5206\u7c7b\u7ed3\u679c\u3002")),(0,n.kt)("li",{parentName:"ol"},(0,n.kt)("p",{parentName:"li"},"\u635f\u5931\u51fd\u6570\uff1a\u611f\u77e5\u673a\u4f7f\u7528\u8bef\u5206\u7c7b\u70b9\u5230\u8d85\u5e73\u9762\u7684\u8ddd\u79bb\u6765\u4f5c\u4e3a\u635f\u5931\u51fd\u6570\uff0c\u5373"),(0,n.kt)("div",{parentName:"li",className:"math math-display"},(0,n.kt)("span",{parentName:"div",className:"katex-display"},(0,n.kt)("span",{parentName:"span",className:"katex"},(0,n.kt)("span",{parentName:"span",className:"katex-mathml"},(0,n.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,n.kt)("semantics",{parentName:"math"},(0,n.kt)("mtable",{parentName:"semantics",width:"100%"},(0,n.kt)("mtr",{parentName:"mtable"},(0,n.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,n.kt)("mtd",{parentName:"mtr"},(0,n.kt)("mrow",{parentName:"mtd"},(0,n.kt)("mi",{parentName:"mrow"},"L"),(0,n.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,n.kt)("mi",{parentName:"mrow"},"y"),(0,n.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,n.kt)("mi",{parentName:"mrow"},"z"),(0,n.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,n.kt)("mo",{parentName:"mrow"},"="),(0,n.kt)("mi",{parentName:"mrow"},"m"),(0,n.kt)("mi",{parentName:"mrow"},"a"),(0,n.kt)("mi",{parentName:"mrow"},"x"),(0,n.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,n.kt)("mn",{parentName:"mrow"},"0"),(0,n.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,n.kt)("mo",{parentName:"mrow"},"\u2212"),(0,n.kt)("mi",{parentName:"mrow"},"y"),(0,n.kt)("mo",{parentName:"mrow"},"\u2217"),(0,n.kt)("mi",{parentName:"mrow"},"z"),(0,n.kt)("mo",{parentName:"mrow",stretchy:"false"},")"))),(0,n.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,n.kt)("mtd",{parentName:"mtr"},(0,n.kt)("mtext",{parentName:"mtd"},"(1)")))),(0,n.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"L(y,z)=max(0,-y*z) \\tag{1}")))),(0,n.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,n.kt)("span",{parentName:"span",className:"base"},(0,n.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,n.kt)("span",{parentName:"span",className:"mord mathnormal"},"L"),(0,n.kt)("span",{parentName:"span",className:"mopen"},"("),(0,n.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"y"),(0,n.kt)("span",{parentName:"span",className:"mpunct"},","),(0,n.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,n.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.04398em"}},"z"),(0,n.kt)("span",{parentName:"span",className:"mclose"},")"),(0,n.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,n.kt)("span",{parentName:"span",className:"mrel"},"="),(0,n.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,n.kt)("span",{parentName:"span",className:"base"},(0,n.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,n.kt)("span",{parentName:"span",className:"mord mathnormal"},"ma"),(0,n.kt)("span",{parentName:"span",className:"mord mathnormal"},"x"),(0,n.kt)("span",{parentName:"span",className:"mopen"},"("),(0,n.kt)("span",{parentName:"span",className:"mord"},"0"),(0,n.kt)("span",{parentName:"span",className:"mpunct"},","),(0,n.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,n.kt)("span",{parentName:"span",className:"mord"},"\u2212"),(0,n.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"y"),(0,n.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,n.kt)("span",{parentName:"span",className:"mbin"},"\u2217"),(0,n.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}})),(0,n.kt)("span",{parentName:"span",className:"base"},(0,n.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,n.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.04398em"}},"z"),(0,n.kt)("span",{parentName:"span",className:"mclose"},")")),(0,n.kt)("span",{parentName:"span",className:"tag"},(0,n.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,n.kt)("span",{parentName:"span",className:"mord text"},(0,n.kt)("span",{parentName:"span",className:"mord"},"("),(0,n.kt)("span",{parentName:"span",className:"mord"},(0,n.kt)("span",{parentName:"span",className:"mord"},"1")),(0,n.kt)("span",{parentName:"span",className:"mord"},")"))))))),(0,n.kt)("p",{parentName:"li"},"\u5176\u4e2d",(0,n.kt)("span",{parentName:"p",className:"math math-inline"},(0,n.kt)("span",{parentName:"span",className:"katex"},(0,n.kt)("span",{parentName:"span",className:"katex-mathml"},(0,n.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,n.kt)("semantics",{parentName:"math"},(0,n.kt)("mrow",{parentName:"semantics"},(0,n.kt)("mi",{parentName:"mrow"},"y")),(0,n.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"y")))),(0,n.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,n.kt)("span",{parentName:"span",className:"base"},(0,n.kt)("span",{parentName:"span",className:"strut",style:{height:"0.625em",verticalAlign:"-0.1944em"}}),(0,n.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"y"))))),"\u662f\u6837\u672c\u7684\u771f\u5b9e\u6807\u7b7e\uff0c",(0,n.kt)("span",{parentName:"p",className:"math math-inline"},(0,n.kt)("span",{parentName:"span",className:"katex"},(0,n.kt)("span",{parentName:"span",className:"katex-mathml"},(0,n.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,n.kt)("semantics",{parentName:"math"},(0,n.kt)("mrow",{parentName:"semantics"},(0,n.kt)("mi",{parentName:"mrow"},"z")),(0,n.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"z")))),(0,n.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,n.kt)("span",{parentName:"span",className:"base"},(0,n.kt)("span",{parentName:"span",className:"strut",style:{height:"0.4306em"}}),(0,n.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.04398em"}},"z"))))),"\u662f\u9884\u6d4b\u503c\u3002")),(0,n.kt)("li",{parentName:"ol"},(0,n.kt)("p",{parentName:"li"},"\u53c2\u6570\u66f4\u65b0\uff1a\u6839\u636e\u5f53\u524d\u6837\u672c\u8bef\u5206\u7c7b\u60c5\u51b5\u6765\u5bf9\u6743\u503c\u5411\u91cf",(0,n.kt)("span",{parentName:"p",className:"math math-inline"},(0,n.kt)("span",{parentName:"span",className:"katex"},(0,n.kt)("span",{parentName:"span",className:"katex-mathml"},(0,n.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,n.kt)("semantics",{parentName:"math"},(0,n.kt)("mrow",{parentName:"semantics"},(0,n.kt)("mi",{parentName:"mrow"},"w")),(0,n.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"w")))),(0,n.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,n.kt)("span",{parentName:"span",className:"base"},(0,n.kt)("span",{parentName:"span",className:"strut",style:{height:"0.4306em"}}),(0,n.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02691em"}},"w"))))),"\u548c\u504f\u7f6e\u9879",(0,n.kt)("span",{parentName:"p",className:"math math-inline"},(0,n.kt)("span",{parentName:"span",className:"katex"},(0,n.kt)("span",{parentName:"span",className:"katex-mathml"},(0,n.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,n.kt)("semantics",{parentName:"math"},(0,n.kt)("mrow",{parentName:"semantics"},(0,n.kt)("mi",{parentName:"mrow"},"b")),(0,n.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"b")))),(0,n.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,n.kt)("span",{parentName:"span",className:"base"},(0,n.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6944em"}}),(0,n.kt)("span",{parentName:"span",className:"mord mathnormal"},"b"))))),"\u8fdb\u884c\u8fed\u4ee3\u66f4\u65b0\u3002")),(0,n.kt)("li",{parentName:"ol"},(0,n.kt)("p",{parentName:"li"},"\u6536\u655b\u6761\u4ef6\uff1a\u5f53\u5168\u90e8\u8bad\u7ec3\u6837\u672c\u88ab\u6b63\u786e\u5206\u7c7b\u6216\u8fbe\u5230\u6700\u5927\u8fed\u4ee3\u6b21\u6570\u65f6\uff0c\u611f\u77e5\u673a\u7b97\u6cd5\u505c\u6b62\u8fed\u4ee3\u3002"))),(0,n.kt)("p",null,"\u611f\u77e5\u673a\u8bad\u7ec3\u6d41\u7a0b\u4f2a\u4ee3\u7801\u5982\u4e0b\u6240\u793a\uff1a"),(0,n.kt)("pre",null,(0,n.kt)("code",{parentName:"pre",className:"language-pseudocode"},"initialize w = 0 and b = 0\nrepeat\n if yi * zi <= 0 then\n w = w + yi * xi and b = b + yi\n end if\nuntil all classified correctly\n")),(0,n.kt)("hr",null),(0,n.kt)("h2",{id:"\u4e09\u603b\u7ed3"},"\u4e09\u3001\u603b\u7ed3"),(0,n.kt)("ul",null,(0,n.kt)("li",{parentName:"ul"},"\u611f\u77e5\u673a\u662f\u4e00\u4e2a\u4e8c\u5206\u7c7b\u6a21\u578b\uff0c\u6700\u65e9\u7684AI\u6a21\u578b\u4e4b\u4e00"),(0,n.kt)("li",{parentName:"ul"},"\u6c42\u89e3\u7b97\u6cd5\u7b49\u4ef7\u4e8e\u4f7f\u7528\u6279\u91cf\u5927\u5c0f\u4e3a1\u7684\u68af\u5ea6\u4e0b\u964d"),(0,n.kt)("li",{parentName:"ul"},"\u8981\u6c42\u6570\u636e\u96c6\u7ebf\u6027\u53ef\u5206\uff0c\u4e0d\u80fd\u62df\u5408XOR\u5f02\u6216\u7b49\u975e\u7ebf\u6027\u95ee\u9898\uff0c\u5bfc\u81f4\u7b2c\u4e00\u6b21AI\u5bd2\u51ac")))}c.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/a91af95f.774edfb2.js b/assets/js/a91af95f.774edfb2.js new file mode 100644 index 000000000..cda4355c4 --- /dev/null +++ b/assets/js/a91af95f.774edfb2.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunknpy_notebook=self.webpackChunknpy_notebook||[]).push([[1007],{3905:(a,e,t)=>{t.d(e,{Zo:()=>i,kt:()=>h});var s=t(7294);function m(a,e,t){return e in a?Object.defineProperty(a,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):a[e]=t,a}function n(a,e){var t=Object.keys(a);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(a);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable}))),t.push.apply(t,s)}return t}function p(a){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?n(Object(t),!0).forEach((function(e){m(a,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(t)):n(Object(t)).forEach((function(e){Object.defineProperty(a,e,Object.getOwnPropertyDescriptor(t,e))}))}return a}function r(a,e){if(null==a)return{};var t,s,m=function(a,e){if(null==a)return{};var t,s,m={},n=Object.keys(a);for(s=0;s<n.length;s++)t=n[s],e.indexOf(t)>=0||(m[t]=a[t]);return m}(a,e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);for(s=0;s<n.length;s++)t=n[s],e.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(a,t)&&(m[t]=a[t])}return m}var N=s.createContext({}),l=function(a){var e=s.useContext(N),t=e;return a&&(t="function"==typeof a?a(e):p(p({},e),a)),t},i=function(a){var e=l(a.components);return s.createElement(N.Provider,{value:e},a.children)},k="mdxType",c={inlineCode:"code",wrapper:function(a){var e=a.children;return s.createElement(s.Fragment,{},e)}},o=s.forwardRef((function(a,e){var t=a.components,m=a.mdxType,n=a.originalType,N=a.parentName,i=r(a,["components","mdxType","originalType","parentName"]),k=l(t),o=m,h=k["".concat(N,".").concat(o)]||k[o]||c[o]||n;return t?s.createElement(h,p(p({ref:e},i),{},{components:t})):s.createElement(h,p({ref:e},i))}));function h(a,e){var t=arguments,m=e&&e.mdxType;if("string"==typeof a||m){var n=t.length,p=new Array(n);p[0]=o;var r={};for(var N in e)hasOwnProperty.call(e,N)&&(r[N]=e[N]);r.originalType=a,r[k]="string"==typeof a?a:m,p[1]=r;for(var l=2;l<n;l++)p[l]=t[l];return s.createElement.apply(null,p)}return s.createElement.apply(null,t)}o.displayName="MDXCreateElement"},6831:(a,e,t)=>{t.r(e),t.d(e,{assets:()=>N,contentTitle:()=>p,default:()=>c,frontMatter:()=>n,metadata:()=>r,toc:()=>l});var s=t(7462),m=(t(7294),t(3905));const n={},p="\u6570\u5b57\u56fe\u50cf\u5904\u7406\u590d\u4e60\u7b14\u8bb0",r={unversionedId:"Curriculum/\u6570\u5b57\u56fe\u50cf\u5904\u7406/Note",id:"Curriculum/\u6570\u5b57\u56fe\u50cf\u5904\u7406/Note",title:"\u6570\u5b57\u56fe\u50cf\u5904\u7406\u590d\u4e60\u7b14\u8bb0",description:"\u672c\u7b14\u8bb0\u4f7f\u7528\u7684\u6559\u6750\u662f\u9648\u5929\u534e\u6240\u8457\u3001\u6e05\u534e\u5927\u5b66\u51fa\u7248\u793e\u7684\u300a\u6570\u5b57\u56fe\u50cf\u5904\u7406\u53ca\u5e94\u7528\uff1a\u4f7f\u7528MATLAB\u5206\u6790\u4e0e\u5b9e\u73b0\u300b\u3002",source:"@site/docs/Curriculum/2-\u6570\u5b57\u56fe\u50cf\u5904\u7406/Note.md",sourceDirName:"Curriculum/2-\u6570\u5b57\u56fe\u50cf\u5904\u7406",slug:"/Curriculum/\u6570\u5b57\u56fe\u50cf\u5904\u7406/Note",permalink:"/docs/Curriculum/\u6570\u5b57\u56fe\u50cf\u5904\u7406/Note",draft:!1,tags:[],version:"current",frontMatter:{},sidebar:"curriculum",previous:{title:"Welcome",permalink:"/docs/Curriculum/intro"},next:{title:"\u7f16\u8bd1\u539f\u7406\u7b14\u8bb0",permalink:"/docs/Curriculum/\u7f16\u8bd1\u539f\u7406/Note"}},N={},l=[{value:"\u7b2c2\u7ae0 \u6570\u5b57\u56fe\u50cf\u5904\u7406\u57fa\u7840",id:"\u7b2c2\u7ae0-\u6570\u5b57\u56fe\u50cf\u5904\u7406\u57fa\u7840",level:2},{value:"\u56fe\u50cf\u7684\u91c7\u6837\u4e0e\u91cf\u5316",id:"\u56fe\u50cf\u7684\u91c7\u6837\u4e0e\u91cf\u5316",level:3},{value:"\u8ddd\u79bb\u5ea6\u91cf",id:"\u8ddd\u79bb\u5ea6\u91cf",level:3},{value:"\u56fe\u50cf\u8d28\u91cf\u8bc4\u4ef7",id:"\u56fe\u50cf\u8d28\u91cf\u8bc4\u4ef7",level:3},{value:"\u7070\u5ea6\u76f4\u65b9\u56fe",id:"\u7070\u5ea6\u76f4\u65b9\u56fe",level:3},{value:"\u7b2c3\u7ae0 \u56fe\u50cf\u53d8\u6362",id:"\u7b2c3\u7ae0-\u56fe\u50cf\u53d8\u6362",level:2},{value:"\u5085\u91cc\u53f6\u53d8\u6362",id:"\u5085\u91cc\u53f6\u53d8\u6362",level:3},{value:"\u8fde\u7eed\u5085\u91cc\u53f6\u53d8\u6362",id:"\u8fde\u7eed\u5085\u91cc\u53f6\u53d8\u6362",level:4},{value:"\u79bb\u6563\u5085\u91cc\u53f6\u53d8\u6362",id:"\u79bb\u6563\u5085\u91cc\u53f6\u53d8\u6362",level:4},{value:"\u7b2c4\u7ae0 \u56fe\u50cf\u5904\u7406\u7684\u57fa\u672c\u8fd0\u7b97",id:"\u7b2c4\u7ae0-\u56fe\u50cf\u5904\u7406\u7684\u57fa\u672c\u8fd0\u7b97",level:2},{value:"\u70b9\u8fd0\u7b97",id:"\u70b9\u8fd0\u7b97",level:3},{value:"\u6bd4\u4f8b\u7f29\u653e",id:"\u6bd4\u4f8b\u7f29\u653e",level:3},{value:"\u7070\u5ea6\u7ea7\u63d2\u503c",id:"\u7070\u5ea6\u7ea7\u63d2\u503c",level:3},{value:"\u6700\u8fd1\u90bb\u6cd5\u63d2\u503c",id:"\u6700\u8fd1\u90bb\u6cd5\u63d2\u503c",level:4},{value:"\u53cc\u7ebf\u6027\u63d2\u503c\uff08Bilinear\uff09",id:"\u53cc\u7ebf\u6027\u63d2\u503cbilinear",level:4},{value:"\u7b2c5\u7ae0 \u56fe\u50cf\u7a7a\u57df\u589e\u5f3a",id:"\u7b2c5\u7ae0-\u56fe\u50cf\u7a7a\u57df\u589e\u5f3a",level:2},{value:"\u76f4\u63a5\u7070\u5ea6\u53d8\u6362",id:"\u76f4\u63a5\u7070\u5ea6\u53d8\u6362",level:3},{value:"\u7ebf\u6027\u53d8\u6362",id:"\u7ebf\u6027\u53d8\u6362",level:4},{value:"\u975e\u7ebf\u6027\u53d8\u6362",id:"\u975e\u7ebf\u6027\u53d8\u6362",level:4},{value:"\u76f4\u65b9\u56fe\u7070\u5ea6\u53d8\u6362",id:"\u76f4\u65b9\u56fe\u7070\u5ea6\u53d8\u6362",level:3},{value:"\u76f4\u65b9\u56fe\u5747\u8861\u5316",id:"\u76f4\u65b9\u56fe\u5747\u8861\u5316",level:4},{value:"\u76f4\u65b9\u56fe\u89c4\u5b9a\u5316",id:"\u76f4\u65b9\u56fe\u89c4\u5b9a\u5316",level:4},{value:"\u7a7a\u57df\u6ee4\u6ce2\u589e\u5f3a",id:"\u7a7a\u57df\u6ee4\u6ce2\u589e\u5f3a",level:3},{value:"\u5e73\u6ed1\u6ee4\u6ce2",id:"\u5e73\u6ed1\u6ee4\u6ce2",level:4},{value:"\u7ebf\u6027\u5e73\u6ed1\u6ee4\u6ce2",id:"\u7ebf\u6027\u5e73\u6ed1\u6ee4\u6ce2",level:5},{value:"\u975e\u7ebf\u6027\u5e73\u6ed1\u6ee4\u6ce2",id:"\u975e\u7ebf\u6027\u5e73\u6ed1\u6ee4\u6ce2",level:5},{value:"\u9510\u5316\u6ee4\u6ce2",id:"\u9510\u5316\u6ee4\u6ce2",level:4},{value:"\u7b2c6\u7ae0 \u56fe\u50cf\u9891\u57df\u589e\u5f3a",id:"\u7b2c6\u7ae0-\u56fe\u50cf\u9891\u57df\u589e\u5f3a",level:2},{value:"\u4f4e\u901a\u6ee4\u6ce2",id:"\u4f4e\u901a\u6ee4\u6ce2",level:3},{value:"\u7406\u60f3\u4f4e\u901a\u6ee4\u6ce2\u5668\uff08ILPF\uff09",id:"\u7406\u60f3\u4f4e\u901a\u6ee4\u6ce2\u5668ilpf",level:4},{value:"\u5df4\u7279\u6c83\u65af\u4f4e\u901a\u6ee4\u6ce2\u5668\uff08BLPF\uff09",id:"\u5df4\u7279\u6c83\u65af\u4f4e\u901a\u6ee4\u6ce2\u5668blpf",level:4},{value:"\u6307\u6570\u4f4e\u901a\u6ee4\u6ce2\u5668\uff08ELPF\uff09",id:"\u6307\u6570\u4f4e\u901a\u6ee4\u6ce2\u5668elpf",level:4},{value:"\u68af\u5f62\u4f4e\u901a\u6ee4\u6ce2\u5668\uff08TLPF\uff09",id:"\u68af\u5f62\u4f4e\u901a\u6ee4\u6ce2\u5668tlpf",level:4},{value:"\u9ad8\u901a\u6ee4\u6ce2",id:"\u9ad8\u901a\u6ee4\u6ce2",level:3},{value:"\u7406\u60f3\u9ad8\u901a\u6ee4\u6ce2\u5668\uff08IHPF\uff09",id:"\u7406\u60f3\u9ad8\u901a\u6ee4\u6ce2\u5668ihpf",level:4},{value:"\u5df4\u7279\u6c83\u65af\u9ad8\u901a\u6ee4\u6ce2\u5668\uff08BHPF\uff09",id:"\u5df4\u7279\u6c83\u65af\u9ad8\u901a\u6ee4\u6ce2\u5668bhpf",level:4},{value:"\u6307\u6570\u9ad8\u901a\u6ee4\u6ce2\u5668\uff08EHPF\uff09",id:"\u6307\u6570\u9ad8\u901a\u6ee4\u6ce2\u5668ehpf",level:4},{value:"\u68af\u5f62\u9ad8\u901a\u6ee4\u6ce2\u5668\uff08THPF\uff09",id:"\u68af\u5f62\u9ad8\u901a\u6ee4\u6ce2\u5668thpf",level:4},{value:"\u5e26\u901a\u548c\u5e26\u963b\u6ee4\u6ce2",id:"\u5e26\u901a\u548c\u5e26\u963b\u6ee4\u6ce2",level:3},{value:"\u5e26\u901a\u6ee4\u6ce2",id:"\u5e26\u901a\u6ee4\u6ce2",level:4},{value:"\u5e26\u963b\u6ee4\u6ce2",id:"\u5e26\u963b\u6ee4\u6ce2",level:4},{value:"\u7b2c7\u7ae0 \u5f69\u8272\u56fe\u50cf\u5904\u7406",id:"\u7b2c7\u7ae0-\u5f69\u8272\u56fe\u50cf\u5904\u7406",level:2},{value:"\u4f2a\u5f69\u8272\u56fe\u50cf\u7684\u5904\u7406",id:"\u4f2a\u5f69\u8272\u56fe\u50cf\u7684\u5904\u7406",level:3},{value:"\u5168\u5f69\u8272\u56fe\u50cf\u7684\u5904\u7406",id:"\u5168\u5f69\u8272\u56fe\u50cf\u7684\u5904\u7406",level:3},{value:"\u7b2c8\u7ae0 \u56fe\u50cf\u590d\u539f",id:"\u7b2c8\u7ae0-\u56fe\u50cf\u590d\u539f",level:2},{value:"\u56fe\u50cf\u9000\u5316\u673a\u7406",id:"\u56fe\u50cf\u9000\u5316\u673a\u7406",level:3},{value:"\u9000\u5316\u539f\u56e0",id:"\u9000\u5316\u539f\u56e0",level:4},{value:"\u590d\u539f\u673a\u7406",id:"\u590d\u539f\u673a\u7406",level:4},{value:"\u56fe\u50cf\u590d\u539f\u4e0e\u56fe\u50cf\u589e\u5f3a\u7684\u533a\u522b\u548c\u8054\u7cfb",id:"\u56fe\u50cf\u590d\u539f\u4e0e\u56fe\u50cf\u589e\u5f3a\u7684\u533a\u522b\u548c\u8054\u7cfb",level:4},{value:"\u56fe\u50cf\u9000\u5316\u6a21\u578b",id:"\u56fe\u50cf\u9000\u5316\u6a21\u578b",level:3},{value:"\u7b2c11\u7ae0 \u56fe\u50cf\u5206\u5272",id:"\u7b2c11\u7ae0-\u56fe\u50cf\u5206\u5272",level:2},{value:"\u9608\u503c\u5206\u5272\u6cd5",id:"\u9608\u503c\u5206\u5272\u6cd5",level:3},{value:"\u6700\u4f73\u9608\u503c\u6cd5",id:"\u6700\u4f73\u9608\u503c\u6cd5",level:4},{value:"\u5224\u522b\u5206\u6790\u6cd5",id:"\u5224\u522b\u5206\u6790\u6cd5",level:4},{value:"\u8fb9\u7f18\u68c0\u6d4b\u7684\u57fa\u672c\u539f\u7406",id:"\u8fb9\u7f18\u68c0\u6d4b\u7684\u57fa\u672c\u539f\u7406",level:3},{value:"\u8fb9\u7f18\u68c0\u6d4b\u7b97\u5b50",id:"\u8fb9\u7f18\u68c0\u6d4b\u7b97\u5b50",level:3},{value:"Robert\u7b97\u5b50",id:"robert\u7b97\u5b50",level:4},{value:"Sobel\u7b97\u5b50",id:"sobel\u7b97\u5b50",level:4},{value:"Prewitt\u7b97\u5b50",id:"prewitt\u7b97\u5b50",level:4},{value:"Laplace\u7b97\u5b50",id:"laplace\u7b97\u5b50",level:4},{value:"Canny\u8fb9\u7f18\u68c0\u6d4b",id:"canny\u8fb9\u7f18\u68c0\u6d4b",level:4},{value:"\u8bfe\u540e\u4e60\u9898\u4e2d\u7684\u95ee\u7b54\u9898",id:"\u8bfe\u540e\u4e60\u9898\u4e2d\u7684\u95ee\u7b54\u9898",level:2}],i={toc:l},k="wrapper";function c(a){let{components:e,...t}=a;return(0,m.kt)(k,(0,s.Z)({},i,t,{components:e,mdxType:"MDXLayout"}),(0,m.kt)("h1",{id:"\u6570\u5b57\u56fe\u50cf\u5904\u7406\u590d\u4e60\u7b14\u8bb0"},"\u6570\u5b57\u56fe\u50cf\u5904\u7406\u590d\u4e60\u7b14\u8bb0"),(0,m.kt)("admonition",{type:"tip"},(0,m.kt)("p",{parentName:"admonition"},"\u672c\u7b14\u8bb0\u4f7f\u7528\u7684\u6559\u6750\u662f\u9648\u5929\u534e\u6240\u8457\u3001\u6e05\u534e\u5927\u5b66\u51fa\u7248\u793e\u7684\u300a\u6570\u5b57\u56fe\u50cf\u5904\u7406\u53ca\u5e94\u7528\uff1a\u4f7f\u7528MATLAB\u5206\u6790\u4e0e\u5b9e\u73b0\u300b\u3002"),(0,m.kt)("blockquote",{parentName:"admonition"},(0,m.kt)("p",{parentName:"blockquote"},"Take me to church, I'll worship like a dog at the shrine of your lies."),(0,m.kt)("p",{parentName:"blockquote"},"I'll tell you my sins, and you can sharpen your knife."),(0,m.kt)("p",{parentName:"blockquote"},"Offer me that deathless death, good god, let me give you my life."))),(0,m.kt)("h2",{id:"\u7b2c2\u7ae0-\u6570\u5b57\u56fe\u50cf\u5904\u7406\u57fa\u7840"},"\u7b2c2\u7ae0 \u6570\u5b57\u56fe\u50cf\u5904\u7406\u57fa\u7840"),(0,m.kt)("h3",{id:"\u56fe\u50cf\u7684\u91c7\u6837\u4e0e\u91cf\u5316"},"\u56fe\u50cf\u7684\u91c7\u6837\u4e0e\u91cf\u5316"),(0,m.kt)("p",null,"\u4e3a\u4e86\u4ece\u6a21\u62df\u56fe\u50cf\u4ea7\u751f\u6570\u5b57\u56fe\u50cf\uff0c\u9700\u8981\u8fdb\u884c\u91c7\u6837\u4e0e\u91cf\u5316\uff0c\u5373\u5bf9\u6a21\u62df\u56fe\u50cf\u5728\u7a7a\u95f4",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"x"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"y"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"(x, y)")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"x"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"y"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"))))),"\u65b9\u5411\u4e0a\u4ee5\u53ca\u4eae\u5ea6\u51fd\u6570",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"f"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"x"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"y"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"f(x, y)")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.10764em"}},"f"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"x"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"y"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"))))),"\u8fdb\u884c\u79bb\u6563\u5316\u5904\u7406\u3002"),(0,m.kt)("ul",null,(0,m.kt)("li",{parentName:"ul"},(0,m.kt)("p",{parentName:"li"},"\u91c7\u6837\uff1a"),(0,m.kt)("p",{parentName:"li"},"\u6a21\u62df\u56fe\u50cf\u5728\u7a7a\u95f4",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"x"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"y"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"(x, y)")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"x"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"y"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"))))),"\u4e0a\u7684\u79bb\u6563\u5316\u79f0\u4e3a\u91c7\u6837\u3002"),(0,m.kt)("p",{parentName:"li"},"\u82e5\u5728x\u548cy\u65b9\u5411\u4e0a\u5747\u8fdb\u884c\u7b49\u95f4\u8ddd\u7684\u91c7\u6837\uff0c\u5219\u79f0\u4e3a\u5747\u5300\u91c7\u6837\u3002"),(0,m.kt)("p",{parentName:"li"},"\u91c7\u6837\u70b9\u7684\u591a\u5c11\u4ee5\u53ca\u91c7\u6837\u7684\u95f4\u9694\u76f4\u63a5\u5f71\u54cd\u7740\u56fe\u50cf\u7684\u8d28\u91cf\u3002")),(0,m.kt)("li",{parentName:"ul"},(0,m.kt)("p",{parentName:"li"},"\u91cf\u5316\uff1a"),(0,m.kt)("p",{parentName:"li"},"\u6a21\u62df\u56fe\u50cf\u7ecf\u8fc7\u91c7\u6837\u540e\uff0c\u5728\u65f6\u95f4\u548c\u7a7a\u95f4\u4e0a\u88ab\u79bb\u6563\u5316\u4e3a\u50cf\u7d20\uff0c\u4f46\u91c7\u6837\u6240\u5f97\u7684\u50cf\u7d20\u70b9\u7684\u50cf\u7d20\u503c\u4f9d\u7136\u662f\u8fde\u7eed\u91cf\u3002\u91cf\u5316\u8fc7\u7a0b\u5c31\u662f\u4ee5\u79bb\u6563\u7684\u7070\u5ea6\u503c\u4fe1\u606f\u4ee3\u66ff\u8fde\u7eed\u7684\u6a21\u62df\u91cf\u7070\u5ea6\u4fe1\u606f\u7684\u8fc7\u7a0b\uff0c\u662f\u4e00\u5bf9\u591a\u7684\u8fc7\u7a0b\u3002"),(0,m.kt)("p",{parentName:"li"},"\u91cf\u5316\u53ef\u4ee5\u5206\u4e3a\u7ebf\u6027\u91cf\u5316\u4ee5\u53ca\u975e\u7ebf\u6027\u91cf\u5316\u3002"))),(0,m.kt)("p",null,"\u7070\u5ea6\u7ea7\u4e00\u822c\u4ee52\u7684\u6574\u6570\u6b21\u5e42\u8868\u793a\uff0c\u5982\u5927\u591a\u56fe\u50cf\u4e3a\u5f69\u8272RGB\u56fe\u50cf\uff0c256\u4e2a\u7070\u5ea6\u7ea7\uff0c\u4f4d\u6df1\u5ea6\u4e3a8\uff08",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("msup",{parentName:"mrow"},(0,m.kt)("mn",{parentName:"msup"},"2"),(0,m.kt)("mn",{parentName:"msup"},"8")),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("mn",{parentName:"mrow"},"256")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"2^8=256")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.8141em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"2"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.8141em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-3.063em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"8")))))))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"="),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6444em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"256"))))),"\uff09\uff0c\u5219\u5bf9\u4e8e\u5206\u8fa8\u7387\u4e3a256\xd7256\u7684\u56fe\u50cf\u6765\u8bf4\uff0c\u9700\u8981256\xd7256\xd73\xd78\u4f4d\u8868\u793a\uff0c\u5373\u6bcf\u4e00\u4e2a\u50cf\u7d20\u5b9e\u9645\u4e0a\u4f7f\u752824\u4f4d\u8868\u793a\u3002"),(0,m.kt)("h3",{id:"\u8ddd\u79bb\u5ea6\u91cf"},"\u8ddd\u79bb\u5ea6\u91cf"),(0,m.kt)("p",null,"4\u90bb\u57df",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"N"),(0,m.kt)("mn",{parentName:"msub"},"4")),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"p"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"N_4(p)")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.10903em"}},"N"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.109em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"4")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"p"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"))))),"\u5373\u8be5\u50cf\u7d20\u4e0a\u4e0b\u5de6\u53f3\u7684\u56db\u4e2a\u70b9\uff0c8\u90bb\u57df",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"N"),(0,m.kt)("mn",{parentName:"msub"},"8")),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"p"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"N_8(p)")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.10903em"}},"N"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.109em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"8")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"p"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"))))),"\uff0c\u5bf9\u89d2\u90bb\u57df",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"N"),(0,m.kt)("mi",{parentName:"msub"},"D")),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"p"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"N_D(p)")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.10903em"}},"N"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3283em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.109em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.02778em"}},"D")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"p"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"))))),"\u3002"),(0,m.kt)("p",null,(0,m.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_imagesimage-20231204174356477.png",alt:"image-20231204174356477"})),(0,m.kt)("p",null,"\u50cf\u7d20\u4e4b\u95f4\u7684\u8ddd\u79bb\u5ea6\u91cf\u5fc5\u987b\u6ee1\u8db3\u4e09\u79cd\u5173\u7cfb\uff1a"),(0,m.kt)("ol",null,(0,m.kt)("li",{parentName:"ol"},"\u975e\u8d1f\u6027"),(0,m.kt)("li",{parentName:"ol"},"\u5bf9\u79f0\u6027"),(0,m.kt)("li",{parentName:"ol"},"\u4e09\u89d2\u4e0d\u7b49\u5f0f")),(0,m.kt)("p",null,"\u4e09\u79cd\u8ddd\u79bb\u5ea6\u91cf\uff1a"),(0,m.kt)("p",null,"\u5df2\u77e5\uff0c\u70b9",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"p")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"p")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.625em",verticalAlign:"-0.1944em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"p"))))),"\u7684\u5750\u6807\u4e3a",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"x"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"y"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"(x, y)")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"x"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"y"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"))))),"\uff0c\u70b9",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"q")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"q")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.625em",verticalAlign:"-0.1944em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"q"))))),"\u7684\u5750\u6807\u4e3a",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"s"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"t"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"(s,t)")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"s"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"t"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"))))),"\u3002"),(0,m.kt)("ol",null,(0,m.kt)("li",{parentName:"ol"},"\u6b27\u6c0f\u8ddd\u79bb\uff1a",(0,m.kt)("div",{parentName:"li",className:"math math-display"},(0,m.kt)("span",{parentName:"div",className:"katex-display"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mtable",{parentName:"semantics",width:"100%"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mrow",{parentName:"mtd"},(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"D"),(0,m.kt)("mi",{parentName:"msub"},"e")),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"p"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"q"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("msqrt",{parentName:"mrow"},(0,m.kt)("mrow",{parentName:"msqrt"},(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"x"),(0,m.kt)("mo",{parentName:"mrow"},"\u2212"),(0,m.kt)("mi",{parentName:"mrow"},"s"),(0,m.kt)("msup",{parentName:"mrow"},(0,m.kt)("mo",{parentName:"msup",stretchy:"false"},")"),(0,m.kt)("mn",{parentName:"msup"},"2")),(0,m.kt)("mo",{parentName:"mrow"},"+"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"y"),(0,m.kt)("mo",{parentName:"mrow"},"\u2212"),(0,m.kt)("mi",{parentName:"mrow"},"t"),(0,m.kt)("msup",{parentName:"mrow"},(0,m.kt)("mo",{parentName:"msup",stretchy:"false"},")"),(0,m.kt)("mn",{parentName:"msup"},"2")))))),(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mtext",{parentName:"mtd"},"(1)")))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"D_e(p,q)=\\sqrt{(x-s)^2+(y-t)^2}\\tag{1}")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02778em"}},"D"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.1514em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0278em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"e")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"p"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"q"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"="),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1.24em",verticalAlign:"-0.2561em"}}),(0,m.kt)("span",{parentName:"span",className:"mord sqrt"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.9839em"}},(0,m.kt)("span",{parentName:"span",className:"svg-align",style:{top:"-3.2em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.2em"}}),(0,m.kt)("span",{parentName:"span",className:"mord",style:{paddingLeft:"1em"}},(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"x"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"\u2212"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"s"),(0,m.kt)("span",{parentName:"span",className:"mclose"},(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.7401em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.989em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"2")))))))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"+"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"y"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"\u2212"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"t"),(0,m.kt)("span",{parentName:"span",className:"mclose"},(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.7401em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.989em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"2")))))))))),(0,m.kt)("span",{parentName:"span",style:{top:"-2.9439em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.2em"}}),(0,m.kt)("span",{parentName:"span",className:"hide-tail",style:{minWidth:"1.02em",height:"1.28em"}},(0,m.kt)("svg",{parentName:"span",xmlns:"http://www.w3.org/2000/svg",width:"400em",height:"1.28em",viewBox:"0 0 400000 1296",preserveAspectRatio:"xMinYMin slice"},(0,m.kt)("path",{parentName:"svg",d:"M263,681c0.7,0,18,39.7,52,119\nc34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120\nc340,-704.7,510.7,-1060.3,512,-1067\nl0 -0\nc4.7,-7.3,11,-11,19,-11\nH40000v40H1012.3\ns-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232\nc-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1\ns-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26\nc-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z\nM1001 80h400000v40h-400000z"}))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.2561em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"tag"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1.24em",verticalAlign:"-0.2561em"}}),(0,m.kt)("span",{parentName:"span",className:"mord text"},(0,m.kt)("span",{parentName:"span",className:"mord"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"1")),(0,m.kt)("span",{parentName:"span",className:"mord"},")")))))))),(0,m.kt)("li",{parentName:"ol"},"\u57ce\u5e02\u8ddd\u79bb",(0,m.kt)("div",{parentName:"li",className:"math math-display"},(0,m.kt)("span",{parentName:"div",className:"katex-display"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mtable",{parentName:"semantics",width:"100%"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mrow",{parentName:"mtd"},(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"D"),(0,m.kt)("mn",{parentName:"msub"},"4")),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"p"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"q"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"\u2223"),(0,m.kt)("mi",{parentName:"mrow"},"x"),(0,m.kt)("mo",{parentName:"mrow"},"\u2212"),(0,m.kt)("mi",{parentName:"mrow"},"s"),(0,m.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"\u2223"),(0,m.kt)("mo",{parentName:"mrow"},"+"),(0,m.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"\u2223"),(0,m.kt)("mi",{parentName:"mrow"},"y"),(0,m.kt)("mo",{parentName:"mrow"},"\u2212"),(0,m.kt)("mi",{parentName:"mrow"},"t"),(0,m.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"\u2223"))),(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mtext",{parentName:"mtd"},"(2)")))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"D_4(p,q)=\\vert x-s\\vert+\\vert y-t\\vert \\tag{2}")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02778em"}},"D"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0278em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"4")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"p"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"q"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"="),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"\u2223"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"x"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"\u2212"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"s"),(0,m.kt)("span",{parentName:"span",className:"mord"},"\u2223"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"+"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"\u2223"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"y"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"\u2212"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"t"),(0,m.kt)("span",{parentName:"span",className:"mord"},"\u2223")),(0,m.kt)("span",{parentName:"span",className:"tag"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord text"},(0,m.kt)("span",{parentName:"span",className:"mord"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"2")),(0,m.kt)("span",{parentName:"span",className:"mord"},")")))))))),(0,m.kt)("li",{parentName:"ol"},"\u68cb\u76d8\u8ddd\u79bb",(0,m.kt)("div",{parentName:"li",className:"math math-display"},(0,m.kt)("span",{parentName:"div",className:"katex-display"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mtable",{parentName:"semantics",width:"100%"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mrow",{parentName:"mtd"},(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"D"),(0,m.kt)("mn",{parentName:"msub"},"8")),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"p"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"q"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("mi",{parentName:"mrow"},"m"),(0,m.kt)("mi",{parentName:"mrow"},"a"),(0,m.kt)("mi",{parentName:"mrow"},"x"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"\u2223"),(0,m.kt)("mi",{parentName:"mrow"},"x"),(0,m.kt)("mo",{parentName:"mrow"},"\u2212"),(0,m.kt)("mi",{parentName:"mrow"},"s"),(0,m.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"\u2223"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"\u2223"),(0,m.kt)("mi",{parentName:"mrow"},"y"),(0,m.kt)("mo",{parentName:"mrow"},"\u2212"),(0,m.kt)("mi",{parentName:"mrow"},"t"),(0,m.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"\u2223"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"))),(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mtext",{parentName:"mtd"},"(3)")))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"D_8(p,q)=max(\\vert x-s\\vert,\\vert y-t\\vert)\\tag{3}")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02778em"}},"D"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0278em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"8")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"p"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"q"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"="),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"ma"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"x"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},"\u2223"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"x"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"\u2212"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"s"),(0,m.kt)("span",{parentName:"span",className:"mord"},"\u2223"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"\u2223"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"y"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"\u2212"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"t"),(0,m.kt)("span",{parentName:"span",className:"mord"},"\u2223"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")")),(0,m.kt)("span",{parentName:"span",className:"tag"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord text"},(0,m.kt)("span",{parentName:"span",className:"mord"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"3")),(0,m.kt)("span",{parentName:"span",className:"mord"},")"))))))))),(0,m.kt)("h3",{id:"\u56fe\u50cf\u8d28\u91cf\u8bc4\u4ef7"},"\u56fe\u50cf\u8d28\u91cf\u8bc4\u4ef7"),(0,m.kt)("ul",null,(0,m.kt)("li",{parentName:"ul"},(0,m.kt)("p",{parentName:"li"},"MSE\u8d8a\u5c0f\u4ee3\u8868\u5f85\u6d4b\u56fe\u50cf\u4e0e\u53c2\u8003\u56fe\u50cf\u8d8a\u63a5\u8fd1\uff0c\u5747\u65b9\u8bef\u5dee\u516c\u5f0f\u5982\u4e0b\uff1a"),(0,m.kt)("div",{parentName:"li",className:"math math-display"},(0,m.kt)("span",{parentName:"div",className:"katex-display"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mtable",{parentName:"semantics",width:"100%"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mrow",{parentName:"mtd"},(0,m.kt)("mi",{parentName:"mrow"},"M"),(0,m.kt)("mi",{parentName:"mrow"},"S"),(0,m.kt)("mi",{parentName:"mrow"},"E"),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("mfrac",{parentName:"mrow"},(0,m.kt)("mn",{parentName:"mfrac"},"1"),(0,m.kt)("mrow",{parentName:"mfrac"},(0,m.kt)("mi",{parentName:"mrow"},"M"),(0,m.kt)("mi",{parentName:"mrow"},"N"))),(0,m.kt)("munderover",{parentName:"mrow"},(0,m.kt)("mo",{parentName:"munderover"},"\u2211"),(0,m.kt)("mrow",{parentName:"munderover"},(0,m.kt)("mi",{parentName:"mrow"},"x"),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("mn",{parentName:"mrow"},"1")),(0,m.kt)("mi",{parentName:"munderover"},"M")),(0,m.kt)("munderover",{parentName:"mrow"},(0,m.kt)("mo",{parentName:"munderover"},"\u2211"),(0,m.kt)("mrow",{parentName:"munderover"},(0,m.kt)("mi",{parentName:"mrow"},"y"),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("mn",{parentName:"mrow"},"1")),(0,m.kt)("mi",{parentName:"munderover"},"N")),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"["),(0,m.kt)("mi",{parentName:"mrow"},"f"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"x"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"y"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"\u2212"),(0,m.kt)("mi",{parentName:"mrow"},"g"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"x"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"y"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("msup",{parentName:"mrow"},(0,m.kt)("mo",{parentName:"msup",stretchy:"false"},"]"),(0,m.kt)("mn",{parentName:"msup"},"2")))),(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mtext",{parentName:"mtd"},"(4)")))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"MSE=\\frac{1}{MN}\\sum_{x=1}^{M}\\sum_{y=1}^{N}[f(x,y)-g(x,y)]^2\\tag{4}")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6833em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05764em"}},"MSE"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"="),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"3.2316em",verticalAlign:"-1.4032em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mopen nulldelimiter"}),(0,m.kt)("span",{parentName:"span",className:"mfrac"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.3214em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.314em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.10903em"}},"MN"))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.23em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"frac-line",style:{borderBottomWidth:"0.04em"}})),(0,m.kt)("span",{parentName:"span",style:{top:"-3.677em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"1")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.686em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"mclose nulldelimiter"})),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mop op-limits"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.8283em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-1.8829em",marginLeft:"0em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.05em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"x"),(0,m.kt)("span",{parentName:"span",className:"mrel mtight"},"="),(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"1")))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.05em"}}),(0,m.kt)("span",{parentName:"span"},(0,m.kt)("span",{parentName:"span",className:"mop op-symbol large-op"},"\u2211"))),(0,m.kt)("span",{parentName:"span",style:{top:"-4.3em",marginLeft:"0em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.05em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.10903em"}},"M"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.2671em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mop op-limits"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.8283em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-1.8829em",marginLeft:"0em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.05em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.03588em"}},"y"),(0,m.kt)("span",{parentName:"span",className:"mrel mtight"},"="),(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"1")))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.05em"}}),(0,m.kt)("span",{parentName:"span"},(0,m.kt)("span",{parentName:"span",className:"mop op-symbol large-op"},"\u2211"))),(0,m.kt)("span",{parentName:"span",style:{top:"-4.3em",marginLeft:"0em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.05em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.10903em"}},"N"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.4032em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"mopen"},"["),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.10764em"}},"f"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"x"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"y"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"\u2212"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1.1141em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"g"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"x"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"y"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mclose"},(0,m.kt)("span",{parentName:"span",className:"mclose"},"]"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.8641em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-3.113em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"2"))))))))),(0,m.kt)("span",{parentName:"span",className:"tag"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"3.2316em",verticalAlign:"-1.4032em"}}),(0,m.kt)("span",{parentName:"span",className:"mord text"},(0,m.kt)("span",{parentName:"span",className:"mord"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"4")),(0,m.kt)("span",{parentName:"span",className:"mord"},")")))))))),(0,m.kt)("li",{parentName:"ul"},(0,m.kt)("p",{parentName:"li"},"SNR\uff1a\u53c2\u8003\u56fe\u50cf\u50cf\u7d20\u503c\u7684\u5e73\u65b9\u5747\u503c\u4e0e\u5747\u65b9\u8bef\u5dee\u7684\u6bd4\u503c\u7684\u5bf9\u6570\u768410\u500d\u3002\u8d8a\u5927\u4ee3\u8868\u56fe\u50cf\u8d28\u91cf\u8d8a\u597d")),(0,m.kt)("li",{parentName:"ul"},(0,m.kt)("p",{parentName:"li"},"PSNR\uff1a\u5cf0\u503c\u4fe1\u566a\u6bd4\uff0c\u56fe\u50cf\u6240\u5141\u8bb8\u7684\u6700\u5927\u50cf\u7d20\u503c\u7684\u5e73\u65b9\u4e0e\u5747\u65b9\u8bef\u5dee\u7684\u6bd4\u503c\u7684\u5bf9\u6570\u768410\u500d\uff0c\u8fd9\u662f\u4fe1\u566a\u6bd4\u7684\u6539\u826f\u7248\u672c\uff0c\u6d88\u9664\u4e86\u56fe\u50cf\u81ea\u8eab\u50cf\u7d20\u503c\u5bf9\u8bc4\u4ef7\u6307\u6807\u7684\u5f71\u54cd\u3002\u8d8a\u5927\u4ee3\u8868\u56fe\u50cf\u8d28\u91cf\u8d8a\u597d")),(0,m.kt)("li",{parentName:"ul"},(0,m.kt)("p",{parentName:"li"},"SSIM\u4e3a\u7ed3\u6784\u76f8\u4f3c\u7cfb\u6570\uff0c\u8d8a\u5927\u4ee3\u8868\u56fe\u50cf\u8d28\u91cf\u8d8a\u597d"))),(0,m.kt)("p",null,(0,m.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_imagesimage-20231204175437763.png",alt:"image-20231204175437763"})),(0,m.kt)("h3",{id:"\u7070\u5ea6\u76f4\u65b9\u56fe"},"\u7070\u5ea6\u76f4\u65b9\u56fe"),(0,m.kt)("p",null,(0,m.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_imagesimage-20231204182548156.png",alt:"image-20231204182548156"})),(0,m.kt)("h2",{id:"\u7b2c3\u7ae0-\u56fe\u50cf\u53d8\u6362"},"\u7b2c3\u7ae0 \u56fe\u50cf\u53d8\u6362"),(0,m.kt)("h3",{id:"\u5085\u91cc\u53f6\u53d8\u6362"},"\u5085\u91cc\u53f6\u53d8\u6362"),(0,m.kt)("p",null,"\u53ef\u4ee5\u4f7f\u7528\u5085\u91cc\u53f6\u53d8\u6362\u7684\u51fd\u6570\u9700\u8981\u6ee1\u8db3\u72c4\u5229\u514b\u83b1\u6761\u4ef6\uff08Dirichlet Condition\uff09\uff1a"),(0,m.kt)("ol",null,(0,m.kt)("li",{parentName:"ol"},"\u5177\u6709\u6709\u9650\u4e2a\u95f4\u65ad\u70b9"),(0,m.kt)("li",{parentName:"ol"},"\u5177\u6709\u6709\u9650\u4e2a\u6781\u503c\u70b9"),(0,m.kt)("li",{parentName:"ol"},"\u7edd\u5bf9\u53ef\u79ef")),(0,m.kt)("p",null,"\u5085\u91cc\u53f6\u53d8\u6362\u7684\u7279\u6027\uff1a"),(0,m.kt)("p",null,(0,m.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_imagesimage-20231205153724162.png",alt:"image-20231205153724162"})),(0,m.kt)("admonition",{type:"important"},(0,m.kt)("p",{parentName:"admonition"},"\u5085\u91cc\u53f6\u9891\u8c31\u56fe\u7684\u7279\u5f81\uff1a"),(0,m.kt)("ul",{parentName:"admonition"},(0,m.kt)("li",{parentName:"ul"},"\u9891\u7387\u5206\u5e03\uff1a\u5085\u91cc\u53f6\u9891\u8c31\u56fe\u5c55\u793a\u4e86\u56fe\u50cf\u5728\u4e0d\u540c\u9891\u7387\u4e0b\u7684\u5f3a\u5ea6\u5206\u5e03\u3002\u9ad8\u9891\u90e8\u5206\u5bf9\u5e94\u56fe\u50cf\u4e2d\u7684\u8fb9\u7f18\u548c\u7ec6\u8282\uff0c\u4f4e\u9891\u90e8\u5206\u5bf9\u5e94\u56fe\u50cf\u4e2d\u7684\u6574\u4f53\u7ed3\u6784\u548c\u5927\u81f4\u8f6e\u5ed3\u3002"),(0,m.kt)("li",{parentName:"ul"},"\u80fd\u91cf\u5206\u5e03\uff1a\u56fe\u50cf\u4e2d\u4e0d\u540c\u9891\u7387\u7684\u80fd\u91cf\u5728\u9891\u8c31\u56fe\u4e2d\u4ee5\u4e0d\u540c\u5f3a\u5ea6\u7684\u5e45\u5ea6\u5448\u73b0\u3002\u9ad8\u5e45\u5ea6\u7684\u9891\u7387\u5206\u91cf\u901a\u5e38\u6807\u793a\u7740\u56fe\u50cf\u4e2d\u5f3a\u70c8\u7684\u53d8\u5316\u6216\u8fb9\u7f18\u3002"),(0,m.kt)("li",{parentName:"ul"},"\u5e73\u79fb\u4e0d\u53d8\u6027\uff1a\u5085\u91cc\u53f6\u53d8\u6362\u5177\u6709\u5e73\u79fb\u4e0d\u53d8\u6027\uff0c\u8fd9\u610f\u5473\u7740\u5728\u9891\u57df\u4e2d\u56fe\u50cf\u7684\u5e73\u79fb\u5bf9\u5e94\u4e8e\u5e45\u5ea6\u8c31\u4e2d\u76f8\u4f4d\u7684\u6539\u53d8\u800c\u4e0d\u5f71\u54cd\u5e45\u5ea6\u8c31\u672c\u8eab\u3002"))),(0,m.kt)("h4",{id:"\u8fde\u7eed\u5085\u91cc\u53f6\u53d8\u6362"},"\u8fde\u7eed\u5085\u91cc\u53f6\u53d8\u6362"),(0,m.kt)("p",null,"\u4e00\u7ef4\u8fde\u7eed\u5085\u91cc\u53f6\u53d8\u6362"),(0,m.kt)("div",{className:"math math-display"},(0,m.kt)("span",{parentName:"div",className:"katex-display"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mtable",{parentName:"semantics",width:"100%"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mrow",{parentName:"mtd"},(0,m.kt)("mi",{parentName:"mrow"},"F"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"u"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("msubsup",{parentName:"mrow"},(0,m.kt)("mo",{parentName:"msubsup"},"\u222b"),(0,m.kt)("mrow",{parentName:"msubsup"},(0,m.kt)("mo",{parentName:"mrow"},"\u2212"),(0,m.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"\u221e")),(0,m.kt)("mrow",{parentName:"msubsup"},(0,m.kt)("mo",{parentName:"mrow"},"+"),(0,m.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"\u221e"))),(0,m.kt)("mi",{parentName:"mrow"},"f"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"x"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("msup",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msup"},"e"),(0,m.kt)("mrow",{parentName:"msup"},(0,m.kt)("mo",{parentName:"mrow"},"\u2212"),(0,m.kt)("mi",{parentName:"mrow"},"j"),(0,m.kt)("mn",{parentName:"mrow"},"2"),(0,m.kt)("mi",{parentName:"mrow"},"\u03c0"),(0,m.kt)("mi",{parentName:"mrow"},"u"),(0,m.kt)("mi",{parentName:"mrow"},"x"))),(0,m.kt)("mi",{parentName:"mrow"},"d"),(0,m.kt)("mi",{parentName:"mrow"},"x"))),(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mtext",{parentName:"mtd"},"(5)")))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"F(u)=\\int_{-\\infty}^{+\\infty}f(x)e^{-j2\\pi ux}dx\\tag{5}")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"F"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"u"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"="),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"2.4915em",verticalAlign:"-0.9703em"}}),(0,m.kt)("span",{parentName:"span",className:"mop"},(0,m.kt)("span",{parentName:"span",className:"mop op-symbol large-op",style:{marginRight:"0.44445em",position:"relative",top:"-0.0011em"}},"\u222b"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.5212em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-1.7881em",marginLeft:"-0.4445em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"\u2212"),(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"\u221e")))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.8129em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"+"),(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"\u221e"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.9703em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.10764em"}},"f"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"x"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"e"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.8747em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-3.113em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"\u2212"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.05724em"}},"j"),(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"2"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.03588em"}},"\u03c0"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"ux"))))))))),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"d"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"x")),(0,m.kt)("span",{parentName:"span",className:"tag"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"2.4915em",verticalAlign:"-0.9703em"}}),(0,m.kt)("span",{parentName:"span",className:"mord text"},(0,m.kt)("span",{parentName:"span",className:"mord"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"5")),(0,m.kt)("span",{parentName:"span",className:"mord"},")"))))))),(0,m.kt)("p",null,"\u4e00\u7ef4\u8fde\u7eed\u5085\u91cc\u53f6\u9006\u53d8\u6362"),(0,m.kt)("div",{className:"math math-display"},(0,m.kt)("span",{parentName:"div",className:"katex-display"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mtable",{parentName:"semantics",width:"100%"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mrow",{parentName:"mtd"},(0,m.kt)("mi",{parentName:"mrow"},"f"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"x"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("msubsup",{parentName:"mrow"},(0,m.kt)("mo",{parentName:"msubsup"},"\u222b"),(0,m.kt)("mrow",{parentName:"msubsup"},(0,m.kt)("mo",{parentName:"mrow"},"\u2212"),(0,m.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"\u221e")),(0,m.kt)("mi",{parentName:"msubsup",mathvariant:"normal"},"\u221e")),(0,m.kt)("mi",{parentName:"mrow"},"F"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"u"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("msup",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msup"},"e"),(0,m.kt)("mrow",{parentName:"msup"},(0,m.kt)("mi",{parentName:"mrow"},"j"),(0,m.kt)("mn",{parentName:"mrow"},"2"),(0,m.kt)("mi",{parentName:"mrow"},"\u03c0"),(0,m.kt)("mi",{parentName:"mrow"},"u"),(0,m.kt)("mi",{parentName:"mrow"},"x"))),(0,m.kt)("mi",{parentName:"mrow"},"d"),(0,m.kt)("mi",{parentName:"mrow"},"u"))),(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mtext",{parentName:"mtd"},"(6)")))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"f(x)=\\int_{-\\infty}^{\\infty}F(u)e^{j2\\pi ux}du\\tag{6}")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.10764em"}},"f"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"x"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"="),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"2.3846em",verticalAlign:"-0.9703em"}}),(0,m.kt)("span",{parentName:"span",className:"mop"},(0,m.kt)("span",{parentName:"span",className:"mop op-symbol large-op",style:{marginRight:"0.44445em",position:"relative",top:"-0.0011em"}},"\u222b"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.4143em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-1.7881em",marginLeft:"-0.4445em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"\u2212"),(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"\u221e")))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.8129em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"\u221e"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.9703em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"F"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"u"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"e"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.8747em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-3.113em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.05724em"}},"j"),(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"2"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.03588em"}},"\u03c0"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"ux"))))))))),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"d"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"u")),(0,m.kt)("span",{parentName:"span",className:"tag"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"2.3846em",verticalAlign:"-0.9703em"}}),(0,m.kt)("span",{parentName:"span",className:"mord text"},(0,m.kt)("span",{parentName:"span",className:"mord"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"6")),(0,m.kt)("span",{parentName:"span",className:"mord"},")"))))))),(0,m.kt)("p",null,"\u4e8c\u7ef4\u8fde\u7eed\u5085\u91cc\u53f6\u53d8\u6362"),(0,m.kt)("div",{className:"math math-display"},(0,m.kt)("span",{parentName:"div",className:"katex-display"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mtable",{parentName:"semantics",width:"100%"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mrow",{parentName:"mtd"},(0,m.kt)("mi",{parentName:"mrow"},"F"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"u"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"v"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("msubsup",{parentName:"mrow"},(0,m.kt)("mo",{parentName:"msubsup"},"\u222b"),(0,m.kt)("mrow",{parentName:"msubsup"},(0,m.kt)("mo",{parentName:"mrow"},"\u2212"),(0,m.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"\u221e")),(0,m.kt)("mi",{parentName:"msubsup",mathvariant:"normal"},"\u221e")),(0,m.kt)("msubsup",{parentName:"mrow"},(0,m.kt)("mo",{parentName:"msubsup"},"\u222b"),(0,m.kt)("mrow",{parentName:"msubsup"},(0,m.kt)("mo",{parentName:"mrow"},"\u2212"),(0,m.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"\u221e")),(0,m.kt)("mi",{parentName:"msubsup",mathvariant:"normal"},"\u221e")),(0,m.kt)("mi",{parentName:"mrow"},"f"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"x"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"y"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("msup",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msup"},"e"),(0,m.kt)("mrow",{parentName:"msup"},(0,m.kt)("mo",{parentName:"mrow"},"\u2212"),(0,m.kt)("mi",{parentName:"mrow"},"j"),(0,m.kt)("mn",{parentName:"mrow"},"2"),(0,m.kt)("mi",{parentName:"mrow"},"\u03c0"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"u"),(0,m.kt)("mi",{parentName:"mrow"},"x"),(0,m.kt)("mo",{parentName:"mrow"},"+"),(0,m.kt)("mi",{parentName:"mrow"},"v"),(0,m.kt)("mi",{parentName:"mrow"},"y"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"))),(0,m.kt)("mi",{parentName:"mrow"},"d"),(0,m.kt)("mi",{parentName:"mrow"},"x"),(0,m.kt)("mi",{parentName:"mrow"},"d"),(0,m.kt)("mi",{parentName:"mrow"},"y"))),(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mtext",{parentName:"mtd"},"(7)")))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"F(u,v)=\\int_{-\\infty}^{\\infty}\\int_{-\\infty}^{\\infty}f(x,y)e^{-j2\\pi (ux+vy)}dxdy\\tag{7}")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"F"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"u"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"v"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"="),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"2.3846em",verticalAlign:"-0.9703em"}}),(0,m.kt)("span",{parentName:"span",className:"mop"},(0,m.kt)("span",{parentName:"span",className:"mop op-symbol large-op",style:{marginRight:"0.44445em",position:"relative",top:"-0.0011em"}},"\u222b"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.4143em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-1.7881em",marginLeft:"-0.4445em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"\u2212"),(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"\u221e")))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.8129em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"\u221e"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.9703em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mop"},(0,m.kt)("span",{parentName:"span",className:"mop op-symbol large-op",style:{marginRight:"0.44445em",position:"relative",top:"-0.0011em"}},"\u222b"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.4143em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-1.7881em",marginLeft:"-0.4445em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"\u2212"),(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"\u221e")))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.8129em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"\u221e"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.9703em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.10764em"}},"f"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"x"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"y"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"e"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.938em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-3.113em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"\u2212"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.05724em"}},"j"),(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"2"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.03588em"}},"\u03c0"),(0,m.kt)("span",{parentName:"span",className:"mopen mtight"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"ux"),(0,m.kt)("span",{parentName:"span",className:"mbin mtight"},"+"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.03588em"}},"v"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.03588em"}},"y"),(0,m.kt)("span",{parentName:"span",className:"mclose mtight"},")"))))))))),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"d"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"x"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"d"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"y")),(0,m.kt)("span",{parentName:"span",className:"tag"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"2.3846em",verticalAlign:"-0.9703em"}}),(0,m.kt)("span",{parentName:"span",className:"mord text"},(0,m.kt)("span",{parentName:"span",className:"mord"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"7")),(0,m.kt)("span",{parentName:"span",className:"mord"},")"))))))),(0,m.kt)("p",null,"\u4e8c\u7ef4\u8fde\u7eed\u5085\u91cc\u53f6\u9006\u53d8\u6362"),(0,m.kt)("div",{className:"math math-display"},(0,m.kt)("span",{parentName:"div",className:"katex-display"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mtable",{parentName:"semantics",width:"100%"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mrow",{parentName:"mtd"},(0,m.kt)("mi",{parentName:"mrow"},"f"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"x"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"y"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("msubsup",{parentName:"mrow"},(0,m.kt)("mo",{parentName:"msubsup"},"\u222b"),(0,m.kt)("mrow",{parentName:"msubsup"},(0,m.kt)("mo",{parentName:"mrow"},"\u2212"),(0,m.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"\u221e")),(0,m.kt)("mi",{parentName:"msubsup",mathvariant:"normal"},"\u221e")),(0,m.kt)("msubsup",{parentName:"mrow"},(0,m.kt)("mo",{parentName:"msubsup"},"\u222b"),(0,m.kt)("mrow",{parentName:"msubsup"},(0,m.kt)("mo",{parentName:"mrow"},"\u2212"),(0,m.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"\u221e")),(0,m.kt)("mi",{parentName:"msubsup",mathvariant:"normal"},"\u221e")),(0,m.kt)("mi",{parentName:"mrow"},"F"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"u"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"v"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("msup",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msup"},"e"),(0,m.kt)("mrow",{parentName:"msup"},(0,m.kt)("mi",{parentName:"mrow"},"j"),(0,m.kt)("mn",{parentName:"mrow"},"2"),(0,m.kt)("mi",{parentName:"mrow"},"\u03c0"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"u"),(0,m.kt)("mi",{parentName:"mrow"},"x"),(0,m.kt)("mo",{parentName:"mrow"},"+"),(0,m.kt)("mi",{parentName:"mrow"},"v"),(0,m.kt)("mi",{parentName:"mrow"},"y"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"))),(0,m.kt)("mi",{parentName:"mrow"},"d"),(0,m.kt)("mi",{parentName:"mrow"},"u"),(0,m.kt)("mi",{parentName:"mrow"},"d"),(0,m.kt)("mi",{parentName:"mrow"},"v"))),(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mtext",{parentName:"mtd"},"(8)")))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"f(x,y)=\\int_{-\\infty}^{\\infty}\\int_{-\\infty}^{\\infty}F(u,v)e^{j2\\pi (ux+vy)}dudv\\tag{8}")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.10764em"}},"f"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"x"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"y"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"="),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"2.3846em",verticalAlign:"-0.9703em"}}),(0,m.kt)("span",{parentName:"span",className:"mop"},(0,m.kt)("span",{parentName:"span",className:"mop op-symbol large-op",style:{marginRight:"0.44445em",position:"relative",top:"-0.0011em"}},"\u222b"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.4143em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-1.7881em",marginLeft:"-0.4445em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"\u2212"),(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"\u221e")))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.8129em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"\u221e"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.9703em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mop"},(0,m.kt)("span",{parentName:"span",className:"mop op-symbol large-op",style:{marginRight:"0.44445em",position:"relative",top:"-0.0011em"}},"\u222b"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.4143em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-1.7881em",marginLeft:"-0.4445em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"\u2212"),(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"\u221e")))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.8129em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"\u221e"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.9703em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"F"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"u"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"v"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"e"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.938em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-3.113em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.05724em"}},"j"),(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"2"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.03588em"}},"\u03c0"),(0,m.kt)("span",{parentName:"span",className:"mopen mtight"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"ux"),(0,m.kt)("span",{parentName:"span",className:"mbin mtight"},"+"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.03588em"}},"v"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.03588em"}},"y"),(0,m.kt)("span",{parentName:"span",className:"mclose mtight"},")"))))))))),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"d"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"u"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"d"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"v")),(0,m.kt)("span",{parentName:"span",className:"tag"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"2.3846em",verticalAlign:"-0.9703em"}}),(0,m.kt)("span",{parentName:"span",className:"mord text"},(0,m.kt)("span",{parentName:"span",className:"mord"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"8")),(0,m.kt)("span",{parentName:"span",className:"mord"},")"))))))),(0,m.kt)("h4",{id:"\u79bb\u6563\u5085\u91cc\u53f6\u53d8\u6362"},"\u79bb\u6563\u5085\u91cc\u53f6\u53d8\u6362"),(0,m.kt)("p",null,"\u4e00\u7ef4\u79bb\u6563\u5085\u91cc\u53f6\u53d8\u6362"),(0,m.kt)("div",{className:"math math-display"},(0,m.kt)("span",{parentName:"div",className:"katex-display"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mtable",{parentName:"semantics",width:"100%"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mrow",{parentName:"mtd"},(0,m.kt)("mi",{parentName:"mrow"},"F"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"u"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("munderover",{parentName:"mrow"},(0,m.kt)("mo",{parentName:"munderover"},"\u2211"),(0,m.kt)("mrow",{parentName:"munderover"},(0,m.kt)("mi",{parentName:"mrow"},"x"),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("mn",{parentName:"mrow"},"0")),(0,m.kt)("mrow",{parentName:"munderover"},(0,m.kt)("mi",{parentName:"mrow"},"N"),(0,m.kt)("mo",{parentName:"mrow"},"\u2212"),(0,m.kt)("mn",{parentName:"mrow"},"1"))),(0,m.kt)("mi",{parentName:"mrow"},"f"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"x"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("msup",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msup"},"e"),(0,m.kt)("mrow",{parentName:"msup"},(0,m.kt)("mo",{parentName:"mrow"},"\u2212"),(0,m.kt)("mi",{parentName:"mrow"},"j"),(0,m.kt)("mfrac",{parentName:"mrow"},(0,m.kt)("mrow",{parentName:"mfrac"},(0,m.kt)("mn",{parentName:"mrow"},"2"),(0,m.kt)("mi",{parentName:"mrow"},"\u03c0"),(0,m.kt)("mi",{parentName:"mrow"},"u"),(0,m.kt)("mi",{parentName:"mrow"},"x")),(0,m.kt)("mi",{parentName:"mfrac"},"N")))))),(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mtext",{parentName:"mtd"},"(9)")))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"F(u)=\\sum_{x=0}^{N-1}f(x)e^{-j\\frac{2\\pi ux}{N}}\\tag{9}")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"F"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"u"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"="),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"3.0954em",verticalAlign:"-1.2671em"}}),(0,m.kt)("span",{parentName:"span",className:"mop op-limits"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.8283em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-1.8829em",marginLeft:"0em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.05em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"x"),(0,m.kt)("span",{parentName:"span",className:"mrel mtight"},"="),(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"0")))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.05em"}}),(0,m.kt)("span",{parentName:"span"},(0,m.kt)("span",{parentName:"span",className:"mop op-symbol large-op"},"\u2211"))),(0,m.kt)("span",{parentName:"span",style:{top:"-4.3em",marginLeft:"0em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.05em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.10903em"}},"N"),(0,m.kt)("span",{parentName:"span",className:"mbin mtight"},"\u2212"),(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"1"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.2671em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.10764em"}},"f"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"x"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"e"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.004em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-3.413em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"\u2212"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.05724em"}},"j"),(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mopen nulldelimiter sizing reset-size3 size6"}),(0,m.kt)("span",{parentName:"span",className:"mfrac"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.8443em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.656em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size3 size1 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.10903em"}},"N")))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.2255em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"frac-line mtight",style:{borderBottomWidth:"0.049em"}})),(0,m.kt)("span",{parentName:"span",style:{top:"-3.384em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size3 size1 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"2"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.03588em"}},"\u03c0"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"ux"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.344em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"mclose nulldelimiter sizing reset-size3 size6"}))))))))))),(0,m.kt)("span",{parentName:"span",className:"tag"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"3.0954em",verticalAlign:"-1.2671em"}}),(0,m.kt)("span",{parentName:"span",className:"mord text"},(0,m.kt)("span",{parentName:"span",className:"mord"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"9")),(0,m.kt)("span",{parentName:"span",className:"mord"},")"))))))),(0,m.kt)("p",null,"\u4e00\u7ef4\u79bb\u6563\u5085\u91cc\u53f6\u9006\u53d8\u6362"),(0,m.kt)("div",{className:"math math-display"},(0,m.kt)("span",{parentName:"div",className:"katex-display"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mtable",{parentName:"semantics",width:"100%"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mrow",{parentName:"mtd"},(0,m.kt)("mi",{parentName:"mrow"},"f"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"x"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("mfrac",{parentName:"mrow"},(0,m.kt)("mn",{parentName:"mfrac"},"1"),(0,m.kt)("mi",{parentName:"mfrac"},"N")),(0,m.kt)("munderover",{parentName:"mrow"},(0,m.kt)("mo",{parentName:"munderover"},"\u2211"),(0,m.kt)("mrow",{parentName:"munderover"},(0,m.kt)("mi",{parentName:"mrow"},"u"),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("mn",{parentName:"mrow"},"0")),(0,m.kt)("mrow",{parentName:"munderover"},(0,m.kt)("mi",{parentName:"mrow"},"N"),(0,m.kt)("mo",{parentName:"mrow"},"\u2212"),(0,m.kt)("mn",{parentName:"mrow"},"1"))),(0,m.kt)("mi",{parentName:"mrow"},"F"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"u"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("msup",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msup"},"e"),(0,m.kt)("mrow",{parentName:"msup"},(0,m.kt)("mi",{parentName:"mrow"},"j"),(0,m.kt)("mfrac",{parentName:"mrow"},(0,m.kt)("mrow",{parentName:"mfrac"},(0,m.kt)("mn",{parentName:"mrow"},"2"),(0,m.kt)("mi",{parentName:"mrow"},"\u03c0"),(0,m.kt)("mi",{parentName:"mrow"},"u"),(0,m.kt)("mi",{parentName:"mrow"},"x")),(0,m.kt)("mi",{parentName:"mfrac"},"N")))))),(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mtext",{parentName:"mtd"},"(10)")))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"f(x)=\\frac{1}{N}\\sum_{u=0}^{N-1}F(u)e^{j\\frac{2\\pi ux}{N}}\\tag{10}")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.10764em"}},"f"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"x"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"="),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"3.0954em",verticalAlign:"-1.2671em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mopen nulldelimiter"}),(0,m.kt)("span",{parentName:"span",className:"mfrac"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.3214em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.314em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.10903em"}},"N"))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.23em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"frac-line",style:{borderBottomWidth:"0.04em"}})),(0,m.kt)("span",{parentName:"span",style:{top:"-3.677em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"1")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.686em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"mclose nulldelimiter"})),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mop op-limits"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.8283em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-1.8829em",marginLeft:"0em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.05em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"u"),(0,m.kt)("span",{parentName:"span",className:"mrel mtight"},"="),(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"0")))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.05em"}}),(0,m.kt)("span",{parentName:"span"},(0,m.kt)("span",{parentName:"span",className:"mop op-symbol large-op"},"\u2211"))),(0,m.kt)("span",{parentName:"span",style:{top:"-4.3em",marginLeft:"0em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.05em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.10903em"}},"N"),(0,m.kt)("span",{parentName:"span",className:"mbin mtight"},"\u2212"),(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"1"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.2671em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"F"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"u"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"e"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.004em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-3.413em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.05724em"}},"j"),(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mopen nulldelimiter sizing reset-size3 size6"}),(0,m.kt)("span",{parentName:"span",className:"mfrac"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.8443em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.656em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size3 size1 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.10903em"}},"N")))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.2255em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"frac-line mtight",style:{borderBottomWidth:"0.049em"}})),(0,m.kt)("span",{parentName:"span",style:{top:"-3.384em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size3 size1 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"2"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.03588em"}},"\u03c0"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"ux"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.344em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"mclose nulldelimiter sizing reset-size3 size6"}))))))))))),(0,m.kt)("span",{parentName:"span",className:"tag"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"3.0954em",verticalAlign:"-1.2671em"}}),(0,m.kt)("span",{parentName:"span",className:"mord text"},(0,m.kt)("span",{parentName:"span",className:"mord"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"10")),(0,m.kt)("span",{parentName:"span",className:"mord"},")"))))))),(0,m.kt)("p",null,"\u4e8c\u7ef4\u79bb\u6563\u5085\u91cc\u53f6\u53d8\u6362"),(0,m.kt)("div",{className:"math math-display"},(0,m.kt)("span",{parentName:"div",className:"katex-display"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mtable",{parentName:"semantics",width:"100%"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mrow",{parentName:"mtd"},(0,m.kt)("mi",{parentName:"mrow"},"F"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"u"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"v"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("munderover",{parentName:"mrow"},(0,m.kt)("mo",{parentName:"munderover"},"\u2211"),(0,m.kt)("mrow",{parentName:"munderover"},(0,m.kt)("mi",{parentName:"mrow"},"x"),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("mn",{parentName:"mrow"},"0")),(0,m.kt)("mrow",{parentName:"munderover"},(0,m.kt)("mi",{parentName:"mrow"},"M"),(0,m.kt)("mo",{parentName:"mrow"},"\u2212"),(0,m.kt)("mn",{parentName:"mrow"},"1"))),(0,m.kt)("munderover",{parentName:"mrow"},(0,m.kt)("mo",{parentName:"munderover"},"\u2211"),(0,m.kt)("mrow",{parentName:"munderover"},(0,m.kt)("mi",{parentName:"mrow"},"y"),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("mn",{parentName:"mrow"},"0")),(0,m.kt)("mrow",{parentName:"munderover"},(0,m.kt)("mi",{parentName:"mrow"},"N"),(0,m.kt)("mo",{parentName:"mrow"},"\u2212"),(0,m.kt)("mn",{parentName:"mrow"},"1"))),(0,m.kt)("mi",{parentName:"mrow"},"f"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"x"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"y"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("msup",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msup"},"e"),(0,m.kt)("mrow",{parentName:"msup"},(0,m.kt)("mo",{parentName:"mrow"},"\u2212"),(0,m.kt)("mi",{parentName:"mrow"},"j"),(0,m.kt)("mn",{parentName:"mrow"},"2"),(0,m.kt)("mi",{parentName:"mrow"},"\u03c0"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mfrac",{parentName:"mrow"},(0,m.kt)("mrow",{parentName:"mfrac"},(0,m.kt)("mi",{parentName:"mrow"},"u"),(0,m.kt)("mi",{parentName:"mrow"},"x")),(0,m.kt)("mi",{parentName:"mfrac"},"M")),(0,m.kt)("mo",{parentName:"mrow"},"+"),(0,m.kt)("mfrac",{parentName:"mrow"},(0,m.kt)("mrow",{parentName:"mfrac"},(0,m.kt)("mi",{parentName:"mrow"},"v"),(0,m.kt)("mi",{parentName:"mrow"},"y")),(0,m.kt)("mi",{parentName:"mfrac"},"N")),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"))))),(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mtext",{parentName:"mtd"},"(11)")))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"F(u,v)=\\sum_{x=0}^{M-1}\\sum_{y=0}^{N-1}f(x,y)e^{-j2\\pi (\\frac{ux}{M}+\\frac{vy}{N})}\\tag{11}")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"F"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"u"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"v"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"="),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"3.2316em",verticalAlign:"-1.4032em"}}),(0,m.kt)("span",{parentName:"span",className:"mop op-limits"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.8283em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-1.8829em",marginLeft:"0em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.05em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"x"),(0,m.kt)("span",{parentName:"span",className:"mrel mtight"},"="),(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"0")))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.05em"}}),(0,m.kt)("span",{parentName:"span"},(0,m.kt)("span",{parentName:"span",className:"mop op-symbol large-op"},"\u2211"))),(0,m.kt)("span",{parentName:"span",style:{top:"-4.3em",marginLeft:"0em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.05em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.10903em"}},"M"),(0,m.kt)("span",{parentName:"span",className:"mbin mtight"},"\u2212"),(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"1"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.2671em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mop op-limits"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.8283em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-1.8829em",marginLeft:"0em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.05em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.03588em"}},"y"),(0,m.kt)("span",{parentName:"span",className:"mrel mtight"},"="),(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"0")))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.05em"}}),(0,m.kt)("span",{parentName:"span"},(0,m.kt)("span",{parentName:"span",className:"mop op-symbol large-op"},"\u2211"))),(0,m.kt)("span",{parentName:"span",style:{top:"-4.3em",marginLeft:"0em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.05em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.10903em"}},"N"),(0,m.kt)("span",{parentName:"span",className:"mbin mtight"},"\u2212"),(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"1"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.4032em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.10764em"}},"f"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"x"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"y"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"e"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.9519em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-3.413em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"\u2212"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.05724em"}},"j"),(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"2"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.03588em"}},"\u03c0"),(0,m.kt)("span",{parentName:"span",className:"mopen mtight"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mopen nulldelimiter sizing reset-size3 size6"}),(0,m.kt)("span",{parentName:"span",className:"mfrac"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.6915em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.656em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size3 size1 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.10903em"}},"M")))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.2255em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"frac-line mtight",style:{borderBottomWidth:"0.049em"}})),(0,m.kt)("span",{parentName:"span",style:{top:"-3.384em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size3 size1 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"ux"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.344em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"mclose nulldelimiter sizing reset-size3 size6"})),(0,m.kt)("span",{parentName:"span",className:"mbin mtight"},"+"),(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mopen nulldelimiter sizing reset-size3 size6"}),(0,m.kt)("span",{parentName:"span",className:"mfrac"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.7699em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.656em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size3 size1 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.10903em"}},"N")))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.2255em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"frac-line mtight",style:{borderBottomWidth:"0.049em"}})),(0,m.kt)("span",{parentName:"span",style:{top:"-3.4624em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size3 size1 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.03588em"}},"v"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.03588em"}},"y"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.344em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"mclose nulldelimiter sizing reset-size3 size6"})),(0,m.kt)("span",{parentName:"span",className:"mclose mtight"},")")))))))))),(0,m.kt)("span",{parentName:"span",className:"tag"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"3.2316em",verticalAlign:"-1.4032em"}}),(0,m.kt)("span",{parentName:"span",className:"mord text"},(0,m.kt)("span",{parentName:"span",className:"mord"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"11")),(0,m.kt)("span",{parentName:"span",className:"mord"},")"))))))),(0,m.kt)("p",null,"\u4e8c\u7ef4\u79bb\u6563\u5085\u91cc\u53f6\u9006\u53d8\u6362"),(0,m.kt)("div",{className:"math math-display"},(0,m.kt)("span",{parentName:"div",className:"katex-display"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mtable",{parentName:"semantics",width:"100%"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mrow",{parentName:"mtd"},(0,m.kt)("mi",{parentName:"mrow"},"f"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"x"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"y"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("mfrac",{parentName:"mrow"},(0,m.kt)("mn",{parentName:"mfrac"},"1"),(0,m.kt)("mrow",{parentName:"mfrac"},(0,m.kt)("mi",{parentName:"mrow"},"M"),(0,m.kt)("mi",{parentName:"mrow"},"N"))),(0,m.kt)("munderover",{parentName:"mrow"},(0,m.kt)("mo",{parentName:"munderover"},"\u2211"),(0,m.kt)("mrow",{parentName:"munderover"},(0,m.kt)("mi",{parentName:"mrow"},"u"),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("mn",{parentName:"mrow"},"0")),(0,m.kt)("mrow",{parentName:"munderover"},(0,m.kt)("mi",{parentName:"mrow"},"M"),(0,m.kt)("mo",{parentName:"mrow"},"\u2212"),(0,m.kt)("mn",{parentName:"mrow"},"1"))),(0,m.kt)("munderover",{parentName:"mrow"},(0,m.kt)("mo",{parentName:"munderover"},"\u2211"),(0,m.kt)("mrow",{parentName:"munderover"},(0,m.kt)("mi",{parentName:"mrow"},"v"),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("mn",{parentName:"mrow"},"0")),(0,m.kt)("mrow",{parentName:"munderover"},(0,m.kt)("mi",{parentName:"mrow"},"N"),(0,m.kt)("mo",{parentName:"mrow"},"\u2212"),(0,m.kt)("mn",{parentName:"mrow"},"1"))),(0,m.kt)("mi",{parentName:"mrow"},"F"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"u"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"v"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("msup",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msup"},"e"),(0,m.kt)("mrow",{parentName:"msup"},(0,m.kt)("mi",{parentName:"mrow"},"j"),(0,m.kt)("mn",{parentName:"mrow"},"2"),(0,m.kt)("mi",{parentName:"mrow"},"\u03c0"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mfrac",{parentName:"mrow"},(0,m.kt)("mrow",{parentName:"mfrac"},(0,m.kt)("mi",{parentName:"mrow"},"u"),(0,m.kt)("mi",{parentName:"mrow"},"x")),(0,m.kt)("mi",{parentName:"mfrac"},"M")),(0,m.kt)("mo",{parentName:"mrow"},"+"),(0,m.kt)("mfrac",{parentName:"mrow"},(0,m.kt)("mrow",{parentName:"mfrac"},(0,m.kt)("mi",{parentName:"mrow"},"v"),(0,m.kt)("mi",{parentName:"mrow"},"y")),(0,m.kt)("mi",{parentName:"mfrac"},"N")),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"))))),(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mtext",{parentName:"mtd"},"(12)")))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"f(x,y)=\\frac{1}{MN}\\sum_{u=0}^{M-1}\\sum_{v=0}^{N-1}F(u,v)e^{j2\\pi (\\frac{ux}{M}+\\frac{vy}{N})}\\tag{12}")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.10764em"}},"f"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"x"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"y"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"="),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"3.0954em",verticalAlign:"-1.2671em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mopen nulldelimiter"}),(0,m.kt)("span",{parentName:"span",className:"mfrac"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.3214em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.314em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.10903em"}},"MN"))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.23em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"frac-line",style:{borderBottomWidth:"0.04em"}})),(0,m.kt)("span",{parentName:"span",style:{top:"-3.677em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"1")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.686em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"mclose nulldelimiter"})),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mop op-limits"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.8283em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-1.8829em",marginLeft:"0em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.05em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"u"),(0,m.kt)("span",{parentName:"span",className:"mrel mtight"},"="),(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"0")))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.05em"}}),(0,m.kt)("span",{parentName:"span"},(0,m.kt)("span",{parentName:"span",className:"mop op-symbol large-op"},"\u2211"))),(0,m.kt)("span",{parentName:"span",style:{top:"-4.3em",marginLeft:"0em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.05em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.10903em"}},"M"),(0,m.kt)("span",{parentName:"span",className:"mbin mtight"},"\u2212"),(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"1"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.2671em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mop op-limits"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.8283em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-1.8829em",marginLeft:"0em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.05em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.03588em"}},"v"),(0,m.kt)("span",{parentName:"span",className:"mrel mtight"},"="),(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"0")))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.05em"}}),(0,m.kt)("span",{parentName:"span"},(0,m.kt)("span",{parentName:"span",className:"mop op-symbol large-op"},"\u2211"))),(0,m.kt)("span",{parentName:"span",style:{top:"-4.3em",marginLeft:"0em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.05em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.10903em"}},"N"),(0,m.kt)("span",{parentName:"span",className:"mbin mtight"},"\u2212"),(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"1"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.2671em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"F"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"u"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"v"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"e"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.9519em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-3.413em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.05724em"}},"j"),(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"2"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.03588em"}},"\u03c0"),(0,m.kt)("span",{parentName:"span",className:"mopen mtight"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mopen nulldelimiter sizing reset-size3 size6"}),(0,m.kt)("span",{parentName:"span",className:"mfrac"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.6915em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.656em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size3 size1 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.10903em"}},"M")))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.2255em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"frac-line mtight",style:{borderBottomWidth:"0.049em"}})),(0,m.kt)("span",{parentName:"span",style:{top:"-3.384em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size3 size1 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"ux"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.344em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"mclose nulldelimiter sizing reset-size3 size6"})),(0,m.kt)("span",{parentName:"span",className:"mbin mtight"},"+"),(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mopen nulldelimiter sizing reset-size3 size6"}),(0,m.kt)("span",{parentName:"span",className:"mfrac"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.7699em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.656em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size3 size1 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.10903em"}},"N")))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.2255em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"frac-line mtight",style:{borderBottomWidth:"0.049em"}})),(0,m.kt)("span",{parentName:"span",style:{top:"-3.4624em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size3 size1 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.03588em"}},"v"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.03588em"}},"y"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.344em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"mclose nulldelimiter sizing reset-size3 size6"})),(0,m.kt)("span",{parentName:"span",className:"mclose mtight"},")")))))))))),(0,m.kt)("span",{parentName:"span",className:"tag"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"3.0954em",verticalAlign:"-1.2671em"}}),(0,m.kt)("span",{parentName:"span",className:"mord text"},(0,m.kt)("span",{parentName:"span",className:"mord"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"12")),(0,m.kt)("span",{parentName:"span",className:"mord"},")"))))))),(0,m.kt)("h2",{id:"\u7b2c4\u7ae0-\u56fe\u50cf\u5904\u7406\u7684\u57fa\u672c\u8fd0\u7b97"},"\u7b2c4\u7ae0 \u56fe\u50cf\u5904\u7406\u7684\u57fa\u672c\u8fd0\u7b97"),(0,m.kt)("h3",{id:"\u70b9\u8fd0\u7b97"},"\u70b9\u8fd0\u7b97"),(0,m.kt)("p",null,"\u4e0b\u56fe\u5c55\u793a\u4e86\u70b9\u8fd0\u7b97\u7684\u4e3b\u8981\u5e94\u7528\uff1a\u5bf9\u6bd4\u5ea6\u62c9\u4f38"),(0,m.kt)("p",null,(0,m.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_imagesimage-20231206232333992.png",alt:"image-20231206232333992"})),(0,m.kt)("p",null,"\u4e3b\u8981\u5e94\u7528\uff1a"),(0,m.kt)("ol",null,(0,m.kt)("li",{parentName:"ol"},"\u5bf9\u6bd4\u5ea6\u62c9\u4f38"),(0,m.kt)("li",{parentName:"ol"},"\u5149\u5ea6\u5b66\u6807\u5b9a"),(0,m.kt)("li",{parentName:"ol"},"\u663e\u793a\u6807\u5b9a"),(0,m.kt)("li",{parentName:"ol"},"\u8f6e\u5ed3\u7ebf"),(0,m.kt)("li",{parentName:"ol"},"\u88c1\u526a")),(0,m.kt)("h3",{id:"\u6bd4\u4f8b\u7f29\u653e"},"\u6bd4\u4f8b\u7f29\u653e"),(0,m.kt)("p",null,"\u4f7f\u7528\u9f50\u6b21\u5750\u6807\u5bf9\u56fe\u50cf\u8fdb\u884c\u6bd4\u4f8b\u7f29\u653e\u3002"),(0,m.kt)("p",null,"\u5168\u6bd4\u4f8b\u7f29\u653e\u662f\u6307x\u65b9\u5411\u548cy\u65b9\u5411\u4f7f\u7528\u76f8\u540c\u7684\u6bd4\u4f8b\u7cfb\u6570\u3002"),(0,m.kt)("p",null,"\u5f53\u5bf9\u56fe\u50cf\u8fdb\u884c\u653e\u5927\u65f6\uff0c\u4f1a\u4ea7\u751f\u4e4b\u524d\u6ca1\u6709\u7684\u50cf\u7d20\uff0c\u6b64\u65f6\u9700\u8981\u4f7f\u7528\u63d2\u503c\u6765\u89e3\u51b3\u3002"),(0,m.kt)("h3",{id:"\u7070\u5ea6\u7ea7\u63d2\u503c"},"\u7070\u5ea6\u7ea7\u63d2\u503c"),(0,m.kt)("h4",{id:"\u6700\u8fd1\u90bb\u6cd5\u63d2\u503c"},"\u6700\u8fd1\u90bb\u6cd5\u63d2\u503c"),(0,m.kt)("p",null,(0,m.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_imagesimage-20231204211821512.png",alt:"image-20231204211821512"})),(0,m.kt)("h4",{id:"\u53cc\u7ebf\u6027\u63d2\u503cbilinear"},"\u53cc\u7ebf\u6027\u63d2\u503c\uff08Bilinear\uff09"),(0,m.kt)("p",null,(0,m.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_images5aa135de29a5477b339c46f0dc05fd54_720.png",alt:"img"})),(0,m.kt)("p",null,"\u4f8b\u9898\uff1a"),(0,m.kt)("p",null,(0,m.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_imagesimage-20231207094211248.png",alt:"image-20231207094211248"})),(0,m.kt)("p",null,(0,m.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_imagesimage-20231204214449115.png",alt:"image-20231204214449115"})),(0,m.kt)("h2",{id:"\u7b2c5\u7ae0-\u56fe\u50cf\u7a7a\u57df\u589e\u5f3a"},"\u7b2c5\u7ae0 \u56fe\u50cf\u7a7a\u57df\u589e\u5f3a"),(0,m.kt)("p",null,(0,m.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_imagesc2a028df9a0fcfb571be1dc64a1a14ad_720.png",alt:"img"})),(0,m.kt)("h3",{id:"\u76f4\u63a5\u7070\u5ea6\u53d8\u6362"},"\u76f4\u63a5\u7070\u5ea6\u53d8\u6362"),(0,m.kt)("h4",{id:"\u7ebf\u6027\u53d8\u6362"},"\u7ebf\u6027\u53d8\u6362"),(0,m.kt)("p",null,"\u662f\u6307\u5c06\u8f93\u5165\u56fe\u50cf\u7684\u7070\u5ea6\u503c\u7684\u52a8\u6001\u8303\u56f4\u6309\u7ebf\u6027\u5173\u7cfb\u53d8\u6362\u81f3\u6307\u5b9a\u8303\u56f4\u6216\u7070\u5ea6\u7684\u6574\u4e2a\u52a8\u6001\u8303\u56f4\u3002"),(0,m.kt)("ul",null,(0,m.kt)("li",{parentName:"ul"},"\u6309\u6bd4\u4f8b\u7ebf\u6027\u53d8\u6362",(0,m.kt)("ul",{parentName:"li"},(0,m.kt)("li",{parentName:"ul"},"\u5747\u5300\u7ebf\u6027\u53d8\u6362"),(0,m.kt)("li",{parentName:"ul"},"\u9650\u5e45\u7ebf\u6027\u53d8\u6362"))),(0,m.kt)("li",{parentName:"ul"},"\u5206\u6bb5\u7ebf\u6027\u62c9\u4f38")),(0,m.kt)("h4",{id:"\u975e\u7ebf\u6027\u53d8\u6362"},"\u975e\u7ebf\u6027\u53d8\u6362"),(0,m.kt)("ul",null,(0,m.kt)("li",{parentName:"ul"},"\u5bf9\u6570\u62c9\u4f38\u53ef\u4ee5\u62c9\u4f38\u4f4e\u4eae\u5ea6\u533a\u57df\uff0c\u538b\u7f29\u9ad8\u4eae\u5ea6\u533a\u57df\u3002"),(0,m.kt)("li",{parentName:"ul"},"\u6307\u6570\u62c9\u4f38\u53ef\u4ee5\u62c9\u4f38\u9ad8\u4eae\u5ea6\u533a\u57df\uff0c\u538b\u7f29\u4f4e\u4eae\u5ea6\u533a\u57df\u3002")),(0,m.kt)("p",null,"\u6ce8\u610f\uff0c\u4e0a\u8ff0\u7684",(0,m.kt)("strong",{parentName:"p"},"\u62c9\u4f38"),"\u662f\u6307\u65b0\u7684\u56fe\u50cf\u5728\u8be5\u7070\u5ea6\u8303\u56f4\u5185\u5206\u5e03\u7684\u66f4\u5747\u5300\uff0c\u5373",(0,m.kt)("strong",{parentName:"p"},"\u51fa\u73b0\u7684\u7070\u5ea6\u7ea7\u66f4\u591a"),"\uff1b",(0,m.kt)("strong",{parentName:"p"},"\u538b\u7f29"),"\u7684\u610f\u4e49\u662f\u6307\u65b0\u7684\u56fe\u50cf\u5728\u8be5\u7070\u5ea6\u8303\u56f4\u5185\u5206\u5e03\u7684\u66f4\u72ed\u7a84\uff0c\u5373\u51fa\u73b0\u7684\u7070\u5ea6\u7ea7\u66f4\u5c11\u3002"),(0,m.kt)("p",null,"\u4f8b\u9898\uff1a"),(0,m.kt)("p",null,(0,m.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_imagesimage-20231204221520210.png",alt:"image-20231204221520210"})),(0,m.kt)("p",null,"\u7b54\uff1a\u8be5\u56fe\u50cf\u5b58\u5728\u8f83\u4eae\u7684\u95ee\u9898\uff0c\u7070\u5ea6\u76f4\u65b9\u56fe\u5206\u5e03\u5728\u8f83\u9ad8\u7684\u533a\u57df\u3002\u4ece\u76f4\u63a5\u7070\u5ea6\u53d8\u6362\u589e\u5f3a\u6cd5\u7684\u89d2\u5ea6\uff0c\u6211\u4eec\u53ef\u4ee5\u91c7\u7528\u6307\u6570\u51fd\u6570\u53d8\u6362\uff0c\u5bf9\u9ad8\u7070\u5ea6\u533a\u8fdb\u884c\u6269\u5c55\u3002"),(0,m.kt)("admonition",{type:"tip"},(0,m.kt)("p",{parentName:"admonition"},"\u5206\u6790\uff1a\u8be5\u56fe\u50cf\u4e2d\u6ca1\u6709\u4f4e\u7070\u5ea6\u7684\u50cf\u7d20\uff0c\u5168\u90e8\u96c6\u4e2d\u5728\u9ad8\u7070\u5ea6\u90e8\u5206\uff0c\u56e0\u6b64",(0,m.kt)("strong",{parentName:"p"},"\u4f7f\u7528\u6307\u6570\u51fd\u6570\u53d8\u6362\u5c06\u539f\u6765\u7684\u96c6\u4e2d\u7684\u9ad8\u7070\u5ea6\u533a\u57df\u8fdb\u884c\u62c9\u4f38\uff0c\u6269\u5c55\u5176\u7070\u5ea6\u5206\u5e03\u7684\u8303\u56f4"),"\uff0c\u4ece\u800c\u8d77\u5230\u589e\u5f3a\u6548\u679c\u3002")),(0,m.kt)("h3",{id:"\u76f4\u65b9\u56fe\u7070\u5ea6\u53d8\u6362"},"\u76f4\u65b9\u56fe\u7070\u5ea6\u53d8\u6362"),(0,m.kt)("h4",{id:"\u76f4\u65b9\u56fe\u5747\u8861\u5316"},"\u76f4\u65b9\u56fe\u5747\u8861\u5316"),(0,m.kt)("ul",null,(0,m.kt)("li",{parentName:"ul"},(0,m.kt)("p",{parentName:"li"},"\u76ee\u7684\uff1a"),(0,m.kt)("p",{parentName:"li"},"\u5c06\u4e00\u975e\u5747\u5300\u7070\u5ea6\u6982\u7387\u5bc6\u5ea6\u5206\u5e03\u7684\u56fe\u50cf\uff0c\u901a\u8fc7\u67d0\u79cd\u7070\u5ea6\u53d8\u6362\uff0c\u5c06\u5176\u53d8\u6210\u4e00\u5e45\u5177\u6709\u5747\u5300\u7070\u5ea6\u6982\u7387\u5bc6\u5ea6\u5206\u5e03\u7684\u76ee\u7684\u56fe\u50cf\u3002")),(0,m.kt)("li",{parentName:"ul"},(0,m.kt)("p",{parentName:"li"},"\u6b65\u9aa4\uff1a"),(0,m.kt)("ol",{parentName:"li"},(0,m.kt)("li",{parentName:"ol"},(0,m.kt)("p",{parentName:"li"},"\u6839\u636e\u539f\u59cb\u56fe\u50cf\u8ba1\u7b97\u539f\u59cb\u7070\u5ea6\u5bc6\u5ea6\u5206\u5e03\u51fd\u6570",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"r"),(0,m.kt)("mi",{parentName:"msub"},"k"))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"r_k")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.5806em",verticalAlign:"-0.15em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02778em"}},"r"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3361em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0278em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.03148em"}},"k")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))))))))),(0,m.kt)("li",{parentName:"ol"},(0,m.kt)("p",{parentName:"li"},"\u8ba1\u7b97\u53d8\u6362\u51fd\u6570\uff0c\u5373\u7d2f\u79ef\u5bc6\u5ea6\u5206\u5e03\u51fd\u6570",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"s"),(0,m.kt)("mi",{parentName:"msub"},"k"))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"s_k")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.5806em",verticalAlign:"-0.15em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"s"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3361em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.03148em"}},"k")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))))))))),(0,m.kt)("li",{parentName:"ol"},(0,m.kt)("p",{parentName:"li"},"\u8ba1\u7b97\u5747\u8861\u5316\u540e\u7684\u7070\u5ea6\u7ea7",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"s"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"k"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"s(k)")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"s"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03148em"}},"k"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"))))),"\uff0c\u5373\u4f7f\u7528\u4ee5\u4e0b\u516c\u5f0f\u8fdb\u884c\u5747\u8861\u5316\u6620\u5c04\uff1a"),(0,m.kt)("div",{parentName:"li",className:"math math-display"},(0,m.kt)("span",{parentName:"div",className:"katex-display"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mtable",{parentName:"semantics",width:"100%"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mrow",{parentName:"mtd"},(0,m.kt)("mi",{parentName:"mrow"},"s"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"k"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("mrow",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"mrow",mathvariant:"bold"},"c"),(0,m.kt)("mi",{parentName:"mrow",mathvariant:"bold"},"e"),(0,m.kt)("mi",{parentName:"mrow",mathvariant:"bold"},"i"),(0,m.kt)("mi",{parentName:"mrow",mathvariant:"bold"},"l")),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"s"),(0,m.kt)("mi",{parentName:"msub"},"k")),(0,m.kt)("mo",{parentName:"mrow"},"\xd7"),(0,m.kt)("mi",{parentName:"mrow"},"L"),(0,m.kt)("mo",{parentName:"mrow"},"\u2212"),(0,m.kt)("mn",{parentName:"mrow"},"1"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"))),(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mtext",{parentName:"mtd"},"(13)")))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"s(k)=\\mathbf{ceil}(s_k\\times L-1)\\tag{13}")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"s"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03148em"}},"k"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"="),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathbf"},"ceil")),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"s"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3361em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.03148em"}},"k")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"\xd7"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.7667em",verticalAlign:"-0.0833em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"L"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"\u2212"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"1"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")")),(0,m.kt)("span",{parentName:"span",className:"tag"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord text"},(0,m.kt)("span",{parentName:"span",className:"mord"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"13")),(0,m.kt)("span",{parentName:"span",className:"mord"},")"))))))),(0,m.kt)("p",{parentName:"li"},"\u5176\u4e2d\uff0c",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"L")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"L")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6833em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"L"))))),"\u662f\u539f\u76f4\u65b9\u56fe\u4e2d\u7070\u5ea6\u7ea7\u6570\u3002")),(0,m.kt)("li",{parentName:"ol"},(0,m.kt)("p",{parentName:"li"},"\u753b\u51fa\u6700\u7ec8\u5747\u8861\u5316\u540e\u7684\u76f4\u65b9\u56fe"))))),(0,m.kt)("p",null,"\u4f8b\u9898\uff1a"),(0,m.kt)("p",null,(0,m.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_imagesimage-20231204220310925.png",alt:"image-20231204220310925"})),(0,m.kt)("h4",{id:"\u76f4\u65b9\u56fe\u89c4\u5b9a\u5316"},"\u76f4\u65b9\u56fe\u89c4\u5b9a\u5316"),(0,m.kt)("ul",null,(0,m.kt)("li",{parentName:"ul"},(0,m.kt)("p",{parentName:"li"},"\u76ee\u7684\uff1a"),(0,m.kt)("p",{parentName:"li"},"\u8c03\u6574\u539f\u59cb\u56fe\u50cf\u7684\u76f4\u65b9\u56fe\u4f7f\u5176\u7b26\u5408\u67d0\u4e00\u89c4\u5b9a\u7684\u76f4\u65b9\u56fe\u7684\u8981\u6c42\u3002")),(0,m.kt)("li",{parentName:"ul"},(0,m.kt)("p",{parentName:"li"},"\u601d\u60f3\uff1a"),(0,m.kt)("p",{parentName:"li"},"\u5c06\u539f\u59cb\u56fe\u50cf\u548c\u89c4\u5b9a\u56fe\u50cf\u8fdb\u884c\u5747\u8861\u5316\u540e\uff0c\u4e8c\u8005\u7684\u7070\u5ea6\u6982\u7387\u5bc6\u5ea6\u5206\u5e03\u76f8\u540c\uff0c\u8fdb\u884c\u5bf9\u5e94\u6620\u5c04\u5373\u53ef\u3002")),(0,m.kt)("li",{parentName:"ul"},(0,m.kt)("p",{parentName:"li"},"\u6b65\u9aa4\uff1a"),(0,m.kt)("ol",{parentName:"li"},(0,m.kt)("li",{parentName:"ol"},"\u5bf9\u539f\u59cb\u56fe\u50cf\u8fdb\u884c\u5747\u8861\u5316\uff0c\u5f97\u5230\u6620\u5c04\u540e\u7684",(0,m.kt)("span",{parentName:"li",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"s"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"k"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"s(k)")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"s"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03148em"}},"k"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")")))))),(0,m.kt)("li",{parentName:"ol"},"\u5bf9\u89c4\u5b9a\u7684\u56fe\u50cf\u76f4\u65b9\u56fe\u8fdb\u884c\u5747\u8861\u5316\uff0c\u5f97\u5230\u6620\u5c04\u540e\u7684",(0,m.kt)("span",{parentName:"li",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"z"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"k"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"z(k)")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.04398em"}},"z"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03148em"}},"k"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")")))))),(0,m.kt)("li",{parentName:"ol"},"\u7531\u4e8e",(0,m.kt)("span",{parentName:"li",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"s"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"k"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"s(k)")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"s"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03148em"}},"k"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"))))),"\u548c",(0,m.kt)("span",{parentName:"li",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"z"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"k"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"z(k)")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.04398em"}},"z"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03148em"}},"k"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"))))),"\u90fd\u662f\u5f52\u4e00\u5316\u540e\u7684\u5747\u5300\u5206\u5e03\uff0c\u4f7f\u7528\u4e8c\u8005\u4e4b\u95f4\u7684\u5c31\u8fd1\u539f\u5219\u5c06",(0,m.kt)("span",{parentName:"li",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"s"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"k"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"s(k)")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"s"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03148em"}},"k"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"))))),"\u5bf9\u5e94\u5230\u7ed9\u51fa\u7684\u89c4\u5b9a\u76f4\u65b9\u56fe\u7684\u7070\u5ea6\u7ea7"),(0,m.kt)("li",{parentName:"ol"},"\u753b\u51fa\u89c4\u5b9a\u5316\u540e\u7684\u76f4\u65b9\u56fe"))),(0,m.kt)("li",{parentName:"ul"},(0,m.kt)("p",{parentName:"li"},"\u4f8b\u9898\uff1a"),(0,m.kt)("p",{parentName:"li"},(0,m.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_imagesimage-20231207100622160.png",alt:"image-20231207100622160"})),(0,m.kt)("p",{parentName:"li"},(0,m.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_imagesimage-20231207100636525.png",alt:"image-20231207100636525"})),(0,m.kt)("p",{parentName:"li"},(0,m.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_imagesimage-20231207100655656.png",alt:"image-20231207100655656"})),(0,m.kt)("p",{parentName:"li"},"\u6b64\u65f6\u5df2\u7ecf\u83b7\u5f97\u4e86\u539f\u59cb\u56fe\u50cf\u5747\u8861\u5316\u540e\u7684\u7070\u5ea6\u7ea7\u4e0e\u76ee\u6807\u89c4\u5b9a\u5316\u8f93\u51fa\u7684\u56fe\u50cf\u7684\u7070\u5ea6\u7ea7\u4e4b\u95f4\u7684\u6620\u5c04\u5173\u7cfb\uff0c\u6700\u540e\u4e00\u6b65\u6309\u7167",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"r"),(0,m.kt)("mi",{parentName:"msub"},"k"))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"r_k")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.5806em",verticalAlign:"-0.15em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02778em"}},"r"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3361em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0278em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.03148em"}},"k")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))))))),"\u753b\u51fa\u76ee\u6807\u89c4\u5b9a\u5316\u8f93\u51fa\u7684\u56fe\u50cf\u76f4\u65b9\u56fe\u5373\u53ef\u3002"))),(0,m.kt)("h3",{id:"\u7a7a\u57df\u6ee4\u6ce2\u589e\u5f3a"},"\u7a7a\u57df\u6ee4\u6ce2\u589e\u5f3a"),(0,m.kt)("p",null,"\u7a7a\u57df\u6ee4\u6ce2\u53ef\u4ee5\u6839\u636e\u4f5c\u7528\u5206\u4e3a\u5e73\u6ed1\u6ee4\u6ce2\u4ee5\u53ca\u9510\u5316\u6ee4\u6ce2\u3002"),(0,m.kt)("h4",{id:"\u5e73\u6ed1\u6ee4\u6ce2"},"\u5e73\u6ed1\u6ee4\u6ce2"),(0,m.kt)("admonition",{type:"important"},(0,m.kt)("p",{parentName:"admonition"},"\u566a\u58f0\u7684\u7279\u70b9\uff1a"),(0,m.kt)("ul",{parentName:"admonition"},(0,m.kt)("li",{parentName:"ul"},"\u968f\u673a\u6027"),(0,m.kt)("li",{parentName:"ul"},"\u53e0\u52a0\u6027"),(0,m.kt)("li",{parentName:"ul"},"\u566a\u58f0\u4e0e\u56fe\u50cf\u4e4b\u95f4\u5177\u6709\u76f8\u5173\u6027"))),(0,m.kt)("h5",{id:"\u7ebf\u6027\u5e73\u6ed1\u6ee4\u6ce2"},"\u7ebf\u6027\u5e73\u6ed1\u6ee4\u6ce2"),(0,m.kt)("ol",null,(0,m.kt)("li",{parentName:"ol"},"\u90bb\u57df\u5e73\u5747\u6ee4\u6ce2"),(0,m.kt)("li",{parentName:"ol"},"\u52a0\u6743\u5e73\u5747\u6ee4\u6ce2"),(0,m.kt)("li",{parentName:"ol"},"\u9ad8\u65af\u6ee4\u6ce2")),(0,m.kt)("h5",{id:"\u975e\u7ebf\u6027\u5e73\u6ed1\u6ee4\u6ce2"},"\u975e\u7ebf\u6027\u5e73\u6ed1\u6ee4\u6ce2"),(0,m.kt)("ol",null,(0,m.kt)("li",{parentName:"ol"},"\u4e2d\u503c\u6ee4\u6ce2"),(0,m.kt)("li",{parentName:"ol"},"\u6700\u5927\u503c\u6ee4\u6ce2"),(0,m.kt)("li",{parentName:"ol"},"\u6700\u5c0f\u503c\u6ee4\u6ce2")),(0,m.kt)("h4",{id:"\u9510\u5316\u6ee4\u6ce2"},"\u9510\u5316\u6ee4\u6ce2"),(0,m.kt)("p",null,"\u9510\u5316\u6ee4\u6ce2\u6d88\u9664\u6216\u51cf\u5f31\u56fe\u50cf\u7684\u4f4e\u9891\u5206\u91cf\u4ece\u800c\u589e\u5f3a\u56fe\u50cf\u4e2d\u7269\u4f53\u7684\u8fb9\u7f18\u8f6e\u5ed3\u4fe1\u606f\uff0c\u4f7f\u5f97\u9664\u8fb9\u7f18\u4ee5\u5916\u7684\u50cf\u7d20\u70b9\u7684\u7070\u5ea6\u503c\u8d8b\u5411\u4e8e\u96f6\u3002"),(0,m.kt)("ol",null,(0,m.kt)("li",{parentName:"ol"},"\u68af\u5ea6\u6cd5 "),(0,m.kt)("li",{parentName:"ol"},"\u62c9\u666e\u62c9\u65af\u7b97\u5b50\uff0c\u975e\u7ebf\u6027\u6ee4\u6ce2"),(0,m.kt)("li",{parentName:"ol"},"\u5b9a\u5411\u6ee4\u6ce2\uff1a\u68c0\u6d4b",(0,m.kt)("strong",{parentName:"li"},"\u7279\u5b9a\u65b9\u5411\u8fb9\u7f18"),"\u7684\u6ee4\u6ce2\uff0c\u901a\u5e38",(0,m.kt)("strong",{parentName:"li"},"\u5728\u6a21\u677f\u4e0a\u8868\u73b0\u4e3a\u5728\u8be5\u7279\u5b9a\u65b9\u5411\u4e0a\u6a21\u677f\u503c\u8f83\u5927"),"\u3002")),(0,m.kt)("p",null,"\u4e0b\u9762\u7684\u8868\u683c\u5c55\u793a\u4e86\u6c34\u5e73\u65b9\u5411\u7684\u5b9a\u5411\u9510\u5316\u6a21\u677f"),(0,m.kt)("table",null,(0,m.kt)("thead",{parentName:"table"},(0,m.kt)("tr",{parentName:"thead"},(0,m.kt)("th",{parentName:"tr",align:"center"},"-1"),(0,m.kt)("th",{parentName:"tr",align:"center"},"-1"),(0,m.kt)("th",{parentName:"tr",align:"center"},"-1"))),(0,m.kt)("tbody",{parentName:"table"},(0,m.kt)("tr",{parentName:"tbody"},(0,m.kt)("td",{parentName:"tr",align:"center"},"2"),(0,m.kt)("td",{parentName:"tr",align:"center"},"2"),(0,m.kt)("td",{parentName:"tr",align:"center"},"2")),(0,m.kt)("tr",{parentName:"tbody"},(0,m.kt)("td",{parentName:"tr",align:"center"},"-1"),(0,m.kt)("td",{parentName:"tr",align:"center"},"-1"),(0,m.kt)("td",{parentName:"tr",align:"center"},"-1")))),(0,m.kt)("p",null,"\u4e0b\u9762\u7684\u8868\u683c\u5c55\u793a\u4e86\u5bf9\u89d2\u65b9\u5411\u7684\u5b9a\u5411\u9510\u5316\u6a21\u677f"),(0,m.kt)("table",null,(0,m.kt)("thead",{parentName:"table"},(0,m.kt)("tr",{parentName:"thead"},(0,m.kt)("th",{parentName:"tr",align:"center"},"-1"),(0,m.kt)("th",{parentName:"tr",align:"center"},"2"),(0,m.kt)("th",{parentName:"tr",align:"center"},"-1"))),(0,m.kt)("tbody",{parentName:"table"},(0,m.kt)("tr",{parentName:"tbody"},(0,m.kt)("td",{parentName:"tr",align:"center"},"-1"),(0,m.kt)("td",{parentName:"tr",align:"center"},"2"),(0,m.kt)("td",{parentName:"tr",align:"center"},"-1")),(0,m.kt)("tr",{parentName:"tbody"},(0,m.kt)("td",{parentName:"tr",align:"center"},"-1"),(0,m.kt)("td",{parentName:"tr",align:"center"},"2"),(0,m.kt)("td",{parentName:"tr",align:"center"},"-1")))),(0,m.kt)("h2",{id:"\u7b2c6\u7ae0-\u56fe\u50cf\u9891\u57df\u589e\u5f3a"},"\u7b2c6\u7ae0 \u56fe\u50cf\u9891\u57df\u589e\u5f3a"),(0,m.kt)("p",null,"\u56fe\u50cf\u4ece\u7a7a\u57df\u53d8\u6362\u5230\u9891\u57df\u540e\uff0c",(0,m.kt)("strong",{parentName:"p"},"\u4f4e\u9891\u5206\u91cf\u5bf9\u5e94\u56fe\u50cf\u4e2d\u7070\u5ea6\u503c\u53d8\u5316\u7f13\u6162\u7684\u533a\u57df\uff0c\u53ef\u80fd\u662f\u56fe\u50cf\u7684\u80cc\u666f"),"\uff1b",(0,m.kt)("strong",{parentName:"p"},"\u9ad8\u9891\u5206\u91cf\u8868\u793a\u56fe\u50cf\u4e2d\u7070\u5ea6\u503c\u53d8\u5316\u8fc5\u901f\u7684\u533a\u57df\uff0c\u53ef\u80fd\u662f\u56fe\u50cf\u7684\u566a\u58f0\u6216\u7269\u4f53\u7684\u8fb9\u7f18"),"\u3002"),(0,m.kt)("p",null,"\u5728\u56fe\u50cf\u9891\u8c31\uff08\u7ecf\u8fc7\u4e2d\u5fc3\u504f\u79fb\u7684\uff09\u4e2d\uff0c",(0,m.kt)("strong",{parentName:"p"},"\u4e2d\u5fc3\u4ee3\u8868\u4f4e\u9891\u4fe1\u606f\uff0c\u56db\u5468\u4ee3\u8868\u9ad8\u9891\u4fe1\u606f"),"\u3002"),(0,m.kt)("h3",{id:"\u4f4e\u901a\u6ee4\u6ce2"},"\u4f4e\u901a\u6ee4\u6ce2"),(0,m.kt)("p",null,"\u6291\u5236\u3001\u8870\u51cf\u9ad8\u9891\u5206\u91cf\uff0c\u4fdd\u7559\u4f4e\u9891\u5206\u91cf\u3002"),(0,m.kt)("h4",{id:"\u7406\u60f3\u4f4e\u901a\u6ee4\u6ce2\u5668ilpf"},"\u7406\u60f3\u4f4e\u901a\u6ee4\u6ce2\u5668\uff08ILPF\uff09"),(0,m.kt)("admonition",{type:"tip"},(0,m.kt)("p",{parentName:"admonition"},"ILPF means Ideal Low Pass Filter.")),(0,m.kt)("p",null,(0,m.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_imagesimage-20231205161518110.png",alt:"image-20231205161518110"})),(0,m.kt)("div",{className:"math math-display"},(0,m.kt)("span",{parentName:"div",className:"katex-display"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mtable",{parentName:"semantics",width:"100%"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mrow",{parentName:"mtd"},(0,m.kt)("mi",{parentName:"mrow"},"H"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"u"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"v"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("mrow",{parentName:"mrow"},(0,m.kt)("mo",{parentName:"mrow",fence:"true"},"{"),(0,m.kt)("mtable",{parentName:"mrow",rowspacing:"0.36em",columnalign:"left left",columnspacing:"1em"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("mn",{parentName:"mstyle"},"1"))),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("mrow",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"mrow"},"D"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"u"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"v"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"\u2264"),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"D"),(0,m.kt)("mn",{parentName:"msub"},"0")))))),(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("mn",{parentName:"mstyle"},"0"))),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("mrow",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"mrow"},"D"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"u"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"v"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},">"),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"D"),(0,m.kt)("mn",{parentName:"msub"},"0")))))))))),(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mtext",{parentName:"mtd"},"(14)")))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"H(u,v)=\\begin{cases}1&D(u,v)\\leq D_0\\\\ 0&D(u,v)>D_0\\end{cases}\\tag{14}")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.08125em"}},"H"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"u"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"v"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"="),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"3em",verticalAlign:"-1.25em"}}),(0,m.kt)("span",{parentName:"span",className:"minner"},(0,m.kt)("span",{parentName:"span",className:"mopen delimcenter",style:{top:"0em"}},(0,m.kt)("span",{parentName:"span",className:"delimsizing size4"},"{")),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mtable"},(0,m.kt)("span",{parentName:"span",className:"col-align-l"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.69em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-3.69em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.008em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"1"))),(0,m.kt)("span",{parentName:"span",style:{top:"-2.25em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.008em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"0")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.19em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"arraycolsep",style:{width:"1em"}}),(0,m.kt)("span",{parentName:"span",className:"col-align-l"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.69em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-3.69em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.008em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02778em"}},"D"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"u"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"v"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"\u2264"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02778em"}},"D"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0278em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"0")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))))),(0,m.kt)("span",{parentName:"span",style:{top:"-2.25em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.008em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02778em"}},"D"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"u"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"v"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},">"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02778em"}},"D"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0278em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"0")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"}))))))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.19em"}},(0,m.kt)("span",{parentName:"span"}))))))),(0,m.kt)("span",{parentName:"span",className:"mclose nulldelimiter"}))),(0,m.kt)("span",{parentName:"span",className:"tag"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"3em",verticalAlign:"-1.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord text"},(0,m.kt)("span",{parentName:"span",className:"mord"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"14")),(0,m.kt)("span",{parentName:"span",className:"mord"},")"))))))),(0,m.kt)("div",{className:"math math-display"},(0,m.kt)("span",{parentName:"div",className:"katex-display"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mtable",{parentName:"semantics",width:"100%"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mrow",{parentName:"mtd"},(0,m.kt)("mi",{parentName:"mrow"},"D"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"u"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"v"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("msqrt",{parentName:"mrow"},(0,m.kt)("mrow",{parentName:"msqrt"},(0,m.kt)("msup",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msup"},"u"),(0,m.kt)("mn",{parentName:"msup"},"2")),(0,m.kt)("mo",{parentName:"mrow"},"+"),(0,m.kt)("msup",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msup"},"v"),(0,m.kt)("mn",{parentName:"msup"},"2")))))),(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mtext",{parentName:"mtd"},"(15)")))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"D(u,v)=\\sqrt{u^2+v^2}\\tag{15}")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02778em"}},"D"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"u"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"v"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"="),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1.24em",verticalAlign:"-0.1777em"}}),(0,m.kt)("span",{parentName:"span",className:"mord sqrt"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.0623em"}},(0,m.kt)("span",{parentName:"span",className:"svg-align",style:{top:"-3.2em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.2em"}}),(0,m.kt)("span",{parentName:"span",className:"mord",style:{paddingLeft:"1em"}},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"u"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.7401em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.989em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"2")))))))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"+"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"v"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.7401em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.989em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"2")))))))))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.0223em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.2em"}}),(0,m.kt)("span",{parentName:"span",className:"hide-tail",style:{minWidth:"1.02em",height:"1.28em"}},(0,m.kt)("svg",{parentName:"span",xmlns:"http://www.w3.org/2000/svg",width:"400em",height:"1.28em",viewBox:"0 0 400000 1296",preserveAspectRatio:"xMinYMin slice"},(0,m.kt)("path",{parentName:"svg",d:"M263,681c0.7,0,18,39.7,52,119\nc34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120\nc340,-704.7,510.7,-1060.3,512,-1067\nl0 -0\nc4.7,-7.3,11,-11,19,-11\nH40000v40H1012.3\ns-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232\nc-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1\ns-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26\nc-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z\nM1001 80h400000v40h-400000z"}))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.1777em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"tag"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1.3123em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord text"},(0,m.kt)("span",{parentName:"span",className:"mord"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"15")),(0,m.kt)("span",{parentName:"span",className:"mord"},")"))))))),(0,m.kt)("p",null,"\u5728\u622a\u6b62\u9891\u7387",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"D"),(0,m.kt)("mn",{parentName:"msub"},"0"))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"D_0")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.8333em",verticalAlign:"-0.15em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02778em"}},"D"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0278em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"0")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))))))),"\u5904\u5782\u76f4\u622a\u6b62\uff0c\u901a\u8fc7\u9891\u7387\u548c\u622a\u6b62\u9891\u7387\u5728",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"D"),(0,m.kt)("mn",{parentName:"msub"},"0"))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"D_0")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.8333em",verticalAlign:"-0.15em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02778em"}},"D"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0278em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"0")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))))))),"\u5904\u5177\u6709\u4e0d\u8fde\u7eed\u6027\uff0c\u901a\u5e26\u548c\u963b\u5e26\u4e4b\u95f4\u6ca1\u6709\u8fc7\u6e21\uff0c\u4f1a\u4ea7\u751f",(0,m.kt)("strong",{parentName:"p"},"\u65e0\u9650\u7684\u632f\u94c3"),"\u6548\u5e94\u3002"),(0,m.kt)("h4",{id:"\u5df4\u7279\u6c83\u65af\u4f4e\u901a\u6ee4\u6ce2\u5668blpf"},"\u5df4\u7279\u6c83\u65af\u4f4e\u901a\u6ee4\u6ce2\u5668\uff08BLPF\uff09"),(0,m.kt)("p",null,"\u901a\u5e26\u4e0e\u963b\u5e26\u4e4b\u95f4\u8fc7\u5ea6\u5e73\u5766\uff0c\u901a\u8fc7\u9891\u7387\u548c\u622a\u6b62\u9891\u7387\u4e4b\u95f4\u6ca1\u6709\u660e\u663e\u7684\u4e0d\u8fde\u7eed\u6027\uff0c",(0,m.kt)("strong",{parentName:"p"},"\u4e0d\u4f1a\u51fa\u73b0\u632f\u94c3\u6548\u5e94"),"\u3002"),(0,m.kt)("div",{className:"math math-display"},(0,m.kt)("span",{parentName:"div",className:"katex-display"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mtable",{parentName:"semantics",width:"100%"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mrow",{parentName:"mtd"},(0,m.kt)("mi",{parentName:"mrow"},"H"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"u"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"v"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("mfrac",{parentName:"mrow"},(0,m.kt)("mn",{parentName:"mfrac"},"1"),(0,m.kt)("mrow",{parentName:"mfrac"},(0,m.kt)("mn",{parentName:"mrow"},"1"),(0,m.kt)("mo",{parentName:"mrow"},"+"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("msqrt",{parentName:"mrow"},(0,m.kt)("mn",{parentName:"msqrt"},"2")),(0,m.kt)("mo",{parentName:"mrow"},"\u2212"),(0,m.kt)("mn",{parentName:"mrow"},"1"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"["),(0,m.kt)("mfrac",{parentName:"mrow"},(0,m.kt)("mrow",{parentName:"mfrac"},(0,m.kt)("mi",{parentName:"mrow"},"D"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"u"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"v"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,m.kt)("msub",{parentName:"mfrac"},(0,m.kt)("mi",{parentName:"msub"},"D"),(0,m.kt)("mn",{parentName:"msub"},"0"))),(0,m.kt)("msup",{parentName:"mrow"},(0,m.kt)("mo",{parentName:"msup",stretchy:"false"},"]"),(0,m.kt)("mrow",{parentName:"msup"},(0,m.kt)("mn",{parentName:"mrow"},"2"),(0,m.kt)("mi",{parentName:"mrow"},"n"))))))),(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mtext",{parentName:"mtd"},"(16)")))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"H(u,v)=\\frac{1}{1+(\\sqrt{2}-1)[\\frac{D(u,v)}{D_0}]^{2n}}\\tag{16}")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.08125em"}},"H"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"u"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"v"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"="),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"2.6665em",verticalAlign:"-1.3451em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mopen nulldelimiter"}),(0,m.kt)("span",{parentName:"span",className:"mfrac"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.3214em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.11em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.01em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"1"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"+"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord sqrt"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.9072em"}},(0,m.kt)("span",{parentName:"span",className:"svg-align",style:{top:"-3em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord",style:{paddingLeft:"0.833em"}},(0,m.kt)("span",{parentName:"span",className:"mord"},"2"))),(0,m.kt)("span",{parentName:"span",style:{top:"-2.8672em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"hide-tail",style:{minWidth:"0.853em",height:"1.08em"}},(0,m.kt)("svg",{parentName:"span",xmlns:"http://www.w3.org/2000/svg",width:"400em",height:"1.08em",viewBox:"0 0 400000 1080",preserveAspectRatio:"xMinYMin slice"},(0,m.kt)("path",{parentName:"svg",d:"M95,702\nc-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14\nc0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54\nc44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10\ns173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429\nc69,-144,104.5,-217.7,106.5,-221\nl0 -0\nc5.3,-9.3,12,-14,20,-14\nH400000v40H845.2724\ns-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7\nc-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z\nM834 80h400000v40h-400000z"}))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.1328em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"\u2212"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"1"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"["),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mopen nulldelimiter"}),(0,m.kt)("span",{parentName:"span",className:"mfrac"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.01em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.655em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.02778em"}},"D"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3173em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.357em",marginLeft:"-0.0278em",marginRight:"0.0714em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.5em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size3 size1 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"0")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.143em"}},(0,m.kt)("span",{parentName:"span"}))))))))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.23em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"frac-line",style:{borderBottomWidth:"0.04em"}})),(0,m.kt)("span",{parentName:"span",style:{top:"-3.485em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.02778em"}},"D"),(0,m.kt)("span",{parentName:"span",className:"mopen mtight"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"u"),(0,m.kt)("span",{parentName:"span",className:"mpunct mtight"},","),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.03588em"}},"v"),(0,m.kt)("span",{parentName:"span",className:"mclose mtight"},")"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.4451em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"mclose nulldelimiter"})),(0,m.kt)("span",{parentName:"span",className:"mclose"},(0,m.kt)("span",{parentName:"span",className:"mclose"},"]"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.7401em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.989em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"2"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"n"))))))))))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.24em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.01em"}}),(0,m.kt)("span",{parentName:"span",className:"frac-line",style:{borderBottomWidth:"0.04em"}})),(0,m.kt)("span",{parentName:"span",style:{top:"-3.687em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.01em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"1")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.3451em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"mclose nulldelimiter"}))),(0,m.kt)("span",{parentName:"span",className:"tag"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"2.6665em",verticalAlign:"-1.3451em"}}),(0,m.kt)("span",{parentName:"span",className:"mord text"},(0,m.kt)("span",{parentName:"span",className:"mord"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"16")),(0,m.kt)("span",{parentName:"span",className:"mord"},")"))))))),(0,m.kt)("p",null,"\u5176\u4e2d\uff0c\u53d6",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"H"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"u"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"v"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"H(u,v)")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.08125em"}},"H"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"u"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"v"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"))))),"\u4e0b\u964d\u5230\u6700\u5927\u503c\u76840.707\u65f6\u7684",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"D"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"u"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"v"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"D(u,v)")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02778em"}},"D"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"u"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"v"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"))))),"\u4f5c\u4e3a\u622a\u6b62\u9891\u7387",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"D"),(0,m.kt)("mn",{parentName:"msub"},"0"))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"D_0")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.8333em",verticalAlign:"-0.15em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02778em"}},"D"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0278em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"0")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))))))),"\u3002"),(0,m.kt)("p",null,"\u5373\u5f53",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"D"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"u"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"v"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"D(u,v)")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02778em"}},"D"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"u"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"v"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"))))),"\u8fbe\u5230\u622a\u6b62\u9891\u7387\u65f6\uff0c",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mfrac",{parentName:"mrow"},(0,m.kt)("mrow",{parentName:"mfrac"},(0,m.kt)("mi",{parentName:"mrow"},"D"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"u"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"v"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,m.kt)("msub",{parentName:"mfrac"},(0,m.kt)("mi",{parentName:"msub"},"D"),(0,m.kt)("mn",{parentName:"msub"},"0"))),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("mn",{parentName:"mrow"},"1")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"\\frac{D(u,v)}{D_0}=1")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1.4551em",verticalAlign:"-0.4451em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mopen nulldelimiter"}),(0,m.kt)("span",{parentName:"span",className:"mfrac"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.01em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.655em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.02778em"}},"D"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3173em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.357em",marginLeft:"-0.0278em",marginRight:"0.0714em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.5em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size3 size1 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"0")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.143em"}},(0,m.kt)("span",{parentName:"span"}))))))))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.23em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"frac-line",style:{borderBottomWidth:"0.04em"}})),(0,m.kt)("span",{parentName:"span",style:{top:"-3.485em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.02778em"}},"D"),(0,m.kt)("span",{parentName:"span",className:"mopen mtight"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"u"),(0,m.kt)("span",{parentName:"span",className:"mpunct mtight"},","),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.03588em"}},"v"),(0,m.kt)("span",{parentName:"span",className:"mclose mtight"},")"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.4451em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"mclose nulldelimiter"})),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"="),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6444em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"1"))))),"\uff0c\u6b64\u65f6",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"H"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"u"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"v"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("mn",{parentName:"mrow"},"0.707")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"H(u,v)=0.707")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.08125em"}},"H"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"u"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"v"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"="),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6444em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"0.707"))))),"\u3002"),(0,m.kt)("h4",{id:"\u6307\u6570\u4f4e\u901a\u6ee4\u6ce2\u5668elpf"},"\u6307\u6570\u4f4e\u901a\u6ee4\u6ce2\u5668\uff08ELPF\uff09"),(0,m.kt)("p",null,"\u4e00\u822c\u60c5\u51b5\u4e0b\uff0c\u53d6",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"H"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"u"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"v"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"H(u,v)")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.08125em"}},"H"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"u"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"v"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"))))),"\u4e0b\u964d\u5230\u6700\u5927\u503c\u76841/2\u65f6\u7684",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"D"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"u"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"v"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"D(u,v)")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02778em"}},"D"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"u"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"v"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"))))),"\u4f5c\u4e3a\u622a\u6b62\u9891\u7387\u3002"),(0,m.kt)("div",{className:"math math-display"},(0,m.kt)("span",{parentName:"div",className:"katex-display"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mtable",{parentName:"semantics",width:"100%"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mrow",{parentName:"mtd"},(0,m.kt)("mi",{parentName:"mrow"},"H"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"u"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"v"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("msup",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msup"},"e"),(0,m.kt)("mrow",{parentName:"msup"},(0,m.kt)("mo",{parentName:"mrow"},"\u2212"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"["),(0,m.kt)("mfrac",{parentName:"mrow"},(0,m.kt)("mrow",{parentName:"mfrac"},(0,m.kt)("mi",{parentName:"mrow"},"D"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"u"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"v"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,m.kt)("msub",{parentName:"mfrac"},(0,m.kt)("mi",{parentName:"msub"},"D"),(0,m.kt)("mn",{parentName:"msub"},"0"))),(0,m.kt)("msup",{parentName:"mrow"},(0,m.kt)("mo",{parentName:"msup",stretchy:"false"},"]"),(0,m.kt)("mi",{parentName:"msup"},"n")))))),(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mtext",{parentName:"mtd"},"(17)")))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"H(u,v)=e^{-[\\frac{D(u,v)}{D_0}]^n}\\tag{17}")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.08125em"}},"H"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"u"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"v"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"="),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1.2248em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"e"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.2248em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-3.4984em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"\u2212"),(0,m.kt)("span",{parentName:"span",className:"mopen mtight"},"["),(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mopen nulldelimiter sizing reset-size3 size6"}),(0,m.kt)("span",{parentName:"span",className:"mfrac"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.0378em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.656em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size3 size1 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.02778em"}},"D"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3448em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.3448em",marginLeft:"-0.0278em",marginRight:"0.1em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.6444em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"0"))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.2996em"}},(0,m.kt)("span",{parentName:"span"}))))))))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.2255em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"frac-line mtight",style:{borderBottomWidth:"0.049em"}})),(0,m.kt)("span",{parentName:"span",style:{top:"-3.5021em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size3 size1 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.02778em"}},"D"),(0,m.kt)("span",{parentName:"span",className:"mopen mtight"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"u"),(0,m.kt)("span",{parentName:"span",className:"mpunct mtight"},","),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.03588em"}},"v"),(0,m.kt)("span",{parentName:"span",className:"mclose mtight"},")"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.558em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"mclose nulldelimiter sizing reset-size3 size6"})),(0,m.kt)("span",{parentName:"span",className:"mclose mtight"},(0,m.kt)("span",{parentName:"span",className:"mclose mtight"},"]"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.7385em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.931em",marginRight:"0.0714em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.5em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size3 size1 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"n"))))))))))))))))),(0,m.kt)("span",{parentName:"span",className:"tag"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1.4748em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord text"},(0,m.kt)("span",{parentName:"span",className:"mord"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"17")),(0,m.kt)("span",{parentName:"span",className:"mord"},")"))))))),(0,m.kt)("p",null,"\u622a\u6b62\u9891\u7387\u548c\u901a\u8fc7\u9891\u7387\u4e4b\u95f4\u5177\u6709\u66f4\u5149\u6ed1\u7684\u8fc7\u6e21\uff0c",(0,m.kt)("strong",{parentName:"p"},"\u6ca1\u6709\u632f\u94c3\u73b0\u8c61"),"\u3002\u4e14\u6307\u6570\u4f4e\u901a\u6ee4\u6ce2\u5668\u6bd4\u5df4\u7279\u6c83\u65af\u4f4e\u901a\u6ee4\u6ce2\u5668",(0,m.kt)("strong",{parentName:"p"},"\u8870\u51cf\u66f4\u5feb"),"\uff0c\u5904\u7406\u540e\u7684\u56fe\u50cf",(0,m.kt)("strong",{parentName:"p"},"\u66f4\u6a21\u7cca"),"\u3002"),(0,m.kt)("h4",{id:"\u68af\u5f62\u4f4e\u901a\u6ee4\u6ce2\u5668tlpf"},"\u68af\u5f62\u4f4e\u901a\u6ee4\u6ce2\u5668\uff08TLPF\uff09"),(0,m.kt)("p",null,"\u7531\u4e8e\u5728",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"D"),(0,m.kt)("mn",{parentName:"msub"},"0"))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"D_0")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.8333em",verticalAlign:"-0.15em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02778em"}},"D"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0278em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"0")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))))))),"\u5c3e\u90e8\u5305\u542b\u9ad8\u9891\u5206\u91cf",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"D"),(0,m.kt)("mn",{parentName:"msub"},"1"))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"D_1")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.8333em",verticalAlign:"-0.15em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02778em"}},"D"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0278em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"1")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))))))),"\uff0c\u5904\u7406\u540e\u56fe\u50cf\u7684\u6e05\u6670\u5ea6\u8f83\u7406\u60f3\u4f4e\u901a\u6ee4\u6ce2\u5668\u6709\u6240\u6539\u5584\uff0c\u4f46",(0,m.kt)("strong",{parentName:"p"},"\u4f1a\u51fa\u73b0\u632f\u94c3\u6548\u5e94"),"\uff0c"),(0,m.kt)("div",{className:"math math-display"},(0,m.kt)("span",{parentName:"div",className:"katex-display"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mtable",{parentName:"semantics",width:"100%"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mrow",{parentName:"mtd"},(0,m.kt)("mi",{parentName:"mrow"},"H"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"u"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"v"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("mrow",{parentName:"mrow"},(0,m.kt)("mo",{parentName:"mrow",fence:"true"},"{"),(0,m.kt)("mtable",{parentName:"mrow",rowspacing:"0.36em",columnalign:"left left",columnspacing:"1em"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("mn",{parentName:"mstyle"},"1"))),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("mrow",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"mrow"},"D"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"u"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"v"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"<"),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"D"),(0,m.kt)("mn",{parentName:"msub"},"0")))))),(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("mrow",{parentName:"mstyle"})))),(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("mfrac",{parentName:"mstyle"},(0,m.kt)("mrow",{parentName:"mfrac"},(0,m.kt)("mi",{parentName:"mrow"},"D"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"u"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"v"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"\u2212"),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"D"),(0,m.kt)("mn",{parentName:"msub"},"1"))),(0,m.kt)("mrow",{parentName:"mfrac"},(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"D"),(0,m.kt)("mn",{parentName:"msub"},"0")),(0,m.kt)("mo",{parentName:"mrow"},"\u2212"),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"D"),(0,m.kt)("mn",{parentName:"msub"},"1")))))),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("mrow",{parentName:"mstyle"},(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"D"),(0,m.kt)("mn",{parentName:"msub"},"0")),(0,m.kt)("mo",{parentName:"mrow"},"\u2264"),(0,m.kt)("mi",{parentName:"mrow"},"D"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"u"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"v"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"\u2264"),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"D"),(0,m.kt)("mn",{parentName:"msub"},"1")))))),(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("mrow",{parentName:"mstyle"})))),(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("mn",{parentName:"mstyle"},"0"))),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("mrow",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"mrow"},"D"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"u"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"v"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},">"),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"D"),(0,m.kt)("mn",{parentName:"msub"},"1")))))))))),(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mtext",{parentName:"mtd"},"(18)")))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"H(u,v)=\\begin{cases}1&D(u,v)<D_0\\\\ \\\\ \\frac{D(u,v)-D_1}{D_0-D_1}&D_0\\leq D(u,v)\\leq D_1\\\\ \\\\ 0&D(u,v)>D_1\\end{cases}\\tag{18}")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.08125em"}},"H"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"u"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"v"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"="),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"7.2151em",verticalAlign:"-3.3576em"}}),(0,m.kt)("span",{parentName:"span",className:"minner"},(0,m.kt)("span",{parentName:"span",className:"mopen"},(0,m.kt)("span",{parentName:"span",className:"delimsizing mult"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"3.85em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-1.366em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.816em"}}),(0,m.kt)("span",{parentName:"span",className:"delimsizinginner delim-size4"},(0,m.kt)("span",{parentName:"span"},"\u23a9"))),(0,m.kt)("span",{parentName:"span",style:{top:"-1.358em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.816em"}}),(0,m.kt)("span",{parentName:"span",style:{height:"1.816em",width:"0.8889em"}},(0,m.kt)("svg",{parentName:"span",xmlns:"http://www.w3.org/2000/svg",width:"0.8889em",height:"1.816em",style:{width:"0.8889em"},viewBox:"0 0 888.89 1816",preserveAspectRatio:"xMinYMin"},(0,m.kt)("path",{parentName:"svg",d:"M384 0 H504 V1816 H384z M384 0 H504 V1816 H384z"})))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.816em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.816em"}}),(0,m.kt)("span",{parentName:"span",className:"delimsizinginner delim-size4"},(0,m.kt)("span",{parentName:"span"},"\u23a8"))),(0,m.kt)("span",{parentName:"span",style:{top:"-4.958em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.816em"}}),(0,m.kt)("span",{parentName:"span",style:{height:"1.816em",width:"0.8889em"}},(0,m.kt)("svg",{parentName:"span",xmlns:"http://www.w3.org/2000/svg",width:"0.8889em",height:"1.816em",style:{width:"0.8889em"},viewBox:"0 0 888.89 1816",preserveAspectRatio:"xMinYMin"},(0,m.kt)("path",{parentName:"svg",d:"M384 0 H504 V1816 H384z M384 0 H504 V1816 H384z"})))),(0,m.kt)("span",{parentName:"span",style:{top:"-6.766em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.816em"}}),(0,m.kt)("span",{parentName:"span",className:"delimsizinginner delim-size4"},(0,m.kt)("span",{parentName:"span"},"\u23a7")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"3.35em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mtable"},(0,m.kt)("span",{parentName:"span",className:"col-align-l"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"3.8576em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-5.8596em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.01em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"1"))),(0,m.kt)("span",{parentName:"span",style:{top:"-4.4196em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.01em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"})),(0,m.kt)("span",{parentName:"span",style:{top:"-2.9776em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.01em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mopen nulldelimiter"}),(0,m.kt)("span",{parentName:"span",className:"mfrac"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.01em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.655em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.02778em"}},"D"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3173em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.357em",marginLeft:"-0.0278em",marginRight:"0.0714em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.5em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size3 size1 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"0")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.143em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mbin mtight"},"\u2212"),(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.02778em"}},"D"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3173em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.357em",marginLeft:"-0.0278em",marginRight:"0.0714em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.5em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size3 size1 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"1")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.143em"}},(0,m.kt)("span",{parentName:"span"}))))))))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.23em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"frac-line",style:{borderBottomWidth:"0.04em"}})),(0,m.kt)("span",{parentName:"span",style:{top:"-3.485em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.02778em"}},"D"),(0,m.kt)("span",{parentName:"span",className:"mopen mtight"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"u"),(0,m.kt)("span",{parentName:"span",className:"mpunct mtight"},","),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.03588em"}},"v"),(0,m.kt)("span",{parentName:"span",className:"mclose mtight"},")"),(0,m.kt)("span",{parentName:"span",className:"mbin mtight"},"\u2212"),(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.02778em"}},"D"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3173em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.357em",marginLeft:"-0.0278em",marginRight:"0.0714em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.5em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size3 size1 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"1")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.143em"}},(0,m.kt)("span",{parentName:"span"})))))))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.4451em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"mclose nulldelimiter"})))),(0,m.kt)("span",{parentName:"span",style:{top:"-1.5245em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.01em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"})),(0,m.kt)("span",{parentName:"span",style:{top:"-0.0845em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.01em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"0")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"3.3575em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"arraycolsep",style:{width:"1em"}}),(0,m.kt)("span",{parentName:"span",className:"col-align-l"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"3.8576em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-5.8596em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.01em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02778em"}},"D"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"u"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"v"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"<"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02778em"}},"D"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0278em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"0")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))))),(0,m.kt)("span",{parentName:"span",style:{top:"-2.9776em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.01em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02778em"}},"D"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0278em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"0")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"\u2264"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02778em"}},"D"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"u"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"v"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"\u2264"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02778em"}},"D"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0278em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"1")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))))),(0,m.kt)("span",{parentName:"span",style:{top:"-0.0844em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.01em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02778em"}},"D"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"u"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"v"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},">"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02778em"}},"D"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0278em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"1")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"}))))))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"3.3576em"}},(0,m.kt)("span",{parentName:"span"}))))))),(0,m.kt)("span",{parentName:"span",className:"mclose nulldelimiter"}))),(0,m.kt)("span",{parentName:"span",className:"tag"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"7.2151em",verticalAlign:"-3.3576em"}}),(0,m.kt)("span",{parentName:"span",className:"mord text"},(0,m.kt)("span",{parentName:"span",className:"mord"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"18")),(0,m.kt)("span",{parentName:"span",className:"mord"},")"))))))),(0,m.kt)("h3",{id:"\u9ad8\u901a\u6ee4\u6ce2"},"\u9ad8\u901a\u6ee4\u6ce2"),(0,m.kt)("p",null,"\u6291\u5236\u4f4e\u9891\u5206\u91cf\uff0c\u4fdd\u7559\u9ad8\u9891\u5206\u91cf\u3002"),(0,m.kt)("h4",{id:"\u7406\u60f3\u9ad8\u901a\u6ee4\u6ce2\u5668ihpf"},"\u7406\u60f3\u9ad8\u901a\u6ee4\u6ce2\u5668\uff08IHPF\uff09"),(0,m.kt)("div",{className:"math math-display"},(0,m.kt)("span",{parentName:"div",className:"katex-display"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mtable",{parentName:"semantics",width:"100%"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mrow",{parentName:"mtd"},(0,m.kt)("mi",{parentName:"mrow"},"H"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"u"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"v"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("mrow",{parentName:"mrow"},(0,m.kt)("mo",{parentName:"mrow",fence:"true"},"{"),(0,m.kt)("mtable",{parentName:"mrow",rowspacing:"0.36em",columnalign:"left left",columnspacing:"1em"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("mn",{parentName:"mstyle"},"1"))),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("mrow",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"mrow"},"D"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"u"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"v"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},">"),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"D"),(0,m.kt)("mn",{parentName:"msub"},"0")))))),(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("mn",{parentName:"mstyle"},"0"))),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("mrow",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"mrow"},"D"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"u"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"v"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"\u2264"),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"D"),(0,m.kt)("mn",{parentName:"msub"},"0")))))))))),(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mtext",{parentName:"mtd"},"(19)")))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"H(u,v)=\\begin{cases}1&D(u,v)>D_0\\\\ 0&D(u,v)\\leq D_0\\end{cases}\\tag{19}")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.08125em"}},"H"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"u"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"v"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"="),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"3em",verticalAlign:"-1.25em"}}),(0,m.kt)("span",{parentName:"span",className:"minner"},(0,m.kt)("span",{parentName:"span",className:"mopen delimcenter",style:{top:"0em"}},(0,m.kt)("span",{parentName:"span",className:"delimsizing size4"},"{")),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mtable"},(0,m.kt)("span",{parentName:"span",className:"col-align-l"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.69em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-3.69em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.008em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"1"))),(0,m.kt)("span",{parentName:"span",style:{top:"-2.25em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.008em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"0")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.19em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"arraycolsep",style:{width:"1em"}}),(0,m.kt)("span",{parentName:"span",className:"col-align-l"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.69em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-3.69em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.008em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02778em"}},"D"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"u"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"v"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},">"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02778em"}},"D"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0278em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"0")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))))),(0,m.kt)("span",{parentName:"span",style:{top:"-2.25em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.008em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02778em"}},"D"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"u"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"v"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"\u2264"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02778em"}},"D"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0278em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"0")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"}))))))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.19em"}},(0,m.kt)("span",{parentName:"span"}))))))),(0,m.kt)("span",{parentName:"span",className:"mclose nulldelimiter"}))),(0,m.kt)("span",{parentName:"span",className:"tag"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"3em",verticalAlign:"-1.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord text"},(0,m.kt)("span",{parentName:"span",className:"mord"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"19")),(0,m.kt)("span",{parentName:"span",className:"mord"},")"))))))),(0,m.kt)("p",null,"\u6027\u8d28\u4e0e\u7406\u60f3\u4f4e\u901a\u6ee4\u6ce2\u5668\u4e00\u6837\uff0c\u5782\u76f4\u622a\u65ad\uff0c\u5177\u6709",(0,m.kt)("strong",{parentName:"p"},"\u65e0\u9650\u632f\u94c3"),"\u6548\u5e94\u3002"),(0,m.kt)("h4",{id:"\u5df4\u7279\u6c83\u65af\u9ad8\u901a\u6ee4\u6ce2\u5668bhpf"},"\u5df4\u7279\u6c83\u65af\u9ad8\u901a\u6ee4\u6ce2\u5668\uff08BHPF\uff09"),(0,m.kt)("div",{className:"math math-display"},(0,m.kt)("span",{parentName:"div",className:"katex-display"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mtable",{parentName:"semantics",width:"100%"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mrow",{parentName:"mtd"},(0,m.kt)("mi",{parentName:"mrow"},"H"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"u"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"v"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("mfrac",{parentName:"mrow"},(0,m.kt)("mn",{parentName:"mfrac"},"1"),(0,m.kt)("mrow",{parentName:"mfrac"},(0,m.kt)("mn",{parentName:"mrow"},"1"),(0,m.kt)("mo",{parentName:"mrow"},"+"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("msqrt",{parentName:"mrow"},(0,m.kt)("mn",{parentName:"msqrt"},"2")),(0,m.kt)("mo",{parentName:"mrow"},"\u2212"),(0,m.kt)("mn",{parentName:"mrow"},"1"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"["),(0,m.kt)("mfrac",{parentName:"mrow"},(0,m.kt)("msub",{parentName:"mfrac"},(0,m.kt)("mi",{parentName:"msub"},"D"),(0,m.kt)("mn",{parentName:"msub"},"0")),(0,m.kt)("mrow",{parentName:"mfrac"},(0,m.kt)("mi",{parentName:"mrow"},"D"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"u"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"v"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"))),(0,m.kt)("msup",{parentName:"mrow"},(0,m.kt)("mo",{parentName:"msup",stretchy:"false"},"]"),(0,m.kt)("mrow",{parentName:"msup"},(0,m.kt)("mn",{parentName:"mrow"},"2"),(0,m.kt)("mi",{parentName:"mrow"},"n"))))))),(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mtext",{parentName:"mtd"},"(20)")))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"H(u,v)=\\frac{1}{1+(\\sqrt{2}-1)[\\frac{D_0}{D(u,v)}]^{2n}}\\tag{20}")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.08125em"}},"H"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"u"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"v"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"="),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"2.6387em",verticalAlign:"-1.3172em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mopen nulldelimiter"}),(0,m.kt)("span",{parentName:"span",className:"mfrac"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.3214em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.2028em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"1"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"+"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord sqrt"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.9072em"}},(0,m.kt)("span",{parentName:"span",className:"svg-align",style:{top:"-3em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord",style:{paddingLeft:"0.833em"}},(0,m.kt)("span",{parentName:"span",className:"mord"},"2"))),(0,m.kt)("span",{parentName:"span",style:{top:"-2.8672em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"hide-tail",style:{minWidth:"0.853em",height:"1.08em"}},(0,m.kt)("svg",{parentName:"span",xmlns:"http://www.w3.org/2000/svg",width:"400em",height:"1.08em",viewBox:"0 0 400000 1080",preserveAspectRatio:"xMinYMin slice"},(0,m.kt)("path",{parentName:"svg",d:"M95,702\nc-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14\nc0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54\nc44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10\ns173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429\nc69,-144,104.5,-217.7,106.5,-221\nl0 -0\nc5.3,-9.3,12,-14,20,-14\nH400000v40H845.2724\ns-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7\nc-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z\nM834 80h400000v40h-400000z"}))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.1328em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"\u2212"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"1"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"["),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mopen nulldelimiter"}),(0,m.kt)("span",{parentName:"span",className:"mfrac"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.8884em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.655em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.02778em"}},"D"),(0,m.kt)("span",{parentName:"span",className:"mopen mtight"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"u"),(0,m.kt)("span",{parentName:"span",className:"mpunct mtight"},","),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.03588em"}},"v"),(0,m.kt)("span",{parentName:"span",className:"mclose mtight"},")")))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.23em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"frac-line",style:{borderBottomWidth:"0.04em"}})),(0,m.kt)("span",{parentName:"span",style:{top:"-3.4101em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.02778em"}},"D"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3173em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.357em",marginLeft:"-0.0278em",marginRight:"0.0714em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.5em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size3 size1 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"0")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.143em"}},(0,m.kt)("span",{parentName:"span"})))))))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.52em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"mclose nulldelimiter"})),(0,m.kt)("span",{parentName:"span",className:"mclose"},(0,m.kt)("span",{parentName:"span",className:"mclose"},"]"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.7401em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.989em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"2"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"n"))))))))))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.23em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"frac-line",style:{borderBottomWidth:"0.04em"}})),(0,m.kt)("span",{parentName:"span",style:{top:"-3.677em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"1")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.3172em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"mclose nulldelimiter"}))),(0,m.kt)("span",{parentName:"span",className:"tag"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"2.6387em",verticalAlign:"-1.3172em"}}),(0,m.kt)("span",{parentName:"span",className:"mord text"},(0,m.kt)("span",{parentName:"span",className:"mord"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"20")),(0,m.kt)("span",{parentName:"span",className:"mord"},")"))))))),(0,m.kt)("p",null,"\u901a\u5e38\u91c7\u53d6",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"H"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"u"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"v"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"H(u,v)")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.08125em"}},"H"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"u"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"v"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"))))),"\u4e0b\u964d\u5230\u6700\u5927\u503c\u76840.707\u65f6\u7684",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"D"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"u"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"v"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"D(u,v)")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02778em"}},"D"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"u"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"v"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"))))),"\u4f5c\u4e3a\u622a\u6b62\u9891\u7387\uff0c",(0,m.kt)("strong",{parentName:"p"},"\u6ca1\u6709\u632f\u94c3\u6548\u5e94"),"\u3002"),(0,m.kt)("h4",{id:"\u6307\u6570\u9ad8\u901a\u6ee4\u6ce2\u5668ehpf"},"\u6307\u6570\u9ad8\u901a\u6ee4\u6ce2\u5668\uff08EHPF\uff09"),(0,m.kt)("div",{className:"math math-display"},(0,m.kt)("span",{parentName:"div",className:"katex-display"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mtable",{parentName:"semantics",width:"100%"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mrow",{parentName:"mtd"},(0,m.kt)("mi",{parentName:"mrow"},"H"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"u"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"v"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("msup",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msup"},"e"),(0,m.kt)("mrow",{parentName:"msup"},(0,m.kt)("mo",{parentName:"mrow"},"\u2212"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"["),(0,m.kt)("mfrac",{parentName:"mrow"},(0,m.kt)("msub",{parentName:"mfrac"},(0,m.kt)("mi",{parentName:"msub"},"D"),(0,m.kt)("mn",{parentName:"msub"},"0")),(0,m.kt)("mrow",{parentName:"mfrac"},(0,m.kt)("mi",{parentName:"mrow"},"D"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"u"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"v"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"))),(0,m.kt)("msup",{parentName:"mrow"},(0,m.kt)("mo",{parentName:"msup",stretchy:"false"},"]"),(0,m.kt)("mi",{parentName:"msup"},"n")))))),(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mtext",{parentName:"mtd"},"(21)")))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"H(u,v)=e^{-[\\frac{D_0}{D(u,v)}]^n}\\tag{21}")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.08125em"}},"H"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"u"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"v"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"="),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1.2021em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"e"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.2021em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-3.4842em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"\u2212"),(0,m.kt)("span",{parentName:"span",className:"mopen mtight"},"["),(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mopen nulldelimiter sizing reset-size3 size6"}),(0,m.kt)("span",{parentName:"span",className:"mfrac"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.0256em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.6408em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size3 size1 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.02778em"}},"D"),(0,m.kt)("span",{parentName:"span",className:"mopen mtight"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"u"),(0,m.kt)("span",{parentName:"span",className:"mpunct mtight"},","),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.03588em"}},"v"),(0,m.kt)("span",{parentName:"span",className:"mclose mtight"},")")))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.2255em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"frac-line mtight",style:{borderBottomWidth:"0.049em"}})),(0,m.kt)("span",{parentName:"span",style:{top:"-3.5375em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size3 size1 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.02778em"}},"D"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3448em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.3448em",marginLeft:"-0.0278em",marginRight:"0.1em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.6444em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"0"))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.2996em"}},(0,m.kt)("span",{parentName:"span"})))))))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.5378em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"mclose nulldelimiter sizing reset-size3 size6"})),(0,m.kt)("span",{parentName:"span",className:"mclose mtight"},(0,m.kt)("span",{parentName:"span",className:"mclose mtight"},"]"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.7385em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.931em",marginRight:"0.0714em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.5em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size3 size1 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"n"))))))))))))))))),(0,m.kt)("span",{parentName:"span",className:"tag"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1.4521em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord text"},(0,m.kt)("span",{parentName:"span",className:"mord"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"21")),(0,m.kt)("span",{parentName:"span",className:"mord"},")"))))))),(0,m.kt)("h4",{id:"\u68af\u5f62\u9ad8\u901a\u6ee4\u6ce2\u5668thpf"},"\u68af\u5f62\u9ad8\u901a\u6ee4\u6ce2\u5668\uff08THPF\uff09"),(0,m.kt)("div",{className:"math math-display"},(0,m.kt)("span",{parentName:"div",className:"katex-display"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mtable",{parentName:"semantics",width:"100%"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mrow",{parentName:"mtd"},(0,m.kt)("mi",{parentName:"mrow"},"H"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"u"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"v"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("mrow",{parentName:"mrow"},(0,m.kt)("mo",{parentName:"mrow",fence:"true"},"{"),(0,m.kt)("mtable",{parentName:"mrow",rowspacing:"0.36em",columnalign:"left left",columnspacing:"1em"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("mn",{parentName:"mstyle"},"1"))),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("mrow",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"mrow"},"D"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"u"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"v"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},">"),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"D"),(0,m.kt)("mn",{parentName:"msub"},"0")))))),(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("mrow",{parentName:"mstyle"})))),(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("mfrac",{parentName:"mstyle"},(0,m.kt)("mrow",{parentName:"mfrac"},(0,m.kt)("mi",{parentName:"mrow"},"D"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"u"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"v"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"\u2212"),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"D"),(0,m.kt)("mn",{parentName:"msub"},"1"))),(0,m.kt)("mrow",{parentName:"mfrac"},(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"D"),(0,m.kt)("mn",{parentName:"msub"},"0")),(0,m.kt)("mo",{parentName:"mrow"},"\u2212"),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"D"),(0,m.kt)("mn",{parentName:"msub"},"1")))))),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("mrow",{parentName:"mstyle"},(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"D"),(0,m.kt)("mn",{parentName:"msub"},"1")),(0,m.kt)("mo",{parentName:"mrow"},"\u2264"),(0,m.kt)("mi",{parentName:"mrow"},"D"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"u"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"v"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"\u2264"),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"D"),(0,m.kt)("mn",{parentName:"msub"},"0")))))),(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("mrow",{parentName:"mstyle"})))),(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("mn",{parentName:"mstyle"},"0"))),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("mrow",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"mrow"},"D"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"u"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"v"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"<"),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"D"),(0,m.kt)("mn",{parentName:"msub"},"1")))))))))),(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mtext",{parentName:"mtd"},"(22)")))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"H(u,v)=\\begin{cases}1&D(u,v)>D_0\\\\ \\\\ \\frac{D(u,v)-D_1}{D_0-D_1}&D_1\\leq D(u,v)\\leq D_0\\\\ \\\\ 0&D(u,v)<D_1\\end{cases}\\tag{22}")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.08125em"}},"H"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"u"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"v"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"="),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"7.2151em",verticalAlign:"-3.3576em"}}),(0,m.kt)("span",{parentName:"span",className:"minner"},(0,m.kt)("span",{parentName:"span",className:"mopen"},(0,m.kt)("span",{parentName:"span",className:"delimsizing mult"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"3.85em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-1.366em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.816em"}}),(0,m.kt)("span",{parentName:"span",className:"delimsizinginner delim-size4"},(0,m.kt)("span",{parentName:"span"},"\u23a9"))),(0,m.kt)("span",{parentName:"span",style:{top:"-1.358em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.816em"}}),(0,m.kt)("span",{parentName:"span",style:{height:"1.816em",width:"0.8889em"}},(0,m.kt)("svg",{parentName:"span",xmlns:"http://www.w3.org/2000/svg",width:"0.8889em",height:"1.816em",style:{width:"0.8889em"},viewBox:"0 0 888.89 1816",preserveAspectRatio:"xMinYMin"},(0,m.kt)("path",{parentName:"svg",d:"M384 0 H504 V1816 H384z M384 0 H504 V1816 H384z"})))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.816em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.816em"}}),(0,m.kt)("span",{parentName:"span",className:"delimsizinginner delim-size4"},(0,m.kt)("span",{parentName:"span"},"\u23a8"))),(0,m.kt)("span",{parentName:"span",style:{top:"-4.958em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.816em"}}),(0,m.kt)("span",{parentName:"span",style:{height:"1.816em",width:"0.8889em"}},(0,m.kt)("svg",{parentName:"span",xmlns:"http://www.w3.org/2000/svg",width:"0.8889em",height:"1.816em",style:{width:"0.8889em"},viewBox:"0 0 888.89 1816",preserveAspectRatio:"xMinYMin"},(0,m.kt)("path",{parentName:"svg",d:"M384 0 H504 V1816 H384z M384 0 H504 V1816 H384z"})))),(0,m.kt)("span",{parentName:"span",style:{top:"-6.766em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.816em"}}),(0,m.kt)("span",{parentName:"span",className:"delimsizinginner delim-size4"},(0,m.kt)("span",{parentName:"span"},"\u23a7")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"3.35em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mtable"},(0,m.kt)("span",{parentName:"span",className:"col-align-l"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"3.8576em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-5.8596em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.01em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"1"))),(0,m.kt)("span",{parentName:"span",style:{top:"-4.4196em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.01em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"})),(0,m.kt)("span",{parentName:"span",style:{top:"-2.9776em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.01em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mopen nulldelimiter"}),(0,m.kt)("span",{parentName:"span",className:"mfrac"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.01em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.655em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.02778em"}},"D"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3173em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.357em",marginLeft:"-0.0278em",marginRight:"0.0714em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.5em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size3 size1 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"0")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.143em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mbin mtight"},"\u2212"),(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.02778em"}},"D"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3173em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.357em",marginLeft:"-0.0278em",marginRight:"0.0714em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.5em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size3 size1 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"1")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.143em"}},(0,m.kt)("span",{parentName:"span"}))))))))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.23em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"frac-line",style:{borderBottomWidth:"0.04em"}})),(0,m.kt)("span",{parentName:"span",style:{top:"-3.485em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.02778em"}},"D"),(0,m.kt)("span",{parentName:"span",className:"mopen mtight"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"u"),(0,m.kt)("span",{parentName:"span",className:"mpunct mtight"},","),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.03588em"}},"v"),(0,m.kt)("span",{parentName:"span",className:"mclose mtight"},")"),(0,m.kt)("span",{parentName:"span",className:"mbin mtight"},"\u2212"),(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.02778em"}},"D"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3173em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.357em",marginLeft:"-0.0278em",marginRight:"0.0714em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.5em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size3 size1 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"1")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.143em"}},(0,m.kt)("span",{parentName:"span"})))))))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.4451em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"mclose nulldelimiter"})))),(0,m.kt)("span",{parentName:"span",style:{top:"-1.5245em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.01em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"})),(0,m.kt)("span",{parentName:"span",style:{top:"-0.0845em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.01em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"0")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"3.3575em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"arraycolsep",style:{width:"1em"}}),(0,m.kt)("span",{parentName:"span",className:"col-align-l"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"3.8576em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-5.8596em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.01em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02778em"}},"D"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"u"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"v"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},">"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02778em"}},"D"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0278em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"0")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))))),(0,m.kt)("span",{parentName:"span",style:{top:"-2.9776em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.01em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02778em"}},"D"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0278em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"1")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"\u2264"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02778em"}},"D"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"u"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"v"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"\u2264"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02778em"}},"D"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0278em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"0")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))))),(0,m.kt)("span",{parentName:"span",style:{top:"-0.0844em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.01em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02778em"}},"D"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"u"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"v"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"<"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02778em"}},"D"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0278em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"1")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"}))))))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"3.3576em"}},(0,m.kt)("span",{parentName:"span"}))))))),(0,m.kt)("span",{parentName:"span",className:"mclose nulldelimiter"}))),(0,m.kt)("span",{parentName:"span",className:"tag"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"7.2151em",verticalAlign:"-3.3576em"}}),(0,m.kt)("span",{parentName:"span",className:"mord text"},(0,m.kt)("span",{parentName:"span",className:"mord"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"22")),(0,m.kt)("span",{parentName:"span",className:"mord"},")"))))))),(0,m.kt)("h3",{id:"\u5e26\u901a\u548c\u5e26\u963b\u6ee4\u6ce2"},"\u5e26\u901a\u548c\u5e26\u963b\u6ee4\u6ce2"),(0,m.kt)("h4",{id:"\u5e26\u901a\u6ee4\u6ce2"},"\u5e26\u901a\u6ee4\u6ce2"),(0,m.kt)("p",null,"\u987e\u540d\u601d\u4e49\uff0c\u5e26\u901a\u6ee4\u6ce2\u5c31\u662f\u5141\u8bb8\u67d0\u4e00\u7279\u5b9a\u9891\u7387\u7684\u4fe1\u53f7\u901a\u8fc7\uff0c\u800c\u8870\u51cf\u9891\u7387\u8303\u56f4\u4e4b\u5916\u7684\u4fe1\u53f7\u3002"),(0,m.kt)("p",null,"\u7406\u60f3\u5e26\u901a\u6ee4\u6ce2\u7684\u4f20\u9012\u51fd\u6570\u4e3a\uff1a"),(0,m.kt)("div",{className:"math math-display"},(0,m.kt)("span",{parentName:"div",className:"katex-display"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mtable",{parentName:"semantics",width:"100%"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mrow",{parentName:"mtd"},(0,m.kt)("mi",{parentName:"mrow"},"H"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"u"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"v"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("mrow",{parentName:"mrow"},(0,m.kt)("mo",{parentName:"mrow",fence:"true"},"{"),(0,m.kt)("mtable",{parentName:"mrow",rowspacing:"0.36em",columnalign:"left left",columnspacing:"1em"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("mn",{parentName:"mstyle"},"0"))),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("mrow",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"mrow"},"D"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"u"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"v"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"<"),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"D"),(0,m.kt)("mn",{parentName:"msub"},"0")),(0,m.kt)("mo",{parentName:"mrow"},"\u2212"),(0,m.kt)("mfrac",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"mfrac"},"w"),(0,m.kt)("mn",{parentName:"mfrac"},"2")))))),(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("mn",{parentName:"mstyle"},"1"))),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("mrow",{parentName:"mstyle"},(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"D"),(0,m.kt)("mn",{parentName:"msub"},"0")),(0,m.kt)("mo",{parentName:"mrow"},"\u2212"),(0,m.kt)("mfrac",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"mfrac"},"w"),(0,m.kt)("mn",{parentName:"mfrac"},"2")),(0,m.kt)("mo",{parentName:"mrow"},"\u2264"),(0,m.kt)("mi",{parentName:"mrow"},"D"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"u"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"v"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"\u2264"),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"D"),(0,m.kt)("mn",{parentName:"msub"},"0")),(0,m.kt)("mo",{parentName:"mrow"},"+"),(0,m.kt)("mfrac",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"mfrac"},"w"),(0,m.kt)("mn",{parentName:"mfrac"},"2")))))),(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("mn",{parentName:"mstyle"},"0"))),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("mrow",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"mrow"},"D"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"u"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"v"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"\u2265"),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"D"),(0,m.kt)("mn",{parentName:"msub"},"0")),(0,m.kt)("mo",{parentName:"mrow"},"+"),(0,m.kt)("mfrac",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"mfrac"},"w"),(0,m.kt)("mn",{parentName:"mfrac"},"2")))))))))),(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mtext",{parentName:"mtd"},"(23)")))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"H(u,v)=\\begin{cases}0&D(u,v)<D_0-\\frac{w}{2}\\\\1&D_0-\\frac{w}{2}\\leq D(u,v)\\leq D_0+\\frac{w}{2}\\\\0&D(u,v)\\geq D_0+\\frac{w}{2}\\end{cases}\\tag{23}")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.08125em"}},"H"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"u"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"v"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"="),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"4.32em",verticalAlign:"-1.91em"}}),(0,m.kt)("span",{parentName:"span",className:"minner"},(0,m.kt)("span",{parentName:"span",className:"mopen"},(0,m.kt)("span",{parentName:"span",className:"delimsizing mult"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"2.35em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.2em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.15em"}}),(0,m.kt)("span",{parentName:"span",className:"delimsizinginner delim-size4"},(0,m.kt)("span",{parentName:"span"},"\u23a9"))),(0,m.kt)("span",{parentName:"span",style:{top:"-2.192em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.15em"}}),(0,m.kt)("span",{parentName:"span",style:{height:"0.316em",width:"0.8889em"}},(0,m.kt)("svg",{parentName:"span",xmlns:"http://www.w3.org/2000/svg",width:"0.8889em",height:"0.316em",style:{width:"0.8889em"},viewBox:"0 0 888.89 316",preserveAspectRatio:"xMinYMin"},(0,m.kt)("path",{parentName:"svg",d:"M384 0 H504 V316 H384z M384 0 H504 V316 H384z"})))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.15em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.15em"}}),(0,m.kt)("span",{parentName:"span",className:"delimsizinginner delim-size4"},(0,m.kt)("span",{parentName:"span"},"\u23a8"))),(0,m.kt)("span",{parentName:"span",style:{top:"-4.292em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.15em"}}),(0,m.kt)("span",{parentName:"span",style:{height:"0.316em",width:"0.8889em"}},(0,m.kt)("svg",{parentName:"span",xmlns:"http://www.w3.org/2000/svg",width:"0.8889em",height:"0.316em",style:{width:"0.8889em"},viewBox:"0 0 888.89 316",preserveAspectRatio:"xMinYMin"},(0,m.kt)("path",{parentName:"svg",d:"M384 0 H504 V316 H384z M384 0 H504 V316 H384z"})))),(0,m.kt)("span",{parentName:"span",style:{top:"-4.6em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.15em"}}),(0,m.kt)("span",{parentName:"span",className:"delimsizinginner delim-size4"},(0,m.kt)("span",{parentName:"span"},"\u23a7")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.85em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mtable"},(0,m.kt)("span",{parentName:"span",className:"col-align-l"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"2.41em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-4.41em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.008em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"0"))),(0,m.kt)("span",{parentName:"span",style:{top:"-2.97em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.008em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"1"))),(0,m.kt)("span",{parentName:"span",style:{top:"-1.53em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.008em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"0")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.91em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"arraycolsep",style:{width:"1em"}}),(0,m.kt)("span",{parentName:"span",className:"col-align-l"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"2.41em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-4.41em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.008em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02778em"}},"D"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"u"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"v"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"<"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02778em"}},"D"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0278em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"0")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"\u2212"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mopen nulldelimiter"}),(0,m.kt)("span",{parentName:"span",className:"mfrac"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.6954em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.655em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"2")))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.23em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"frac-line",style:{borderBottomWidth:"0.04em"}})),(0,m.kt)("span",{parentName:"span",style:{top:"-3.394em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.02691em"}},"w"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.345em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"mclose nulldelimiter"})))),(0,m.kt)("span",{parentName:"span",style:{top:"-2.97em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.008em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02778em"}},"D"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0278em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"0")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"\u2212"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mopen nulldelimiter"}),(0,m.kt)("span",{parentName:"span",className:"mfrac"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.6954em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.655em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"2")))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.23em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"frac-line",style:{borderBottomWidth:"0.04em"}})),(0,m.kt)("span",{parentName:"span",style:{top:"-3.394em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.02691em"}},"w"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.345em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"mclose nulldelimiter"})),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"\u2264"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02778em"}},"D"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"u"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"v"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"\u2264"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02778em"}},"D"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0278em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"0")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"+"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mopen nulldelimiter"}),(0,m.kt)("span",{parentName:"span",className:"mfrac"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.6954em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.655em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"2")))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.23em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"frac-line",style:{borderBottomWidth:"0.04em"}})),(0,m.kt)("span",{parentName:"span",style:{top:"-3.394em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.02691em"}},"w"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.345em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"mclose nulldelimiter"})))),(0,m.kt)("span",{parentName:"span",style:{top:"-1.53em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.008em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02778em"}},"D"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"u"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"v"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"\u2265"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02778em"}},"D"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0278em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"0")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"+"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mopen nulldelimiter"}),(0,m.kt)("span",{parentName:"span",className:"mfrac"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.6954em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.655em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"2")))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.23em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"frac-line",style:{borderBottomWidth:"0.04em"}})),(0,m.kt)("span",{parentName:"span",style:{top:"-3.394em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.02691em"}},"w"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.345em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"mclose nulldelimiter"}))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.91em"}},(0,m.kt)("span",{parentName:"span"}))))))),(0,m.kt)("span",{parentName:"span",className:"mclose nulldelimiter"}))),(0,m.kt)("span",{parentName:"span",className:"tag"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"4.32em",verticalAlign:"-1.91em"}}),(0,m.kt)("span",{parentName:"span",className:"mord text"},(0,m.kt)("span",{parentName:"span",className:"mord"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"23")),(0,m.kt)("span",{parentName:"span",className:"mord"},")"))))))),(0,m.kt)("p",null,"\u5176\u4e2d\uff0c",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"D"),(0,m.kt)("mn",{parentName:"msub"},"0"))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"D_0")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.8333em",verticalAlign:"-0.15em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02778em"}},"D"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0278em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"0")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))))))),"\u662f\u901a\u5e26\u4e2d\u5fc3\u9891\u7387\uff0c",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"w")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"w")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.4306em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02691em"}},"w"))))),"\u662f\u901a\u5e26\u5bbd\u5ea6\u3002"),(0,m.kt)("h4",{id:"\u5e26\u963b\u6ee4\u6ce2"},"\u5e26\u963b\u6ee4\u6ce2"),(0,m.kt)("p",null,"\u987e\u540d\u601d\u4e49\uff0c\u5e26\u963b\u6ee4\u6ce2\u5c31\u662f\u8870\u51cf\u67d0\u4e00\u7279\u5b9a\u9891\u7387\u8303\u56f4\u7684\u4fe1\u53f7\uff0c\u800c\u5141\u8bb8\u9891\u7387\u8303\u56f4\u4e4b\u5916\u7684\u4fe1\u53f7\u901a\u8fc7\u3002"),(0,m.kt)("p",null,"\u7406\u60f3\u5e26\u963b\u6ee4\u6ce2\u7684\u4f20\u9012\u51fd\u6570\u4e3a\uff1a"),(0,m.kt)("div",{className:"math math-display"},(0,m.kt)("span",{parentName:"div",className:"katex-display"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mtable",{parentName:"semantics",width:"100%"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mrow",{parentName:"mtd"},(0,m.kt)("mi",{parentName:"mrow"},"H"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"u"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"v"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("mrow",{parentName:"mrow"},(0,m.kt)("mo",{parentName:"mrow",fence:"true"},"{"),(0,m.kt)("mtable",{parentName:"mrow",rowspacing:"0.36em",columnalign:"left left",columnspacing:"1em"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("mn",{parentName:"mstyle"},"1"))),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("mrow",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"mrow"},"D"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"u"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"v"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"<"),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"w"),(0,m.kt)("mn",{parentName:"msub"},"1")))))),(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("mn",{parentName:"mstyle"},"0"))),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("mrow",{parentName:"mstyle"},(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"w"),(0,m.kt)("mn",{parentName:"msub"},"1")),(0,m.kt)("mo",{parentName:"mrow"},"\u2a7d"),(0,m.kt)("mi",{parentName:"mrow"},"D"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"u"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"v"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"\u2264"),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"w"),(0,m.kt)("mn",{parentName:"msub"},"2")))))),(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("mn",{parentName:"mstyle"},"1"))),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("mrow",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"mrow"},"D"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"u"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"v"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},">"),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"w"),(0,m.kt)("mn",{parentName:"msub"},"2")))))))))),(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mtext",{parentName:"mtd"},"(24)")))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"H(u,v)=\\begin{cases}1&D(u,v)<w_1\\\\0&w_1\\leqslant D(u,v)\\leq w_2\\\\1&D(u,v)> w_2\\end{cases}\\tag{24}")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.08125em"}},"H"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"u"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"v"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"="),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"4.32em",verticalAlign:"-1.91em"}}),(0,m.kt)("span",{parentName:"span",className:"minner"},(0,m.kt)("span",{parentName:"span",className:"mopen"},(0,m.kt)("span",{parentName:"span",className:"delimsizing mult"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"2.35em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.2em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.15em"}}),(0,m.kt)("span",{parentName:"span",className:"delimsizinginner delim-size4"},(0,m.kt)("span",{parentName:"span"},"\u23a9"))),(0,m.kt)("span",{parentName:"span",style:{top:"-2.192em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.15em"}}),(0,m.kt)("span",{parentName:"span",style:{height:"0.316em",width:"0.8889em"}},(0,m.kt)("svg",{parentName:"span",xmlns:"http://www.w3.org/2000/svg",width:"0.8889em",height:"0.316em",style:{width:"0.8889em"},viewBox:"0 0 888.89 316",preserveAspectRatio:"xMinYMin"},(0,m.kt)("path",{parentName:"svg",d:"M384 0 H504 V316 H384z M384 0 H504 V316 H384z"})))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.15em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.15em"}}),(0,m.kt)("span",{parentName:"span",className:"delimsizinginner delim-size4"},(0,m.kt)("span",{parentName:"span"},"\u23a8"))),(0,m.kt)("span",{parentName:"span",style:{top:"-4.292em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.15em"}}),(0,m.kt)("span",{parentName:"span",style:{height:"0.316em",width:"0.8889em"}},(0,m.kt)("svg",{parentName:"span",xmlns:"http://www.w3.org/2000/svg",width:"0.8889em",height:"0.316em",style:{width:"0.8889em"},viewBox:"0 0 888.89 316",preserveAspectRatio:"xMinYMin"},(0,m.kt)("path",{parentName:"svg",d:"M384 0 H504 V316 H384z M384 0 H504 V316 H384z"})))),(0,m.kt)("span",{parentName:"span",style:{top:"-4.6em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.15em"}}),(0,m.kt)("span",{parentName:"span",className:"delimsizinginner delim-size4"},(0,m.kt)("span",{parentName:"span"},"\u23a7")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.85em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mtable"},(0,m.kt)("span",{parentName:"span",className:"col-align-l"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"2.41em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-4.41em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.008em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"1"))),(0,m.kt)("span",{parentName:"span",style:{top:"-2.97em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.008em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"0"))),(0,m.kt)("span",{parentName:"span",style:{top:"-1.53em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.008em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"1")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.91em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"arraycolsep",style:{width:"1em"}}),(0,m.kt)("span",{parentName:"span",className:"col-align-l"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"2.41em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-4.41em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.008em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02778em"}},"D"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"u"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"v"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"<"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02691em"}},"w"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0269em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"1")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))))),(0,m.kt)("span",{parentName:"span",style:{top:"-2.97em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.008em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02691em"}},"w"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0269em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"1")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel amsrm"},"\u2a7d"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02778em"}},"D"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"u"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"v"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"\u2264"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02691em"}},"w"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0269em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"2")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))))),(0,m.kt)("span",{parentName:"span",style:{top:"-1.53em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.008em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02778em"}},"D"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"u"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"v"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},">"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02691em"}},"w"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0269em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"2")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"}))))))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.91em"}},(0,m.kt)("span",{parentName:"span"}))))))),(0,m.kt)("span",{parentName:"span",className:"mclose nulldelimiter"}))),(0,m.kt)("span",{parentName:"span",className:"tag"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"4.32em",verticalAlign:"-1.91em"}}),(0,m.kt)("span",{parentName:"span",className:"mord text"},(0,m.kt)("span",{parentName:"span",className:"mord"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"24")),(0,m.kt)("span",{parentName:"span",className:"mord"},")"))))))),(0,m.kt)("h2",{id:"\u7b2c7\u7ae0-\u5f69\u8272\u56fe\u50cf\u5904\u7406"},"\u7b2c7\u7ae0 \u5f69\u8272\u56fe\u50cf\u5904\u7406"),(0,m.kt)("h3",{id:"\u4f2a\u5f69\u8272\u56fe\u50cf\u7684\u5904\u7406"},"\u4f2a\u5f69\u8272\u56fe\u50cf\u7684\u5904\u7406"),(0,m.kt)("p",null,"\u4f2a\u5f69\u8272\u56fe\u50cf\u7684\u589e\u5f3a\u4e00\u822c\u7528\u4e8e",(0,m.kt)("strong",{parentName:"p"},"B\u8d85\u3001\u77f3\u6cb9\u5f00\u91c7\u4ee5\u53ca\u5b89\u68c0"),"\u65b9\u9762\u3002"),(0,m.kt)("h3",{id:"\u5168\u5f69\u8272\u56fe\u50cf\u7684\u5904\u7406"},"\u5168\u5f69\u8272\u56fe\u50cf\u7684\u5904\u7406"),(0,m.kt)("h2",{id:"\u7b2c8\u7ae0-\u56fe\u50cf\u590d\u539f"},"\u7b2c8\u7ae0 \u56fe\u50cf\u590d\u539f"),(0,m.kt)("h3",{id:"\u56fe\u50cf\u9000\u5316\u673a\u7406"},"\u56fe\u50cf\u9000\u5316\u673a\u7406"),(0,m.kt)("h4",{id:"\u9000\u5316\u539f\u56e0"},"\u9000\u5316\u539f\u56e0"),(0,m.kt)("ol",null,(0,m.kt)("li",{parentName:"ol"},"\u6210\u50cf\u7cfb\u7edf\u955c\u5934\u805a\u7126\u4e0d\u51c6\u4ea7\u751f\u7684\u6563\u7126"),(0,m.kt)("li",{parentName:"ol"},"\u76f8\u673a\u4e0e\u666f\u7269\u4e4b\u95f4\u7684\u76f8\u5bf9\u8fd0\u52a8"),(0,m.kt)("li",{parentName:"ol"},"\u6210\u50cf\u7cfb\u7edf\u5b58\u5728\u7684\u5404\u79cd\u975e\u7ebf\u6027\u56e0\u7d20\u4ee5\u53ca\u7cfb\u7edf\u672c\u8eab\u7684\u6027\u80fd"),(0,m.kt)("li",{parentName:"ol"},"\u6a21\u62df\u56fe\u50cf\u5728\u6570\u5b57\u5316\u8fc7\u7a0b\u4e2d\uff0c\u56e0\u6570\u5b57\u5316\u7684\u7cbe\u5ea6\u548c\u8bef\u5dee\u800c\u635f\u5931\u56fe\u50cf\u7ec6\u8282"),(0,m.kt)("li",{parentName:"ol"},"\u6210\u50cf\u7cfb\u7edf\u4e2d\u5b58\u5728\u7684\u5404\u79cd\u968f\u673a\u566a\u58f0")),(0,m.kt)("h4",{id:"\u590d\u539f\u673a\u7406"},"\u590d\u539f\u673a\u7406"),(0,m.kt)("p",null,"\u56fe\u50cf\u590d\u539f\u7684\u8fc7\u7a0b\u4e00\u822c\u662f\u6cbf\u7740\u56fe\u50cf\u9000\u5316\u7684\u9006\u5411\u8fc7\u7a0b\u8fdb\u884c\u7684\u3002\u9996\u5148\u6839\u636e\u5148\u9a8c\u77e5\u8bc6\u5206\u6790\u9000\u5316\u539f\u56e0\uff0c\u4e86\u89e3\u56fe\u50cf\u53d8\u8d28\u7684\u539f\u7406\uff0c\u5728\u6b64\u57fa\u7840\u4e0a\u5efa\u7acb\u56fe\u50cf\u7684\u9000\u5316\u6a21\u578b\uff0c\u7136\u540e\u4ee5\u56fe\u50cf\u9000\u5316\u7684\u9006\u8fc7\u7a0b\u5bf9\u56fe\u50cf\u8fdb\u884c\u5904\u7406\u3002"),(0,m.kt)("h4",{id:"\u56fe\u50cf\u590d\u539f\u4e0e\u56fe\u50cf\u589e\u5f3a\u7684\u533a\u522b\u548c\u8054\u7cfb"},"\u56fe\u50cf\u590d\u539f\u4e0e\u56fe\u50cf\u589e\u5f3a\u7684\u533a\u522b\u548c\u8054\u7cfb"),(0,m.kt)("p",null,"\u8054\u7cfb\uff1a\u4e8c\u8005\u4ece\u8868\u9762\u4e0a\u770b\u90fd\u662f\u4e3a\u4e86\u63d0\u9ad8\u56fe\u50cf\u7684\u8d28\u91cf\u3002"),(0,m.kt)("p",null,"\u533a\u522b\uff1a\u4e8c\u8005\u5728\u76ee\u7684\u548c\u8fc7\u7a0b\u4e0a\u90fd\u6709\u660e\u663e\u7684\u533a\u522b\u3002"),(0,m.kt)("p",null,"\u5728\u76ee\u7684\u4e0a\uff0c\u56fe\u50cf\u589e\u5f3a\u662f\u4e3a\u4e86\u63d0\u9ad8\u56fe\u50cf\u7684\u89c6\u611f\u8d28\u91cf\uff0c\u589e\u5f3a\u540e\u7684\u56fe\u50cf\u53ef\u80fd\u635f\u5931\u4e00\u4e9b\u4fe1\u606f\uff0c\u5e76\u4e0e\u539f\u59cb\u56fe\u50cf\u6709\u4e00\u5b9a\u7684\u5dee\u5f02\uff1b\u800c\u56fe\u50cf\u590d\u539f\u662f\u4e3a\u4e86\u4f7f\u5f85\u590d\u539f\u7684\u56fe\u50cf\u4e0e\u539f\u59cb\u56fe\u50cf\u5c3d\u53ef\u80fd\u7684\u63a5\u8fd1\u3002"),(0,m.kt)("p",null,"\u5728\u8fc7\u7a0b\u4e0a\u3002\u56fe\u50cf\u589e\u5f3a\u4e00\u822c\u4e0d\u8003\u8651\u56fe\u50cf\u9000\u5316\u7684\u771f\u5b9e\u8fc7\u7a0b\uff0c\u800c\u662f\u4f7f\u7528\u7279\u5b9a\u6280\u672f\u6765\u7a81\u51fa\u548c\u5f3a\u8c03\u56fe\u50cf\u4e2d\u6240\u5173\u6ce8\u7684\u7279\u5f81\uff1b\u800c\u56fe\u50cf\u590d\u539f\u662f\u76f4\u63a5\u9488\u5bf9\u56fe\u50cf\u4ea7\u751f\u9000\u5316\u7684\u539f\u56e0\u5efa\u7acb\u76f8\u5e94\u7684\u6570\u5b66\u6a21\u578b\uff0c\u5e76\u6cbf\u7740\u9000\u5316\u7684\u9006\u5411\u8fdb\u884c\u590d\u539f\u3002"),(0,m.kt)("h3",{id:"\u56fe\u50cf\u9000\u5316\u6a21\u578b"},"\u56fe\u50cf\u9000\u5316\u6a21\u578b"),(0,m.kt)("p",null,"\u56fe\u50cf",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"f"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"x"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"y"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"f(x,y)")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.10764em"}},"f"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"x"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"y"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"))))),"\u7ecf\u8fc7\u9000\u5316\u7cfb\u7edf",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"H"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"x"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"y"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"H(x,y)")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.08125em"}},"H"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"x"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"y"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"))))),"\u540e\u518d\u4e0e\u566a\u58f0",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"n"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"x"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"y"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"n(x,y)")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"n"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"x"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"y"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"))))),"\u53e0\u52a0\uff0c\u5f97\u5230\u6700\u540e\u9000\u5316\u7684\u56fe\u50cf",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"g"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"x"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"y"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"g(x,y)")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"g"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"x"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"y"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"))))),"\u3002"),(0,m.kt)("p",null,"\u9000\u5316\u7cfb\u7edf\u7684\u4e00\u822c\u7279\u6027\uff1a"),(0,m.kt)("ol",null,(0,m.kt)("li",{parentName:"ol"},"\u7ebf\u6027\u7279\u6027\u3002"),(0,m.kt)("li",{parentName:"ol"},"\u7a7a\u95f4\u4f4d\u7f6e\u4e0d\u53d8\u6027\uff1a\u7ecf\u8fc7\u9000\u5316\u7cfb\u7edf\u540e\u7684\u8f93\u51fa\u53ea\u6709\u8f93\u5165\u6709\u5173\uff0c\u800c\u4e0e\u8f93\u5165\u5728\u56fe\u50cf\u4e2d\u7684\u4f4d\u7f6e\u65e0\u5173\u3002")),(0,m.kt)("h2",{id:"\u7b2c11\u7ae0-\u56fe\u50cf\u5206\u5272"},"\u7b2c11\u7ae0 \u56fe\u50cf\u5206\u5272"),(0,m.kt)("h3",{id:"\u9608\u503c\u5206\u5272\u6cd5"},"\u9608\u503c\u5206\u5272\u6cd5"),(0,m.kt)("h4",{id:"\u6700\u4f73\u9608\u503c\u6cd5"},"\u6700\u4f73\u9608\u503c\u6cd5"),(0,m.kt)("p",null,"\u5047\u8bbe\u56fe\u50cf\u7531\u7269\u4f53\u548c\u80cc\u666f\u4e24\u90e8\u5206\u7ec4\u6210\uff0c\u4e14\u7269\u4f53\u50cf\u7d20\u7684\u5206\u5e03\u548c\u80cc\u666f\u50cf\u7d20\u7684\u5206\u5e03\u5747\u7b26\u5408\u6b63\u6001\u5206\u5e03\uff0c\u7269\u4f53\u50cf\u7d20\u7684\u6b63\u6001\u5206\u5e03\u6982\u7387\u5bc6\u5ea6\u51fd\u6570\u7684\u5747\u503c\u4e3a",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"\u03bc")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"\\mu")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.625em",verticalAlign:"-0.1944em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"\u03bc"))))),"\uff0c\u80cc\u666f\u50cf\u7d20\u7684\u6b63\u6001\u5206\u5e03\u6982\u7387\u5bc6\u5ea6\u51fd\u6570\u7684\u5747\u503c\u4e3a",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"\u03bd")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"\\nu")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.4306em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.06366em"}},"\u03bd"))))),"\uff0c\u5219\u6700\u4f73\u9608\u503c\u6cd5\u786e\u5b9a\u7684\u9608\u503c\u4e3a"),(0,m.kt)("div",{className:"math math-display"},(0,m.kt)("span",{parentName:"div",className:"katex-display"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mtable",{parentName:"semantics",width:"100%"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mrow",{parentName:"mtd"},(0,m.kt)("mi",{parentName:"mrow"},"t"),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("mfrac",{parentName:"mrow"},(0,m.kt)("mrow",{parentName:"mfrac"},(0,m.kt)("mi",{parentName:"mrow"},"\u03bc"),(0,m.kt)("mo",{parentName:"mrow"},"+"),(0,m.kt)("mi",{parentName:"mrow"},"\u03bd")),(0,m.kt)("mn",{parentName:"mfrac"},"2")))),(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mtext",{parentName:"mtd"},"(25)")))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"t=\\frac{\\mu +\\nu}{2}\\tag{25}")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6151em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"t"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"="),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1.9463em",verticalAlign:"-0.686em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mopen nulldelimiter"}),(0,m.kt)("span",{parentName:"span",className:"mfrac"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.2603em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.314em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"2"))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.23em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"frac-line",style:{borderBottomWidth:"0.04em"}})),(0,m.kt)("span",{parentName:"span",style:{top:"-3.677em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"\u03bc"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"+"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.06366em"}},"\u03bd")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.686em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"mclose nulldelimiter"}))),(0,m.kt)("span",{parentName:"span",className:"tag"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1.9463em",verticalAlign:"-0.686em"}}),(0,m.kt)("span",{parentName:"span",className:"mord text"},(0,m.kt)("span",{parentName:"span",className:"mord"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"25")),(0,m.kt)("span",{parentName:"span",className:"mord"},")"))))))),(0,m.kt)("h4",{id:"\u5224\u522b\u5206\u6790\u6cd5"},"\u5224\u522b\u5206\u6790\u6cd5"),(0,m.kt)("p",null,"\u901a\u8fc7\u8ba1\u7b97\u7070\u5ea6\u76f4\u65b9\u56fe\u76840\u9636\u77e9\u548c1\u9636\u77e9\u6700\u5927\u5316\u7c7b\u95f4\u65b9\u5dee\u4ece\u800c\u5f97\u5230\u6700\u4f73\u9608\u503c\u3002"),(0,m.kt)("h3",{id:"\u8fb9\u7f18\u68c0\u6d4b\u7684\u57fa\u672c\u539f\u7406"},"\u8fb9\u7f18\u68c0\u6d4b\u7684\u57fa\u672c\u539f\u7406"),(0,m.kt)("ol",null,(0,m.kt)("li",{parentName:"ol"},(0,m.kt)("p",{parentName:"li"},"\u4ec0\u4e48\u662f\u56fe\u50cf\u7684\u8fb9\u7f18\uff1f"),(0,m.kt)("p",{parentName:"li"},"\u56fe\u50cf\u4e2d\u7ed3\u6784\u5177\u6709\u7a81\u53d8\u7684\u5730\u65b9\uff0c\u8868\u660e\u4e00\u4e2a\u533a\u57df\u7684\u7ec8\u7ed3\uff0c\u4e5f\u662f\u53e6\u4e00\u4e2a\u533a\u57df\u7684\u5f00\u59cb\uff0c\u8fd9\u79cd\u4e0d\u8fde\u7eed\u6027\u79f0\u4e3a\u8fb9\u7f18\u3002")),(0,m.kt)("li",{parentName:"ol"},(0,m.kt)("p",{parentName:"li"},"\u8fb9\u7f18\u4fe1\u53f7\u7684\u7c7b\u578b\uff1f"),(0,m.kt)("ol",{parentName:"li"},(0,m.kt)("li",{parentName:"ol"},"\u9636\u8dc3\u578b\uff0c\u4f46\u5b9e\u9645\u60c5\u51b5\u4e2d\u4e0d\u53ef\u80fd\u6709\u5b8c\u5168\u7406\u60f3\u7684\u7a81\u53d8\u3002\u7a81\u53d8\u5904\u4e3a\u8fb9\u7f18\u70b9\u3002"),(0,m.kt)("li",{parentName:"ol"},"\u6e10\u53d8\u578b\uff0c\u9010\u6e10\u589e\u5927\u6216\u9010\u6e10\u51cf\u5c0f\u3002\u6e10\u53d8\u7684\u4e2d\u95f4\u4f4d\u7f6e\u4e3a\u8fb9\u7f18\u70b9\u3002"),(0,m.kt)("li",{parentName:"ol"},"\u53f0\u9636\u578b\u3002\u53f0\u9636\u7684\u4e2d\u95f4\u4e3a\u8fb9\u7f18\u70b9\u6216\u8ba4\u4e3a\u53f0\u9636\u4e24\u4fa7\u4e3a\u4e24\u4e2a\u8fb9\u7f18\u70b9\u3002")))),(0,m.kt)("h3",{id:"\u8fb9\u7f18\u68c0\u6d4b\u7b97\u5b50"},"\u8fb9\u7f18\u68c0\u6d4b\u7b97\u5b50"),(0,m.kt)("h4",{id:"robert\u7b97\u5b50"},"Robert\u7b97\u5b50"),(0,m.kt)("ul",null,(0,m.kt)("li",{parentName:"ul"},"\u4e00\u9636\u5bfc\u6570\u7b97\u5b50\u3002"),(0,m.kt)("li",{parentName:"ul"},"\u5229\u7528\u5c40\u90e8\u5dee\u5206\u65b9\u6cd5\uff0c\u91c7\u7528\u5bf9\u89d2\u7ebf\u65b9\u5411\u76f8\u90bb\u4e24\u50cf\u7d20\u4e4b\u5dee\u8fd1\u4f3c\u68af\u5ea6\u5e45\u503c\u68c0\u6d4b\u8fb9\u7f18\u3002"),(0,m.kt)("li",{parentName:"ul"},"\u5bf9\u566a\u58f0\u654f\u611f\uff0c",(0,m.kt)("strong",{parentName:"li"},"\u4e0d\u80fd\u6291\u5236\u566a\u58f0"),"\u3002")),(0,m.kt)("h4",{id:"sobel\u7b97\u5b50"},"Sobel\u7b97\u5b50"),(0,m.kt)("ul",null,(0,m.kt)("li",{parentName:"ul"},"\u4e00\u9636\u5bfc\u6570\u7b97\u5b50\u3002"),(0,m.kt)("li",{parentName:"ul"},"\u5148\u8fdb\u884c",(0,m.kt)("strong",{parentName:"li"},"\u52a0\u6743\u5e73\u5747"),"\uff0c\u7136\u540e\u8fdb\u884c\u5fae\u5206\u8fd0\u7b97\u3002"),(0,m.kt)("li",{parentName:"ul"},"\u5bf9\u566a\u58f0\u5177\u6709\u4e00\u5b9a\u7684\u6291\u5236\u80fd\u529b\u3002")),(0,m.kt)("h4",{id:"prewitt\u7b97\u5b50"},"Prewitt\u7b97\u5b50"),(0,m.kt)("ul",null,(0,m.kt)("li",{parentName:"ul"},"\u4e00\u9636\u5bfc\u6570\u7b97\u5b50\u3002"),(0,m.kt)("li",{parentName:"ul"},"\u5229\u7528",(0,m.kt)("strong",{parentName:"li"},"\u5c40\u90e8\u5dee\u5206\u5e73\u5747\u65b9\u6cd5"),"\u5bfb\u627e\u8fb9\u7f18\u3002",(0,m.kt)("strong",{parentName:"li"},"\u4e24\u4e2a\u6a21\u677f\u4e00\u4e2a\u68c0\u6d4b\u6c34\u5e73\u8fb9\u7f18\uff0c\u4e00\u4e2a\u68c0\u6d4b\u7ad6\u76f4\u8fb9\u7f18"),"\u3002"),(0,m.kt)("li",{parentName:"ul"},"\u5bf9\u566a\u58f0\u5177\u6709\u4e00\u5b9a\u7684\u6291\u5236\u80fd\u529b\u3002")),(0,m.kt)("h4",{id:"laplace\u7b97\u5b50"},"Laplace\u7b97\u5b50"),(0,m.kt)("ul",null,(0,m.kt)("li",{parentName:"ul"},"\u4e8c\u9636\u5bfc\u6570\u7b97\u5b50\u3002"),(0,m.kt)("li",{parentName:"ul"},"\u4f7f\u566a\u58f0\u6210\u5206\u5f97\u5230\u52a0\u5f3a\uff0c\u5bf9\u566a\u58f0\u66f4\u654f\u611f\u3002"),(0,m.kt)("li",{parentName:"ul"},"\u4e0eMarr\u8fb9\u7f18\u68c0\u6d4b\u7b97\u5b50\u4e00\u6837\uff0c\u4e00\u822c\u5148\u8fdb\u884c\u4f4e\u901a\u6ee4\u6ce2\u5e73\u6ed1\u540e\u518d\u8fdb\u884c\u4e8c\u9636\u5fae\u5206\u8fd0\u7b97\u3002")),(0,m.kt)("h4",{id:"canny\u8fb9\u7f18\u68c0\u6d4b"},"Canny\u8fb9\u7f18\u68c0\u6d4b"),(0,m.kt)("ol",null,(0,m.kt)("li",{parentName:"ol"},"\u4f7f\u7528\u9ad8\u65af\u6ee4\u6ce2\u5e73\u6ed1\u56fe\u50cf"),(0,m.kt)("li",{parentName:"ol"},"\u8ba1\u7b97\u68af\u5ea6\u5e45\u503c\u548c\u65b9\u5411"),(0,m.kt)("li",{parentName:"ol"},"NMS\u975e\u6781\u5927\u503c\u6291\u5236\uff0c\u4fdd\u7559\u6bcf\u4e2a\u50cf\u7d20\u70b9\u4e0a\u68af\u5ea6\u5f3a\u5ea6\u7684\u6781\u5927\u503c\uff0c\u5220\u6389\u5176\u4ed6\u503c"),(0,m.kt)("li",{parentName:"ol"},"\u4f7f\u7528\u53cc\u9608\u503c\u65b9\u6cd5\u786e\u5b9a\u5f3a\u8fb9\u754c\u548c\u5f31\u8fb9\u754c"),(0,m.kt)("li",{parentName:"ol"},"\u6ede\u540e\u8fb9\u754c\u8ddf\u8e2a")),(0,m.kt)("h2",{id:"\u8bfe\u540e\u4e60\u9898\u4e2d\u7684\u95ee\u7b54\u9898"},"\u8bfe\u540e\u4e60\u9898\u4e2d\u7684\u95ee\u7b54\u9898"),(0,m.kt)("ol",null,(0,m.kt)("li",{parentName:"ol"},(0,m.kt)("p",{parentName:"li"},"\u5085\u91cc\u53f6\u9891\u8c31\u56fe\u7684\u7279\u5f81\uff1a"),(0,m.kt)("ul",{parentName:"li"},(0,m.kt)("li",{parentName:"ul"},"\u9891\u7387\u5206\u5e03\uff1a\u5085\u91cc\u53f6\u9891\u8c31\u56fe\u5c55\u793a\u4e86\u56fe\u50cf\u5728\u4e0d\u540c\u9891\u7387\u4e0b\u7684\u5f3a\u5ea6\u5206\u5e03\u3002\u9ad8\u9891\u90e8\u5206\u5bf9\u5e94\u56fe\u50cf\u4e2d\u7684\u8fb9\u7f18\u548c\u7ec6\u8282\uff0c\u4f4e\u9891\u90e8\u5206\u5bf9\u5e94\u56fe\u50cf\u4e2d\u7684\u6574\u4f53\u7ed3\u6784\u548c\u5927\u81f4\u8f6e\u5ed3\u3002"),(0,m.kt)("li",{parentName:"ul"},"\u80fd\u91cf\u5206\u5e03\uff1a\u56fe\u50cf\u4e2d\u4e0d\u540c\u9891\u7387\u7684\u80fd\u91cf\u5728\u9891\u8c31\u56fe\u4e2d\u4ee5\u4e0d\u540c\u5f3a\u5ea6\u7684\u5e45\u5ea6\u5448\u73b0\u3002\u9ad8\u5e45\u5ea6\u7684\u9891\u7387\u5206\u91cf\u901a\u5e38\u6807\u793a\u7740\u56fe\u50cf\u4e2d\u5f3a\u70c8\u7684\u53d8\u5316\u6216\u8fb9\u7f18\u3002"),(0,m.kt)("li",{parentName:"ul"},"\u5e73\u79fb\u4e0d\u53d8\u6027\uff1a\u5085\u91cc\u53f6\u53d8\u6362\u5177\u6709\u5e73\u79fb\u4e0d\u53d8\u6027\uff0c\u8fd9\u610f\u5473\u7740\u5728\u9891\u57df\u4e2d\u56fe\u50cf\u7684\u5e73\u79fb\u5bf9\u5e94\u4e8e\u5e45\u5ea6\u8c31\u4e2d\u76f8\u4f4d\u7684\u6539\u53d8\u800c\u4e0d\u5f71\u54cd\u5e45\u5ea6\u8c31\u672c\u8eab\u3002"))),(0,m.kt)("li",{parentName:"ol"},(0,m.kt)("p",{parentName:"li"},"\u5982\u4f55\u5728\u9891\u57df\u5b9e\u73b0\u56fe\u50cf\u5e73\u6ed1"),(0,m.kt)("ol",{parentName:"li"},(0,m.kt)("li",{parentName:"ol"},"\u5229\u7528\u5085\u91cc\u53f6\u53d8\u6362\u5c06\u56fe\u50cf\u4ece\u7a7a\u57df\u8f6c\u6362\u4e3a\u9891\u57df\uff1b"),(0,m.kt)("li",{parentName:"ol"},"\u5c06\u9891\u57df\u56fe\u50cf\u8fdb\u884c\u4e2d\u5fc3\u504f\u79fb\uff0c\u4f7f\u5f97\u4f4e\u9891\u4fe1\u606f\u5728\u9891\u8c31\u4e2d\u592e\uff1b"),(0,m.kt)("li",{parentName:"ol"},"\u5229\u7528\u6ee4\u6ce2\u51fd\u6570\u751f\u6210\u4e00\u4e2a\u4e0e\u56fe\u50cf\u5927\u5c0f\u76f8\u540c\u7684\u4e8c\u7ef4\u9891\u57df\u77e9\u9635\uff1b"),(0,m.kt)("li",{parentName:"ol"},"\u5c06\u56fe\u50cf\u7684\u9891\u57df\u4e0e\u6ee4\u6ce2\u5668\u7684\u9891\u57df\u76f8\u5e94\u76f8\u4e58\uff1b"),(0,m.kt)("li",{parentName:"ol"},"\u5c06\u76f8\u4e58\u540e\u7684\u9891\u57df\u518d\u6b21\u9006\u5e73\u79fb\u5230\u9891\u57df\u7684\u539f\u59cb\u4f4d\u7f6e\uff1b"),(0,m.kt)("li",{parentName:"ol"},"\u5c06\u5f97\u5230\u7684\u9891\u57df\u8fdb\u884c\u9006\u5085\u91cc\u53f6\u53d8\u6362\uff0c\u5f97\u5230\u6ee4\u6ce2\u540e\u7684\u7a7a\u57df\u56fe\u50cf\u3002"))),(0,m.kt)("li",{parentName:"ol"},(0,m.kt)("p",{parentName:"li"},"\u4e00\u9636\u8fb9\u7f18\u68c0\u6d4b\u7b97\u5b50\u4e0eLaplace\u7b97\u5b50\u7684\u5f02\u540c\u3002"),(0,m.kt)("ul",{parentName:"li"},(0,m.kt)("li",{parentName:"ul"},"\u76f8\u540c\u70b9\uff1a\u90fd\u53ef\u4ee5\u68c0\u6d4b\u8fb9\u7f18\u5e76\u4e14\u5bf9\u566a\u58f0\u654f\u611f"),(0,m.kt)("li",{parentName:"ul"},"\u4e0d\u540c\u70b9\uff1a\u4e00\u9636\u8fb9\u7f18\u68c0\u6d4b\u7b97\u5b50\u68c0\u6d4b\u5230\u7684\u8fb9\u7f18\u90fd\u6709\u660e\u786e\u7684\u65b9\u5411\uff0c\u800cLaplace\u7b97\u5b50\u5bf9\u5404\u79cd\u65b9\u5411\u7684\u8fb9\u7f18\u90fd\u6709\u8f83\u597d\u7684\u54cd\u5e94"))),(0,m.kt)("li",{parentName:"ol"},(0,m.kt)("p",{parentName:"li"},"\u5df2\u77e5\u4e00\u5e45\u56fe\u50cf\u53d7\u5230\u52a0\u6027\u968f\u673a\u566a\u58f0\u6c61\u67d3\uff0c\u5206\u6790\u5e76\u5199\u51fa\u4e09\u79cd\u53bb\u9664\u6216\u964d\u4f4e\u566a\u58f0\u7684\u65b9\u6cd5\u3002"),(0,m.kt)("p",{parentName:"li"},"\u7a7a\u57df\u6ee4\u6ce2\uff08\u5747\u503c\u6ee4\u6ce2\u3001\u4e2d\u503c\u6ee4\u6ce2\uff09\uff0c\u9891\u57df\u6ee4\u6ce2\uff08\u5df4\u7279\u6c83\u65af\u4f4e\u901a\u6ee4\u6ce2\uff09\uff0c\u56fe\u50cf\u6062\u590d\u6280\u672f\u3002")),(0,m.kt)("li",{parentName:"ol"},(0,m.kt)("p",{parentName:"li"},"\u5206\u6790\u91c7\u6837\u548c\u91cf\u5316\u7684\u8fc7\u7a0b\uff0c\u4ee5\u53ca\u5b83\u4eec\u5bf9\u6570\u5b57\u5316\u56fe\u50cf\u8d28\u91cf\u7684\u5f71\u54cd\u3002"),(0,m.kt)("p",{parentName:"li"},"\u91c7\u6837\u662f\u628a\u7a7a\u95f4\u4e0a\u8fde\u7eed\u7684\u56fe\u50cf\u8f6c\u6362\u4e3a\u79bb\u6563\u7684\u62bd\u6837\u70b9\uff0c\u5373\u50cf\u7d20\u3002\u91cf\u5316\u5c06\u62bd\u6837\u540e\u6240\u5f97\u7684\u8fde\u7eed\u7684\u50cf\u7d20\u503c\u79bb\u6563\u5316\u4e3a\u6574\u6570\u503c\u3002"),(0,m.kt)("p",{parentName:"li"},"\u5bf9\u6570\u5b57\u5316\u56fe\u50cf\u8d28\u91cf\u7684\u5f71\u54cd\uff1a"),(0,m.kt)("p",{parentName:"li"},(0,m.kt)("strong",{parentName:"p"},"\u91c7\u6837\u95f4\u9694"),"\u8d8a\u5927\uff0c\u6240\u5f97\u56fe\u50cf\u50cf\u7d20\u6570\u8d8a\u5c11\uff0c\u56fe\u50cf\u7a7a\u95f4\u5206\u8fa8\u7387\u8d8a\u4f4e\uff0c\u8d28\u91cf\u8d8a\u5dee\u3002\u53cd\u4e4b\u56fe\u50cf\u8d28\u91cf\u597d\uff0c\u4f46\u6570\u636e\u91cf\u5927\u3002"),(0,m.kt)("p",{parentName:"li"},(0,m.kt)("strong",{parentName:"p"},"\u91cf\u5316\u7b49\u7ea7"),"\u8d8a\u591a\uff08\u7070\u5ea6\u7ea7\u6570\u8d8a\u591a\uff09\uff0c\u6240\u5f97\u56fe\u50cf\u5c42\u6b21\u8d8a\u4e30\u5bcc\uff0c\u7070\u5ea6\u5206\u8fa8\u7387\u8d8a\u9ad8\uff0c\u8d28\u91cf\u8d8a\u597d\uff0c\u4f46\u6570\u636e\u91cf\u5927\u3002\u53cd\u4e4b\uff0c\u56fe\u50cf\u8d28\u91cf\u5dee\uff0c\u4f1a\u51fa\u73b0\u5047\u8f6e\u5ed3\u73b0\u8c61\uff0c\u4f46\u6570\u636e\u91cf\u5c0f\u3002")),(0,m.kt)("li",{parentName:"ol"},(0,m.kt)("p",{parentName:"li"},"\u56fe\u50cf\u566a\u58f0\u7684\u7279\u70b9\u3002"),(0,m.kt)("ul",{parentName:"li"},(0,m.kt)("li",{parentName:"ul"},"\u968f\u673a\u6027"),(0,m.kt)("li",{parentName:"ul"},"\u53e0\u52a0\u6027"),(0,m.kt)("li",{parentName:"ul"},"\u566a\u58f0\u4e0e\u56fe\u50cf\u4e4b\u95f4\u5177\u6709\u76f8\u5173\u6027"))),(0,m.kt)("li",{parentName:"ol"},(0,m.kt)("p",{parentName:"li"},"\u4ec0\u4e48\u662f\u7ebf\u6027\u7070\u5ea6\u62c9\u4f38\uff1f\u7ebf\u6027\u7070\u5ea6\u62c9\u4f38\u53ef\u4ee5\u5206\u4e3a\u51e0\u79cd\u60c5\u51b5\uff1f"),(0,m.kt)("p",{parentName:"li"},"\u7ebf\u6027\u7070\u5ea6\u62c9\u4f38\u662f\u5c06\u8f93\u5165\u56fe\u50cf\u7684\u7070\u5ea6\u503c\u7684\u52a8\u6001\u8303\u56f4\u6309\u7ebf\u6027\u5173\u7cfb\u62c9\u4f38\u6269\u5c55\u81f3\u6307\u5b9a\u8303\u56f4\u6216\u7070\u5ea6\u7684\u6574\u4e2a\u52a8\u6001\u8303\u56f4\u3002"),(0,m.kt)("p",{parentName:"li"},"\u7ebf\u6027\u62c9\u4f38\u53ef\u5206\u4e3a\u6309\u6bd4\u4f8b\u7ebf\u6027\u62c9\u4f38\u548c\u5206\u6bb5\u7ebf\u6027\u62c9\u4f38\u4e24\u79cd\u65b9\u6cd5\u3002\u540c\u65f6\uff0c\u6309\u6bd4\u4f8b\u7ebf\u6027\u62c9\u4f38\u53c8\u53ef\u4ee5\u5206\u4e3a\u5747\u5300\u7ebf\u6027\u62c9\u4f38\u4ee5\u53ca\u9650\u5e45\u7ebf\u6027\u62c9\u4f38\u3002")),(0,m.kt)("li",{parentName:"ol"},(0,m.kt)("p",{parentName:"li"},"\u4f2a\u5f69\u8272\u56fe\u50cf\u5904\u7406\u53ef\u4ee5\u5e94\u7528\u5728\u54ea\u4e9b\u65b9\u9762\uff1f"),(0,m.kt)("ul",{parentName:"li"},(0,m.kt)("li",{parentName:"ul"},"B\u8d85"),(0,m.kt)("li",{parentName:"ul"},"\u77f3\u6cb9\u5f00\u91c7"),(0,m.kt)("li",{parentName:"ul"},"\u5b89\u68c0")))))}c.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/b28e7af0.af92c768.js b/assets/js/b28e7af0.af92c768.js new file mode 100644 index 000000000..a0fe0d8b1 --- /dev/null +++ b/assets/js/b28e7af0.af92c768.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunknpy_notebook=self.webpackChunknpy_notebook||[]).push([[618],{3905:(a,e,t)=>{t.d(e,{Zo:()=>i,kt:()=>h});var n=t(7294);function s(a,e,t){return e in a?Object.defineProperty(a,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):a[e]=t,a}function m(a,e){var t=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable}))),t.push.apply(t,n)}return t}function p(a){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?m(Object(t),!0).forEach((function(e){s(a,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(t)):m(Object(t)).forEach((function(e){Object.defineProperty(a,e,Object.getOwnPropertyDescriptor(t,e))}))}return a}function r(a,e){if(null==a)return{};var t,n,s=function(a,e){if(null==a)return{};var t,n,s={},m=Object.keys(a);for(n=0;n<m.length;n++)t=m[n],e.indexOf(t)>=0||(s[t]=a[t]);return s}(a,e);if(Object.getOwnPropertySymbols){var m=Object.getOwnPropertySymbols(a);for(n=0;n<m.length;n++)t=m[n],e.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(a,t)&&(s[t]=a[t])}return s}var l=n.createContext({}),N=function(a){var e=n.useContext(l),t=e;return a&&(t="function"==typeof a?a(e):p(p({},e),a)),t},i=function(a){var e=N(a.components);return n.createElement(l.Provider,{value:e},a.children)},o="mdxType",c={inlineCode:"code",wrapper:function(a){var e=a.children;return n.createElement(n.Fragment,{},e)}},k=n.forwardRef((function(a,e){var t=a.components,s=a.mdxType,m=a.originalType,l=a.parentName,i=r(a,["components","mdxType","originalType","parentName"]),o=N(t),k=s,h=o["".concat(l,".").concat(k)]||o[k]||c[k]||m;return t?n.createElement(h,p(p({ref:e},i),{},{components:t})):n.createElement(h,p({ref:e},i))}));function h(a,e){var t=arguments,s=e&&e.mdxType;if("string"==typeof a||s){var m=t.length,p=new Array(m);p[0]=k;var r={};for(var l in e)hasOwnProperty.call(e,l)&&(r[l]=e[l]);r.originalType=a,r[o]="string"==typeof a?a:s,p[1]=r;for(var N=2;N<m;N++)p[N]=t[N];return n.createElement.apply(null,p)}return n.createElement.apply(null,t)}k.displayName="MDXCreateElement"},8069:(a,e,t)=>{t.r(e),t.d(e,{assets:()=>l,contentTitle:()=>p,default:()=>c,frontMatter:()=>m,metadata:()=>r,toc:()=>N});var n=t(7462),s=(t(7294),t(3905));const m={},p="\u67e5\u6f0f\u8865\u7f3a",r={unversionedId:"Deep-Learning/Fill-The-Gaps",id:"Deep-Learning/Fill-The-Gaps",title:"\u67e5\u6f0f\u8865\u7f3a",description:"\u8fd9\u91cc\u8bb0\u5f55\u7740\u5728\u5b66\u4e60\u8fc7\u7a0b\u4e2d\u53d1\u73b0\u7684\u7406\u89e3\u6216\u64cd\u4f5c\u65b9\u9762\u51fa\u73b0\u7684\u9519\u8bef\uff0c\u6e29\u6545\u77e5\u65b0\u3002",source:"@site/docs/Deep-Learning/2-Fill-The-Gaps.md",sourceDirName:"Deep-Learning",slug:"/Deep-Learning/Fill-The-Gaps",permalink:"/docs/Deep-Learning/Fill-The-Gaps",draft:!1,tags:[],version:"current",sidebarPosition:2,frontMatter:{},sidebar:"deep_learning",previous:{title:"Welcome",permalink:"/docs/Deep-Learning/intro"},next:{title:"AlexNet",permalink:"/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/AlexNet"}},l={},N=[{value:"Python\u7684\u5e7f\u64ad\u673a\u5236",id:"python\u7684\u5e7f\u64ad\u673a\u5236",level:2},{value:"\u70b9\u79ef\uff08dot product\uff09\u4e0e\u77e9\u9635\u4e58\u6cd5\uff08matmul product\uff09",id:"\u70b9\u79efdot-product\u4e0e\u77e9\u9635\u4e58\u6cd5matmul-product",level:2},{value:"zip\u51fd\u6570\u4e0e\u89e3\u538b\u64cd\u4f5c*",id:"zip\u51fd\u6570\u4e0e\u89e3\u538b\u64cd\u4f5c",level:2},{value:"\u5bf9batch_first\u53c2\u6570\u7684\u7406\u89e3",id:"\u5bf9batch_first\u53c2\u6570\u7684\u7406\u89e3",level:2}],i={toc:N},o="wrapper";function c(a){let{components:e,...t}=a;return(0,s.kt)(o,(0,n.Z)({},i,t,{components:e,mdxType:"MDXLayout"}),(0,s.kt)("h1",{id:"\u67e5\u6f0f\u8865\u7f3a"},"\u67e5\u6f0f\u8865\u7f3a"),(0,s.kt)("admonition",{type:"important"},(0,s.kt)("p",{parentName:"admonition"},"\u8fd9\u91cc\u8bb0\u5f55\u7740\u5728\u5b66\u4e60\u8fc7\u7a0b\u4e2d\u53d1\u73b0\u7684\u7406\u89e3\u6216\u64cd\u4f5c\u65b9\u9762\u51fa\u73b0\u7684\u9519\u8bef\uff0c\u6e29\u6545\u77e5\u65b0\u3002")),(0,s.kt)("h2",{id:"python\u7684\u5e7f\u64ad\u673a\u5236"},"Python\u7684\u5e7f\u64ad\u673a\u5236"),(0,s.kt)("ol",null,(0,s.kt)("li",{parentName:"ol"},(0,s.kt)("p",{parentName:"li"},"\u8fdb\u884c\u5e7f\u64ad\u7684\u6761\u4ef6\uff1a\u4e24\u4e2a\u77e9\u9635\u7684",(0,s.kt)("strong",{parentName:"p"},"\u540e\u7f18\u7ef4\u5ea6\u76f8\u540c\u6216\u5176\u4e2d\u4e00\u65b9\u7684\u7ef4\u5ea6\u4e3a1"),"\u3002"),(0,s.kt)("ol",{parentName:"li"},(0,s.kt)("li",{parentName:"ol"},"\u540e\u7f18\u7ef4\u5ea6\u76f8\u540c\uff1aA\u4e3a\uff083\uff0c4\uff0c5\uff09\u7684\u4e09\u7ef4\u6570\u636e\uff0cB\u4e3a\uff084\uff0c5\uff09\u7684\u4e8c\u7ef4\u6570\u7ec4\u3002\u7531\u4e8eA\u548cB\u7684\u540e\u7f18\u7ef4\u5ea6\u90fd\u4e3a\uff084\uff0c5\uff09\uff0c\u6240\u4ee5\u53ef\u4ee5\u8fdb\u884c\u5e7f\u64ad\u3002\u540c\u7406\uff0c\u5f53A\u4e3a\uff083\uff0c4\uff09\u7684\u4e8c\u7ef4\u6570\u7ec4\uff0cB\u4e3a\uff084\uff0c\uff09\u7684\u6570\u7ec4\uff0c\u4ed6\u4eec\u7684\u540e\u7f18\u7ef4\u5ea6\u90fd\u662f4\uff0c\u6240\u4ee5\u53ef\u4ee5\u8fdb\u884c\u5e7f\u64ad\u3002"),(0,s.kt)("li",{parentName:"ol"},"\u540e\u7f18\u7ef4\u5ea6\u4e2d\u6709\u4e00\u65b9\u7ef4\u5ea6\u4e3a1\uff1aA\u4e3a\uff084\uff0c5\uff09\u7684\u4e8c\u7ef4\u6570\u7ec4\uff0cB\u4e3a\uff084\uff0c1\uff09\u7684\u4e8c\u7ef4\u6570\u7ec4\uff0c\u5176\u4e2d\u4e00\u65b9\u7ef4\u5ea6\u4e3a1\uff0c\u53ef\u4ee5\u8fdb\u884c\u5e7f\u64ad\u3002"))),(0,s.kt)("li",{parentName:"ol"},(0,s.kt)("p",{parentName:"li"},"\u5e7f\u64ad\u7684\u539f\u7406\uff1a\u5728\u8fd0\u7b97\u8fc7\u7a0b\u4e2d\uff0cPython\u9010\u6b65\u5bf9\u6570\u7ec4\u8fdb\u884c\u5e7f\u64ad\uff0c\u5e76\u4e0d\u8fdb\u884c\u5b9e\u9645\u7684\u590d\u5236\u64cd\u4f5c\uff0c\u8282\u7701\u5185\u5b58\u3002"),(0,s.kt)("p",{parentName:"li"},"\u4ee5\u4e0b\u662f\u4e3e\u51fa\u5177\u4f53\u4f8b\u5b50\u8fdb\u884c\u5206\u6790\uff1a"),(0,s.kt)("pre",{parentName:"li"},(0,s.kt)("code",{parentName:"pre",className:"language-python"},'import numpy as np\nimport torch\n\nx = torch.tensor(np.arange(9), dtype=torch.float32)\nx = torch.reshape(x, (3, 3))\nprint(x)\n\nx1 = x[:, :, None] # (3, 3, 1)\nprint(x1)\n"""\ntensor([[[0.],\n [1.],\n [2.]],\n [[3.],\n [4.],\n [5.]],\n [[6.],\n [7.],\n [8.]]])\n"""\n\nx2 = x[:, None] # (3, 1, 3)\nprint(x2)\n"""\ntensor([[[0., 1., 2.]],\n [[3., 4., 5.]],\n [[6., 7., 8.]]])\n"""\n\noutput = x1 + x2\nprint(output)\n"""\ntensor([[[ 0., 1., 2.],\n [ 1., 2., 3.],\n [ 2., 3., 4.]],\n [[ 6., 7., 8.],\n [ 7., 8., 9.],\n [ 8., 9., 10.]],\n [[12., 13., 14.],\n [13., 14., 15.],\n [14., 15., 16.]]])\n"""\n\n')),(0,s.kt)("p",{parentName:"li"},"\u7531\u4e8ex1\u4e0ex2\u5728",(0,s.kt)("strong",{parentName:"p"},"\u7b2c0\u7ef4\u5ea6\u4e0a\u7ef4\u5ea6\u76f8\u540c"),"\uff0c\u6240\u4ee5Python\u53ef\u4ee5",(0,s.kt)("strong",{parentName:"p"},"\u76f4\u63a5\u8fdb\u884c\u9010\u5143\u7d20\u76f8\u52a0"),"\uff0c\u5373\u4f9d\u6b21\u8fdb\u884c\u5982\u4e0b\u8fd0\u7b97"),(0,s.kt)("div",{parentName:"li",className:"math math-display"},(0,s.kt)("span",{parentName:"div",className:"katex-display"},(0,s.kt)("span",{parentName:"span",className:"katex"},(0,s.kt)("span",{parentName:"span",className:"katex-mathml"},(0,s.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,s.kt)("semantics",{parentName:"math"},(0,s.kt)("mtable",{parentName:"semantics",width:"100%"},(0,s.kt)("mtr",{parentName:"mtable"},(0,s.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,s.kt)("mtd",{parentName:"mtr"},(0,s.kt)("mrow",{parentName:"mtd"},(0,s.kt)("mi",{parentName:"mrow"},"x"),(0,s.kt)("mn",{parentName:"mrow"},"1"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},"["),(0,s.kt)("mn",{parentName:"mrow"},"0"),(0,s.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,s.kt)("mo",{parentName:"mrow"},":"),(0,s.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,s.kt)("mo",{parentName:"mrow"},":"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},"]"),(0,s.kt)("mo",{parentName:"mrow"},"+"),(0,s.kt)("mi",{parentName:"mrow"},"x"),(0,s.kt)("mn",{parentName:"mrow"},"2"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},"["),(0,s.kt)("mn",{parentName:"mrow"},"0"),(0,s.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,s.kt)("mo",{parentName:"mrow"},":"),(0,s.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,s.kt)("mo",{parentName:"mrow"},":"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},"]"))),(0,s.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,s.kt)("mtd",{parentName:"mtr"},(0,s.kt)("mtext",{parentName:"mtd"},"(1)")))),(0,s.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"x1[0, :, :] + x2[0, :, :] \\tag{1}")))),(0,s.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal"},"x"),(0,s.kt)("span",{parentName:"span",className:"mord"},"1"),(0,s.kt)("span",{parentName:"span",className:"mopen"},"["),(0,s.kt)("span",{parentName:"span",className:"mord"},"0"),(0,s.kt)("span",{parentName:"span",className:"mpunct"},","),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,s.kt)("span",{parentName:"span",className:"mrel"},":")),(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"0.625em",verticalAlign:"-0.1944em"}}),(0,s.kt)("span",{parentName:"span",className:"mpunct"},","),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,s.kt)("span",{parentName:"span",className:"mrel"},":")),(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,s.kt)("span",{parentName:"span",className:"mclose"},"]"),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,s.kt)("span",{parentName:"span",className:"mbin"},"+"),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}})),(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal"},"x"),(0,s.kt)("span",{parentName:"span",className:"mord"},"2"),(0,s.kt)("span",{parentName:"span",className:"mopen"},"["),(0,s.kt)("span",{parentName:"span",className:"mord"},"0"),(0,s.kt)("span",{parentName:"span",className:"mpunct"},","),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,s.kt)("span",{parentName:"span",className:"mrel"},":")),(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"0.625em",verticalAlign:"-0.1944em"}}),(0,s.kt)("span",{parentName:"span",className:"mpunct"},","),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,s.kt)("span",{parentName:"span",className:"mrel"},":")),(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,s.kt)("span",{parentName:"span",className:"mclose"},"]")),(0,s.kt)("span",{parentName:"span",className:"tag"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,s.kt)("span",{parentName:"span",className:"mord text"},(0,s.kt)("span",{parentName:"span",className:"mord"},"("),(0,s.kt)("span",{parentName:"span",className:"mord"},(0,s.kt)("span",{parentName:"span",className:"mord"},"1")),(0,s.kt)("span",{parentName:"span",className:"mord"},")"))))))),(0,s.kt)("div",{parentName:"li",className:"math math-display"},(0,s.kt)("span",{parentName:"div",className:"katex-display"},(0,s.kt)("span",{parentName:"span",className:"katex"},(0,s.kt)("span",{parentName:"span",className:"katex-mathml"},(0,s.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,s.kt)("semantics",{parentName:"math"},(0,s.kt)("mtable",{parentName:"semantics",width:"100%"},(0,s.kt)("mtr",{parentName:"mtable"},(0,s.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,s.kt)("mtd",{parentName:"mtr"},(0,s.kt)("mrow",{parentName:"mtd"},(0,s.kt)("mi",{parentName:"mrow"},"x"),(0,s.kt)("mn",{parentName:"mrow"},"1"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},"["),(0,s.kt)("mn",{parentName:"mrow"},"1"),(0,s.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,s.kt)("mo",{parentName:"mrow"},":"),(0,s.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,s.kt)("mo",{parentName:"mrow"},":"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},"]"),(0,s.kt)("mo",{parentName:"mrow"},"+"),(0,s.kt)("mi",{parentName:"mrow"},"x"),(0,s.kt)("mn",{parentName:"mrow"},"2"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},"["),(0,s.kt)("mn",{parentName:"mrow"},"1"),(0,s.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,s.kt)("mo",{parentName:"mrow"},":"),(0,s.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,s.kt)("mo",{parentName:"mrow"},":"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},"]"))),(0,s.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,s.kt)("mtd",{parentName:"mtr"},(0,s.kt)("mtext",{parentName:"mtd"},"(2)")))),(0,s.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"x1[1, :, :] + x2[1, :, :] \\tag{2}")))),(0,s.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal"},"x"),(0,s.kt)("span",{parentName:"span",className:"mord"},"1"),(0,s.kt)("span",{parentName:"span",className:"mopen"},"["),(0,s.kt)("span",{parentName:"span",className:"mord"},"1"),(0,s.kt)("span",{parentName:"span",className:"mpunct"},","),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,s.kt)("span",{parentName:"span",className:"mrel"},":")),(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"0.625em",verticalAlign:"-0.1944em"}}),(0,s.kt)("span",{parentName:"span",className:"mpunct"},","),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,s.kt)("span",{parentName:"span",className:"mrel"},":")),(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,s.kt)("span",{parentName:"span",className:"mclose"},"]"),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,s.kt)("span",{parentName:"span",className:"mbin"},"+"),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}})),(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal"},"x"),(0,s.kt)("span",{parentName:"span",className:"mord"},"2"),(0,s.kt)("span",{parentName:"span",className:"mopen"},"["),(0,s.kt)("span",{parentName:"span",className:"mord"},"1"),(0,s.kt)("span",{parentName:"span",className:"mpunct"},","),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,s.kt)("span",{parentName:"span",className:"mrel"},":")),(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"0.625em",verticalAlign:"-0.1944em"}}),(0,s.kt)("span",{parentName:"span",className:"mpunct"},","),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,s.kt)("span",{parentName:"span",className:"mrel"},":")),(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,s.kt)("span",{parentName:"span",className:"mclose"},"]")),(0,s.kt)("span",{parentName:"span",className:"tag"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,s.kt)("span",{parentName:"span",className:"mord text"},(0,s.kt)("span",{parentName:"span",className:"mord"},"("),(0,s.kt)("span",{parentName:"span",className:"mord"},(0,s.kt)("span",{parentName:"span",className:"mord"},"2")),(0,s.kt)("span",{parentName:"span",className:"mord"},")"))))))),(0,s.kt)("div",{parentName:"li",className:"math math-display"},(0,s.kt)("span",{parentName:"div",className:"katex-display"},(0,s.kt)("span",{parentName:"span",className:"katex"},(0,s.kt)("span",{parentName:"span",className:"katex-mathml"},(0,s.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,s.kt)("semantics",{parentName:"math"},(0,s.kt)("mtable",{parentName:"semantics",width:"100%"},(0,s.kt)("mtr",{parentName:"mtable"},(0,s.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,s.kt)("mtd",{parentName:"mtr"},(0,s.kt)("mrow",{parentName:"mtd"},(0,s.kt)("mi",{parentName:"mrow"},"x"),(0,s.kt)("mn",{parentName:"mrow"},"1"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},"["),(0,s.kt)("mn",{parentName:"mrow"},"2"),(0,s.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,s.kt)("mo",{parentName:"mrow"},":"),(0,s.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,s.kt)("mo",{parentName:"mrow"},":"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},"]"),(0,s.kt)("mo",{parentName:"mrow"},"+"),(0,s.kt)("mi",{parentName:"mrow"},"x"),(0,s.kt)("mn",{parentName:"mrow"},"2"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},"["),(0,s.kt)("mn",{parentName:"mrow"},"2"),(0,s.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,s.kt)("mo",{parentName:"mrow"},":"),(0,s.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,s.kt)("mo",{parentName:"mrow"},":"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},"]"))),(0,s.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,s.kt)("mtd",{parentName:"mtr"},(0,s.kt)("mtext",{parentName:"mtd"},"(3)")))),(0,s.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"x1[2, :, :] + x2[2, :, :] \\tag{3}")))),(0,s.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal"},"x"),(0,s.kt)("span",{parentName:"span",className:"mord"},"1"),(0,s.kt)("span",{parentName:"span",className:"mopen"},"["),(0,s.kt)("span",{parentName:"span",className:"mord"},"2"),(0,s.kt)("span",{parentName:"span",className:"mpunct"},","),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,s.kt)("span",{parentName:"span",className:"mrel"},":")),(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"0.625em",verticalAlign:"-0.1944em"}}),(0,s.kt)("span",{parentName:"span",className:"mpunct"},","),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,s.kt)("span",{parentName:"span",className:"mrel"},":")),(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,s.kt)("span",{parentName:"span",className:"mclose"},"]"),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,s.kt)("span",{parentName:"span",className:"mbin"},"+"),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}})),(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal"},"x"),(0,s.kt)("span",{parentName:"span",className:"mord"},"2"),(0,s.kt)("span",{parentName:"span",className:"mopen"},"["),(0,s.kt)("span",{parentName:"span",className:"mord"},"2"),(0,s.kt)("span",{parentName:"span",className:"mpunct"},","),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,s.kt)("span",{parentName:"span",className:"mrel"},":")),(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"0.625em",verticalAlign:"-0.1944em"}}),(0,s.kt)("span",{parentName:"span",className:"mpunct"},","),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,s.kt)("span",{parentName:"span",className:"mrel"},":")),(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,s.kt)("span",{parentName:"span",className:"mclose"},"]")),(0,s.kt)("span",{parentName:"span",className:"tag"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,s.kt)("span",{parentName:"span",className:"mord text"},(0,s.kt)("span",{parentName:"span",className:"mord"},"("),(0,s.kt)("span",{parentName:"span",className:"mord"},(0,s.kt)("span",{parentName:"span",className:"mord"},"3")),(0,s.kt)("span",{parentName:"span",className:"mord"},")"))))))))),(0,s.kt)("p",null," \u4f46\u5728\u7b2c0\u7ef4\u5ea6\u7684\u76f8\u52a0\u8fc7\u7a0b\u4e2d\u51fa\u73b0\u4e86shape\u4e3a(3, 1)\u7684\u77e9\u9635\u4e0eshape\u4e3a(1, 3)\u7684\u77e9\u9635\u76f8\u52a0\u7684\u60c5\u51b5\uff0c\u6b64\u65f6\u8fdb\u884c\u5e7f\u64ad\uff0c\u5c06(3, 1)\u7684\u6bcf\u4e00\u5217\u590d\u5236\u4e09\u6b21\u4e3a(3, 3)\uff0c\u5c06(1, 3)\u7684\u6bcf\u4e00\u884c\u590d\u5236\u4e09\u6b21\u4e3a(3, 3)\uff0c\u518d\u8fdb\u884c\u9010\u5143\u7d20\u76f8\u52a0\u3002"),(0,s.kt)("p",null," \u5176\u5b9e\uff0c\u4e0a\u8ff0\u7684\u8fc7\u7a0b\u8fd8\u53ef\u4ee5\u518d\u7ec6\u5206\u4e3a\uff0cx1","[0, 0, :]","\u4e0ex2","[0, 0, :]","\u76f8\u52a0\u65f6\u51fa\u73b0\u4e86\u7b2c\u4e00\u6b21\u5e7f\u64ad\uff0c\u5c06x1","[0, 0, :]","\u590d\u5236\u4e86\u4e09\u6b21\u4e0ex2","[0,0, :]","\u5b8c\u6210\u76f8\u52a0\uff0c\u8fd9\u91cc\u4e0d\u518d\u8d58\u8ff0\uff0c\u6700\u7ec8\u60f3\u8868\u8fbe\u7684\u539f\u7406\u662f",(0,s.kt)("strong",{parentName:"p"},"\u5e7f\u64ad\u673a\u5236\u662f\u5728\u8fd0\u7b97\u8fc7\u7a0b\u5f53\u4e2d\u8fdb\u884c\u7684\uff0c\u5e76\u975e\u4e00\u6b21\u6027\u5c06\u4e8c\u8005\u5168\u90e8\u590d\u5236\u4e3a\u5bf9\u5e94\u7684\u6700\u5c0f\u516c\u500d\u6570\u5f62\u72b6\u540e\u518d\u8fdb\u884c\u8fd0\u7b97"),"\u3002"),(0,s.kt)("h2",{id:"\u70b9\u79efdot-product\u4e0e\u77e9\u9635\u4e58\u6cd5matmul-product"},"\u70b9\u79ef\uff08dot product\uff09\u4e0e\u77e9\u9635\u4e58\u6cd5\uff08matmul product\uff09"),(0,s.kt)("ol",null,(0,s.kt)("li",{parentName:"ol"},"\u70b9\u79ef\u5728Python\u4e2d\u5bf9\u5e94\u7684\u8fd0\u7b97\u7b26\u4e3a*\uff0c\u8fdb\u884c\u77e9\u9635\u4e4b\u95f4\u7684\u9010\u5143\u7d20\u4e58\u6cd5\u3002\u5728\u70b9\u79ef\u8fd0\u7b97\u4e2d\uff0c\u8fd0\u7b97\u77e9\u9635\u4e8c\u8005\u5f62\u72b6\u4e0d\u4e00\u6837\u65f6\u53ef\u80fd\u6d89\u53ca\u5230\u5e7f\u64ad\u673a\u5236\uff1b"),(0,s.kt)("li",{parentName:"ol"},"\u77e9\u9635\u4e58\u6cd5\u5728Python\u4e2d\u5bf9\u5e94\u7684\u8fd0\u7b97\u7b26\u4e3a@\uff0c\u8fdb\u884c\u5e38\u89c4\u77e9\u9635\u4e58\u6cd5\u3002\u9075\u5b88\u5de6\u77e9\u9635\u7684\u5217\u6570\u5fc5\u987b\u7b49\u4e8e\u53f3\u77e9\u9635\u7684\u884c\u6570\uff0c\u4e14\u8f93\u51fa\u77e9\u9635\u7684\u884c\u6570\u7b49\u4e8e\u5de6\u77e9\u9635\u7684\u884c\u6570\u3001\u8f93\u51fa\u77e9\u9635\u7684\u5217\u6570\u7b49\u4e8e\u53f3\u77e9\u9635\u7684\u5217\u6570\u7684\u89c4\u5219\u3002")),(0,s.kt)("h2",{id:"zip\u51fd\u6570\u4e0e\u89e3\u538b\u64cd\u4f5c"},"zip\u51fd\u6570\u4e0e\u89e3\u538b\u64cd\u4f5c*"),(0,s.kt)("p",null,"\u5f53\u4f60\u6709\u591a\u4e2a\u5217\u8868\uff08\u6216\u5176\u4ed6\u53ef\u8fed\u4ee3\u5bf9\u8c61\uff09\u65f6\uff0c",(0,s.kt)("inlineCode",{parentName:"p"},"zip"),"\u51fd\u6570\u53ef\u4ee5\u5c06\u5b83\u4eec\u9010\u4e2a\u914d\u5bf9\u6210\u5143\u7ec4\u3002\u800c",(0,s.kt)("inlineCode",{parentName:"p"},"*"),"\u64cd\u4f5c\u7b26\u7528\u4e8e\u89e3\u538b\u5143\u7ec4\uff0c\u5c06\u5143\u7ec4\u4e2d\u7684\u5143\u7d20\u5206\u522b\u4f5c\u4e3a\u53c2\u6570\u4f20\u9012\u7ed9\u51fd\u6570\u3002"),(0,s.kt)("p",null,"\u4ee5\u4e0b\u662f\u4e00\u4e2a\u7b80\u5355\u7684\u4f8b\u5b50\uff1a"),(0,s.kt)("pre",null,(0,s.kt)("code",{parentName:"pre",className:"language-python"},"# zip\u51fd\u6570\u7684\u4f8b\u5b50\nlist1 = [1, 2, 3]\nlist2 = ['a', 'b', 'c']\nlist3 = ['x', 'y', 'z']\n\n# \u4f7f\u7528zip\u5c06\u591a\u4e2a\u5217\u8868\u914d\u5bf9\u6210\u5143\u7ec4\nzipped_lists = zip(list1, list2, list3)\n\n# \u6253\u5370\u914d\u5bf9\u540e\u7684\u5143\u7ec4\nfor item in zipped_lists:\n print(item)\n")),(0,s.kt)("p",null,"\u8f93\u51fa\uff1a"),(0,s.kt)("pre",null,(0,s.kt)("code",{parentName:"pre"},"(1, 'a', 'x')\n(2, 'b', 'y')\n(3, 'c', 'z')\n")),(0,s.kt)("p",null,"\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c",(0,s.kt)("inlineCode",{parentName:"p"},"zip"),"\u5c06",(0,s.kt)("inlineCode",{parentName:"p"},"list1"),"\u3001",(0,s.kt)("inlineCode",{parentName:"p"},"list2"),"\u548c",(0,s.kt)("inlineCode",{parentName:"p"},"list3"),"\u4e2d\u76f8\u540c\u4f4d\u7f6e\u7684\u5143\u7d20\u7ec4\u5408\u6210\u5143\u7ec4\u3002"),(0,s.kt)("p",null,"\u63a5\u4e0b\u6765\uff0c\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528 ",(0,s.kt)("inlineCode",{parentName:"p"},"*")," \u64cd\u4f5c\u7b26\u89e3\u538b\u8fd9\u4e9b\u5143\u7ec4\uff1a"),(0,s.kt)("pre",null,(0,s.kt)("code",{parentName:"pre",className:"language-python"},"# *\u89e3\u538b\u64cd\u4f5c\u7684\u4f8b\u5b50\nunzipped_lists = zip(*zipped_lists)\n\n# \u6253\u5370\u89e3\u538b\u540e\u7684\u5217\u8868\nfor item in unzipped_lists:\n print(item)\n")),(0,s.kt)("p",null,"\u8f93\u51fa\uff1a"),(0,s.kt)("pre",null,(0,s.kt)("code",{parentName:"pre"},"(1, 2, 3)\n('a', 'b', 'c')\n('x', 'y', 'z')\n")),(0,s.kt)("p",null,"\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c",(0,s.kt)("inlineCode",{parentName:"p"},"*"),"\u64cd\u4f5c\u7b26\u5c06\u5148\u524d\u7531",(0,s.kt)("inlineCode",{parentName:"p"},"zip"),"\u7ec4\u5408\u7684\u5143\u7ec4\u89e3\u538b\uff0c\u5206\u522b\u653e\u56de\u539f\u59cb\u7684\u5217\u8868\u3002"),(0,s.kt)("h2",{id:"\u5bf9batch_first\u53c2\u6570\u7684\u7406\u89e3"},"\u5bf9batch_first\u53c2\u6570\u7684\u7406\u89e3"),(0,s.kt)("admonition",{title:"\u53c2\u8003\u8d44\u6599",type:"info"},(0,s.kt)("p",{parentName:"admonition"},(0,s.kt)("a",{parentName:"p",href:"https://www.jianshu.com/p/41c15d301542"},"https://www.jianshu.com/p/41c15d301542"))),(0,s.kt)("p",null,"\u5bf9\u4e8e\u4e0d\u540c\u7684\u7f51\u7edc\u5c42\uff0c\u8f93\u5165\u7684\u7ef4\u5ea6\u867d\u7136\u4e0d\u540c\uff0c\u4f46\u662f\u901a\u5e38\u8f93\u5165\u7684\u7b2c\u4e00\u4e2a\u7ef4\u5ea6\u90fd\u662fbatch_size\uff0c\u6bd4\u5982",(0,s.kt)("inlineCode",{parentName:"p"},"torch.nn.Linear"),"\u7684\u8f93\u5165",(0,s.kt)("inlineCode",{parentName:"p"},"(batch_size,in_features)"),"\uff0c",(0,s.kt)("inlineCode",{parentName:"p"},"torch.nn.Conv2d"),"\u7684\u8f93\u5165",(0,s.kt)("inlineCode",{parentName:"p"},"(batch_size, C, H, W)"),"\u3002"),(0,s.kt)("p",null,"\u800c",(0,s.kt)("inlineCode",{parentName:"p"},"RNN"),"\u7684\u8f93\u5165\u662f",(0,s.kt)("inlineCode",{parentName:"p"},"(seq_len, batch_size, input_size)"),"\uff0c",(0,s.kt)("inlineCode",{parentName:"p"},"batch_size"),"\u4f4d\u4e8e\u7b2c\u4e8c\u7ef4\u5ea6\uff01\u867d\u7136\u53ef\u4ee5\u5c06",(0,s.kt)("inlineCode",{parentName:"p"},"batch_size"),"\u548c\u5e8f\u5217\u957f\u5ea6",(0,s.kt)("inlineCode",{parentName:"p"},"seq_len"),"\u5bf9\u6362\u4f4d\u7f6e\uff0c\u6b64\u65f6",(0,s.kt)("strong",{parentName:"p"},"\u53ea\u9700\u4ee4batch_first=True"),"\u3002"),(0,s.kt)("p",null,"\u4f46\u662f",(0,s.kt)("strong",{parentName:"p"},"\u4e3a\u4ec0\u4e48RNN\u8f93\u5165\u9ed8\u8ba4\u4e0d\u662fbatch first=True\uff1f\u8fd9\u662f\u4e3a\u4e86\u4fbf\u4e8e\u5e76\u884c\u8ba1\u7b97"),"\u3002"),(0,s.kt)("p",null,"\u56e0\u4e3acuDNN\u4e2dRNN\u7684API\u5c31\u662fbatch_size\u5728\u7b2c\u4e8c\u7ef4\u5ea6\u3002\u8fdb\u4e00\u6b65\u8bb2\uff0c",(0,s.kt)("inlineCode",{parentName:"p"},"batch first"),"\u610f\u5473\u7740\u6a21\u578b\u7684\u8f93\u5165\uff08\u4e00\u4e2aTensor\uff09\u5728\u5185\u5b58\u4e2d\u5b58\u50a8\u65f6\uff0c\u5148\u5b58\u50a8\u7b2c\u4e00\u4e2asequence\uff0c\u518d\u5b58\u50a8\u7b2c\u4e8c\u4e2a\uff0c\u800c\u5982\u679c\u662f",(0,s.kt)("inlineCode",{parentName:"p"},"seq_len first"),"\uff0c\u6a21\u578b\u7684\u8f93\u5165\u5728\u5185\u5b58\u4e2d\uff0c\u5148\u5b58\u50a8\u6bcf\u4e00\u4e2asequence\u7684\u7b2c\u4e00\u4e2a\u5143\u7d20\uff0c\u7136\u540e\u662f\u7b2c\u4e8c\u4e2a\u5143\u7d20\uff0c\u4e24\u79cd\u533a\u522b\u5982\u4e0b\u56fe\u6240\u793a\uff1a"),(0,s.kt)("p",null,(0,s.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_images9136879-3948ad90daaf094a.png",alt:"img"})),(0,s.kt)("p",null,(0,s.kt)("strong",{parentName:"p"},(0,s.kt)("inlineCode",{parentName:"strong"},"seq_len first"),"\u610f\u5473\u7740\u4e0d\u540c\u5e8f\u5217\u4e2d\u540c\u4e00\u4e2a\u65f6\u523b\u5bf9\u5e94\u7684\u8f93\u5165\u5355\u5143\u5728\u5185\u5b58\u4e2d\u662f\u6bd7\u90bb\u7684\uff0c\u8fd9\u6837\u624d\u80fd\u505a\u5230\u771f\u6b63\u7684batch\u8ba1\u7b97\u3002")))}c.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/b529c19d.c756283b.js b/assets/js/b529c19d.c756283b.js new file mode 100644 index 000000000..ed362f8f9 --- /dev/null +++ b/assets/js/b529c19d.c756283b.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunknpy_notebook=self.webpackChunknpy_notebook||[]).push([[1835],{3905:(a,e,t)=>{t.d(e,{Zo:()=>i,kt:()=>h});var s=t(7294);function m(a,e,t){return e in a?Object.defineProperty(a,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):a[e]=t,a}function n(a,e){var t=Object.keys(a);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(a);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable}))),t.push.apply(t,s)}return t}function p(a){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?n(Object(t),!0).forEach((function(e){m(a,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(t)):n(Object(t)).forEach((function(e){Object.defineProperty(a,e,Object.getOwnPropertyDescriptor(t,e))}))}return a}function r(a,e){if(null==a)return{};var t,s,m=function(a,e){if(null==a)return{};var t,s,m={},n=Object.keys(a);for(s=0;s<n.length;s++)t=n[s],e.indexOf(t)>=0||(m[t]=a[t]);return m}(a,e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);for(s=0;s<n.length;s++)t=n[s],e.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(a,t)&&(m[t]=a[t])}return m}var N=s.createContext({}),l=function(a){var e=s.useContext(N),t=e;return a&&(t="function"==typeof a?a(e):p(p({},e),a)),t},i=function(a){var e=l(a.components);return s.createElement(N.Provider,{value:e},a.children)},k="mdxType",c={inlineCode:"code",wrapper:function(a){var e=a.children;return s.createElement(s.Fragment,{},e)}},o=s.forwardRef((function(a,e){var t=a.components,m=a.mdxType,n=a.originalType,N=a.parentName,i=r(a,["components","mdxType","originalType","parentName"]),k=l(t),o=m,h=k["".concat(N,".").concat(o)]||k[o]||c[o]||n;return t?s.createElement(h,p(p({ref:e},i),{},{components:t})):s.createElement(h,p({ref:e},i))}));function h(a,e){var t=arguments,m=e&&e.mdxType;if("string"==typeof a||m){var n=t.length,p=new Array(n);p[0]=o;var r={};for(var N in e)hasOwnProperty.call(e,N)&&(r[N]=e[N]);r.originalType=a,r[k]="string"==typeof a?a:m,p[1]=r;for(var l=2;l<n;l++)p[l]=t[l];return s.createElement.apply(null,p)}return s.createElement.apply(null,t)}o.displayName="MDXCreateElement"},5470:(a,e,t)=>{t.r(e),t.d(e,{assets:()=>N,contentTitle:()=>p,default:()=>c,frontMatter:()=>n,metadata:()=>r,toc:()=>l});var s=t(7462),m=(t(7294),t(3905));const n={},p="\u6fc0\u6d3b\u51fd\u6570\u4e0eLoss\u7684\u68af\u5ea6",r={unversionedId:"Deep-Learning/\u57fa\u7840\u77e5\u8bc6/\u6fc0\u6d3b\u51fd\u6570\u4e0eLoss\u7684\u68af\u5ea6",id:"Deep-Learning/\u57fa\u7840\u77e5\u8bc6/\u6fc0\u6d3b\u51fd\u6570\u4e0eLoss\u7684\u68af\u5ea6",title:"\u6fc0\u6d3b\u51fd\u6570\u4e0eLoss\u7684\u68af\u5ea6",description:"\u4e00\u3001\u6fc0\u6d3b\u51fd\u6570",source:"@site/docs/Deep-Learning/3-\u57fa\u7840\u77e5\u8bc6/\u6fc0\u6d3b\u51fd\u6570\u4e0eLoss\u7684\u68af\u5ea6.md",sourceDirName:"Deep-Learning/3-\u57fa\u7840\u77e5\u8bc6",slug:"/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/\u6fc0\u6d3b\u51fd\u6570\u4e0eLoss\u7684\u68af\u5ea6",permalink:"/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/\u6fc0\u6d3b\u51fd\u6570\u4e0eLoss\u7684\u68af\u5ea6",draft:!1,tags:[],version:"current",frontMatter:{},sidebar:"deep_learning",previous:{title:"\u6df1\u5ea6\u53ef\u5206\u79bb\u5377\u79ef",permalink:"/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/\u6df1\u5ea6\u53ef\u5206\u79bb\u5377\u79ef"},next:{title:"Visdom\u53ef\u89c6\u5316",permalink:"/docs/Deep-Learning/\u5b9e\u6218\u7ec3\u4e60/Visdom Visualization"}},N={},l=[{value:"\u4e00\u3001\u6fc0\u6d3b\u51fd\u6570",id:"\u4e00\u6fc0\u6d3b\u51fd\u6570",level:2},{value:"1. Sigmoid\u51fd\u6570 / Logistic\u51fd\u6570",id:"1-sigmoid\u51fd\u6570--logistic\u51fd\u6570",level:3},{value:"2. \u7ebf\u6027\u6574\u6d41\u5355\u5143\uff08Rectified Linear Unit, ReLU\uff09",id:"2-\u7ebf\u6027\u6574\u6d41\u5355\u5143rectified-linear-unit-relu",level:3},{value:"\u4e8c\u3001\u635f\u5931\u51fd\u6570",id:"\u4e8c\u635f\u5931\u51fd\u6570",level:2},{value:"1. Mean Squared Error \u5747\u65b9\u8bef\u5dee",id:"1-mean-squared-error-\u5747\u65b9\u8bef\u5dee",level:3},{value:"2. Cross Entropy Loss \u4ea4\u53c9\u71b5\u635f\u5931",id:"2-cross-entropy-loss-\u4ea4\u53c9\u71b5\u635f\u5931",level:3},{value:"\u4fe1\u606f\u71b5",id:"\u4fe1\u606f\u71b5",level:4},{value:"KL\u6563\u5ea6",id:"kl\u6563\u5ea6",level:4},{value:"\u4ea4\u53c9\u71b5",id:"\u4ea4\u53c9\u71b5",level:4},{value:"PyTorch\u4e2d\u7684CrossEntropyLoss",id:"pytorch\u4e2d\u7684crossentropyloss",level:4}],i={toc:l},k="wrapper";function c(a){let{components:e,...t}=a;return(0,m.kt)(k,(0,s.Z)({},i,t,{components:e,mdxType:"MDXLayout"}),(0,m.kt)("h1",{id:"\u6fc0\u6d3b\u51fd\u6570\u4e0eloss\u7684\u68af\u5ea6"},"\u6fc0\u6d3b\u51fd\u6570\u4e0eLoss\u7684\u68af\u5ea6"),(0,m.kt)("h2",{id:"\u4e00\u6fc0\u6d3b\u51fd\u6570"},"\u4e00\u3001\u6fc0\u6d3b\u51fd\u6570"),(0,m.kt)("h3",{id:"1-sigmoid\u51fd\u6570--logistic\u51fd\u6570"},"1. Sigmoid\u51fd\u6570 / Logistic\u51fd\u6570"),(0,m.kt)("div",{className:"math math-display"},(0,m.kt)("span",{parentName:"div",className:"katex-display"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mtable",{parentName:"semantics",width:"100%"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mrow",{parentName:"mtd"},(0,m.kt)("mi",{parentName:"mrow"},"\u03c3"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"x"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("mfrac",{parentName:"mrow"},(0,m.kt)("mn",{parentName:"mfrac"},"1"),(0,m.kt)("mrow",{parentName:"mfrac"},(0,m.kt)("mn",{parentName:"mrow"},"1"),(0,m.kt)("mo",{parentName:"mrow"},"+"),(0,m.kt)("msup",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msup"},"e"),(0,m.kt)("mrow",{parentName:"msup"},(0,m.kt)("mo",{parentName:"mrow"},"\u2212"),(0,m.kt)("mi",{parentName:"mrow"},"x"))))))),(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mtext",{parentName:"mtd"},"(1)")))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"\\sigma(x) = \\frac{1}{1 + e^{-x}} \\tag{1}")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"\u03c3"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"x"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"="),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"2.0908em",verticalAlign:"-0.7693em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mopen nulldelimiter"}),(0,m.kt)("span",{parentName:"span",className:"mfrac"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.3214em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.314em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"1"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"+"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"e"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.6973em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.989em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"\u2212"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"x"))))))))))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.23em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"frac-line",style:{borderBottomWidth:"0.04em"}})),(0,m.kt)("span",{parentName:"span",style:{top:"-3.677em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"1")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.7693em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"mclose nulldelimiter"}))),(0,m.kt)("span",{parentName:"span",className:"tag"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"2.0908em",verticalAlign:"-0.7693em"}}),(0,m.kt)("span",{parentName:"span",className:"mord text"},(0,m.kt)("span",{parentName:"span",className:"mord"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"1")),(0,m.kt)("span",{parentName:"span",className:"mord"},")"))))))),(0,m.kt)("div",{className:"math math-display"},(0,m.kt)("span",{parentName:"div",className:"katex-display"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mtable",{parentName:"semantics",width:"100%"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mrow",{parentName:"mtd"},(0,m.kt)("mfrac",{parentName:"mrow"},(0,m.kt)("mrow",{parentName:"mfrac"},(0,m.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"d"),(0,m.kt)("mi",{parentName:"mrow"},"\u03c3")),(0,m.kt)("mrow",{parentName:"mfrac"},(0,m.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"d"),(0,m.kt)("mi",{parentName:"mrow"},"x"))),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("mi",{parentName:"mrow"},"\u03c3"),(0,m.kt)("mtext",{parentName:"mrow"},"\xa0"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mn",{parentName:"mrow"},"1"),(0,m.kt)("mo",{parentName:"mrow"},"\u2212"),(0,m.kt)("mi",{parentName:"mrow"},"\u03c3"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"))),(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mtext",{parentName:"mtd"},"(2)")))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"\\frac{{\\rm d}\\sigma}{{\\rm d}x} = \\sigma \\space (1 - \\sigma) \\tag{2}")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"2.0574em",verticalAlign:"-0.686em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mopen nulldelimiter"}),(0,m.kt)("span",{parentName:"span",className:"mfrac"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.3714em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.314em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathrm"},"d"))),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"x"))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.23em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"frac-line",style:{borderBottomWidth:"0.04em"}})),(0,m.kt)("span",{parentName:"span",style:{top:"-3.677em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathrm"},"d"))),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"\u03c3")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.686em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"mclose nulldelimiter"})),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"="),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"\u03c3"),(0,m.kt)("span",{parentName:"span",className:"mspace"},"\xa0"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},"1"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"\u2212"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"\u03c3"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")")),(0,m.kt)("span",{parentName:"span",className:"tag"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"2.0574em",verticalAlign:"-0.686em"}}),(0,m.kt)("span",{parentName:"span",className:"mord text"},(0,m.kt)("span",{parentName:"span",className:"mord"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"2")),(0,m.kt)("span",{parentName:"span",className:"mord"},")"))))))),(0,m.kt)("p",null," \u4f18\u70b9\uff1a\u53ef\u4ee5\u5c06\u6570\u636e\u538b\u7f29\u81f3[0, 1)\u533a\u95f4\u5185\uff0c\u6709\u8f83\u5927\u5b9e\u7528\u610f\u4e49"),(0,m.kt)("p",null," \u81f4\u547d\u95ee\u9898\uff1a\u5728\u8f93\u5165\u503c\u8f83\u5c0f\u6216\u8f83\u5927\u65f6\uff0cSigmoid\u51fd\u6570\u7684\u68af\u5ea6\u8d8b\u8fd1\u4e8e\u96f6\uff0c\u4f1a\u5bfc\u81f4\u7f51\u7edc\u53c2\u6570\u957f\u65f6\u95f4\u5f97\u4e0d\u5230\u66f4\u65b0\uff0c\u5373\u68af\u5ea6\u5f25\u6563\u95ee\u9898"),(0,m.kt)("pre",null,(0,m.kt)("code",{parentName:"pre",className:"language-python"},"from torch.nn import functional as F\nimport torch\n\nx = torch.linspace(-100, 100, 10)\nF.sigmoid(x) # \u5f53x\u4e3a100\u65f6\uff0csigmoid(x)\u5c31\u63a5\u8fd1\u4e8e0\u4e86\n")),(0,m.kt)("h3",{id:"2-\u7ebf\u6027\u6574\u6d41\u5355\u5143rectified-linear-unit-relu"},"2. \u7ebf\u6027\u6574\u6d41\u5355\u5143\uff08Rectified Linear Unit, ReLU\uff09"),(0,m.kt)("div",{className:"math math-display"},(0,m.kt)("span",{parentName:"div",className:"katex-display"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mtable",{parentName:"semantics",width:"100%"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mrow",{parentName:"mtd"},(0,m.kt)("mi",{parentName:"mrow"},"f"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"x"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("mrow",{parentName:"mrow"},(0,m.kt)("mo",{parentName:"mrow",fence:"true"},"{"),(0,m.kt)("mtable",{parentName:"mrow",rowspacing:"0.36em",columnalign:"left left",columnspacing:"1em"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("mn",{parentName:"mstyle"},"0"))),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("mrow",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"mrow"},"x"),(0,m.kt)("mo",{parentName:"mrow"},"<"),(0,m.kt)("mn",{parentName:"mrow"},"0"))))),(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("mi",{parentName:"mstyle"},"x"))),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("mrow",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"mrow"},"x"),(0,m.kt)("mo",{parentName:"mrow"},"\u2265"),(0,m.kt)("mn",{parentName:"mrow"},"0"))))))))),(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mtext",{parentName:"mtd"},"(3)")))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"f(x) = \\begin{cases} 0 & x < 0\\\\ x & x \\geq 0\\\\ \\end{cases} \\tag{3}")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.10764em"}},"f"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"x"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"="),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"3em",verticalAlign:"-1.25em"}}),(0,m.kt)("span",{parentName:"span",className:"minner"},(0,m.kt)("span",{parentName:"span",className:"mopen delimcenter",style:{top:"0em"}},(0,m.kt)("span",{parentName:"span",className:"delimsizing size4"},"{")),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mtable"},(0,m.kt)("span",{parentName:"span",className:"col-align-l"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.69em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-3.69em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.008em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"0"))),(0,m.kt)("span",{parentName:"span",style:{top:"-2.25em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.008em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"x")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.19em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"arraycolsep",style:{width:"1em"}}),(0,m.kt)("span",{parentName:"span",className:"col-align-l"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.69em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-3.69em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.008em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"x"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"<"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"0"))),(0,m.kt)("span",{parentName:"span",style:{top:"-2.25em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.008em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"x"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"\u2265"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"0")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.19em"}},(0,m.kt)("span",{parentName:"span"}))))))),(0,m.kt)("span",{parentName:"span",className:"mclose nulldelimiter"}))),(0,m.kt)("span",{parentName:"span",className:"tag"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"3em",verticalAlign:"-1.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord text"},(0,m.kt)("span",{parentName:"span",className:"mord"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"3")),(0,m.kt)("span",{parentName:"span",className:"mord"},")"))))))),(0,m.kt)("div",{className:"math math-display"},(0,m.kt)("span",{parentName:"div",className:"katex-display"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mtable",{parentName:"semantics",width:"100%"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mrow",{parentName:"mtd"},(0,m.kt)("mfrac",{parentName:"mrow"},(0,m.kt)("mrow",{parentName:"mfrac"},(0,m.kt)("mtext",{parentName:"mrow"},"d"),(0,m.kt)("mi",{parentName:"mrow"},"f"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"x"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,m.kt)("mrow",{parentName:"mfrac"},(0,m.kt)("mtext",{parentName:"mrow"},"d"),(0,m.kt)("mi",{parentName:"mrow"},"x"))),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("mrow",{parentName:"mrow"},(0,m.kt)("mo",{parentName:"mrow",fence:"true"},"{"),(0,m.kt)("mtable",{parentName:"mrow",rowspacing:"0.36em",columnalign:"left left",columnspacing:"1em"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("mn",{parentName:"mstyle"},"0"))),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("mrow",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"mrow"},"x"),(0,m.kt)("mo",{parentName:"mrow"},"<"),(0,m.kt)("mn",{parentName:"mrow"},"0"))))),(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("mn",{parentName:"mstyle"},"1"))),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("mrow",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"mrow"},"x"),(0,m.kt)("mo",{parentName:"mrow"},"\u2265"),(0,m.kt)("mn",{parentName:"mrow"},"0"))))))))),(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mtext",{parentName:"mtd"},"(4)")))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"\\frac {{\\text d}f(x)}{{\\text d}x} = \\begin{cases} 0 & x < 0\\\\ 1 & x \\geq 0\\\\ \\end{cases} \\tag{4}")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"2.113em",verticalAlign:"-0.686em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mopen nulldelimiter"}),(0,m.kt)("span",{parentName:"span",className:"mfrac"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.427em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.314em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord text"},(0,m.kt)("span",{parentName:"span",className:"mord"},"d"))),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"x"))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.23em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"frac-line",style:{borderBottomWidth:"0.04em"}})),(0,m.kt)("span",{parentName:"span",style:{top:"-3.677em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord text"},(0,m.kt)("span",{parentName:"span",className:"mord"},"d"))),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.10764em"}},"f"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"x"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.686em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"mclose nulldelimiter"})),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"="),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"3em",verticalAlign:"-1.25em"}}),(0,m.kt)("span",{parentName:"span",className:"minner"},(0,m.kt)("span",{parentName:"span",className:"mopen delimcenter",style:{top:"0em"}},(0,m.kt)("span",{parentName:"span",className:"delimsizing size4"},"{")),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mtable"},(0,m.kt)("span",{parentName:"span",className:"col-align-l"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.69em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-3.69em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.008em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"0"))),(0,m.kt)("span",{parentName:"span",style:{top:"-2.25em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.008em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"1")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.19em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"arraycolsep",style:{width:"1em"}}),(0,m.kt)("span",{parentName:"span",className:"col-align-l"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.69em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-3.69em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.008em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"x"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"<"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"0"))),(0,m.kt)("span",{parentName:"span",style:{top:"-2.25em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.008em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"x"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"\u2265"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"0")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.19em"}},(0,m.kt)("span",{parentName:"span"}))))))),(0,m.kt)("span",{parentName:"span",className:"mclose nulldelimiter"}))),(0,m.kt)("span",{parentName:"span",className:"tag"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"3em",verticalAlign:"-1.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord text"},(0,m.kt)("span",{parentName:"span",className:"mord"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"4")),(0,m.kt)("span",{parentName:"span",className:"mord"},")"))))))),(0,m.kt)("pre",null,(0,m.kt)("code",{parentName:"pre",className:"language-python"},"from torch.nn import functional as F\nimport torch\n\nx = torch.linspace(-100, 100, 10)\nF.relu(x)\n")),(0,m.kt)("hr",null),(0,m.kt)("h2",{id:"\u4e8c\u635f\u5931\u51fd\u6570"},"\u4e8c\u3001\u635f\u5931\u51fd\u6570"),(0,m.kt)("h3",{id:"1-mean-squared-error-\u5747\u65b9\u8bef\u5dee"},"1. Mean Squared Error \u5747\u65b9\u8bef\u5dee"),(0,m.kt)("ul",null,(0,m.kt)("li",{parentName:"ul"},(0,m.kt)("p",{parentName:"li"},"L2\u8303\u6570\u662f\u5bf9\u5143\u7d20\u6c42\u5e73\u65b9\u548c\u540e\u518d\u5f00\u6839\u53f7\uff0c\u9700\u8981.pow(2)\u540e\u624d\u53ef\u4f5c\u4e3a\u635f\u5931\u51fd\u6570")),(0,m.kt)("li",{parentName:"ul"},(0,m.kt)("p",{parentName:"li"},"\u5fae\u5c0f\u7684\u8bef\u5dee\u53ef\u80fd\u5bf9\u7f51\u7edc\u6027\u80fd\u5e26\u6765\u6781\u5927\u7684\u5f71\u54cd"),(0,m.kt)("div",{parentName:"li",className:"math math-display"},(0,m.kt)("span",{parentName:"div",className:"katex-display"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mtable",{parentName:"semantics",width:"100%"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mrow",{parentName:"mtd"},(0,m.kt)("mi",{parentName:"mrow"},"L"),(0,m.kt)("mi",{parentName:"mrow"},"o"),(0,m.kt)("mi",{parentName:"mrow"},"s"),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"s"),(0,m.kt)("mrow",{parentName:"msub"},(0,m.kt)("mi",{parentName:"mrow"},"M"),(0,m.kt)("mi",{parentName:"mrow"},"S"),(0,m.kt)("mi",{parentName:"mrow"},"E"))),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("mo",{parentName:"mrow"},"\u2211"),(0,m.kt)("mrow",{parentName:"mrow"},(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"["),(0,m.kt)("mrow",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"mrow"},"y"),(0,m.kt)("mo",{parentName:"mrow"},"\u2212"),(0,m.kt)("mi",{parentName:"mrow"},"f"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"x"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("msup",{parentName:"mrow"},(0,m.kt)("mo",{parentName:"msup",stretchy:"false"},"]"),(0,m.kt)("mn",{parentName:"msup"},"2")))))),(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mtext",{parentName:"mtd"},"(5)")))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"Loss_{MSE} = \\sum{[{y - f(x)]^2}} \\tag{5}")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.8333em",verticalAlign:"-0.15em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"L"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"os"),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"s"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3283em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.05764em"}},"MSE"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"="),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1.6em",verticalAlign:"-0.55em"}}),(0,m.kt)("span",{parentName:"span",className:"mop op-symbol large-op",style:{position:"relative",top:"0em"}},"\u2211"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mopen"},"["),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"y"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"\u2212"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.10764em"}},"f"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"x"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mclose"},(0,m.kt)("span",{parentName:"span",className:"mclose"},"]"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.8641em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-3.113em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"2"))))))))))),(0,m.kt)("span",{parentName:"span",className:"tag"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1.6em",verticalAlign:"-0.55em"}}),(0,m.kt)("span",{parentName:"span",className:"mord text"},(0,m.kt)("span",{parentName:"span",className:"mord"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"5")),(0,m.kt)("span",{parentName:"span",className:"mord"},")"))))))),(0,m.kt)("div",{parentName:"li",className:"math math-display"},(0,m.kt)("span",{parentName:"div",className:"katex-display"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mtable",{parentName:"semantics",width:"100%"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mrow",{parentName:"mtd"},(0,m.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"\u2225"),(0,m.kt)("mi",{parentName:"mrow"},"y"),(0,m.kt)("mo",{parentName:"mrow"},"\u2212"),(0,m.kt)("mi",{parentName:"mrow"},"f"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"x"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub",mathvariant:"normal"},"\u2225"),(0,m.kt)("mn",{parentName:"msub"},"2")),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("mroot",{parentName:"mrow"},(0,m.kt)("mrow",{parentName:"mroot"},(0,m.kt)("mo",{parentName:"mrow"},"\u2211"),(0,m.kt)("mrow",{parentName:"mrow"},(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"["),(0,m.kt)("mi",{parentName:"mrow"},"y"),(0,m.kt)("mo",{parentName:"mrow"},"\u2212"),(0,m.kt)("mi",{parentName:"mrow"},"f"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"x"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("msup",{parentName:"mrow"},(0,m.kt)("mo",{parentName:"msup",stretchy:"false"},"]"),(0,m.kt)("mn",{parentName:"msup"},"2")))),(0,m.kt)("mn",{parentName:"mroot"},"2")))),(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mtext",{parentName:"mtd"},"(6)")))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"\\Vert y - f(x) \\Vert_2 = \\sqrt[2]{\\sum{[y - f(x)]^2}} \\tag{6}")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"\u2225"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"y"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"\u2212"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.10764em"}},"f"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"x"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"\u2225"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"2")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"="),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1.84em",verticalAlign:"-0.5561em"}}),(0,m.kt)("span",{parentName:"span",className:"mord sqrt"},(0,m.kt)("span",{parentName:"span",className:"root"},(0,m.kt)("span",{parentName:"span",className:"vlist-t"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.7589em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.9366em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.5em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size1 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"2")))))))),(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.2839em"}},(0,m.kt)("span",{parentName:"span",className:"svg-align",style:{top:"-3.8em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.8em"}}),(0,m.kt)("span",{parentName:"span",className:"mord",style:{paddingLeft:"1em"}},(0,m.kt)("span",{parentName:"span",className:"mop op-symbol large-op",style:{position:"relative",top:"0em"}},"\u2211"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mopen"},"["),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"y"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"\u2212"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.10764em"}},"f"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"x"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mclose"},(0,m.kt)("span",{parentName:"span",className:"mclose"},"]"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.7401em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.989em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"2"))))))))))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.2439em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.8em"}}),(0,m.kt)("span",{parentName:"span",className:"hide-tail",style:{minWidth:"1.02em",height:"1.88em"}},(0,m.kt)("svg",{parentName:"span",xmlns:"http://www.w3.org/2000/svg",width:"400em",height:"1.88em",viewBox:"0 0 400000 1944",preserveAspectRatio:"xMinYMin slice"},(0,m.kt)("path",{parentName:"svg",d:"M983 90\nl0 -0\nc4,-6.7,10,-10,18,-10 H400000v40\nH1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7\ns-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744\nc-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30\nc26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722\nc56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5\nc53.7,-170.3,84.5,-266.8,92.5,-289.5z\nM1001 80h400000v40h-400000z"}))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.5561em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"tag"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1.84em",verticalAlign:"-0.5561em"}}),(0,m.kt)("span",{parentName:"span",className:"mord text"},(0,m.kt)("span",{parentName:"span",className:"mord"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"6")),(0,m.kt)("span",{parentName:"span",className:"mord"},")"))))))))),(0,m.kt)("h3",{id:"2-cross-entropy-loss-\u4ea4\u53c9\u71b5\u635f\u5931"},"2. Cross Entropy Loss \u4ea4\u53c9\u71b5\u635f\u5931"),(0,m.kt)("h4",{id:"\u4fe1\u606f\u71b5"},"\u4fe1\u606f\u71b5"),(0,m.kt)("p",null,"Cross Entropy\u4e2d\u7684Entropy\u6307\u7684\u662f\u4fe1\u606f\u71b5\uff0c\u53ef\u4ee5\u7406\u89e3\u4e3a\u4e0d\u786e\u5b9a\u6027\u3002\u8861\u91cf\u4e00\u4e2a\u6982\u7387\u5206\u5e03\u672c\u8eab\u7684\u4e0d\u786e\u5b9a\u7a0b\u5ea6\u3002"),(0,m.kt)("p",null,"It's a measure of surprise, higher entrpoy means less information and higher uncertainty."),(0,m.kt)("p",null,"\u5047\u8bbe\u4e00\u4e2a\u79bb\u6563\u578b\u968f\u673a\u53d8\u91cf",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"X")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"X")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6833em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.07847em"}},"X"))))),"\u7684\u53ef\u80fd\u53d6\u503c\u4e3a",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"X"),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"x"),(0,m.kt)("mn",{parentName:"msub"},"1")),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"x"),(0,m.kt)("mn",{parentName:"msub"},"2")),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"."),(0,m.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"."),(0,m.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"."),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"x"),(0,m.kt)("mi",{parentName:"msub"},"n"))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"X=x_1,x_2,...,x_n")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6833em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.07847em"}},"X"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"="),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.625em",verticalAlign:"-0.1944em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"x"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"1")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"x"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"2")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"..."),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"x"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.1514em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"n")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))))))),"\uff0c\u800c\u53d6\u503c\u4e8b\u4ef6",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"x"),(0,m.kt)("mi",{parentName:"msub"},"i"))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"x_i")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.5806em",verticalAlign:"-0.15em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"x"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3117em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"i")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))))))),"\u53d1\u751f\u7684\u6982\u7387\u4e3a",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"P"),(0,m.kt)("mi",{parentName:"msub"},"i"))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"P_i")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.8333em",verticalAlign:"-0.15em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"P"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3117em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.1389em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"i")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))))))),"\uff0c\u5219\u5176\u4fe1\u606f\u71b5\u7684\u5b9a\u4e49\u4e3a"),(0,m.kt)("div",{className:"math math-display"},(0,m.kt)("span",{parentName:"div",className:"katex-display"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mtable",{parentName:"semantics",width:"100%"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mtable",{parentName:"mtd",rowspacing:"0.25em",columnalign:"right left",columnspacing:"0em"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr",className:"mtr-glue"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"true"},(0,m.kt)("mrow",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"mrow"},"H"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")")))),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"true"},(0,m.kt)("mrow",{parentName:"mstyle"},(0,m.kt)("mrow",{parentName:"mrow"}),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("mo",{parentName:"mrow"},"\u2212"),(0,m.kt)("munderover",{parentName:"mrow"},(0,m.kt)("mo",{parentName:"munderover"},"\u2211"),(0,m.kt)("mi",{parentName:"munderover"},"i"),(0,m.kt)("mi",{parentName:"munderover"},"n")),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"P"),(0,m.kt)("mi",{parentName:"msub"},"i")),(0,m.kt)("mtext",{parentName:"mrow"},"\xa0"),(0,m.kt)("mrow",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"mrow"},"l"),(0,m.kt)("mi",{parentName:"mrow"},"o"),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"g"),(0,m.kt)("mn",{parentName:"msub"},"2")),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"P"),(0,m.kt)("mi",{parentName:"msub"},"i")),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"))))),(0,m.kt)("mtd",{parentName:"mtr",className:"mtr-glue"}),(0,m.kt)("mtd",{parentName:"mtr",className:"mml-eqn-num"})),(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr",className:"mtr-glue"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"true"},(0,m.kt)("mrow",{parentName:"mstyle"}))),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"true"},(0,m.kt)("mrow",{parentName:"mstyle"},(0,m.kt)("mrow",{parentName:"mrow"}),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("munderover",{parentName:"mrow"},(0,m.kt)("mo",{parentName:"munderover"},"\u2211"),(0,m.kt)("mi",{parentName:"munderover"},"i"),(0,m.kt)("mi",{parentName:"munderover"},"n")),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"P"),(0,m.kt)("mi",{parentName:"msub"},"i")),(0,m.kt)("mtext",{parentName:"mrow"},"\xa0"),(0,m.kt)("mrow",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"mrow"},"l"),(0,m.kt)("mi",{parentName:"mrow"},"o"),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"g"),(0,m.kt)("mn",{parentName:"msub"},"2")),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mfrac",{parentName:"mrow"},(0,m.kt)("mn",{parentName:"mfrac"},"1"),(0,m.kt)("msub",{parentName:"mfrac"},(0,m.kt)("mi",{parentName:"msub"},"P"),(0,m.kt)("mi",{parentName:"msub"},"i")))),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")")))),(0,m.kt)("mtd",{parentName:"mtr",className:"mtr-glue"}),(0,m.kt)("mtd",{parentName:"mtr",className:"mml-eqn-num"})))),(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mtext",{parentName:"mtd"},"(7)")))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"\\begin{align} H(P) &= -\\sum_i^n{P_i}\\space{log_2(P_i)} \\\\ &= \\sum_i^n{P_i}\\space{log_2({\\frac{1}{P_i}}}) \\tag{7} \\end{align}")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"6.4581em",verticalAlign:"-2.9791em"}}),(0,m.kt)("span",{parentName:"span",className:"mtable"},(0,m.kt)("span",{parentName:"span",className:"col-align-r"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"3.4791em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-5.4791em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.6514em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.08125em"}},"H"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"P"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"))),(0,m.kt)("span",{parentName:"span",style:{top:"-2.25em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.6514em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"}))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"2.9791em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"col-align-l"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"3.4791em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-5.4791em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.6514em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"}),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"="),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"\u2212"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mop op-limits"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.6514em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-1.8723em",marginLeft:"0em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.05em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"i"))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.05em"}}),(0,m.kt)("span",{parentName:"span"},(0,m.kt)("span",{parentName:"span",className:"mop op-symbol large-op"},"\u2211"))),(0,m.kt)("span",{parentName:"span",style:{top:"-4.3em",marginLeft:"0em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.05em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"n")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.2777em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"P"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3117em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.1389em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"i")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"}))))))),(0,m.kt)("span",{parentName:"span",className:"mspace"},"\xa0"),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.01968em"}},"l"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"o"),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"g"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0359em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"2")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"P"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3117em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.1389em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"i")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mclose"},")")))),(0,m.kt)("span",{parentName:"span",style:{top:"-2.25em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.6514em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"}),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"="),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mop op-limits"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.6514em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-1.8723em",marginLeft:"0em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.05em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"i"))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.05em"}}),(0,m.kt)("span",{parentName:"span"},(0,m.kt)("span",{parentName:"span",className:"mop op-symbol large-op"},"\u2211"))),(0,m.kt)("span",{parentName:"span",style:{top:"-4.3em",marginLeft:"0em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.05em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"n")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.2777em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"P"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3117em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.1389em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"i")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"}))))))),(0,m.kt)("span",{parentName:"span",className:"mspace"},"\xa0"),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.01968em"}},"l"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"o"),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"g"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0359em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"2")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mopen nulldelimiter"}),(0,m.kt)("span",{parentName:"span",className:"mfrac"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.3214em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.314em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"P"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3117em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.1389em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"i")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.23em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"frac-line",style:{borderBottomWidth:"0.04em"}})),(0,m.kt)("span",{parentName:"span",style:{top:"-3.677em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"1")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.836em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"mclose nulldelimiter"})))),(0,m.kt)("span",{parentName:"span",className:"mclose"},")")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"2.9791em"}},(0,m.kt)("span",{parentName:"span"}))))))),(0,m.kt)("span",{parentName:"span",className:"tag"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"6.4581em",verticalAlign:"-2.9791em"}}),(0,m.kt)("span",{parentName:"span",className:"mord text"},(0,m.kt)("span",{parentName:"span",className:"mord"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"7")),(0,m.kt)("span",{parentName:"span",className:"mord"},")"))))))),(0,m.kt)("h4",{id:"kl\u6563\u5ea6"},"KL\u6563\u5ea6"),(0,m.kt)("p",null,"\u5728\u6982\u7387\u8bba\u6216\u4fe1\u606f\u8bba\u4e2d\uff0cKL\u6563\u5ea6( Kullback\u2013Leibler Divergence)\uff0c\u53c8\u79f0\u76f8\u5bf9\u71b5\uff08relative entropy)\uff0c\u662f\u63cf\u8ff0\u4e24\u4e2a\u6982\u7387\u5206\u5e03P\u548cQ\u5dee\u5f02\u7684\u4e00\u79cd\u65b9\u6cd5\u3002"),(0,m.kt)("p",null,"\u5b58\u5728\u4e24\u4e2a\u6982\u7387\u5206\u5e03P\u548cQ\uff0c\u5176\u79bb\u6563\u578b\u968f\u673a\u53d8\u91cf",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"X")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"X")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6833em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.07847em"}},"X"))))),"\u7684\u53ef\u80fd\u53d6\u503c\u4e3a",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"X"),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"x"),(0,m.kt)("mn",{parentName:"msub"},"1")),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"x"),(0,m.kt)("mn",{parentName:"msub"},"2")),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"."),(0,m.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"."),(0,m.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"."),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"x"),(0,m.kt)("mi",{parentName:"msub"},"n"))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"X=x_1,x_2,...,x_n")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6833em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.07847em"}},"X"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"="),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.625em",verticalAlign:"-0.1944em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"x"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"1")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"x"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"2")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"..."),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"x"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.1514em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"n")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))))))),"\uff0c\u800c\u53d6\u503c\u4e8b\u4ef6",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"x"),(0,m.kt)("mi",{parentName:"msub"},"i"))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"x_i")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.5806em",verticalAlign:"-0.15em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"x"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3117em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"i")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))))))),"\u53d1\u751f\u7684\u6982\u7387\u5206\u522b\u4e3a",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"P"),(0,m.kt)("mi",{parentName:"msub"},"i")),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"Q"),(0,m.kt)("mi",{parentName:"msub"},"i"))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"P_i,Q_i")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.8778em",verticalAlign:"-0.1944em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"P"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3117em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.1389em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"i")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"Q"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3117em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"i")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))))))),"."),(0,m.kt)("p",null,"KL\u6563\u5ea6\u662f",(0,m.kt)("strong",{parentName:"p"},"\u975e\u5bf9\u79f0\u7684"),"\uff0c\u5373"),(0,m.kt)("div",{className:"math math-display"},(0,m.kt)("span",{parentName:"div",className:"katex-display"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mtable",{parentName:"semantics",width:"100%"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mrow",{parentName:"mtd"},(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"D"),(0,m.kt)("mrow",{parentName:"msub"},(0,m.kt)("mi",{parentName:"mrow"},"K"),(0,m.kt)("mi",{parentName:"mrow"},"L"))),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("mtext",{parentName:"mrow"},"\xa0"),(0,m.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"\u2223"),(0,m.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"\u2223"),(0,m.kt)("mtext",{parentName:"mrow"},"\xa0"),(0,m.kt)("mi",{parentName:"mrow"},"Q"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow",mathvariant:"normal"},"\u2260"),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"D"),(0,m.kt)("mrow",{parentName:"msub"},(0,m.kt)("mi",{parentName:"mrow"},"K"),(0,m.kt)("mi",{parentName:"mrow"},"L"))),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"Q"),(0,m.kt)("mtext",{parentName:"mrow"},"\xa0"),(0,m.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"\u2223"),(0,m.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"\u2223"),(0,m.kt)("mtext",{parentName:"mrow"},"\xa0"),(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"))),(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mtext",{parentName:"mtd"},"(8)")))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"D_{KL}(P \\space || \\space Q) \\neq D_{KL}(Q \\space || \\space P)\\tag{8}")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02778em"}},"D"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3283em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0278em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.07153em"}},"K"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"L"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"P"),(0,m.kt)("span",{parentName:"span",className:"mspace"},"\xa0"),(0,m.kt)("span",{parentName:"span",className:"mord"},"\u2223\u2223"),(0,m.kt)("span",{parentName:"span",className:"mspace"},"\xa0"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"Q"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},(0,m.kt)("span",{parentName:"span",className:"mrel"},(0,m.kt)("span",{parentName:"span",className:"mord vbox"},(0,m.kt)("span",{parentName:"span",className:"thinbox"},(0,m.kt)("span",{parentName:"span",className:"rlap"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.8889em",verticalAlign:"-0.1944em"}}),(0,m.kt)("span",{parentName:"span",className:"inner"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mrel"},"\ue020"))),(0,m.kt)("span",{parentName:"span",className:"fix"}))))),(0,m.kt)("span",{parentName:"span",className:"mrel"},"=")),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02778em"}},"D"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3283em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0278em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.07153em"}},"K"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"L"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"Q"),(0,m.kt)("span",{parentName:"span",className:"mspace"},"\xa0"),(0,m.kt)("span",{parentName:"span",className:"mord"},"\u2223\u2223"),(0,m.kt)("span",{parentName:"span",className:"mspace"},"\xa0"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"P"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")")),(0,m.kt)("span",{parentName:"span",className:"tag"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord text"},(0,m.kt)("span",{parentName:"span",className:"mord"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"8")),(0,m.kt)("span",{parentName:"span",className:"mord"},")"))))))),(0,m.kt)("div",{className:"math math-display"},(0,m.kt)("span",{parentName:"div",className:"katex-display"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mtable",{parentName:"semantics",width:"100%"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mrow",{parentName:"mtd"},(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"D"),(0,m.kt)("mrow",{parentName:"msub"},(0,m.kt)("mi",{parentName:"mrow"},"K"),(0,m.kt)("mi",{parentName:"mrow"},"L"))),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("mtext",{parentName:"mrow"},"\xa0"),(0,m.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"\u2223"),(0,m.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"\u2223"),(0,m.kt)("mtext",{parentName:"mrow"},"\xa0"),(0,m.kt)("mi",{parentName:"mrow"},"Q"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("mo",{parentName:"mrow"},"\u2211"),(0,m.kt)("mrow",{parentName:"mrow"},(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"P"),(0,m.kt)("mi",{parentName:"msub"},"i")),(0,m.kt)("mtext",{parentName:"mrow"},"\xa0"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"["),(0,m.kt)("mi",{parentName:"mrow"},"l"),(0,m.kt)("mi",{parentName:"mrow"},"o"),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"g"),(0,m.kt)("mn",{parentName:"msub"},"2")),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"P"),(0,m.kt)("mi",{parentName:"msub"},"i")),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"\u2212"),(0,m.kt)("mi",{parentName:"mrow"},"l"),(0,m.kt)("mi",{parentName:"mrow"},"o"),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"g"),(0,m.kt)("mn",{parentName:"msub"},"2")),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"Q"),(0,m.kt)("mi",{parentName:"msub"},"i")),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"]")))),(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mtext",{parentName:"mtd"},"(9)")))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"D_{KL}(P \\space || \\space Q) = \\sum{P_i\\space [log_2(P_i)-log_2(Q_i)]}\\tag{9}")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02778em"}},"D"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3283em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0278em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.07153em"}},"K"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"L"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"P"),(0,m.kt)("span",{parentName:"span",className:"mspace"},"\xa0"),(0,m.kt)("span",{parentName:"span",className:"mord"},"\u2223\u2223"),(0,m.kt)("span",{parentName:"span",className:"mspace"},"\xa0"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"Q"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"="),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1.6em",verticalAlign:"-0.55em"}}),(0,m.kt)("span",{parentName:"span",className:"mop op-symbol large-op",style:{position:"relative",top:"0em"}},"\u2211"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"P"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3117em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.1389em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"i")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mspace"},"\xa0"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"["),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.01968em"}},"l"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"o"),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"g"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0359em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"2")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"P"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3117em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.1389em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"i")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"\u2212"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.01968em"}},"l"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"o"),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"g"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0359em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"2")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"Q"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3117em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"i")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mclose"},")]"))),(0,m.kt)("span",{parentName:"span",className:"tag"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1.6em",verticalAlign:"-0.55em"}}),(0,m.kt)("span",{parentName:"span",className:"mord text"},(0,m.kt)("span",{parentName:"span",className:"mord"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"9")),(0,m.kt)("span",{parentName:"span",className:"mord"},")"))))))),(0,m.kt)("p",null,"\u7279\u522b\u7684\uff0c",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"D"),(0,m.kt)("mrow",{parentName:"msub"},(0,m.kt)("mi",{parentName:"mrow"},"K"),(0,m.kt)("mi",{parentName:"mrow"},"L"))),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"P"),(0,m.kt)("mrow",{parentName:"msub"},(0,m.kt)("mi",{parentName:"mrow"},"L"),(0,m.kt)("mi",{parentName:"mrow"},"a"),(0,m.kt)("mi",{parentName:"mrow"},"b"),(0,m.kt)("mi",{parentName:"mrow"},"e"),(0,m.kt)("mi",{parentName:"mrow"},"l"))),(0,m.kt)("mtext",{parentName:"mrow"},"\xa0"),(0,m.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"\u2223"),(0,m.kt)("mtext",{parentName:"mrow"},"\xa0"),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"Q"),(0,m.kt)("mrow",{parentName:"msub"},(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("mi",{parentName:"mrow"},"r"),(0,m.kt)("mi",{parentName:"mrow"},"e"),(0,m.kt)("mi",{parentName:"mrow"},"d"))),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"D_{KL}(P_{Label} \\space | \\space Q_{Pred})")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02778em"}},"D"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3283em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0278em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.07153em"}},"K"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"L"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"P"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3361em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.1389em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"L"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"ab"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"e"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.01968em"}},"l"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mspace"},"\xa0"),(0,m.kt)("span",{parentName:"span",className:"mord"},"\u2223"),(0,m.kt)("span",{parentName:"span",className:"mspace"},"\xa0"),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"Q"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3361em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.13889em"}},"P"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"re"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"d"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"))))),"\u8868\u793a\u5f53\u7528\u6982\u7387\u5206\u5e03Q\u6765\u62df\u5408\u771f\u5b9e\u5206\u5e03P\u65f6\uff0c\u4ea7\u751f\u7684\u4fe1\u606f\u635f\u8017\uff0c\u5176\u4e2d",(0,m.kt)("strong",{parentName:"p"},"P\u8868\u793a\u771f\u5b9e\u5206\u5e03\uff0cQ\u8868\u793aP\u7684\u62df\u5408\u5206\u5e03"),"\u3002"),(0,m.kt)("h4",{id:"\u4ea4\u53c9\u71b5"},"\u4ea4\u53c9\u71b5"),(0,m.kt)("p",null,"\u8861\u91cf\u4e24\u4e2a\u6982\u7387\u5206\u5e03P\u548cQ\u4e4b\u95f4\u7684\u4e0d\u786e\u5b9a\u6027\u7a0b\u5ea6\u3002\u4ea4\u53c9\u71b5\u7684\u6570\u5b66\u8868\u8fbe\u4e3a"),(0,m.kt)("div",{className:"math math-display"},(0,m.kt)("span",{parentName:"div",className:"katex-display"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mtable",{parentName:"semantics",width:"100%"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mtable",{parentName:"mtd",rowspacing:"0.25em",columnalign:"right left",columnspacing:"0em"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr",className:"mtr-glue"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"true"},(0,m.kt)("mrow",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"mrow"},"H"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mtext",{parentName:"mrow"},"\xa0"),(0,m.kt)("mi",{parentName:"mrow"},"Q"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")")))),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"true"},(0,m.kt)("mrow",{parentName:"mstyle"},(0,m.kt)("mrow",{parentName:"mrow"}),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("mi",{parentName:"mrow"},"H"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"+"),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"D"),(0,m.kt)("mrow",{parentName:"msub"},(0,m.kt)("mi",{parentName:"mrow"},"K"),(0,m.kt)("mi",{parentName:"mrow"},"L"))),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("mtext",{parentName:"mrow"},"\xa0"),(0,m.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"\u2223"),(0,m.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"\u2223"),(0,m.kt)("mtext",{parentName:"mrow"},"\xa0"),(0,m.kt)("mi",{parentName:"mrow"},"Q"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")")))),(0,m.kt)("mtd",{parentName:"mtr",className:"mtr-glue"}),(0,m.kt)("mtd",{parentName:"mtr",className:"mml-eqn-num"})),(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr",className:"mtr-glue"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"true"},(0,m.kt)("mrow",{parentName:"mstyle"}))),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"true"},(0,m.kt)("mrow",{parentName:"mstyle"},(0,m.kt)("mrow",{parentName:"mrow"}),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("mo",{parentName:"mrow"},"\u2212"),(0,m.kt)("mo",{parentName:"mrow"},"\u2211"),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"P"),(0,m.kt)("mi",{parentName:"msub"},"i")),(0,m.kt)("mtext",{parentName:"mrow"},"\xa0"),(0,m.kt)("mrow",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"mrow"},"l"),(0,m.kt)("mi",{parentName:"mrow"},"o"),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"g"),(0,m.kt)("mn",{parentName:"msub"},"2")),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"Q"),(0,m.kt)("mi",{parentName:"msub"},"i")),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"))))),(0,m.kt)("mtd",{parentName:"mtr",className:"mtr-glue"}),(0,m.kt)("mtd",{parentName:"mtr",className:"mml-eqn-num"})))),(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mtext",{parentName:"mtd"},"(10)")))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"\\begin{align} H(P, \\space Q) &= H(P) + D_{KL}(P\\space || \\space Q) \\\\ &= - \\sum{P_i}\\space{log_2({Q_i})} \\tag{10} \\end{align}")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"3.4em",verticalAlign:"-1.45em"}}),(0,m.kt)("span",{parentName:"span",className:"mtable"},(0,m.kt)("span",{parentName:"span",className:"col-align-r"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.95em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-4.16em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.05em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.08125em"}},"H"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"P"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace"},"\xa0"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"Q"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"))),(0,m.kt)("span",{parentName:"span",style:{top:"-2.45em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.05em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"}))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.45em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"col-align-l"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.95em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-4.16em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.05em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"}),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"="),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.08125em"}},"H"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"P"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"+"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02778em"}},"D"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3283em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0278em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.07153em"}},"K"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"L"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"P"),(0,m.kt)("span",{parentName:"span",className:"mspace"},"\xa0"),(0,m.kt)("span",{parentName:"span",className:"mord"},"\u2223\u2223"),(0,m.kt)("span",{parentName:"span",className:"mspace"},"\xa0"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"Q"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"))),(0,m.kt)("span",{parentName:"span",style:{top:"-2.45em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.05em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"}),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"="),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"\u2212"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mop op-symbol large-op",style:{position:"relative",top:"0em"}},"\u2211"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"P"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3117em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.1389em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"i")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"}))))))),(0,m.kt)("span",{parentName:"span",className:"mspace"},"\xa0"),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.01968em"}},"l"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"o"),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"g"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0359em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"2")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"Q"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3117em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"i")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"}))))))),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.45em"}},(0,m.kt)("span",{parentName:"span"}))))))),(0,m.kt)("span",{parentName:"span",className:"tag"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"3.4em",verticalAlign:"-1.45em"}}),(0,m.kt)("span",{parentName:"span",className:"mord text"},(0,m.kt)("span",{parentName:"span",className:"mord"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"10")),(0,m.kt)("span",{parentName:"span",className:"mord"},")"))))))),(0,m.kt)("h4",{id:"pytorch\u4e2d\u7684crossentropyloss"},"PyTorch\u4e2d\u7684CrossEntropyLoss"),(0,m.kt)("p",null,"torch.nn.CrossEntropyLoss\u76f8\u5f53\u4e8etorch.softmax + torch.log + torch.nn.nllloss."),(0,m.kt)("pre",null,(0,m.kt)("code",{parentName:"pre",className:"language-python"},"import torch.nn as nn\n\n# \u4f7f\u7528NLLLoss\u5b9e\u73b0\nnllloss = nn.NLLLoss()\npredict = torch.Tensor([[2, 3, 1], [3, 7, 9]])\npredict = torch.log(torch.softmax(predict, dim=-1))\nlabel = torch.tensor([1, 2])\nnllloss(predict, label)\n# output: tensor(0.2684)\n\n# \u4f7f\u7528CrossEntropyLoss\u5b9e\u73b0\ncross_loss = nn.CrossEntropyLoss()\npredict = torch.Tensor([[2, 3, 1], [3, 7, 9]])\nlabel = torch.tensor([1, 2])\ncross_loss(predict, label)\n# output: tensor(0.2684)\n")))}c.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/c00822a0.ccaf7e94.js b/assets/js/c00822a0.ccaf7e94.js new file mode 100644 index 000000000..ae0736652 --- /dev/null +++ b/assets/js/c00822a0.ccaf7e94.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunknpy_notebook=self.webpackChunknpy_notebook||[]).push([[9507],{3905:(e,t,n)=>{n.d(t,{Zo:()=>s,kt:()=>y});var r=n(7294);function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function i(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var c=r.createContext({}),l=function(e){var t=r.useContext(c),n=t;return e&&(n="function"==typeof e?e(t):p(p({},t),e)),n},s=function(e){var t=l(e.components);return r.createElement(c.Provider,{value:t},e.children)},m="mdxType",u={inlineCode:"code",wrapper:function(e){var t=e.children;return r.createElement(r.Fragment,{},t)}},d=r.forwardRef((function(e,t){var n=e.components,a=e.mdxType,o=e.originalType,c=e.parentName,s=i(e,["components","mdxType","originalType","parentName"]),m=l(n),d=a,y=m["".concat(c,".").concat(d)]||m[d]||u[d]||o;return n?r.createElement(y,p(p({ref:t},s),{},{components:n})):r.createElement(y,p({ref:t},s))}));function y(e,t){var n=arguments,a=t&&t.mdxType;if("string"==typeof e||a){var o=n.length,p=new Array(o);p[0]=d;var i={};for(var c in t)hasOwnProperty.call(t,c)&&(i[c]=t[c]);i.originalType=e,i[m]="string"==typeof e?e:a,p[1]=i;for(var l=2;l<o;l++)p[l]=n[l];return r.createElement.apply(null,p)}return r.createElement.apply(null,n)}d.displayName="MDXCreateElement"},8135:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>c,contentTitle:()=>p,default:()=>u,frontMatter:()=>o,metadata:()=>i,toc:()=>l});var r=n(7462),a=(n(7294),n(3905));const o={},p="PyTorch\u57fa\u7840",i={unversionedId:"Deep-Learning/\u57fa\u7840\u77e5\u8bc6/PytorchBasics",id:"Deep-Learning/\u57fa\u7840\u77e5\u8bc6/PytorchBasics",title:"PyTorch\u57fa\u7840",description:"\u4e00\u3001\u5e38\u7528\u51fd\u6570\u90e8\u5206",source:"@site/docs/Deep-Learning/3-\u57fa\u7840\u77e5\u8bc6/PytorchBasics.md",sourceDirName:"Deep-Learning/3-\u57fa\u7840\u77e5\u8bc6",slug:"/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/PytorchBasics",permalink:"/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/PytorchBasics",draft:!1,tags:[],version:"current",frontMatter:{},sidebar:"deep_learning",previous:{title:"\u6c60\u5316\u5c42",permalink:"/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/PoolingLayer"},next:{title:"\u6b63\u5219\u5316\u4e0e\u6743\u91cd\u8870\u9000",permalink:"/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/\u6b63\u5219\u5316\u4e0e\u6743\u91cd\u8870\u9000"}},c={},l=[{value:"\u4e00\u3001\u5e38\u7528\u51fd\u6570\u90e8\u5206",id:"\u4e00\u5e38\u7528\u51fd\u6570\u90e8\u5206",level:2}],s={toc:l},m="wrapper";function u(e){let{components:t,...n}=e;return(0,a.kt)(m,(0,r.Z)({},s,n,{components:t,mdxType:"MDXLayout"}),(0,a.kt)("h1",{id:"pytorch\u57fa\u7840"},"PyTorch\u57fa\u7840"),(0,a.kt)("h2",{id:"\u4e00\u5e38\u7528\u51fd\u6570\u90e8\u5206"},"\u4e00\u3001\u5e38\u7528\u51fd\u6570\u90e8\u5206"),(0,a.kt)("ol",null,(0,a.kt)("li",{parentName:"ol"},(0,a.kt)("p",{parentName:"li"},"concat\u4e0estack\u51fd\u6570"),(0,a.kt)("p",{parentName:"li"},"stack\u51fd\u6570\u5bf9\u8f93\u5165\u7684\u4e24\u4e2a\u5f20\u91cf\u5728\u6307\u5b9a\u7684\u7ef4\u5ea6\u8fdb\u884c\u5806\u53e0\uff0c\u662f",(0,a.kt)("strong",{parentName:"p"},"\u521b\u5efa\u4e86\u65b0\u7684\u7ef4\u5ea6")),(0,a.kt)("p",{parentName:"li"},"concat\u51fd\u6570\u5bf9\u8f93\u5165\u7684\u5f20\u91cf\u5728\u6307\u5b9a\u7ef4\u5ea6\u8fdb\u884c\u62fc\u63a5\uff0c\u6ca1\u6709\u521b\u5efa\u65b0\u7684\u7ef4\u5ea6"),(0,a.kt)("pre",{parentName:"li"},(0,a.kt)("code",{parentName:"pre",className:"language-python"},"# stack\u548cconcat\u51fd\u6570\na = torch.rand(4, 3) # A\u73ed4\u4f4d\u540c\u5b66\uff0c\u6bcf\u4f4d\u540c\u5b663\u79d1\u6210\u7ee9\nb = torch.rand(4, 3) # B\u73ed4\u4f4d\u540c\u5b66\uff0c\u6bcf\u4f4d\u540c\u5b663\u79d1\u6210\u7ee9\nc = torch.stack((a, b), dim=0) # \u7406\u89e3\uff1a\u5e74\u7ea7\u6240\u6709\u540c\u5b66\u76843\u79d1\u6210\u7ee9\uff08\u5047\u8bbe\u5e74\u7ea7\u53ea\u6709A\u73ed\u548cB\u73ed\u4e24\u4e2a\u73ed\uff0c\u6bcf\u4e2a\u73ed\u53ea\u6709\u56db\u540d\u540c\u5b66\uff09\nprint(c.shape) # torch.Size([2, 4, 3])\nd = torch.concat((a, b), dim=1) # \u7406\u89e3\uff1aa\u662fA\u73ed4\u4f4d\u540c\u5b663\u79d1\u6210\u7ee9\uff0cb\u662f\u8fd94\u540d\u540c\u5b66\u5176\u4ed63\u95e8\u8bfe\u7684\u6210\u7ee9\uff0c\u62fc\u63a5\u540e\u4ee3\u8868\u8fd94\u540d\u540c\u5b66\u76846\u79d1\u6210\u7ee9\nprint(d.shape) # torch.Size([4, 6])\n"))),(0,a.kt)("li",{parentName:"ol"},(0,a.kt)("p",{parentName:"li"},"list\u548ctensor\u4e58\u6cd5\u4e0d\u540c\u4e4b\u5904"),(0,a.kt)("p",{parentName:"li"},"list\u7684*\u4e58\u6cd5\u662f\u590d\u5236\u5143\u7d20\uff0c\u6539\u53d8list\u7684shape"),(0,a.kt)("p",{parentName:"li"},"tensor\u7684*\u4e58\u6cd5\u662f\u5bf9tensor\u4e2d\u7684\u5143\u7d20\u8fdb\u884c\u70b9\u4e58\u8ba1\u7b97"),(0,a.kt)("pre",{parentName:"li"},(0,a.kt)("code",{parentName:"pre",className:"language-python"},"a = torch.tensor([[3, 3, 3, 3]])\nb = [3] # list\u7684*\u4e58\u662f\u590d\u5236\u5143\u7d20\u8fdb\u884c\u6269\u5c55\nprint(a * 3) # tensor([[9, 9, 9, 9]])\nprint(b * 3) # [3, 3, 3]\n"))),(0,a.kt)("li",{parentName:"ol"},(0,a.kt)("p",{parentName:"li"},"\u6700\u5927\u503c / \u6700\u5c0f\u503c\u7d22\u5f15\uff1aargmax / argmin"),(0,a.kt)("p",{parentName:"li"},"\u9700\u8981\u901a\u8fc7\u53c2\u6570dim\u6307\u5b9a\u64cd\u4f5c\u7684\u7ef4\u5ea6\uff0cdim\u7684\u7406\u89e3"),(0,a.kt)("ul",{parentName:"li"},(0,a.kt)("li",{parentName:"ul"},(0,a.kt)("p",{parentName:"li"},"\u5b98\u65b9\u89e3\u91ca\uff1aThe dimension to reduce")),(0,a.kt)("li",{parentName:"ul"},(0,a.kt)("p",{parentName:"li"},"\u4ee5\u4e8c\u7ef4\u5f20\u91cf\u4e3e\u4f8b\uff0cdim=1\u5373\u5728\u6bcf\u4e00\u884c\u4e2d\u9009\u51fa\u4e00\u4e2a\u6700\u5927\u503c / \u6700\u5c0f\u503c\u5143\u7d20\u7684\u7d22\u5f15\uff0c\u7d22\u5f15\u7684shape\u5e94\u4e3a","[dim0, 1]","\uff0c\u5373reduce\u4e86dim=1\u7684\u7ef4\u5ea6"))),(0,a.kt)("pre",{parentName:"li"},(0,a.kt)("code",{parentName:"pre",className:"language-python"},'# \u6700\u5927\u503c\u6700\u5c0f\u503c\u7d22\u5f15\na = torch.tensor([[0.1, 0.9, 0.3], [0.9, 0.8, 0.99], [0.1, 0.7, 0.8], [0.88, 0.1, 0.2]]) # [4, 3]\nprint("argmax output: ", a.argmax(dim=0), a.argmax(dim=1)) # argmax output: tensor([1, 0, 1]) tensor([1, 2, 2, 0])\n'))),(0,a.kt)("li",{parentName:"ol"},(0,a.kt)("p",{parentName:"li"},"Python zip\u51fd\u6570"),(0,a.kt)("p",{parentName:"li"},"zip\u51fd\u6570\u53ef\u4ee5\u7406\u89e3\u4e3a\u538b\u7f29\uff0c\u5c06\u8f93\u5165\u7684\u4e24\u4e2a\u8fed\u4ee3\u5668\u7684",(0,a.kt)("strong",{parentName:"p"},"\u6700\u5916\u5c42"),"\u5bf9\u5e94\u5143\u7d20\u538b\u7f29\u4e3a\u4e00\u4e2a\u65b0\u7684\u5143\u7d20"),(0,a.kt)("pre",{parentName:"li"},(0,a.kt)("code",{parentName:"pre",className:"language-python"},"a = torch.tensor([1, 2, 3])\nb = torch.tensor([4, 5, 6])\nc = zip(a, b)\nfor i in c:\n print(i)\n'''\n(tensor(1), tensor(4))\n(tensor(2), tensor(5))\n(tensor(3), tensor(6))\n'''\na = torch.tensor([[1, 2, 3], [3, 2, 1]])\nb = torch.tensor([[4, 5, 6], [6, 5, 4]])\nc = zip(a, b)\nfor i in c:\n print(i)\n'''\n(tensor([1, 2, 3]), tensor([4, 5, 6]))\n(tensor([3, 2, 1]), tensor([6, 5, 4]))\n'''\n")))))}u.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/c4f5d8e4.2acb6b67.js b/assets/js/c4f5d8e4.2acb6b67.js new file mode 100644 index 000000000..4ea5f8a25 --- /dev/null +++ b/assets/js/c4f5d8e4.2acb6b67.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunknpy_notebook=self.webpackChunknpy_notebook||[]).push([[4195],{1792:(e,t,n)=>{n.r(t),n.d(t,{default:()=>k});var a=n(7294),r=n(6010),l=n(9960),c=n(2263),s=n(179),i=n(7462);const o={features:"features_t9lD"},m=n.p+"assets/images/GUET_logo-2ca573752497f4153d65447c4f644736.png",u=n.p+"assets/images/UESTC_logo-26b07a2ed8fc72bcc918804e9d572e7b.png",g=n.p+"assets/images/KEXIE_logo-5366f4894a5a4aeb6d632a5158e69097.png",d=n.p+"assets/images/CFM_Circle-485b2bb96d00ce0d9c1cef62bc8254bf.png",p=[{title:"\u7535\u5b50\u79d1\u6280\u5927\u5b66",img:u,description:a.createElement(a.Fragment,null,"\u6c42\u5b9e\u6c42\u771f\uff0c\u5927\u6c14\u5927\u4e3a"),link:"https://www.uestc.edu.cn/"},{title:"\u672a\u6765\u5a92\u4f53\u7814\u7a76\u4e2d\u5fc3",img:d,description:a.createElement(a.Fragment,null,"CENTER FOR FUTURE MEDIA"),link:"https://cfm.uestc.edu.cn/index"},{title:"\u6842\u6797\u7535\u5b50\u79d1\u6280\u5927\u5b66",img:m,description:a.createElement(a.Fragment,null,"\u6b63\u5fb7\u539a\u5b66\uff0c\u7b03\u884c\u81f4\u65b0"),link:"https://www.guet.edu.cn/"},{title:"\u6842\u7535\u4e09\u9662\u79d1\u534f",img:g,description:a.createElement(a.Fragment,null,"\u6728\u8d77\u9752\u7eff\uff0c\u68a6\u7ed8\u521d\u84dd"),link:"https://hello.kexie.space/"}];function E(e){let{img:t,title:n,description:l,link:c}=e;return a.createElement("div",{className:(0,r.Z)("col col--3")},a.createElement("div",{className:"text--center"},a.createElement("a",{href:c,target:"_blank",rel:"noopener noreferrer"},a.createElement("img",{src:t,alt:"Image",style:{width:175,height:"auto",marginBottom:"1.2rem"}}))),a.createElement("div",{className:"text--center padding-horiz--md"},a.createElement("h3",{className:(0,r.Z)("title")},a.createElement("a",{href:c,target:"_blank",rel:"noopener noreferrer"},n)),a.createElement("p",null,l)))}function b(){return a.createElement("section",{className:o.features},a.createElement("div",{className:"container"},a.createElement("div",{className:(0,r.Z)("row")},p.map(((e,t)=>a.createElement(E,(0,i.Z)({key:t},e)))))))}const h={heroBanner:"heroBanner_qdFl",buttons:"buttons_AeoN",buttonFonts:"buttonFonts_pwBM"};function f(){const{siteConfig:e}=(0,c.Z)();return a.createElement("header",{className:(0,r.Z)("hero hero--primary",h.heroBanner),style:{backgroundSize:"cover",backgroundPosition:"center"}},a.createElement("div",{className:"container"},a.createElement("h1",{className:"hero__title"},e.title),a.createElement("p",{className:"hero__subtitle"},e.tagline),a.createElement("div",{className:h.buttons},a.createElement(l.Z,{className:(0,r.Z)("button button--secondary button--lg",h.buttonFonts),to:"/docs/Deep-Learning/intro"},"\ud83d\udcd6 \u4ece\u6df1\u5ea6\u5b66\u4e60\u5f00\u59cb\u6d4f\u89c8 \ud83d\ude80"))))}function k(){const{siteConfig:e}=(0,c.Z)();return a.createElement(s.Z,{title:`${e.title}`,description:"Description will go into a meta tag in <head />"},a.createElement(f,null),a.createElement("main",null,a.createElement(b,null)))}}}]); \ No newline at end of file diff --git a/assets/js/cccb4b32.73ee6c98.js b/assets/js/cccb4b32.73ee6c98.js new file mode 100644 index 000000000..21aaaf0e0 --- /dev/null +++ b/assets/js/cccb4b32.73ee6c98.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunknpy_notebook=self.webpackChunknpy_notebook||[]).push([[3346],{3905:(e,t,n)=>{n.d(t,{Zo:()=>c,kt:()=>d});var r=n(7294);function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function i(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var p=r.createContext({}),s=function(e){var t=r.useContext(p),n=t;return e&&(n="function"==typeof e?e(t):l(l({},t),e)),n},c=function(e){var t=s(e.components);return r.createElement(p.Provider,{value:t},e.children)},u="mdxType",k={inlineCode:"code",wrapper:function(e){var t=e.children;return r.createElement(r.Fragment,{},t)}},m=r.forwardRef((function(e,t){var n=e.components,o=e.mdxType,a=e.originalType,p=e.parentName,c=i(e,["components","mdxType","originalType","parentName"]),u=s(n),m=o,d=u["".concat(p,".").concat(m)]||u[m]||k[m]||a;return n?r.createElement(d,l(l({ref:t},c),{},{components:n})):r.createElement(d,l({ref:t},c))}));function d(e,t){var n=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var a=n.length,l=new Array(a);l[0]=m;var i={};for(var p in t)hasOwnProperty.call(t,p)&&(i[p]=t[p]);i.originalType=e,i[u]="string"==typeof e?e:o,l[1]=i;for(var s=2;s<a;s++)l[s]=n[s];return r.createElement.apply(null,l)}return r.createElement.apply(null,n)}m.displayName="MDXCreateElement"},9575:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>p,contentTitle:()=>l,default:()=>k,frontMatter:()=>a,metadata:()=>i,toc:()=>s});var r=n(7462),o=(n(7294),n(3905));const a={},l="Linux\u7cfb\u7edf\u4e0bGeekOS\u7684\u73af\u5883\u914d\u7f6e",i={unversionedId:"Curriculum/\u64cd\u4f5c\u7cfb\u7edf\u8bfe\u8bbe/Environment-Configuration",id:"Curriculum/\u64cd\u4f5c\u7cfb\u7edf\u8bfe\u8bbe/Environment-Configuration",title:"Linux\u7cfb\u7edf\u4e0bGeekOS\u7684\u73af\u5883\u914d\u7f6e",description:"\u4e00\u3001\u5fc5\u987b\u8981\u77e5\u9053\u7684\u539f\u7406",source:"@site/docs/Curriculum/4-\u64cd\u4f5c\u7cfb\u7edf\u8bfe\u8bbe/1-Environment-Configuration.md",sourceDirName:"Curriculum/4-\u64cd\u4f5c\u7cfb\u7edf\u8bfe\u8bbe",slug:"/Curriculum/\u64cd\u4f5c\u7cfb\u7edf\u8bfe\u8bbe/Environment-Configuration",permalink:"/docs/Curriculum/\u64cd\u4f5c\u7cfb\u7edf\u8bfe\u8bbe/Environment-Configuration",draft:!1,tags:[],version:"current",sidebarPosition:1,frontMatter:{},sidebar:"curriculum",previous:{title:"\u7f16\u8bd1\u539f\u7406\u7b14\u8bb0",permalink:"/docs/Curriculum/\u7f16\u8bd1\u539f\u7406/Note"},next:{title:"GeekOS project 0\u7684\u5b9e\u73b0",permalink:"/docs/Curriculum/\u64cd\u4f5c\u7cfb\u7edf\u8bfe\u8bbe/GeekOS-project-0"}},p={},s=[{value:"\u4e00\u3001\u5fc5\u987b\u8981\u77e5\u9053\u7684\u539f\u7406",id:"\u4e00\u5fc5\u987b\u8981\u77e5\u9053\u7684\u539f\u7406",level:2},{value:"1. GeekOS:",id:"1-geekos",level:3},{value:"2. bochs:",id:"2-bochs",level:3},{value:"3. <strong>\u4e8c\u8005\u4e4b\u95f4\u7684\u5173\u7cfb</strong>",id:"3-\u4e8c\u8005\u4e4b\u95f4\u7684\u5173\u7cfb",level:3},{value:"\u4e8c\u3001\u5b89\u88c5\u4e0e\u914d\u7f6e",id:"\u4e8c\u5b89\u88c5\u4e0e\u914d\u7f6e",level:2},{value:"1. \u5b89\u88c5",id:"1-\u5b89\u88c5",level:3},{value:"2. \u914d\u7f6e",id:"2-\u914d\u7f6e",level:3},{value:"GeekOS\u4e2dmakefile\u7684\u914d\u7f6e",id:"geekos\u4e2dmakefile\u7684\u914d\u7f6e",level:4},{value:"bochs\u914d\u7f6e\u6587\u4ef6\u7684\u4fee\u6539",id:"bochs\u914d\u7f6e\u6587\u4ef6\u7684\u4fee\u6539",level:4}],c={toc:s},u="wrapper";function k(e){let{components:t,...n}=e;return(0,o.kt)(u,(0,r.Z)({},c,n,{components:t,mdxType:"MDXLayout"}),(0,o.kt)("h1",{id:"linux\u7cfb\u7edf\u4e0bgeekos\u7684\u73af\u5883\u914d\u7f6e"},"Linux\u7cfb\u7edf\u4e0bGeekOS\u7684\u73af\u5883\u914d\u7f6e"),(0,o.kt)("h2",{id:"\u4e00\u5fc5\u987b\u8981\u77e5\u9053\u7684\u539f\u7406"},"\u4e00\u3001\u5fc5\u987b\u8981\u77e5\u9053\u7684\u539f\u7406"),(0,o.kt)("h3",{id:"1-geekos"},"1. GeekOS:"),(0,o.kt)("p",null,"GeekOS\u662f\u4e00\u4e2a\u57fa\u4e8ex86\u4f53\u7cfb\u7ed3\u6784\u7684\u5fae\u64cd\u4f5c\u7cfb\u7edf\u5185\u6838. \u7531\u7f8e\u56fd\u9a6c\u7406\u5170\u5927\u5b66\u7684\u6559\u5e08\u5f00\u53d1, \u4e3b\u8981\u7528\u4e8e\u64cd\u4f5c\u7cfb\u7edf\u8bfe\u7a0b\u8bbe\u8ba1\u7684\u6559\u80b2. \u51fa\u4e8e\u6559\u5b66\u76ee\u7684, \u8fd9\u4e2a\u7cfb\u7edf\u5185\u6838\u8bbe\u8ba1\u7b80\u5355, \u5374\u53c8\u517c\u5907\u5b9e\u7528\u6027, \u5b83\u53ef\u4ee5\u8fd0\u884c\u5728\u771f\u6b63\u7684X86 PC\u786c\u4ef6\u5e73\u53f0."),(0,o.kt)("p",null,"\u5728\u4e0b\u8f7d\u597dGeekOS\u540e, \u5728geekos-version/src/\u76ee\u5f55\u4e0b\u4f1a\u5b58\u5728project0-project6\u8fd97\u4e2a\u6587\u4ef6\u5939, \u5206\u522b\u4ee3\u8868GeekOS\u8bbe\u8ba1\u76847\u4e2a\u5b66\u4e60\u4efb\u52a1."),(0,o.kt)("p",null,"\u5728\u73af\u5883\u642d\u5efa\u5b8c\u6210\u4e4b\u540e, \u6211\u4eec\u8fdb\u884c\u7684\u6bcf\u4e00\u4e2a\u9879\u76ee\u7684\u4ee3\u7801\u7f16\u5199\u51e0\u4e4e\u90fd\u5728geekos-version/src/projecti/src/geekos/\u6587\u4ef6\u5939\u4e0b, \u6bcf\u4e00\u4e2a\u9879\u76ee\u7684\u7f16\u8bd1\u90fd\u5728geekos-version/src/projecti/build\u6587\u4ef6\u5939\u4e0b\u8fdb\u884c, \u5373\u8981\u5728\u7ec8\u7aef\u4e2d\u901a\u8fc7",(0,o.kt)("inlineCode",{parentName:"p"},"cd"),"\u8fdb\u5165\u8be5\u76ee\u5f55, \u518d\u6267\u884c",(0,o.kt)("inlineCode",{parentName:"p"},"make depend"),"\u548c",(0,o.kt)("inlineCode",{parentName:"p"},"make"),"\u547d\u4ee4."),(0,o.kt)("h3",{id:"2-bochs"},"2. bochs:"),(0,o.kt)("p",null,"bochs\u662f\u4e00\u4e2ax86\u786c\u4ef6\u5e73\u53f0\u7684\u6a21\u62df\u5668. GeekOS\u8fd0\u884c\u4f9d\u6258\u4e8ebochs. "),(0,o.kt)("p",null,"\u5728\u5b89\u88c5\u597dLinux\u64cd\u4f5c\u7cfb\u7edf\u540e\u9700\u8981\u5b89\u88c5bochs\u4ee5\u53canasm, \u4ee5\u5b8c\u6210GeekOS\u73af\u5883\u7684\u642d\u5efa."),(0,o.kt)("h3",{id:"3-\u4e8c\u8005\u4e4b\u95f4\u7684\u5173\u7cfb"},"3. ",(0,o.kt)("strong",{parentName:"h3"},"\u4e8c\u8005\u4e4b\u95f4\u7684\u5173\u7cfb")),(0,o.kt)("p",null,"GeekOS\u7684\u5f00\u53d1\u73af\u5883\u53ef\u5206\u4e3a\u4e24\u90e8\u5206, \u4e00\u90e8\u5206\u662f\u7f16\u8bd1\u73af\u5883, \u4e00\u90e8\u5206\u662f\u8fd0\u884c\u73af\u5883. "),(0,o.kt)("p",null,(0,o.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_images/202304251116967.jpg",alt:null})),(0,o.kt)("p",null,"\u5728\u7f16\u8bd1\u8fc7\u7a0b\u4e2d, \u4f7f\u7528Linux\u81ea\u5e26\u7684\u7f16\u8bd1\u73af\u5883\u4ee5\u53ca\u7f16\u8bd1\u547d\u4ee4\u5bf9\u7279\u5b9a\u7684GeekOS project\u8fdb\u884c\u7f16\u8bd1\u5373\u53ef. \u9996\u5148\u5728\u7ec8\u7aef\u4e2d\u901a\u8fc7",(0,o.kt)("inlineCode",{parentName:"p"},"cd"),"\u547d\u4ee4\u8fdb\u5165geekos-version/src/projecti/build\u76ee\u5f55, \u518d\u6267\u884cmake depend\u548cmake\u547d\u4ee4. \u7f16\u8bd1\u540e\u751f\u6210bochs\u7684\u955c\u50cf\u6587\u4ef6fd.img, \u8fd9\u662fbochs\u8fd0\u884c\u6240\u5fc5\u987b\u7684\u6587\u4ef6,\u4e5f\u662fGeekOS\u8fd0\u884c\u73af\u5883\u7684\u524d\u7f6e\u914d\u7f6e. "),(0,o.kt)("h2",{id:"\u4e8c\u5b89\u88c5\u4e0e\u914d\u7f6e"},"\u4e8c\u3001\u5b89\u88c5\u4e0e\u914d\u7f6e"),(0,o.kt)("p",null,"\u5b89\u88c5\u5176\u5b9e\u975e\u5e38\u7b80\u5355, \u8fd9\u91cc\u4e3b\u8981\u82b1\u7bc7\u5e45\u4ecb\u7ecd\u5b89\u88c5\u540e\u89e3\u51b3\u62a5\u9519\u7684\u914d\u7f6e."),(0,o.kt)("h3",{id:"1-\u5b89\u88c5"},"1. \u5b89\u88c5"),(0,o.kt)("p",null,"\u9700\u8981\u4e0b\u8f7d",(0,o.kt)("a",{parentName:"p",href:"https://sourceforge.net/projects/geekos/files/"},"GeekOS Files"),", \u5b89\u88c5bochs, nasm\u7b49."),(0,o.kt)("p",null,"GeekOS\u76f4\u63a5\u4e0b\u8f7d\u538b\u7f29\u5305, \u89e3\u538b\u5373\u53ef."),(0,o.kt)("p",null,"arch\u7cfb\u7528\u6237\u901a\u8fc7\u4ee5\u4e0b\u547d\u4ee4\u5373\u53ef\u5b8c\u6210bochs\u548cnasm\u7684\u5b89\u88c5."),(0,o.kt)("pre",null,(0,o.kt)("code",{parentName:"pre",className:"language-bash"},"yay -S bochs nasm\n")),(0,o.kt)("p",null,"\u5176\u4ed6\u53d1\u884c\u7248\u7684\u5b89\u88c5\u65b9\u6cd5\u8fd9\u91cc\u4e0d\u518d\u8d58\u8ff0, \u53ef\u9009\u62e9\u4ece\u7fa4\u6587\u4ef6\u91cc\u4e0b\u8f7d\u6e90\u6587\u4ef6\u5e76\u7f16\u8bd1\u5b89\u88c5, \u5e08\u5144\u5e08\u59d0\u4e5f\u5728\u7fa4\u6587\u4ef6\u91cc\u7ed9\u4e86\u4e00\u4e9b\u6559\u7a0b\u6307\u5bfc."),(0,o.kt)("h3",{id:"2-\u914d\u7f6e"},"2. \u914d\u7f6e"),(0,o.kt)("p",null,"\u5b8c\u6210\u5b89\u88c5\u540e, \u6211\u4eec\u5c31\u53ef\u4ee5\u5f00\u59cb\u5bf9project0\u4e2d\u7684\u4ee3\u7801\u8fdb\u884c\u5b8c\u5584\u4e86, \u5e76\u5728geekos-version/src/project0/build\u76ee\u5f55\u4e0b\u6267\u884c",(0,o.kt)("inlineCode",{parentName:"p"},"make depend"),"\u4ee5\u53ca",(0,o.kt)("inlineCode",{parentName:"p"},"make"),"\u547d\u4ee4, \u76ee\u7684\u662f\u7f16\u8bd1project0\u7684\u4ee3\u7801, \u751f\u6210bochs\u7684\u955c\u50cf\u6587\u4ef6fd.img\u4ee5\u6784\u5efaGeekOS\u7684\u8fd0\u884c\u73af\u5883."),(0,o.kt)("p",null,"\u4f46\u5f88\u591a\u62a5\u9519\u5c31\u662f\u5728",(0,o.kt)("inlineCode",{parentName:"p"},"make"),"\u8fd9\u4e00\u6b65\u4ea7\u751f\u7684, \u56e0\u6b64\u5728\u5b89\u88c5\u5b8c\u6210\u540e\u8fd8\u9700\u8981\u8fdb\u884c",(0,o.kt)("strong",{parentName:"p"},"\u914d\u7f6e"),"."),(0,o.kt)("p",null,"\u914d\u7f6e\u5206\u4e3a\u4e24\u90e8\u5206, \u4e00\u4e2a\u662f\u5bf9GeekOS\u4e2dmakefile\u7684\u4fee\u6539, \u53e6\u4e00\u90e8\u5206\u662f\u5bf9bochs\u7684\u914d\u7f6e\u6587\u4ef6\u7684\u4fee\u6539."),(0,o.kt)("h4",{id:"geekos\u4e2dmakefile\u7684\u914d\u7f6e"},"GeekOS\u4e2dmakefile\u7684\u914d\u7f6e"),(0,o.kt)("p",null,"\u7efc\u5408\u7f51\u4e0a\u5f88\u591a\u5e08\u5144\u5e08\u59d0\u7684\u535a\u5ba2\uff0c\u8fd9\u4e09\u4e2a\u9519\u8bef\u5e94\u8be5\u662f\u6bcf\u4e2a\u4eba\u90fd\u4f1a\u9047\u5230\u7684\uff0c\u6240\u4ee5\u5f53\u4f60\u4e0d\u786e\u5b9a\u81ea\u5df1\u80fd\u4e0d\u80fd\u8fd0\u884c\u65f6\uff0c\u8bf7\u5168\u90e8\u5b8c\u6210\u8fd9\u4e09\u4e2a\u6b65\u9aa4."),(0,o.kt)("ul",null,(0,o.kt)("li",{parentName:"ul"},(0,o.kt)("p",{parentName:"li"},"\u95ee\u9898: ",(0,o.kt)("inlineCode",{parentName:"p"},"warnings being treated as errors")),(0,o.kt)("p",{parentName:"li"},"\u89e3\u51b3\u65b9\u6848: "),(0,o.kt)("p",{parentName:"li"},"\u4fee\u6539geekos-version/src/projecti/build\u76ee\u5f55\u4e0b\u7684makefie\u6587\u4ef6(\u7531\u4e8e\u6bcf\u4e2aproject\u4e0b\u90fd\u5b58\u5728\u4e00\u4e2a\u5bf9\u5e94\u7684makefile\u6587\u4ef6, \u6240\u4ee5\u5728\u6bcf\u4e2a\u9879\u76ee\u7f16\u8bd1\u524d\u90fd\u8981\u4fee\u6539\u4e00\u6b21)"),(0,o.kt)("pre",{parentName:"li"},(0,o.kt)("code",{parentName:"pre",className:"language-makefile"},"// \u4fee\u6539\u7b2c149\u884c\uff1a\nCC_GENERAL_OPTS := $(GENERAL_OPTS) -Werror \n// \u4fee\u6539\u540e\uff1a\nCC_GENERAL_OPTS := $(GENERAL_OPTS)\n"))),(0,o.kt)("li",{parentName:"ul"},(0,o.kt)("p",{parentName:"li"},"\u95ee\u9898: ",(0,o.kt)("inlineCode",{parentName:"p"},"X86_64\u4e0ei386\u8f93\u51fa\u4e0d\u517c\u5bb9")),(0,o.kt)("p",{parentName:"li"},"\u89e3\u51b3\u65b9\u6848: "),(0,o.kt)("p",{parentName:"li"},"\u4fee\u6539geekos-version/src/projecti/build\u76ee\u5f55\u4e0b\u7684makefie\u6587\u4ef6"),(0,o.kt)("pre",{parentName:"li"},(0,o.kt)("code",{parentName:"pre",className:"language-makefile"},"# Target C compiler. gcc 2.95.2 or later should work. 100\u884c\nTARGET_CC := $(TARGET_CC_PREFIX)gcc -m32\n\n# Host C compiler. This is used to compile programs to execute on\n# the host platform, not the target (x86) platform. On x86/ELF\n# systems, such as Linux and FreeBSD, it can generally be the same\n# as the target C compiler. 106\u884c\nHOST_CC := gcc -m32\n\n# Target linker. GNU ld is probably to only one that will work.109\u884c\nTARGET_LD := $(TARGET_CC_PREFIX)ld -m elf_i386\n"))),(0,o.kt)("li",{parentName:"ul"},(0,o.kt)("p",{parentName:"li"},"\u95ee\u9898: ",(0,o.kt)("inlineCode",{parentName:"p"},"undefined reference to '__stack_chk_fail'")),(0,o.kt)("p",{parentName:"li"},"\u89e3\u51b3\u65b9\u6848: "),(0,o.kt)("p",{parentName:"li"},"\u4fee\u6539geekos-version/src/projecti/build\u76ee\u5f55\u4e0b\u7684makefie\u6587\u4ef6"),(0,o.kt)("pre",{parentName:"li"},(0,o.kt)("code",{parentName:"pre",className:"language-makefile"},"# Flags used for all C source files\n// \u4fee\u6539\u524d\uff1a148\u884c\nGENERAL_OPTS := -O -Wall $(EXTRA_C_OPTS)\n// \u4fee\u6539\u540e\uff1a\nGENERAL_OPTS := -O -Wall -fno-stack-protector $(EXTRA_C_OPTS)\n")))),(0,o.kt)("h4",{id:"bochs\u914d\u7f6e\u6587\u4ef6\u7684\u4fee\u6539"},"bochs\u914d\u7f6e\u6587\u4ef6\u7684\u4fee\u6539"),(0,o.kt)("p",null,"\u5728geekos-version/src/projecti/build\u76ee\u5f55\u4e0b\u521b\u5efa.bochsrc\u6587\u4ef6"),(0,o.kt)("pre",null,(0,o.kt)("code",{parentName:"pre",className:"language-makefile"},"# An example .bochsrc file.\n# You will need to edit these lines to reflect your system.\nvgaromimage: file=/usr/local/share/bochs/VGABIOS-lgpl-latest\n# \u8bf7\u6839\u636e\u81ea\u5df1\u7684\u5b9e\u9645\u5b89\u88c5\u8def\u5f84\u66f4\u6539\nromimage: file=/usr/local/share/bochs/BIOS-bochs-latest\n# \u8bf7\u6839\u636e\u81ea\u5df1\u7684\u5b9e\u9645\u5b89\u88c5\u8def\u5f84\u66f4\u6539\nmegs: 8\nboot: a\nfloppya: 1_44=fd.img, status=inserted\n#floppya: 1_44=fd_aug.img, status=inserted\nlog: ./bochs.out\n# keyboard_serial_delay: 200\n# vga_update_interval: 300000\nmouse: enabled=0\nprivate_colormap: enabled=0\n# i440fxsupport: enabled=0\n# Uncomment this to write all bochs debugging messages to\n# bochs.out. This produces a lot of output, but can be very\n# useful for debugging the kernel.\n#debug: action=report\n\n")),(0,o.kt)("p",null,"\u5230\u6b64\u4e3a\u6b62, \u6240\u6709\u7684\u914d\u7f6e\u5de5\u4f5c\u5df2\u7ecf\u5b8c\u6210, \u53ef\u4ee5\u6b63\u5e38\u7684\u8fdb\u884c\u4e0b\u4e00\u6b65\u7684\u4ee3\u7801\u5b8c\u5584."),(0,o.kt)("p",null,"\u5982\u679c\u9700\u8981\u9a8c\u8bc1\u81ea\u5df1\u662f\u5426\u914d\u7f6e\u6210\u529f, \u53ef\u4ee5\u53c2\u7167\u4e0b\u4e00\u7bc7\u535a\u5ba2",(0,o.kt)("a",{parentName:"p",href:"https://bonjour-npy.github.io/docs/%E8%AF%BE%E7%A8%8B%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0/%E6%93%8D%E4%BD%9C%E7%B3%BB%E7%BB%9F%E8%AF%BE%E8%AE%BE/GeekOS%20project%200"},"GeekOS project 0\u7684\u5b9e\u73b0"),", \u5728\u672c\u7bc7\u535a\u5ba2\u4e2d\u4f1a\u6709\u5b8c\u6574\u7684C\u8bed\u8a00\u4ee3\u7801\u7f16\u5199\u4ee5\u53ca\u7f16\u8bd1\u3001\u4f7f\u7528bochs\u6267\u884c\u7684\u8fc7\u7a0b."))}k.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/cf67a3ce.6365d2a3.js b/assets/js/cf67a3ce.6365d2a3.js new file mode 100644 index 000000000..3e890e1aa --- /dev/null +++ b/assets/js/cf67a3ce.6365d2a3.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunknpy_notebook=self.webpackChunknpy_notebook||[]).push([[3094],{3905:(a,e,t)=>{t.d(e,{Zo:()=>i,kt:()=>h});var s=t(7294);function m(a,e,t){return e in a?Object.defineProperty(a,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):a[e]=t,a}function n(a,e){var t=Object.keys(a);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(a);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable}))),t.push.apply(t,s)}return t}function p(a){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?n(Object(t),!0).forEach((function(e){m(a,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(t)):n(Object(t)).forEach((function(e){Object.defineProperty(a,e,Object.getOwnPropertyDescriptor(t,e))}))}return a}function r(a,e){if(null==a)return{};var t,s,m=function(a,e){if(null==a)return{};var t,s,m={},n=Object.keys(a);for(s=0;s<n.length;s++)t=n[s],e.indexOf(t)>=0||(m[t]=a[t]);return m}(a,e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);for(s=0;s<n.length;s++)t=n[s],e.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(a,t)&&(m[t]=a[t])}return m}var N=s.createContext({}),l=function(a){var e=s.useContext(N),t=e;return a&&(t="function"==typeof a?a(e):p(p({},e),a)),t},i=function(a){var e=l(a.components);return s.createElement(N.Provider,{value:e},a.children)},k="mdxType",c={inlineCode:"code",wrapper:function(a){var e=a.children;return s.createElement(s.Fragment,{},e)}},o=s.forwardRef((function(a,e){var t=a.components,m=a.mdxType,n=a.originalType,N=a.parentName,i=r(a,["components","mdxType","originalType","parentName"]),k=l(t),o=m,h=k["".concat(N,".").concat(o)]||k[o]||c[o]||n;return t?s.createElement(h,p(p({ref:e},i),{},{components:t})):s.createElement(h,p({ref:e},i))}));function h(a,e){var t=arguments,m=e&&e.mdxType;if("string"==typeof a||m){var n=t.length,p=new Array(n);p[0]=o;var r={};for(var N in e)hasOwnProperty.call(e,N)&&(r[N]=e[N]);r.originalType=a,r[k]="string"==typeof a?a:m,p[1]=r;for(var l=2;l<n;l++)p[l]=t[l];return s.createElement.apply(null,p)}return s.createElement.apply(null,t)}o.displayName="MDXCreateElement"},3582:(a,e,t)=>{t.r(e),t.d(e,{assets:()=>N,contentTitle:()=>p,default:()=>c,frontMatter:()=>n,metadata:()=>r,toc:()=>l});var s=t(7462),m=(t(7294),t(3905));const n={},p="\u6b63\u5219\u5316\u4e0e\u6743\u91cd\u8870\u9000",r={unversionedId:"Deep-Learning/\u57fa\u7840\u77e5\u8bc6/\u6b63\u5219\u5316\u4e0e\u6743\u91cd\u8870\u9000",id:"Deep-Learning/\u57fa\u7840\u77e5\u8bc6/\u6b63\u5219\u5316\u4e0e\u6743\u91cd\u8870\u9000",title:"\u6b63\u5219\u5316\u4e0e\u6743\u91cd\u8870\u9000",description:"\u6b63\u5219\u5316\u4e0e\u6743\u91cd\u8870\u9000",source:"@site/docs/Deep-Learning/3-\u57fa\u7840\u77e5\u8bc6/\u6b63\u5219\u5316\u4e0e\u6743\u91cd\u8870\u9000.md",sourceDirName:"Deep-Learning/3-\u57fa\u7840\u77e5\u8bc6",slug:"/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/\u6b63\u5219\u5316\u4e0e\u6743\u91cd\u8870\u9000",permalink:"/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/\u6b63\u5219\u5316\u4e0e\u6743\u91cd\u8870\u9000",draft:!1,tags:[],version:"current",frontMatter:{},sidebar:"deep_learning",previous:{title:"PyTorch\u57fa\u7840",permalink:"/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/PytorchBasics"},next:{title:"\u6df1\u5ea6\u53ef\u5206\u79bb\u5377\u79ef",permalink:"/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/\u6df1\u5ea6\u53ef\u5206\u79bb\u5377\u79ef"}},N={},l=[{value:"\u4e00\u3001\u4ec0\u4e48\u662f\u6b63\u5219\u5316",id:"\u4e00\u4ec0\u4e48\u662f\u6b63\u5219\u5316",level:2},{value:"\u4e8c\u3001L1\u6b63\u5219\u5316",id:"\u4e8cl1\u6b63\u5219\u5316",level:2},{value:"\u4e09\u3001L2\u6b63\u5219\u5316\u4e0e\u6743\u91cd\u8870\u9000",id:"\u4e09l2\u6b63\u5219\u5316\u4e0e\u6743\u91cd\u8870\u9000",level:2}],i={toc:l},k="wrapper";function c(a){let{components:e,...t}=a;return(0,m.kt)(k,(0,s.Z)({},i,t,{components:e,mdxType:"MDXLayout"}),(0,m.kt)("h1",{id:"\u6b63\u5219\u5316\u4e0e\u6743\u91cd\u8870\u9000"},"\u6b63\u5219\u5316\u4e0e\u6743\u91cd\u8870\u9000"),(0,m.kt)("admonition",{type:"tip"},(0,m.kt)("p",{parentName:"admonition"},"\u6b63\u5219\u5316\u4e0e\u6743\u91cd\u8870\u9000")),(0,m.kt)("h2",{id:"\u4e00\u4ec0\u4e48\u662f\u6b63\u5219\u5316"},"\u4e00\u3001\u4ec0\u4e48\u662f\u6b63\u5219\u5316"),(0,m.kt)("p",null,"\u6b63\u5219\u5316(Regularization)\u662f\u673a\u5668\u5b66\u4e60\u4e2d\u7528\u4e8e\u63a7\u5236\u6a21\u578b\u8fc7\u62df\u5408\u7684\u4e00\u79cd\u6280\u672f\u3002\u5728\u6a21\u578b\u8bad\u7ec3\u8fc7\u7a0b\u4e2d\uff0c\u6211\u4eec\u901a\u5e38\u8981\u6700\u5c0f\u5316\u4e00\u4e2a\u635f\u5931\u51fd\u6570\u6765\u5f97\u5230\u6700\u4f73\u7684\u6a21\u578b\u53c2\u6570\u3002\u4f46\u662f\u5f53\u6a21\u578b\u8fc7\u4e8e\u590d\u6742\u65f6\uff0c\u5bb9\u6613\u51fa\u73b0\u8fc7\u62df\u5408\u73b0\u8c61\uff0c\u5373\u5728\u8bad\u7ec3\u6570\u636e\u4e0a\u8868\u73b0\u5f88\u597d\uff0c\u4f46\u5728\u6d4b\u8bd5\u6570\u636e\u4e0a\u8868\u73b0\u5f88\u5dee\u3002\u8fd9\u662f\u56e0\u4e3a",(0,m.kt)("strong",{parentName:"p"},"\u6a21\u578b\u8fc7\u4e8e\u4f9d\u8d56\u8bad\u7ec3\u6570\u636e\u7684\u566a\u58f0\u548c\u7ec6\u8282\uff0c\u800c\u5ffd\u7565\u4e86\u771f\u6b63\u7684\u89c4\u5f8b\u3002")),(0,m.kt)("p",null,"\u6b63\u5219\u5316\u901a\u8fc7\u5728\u635f\u5931\u51fd\u6570\u4e2d\u589e\u52a0\u4e00\u4e2a",(0,m.kt)("strong",{parentName:"p"},"\u60e9\u7f5a\u9879(Penalty)"),"\u6765\u5bf9\u6a21\u578b\u8fdb\u884c\u7ea6\u675f\uff0c\u9632\u6b62\u5176\u8fc7\u5206\u4f9d\u8d56\u8bad\u7ec3\u6570\u636e\u3002"),(0,m.kt)("p",null,"\u5e38\u89c1\u7684\u6b63\u5219\u5316\u65b9\u6cd5\u5305\u62ecL1\u6b63\u5219\u5316(\u786c\u6027\u9650\u5236)\u3001L2\u6b63\u5219\u5316(\u67d4\u6027\u9650\u5236)\u7b49\u3002"),(0,m.kt)("p",null,"L1\u6b63\u5219\u5316\u4f1a\u4f7f\u5f97\u4e00\u90e8\u5206\u53c2\u6570\u53d8\u4e3a0\uff0c\u4ece\u800c\u5b9e\u73b0\u7279\u5f81\u9009\u62e9\u7684\u6548\u679c\uff1bL2\u6b63\u5219\u5316\u5219\u4f1a\u4f7f\u5f97\u6a21\u578b\u53c2\u6570\u5c3d\u91cf\u63a5\u8fd10\uff0c\u4e5f\u5c31\u662f\u4f7f\u5f97\u6a21\u578b\u66f4\u52a0\u5e73\u6ed1\u3002\u5728\u4f7f\u7528\u6b63\u5219\u5316\u65f6\uff0c\u9700\u8981\u8c03\u6574\u6b63\u5219\u5316\u5f3a\u5ea6\u7684\u8d85\u53c2\u6570\uff0c\u4ee5\u8fbe\u5230\u6700\u4f18\u7684\u6cdb\u5316\u6027\u80fd\u3002"),(0,m.kt)("hr",null),(0,m.kt)("h2",{id:"\u4e8cl1\u6b63\u5219\u5316"},"\u4e8c\u3001L1\u6b63\u5219\u5316"),(0,m.kt)("div",{className:"math math-display"},(0,m.kt)("span",{parentName:"div",className:"katex-display"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mtable",{parentName:"semantics",width:"100%"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mrow",{parentName:"mtd"},(0,m.kt)("mi",{parentName:"mrow"},"m"),(0,m.kt)("mi",{parentName:"mrow"},"i"),(0,m.kt)("mi",{parentName:"mrow"},"n"),(0,m.kt)("mtext",{parentName:"mrow"},"\xa0"),(0,m.kt)("mi",{parentName:"mrow"},"l"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"w"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"b"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mtext",{parentName:"mrow"},"\xa0subject\xa0to\xa0"),(0,m.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"\u2225"),(0,m.kt)("mi",{parentName:"mrow"},"w"),(0,m.kt)("msubsup",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msubsup",mathvariant:"normal"},"\u2225"),(0,m.kt)("mn",{parentName:"msubsup"},"1"),(0,m.kt)("mn",{parentName:"msubsup"},"2")),(0,m.kt)("mo",{parentName:"mrow"},"\u2264"),(0,m.kt)("mi",{parentName:"mrow"},"\u03b8"))),(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mtext",{parentName:"mtd"},"(1)")))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"min \\space l(w, b) \\space \\text{subject to} \\space \\Vert w \\Vert^2_1 \\leq \\theta \\tag{1}")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1.1141em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"min"),(0,m.kt)("span",{parentName:"span",className:"mspace"},"\xa0"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.01968em"}},"l"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02691em"}},"w"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"b"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace"},"\xa0"),(0,m.kt)("span",{parentName:"span",className:"mord text"},(0,m.kt)("span",{parentName:"span",className:"mord"},"subject\xa0to")),(0,m.kt)("span",{parentName:"span",className:"mspace"},"\xa0"),(0,m.kt)("span",{parentName:"span",className:"mord"},"\u2225"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02691em"}},"w"),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"\u2225"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.8641em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.453em",marginLeft:"0em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"1"))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.113em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"2")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.247em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"\u2264"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6944em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02778em"}},"\u03b8")),(0,m.kt)("span",{parentName:"span",className:"tag"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1.1141em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord text"},(0,m.kt)("span",{parentName:"span",className:"mord"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"1")),(0,m.kt)("span",{parentName:"span",className:"mord"},")"))))))),(0,m.kt)("ul",null,(0,m.kt)("li",{parentName:"ul"},"L1\u6b63\u5219\u5316\u9650\u5236\u6743\u91cd\u53c2\u6570\u7684L1\u8303\u6570\u5c0f\u4e8e\u67d0\u4e00\u7279\u5b9a\u7684\u8d85\u53c2\u6570"),(0,m.kt)("li",{parentName:"ul"},"\u901a\u5e38\u4e0d\u9650\u5236\u504f\u79fb",(0,m.kt)("span",{parentName:"li",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"b")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"b")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6944em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"b")))))),(0,m.kt)("li",{parentName:"ul"},"\u66f4\u5c0f\u7684\u8d85\u53c2\u6570",(0,m.kt)("span",{parentName:"li",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"\u03b8")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"\\theta")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6944em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02778em"}},"\u03b8"))))),"\u610f\u5473\u7740\u66f4\u5f3a\u7684\u6b63\u5219\u9879")),(0,m.kt)("hr",null),(0,m.kt)("h2",{id:"\u4e09l2\u6b63\u5219\u5316\u4e0e\u6743\u91cd\u8870\u9000"},"\u4e09\u3001L2\u6b63\u5219\u5316\u4e0e\u6743\u91cd\u8870\u9000"),(0,m.kt)("p",null,"L2\u6b63\u5219\u5316\u662f\u6307\u5728\u6a21\u578b\u7684\u635f\u5931\u51fd\u6570\u4e2d\uff0c\u52a0\u5165\u5bf9\u6a21\u578b\u53c2\u6570\u7684L2\u8303\u6570\u8fdb\u884c\u60e9\u7f5a\u7684\u4e00\u79cd\u65b9\u6cd5\u3002\u516c\u5f0f\u5982\u4e0b\u6240\u793a\uff1a"),(0,m.kt)("div",{className:"math math-display"},(0,m.kt)("span",{parentName:"div",className:"katex-display"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mtable",{parentName:"semantics",width:"100%"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mrow",{parentName:"mtd"},(0,m.kt)("mi",{parentName:"mrow"},"l"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"w"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"b"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"+"),(0,m.kt)("mfrac",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"mfrac"},"\u03bb"),(0,m.kt)("mn",{parentName:"mfrac"},"2")),(0,m.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"\u2225"),(0,m.kt)("mi",{parentName:"mrow"},"w"),(0,m.kt)("msubsup",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msubsup",mathvariant:"normal"},"\u2225"),(0,m.kt)("mn",{parentName:"msubsup"},"1"),(0,m.kt)("mn",{parentName:"msubsup"},"2")))),(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mtext",{parentName:"mtd"},"(2)")))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"l(w, b) + \\frac{\\lambda}{2} \\Vert w \\Vert^2_1 \\tag{2}")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.01968em"}},"l"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02691em"}},"w"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"b"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"+"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"2.0574em",verticalAlign:"-0.686em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mopen nulldelimiter"}),(0,m.kt)("span",{parentName:"span",className:"mfrac"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.3714em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.314em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"2"))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.23em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"frac-line",style:{borderBottomWidth:"0.04em"}})),(0,m.kt)("span",{parentName:"span",style:{top:"-3.677em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"\u03bb")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.686em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"mclose nulldelimiter"})),(0,m.kt)("span",{parentName:"span",className:"mord"},"\u2225"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02691em"}},"w"),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"\u2225"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.8641em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.453em",marginLeft:"0em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"1"))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.113em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"2")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.247em"}},(0,m.kt)("span",{parentName:"span"}))))))),(0,m.kt)("span",{parentName:"span",className:"tag"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"2.0574em",verticalAlign:"-0.686em"}}),(0,m.kt)("span",{parentName:"span",className:"mord text"},(0,m.kt)("span",{parentName:"span",className:"mord"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"2")),(0,m.kt)("span",{parentName:"span",className:"mord"},")"))))))),(0,m.kt)("p",null,"\u5176\u4e2d\uff0c",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"\u03bb")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"\\lambda")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6944em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"\u03bb"))))),"\u662f\u4e00\u4e2a\u6b63\u5219\u5316\u7cfb\u6570\u8d85\u53c2\u6570"),(0,m.kt)("p",null,"\u6b64\u65f6\u5728\u66f4\u65b0\u68af\u5ea6\u65f6\uff0c\u5177\u6709\u5982\u4e0b\u516c\u5f0f"),(0,m.kt)("div",{className:"math math-display"},(0,m.kt)("span",{parentName:"div",className:"katex-display"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mtable",{parentName:"semantics",width:"100%"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mrow",{parentName:"mtd"},(0,m.kt)("mfrac",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"mfrac",mathvariant:"normal"},"\u2202"),(0,m.kt)("mrow",{parentName:"mfrac"},(0,m.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"\u2202"),(0,m.kt)("mi",{parentName:"mrow"},"w"))),(0,m.kt)("mo",{parentName:"mrow",fence:"false",stretchy:"true",minsize:"1.2em",maxsize:"1.2em"},"("),(0,m.kt)("mi",{parentName:"mrow"},"l"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"w"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"b"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"+"),(0,m.kt)("mfrac",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"mfrac"},"\u03bb"),(0,m.kt)("mn",{parentName:"mfrac"},"2")),(0,m.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"\u2225"),(0,m.kt)("mi",{parentName:"mrow"},"w"),(0,m.kt)("msubsup",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msubsup",mathvariant:"normal"},"\u2225"),(0,m.kt)("mn",{parentName:"msubsup"},"1"),(0,m.kt)("mn",{parentName:"msubsup"},"2")),(0,m.kt)("mo",{parentName:"mrow",fence:"false",stretchy:"true",minsize:"1.2em",maxsize:"1.2em"},")"),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("mfrac",{parentName:"mrow"},(0,m.kt)("mrow",{parentName:"mfrac"},(0,m.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"\u2202"),(0,m.kt)("mi",{parentName:"mrow"},"l"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"w"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"b"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,m.kt)("mrow",{parentName:"mfrac"},(0,m.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"\u2202"),(0,m.kt)("mi",{parentName:"mrow"},"w"))),(0,m.kt)("mo",{parentName:"mrow"},"+"),(0,m.kt)("mi",{parentName:"mrow"},"\u03bb"),(0,m.kt)("mi",{parentName:"mrow"},"w"))),(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mtext",{parentName:"mtd"},"(3)")))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"\\frac{\\partial}{\\partial w} \\big(l(w, b) + \\frac{\\lambda}{2} \\Vert w \\Vert^2_1 \\big) = \\frac{\\partial l(w, b)}{\\partial w} + \\lambda w \\tag{3}")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"2.0574em",verticalAlign:"-0.686em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mopen nulldelimiter"}),(0,m.kt)("span",{parentName:"span",className:"mfrac"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.3714em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.314em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord",style:{marginRight:"0.05556em"}},"\u2202"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02691em"}},"w"))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.23em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"frac-line",style:{borderBottomWidth:"0.04em"}})),(0,m.kt)("span",{parentName:"span",style:{top:"-3.677em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord",style:{marginRight:"0.05556em"}},"\u2202")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.686em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"mclose nulldelimiter"})),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"delimsizing size1"},"(")),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.01968em"}},"l"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02691em"}},"w"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"b"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"+"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"2.0574em",verticalAlign:"-0.686em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mopen nulldelimiter"}),(0,m.kt)("span",{parentName:"span",className:"mfrac"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.3714em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.314em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"2"))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.23em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"frac-line",style:{borderBottomWidth:"0.04em"}})),(0,m.kt)("span",{parentName:"span",style:{top:"-3.677em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"\u03bb")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.686em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"mclose nulldelimiter"})),(0,m.kt)("span",{parentName:"span",className:"mord"},"\u2225"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02691em"}},"w"),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"\u2225"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.8641em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.453em",marginLeft:"0em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"1"))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.113em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"2")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.247em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"delimsizing size1"},")")),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"="),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"2.113em",verticalAlign:"-0.686em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mopen nulldelimiter"}),(0,m.kt)("span",{parentName:"span",className:"mfrac"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.427em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.314em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord",style:{marginRight:"0.05556em"}},"\u2202"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02691em"}},"w"))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.23em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"frac-line",style:{borderBottomWidth:"0.04em"}})),(0,m.kt)("span",{parentName:"span",style:{top:"-3.677em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord",style:{marginRight:"0.05556em"}},"\u2202"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.01968em"}},"l"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02691em"}},"w"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"b"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.686em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"mclose nulldelimiter"})),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"+"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6944em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"\u03bb"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02691em"}},"w")),(0,m.kt)("span",{parentName:"span",className:"tag"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"2.113em",verticalAlign:"-0.686em"}}),(0,m.kt)("span",{parentName:"span",className:"mord text"},(0,m.kt)("span",{parentName:"span",className:"mord"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"3")),(0,m.kt)("span",{parentName:"span",className:"mord"},")"))))))),(0,m.kt)("div",{className:"math math-display"},(0,m.kt)("span",{parentName:"div",className:"katex-display"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mtable",{parentName:"semantics",width:"100%"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mrow",{parentName:"mtd"},(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"w"),(0,m.kt)("mrow",{parentName:"msub"},(0,m.kt)("mi",{parentName:"mrow"},"t"),(0,m.kt)("mo",{parentName:"mrow"},"+"),(0,m.kt)("mn",{parentName:"mrow"},"1"))),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mn",{parentName:"mrow"},"1"),(0,m.kt)("mo",{parentName:"mrow"},"\u2212"),(0,m.kt)("mi",{parentName:"mrow"},"\u03b7"),(0,m.kt)("mi",{parentName:"mrow"},"\u03bb"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"w"),(0,m.kt)("mi",{parentName:"msub"},"t")),(0,m.kt)("mo",{parentName:"mrow"},"+"),(0,m.kt)("mi",{parentName:"mrow"},"\u03b7"),(0,m.kt)("mfrac",{parentName:"mrow"},(0,m.kt)("mrow",{parentName:"mfrac"},(0,m.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"\u2202"),(0,m.kt)("mi",{parentName:"mrow"},"l"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"w"),(0,m.kt)("mi",{parentName:"msub"},"t")),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"b"),(0,m.kt)("mi",{parentName:"msub"},"t")),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,m.kt)("mrow",{parentName:"mfrac"},(0,m.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"\u2202"),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"w"),(0,m.kt)("mi",{parentName:"msub"},"t")))))),(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mtext",{parentName:"mtd"},"(4)")))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"w_{t+1}=(1-\\eta \\lambda)w_t + \\eta \\frac{\\partial l(w_t, b_t)}{\\partial w_t} \\tag{4}")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6389em",verticalAlign:"-0.2083em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02691em"}},"w"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0269em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"t"),(0,m.kt)("span",{parentName:"span",className:"mbin mtight"},"+"),(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"1"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.2083em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"="),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},"1"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"\u2212"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"\u03b7"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"\u03bb"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02691em"}},"w"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.2806em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0269em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"t")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"+"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"2.263em",verticalAlign:"-0.836em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"\u03b7"),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mopen nulldelimiter"}),(0,m.kt)("span",{parentName:"span",className:"mfrac"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.427em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.314em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord",style:{marginRight:"0.05556em"}},"\u2202"),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02691em"}},"w"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.2806em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0269em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"t")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.23em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"frac-line",style:{borderBottomWidth:"0.04em"}})),(0,m.kt)("span",{parentName:"span",style:{top:"-3.677em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord",style:{marginRight:"0.05556em"}},"\u2202"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.01968em"}},"l"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02691em"}},"w"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.2806em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0269em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"t")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"b"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.2806em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"t")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mclose"},")")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.836em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"mclose nulldelimiter"}))),(0,m.kt)("span",{parentName:"span",className:"tag"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"2.263em",verticalAlign:"-0.836em"}}),(0,m.kt)("span",{parentName:"span",className:"mord text"},(0,m.kt)("span",{parentName:"span",className:"mord"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"4")),(0,m.kt)("span",{parentName:"span",className:"mord"},")"))))))),(0,m.kt)("p",null,"\u901a\u5e38",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"\u03b7"),(0,m.kt)("mi",{parentName:"mrow"},"\u03bb"),(0,m.kt)("mo",{parentName:"mrow"},"<"),(0,m.kt)("mn",{parentName:"mrow"},"1")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"\\eta \\lambda < 1")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.8889em",verticalAlign:"-0.1944em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"\u03b7"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"\u03bb"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"<"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6444em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"1"))))),"\uff0c\u56e0\u6b64\u53c8\u53eb\u505a\u6743\u91cd\u8870\u9000"))}c.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/d1030cc9.25307481.js b/assets/js/d1030cc9.25307481.js new file mode 100644 index 000000000..a09bf6782 --- /dev/null +++ b/assets/js/d1030cc9.25307481.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunknpy_notebook=self.webpackChunknpy_notebook||[]).push([[5742],{3905:(e,t,n)=>{n.d(t,{Zo:()=>u,kt:()=>y});var r=n(7294);function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function i(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var p=r.createContext({}),c=function(e){var t=r.useContext(p),n=t;return e&&(n="function"==typeof e?e(t):l(l({},t),e)),n},u=function(e){var t=c(e.components);return r.createElement(p.Provider,{value:t},e.children)},s="mdxType",m={inlineCode:"code",wrapper:function(e){var t=e.children;return r.createElement(r.Fragment,{},t)}},f=r.forwardRef((function(e,t){var n=e.components,a=e.mdxType,o=e.originalType,p=e.parentName,u=i(e,["components","mdxType","originalType","parentName"]),s=c(n),f=a,y=s["".concat(p,".").concat(f)]||s[f]||m[f]||o;return n?r.createElement(y,l(l({ref:t},u),{},{components:n})):r.createElement(y,l({ref:t},u))}));function y(e,t){var n=arguments,a=t&&t.mdxType;if("string"==typeof e||a){var o=n.length,l=new Array(o);l[0]=f;var i={};for(var p in t)hasOwnProperty.call(t,p)&&(i[p]=t[p]);i.originalType=e,i[s]="string"==typeof e?e:a,l[1]=i;for(var c=2;c<o;c++)l[c]=n[c];return r.createElement.apply(null,l)}return r.createElement.apply(null,n)}f.displayName="MDXCreateElement"},3688:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>p,contentTitle:()=>l,default:()=>m,frontMatter:()=>o,metadata:()=>i,toc:()=>c});var r=n(7462),a=(n(7294),n(3905));const o={},l="AlexNet",i={unversionedId:"Deep-Learning/\u57fa\u7840\u77e5\u8bc6/AlexNet",id:"Deep-Learning/\u57fa\u7840\u77e5\u8bc6/AlexNet",title:"AlexNet",description:"\u80cc\u666f",source:"@site/docs/Deep-Learning/3-\u57fa\u7840\u77e5\u8bc6/AlexNet.md",sourceDirName:"Deep-Learning/3-\u57fa\u7840\u77e5\u8bc6",slug:"/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/AlexNet",permalink:"/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/AlexNet",draft:!1,tags:[],version:"current",frontMatter:{},sidebar:"deep_learning",previous:{title:"\u67e5\u6f0f\u8865\u7f3a",permalink:"/docs/Deep-Learning/Fill-The-Gaps"},next:{title:"\u5377\u79ef\u5c42",permalink:"/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/ConvolutionalLayer"}},p={},c=[{value:"\u80cc\u666f",id:"\u80cc\u666f",level:2},{value:"\u65b0\u7684\u6982\u5ff5\u548c\u6280\u672f",id:"\u65b0\u7684\u6982\u5ff5\u548c\u6280\u672f",level:2},{value:"\u4e0eLeNet\u6bd4\u8f83",id:"\u4e0elenet\u6bd4\u8f83",level:2}],u={toc:c},s="wrapper";function m(e){let{components:t,...n}=e;return(0,a.kt)(s,(0,r.Z)({},u,n,{components:t,mdxType:"MDXLayout"}),(0,a.kt)("h1",{id:"alexnet"},"AlexNet"),(0,a.kt)("h2",{id:"\u80cc\u666f"},"\u80cc\u666f"),(0,a.kt)("p",null,"AlexNet\u662f\u63072012\u5e74\u7531Alex Krizhevsky\u3001Ilya Sutskever\u548cGeoffrey Hinton\u63d0\u51fa\u7684\u4e00\u79cd\u5377\u79ef\u795e\u7ecf\u7f51\u7edc\u6a21\u578b\uff0c\u5b83\u4e3b\u8981\u5e94\u7528\u4e8e\u56fe\u50cf\u5206\u7c7b\u4efb\u52a1\u3002\u5728\u5f53\u65f6\uff0cAlexNet\u7684\u8868\u73b0\u8fdc\u8fdc\u8d85\u8fc7\u4e86\u5176\u4ed6\u53c2\u8d5b\u7684\u7f51\u7edc\u6a21\u578b\uff0c\u5e76\u4e14\u5728ImageNet\u6bd4\u8d5b\u4e2d\u83b7\u5f97\u4e86\u7b2c\u4e00\u540d\u3002"),(0,a.kt)("p",null,"\u6807\u5fd7\u7740\u65b0\u7684\u4e00\u8f6e\u795e\u7ecf\u7f51\u7edc\u70ed\u6f6e\u7684\u5f00\u59cb"),(0,a.kt)("p",null,(0,a.kt)("img",{parentName:"p",src:"https://github.com/bonjour-npy/Image-Hosting-Service/blob/main/typora_images/1.png?raw=true",alt:"image"})),(0,a.kt)("h2",{id:"\u65b0\u7684\u6982\u5ff5\u548c\u6280\u672f"},"\u65b0\u7684\u6982\u5ff5\u548c\u6280\u672f"),(0,a.kt)("ul",null,(0,a.kt)("li",{parentName:"ul"},"ReLU\u6fc0\u6d3b\u51fd\u6570"),(0,a.kt)("li",{parentName:"ul"},"Dropout\u6b63\u5219\u5316\u3001\u4e22\u5f03\u6cd5"),(0,a.kt)("li",{parentName:"ul"},"\u6700\u5927\u6c60\u5316MaxPooling")),(0,a.kt)("h2",{id:"\u4e0elenet\u6bd4\u8f83"},"\u4e0eLeNet\u6bd4\u8f83"),(0,a.kt)("ol",null,(0,a.kt)("li",{parentName:"ol"},"\u7531\u4e8e\u8f93\u5165\u7684\u56fe\u7247\u66f4\u5927\uff0c\u8bbe\u7f6e\u4e86\u66f4\u5927\u7684\u5377\u79ef\u6838\u5c3a\u5bf8\u548c\u6b65\u957f"),(0,a.kt)("li",{parentName:"ol"},"\u66f4\u5927\u7684\u6c60\u5316\u7a97\u53e3\uff0c\u4f7f\u7528\u6700\u5927\u6c60\u5316"),(0,a.kt)("li",{parentName:"ol"},"\u5728\u5377\u79ef\u5c42\u4e2d\u8bbe\u7f6e\u4e86\u66f4\u5927\u7684\u8f93\u51fa\u901a\u9053\uff0c\u63d0\u53d6\u66f4\u6df1\u5c42\u7684\u7279\u5f81\u3001\u8bc6\u522b\u66f4\u591a\u7684\u6a21\u5f0f"),(0,a.kt)("li",{parentName:"ol"},"\u6fc0\u6d3b\u51fd\u6570\u4eceSigmoid\u6539\u6210\u4e86ReLU\uff0c\u51cf\u7f13\u68af\u5ea6\u6d88\u5931"),(0,a.kt)("li",{parentName:"ol"},"\u5728\u5377\u79ef\u5c42\u548c\u8f93\u51fa\u5c42\u4e4b\u95f4\u4ecd\u4f7f\u7528\u4e24\u4e2a\u5168\u8fde\u63a5\u9690\u85cf\u5c42\uff0c\u4f46\u5728\u8f93\u51fa\u5c42\u4e4b\u524d\u589e\u52a0\u4e86Dropout\u5c42\u505a\u6b63\u5219\u5316"),(0,a.kt)("li",{parentName:"ol"},"\u4f7f\u7528\u4e86\u6570\u636e\u589e\u5f3adata augmentation")))}m.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/d594b08b.b2ee120d.js b/assets/js/d594b08b.b2ee120d.js new file mode 100644 index 000000000..4925e565a --- /dev/null +++ b/assets/js/d594b08b.b2ee120d.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunknpy_notebook=self.webpackChunknpy_notebook||[]).push([[5923],{3769:e=>{e.exports=JSON.parse('{"name":"docusaurus-plugin-content-docs","id":"default"}')}}]); \ No newline at end of file diff --git a/assets/js/d5b726de.99d64fa2.js b/assets/js/d5b726de.99d64fa2.js new file mode 100644 index 000000000..74365d10c --- /dev/null +++ b/assets/js/d5b726de.99d64fa2.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunknpy_notebook=self.webpackChunknpy_notebook||[]).push([[3320],{3905:(a,e,s)=>{s.d(e,{Zo:()=>i,kt:()=>h});var t=s(7294);function m(a,e,s){return e in a?Object.defineProperty(a,e,{value:s,enumerable:!0,configurable:!0,writable:!0}):a[e]=s,a}function n(a,e){var s=Object.keys(a);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(a);e&&(t=t.filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable}))),s.push.apply(s,t)}return s}function p(a){for(var e=1;e<arguments.length;e++){var s=null!=arguments[e]?arguments[e]:{};e%2?n(Object(s),!0).forEach((function(e){m(a,e,s[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(s)):n(Object(s)).forEach((function(e){Object.defineProperty(a,e,Object.getOwnPropertyDescriptor(s,e))}))}return a}function r(a,e){if(null==a)return{};var s,t,m=function(a,e){if(null==a)return{};var s,t,m={},n=Object.keys(a);for(t=0;t<n.length;t++)s=n[t],e.indexOf(s)>=0||(m[s]=a[s]);return m}(a,e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);for(t=0;t<n.length;t++)s=n[t],e.indexOf(s)>=0||Object.prototype.propertyIsEnumerable.call(a,s)&&(m[s]=a[s])}return m}var N=t.createContext({}),l=function(a){var e=t.useContext(N),s=e;return a&&(s="function"==typeof a?a(e):p(p({},e),a)),s},i=function(a){var e=l(a.components);return t.createElement(N.Provider,{value:e},a.children)},k="mdxType",c={inlineCode:"code",wrapper:function(a){var e=a.children;return t.createElement(t.Fragment,{},e)}},o=t.forwardRef((function(a,e){var s=a.components,m=a.mdxType,n=a.originalType,N=a.parentName,i=r(a,["components","mdxType","originalType","parentName"]),k=l(s),o=m,h=k["".concat(N,".").concat(o)]||k[o]||c[o]||n;return s?t.createElement(h,p(p({ref:e},i),{},{components:s})):t.createElement(h,p({ref:e},i))}));function h(a,e){var s=arguments,m=e&&e.mdxType;if("string"==typeof a||m){var n=s.length,p=new Array(n);p[0]=o;var r={};for(var N in e)hasOwnProperty.call(e,N)&&(r[N]=e[N]);r.originalType=a,r[k]="string"==typeof a?a:m,p[1]=r;for(var l=2;l<n;l++)p[l]=s[l];return t.createElement.apply(null,p)}return t.createElement.apply(null,s)}o.displayName="MDXCreateElement"},942:(a,e,s)=>{s.r(e),s.d(e,{assets:()=>N,contentTitle:()=>p,default:()=>c,frontMatter:()=>n,metadata:()=>r,toc:()=>l});var t=s(7462),m=(s(7294),s(3905));const n={},p="\u5377\u79ef\u5c42",r={unversionedId:"Deep-Learning/\u57fa\u7840\u77e5\u8bc6/ConvolutionalLayer",id:"Deep-Learning/\u57fa\u7840\u77e5\u8bc6/ConvolutionalLayer",title:"\u5377\u79ef\u5c42",description:"\u4e00\u30011x1\u5377\u79ef",source:"@site/docs/Deep-Learning/3-\u57fa\u7840\u77e5\u8bc6/ConvolutionalLayer.md",sourceDirName:"Deep-Learning/3-\u57fa\u7840\u77e5\u8bc6",slug:"/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/ConvolutionalLayer",permalink:"/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/ConvolutionalLayer",draft:!1,tags:[],version:"current",frontMatter:{},sidebar:"deep_learning",previous:{title:"AlexNet",permalink:"/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/AlexNet"},next:{title:"\u4ece\u5168\u8fde\u63a5\u5230\u5377\u79ef",permalink:"/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/FromFullyConnectedLayerToConvolutionalLayer"}},N={},l=[{value:"\u4e00\u30011x1\u5377\u79ef",id:"\u4e001x1\u5377\u79ef",level:2},{value:"\u4e8c\u3001\u4e8c\u7ef4\u5377\u79ef\u5c42",id:"\u4e8c\u4e8c\u7ef4\u5377\u79ef\u5c42",level:2}],i={toc:l},k="wrapper";function c(a){let{components:e,...s}=a;return(0,m.kt)(k,(0,t.Z)({},i,s,{components:e,mdxType:"MDXLayout"}),(0,m.kt)("h1",{id:"\u5377\u79ef\u5c42"},"\u5377\u79ef\u5c42"),(0,m.kt)("h2",{id:"\u4e001x1\u5377\u79ef"},"\u4e00\u30011x1\u5377\u79ef"),(0,m.kt)("p",null,(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"k"),(0,m.kt)("mi",{parentName:"msub"},"h")),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"k"),(0,m.kt)("mi",{parentName:"msub"},"w")),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("mn",{parentName:"mrow"},"1")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"k_h=k_w=1")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.8444em",verticalAlign:"-0.15em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03148em"}},"k"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3361em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0315em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"h")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"="),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.8444em",verticalAlign:"-0.15em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03148em"}},"k"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.1514em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0315em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.02691em"}},"w")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"="),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6444em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"1"))))),"\u7684\u5377\u79ef\u4e0d\u8bc6\u522b\u7a7a\u95f4\u6a21\u5f0f\uff0c\u4e22\u5f03\u4e86\u7a7a\u95f4\u4fe1\u606f\uff0c\u53ea\u662f\u878d\u5408\u901a\u9053"),(0,m.kt)("p",null,"\u76f8\u5f53\u4e8e\u8f93\u5165\u5f62\u72b6\u4e3a",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"H"),(0,m.kt)("mi",{parentName:"mrow"},"W"),(0,m.kt)("mo",{parentName:"mrow"},"\xd7"),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"c"),(0,m.kt)("mi",{parentName:"msub"},"i"))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"HW \\times c_i")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.7667em",verticalAlign:"-0.0833em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.08125em"}},"H"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"W"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"\xd7"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.5806em",verticalAlign:"-0.15em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"c"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3117em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"i")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))))))),"\uff0c\u6743\u91cd\u5f62\u72b6\u4e3a",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"c"),(0,m.kt)("mi",{parentName:"msub"},"o")),(0,m.kt)("mo",{parentName:"mrow"},"\xd7"),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"c"),(0,m.kt)("mi",{parentName:"msub"},"i"))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"c_o \\times c_i")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.7333em",verticalAlign:"-0.15em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"c"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.1514em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"o")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"\xd7"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.5806em",verticalAlign:"-0.15em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"c"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3117em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"i")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))))))),"\u7684\u5168\u8fde\u63a5\u5c42"),(0,m.kt)("hr",null),(0,m.kt)("h2",{id:"\u4e8c\u4e8c\u7ef4\u5377\u79ef\u5c42"},"\u4e8c\u3001\u4e8c\u7ef4\u5377\u79ef\u5c42"),(0,m.kt)("ul",null,(0,m.kt)("li",{parentName:"ul"},(0,m.kt)("p",{parentName:"li"},"\u8f93\u5165\uff1a",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"c"),(0,m.kt)("mi",{parentName:"msub"},"i")),(0,m.kt)("mo",{parentName:"mrow"},"\xd7"),(0,m.kt)("mi",{parentName:"mrow"},"H"),(0,m.kt)("mo",{parentName:"mrow"},"\xd7"),(0,m.kt)("mi",{parentName:"mrow"},"W")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"c_i \\times H \\times W")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.7333em",verticalAlign:"-0.15em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"c"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3117em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"i")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"\xd7"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.7667em",verticalAlign:"-0.0833em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.08125em"}},"H"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"\xd7"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6833em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"W"))))))),(0,m.kt)("li",{parentName:"ul"},(0,m.kt)("p",{parentName:"li"},"\u6838\uff1a",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"c"),(0,m.kt)("mi",{parentName:"msub"},"o")),(0,m.kt)("mo",{parentName:"mrow"},"\xd7"),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"c"),(0,m.kt)("mi",{parentName:"msub"},"i")),(0,m.kt)("mo",{parentName:"mrow"},"\xd7"),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"k"),(0,m.kt)("mi",{parentName:"msub"},"h")),(0,m.kt)("mo",{parentName:"mrow"},"\xd7"),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"k"),(0,m.kt)("mi",{parentName:"msub"},"w"))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"c_o \\times c_i \\times k_h \\times k_w")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.7333em",verticalAlign:"-0.15em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"c"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.1514em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"o")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"\xd7"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.7333em",verticalAlign:"-0.15em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"c"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3117em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"i")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"\xd7"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.8444em",verticalAlign:"-0.15em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03148em"}},"k"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3361em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0315em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"h")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"\xd7"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.8444em",verticalAlign:"-0.15em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03148em"}},"k"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.1514em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0315em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.02691em"}},"w")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))))))))),(0,m.kt)("li",{parentName:"ul"},(0,m.kt)("p",{parentName:"li"},"\u504f\u5dee\uff1a",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"c"),(0,m.kt)("mi",{parentName:"msub"},"o")),(0,m.kt)("mo",{parentName:"mrow"},"\xd7"),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"c"),(0,m.kt)("mi",{parentName:"msub"},"i"))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"c_o \\times c_i")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.7333em",verticalAlign:"-0.15em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"c"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.1514em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"o")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"\xd7"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.5806em",verticalAlign:"-0.15em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"c"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3117em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"i")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))))))))),(0,m.kt)("li",{parentName:"ul"},(0,m.kt)("p",{parentName:"li"},"\u8f93\u51fa\uff1a",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"c"),(0,m.kt)("mi",{parentName:"msub"},"o")),(0,m.kt)("mo",{parentName:"mrow"},"\xd7"),(0,m.kt)("msup",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msup"},"H"),(0,m.kt)("mo",{parentName:"msup",mathvariant:"normal",lspace:"0em",rspace:"0em"},"\u2032")),(0,m.kt)("mo",{parentName:"mrow"},"\xd7"),(0,m.kt)("msup",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msup"},"W"),(0,m.kt)("mo",{parentName:"msup",mathvariant:"normal",lspace:"0em",rspace:"0em"},"\u2032"))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"c_o \\times H' \\times W'")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.7333em",verticalAlign:"-0.15em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"c"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.1514em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"o")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"\xd7"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.8352em",verticalAlign:"-0.0833em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.08125em"}},"H"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.7519em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-3.063em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"\u2032"))))))))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"\xd7"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.7519em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"W"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.7519em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-3.063em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"\u2032"))))))))))))))),(0,m.kt)("li",{parentName:"ul"},(0,m.kt)("p",{parentName:"li"},"\u8f93\u51fa",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("msup",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msup"},"H"),(0,m.kt)("mo",{parentName:"msup",mathvariant:"normal",lspace:"0em",rspace:"0em"},"\u2032")),(0,m.kt)("mtext",{parentName:"mrow"},"\u4ee5\u53ca"),(0,m.kt)("msup",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msup"},"W"),(0,m.kt)("mo",{parentName:"msup",mathvariant:"normal",lspace:"0em",rspace:"0em"},"\u2032"))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"H'\u4ee5\u53caW'")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.7519em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.08125em"}},"H"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.7519em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-3.063em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"\u2032"))))))))),(0,m.kt)("span",{parentName:"span",className:"mord cjk_fallback"},"\u4ee5\u53ca"),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"W"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.7519em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-3.063em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"\u2032"))))))))))))),"\u7684\u8ba1\u7b97\uff1a"),(0,m.kt)("div",{parentName:"li",className:"math math-display"},(0,m.kt)("span",{parentName:"div",className:"katex-display"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mtable",{parentName:"semantics",width:"100%"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mrow",{parentName:"mtd"},(0,m.kt)("mi",{parentName:"mrow"},"s"),(0,m.kt)("mi",{parentName:"mrow"},"h"),(0,m.kt)("mi",{parentName:"mrow"},"a"),(0,m.kt)("mi",{parentName:"mrow"},"p"),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"e"),(0,m.kt)("mrow",{parentName:"msub"},(0,m.kt)("mi",{parentName:"mrow"},"o"),(0,m.kt)("mi",{parentName:"mrow"},"u"),(0,m.kt)("mi",{parentName:"mrow"},"t"),(0,m.kt)("mi",{parentName:"mrow"},"p"),(0,m.kt)("mi",{parentName:"mrow"},"u"),(0,m.kt)("mi",{parentName:"mrow"},"t"))),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("mfrac",{parentName:"mrow"},(0,m.kt)("mrow",{parentName:"mfrac"},(0,m.kt)("mi",{parentName:"mrow"},"s"),(0,m.kt)("mi",{parentName:"mrow"},"h"),(0,m.kt)("mi",{parentName:"mrow"},"a"),(0,m.kt)("mi",{parentName:"mrow"},"p"),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"e"),(0,m.kt)("mrow",{parentName:"msub"},(0,m.kt)("mi",{parentName:"mrow"},"i"),(0,m.kt)("mi",{parentName:"mrow"},"n"),(0,m.kt)("mi",{parentName:"mrow"},"p"),(0,m.kt)("mi",{parentName:"mrow"},"u"),(0,m.kt)("mi",{parentName:"mrow"},"t"))),(0,m.kt)("mo",{parentName:"mrow"},"\u2212"),(0,m.kt)("mi",{parentName:"mrow"},"s"),(0,m.kt)("mi",{parentName:"mrow"},"i"),(0,m.kt)("mi",{parentName:"mrow"},"z"),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"e"),(0,m.kt)("mrow",{parentName:"msub"},(0,m.kt)("mi",{parentName:"mrow"},"k"),(0,m.kt)("mi",{parentName:"mrow"},"e"),(0,m.kt)("mi",{parentName:"mrow"},"r"),(0,m.kt)("mi",{parentName:"mrow"},"n"),(0,m.kt)("mi",{parentName:"mrow"},"e"),(0,m.kt)("mi",{parentName:"mrow"},"l"))),(0,m.kt)("mo",{parentName:"mrow"},"+"),(0,m.kt)("mn",{parentName:"mrow"},"2"),(0,m.kt)("mo",{parentName:"mrow"},"\u2217"),(0,m.kt)("mi",{parentName:"mrow"},"p"),(0,m.kt)("mi",{parentName:"mrow"},"a"),(0,m.kt)("mi",{parentName:"mrow"},"d"),(0,m.kt)("mi",{parentName:"mrow"},"d"),(0,m.kt)("mi",{parentName:"mrow"},"i"),(0,m.kt)("mi",{parentName:"mrow"},"n"),(0,m.kt)("mi",{parentName:"mrow"},"g")),(0,m.kt)("mrow",{parentName:"mfrac"},(0,m.kt)("mi",{parentName:"mrow"},"s"),(0,m.kt)("mi",{parentName:"mrow"},"t"),(0,m.kt)("mi",{parentName:"mrow"},"r"),(0,m.kt)("mi",{parentName:"mrow"},"i"),(0,m.kt)("mi",{parentName:"mrow"},"d"),(0,m.kt)("mi",{parentName:"mrow"},"e"))),(0,m.kt)("mo",{parentName:"mrow"},"+"),(0,m.kt)("mn",{parentName:"mrow"},"1"))),(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mtext",{parentName:"mtd"},"(1)")))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"shape_{output} = \\frac{shape_{input}-size_{kernel}+2*padding}{stride}+1 \\tag{1}")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.9805em",verticalAlign:"-0.2861em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"s"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"ha"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"p"),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"e"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.2806em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"o"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"u"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"tp"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"u"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"t"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.2861em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"="),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"2.0574em",verticalAlign:"-0.686em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mopen nulldelimiter"}),(0,m.kt)("span",{parentName:"span",className:"mfrac"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.3714em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.314em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"s"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"t"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02778em"}},"r"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"i"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"d"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"e"))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.23em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"frac-line",style:{borderBottomWidth:"0.04em"}})),(0,m.kt)("span",{parentName:"span",style:{top:"-3.677em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"s"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"ha"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"p"),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"e"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3117em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"in"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"p"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"u"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"t"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.2861em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"\u2212"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"s"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"i"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.04398em"}},"z"),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"e"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3361em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.03148em"}},"k"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.02778em"}},"er"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"n"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"e"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.01968em"}},"l"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"+"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"2"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"\u2217"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"p"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"a"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"dd"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"in"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"g")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.686em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"mclose nulldelimiter"})),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"+"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6444em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"1")),(0,m.kt)("span",{parentName:"span",className:"tag"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"2.0574em",verticalAlign:"-0.686em"}}),(0,m.kt)("span",{parentName:"span",className:"mord text"},(0,m.kt)("span",{parentName:"span",className:"mord"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"1")),(0,m.kt)("span",{parentName:"span",className:"mord"},")"))))))))),(0,m.kt)("ul",null,(0,m.kt)("li",{parentName:"ul"},(0,m.kt)("p",{parentName:"li"},"\u8ba1\u7b97\u590d\u6742\u5ea6\uff1a",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"O"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"c"),(0,m.kt)("mi",{parentName:"msub"},"o")),(0,m.kt)("mo",{parentName:"mrow"},"\xd7"),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"c"),(0,m.kt)("mi",{parentName:"msub"},"i")),(0,m.kt)("mo",{parentName:"mrow"},"\xd7"),(0,m.kt)("mi",{parentName:"mrow"},"H"),(0,m.kt)("mo",{parentName:"mrow"},"\xd7"),(0,m.kt)("mi",{parentName:"mrow"},"W"),(0,m.kt)("mo",{parentName:"mrow"},"\xd7"),(0,m.kt)("msup",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msup"},"H"),(0,m.kt)("mo",{parentName:"msup",mathvariant:"normal",lspace:"0em",rspace:"0em"},"\u2032")),(0,m.kt)("mo",{parentName:"mrow"},"\xd7"),(0,m.kt)("msup",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msup"},"W"),(0,m.kt)("mo",{parentName:"msup",mathvariant:"normal",lspace:"0em",rspace:"0em"},"\u2032")),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"O(c_o \\times c_i \\times H \\times W \\times H' \\times W')")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02778em"}},"O"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"c"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.1514em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"o")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"\xd7"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.7333em",verticalAlign:"-0.15em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"c"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3117em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"i")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"\xd7"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.7667em",verticalAlign:"-0.0833em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.08125em"}},"H"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"\xd7"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.7667em",verticalAlign:"-0.0833em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"W"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"\xd7"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.8352em",verticalAlign:"-0.0833em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.08125em"}},"H"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.7519em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-3.063em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"\u2032"))))))))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"\xd7"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1.0019em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"W"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.7519em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-3.063em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"\u2032"))))))))),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"))))))),(0,m.kt)("li",{parentName:"ul"},(0,m.kt)("p",{parentName:"li"},"\u603b\u7ed3\uff1a"),(0,m.kt)("ol",{parentName:"li"},(0,m.kt)("li",{parentName:"ol"},"\u8f93\u51fa\u7684\u901a\u9053\u6570\u662f\u5377\u79ef\u5c42\u7684\u8d85\u53c2\u6570"),(0,m.kt)("li",{parentName:"ol"},"\u6bcf\u4e2a\u8f93\u5165\u901a\u9053\u6709\u72ec\u7acb\u7684\u4e8c\u7ef4\u5377\u79ef\u6838\uff0c\u6240\u6709\u901a\u9053\u7ed3\u679c\u76f8\u52a0\u5f97\u5230\u4e00\u4e2a\u8f93\u51fa\u7ed3\u679c"),(0,m.kt)("li",{parentName:"ol"},"\u6bcf\u4e2a\u8f93\u51fa\u901a\u9053\u6709\u72ec\u7acb\u7684\u4e09\u7ef4\u5377\u79ef\u6838")))))}c.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/d6b41bcb.e069e346.js b/assets/js/d6b41bcb.e069e346.js new file mode 100644 index 000000000..d91c291e4 --- /dev/null +++ b/assets/js/d6b41bcb.e069e346.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunknpy_notebook=self.webpackChunknpy_notebook||[]).push([[5901],{3905:(a,e,t)=>{t.d(e,{Zo:()=>N,kt:()=>g});var n=t(7294);function m(a,e,t){return e in a?Object.defineProperty(a,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):a[e]=t,a}function s(a,e){var t=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable}))),t.push.apply(t,n)}return t}function p(a){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?s(Object(t),!0).forEach((function(e){m(a,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(t)):s(Object(t)).forEach((function(e){Object.defineProperty(a,e,Object.getOwnPropertyDescriptor(t,e))}))}return a}function r(a,e){if(null==a)return{};var t,n,m=function(a,e){if(null==a)return{};var t,n,m={},s=Object.keys(a);for(n=0;n<s.length;n++)t=s[n],e.indexOf(t)>=0||(m[t]=a[t]);return m}(a,e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(a);for(n=0;n<s.length;n++)t=s[n],e.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(a,t)&&(m[t]=a[t])}return m}var l=n.createContext({}),i=function(a){var e=n.useContext(l),t=e;return a&&(t="function"==typeof a?a(e):p(p({},e),a)),t},N=function(a){var e=i(a.components);return n.createElement(l.Provider,{value:e},a.children)},k="mdxType",o={inlineCode:"code",wrapper:function(a){var e=a.children;return n.createElement(n.Fragment,{},e)}},c=n.forwardRef((function(a,e){var t=a.components,m=a.mdxType,s=a.originalType,l=a.parentName,N=r(a,["components","mdxType","originalType","parentName"]),k=i(t),c=m,g=k["".concat(l,".").concat(c)]||k[c]||o[c]||s;return t?n.createElement(g,p(p({ref:e},N),{},{components:t})):n.createElement(g,p({ref:e},N))}));function g(a,e){var t=arguments,m=e&&e.mdxType;if("string"==typeof a||m){var s=t.length,p=new Array(s);p[0]=c;var r={};for(var l in e)hasOwnProperty.call(e,l)&&(r[l]=e[l]);r.originalType=a,r[k]="string"==typeof a?a:m,p[1]=r;for(var i=2;i<s;i++)p[i]=t[i];return n.createElement.apply(null,p)}return n.createElement.apply(null,t)}c.displayName="MDXCreateElement"},2509:(a,e,t)=>{t.r(e),t.d(e,{assets:()=>l,contentTitle:()=>p,default:()=>o,frontMatter:()=>s,metadata:()=>r,toc:()=>i});var n=t(7462),m=(t(7294),t(3905));const s={},p="\u7f16\u8bd1\u539f\u7406\u7b14\u8bb0",r={unversionedId:"Curriculum/\u7f16\u8bd1\u539f\u7406/Note",id:"Curriculum/\u7f16\u8bd1\u539f\u7406/Note",title:"\u7f16\u8bd1\u539f\u7406\u7b14\u8bb0",description:"\u7b2c\u4e00\u7ae0\uff1a\u524d\u8a00",source:"@site/docs/Curriculum/3-\u7f16\u8bd1\u539f\u7406/Note.md",sourceDirName:"Curriculum/3-\u7f16\u8bd1\u539f\u7406",slug:"/Curriculum/\u7f16\u8bd1\u539f\u7406/Note",permalink:"/docs/Curriculum/\u7f16\u8bd1\u539f\u7406/Note",draft:!1,tags:[],version:"current",frontMatter:{},sidebar:"curriculum",previous:{title:"\u6570\u5b57\u56fe\u50cf\u5904\u7406\u590d\u4e60\u7b14\u8bb0",permalink:"/docs/Curriculum/\u6570\u5b57\u56fe\u50cf\u5904\u7406/Note"},next:{title:"Linux\u7cfb\u7edf\u4e0bGeekOS\u7684\u73af\u5883\u914d\u7f6e",permalink:"/docs/Curriculum/\u64cd\u4f5c\u7cfb\u7edf\u8bfe\u8bbe/Environment-Configuration"}},l={},i=[{value:"\u7b2c\u4e00\u7ae0\uff1a\u524d\u8a00",id:"\u7b2c\u4e00\u7ae0\u524d\u8a00",level:2},{value:"1.1 \u7f16\u8bd1\u7a0b\u5e8f\u7684\u903b\u8f91\u7ed3\u6784",id:"11-\u7f16\u8bd1\u7a0b\u5e8f\u7684\u903b\u8f91\u7ed3\u6784",level:3},{value:"1.2 \u524d\u7aef\u548c\u540e\u7aef",id:"12-\u524d\u7aef\u548c\u540e\u7aef",level:3},{value:"1.3 \u904d\u7684\u6982\u5ff5",id:"13-\u904d\u7684\u6982\u5ff5",level:3},{value:"\u7b2c\u4e8c\u7ae0\uff1a\u6587\u6cd5\u548c\u8bed\u8a00",id:"\u7b2c\u4e8c\u7ae0\u6587\u6cd5\u548c\u8bed\u8a00",level:2},{value:"2.1 \u53e5\u578b",id:"21-\u53e5\u578b",level:3},{value:"2.2 \u53e5\u5b50\uff1a",id:"22-\u53e5\u5b50",level:3},{value:"2.3 \u6587\u6cd5\u7684\u5206\u7c7b\uff1a",id:"23-\u6587\u6cd5\u7684\u5206\u7c7b",level:3},{value:"2.4 \u6700\u5de6/\u53f3\u63a8\u5bfc\uff1a",id:"24-\u6700\u5de6\u53f3\u63a8\u5bfc",level:3},{value:"\u7b2c\u4e09\u7ae0\uff1a\u8bcd\u6cd5\u5206\u6790",id:"\u7b2c\u4e09\u7ae0\u8bcd\u6cd5\u5206\u6790",level:2},{value:"3.1 \u6b63\u89c4\u6587\u6cd5\u8f6c\u6362\u6210\u6b63\u89c4\u5f0f",id:"31-\u6b63\u89c4\u6587\u6cd5\u8f6c\u6362\u6210\u6b63\u89c4\u5f0f",level:3},{value:"3.2 \u6709\u7a77\u81ea\u52a8\u673a\uff08FA\uff09",id:"32-\u6709\u7a77\u81ea\u52a8\u673afa",level:3},{value:"3.3 \u6b63\u89c4\u5f0fRE\u4e0e\u6709\u7a77\u81ea\u52a8\u673aFA\u7684\u4e92\u76f8\u8f6c\u5316",id:"33-\u6b63\u89c4\u5f0fre\u4e0e\u6709\u7a77\u81ea\u52a8\u673afa\u7684\u4e92\u76f8\u8f6c\u5316",level:3},{value:"3.4 \u6b63\u89c4\u6587\u6cd5RM\u4e0e\u6709\u7a77\u81ea\u52a8\u673aFA\u7684\u4e92\u76f8\u8f6c\u5316",id:"34-\u6b63\u89c4\u6587\u6cd5rm\u4e0e\u6709\u7a77\u81ea\u52a8\u673afa\u7684\u4e92\u76f8\u8f6c\u5316",level:3},{value:"\u7b2c\u56db\u7ae0\uff1a\u81ea\u9876\u5411\u4e0b\u8bed\u6cd5\u5206\u6790\u65b9\u6cd5",id:"\u7b2c\u56db\u7ae0\u81ea\u9876\u5411\u4e0b\u8bed\u6cd5\u5206\u6790\u65b9\u6cd5",level:2},{value:"1. FIRST\u96c6\u7684\u5b9a\u4e49",id:"1-first\u96c6\u7684\u5b9a\u4e49",level:3},{value:"2. Follow\u96c6\u7684\u5b9a\u4e49",id:"2-follow\u96c6\u7684\u5b9a\u4e49",level:3},{value:"3. SELECT\u96c6\u7684\u5b9a\u4e49",id:"3-select\u96c6\u7684\u5b9a\u4e49",level:3},{value:"4. LL(1)\u6587\u6cd5\u7684\u5b9a\u4e49",id:"4-ll1\u6587\u6cd5\u7684\u5b9a\u4e49",level:3},{value:"5. LL(1)\u6587\u6cd5\u7684\u5224\u522b",id:"5-ll1\u6587\u6cd5\u7684\u5224\u522b",level:3},{value:"6. \u9884\u6d4b\u5206\u6790\u8868",id:"6-\u9884\u6d4b\u5206\u6790\u8868",level:3},{value:"7. \u975eLL(1)\u6587\u6cd5\u5230LL(1)\u6587\u6cd5\u7684\u7b49\u4ef7\u53d8\u6362",id:"7-\u975ell1\u6587\u6cd5\u5230ll1\u6587\u6cd5\u7684\u7b49\u4ef7\u53d8\u6362",level:3},{value:"\u7b2c\u4e94\u7ae0\uff1a\u81ea\u5e95\u5411\u4e0a\u8bed\u6cd5\u5206\u6790\u65b9\u6cd5",id:"\u7b2c\u4e94\u7ae0\u81ea\u5e95\u5411\u4e0a\u8bed\u6cd5\u5206\u6790\u65b9\u6cd5",level:2},{value:"5.1 \u6982\u5ff5",id:"51-\u6982\u5ff5",level:3},{value:"5.2 \u65b9\u6cd5",id:"52-\u65b9\u6cd5",level:3},{value:"5.3 \u5de5\u4f5c\u8fc7\u7a0b",id:"53-\u5de5\u4f5c\u8fc7\u7a0b",level:3},{value:"5.4 \u79fb\u5165-\u5f52\u7ea6\u5206\u6790\u5668\u76844\u79cd\u52a8\u4f5c",id:"54-\u79fb\u5165-\u5f52\u7ea6\u5206\u6790\u5668\u76844\u79cd\u52a8\u4f5c",level:3},{value:"5.5 \u91cd\u8981\u9898\u578b",id:"55-\u91cd\u8981\u9898\u578b",level:3},{value:"\u6982\u5ff5\u603b\u7ed3",id:"\u6982\u5ff5\u603b\u7ed3",level:2},{value:"1 \u7f16\u8bd1\u7a0b\u5e8f\u5404\u9636\u6bb5\u529f\u80fd",id:"1-\u7f16\u8bd1\u7a0b\u5e8f\u5404\u9636\u6bb5\u529f\u80fd",level:3},{value:"2 \u8bed\u6cd5\u5206\u6790\u65b9\u6cd5\u7684\u6982\u5ff5",id:"2-\u8bed\u6cd5\u5206\u6790\u65b9\u6cd5\u7684\u6982\u5ff5",level:3},{value:"3 \u7ffb\u8bd1\u6a21\u5f0f",id:"3-\u7ffb\u8bd1\u6a21\u5f0f",level:3},{value:"4 \u5c5e\u6027\u6587\u6cd5",id:"4-\u5c5e\u6027\u6587\u6cd5",level:3},{value:"5 \u7b26\u53f7\u8868",id:"5-\u7b26\u53f7\u8868",level:3}],N={toc:i},k="wrapper";function o(a){let{components:e,...t}=a;return(0,m.kt)(k,(0,n.Z)({},N,t,{components:e,mdxType:"MDXLayout"}),(0,m.kt)("h1",{id:"\u7f16\u8bd1\u539f\u7406\u7b14\u8bb0"},"\u7f16\u8bd1\u539f\u7406\u7b14\u8bb0"),(0,m.kt)("h2",{id:"\u7b2c\u4e00\u7ae0\u524d\u8a00"},"\u7b2c\u4e00\u7ae0\uff1a\u524d\u8a00"),(0,m.kt)("img",{src:"https://github.com/bonjour-npy/Image-Hosting-Service/blob/main/typora_images/Fq_mAL2_G19wtIZSMHEoKcBe6Y4K.png?raw=true",alt:"image"}),(0,m.kt)("h3",{id:"11-\u7f16\u8bd1\u7a0b\u5e8f\u7684\u903b\u8f91\u7ed3\u6784"},"1.1 \u7f16\u8bd1\u7a0b\u5e8f\u7684\u903b\u8f91\u7ed3\u6784"),(0,m.kt)("ul",null,(0,m.kt)("li",{parentName:"ul"},(0,m.kt)("p",{parentName:"li"},"\u8bcd\u6cd5\u5206\u6790\uff1a\u5206\u6790\u8f93\u5165\u4e32\u5982\u4f55\u6784\u6210\u53e5\u5b50\uff0c\u5f97\u5230\u5355\u8bcd\u5e8f\u5217")),(0,m.kt)("li",{parentName:"ul"},(0,m.kt)("p",{parentName:"li"},"\u8bed\u6cd5\u5206\u6790\uff1a\u5206\u6790\u5355\u8bcd\u5e8f\u5217\u5982\u4f55\u6784\u6210\u7a0b\u5e8f\uff0c\u6784\u9020\u8bed\u6cd5\u5206\u6790\u6811")),(0,m.kt)("li",{parentName:"ul"},(0,m.kt)("p",{parentName:"li"},"\u8bed\u4e49\u5206\u6790\uff1a\u5ba1\u67e5\u8bed\u4e49\u9519\u8bef\uff0c\u4e3a\u4ee3\u7801\u751f\u6210\u6536\u96c6\u7c7b\u578b\u4fe1\u606f")),(0,m.kt)("li",{parentName:"ul"},(0,m.kt)("p",{parentName:"li"},"\u4e2d\u95f4\u4ee3\u7801\u751f\u6210")),(0,m.kt)("li",{parentName:"ul"},(0,m.kt)("p",{parentName:"li"},"\u4ee3\u7801\u4f18\u5316")),(0,m.kt)("li",{parentName:"ul"},(0,m.kt)("p",{parentName:"li"},"\u76ee\u6807\u4ee3\u7801\u751f\u6210")),(0,m.kt)("li",{parentName:"ul"},(0,m.kt)("p",{parentName:"li"},"\u8868\u7ba1\u7406\u3001\u9519\u8bef\u68c0\u67e5\u548c\u5904\u7406\u8d2f\u7a7f",(0,m.kt)("strong",{parentName:"p"},"\u6574\u4e2a\u8fc7\u7a0b")),(0,m.kt)("p",{parentName:"li"},(0,m.kt)("img",{parentName:"p",src:"https://github.com/bonjour-npy/Image-Hosting-Service/blob/main/typora_images/FiP05XBQ5gzerE-DFd0vT1QOUrE8.png?raw=true",alt:"image"})))),(0,m.kt)("h3",{id:"12-\u524d\u7aef\u548c\u540e\u7aef"},"1.2 \u524d\u7aef\u548c\u540e\u7aef"),(0,m.kt)("ul",null,(0,m.kt)("li",{parentName:"ul"},(0,m.kt)("p",{parentName:"li"},"\u524d\u7aef\u662f\u6307\u4e0e\u6e90\u8bed\u8a00\u6709\u5173\u3001\u4e0e\u76ee\u6807\u673a\u65e0\u5173\u7684\u90e8\u5206"),(0,m.kt)("p",{parentName:"li"},"\u5982\u8bcd\u6cd5\u5206\u6790\u3001\u8bed\u6cd5\u5206\u6790\u3001\u8bed\u4e49\u5206\u6790\u3001\u4e2d\u95f4\u4ee3\u7801\u751f\u6210\u3001\u4ee3\u7801\u4f18\u5316\u4e2d\u4e0e\u673a\u5668\u65e0\u5173\u7684\u90e8\u5206")),(0,m.kt)("li",{parentName:"ul"},(0,m.kt)("p",{parentName:"li"},"\u540e\u7aef\u662f\u6307\u4e0e\u76ee\u6807\u673a\u6709\u5173\u7684\u90e8\u5206"),(0,m.kt)("p",{parentName:"li"},"\u5982\u4ee3\u7801\u4f18\u5316\u4e2d\u4e0e\u673a\u5668\u6709\u5173\u7684\u90e8\u5206\u3001\u76ee\u6807\u4ee3\u7801\u7684\u751f\u6210"))),(0,m.kt)("h3",{id:"13-\u904d\u7684\u6982\u5ff5"},"1.3 \u904d\u7684\u6982\u5ff5"),(0,m.kt)("p",null,"\u904d\u662f\u6307\u4ece\u5934\u5230\u5c3e\u626b\u63cf\u4e00\u904d\u6e90\u7a0b\u5e8f"),(0,m.kt)("hr",null),(0,m.kt)("h2",{id:"\u7b2c\u4e8c\u7ae0\u6587\u6cd5\u548c\u8bed\u8a00"},"\u7b2c\u4e8c\u7ae0\uff1a\u6587\u6cd5\u548c\u8bed\u8a00"),(0,m.kt)("h3",{id:"21-\u53e5\u578b"},"2.1 \u53e5\u578b"),(0,m.kt)("p",null,"\u82e5\u4ece\u6587\u6cd5\u7684\u5f00\u59cb\u7b26\u53f7\u5f00\u59cb\u5b58\u5728\u4ee5\u4e0b\u63a8\u5bfc\uff0c\u5219\u79f0",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"\u03b1")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"\\alpha")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.4306em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.0037em"}},"\u03b1"))))),"\u4e3a\u8be5\u6587\u6cd5\u7684\u4e00\u4e2a\u53e5\u578b\uff0c\u53e5\u578b\u4e2d\u65e2\u53ef\u4ee5\u5305\u542b\u7ec8\u7ed3\u7b26\uff0c\u4e5f\u53ef\u4ee5\u5305\u542b\u975e\u7ec8\u7ed3\u7b26\uff0c\u4e5f\u53ef\u4ee5\u662f\u7a7a\u4e32"),(0,m.kt)("div",{className:"math math-display"},(0,m.kt)("span",{parentName:"div",className:"katex-display"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mtable",{parentName:"semantics",width:"100%"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mrow",{parentName:"mtd"},(0,m.kt)("mi",{parentName:"mrow"},"S"),(0,m.kt)("msup",{parentName:"mrow"},(0,m.kt)("mo",{parentName:"msup"},"\u21d2"),(0,m.kt)("mo",{parentName:"msup"},"\u2217")),(0,m.kt)("mi",{parentName:"mrow"},"\u03b1"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mtext",{parentName:"mrow"},"\xa0"),(0,m.kt)("mi",{parentName:"mrow"},"\u03b1"),(0,m.kt)("mo",{parentName:"mrow"},"\u2208"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"V"),(0,m.kt)("mi",{parentName:"msub"},"T")),(0,m.kt)("mo",{parentName:"mrow"},"\u222a"),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"V"),(0,m.kt)("mi",{parentName:"msub"},"N")),(0,m.kt)("msup",{parentName:"mrow"},(0,m.kt)("mo",{parentName:"msup",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"msup"},"\u2217")))),(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mtext",{parentName:"mtd"},"(1)")))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"S \\Rightarrow^* \\alpha,\\space \\alpha \\in (V_T \\cup V_N)^* \\tag{1}")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.7387em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05764em"}},"S"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},(0,m.kt)("span",{parentName:"span",className:"mrel"},"\u21d2"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.7387em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-3.113em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mbin mtight"},"\u2217")))))))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.7335em",verticalAlign:"-0.1944em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.0037em"}},"\u03b1"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace"},"\xa0"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.0037em"}},"\u03b1"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"\u2208"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.22222em"}},"V"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3283em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.2222em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.13889em"}},"T")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"\u222a"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.22222em"}},"V"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3283em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.2222em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.10903em"}},"N")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mclose"},(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.7387em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-3.113em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mbin mtight"},"\u2217"))))))))),(0,m.kt)("span",{parentName:"span",className:"tag"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord text"},(0,m.kt)("span",{parentName:"span",className:"mord"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"1")),(0,m.kt)("span",{parentName:"span",className:"mord"},")"))))))),(0,m.kt)("h3",{id:"22-\u53e5\u5b50"},"2.2 \u53e5\u5b50\uff1a"),(0,m.kt)("div",{className:"math math-display"},(0,m.kt)("span",{parentName:"div",className:"katex-display"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mtable",{parentName:"semantics",width:"100%"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mrow",{parentName:"mtd"},(0,m.kt)("mi",{parentName:"mrow"},"S"),(0,m.kt)("msup",{parentName:"mrow"},(0,m.kt)("mo",{parentName:"msup"},"\u21d2"),(0,m.kt)("mo",{parentName:"msup"},"\u2217")),(0,m.kt)("mi",{parentName:"mrow"},"\u03b2"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mtext",{parentName:"mrow"},"\xa0"),(0,m.kt)("mi",{parentName:"mrow"},"\u03b2"),(0,m.kt)("mo",{parentName:"mrow"},"\u2208"),(0,m.kt)("msubsup",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msubsup"},"V"),(0,m.kt)("mi",{parentName:"msubsup"},"T"),(0,m.kt)("mo",{parentName:"msubsup"},"\u2217")))),(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mtext",{parentName:"mtd"},"(2)")))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"S \\Rightarrow^* \\beta,\\space \\beta \\in V_T^* \\tag{2}")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.7387em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05764em"}},"S"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},(0,m.kt)("span",{parentName:"span",className:"mrel"},"\u21d2"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.7387em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-3.113em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mbin mtight"},"\u2217")))))))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.8889em",verticalAlign:"-0.1944em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05278em"}},"\u03b2"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace"},"\xa0"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05278em"}},"\u03b2"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"\u2208"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.9857em",verticalAlign:"-0.247em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.22222em"}},"V"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.7387em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.453em",marginLeft:"-0.2222em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.13889em"}},"T"))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.113em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mbin mtight"},"\u2217")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.247em"}},(0,m.kt)("span",{parentName:"span"}))))))),(0,m.kt)("span",{parentName:"span",className:"tag"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord text"},(0,m.kt)("span",{parentName:"span",className:"mord"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"2")),(0,m.kt)("span",{parentName:"span",className:"mord"},")"))))))),(0,m.kt)("p",null,"\u5219\u79f0",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"\u03b2")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"\\beta")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.8889em",verticalAlign:"-0.1944em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05278em"}},"\u03b2"))))),"\u662f\u8be5\u6587\u6cd5\u7684\u53e5\u5b50"),(0,m.kt)("h3",{id:"23-\u6587\u6cd5\u7684\u5206\u7c7b"},"2.3 \u6587\u6cd5\u7684\u5206\u7c7b\uff1a"),(0,m.kt)("ol",null,(0,m.kt)("li",{parentName:"ol"},(0,m.kt)("p",{parentName:"li"},"0\u578b\u6587\u6cd5\uff0c\u53c8\u79f0\u65e0\u9650\u5236\u6587\u6cd5\u3001\u77ed\u8bed\u6587\u6cd5")),(0,m.kt)("li",{parentName:"ol"},(0,m.kt)("p",{parentName:"li"},"1\u578b\u6587\u6cd5\uff0c\u53c8\u79f0\u6587\u6709\u5173\u6587\u6cd5")),(0,m.kt)("li",{parentName:"ol"},(0,m.kt)("p",{parentName:"li"},"2\u578b\u6587\u6cd5\uff0c\u53c8\u79f0\u4e0a\u4e0b\u6587\u65e0\u5173\u6587\u6cd5\uff08Context-Free Grammar\uff0cCFG\uff09"),(0,m.kt)("p",{parentName:"li"},"\u53ef\u7528\u6765\u6784\u5efa\u8bed\u6cd5\u6811\uff0c\u8bed\u6cd5\u6811\u662f\u4e0a\u4e0b\u6587\u65e0\u5173\u6587\u6cd5\u63a8\u5bfc\u548c\u89c4\u7ea6\u7684\u56fe\u5f62\u5316\u8868\u793a"),(0,m.kt)("div",{parentName:"li",className:"math math-display"},(0,m.kt)("span",{parentName:"div",className:"katex-display"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mtable",{parentName:"semantics",width:"100%"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mrow",{parentName:"mtd"},(0,m.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"A"),(0,m.kt)("mo",{parentName:"mrow"},"\u2192"),(0,m.kt)("mi",{parentName:"mrow"},"\u03b2"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mtext",{parentName:"mrow"},"\xa0"),(0,m.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"A"),(0,m.kt)("mo",{parentName:"mrow"},"\u2208"),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"V"),(0,m.kt)("mi",{parentName:"msub"},"N")),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mtext",{parentName:"mrow"},"\xa0"),(0,m.kt)("mi",{parentName:"mrow"},"\u03b2"),(0,m.kt)("mo",{parentName:"mrow"},"\u2208"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"V"),(0,m.kt)("mi",{parentName:"msub"},"T")),(0,m.kt)("mo",{parentName:"mrow"},"\u222a"),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"V"),(0,m.kt)("mi",{parentName:"msub"},"N")),(0,m.kt)("msup",{parentName:"mrow"},(0,m.kt)("mo",{parentName:"msup",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"msup"},"\u2217")))),(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mtext",{parentName:"mtd"},"(3)")))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"\\Alpha \\rightarrow \\beta,\\space \\Alpha \\in V_N, \\space \\beta \\in (V_T \\cup V_N)^* \\tag{3}")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6833em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathrm"},"A"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"\u2192"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.8889em",verticalAlign:"-0.1944em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05278em"}},"\u03b2"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace"},"\xa0"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathrm"},"A"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"\u2208"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.8889em",verticalAlign:"-0.1944em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.22222em"}},"V"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3283em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.2222em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.10903em"}},"N")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace"},"\xa0"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05278em"}},"\u03b2"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"\u2208"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.22222em"}},"V"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3283em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.2222em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.13889em"}},"T")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"\u222a"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.22222em"}},"V"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3283em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.2222em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.10903em"}},"N")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mclose"},(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.7387em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-3.113em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mbin mtight"},"\u2217"))))))))),(0,m.kt)("span",{parentName:"span",className:"tag"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord text"},(0,m.kt)("span",{parentName:"span",className:"mord"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"3")),(0,m.kt)("span",{parentName:"span",className:"mord"},")")))))))),(0,m.kt)("li",{parentName:"ol"},(0,m.kt)("p",{parentName:"li"},"3\u578b\u6587\u6cd5\uff0c\u53c8\u79f0\u6b63\u89c4\u6587\u6cd5\uff08Regular Grammar\uff0cRG\uff09"),(0,m.kt)("ol",{parentName:"li"},(0,m.kt)("li",{parentName:"ol"},"\u5de6\u7ebf\u6027\u6587\u6cd5"),(0,m.kt)("li",{parentName:"ol"},"\u53f3\u7ebf\u6027\u6587\u6cd5")),(0,m.kt)("p",{parentName:"li"},(0,m.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora/imagesimage-20230528200840812.png",alt:"image-20230528200840812"})))),(0,m.kt)("h3",{id:"24-\u6700\u5de6\u53f3\u63a8\u5bfc"},"2.4 \u6700\u5de6/\u53f3\u63a8\u5bfc\uff1a"),(0,m.kt)("p",null,"\u5982\u679c\u5728\u63a8\u5bfc\u7684\u4efb\u4f55\u4e00\u6b65\u90fd\u662f\u5bf9\u4ea7\u751f\u5f0f\u5de6\u90e8\u4e2d\u7684\u6700\u5de6/\u53f3\u975e\u7ec8\u7ed3\u7b26\u8fdb\u884c\u66ff\u6362\uff0c\u5219\u79f0\u4e3a\u6700\u5de6/\u53f3\u63a8\u5bfc\uff0c\u5176\u4e2d\u6700\u53f3\u63a8\u5bfc\u4e5f\u88ab\u6210\u4e3a\u89c4\u8303\u63a8\u5bfc"),(0,m.kt)("hr",null),(0,m.kt)("h2",{id:"\u7b2c\u4e09\u7ae0\u8bcd\u6cd5\u5206\u6790"},"\u7b2c\u4e09\u7ae0\uff1a\u8bcd\u6cd5\u5206\u6790"),(0,m.kt)("h3",{id:"31-\u6b63\u89c4\u6587\u6cd5\u8f6c\u6362\u6210\u6b63\u89c4\u5f0f"},"3.1 \u6b63\u89c4\u6587\u6cd5\u8f6c\u6362\u6210\u6b63\u89c4\u5f0f"),(0,m.kt)("p",null,(0,m.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora/imagesimage-20230528201017013.png",alt:"image-20230528201017013"})),(0,m.kt)("h3",{id:"32-\u6709\u7a77\u81ea\u52a8\u673afa"},"3.2 \u6709\u7a77\u81ea\u52a8\u673a\uff08FA\uff09"),(0,m.kt)("p",null,(0,m.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora/imagesimage-20230528201040816.png",alt:"image-20230528201040816"})),(0,m.kt)("ol",null,(0,m.kt)("li",{parentName:"ol"},(0,m.kt)("p",{parentName:"li"},"\u786e\u5b9a\u7684\u6709\u7a77\u81ea\u52a8\u673a\uff08DFA\uff09"),(0,m.kt)("ol",{parentName:"li"},(0,m.kt)("li",{parentName:"ol"},(0,m.kt)("p",{parentName:"li"},"DFA\u7684\u5b9a\u4e49\u53ca\u7ec4\u6210"),(0,m.kt)("p",{parentName:"li"},(0,m.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora/imagesimage-20230528201127539.png",alt:"image-20230528201127539"}))),(0,m.kt)("li",{parentName:"ol"},(0,m.kt)("p",{parentName:"li"},"\u786e\u5b9a\u7684\u542b\u4e49\uff1a\u5728\u72b6\u6001\u8f6c\u6362\u7684\u6bcf\u4e00\u6b65\uff0cFA\u6839\u636e\u5f53\u524d\u7684\u72b6\u6001\u53ca\u626b\u63cf\u7684\u8f93\u5165\u5b57\u7b26\uff0c\u4fbf\u80fd\u552f\u4e00\u5730\u77e5\u9053FA\u7684\u4e0b\u4e00\u72b6\u6001\u3002"),(0,m.kt)("admonition",{parentName:"li",type:"tip"},(0,m.kt)("p",{parentName:"admonition"},"\u5728\u72b6\u6001\u8f6c\u6362\u56fe\u4e2d\u7684\u76f4\u89c2\u4f53\u73b0\u5c31\u662f\uff0c\u5728\u786e\u5b9a\u884c\u8868\u793a\u7684\u5f53\u524d\u72b6\u6001\u4ee5\u53ca\u5217\u786e\u5b9a\u7684\u8def\u5f84\u540e\uff0c\u5f97\u5230\u7684\u76ee\u7684\u72b6\u6001\u4e0d\u4f1a\u662f\u5143\u7d20\u4e2a\u6570\u5927\u4e8e1\u7684\u96c6\u5408\u3002"))),(0,m.kt)("li",{parentName:"ol"},(0,m.kt)("p",{parentName:"li"},"DFA\u7684\u53ef\u63a5\u53d7\u4ee5\u53ca\u63a5\u53d7\u96c6\u7684\u5b9a\u4e49\uff1a\u4ece\u5f00\u59cb\u72b6\u6001\u5f00\u59cb\uff0c\u7ecf\u8fc7\u8be5\u7b26\u53f7\u4e32\u8868\u793a\u7684\u8def\u5f84\uff0c\u82e5\u80fd\u5230\u8fbe\u7ec8\u6001\u5219\u79f0\u8be5\u7b26\u53f7\u4e32\u53ef\u88ab\u6539DFA\u63a5\u53d7\u3002"),(0,m.kt)("p",{parentName:"li"},(0,m.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora/imagesimage-20230528201159840.png",alt:"image-20230528201159840"}))))),(0,m.kt)("li",{parentName:"ol"},(0,m.kt)("p",{parentName:"li"},"\u4e0d\u786e\u5b9a\u7684\u6709\u7a77\u81ea\u52a8\u673a\uff08NFA\uff09")),(0,m.kt)("li",{parentName:"ol"},(0,m.kt)("p",{parentName:"li"},(0,m.kt)("inlineCode",{parentName:"p"},"NFA\u7684\u786e\u5b9a\u5316"),"\uff0c\u5373\u5c06NFA\u8f6c\u6362\u4e3aDFA\uff08\u5b50\u96c6\u6cd5\uff09"),(0,m.kt)("p",{parentName:"li"},(0,m.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora/imagesimage-20230528201222992.png",alt:"image-20230528201222992"})),(0,m.kt)("p",{parentName:"li"},"\u6b65\u9aa4\uff1a"),(0,m.kt)("ol",{parentName:"li"},(0,m.kt)("li",{parentName:"ol"},(0,m.kt)("p",{parentName:"li"},"\u753b\u51faDFA\u8f6c\u6362\u8868"),(0,m.kt)("admonition",{parentName:"li",type:"tip"},(0,m.kt)("p",{parentName:"admonition"},"\u8f6c\u6362\u8868\u4e2d\u5728\u72b6\u6001\u4e00\u5217\u4e2d\uff0c\u72b6\u6001\u5305\u542b\u539fNFA\u7ec8\u6001\u7684\u96c6\u5408\u8981\u6807*\uff0c\u4ee3\u8868\u5176\u4e3a\u7b49\u4ef7DFA\u7684\u7ec8\u6001")),(0,m.kt)("ol",{parentName:"li"},(0,m.kt)("li",{parentName:"ol"},"\u8ba1\u7b97",(0,m.kt)("span",{parentName:"li",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"m"),(0,m.kt)("mi",{parentName:"mrow"},"o"),(0,m.kt)("mi",{parentName:"mrow"},"v"),(0,m.kt)("mi",{parentName:"mrow"},"e"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"T"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"a"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"move(T, a)")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"m"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"o"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"v"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"e"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"T"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"a"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")")))))),(0,m.kt)("li",{parentName:"ol"},"\u8ba1\u7b97",(0,m.kt)("span",{parentName:"li",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"\u03f5"),(0,m.kt)("mo",{parentName:"mrow"},"\u2212"),(0,m.kt)("mi",{parentName:"mrow"},"c"),(0,m.kt)("mi",{parentName:"mrow"},"l"),(0,m.kt)("mi",{parentName:"mrow"},"o"),(0,m.kt)("mi",{parentName:"mrow"},"s"),(0,m.kt)("mi",{parentName:"mrow"},"u"),(0,m.kt)("mi",{parentName:"mrow"},"r"),(0,m.kt)("mi",{parentName:"mrow"},"e"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"T"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"\\epsilon -closure(T)")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6667em",verticalAlign:"-0.0833em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"\u03f5"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"\u2212"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"c"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.01968em"}},"l"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"os"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"u"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"re"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"T"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")")))))))),(0,m.kt)("li",{parentName:"ol"},(0,m.kt)("p",{parentName:"li"},"\u4e3a\u8f6c\u6362\u8868\u4e2d\u7684\u72b6\u6001\u91cd\u547d\u540d")),(0,m.kt)("li",{parentName:"ol"},(0,m.kt)("p",{parentName:"li"},"\u786e\u5b9a\u521d\u6001\u548c\u7ec8\u6001")))),(0,m.kt)("li",{parentName:"ol"},(0,m.kt)("p",{parentName:"li"},(0,m.kt)("inlineCode",{parentName:"p"},"DFA\u7684\u6700\u5c0f\u5316"),"\uff08\u5206\u5272\u6cd5\uff09"),(0,m.kt)("p",{parentName:"li"},"\u6b65\u9aa4\u5982\u4e0b\uff1a"),(0,m.kt)("p",{parentName:"li"},(0,m.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora/imagesimage-20230528201309296.png",alt:"image-20230528201309296"})),(0,m.kt)("admonition",{parentName:"li",type:"tip"},(0,m.kt)("p",{parentName:"admonition"},"\u8003\u8bd5\u65f6\u6ce8\u610f\u8fc7\u7a0b\u600e\u4e48\u5199\uff0c\u4e0b\u9762\u4f7f\u7528\u9700\u8981\u4e09\u8f6e\u5206\u5272\u7684\u5217\u5b50\u6f14\u793a\u6b65\u9aa4")),(0,m.kt)("p",{parentName:"li"},(0,m.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora/imagesimage-20230528201322014.png",alt:"image-20230528201322014"})),(0,m.kt)("p",{parentName:"li"},(0,m.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora/imagesimage-20230528201330964.png",alt:"image-20230528201330964"})),(0,m.kt)("p",{parentName:"li"},(0,m.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora/imagesimage-20230528201338655.png",alt:"image-20230528201338655"})),(0,m.kt)("p",{parentName:"li"},"\u5728\u5206\u5272\u5b8c\u6210\u540e\uff0c\u5bf9\u53ef\u4ee5\u5316\u7b80\u7684\u96c6\u5408\u9009\u51fa\u4e00\u4e2a\u72b6\u6001\u4f5c\u4e3a\u4ee3\u8868\uff0c\u5220\u9664\u5176\u4ed6\u591a\u4f59\u72b6\u6001\uff0c\u91cd\u65b0\u753b\u56fe"),(0,m.kt)("p",{parentName:"li"},(0,m.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora/imagesimage-20230528201346345.png",alt:"image-20230528201346345"})))),(0,m.kt)("h3",{id:"33-\u6b63\u89c4\u5f0fre\u4e0e\u6709\u7a77\u81ea\u52a8\u673afa\u7684\u4e92\u76f8\u8f6c\u5316"},"3.3 \u6b63\u89c4\u5f0fRE\u4e0e\u6709\u7a77\u81ea\u52a8\u673aFA\u7684\u4e92\u76f8\u8f6c\u5316"),(0,m.kt)("p",null,(0,m.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora/imagesimage-20230528201408139.png",alt:"image-20230528201408139"})),(0,m.kt)("h3",{id:"34-\u6b63\u89c4\u6587\u6cd5rm\u4e0e\u6709\u7a77\u81ea\u52a8\u673afa\u7684\u4e92\u76f8\u8f6c\u5316"},"3.4 \u6b63\u89c4\u6587\u6cd5RM\u4e0e\u6709\u7a77\u81ea\u52a8\u673aFA\u7684\u4e92\u76f8\u8f6c\u5316"),(0,m.kt)("p",null,(0,m.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora/imagesimage-20230528201418070.png",alt:"image-20230528201418070"})),(0,m.kt)("hr",null),(0,m.kt)("h2",{id:"\u7b2c\u56db\u7ae0\u81ea\u9876\u5411\u4e0b\u8bed\u6cd5\u5206\u6790\u65b9\u6cd5"},"\u7b2c\u56db\u7ae0\uff1a\u81ea\u9876\u5411\u4e0b\u8bed\u6cd5\u5206\u6790\u65b9\u6cd5"),(0,m.kt)("p",null,"\u63cf\u8ff0\u7a0b\u5e8f\u8bed\u6cd5\u7ed3\u6784\u7684\u89c4\u5219\u53ef\u4ee5\u4f7f\u7528",(0,m.kt)("inlineCode",{parentName:"p"},"2\u578b\u6587\u6cd5\uff08\u4e0a\u4e0b\u6587\u65e0\u5173\u8bed\u6cd5\uff0cCFG\uff09")),(0,m.kt)("p",null,"\u8bed\u6cd5\u5206\u6790\u65b9\u6cd5\u5305\u542b\u786e\u5b9a\u7684\u548c\u4e0d\u786e\u5b9a\u7684\u5206\u6790\u65b9\u6cd5\uff0c\u786e\u5b9a\u7684\u8bed\u6cd5\u5206\u6790\u65b9\u6cd5",(0,m.kt)("inlineCode",{parentName:"p"},"\u6839\u636e\u8f93\u5165\u7b26\u53f7\uff0c\u552f\u4e00\u9009\u62e9\u4ea7\u751f\u5f0f")),(0,m.kt)("p",null,"\u786e\u5b9a\u7684\u81ea\u9876\u5411\u4e0b\u5206\u6790\u65b9\u6cd5\uff1a\u6839\u636e\u5f53\u524d\u7684\u8f93\u5165\u7b26\u53f7",(0,m.kt)("inlineCode",{parentName:"p"},"\u552f\u4e00\u5730"),"\u786e\u5b9a\u9009\u7528\u54ea\u4e2a\u4ea7\u751f\u5f0f",(0,m.kt)("inlineCode",{parentName:"p"},"\u66ff\u6362\u76f8\u5e94\u7684\u975e\u7ec8\u7ed3\u7b26"),"\u4ee5\u5f80\u4e0b\u63a8\u5bfc"),(0,m.kt)("p",null,(0,m.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora/imagesimage-20230528201657180.png",alt:"image-20230528201657180"})),(0,m.kt)("h3",{id:"1-first\u96c6\u7684\u5b9a\u4e49"},"1. FIRST\u96c6\u7684\u5b9a\u4e49"),(0,m.kt)("p",null,(0,m.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora/imagesimage-20230528201545335.png",alt:"image-20230528201545335"})),(0,m.kt)("h3",{id:"2-follow\u96c6\u7684\u5b9a\u4e49"},"2. Follow\u96c6\u7684\u5b9a\u4e49"),(0,m.kt)("p",null,(0,m.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora/imagesimage-20230529222731177.png",alt:"image-20230529222731177"})),(0,m.kt)("admonition",{type:"tip"},(0,m.kt)("p",{parentName:"admonition"},"FOLLOW\u96c6\u7684\u6c42\u6cd5\u53ef\u4ee5\u6309\u7167\u4e0b\u56fe\u6280\u5de7\u8fdb\u884c")),(0,m.kt)("ol",null,(0,m.kt)("li",{parentName:"ol"},(0,m.kt)("p",{parentName:"li"},"\u82e5\u8981\u6c42\u7684\u975e\u7ec8\u7ed3\u7b26\u662f\u5f00\u59cb\u7b26\u53f7\uff0c\u5219\u76f4\u63a5\u5c06#\u63d2\u5165FOLLOW\u96c6\u4e2d")),(0,m.kt)("li",{parentName:"ol"},(0,m.kt)("p",{parentName:"li"},"\u5728\u6240\u6709\u4ea7\u751f\u5f0f\u7684\u53f3\u90e8\u4e2d\u627e\u5230\u8981\u6c42\u7684\u975e\u7ec8\u7ed3\u7b26")),(0,m.kt)("li",{parentName:"ol"},(0,m.kt)("p",{parentName:"li"},"\u770b\u975e\u7ec8\u7ed3\u7b26\u7684\u53f3\u4fa7\u662f\u4ec0\u4e48\u5143\u7d20"),(0,m.kt)("ol",{parentName:"li"},(0,m.kt)("li",{parentName:"ol"},(0,m.kt)("inlineCode",{parentName:"li"},"\u82e5\u65e0\u5143\u7d20\uff0c\u5219\u76f4\u63a5\u5c06\u8be5\u4ea7\u751f\u5f0f\u5de6\u90e8\u7684FOLLOW\u96c6\u52a0\u5165\u5230\u8be5\u975e\u7ec8\u7ed3\u7b26\u7684FOLLOW\u96c6\u4e2d")),(0,m.kt)("li",{parentName:"ol"},"\u82e5\u4e3a\u7ec8\u7ed3\u7b26\uff0c\u76f4\u63a5\u5c06\u8be5\u7ec8\u7ed3\u7b26\u52a0\u5165\u5230FOLLOW\u96c6\u4e2d"),(0,m.kt)("li",{parentName:"ol"},"\u82e5\u4e3a\u975e\u7ec8\u7ed3\u7b26\uff0c\u5c06FIRST(\u8be5\u975e\u7ec8\u7ed3\u7b26)\u51cf\u53bb",(0,m.kt)("span",{parentName:"li",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"\u03f5")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"\\epsilon")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.4306em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"\u03f5"))))),"\u7684\u6240\u6709\u7ec8\u7ed3\u7b26\u5143\u7d20\u90fd\u52a0\u5165\u81f3FOLLOW\u96c6\u4e2d")),(0,m.kt)("p",{parentName:"li"},(0,m.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora/imagescover699_20230322101450.jpg",alt:"ppt"})))),(0,m.kt)("h3",{id:"3-select\u96c6\u7684\u5b9a\u4e49"},"3. SELECT\u96c6\u7684\u5b9a\u4e49"),(0,m.kt)("admonition",{type:"tip"},(0,m.kt)("p",{parentName:"admonition"},"\u9700\u8981\u6ce8\u610f\u7684\u662fFIRST\u96c6\u3001FOLLOW\u96c6\u662f\u9488\u5bf9\u4e8e\u7b26\u53f7\u4e32\u800c\u8a00\u7684\uff0c\u800cSELECT\u96c6\u662f\u9488\u5bf9\u4e8e\u4ea7\u751f\u5f0f\u800c\u8a00\u7684")),(0,m.kt)("p",null,(0,m.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora/imagesimage-20230529222743763.png",alt:"image-20230529222743763"})),(0,m.kt)("h3",{id:"4-ll1\u6587\u6cd5\u7684\u5b9a\u4e49"},"4. LL(1)\u6587\u6cd5\u7684\u5b9a\u4e49"),(0,m.kt)("p",null,(0,m.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora/imagesimage-20230529222755134.png",alt:"image-20230529222755134"})),(0,m.kt)("h3",{id:"5-ll1\u6587\u6cd5\u7684\u5224\u522b"},"5. LL(1)\u6587\u6cd5\u7684\u5224\u522b"),(0,m.kt)("p",null,(0,m.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora/imagesimage-20230529222804098.png",alt:"image-20230529222804098"})),(0,m.kt)("admonition",{type:"tip"},(0,m.kt)("p",{parentName:"admonition"},"\u8003\u8bd5\u65f6\u6ce8\u610f\u4e66\u5199\u8fc7\u7a0b\uff0c\u9700\u8981\u753b\u51fa\u4ee5\u4e0b\u4e24\u5f20\u8868")),(0,m.kt)("p",null,(0,m.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora/imagesimage-20230529222639440.png",alt:"image-20230529222639440"})),(0,m.kt)("h3",{id:"6-\u9884\u6d4b\u5206\u6790\u8868"},"6. \u9884\u6d4b\u5206\u6790\u8868"),(0,m.kt)("p",null,"\u9884\u6d4b\u5206\u6790\u8868\u901a\u8fc7\u8ba1\u7b97SELECT\u96c6\u5f97\u5230\uff0c\u5f62\u5982\u4e0b\u8868"),(0,m.kt)("p",null,"\u884c\u6807\u4e3a\u5404\u975e\u7ec8\u7ed3\u7b26\uff0c\u5217\u6807\u4e3a\u8f93\u5165\u7b26\u53f7\uff0c\u82e5\u4ece\u67d0\u4e00\u975e\u7ec8\u7ed3\u7b26\u5f00\u59cb\u7684\u4ea7\u751f\u5f0f\u7684SELECT\u96c6\u5305\u542b\u67d0\u4e00\u8f93\u5165\u7b26\u53f7\uff0c\u5219\u5bf9\u5e94\u4ea7\u751f\u5f0f\u5c31\u662f\u884c\u5217\u786e\u5b9a\u7684\u5143\u7d20\u503c\u3002"),(0,m.kt)("p",null," ",(0,m.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora/imagescover696_20230322101455.jpg",alt:"ppt"})),(0,m.kt)("h3",{id:"7-\u975ell1\u6587\u6cd5\u5230ll1\u6587\u6cd5\u7684\u7b49\u4ef7\u53d8\u6362"},"7. \u975eLL(1)\u6587\u6cd5\u5230LL(1)\u6587\u6cd5\u7684\u7b49\u4ef7\u53d8\u6362"),(0,m.kt)("ol",null,(0,m.kt)("li",{parentName:"ol"},(0,m.kt)("p",{parentName:"li"},"\u6d88\u9664\u5de6\u516c\u56e0\u5b50\uff08\u56de\u6eaf\uff09"),(0,m.kt)("admonition",{parentName:"li",type:"caution"},(0,m.kt)("p",{parentName:"admonition"},"\u540c\u4e00\u975e\u7ec8\u7ed3\u7b26\u7684\u591a\u4e2a\u4ea7\u751f\u5f0f\u5b58\u5728\u5171\u540c\u524d\u7f00\uff0c\u4f1a\u5bfc\u81f4\u56de\u6eaf\u73b0\u8c61\uff0c\u9700\u8981\u6d88\u9664")),(0,m.kt)("p",{parentName:"li"},(0,m.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora/imagescover680_20230322101457.jpg",alt:"ppt"}))),(0,m.kt)("li",{parentName:"ol"},(0,m.kt)("p",{parentName:"li"},"\u6d88\u9664\u5de6\u9012\u5f52"),(0,m.kt)("admonition",{parentName:"li",type:"caution"},(0,m.kt)("p",{parentName:"admonition"},"\u5de6\u9012\u5f52\u6587\u6cd5\u4f1a\u4f7f\u9012\u5f52\u4e0b\u964d\u5206\u6790\u5668\u9677\u5165\u65e0\u9650\u5faa\u73af")),(0,m.kt)("ol",{parentName:"li"},(0,m.kt)("li",{parentName:"ol"},(0,m.kt)("p",{parentName:"li"},"\u6d88\u9664\u76f4\u63a5\u5de6\u9012\u5f52"),(0,m.kt)("p",{parentName:"li"},(0,m.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora/imagescover1129_20230322101459.jpg",alt:"ppt"}))),(0,m.kt)("li",{parentName:"ol"},(0,m.kt)("p",{parentName:"li"},"\u6d88\u9664\u95f4\u63a5\u5de6\u9012\u5f52"),(0,m.kt)("p",{parentName:"li"},"\u901a\u8fc7\u4ee3\u5165\u6cd5\u53d8\u6210\u76f4\u63a5\u5de6\u9012\u5f52\u518d\u6d88\u9664"))))),(0,m.kt)("h2",{id:"\u7b2c\u4e94\u7ae0\u81ea\u5e95\u5411\u4e0a\u8bed\u6cd5\u5206\u6790\u65b9\u6cd5"},"\u7b2c\u4e94\u7ae0\uff1a\u81ea\u5e95\u5411\u4e0a\u8bed\u6cd5\u5206\u6790\u65b9\u6cd5"),(0,m.kt)("h3",{id:"51-\u6982\u5ff5"},"5.1 \u6982\u5ff5"),(0,m.kt)("p",null,"\u4ece\u7684\u5e95\u90e8\u5411\u9876\u90e8\u7684\u65b9\u5411\u6784\u9020\u8bed\u6cd5\u5206\u6790\u6811\uff0c\u91c7\u7528\u6700\u5de6\u5f52\u7ea6\u7684\u65b9\u5f0f\uff0c\u5373\u6700\u53f3\u63a8\u5bfc\u7684\u9006\u8fc7\u7a0b"),(0,m.kt)("admonition",{type:"tip"},(0,m.kt)("p",{parentName:"admonition"},"\u6ce8\u610f\u8fa8\u522b\uff1a\u81ea\u9876\u5411\u4e0b\u7684\u8bed\u6cd5\u5206\u6790\u91c7\u7528\u6700\u5de6\u63a8\u5bfc\u7684\u65b9\u5f0f"),(0,m.kt)("p",{parentName:"admonition"},"\u6700\u53f3\u63a8\u5bfc\u662f\u89c4\u8303\u63a8\u5bfc\uff0c\u6700\u5de6\u5f52\u7ea6\u662f\u6700\u53f3\u63a8\u5bfc\u7684\u9006\u8fc7\u7a0b\uff0c\u53c8\u79f0\u89c4\u8303\u5f52\u7ea6")),(0,m.kt)("h3",{id:"52-\u65b9\u6cd5"},"5.2 \u65b9\u6cd5"),(0,m.kt)("ol",null,(0,m.kt)("li",{parentName:"ol"},(0,m.kt)("p",{parentName:"li"},"\u7b97\u7b26\u4f18\u5148\u5206\u6790\u6cd5"),(0,m.kt)("p",{parentName:"li"},"\u6309\u7167\u7b97\u7b26\u7684\u4f18\u5148\u5173\u7cfb\u548c\u7ed3\u5408\u6027\u8d28\u8fdb\u884c\u8bed\u6cd5\u5206\u6790")),(0,m.kt)("li",{parentName:"ol"},(0,m.kt)("p",{parentName:"li"},"LR\u5206\u6790\u6cd5\uff08\u91cd\u70b9\uff09"),(0,m.kt)("p",{parentName:"li"},"\u89c4\u8303\u89c4\u7ea6\uff1a\u53e5\u67c4\u4f5c\u4e3a\u53ef\u5f52\u7ea6\u4e32"))),(0,m.kt)("h3",{id:"53-\u5de5\u4f5c\u8fc7\u7a0b"},"5.3 \u5de5\u4f5c\u8fc7\u7a0b"),(0,m.kt)("p",null,(0,m.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora/imagescover1137_20230329104315.jpg",alt:"img"})),(0,m.kt)("h3",{id:"54-\u79fb\u5165-\u5f52\u7ea6\u5206\u6790\u5668\u76844\u79cd\u52a8\u4f5c"},"5.4 \u79fb\u5165-\u5f52\u7ea6\u5206\u6790\u5668\u76844\u79cd\u52a8\u4f5c"),(0,m.kt)("ol",null,(0,m.kt)("li",{parentName:"ol"},"\u79fb\u5165\uff1a\u5c06\u4e0b\u4e00\u4e2a\u8f93\u5165\u7b26\u53f7\u79fb\u5230\u6808\u9876"),(0,m.kt)("li",{parentName:"ol"},"\u5f52\u7ea6\uff1a\u88ab\u5f52\u7ea6\u7684\u7b26\u53f7\u4e32\u7684\u53f3\u7aef\u5904\u4e8e\u6808\u9876\uff0c\u8bed\u6cd5\u5206\u6790\u5668\u5728\u6808\u4e2d\u786e\u5b9a\u8fd9\u4e2a\u4e32\u7684\u5de6\u7aef\u975e\u7ec8\u7ed3\u7b26\u6765\u66ff\u6362\u8be5\u4e32"),(0,m.kt)("li",{parentName:"ol"},"\u63a5\u53d7\uff1a\u5ba3\u5e03\u8bed\u6cd5\u5206\u6790\u8fc7\u7a0b\u6210\u529f\u5b8c\u6210"),(0,m.kt)("li",{parentName:"ol"},"\u62a5\u9519\uff1a\u53d1\u73b0\u4e00\u4e2a\u8bed\u6cd5\u9519\u8bef\uff0c\u5e76\u8c03\u7528\u9519\u8bef\u6062\u590d\u5b50\u7a0b\u5e8f")),(0,m.kt)("p",null,(0,m.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora/imagescover1125_20230329104316.jpg",alt:"img"})),(0,m.kt)("h3",{id:"55-\u91cd\u8981\u9898\u578b"},"5.5 \u91cd\u8981\u9898\u578b"),(0,m.kt)("ol",null,(0,m.kt)("li",{parentName:"ol"},(0,m.kt)("p",{parentName:"li"},"\u524d\u5bfc\u77e5\u8bc6\uff1a4\u79cd\u9879\u76ee\u72b6\u6001"),(0,m.kt)("ol",{parentName:"li"},(0,m.kt)("li",{parentName:"ol"},"\u5f52\u7ea6\u9879\u76ee\uff1a\xb7\u5728\u6700\u540e"),(0,m.kt)("li",{parentName:"ol"},"\u63a5\u53d7\u9879\u76ee\uff1a\u62d3\u5e7f\u6587\u6cd5\u7684\u5f00\u59cb\u7b26\u53f7\u7684\u4ea7\u751f\u5f0f\uff0c\u4e14\xb7\u5728\u6700\u540e"),(0,m.kt)("li",{parentName:"ol"},"\u79fb\u8fdb\u9879\u76ee\uff1a\xb7\u540e\u9762\u662f\u7ec8\u7ed3\u7b26",(0,m.kt)("span",{parentName:"li",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"V"),(0,m.kt)("mi",{parentName:"msub"},"T"))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"V_T")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.8333em",verticalAlign:"-0.15em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.22222em"}},"V"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3283em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.2222em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.13889em"}},"T")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"}))))))))))),(0,m.kt)("li",{parentName:"ol"},"\u5f85\u7ea6\u9879\u76ee\uff1a\xb7\u540e\u9762\u662f\u975e\u7ec8\u7ed3\u7b26",(0,m.kt)("span",{parentName:"li",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"V"),(0,m.kt)("mi",{parentName:"msub"},"N"))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"V_N")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.8333em",verticalAlign:"-0.15em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.22222em"}},"V"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3283em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.2222em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.10903em"}},"N")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"}))))))))))))),(0,m.kt)("li",{parentName:"ol"},(0,m.kt)("p",{parentName:"li"},"\u79fb\u5165-\u5f52\u7ea6\u5206\u6790"),(0,m.kt)("p",{parentName:"li"},(0,m.kt)("img",{parentName:"p",src:"https://github.com/bonjour-npy/Image-Hosting-Service/blob/main/typora/%E5%B1%8F%E5%B9%95%E6%88%AA%E5%9B%BE%202023-05-30%20085808.png?raw=true",alt:"image"}))),(0,m.kt)("li",{parentName:"ol"},(0,m.kt)("p",{parentName:"li"},"LR(0)\u5206\u6790\u8868 / \u6784\u9020\u5176\u8bc6\u522b\u6d3b\u524d\u7f00DFA "),(0,m.kt)("p",{parentName:"li"},(0,m.kt)("a",{parentName:"p",href:"https://www.bilibili.com/video/BV1pL4y1E7RE/?spm_id_from=333.788&vd_source=24d8fcf68bc0e2b0003defe0995cf533"},"https://www.bilibili.com/video/BV1pL4y1E7RE/?spm_id_from=333.788&vd_source=24d8fcf68bc0e2b0003defe0995cf533")),(0,m.kt)("p",{parentName:"li"},(0,m.kt)("inlineCode",{parentName:"p"},"\u5728\u5199\u9884\u6d4b\u5206\u6790\u8868\u7684reduce\u9879\u65f6\uff0caction\u7684\u6bcf\u4e00\u5217\u90fd\u8981\u5199"))),(0,m.kt)("li",{parentName:"ol"},(0,m.kt)("p",{parentName:"li"},"SLR(1)\u5206\u6790\u8868 / \u6784\u9020\u5176\u8bc6\u522b\u6d3b\u524d\u7f00DFA"),(0,m.kt)("p",{parentName:"li"},(0,m.kt)("a",{parentName:"p",href:"https://www.bilibili.com/video/BV12u411S7Us/?spm_id_from=333.788&vd_source=24d8fcf68bc0e2b0003defe0995cf533"},"https://www.bilibili.com/video/BV12u411S7Us/?spm_id_from=333.788&vd_source=24d8fcf68bc0e2b0003defe0995cf533")),(0,m.kt)("p",{parentName:"li"},(0,m.kt)("inlineCode",{parentName:"p"},"\u5728\u5199\u9884\u6d4b\u5206\u6790\u8868\u7684reduce\u9879\u65f6\uff0c\u53ea\u5199\u4ea7\u751f\u5f0f\u5de6\u90e8\u7684FOLLOW\u96c6\u5bf9\u5e94\u7684action\u5217"))),(0,m.kt)("li",{parentName:"ol"},(0,m.kt)("p",{parentName:"li"},"LR(1)\u5206\u6790\u8868 / \u6784\u9020\u5176\u8bc6\u522b\u6d3b\u524d\u7f00DFA"),(0,m.kt)("p",{parentName:"li"},(0,m.kt)("a",{parentName:"p",href:"https://www.bilibili.com/video/BV1Vm4y1Q7XB/?spm_id_from=333.788&vd_source=24d8fcf68bc0e2b0003defe0995cf533"},"https://www.bilibili.com/video/BV1Vm4y1Q7XB/?spm_id_from=333.788&vd_source=24d8fcf68bc0e2b0003defe0995cf533")),(0,m.kt)("p",{parentName:"li"},(0,m.kt)("inlineCode",{parentName:"p"},"\u5728\u6784\u9020\u9879\u76ee\u96c6\u65f6\uff0c\u8981\u52a0\u5165\u524d\u5411\u641c\u7d22\u7b26\uff1b\u5e76\u4e14\uff0c\u5728\u5199\u9884\u6d4b\u5206\u6790\u8868\u7684reduce\u9879\u65f6\u53ea\u5199\u524d\u5411\u641c\u7d22\u7b26\u5bf9\u5e94\u7684action\u5217"))),(0,m.kt)("li",{parentName:"ol"},(0,m.kt)("p",{parentName:"li"},"LALR(1)\u5206\u6790\u8868 / \u6784\u9020\u5176\u8bc6\u522b\u6d3b\u524d\u7f00DFA"),(0,m.kt)("p",{parentName:"li"},(0,m.kt)("inlineCode",{parentName:"p"},"\u5728\u6784\u9020\u9879\u76ee\u96c6\u65f6\uff0c\u8981\u52a0\u5165\u524d\u5411\u641c\u7d22\u7b26\uff0c\u4f46\u662f\u8981\u5408\u5e76\u540c\u5fc3\u96c6\uff0c\u628a\u76f8\u540c\u8868\u8fbe\u5f0f\u4f46\u662f\u4e0d\u540c\u524d\u5411\u641c\u7d22\u7b26\u7684\u524d\u5411\u641c\u7d22\u7b26\u5408\u5e76\uff0c\u5e76\u4e14\u5728\u5199\u9884\u6d4b\u5206\u6790\u8868\u7684reduce\u9879\u65f6\u53ea\u5199\u524d\u5411\u641c\u7d22\u7b26\u96c6\u5bf9\u5e94\u7684action\u5217")),(0,m.kt)("p",{parentName:"li"},(0,m.kt)("a",{parentName:"p",href:"https://www.bilibili.com/video/BV13r4y1m7sQ/?spm_id_from=333.788&vd_source=24d8fcf68bc0e2b0003defe0995cf533"},"https://www.bilibili.com/video/BV13r4y1m7sQ/?spm_id_from=333.788&vd_source=24d8fcf68bc0e2b0003defe0995cf533")))),(0,m.kt)("h2",{id:"\u6982\u5ff5\u603b\u7ed3"},"\u6982\u5ff5\u603b\u7ed3"),(0,m.kt)("h3",{id:"1-\u7f16\u8bd1\u7a0b\u5e8f\u5404\u9636\u6bb5\u529f\u80fd"},"1 \u7f16\u8bd1\u7a0b\u5e8f\u5404\u9636\u6bb5\u529f\u80fd"),(0,m.kt)("p",null,(0,m.kt)("inlineCode",{parentName:"p"},"\u8bcd\u6cd5\u5206\u6790"),"\uff1a\u4ece\u5de6\u5230\u53f3\u626b\u63cf\u6e90\u7a0b\u5e8f\uff0c\u8bc6\u522b\u51fa\u5404\u4e2a\u5355\u8bcd\uff0c\u786e\u5b9a\u5355\u8bcd\u7c7b\u578b\u5e76\u5f62\u6210\u5355\u8bcd\u5e8f\u5217\uff0c\u8fdb\u884c\u8bcd\u6cd5\u9519\u8bef\u68c0\u67e5\uff0c\u5bf9\u6807\u8bc6\u7b26\u8fdb\u884c\u767b\u8bb0\uff0c\u5373\u7b26\u53f7\u8868\u7ba1\u7406\n",(0,m.kt)("inlineCode",{parentName:"p"},"\u8bed\u6cd5\u5206\u6790"),"\uff1a\u4ece\u8bcd\u6cd5\u5206\u6790\u8f93\u51fa\u7684\u5355\u8bcd\u5e8f\u5217\u8bc6\u522b\u51fa\u5404\u7c7b\u77ed\u8bed\uff0c\u6784\u9020\u8bed\u6cd5\u5206\u6790\u6811\uff0c\u5e76\u8fdb\u884c\u8bed\u6cd5\u9519\u8bef\u68c0\u67e5\n",(0,m.kt)("inlineCode",{parentName:"p"},"\u8bed\u4e49\u5206\u6790"),"\uff1a\u5ba1\u67e5\u7a0b\u5e8f\u662f\u5426\u5177\u6709\u8bed\u4e49\u9519\u8bef\uff0c\u4e3a\u4ee3\u7801\u751f\u6210\u9636\u6bb5\u6536\u96c6\u7c7b\u578b\u4fe1\u606f\uff0c\u4e0d\u7b26\u5408\u89c4\u8303\u65f6\u62a5\u9519\uff08\u7b26\u53f7\u8868\u662f\u8bed\u4e49\u6b63\u786e\u6027\u68c0\u67e5\u7684\u4f9d\u636e\uff09\n",(0,m.kt)("inlineCode",{parentName:"p"},"\u4e2d\u95f4\u4ee3\u7801\u751f\u6210"),"\uff1a\u751f\u6210\u4e2d\u95f4\u4ee3\u7801\uff0c\u5982\u4e09\u5730\u5740\u6307\u4ee4\u3001\u56db\u5143\u5f0f\u3001\u6ce2\u5170\u5f0f\u3001\u9006\u6ce2\u5170\u5f0f\u3001\u6811\u5f62\u7ed3\u6784\u7b49\n",(0,m.kt)("inlineCode",{parentName:"p"},"\u4ee3\u7801\u4f18\u5316"),"\uff1a\u5bf9\u4ee3\u7801\u8fdb\u884c\u7b49\u4ef7\u53d8\u6362\u4ee5\u6c42\u63d0\u9ad8\u6267\u884c\u6548\u7387\uff0c\u63d0\u9ad8\u901f\u5ea6\u6216\u8282\u7701\u7a7a\u95f4\n",(0,m.kt)("inlineCode",{parentName:"p"},"\u76ee\u6807\u4ee3\u7801\u751f\u6210"),"\uff1a\u5c06\u4e2d\u95f4\u4ee3\u7801\u8f6c\u5316\u6210",(0,m.kt)("inlineCode",{parentName:"p"},"\u76ee\u6807\u673a\u4e0a"),"\u7684\u673a\u5668\u6307\u4ee4\u4ee3\u7801\u6216\u6c47\u7f16\u4ee3\u7801\uff08\u7b26\u53f7\u8868\u662f\u5bf9\u7b26\u53f7\u5206\u914d\u5730\u5740\u7684\u4f9d\u636e\uff09"),(0,m.kt)("h3",{id:"2-\u8bed\u6cd5\u5206\u6790\u65b9\u6cd5\u7684\u6982\u5ff5"},"2 \u8bed\u6cd5\u5206\u6790\u65b9\u6cd5\u7684\u6982\u5ff5"),(0,m.kt)("p",null,"\u5c31\u4ea7\u751f\u8bed\u6cd5\u6811\u7684\u65b9\u5411\u800c\u8a00\uff0c\u53ef\u5927\u81f4\u5206\u4e3a",(0,m.kt)("inlineCode",{parentName:"p"},"\u81ea\u9876\u5411\u4e0b"),"\u7684\u8bed\u6cd5\u5206\u6790\u548c",(0,m.kt)("inlineCode",{parentName:"p"},"\u81ea\u5e95\u5411\u4e0a"),"\u7684\u8bed\u6cd5\u5206\u6790\u4e24\u5927\u7c7b\u3002"),(0,m.kt)("p",null,"\u81ea\u9876\u5411\u4e0b\u7684\u8bed\u6cd5\u5206\u6790\u65b9\u6cd5\uff1a\u4e3b\u6d41\u65b9\u6cd5\u4e3a",(0,m.kt)("inlineCode",{parentName:"p"},"\u9012\u5f52\u4e0b\u964d\u5206\u6790\u6cd5"),"\u3002\u6839\u636e\u5f53\u524d\u7684\u8f93\u5165\u7b26\u53f7",(0,m.kt)("inlineCode",{parentName:"p"},"\u552f\u4e00\u5730"),"\u786e\u5b9a\u9009\u7528\u54ea\u4e2a\u4ea7\u751f\u5f0f",(0,m.kt)("inlineCode",{parentName:"p"},"\u66ff\u6362\u76f8\u5e94\u7684\u975e\u7ec8\u7ed3\u7b26"),"\u4ee5\u5f80\u4e0b\u63a8\u5bfc\u3002"),(0,m.kt)("p",null,"\u81ea\u5e95\u5411\u4e0a\u7684\u8bed\u6cd5\u5206\u6790\u65b9\u6cd5\uff1a",(0,m.kt)("inlineCode",{parentName:"p"},"\u5c06\u8f93\u5165\u4e32w\u5f52\u7ea6\u4e3a\u6587\u6cd5\u5f00\u59cb\u7b26\u53f7S\u7684\u8fc7\u7a0b"),"\u3002"),(0,m.kt)("admonition",{type:"tip"},(0,m.kt)("p",{parentName:"admonition"},"LR(0), SLR(1), LR(1)"),(0,m.kt)("p",{parentName:"admonition"},"LR(0)\u6587\u6cd5\u53ef\u80fd\u5b58\u5728\u79fb\u8fdb-\u5f52\u7ea6\u51b2\u7a81\u3001\u5f52\u7ea6-\u5f52\u7ea6\u51b2\u7a81"),(0,m.kt)("p",{parentName:"admonition"},"SLR(1)\u6587\u6cd5\u5728\u6784\u9020\u7684\u8fc7\u7a0b\u4e2d\u4e0d\u5b58\u5728\u5f52\u7ea6-\u5f52\u7ea6\u51b2\u7a81\uff0c\u4f46\u6709\u53ef\u80fd\u51fa\u73b0\u79fb\u8fdb-\u5f52\u7ea6\u51b2\u7a81\uff0c\u53ef\u4ee5\u7531FOLLOW\u96c6\u89e3\u51b3\u7684\u8bdd\u5219\u662fSLR(1)\u6587\u6cd5")),(0,m.kt)("h3",{id:"3-\u7ffb\u8bd1\u6a21\u5f0f"},"3 \u7ffb\u8bd1\u6a21\u5f0f"),(0,m.kt)("p",null,"\u7ffb\u8bd1\u6a21\u5f0f\u662f\u9002\u5408",(0,m.kt)("inlineCode",{parentName:"p"},"\u8bed\u6cd5\u5236\u5bfc\u8bed\u4e49\u8ba1\u7b97"),"\u7684\u53e6\u4e00\u79cd\u63cf\u8ff0\u5f62\u5f0f\uff0c\u53ef\u4ee5\u4f53\u73b0\u4e00\u79cd\u5408\u7406\u8c03\u7528\u8bed\u4e49\u52a8\u4f5c\u7684\u7b97\u6cd5\u3002"),(0,m.kt)("ul",null,(0,m.kt)("li",{parentName:"ul"},(0,m.kt)("p",{parentName:"li"},"S-\u7ffb\u8bd1\u6a21\u5f0f\uff1a"),(0,m.kt)("p",{parentName:"li"},"\u4ec5\u6d89\u53ca\u7efc\u5408\u5c5e\u6027\u7684\u7ffb\u8bd1\u6a21\u5f0f\uff0c\u901a\u5e38\u5c06\u8bed\u4e49\u52a8\u4f5c\u96c6\u5408\u7f6e\u4e8e\u4ea7\u751f\u5f0f\u53f3\u7aef\u672b\u5c3e\u3002")),(0,m.kt)("li",{parentName:"ul"},(0,m.kt)("p",{parentName:"li"},"L-\u7ffb\u8bd1\u6a21\u5f0f\uff1a"),(0,m.kt)("p",{parentName:"li"},"\u65e2\u53ef\u4ee5\u5305\u542b\u7efc\u5408\u5c5e\u6027\uff0c\u4e5f\u53ef\u4ee5\u5305\u542b\u7ee7\u627f\u5c5e\u6027\u3002"))),(0,m.kt)("h3",{id:"4-\u5c5e\u6027\u6587\u6cd5"},"4 \u5c5e\u6027\u6587\u6cd5"),(0,m.kt)("p",null,"\u5728\u6587\u6cd5\u57fa\u7840\u4e0a\uff0c",(0,m.kt)("inlineCode",{parentName:"p"},"\u4e3a\u6587\u6cd5\u7b26\u53f7\u5173\u8054\u6709\u7279\u5b9a\u610f\u4e49\u7684\u5c5e\u6027"),"\uff0c\u5e76",(0,m.kt)("inlineCode",{parentName:"p"},"\u4e3a\u4ea7\u751f\u5f0f\u5173\u8054\u76f8\u5e94\u7684\u8bed\u4e49\u52a8\u4f5c"),"\uff0c\u79f0\u4e4b\u4e3a\u5c5e\u6027\u6587\u6cd5\u3002"),(0,m.kt)("ul",null,(0,m.kt)("li",{parentName:"ul"},(0,m.kt)("p",{parentName:"li"},"S-\u5c5e\u6027\u6587\u6cd5\uff1a"),(0,m.kt)("p",{parentName:"li"},"\u53ea\u5305\u542b\u7efc\u5408\u5c5e\u6027\u7684\u5c5e\u6027\u6587\u6cd5\u6210\u4e3aS-\u5c5e\u6027\u6587\u6cd5")),(0,m.kt)("li",{parentName:"ul"},(0,m.kt)("p",{parentName:"li"},"L-\u5c5e\u6027\u6587\u6cd5\uff1a"),(0,m.kt)("p",{parentName:"li"},"\u53ef\u4ee5\u5305\u542b\u7efc\u5408\u5c5e\u6027\uff0c\u4e5f\u53ef\u4ee5\u5305\u542b\u7ee7\u627f\u5c5e\u6027\uff0c\u4f46\u8981\u6c42\u4ea7\u751f\u5f0f\u53f3\u90e8\u7684\u6587\u6cd5\u7b26\u53f7\u7684\u7ee7\u627f\u5c5e\u6027\u7684\u8ba1\u7b97\u53ea\u53d6\u51b3\u4e8e\u8be5\u7b26\u53f7\u5de6\u8fb9\u7b26\u53f7\u7684\u5c5e\u6027"))),(0,m.kt)("h3",{id:"5-\u7b26\u53f7\u8868"},"5 \u7b26\u53f7\u8868"),(0,m.kt)("p",null,"\u7b26\u53f7\u8868\u662f\u7f16\u8bd1\u7a0b\u5e8f\u4e2d\u7528\u4e8e\u6536\u96c6\u6807\u8bc6\u7b26\u7684\u5c5e\u6027\u4fe1\u606f\u7684\u6570\u636e\u7ed3\u6784\u3002"),(0,m.kt)("p",null,"\u5404\u9636\u6bb5\u4f5c\u7528\uff1a"),(0,m.kt)("ul",null,(0,m.kt)("li",{parentName:"ul"},"\u8bed\u4e49\u5206\u6790\u9636\u6bb5\uff1a\u8bed\u4e49\u5408\u6cd5\u6027\u68c0\u67e5\u7684\u4f9d\u636e"),(0,m.kt)("li",{parentName:"ul"},"\u76ee\u6807\u4ee3\u7801\u751f\u6210\u9636\u6bb5\uff1a\u5bf9\u7b26\u53f7\u540d\u8fdb\u884c\u5730\u5740\u5206\u914d\u7684\u4f9d\u636e")))}o.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/d839ba35.3b5096c7.js b/assets/js/d839ba35.3b5096c7.js new file mode 100644 index 000000000..66db837d2 --- /dev/null +++ b/assets/js/d839ba35.3b5096c7.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunknpy_notebook=self.webpackChunknpy_notebook||[]).push([[198],{3905:(a,e,t)=>{t.d(e,{Zo:()=>i,kt:()=>h});var n=t(7294);function m(a,e,t){return e in a?Object.defineProperty(a,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):a[e]=t,a}function s(a,e){var t=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable}))),t.push.apply(t,n)}return t}function p(a){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?s(Object(t),!0).forEach((function(e){m(a,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(t)):s(Object(t)).forEach((function(e){Object.defineProperty(a,e,Object.getOwnPropertyDescriptor(t,e))}))}return a}function r(a,e){if(null==a)return{};var t,n,m=function(a,e){if(null==a)return{};var t,n,m={},s=Object.keys(a);for(n=0;n<s.length;n++)t=s[n],e.indexOf(t)>=0||(m[t]=a[t]);return m}(a,e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(a);for(n=0;n<s.length;n++)t=s[n],e.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(a,t)&&(m[t]=a[t])}return m}var l=n.createContext({}),N=function(a){var e=n.useContext(l),t=e;return a&&(t="function"==typeof a?a(e):p(p({},e),a)),t},i=function(a){var e=N(a.components);return n.createElement(l.Provider,{value:e},a.children)},o="mdxType",c={inlineCode:"code",wrapper:function(a){var e=a.children;return n.createElement(n.Fragment,{},e)}},k=n.forwardRef((function(a,e){var t=a.components,m=a.mdxType,s=a.originalType,l=a.parentName,i=r(a,["components","mdxType","originalType","parentName"]),o=N(t),k=m,h=o["".concat(l,".").concat(k)]||o[k]||c[k]||s;return t?n.createElement(h,p(p({ref:e},i),{},{components:t})):n.createElement(h,p({ref:e},i))}));function h(a,e){var t=arguments,m=e&&e.mdxType;if("string"==typeof a||m){var s=t.length,p=new Array(s);p[0]=k;var r={};for(var l in e)hasOwnProperty.call(e,l)&&(r[l]=e[l]);r.originalType=a,r[o]="string"==typeof a?a:m,p[1]=r;for(var N=2;N<s;N++)p[N]=t[N];return n.createElement.apply(null,p)}return n.createElement.apply(null,t)}k.displayName="MDXCreateElement"},1031:(a,e,t)=>{t.r(e),t.d(e,{assets:()=>l,contentTitle:()=>p,default:()=>c,frontMatter:()=>s,metadata:()=>r,toc:()=>N});var n=t(7462),m=(t(7294),t(3905));const s={},p="\u7b80\u5386\u9762\u8bd5\u51c6\u5907",r={unversionedId:"Tui-Mian/\u7b80\u5386/\u7b80\u5386\u9762\u8bd5\u51c6\u5907",id:"Tui-Mian/\u7b80\u5386/\u7b80\u5386\u9762\u8bd5\u51c6\u5907",title:"\u7b80\u5386\u9762\u8bd5\u51c6\u5907",description:"\u4e00\u3001U-2-Net",source:"@site/docs/Tui-Mian/\u7b80\u5386/\u7b80\u5386\u9762\u8bd5\u51c6\u5907.md",sourceDirName:"Tui-Mian/\u7b80\u5386",slug:"/Tui-Mian/\u7b80\u5386/\u7b80\u5386\u9762\u8bd5\u51c6\u5907",permalink:"/docs/Tui-Mian/\u7b80\u5386/\u7b80\u5386\u9762\u8bd5\u51c6\u5907",draft:!1,tags:[],version:"current",frontMatter:{},sidebar:"tui_mian",previous:{title:"\u5927\u6570\u9664\u6cd5",permalink:"/docs/Tui-Mian/\u673a\u8bd5/\u5927\u6570\u9664\u6cd5"},next:{title:"\u6570\u636e\u7ed3\u6784",permalink:"/docs/Tui-Mian/\u8ba1\u7b97\u673a\u57fa\u7840\u7efc\u5408/\u6570\u636e\u7ed3\u6784"}},l={},N=[{value:"\u4e00\u3001U-2-Net",id:"\u4e00u-2-net",level:2},{value:"\uff08\u4e00\uff09SOD\u4efb\u52a1",id:"\u4e00sod\u4efb\u52a1",level:3},{value:"\uff08\u4e8c\uff09\u7f51\u7edc\u7ed3\u6784",id:"\u4e8c\u7f51\u7edc\u7ed3\u6784",level:3},{value:"\uff08\u4e09\uff09\u635f\u5931\u51fd\u6570",id:"\u4e09\u635f\u5931\u51fd\u6570",level:3},{value:"\uff08\u56db\uff09\u6df1\u5ea6\u53ef\u5206\u79bb\u5377\u79ef",id:"\u56db\u6df1\u5ea6\u53ef\u5206\u79bb\u5377\u79ef",level:3},{value:"\u4e8c\u3001YOLO",id:"\u4e8cyolo",level:2},{value:"\uff08\u4e00\uff09mAP",id:"\u4e00map",level:3},{value:"\uff08\u4e8c\uff09YOLOv1",id:"\u4e8cyolov1",level:3},{value:"1.\u9884\u6d4b\u9636\u6bb5",id:"1\u9884\u6d4b\u9636\u6bb5",level:4},{value:"2. \u8bad\u7ec3\u8fc7\u7a0b\u7684\u635f\u5931\u51fd\u6570",id:"2-\u8bad\u7ec3\u8fc7\u7a0b\u7684\u635f\u5931\u51fd\u6570",level:4},{value:"\uff08\u4e8c\uff09YOLOv2",id:"\u4e8cyolov2",level:3},{value:"1. BN\u5c42",id:"1-bn\u5c42",level:4},{value:"2. \u9ad8\u5206\u8fa8\u7387\u8bad\u7ec3",id:"2-\u9ad8\u5206\u8fa8\u7387\u8bad\u7ec3",level:4},{value:"3. Anchor",id:"3-anchor",level:4},{value:"\uff08\u4e09\uff09YOLOv5",id:"\u4e09yolov5",level:3},{value:"1. \u7279\u5f81\u878d\u5408",id:"1-\u7279\u5f81\u878d\u5408",level:4},{value:"2. \u524d\u5904\u7406",id:"2-\u524d\u5904\u7406",level:4},{value:"3. \u7279\u5f81\u91d1\u5b57\u5854FCN",id:"3-\u7279\u5f81\u91d1\u5b57\u5854fcn",level:4},{value:"\u4e09\u3001CBAM",id:"\u4e09cbam",level:2},{value:"\uff08\u4e00\uff09\u603b\u4f53\u7ed3\u6784",id:"\u4e00\u603b\u4f53\u7ed3\u6784",level:3},{value:"\uff08\u4e8c\uff09\u901a\u9053\u6ce8\u610f\u529b",id:"\u4e8c\u901a\u9053\u6ce8\u610f\u529b",level:3},{value:"\uff08\u4e09\uff09\u7a7a\u95f4\u6ce8\u610f\u529b",id:"\u4e09\u7a7a\u95f4\u6ce8\u610f\u529b",level:3},{value:"\uff08\u56db\uff09\u5176\u4ed6\u6ce8\u610f\u4e8b\u9879",id:"\u56db\u5176\u4ed6\u6ce8\u610f\u4e8b\u9879",level:3},{value:"\u56db\u3001Focal Loss",id:"\u56dbfocal-loss",level:2},{value:"\u4e94\u3001SENet",id:"\u4e94senet",level:2},{value:"\u516d\u3001\u81ea\u6ce8\u610f\u529b\u673a\u5236",id:"\u516d\u81ea\u6ce8\u610f\u529b\u673a\u5236",level:2},{value:"\u4e03\u3001\u81ea\u6211\u4ecb\u7ecd",id:"\u4e03\u81ea\u6211\u4ecb\u7ecd",level:2},{value:"\uff08\u4e00\uff09\u82f1\u6587\u81ea\u6211\u4ecb\u7ecd",id:"\u4e00\u82f1\u6587\u81ea\u6211\u4ecb\u7ecd",level:3},{value:"\uff08\u4e8c\uff09\u897f\u7535\u5e7f\u7814\u9662\u81ea\u6211\u4ecb\u7ecd",id:"\u4e8c\u897f\u7535\u5e7f\u7814\u9662\u81ea\u6211\u4ecb\u7ecd",level:3},{value:"1. \u82f1\u6587\u81ea\u6211\u4ecb\u7ecd",id:"1-\u82f1\u6587\u81ea\u6211\u4ecb\u7ecd",level:4},{value:"2. \u4e2d\u6587\u81ea\u6211\u4ecb\u7ecd",id:"2-\u4e2d\u6587\u81ea\u6211\u4ecb\u7ecd",level:4},{value:"\uff08\u4e09\uff09\u7535\u5b50\u79d1\u6280\u5927\u5b66\u81ea\u6211\u4ecb\u7ecd",id:"\u4e09\u7535\u5b50\u79d1\u6280\u5927\u5b66\u81ea\u6211\u4ecb\u7ecd",level:3},{value:"1. \u82f1\u6587\u81ea\u6211\u4ecb\u7ecd",id:"1-\u82f1\u6587\u81ea\u6211\u4ecb\u7ecd-1",level:4},{value:"2. \u4e2d\u6587\u81ea\u6211\u4ecb\u7ecd",id:"2-\u4e2d\u6587\u81ea\u6211\u4ecb\u7ecd-1",level:4}],i={toc:N},o="wrapper";function c(a){let{components:e,...t}=a;return(0,m.kt)(o,(0,n.Z)({},i,t,{components:e,mdxType:"MDXLayout"}),(0,m.kt)("h1",{id:"\u7b80\u5386\u9762\u8bd5\u51c6\u5907"},"\u7b80\u5386\u9762\u8bd5\u51c6\u5907"),(0,m.kt)("h2",{id:"\u4e00u-2-net"},"\u4e00\u3001U-2-Net"),(0,m.kt)("h3",{id:"\u4e00sod\u4efb\u52a1"},"\uff08\u4e00\uff09SOD\u4efb\u52a1"),(0,m.kt)("p",null,"\u663e\u8457\u6027\u76ee\u6807\u68c0\u6d4bSalient Object Detection\uff0c\u76f8\u5f53\u4e8e\u8bed\u4e49\u5206\u5272\u4e2d\u7684\u4e8c\u5206\u7c7b\u4efb\u52a1\uff0c\u53ea\u6709\u524d\u666f\u548c\u80cc\u666f"),(0,m.kt)("h3",{id:"\u4e8c\u7f51\u7edc\u7ed3\u6784"},"\uff08\u4e8c\uff09\u7f51\u7edc\u7ed3\u6784"),(0,m.kt)("p",null,"\u4e0b\u56fe\u4e3aU-2-Net\u7684\u6574\u4f53\u7ed3\u6784"),(0,m.kt)("p",null,(0,m.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora/imagesimage-20230618103036971.png",alt:"image-20230618103036971"})),(0,m.kt)("admonition",{type:"tip"},(0,m.kt)("p",{parentName:"admonition"},"residual ","[r\u026a\u02c8z\u026adju\u0259l]")),(0,m.kt)("p",null,"\u5728encoder\u9636\u6bb5\uff0c\u6bcf\u4e2ablock\u4e4b\u540e\u4f7f\u7528maxpooling\u4e0b\u91c7\u6837\u4e24\u500d\n\u5728decoder\u9636\u6bb5\uff0c\u6bcf\u4e2ablock\u4e4b\u540e\u4f7f\u7528\u53cc\u7ebf\u6027\u63d2\u503c\u4e0a\u91c7\u6837\u4e24\u500d"),(0,m.kt)("p",null,"\u4e0b\u56fe\u4e3aResidual U-block\u7684\u7ed3\u6784"),(0,m.kt)("p",null,(0,m.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora/imagesimage-20230618103937905.png",alt:"image-20230618103937905"})),(0,m.kt)("admonition",{type:"tip"},(0,m.kt)("p",{parentName:"admonition"},"\u5377\u79ef\u662f\u5982\u4f55\u6539\u53d8\u8f93\u51fa\u7684\u901a\u9053\u6570\u7684\uff1f\n",(0,m.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora/imagesv2-ec760bd24d7c00de5eef31cde2a4b33c_720w.webp",alt:"img"})),(0,m.kt)("p",{parentName:"admonition"},"\u5377\u79ef\u6838\u7684\u901a\u9053\u6570\u7b49\u4e8e\u8f93\u5165\u7684\u901a\u9053\u6570\uff0c\u5377\u79ef\u6838\u7684\u4e2a\u6570\u7b49\u4e8e\u8f93\u51fa\u7684\u901a\u9053\u6570"),(0,m.kt)("p",{parentName:"admonition"},(0,m.kt)("a",{parentName:"p",href:"https://www.zhihu.com/question/474159106/answer/2014764112"},"\u56fe\u7247\u6765\u6e90\u77e5\u4e4e"))),(0,m.kt)("p",null,"\u5728\u7279\u5f81\u878d\u5408\u9636\u6bb5\uff0c\u6bcf\u4e00\u5c42\u7684encoder-decoder\u8f93\u51fa\uff0c\u4f7f\u75283x3\u5377\u79ef\u4ee5\u53ca\u53cc\u7ebf\u6027\u63d2\u503c\u4e0a\u91c7\u6837\u5230\u539f\u59cb\u5206\u8fa8\u7387\u5f97\u5230\u8be5\u5c42\u7684\u7279\u5f81\u56fe\uff0c\u4e14\u5377\u79ef\u6838\u7684\u4e2a\u6570\u4e3a1\uff0c\u8f93\u51fa\u7684feature map\u901a\u9053\u6570\u4e5f\u4e3a1\u3002\u5c06\u6bcf\u4e00\u5c42\u7684feature map\u8fdb\u884cconcat\u62fc\u63a5\uff0c\u5f97\u52306\u901a\u9053\u7684\u878d\u5408feature map\uff0c\u6700\u540e\u4f7f\u75281x1\u5377\u79ef\u4ee5\u53casigmoid\u6fc0\u6d3b\u51fd\u6570\u5f97\u5230\u6700\u7ec8\u7684\u878d\u5408\u7279\u5f81\u56fe\u8f93\u51fa"),(0,m.kt)("h3",{id:"\u4e09\u635f\u5931\u51fd\u6570"},"\uff08\u4e09\uff09\u635f\u5931\u51fd\u6570"),(0,m.kt)("p",null,"\u635f\u5931\u51fd\u6570\u662f7\u4e2a\u635f\u5931\u9879\u7684\u52a0\u6743\u6c42\u548c\n\u5171\u67096\u5c42encoder-decoder\u7ed3\u6784\uff0c\u5c06\u6bcf\u4e00\u5c42\u5bf9\u5e94\u7684feature map\u4e0eground truth\u505aBCE Loss\u5f97\u52306\u4e2a\u635f\u5931\u9879\n\u7b2c7\u4e2a\u635f\u5931\u9879\u662f\u6700\u7ec8\u878d\u5408\u5f97\u5230\u7684feature map\u4e0eground truth\u7684BCE Loss\n\u5728\u8bba\u6587\u4e2d\uff0c\u6bcf\u4e2a\u635f\u5931\u9879\u7684\u6743\u91cd\u90fd\u4e3a1"),(0,m.kt)("p",null,"canny\u8fb9\u7f18\u68c0\u6d4b\uff1a"),(0,m.kt)("ol",null,(0,m.kt)("li",{parentName:"ol"},"\u4f7f\u7528\u9ad8\u65af\u6ee4\u6ce2\u8fdb\u884c\u5e73\u6ed1"),(0,m.kt)("li",{parentName:"ol"},"\u8ba1\u7b97\u50cf\u7d20\u68af\u5ea6"),(0,m.kt)("li",{parentName:"ol"},"\u975e\u6781\u5927\u503c\u6291\u5236"),(0,m.kt)("li",{parentName:"ol"},"\u53cc\u9608\u503c\u68c0\u6d4b\u5f3a\u8fb9\u7f18\u3001\u5f31\u8fb9\u7f18"),(0,m.kt)("li",{parentName:"ol"},"\u8fb9\u7f18\u8fde\u63a5")),(0,m.kt)("h3",{id:"\u56db\u6df1\u5ea6\u53ef\u5206\u79bb\u5377\u79ef"},"\uff08\u56db\uff09\u6df1\u5ea6\u53ef\u5206\u79bb\u5377\u79ef"),(0,m.kt)("p",null,"\u6df1\u5ea6\u53ef\u5206\u79bb\u5377\u79ef\u7684\u4f18\u70b9\u662f\u53ef\u4ee5\u5728\u5927\u81f4\u4fdd\u6301\u5377\u79ef\u6548\u679c\u7684\u60c5\u51b5\u4e0b\u51cf\u5c11\u53c2\u6570\u91cf"),(0,m.kt)("p",null,"\u5728\u5b9e\u73b0\u539f\u7406\u4e0a\u53ef\u5206\u4e3a\u4e24\u4e2a\u6b65\u9aa4\uff1a\u6df1\u5ea6\u5377\u79ef\uff08depth wise\uff09\u4ee5\u53ca\u9010\u70b9\uff08point wise\uff09\u5377\u79ef"),(0,m.kt)("p",null,"\u6df1\u5ea6\u5377\u79ef\u662f\u4e00\u79cd\u5728\u6bcf\u4e2a\u8f93\u5165\u901a\u9053\u4e0a\u5206\u522b\u8fdb\u884c\u5377\u79ef\u64cd\u4f5c\u7684\u5377\u79ef\u65b9\u6cd5\uff0c\u6bcf\u4e2a\u8f93\u5165\u901a\u9053\u53ea\u4e0e\u5bf9\u5e94\u7684\u5377\u79ef\u6838\u8fdb\u884c\u5377\u79ef\u3002"),(0,m.kt)("p",null,"\u9010\u70b9\u5377\u79ef\u901a\u8fc7\u4f7f\u7528",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mn",{parentName:"mrow"},"1"),(0,m.kt)("mo",{parentName:"mrow"},"\xd7"),(0,m.kt)("mn",{parentName:"mrow"},"1")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"1 \\times 1")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.7278em",verticalAlign:"-0.0833em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"1"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"\xd7"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6444em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"1"))))),"\u5377\u79ef\u5bf9\u6df1\u5ea6\u5377\u79ef\u7684\u7ed3\u679c\u518d\u6b21\u5377\u79ef"),(0,m.kt)("h2",{id:"\u4e8cyolo"},"\u4e8c\u3001YOLO"),(0,m.kt)("h3",{id:"\u4e00map"},"\uff08\u4e00\uff09mAP"),(0,m.kt)("p",null,"PR\u66f2\u7ebf\u6240\u56f4\u6210\u7684\u9762\u79ef\u5373\u4f7f\u8be5\u7c7b\u7684AP\u503c"),(0,m.kt)("p",null,(0,m.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora/imagesimage-20230618120734230.png",alt:"image-20230618120734230"})),(0,m.kt)("h3",{id:"\u4e8cyolov1"},"\uff08\u4e8c\uff09YOLOv1"),(0,m.kt)("admonition",{type:"tip"},(0,m.kt)("p",{parentName:"admonition"},"\u53c2\u8003\u8d44\u6599\uff1a",(0,m.kt)("a",{parentName:"p",href:"https://www.bilibili.com/video/BV15w411Z7LG?p=4&vd_source=24d8fcf68bc0e2b0003defe0995cf533"},"\u3010\u7cbe\u8bfbAI\u8bba\u6587\u3011YOLO V1\u76ee\u6807\u68c0\u6d4b\uff0c\u770b\u6211\u5c31\u591f\u4e86"))),(0,m.kt)("h4",{id:"1\u9884\u6d4b\u9636\u6bb5"},"1.\u9884\u6d4b\u9636\u6bb5"),(0,m.kt)("p",null,"\u4e0b\u56fe\u4e3aYOLOv1\u7684\u7b97\u6cd5\u6846\u67b6"),(0,m.kt)("p",null,(0,m.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora/imagesimage-20230618122157583.png",alt:"image-20230618122157583"})),(0,m.kt)("p",null,"\u4e0b\u56fe\u4e3aYOLOv1\u7684\u7f51\u7edc\u7ed3\u6784"),(0,m.kt)("p",null,(0,m.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora/imagesimage-20230618122438429.png",alt:"image-20230618122438429"})),(0,m.kt)("p",null,"\u8f93\u5165","[448, 448, 3]","\u56fe\u50cf\uff0c\u8f93\u51fa","[7, 7, 30]","\u7684tensor\uff08\u5305\u542b\u6240\u6709\u9884\u6d4b\u6846\u7684\u5750\u6807\u3001\u7f6e\u4fe1\u5ea6\u548c\u7c7b\u522b\u7ed3\u679c\uff09\uff0c\u901a\u8fc7\u89e3\u6790\u8f93\u51fa\u7684tensor\u5f97\u5230\u9884\u6d4b\u7ed3\u679c"),(0,m.kt)("p",null,(0,m.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora/imagesimage-20230618122634451.png",alt:"image-20230618122634451"})),(0,m.kt)("p",null,"\u9996\u5148\u5c06\u8f93\u5165\u56fe\u7247\u5212\u5206\u4e3a",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"S"),(0,m.kt)("mo",{parentName:"mrow"},"\xd7"),(0,m.kt)("mi",{parentName:"mrow"},"S")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"S \\times S")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.7667em",verticalAlign:"-0.0833em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05764em"}},"S"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"\xd7"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6833em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05764em"}},"S"))))),"\u4e2agrid cell\u3002\u5728YOLOv1\u4e2d",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"S"),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("mn",{parentName:"mrow"},"7")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"S=7")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6833em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05764em"}},"S"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"="),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6444em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"7")))))),(0,m.kt)("p",null,"\u6bcf\u4e2agrid cell\u9884\u6d4b\u51fa",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"B")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"B")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6833em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05017em"}},"B"))))),"\u4e2abounding box\u9884\u6d4b\u6846\uff08bbox\uff09\uff0c\u6bcf\u4e2abbox\u7684\u4e2d\u5fc3\u70b9\u90fd\u843d\u5728\u8be5grid cell\u4e2d\u3002\u5728YOLOv1\u4e2d",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"B"),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("mn",{parentName:"mrow"},"2")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"B=2")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6833em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05017em"}},"B"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"="),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6444em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"2")))))),(0,m.kt)("p",null,"\u6bcf\u4e2abbox\u5305\u542b(x, y, h, w, c)\u4e94\u79cd\u4fe1\u606f\uff0c\u5176\u4e2dx, y\u4e3abbox\u5de6\u4e0a\u89d2\u5750\u6807\uff0ch, w\u4e3abbox\u7684\u5bbd\u9ad8\uff0cc\u4e3a\u8be5bbox\u662f\u5426\u5b58\u5728object\u7684\u6982\u7387"),(0,m.kt)("p",null,"\u540c\u65f6\u6bcf\u4e2agrid cell\u9884\u6d4b\u51fa\u4e00\u7ec4\u4e0e\u6570\u636e\u96c6\u6709\u5173\u7684\u6761\u4ef6\u7c7b\u522b\u6982\u7387\u3002\u5728YOLOv1\u8bba\u6587\u4f7f\u7528\u7684\u6570\u636e\u96c6Pascal VOC\u4e2d\uff0c\u7c7b\u522b\u79cd\u7c7b\u4e3a20\u7c7b\uff0c\u56e0\u6b64\u5728\u9884\u6d4b\u9636\u6bb5\u8f93\u51fa\u7684","[7, 7, 30]","\u7684tensor\u542b\u4e49\u5982\u4e0b\u56fe\u6240\u793a"),(0,m.kt)("p",null,"\u6bcf\u4e2agrid cell\u9009\u51fa\u6761\u4ef6\u7c7b\u522b\u6982\u7387\u6700\u5927\u7684\u7c7b\u522b\uff0c\u56e0\u6b64\u6bcf\u4e2agrid cell\u53ea\u80fd\u68c0\u6d4b\u4e00\u4e2a\u7269\u4f53"),(0,m.kt)("admonition",{type:"tip"},(0,m.kt)("p",{parentName:"admonition"},"\u8fd9\u4e5f\u662fYOLOv1\u5c0f\u76ee\u6807\u548c\u5bc6\u96c6\u76ee\u6807\u8bc6\u522b\u80fd\u529b\u5dee\u7684\u539f\u56e0")),(0,m.kt)("p",null,(0,m.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/windows_typora/image-20230708094841128.png",alt:"image-20230708094841128"})),(0,m.kt)("p",null,"\u6bcf\u4e2abbox\u7684\u7f6e\u4fe1\u5ea6\u4e0e\u5176\u7236grid cell\u7684\u7c7b\u522b\u6982\u7387\u76f8\u4e58\u5f97\u5230\u5168\u6982\u7387\uff0c\u5982\u4e0b\u56fe\u6240\u793a"),(0,m.kt)("p",null,(0,m.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/windows_typora/image-20230708100637488.png",alt:"image-20230708100637488"})),(0,m.kt)("p",null,"\u8fdb\u884cNMS\u540e\u5904\u7406\uff1a"),(0,m.kt)("ol",null,(0,m.kt)("li",{parentName:"ol"},"\u5bf9\u67d0\u4e00\u7279\u5b9a\u7c7b\u522b\uff0c\u9996\u5148\u6839\u636e\u5168\u6982\u7387\u7f6e\u4fe1\u5ea6\u6392\u5e8f"),(0,m.kt)("li",{parentName:"ol"},"\u5c06\u6b64\u65f6\u6700\u5927\u7f6e\u4fe1\u5ea6\u7684bbox\u4e0e\u5176\u4ed6\u6240\u6709\u7f6e\u4fe1\u5ea6\u66f4\u5c0f\u7684bbox\u505aIoU\u5224\u65ad\uff0c\u82e5IoU\u5927\u4e8e\u8bbe\u7f6e\u7684\u9608\u503c\uff0c\u5219\u62b9\u9664\u7f6e\u4fe1\u5ea6\u5c0f\u7684bbox"),(0,m.kt)("li",{parentName:"ol"},"\u5c06\u5269\u4f59\u7684\u6b21\u5927\u7684\u7f6e\u4fe1\u5ea6\u91cd\u590d\u6b65\u9aa42\uff0c\u62b9\u9664\u6240\u6709\u7f6e\u4fe1\u5ea6\u66f4\u5c0f\u7684\u5176IoU\u8d85\u8fc7\u9608\u503c\u7684bbox")),(0,m.kt)("admonition",{type:"tip"},(0,m.kt)("p",{parentName:"admonition"},"\u975e\u6781\u5927\u503c\u6291\u5236\u53ea\u5728\u9884\u6d4b\u9636\u6bb5\u8fdb\u884c"),(0,m.kt)("p",{parentName:"admonition"},"\u5728\u8bad\u7ec3\u9636\u6bb5\uff0c\u6240\u6709bbox\u90fd\u4f1a\u5728Loss Function\u4e2d\u8d77\u5230\u66f4\u65b0\u7684\u4f5c\u7528\uff0c\u56e0\u6b64\u4e0d\u8fdb\u884cNMS")),(0,m.kt)("h4",{id:"2-\u8bad\u7ec3\u8fc7\u7a0b\u7684\u635f\u5931\u51fd\u6570"},"2. \u8bad\u7ec3\u8fc7\u7a0b\u7684\u635f\u5931\u51fd\u6570"),(0,m.kt)("p",null,(0,m.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora/imagesimage-20230618135151404.png",alt:"image-20230618135151404"})),(0,m.kt)("h3",{id:"\u4e8cyolov2"},"\uff08\u4e8c\uff09YOLOv2"),(0,m.kt)("h4",{id:"1-bn\u5c42"},"1. BN\u5c42"),(0,m.kt)("p",null,(0,m.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/windows_typora/image-20230711101245141.png",alt:"image-20230711101245141"})),(0,m.kt)("h4",{id:"2-\u9ad8\u5206\u8fa8\u7387\u8bad\u7ec3"},"2. \u9ad8\u5206\u8fa8\u7387\u8bad\u7ec3"),(0,m.kt)("h4",{id:"3-anchor"},"3. Anchor"),(0,m.kt)("p",null,"YOLOv2\u5f15\u5165\u4e86anchor\u673a\u5236\u4ee3\u66ffbbox\uff0c\u5c06\u56fe\u50cf\u5212\u5206\u4e3a",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mn",{parentName:"mrow"},"13"),(0,m.kt)("mo",{parentName:"mrow"},"\xd7"),(0,m.kt)("mn",{parentName:"mrow"},"13")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"13 \\times 13")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.7278em",verticalAlign:"-0.0833em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"13"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"\xd7"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6444em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"13"))))),"\u4e2agrid cell\uff0c\u6bcf\u4e2agrid cell\u751f\u62105\u4e2aanchor"),(0,m.kt)("p",null,"anchor\u662f\u901a\u8fc7k-means\u805a\u7c7b\u5728\u6570\u636e\u96c6\u4e0a\u751f\u6210\u7684\u4e0d\u540c\u5c3a\u5bf8\u7684\u5148\u9a8c\u6846\n\u5bf9\u6570\u636e\u96c6\u8fdb\u884canchor\u5bbd\u9ad8\u6bd4\u7684\u805a\u7c7b\uff0c\u805a\u7c7b\u6570\u8d8a\u5927\uff0c\u8986\u76d6\u7684IoU\u8d8a\u5927\uff0c\u4f46\u540c\u65f6\u6a21\u578b\u4e5f\u66f4\u590d\u6742"),(0,m.kt)("h3",{id:"\u4e09yolov5"},"\uff08\u4e09\uff09YOLOv5"),(0,m.kt)("h4",{id:"1-\u7279\u5f81\u878d\u5408"},"1. \u7279\u5f81\u878d\u5408"),(0,m.kt)("p",null,"YOLOv5\u4f7f\u7528CSPNet\u5b9e\u73b0\u7279\u5f81\u878d\u5408\uff0cCSP\u6a21\u5757\u7531\u4e3b\u5e72\u548c\u5206\u652f\u6784\u6210\uff0c\u4e3b\u5e72\u63d0\u53d6\u4f4e\u7ef4\u7279\u5f81\uff0c\u5206\u652f\u63d0\u53d6\u9ad8\u7ef4\u7279\u5f81"),(0,m.kt)("p",null,"\u4e3b\u5e72\u901a\u8fc7\u5377\u79ef\u548c\u6c60\u5316\u63d0\u53d6\u7279\u5f81\uff0c\u5f62\u6210\u4e0d\u540c\u5c3a\u5bf8\u7684\u7279\u5f81\u56fe"),(0,m.kt)("p",null,"\u5206\u652f\u5c06\u4e3b\u5e72\u8f93\u51fa\u7684\u7279\u5f81\u56fe\u4f5c\u4e3a\u8f93\u5165\uff0c\u9010\u6b65\u5377\u79ef\u548c\u4e0a\u91c7\u6837\u63d0\u53d6\u9ad8\u7ea7\u522b\u8bed\u4e49\u7279\u5f81"),(0,m.kt)("p",null,"\u4e3b\u5e72\u7279\u5f81\u56fe\u901a\u8fc7\u5377\u79ef\u5bf9\u901a\u9053\u6570\u964d\u7ef4\u4e4b\u540e\u4e0e\u5206\u652f\u5728\u901a\u9053\u7ef4\u5ea6\u4e0aconcat"),(0,m.kt)("admonition",{type:"tip"},(0,m.kt)("p",{parentName:"admonition"},"\u5728\u7279\u5f81\u63d0\u53d6\u4ee5\u53ca\u878d\u5408\u9636\u6bb5\u53ef\u4ee5\u52a0\u5165Canny\u8fb9\u7f18\u68c0\u6d4b\u5f97\u5230\u7684\u7279\u5f81\u56fe\u8fdb\u884c\u7279\u5f81\u878d\u5408")),(0,m.kt)("h4",{id:"2-\u524d\u5904\u7406"},"2. \u524d\u5904\u7406"),(0,m.kt)("p",null,"\u5bf9\u586b\u5145\u9ed1\u8272\u50cf\u7d20\u8fdb\u884c\u4e86\u6539\u5584\uff0c\u4ee5\u586b\u5145\u66f4\u5c11\u7684\u9ed1\u50cf\u7d20\uff0c\u63d0\u9ad8\u4e86\u7cbe\u5ea6"),(0,m.kt)("h4",{id:"3-\u7279\u5f81\u91d1\u5b57\u5854fcn"},"3. \u7279\u5f81\u91d1\u5b57\u5854FCN"),(0,m.kt)("h2",{id:"\u4e09cbam"},"\u4e09\u3001CBAM"),(0,m.kt)("admonition",{type:"tip"},(0,m.kt)("p",{parentName:"admonition"},"\u6709\u5173CSP\u7279\u5f81\u878d\u5408\u53ef\u4ee5\u53c2\u8003\uff1a",(0,m.kt)("a",{parentName:"p",href:"https://blog.csdn.net/weixin_55073640/article/details/122614176"},"https://blog.csdn.net/weixin_55073640/article/details/122614176"))),(0,m.kt)("p",null,"CBAM\u662f\u901a\u9053+\u7a7a\u95f4\u6ce8\u610f\u529b\u673a\u5236\uff08SENet\u662f\u901a\u9053\u6ce8\u610f\u529b\u673a\u5236\uff09"),(0,m.kt)("h3",{id:"\u4e00\u603b\u4f53\u7ed3\u6784"},"\uff08\u4e00\uff09\u603b\u4f53\u7ed3\u6784"),(0,m.kt)("p",null,(0,m.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/windows_typora/image-20230710234929290.png",alt:"image-20230710234929290"})),(0,m.kt)("p",null,"\u901a\u9053\u6ce8\u610f\u529b\uff1a\u539f\u59cb\u7279\u5f81\u56fe",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"["),(0,m.kt)("mi",{parentName:"mrow"},"b"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"c"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"h"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"w"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"]")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"[b, c, h, w]")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mopen"},"["),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"b"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"c"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"h"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02691em"}},"w"),(0,m.kt)("span",{parentName:"span",className:"mclose"},"]"))))),"\u7ecf\u8fc7\u901a\u9053\u6ce8\u610f\u529b\u673a\u5236\u7b97\u6cd5\u5f97\u5230",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"["),(0,m.kt)("mi",{parentName:"mrow"},"b"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"c"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mn",{parentName:"mrow"},"1"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mn",{parentName:"mrow"},"1"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"]")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"[b, c, 1, 1]")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mopen"},"["),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"b"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"c"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"1"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"1"),(0,m.kt)("span",{parentName:"span",className:"mclose"},"]"))))),"\u7684tensor\uff0c\u4ee3\u8868\u4e0d\u540c\u901a\u9053\u4e4b\u95f4\u7684\u91cd\u8981\u7a0b\u5ea6\uff0c\u5c06\u5176\u4e0e\u539f\u59cb\u7279\u5f81\u56fe\u76f8\u4e58"),(0,m.kt)("p",null,"\u7a7a\u95f4\u6ce8\u610f\u529b\uff1a\u7ecf\u8fc7\u901a\u9053\u6ce8\u610f\u529b\u7684\u7279\u5f81\u56fe",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"["),(0,m.kt)("mi",{parentName:"mrow"},"b"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"c"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"h"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"w"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"]")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"[b, c, h, w]")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mopen"},"["),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"b"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"c"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"h"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02691em"}},"w"),(0,m.kt)("span",{parentName:"span",className:"mclose"},"]"))))),"\u7ecf\u8fc7\u7a7a\u95f4\u6ce8\u610f\u529b\u673a\u5236\u7b97\u6cd5\u5f97\u5230",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"["),(0,m.kt)("mi",{parentName:"mrow"},"b"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mn",{parentName:"mrow"},"1"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"h"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"w"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"]")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"[b, 1, h, w]")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mopen"},"["),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"b"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"1"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"h"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02691em"}},"w"),(0,m.kt)("span",{parentName:"span",className:"mclose"},"]"))))),"\u7684tensor\uff0c\u4ee3\u8868\u5bbd\u9ad8\u7ef4\u5ea6\u7684\u50cf\u7d20\u4e4b\u95f4\u7684\u91cd\u8981\u7a0b\u5ea6\uff0c\u5c06\u5176\u4e0e\u539f\u59cb\u7279\u5f81\u56fe\u76f8\u4e58"),(0,m.kt)("h3",{id:"\u4e8c\u901a\u9053\u6ce8\u610f\u529b"},"\uff08\u4e8c\uff09\u901a\u9053\u6ce8\u610f\u529b"),(0,m.kt)("p",null,(0,m.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/windows_typora/image-20230710235658595.png",alt:"image-20230710235658595"})),(0,m.kt)("p",null,"\u539f\u59cb\u7279\u5f81\u56fe",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"["),(0,m.kt)("mi",{parentName:"mrow"},"b"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"c"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"h"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"w"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"]")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"[b, c, h, w]")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mopen"},"["),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"b"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"c"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"h"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02691em"}},"w"),(0,m.kt)("span",{parentName:"span",className:"mclose"},"]"))))),"\u5206\u522b\u7ecf\u8fc7\u6700\u5927\u6c60\u5316\u548c\u5e73\u5747\u6c60\u5316\u6765\u538b\u7f29\u7a7a\u95f4\u7ef4\u5ea6\u3001\u5b66\u4e60\u901a\u9053\u4e4b\u95f4\u7684\u7279\u5f81\uff0c\u5f97\u5230",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"["),(0,m.kt)("mi",{parentName:"mrow"},"b"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"c"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mn",{parentName:"mrow"},"1"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mn",{parentName:"mrow"},"1"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"]")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"[b, c, 1, 1]")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mopen"},"["),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"b"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"c"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"1"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"1"),(0,m.kt)("span",{parentName:"span",className:"mclose"},"]"))))),"\u7684tensor\uff0c\u518d\u9001\u5165\u5171\u4eab\u7684\u591a\u5c42\u611f\u77e5\u673a\u7f51\u7edc\u8fdb\u884c\u964d\u7ef4\u518d\u5347\u7ef4\uff0c\u6700\u540e\u5c06\u4e8c\u8005\u76f8\u52a0\u518d\u7ecf\u8fc7sigmoid\u51fd\u6570\u4ea7\u751f\u6700\u7ec8\u7684\u901a\u9053\u6ce8\u610f\u529b\u7279\u5f81\u56fe"),(0,m.kt)("h3",{id:"\u4e09\u7a7a\u95f4\u6ce8\u610f\u529b"},"\uff08\u4e09\uff09\u7a7a\u95f4\u6ce8\u610f\u529b"),(0,m.kt)("p",null,(0,m.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/windows_typora/image-20230710235603737.png",alt:"image-20230710235603737"})),(0,m.kt)("p",null,"\u539f\u59cb\u7279\u5f81\u56fe",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"["),(0,m.kt)("mi",{parentName:"mrow"},"b"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"c"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"h"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"w"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"]")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"[b, c, h, w]")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mopen"},"["),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"b"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"c"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"h"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02691em"}},"w"),(0,m.kt)("span",{parentName:"span",className:"mclose"},"]"))))),"\u5206\u522b\u7ecf\u8fc7\u6700\u5927\u6c60\u5316\u548c\u5e73\u5747\u6c60\u5316\uff08\u901a\u8fc7torch.max\u548ctorch.mean\u51fd\u6570\u5b9e\u73b0\uff09\u5f97\u5230",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"["),(0,m.kt)("mi",{parentName:"mrow"},"b"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mn",{parentName:"mrow"},"1"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"h"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"w"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"]")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"[b, 1, h, w]")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mopen"},"["),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"b"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"1"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"h"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02691em"}},"w"),(0,m.kt)("span",{parentName:"span",className:"mclose"},"]"))))),"\u7684tensor\uff0c\u518d\u5c06\u4e8c\u8005concat\u540e\u901a\u8fc7",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mn",{parentName:"mrow"},"7"),(0,m.kt)("mo",{parentName:"mrow"},"\xd7"),(0,m.kt)("mn",{parentName:"mrow"},"7")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"7 \\times 7")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.7278em",verticalAlign:"-0.0833em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"7"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"\xd7"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6444em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"7"))))),"\u5377\u79ef\u5b66\u4e60\u7279\u5f81\u5e76\u964d\u7ef4\uff0c\u6700\u540e\u9001\u5165sigmoid\u51fd\u6570\u5f97\u5230\u6700\u7ec8\u7684\u7a7a\u95f4\u6ce8\u610f\u529b\u7279\u5f81\u56fe"),(0,m.kt)("h3",{id:"\u56db\u5176\u4ed6\u6ce8\u610f\u4e8b\u9879"},"\uff08\u56db\uff09\u5176\u4ed6\u6ce8\u610f\u4e8b\u9879"),(0,m.kt)("ol",null,(0,m.kt)("li",{parentName:"ol"},"\u4f5c\u8005\u5206\u522b\u5bf9\u901a\u9053\u6ce8\u610f\u529b\u4ee5\u53ca\u7a7a\u95f4\u6ce8\u610f\u529b\u4f7f\u7528\u6700\u5927\u6c60\u5316\u8fd8\u662f\u5e73\u5747\u6c60\u5316\u505a\u4e86\u6d88\u878d\u5b9e\u9a8c\uff0c\u7ed3\u679c\u53cd\u6620\u4e8c\u8005\u90fd\u7528\u6700\u5927\u6c60\u5316\u4ee5\u53ca\u5e73\u5747\u6c60\u5316\u518d\u76f8\u52a0\u6548\u679c\u6700\u597d\uff08\u4e14\u5bf9\u4e8e",(0,m.kt)("span",{parentName:"li",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mn",{parentName:"mrow"},"7"),(0,m.kt)("mo",{parentName:"mrow"},"\xd7"),(0,m.kt)("mn",{parentName:"mrow"},"7")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"7 \\times 7")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.7278em",verticalAlign:"-0.0833em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"7"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"\xd7"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6444em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"7"))))),"\u5377\u79ef\u4e0e",(0,m.kt)("span",{parentName:"li",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mn",{parentName:"mrow"},"3"),(0,m.kt)("mo",{parentName:"mrow"},"\xd7"),(0,m.kt)("mn",{parentName:"mrow"},"3")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"3 \\times 3")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.7278em",verticalAlign:"-0.0833em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"3"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"\xd7"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6444em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"3"))))),"\u5377\u79ef\u7684\u6d88\u878d\u5b9e\u9a8c\u53d1\u73b0\uff0c",(0,m.kt)("span",{parentName:"li",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mn",{parentName:"mrow"},"7"),(0,m.kt)("mo",{parentName:"mrow"},"\xd7"),(0,m.kt)("mn",{parentName:"mrow"},"7")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"7 \\times 7")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.7278em",verticalAlign:"-0.0833em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"7"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"\xd7"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6444em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"7"))))),"\u5377\u79ef\u6548\u679c\u66f4\u597d\uff09"),(0,m.kt)("li",{parentName:"ol"},"\u4f5c\u8005\u5bf9\u5148\u901a\u9053\u6ce8\u610f\u529b\u8fd8\u662f\u5148\u7a7a\u95f4\u6ce8\u610f\u529b\u505a\u4e86\u6d88\u878d\u5b9e\u9a8c\uff0c\u7ed3\u679c\u53d1\u73b0\u5148\u901a\u9053\u518d\u7a7a\u95f4\u6548\u679c\u66f4\u597d")),(0,m.kt)("h2",{id:"\u56dbfocal-loss"},"\u56db\u3001Focal Loss"),(0,m.kt)("p",null,"Focal Loss\u901a\u8fc7\u5f15\u5165\u4fee\u6b63\u9879\u548c\u6837\u672c\u5173\u6ce8\u5ea6\u8d85\u53c2\u6570\uff0c\u589e\u52a0\u56f0\u96be\u6837\u672c\u7684\u5173\u6ce8\u5ea6\uff0c\u6765\u89e3\u51b3\u7c7b\u522b\u4e0d\u5747\u8861\u95ee\u9898\u3002"),(0,m.kt)("p",null,(0,m.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora/imagesimage-20230618135151404.png",alt:"image-20230618135151404"})),(0,m.kt)("p",null,"YOLO\u635f\u5931\u51fd\u6570\u5206\u4e3a\u5206\u7c7b\u635f\u5931\u4ee5\u53ca\u56de\u5f52\u635f\u5931\uff0c\u53ef\u4ee5\u5728\u5206\u7c7b\u635f\u5931\u4e2d\u5f15\u5165Focal Loss\u4ee3\u66ff\u539f\u6765\u7684\u4ea4\u53c9\u71b5\u635f\u5931"),(0,m.kt)("h2",{id:"\u4e94senet"},"\u4e94\u3001SENet"),(0,m.kt)("p",null,(0,m.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/windows_typora/image-20230711091505462.png",alt:"image-20230711091505462"})),(0,m.kt)("p",null,"Squeeze and Excitation"),(0,m.kt)("p",null,"Squeeze\u6324\u538b\u64cd\u4f5c\u5c31\u662f\u5c06",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"["),(0,m.kt)("mi",{parentName:"mrow"},"b"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"c"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"h"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"w"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"]")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"[b, c, h, w]")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mopen"},"["),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"b"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"c"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"h"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02691em"}},"w"),(0,m.kt)("span",{parentName:"span",className:"mclose"},"]"))))),"\u7684\u7279\u5f81\u56fe\u901a\u8fc7\u6c60\u5316\u6324\u538b\u5bbd\u9ad8\u7ef4\u5ea6\uff0c\u5f97\u5230",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"["),(0,m.kt)("mi",{parentName:"mrow"},"b"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"c"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mn",{parentName:"mrow"},"1"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mn",{parentName:"mrow"},"1"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"]")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"[b, c, 1, 1]")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mopen"},"["),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"b"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"c"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"1"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"1"),(0,m.kt)("span",{parentName:"span",className:"mclose"},"]"))))),"\u7684tensor\uff0c\u8be5tensor\u8fd8\u8981\u7ecf\u8fc7\u6240\u793a\u7684\u5168\u8fde\u63a5\u5c42-ReLU-\u5168\u8fde\u63a5\u5c42\u7ed3\u6784"),(0,m.kt)("p",null,"Excitation\u6fc0\u52b1\u64cd\u4f5c\u5c31\u662f\u901a\u8fc7sigmoid\u51fd\u6570\u5f97\u5230\u6bcf\u4e2a\u901a\u9053\u4e4b\u95f4\u7684\u91cd\u8981\u7a0b\u5ea6\u7cfb\u6570"),(0,m.kt)("h2",{id:"\u516d\u81ea\u6ce8\u610f\u529b\u673a\u5236"},"\u516d\u3001\u81ea\u6ce8\u610f\u529b\u673a\u5236"),(0,m.kt)("p",null,"\u81ea\u6ce8\u610f\u529b\u673a\u5236\u901a\u8fc7\u8ba1\u7b97\u5143\u7d20\u4e4b\u95f4\u7684\u76f8\u4f3c\u5ea6\u6765\u786e\u5b9a\u5b83\u4eec\u4e4b\u95f4\u7684\u5173\u8054\u6027\uff0c\u5e76\u5bf9\u5176\u8fdb\u884c\u52a0\u6743\u5904\u7406\u4ee5\u83b7\u5f97\u4e0a\u4e0b\u6587\u4fe1\u606f\u3002"),(0,m.kt)("ul",null,(0,m.kt)("li",{parentName:"ul"},"\u81ea\u6ce8\u610f\u529b\u673a\u5236\u901a\u8fc7\u5bf9\u8f93\u5165\u7684\u5143\u7d20\u8fdb\u884c",(0,m.kt)("strong",{parentName:"li"},"\u7ebf\u6027\u53d8\u6362"),"\u6765\u5f97\u5230",(0,m.kt)("strong",{parentName:"li"},"\u67e5\u8be2\uff08Query\uff09\u5411\u91cf"),"\u3001",(0,m.kt)("strong",{parentName:"li"},"\u952e\uff08Key\uff09\u5411\u91cf"),"\u548c",(0,m.kt)("strong",{parentName:"li"},"\u503c\uff08Value\uff09\u5411\u91cf"),"\u3002"),(0,m.kt)("li",{parentName:"ul"},"\u901a\u8fc7\u70b9\u79ef\u548c\u7f29\u653e\u70b9\u79ef\u8ba1\u7b97\u76f8\u4f3c\u7a0b\u5ea6")),(0,m.kt)("p",null,"\u901a\u8fc7\u81ea\u6ce8\u610f\u529b\u673a\u5236\uff0c\u6bcf\u4e2a\u5143\u7d20\u90fd\u53ef\u4ee5\u901a\u8fc7\u4e0e\u5176\u4ed6\u5143\u7d20\u7684\u76f8\u4f3c\u5ea6\u8ba1\u7b97\u548c\u52a0\u6743\u6c42\u548c\uff0c\u83b7\u53d6\u5230\u4e0e\u5b83\u4eec\u76f8\u5173\u7684\u4e0a\u4e0b\u6587\u4fe1\u606f\u3002\u76f8\u4f3c\u5ea6\u9ad8\u7684\u5143\u7d20\u5c06\u83b7\u5f97\u66f4\u9ad8\u7684\u6743\u91cd\uff0c\u56e0\u6b64\u66f4\u53d7\u5230\u5173\u6ce8\u548c\u5f71\u54cd\uff0c\u4ece\u800c\u5efa\u7acb\u8d77\u5143\u7d20\u4e4b\u95f4\u7684\u5173\u8054\u6027\u3002"),(0,m.kt)("h2",{id:"\u4e03\u81ea\u6211\u4ecb\u7ecd"},"\u4e03\u3001\u81ea\u6211\u4ecb\u7ecd"),(0,m.kt)("h3",{id:"\u4e00\u82f1\u6587\u81ea\u6211\u4ecb\u7ecd"},"\uff08\u4e00\uff09\u82f1\u6587\u81ea\u6211\u4ecb\u7ecd"),(0,m.kt)("p",null,"This content has been encrypted."),(0,m.kt)("h3",{id:"\u4e8c\u897f\u7535\u5e7f\u7814\u9662\u81ea\u6211\u4ecb\u7ecd"},"\uff08\u4e8c\uff09\u897f\u7535\u5e7f\u7814\u9662\u81ea\u6211\u4ecb\u7ecd"),(0,m.kt)("h4",{id:"1-\u82f1\u6587\u81ea\u6211\u4ecb\u7ecd"},"1. \u82f1\u6587\u81ea\u6211\u4ecb\u7ecd"),(0,m.kt)("p",null,"This content has been encrypted."),(0,m.kt)("h4",{id:"2-\u4e2d\u6587\u81ea\u6211\u4ecb\u7ecd"},"2. \u4e2d\u6587\u81ea\u6211\u4ecb\u7ecd"),(0,m.kt)("p",null,"This content has been encrypted."),(0,m.kt)("h3",{id:"\u4e09\u7535\u5b50\u79d1\u6280\u5927\u5b66\u81ea\u6211\u4ecb\u7ecd"},"\uff08\u4e09\uff09\u7535\u5b50\u79d1\u6280\u5927\u5b66\u81ea\u6211\u4ecb\u7ecd"),(0,m.kt)("h4",{id:"1-\u82f1\u6587\u81ea\u6211\u4ecb\u7ecd-1"},"1. \u82f1\u6587\u81ea\u6211\u4ecb\u7ecd"),(0,m.kt)("p",null,"This content has been encrypted."),(0,m.kt)("h4",{id:"2-\u4e2d\u6587\u81ea\u6211\u4ecb\u7ecd-1"},"2. \u4e2d\u6587\u81ea\u6211\u4ecb\u7ecd"),(0,m.kt)("p",null,"This content has been encrypted."))}c.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/e106d379.c75df834.js b/assets/js/e106d379.c75df834.js new file mode 100644 index 000000000..f53702168 --- /dev/null +++ b/assets/js/e106d379.c75df834.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunknpy_notebook=self.webpackChunknpy_notebook||[]).push([[1646],{3905:(e,t,r)=>{r.d(t,{Zo:()=>c,kt:()=>d});var n=r(7294);function a(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach((function(t){a(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function l(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r,n,a={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}var p=n.createContext({}),s=function(e){var t=n.useContext(p),r=t;return e&&(r="function"==typeof e?e(t):i(i({},t),e)),r},c=function(e){var t=s(e.components);return n.createElement(p.Provider,{value:t},e.children)},u="mdxType",m={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},f=n.forwardRef((function(e,t){var r=e.components,a=e.mdxType,o=e.originalType,p=e.parentName,c=l(e,["components","mdxType","originalType","parentName"]),u=s(r),f=a,d=u["".concat(p,".").concat(f)]||u[f]||m[f]||o;return r?n.createElement(d,i(i({ref:t},c),{},{components:r})):n.createElement(d,i({ref:t},c))}));function d(e,t){var r=arguments,a=t&&t.mdxType;if("string"==typeof e||a){var o=r.length,i=new Array(o);i[0]=f;var l={};for(var p in t)hasOwnProperty.call(t,p)&&(l[p]=t[p]);l.originalType=e,l[u]="string"==typeof e?e:a,i[1]=l;for(var s=2;s<o;s++)i[s]=r[s];return n.createElement.apply(null,i)}return n.createElement.apply(null,r)}f.displayName="MDXCreateElement"},2572:(e,t,r)=>{r.r(t),r.d(t,{assets:()=>p,contentTitle:()=>i,default:()=>m,frontMatter:()=>o,metadata:()=>l,toc:()=>s});var n=r(7462),a=(r(7294),r(3905));const o={},i="\u6302\u8f7dWindows\u78c1\u76d8\u4e3a\u53ea\u8bfb\u6587\u4ef6",l={unversionedId:"Others/Linux/\u95ee\u9898\u89e3\u51b3/\u53cc\u7cfb\u7edf\u6302\u8f7dWindows\u78c1\u76d8\u4e3a\u53ea\u8bfb\u6587\u4ef6",id:"Others/Linux/\u95ee\u9898\u89e3\u51b3/\u53cc\u7cfb\u7edf\u6302\u8f7dWindows\u78c1\u76d8\u4e3a\u53ea\u8bfb\u6587\u4ef6",title:"\u6302\u8f7dWindows\u78c1\u76d8\u4e3a\u53ea\u8bfb\u6587\u4ef6",description:"\u4e00\u3001\u53d1\u751f\u539f\u56e0",source:"@site/docs/Others/2-Linux/\u95ee\u9898\u89e3\u51b3/\u53cc\u7cfb\u7edf\u6302\u8f7dWindows\u78c1\u76d8\u4e3a\u53ea\u8bfb\u6587\u4ef6.md",sourceDirName:"Others/2-Linux/\u95ee\u9898\u89e3\u51b3",slug:"/Others/Linux/\u95ee\u9898\u89e3\u51b3/\u53cc\u7cfb\u7edf\u6302\u8f7dWindows\u78c1\u76d8\u4e3a\u53ea\u8bfb\u6587\u4ef6",permalink:"/docs/Others/Linux/\u95ee\u9898\u89e3\u51b3/\u53cc\u7cfb\u7edf\u6302\u8f7dWindows\u78c1\u76d8\u4e3a\u53ea\u8bfb\u6587\u4ef6",draft:!1,tags:[],version:"current",frontMatter:{},sidebar:"others",previous:{title:"\u5982\u4f55\u8ba9\u4f60\u7684Kde Plasma\u770b\u8d77\u6765\u66f4\u50cfmacOS",permalink:"/docs/Others/Linux/\u5ba2\u5236\u5316/\u5982\u4f55\u8ba9\u4f60\u7684KDE\u770b\u8d77\u6765\u66f4\u50cfmacOS"},next:{title:"\u544a\u793a\u680f",permalink:"/docs/Others/\u535a\u5ba2\u642d\u5efa/\u544a\u793a\u680f"}},p={},s=[{value:"\u4e00\u3001\u53d1\u751f\u539f\u56e0",id:"\u4e00\u53d1\u751f\u539f\u56e0",level:2},{value:"\u4e8c\u3001\u89e3\u51b3\u65b9\u6848",id:"\u4e8c\u89e3\u51b3\u65b9\u6848",level:2}],c={toc:s},u="wrapper";function m(e){let{components:t,...r}=e;return(0,a.kt)(u,(0,n.Z)({},c,r,{components:t,mdxType:"MDXLayout"}),(0,a.kt)("h1",{id:"\u6302\u8f7dwindows\u78c1\u76d8\u4e3a\u53ea\u8bfb\u6587\u4ef6"},"\u6302\u8f7dWindows\u78c1\u76d8\u4e3a\u53ea\u8bfb\u6587\u4ef6"),(0,a.kt)("h2",{id:"\u4e00\u53d1\u751f\u539f\u56e0"},"\u4e00\u3001\u53d1\u751f\u539f\u56e0"),(0,a.kt)("p",null,"\u672a\u77e5\uff0c\u53ef\u80fd\u662f\u7531Windows\u4f11\u7720\u6a21\u5f0f\u5bfc\u81f4"),(0,a.kt)("h2",{id:"\u4e8c\u89e3\u51b3\u65b9\u6848"},"\u4e8c\u3001\u89e3\u51b3\u65b9\u6848"),(0,a.kt)("p",null,"\u4f7f\u7528ntfsfix\u4fee\u590dntfs\u78c1\u76d8"),(0,a.kt)("ol",null,(0,a.kt)("li",{parentName:"ol"},(0,a.kt)("p",{parentName:"li"},"\u5b89\u88c5ntfsfix"),(0,a.kt)("pre",{parentName:"li"},(0,a.kt)("code",{parentName:"pre",className:"language-bash"},"yay -S ntfsfix\n"))),(0,a.kt)("li",{parentName:"ol"},(0,a.kt)("p",{parentName:"li"},"\u67e5\u770b\u95ee\u9898\u5206\u533a"),(0,a.kt)("pre",{parentName:"li"},(0,a.kt)("code",{parentName:"pre",className:"language-bash"},"df -h\n"))),(0,a.kt)("li",{parentName:"ol"},(0,a.kt)("p",{parentName:"li"},"\u4fee\u590d"),(0,a.kt)("pre",{parentName:"li"},(0,a.kt)("code",{parentName:"pre",className:"language-bash"},"sudo ntfsfix /dev/your_partition\n"))),(0,a.kt)("li",{parentName:"ol"},(0,a.kt)("p",{parentName:"li"},"\u91cd\u542f"),(0,a.kt)("pre",{parentName:"li"},(0,a.kt)("code",{parentName:"pre",className:"language-bash"},"reboot\n")))))}m.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/e5f716fd.e327286a.js b/assets/js/e5f716fd.e327286a.js new file mode 100644 index 000000000..e19e01a48 --- /dev/null +++ b/assets/js/e5f716fd.e327286a.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunknpy_notebook=self.webpackChunknpy_notebook||[]).push([[3033],{3905:(e,t,r)=>{r.d(t,{Zo:()=>p,kt:()=>d});var n=r(7294);function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function c(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach((function(t){o(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function a(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var u=n.createContext({}),l=function(e){var t=n.useContext(u),r=t;return e&&(r="function"==typeof e?e(t):c(c({},t),e)),r},p=function(e){var t=l(e.components);return n.createElement(u.Provider,{value:t},e.children)},s="mdxType",m={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},f=n.forwardRef((function(e,t){var r=e.components,o=e.mdxType,i=e.originalType,u=e.parentName,p=a(e,["components","mdxType","originalType","parentName"]),s=l(r),f=o,d=s["".concat(u,".").concat(f)]||s[f]||m[f]||i;return r?n.createElement(d,c(c({ref:t},p),{},{components:r})):n.createElement(d,c({ref:t},p))}));function d(e,t){var r=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var i=r.length,c=new Array(i);c[0]=f;var a={};for(var u in t)hasOwnProperty.call(t,u)&&(a[u]=t[u]);a.originalType=e,a[s]="string"==typeof e?e:o,c[1]=a;for(var l=2;l<i;l++)c[l]=r[l];return n.createElement.apply(null,c)}return n.createElement.apply(null,r)}f.displayName="MDXCreateElement"},3264:(e,t,r)=>{r.r(t),r.d(t,{assets:()=>u,contentTitle:()=>c,default:()=>m,frontMatter:()=>i,metadata:()=>a,toc:()=>l});var n=r(7462),o=(r(7294),r(3905));const i={},c="Welcome",a={unversionedId:"Curriculum/intro",id:"Curriculum/intro",title:"Welcome",description:"\u6b22\u8fce\u6765\u5230\u7b14\u8bb0\u672c\u7684\u8bfe\u7a0b\u5b66\u4e60\u90e8\u5206",source:"@site/docs/Curriculum/1-intro.md",sourceDirName:"Curriculum",slug:"/Curriculum/intro",permalink:"/docs/Curriculum/intro",draft:!1,tags:[],version:"current",sidebarPosition:1,frontMatter:{},sidebar:"curriculum",next:{title:"\u6570\u5b57\u56fe\u50cf\u5904\u7406\u590d\u4e60\u7b14\u8bb0",permalink:"/docs/Curriculum/\u6570\u5b57\u56fe\u50cf\u5904\u7406/Note"}},u={},l=[{value:"\u652f\u6301\u6211\uff01",id:"\u652f\u6301\u6211",level:2}],p={toc:l},s="wrapper";function m(e){let{components:t,...i}=e;return(0,o.kt)(s,(0,n.Z)({},p,i,{components:t,mdxType:"MDXLayout"}),(0,o.kt)("h1",{id:"welcome"},"Welcome"),(0,o.kt)("admonition",{type:"tip"},(0,o.kt)("p",{parentName:"admonition"},"\u6b22\u8fce\u6765\u5230\u7b14\u8bb0\u672c\u7684\u8bfe\u7a0b\u5b66\u4e60\u90e8\u5206")),(0,o.kt)("h2",{id:"\u652f\u6301\u6211"},"\u652f\u6301\u6211\uff01"),(0,o.kt)("p",null,"\u5982\u679c\u53ef\u4ee5\u5e2e\u5230\u4f60\u7684\u8bdd\u5c31\u7ed9\u4e2a\u514d\u8d39\u7684Star\u5427\uff01"),(0,o.kt)("p",null,(0,o.kt)("img",{src:r(9163).Z,width:"2778",height:"2046"})))}m.isMDXComponent=!0},9163:(e,t,r)=>{r.d(t,{Z:()=>n});const n=r.p+"assets/images/intro-822c34cd9b5577b06df8bb0956cdf947.png"}}]); \ No newline at end of file diff --git a/assets/js/e6c11ea8.6a7266c7.js b/assets/js/e6c11ea8.6a7266c7.js new file mode 100644 index 000000000..9275f43e7 --- /dev/null +++ b/assets/js/e6c11ea8.6a7266c7.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunknpy_notebook=self.webpackChunknpy_notebook||[]).push([[2051],{3905:(e,t,n)=>{n.d(t,{Zo:()=>s,kt:()=>k});var r=n(7294);function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function i(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var c=r.createContext({}),p=function(e){var t=r.useContext(c),n=t;return e&&(n="function"==typeof e?e(t):l(l({},t),e)),n},s=function(e){var t=p(e.components);return r.createElement(c.Provider,{value:t},e.children)},u="mdxType",m={inlineCode:"code",wrapper:function(e){var t=e.children;return r.createElement(r.Fragment,{},t)}},d=r.forwardRef((function(e,t){var n=e.components,a=e.mdxType,o=e.originalType,c=e.parentName,s=i(e,["components","mdxType","originalType","parentName"]),u=p(n),d=a,k=u["".concat(c,".").concat(d)]||u[d]||m[d]||o;return n?r.createElement(k,l(l({ref:t},s),{},{components:n})):r.createElement(k,l({ref:t},s))}));function k(e,t){var n=arguments,a=t&&t.mdxType;if("string"==typeof e||a){var o=n.length,l=new Array(o);l[0]=d;var i={};for(var c in t)hasOwnProperty.call(t,c)&&(i[c]=t[c]);i.originalType=e,i[u]="string"==typeof e?e:a,l[1]=i;for(var p=2;p<o;p++)l[p]=n[p];return r.createElement.apply(null,l)}return r.createElement.apply(null,n)}d.displayName="MDXCreateElement"},1999:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>c,contentTitle:()=>l,default:()=>m,frontMatter:()=>o,metadata:()=>i,toc:()=>p});var r=n(7462),a=(n(7294),n(3905));const o={},l="\u5982\u4f55\u8ba9\u4f60\u7684Kde Plasma\u770b\u8d77\u6765\u66f4\u50cfmacOS",i={unversionedId:"Others/Linux/\u5ba2\u5236\u5316/\u5982\u4f55\u8ba9\u4f60\u7684KDE\u770b\u8d77\u6765\u66f4\u50cfmacOS",id:"Others/Linux/\u5ba2\u5236\u5316/\u5982\u4f55\u8ba9\u4f60\u7684KDE\u770b\u8d77\u6765\u66f4\u50cfmacOS",title:"\u5982\u4f55\u8ba9\u4f60\u7684Kde Plasma\u770b\u8d77\u6765\u66f4\u50cfmacOS",description:"\u4e00\u3001latte-dock",source:"@site/docs/Others/2-Linux/\u5ba2\u5236\u5316/\u5982\u4f55\u8ba9\u4f60\u7684KDE\u770b\u8d77\u6765\u66f4\u50cfmacOS.md",sourceDirName:"Others/2-Linux/\u5ba2\u5236\u5316",slug:"/Others/Linux/\u5ba2\u5236\u5316/\u5982\u4f55\u8ba9\u4f60\u7684KDE\u770b\u8d77\u6765\u66f4\u50cfmacOS",permalink:"/docs/Others/Linux/\u5ba2\u5236\u5316/\u5982\u4f55\u8ba9\u4f60\u7684KDE\u770b\u8d77\u6765\u66f4\u50cfmacOS",draft:!1,tags:[],version:"current",frontMatter:{},sidebar:"others",previous:{title:"\u7ec8\u7aef\u4ee3\u7406",permalink:"/docs/Others/Linux/\u5b9e\u7528\u5de5\u5177/\u7ec8\u7aef\u4ee3\u7406"},next:{title:"\u6302\u8f7dWindows\u78c1\u76d8\u4e3a\u53ea\u8bfb\u6587\u4ef6",permalink:"/docs/Others/Linux/\u95ee\u9898\u89e3\u51b3/\u53cc\u7cfb\u7edf\u6302\u8f7dWindows\u78c1\u76d8\u4e3a\u53ea\u8bfb\u6587\u4ef6"}},c={},p=[{value:"\u4e00\u3001latte-dock",id:"\u4e00latte-dock",level:2},{value:"\u4e8c\u3001Kde Plasmoids",id:"\u4e8ckde-plasmoids",level:2}],s={toc:p},u="wrapper";function m(e){let{components:t,...n}=e;return(0,a.kt)(u,(0,r.Z)({},s,n,{components:t,mdxType:"MDXLayout"}),(0,a.kt)("h1",{id:"\u5982\u4f55\u8ba9\u4f60\u7684kde-plasma\u770b\u8d77\u6765\u66f4\u50cfmacos"},"\u5982\u4f55\u8ba9\u4f60\u7684Kde Plasma\u770b\u8d77\u6765\u66f4\u50cfmacOS"),(0,a.kt)("h2",{id:"\u4e00latte-dock"},"\u4e00\u3001latte-dock"),(0,a.kt)("ol",null,(0,a.kt)("li",{parentName:"ol"},"dock\u663e\u793a\u7684\u56fe\u6807\u662f\u5168\u5c40\u56fe\u6807\uff0c\u7a0b\u5e8f\u542f\u52a8\u5668\u7684desktop\u6587\u4ef6\u4f4d\u4e8e/usr/share/applications\u4e2d\uff0c\u5168\u5c40\u4e3b\u9898\u4e2d\u56fe\u6807\u4e3b\u9898\u7684\u7a0b\u5e8flogo\u4f4d\u4e8e",(0,a.kt)("em",{parentName:"li"},"~/.local/share/icons/Mkos-Big-Sur-Night/128x128/apps"),"(",(0,a.kt)("strong",{parentName:"li"},"deppending on specific situation"),")\u4e2d\u3002\u5728logo\u6587\u4ef6\u5939\u4e2d\u6311\u9009\u60f3\u8981\u7684logo\uff0c\u5728desktop\u4e2d\u7684icon\u4f4d\u7f6e\u4fee\u6539\u5373\u53ef"),(0,a.kt)("li",{parentName:"ol"},"\u5e94\u7528\u66f4\u65b0\u7684\u65f6\u5019\u4f1a",(0,a.kt)("strong",{parentName:"li"},"\u540c\u65f6\u66f4\u65b0.desktop\u6587\u4ef6"),"\uff0c\u56e0\u6b64\u5728\u66f4\u6362\u56fe\u6807\u662f\u6700\u597d\u76f4\u63a5\u66f4\u6362\u5728\u4e3b\u9898\u6587\u4ef6\u4e2d\u66ff\u6362icon\uff0c\u800c\u4e0d\u662f\u66f4\u6539desktop\u7684icon\u8def\u5f84"),(0,a.kt)("li",{parentName:"ol"},"Finder\u5c0f\u7ec4\u4ef6\u4e2dapplication title\u6587\u5b57\u4e0d\u80fd\u5782\u76f4\u5c45\u4e2d\uff0c\u53ef\u4ee5\u66f4\u6362\u4e3aWindow title\u63d2\u4ef6")),(0,a.kt)("h2",{id:"\u4e8ckde-plasmoids"},"\u4e8c\u3001Kde Plasmoids"),(0,a.kt)("p",null,"Finder\u680f\u4e2dPlasmoids\u5de6\u534a\u90e8\u5206\u4ece\u5de6\u81f3\u53f3\u4f9d\u6b21\u4e3a\uff1a"),(0,a.kt)("ul",null,(0,a.kt)("li",{parentName:"ul"},"kpple menu"),(0,a.kt)("li",{parentName:"ul"},"application title/window titile(if the text of application title can't be centered vertically)"),(0,a.kt)("li",{parentName:"ul"},"global menu")),(0,a.kt)("p",null,"\u53f3\u534a\u90e8\u5206\u4ece\u5de6\u81f3\u53f3\u4f9d\u6b21\u4e3a\uff1a"),(0,a.kt)("ul",null,(0,a.kt)("li",{parentName:"ul"},"resources monitor (fork)"),(0,a.kt)("li",{parentName:"ul"},"mcOS BS Inline Battery"),(0,a.kt)("li",{parentName:"ul"},"\u7f51\u7edc"),(0,a.kt)("li",{parentName:"ul"},"Control Center(replace the icon with search icon)"),(0,a.kt)("li",{parentName:"ul"},"Control Center(replace the icom with menu icon)"),(0,a.kt)("li",{parentName:"ul"},"Better Inline Clock")),(0,a.kt)("p",null,"\u5b89\u88c5\u65b9\u6cd5\uff1a"),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-bash"},"plasmpkg2 -u xxx.plasmoid\n")))}m.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/f0ad40a3.8f021e6f.js b/assets/js/f0ad40a3.8f021e6f.js new file mode 100644 index 000000000..a6a330eed --- /dev/null +++ b/assets/js/f0ad40a3.8f021e6f.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunknpy_notebook=self.webpackChunknpy_notebook||[]).push([[2296],{3905:(e,t,n)=>{n.d(t,{Zo:()=>u,kt:()=>f});var r=n(7294);function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function i(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var l=r.createContext({}),p=function(e){var t=r.useContext(l),n=t;return e&&(n="function"==typeof e?e(t):c(c({},t),e)),n},u=function(e){var t=p(e.components);return r.createElement(l.Provider,{value:t},e.children)},s="mdxType",d={inlineCode:"code",wrapper:function(e){var t=e.children;return r.createElement(r.Fragment,{},t)}},m=r.forwardRef((function(e,t){var n=e.components,o=e.mdxType,a=e.originalType,l=e.parentName,u=i(e,["components","mdxType","originalType","parentName"]),s=p(n),m=o,f=s["".concat(l,".").concat(m)]||s[m]||d[m]||a;return n?r.createElement(f,c(c({ref:t},u),{},{components:n})):r.createElement(f,c({ref:t},u))}));function f(e,t){var n=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var a=n.length,c=new Array(a);c[0]=m;var i={};for(var l in t)hasOwnProperty.call(t,l)&&(i[l]=t[l]);i.originalType=e,i[s]="string"==typeof e?e:o,c[1]=i;for(var p=2;p<a;p++)c[p]=n[p];return r.createElement.apply(null,c)}return r.createElement.apply(null,n)}m.displayName="MDXCreateElement"},582:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>l,contentTitle:()=>c,default:()=>d,frontMatter:()=>a,metadata:()=>i,toc:()=>p});var r=n(7462),o=(n(7294),n(3905));const a={},c="\u9e23\u8c22",i={unversionedId:"Acknowledgement/intro",id:"Acknowledgement/intro",title:"\u9e23\u8c22",description:"\u996e\u6c34\u601d\u6e90",source:"@site/docs/Acknowledgement/intro.md",sourceDirName:"Acknowledgement",slug:"/Acknowledgement/intro",permalink:"/docs/Acknowledgement/intro",draft:!1,tags:[],version:"current",frontMatter:{},sidebar:"acknowledgement"},l={},p=[{value:"\u996e\u6c34\u601d\u6e90",id:"\u996e\u6c34\u601d\u6e90",level:2},{value:"Disclaimer",id:"disclaimer",level:2}],u={toc:p},s="wrapper";function d(e){let{components:t,...a}=e;return(0,o.kt)(s,(0,r.Z)({},u,a,{components:t,mdxType:"MDXLayout"}),(0,o.kt)("h1",{id:"\u9e23\u8c22"},"\u9e23\u8c22"),(0,o.kt)("h2",{id:"\u996e\u6c34\u601d\u6e90"},"\u996e\u6c34\u601d\u6e90"),(0,o.kt)("p",null,"\u8be5\u7f51\u7ad9\u7684\u642d\u5efa\u79bb\u4e0d\u5f00",(0,o.kt)("a",{parentName:"p",href:"https://github.com/facebook/docusaurus"},"Docusaurus"),"\u7684\u652f\u6301\u4ee5\u53ca\u5bf9",(0,o.kt)("a",{parentName:"p",href:"https://space.keter.top/"},"Sonder\u7684\u5b9d\u85cf\u7b14\u8bb0\u672c"),"\u7684\u53c2\u8003\u3002"),(0,o.kt)("h2",{id:"disclaimer"},"Disclaimer"),(0,o.kt)("p",null,"\u672c\u7f51\u7ad9\u5c55\u793a\u7684\u6240\u6709\u6807\u8bc6\u548c\u94fe\u63a5\u4ec5\u5c5e\u4e8e",(0,o.kt)("inlineCode",{parentName:"p"},"\u4e2a\u4eba\u559c\u597d"),"\uff0c",(0,o.kt)("inlineCode",{parentName:"p"},"\u4e0d\u4ee3\u8868\u56fd\u5bb6\u7684\u7acb\u573a\u6216\u4f01\u4e1a\u3001\u7ec4\u7ec7\u7684\u884c\u4e3a"),"\u3002"),(0,o.kt)("p",null,"\u672c\u7f51\u7ad9\u7684\u6240\u6709\u4fe1\u606f",(0,o.kt)("inlineCode",{parentName:"p"},"\u4ec5\u4f9b\u53c2\u8003"),"\uff0c",(0,o.kt)("inlineCode",{parentName:"p"},"\u4e0d\u6784\u6210\u6cd5\u5f8b\u6216\u5546\u4e1a\u5efa\u8bae"),"\u3002"),(0,o.kt)("p",null,(0,o.kt)("img",{src:n(9163).Z,width:"2778",height:"2046"})))}d.isMDXComponent=!0},9163:(e,t,n)=>{n.d(t,{Z:()=>r});const r=n.p+"assets/images/intro-822c34cd9b5577b06df8bb0956cdf947.png"}}]); \ No newline at end of file diff --git a/assets/js/f26368c4.29cc7aa1.js b/assets/js/f26368c4.29cc7aa1.js new file mode 100644 index 000000000..998c0a0c5 --- /dev/null +++ b/assets/js/f26368c4.29cc7aa1.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunknpy_notebook=self.webpackChunknpy_notebook||[]).push([[4760],{3905:(a,e,t)=>{t.d(e,{Zo:()=>l,kt:()=>h});var n=t(7294);function s(a,e,t){return e in a?Object.defineProperty(a,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):a[e]=t,a}function r(a,e){var t=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable}))),t.push.apply(t,n)}return t}function m(a){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?r(Object(t),!0).forEach((function(e){s(a,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(t)):r(Object(t)).forEach((function(e){Object.defineProperty(a,e,Object.getOwnPropertyDescriptor(t,e))}))}return a}function o(a,e){if(null==a)return{};var t,n,s=function(a,e){if(null==a)return{};var t,n,s={},r=Object.keys(a);for(n=0;n<r.length;n++)t=r[n],e.indexOf(t)>=0||(s[t]=a[t]);return s}(a,e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(a);for(n=0;n<r.length;n++)t=r[n],e.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(a,t)&&(s[t]=a[t])}return s}var p=n.createContext({}),i=function(a){var e=n.useContext(p),t=e;return a&&(t="function"==typeof a?a(e):m(m({},e),a)),t},l=function(a){var e=i(a.components);return n.createElement(p.Provider,{value:e},a.children)},c="mdxType",k={inlineCode:"code",wrapper:function(a){var e=a.children;return n.createElement(n.Fragment,{},e)}},d=n.forwardRef((function(a,e){var t=a.components,s=a.mdxType,r=a.originalType,p=a.parentName,l=o(a,["components","mdxType","originalType","parentName"]),c=i(t),d=s,h=c["".concat(p,".").concat(d)]||c[d]||k[d]||r;return t?n.createElement(h,m(m({ref:e},l),{},{components:t})):n.createElement(h,m({ref:e},l))}));function h(a,e){var t=arguments,s=e&&e.mdxType;if("string"==typeof a||s){var r=t.length,m=new Array(r);m[0]=d;var o={};for(var p in e)hasOwnProperty.call(e,p)&&(o[p]=e[p]);o.originalType=a,o[c]="string"==typeof a?a:s,m[1]=o;for(var i=2;i<r;i++)m[i]=t[i];return n.createElement.apply(null,m)}return n.createElement.apply(null,t)}d.displayName="MDXCreateElement"},1933:(a,e,t)=>{t.r(e),t.d(e,{assets:()=>p,contentTitle:()=>m,default:()=>k,frontMatter:()=>r,metadata:()=>o,toc:()=>i});var n=t(7462),s=(t(7294),t(3905));const r={},m="K-fold cross-validation",o={unversionedId:"Deep-Learning/\u57fa\u7840\u77e5\u8bc6/K-foldCross-validation",id:"Deep-Learning/\u57fa\u7840\u77e5\u8bc6/K-foldCross-validation",title:"K-fold cross-validation",description:"What is k-fold cross-validation?",source:"@site/docs/Deep-Learning/3-\u57fa\u7840\u77e5\u8bc6/K-foldCross-validation.md",sourceDirName:"Deep-Learning/3-\u57fa\u7840\u77e5\u8bc6",slug:"/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/K-foldCross-validation",permalink:"/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/K-foldCross-validation",draft:!1,tags:[],version:"current",frontMatter:{},sidebar:"deep_learning",previous:{title:"\u4ece\u5168\u8fde\u63a5\u5230\u5377\u79ef",permalink:"/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/FromFullyConnectedLayerToConvolutionalLayer"},next:{title:"LeNet",permalink:"/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/LeNet"}},p={},i=[{value:"What is k-fold cross-validation?",id:"what-is-k-fold-cross-validation",level:2},{value:"How does k-fold cross-validation work?",id:"how-does-k-fold-cross-validation-work",level:2},{value:"Summary",id:"summary",level:2}],l={toc:i},c="wrapper";function k(a){let{components:e,...t}=a;return(0,s.kt)(c,(0,n.Z)({},l,t,{components:e,mdxType:"MDXLayout"}),(0,s.kt)("h1",{id:"k-fold-cross-validation"},"K-fold cross-validation"),(0,s.kt)("h2",{id:"what-is-k-fold-cross-validation"},"What is k-fold cross-validation?"),(0,s.kt)("p",null,"K-fold cross-validation is a technique used in machine learning to evaluate the performance of a model. The basic idea behind k-fold cross-validation is to split the dataset into ",(0,s.kt)("span",{parentName:"p",className:"math math-inline"},(0,s.kt)("span",{parentName:"span",className:"katex"},(0,s.kt)("span",{parentName:"span",className:"katex-mathml"},(0,s.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,s.kt)("semantics",{parentName:"math"},(0,s.kt)("mrow",{parentName:"semantics"},(0,s.kt)("mi",{parentName:"mrow"},"k")),(0,s.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"k")))),(0,s.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6944em"}}),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03148em"}},"k")))))," partitions, or folds, and then train and test the model ",(0,s.kt)("span",{parentName:"p",className:"math math-inline"},(0,s.kt)("span",{parentName:"span",className:"katex"},(0,s.kt)("span",{parentName:"span",className:"katex-mathml"},(0,s.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,s.kt)("semantics",{parentName:"math"},(0,s.kt)("mrow",{parentName:"semantics"},(0,s.kt)("mi",{parentName:"mrow"},"k")),(0,s.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"k")))),(0,s.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6944em"}}),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03148em"}},"k")))))," times, ",(0,s.kt)("strong",{parentName:"p"},"using a different fold for testing each time"),"."),(0,s.kt)("hr",null),(0,s.kt)("h2",{id:"how-does-k-fold-cross-validation-work"},"How does k-fold cross-validation work?"),(0,s.kt)("p",null,"In each iteration of k-fold cross-validation, one of the ",(0,s.kt)("span",{parentName:"p",className:"math math-inline"},(0,s.kt)("span",{parentName:"span",className:"katex"},(0,s.kt)("span",{parentName:"span",className:"katex-mathml"},(0,s.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,s.kt)("semantics",{parentName:"math"},(0,s.kt)("mrow",{parentName:"semantics"},(0,s.kt)("mi",{parentName:"mrow"},"k")),(0,s.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"k")))),(0,s.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6944em"}}),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03148em"}},"k")))))," folds is used as the ",(0,s.kt)("strong",{parentName:"p"},"test set"),", while the remaining ",(0,s.kt)("span",{parentName:"p",className:"math math-inline"},(0,s.kt)("span",{parentName:"span",className:"katex"},(0,s.kt)("span",{parentName:"span",className:"katex-mathml"},(0,s.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,s.kt)("semantics",{parentName:"math"},(0,s.kt)("mrow",{parentName:"semantics"},(0,s.kt)("mi",{parentName:"mrow"},"k"),(0,s.kt)("mo",{parentName:"mrow"},"\u2212"),(0,s.kt)("mn",{parentName:"mrow"},"1")),(0,s.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"k-1")))),(0,s.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"0.7778em",verticalAlign:"-0.0833em"}}),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03148em"}},"k"),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,s.kt)("span",{parentName:"span",className:"mbin"},"\u2212"),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}})),(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6444em"}}),(0,s.kt)("span",{parentName:"span",className:"mord"},"1")))))," folds are used as the training set. This process is repeated ",(0,s.kt)("span",{parentName:"p",className:"math math-inline"},(0,s.kt)("span",{parentName:"span",className:"katex"},(0,s.kt)("span",{parentName:"span",className:"katex-mathml"},(0,s.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,s.kt)("semantics",{parentName:"math"},(0,s.kt)("mrow",{parentName:"semantics"},(0,s.kt)("mi",{parentName:"mrow"},"k")),(0,s.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"k")))),(0,s.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6944em"}}),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03148em"}},"k")))))," times, with each fold being used ",(0,s.kt)("strong",{parentName:"p"},"exactly once as the test set"),". The results from each iteration can then be averaged to produce a more accurate estimate of the model's performance."),(0,s.kt)("hr",null),(0,s.kt)("h2",{id:"summary"},"Summary"),(0,s.kt)("ul",null,(0,s.kt)("li",{parentName:"ul"},"train set: to train the model and do parameter update"),(0,s.kt)("li",{parentName:"ul"},"validation set: to choose hyperparameter"),(0,s.kt)("li",{parentName:"ul"},"test set: the final test, only used once")))}k.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/main.ad030941.js b/assets/js/main.ad030941.js new file mode 100644 index 000000000..d2014c208 --- /dev/null +++ b/assets/js/main.ad030941.js @@ -0,0 +1,2 @@ +/*! For license information please see main.ad030941.js.LICENSE.txt */ +(self.webpackChunknpy_notebook=self.webpackChunknpy_notebook||[]).push([[179],{723:(e,t,n)=>{"use strict";n.d(t,{Z:()=>p});var r=n(7294),a=n(7462),o=n(8356),i=n.n(o),s=n(6887);const l={"05ec199a":[()=>n.e(2373).then(n.bind(n,2240)),"@site/docs/Deep-Learning/5-\u5927\u6a21\u578b/1-Self-Attention.md",2240],"092909c8":[()=>n.e(962).then(n.bind(n,1026)),"@site/docs/Algorithms/4-\u9898\u89e3/\u4e00\u7ef4\u524d\u7f00\u548c\uff08\u5237\u51fa\u4e00\u9053\u5899\uff09.md",1026],"0ed19e66":[()=>n.e(8770).then(n.bind(n,3887)),"@site/docs/Deep-Learning/5-\u5927\u6a21\u578b/6-Diffusion-Model.md",3887],"11f7daa4":[()=>n.e(1180).then(n.bind(n,4618)),"@site/docs/Algorithms/4-\u9898\u89e3/\u6392\u5217\u7ec4\u5408\uff08\u6c4230\u7684\u500d\u6570\uff09.md",4618],"1331f6cd":[()=>n.e(7336).then(n.bind(n,2922)),"@site/docs/Algorithms/1-intro.md",2922],"16ddbeca":[()=>n.e(3328).then(n.bind(n,4978)),"@site/docs/Deep-Learning/4-\u5b9e\u6218\u7ec3\u4e60/3-Undergraduate-Dissertation.md",4978],"170d5aca":[()=>n.e(7122).then(n.bind(n,806)),"@site/docs/Deep-Learning/1-intro.md",806],17896441:[()=>Promise.all([n.e(532),n.e(8605),n.e(7918)]).then(n.bind(n,903)),"@theme/DocItem",903],"198a413f":[()=>n.e(2592).then(n.bind(n,3857)),"@site/docs/Tui-Mian/\u8ba1\u7b97\u673a\u57fa\u7840\u7efc\u5408/\u6570\u636e\u7ed3\u6784.md",3857],"1a4e3797":[()=>Promise.all([n.e(532),n.e(7920)]).then(n.bind(n,2027)),"@theme/SearchPage",2027],"1be78505":[()=>Promise.all([n.e(532),n.e(9514)]).then(n.bind(n,9963)),"@theme/DocPage",9963],"1f391b9e":[()=>Promise.all([n.e(532),n.e(8605),n.e(3085)]).then(n.bind(n,4247)),"@theme/MDXPage",4247],"21a88645":[()=>n.e(9913).then(n.bind(n,3721)),"@site/docs/Deep-Learning/6-\u8bba\u6587\u7b14\u8bb0/2-Denoising Diffusion Probabilistic Models.md",3721],"26bb3547":[()=>n.e(8399).then(n.bind(n,2629)),"@site/docs/Deep-Learning/6-\u8bba\u6587\u7b14\u8bb0/4-Zero-shot Generative Model Adaptation via Image-specific Prompt Learning.md",2629],"2a59d8d4":[()=>n.e(3065).then(n.bind(n,7146)),"@site/docs/Deep-Learning/3-\u57fa\u7840\u77e5\u8bc6/FromFullyConnectedLayerToConvolutionalLayer.md",7146],"360a53fd":[()=>n.e(7851).then(n.bind(n,2353)),"@site/docs/Others/2-Linux/\u5b9e\u7528\u5de5\u5177/\u7ec8\u7aef\u4ee3\u7406.md",2353],"393be207":[()=>n.e(7414).then(n.bind(n,3123)),"@site/src/pages/markdown-page.md",3123],"3c9ce1b2":[()=>n.e(6674).then(n.bind(n,9721)),"@site/docs/Algorithms/4-\u9898\u89e3/\u53cd\u5e8f\u8f93\u51fa.md",9721],"446859ef":[()=>n.e(1459).then(n.bind(n,8739)),"@site/docs/Algorithms/3-\u673a\u8bd5\u6280\u5de7\u4e0eSTL.md",8739],"4557037c":[()=>n.e(189).then(n.bind(n,3148)),"@site/docs/Others/1-intro.md",3148],"459eb724":[()=>n.e(3553).then(n.bind(n,2257)),"@site/docs/Deep-Learning/5-\u5927\u6a21\u578b/2-Attention-Is-All-You-Need.md",2257],"4e1def24":[()=>n.e(6237).then(n.bind(n,9570)),"@site/docs/Tui-Mian/2-Summary.md",9570],"4fdf609a":[()=>n.e(7698).then(n.bind(n,4817)),"@site/docs/Tui-Mian/\u6570\u5b66/\u7ebf\u6027\u4ee3\u6570.md",4817],"52f5885d":[()=>n.e(8231).then(n.bind(n,8530)),"@site/docs/Deep-Learning/6-\u8bba\u6587\u7b14\u8bb0/3-High-Resolution Image Synthesis with Latent Diffusion Models.md",8530],"56ae16bd":[()=>n.e(1376).then(n.bind(n,3754)),"@site/docs/Deep-Learning/5-\u5927\u6a21\u578b/5-GAN.md",3754],"5960b9f1":[()=>n.e(9615).then(n.bind(n,9124)),"@site/docs/Tui-Mian/\u6570\u5b66/\u6982\u7387\u8bba.md",9124],"5b87b98d":[()=>n.e(452).then(n.bind(n,6624)),"@site/docs/Others/3-\u535a\u5ba2\u642d\u5efa/\u544a\u793a\u680f.md",6624],"5e9f5e1a":[()=>Promise.resolve().then(n.bind(n,6809)),"@generated/docusaurus.config",6809],"6204ac06":[()=>n.e(8614).then(n.bind(n,4140)),"@site/docs/Deep-Learning/3-\u57fa\u7840\u77e5\u8bc6/\u6df1\u5ea6\u53ef\u5206\u79bb\u5377\u79ef.md",4140],"67605ec9":[()=>n.e(3311).then(n.bind(n,7391)),"@site/docs/Deep-Learning/5-\u5927\u6a21\u578b/4-Image-Generation-Models.md",7391],73151820:[()=>n.e(9203).then(n.bind(n,2823)),"@site/docs/Curriculum/4-\u64cd\u4f5c\u7cfb\u7edf\u8bfe\u8bbe/2-GeekOS-project-0.md",2823],"73a0803d":[()=>n.e(1196).then(n.bind(n,1265)),"@site/docs/Tui-Mian/\u6570\u5b66/\u590f\u4ee4\u8425\u9762\u8bd5\u6570\u5b66\u90e8\u5206\u590d\u4e60.md",1265],"74465ad7":[()=>n.e(5321).then(n.bind(n,8038)),"@site/docs/Deep-Learning/3-\u57fa\u7840\u77e5\u8bc6/PoolingLayer.md",8038],"76f0dcb5":[()=>n.e(2615).then(n.bind(n,7574)),"@site/docs/Deep-Learning/4-\u5b9e\u6218\u7ec3\u4e60/2-Speaker Classification.md",7574],"78a3e900":[()=>n.e(8125).then(n.bind(n,472)),"@site/docs/Deep-Learning/6-\u8bba\u6587\u7b14\u8bb0/1-Attention Is All You Need.md",472],"7ab2d319":[()=>n.e(5736).then(n.bind(n,8932)),"@site/docs/Deep-Learning/3-\u57fa\u7840\u77e5\u8bc6/LeNet.md",8932],"7d51be72":[()=>n.e(6898).then(n.bind(n,4434)),"@site/docs/Deep-Learning/4-\u5b9e\u6218\u7ec3\u4e60/1-Visdom Visualization.md",4434],"7daa201b":[()=>n.e(8347).then(n.t.bind(n,2776,19)),"C:\\External\\bonjour-npy.github.io\\.docusaurus\\@easyops-cn\\docusaurus-search-local\\default\\plugin-route-context-module-100.json",2776],"7f328912":[()=>n.e(8975).then(n.bind(n,7427)),"@site/docs/Tui-Mian/1-intro.md",7427],"800ff996":[()=>n.e(6178).then(n.bind(n,5541)),"@site/docs/Deep-Learning/3-\u57fa\u7840\u77e5\u8bc6/LogisticRegression.md",5541],"86a892ec":[()=>n.e(8175).then(n.bind(n,4362)),"@site/docs/Deep-Learning/5-\u5927\u6a21\u578b/Prompt Learning/1-Undergraduate-Dissertation.md",4362],"86cc22d4":[()=>n.e(3576).then(n.t.bind(n,5745,19)),"C:\\External\\bonjour-npy.github.io\\.docusaurus\\docusaurus-plugin-content-pages\\default\\plugin-route-context-module-100.json",5745],"935f2afb":[()=>n.e(53).then(n.t.bind(n,1109,19)),"~docs/default/version-current-metadata-prop-751.json",1109],a0558625:[()=>n.e(3389).then(n.bind(n,350)),"@site/docs/Algorithms/2-STL\u6a21\u677f.md",350],a2a36db7:[()=>n.e(5776).then(n.bind(n,8847)),"@site/docs/Tui-Mian/\u673a\u8bd5/\u5927\u6570\u9664\u6cd5.md",8847],a8183bcb:[()=>n.e(7739).then(n.bind(n,3199)),"@site/docs/Deep-Learning/5-\u5927\u6a21\u578b/3-Self-Supervised-Learning.md",3199],a8fad2e4:[()=>n.e(1130).then(n.bind(n,119)),"@site/docs/Deep-Learning/3-\u57fa\u7840\u77e5\u8bc6/Perceptron.md",119],a91af95f:[()=>n.e(1007).then(n.bind(n,6831)),"@site/docs/Curriculum/2-\u6570\u5b57\u56fe\u50cf\u5904\u7406/Note.md",6831],b28e7af0:[()=>n.e(618).then(n.bind(n,8069)),"@site/docs/Deep-Learning/2-Fill-The-Gaps.md",8069],b529c19d:[()=>n.e(1835).then(n.bind(n,5470)),"@site/docs/Deep-Learning/3-\u57fa\u7840\u77e5\u8bc6/\u6fc0\u6d3b\u51fd\u6570\u4e0eLoss\u7684\u68af\u5ea6.md",5470],c00822a0:[()=>n.e(9507).then(n.bind(n,8135)),"@site/docs/Deep-Learning/3-\u57fa\u7840\u77e5\u8bc6/PytorchBasics.md",8135],c4f5d8e4:[()=>Promise.all([n.e(532),n.e(4195)]).then(n.bind(n,1792)),"@site/src/pages/index.js",1792],cccb4b32:[()=>n.e(3346).then(n.bind(n,9575)),"@site/docs/Curriculum/4-\u64cd\u4f5c\u7cfb\u7edf\u8bfe\u8bbe/1-Environment-Configuration.md",9575],cf67a3ce:[()=>n.e(3094).then(n.bind(n,3582)),"@site/docs/Deep-Learning/3-\u57fa\u7840\u77e5\u8bc6/\u6b63\u5219\u5316\u4e0e\u6743\u91cd\u8870\u9000.md",3582],d1030cc9:[()=>n.e(5742).then(n.bind(n,3688)),"@site/docs/Deep-Learning/3-\u57fa\u7840\u77e5\u8bc6/AlexNet.md",3688],d594b08b:[()=>n.e(5923).then(n.t.bind(n,3769,19)),"C:\\External\\bonjour-npy.github.io\\.docusaurus\\docusaurus-plugin-content-docs\\default\\plugin-route-context-module-100.json",3769],d5b726de:[()=>n.e(3320).then(n.bind(n,942)),"@site/docs/Deep-Learning/3-\u57fa\u7840\u77e5\u8bc6/ConvolutionalLayer.md",942],d6b41bcb:[()=>n.e(5901).then(n.bind(n,2509)),"@site/docs/Curriculum/3-\u7f16\u8bd1\u539f\u7406/Note.md",2509],d839ba35:[()=>n.e(198).then(n.bind(n,1031)),"@site/docs/Tui-Mian/\u7b80\u5386/\u7b80\u5386\u9762\u8bd5\u51c6\u5907.md",1031],e106d379:[()=>n.e(1646).then(n.bind(n,2572)),"@site/docs/Others/2-Linux/\u95ee\u9898\u89e3\u51b3/\u53cc\u7cfb\u7edf\u6302\u8f7dWindows\u78c1\u76d8\u4e3a\u53ea\u8bfb\u6587\u4ef6.md",2572],e5f716fd:[()=>n.e(3033).then(n.bind(n,3264)),"@site/docs/Curriculum/1-intro.md",3264],e6c11ea8:[()=>n.e(2051).then(n.bind(n,1999)),"@site/docs/Others/2-Linux/\u5ba2\u5236\u5316/\u5982\u4f55\u8ba9\u4f60\u7684KDE\u770b\u8d77\u6765\u66f4\u50cfmacOS.md",1999],f0ad40a3:[()=>n.e(2296).then(n.bind(n,582)),"@site/docs/Acknowledgement/intro.md",582],f26368c4:[()=>n.e(4760).then(n.bind(n,1933)),"@site/docs/Deep-Learning/3-\u57fa\u7840\u77e5\u8bc6/K-foldCross-validation.md",1933]};function u(e){let{error:t,retry:n,pastDelay:a}=e;return t?r.createElement("div",{style:{textAlign:"center",color:"#fff",backgroundColor:"#fa383e",borderColor:"#fa383e",borderStyle:"solid",borderRadius:"0.25rem",borderWidth:"1px",boxSizing:"border-box",display:"block",padding:"1rem",flex:"0 0 50%",marginLeft:"25%",marginRight:"25%",marginTop:"5rem",maxWidth:"50%",width:"100%"}},r.createElement("p",null,String(t)),r.createElement("div",null,r.createElement("button",{type:"button",onClick:n},"Retry"))):a?r.createElement("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",height:"100vh"}},r.createElement("svg",{id:"loader",style:{width:128,height:110,position:"absolute",top:"calc(100vh - 64%)"},viewBox:"0 0 45 45",xmlns:"http://www.w3.org/2000/svg",stroke:"#61dafb"},r.createElement("g",{fill:"none",fillRule:"evenodd",transform:"translate(1 1)",strokeWidth:"2"},r.createElement("circle",{cx:"22",cy:"22",r:"6",strokeOpacity:"0"},r.createElement("animate",{attributeName:"r",begin:"1.5s",dur:"3s",values:"6;22",calcMode:"linear",repeatCount:"indefinite"}),r.createElement("animate",{attributeName:"stroke-opacity",begin:"1.5s",dur:"3s",values:"1;0",calcMode:"linear",repeatCount:"indefinite"}),r.createElement("animate",{attributeName:"stroke-width",begin:"1.5s",dur:"3s",values:"2;0",calcMode:"linear",repeatCount:"indefinite"})),r.createElement("circle",{cx:"22",cy:"22",r:"6",strokeOpacity:"0"},r.createElement("animate",{attributeName:"r",begin:"3s",dur:"3s",values:"6;22",calcMode:"linear",repeatCount:"indefinite"}),r.createElement("animate",{attributeName:"stroke-opacity",begin:"3s",dur:"3s",values:"1;0",calcMode:"linear",repeatCount:"indefinite"}),r.createElement("animate",{attributeName:"stroke-width",begin:"3s",dur:"3s",values:"2;0",calcMode:"linear",repeatCount:"indefinite"})),r.createElement("circle",{cx:"22",cy:"22",r:"8"},r.createElement("animate",{attributeName:"r",begin:"0s",dur:"1.5s",values:"6;1;2;3;4;5;6",calcMode:"linear",repeatCount:"indefinite"}))))):null}var c=n(9670),d=n(226);function f(e,t){if("*"===e)return i()({loading:u,loader:()=>n.e(4972).then(n.bind(n,4972)),modules:["@theme/NotFound"],webpack:()=>[4972],render(e,t){const n=e.default;return r.createElement(d.z,{value:{plugin:{name:"native",id:"default"}}},r.createElement(n,t))}});const o=s[`${e}-${t}`],f={},p=[],h=[],m=(0,c.Z)(o);return Object.entries(m).forEach((e=>{let[t,n]=e;const r=l[n];r&&(f[t]=r[0],p.push(r[1]),h.push(r[2]))})),i().Map({loading:u,loader:f,modules:p,webpack:()=>h,render(t,n){const i=JSON.parse(JSON.stringify(o));Object.entries(t).forEach((t=>{let[n,r]=t;const a=r.default;if(!a)throw new Error(`The page component at ${e} doesn't have a default export. This makes it impossible to render anything. Consider default-exporting a React component.`);"object"!=typeof a&&"function"!=typeof a||Object.keys(r).filter((e=>"default"!==e)).forEach((e=>{a[e]=r[e]}));let o=i;const s=n.split(".");s.slice(0,-1).forEach((e=>{o=o[e]})),o[s[s.length-1]]=a}));const s=i.__comp;delete i.__comp;const l=i.__context;return delete i.__context,r.createElement(d.z,{value:l},r.createElement(s,(0,a.Z)({},i,n)))}})}const p=[{path:"/markdown-page",component:f("/markdown-page","766"),exact:!0},{path:"/search",component:f("/search","11f"),exact:!0},{path:"/docs",component:f("/docs","5ff"),routes:[{path:"/docs/Acknowledgement/intro",component:f("/docs/Acknowledgement/intro","585"),exact:!0,sidebar:"acknowledgement"},{path:"/docs/Algorithms/\u673a\u8bd5\u6280\u5de7\u4e0eSTL",component:f("/docs/Algorithms/\u673a\u8bd5\u6280\u5de7\u4e0eSTL","e41"),exact:!0,sidebar:"algorithms"},{path:"/docs/Algorithms/\u9898\u89e3/\u53cd\u5e8f\u8f93\u51fa",component:f("/docs/Algorithms/\u9898\u89e3/\u53cd\u5e8f\u8f93\u51fa","917"),exact:!0,sidebar:"algorithms"},{path:"/docs/Algorithms/\u9898\u89e3/\u6392\u5217\u7ec4\u5408\uff08\u6c4230\u7684\u500d\u6570\uff09",component:f("/docs/Algorithms/\u9898\u89e3/\u6392\u5217\u7ec4\u5408\uff08\u6c4230\u7684\u500d\u6570\uff09","dda"),exact:!0,sidebar:"algorithms"},{path:"/docs/Algorithms/\u9898\u89e3/\u4e00\u7ef4\u524d\u7f00\u548c\uff08\u5237\u51fa\u4e00\u9053\u5899\uff09",component:f("/docs/Algorithms/\u9898\u89e3/\u4e00\u7ef4\u524d\u7f00\u548c\uff08\u5237\u51fa\u4e00\u9053\u5899\uff09","366"),exact:!0,sidebar:"algorithms"},{path:"/docs/Algorithms/intro",component:f("/docs/Algorithms/intro","433"),exact:!0,sidebar:"algorithms"},{path:"/docs/Algorithms/STL\u6a21\u677f",component:f("/docs/Algorithms/STL\u6a21\u677f","935"),exact:!0,sidebar:"algorithms"},{path:"/docs/Curriculum/\u7f16\u8bd1\u539f\u7406/Note",component:f("/docs/Curriculum/\u7f16\u8bd1\u539f\u7406/Note","59a"),exact:!0,sidebar:"curriculum"},{path:"/docs/Curriculum/\u64cd\u4f5c\u7cfb\u7edf\u8bfe\u8bbe/Environment-Configuration",component:f("/docs/Curriculum/\u64cd\u4f5c\u7cfb\u7edf\u8bfe\u8bbe/Environment-Configuration","f1a"),exact:!0,sidebar:"curriculum"},{path:"/docs/Curriculum/\u64cd\u4f5c\u7cfb\u7edf\u8bfe\u8bbe/GeekOS-project-0",component:f("/docs/Curriculum/\u64cd\u4f5c\u7cfb\u7edf\u8bfe\u8bbe/GeekOS-project-0","a73"),exact:!0,sidebar:"curriculum"},{path:"/docs/Curriculum/\u6570\u5b57\u56fe\u50cf\u5904\u7406/Note",component:f("/docs/Curriculum/\u6570\u5b57\u56fe\u50cf\u5904\u7406/Note","4fd"),exact:!0,sidebar:"curriculum"},{path:"/docs/Curriculum/intro",component:f("/docs/Curriculum/intro","513"),exact:!0,sidebar:"curriculum"},{path:"/docs/Deep-Learning/\u5927\u6a21\u578b/Attention-Is-All-You-Need",component:f("/docs/Deep-Learning/\u5927\u6a21\u578b/Attention-Is-All-You-Need","d42"),exact:!0,sidebar:"deep_learning"},{path:"/docs/Deep-Learning/\u5927\u6a21\u578b/Diffusion-Model",component:f("/docs/Deep-Learning/\u5927\u6a21\u578b/Diffusion-Model","570"),exact:!0,sidebar:"deep_learning"},{path:"/docs/Deep-Learning/\u5927\u6a21\u578b/GAN",component:f("/docs/Deep-Learning/\u5927\u6a21\u578b/GAN","6dc"),exact:!0,sidebar:"deep_learning"},{path:"/docs/Deep-Learning/\u5927\u6a21\u578b/Image-Generation-Models",component:f("/docs/Deep-Learning/\u5927\u6a21\u578b/Image-Generation-Models","eaa"),exact:!0,sidebar:"deep_learning"},{path:"/docs/Deep-Learning/\u5927\u6a21\u578b/Prompt Learning/Undergraduate-Dissertation",component:f("/docs/Deep-Learning/\u5927\u6a21\u578b/Prompt Learning/Undergraduate-Dissertation","4cc"),exact:!0,sidebar:"deep_learning"},{path:"/docs/Deep-Learning/\u5927\u6a21\u578b/Self-Attention",component:f("/docs/Deep-Learning/\u5927\u6a21\u578b/Self-Attention","06a"),exact:!0,sidebar:"deep_learning"},{path:"/docs/Deep-Learning/\u5927\u6a21\u578b/Self-Supervised-Learning",component:f("/docs/Deep-Learning/\u5927\u6a21\u578b/Self-Supervised-Learning","c92"),exact:!0,sidebar:"deep_learning"},{path:"/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/\u6fc0\u6d3b\u51fd\u6570\u4e0eLoss\u7684\u68af\u5ea6",component:f("/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/\u6fc0\u6d3b\u51fd\u6570\u4e0eLoss\u7684\u68af\u5ea6","2b9"),exact:!0,sidebar:"deep_learning"},{path:"/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/\u6df1\u5ea6\u53ef\u5206\u79bb\u5377\u79ef",component:f("/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/\u6df1\u5ea6\u53ef\u5206\u79bb\u5377\u79ef","c84"),exact:!0,sidebar:"deep_learning"},{path:"/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/\u6b63\u5219\u5316\u4e0e\u6743\u91cd\u8870\u9000",component:f("/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/\u6b63\u5219\u5316\u4e0e\u6743\u91cd\u8870\u9000","ad1"),exact:!0,sidebar:"deep_learning"},{path:"/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/AlexNet",component:f("/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/AlexNet","c99"),exact:!0,sidebar:"deep_learning"},{path:"/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/ConvolutionalLayer",component:f("/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/ConvolutionalLayer","a92"),exact:!0,sidebar:"deep_learning"},{path:"/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/FromFullyConnectedLayerToConvolutionalLayer",component:f("/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/FromFullyConnectedLayerToConvolutionalLayer","34b"),exact:!0,sidebar:"deep_learning"},{path:"/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/K-foldCross-validation",component:f("/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/K-foldCross-validation","448"),exact:!0,sidebar:"deep_learning"},{path:"/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/LeNet",component:f("/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/LeNet","21c"),exact:!0,sidebar:"deep_learning"},{path:"/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/LogisticRegression",component:f("/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/LogisticRegression","3fb"),exact:!0,sidebar:"deep_learning"},{path:"/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/Perceptron",component:f("/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/Perceptron","ab9"),exact:!0,sidebar:"deep_learning"},{path:"/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/PoolingLayer",component:f("/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/PoolingLayer","0b7"),exact:!0,sidebar:"deep_learning"},{path:"/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/PytorchBasics",component:f("/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/PytorchBasics","e93"),exact:!0,sidebar:"deep_learning"},{path:"/docs/Deep-Learning/\u8bba\u6587\u7b14\u8bb0/Attention Is All You Need",component:f("/docs/Deep-Learning/\u8bba\u6587\u7b14\u8bb0/Attention Is All You Need","40a"),exact:!0,sidebar:"deep_learning"},{path:"/docs/Deep-Learning/\u8bba\u6587\u7b14\u8bb0/Denoising Diffusion Probabilistic Models",component:f("/docs/Deep-Learning/\u8bba\u6587\u7b14\u8bb0/Denoising Diffusion Probabilistic Models","96c"),exact:!0,sidebar:"deep_learning"},{path:"/docs/Deep-Learning/\u8bba\u6587\u7b14\u8bb0/High-Resolution Image Synthesis with Latent Diffusion Models",component:f("/docs/Deep-Learning/\u8bba\u6587\u7b14\u8bb0/High-Resolution Image Synthesis with Latent Diffusion Models","235"),exact:!0,sidebar:"deep_learning"},{path:"/docs/Deep-Learning/\u8bba\u6587\u7b14\u8bb0/Zero-shot Generative Model Adaptation via Image-specific Prompt Learning",component:f("/docs/Deep-Learning/\u8bba\u6587\u7b14\u8bb0/Zero-shot Generative Model Adaptation via Image-specific Prompt Learning","597"),exact:!0,sidebar:"deep_learning"},{path:"/docs/Deep-Learning/\u5b9e\u6218\u7ec3\u4e60/Speaker Classification",component:f("/docs/Deep-Learning/\u5b9e\u6218\u7ec3\u4e60/Speaker Classification","44e"),exact:!0,sidebar:"deep_learning"},{path:"/docs/Deep-Learning/\u5b9e\u6218\u7ec3\u4e60/Undergraduate-Dissertation",component:f("/docs/Deep-Learning/\u5b9e\u6218\u7ec3\u4e60/Undergraduate-Dissertation","a59"),exact:!0,sidebar:"deep_learning"},{path:"/docs/Deep-Learning/\u5b9e\u6218\u7ec3\u4e60/Visdom Visualization",component:f("/docs/Deep-Learning/\u5b9e\u6218\u7ec3\u4e60/Visdom Visualization","26a"),exact:!0,sidebar:"deep_learning"},{path:"/docs/Deep-Learning/Fill-The-Gaps",component:f("/docs/Deep-Learning/Fill-The-Gaps","19a"),exact:!0,sidebar:"deep_learning"},{path:"/docs/Deep-Learning/intro",component:f("/docs/Deep-Learning/intro","498"),exact:!0,sidebar:"deep_learning"},{path:"/docs/Others/\u535a\u5ba2\u642d\u5efa/\u544a\u793a\u680f",component:f("/docs/Others/\u535a\u5ba2\u642d\u5efa/\u544a\u793a\u680f","64e"),exact:!0,sidebar:"others"},{path:"/docs/Others/intro",component:f("/docs/Others/intro","6d3"),exact:!0,sidebar:"others"},{path:"/docs/Others/Linux/\u5ba2\u5236\u5316/\u5982\u4f55\u8ba9\u4f60\u7684KDE\u770b\u8d77\u6765\u66f4\u50cfmacOS",component:f("/docs/Others/Linux/\u5ba2\u5236\u5316/\u5982\u4f55\u8ba9\u4f60\u7684KDE\u770b\u8d77\u6765\u66f4\u50cfmacOS","041"),exact:!0,sidebar:"others"},{path:"/docs/Others/Linux/\u5b9e\u7528\u5de5\u5177/\u7ec8\u7aef\u4ee3\u7406",component:f("/docs/Others/Linux/\u5b9e\u7528\u5de5\u5177/\u7ec8\u7aef\u4ee3\u7406","9d6"),exact:!0,sidebar:"others"},{path:"/docs/Others/Linux/\u95ee\u9898\u89e3\u51b3/\u53cc\u7cfb\u7edf\u6302\u8f7dWindows\u78c1\u76d8\u4e3a\u53ea\u8bfb\u6587\u4ef6",component:f("/docs/Others/Linux/\u95ee\u9898\u89e3\u51b3/\u53cc\u7cfb\u7edf\u6302\u8f7dWindows\u78c1\u76d8\u4e3a\u53ea\u8bfb\u6587\u4ef6","fee"),exact:!0,sidebar:"others"},{path:"/docs/Tui-Mian/\u673a\u8bd5/\u5927\u6570\u9664\u6cd5",component:f("/docs/Tui-Mian/\u673a\u8bd5/\u5927\u6570\u9664\u6cd5","32b"),exact:!0,sidebar:"tui_mian"},{path:"/docs/Tui-Mian/\u8ba1\u7b97\u673a\u57fa\u7840\u7efc\u5408/\u6570\u636e\u7ed3\u6784",component:f("/docs/Tui-Mian/\u8ba1\u7b97\u673a\u57fa\u7840\u7efc\u5408/\u6570\u636e\u7ed3\u6784","c96"),exact:!0,sidebar:"tui_mian"},{path:"/docs/Tui-Mian/\u7b80\u5386/\u7b80\u5386\u9762\u8bd5\u51c6\u5907",component:f("/docs/Tui-Mian/\u7b80\u5386/\u7b80\u5386\u9762\u8bd5\u51c6\u5907","262"),exact:!0,sidebar:"tui_mian"},{path:"/docs/Tui-Mian/\u6570\u5b66/\u6982\u7387\u8bba",component:f("/docs/Tui-Mian/\u6570\u5b66/\u6982\u7387\u8bba","77a"),exact:!0,sidebar:"tui_mian"},{path:"/docs/Tui-Mian/\u6570\u5b66/\u590f\u4ee4\u8425\u9762\u8bd5\u6570\u5b66\u90e8\u5206\u590d\u4e60",component:f("/docs/Tui-Mian/\u6570\u5b66/\u590f\u4ee4\u8425\u9762\u8bd5\u6570\u5b66\u90e8\u5206\u590d\u4e60","4ba"),exact:!0,sidebar:"tui_mian"},{path:"/docs/Tui-Mian/\u6570\u5b66/\u7ebf\u6027\u4ee3\u6570",component:f("/docs/Tui-Mian/\u6570\u5b66/\u7ebf\u6027\u4ee3\u6570","286"),exact:!0,sidebar:"tui_mian"},{path:"/docs/Tui-Mian/intro",component:f("/docs/Tui-Mian/intro","c8c"),exact:!0,sidebar:"tui_mian"},{path:"/docs/Tui-Mian/Summary",component:f("/docs/Tui-Mian/Summary","72a"),exact:!0,sidebar:"tui_mian"}]},{path:"/",component:f("/","0b3"),exact:!0},{path:"*",component:f("*")}]},8934:(e,t,n)=>{"use strict";n.d(t,{_:()=>a,t:()=>o});var r=n(7294);const a=r.createContext(!1);function o(e){let{children:t}=e;const[n,o]=(0,r.useState)(!1);return(0,r.useEffect)((()=>{o(!0)}),[]),r.createElement(a.Provider,{value:n},t)}},7221:(e,t,n)=>{"use strict";var r=n(7294),a=n(3935),o=n(3727),i=n(405),s=n(412);const l=[n(2497),n(3310),n(8320),n(2295),n(2601),n(7713)];var u=n(723),c=n(6550),d=n(8790);function f(e){let{children:t}=e;return r.createElement(r.Fragment,null,t)}var p=n(7462),h=n(5742),m=n(2263),g=n(4996),b=n(6668),v=n(1944),y=n(4711),w=n(9727),E=n(3320),k=n(8780),S=n(197);function x(){const{i18n:{defaultLocale:e,localeConfigs:t}}=(0,m.Z)(),n=(0,y.l)();return r.createElement(h.Z,null,Object.entries(t).map((e=>{let[t,{htmlLang:a}]=e;return r.createElement("link",{key:t,rel:"alternate",href:n.createUrl({locale:t,fullyQualified:!0}),hrefLang:a})})),r.createElement("link",{rel:"alternate",href:n.createUrl({locale:e,fullyQualified:!0}),hrefLang:"x-default"}))}function _(e){let{permalink:t}=e;const{siteConfig:{url:n}}=(0,m.Z)(),a=function(){const{siteConfig:{url:e,baseUrl:t,trailingSlash:n}}=(0,m.Z)(),{pathname:r}=(0,c.TH)();return e+(0,k.applyTrailingSlash)((0,g.Z)(r),{trailingSlash:n,baseUrl:t})}(),o=t?`${n}${t}`:a;return r.createElement(h.Z,null,r.createElement("meta",{property:"og:url",content:o}),r.createElement("link",{rel:"canonical",href:o}))}function L(){const{i18n:{currentLocale:e}}=(0,m.Z)(),{metadata:t,image:n}=(0,b.L)();return r.createElement(r.Fragment,null,r.createElement(h.Z,null,r.createElement("meta",{name:"twitter:card",content:"summary_large_image"}),r.createElement("body",{className:w.h})),n&&r.createElement(v.d,{image:n}),r.createElement(_,null),r.createElement(x,null),r.createElement(S.Z,{tag:E.HX,locale:e}),r.createElement(h.Z,null,t.map(((e,t)=>r.createElement("meta",(0,p.Z)({key:t},e))))))}const C=new Map;function T(e){if(C.has(e.pathname))return{...e,pathname:C.get(e.pathname)};if((0,d.f)(u.Z,e.pathname).some((e=>{let{route:t}=e;return!0===t.exact})))return C.set(e.pathname,e.pathname),e;const t=e.pathname.trim().replace(/(?:\/index)?\.html$/,"")||"/";return C.set(e.pathname,t),{...e,pathname:t}}var A=n(8934),O=n(8940);function P(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];const a=l.map((t=>{const r=t.default?.[e]??t[e];return r?.(...n)}));return()=>a.forEach((e=>e?.()))}const N=function(e){let{children:t,location:n,previousLocation:a}=e;return(0,r.useLayoutEffect)((()=>{a!==n&&(!function(e){let{location:t,previousLocation:n}=e;if(!n)return;const r=t.pathname===n.pathname,a=t.hash===n.hash,o=t.search===n.search;if(r&&a&&!o)return;const{hash:i}=t;if(i){const e=decodeURIComponent(i.substring(1)),t=document.getElementById(e);t?.scrollIntoView()}else window.scrollTo(0,0)}({location:n,previousLocation:a}),P("onRouteDidUpdate",{previousLocation:a,location:n}))}),[a,n]),t};function D(e){const t=Array.from(new Set([e,decodeURI(e)])).map((e=>(0,d.f)(u.Z,e))).flat();return Promise.all(t.map((e=>e.route.component.preload?.())))}class I extends r.Component{previousLocation;routeUpdateCleanupCb;constructor(e){super(e),this.previousLocation=null,this.routeUpdateCleanupCb=s.Z.canUseDOM?P("onRouteUpdate",{previousLocation:null,location:this.props.location}):()=>{},this.state={nextRouteHasLoaded:!0}}shouldComponentUpdate(e,t){if(e.location===this.props.location)return t.nextRouteHasLoaded;const n=e.location;return this.previousLocation=this.props.location,this.setState({nextRouteHasLoaded:!1}),this.routeUpdateCleanupCb=P("onRouteUpdate",{previousLocation:this.previousLocation,location:n}),D(n.pathname).then((()=>{this.routeUpdateCleanupCb(),this.setState({nextRouteHasLoaded:!0})})).catch((e=>{console.warn(e),window.location.reload()})),!1}render(){const{children:e,location:t}=this.props;return r.createElement(N,{previousLocation:this.previousLocation,location:t},r.createElement(c.AW,{location:t,render:()=>e}))}}const R=I,M="__docusaurus-base-url-issue-banner-container",F="__docusaurus-base-url-issue-banner",B="__docusaurus-base-url-issue-banner-suggestion-container",j="__DOCUSAURUS_INSERT_BASEURL_BANNER";function $(e){return`\nwindow['${j}'] = true;\n\ndocument.addEventListener('DOMContentLoaded', maybeInsertBanner);\n\nfunction maybeInsertBanner() {\n var shouldInsert = window['${j}'];\n shouldInsert && insertBanner();\n}\n\nfunction insertBanner() {\n var bannerContainer = document.getElementById('${M}');\n if (!bannerContainer) {\n return;\n }\n var bannerHtml = ${JSON.stringify(function(e){return`\n<div id="${F}" style="border: thick solid red; background-color: rgb(255, 230, 179); margin: 20px; padding: 20px; font-size: 20px;">\n <p style="font-weight: bold; font-size: 30px;">Your Docusaurus site did not load properly.</p>\n <p>A very common reason is a wrong site <a href="https://docusaurus.io/docs/docusaurus.config.js/#baseUrl" style="font-weight: bold;">baseUrl configuration</a>.</p>\n <p>Current configured baseUrl = <span style="font-weight: bold; color: red;">${e}</span> ${"/"===e?" (default value)":""}</p>\n <p>We suggest trying baseUrl = <span id="${B}" style="font-weight: bold; color: green;"></span></p>\n</div>\n`}(e)).replace(/</g,"\\<")};\n bannerContainer.innerHTML = bannerHtml;\n var suggestionContainer = document.getElementById('${B}');\n var actualHomePagePath = window.location.pathname;\n var suggestedBaseUrl = actualHomePagePath.substr(-1) === '/'\n ? actualHomePagePath\n : actualHomePagePath + '/';\n suggestionContainer.innerHTML = suggestedBaseUrl;\n}\n`}function z(){const{siteConfig:{baseUrl:e}}=(0,m.Z)();return(0,r.useLayoutEffect)((()=>{window[j]=!1}),[]),r.createElement(r.Fragment,null,!s.Z.canUseDOM&&r.createElement(h.Z,null,r.createElement("script",null,$(e))),r.createElement("div",{id:M}))}function U(){const{siteConfig:{baseUrl:e,baseUrlIssueBanner:t}}=(0,m.Z)(),{pathname:n}=(0,c.TH)();return t&&n===e?r.createElement(z,null):null}function H(){const{siteConfig:{favicon:e,title:t,noIndex:n},i18n:{currentLocale:a,localeConfigs:o}}=(0,m.Z)(),i=(0,g.Z)(e),{htmlLang:s,direction:l}=o[a];return r.createElement(h.Z,null,r.createElement("html",{lang:s,dir:l}),r.createElement("title",null,t),r.createElement("meta",{property:"og:title",content:t}),r.createElement("meta",{name:"viewport",content:"width=device-width, initial-scale=1.0"}),n&&r.createElement("meta",{name:"robots",content:"noindex, nofollow"}),e&&r.createElement("link",{rel:"icon",href:i}))}var Z=n(4763),Q=n(2389);function V(){const e=(0,Q.Z)();return r.createElement(h.Z,null,r.createElement("html",{"data-has-hydrated":e}))}function W(){const e=(0,d.H)(u.Z),t=(0,c.TH)();return r.createElement(Z.Z,null,r.createElement(O.M,null,r.createElement(A.t,null,r.createElement(f,null,r.createElement(H,null),r.createElement(L,null),r.createElement(U,null),r.createElement(R,{location:T(t)},e)),r.createElement(V,null))))}var G=n(6887);const q=function(e){try{return document.createElement("link").relList.supports(e)}catch{return!1}}("prefetch")?function(e){return new Promise(((t,n)=>{if("undefined"==typeof document)return void n();const r=document.createElement("link");r.setAttribute("rel","prefetch"),r.setAttribute("href",e),r.onload=()=>t(),r.onerror=()=>n();const a=document.getElementsByTagName("head")[0]??document.getElementsByName("script")[0]?.parentNode;a?.appendChild(r)}))}:function(e){return new Promise(((t,n)=>{const r=new XMLHttpRequest;r.open("GET",e,!0),r.withCredentials=!0,r.onload=()=>{200===r.status?t():n()},r.send(null)}))};var Y=n(9670);const K=new Set,X=new Set,J=()=>navigator.connection?.effectiveType.includes("2g")||navigator.connection?.saveData,ee={prefetch(e){if(!(e=>!J()&&!X.has(e)&&!K.has(e))(e))return!1;K.add(e);const t=(0,d.f)(u.Z,e).flatMap((e=>{return t=e.route.path,Object.entries(G).filter((e=>{let[n]=e;return n.replace(/-[^-]+$/,"")===t})).flatMap((e=>{let[,t]=e;return Object.values((0,Y.Z)(t))}));var t}));return Promise.all(t.map((e=>{const t=n.gca(e);return t&&!t.includes("undefined")?q(t).catch((()=>{})):Promise.resolve()})))},preload:e=>!!(e=>!J()&&!X.has(e))(e)&&(X.add(e),D(e))},te=Object.freeze(ee);if(s.Z.canUseDOM){window.docusaurus=te;const e=a.hydrate;D(window.location.pathname).then((()=>{e(r.createElement(i.B6,null,r.createElement(o.VK,null,r.createElement(W,null))),document.getElementById("__docusaurus"))}))}},8940:(e,t,n)=>{"use strict";n.d(t,{_:()=>c,M:()=>d});var r=n(7294),a=n(6809);const o=JSON.parse('{"docusaurus-plugin-content-docs":{"default":{"path":"/docs","versions":[{"name":"current","label":"Next","isLast":true,"path":"/docs","mainDocId":"Deep-Learning/intro","docs":[{"id":"Acknowledgement/intro","path":"/docs/Acknowledgement/intro","sidebar":"acknowledgement"},{"id":"Algorithms/\u673a\u8bd5\u6280\u5de7\u4e0eSTL","path":"/docs/Algorithms/\u673a\u8bd5\u6280\u5de7\u4e0eSTL","sidebar":"algorithms"},{"id":"Algorithms/\u9898\u89e3/\u53cd\u5e8f\u8f93\u51fa","path":"/docs/Algorithms/\u9898\u89e3/\u53cd\u5e8f\u8f93\u51fa","sidebar":"algorithms"},{"id":"Algorithms/\u9898\u89e3/\u6392\u5217\u7ec4\u5408\uff08\u6c4230\u7684\u500d\u6570\uff09","path":"/docs/Algorithms/\u9898\u89e3/\u6392\u5217\u7ec4\u5408\uff08\u6c4230\u7684\u500d\u6570\uff09","sidebar":"algorithms"},{"id":"Algorithms/\u9898\u89e3/\u4e00\u7ef4\u524d\u7f00\u548c\uff08\u5237\u51fa\u4e00\u9053\u5899\uff09","path":"/docs/Algorithms/\u9898\u89e3/\u4e00\u7ef4\u524d\u7f00\u548c\uff08\u5237\u51fa\u4e00\u9053\u5899\uff09","sidebar":"algorithms"},{"id":"Algorithms/intro","path":"/docs/Algorithms/intro","sidebar":"algorithms"},{"id":"Algorithms/STL\u6a21\u677f","path":"/docs/Algorithms/STL\u6a21\u677f","sidebar":"algorithms"},{"id":"Curriculum/\u7f16\u8bd1\u539f\u7406/Note","path":"/docs/Curriculum/\u7f16\u8bd1\u539f\u7406/Note","sidebar":"curriculum"},{"id":"Curriculum/\u64cd\u4f5c\u7cfb\u7edf\u8bfe\u8bbe/Environment-Configuration","path":"/docs/Curriculum/\u64cd\u4f5c\u7cfb\u7edf\u8bfe\u8bbe/Environment-Configuration","sidebar":"curriculum"},{"id":"Curriculum/\u64cd\u4f5c\u7cfb\u7edf\u8bfe\u8bbe/GeekOS-project-0","path":"/docs/Curriculum/\u64cd\u4f5c\u7cfb\u7edf\u8bfe\u8bbe/GeekOS-project-0","sidebar":"curriculum"},{"id":"Curriculum/\u6570\u5b57\u56fe\u50cf\u5904\u7406/Note","path":"/docs/Curriculum/\u6570\u5b57\u56fe\u50cf\u5904\u7406/Note","sidebar":"curriculum"},{"id":"Curriculum/intro","path":"/docs/Curriculum/intro","sidebar":"curriculum"},{"id":"Deep-Learning/\u5927\u6a21\u578b/Attention-Is-All-You-Need","path":"/docs/Deep-Learning/\u5927\u6a21\u578b/Attention-Is-All-You-Need","sidebar":"deep_learning"},{"id":"Deep-Learning/\u5927\u6a21\u578b/Diffusion-Model","path":"/docs/Deep-Learning/\u5927\u6a21\u578b/Diffusion-Model","sidebar":"deep_learning"},{"id":"Deep-Learning/\u5927\u6a21\u578b/GAN","path":"/docs/Deep-Learning/\u5927\u6a21\u578b/GAN","sidebar":"deep_learning"},{"id":"Deep-Learning/\u5927\u6a21\u578b/Image-Generation-Models","path":"/docs/Deep-Learning/\u5927\u6a21\u578b/Image-Generation-Models","sidebar":"deep_learning"},{"id":"Deep-Learning/\u5927\u6a21\u578b/Prompt Learning/Undergraduate-Dissertation","path":"/docs/Deep-Learning/\u5927\u6a21\u578b/Prompt Learning/Undergraduate-Dissertation","sidebar":"deep_learning"},{"id":"Deep-Learning/\u5927\u6a21\u578b/Self-Attention","path":"/docs/Deep-Learning/\u5927\u6a21\u578b/Self-Attention","sidebar":"deep_learning"},{"id":"Deep-Learning/\u5927\u6a21\u578b/Self-Supervised-Learning","path":"/docs/Deep-Learning/\u5927\u6a21\u578b/Self-Supervised-Learning","sidebar":"deep_learning"},{"id":"Deep-Learning/\u57fa\u7840\u77e5\u8bc6/\u6fc0\u6d3b\u51fd\u6570\u4e0eLoss\u7684\u68af\u5ea6","path":"/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/\u6fc0\u6d3b\u51fd\u6570\u4e0eLoss\u7684\u68af\u5ea6","sidebar":"deep_learning"},{"id":"Deep-Learning/\u57fa\u7840\u77e5\u8bc6/\u6df1\u5ea6\u53ef\u5206\u79bb\u5377\u79ef","path":"/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/\u6df1\u5ea6\u53ef\u5206\u79bb\u5377\u79ef","sidebar":"deep_learning"},{"id":"Deep-Learning/\u57fa\u7840\u77e5\u8bc6/\u6b63\u5219\u5316\u4e0e\u6743\u91cd\u8870\u9000","path":"/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/\u6b63\u5219\u5316\u4e0e\u6743\u91cd\u8870\u9000","sidebar":"deep_learning"},{"id":"Deep-Learning/\u57fa\u7840\u77e5\u8bc6/AlexNet","path":"/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/AlexNet","sidebar":"deep_learning"},{"id":"Deep-Learning/\u57fa\u7840\u77e5\u8bc6/ConvolutionalLayer","path":"/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/ConvolutionalLayer","sidebar":"deep_learning"},{"id":"Deep-Learning/\u57fa\u7840\u77e5\u8bc6/FromFullyConnectedLayerToConvolutionalLayer","path":"/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/FromFullyConnectedLayerToConvolutionalLayer","sidebar":"deep_learning"},{"id":"Deep-Learning/\u57fa\u7840\u77e5\u8bc6/K-foldCross-validation","path":"/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/K-foldCross-validation","sidebar":"deep_learning"},{"id":"Deep-Learning/\u57fa\u7840\u77e5\u8bc6/LeNet","path":"/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/LeNet","sidebar":"deep_learning"},{"id":"Deep-Learning/\u57fa\u7840\u77e5\u8bc6/LogisticRegression","path":"/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/LogisticRegression","sidebar":"deep_learning"},{"id":"Deep-Learning/\u57fa\u7840\u77e5\u8bc6/Perceptron","path":"/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/Perceptron","sidebar":"deep_learning"},{"id":"Deep-Learning/\u57fa\u7840\u77e5\u8bc6/PoolingLayer","path":"/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/PoolingLayer","sidebar":"deep_learning"},{"id":"Deep-Learning/\u57fa\u7840\u77e5\u8bc6/PytorchBasics","path":"/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/PytorchBasics","sidebar":"deep_learning"},{"id":"Deep-Learning/\u8bba\u6587\u7b14\u8bb0/Attention Is All You Need","path":"/docs/Deep-Learning/\u8bba\u6587\u7b14\u8bb0/Attention Is All You Need","sidebar":"deep_learning"},{"id":"Deep-Learning/\u8bba\u6587\u7b14\u8bb0/Denoising Diffusion Probabilistic Models","path":"/docs/Deep-Learning/\u8bba\u6587\u7b14\u8bb0/Denoising Diffusion Probabilistic Models","sidebar":"deep_learning"},{"id":"Deep-Learning/\u8bba\u6587\u7b14\u8bb0/High-Resolution Image Synthesis with Latent Diffusion Models","path":"/docs/Deep-Learning/\u8bba\u6587\u7b14\u8bb0/High-Resolution Image Synthesis with Latent Diffusion Models","sidebar":"deep_learning"},{"id":"Deep-Learning/\u8bba\u6587\u7b14\u8bb0/Zero-shot Generative Model Adaptation via Image-specific Prompt Learning","path":"/docs/Deep-Learning/\u8bba\u6587\u7b14\u8bb0/Zero-shot Generative Model Adaptation via Image-specific Prompt Learning","sidebar":"deep_learning"},{"id":"Deep-Learning/\u5b9e\u6218\u7ec3\u4e60/Speaker Classification","path":"/docs/Deep-Learning/\u5b9e\u6218\u7ec3\u4e60/Speaker Classification","sidebar":"deep_learning"},{"id":"Deep-Learning/\u5b9e\u6218\u7ec3\u4e60/Undergraduate-Dissertation","path":"/docs/Deep-Learning/\u5b9e\u6218\u7ec3\u4e60/Undergraduate-Dissertation","sidebar":"deep_learning"},{"id":"Deep-Learning/\u5b9e\u6218\u7ec3\u4e60/Visdom Visualization","path":"/docs/Deep-Learning/\u5b9e\u6218\u7ec3\u4e60/Visdom Visualization","sidebar":"deep_learning"},{"id":"Deep-Learning/Fill-The-Gaps","path":"/docs/Deep-Learning/Fill-The-Gaps","sidebar":"deep_learning"},{"id":"Deep-Learning/intro","path":"/docs/Deep-Learning/intro","sidebar":"deep_learning"},{"id":"Others/\u535a\u5ba2\u642d\u5efa/\u544a\u793a\u680f","path":"/docs/Others/\u535a\u5ba2\u642d\u5efa/\u544a\u793a\u680f","sidebar":"others"},{"id":"Others/intro","path":"/docs/Others/intro","sidebar":"others"},{"id":"Others/Linux/\u5ba2\u5236\u5316/\u5982\u4f55\u8ba9\u4f60\u7684KDE\u770b\u8d77\u6765\u66f4\u50cfmacOS","path":"/docs/Others/Linux/\u5ba2\u5236\u5316/\u5982\u4f55\u8ba9\u4f60\u7684KDE\u770b\u8d77\u6765\u66f4\u50cfmacOS","sidebar":"others"},{"id":"Others/Linux/\u5b9e\u7528\u5de5\u5177/\u7ec8\u7aef\u4ee3\u7406","path":"/docs/Others/Linux/\u5b9e\u7528\u5de5\u5177/\u7ec8\u7aef\u4ee3\u7406","sidebar":"others"},{"id":"Others/Linux/\u95ee\u9898\u89e3\u51b3/\u53cc\u7cfb\u7edf\u6302\u8f7dWindows\u78c1\u76d8\u4e3a\u53ea\u8bfb\u6587\u4ef6","path":"/docs/Others/Linux/\u95ee\u9898\u89e3\u51b3/\u53cc\u7cfb\u7edf\u6302\u8f7dWindows\u78c1\u76d8\u4e3a\u53ea\u8bfb\u6587\u4ef6","sidebar":"others"},{"id":"Tui-Mian/\u673a\u8bd5/\u5927\u6570\u9664\u6cd5","path":"/docs/Tui-Mian/\u673a\u8bd5/\u5927\u6570\u9664\u6cd5","sidebar":"tui_mian"},{"id":"Tui-Mian/\u8ba1\u7b97\u673a\u57fa\u7840\u7efc\u5408/\u6570\u636e\u7ed3\u6784","path":"/docs/Tui-Mian/\u8ba1\u7b97\u673a\u57fa\u7840\u7efc\u5408/\u6570\u636e\u7ed3\u6784","sidebar":"tui_mian"},{"id":"Tui-Mian/\u7b80\u5386/\u7b80\u5386\u9762\u8bd5\u51c6\u5907","path":"/docs/Tui-Mian/\u7b80\u5386/\u7b80\u5386\u9762\u8bd5\u51c6\u5907","sidebar":"tui_mian"},{"id":"Tui-Mian/\u6570\u5b66/\u6982\u7387\u8bba","path":"/docs/Tui-Mian/\u6570\u5b66/\u6982\u7387\u8bba","sidebar":"tui_mian"},{"id":"Tui-Mian/\u6570\u5b66/\u590f\u4ee4\u8425\u9762\u8bd5\u6570\u5b66\u90e8\u5206\u590d\u4e60","path":"/docs/Tui-Mian/\u6570\u5b66/\u590f\u4ee4\u8425\u9762\u8bd5\u6570\u5b66\u90e8\u5206\u590d\u4e60","sidebar":"tui_mian"},{"id":"Tui-Mian/\u6570\u5b66/\u7ebf\u6027\u4ee3\u6570","path":"/docs/Tui-Mian/\u6570\u5b66/\u7ebf\u6027\u4ee3\u6570","sidebar":"tui_mian"},{"id":"Tui-Mian/intro","path":"/docs/Tui-Mian/intro","sidebar":"tui_mian"},{"id":"Tui-Mian/Summary","path":"/docs/Tui-Mian/Summary","sidebar":"tui_mian"}],"draftIds":[],"sidebars":{"deep_learning":{"link":{"path":"/docs/Deep-Learning/intro","label":"Deep-Learning/intro"}},"tui_mian":{"link":{"path":"/docs/Tui-Mian/intro","label":"Tui-Mian/intro"}},"algorithms":{"link":{"path":"/docs/Algorithms/intro","label":"Algorithms/intro"}},"curriculum":{"link":{"path":"/docs/Curriculum/intro","label":"Curriculum/intro"}},"others":{"link":{"path":"/docs/Others/intro","label":"Others/intro"}},"acknowledgement":{"link":{"path":"/docs/Acknowledgement/intro","label":"Acknowledgement/intro"}}}}],"breadcrumbs":true}}}'),i=JSON.parse('{"defaultLocale":"zh-Hans","locales":["en","zh-Hans"],"path":"i18n","currentLocale":"zh-Hans","localeConfigs":{"en":{"label":"English","direction":"ltr","htmlLang":"en","calendar":"gregory","path":"en"},"zh-Hans":{"label":"\u7b80\u4f53\u4e2d\u6587","direction":"ltr","htmlLang":"zh-Hans","calendar":"gregory","path":"zh-Hans"}}}');var s=n(7529);const l=JSON.parse('{"docusaurusVersion":"2.4.3","siteVersion":"1.0.0","pluginVersions":{"docusaurus-plugin-content-docs":{"type":"package","name":"@docusaurus/plugin-content-docs","version":"2.4.3"},"docusaurus-plugin-content-blog":{"type":"package","name":"@docusaurus/plugin-content-blog","version":"2.4.3"},"docusaurus-plugin-content-pages":{"type":"package","name":"@docusaurus/plugin-content-pages","version":"2.4.3"},"docusaurus-plugin-sitemap":{"type":"package","name":"@docusaurus/plugin-sitemap","version":"2.4.3"},"docusaurus-theme-classic":{"type":"package","name":"@docusaurus/theme-classic","version":"2.4.3"},"@easyops-cn/docusaurus-search-local":{"type":"package","name":"@easyops-cn/docusaurus-search-local","version":"0.35.0"}}}'),u={siteConfig:a.default,siteMetadata:l,globalData:o,i18n:i,codeTranslations:s},c=r.createContext(u);function d(e){let{children:t}=e;return r.createElement(c.Provider,{value:u},t)}},4763:(e,t,n)=>{"use strict";n.d(t,{Z:()=>f});var r=n(7294),a=n(412),o=n(5742),i=n(8780),s=n(179);function l(e){let{error:t,tryAgain:n}=e;return r.createElement("div",{style:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"flex-start",minHeight:"100vh",width:"100%",maxWidth:"80ch",fontSize:"20px",margin:"0 auto",padding:"1rem"}},r.createElement("h1",{style:{fontSize:"3rem"}},"This page crashed"),r.createElement("button",{type:"button",onClick:n,style:{margin:"1rem 0",fontSize:"2rem",cursor:"pointer",borderRadius:20,padding:"1rem"}},"Try again"),r.createElement(u,{error:t}))}function u(e){let{error:t}=e;const n=(0,i.getErrorCausalChain)(t).map((e=>e.message)).join("\n\nCause:\n");return r.createElement("p",{style:{whiteSpace:"pre-wrap"}},n)}function c(e){let{error:t,tryAgain:n}=e;return r.createElement(f,{fallback:()=>r.createElement(l,{error:t,tryAgain:n})},r.createElement(o.Z,null,r.createElement("title",null,"Page Error")),r.createElement(s.Z,null,r.createElement(l,{error:t,tryAgain:n})))}const d=e=>r.createElement(c,e);class f extends r.Component{constructor(e){super(e),this.state={error:null}}componentDidCatch(e){a.Z.canUseDOM&&this.setState({error:e})}render(){const{children:e}=this.props,{error:t}=this.state;if(t){const e={error:t,tryAgain:()=>this.setState({error:null})};return(this.props.fallback??d)(e)}return e??null}}},412:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});const r="undefined"!=typeof window&&"document"in window&&"createElement"in window.document,a={canUseDOM:r,canUseEventListeners:r&&("addEventListener"in window||"attachEvent"in window),canUseIntersectionObserver:r&&"IntersectionObserver"in window,canUseViewport:r&&"screen"in window}},5742:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(7294),a=n(405);function o(e){return r.createElement(a.ql,e)}},9960:(e,t,n)=>{"use strict";n.d(t,{Z:()=>p});var r=n(7462),a=n(7294),o=n(3727),i=n(8780),s=n(2263),l=n(3919),u=n(412);const c=a.createContext({collectLink:()=>{}});var d=n(4996);function f(e,t){let{isNavLink:n,to:f,href:p,activeClassName:h,isActive:m,"data-noBrokenLinkCheck":g,autoAddBaseUrl:b=!0,...v}=e;const{siteConfig:{trailingSlash:y,baseUrl:w}}=(0,s.Z)(),{withBaseUrl:E}=(0,d.C)(),k=(0,a.useContext)(c),S=(0,a.useRef)(null);(0,a.useImperativeHandle)(t,(()=>S.current));const x=f||p;const _=(0,l.Z)(x),L=x?.replace("pathname://","");let C=void 0!==L?(T=L,b&&(e=>e.startsWith("/"))(T)?E(T):T):void 0;var T;C&&_&&(C=(0,i.applyTrailingSlash)(C,{trailingSlash:y,baseUrl:w}));const A=(0,a.useRef)(!1),O=n?o.OL:o.rU,P=u.Z.canUseIntersectionObserver,N=(0,a.useRef)(),D=()=>{A.current||null==C||(window.docusaurus.preload(C),A.current=!0)};(0,a.useEffect)((()=>(!P&&_&&null!=C&&window.docusaurus.prefetch(C),()=>{P&&N.current&&N.current.disconnect()})),[N,C,P,_]);const I=C?.startsWith("#")??!1,R=!C||!_||I;return R||g||k.collectLink(C),R?a.createElement("a",(0,r.Z)({ref:S,href:C},x&&!_&&{target:"_blank",rel:"noopener noreferrer"},v)):a.createElement(O,(0,r.Z)({},v,{onMouseEnter:D,onTouchStart:D,innerRef:e=>{S.current=e,P&&e&&_&&(N.current=new window.IntersectionObserver((t=>{t.forEach((t=>{e===t.target&&(t.isIntersecting||t.intersectionRatio>0)&&(N.current.unobserve(e),N.current.disconnect(),null!=C&&window.docusaurus.prefetch(C))}))})),N.current.observe(e))},to:C},n&&{isActive:m,activeClassName:h}))}const p=a.forwardRef(f)},5999:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l,I:()=>s});var r=n(7294);function a(e,t){const n=e.split(/(\{\w+\})/).map(((e,n)=>{if(n%2==1){const n=t?.[e.slice(1,-1)];if(void 0!==n)return n}return e}));return n.some((e=>(0,r.isValidElement)(e)))?n.map(((e,t)=>(0,r.isValidElement)(e)?r.cloneElement(e,{key:t}):e)).filter((e=>""!==e)):n.join("")}var o=n(7529);function i(e){let{id:t,message:n}=e;if(void 0===t&&void 0===n)throw new Error("Docusaurus translation declarations must have at least a translation id or a default translation message");return o[t??n]??n??t}function s(e,t){let{message:n,id:r}=e;return a(i({message:n,id:r}),t)}function l(e){let{children:t,id:n,values:o}=e;if(t&&"string"!=typeof t)throw console.warn("Illegal <Translate> children",t),new Error("The Docusaurus <Translate> component only accept simple string values");const s=i({message:t,id:n});return r.createElement(r.Fragment,null,a(s,o))}},9935:(e,t,n)=>{"use strict";n.d(t,{m:()=>r});const r="default"},3919:(e,t,n)=>{"use strict";function r(e){return/^(?:\w*:|\/\/)/.test(e)}function a(e){return void 0!==e&&!r(e)}n.d(t,{Z:()=>a,b:()=>r})},4996:(e,t,n)=>{"use strict";n.d(t,{C:()=>i,Z:()=>s});var r=n(7294),a=n(2263),o=n(3919);function i(){const{siteConfig:{baseUrl:e,url:t}}=(0,a.Z)(),n=(0,r.useCallback)(((n,r)=>function(e,t,n,r){let{forcePrependBaseUrl:a=!1,absolute:i=!1}=void 0===r?{}:r;if(!n||n.startsWith("#")||(0,o.b)(n))return n;if(a)return t+n.replace(/^\//,"");if(n===t.replace(/\/$/,""))return t;const s=n.startsWith(t)?n:t+n.replace(/^\//,"");return i?e+s:s}(t,e,n,r)),[t,e]);return{withBaseUrl:n}}function s(e,t){void 0===t&&(t={});const{withBaseUrl:n}=i();return n(e,t)}},2263:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(7294),a=n(8940);function o(){return(0,r.useContext)(a._)}},2389:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(7294),a=n(8934);function o(){return(0,r.useContext)(a._)}},9670:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});const r=e=>"object"==typeof e&&!!e&&Object.keys(e).length>0;function a(e){const t={};return function e(n,a){Object.entries(n).forEach((n=>{let[o,i]=n;const s=a?`${a}.${o}`:o;r(i)?e(i,s):t[s]=i}))}(e),t}},226:(e,t,n)=>{"use strict";n.d(t,{_:()=>a,z:()=>o});var r=n(7294);const a=r.createContext(null);function o(e){let{children:t,value:n}=e;const o=r.useContext(a),i=(0,r.useMemo)((()=>function(e){let{parent:t,value:n}=e;if(!t){if(!n)throw new Error("Unexpected: no Docusaurus route context found");if(!("plugin"in n))throw new Error("Unexpected: Docusaurus topmost route context has no `plugin` attribute");return n}const r={...t.data,...n?.data};return{plugin:t.plugin,data:r}}({parent:o,value:n})),[o,n]);return r.createElement(a.Provider,{value:i},t)}},143:(e,t,n)=>{"use strict";n.d(t,{Iw:()=>m,gA:()=>f,_r:()=>c,Jo:()=>g,zh:()=>d,yW:()=>h,gB:()=>p});var r=n(6550),a=n(2263),o=n(9935);function i(e,t){void 0===t&&(t={});const n=function(){const{globalData:e}=(0,a.Z)();return e}()[e];if(!n&&t.failfast)throw new Error(`Docusaurus plugin global data not found for "${e}" plugin.`);return n}const s=e=>e.versions.find((e=>e.isLast));function l(e,t){const n=function(e,t){const n=s(e);return[...e.versions.filter((e=>e!==n)),n].find((e=>!!(0,r.LX)(t,{path:e.path,exact:!1,strict:!1})))}(e,t),a=n?.docs.find((e=>!!(0,r.LX)(t,{path:e.path,exact:!0,strict:!1})));return{activeVersion:n,activeDoc:a,alternateDocVersions:a?function(t){const n={};return e.versions.forEach((e=>{e.docs.forEach((r=>{r.id===t&&(n[e.name]=r)}))})),n}(a.id):{}}}const u={},c=()=>i("docusaurus-plugin-content-docs")??u,d=e=>function(e,t,n){void 0===t&&(t=o.m),void 0===n&&(n={});const r=i(e),a=r?.[t];if(!a&&n.failfast)throw new Error(`Docusaurus plugin global data not found for "${e}" plugin with id "${t}".`);return a}("docusaurus-plugin-content-docs",e,{failfast:!0});function f(e){void 0===e&&(e={});const t=c(),{pathname:n}=(0,r.TH)();return function(e,t,n){void 0===n&&(n={});const a=Object.entries(e).sort(((e,t)=>t[1].path.localeCompare(e[1].path))).find((e=>{let[,n]=e;return!!(0,r.LX)(t,{path:n.path,exact:!1,strict:!1})})),o=a?{pluginId:a[0],pluginData:a[1]}:void 0;if(!o&&n.failfast)throw new Error(`Can't find active docs plugin for "${t}" pathname, while it was expected to be found. Maybe you tried to use a docs feature that can only be used on a docs-related page? Existing docs plugin paths are: ${Object.values(e).map((e=>e.path)).join(", ")}`);return o}(t,n,e)}function p(e){return d(e).versions}function h(e){const t=d(e);return s(t)}function m(e){const t=d(e),{pathname:n}=(0,r.TH)();return l(t,n)}function g(e){const t=d(e),{pathname:n}=(0,r.TH)();return function(e,t){const n=s(e);return{latestDocSuggestion:l(e,t).alternateDocVersions[n.name],latestVersionSuggestion:n}}(t,n)}},8320:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(4865),a=n.n(r);a().configure({showSpinner:!1});const o={onRouteUpdate(e){let{location:t,previousLocation:n}=e;if(n&&t.pathname!==n.pathname){const e=window.setTimeout((()=>{a().start()}),200);return()=>window.clearTimeout(e)}},onRouteDidUpdate(){a().done()}}},3310:(e,t,n)=>{"use strict";n.r(t);var r=n(7410),a=n(6809);!function(e){const{themeConfig:{prism:t}}=a.default,{additionalLanguages:r}=t;globalThis.Prism=e,r.forEach((e=>{n(1248)(`./prism-${e}`)})),delete globalThis.Prism}(r.Z)},9471:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(7294);const a={iconExternalLink:"iconExternalLink_nPIU"};function o(e){let{width:t=13.5,height:n=13.5}=e;return r.createElement("svg",{width:t,height:n,"aria-hidden":"true",viewBox:"0 0 24 24",className:a.iconExternalLink},r.createElement("path",{fill:"currentColor",d:"M21 13v10h-21v-19h12v2h-10v15h17v-8h2zm3-12h-10.988l4.035 4-6.977 7.07 2.828 2.828 6.977-7.07 4.125 4.172v-11z"}))}},179:(e,t,n)=>{"use strict";n.d(t,{Z:()=>Nt});var r=n(7294),a=n(6010),o=n(4763),i=n(1944),s=n(7462),l=n(6550),u=n(5999),c=n(5936);const d="__docusaurus_skipToContent_fallback";function f(e){e.setAttribute("tabindex","-1"),e.focus(),e.removeAttribute("tabindex")}function p(){const e=(0,r.useRef)(null),{action:t}=(0,l.k6)(),n=(0,r.useCallback)((e=>{e.preventDefault();const t=document.querySelector("main:first-of-type")??document.getElementById(d);t&&f(t)}),[]);return(0,c.S)((n=>{let{location:r}=n;e.current&&!r.hash&&"PUSH"===t&&f(e.current)})),{containerRef:e,onClick:n}}const h=(0,u.I)({id:"theme.common.skipToMainContent",description:"The skip to content label used for accessibility, allowing to rapidly navigate to main content with keyboard tab/enter navigation",message:"Skip to main content"});function m(e){const t=e.children??h,{containerRef:n,onClick:a}=p();return r.createElement("div",{ref:n,role:"region","aria-label":h},r.createElement("a",(0,s.Z)({},e,{href:`#${d}`,onClick:a}),t))}var g=n(5281),b=n(9727);const v={skipToContent:"skipToContent_fXgn"};function y(){return r.createElement(m,{className:v.skipToContent})}var w=n(6668),E=n(9689);function k(e){let{width:t=21,height:n=21,color:a="currentColor",strokeWidth:o=1.2,className:i,...l}=e;return r.createElement("svg",(0,s.Z)({viewBox:"0 0 15 15",width:t,height:n},l),r.createElement("g",{stroke:a,strokeWidth:o},r.createElement("path",{d:"M.75.75l13.5 13.5M14.25.75L.75 14.25"})))}const S={closeButton:"closeButton_CVFx"};function x(e){return r.createElement("button",(0,s.Z)({type:"button","aria-label":(0,u.I)({id:"theme.AnnouncementBar.closeButtonAriaLabel",message:"Close",description:"The ARIA label for close button of announcement bar"})},e,{className:(0,a.Z)("clean-btn close",S.closeButton,e.className)}),r.createElement(k,{width:14,height:14,strokeWidth:3.1}))}const _={content:"content_knG7"};function L(e){const{announcementBar:t}=(0,w.L)(),{content:n}=t;return r.createElement("div",(0,s.Z)({},e,{className:(0,a.Z)(_.content,e.className),dangerouslySetInnerHTML:{__html:n}}))}const C={announcementBar:"announcementBar_mb4j",announcementBarPlaceholder:"announcementBarPlaceholder_vyr4",announcementBarClose:"announcementBarClose_gvF7",announcementBarContent:"announcementBarContent_xLdY"};function T(){const{announcementBar:e}=(0,w.L)(),{isActive:t,close:n}=(0,E.nT)();if(!t)return null;const{backgroundColor:a,textColor:o,isCloseable:i}=e;return r.createElement("div",{className:C.announcementBar,style:{backgroundColor:a,color:o},role:"banner"},i&&r.createElement("div",{className:C.announcementBarPlaceholder}),r.createElement(L,{className:C.announcementBarContent}),i&&r.createElement(x,{onClick:n,className:C.announcementBarClose}))}var A=n(2961),O=n(2466);var P=n(902),N=n(3102);const D=r.createContext(null);function I(e){let{children:t}=e;const n=function(){const e=(0,A.e)(),t=(0,N.HY)(),[n,a]=(0,r.useState)(!1),o=null!==t.component,i=(0,P.D9)(o);return(0,r.useEffect)((()=>{o&&!i&&a(!0)}),[o,i]),(0,r.useEffect)((()=>{o?e.shown||a(!0):a(!1)}),[e.shown,o]),(0,r.useMemo)((()=>[n,a]),[n])}();return r.createElement(D.Provider,{value:n},t)}function R(e){if(e.component){const t=e.component;return r.createElement(t,e.props)}}function M(){const e=(0,r.useContext)(D);if(!e)throw new P.i6("NavbarSecondaryMenuDisplayProvider");const[t,n]=e,a=(0,r.useCallback)((()=>n(!1)),[n]),o=(0,N.HY)();return(0,r.useMemo)((()=>({shown:t,hide:a,content:R(o)})),[a,o,t])}function F(e){let{header:t,primaryMenu:n,secondaryMenu:o}=e;const{shown:i}=M();return r.createElement("div",{className:"navbar-sidebar"},t,r.createElement("div",{className:(0,a.Z)("navbar-sidebar__items",{"navbar-sidebar__items--show-secondary":i})},r.createElement("div",{className:"navbar-sidebar__item menu"},n),r.createElement("div",{className:"navbar-sidebar__item menu"},o)))}var B=n(2949),j=n(2389);function $(e){return r.createElement("svg",(0,s.Z)({viewBox:"0 0 24 24",width:24,height:24},e),r.createElement("path",{fill:"currentColor",d:"M12,9c1.65,0,3,1.35,3,3s-1.35,3-3,3s-3-1.35-3-3S10.35,9,12,9 M12,7c-2.76,0-5,2.24-5,5s2.24,5,5,5s5-2.24,5-5 S14.76,7,12,7L12,7z M2,13l2,0c0.55,0,1-0.45,1-1s-0.45-1-1-1l-2,0c-0.55,0-1,0.45-1,1S1.45,13,2,13z M20,13l2,0c0.55,0,1-0.45,1-1 s-0.45-1-1-1l-2,0c-0.55,0-1,0.45-1,1S19.45,13,20,13z M11,2v2c0,0.55,0.45,1,1,1s1-0.45,1-1V2c0-0.55-0.45-1-1-1S11,1.45,11,2z M11,20v2c0,0.55,0.45,1,1,1s1-0.45,1-1v-2c0-0.55-0.45-1-1-1C11.45,19,11,19.45,11,20z M5.99,4.58c-0.39-0.39-1.03-0.39-1.41,0 c-0.39,0.39-0.39,1.03,0,1.41l1.06,1.06c0.39,0.39,1.03,0.39,1.41,0s0.39-1.03,0-1.41L5.99,4.58z M18.36,16.95 c-0.39-0.39-1.03-0.39-1.41,0c-0.39,0.39-0.39,1.03,0,1.41l1.06,1.06c0.39,0.39,1.03,0.39,1.41,0c0.39-0.39,0.39-1.03,0-1.41 L18.36,16.95z M19.42,5.99c0.39-0.39,0.39-1.03,0-1.41c-0.39-0.39-1.03-0.39-1.41,0l-1.06,1.06c-0.39,0.39-0.39,1.03,0,1.41 s1.03,0.39,1.41,0L19.42,5.99z M7.05,18.36c0.39-0.39,0.39-1.03,0-1.41c-0.39-0.39-1.03-0.39-1.41,0l-1.06,1.06 c-0.39,0.39-0.39,1.03,0,1.41s1.03,0.39,1.41,0L7.05,18.36z"}))}function z(e){return r.createElement("svg",(0,s.Z)({viewBox:"0 0 24 24",width:24,height:24},e),r.createElement("path",{fill:"currentColor",d:"M9.37,5.51C9.19,6.15,9.1,6.82,9.1,7.5c0,4.08,3.32,7.4,7.4,7.4c0.68,0,1.35-0.09,1.99-0.27C17.45,17.19,14.93,19,12,19 c-3.86,0-7-3.14-7-7C5,9.07,6.81,6.55,9.37,5.51z M12,3c-4.97,0-9,4.03-9,9s4.03,9,9,9s9-4.03,9-9c0-0.46-0.04-0.92-0.1-1.36 c-0.98,1.37-2.58,2.26-4.4,2.26c-2.98,0-5.4-2.42-5.4-5.4c0-1.81,0.89-3.42,2.26-4.4C12.92,3.04,12.46,3,12,3L12,3z"}))}const U={toggle:"toggle_vylO",toggleButton:"toggleButton_gllP",darkToggleIcon:"darkToggleIcon_wfgR",lightToggleIcon:"lightToggleIcon_pyhR",toggleButtonDisabled:"toggleButtonDisabled_aARS"};function H(e){let{className:t,buttonClassName:n,value:o,onChange:i}=e;const s=(0,j.Z)(),l=(0,u.I)({message:"Switch between dark and light mode (currently {mode})",id:"theme.colorToggle.ariaLabel",description:"The ARIA label for the navbar color mode toggle"},{mode:"dark"===o?(0,u.I)({message:"dark mode",id:"theme.colorToggle.ariaLabel.mode.dark",description:"The name for the dark color mode"}):(0,u.I)({message:"light mode",id:"theme.colorToggle.ariaLabel.mode.light",description:"The name for the light color mode"})});return r.createElement("div",{className:(0,a.Z)(U.toggle,t)},r.createElement("button",{className:(0,a.Z)("clean-btn",U.toggleButton,!s&&U.toggleButtonDisabled,n),type:"button",onClick:()=>i("dark"===o?"light":"dark"),disabled:!s,title:l,"aria-label":l,"aria-live":"polite"},r.createElement($,{className:(0,a.Z)(U.toggleIcon,U.lightToggleIcon)}),r.createElement(z,{className:(0,a.Z)(U.toggleIcon,U.darkToggleIcon)})))}const Z=r.memo(H),Q={darkNavbarColorModeToggle:"darkNavbarColorModeToggle_X3D1"};function V(e){let{className:t}=e;const n=(0,w.L)().navbar.style,a=(0,w.L)().colorMode.disableSwitch,{colorMode:o,setColorMode:i}=(0,B.I)();return a?null:r.createElement(Z,{className:t,buttonClassName:"dark"===n?Q.darkNavbarColorModeToggle:void 0,value:o,onChange:i})}var W=n(1327);function G(){return r.createElement(W.Z,{className:"navbar__brand",imageClassName:"navbar__logo",titleClassName:"navbar__title text--truncate"})}function q(){const e=(0,A.e)();return r.createElement("button",{type:"button","aria-label":(0,u.I)({id:"theme.docs.sidebar.closeSidebarButtonAriaLabel",message:"Close navigation bar",description:"The ARIA label for close button of mobile sidebar"}),className:"clean-btn navbar-sidebar__close",onClick:()=>e.toggle()},r.createElement(k,{color:"var(--ifm-color-emphasis-600)"}))}function Y(){return r.createElement("div",{className:"navbar-sidebar__brand"},r.createElement(G,null),r.createElement(V,{className:"margin-right--md"}),r.createElement(q,null))}var K=n(9960),X=n(4996),J=n(3919);function ee(e,t){return void 0!==e&&void 0!==t&&new RegExp(e,"gi").test(t)}var te=n(9471);function ne(e){let{activeBasePath:t,activeBaseRegex:n,to:a,href:o,label:i,html:l,isDropdownLink:u,prependBaseUrlToHref:c,...d}=e;const f=(0,X.Z)(a),p=(0,X.Z)(t),h=(0,X.Z)(o,{forcePrependBaseUrl:!0}),m=i&&o&&!(0,J.Z)(o),g=l?{dangerouslySetInnerHTML:{__html:l}}:{children:r.createElement(r.Fragment,null,i,m&&r.createElement(te.Z,u&&{width:12,height:12}))};return o?r.createElement(K.Z,(0,s.Z)({href:c?h:o},d,g)):r.createElement(K.Z,(0,s.Z)({to:f,isNavLink:!0},(t||n)&&{isActive:(e,t)=>n?ee(n,t.pathname):t.pathname.startsWith(p)},d,g))}function re(e){let{className:t,isDropdownItem:n=!1,...o}=e;const i=r.createElement(ne,(0,s.Z)({className:(0,a.Z)(n?"dropdown__link":"navbar__item navbar__link",t),isDropdownLink:n},o));return n?r.createElement("li",null,i):i}function ae(e){let{className:t,isDropdownItem:n,...o}=e;return r.createElement("li",{className:"menu__list-item"},r.createElement(ne,(0,s.Z)({className:(0,a.Z)("menu__link",t)},o)))}function oe(e){let{mobile:t=!1,position:n,...a}=e;const o=t?ae:re;return r.createElement(o,(0,s.Z)({},a,{activeClassName:a.activeClassName??(t?"menu__link--active":"navbar__link--active")}))}var ie=n(6043),se=n(8596),le=n(2263);function ue(e,t){return e.some((e=>function(e,t){return!!(0,se.Mg)(e.to,t)||!!ee(e.activeBaseRegex,t)||!(!e.activeBasePath||!t.startsWith(e.activeBasePath))}(e,t)))}function ce(e){let{items:t,position:n,className:o,onClick:i,...l}=e;const u=(0,r.useRef)(null),[c,d]=(0,r.useState)(!1);return(0,r.useEffect)((()=>{const e=e=>{u.current&&!u.current.contains(e.target)&&d(!1)};return document.addEventListener("mousedown",e),document.addEventListener("touchstart",e),document.addEventListener("focusin",e),()=>{document.removeEventListener("mousedown",e),document.removeEventListener("touchstart",e),document.removeEventListener("focusin",e)}}),[u]),r.createElement("div",{ref:u,className:(0,a.Z)("navbar__item","dropdown","dropdown--hoverable",{"dropdown--right":"right"===n,"dropdown--show":c})},r.createElement(ne,(0,s.Z)({"aria-haspopup":"true","aria-expanded":c,role:"button",href:l.to?void 0:"#",className:(0,a.Z)("navbar__link",o)},l,{onClick:l.to?void 0:e=>e.preventDefault(),onKeyDown:e=>{"Enter"===e.key&&(e.preventDefault(),d(!c))}}),l.children??l.label),r.createElement("ul",{className:"dropdown__menu"},t.map(((e,t)=>r.createElement(Qe,(0,s.Z)({isDropdownItem:!0,activeClassName:"dropdown__link--active"},e,{key:t}))))))}function de(e){let{items:t,className:n,position:o,onClick:i,...u}=e;const c=function(){const{siteConfig:{baseUrl:e}}=(0,le.Z)(),{pathname:t}=(0,l.TH)();return t.replace(e,"/")}(),d=ue(t,c),{collapsed:f,toggleCollapsed:p,setCollapsed:h}=(0,ie.u)({initialState:()=>!d});return(0,r.useEffect)((()=>{d&&h(!d)}),[c,d,h]),r.createElement("li",{className:(0,a.Z)("menu__list-item",{"menu__list-item--collapsed":f})},r.createElement(ne,(0,s.Z)({role:"button",className:(0,a.Z)("menu__link menu__link--sublist menu__link--sublist-caret",n)},u,{onClick:e=>{e.preventDefault(),p()}}),u.children??u.label),r.createElement(ie.z,{lazy:!0,as:"ul",className:"menu__list",collapsed:f},t.map(((e,t)=>r.createElement(Qe,(0,s.Z)({mobile:!0,isDropdownItem:!0,onClick:i,activeClassName:"menu__link--active"},e,{key:t}))))))}function fe(e){let{mobile:t=!1,...n}=e;const a=t?de:ce;return r.createElement(a,n)}var pe=n(4711);function he(e){let{width:t=20,height:n=20,...a}=e;return r.createElement("svg",(0,s.Z)({viewBox:"0 0 24 24",width:t,height:n,"aria-hidden":!0},a),r.createElement("path",{fill:"currentColor",d:"M12.87 15.07l-2.54-2.51.03-.03c1.74-1.94 2.98-4.17 3.71-6.53H17V4h-7V2H8v2H1v1.99h11.17C11.5 7.92 10.44 9.75 9 11.35 8.07 10.32 7.3 9.19 6.69 8h-2c.73 1.63 1.73 3.17 2.98 4.56l-5.09 5.02L4 19l5-5 3.11 3.11.76-2.04zM18.5 10h-2L12 22h2l1.12-3h4.75L21 22h2l-4.5-12zm-2.62 7l1.62-4.33L19.12 17h-3.24z"}))}const me="iconLanguage_nlXk";var ge=n(1029),be=n(412),ve=n(373),ye=n(143),we=n(22),Ee=n(8202),ke=n(3926),Se=n(1073),xe=n(2539),_e=n(726);const Le='<svg width="20" height="20" viewBox="0 0 20 20"><path d="M17 6v12c0 .52-.2 1-1 1H4c-.7 0-1-.33-1-1V2c0-.55.42-1 1-1h8l5 5zM14 8h-3.13c-.51 0-.87-.34-.87-.87V4" stroke="currentColor" fill="none" fill-rule="evenodd" stroke-linejoin="round"></path></svg>',Ce='<svg width="20" height="20" viewBox="0 0 20 20"><path d="M13 13h4-4V8H7v5h6v4-4H7V8H3h4V3v5h6V3v5h4-4v5zm-6 0v4-4H3h4z" stroke="currentColor" fill="none" fill-rule="evenodd" stroke-linecap="round" stroke-linejoin="round"></path></svg>',Te='<svg width="20" height="20" viewBox="0 0 20 20"><path d="M17 5H3h14zm0 5H3h14zm0 5H3h14z" stroke="currentColor" fill="none" fill-rule="evenodd" stroke-linejoin="round"></path></svg>',Ae='<svg width="20" height="20" viewBox="0 0 20 20"><g stroke="currentColor" fill="none" fill-rule="evenodd" stroke-linecap="round" stroke-linejoin="round"><path d="M18 3v4c0 2-2 4-4 4H2"></path><path d="M8 17l-6-6 6-6"></path></g></svg>',Oe='<svg width="40" height="40" viewBox="0 0 20 20" fill="none" fill-rule="evenodd" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"><path d="M15.5 4.8c2 3 1.7 7-1 9.7h0l4.3 4.3-4.3-4.3a7.8 7.8 0 01-9.8 1m-2.2-2.2A7.8 7.8 0 0113.2 2.4M2 18L18 2"></path></svg>',Pe='<svg viewBox="0 0 24 54"><g stroke="currentColor" fill="none" fill-rule="evenodd" stroke-linecap="round" stroke-linejoin="round"><path d="M8 6v42M20 27H8.3"></path></g></svg>',Ne='<svg viewBox="0 0 24 54"><g stroke="currentColor" fill="none" fill-rule="evenodd" stroke-linecap="round" stroke-linejoin="round"><path d="M8 6v21M20 27H8.3"></path></g></svg>',De={searchBar:"searchBar_RVTs",dropdownMenu:"dropdownMenu_qbY6",searchBarLeft:"searchBarLeft_MXDe",suggestion:"suggestion_fB_2",cursor:"cursor_eG29",hitTree:"hitTree_kk6K",hitIcon:"hitIcon_a7Zy",hitPath:"hitPath_ieM4",noResultsIcon:"noResultsIcon_EBY5",hitFooter:"hitFooter_E9YW",hitWrapper:"hitWrapper_sAK8",hitTitle:"hitTitle_vyVt",hitAction:"hitAction_NqkB",hideAction:"hideAction_vcyE",noResults:"noResults_l6Q3",searchBarContainer:"searchBarContainer_NW3z",searchBarLoadingRing:"searchBarLoadingRing_YnHq",searchClearButton:"searchClearButton_qk4g",searchIndexLoading:"searchIndexLoading_EJ1f",searchHintContainer:"searchHintContainer_Pkmr",searchHint:"searchHint_iIMx",focused:"focused_OWtg",input:"input_FOTf",hint:"hint_URu1",suggestions:"suggestions_X8XU",dataset:"dataset_QiCy",empty:"empty_eITn"};function Ie(e){let{document:t,type:n,page:r,metadata:a,tokens:o,isInterOfTree:i,isLastOfTree:s}=e;const l=0===n,u=1===n,c=[];i?c.push(Pe):s&&c.push(Ne);const d=c.map((e=>`<span class="${De.hitTree}">${e}</span>`)),f=`<span class="${De.hitIcon}">${l?Le:u?Ce:Te}</span>`,p=[`<span class="${De.hitTitle}">${(0,_e.o)(t.t,(0,Se.m)(a,"t"),o)}</span>`];if(!i&&!s&&ge.H6){const e=r?(r.b??[]).concat(r.t).concat(t.s&&t.s!==r.t?t.s:[]):t.b;p.push(`<span class="${De.hitPath}">${(0,ke.e)(e??[])}</span>`)}else l||p.push(`<span class="${De.hitPath}">${(0,xe.C)(r.t||(t.u.startsWith("/docs/api-reference/")?"API Reference":""),o)}</span>`);const h=`<span class="${De.hitAction}">${Ae}</span>`;return[...d,f,`<span class="${De.hitWrapper}">`,...p,"</span>",h].join("")}function Re(){return`<span class="${De.noResults}"><span class="${De.noResultsIcon}">${Oe}</span><span>${(0,u.I)({id:"theme.SearchBar.noResultsText",message:"No results"})}</span></span>`}var Me=n(311);async function Fe(){const e=await Promise.all([n.e(8443),n.e(5525)]).then(n.t.bind(n,6937,23)),t=e.default;return t.noConflict?t.noConflict():e.noConflict&&e.noConflict(),t}const Be="_highlight";const je=function(e){let{handleSearchBarToggle:t}=e;const{siteConfig:{baseUrl:n}}=(0,le.Z)(),o=(0,ye.gA)();let i=n;try{const{preferredVersion:e}=(0,ve.J)(o?.pluginId??ge.gQ);e&&!e.isLast&&(i=e.path+"/")}catch(R){if(ge.l9&&!(R instanceof P.i6))throw R}const s=(0,l.k6)(),c=(0,l.TH)(),d=(0,r.useRef)(null),f=(0,r.useRef)(new Map),p=(0,r.useRef)(!1),[h,m]=(0,r.useState)(!1),[g,b]=(0,r.useState)(!1),[v,y]=(0,r.useState)(""),w=(0,r.useRef)(null),E=(0,r.useRef)(""),[k,S]=(0,r.useState)("");(0,r.useEffect)((()=>{if(!Array.isArray(ge.Kc))return;let e="";if(c.pathname.startsWith(i)){const t=c.pathname.substring(i.length),n=ge.Kc.find((e=>t===e||t.startsWith(`${e}/`)));n&&(e=n)}E.current!==e&&(f.current.delete(e),E.current=e),S(e)}),[c.pathname,i]);const x=!!ge.hG&&Array.isArray(ge.Kc)&&""===k,_=(0,r.useCallback)((async()=>{if(x||f.current.get(k))return;f.current.set(k,"loading"),w.current?.autocomplete.destroy(),m(!0);const[{wrappedIndexes:e,zhDictionary:t},r]=await Promise.all([(0,we.w)(i,k),Fe()]);if(w.current=r(d.current,{hint:!1,autoselect:!0,openOnFocus:!0,cssClasses:{root:(0,a.Z)(De.searchBar,{[De.searchBarLeft]:"left"===ge.pu}),noPrefix:!0,dropdownMenu:De.dropdownMenu,input:De.input,hint:De.hint,suggestions:De.suggestions,suggestion:De.suggestion,cursor:De.cursor,dataset:De.dataset,empty:De.empty}},[{source:(0,Ee.v)(e,t,ge.qo),templates:{suggestion:Ie,empty:Re,footer:e=>{let{query:t,isEmpty:r}=e;if(r&&!k)return;const a=(e=>{let{query:t,isEmpty:r}=e;const a=document.createElement("a"),o=new URLSearchParams,l=(0,u.I)({id:"theme.SearchBar.seeAll",message:"See all results"}),c=(0,u.I)({id:"theme.SearchBar.seeAllOutsideContext",message:"See results outside {context}"},{context:k}),d=(0,u.I)({id:"theme.SearchBar.searchInContext",message:"See all results in {context}"},{context:k});let f;if(o.set("q",t),f=k&&r?c:k?d:l,Array.isArray(ge.Kc)&&!r&&o.set("ctx",k),i!==n){if(!i.startsWith(n))throw new Error(`Version url '${i}' does not start with base url '${n}', this is a bug of \`@easyops-cn/docusaurus-search-local\`, please report it.`);o.set("version",i.substring(n.length))}const p=`${n}search?${o.toString()}`;return a.href=p,a.textContent=f,a.addEventListener("click",(e=>{e.ctrlKey||e.metaKey||(e.preventDefault(),w.current?.autocomplete.close(),s.push(p))})),a})({query:t,isEmpty:r}),o=document.createElement("div");return o.className=De.hitFooter,o.appendChild(a),o}}}]).on("autocomplete:selected",(function(e,t){let{document:{u:n,h:r},tokens:a}=t;d.current?.blur();let o=n;if(ge.vc&&a.length>0){const e=new URLSearchParams;for(const t of a)e.append(Be,t);o+=`?${e.toString()}`}r&&(o+=r),s.push(o)})).on("autocomplete:closed",(()=>{d.current?.blur()})),f.current.set(k,"done"),m(!1),p.current){const e=d.current;e.value&&w.current?.autocomplete.open(),e.focus()}}),[x,k,i,n,s]);(0,r.useEffect)((()=>{if(!ge.vc)return;const e=be.Z.canUseDOM?new URLSearchParams(c.search).getAll(Be):[];setTimeout((()=>{const t=document.querySelector("article");if(!t)return;const n=new ge.vc(t);n.unmark(),0!==e.length&&n.mark(e),y(e.join(" ")),w.current?.autocomplete.setVal(e.join(" "))}))}),[c.search,c.pathname]);const[L,C]=(0,r.useState)(!1),T=(0,r.useCallback)((()=>{p.current=!0,_(),C(!0),t?.(!0)}),[t,_]),A=(0,r.useCallback)((()=>{C(!1),t?.(!1)}),[t]),O=(0,r.useCallback)((()=>{_()}),[_]),N=(0,r.useCallback)((e=>{y(e.target.value),e.target.value&&b(!0)}),[]),D=!!be.Z.canUseDOM&&/mac/i.test(navigator.userAgentData?.platform??navigator.platform);(0,r.useEffect)((()=>{if(!ge.AY)return;const e=e=>{!(D?e.metaKey:e.ctrlKey)||"k"!==e.key&&"K"!==e.key||(e.preventDefault(),d.current?.focus(),T())};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}}),[D,T]);const I=(0,r.useCallback)((()=>{const e=new URLSearchParams(c.search);e.delete(Be);const t=e.toString(),n=c.pathname+(""!=t?`?${t}`:"")+c.hash;n!=c.pathname+c.search+c.hash&&s.push(n),y(""),w.current?.autocomplete.setVal("")}),[c.pathname,c.search,c.hash,s]);return r.createElement("div",{className:(0,a.Z)("navbar__search",De.searchBarContainer,{[De.searchIndexLoading]:h&&g,[De.focused]:L}),hidden:x},r.createElement("input",{placeholder:(0,u.I)({id:"theme.SearchBar.label",message:"Search",description:"The ARIA label and placeholder for search button"}),"aria-label":"Search",className:"navbar__search-input",onMouseEnter:O,onFocus:T,onBlur:A,onChange:N,ref:d,value:v}),r.createElement(Me.Z,{className:De.searchBarLoadingRing}),ge.AY&&ge.t_&&(""!==v?r.createElement("button",{className:De.searchClearButton,onClick:I},"\u2715"):be.Z.canUseDOM&&r.createElement("div",{className:De.searchHintContainer},r.createElement("kbd",{className:De.searchHint},D?"\u2318":"ctrl"),r.createElement("kbd",{className:De.searchHint},"K"))))},$e={searchBox:"searchBox_ZlJk"};function ze(e){let{children:t,className:n}=e;return r.createElement("div",{className:(0,a.Z)(n,$e.searchBox)},t)}var Ue=n(2802);const He=e=>e.docs.find((t=>t.id===e.mainDocId));const Ze={default:oe,localeDropdown:function(e){let{mobile:t,dropdownItemsBefore:n,dropdownItemsAfter:a,...o}=e;const{i18n:{currentLocale:i,locales:c,localeConfigs:d}}=(0,le.Z)(),f=(0,pe.l)(),{search:p,hash:h}=(0,l.TH)(),m=[...n,...c.map((e=>{const n=`${`pathname://${f.createUrl({locale:e,fullyQualified:!1})}`}${p}${h}`;return{label:d[e].label,lang:d[e].htmlLang,to:n,target:"_self",autoAddBaseUrl:!1,className:e===i?t?"menu__link--active":"dropdown__link--active":""}})),...a],g=t?(0,u.I)({message:"Languages",id:"theme.navbar.mobileLanguageDropdown.label",description:"The label for the mobile language switcher dropdown"}):d[i].label;return r.createElement(fe,(0,s.Z)({},o,{mobile:t,label:r.createElement(r.Fragment,null,r.createElement(he,{className:me}),g),items:m}))},search:function(e){let{mobile:t,className:n}=e;return t?null:r.createElement(ze,{className:n},r.createElement(je,null))},dropdown:fe,html:function(e){let{value:t,className:n,mobile:o=!1,isDropdownItem:i=!1}=e;const s=i?"li":"div";return r.createElement(s,{className:(0,a.Z)({navbar__item:!o&&!i,"menu__list-item":o},n),dangerouslySetInnerHTML:{__html:t}})},doc:function(e){let{docId:t,label:n,docsPluginId:a,...o}=e;const{activeDoc:i}=(0,ye.Iw)(a),l=(0,Ue.vY)(t,a);return null===l?null:r.createElement(oe,(0,s.Z)({exact:!0},o,{isActive:()=>i?.path===l.path||!!i?.sidebar&&i.sidebar===l.sidebar,label:n??l.id,to:l.path}))},docSidebar:function(e){let{sidebarId:t,label:n,docsPluginId:a,...o}=e;const{activeDoc:i}=(0,ye.Iw)(a),l=(0,Ue.oz)(t,a).link;if(!l)throw new Error(`DocSidebarNavbarItem: Sidebar with ID "${t}" doesn't have anything to be linked to.`);return r.createElement(oe,(0,s.Z)({exact:!0},o,{isActive:()=>i?.sidebar===t,label:n??l.label,to:l.path}))},docsVersion:function(e){let{label:t,to:n,docsPluginId:a,...o}=e;const i=(0,Ue.lO)(a)[0],l=t??i.label,u=n??(e=>e.docs.find((t=>t.id===e.mainDocId)))(i).path;return r.createElement(oe,(0,s.Z)({},o,{label:l,to:u}))},docsVersionDropdown:function(e){let{mobile:t,docsPluginId:n,dropdownActiveClassDisabled:a,dropdownItemsBefore:o,dropdownItemsAfter:i,...c}=e;const{search:d,hash:f}=(0,l.TH)(),p=(0,ye.Iw)(n),h=(0,ye.gB)(n),{savePreferredVersionName:m}=(0,ve.J)(n),g=[...o,...h.map((e=>{const t=p.alternateDocVersions[e.name]??He(e);return{label:e.label,to:`${t.path}${d}${f}`,isActive:()=>e===p.activeVersion,onClick:()=>m(e.name)}})),...i],b=(0,Ue.lO)(n)[0],v=t&&g.length>1?(0,u.I)({id:"theme.navbar.mobileVersionsDropdown.label",message:"Versions",description:"The label for the navbar versions dropdown on mobile view"}):b.label,y=t&&g.length>1?void 0:He(b).path;return g.length<=1?r.createElement(oe,(0,s.Z)({},c,{mobile:t,label:v,to:y,isActive:a?()=>!1:void 0})):r.createElement(fe,(0,s.Z)({},c,{mobile:t,label:v,to:y,items:g,isActive:a?()=>!1:void 0}))}};function Qe(e){let{type:t,...n}=e;const a=function(e,t){return e&&"default"!==e?e:"items"in t?"dropdown":"default"}(t,n),o=Ze[a];if(!o)throw new Error(`No NavbarItem component found for type "${t}".`);return r.createElement(o,n)}function Ve(){const e=(0,A.e)(),t=(0,w.L)().navbar.items;return r.createElement("ul",{className:"menu__list"},t.map(((t,n)=>r.createElement(Qe,(0,s.Z)({mobile:!0},t,{onClick:()=>e.toggle(),key:n})))))}function We(e){return r.createElement("button",(0,s.Z)({},e,{type:"button",className:"clean-btn navbar-sidebar__back"}),r.createElement(u.Z,{id:"theme.navbar.mobileSidebarSecondaryMenu.backButtonLabel",description:"The label of the back button to return to main menu, inside the mobile navbar sidebar secondary menu (notably used to display the docs sidebar)"},"\u2190 Back to main menu"))}function Ge(){const e=0===(0,w.L)().navbar.items.length,t=M();return r.createElement(r.Fragment,null,!e&&r.createElement(We,{onClick:()=>t.hide()}),t.content)}function qe(){const e=(0,A.e)();var t;return void 0===(t=e.shown)&&(t=!0),(0,r.useEffect)((()=>(document.body.style.overflow=t?"hidden":"visible",()=>{document.body.style.overflow="visible"})),[t]),e.shouldRender?r.createElement(F,{header:r.createElement(Y,null),primaryMenu:r.createElement(Ve,null),secondaryMenu:r.createElement(Ge,null)}):null}const Ye={navbarHideable:"navbarHideable_m1mJ",navbarHidden:"navbarHidden_jGov"};function Ke(e){return r.createElement("div",(0,s.Z)({role:"presentation"},e,{className:(0,a.Z)("navbar-sidebar__backdrop",e.className)}))}function Xe(e){let{children:t}=e;const{navbar:{hideOnScroll:n,style:o}}=(0,w.L)(),i=(0,A.e)(),{navbarRef:s,isNavbarVisible:l}=function(e){const[t,n]=(0,r.useState)(e),a=(0,r.useRef)(!1),o=(0,r.useRef)(0),i=(0,r.useCallback)((e=>{null!==e&&(o.current=e.getBoundingClientRect().height)}),[]);return(0,O.RF)(((t,r)=>{let{scrollY:i}=t;if(!e)return;if(i<o.current)return void n(!0);if(a.current)return void(a.current=!1);const s=r?.scrollY,l=document.documentElement.scrollHeight-o.current,u=window.innerHeight;s&&i>=s?n(!1):i+u<l&&n(!0)})),(0,c.S)((t=>{if(!e)return;const r=t.location.hash;if(r?document.getElementById(r.substring(1)):void 0)return a.current=!0,void n(!1);n(!0)})),{navbarRef:i,isNavbarVisible:t}}(n);return r.createElement("nav",{ref:s,"aria-label":(0,u.I)({id:"theme.NavBar.navAriaLabel",message:"Main",description:"The ARIA label for the main navigation"}),className:(0,a.Z)("navbar","navbar--fixed-top",n&&[Ye.navbarHideable,!l&&Ye.navbarHidden],{"navbar--dark":"dark"===o,"navbar--primary":"primary"===o,"navbar-sidebar--show":i.shown})},t,r.createElement(Ke,{onClick:i.toggle}),r.createElement(qe,null))}var Je=n(8780);const et={errorBoundaryError:"errorBoundaryError_a6uf"};function tt(e){return r.createElement("button",(0,s.Z)({type:"button"},e),r.createElement(u.Z,{id:"theme.ErrorPageContent.tryAgain",description:"The label of the button to try again rendering when the React error boundary captures an error"},"Try again"))}function nt(e){let{error:t}=e;const n=(0,Je.getErrorCausalChain)(t).map((e=>e.message)).join("\n\nCause:\n");return r.createElement("p",{className:et.errorBoundaryError},n)}class rt extends r.Component{componentDidCatch(e,t){throw this.props.onError(e,t)}render(){return this.props.children}}const at="right";function ot(e){let{width:t=30,height:n=30,className:a,...o}=e;return r.createElement("svg",(0,s.Z)({className:a,width:t,height:n,viewBox:"0 0 30 30","aria-hidden":"true"},o),r.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeMiterlimit:"10",strokeWidth:"2",d:"M4 7h22M4 15h22M4 23h22"}))}function it(){const{toggle:e,shown:t}=(0,A.e)();return r.createElement("button",{onClick:e,"aria-label":(0,u.I)({id:"theme.docs.sidebar.toggleSidebarButtonAriaLabel",message:"Toggle navigation bar",description:"The ARIA label for hamburger menu button of mobile navigation"}),"aria-expanded":t,className:"navbar__toggle clean-btn",type:"button"},r.createElement(ot,null))}const st={colorModeToggle:"colorModeToggle_DEke"};function lt(e){let{items:t}=e;return r.createElement(r.Fragment,null,t.map(((e,t)=>r.createElement(rt,{key:t,onError:t=>new Error(`A theme navbar item failed to render.\nPlease double-check the following navbar item (themeConfig.navbar.items) of your Docusaurus config:\n${JSON.stringify(e,null,2)}`,{cause:t})},r.createElement(Qe,e)))))}function ut(e){let{left:t,right:n}=e;return r.createElement("div",{className:"navbar__inner"},r.createElement("div",{className:"navbar__items"},t),r.createElement("div",{className:"navbar__items navbar__items--right"},n))}function ct(){const e=(0,A.e)(),t=(0,w.L)().navbar.items,[n,a]=function(e){function t(e){return"left"===(e.position??at)}return[e.filter(t),e.filter((e=>!t(e)))]}(t),o=t.find((e=>"search"===e.type));return r.createElement(ut,{left:r.createElement(r.Fragment,null,!e.disabled&&r.createElement(it,null),r.createElement(G,null),r.createElement(lt,{items:n})),right:r.createElement(r.Fragment,null,r.createElement(lt,{items:a}),r.createElement(V,{className:st.colorModeToggle}),!o&&r.createElement(ze,null,r.createElement(je,null)))})}function dt(){return r.createElement(Xe,null,r.createElement(ct,null))}function ft(e){let{item:t}=e;const{to:n,href:a,label:o,prependBaseUrlToHref:i,...l}=t,u=(0,X.Z)(n),c=(0,X.Z)(a,{forcePrependBaseUrl:!0});return r.createElement(K.Z,(0,s.Z)({className:"footer__link-item"},a?{href:i?c:a}:{to:u},l),o,a&&!(0,J.Z)(a)&&r.createElement(te.Z,null))}function pt(e){let{item:t}=e;return t.html?r.createElement("li",{className:"footer__item",dangerouslySetInnerHTML:{__html:t.html}}):r.createElement("li",{key:t.href??t.to,className:"footer__item"},r.createElement(ft,{item:t}))}function ht(e){let{column:t}=e;return r.createElement("div",{className:"col footer__col"},r.createElement("div",{className:"footer__title"},t.title),r.createElement("ul",{className:"footer__items clean-list"},t.items.map(((e,t)=>r.createElement(pt,{key:t,item:e})))))}function mt(e){let{columns:t}=e;return r.createElement("div",{className:"row footer__links"},t.map(((e,t)=>r.createElement(ht,{key:t,column:e}))))}function gt(){return r.createElement("span",{className:"footer__link-separator"},"\xb7")}function bt(e){let{item:t}=e;return t.html?r.createElement("span",{className:"footer__link-item",dangerouslySetInnerHTML:{__html:t.html}}):r.createElement(ft,{item:t})}function vt(e){let{links:t}=e;return r.createElement("div",{className:"footer__links text--center"},r.createElement("div",{className:"footer__links"},t.map(((e,n)=>r.createElement(r.Fragment,{key:n},r.createElement(bt,{item:e}),t.length!==n+1&&r.createElement(gt,null))))))}function yt(e){let{links:t}=e;return function(e){return"title"in e[0]}(t)?r.createElement(mt,{columns:t}):r.createElement(vt,{links:t})}var wt=n(941);const Et={footerLogoLink:"footerLogoLink_BH7S"};function kt(e){let{logo:t}=e;const{withBaseUrl:n}=(0,X.C)(),o={light:n(t.src),dark:n(t.srcDark??t.src)};return r.createElement(wt.Z,{className:(0,a.Z)("footer__logo",t.className),alt:t.alt,sources:o,width:t.width,height:t.height,style:t.style})}function St(e){let{logo:t}=e;return t.href?r.createElement(K.Z,{href:t.href,className:Et.footerLogoLink,target:t.target},r.createElement(kt,{logo:t})):r.createElement(kt,{logo:t})}function xt(e){let{copyright:t}=e;return r.createElement("div",{className:"footer__copyright",dangerouslySetInnerHTML:{__html:t}})}function _t(e){let{style:t,links:n,logo:o,copyright:i}=e;return r.createElement("footer",{className:(0,a.Z)("footer",{"footer--dark":"dark"===t})},r.createElement("div",{className:"container container-fluid"},n,(o||i)&&r.createElement("div",{className:"footer__bottom text--center"},o&&r.createElement("div",{className:"margin-bottom--sm"},o),i)))}function Lt(){const{footer:e}=(0,w.L)();if(!e)return null;const{copyright:t,links:n,logo:a,style:o}=e;return r.createElement(_t,{style:o,links:n&&n.length>0&&r.createElement(yt,{links:n}),logo:a&&r.createElement(St,{logo:a}),copyright:t&&r.createElement(xt,{copyright:t})})}const Ct=r.memo(Lt),Tt=(0,P.Qc)([B.S,E.pl,O.OC,ve.L5,i.VC,function(e){let{children:t}=e;return r.createElement(N.n2,null,r.createElement(A.M,null,r.createElement(I,null,t)))}]);function At(e){let{children:t}=e;return r.createElement(Tt,null,t)}function Ot(e){let{error:t,tryAgain:n}=e;return r.createElement("main",{className:"container margin-vert--xl"},r.createElement("div",{className:"row"},r.createElement("div",{className:"col col--6 col--offset-3"},r.createElement("h1",{className:"hero__title"},r.createElement(u.Z,{id:"theme.ErrorPageContent.title",description:"The title of the fallback page when the page crashed"},"This page crashed.")),r.createElement("div",{className:"margin-vert--lg"},r.createElement(tt,{onClick:n,className:"button button--primary shadow--lw"})),r.createElement("hr",null),r.createElement("div",{className:"margin-vert--md"},r.createElement(nt,{error:t})))))}const Pt={mainWrapper:"mainWrapper_z2l0"};function Nt(e){const{children:t,noFooter:n,wrapperClassName:s,title:l,description:u}=e;return(0,b.t)(),r.createElement(At,null,r.createElement(i.d,{title:l,description:u}),r.createElement(y,null),r.createElement(T,null),r.createElement(dt,null),r.createElement("div",{id:d,className:(0,a.Z)(g.k.wrapper.main,Pt.mainWrapper,s)},r.createElement(o.Z,{fallback:e=>r.createElement(Ot,e)},t)),!n&&r.createElement(Ct,null))}},1327:(e,t,n)=>{"use strict";n.d(t,{Z:()=>d});var r=n(7462),a=n(7294),o=n(9960),i=n(4996),s=n(2263),l=n(6668),u=n(941);function c(e){let{logo:t,alt:n,imageClassName:r}=e;const o={light:(0,i.Z)(t.src),dark:(0,i.Z)(t.srcDark||t.src)},s=a.createElement(u.Z,{className:t.className,sources:o,height:t.height,width:t.width,alt:n,style:t.style});return r?a.createElement("div",{className:r},s):s}function d(e){const{siteConfig:{title:t}}=(0,s.Z)(),{navbar:{title:n,logo:u}}=(0,l.L)(),{imageClassName:d,titleClassName:f,...p}=e,h=(0,i.Z)(u?.href||"/"),m=n?"":t,g=u?.alt??m;return a.createElement(o.Z,(0,r.Z)({to:h},p,u?.target&&{target:u.target}),u&&a.createElement(c,{logo:u,alt:g,imageClassName:d}),null!=n&&a.createElement("b",{className:f},n))}},197:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(7294),a=n(5742);function o(e){let{locale:t,version:n,tag:o}=e;const i=t;return r.createElement(a.Z,null,t&&r.createElement("meta",{name:"docusaurus_locale",content:t}),n&&r.createElement("meta",{name:"docusaurus_version",content:n}),o&&r.createElement("meta",{name:"docusaurus_tag",content:o}),i&&r.createElement("meta",{name:"docsearch:language",content:i}),n&&r.createElement("meta",{name:"docsearch:version",content:n}),o&&r.createElement("meta",{name:"docsearch:docusaurus_tag",content:o}))}},941:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var r=n(7462),a=n(7294),o=n(6010),i=n(2389),s=n(2949);const l={themedImage:"themedImage_ToTc","themedImage--light":"themedImage--light_HNdA","themedImage--dark":"themedImage--dark_i4oU"};function u(e){const t=(0,i.Z)(),{colorMode:n}=(0,s.I)(),{sources:u,className:c,alt:d,...f}=e,p=t?"dark"===n?["dark"]:["light"]:["light","dark"];return a.createElement(a.Fragment,null,p.map((e=>a.createElement("img",(0,r.Z)({key:e,src:u[e],alt:d,className:(0,o.Z)(l.themedImage,l[`themedImage--${e}`],c)},f)))))}},6043:(e,t,n)=>{"use strict";n.d(t,{u:()=>l,z:()=>g});var r=n(7462),a=n(7294),o=n(412),i=n(1442);const s="ease-in-out";function l(e){let{initialState:t}=e;const[n,r]=(0,a.useState)(t??!1),o=(0,a.useCallback)((()=>{r((e=>!e))}),[]);return{collapsed:n,setCollapsed:r,toggleCollapsed:o}}const u={display:"none",overflow:"hidden",height:"0px"},c={display:"block",overflow:"visible",height:"auto"};function d(e,t){const n=t?u:c;e.style.display=n.display,e.style.overflow=n.overflow,e.style.height=n.height}function f(e){let{collapsibleRef:t,collapsed:n,animation:r}=e;const o=(0,a.useRef)(!1);(0,a.useEffect)((()=>{const e=t.current;function a(){const t=e.scrollHeight,n=r?.duration??function(e){if((0,i.n)())return 1;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}(t);return{transition:`height ${n}ms ${r?.easing??s}`,height:`${t}px`}}function l(){const t=a();e.style.transition=t.transition,e.style.height=t.height}if(!o.current)return d(e,n),void(o.current=!0);return e.style.willChange="height",function(){const t=requestAnimationFrame((()=>{n?(l(),requestAnimationFrame((()=>{e.style.height=u.height,e.style.overflow=u.overflow}))):(e.style.display="block",requestAnimationFrame((()=>{l()})))}));return()=>cancelAnimationFrame(t)}()}),[t,n,r])}function p(e){if(!o.Z.canUseDOM)return e?u:c}function h(e){let{as:t="div",collapsed:n,children:r,animation:o,onCollapseTransitionEnd:i,className:s,disableSSRStyle:l}=e;const u=(0,a.useRef)(null);return f({collapsibleRef:u,collapsed:n,animation:o}),a.createElement(t,{ref:u,style:l?void 0:p(n),onTransitionEnd:e=>{"height"===e.propertyName&&(d(u.current,n),i?.(n))},className:s},r)}function m(e){let{collapsed:t,...n}=e;const[o,i]=(0,a.useState)(!t),[s,l]=(0,a.useState)(t);return(0,a.useLayoutEffect)((()=>{t||i(!0)}),[t]),(0,a.useLayoutEffect)((()=>{o&&l(t)}),[o,t]),o?a.createElement(h,(0,r.Z)({},n,{collapsed:s})):null}function g(e){let{lazy:t,...n}=e;const r=t?m:h;return a.createElement(r,n)}},9689:(e,t,n)=>{"use strict";n.d(t,{nT:()=>h,pl:()=>p});var r=n(7294),a=n(2389),o=n(12),i=n(902),s=n(6668);const l=(0,o.WA)("docusaurus.announcement.dismiss"),u=(0,o.WA)("docusaurus.announcement.id"),c=()=>"true"===l.get(),d=e=>l.set(String(e)),f=r.createContext(null);function p(e){let{children:t}=e;const n=function(){const{announcementBar:e}=(0,s.L)(),t=(0,a.Z)(),[n,o]=(0,r.useState)((()=>!!t&&c()));(0,r.useEffect)((()=>{o(c())}),[]);const i=(0,r.useCallback)((()=>{d(!0),o(!0)}),[]);return(0,r.useEffect)((()=>{if(!e)return;const{id:t}=e;let n=u.get();"annoucement-bar"===n&&(n="announcement-bar");const r=t!==n;u.set(t),r&&d(!1),!r&&c()||o(!1)}),[e]),(0,r.useMemo)((()=>({isActive:!!e&&!n,close:i})),[e,n,i])}();return r.createElement(f.Provider,{value:n},t)}function h(){const e=(0,r.useContext)(f);if(!e)throw new i.i6("AnnouncementBarProvider");return e}},2949:(e,t,n)=>{"use strict";n.d(t,{I:()=>g,S:()=>m});var r=n(7294),a=n(412),o=n(902),i=n(12),s=n(6668);const l=r.createContext(void 0),u="theme",c=(0,i.WA)(u),d={light:"light",dark:"dark"},f=e=>e===d.dark?d.dark:d.light,p=e=>a.Z.canUseDOM?f(document.documentElement.getAttribute("data-theme")):f(e),h=e=>{c.set(f(e))};function m(e){let{children:t}=e;const n=function(){const{colorMode:{defaultMode:e,disableSwitch:t,respectPrefersColorScheme:n}}=(0,s.L)(),[a,o]=(0,r.useState)(p(e));(0,r.useEffect)((()=>{t&&c.del()}),[t]);const i=(0,r.useCallback)((function(t,r){void 0===r&&(r={});const{persist:a=!0}=r;t?(o(t),a&&h(t)):(o(n?window.matchMedia("(prefers-color-scheme: dark)").matches?d.dark:d.light:e),c.del())}),[n,e]);(0,r.useEffect)((()=>{document.documentElement.setAttribute("data-theme",f(a))}),[a]),(0,r.useEffect)((()=>{if(t)return;const e=e=>{if(e.key!==u)return;const t=c.get();null!==t&&i(f(t))};return window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)}),[t,i]);const l=(0,r.useRef)(!1);return(0,r.useEffect)((()=>{if(t&&!n)return;const e=window.matchMedia("(prefers-color-scheme: dark)"),r=()=>{window.matchMedia("print").matches||l.current?l.current=window.matchMedia("print").matches:i(null)};return e.addListener(r),()=>e.removeListener(r)}),[i,t,n]),(0,r.useMemo)((()=>({colorMode:a,setColorMode:i,get isDarkTheme(){return a===d.dark},setLightTheme(){i(d.light)},setDarkTheme(){i(d.dark)}})),[a,i])}();return r.createElement(l.Provider,{value:n},t)}function g(){const e=(0,r.useContext)(l);if(null==e)throw new o.i6("ColorModeProvider","Please see https://docusaurus.io/docs/api/themes/configuration#use-color-mode.");return e}},373:(e,t,n)=>{"use strict";n.d(t,{J:()=>v,L5:()=>g});var r=n(7294),a=n(143),o=n(9935),i=n(6668),s=n(2802),l=n(902),u=n(12);const c=e=>`docs-preferred-version-${e}`,d={save:(e,t,n)=>{(0,u.WA)(c(e),{persistence:t}).set(n)},read:(e,t)=>(0,u.WA)(c(e),{persistence:t}).get(),clear:(e,t)=>{(0,u.WA)(c(e),{persistence:t}).del()}},f=e=>Object.fromEntries(e.map((e=>[e,{preferredVersionName:null}])));const p=r.createContext(null);function h(){const e=(0,a._r)(),t=(0,i.L)().docs.versionPersistence,n=(0,r.useMemo)((()=>Object.keys(e)),[e]),[o,s]=(0,r.useState)((()=>f(n)));(0,r.useEffect)((()=>{s(function(e){let{pluginIds:t,versionPersistence:n,allDocsData:r}=e;function a(e){const t=d.read(e,n);return r[e].versions.some((e=>e.name===t))?{preferredVersionName:t}:(d.clear(e,n),{preferredVersionName:null})}return Object.fromEntries(t.map((e=>[e,a(e)])))}({allDocsData:e,versionPersistence:t,pluginIds:n}))}),[e,t,n]);return[o,(0,r.useMemo)((()=>({savePreferredVersion:function(e,n){d.save(e,t,n),s((t=>({...t,[e]:{preferredVersionName:n}})))}})),[t])]}function m(e){let{children:t}=e;const n=h();return r.createElement(p.Provider,{value:n},t)}function g(e){let{children:t}=e;return s.cE?r.createElement(m,null,t):r.createElement(r.Fragment,null,t)}function b(){const e=(0,r.useContext)(p);if(!e)throw new l.i6("DocsPreferredVersionContextProvider");return e}function v(e){void 0===e&&(e=o.m);const t=(0,a.zh)(e),[n,i]=b(),{preferredVersionName:s}=n[e];return{preferredVersion:t.versions.find((e=>e.name===s))??null,savePreferredVersionName:(0,r.useCallback)((t=>{i.savePreferredVersion(e,t)}),[i,e])}}},1116:(e,t,n)=>{"use strict";n.d(t,{V:()=>l,b:()=>s});var r=n(7294),a=n(902);const o=Symbol("EmptyContext"),i=r.createContext(o);function s(e){let{children:t,name:n,items:a}=e;const o=(0,r.useMemo)((()=>n&&a?{name:n,items:a}:null),[n,a]);return r.createElement(i.Provider,{value:o},t)}function l(){const e=(0,r.useContext)(i);if(e===o)throw new a.i6("DocsSidebarProvider");return e}},2961:(e,t,n)=>{"use strict";n.d(t,{M:()=>f,e:()=>p});var r=n(7294),a=n(3102),o=n(7524),i=n(6550),s=(n(1688),n(902));function l(e){!function(e){const t=(0,i.k6)(),n=(0,s.zX)(e);(0,r.useEffect)((()=>t.block(((e,t)=>n(e,t)))),[t,n])}(((t,n)=>{if("POP"===n)return e(t,n)}))}var u=n(6668);const c=r.createContext(void 0);function d(){const e=function(){const e=(0,a.HY)(),{items:t}=(0,u.L)().navbar;return 0===t.length&&!e.component}(),t=(0,o.i)(),n=!e&&"mobile"===t,[i,s]=(0,r.useState)(!1);l((()=>{if(i)return s(!1),!1}));const c=(0,r.useCallback)((()=>{s((e=>!e))}),[]);return(0,r.useEffect)((()=>{"desktop"===t&&s(!1)}),[t]),(0,r.useMemo)((()=>({disabled:e,shouldRender:n,toggle:c,shown:i})),[e,n,c,i])}function f(e){let{children:t}=e;const n=d();return r.createElement(c.Provider,{value:n},t)}function p(){const e=r.useContext(c);if(void 0===e)throw new s.i6("NavbarMobileSidebarProvider");return e}},3102:(e,t,n)=>{"use strict";n.d(t,{HY:()=>s,Zo:()=>l,n2:()=>i});var r=n(7294),a=n(902);const o=r.createContext(null);function i(e){let{children:t}=e;const n=(0,r.useState)({component:null,props:null});return r.createElement(o.Provider,{value:n},t)}function s(){const e=(0,r.useContext)(o);if(!e)throw new a.i6("NavbarSecondaryMenuContentProvider");return e[0]}function l(e){let{component:t,props:n}=e;const i=(0,r.useContext)(o);if(!i)throw new a.i6("NavbarSecondaryMenuContentProvider");const[,s]=i,l=(0,a.Ql)(n);return(0,r.useEffect)((()=>{s({component:t,props:l})}),[s,t,l]),(0,r.useEffect)((()=>()=>s({component:null,props:null})),[s]),null}},9727:(e,t,n)=>{"use strict";n.d(t,{h:()=>a,t:()=>o});var r=n(7294);const a="navigation-with-keyboard";function o(){(0,r.useEffect)((()=>{function e(e){"keydown"===e.type&&"Tab"===e.key&&document.body.classList.add(a),"mousedown"===e.type&&document.body.classList.remove(a)}return document.addEventListener("keydown",e),document.addEventListener("mousedown",e),()=>{document.body.classList.remove(a),document.removeEventListener("keydown",e),document.removeEventListener("mousedown",e)}}),[])}},7524:(e,t,n)=>{"use strict";n.d(t,{i:()=>u});var r=n(7294),a=n(412);const o={desktop:"desktop",mobile:"mobile",ssr:"ssr"},i=996;function s(){return a.Z.canUseDOM?window.innerWidth>i?o.desktop:o.mobile:o.ssr}const l=!1;function u(){const[e,t]=(0,r.useState)((()=>l?"ssr":s()));return(0,r.useEffect)((()=>{function e(){t(s())}const n=l?window.setTimeout(e,1e3):void 0;return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e),clearTimeout(n)}}),[]),e}},5281:(e,t,n)=>{"use strict";n.d(t,{k:()=>r});const r={page:{blogListPage:"blog-list-page",blogPostPage:"blog-post-page",blogTagsListPage:"blog-tags-list-page",blogTagPostListPage:"blog-tags-post-list-page",docsDocPage:"docs-doc-page",docsTagsListPage:"docs-tags-list-page",docsTagDocListPage:"docs-tags-doc-list-page",mdxPage:"mdx-page"},wrapper:{main:"main-wrapper",blogPages:"blog-wrapper",docsPages:"docs-wrapper",mdxPages:"mdx-wrapper"},common:{editThisPage:"theme-edit-this-page",lastUpdated:"theme-last-updated",backToTopButton:"theme-back-to-top-button",codeBlock:"theme-code-block",admonition:"theme-admonition",admonitionType:e=>`theme-admonition-${e}`},layout:{},docs:{docVersionBanner:"theme-doc-version-banner",docVersionBadge:"theme-doc-version-badge",docBreadcrumbs:"theme-doc-breadcrumbs",docMarkdown:"theme-doc-markdown",docTocMobile:"theme-doc-toc-mobile",docTocDesktop:"theme-doc-toc-desktop",docFooter:"theme-doc-footer",docFooterTagsRow:"theme-doc-footer-tags-row",docFooterEditMetaRow:"theme-doc-footer-edit-meta-row",docSidebarContainer:"theme-doc-sidebar-container",docSidebarMenu:"theme-doc-sidebar-menu",docSidebarItemCategory:"theme-doc-sidebar-item-category",docSidebarItemLink:"theme-doc-sidebar-item-link",docSidebarItemCategoryLevel:e=>`theme-doc-sidebar-item-category-level-${e}`,docSidebarItemLinkLevel:e=>`theme-doc-sidebar-item-link-level-${e}`},blog:{}}},1442:(e,t,n)=>{"use strict";function r(){return window.matchMedia("(prefers-reduced-motion: reduce)").matches}n.d(t,{n:()=>r})},2802:(e,t,n)=>{"use strict";n.d(t,{Wl:()=>f,_F:()=>m,cE:()=>d,hI:()=>E,lO:()=>v,vY:()=>w,oz:()=>y,s1:()=>b});var r=n(7294),a=n(6550),o=n(8790),i=n(143),s=n(373),l=n(1116);function u(e){return Array.from(new Set(e))}var c=n(8596);const d=!!i._r;function f(e){if(e.href)return e.href;for(const t of e.items){if("link"===t.type)return t.href;if("category"===t.type){const e=f(t);if(e)return e}}}const p=(e,t)=>void 0!==e&&(0,c.Mg)(e,t),h=(e,t)=>e.some((e=>m(e,t)));function m(e,t){return"link"===e.type?p(e.href,t):"category"===e.type&&(p(e.href,t)||h(e.items,t))}function g(e){let{sidebarItems:t,pathname:n,onlyCategories:r=!1}=e;const a=[];return function e(t){for(const o of t)if("category"===o.type&&((0,c.Mg)(o.href,n)||e(o.items))||"link"===o.type&&(0,c.Mg)(o.href,n)){return r&&"category"!==o.type||a.unshift(o),!0}return!1}(t),a}function b(){const e=(0,l.V)(),{pathname:t}=(0,a.TH)(),n=(0,i.gA)()?.pluginData.breadcrumbs;return!1!==n&&e?g({sidebarItems:e.items,pathname:t}):null}function v(e){const{activeVersion:t}=(0,i.Iw)(e),{preferredVersion:n}=(0,s.J)(e),a=(0,i.yW)(e);return(0,r.useMemo)((()=>u([t,n,a].filter(Boolean))),[t,n,a])}function y(e,t){const n=v(t);return(0,r.useMemo)((()=>{const t=n.flatMap((e=>e.sidebars?Object.entries(e.sidebars):[])),r=t.find((t=>t[0]===e));if(!r)throw new Error(`Can't find any sidebar with id "${e}" in version${n.length>1?"s":""} ${n.map((e=>e.name)).join(", ")}".\nAvailable sidebar ids are:\n- ${t.map((e=>e[0])).join("\n- ")}`);return r[1]}),[e,n])}function w(e,t){const n=v(t);return(0,r.useMemo)((()=>{const t=n.flatMap((e=>e.docs)),r=t.find((t=>t.id===e));if(!r){if(n.flatMap((e=>e.draftIds)).includes(e))return null;throw new Error(`Couldn't find any doc with id "${e}" in version${n.length>1?"s":""} "${n.map((e=>e.name)).join(", ")}".\nAvailable doc ids are:\n- ${u(t.map((e=>e.id))).join("\n- ")}`)}return r}),[e,n])}function E(e){let{route:t,versionMetadata:n}=e;const r=(0,a.TH)(),i=t.routes,s=i.find((e=>(0,a.LX)(r.pathname,e)));if(!s)return null;const l=s.sidebar,u=l?n.docsSidebars[l]:void 0;return{docElement:(0,o.H)(i),sidebarName:l,sidebarItems:u}}},1944:(e,t,n)=>{"use strict";n.d(t,{FG:()=>f,d:()=>c,VC:()=>p});var r=n(7294),a=n(6010),o=n(5742),i=n(226);function s(){const e=r.useContext(i._);if(!e)throw new Error("Unexpected: no Docusaurus route context found");return e}var l=n(4996),u=n(2263);function c(e){let{title:t,description:n,keywords:a,image:i,children:s}=e;const c=function(e){const{siteConfig:t}=(0,u.Z)(),{title:n,titleDelimiter:r}=t;return e?.trim().length?`${e.trim()} ${r} ${n}`:n}(t),{withBaseUrl:d}=(0,l.C)(),f=i?d(i,{absolute:!0}):void 0;return r.createElement(o.Z,null,t&&r.createElement("title",null,c),t&&r.createElement("meta",{property:"og:title",content:c}),n&&r.createElement("meta",{name:"description",content:n}),n&&r.createElement("meta",{property:"og:description",content:n}),a&&r.createElement("meta",{name:"keywords",content:Array.isArray(a)?a.join(","):a}),f&&r.createElement("meta",{property:"og:image",content:f}),f&&r.createElement("meta",{name:"twitter:image",content:f}),s)}const d=r.createContext(void 0);function f(e){let{className:t,children:n}=e;const i=r.useContext(d),s=(0,a.Z)(i,t);return r.createElement(d.Provider,{value:s},r.createElement(o.Z,null,r.createElement("html",{className:s})),n)}function p(e){let{children:t}=e;const n=s(),o=`plugin-${n.plugin.name.replace(/docusaurus-(?:plugin|theme)-(?:content-)?/gi,"")}`;const i=`plugin-id-${n.plugin.id}`;return r.createElement(f,{className:(0,a.Z)(o,i)},t)}},902:(e,t,n)=>{"use strict";n.d(t,{D9:()=>i,Qc:()=>u,Ql:()=>l,i6:()=>s,zX:()=>o});var r=n(7294);const a=n(412).Z.canUseDOM?r.useLayoutEffect:r.useEffect;function o(e){const t=(0,r.useRef)(e);return a((()=>{t.current=e}),[e]),(0,r.useCallback)((function(){return t.current(...arguments)}),[])}function i(e){const t=(0,r.useRef)();return a((()=>{t.current=e})),t.current}class s extends Error{constructor(e,t){super(),this.name="ReactContextError",this.message=`Hook ${this.stack?.split("\n")[1]?.match(/at (?:\w+\.)?(?<name>\w+)/)?.groups.name??""} is called outside the <${e}>. ${t??""}`}}function l(e){const t=Object.entries(e);return t.sort(((e,t)=>e[0].localeCompare(t[0]))),(0,r.useMemo)((()=>e),t.flat())}function u(e){return t=>{let{children:n}=t;return r.createElement(r.Fragment,null,e.reduceRight(((e,t)=>r.createElement(t,null,e)),n))}}},8596:(e,t,n)=>{"use strict";n.d(t,{Mg:()=>i,Ns:()=>s});var r=n(7294),a=n(723),o=n(2263);function i(e,t){const n=e=>(!e||e.endsWith("/")?e:`${e}/`)?.toLowerCase();return n(e)===n(t)}function s(){const{baseUrl:e}=(0,o.Z)().siteConfig;return(0,r.useMemo)((()=>function(e){let{baseUrl:t,routes:n}=e;function r(e){return e.path===t&&!0===e.exact}function a(e){return e.path===t&&!e.exact}return function e(t){if(0===t.length)return;return t.find(r)||e(t.filter(a).flatMap((e=>e.routes??[])))}(n)}({routes:a.Z,baseUrl:e})),[e])}},2466:(e,t,n)=>{"use strict";n.d(t,{Ct:()=>f,OC:()=>l,RF:()=>d});var r=n(7294),a=n(412),o=n(2389),i=n(902);const s=r.createContext(void 0);function l(e){let{children:t}=e;const n=function(){const e=(0,r.useRef)(!0);return(0,r.useMemo)((()=>({scrollEventsEnabledRef:e,enableScrollEvents:()=>{e.current=!0},disableScrollEvents:()=>{e.current=!1}})),[])}();return r.createElement(s.Provider,{value:n},t)}function u(){const e=(0,r.useContext)(s);if(null==e)throw new i.i6("ScrollControllerProvider");return e}const c=()=>a.Z.canUseDOM?{scrollX:window.pageXOffset,scrollY:window.pageYOffset}:null;function d(e,t){void 0===t&&(t=[]);const{scrollEventsEnabledRef:n}=u(),a=(0,r.useRef)(c()),o=(0,i.zX)(e);(0,r.useEffect)((()=>{const e=()=>{if(!n.current)return;const e=c();o(e,a.current),a.current=e},t={passive:!0};return e(),window.addEventListener("scroll",e,t),()=>window.removeEventListener("scroll",e,t)}),[o,n,...t])}function f(){const e=(0,r.useRef)(null),t=(0,o.Z)()&&"smooth"===getComputedStyle(document.documentElement).scrollBehavior;return{startScroll:n=>{e.current=t?function(e){return window.scrollTo({top:e,behavior:"smooth"}),()=>{}}(n):function(e){let t=null;const n=document.documentElement.scrollTop>e;return function r(){const a=document.documentElement.scrollTop;(n&&a>e||!n&&a<e)&&(t=requestAnimationFrame(r),window.scrollTo(0,Math.floor(.85*(a-e))+e))}(),()=>t&&cancelAnimationFrame(t)}(n)},cancelScroll:()=>e.current?.()}}},3320:(e,t,n)=>{"use strict";n.d(t,{HX:()=>r,os:()=>a});n(2263);const r="default";function a(e,t){return`docs-${e}-${t}`}},12:(e,t,n)=>{"use strict";n.d(t,{WA:()=>l});n(7294),n(1688);const r="localStorage";function a(e){let{key:t,oldValue:n,newValue:r,storage:a}=e;if(n===r)return;const o=document.createEvent("StorageEvent");o.initStorageEvent("storage",!1,!1,t,n,r,window.location.href,a),window.dispatchEvent(o)}function o(e){if(void 0===e&&(e=r),"undefined"==typeof window)throw new Error("Browser storage is not available on Node.js/Docusaurus SSR process.");if("none"===e)return null;try{return window[e]}catch(n){return t=n,i||(console.warn("Docusaurus browser storage is not available.\nPossible reasons: running Docusaurus in an iframe, in an incognito browser session, or using too strict browser privacy settings.",t),i=!0),null}var t}let i=!1;const s={get:()=>null,set:()=>{},del:()=>{},listen:()=>()=>{}};function l(e,t){if("undefined"==typeof window)return function(e){function t(){throw new Error(`Illegal storage API usage for storage key "${e}".\nDocusaurus storage APIs are not supposed to be called on the server-rendering process.\nPlease only call storage APIs in effects and event handlers.`)}return{get:t,set:t,del:t,listen:t}}(e);const n=o(t?.persistence);return null===n?s:{get:()=>{try{return n.getItem(e)}catch(t){return console.error(`Docusaurus storage error, can't get key=${e}`,t),null}},set:t=>{try{const r=n.getItem(e);n.setItem(e,t),a({key:e,oldValue:r,newValue:t,storage:n})}catch(r){console.error(`Docusaurus storage error, can't set ${e}=${t}`,r)}},del:()=>{try{const t=n.getItem(e);n.removeItem(e),a({key:e,oldValue:t,newValue:null,storage:n})}catch(t){console.error(`Docusaurus storage error, can't delete key=${e}`,t)}},listen:t=>{try{const r=r=>{r.storageArea===n&&r.key===e&&t(r)};return window.addEventListener("storage",r),()=>window.removeEventListener("storage",r)}catch(r){return console.error(`Docusaurus storage error, can't listen for changes of key=${e}`,r),()=>{}}}}}},4711:(e,t,n)=>{"use strict";n.d(t,{l:()=>i});var r=n(2263),a=n(6550),o=n(8780);function i(){const{siteConfig:{baseUrl:e,url:t,trailingSlash:n},i18n:{defaultLocale:i,currentLocale:s}}=(0,r.Z)(),{pathname:l}=(0,a.TH)(),u=(0,o.applyTrailingSlash)(l,{trailingSlash:n,baseUrl:e}),c=s===i?e:e.replace(`/${s}/`,"/"),d=u.replace(e,"");return{createUrl:function(e){let{locale:n,fullyQualified:r}=e;return`${r?t:""}${function(e){return e===i?`${c}`:`${c}${e}/`}(n)}${d}`}}}},5936:(e,t,n)=>{"use strict";n.d(t,{S:()=>i});var r=n(7294),a=n(6550),o=n(902);function i(e){const t=(0,a.TH)(),n=(0,o.D9)(t),i=(0,o.zX)(e);(0,r.useEffect)((()=>{n&&t!==n&&i({location:t,previousLocation:n})}),[i,t,n])}},6668:(e,t,n)=>{"use strict";n.d(t,{L:()=>a});var r=n(2263);function a(){return(0,r.Z)().siteConfig.themeConfig}},8802:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){const{trailingSlash:n,baseUrl:r}=t;if(e.startsWith("#"))return e;if(void 0===n)return e;const[a]=e.split(/[#?]/),o="/"===a||a===r?a:(i=a,n?function(e){return e.endsWith("/")?e:`${e}/`}(i):function(e){return e.endsWith("/")?e.slice(0,-1):e}(i));var i;return e.replace(a,o)}},4143:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getErrorCausalChain=void 0,t.getErrorCausalChain=function e(t){return t.cause?[t,...e(t.cause)]:[t]}},8780:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.getErrorCausalChain=t.applyTrailingSlash=t.blogPostContainerID=void 0,t.blogPostContainerID="__blog-post-container";var a=n(8802);Object.defineProperty(t,"applyTrailingSlash",{enumerable:!0,get:function(){return r(a).default}});var o=n(4143);Object.defineProperty(t,"getErrorCausalChain",{enumerable:!0,get:function(){return o.getErrorCausalChain}})},311:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(7294),a=n(6010);const o={loadingRing:"loadingRing_RJI3","loading-ring":"loading-ring_FB5o"};function i(e){let{className:t}=e;return r.createElement("div",{className:(0,a.Z)(o.loadingRing,t)},r.createElement("div",null),r.createElement("div",null),r.createElement("div",null),r.createElement("div",null))}},22:(e,t,n)=>{"use strict";n.d(t,{w:()=>s});var r=n(1336),a=n.n(r),o=n(1029);const i=new Map;function s(e,t){const n=`${e}${t}`;let r=i.get(n);return r||(r=async function(e,t){{const n=`${e}${o.J.replace("{dir}",t?`-${t.replace(/\//g,"-")}`:"")}`;if(new URL(n,location.origin).origin!==location.origin)throw new Error("Unexpected version url");const r=await(await fetch(n)).json(),i=r.map(((e,t)=>{let{documents:n,index:r}=e;return{type:t,documents:n,index:a().Index.load(r)}})),s=r.reduce(((e,t)=>{for(const n of t.index.invertedIndex)/\p{Unified_Ideograph}/u.test(n[0][0])&&e.add(n[0]);return e}),new Set);return{wrappedIndexes:i,zhDictionary:Array.from(s)}}return{wrappedIndexes:[],zhDictionary:[]}}(e,t),i.set(n,r)),r}},8202:(e,t,n)=>{"use strict";n.d(t,{v:()=>l});var r=n(1336),a=n.n(r);var o=n(1029);function i(e){return s(e).concat(s(e.filter((e=>{const t=e[e.length-1];return!t.trailing&&t.maybeTyping})),!0))}function s(e,t){return e.map((e=>({tokens:e.map((e=>e.value)),term:e.map((e=>({value:e.value,presence:a().Query.presence.REQUIRED,wildcard:(t?e.trailing||e.maybeTyping:e.trailing)?a().Query.wildcard.TRAILING:a().Query.wildcard.NONE})))})))}function l(e,t,n){return function(r,s){const l=function(e,t){if(1===t.length&&["ja","jp","th"].includes(t[0]))return a()[t[0]].tokenizer(e).map((e=>e.toString()));let n=/[^-\s]+/g;return t.includes("zh")&&(n=/\w+|\p{Unified_Ideograph}+/gu),e.toLowerCase().match(n)||[]}(r,o.dK);if(0===l.length)return void s([]);const u=function(e,t){const n=function(e,t){const n=[];return function e(r,a){if(0===r.length)return void n.push(a);const o=r[0];if(/\p{Unified_Ideograph}/u.test(o)){const n=function(e,t){const n=[];return function e(r,a){let o=0,i=!1;for(const s of t)if(r.substr(0,s.length)===s){const t={missed:a.missed,term:a.term.concat({value:s})};r.length>s.length?e(r.substr(s.length),t):n.push(t),i=!0}else for(let t=s.length-1;t>o;t-=1){const l=s.substr(0,t);if(r.substr(0,t)===l){o=t;const s={missed:a.missed,term:a.term.concat({value:l,trailing:!0})};r.length>t?e(r.substr(t),s):n.push(s),i=!0;break}}i||(r.length>0?e(r.substr(1),{missed:a.missed+1,term:a.term}):a.term.length>0&&n.push(a))}(e,{missed:0,term:[]}),n.sort(((e,t)=>{const n=e.missed>0?1:0,r=t.missed>0?1:0;return n!==r?n-r:e.term.length-t.term.length})).map((e=>e.term))}(o,t);for(const t of n){const n=a.concat(...t);e(r.slice(1),n)}}else{const t=a.concat({value:o});e(r.slice(1),t)}}(e,[]),n}(e,t);if(0===n.length)return[{tokens:e,term:e.map((e=>({value:e,presence:a().Query.presence.REQUIRED,wildcard:a().Query.wildcard.LEADING|a().Query.wildcard.TRAILING})))}];for(const a of n)a[a.length-1].maybeTyping=!0;const r=[];for(const i of o.dK)if("en"===i)o._k||r.unshift(a().stopWordFilter);else{const e=a()[i];e.stopWordFilter&&r.unshift(e.stopWordFilter)}let s;if(r.length>0){const e=e=>r.reduce(((e,t)=>e.filter((e=>t(e.value)))),e);s=[];const t=[];for(const r of n){const n=e(r);s.push(n),n.length<r.length&&n.length>0&&t.push(n)}n.push(...t)}else s=n.slice();const l=[];for(const a of s)if(a.length>2)for(let e=a.length-1;e>=0;e-=1)l.push(a.slice(0,e).concat(a.slice(e+1)));return i(n).concat(i(l))}(l,t),c=[];e:for(const{term:t,tokens:a}of u)for(const{documents:r,index:o,type:i}of e)if(c.push(...o.query((e=>{for(const n of t)e.term(n.value,{wildcard:n.wildcard,presence:n.presence})})).slice(0,n).filter((e=>!c.some((t=>t.document.i.toString()===e.ref)))).slice(0,n-c.length).map((t=>{const n=r.find((e=>e.i.toString()===t.ref));return{document:n,type:i,page:0!==i&&e[0].documents.find((e=>e.i===n.p)),metadata:t.matchData.metadata,tokens:a,score:t.score}}))),c.length>=n)break e;!function(e){e.forEach(((e,t)=>{e.index=t})),e.sort(((t,n)=>{let r=t.type>0&&t.page?e.findIndex((e=>e.document===t.page)):t.index,a=n.type>0&&n.page?e.findIndex((e=>e.document===n.page)):n.index;return-1===r&&(r=t.index),-1===a&&(a=n.index),r===a?0===t.type?-1:0===n.type?1:t.index-n.index:r-a}))}(c),function(e){e.forEach(((t,n)=>{n>0&&t.page&&e.some((e=>e.document===t.page))&&(n<e.length-1&&e[n+1].page===t.page?t.isInterOfTree=!0:t.isLastOfTree=!0)}))}(c),s(c)}}},3926:(e,t,n)=>{"use strict";function r(e){return e.join(" \u203a ")}n.d(t,{e:()=>r})},1690:(e,t,n)=>{"use strict";function r(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}n.d(t,{X:()=>r})},1073:(e,t,n)=>{"use strict";function r(e,t){const n=[];for(const r of Object.values(e))r[t]&&n.push(...r[t].position);return n.sort(((e,t)=>e[0]-t[0]||t[1]-e[1]))}n.d(t,{m:()=>r})},2539:(e,t,n)=>{"use strict";n.d(t,{C:()=>a});var r=n(1690);function a(e,t,n){const o=[];for(const i of t){const n=e.toLowerCase().indexOf(i);if(n>=0){n>0&&o.push(a(e.substr(0,n),t)),o.push(`<mark>${(0,r.X)(e.substr(n,i.length))}</mark>`);const s=n+i.length;s<e.length&&o.push(a(e.substr(s),t));break}}return 0===o.length?n?`<mark>${(0,r.X)(e)}</mark>`:(0,r.X)(e):o.join("")}},726:(e,t,n)=>{"use strict";n.d(t,{o:()=>l});var r=n(1690),a=n(2539);const o=/\w+|\p{Unified_Ideograph}/u;function i(e){const t=[];let n=0,r=e;for(;r.length>0;){const a=r.match(o);if(!a){t.push(r);break}a.index>0&&t.push(r.substring(0,a.index)),t.push(a[0]),n+=a.index+a[0].length,r=e.substring(n)}return t}var s=n(1029);function l(e,t,n,o){void 0===o&&(o=s.Hk);const{chunkIndex:l,chunks:u}=function(e,t,n){const o=[];let s=0,l=0,u=-1;for(;s<t.length;){const[c,d]=t[s];if(s+=1,!(c<l)){if(c>l){const t=i(e.substring(l,c)).map((e=>({html:(0,r.X)(e),textLength:e.length})));for(const e of t)o.push(e)}-1===u&&(u=o.length),l=c+d,o.push({html:(0,a.C)(e.substring(c,l),n,!0),textLength:d})}}if(l<e.length){const t=i(e.substring(l)).map((e=>({html:(0,r.X)(e),textLength:e.length})));for(const e of t)o.push(e)}return{chunkIndex:u,chunks:o}}(e,t,n),c=u.slice(0,l),d=u[l],f=[d.html],p=u.slice(l+1);let h=d.textLength,m=0,g=0,b=!1,v=!1;for(;h<o;)if((m<=g||0===p.length)&&c.length>0){const e=c.pop();h+e.textLength<=o?(f.unshift(e.html),m+=e.textLength,h+=e.textLength):(b=!0,c.length=0)}else{if(!(p.length>0))break;{const e=p.shift();h+e.textLength<=o?(f.push(e.html),g+=e.textLength,h+=e.textLength):(v=!0,p.length=0)}}return(b||c.length>0)&&f.unshift("\u2026"),(v||p.length>0)&&f.push("\u2026"),f.join("")}},1029:(e,t,n)=>{"use strict";n.d(t,{vc:()=>o,gQ:()=>p,H6:()=>u,hG:()=>g,l9:()=>h,dK:()=>r,_k:()=>a,pu:()=>f,AY:()=>c,t_:()=>d,Kc:()=>m,J:()=>i,Hk:()=>l,qo:()=>s,pQ:()=>b});n(1336);const r=["en"],a=!1,o=null,i="search-index{dir}.json?_=778999e6",s=8,l=50,u=!1,c=!0,d=!0,f="right",p=void 0,h=!0,m=null,g=!1,b=!1},6010:(e,t,n)=>{"use strict";function r(e){var t,n,a="";if("string"==typeof e||"number"==typeof e)a+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=r(e[t]))&&(a&&(a+=" "),a+=n);else for(t in e)e[t]&&(a&&(a+=" "),a+=t);return a}n.d(t,{Z:()=>a});const a=function(){for(var e,t,n=0,a="";n<arguments.length;)(e=arguments[n++])&&(t=r(e))&&(a&&(a+=" "),a+=t);return a}},9318:(e,t,n)=>{"use strict";n.d(t,{lX:()=>w,q_:()=>L,ob:()=>p,PP:()=>T,Ep:()=>f});var r=n(7462);function a(e){return"/"===e.charAt(0)}function o(e,t){for(var n=t,r=n+1,a=e.length;r<a;n+=1,r+=1)e[n]=e[r];e.pop()}const i=function(e,t){void 0===t&&(t="");var n,r=e&&e.split("/")||[],i=t&&t.split("/")||[],s=e&&a(e),l=t&&a(t),u=s||l;if(e&&a(e)?i=r:r.length&&(i.pop(),i=i.concat(r)),!i.length)return"/";if(i.length){var c=i[i.length-1];n="."===c||".."===c||""===c}else n=!1;for(var d=0,f=i.length;f>=0;f--){var p=i[f];"."===p?o(i,f):".."===p?(o(i,f),d++):d&&(o(i,f),d--)}if(!u)for(;d--;d)i.unshift("..");!u||""===i[0]||i[0]&&a(i[0])||i.unshift("");var h=i.join("/");return n&&"/"!==h.substr(-1)&&(h+="/"),h};var s=n(8776);function l(e){return"/"===e.charAt(0)?e:"/"+e}function u(e){return"/"===e.charAt(0)?e.substr(1):e}function c(e,t){return function(e,t){return 0===e.toLowerCase().indexOf(t.toLowerCase())&&-1!=="/?#".indexOf(e.charAt(t.length))}(e,t)?e.substr(t.length):e}function d(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}function f(e){var t=e.pathname,n=e.search,r=e.hash,a=t||"/";return n&&"?"!==n&&(a+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(a+="#"===r.charAt(0)?r:"#"+r),a}function p(e,t,n,a){var o;"string"==typeof e?(o=function(e){var t=e||"/",n="",r="",a=t.indexOf("#");-1!==a&&(r=t.substr(a),t=t.substr(0,a));var o=t.indexOf("?");return-1!==o&&(n=t.substr(o),t=t.substr(0,o)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}}(e),o.state=t):(void 0===(o=(0,r.Z)({},e)).pathname&&(o.pathname=""),o.search?"?"!==o.search.charAt(0)&&(o.search="?"+o.search):o.search="",o.hash?"#"!==o.hash.charAt(0)&&(o.hash="#"+o.hash):o.hash="",void 0!==t&&void 0===o.state&&(o.state=t));try{o.pathname=decodeURI(o.pathname)}catch(s){throw s instanceof URIError?new URIError('Pathname "'+o.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):s}return n&&(o.key=n),a?o.pathname?"/"!==o.pathname.charAt(0)&&(o.pathname=i(o.pathname,a.pathname)):o.pathname=a.pathname:o.pathname||(o.pathname="/"),o}function h(){var e=null;var t=[];return{setPrompt:function(t){return e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,r,a){if(null!=e){var o="function"==typeof e?e(t,n):e;"string"==typeof o?"function"==typeof r?r(o,a):a(!0):a(!1!==o)}else a(!0)},appendListener:function(e){var n=!0;function r(){n&&e.apply(void 0,arguments)}return t.push(r),function(){n=!1,t=t.filter((function(e){return e!==r}))}},notifyListeners:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];t.forEach((function(e){return e.apply(void 0,n)}))}}}var m=!("undefined"==typeof window||!window.document||!window.document.createElement);function g(e,t){t(window.confirm(e))}var b="popstate",v="hashchange";function y(){try{return window.history.state||{}}catch(e){return{}}}function w(e){void 0===e&&(e={}),m||(0,s.Z)(!1);var t,n=window.history,a=(-1===(t=window.navigator.userAgent).indexOf("Android 2.")&&-1===t.indexOf("Android 4.0")||-1===t.indexOf("Mobile Safari")||-1!==t.indexOf("Chrome")||-1!==t.indexOf("Windows Phone"))&&window.history&&"pushState"in window.history,o=!(-1===window.navigator.userAgent.indexOf("Trident")),i=e,u=i.forceRefresh,w=void 0!==u&&u,E=i.getUserConfirmation,k=void 0===E?g:E,S=i.keyLength,x=void 0===S?6:S,_=e.basename?d(l(e.basename)):"";function L(e){var t=e||{},n=t.key,r=t.state,a=window.location,o=a.pathname+a.search+a.hash;return _&&(o=c(o,_)),p(o,r,n)}function C(){return Math.random().toString(36).substr(2,x)}var T=h();function A(e){(0,r.Z)(z,e),z.length=n.length,T.notifyListeners(z.location,z.action)}function O(e){(function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")})(e)||D(L(e.state))}function P(){D(L(y()))}var N=!1;function D(e){if(N)N=!1,A();else{T.confirmTransitionTo(e,"POP",k,(function(t){t?A({action:"POP",location:e}):function(e){var t=z.location,n=R.indexOf(t.key);-1===n&&(n=0);var r=R.indexOf(e.key);-1===r&&(r=0);var a=n-r;a&&(N=!0,F(a))}(e)}))}}var I=L(y()),R=[I.key];function M(e){return _+f(e)}function F(e){n.go(e)}var B=0;function j(e){1===(B+=e)&&1===e?(window.addEventListener(b,O),o&&window.addEventListener(v,P)):0===B&&(window.removeEventListener(b,O),o&&window.removeEventListener(v,P))}var $=!1;var z={length:n.length,action:"POP",location:I,createHref:M,push:function(e,t){var r="PUSH",o=p(e,t,C(),z.location);T.confirmTransitionTo(o,r,k,(function(e){if(e){var t=M(o),i=o.key,s=o.state;if(a)if(n.pushState({key:i,state:s},null,t),w)window.location.href=t;else{var l=R.indexOf(z.location.key),u=R.slice(0,l+1);u.push(o.key),R=u,A({action:r,location:o})}else window.location.href=t}}))},replace:function(e,t){var r="REPLACE",o=p(e,t,C(),z.location);T.confirmTransitionTo(o,r,k,(function(e){if(e){var t=M(o),i=o.key,s=o.state;if(a)if(n.replaceState({key:i,state:s},null,t),w)window.location.replace(t);else{var l=R.indexOf(z.location.key);-1!==l&&(R[l]=o.key),A({action:r,location:o})}else window.location.replace(t)}}))},go:F,goBack:function(){F(-1)},goForward:function(){F(1)},block:function(e){void 0===e&&(e=!1);var t=T.setPrompt(e);return $||(j(1),$=!0),function(){return $&&($=!1,j(-1)),t()}},listen:function(e){var t=T.appendListener(e);return j(1),function(){j(-1),t()}}};return z}var E="hashchange",k={hashbang:{encodePath:function(e){return"!"===e.charAt(0)?e:"!/"+u(e)},decodePath:function(e){return"!"===e.charAt(0)?e.substr(1):e}},noslash:{encodePath:u,decodePath:l},slash:{encodePath:l,decodePath:l}};function S(e){var t=e.indexOf("#");return-1===t?e:e.slice(0,t)}function x(){var e=window.location.href,t=e.indexOf("#");return-1===t?"":e.substring(t+1)}function _(e){window.location.replace(S(window.location.href)+"#"+e)}function L(e){void 0===e&&(e={}),m||(0,s.Z)(!1);var t=window.history,n=(window.navigator.userAgent.indexOf("Firefox"),e),a=n.getUserConfirmation,o=void 0===a?g:a,i=n.hashType,u=void 0===i?"slash":i,b=e.basename?d(l(e.basename)):"",v=k[u],y=v.encodePath,w=v.decodePath;function L(){var e=w(x());return b&&(e=c(e,b)),p(e)}var C=h();function T(e){(0,r.Z)($,e),$.length=t.length,C.notifyListeners($.location,$.action)}var A=!1,O=null;function P(){var e,t,n=x(),r=y(n);if(n!==r)_(r);else{var a=L(),i=$.location;if(!A&&(t=a,(e=i).pathname===t.pathname&&e.search===t.search&&e.hash===t.hash))return;if(O===f(a))return;O=null,function(e){if(A)A=!1,T();else{var t="POP";C.confirmTransitionTo(e,t,o,(function(n){n?T({action:t,location:e}):function(e){var t=$.location,n=R.lastIndexOf(f(t));-1===n&&(n=0);var r=R.lastIndexOf(f(e));-1===r&&(r=0);var a=n-r;a&&(A=!0,M(a))}(e)}))}}(a)}}var N=x(),D=y(N);N!==D&&_(D);var I=L(),R=[f(I)];function M(e){t.go(e)}var F=0;function B(e){1===(F+=e)&&1===e?window.addEventListener(E,P):0===F&&window.removeEventListener(E,P)}var j=!1;var $={length:t.length,action:"POP",location:I,createHref:function(e){var t=document.querySelector("base"),n="";return t&&t.getAttribute("href")&&(n=S(window.location.href)),n+"#"+y(b+f(e))},push:function(e,t){var n="PUSH",r=p(e,void 0,void 0,$.location);C.confirmTransitionTo(r,n,o,(function(e){if(e){var t=f(r),a=y(b+t);if(x()!==a){O=t,function(e){window.location.hash=e}(a);var o=R.lastIndexOf(f($.location)),i=R.slice(0,o+1);i.push(t),R=i,T({action:n,location:r})}else T()}}))},replace:function(e,t){var n="REPLACE",r=p(e,void 0,void 0,$.location);C.confirmTransitionTo(r,n,o,(function(e){if(e){var t=f(r),a=y(b+t);x()!==a&&(O=t,_(a));var o=R.indexOf(f($.location));-1!==o&&(R[o]=t),T({action:n,location:r})}}))},go:M,goBack:function(){M(-1)},goForward:function(){M(1)},block:function(e){void 0===e&&(e=!1);var t=C.setPrompt(e);return j||(B(1),j=!0),function(){return j&&(j=!1,B(-1)),t()}},listen:function(e){var t=C.appendListener(e);return B(1),function(){B(-1),t()}}};return $}function C(e,t,n){return Math.min(Math.max(e,t),n)}function T(e){void 0===e&&(e={});var t=e,n=t.getUserConfirmation,a=t.initialEntries,o=void 0===a?["/"]:a,i=t.initialIndex,s=void 0===i?0:i,l=t.keyLength,u=void 0===l?6:l,c=h();function d(e){(0,r.Z)(w,e),w.length=w.entries.length,c.notifyListeners(w.location,w.action)}function m(){return Math.random().toString(36).substr(2,u)}var g=C(s,0,o.length-1),b=o.map((function(e){return p(e,void 0,"string"==typeof e?m():e.key||m())})),v=f;function y(e){var t=C(w.index+e,0,w.entries.length-1),r=w.entries[t];c.confirmTransitionTo(r,"POP",n,(function(e){e?d({action:"POP",location:r,index:t}):d()}))}var w={length:b.length,action:"POP",location:b[g],index:g,entries:b,createHref:v,push:function(e,t){var r="PUSH",a=p(e,t,m(),w.location);c.confirmTransitionTo(a,r,n,(function(e){if(e){var t=w.index+1,n=w.entries.slice(0);n.length>t?n.splice(t,n.length-t,a):n.push(a),d({action:r,location:a,index:t,entries:n})}}))},replace:function(e,t){var r="REPLACE",a=p(e,t,m(),w.location);c.confirmTransitionTo(a,r,n,(function(e){e&&(w.entries[w.index]=a,d({action:r,location:a}))}))},go:y,goBack:function(){y(-1)},goForward:function(){y(1)},canGo:function(e){var t=w.index+e;return t>=0&&t<w.entries.length},block:function(e){return void 0===e&&(e=!1),c.setPrompt(e)},listen:function(e){return c.appendListener(e)}};return w}},8679:(e,t,n)=>{"use strict";var r=n(9864),a={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return r.isMemo(e)?i:s[e.$$typeof]||a}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=i;var u=Object.defineProperty,c=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(h){var a=p(n);a&&a!==h&&e(t,a,r)}var i=c(n);d&&(i=i.concat(d(n)));for(var s=l(t),m=l(n),g=0;g<i.length;++g){var b=i[g];if(!(o[b]||r&&r[b]||m&&m[b]||s&&s[b])){var v=f(n,b);try{u(t,b,v)}catch(y){}}}}return t}},1143:e=>{"use strict";e.exports=function(e,t,n,r,a,o,i,s){if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,r,a,o,i,s],c=0;(l=new Error(t.replace(/%s/g,(function(){return u[c++]})))).name="Invariant Violation"}throw l.framesToPop=1,l}}},5826:e=>{e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},1336:(e,t,n)=>{var r,a;!function(){var o,i,s,l,u,c,d,f,p,h,m,g,b,v,y,w,E,k,S,x,_,L,C,T,A,O,P,N,D,I,R=function(e){var t=new R.Builder;return t.pipeline.add(R.trimmer,R.stopWordFilter,R.stemmer),t.searchPipeline.add(R.stemmer),e.call(t,t),t.build()};R.version="2.3.9",R.utils={},R.utils.warn=(o=this,function(e){o.console&&console.warn&&console.warn(e)}),R.utils.asString=function(e){return null==e?"":e.toString()},R.utils.clone=function(e){if(null==e)return e;for(var t=Object.create(null),n=Object.keys(e),r=0;r<n.length;r++){var a=n[r],o=e[a];if(Array.isArray(o))t[a]=o.slice();else{if("string"!=typeof o&&"number"!=typeof o&&"boolean"!=typeof o)throw new TypeError("clone is not deep and does not support nested objects");t[a]=o}}return t},R.FieldRef=function(e,t,n){this.docRef=e,this.fieldName=t,this._stringValue=n},R.FieldRef.joiner="/",R.FieldRef.fromString=function(e){var t=e.indexOf(R.FieldRef.joiner);if(-1===t)throw"malformed field ref string";var n=e.slice(0,t),r=e.slice(t+1);return new R.FieldRef(r,n,e)},R.FieldRef.prototype.toString=function(){return null==this._stringValue&&(this._stringValue=this.fieldName+R.FieldRef.joiner+this.docRef),this._stringValue},R.Set=function(e){if(this.elements=Object.create(null),e){this.length=e.length;for(var t=0;t<this.length;t++)this.elements[e[t]]=!0}else this.length=0},R.Set.complete={intersect:function(e){return e},union:function(){return this},contains:function(){return!0}},R.Set.empty={intersect:function(){return this},union:function(e){return e},contains:function(){return!1}},R.Set.prototype.contains=function(e){return!!this.elements[e]},R.Set.prototype.intersect=function(e){var t,n,r,a=[];if(e===R.Set.complete)return this;if(e===R.Set.empty)return e;this.length<e.length?(t=this,n=e):(t=e,n=this),r=Object.keys(t.elements);for(var o=0;o<r.length;o++){var i=r[o];i in n.elements&&a.push(i)}return new R.Set(a)},R.Set.prototype.union=function(e){return e===R.Set.complete?R.Set.complete:e===R.Set.empty?this:new R.Set(Object.keys(this.elements).concat(Object.keys(e.elements)))},R.idf=function(e,t){var n=0;for(var r in e)"_index"!=r&&(n+=Object.keys(e[r]).length);var a=(t-n+.5)/(n+.5);return Math.log(1+Math.abs(a))},R.Token=function(e,t){this.str=e||"",this.metadata=t||{}},R.Token.prototype.toString=function(){return this.str},R.Token.prototype.update=function(e){return this.str=e(this.str,this.metadata),this},R.Token.prototype.clone=function(e){return e=e||function(e){return e},new R.Token(e(this.str,this.metadata),this.metadata)},R.tokenizer=function(e,t){if(null==e||null==e)return[];if(Array.isArray(e))return e.map((function(e){return new R.Token(R.utils.asString(e).toLowerCase(),R.utils.clone(t))}));for(var n=e.toString().toLowerCase(),r=n.length,a=[],o=0,i=0;o<=r;o++){var s=o-i;if(n.charAt(o).match(R.tokenizer.separator)||o==r){if(s>0){var l=R.utils.clone(t)||{};l.position=[i,s],l.index=a.length,a.push(new R.Token(n.slice(i,o),l))}i=o+1}}return a},R.tokenizer.separator=/[\s\-]+/,R.Pipeline=function(){this._stack=[]},R.Pipeline.registeredFunctions=Object.create(null),R.Pipeline.registerFunction=function(e,t){t in this.registeredFunctions&&R.utils.warn("Overwriting existing registered function: "+t),e.label=t,R.Pipeline.registeredFunctions[e.label]=e},R.Pipeline.warnIfFunctionNotRegistered=function(e){e.label&&e.label in this.registeredFunctions||R.utils.warn("Function is not registered with pipeline. This may cause problems when serialising the index.\n",e)},R.Pipeline.load=function(e){var t=new R.Pipeline;return e.forEach((function(e){var n=R.Pipeline.registeredFunctions[e];if(!n)throw new Error("Cannot load unregistered function: "+e);t.add(n)})),t},R.Pipeline.prototype.add=function(){Array.prototype.slice.call(arguments).forEach((function(e){R.Pipeline.warnIfFunctionNotRegistered(e),this._stack.push(e)}),this)},R.Pipeline.prototype.after=function(e,t){R.Pipeline.warnIfFunctionNotRegistered(t);var n=this._stack.indexOf(e);if(-1==n)throw new Error("Cannot find existingFn");n+=1,this._stack.splice(n,0,t)},R.Pipeline.prototype.before=function(e,t){R.Pipeline.warnIfFunctionNotRegistered(t);var n=this._stack.indexOf(e);if(-1==n)throw new Error("Cannot find existingFn");this._stack.splice(n,0,t)},R.Pipeline.prototype.remove=function(e){var t=this._stack.indexOf(e);-1!=t&&this._stack.splice(t,1)},R.Pipeline.prototype.run=function(e){for(var t=this._stack.length,n=0;n<t;n++){for(var r=this._stack[n],a=[],o=0;o<e.length;o++){var i=r(e[o],o,e);if(null!=i&&""!==i)if(Array.isArray(i))for(var s=0;s<i.length;s++)a.push(i[s]);else a.push(i)}e=a}return e},R.Pipeline.prototype.runString=function(e,t){var n=new R.Token(e,t);return this.run([n]).map((function(e){return e.toString()}))},R.Pipeline.prototype.reset=function(){this._stack=[]},R.Pipeline.prototype.toJSON=function(){return this._stack.map((function(e){return R.Pipeline.warnIfFunctionNotRegistered(e),e.label}))},R.Vector=function(e){this._magnitude=0,this.elements=e||[]},R.Vector.prototype.positionForIndex=function(e){if(0==this.elements.length)return 0;for(var t=0,n=this.elements.length/2,r=n-t,a=Math.floor(r/2),o=this.elements[2*a];r>1&&(o<e&&(t=a),o>e&&(n=a),o!=e);)r=n-t,a=t+Math.floor(r/2),o=this.elements[2*a];return o==e||o>e?2*a:o<e?2*(a+1):void 0},R.Vector.prototype.insert=function(e,t){this.upsert(e,t,(function(){throw"duplicate index"}))},R.Vector.prototype.upsert=function(e,t,n){this._magnitude=0;var r=this.positionForIndex(e);this.elements[r]==e?this.elements[r+1]=n(this.elements[r+1],t):this.elements.splice(r,0,e,t)},R.Vector.prototype.magnitude=function(){if(this._magnitude)return this._magnitude;for(var e=0,t=this.elements.length,n=1;n<t;n+=2){var r=this.elements[n];e+=r*r}return this._magnitude=Math.sqrt(e)},R.Vector.prototype.dot=function(e){for(var t=0,n=this.elements,r=e.elements,a=n.length,o=r.length,i=0,s=0,l=0,u=0;l<a&&u<o;)(i=n[l])<(s=r[u])?l+=2:i>s?u+=2:i==s&&(t+=n[l+1]*r[u+1],l+=2,u+=2);return t},R.Vector.prototype.similarity=function(e){return this.dot(e)/this.magnitude()||0},R.Vector.prototype.toArray=function(){for(var e=new Array(this.elements.length/2),t=1,n=0;t<this.elements.length;t+=2,n++)e[n]=this.elements[t];return e},R.Vector.prototype.toJSON=function(){return this.elements},R.stemmer=(i={ational:"ate",tional:"tion",enci:"ence",anci:"ance",izer:"ize",bli:"ble",alli:"al",entli:"ent",eli:"e",ousli:"ous",ization:"ize",ation:"ate",ator:"ate",alism:"al",iveness:"ive",fulness:"ful",ousness:"ous",aliti:"al",iviti:"ive",biliti:"ble",logi:"log"},s={icate:"ic",ative:"",alize:"al",iciti:"ic",ical:"ic",ful:"",ness:""},d="^("+(u="[^aeiou][^aeiouy]*")+")?"+(c=(l="[aeiouy]")+"[aeiou]*")+u+"("+c+")?$",f="^("+u+")?"+c+u+c+u,p="^("+u+")?"+l,h=new RegExp("^("+u+")?"+c+u),m=new RegExp(f),g=new RegExp(d),b=new RegExp(p),v=/^(.+?)(ss|i)es$/,y=/^(.+?)([^s])s$/,w=/^(.+?)eed$/,E=/^(.+?)(ed|ing)$/,k=/.$/,S=/(at|bl|iz)$/,x=new RegExp("([^aeiouylsz])\\1$"),_=new RegExp("^"+u+l+"[^aeiouwxy]$"),L=/^(.+?[^aeiou])y$/,C=/^(.+?)(ational|tional|enci|anci|izer|bli|alli|entli|eli|ousli|ization|ation|ator|alism|iveness|fulness|ousness|aliti|iviti|biliti|logi)$/,T=/^(.+?)(icate|ative|alize|iciti|ical|ful|ness)$/,A=/^(.+?)(al|ance|ence|er|ic|able|ible|ant|ement|ment|ent|ou|ism|ate|iti|ous|ive|ize)$/,O=/^(.+?)(s|t)(ion)$/,P=/^(.+?)e$/,N=/ll$/,D=new RegExp("^"+u+l+"[^aeiouwxy]$"),I=function(e){var t,n,r,a,o,l,u;if(e.length<3)return e;if("y"==(r=e.substr(0,1))&&(e=r.toUpperCase()+e.substr(1)),o=y,(a=v).test(e)?e=e.replace(a,"$1$2"):o.test(e)&&(e=e.replace(o,"$1$2")),o=E,(a=w).test(e)){var c=a.exec(e);(a=h).test(c[1])&&(a=k,e=e.replace(a,""))}else o.test(e)&&(t=(c=o.exec(e))[1],(o=b).test(t)&&(l=x,u=_,(o=S).test(e=t)?e+="e":l.test(e)?(a=k,e=e.replace(a,"")):u.test(e)&&(e+="e")));return(a=L).test(e)&&(e=(t=(c=a.exec(e))[1])+"i"),(a=C).test(e)&&(t=(c=a.exec(e))[1],n=c[2],(a=h).test(t)&&(e=t+i[n])),(a=T).test(e)&&(t=(c=a.exec(e))[1],n=c[2],(a=h).test(t)&&(e=t+s[n])),o=O,(a=A).test(e)?(t=(c=a.exec(e))[1],(a=m).test(t)&&(e=t)):o.test(e)&&(t=(c=o.exec(e))[1]+c[2],(o=m).test(t)&&(e=t)),(a=P).test(e)&&(t=(c=a.exec(e))[1],o=g,l=D,((a=m).test(t)||o.test(t)&&!l.test(t))&&(e=t)),o=m,(a=N).test(e)&&o.test(e)&&(a=k,e=e.replace(a,"")),"y"==r&&(e=r.toLowerCase()+e.substr(1)),e},function(e){return e.update(I)}),R.Pipeline.registerFunction(R.stemmer,"stemmer"),R.generateStopWordFilter=function(e){var t=e.reduce((function(e,t){return e[t]=t,e}),{});return function(e){if(e&&t[e.toString()]!==e.toString())return e}},R.stopWordFilter=R.generateStopWordFilter(["a","able","about","across","after","all","almost","also","am","among","an","and","any","are","as","at","be","because","been","but","by","can","cannot","could","dear","did","do","does","either","else","ever","every","for","from","get","got","had","has","have","he","her","hers","him","his","how","however","i","if","in","into","is","it","its","just","least","let","like","likely","may","me","might","most","must","my","neither","no","nor","not","of","off","often","on","only","or","other","our","own","rather","said","say","says","she","should","since","so","some","than","that","the","their","them","then","there","these","they","this","tis","to","too","twas","us","wants","was","we","were","what","when","where","which","while","who","whom","why","will","with","would","yet","you","your"]),R.Pipeline.registerFunction(R.stopWordFilter,"stopWordFilter"),R.trimmer=function(e){return e.update((function(e){return e.replace(/^\W+/,"").replace(/\W+$/,"")}))},R.Pipeline.registerFunction(R.trimmer,"trimmer"),R.TokenSet=function(){this.final=!1,this.edges={},this.id=R.TokenSet._nextId,R.TokenSet._nextId+=1},R.TokenSet._nextId=1,R.TokenSet.fromArray=function(e){for(var t=new R.TokenSet.Builder,n=0,r=e.length;n<r;n++)t.insert(e[n]);return t.finish(),t.root},R.TokenSet.fromClause=function(e){return"editDistance"in e?R.TokenSet.fromFuzzyString(e.term,e.editDistance):R.TokenSet.fromString(e.term)},R.TokenSet.fromFuzzyString=function(e,t){for(var n=new R.TokenSet,r=[{node:n,editsRemaining:t,str:e}];r.length;){var a=r.pop();if(a.str.length>0){var o,i=a.str.charAt(0);i in a.node.edges?o=a.node.edges[i]:(o=new R.TokenSet,a.node.edges[i]=o),1==a.str.length&&(o.final=!0),r.push({node:o,editsRemaining:a.editsRemaining,str:a.str.slice(1)})}if(0!=a.editsRemaining){if("*"in a.node.edges)var s=a.node.edges["*"];else{s=new R.TokenSet;a.node.edges["*"]=s}if(0==a.str.length&&(s.final=!0),r.push({node:s,editsRemaining:a.editsRemaining-1,str:a.str}),a.str.length>1&&r.push({node:a.node,editsRemaining:a.editsRemaining-1,str:a.str.slice(1)}),1==a.str.length&&(a.node.final=!0),a.str.length>=1){if("*"in a.node.edges)var l=a.node.edges["*"];else{l=new R.TokenSet;a.node.edges["*"]=l}1==a.str.length&&(l.final=!0),r.push({node:l,editsRemaining:a.editsRemaining-1,str:a.str.slice(1)})}if(a.str.length>1){var u,c=a.str.charAt(0),d=a.str.charAt(1);d in a.node.edges?u=a.node.edges[d]:(u=new R.TokenSet,a.node.edges[d]=u),1==a.str.length&&(u.final=!0),r.push({node:u,editsRemaining:a.editsRemaining-1,str:c+a.str.slice(2)})}}}return n},R.TokenSet.fromString=function(e){for(var t=new R.TokenSet,n=t,r=0,a=e.length;r<a;r++){var o=e[r],i=r==a-1;if("*"==o)t.edges[o]=t,t.final=i;else{var s=new R.TokenSet;s.final=i,t.edges[o]=s,t=s}}return n},R.TokenSet.prototype.toArray=function(){for(var e=[],t=[{prefix:"",node:this}];t.length;){var n=t.pop(),r=Object.keys(n.node.edges),a=r.length;n.node.final&&(n.prefix.charAt(0),e.push(n.prefix));for(var o=0;o<a;o++){var i=r[o];t.push({prefix:n.prefix.concat(i),node:n.node.edges[i]})}}return e},R.TokenSet.prototype.toString=function(){if(this._str)return this._str;for(var e=this.final?"1":"0",t=Object.keys(this.edges).sort(),n=t.length,r=0;r<n;r++){var a=t[r];e=e+a+this.edges[a].id}return e},R.TokenSet.prototype.intersect=function(e){for(var t=new R.TokenSet,n=void 0,r=[{qNode:e,output:t,node:this}];r.length;){n=r.pop();for(var a=Object.keys(n.qNode.edges),o=a.length,i=Object.keys(n.node.edges),s=i.length,l=0;l<o;l++)for(var u=a[l],c=0;c<s;c++){var d=i[c];if(d==u||"*"==u){var f=n.node.edges[d],p=n.qNode.edges[u],h=f.final&&p.final,m=void 0;d in n.output.edges?(m=n.output.edges[d]).final=m.final||h:((m=new R.TokenSet).final=h,n.output.edges[d]=m),r.push({qNode:p,output:m,node:f})}}}return t},R.TokenSet.Builder=function(){this.previousWord="",this.root=new R.TokenSet,this.uncheckedNodes=[],this.minimizedNodes={}},R.TokenSet.Builder.prototype.insert=function(e){var t,n=0;if(e<this.previousWord)throw new Error("Out of order word insertion");for(var r=0;r<e.length&&r<this.previousWord.length&&e[r]==this.previousWord[r];r++)n++;this.minimize(n),t=0==this.uncheckedNodes.length?this.root:this.uncheckedNodes[this.uncheckedNodes.length-1].child;for(r=n;r<e.length;r++){var a=new R.TokenSet,o=e[r];t.edges[o]=a,this.uncheckedNodes.push({parent:t,char:o,child:a}),t=a}t.final=!0,this.previousWord=e},R.TokenSet.Builder.prototype.finish=function(){this.minimize(0)},R.TokenSet.Builder.prototype.minimize=function(e){for(var t=this.uncheckedNodes.length-1;t>=e;t--){var n=this.uncheckedNodes[t],r=n.child.toString();r in this.minimizedNodes?n.parent.edges[n.char]=this.minimizedNodes[r]:(n.child._str=r,this.minimizedNodes[r]=n.child),this.uncheckedNodes.pop()}},R.Index=function(e){this.invertedIndex=e.invertedIndex,this.fieldVectors=e.fieldVectors,this.tokenSet=e.tokenSet,this.fields=e.fields,this.pipeline=e.pipeline},R.Index.prototype.search=function(e){return this.query((function(t){new R.QueryParser(e,t).parse()}))},R.Index.prototype.query=function(e){for(var t=new R.Query(this.fields),n=Object.create(null),r=Object.create(null),a=Object.create(null),o=Object.create(null),i=Object.create(null),s=0;s<this.fields.length;s++)r[this.fields[s]]=new R.Vector;e.call(t,t);for(s=0;s<t.clauses.length;s++){var l=t.clauses[s],u=null,c=R.Set.empty;u=l.usePipeline?this.pipeline.runString(l.term,{fields:l.fields}):[l.term];for(var d=0;d<u.length;d++){var f=u[d];l.term=f;var p=R.TokenSet.fromClause(l),h=this.tokenSet.intersect(p).toArray();if(0===h.length&&l.presence===R.Query.presence.REQUIRED){for(var m=0;m<l.fields.length;m++){o[P=l.fields[m]]=R.Set.empty}break}for(var g=0;g<h.length;g++){var b=h[g],v=this.invertedIndex[b],y=v._index;for(m=0;m<l.fields.length;m++){var w=v[P=l.fields[m]],E=Object.keys(w),k=b+"/"+P,S=new R.Set(E);if(l.presence==R.Query.presence.REQUIRED&&(c=c.union(S),void 0===o[P]&&(o[P]=R.Set.complete)),l.presence!=R.Query.presence.PROHIBITED){if(r[P].upsert(y,l.boost,(function(e,t){return e+t})),!a[k]){for(var x=0;x<E.length;x++){var _,L=E[x],C=new R.FieldRef(L,P),T=w[L];void 0===(_=n[C])?n[C]=new R.MatchData(b,P,T):_.add(b,P,T)}a[k]=!0}}else void 0===i[P]&&(i[P]=R.Set.empty),i[P]=i[P].union(S)}}}if(l.presence===R.Query.presence.REQUIRED)for(m=0;m<l.fields.length;m++){o[P=l.fields[m]]=o[P].intersect(c)}}var A=R.Set.complete,O=R.Set.empty;for(s=0;s<this.fields.length;s++){var P;o[P=this.fields[s]]&&(A=A.intersect(o[P])),i[P]&&(O=O.union(i[P]))}var N=Object.keys(n),D=[],I=Object.create(null);if(t.isNegated()){N=Object.keys(this.fieldVectors);for(s=0;s<N.length;s++){C=N[s];var M=R.FieldRef.fromString(C);n[C]=new R.MatchData}}for(s=0;s<N.length;s++){var F=(M=R.FieldRef.fromString(N[s])).docRef;if(A.contains(F)&&!O.contains(F)){var B,j=this.fieldVectors[M],$=r[M.fieldName].similarity(j);if(void 0!==(B=I[F]))B.score+=$,B.matchData.combine(n[M]);else{var z={ref:F,score:$,matchData:n[M]};I[F]=z,D.push(z)}}}return D.sort((function(e,t){return t.score-e.score}))},R.Index.prototype.toJSON=function(){var e=Object.keys(this.invertedIndex).sort().map((function(e){return[e,this.invertedIndex[e]]}),this),t=Object.keys(this.fieldVectors).map((function(e){return[e,this.fieldVectors[e].toJSON()]}),this);return{version:R.version,fields:this.fields,fieldVectors:t,invertedIndex:e,pipeline:this.pipeline.toJSON()}},R.Index.load=function(e){var t={},n={},r=e.fieldVectors,a=Object.create(null),o=e.invertedIndex,i=new R.TokenSet.Builder,s=R.Pipeline.load(e.pipeline);e.version!=R.version&&R.utils.warn("Version mismatch when loading serialised index. Current version of lunr '"+R.version+"' does not match serialized index '"+e.version+"'");for(var l=0;l<r.length;l++){var u=(d=r[l])[0],c=d[1];n[u]=new R.Vector(c)}for(l=0;l<o.length;l++){var d,f=(d=o[l])[0],p=d[1];i.insert(f),a[f]=p}return i.finish(),t.fields=e.fields,t.fieldVectors=n,t.invertedIndex=a,t.tokenSet=i.root,t.pipeline=s,new R.Index(t)},R.Builder=function(){this._ref="id",this._fields=Object.create(null),this._documents=Object.create(null),this.invertedIndex=Object.create(null),this.fieldTermFrequencies={},this.fieldLengths={},this.tokenizer=R.tokenizer,this.pipeline=new R.Pipeline,this.searchPipeline=new R.Pipeline,this.documentCount=0,this._b=.75,this._k1=1.2,this.termIndex=0,this.metadataWhitelist=[]},R.Builder.prototype.ref=function(e){this._ref=e},R.Builder.prototype.field=function(e,t){if(/\//.test(e))throw new RangeError("Field '"+e+"' contains illegal character '/'");this._fields[e]=t||{}},R.Builder.prototype.b=function(e){this._b=e<0?0:e>1?1:e},R.Builder.prototype.k1=function(e){this._k1=e},R.Builder.prototype.add=function(e,t){var n=e[this._ref],r=Object.keys(this._fields);this._documents[n]=t||{},this.documentCount+=1;for(var a=0;a<r.length;a++){var o=r[a],i=this._fields[o].extractor,s=i?i(e):e[o],l=this.tokenizer(s,{fields:[o]}),u=this.pipeline.run(l),c=new R.FieldRef(n,o),d=Object.create(null);this.fieldTermFrequencies[c]=d,this.fieldLengths[c]=0,this.fieldLengths[c]+=u.length;for(var f=0;f<u.length;f++){var p=u[f];if(null==d[p]&&(d[p]=0),d[p]+=1,null==this.invertedIndex[p]){var h=Object.create(null);h._index=this.termIndex,this.termIndex+=1;for(var m=0;m<r.length;m++)h[r[m]]=Object.create(null);this.invertedIndex[p]=h}null==this.invertedIndex[p][o][n]&&(this.invertedIndex[p][o][n]=Object.create(null));for(var g=0;g<this.metadataWhitelist.length;g++){var b=this.metadataWhitelist[g],v=p.metadata[b];null==this.invertedIndex[p][o][n][b]&&(this.invertedIndex[p][o][n][b]=[]),this.invertedIndex[p][o][n][b].push(v)}}}},R.Builder.prototype.calculateAverageFieldLengths=function(){for(var e=Object.keys(this.fieldLengths),t=e.length,n={},r={},a=0;a<t;a++){var o=R.FieldRef.fromString(e[a]),i=o.fieldName;r[i]||(r[i]=0),r[i]+=1,n[i]||(n[i]=0),n[i]+=this.fieldLengths[o]}var s=Object.keys(this._fields);for(a=0;a<s.length;a++){var l=s[a];n[l]=n[l]/r[l]}this.averageFieldLength=n},R.Builder.prototype.createFieldVectors=function(){for(var e={},t=Object.keys(this.fieldTermFrequencies),n=t.length,r=Object.create(null),a=0;a<n;a++){for(var o=R.FieldRef.fromString(t[a]),i=o.fieldName,s=this.fieldLengths[o],l=new R.Vector,u=this.fieldTermFrequencies[o],c=Object.keys(u),d=c.length,f=this._fields[i].boost||1,p=this._documents[o.docRef].boost||1,h=0;h<d;h++){var m,g,b,v=c[h],y=u[v],w=this.invertedIndex[v]._index;void 0===r[v]?(m=R.idf(this.invertedIndex[v],this.documentCount),r[v]=m):m=r[v],g=m*((this._k1+1)*y)/(this._k1*(1-this._b+this._b*(s/this.averageFieldLength[i]))+y),g*=f,g*=p,b=Math.round(1e3*g)/1e3,l.insert(w,b)}e[o]=l}this.fieldVectors=e},R.Builder.prototype.createTokenSet=function(){this.tokenSet=R.TokenSet.fromArray(Object.keys(this.invertedIndex).sort())},R.Builder.prototype.build=function(){return this.calculateAverageFieldLengths(),this.createFieldVectors(),this.createTokenSet(),new R.Index({invertedIndex:this.invertedIndex,fieldVectors:this.fieldVectors,tokenSet:this.tokenSet,fields:Object.keys(this._fields),pipeline:this.searchPipeline})},R.Builder.prototype.use=function(e){var t=Array.prototype.slice.call(arguments,1);t.unshift(this),e.apply(this,t)},R.MatchData=function(e,t,n){for(var r=Object.create(null),a=Object.keys(n||{}),o=0;o<a.length;o++){var i=a[o];r[i]=n[i].slice()}this.metadata=Object.create(null),void 0!==e&&(this.metadata[e]=Object.create(null),this.metadata[e][t]=r)},R.MatchData.prototype.combine=function(e){for(var t=Object.keys(e.metadata),n=0;n<t.length;n++){var r=t[n],a=Object.keys(e.metadata[r]);null==this.metadata[r]&&(this.metadata[r]=Object.create(null));for(var o=0;o<a.length;o++){var i=a[o],s=Object.keys(e.metadata[r][i]);null==this.metadata[r][i]&&(this.metadata[r][i]=Object.create(null));for(var l=0;l<s.length;l++){var u=s[l];null==this.metadata[r][i][u]?this.metadata[r][i][u]=e.metadata[r][i][u]:this.metadata[r][i][u]=this.metadata[r][i][u].concat(e.metadata[r][i][u])}}}},R.MatchData.prototype.add=function(e,t,n){if(!(e in this.metadata))return this.metadata[e]=Object.create(null),void(this.metadata[e][t]=n);if(t in this.metadata[e])for(var r=Object.keys(n),a=0;a<r.length;a++){var o=r[a];o in this.metadata[e][t]?this.metadata[e][t][o]=this.metadata[e][t][o].concat(n[o]):this.metadata[e][t][o]=n[o]}else this.metadata[e][t]=n},R.Query=function(e){this.clauses=[],this.allFields=e},R.Query.wildcard=new String("*"),R.Query.wildcard.NONE=0,R.Query.wildcard.LEADING=1,R.Query.wildcard.TRAILING=2,R.Query.presence={OPTIONAL:1,REQUIRED:2,PROHIBITED:3},R.Query.prototype.clause=function(e){return"fields"in e||(e.fields=this.allFields),"boost"in e||(e.boost=1),"usePipeline"in e||(e.usePipeline=!0),"wildcard"in e||(e.wildcard=R.Query.wildcard.NONE),e.wildcard&R.Query.wildcard.LEADING&&e.term.charAt(0)!=R.Query.wildcard&&(e.term="*"+e.term),e.wildcard&R.Query.wildcard.TRAILING&&e.term.slice(-1)!=R.Query.wildcard&&(e.term=e.term+"*"),"presence"in e||(e.presence=R.Query.presence.OPTIONAL),this.clauses.push(e),this},R.Query.prototype.isNegated=function(){for(var e=0;e<this.clauses.length;e++)if(this.clauses[e].presence!=R.Query.presence.PROHIBITED)return!1;return!0},R.Query.prototype.term=function(e,t){if(Array.isArray(e))return e.forEach((function(e){this.term(e,R.utils.clone(t))}),this),this;var n=t||{};return n.term=e.toString(),this.clause(n),this},R.QueryParseError=function(e,t,n){this.name="QueryParseError",this.message=e,this.start=t,this.end=n},R.QueryParseError.prototype=new Error,R.QueryLexer=function(e){this.lexemes=[],this.str=e,this.length=e.length,this.pos=0,this.start=0,this.escapeCharPositions=[]},R.QueryLexer.prototype.run=function(){for(var e=R.QueryLexer.lexText;e;)e=e(this)},R.QueryLexer.prototype.sliceString=function(){for(var e=[],t=this.start,n=this.pos,r=0;r<this.escapeCharPositions.length;r++)n=this.escapeCharPositions[r],e.push(this.str.slice(t,n)),t=n+1;return e.push(this.str.slice(t,this.pos)),this.escapeCharPositions.length=0,e.join("")},R.QueryLexer.prototype.emit=function(e){this.lexemes.push({type:e,str:this.sliceString(),start:this.start,end:this.pos}),this.start=this.pos},R.QueryLexer.prototype.escapeCharacter=function(){this.escapeCharPositions.push(this.pos-1),this.pos+=1},R.QueryLexer.prototype.next=function(){if(this.pos>=this.length)return R.QueryLexer.EOS;var e=this.str.charAt(this.pos);return this.pos+=1,e},R.QueryLexer.prototype.width=function(){return this.pos-this.start},R.QueryLexer.prototype.ignore=function(){this.start==this.pos&&(this.pos+=1),this.start=this.pos},R.QueryLexer.prototype.backup=function(){this.pos-=1},R.QueryLexer.prototype.acceptDigitRun=function(){var e,t;do{t=(e=this.next()).charCodeAt(0)}while(t>47&&t<58);e!=R.QueryLexer.EOS&&this.backup()},R.QueryLexer.prototype.more=function(){return this.pos<this.length},R.QueryLexer.EOS="EOS",R.QueryLexer.FIELD="FIELD",R.QueryLexer.TERM="TERM",R.QueryLexer.EDIT_DISTANCE="EDIT_DISTANCE",R.QueryLexer.BOOST="BOOST",R.QueryLexer.PRESENCE="PRESENCE",R.QueryLexer.lexField=function(e){return e.backup(),e.emit(R.QueryLexer.FIELD),e.ignore(),R.QueryLexer.lexText},R.QueryLexer.lexTerm=function(e){if(e.width()>1&&(e.backup(),e.emit(R.QueryLexer.TERM)),e.ignore(),e.more())return R.QueryLexer.lexText},R.QueryLexer.lexEditDistance=function(e){return e.ignore(),e.acceptDigitRun(),e.emit(R.QueryLexer.EDIT_DISTANCE),R.QueryLexer.lexText},R.QueryLexer.lexBoost=function(e){return e.ignore(),e.acceptDigitRun(),e.emit(R.QueryLexer.BOOST),R.QueryLexer.lexText},R.QueryLexer.lexEOS=function(e){e.width()>0&&e.emit(R.QueryLexer.TERM)},R.QueryLexer.termSeparator=R.tokenizer.separator,R.QueryLexer.lexText=function(e){for(;;){var t=e.next();if(t==R.QueryLexer.EOS)return R.QueryLexer.lexEOS;if(92!=t.charCodeAt(0)){if(":"==t)return R.QueryLexer.lexField;if("~"==t)return e.backup(),e.width()>0&&e.emit(R.QueryLexer.TERM),R.QueryLexer.lexEditDistance;if("^"==t)return e.backup(),e.width()>0&&e.emit(R.QueryLexer.TERM),R.QueryLexer.lexBoost;if("+"==t&&1===e.width())return e.emit(R.QueryLexer.PRESENCE),R.QueryLexer.lexText;if("-"==t&&1===e.width())return e.emit(R.QueryLexer.PRESENCE),R.QueryLexer.lexText;if(t.match(R.QueryLexer.termSeparator))return R.QueryLexer.lexTerm}else e.escapeCharacter()}},R.QueryParser=function(e,t){this.lexer=new R.QueryLexer(e),this.query=t,this.currentClause={},this.lexemeIdx=0},R.QueryParser.prototype.parse=function(){this.lexer.run(),this.lexemes=this.lexer.lexemes;for(var e=R.QueryParser.parseClause;e;)e=e(this);return this.query},R.QueryParser.prototype.peekLexeme=function(){return this.lexemes[this.lexemeIdx]},R.QueryParser.prototype.consumeLexeme=function(){var e=this.peekLexeme();return this.lexemeIdx+=1,e},R.QueryParser.prototype.nextClause=function(){var e=this.currentClause;this.query.clause(e),this.currentClause={}},R.QueryParser.parseClause=function(e){var t=e.peekLexeme();if(null!=t)switch(t.type){case R.QueryLexer.PRESENCE:return R.QueryParser.parsePresence;case R.QueryLexer.FIELD:return R.QueryParser.parseField;case R.QueryLexer.TERM:return R.QueryParser.parseTerm;default:var n="expected either a field or a term, found "+t.type;throw t.str.length>=1&&(n+=" with value '"+t.str+"'"),new R.QueryParseError(n,t.start,t.end)}},R.QueryParser.parsePresence=function(e){var t=e.consumeLexeme();if(null!=t){switch(t.str){case"-":e.currentClause.presence=R.Query.presence.PROHIBITED;break;case"+":e.currentClause.presence=R.Query.presence.REQUIRED;break;default:var n="unrecognised presence operator'"+t.str+"'";throw new R.QueryParseError(n,t.start,t.end)}var r=e.peekLexeme();if(null==r){n="expecting term or field, found nothing";throw new R.QueryParseError(n,t.start,t.end)}switch(r.type){case R.QueryLexer.FIELD:return R.QueryParser.parseField;case R.QueryLexer.TERM:return R.QueryParser.parseTerm;default:n="expecting term or field, found '"+r.type+"'";throw new R.QueryParseError(n,r.start,r.end)}}},R.QueryParser.parseField=function(e){var t=e.consumeLexeme();if(null!=t){if(-1==e.query.allFields.indexOf(t.str)){var n=e.query.allFields.map((function(e){return"'"+e+"'"})).join(", "),r="unrecognised field '"+t.str+"', possible fields: "+n;throw new R.QueryParseError(r,t.start,t.end)}e.currentClause.fields=[t.str];var a=e.peekLexeme();if(null==a){r="expecting term, found nothing";throw new R.QueryParseError(r,t.start,t.end)}if(a.type===R.QueryLexer.TERM)return R.QueryParser.parseTerm;r="expecting term, found '"+a.type+"'";throw new R.QueryParseError(r,a.start,a.end)}},R.QueryParser.parseTerm=function(e){var t=e.consumeLexeme();if(null!=t){e.currentClause.term=t.str.toLowerCase(),-1!=t.str.indexOf("*")&&(e.currentClause.usePipeline=!1);var n=e.peekLexeme();if(null!=n)switch(n.type){case R.QueryLexer.TERM:return e.nextClause(),R.QueryParser.parseTerm;case R.QueryLexer.FIELD:return e.nextClause(),R.QueryParser.parseField;case R.QueryLexer.EDIT_DISTANCE:return R.QueryParser.parseEditDistance;case R.QueryLexer.BOOST:return R.QueryParser.parseBoost;case R.QueryLexer.PRESENCE:return e.nextClause(),R.QueryParser.parsePresence;default:var r="Unexpected lexeme type '"+n.type+"'";throw new R.QueryParseError(r,n.start,n.end)}else e.nextClause()}},R.QueryParser.parseEditDistance=function(e){var t=e.consumeLexeme();if(null!=t){var n=parseInt(t.str,10);if(isNaN(n)){var r="edit distance must be numeric";throw new R.QueryParseError(r,t.start,t.end)}e.currentClause.editDistance=n;var a=e.peekLexeme();if(null!=a)switch(a.type){case R.QueryLexer.TERM:return e.nextClause(),R.QueryParser.parseTerm;case R.QueryLexer.FIELD:return e.nextClause(),R.QueryParser.parseField;case R.QueryLexer.EDIT_DISTANCE:return R.QueryParser.parseEditDistance;case R.QueryLexer.BOOST:return R.QueryParser.parseBoost;case R.QueryLexer.PRESENCE:return e.nextClause(),R.QueryParser.parsePresence;default:r="Unexpected lexeme type '"+a.type+"'";throw new R.QueryParseError(r,a.start,a.end)}else e.nextClause()}},R.QueryParser.parseBoost=function(e){var t=e.consumeLexeme();if(null!=t){var n=parseInt(t.str,10);if(isNaN(n)){var r="boost must be numeric";throw new R.QueryParseError(r,t.start,t.end)}e.currentClause.boost=n;var a=e.peekLexeme();if(null!=a)switch(a.type){case R.QueryLexer.TERM:return e.nextClause(),R.QueryParser.parseTerm;case R.QueryLexer.FIELD:return e.nextClause(),R.QueryParser.parseField;case R.QueryLexer.EDIT_DISTANCE:return R.QueryParser.parseEditDistance;case R.QueryLexer.BOOST:return R.QueryParser.parseBoost;case R.QueryLexer.PRESENCE:return e.nextClause(),R.QueryParser.parsePresence;default:r="Unexpected lexeme type '"+a.type+"'";throw new R.QueryParseError(r,a.start,a.end)}else e.nextClause()}},void 0===(a="function"==typeof(r=function(){return R})?r.call(t,n,t,e):r)||(e.exports=a)}()},2497:(e,t,n)=>{"use strict";n.r(t)},2295:(e,t,n)=>{"use strict";n.r(t)},7713:(e,t,n)=>{"use strict";n.r(t)},2601:(e,t,n)=>{"use strict";n.r(t)},4865:function(e,t,n){var r,a;r=function(){var e,t,n={version:"0.2.0"},r=n.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'<div class="bar" role="bar"><div class="peg"></div></div><div class="spinner" role="spinner"><div class="spinner-icon"></div></div>'};function a(e,t,n){return e<t?t:e>n?n:e}function o(e){return 100*(-1+e)}function i(e,t,n){var a;return(a="translate3d"===r.positionUsing?{transform:"translate3d("+o(e)+"%,0,0)"}:"translate"===r.positionUsing?{transform:"translate("+o(e)+"%,0)"}:{"margin-left":o(e)+"%"}).transition="all "+t+"ms "+n,a}n.configure=function(e){var t,n;for(t in e)void 0!==(n=e[t])&&e.hasOwnProperty(t)&&(r[t]=n);return this},n.status=null,n.set=function(e){var t=n.isStarted();e=a(e,r.minimum,1),n.status=1===e?null:e;var o=n.render(!t),u=o.querySelector(r.barSelector),c=r.speed,d=r.easing;return o.offsetWidth,s((function(t){""===r.positionUsing&&(r.positionUsing=n.getPositioningCSS()),l(u,i(e,c,d)),1===e?(l(o,{transition:"none",opacity:1}),o.offsetWidth,setTimeout((function(){l(o,{transition:"all "+c+"ms linear",opacity:0}),setTimeout((function(){n.remove(),t()}),c)}),c)):setTimeout(t,c)})),this},n.isStarted=function(){return"number"==typeof n.status},n.start=function(){n.status||n.set(0);var e=function(){setTimeout((function(){n.status&&(n.trickle(),e())}),r.trickleSpeed)};return r.trickle&&e(),this},n.done=function(e){return e||n.status?n.inc(.3+.5*Math.random()).set(1):this},n.inc=function(e){var t=n.status;return t?("number"!=typeof e&&(e=(1-t)*a(Math.random()*t,.1,.95)),t=a(t+e,0,.994),n.set(t)):n.start()},n.trickle=function(){return n.inc(Math.random()*r.trickleRate)},e=0,t=0,n.promise=function(r){return r&&"resolved"!==r.state()?(0===t&&n.start(),e++,t++,r.always((function(){0==--t?(e=0,n.done()):n.set((e-t)/e)})),this):this},n.render=function(e){if(n.isRendered())return document.getElementById("nprogress");c(document.documentElement,"nprogress-busy");var t=document.createElement("div");t.id="nprogress",t.innerHTML=r.template;var a,i=t.querySelector(r.barSelector),s=e?"-100":o(n.status||0),u=document.querySelector(r.parent);return l(i,{transition:"all 0 linear",transform:"translate3d("+s+"%,0,0)"}),r.showSpinner||(a=t.querySelector(r.spinnerSelector))&&p(a),u!=document.body&&c(u,"nprogress-custom-parent"),u.appendChild(t),t},n.remove=function(){d(document.documentElement,"nprogress-busy"),d(document.querySelector(r.parent),"nprogress-custom-parent");var e=document.getElementById("nprogress");e&&p(e)},n.isRendered=function(){return!!document.getElementById("nprogress")},n.getPositioningCSS=function(){var e=document.body.style,t="WebkitTransform"in e?"Webkit":"MozTransform"in e?"Moz":"msTransform"in e?"ms":"OTransform"in e?"O":"";return t+"Perspective"in e?"translate3d":t+"Transform"in e?"translate":"margin"};var s=function(){var e=[];function t(){var n=e.shift();n&&n(t)}return function(n){e.push(n),1==e.length&&t()}}(),l=function(){var e=["Webkit","O","Moz","ms"],t={};function n(e){return e.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,(function(e,t){return t.toUpperCase()}))}function r(t){var n=document.body.style;if(t in n)return t;for(var r,a=e.length,o=t.charAt(0).toUpperCase()+t.slice(1);a--;)if((r=e[a]+o)in n)return r;return t}function a(e){return e=n(e),t[e]||(t[e]=r(e))}function o(e,t,n){t=a(t),e.style[t]=n}return function(e,t){var n,r,a=arguments;if(2==a.length)for(n in t)void 0!==(r=t[n])&&t.hasOwnProperty(n)&&o(e,n,r);else o(e,a[1],a[2])}}();function u(e,t){return("string"==typeof e?e:f(e)).indexOf(" "+t+" ")>=0}function c(e,t){var n=f(e),r=n+t;u(n,t)||(e.className=r.substring(1))}function d(e,t){var n,r=f(e);u(e,t)&&(n=r.replace(" "+t+" "," "),e.className=n.substring(1,n.length-1))}function f(e){return(" "+(e.className||"")+" ").replace(/\s+/gi," ")}function p(e){e&&e.parentNode&&e.parentNode.removeChild(e)}return n},void 0===(a="function"==typeof r?r.call(t,n,t,e):r)||(e.exports=a)},7418:e=>{"use strict";var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(a){return!1}}()?Object.assign:function(e,a){for(var o,i,s=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),l=1;l<arguments.length;l++){for(var u in o=Object(arguments[l]))n.call(o,u)&&(s[u]=o[u]);if(t){i=t(o);for(var c=0;c<i.length;c++)r.call(o,i[c])&&(s[i[c]]=o[i[c]])}}return s}},4779:(e,t,n)=>{var r=n(5826);e.exports=p,e.exports.parse=o,e.exports.compile=function(e,t){return s(o(e,t),t)},e.exports.tokensToFunction=s,e.exports.tokensToRegExp=f;var a=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function o(e,t){for(var n,r=[],o=0,i=0,s="",c=t&&t.delimiter||"/";null!=(n=a.exec(e));){var d=n[0],f=n[1],p=n.index;if(s+=e.slice(i,p),i=p+d.length,f)s+=f[1];else{var h=e[i],m=n[2],g=n[3],b=n[4],v=n[5],y=n[6],w=n[7];s&&(r.push(s),s="");var E=null!=m&&null!=h&&h!==m,k="+"===y||"*"===y,S="?"===y||"*"===y,x=n[2]||c,_=b||v;r.push({name:g||o++,prefix:m||"",delimiter:x,optional:S,repeat:k,partial:E,asterisk:!!w,pattern:_?u(_):w?".*":"[^"+l(x)+"]+?"})}}return i<e.length&&(s+=e.substr(i)),s&&r.push(s),r}function i(e){return encodeURI(e).replace(/[\/?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function s(e,t){for(var n=new Array(e.length),a=0;a<e.length;a++)"object"==typeof e[a]&&(n[a]=new RegExp("^(?:"+e[a].pattern+")$",d(t)));return function(t,a){for(var o="",s=t||{},l=(a||{}).pretty?i:encodeURIComponent,u=0;u<e.length;u++){var c=e[u];if("string"!=typeof c){var d,f=s[c.name];if(null==f){if(c.optional){c.partial&&(o+=c.prefix);continue}throw new TypeError('Expected "'+c.name+'" to be defined')}if(r(f)){if(!c.repeat)throw new TypeError('Expected "'+c.name+'" to not repeat, but received `'+JSON.stringify(f)+"`");if(0===f.length){if(c.optional)continue;throw new TypeError('Expected "'+c.name+'" to not be empty')}for(var p=0;p<f.length;p++){if(d=l(f[p]),!n[u].test(d))throw new TypeError('Expected all "'+c.name+'" to match "'+c.pattern+'", but received `'+JSON.stringify(d)+"`");o+=(0===p?c.prefix:c.delimiter)+d}}else{if(d=c.asterisk?encodeURI(f).replace(/[?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})):l(f),!n[u].test(d))throw new TypeError('Expected "'+c.name+'" to match "'+c.pattern+'", but received "'+d+'"');o+=c.prefix+d}}else o+=c}return o}}function l(e){return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function u(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function c(e,t){return e.keys=t,e}function d(e){return e&&e.sensitive?"":"i"}function f(e,t,n){r(t)||(n=t||n,t=[]);for(var a=(n=n||{}).strict,o=!1!==n.end,i="",s=0;s<e.length;s++){var u=e[s];if("string"==typeof u)i+=l(u);else{var f=l(u.prefix),p="(?:"+u.pattern+")";t.push(u),u.repeat&&(p+="(?:"+f+p+")*"),i+=p=u.optional?u.partial?f+"("+p+")?":"(?:"+f+"("+p+"))?":f+"("+p+")"}}var h=l(n.delimiter||"/"),m=i.slice(-h.length)===h;return a||(i=(m?i.slice(0,-h.length):i)+"(?:"+h+"(?=$))?"),i+=o?"$":a&&m?"":"(?="+h+"|$)",c(new RegExp("^"+i,d(n)),t)}function p(e,t,n){return r(t)||(n=t||n,t=[]),n=n||{},e instanceof RegExp?function(e,t){var n=e.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)t.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return c(e,t)}(e,t):r(e)?function(e,t,n){for(var r=[],a=0;a<e.length;a++)r.push(p(e[a],t,n).source);return c(new RegExp("(?:"+r.join("|")+")",d(n)),t)}(e,t,n):function(e,t,n){return f(o(e,n),t,n)}(e,t,n)}},7410:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=function(){var e=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,t=0,n={},r={util:{encode:function e(t){return t instanceof a?new a(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++t}),e.__id},clone:function e(t,n){var a,o;switch(n=n||{},r.util.type(t)){case"Object":if(o=r.util.objId(t),n[o])return n[o];for(var i in a={},n[o]=a,t)t.hasOwnProperty(i)&&(a[i]=e(t[i],n));return a;case"Array":return o=r.util.objId(t),n[o]?n[o]:(a=[],n[o]=a,t.forEach((function(t,r){a[r]=e(t,n)})),a);default:return t}},getLanguage:function(t){for(;t;){var n=e.exec(t.className);if(n)return n[1].toLowerCase();t=t.parentElement}return"none"},setLanguage:function(t,n){t.className=t.className.replace(RegExp(e,"gi"),""),t.classList.add("language-"+n)},isActive:function(e,t,n){for(var r="no-"+t;e;){var a=e.classList;if(a.contains(t))return!0;if(a.contains(r))return!1;e=e.parentElement}return!!n}},languages:{plain:n,plaintext:n,text:n,txt:n,extend:function(e,t){var n=r.util.clone(r.languages[e]);for(var a in t)n[a]=t[a];return n},insertBefore:function(e,t,n,a){var o=(a=a||r.languages)[e],i={};for(var s in o)if(o.hasOwnProperty(s)){if(s==t)for(var l in n)n.hasOwnProperty(l)&&(i[l]=n[l]);n.hasOwnProperty(s)||(i[s]=o[s])}var u=a[e];return a[e]=i,r.languages.DFS(r.languages,(function(t,n){n===u&&t!=e&&(this[t]=i)})),i},DFS:function e(t,n,a,o){o=o||{};var i=r.util.objId;for(var s in t)if(t.hasOwnProperty(s)){n.call(t,s,t[s],a||s);var l=t[s],u=r.util.type(l);"Object"!==u||o[i(l)]?"Array"!==u||o[i(l)]||(o[i(l)]=!0,e(l,n,s,o)):(o[i(l)]=!0,e(l,n,null,o))}}},plugins:{},highlight:function(e,t,n){var o={code:e,grammar:t,language:n};return r.hooks.run("before-tokenize",o),o.tokens=r.tokenize(o.code,o.grammar),r.hooks.run("after-tokenize",o),a.stringify(r.util.encode(o.tokens),o.language)},tokenize:function(e,t){var n=t.rest;if(n){for(var r in n)t[r]=n[r];delete t.rest}var a=new s;return l(a,a.head,e),i(e,a,t,a.head,0),function(e){var t=[],n=e.head.next;for(;n!==e.tail;)t.push(n.value),n=n.next;return t}(a)},hooks:{all:{},add:function(e,t){var n=r.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=r.hooks.all[e];if(n&&n.length)for(var a,o=0;a=n[o++];)a(t)}},Token:a};function a(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=0|(r||"").length}function o(e,t,n,r){e.lastIndex=t;var a=e.exec(n);if(a&&r&&a[1]){var o=a[1].length;a.index+=o,a[0]=a[0].slice(o)}return a}function i(e,t,n,s,c,d){for(var f in n)if(n.hasOwnProperty(f)&&n[f]){var p=n[f];p=Array.isArray(p)?p:[p];for(var h=0;h<p.length;++h){if(d&&d.cause==f+","+h)return;var m=p[h],g=m.inside,b=!!m.lookbehind,v=!!m.greedy,y=m.alias;if(v&&!m.pattern.global){var w=m.pattern.toString().match(/[imsuy]*$/)[0];m.pattern=RegExp(m.pattern.source,w+"g")}for(var E=m.pattern||m,k=s.next,S=c;k!==t.tail&&!(d&&S>=d.reach);S+=k.value.length,k=k.next){var x=k.value;if(t.length>e.length)return;if(!(x instanceof a)){var _,L=1;if(v){if(!(_=o(E,S,e,b))||_.index>=e.length)break;var C=_.index,T=_.index+_[0].length,A=S;for(A+=k.value.length;C>=A;)A+=(k=k.next).value.length;if(S=A-=k.value.length,k.value instanceof a)continue;for(var O=k;O!==t.tail&&(A<T||"string"==typeof O.value);O=O.next)L++,A+=O.value.length;L--,x=e.slice(S,A),_.index-=S}else if(!(_=o(E,0,x,b)))continue;C=_.index;var P=_[0],N=x.slice(0,C),D=x.slice(C+P.length),I=S+x.length;d&&I>d.reach&&(d.reach=I);var R=k.prev;if(N&&(R=l(t,R,N),S+=N.length),u(t,R,L),k=l(t,R,new a(f,g?r.tokenize(P,g):P,y,P)),D&&l(t,k,D),L>1){var M={cause:f+","+h,reach:I};i(e,t,n,k.prev,S,M),d&&M.reach>d.reach&&(d.reach=M.reach)}}}}}}function s(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function l(e,t,n){var r=t.next,a={value:n,prev:t,next:r};return t.next=a,r.prev=a,e.length++,a}function u(e,t,n){for(var r=t.next,a=0;a<n&&r!==e.tail;a++)r=r.next;t.next=r,r.prev=t,e.length-=a}return a.stringify=function e(t,n){if("string"==typeof t)return t;if(Array.isArray(t)){var a="";return t.forEach((function(t){a+=e(t,n)})),a}var o={type:t.type,content:e(t.content,n),tag:"span",classes:["token",t.type],attributes:{},language:n},i=t.alias;i&&(Array.isArray(i)?Array.prototype.push.apply(o.classes,i):o.classes.push(i)),r.hooks.run("wrap",o);var s="";for(var l in o.attributes)s+=" "+l+'="'+(o.attributes[l]||"").replace(/"/g,""")+'"';return"<"+o.tag+' class="'+o.classes.join(" ")+'"'+s+">"+o.content+"</"+o.tag+">"},r}(),a=r;r.default=r,a.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},a.languages.markup.tag.inside["attr-value"].inside.entity=a.languages.markup.entity,a.languages.markup.doctype.inside["internal-subset"].inside=a.languages.markup,a.hooks.add("wrap",(function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&/,"&"))})),Object.defineProperty(a.languages.markup.tag,"addInlined",{value:function(e,t){var n={};n["language-"+t]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:a.languages[t]},n.cdata=/^<!\[CDATA\[|\]\]>$/i;var r={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:n}};r["language-"+t]={pattern:/[\s\S]+/,inside:a.languages[t]};var o={};o[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,(function(){return e})),"i"),lookbehind:!0,greedy:!0,inside:r},a.languages.insertBefore("markup","cdata",o)}}),Object.defineProperty(a.languages.markup.tag,"addAttribute",{value:function(e,t){a.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,"language-"+t],inside:a.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),a.languages.html=a.languages.markup,a.languages.mathml=a.languages.markup,a.languages.svg=a.languages.markup,a.languages.xml=a.languages.extend("markup",{}),a.languages.ssml=a.languages.xml,a.languages.atom=a.languages.xml,a.languages.rss=a.languages.xml,function(e){var t="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",n={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},r={bash:n,environment:{pattern:RegExp("\\$"+t),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+t),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};e.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+t),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:r},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:n}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:r},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:r.entity}}],environment:{pattern:RegExp("\\$?"+t),alias:"constant"},variable:r.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},n.inside=e.languages.bash;for(var a=["comment","function-name","for-or-select","assign-left","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],o=r.variable[1].inside,i=0;i<a.length;i++)o[a[i]]=e.languages.bash[a[i]];e.languages.shell=e.languages.bash}(a),a.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},a.languages.c=a.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),a.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),a.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},a.languages.c.string],char:a.languages.c.char,comment:a.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:a.languages.c}}}}),a.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete a.languages.c.boolean,function(e){var t=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,n=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,(function(){return t.source}));e.languages.cpp=e.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,(function(){return t.source}))),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:t,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),e.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,(function(){return n}))+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),e.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:e.languages.cpp}}}}),e.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),e.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:e.languages.extend("cpp",{})}}),e.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},e.languages.cpp["base-clause"])}(a),function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/,inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css;var n=e.languages.markup;n&&(n.tag.addInlined("style","css"),n.tag.addAttribute("style","css"))}(a),function(e){var t,n=/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/;e.languages.css.selector={pattern:e.languages.css.selector.pattern,lookbehind:!0,inside:t={"pseudo-element":/:(?:after|before|first-letter|first-line|selection)|::[-\w]+/,"pseudo-class":/:[-\w]+/,class:/\.[-\w]+/,id:/#[-\w]+/,attribute:{pattern:RegExp("\\[(?:[^[\\]\"']|"+n.source+")*\\]"),greedy:!0,inside:{punctuation:/^\[|\]$/,"case-sensitivity":{pattern:/(\s)[si]$/i,lookbehind:!0,alias:"keyword"},namespace:{pattern:/^(\s*)(?:(?!\s)[-*\w\xA0-\uFFFF])*\|(?!=)/,lookbehind:!0,inside:{punctuation:/\|$/}},"attr-name":{pattern:/^(\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+/,lookbehind:!0},"attr-value":[n,{pattern:/(=\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+(?=\s*$)/,lookbehind:!0}],operator:/[|~*^$]?=/}},"n-th":[{pattern:/(\(\s*)[+-]?\d*[\dn](?:\s*[+-]\s*\d+)?(?=\s*\))/,lookbehind:!0,inside:{number:/[\dn]+/,operator:/[+-]/}},{pattern:/(\(\s*)(?:even|odd)(?=\s*\))/i,lookbehind:!0}],combinator:/>|\+|~|\|\|/,punctuation:/[(),]/}},e.languages.css.atrule.inside["selector-function-argument"].inside=t,e.languages.insertBefore("css","property",{variable:{pattern:/(^|[^-\w\xA0-\uFFFF])--(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*/i,lookbehind:!0}});var r={pattern:/(\b\d+)(?:%|[a-z]+(?![\w-]))/,lookbehind:!0},a={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0};e.languages.insertBefore("css","function",{operator:{pattern:/(\s)[+\-*\/](?=\s)/,lookbehind:!0},hexcode:{pattern:/\B#[\da-f]{3,8}\b/i,alias:"color"},color:[{pattern:/(^|[^\w-])(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)(?![\w-])/i,lookbehind:!0},{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:r,number:a,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:r,number:a})}(a),a.languages.javascript=a.languages.extend("clike",{"class-name":[a.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),a.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,a.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:a.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:a.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:a.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:a.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:a.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),a.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:a.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),a.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),a.languages.markup&&(a.languages.markup.tag.addInlined("script","javascript"),a.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),a.languages.js=a.languages.javascript,function(e){var t=/#(?!\{).+/,n={pattern:/#\{[^}]+\}/,alias:"variable"};e.languages.coffeescript=e.languages.extend("javascript",{comment:t,string:[{pattern:/'(?:\\[\s\S]|[^\\'])*'/,greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0,inside:{interpolation:n}}],keyword:/\b(?:and|break|by|catch|class|continue|debugger|delete|do|each|else|extend|extends|false|finally|for|if|in|instanceof|is|isnt|let|loop|namespace|new|no|not|null|of|off|on|or|own|return|super|switch|then|this|throw|true|try|typeof|undefined|unless|until|when|while|window|with|yes|yield)\b/,"class-member":{pattern:/@(?!\d)\w+/,alias:"variable"}}),e.languages.insertBefore("coffeescript","comment",{"multiline-comment":{pattern:/###[\s\S]+?###/,alias:"comment"},"block-regex":{pattern:/\/{3}[\s\S]*?\/{3}/,alias:"regex",inside:{comment:t,interpolation:n}}}),e.languages.insertBefore("coffeescript","string",{"inline-javascript":{pattern:/`(?:\\[\s\S]|[^\\`])*`/,inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"},script:{pattern:/[\s\S]+/,alias:"language-javascript",inside:e.languages.javascript}}},"multiline-string":[{pattern:/'''[\s\S]*?'''/,greedy:!0,alias:"string"},{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string",inside:{interpolation:n}}]}),e.languages.insertBefore("coffeescript","keyword",{property:/(?!\d)\w+(?=\s*:(?!:))/}),delete e.languages.coffeescript["template-string"],e.languages.coffee=e.languages.coffeescript}(a),function(e){var t=/[*&][^\s[\]{},]+/,n=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,r="(?:"+n.source+"(?:[ \t]+"+t.source+")?|"+t.source+"(?:[ \t]+"+n.source+")?)",a=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*/.source.replace(/<PLAIN>/g,(function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source})),o=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function i(e,t){t=(t||"").replace(/m/g,"")+"m";var n=/([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g,(function(){return r})).replace(/<<value>>/g,(function(){return e}));return RegExp(n,t)}e.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<<prop>>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<<prop>>/g,(function(){return r}))),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g,(function(){return r})).replace(/<<key>>/g,(function(){return"(?:"+a+"|"+o+")"}))),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:i(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:i(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:i(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:i(o),lookbehind:!0,greedy:!0},number:{pattern:i(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:n,important:t,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},e.languages.yml=e.languages.yaml}(a),function(e){var t=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function n(e){return e=e.replace(/<inner>/g,(function(){return t})),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+e+")")}var r=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,a=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,(function(){return r})),o=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;e.languages.markdown=e.languages.extend("markup",{}),e.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:e.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+a+o+"(?:"+a+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+a+o+")(?:"+a+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(r),inside:e.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+a+")"+o+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+a+"$"),inside:{"table-header":{pattern:RegExp(r),alias:"important",inside:e.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:n(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:n(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:n(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:n(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach((function(t){["url","bold","italic","strike","code-snippet"].forEach((function(n){t!==n&&(e.languages.markdown[t].inside.content.inside[n]=e.languages.markdown[n])}))})),e.hooks.add("after-tokenize",(function(e){"markdown"!==e.language&&"md"!==e.language||function e(t){if(t&&"string"!=typeof t)for(var n=0,r=t.length;n<r;n++){var a=t[n];if("code"===a.type){var o=a.content[1],i=a.content[3];if(o&&i&&"code-language"===o.type&&"code-block"===i.type&&"string"==typeof o.content){var s=o.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp"),l="language-"+(s=(/[a-z][\w-]*/i.exec(s)||[""])[0].toLowerCase());i.alias?"string"==typeof i.alias?i.alias=[i.alias,l]:i.alias.push(l):i.alias=[l]}}else e(a.content)}}(e.tokens)})),e.hooks.add("wrap",(function(t){if("code-block"===t.type){for(var n="",r=0,a=t.classes.length;r<a;r++){var o=t.classes[r],u=/language-(.+)/.exec(o);if(u){n=u[1];break}}var c,d=e.languages[n];if(d)t.content=e.highlight((c=t.content,c.replace(i,"").replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,(function(e,t){var n;if("#"===(t=t.toLowerCase())[0])return n="x"===t[1]?parseInt(t.slice(2),16):Number(t.slice(1)),l(n);var r=s[t];return r||e}))),d,n);else if(n&&"none"!==n&&e.plugins.autoloader){var f="md-"+(new Date).valueOf()+"-"+Math.floor(1e16*Math.random());t.attributes.id=f,e.plugins.autoloader.loadLanguages(n,(function(){var t=document.getElementById(f);t&&(t.innerHTML=e.highlight(t.textContent,e.languages[n],n))}))}}}));var i=RegExp(e.languages.markup.tag.pattern.source,"gi"),s={amp:"&",lt:"<",gt:">",quot:'"'},l=String.fromCodePoint||String.fromCharCode;e.languages.md=e.languages.markdown}(a),a.languages.graphql={comment:/#.*/,description:{pattern:/(?:"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*")(?=\s*[a-z_])/i,greedy:!0,alias:"string",inside:{"language-markdown":{pattern:/(^"(?:"")?)(?!\1)[\s\S]+(?=\1$)/,lookbehind:!0,inside:a.languages.markdown}}},string:{pattern:/"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},number:/(?:\B-|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,boolean:/\b(?:false|true)\b/,variable:/\$[a-z_]\w*/i,directive:{pattern:/@[a-z_]\w*/i,alias:"function"},"attr-name":{pattern:/\b[a-z_]\w*(?=\s*(?:\((?:[^()"]|"(?:\\.|[^\\"\r\n])*")*\))?:)/i,greedy:!0},"atom-input":{pattern:/\b[A-Z]\w*Input\b/,alias:"class-name"},scalar:/\b(?:Boolean|Float|ID|Int|String)\b/,constant:/\b[A-Z][A-Z_\d]*\b/,"class-name":{pattern:/(\b(?:enum|implements|interface|on|scalar|type|union)\s+|&\s*|:\s*|\[)[A-Z_]\w*/,lookbehind:!0},fragment:{pattern:/(\bfragment\s+|\.{3}\s*(?!on\b))[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-mutation":{pattern:/(\bmutation\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-query":{pattern:/(\bquery\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},keyword:/\b(?:directive|enum|extend|fragment|implements|input|interface|mutation|on|query|repeatable|scalar|schema|subscription|type|union)\b/,operator:/[!=|&]|\.{3}/,"property-query":/\w+(?=\s*\()/,object:/\w+(?=\s*\{)/,punctuation:/[!(){}\[\]:=,]/,property:/\w+/},a.hooks.add("after-tokenize",(function(e){if("graphql"===e.language)for(var t=e.tokens.filter((function(e){return"string"!=typeof e&&"comment"!==e.type&&"scalar"!==e.type})),n=0;n<t.length;){var r=t[n++];if("keyword"===r.type&&"mutation"===r.content){var a=[];if(d(["definition-mutation","punctuation"])&&"("===c(1).content){n+=2;var o=f(/^\($/,/^\)$/);if(-1===o)continue;for(;n<o;n++){var i=c(0);"variable"===i.type&&(p(i,"variable-input"),a.push(i.content))}n=o+1}if(d(["punctuation","property-query"])&&"{"===c(0).content&&(n++,p(c(0),"property-mutation"),a.length>0)){var s=f(/^\{$/,/^\}$/);if(-1===s)continue;for(var l=n;l<s;l++){var u=t[l];"variable"===u.type&&a.indexOf(u.content)>=0&&p(u,"variable-input")}}}}function c(e){return t[n+e]}function d(e,t){t=t||0;for(var n=0;n<e.length;n++){var r=c(n+t);if(!r||r.type!==e[n])return!1}return!0}function f(e,r){for(var a=1,o=n;o<t.length;o++){var i=t[o],s=i.content;if("punctuation"===i.type&&"string"==typeof s)if(e.test(s))a++;else if(r.test(s)&&0===--a)return o}return-1}function p(e,t){var n=e.alias;n?Array.isArray(n)||(e.alias=n=[n]):e.alias=n=[],n.push(t)}})),a.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/},function(e){var t=e.languages.javascript["template-string"],n=t.pattern.source,r=t.inside.interpolation,a=r.inside["interpolation-punctuation"],o=r.pattern.source;function i(t,r){if(e.languages[t])return{pattern:RegExp("((?:"+r+")\\s*)"+n),lookbehind:!0,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},"embedded-code":{pattern:/[\s\S]+/,alias:t}}}}function s(e,t){return"___"+t.toUpperCase()+"_"+e+"___"}function l(t,n,r){var a={code:t,grammar:n,language:r};return e.hooks.run("before-tokenize",a),a.tokens=e.tokenize(a.code,a.grammar),e.hooks.run("after-tokenize",a),a.tokens}function u(t){var n={};n["interpolation-punctuation"]=a;var o=e.tokenize(t,n);if(3===o.length){var i=[1,1];i.push.apply(i,l(o[1],e.languages.javascript,"javascript")),o.splice.apply(o,i)}return new e.Token("interpolation",o,r.alias,t)}function c(t,n,r){var a=e.tokenize(t,{interpolation:{pattern:RegExp(o),lookbehind:!0}}),i=0,c={},d=l(a.map((function(e){if("string"==typeof e)return e;for(var n,a=e.content;-1!==t.indexOf(n=s(i++,r)););return c[n]=a,n})).join(""),n,r),f=Object.keys(c);return i=0,function e(t){for(var n=0;n<t.length;n++){if(i>=f.length)return;var r=t[n];if("string"==typeof r||"string"==typeof r.content){var a=f[i],o="string"==typeof r?r:r.content,s=o.indexOf(a);if(-1!==s){++i;var l=o.substring(0,s),d=u(c[a]),p=o.substring(s+a.length),h=[];if(l&&h.push(l),h.push(d),p){var m=[p];e(m),h.push.apply(h,m)}"string"==typeof r?(t.splice.apply(t,[n,1].concat(h)),n+=h.length-1):r.content=h}}else{var g=r.content;Array.isArray(g)?e(g):e([g])}}}(d),new e.Token(r,d,"language-"+r,t)}e.languages.javascript["template-string"]=[i("css",/\b(?:styled(?:\([^)]*\))?(?:\s*\.\s*\w+(?:\([^)]*\))*)*|css(?:\s*\.\s*(?:global|resolve))?|createGlobalStyle|keyframes)/.source),i("html",/\bhtml|\.\s*(?:inner|outer)HTML\s*\+?=/.source),i("svg",/\bsvg/.source),i("markdown",/\b(?:markdown|md)/.source),i("graphql",/\b(?:gql|graphql(?:\s*\.\s*experimental)?)/.source),i("sql",/\bsql/.source),t].filter(Boolean);var d={javascript:!0,js:!0,typescript:!0,ts:!0,jsx:!0,tsx:!0};function f(e){return"string"==typeof e?e:Array.isArray(e)?e.map(f).join(""):f(e.content)}e.hooks.add("after-tokenize",(function(t){t.language in d&&function t(n){for(var r=0,a=n.length;r<a;r++){var o=n[r];if("string"!=typeof o){var i=o.content;if(Array.isArray(i))if("template-string"===o.type){var s=i[1];if(3===i.length&&"string"!=typeof s&&"embedded-code"===s.type){var l=f(s),u=s.alias,d=Array.isArray(u)?u[0]:u,p=e.languages[d];if(!p)continue;i[1]=c(l,p,d)}}else t(i);else"string"!=typeof i&&t([i])}}}(t.tokens)}))}(a),function(e){e.languages.typescript=e.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),e.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete e.languages.typescript.parameter,delete e.languages.typescript["literal-property"];var t=e.languages.extend("typescript",{});delete t["class-name"],e.languages.typescript["class-name"].inside=t,e.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:t}}}}),e.languages.ts=e.languages.typescript}(a),function(e){function t(e,t){return RegExp(e.replace(/<ID>/g,(function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source})),t)}e.languages.insertBefore("javascript","function-variable",{"method-variable":{pattern:RegExp("(\\.\\s*)"+e.languages.javascript["function-variable"].pattern.source),lookbehind:!0,alias:["function-variable","method","function","property-access"]}}),e.languages.insertBefore("javascript","function",{method:{pattern:RegExp("(\\.\\s*)"+e.languages.javascript.function.source),lookbehind:!0,alias:["function","property-access"]}}),e.languages.insertBefore("javascript","constant",{"known-class-name":[{pattern:/\b(?:(?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)?Array|ArrayBuffer|BigInt|Boolean|DataView|Date|Error|Function|Intl|JSON|(?:Weak)?(?:Map|Set)|Math|Number|Object|Promise|Proxy|Reflect|RegExp|String|Symbol|WebAssembly)\b/,alias:"class-name"},{pattern:/\b(?:[A-Z]\w*)Error\b/,alias:"class-name"}]}),e.languages.insertBefore("javascript","keyword",{imports:{pattern:t(/(\bimport\b\s*)(?:<ID>(?:\s*,\s*(?:\*\s*as\s+<ID>|\{[^{}]*\}))?|\*\s*as\s+<ID>|\{[^{}]*\})(?=\s*\bfrom\b)/.source),lookbehind:!0,inside:e.languages.javascript},exports:{pattern:t(/(\bexport\b\s*)(?:\*(?:\s*as\s+<ID>)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source),lookbehind:!0,inside:e.languages.javascript}}),e.languages.javascript.keyword.unshift({pattern:/\b(?:as|default|export|from|import)\b/,alias:"module"},{pattern:/\b(?:await|break|catch|continue|do|else|finally|for|if|return|switch|throw|try|while|yield)\b/,alias:"control-flow"},{pattern:/\bnull\b/,alias:["null","nil"]},{pattern:/\bundefined\b/,alias:"nil"}),e.languages.insertBefore("javascript","operator",{spread:{pattern:/\.{3}/,alias:"operator"},arrow:{pattern:/=>/,alias:"operator"}}),e.languages.insertBefore("javascript","punctuation",{"property-access":{pattern:t(/(\.\s*)#?<ID>/.source),lookbehind:!0},"maybe-class-name":{pattern:/(^|[^$\w\xA0-\uFFFF])[A-Z][$\w\xA0-\uFFFF]+/,lookbehind:!0},dom:{pattern:/\b(?:document|(?:local|session)Storage|location|navigator|performance|window)\b/,alias:"variable"},console:{pattern:/\bconsole(?=\s*\.)/,alias:"class-name"}});for(var n=["function","function-variable","method","method-variable","property-access"],r=0;r<n.length;r++){var a=n[r],o=e.languages.javascript[a];"RegExp"===e.util.type(o)&&(o=e.languages.javascript[a]={pattern:o});var i=o.inside||{};o.inside=i,i["maybe-class-name"]=/^[A-Z][\s\S]*/}}(a),function(e){var t=e.util.clone(e.languages.javascript),n=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,r=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,a=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function o(e,t){return e=e.replace(/<S>/g,(function(){return n})).replace(/<BRACES>/g,(function(){return r})).replace(/<SPREAD>/g,(function(){return a})),RegExp(e,t)}a=o(a).source,e.languages.jsx=e.languages.extend("markup",t),e.languages.jsx.tag.pattern=o(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),e.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,e.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,e.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,e.languages.jsx.tag.inside.comment=t.comment,e.languages.insertBefore("inside","attr-name",{spread:{pattern:o(/<SPREAD>/.source),inside:e.languages.jsx}},e.languages.jsx.tag),e.languages.insertBefore("inside","special-attr",{script:{pattern:o(/=<BRACES>/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:e.languages.jsx}}},e.languages.jsx.tag);var i=function(e){return e?"string"==typeof e?e:"string"==typeof e.content?e.content:e.content.map(i).join(""):""},s=function(t){for(var n=[],r=0;r<t.length;r++){var a=t[r],o=!1;if("string"!=typeof a&&("tag"===a.type&&a.content[0]&&"tag"===a.content[0].type?"</"===a.content[0].content[0].content?n.length>0&&n[n.length-1].tagName===i(a.content[0].content[1])&&n.pop():"/>"===a.content[a.content.length-1].content||n.push({tagName:i(a.content[0].content[1]),openedBraces:0}):n.length>0&&"punctuation"===a.type&&"{"===a.content?n[n.length-1].openedBraces++:n.length>0&&n[n.length-1].openedBraces>0&&"punctuation"===a.type&&"}"===a.content?n[n.length-1].openedBraces--:o=!0),(o||"string"==typeof a)&&n.length>0&&0===n[n.length-1].openedBraces){var l=i(a);r<t.length-1&&("string"==typeof t[r+1]||"plain-text"===t[r+1].type)&&(l+=i(t[r+1]),t.splice(r+1,1)),r>0&&("string"==typeof t[r-1]||"plain-text"===t[r-1].type)&&(l=i(t[r-1])+l,t.splice(r-1,1),r--),t[r]=new e.Token("plain-text",l,null,l)}a.content&&"string"!=typeof a.content&&s(a.content)}};e.hooks.add("after-tokenize",(function(e){"jsx"!==e.language&&"tsx"!==e.language||s(e.tokens)}))}(a),function(e){e.languages.diff={coord:[/^(?:\*{3}|-{3}|\+{3}).*$/m,/^@@.*@@$/m,/^\d.*$/m]};var t={"deleted-sign":"-","deleted-arrow":"<","inserted-sign":"+","inserted-arrow":">",unchanged:" ",diff:"!"};Object.keys(t).forEach((function(n){var r=t[n],a=[];/^\w+$/.test(n)||a.push(/\w+/.exec(n)[0]),"diff"===n&&a.push("bold"),e.languages.diff[n]={pattern:RegExp("^(?:["+r+"].*(?:\r\n?|\n|(?![\\s\\S])))+","m"),alias:a,inside:{line:{pattern:/(.)(?=[\s\S]).*(?:\r\n?|\n)?/,lookbehind:!0},prefix:{pattern:/[\s\S]/,alias:/\w+/.exec(n)[0]}}}})),Object.defineProperty(e.languages.diff,"PREFIXES",{value:t})}(a),a.languages.git={comment:/^#.*/m,deleted:/^[-\u2013].*/m,inserted:/^\+.*/m,string:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,command:{pattern:/^.*\$ git .*$/m,inside:{parameter:/\s--?\w+/}},coord:/^@@.*@@$/m,"commit-sha1":/^commit \w{40}$/m},a.languages.go=a.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),a.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete a.languages.go["class-name"],function(e){function t(e,t){return"___"+e.toUpperCase()+t+"___"}Object.defineProperties(e.languages["markup-templating"]={},{buildPlaceholders:{value:function(n,r,a,o){if(n.language===r){var i=n.tokenStack=[];n.code=n.code.replace(a,(function(e){if("function"==typeof o&&!o(e))return e;for(var a,s=i.length;-1!==n.code.indexOf(a=t(r,s));)++s;return i[s]=e,a})),n.grammar=e.languages.markup}}},tokenizePlaceholders:{value:function(n,r){if(n.language===r&&n.tokenStack){n.grammar=e.languages[r];var a=0,o=Object.keys(n.tokenStack);!function i(s){for(var l=0;l<s.length&&!(a>=o.length);l++){var u=s[l];if("string"==typeof u||u.content&&"string"==typeof u.content){var c=o[a],d=n.tokenStack[c],f="string"==typeof u?u:u.content,p=t(r,c),h=f.indexOf(p);if(h>-1){++a;var m=f.substring(0,h),g=new e.Token(r,e.tokenize(d,n.grammar),"language-"+r,d),b=f.substring(h+p.length),v=[];m&&v.push.apply(v,i([m])),v.push(g),b&&v.push.apply(v,i([b])),"string"==typeof u?s.splice.apply(s,[l,1].concat(v)):u.content=v}}else u.content&&i(u.content)}return s}(n.tokens)}}}})}(a),function(e){e.languages.handlebars={comment:/\{\{![\s\S]*?\}\}/,delimiter:{pattern:/^\{\{\{?|\}\}\}?$/,alias:"punctuation"},string:/(["'])(?:\\.|(?!\1)[^\\\r\n])*\1/,number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][+-]?\d+)?/,boolean:/\b(?:false|true)\b/,block:{pattern:/^(\s*(?:~\s*)?)[#\/]\S+?(?=\s*(?:~\s*)?$|\s)/,lookbehind:!0,alias:"keyword"},brackets:{pattern:/\[[^\]]+\]/,inside:{punctuation:/\[|\]/,variable:/[\s\S]+/}},punctuation:/[!"#%&':()*+,.\/;<=>@\[\\\]^`{|}~]/,variable:/[^!"#%&'()*+,\/;<=>@\[\\\]^`{|}~\s]+/},e.hooks.add("before-tokenize",(function(t){e.languages["markup-templating"].buildPlaceholders(t,"handlebars",/\{\{\{[\s\S]+?\}\}\}|\{\{[\s\S]+?\}\}/g)})),e.hooks.add("after-tokenize",(function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"handlebars")})),e.languages.hbs=e.languages.handlebars}(a),a.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},a.languages.webmanifest=a.languages.json,a.languages.less=a.languages.extend("css",{comment:[/\/\*[\s\S]*?\*\//,{pattern:/(^|[^\\])\/\/.*/,lookbehind:!0}],atrule:{pattern:/@[\w-](?:\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{punctuation:/[:()]/}},selector:{pattern:/(?:@\{[\w-]+\}|[^{};\s@])(?:@\{[\w-]+\}|\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};@\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{variable:/@+[\w-]+/}},property:/(?:@\{[\w-]+\}|[\w-])+(?:\+_?)?(?=\s*:)/,operator:/[+\-*\/]/}),a.languages.insertBefore("less","property",{variable:[{pattern:/@[\w-]+\s*:/,inside:{punctuation:/:/}},/@@?[\w-]+/],"mixin-usage":{pattern:/([{;]\s*)[.#](?!\d)[\w-].*?(?=[(;])/,lookbehind:!0,alias:"function"}}),a.languages.makefile={comment:{pattern:/(^|[^\\])#(?:\\(?:\r\n|[\s\S])|[^\\\r\n])*/,lookbehind:!0},string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"builtin-target":{pattern:/\.[A-Z][^:#=\s]+(?=\s*:(?!=))/,alias:"builtin"},target:{pattern:/^(?:[^:=\s]|[ \t]+(?![\s:]))+(?=\s*:(?!=))/m,alias:"symbol",inside:{variable:/\$+(?:(?!\$)[^(){}:#=\s]+|(?=[({]))/}},variable:/\$+(?:(?!\$)[^(){}:#=\s]+|\([@*%<^+?][DF]\)|(?=[({]))/,keyword:/-include\b|\b(?:define|else|endef|endif|export|ifn?def|ifn?eq|include|override|private|sinclude|undefine|unexport|vpath)\b/,function:{pattern:/(\()(?:abspath|addsuffix|and|basename|call|dir|error|eval|file|filter(?:-out)?|findstring|firstword|flavor|foreach|guile|if|info|join|lastword|load|notdir|or|origin|patsubst|realpath|shell|sort|strip|subst|suffix|value|warning|wildcard|word(?:list|s)?)(?=[ \t])/,lookbehind:!0},operator:/(?:::|[?:+!])?=|[|@]/,punctuation:/[:;(){}]/},a.languages.objectivec=a.languages.extend("c",{string:{pattern:/@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|inline|int|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/,operator:/-[->]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete a.languages.objectivec["class-name"],a.languages.objc=a.languages.objectivec,a.languages.ocaml={comment:{pattern:/\(\*[\s\S]*?\*\)/,greedy:!0},char:{pattern:/'(?:[^\\\r\n']|\\(?:.|[ox]?[0-9a-f]{1,3}))'/i,greedy:!0},string:[{pattern:/"(?:\\(?:[\s\S]|\r\n)|[^\\\r\n"])*"/,greedy:!0},{pattern:/\{([a-z_]*)\|[\s\S]*?\|\1\}/,greedy:!0}],number:[/\b(?:0b[01][01_]*|0o[0-7][0-7_]*)\b/i,/\b0x[a-f0-9][a-f0-9_]*(?:\.[a-f0-9_]*)?(?:p[+-]?\d[\d_]*)?(?!\w)/i,/\b\d[\d_]*(?:\.[\d_]*)?(?:e[+-]?\d[\d_]*)?(?!\w)/i],directive:{pattern:/\B#\w+/,alias:"property"},label:{pattern:/\B~\w+/,alias:"property"},"type-variable":{pattern:/\B'\w+/,alias:"function"},variant:{pattern:/`\w+/,alias:"symbol"},keyword:/\b(?:as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|match|method|module|mutable|new|nonrec|object|of|open|private|rec|sig|struct|then|to|try|type|val|value|virtual|when|where|while|with)\b/,boolean:/\b(?:false|true)\b/,"operator-like-punctuation":{pattern:/\[[<>|]|[>|]\]|\{<|>\}/,alias:"punctuation"},operator:/\.[.~]|:[=>]|[=<>@^|&+\-*\/$%!?~][!$%&*+\-.\/:<=>?@^|~]*|\b(?:and|asr|land|lor|lsl|lsr|lxor|mod|or)\b/,punctuation:/;;|::|[(){}\[\].,:;#]|\b_\b/},a.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},a.languages.python["string-interpolation"].inside.interpolation.inside.rest=a.languages.python,a.languages.py=a.languages.python,a.languages.reason=a.languages.extend("clike",{string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},"class-name":/\b[A-Z]\w*/,keyword:/\b(?:and|as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|method|module|mutable|new|nonrec|object|of|open|or|private|rec|sig|struct|switch|then|to|try|type|val|virtual|when|while|with)\b/,operator:/\.{3}|:[:=]|\|>|->|=(?:==?|>)?|<=?|>=?|[|^?'#!~`]|[+\-*\/]\.?|\b(?:asr|land|lor|lsl|lsr|lxor|mod)\b/}),a.languages.insertBefore("reason","class-name",{char:{pattern:/'(?:\\x[\da-f]{2}|\\o[0-3][0-7][0-7]|\\\d{3}|\\.|[^'\\\r\n])'/,greedy:!0},constructor:/\b[A-Z]\w*\b(?!\s*\.)/,label:{pattern:/\b[a-z]\w*(?=::)/,alias:"symbol"}}),delete a.languages.reason.function,function(e){e.languages.sass=e.languages.extend("css",{comment:{pattern:/^([ \t]*)\/[\/*].*(?:(?:\r?\n|\r)\1[ \t].+)*/m,lookbehind:!0,greedy:!0}}),e.languages.insertBefore("sass","atrule",{"atrule-line":{pattern:/^(?:[ \t]*)[@+=].+/m,greedy:!0,inside:{atrule:/(?:@[\w-]+|[+=])/}}}),delete e.languages.sass.atrule;var t=/\$[-\w]+|#\{\$[-\w]+\}/,n=[/[+*\/%]|[=!]=|<=?|>=?|\b(?:and|not|or)\b/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}];e.languages.insertBefore("sass","property",{"variable-line":{pattern:/^[ \t]*\$.+/m,greedy:!0,inside:{punctuation:/:/,variable:t,operator:n}},"property-line":{pattern:/^[ \t]*(?:[^:\s]+ *:.*|:[^:\s].*)/m,greedy:!0,inside:{property:[/[^:\s]+(?=\s*:)/,{pattern:/(:)[^:\s]+/,lookbehind:!0}],punctuation:/:/,variable:t,operator:n,important:e.languages.sass.important}}}),delete e.languages.sass.property,delete e.languages.sass.important,e.languages.insertBefore("sass","punctuation",{selector:{pattern:/^([ \t]*)\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*(?:,(?:\r?\n|\r)\1[ \t]+\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*)*/m,lookbehind:!0,greedy:!0}})}(a),a.languages.scss=a.languages.extend("css",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},atrule:{pattern:/@[\w-](?:\([^()]+\)|[^()\s]|\s+(?!\s))*?(?=\s+[{;])/,inside:{rule:/@[\w-]+/}},url:/(?:[-a-z]+-)?url(?=\()/i,selector:{pattern:/(?=\S)[^@;{}()]?(?:[^@;{}()\s]|\s+(?!\s)|#\{\$[-\w]+\})+(?=\s*\{(?:\}|\s|[^}][^:{}]*[:{][^}]))/,inside:{parent:{pattern:/&/,alias:"important"},placeholder:/%[-\w]+/,variable:/\$[-\w]+|#\{\$[-\w]+\}/}},property:{pattern:/(?:[-\w]|\$[-\w]|#\{\$[-\w]+\})+(?=\s*:)/,inside:{variable:/\$[-\w]+|#\{\$[-\w]+\}/}}}),a.languages.insertBefore("scss","atrule",{keyword:[/@(?:content|debug|each|else(?: if)?|extend|for|forward|function|if|import|include|mixin|return|use|warn|while)\b/i,{pattern:/( )(?:from|through)(?= )/,lookbehind:!0}]}),a.languages.insertBefore("scss","important",{variable:/\$[-\w]+|#\{\$[-\w]+\}/}),a.languages.insertBefore("scss","function",{"module-modifier":{pattern:/\b(?:as|hide|show|with)\b/i,alias:"keyword"},placeholder:{pattern:/%[-\w]+/,alias:"selector"},statement:{pattern:/\B!(?:default|optional)\b/i,alias:"keyword"},boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"},operator:{pattern:/(\s)(?:[-+*\/%]|[=!]=|<=?|>=?|and|not|or)(?=\s)/,lookbehind:!0}}),a.languages.scss.atrule.inside.rest=a.languages.scss,function(e){var t={pattern:/(\b\d+)(?:%|[a-z]+)/,lookbehind:!0},n={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0},r={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},url:{pattern:/\burl\((["']?).*?\1\)/i,greedy:!0},string:{pattern:/("|')(?:(?!\1)[^\\\r\n]|\\(?:\r\n|[\s\S]))*\1/,greedy:!0},interpolation:null,func:null,important:/\B!(?:important|optional)\b/i,keyword:{pattern:/(^|\s+)(?:(?:else|for|if|return|unless)(?=\s|$)|@[\w-]+)/,lookbehind:!0},hexcode:/#[\da-f]{3,6}/i,color:[/\b(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)\b/i,{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:t,number:n,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:t,boolean:/\b(?:false|true)\b/,operator:[/~|[+!\/%<>?=]=?|[-:]=|\*[*=]?|\.{2,3}|&&|\|\||\B-\B|\b(?:and|in|is(?: a| defined| not|nt)?|not|or)\b/],number:n,punctuation:/[{}()\[\];:,]/};r.interpolation={pattern:/\{[^\r\n}:]+\}/,alias:"variable",inside:{delimiter:{pattern:/^\{|\}$/,alias:"punctuation"},rest:r}},r.func={pattern:/[\w-]+\([^)]*\).*/,inside:{function:/^[^(]+/,rest:r}},e.languages.stylus={"atrule-declaration":{pattern:/(^[ \t]*)@.+/m,lookbehind:!0,inside:{atrule:/^@[\w-]+/,rest:r}},"variable-declaration":{pattern:/(^[ \t]*)[\w$-]+\s*.?=[ \t]*(?:\{[^{}]*\}|\S.*|$)/m,lookbehind:!0,inside:{variable:/^\S+/,rest:r}},statement:{pattern:/(^[ \t]*)(?:else|for|if|return|unless)[ \t].+/m,lookbehind:!0,inside:{keyword:/^\S+/,rest:r}},"property-declaration":{pattern:/((?:^|\{)([ \t]*))(?:[\w-]|\{[^}\r\n]+\})+(?:\s*:\s*|[ \t]+)(?!\s)[^{\r\n]*(?:;|[^{\r\n,]$(?!(?:\r?\n|\r)(?:\{|\2[ \t])))/m,lookbehind:!0,inside:{property:{pattern:/^[^\s:]+/,inside:{interpolation:r.interpolation}},rest:r}},selector:{pattern:/(^[ \t]*)(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)(?:(?:\r?\n|\r)(?:\1(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)))*(?:,$|\{|(?=(?:\r?\n|\r)(?:\{|\1[ \t])))/m,lookbehind:!0,inside:{interpolation:r.interpolation,comment:r.comment,punctuation:/[{},]/}},func:r.func,string:r.string,comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0,greedy:!0},interpolation:r.interpolation,punctuation:/[{}()\[\];:.]/}}(a),function(e){var t=e.util.clone(e.languages.typescript);e.languages.tsx=e.languages.extend("jsx",t),delete e.languages.tsx.parameter,delete e.languages.tsx["literal-property"];var n=e.languages.tsx.tag;n.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+n.pattern.source+")",n.pattern.flags),n.lookbehind=!0}(a),a.languages.wasm={comment:[/\(;[\s\S]*?;\)/,{pattern:/;;.*/,greedy:!0}],string:{pattern:/"(?:\\[\s\S]|[^"\\])*"/,greedy:!0},keyword:[{pattern:/\b(?:align|offset)=/,inside:{operator:/=/}},{pattern:/\b(?:(?:f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|neg?|nearest|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|sqrt|store(?:8|16|32)?|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))?|memory\.(?:grow|size))\b/,inside:{punctuation:/\./}},/\b(?:anyfunc|block|br(?:_if|_table)?|call(?:_indirect)?|data|drop|elem|else|end|export|func|get_(?:global|local)|global|if|import|local|loop|memory|module|mut|nop|offset|param|result|return|select|set_(?:global|local)|start|table|tee_local|then|type|unreachable)\b/],variable:/\$[\w!#$%&'*+\-./:<=>?@\\^`|~]+/,number:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/,punctuation:/[()]/};const o=a},8443:()=>{Prism.languages.makefile={comment:{pattern:/(^|[^\\])#(?:\\(?:\r\n|[\s\S])|[^\\\r\n])*/,lookbehind:!0},string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"builtin-target":{pattern:/\.[A-Z][^:#=\s]+(?=\s*:(?!=))/,alias:"builtin"},target:{pattern:/^(?:[^:=\s]|[ \t]+(?![\s:]))+(?=\s*:(?!=))/m,alias:"symbol",inside:{variable:/\$+(?:(?!\$)[^(){}:#=\s]+|(?=[({]))/}},variable:/\$+(?:(?!\$)[^(){}:#=\s]+|\([@*%<^+?][DF]\)|(?=[({]))/,keyword:/-include\b|\b(?:define|else|endef|endif|export|ifn?def|ifn?eq|include|override|private|sinclude|undefine|unexport|vpath)\b/,function:{pattern:/(\()(?:abspath|addsuffix|and|basename|call|dir|error|eval|file|filter(?:-out)?|findstring|firstword|flavor|foreach|guile|if|info|join|lastword|load|notdir|or|origin|patsubst|realpath|shell|sort|strip|subst|suffix|value|warning|wildcard|word(?:list|s)?)(?=[ \t])/,lookbehind:!0},operator:/(?:::|[?:+!])?=|[|@]/,punctuation:/[:;(){}]/}},1248:(e,t,n)=>{var r={"./prism-makefile":8443};function a(e){var t=o(e);return n(t)}function o(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}a.keys=function(){return Object.keys(r)},a.resolve=o,e.exports=a,a.id=1248},2703:(e,t,n)=>{"use strict";var r=n(414);function a(){}function o(){}o.resetWarningCache=a,e.exports=function(){function e(e,t,n,a,o,i){if(i!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:a};return n.PropTypes=n,n}},5697:(e,t,n)=>{e.exports=n(2703)()},414:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},4448:(e,t,n)=>{"use strict";var r=n(7294),a=n(7418),o=n(3840);function i(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!r)throw Error(i(227));var s=new Set,l={};function u(e,t){c(e,t),c(e+"Capture",t)}function c(e,t){for(l[e]=t,e=0;e<t.length;e++)s.add(t[e])}var d=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),f=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,p=Object.prototype.hasOwnProperty,h={},m={};function g(e,t,n,r,a,o,i){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=a,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=i}var b={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){b[e]=new g(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];b[t]=new g(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){b[e]=new g(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){b[e]=new g(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){b[e]=new g(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){b[e]=new g(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){b[e]=new g(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){b[e]=new g(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){b[e]=new g(e,5,!1,e.toLowerCase(),null,!1,!1)}));var v=/[\-:]([a-z])/g;function y(e){return e[1].toUpperCase()}function w(e,t,n,r){var a=b.hasOwnProperty(t)?b[t]:null;(null!==a?0===a.type:!r&&(2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1])))||(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,a,r)&&(n=null),r||null===a?function(e){return!!p.call(m,e)||!p.call(h,e)&&(f.test(e)?m[e]=!0:(h[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):a.mustUseProperty?e[a.propertyName]=null===n?3!==a.type&&"":n:(t=a.attributeName,r=a.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(a=a.type)||4===a&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(v,y);b[t]=new g(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(v,y);b[t]=new g(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(v,y);b[t]=new g(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){b[e]=new g(e,1,!1,e.toLowerCase(),null,!1,!1)})),b.xlinkHref=new g("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){b[e]=new g(e,1,!1,e.toLowerCase(),null,!0,!0)}));var E=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,k=60103,S=60106,x=60107,_=60108,L=60114,C=60109,T=60110,A=60112,O=60113,P=60120,N=60115,D=60116,I=60121,R=60128,M=60129,F=60130,B=60131;if("function"==typeof Symbol&&Symbol.for){var j=Symbol.for;k=j("react.element"),S=j("react.portal"),x=j("react.fragment"),_=j("react.strict_mode"),L=j("react.profiler"),C=j("react.provider"),T=j("react.context"),A=j("react.forward_ref"),O=j("react.suspense"),P=j("react.suspense_list"),N=j("react.memo"),D=j("react.lazy"),I=j("react.block"),j("react.scope"),R=j("react.opaque.id"),M=j("react.debug_trace_mode"),F=j("react.offscreen"),B=j("react.legacy_hidden")}var $,z="function"==typeof Symbol&&Symbol.iterator;function U(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=z&&e[z]||e["@@iterator"])?e:null}function H(e){if(void 0===$)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);$=t&&t[1]||""}return"\n"+$+e}var Z=!1;function Q(e,t){if(!e||Z)return"";Z=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(l){var r=l}Reflect.construct(e,[],t)}else{try{t.call()}catch(l){r=l}e.call(t.prototype)}else{try{throw Error()}catch(l){r=l}e()}}catch(l){if(l&&r&&"string"==typeof l.stack){for(var a=l.stack.split("\n"),o=r.stack.split("\n"),i=a.length-1,s=o.length-1;1<=i&&0<=s&&a[i]!==o[s];)s--;for(;1<=i&&0<=s;i--,s--)if(a[i]!==o[s]){if(1!==i||1!==s)do{if(i--,0>--s||a[i]!==o[s])return"\n"+a[i].replace(" at new "," at ")}while(1<=i&&0<=s);break}}}finally{Z=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?H(e):""}function V(e){switch(e.tag){case 5:return H(e.type);case 16:return H("Lazy");case 13:return H("Suspense");case 19:return H("SuspenseList");case 0:case 2:case 15:return e=Q(e.type,!1);case 11:return e=Q(e.type.render,!1);case 22:return e=Q(e.type._render,!1);case 1:return e=Q(e.type,!0);default:return""}}function W(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case x:return"Fragment";case S:return"Portal";case L:return"Profiler";case _:return"StrictMode";case O:return"Suspense";case P:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case T:return(e.displayName||"Context")+".Consumer";case C:return(e._context.displayName||"Context")+".Provider";case A:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case N:return W(e.type);case I:return W(e._render);case D:t=e._payload,e=e._init;try{return W(e(t))}catch(n){}}return null}function G(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function q(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function Y(e){e._valueTracker||(e._valueTracker=function(e){var t=q(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var a=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(e){r=""+e,o.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function K(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=q(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function X(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function J(e,t){var n=t.checked;return a({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function ee(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=G(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function te(e,t){null!=(t=t.checked)&&w(e,"checked",t,!1)}function ne(e,t){te(e,t);var n=G(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ae(e,t.type,n):t.hasOwnProperty("defaultValue")&&ae(e,t.type,G(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function re(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ae(e,t,n){"number"===t&&X(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function oe(e,t){return e=a({children:void 0},t),(t=function(e){var t="";return r.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(t.children))&&(e.children=t),e}function ie(e,t,n,r){if(e=e.options,t){t={};for(var a=0;a<n.length;a++)t["$"+n[a]]=!0;for(n=0;n<e.length;n++)a=t.hasOwnProperty("$"+e[n].value),e[n].selected!==a&&(e[n].selected=a),a&&r&&(e[n].defaultSelected=!0)}else{for(n=""+G(n),t=null,a=0;a<e.length;a++){if(e[a].value===n)return e[a].selected=!0,void(r&&(e[a].defaultSelected=!0));null!==t||e[a].disabled||(t=e[a])}null!==t&&(t.selected=!0)}}function se(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(i(91));return a({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function le(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(i(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(i(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:G(n)}}function ue(e,t){var n=G(t.value),r=G(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function ce(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}var de={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};function fe(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function pe(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?fe(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var he,me,ge=(me=function(e,t){if(e.namespaceURI!==de.svg||"innerHTML"in e)e.innerHTML=t;else{for((he=he||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=he.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return me(e,t)}))}:me);function be(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var ve={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},ye=["Webkit","ms","Moz","O"];function we(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||ve.hasOwnProperty(e)&&ve[e]?(""+t).trim():t+"px"}function Ee(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),a=we(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,a):e[n]=a}}Object.keys(ve).forEach((function(e){ye.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ve[t]=ve[e]}))}));var ke=a({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Se(e,t){if(t){if(ke[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(i(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(i(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(i(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(i(62))}}function xe(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function _e(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Le=null,Ce=null,Te=null;function Ae(e){if(e=na(e)){if("function"!=typeof Le)throw Error(i(280));var t=e.stateNode;t&&(t=aa(t),Le(e.stateNode,e.type,t))}}function Oe(e){Ce?Te?Te.push(e):Te=[e]:Ce=e}function Pe(){if(Ce){var e=Ce,t=Te;if(Te=Ce=null,Ae(e),t)for(e=0;e<t.length;e++)Ae(t[e])}}function Ne(e,t){return e(t)}function De(e,t,n,r,a){return e(t,n,r,a)}function Ie(){}var Re=Ne,Me=!1,Fe=!1;function Be(){null===Ce&&null===Te||(Ie(),Pe())}function je(e,t){var n=e.stateNode;if(null===n)return null;var r=aa(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(i(231,t,typeof n));return n}var $e=!1;if(d)try{var ze={};Object.defineProperty(ze,"passive",{get:function(){$e=!0}}),window.addEventListener("test",ze,ze),window.removeEventListener("test",ze,ze)}catch(me){$e=!1}function Ue(e,t,n,r,a,o,i,s,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(c){this.onError(c)}}var He=!1,Ze=null,Qe=!1,Ve=null,We={onError:function(e){He=!0,Ze=e}};function Ge(e,t,n,r,a,o,i,s,l){He=!1,Ze=null,Ue.apply(We,arguments)}function qe(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(1026&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Ye(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function Ke(e){if(qe(e)!==e)throw Error(i(188))}function Xe(e){if(e=function(e){var t=e.alternate;if(!t){if(null===(t=qe(e)))throw Error(i(188));return t!==e?null:e}for(var n=e,r=t;;){var a=n.return;if(null===a)break;var o=a.alternate;if(null===o){if(null!==(r=a.return)){n=r;continue}break}if(a.child===o.child){for(o=a.child;o;){if(o===n)return Ke(a),e;if(o===r)return Ke(a),t;o=o.sibling}throw Error(i(188))}if(n.return!==r.return)n=a,r=o;else{for(var s=!1,l=a.child;l;){if(l===n){s=!0,n=a,r=o;break}if(l===r){s=!0,r=a,n=o;break}l=l.sibling}if(!s){for(l=o.child;l;){if(l===n){s=!0,n=o,r=a;break}if(l===r){s=!0,r=o,n=a;break}l=l.sibling}if(!s)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(3!==n.tag)throw Error(i(188));return n.stateNode.current===n?e:t}(e),!e)return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function Je(e,t){for(var n=e.alternate;null!==t;){if(t===e||t===n)return!0;t=t.return}return!1}var et,tt,nt,rt,at=!1,ot=[],it=null,st=null,lt=null,ut=new Map,ct=new Map,dt=[],ft="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function pt(e,t,n,r,a){return{blockedOn:e,domEventName:t,eventSystemFlags:16|n,nativeEvent:a,targetContainers:[r]}}function ht(e,t){switch(e){case"focusin":case"focusout":it=null;break;case"dragenter":case"dragleave":st=null;break;case"mouseover":case"mouseout":lt=null;break;case"pointerover":case"pointerout":ut.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ct.delete(t.pointerId)}}function mt(e,t,n,r,a,o){return null===e||e.nativeEvent!==o?(e=pt(t,n,r,a,o),null!==t&&(null!==(t=na(t))&&tt(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==a&&-1===t.indexOf(a)&&t.push(a),e)}function gt(e){var t=ta(e.target);if(null!==t){var n=qe(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Ye(n)))return e.blockedOn=t,void rt(e.lanePriority,(function(){o.unstable_runWithPriority(e.priority,(function(){nt(n)}))}))}else if(3===t&&n.stateNode.hydrate)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function bt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Xt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=na(n))&&tt(t),e.blockedOn=n,!1;t.shift()}return!0}function vt(e,t,n){bt(e)&&n.delete(t)}function yt(){for(at=!1;0<ot.length;){var e=ot[0];if(null!==e.blockedOn){null!==(e=na(e.blockedOn))&&et(e);break}for(var t=e.targetContainers;0<t.length;){var n=Xt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n){e.blockedOn=n;break}t.shift()}null===e.blockedOn&&ot.shift()}null!==it&&bt(it)&&(it=null),null!==st&&bt(st)&&(st=null),null!==lt&&bt(lt)&&(lt=null),ut.forEach(vt),ct.forEach(vt)}function wt(e,t){e.blockedOn===t&&(e.blockedOn=null,at||(at=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,yt)))}function Et(e){function t(t){return wt(t,e)}if(0<ot.length){wt(ot[0],e);for(var n=1;n<ot.length;n++){var r=ot[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==it&&wt(it,e),null!==st&&wt(st,e),null!==lt&&wt(lt,e),ut.forEach(t),ct.forEach(t),n=0;n<dt.length;n++)(r=dt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<dt.length&&null===(n=dt[0]).blockedOn;)gt(n),null===n.blockedOn&&dt.shift()}function kt(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var St={animationend:kt("Animation","AnimationEnd"),animationiteration:kt("Animation","AnimationIteration"),animationstart:kt("Animation","AnimationStart"),transitionend:kt("Transition","TransitionEnd")},xt={},_t={};function Lt(e){if(xt[e])return xt[e];if(!St[e])return e;var t,n=St[e];for(t in n)if(n.hasOwnProperty(t)&&t in _t)return xt[e]=n[t];return e}d&&(_t=document.createElement("div").style,"AnimationEvent"in window||(delete St.animationend.animation,delete St.animationiteration.animation,delete St.animationstart.animation),"TransitionEvent"in window||delete St.transitionend.transition);var Ct=Lt("animationend"),Tt=Lt("animationiteration"),At=Lt("animationstart"),Ot=Lt("transitionend"),Pt=new Map,Nt=new Map,Dt=["abort","abort",Ct,"animationEnd",Tt,"animationIteration",At,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",Ot,"transitionEnd","waiting","waiting"];function It(e,t){for(var n=0;n<e.length;n+=2){var r=e[n],a=e[n+1];a="on"+(a[0].toUpperCase()+a.slice(1)),Nt.set(r,t),Pt.set(r,a),u(a,[r])}}(0,o.unstable_now)();var Rt=8;function Mt(e){if(0!=(1&e))return Rt=15,1;if(0!=(2&e))return Rt=14,2;if(0!=(4&e))return Rt=13,4;var t=24&e;return 0!==t?(Rt=12,t):0!=(32&e)?(Rt=11,32):0!==(t=192&e)?(Rt=10,t):0!=(256&e)?(Rt=9,256):0!==(t=3584&e)?(Rt=8,t):0!=(4096&e)?(Rt=7,4096):0!==(t=4186112&e)?(Rt=6,t):0!==(t=62914560&e)?(Rt=5,t):67108864&e?(Rt=4,67108864):0!=(134217728&e)?(Rt=3,134217728):0!==(t=805306368&e)?(Rt=2,t):0!=(1073741824&e)?(Rt=1,1073741824):(Rt=8,e)}function Ft(e,t){var n=e.pendingLanes;if(0===n)return Rt=0;var r=0,a=0,o=e.expiredLanes,i=e.suspendedLanes,s=e.pingedLanes;if(0!==o)r=o,a=Rt=15;else if(0!==(o=134217727&n)){var l=o&~i;0!==l?(r=Mt(l),a=Rt):0!==(s&=o)&&(r=Mt(s),a=Rt)}else 0!==(o=n&~i)?(r=Mt(o),a=Rt):0!==s&&(r=Mt(s),a=Rt);if(0===r)return 0;if(r=n&((0>(r=31-Ht(r))?0:1<<r)<<1)-1,0!==t&&t!==r&&0==(t&i)){if(Mt(t),a<=Rt)return t;Rt=a}if(0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)a=1<<(n=31-Ht(t)),r|=e[n],t&=~a;return r}function Bt(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function jt(e,t){switch(e){case 15:return 1;case 14:return 2;case 12:return 0===(e=$t(24&~t))?jt(10,t):e;case 10:return 0===(e=$t(192&~t))?jt(8,t):e;case 8:return 0===(e=$t(3584&~t))&&(0===(e=$t(4186112&~t))&&(e=512)),e;case 2:return 0===(t=$t(805306368&~t))&&(t=268435456),t}throw Error(i(358,e))}function $t(e){return e&-e}function zt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Ut(e,t,n){e.pendingLanes|=t;var r=t-1;e.suspendedLanes&=r,e.pingedLanes&=r,(e=e.eventTimes)[t=31-Ht(t)]=n}var Ht=Math.clz32?Math.clz32:function(e){return 0===e?32:31-(Zt(e)/Qt|0)|0},Zt=Math.log,Qt=Math.LN2;var Vt=o.unstable_UserBlockingPriority,Wt=o.unstable_runWithPriority,Gt=!0;function qt(e,t,n,r){Me||Ie();var a=Kt,o=Me;Me=!0;try{De(a,e,t,n,r)}finally{(Me=o)||Be()}}function Yt(e,t,n,r){Wt(Vt,Kt.bind(null,e,t,n,r))}function Kt(e,t,n,r){var a;if(Gt)if((a=0==(4&t))&&0<ot.length&&-1<ft.indexOf(e))e=pt(null,e,t,n,r),ot.push(e);else{var o=Xt(e,t,n,r);if(null===o)a&&ht(e,r);else{if(a){if(-1<ft.indexOf(e))return e=pt(o,e,t,n,r),void ot.push(e);if(function(e,t,n,r,a){switch(t){case"focusin":return it=mt(it,e,t,n,r,a),!0;case"dragenter":return st=mt(st,e,t,n,r,a),!0;case"mouseover":return lt=mt(lt,e,t,n,r,a),!0;case"pointerover":var o=a.pointerId;return ut.set(o,mt(ut.get(o)||null,e,t,n,r,a)),!0;case"gotpointercapture":return o=a.pointerId,ct.set(o,mt(ct.get(o)||null,e,t,n,r,a)),!0}return!1}(o,e,t,n,r))return;ht(e,r)}Ir(e,t,r,null,n)}}}function Xt(e,t,n,r){var a=_e(r);if(null!==(a=ta(a))){var o=qe(a);if(null===o)a=null;else{var i=o.tag;if(13===i){if(null!==(a=Ye(o)))return a;a=null}else if(3===i){if(o.stateNode.hydrate)return 3===o.tag?o.stateNode.containerInfo:null;a=null}else o!==a&&(a=null)}}return Ir(e,t,r,a,n),null}var Jt=null,en=null,tn=null;function nn(){if(tn)return tn;var e,t,n=en,r=n.length,a="value"in Jt?Jt.value:Jt.textContent,o=a.length;for(e=0;e<r&&n[e]===a[e];e++);var i=r-e;for(t=1;t<=i&&n[r-t]===a[o-t];t++);return tn=a.slice(e,1<t?1-t:void 0)}function rn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function an(){return!0}function on(){return!1}function sn(e){function t(t,n,r,a,o){for(var i in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=a,this.target=o,this.currentTarget=null,e)e.hasOwnProperty(i)&&(t=e[i],this[i]=t?t(a):a[i]);return this.isDefaultPrevented=(null!=a.defaultPrevented?a.defaultPrevented:!1===a.returnValue)?an:on,this.isPropagationStopped=on,this}return a(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=an)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=an)},persist:function(){},isPersistent:an}),t}var ln,un,cn,dn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},fn=sn(dn),pn=a({},dn,{view:0,detail:0}),hn=sn(pn),mn=a({},pn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Cn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==cn&&(cn&&"mousemove"===e.type?(ln=e.screenX-cn.screenX,un=e.screenY-cn.screenY):un=ln=0,cn=e),ln)},movementY:function(e){return"movementY"in e?e.movementY:un}}),gn=sn(mn),bn=sn(a({},mn,{dataTransfer:0})),vn=sn(a({},pn,{relatedTarget:0})),yn=sn(a({},dn,{animationName:0,elapsedTime:0,pseudoElement:0})),wn=a({},dn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),En=sn(wn),kn=sn(a({},dn,{data:0})),Sn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},xn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},_n={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Ln(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=_n[e])&&!!t[e]}function Cn(){return Ln}var Tn=a({},pn,{key:function(e){if(e.key){var t=Sn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=rn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?xn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Cn,charCode:function(e){return"keypress"===e.type?rn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?rn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),An=sn(Tn),On=sn(a({},mn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Pn=sn(a({},pn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Cn})),Nn=sn(a({},dn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Dn=a({},mn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),In=sn(Dn),Rn=[9,13,27,32],Mn=d&&"CompositionEvent"in window,Fn=null;d&&"documentMode"in document&&(Fn=document.documentMode);var Bn=d&&"TextEvent"in window&&!Fn,jn=d&&(!Mn||Fn&&8<Fn&&11>=Fn),$n=String.fromCharCode(32),zn=!1;function Un(e,t){switch(e){case"keyup":return-1!==Rn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Hn(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Zn=!1;var Qn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Vn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Qn[e.type]:"textarea"===t}function Wn(e,t,n,r){Oe(r),0<(t=Mr(t,"onChange")).length&&(n=new fn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Gn=null,qn=null;function Yn(e){Tr(e,0)}function Kn(e){if(K(ra(e)))return e}function Xn(e,t){if("change"===e)return t}var Jn=!1;if(d){var er;if(d){var tr="oninput"in document;if(!tr){var nr=document.createElement("div");nr.setAttribute("oninput","return;"),tr="function"==typeof nr.oninput}er=tr}else er=!1;Jn=er&&(!document.documentMode||9<document.documentMode)}function rr(){Gn&&(Gn.detachEvent("onpropertychange",ar),qn=Gn=null)}function ar(e){if("value"===e.propertyName&&Kn(qn)){var t=[];if(Wn(t,qn,e,_e(e)),e=Yn,Me)e(t);else{Me=!0;try{Ne(e,t)}finally{Me=!1,Be()}}}}function or(e,t,n){"focusin"===e?(rr(),qn=n,(Gn=t).attachEvent("onpropertychange",ar)):"focusout"===e&&rr()}function ir(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Kn(qn)}function sr(e,t){if("click"===e)return Kn(t)}function lr(e,t){if("input"===e||"change"===e)return Kn(t)}var ur="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},cr=Object.prototype.hasOwnProperty;function dr(e,t){if(ur(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++)if(!cr.call(t,n[r])||!ur(e[n[r]],t[n[r]]))return!1;return!0}function fr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function pr(e,t){var n,r=fr(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=fr(r)}}function hr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?hr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function mr(){for(var e=window,t=X();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=X((e=t.contentWindow).document)}return t}function gr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var br=d&&"documentMode"in document&&11>=document.documentMode,vr=null,yr=null,wr=null,Er=!1;function kr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;Er||null==vr||vr!==X(r)||("selectionStart"in(r=vr)&&gr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},wr&&dr(wr,r)||(wr=r,0<(r=Mr(yr,"onSelect")).length&&(t=new fn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=vr)))}It("cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focusin focus focusout blur input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),It("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),It(Dt,2);for(var Sr="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),xr=0;xr<Sr.length;xr++)Nt.set(Sr[xr],0);c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),u("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),u("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),u("onBeforeInput",["compositionend","keypress","textInput","paste"]),u("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var _r="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Lr=new Set("cancel close invalid load scroll toggle".split(" ").concat(_r));function Cr(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,a,o,s,l,u){if(Ge.apply(this,arguments),He){if(!He)throw Error(i(198));var c=Ze;He=!1,Ze=null,Qe||(Qe=!0,Ve=c)}}(r,t,void 0,e),e.currentTarget=null}function Tr(e,t){t=0!=(4&t);for(var n=0;n<e.length;n++){var r=e[n],a=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var i=r.length-1;0<=i;i--){var s=r[i],l=s.instance,u=s.currentTarget;if(s=s.listener,l!==o&&a.isPropagationStopped())break e;Cr(a,s,u),o=l}else for(i=0;i<r.length;i++){if(l=(s=r[i]).instance,u=s.currentTarget,s=s.listener,l!==o&&a.isPropagationStopped())break e;Cr(a,s,u),o=l}}}if(Qe)throw e=Ve,Qe=!1,Ve=null,e}function Ar(e,t){var n=oa(t),r=e+"__bubble";n.has(r)||(Dr(t,e,2,!1),n.add(r))}var Or="_reactListening"+Math.random().toString(36).slice(2);function Pr(e){e[Or]||(e[Or]=!0,s.forEach((function(t){Lr.has(t)||Nr(t,!1,e,null),Nr(t,!0,e,null)})))}function Nr(e,t,n,r){var a=4<arguments.length&&void 0!==arguments[4]?arguments[4]:0,o=n;if("selectionchange"===e&&9!==n.nodeType&&(o=n.ownerDocument),null!==r&&!t&&Lr.has(e)){if("scroll"!==e)return;a|=2,o=r}var i=oa(o),s=e+"__"+(t?"capture":"bubble");i.has(s)||(t&&(a|=4),Dr(o,e,a,t),i.add(s))}function Dr(e,t,n,r){var a=Nt.get(t);switch(void 0===a?2:a){case 0:a=qt;break;case 1:a=Yt;break;default:a=Kt}n=a.bind(null,t,n,e),a=void 0,!$e||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(a=!0),r?void 0!==a?e.addEventListener(t,n,{capture:!0,passive:a}):e.addEventListener(t,n,!0):void 0!==a?e.addEventListener(t,n,{passive:a}):e.addEventListener(t,n,!1)}function Ir(e,t,n,r,a){var o=r;if(0==(1&t)&&0==(2&t)&&null!==r)e:for(;;){if(null===r)return;var i=r.tag;if(3===i||4===i){var s=r.stateNode.containerInfo;if(s===a||8===s.nodeType&&s.parentNode===a)break;if(4===i)for(i=r.return;null!==i;){var l=i.tag;if((3===l||4===l)&&((l=i.stateNode.containerInfo)===a||8===l.nodeType&&l.parentNode===a))return;i=i.return}for(;null!==s;){if(null===(i=ta(s)))return;if(5===(l=i.tag)||6===l){r=o=i;continue e}s=s.parentNode}}r=r.return}!function(e,t,n){if(Fe)return e(t,n);Fe=!0;try{return Re(e,t,n)}finally{Fe=!1,Be()}}((function(){var r=o,a=_e(n),i=[];e:{var s=Pt.get(e);if(void 0!==s){var l=fn,u=e;switch(e){case"keypress":if(0===rn(n))break e;case"keydown":case"keyup":l=An;break;case"focusin":u="focus",l=vn;break;case"focusout":u="blur",l=vn;break;case"beforeblur":case"afterblur":l=vn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=gn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=bn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=Pn;break;case Ct:case Tt:case At:l=yn;break;case Ot:l=Nn;break;case"scroll":l=hn;break;case"wheel":l=In;break;case"copy":case"cut":case"paste":l=En;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=On}var c=0!=(4&t),d=!c&&"scroll"===e,f=c?null!==s?s+"Capture":null:s;c=[];for(var p,h=r;null!==h;){var m=(p=h).stateNode;if(5===p.tag&&null!==m&&(p=m,null!==f&&(null!=(m=je(h,f))&&c.push(Rr(h,m,p)))),d)break;h=h.return}0<c.length&&(s=new l(s,u,null,n,a),i.push({event:s,listeners:c}))}}if(0==(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||0!=(16&t)||!(u=n.relatedTarget||n.fromElement)||!ta(u)&&!u[Jr])&&(l||s)&&(s=a.window===a?a:(s=a.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=r,null!==(u=(u=n.relatedTarget||n.toElement)?ta(u):null)&&(u!==(d=qe(u))||5!==u.tag&&6!==u.tag)&&(u=null)):(l=null,u=r),l!==u)){if(c=gn,m="onMouseLeave",f="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(c=On,m="onPointerLeave",f="onPointerEnter",h="pointer"),d=null==l?s:ra(l),p=null==u?s:ra(u),(s=new c(m,h+"leave",l,n,a)).target=d,s.relatedTarget=p,m=null,ta(a)===r&&((c=new c(f,h+"enter",u,n,a)).target=p,c.relatedTarget=d,m=c),d=m,l&&u)e:{for(f=u,h=0,p=c=l;p;p=Fr(p))h++;for(p=0,m=f;m;m=Fr(m))p++;for(;0<h-p;)c=Fr(c),h--;for(;0<p-h;)f=Fr(f),p--;for(;h--;){if(c===f||null!==f&&c===f.alternate)break e;c=Fr(c),f=Fr(f)}c=null}else c=null;null!==l&&Br(i,s,l,c,!1),null!==u&&null!==d&&Br(i,d,u,c,!0)}if("select"===(l=(s=r?ra(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var g=Xn;else if(Vn(s))if(Jn)g=lr;else{g=ir;var b=or}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(g=sr);switch(g&&(g=g(e,r))?Wn(i,g,n,a):(b&&b(e,s,r),"focusout"===e&&(b=s._wrapperState)&&b.controlled&&"number"===s.type&&ae(s,"number",s.value)),b=r?ra(r):window,e){case"focusin":(Vn(b)||"true"===b.contentEditable)&&(vr=b,yr=r,wr=null);break;case"focusout":wr=yr=vr=null;break;case"mousedown":Er=!0;break;case"contextmenu":case"mouseup":case"dragend":Er=!1,kr(i,n,a);break;case"selectionchange":if(br)break;case"keydown":case"keyup":kr(i,n,a)}var v;if(Mn)e:{switch(e){case"compositionstart":var y="onCompositionStart";break e;case"compositionend":y="onCompositionEnd";break e;case"compositionupdate":y="onCompositionUpdate";break e}y=void 0}else Zn?Un(e,n)&&(y="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(y="onCompositionStart");y&&(jn&&"ko"!==n.locale&&(Zn||"onCompositionStart"!==y?"onCompositionEnd"===y&&Zn&&(v=nn()):(en="value"in(Jt=a)?Jt.value:Jt.textContent,Zn=!0)),0<(b=Mr(r,y)).length&&(y=new kn(y,e,null,n,a),i.push({event:y,listeners:b}),v?y.data=v:null!==(v=Hn(n))&&(y.data=v))),(v=Bn?function(e,t){switch(e){case"compositionend":return Hn(t);case"keypress":return 32!==t.which?null:(zn=!0,$n);case"textInput":return(e=t.data)===$n&&zn?null:e;default:return null}}(e,n):function(e,t){if(Zn)return"compositionend"===e||!Mn&&Un(e,t)?(e=nn(),tn=en=Jt=null,Zn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return jn&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=Mr(r,"onBeforeInput")).length&&(a=new kn("onBeforeInput","beforeinput",null,n,a),i.push({event:a,listeners:r}),a.data=v))}Tr(i,t)}))}function Rr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Mr(e,t){for(var n=t+"Capture",r=[];null!==e;){var a=e,o=a.stateNode;5===a.tag&&null!==o&&(a=o,null!=(o=je(e,n))&&r.unshift(Rr(e,o,a)),null!=(o=je(e,t))&&r.push(Rr(e,o,a))),e=e.return}return r}function Fr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Br(e,t,n,r,a){for(var o=t._reactName,i=[];null!==n&&n!==r;){var s=n,l=s.alternate,u=s.stateNode;if(null!==l&&l===r)break;5===s.tag&&null!==u&&(s=u,a?null!=(l=je(n,o))&&i.unshift(Rr(n,l,s)):a||null!=(l=je(n,o))&&i.push(Rr(n,l,s))),n=n.return}0!==i.length&&e.push({event:t,listeners:i})}function jr(){}var $r=null,zr=null;function Ur(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function Hr(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var Zr="function"==typeof setTimeout?setTimeout:void 0,Qr="function"==typeof clearTimeout?clearTimeout:void 0;function Vr(e){1===e.nodeType?e.textContent="":9===e.nodeType&&(null!=(e=e.body)&&(e.textContent=""))}function Wr(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function Gr(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var qr=0;var Yr=Math.random().toString(36).slice(2),Kr="__reactFiber$"+Yr,Xr="__reactProps$"+Yr,Jr="__reactContainer$"+Yr,ea="__reactEvents$"+Yr;function ta(e){var t=e[Kr];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Jr]||n[Kr]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=Gr(e);null!==e;){if(n=e[Kr])return n;e=Gr(e)}return t}n=(e=n).parentNode}return null}function na(e){return!(e=e[Kr]||e[Jr])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function ra(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(i(33))}function aa(e){return e[Xr]||null}function oa(e){var t=e[ea];return void 0===t&&(t=e[ea]=new Set),t}var ia=[],sa=-1;function la(e){return{current:e}}function ua(e){0>sa||(e.current=ia[sa],ia[sa]=null,sa--)}function ca(e,t){sa++,ia[sa]=e.current,e.current=t}var da={},fa=la(da),pa=la(!1),ha=da;function ma(e,t){var n=e.type.contextTypes;if(!n)return da;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var a,o={};for(a in n)o[a]=t[a];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function ga(e){return null!=(e=e.childContextTypes)}function ba(){ua(pa),ua(fa)}function va(e,t,n){if(fa.current!==da)throw Error(i(168));ca(fa,t),ca(pa,n)}function ya(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in e))throw Error(i(108,W(t)||"Unknown",o));return a({},n,r)}function wa(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||da,ha=fa.current,ca(fa,e),ca(pa,pa.current),!0}function Ea(e,t,n){var r=e.stateNode;if(!r)throw Error(i(169));n?(e=ya(e,t,ha),r.__reactInternalMemoizedMergedChildContext=e,ua(pa),ua(fa),ca(fa,e)):ua(pa),ca(pa,n)}var ka=null,Sa=null,xa=o.unstable_runWithPriority,_a=o.unstable_scheduleCallback,La=o.unstable_cancelCallback,Ca=o.unstable_shouldYield,Ta=o.unstable_requestPaint,Aa=o.unstable_now,Oa=o.unstable_getCurrentPriorityLevel,Pa=o.unstable_ImmediatePriority,Na=o.unstable_UserBlockingPriority,Da=o.unstable_NormalPriority,Ia=o.unstable_LowPriority,Ra=o.unstable_IdlePriority,Ma={},Fa=void 0!==Ta?Ta:function(){},Ba=null,ja=null,$a=!1,za=Aa(),Ua=1e4>za?Aa:function(){return Aa()-za};function Ha(){switch(Oa()){case Pa:return 99;case Na:return 98;case Da:return 97;case Ia:return 96;case Ra:return 95;default:throw Error(i(332))}}function Za(e){switch(e){case 99:return Pa;case 98:return Na;case 97:return Da;case 96:return Ia;case 95:return Ra;default:throw Error(i(332))}}function Qa(e,t){return e=Za(e),xa(e,t)}function Va(e,t,n){return e=Za(e),_a(e,t,n)}function Wa(){if(null!==ja){var e=ja;ja=null,La(e)}Ga()}function Ga(){if(!$a&&null!==Ba){$a=!0;var e=0;try{var t=Ba;Qa(99,(function(){for(;e<t.length;e++){var n=t[e];do{n=n(!0)}while(null!==n)}})),Ba=null}catch(n){throw null!==Ba&&(Ba=Ba.slice(e+1)),_a(Pa,Wa),n}finally{$a=!1}}}var qa=E.ReactCurrentBatchConfig;function Ya(e,t){if(e&&e.defaultProps){for(var n in t=a({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var Ka=la(null),Xa=null,Ja=null,eo=null;function to(){eo=Ja=Xa=null}function no(e){var t=Ka.current;ua(Ka),e.type._context._currentValue=t}function ro(e,t){for(;null!==e;){var n=e.alternate;if((e.childLanes&t)===t){if(null===n||(n.childLanes&t)===t)break;n.childLanes|=t}else e.childLanes|=t,null!==n&&(n.childLanes|=t);e=e.return}}function ao(e,t){Xa=e,eo=Ja=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(Mi=!0),e.firstContext=null)}function oo(e,t){if(eo!==e&&!1!==t&&0!==t)if("number"==typeof t&&1073741823!==t||(eo=e,t=1073741823),t={context:e,observedBits:t,next:null},null===Ja){if(null===Xa)throw Error(i(308));Ja=t,Xa.dependencies={lanes:0,firstContext:t,responders:null}}else Ja=Ja.next=t;return e._currentValue}var io=!1;function so(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function lo(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function uo(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function co(e,t){if(null!==(e=e.updateQueue)){var n=(e=e.shared).pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}}function fo(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var a=null,o=null;if(null!==(n=n.firstBaseUpdate)){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===o?a=o=i:o=o.next=i,n=n.next}while(null!==n);null===o?a=o=t:o=o.next=t}else a=o=t;return n={baseState:r.baseState,firstBaseUpdate:a,lastBaseUpdate:o,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function po(e,t,n,r){var o=e.updateQueue;io=!1;var i=o.firstBaseUpdate,s=o.lastBaseUpdate,l=o.shared.pending;if(null!==l){o.shared.pending=null;var u=l,c=u.next;u.next=null,null===s?i=c:s.next=c,s=u;var d=e.alternate;if(null!==d){var f=(d=d.updateQueue).lastBaseUpdate;f!==s&&(null===f?d.firstBaseUpdate=c:f.next=c,d.lastBaseUpdate=u)}}if(null!==i){for(f=o.baseState,s=0,d=c=u=null;;){l=i.lane;var p=i.eventTime;if((r&l)===l){null!==d&&(d=d.next={eventTime:p,lane:0,tag:i.tag,payload:i.payload,callback:i.callback,next:null});e:{var h=e,m=i;switch(l=t,p=n,m.tag){case 1:if("function"==typeof(h=m.payload)){f=h.call(p,f,l);break e}f=h;break e;case 3:h.flags=-4097&h.flags|64;case 0:if(null==(l="function"==typeof(h=m.payload)?h.call(p,f,l):h))break e;f=a({},f,l);break e;case 2:io=!0}}null!==i.callback&&(e.flags|=32,null===(l=o.effects)?o.effects=[i]:l.push(i))}else p={eventTime:p,lane:l,tag:i.tag,payload:i.payload,callback:i.callback,next:null},null===d?(c=d=p,u=f):d=d.next=p,s|=l;if(null===(i=i.next)){if(null===(l=o.shared.pending))break;i=l.next,l.next=null,o.lastBaseUpdate=l,o.shared.pending=null}}null===d&&(u=f),o.baseState=u,o.firstBaseUpdate=c,o.lastBaseUpdate=d,zs|=s,e.lanes=s,e.memoizedState=f}}function ho(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],a=r.callback;if(null!==a){if(r.callback=null,r=n,"function"!=typeof a)throw Error(i(191,a));a.call(r)}}}var mo=(new r.Component).refs;function go(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:a({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var bo={isMounted:function(e){return!!(e=e._reactInternals)&&qe(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=fl(),a=pl(e),o=uo(r,a);o.payload=t,null!=n&&(o.callback=n),co(e,o),hl(e,a,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=fl(),a=pl(e),o=uo(r,a);o.tag=1,o.payload=t,null!=n&&(o.callback=n),co(e,o),hl(e,a,r)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=fl(),r=pl(e),a=uo(n,r);a.tag=2,null!=t&&(a.callback=t),co(e,a),hl(e,r,n)}};function vo(e,t,n,r,a,o,i){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,o,i):!t.prototype||!t.prototype.isPureReactComponent||(!dr(n,r)||!dr(a,o))}function yo(e,t,n){var r=!1,a=da,o=t.contextType;return"object"==typeof o&&null!==o?o=oo(o):(a=ga(t)?ha:fa.current,o=(r=null!=(r=t.contextTypes))?ma(e,a):da),t=new t(n,o),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=bo,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=a,e.__reactInternalMemoizedMaskedChildContext=o),t}function wo(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&bo.enqueueReplaceState(t,t.state,null)}function Eo(e,t,n,r){var a=e.stateNode;a.props=n,a.state=e.memoizedState,a.refs=mo,so(e);var o=t.contextType;"object"==typeof o&&null!==o?a.context=oo(o):(o=ga(t)?ha:fa.current,a.context=ma(e,o)),po(e,n,a,r),a.state=e.memoizedState,"function"==typeof(o=t.getDerivedStateFromProps)&&(go(e,t,o,n),a.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof a.getSnapshotBeforeUpdate||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||(t=a.state,"function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount(),t!==a.state&&bo.enqueueReplaceState(a,a.state,null),po(e,n,a,r),a.state=e.memoizedState),"function"==typeof a.componentDidMount&&(e.flags|=4)}var ko=Array.isArray;function So(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(i(309));var r=n.stateNode}if(!r)throw Error(i(147,e));var a=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===a?t.ref:(t=function(e){var t=r.refs;t===mo&&(t=r.refs={}),null===e?delete t[a]:t[a]=e},t._stringRef=a,t)}if("string"!=typeof e)throw Error(i(284));if(!n._owner)throw Error(i(290,e))}return e}function xo(e,t){if("textarea"!==e.type)throw Error(i(31,"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t))}function _o(e){function t(t,n){if(e){var r=t.lastEffect;null!==r?(r.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n,n.nextEffect=null,n.flags=8}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function a(e,t){return(e=Vl(e,t)).index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags=2,n):r:(t.flags=2,n):n}function s(t){return e&&null===t.alternate&&(t.flags=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=Yl(n,e.mode,r)).return=e,t):((t=a(t,n)).return=e,t)}function u(e,t,n,r){return null!==t&&t.elementType===n.type?((r=a(t,n.props)).ref=So(e,t,n),r.return=e,r):((r=Wl(n.type,n.key,n.props,null,e.mode,r)).ref=So(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Kl(n,e.mode,r)).return=e,t):((t=a(t,n.children||[])).return=e,t)}function d(e,t,n,r,o){return null===t||7!==t.tag?((t=Gl(n,e.mode,r,o)).return=e,t):((t=a(t,n)).return=e,t)}function f(e,t,n){if("string"==typeof t||"number"==typeof t)return(t=Yl(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case k:return(n=Wl(t.type,t.key,t.props,null,e.mode,n)).ref=So(e,null,t),n.return=e,n;case S:return(t=Kl(t,e.mode,n)).return=e,t}if(ko(t)||U(t))return(t=Gl(t,e.mode,n,null)).return=e,t;xo(e,t)}return null}function p(e,t,n,r){var a=null!==t?t.key:null;if("string"==typeof n||"number"==typeof n)return null!==a?null:l(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case k:return n.key===a?n.type===x?d(e,t,n.props.children,r,a):u(e,t,n,r):null;case S:return n.key===a?c(e,t,n,r):null}if(ko(n)||U(n))return null!==a?null:d(e,t,n,r,null);xo(e,n)}return null}function h(e,t,n,r,a){if("string"==typeof r||"number"==typeof r)return l(t,e=e.get(n)||null,""+r,a);if("object"==typeof r&&null!==r){switch(r.$$typeof){case k:return e=e.get(null===r.key?n:r.key)||null,r.type===x?d(t,e,r.props.children,a,r.key):u(t,e,r,a);case S:return c(t,e=e.get(null===r.key?n:r.key)||null,r,a)}if(ko(r)||U(r))return d(t,e=e.get(n)||null,r,a,null);xo(t,r)}return null}function m(a,i,s,l){for(var u=null,c=null,d=i,m=i=0,g=null;null!==d&&m<s.length;m++){d.index>m?(g=d,d=null):g=d.sibling;var b=p(a,d,s[m],l);if(null===b){null===d&&(d=g);break}e&&d&&null===b.alternate&&t(a,d),i=o(b,i,m),null===c?u=b:c.sibling=b,c=b,d=g}if(m===s.length)return n(a,d),u;if(null===d){for(;m<s.length;m++)null!==(d=f(a,s[m],l))&&(i=o(d,i,m),null===c?u=d:c.sibling=d,c=d);return u}for(d=r(a,d);m<s.length;m++)null!==(g=h(d,a,m,s[m],l))&&(e&&null!==g.alternate&&d.delete(null===g.key?m:g.key),i=o(g,i,m),null===c?u=g:c.sibling=g,c=g);return e&&d.forEach((function(e){return t(a,e)})),u}function g(a,s,l,u){var c=U(l);if("function"!=typeof c)throw Error(i(150));if(null==(l=c.call(l)))throw Error(i(151));for(var d=c=null,m=s,g=s=0,b=null,v=l.next();null!==m&&!v.done;g++,v=l.next()){m.index>g?(b=m,m=null):b=m.sibling;var y=p(a,m,v.value,u);if(null===y){null===m&&(m=b);break}e&&m&&null===y.alternate&&t(a,m),s=o(y,s,g),null===d?c=y:d.sibling=y,d=y,m=b}if(v.done)return n(a,m),c;if(null===m){for(;!v.done;g++,v=l.next())null!==(v=f(a,v.value,u))&&(s=o(v,s,g),null===d?c=v:d.sibling=v,d=v);return c}for(m=r(a,m);!v.done;g++,v=l.next())null!==(v=h(m,a,g,v.value,u))&&(e&&null!==v.alternate&&m.delete(null===v.key?g:v.key),s=o(v,s,g),null===d?c=v:d.sibling=v,d=v);return e&&m.forEach((function(e){return t(a,e)})),c}return function(e,r,o,l){var u="object"==typeof o&&null!==o&&o.type===x&&null===o.key;u&&(o=o.props.children);var c="object"==typeof o&&null!==o;if(c)switch(o.$$typeof){case k:e:{for(c=o.key,u=r;null!==u;){if(u.key===c){if(7===u.tag){if(o.type===x){n(e,u.sibling),(r=a(u,o.props.children)).return=e,e=r;break e}}else if(u.elementType===o.type){n(e,u.sibling),(r=a(u,o.props)).ref=So(e,u,o),r.return=e,e=r;break e}n(e,u);break}t(e,u),u=u.sibling}o.type===x?((r=Gl(o.props.children,e.mode,l,o.key)).return=e,e=r):((l=Wl(o.type,o.key,o.props,null,e.mode,l)).ref=So(e,r,o),l.return=e,e=l)}return s(e);case S:e:{for(u=o.key;null!==r;){if(r.key===u){if(4===r.tag&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),(r=a(r,o.children||[])).return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}(r=Kl(o,e.mode,l)).return=e,e=r}return s(e)}if("string"==typeof o||"number"==typeof o)return o=""+o,null!==r&&6===r.tag?(n(e,r.sibling),(r=a(r,o)).return=e,e=r):(n(e,r),(r=Yl(o,e.mode,l)).return=e,e=r),s(e);if(ko(o))return m(e,r,o,l);if(U(o))return g(e,r,o,l);if(c&&xo(e,o),void 0===o&&!u)switch(e.tag){case 1:case 22:case 0:case 11:case 15:throw Error(i(152,W(e.type)||"Component"))}return n(e,r)}}var Lo=_o(!0),Co=_o(!1),To={},Ao=la(To),Oo=la(To),Po=la(To);function No(e){if(e===To)throw Error(i(174));return e}function Do(e,t){switch(ca(Po,t),ca(Oo,e),ca(Ao,To),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:pe(null,"");break;default:t=pe(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}ua(Ao),ca(Ao,t)}function Io(){ua(Ao),ua(Oo),ua(Po)}function Ro(e){No(Po.current);var t=No(Ao.current),n=pe(t,e.type);t!==n&&(ca(Oo,e),ca(Ao,n))}function Mo(e){Oo.current===e&&(ua(Ao),ua(Oo))}var Fo=la(0);function Bo(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(64&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var jo=null,$o=null,zo=!1;function Uo(e,t){var n=Zl(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.flags=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function Ho(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);default:return!1}}function Zo(e){if(zo){var t=$o;if(t){var n=t;if(!Ho(e,t)){if(!(t=Wr(n.nextSibling))||!Ho(e,t))return e.flags=-1025&e.flags|2,zo=!1,void(jo=e);Uo(jo,n)}jo=e,$o=Wr(t.firstChild)}else e.flags=-1025&e.flags|2,zo=!1,jo=e}}function Qo(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;jo=e}function Vo(e){if(e!==jo)return!1;if(!zo)return Qo(e),zo=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!Hr(t,e.memoizedProps))for(t=$o;t;)Uo(e,t),t=Wr(t.nextSibling);if(Qo(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(i(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){$o=Wr(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}$o=null}}else $o=jo?Wr(e.stateNode.nextSibling):null;return!0}function Wo(){$o=jo=null,zo=!1}var Go=[];function qo(){for(var e=0;e<Go.length;e++)Go[e]._workInProgressVersionPrimary=null;Go.length=0}var Yo=E.ReactCurrentDispatcher,Ko=E.ReactCurrentBatchConfig,Xo=0,Jo=null,ei=null,ti=null,ni=!1,ri=!1;function ai(){throw Error(i(321))}function oi(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!ur(e[n],t[n]))return!1;return!0}function ii(e,t,n,r,a,o){if(Xo=o,Jo=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Yo.current=null===e||null===e.memoizedState?Ni:Di,e=n(r,a),ri){o=0;do{if(ri=!1,!(25>o))throw Error(i(301));o+=1,ti=ei=null,t.updateQueue=null,Yo.current=Ii,e=n(r,a)}while(ri)}if(Yo.current=Pi,t=null!==ei&&null!==ei.next,Xo=0,ti=ei=Jo=null,ni=!1,t)throw Error(i(300));return e}function si(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===ti?Jo.memoizedState=ti=e:ti=ti.next=e,ti}function li(){if(null===ei){var e=Jo.alternate;e=null!==e?e.memoizedState:null}else e=ei.next;var t=null===ti?Jo.memoizedState:ti.next;if(null!==t)ti=t,ei=e;else{if(null===e)throw Error(i(310));e={memoizedState:(ei=e).memoizedState,baseState:ei.baseState,baseQueue:ei.baseQueue,queue:ei.queue,next:null},null===ti?Jo.memoizedState=ti=e:ti=ti.next=e}return ti}function ui(e,t){return"function"==typeof t?t(e):t}function ci(e){var t=li(),n=t.queue;if(null===n)throw Error(i(311));n.lastRenderedReducer=e;var r=ei,a=r.baseQueue,o=n.pending;if(null!==o){if(null!==a){var s=a.next;a.next=o.next,o.next=s}r.baseQueue=a=o,n.pending=null}if(null!==a){a=a.next,r=r.baseState;var l=s=o=null,u=a;do{var c=u.lane;if((Xo&c)===c)null!==l&&(l=l.next={lane:0,action:u.action,eagerReducer:u.eagerReducer,eagerState:u.eagerState,next:null}),r=u.eagerReducer===e?u.eagerState:e(r,u.action);else{var d={lane:c,action:u.action,eagerReducer:u.eagerReducer,eagerState:u.eagerState,next:null};null===l?(s=l=d,o=r):l=l.next=d,Jo.lanes|=c,zs|=c}u=u.next}while(null!==u&&u!==a);null===l?o=r:l.next=s,ur(r,t.memoizedState)||(Mi=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=l,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function di(e){var t=li(),n=t.queue;if(null===n)throw Error(i(311));n.lastRenderedReducer=e;var r=n.dispatch,a=n.pending,o=t.memoizedState;if(null!==a){n.pending=null;var s=a=a.next;do{o=e(o,s.action),s=s.next}while(s!==a);ur(o,t.memoizedState)||(Mi=!0),t.memoizedState=o,null===t.baseQueue&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function fi(e,t,n){var r=t._getVersion;r=r(t._source);var a=t._workInProgressVersionPrimary;if(null!==a?e=a===r:(e=e.mutableReadLanes,(e=(Xo&e)===e)&&(t._workInProgressVersionPrimary=r,Go.push(t))),e)return n(t._source);throw Go.push(t),Error(i(350))}function pi(e,t,n,r){var a=Ds;if(null===a)throw Error(i(349));var o=t._getVersion,s=o(t._source),l=Yo.current,u=l.useState((function(){return fi(a,t,n)})),c=u[1],d=u[0];u=ti;var f=e.memoizedState,p=f.refs,h=p.getSnapshot,m=f.source;f=f.subscribe;var g=Jo;return e.memoizedState={refs:p,source:t,subscribe:r},l.useEffect((function(){p.getSnapshot=n,p.setSnapshot=c;var e=o(t._source);if(!ur(s,e)){e=n(t._source),ur(d,e)||(c(e),e=pl(g),a.mutableReadLanes|=e&a.pendingLanes),e=a.mutableReadLanes,a.entangledLanes|=e;for(var r=a.entanglements,i=e;0<i;){var l=31-Ht(i),u=1<<l;r[l]|=e,i&=~u}}}),[n,t,r]),l.useEffect((function(){return r(t._source,(function(){var e=p.getSnapshot,n=p.setSnapshot;try{n(e(t._source));var r=pl(g);a.mutableReadLanes|=r&a.pendingLanes}catch(o){n((function(){throw o}))}}))}),[t,r]),ur(h,n)&&ur(m,t)&&ur(f,r)||((e={pending:null,dispatch:null,lastRenderedReducer:ui,lastRenderedState:d}).dispatch=c=Oi.bind(null,Jo,e),u.queue=e,u.baseQueue=null,d=fi(a,t,n),u.memoizedState=u.baseState=d),d}function hi(e,t,n){return pi(li(),e,t,n)}function mi(e){var t=si();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={pending:null,dispatch:null,lastRenderedReducer:ui,lastRenderedState:e}).dispatch=Oi.bind(null,Jo,e),[t.memoizedState,e]}function gi(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=Jo.updateQueue)?(t={lastEffect:null},Jo.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function bi(e){return e={current:e},si().memoizedState=e}function vi(){return li().memoizedState}function yi(e,t,n,r){var a=si();Jo.flags|=e,a.memoizedState=gi(1|t,n,void 0,void 0===r?null:r)}function wi(e,t,n,r){var a=li();r=void 0===r?null:r;var o=void 0;if(null!==ei){var i=ei.memoizedState;if(o=i.destroy,null!==r&&oi(r,i.deps))return void gi(t,n,o,r)}Jo.flags|=e,a.memoizedState=gi(1|t,n,o,r)}function Ei(e,t){return yi(516,4,e,t)}function ki(e,t){return wi(516,4,e,t)}function Si(e,t){return wi(4,2,e,t)}function xi(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function _i(e,t,n){return n=null!=n?n.concat([e]):null,wi(4,2,xi.bind(null,t,e),n)}function Li(){}function Ci(e,t){var n=li();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&oi(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Ti(e,t){var n=li();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&oi(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Ai(e,t){var n=Ha();Qa(98>n?98:n,(function(){e(!0)})),Qa(97<n?97:n,(function(){var n=Ko.transition;Ko.transition=1;try{e(!1),t()}finally{Ko.transition=n}}))}function Oi(e,t,n){var r=fl(),a=pl(e),o={lane:a,action:n,eagerReducer:null,eagerState:null,next:null},i=t.pending;if(null===i?o.next=o:(o.next=i.next,i.next=o),t.pending=o,i=e.alternate,e===Jo||null!==i&&i===Jo)ri=ni=!0;else{if(0===e.lanes&&(null===i||0===i.lanes)&&null!==(i=t.lastRenderedReducer))try{var s=t.lastRenderedState,l=i(s,n);if(o.eagerReducer=i,o.eagerState=l,ur(l,s))return}catch(u){}hl(e,a,r)}}var Pi={readContext:oo,useCallback:ai,useContext:ai,useEffect:ai,useImperativeHandle:ai,useLayoutEffect:ai,useMemo:ai,useReducer:ai,useRef:ai,useState:ai,useDebugValue:ai,useDeferredValue:ai,useTransition:ai,useMutableSource:ai,useOpaqueIdentifier:ai,unstable_isNewReconciler:!1},Ni={readContext:oo,useCallback:function(e,t){return si().memoizedState=[e,void 0===t?null:t],e},useContext:oo,useEffect:Ei,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,yi(4,2,xi.bind(null,t,e),n)},useLayoutEffect:function(e,t){return yi(4,2,e,t)},useMemo:function(e,t){var n=si();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=si();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e=(e=r.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=Oi.bind(null,Jo,e),[r.memoizedState,e]},useRef:bi,useState:mi,useDebugValue:Li,useDeferredValue:function(e){var t=mi(e),n=t[0],r=t[1];return Ei((function(){var t=Ko.transition;Ko.transition=1;try{r(e)}finally{Ko.transition=t}}),[e]),n},useTransition:function(){var e=mi(!1),t=e[0];return bi(e=Ai.bind(null,e[1])),[e,t]},useMutableSource:function(e,t,n){var r=si();return r.memoizedState={refs:{getSnapshot:t,setSnapshot:null},source:e,subscribe:n},pi(r,e,t,n)},useOpaqueIdentifier:function(){if(zo){var e=!1,t=function(e){return{$$typeof:R,toString:e,valueOf:e}}((function(){throw e||(e=!0,n("r:"+(qr++).toString(36))),Error(i(355))})),n=mi(t)[1];return 0==(2&Jo.mode)&&(Jo.flags|=516,gi(5,(function(){n("r:"+(qr++).toString(36))}),void 0,null)),t}return mi(t="r:"+(qr++).toString(36)),t},unstable_isNewReconciler:!1},Di={readContext:oo,useCallback:Ci,useContext:oo,useEffect:ki,useImperativeHandle:_i,useLayoutEffect:Si,useMemo:Ti,useReducer:ci,useRef:vi,useState:function(){return ci(ui)},useDebugValue:Li,useDeferredValue:function(e){var t=ci(ui),n=t[0],r=t[1];return ki((function(){var t=Ko.transition;Ko.transition=1;try{r(e)}finally{Ko.transition=t}}),[e]),n},useTransition:function(){var e=ci(ui)[0];return[vi().current,e]},useMutableSource:hi,useOpaqueIdentifier:function(){return ci(ui)[0]},unstable_isNewReconciler:!1},Ii={readContext:oo,useCallback:Ci,useContext:oo,useEffect:ki,useImperativeHandle:_i,useLayoutEffect:Si,useMemo:Ti,useReducer:di,useRef:vi,useState:function(){return di(ui)},useDebugValue:Li,useDeferredValue:function(e){var t=di(ui),n=t[0],r=t[1];return ki((function(){var t=Ko.transition;Ko.transition=1;try{r(e)}finally{Ko.transition=t}}),[e]),n},useTransition:function(){var e=di(ui)[0];return[vi().current,e]},useMutableSource:hi,useOpaqueIdentifier:function(){return di(ui)[0]},unstable_isNewReconciler:!1},Ri=E.ReactCurrentOwner,Mi=!1;function Fi(e,t,n,r){t.child=null===e?Co(t,null,n,r):Lo(t,e.child,n,r)}function Bi(e,t,n,r,a){n=n.render;var o=t.ref;return ao(t,a),r=ii(e,t,n,r,o,a),null===e||Mi?(t.flags|=1,Fi(e,t,r,a),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~a,os(e,t,a))}function ji(e,t,n,r,a,o){if(null===e){var i=n.type;return"function"!=typeof i||Ql(i)||void 0!==i.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Wl(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,$i(e,t,i,r,a,o))}return i=e.child,0==(a&o)&&(a=i.memoizedProps,(n=null!==(n=n.compare)?n:dr)(a,r)&&e.ref===t.ref)?os(e,t,o):(t.flags|=1,(e=Vl(i,r)).ref=t.ref,e.return=t,t.child=e)}function $i(e,t,n,r,a,o){if(null!==e&&dr(e.memoizedProps,r)&&e.ref===t.ref){if(Mi=!1,0==(o&a))return t.lanes=e.lanes,os(e,t,o);0!=(16384&e.flags)&&(Mi=!0)}return Hi(e,t,n,r,o)}function zi(e,t,n){var r=t.pendingProps,a=r.children,o=null!==e?e.memoizedState:null;if("hidden"===r.mode||"unstable-defer-without-hiding"===r.mode)if(0==(4&t.mode))t.memoizedState={baseLanes:0},kl(t,n);else{if(0==(1073741824&n))return e=null!==o?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e},kl(t,e),null;t.memoizedState={baseLanes:0},kl(t,null!==o?o.baseLanes:n)}else null!==o?(r=o.baseLanes|n,t.memoizedState=null):r=n,kl(t,r);return Fi(e,t,a,n),t.child}function Ui(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=128)}function Hi(e,t,n,r,a){var o=ga(n)?ha:fa.current;return o=ma(t,o),ao(t,a),n=ii(e,t,n,r,o,a),null===e||Mi?(t.flags|=1,Fi(e,t,n,a),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~a,os(e,t,a))}function Zi(e,t,n,r,a){if(ga(n)){var o=!0;wa(t)}else o=!1;if(ao(t,a),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),yo(t,n,r),Eo(t,n,r,a),r=!0;else if(null===e){var i=t.stateNode,s=t.memoizedProps;i.props=s;var l=i.context,u=n.contextType;"object"==typeof u&&null!==u?u=oo(u):u=ma(t,u=ga(n)?ha:fa.current);var c=n.getDerivedStateFromProps,d="function"==typeof c||"function"==typeof i.getSnapshotBeforeUpdate;d||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(s!==r||l!==u)&&wo(t,i,r,u),io=!1;var f=t.memoizedState;i.state=f,po(t,r,i,a),l=t.memoizedState,s!==r||f!==l||pa.current||io?("function"==typeof c&&(go(t,n,c,r),l=t.memoizedState),(s=io||vo(t,n,s,r,f,l,u))?(d||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||("function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount()),"function"==typeof i.componentDidMount&&(t.flags|=4)):("function"==typeof i.componentDidMount&&(t.flags|=4),t.memoizedProps=r,t.memoizedState=l),i.props=r,i.state=l,i.context=u,r=s):("function"==typeof i.componentDidMount&&(t.flags|=4),r=!1)}else{i=t.stateNode,lo(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:Ya(t.type,s),i.props=u,d=t.pendingProps,f=i.context,"object"==typeof(l=n.contextType)&&null!==l?l=oo(l):l=ma(t,l=ga(n)?ha:fa.current);var p=n.getDerivedStateFromProps;(c="function"==typeof p||"function"==typeof i.getSnapshotBeforeUpdate)||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(s!==d||f!==l)&&wo(t,i,r,l),io=!1,f=t.memoizedState,i.state=f,po(t,r,i,a);var h=t.memoizedState;s!==d||f!==h||pa.current||io?("function"==typeof p&&(go(t,n,p,r),h=t.memoizedState),(u=io||vo(t,n,u,r,f,h,l))?(c||"function"!=typeof i.UNSAFE_componentWillUpdate&&"function"!=typeof i.componentWillUpdate||("function"==typeof i.componentWillUpdate&&i.componentWillUpdate(r,h,l),"function"==typeof i.UNSAFE_componentWillUpdate&&i.UNSAFE_componentWillUpdate(r,h,l)),"function"==typeof i.componentDidUpdate&&(t.flags|=4),"function"==typeof i.getSnapshotBeforeUpdate&&(t.flags|=256)):("function"!=typeof i.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=256),t.memoizedProps=r,t.memoizedState=h),i.props=r,i.state=h,i.context=l,r=u):("function"!=typeof i.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=256),r=!1)}return Qi(e,t,n,r,o,a)}function Qi(e,t,n,r,a,o){Ui(e,t);var i=0!=(64&t.flags);if(!r&&!i)return a&&Ea(t,n,!1),os(e,t,o);r=t.stateNode,Ri.current=t;var s=i&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&i?(t.child=Lo(t,e.child,null,o),t.child=Lo(t,null,s,o)):Fi(e,t,s,o),t.memoizedState=r.state,a&&Ea(t,n,!0),t.child}function Vi(e){var t=e.stateNode;t.pendingContext?va(0,t.pendingContext,t.pendingContext!==t.context):t.context&&va(0,t.context,!1),Do(e,t.containerInfo)}var Wi,Gi,qi,Yi,Ki={dehydrated:null,retryLane:0};function Xi(e,t,n){var r,a=t.pendingProps,o=Fo.current,i=!1;return(r=0!=(64&t.flags))||(r=(null===e||null!==e.memoizedState)&&0!=(2&o)),r?(i=!0,t.flags&=-65):null!==e&&null===e.memoizedState||void 0===a.fallback||!0===a.unstable_avoidThisFallback||(o|=1),ca(Fo,1&o),null===e?(void 0!==a.fallback&&Zo(t),e=a.children,o=a.fallback,i?(e=Ji(t,e,o,n),t.child.memoizedState={baseLanes:n},t.memoizedState=Ki,e):"number"==typeof a.unstable_expectedLoadTime?(e=Ji(t,e,o,n),t.child.memoizedState={baseLanes:n},t.memoizedState=Ki,t.lanes=33554432,e):((n=ql({mode:"visible",children:e},t.mode,n,null)).return=t,t.child=n)):(e.memoizedState,i?(a=ts(e,t,a.children,a.fallback,n),i=t.child,o=e.child.memoizedState,i.memoizedState=null===o?{baseLanes:n}:{baseLanes:o.baseLanes|n},i.childLanes=e.childLanes&~n,t.memoizedState=Ki,a):(n=es(e,t,a.children,n),t.memoizedState=null,n))}function Ji(e,t,n,r){var a=e.mode,o=e.child;return t={mode:"hidden",children:t},0==(2&a)&&null!==o?(o.childLanes=0,o.pendingProps=t):o=ql(t,a,0,null),n=Gl(n,a,r,null),o.return=e,n.return=e,o.sibling=n,e.child=o,n}function es(e,t,n,r){var a=e.child;return e=a.sibling,n=Vl(a,{mode:"visible",children:n}),0==(2&t.mode)&&(n.lanes=r),n.return=t,n.sibling=null,null!==e&&(e.nextEffect=null,e.flags=8,t.firstEffect=t.lastEffect=e),t.child=n}function ts(e,t,n,r,a){var o=t.mode,i=e.child;e=i.sibling;var s={mode:"hidden",children:n};return 0==(2&o)&&t.child!==i?((n=t.child).childLanes=0,n.pendingProps=s,null!==(i=n.lastEffect)?(t.firstEffect=n.firstEffect,t.lastEffect=i,i.nextEffect=null):t.firstEffect=t.lastEffect=null):n=Vl(i,s),null!==e?r=Vl(e,r):(r=Gl(r,o,a,null)).flags|=2,r.return=t,n.return=t,n.sibling=r,t.child=n,r}function ns(e,t){e.lanes|=t;var n=e.alternate;null!==n&&(n.lanes|=t),ro(e.return,t)}function rs(e,t,n,r,a,o){var i=e.memoizedState;null===i?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:a,lastEffect:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=a,i.lastEffect=o)}function as(e,t,n){var r=t.pendingProps,a=r.revealOrder,o=r.tail;if(Fi(e,t,r.children,n),0!=(2&(r=Fo.current)))r=1&r|2,t.flags|=64;else{if(null!==e&&0!=(64&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&ns(e,n);else if(19===e.tag)ns(e,n);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(ca(Fo,r),0==(2&t.mode))t.memoizedState=null;else switch(a){case"forwards":for(n=t.child,a=null;null!==n;)null!==(e=n.alternate)&&null===Bo(e)&&(a=n),n=n.sibling;null===(n=a)?(a=t.child,t.child=null):(a=n.sibling,n.sibling=null),rs(t,!1,a,n,o,t.lastEffect);break;case"backwards":for(n=null,a=t.child,t.child=null;null!==a;){if(null!==(e=a.alternate)&&null===Bo(e)){t.child=a;break}e=a.sibling,a.sibling=n,n=a,a=e}rs(t,!0,n,null,o,t.lastEffect);break;case"together":rs(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function os(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),zs|=t.lanes,0!=(n&t.childLanes)){if(null!==e&&t.child!==e.child)throw Error(i(153));if(null!==t.child){for(n=Vl(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Vl(e,e.pendingProps)).return=t;n.sibling=null}return t.child}return null}function is(e,t){if(!zo)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function ss(e,t,n){var r=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:case 17:return ga(t.type)&&ba(),null;case 3:return Io(),ua(pa),ua(fa),qo(),(r=t.stateNode).pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(Vo(t)?t.flags|=4:r.hydrate||(t.flags|=256)),Gi(t),null;case 5:Mo(t);var o=No(Po.current);if(n=t.type,null!==e&&null!=t.stateNode)qi(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=128);else{if(!r){if(null===t.stateNode)throw Error(i(166));return null}if(e=No(Ao.current),Vo(t)){r=t.stateNode,n=t.type;var s=t.memoizedProps;switch(r[Kr]=t,r[Xr]=s,n){case"dialog":Ar("cancel",r),Ar("close",r);break;case"iframe":case"object":case"embed":Ar("load",r);break;case"video":case"audio":for(e=0;e<_r.length;e++)Ar(_r[e],r);break;case"source":Ar("error",r);break;case"img":case"image":case"link":Ar("error",r),Ar("load",r);break;case"details":Ar("toggle",r);break;case"input":ee(r,s),Ar("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!s.multiple},Ar("invalid",r);break;case"textarea":le(r,s),Ar("invalid",r)}for(var u in Se(n,s),e=null,s)s.hasOwnProperty(u)&&(o=s[u],"children"===u?"string"==typeof o?r.textContent!==o&&(e=["children",o]):"number"==typeof o&&r.textContent!==""+o&&(e=["children",""+o]):l.hasOwnProperty(u)&&null!=o&&"onScroll"===u&&Ar("scroll",r));switch(n){case"input":Y(r),re(r,s,!0);break;case"textarea":Y(r),ce(r);break;case"select":case"option":break;default:"function"==typeof s.onClick&&(r.onclick=jr)}r=e,t.updateQueue=r,null!==r&&(t.flags|=4)}else{switch(u=9===o.nodeType?o:o.ownerDocument,e===de.html&&(e=fe(n)),e===de.html?"script"===n?((e=u.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=u.createElement(n,{is:r.is}):(e=u.createElement(n),"select"===n&&(u=e,r.multiple?u.multiple=!0:r.size&&(u.size=r.size))):e=u.createElementNS(e,n),e[Kr]=t,e[Xr]=r,Wi(e,t,!1,!1),t.stateNode=e,u=xe(n,r),n){case"dialog":Ar("cancel",e),Ar("close",e),o=r;break;case"iframe":case"object":case"embed":Ar("load",e),o=r;break;case"video":case"audio":for(o=0;o<_r.length;o++)Ar(_r[o],e);o=r;break;case"source":Ar("error",e),o=r;break;case"img":case"image":case"link":Ar("error",e),Ar("load",e),o=r;break;case"details":Ar("toggle",e),o=r;break;case"input":ee(e,r),o=J(e,r),Ar("invalid",e);break;case"option":o=oe(e,r);break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=a({},r,{value:void 0}),Ar("invalid",e);break;case"textarea":le(e,r),o=se(e,r),Ar("invalid",e);break;default:o=r}Se(n,o);var c=o;for(s in c)if(c.hasOwnProperty(s)){var d=c[s];"style"===s?Ee(e,d):"dangerouslySetInnerHTML"===s?null!=(d=d?d.__html:void 0)&&ge(e,d):"children"===s?"string"==typeof d?("textarea"!==n||""!==d)&&be(e,d):"number"==typeof d&&be(e,""+d):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(l.hasOwnProperty(s)?null!=d&&"onScroll"===s&&Ar("scroll",e):null!=d&&w(e,s,d,u))}switch(n){case"input":Y(e),re(e,r,!1);break;case"textarea":Y(e),ce(e);break;case"option":null!=r.value&&e.setAttribute("value",""+G(r.value));break;case"select":e.multiple=!!r.multiple,null!=(s=r.value)?ie(e,!!r.multiple,s,!1):null!=r.defaultValue&&ie(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof o.onClick&&(e.onclick=jr)}Ur(n,r)&&(t.flags|=4)}null!==t.ref&&(t.flags|=128)}return null;case 6:if(e&&null!=t.stateNode)Yi(e,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(i(166));n=No(Po.current),No(Ao.current),Vo(t)?(r=t.stateNode,n=t.memoizedProps,r[Kr]=t,r.nodeValue!==n&&(t.flags|=4)):((r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[Kr]=t,t.stateNode=r)}return null;case 13:return ua(Fo),r=t.memoizedState,0!=(64&t.flags)?(t.lanes=n,t):(r=null!==r,n=!1,null===e?void 0!==t.memoizedProps.fallback&&Vo(t):n=null!==e.memoizedState,r&&!n&&0!=(2&t.mode)&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!=(1&Fo.current)?0===Bs&&(Bs=3):(0!==Bs&&3!==Bs||(Bs=4),null===Ds||0==(134217727&zs)&&0==(134217727&Us)||vl(Ds,Rs))),(r||n)&&(t.flags|=4),null);case 4:return Io(),Gi(t),null===e&&Pr(t.stateNode.containerInfo),null;case 10:return no(t),null;case 19:if(ua(Fo),null===(r=t.memoizedState))return null;if(s=0!=(64&t.flags),null===(u=r.rendering))if(s)is(r,!1);else{if(0!==Bs||null!==e&&0!=(64&e.flags))for(e=t.child;null!==e;){if(null!==(u=Bo(e))){for(t.flags|=64,is(r,!1),null!==(s=u.updateQueue)&&(t.updateQueue=s,t.flags|=4),null===r.lastEffect&&(t.firstEffect=null),t.lastEffect=r.lastEffect,r=n,n=t.child;null!==n;)e=r,(s=n).flags&=2,s.nextEffect=null,s.firstEffect=null,s.lastEffect=null,null===(u=s.alternate)?(s.childLanes=0,s.lanes=e,s.child=null,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=u.childLanes,s.lanes=u.lanes,s.child=u.child,s.memoizedProps=u.memoizedProps,s.memoizedState=u.memoizedState,s.updateQueue=u.updateQueue,s.type=u.type,e=u.dependencies,s.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return ca(Fo,1&Fo.current|2),t.child}e=e.sibling}null!==r.tail&&Ua()>Vs&&(t.flags|=64,s=!0,is(r,!1),t.lanes=33554432)}else{if(!s)if(null!==(e=Bo(u))){if(t.flags|=64,s=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),is(r,!0),null===r.tail&&"hidden"===r.tailMode&&!u.alternate&&!zo)return null!==(t=t.lastEffect=r.lastEffect)&&(t.nextEffect=null),null}else 2*Ua()-r.renderingStartTime>Vs&&1073741824!==n&&(t.flags|=64,s=!0,is(r,!1),t.lanes=33554432);r.isBackwards?(u.sibling=t.child,t.child=u):(null!==(n=r.last)?n.sibling=u:t.child=u,r.last=u)}return null!==r.tail?(n=r.tail,r.rendering=n,r.tail=n.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=Ua(),n.sibling=null,t=Fo.current,ca(Fo,s?1&t|2:1&t),n):null;case 23:case 24:return Sl(),null!==e&&null!==e.memoizedState!=(null!==t.memoizedState)&&"unstable-defer-without-hiding"!==r.mode&&(t.flags|=4),null}throw Error(i(156,t.tag))}function ls(e){switch(e.tag){case 1:ga(e.type)&&ba();var t=e.flags;return 4096&t?(e.flags=-4097&t|64,e):null;case 3:if(Io(),ua(pa),ua(fa),qo(),0!=(64&(t=e.flags)))throw Error(i(285));return e.flags=-4097&t|64,e;case 5:return Mo(e),null;case 13:return ua(Fo),4096&(t=e.flags)?(e.flags=-4097&t|64,e):null;case 19:return ua(Fo),null;case 4:return Io(),null;case 10:return no(e),null;case 23:case 24:return Sl(),null;default:return null}}function us(e,t){try{var n="",r=t;do{n+=V(r),r=r.return}while(r);var a=n}catch(o){a="\nError generating stack: "+o.message+"\n"+o.stack}return{value:e,source:t,stack:a}}function cs(e,t){try{console.error(t.value)}catch(n){setTimeout((function(){throw n}))}}Wi=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Gi=function(){},qi=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,No(Ao.current);var i,s=null;switch(n){case"input":o=J(e,o),r=J(e,r),s=[];break;case"option":o=oe(e,o),r=oe(e,r),s=[];break;case"select":o=a({},o,{value:void 0}),r=a({},r,{value:void 0}),s=[];break;case"textarea":o=se(e,o),r=se(e,r),s=[];break;default:"function"!=typeof o.onClick&&"function"==typeof r.onClick&&(e.onclick=jr)}for(d in Se(n,r),n=null,o)if(!r.hasOwnProperty(d)&&o.hasOwnProperty(d)&&null!=o[d])if("style"===d){var u=o[d];for(i in u)u.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else"dangerouslySetInnerHTML"!==d&&"children"!==d&&"suppressContentEditableWarning"!==d&&"suppressHydrationWarning"!==d&&"autoFocus"!==d&&(l.hasOwnProperty(d)?s||(s=[]):(s=s||[]).push(d,null));for(d in r){var c=r[d];if(u=null!=o?o[d]:void 0,r.hasOwnProperty(d)&&c!==u&&(null!=c||null!=u))if("style"===d)if(u){for(i in u)!u.hasOwnProperty(i)||c&&c.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in c)c.hasOwnProperty(i)&&u[i]!==c[i]&&(n||(n={}),n[i]=c[i])}else n||(s||(s=[]),s.push(d,n)),n=c;else"dangerouslySetInnerHTML"===d?(c=c?c.__html:void 0,u=u?u.__html:void 0,null!=c&&u!==c&&(s=s||[]).push(d,c)):"children"===d?"string"!=typeof c&&"number"!=typeof c||(s=s||[]).push(d,""+c):"suppressContentEditableWarning"!==d&&"suppressHydrationWarning"!==d&&(l.hasOwnProperty(d)?(null!=c&&"onScroll"===d&&Ar("scroll",e),s||u===c||(s=[])):"object"==typeof c&&null!==c&&c.$$typeof===R?c.toString():(s=s||[]).push(d,c))}n&&(s=s||[]).push("style",n);var d=s;(t.updateQueue=d)&&(t.flags|=4)}},Yi=function(e,t,n,r){n!==r&&(t.flags|=4)};var ds="function"==typeof WeakMap?WeakMap:Map;function fs(e,t,n){(n=uo(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Ys||(Ys=!0,Ks=r),cs(0,t)},n}function ps(e,t,n){(n=uo(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var a=t.value;n.payload=function(){return cs(0,t),r(a)}}var o=e.stateNode;return null!==o&&"function"==typeof o.componentDidCatch&&(n.callback=function(){"function"!=typeof r&&(null===Xs?Xs=new Set([this]):Xs.add(this),cs(0,t));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}var hs="function"==typeof WeakSet?WeakSet:Set;function ms(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(n){$l(e,n)}else t.current=null}function gs(e,t){switch(t.tag){case 0:case 11:case 15:case 22:case 5:case 6:case 4:case 17:return;case 1:if(256&t.flags&&null!==e){var n=e.memoizedProps,r=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:Ya(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:return void(256&t.flags&&Vr(t.stateNode.containerInfo))}throw Error(i(163))}function bs(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{if(3==(3&e.tag)){var r=e.create;e.destroy=r()}e=e.next}while(e!==t)}if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{var a=e;r=a.next,0!=(4&(a=a.tag))&&0!=(1&a)&&(Fl(n,e),Ml(n,e)),e=r}while(e!==t)}return;case 1:return e=n.stateNode,4&n.flags&&(null===t?e.componentDidMount():(r=n.elementType===n.type?t.memoizedProps:Ya(n.type,t.memoizedProps),e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),void(null!==(t=n.updateQueue)&&ho(n,t,e));case 3:if(null!==(t=n.updateQueue)){if(e=null,null!==n.child)switch(n.child.tag){case 5:case 1:e=n.child.stateNode}ho(n,t,e)}return;case 5:return e=n.stateNode,void(null===t&&4&n.flags&&Ur(n.type,n.memoizedProps)&&e.focus());case 6:case 4:case 12:case 19:case 17:case 20:case 21:case 23:case 24:return;case 13:return void(null===n.memoizedState&&(n=n.alternate,null!==n&&(n=n.memoizedState,null!==n&&(n=n.dehydrated,null!==n&&Et(n)))))}throw Error(i(163))}function vs(e,t){for(var n=e;;){if(5===n.tag){var r=n.stateNode;if(t)"function"==typeof(r=r.style).setProperty?r.setProperty("display","none","important"):r.display="none";else{r=n.stateNode;var a=n.memoizedProps.style;a=null!=a&&a.hasOwnProperty("display")?a.display:null,r.style.display=we("display",a)}}else if(6===n.tag)n.stateNode.nodeValue=t?"":n.memoizedProps;else if((23!==n.tag&&24!==n.tag||null===n.memoizedState||n===e)&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}}function ys(e,t){if(Sa&&"function"==typeof Sa.onCommitFiberUnmount)try{Sa.onCommitFiberUnmount(ka,t)}catch(o){}switch(t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var n=e=e.next;do{var r=n,a=r.destroy;if(r=r.tag,void 0!==a)if(0!=(4&r))Fl(t,n);else{r=t;try{a()}catch(o){$l(r,o)}}n=n.next}while(n!==e)}break;case 1:if(ms(t),"function"==typeof(e=t.stateNode).componentWillUnmount)try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(o){$l(t,o)}break;case 5:ms(t);break;case 4:_s(e,t)}}function ws(e){e.alternate=null,e.child=null,e.dependencies=null,e.firstEffect=null,e.lastEffect=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.return=null,e.updateQueue=null}function Es(e){return 5===e.tag||3===e.tag||4===e.tag}function ks(e){e:{for(var t=e.return;null!==t;){if(Es(t))break e;t=t.return}throw Error(i(160))}var n=t;switch(t=n.stateNode,n.tag){case 5:var r=!1;break;case 3:case 4:t=t.containerInfo,r=!0;break;default:throw Error(i(161))}16&n.flags&&(be(t,""),n.flags&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||Es(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.flags)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.flags)){n=n.stateNode;break e}}r?Ss(e,n,t):xs(e,n,t)}function Ss(e,t,n){var r=e.tag,a=5===r||6===r;if(a)e=a?e.stateNode:e.stateNode.instance,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=jr));else if(4!==r&&null!==(e=e.child))for(Ss(e,t,n),e=e.sibling;null!==e;)Ss(e,t,n),e=e.sibling}function xs(e,t,n){var r=e.tag,a=5===r||6===r;if(a)e=a?e.stateNode:e.stateNode.instance,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(xs(e,t,n),e=e.sibling;null!==e;)xs(e,t,n),e=e.sibling}function _s(e,t){for(var n,r,a=t,o=!1;;){if(!o){o=a.return;e:for(;;){if(null===o)throw Error(i(160));switch(n=o.stateNode,o.tag){case 5:r=!1;break e;case 3:case 4:n=n.containerInfo,r=!0;break e}o=o.return}o=!0}if(5===a.tag||6===a.tag){e:for(var s=e,l=a,u=l;;)if(ys(s,u),null!==u.child&&4!==u.tag)u.child.return=u,u=u.child;else{if(u===l)break e;for(;null===u.sibling;){if(null===u.return||u.return===l)break e;u=u.return}u.sibling.return=u.return,u=u.sibling}r?(s=n,l=a.stateNode,8===s.nodeType?s.parentNode.removeChild(l):s.removeChild(l)):n.removeChild(a.stateNode)}else if(4===a.tag){if(null!==a.child){n=a.stateNode.containerInfo,r=!0,a.child.return=a,a=a.child;continue}}else if(ys(e,a),null!==a.child){a.child.return=a,a=a.child;continue}if(a===t)break;for(;null===a.sibling;){if(null===a.return||a.return===t)return;4===(a=a.return).tag&&(o=!1)}a.sibling.return=a.return,a=a.sibling}}function Ls(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:var n=t.updateQueue;if(null!==(n=null!==n?n.lastEffect:null)){var r=n=n.next;do{3==(3&r.tag)&&(e=r.destroy,r.destroy=void 0,void 0!==e&&e()),r=r.next}while(r!==n)}return;case 1:case 12:case 17:return;case 5:if(null!=(n=t.stateNode)){r=t.memoizedProps;var a=null!==e?e.memoizedProps:r;e=t.type;var o=t.updateQueue;if(t.updateQueue=null,null!==o){for(n[Xr]=r,"input"===e&&"radio"===r.type&&null!=r.name&&te(n,r),xe(e,a),t=xe(e,r),a=0;a<o.length;a+=2){var s=o[a],l=o[a+1];"style"===s?Ee(n,l):"dangerouslySetInnerHTML"===s?ge(n,l):"children"===s?be(n,l):w(n,s,l,t)}switch(e){case"input":ne(n,r);break;case"textarea":ue(n,r);break;case"select":e=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,null!=(o=r.value)?ie(n,!!r.multiple,o,!1):e!==!!r.multiple&&(null!=r.defaultValue?ie(n,!!r.multiple,r.defaultValue,!0):ie(n,!!r.multiple,r.multiple?[]:"",!1))}}}return;case 6:if(null===t.stateNode)throw Error(i(162));return void(t.stateNode.nodeValue=t.memoizedProps);case 3:return void((n=t.stateNode).hydrate&&(n.hydrate=!1,Et(n.containerInfo)));case 13:return null!==t.memoizedState&&(Qs=Ua(),vs(t.child,!0)),void Cs(t);case 19:return void Cs(t);case 23:case 24:return void vs(t,null!==t.memoizedState)}throw Error(i(163))}function Cs(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new hs),t.forEach((function(t){var r=Ul.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function Ts(e,t){return null!==e&&(null===(e=e.memoizedState)||null!==e.dehydrated)&&(null!==(t=t.memoizedState)&&null===t.dehydrated)}var As=Math.ceil,Os=E.ReactCurrentDispatcher,Ps=E.ReactCurrentOwner,Ns=0,Ds=null,Is=null,Rs=0,Ms=0,Fs=la(0),Bs=0,js=null,$s=0,zs=0,Us=0,Hs=0,Zs=null,Qs=0,Vs=1/0;function Ws(){Vs=Ua()+500}var Gs,qs=null,Ys=!1,Ks=null,Xs=null,Js=!1,el=null,tl=90,nl=[],rl=[],al=null,ol=0,il=null,sl=-1,ll=0,ul=0,cl=null,dl=!1;function fl(){return 0!=(48&Ns)?Ua():-1!==sl?sl:sl=Ua()}function pl(e){if(0==(2&(e=e.mode)))return 1;if(0==(4&e))return 99===Ha()?1:2;if(0===ll&&(ll=$s),0!==qa.transition){0!==ul&&(ul=null!==Zs?Zs.pendingLanes:0),e=ll;var t=4186112&~ul;return 0===(t&=-t)&&(0===(t=(e=4186112&~e)&-e)&&(t=8192)),t}return e=Ha(),0!=(4&Ns)&&98===e?e=jt(12,ll):e=jt(e=function(e){switch(e){case 99:return 15;case 98:return 10;case 97:case 96:return 8;case 95:return 2;default:return 0}}(e),ll),e}function hl(e,t,n){if(50<ol)throw ol=0,il=null,Error(i(185));if(null===(e=ml(e,t)))return null;Ut(e,t,n),e===Ds&&(Us|=t,4===Bs&&vl(e,Rs));var r=Ha();1===t?0!=(8&Ns)&&0==(48&Ns)?yl(e):(gl(e,n),0===Ns&&(Ws(),Wa())):(0==(4&Ns)||98!==r&&99!==r||(null===al?al=new Set([e]):al.add(e)),gl(e,n)),Zs=e}function ml(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}function gl(e,t){for(var n=e.callbackNode,r=e.suspendedLanes,a=e.pingedLanes,o=e.expirationTimes,s=e.pendingLanes;0<s;){var l=31-Ht(s),u=1<<l,c=o[l];if(-1===c){if(0==(u&r)||0!=(u&a)){c=t,Mt(u);var d=Rt;o[l]=10<=d?c+250:6<=d?c+5e3:-1}}else c<=t&&(e.expiredLanes|=u);s&=~u}if(r=Ft(e,e===Ds?Rs:0),t=Rt,0===r)null!==n&&(n!==Ma&&La(n),e.callbackNode=null,e.callbackPriority=0);else{if(null!==n){if(e.callbackPriority===t)return;n!==Ma&&La(n)}15===t?(n=yl.bind(null,e),null===Ba?(Ba=[n],ja=_a(Pa,Ga)):Ba.push(n),n=Ma):14===t?n=Va(99,yl.bind(null,e)):(n=function(e){switch(e){case 15:case 14:return 99;case 13:case 12:case 11:case 10:return 98;case 9:case 8:case 7:case 6:case 4:case 5:return 97;case 3:case 2:case 1:return 95;case 0:return 90;default:throw Error(i(358,e))}}(t),n=Va(n,bl.bind(null,e))),e.callbackPriority=t,e.callbackNode=n}}function bl(e){if(sl=-1,ul=ll=0,0!=(48&Ns))throw Error(i(327));var t=e.callbackNode;if(Rl()&&e.callbackNode!==t)return null;var n=Ft(e,e===Ds?Rs:0);if(0===n)return null;var r=n,a=Ns;Ns|=16;var o=Ll();for(Ds===e&&Rs===r||(Ws(),xl(e,r));;)try{Al();break}catch(l){_l(e,l)}if(to(),Os.current=o,Ns=a,null!==Is?r=0:(Ds=null,Rs=0,r=Bs),0!=($s&Us))xl(e,0);else if(0!==r){if(2===r&&(Ns|=64,e.hydrate&&(e.hydrate=!1,Vr(e.containerInfo)),0!==(n=Bt(e))&&(r=Cl(e,n))),1===r)throw t=js,xl(e,0),vl(e,n),gl(e,Ua()),t;switch(e.finishedWork=e.current.alternate,e.finishedLanes=n,r){case 0:case 1:throw Error(i(345));case 2:case 5:Nl(e);break;case 3:if(vl(e,n),(62914560&n)===n&&10<(r=Qs+500-Ua())){if(0!==Ft(e,0))break;if(((a=e.suspendedLanes)&n)!==n){fl(),e.pingedLanes|=e.suspendedLanes&a;break}e.timeoutHandle=Zr(Nl.bind(null,e),r);break}Nl(e);break;case 4:if(vl(e,n),(4186112&n)===n)break;for(r=e.eventTimes,a=-1;0<n;){var s=31-Ht(n);o=1<<s,(s=r[s])>a&&(a=s),n&=~o}if(n=a,10<(n=(120>(n=Ua()-n)?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*As(n/1960))-n)){e.timeoutHandle=Zr(Nl.bind(null,e),n);break}Nl(e);break;default:throw Error(i(329))}}return gl(e,Ua()),e.callbackNode===t?bl.bind(null,e):null}function vl(e,t){for(t&=~Hs,t&=~Us,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Ht(t),r=1<<n;e[n]=-1,t&=~r}}function yl(e){if(0!=(48&Ns))throw Error(i(327));if(Rl(),e===Ds&&0!=(e.expiredLanes&Rs)){var t=Rs,n=Cl(e,t);0!=($s&Us)&&(n=Cl(e,t=Ft(e,t)))}else n=Cl(e,t=Ft(e,0));if(0!==e.tag&&2===n&&(Ns|=64,e.hydrate&&(e.hydrate=!1,Vr(e.containerInfo)),0!==(t=Bt(e))&&(n=Cl(e,t))),1===n)throw n=js,xl(e,0),vl(e,t),gl(e,Ua()),n;return e.finishedWork=e.current.alternate,e.finishedLanes=t,Nl(e),gl(e,Ua()),null}function wl(e,t){var n=Ns;Ns|=1;try{return e(t)}finally{0===(Ns=n)&&(Ws(),Wa())}}function El(e,t){var n=Ns;Ns&=-2,Ns|=8;try{return e(t)}finally{0===(Ns=n)&&(Ws(),Wa())}}function kl(e,t){ca(Fs,Ms),Ms|=t,$s|=t}function Sl(){Ms=Fs.current,ua(Fs)}function xl(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,Qr(n)),null!==Is)for(n=Is.return;null!==n;){var r=n;switch(r.tag){case 1:null!=(r=r.type.childContextTypes)&&ba();break;case 3:Io(),ua(pa),ua(fa),qo();break;case 5:Mo(r);break;case 4:Io();break;case 13:case 19:ua(Fo);break;case 10:no(r);break;case 23:case 24:Sl()}n=n.return}Ds=e,Is=Vl(e.current,null),Rs=Ms=$s=t,Bs=0,js=null,Hs=Us=zs=0}function _l(e,t){for(;;){var n=Is;try{if(to(),Yo.current=Pi,ni){for(var r=Jo.memoizedState;null!==r;){var a=r.queue;null!==a&&(a.pending=null),r=r.next}ni=!1}if(Xo=0,ti=ei=Jo=null,ri=!1,Ps.current=null,null===n||null===n.return){Bs=1,js=t,Is=null;break}e:{var o=e,i=n.return,s=n,l=t;if(t=Rs,s.flags|=2048,s.firstEffect=s.lastEffect=null,null!==l&&"object"==typeof l&&"function"==typeof l.then){var u=l;if(0==(2&s.mode)){var c=s.alternate;c?(s.updateQueue=c.updateQueue,s.memoizedState=c.memoizedState,s.lanes=c.lanes):(s.updateQueue=null,s.memoizedState=null)}var d=0!=(1&Fo.current),f=i;do{var p;if(p=13===f.tag){var h=f.memoizedState;if(null!==h)p=null!==h.dehydrated;else{var m=f.memoizedProps;p=void 0!==m.fallback&&(!0!==m.unstable_avoidThisFallback||!d)}}if(p){var g=f.updateQueue;if(null===g){var b=new Set;b.add(u),f.updateQueue=b}else g.add(u);if(0==(2&f.mode)){if(f.flags|=64,s.flags|=16384,s.flags&=-2981,1===s.tag)if(null===s.alternate)s.tag=17;else{var v=uo(-1,1);v.tag=2,co(s,v)}s.lanes|=1;break e}l=void 0,s=t;var y=o.pingCache;if(null===y?(y=o.pingCache=new ds,l=new Set,y.set(u,l)):void 0===(l=y.get(u))&&(l=new Set,y.set(u,l)),!l.has(s)){l.add(s);var w=zl.bind(null,o,u,s);u.then(w,w)}f.flags|=4096,f.lanes=t;break e}f=f.return}while(null!==f);l=Error((W(s.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.")}5!==Bs&&(Bs=2),l=us(l,s),f=i;do{switch(f.tag){case 3:o=l,f.flags|=4096,t&=-t,f.lanes|=t,fo(f,fs(0,o,t));break e;case 1:o=l;var E=f.type,k=f.stateNode;if(0==(64&f.flags)&&("function"==typeof E.getDerivedStateFromError||null!==k&&"function"==typeof k.componentDidCatch&&(null===Xs||!Xs.has(k)))){f.flags|=4096,t&=-t,f.lanes|=t,fo(f,ps(f,o,t));break e}}f=f.return}while(null!==f)}Pl(n)}catch(S){t=S,Is===n&&null!==n&&(Is=n=n.return);continue}break}}function Ll(){var e=Os.current;return Os.current=Pi,null===e?Pi:e}function Cl(e,t){var n=Ns;Ns|=16;var r=Ll();for(Ds===e&&Rs===t||xl(e,t);;)try{Tl();break}catch(a){_l(e,a)}if(to(),Ns=n,Os.current=r,null!==Is)throw Error(i(261));return Ds=null,Rs=0,Bs}function Tl(){for(;null!==Is;)Ol(Is)}function Al(){for(;null!==Is&&!Ca();)Ol(Is)}function Ol(e){var t=Gs(e.alternate,e,Ms);e.memoizedProps=e.pendingProps,null===t?Pl(e):Is=t,Ps.current=null}function Pl(e){var t=e;do{var n=t.alternate;if(e=t.return,0==(2048&t.flags)){if(null!==(n=ss(n,t,Ms)))return void(Is=n);if(24!==(n=t).tag&&23!==n.tag||null===n.memoizedState||0!=(1073741824&Ms)||0==(4&n.mode)){for(var r=0,a=n.child;null!==a;)r|=a.lanes|a.childLanes,a=a.sibling;n.childLanes=r}null!==e&&0==(2048&e.flags)&&(null===e.firstEffect&&(e.firstEffect=t.firstEffect),null!==t.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1<t.flags&&(null!==e.lastEffect?e.lastEffect.nextEffect=t:e.firstEffect=t,e.lastEffect=t))}else{if(null!==(n=ls(t)))return n.flags&=2047,void(Is=n);null!==e&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}if(null!==(t=t.sibling))return void(Is=t);Is=t=e}while(null!==t);0===Bs&&(Bs=5)}function Nl(e){var t=Ha();return Qa(99,Dl.bind(null,e,t)),null}function Dl(e,t){do{Rl()}while(null!==el);if(0!=(48&Ns))throw Error(i(327));var n=e.finishedWork;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(i(177));e.callbackNode=null;var r=n.lanes|n.childLanes,a=r,o=e.pendingLanes&~a;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=a,e.mutableReadLanes&=a,e.entangledLanes&=a,a=e.entanglements;for(var s=e.eventTimes,l=e.expirationTimes;0<o;){var u=31-Ht(o),c=1<<u;a[u]=0,s[u]=-1,l[u]=-1,o&=~c}if(null!==al&&0==(24&r)&&al.has(e)&&al.delete(e),e===Ds&&(Is=Ds=null,Rs=0),1<n.flags?null!==n.lastEffect?(n.lastEffect.nextEffect=n,r=n.firstEffect):r=n:r=n.firstEffect,null!==r){if(a=Ns,Ns|=32,Ps.current=null,$r=Gt,gr(s=mr())){if("selectionStart"in s)l={start:s.selectionStart,end:s.selectionEnd};else e:if(l=(l=s.ownerDocument)&&l.defaultView||window,(c=l.getSelection&&l.getSelection())&&0!==c.rangeCount){l=c.anchorNode,o=c.anchorOffset,u=c.focusNode,c=c.focusOffset;try{l.nodeType,u.nodeType}catch(L){l=null;break e}var d=0,f=-1,p=-1,h=0,m=0,g=s,b=null;t:for(;;){for(var v;g!==l||0!==o&&3!==g.nodeType||(f=d+o),g!==u||0!==c&&3!==g.nodeType||(p=d+c),3===g.nodeType&&(d+=g.nodeValue.length),null!==(v=g.firstChild);)b=g,g=v;for(;;){if(g===s)break t;if(b===l&&++h===o&&(f=d),b===u&&++m===c&&(p=d),null!==(v=g.nextSibling))break;b=(g=b).parentNode}g=v}l=-1===f||-1===p?null:{start:f,end:p}}else l=null;l=l||{start:0,end:0}}else l=null;zr={focusedElem:s,selectionRange:l},Gt=!1,cl=null,dl=!1,qs=r;do{try{Il()}catch(L){if(null===qs)throw Error(i(330));$l(qs,L),qs=qs.nextEffect}}while(null!==qs);cl=null,qs=r;do{try{for(s=e;null!==qs;){var y=qs.flags;if(16&y&&be(qs.stateNode,""),128&y){var w=qs.alternate;if(null!==w){var E=w.ref;null!==E&&("function"==typeof E?E(null):E.current=null)}}switch(1038&y){case 2:ks(qs),qs.flags&=-3;break;case 6:ks(qs),qs.flags&=-3,Ls(qs.alternate,qs);break;case 1024:qs.flags&=-1025;break;case 1028:qs.flags&=-1025,Ls(qs.alternate,qs);break;case 4:Ls(qs.alternate,qs);break;case 8:_s(s,l=qs);var k=l.alternate;ws(l),null!==k&&ws(k)}qs=qs.nextEffect}}catch(L){if(null===qs)throw Error(i(330));$l(qs,L),qs=qs.nextEffect}}while(null!==qs);if(E=zr,w=mr(),y=E.focusedElem,s=E.selectionRange,w!==y&&y&&y.ownerDocument&&hr(y.ownerDocument.documentElement,y)){null!==s&&gr(y)&&(w=s.start,void 0===(E=s.end)&&(E=w),"selectionStart"in y?(y.selectionStart=w,y.selectionEnd=Math.min(E,y.value.length)):(E=(w=y.ownerDocument||document)&&w.defaultView||window).getSelection&&(E=E.getSelection(),l=y.textContent.length,k=Math.min(s.start,l),s=void 0===s.end?k:Math.min(s.end,l),!E.extend&&k>s&&(l=s,s=k,k=l),l=pr(y,k),o=pr(y,s),l&&o&&(1!==E.rangeCount||E.anchorNode!==l.node||E.anchorOffset!==l.offset||E.focusNode!==o.node||E.focusOffset!==o.offset)&&((w=w.createRange()).setStart(l.node,l.offset),E.removeAllRanges(),k>s?(E.addRange(w),E.extend(o.node,o.offset)):(w.setEnd(o.node,o.offset),E.addRange(w))))),w=[];for(E=y;E=E.parentNode;)1===E.nodeType&&w.push({element:E,left:E.scrollLeft,top:E.scrollTop});for("function"==typeof y.focus&&y.focus(),y=0;y<w.length;y++)(E=w[y]).element.scrollLeft=E.left,E.element.scrollTop=E.top}Gt=!!$r,zr=$r=null,e.current=n,qs=r;do{try{for(y=e;null!==qs;){var S=qs.flags;if(36&S&&bs(y,qs.alternate,qs),128&S){w=void 0;var x=qs.ref;if(null!==x){var _=qs.stateNode;qs.tag,w=_,"function"==typeof x?x(w):x.current=w}}qs=qs.nextEffect}}catch(L){if(null===qs)throw Error(i(330));$l(qs,L),qs=qs.nextEffect}}while(null!==qs);qs=null,Fa(),Ns=a}else e.current=n;if(Js)Js=!1,el=e,tl=t;else for(qs=r;null!==qs;)t=qs.nextEffect,qs.nextEffect=null,8&qs.flags&&((S=qs).sibling=null,S.stateNode=null),qs=t;if(0===(r=e.pendingLanes)&&(Xs=null),1===r?e===il?ol++:(ol=0,il=e):ol=0,n=n.stateNode,Sa&&"function"==typeof Sa.onCommitFiberRoot)try{Sa.onCommitFiberRoot(ka,n,void 0,64==(64&n.current.flags))}catch(L){}if(gl(e,Ua()),Ys)throw Ys=!1,e=Ks,Ks=null,e;return 0!=(8&Ns)||Wa(),null}function Il(){for(;null!==qs;){var e=qs.alternate;dl||null===cl||(0!=(8&qs.flags)?Je(qs,cl)&&(dl=!0):13===qs.tag&&Ts(e,qs)&&Je(qs,cl)&&(dl=!0));var t=qs.flags;0!=(256&t)&&gs(e,qs),0==(512&t)||Js||(Js=!0,Va(97,(function(){return Rl(),null}))),qs=qs.nextEffect}}function Rl(){if(90!==tl){var e=97<tl?97:tl;return tl=90,Qa(e,Bl)}return!1}function Ml(e,t){nl.push(t,e),Js||(Js=!0,Va(97,(function(){return Rl(),null})))}function Fl(e,t){rl.push(t,e),Js||(Js=!0,Va(97,(function(){return Rl(),null})))}function Bl(){if(null===el)return!1;var e=el;if(el=null,0!=(48&Ns))throw Error(i(331));var t=Ns;Ns|=32;var n=rl;rl=[];for(var r=0;r<n.length;r+=2){var a=n[r],o=n[r+1],s=a.destroy;if(a.destroy=void 0,"function"==typeof s)try{s()}catch(u){if(null===o)throw Error(i(330));$l(o,u)}}for(n=nl,nl=[],r=0;r<n.length;r+=2){a=n[r],o=n[r+1];try{var l=a.create;a.destroy=l()}catch(u){if(null===o)throw Error(i(330));$l(o,u)}}for(l=e.current.firstEffect;null!==l;)e=l.nextEffect,l.nextEffect=null,8&l.flags&&(l.sibling=null,l.stateNode=null),l=e;return Ns=t,Wa(),!0}function jl(e,t,n){co(e,t=fs(0,t=us(n,t),1)),t=fl(),null!==(e=ml(e,1))&&(Ut(e,1,t),gl(e,t))}function $l(e,t){if(3===e.tag)jl(e,e,t);else for(var n=e.return;null!==n;){if(3===n.tag){jl(n,e,t);break}if(1===n.tag){var r=n.stateNode;if("function"==typeof n.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Xs||!Xs.has(r))){var a=ps(n,e=us(t,e),1);if(co(n,a),a=fl(),null!==(n=ml(n,1)))Ut(n,1,a),gl(n,a);else if("function"==typeof r.componentDidCatch&&(null===Xs||!Xs.has(r)))try{r.componentDidCatch(t,e)}catch(o){}break}}n=n.return}}function zl(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=fl(),e.pingedLanes|=e.suspendedLanes&n,Ds===e&&(Rs&n)===n&&(4===Bs||3===Bs&&(62914560&Rs)===Rs&&500>Ua()-Qs?xl(e,0):Hs|=n),gl(e,t)}function Ul(e,t){var n=e.stateNode;null!==n&&n.delete(t),0===(t=0)&&(0==(2&(t=e.mode))?t=1:0==(4&t)?t=99===Ha()?1:2:(0===ll&&(ll=$s),0===(t=$t(62914560&~ll))&&(t=4194304))),n=fl(),null!==(e=ml(e,t))&&(Ut(e,t,n),gl(e,n))}function Hl(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function Zl(e,t,n,r){return new Hl(e,t,n,r)}function Ql(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Vl(e,t){var n=e.alternate;return null===n?((n=Zl(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Wl(e,t,n,r,a,o){var s=2;if(r=e,"function"==typeof e)Ql(e)&&(s=1);else if("string"==typeof e)s=5;else e:switch(e){case x:return Gl(n.children,a,o,t);case M:s=8,a|=16;break;case _:s=8,a|=1;break;case L:return(e=Zl(12,n,t,8|a)).elementType=L,e.type=L,e.lanes=o,e;case O:return(e=Zl(13,n,t,a)).type=O,e.elementType=O,e.lanes=o,e;case P:return(e=Zl(19,n,t,a)).elementType=P,e.lanes=o,e;case F:return ql(n,a,o,t);case B:return(e=Zl(24,n,t,a)).elementType=B,e.lanes=o,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case C:s=10;break e;case T:s=9;break e;case A:s=11;break e;case N:s=14;break e;case D:s=16,r=null;break e;case I:s=22;break e}throw Error(i(130,null==e?e:typeof e,""))}return(t=Zl(s,n,t,a)).elementType=e,t.type=r,t.lanes=o,t}function Gl(e,t,n,r){return(e=Zl(7,e,r,t)).lanes=n,e}function ql(e,t,n,r){return(e=Zl(23,e,r,t)).elementType=F,e.lanes=n,e}function Yl(e,t,n){return(e=Zl(6,e,null,t)).lanes=n,e}function Kl(e,t,n){return(t=Zl(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Xl(e,t,n){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=zt(0),this.expirationTimes=zt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=zt(0),this.mutableSourceEagerHydrationData=null}function Jl(e,t,n,r){var a=t.current,o=fl(),s=pl(a);e:if(n){t:{if(qe(n=n._reactInternals)!==n||1!==n.tag)throw Error(i(170));var l=n;do{switch(l.tag){case 3:l=l.stateNode.context;break t;case 1:if(ga(l.type)){l=l.stateNode.__reactInternalMemoizedMergedChildContext;break t}}l=l.return}while(null!==l);throw Error(i(171))}if(1===n.tag){var u=n.type;if(ga(u)){n=ya(n,u,l);break e}}n=l}else n=da;return null===t.context?t.context=n:t.pendingContext=n,(t=uo(o,s)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),co(a,t),hl(a,s,o),s}function eu(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function tu(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function nu(e,t){tu(e,t),(e=e.alternate)&&tu(e,t)}function ru(e,t,n){var r=null!=n&&null!=n.hydrationOptions&&n.hydrationOptions.mutableSources||null;if(n=new Xl(e,t,null!=n&&!0===n.hydrate),t=Zl(3,null,null,2===t?7:1===t?3:0),n.current=t,t.stateNode=n,so(t),e[Jr]=n.current,Pr(8===e.nodeType?e.parentNode:e),r)for(e=0;e<r.length;e++){var a=(t=r[e])._getVersion;a=a(t._source),null==n.mutableSourceEagerHydrationData?n.mutableSourceEagerHydrationData=[t,a]:n.mutableSourceEagerHydrationData.push(t,a)}this._internalRoot=n}function au(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function ou(e,t,n,r,a){var o=n._reactRootContainer;if(o){var i=o._internalRoot;if("function"==typeof a){var s=a;a=function(){var e=eu(i);s.call(e)}}Jl(t,i,e,a)}else{if(o=n._reactRootContainer=function(e,t){if(t||(t=!(!(t=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new ru(e,0,t?{hydrate:!0}:void 0)}(n,r),i=o._internalRoot,"function"==typeof a){var l=a;a=function(){var e=eu(i);l.call(e)}}El((function(){Jl(t,i,e,a)}))}return eu(i)}function iu(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!au(t))throw Error(i(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:S,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)}Gs=function(e,t,n){var r=t.lanes;if(null!==e)if(e.memoizedProps!==t.pendingProps||pa.current)Mi=!0;else{if(0==(n&r)){switch(Mi=!1,t.tag){case 3:Vi(t),Wo();break;case 5:Ro(t);break;case 1:ga(t.type)&&wa(t);break;case 4:Do(t,t.stateNode.containerInfo);break;case 10:r=t.memoizedProps.value;var a=t.type._context;ca(Ka,a._currentValue),a._currentValue=r;break;case 13:if(null!==t.memoizedState)return 0!=(n&t.child.childLanes)?Xi(e,t,n):(ca(Fo,1&Fo.current),null!==(t=os(e,t,n))?t.sibling:null);ca(Fo,1&Fo.current);break;case 19:if(r=0!=(n&t.childLanes),0!=(64&e.flags)){if(r)return as(e,t,n);t.flags|=64}if(null!==(a=t.memoizedState)&&(a.rendering=null,a.tail=null,a.lastEffect=null),ca(Fo,Fo.current),r)break;return null;case 23:case 24:return t.lanes=0,zi(e,t,n)}return os(e,t,n)}Mi=0!=(16384&e.flags)}else Mi=!1;switch(t.lanes=0,t.tag){case 2:if(r=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,a=ma(t,fa.current),ao(t,n),a=ii(null,t,r,e,a,n),t.flags|=1,"object"==typeof a&&null!==a&&"function"==typeof a.render&&void 0===a.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,ga(r)){var o=!0;wa(t)}else o=!1;t.memoizedState=null!==a.state&&void 0!==a.state?a.state:null,so(t);var s=r.getDerivedStateFromProps;"function"==typeof s&&go(t,r,s,e),a.updater=bo,t.stateNode=a,a._reactInternals=t,Eo(t,r,e,n),t=Qi(null,t,r,!0,o,n)}else t.tag=0,Fi(null,t,a,n),t=t.child;return t;case 16:a=t.elementType;e:{switch(null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,a=(o=a._init)(a._payload),t.type=a,o=t.tag=function(e){if("function"==typeof e)return Ql(e)?1:0;if(null!=e){if((e=e.$$typeof)===A)return 11;if(e===N)return 14}return 2}(a),e=Ya(a,e),o){case 0:t=Hi(null,t,a,e,n);break e;case 1:t=Zi(null,t,a,e,n);break e;case 11:t=Bi(null,t,a,e,n);break e;case 14:t=ji(null,t,a,Ya(a.type,e),r,n);break e}throw Error(i(306,a,""))}return t;case 0:return r=t.type,a=t.pendingProps,Hi(e,t,r,a=t.elementType===r?a:Ya(r,a),n);case 1:return r=t.type,a=t.pendingProps,Zi(e,t,r,a=t.elementType===r?a:Ya(r,a),n);case 3:if(Vi(t),r=t.updateQueue,null===e||null===r)throw Error(i(282));if(r=t.pendingProps,a=null!==(a=t.memoizedState)?a.element:null,lo(e,t),po(t,r,null,n),(r=t.memoizedState.element)===a)Wo(),t=os(e,t,n);else{if((o=(a=t.stateNode).hydrate)&&($o=Wr(t.stateNode.containerInfo.firstChild),jo=t,o=zo=!0),o){if(null!=(e=a.mutableSourceEagerHydrationData))for(a=0;a<e.length;a+=2)(o=e[a])._workInProgressVersionPrimary=e[a+1],Go.push(o);for(n=Co(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|1024,n=n.sibling}else Fi(e,t,r,n),Wo();t=t.child}return t;case 5:return Ro(t),null===e&&Zo(t),r=t.type,a=t.pendingProps,o=null!==e?e.memoizedProps:null,s=a.children,Hr(r,a)?s=null:null!==o&&Hr(r,o)&&(t.flags|=16),Ui(e,t),Fi(e,t,s,n),t.child;case 6:return null===e&&Zo(t),null;case 13:return Xi(e,t,n);case 4:return Do(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Lo(t,null,r,n):Fi(e,t,r,n),t.child;case 11:return r=t.type,a=t.pendingProps,Bi(e,t,r,a=t.elementType===r?a:Ya(r,a),n);case 7:return Fi(e,t,t.pendingProps,n),t.child;case 8:case 12:return Fi(e,t,t.pendingProps.children,n),t.child;case 10:e:{r=t.type._context,a=t.pendingProps,s=t.memoizedProps,o=a.value;var l=t.type._context;if(ca(Ka,l._currentValue),l._currentValue=o,null!==s)if(l=s.value,0===(o=ur(l,o)?0:0|("function"==typeof r._calculateChangedBits?r._calculateChangedBits(l,o):1073741823))){if(s.children===a.children&&!pa.current){t=os(e,t,n);break e}}else for(null!==(l=t.child)&&(l.return=t);null!==l;){var u=l.dependencies;if(null!==u){s=l.child;for(var c=u.firstContext;null!==c;){if(c.context===r&&0!=(c.observedBits&o)){1===l.tag&&((c=uo(-1,n&-n)).tag=2,co(l,c)),l.lanes|=n,null!==(c=l.alternate)&&(c.lanes|=n),ro(l.return,n),u.lanes|=n;break}c=c.next}}else s=10===l.tag&&l.type===t.type?null:l.child;if(null!==s)s.return=l;else for(s=l;null!==s;){if(s===t){s=null;break}if(null!==(l=s.sibling)){l.return=s.return,s=l;break}s=s.return}l=s}Fi(e,t,a.children,n),t=t.child}return t;case 9:return a=t.type,r=(o=t.pendingProps).children,ao(t,n),r=r(a=oo(a,o.unstable_observedBits)),t.flags|=1,Fi(e,t,r,n),t.child;case 14:return o=Ya(a=t.type,t.pendingProps),ji(e,t,a,o=Ya(a.type,o),r,n);case 15:return $i(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:Ya(r,a),null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,ga(r)?(e=!0,wa(t)):e=!1,ao(t,n),yo(t,r,a),Eo(t,r,a,n),Qi(null,t,r,!0,e,n);case 19:return as(e,t,n);case 23:case 24:return zi(e,t,n)}throw Error(i(156,t.tag))},ru.prototype.render=function(e){Jl(e,this._internalRoot,null,null)},ru.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;Jl(null,e,null,(function(){t[Jr]=null}))},et=function(e){13===e.tag&&(hl(e,4,fl()),nu(e,4))},tt=function(e){13===e.tag&&(hl(e,67108864,fl()),nu(e,67108864))},nt=function(e){if(13===e.tag){var t=fl(),n=pl(e);hl(e,n,t),nu(e,n)}},rt=function(e,t){return t()},Le=function(e,t,n){switch(t){case"input":if(ne(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=aa(r);if(!a)throw Error(i(90));K(r),ne(r,a)}}}break;case"textarea":ue(e,n);break;case"select":null!=(t=n.value)&&ie(e,!!n.multiple,t,!1)}},Ne=wl,De=function(e,t,n,r,a){var o=Ns;Ns|=4;try{return Qa(98,e.bind(null,t,n,r,a))}finally{0===(Ns=o)&&(Ws(),Wa())}},Ie=function(){0==(49&Ns)&&(function(){if(null!==al){var e=al;al=null,e.forEach((function(e){e.expiredLanes|=24&e.pendingLanes,gl(e,Ua())}))}Wa()}(),Rl())},Re=function(e,t){var n=Ns;Ns|=2;try{return e(t)}finally{0===(Ns=n)&&(Ws(),Wa())}};var su={Events:[na,ra,aa,Oe,Pe,Rl,{current:!1}]},lu={findFiberByHostInstance:ta,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},uu={bundleType:lu.bundleType,version:lu.version,rendererPackageName:lu.rendererPackageName,rendererConfig:lu.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:E.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Xe(e))?null:e.stateNode},findFiberByHostInstance:lu.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var cu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!cu.isDisabled&&cu.supportsFiber)try{ka=cu.inject(uu),Sa=cu}catch(me){}}t.hydrate=function(e,t,n){if(!au(t))throw Error(i(200));return ou(null,e,t,!0,n)}},3935:(e,t,n)=>{"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),e.exports=n(4448)},9590:e=>{var t="undefined"!=typeof Element,n="function"==typeof Map,r="function"==typeof Set,a="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;function o(e,i){if(e===i)return!0;if(e&&i&&"object"==typeof e&&"object"==typeof i){if(e.constructor!==i.constructor)return!1;var s,l,u,c;if(Array.isArray(e)){if((s=e.length)!=i.length)return!1;for(l=s;0!=l--;)if(!o(e[l],i[l]))return!1;return!0}if(n&&e instanceof Map&&i instanceof Map){if(e.size!==i.size)return!1;for(c=e.entries();!(l=c.next()).done;)if(!i.has(l.value[0]))return!1;for(c=e.entries();!(l=c.next()).done;)if(!o(l.value[1],i.get(l.value[0])))return!1;return!0}if(r&&e instanceof Set&&i instanceof Set){if(e.size!==i.size)return!1;for(c=e.entries();!(l=c.next()).done;)if(!i.has(l.value[0]))return!1;return!0}if(a&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(i)){if((s=e.length)!=i.length)return!1;for(l=s;0!=l--;)if(e[l]!==i[l])return!1;return!0}if(e.constructor===RegExp)return e.source===i.source&&e.flags===i.flags;if(e.valueOf!==Object.prototype.valueOf&&"function"==typeof e.valueOf&&"function"==typeof i.valueOf)return e.valueOf()===i.valueOf();if(e.toString!==Object.prototype.toString&&"function"==typeof e.toString&&"function"==typeof i.toString)return e.toString()===i.toString();if((s=(u=Object.keys(e)).length)!==Object.keys(i).length)return!1;for(l=s;0!=l--;)if(!Object.prototype.hasOwnProperty.call(i,u[l]))return!1;if(t&&e instanceof Element)return!1;for(l=s;0!=l--;)if(("_owner"!==u[l]&&"__v"!==u[l]&&"__o"!==u[l]||!e.$$typeof)&&!o(e[u[l]],i[u[l]]))return!1;return!0}return e!=e&&i!=i}e.exports=function(e,t){try{return o(e,t)}catch(n){if((n.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw n}}},405:(e,t,n)=>{"use strict";n.d(t,{B6:()=>Q,ql:()=>J});var r=n(7294),a=n(5697),o=n.n(a),i=n(9590),s=n.n(i),l=n(1143),u=n.n(l),c=n(6774),d=n.n(c);function f(){return f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},f.apply(this,arguments)}function p(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,h(e,t)}function h(e,t){return h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},h(e,t)}function m(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t.indexOf(n=o[r])>=0||(a[n]=e[n]);return a}var g={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title",FRAGMENT:"Symbol(react.fragment)"},b={rel:["amphtml","canonical","alternate"]},v={type:["application/ld+json"]},y={charset:"",name:["robots","description"],property:["og:type","og:title","og:url","og:image","og:image:alt","og:description","twitter:url","twitter:title","twitter:description","twitter:image","twitter:image:alt","twitter:card","twitter:site"]},w=Object.keys(g).map((function(e){return g[e]})),E={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},k=Object.keys(E).reduce((function(e,t){return e[E[t]]=t,e}),{}),S=function(e,t){for(var n=e.length-1;n>=0;n-=1){var r=e[n];if(Object.prototype.hasOwnProperty.call(r,t))return r[t]}return null},x=function(e){var t=S(e,g.TITLE),n=S(e,"titleTemplate");if(Array.isArray(t)&&(t=t.join("")),n&&t)return n.replace(/%s/g,(function(){return t}));var r=S(e,"defaultTitle");return t||r||void 0},_=function(e){return S(e,"onChangeClientState")||function(){}},L=function(e,t){return t.filter((function(t){return void 0!==t[e]})).map((function(t){return t[e]})).reduce((function(e,t){return f({},e,t)}),{})},C=function(e,t){return t.filter((function(e){return void 0!==e[g.BASE]})).map((function(e){return e[g.BASE]})).reverse().reduce((function(t,n){if(!t.length)for(var r=Object.keys(n),a=0;a<r.length;a+=1){var o=r[a].toLowerCase();if(-1!==e.indexOf(o)&&n[o])return t.concat(n)}return t}),[])},T=function(e,t,n){var r={};return n.filter((function(t){return!!Array.isArray(t[e])||(void 0!==t[e]&&console&&"function"==typeof console.warn&&console.warn("Helmet: "+e+' should be of type "Array". Instead found type "'+typeof t[e]+'"'),!1)})).map((function(t){return t[e]})).reverse().reduce((function(e,n){var a={};n.filter((function(e){for(var n,o=Object.keys(e),i=0;i<o.length;i+=1){var s=o[i],l=s.toLowerCase();-1===t.indexOf(l)||"rel"===n&&"canonical"===e[n].toLowerCase()||"rel"===l&&"stylesheet"===e[l].toLowerCase()||(n=l),-1===t.indexOf(s)||"innerHTML"!==s&&"cssText"!==s&&"itemprop"!==s||(n=s)}if(!n||!e[n])return!1;var u=e[n].toLowerCase();return r[n]||(r[n]={}),a[n]||(a[n]={}),!r[n][u]&&(a[n][u]=!0,!0)})).reverse().forEach((function(t){return e.push(t)}));for(var o=Object.keys(a),i=0;i<o.length;i+=1){var s=o[i],l=f({},r[s],a[s]);r[s]=l}return e}),[]).reverse()},A=function(e,t){if(Array.isArray(e)&&e.length)for(var n=0;n<e.length;n+=1)if(e[n][t])return!0;return!1},O=function(e){return Array.isArray(e)?e.join(""):e},P=function(e,t){return Array.isArray(e)?e.reduce((function(e,n){return function(e,t){for(var n=Object.keys(e),r=0;r<n.length;r+=1)if(t[n[r]]&&t[n[r]].includes(e[n[r]]))return!0;return!1}(n,t)?e.priority.push(n):e.default.push(n),e}),{priority:[],default:[]}):{default:e}},N=function(e,t){var n;return f({},e,((n={})[t]=void 0,n))},D=[g.NOSCRIPT,g.SCRIPT,g.STYLE],I=function(e,t){return void 0===t&&(t=!0),!1===t?String(e):String(e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")},R=function(e){return Object.keys(e).reduce((function(t,n){var r=void 0!==e[n]?n+'="'+e[n]+'"':""+n;return t?t+" "+r:r}),"")},M=function(e,t){return void 0===t&&(t={}),Object.keys(e).reduce((function(t,n){return t[E[n]||n]=e[n],t}),t)},F=function(e,t){return t.map((function(t,n){var a,o=((a={key:n})["data-rh"]=!0,a);return Object.keys(t).forEach((function(e){var n=E[e]||e;"innerHTML"===n||"cssText"===n?o.dangerouslySetInnerHTML={__html:t.innerHTML||t.cssText}:o[n]=t[e]})),r.createElement(e,o)}))},B=function(e,t,n){switch(e){case g.TITLE:return{toComponent:function(){return n=t.titleAttributes,(a={key:e=t.title})["data-rh"]=!0,o=M(n,a),[r.createElement(g.TITLE,o,e)];var e,n,a,o},toString:function(){return function(e,t,n,r){var a=R(n),o=O(t);return a?"<"+e+' data-rh="true" '+a+">"+I(o,r)+"</"+e+">":"<"+e+' data-rh="true">'+I(o,r)+"</"+e+">"}(e,t.title,t.titleAttributes,n)}};case"bodyAttributes":case"htmlAttributes":return{toComponent:function(){return M(t)},toString:function(){return R(t)}};default:return{toComponent:function(){return F(e,t)},toString:function(){return function(e,t,n){return t.reduce((function(t,r){var a=Object.keys(r).filter((function(e){return!("innerHTML"===e||"cssText"===e)})).reduce((function(e,t){var a=void 0===r[t]?t:t+'="'+I(r[t],n)+'"';return e?e+" "+a:a}),""),o=r.innerHTML||r.cssText||"",i=-1===D.indexOf(e);return t+"<"+e+' data-rh="true" '+a+(i?"/>":">"+o+"</"+e+">")}),"")}(e,t,n)}}}},j=function(e){var t=e.baseTag,n=e.bodyAttributes,r=e.encode,a=e.htmlAttributes,o=e.noscriptTags,i=e.styleTags,s=e.title,l=void 0===s?"":s,u=e.titleAttributes,c=e.linkTags,d=e.metaTags,f=e.scriptTags,p={toComponent:function(){},toString:function(){return""}};if(e.prioritizeSeoTags){var h=function(e){var t=e.linkTags,n=e.scriptTags,r=e.encode,a=P(e.metaTags,y),o=P(t,b),i=P(n,v);return{priorityMethods:{toComponent:function(){return[].concat(F(g.META,a.priority),F(g.LINK,o.priority),F(g.SCRIPT,i.priority))},toString:function(){return B(g.META,a.priority,r)+" "+B(g.LINK,o.priority,r)+" "+B(g.SCRIPT,i.priority,r)}},metaTags:a.default,linkTags:o.default,scriptTags:i.default}}(e);p=h.priorityMethods,c=h.linkTags,d=h.metaTags,f=h.scriptTags}return{priority:p,base:B(g.BASE,t,r),bodyAttributes:B("bodyAttributes",n,r),htmlAttributes:B("htmlAttributes",a,r),link:B(g.LINK,c,r),meta:B(g.META,d,r),noscript:B(g.NOSCRIPT,o,r),script:B(g.SCRIPT,f,r),style:B(g.STYLE,i,r),title:B(g.TITLE,{title:l,titleAttributes:u},r)}},$=[],z=function(e,t){var n=this;void 0===t&&(t="undefined"!=typeof document),this.instances=[],this.value={setHelmet:function(e){n.context.helmet=e},helmetInstances:{get:function(){return n.canUseDOM?$:n.instances},add:function(e){(n.canUseDOM?$:n.instances).push(e)},remove:function(e){var t=(n.canUseDOM?$:n.instances).indexOf(e);(n.canUseDOM?$:n.instances).splice(t,1)}}},this.context=e,this.canUseDOM=t,t||(e.helmet=j({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))},U=r.createContext({}),H=o().shape({setHelmet:o().func,helmetInstances:o().shape({get:o().func,add:o().func,remove:o().func})}),Z="undefined"!=typeof document,Q=function(e){function t(n){var r;return(r=e.call(this,n)||this).helmetData=new z(r.props.context,t.canUseDOM),r}return p(t,e),t.prototype.render=function(){return r.createElement(U.Provider,{value:this.helmetData.value},this.props.children)},t}(r.Component);Q.canUseDOM=Z,Q.propTypes={context:o().shape({helmet:o().shape()}),children:o().node.isRequired},Q.defaultProps={context:{}},Q.displayName="HelmetProvider";var V=function(e,t){var n,r=document.head||document.querySelector(g.HEAD),a=r.querySelectorAll(e+"[data-rh]"),o=[].slice.call(a),i=[];return t&&t.length&&t.forEach((function(t){var r=document.createElement(e);for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&("innerHTML"===a?r.innerHTML=t.innerHTML:"cssText"===a?r.styleSheet?r.styleSheet.cssText=t.cssText:r.appendChild(document.createTextNode(t.cssText)):r.setAttribute(a,void 0===t[a]?"":t[a]));r.setAttribute("data-rh","true"),o.some((function(e,t){return n=t,r.isEqualNode(e)}))?o.splice(n,1):i.push(r)})),o.forEach((function(e){return e.parentNode.removeChild(e)})),i.forEach((function(e){return r.appendChild(e)})),{oldTags:o,newTags:i}},W=function(e,t){var n=document.getElementsByTagName(e)[0];if(n){for(var r=n.getAttribute("data-rh"),a=r?r.split(","):[],o=[].concat(a),i=Object.keys(t),s=0;s<i.length;s+=1){var l=i[s],u=t[l]||"";n.getAttribute(l)!==u&&n.setAttribute(l,u),-1===a.indexOf(l)&&a.push(l);var c=o.indexOf(l);-1!==c&&o.splice(c,1)}for(var d=o.length-1;d>=0;d-=1)n.removeAttribute(o[d]);a.length===o.length?n.removeAttribute("data-rh"):n.getAttribute("data-rh")!==i.join(",")&&n.setAttribute("data-rh",i.join(","))}},G=function(e,t){var n=e.baseTag,r=e.htmlAttributes,a=e.linkTags,o=e.metaTags,i=e.noscriptTags,s=e.onChangeClientState,l=e.scriptTags,u=e.styleTags,c=e.title,d=e.titleAttributes;W(g.BODY,e.bodyAttributes),W(g.HTML,r),function(e,t){void 0!==e&&document.title!==e&&(document.title=O(e)),W(g.TITLE,t)}(c,d);var f={baseTag:V(g.BASE,n),linkTags:V(g.LINK,a),metaTags:V(g.META,o),noscriptTags:V(g.NOSCRIPT,i),scriptTags:V(g.SCRIPT,l),styleTags:V(g.STYLE,u)},p={},h={};Object.keys(f).forEach((function(e){var t=f[e],n=t.newTags,r=t.oldTags;n.length&&(p[e]=n),r.length&&(h[e]=f[e].oldTags)})),t&&t(),s(e,p,h)},q=null,Y=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return(t=e.call.apply(e,[this].concat(r))||this).rendered=!1,t}p(t,e);var n=t.prototype;return n.shouldComponentUpdate=function(e){return!d()(e,this.props)},n.componentDidUpdate=function(){this.emitChange()},n.componentWillUnmount=function(){this.props.context.helmetInstances.remove(this),this.emitChange()},n.emitChange=function(){var e,t,n=this.props.context,r=n.setHelmet,a=null,o=(e=n.helmetInstances.get().map((function(e){var t=f({},e.props);return delete t.context,t})),{baseTag:C(["href"],e),bodyAttributes:L("bodyAttributes",e),defer:S(e,"defer"),encode:S(e,"encodeSpecialCharacters"),htmlAttributes:L("htmlAttributes",e),linkTags:T(g.LINK,["rel","href"],e),metaTags:T(g.META,["name","charset","http-equiv","property","itemprop"],e),noscriptTags:T(g.NOSCRIPT,["innerHTML"],e),onChangeClientState:_(e),scriptTags:T(g.SCRIPT,["src","innerHTML"],e),styleTags:T(g.STYLE,["cssText"],e),title:x(e),titleAttributes:L("titleAttributes",e),prioritizeSeoTags:A(e,"prioritizeSeoTags")});Q.canUseDOM?(t=o,q&&cancelAnimationFrame(q),t.defer?q=requestAnimationFrame((function(){G(t,(function(){q=null}))})):(G(t),q=null)):j&&(a=j(o)),r(a)},n.init=function(){this.rendered||(this.rendered=!0,this.props.context.helmetInstances.add(this),this.emitChange())},n.render=function(){return this.init(),null},t}(r.Component);Y.propTypes={context:H.isRequired},Y.displayName="HelmetDispatcher";var K=["children"],X=["children"],J=function(e){function t(){return e.apply(this,arguments)||this}p(t,e);var n=t.prototype;return n.shouldComponentUpdate=function(e){return!s()(N(this.props,"helmetData"),N(e,"helmetData"))},n.mapNestedChildrenToProps=function(e,t){if(!t)return null;switch(e.type){case g.SCRIPT:case g.NOSCRIPT:return{innerHTML:t};case g.STYLE:return{cssText:t};default:throw new Error("<"+e.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")}},n.flattenArrayTypeChildren=function(e){var t,n=e.child,r=e.arrayTypeChildren;return f({},r,((t={})[n.type]=[].concat(r[n.type]||[],[f({},e.newChildProps,this.mapNestedChildrenToProps(n,e.nestedChildren))]),t))},n.mapObjectTypeChildren=function(e){var t,n,r=e.child,a=e.newProps,o=e.newChildProps,i=e.nestedChildren;switch(r.type){case g.TITLE:return f({},a,((t={})[r.type]=i,t.titleAttributes=f({},o),t));case g.BODY:return f({},a,{bodyAttributes:f({},o)});case g.HTML:return f({},a,{htmlAttributes:f({},o)});default:return f({},a,((n={})[r.type]=f({},o),n))}},n.mapArrayTypeChildrenToProps=function(e,t){var n=f({},t);return Object.keys(e).forEach((function(t){var r;n=f({},n,((r={})[t]=e[t],r))})),n},n.warnOnInvalidChildren=function(e,t){return u()(w.some((function(t){return e.type===t})),"function"==typeof e.type?"You may be attempting to nest <Helmet> components within each other, which is not allowed. Refer to our API for more information.":"Only elements types "+w.join(", ")+" are allowed. Helmet does not support rendering <"+e.type+"> elements. Refer to our API for more information."),u()(!t||"string"==typeof t||Array.isArray(t)&&!t.some((function(e){return"string"!=typeof e})),"Helmet expects a string as a child of <"+e.type+">. Did you forget to wrap your children in braces? ( <"+e.type+">{``}</"+e.type+"> ) Refer to our API for more information."),!0},n.mapChildrenToProps=function(e,t){var n=this,a={};return r.Children.forEach(e,(function(e){if(e&&e.props){var r=e.props,o=r.children,i=m(r,K),s=Object.keys(i).reduce((function(e,t){return e[k[t]||t]=i[t],e}),{}),l=e.type;switch("symbol"==typeof l?l=l.toString():n.warnOnInvalidChildren(e,o),l){case g.FRAGMENT:t=n.mapChildrenToProps(o,t);break;case g.LINK:case g.META:case g.NOSCRIPT:case g.SCRIPT:case g.STYLE:a=n.flattenArrayTypeChildren({child:e,arrayTypeChildren:a,newChildProps:s,nestedChildren:o});break;default:t=n.mapObjectTypeChildren({child:e,newProps:t,newChildProps:s,nestedChildren:o})}}})),this.mapArrayTypeChildrenToProps(a,t)},n.render=function(){var e=this.props,t=e.children,n=m(e,X),a=f({},n),o=n.helmetData;return t&&(a=this.mapChildrenToProps(t,a)),!o||o instanceof z||(o=new z(o.context,o.instances)),o?r.createElement(Y,f({},a,{context:o.value,helmetData:void 0})):r.createElement(U.Consumer,null,(function(e){return r.createElement(Y,f({},a,{context:e}))}))},t}(r.Component);J.propTypes={base:o().object,bodyAttributes:o().object,children:o().oneOfType([o().arrayOf(o().node),o().node]),defaultTitle:o().string,defer:o().bool,encodeSpecialCharacters:o().bool,htmlAttributes:o().object,link:o().arrayOf(o().object),meta:o().arrayOf(o().object),noscript:o().arrayOf(o().object),onChangeClientState:o().func,script:o().arrayOf(o().object),style:o().arrayOf(o().object),title:o().string,titleAttributes:o().object,titleTemplate:o().string,prioritizeSeoTags:o().bool,helmetData:o().object},J.defaultProps={defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1},J.displayName="Helmet"},9921:(e,t)=>{"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,a=n?Symbol.for("react.portal"):60106,o=n?Symbol.for("react.fragment"):60107,i=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,u=n?Symbol.for("react.context"):60110,c=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,f=n?Symbol.for("react.forward_ref"):60112,p=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,b=n?Symbol.for("react.block"):60121,v=n?Symbol.for("react.fundamental"):60117,y=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;function E(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case c:case d:case o:case s:case i:case p:return e;default:switch(e=e&&e.$$typeof){case u:case f:case g:case m:case l:return e;default:return t}}case a:return t}}}function k(e){return E(e)===d}t.AsyncMode=c,t.ConcurrentMode=d,t.ContextConsumer=u,t.ContextProvider=l,t.Element=r,t.ForwardRef=f,t.Fragment=o,t.Lazy=g,t.Memo=m,t.Portal=a,t.Profiler=s,t.StrictMode=i,t.Suspense=p,t.isAsyncMode=function(e){return k(e)||E(e)===c},t.isConcurrentMode=k,t.isContextConsumer=function(e){return E(e)===u},t.isContextProvider=function(e){return E(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return E(e)===f},t.isFragment=function(e){return E(e)===o},t.isLazy=function(e){return E(e)===g},t.isMemo=function(e){return E(e)===m},t.isPortal=function(e){return E(e)===a},t.isProfiler=function(e){return E(e)===s},t.isStrictMode=function(e){return E(e)===i},t.isSuspense=function(e){return E(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===d||e===s||e===i||e===p||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===l||e.$$typeof===u||e.$$typeof===f||e.$$typeof===v||e.$$typeof===y||e.$$typeof===w||e.$$typeof===b)},t.typeOf=E},9864:(e,t,n)=>{"use strict";e.exports=n(9921)},8356:(e,t,n)=>{"use strict";function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function a(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(){return i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(this,arguments)}var s=n(7294),l=n(5697),u=[],c=[];function d(e){var t=e(),n={loading:!0,loaded:null,error:null};return n.promise=t.then((function(e){return n.loading=!1,n.loaded=e,e})).catch((function(e){throw n.loading=!1,n.error=e,e})),n}function f(e){var t={loading:!1,loaded:{},error:null},n=[];try{Object.keys(e).forEach((function(r){var a=d(e[r]);a.loading?t.loading=!0:(t.loaded[r]=a.loaded,t.error=a.error),n.push(a.promise),a.promise.then((function(e){t.loaded[r]=e})).catch((function(e){t.error=e}))}))}catch(r){t.error=r}return t.promise=Promise.all(n).then((function(e){return t.loading=!1,e})).catch((function(e){throw t.loading=!1,e})),t}function p(e,t){return s.createElement((n=e)&&n.__esModule?n.default:n,t);var n}function h(e,t){var d,f;if(!t.loading)throw new Error("react-loadable requires a `loading` component");var h=i({loader:null,loading:null,delay:200,timeout:null,render:p,webpack:null,modules:null},t),m=null;function g(){return m||(m=e(h.loader)),m.promise}return u.push(g),"function"==typeof h.webpack&&c.push((function(){if((0,h.webpack)().every((function(e){return void 0!==e&&void 0!==n.m[e]})))return g()})),f=d=function(t){function n(n){var r;return o(a(a(r=t.call(this,n)||this)),"retry",(function(){r.setState({error:null,loading:!0,timedOut:!1}),m=e(h.loader),r._loadModule()})),g(),r.state={error:m.error,pastDelay:!1,timedOut:!1,loading:m.loading,loaded:m.loaded},r}r(n,t),n.preload=function(){return g()};var i=n.prototype;return i.UNSAFE_componentWillMount=function(){this._loadModule()},i.componentDidMount=function(){this._mounted=!0},i._loadModule=function(){var e=this;if(this.context.loadable&&Array.isArray(h.modules)&&h.modules.forEach((function(t){e.context.loadable.report(t)})),m.loading){var t=function(t){e._mounted&&e.setState(t)};"number"==typeof h.delay&&(0===h.delay?this.setState({pastDelay:!0}):this._delay=setTimeout((function(){t({pastDelay:!0})}),h.delay)),"number"==typeof h.timeout&&(this._timeout=setTimeout((function(){t({timedOut:!0})}),h.timeout));var n=function(){t({error:m.error,loaded:m.loaded,loading:m.loading}),e._clearTimeouts()};m.promise.then((function(){return n(),null})).catch((function(e){return n(),null}))}},i.componentWillUnmount=function(){this._mounted=!1,this._clearTimeouts()},i._clearTimeouts=function(){clearTimeout(this._delay),clearTimeout(this._timeout)},i.render=function(){return this.state.loading||this.state.error?s.createElement(h.loading,{isLoading:this.state.loading,pastDelay:this.state.pastDelay,timedOut:this.state.timedOut,error:this.state.error,retry:this.retry}):this.state.loaded?h.render(this.state.loaded,this.props):null},n}(s.Component),o(d,"contextTypes",{loadable:l.shape({report:l.func.isRequired})}),f}function m(e){return h(d,e)}m.Map=function(e){if("function"!=typeof e.render)throw new Error("LoadableMap requires a `render(loaded, props)` function");return h(f,e)};var g=function(e){function t(){return e.apply(this,arguments)||this}r(t,e);var n=t.prototype;return n.getChildContext=function(){return{loadable:{report:this.props.report}}},n.render=function(){return s.Children.only(this.props.children)},t}(s.Component);function b(e){for(var t=[];e.length;){var n=e.pop();t.push(n())}return Promise.all(t).then((function(){if(e.length)return b(e)}))}o(g,"propTypes",{report:l.func.isRequired}),o(g,"childContextTypes",{loadable:l.shape({report:l.func.isRequired}).isRequired}),m.Capture=g,m.preloadAll=function(){return new Promise((function(e,t){b(u).then(e,t)}))},m.preloadReady=function(){return new Promise((function(e,t){b(c).then(e,e)}))},e.exports=m},8790:(e,t,n)=>{"use strict";n.d(t,{H:()=>s,f:()=>i});var r=n(6550),a=n(7462),o=n(7294);function i(e,t,n){return void 0===n&&(n=[]),e.some((function(e){var a=e.path?(0,r.LX)(t,e):n.length?n[n.length-1].match:r.F0.computeRootMatch(t);return a&&(n.push({route:e,match:a}),e.routes&&i(e.routes,t,n)),a})),n}function s(e,t,n){return void 0===t&&(t={}),void 0===n&&(n={}),e?o.createElement(r.rs,n,e.map((function(e,n){return o.createElement(r.AW,{key:e.key||n,path:e.path,exact:e.exact,strict:e.strict,render:function(n){return e.render?e.render((0,a.Z)({},n,{},t,{route:e})):o.createElement(e.component,(0,a.Z)({},n,t,{route:e}))}})}))):null}},3727:(e,t,n)=>{"use strict";n.d(t,{OL:()=>y,VK:()=>c,rU:()=>g});var r=n(6550),a=n(5068),o=n(7294),i=n(9318),s=n(7462),l=n(3366),u=n(8776),c=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return(t=e.call.apply(e,[this].concat(r))||this).history=(0,i.lX)(t.props),t}return(0,a.Z)(t,e),t.prototype.render=function(){return o.createElement(r.F0,{history:this.history,children:this.props.children})},t}(o.Component);o.Component;var d=function(e,t){return"function"==typeof e?e(t):e},f=function(e,t){return"string"==typeof e?(0,i.ob)(e,null,null,t):e},p=function(e){return e},h=o.forwardRef;void 0===h&&(h=p);var m=h((function(e,t){var n=e.innerRef,r=e.navigate,a=e.onClick,i=(0,l.Z)(e,["innerRef","navigate","onClick"]),u=i.target,c=(0,s.Z)({},i,{onClick:function(e){try{a&&a(e)}catch(t){throw e.preventDefault(),t}e.defaultPrevented||0!==e.button||u&&"_self"!==u||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)||(e.preventDefault(),r())}});return c.ref=p!==h&&t||n,o.createElement("a",c)}));var g=h((function(e,t){var n=e.component,a=void 0===n?m:n,c=e.replace,g=e.to,b=e.innerRef,v=(0,l.Z)(e,["component","replace","to","innerRef"]);return o.createElement(r.s6.Consumer,null,(function(e){e||(0,u.Z)(!1);var n=e.history,r=f(d(g,e.location),e.location),l=r?n.createHref(r):"",m=(0,s.Z)({},v,{href:l,navigate:function(){var t=d(g,e.location),r=(0,i.Ep)(e.location)===(0,i.Ep)(f(t));(c||r?n.replace:n.push)(t)}});return p!==h?m.ref=t||b:m.innerRef=b,o.createElement(a,m)}))})),b=function(e){return e},v=o.forwardRef;void 0===v&&(v=b);var y=v((function(e,t){var n=e["aria-current"],a=void 0===n?"page":n,i=e.activeClassName,c=void 0===i?"active":i,p=e.activeStyle,h=e.className,m=e.exact,y=e.isActive,w=e.location,E=e.sensitive,k=e.strict,S=e.style,x=e.to,_=e.innerRef,L=(0,l.Z)(e,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","sensitive","strict","style","to","innerRef"]);return o.createElement(r.s6.Consumer,null,(function(e){e||(0,u.Z)(!1);var n=w||e.location,i=f(d(x,n),n),l=i.pathname,C=l&&l.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),T=C?(0,r.LX)(n.pathname,{path:C,exact:m,sensitive:E,strict:k}):null,A=!!(y?y(T,n):T),O="function"==typeof h?h(A):h,P="function"==typeof S?S(A):S;A&&(O=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter((function(e){return e})).join(" ")}(O,c),P=(0,s.Z)({},P,p));var N=(0,s.Z)({"aria-current":A&&a||null,className:O,style:P,to:i},L);return b!==v?N.ref=t||_:N.innerRef=_,o.createElement(g,N)}))}))},6550:(e,t,n)=>{"use strict";n.d(t,{AW:()=>x,F0:()=>y,LX:()=>S,TH:()=>D,k6:()=>N,rs:()=>O,s6:()=>v});var r=n(5068),a=n(7294),o=n(5697),i=n.n(o),s=n(9318),l=n(8776),u=n(7462),c=n(4779),d=n.n(c),f=(n(9864),n(3366)),p=(n(8679),1073741823),h="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:{};var m=a.createContext||function(e,t){var n,o,s="__create-react-context-"+function(){var e="__global_unique_id__";return h[e]=(h[e]||0)+1}()+"__",l=function(e){function n(){for(var t,n,r,a=arguments.length,o=new Array(a),i=0;i<a;i++)o[i]=arguments[i];return(t=e.call.apply(e,[this].concat(o))||this).emitter=(n=t.props.value,r=[],{on:function(e){r.push(e)},off:function(e){r=r.filter((function(t){return t!==e}))},get:function(){return n},set:function(e,t){n=e,r.forEach((function(e){return e(n,t)}))}}),t}(0,r.Z)(n,e);var a=n.prototype;return a.getChildContext=function(){var e;return(e={})[s]=this.emitter,e},a.componentWillReceiveProps=function(e){if(this.props.value!==e.value){var n,r=this.props.value,a=e.value;((o=r)===(i=a)?0!==o||1/o==1/i:o!=o&&i!=i)?n=0:(n="function"==typeof t?t(r,a):p,0!==(n|=0)&&this.emitter.set(e.value,n))}var o,i},a.render=function(){return this.props.children},n}(a.Component);l.childContextTypes=((n={})[s]=i().object.isRequired,n);var u=function(t){function n(){for(var e,n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return(e=t.call.apply(t,[this].concat(r))||this).observedBits=void 0,e.state={value:e.getValue()},e.onUpdate=function(t,n){0!=((0|e.observedBits)&n)&&e.setState({value:e.getValue()})},e}(0,r.Z)(n,t);var a=n.prototype;return a.componentWillReceiveProps=function(e){var t=e.observedBits;this.observedBits=null==t?p:t},a.componentDidMount=function(){this.context[s]&&this.context[s].on(this.onUpdate);var e=this.props.observedBits;this.observedBits=null==e?p:e},a.componentWillUnmount=function(){this.context[s]&&this.context[s].off(this.onUpdate)},a.getValue=function(){return this.context[s]?this.context[s].get():e},a.render=function(){return(e=this.props.children,Array.isArray(e)?e[0]:e)(this.state.value);var e},n}(a.Component);return u.contextTypes=((o={})[s]=i().object,o),{Provider:l,Consumer:u}},g=function(e){var t=m();return t.displayName=e,t},b=g("Router-History"),v=g("Router"),y=function(e){function t(t){var n;return(n=e.call(this,t)||this).state={location:t.history.location},n._isMounted=!1,n._pendingLocation=null,t.staticContext||(n.unlisten=t.history.listen((function(e){n._pendingLocation=e}))),n}(0,r.Z)(t,e),t.computeRootMatch=function(e){return{path:"/",url:"/",params:{},isExact:"/"===e}};var n=t.prototype;return n.componentDidMount=function(){var e=this;this._isMounted=!0,this.unlisten&&this.unlisten(),this.props.staticContext||(this.unlisten=this.props.history.listen((function(t){e._isMounted&&e.setState({location:t})}))),this._pendingLocation&&this.setState({location:this._pendingLocation})},n.componentWillUnmount=function(){this.unlisten&&(this.unlisten(),this._isMounted=!1,this._pendingLocation=null)},n.render=function(){return a.createElement(v.Provider,{value:{history:this.props.history,location:this.state.location,match:t.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}},a.createElement(b.Provider,{children:this.props.children||null,value:this.props.history}))},t}(a.Component);a.Component;a.Component;var w={},E=1e4,k=0;function S(e,t){void 0===t&&(t={}),("string"==typeof t||Array.isArray(t))&&(t={path:t});var n=t,r=n.path,a=n.exact,o=void 0!==a&&a,i=n.strict,s=void 0!==i&&i,l=n.sensitive,u=void 0!==l&&l;return[].concat(r).reduce((function(t,n){if(!n&&""!==n)return null;if(t)return t;var r=function(e,t){var n=""+t.end+t.strict+t.sensitive,r=w[n]||(w[n]={});if(r[e])return r[e];var a=[],o={regexp:d()(e,a,t),keys:a};return k<E&&(r[e]=o,k++),o}(n,{end:o,strict:s,sensitive:u}),a=r.regexp,i=r.keys,l=a.exec(e);if(!l)return null;var c=l[0],f=l.slice(1),p=e===c;return o&&!p?null:{path:n,url:"/"===n&&""===c?"/":c,isExact:p,params:i.reduce((function(e,t,n){return e[t.name]=f[n],e}),{})}}),null)}var x=function(e){function t(){return e.apply(this,arguments)||this}return(0,r.Z)(t,e),t.prototype.render=function(){var e=this;return a.createElement(v.Consumer,null,(function(t){t||(0,l.Z)(!1);var n=e.props.location||t.location,r=e.props.computedMatch?e.props.computedMatch:e.props.path?S(n.pathname,e.props):t.match,o=(0,u.Z)({},t,{location:n,match:r}),i=e.props,s=i.children,c=i.component,d=i.render;return Array.isArray(s)&&function(e){return 0===a.Children.count(e)}(s)&&(s=null),a.createElement(v.Provider,{value:o},o.match?s?"function"==typeof s?s(o):s:c?a.createElement(c,o):d?d(o):null:"function"==typeof s?s(o):null)}))},t}(a.Component);function _(e){return"/"===e.charAt(0)?e:"/"+e}function L(e,t){if(!e)return t;var n=_(e);return 0!==t.pathname.indexOf(n)?t:(0,u.Z)({},t,{pathname:t.pathname.substr(n.length)})}function C(e){return"string"==typeof e?e:(0,s.Ep)(e)}function T(e){return function(){(0,l.Z)(!1)}}function A(){}a.Component;var O=function(e){function t(){return e.apply(this,arguments)||this}return(0,r.Z)(t,e),t.prototype.render=function(){var e=this;return a.createElement(v.Consumer,null,(function(t){t||(0,l.Z)(!1);var n,r,o=e.props.location||t.location;return a.Children.forEach(e.props.children,(function(e){if(null==r&&a.isValidElement(e)){n=e;var i=e.props.path||e.props.from;r=i?S(o.pathname,(0,u.Z)({},e.props,{path:i})):t.match}})),r?a.cloneElement(n,{location:o,computedMatch:r}):null}))},t}(a.Component);var P=a.useContext;function N(){return P(b)}function D(){return P(v).location}},2408:(e,t,n)=>{"use strict";var r=n(7418),a=60103,o=60106;t.Fragment=60107,t.StrictMode=60108,t.Profiler=60114;var i=60109,s=60110,l=60112;t.Suspense=60113;var u=60115,c=60116;if("function"==typeof Symbol&&Symbol.for){var d=Symbol.for;a=d("react.element"),o=d("react.portal"),t.Fragment=d("react.fragment"),t.StrictMode=d("react.strict_mode"),t.Profiler=d("react.profiler"),i=d("react.provider"),s=d("react.context"),l=d("react.forward_ref"),t.Suspense=d("react.suspense"),u=d("react.memo"),c=d("react.lazy")}var f="function"==typeof Symbol&&Symbol.iterator;function p(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m={};function g(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||h}function b(){}function v(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||h}g.prototype.isReactComponent={},g.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(p(85));this.updater.enqueueSetState(this,e,t,"setState")},g.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},b.prototype=g.prototype;var y=v.prototype=new b;y.constructor=v,r(y,g.prototype),y.isPureReactComponent=!0;var w={current:null},E=Object.prototype.hasOwnProperty,k={key:!0,ref:!0,__self:!0,__source:!0};function S(e,t,n){var r,o={},i=null,s=null;if(null!=t)for(r in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(i=""+t.key),t)E.call(t,r)&&!k.hasOwnProperty(r)&&(o[r]=t[r]);var l=arguments.length-2;if(1===l)o.children=n;else if(1<l){for(var u=Array(l),c=0;c<l;c++)u[c]=arguments[c+2];o.children=u}if(e&&e.defaultProps)for(r in l=e.defaultProps)void 0===o[r]&&(o[r]=l[r]);return{$$typeof:a,type:e,key:i,ref:s,props:o,_owner:w.current}}function x(e){return"object"==typeof e&&null!==e&&e.$$typeof===a}var _=/\/+/g;function L(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function C(e,t,n,r,i){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var l=!1;if(null===e)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case a:case o:l=!0}}if(l)return i=i(l=e),e=""===r?"."+L(l,0):r,Array.isArray(i)?(n="",null!=e&&(n=e.replace(_,"$&/")+"/"),C(i,t,n,"",(function(e){return e}))):null!=i&&(x(i)&&(i=function(e,t){return{$$typeof:a,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(i,n+(!i.key||l&&l.key===i.key?"":(""+i.key).replace(_,"$&/")+"/")+e)),t.push(i)),1;if(l=0,r=""===r?".":r+":",Array.isArray(e))for(var u=0;u<e.length;u++){var c=r+L(s=e[u],u);l+=C(s,t,n,c,i)}else if(c=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=f&&e[f]||e["@@iterator"])?e:null}(e),"function"==typeof c)for(e=c.call(e),u=0;!(s=e.next()).done;)l+=C(s=s.value,t,n,c=r+L(s,u++),i);else if("object"===s)throw t=""+e,Error(p(31,"[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t));return l}function T(e,t,n){if(null==e)return e;var r=[],a=0;return C(e,r,"","",(function(e){return t.call(n,e,a++)})),r}function A(e){if(-1===e._status){var t=e._result;t=t(),e._status=0,e._result=t,t.then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)}))}if(1===e._status)return e._result;throw e._result}var O={current:null};function P(){var e=O.current;if(null===e)throw Error(p(321));return e}var N={ReactCurrentDispatcher:O,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:w,IsSomeRendererActing:{current:!1},assign:r};t.Children={map:T,forEach:function(e,t,n){T(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return T(e,(function(){t++})),t},toArray:function(e){return T(e,(function(e){return e}))||[]},only:function(e){if(!x(e))throw Error(p(143));return e}},t.Component=g,t.PureComponent=v,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=N,t.cloneElement=function(e,t,n){if(null==e)throw Error(p(267,e));var o=r({},e.props),i=e.key,s=e.ref,l=e._owner;if(null!=t){if(void 0!==t.ref&&(s=t.ref,l=w.current),void 0!==t.key&&(i=""+t.key),e.type&&e.type.defaultProps)var u=e.type.defaultProps;for(c in t)E.call(t,c)&&!k.hasOwnProperty(c)&&(o[c]=void 0===t[c]&&void 0!==u?u[c]:t[c])}var c=arguments.length-2;if(1===c)o.children=n;else if(1<c){u=Array(c);for(var d=0;d<c;d++)u[d]=arguments[d+2];o.children=u}return{$$typeof:a,type:e.type,key:i,ref:s,props:o,_owner:l}},t.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:s,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:i,_context:e},e.Consumer=e},t.createElement=S,t.createFactory=function(e){var t=S.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:l,render:e}},t.isValidElement=x,t.lazy=function(e){return{$$typeof:c,_payload:{_status:-1,_result:e},_init:A}},t.memo=function(e,t){return{$$typeof:u,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return P().useCallback(e,t)},t.useContext=function(e,t){return P().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return P().useEffect(e,t)},t.useImperativeHandle=function(e,t,n){return P().useImperativeHandle(e,t,n)},t.useLayoutEffect=function(e,t){return P().useLayoutEffect(e,t)},t.useMemo=function(e,t){return P().useMemo(e,t)},t.useReducer=function(e,t,n){return P().useReducer(e,t,n)},t.useRef=function(e){return P().useRef(e)},t.useState=function(e){return P().useState(e)},t.version="17.0.2"},7294:(e,t,n)=>{"use strict";e.exports=n(2408)},53:(e,t)=>{"use strict";var n,r,a,o;if("object"==typeof performance&&"function"==typeof performance.now){var i=performance;t.unstable_now=function(){return i.now()}}else{var s=Date,l=s.now();t.unstable_now=function(){return s.now()-l}}if("undefined"==typeof window||"function"!=typeof MessageChannel){var u=null,c=null,d=function(){if(null!==u)try{var e=t.unstable_now();u(!0,e),u=null}catch(n){throw setTimeout(d,0),n}};n=function(e){null!==u?setTimeout(n,0,e):(u=e,setTimeout(d,0))},r=function(e,t){c=setTimeout(e,t)},a=function(){clearTimeout(c)},t.unstable_shouldYield=function(){return!1},o=t.unstable_forceFrameRate=function(){}}else{var f=window.setTimeout,p=window.clearTimeout;if("undefined"!=typeof console){var h=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),"function"!=typeof h&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var m=!1,g=null,b=-1,v=5,y=0;t.unstable_shouldYield=function(){return t.unstable_now()>=y},o=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):v=0<e?Math.floor(1e3/e):5};var w=new MessageChannel,E=w.port2;w.port1.onmessage=function(){if(null!==g){var e=t.unstable_now();y=e+v;try{g(!0,e)?E.postMessage(null):(m=!1,g=null)}catch(n){throw E.postMessage(null),n}}else m=!1},n=function(e){g=e,m||(m=!0,E.postMessage(null))},r=function(e,n){b=f((function(){e(t.unstable_now())}),n)},a=function(){p(b),b=-1}}function k(e,t){var n=e.length;e.push(t);e:for(;;){var r=n-1>>>1,a=e[r];if(!(void 0!==a&&0<_(a,t)))break e;e[r]=t,e[n]=a,n=r}}function S(e){return void 0===(e=e[0])?null:e}function x(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,a=e.length;r<a;){var o=2*(r+1)-1,i=e[o],s=o+1,l=e[s];if(void 0!==i&&0>_(i,n))void 0!==l&&0>_(l,i)?(e[r]=l,e[s]=n,r=s):(e[r]=i,e[o]=n,r=o);else{if(!(void 0!==l&&0>_(l,n)))break e;e[r]=l,e[s]=n,r=s}}}return t}return null}function _(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var L=[],C=[],T=1,A=null,O=3,P=!1,N=!1,D=!1;function I(e){for(var t=S(C);null!==t;){if(null===t.callback)x(C);else{if(!(t.startTime<=e))break;x(C),t.sortIndex=t.expirationTime,k(L,t)}t=S(C)}}function R(e){if(D=!1,I(e),!N)if(null!==S(L))N=!0,n(M);else{var t=S(C);null!==t&&r(R,t.startTime-e)}}function M(e,n){N=!1,D&&(D=!1,a()),P=!0;var o=O;try{for(I(n),A=S(L);null!==A&&(!(A.expirationTime>n)||e&&!t.unstable_shouldYield());){var i=A.callback;if("function"==typeof i){A.callback=null,O=A.priorityLevel;var s=i(A.expirationTime<=n);n=t.unstable_now(),"function"==typeof s?A.callback=s:A===S(L)&&x(L),I(n)}else x(L);A=S(L)}if(null!==A)var l=!0;else{var u=S(C);null!==u&&r(R,u.startTime-n),l=!1}return l}finally{A=null,O=o,P=!1}}var F=o;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){N||P||(N=!0,n(M))},t.unstable_getCurrentPriorityLevel=function(){return O},t.unstable_getFirstCallbackNode=function(){return S(L)},t.unstable_next=function(e){switch(O){case 1:case 2:case 3:var t=3;break;default:t=O}var n=O;O=t;try{return e()}finally{O=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=F,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=O;O=e;try{return t()}finally{O=n}},t.unstable_scheduleCallback=function(e,o,i){var s=t.unstable_now();switch("object"==typeof i&&null!==i?i="number"==typeof(i=i.delay)&&0<i?s+i:s:i=s,e){case 1:var l=-1;break;case 2:l=250;break;case 5:l=1073741823;break;case 4:l=1e4;break;default:l=5e3}return e={id:T++,callback:o,priorityLevel:e,startTime:i,expirationTime:l=i+l,sortIndex:-1},i>s?(e.sortIndex=i,k(C,e),null===S(L)&&e===S(C)&&(D?a():D=!0,r(R,i-s))):(e.sortIndex=l,k(L,e),N||P||(N=!0,n(M))),e},t.unstable_wrapCallback=function(e){var t=O;return function(){var n=O;O=t;try{return e.apply(this,arguments)}finally{O=n}}}},3840:(e,t,n)=>{"use strict";e.exports=n(53)},6774:e=>{e.exports=function(e,t,n,r){var a=n?n.call(r,e,t):void 0;if(void 0!==a)return!!a;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var o=Object.keys(e),i=Object.keys(t);if(o.length!==i.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),l=0;l<o.length;l++){var u=o[l];if(!s(u))return!1;var c=e[u],d=t[u];if(!1===(a=n?n.call(r,c,d,u):void 0)||void 0===a&&c!==d)return!1}return!0}},3250:(e,t,n)=>{"use strict";var r=n(7294);var a="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=r.useState,i=r.useEffect,s=r.useLayoutEffect,l=r.useDebugValue;function u(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!a(e,n)}catch(r){return!0}}var c="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=o({inst:{value:n,getSnapshot:t}}),a=r[0].inst,c=r[1];return s((function(){a.value=n,a.getSnapshot=t,u(a)&&c({inst:a})}),[e,n,t]),i((function(){return u(a)&&c({inst:a}),e((function(){u(a)&&c({inst:a})}))}),[e]),l(n),n};void 0!==r.useSyncExternalStore&&r.useSyncExternalStore},1688:(e,t,n)=>{"use strict";n(3250)},6809:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r={customFields:{webpack:{}},title:"\u57f9\u6d0b\u7684\u7b14\u8bb0\u672c\ud83d\udcd2",favicon:"img/rockstar-games.svg",url:"https://bonjour-npy.github.io",baseUrl:"/",organizationName:"bonjour-npy",projectName:"bonjour-npy.github.io",deploymentBranch:"gh-pages",onBrokenLinks:"throw",onBrokenMarkdownLinks:"warn",i18n:{defaultLocale:"zh-Hans",locales:["en","zh-Hans"],path:"i18n",localeConfigs:{}},presets:[["classic",{docs:{remarkPlugins:[null],rehypePlugins:[null],sidebarPath:"C:\\External\\bonjour-npy.github.io\\sidebars.js"},blog:{showReadingTime:!1,remarkPlugins:[null],rehypePlugins:[null]},theme:{customCss:["C:\\External\\bonjour-npy.github.io\\src\\css\\custom.css","C:\\External\\bonjour-npy.github.io\\src\\css\\header.css","C:\\External\\bonjour-npy.github.io\\src\\css\\fonts.css"]}}]],stylesheets:[{href:"https://cdn.jsdelivr.net/npm/katex@0.13.24/dist/katex.min.css",type:"text/css",integrity:"sha384-odtC+0UGzzFL/6PNoE8rX/SPcQDXBJ+uRepguP4QkPCm2LBxH3FA3y+fKSiJ+AmM",crossorigin:"anonymous"}],plugins:[["C:\\External\\bonjour-npy.github.io\\node_modules\\@easyops-cn\\docusaurus-search-local\\dist\\server\\server\\index.js",{hashed:!0,language:["en"]}]],themeConfig:{image:"./static/img/intro.png",announcementBar:{id:"announcementBar-3",content:"\u6c42\u5b9e\u6c42\u771f\uff0c\u5927\u6c14\u5927\u4e3a",isCloseable:!1},docs:{sidebar:{hideable:!0,autoCollapseCategories:!1},versionPersistence:"localStorage"},colorMode:{defaultMode:"light",disableSwitch:!0,respectPrefersColorScheme:!1},tableOfContents:{minHeadingLevel:2,maxHeadingLevel:5},navbar:{hideOnScroll:!1,title:"\u57f9\u6d0b\u7684\u7b14\u8bb0\u672c",logo:{alt:"My Site Logo",src:"img/UESTC_logo.png"},items:[{to:"/docs/Deep-Learning/intro",label:"\ud83e\udd16\u6df1\u5ea6\u5b66\u4e60",position:"left"},{to:"/docs/Tui-Mian/intro",label:"\ud83e\udd21\u63a8\u514d",position:"left"},{to:"/docs/Algorithms/intro",label:"\ud83c\udfb0\u7b97\u6cd5",position:"left"},{to:"/docs/Curriculum/intro",label:"\ud83d\udcd6\u8bfe\u7a0b\u5b66\u4e60",position:"left"},{to:"/docs/Others/intro",label:"\u2603\ufe0f\u5176\u4ed6",position:"left"},{to:"/docs/Acknowledgement/intro",label:"\ud83c\udf7a\u996e\u6c34\u601d\u6e90",position:"left"},{href:"https://github.com/bonjour-npy",label:"GitHub",position:"right"}]},footer:{style:"dark",links:[{title:"\ud83d\udc4b\u8054\u7cfb\u6211",items:[{label:"WeChat",href:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/WeChat_QR_Code.jpg"},{label:"TikTok",href:"https://www.douyin.com/user/self?modal_id=7157246567970360614"},{label:"GitHub",href:"https://github.com/bonjour-npy"}]},{title:"\u2708\ufe0f\u5916\u90e8\u94fe\u63a5",items:[{label:"\u5171\u548c\u56fd\u56fd\u9632\u90e8",href:"http://www.mod.gov.cn/"},{label:"\u5b66\u4e60\u5f3a\u56fd",href:"https://www.xuexi.cn/"},{label:"\u8054\u5408\u56fd\u7ef4\u6301\u548c\u5e73",href:"https://peacekeeping.un.org/zh"}]},{title:"\ud83c\udf85\u5f69\u86cb",items:[{label:"\u6b22\u8fce\u6765\u5230\u6d1b\u5723\u90fd",href:"https://www.rockstargames.com/gta-v"},{label:"\u661f\u7403\u5927\u6218",href:"https://www.starwars.com/"},{label:"Apple(\u4e2d\u56fd\u5927\u9646)",href:"https://www.apple.com.cn/"}]},{title:"\ud83e\udd84\u6559\u80b2\u5b98\u7f51",items:[{label:"\u7535\u5b50\u79d1\u6280\u5927\u5b66",href:"https://www.uestc.edu.cn/"},{label:"\u6842\u6797\u7535\u5b50\u79d1\u6280\u5927\u5b66",href:"https://www.guet.edu.cn"},{label:"\u672a\u6765\u5a92\u4f53\u7814\u7a76\u4e2d\u5fc3",href:"https://cfm.uestc.edu.cn/index"}]}],copyright:"<br />\u672c\u7f51\u7ad9\u6240\u5c55\u793a\u7684\u6807\u8bc6\u3001\u94fe\u63a5\u5747\u5c5e\u4e8e\u4e2a\u4eba\u521b\u4f5c\u548c\u559c\u597d\u8868\u8fbe\uff0c\u4e0d\u4ee3\u8868\u4efb\u4f55\u56fd\u5bb6\u3001\u653f\u5e9c\u3001\u4f01\u4e1a\u6216\u7ec4\u7ec7\u7684\u5b98\u65b9\u7acb\u573a\u6216\u884c\u4e3a\u3002<br />\n \u5c3d\u7ba1\u672c\u7f51\u7ad9\u52aa\u529b\u786e\u4fdd\u4fe1\u606f\u7684\u51c6\u786e\u6027\u548c\u65f6\u6548\u6027\uff0c\u4f46\u6240\u6709\u4fe1\u606f\u4ec5\u4f9b\u53c2\u8003\uff0c\u5e76\u4e0d\u6784\u6210\u4efb\u4f55\u5f62\u5f0f\u7684\u6cd5\u5f8b\u3001\u8d22\u52a1\u6216\u5546\u4e1a\u5efa\u8bae\u3002<br />\n <br />Copyright \xa9 2024 bonjour-npy. Built with Docusaurus."},prism:{theme:{plain:{color:"#393A34",backgroundColor:"#f6f8fa"},styles:[{types:["comment","prolog","doctype","cdata"],style:{color:"#999988",fontStyle:"italic"}},{types:["namespace"],style:{opacity:.7}},{types:["string","attr-value"],style:{color:"#e3116c"}},{types:["punctuation","operator"],style:{color:"#393A34"}},{types:["entity","url","symbol","number","boolean","variable","constant","property","regex","inserted"],style:{color:"#36acaa"}},{types:["atrule","keyword","attr-name","selector"],style:{color:"#00a4db"}},{types:["function","deleted","tag"],style:{color:"#d73a49"}},{types:["function-variable"],style:{color:"#6f42c1"}},{types:["tag","selector","keyword"],style:{color:"#00009f"}}]},darkTheme:{plain:{color:"#F8F8F2",backgroundColor:"#282A36"},styles:[{types:["prolog","constant","builtin"],style:{color:"rgb(189, 147, 249)"}},{types:["inserted","function"],style:{color:"rgb(80, 250, 123)"}},{types:["deleted"],style:{color:"rgb(255, 85, 85)"}},{types:["changed"],style:{color:"rgb(255, 184, 108)"}},{types:["punctuation","symbol"],style:{color:"rgb(248, 248, 242)"}},{types:["string","char","tag","selector"],style:{color:"rgb(255, 121, 198)"}},{types:["keyword","variable"],style:{color:"rgb(189, 147, 249)",fontStyle:"italic"}},{types:["comment"],style:{color:"rgb(98, 114, 164)"}},{types:["attr-name"],style:{color:"rgb(241, 250, 140)"}}]},additionalLanguages:["makefile"],magicComments:[{className:"theme-code-block-highlighted-line",line:"highlight-next-line",block:{start:"highlight-start",end:"highlight-end"}}]},metadata:[]},baseUrlIssueBanner:!0,onDuplicateRoutes:"warn",staticDirectories:["static"],themes:[],scripts:[],headTags:[],clientModules:[],tagline:"",titleDelimiter:"|",noIndex:!1,markdown:{mermaid:!1}}},7462:(e,t,n)=>{"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}n.d(t,{Z:()=>r})},5068:(e,t,n)=>{"use strict";function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}function a(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,r(e,t)}n.d(t,{Z:()=>a})},3366:(e,t,n)=>{"use strict";function r(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}n.d(t,{Z:()=>r})},8776:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=!0,a="Invariant failed";function o(e,t){if(!e){if(r)throw new Error(a);var n="function"==typeof t?t():t,o=n?"".concat(a,": ").concat(n):a;throw new Error(o)}}},7529:e=>{"use strict";e.exports=JSON.parse('{"theme.AnnouncementBar.closeButtonAriaLabel":"\u5173\u95ed","theme.BackToTopButton.buttonAriaLabel":"\u56de\u5230\u9876\u90e8","theme.CodeBlock.copied":"\u590d\u5236\u6210\u529f","theme.CodeBlock.copy":"\u590d\u5236","theme.CodeBlock.copyButtonAriaLabel":"\u590d\u5236\u4ee3\u7801\u5230\u526a\u8d34\u677f","theme.CodeBlock.wordWrapToggle":"\u5207\u6362\u81ea\u52a8\u6362\u884c","theme.DocSidebarItem.toggleCollapsedCategoryAriaLabel":"\u6253\u5f00/\u6536\u8d77\u4fa7\u8fb9\u680f\u83dc\u5355\u300c{label}\u300d","theme.ErrorPageContent.title":"\u9875\u9762\u5df2\u5d29\u6e83\u3002","theme.ErrorPageContent.tryAgain":"\u91cd\u8bd5","theme.NavBar.navAriaLabel":"\u4e3b\u5bfc\u822a","theme.NotFound.p1":"\u6211\u4eec\u627e\u4e0d\u5230\u60a8\u8981\u627e\u7684\u9875\u9762\u3002","theme.NotFound.p2":"\u8bf7\u8054\u7cfb\u539f\u59cb\u94fe\u63a5\u6765\u6e90\u7f51\u7ad9\u7684\u6240\u6709\u8005\uff0c\u5e76\u544a\u77e5\u4ed6\u4eec\u94fe\u63a5\u5df2\u635f\u574f\u3002","theme.NotFound.title":"\u627e\u4e0d\u5230\u9875\u9762","theme.TOCCollapsible.toggleButtonLabel":"\u672c\u9875\u603b\u89c8","theme.admonition.caution":"\u8b66\u544a","theme.admonition.danger":"\u5371\u9669","theme.admonition.info":"\u4fe1\u606f","theme.admonition.note":"\u5907\u6ce8","theme.admonition.tip":"\u63d0\u793a","theme.blog.archive.description":"\u5386\u53f2\u535a\u6587","theme.blog.archive.title":"\u5386\u53f2\u535a\u6587","theme.blog.paginator.navAriaLabel":"\u535a\u6587\u5217\u8868\u5206\u9875\u5bfc\u822a","theme.blog.paginator.newerEntries":"\u8f83\u65b0\u7684\u535a\u6587","theme.blog.paginator.olderEntries":"\u8f83\u65e7\u7684\u535a\u6587","theme.blog.post.paginator.navAriaLabel":"\u535a\u6587\u5206\u9875\u5bfc\u822a","theme.blog.post.paginator.newerPost":"\u8f83\u65b0\u4e00\u7bc7","theme.blog.post.paginator.olderPost":"\u8f83\u65e7\u4e00\u7bc7","theme.blog.post.plurals":"{count} \u7bc7\u535a\u6587","theme.blog.post.readMore":"\u9605\u8bfb\u66f4\u591a","theme.blog.post.readMoreLabel":"\u9605\u8bfb {title} \u7684\u5168\u6587","theme.blog.post.readingTime.plurals":"\u9605\u8bfb\u9700 {readingTime} \u5206\u949f","theme.blog.sidebar.navAriaLabel":"\u6700\u8fd1\u535a\u6587\u5bfc\u822a","theme.blog.tagTitle":"{nPosts} \u542b\u6709\u6807\u7b7e\u300c{tagName}\u300d","theme.colorToggle.ariaLabel":"\u5207\u6362\u6d45\u8272/\u6697\u9ed1\u6a21\u5f0f\uff08\u5f53\u524d\u4e3a{mode}\uff09","theme.colorToggle.ariaLabel.mode.dark":"\u6697\u9ed1\u6a21\u5f0f","theme.colorToggle.ariaLabel.mode.light":"\u6d45\u8272\u6a21\u5f0f","theme.common.editThisPage":"\u7f16\u8f91\u6b64\u9875","theme.common.headingLinkTitle":"{heading}\u7684\u76f4\u63a5\u94fe\u63a5","theme.common.skipToMainContent":"\u8df3\u5230\u4e3b\u8981\u5185\u5bb9","theme.docs.DocCard.categoryDescription":"{count} \u4e2a\u9879\u76ee","theme.docs.breadcrumbs.home":"\u4e3b\u9875\u9762","theme.docs.breadcrumbs.navAriaLabel":"\u9875\u9762\u8def\u5f84","theme.docs.paginator.navAriaLabel":"\u6587\u4ef6\u9009\u9879\u5361","theme.docs.paginator.next":"\u4e0b\u4e00\u9875","theme.docs.paginator.previous":"\u4e0a\u4e00\u9875","theme.docs.sidebar.closeSidebarButtonAriaLabel":"\u5173\u95ed\u5bfc\u822a\u680f","theme.docs.sidebar.collapseButtonAriaLabel":"\u6536\u8d77\u4fa7\u8fb9\u680f","theme.docs.sidebar.collapseButtonTitle":"\u6536\u8d77\u4fa7\u8fb9\u680f","theme.docs.sidebar.expandButtonAriaLabel":"\u5c55\u5f00\u4fa7\u8fb9\u680f","theme.docs.sidebar.expandButtonTitle":"\u5c55\u5f00\u4fa7\u8fb9\u680f","theme.docs.sidebar.navAriaLabel":"\u6587\u6863\u4fa7\u8fb9\u680f","theme.docs.sidebar.toggleSidebarButtonAriaLabel":"\u5207\u6362\u5bfc\u822a\u680f","theme.docs.tagDocListPageTitle":"{nDocsTagged}\u300c{tagName}\u300d","theme.docs.tagDocListPageTitle.nDocsTagged":"{count} \u7bc7\u6587\u6863\u5e26\u6709\u6807\u7b7e","theme.docs.versionBadge.label":"\u7248\u672c\uff1a{versionLabel}","theme.docs.versions.latestVersionLinkLabel":"\u6700\u65b0\u7248\u672c","theme.docs.versions.latestVersionSuggestionLabel":"\u6700\u65b0\u7684\u6587\u6863\u8bf7\u53c2\u9605 {latestVersionLink} ({versionLabel})\u3002","theme.docs.versions.unmaintainedVersionLabel":"\u6b64\u4e3a {siteTitle} {versionLabel} \u7248\u7684\u6587\u6863\uff0c\u73b0\u5df2\u4e0d\u518d\u79ef\u6781\u7ef4\u62a4\u3002","theme.docs.versions.unreleasedVersionLabel":"\u6b64\u4e3a {siteTitle} {versionLabel} \u7248\u5c1a\u672a\u53d1\u884c\u7684\u6587\u6863\u3002","theme.lastUpdated.atDate":"\u4e8e {date} ","theme.lastUpdated.byUser":"\u7531 {user} ","theme.lastUpdated.lastUpdatedAtBy":"\u6700\u540e{byUser}{atDate}\u66f4\u65b0","theme.navbar.mobileLanguageDropdown.label":"\u9009\u62e9\u8bed\u8a00","theme.navbar.mobileSidebarSecondaryMenu.backButtonLabel":"\u2190 \u56de\u5230\u4e3b\u83dc\u5355","theme.navbar.mobileVersionsDropdown.label":"\u9009\u62e9\u7248\u672c","theme.tags.tagsListLabel":"\u6807\u7b7e\uff1a","theme.tags.tagsPageLink":"\u67e5\u770b\u6240\u6709\u6807\u7b7e","theme.tags.tagsPageTitle":"\u6807\u7b7e","theme.SearchBar.label":"\u641c\u7d22","theme.SearchBar.seeAll":"\u67e5\u770b\u5168\u90e8\u7ed3\u679c","theme.SearchBar.noResultsText":"\u6ca1\u6709\u627e\u5230\u4efb\u4f55\u6587\u6863","theme.SearchPage.existingResultsTitle":"\u201c{query}\u201d \u7684\u641c\u7d22\u7ed3\u679c","theme.SearchPage.emptyResultsTitle":"\u641c\u7d22\u6587\u6863","theme.SearchPage.documentsFound.plurals":"\u5171\u627e\u5230 {count} \u7bc7\u6587\u6863","theme.SearchPage.noResultsText":"\u6ca1\u6709\u627e\u5230\u4efb\u4f55\u6587\u6863"}')},6887:e=>{"use strict";e.exports=JSON.parse('{"/markdown-page-766":{"__comp":"1f391b9e","__context":{"plugin":"86cc22d4"},"content":"393be207"},"/search-11f":{"__comp":"1a4e3797","__context":{"plugin":"7daa201b"}},"/docs-5ff":{"__comp":"1be78505","__context":{"plugin":"d594b08b"},"versionMetadata":"935f2afb"},"/docs/Acknowledgement/intro-585":{"__comp":"17896441","content":"f0ad40a3"},"/docs/Algorithms/\u673a\u8bd5\u6280\u5de7\u4e0eSTL-e41":{"__comp":"17896441","content":"446859ef"},"/docs/Algorithms/\u9898\u89e3/\u53cd\u5e8f\u8f93\u51fa-917":{"__comp":"17896441","content":"3c9ce1b2"},"/docs/Algorithms/\u9898\u89e3/\u6392\u5217\u7ec4\u5408\uff08\u6c4230\u7684\u500d\u6570\uff09-dda":{"__comp":"17896441","content":"11f7daa4"},"/docs/Algorithms/\u9898\u89e3/\u4e00\u7ef4\u524d\u7f00\u548c\uff08\u5237\u51fa\u4e00\u9053\u5899\uff09-366":{"__comp":"17896441","content":"092909c8"},"/docs/Algorithms/intro-433":{"__comp":"17896441","content":"1331f6cd"},"/docs/Algorithms/STL\u6a21\u677f-935":{"__comp":"17896441","content":"a0558625"},"/docs/Curriculum/\u7f16\u8bd1\u539f\u7406/Note-59a":{"__comp":"17896441","content":"d6b41bcb"},"/docs/Curriculum/\u64cd\u4f5c\u7cfb\u7edf\u8bfe\u8bbe/Environment-Configuration-f1a":{"__comp":"17896441","content":"cccb4b32"},"/docs/Curriculum/\u64cd\u4f5c\u7cfb\u7edf\u8bfe\u8bbe/GeekOS-project-0-a73":{"__comp":"17896441","content":"73151820"},"/docs/Curriculum/\u6570\u5b57\u56fe\u50cf\u5904\u7406/Note-4fd":{"__comp":"17896441","content":"a91af95f"},"/docs/Curriculum/intro-513":{"__comp":"17896441","content":"e5f716fd"},"/docs/Deep-Learning/\u5927\u6a21\u578b/Attention-Is-All-You-Need-d42":{"__comp":"17896441","content":"459eb724"},"/docs/Deep-Learning/\u5927\u6a21\u578b/Diffusion-Model-570":{"__comp":"17896441","content":"0ed19e66"},"/docs/Deep-Learning/\u5927\u6a21\u578b/GAN-6dc":{"__comp":"17896441","content":"56ae16bd"},"/docs/Deep-Learning/\u5927\u6a21\u578b/Image-Generation-Models-eaa":{"__comp":"17896441","content":"67605ec9"},"/docs/Deep-Learning/\u5927\u6a21\u578b/Prompt Learning/Undergraduate-Dissertation-4cc":{"__comp":"17896441","content":"86a892ec"},"/docs/Deep-Learning/\u5927\u6a21\u578b/Self-Attention-06a":{"__comp":"17896441","content":"05ec199a"},"/docs/Deep-Learning/\u5927\u6a21\u578b/Self-Supervised-Learning-c92":{"__comp":"17896441","content":"a8183bcb"},"/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/\u6fc0\u6d3b\u51fd\u6570\u4e0eLoss\u7684\u68af\u5ea6-2b9":{"__comp":"17896441","content":"b529c19d"},"/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/\u6df1\u5ea6\u53ef\u5206\u79bb\u5377\u79ef-c84":{"__comp":"17896441","content":"6204ac06"},"/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/\u6b63\u5219\u5316\u4e0e\u6743\u91cd\u8870\u9000-ad1":{"__comp":"17896441","content":"cf67a3ce"},"/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/AlexNet-c99":{"__comp":"17896441","content":"d1030cc9"},"/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/ConvolutionalLayer-a92":{"__comp":"17896441","content":"d5b726de"},"/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/FromFullyConnectedLayerToConvolutionalLayer-34b":{"__comp":"17896441","content":"2a59d8d4"},"/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/K-foldCross-validation-448":{"__comp":"17896441","content":"f26368c4"},"/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/LeNet-21c":{"__comp":"17896441","content":"7ab2d319"},"/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/LogisticRegression-3fb":{"__comp":"17896441","content":"800ff996"},"/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/Perceptron-ab9":{"__comp":"17896441","content":"a8fad2e4"},"/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/PoolingLayer-0b7":{"__comp":"17896441","content":"74465ad7"},"/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/PytorchBasics-e93":{"__comp":"17896441","content":"c00822a0"},"/docs/Deep-Learning/\u8bba\u6587\u7b14\u8bb0/Attention Is All You Need-40a":{"__comp":"17896441","content":"78a3e900"},"/docs/Deep-Learning/\u8bba\u6587\u7b14\u8bb0/Denoising Diffusion Probabilistic Models-96c":{"__comp":"17896441","content":"21a88645"},"/docs/Deep-Learning/\u8bba\u6587\u7b14\u8bb0/High-Resolution Image Synthesis with Latent Diffusion Models-235":{"__comp":"17896441","content":"52f5885d"},"/docs/Deep-Learning/\u8bba\u6587\u7b14\u8bb0/Zero-shot Generative Model Adaptation via Image-specific Prompt Learning-597":{"__comp":"17896441","content":"26bb3547"},"/docs/Deep-Learning/\u5b9e\u6218\u7ec3\u4e60/Speaker Classification-44e":{"__comp":"17896441","content":"76f0dcb5"},"/docs/Deep-Learning/\u5b9e\u6218\u7ec3\u4e60/Undergraduate-Dissertation-a59":{"__comp":"17896441","content":"16ddbeca"},"/docs/Deep-Learning/\u5b9e\u6218\u7ec3\u4e60/Visdom Visualization-26a":{"__comp":"17896441","content":"7d51be72"},"/docs/Deep-Learning/Fill-The-Gaps-19a":{"__comp":"17896441","content":"b28e7af0"},"/docs/Deep-Learning/intro-498":{"__comp":"17896441","content":"170d5aca"},"/docs/Others/\u535a\u5ba2\u642d\u5efa/\u544a\u793a\u680f-64e":{"__comp":"17896441","content":"5b87b98d"},"/docs/Others/intro-6d3":{"__comp":"17896441","content":"4557037c"},"/docs/Others/Linux/\u5ba2\u5236\u5316/\u5982\u4f55\u8ba9\u4f60\u7684KDE\u770b\u8d77\u6765\u66f4\u50cfmacOS-041":{"__comp":"17896441","content":"e6c11ea8"},"/docs/Others/Linux/\u5b9e\u7528\u5de5\u5177/\u7ec8\u7aef\u4ee3\u7406-9d6":{"__comp":"17896441","content":"360a53fd"},"/docs/Others/Linux/\u95ee\u9898\u89e3\u51b3/\u53cc\u7cfb\u7edf\u6302\u8f7dWindows\u78c1\u76d8\u4e3a\u53ea\u8bfb\u6587\u4ef6-fee":{"__comp":"17896441","content":"e106d379"},"/docs/Tui-Mian/\u673a\u8bd5/\u5927\u6570\u9664\u6cd5-32b":{"__comp":"17896441","content":"a2a36db7"},"/docs/Tui-Mian/\u8ba1\u7b97\u673a\u57fa\u7840\u7efc\u5408/\u6570\u636e\u7ed3\u6784-c96":{"__comp":"17896441","content":"198a413f"},"/docs/Tui-Mian/\u7b80\u5386/\u7b80\u5386\u9762\u8bd5\u51c6\u5907-262":{"__comp":"17896441","content":"d839ba35"},"/docs/Tui-Mian/\u6570\u5b66/\u6982\u7387\u8bba-77a":{"__comp":"17896441","content":"5960b9f1"},"/docs/Tui-Mian/\u6570\u5b66/\u590f\u4ee4\u8425\u9762\u8bd5\u6570\u5b66\u90e8\u5206\u590d\u4e60-4ba":{"__comp":"17896441","content":"73a0803d"},"/docs/Tui-Mian/\u6570\u5b66/\u7ebf\u6027\u4ee3\u6570-286":{"__comp":"17896441","content":"4fdf609a"},"/docs/Tui-Mian/intro-c8c":{"__comp":"17896441","content":"7f328912"},"/docs/Tui-Mian/Summary-72a":{"__comp":"17896441","content":"4e1def24"},"/-0b3":{"__comp":"c4f5d8e4","__context":{"plugin":"86cc22d4"},"config":"5e9f5e1a"}}')}},e=>{e.O(0,[532],(()=>{return t=7221,e(e.s=t);var t}));e.O()}]); \ No newline at end of file diff --git a/assets/js/main.ad030941.js.LICENSE.txt b/assets/js/main.ad030941.js.LICENSE.txt new file mode 100644 index 000000000..2c826395b --- /dev/null +++ b/assets/js/main.ad030941.js.LICENSE.txt @@ -0,0 +1,125 @@ +/* +object-assign +(c) Sindre Sorhus +@license MIT +*/ + +/* NProgress, (c) 2013, 2014 Rico Sta. Cruz - http://ricostacruz.com/nprogress + * @license MIT */ + +/*! + * lunr.Builder + * Copyright (C) 2020 Oliver Nightingale + */ + +/*! + * lunr.Index + * Copyright (C) 2020 Oliver Nightingale + */ + +/*! + * lunr.Pipeline + * Copyright (C) 2020 Oliver Nightingale + */ + +/*! + * lunr.Set + * Copyright (C) 2020 Oliver Nightingale + */ + +/*! + * lunr.TokenSet + * Copyright (C) 2020 Oliver Nightingale + */ + +/*! + * lunr.Vector + * Copyright (C) 2020 Oliver Nightingale + */ + +/*! + * lunr.stemmer + * Copyright (C) 2020 Oliver Nightingale + * Includes code from - http://tartarus.org/~martin/PorterStemmer/js.txt + */ + +/*! + * lunr.stopWordFilter + * Copyright (C) 2020 Oliver Nightingale + */ + +/*! + * lunr.tokenizer + * Copyright (C) 2020 Oliver Nightingale + */ + +/*! + * lunr.trimmer + * Copyright (C) 2020 Oliver Nightingale + */ + +/*! + * lunr.utils + * Copyright (C) 2020 Oliver Nightingale + */ + +/** + * @license React + * use-sync-external-store-shim.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +/** + * Prism: Lightweight, robust, elegant syntax highlighting + * + * @license MIT <https://opensource.org/licenses/MIT> + * @author Lea Verou <https://lea.verou.me> + * @namespace + * @public + */ + +/** + * lunr - http://lunrjs.com - A bit like Solr, but much smaller and not as bright - 2.3.9 + * Copyright (C) 2020 Oliver Nightingale + * @license MIT + */ + +/** @license React v0.20.2 + * scheduler.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +/** @license React v16.13.1 + * react-is.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +/** @license React v17.0.2 + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +/** @license React v17.0.2 + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ diff --git a/assets/js/runtime~main.48c7665a.js b/assets/js/runtime~main.48c7665a.js new file mode 100644 index 000000000..56d818455 --- /dev/null +++ b/assets/js/runtime~main.48c7665a.js @@ -0,0 +1 @@ +(()=>{"use strict";var e,a,d,c,t,f={},r={};function b(e){var a=r[e];if(void 0!==a)return a.exports;var d=r[e]={exports:{}};return f[e].call(d.exports,d,d.exports,b),d.exports}b.m=f,e=[],b.O=(a,d,c,t)=>{if(!d){var f=1/0;for(i=0;i<e.length;i++){d=e[i][0],c=e[i][1],t=e[i][2];for(var r=!0,o=0;o<d.length;o++)(!1&t||f>=t)&&Object.keys(b.O).every((e=>b.O[e](d[o])))?d.splice(o--,1):(r=!1,t<f&&(f=t));if(r){e.splice(i--,1);var n=c();void 0!==n&&(a=n)}}return a}t=t||0;for(var i=e.length;i>0&&e[i-1][2]>t;i--)e[i]=e[i-1];e[i]=[d,c,t]},b.n=e=>{var a=e&&e.__esModule?()=>e.default:()=>e;return b.d(a,{a:a}),a},d=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,b.t=function(e,c){if(1&c&&(e=this(e)),8&c)return e;if("object"==typeof e&&e){if(4&c&&e.__esModule)return e;if(16&c&&"function"==typeof e.then)return e}var t=Object.create(null);b.r(t);var f={};a=a||[null,d({}),d([]),d(d)];for(var r=2&c&&e;"object"==typeof r&&!~a.indexOf(r);r=d(r))Object.getOwnPropertyNames(r).forEach((a=>f[a]=()=>e[a]));return f.default=()=>e,b.d(t,f),t},b.d=(e,a)=>{for(var d in a)b.o(a,d)&&!b.o(e,d)&&Object.defineProperty(e,d,{enumerable:!0,get:a[d]})},b.f={},b.e=e=>Promise.all(Object.keys(b.f).reduce(((a,d)=>(b.f[d](e,a),a)),[])),b.u=e=>"assets/js/"+({53:"935f2afb",189:"4557037c",198:"d839ba35",452:"5b87b98d",618:"b28e7af0",962:"092909c8",1007:"a91af95f",1130:"a8fad2e4",1180:"11f7daa4",1196:"73a0803d",1376:"56ae16bd",1459:"446859ef",1646:"e106d379",1835:"b529c19d",2051:"e6c11ea8",2296:"f0ad40a3",2373:"05ec199a",2592:"198a413f",2615:"76f0dcb5",3033:"e5f716fd",3065:"2a59d8d4",3085:"1f391b9e",3094:"cf67a3ce",3311:"67605ec9",3320:"d5b726de",3328:"16ddbeca",3346:"cccb4b32",3389:"a0558625",3553:"459eb724",3576:"86cc22d4",4195:"c4f5d8e4",4760:"f26368c4",5321:"74465ad7",5736:"7ab2d319",5742:"d1030cc9",5776:"a2a36db7",5901:"d6b41bcb",5923:"d594b08b",6178:"800ff996",6237:"4e1def24",6674:"3c9ce1b2",6898:"7d51be72",7122:"170d5aca",7336:"1331f6cd",7414:"393be207",7698:"4fdf609a",7739:"a8183bcb",7851:"360a53fd",7918:"17896441",7920:"1a4e3797",8125:"78a3e900",8175:"86a892ec",8231:"52f5885d",8347:"7daa201b",8399:"26bb3547",8614:"6204ac06",8770:"0ed19e66",8975:"7f328912",9203:"73151820",9507:"c00822a0",9514:"1be78505",9615:"5960b9f1",9913:"21a88645"}[e]||e)+"."+{53:"9fcb2a88",189:"52d57285",198:"3b5096c7",452:"1c0c0c2c",618:"af92c768",962:"ad73484e",1007:"774edfb2",1130:"f8b254ad",1180:"531ed800",1196:"83100b99",1376:"a7526509",1459:"2360948d",1646:"c75df834",1835:"c756283b",2051:"6a7266c7",2296:"8f021e6f",2373:"e2720221",2592:"7208c678",2615:"80ff3875",3033:"e327286a",3065:"b26a653a",3085:"e222276a",3094:"6365d2a3",3311:"482a2f1e",3320:"99d64fa2",3328:"908930c8",3346:"73ee6c98",3389:"585f6ea2",3553:"8d1c2600",3576:"aa8c1fa6",4195:"2acb6b67",4760:"29cc7aa1",4972:"d1a5048e",5321:"796c54df",5525:"db22dd4f",5736:"c5f13fa6",5742:"25307481",5776:"909c8384",5901:"e069e346",5923:"b2ee120d",6178:"3792f0da",6237:"ef64de25",6674:"7ffe926d",6898:"5df6fe56",7122:"5ea70d1f",7336:"06bce042",7414:"553b7e4e",7698:"540f6d42",7739:"36f81c77",7851:"f5b1ab9d",7918:"077d419c",7920:"cd2275cc",8125:"549f71cc",8175:"1c9a8ffe",8231:"0fd005f6",8347:"7d2e8a69",8399:"a86204d0",8443:"ac831155",8605:"012e1e77",8614:"b6803ede",8770:"e9d44f71",8975:"b5265411",9203:"24447b0f",9507:"ccaf7e94",9514:"94988c33",9615:"c8c1a4e2",9913:"a85707e2"}[e]+".js",b.miniCssF=e=>{},b.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),b.o=(e,a)=>Object.prototype.hasOwnProperty.call(e,a),c={},t="npy-notebook:",b.l=(e,a,d,f)=>{if(c[e])c[e].push(a);else{var r,o;if(void 0!==d)for(var n=document.getElementsByTagName("script"),i=0;i<n.length;i++){var u=n[i];if(u.getAttribute("src")==e||u.getAttribute("data-webpack")==t+d){r=u;break}}r||(o=!0,(r=document.createElement("script")).charset="utf-8",r.timeout=120,b.nc&&r.setAttribute("nonce",b.nc),r.setAttribute("data-webpack",t+d),r.src=e),c[e]=[a];var l=(a,d)=>{r.onerror=r.onload=null,clearTimeout(s);var t=c[e];if(delete c[e],r.parentNode&&r.parentNode.removeChild(r),t&&t.forEach((e=>e(d))),a)return a(d)},s=setTimeout(l.bind(null,void 0,{type:"timeout",target:r}),12e4);r.onerror=l.bind(null,r.onerror),r.onload=l.bind(null,r.onload),o&&document.head.appendChild(r)}},b.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},b.p="/",b.gca=function(e){return e={17896441:"7918",73151820:"9203","935f2afb":"53","4557037c":"189",d839ba35:"198","5b87b98d":"452",b28e7af0:"618","092909c8":"962",a91af95f:"1007",a8fad2e4:"1130","11f7daa4":"1180","73a0803d":"1196","56ae16bd":"1376","446859ef":"1459",e106d379:"1646",b529c19d:"1835",e6c11ea8:"2051",f0ad40a3:"2296","05ec199a":"2373","198a413f":"2592","76f0dcb5":"2615",e5f716fd:"3033","2a59d8d4":"3065","1f391b9e":"3085",cf67a3ce:"3094","67605ec9":"3311",d5b726de:"3320","16ddbeca":"3328",cccb4b32:"3346",a0558625:"3389","459eb724":"3553","86cc22d4":"3576",c4f5d8e4:"4195",f26368c4:"4760","74465ad7":"5321","7ab2d319":"5736",d1030cc9:"5742",a2a36db7:"5776",d6b41bcb:"5901",d594b08b:"5923","800ff996":"6178","4e1def24":"6237","3c9ce1b2":"6674","7d51be72":"6898","170d5aca":"7122","1331f6cd":"7336","393be207":"7414","4fdf609a":"7698",a8183bcb:"7739","360a53fd":"7851","1a4e3797":"7920","78a3e900":"8125","86a892ec":"8175","52f5885d":"8231","7daa201b":"8347","26bb3547":"8399","6204ac06":"8614","0ed19e66":"8770","7f328912":"8975",c00822a0:"9507","1be78505":"9514","5960b9f1":"9615","21a88645":"9913"}[e]||e,b.p+b.u(e)},(()=>{var e={1303:0,532:0};b.f.j=(a,d)=>{var c=b.o(e,a)?e[a]:void 0;if(0!==c)if(c)d.push(c[2]);else if(/^(1303|532)$/.test(a))e[a]=0;else{var t=new Promise(((d,t)=>c=e[a]=[d,t]));d.push(c[2]=t);var f=b.p+b.u(a),r=new Error;b.l(f,(d=>{if(b.o(e,a)&&(0!==(c=e[a])&&(e[a]=void 0),c)){var t=d&&("load"===d.type?"missing":d.type),f=d&&d.target&&d.target.src;r.message="Loading chunk "+a+" failed.\n("+t+": "+f+")",r.name="ChunkLoadError",r.type=t,r.request=f,c[1](r)}}),"chunk-"+a,a)}},b.O.j=a=>0===e[a];var a=(a,d)=>{var c,t,f=d[0],r=d[1],o=d[2],n=0;if(f.some((a=>0!==e[a]))){for(c in r)b.o(r,c)&&(b.m[c]=r[c]);if(o)var i=o(b)}for(a&&a(d);n<f.length;n++)t=f[n],b.o(e,t)&&e[t]&&e[t][0](),e[t]=0;return b.O(i)},d=self.webpackChunknpy_notebook=self.webpackChunknpy_notebook||[];d.forEach(a.bind(null,0)),d.push=a.bind(null,d.push.bind(d))})()})(); \ No newline at end of file diff --git a/docs/Acknowledgement/intro/index.html b/docs/Acknowledgement/intro/index.html new file mode 100644 index 000000000..c286efd38 --- /dev/null +++ b/docs/Acknowledgement/intro/index.html @@ -0,0 +1,18 @@ +<!doctype html> +<html lang="zh-Hans" dir="ltr" class="docs-wrapper docs-doc-page docs-version-current plugin-docs plugin-id-default docs-doc-id-Acknowledgement/intro" data-has-hydrated="false"> +<head> +<meta charset="UTF-8"> +<meta name="generator" content="Docusaurus v2.4.3"> +<title data-rh="true">鸣谢 | 培洋的笔记本📒 + + + + +
+

鸣谢

饮水思源

该网站的搭建离不开Docusaurus的支持以及对Sonder的宝藏笔记本的参考。

Disclaimer

本网站展示的所有标识和链接仅属于个人喜好不代表国家的立场或企业、组织的行为

本网站的所有信息仅供参考不构成法律或商业建议

+ + + + \ No newline at end of file diff --git "a/docs/Algorithms/STL\346\250\241\346\235\277/index.html" "b/docs/Algorithms/STL\346\250\241\346\235\277/index.html" new file mode 100644 index 000000000..b52819961 --- /dev/null +++ "b/docs/Algorithms/STL\346\250\241\346\235\277/index.html" @@ -0,0 +1,18 @@ + + + + + +STL模板 | 培洋的笔记本📒 + + + + +
+

STL模板

信息
  • vector:变长数组,倍增的思想
  • pair:存储一对数
  • string:字符串,substr(), c_str()
  • queue:push(), front(), pop()
  • priority_queue:优先队列,push(), top(), pop()
  • stack:栈,push(), top(), pop()
  • deque:双端队列
  • set, map, multiset, multimap:基于红黑树来实现,本质上是动态维护一个有序序列
  • unordered_set, unordered_map, unordered_multiset, unordered_multimap:哈希表
  • bitset:压位

vector

vector<int> a(10,3); // 定义一个长度为10的vector,初始化为3;
a.size(); // vector的size,所有容器都有
a.empty(); // 范围vector是否为空,所有容器都有
a.clear(); // 清空
a.front(); // 第一个数
a.back(); // 最后一个数
a.push_back(); // 在最后插入一个数
a.pop_back(); // 删除最后一个数
// vector支持比较运算
vector<int> a(4,3),b(3,4);
if(a > b) cout << "Yes";
else cout << "No"

pair

pair<int,int> a;
a = {20,"abc"};
a.first(); // 获取第一个元素
a.second(); // 获取第二个元素
// pair也能进行sort

string

string a = "Acwing";
a.size(); // 获取string的大小
a.empty(); // 判断是否为空
a.clear(); // 清空
a += "def";
cout << a. substr(1,2) << endl; // 第一个参数起始位置,第二个参数是字符串长度

query

query<int> a;
a.size();
a.empty();
a.push(1); // 队尾插入元素
a.front(); // 返回队头元素
a.back(); // 返回队尾元素
a.pop(); // 删除队头元素

priority_queue

// 默认是大根堆
priority_queue<int> heap;
heap.clear();
heap.size();
heap.empty();
// 如何定义一个小根堆: 1. 插入负数 2. 直接定义
heap.push(-x); // 黑科技方法
priority_queue<int,vector<int>,greater<int>> q;

stack

stack<int> s;
s.size();
s.empty();
s.push();
s.top();
s.pop();

deque

deque<int> a;
a.size();
a.empty();
a.clear();
a.front();
a.back();
a.push_back();
a.pop_back();

set/multiset

set<int> s; // 不能有重复元素
// s.begin()/end()
multiset<int> MS; // 可以有重复元素
s.insert(1); 插入一个数
s.size();
s.empty();
s.clear();
s.find(1); // 查找一个元素,如果不存在的话返回end迭代器
s.erase(1); // 输入是一个数x,输出所有x (2)输入一个迭代器,删除这个迭代器
// set 最核心的操作
s.lower_bound(); // 范围大于等于x的最小的数
s.upper_bound(); // 返回大于x的最小的数

map/multimap

#include <map>
// 和python里面的字典非常的相似
map<string,int> a;
a["2"] = 3;
a.insert({"1",1});
a.erase({"1",1});
a.find({"1",1});

unordered_set, unordered_map, unordered_multiset, unordered_multimap的操作和set或者map等的操作基本一致,唯一的区别就是不支持类似lower_bound()这样的操作 (哈希表的内部是无序的)

biset

可以省下来8位的空间

bitset<10000> s;
// 支持所有的基本操作:
// 移位操作:<< >>
// == !=
// count() 返回有多少个1
// any() 判断是否至少有一个1
// none() 判断是否全为0
// set(),把所有为置为1
// set(k,v), 将第k个变为v
// reset(), 把所有位变成0
// flip(), 把所有位取反
+ + + + \ No newline at end of file diff --git a/docs/Algorithms/intro/index.html b/docs/Algorithms/intro/index.html new file mode 100644 index 000000000..7fb157937 --- /dev/null +++ b/docs/Algorithms/intro/index.html @@ -0,0 +1,18 @@ + + + + + +Welcome | 培洋的笔记本📒 + + + + +
+

Welcome

提示

欢迎来到笔记本的算法部分

支持我!

如果可以帮到你的话就给个免费的Star吧!

+ + + + \ No newline at end of file diff --git "a/docs/Algorithms/\346\234\272\350\257\225\346\212\200\345\267\247\344\270\216STL/index.html" "b/docs/Algorithms/\346\234\272\350\257\225\346\212\200\345\267\247\344\270\216STL/index.html" new file mode 100644 index 000000000..df9160880 --- /dev/null +++ "b/docs/Algorithms/\346\234\272\350\257\225\346\212\200\345\267\247\344\270\216STL/index.html" @@ -0,0 +1,32 @@ + + + + + +机试技巧与STL | 培洋的笔记本📒 + + + + +
+

机试技巧与STL

信息

[TOC]

vs2018 快捷键

CTRL + J                  列出成员 
Ctrl+E,D 格式化全部代码
Ctrl+K,F 格式化选中的代码
CTRL + SHIFT + E 显示资源视图
F12 转到定义
CTRL + F12 转到声明
CTRL + ALT + J 对象浏览
CTRL + ALT + F1 帮助目录
CTRL + F1 动态帮助
CTRL + K, CTRL + C 注释选择的代码
CTRL + K, CTRL + U 取消对选择代码的注释
CTRL + U 转小写
CTRL + SHIFT + U 转大写
F5 运行调试
CTRL + F5 运行不调试
F10 跨过程序执行
F11 单步逐句执行

头文件

标准c库

头文件说明头文件说明头文件说明
assert.h断言相关ctype.h字符类型判断errno.h标准错误机制
float.h浮点限制limits.h整形限制locale.h本地化接口
math.h数学函数setjmp.h非本地跳转signal.h信号相关
stdarg.h可变参数处理stddef.h宏和类型定义stdio.h标准I/O
stdlib.h标准工具库string.h字符串和内存处理time.h时间相关

c++ STL

using namespace std;

头文件说明头文件说明头文件说明
algorithm通用算法deque双端队列vector向量
iterator迭代器stackmap图(键值对)
list列表string字符串set集合
queue队列bitsetbit类numeric数值算法

常用头

#include<cstdio>  
#include<cstring>
#include<algorithm>
#include<iostream>
#include<string>
#include<vector>
#include<stack>
#include<bitset>
#include<cstdlib>
#include<cmath>
#include<set>
#include<list>
#include<deque>
#include<map>
#include<queue>
using namespace std;

常用宏定义

//求最大值和最小值
#define MAX(x,y) (((x)>(y)) ? (x) : (y))
#define MIN(x,y) (((x) < (y)) ? (x) : (y))

//取余
#define mod(x) ((x)%MOD)

//for循环
#define FOR(i,f_start,f_end) for(int i=f_start;i<=f_end;++i)

//返回数组元素的个数
#define ARR_SIZE(a) (sizeof((a))/sizeof((a[0])))

//初始化数组
#define MT(x,i) memset(x,i,sizeof(x))
#define MEM(a,b) memset((a),(b),sizeof(a))

//符号重定义
#define LL long long
#define ull unsigned long long
#define pii pair<int,int>

//常见常数
#define PI acos(-1.0)
#define eps 1e-12
#define INF 0x3f3f3f3f //int最大值
const int INF_INT = 2147483647;
const ll INF_LL = 9223372036854775807LL;
const ull INF_ULL = 18446744073709551615Ull;
const ll P = 92540646808111039LL;
const ll maxn = 1e5 + 10, MOD = 1e9 + 7;
const int Move[4][2] = {-1,0,1,0,0,1,0,-1};
const int Move_[8][2] = {-1,-1,-1,0,-1,1,0,-1,0,1,1,-1,1,0,1,1};

结构体

定义

struct InitMember
{
int first;
double second;
char* third;
float four;
};

初始化

方法一:定义时赋值

struct InitMember test = {-10,3.141590,"method one",0.25};

方法二:定义后逐个赋值

struct InitMember test;

test.first = -10;
test.second = 3.141590;
test.third = "method two";
test.four = 0.25;

方法三:定义时乱序赋值(C++风格)

struct InitMember test = {
second:3.141590,
third:"method three",
first:-10,
four:0.25
};

方法四:构造函数

//定义图的定点
typedef struct Vertex {
int id,inDegree,outDegree;
vector<int> connectors; //存储节点的后续连接顶点编号
Vertex() : id(-1),inDegree(0),outDegree(0) {}
Vertex(int nid) : id(nid),inDegree(0),outDegree(0) {}
} Vertex;

//定义Graph的邻接表表示
typedef struct Graph {
vector<Vertex> vertexs; //存储定点信息
int nVertexs; //计数:邻接数
bool isDAG; //标志:是有向图吗

Graph(int n, bool isDAG) : nVertexs(n), isDAG(isDAG) { vertexs.resize(n); }
Graph() : nVertexs(1), isDAG(1) { vertexs.resize(1); }
//向图中添加边
bool addEdge(int id1, int id2) {
...
...
...
return true;
}
} Graph;

Graph g(8, false);

运算符重载

typedef struct{int id;int h;} node;
bool operator <(const node& a,const node & b){return (a.h)<(b.h);}

c++new的使用

常规

int *x = new int;       //开辟一个存放整数的存储空间,返回一个指向该存储空间的地址(即指针)
int *a = new int(100); //开辟一个存放整数的空间,并指定该整数的初值为100,返回一个指向该存储空间的地址
char *b = new char[10]; //开辟一个存放字符数组(包括10个元素)的空间,返回首元素的地址
float *p=new float (3.14159);//开辟一个存放单精度数的空间,并指定该实数的初值为//3.14159,将返回的该空间的地址赋给指针变量p

动态申请列大小固定的二维数组

//列值固定
const int MAXCOL = 3;
cin>>row;
//申请一维数据并将其转成二维数组指针
int *pp_arr = new int[nRow * MAXCOL];
int (*p)[MAXCOL] = (int(*)[MAXCOL])pp_arr;
//此时p[i][j]就可正常使用

动态申请大小不固定的二维数组


cin>>row>>col;
int **p = new int*[row];
for (int i = 0; i < row; i ++)
{
p[i] = new int[col];
}

常用STL

参考:

https://blog.csdn.net/f_zyj/article/details/51594851
+https://download.csdn.net/download/f_zyj/9988653

简述

STL底层说明

C++ STL 的实现:

1.vector      底层数据结构为数组 ,支持快速随机访问

2.list 底层数据结构为双向链表,支持快速增删

3.deque 底层数据结构为一个中央控制器和多个缓冲区,详细见STL源码剖析P146,支持首尾(中间不能)快速增删,也支持随机访问
deque是一个双端队列(double-ended queue),也是在堆中保存内容的.它的保存形式如下:
[堆1] --> [堆2] -->[堆3] --> ...
每个堆保存好几个元素,然后堆和堆之间有指针指向,看起来像是list和vector的结合品.

4.stack 底层一般用list或deque实现,封闭头部即可,不用vector的原因应该是容量大小有限制,扩容耗时

5.queue 底层一般用list或deque实现,封闭头部即可,不用vector的原因应该是容量大小有限制,扩容耗时

(stack和queue其实是适配器,而不叫容器,因为是对容器的再封装)

6.priority_queue 的底层数据结构一般为vector为底层容器,堆heap为处理规则来管理底层容器实现

7.set 底层数据结构为红黑树,有序,不重复

8.multiset 底层数据结构为红黑树,有序,可重复

9.map 底层数据结构为红黑树,有序,不重复

10.multimap 底层数据结构为红黑树,有序,可重复

11.hash_set 底层数据结构为hash表,无序,不重复

12.hash_multiset 底层数据结构为hash表,无序,可重复

13.hash_map 底层数据结构为hash表,无序,不重复

14.hash_multimap 底层数据结构为hash表,无序,可重复

CCF 编译出错原因: 不允许C++STL容器嵌套(需要满足相应的格式)

就是要在后面的“>”之间,必须得有一个空格,如果有多层,那每层都得有一个空格。

map<string,list<string> > user;

algorithm

头文件:lgorithm

函数参数,返回值以及具体的使用方法请自行去头文件找定义!!!

不修改内容的序列操作

函数说明
adjacent_find查找两个相邻(Adjacent)的等价(Identical)元素
all_ofC++11检测在给定范围中是否所有元素都满足给定的条件
any_ofC++11检测在给定范围中是否存在元素满足给定条件
count返回值等价于给定值的元素的个数
count_if返回值满足给定条件的元素的个数
equal返回两个范围是否相等
find返回第一个值等价于给定值的元素
find_end查找范围A中与范围B等价的子范围最后出现的位置
find_first_of查找范围A中第一个与范围B中任一元素等价的元素的位置
find_if返回第一个值满足给定条件的元素
find_if_notC++11返回第一个值不满足给定条件的元素
for_each对范围中的每个元素调用指定函数
mismatch返回两个范围中第一个元素不等价的位置
none_ofC++11检测在给定范围中是否不存在元素满足给定的条件
search在范围A中查找第一个与范围B等价的子范围的位置
search_n在给定范围中查找第一个连续n个元素都等价于给定值的子范围的位置

修改内容的序列操作

函数说明
copy将一个范围中的元素拷贝到新的位置处
copy_backward将一个范围中的元素按逆序拷贝到新的位置处
copy_ifC++11将一个范围中满足给定条件的元素拷贝到新的位置处
copy_nC++11拷贝 n 个元素到新的位置处
fill将一个范围的元素赋值为给定值
fill_n将某个位置开始的 n 个元素赋值为给定值
generate将一个函数的执行结果保存到指定范围的元素中,用于批量赋值范围中的元素
generate_n将一个函数的执行结果保存到指定位置开始的 n 个元素中
iter_swap交换两个迭代器(Iterator)指向的元素
moveC++11将一个范围中的元素移动到新的位置处
move_backwardC++11将一个范围中的元素按逆序移动到新的位置处
random_shuffle随机打乱指定范围中的元素的位置
remove将一个范围中值等价于给定值的元素删除
remove_if将一个范围中值满足给定条件的元素删除
remove_copy拷贝一个范围的元素,将其中值等价于给定值的元素删除
remove_copy_if拷贝一个范围的元素,将其中值满足给定条件的元素删除
replace将一个范围中值等价于给定值的元素赋值为新的值
replace_copy拷贝一个范围的元素,将其中值等价于给定值的元素赋值为新的值
replace_copy_if拷贝一个范围的元素,将其中值满足给定条件的元素赋值为新的值
replace_if将一个范围中值满足给定条件的元素赋值为新的值
reverse反转排序指定范围中的元素
reverse_copy拷贝指定范围的反转排序结果
rotate循环移动指定范围中的元素
rotate_copy拷贝指定范围的循环移动结果
shuffleC++11用指定的随机数引擎随机打乱指定范围中的元素的位置
swap交换两个对象的值
swap_ranges交换两个范围的元素
transform对指定范围中的每个元素调用某个函数以改变元素的值
unique删除指定范围中的所有连续重复元素,仅仅留下每组等值元素中的第一个元素。
unique_copy拷贝指定范围的唯一化(参考上述的 unique)结果

划分操作

函数说明
is_partitionedC++11检测某个范围是否按指定谓词(Predicate)划分过
partition将某个范围划分为两组
partition_copyC++11拷贝指定范围的划分结果
partition_pointC++11返回被划分范围的划分点
stable_partition稳定划分,两组元素各维持相对顺序

排序操作

函数说明
is_sortedC++11检测指定范围是否已排序
is_sorted_untilC++11返回最大已排序子范围
nth_element 部份排序指定范围中的元素,使得范围按给定位置处的元素划分
partial_sort部份排序
partial_sort_copy拷贝部分排序的结果
sort排序
stable_sort稳定排序

二分法查找操作

函数说明
binary_search判断范围中是否存在值等价于给定值的元素
equal_range返回范围中值等于给定值的元素组成的子范围
lower_bound返回指向范围中第一个值大于或等于给定值的元素的迭代器
upper_bound返回指向范围中第一个值大于给定值的元素的迭代器

集合操作

函数说明
includes判断一个集合是否是另一个集合的子集
inplace_merge就绪合并
merge 合并
set_difference获得两个集合的差集
set_intersection获得两个集合的交集
set_symmetric_difference获得两个集合的对称差
set_union获得两个集合的并集

堆操作

函数说明
is_heap检测给定范围是否满足堆结构
is_heap_untilC++11检测给定范围中满足堆结构的最大子范围
make_heap用给定范围构造出一个堆
pop_heap从一个堆中删除最大的元素
push_heap向堆中增加一个元素
sort_heap将满足堆结构的范围排序

最大/最小操作

函数说明
is_permutationC++11判断一个序列是否是另一个序列的一种排序
lexicographical_compare比较两个序列的字典序
max返回两个元素中值最大的元素
max_element返回给定范围中值最大的元素
min返回两个元素中值最小的元素
min_element返回给定范围中值最小的元素
minmaxC++11返回两个元素中值最大及最小的元素
minmax_elementC++11返回给定范围中值最大及最小的元素
next_permutation返回给定范围中的元素组成的下一个按字典序的排列
prev_permutation返回给定范围中的元素组成的上一个按字典序的排列

vector

头文件:vector

在STL的vector头文件中定义了vector(向量容器模版类),vector容器以连续数组的方式存储元素序列,可以将vector看作是以顺序结构实现的线性表。当我们在程序中需要使用动态数组时,vector将会是理想的选择,vector可以在使用过程中动态地增长存储空间。 +vector模版类需要两个模版参数,第一个参数是存储元素的数据类型,第二个参数是存储分配器的类型,其中第二个参数是可选的,如果不给出第二个参数,将使用默认的分配器

下面给出几个常用的定义vector向量对象的方法示例:


vector<int> s;
// 定义一个空的vector对象,存储的是int类型的元素
vector<int> s(n);
// 定义一个含有n个int元素的vector对象
vector<int> s(first, last);
// 定义一个vector对象,并从由迭代器first和last定义的序列[first, last)中复制初值

vector的基本操作:


s[i] // 直接以下标方式访问容器中的元素
s.front() // 返回首元素
s.back() // 返回尾元素
s.push_back(x) // 向表尾插入元素x
s.size() // 返回表长
s.empty() // 表为空时,返回真,否则返回假
s.pop_back() // 删除表尾元素
s.begin() // 返回指向首元素的随机存取迭代器
s.end() // 返回指向尾元素的下一个位置的随机存取迭代器
s.insert(it, val) // 向迭代器it指向的元素前插入新元素val
s.insert(it, n, val)// 向迭代器it指向的元素前插入n个新元素val
s.insert(it, first, last)
// 将由迭代器first和last所指定的序列[first, last)插入到迭代器it指向的元素前面
s.erase(it) // 删除由迭代器it所指向的元素
s.erase(first, last)// 删除由迭代器first和last所指定的序列[first, last)
s.reserve(n) // 预分配缓冲空间,使存储空间至少可容纳n个元素
s.resize(n) // 改变序列长度,超出的元素将会全部被删除,如果序列需要扩展(原空间小于n),元素默认值将填满扩展出的空间
s.resize(n, val) // 改变序列长度,超出的元素将会全部被删除,如果序列需要扩展(原空间小于n),val将填满扩展出的空间
s.clear() // 删除容器中的所有元素
s.swap(v) // 将s与另一个vector对象进行交换
s.assign(first, last)
// 将序列替换成由迭代器first和last所指定的序列[first, last),[first, last)不能是原序列中的一部分

// 要注意的是,resize操作和clear操作都是对表的有效元素进行的操作,但并不一定会改变缓冲空间的大小
// 另外,vector还有其他的一些操作,如反转、取反等,不再一一列举
// vector上还定义了序列之间的比较操作运算符(>、<、>=、<=、==、!=),可以按照字典序比较两个序列。
// 还是来看一些示例代码吧……

/*
* 输入个数不定的一组整数,再将这组整数按倒序输出
*/

#include <iostream>
#include <vector>

using namespace std;

int main()
{
vector<int> L;
int x;
while(cin >> x)
{
L.push_back(x);
}
for (int i = L.size() - 1; i >= 0; i--)
{
cout << L[i] << " ";
}
cout << endl;
return 0;
}

list

头文件:list

下面给出几个常用的定义list对象的方法示例:


list<int>a{1,2,3}
list<int>a(n) //声明一个n个元素的列表,每个元素都是0
list<int>a(n, m) //声明一个n个元素的列表,每个元素都是m
list<int>a(first, last) //声明一个列表,其元素的初始值来源于由区间所指定的序列中的元素,first和last是迭代器

list的基本操作:


a.begin() // 返回指向首元素的随机存取迭代器
a.end() // 返回指向尾元素的下一个位置的随机存取迭代器
a.push_front(x) // 向表头插入元素x
a.push_back(x) // 向表尾插入元素x
a.pop_back() // 删除表尾元素
a.pop_front() // 删除表头元素
a.size() // 返回表长
a.empty() // 表为空时,返回真,否则返回假
a.resize(n) // 改变序列长度,超出的元素将会全部被删除,如果序列需要扩展(原空间小于n),元素默认值将填满扩展出的空间
a.resize(n, val) // 改变序列长度,超出的元素将会全部被删除,如果序列需要扩展(原空间小于n),val将填满扩展出的空间
a.clear() // 删除容器中的所有元素
a.front() // 返回首元素
a.back() // 返回尾元素
a.swap(v) // 将a与另一个list对象进行交换
a.merge(b) // 调用结束后b变为空,a中元素包含原来a和b的元素
a.insert(it, val) // 向迭代器it指向的元素前插入新元素val
a.insert(it, n, val)// 向迭代器it指向的元素前插入n个新元素val
a.insert(it, first, last)
// 将由迭代器first和last所指定的序列[first, last)插入到迭代器it指向的元素前面
a.erase(it) // 删除由迭代器it所指向的元素
a.erase(first, last)// 删除由迭代器first和last所指定的序列[first, last)
a.remove(x) // 删除了a中所有值为x的元素
a.assign(n, val) // 将a中的所有元素替换成n个val元素
a.assign(b.begin(), b.end())
//将a变成b

string

头文件:string

string是STL的字符串类型,通常用来表示字符串。而在使用string之前,字符串通常是用char*表示的。
+string和char*的区别
+string是一个类, char*是一个指向字符的指针。
+string封装了char*,管理这个字符串,是一个char*型的容器。也就是说string是一个容器,里面元素的数据类型是char*
+string不用考虑内存释放和越界。
+string管理char*所分配的内存。每一次string的复制,取值都由string类负责维护,不用担心复制越界和取值越界等。 string提供了一系列的字符串操作函数
+查找find,拷贝copy,删除erase,替换replace,插入insert.

构造和析构函数:

表达式效果
string s生成一个空字符串
string s(str)copy构造函数,生成一个str的复制品
string s(str,idx)将string内始于位置idx的部分当作字符串s的初值
string s(str,idx,len)将string内始于位置idx且长度最多为len的部分当作字符串s的初值
string s(cstr)以C-string字符串cstr作为字符串s的初值
string s(cstr,len)以C-string字符串cstr的前len个字符作为字符串s的初值
string s(num,c)生成一个字符串,包含num个字符c
string s(beg,end)以区间[beg,end]内所有字符作为字符串s的初值

操作函数:

操作函数效果
=,assign()赋以新值
swap()交换两个字符串的内容
+=, append(),push_back()添加字符
insert()插入字符
erase()删除字符
clear()移除全部字符
resize()改变字符数量
replace()替换字符
+串联字符串
==,!=,<,<=,>,>=,compare()比较字符串内容
size(),length()返回字符数量,等效函数
max_size()返回字符的最大可能个数
empty()判断字符串是否为空
capacity()返回重新分配之前的字符容量
reserve()保留一定量内存以容纳一定数量的字符
[ ],at()存取单一字符
>>,getline()从stream中读取某值
<<将某值写入stream
copy()将内容复制为一个C-string
c_str()将内容以C-string形式返回
data()将内容以字符数组形式返回
substr()返回某个子字符串
begin(),end()提供正常的迭代器支持
rbegin(),rend()提供逆向迭代器支持

pair

头文件:utility

STL的utility头文件中描述了一个看上去非常简单的模版类pair,用来表示一个二元组或元素对,并提供了按照字典序对元素对进行大小比较运算符模版函数。 +Example,想要定义一个对象表示一个平面坐标点,则可以:

pair<double, double> p;
cin >> p.first >> p.second;

pair模版类需要两个参数:首元素的数据类型和尾元素的数据类型。pair模版类对象有两个成员:first和second,分别表示首元素和尾元素。 +在其中已经定义了pair上的六个比较运算符:<、>、<=、>=、==、!=,其规则是先比较first,first相等时再比较second,这符合大多数应用的逻辑。当然,也可以通过重载这几个运算符来重新指定自己的比较逻辑。 +除了直接定义一个pair对象外,如果需要即时生成一个pair对象,也可以调用在其中定义的一个模版函数:make_pair。make_pair需要两个参数,分别为元素对的首元素和尾元素。

map

头文件:map

在STL的头文件中map中定义了模版类map和multimap,用有序二叉树表存储类型为pair<const Key, T>的元素对序列。序列中的元素以const Key部分作为标识,map中所有元素的Key值必须是唯一的,multimap则允许有重复的Key值。

可以将map看作是由Key标识元素的元素集合,这类容器也被称为“关联容器”,可以通过一个Key值来快速决定一个元素,因此非常适合于需要按照Key值查找元素的容器。 +map模版类需要四个模版参数,第一个是键值类型,第二个是元素类型,第三个是比较算子,第四个是分配器类型。其中键值类型和元素类型是必要的。

定义map对象的代码示例:

map<string, int> m;

map的基本操作:

/*  向map中插入元素  */
m[key] = value; // [key]操作是map很有特色的操作,如果在map中存在键值为key的元素对, 则返回该元素对的值域部分,否则将会创建一个键值为key的元素对,值域为默认值。所以可以用该操作向map中插入元素对或修改已经存在的元素对的值域部分。
m.insert(make_pair(key, value)); // 也可以直接调用insert方法插入元素对,insert操作会返回一个pair,当map中没有与key相匹配的键值时,其first是指向插入元素对的迭代器,其second为true;若map中已经存在与key相等的键值时,其first是指向该元素对的迭代器,second为false。

/* 查找元素 */
int i = m[key]; // 要注意的是,当与该键值相匹配的元素对不存在时,会创建键值为key(当另一个元素是整形时,m[key]=0)的元素对。
map<string, int>::iterator it = m.find(key); // 如果map中存在与key相匹配的键值时,find操作将返回指向该元素对的迭代器,否则,返回的迭代器等于map的end()(参见vector中提到的begin()和end()操作)。

/* 删除元素 */
m.erase(key); // 删除与指定key键值相匹配的元素对,并返回被删除的元素的个数。
m.erase(it); // 删除由迭代器it所指定的元素对,并返回指向下一个元素对的迭代器。

/* 其他操作 */
m.size(); // 返回元素个数
m.empty(); // 判断是否为空
m.clear(); // 清空所有元素

stack

头文件:stack

stack模版类的定义在stack头文件中。 +stack模版类需要两个模版参数,一个是元素类型,另一个是容器类型,但是只有元素类型是必要的,在不指定容器类型时,默认容器的类型为deque。

定义stack对象的示例代码如下:

stack<int> s;
stack<string> ss;

stack的基本操作有:

s.push(x);  //  入栈
s.pop(); // 出栈
s.top(); // 访问栈顶
s.empty(); // 当栈空时,返回true
s.size(); // 访问栈中元素个数

queue

头文件:queue

queue模版类的定义在queue头文件中。 +queue与stack相似,queue模版类也需要两个模版参数,一个元素类型,一个容器类型,元素类型时必须的,容器类型时可选的,默认为deque类型。

定义queue对象的示例代码必须如下:

queue<int> q;
queue<double> qq;

queue的基本操作:

q.push(x);  //  入队列
q.pop(); // 出队列
q.front(); // 访问队首元素
q.back(); // 访问队尾元素
q.empty(); // 判断队列是否为空
q.size(); // 访问队列中的元素个数

set

头文件:set

set是与集合相关的容器,STL为我们提供了set的实现,在编程题中遇见集合问题直接调用是十分方便的。

定义set对象的示例代码如下:

set<int> s;
set<double> ss;

set的基本操作:

s.begin()       //  返回指向第一个元素的迭代器
s.clear() // 清除所有元素
s.count() // 返回某个值元素的个数
s.empty() // 如果集合为空,返回true(真)
s.end() // 返回指向最后一个元素之后的迭代器,不是最后一个元素
s.equal_range() // 返回集合中与给定值相等的上下限的两个迭代器
s.erase() // 删除集合中的元素
s.find() // 返回一个指向被查找到元素的迭代器
s.get_allocator() // 返回集合的分配器
s.insert() // 在集合中插入元素
s.lower_bound() // 返回指向大于(或等于)某值的第一个元素的迭代器
s.key_comp() // 返回一个用于元素间值比较的函数
s.max_size() // 返回集合能容纳的元素的最大限值
s.rbegin() // 返回指向集合中最后一个元素的反向迭代器
s.rend() // 返回指向集合中第一个元素的反向迭代器
s.size() // 集合中元素的数目
s.swap() // 交换两个集合变量
s.upper_bound() // 返回大于某个值元素的迭代器
s.value_comp() // 返回一个用于比较元素间的值的函数

multiset

头文件:set

在set头文件中,还定义了另一个非常实用的模版类multiset(多重集合)。多重集合与集合的区别在于集合中不能存在相同元素,而多重集合中可以存在。

定义multiset对象的示例代码如下:

multiset<int> s;
multiset<double> ss;

multiset和set的基本操作相似,需要注意的是,集合的count()能返回0(无)或者1(有),而多重集合是有多少个返回多少个。

bitset

头文件:bitset

在 STLSTL 的头文件中 bitset中定义了模版类 bitsetbitset,用来方便地管理一系列的 bitbit 位的类。bitsetbitset 除了可以访问指定下标的 bitbit 位以外,还可以把它们作为一个整数来进行某些统计。

bitsetbitset 模板类需要一个模版参数,用来明确指定含有多少位。

定义 bitsetbitset 对象的示例代码:

const int MAXN = 32;
bitset<MAXN> bt; // bt 包括 MAXN 位,下标 0 ~ MAXN - 1,默认初始化为 0
bitset<MAXN> bt1(0xf); // 0xf 表示十六进制数 f,对应二进制 1111,将 bt1 低 4 位初始化为 1
bitset<MAXN> bt2(012); // 012 表示八进制数 12,对应二进制 1010,即将 bt2 低 4 位初始化为 1010
bitset<MAXN> bt3("1010"); // 将 bt3 低 4 位初始化为 1010
bitset<MAXN> bt4(s, pos, n);// 将 01 字符串 s 的 pos 位开始的 n 位初始化 bt4

bitsetbitset 基本操作:

bt.any()        //  bt 中是否存在置为 1 的二进制位?
bt.none() // bt 中不存在置为 1 的二进制位吗?
bt.count() // bt 中置为 1 的二进制位的个数
bt.size() // bt 中二进制位的个数
bt[pos] // 访问 bt 中在 pos 处的二进制位
bt.test(pos) // bt 中在 pos 处的二进制位是否为 1
bt.set() // 把 bt 中所有二进制位都置为 1
bt.set(pos) // 把 bt 中在 pos 处的二进制位置为 1
bt.reset() // 把 bt 中所有二进制位都置为 0
bt.reset(pos) // 把 bt 中在pos处的二进制位置为0
bt.flip() // 把 bt 中所有二进制位逐位取反
bt.flip(pos) // 把 bt 中在 pos 处的二进制位取反
bt[pos].flip() // 同上
bt.to_ulong() // 用 bt 中同样的二进制位返回一个 unsigned long 值
os << bt // 把 bt 中的位集输出到 os 流

图模板

不带出入度的最简模板

#include <iostream>
#include <vector>
#include <set>

using namespace std;

#define MAX(a, b) ((a) > (b) ? (a) : (b) )

//定义图的定点
typedef struct Vertex {
int id;
vector<int> connectors; //存储节点的后续连接顶点编号
Vertex() : id(-1) {}
Vertex(int nid) : id(nid) {}
} Vertex;

//定义Graph的邻接表表示
typedef struct Graph {
vector<Vertex> vertexs; //存储定点信息
int nVertexs; //计数:邻接数
bool isDAG; //标志:是有向图吗

Graph(int n, bool isDAG) : nVertexs(n), isDAG(isDAG) { vertexs.resize(n); }

//向图中添加边
bool addEdge(int id1, int id2) {
if (!(MAX(id1, id2) < vertexs.size())) return false;

if (isDAG) {
vertexs[id1].connectors.push_back(id2);
}
else {
vertexs[id1].connectors.push_back(id2);
vertexs[id2].connectors.push_back(id1);
}
return true;
}

//广度优先搜索
vector<int> BFS(int start) {
set<int> visited;
vector<int> g, rst;
g.push_back(start);
visited.insert(start);
while(g.size() > 0) {
int id = g[0];
g.erase(g.begin());
rst.push_back(id);
for(int i = 0; i < vertexs[id].connectors.size(); i++) {
int id1 = vertexs[id].connectors[i];
if (visited.count(id1) == 0) {
g.push_back(id1);
visited.insert(id1);
}
}
}
return rst;
}

//深度优先搜索
vector<int> DFS(int start) {
set<int> visited;
vector<int> g, rst;
g.push_back(start);
//cout << "push " << start << " ";
visited.insert(start);
rst.push_back(start);
bool found;
while(g.size() > 0) {
int id = g[g.size()-1];
found = false;
for(int i = 0; i < vertexs[id].connectors.size(); i++) {
int id1 = vertexs[id].connectors[i];
if (visited.count(id1) == 0) {
g.push_back(id1);
rst.push_back(id1);
visited.insert(id1);
//cout << "push " << id1 << " ";
found = true;
break;
}
}
if (!found) {
int id2 = g[g.size()-1];
rst.push_back(-1 * id2);
//cout << "pop " << id2 << " ";
g.pop_back();
}
}
//cout << endl;
return rst;
}
} Graph;

int main() {
Graph g(8, false);
g.addEdge(0, 1);
g.addEdge(0, 3);
g.addEdge(1, 2);
g.addEdge(3, 4);
g.addEdge(3, 5);
g.addEdge(4, 5);
g.addEdge(4, 6);
g.addEdge(5, 6);
g.addEdge(5, 7);
g.addEdge(6, 7);
vector<int> bv = g.BFS(0);
cout << "宽度优先搜索节点顺序:";
for(int j = 0; j < bv.size(); j++)
cout << bv[j] << " ";
cout << endl;

cout << "深度优先搜索节点顺序:";
Graph g1(6, false);
g1.addEdge(0, 1);
g1.addEdge(0, 4);
g1.addEdge(0, 5);
g1.addEdge(1, 5);
g1.addEdge(4, 5);
g1.addEdge(5, 2);
g1.addEdge(5, 3);
g1.addEdge(2, 3);
vector<int> route = g1.DFS(0);
for(int i = 0; i < route.size(); i++)
cout << route[i] << " ";
cout << endl;

char ch;
cin >> ch;
return 0;
}


带出入度的 (2019推免试题)

#include <algorithm>
#include <iostream>
#include <vector>
#include <queue>
#define MAX(a, b) ((a) > (b) ? (a) : (b) )
using namespace std;
int n,m;
vector<int> inDegreelist,outDegreelist;

//定义图的定点
typedef struct Vertex {
int id,inDegree,outDegree;
vector<int> connectors; //存储节点的后续连接顶点编号
Vertex() : id(-1),inDegree(0),outDegree(0) {}
Vertex(int nid) : id(nid),inDegree(0),outDegree(0) {}
} Vertex;

//定义Graph的邻接表表示
typedef struct Graph {
vector<Vertex> vertexs; //存储定点信息
int nVertexs; //计数:邻接数
bool isDAG; //标志:是有向图吗

Graph(int n, bool isDAG) : nVertexs(n), isDAG(isDAG) { vertexs.resize(n); }
Graph() : nVertexs(1), isDAG(1) { vertexs.resize(1); }
//向图中添加边
bool addEdge(int id1, int id2) {
if (!(MAX(id1, id2) < vertexs.size())) return false;

if (isDAG) {
vertexs[id1].connectors.push_back(id2);
vertexs[id1].outDegree++;
vertexs[id2].inDegree++;
}
else {
vertexs[id1].connectors.push_back(id2);
vertexs[id2].connectors.push_back(id1);

vertexs[id1].outDegree++;
vertexs[id1].inDegree++;

vertexs[id2].outDegree++;
vertexs[id2].inDegree++;

}
return true;
}
} Graph;

Graph g;

void init(){
cin>>n>>m;
g=Graph(n, true);
int src,dst;
while(m--){
cin>>src>>dst;
g.addEdge(src,dst);
}
vector<Vertex>::iterator it = g.vertexs.begin();
while(it!=g.vertexs.end()){
inDegreelist.push_back(it->inDegree);
outDegreelist.push_back(it->outDegree);
it++;
}
}
int countin(int n){
return count(inDegreelist.begin(),inDegreelist.end(),n);
}
int countout(int n){
return count(outDegreelist.begin(),outDegreelist.end(),n);
}

bool Is_List(){
//有一个inDegree为0的头和一个outDegree为0的尾,且其余节点入度与出度都为1;
return (countin(0)==1)&&(countout(0)==1)&&(countin(1)==n-1)&&(countout(1)==n-1);
}

bool Is_Tree(){
//有一个inDegree为0的头且其余节点inDegree均为1,且不是链表;
return (countin(0)==1)&&(countin(1)==n-1);
}

bool topologicalSort(){//拓扑排序判断有环无环
int num=0;//记录加入拓扑排序的顶点数
queue<int> q;
for(int i=0;i<n;i++){
if(inDegreelist[i]==0){
q.push(i);//将所有入度为0的顶点入队
}
}

while(!q.empty()){
int u=q.front();//取队首顶点u
q.pop();
for(int i=0;i<g.vertexs[u].connectors.size();i++){
int v=g.vertexs[u].connectors[i];//u的后继节点v
inDegreelist[v]--;//v的入度减1
if(inDegreelist[v]==0){//顶点v的入度减为0则入队
q.push(v);
}
}
g.vertexs[u].connectors.clear();//清空u的所有出边
num++;//加入拓扑排序的顶点数加1
}
if(num==n) return true;//加入拓扑排序的顶点为n,则拓扑排序成功,图无环
else return false;//否则拓扑排序失败,图有环
}


int main(){
init();
if(n==0||m==0){
cout<<"error"<<endl;
}
if(Is_List()){
cout<<"list"<<endl;
}

else if(Is_Tree()){
cout<<"tree"<<endl;
}
else if(topologicalSort()){
cout<<"no ring"<<endl;
}
else{
cout<<"have ring"<<endl;
}
return 0;
}

图算法:找出u到v的所有路径-邻接表

#include<stdio.h>
#include<stdlib.h>

#ifndef BASE
#define BASE
#define TRUE 1
#define FALSE 0
#define OK 1
#define ERROR 0
#define INFEASIBLE -1
#define OVERFLOW -2
typedef int Status;
typedef int bool;
#endif

#define VertexType char //点类型
#define VRType int //边类型
#define maxSize 100
void Visit(VertexType e) {
printf("%c", e);
}

#define MAX_VERTEX_NUM 20
typedef enum{DG, UDG} GraphKind;
typedef struct ArcNode{
int adjV; //边指向的顶点
VRType weight; //权重
struct ArcNode *next;
}ArcNode; //边
typedef struct VNode{
VertexType data;
ArcNode *firstarc;
}VNode, AdjList[MAX_VERTEX_NUM]; //顶点
typedef struct{
GraphKind kind;
int vernum,arcnum;
AdjList vers;
}ALGraph;


/*------------------------
|7.14 创建有向图的邻接表|
------------------------*/
Status InitGraph_AL(ALGraph *pG) { //初始化
int i;
pG->arcnum = 0;
pG->vernum = 0;
for (i=0; i<MAX_VERTEX_NUM; ++i)
pG->vers[i].firstarc = NULL; //VC++6.0中指针初始化为0xcccccccc
return OK;
}
int LocateVex_AL(ALGraph G, VertexType e) { //定位值为e的元素下标
int i;
for (i=0; i<G.vernum; ++i) {
if (G.vers[i].data == e) {
return i;
}
}
return -1;
}
Status CreateDG_AL(ALGraph *pG) { //创建有向图的邻接表
//输入规则:顶点数目->弧的数目->各顶点的信息->各条弧的信息
int i,a,b;
char tmp[MAX_VERTEX_NUM];
char h,t;
ArcNode *p, *q;

InitGraph_AL(pG); //VC++6.0中指针初始化为0xcccccccc,如果不将指针初始化为NULL,会出错
//图的类型
pG->kind = DG;
//顶点数目
scanf("%d", &i); if (i<0) return ERROR;
pG->vernum = i;
//弧的数目
scanf("%d", &i); if (i<0) return ERROR;
pG->arcnum = i;
//各顶点信息
scanf("%s", tmp);
for (i=0; i<pG->vernum; ++i) pG->vers[i].data=tmp[i];
//弧的信息
for (i=0; i<pG->arcnum; ++i) {
scanf("%s", tmp);
h = tmp[0]; t = tmp[2];
a = LocateVex_AL(*pG, h);
b = LocateVex_AL(*pG, t);
if (a<0 || b<0) return ERROR;
p = (ArcNode *)malloc(sizeof(ArcNode)); if (!p) exit(OVERFLOW);
p->adjV=b;p->next=NULL;
if (pG->vers[a].firstarc) { //已经有边了
for (q = pG->vers[a].firstarc; q->next; q=q->next) ; //找到最后一条
q->next = p;
} else { //第一条边
pG->vers[a].firstarc = p;
}
}
return OK;
}

/*----------------------------------------------------------------
|7.28 有向图-从u-v的所有简单路径 |
----------------------------------------------------------------*/
int visit[MAX_VERTEX_NUM]; //前面定义了
VertexType paths[maxSize][MAX_VERTEX_NUM]; //存放路径
int path[MAX_VERTEX_NUM]; //路径
int pathnum=0; //当前是第几条路径
void FindAllPath(ALGraph G, int u,int v,int k) { //u->v当前是第k个位置
int i;
ArcNode *p;
visit[u]=1; //走到了u
path[k]=u; //添加到路径->下标位置为k的结点是u(第k+1个是u)
if (u==v) { //找到了
for (i=0; i<=k; i++) {//复制到paths
paths[pathnum][i] = G.vers[path[i]].data;
}
paths[pathnum][i]='\0'; //结束符
pathnum++; //找下一条路径
} else {
//u的邻边开始找
for (p=G.vers[u].firstarc; p; p=p->next) {
if (visit[p->adjV]==0)
FindAllPath(G, p->adjV, v, k+1); //去这个邻接点找
}
}
// 回溯到上一个结点
// 注意:回溯应该写在外面-->也就是不管有没有找到都要回溯
visit[u]=0;
path[k]=0;
}


int main() {
/*7.28
6
11
ABCDEF
B,A
B,D
C,B
C,F
D,C
D,E
D,F
E,A
F,A
F,B
F,E
B->A
A->B
D->A
*/
int i,j;
int cnt;
ALGraph G;
char tmp[20];

CreateDG_AL(&G);

while (1) {
scanf("%s", tmp); //A->B
i = LocateVex_AL(G, tmp[0]);
j = LocateVex_AL(G, tmp[3]);
for (cnt=0; cnt<MAX_VERTEX_NUM; cnt++) visit[cnt]=0;
pathnum=0;
printf("7.28 输出所有 %c 到 %c 的路径\n", tmp[0], tmp[3]);
FindAllPath(G, i, j, 0);
if (pathnum==0) {
printf("\t- 走不通\n");
}
for (i=0; i<pathnum; i++) {
printf("\t%d %s\n", i+1, paths[i]);
}
}
return 0;
}

树模板

注释版

#include<bits/stdc++.h>
#include<cmath>

#define mem(a,b) memset(a,b,sizeof a);

using namespace std;

typedef long long ll;

const int maxn=50;
int mid[maxn],po[maxn],pr[maxn];
int first;

struct node
{
int l,r;
}T[maxn];

// 中序+先序=>二叉树
int mid_pr_build(int la,int ra,int lb,int rb) // la,ra:表示中序遍历 lb,rb:表示先序遍历
{
    // 这里不能等于,因为假设:len==1,则la==ra,直接返回,但是实际上是有一个 rt 的,却没被建立
if(la>ra) return 0;
int rt=pr[lb]; // 因为先序遍历第一个是根节点
int p1=la,p2;

while(mid[p1]!=rt) p1++; // 在中序遍历中找到根节点
p2=p1-la;
T[rt].l=mid_pr_build(la,p1-1,lb+1,lb+p2); // 左子树(锁定左子树范围的下标)
T[rt].r=mid_pr_build(p1+1,ra,lb+p2+1,rb); // 右子树(锁定右子树范围的下标)

return rt;
}

// 中序+后序=>二叉树
int mid_po_build(int la,int ra,int lb,int rb) // la,ra:表示中序遍历 lb,rb:表示后序遍历
{
if(la>ra) return 0;
int rt=po[rb]; // 因为后序遍历最后一个是根节点
int p1=la,p2;

while(mid[p1]!=rt) p1++; // 在中序遍历中找到根节点
p2=p1-la;
T[rt].l=mid_po_build(la,p1-1,lb,lb+p2-1); // 左子树(锁定左子树范围的下标)
T[rt].r=mid_po_build(p1+1,ra,lb+p2,rb-1); // 右子树(锁定右子树范围的下标)

return rt;
}

// 求树高
int getHeight(int rt)
{
    if(rt==0) return 0;
    return 1+max(getHeight(T[rt].l),getHeight(T[rt].r));
}

// 层序遍历
void bfs(int rt)
{
queue<int> q;
vector<int> v;
q.push(rt);

while(!q.empty())
{
int w=q.front();
q.pop();
v.push_back(w);
if(T[w].l!=0) q.push(T[w].l);
if(T[w].r!=0) q.push(T[w].r);
}

int len=v.size();
for(int i=0;i<len;i++)
printf("%d%c",v[i],i==len-1?'\n':' '); // 推荐这种写法,简洁
}

// 先序遍历
void preT(int rt)
{
if(rt==0) return;
printf(first?first=0,"%d":" %d",rt);
preT(T[rt].l);
preT(T[rt].r);
}

// 中序遍历
void midT(int rt)
{
if(rt==0) return;
midT(T[rt].l);
printf(first?first=0,"%d":" %d",rt);
midT(T[rt].r);
}

// 后序遍历
void postT(int rt)
{
if(rt==0) return;
postT(T[rt].l);
postT(T[rt].r);
printf(first?first=0,"%d":" %d",rt);
}

int main()
{
int n;
while(~scanf("%d",&n))
{
first=1;
for(int i=0;i<n;i++) scanf("%d",&po[i]); // 后序结点
// for(int i=0;i<n;i++) scanf("%d",&pr[i]); // 先序结点
for(int i=0;i<n;i++) scanf("%d",&mid[i]); // 中序结点

int rt=mid_po_build(0,n-1,0,n-1); // 中+后,返回根节点
// int rt=mid_pr_build(0,n-1,0,n-1); // 中+先,返回根节点

bfs(rt); // 层序遍历
// preT(rt); // 先序遍历
// puts("");
// postT(rt); // 后序遍历
// puts("");
// midT(rt); // 中序遍历
// puts("");
}

return 0;
}

简化版(Val As Index,若数据不在1~N内,则可能越界)

#include<bits/stdc++.h>
#include<cmath>

#define mem(a,b) memset(a,b,sizeof a);

using namespace std;

typedef long long ll;

const int maxn=50;
int mid[maxn],po[maxn],pr[maxn];
int first;

struct node
{
int l,r;
}T[maxn];

int mid_pr_build(int la,int ra,int lb,int rb)
{
if(la>ra) return 0;
int rt=pr[lb];
int p1=la,p2;

while(mid[p1]!=rt) p1++;
p2=p1-la;
T[rt].l=mid_pr_build(la,p1-1,lb+1,lb+p2);
T[rt].r=mid_pr_build(p1+1,ra,lb+p2+1,rb);

return rt;
}

int mid_po_build(int la,int ra,int lb,int rb)
{
if(la>ra) return 0;
int rt=po[rb];
int p1=la,p2;

while(mid[p1]!=rt) p1++;
p2=p1-la;
T[rt].l=mid_po_build(la,p1-1,lb,lb+p2-1);
T[rt].r=mid_po_build(p1+1,ra,lb+p2,rb-1);

return rt;
}

int getHeight(int rt)
{
    if(rt==0) return 0;
    return 1+max(getHeight(T[rt].l),getHeight(T[rt].r));
}

void bfs(int rt)
{
queue<int> q;
vector<int> v;
q.push(rt);

while(!q.empty())
{
int w=q.front();
q.pop();
v.push_back(w);
if(T[w].l!=0) q.push(T[w].l);
if(T[w].r!=0) q.push(T[w].r);
}

int len=v.size();
for(int i=0;i<len;i++)
printf("%d%c",v[i],i==len-1?'\n':' ');
}

void preT(int rt)
{
if(rt==0) return;
printf(first?first=0,"%d":" %d",rt);
preT(T[rt].l);
preT(T[rt].r);
}

void midT(int rt)
{
if(rt==0) return;
midT(T[rt].l);
printf(first?first=0,"%d":" %d",rt);
midT(T[rt].r);
}

void postT(int rt)
{
if(rt==0) return;
postT(T[rt].l);
postT(T[rt].r);
printf(first?first=0,"%d":" %d",rt);
}

int main()
{
int n;
while(~scanf("%d",&n))
{
first=1;
for(int i=0;i<n;i++) scanf("%d",&po[i]);
// for(int i=0;i<n;i++) scanf("%d",&pr[i]);
for(int i=0;i<n;i++) scanf("%d",&mid[i]);

int rt=mid_po_build(0,n-1,0,n-1);
// int rt=mid_pr_build(0,n-1,0,n-1);

bfs(rt);
// preT(rt);
// postT(rt);
// midT(rt);
}

return 0;
}

简化版(Val Not As Index,可以存任意的 Val)

#include<bits/stdc++.h>
#include<cmath>

#define mem(a,b) memset(a,b,sizeof a)
#define ssclr(ss) ss.clear(), ss.str("")
#define INF 0x3f3f3f3f
#define MOD 1000000007

using namespace std;

typedef long long ll;

const int maxn=5e4+1000;

int f;
int pre[maxn], in[maxn];

struct node
{
int l,r,d;
}T[maxn];

int create(int l1,int r1,int l2,int r2) // in pre
{
if(l2>r2) return -1;
int rt=l2;
int p1=l1,p2;

while(in[p1]!=pre[rt]) p1++;
p2=p1-l1;

T[rt].d=pre[rt];
T[rt].l=create(l1,p1-1,l2+1,l2+p2);
T[rt].r=create(p1+1,r1,l2+p2+1,r2);

return rt;
}

void postT(int rt)
{
if(rt==-1 || !f) return;
postT(T[rt].l);
postT(T[rt].r);
if(f) f=0, printf("%d\n",T[rt].d);
}

int main()
{
int n;
scanf("%d",&n);
for(int i=0;i<n;i++) scanf("%d",&pre[i]);
for(int i=0;i<n;i++) scanf("%d",&in[i]);
int rt=create(0,n-1,0,n-1);
f=1, postT(rt);

return 0;
}
+ + + + \ No newline at end of file diff --git "a/docs/Algorithms/\351\242\230\350\247\243/\344\270\200\347\273\264\345\211\215\347\274\200\345\222\214\357\274\210\345\210\267\345\207\272\344\270\200\351\201\223\345\242\231\357\274\211/index.html" "b/docs/Algorithms/\351\242\230\350\247\243/\344\270\200\347\273\264\345\211\215\347\274\200\345\222\214\357\274\210\345\210\267\345\207\272\344\270\200\351\201\223\345\242\231\357\274\211/index.html" new file mode 100644 index 000000000..8b3990277 --- /dev/null +++ "b/docs/Algorithms/\351\242\230\350\247\243/\344\270\200\347\273\264\345\211\215\347\274\200\345\222\214\357\274\210\345\210\267\345\207\272\344\270\200\351\201\223\345\242\231\357\274\211/index.html" @@ -0,0 +1,18 @@ + + + + + +一维前缀和(刷出一道墙) | 培洋的笔记本📒 + + + + +
+

一维前缀和(刷出一道墙)

提示

在一面很长的墙壁上,工人们用不同的油漆去刷墙,然而可能有些地方刷过以后觉得不好看,他们会重新刷一下。有些部分因为重复刷了很多次覆盖了很多层油漆,小诺很好奇那些地方被刷过多少种颜色的油漆。

输入描述:

若干行输入,每行两个数字B[i],E[i](0<=B[i]<=E[i]<=200000)表示这次刷的墙壁是哪一段
(假设每次刷的时候油漆颜色都和之前的不同),以0 0结束
又若干行输入,每行两个数字begin[i],end[i](0<=begin[i]<=end[i]<=200000)表示小诺询问的段,
以0 0结束

输出描述:

对于每个小诺的询问输出(end[i]-begin[i]+1)行,表示对应询问段的每个点被多少种颜色的油漆覆盖过。

参考代码

#include <bits/stdc++.h>

using namespace std;

int main()
{
vector<int> colors(200001, 0);

int B, E;
while (scanf("%d %d", &B, &E))
{
if (B == 0 && E == 0)
{
break;
}
colors[B]++; // 刷墙起点标记
colors[E + 1]--; // 刷墙终点标记
}

// 计算前缀和
for (int i = 1; i < colors.size(); i++)
{
colors[i] += colors[i - 1];
}

int begin, end;
while (scanf("%d %d", &begin, &end))
{
if (begin == 0 && end == 0)
{
break;
}
for (int i = begin; i <= end; i++)
{
printf("%d\n", colors[i]);
}
}

return 0;
}

题解

使用前缀和思想简化时间复杂度,设计前缀和数组,使输出的数组中元素的值代表其对应节点被刷的次数。

首先初始化前缀和数组,使每一个元素等于为0。

该题的巧妙之处就在于:对于每一个输入的索引B与E,B作为开始刷的节点索引令前缀和数组中对应元素的值+1+1,E+1作为刷墙结束的下一个节点的索引令对应的值1-1。这样在所有输入结束后的计算前缀和阶段,在每一个值为[1,1)[1, -1)的索引区间中的元素值都会加1,而对于某次刷漆终点E的下一个索引为E+1的元素值由于1-1而抵消影响(自身值为1-1加上之前元素所累积的1而归零),此时数组中元素的值才代表其对应节点被刷的次数。

关于超时,可以在函数中加入以下代码消除流操作的缓冲区,并使用"\n"代替endl。

ios::sync_with_stdio(false);
+ + + + \ No newline at end of file diff --git "a/docs/Algorithms/\351\242\230\350\247\243/\345\217\215\345\272\217\350\276\223\345\207\272/index.html" "b/docs/Algorithms/\351\242\230\350\247\243/\345\217\215\345\272\217\350\276\223\345\207\272/index.html" new file mode 100644 index 000000000..b26382bac --- /dev/null +++ "b/docs/Algorithms/\351\242\230\350\247\243/\345\217\215\345\272\217\350\276\223\345\207\272/index.html" @@ -0,0 +1,18 @@ + + + + + +反序输出 | 培洋的笔记本📒 + + + + +
+

反序输出

提示

设N是一个四位数,它的9倍恰好是其反序数(例如:1234的反序数是4321),求N的值

参考代码

#include <bits/stdc++.h>

using namespace std;

int main() {
for (int i = 1000; i <= 9999; i++) {
int x = i * 9, y = 0;
while (x > 0) {
y = y * 10 + x % 10;
x /= 10;
}
if (i == y) {
cout << i << endl;
}
}
return 0;
}

题解

反序输出可以分为两部分:拆分以及反序拼接

  • 拆分:n位整数求余10可以得到最后一位,再除以10可以得到除去上述最后一位之后的n-1位整数,循环得到每一个最后一位,完成拆分

    while (x > 0) {
    y = y * 10 + x % 10; // 拼接与拆分
    x /= 10;
    }
  • 拼接:将s中的数字拼接成整数

    int sum = 0;
    for (int i = 0; i < s.size(); i++) {
    sum = sum * 10 + s[i];
    }
+ + + + \ No newline at end of file diff --git "a/docs/Algorithms/\351\242\230\350\247\243/\346\216\222\345\210\227\347\273\204\345\220\210\357\274\210\346\261\20230\347\232\204\345\200\215\346\225\260\357\274\211/index.html" "b/docs/Algorithms/\351\242\230\350\247\243/\346\216\222\345\210\227\347\273\204\345\220\210\357\274\210\346\261\20230\347\232\204\345\200\215\346\225\260\357\274\211/index.html" new file mode 100644 index 000000000..8d925b0f5 --- /dev/null +++ "b/docs/Algorithms/\351\242\230\350\247\243/\346\216\222\345\210\227\347\273\204\345\220\210\357\274\210\346\261\20230\347\232\204\345\200\215\346\225\260\357\274\211/index.html" @@ -0,0 +1,19 @@ + + + + + +排列组合(求30的倍数) | 培洋的笔记本📒 + + + + +
+

排列组合(求30的倍数)

提示

输入一个数,比如201,让数字随意组合,是否能组合出30的倍数,如果能够组合成30的倍数,就输出最大的倍数,不能就输出-1

例如输入201可以随意组合成

201,210,012,021,102,120等数字

其中120,210都是30的倍数,由于要找最大的,所以答案是210

输入样例:201 +输出样例:210

参考代码

#include <bits/stdc++.h>

using namespace std;

int main() {
string s;
cin >> s;
int maxx = 0, flag = 0;
sort(s.begin(), s.end());
do {
int now = 0;
for (int i = 0; i < s.size(); i++) {
now = now * 10 + s[i] - '0';
}
if (now % 30 == 0) {
flag = 1;
maxx = max(maxx, now);
}
} while (next_permutation(s.begin(), s.end()));
if (flag == 1) {
cout << maxx << endl;
return 0;
}
else {
cout << -1 << endl;
}
}

题解

使用C++ STL提供的排列组合模版

首先将代排列组合的字符串或数组进行排序

sort(list.begin(), list.end());

使用排列组合模版

do {
something();
} while (next_permutation(list.begin(), list.end()));

此时,在每一个do循环中,list按从小到大的顺序进行排列组合遍历

+ + + + \ No newline at end of file diff --git a/docs/Curriculum/intro/index.html b/docs/Curriculum/intro/index.html new file mode 100644 index 000000000..05589416e --- /dev/null +++ b/docs/Curriculum/intro/index.html @@ -0,0 +1,18 @@ + + + + + +Welcome | 培洋的笔记本📒 + + + + +
+

Welcome

提示

欢迎来到笔记本的课程学习部分

支持我!

如果可以帮到你的话就给个免费的Star吧!

+ + + + \ No newline at end of file diff --git "a/docs/Curriculum/\346\223\215\344\275\234\347\263\273\347\273\237\350\257\276\350\256\276/Environment-Configuration/index.html" "b/docs/Curriculum/\346\223\215\344\275\234\347\263\273\347\273\237\350\257\276\350\256\276/Environment-Configuration/index.html" new file mode 100644 index 000000000..4124cdb8d --- /dev/null +++ "b/docs/Curriculum/\346\223\215\344\275\234\347\263\273\347\273\237\350\257\276\350\256\276/Environment-Configuration/index.html" @@ -0,0 +1,18 @@ + + + + + +Linux系统下GeekOS的环境配置 | 培洋的笔记本📒 + + + + +
+

Linux系统下GeekOS的环境配置

一、必须要知道的原理

1. GeekOS:

GeekOS是一个基于x86体系结构的微操作系统内核. 由美国马理兰大学的教师开发, 主要用于操作系统课程设计的教育. 出于教学目的, 这个系统内核设计简单, 却又兼备实用性, 它可以运行在真正的X86 PC硬件平台.

在下载好GeekOS后, 在geekos-version/src/目录下会存在project0-project6这7个文件夹, 分别代表GeekOS设计的7个学习任务.

在环境搭建完成之后, 我们进行的每一个项目的代码编写几乎都在geekos-version/src/projecti/src/geekos/文件夹下, 每一个项目的编译都在geekos-version/src/projecti/build文件夹下进行, 即要在终端中通过cd进入该目录, 再执行make dependmake命令.

2. bochs:

bochs是一个x86硬件平台的模拟器. GeekOS运行依托于bochs.

在安装好Linux操作系统后需要安装bochs以及nasm, 以完成GeekOS环境的搭建.

3. 二者之间的关系

GeekOS的开发环境可分为两部分, 一部分是编译环境, 一部分是运行环境.

在编译过程中, 使用Linux自带的编译环境以及编译命令对特定的GeekOS project进行编译即可. 首先在终端中通过cd命令进入geekos-version/src/projecti/build目录, 再执行make depend和make命令. 编译后生成bochs的镜像文件fd.img, 这是bochs运行所必须的文件,也是GeekOS运行环境的前置配置.

二、安装与配置

安装其实非常简单, 这里主要花篇幅介绍安装后解决报错的配置.

1. 安装

需要下载GeekOS Files, 安装bochs, nasm等.

GeekOS直接下载压缩包, 解压即可.

arch系用户通过以下命令即可完成bochs和nasm的安装.

yay -S bochs nasm

其他发行版的安装方法这里不再赘述, 可选择从群文件里下载源文件并编译安装, 师兄师姐也在群文件里给了一些教程指导.

2. 配置

完成安装后, 我们就可以开始对project0中的代码进行完善了, 并在geekos-version/src/project0/build目录下执行make depend以及make命令, 目的是编译project0的代码, 生成bochs的镜像文件fd.img以构建GeekOS的运行环境.

但很多报错就是在make这一步产生的, 因此在安装完成后还需要进行配置.

配置分为两部分, 一个是对GeekOS中makefile的修改, 另一部分是对bochs的配置文件的修改.

GeekOS中makefile的配置

综合网上很多师兄师姐的博客,这三个错误应该是每个人都会遇到的,所以当你不确定自己能不能运行时,请全部完成这三个步骤.

  • 问题: warnings being treated as errors

    解决方案:

    修改geekos-version/src/projecti/build目录下的makefie文件(由于每个project下都存在一个对应的makefile文件, 所以在每个项目编译前都要修改一次)

    // 修改第149行:
    CC_GENERAL_OPTS := $(GENERAL_OPTS) -Werror
    // 修改后:
    CC_GENERAL_OPTS := $(GENERAL_OPTS)
  • 问题: X86_64与i386输出不兼容

    解决方案:

    修改geekos-version/src/projecti/build目录下的makefie文件

    # Target C compiler.  gcc 2.95.2 or later should work. 100行
    TARGET_CC := $(TARGET_CC_PREFIX)gcc -m32

    # Host C compiler. This is used to compile programs to execute on
    # the host platform, not the target (x86) platform. On x86/ELF
    # systems, such as Linux and FreeBSD, it can generally be the same
    # as the target C compiler. 106行
    HOST_CC := gcc -m32

    # Target linker. GNU ld is probably to only one that will work.109行
    TARGET_LD := $(TARGET_CC_PREFIX)ld -m elf_i386
  • 问题: undefined reference to '__stack_chk_fail'

    解决方案:

    修改geekos-version/src/projecti/build目录下的makefie文件

    # Flags used for all C source files
    // 修改前:148行
    GENERAL_OPTS := -O -Wall $(EXTRA_C_OPTS)
    // 修改后:
    GENERAL_OPTS := -O -Wall -fno-stack-protector $(EXTRA_C_OPTS)

bochs配置文件的修改

在geekos-version/src/projecti/build目录下创建.bochsrc文件

# An example .bochsrc file.
# You will need to edit these lines to reflect your system.
vgaromimage: file=/usr/local/share/bochs/VGABIOS-lgpl-latest
# 请根据自己的实际安装路径更改
romimage: file=/usr/local/share/bochs/BIOS-bochs-latest
# 请根据自己的实际安装路径更改
megs: 8
boot: a
floppya: 1_44=fd.img, status=inserted
#floppya: 1_44=fd_aug.img, status=inserted
log: ./bochs.out
# keyboard_serial_delay: 200
# vga_update_interval: 300000
mouse: enabled=0
private_colormap: enabled=0
# i440fxsupport: enabled=0
# Uncomment this to write all bochs debugging messages to
# bochs.out. This produces a lot of output, but can be very
# useful for debugging the kernel.
#debug: action=report

到此为止, 所有的配置工作已经完成, 可以正常的进行下一步的代码完善.

如果需要验证自己是否配置成功, 可以参照下一篇博客GeekOS project 0的实现, 在本篇博客中会有完整的C语言代码编写以及编译、使用bochs执行的过程.

+ + + + \ No newline at end of file diff --git "a/docs/Curriculum/\346\223\215\344\275\234\347\263\273\347\273\237\350\257\276\350\256\276/GeekOS-project-0/index.html" "b/docs/Curriculum/\346\223\215\344\275\234\347\263\273\347\273\237\350\257\276\350\256\276/GeekOS-project-0/index.html" new file mode 100644 index 000000000..16813f0ca --- /dev/null +++ "b/docs/Curriculum/\346\223\215\344\275\234\347\263\273\347\273\237\350\257\276\350\256\276/GeekOS-project-0/index.html" @@ -0,0 +1,18 @@ + + + + + +GeekOS project 0的实现 | 培洋的笔记本📒 + + + + +
+

GeekOS project 0的实现

在上一篇博客中我们完成了GeekOS环境的配置,下面我们来验证环境配置的成功与否以及project 0的实现。

1. 编写C语言代码

编写geekos-version/src/projecti/src/geekos/main.c文件

编写函数project0实现检测键盘输入Ctrl+d结束线程。

void project0(){
Print("To Exit hit Ctrl + d.\n");
Keycode keycode;
while(1)
{
if(Read_Key(&keycode))
{
if(!((keycode & KEY_SPECIAL_FLAG) || (keycode & KEY_RELEASE_FLAG)))// 不是特殊键或者弹起
{
int asciiCode = keycode & 0xff;//d
if((keycode & KEY_CTRL_FLAG)==KEY_CTRL_FLAG && asciiCode=='d')//ctrl+d
{
Print("\n---------Adios!---------\n");
# 这里需要注意素质
Exit(1);
}else
{
Print("%c",(asciiCode=='\r') ? '\n' : asciiCode);
}
}
}
}
}

在main函数中添加以下代码,实现自定义函数的调用,创建线程。

    struct Kernel_Thread *thread;
thread = Start_Kernel_Thread(&project0,0,PRIORITY_NORMAL,false);

总体代码

/*
* GeekOS C code entry point
* Copyright (c) 2001,2003,2004 David H. Hovemeyer <daveho@cs.umd.edu>
* Copyright (c) 2003, Jeffrey K. Hollingsworth <hollings@cs.umd.edu>
* Copyright (c) 2004, Iulian Neamtiu <neamtiu@cs.umd.edu>
* $Revision: 1.51 $
*
* This is free software. You are permitted to use,
* redistribute, and modify it as specified in the file "COPYING".
*/

#include <geekos/bootinfo.h>
#include <geekos/string.h>
#include <geekos/screen.h>
#include <geekos/mem.h>
#include <geekos/crc32.h>
#include <geekos/tss.h>
#include <geekos/int.h>
#include <geekos/kthread.h>
#include <geekos/trap.h>
#include <geekos/timer.h>
#include <geekos/keyboard.h>

void project0(){
Print("To Exit hit Ctrl + d.\n");
Keycode keycode;
while(1)
{
if(Read_Key(&keycode))
{
if(!((keycode & KEY_SPECIAL_FLAG) || (keycode & KEY_RELEASE_FLAG)))// 不是特殊键或者弹起
{
int asciiCode = keycode & 0xff;//d
if((keycode & KEY_CTRL_FLAG)==KEY_CTRL_FLAG && asciiCode=='d')//ctrl+d
{
Print("\n---------Adios! Motherfucker!---------\n");
Exit(1);
}else
{
Print("%c",(asciiCode=='\r') ? '\n' : asciiCode);
}
}
}
}
}


/*
* Kernel C code entry point.
* Initializes kernel subsystems, mounts filesystems,
* and spawns init process.
*/
void Main(struct Boot_Info* bootInfo)
{
Init_BSS();
Init_Screen();
Init_Mem(bootInfo);
Init_CRC32();
Init_TSS();
Init_Interrupts();
Init_Scheduler();
Init_Traps();
Init_Timer();
Init_Keyboard();

Set_Current_Attr(ATTRIB(BLACK, GREEN|BRIGHT));
Print("Welcome to GeekOS!\n");
Set_Current_Attr(ATTRIB(BLACK, GRAY));

// TODO("Start a kernel thread to echo pressed keys and print counts");

struct Kernel_Thread *thread;
thread = Start_Kernel_Thread(&project0,0,PRIORITY_NORMAL,false);

/* Now this thread is done. */
Exit(0);
}

2. 使用Linux的编译系统对C语言代码进行编译

每一个项目的编译都在geekos-version/src/projecti/build文件夹下进行,即要在终端中通过cd进入该目录。

执行

make depend
make

此时,该目录下会生成bochs.out、depend.mak以及fd.img文件,bochs.out文件是日志输出文件,depend.mak是编译中间生成的文件,最终生成的fd.img是最重要的GeekOS映像文件,有了它才能使用bochs运行GeekOS操作系统。感恩它!

目录下的文件应该是这样的结构:

下面就可以使用bochs运行GeekOS系统了,可以说bochs的运行依赖两个文件,一个是配置文件.bochsrc,一个是映像文件fd.img,映像文件的加载路径需要在.bochsrc文件中定义,在环境配置的博客中已经介绍过了。这里再贴一下内容。

# An example .bochsrc file.
# You will need to edit these lines to reflect your system.
vgaromimage: file=/usr/local/share/bochs/VGABIOS-lgpl-latest
# 请根据自己的实际安装路径更改
romimage: file=/usr/local/share/bochs/BIOS-bochs-latest
# 请根据自己的实际安装路径更改
megs: 8
boot: a
floppya: 1_44=fd.img, status=inserted
#floppya: 1_44=fd_aug.img, status=inserted
log: ./bochs.out
# keyboard_serial_delay: 200
# vga_update_interval: 300000
mouse: enabled=0
private_colormap: enabled=0
# i440fxsupport: enabled=0
# Uncomment this to write all bochs debugging messages to
# bochs.out. This produces a lot of output, but can be very
# useful for debugging the kernel.
#debug: action=report

在这个目录下打开终端,执行

bochs

选择6,按下回车

可能会出现黑屏情况,这是因为进入了调试模式,终端正在等待命令,在终端输入

c

即可完成bochs的正式启动,最终的效果

+ + + + \ No newline at end of file diff --git "a/docs/Curriculum/\346\225\260\345\255\227\345\233\276\345\203\217\345\244\204\347\220\206/Note/index.html" "b/docs/Curriculum/\346\225\260\345\255\227\345\233\276\345\203\217\345\244\204\347\220\206/Note/index.html" new file mode 100644 index 000000000..4a2dae2dc --- /dev/null +++ "b/docs/Curriculum/\346\225\260\345\255\227\345\233\276\345\203\217\345\244\204\347\220\206/Note/index.html" @@ -0,0 +1,60 @@ + + + + + +数字图像处理复习笔记 | 培洋的笔记本📒 + + + + +
+

数字图像处理复习笔记

提示

本笔记使用的教材是陈天华所著、清华大学出版社的《数字图像处理及应用:使用MATLAB分析与实现》。

Take me to church, I'll worship like a dog at the shrine of your lies.

I'll tell you my sins, and you can sharpen your knife.

Offer me that deathless death, good god, let me give you my life.

第2章 数字图像处理基础

图像的采样与量化

为了从模拟图像产生数字图像,需要进行采样与量化,即对模拟图像在空间(x,y)(x, y)方向上以及亮度函数f(x,y)f(x, y)进行离散化处理。

  • 采样:

    模拟图像在空间(x,y)(x, y)上的离散化称为采样。

    若在x和y方向上均进行等间距的采样,则称为均匀采样。

    采样点的多少以及采样的间隔直接影响着图像的质量。

  • 量化:

    模拟图像经过采样后,在时间和空间上被离散化为像素,但采样所得的像素点的像素值依然是连续量。量化过程就是以离散的灰度值信息代替连续的模拟量灰度信息的过程,是一对多的过程。

    量化可以分为线性量化以及非线性量化。

灰度级一般以2的整数次幂表示,如大多图像为彩色RGB图像,256个灰度级,位深度为8(28=2562^8=256),则对于分辨率为256×256的图像来说,需要256×256×3×8位表示,即每一个像素实际上使用24位表示。

距离度量

4邻域N4(p)N_4(p)即该像素上下左右的四个点,8邻域N8(p)N_8(p),对角邻域ND(p)N_D(p)

image-20231204174356477

像素之间的距离度量必须满足三种关系:

  1. 非负性
  2. 对称性
  3. 三角不等式

三种距离度量:

已知,点pp的坐标为(x,y)(x, y),点qq的坐标为(s,t)(s,t)

  1. 欧氏距离:
    De(p,q)=(xs)2+(yt)2(1)D_e(p,q)=\sqrt{(x-s)^2+(y-t)^2}\tag{1}
  2. 城市距离
    D4(p,q)=xs+yt(2)D_4(p,q)=\vert x-s\vert+\vert y-t\vert \tag{2}
  3. 棋盘距离
    D8(p,q)=max(xs,yt)(3)D_8(p,q)=max(\vert x-s\vert,\vert y-t\vert)\tag{3}

图像质量评价

  • MSE越小代表待测图像与参考图像越接近,均方误差公式如下:

    MSE=1MNx=1My=1N[f(x,y)g(x,y)]2(4)MSE=\frac{1}{MN}\sum_{x=1}^{M}\sum_{y=1}^{N}[f(x,y)-g(x,y)]^2\tag{4}
  • SNR:参考图像像素值的平方均值与均方误差的比值的对数的10倍。越大代表图像质量越好

  • PSNR:峰值信噪比,图像所允许的最大像素值的平方与均方误差的比值的对数的10倍,这是信噪比的改良版本,消除了图像自身像素值对评价指标的影响。越大代表图像质量越好

  • SSIM为结构相似系数,越大代表图像质量越好

image-20231204175437763

灰度直方图

image-20231204182548156

第3章 图像变换

傅里叶变换

可以使用傅里叶变换的函数需要满足狄利克莱条件(Dirichlet Condition):

  1. 具有有限个间断点
  2. 具有有限个极值点
  3. 绝对可积

傅里叶变换的特性:

image-20231205153724162

信息

傅里叶频谱图的特征:

  • 频率分布:傅里叶频谱图展示了图像在不同频率下的强度分布。高频部分对应图像中的边缘和细节,低频部分对应图像中的整体结构和大致轮廓。
  • 能量分布:图像中不同频率的能量在频谱图中以不同强度的幅度呈现。高幅度的频率分量通常标示着图像中强烈的变化或边缘。
  • 平移不变性:傅里叶变换具有平移不变性,这意味着在频域中图像的平移对应于幅度谱中相位的改变而不影响幅度谱本身。

连续傅里叶变换

一维连续傅里叶变换

F(u)=+f(x)ej2πuxdx(5)F(u)=\int_{-\infty}^{+\infty}f(x)e^{-j2\pi ux}dx\tag{5}

一维连续傅里叶逆变换

f(x)=F(u)ej2πuxdu(6)f(x)=\int_{-\infty}^{\infty}F(u)e^{j2\pi ux}du\tag{6}

二维连续傅里叶变换

F(u,v)=f(x,y)ej2π(ux+vy)dxdy(7)F(u,v)=\int_{-\infty}^{\infty}\int_{-\infty}^{\infty}f(x,y)e^{-j2\pi (ux+vy)}dxdy\tag{7}

二维连续傅里叶逆变换

f(x,y)=F(u,v)ej2π(ux+vy)dudv(8)f(x,y)=\int_{-\infty}^{\infty}\int_{-\infty}^{\infty}F(u,v)e^{j2\pi (ux+vy)}dudv\tag{8}

离散傅里叶变换

一维离散傅里叶变换

F(u)=x=0N1f(x)ej2πuxN(9)F(u)=\sum_{x=0}^{N-1}f(x)e^{-j\frac{2\pi ux}{N}}\tag{9}

一维离散傅里叶逆变换

f(x)=1Nu=0N1F(u)ej2πuxN(10)f(x)=\frac{1}{N}\sum_{u=0}^{N-1}F(u)e^{j\frac{2\pi ux}{N}}\tag{10}

二维离散傅里叶变换

F(u,v)=x=0M1y=0N1f(x,y)ej2π(uxM+vyN)(11)F(u,v)=\sum_{x=0}^{M-1}\sum_{y=0}^{N-1}f(x,y)e^{-j2\pi (\frac{ux}{M}+\frac{vy}{N})}\tag{11}

二维离散傅里叶逆变换

f(x,y)=1MNu=0M1v=0N1F(u,v)ej2π(uxM+vyN)(12)f(x,y)=\frac{1}{MN}\sum_{u=0}^{M-1}\sum_{v=0}^{N-1}F(u,v)e^{j2\pi (\frac{ux}{M}+\frac{vy}{N})}\tag{12}

第4章 图像处理的基本运算

点运算

下图展示了点运算的主要应用:对比度拉伸

image-20231206232333992

主要应用:

  1. 对比度拉伸
  2. 光度学标定
  3. 显示标定
  4. 轮廓线
  5. 裁剪

比例缩放

使用齐次坐标对图像进行比例缩放。

全比例缩放是指x方向和y方向使用相同的比例系数。

当对图像进行放大时,会产生之前没有的像素,此时需要使用插值来解决。

灰度级插值

最近邻法插值

image-20231204211821512

双线性插值(Bilinear)

img

例题:

image-20231207094211248

image-20231204214449115

第5章 图像空域增强

img

直接灰度变换

线性变换

是指将输入图像的灰度值的动态范围按线性关系变换至指定范围或灰度的整个动态范围。

  • 按比例线性变换
    • 均匀线性变换
    • 限幅线性变换
  • 分段线性拉伸

非线性变换

  • 对数拉伸可以拉伸低亮度区域,压缩高亮度区域。
  • 指数拉伸可以拉伸高亮度区域,压缩低亮度区域。

注意,上述的拉伸是指新的图像在该灰度范围内分布的更均匀,即出现的灰度级更多压缩的意义是指新的图像在该灰度范围内分布的更狭窄,即出现的灰度级更少。

例题:

image-20231204221520210

答:该图像存在较亮的问题,灰度直方图分布在较高的区域。从直接灰度变换增强法的角度,我们可以采用指数函数变换,对高灰度区进行扩展。

提示

分析:该图像中没有低灰度的像素,全部集中在高灰度部分,因此使用指数函数变换将原来的集中的高灰度区域进行拉伸,扩展其灰度分布的范围,从而起到增强效果。

直方图灰度变换

直方图均衡化

  • 目的:

    将一非均匀灰度概率密度分布的图像,通过某种灰度变换,将其变成一幅具有均匀灰度概率密度分布的目的图像。

  • 步骤:

    1. 根据原始图像计算原始灰度密度分布函数rkr_k

    2. 计算变换函数,即累积密度分布函数sks_k

    3. 计算均衡化后的灰度级s(k)s(k),即使用以下公式进行均衡化映射:

      s(k)=ceil(sk×L1)(13)s(k)=\mathbf{ceil}(s_k\times L-1)\tag{13}

      其中,LL是原直方图中灰度级数。

    4. 画出最终均衡化后的直方图

例题:

image-20231204220310925

直方图规定化

  • 目的:

    调整原始图像的直方图使其符合某一规定的直方图的要求。

  • 思想:

    将原始图像和规定图像进行均衡化后,二者的灰度概率密度分布相同,进行对应映射即可。

  • 步骤:

    1. 对原始图像进行均衡化,得到映射后的s(k)s(k)
    2. 对规定的图像直方图进行均衡化,得到映射后的z(k)z(k)
    3. 由于s(k)s(k)z(k)z(k)都是归一化后的均匀分布,使用二者之间的就近原则将s(k)s(k)对应到给出的规定直方图的灰度级
    4. 画出规定化后的直方图
  • 例题:

    image-20231207100622160

    image-20231207100636525

    image-20231207100655656

    此时已经获得了原始图像均衡化后的灰度级与目标规定化输出的图像的灰度级之间的映射关系,最后一步按照rkr_k画出目标规定化输出的图像直方图即可。

空域滤波增强

空域滤波可以根据作用分为平滑滤波以及锐化滤波。

平滑滤波

信息

噪声的特点:

  • 随机性
  • 叠加性
  • 噪声与图像之间具有相关性
线性平滑滤波
  1. 邻域平均滤波
  2. 加权平均滤波
  3. 高斯滤波
非线性平滑滤波
  1. 中值滤波
  2. 最大值滤波
  3. 最小值滤波

锐化滤波

锐化滤波消除或减弱图像的低频分量从而增强图像中物体的边缘轮廓信息,使得除边缘以外的像素点的灰度值趋向于零。

  1. 梯度法
  2. 拉普拉斯算子,非线性滤波
  3. 定向滤波:检测特定方向边缘的滤波,通常在模板上表现为在该特定方向上模板值较大

下面的表格展示了水平方向的定向锐化模板

-1-1-1
222
-1-1-1

下面的表格展示了对角方向的定向锐化模板

-12-1
-12-1
-12-1

第6章 图像频域增强

图像从空域变换到频域后,低频分量对应图像中灰度值变化缓慢的区域,可能是图像的背景高频分量表示图像中灰度值变化迅速的区域,可能是图像的噪声或物体的边缘

在图像频谱(经过中心偏移的)中,中心代表低频信息,四周代表高频信息

低通滤波

抑制、衰减高频分量,保留低频分量。

理想低通滤波器(ILPF)

提示

ILPF means Ideal Low Pass Filter.

image-20231205161518110

H(u,v)={1D(u,v)D00D(u,v)>D0(14)H(u,v)=\begin{cases}1&D(u,v)\leq D_0\\ 0&D(u,v)>D_0\end{cases}\tag{14}
D(u,v)=u2+v2(15)D(u,v)=\sqrt{u^2+v^2}\tag{15}

在截止频率D0D_0处垂直截止,通过频率和截止频率在D0D_0处具有不连续性,通带和阻带之间没有过渡,会产生无限的振铃效应。

巴特沃斯低通滤波器(BLPF)

通带与阻带之间过度平坦,通过频率和截止频率之间没有明显的不连续性,不会出现振铃效应

H(u,v)=11+(21)[D(u,v)D0]2n(16)H(u,v)=\frac{1}{1+(\sqrt{2}-1)[\frac{D(u,v)}{D_0}]^{2n}}\tag{16}

其中,取H(u,v)H(u,v)下降到最大值的0.707时的D(u,v)D(u,v)作为截止频率D0D_0

即当D(u,v)D(u,v)达到截止频率时,D(u,v)D0=1\frac{D(u,v)}{D_0}=1,此时H(u,v)=0.707H(u,v)=0.707

指数低通滤波器(ELPF)

一般情况下,取H(u,v)H(u,v)下降到最大值的1/2时的D(u,v)D(u,v)作为截止频率。

H(u,v)=e[D(u,v)D0]n(17)H(u,v)=e^{-[\frac{D(u,v)}{D_0}]^n}\tag{17}

截止频率和通过频率之间具有更光滑的过渡,没有振铃现象。且指数低通滤波器比巴特沃斯低通滤波器衰减更快,处理后的图像更模糊

梯形低通滤波器(TLPF)

由于在D0D_0尾部包含高频分量D1D_1,处理后图像的清晰度较理想低通滤波器有所改善,但会出现振铃效应

H(u,v)={1D(u,v)<D0D(u,v)D1D0D1D0D(u,v)D10D(u,v)>D1(18)H(u,v)=\begin{cases}1&D(u,v)<D_0\\ \\ \frac{D(u,v)-D_1}{D_0-D_1}&D_0\leq D(u,v)\leq D_1\\ \\ 0&D(u,v)>D_1\end{cases}\tag{18}

高通滤波

抑制低频分量,保留高频分量。

理想高通滤波器(IHPF)

H(u,v)={1D(u,v)>D00D(u,v)D0(19)H(u,v)=\begin{cases}1&D(u,v)>D_0\\ 0&D(u,v)\leq D_0\end{cases}\tag{19}

性质与理想低通滤波器一样,垂直截断,具有无限振铃效应。

巴特沃斯高通滤波器(BHPF)

H(u,v)=11+(21)[D0D(u,v)]2n(20)H(u,v)=\frac{1}{1+(\sqrt{2}-1)[\frac{D_0}{D(u,v)}]^{2n}}\tag{20}

通常采取H(u,v)H(u,v)下降到最大值的0.707时的D(u,v)D(u,v)作为截止频率,没有振铃效应

指数高通滤波器(EHPF)

H(u,v)=e[D0D(u,v)]n(21)H(u,v)=e^{-[\frac{D_0}{D(u,v)}]^n}\tag{21}

梯形高通滤波器(THPF)

H(u,v)={1D(u,v)>D0D(u,v)D1D0D1D1D(u,v)D00D(u,v)<D1(22)H(u,v)=\begin{cases}1&D(u,v)>D_0\\ \\ \frac{D(u,v)-D_1}{D_0-D_1}&D_1\leq D(u,v)\leq D_0\\ \\ 0&D(u,v)<D_1\end{cases}\tag{22}

带通和带阻滤波

带通滤波

顾名思义,带通滤波就是允许某一特定频率的信号通过,而衰减频率范围之外的信号。

理想带通滤波的传递函数为:

H(u,v)={0D(u,v)<D0w21D0w2D(u,v)D0+w20D(u,v)D0+w2(23)H(u,v)=\begin{cases}0&D(u,v)<D_0-\frac{w}{2}\\1&D_0-\frac{w}{2}\leq D(u,v)\leq D_0+\frac{w}{2}\\0&D(u,v)\geq D_0+\frac{w}{2}\end{cases}\tag{23}

其中,D0D_0是通带中心频率,ww是通带宽度。

带阻滤波

顾名思义,带阻滤波就是衰减某一特定频率范围的信号,而允许频率范围之外的信号通过。

理想带阻滤波的传递函数为:

H(u,v)={1D(u,v)<w10w1D(u,v)w21D(u,v)>w2(24)H(u,v)=\begin{cases}1&D(u,v)<w_1\\0&w_1\leqslant D(u,v)\leq w_2\\1&D(u,v)> w_2\end{cases}\tag{24}

第7章 彩色图像处理

伪彩色图像的处理

伪彩色图像的增强一般用于B超、石油开采以及安检方面。

全彩色图像的处理

第8章 图像复原

图像退化机理

退化原因

  1. 成像系统镜头聚焦不准产生的散焦
  2. 相机与景物之间的相对运动
  3. 成像系统存在的各种非线性因素以及系统本身的性能
  4. 模拟图像在数字化过程中,因数字化的精度和误差而损失图像细节
  5. 成像系统中存在的各种随机噪声

复原机理

图像复原的过程一般是沿着图像退化的逆向过程进行的。首先根据先验知识分析退化原因,了解图像变质的原理,在此基础上建立图像的退化模型,然后以图像退化的逆过程对图像进行处理。

图像复原与图像增强的区别和联系

联系:二者从表面上看都是为了提高图像的质量。

区别:二者在目的和过程上都有明显的区别。

在目的上,图像增强是为了提高图像的视感质量,增强后的图像可能损失一些信息,并与原始图像有一定的差异;而图像复原是为了使待复原的图像与原始图像尽可能的接近。

在过程上。图像增强一般不考虑图像退化的真实过程,而是使用特定技术来突出和强调图像中所关注的特征;而图像复原是直接针对图像产生退化的原因建立相应的数学模型,并沿着退化的逆向进行复原。

图像退化模型

图像f(x,y)f(x,y)经过退化系统H(x,y)H(x,y)后再与噪声n(x,y)n(x,y)叠加,得到最后退化的图像g(x,y)g(x,y)

退化系统的一般特性:

  1. 线性特性。
  2. 空间位置不变性:经过退化系统后的输出只有输入有关,而与输入在图像中的位置无关。

第11章 图像分割

阈值分割法

最佳阈值法

假设图像由物体和背景两部分组成,且物体像素的分布和背景像素的分布均符合正态分布,物体像素的正态分布概率密度函数的均值为μ\mu,背景像素的正态分布概率密度函数的均值为ν\nu,则最佳阈值法确定的阈值为

t=μ+ν2(25)t=\frac{\mu +\nu}{2}\tag{25}

判别分析法

通过计算灰度直方图的0阶矩和1阶矩最大化类间方差从而得到最佳阈值。

边缘检测的基本原理

  1. 什么是图像的边缘?

    图像中结构具有突变的地方,表明一个区域的终结,也是另一个区域的开始,这种不连续性称为边缘。

  2. 边缘信号的类型?

    1. 阶跃型,但实际情况中不可能有完全理想的突变。突变处为边缘点。
    2. 渐变型,逐渐增大或逐渐减小。渐变的中间位置为边缘点。
    3. 台阶型。台阶的中间为边缘点或认为台阶两侧为两个边缘点。

边缘检测算子

Robert算子

  • 一阶导数算子。
  • 利用局部差分方法,采用对角线方向相邻两像素之差近似梯度幅值检测边缘。
  • 对噪声敏感,不能抑制噪声

Sobel算子

  • 一阶导数算子。
  • 先进行加权平均,然后进行微分运算。
  • 对噪声具有一定的抑制能力。

Prewitt算子

  • 一阶导数算子。
  • 利用局部差分平均方法寻找边缘。两个模板一个检测水平边缘,一个检测竖直边缘
  • 对噪声具有一定的抑制能力。

Laplace算子

  • 二阶导数算子。
  • 使噪声成分得到加强,对噪声更敏感。
  • 与Marr边缘检测算子一样,一般先进行低通滤波平滑后再进行二阶微分运算。

Canny边缘检测

  1. 使用高斯滤波平滑图像
  2. 计算梯度幅值和方向
  3. NMS非极大值抑制,保留每个像素点上梯度强度的极大值,删掉其他值
  4. 使用双阈值方法确定强边界和弱边界
  5. 滞后边界跟踪

课后习题中的问答题

  1. 傅里叶频谱图的特征:

    • 频率分布:傅里叶频谱图展示了图像在不同频率下的强度分布。高频部分对应图像中的边缘和细节,低频部分对应图像中的整体结构和大致轮廓。
    • 能量分布:图像中不同频率的能量在频谱图中以不同强度的幅度呈现。高幅度的频率分量通常标示着图像中强烈的变化或边缘。
    • 平移不变性:傅里叶变换具有平移不变性,这意味着在频域中图像的平移对应于幅度谱中相位的改变而不影响幅度谱本身。
  2. 如何在频域实现图像平滑

    1. 利用傅里叶变换将图像从空域转换为频域;
    2. 将频域图像进行中心偏移,使得低频信息在频谱中央;
    3. 利用滤波函数生成一个与图像大小相同的二维频域矩阵;
    4. 将图像的频域与滤波器的频域相应相乘;
    5. 将相乘后的频域再次逆平移到频域的原始位置;
    6. 将得到的频域进行逆傅里叶变换,得到滤波后的空域图像。
  3. 一阶边缘检测算子与Laplace算子的异同。

    • 相同点:都可以检测边缘并且对噪声敏感
    • 不同点:一阶边缘检测算子检测到的边缘都有明确的方向,而Laplace算子对各种方向的边缘都有较好的响应
  4. 已知一幅图像受到加性随机噪声污染,分析并写出三种去除或降低噪声的方法。

    空域滤波(均值滤波、中值滤波),频域滤波(巴特沃斯低通滤波),图像恢复技术。

  5. 分析采样和量化的过程,以及它们对数字化图像质量的影响。

    采样是把空间上连续的图像转换为离散的抽样点,即像素。量化将抽样后所得的连续的像素值离散化为整数值。

    对数字化图像质量的影响:

    采样间隔越大,所得图像像素数越少,图像空间分辨率越低,质量越差。反之图像质量好,但数据量大。

    量化等级越多(灰度级数越多),所得图像层次越丰富,灰度分辨率越高,质量越好,但数据量大。反之,图像质量差,会出现假轮廓现象,但数据量小。

  6. 图像噪声的特点。

    • 随机性
    • 叠加性
    • 噪声与图像之间具有相关性
  7. 什么是线性灰度拉伸?线性灰度拉伸可以分为几种情况?

    线性灰度拉伸是将输入图像的灰度值的动态范围按线性关系拉伸扩展至指定范围或灰度的整个动态范围。

    线性拉伸可分为按比例线性拉伸和分段线性拉伸两种方法。同时,按比例线性拉伸又可以分为均匀线性拉伸以及限幅线性拉伸。

  8. 伪彩色图像处理可以应用在哪些方面?

    • B超
    • 石油开采
    • 安检
+ + + + \ No newline at end of file diff --git "a/docs/Curriculum/\347\274\226\350\257\221\345\216\237\347\220\206/Note/index.html" "b/docs/Curriculum/\347\274\226\350\257\221\345\216\237\347\220\206/Note/index.html" new file mode 100644 index 000000000..d1008fe8c --- /dev/null +++ "b/docs/Curriculum/\347\274\226\350\257\221\345\216\237\347\220\206/Note/index.html" @@ -0,0 +1,23 @@ + + + + + +编译原理笔记 | 培洋的笔记本📒 + + + + +
+

编译原理笔记

第一章:前言

image

1.1 编译程序的逻辑结构

  • 词法分析:分析输入串如何构成句子,得到单词序列

  • 语法分析:分析单词序列如何构成程序,构造语法分析树

  • 语义分析:审查语义错误,为代码生成收集类型信息

  • 中间代码生成

  • 代码优化

  • 目标代码生成

  • 表管理、错误检查和处理贯穿整个过程

    image

1.2 前端和后端

  • 前端是指与源语言有关、与目标机无关的部分

    如词法分析、语法分析、语义分析、中间代码生成、代码优化中与机器无关的部分

  • 后端是指与目标机有关的部分

    如代码优化中与机器有关的部分、目标代码的生成

1.3 遍的概念

遍是指从头到尾扫描一遍源程序


第二章:文法和语言

2.1 句型

若从文法的开始符号开始存在以下推导,则称α\alpha为该文法的一个句型,句型中既可以包含终结符,也可以包含非终结符,也可以是空串

Sα, α(VTVN)(1)S \Rightarrow^* \alpha,\space \alpha \in (V_T \cup V_N)^* \tag{1}

2.2 句子:

Sβ, βVT(2)S \Rightarrow^* \beta,\space \beta \in V_T^* \tag{2}

则称β\beta是该文法的句子

2.3 文法的分类:

  1. 0型文法,又称无限制文法、短语文法

  2. 1型文法,又称文有关文法

  3. 2型文法,又称上下文无关文法(Context-Free Grammar,CFG)

    可用来构建语法树,语法树是上下文无关文法推导和规约的图形化表示

    Aβ, AVN, β(VTVN)(3)\Alpha \rightarrow \beta,\space \Alpha \in V_N, \space \beta \in (V_T \cup V_N)^* \tag{3}
  4. 3型文法,又称正规文法(Regular Grammar,RG)

    1. 左线性文法
    2. 右线性文法

    image-20230528200840812

2.4 最左/右推导:

如果在推导的任何一步都是对产生式左部中的最左/右非终结符进行替换,则称为最左/右推导,其中最右推导也被成为规范推导


第三章:词法分析

3.1 正规文法转换成正规式

image-20230528201017013

3.2 有穷自动机(FA)

image-20230528201040816

  1. 确定的有穷自动机(DFA)

    1. DFA的定义及组成

      image-20230528201127539

    2. 确定的含义:在状态转换的每一步,FA根据当前的状态及扫描的输入字符,便能唯一地知道FA的下一状态。

      提示

      在状态转换图中的直观体现就是,在确定行表示的当前状态以及列确定的路径后,得到的目的状态不会是元素个数大于1的集合。

    3. DFA的可接受以及接受集的定义:从开始状态开始,经过该符号串表示的路径,若能到达终态则称该符号串可被改DFA接受。

      image-20230528201159840

  2. 不确定的有穷自动机(NFA)

  3. NFA的确定化,即将NFA转换为DFA(子集法)

    image-20230528201222992

    步骤:

    1. 画出DFA转换表

      提示

      转换表中在状态一列中,状态包含原NFA终态的集合要标*,代表其为等价DFA的终态

      1. 计算move(T,a)move(T, a)
      2. 计算ϵclosure(T)\epsilon -closure(T)
    2. 为转换表中的状态重命名

    3. 确定初态和终态

  4. DFA的最小化(分割法)

    步骤如下:

    image-20230528201309296

    提示

    考试时注意过程怎么写,下面使用需要三轮分割的列子演示步骤

    image-20230528201322014

    image-20230528201330964

    image-20230528201338655

    在分割完成后,对可以化简的集合选出一个状态作为代表,删除其他多余状态,重新画图

    image-20230528201346345

3.3 正规式RE与有穷自动机FA的互相转化

image-20230528201408139

3.4 正规文法RM与有穷自动机FA的互相转化

image-20230528201418070


第四章:自顶向下语法分析方法

描述程序语法结构的规则可以使用2型文法(上下文无关语法,CFG)

语法分析方法包含确定的和不确定的分析方法,确定的语法分析方法根据输入符号,唯一选择产生式

确定的自顶向下分析方法:根据当前的输入符号唯一地确定选用哪个产生式替换相应的非终结符以往下推导

image-20230528201657180

1. FIRST集的定义

image-20230528201545335

2. Follow集的定义

image-20230529222731177

提示

FOLLOW集的求法可以按照下图技巧进行

  1. 若要求的非终结符是开始符号,则直接将#插入FOLLOW集中

  2. 在所有产生式的右部中找到要求的非终结符

  3. 看非终结符的右侧是什么元素

    1. 若无元素,则直接将该产生式左部的FOLLOW集加入到该非终结符的FOLLOW集中
    2. 若为终结符,直接将该终结符加入到FOLLOW集中
    3. 若为非终结符,将FIRST(该非终结符)减去ϵ\epsilon的所有终结符元素都加入至FOLLOW集中

    ppt

3. SELECT集的定义

提示

需要注意的是FIRST集、FOLLOW集是针对于符号串而言的,而SELECT集是针对于产生式而言的

image-20230529222743763

4. LL(1)文法的定义

image-20230529222755134

5. LL(1)文法的判别

image-20230529222804098

提示

考试时注意书写过程,需要画出以下两张表

image-20230529222639440

6. 预测分析表

预测分析表通过计算SELECT集得到,形如下表

行标为各非终结符,列标为输入符号,若从某一非终结符开始的产生式的SELECT集包含某一输入符号,则对应产生式就是行列确定的元素值。

ppt

7. 非LL(1)文法到LL(1)文法的等价变换

  1. 消除左公因子(回溯)

    警告

    同一非终结符的多个产生式存在共同前缀,会导致回溯现象,需要消除

    ppt

  2. 消除左递归

    警告

    左递归文法会使递归下降分析器陷入无限循环

    1. 消除直接左递归

      ppt

    2. 消除间接左递归

      通过代入法变成直接左递归再消除

第五章:自底向上语法分析方法

5.1 概念

从的底部向顶部的方向构造语法分析树,采用最左归约的方式,即最右推导的逆过程

提示

注意辨别:自顶向下的语法分析采用最左推导的方式

最右推导是规范推导,最左归约是最右推导的逆过程,又称规范归约

5.2 方法

  1. 算符优先分析法

    按照算符的优先关系和结合性质进行语法分析

  2. LR分析法(重点)

    规范规约:句柄作为可归约串

5.3 工作过程

img

5.4 移入-归约分析器的4种动作

  1. 移入:将下一个输入符号移到栈顶
  2. 归约:被归约的符号串的右端处于栈顶,语法分析器在栈中确定这个串的左端非终结符来替换该串
  3. 接受:宣布语法分析过程成功完成
  4. 报错:发现一个语法错误,并调用错误恢复子程序

img

5.5 重要题型

  1. 前导知识:4种项目状态

    1. 归约项目:·在最后
    2. 接受项目:拓广文法的开始符号的产生式,且·在最后
    3. 移进项目:·后面是终结符VTV_T
    4. 待约项目:·后面是非终结符VNV_N
  2. 移入-归约分析

    image

  3. LR(0)分析表 / 构造其识别活前缀DFA

    https://www.bilibili.com/video/BV1pL4y1E7RE/?spm_id_from=333.788&vd_source=24d8fcf68bc0e2b0003defe0995cf533

    在写预测分析表的reduce项时,action的每一列都要写

  4. SLR(1)分析表 / 构造其识别活前缀DFA

    https://www.bilibili.com/video/BV12u411S7Us/?spm_id_from=333.788&vd_source=24d8fcf68bc0e2b0003defe0995cf533

    在写预测分析表的reduce项时,只写产生式左部的FOLLOW集对应的action列

  5. LR(1)分析表 / 构造其识别活前缀DFA

    https://www.bilibili.com/video/BV1Vm4y1Q7XB/?spm_id_from=333.788&vd_source=24d8fcf68bc0e2b0003defe0995cf533

    在构造项目集时,要加入前向搜索符;并且,在写预测分析表的reduce项时只写前向搜索符对应的action列

  6. LALR(1)分析表 / 构造其识别活前缀DFA

    在构造项目集时,要加入前向搜索符,但是要合并同心集,把相同表达式但是不同前向搜索符的前向搜索符合并,并且在写预测分析表的reduce项时只写前向搜索符集对应的action列

    https://www.bilibili.com/video/BV13r4y1m7sQ/?spm_id_from=333.788&vd_source=24d8fcf68bc0e2b0003defe0995cf533

概念总结

1 编译程序各阶段功能

词法分析:从左到右扫描源程序,识别出各个单词,确定单词类型并形成单词序列,进行词法错误检查,对标识符进行登记,即符号表管理 +语法分析:从词法分析输出的单词序列识别出各类短语,构造语法分析树,并进行语法错误检查 +语义分析:审查程序是否具有语义错误,为代码生成阶段收集类型信息,不符合规范时报错(符号表是语义正确性检查的依据) +中间代码生成:生成中间代码,如三地址指令、四元式、波兰式、逆波兰式、树形结构等 +代码优化:对代码进行等价变换以求提高执行效率,提高速度或节省空间 +目标代码生成:将中间代码转化成目标机上的机器指令代码或汇编代码(符号表是对符号分配地址的依据)

2 语法分析方法的概念

就产生语法树的方向而言,可大致分为自顶向下的语法分析和自底向上的语法分析两大类。

自顶向下的语法分析方法:主流方法为递归下降分析法。根据当前的输入符号唯一地确定选用哪个产生式替换相应的非终结符以往下推导。

自底向上的语法分析方法:将输入串w归约为文法开始符号S的过程

提示

LR(0), SLR(1), LR(1)

LR(0)文法可能存在移进-归约冲突、归约-归约冲突

SLR(1)文法在构造的过程中不存在归约-归约冲突,但有可能出现移进-归约冲突,可以由FOLLOW集解决的话则是SLR(1)文法

3 翻译模式

翻译模式是适合语法制导语义计算的另一种描述形式,可以体现一种合理调用语义动作的算法。

  • S-翻译模式:

    仅涉及综合属性的翻译模式,通常将语义动作集合置于产生式右端末尾。

  • L-翻译模式:

    既可以包含综合属性,也可以包含继承属性。

4 属性文法

在文法基础上,为文法符号关联有特定意义的属性,并为产生式关联相应的语义动作,称之为属性文法。

  • S-属性文法:

    只包含综合属性的属性文法成为S-属性文法

  • L-属性文法:

    可以包含综合属性,也可以包含继承属性,但要求产生式右部的文法符号的继承属性的计算只取决于该符号左边符号的属性

5 符号表

符号表是编译程序中用于收集标识符的属性信息的数据结构。

各阶段作用:

  • 语义分析阶段:语义合法性检查的依据
  • 目标代码生成阶段:对符号名进行地址分配的依据
+ + + + \ No newline at end of file diff --git a/docs/Deep-Learning/Fill-The-Gaps/index.html b/docs/Deep-Learning/Fill-The-Gaps/index.html new file mode 100644 index 000000000..2c749647e --- /dev/null +++ b/docs/Deep-Learning/Fill-The-Gaps/index.html @@ -0,0 +1,18 @@ + + + + + +查漏补缺 | 培洋的笔记本📒 + + + + +
+

查漏补缺

信息

这里记录着在学习过程中发现的理解或操作方面出现的错误,温故知新。

Python的广播机制

  1. 进行广播的条件:两个矩阵的后缘维度相同或其中一方的维度为1

    1. 后缘维度相同:A为(3,4,5)的三维数据,B为(4,5)的二维数组。由于A和B的后缘维度都为(4,5),所以可以进行广播。同理,当A为(3,4)的二维数组,B为(4,)的数组,他们的后缘维度都是4,所以可以进行广播。
    2. 后缘维度中有一方维度为1:A为(4,5)的二维数组,B为(4,1)的二维数组,其中一方维度为1,可以进行广播。
  2. 广播的原理:在运算过程中,Python逐步对数组进行广播,并不进行实际的复制操作,节省内存。

    以下是举出具体例子进行分析:

    import numpy as np
    import torch

    x = torch.tensor(np.arange(9), dtype=torch.float32)
    x = torch.reshape(x, (3, 3))
    print(x)

    x1 = x[:, :, None] # (3, 3, 1)
    print(x1)
    """
    tensor([[[0.],
    [1.],
    [2.]],
    [[3.],
    [4.],
    [5.]],
    [[6.],
    [7.],
    [8.]]])
    """

    x2 = x[:, None] # (3, 1, 3)
    print(x2)
    """
    tensor([[[0., 1., 2.]],
    [[3., 4., 5.]],
    [[6., 7., 8.]]])
    """

    output = x1 + x2
    print(output)
    """
    tensor([[[ 0., 1., 2.],
    [ 1., 2., 3.],
    [ 2., 3., 4.]],
    [[ 6., 7., 8.],
    [ 7., 8., 9.],
    [ 8., 9., 10.]],
    [[12., 13., 14.],
    [13., 14., 15.],
    [14., 15., 16.]]])
    """

    由于x1与x2在第0维度上维度相同,所以Python可以直接进行逐元素相加,即依次进行如下运算

    x1[0,:,:]+x2[0,:,:](1)x1[0, :, :] + x2[0, :, :] \tag{1}
    x1[1,:,:]+x2[1,:,:](2)x1[1, :, :] + x2[1, :, :] \tag{2}
    x1[2,:,:]+x2[2,:,:](3)x1[2, :, :] + x2[2, :, :] \tag{3}

但在第0维度的相加过程中出现了shape为(3, 1)的矩阵与shape为(1, 3)的矩阵相加的情况,此时进行广播,将(3, 1)的每一列复制三次为(3, 3),将(1, 3)的每一行复制三次为(3, 3),再进行逐元素相加。

其实,上述的过程还可以再细分为,x1[0, 0, :]与x2[0, 0, :]相加时出现了第一次广播,将x1[0, 0, :]复制了三次与x2[0,0, :]完成相加,这里不再赘述,最终想表达的原理是广播机制是在运算过程当中进行的,并非一次性将二者全部复制为对应的最小公倍数形状后再进行运算

点积(dot product)与矩阵乘法(matmul product)

  1. 点积在Python中对应的运算符为*,进行矩阵之间的逐元素乘法。在点积运算中,运算矩阵二者形状不一样时可能涉及到广播机制;
  2. 矩阵乘法在Python中对应的运算符为@,进行常规矩阵乘法。遵守左矩阵的列数必须等于右矩阵的行数,且输出矩阵的行数等于左矩阵的行数、输出矩阵的列数等于右矩阵的列数的规则。

zip函数与解压操作*

当你有多个列表(或其他可迭代对象)时,zip函数可以将它们逐个配对成元组。而*操作符用于解压元组,将元组中的元素分别作为参数传递给函数。

以下是一个简单的例子:

# zip函数的例子
list1 = [1, 2, 3]
list2 = ['a', 'b', 'c']
list3 = ['x', 'y', 'z']

# 使用zip将多个列表配对成元组
zipped_lists = zip(list1, list2, list3)

# 打印配对后的元组
for item in zipped_lists:
print(item)

输出:

(1, 'a', 'x')
(2, 'b', 'y')
(3, 'c', 'z')

在这个例子中,ziplist1list2list3中相同位置的元素组合成元组。

接下来,我们可以使用 * 操作符解压这些元组:

# *解压操作的例子
unzipped_lists = zip(*zipped_lists)

# 打印解压后的列表
for item in unzipped_lists:
print(item)

输出:

(1, 2, 3)
('a', 'b', 'c')
('x', 'y', 'z')

在这个例子中,*操作符将先前由zip组合的元组解压,分别放回原始的列表。

对batch_first参数的理解

对于不同的网络层,输入的维度虽然不同,但是通常输入的第一个维度都是batch_size,比如torch.nn.Linear的输入(batch_size,in_features)torch.nn.Conv2d的输入(batch_size, C, H, W)

RNN的输入是(seq_len, batch_size, input_size)batch_size位于第二维度!虽然可以将batch_size和序列长度seq_len对换位置,此时只需令batch_first=True

但是为什么RNN输入默认不是batch first=True?这是为了便于并行计算

因为cuDNN中RNN的API就是batch_size在第二维度。进一步讲,batch first意味着模型的输入(一个Tensor)在内存中存储时,先存储第一个sequence,再存储第二个,而如果是seq_len first,模型的输入在内存中,先存储每一个sequence的第一个元素,然后是第二个元素,两种区别如下图所示:

img

seq_len first意味着不同序列中同一个时刻对应的输入单元在内存中是毗邻的,这样才能做到真正的batch计算。

+ + + + \ No newline at end of file diff --git a/docs/Deep-Learning/intro/index.html b/docs/Deep-Learning/intro/index.html new file mode 100644 index 000000000..a0e218f2b --- /dev/null +++ b/docs/Deep-Learning/intro/index.html @@ -0,0 +1,18 @@ + + + + + +Welcome | 培洋的笔记本📒 + + + + +
+

Welcome

介绍

欢迎来到笔记本的深度学习部分

若更新不及时,欢迎通过GitHub联系交流

有关论文笔记的说明

为了节省写作时间,论文笔记部分的文章通常只讲述文章的方法论,Introduction以及Related Work详情可以参考论文原文

支持我!

如果可以帮到你的话就给个免费的Star吧!

+ + + + \ No newline at end of file diff --git "a/docs/Deep-Learning/\345\237\272\347\241\200\347\237\245\350\257\206/AlexNet/index.html" "b/docs/Deep-Learning/\345\237\272\347\241\200\347\237\245\350\257\206/AlexNet/index.html" new file mode 100644 index 000000000..8e8d64538 --- /dev/null +++ "b/docs/Deep-Learning/\345\237\272\347\241\200\347\237\245\350\257\206/AlexNet/index.html" @@ -0,0 +1,18 @@ + + + + + +AlexNet | 培洋的笔记本📒 + + + + +
+

AlexNet

背景

AlexNet是指2012年由Alex Krizhevsky、Ilya Sutskever和Geoffrey Hinton提出的一种卷积神经网络模型,它主要应用于图像分类任务。在当时,AlexNet的表现远远超过了其他参赛的网络模型,并且在ImageNet比赛中获得了第一名。

标志着新的一轮神经网络热潮的开始

image

新的概念和技术

  • ReLU激活函数
  • Dropout正则化、丢弃法
  • 最大池化MaxPooling

与LeNet比较

  1. 由于输入的图片更大,设置了更大的卷积核尺寸和步长
  2. 更大的池化窗口,使用最大池化
  3. 在卷积层中设置了更大的输出通道,提取更深层的特征、识别更多的模式
  4. 激活函数从Sigmoid改成了ReLU,减缓梯度消失
  5. 在卷积层和输出层之间仍使用两个全连接隐藏层,但在输出层之前增加了Dropout层做正则化
  6. 使用了数据增强data augmentation
+ + + + \ No newline at end of file diff --git "a/docs/Deep-Learning/\345\237\272\347\241\200\347\237\245\350\257\206/ConvolutionalLayer/index.html" "b/docs/Deep-Learning/\345\237\272\347\241\200\347\237\245\350\257\206/ConvolutionalLayer/index.html" new file mode 100644 index 000000000..f7378f8b7 --- /dev/null +++ "b/docs/Deep-Learning/\345\237\272\347\241\200\347\237\245\350\257\206/ConvolutionalLayer/index.html" @@ -0,0 +1,18 @@ + + + + + +卷积层 | 培洋的笔记本📒 + + + + +
+

卷积层

一、1x1卷积

kh=kw=1k_h=k_w=1的卷积不识别空间模式,丢弃了空间信息,只是融合通道

相当于输入形状为HW×ciHW \times c_i,权重形状为co×cic_o \times c_i的全连接层


二、二维卷积层

  • 输入:ci×H×Wc_i \times H \times W

  • 核:co×ci×kh×kwc_o \times c_i \times k_h \times k_w

  • 偏差:co×cic_o \times c_i

  • 输出:co×H×Wc_o \times H' \times W'

  • 输出H以及WH'以及W'的计算:

    shapeoutput=shapeinputsizekernel+2paddingstride+1(1)shape_{output} = \frac{shape_{input}-size_{kernel}+2*padding}{stride}+1 \tag{1}
  • 计算复杂度:O(co×ci×H×W×H×W)O(c_o \times c_i \times H \times W \times H' \times W')

  • 总结:

    1. 输出的通道数是卷积层的超参数
    2. 每个输入通道有独立的二维卷积核,所有通道结果相加得到一个输出结果
    3. 每个输出通道有独立的三维卷积核
+ + + + \ No newline at end of file diff --git "a/docs/Deep-Learning/\345\237\272\347\241\200\347\237\245\350\257\206/FromFullyConnectedLayerToConvolutionalLayer/index.html" "b/docs/Deep-Learning/\345\237\272\347\241\200\347\237\245\350\257\206/FromFullyConnectedLayerToConvolutionalLayer/index.html" new file mode 100644 index 000000000..81dac67c7 --- /dev/null +++ "b/docs/Deep-Learning/\345\237\272\347\241\200\347\237\245\350\257\206/FromFullyConnectedLayerToConvolutionalLayer/index.html" @@ -0,0 +1,18 @@ + + + + + +从全连接到卷积 | 培洋的笔记本📒 + + + + +
+

从全连接到卷积

一、卷积的诞生&核心特征

  1. 现代图片具有较大的像素,使用全连接层导致参数爆炸
  2. 针对图片的特征提取和模式识别,应具备以下原则:
    • 平移不变性
    • 局部性

二、重新考察全连接层

  1. 将全连接层的一维输入和输出变换为二维的矩阵,公式如下

    其中i,ji,j代表输出神经元的二维索引坐标,h,wh,w代表输入神经元的二维索引坐标

yi,j=h,wwi,j,h,wxh,w(1)y_{i,j}=\sum_{h,w}{w_{i,j,h,w}*x_{h,w}} \tag{1}
  1. 进一步将权重以及输入的索引变形,公式如下

    其中a,ba,b的取值可负可正,直到遍历所有权重以及输入神经元,实现全连接

yi,j=h,wwi,j,h,wxh,w=a,bvi,j,a,bxi+a,j+b(2)y_{i,j}=\sum_{h,w}{w_{i,j,h,w}*x_{h,w}}=\sum_{a,b}{v_{i,j,a,b}*x_{i+a,j+b}} \tag{2}
  1. 在公式(2)中,当i,ji,j发生变化时,即产生平移,权重也发生平移,不满足平移不变性。

    为了解决这一问题,将公式(2)变形为如下

    此时参数权值共享,满足了平移不变性

    yi,j=a,bvi,j,a,bxi+a,j+b=a,bva,bxi+a,j+b(3)y_{i,j}=\sum_{a,b}{v_{i,j,a,b}*x_{i+a,j+b}}=\sum_{a,b}{v_{a,b}*x_{i+a,j+b}} \tag{3}
  2. 再考虑局部性,在进行特征提取以及模式识别时,只需关注周围的局部特征,因此公式(3)中的a,ba,b可缩小范围,并不用来实现全连接,此时a,ba,b代表着卷积核的感受野,即kernel size

  3. 此时完成了全连接层到卷积层的转换


三、总结

  1. 对全连接层使用平移不变性和局部性得到卷积层,卷积是特殊的全连接
yi,j=a,bva,bxi+a,j+b=a=ΔΔb=ΔΔva,bxia,j+b(4)y_{i,j}=\sum_{a,b}{v_{a,b}*x_{i+a,j+b}}=\sum_{a=-\Delta}^{\Delta}\sum_{b=-\Delta}^{\Delta}{v_{a,b}*x_{i_a,j+b}} \tag{4}
  1. 卷积层输出形状的计算
    shapeoutput=shapeinputsizekernel+2paddingstride+1(5)shape_{output} = \frac{shape_{input}-size_{kernel}+2*padding}{stride}+1 \tag{5}
+ + + + \ No newline at end of file diff --git "a/docs/Deep-Learning/\345\237\272\347\241\200\347\237\245\350\257\206/K-foldCross-validation/index.html" "b/docs/Deep-Learning/\345\237\272\347\241\200\347\237\245\350\257\206/K-foldCross-validation/index.html" new file mode 100644 index 000000000..fc358033d --- /dev/null +++ "b/docs/Deep-Learning/\345\237\272\347\241\200\347\237\245\350\257\206/K-foldCross-validation/index.html" @@ -0,0 +1,18 @@ + + + + + +K-fold cross-validation | 培洋的笔记本📒 + + + + +
+

K-fold cross-validation

What is k-fold cross-validation?

K-fold cross-validation is a technique used in machine learning to evaluate the performance of a model. The basic idea behind k-fold cross-validation is to split the dataset into kk partitions, or folds, and then train and test the model kk times, using a different fold for testing each time.


How does k-fold cross-validation work?

In each iteration of k-fold cross-validation, one of the kk folds is used as the test set, while the remaining k1k-1 folds are used as the training set. This process is repeated kk times, with each fold being used exactly once as the test set. The results from each iteration can then be averaged to produce a more accurate estimate of the model's performance.


Summary

  • train set: to train the model and do parameter update
  • validation set: to choose hyperparameter
  • test set: the final test, only used once
+ + + + \ No newline at end of file diff --git "a/docs/Deep-Learning/\345\237\272\347\241\200\347\237\245\350\257\206/LeNet/index.html" "b/docs/Deep-Learning/\345\237\272\347\241\200\347\237\245\350\257\206/LeNet/index.html" new file mode 100644 index 000000000..b0c7cd96b --- /dev/null +++ "b/docs/Deep-Learning/\345\237\272\347\241\200\347\237\245\350\257\206/LeNet/index.html" @@ -0,0 +1,18 @@ + + + + + +LeNet | 培洋的笔记本📒 + + + + +
+

LeNet

背景

LeNet是由Yann LeCun等人于1998年提出的卷积神经网络结构,该结构由卷积层、池化层和全连接层组成,可以高效地处理手写数字图像,并在MNIST数据集上取得了很好的性能。

LeNet-5的成功标志着卷积神经网络在计算机视觉领域中的崛起,并促进了深度学习的快速发展。


代码实现

import torch
import numpy as np
from torch import nn as nn
from torch.nn import functional as F
from d2l import torch as d2l
from matplotlib import pyplot as plt
import os

os.environ['http_proxy'] = 'http://127.0.0.1:7890'
os.environ['https_proxy'] = 'https://127.0.0.1:7890'


class LeNetReshape(nn.Module):
def __init__(self):
super(LeNetReshape, self).__init__()

def forward(self, x):
return x.reshape(-1, 1, 28, 28)


class LeNet5(nn.Module):
def __init__(self):
super(LeNet5, self).__init__()
self.net = torch.nn.Sequential(
LeNetReshape(),
# 激活函数应为Sigmoid
nn.Conv2d(1, 6, kernel_size=5, padding=2), nn.LeakyReLU(), nn.AvgPool2d(kernel_size=2, stride=2),
nn.Conv2d(6, 16, kernel_size=5), nn.LeakyReLU(), nn.AvgPool2d(kernel_size=2, stride=2),
nn.Flatten(),
nn.Linear(16 * 5 * 5, 120), nn.LeakyReLU(),
nn.Linear(120, 84), nn.Sigmoid(),
nn.Linear(84, 10))

def forward(self, x):
return self.net(x)


def evaluate_accuracy_gpu(net, data_iter, device=None):
if isinstance(net, torch.nn.Module):
net.eval()
if not device:
device = next(iter(net.parameters())).device
metric = d2l.Accumulator(2)
for X, y in data_iter:
if isinstance(X, list):
X = [x.to(device) for x in X]
else:
X = X.to(device)
y = y.to(device)
metric.add(d2l.accuracy(net(X), y), y.numel()) # 此处accuracy是统计
return metric[0] / metric[1]


def accuracy(y_hat, y):
return torch.sum(y_hat.argmax(dim=1) == y)


def train(net, train_iter, test_iter, num_epochs, lr, device):
def init_weights(m):
if type(m) == nn.Linear or type(m) == nn.Conv2d:
nn.init.xavier_uniform_(m.weight)

net.apply(init_weights)
net.to(device)
optimizer = torch.optim.SGD(net.parameters(), lr=lr)
loss = torch.nn.CrossEntropyLoss()
loss.to(device)
animator = d2l.Animator(xlabel='epoch', xlim=[1, num_epochs],
legend=['train loss', 'train acc', 'test acc'])
timer, num_batches = d2l.Timer(), len(train_iter)
metric = d2l.Accumulator(3)
net.train()
for epoch in range(num_epochs):
for batch, (X, y) in enumerate(train_iter):
timer.start()
optimizer.zero_grad()
X, y = X.to(device), y.to(device)
y_hat = net(X)
l = loss(y_hat, y)
l.backward()
optimizer.step()
metric.add(l * X.shape[0], accuracy(y_hat, y), y.numel())
timer.stop()
train_l = metric[0] / metric[2]
train_acc = metric[1] / metric[2]
if (batch + 1) % (num_batches // 5) == 0 or batch == num_batches - 1:
animator.add(epoch + (batch + 1) / num_batches, (train_l, train_acc, None))
test_acc = evaluate_accuracy_gpu(net, test_iter)
animator.add(epoch + 1, (None, None, test_acc))
print(f'loss {train_l:.3f}, train acc {train_acc:.3f}, test acc {test_acc:.3f}')
print(f'{metric[2] * num_epochs / timer.sum():.1f} examples/sec on {str(device)}')
plt.show()

batch_size = 256
train_iter, test_iter = d2l.load_data_fashion_mnist(batch_size)
lr, num_epochs = 0.9, 10
lenet = LeNet5()
train(lenet, train_iter, test_iter, num_epochs, lr, d2l.try_gpu())

问题

在分类模型中,最后两个全连接层之间不要使用ReLU激活函数。因为ReLU的范围是[0, +∞),它会将所有负数都变成0。而最后一层全连接层输出了类别信息,倒数第二层的输出值包含着非常重要的类别信息,此时使用激活函数很可能会导致信息丢失。

+ + + + \ No newline at end of file diff --git "a/docs/Deep-Learning/\345\237\272\347\241\200\347\237\245\350\257\206/LogisticRegression/index.html" "b/docs/Deep-Learning/\345\237\272\347\241\200\347\237\245\350\257\206/LogisticRegression/index.html" new file mode 100644 index 000000000..d6b1d45f4 --- /dev/null +++ "b/docs/Deep-Learning/\345\237\272\347\241\200\347\237\245\350\257\206/LogisticRegression/index.html" @@ -0,0 +1,18 @@ + + + + + +关于Logistic Regression | 培洋的笔记本📒 + + + + +
+

关于Logistic Regression

一、什么是Logistic Regression

Logistic Regression直译为逻辑回归,是一种用来解决二分类问题的机器学习方法,用于估计某种事物的可能性。

逻辑回归经过sigmoid函数输出的结果可将其视为probability,而后根据设定的置信度阈值来判断该特征向量对应的标签是1还是0,用以解决二分类问题。


二、逻辑回归(Logistic Regression)和线性回归(Linear Regression)

  • 线性回归要求因变量是连续性数值变量,而逻辑回归要求因变量是离散的变量。
  • 逻辑回归以线性回归为理论支持,通过Sigmoid函数引入了非线性因素。
  • 线性回归常用MSE函数作为损失函数,而逻辑回归作为分类任务的解决方案通常搭配交叉熵损失函数进行训练。

三、逻辑回归到底是回归任务(Regression)还是分类任务(Classification)?

从历史角度方面看,逻辑回归在诞生时使用MSE作为损失函数,其目标是让输出的概率更接近于1,与回归任务的目标相似。


四、为什么逻辑回归或其他分类任务不使用分类准确率作为损失函数?

逻辑回归以及其他分类任务在测试角度上的目标让提高分类准确率acc,但并不会将maximize accuracy作为数学上的训练方法,即在训练过程中不使用与acc有关的损失函数。

逻辑回归中的训练目标(评估函数)与预测目标(评估函数)并不相同,但方向一致。

acc=I(predi==yi)len(Y)(1)acc = \frac{\sum{I(pred_i==y_i)}}{len(Y)} \tag{1}

如果在训练过程中以最大化acc为目标,当参数在训练过程中向标签方向更新使得逻辑回归输出的正确类的概率增大时,考虑以下两种情况:

  1. gradient = 0 if accuracy unchanged but weights changed:

    由于阈值的存在,下一轮迭代输出的概率可能仍小于阈值,从而导致分类结果与上一次迭代相同,此时acc并无变化,出现梯度为0的情况。

  2. gradient not continuous since the number of correct is not continunous:

    当上一轮迭代的输出概率很接近阈值时,下一次迭代的概率提升了很少一点但是仍超过了阈值,且一个batch中有大量样本均存在这种情况,此时acc有显著提升而网络的权重的更新极小,此时,与acc有关的Loss函数对权重求导得到的梯度会出现梯度爆炸或者说不连续的情况。

+ + + + \ No newline at end of file diff --git "a/docs/Deep-Learning/\345\237\272\347\241\200\347\237\245\350\257\206/Perceptron/index.html" "b/docs/Deep-Learning/\345\237\272\347\241\200\347\237\245\350\257\206/Perceptron/index.html" new file mode 100644 index 000000000..48f2f75a4 --- /dev/null +++ "b/docs/Deep-Learning/\345\237\272\347\241\200\347\237\245\350\257\206/Perceptron/index.html" @@ -0,0 +1,18 @@ + + + + + +Perceptron | 培洋的笔记本📒 + + + + +
+

Perceptron

一、什么是感知机

感知机是一种二元线性分类模型,旨在寻找一个超平面(在二维空间中即为一条直线),将不同类别的实例划分到不同的区域。感知机的训练过程包括迭代地对样本进行分类,并根据分类错误的情况调整超平面的参数,使得分类准确率逐步提高。感知机是基础的机器学习算法之一,其思想和方法对神经网络等更复杂的模型也具有启发意义。


二、详细原理

  1. 输入向量:感知机的输入向量是一个n维向量x=(x1,x2,...,xn)x=(x_1,x_2,...,x_n),表示一个样本的各个特征值。

  2. 权值向量:感知机的权值向量也是一个n维向量w=(w1,w2,...,wn)w=(w_1,w_2,...,w_n),表示每个特征对应的权重。

  3. 偏置项:偏置项bb是一个常数,可看作是模型的截距,用于调整阈值函数的位置。

  4. 内积运算:感知机将输入向量和权值向量进行内积运算,并加上偏置项,得到输入信号z=wx+bz=w*x+b

  5. 阈值函数:将输入信号zz带入阈值函数,如符号函数sign(z)sign(z),即可得到分类结果。

  6. 损失函数:感知机使用误分类点到超平面的距离来作为损失函数,即

    L(y,z)=max(0,yz)(1)L(y,z)=max(0,-y*z) \tag{1}

    其中yy是样本的真实标签,zz是预测值。

  7. 参数更新:根据当前样本误分类情况来对权值向量ww和偏置项bb进行迭代更新。

  8. 收敛条件:当全部训练样本被正确分类或达到最大迭代次数时,感知机算法停止迭代。

感知机训练流程伪代码如下所示:

initialize w = 0 and b = 0
repeat
if yi * zi <= 0 then
w = w + yi * xi and b = b + yi
end if
until all classified correctly

三、总结

  • 感知机是一个二分类模型,最早的AI模型之一
  • 求解算法等价于使用批量大小为1的梯度下降
  • 要求数据集线性可分,不能拟合XOR异或等非线性问题,导致第一次AI寒冬
+ + + + \ No newline at end of file diff --git "a/docs/Deep-Learning/\345\237\272\347\241\200\347\237\245\350\257\206/PoolingLayer/index.html" "b/docs/Deep-Learning/\345\237\272\347\241\200\347\237\245\350\257\206/PoolingLayer/index.html" new file mode 100644 index 000000000..f8eb59ad8 --- /dev/null +++ "b/docs/Deep-Learning/\345\237\272\347\241\200\347\237\245\350\257\206/PoolingLayer/index.html" @@ -0,0 +1,18 @@ + + + + + +池化层 | 培洋的笔记本📒 + + + + +
+

池化层

一、卷积对像素位置信息是敏感的

卷积层会对输入的局部区域进行卷积操作,因此对于输入图像中的每个位置都会产生一个响应。然而,在某些情况下,我们并不关心输入图像中每个位置的细节,而只是想获取该区域的一些重要特征。

假设我们想分类一张猫的图片,那么我们可能只需要提取出它的眼睛、鼻子、嘴巴和耳朵等特征,而不必考虑这些特征在图像中的精确位置。


二、池化层的作用

池化层通过对输入的局部区域进行降采样操作,减少了特征图的大小,从而使得模型对于输入位置的微小变化更加鲁棒。例如,如果我们将一个对象稍微平移一点,它依然可以被正确地识别,因为池化层可以保留输入图像的关键特征,而忽略掉微小的位置变化。

但是需要注意的是,当池化的步幅和池化区域的大小过大时,会导致模型丢失较多的细节信息,从而影响模型性能。因此,在实际应用中,需要根据具体任务来选择适当的池化参数。

  1. 缓解卷积层对位置的敏感性,提高鲁棒:池化操作通常用于卷积层之后,使模型对于输入位置的微小变化更加鲁棒,减少图像中的噪声和冗余信息
  2. 减小特征图大小:池化操作会通过在特定位置上合并特征值来缩小输入特征图的空间大小,降低计算开销。
  3. 减少参数数量:池化操作减小了特征图的空间大小,从而也减小了需要训练的权重参数数量,更容易训练和优化。

三、池化的实现

池化层将输入特征图分割成若干个区域,然后对每个区域进行汇聚操作,将该区域内的特征值合并成一个值。这个操作可以使用不同的方法实现,如最大值池化、平均值池化等。

最常见的是最大值池化,其中每个区域的输出值是该区域内特征值的最大值,这样可以保留图像中最显著的特征,同时减少噪声和冗余信息的影响。

+ + + + \ No newline at end of file diff --git "a/docs/Deep-Learning/\345\237\272\347\241\200\347\237\245\350\257\206/PytorchBasics/index.html" "b/docs/Deep-Learning/\345\237\272\347\241\200\347\237\245\350\257\206/PytorchBasics/index.html" new file mode 100644 index 000000000..1fcb7e87b --- /dev/null +++ "b/docs/Deep-Learning/\345\237\272\347\241\200\347\237\245\350\257\206/PytorchBasics/index.html" @@ -0,0 +1,18 @@ + + + + + +PyTorch基础 | 培洋的笔记本📒 + + + + +
+

PyTorch基础

一、常用函数部分

  1. concat与stack函数

    stack函数对输入的两个张量在指定的维度进行堆叠,是创建了新的维度

    concat函数对输入的张量在指定维度进行拼接,没有创建新的维度

    # stack和concat函数
    a = torch.rand(4, 3) # A班4位同学,每位同学3科成绩
    b = torch.rand(4, 3) # B班4位同学,每位同学3科成绩
    c = torch.stack((a, b), dim=0) # 理解:年级所有同学的3科成绩(假设年级只有A班和B班两个班,每个班只有四名同学)
    print(c.shape) # torch.Size([2, 4, 3])
    d = torch.concat((a, b), dim=1) # 理解:a是A班4位同学3科成绩,b是这4名同学其他3门课的成绩,拼接后代表这4名同学的6科成绩
    print(d.shape) # torch.Size([4, 6])
  2. list和tensor乘法不同之处

    list的*乘法是复制元素,改变list的shape

    tensor的*乘法是对tensor中的元素进行点乘计算

    a = torch.tensor([[3, 3, 3, 3]])
    b = [3] # list的*乘是复制元素进行扩展
    print(a * 3) # tensor([[9, 9, 9, 9]])
    print(b * 3) # [3, 3, 3]
  3. 最大值 / 最小值索引:argmax / argmin

    需要通过参数dim指定操作的维度,dim的理解

    • 官方解释:The dimension to reduce

    • 以二维张量举例,dim=1即在每一行中选出一个最大值 / 最小值元素的索引,索引的shape应为[dim0, 1],即reduce了dim=1的维度

    # 最大值最小值索引
    a = torch.tensor([[0.1, 0.9, 0.3], [0.9, 0.8, 0.99], [0.1, 0.7, 0.8], [0.88, 0.1, 0.2]]) # [4, 3]
    print("argmax output: ", a.argmax(dim=0), a.argmax(dim=1)) # argmax output: tensor([1, 0, 1]) tensor([1, 2, 2, 0])
  4. Python zip函数

    zip函数可以理解为压缩,将输入的两个迭代器的最外层对应元素压缩为一个新的元素

    a = torch.tensor([1, 2, 3])
    b = torch.tensor([4, 5, 6])
    c = zip(a, b)
    for i in c:
    print(i)
    '''
    (tensor(1), tensor(4))
    (tensor(2), tensor(5))
    (tensor(3), tensor(6))
    '''
    a = torch.tensor([[1, 2, 3], [3, 2, 1]])
    b = torch.tensor([[4, 5, 6], [6, 5, 4]])
    c = zip(a, b)
    for i in c:
    print(i)
    '''
    (tensor([1, 2, 3]), tensor([4, 5, 6]))
    (tensor([3, 2, 1]), tensor([6, 5, 4]))
    '''
+ + + + \ No newline at end of file diff --git "a/docs/Deep-Learning/\345\237\272\347\241\200\347\237\245\350\257\206/\346\255\243\345\210\231\345\214\226\344\270\216\346\235\203\351\207\215\350\241\260\351\200\200/index.html" "b/docs/Deep-Learning/\345\237\272\347\241\200\347\237\245\350\257\206/\346\255\243\345\210\231\345\214\226\344\270\216\346\235\203\351\207\215\350\241\260\351\200\200/index.html" new file mode 100644 index 000000000..c14c65663 --- /dev/null +++ "b/docs/Deep-Learning/\345\237\272\347\241\200\347\237\245\350\257\206/\346\255\243\345\210\231\345\214\226\344\270\216\346\235\203\351\207\215\350\241\260\351\200\200/index.html" @@ -0,0 +1,18 @@ + + + + + +正则化与权重衰退 | 培洋的笔记本📒 + + + + +
+

正则化与权重衰退

提示

正则化与权重衰退

一、什么是正则化

正则化(Regularization)是机器学习中用于控制模型过拟合的一种技术。在模型训练过程中,我们通常要最小化一个损失函数来得到最佳的模型参数。但是当模型过于复杂时,容易出现过拟合现象,即在训练数据上表现很好,但在测试数据上表现很差。这是因为模型过于依赖训练数据的噪声和细节,而忽略了真正的规律。

正则化通过在损失函数中增加一个惩罚项(Penalty)来对模型进行约束,防止其过分依赖训练数据。

常见的正则化方法包括L1正则化(硬性限制)、L2正则化(柔性限制)等。

L1正则化会使得一部分参数变为0,从而实现特征选择的效果;L2正则化则会使得模型参数尽量接近0,也就是使得模型更加平滑。在使用正则化时,需要调整正则化强度的超参数,以达到最优的泛化性能。


二、L1正则化

min l(w,b) subject to w12θ(1)min \space l(w, b) \space \text{subject to} \space \Vert w \Vert^2_1 \leq \theta \tag{1}
  • L1正则化限制权重参数的L1范数小于某一特定的超参数
  • 通常不限制偏移bb
  • 更小的超参数θ\theta意味着更强的正则项

三、L2正则化与权重衰退

L2正则化是指在模型的损失函数中,加入对模型参数的L2范数进行惩罚的一种方法。公式如下所示:

l(w,b)+λ2w12(2)l(w, b) + \frac{\lambda}{2} \Vert w \Vert^2_1 \tag{2}

其中,λ\lambda是一个正则化系数超参数

此时在更新梯度时,具有如下公式

w(l(w,b)+λ2w12)=l(w,b)w+λw(3)\frac{\partial}{\partial w} \big(l(w, b) + \frac{\lambda}{2} \Vert w \Vert^2_1 \big) = \frac{\partial l(w, b)}{\partial w} + \lambda w \tag{3}
wt+1=(1ηλ)wt+ηl(wt,bt)wt(4)w_{t+1}=(1-\eta \lambda)w_t + \eta \frac{\partial l(w_t, b_t)}{\partial w_t} \tag{4}

通常ηλ<1\eta \lambda < 1,因此又叫做权重衰退

+ + + + \ No newline at end of file diff --git "a/docs/Deep-Learning/\345\237\272\347\241\200\347\237\245\350\257\206/\346\267\261\345\272\246\345\217\257\345\210\206\347\246\273\345\215\267\347\247\257/index.html" "b/docs/Deep-Learning/\345\237\272\347\241\200\347\237\245\350\257\206/\346\267\261\345\272\246\345\217\257\345\210\206\347\246\273\345\215\267\347\247\257/index.html" new file mode 100644 index 000000000..ee67655c3 --- /dev/null +++ "b/docs/Deep-Learning/\345\237\272\347\241\200\347\237\245\350\257\206/\346\267\261\345\272\246\345\217\257\345\210\206\347\246\273\345\215\267\347\247\257/index.html" @@ -0,0 +1,20 @@ + + + + + +深度可分离卷积 | 培洋的笔记本📒 + + + + +
+

深度可分离卷积

提示

输入:shape为[5,5,3][5, 5, 3]的图像 +输出要求:shape为[5,5,4][5, 5, 4]的feature map +使用3×33 \times 3卷积核,padding=1,stride=1padding=1, stride=1

常规卷积

卷积层共4个filter(输出通道为4),每个filter3个kernel(输入通道为3)

其中,每个filter都对输入图像的所有通道完成一次卷积,filter中的kernel分别对输入的通道进行具体卷积运算

img

不考虑卷积偏置,参数量为

3×3×3×4=108(1)3 \times 3 \times 3 \times 4 = 108 \tag{1}

深度可分离卷积

(1)逐通道卷积-Depthwise Convolution

img

使用1个filter,其中包含3个kernel。每个kernel分别对输入图像的3个通道单独进行卷积,参数量为

3×3××3=27(2)3 \times 3 \times \times 3 = 27 \tag{2}

代码实现也较为简单,只需令Conv2d的输出通道与输入通道相同即可

(2)逐点卷积-Pointwise Convolution

img

使用1×11 \times 1卷积核,每个filter对上一步的feature map在深度方向进行一次加权组合,参数量为

1×1×3×4=12(3)1 \times 1 \times 3 \times 4 = 12 \tag{3}
提示

图片源自知乎

+ + + + \ No newline at end of file diff --git "a/docs/Deep-Learning/\345\237\272\347\241\200\347\237\245\350\257\206/\346\277\200\346\264\273\345\207\275\346\225\260\344\270\216Loss\347\232\204\346\242\257\345\272\246/index.html" "b/docs/Deep-Learning/\345\237\272\347\241\200\347\237\245\350\257\206/\346\277\200\346\264\273\345\207\275\346\225\260\344\270\216Loss\347\232\204\346\242\257\345\272\246/index.html" new file mode 100644 index 000000000..d6accb515 --- /dev/null +++ "b/docs/Deep-Learning/\345\237\272\347\241\200\347\237\245\350\257\206/\346\277\200\346\264\273\345\207\275\346\225\260\344\270\216Loss\347\232\204\346\242\257\345\272\246/index.html" @@ -0,0 +1,27 @@ + + + + + +激活函数与Loss的梯度 | 培洋的笔记本📒 + + + + +
+

激活函数与Loss的梯度

一、激活函数

1. Sigmoid函数 / Logistic函数

σ(x)=11+ex(1)\sigma(x) = \frac{1}{1 + e^{-x}} \tag{1}
dσdx=σ (1σ)(2)\frac{{\rm d}\sigma}{{\rm d}x} = \sigma \space (1 - \sigma) \tag{2}

优点:可以将数据压缩至[0, 1)区间内,有较大实用意义

致命问题:在输入值较小或较大时,Sigmoid函数的梯度趋近于零,会导致网络参数长时间得不到更新,即梯度弥散问题

from torch.nn import functional as F
import torch

x = torch.linspace(-100, 100, 10)
F.sigmoid(x) # 当x为100时,sigmoid(x)就接近于0了

2. 线性整流单元(Rectified Linear Unit, ReLU)

f(x)={0x<0xx0(3)f(x) = \begin{cases} 0 & x < 0\\ x & x \geq 0\\ \end{cases} \tag{3}
df(x)dx={0x<01x0(4)\frac {{\text d}f(x)}{{\text d}x} = \begin{cases} 0 & x < 0\\ 1 & x \geq 0\\ \end{cases} \tag{4}
from torch.nn import functional as F
import torch

x = torch.linspace(-100, 100, 10)
F.relu(x)

二、损失函数

1. Mean Squared Error 均方误差

  • L2范数是对元素求平方和后再开根号,需要.pow(2)后才可作为损失函数

  • 微小的误差可能对网络性能带来极大的影响

    LossMSE=[yf(x)]2(5)Loss_{MSE} = \sum{[{y - f(x)]^2}} \tag{5}
    yf(x)2=[yf(x)]22(6)\Vert y - f(x) \Vert_2 = \sqrt[2]{\sum{[y - f(x)]^2}} \tag{6}

2. Cross Entropy Loss 交叉熵损失

信息熵

Cross Entropy中的Entropy指的是信息熵,可以理解为不确定性。衡量一个概率分布本身的不确定程度。

It's a measure of surprise, higher entrpoy means less information and higher uncertainty.

假设一个离散型随机变量XX的可能取值为X=x1,x2,...,xnX=x_1,x_2,...,x_n,而取值事件xix_i发生的概率为PiP_i,则其信息熵的定义为

H(P)=inPi log2(Pi)=inPi log2(1Pi)(7)\begin{align} H(P) &= -\sum_i^n{P_i}\space{log_2(P_i)} \\ &= \sum_i^n{P_i}\space{log_2({\frac{1}{P_i}}}) \tag{7} \end{align}

KL散度

在概率论或信息论中,KL散度( Kullback–Leibler Divergence),又称相对熵(relative entropy),是描述两个概率分布P和Q差异的一种方法。

存在两个概率分布P和Q,其离散型随机变量XX的可能取值为X=x1,x2,...,xnX=x_1,x_2,...,x_n,而取值事件xix_i发生的概率分别为Pi,QiP_i,Q_i.

KL散度是非对称的,即

DKL(P  Q)DKL(Q  P)(8)D_{KL}(P \space || \space Q) \neq D_{KL}(Q \space || \space P)\tag{8}
DKL(P  Q)=Pi [log2(Pi)log2(Qi)](9)D_{KL}(P \space || \space Q) = \sum{P_i\space [log_2(P_i)-log_2(Q_i)]}\tag{9}

特别的,DKL(PLabel  QPred)D_{KL}(P_{Label} \space | \space Q_{Pred})表示当用概率分布Q来拟合真实分布P时,产生的信息损耗,其中P表示真实分布,Q表示P的拟合分布

交叉熵

衡量两个概率分布P和Q之间的不确定性程度。交叉熵的数学表达为

H(P, Q)=H(P)+DKL(P  Q)=Pi log2(Qi)(10)\begin{align} H(P, \space Q) &= H(P) + D_{KL}(P\space || \space Q) \\ &= - \sum{P_i}\space{log_2({Q_i})} \tag{10} \end{align}

PyTorch中的CrossEntropyLoss

torch.nn.CrossEntropyLoss相当于torch.softmax + torch.log + torch.nn.nllloss.

import torch.nn as nn

# 使用NLLLoss实现
nllloss = nn.NLLLoss()
predict = torch.Tensor([[2, 3, 1], [3, 7, 9]])
predict = torch.log(torch.softmax(predict, dim=-1))
label = torch.tensor([1, 2])
nllloss(predict, label)
# output: tensor(0.2684)

# 使用CrossEntropyLoss实现
cross_loss = nn.CrossEntropyLoss()
predict = torch.Tensor([[2, 3, 1], [3, 7, 9]])
label = torch.tensor([1, 2])
cross_loss(predict, label)
# output: tensor(0.2684)
+ + + + \ No newline at end of file diff --git "a/docs/Deep-Learning/\345\244\247\346\250\241\345\236\213/Attention-Is-All-You-Need/index.html" "b/docs/Deep-Learning/\345\244\247\346\250\241\345\236\213/Attention-Is-All-You-Need/index.html" new file mode 100644 index 000000000..95ca435ee --- /dev/null +++ "b/docs/Deep-Learning/\345\244\247\346\250\241\345\236\213/Attention-Is-All-You-Need/index.html" @@ -0,0 +1,18 @@ + + + + + +NeurIPS 2017: Attention Is All You Need | 培洋的笔记本📒 + + + + +
+

NeurIPS 2017: Attention Is All You Need

Transformer是Sequence-to-Sequence (Seq2Seq) 模型,模型的输入是向量序列,输出同样是向量序列,且输出的长度由模型经过学习决定。

整体结构

Transformer由Encoder和Decoder组成,编码器和解码器都包含6个Block,整体结构如下图所示。

image-20231119110150110

Encoder

整体结构

Transformer Encoder结构如下图所示。其中,Add指的是残差连接Residual Connection,Norm指的是Layer Normalization。

image-20231115164324713

位置编码(Positional Encoding)

对于输入的句子,对一个词汇的嵌入向量的奇数维度使用sine函数进行编码,对偶数维度使用cosine函数计算编码。

公式如下所示,其中pospos指的是该词汇在整个输入句子中的位置,2i2i以及2i+12i+1指的是该词汇的嵌入向量中的维度,dmodeld_{model}指的是在嵌入层之后嵌入向量的总维度。即对于每个输入词汇,都要计算dmodeld_{model}次位置编码。

PE(pos,2i)=sin(pos100002i/dmodel)(1)PE_{(pos,2i)}=sin(\frac{pos}{10000^{2i/d_{\mathrm{model}}}}) \tag{1}
PE(pos,2i+1)=cos(pos100002i/dmodel)(2)PE_{(pos,2i+1)}=cos(\frac{pos}{10000^{2i/d_{\mathrm{model}}}}) \tag{2}

根据三角函数的性质,对于pos+kpos+k位置的嵌入向量的某一维度(2i2i2i+12i+1)而言,可以表示为pospos位置与kk位置的嵌入向量的2i2i2i+12i+1维度的线性组合,使得位置向量中蕴含了相对位置的信息。

PE(pos+k,2i)=PE(pos,2i)×PE(k,2i+1)+PE(pos,2i+1)×PE(k,2i)PE(pos+k,2i+1)=PE(pos,2i+1)×PE(k,2i+1)PE(pos,2i)×PE(k,2i)(3)\begin{array}{l}PE(pos+k,2i)=PE(pos,2i)\times PE(k,2i+1)+PE(pos,2i+1)\times PE(k,2i)\\PE(pos+k,2i+1)=PE(pos,2i+1)\times PE(k,2i+1)-PE(pos,2i)\times PE(k,2i)\end{array} \tag{3}

最终,位置编码向量的维度与词汇的嵌入维度相同,进行element-wise的相加操作。

InputEmbedding(pos,i)=WordEmbedding(pos,i)+PositionEncoding(pos,i)(4)InputEmbedding(pos,i)=WordEmbedding(pos,i)+PositionEncoding(pos,i) \tag{4}

具体结构

image-20231115164324713

输入向量由Word Embedding和Positional Embedding相加得到。输入序列经过Mutil-Head Self-Attention之后,通过Residual Connection加上自身的输入向量,再经过Layer Normalization,之后送入FCN并进行Residual Connection加上送入FCN的输入自身,最终再进行Layer Normalization,以上构成了一个Encoder Block。每一个Block输出的向量序列长度等于输入的向量序列长度。

Decoder

Decoder的任务是生成输出,可以根据是否一次性生成输出分为Autoregressive(自回归,abbr. AT)以及Non-Autoregressive(非自回归,abbr. NAT)两种模式。

自回归类型的Decoder需要逐步生成输出,并将之前自身输出的所有词汇经过嵌入层后生成token作为下一次的输入,通常每次生成一个词或一个符号。这种方式的缺点是需要保存和更新词表中的所有可能选项,因此在大词汇表上可能会变得非常慢。然而,它的优点是能够利用上下文信息来生成输出,这有助于提高翻译的质量。

非自回归类型的Decoder试图在一次操作中生成整个输出序列。这通常通过使用诸如注意力机制等策略来实现,这些策略允许解码器关注输入序列的不同部分,同时生成输出序列的不同部分。NAT的优点在于其高效性,因为它不需要保存和更新大量的可能选项。然而,由于它不能利用上下文信息来生成输出,因此其生成的输出质量普遍会低于AT。

Autoregressive Decoder(AT)

整体结构

image-20231119102540689

词汇表(Vocabulary)

词汇表(Vocabulary)是一个包含了在特定语言或任务中所有可能出现所有单词或标记的集合。在自然语言处理(NLP)中,词汇表是训练模型时所使用的唯一单词的集合,由具体的生成任务而确定。

Decoder每一步的输出是一个经过Softmax的Probability Distribution(概率分布),代表着词汇表中每一个词汇当前生成的概率,取最大概率值的词汇便是模型当前时间步输出的词汇。

image-20231119094748152

Begin符号

解码器(Decoder)在每个时间步(或每个解码步骤)的输入都来自于前一个时间步自身的输出以及编码器(Encoder)的输出。特别地,首个时间步的输入是Begin符号以及编码器(Encoder)的输出,在每个后续的时间步,解码器的输入会是前一个时间步自身的输出以及编码器(Encoder)的输出,直到生成序列的结束。

特殊符号

Begin符号是在Lexicon中添加的特殊符号,用来表示Decoder生成的开始。Begin符号通常被嵌入到一个低维的连续向量空间中,这个向量空间是通过嵌入层(Embedding Layer)学习得到的,在嵌入层中,离散的符号被映射到一个实数向量。

Begin符号又叫Start符号或SOS符号(Start Of Sentence),都是表示生成的开始。End符号又叫EOS符号(End Of Sentence)。

End符号

在Decoder的生成中,每一个时间步的输出是词汇表中每一个单词经过Softmax之后的概率分布。为了保证生成任务可以通过模型自己停止而不是一直重复,我们向Decoder的输出中加入End符号的生成,即每一次输出除了词汇表的所有词汇外还有End符号的概率,当End符号是在所有词汇中概率最大的词汇时,生成停止。

image-20231119102220262

image-20231119102159884

掩码多头自注意力机制(Masked Multi-Head Self-Attention)

为什么使用掩码多头自注意力

掩码多头自注意力与Transformer训练时采取的Teacher Forcing策略有很大的关系,具体分析见下文《Teacher Forcing与Masked Multi-Head Self-Attention》的讨论环节:Teacher Forcing与Masked Multi-Head Self-Attention

观察Decoder的整体结构,掩码多头自注意力的输入是添加位置编码之后的Decoder当前时间步之前的所有输出单词经过嵌入后的向量表示

掩码多头自注意力机制用于确保在生成序列的过程中,每个位置只能关注到该位置及其之前的位置。这是通过在Self-Attention的计算中应用一个掩码(mask)来实现的。这确保了在生成序列时,每个位置只能查看到它之前的信息,而不能查看到未来的信息,从而实现了自回归性质。

具体来说,添加掩码后的自注意力机制在生成注意力分数时不再考虑输入序列的所有向量。如在输入向量aia^i在计算注意力分数时,只将aia^i的query向量与a1a^1aia^{i}ii个key向量做dot product,而不考虑aia^i之后的输入的key。

提示

对于第ss个时间步,Masked Mutil-Head Self-Attention的输入是时间步ss之前Decoder生成的所有输出单词的嵌入表示。

image-20231119095632569

交叉注意力(Cross-Attention)

交叉注意力是连接Encoder和Decoder的桥梁,也是Decoder输入的重要组成部分。

image-20231119103201335

交叉注意力接收两个输入序列,一个来自编码器(Encoder)的输出序列(通常是输入序列的表示),另一个来自解码器(Decoder),是经过掩码多头自注意力机制的输出序列(通常是正在生成的序列的中间表示)。

在交叉注意力中,每次计算注意力得分的query来自解码器key和value来自编码器。解码器每个向量的查询(Query)与编码器位置的键(Key)进行点积得到了注意力分数,通过Softmax操作后转换为注意力权重,再与编码器位置的值(Value)weighted sum得到加权注意力分数,最终将加权注意力分数求和得到每个输入向量的输出。

image-20231119142212757

Non-Autoregressive Decoder(NAT)

image-20231119103112168

训练(Training)

损失函数

在 Transformer 中,Encoder 不像 Decoder 需要生成序列,因此它通常不涉及标签的预测。Encoder 的训练通常是在整个模型中的联合训练中进行的,通过优化整个模型的损失函数来进行。

Transformer 的整体训练过程一般分为以下几个步骤:

  1. 编码器(Encoder)的正向传播: 输入序列经过编码器的正向传播,产生一组上下文表示。
  2. 解码器(Decoder)的正向传播: 解码器接收上下文表示,并生成目标序列。
  3. 计算损失: 通过比较生成的目标序列与实际目标序列,计算损失。在 Decoder 中,通常使用交叉熵损失函数。
  4. 反向传播: 根据损失,进行反向传播,更新模型参数。这个过程中,梯度通过整个模型传播,包括 Encoder 和 Decoder。

整个模型的参数(包括 Encoder 和 Decoder)都是通过最小化整体损失来进行联合训练的。这是因为整体模型需要协同工作,Encoder 的表示对于 Decoder 的性能至关重要。在训练过程中,梯度从损失函数传播回整个模型,包括 Encoder 和 Decoder,从而更新它们的参数。

需要注意的是,Transformer 模型通常使用的是端到端的训练方式,整个模型的参数是一次性更新的。在某些场景下,你可能会看到对 Encoder 或 Decoder 进行微调(fine-tuning)的情况,但这是在特定应用场景下的调整,不是 Transformer 模型的标准训练方式。

Teacher Forcing

在Transformer的推理阶段,自回归类型的Decoder根据分词方式的不同,一个词汇一个词汇的输出,将当前时间步之前生成的所有词汇作为输入load进入Decoder中。但在训练时如果遵从同样的生成范式会大大降低效率,并且面临则一步错步步错的风险(Error Propagation)。

因此使用Teacher Forcing策略,将Ground Truth一次性喂到Decoder中,使模型更快收敛并且避免误差积累的问题。

image-20231119155803489

但是,自回归Decoder在推理时是一个一个词汇产生的,在产生第ii个词汇时其后续的词汇是未知的,更不用说进行注意力分数的就算了,而在训练过程中使用Teacher Forcing时却可以得到第i+1i+1个及其之后词汇的注意力信息,如果不添加其他策略显然会对模型的泛化能力造成很大的影响,而且这并不符合自回归(Autoregression)的特性。为了解决这个问题,掩码多头注意力机制应运而生,在训练阶段将模型在时间发展顺序的右侧的输入masked掉,防止模型学习到不该学习的注意力。

Teacher Forcing与Masked Multi-Head Self-Attention

参考文献:MultiHead-Attention和Masked-Attention的机制和原理

与Encoder的多头自注意力不同,在Decoder中,为注意力机制应用了掩码,使模型只能关注到当前位置及其之前的位置,而不能访问未来的信息。这解决了引入Teacher Forcing出现的问题,避免了训练与推理阶段的Mismatch,维护了自回归的特性。

具体来说,模拟推理过程中第一个词汇时的场景。当模型只有voc1voc_1词汇向量输入时,在Decoder中,voc1voc_1与自身计算注意力分数,于是有

[o1]=[α1,1][v1](5)\begin{bmatrix}o_1\end{bmatrix}=\begin{bmatrix}\alpha_{1,1}^{\prime}\end{bmatrix}\begin{bmatrix}v_1\end{bmatrix}\tag{5}

我们再模拟训练过程中使用Teacher Forcing,一次性输入为两个词汇voc1voc_1voc2voc_2的情况,于是有

[o1o2]=[α1,1α2,1α1,2α2,2][v1v2](6)\begin{bmatrix}o_1\\o_2\end{bmatrix}=\begin{bmatrix}\alpha_{1,1}^{\prime}&\alpha_{2,1}^{\prime}\\\alpha_{1,2}^{\prime}&\alpha_{2,2}^{\prime}\end{bmatrix}\begin{bmatrix}v_1\\v_2\end{bmatrix} \tag{6}

然而,为了使训练过程中符合推理时自回归的特性,理想的输出应该是

[o1o2]=[α1,10α1,2α2,2][v1v2](7)\begin{bmatrix}o_1\\o_2\end{bmatrix}=\begin{bmatrix}\alpha_{1,1}^{\prime}&0\\\alpha_{1,2}^{\prime}&\alpha_{2,2}^{\prime}\end{bmatrix}\begin{bmatrix}v_1\\v_2\end{bmatrix} \tag{7}

继续扩展,当有nn个输入词汇时,应该有

[o1o2on]=[α1,100α1,2α20α1,nα2,nαn,n][v1v2vn](8)\begin{bmatrix}o_1\\o_2\\\vdots\\o_n\end{bmatrix}=\begin{bmatrix}\alpha'_{1,1}&0&\cdots&0\\\alpha'_{1,2}&\alpha'_2&\cdots&0\\\vdots&\vdots&&\vdots\\\alpha'_{1,n}&\alpha'_{2,n}&\cdots&\alpha'_{n,n}\end{bmatrix}\begin{bmatrix}v_1\\v_2\\\vdots\\v_n\end{bmatrix}\tag{8}

因此,我们需要将当前时间步计算的词汇的时间顺序右侧的输入词汇全部掩码,置为0。

在源码中,有如下片段实现掩码:

if mask is not None:
scores = scores.masked_fill(mask == 0, -1e9)

p_attn = scores.softmax(dim=-1)

在源码中,将mask置为负无穷是因为这是在经过Softmax之前进行的掩码,在经过Softmax之后负无穷小就变成了0。

+ + + + \ No newline at end of file diff --git "a/docs/Deep-Learning/\345\244\247\346\250\241\345\236\213/Diffusion-Model/index.html" "b/docs/Deep-Learning/\345\244\247\346\250\241\345\236\213/Diffusion-Model/index.html" new file mode 100644 index 000000000..a0bc8e4a3 --- /dev/null +++ "b/docs/Deep-Learning/\345\244\247\346\250\241\345\236\213/Diffusion-Model/index.html" @@ -0,0 +1,62 @@ + + + + + +扩散模型(Diffusion Model) | 培洋的笔记本📒 + + + + +
+

扩散模型(Diffusion Model)

提示

在以前的文章图像生成模型中已经大概介绍了目前SOTA的图像生成模型的共同点,并初步了解了Diffusion Model,在这篇文章中将详细讲解扩散模型的数学原理等。

基本概念

首先回顾一下扩散模型的基本概念和生成过程,可以大概分为两步:

  1. Forward Process:对训练集中的图片不断加入与图片shape相同的、从某随机分布中sample出的噪声,直至图片可以被认为是从该随机分布中sample出的矩阵。

    Forward Process又叫做Diffusion Process,在这一步中产生的噪声-加入噪声的图像对可以用来训练Noise Predictor,即从有噪声的图像中预测出其中的噪声,再从输入中减去噪声得到降噪后的图片。

    图像生成的原理

    这一步的目的也同样在之前的文章图像生成模型中提到过:由于根据文字prompt期待生成的图像并不是固定的,可以认为生成的图片在目标域(Target Domain)符合某种分布。因此目前的SOTA模型除了将文字prompt作为输入,还从某随机分布中sample出图片shape的随机向量(矩阵)作为输入,期待模型根据prompt将源域(Source Domain)输入的随机向量映射到目标域的分布,生成对应的图片。

  2. Reverse Process:使用Diffusion Process训练的Noise Predictor,根据文字Prompt对从随机分布中sample出的图片大小的噪声图片进行降噪,得到原图。

image-20231202192659531

值得注意的是,变分自编码器(Variational Auto-Encoder, abbr. VAE)与Diffusion Model非常相似:VAE对训练集中的原始图像使用Encoder将其变换为某种Latent Representation,这种Latent Representation的分布也是符合某种随机分布的,VAE再通过Decoder将期待生成的目标域图像还原出来。

image-20231202222644684

在下面的文章中我们也会学习一下VAE的数学原理,从VAE到Diffusion Model的具体数学推导,可以参考胡老师推荐的论文Understanding Diffusion Models: A Unified Perspective

下面我们以DDPM论文中的原图来分析DDPM的训练与推理过程。

image-20231202232526449

训练过程

  1. 循环开始,重复以下步骤;

  2. 首先从数据集中sample出原始图像x0\mathbf{x}_0

  3. tt是从1,,T1,\ldots,T范围中sample出的一个integer;

  4. ϵ\epsilon是从Normal Distribution中sample出的与x0\mathbf{x}_0相同大小的噪声;

  5. 根据如下规则进行梯度下降,训练Noise Predictor:

    θϵϵθ(αˉtx0+1αˉtϵ,t)2(1)\nabla_{\theta}\left\|\boldsymbol{\epsilon}-\boldsymbol{\epsilon}_{\theta}(\sqrt{\bar{\alpha}_{t}}\mathbf{x}_{0}+\sqrt{1-\bar{\alpha}_{t}}\boldsymbol{\epsilon},t)\right\|^{2}\tag{1}

    首先对x0\mathbf{x}_0ϵ\epsilon根据权重αˉ1,αˉ2,...αˉT\bar{\alpha}_1,\bar{\alpha}_2,...\bar{\alpha}_T做weighted sum产生加入噪声后的图像。通常来说,αˉ1\bar{\alpha}_1αˉT\bar{\alpha}_T是递减的,当在第2步中sample到的tt越大,则原始图像x0\mathbf{x}_0对新图像的贡献越大。

    ϵθ\epsilon_{\theta}是Noise Predictor,其输入是加入噪声的图像以及sample出的tt,而ϵθ\epsilon_\theta训练的Ground Truth就是第3步中sample出的噪声ϵ\epsilon

  6. 直至噪声预测模型ϵθ\epsilon_\theta训练至收敛。

image-20231202235322516

推理过程

  1. 从Normal Distribution中sample出图片大小的噪声xT\mathbf{x}_T

  2. ttT,,1T,\ldots,1范围循环TT次;

  3. 对与每一次以tt计数的循环,若t>1t>1,则从Normal Distribution中sample出z\mathbf{z},否则z=0\mathbf{z}=\mathbf{0}

  4. 根据如下公式得到降噪后的图像:

    xt1=1αt(xt1αt1αˉtϵθ(xt,t))+σtz(2)\mathbf{x}_{t-1}=\frac{1}{\sqrt{\alpha_{t}}}\left(\mathbf{x}_{t}-\frac{1-\alpha_{t}}{\sqrt{1-\bar{\alpha}_{t}}}\boldsymbol{\epsilon}_{\theta}(\mathbf{x}_{t},t)\right)+\sigma_{t}\mathbf{z}\tag{2}

    其中,xt\mathbf{x}_t代表上一步骤中输出的降噪后的图像,xt1\mathbf{x}_{t-1}代表当前步骤即将输出的降噪后的图像,ϵθ\epsilon_\theta代表Noise Predictor预测出的噪声,αˉ1,αˉ2,...αˉT\bar{\alpha}_1,\bar{\alpha}_2,...\bar{\alpha}_T以及α1,α2,...αT\alpha_1,\alpha_2,...\alpha_T是两组权重序列;

  5. 结束本次for循环;

  6. t=1t=1时,得到x0\mathbf{x}_0,即最终降噪后的图像。

image-20231203133323788

+ + + + \ No newline at end of file diff --git "a/docs/Deep-Learning/\345\244\247\346\250\241\345\236\213/GAN/index.html" "b/docs/Deep-Learning/\345\244\247\346\250\241\345\236\213/GAN/index.html" new file mode 100644 index 000000000..4eaf0bff0 --- /dev/null +++ "b/docs/Deep-Learning/\345\244\247\346\250\241\345\236\213/GAN/index.html" @@ -0,0 +1,18 @@ + + + + + +生成式对抗网络(GAN) | 培洋的笔记本📒 + + + + +
+

生成式对抗网络(GAN)

正确发音

How to pronounce Adversarial?

/ˌædvərˈseriəl/

引言

将随机分布作为输入

生成器(Generator)通常接收一个来自潜在空间(latent space)的随机向量作为输入。这个潜在空间通常是一个随机分布,比如均匀分布或正态分布。生成器的任务是将这个随机向量映射成与训练数据相似的样本。

image-20231122102402231

为什么要添加分布

当需要解决的任务需要富有“创造力”时,即根据不同的输入,可以产生多个不一样且正确的输出时。这样的设计使得生成器能够生成多样性的样本,因为每个不同的随机向量都可能导致生成器输出不同的样本。在训练过程中,通过不断调整生成器的参数,使得生成器的输出在数据分布中更难以被判别器区分。

核心思想

GAN的工作原理:

  1. 生成器生成数据: 生成器从潜在空间中采样并生成一些数据。
  2. 真实数据与生成数据进入判别器: 真实数据和生成器生成的数据一起输入判别器。
  3. 判别器训练: 判别器被训练来正确分类真实数据和生成数据。
  4. 生成器训练: 生成器被训练来生成能够欺骗判别器的数据。生成器的目标是生成足够逼真的数据,以至于判别器无法准确区分真假。
  5. 迭代: 生成器和判别器交替训练,迭代进行,直到生成器生成的数据足够逼真。

训练的目标:

  • 生成器目标: 生成更逼真的数据,以欺骗判别器。
  • 判别器目标: 区分真实数据和生成数据,提高对真实数据的分类准确性。

GAN的训练是一个博弈过程,生成器和判别器相互竞争,最终达到平衡,生成器生成的数据足够逼真,判别器也无法准确判别真伪。这种模型在图像生成、风格转换等任务中取得了显著的成功。

具体结构与作用

GAN(Generative Adversarial Network,生成对抗网络)包括两个主要的组件:生成器(Generator)和判别器(Discriminator)。这两个组件通过对抗训练的方式一起学习。

  1. 生成器(Generator): 它负责生成与训练数据相似的新样本。生成器接收来自潜在空间(latent space)的随机向量作为输入,并输出一个与训练数据类似的样本。生成器的目标是欺骗判别器,使其无法区分生成的样本和真实的训练数据。
  2. 判别器(Discriminator): 它负责判别输入的样本是真实的训练数据还是生成器生成的假样本。判别器的目标是尽可能准确地分类输入的样本。

GAN的核心思想是通过对抗过程训练生成器和判别器,不断提高它们的性能。生成器试图生成逼真的样本,而判别器试图正确地区分真实样本和生成样本。这个对抗的训练过程可以被视为在两个分布之间进行的最优控制。

生成器(Generator)

  • 结构: 生成器是一个神经网络,通常是一个反卷积神经网络(Generator Network),其输入通常是一个随机噪声(潜在空间中的点),输出是与训练数据相似的图像或数据。
  • 作用: 生成器的目标是学习生成与真实数据相似的数据。通过迭代训练,生成器的参数被调整,使其生成的数据能够愈发逼真。

Unconditional Generation

Unconditional generation(无条件生成)指的是在生成模型中生成样本时,不受任何条件的约束。在这种情况下,生成器仅根据其学到的分布生成数据,而无需关注特定的输入条件或上下文。

对于生成对抗网络(GAN)或变分自动编码器(VAE)等生成模型,unconditional generation通常表现为从潜在空间中采样,然后将这些样本输入生成器,以生成新的、与训练数据相似的样本。这种生成方式是随机的,因为每次从潜在空间中采样都会导致生成不同的样本。

image-20231122104717264

Conditional Generation

判别器(Discriminator)

  • 结构: 判别器是一个二元分类器,通常是一个卷积神经网络(Discriminator Network)。它的输入可以是真实数据或生成器生成的数据,输出是一个概率,表示输入数据是真实数据的概率。
  • 作用: 判别器的目标是学习区分真实数据和生成器生成的数据。它被训练成对真实数据给出高概率,对生成的数据给出低概率。

image-20231122104853941

训练算法

首先随机初始化生成器和判别器,接下来在每一轮训练中重复以下策略。

第一步,在生成器通过随机噪声神生成样本后,固定生成器的参数,将生成器产生的输出与训练资料中的标签作为判别器的输入,判别器为每个输入样本打分,代表其为真实样本的概率。

为了最小化损失函数使得判别器为真实样本赋分更高,为生成样本赋分更低,设计以下损失函数:

Lossreal=Expdata(x)[logD(x)](1)Loss_{real}=-E_{x\sim p_\text{data}{(x)}}[\log D(x)]\tag{1}

其中,D(x)D(x)是判别器的输出,xx是真实样本,EE是数学期望。

Lossfake=Ezpz(z)[log(1D(G(z)))](2)Loss_{fake}=-E_{z\sim p_z(z)}[log(1-D(G(z)))]\tag{2}

其中,G(z)G(z)是生成器的输出,zz是随机噪声,EE是数学期望。

将真实样本和生成样本的损失相加,形成判别器的总体损失。

Lossdiscriminator=Lossreal+Lossfake(3)Loss_{discriminator}=Loss_{real}+Loss_{fake}\tag{3}

最小化损失函数,更新判别器的参数。

image-20231122110917135

第二步,在判别器参数更新后,固定判别器的参数,随机分布的向量再次输入至生成器中,得到生成样本,此时生成样本被送入参数固定的判别器中得到生成样本属于真实样本的概率。在生成器的训练过程中,我们的目的是让生成器生成的样本尽可能的接近真实样本。

LG=Ezpz(z)[logD(G(z))](4)L_G=-E_{z\sim p_z(z)}[\log D(G(z))]\tag{4}

其中,G(z)G(z)是生成器的输出,D(G(z))D(G(z))是生成样本输入到判别器后的输出,zz是随机噪声,EE是数学期望。

image-20231122142205471

+ + + + \ No newline at end of file diff --git "a/docs/Deep-Learning/\345\244\247\346\250\241\345\236\213/Image-Generation-Models/index.html" "b/docs/Deep-Learning/\345\244\247\346\250\241\345\236\213/Image-Generation-Models/index.html" new file mode 100644 index 000000000..c1cbc3c6a --- /dev/null +++ "b/docs/Deep-Learning/\345\244\247\346\250\241\345\236\213/Image-Generation-Models/index.html" @@ -0,0 +1,18 @@ + + + + + +图像生成模型 | 培洋的笔记本📒 + + + + +
+

图像生成模型

回顾文字生成的两种方法

在文字生成模型中根据模型的输入是否与前一时刻的输出有关可以分为自回归AR模型与非自回归NAR模型两种,这两种生成方式的利与弊在图像生成中仍然存在。

自回归方法(AR)

Transformer-based的文字生成模型有很多,如GPT模型,大多使用自回归(Autoregressive, abbr. AR)的方法逐token生成。

什么是ARM

ARM(Autoregressive Model,自回归模型)是一类用于建模时间序列数据的统计模型,其中当前时刻的观测值被认为是过去时刻观测值的线性组合,加上一个随机误差项。这类模型的核心思想是,当前时刻的数据依赖于先前时刻的数据。

image-20231125212727371

若把文字生成的AR方法对应到图像生成中的使用,即一个一个像素生成图像。由于当前对高清图像像素的需求越来越高,自回归的生成方式导致速度非常缓慢,但优点是后面生成的每一个像素都考虑了之前的所有像素,从而使生成的图像更清晰、更细腻、更加符合预期。

非自回归方法(NAR)

若使用NAR非自回归的方法一次生成所有像素,各像素在生成时无法考虑之间的语义信息,生成的图像质量普遍低于自回归方法生成的图像。

image-20231127103421435

目前图像生成模型的共同点

VAE、GAN以及Diffusion Model等生成模型,都不只是单独使用文字作为输入来生成图像,而是使用了从已知的随机分布(e.g. Normal Distribution)中sample出向量作为模型额外输入的方法。

大致的思想如下图所示,由于期待生成的图像并不是固定的,可以将预期输出看作是一个分布,即P(xy)P(x|y),而图像生成模型需要完成的任务就是将输入的从某一随机分布中sample出的向量对应到图像预期输出分布中的某一个图像。

信息

总结:由于根据文字prompt期待生成的图像并不是固定的,可以认为生成的图片在目标域(Target Domain)符合某种分布。因此目前的SOTA模型除了将文字Prompt作为输入,还从某随机分布中sample出图片shape的随机向量(矩阵)作为输入,期待模型根据prompt将源域(Source Domain)输入的随机向量映射到目标域的分布,生成对应的图片。

image-20231127104041455

生成模型的共同结构

Stable Diffusion是目前图像生成的SOTA模型之一,在本章中我们快速的了解一下Stable Diffusion的大致框架以及原理。

通用框架概览

目前,如Stable Diffusion等SOTA图像生成模型都具备以下所示的三个模块,通常情况下这三个模块分开训练,最终通过特殊的逻辑和规则组合在一起。

  • Text Encoder:根据输入的text prompt进行嵌入表示
  • Generation Model:接受Text Encoder输出的prompt表示以及从随机分布sample出的图像大小的向量,得到“中间产物”,中间产物有以下两种情况:
    1. 具有视觉意义但经过压缩比较模糊的图像
    2. 不具备视觉特征的矩阵(Latent Representation)
  • Decoder:以上述的“中间产物”作为输入,生成出高清图像

通用框架的三个组成部分如下图所示:

image-20231127173905238

再附上Stable Diffusion、DALL-E系列以及Google的Imagen的结构说明。

其中Imagen将压缩版本的图片作为Generation Model的中间产物,Stable Diffusion以及DALL-E将Latent Representation作为中间产物。

image-20231127195336960

image-20231127195527792

img

根据Imagen的实验结果,相对于Decoder即Diffusion Model的模型大小,Text Encoder的模型大小对图像生成模型的影响是非常大的。Text Encoder可以帮助模型理解prompt中在训练资料的文字-图像对中没有出现的新的词汇,从而提高图像生成的表现。

Scaling text encoder size is more important than U-Net size. While scaling the size of the diffusion model U-Net improves sample quality, we found scaling the text encoder size to be significantly more impactful than the U-Net size.

Photorealistic Text-to-Image Diffusion Models with Deep Language Understanding

image-20231127201338956

Benchmark

下面介绍两种用于评估图像生成模型的常用Benchmark:FID与CLIP Score。

FID(Fréchet Inception Distance)

FID提供一个Pre-trained的CNN,该CNN通常使用预训练的Inception v3模型。在计算FID时,生成图像和真实图像分别输入到预训练的CNN中,提取出各自的特征表示向量(Representation)。这两个Representation越接近,代表输出的图像越像预期的“真实”图片。

在FID中,做出了如下重要的假设:将生成的图像真实的图像经过CNN输出的Representation看作是sample自两个高斯分布的随机变量。然后,通过计算两个特征向量的均值和协方差矩阵来得到两个高斯分布的参数。最后,利用两个高斯分布之间的Fréchet距离来衡量生成图像与真实图像之间的差异。

FID=μ1μ222+tr(Σ1+Σ22(Σ1Σ2)12)(1)\mathrm{FID}=\left\|\mu_1-\mu_2\right\|_2^2+\mathrm{tr}\left(\Sigma_1+\Sigma_2-2\left(\Sigma_1\Sigma_2\right)^{\frac12}\right)\tag{1}

其中,μ1\mu_1μ2\mu_2分别是第一个和第二个高斯分布的均值向量;Σ1\Sigma_1Σ2\Sigma_2则是它们的协方差矩阵;tr()\mathrm{tr}(\cdot)表示矩阵的迹运算。

高斯分布的均值向量从观测到的数据中计算出来的。对于一个nn-维高斯分布,其均值向量可以表示为一个长度为nn的列向量,其中的每一个元素都是一个特定维度的平均数,这可以通过在每个维度上进行简单的算术平均来完成。

值得注意的是,FID指标需要一定数量的生成图像和真实图像来进行统计估计。这是因为FID的计算是基于两个高斯分布之间的距离计算的,因此需要足够多的样本数量才能够获得较为准确的概率分布估计。

image-20231127202031894

CLIP Score

CLIP Score中的CLIP指的就是OpenAI的CLIP(Contrastive Language-Image Pre-Training)模型

具体来说,CLIP Score的计算方式是将用于生成图像的文字prompt输入至CLIP的Text Encoder中得到一个Representation,再将对应prompt生成的图像输入至CLIP的Image Encoder中得到对应的Representation,计算二者之间的距离,即得到CLIP Score。分数越小,代表文字和图像更align。

image-20231128143336879

通用框架解析

Generation Model

Generation Model的生成过程其实就是Denoise的过程。具体来讲,输入文字Prompt以及从随机分布中sample出的与预期生成图像具有相同大小的噪声矩阵,预测出输入图片中的噪声分布,在输入图像中减去噪声,输出去噪后的图像。Generation Model的最终输出是中间产物,这个中间产物可以是图像的压缩版本,也可以是一个Latent Representation。因此,训练Generation Model其实就是训练一个Noise Predictor

中间产物是压缩图像

当Generation Model的中间产物是压缩图像时,如Diffusion模型,在训练Generation Model时的训练资料可以通过对数据集中的原始图片添加与图像大小一致地从已知随机分布中sample出的噪声来获得。此时加入噪声后的图像可以作为压缩图像输入至Noise Predictor中,而需要预测出的噪声分布的Ground Truth就是sample出的噪声。

中间产物是Latent Representation

中间产物是Latent Representation时,同样采取从已知随机分布中sample出噪声再添加到网络的输入作为生成Ground Truth的策略,但是还额外需要一个Encoder来产生Latent Representation

这里的Encoder使用数据集中的图片(即期待模型最终输出的图片)作为输入,输出该图片的某种Latent Representation,经过从随机分布中sample出的噪声的加入,输入至Noise Predictor中。从随机分布中sample出的噪声就是Noise Predictor的Ground Truth。

Decoder

Generation Model的训练需要大量成对的(Pair)文字-图像资料。而对于Decoder来说,它的输入是中间产物(即Generation Model生成的压缩的图片或Latent Representation),输出的是还原出的高分辨率的图像,它的训练是不需要额外pair的文字-图像资料

中间产物是压缩图像

当Generation Model的输出是压缩版本的图像时,Decoder的训练资料可以将从互联网上fetch到的图像作为label,并对这些图像做Down Sampling来获得压缩版本的图像作为Decoder训练时的输出。

image-20231128145010346

中间产物是Latent Representation

当中间产物是Latent Representation时,需要训练一个Auto-Encoder,使用Encoder-Decoder的结构训练生成模型的Decoder。

具体来讲,向Encoder中输入数据集中的高清预期图片,Encoder将其转换为某种Latent Representation,Decoder再吃Encoder的输出,最终输出还原出的高清label图片,训练的方向是让输出的图片与输入的图片越接近越好。在这个过程中,不需要额外的标注,Auto-Encoder和生成模型的Decoder一起更新参数。

image-20231128150641374

常见图像生成模型速览

在这个模块大致介绍目前常见的几种图像生成模型,其中Diffusion Model以及GAN将在以后的文章中详细讲解。

变分自编码器(VAE)

变分自编码器(Variational Auto-Encoder, abbr. VAE)的训练策略是使用Encoder将输入图像对应(嵌入)到一个符合某随机分布的向量,再将该向量作为Decoder的输入,加上文字prompt后,期待模型产生合适的图像。

image-20231127104842038

提示

VAE在训练过程中,期待Ecoder输入多张图片后,输出的向量在一起符合某个随机分布(e.g. Normal Distribution),并不是Encoder直接输出一个Distrubution。

基于流的生成模型(Flow-Based Generative Model)

基于流的生成模型采用特殊的网络结构的设计,将Encoder设计为可逆的(invertible),在训练阶段喂入多张图片,期待模型的向量符合某个随机分布。而在预测阶段,由于Encoder是可逆的,输入从该随机分布中sample出来的向量,期待输出对应的图像。

注意,由于Encoder是可逆的,在训练阶段其输入的图片矩阵的形状应该等于输出的随机分布向量的形状,在推理阶段亦然。

image-20231127111749208

生成对抗网络(GAN)

GAN模型的结构分为Generator和Discriminator,其中Generator接受来自随机分布的向量,产生预期图像;Discriminator接受生成器输出的图像或真实图像,输出输入的图像是真实图像的概率。在训练过程中,通过固定生成器参数来更新辨别器参数、固定辨别器参数更新生成器参数的往复交替训练来形成“两个网络对抗”的效果,从而使得生成器生成的图像更逼真(与输入的真实图像更近似)、辨别器识别是否是输入的真实图像的精确度更高。

image-20231127113242641

扩散模型(Diffusion Model)

扩散模型的核心思想是对输入的图片加入噪声使其成为从某一随机分布sample出的向量,并在这个过程中训练出Noise Predictor;在生成图片时,输入从该随机分布中sample出的向量,使用训练出的Noise Predictor对噪声denoise从而获得生成的图片。

image-20231127112447752

DDPM(Denoising Diffusion Probabilistic Models)模型为例,模型在denoise时为每个denoise步骤赋予一个编号,越早进行denoise的步骤编号越大,因此,这个编号也代表着图像中噪声的严重程度。在Denoise模块中,模型根据输入的带有噪声的图片、文字prompt以及噪声的严重程度(即denoise的步骤)预测出该图片中噪声的分布,然后将输入的图片中减去预测出的噪声得到denoise后的图片。

Denoise模块的目标是预测出输入的噪声图片中的噪声,其资料可以通过对数据集中的图片不断加入从Gaussian Distribution中sample出的噪声的方法来获得,这个加噪声的过程我们称为Forward Process or Diffusion Process。此时将加入噪声后的图片、文字prompt以及denoise的步骤序号作为输入,sample出的噪声作为Ground Truth对noise predictor进行训练。

+ + + + \ No newline at end of file diff --git "a/docs/Deep-Learning/\345\244\247\346\250\241\345\236\213/Prompt Learning/Undergraduate-Dissertation/index.html" "b/docs/Deep-Learning/\345\244\247\346\250\241\345\236\213/Prompt Learning/Undergraduate-Dissertation/index.html" new file mode 100644 index 000000000..6253fdb01 --- /dev/null +++ "b/docs/Deep-Learning/\345\244\247\346\250\241\345\236\213/Prompt Learning/Undergraduate-Dissertation/index.html" @@ -0,0 +1,18 @@ + + + + + +本科毕业论文:基于 Prompt Learning 的视觉-语言大模型在图像生成中的应用与研究 | 培洋的笔记本📒 + + + + +
+

本科毕业论文:基于 Prompt Learning 的视觉-语言大模型在图像生成中的应用与研究

本篇论文主要基于 IPL 的思想实现。本仓库大部分从 IPL-Zero-Shot-Generative-Model-Adaptation fork 而来并做出了一定修改。

依赖

创建 Anaconda 虚拟环境

conda create -n ipl python=3.8
conda activate ipl

安装依赖

请确保 NVIDIA 驱动、CUDA 以及 PyTorch 之间版本互相匹配。

conda install pytorch torchvision torchaudio pytorch-cuda=11.8 -c pytorch -c nvidia
pip install ftfy regex tqdm ninja
pip install git+https://github.com/openai/CLIP.git

下载预训练生成器

预训练的源域生成器可以通过 Google Drive 或者 Tsinghua Cloud 下载,并将其置于 ./pre_stylegan 文件夹中。

概述

技术细节

prompts 的初始化

ctx_init 参数用于初始化 prompts,官方提供的演示 context 是a photo of a

source_prompts = [prompt_prefix + " " + args.source_class]
target_prompts = [prompt_prefix + " " + args.target_class]

源域的初始提示词 source_prompts 是 ctx_init 与源域标签的组合。若源域标签为 photo,则源域的初始提示词是 a photo of a photo。目标域的初始提示词同理。

prompts 的 tokenize 与 embedding

源域以及目标域的初始提示词接下来会进行 tokenize:

source_tokenized_prompts = torch.cat([clip.tokenize(p) for p in source_prompts]).to(device)
# (1, 77) 'sot a photo of a photo eot' 在经过tokenize后为tensor [[49406, 320, 1125, 539, 320, 1125, 49407, etc]]
# 77是CLIP在tokenize方法中缺省的context_length,超过context_length将被truncate,不足的将用0补齐
target_tokenized_prompts = torch.cat([clip.tokenize(p) for p in target_prompts]).to(device)
# (1, 77) 'sot a photo of a disney' 在经过tokenize后为tensor [[49406, 320, 1125, 539, 320, 4696, 49407, etc]]
# 77是CLIP在tokenize方法中缺省的context_length,超过context_length将被truncate,不足的将用0补齐

tokenize 是 CLIP 对送入的 prompt 字符串进行标记化处理,在头部和尾部添加 startoftext 以及 endoftext 标记,最终为两个首尾标记和全部单词生成 int 标记。其中 CLIP 模型缺省的 context_length 是77,若 prompt 大于 77 会进行截断(truncate),若小于 77 会进行补零,因此 source_tokenized_promptstarget_tokenized_prompts 的形状均为 (1, 77)。

在提示词标记化之后,将进行嵌入表示 embedding:

source_embedding = clip_model.token_embedding(source_tokenized_prompts).type(clip_model.dtype)
# (1, 77, 512) 其中512是CLIP中的n_dim,token_embedding层的词嵌入的维度
target_embedding = clip_model.token_embedding(target_tokenized_prompts).type(clip_model.dtype)
# (1, 77, 512) 其中512是CLIP中的n_dim,token_embedding层的词嵌入的维度

compute_text_features 的实现细节

在 Mapper 生成 prompts 后进行 prompts 的特征提取时,需要传入 tokenize 之后的人工初始化 prompt(‘a photo of a photo.’或‘a photo of a disney.’),用于选择 eot 符号对应的维度来进行特征投影(因为 eot 作为整个句子的结尾,被认为该维度包含更多的信息。具体做法:由于在 tokenize 之后,eot 符号对应的维度的值最大,因此可使用 argmax 来定位),以保证最后得到的特征形状与图像特征提取的输出形状相同,使得后续可以进行对比学习的损失计算。

训练 stage 1

Z空间与W空间

# Z空间到W空间的变换
sample_z = mixing_noise(args.batch_mapper, 512, args.mixing, device)
# (batch_size, 512)
sample_w = net.generator_frozen.style(sample_z)
# (batch_size, 512)

Z 空间和 W 空间是 StyleGAN 模型中两种不同的隐变量空间,分别用于控制生成图像的随机特征和样式信息。W 空间通过对 Z 空间的映射得到。

  1. Z 空间(Latent Space Z)

    • Z 空间是随机噪声空间,通常由随机噪声向量组成,表示了图像的随机特征。
    • 在 StyleGAN 中,Z 空间的维度通常为 512 维。这意味着一个 Z 向量由 512 个数字组成,每个数字表示了图像的一个随机特征的强度或者方向。
  2. W 空间(Style Space W)

    • W 空间经过特征解耦的隐空间,与 Z 空间相比更加解耦合。

    • 在 StyleGAN 中,W 空间的维度也通常为 512 维,是通过mapping network进行映射得到的,mapping network由PixelNorm层与EqualLinear层构成。以下代码节选自sg2_model.py

      '''mapping network'''
      layers = [PixelNorm()]

      for i in range(n_mlp):
      layers.append(
      EqualLinear(
      style_dim, style_dim, lr_mul=lr_mlp, activation="fused_lrelu"
      )
      )

      self.style = nn.Sequential(*layers)
  3. Z 空间与 W 空间的关系

    • 在 StyleGAN 中,通常会先将一个 Z 向量映射到 W 空间,然后再将 W 向量输入到生成器网络中生成图像。
    • Z 空间提供了初始随机噪声,而 W 空间则通过特征解耦提供更多控制图像风格的灵活性。通过对 Z 和 W 之间的映射以及 W 在生成器中的应用,StyleGan 实现了高度可控且具有良好生成效果的图像合成。

损失函数

在代码中,stage 1 的损失函数是 global_clip_loss,该损失由三部分组成:

  1. 对比学习损失:Mapper 生成的源域 prompts 的特征(注意,这里的 prompts 特征是与人工初始化的 prompts 的特征做过 element-wise 相加后的特征)与源域图像特征的余弦相似度组成的对比学习损失;
  2. 目标域正则化损失:Mapper 生成的目标域 prompts 的特征与目标域文本标签特征的余弦相似度,这里生成的目标域 prompts 特征同样也是与人工初始化的 prompts 做过加法的。注意该损失有权重 lambda_l
  3. 源域正则化:计算生成的源域prompts与源域标签之间的余弦相似度,由 lambda_src 控制,默认是 0。

训练 stage 2

确定目标域生成域需要更新的层

在训练的第二阶段进行前向传播时,需要先对目标域生成器(generator_trainable)的所有层进行 unfreeze,然后对更新哪些层做出选择,承担选择任务的功能函数:model.ZSSGAN.ZSSGAN.determine_opt_layers,最后 freeze 所有层后再 unfreeze 选择的网络层。

if self.training and self.auto_layer_iters > 0:
self.generator_trainable.unfreeze_layers() # unfreeze
train_layers = self.determine_opt_layers() # layer to train

if not isinstance(train_layers, list):
train_layers = [train_layers]

self.generator_trainable.freeze_layers()
self.generator_trainable.unfreeze_layers(train_layers) # unfreeze

具体选择带更新网络层的策略:

将 W 空间的隐向量送入目标域生成器(SG2Generator)中,并进行反向传播,此时可以通过反向传播后 W 空间隐向量不同维度的更新幅度来衡量不同网络层的影响力,因此选出更新幅度最大的维度就可以确定在 Model Adaption 中需要更新的网络层。

之所以 W 空间编码在 n_latent 维度上的序号就代表着对应的网络层数的序号,是因为 StyleGAN 生成器的结构决定了这一点:StyleGAN 生成器中,W 空间编码的不同维度会被送入生成器网络的不同层,控制这些层的特征映射 (feature mapping)。具体来说,W 空间编码的每个维度会被重复 n_latent 次,作为该层的风格向量 (style vector),通过 AdaIN (Adaptive Instance Normalization) 层控制该层的特征映射。因此,W 空间编码的第 i 个维度会影响生成器网络中第 i 层的特征映射。当某个维度的 W 值被更新的程度较大时,就意味着该维度对应的层在生成目标图像时起到了重要作用,需要被优化。

损失函数

stage 2 的损失函数是 CLIP Loss 类中的 clip_directional_loss,该损失函数由两部分组成:

  1. edit_direciton:源域生成器与目标域生成器生成的图片在经过 image encdoer 后做 element-wise 的相减,最后除以自身的 L2 Norm 方便后续与 target_direction 计算余弦相似度
  2. target_direction:Mapper 产生的源域和目标域 prompts 的 text_features 做element-wise相减后,最后初一自身的 L2 Norm 以便后续与 edit_direction 计算余弦相似度

定量分析指标

参考文献:GAN 的几种评价指标

  1. Inception Score(IS)

    评估图像的质量和多样性

    质量:把生成的图片 xx 输入 Inception V3 中,得到输出 1000 维的向量 yy,向量的每个维度的值对应图片属于某类的概率。对于一个清晰的图片,它属于某一类的概率应该非常大,而属于其它类的概率应该很小。用专业术语说, p(yx)p(y|x)​ 的熵应该很小(熵代表混乱度,均匀分布的混乱度最大,熵最大)。

    多样性: 如果一个模型能生成足够多样的图片,那么它生成的图片在各个类别中的分布应该是平均的,假设生成了 10000 张图片,那么最理想的情况是,1000 类中每类生成了 10 张。转换成术语,就是生成图片在所有类别概率的边缘分布 p(y)p(y)​ 熵很大(均匀分布)。

    因此,对于 IS 我们需要求的两个量就是 p(yx)p(y|x)p(y)p(y)。实际中,选取大量生成样本,用经验分布模拟 p(y)p(y)

    p^(y)=1Ni=1Np(yx(i))\hat{p}(y)=\frac{1}{N}\sum_{i=1}^{N}p(y|\mathbf{x}^{(i)})

    Inception Score 的完整公式如下:

    IS(G)=exp(ExpgDKL(p(yx)p(y)))\mathbf{IS}(G)=\exp\left(\mathbb{E}_{\mathbf{x}\sim p_g}D_{KL}\left(p(y|\mathbf{x})||p(y)\right)\right)

    通常计算 Inception Score 时,会生成 50000 个图片,然后把它分成 10 份,每份 5000 个,分别代入公式计算 10 次 Inception Score,再计算均值和方差,作为最终的衡量指标(均值±方差)。但是 5000 个样本往往不足以得到准确的边缘分布 p(y)p(y)​,尤其是像 ImageNet 这种包含 1000 个类的数据集。

    StyleGAN-nada 以及 IPL 在经过 batch_size 为 2,iteration 为 300 的训练后(其中 IPL 的 Mapper 是以 batch_size 为 32,iteration 为 300 进行训练的),二者的 IS 分别为 (2.2960, 0.2042) 以及 (2.6420, 0.1959)

  2. Fréchet Inception Distance(FID)

    评估目标域的风格

    计算 IS 时只考虑了生成样本,没有考虑真实数据,即 IS 无法反映真实数据和样本之间的距离,IS 判断数据真实性的依据,源于 Inception V3 的训练集 ImageNet,在 Inception V3 的“世界观”下,凡是不像 ImageNet 的数据,都是不真实的,都不能保证输出一个 sharp 的 predition distribution。因此,要想更好地评价生成网络,就要使用更加有效的方法计算真实分布与生成样本之间的距离。

    FID 距离计算真实样本,生成样本在特征空间之间的距离。首先利用 Inception 网络来提取特征,然后使用高斯模型对特征空间进行建模,再去求解两个特征之间的距离,较低的 FID 意味着较高图片的质量和多样性。

    StyleGAN-nada 以及 IPL 在经过 batch_size 为 2,iteration 为 300 的训练后(其中 IPL 的 Mapper 是以 batch_size 为 32,iteration 为 300 进行训练的),二者的 FID 分别为 84 以及 58

  3. Single Image Fréchet Inception Score(SIFID)

    FID 测量生成的图像的深层特征分布与真实图像的分布之间的偏差。在 ICCV 2019 Best Paper 中提出了 SIFID,只使用一张真实目标域的图像。与 FID 不同,SFID 不使用 Inception Network 中最后一个池化层之后的激活矢量(每个图像一个向量),而是在第二个池层之前的卷积层输出处使用深层特征的内部分布(feature map 中每个位置一个向量)。最终 SIFID 是真实图像和生成的样本中这些特征的统计数据之间的 FID。

  4. Structural Consistency Score(SCS)

    评估图像的结构保存能力

  5. Identity Similarity(ID)

    评估图像的特征保存能力

新增功能

自定义图像风格迁移

新增了自定义图像风格迁移功能。

HyperStyle 中的 e4e encoder 将自定义的真实图像编码至 StyleGAN2 中的 W 空间生成 latent codes,再将其分别输入至源域生成器以及目标域生成器以代替原始的从正态分布中 sample 出的随机向量生成的 w_codes,从而得到相应的图片。其中 e4e encoder 来源于 HyperStyle 提供的预训练 checkpoint。

使用方法:运行 inference.py,设置对应的参数,如生成器以及 e4e encoder 的路径、图像路径等,最后运行即可。

修改日志

  1. 第一次尝试只加载了 w_encoder 类及其对应 checkpoint 参数,导致并未将真实图片编码到 StyleGAN 的 W 空间中,没有 inversion 出合理的结果
  2. 第二次尝试使用了 restyle_e4e_encoder,但是没有使用 dlib 进行 alignment,也没有使用 restyle 模型在反演时使用的多次进行前向传播来修正 latent code 的策略。此次尝试虽然反演出了合理的人像,但是人像的特征保存能力非常弱
  3. 第三次尝试解决了上一次发现的问题,加入 dlib 提供的 landmark 检测以实现 alignment,并且使用 run_loop 函数在 restyle_e4e_encoder 中进行多次前向传播以修正得到的 W 空间的 latent code,效果较好
  4. 对比 pSp 和 e4e encoder,pSp 对人脸图像的还原能力较强,但是会导致目标域图像具有随机的彩色光晕

问题提出与改进

训练阶段人工 prompts 的作用是什么?

作用

  1. 人工设计的 prompts 在计算 text_features 时用于定位 eot 层符号所表示的维度来进行投影,但不参与 text_features 的实际计算
  2. 在训练 Mapper 的 stage 1 的损失函数中,在计算对比损失函数时,Mapper 学习到的 prompts 的文字特征特征会与人工设计的 prompts 的文字特征进行 element-wise 的相加,最后再与 源域生成器得到的图片的图像特征进行对比损失计算

思考

IPL 方法对 Mapper 学习到的 prompts 除了(1)使用对比学习使 prompts 学习到源域图片的特征以及(2)使用域正则化使得 prompts 向目标域标签对齐之外,并没有使用其他与人工设计的 prompts 有关的正则化方式来约束 prompts 的学习,因此人工设计的 prompts 可能并没有起到太大的约束作用。

如果对比学习损失是为了让 Mapper 自监督学习到图片的特征外,那么是否可以对域正则化损失进行改进,约束学习到的 prompts 向人工设计的初始化 prompts 对齐,以实现类似于 Stable Diffusion 类似的 prompts 控制图像生成的效果。

Mapper 结构的设计

Mapper 的作用是从 W 空间的隐式代码中学习出符合源域图片特征以及符合目标域文字特征的 prompts。

原始

+ + + + \ No newline at end of file diff --git "a/docs/Deep-Learning/\345\244\247\346\250\241\345\236\213/Self-Attention/index.html" "b/docs/Deep-Learning/\345\244\247\346\250\241\345\236\213/Self-Attention/index.html" new file mode 100644 index 000000000..49beb6df1 --- /dev/null +++ "b/docs/Deep-Learning/\345\244\247\346\250\241\345\236\213/Self-Attention/index.html" @@ -0,0 +1,29 @@ + + + + + +自注意力(Self-Attention) | 培洋的笔记本📒 + + + + +
+

自注意力(Self-Attention)

认识CNN的局限性

输入与输出的局限性

CNN模型的输入向量的形状是固定的,其输出向量的形状也是固定的或可以根据不同的下游任务而唯一确定,即输入形状与下游任务共同确定了一个CNN模型的架构,具有较强的固定性。

信息

在视觉中,输入大多为数字图像,其形状可以大致分为由尺寸和通道数来决定。

从输入图像的尺寸看,当CNN中没有全连接层时,本质上可以接受任意尺寸的输入,但这是狭隘的。若考虑其下游任务以及输出,如FCN(Fully Convolution Network),FCN通过最后通过反卷积将tensor还原到原始图像尺寸,即在CNN中,输入与输出(下游任务的要求)都影响着CNN网络的结构。

从通道数看,CNN本质上可以接受任意通道数的图像输入,但是其模型效果将会受到极大的影响。以一个使用通道数为3的数据集进行训练的CNN模型,但在测试阶段分别使用通道数为 1 和 6 的数据进行推理的情形为例,进行分析:

  1. 通道数为1的测试集:
  • 情况: 如果使用通道数为 1 的数据进行推理,即灰度图像,而模型在训练时是使用 RGB 数据集训练的,模型可能会受到一些影响。
  • 解释: 模型可能在训练时学到了关于颜色的特定信息,而在测试时,如果输入是灰度图像,那些颜色信息将不可用。
  • 建议: 在这种情况下,模型可能会失去对颜色信息的敏感性,可能需要进行进一步的调整或微调,以适应灰度图像的特性。
  1. 通道数为6的测试集:
  • 情况: 如果使用通道数为 6 的数据进行推理,模型可能会面临额外的挑战,因为它在训练时只见过 3 个通道的数据。
  • 解释: 模型在训练时学到的权重是基于 3 个通道的数据的,对于额外的通道,模型可能无法有效利用这些信息。
  • 建议: 对于通道数不匹配的情况,可以考虑进行通道的适当组合或调整。这可能包括降低通道数(例如,只使用前 3 个通道),或者通过某种方式将 6 个通道映射到 3 个通道,例如通过某种特定的数据预处理。

当模型的输入更复杂(sophisticated),是长度不定的向量序列(sequence)时,CNN不能很好地处理,且不能解决输出由输入和模型自行决定的下游任务,如生成类任务。

关联上下文信息的局限性

CNN中存在局部连接和权值共享的归纳偏置:

  • 局部连接:CNN使用卷积层通过滑动卷积核在输入上进行局部感受野的操作。每个神经元只与输入的一小部分区域相连,这意味着每个神经元只能接触到局部的上下文信息。
  • 权值共享: 权值共享的主要思想是,对于输入图像的不同位置使用相同的权重参数进行卷积操作。这意味着,无论卷积操作发生在图像的左上角、右下角,或者其他任何位置,都使用相同的卷积核进行权值计算。CNN的权值共享使得模型能够学习到图像中的局部特征,这也是一种对于上下文的假设。相邻位置上的权重共享使得模型能够对局部结构进行建模,这种权重共享使得CNN具有更强的归纳偏置。
提示

在多通道卷积中,卷积核不同通道之间的权重参数是独立的。这使得网络能够学习不同通道之间的特征组合。这种设计有效地捕捉了输入数据中的多通道信息,提高了网络的表达能力。

CNN的设计理念认为:在图像任务中,局部结构通常更为重要,局部连接和权值共享使得CNN更适用于图像处理等任务。但也正是这种设计理念,使得CNN在面临长输入序列时不能很好地综合上下文信息、提取位置信息,因此Self-Attention应运而生,允许每个位置关注到序列中地所有其他位置。这种全局关联性质使得Transformer能够捕捉序列中的长距离依赖关系。

Self-Attention的原理

什么是Self-Attention

A self-attention module takes in nn inputs and returns nn outputs. What happens in this module? In layman’s terms, the self-attention mechanism allows the inputs to interact with each other (“self”) and find out who they should pay more attention to (“attention”). The outputs are aggregates of these interactions and attention scores.

Self-Attention接受任意向量数量的向量序列的输入,输出每一个向量所有向量(包括自身)的注意力分数。这使得Self-Attention在捕捉长距离依赖和处理序列中的全局关系时非常有效。

Self-Attention的核心思想

自注意力机制的核心思想是为序列中的每个向量分配一个权重(即注意力分数),该权重表示该元素与其他元素的关联强度。这个权重是通过计算输入序列中所有元素与当前元素之间的关系来确定的。通常,这个计算过程使用一个可学习的权重矩阵来完成,即用来生成Key,Query以及Value的权重矩阵。

Self-Attention的实现

定义输入

Self-Attention的输入是向量序列,其向量数量是任意的,计算每个输入向量之间的注意力分数。在本例中输入向量个数为3,同时为了统一性分析,计输入向量个数为batchbatch个。

# define the input, which has a shape of (3, 4)
inputs = [[1, 0, 1, 0], [0, 2, 0, 2], [1, 1, 1, 1]]
inputs = torch.tensor(inputs, dtype=torch.float32)

img

初始化权重矩阵

每个输入向量都会与3个权重向量做乘法得到3个新的向量,分别为key,query以及value。在本例中将新的向量维度设为3,由于输出的k、q、v矩阵大小均为(3,3)(3, 3),因此每个权重矩阵的形状应该是(4,3)(4, 3)。为了统一性分析,计key,query以及value各向量维度为numnum

In a neural network setting, these weights are usually small numbers, initialised randomly using an appropriate random distribution like Gaussian, Xavier and Kaiming distributions. This initialisation is done once before training.

在实际应用中,权重通常是较小的数字,通过适当的随机分布(比如高斯、Xavier和Kaiming分布)进行随机初始化。

# define the weights for keys, queries and values
w_key = torch.tensor([[0, 0, 1], [1, 1, 0], [0, 1, 0], [1, 1, 0]], dtype=torch.float32)
w_query = torch.tensor([[1, 0, 1], [1, 0, 0], [0, 0, 1], [0, 1, 1]], dtype=torch.float32)
w_value = torch.tensor([[0, 2, 0], [0, 3, 0], [1, 0, 3], [1, 1, 0]], dtype=torch.float32)

计算key,query以及value

# compute keys, queries and values
keys = inputs @ w_key
queries = inputs @ w_query
values = inputs @ w_value
print("keys:\n", keys) # (3, 3)
print("queries:\n", queries) # (3, 3)
print("values:\n", values) # (3, 3)

image-20231106192612109

计算原始的注意力分数

我们要为每一个输入向量计算它对所有向量的注意力分数,包括对自身的。

原始注意力分数的计算方式为,使用自身的query分别与所有向量的key做内积(dot product),得到的scalar数量与输入向量个数相同,都为batchbatch,即scores矩阵的形状应为(batch,batch)(batch, batch)

# compute raw self-attention scores
scores = queries @ keys.T
print("attention scores:\n", scores)

注意,代码中提供的是计算所有向量的注意力分数,而图中演示的只是计算input #1的注意力分数。

image-20231106193506733

对每一个向量计算出的注意力分数做softmax

# normalize the attention score
score_softmax = F.softmax(scores, dim=-1) # select the highest dimension
print("attention scores after normalization:\n", score_softmax)

image-20231106195231034

将注意力分数与对应的value相乘

每一个输入向量对所有batchbatch个向量计算得到的注意力分数,都要与其对应的value向量相乘,计算加权的注意力分数。最终的注意力分数矩阵的形状应为(batch,num)(batch, num)

# compute the weighted values by doting score_softmax with values
# please be advised, this is dot product
weighted_values = values[:, None] * score_softmax.T[:, :, None]
print("weighted scores: \n", weighted_values)

image-20231106195316815

加权注意力分数求和

最后一步,对于每个向量得到的加权注意力分数进行求和,得到维度为numnum的注意力分数向量,考虑到有batchbatch个输入向量,因此最终的注意力分数矩阵的形状为(batch,num)(batch, num)

根据推导,显然,最终Self-Attention的输出向量维度与value向量的维度相同,输出向量的数量与输入向量的数量相同

# compute outputs
outputs = weighted_values.sum(dim=0)

image-20231106200506260

总结

As mentioned in the above paragraph, we don’t only use dot product to find relevance. But we scale it as well by a factor of the square root of key dimension dk. This helps in making sure that the dot-products between query and key don’t grow too large for dk. If the dot product becomes too large then the softmax output will be very small. To avoid this, we scale the dot product.

在计算dot product后,为了避免点积运算经过softmax后的输出太小,在点积后除以key向量维度的平方根来进行缩放。

Attention(Q,K,V)=softmax(QKTdk)V(1)Attention(Q,K,V)=\textit{softmax}(\frac{QK^T}{\sqrt{d_k}})V \tag{1}

img

完整代码

# simple code for Self-Attention
import torch
import torch.nn.functional as F
import numpy as np
import matplotlib.pyplot as plot

# define the input, which has the shape of (3, 4)
inputs = [[1, 0, 1, 0], [0, 2, 0, 2], [1, 1, 1, 1]]
inputs = torch.tensor(inputs, dtype=torch.float32)

# initialize the weights for keys, queries and values
w_key = torch.tensor([[0, 0, 1], [1, 1, 0], [0, 1, 0], [1, 1, 0]], dtype=torch.float32)
w_query = torch.tensor([[1, 0, 1], [1, 0, 0], [0, 0, 1], [0, 1, 1]], dtype=torch.float32)
w_value = torch.tensor([[0, 2, 0], [0, 3, 0], [1, 0, 3], [1, 1, 0]], dtype=torch.float32)

# compute keys, queries and values
keys = inputs @ w_key
queries = inputs @ w_query
values = inputs @ w_value
print("keys:\n", keys) # (3, 3)
print("queries:\n", queries) # (3, 3)
print("values:\n", values) # (3, 3)

# compute raw self-attention score
scores = queries @ keys.T
print("attention scores:\n", scores)

# normalize the attention score
score_softmax = F.softmax(scores, dim=-1) # select the highest dimension
print("attention scores after normalization:\n", score_softmax)

# compute the weighted values by doting score_softmax with values
# please be advised, this is dot product
weighted_values = values[:, None] * score_softmax.T[:, :, None]
print("weighted scores: \n", weighted_values)

# compute outputs
outputs = weighted_values.sum(dim=0)

Multi-Head Self-Attention

多头自注意力机制是对自注意力机制的扩展,假设扩展成为nn -head self-attention,则对每个输入向量生成对应的key,query和value后,再次使用nn个可学习的权重矩阵生成nn个不同的key0,...,keyn1key^{0}, ..., key^{n-1},query0,...,queryn1query^{0}, ..., query^{n-1}以及value0,...,valuen1value^{0}, ..., value^{n-1}

在计算attention score时,使用每一个query查询对应的key,即query0query^{0}只与其他每一个输入向量的key0key^{0}做dot product。

image-20231114190847109

Self-Attention与CNN的对比

Self-Attention可以看作是复杂化的CNN,CNN只能在感受野范围内考虑上下文信息,而Self-Attention可以自己学习感受野。

image-20231114191518095

+ + + + \ No newline at end of file diff --git "a/docs/Deep-Learning/\345\244\247\346\250\241\345\236\213/Self-Supervised-Learning/index.html" "b/docs/Deep-Learning/\345\244\247\346\250\241\345\236\213/Self-Supervised-Learning/index.html" new file mode 100644 index 000000000..0287b0fc4 --- /dev/null +++ "b/docs/Deep-Learning/\345\244\247\346\250\241\345\236\213/Self-Supervised-Learning/index.html" @@ -0,0 +1,18 @@ + + + + + +自监督学习(Self-Supervised Learning) | 培洋的笔记本📒 + + + + +
+

自监督学习(Self-Supervised Learning)

提示

在自监督学习的模型中,出现了很多以芝麻街任务命名的经典模型和论文。

image-20231121113727141

介绍

自监督学习是无监督学习的一种方法,利用未标记的数据来训练模型。与传统的监督学习不同,自监督学习不需要依赖人工标注的标签数据,而是通过自动构建任务来生成伪标签,从而指导模型的学习。

自监督学习的基本原理是,通过对输入数据进行某种变换操作,使得模型能够从中提取有用的特征和语义信息。例如,在自然语言处理领域,一种常见的自监督学习任务是预测下一个单词;在计算机视觉领域,一种常见的自监督学习任务是预测图像中的缺失部分。这些任务可以帮助模型学习到输入数据中的潜在结构和规律,从而提高其泛化能力和性能。

image-20231121124909759

BERT(Bidirectional Encoder Representation from Transformers)

下面以BERT为例,介绍自监督模型。

结构

BERT的结构其实是Transformer的Encoder部分,仅使用Encoder做特征抽取器。

BERT(Bidirectional Encoder Representations from Transformers)本身是一种预训练的模型架构,通常是在大规模无标签数据上进行预训练,然后在特定任务上进行微调。BERT并不是一个用于特定任务的模型,而是一个通用的语言表示模型。

使用 BERT 的一般步骤包括:

  1. 预训练(Pretraining):在大规模无标签数据上对 BERT 进行预训练,学习通用的语言表示。
  2. 微调(Fine-tuning):将预训练的 BERT 模型应用于特定任务,并在有标签的数据上进行微调,以适应该任务。
  3. 应用于下游任务(Downstream Tasks):微调后的 BERT 模型可以被用于执行特定的下游任务,如文本分类、命名实体识别等。

Self-Supervised Pretraining

Masking Input

BERT模型的自监督性质主要体现在其训练数据并不需要人为标注label,而是通过对输入句子中的部分词汇做mask,将输入数据的部分内容使用special token或random token进行遮挡后,喂入Encoder中。对于每个被mask掉的词汇,BERT输出一个概率分布向量,表示这个词汇属于词汇表中的哪一个。

BERT的损失函数主要是Masked Language Model(MLM)任务的交叉熵损失,通过最小化Encoder输出的概率分布与Ground Truth之间的交叉熵损失函数来训练模型。

L=1Ni=1Nyilog(pi)(1)L=-\frac1N\sum_{i=1}^Ny_i\log(p_i)\tag{1}

其中:

  • NN是输出的概率分布向量的维度。
  • yiy_{i}是概率分布向量标签。
  • pip_{i}是模型预测的概率分布向量。

image-20231121134420134

Next Sentence Prediction

image-20231121171808764

Fine-tuning

在预训练之后,BERT 的模型参数可以被用于多个下游任务,如文本分类、命名实体识别、问答等。

首先,我们先来了解一下NLP任务中很重要的一个Benchmark:GLUE。

Benchmark: GLUE

GLUE(General Language Understanding Evaluation)是一个评估自然语言处理模型在多个任务上综合性能的基准(benchmark)。它旨在测试模型对各种语言任务的通用理解能力。GLUE benchmark 包含了多个任务,每个任务都有一个对应的数据集和评估标准。

  1. MNLI(MultiNLI):自然语言推理任务,要求模型判断给定的两个句子之间的关系是蕴含、矛盾还是中立。
  2. QQP(Quora Question Pairs):问题匹配任务,要求模型判断两个问题是否语义上等价。
  3. QNLI(Question-answering Natural Language Inference):句子分类任务,要求模型判断给定问题和句子之间的关系。
  4. RTE(Recognizing Textual Entailment):文本蕴涵任务,要求模型判断给定的两个文本之间是否存在蕴涵关系。
  5. STS-B(Semantic Textual Similarity Benchmark):语义文本相似度任务,要求模型度量两个文本之间的语义相似度。
  6. CoLA(Corpus of Linguistic Acceptability):语言可接受性判断任务,要求模型判断一个句子是否语法上正确。
  7. MRPC(Microsoft Research Paraphrase Corpus):短语匹配任务,要求模型判断两个句子是否语义上等价。
  8. SST-2(Stanford Sentiment Treebank):情感分类任务,要求模型判断给定句子的情感极性。
  9. WNLI(Winograd NLI):自然语言推理任务,属于 Winograd 模式的变体,要求模型判断一个给定的句子对是否存在蕴含关系。

GLUE 提供了一个全面的测试平台,有助于评估和比较不同自然语言处理模型在多个任务上的性能。

image-20231121172718354

Downstream Tasks

Sentiment Analysis

image-20231121203549320

BERT作为自监督的预训练模型,从大语料库中学习到了一定的语言知识,在做文字情感分析时,只需要在下游连接上对应的分类器网络,即使只有比较少量的训练资料也能得到比较好的效果。

下图将Pre-training&Fine-tuning范式与Scratch范式的训练效果做了对比,其中Scratch范式即使用传统的随机初始化的方式从头训练整个分类网络。可以看到预训练&微调的训练范式可以加速模型的收敛(Convergence)并且效果也更好。

image-20231121203701613

立场分析

image-20231121205359709

Extraction-based Question Answering

BERT也可以用来完成截取式问答任务,提供一篇文章以及问题,要求输出两个integer代表答案短语在该文章中的起始位置以及结束位置。

image-20231121205619437

具体的解决方案:选择输入文章的所有token所对应的输出向量,随机初始化两个相同维度的向量,分别与输出向量做Dot Product,在经过Softmax之后选择最大的得分所对应的索引。得到的两个索引分别是答案短语在文章中开始的位置以及结束的位置。

image-20231121211218801

image-20231121210938519

其他应用

虽然以上的应用都是NLP领域的,但是BERT是Seq2Seq模型,图片、语音等信号也都可以作为Sequence输入至BERT中,因此BERT也可以通过迁移学习应用至多模态领域。

Why does BERT work?

BERT在大规模语料库(Corpus)上预训练后,输出的向量表示了对应输入token的意思,特别地,是考虑了上下文信息的意思。比如,对于水果的苹果已经苹果公司的苹果,BERT对一样的苹果有不同的输出。即对一个处在不同上下文信息中的相同词汇,BERT有不同的Embedding。类似于Word Embedding中的CBOW,BERT可以看作是Contextualized Word Embedding

BERT模型的核心就是通过预训练来学习上下文信息,进而对每个输入token生成相应的向量表示。这个向量表示考虑了上下文信息,所以对于处在不同上下文中的相同词汇,BERT会有不同的Embedding。

——来自讯飞星火大模型

虽然 BERT 的确是一种基于大规模语料库的预训练模型,但它并不是一种简单的词嵌入方法,而是一种深度神经网络模型。

在 BERT 中,每个单词都被嵌入到一个高维空间中,并且这些嵌入向量是通过多层 Transformer 编码器生成的。这些编码器的每一层都包含多个自注意力子层和一个前馈神经网络子层,它们共同作用来捕捉文本中的上下文关系和其他语义特征。

因此,BERT 中的嵌入向量不仅仅是单个单词的词义表征,还包括整个句子或段落中的语境信息。这意味着即使两个单词在不同的上下文中出现,它们的嵌入向量也可能非常相似,因为它们共享相同的语义结构。

总之,BERT 可以被视为一种上下文感知词嵌入技术,但它的实现方式比传统的词嵌入方法要复杂得多。

——来自腾讯混元大模型

GPT: Generative Pre-trained Transformer

GPT的结构是Transformer的Decoder部分,可以承担生成的任务。

GPT的自监督学习的特征体现在:在训练过程中,GPT根据输入的token预测输入的下一个token应该是什么,对输出的distribution与Ground Truth做Cross Entropy Loss来更新参数。

image-20231122093825510

+ + + + \ No newline at end of file diff --git "a/docs/Deep-Learning/\345\256\236\346\210\230\347\273\203\344\271\240/Speaker Classification/index.html" "b/docs/Deep-Learning/\345\256\236\346\210\230\347\273\203\344\271\240/Speaker Classification/index.html" new file mode 100644 index 000000000..ca05c92c6 --- /dev/null +++ "b/docs/Deep-Learning/\345\256\236\346\210\230\347\273\203\344\271\240/Speaker Classification/index.html" @@ -0,0 +1,18 @@ + + + + + +Speaker Classification | 培洋的笔记本📒 + + + + +
+

Speaker Classification

实战练习

Transformer实战练习,代码见Github仓库

This is a practice of Transformer, follow the guide of Github Repo.

image-20240113175506430

Overview

Classify the speaker of given features, learn how to use Transformer and how to adjust parameters of transformer.

Dataset

The original dataset is VoxCeleb1.

We randomly select 600 speakers from VoxCeleb1, then preprocess the raw waveforms into mel-spectrograms. You can download the preprocessed dataset from Google Drive.

Screenshot 2024-01-13 163041

Arguments:

  • data_dir: The path to the data directory.

  • metadata_path: The path to the metadata.

  • segment_len: The length of audio segment for training.

The architecture of dataset directory is shown below, where uttr-{random string}.pt represents PyTorch data file containing valid mel-spectrogram data.

data directory/
├── mapping.json
├── metadata.json
├── testdata.json
└── uttr-{random string}.pt

This is also the assignment solution of ML2021Spring HW4.

+ + + + \ No newline at end of file diff --git "a/docs/Deep-Learning/\345\256\236\346\210\230\347\273\203\344\271\240/Undergraduate-Dissertation/index.html" "b/docs/Deep-Learning/\345\256\236\346\210\230\347\273\203\344\271\240/Undergraduate-Dissertation/index.html" new file mode 100644 index 000000000..2e2b63137 --- /dev/null +++ "b/docs/Deep-Learning/\345\256\236\346\210\230\347\273\203\344\271\240/Undergraduate-Dissertation/index.html" @@ -0,0 +1,18 @@ + + + + + +本科毕业论文:基于 Prompt Learning 的视觉-语言大模型在图像生成中的应用与研究 | 培洋的笔记本📒 + + + + +
+

本科毕业论文:基于 Prompt Learning 的视觉-语言大模型在图像生成中的应用与研究

本篇论文主要基于 IPL 的思想实现。本仓库大部分从 IPL-Zero-Shot-Generative-Model-Adaptation fork 而来并做出了一定修改。

依赖

创建 Anaconda 虚拟环境

conda create -n ipl python=3.8
conda activate ipl

安装依赖

请确保 NVIDIA 驱动、CUDA 以及 PyTorch 之间版本互相匹配。

conda install pytorch torchvision torchaudio pytorch-cuda=11.8 -c pytorch -c nvidia
pip install ftfy regex tqdm ninja
pip install git+https://github.com/openai/CLIP.git

下载预训练生成器

预训练的源域生成器可以通过 Google Drive 或者 Tsinghua Cloud 下载,并将其置于 ./pre_stylegan 文件夹中。

概述

技术细节

prompts 的初始化

ctx_init 参数用于初始化 prompts,官方提供的演示 context 是a photo of a

source_prompts = [prompt_prefix + " " + args.source_class]
target_prompts = [prompt_prefix + " " + args.target_class]

源域的初始提示词 source_prompts 是 ctx_init 与源域标签的组合。若源域标签为 photo,则源域的初始提示词是 a photo of a photo。目标域的初始提示词同理。

prompts 的 tokenize 与 embedding

源域以及目标域的初始提示词接下来会进行 tokenize:

source_tokenized_prompts = torch.cat([clip.tokenize(p) for p in source_prompts]).to(device)
# (1, 77) 'sot a photo of a photo eot' 在经过tokenize后为tensor [[49406, 320, 1125, 539, 320, 1125, 49407, etc]]
# 77是CLIP在tokenize方法中缺省的context_length,超过context_length将被truncate,不足的将用0补齐
target_tokenized_prompts = torch.cat([clip.tokenize(p) for p in target_prompts]).to(device)
# (1, 77) 'sot a photo of a disney' 在经过tokenize后为tensor [[49406, 320, 1125, 539, 320, 4696, 49407, etc]]
# 77是CLIP在tokenize方法中缺省的context_length,超过context_length将被truncate,不足的将用0补齐

tokenize 是 CLIP 对送入的 prompt 字符串进行标记化处理,在头部和尾部添加 startoftext 以及 endoftext 标记,最终为两个首尾标记和全部单词生成 int 标记。其中 CLIP 模型缺省的 context_length 是77,若 prompt 大于 77 会进行截断(truncate),若小于 77 会进行补零,因此 source_tokenized_promptstarget_tokenized_prompts 的形状均为 (1, 77)。

在提示词标记化之后,将进行嵌入表示 embedding:

source_embedding = clip_model.token_embedding(source_tokenized_prompts).type(clip_model.dtype)
# (1, 77, 512) 其中512是CLIP中的n_dim,token_embedding层的词嵌入的维度
target_embedding = clip_model.token_embedding(target_tokenized_prompts).type(clip_model.dtype)
# (1, 77, 512) 其中512是CLIP中的n_dim,token_embedding层的词嵌入的维度

compute_text_features 的实现细节

在 Mapper 生成 prompts 后进行 prompts 的特征提取时,需要传入 tokenize 之后的人工初始化 prompt(‘a photo of a photo.’或‘a photo of a disney.’),用于选择 eot 符号对应的维度来进行特征投影(因为 eot 作为整个句子的结尾,被认为该维度包含更多的信息。具体做法:由于在 tokenize 之后,eot 符号对应的维度的值最大,因此可使用 argmax 来定位),以保证最后得到的特征形状与图像特征提取的输出形状相同,使得后续可以进行对比学习的损失计算。

训练 stage 1

Z空间与W空间

# Z空间到W空间的变换
sample_z = mixing_noise(args.batch_mapper, 512, args.mixing, device)
# (batch_size, 512)
sample_w = net.generator_frozen.style(sample_z)
# (batch_size, 512)

Z 空间和 W 空间是 StyleGAN 模型中两种不同的隐变量空间,分别用于控制生成图像的随机特征和样式信息。W 空间通过对 Z 空间的映射得到。

  1. Z 空间(Latent Space Z)

    • Z 空间是随机噪声空间,通常由随机噪声向量组成,表示了图像的随机特征。
    • 在 StyleGAN 中,Z 空间的维度通常为 512 维。这意味着一个 Z 向量由 512 个数字组成,每个数字表示了图像的一个随机特征的强度或者方向。
  2. W 空间(Style Space W)

    • W 空间经过特征解耦的隐空间,与 Z 空间相比更加解耦合。

    • 在 StyleGAN 中,W 空间的维度也通常为 512 维,是通过mapping network进行映射得到的,mapping network由PixelNorm层与EqualLinear层构成。以下代码节选自sg2_model.py

      '''mapping network'''
      layers = [PixelNorm()]

      for i in range(n_mlp):
      layers.append(
      EqualLinear(
      style_dim, style_dim, lr_mul=lr_mlp, activation="fused_lrelu"
      )
      )

      self.style = nn.Sequential(*layers)
  3. Z 空间与 W 空间的关系

    • 在 StyleGAN 中,通常会先将一个 Z 向量映射到 W 空间,然后再将 W 向量输入到生成器网络中生成图像。
    • Z 空间提供了初始随机噪声,而 W 空间则通过特征解耦提供更多控制图像风格的灵活性。通过对 Z 和 W 之间的映射以及 W 在生成器中的应用,StyleGan 实现了高度可控且具有良好生成效果的图像合成。

损失函数

在代码中,stage 1 的损失函数是 global_clip_loss,该损失由三部分组成:

  1. 对比学习损失:Mapper 生成的源域 prompts 的特征(注意,这里的 prompts 特征是与人工初始化的 prompts 的特征做过 element-wise 相加后的特征)与源域图像特征的余弦相似度组成的对比学习损失;
  2. 目标域正则化损失:Mapper 生成的目标域 prompts 的特征与目标域文本标签特征的余弦相似度,这里生成的目标域 prompts 特征同样也是与人工初始化的 prompts 做过加法的。注意该损失有权重 lambda_l
  3. 源域正则化:计算生成的源域prompts与源域标签之间的余弦相似度,由 lambda_src 控制,默认是 0。

训练 stage 2

确定目标域生成域需要更新的层

在训练的第二阶段进行前向传播时,需要先对目标域生成器(generator_trainable)的所有层进行 unfreeze,然后对更新哪些层做出选择,承担选择任务的功能函数:model.ZSSGAN.ZSSGAN.determine_opt_layers,最后 freeze 所有层后再 unfreeze 选择的网络层。

if self.training and self.auto_layer_iters > 0:
self.generator_trainable.unfreeze_layers() # unfreeze
train_layers = self.determine_opt_layers() # layer to train

if not isinstance(train_layers, list):
train_layers = [train_layers]

self.generator_trainable.freeze_layers()
self.generator_trainable.unfreeze_layers(train_layers) # unfreeze

具体选择带更新网络层的策略:

将 W 空间的隐向量送入目标域生成器(SG2Generator)中,并进行反向传播,此时可以通过反向传播后 W 空间隐向量不同维度的更新幅度来衡量不同网络层的影响力,因此选出更新幅度最大的维度就可以确定在 Model Adaption 中需要更新的网络层。

之所以 W 空间编码在 n_latent 维度上的序号就代表着对应的网络层数的序号,是因为 StyleGAN 生成器的结构决定了这一点:StyleGAN 生成器中,W 空间编码的不同维度会被送入生成器网络的不同层,控制这些层的特征映射 (feature mapping)。具体来说,W 空间编码的每个维度会被重复 n_latent 次,作为该层的风格向量 (style vector),通过 AdaIN (Adaptive Instance Normalization) 层控制该层的特征映射。因此,W 空间编码的第 i 个维度会影响生成器网络中第 i 层的特征映射。当某个维度的 W 值被更新的程度较大时,就意味着该维度对应的层在生成目标图像时起到了重要作用,需要被优化。

损失函数

stage 2 的损失函数是 CLIP Loss 类中的 clip_directional_loss,该损失函数由两部分组成:

  1. edit_direciton:源域生成器与目标域生成器生成的图片在经过 image encdoer 后做 element-wise 的相减,最后除以自身的 L2 Norm 方便后续与 target_direction 计算余弦相似度。
  2. target_direction:Mapper 产生的源域和目标域 prompts 的 text_features 做element-wise相减后,最后初一自身的 L2 Norm 以便后续与 edit_direction 计算余弦相似度。

定量分析指标

参考文献:GAN 的几种评价指标

  1. Inception Score(IS)

    评估图像的质量和多样性

    质量:把生成的图片 xx 输入 Inception V3 中,得到输出 1000 维的向量 yy,向量的每个维度的值对应图片属于某类的概率。对于一个清晰的图片,它属于某一类的概率应该非常大,而属于其它类的概率应该很小。用专业术语说, p(yx)p(y|x) 的熵应该很小(熵代表混乱度,均匀分布的混乱度最大,熵最大)。

    多样性: 如果一个模型能生成足够多样的图片,那么它生成的图片在各个类别中的分布应该是平均的,假设生成了 10000 张图片,那么最理想的情况是,1000 类中每类生成了 10 张。转换成术语,就是生成图片在所有类别概率的边缘分布 p(y)p(y) 熵很大(均匀分布)。

    因此,对于 IS 我们需要求的两个量就是 p(yx)p(y|x)p(y)p(y)。实际中,选取大量生成样本,用经验分布模拟 p(y)p(y)

    p^(y)=1Ni=1Np(yx(i))\hat{p}(y)=\frac{1}{N}\sum_{i=1}^{N}p(y|\mathbf{x}^{(i)})

    Inception Score 的完整公式如下:

    IS(G)=exp(ExpgDKL(p(yx)p(y)))\mathbf{IS}(G)=\exp\left(\mathbb{E}_{\mathbf{x}\sim p_g}D_{KL}\left(p(y|\mathbf{x})||p(y)\right)\right)

    通常计算 Inception Score 时,会生成 50000 个图片,然后把它分成 10 份,每份 5000 个,分别代入公式计算 10 次 Inception Score,再计算均值和方差,作为最终的衡量指标(均值±方差)。但是 5000 个样本往往不足以得到准确的边缘分布 p(y)p(y),尤其是像 ImageNet 这种包含 1000 个类的数据集。

    StyleGAN-nada 以及 IPL 在经过 batch_size 为 2,iteration 为 300 的训练后(其中 IPL 的 Mapper 是以 batch_size 为 32,iteration 为 300 进行训练的),二者的 IS 分别为 (2.2960, 0.2042) 以及 (2.6420, 0.1959)

  2. Fréchet Inception Distance(FID)

    评估目标域的风格

    计算 IS 时只考虑了生成样本,没有考虑真实数据,即 IS 无法反映真实数据和样本之间的距离,IS 判断数据真实性的依据,源于 Inception V3 的训练集 ImageNet,在 Inception V3 的“世界观”下,凡是不像 ImageNet 的数据,都是不真实的,都不能保证输出一个 sharp 的 predition distribution。因此,要想更好地评价生成网络,就要使用更加有效的方法计算真实分布与生成样本之间的距离。

    FID 距离计算真实样本,生成样本在特征空间之间的距离。首先利用 Inception 网络来提取特征,然后使用高斯模型对特征空间进行建模,再去求解两个特征之间的距离,较低的 FID 意味着较高图片的质量和多样性。

    StyleGAN-nada 以及 IPL 在经过 batch_size 为 2,iteration 为 300 的训练后(其中 IPL 的 Mapper 是以 batch_size 为 32,iteration 为 300 进行训练的),二者的 FID 分别为 84 以及 58

  3. Single Image Fréchet Inception Score(SIFID)

    FID 测量生成的图像的深层特征分布与真实图像的分布之间的偏差。在 ICCV 2019 Best Paper 中提出了 SIFID,只使用一张真实目标域的图像。与 FID 不同,SFID 不使用 Inception Network 中最后一个池化层之后的激活矢量(每个图像一个向量),而是在第二个池层之前的卷积层输出处使用深层特征的内部分布(feature map 中每个位置一个向量)。最终 SIFID 是真实图像和生成的样本中这些特征的统计数据之间的 FID。

  4. Structural Consistency Score(SCS)

    评估图像的结构保存能力

  5. Identity Similarity(ID)

    评估图像的特征保存能力

新增功能

自定义图像风格迁移

新增了自定义图像风格迁移功能。

HyperStyle 中的 e4e encoder 将自定义的真实图像编码至 StyleGAN2 中的 W 空间生成 latent codes,再将其分别输入至源域生成器以及目标域生成器以代替原始的从正态分布中 sample 出的随机向量生成的 w_codes,从而得到相应的图片。其中 e4e encoder 来源于 HyperStyle 提供的预训练 checkpoint。

使用方法:运行 inference.py,设置对应的参数,如生成器以及 e4e encoder 的路径、图像路径等,最后运行即可。

修改日志

  1. 第一次尝试只加载了 w_encoder 类及其对应 checkpoint 参数,导致并未将真实图片编码到 StyleGAN 的 W 空间中,没有 inversion 出合理的结果
  2. 第二次尝试使用了 restyle_e4e_encoder,但是没有使用 dlib 进行 alignment,也没有使用 restyle 模型在反演时使用的多次进行前向传播来修正 latent code 的策略。此次尝试虽然反演出了合理的人像,但是人像的特征保存能力非常弱
  3. 第三次尝试解决了上一次发现的问题,加入 dlib 提供的 landmark 检测以实现 alignment,并且使用 run_loop 函数在 restyle_e4e_encoder 中进行多次前向传播以修正得到的 W 空间的 latent code,效果较好
  4. 对比 pSp 和 e4e encoder,pSp 对人脸图像的还原能力较强,但是会导致目标域图像具有随机的彩色光晕

问题提出与改进

改进:Mapper 结构的设计

Mapper 的作用是从 W 空间的隐式代码中学习出符合源域图片特征以及符合目标域文字特征的 prompts。

问题:训练阶段人工 prompts 的作用是什么?

在 IPL 的官方代码实现中,人工设计的 prompts 有两处,一是 ctx_init,由命令行参数赋值,即 "a photo of a",另一处是 utils/text_templates.py 中的 templates,

ctx_init 的作用(与域标签拼接后的 ctx_init)

  1. ctx_initcompute_text_features 函数中用于定位 eot 层符号所表示的维度来进行投影,使得文字特征与图像特征维度相同,并不参与 text_features 的实际计算。但是在该函数中,Mapper 输出的 image-specific prompts 已经与域标签的嵌入表示进行了 concat。

  2. 在 stage 1 训练 Mapper 损失函数中,Mapper 学习到的 image-specfic prompts 在与源域标签进行 concat 并得到文字编码后,会与 ctx_init 的文字编码进行 element-wise 的相加,最后再与源域生成器输出的图片的图像编码进行对比损失计算;

    同理,在 stage 2 训练目标域生成器时,Mapper 输出的 image-specific prompts 在分别与源域、目标域标签 concat 后送入文字编码器得到文字特征,再与 ctx_init 的文字特征进行 element-wise 相加,最后二者相减得到 text_direction。

templates 的作用

注意,这里的 compute_text_features 函数中向其参数 templates 传入的值是 ctx_init,所以才能使用 ctx_init 来定位 eot 符号所对应的层进行维度投影。参数 templates 缺省的值是在 utils/text_templates.py 中写好的模板。

思考

IPL 方法对 Mapper 学习到的 prompts 除了(1)使用对比学习使 prompts 学习到源域图片的特征以及(2)使用域正则化使得 prompts 向目标域标签对齐之外,并没有使用其他与人工设计的 prompts 有关的正则化方式来约束 prompts 的学习,因此人工设计的 prompts 可能并没有起到太大的约束作用。

如果对比学习损失是为了让 Mapper 自监督学习到图片的特征外,那么是否可以对域正则化损失进行改进,约束学习到的 prompts 向人工设计的初始化 prompts 对齐,以实现类似于 Stable Diffusion 类似的 prompts 控制图像生成的效果。

改进:使学习到的 prompts 向用户自主设计的 prompts 模板对齐

对第一阶段的损失函数做出修改,更新domain loss,使目标域的image-specific prompts与自定义模板对齐。

对 global_clip_loss 的改进

IPL 训练第一阶段的损失函数除了源域 prompts 与源域图像之间的对比学习损失函数外,还有将目标域 prompts 与目标域标签计算余弦相似度的 domain regularization。

对 domain regularization 进行改进,引入开发者自定义的 prompts,约束 Mapper 学习到的目标域 prompts 向开发者自定义的 prompts 对齐,以此来进行 prompt tuning,发挥 prompt learning 的更大优势,并增强自定义性。

对 clip_directional_loss 的改进

IPL 训练第二阶段的损失函数

+ + + + \ No newline at end of file diff --git "a/docs/Deep-Learning/\345\256\236\346\210\230\347\273\203\344\271\240/Visdom Visualization/index.html" "b/docs/Deep-Learning/\345\256\236\346\210\230\347\273\203\344\271\240/Visdom Visualization/index.html" new file mode 100644 index 000000000..346502da3 --- /dev/null +++ "b/docs/Deep-Learning/\345\256\236\346\210\230\347\273\203\344\271\240/Visdom Visualization/index.html" @@ -0,0 +1,18 @@ + + + + + +Visdom可视化 | 培洋的笔记本📒 + + + + +
+

Visdom可视化

提示

对于TensorFlow框架,可以使用TensorBoard实现可视化。

对于PyTorch框架,可以使用Visdom或TensorBoardX实现可视化,本篇主要讲述Visdom。

安装Visdom

pip install visdom

Visdom的使用

Visdom的启动

首先要通过终端启动Visdom,使用本机端口运行服务器。

以下二者均可。

visdom
python -m visdom.server

单窗口单曲线的可视化

from visdom import Visdom

vis = Visdom() # 实例化
# 创建一条曲线,前两个参数分别为y轴数据、x轴数据,win参数是窗口的唯一标识,opt可选字典中可以给出窗口的title和legend
vis.line([0.], [0.], win='win_id', opts=dict(title="win_title"))

# 在训练过程中的合适位置向初始化的曲线中喂数据
# viz.line([real_y_data], [global_step], win='win_id', update='append')
# 查看训练loss
vis.line([loss.item()], [epoch], win='win_id', update='append')
# 对于非image数据,在传入visdom时仍需要先转化为numpy类型

单窗口多曲线的可视化

from visdom import Visdom

vis = Visdom()
vis.line([[0., 0.]], [0.], win='win_id', opts=dic(title="win_title", legend=["curve_name_1", "curve_name_2"]))

# 在训练过程中的合适位置向初始化的曲线中喂数据
viz.line([[y1, y2]], [global_step], win='win_id', update='append')
+ + + + \ No newline at end of file diff --git "a/docs/Deep-Learning/\350\256\272\346\226\207\347\254\224\350\256\260/Attention Is All You Need/index.html" "b/docs/Deep-Learning/\350\256\272\346\226\207\347\254\224\350\256\260/Attention Is All You Need/index.html" new file mode 100644 index 000000000..d9f7cb518 --- /dev/null +++ "b/docs/Deep-Learning/\350\256\272\346\226\207\347\254\224\350\256\260/Attention Is All You Need/index.html" @@ -0,0 +1,18 @@ + + + + + +NeurIPS 2017: Attention Is All You Need | 培洋的笔记本📒 + + + + +
+

NeurIPS 2017: Attention Is All You Need

Transformer是Sequence-to-Sequence (Seq2Seq) 模型,模型的输入是向量序列,输出同样是向量序列,且输出的长度由模型经过学习决定。

整体结构

Transformer由Encoder和Decoder组成,编码器和解码器都包含6个Block,整体结构如下图所示。

image-20231119110150110

Encoder

整体结构

Transformer Encoder结构如下图所示。其中,Add指的是残差连接Residual Connection,Norm指的是Layer Normalization。

image-20231115164324713

位置编码(Positional Encoding)

对于输入的句子,对一个词汇的嵌入向量的奇数维度使用sine函数进行编码,对偶数维度使用cosine函数计算编码。

公式如下所示,其中pospos指的是该词汇在整个输入句子中的位置,2i2i以及2i+12i+1指的是该词汇的嵌入向量中的维度,dmodeld_{model}指的是在嵌入层之后嵌入向量的总维度。即对于每个输入词汇,都要计算dmodeld_{model}次位置编码。

PE(pos,2i)=sin(pos100002i/dmodel)(1)PE_{(pos,2i)}=sin(\frac{pos}{10000^{2i/d_{\mathrm{model}}}}) \tag{1}
PE(pos,2i+1)=cos(pos100002i/dmodel)(2)PE_{(pos,2i+1)}=cos(\frac{pos}{10000^{2i/d_{\mathrm{model}}}}) \tag{2}

根据三角函数的性质,对于pos+kpos+k位置的嵌入向量的某一维度(2i2i2i+12i+1)而言,可以表示为pospos位置与kk位置的嵌入向量的2i2i2i+12i+1维度的线性组合,使得位置向量中蕴含了相对位置的信息。

PE(pos+k,2i)=PE(pos,2i)×PE(k,2i+1)+PE(pos,2i+1)×PE(k,2i)PE(pos+k,2i+1)=PE(pos,2i+1)×PE(k,2i+1)PE(pos,2i)×PE(k,2i)(3)\begin{array}{l}PE(pos+k,2i)=PE(pos,2i)\times PE(k,2i+1)+PE(pos,2i+1)\times PE(k,2i)\\PE(pos+k,2i+1)=PE(pos,2i+1)\times PE(k,2i+1)-PE(pos,2i)\times PE(k,2i)\end{array} \tag{3}

最终,位置编码向量的维度与词汇的嵌入维度相同,进行element-wise的相加操作。

InputEmbedding(pos,i)=WordEmbedding(pos,i)+PositionEncoding(pos,i)(4)InputEmbedding(pos,i)=WordEmbedding(pos,i)+PositionEncoding(pos,i) \tag{4}

具体结构

image-20231115164324713

输入向量由Word Embedding和Positional Embedding相加得到。输入序列经过Mutil-Head Self-Attention之后,通过Residual Connection加上自身的输入向量,再经过Layer Normalization,之后送入FCN并进行Residual Connection加上送入FCN的输入自身,最终再进行Layer Normalization,以上构成了一个Encoder Block。每一个Block输出的向量序列长度等于输入的向量序列长度。

Decoder

Decoder的任务是生成输出,可以根据是否一次性生成输出分为Autoregressive(自回归,abbr. AT)以及Non-Autoregressive(非自回归,abbr. NAT)两种模式。

自回归类型的Decoder需要逐步生成输出,并将之前自身输出的所有词汇经过嵌入层后生成token作为下一次的输入,通常每次生成一个词或一个符号。这种方式的缺点是需要保存和更新词表中的所有可能选项,因此在大词汇表上可能会变得非常慢。然而,它的优点是能够利用上下文信息来生成输出,这有助于提高翻译的质量。

非自回归类型的Decoder试图在一次操作中生成整个输出序列。这通常通过使用诸如注意力机制等策略来实现,这些策略允许解码器关注输入序列的不同部分,同时生成输出序列的不同部分。NAT的优点在于其高效性,因为它不需要保存和更新大量的可能选项。然而,由于它不能利用上下文信息来生成输出,因此其生成的输出质量普遍会低于AT。

Autoregressive Decoder(AT)

整体结构

image-20231119102540689

词汇表(Vocabulary)

词汇表(Vocabulary)是一个包含了在特定语言或任务中所有可能出现所有单词或标记的集合。在自然语言处理(NLP)中,词汇表是训练模型时所使用的唯一单词的集合,由具体的生成任务而确定。

Decoder每一步的输出是一个经过Softmax的Probability Distribution(概率分布),代表着词汇表中每一个词汇当前生成的概率,取最大概率值的词汇便是模型当前时间步输出的词汇。

image-20231119094748152

Begin符号

解码器(Decoder)在每个时间步(或每个解码步骤)的输入都来自于前一个时间步自身的输出以及编码器(Encoder)的输出。特别地,首个时间步的输入是Begin符号以及编码器(Encoder)的输出,在每个后续的时间步,解码器的输入会是前一个时间步自身的输出以及编码器(Encoder)的输出,直到生成序列的结束。

特殊符号

Begin符号是在Lexicon中添加的特殊符号,用来表示Decoder生成的开始。Begin符号通常被嵌入到一个低维的连续向量空间中,这个向量空间是通过嵌入层(Embedding Layer)学习得到的,在嵌入层中,离散的符号被映射到一个实数向量。

Begin符号又叫Start符号或SOS符号(Start Of Sentence),都是表示生成的开始。End符号又叫EOS符号(End Of Sentence)。

End符号

在Decoder的生成中,每一个时间步的输出是词汇表中每一个单词经过Softmax之后的概率分布。为了保证生成任务可以通过模型自己停止而不是一直重复,我们向Decoder的输出中加入End符号的生成,即每一次输出除了词汇表的所有词汇外还有End符号的概率,当End符号是在所有词汇中概率最大的词汇时,生成停止。

image-20231119102220262

image-20231119102159884

掩码多头自注意力机制(Masked Multi-Head Self-Attention)

为什么使用掩码多头自注意力

掩码多头自注意力与Transformer训练时采取的Teacher Forcing策略有很大的关系,具体分析见下文《Teacher Forcing与Masked Multi-Head Self-Attention》的讨论环节:Teacher Forcing与Masked Multi-Head Self-Attention

观察Decoder的整体结构,掩码多头自注意力的输入是添加位置编码之后的Decoder当前时间步之前的所有输出单词经过嵌入后的向量表示

掩码多头自注意力机制用于确保在生成序列的过程中,每个位置只能关注到该位置及其之前的位置。这是通过在Self-Attention的计算中应用一个掩码(mask)来实现的。这确保了在生成序列时,每个位置只能查看到它之前的信息,而不能查看到未来的信息,从而实现了自回归性质。

具体来说,添加掩码后的自注意力机制在生成注意力分数时不再考虑输入序列的所有向量。如在输入向量aia^i在计算注意力分数时,只将aia^i的query向量与a1a^1aia^{i}ii个key向量做dot product,而不考虑aia^i之后的输入的key。

提示

对于第ss个时间步,Masked Mutil-Head Self-Attention的输入是时间步ss之前Decoder生成的所有输出单词的嵌入表示。

image-20231119095632569

交叉注意力(Cross-Attention)

交叉注意力是连接Encoder和Decoder的桥梁,也是Decoder输入的重要组成部分。

image-20231119103201335

交叉注意力接收两个输入序列,一个来自编码器(Encoder)的输出序列(通常是输入序列的表示),另一个来自解码器(Decoder),是经过掩码多头自注意力机制的输出序列(通常是正在生成的序列的中间表示)。

在交叉注意力中,每次计算注意力得分的query来自解码器key和value来自编码器。解码器每个向量的查询(Query)与编码器位置的键(Key)进行点积得到了注意力分数,通过Softmax操作后转换为注意力权重,再与编码器位置的值(Value)weighted sum得到加权注意力分数,最终将加权注意力分数求和得到每个输入向量的输出。

image-20231119142212757

Non-Autoregressive Decoder(NAT)

image-20231119103112168

训练(Training)

损失函数

在 Transformer 中,Encoder 不像 Decoder 需要生成序列,因此它通常不涉及标签的预测。Encoder 的训练通常是在整个模型中的联合训练中进行的,通过优化整个模型的损失函数来进行。

Transformer 的整体训练过程一般分为以下几个步骤:

  1. 编码器(Encoder)的正向传播: 输入序列经过编码器的正向传播,产生一组上下文表示。
  2. 解码器(Decoder)的正向传播: 解码器接收上下文表示,并生成目标序列。
  3. 计算损失: 通过比较生成的目标序列与实际目标序列,计算损失。在 Decoder 中,通常使用交叉熵损失函数。
  4. 反向传播: 根据损失,进行反向传播,更新模型参数。这个过程中,梯度通过整个模型传播,包括 Encoder 和 Decoder。

整个模型的参数(包括 Encoder 和 Decoder)都是通过最小化整体损失来进行联合训练的。这是因为整体模型需要协同工作,Encoder 的表示对于 Decoder 的性能至关重要。在训练过程中,梯度从损失函数传播回整个模型,包括 Encoder 和 Decoder,从而更新它们的参数。

需要注意的是,Transformer 模型通常使用的是端到端的训练方式,整个模型的参数是一次性更新的。在某些场景下,你可能会看到对 Encoder 或 Decoder 进行微调(fine-tuning)的情况,但这是在特定应用场景下的调整,不是 Transformer 模型的标准训练方式。

Teacher Forcing

在Transformer的推理阶段,自回归类型的Decoder根据分词方式的不同,一个词汇一个词汇的输出,将当前时间步之前生成的所有词汇作为输入load进入Decoder中。但在训练时如果遵从同样的生成范式会大大降低效率,并且面临则一步错步步错的风险(Error Propagation)。

因此使用Teacher Forcing策略,将Ground Truth一次性喂到Decoder中,使模型更快收敛并且避免误差积累的问题。

image-20231119155803489

但是,自回归Decoder在推理时是一个一个词汇产生的,在产生第ii个词汇时其后续的词汇是未知的,更不用说进行注意力分数的就算了,而在训练过程中使用Teacher Forcing时却可以得到第i+1i+1个及其之后词汇的注意力信息,如果不添加其他策略显然会对模型的泛化能力造成很大的影响,而且这并不符合自回归(Autoregression)的特性。为了解决这个问题,掩码多头注意力机制应运而生,在训练阶段将模型在时间发展顺序的右侧的输入masked掉,防止模型学习到不该学习的注意力。

Teacher Forcing与Masked Multi-Head Self-Attention

参考文献:MultiHead-Attention和Masked-Attention的机制和原理

与Encoder的多头自注意力不同,在Decoder中,为注意力机制应用了掩码,使模型只能关注到当前位置及其之前的位置,而不能访问未来的信息。这解决了引入Teacher Forcing出现的问题,避免了训练与推理阶段的Mismatch,维护了自回归的特性。

具体来说,模拟推理过程中第一个词汇时的场景。当模型只有voc1voc_1词汇向量输入时,在Decoder中,voc1voc_1与自身计算注意力分数,于是有

[o1]=[α1,1][v1](5)\begin{bmatrix}o_1\end{bmatrix}=\begin{bmatrix}\alpha_{1,1}^{\prime}\end{bmatrix}\begin{bmatrix}v_1\end{bmatrix}\tag{5}

我们再模拟训练过程中使用Teacher Forcing,一次性输入为两个词汇voc1voc_1voc2voc_2的情况,于是有

[o1o2]=[α1,1α2,1α1,2α2,2][v1v2](6)\begin{bmatrix}o_1\\o_2\end{bmatrix}=\begin{bmatrix}\alpha_{1,1}^{\prime}&\alpha_{2,1}^{\prime}\\\alpha_{1,2}^{\prime}&\alpha_{2,2}^{\prime}\end{bmatrix}\begin{bmatrix}v_1\\v_2\end{bmatrix} \tag{6}

然而,为了使训练过程中符合推理时自回归的特性,理想的输出应该是

[o1o2]=[α1,10α1,2α2,2][v1v2](7)\begin{bmatrix}o_1\\o_2\end{bmatrix}=\begin{bmatrix}\alpha_{1,1}^{\prime}&0\\\alpha_{1,2}^{\prime}&\alpha_{2,2}^{\prime}\end{bmatrix}\begin{bmatrix}v_1\\v_2\end{bmatrix} \tag{7}

继续扩展,当有nn个输入词汇时,应该有

[o1o2on]=[α1,100α1,2α20α1,nα2,nαn,n][v1v2vn](8)\begin{bmatrix}o_1\\o_2\\\vdots\\o_n\end{bmatrix}=\begin{bmatrix}\alpha'_{1,1}&0&\cdots&0\\\alpha'_{1,2}&\alpha'_2&\cdots&0\\\vdots&\vdots&&\vdots\\\alpha'_{1,n}&\alpha'_{2,n}&\cdots&\alpha'_{n,n}\end{bmatrix}\begin{bmatrix}v_1\\v_2\\\vdots\\v_n\end{bmatrix}\tag{8}

因此,我们需要将当前时间步计算的词汇的时间顺序右侧的输入词汇全部掩码,置为0。

在源码中,有如下片段实现掩码:

if mask is not None:
scores = scores.masked_fill(mask == 0, -1e9)

p_attn = scores.softmax(dim=-1)

在源码中,将mask置为负无穷是因为这是在经过Softmax之前进行的掩码,在经过Softmax之后负无穷小就变成了0。

+ + + + \ No newline at end of file diff --git "a/docs/Deep-Learning/\350\256\272\346\226\207\347\254\224\350\256\260/Denoising Diffusion Probabilistic Models/index.html" "b/docs/Deep-Learning/\350\256\272\346\226\207\347\254\224\350\256\260/Denoising Diffusion Probabilistic Models/index.html" new file mode 100644 index 000000000..62ac8ffb3 --- /dev/null +++ "b/docs/Deep-Learning/\350\256\272\346\226\207\347\254\224\350\256\260/Denoising Diffusion Probabilistic Models/index.html" @@ -0,0 +1,18 @@ + + + + + +NeurIPS 2020: Denoising Diffusion Probabilistic Models | 培洋的笔记本📒 + + + + +
+

NeurIPS 2020: Denoising Diffusion Probabilistic Models

数学原理(Mathematical Preliminary)

先验概率与后验概率

条件概率的定义

条件概率是指在给定另一个事件发生的条件下,某一事件发生的概率。条件概率通常用符号P(AB)P(A\mid B)表示,读作“在 B 发生的条件下 A 发生的概率”。

条件概率的计算公式为:

P(AB)=P(A,B)P(B)P(A\mid B)=\frac{P(A,B)}{P(B)}

其中:

  • P(A,B)P(A,B)是事件AABB同时发生的概率,也叫联合概率
  • P(B)P(B)是事件BB独立发生的概率

全概率公式

对于事件AA而言,假设有一组互斥且穷尽的条件事件B1,B2,BnB_{1},B_{2},\ldots B_{n}构成一个完备事件组,则事件AA的概率等于事件AA在每个条件事件BiB_i下发生的概率与该条件事件发生概率的乘积和。

P(A)=i=1nP(ABi)P(Bi)P(A)=\sum_{i=1}^nP(A\mid B_i)\cdot P(B_i)

可以看出,全概率公式是由“因”(条件事件BiB_i)推“果”(结果事件AA)的过程,即当知道某结果事件的原因后,推断由该原因导致这件事发生的概率是多少。

贝叶斯公式

贝叶斯公式在观测到结果事件AA发生后,计算其条件事件BiB_i在事件AA已经发生的条件下而发生的后验概率。

继续沿用上述全概率公式的符号定义,则有:

P(BiA)=P(ABi)P(Bi)P(A)P(B_i\mid A)=\frac{P(A\mid B_i)\cdot P(B_i)}{P(A)}

其中:

  • P(Bi)P(B_i)以及P(A)P(A)称为先验概率
  • P(BiA)P(B_i\mid A)称为后验概率
  • P(ABi)P(A\mid B_i)称为似然

条件概率与高斯分布的KL散度

条件概率的一般形式

P(A,B,C)=P(CA,B)P(A,B)=P(CA,B)P(BA)P(A)P(A,B,C)=P(C\mid A,B)\cdot P(A,B)=P(C\mid A,B)\cdot P(B\mid A)\cdot P(A)
P(B,CA)=P(BA)P(CA,B)P(B,C\mid A)=P(B\mid A)\cdot P(C\mid A,B)

其中,第二行公式的推导如下:

P(B,CA)=P(A,B,C)P(A)=P(A,B,C)P(A,B,C)P(CA,B)P(BA)=P(BA)P(CA,B)\begin{align*} P(B,C \mid A) &= \frac{P(A,B,C)}{P(A)} \\ &= \frac{P(A,B,C)}{\frac{P(A,B,C)}{P(C \mid A,B) \cdot P(B \mid A)}} \\ &= P(B \mid A) \cdot P(C \mid A,B) \end{align*}

高斯分布的KL散度

对于两个单一变量的高斯分布pN(μ1,σ12)p\sim \mathcal{N}(\mu_1,\sigma_1^2)qN(μ2,σ22)q\sim \mathcal{N}(\mu_2,\sigma_2^2)而言,它们的KL散度定义为:

DKL(p,q)=logσ2σ1+σ12+(μ1μ2)22σ2212D_{KL}(p,q)=\log\frac{\sigma_2}{\sigma_1}+\frac{\sigma_1^2+(\mu_1-\mu_2)^2}{2\sigma_2^2}-\frac12

马尔科夫链条件概率形式

马尔科夫链指当前状态的概率只与上一时刻有关,例如若满足马尔科夫关系ABCA\to B\to C,则有:

P(A,B,C)=P(CA,B)P(A,B)=P(CB)P(BA)P(A)P(A,B,C) =P(C\mid A,B)\cdot P(A,B)=P(C\mid B)\cdot P(B\mid A)\cdot P(A)
P(B,CA)=P(BA)P(CB)P(B,C\mid A)=P(B\mid A)\cdot P(C\mid B)

参数重整化技巧

从任意高斯分布N(μ,σ2)\mathcal{N}(\mu,\sigma^2)采样xx时,可以先从标准高斯分布N(0,1)\mathcal{N}(0,1)中sample出zz,再令

x=σz+μx=\sigma * z + \mu

优势:

  1. 由于线性变化,采样过程中对其他参数都有明确的导数,可以进行反向传播
  2. 可以通过线性变换控制参数化的采样
  3. 标准正态分布具有易采样的性质
+ + + + \ No newline at end of file diff --git "a/docs/Deep-Learning/\350\256\272\346\226\207\347\254\224\350\256\260/High-Resolution Image Synthesis with Latent Diffusion Models/index.html" "b/docs/Deep-Learning/\350\256\272\346\226\207\347\254\224\350\256\260/High-Resolution Image Synthesis with Latent Diffusion Models/index.html" new file mode 100644 index 000000000..ddf8ebd21 --- /dev/null +++ "b/docs/Deep-Learning/\350\256\272\346\226\207\347\254\224\350\256\260/High-Resolution Image Synthesis with Latent Diffusion Models/index.html" @@ -0,0 +1,18 @@ + + + + + +CVPR 2022: High-Resolution Image Synthesis with Latent Diffusion Models | 培洋的笔记本📒 + + + + +
+
+ + + + \ No newline at end of file diff --git "a/docs/Deep-Learning/\350\256\272\346\226\207\347\254\224\350\256\260/Zero-shot Generative Model Adaptation via Image-specific Prompt Learning/index.html" "b/docs/Deep-Learning/\350\256\272\346\226\207\347\254\224\350\256\260/Zero-shot Generative Model Adaptation via Image-specific Prompt Learning/index.html" new file mode 100644 index 000000000..8310ef051 --- /dev/null +++ "b/docs/Deep-Learning/\350\256\272\346\226\207\347\254\224\350\256\260/Zero-shot Generative Model Adaptation via Image-specific Prompt Learning/index.html" @@ -0,0 +1,18 @@ + + + + + +CVPR 2023: Zero-shot Generative Model Adaptation via Image-specific Prompt Learning | 培洋的笔记本📒 + + + + +
+

CVPR 2023: Zero-shot Generative Model Adaptation via Image-specific Prompt Learning

相关链接

摘要

本文提出了Image-specific Prompt Learning(IPL)方法来解决风格迁移任务中生成模型从源域到目标域的适应问题。一个Latent Mapper来从源域图像中学习出包含图像特征适应目标域的prompt,从而指导目标域生成器的训练。

This produces a more precise adaptation direction for every cross-domain image pair, endowing the target-domain generator with greatly enhanced flexibility.

训练资料是源域和目标域的文字标签以及源域的图像,并不需要目标域的图像。此外,IPL独立于生成模型,可以自由选择Diffusion Model或GAN等。

相关工作

Generative Model Adaption

Generative Model Adaption的任务是使在大规模源域图片上训练的生成模型适应到数据有限的目标域中,根据目标域训练资料的大小可以分为few-shot和zero-shot。

few-shot

对于few-shot任务,一般是通过有限的目标域训练集资料fine-tune预训练模型。

然而,fine-tune通常会导致过拟合。为了解决过拟合问题,通常使用的方法是施加强正则化、使用扰动法、跨域对齐或数据增强。

相关文献方法
  • 强正则化:Han Zhang, Zizhao Zhang, Augustus Odena, and Honglak Lee. Consistency regularization for generative adversarial networks. In ICLR, 2019.
  • 扰动法:Sangwoo Mo, Minsu Cho, and Jinwoo Shin. Freeze the discriminator: a simple baseline for fine-tuning GANs. In CVPR Workshops, 2020.
  • 跨域对齐:Utkarsh Ojha, Yijun Li, Jingwan Lu, Alexei A Efros, Yong Jae Lee, Eli Shechtman, and Richard Zhang. Fewshot image generation via cross-domain correspondence. In CVPR, 2021.
  • 数据增强:Ngoc-Trung Tran, Viet-Hung Tran, Ngoc-Bao Nguyen, Trung-Kien Nguyen, and Ngai-Man Cheung. On data augmentation for GAN training. TIP, 2021.

zero-shot

对于零样本的图像生成模型的适应任务,NADA率先引入了CLIP模型来获取必须的先验知识,通过预训练大模型的语言理解能力实现在目标域只需要文字标签而不需要图片,将源域和目标域之间的差距编码为在CLIP空间上文字引导的适应方向。

此后,CVPR 2022发表的DiffusionCLIP使用了Diffusion模型代替NADA中的StyleGANs,获得了更好的特征保存能力。

然而这些方法都是采用了固定的适应方向,只包含基础的域知识,而不是图片特定的特征。在本文中,作者发现这种共享的、固定的适应方向会导致Mode Collapse(模式坍塌),因此提出了从每个源域图像中学习出多样且准确的prompt,为生成模型向目标域的适应提供更精确的方向。

image-20231221214755712

Prompt Learning

Prompt工程最初是一种Knowledge Probing(知识探测)方法,给定完形填空(cloze-style)类的prompt,引导模型产生相对应的答案。

然而人工设计的prompt通常不是最优的,可能提供不准确的适应方向。为了解决这个问题,在NLP领域的Prompt Learning发展迅速,并随着视觉-语言大模型的发展,应用在了视觉任务中。

Kaiyang Zhou等人首先在图像分类任务中采用上下文优化,在词嵌入空间中对具有连续向量的上下文词进行建模。随后Prompt Learning在计算机视觉中的许多下游任务都得到了探索,例如目标检测、视频理解和迁移学习等。

主要方法

概述

IPL方法分两个阶段。

第一阶段:训练Latent Mapper

第一阶段的主要任务是训练Lantent Mapper来为每一个训练集的源域图片生成一组prompt。Latent Mapper接收源域图像的latent representation,生成一组prompt向量。第一阶段需要解决两个问题,即在zero-shot的背景下,如何实现prompt与源域图像特征的对齐以及prompt与目标域空间的对齐,因此第一阶段的训练分两部分进行。

第一部分是Latent Mapper输出的prompt与目标域标签concat后送入来自CLIP的Text Encoder得到目标域图片prompt在CLIP空间的编码表示,并与目标域标签经过Text Encoder后的编码共同作为Domain Loss的输入来约束从源域中学习到的prompt与目标域空间对齐。

第二部分是Latent Mapper输出的prompt与源域标签concat后送入来自CLIP的Text Encoder得到源域图片prompt描述在CLIP空间的编码表示,同时源域图像再经过来自CLIP的Image Encoder后得到其在CLIP空间的编码表示。将源域的prompt文字和图像编码表示作为contrastive learning loss的输入,约束学习到的prompt与源域图像的特征对齐。

prompt产生策略

第二阶段:将Latent Mapper插入目标域生成器的训练过程

第二阶段利用Directional CLIP Loss来训练目标域生成器,使源于生成器向目标域迁移学习。需要输入源域以及目标域图像、源域以及目标域的prompt描述。源域图像的latent representation分别输入至源域生成器和目标域生成器中得到对应的图像,同时指导风格迁移方向的源域以及目标域的prompt描述由Latent Mapper接收源域图像的隐式表示后输出再分别与源域和目标域标签concat而得到。分别将源域图像、生成的目标域图像以及源域、目标域的图片prompt描述一起输入至Directional CLIP Loss,从而约束由源域图像生成器初始化的目标域图像生成器向目标域的迁移学习。

image-20231221231045323

Image-specific Prompt Learning

+ + + + \ No newline at end of file diff --git "a/docs/Others/Linux/\345\256\236\347\224\250\345\267\245\345\205\267/\347\273\210\347\253\257\344\273\243\347\220\206/index.html" "b/docs/Others/Linux/\345\256\236\347\224\250\345\267\245\345\205\267/\347\273\210\347\253\257\344\273\243\347\220\206/index.html" new file mode 100644 index 000000000..5d0585b48 --- /dev/null +++ "b/docs/Others/Linux/\345\256\236\347\224\250\345\267\245\345\205\267/\347\273\210\347\253\257\344\273\243\347\220\206/index.html" @@ -0,0 +1,18 @@ + + + + + +终端代理 | 培洋的笔记本📒 + + + + +
+

终端代理

通过编写脚本函数的方式,手动开启代理

一、编写脚本

新建脚本文件terminal_proxy.sh

# 开启代理
function proxy_on(){
export ALL_PROXY=socks5://127.0.0.1:7890
export http_proxy=http://127.0.0.1:7890
export https_proxy=https://127.0.0.1:7890
echo -e "已开启代理"
}

# 关闭代理
function proxy_off(){
unset ALL_PROXY
unset http_proxy
unset https_proxy
echo -e "已关闭代理"
}

二、关联终端配置文件

fish的配置文件:~/.config/fish/config.fish

zsh的配置文件:~/.zshrc

bash的配置文件:~/.bashrc

在配置文件末尾添加以下代码

source /path/terminal_proxy.sh

三、使用

在终端中输入以下命令即可开启代理

proxy_on

在终端中输入以下命令即可关闭代理

proxy_off
+ + + + \ No newline at end of file diff --git "a/docs/Others/Linux/\345\256\242\345\210\266\345\214\226/\345\246\202\344\275\225\350\256\251\344\275\240\347\232\204KDE\347\234\213\350\265\267\346\235\245\346\233\264\345\203\217macOS/index.html" "b/docs/Others/Linux/\345\256\242\345\210\266\345\214\226/\345\246\202\344\275\225\350\256\251\344\275\240\347\232\204KDE\347\234\213\350\265\267\346\235\245\346\233\264\345\203\217macOS/index.html" new file mode 100644 index 000000000..91487f83c --- /dev/null +++ "b/docs/Others/Linux/\345\256\242\345\210\266\345\214\226/\345\246\202\344\275\225\350\256\251\344\275\240\347\232\204KDE\347\234\213\350\265\267\346\235\245\346\233\264\345\203\217macOS/index.html" @@ -0,0 +1,18 @@ + + + + + +如何让你的Kde Plasma看起来更像macOS | 培洋的笔记本📒 + + + + +
+

如何让你的Kde Plasma看起来更像macOS

一、latte-dock

  1. dock显示的图标是全局图标,程序启动器的desktop文件位于/usr/share/applications中,全局主题中图标主题的程序logo位于~/.local/share/icons/Mkos-Big-Sur-Night/128x128/apps(deppending on specific situation)中。在logo文件夹中挑选想要的logo,在desktop中的icon位置修改即可
  2. 应用更新的时候会同时更新.desktop文件,因此在更换图标是最好直接更换在主题文件中替换icon,而不是更改desktop的icon路径
  3. Finder小组件中application title文字不能垂直居中,可以更换为Window title插件

二、Kde Plasmoids

Finder栏中Plasmoids左半部分从左至右依次为:

  • kpple menu
  • application title/window titile(if the text of application title can't be centered vertically)
  • global menu

右半部分从左至右依次为:

  • resources monitor (fork)
  • mcOS BS Inline Battery
  • 网络
  • Control Center(replace the icon with search icon)
  • Control Center(replace the icom with menu icon)
  • Better Inline Clock

安装方法:

plasmpkg2 -u xxx.plasmoid
+ + + + \ No newline at end of file diff --git "a/docs/Others/Linux/\351\227\256\351\242\230\350\247\243\345\206\263/\345\217\214\347\263\273\347\273\237\346\214\202\350\275\275Windows\347\243\201\347\233\230\344\270\272\345\217\252\350\257\273\346\226\207\344\273\266/index.html" "b/docs/Others/Linux/\351\227\256\351\242\230\350\247\243\345\206\263/\345\217\214\347\263\273\347\273\237\346\214\202\350\275\275Windows\347\243\201\347\233\230\344\270\272\345\217\252\350\257\273\346\226\207\344\273\266/index.html" new file mode 100644 index 000000000..4de197a01 --- /dev/null +++ "b/docs/Others/Linux/\351\227\256\351\242\230\350\247\243\345\206\263/\345\217\214\347\263\273\347\273\237\346\214\202\350\275\275Windows\347\243\201\347\233\230\344\270\272\345\217\252\350\257\273\346\226\207\344\273\266/index.html" @@ -0,0 +1,18 @@ + + + + + +挂载Windows磁盘为只读文件 | 培洋的笔记本📒 + + + + +
+

挂载Windows磁盘为只读文件

一、发生原因

未知,可能是由Windows休眠模式导致

二、解决方案

使用ntfsfix修复ntfs磁盘

  1. 安装ntfsfix

    yay -S ntfsfix
  2. 查看问题分区

    df -h
  3. 修复

    sudo ntfsfix /dev/your_partition
  4. 重启

    reboot
+ + + + \ No newline at end of file diff --git a/docs/Others/intro/index.html b/docs/Others/intro/index.html new file mode 100644 index 000000000..17c8f442a --- /dev/null +++ b/docs/Others/intro/index.html @@ -0,0 +1,18 @@ + + + + + +Welcome | 培洋的笔记本📒 + + + + +
+

Welcome

提示

欢迎来到笔记本的其他部分

支持我!

如果可以帮到你的话就给个免费的Star吧!

+ + + + \ No newline at end of file diff --git "a/docs/Others/\345\215\232\345\256\242\346\220\255\345\273\272/\345\221\212\347\244\272\346\240\217/index.html" "b/docs/Others/\345\215\232\345\256\242\346\220\255\345\273\272/\345\221\212\347\244\272\346\240\217/index.html" new file mode 100644 index 000000000..6c424f730 --- /dev/null +++ "b/docs/Others/\345\215\232\345\256\242\346\220\255\345\273\272/\345\221\212\347\244\272\346\240\217/index.html" @@ -0,0 +1,18 @@ + + + + + +告示栏 | 培洋的笔记本📒 + + + + +
+

告示栏

  1. 告示栏的启用

    在docusaurus.config.js的themeConfig中加入以下代码

          announcementBar: {
    id: 'announcementBar-3',
    content: 'Welcome to my notebook!',
    isCloseable: false,
    },
  2. 告示栏的背景个性化

    在custom.css中加入以下代码

    div[class^='announcementBar_'] {
    background: repeating-linear-gradient(
    -35deg,
    var(--ifm-color-primary-lighter),
    var(--ifm-color-primary-lighter) 20px,
    var(--ifm-color-primary-lightest) 10px,
    var(--ifm-color-primary-lightest) 40px
    );
    font-weight: 700;
    }
+ + + + \ No newline at end of file diff --git a/docs/Tui-Mian/Summary/index.html b/docs/Tui-Mian/Summary/index.html new file mode 100644 index 000000000..e11fcd8e4 --- /dev/null +++ b/docs/Tui-Mian/Summary/index.html @@ -0,0 +1,18 @@ + + + + + +经验贴:2023年双非计算机保研经历 | 培洋的笔记本📒 + + + + +
+

经验贴:2023年双非计算机保研经历

前言

自己在准备夏令营和预推免期间浏览了很多经验贴,按照科协的传统,也支持一下互联网精神,还是给师弟师妹们留下点文字资料吧。

希望可以帮到大家,也感谢那些曾经帮助过我的经验贴和师兄师姐。

文章均为个人经历与想法,不代表任何单位的官方立场,仅供参考。

扫盲

常见名词含义解释
928/929每年的公历9月28日(2023年是9月29日),是研招网全国推免系统开放的日子,也是已经拿到offer的推免生上岸的日子。
没offer的也不用着急,因为每个学生只能上一个学校,928/929当天就算手里一堆offer的学生也是只能选择最想去的学校而释放掉其他offer。稳住心态沉住气,一般10月20日推免系统才关闭,这段时间足够联系导师上岸了。
优营优营就是夏令营的优秀营员。
不同学校优营的效力不同,有些学校的优营直接等于拟录取,928/929当天填报系统即可上岸;但有些学校的优营只能保证在后期的预推免或九推的初筛中不被刷掉,仍需参加后续考核才能获得拟录取资格。
wl/waiting listwl就是递补名单,有些学校的夏令营优营评选中设置递补名单。如果后期有其他优营学生放鸽子不来的话,就会按顺序补录到递补名单中的学生。

个人情况

  • 本科学校:理工类普通一本(四非)
  • 专业:计算机科学与技术CS
  • rank:前1%(非rank 1 or 2的top选手)
  • 英语:四级594 & 六级586
  • 竞赛:非ACMer,一个CV类比赛国一,其他都是不上台面的奖项了
  • 奖学金:国家奖学金(夏令营结束之后才拿的,基本没用到)、省人民政府奖学金、CASC奖学金
  • 科研及论文:无正经科研经历,EI水会一篇

从某种程度上来说,本科出身和rank基本上决定了上限。

前期准备

夏令营

预推免

后序

+ + + + \ No newline at end of file diff --git a/docs/Tui-Mian/intro/index.html b/docs/Tui-Mian/intro/index.html new file mode 100644 index 000000000..841bdae54 --- /dev/null +++ b/docs/Tui-Mian/intro/index.html @@ -0,0 +1,18 @@ + + + + + +Welcome | 培洋的笔记本📒 + + + + +
+

Welcome

提示

欢迎来到笔记本的推免复习部分

支持我!

如果可以帮到你的话就给个免费的Star吧!

+ + + + \ No newline at end of file diff --git "a/docs/Tui-Mian/\346\225\260\345\255\246/\345\244\217\344\273\244\350\220\245\351\235\242\350\257\225\346\225\260\345\255\246\351\203\250\345\210\206\345\244\215\344\271\240/index.html" "b/docs/Tui-Mian/\346\225\260\345\255\246/\345\244\217\344\273\244\350\220\245\351\235\242\350\257\225\346\225\260\345\255\246\351\203\250\345\210\206\345\244\215\344\271\240/index.html" new file mode 100644 index 000000000..227178e3d --- /dev/null +++ "b/docs/Tui-Mian/\346\225\260\345\255\246/\345\244\217\344\273\244\350\220\245\351\235\242\350\257\225\346\225\260\345\255\246\351\203\250\345\210\206\345\244\215\344\271\240/index.html" @@ -0,0 +1,18 @@ + + + + + +夏令营面试数学部分复习 | 培洋的笔记本📒 + + + + +
+

夏令营面试数学部分复习

一、线性代数

线性相关与线性无关:向量组中的任一向量都不能被其它向量线性表示,就说向量组线性无关;否则就是线性相关。

矩阵转置:将矩阵的行和列互相交换

矩阵求逆:对于方阵A,若存在方阵B使得AB=BA=单位方阵I,则方阵B为方阵A的逆矩阵,记为A1A^{-1}

  1. 线性代数中的初等行变换。

    1. 交换两行
    2. 用非零常数乘以某一行
    3. 用一行的倍数加到另一行上
  2. 如何理解矩阵的秩。

    矩阵的秩是指矩阵的列空间(或行空间)的维数,简而言之是矩阵中所有非零行(或列)向量构成的集合所组成的最大线性无关组的向量个数。

    提示

    宋浩八字:非零子式的最高阶数

    任意矩阵的行秩都等于列秩。

  3. 矩阵的秩与线性方程组解的关系。

    对于n元线性方程组而言:

    1. 当系数矩阵的秩等于增广矩阵的秩且秩等于n时,有唯一解

    2. 当系数矩阵的秩等于增广矩阵的秩且秩大于n时,有无穷多解

    3. 当系数矩阵的秩不等于增广矩阵的秩时,无解

      提示

      当系数矩阵的秩小于增广矩阵的秩时,说明系数矩阵中的某一列向量(或行向量)可以被其他列向量(或行向量)线性表示,此时该行不能提供额外的线性独立信息

  4. 简述向量组线性无关的含义。

    含义:若一个向量组是线性无关的,则该向量组中的每个向量都不能表示成其他向量的线性组合。

    意义:如果一个向量组线性无关,那么该向量组所张成的空间就是一个最小维度的向量空间,并且该向量空间中的任何向量都可由这些向量线性组合表示。

    判定方法:如果一个向量组中的所有向量都不可以由其他向量线性组合得到,则称该向量组为线性无关的。否则,如果存在某个向量可以表示成其他向量的线性组合,则该向量组就不是线性无关的。

  5. 解释正定矩阵以及半正定矩阵。

  6. 简述特征值的含义。

    特征值描述了矩阵在特定方向(特征向量方向)上的缩放因子,特征向量表示矩阵在这个特定方向上的不变性。

  7. 简述矩阵分解的物理意义。

    矩阵分解是将一个矩阵表示为一些特定形式的矩阵乘积的过程。

    矩阵分解的种类以及物理意义:

    • LU分解:将矩阵分解为一个下三角矩阵和一个上三角矩阵的乘积。物理意义包括解线性方程组、计算矩阵的行列式和逆矩阵等。
    • QR分解:将矩阵分解为一个正交矩阵和一个上三角矩阵的乘积。物理意义包括最小二乘问题、矩阵的特征值计算等。
    • 特征值分解:将矩阵分解为一个特征向量矩阵和一个对角矩阵的乘积。物理意义包括矩阵的幂、指数和对称矩阵的对角化等。
    • 奇异值分解(SVD):将矩阵分解为一个正交矩阵、一个对角矩阵和一个正交矩阵的乘积。物理意义包括降维、矩阵逼近和图像压缩等。

二、概率论

  1. 简述大数定理。

    大数定理描述了大样本情况下随机变量的均值与其期望值之间的关系。对于独立同分布的随机变量序列,随着样本数量的增加,样本均值会以较高的概率接近其期望值。

  2. 简述中心极限定理。

    当独立随机变量的数量足够大时,它们的和(或平均值)的分布会逐渐接近一个正态分布。即使原始随机变量不服从正态分布,但当样本容量足够大时,和(或平均值)的分布仍然呈现出正态分布的特征。

  3. 什么是全概率公式。

    对于事件A而言,假设有一组互斥且穷尽的条件事件B,则事件A的概率等于事件A在每个条件事件下发生的概率与该条件事件发生概率的乘积和。

  4. 什么是最大似然估计。

    基本思想是在已知观测数据的情况下,通过调整参数的取值,找到使得观测数据出现概率最大的参数值。

    大致过程:

    1. 构建参数化的概率模型,即构建似然函数,表示在给定参数下观测数据出现的概率
    2. 取似然函数的对数,方便计算与优化
    3. 最大化似然函数,求解参数的最优值
  5. 简述贝叶斯定理。

    贝叶斯定理描述了在给定观测数据的条件下,计算事件的后验概率的方法。

    P(AB)=P(BA)P(A)P(B)P(A|B) = \frac{P(B|A) * P(A)}{P(B)}

    其中:

    • P(AB)P(A|B)表示在观测到事件 B 发生的条件下,事件 A 发生的概率,称为后验概率
    • P(BA)P(B|A)表示在事件 A 发生的条件下,事件 B 发生的概率,称为似然;
    • P(A)P(A)P(B)P(B)分别是事件 A 和事件 B 独立发生的先验概率。

    优点:它能够将主观先验知识与观测数据相结合,通过不断更新后验概率来进行推断和决策。

  6. P问题、NP问题以及NP完全问题

    提示

    P stands for Polynomial

    意为多项式

    P问题是可以在多项式时间内解决的问题

    NP问题是可以在多项式时间内验证解的正确性的问题

    NP完全问题是一类特殊的NP问题,没有已知的高效解决算法,并且可以在多项式时间内归约到任何其他的NP问题

+ + + + \ No newline at end of file diff --git "a/docs/Tui-Mian/\346\225\260\345\255\246/\346\246\202\347\216\207\350\256\272/index.html" "b/docs/Tui-Mian/\346\225\260\345\255\246/\346\246\202\347\216\207\350\256\272/index.html" new file mode 100644 index 000000000..0ebb23eb8 --- /dev/null +++ "b/docs/Tui-Mian/\346\225\260\345\255\246/\346\246\202\347\216\207\350\256\272/index.html" @@ -0,0 +1,18 @@ + + + + + +概率论 | 培洋的笔记本📒 + + + + +
+

概率论

面试常考问题

  1. 简述大数定理。

    大数定理描述了大样本情况下随机变量的均值与其期望值之间的关系。对于独立同分布的随机变量序列,随着样本数量的增加,样本均值会以较高的概率接近其期望值。

  2. 简述中心极限定理。

    当独立随机变量的数量足够大时,它们的和(或平均值)的分布会逐渐接近一个正态分布。即使原始随机变量不服从正态分布,但当样本容量足够大时,和(或平均值)的分布仍然呈现出正态分布的特征。

  3. 什么是全概率公式。

    对于事件A而言,假设有一组互斥且穷尽的条件事件B,则事件A的概率等于事件A在每个条件事件下发生的概率与该条件事件发生概率的乘积和。

  4. 什么是最大似然估计。

    基本思想是在已知观测数据的情况下,通过调整参数的取值,找到使得观测数据出现概率最大的参数值。

    大致过程:

    1. 构建参数化的概率模型,即构建似然函数,表示在给定参数下观测数据出现的概率
    2. 取似然函数的对数,方便计算与优化
    3. 最大化似然函数,求解参数的最优值
  5. 简述贝叶斯定理。

    贝叶斯定理描述了在给定观测数据的条件下,计算事件的后验概率的方法。

    P(AB)=P(BA)P(A)P(B)P(A|B) = \frac{P(B|A) * P(A)}{P(B)}

    其中:

    • P(AB)P(A|B)表示在观测到事件 B 发生的条件下,事件 A 发生的概率,称为后验概率
    • P(BA)P(B|A)表示在事件 A 发生的条件下,事件 B 发生的概率,称为似然;
    • P(A)P(A)P(B)P(B)分别是事件 A 和事件 B 独立发生的先验概率。

    优点:它能够将主观先验知识与观测数据相结合,通过不断更新后验概率来进行推断和决策。

  6. P问题、NP问题以及NP完全问题

    提示

    P stands for Polynomial

    意为多项式

    P问题是可以在多项式时间内解决的问题

    NP问题是可以在多项式时间内验证解的正确性的问题

    NP完全问题是一类特殊的NP问题,没有已知的高效解决算法,并且可以在多项式时间内归约到任何其他的NP问题

+ + + + \ No newline at end of file diff --git "a/docs/Tui-Mian/\346\225\260\345\255\246/\347\272\277\346\200\247\344\273\243\346\225\260/index.html" "b/docs/Tui-Mian/\346\225\260\345\255\246/\347\272\277\346\200\247\344\273\243\346\225\260/index.html" new file mode 100644 index 000000000..8cb4d7a0d --- /dev/null +++ "b/docs/Tui-Mian/\346\225\260\345\255\246/\347\272\277\346\200\247\344\273\243\346\225\260/index.html" @@ -0,0 +1,18 @@ + + + + + +线性代数 | 培洋的笔记本📒 + + + + +
+

线性代数

一、基础知识

image-20230626214118462

image-20230626214142283

线性相关与线性无关:向量组中的任一向量都不能被其它向量线性表示,就说向量组线性无关;否则就是线性相关。

矩阵转置:将矩阵的行和列互相交换

矩阵求逆:对于方阵A,若存在方阵B使得AB=BA=单位方阵I,则方阵B为方阵A的逆矩阵,记为A1A^{-1}

二、面试常考问题

  1. 线性代数中的初等行变换。

    1. 交换两行
    2. 用非零常数乘以某一行
    3. 用一行的倍数加到另一行上
  2. 如何理解矩阵的秩。

    矩阵的秩是指矩阵的列空间(或行空间)的维数,简而言之是矩阵中所有非零行(或列)向量构成的集合所组成的最大线性无关组的向量个数。

    提示

    宋浩八字:非零子式的最高阶数

    任意矩阵的行秩都等于列秩。

  3. 矩阵的秩与线性方程组解的关系。

    对于n元线性方程组而言:

    1. 当系数矩阵的秩等于增广矩阵的秩且秩等于n时,有唯一解

    2. 当系数矩阵的秩等于增广矩阵的秩且秩大于n时,有无穷多解

    3. 当系数矩阵的秩不等于增广矩阵的秩时,无解

      提示

      当系数矩阵的秩小于增广矩阵的秩时,说明系数矩阵中的某一列向量(或行向量)可以被其他列向量(或行向量)线性表示,此时该行不能提供额外的线性独立信息

  4. 简述向量组线性无关的含义。

    含义:若一个向量组是线性无关的,则该向量组中的每个向量都不能表示成其他向量的线性组合。

    意义:如果一个向量组线性无关,那么该向量组所张成的空间就是一个最小维度的向量空间,并且该向量空间中的任何向量都可由这些向量线性组合表示。

    判定方法:如果一个向量组中的所有向量都不可以由其他向量线性组合得到,则称该向量组为线性无关的。否则,如果存在某个向量可以表示成其他向量的线性组合,则该向量组就不是线性无关的。

  5. 解释正定矩阵以及半正定矩阵。

  6. 简述特征值的含义。

    特征值描述了矩阵在特定方向(特征向量方向)上的缩放因子,特征向量表示矩阵在这个特定方向上的不变性。

  7. 简述矩阵分解的物理意义。

    矩阵分解是将一个矩阵表示为一些特定形式的矩阵乘积的过程。

    矩阵分解的种类以及物理意义:

    • LU分解:将矩阵分解为一个下三角矩阵和一个上三角矩阵的乘积。物理意义包括解线性方程组、计算矩阵的行列式和逆矩阵等。
    • QR分解:将矩阵分解为一个正交矩阵和一个上三角矩阵的乘积。物理意义包括最小二乘问题、矩阵的特征值计算等。
    • 特征值分解:将矩阵分解为一个特征向量矩阵和一个对角矩阵的乘积。物理意义包括矩阵的幂、指数和对称矩阵的对角化等。
    • 奇异值分解(SVD):将矩阵分解为一个正交矩阵、一个对角矩阵和一个正交矩阵的乘积。物理意义包括降维、矩阵逼近和图像压缩等。
+ + + + \ No newline at end of file diff --git "a/docs/Tui-Mian/\346\234\272\350\257\225/\345\244\247\346\225\260\351\231\244\346\263\225/index.html" "b/docs/Tui-Mian/\346\234\272\350\257\225/\345\244\247\346\225\260\351\231\244\346\263\225/index.html" new file mode 100644 index 000000000..0974e3296 --- /dev/null +++ "b/docs/Tui-Mian/\346\234\272\350\257\225/\345\244\247\346\225\260\351\231\244\346\263\225/index.html" @@ -0,0 +1,18 @@ + + + + + +大数除法 | 培洋的笔记本📒 + + + + +
+

大数除法

提示

大数除法是指被除数大小超出long long范围,而导致必须使用字符串存储的除法,属于简单模拟的范畴

思路

通过模拟列竖式手动计算除法,实现使用字符串存储被除数的大数除法

参考代码

string division(string s, int divisor) {
/*
* 通过模拟列竖式手算除法完成字符串存储的大数除法
*/
string quotient; // 商
int idx = 0; // 当前处理的数字在原始字符串中的位置
int remainder = 0; // 余数
int temp = 0;
while (idx < s.size()) { // 一直循环处理到索引等于长度
temp = remainder * 10 + (s[idx] - '0'); // 当前进行除法运算的temp
if (temp >= divisor) { // 如果能除的动,则将当前的商插入quotient,并更新余数
quotient.push_back(temp / divisor + '0');
remainder = temp % divisor;
} else { // 除不动时分两种情况
if (!quotient.empty()) { // 商目前不为空,此时按照竖式方法,需要向商中加入0,再接着下一次循环
quotient.push_back('0');
}
remainder = temp; // 商目前为空,按照竖式计算方法,只更新余数,商保持为空
}
idx++; // 更新索引位置
}
if (quotient.empty()) { // 如果一直除不动,循环结束商还为空,则赋值为0字符串
quotient.assign("0");
}
return quotient; // 返回商字符串
}

扩展

将大数除法与进制转换相结合。

完整代码如下:

#include <bits/stdc++.h>

using namespace std;

string division(string s, int divisor) {
/*
* 通过模拟列竖式手算除法完成字符串存储的大数除法
*/
string quotient; // 商
int idx = 0; // 当前处理的数字在原始字符串中的位置
int remainder = 0; // 余数
int temp = 0;
while (idx < s.size()) { // 一直循环处理到索引等于长度
temp = remainder * 10 + (s[idx] - '0'); // 当前进行除法运算的temp
if (temp >= divisor) { // 如果能除的动,则将当前的商插入quotient,并更新余数
quotient.push_back(temp / divisor + '0');
remainder = temp % divisor;
} else { // 除不动时分两种情况
if (!quotient.empty()) { // 商目前不为空,此时按照竖式方法,需要向商中加入0,再接着下一次循环
quotient.push_back('0');
}
remainder = temp; // 商目前为空,按照竖式计算方法,只更新余数,商保持为空
}
idx++; // 更新索引位置
}
if (quotient.empty()) { // 如果一直除不动,循环结束商还为空,则赋值为0字符串
quotient.assign("0");
}
return quotient; // 返回商字符串
}

int main() {
string s;
while (cin >> s) {
vector<int> vec;
int len = s.size();
while (s != "0") {
int remainder = (s[len - 1] - '0') % 2;
vec.push_back(remainder);
s = division(s, 2);
len = s.size();
}
if (vec.empty()) {
cout << "0";
} else {
for (auto it = vec.rbegin(); it != vec.rend(); it++) {
cout << *it;
}
}
cout << endl;
}
return 0;
}
+ + + + \ No newline at end of file diff --git "a/docs/Tui-Mian/\347\256\200\345\216\206/\347\256\200\345\216\206\351\235\242\350\257\225\345\207\206\345\244\207/index.html" "b/docs/Tui-Mian/\347\256\200\345\216\206/\347\256\200\345\216\206\351\235\242\350\257\225\345\207\206\345\244\207/index.html" new file mode 100644 index 000000000..cff5bf230 --- /dev/null +++ "b/docs/Tui-Mian/\347\256\200\345\216\206/\347\256\200\345\216\206\351\235\242\350\257\225\345\207\206\345\244\207/index.html" @@ -0,0 +1,24 @@ + + + + + +简历面试准备 | 培洋的笔记本📒 + + + + +
+

简历面试准备

一、U-2-Net

(一)SOD任务

显著性目标检测Salient Object Detection,相当于语义分割中的二分类任务,只有前景和背景

(二)网络结构

下图为U-2-Net的整体结构

image-20230618103036971

提示

residual [rɪˈzɪdjuəl]

在encoder阶段,每个block之后使用maxpooling下采样两倍 +在decoder阶段,每个block之后使用双线性插值上采样两倍

下图为Residual U-block的结构

image-20230618103937905

提示

卷积是如何改变输出的通道数的? +img

卷积核的通道数等于输入的通道数,卷积核的个数等于输出的通道数

图片来源知乎

在特征融合阶段,每一层的encoder-decoder输出,使用3x3卷积以及双线性插值上采样到原始分辨率得到该层的特征图,且卷积核的个数为1,输出的feature map通道数也为1。将每一层的feature map进行concat拼接,得到6通道的融合feature map,最后使用1x1卷积以及sigmoid激活函数得到最终的融合特征图输出

(三)损失函数

损失函数是7个损失项的加权求和 +共有6层encoder-decoder结构,将每一层对应的feature map与ground truth做BCE Loss得到6个损失项 +第7个损失项是最终融合得到的feature map与ground truth的BCE Loss +在论文中,每个损失项的权重都为1

canny边缘检测:

  1. 使用高斯滤波进行平滑
  2. 计算像素梯度
  3. 非极大值抑制
  4. 双阈值检测强边缘、弱边缘
  5. 边缘连接

(四)深度可分离卷积

深度可分离卷积的优点是可以在大致保持卷积效果的情况下减少参数量

在实现原理上可分为两个步骤:深度卷积(depth wise)以及逐点(point wise)卷积

深度卷积是一种在每个输入通道上分别进行卷积操作的卷积方法,每个输入通道只与对应的卷积核进行卷积。

逐点卷积通过使用1×11 \times 1卷积对深度卷积的结果再次卷积

二、YOLO

(一)mAP

PR曲线所围成的面积即使该类的AP值

image-20230618120734230

(二)YOLOv1

1.预测阶段

下图为YOLOv1的算法框架

image-20230618122157583

下图为YOLOv1的网络结构

image-20230618122438429

输入[448, 448, 3]图像,输出[7, 7, 30]的tensor(包含所有预测框的坐标、置信度和类别结果),通过解析输出的tensor得到预测结果

image-20230618122634451

首先将输入图片划分为S×SS \times S个grid cell。在YOLOv1中S=7S=7

每个grid cell预测出BB个bounding box预测框(bbox),每个bbox的中心点都落在该grid cell中。在YOLOv1中B=2B=2

每个bbox包含(x, y, h, w, c)五种信息,其中x, y为bbox左上角坐标,h, w为bbox的宽高,c为该bbox是否存在object的概率

同时每个grid cell预测出一组与数据集有关的条件类别概率。在YOLOv1论文使用的数据集Pascal VOC中,类别种类为20类,因此在预测阶段输出的[7, 7, 30]的tensor含义如下图所示

每个grid cell选出条件类别概率最大的类别,因此每个grid cell只能检测一个物体

提示

这也是YOLOv1小目标和密集目标识别能力差的原因

image-20230708094841128

每个bbox的置信度与其父grid cell的类别概率相乘得到全概率,如下图所示

image-20230708100637488

进行NMS后处理:

  1. 对某一特定类别,首先根据全概率置信度排序
  2. 将此时最大置信度的bbox与其他所有置信度更小的bbox做IoU判断,若IoU大于设置的阈值,则抹除置信度小的bbox
  3. 将剩余的次大的置信度重复步骤2,抹除所有置信度更小的其IoU超过阈值的bbox
提示

非极大值抑制只在预测阶段进行

在训练阶段,所有bbox都会在Loss Function中起到更新的作用,因此不进行NMS

2. 训练过程的损失函数

image-20230618135151404

(二)YOLOv2

1. BN层

image-20230711101245141

2. 高分辨率训练

3. Anchor

YOLOv2引入了anchor机制代替bbox,将图像划分为13×1313 \times 13个grid cell,每个grid cell生成5个anchor

anchor是通过k-means聚类在数据集上生成的不同尺寸的先验框 +对数据集进行anchor宽高比的聚类,聚类数越大,覆盖的IoU越大,但同时模型也更复杂

(三)YOLOv5

1. 特征融合

YOLOv5使用CSPNet实现特征融合,CSP模块由主干和分支构成,主干提取低维特征,分支提取高维特征

主干通过卷积和池化提取特征,形成不同尺寸的特征图

分支将主干输出的特征图作为输入,逐步卷积和上采样提取高级别语义特征

主干特征图通过卷积对通道数降维之后与分支在通道维度上concat

提示

在特征提取以及融合阶段可以加入Canny边缘检测得到的特征图进行特征融合

2. 前处理

对填充黑色像素进行了改善,以填充更少的黑像素,提高了精度

3. 特征金字塔FCN

三、CBAM

提示

CBAM是通道+空间注意力机制(SENet是通道注意力机制)

(一)总体结构

image-20230710234929290

通道注意力:原始特征图[b,c,h,w][b, c, h, w]经过通道注意力机制算法得到[b,c,1,1][b, c, 1, 1]的tensor,代表不同通道之间的重要程度,将其与原始特征图相乘

空间注意力:经过通道注意力的特征图[b,c,h,w][b, c, h, w]经过空间注意力机制算法得到[b,1,h,w][b, 1, h, w]的tensor,代表宽高维度的像素之间的重要程度,将其与原始特征图相乘

(二)通道注意力

image-20230710235658595

原始特征图[b,c,h,w][b, c, h, w]分别经过最大池化和平均池化来压缩空间维度、学习通道之间的特征,得到[b,c,1,1][b, c, 1, 1]的tensor,再送入共享的多层感知机网络进行降维再升维,最后将二者相加再经过sigmoid函数产生最终的通道注意力特征图

(三)空间注意力

image-20230710235603737

原始特征图[b,c,h,w][b, c, h, w]分别经过最大池化和平均池化(通过torch.max和torch.mean函数实现)得到[b,1,h,w][b, 1, h, w]的tensor,再将二者concat后通过7×77 \times 7卷积学习特征并降维,最后送入sigmoid函数得到最终的空间注意力特征图

(四)其他注意事项

  1. 作者分别对通道注意力以及空间注意力使用最大池化还是平均池化做了消融实验,结果反映二者都用最大池化以及平均池化再相加效果最好(且对于7×77 \times 7卷积与3×33 \times 3卷积的消融实验发现,7×77 \times 7卷积效果更好)
  2. 作者对先通道注意力还是先空间注意力做了消融实验,结果发现先通道再空间效果更好

四、Focal Loss

Focal Loss通过引入修正项和样本关注度超参数,增加困难样本的关注度,来解决类别不均衡问题。

image-20230618135151404

YOLO损失函数分为分类损失以及回归损失,可以在分类损失中引入Focal Loss代替原来的交叉熵损失

五、SENet

image-20230711091505462

Squeeze and Excitation

Squeeze挤压操作就是将[b,c,h,w][b, c, h, w]的特征图通过池化挤压宽高维度,得到[b,c,1,1][b, c, 1, 1]的tensor,该tensor还要经过所示的全连接层-ReLU-全连接层结构

Excitation激励操作就是通过sigmoid函数得到每个通道之间的重要程度系数

六、自注意力机制

自注意力机制通过计算元素之间的相似度来确定它们之间的关联性,并对其进行加权处理以获得上下文信息。

  • 自注意力机制通过对输入的元素进行线性变换来得到查询(Query)向量键(Key)向量值(Value)向量
  • 通过点积和缩放点积计算相似程度

通过自注意力机制,每个元素都可以通过与其他元素的相似度计算和加权求和,获取到与它们相关的上下文信息。相似度高的元素将获得更高的权重,因此更受到关注和影响,从而建立起元素之间的关联性。

七、自我介绍

(一)英文自我介绍

This content has been encrypted.

(二)西电广研院自我介绍

1. 英文自我介绍

This content has been encrypted.

2. 中文自我介绍

This content has been encrypted.

(三)电子科技大学自我介绍

1. 英文自我介绍

This content has been encrypted.

2. 中文自我介绍

This content has been encrypted.

+ + + + \ No newline at end of file diff --git "a/docs/Tui-Mian/\350\256\241\347\256\227\346\234\272\345\237\272\347\241\200\347\273\274\345\220\210/\346\225\260\346\215\256\347\273\223\346\236\204/index.html" "b/docs/Tui-Mian/\350\256\241\347\256\227\346\234\272\345\237\272\347\241\200\347\273\274\345\220\210/\346\225\260\346\215\256\347\273\223\346\236\204/index.html" new file mode 100644 index 000000000..8d428389b --- /dev/null +++ "b/docs/Tui-Mian/\350\256\241\347\256\227\346\234\272\345\237\272\347\241\200\347\273\274\345\220\210/\346\225\260\346\215\256\347\273\223\346\236\204/index.html" @@ -0,0 +1,18 @@ + + + + + +数据结构 | 培洋的笔记本📒 + + + + +
+

数据结构

  1. 树的性质:

    • 一棵 N 个结点的树有 N-1 条边
    • 树的总度数+1=树的结点数
    • 树的度=树中度最大结点的度数
  2. 二叉树的性质:

    • 叶子结点数等于度为 2 的结点数加 1,即n0 = n2 + 1

  3. 树转化为二叉树:

    参考资料:知乎

    1. 加线。在所有的兄弟结点之间加一条线。
    2. 去线。树中的每个结点,只保留它与第一个孩子结点的连线,删除其他孩子结点之间的连线。
    3. 调整。每个结点的原来的孩子是结点的左孩子,由原来的兄弟结点转过来的孩子是结点的右孩子
  4. 二叉排序树:每个结点的左子树上的所有结点值都更小,每个结点的右子树上的所有结点的值都更大。

  5. 平衡二叉排序树:要么是空树,要么左子树的高度与右子树的高度之差小于等于1。

  1. 图的表示:

    • 邻接矩阵

    • 邻接表:每一行表示的是一个顶点所连接的顶点,链表不具有指向性

      邻接表的搜索

  2. 最小生成树:在连通网的所有生成树中,所有边的代价和最小的生成树,称为最小生成树。

    • Kruskal算法

    • Prim算法

  3. 最短路径

+ + + + \ No newline at end of file diff --git a/en/.nojekyll b/en/.nojekyll new file mode 100644 index 000000000..e69de29bb diff --git a/en/404.html b/en/404.html new file mode 100644 index 000000000..523fd7412 --- /dev/null +++ b/en/404.html @@ -0,0 +1,18 @@ + + + + + +Page Not Found | 培洋的笔记本📒 + + + + +
+

Page Not Found

We could not find what you were looking for.

Please contact the owner of the site that linked you to the original URL and let them know their link is broken.

+ + + + \ No newline at end of file diff --git a/en/assets/css/styles.2357b8b8.css b/en/assets/css/styles.2357b8b8.css new file mode 100644 index 000000000..f1b4f5b8c --- /dev/null +++ b/en/assets/css/styles.2357b8b8.css @@ -0,0 +1 @@ +.col,.container{padding:0 var(--ifm-spacing-horizontal);width:100%}.markdown>h2,.markdown>h3,.markdown>h4,.markdown>h5,.markdown>h6{margin-bottom:calc(var(--ifm-heading-vertical-rhythm-bottom)*var(--ifm-leading))}pre,table{overflow:auto}blockquote,pre{margin:0 0 var(--ifm-spacing-vertical)}.breadcrumbs__link,.button{transition-timing-function:var(--ifm-transition-timing-default)}.button,code{vertical-align:middle}.button--outline.button--active,.button--outline:active,.button--outline:hover,:root{--ifm-button-color:var(--ifm-font-color-base-inverse)}.menu__link:hover,a{transition:color var(--ifm-transition-fast) var(--ifm-transition-timing-default)}.navbar--dark,:root{--ifm-navbar-link-hover-color:var(--ifm-color-primary)}.menu,.navbar-sidebar{overflow-x:hidden}:root,html[data-theme=dark]{--ifm-color-emphasis-500:var(--ifm-color-gray-500)}.markdown li,body{word-wrap:break-word}.toggleButton_gllP,html{-webkit-tap-highlight-color:transparent}*,.loadingRing_RJI3 div{box-sizing:border-box}.clean-list,.containsTaskList_mC6p,.details_lb9f>summary,.dropdown__menu,.menu__list{list-style:none}:root{--ifm-color-scheme:light;--ifm-dark-value:10%;--ifm-darker-value:15%;--ifm-darkest-value:30%;--ifm-light-value:15%;--ifm-lighter-value:30%;--ifm-lightest-value:50%;--ifm-contrast-background-value:90%;--ifm-contrast-foreground-value:70%;--ifm-contrast-background-dark-value:70%;--ifm-contrast-foreground-dark-value:90%;--ifm-color-primary:#3578e5;--ifm-color-secondary:#ebedf0;--ifm-color-success:#00a400;--ifm-color-info:#54c7ec;--ifm-color-warning:#ffba00;--ifm-color-danger:#fa383e;--ifm-color-primary-dark:#306cce;--ifm-color-primary-darker:#2d66c3;--ifm-color-primary-darkest:#2554a0;--ifm-color-primary-light:#538ce9;--ifm-color-primary-lighter:#72a1ed;--ifm-color-primary-lightest:#9abcf2;--ifm-color-primary-contrast-background:#ebf2fc;--ifm-color-primary-contrast-foreground:#102445;--ifm-color-secondary-dark:#d4d5d8;--ifm-color-secondary-darker:#c8c9cc;--ifm-color-secondary-darkest:#a4a6a8;--ifm-color-secondary-light:#eef0f2;--ifm-color-secondary-lighter:#f1f2f5;--ifm-color-secondary-lightest:#f5f6f8;--ifm-color-secondary-contrast-background:#fdfdfe;--ifm-color-secondary-contrast-foreground:#474748;--ifm-color-success-dark:#009400;--ifm-color-success-darker:#008b00;--ifm-color-success-darkest:#007300;--ifm-color-success-light:#26b226;--ifm-color-success-lighter:#4dbf4d;--ifm-color-success-lightest:#80d280;--ifm-color-success-contrast-background:#e6f6e6;--ifm-color-success-contrast-foreground:#003100;--ifm-color-info-dark:#4cb3d4;--ifm-color-info-darker:#47a9c9;--ifm-color-info-darkest:#3b8ba5;--ifm-color-info-light:#6ecfef;--ifm-color-info-lighter:#87d8f2;--ifm-color-info-lightest:#aae3f6;--ifm-color-info-contrast-background:#eef9fd;--ifm-color-info-contrast-foreground:#193c47;--ifm-color-warning-dark:#e6a700;--ifm-color-warning-darker:#d99e00;--ifm-color-warning-darkest:#b38200;--ifm-color-warning-light:#ffc426;--ifm-color-warning-lighter:#ffcf4d;--ifm-color-warning-lightest:#ffdd80;--ifm-color-warning-contrast-background:#fff8e6;--ifm-color-warning-contrast-foreground:#4d3800;--ifm-color-danger-dark:#e13238;--ifm-color-danger-darker:#d53035;--ifm-color-danger-darkest:#af272b;--ifm-color-danger-light:#fb565b;--ifm-color-danger-lighter:#fb7478;--ifm-color-danger-lightest:#fd9c9f;--ifm-color-danger-contrast-background:#ffebec;--ifm-color-danger-contrast-foreground:#4b1113;--ifm-color-white:#fff;--ifm-color-black:#000;--ifm-color-gray-0:var(--ifm-color-white);--ifm-color-gray-100:#f5f6f7;--ifm-color-gray-200:#ebedf0;--ifm-color-gray-300:#dadde1;--ifm-color-gray-400:#ccd0d5;--ifm-color-gray-500:#bec3c9;--ifm-color-gray-600:#8d949e;--ifm-color-gray-700:#606770;--ifm-color-gray-800:#444950;--ifm-color-gray-900:#1c1e21;--ifm-color-gray-1000:var(--ifm-color-black);--ifm-color-emphasis-0:var(--ifm-color-gray-0);--ifm-color-emphasis-100:var(--ifm-color-gray-100);--ifm-color-emphasis-200:var(--ifm-color-gray-200);--ifm-color-emphasis-300:var(--ifm-color-gray-300);--ifm-color-emphasis-400:var(--ifm-color-gray-400);--ifm-color-emphasis-600:var(--ifm-color-gray-600);--ifm-color-emphasis-700:var(--ifm-color-gray-700);--ifm-color-emphasis-800:var(--ifm-color-gray-800);--ifm-color-emphasis-900:var(--ifm-color-gray-900);--ifm-color-emphasis-1000:var(--ifm-color-gray-1000);--ifm-color-content:var(--ifm-color-emphasis-900);--ifm-color-content-inverse:var(--ifm-color-emphasis-0);--ifm-color-content-secondary:#525860;--ifm-background-color:#0000;--ifm-background-surface-color:var(--ifm-color-content-inverse);--ifm-global-border-width:1px;--ifm-global-radius:0.4rem;--ifm-hover-overlay:#0000000d;--ifm-font-color-base:var(--ifm-color-content);--ifm-font-color-base-inverse:var(--ifm-color-content-inverse);--ifm-font-color-secondary:var(--ifm-color-content-secondary);--ifm-font-family-base:system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans,sans-serif,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";--ifm-font-family-monospace:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--ifm-font-size-base:100%;--ifm-font-weight-light:300;--ifm-font-weight-normal:400;--ifm-font-weight-semibold:500;--ifm-font-weight-bold:700;--ifm-font-weight-base:var(--ifm-font-weight-normal);--ifm-line-height-base:1.65;--ifm-global-spacing:1rem;--ifm-spacing-vertical:var(--ifm-global-spacing);--ifm-spacing-horizontal:var(--ifm-global-spacing);--ifm-transition-fast:200ms;--ifm-transition-slow:400ms;--ifm-transition-timing-default:cubic-bezier(0.08,0.52,0.52,1);--ifm-global-shadow-lw:0 1px 2px 0 #0000001a;--ifm-global-shadow-md:0 5px 40px #0003;--ifm-global-shadow-tl:0 12px 28px 0 #0003,0 2px 4px 0 #0000001a;--ifm-z-index-dropdown:100;--ifm-z-index-fixed:200;--ifm-z-index-overlay:400;--ifm-container-width:1140px;--ifm-container-width-xl:1320px;--ifm-code-background:#f6f7f8;--ifm-code-border-radius:var(--ifm-global-radius);--ifm-code-font-size:90%;--ifm-code-padding-horizontal:0.1rem;--ifm-code-padding-vertical:0.1rem;--ifm-pre-background:var(--ifm-code-background);--ifm-pre-border-radius:var(--ifm-code-border-radius);--ifm-pre-color:inherit;--ifm-pre-line-height:1.45;--ifm-pre-padding:1rem;--ifm-heading-color:inherit;--ifm-heading-margin-top:0;--ifm-heading-margin-bottom:var(--ifm-spacing-vertical);--ifm-heading-font-family:var(--ifm-font-family-base);--ifm-heading-font-weight:var(--ifm-font-weight-bold);--ifm-heading-line-height:1.25;--ifm-h1-font-size:2rem;--ifm-h2-font-size:1.5rem;--ifm-h3-font-size:1.25rem;--ifm-h4-font-size:1rem;--ifm-h5-font-size:0.875rem;--ifm-h6-font-size:0.85rem;--ifm-image-alignment-padding:1.25rem;--ifm-leading-desktop:1.25;--ifm-leading:calc(var(--ifm-leading-desktop)*1rem);--ifm-list-left-padding:2rem;--ifm-list-margin:1rem;--ifm-list-item-margin:0.25rem;--ifm-list-paragraph-margin:1rem;--ifm-table-cell-padding:0.75rem;--ifm-table-background:#0000;--ifm-table-stripe-background:#00000008;--ifm-table-border-width:1px;--ifm-table-border-color:var(--ifm-color-emphasis-300);--ifm-table-head-background:inherit;--ifm-table-head-color:inherit;--ifm-table-head-font-weight:var(--ifm-font-weight-bold);--ifm-table-cell-color:inherit;--ifm-link-color:var(--ifm-color-primary);--ifm-link-decoration:none;--ifm-link-hover-color:var(--ifm-link-color);--ifm-link-hover-decoration:underline;--ifm-paragraph-margin-bottom:var(--ifm-leading);--ifm-blockquote-font-size:var(--ifm-font-size-base);--ifm-blockquote-border-left-width:2px;--ifm-blockquote-padding-horizontal:var(--ifm-spacing-horizontal);--ifm-blockquote-padding-vertical:0;--ifm-blockquote-shadow:none;--ifm-blockquote-color:var(--ifm-color-emphasis-800);--ifm-blockquote-border-color:var(--ifm-color-emphasis-300);--ifm-hr-background-color:var(--ifm-color-emphasis-500);--ifm-hr-height:1px;--ifm-hr-margin-vertical:1.5rem;--ifm-scrollbar-size:7px;--ifm-scrollbar-track-background-color:#f1f1f1;--ifm-scrollbar-thumb-background-color:silver;--ifm-scrollbar-thumb-hover-background-color:#a7a7a7;--ifm-alert-background-color:inherit;--ifm-alert-border-color:inherit;--ifm-alert-border-radius:var(--ifm-global-radius);--ifm-alert-border-width:0px;--ifm-alert-border-left-width:5px;--ifm-alert-color:var(--ifm-font-color-base);--ifm-alert-padding-horizontal:var(--ifm-spacing-horizontal);--ifm-alert-padding-vertical:var(--ifm-spacing-vertical);--ifm-alert-shadow:var(--ifm-global-shadow-lw);--ifm-avatar-intro-margin:1rem;--ifm-avatar-intro-alignment:inherit;--ifm-avatar-photo-size:3rem;--ifm-badge-background-color:inherit;--ifm-badge-border-color:inherit;--ifm-badge-border-radius:var(--ifm-global-radius);--ifm-badge-border-width:var(--ifm-global-border-width);--ifm-badge-color:var(--ifm-color-white);--ifm-badge-padding-horizontal:calc(var(--ifm-spacing-horizontal)*0.5);--ifm-badge-padding-vertical:calc(var(--ifm-spacing-vertical)*0.25);--ifm-breadcrumb-border-radius:1.5rem;--ifm-breadcrumb-spacing:0.5rem;--ifm-breadcrumb-color-active:var(--ifm-color-primary);--ifm-breadcrumb-item-background-active:var(--ifm-hover-overlay);--ifm-breadcrumb-padding-horizontal:0.8rem;--ifm-breadcrumb-padding-vertical:0.4rem;--ifm-breadcrumb-size-multiplier:1;--ifm-breadcrumb-separator:url('data:image/svg+xml;utf8,');--ifm-breadcrumb-separator-filter:none;--ifm-breadcrumb-separator-size:0.5rem;--ifm-breadcrumb-separator-size-multiplier:1.25;--ifm-button-background-color:inherit;--ifm-button-border-color:var(--ifm-button-background-color);--ifm-button-border-width:var(--ifm-global-border-width);--ifm-button-font-weight:var(--ifm-font-weight-bold);--ifm-button-padding-horizontal:1.5rem;--ifm-button-padding-vertical:0.375rem;--ifm-button-size-multiplier:1;--ifm-button-transition-duration:var(--ifm-transition-fast);--ifm-button-border-radius:calc(var(--ifm-global-radius)*var(--ifm-button-size-multiplier));--ifm-button-group-spacing:2px;--ifm-card-background-color:var(--ifm-background-surface-color);--ifm-card-border-radius:calc(var(--ifm-global-radius)*2);--ifm-card-horizontal-spacing:var(--ifm-global-spacing);--ifm-card-vertical-spacing:var(--ifm-global-spacing);--ifm-toc-border-color:var(--ifm-color-emphasis-300);--ifm-toc-link-color:var(--ifm-color-content-secondary);--ifm-toc-padding-vertical:0.5rem;--ifm-toc-padding-horizontal:0.5rem;--ifm-dropdown-background-color:var(--ifm-background-surface-color);--ifm-dropdown-font-weight:var(--ifm-font-weight-semibold);--ifm-dropdown-link-color:var(--ifm-font-color-base);--ifm-dropdown-hover-background-color:var(--ifm-hover-overlay);--ifm-footer-background-color:var(--ifm-color-emphasis-100);--ifm-footer-color:inherit;--ifm-footer-link-color:var(--ifm-color-emphasis-700);--ifm-footer-link-hover-color:var(--ifm-color-primary);--ifm-footer-link-horizontal-spacing:0.5rem;--ifm-footer-padding-horizontal:calc(var(--ifm-spacing-horizontal)*2);--ifm-footer-padding-vertical:calc(var(--ifm-spacing-vertical)*2);--ifm-footer-title-color:inherit;--ifm-footer-logo-max-width:min(30rem,90vw);--ifm-hero-background-color:var(--ifm-background-surface-color);--ifm-hero-text-color:var(--ifm-color-emphasis-800);--ifm-menu-color:var(--ifm-color-emphasis-700);--ifm-menu-color-active:var(--ifm-color-primary);--ifm-menu-color-background-active:var(--ifm-hover-overlay);--ifm-menu-color-background-hover:var(--ifm-hover-overlay);--ifm-menu-link-padding-horizontal:0.75rem;--ifm-menu-link-padding-vertical:0.375rem;--ifm-menu-link-sublist-icon:url('data:image/svg+xml;utf8,');--ifm-menu-link-sublist-icon-filter:none;--ifm-navbar-background-color:var(--ifm-background-surface-color);--ifm-navbar-height:3.75rem;--ifm-navbar-item-padding-horizontal:0.75rem;--ifm-navbar-item-padding-vertical:0.25rem;--ifm-navbar-link-color:var(--ifm-font-color-base);--ifm-navbar-link-active-color:var(--ifm-link-color);--ifm-navbar-padding-horizontal:var(--ifm-spacing-horizontal);--ifm-navbar-padding-vertical:calc(var(--ifm-spacing-vertical)*0.5);--ifm-navbar-shadow:var(--ifm-global-shadow-lw);--ifm-navbar-search-input-background-color:var(--ifm-color-emphasis-200);--ifm-navbar-search-input-color:var(--ifm-color-emphasis-800);--ifm-navbar-search-input-placeholder-color:var(--ifm-color-emphasis-500);--ifm-navbar-search-input-icon:url('data:image/svg+xml;utf8,');--ifm-navbar-sidebar-width:83vw;--ifm-pagination-border-radius:var(--ifm-global-radius);--ifm-pagination-color-active:var(--ifm-color-primary);--ifm-pagination-font-size:1rem;--ifm-pagination-item-active-background:var(--ifm-hover-overlay);--ifm-pagination-page-spacing:0.2em;--ifm-pagination-padding-horizontal:calc(var(--ifm-spacing-horizontal)*1);--ifm-pagination-padding-vertical:calc(var(--ifm-spacing-vertical)*0.25);--ifm-pagination-nav-border-radius:var(--ifm-global-radius);--ifm-pagination-nav-color-hover:var(--ifm-color-primary);--ifm-pills-color-active:var(--ifm-color-primary);--ifm-pills-color-background-active:var(--ifm-hover-overlay);--ifm-pills-spacing:0.125rem;--ifm-tabs-color:var(--ifm-font-color-secondary);--ifm-tabs-color-active:var(--ifm-color-primary);--ifm-tabs-color-active-border:var(--ifm-tabs-color-active);--ifm-tabs-padding-horizontal:1rem;--ifm-tabs-padding-vertical:1rem;--docusaurus-progress-bar-color:var(--ifm-color-primary);--docusaurus-announcement-bar-height:auto;--docusaurus-tag-list-border:var(--ifm-color-emphasis-300);--docusaurus-collapse-button-bg:#0000;--docusaurus-collapse-button-bg-hover:#0000001a;--doc-sidebar-width:300px;--doc-sidebar-hidden-width:30px}.badge--danger,.badge--info,.badge--primary,.badge--secondary,.badge--success,.badge--warning{--ifm-badge-border-color:var(--ifm-badge-background-color)}.button--link,.button--outline{--ifm-button-background-color:#0000}html{-webkit-font-smoothing:antialiased;-webkit-text-size-adjust:100%;text-size-adjust:100%;background-color:var(--ifm-background-color);color:var(--ifm-font-color-base);color-scheme:var(--ifm-color-scheme);font:var(--ifm-font-size-base)/var(--ifm-line-height-base) var(--ifm-font-family-base);text-rendering:optimizelegibility}iframe{border:0;color-scheme:auto}.container{margin:0 auto;max-width:var(--ifm-container-width)}.container--fluid{max-width:inherit}.row{display:flex;flex-wrap:wrap;margin:0 calc(var(--ifm-spacing-horizontal)*-1)}.margin-bottom--none,.margin-vert--none,.markdown>:last-child{margin-bottom:0!important}.margin-top--none,.margin-vert--none{margin-top:0!important}.row--no-gutters{margin-left:0;margin-right:0}.margin-horiz--none,.margin-right--none{margin-right:0!important}.row--no-gutters>.col{padding-left:0;padding-right:0}.row--align-top{align-items:flex-start}.row--align-bottom{align-items:flex-end}.menuExternalLink_NmtK,.row--align-center{align-items:center}.row--align-stretch{align-items:stretch}.row--align-baseline{align-items:baseline}.col{--ifm-col-width:100%;flex:1 0;margin-left:0;max-width:var(--ifm-col-width)}.padding-bottom--none,.padding-vert--none{padding-bottom:0!important}.padding-top--none,.padding-vert--none{padding-top:0!important}.padding-horiz--none,.padding-left--none{padding-left:0!important}.padding-horiz--none,.padding-right--none{padding-right:0!important}.col[class*=col--]{flex:0 0 var(--ifm-col-width)}.col--1{--ifm-col-width:8.33333%}.col--offset-1{margin-left:8.33333%}.col--2{--ifm-col-width:16.66667%}.col--offset-2{margin-left:16.66667%}.col--3{--ifm-col-width:25%}.col--offset-3{margin-left:25%}.col--4{--ifm-col-width:33.33333%}.col--offset-4{margin-left:33.33333%}.col--5{--ifm-col-width:41.66667%}.col--offset-5{margin-left:41.66667%}.col--6{--ifm-col-width:50%}.col--offset-6{margin-left:50%}.col--7{--ifm-col-width:58.33333%}.col--offset-7{margin-left:58.33333%}.col--8{--ifm-col-width:66.66667%}.col--offset-8{margin-left:66.66667%}.col--9{--ifm-col-width:75%}.col--offset-9{margin-left:75%}.col--10{--ifm-col-width:83.33333%}.col--offset-10{margin-left:83.33333%}.col--11{--ifm-col-width:91.66667%}.col--offset-11{margin-left:91.66667%}.col--12{--ifm-col-width:100%}.col--offset-12{margin-left:100%}.margin-horiz--none,.margin-left--none{margin-left:0!important}.margin--none{margin:0!important}.margin-bottom--xs,.margin-vert--xs{margin-bottom:.25rem!important}.margin-top--xs,.margin-vert--xs{margin-top:.25rem!important}.margin-horiz--xs,.margin-left--xs{margin-left:.25rem!important}.margin-horiz--xs,.margin-right--xs{margin-right:.25rem!important}.margin--xs{margin:.25rem!important}.margin-bottom--sm,.margin-vert--sm{margin-bottom:.5rem!important}.margin-top--sm,.margin-vert--sm{margin-top:.5rem!important}.margin-horiz--sm,.margin-left--sm{margin-left:.5rem!important}.margin-horiz--sm,.margin-right--sm{margin-right:.5rem!important}.margin--sm{margin:.5rem!important}.margin-bottom--md,.margin-vert--md{margin-bottom:1rem!important}.margin-top--md,.margin-vert--md{margin-top:1rem!important}.margin-horiz--md,.margin-left--md{margin-left:1rem!important}.margin-horiz--md,.margin-right--md{margin-right:1rem!important}.margin--md{margin:1rem!important}.margin-bottom--lg,.margin-vert--lg{margin-bottom:2rem!important}.margin-top--lg,.margin-vert--lg{margin-top:2rem!important}.margin-horiz--lg,.margin-left--lg{margin-left:2rem!important}.margin-horiz--lg,.margin-right--lg{margin-right:2rem!important}.margin--lg{margin:2rem!important}.margin-bottom--xl,.margin-vert--xl{margin-bottom:5rem!important}.margin-top--xl,.margin-vert--xl{margin-top:5rem!important}.margin-horiz--xl,.margin-left--xl{margin-left:5rem!important}.margin-horiz--xl,.margin-right--xl{margin-right:5rem!important}.margin--xl{margin:5rem!important}.padding--none{padding:0!important}.padding-bottom--xs,.padding-vert--xs{padding-bottom:.25rem!important}.padding-top--xs,.padding-vert--xs{padding-top:.25rem!important}.padding-horiz--xs,.padding-left--xs{padding-left:.25rem!important}.padding-horiz--xs,.padding-right--xs{padding-right:.25rem!important}.padding--xs{padding:.25rem!important}.padding-bottom--sm,.padding-vert--sm{padding-bottom:.5rem!important}.padding-top--sm,.padding-vert--sm{padding-top:.5rem!important}.padding-horiz--sm,.padding-left--sm{padding-left:.5rem!important}.padding-horiz--sm,.padding-right--sm{padding-right:.5rem!important}.padding--sm{padding:.5rem!important}.padding-bottom--md,.padding-vert--md{padding-bottom:1rem!important}.padding-top--md,.padding-vert--md{padding-top:1rem!important}.padding-horiz--md,.padding-left--md{padding-left:1rem!important}.padding-horiz--md,.padding-right--md{padding-right:1rem!important}.padding--md{padding:1rem!important}.padding-bottom--lg,.padding-vert--lg{padding-bottom:2rem!important}.padding-top--lg,.padding-vert--lg{padding-top:2rem!important}.padding-horiz--lg,.padding-left--lg{padding-left:2rem!important}.padding-horiz--lg,.padding-right--lg{padding-right:2rem!important}.padding--lg{padding:2rem!important}.padding-bottom--xl,.padding-vert--xl{padding-bottom:5rem!important}.padding-top--xl,.padding-vert--xl{padding-top:5rem!important}.padding-horiz--xl,.padding-left--xl{padding-left:5rem!important}.padding-horiz--xl,.padding-right--xl{padding-right:5rem!important}.padding--xl{padding:5rem!important}code{background-color:var(--ifm-code-background);border:.1rem solid #0000001a;border-radius:var(--ifm-code-border-radius);font-family:var(--ifm-font-family-monospace);font-size:var(--ifm-code-font-size);padding:var(--ifm-code-padding-vertical) var(--ifm-code-padding-horizontal)}a code{color:inherit}pre{background-color:var(--ifm-pre-background);border-radius:var(--ifm-pre-border-radius);color:var(--ifm-pre-color);font:var(--ifm-code-font-size)/var(--ifm-pre-line-height) var(--ifm-font-family-monospace);padding:var(--ifm-pre-padding)}pre code{background-color:initial;border:none;font-size:100%;line-height:inherit;padding:0}kbd{background-color:var(--ifm-color-emphasis-0);border:1px solid var(--ifm-color-emphasis-400);border-radius:.2rem;box-shadow:inset 0 -1px 0 var(--ifm-color-emphasis-400);color:var(--ifm-color-emphasis-800);font:80% var(--ifm-font-family-monospace);padding:.15rem .3rem}h1,h2,h3,h4,h5,h6{color:var(--ifm-heading-color);font-family:var(--ifm-heading-font-family);font-weight:var(--ifm-heading-font-weight);line-height:var(--ifm-heading-line-height);margin:var(--ifm-heading-margin-top) 0 var(--ifm-heading-margin-bottom) 0}h1{font-size:var(--ifm-h1-font-size)}h2{font-size:var(--ifm-h2-font-size)}h3{font-size:var(--ifm-h3-font-size)}h4{font-size:var(--ifm-h4-font-size)}h5{font-size:var(--ifm-h5-font-size)}h6{font-size:var(--ifm-h6-font-size)}img{max-width:100%}img[align=right]{padding-left:var(--image-alignment-padding)}img[align=left]{padding-right:var(--image-alignment-padding)}.markdown{--ifm-h1-vertical-rhythm-top:3;--ifm-h2-vertical-rhythm-top:2;--ifm-h3-vertical-rhythm-top:1.5;--ifm-heading-vertical-rhythm-top:1.25;--ifm-h1-vertical-rhythm-bottom:1.25;--ifm-heading-vertical-rhythm-bottom:1}.markdown:after,.markdown:before{content:"";display:table}.markdown:after{clear:both}.markdown h1:first-child{--ifm-h1-font-size:3rem;margin-bottom:calc(var(--ifm-h1-vertical-rhythm-bottom)*var(--ifm-leading))}.markdown>h2{--ifm-h2-font-size:2rem;margin-top:calc(var(--ifm-h2-vertical-rhythm-top)*var(--ifm-leading))}.markdown>h3{--ifm-h3-font-size:1.5rem;margin-top:calc(var(--ifm-h3-vertical-rhythm-top)*var(--ifm-leading))}.markdown>h4,.markdown>h5,.markdown>h6{margin-top:calc(var(--ifm-heading-vertical-rhythm-top)*var(--ifm-leading))}.markdown>p,.markdown>pre,.markdown>ul{margin-bottom:var(--ifm-leading)}.markdown li>p{margin-top:var(--ifm-list-paragraph-margin)}.markdown li+li{margin-top:var(--ifm-list-item-margin)}ol,ul{margin:0 0 var(--ifm-list-margin);padding-left:var(--ifm-list-left-padding)}ol ol,ul ol{list-style-type:lower-roman}ol ol,ol ul,ul ol,ul ul{margin:0}ol ol ol,ol ul ol,ul ol ol,ul ul ol{list-style-type:lower-alpha}table{border-collapse:collapse;display:block;margin-bottom:var(--ifm-spacing-vertical)}table thead tr{border-bottom:2px solid var(--ifm-table-border-color)}table thead,table tr:nth-child(2n){background-color:var(--ifm-table-stripe-background)}table tr{background-color:var(--ifm-table-background);border-top:var(--ifm-table-border-width) solid var(--ifm-table-border-color)}table td,table th{border:var(--ifm-table-border-width) solid var(--ifm-table-border-color);padding:var(--ifm-table-cell-padding)}table th{background-color:var(--ifm-table-head-background);color:var(--ifm-table-head-color);font-weight:var(--ifm-table-head-font-weight)}table td{color:var(--ifm-table-cell-color)}strong{font-weight:var(--ifm-font-weight-bold)}a{color:var(--ifm-link-color);text-decoration:var(--ifm-link-decoration)}a:hover{color:var(--ifm-link-hover-color);text-decoration:var(--ifm-link-hover-decoration)}.button:hover,.text--no-decoration,.text--no-decoration:hover,a:not([href]){text-decoration:none}p{margin:0 0 var(--ifm-paragraph-margin-bottom)}blockquote{border-left:var(--ifm-blockquote-border-left-width) solid var(--ifm-blockquote-border-color);box-shadow:var(--ifm-blockquote-shadow);color:var(--ifm-blockquote-color);font-size:var(--ifm-blockquote-font-size);padding:var(--ifm-blockquote-padding-vertical) var(--ifm-blockquote-padding-horizontal)}blockquote>:first-child{margin-top:0}blockquote>:last-child{margin-bottom:0}hr{background-color:var(--ifm-hr-background-color);border:0;height:var(--ifm-hr-height);margin:var(--ifm-hr-margin-vertical) 0}.shadow--lw{box-shadow:var(--ifm-global-shadow-lw)!important}.shadow--md{box-shadow:var(--ifm-global-shadow-md)!important}.shadow--tl{box-shadow:var(--ifm-global-shadow-tl)!important}.text--primary,.wordWrapButtonEnabled_EoeP .wordWrapButtonIcon_Bwma{color:var(--ifm-color-primary)}.text--secondary{color:var(--ifm-color-secondary)}.text--success{color:var(--ifm-color-success)}.text--info{color:var(--ifm-color-info)}.text--warning{color:var(--ifm-color-warning)}.text--danger{color:var(--ifm-color-danger)}.text--center{text-align:center}.text--left{text-align:left}.text--justify{text-align:justify}.text--right{text-align:right}.text--capitalize{text-transform:capitalize}.text--lowercase{text-transform:lowercase}.admonitionHeading_tbUL,.alert__heading,.text--uppercase{text-transform:uppercase}.text--light{font-weight:var(--ifm-font-weight-light)}.text--normal{font-weight:var(--ifm-font-weight-normal)}.text--semibold{font-weight:var(--ifm-font-weight-semibold)}.text--bold{font-weight:var(--ifm-font-weight-bold)}.text--italic{font-style:italic}.text--truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.text--break{word-wrap:break-word!important;word-break:break-word!important}.clean-btn{background:none;border:none;color:inherit;cursor:pointer;font-family:inherit;padding:0}.alert,.alert .close{color:var(--ifm-alert-foreground-color)}.clean-list{padding-left:0}.alert--primary{--ifm-alert-background-color:var(--ifm-color-primary-contrast-background);--ifm-alert-background-color-highlight:#3578e526;--ifm-alert-foreground-color:var(--ifm-color-primary-contrast-foreground);--ifm-alert-border-color:var(--ifm-color-primary-dark)}.alert--secondary{--ifm-alert-background-color:var(--ifm-color-secondary-contrast-background);--ifm-alert-background-color-highlight:#ebedf026;--ifm-alert-foreground-color:var(--ifm-color-secondary-contrast-foreground);--ifm-alert-border-color:var(--ifm-color-secondary-dark)}.alert--success{--ifm-alert-background-color:var(--ifm-color-success-contrast-background);--ifm-alert-background-color-highlight:#00a40026;--ifm-alert-foreground-color:var(--ifm-color-success-contrast-foreground);--ifm-alert-border-color:var(--ifm-color-success-dark)}.alert--info{--ifm-alert-background-color:var(--ifm-color-info-contrast-background);--ifm-alert-background-color-highlight:#54c7ec26;--ifm-alert-foreground-color:var(--ifm-color-info-contrast-foreground);--ifm-alert-border-color:var(--ifm-color-info-dark)}.alert--warning{--ifm-alert-background-color:var(--ifm-color-warning-contrast-background);--ifm-alert-background-color-highlight:#ffba0026;--ifm-alert-foreground-color:var(--ifm-color-warning-contrast-foreground);--ifm-alert-border-color:var(--ifm-color-warning-dark)}.alert--danger{--ifm-alert-background-color:var(--ifm-color-danger-contrast-background);--ifm-alert-background-color-highlight:#fa383e26;--ifm-alert-foreground-color:var(--ifm-color-danger-contrast-foreground);--ifm-alert-border-color:var(--ifm-color-danger-dark)}.alert{--ifm-code-background:var(--ifm-alert-background-color-highlight);--ifm-link-color:var(--ifm-alert-foreground-color);--ifm-link-hover-color:var(--ifm-alert-foreground-color);--ifm-link-decoration:underline;--ifm-tabs-color:var(--ifm-alert-foreground-color);--ifm-tabs-color-active:var(--ifm-alert-foreground-color);--ifm-tabs-color-active-border:var(--ifm-alert-border-color);background-color:var(--ifm-alert-background-color);border:var(--ifm-alert-border-width) solid var(--ifm-alert-border-color);border-left-width:var(--ifm-alert-border-left-width);border-radius:var(--ifm-alert-border-radius);box-shadow:var(--ifm-alert-shadow);padding:var(--ifm-alert-padding-vertical) var(--ifm-alert-padding-horizontal)}.alert__heading{align-items:center;display:flex;font:700 var(--ifm-h5-font-size)/var(--ifm-heading-line-height) var(--ifm-heading-font-family);margin-bottom:.5rem}.alert__icon{display:inline-flex;margin-right:.4em}.alert__icon svg{fill:var(--ifm-alert-foreground-color);stroke:var(--ifm-alert-foreground-color);stroke-width:0}.alert .close{margin:calc(var(--ifm-alert-padding-vertical)*-1) calc(var(--ifm-alert-padding-horizontal)*-1) 0 0;opacity:.75}.alert .close:focus,.alert .close:hover{opacity:1}.alert a{text-decoration-color:var(--ifm-alert-border-color)}.alert a:hover{text-decoration-thickness:2px}.avatar{column-gap:var(--ifm-avatar-intro-margin);display:flex}.avatar__photo{border-radius:50%;display:block;height:var(--ifm-avatar-photo-size);overflow:hidden;width:var(--ifm-avatar-photo-size)}.card--full-height,.navbar__logo img,body,html{height:100%}.avatar__photo--sm{--ifm-avatar-photo-size:2rem}.avatar__photo--lg{--ifm-avatar-photo-size:4rem}.avatar__photo--xl{--ifm-avatar-photo-size:6rem}.avatar__intro{display:flex;flex:1 1;flex-direction:column;justify-content:center;text-align:var(--ifm-avatar-intro-alignment)}.badge,.breadcrumbs__item,.breadcrumbs__link,.button,.dropdown>.navbar__link:after,.searchBarContainer_NW3z.searchIndexLoading_EJ1f .searchBarLoadingRing_YnHq{display:inline-block}.avatar__name{font:700 var(--ifm-h4-font-size)/var(--ifm-heading-line-height) var(--ifm-font-family-base)}.avatar__subtitle{margin-top:.25rem}.avatar--vertical{--ifm-avatar-intro-alignment:center;--ifm-avatar-intro-margin:0.5rem;align-items:center;flex-direction:column}.badge{background-color:var(--ifm-badge-background-color);border:var(--ifm-badge-border-width) solid var(--ifm-badge-border-color);border-radius:var(--ifm-badge-border-radius);color:var(--ifm-badge-color);font-size:75%;font-weight:var(--ifm-font-weight-bold);line-height:1;padding:var(--ifm-badge-padding-vertical) var(--ifm-badge-padding-horizontal)}.badge--primary{--ifm-badge-background-color:var(--ifm-color-primary)}.badge--secondary{--ifm-badge-background-color:var(--ifm-color-secondary);color:var(--ifm-color-black)}.breadcrumbs__link,.button.button--secondary.button--outline:not(.button--active):not(:hover){color:var(--ifm-font-color-base)}.badge--success{--ifm-badge-background-color:var(--ifm-color-success)}.badge--info{--ifm-badge-background-color:var(--ifm-color-info)}.badge--warning{--ifm-badge-background-color:var(--ifm-color-warning)}.badge--danger{--ifm-badge-background-color:var(--ifm-color-danger)}.breadcrumbs{margin-bottom:0;padding-left:0}.breadcrumbs__item:not(:last-child):after{background:var(--ifm-breadcrumb-separator) center;content:" ";display:inline-block;filter:var(--ifm-breadcrumb-separator-filter);height:calc(var(--ifm-breadcrumb-separator-size)*var(--ifm-breadcrumb-size-multiplier)*var(--ifm-breadcrumb-separator-size-multiplier));margin:0 var(--ifm-breadcrumb-spacing);opacity:.5;width:calc(var(--ifm-breadcrumb-separator-size)*var(--ifm-breadcrumb-size-multiplier)*var(--ifm-breadcrumb-separator-size-multiplier))}.breadcrumbs__item--active .breadcrumbs__link{background:var(--ifm-breadcrumb-item-background-active);color:var(--ifm-breadcrumb-color-active)}.breadcrumbs__link{border-radius:var(--ifm-breadcrumb-border-radius);font-size:calc(1rem*var(--ifm-breadcrumb-size-multiplier));padding:calc(var(--ifm-breadcrumb-padding-vertical)*var(--ifm-breadcrumb-size-multiplier)) calc(var(--ifm-breadcrumb-padding-horizontal)*var(--ifm-breadcrumb-size-multiplier));transition-duration:var(--ifm-transition-fast);transition-property:background,color}.breadcrumbs__link:any-link:hover,.breadcrumbs__link:link:hover,.breadcrumbs__link:visited:hover,area[href].breadcrumbs__link:hover{background:var(--ifm-breadcrumb-item-background-active);text-decoration:none}.breadcrumbs--sm{--ifm-breadcrumb-size-multiplier:0.8}.breadcrumbs--lg{--ifm-breadcrumb-size-multiplier:1.2}.button{background-color:var(--ifm-button-background-color);border:var(--ifm-button-border-width) solid var(--ifm-button-border-color);border-radius:var(--ifm-button-border-radius);cursor:pointer;font-size:calc(.875rem*var(--ifm-button-size-multiplier));font-weight:var(--ifm-button-font-weight);line-height:1.5;padding:calc(var(--ifm-button-padding-vertical)*var(--ifm-button-size-multiplier)) calc(var(--ifm-button-padding-horizontal)*var(--ifm-button-size-multiplier));text-align:center;transition-duration:var(--ifm-button-transition-duration);transition-property:color,background,border-color;-webkit-user-select:none;user-select:none;white-space:nowrap}.button,.button:hover{color:var(--ifm-button-color)}.button--outline{--ifm-button-color:var(--ifm-button-border-color)}.button--outline:hover{--ifm-button-background-color:var(--ifm-button-border-color)}.button--link{--ifm-button-border-color:#0000;color:var(--ifm-link-color);text-decoration:var(--ifm-link-decoration)}.button--link.button--active,.button--link:active,.button--link:hover{color:var(--ifm-link-hover-color);text-decoration:var(--ifm-link-hover-decoration)}.button.disabled,.button:disabled,.button[disabled]{opacity:.65;pointer-events:none}.button--sm{--ifm-button-size-multiplier:0.8}.button--lg{--ifm-button-size-multiplier:1.35}.button--block{display:block;width:100%}.button.button--secondary{color:var(--ifm-color-gray-900)}:where(.button--primary){--ifm-button-background-color:var(--ifm-color-primary);--ifm-button-border-color:var(--ifm-color-primary)}:where(.button--primary):not(.button--outline):hover{--ifm-button-background-color:var(--ifm-color-primary-dark);--ifm-button-border-color:var(--ifm-color-primary-dark)}.button--primary.button--active,.button--primary:active{--ifm-button-background-color:var(--ifm-color-primary-darker);--ifm-button-border-color:var(--ifm-color-primary-darker)}:where(.button--secondary){--ifm-button-background-color:var(--ifm-color-secondary);--ifm-button-border-color:var(--ifm-color-secondary)}:where(.button--secondary):not(.button--outline):hover{--ifm-button-background-color:var(--ifm-color-secondary-dark);--ifm-button-border-color:var(--ifm-color-secondary-dark)}.button--secondary.button--active,.button--secondary:active{--ifm-button-background-color:var(--ifm-color-secondary-darker);--ifm-button-border-color:var(--ifm-color-secondary-darker)}:where(.button--success){--ifm-button-background-color:var(--ifm-color-success);--ifm-button-border-color:var(--ifm-color-success)}:where(.button--success):not(.button--outline):hover{--ifm-button-background-color:var(--ifm-color-success-dark);--ifm-button-border-color:var(--ifm-color-success-dark)}.button--success.button--active,.button--success:active{--ifm-button-background-color:var(--ifm-color-success-darker);--ifm-button-border-color:var(--ifm-color-success-darker)}:where(.button--info){--ifm-button-background-color:var(--ifm-color-info);--ifm-button-border-color:var(--ifm-color-info)}:where(.button--info):not(.button--outline):hover{--ifm-button-background-color:var(--ifm-color-info-dark);--ifm-button-border-color:var(--ifm-color-info-dark)}.button--info.button--active,.button--info:active{--ifm-button-background-color:var(--ifm-color-info-darker);--ifm-button-border-color:var(--ifm-color-info-darker)}:where(.button--warning){--ifm-button-background-color:var(--ifm-color-warning);--ifm-button-border-color:var(--ifm-color-warning)}:where(.button--warning):not(.button--outline):hover{--ifm-button-background-color:var(--ifm-color-warning-dark);--ifm-button-border-color:var(--ifm-color-warning-dark)}.button--warning.button--active,.button--warning:active{--ifm-button-background-color:var(--ifm-color-warning-darker);--ifm-button-border-color:var(--ifm-color-warning-darker)}:where(.button--danger){--ifm-button-background-color:var(--ifm-color-danger);--ifm-button-border-color:var(--ifm-color-danger)}:where(.button--danger):not(.button--outline):hover{--ifm-button-background-color:var(--ifm-color-danger-dark);--ifm-button-border-color:var(--ifm-color-danger-dark)}.button--danger.button--active,.button--danger:active{--ifm-button-background-color:var(--ifm-color-danger-darker);--ifm-button-border-color:var(--ifm-color-danger-darker)}.button-group{display:inline-flex;gap:var(--ifm-button-group-spacing)}.button-group>.button:not(:first-child){border-bottom-left-radius:0;border-top-left-radius:0}.button-group>.button:not(:last-child){border-bottom-right-radius:0;border-top-right-radius:0}.button-group--block{display:flex;justify-content:stretch}.button-group--block>.button{flex-grow:1}.card{background-color:var(--ifm-card-background-color);border-radius:var(--ifm-card-border-radius);box-shadow:var(--ifm-global-shadow-lw);display:flex;flex-direction:column;overflow:hidden}.card__image{padding-top:var(--ifm-card-vertical-spacing)}.card__image:first-child{padding-top:0}.card__body,.card__footer,.card__header{padding:var(--ifm-card-vertical-spacing) var(--ifm-card-horizontal-spacing)}.card__body:not(:last-child),.card__footer:not(:last-child),.card__header:not(:last-child){padding-bottom:0}.card__body>:last-child,.card__footer>:last-child,.card__header>:last-child{margin-bottom:0}.card__footer{margin-top:auto}.table-of-contents{margin-bottom:0;padding:var(--ifm-toc-padding-vertical) 0}.table-of-contents,.table-of-contents ul{list-style:none;padding-left:var(--ifm-toc-padding-horizontal)}.table-of-contents li{margin:var(--ifm-toc-padding-vertical) var(--ifm-toc-padding-horizontal)}.table-of-contents__left-border{border-left:1px solid var(--ifm-toc-border-color)}.table-of-contents__link{color:var(--ifm-toc-link-color);display:block}.table-of-contents__link--active,.table-of-contents__link--active code,.table-of-contents__link:hover,.table-of-contents__link:hover code{color:var(--ifm-color-primary);text-decoration:none}.content_knG7 a,.hitFooter_E9YW a,.suggestion_fB_2.cursor_eG29 mark{text-decoration:underline}.close{color:var(--ifm-color-black);float:right;font-size:1.5rem;font-weight:var(--ifm-font-weight-bold);line-height:1;opacity:.5;padding:1rem;transition:opacity var(--ifm-transition-fast) var(--ifm-transition-timing-default)}.close:hover{opacity:.7}.close:focus,.theme-code-block-highlighted-line .codeLineNumber_Tfdd:before{opacity:.8}.dropdown{display:inline-flex;font-weight:var(--ifm-dropdown-font-weight);position:relative;vertical-align:top}.dropdown--hoverable:hover .dropdown__menu,.dropdown--show .dropdown__menu{opacity:1;pointer-events:all;transform:translateY(-1px);visibility:visible}.dropdown--right .dropdown__menu{left:inherit;right:0}.dropdown--nocaret .navbar__link:after{content:none!important}.dropdown__menu{background-color:var(--ifm-dropdown-background-color);border-radius:var(--ifm-global-radius);box-shadow:var(--ifm-global-shadow-md);left:0;max-height:80vh;min-width:10rem;opacity:0;overflow-y:auto;padding:.5rem;pointer-events:none;position:absolute;top:calc(100% - var(--ifm-navbar-item-padding-vertical) + .3rem);transform:translateY(-.625rem);transition-duration:var(--ifm-transition-fast);transition-property:opacity,transform,visibility;transition-timing-function:var(--ifm-transition-timing-default);visibility:hidden;z-index:var(--ifm-z-index-dropdown)}.menu__caret,.menu__link,.menu__list-item-collapsible{border-radius:.25rem;transition:background var(--ifm-transition-fast) var(--ifm-transition-timing-default)}.dropdown__link{border-radius:.25rem;color:var(--ifm-dropdown-link-color);display:block;font-size:.875rem;margin-top:.2rem;padding:.25rem .5rem;white-space:nowrap}.dropdown__link--active,.dropdown__link:hover{background-color:var(--ifm-dropdown-hover-background-color);color:var(--ifm-dropdown-link-color);text-decoration:none}.dropdown__link--active,.dropdown__link--active:hover{--ifm-dropdown-link-color:var(--ifm-link-color)}.dropdown>.navbar__link:after{border-color:currentcolor #0000;border-style:solid;border-width:.4em .4em 0;content:"";margin-left:.3em;position:relative;top:2px;transform:translateY(-50%)}.footer{background-color:var(--ifm-footer-background-color);color:var(--ifm-footer-color);padding:var(--ifm-footer-padding-vertical) var(--ifm-footer-padding-horizontal)}.footer--dark{--ifm-footer-background-color:#303846;--ifm-footer-color:var(--ifm-footer-link-color);--ifm-footer-link-color:var(--ifm-color-secondary);--ifm-footer-title-color:var(--ifm-color-white)}.footer__links{margin-bottom:1rem}.footer__link-item{color:var(--ifm-footer-link-color);line-height:2}.footer__link-item:hover{color:var(--ifm-footer-link-hover-color)}.footer__link-separator{margin:0 var(--ifm-footer-link-horizontal-spacing)}.footer__logo{margin-top:1rem;max-width:var(--ifm-footer-logo-max-width)}.footer__title{color:var(--ifm-footer-title-color);font:700 var(--ifm-h4-font-size)/var(--ifm-heading-line-height) var(--ifm-font-family-base);margin-bottom:var(--ifm-heading-margin-bottom)}.menu,.navbar__link{font-weight:var(--ifm-font-weight-semibold)}.docItemContainer_Djhp article>:first-child,.docItemContainer_Djhp header+*,.footer__item{margin-top:0}.admonitionContent_S0QG>:last-child,.collapsibleContent_i85q>:last-child,.footer__items,.searchResultItem_U687>h2{margin-bottom:0}.codeBlockStandalone_MEMb,[type=checkbox]{padding:0}.hero{align-items:center;background-color:var(--ifm-hero-background-color);color:var(--ifm-hero-text-color);display:flex;padding:4rem 2rem}.hero--primary{--ifm-hero-background-color:var(--ifm-color-primary);--ifm-hero-text-color:var(--ifm-font-color-base-inverse)}.hero--dark{--ifm-hero-background-color:#303846;--ifm-hero-text-color:var(--ifm-color-white)}.hero__title{font-size:3rem}.hero__subtitle{font-size:1.5rem}.menu__list{margin:0;padding-left:0}.menu__caret,.menu__link{padding:var(--ifm-menu-link-padding-vertical) var(--ifm-menu-link-padding-horizontal)}.menu__list .menu__list{flex:0 0 100%;margin-top:.25rem;padding-left:var(--ifm-menu-link-padding-horizontal)}.menu__list-item:not(:first-child){margin-top:.25rem}.menu__list-item--collapsed .menu__list{height:0;overflow:hidden}.details_lb9f[data-collapsed=false].isBrowser_bmU9>summary:before,.details_lb9f[open]:not(.isBrowser_bmU9)>summary:before,.menu__list-item--collapsed .menu__caret:before,.menu__list-item--collapsed .menu__link--sublist:after{transform:rotate(90deg)}.menu__list-item-collapsible{display:flex;flex-wrap:wrap;position:relative}.menu__caret:hover,.menu__link:hover,.menu__list-item-collapsible--active,.menu__list-item-collapsible:hover{background:var(--ifm-menu-color-background-hover)}.menu__list-item-collapsible .menu__link--active,.menu__list-item-collapsible .menu__link:hover{background:none!important}.menu__caret,.menu__link{align-items:center;display:flex}.menu__link{color:var(--ifm-menu-color);flex:1;line-height:1.25}.menu__link:hover{color:var(--ifm-menu-color);text-decoration:none}.menu__caret:before,.menu__link--sublist-caret:after{height:1.25rem;transform:rotate(180deg);transition:transform var(--ifm-transition-fast) linear;width:1.25rem;filter:var(--ifm-menu-link-sublist-icon-filter);content:""}.menu__link--sublist-caret:after{background:var(--ifm-menu-link-sublist-icon) 50%/2rem 2rem;margin-left:auto;min-width:1.25rem}.navbar__items--center .navbar__brand,body{margin:0}.menu__link--active,.menu__link--active:hover{color:var(--ifm-menu-color-active)}.navbar__brand,.navbar__link{color:var(--ifm-navbar-link-color)}.menu__link--active:not(.menu__link--sublist){background-color:var(--ifm-menu-color-background-active)}.menu__caret:before{background:var(--ifm-menu-link-sublist-icon) 50%/2rem 2rem}.navbar--dark,html[data-theme=dark]{--ifm-menu-link-sublist-icon-filter:invert(100%) sepia(94%) saturate(17%) hue-rotate(223deg) brightness(104%) contrast(98%)}.navbar{background-color:var(--ifm-navbar-background-color);box-shadow:var(--ifm-navbar-shadow);height:var(--ifm-navbar-height);padding:var(--ifm-navbar-padding-vertical) var(--ifm-navbar-padding-horizontal)}.navbar,.navbar>.container,.navbar>.container-fluid{display:flex}.navbar--fixed-top{position:sticky;top:0;z-index:var(--ifm-z-index-fixed)}.navbar-sidebar,.navbar-sidebar__backdrop{bottom:0;opacity:0;position:fixed;transition-duration:var(--ifm-transition-fast);transition-timing-function:ease-in-out;left:0;top:0;visibility:hidden}.navbar__inner{display:flex;flex-wrap:wrap;justify-content:space-between;width:100%}.navbar__brand{align-items:center;display:flex;margin-right:1rem;min-width:0}.navbar__brand:hover{color:var(--ifm-navbar-link-hover-color);text-decoration:none}.announcementBarContent_xLdY,.navbar__title{flex:1 1 auto}.navbar__toggle{display:none;margin-right:.5rem}.navbar__logo{flex:0 0 auto;height:2rem;margin-right:.5rem}.navbar__items{align-items:center;display:flex;flex:1;min-width:0}.navbar__items--center{flex:0 0 auto}.navbar__items--center+.navbar__items--right{flex:1}.navbar__items--right{flex:0 0 auto;justify-content:flex-end}.navbar__items--right>:last-child{padding-right:0}.navbar__item{display:inline-block;padding:var(--ifm-navbar-item-padding-vertical) var(--ifm-navbar-item-padding-horizontal)}#nprogress,.navbar__item.dropdown .navbar__link:not([href]){pointer-events:none}.navbar__link--active,.navbar__link:hover{color:var(--ifm-navbar-link-hover-color);text-decoration:none}.navbar--dark,.navbar--primary{--ifm-menu-color:var(--ifm-color-gray-300);--ifm-navbar-link-color:var(--ifm-color-gray-100);--ifm-navbar-search-input-background-color:#ffffff1a;--ifm-navbar-search-input-placeholder-color:#ffffff80;color:var(--ifm-color-white)}.navbar--dark{--ifm-navbar-background-color:#242526;--ifm-menu-color-background-active:#ffffff0d;--ifm-navbar-search-input-color:var(--ifm-color-white)}.navbar--primary{--ifm-navbar-background-color:var(--ifm-color-primary);--ifm-navbar-link-hover-color:var(--ifm-color-white);--ifm-menu-color-active:var(--ifm-color-white);--ifm-navbar-search-input-color:var(--ifm-color-emphasis-500)}.navbar__search-input{-webkit-appearance:none;appearance:none;background:var(--ifm-navbar-search-input-background-color) var(--ifm-navbar-search-input-icon) no-repeat .75rem center/1rem 1rem;border:none;border-radius:2rem;color:var(--ifm-navbar-search-input-color);cursor:text;display:inline-block;font-size:.9rem;height:2rem;padding:0 .5rem 0 2.25rem;width:12.5rem}.navbar__search-input::placeholder{color:var(--ifm-navbar-search-input-placeholder-color)}.navbar-sidebar{background-color:var(--ifm-navbar-background-color);box-shadow:var(--ifm-global-shadow-md);transform:translate3d(-100%,0,0);transition-property:opacity,visibility,transform;width:var(--ifm-navbar-sidebar-width)}.navbar-sidebar--show .navbar-sidebar,.navbar-sidebar__items{transform:translateZ(0)}.navbar-sidebar--show .navbar-sidebar,.navbar-sidebar--show .navbar-sidebar__backdrop{opacity:1;visibility:visible}.navbar-sidebar__backdrop{background-color:#0009;right:0;transition-property:opacity,visibility}.navbar-sidebar__brand{align-items:center;box-shadow:var(--ifm-navbar-shadow);display:flex;flex:1;height:var(--ifm-navbar-height);padding:var(--ifm-navbar-padding-vertical) var(--ifm-navbar-padding-horizontal)}.navbar-sidebar__items{display:flex;height:calc(100% - var(--ifm-navbar-height));transition:transform var(--ifm-transition-fast) ease-in-out}.navbar-sidebar__items--show-secondary{transform:translate3d(calc((var(--ifm-navbar-sidebar-width))*-1),0,0)}.navbar-sidebar__item{flex-shrink:0;padding:.5rem;width:calc(var(--ifm-navbar-sidebar-width))}.navbar-sidebar__back{background:var(--ifm-menu-color-background-active);font-size:15px;font-weight:var(--ifm-button-font-weight);margin:0 0 .2rem -.5rem;padding:.6rem 1.5rem;position:relative;text-align:left;top:-.5rem;width:calc(100% + 1rem)}.navbar-sidebar__close{display:flex;margin-left:auto}.pagination{column-gap:var(--ifm-pagination-page-spacing);display:flex;font-size:var(--ifm-pagination-font-size);padding-left:0}.pagination--sm{--ifm-pagination-font-size:0.8rem;--ifm-pagination-padding-horizontal:0.8rem;--ifm-pagination-padding-vertical:0.2rem}.pagination--lg{--ifm-pagination-font-size:1.2rem;--ifm-pagination-padding-horizontal:1.2rem;--ifm-pagination-padding-vertical:0.3rem}.pagination__item{display:inline-flex}.pagination__item>span{padding:var(--ifm-pagination-padding-vertical)}.pagination__item--active .pagination__link{color:var(--ifm-pagination-color-active)}.pagination__item--active .pagination__link,.pagination__item:not(.pagination__item--active):hover .pagination__link{background:var(--ifm-pagination-item-active-background)}.pagination__item--disabled,.pagination__item[disabled]{opacity:.25;pointer-events:none}.pagination__link{border-radius:var(--ifm-pagination-border-radius);color:var(--ifm-font-color-base);display:inline-block;padding:var(--ifm-pagination-padding-vertical) var(--ifm-pagination-padding-horizontal);transition:background var(--ifm-transition-fast) var(--ifm-transition-timing-default)}.pagination__link:hover{text-decoration:none}.pagination-nav{grid-gap:var(--ifm-spacing-horizontal);display:grid;gap:var(--ifm-spacing-horizontal);grid-template-columns:repeat(2,1fr)}.pagination-nav__link{border:1px solid var(--ifm-color-emphasis-300);border-radius:var(--ifm-pagination-nav-border-radius);display:block;height:100%;line-height:var(--ifm-heading-line-height);padding:var(--ifm-global-spacing);transition:border-color var(--ifm-transition-fast) var(--ifm-transition-timing-default)}.pagination-nav__link:hover{border-color:var(--ifm-pagination-nav-color-hover);text-decoration:none}.pagination-nav__link--next{grid-column:2/3;text-align:right}.pagination-nav__label{font-size:var(--ifm-h4-font-size);font-weight:var(--ifm-heading-font-weight);word-break:break-word}.pagination-nav__link--prev .pagination-nav__label:before{content:"« "}.pagination-nav__link--next .pagination-nav__label:after{content:" »"}.pagination-nav__sublabel{color:var(--ifm-color-content-secondary);font-size:var(--ifm-h5-font-size);font-weight:var(--ifm-font-weight-semibold);margin-bottom:.25rem}.pills__item,.tabs{font-weight:var(--ifm-font-weight-bold)}.pills{display:flex;gap:var(--ifm-pills-spacing);padding-left:0}.pills__item{border-radius:.5rem;cursor:pointer;display:inline-block;padding:.25rem 1rem;transition:background var(--ifm-transition-fast) var(--ifm-transition-timing-default)}.tabs,:not(.containsTaskList_mC6p>li)>.containsTaskList_mC6p{padding-left:0}.pills__item--active{color:var(--ifm-pills-color-active)}.pills__item--active,.pills__item:not(.pills__item--active):hover{background:var(--ifm-pills-color-background-active)}.pills--block{justify-content:stretch}.pills--block .pills__item{flex-grow:1;text-align:center}.tabs{color:var(--ifm-tabs-color);display:flex;margin-bottom:0;overflow-x:auto}.tabs__item{border-bottom:3px solid #0000;border-radius:var(--ifm-global-radius);cursor:pointer;display:inline-flex;padding:var(--ifm-tabs-padding-vertical) var(--ifm-tabs-padding-horizontal);transition:background-color var(--ifm-transition-fast) var(--ifm-transition-timing-default)}.tabs__item--active{border-bottom-color:var(--ifm-tabs-color-active-border);border-bottom-left-radius:0;border-bottom-right-radius:0;color:var(--ifm-tabs-color-active)}.tabs__item:hover{background-color:var(--ifm-hover-overlay)}.tabs--block{justify-content:stretch}.tabs--block .tabs__item{flex-grow:1;justify-content:center}html[data-theme=dark]{--ifm-color-scheme:dark;--ifm-color-emphasis-0:var(--ifm-color-gray-1000);--ifm-color-emphasis-100:var(--ifm-color-gray-900);--ifm-color-emphasis-200:var(--ifm-color-gray-800);--ifm-color-emphasis-300:var(--ifm-color-gray-700);--ifm-color-emphasis-400:var(--ifm-color-gray-600);--ifm-color-emphasis-600:var(--ifm-color-gray-400);--ifm-color-emphasis-700:var(--ifm-color-gray-300);--ifm-color-emphasis-800:var(--ifm-color-gray-200);--ifm-color-emphasis-900:var(--ifm-color-gray-100);--ifm-color-emphasis-1000:var(--ifm-color-gray-0);--ifm-background-color:#1b1b1d;--ifm-background-surface-color:#242526;--ifm-hover-overlay:#ffffff0d;--ifm-color-content:#e3e3e3;--ifm-color-content-secondary:#fff;--ifm-breadcrumb-separator-filter:invert(64%) sepia(11%) saturate(0%) hue-rotate(149deg) brightness(99%) contrast(95%);--ifm-code-background:#ffffff1a;--ifm-scrollbar-track-background-color:#444;--ifm-scrollbar-thumb-background-color:#686868;--ifm-scrollbar-thumb-hover-background-color:#7a7a7a;--ifm-table-stripe-background:#ffffff12;--ifm-toc-border-color:var(--ifm-color-emphasis-200);--ifm-color-primary-contrast-background:#102445;--ifm-color-primary-contrast-foreground:#ebf2fc;--ifm-color-secondary-contrast-background:#474748;--ifm-color-secondary-contrast-foreground:#fdfdfe;--ifm-color-success-contrast-background:#003100;--ifm-color-success-contrast-foreground:#e6f6e6;--ifm-color-info-contrast-background:#193c47;--ifm-color-info-contrast-foreground:#eef9fd;--ifm-color-warning-contrast-background:#4d3800;--ifm-color-warning-contrast-foreground:#fff8e6;--ifm-color-danger-contrast-background:#4b1113;--ifm-color-danger-contrast-foreground:#ffebec}#nprogress .bar{background:var(--docusaurus-progress-bar-color);height:2px;left:0;position:fixed;top:0;width:100%;z-index:1031}#nprogress .peg{box-shadow:0 0 10px var(--docusaurus-progress-bar-color),0 0 5px var(--docusaurus-progress-bar-color);height:100%;opacity:1;position:absolute;right:0;transform:rotate(3deg) translateY(-4px);width:100px}:root,[data-theme=dark]{--ifm-color-primary:#2196f3;--ifm-color-primary-dark:#1565c0;--ifm-color-primary-darker:#0d47a1;--ifm-color-primary-darkest:#002171;--ifm-color-primary-light:#64b5f6;--ifm-color-primary-lighter:#bbdefb;--ifm-color-primary-lightest:#e3f2fd;--ifm-code-font-size:95%;--docusaurus-highlighted-code-line-bg:#0000001a}div[class^=announcementBar_]{background:repeating-linear-gradient(-35deg,var(--ifm-color-primary-lighter),var(--ifm-color-primary-lighter) 20px,var(--ifm-color-primary-lightest) 10px,var(--ifm-color-primary-lightest) 40px);font-weight:700}h2,h3,h4,h5,h6{color:#40b8fa}body{font-size:1.125em}h1{font-size:3em}h2{font-size:2em}h3{font-size:1.5em}h4{font-size:1.25em}h5{font-size:1.2em}h6{font-size:1.15em}.navbar{font-size:1rem}.table-of-contents{font-size:.85rem}body:not(.navigation-with-keyboard) :not(input):focus{outline:0}#__docusaurus-base-url-issue-banner-container,.docSidebarContainer_b6E3,.hideAction_vcyE>svg,.sidebarLogo_isFc,.themedImage_ToTc,[data-theme=dark] .lightToggleIcon_pyhR,[data-theme=light] .darkToggleIcon_wfgR,html[data-announcement-bar-initially-dismissed=true] .announcementBar_mb4j{display:none}.skipToContent_fXgn{background-color:var(--ifm-background-surface-color);color:var(--ifm-color-emphasis-900);left:100%;padding:calc(var(--ifm-global-spacing)/2) var(--ifm-global-spacing);position:fixed;top:1rem;z-index:calc(var(--ifm-z-index-fixed) + 1)}.skipToContent_fXgn:focus{box-shadow:var(--ifm-global-shadow-md);left:1rem}.closeButton_CVFx{line-height:0;padding:0}.content_knG7{font-size:85%;padding:5px 0;text-align:center}.content_knG7 a{color:inherit}.announcementBar_mb4j{align-items:center;background-color:var(--ifm-color-white);border-bottom:1px solid var(--ifm-color-emphasis-100);color:var(--ifm-color-black);display:flex;height:var(--docusaurus-announcement-bar-height)}.announcementBarPlaceholder_vyr4{flex:0 0 10px}.announcementBarClose_gvF7{align-self:stretch;flex:0 0 30px}.toggle_vylO{height:2rem;width:2rem}.toggleButton_gllP{align-items:center;border-radius:50%;display:flex;height:100%;justify-content:center;transition:background var(--ifm-transition-fast);width:100%}.toggleButton_gllP:hover{background:var(--ifm-color-emphasis-200)}.toggleButtonDisabled_aARS{cursor:not-allowed}.darkNavbarColorModeToggle_X3D1:hover{background:var(--ifm-color-gray-800)}[data-theme=dark] .themedImage--dark_i4oU,[data-theme=light] .themedImage--light_HNdA,html:not([data-theme]) .themedComponent--light_NU7w{display:initial}.iconExternalLink_nPIU{margin-left:.3rem}.iconLanguage_nlXk{margin-right:5px;vertical-align:text-bottom}.searchBar_RVTs .dropdownMenu_qbY6{background:var(--search-local-modal-background,#f5f6f7);border-radius:6px;box-shadow:var(--search-local-modal-shadow,inset 1px 1px 0 0 #ffffff80,0 3px 8px 0 #555a64);left:auto!important;margin-top:8px;padding:var(--search-local-spacing,12px);position:relative;right:0!important;width:var(--search-local-modal-width,560px)}html[data-theme=dark] .searchBar_RVTs .dropdownMenu_qbY6{background:var(--search-local-modal-background,var(--ifm-background-color));box-shadow:var(--search-local-modal-shadow,inset 1px 1px 0 0 #2c2e40,0 3px 8px 0 #000309)}.searchBar_RVTs .dropdownMenu_qbY6 .suggestion_fB_2{align-items:center;background:var(--search-local-hit-background,#fff);border-radius:4px;box-shadow:var(--search-local-hit-shadow,0 1px 3px 0 #d4d9e1);color:var(--search-local-hit-color,#444950);cursor:pointer;display:flex;flex-direction:row;height:var(--search-local-hit-height,56px);padding:0 var(--search-local-spacing,12px);width:100%}.hitTree_kk6K,.noResults_l6Q3{align-items:center;display:flex}html[data-theme=dark] .dropdownMenu_qbY6 .suggestion_fB_2{background:var(--search-local-hit-background,var(--ifm-color-emphasis-100));box-shadow:var(--search-local-hit-shadow,none);color:var(--search-local-hit-color,var(--ifm-font-color-base))}.searchBar_RVTs .dropdownMenu_qbY6 .suggestion_fB_2:not(:last-child){margin-bottom:4px}.searchBar_RVTs .dropdownMenu_qbY6 .suggestion_fB_2.cursor_eG29{background-color:var(--search-local-highlight-color,var(--ifm-color-primary))}.hitFooter_E9YW a,.hitIcon_a7Zy,.hitPath_ieM4,.hitTree_kk6K,.noResultsIcon_EBY5{color:var(--search-local-muted-color,#969faf)}html[data-theme=dark] .hitIcon_a7Zy,html[data-theme=dark] .hitPath_ieM4,html[data-theme=dark] .hitTree_kk6K,html[data-theme=dark] .noResultsIcon_EBY5{color:var(--search-local-muted-color,var(--ifm-color-secondary-darkest))}.hitTree_kk6K>svg{height:var(--search-local-hit-height,56px);opacity:.5;width:24px}.hitIcon_a7Zy,.hitTree_kk6K>svg{stroke-width:var(--search-local-icon-stroke-width,1.4)}.hitAction_NqkB,.hitIcon_a7Zy{height:20px;width:20px}.hitWrapper_sAK8{display:flex;flex:1 1 auto;flex-direction:column;font-weight:500;justify-content:center;margin:0 8px;overflow-x:hidden;width:80%}.hitWrapper_sAK8 mark{background:none;color:var(--search-local-highlight-color,var(--ifm-color-primary))}.hitTitle_vyVt{font-size:.9em}.hitPath_ieM4{font-size:.75em}.hitPath_ieM4,.hitTitle_vyVt{overflow-x:hidden;text-overflow:ellipsis;white-space:nowrap}.noResults_l6Q3{flex-direction:column;justify-content:center;padding:var(--search-local-spacing,12px) 0}.noResultsIcon_EBY5{margin-bottom:var(--search-local-spacing,12px)}.hitFooter_E9YW{font-size:.85em;margin-top:var(--search-local-spacing,12px);text-align:center}.cursor_eG29 .hideAction_vcyE>svg,.tocCollapsibleContent_vkbj a{display:block}.suggestion_fB_2.cursor_eG29,.suggestion_fB_2.cursor_eG29 .hitIcon_a7Zy,.suggestion_fB_2.cursor_eG29 .hitPath_ieM4,.suggestion_fB_2.cursor_eG29 .hitTree_kk6K,.suggestion_fB_2.cursor_eG29 mark{color:var(--search-local-hit-active-color,var(--ifm-color-white))!important}.searchBarContainer_NW3z{margin-left:16px}.searchBarContainer_NW3z .searchBarLoadingRing_YnHq{display:none;left:10px;position:absolute;top:6px}.searchBarContainer_NW3z .searchClearButton_qk4g{background:none;border:none;line-height:1rem;padding:0;position:absolute;right:.8rem;top:50%;transform:translateY(-50%)}.navbar__search{position:relative}.searchIndexLoading_EJ1f .navbar__search-input{background-image:none}.searchHintContainer_Pkmr{align-items:center;display:flex;gap:4px;height:100%;justify-content:center;pointer-events:none;position:absolute;right:10px;top:0}.searchHint_iIMx{background-color:var(--ifm-navbar-search-input-background-color);border:1px solid var(--ifm-color-emphasis-500);box-shadow:inset 0 -1px 0 var(--ifm-color-emphasis-500);color:var(--ifm-navbar-search-input-placeholder-color)}.loadingRing_RJI3{display:inline-block;height:20px;opacity:var(--search-local-loading-icon-opacity,.5);position:relative;width:20px}.loadingRing_RJI3 div{animation:1.2s cubic-bezier(.5,0,.5,1) infinite a;border:2px solid var(--search-load-loading-icon-color,var(--ifm-navbar-search-input-color));border-color:var(--search-load-loading-icon-color,var(--ifm-navbar-search-input-color)) #0000 #0000 #0000;border-radius:50%;display:block;height:16px;margin:2px;position:absolute;width:16px}.loadingRing_RJI3 div:first-child{animation-delay:-.45s}.loadingRing_RJI3 div:nth-child(2){animation-delay:-.3s}.loadingRing_RJI3 div:nth-child(3){animation-delay:-.15s}@keyframes a{0%{transform:rotate(0)}to{transform:rotate(1turn)}}.navbarHideable_m1mJ{transition:transform var(--ifm-transition-fast) ease}.navbarHidden_jGov{transform:translate3d(0,calc(-100% - 2px),0)}.errorBoundaryError_a6uf{color:red;white-space:pre-wrap}.footerLogoLink_BH7S{opacity:.5;transition:opacity var(--ifm-transition-fast) var(--ifm-transition-timing-default)}.footerLogoLink_BH7S:hover,.hash-link:focus,:hover>.hash-link{opacity:1}.mainWrapper_z2l0{display:flex;flex:1 0 auto;flex-direction:column}.docusaurus-mt-lg{margin-top:3rem}#__docusaurus{display:flex;flex-direction:column;min-height:100%}.iconEdit_Z9Sw{margin-right:.3em;vertical-align:sub}.tag_zVej{border:1px solid var(--docusaurus-tag-list-border);transition:border var(--ifm-transition-fast)}.tag_zVej:hover{--docusaurus-tag-list-border:var(--ifm-link-color);text-decoration:none}.tagRegular_sFm0{border-radius:var(--ifm-global-radius);font-size:90%;padding:.2rem .5rem .3rem}.tagWithCount_h2kH{align-items:center;border-left:0;display:flex;padding:0 .5rem 0 1rem;position:relative}.tagWithCount_h2kH:after,.tagWithCount_h2kH:before{border:1px solid var(--docusaurus-tag-list-border);content:"";position:absolute;top:50%;transition:inherit}.tagWithCount_h2kH:before{border-bottom:0;border-right:0;height:1.18rem;right:100%;transform:translate(50%,-50%) rotate(-45deg);width:1.18rem}.tagWithCount_h2kH:after{border-radius:50%;height:.5rem;left:0;transform:translateY(-50%);width:.5rem}.tagWithCount_h2kH span{background:var(--ifm-color-secondary);border-radius:var(--ifm-global-radius);color:var(--ifm-color-black);font-size:.7rem;line-height:1.2;margin-left:.3rem;padding:.1rem .4rem}.tags_jXut{display:inline}.tag_QGVx{display:inline-block;margin:0 .4rem .5rem 0}.lastUpdated_vwxv{font-size:smaller;font-style:italic;margin-top:.2rem}.tocCollapsibleButton_TO0P{align-items:center;display:flex;font-size:inherit;justify-content:space-between;padding:.4rem .8rem;width:100%}.tocCollapsibleButton_TO0P:after{background:var(--ifm-menu-link-sublist-icon) 50% 50%/2rem 2rem no-repeat;content:"";filter:var(--ifm-menu-link-sublist-icon-filter);height:1.25rem;transform:rotate(180deg);transition:transform var(--ifm-transition-fast);width:1.25rem}.tocCollapsibleButtonExpanded_MG3E:after,.tocCollapsibleExpanded_sAul{transform:none}.tocCollapsible_ETCw{background-color:var(--ifm-menu-color-background-active);border-radius:var(--ifm-global-radius);margin:1rem 0}.tocCollapsibleContent_vkbj>ul{border-left:none;border-top:1px solid var(--ifm-color-emphasis-300);font-size:15px;padding:.2rem 0}.tocCollapsibleContent_vkbj ul li{margin:.4rem .8rem}.searchContextInput_mXoe,.searchQueryInput_CFBF{background:var(--ifm-background-color);border:var(--ifm-global-border-width) solid var(--ifm-color-content-secondary);border-radius:var(--ifm-global-radius);color:var(--ifm-font-color-base);font-size:var(--ifm-font-size-base);margin-bottom:1rem;padding:.5rem;width:100%}.searchResultItem_U687{border-bottom:1px solid #dfe3e8;padding:1rem 0}.searchResultItemPath_uIbk{color:var(--ifm-color-content-secondary);font-size:.8rem;margin:.5rem 0 0}.searchResultItemSummary_oZHr{font-style:italic;margin:.5rem 0 0}.backToTopButton_sjWU{background-color:var(--ifm-color-emphasis-200);border-radius:50%;bottom:1.3rem;box-shadow:var(--ifm-global-shadow-lw);height:3rem;opacity:0;position:fixed;right:1.3rem;transform:scale(0);transition:all var(--ifm-transition-fast) var(--ifm-transition-timing-default);visibility:hidden;width:3rem;z-index:calc(var(--ifm-z-index-fixed) - 1)}.backToTopButton_sjWU:after{background-color:var(--ifm-color-emphasis-1000);content:" ";display:inline-block;height:100%;-webkit-mask:var(--ifm-menu-link-sublist-icon) 50%/2rem 2rem no-repeat;mask:var(--ifm-menu-link-sublist-icon) 50%/2rem 2rem no-repeat;width:100%}.backToTopButtonShow_xfvO{opacity:1;transform:scale(1);visibility:visible}[data-theme=dark]:root{--docusaurus-collapse-button-bg:#ffffff0d;--docusaurus-collapse-button-bg-hover:#ffffff1a}.collapseSidebarButton_PEFL{display:none;margin:0}.docMainContainer_gTbr,.docPage__5DB{display:flex;width:100%}.docPage__5DB{flex:1 0}.docsWrapper_BCFX{display:flex;flex:1 0 auto}.features_t9lD{margin-top:2rem}.heroBanner_qdFl{-webkit-text-fill-color:#fff;background-color:#fff;background-image:url(/en/assets/images/spaceX_1-b08beebc0d33a6ceb38a2e9449af6326.jpg);background-position:50%;background-size:contain;overflow:auto;padding:11rem;position:relative;text-align:center}[data-theme=dark]{background-color:#1b1b1d;overflow:hidden;padding:15rem 0;position:relative;text-align:center}.buttonGroup__atx button,.codeBlockContainer_Ckt0{background:var(--prism-background-color);color:var(--prism-color)}}.buttons_AeoN{align-items:center;display:flex;justify-content:center}.buttonFonts_pwBM{-webkit-text-fill-color:#000}.codeBlockContainer_Ckt0{border-radius:var(--ifm-code-border-radius);box-shadow:var(--ifm-global-shadow-lw);margin-bottom:var(--ifm-leading)}.codeBlockContent_biex{border-radius:inherit;direction:ltr;position:relative}.codeBlockTitle_Ktv7{border-bottom:1px solid var(--ifm-color-emphasis-300);border-top-left-radius:inherit;border-top-right-radius:inherit;font-size:var(--ifm-code-font-size);font-weight:500;padding:.75rem var(--ifm-pre-padding)}.codeBlock_bY9V{--ifm-pre-background:var(--prism-background-color);margin:0;padding:0}.codeBlockTitle_Ktv7+.codeBlockContent_biex .codeBlock_bY9V{border-top-left-radius:0;border-top-right-radius:0}.codeBlockLines_e6Vv{float:left;font:inherit;min-width:100%;padding:var(--ifm-pre-padding)}.codeBlockLinesWithNumbering_o6Pm{display:table;padding:var(--ifm-pre-padding) 0}.buttonGroup__atx{column-gap:.2rem;display:flex;position:absolute;right:calc(var(--ifm-pre-padding)/2);top:calc(var(--ifm-pre-padding)/2)}.buttonGroup__atx button{align-items:center;border:1px solid var(--ifm-color-emphasis-300);border-radius:var(--ifm-global-radius);display:flex;line-height:0;opacity:0;padding:.4rem;transition:opacity var(--ifm-transition-fast) ease-in-out}.buttonGroup__atx button:focus-visible,.buttonGroup__atx button:hover{opacity:1!important}.theme-code-block:hover .buttonGroup__atx button{opacity:.4}:where(:root){--docusaurus-highlighted-code-line-bg:#484d5b}:where([data-theme=dark]){--docusaurus-highlighted-code-line-bg:#646464}.theme-code-block-highlighted-line{background-color:var(--docusaurus-highlighted-code-line-bg);display:block;margin:0 calc(var(--ifm-pre-padding)*-1);padding:0 var(--ifm-pre-padding)}.codeLine_lJS_{counter-increment:a;display:table-row}.codeLineNumber_Tfdd{background:var(--ifm-pre-background);display:table-cell;left:0;overflow-wrap:normal;padding:0 var(--ifm-pre-padding);position:sticky;text-align:right;width:1%}.codeLineNumber_Tfdd:before{content:counter(a);opacity:.4}.codeLineContent_feaV{padding-right:var(--ifm-pre-padding)}.theme-code-block:hover .copyButtonCopied_obH4{opacity:1!important}.copyButtonIcons_eSgA{height:1.125rem;position:relative;width:1.125rem}.copyButtonIcon_y97N,.copyButtonSuccessIcon_LjdS{fill:currentColor;height:inherit;left:0;opacity:inherit;position:absolute;top:0;transition:all var(--ifm-transition-fast) ease;width:inherit}.copyButtonSuccessIcon_LjdS{color:#00d600;left:50%;opacity:0;top:50%;transform:translate(-50%,-50%) scale(.33)}.copyButtonCopied_obH4 .copyButtonIcon_y97N{opacity:0;transform:scale(.33)}.copyButtonCopied_obH4 .copyButtonSuccessIcon_LjdS{opacity:1;transform:translate(-50%,-50%) scale(1);transition-delay:75ms}.wordWrapButtonIcon_Bwma{height:1.2rem;width:1.2rem}.details_lb9f{--docusaurus-details-summary-arrow-size:0.38rem;--docusaurus-details-transition:transform 200ms ease;--docusaurus-details-decoration-color:grey}.details_lb9f>summary{cursor:pointer;padding-left:1rem;position:relative}.details_lb9f>summary::-webkit-details-marker{display:none}.details_lb9f>summary:before{border-color:#0000 #0000 #0000 var(--docusaurus-details-decoration-color);border-style:solid;border-width:var(--docusaurus-details-summary-arrow-size);content:"";left:0;position:absolute;top:.45rem;transform:rotate(0);transform-origin:calc(var(--docusaurus-details-summary-arrow-size)/2) 50%;transition:var(--docusaurus-details-transition)}.collapsibleContent_i85q{border-top:1px solid var(--docusaurus-details-decoration-color);margin-top:1rem;padding-top:1rem}.details_b_Ee{--docusaurus-details-decoration-color:var(--ifm-alert-border-color);--docusaurus-details-transition:transform var(--ifm-transition-fast) ease;border:1px solid var(--ifm-alert-border-color);margin:0 0 var(--ifm-spacing-vertical)}.anchorWithStickyNavbar_LWe7{scroll-margin-top:calc(var(--ifm-navbar-height) + .5rem)}.anchorWithHideOnScrollNavbar_WYt5{scroll-margin-top:.5rem}.hash-link{opacity:0;padding-left:.5rem;transition:opacity var(--ifm-transition-fast);-webkit-user-select:none;user-select:none}.hash-link:before{content:"#"}.img_ev3q{height:auto}.tableOfContents_bqdL{max-height:calc(100vh - var(--ifm-navbar-height) - 2rem);overflow-y:auto;position:sticky;top:calc(var(--ifm-navbar-height) + 1rem)}.admonition_LlT9{margin-bottom:1em}.admonitionHeading_tbUL{font:var(--ifm-heading-font-weight) var(--ifm-h5-font-size)/var(--ifm-heading-line-height) var(--ifm-heading-font-family);margin-bottom:.3rem}.admonitionHeading_tbUL code{text-transform:none}.admonitionIcon_kALy{display:inline-block;margin-right:.4em;vertical-align:middle}.admonitionIcon_kALy svg{fill:var(--ifm-alert-foreground-color);display:inline-block;height:1.6em;width:1.6em}.breadcrumbHomeIcon_YNFT{height:1.1rem;position:relative;top:1px;vertical-align:top;width:1.1rem}.breadcrumbsContainer_Z_bl{--ifm-breadcrumb-size-multiplier:0.8;margin-bottom:.8rem}.mdxPageWrapper_j9I6{justify-content:center}@media (min-width:997px){.collapseSidebarButton_PEFL,.expandButton_m80_{background-color:var(--docusaurus-collapse-button-bg)}:root{--docusaurus-announcement-bar-height:30px}.announcementBarClose_gvF7,.announcementBarPlaceholder_vyr4{flex-basis:50px}.searchBox_ZlJk{padding:var(--ifm-navbar-item-padding-vertical) var(--ifm-navbar-item-padding-horizontal)}.lastUpdated_vwxv{text-align:right}.tocMobile_ITEo{display:none}.collapseSidebarButton_PEFL{border:1px solid var(--ifm-toc-border-color);border-radius:0;bottom:0;display:block!important;height:40px;position:sticky}.collapseSidebarButtonIcon_kv0_{margin-top:4px;transform:rotate(180deg)}.expandButtonIcon_BlDH,[dir=rtl] .collapseSidebarButtonIcon_kv0_{transform:rotate(0)}.collapseSidebarButton_PEFL:focus,.collapseSidebarButton_PEFL:hover,.expandButton_m80_:focus,.expandButton_m80_:hover{background-color:var(--docusaurus-collapse-button-bg-hover)}.menuHtmlItem_M9Kj{padding:var(--ifm-menu-link-padding-vertical) var(--ifm-menu-link-padding-horizontal)}.menu_SIkG{flex-grow:1;padding:.5rem}@supports (scrollbar-gutter:stable){.menu_SIkG{padding:.5rem 0 .5rem .5rem;scrollbar-gutter:stable}}.menuWithAnnouncementBar_GW3s{margin-bottom:var(--docusaurus-announcement-bar-height)}.sidebar_njMd{display:flex;flex-direction:column;height:100%;padding-top:var(--ifm-navbar-height);width:var(--doc-sidebar-width)}.sidebarWithHideableNavbar_wUlq{padding-top:0}.sidebarHidden_VK0M{opacity:0;visibility:hidden}.sidebarLogo_isFc{align-items:center;color:inherit!important;display:flex!important;margin:0 var(--ifm-navbar-padding-horizontal);max-height:var(--ifm-navbar-height);min-height:var(--ifm-navbar-height);text-decoration:none!important}.sidebarLogo_isFc img{height:2rem;margin-right:.5rem}.expandButton_m80_{align-items:center;display:flex;height:100%;justify-content:center;position:absolute;right:0;top:0;transition:background-color var(--ifm-transition-fast) ease;width:100%}[dir=rtl] .expandButtonIcon_BlDH{transform:rotate(180deg)}.docSidebarContainer_b6E3{border-right:1px solid var(--ifm-toc-border-color);-webkit-clip-path:inset(0);clip-path:inset(0);display:block;margin-top:calc(var(--ifm-navbar-height)*-1);transition:width var(--ifm-transition-fast) ease;width:var(--doc-sidebar-width);will-change:width}.docSidebarContainerHidden_b3ry{cursor:pointer;width:var(--doc-sidebar-hidden-width)}.sidebarViewport_Xe31{height:100%;max-height:100vh;position:sticky;top:0}.docMainContainer_gTbr{flex-grow:1;max-width:calc(100% - var(--doc-sidebar-width))}.docMainContainerEnhanced_Uz_u{max-width:calc(100% - var(--doc-sidebar-hidden-width))}.docItemWrapperEnhanced_czyv{max-width:calc(var(--ifm-container-width) + var(--doc-sidebar-width))!important}.docItemCol_VOVn{max-width:75%!important}}@media (min-width:1440px){.container{max-width:var(--ifm-container-width-xl)}}@media (max-width:996px){.col{--ifm-col-width:100%;flex-basis:var(--ifm-col-width);margin-left:0}.footer{--ifm-footer-padding-horizontal:0}.colorModeToggle_DEke,.footer__link-separator,.navbar__item,.tableOfContents_bqdL{display:none}.footer__col{margin-bottom:calc(var(--ifm-spacing-vertical)*3)}.footer__link-item{display:block}.hero{padding-left:0;padding-right:0}.navbar>.container,.navbar>.container-fluid{padding:0}.navbar__toggle{display:inherit}.navbar__search-input{width:9rem}.pills--block,.tabs--block{flex-direction:column}.searchBox_ZlJk{position:absolute;right:var(--ifm-navbar-padding-horizontal)}.docItemContainer_F8PC{padding:0 .3rem}}@media not (max-width:996px){.searchBar_RVTs.searchBarLeft_MXDe .dropdownMenu_qbY6{left:0!important;right:auto!important}}@media only screen and (max-width:996px){.searchQueryColumn_q7nx{max-width:60%!important}.searchContextColumn_oWAF{max-width:40%!important}}@media (max-width:576px){.markdown h1:first-child{--ifm-h1-font-size:2rem}.markdown>h2{--ifm-h2-font-size:1.5rem}.markdown>h3{--ifm-h3-font-size:1.25rem}.navbar__search-input:not(:focus){width:2rem}.searchBar_RVTs .dropdownMenu_qbY6{max-width:calc(100vw - var(--ifm-navbar-padding-horizontal)*2);width:var(--search-local-modal-width-sm,340px)}.searchBarContainer_NW3z:not(.focused_OWtg) .searchClearButton_qk4g,.searchHintContainer_Pkmr{display:none}}@media screen and (max-width:576px){.searchQueryColumn_q7nx{max-width:100%!important}.searchContextColumn_oWAF{max-width:100%!important;padding-left:var(--ifm-spacing-horizontal)!important}}@media (hover:hover){.backToTopButton_sjWU:hover{background-color:var(--ifm-color-emphasis-300)}}@media (pointer:fine){.thin-scrollbar{scrollbar-width:thin}.thin-scrollbar::-webkit-scrollbar{height:var(--ifm-scrollbar-size);width:var(--ifm-scrollbar-size)}.thin-scrollbar::-webkit-scrollbar-track{background:var(--ifm-scrollbar-track-background-color);border-radius:10px}.thin-scrollbar::-webkit-scrollbar-thumb{background:var(--ifm-scrollbar-thumb-background-color);border-radius:10px}.thin-scrollbar::-webkit-scrollbar-thumb:hover{background:var(--ifm-scrollbar-thumb-hover-background-color)}}@media (prefers-reduced-motion:reduce){:root{--ifm-transition-fast:0ms;--ifm-transition-slow:0ms}}@media print{.announcementBar_mb4j,.footer,.menu,.navbar,.pagination-nav,.table-of-contents,.tocMobile_ITEo{display:none}.tabs{page-break-inside:avoid}.codeBlockLines_e6Vv{white-space:pre-wrap}} \ No newline at end of file diff --git a/en/assets/images/CFM_Circle-485b2bb96d00ce0d9c1cef62bc8254bf.png b/en/assets/images/CFM_Circle-485b2bb96d00ce0d9c1cef62bc8254bf.png new file mode 100644 index 000000000..e15b29894 Binary files /dev/null and b/en/assets/images/CFM_Circle-485b2bb96d00ce0d9c1cef62bc8254bf.png differ diff --git a/en/assets/images/GUET_logo-2ca573752497f4153d65447c4f644736.png b/en/assets/images/GUET_logo-2ca573752497f4153d65447c4f644736.png new file mode 100644 index 000000000..703148e5d Binary files /dev/null and b/en/assets/images/GUET_logo-2ca573752497f4153d65447c4f644736.png differ diff --git a/en/assets/images/KEXIE_logo-5366f4894a5a4aeb6d632a5158e69097.png b/en/assets/images/KEXIE_logo-5366f4894a5a4aeb6d632a5158e69097.png new file mode 100644 index 000000000..d0ca2ea46 Binary files /dev/null and b/en/assets/images/KEXIE_logo-5366f4894a5a4aeb6d632a5158e69097.png differ diff --git a/en/assets/images/UESTC_logo-26b07a2ed8fc72bcc918804e9d572e7b.png b/en/assets/images/UESTC_logo-26b07a2ed8fc72bcc918804e9d572e7b.png new file mode 100644 index 000000000..e86a65f69 Binary files /dev/null and b/en/assets/images/UESTC_logo-26b07a2ed8fc72bcc918804e9d572e7b.png differ diff --git a/en/assets/images/intro-822c34cd9b5577b06df8bb0956cdf947.png b/en/assets/images/intro-822c34cd9b5577b06df8bb0956cdf947.png new file mode 100644 index 000000000..9088471b3 Binary files /dev/null and b/en/assets/images/intro-822c34cd9b5577b06df8bb0956cdf947.png differ diff --git a/en/assets/images/spaceX_1-b08beebc0d33a6ceb38a2e9449af6326.jpg b/en/assets/images/spaceX_1-b08beebc0d33a6ceb38a2e9449af6326.jpg new file mode 100644 index 000000000..90398112d Binary files /dev/null and b/en/assets/images/spaceX_1-b08beebc0d33a6ceb38a2e9449af6326.jpg differ diff --git a/en/assets/js/05ec199a.6ad57d3c.js b/en/assets/js/05ec199a.6ad57d3c.js new file mode 100644 index 000000000..d53bbb28f --- /dev/null +++ b/en/assets/js/05ec199a.6ad57d3c.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunknpy_notebook=self.webpackChunknpy_notebook||[]).push([[2373],{3905:(a,e,t)=>{t.d(e,{Zo:()=>i,kt:()=>h});var n=t(7294);function m(a,e,t){return e in a?Object.defineProperty(a,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):a[e]=t,a}function s(a,e){var t=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable}))),t.push.apply(t,n)}return t}function p(a){for(var e=1;e=0||(m[t]=a[t]);return m}(a,e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(a);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(a,t)&&(m[t]=a[t])}return m}var l=n.createContext({}),N=function(a){var e=n.useContext(l),t=e;return a&&(t="function"==typeof a?a(e):p(p({},e),a)),t},i=function(a){var e=N(a.components);return n.createElement(l.Provider,{value:e},a.children)},o="mdxType",k={inlineCode:"code",wrapper:function(a){var e=a.children;return n.createElement(n.Fragment,{},e)}},c=n.forwardRef((function(a,e){var t=a.components,m=a.mdxType,s=a.originalType,l=a.parentName,i=r(a,["components","mdxType","originalType","parentName"]),o=N(t),c=m,h=o["".concat(l,".").concat(c)]||o[c]||k[c]||s;return t?n.createElement(h,p(p({ref:e},i),{},{components:t})):n.createElement(h,p({ref:e},i))}));function h(a,e){var t=arguments,m=e&&e.mdxType;if("string"==typeof a||m){var s=t.length,p=new Array(s);p[0]=c;var r={};for(var l in e)hasOwnProperty.call(e,l)&&(r[l]=e[l]);r.originalType=a,r[o]="string"==typeof a?a:m,p[1]=r;for(var N=2;N{t.r(e),t.d(e,{assets:()=>l,contentTitle:()=>p,default:()=>k,frontMatter:()=>s,metadata:()=>r,toc:()=>N});var n=t(7462),m=(t(7294),t(3905));const s={},p="\u81ea\u6ce8\u610f\u529b\uff08Self-Attention\uff09",r={unversionedId:"Deep-Learning/\u5927\u6a21\u578b/Self-Attention",id:"Deep-Learning/\u5927\u6a21\u578b/Self-Attention",title:"\u81ea\u6ce8\u610f\u529b\uff08Self-Attention\uff09",description:"\u53c2\u8003\u94fe\u63a5:",source:"@site/docs/Deep-Learning/5-\u5927\u6a21\u578b/1-Self-Attention.md",sourceDirName:"Deep-Learning/5-\u5927\u6a21\u578b",slug:"/Deep-Learning/\u5927\u6a21\u578b/Self-Attention",permalink:"/en/docs/Deep-Learning/\u5927\u6a21\u578b/Self-Attention",draft:!1,tags:[],version:"current",sidebarPosition:1,frontMatter:{},sidebar:"deep_learning",previous:{title:"\u672c\u79d1\u6bd5\u4e1a\u8bba\u6587\uff1a\u57fa\u4e8e Prompt Learning \u7684\u89c6\u89c9-\u8bed\u8a00\u5927\u6a21\u578b\u5728\u56fe\u50cf\u751f\u6210\u4e2d\u7684\u5e94\u7528\u4e0e\u7814\u7a76",permalink:"/en/docs/Deep-Learning/\u5b9e\u6218\u7ec3\u4e60/Undergraduate-Dissertation"},next:{title:"NeurIPS 2017: Attention Is All You Need",permalink:"/en/docs/Deep-Learning/\u5927\u6a21\u578b/Attention-Is-All-You-Need"}},l={},N=[{value:"\u8ba4\u8bc6CNN\u7684\u5c40\u9650\u6027",id:"\u8ba4\u8bc6cnn\u7684\u5c40\u9650\u6027",level:2},{value:"\u8f93\u5165\u4e0e\u8f93\u51fa\u7684\u5c40\u9650\u6027",id:"\u8f93\u5165\u4e0e\u8f93\u51fa\u7684\u5c40\u9650\u6027",level:3},{value:"\u5173\u8054\u4e0a\u4e0b\u6587\u4fe1\u606f\u7684\u5c40\u9650\u6027",id:"\u5173\u8054\u4e0a\u4e0b\u6587\u4fe1\u606f\u7684\u5c40\u9650\u6027",level:3},{value:"Self-Attention\u7684\u539f\u7406",id:"self-attention\u7684\u539f\u7406",level:2},{value:"\u4ec0\u4e48\u662fSelf-Attention",id:"\u4ec0\u4e48\u662fself-attention",level:3},{value:"Self-Attention\u7684\u6838\u5fc3\u601d\u60f3",id:"self-attention\u7684\u6838\u5fc3\u601d\u60f3",level:3},{value:"Self-Attention\u7684\u5b9e\u73b0",id:"self-attention\u7684\u5b9e\u73b0",level:3},{value:"\u5b9a\u4e49\u8f93\u5165",id:"\u5b9a\u4e49\u8f93\u5165",level:4},{value:"\u521d\u59cb\u5316\u6743\u91cd\u77e9\u9635",id:"\u521d\u59cb\u5316\u6743\u91cd\u77e9\u9635",level:4},{value:"\u8ba1\u7b97key\uff0cquery\u4ee5\u53cavalue",id:"\u8ba1\u7b97keyquery\u4ee5\u53cavalue",level:4},{value:"\u8ba1\u7b97\u539f\u59cb\u7684\u6ce8\u610f\u529b\u5206\u6570",id:"\u8ba1\u7b97\u539f\u59cb\u7684\u6ce8\u610f\u529b\u5206\u6570",level:4},{value:"\u5bf9\u6bcf\u4e00\u4e2a\u5411\u91cf\u8ba1\u7b97\u51fa\u7684\u6ce8\u610f\u529b\u5206\u6570\u505asoftmax",id:"\u5bf9\u6bcf\u4e00\u4e2a\u5411\u91cf\u8ba1\u7b97\u51fa\u7684\u6ce8\u610f\u529b\u5206\u6570\u505asoftmax",level:4},{value:"\u5c06\u6ce8\u610f\u529b\u5206\u6570\u4e0e\u5bf9\u5e94\u7684value\u76f8\u4e58",id:"\u5c06\u6ce8\u610f\u529b\u5206\u6570\u4e0e\u5bf9\u5e94\u7684value\u76f8\u4e58",level:4},{value:"\u52a0\u6743\u6ce8\u610f\u529b\u5206\u6570\u6c42\u548c",id:"\u52a0\u6743\u6ce8\u610f\u529b\u5206\u6570\u6c42\u548c",level:4},{value:"\u603b\u7ed3",id:"\u603b\u7ed3",level:4},{value:"\u5b8c\u6574\u4ee3\u7801",id:"\u5b8c\u6574\u4ee3\u7801",level:4},{value:"Multi-Head Self-Attention",id:"multi-head-self-attention",level:2},{value:"Self-Attention\u4e0eCNN\u7684\u5bf9\u6bd4",id:"self-attention\u4e0ecnn\u7684\u5bf9\u6bd4",level:2}],i={toc:N},o="wrapper";function k(a){let{components:e,...t}=a;return(0,m.kt)(o,(0,n.Z)({},i,t,{components:e,mdxType:"MDXLayout"}),(0,m.kt)("h1",{id:"\u81ea\u6ce8\u610f\u529bself-attention"},"\u81ea\u6ce8\u610f\u529b\uff08Self-Attention\uff09"),(0,m.kt)("admonition",{type:"important"},(0,m.kt)("p",{parentName:"admonition"},"\u53c2\u8003\u94fe\u63a5:"),(0,m.kt)("p",{parentName:"admonition"},(0,m.kt)("a",{parentName:"p",href:"https://towardsdatascience.com/illustrated-self-attention-2d627e33b20a#570c"},"Illustrated: Self-Attention")),(0,m.kt)("p",{parentName:"admonition"},(0,m.kt)("a",{parentName:"p",href:"https://zhuanlan.zhihu.com/p/619154409"},"\u52a8\u56fe\u8f7b\u677e\u7406\u89e3Self-Attention(\u81ea\u6ce8\u610f\u529b\u673a\u5236)"))),(0,m.kt)("h2",{id:"\u8ba4\u8bc6cnn\u7684\u5c40\u9650\u6027"},"\u8ba4\u8bc6CNN\u7684\u5c40\u9650\u6027"),(0,m.kt)("h3",{id:"\u8f93\u5165\u4e0e\u8f93\u51fa\u7684\u5c40\u9650\u6027"},"\u8f93\u5165\u4e0e\u8f93\u51fa\u7684\u5c40\u9650\u6027"),(0,m.kt)("p",null,"CNN\u6a21\u578b\u7684\u8f93\u5165\u5411\u91cf\u7684\u5f62\u72b6\u662f\u56fa\u5b9a\u7684\uff0c\u5176\u8f93\u51fa\u5411\u91cf\u7684\u5f62\u72b6\u4e5f\u662f\u56fa\u5b9a\u7684\u6216\u53ef\u4ee5\u6839\u636e\u4e0d\u540c\u7684\u4e0b\u6e38\u4efb\u52a1\u800c\u552f\u4e00\u786e\u5b9a\uff0c\u5373\u8f93\u5165\u5f62\u72b6\u4e0e\u4e0b\u6e38\u4efb\u52a1\u5171\u540c\u786e\u5b9a\u4e86\u4e00\u4e2aCNN\u6a21\u578b\u7684\u67b6\u6784\uff0c\u5177\u6709\u8f83\u5f3a\u7684\u56fa\u5b9a\u6027\u3002"),(0,m.kt)("admonition",{type:"important"},(0,m.kt)("p",{parentName:"admonition"},"\u5728\u89c6\u89c9\u4e2d\uff0c\u8f93\u5165\u5927\u591a\u4e3a\u6570\u5b57\u56fe\u50cf\uff0c\u5176\u5f62\u72b6\u53ef\u4ee5\u5927\u81f4\u5206\u4e3a\u7531\u5c3a\u5bf8\u548c\u901a\u9053\u6570\u6765\u51b3\u5b9a\u3002"),(0,m.kt)("p",{parentName:"admonition"},"\u4ece\u8f93\u5165\u56fe\u50cf\u7684\u5c3a\u5bf8\u770b\uff0c\u5f53CNN\u4e2d\u6ca1\u6709\u5168\u8fde\u63a5\u5c42\u65f6\uff0c\u672c\u8d28\u4e0a\u53ef\u4ee5\u63a5\u53d7\u4efb\u610f\u5c3a\u5bf8\u7684\u8f93\u5165\uff0c\u4f46\u8fd9\u662f\u72ed\u9698\u7684\u3002\u82e5\u8003\u8651\u5176\u4e0b\u6e38\u4efb\u52a1\u4ee5\u53ca\u8f93\u51fa\uff0c\u5982FCN\uff08Fully Convolution Network\uff09\uff0cFCN\u901a\u8fc7\u6700\u540e\u901a\u8fc7\u53cd\u5377\u79ef\u5c06tensor\u8fd8\u539f\u5230\u539f\u59cb\u56fe\u50cf\u5c3a\u5bf8\uff0c\u5373\u5728CNN\u4e2d\uff0c\u8f93\u5165\u4e0e\u8f93\u51fa\uff08\u4e0b\u6e38\u4efb\u52a1\u7684\u8981\u6c42\uff09\u90fd\u5f71\u54cd\u7740CNN\u7f51\u7edc\u7684\u7ed3\u6784\u3002"),(0,m.kt)("p",{parentName:"admonition"},"\u4ece\u901a\u9053\u6570\u770b\uff0cCNN\u672c\u8d28\u4e0a\u53ef\u4ee5\u63a5\u53d7\u4efb\u610f\u901a\u9053\u6570\u7684\u56fe\u50cf\u8f93\u5165\uff0c\u4f46\u662f\u5176\u6a21\u578b\u6548\u679c\u5c06\u4f1a\u53d7\u5230\u6781\u5927\u7684\u5f71\u54cd\u3002\u4ee5\u4e00\u4e2a\u4f7f\u7528\u901a\u9053\u6570\u4e3a3\u7684\u6570\u636e\u96c6\u8fdb\u884c\u8bad\u7ec3\u7684CNN\u6a21\u578b\uff0c\u4f46\u5728\u6d4b\u8bd5\u9636\u6bb5\u5206\u522b\u4f7f\u7528\u901a\u9053\u6570\u4e3a 1 \u548c 6 \u7684\u6570\u636e\u8fdb\u884c\u63a8\u7406\u7684\u60c5\u5f62\u4e3a\u4f8b\uff0c\u8fdb\u884c\u5206\u6790\uff1a"),(0,m.kt)("ol",{parentName:"admonition"},(0,m.kt)("li",{parentName:"ol"},"\u901a\u9053\u6570\u4e3a1\u7684\u6d4b\u8bd5\u96c6\uff1a")),(0,m.kt)("ul",{parentName:"admonition"},(0,m.kt)("li",{parentName:"ul"},"\u60c5\u51b5\uff1a \u5982\u679c\u4f7f\u7528\u901a\u9053\u6570\u4e3a 1 \u7684\u6570\u636e\u8fdb\u884c\u63a8\u7406\uff0c\u5373\u7070\u5ea6\u56fe\u50cf\uff0c\u800c\u6a21\u578b\u5728\u8bad\u7ec3\u65f6\u662f\u4f7f\u7528 RGB \u6570\u636e\u96c6\u8bad\u7ec3\u7684\uff0c\u6a21\u578b\u53ef\u80fd\u4f1a\u53d7\u5230\u4e00\u4e9b\u5f71\u54cd\u3002"),(0,m.kt)("li",{parentName:"ul"},"\u89e3\u91ca\uff1a \u6a21\u578b\u53ef\u80fd\u5728\u8bad\u7ec3\u65f6\u5b66\u5230\u4e86\u5173\u4e8e\u989c\u8272\u7684\u7279\u5b9a\u4fe1\u606f\uff0c\u800c\u5728\u6d4b\u8bd5\u65f6\uff0c\u5982\u679c\u8f93\u5165\u662f\u7070\u5ea6\u56fe\u50cf\uff0c\u90a3\u4e9b\u989c\u8272\u4fe1\u606f\u5c06\u4e0d\u53ef\u7528\u3002"),(0,m.kt)("li",{parentName:"ul"},"\u5efa\u8bae\uff1a \u5728\u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0c\u6a21\u578b\u53ef\u80fd\u4f1a\u5931\u53bb\u5bf9\u989c\u8272\u4fe1\u606f\u7684\u654f\u611f\u6027\uff0c\u53ef\u80fd\u9700\u8981\u8fdb\u884c\u8fdb\u4e00\u6b65\u7684\u8c03\u6574\u6216\u5fae\u8c03\uff0c\u4ee5\u9002\u5e94\u7070\u5ea6\u56fe\u50cf\u7684\u7279\u6027\u3002")),(0,m.kt)("ol",{parentName:"admonition",start:2},(0,m.kt)("li",{parentName:"ol"},"\u901a\u9053\u6570\u4e3a6\u7684\u6d4b\u8bd5\u96c6\uff1a")),(0,m.kt)("ul",{parentName:"admonition"},(0,m.kt)("li",{parentName:"ul"},"\u60c5\u51b5\uff1a \u5982\u679c\u4f7f\u7528\u901a\u9053\u6570\u4e3a 6 \u7684\u6570\u636e\u8fdb\u884c\u63a8\u7406\uff0c\u6a21\u578b\u53ef\u80fd\u4f1a\u9762\u4e34\u989d\u5916\u7684\u6311\u6218\uff0c\u56e0\u4e3a\u5b83\u5728\u8bad\u7ec3\u65f6\u53ea\u89c1\u8fc7 3 \u4e2a\u901a\u9053\u7684\u6570\u636e\u3002"),(0,m.kt)("li",{parentName:"ul"},"\u89e3\u91ca\uff1a \u6a21\u578b\u5728\u8bad\u7ec3\u65f6\u5b66\u5230\u7684\u6743\u91cd\u662f\u57fa\u4e8e 3 \u4e2a\u901a\u9053\u7684\u6570\u636e\u7684\uff0c\u5bf9\u4e8e\u989d\u5916\u7684\u901a\u9053\uff0c\u6a21\u578b\u53ef\u80fd\u65e0\u6cd5\u6709\u6548\u5229\u7528\u8fd9\u4e9b\u4fe1\u606f\u3002"),(0,m.kt)("li",{parentName:"ul"},"\u5efa\u8bae\uff1a \u5bf9\u4e8e\u901a\u9053\u6570\u4e0d\u5339\u914d\u7684\u60c5\u51b5\uff0c\u53ef\u4ee5\u8003\u8651\u8fdb\u884c\u901a\u9053\u7684\u9002\u5f53\u7ec4\u5408\u6216\u8c03\u6574\u3002\u8fd9\u53ef\u80fd\u5305\u62ec\u964d\u4f4e\u901a\u9053\u6570\uff08\u4f8b\u5982\uff0c\u53ea\u4f7f\u7528\u524d 3 \u4e2a\u901a\u9053\uff09\uff0c\u6216\u8005\u901a\u8fc7\u67d0\u79cd\u65b9\u5f0f\u5c06 6 \u4e2a\u901a\u9053\u6620\u5c04\u5230 3 \u4e2a\u901a\u9053\uff0c\u4f8b\u5982\u901a\u8fc7\u67d0\u79cd\u7279\u5b9a\u7684\u6570\u636e\u9884\u5904\u7406\u3002"))),(0,m.kt)("p",null,"\u5f53\u6a21\u578b\u7684\u8f93\u5165\u66f4\u590d\u6742\uff08sophisticated\uff09\uff0c\u662f",(0,m.kt)("inlineCode",{parentName:"p"},"\u957f\u5ea6\u4e0d\u5b9a"),"\u7684\u5411\u91cf\u5e8f\u5217\uff08sequence\uff09\u65f6\uff0cCNN\u4e0d\u80fd\u5f88\u597d\u5730\u5904\u7406\uff0c\u4e14\u4e0d\u80fd\u89e3\u51b3\u8f93\u51fa\u7531\u8f93\u5165\u548c\u6a21\u578b\u81ea\u884c\u51b3\u5b9a\u7684\u4e0b\u6e38\u4efb\u52a1\uff0c\u5982\u751f\u6210\u7c7b\u4efb\u52a1\u3002"),(0,m.kt)("h3",{id:"\u5173\u8054\u4e0a\u4e0b\u6587\u4fe1\u606f\u7684\u5c40\u9650\u6027"},"\u5173\u8054\u4e0a\u4e0b\u6587\u4fe1\u606f\u7684\u5c40\u9650\u6027"),(0,m.kt)("p",null,"CNN\u4e2d\u5b58\u5728\u5c40\u90e8\u8fde\u63a5\u548c\u6743\u503c\u5171\u4eab\u7684\u5f52\u7eb3\u504f\u7f6e\uff1a"),(0,m.kt)("ul",null,(0,m.kt)("li",{parentName:"ul"},(0,m.kt)("strong",{parentName:"li"},"\u5c40\u90e8\u8fde\u63a5\uff1a"),"CNN\u4f7f\u7528\u5377\u79ef\u5c42\u901a\u8fc7\u6ed1\u52a8\u5377\u79ef\u6838\u5728\u8f93\u5165\u4e0a\u8fdb\u884c\u5c40\u90e8\u611f\u53d7\u91ce\u7684\u64cd\u4f5c\u3002\u6bcf\u4e2a\u795e\u7ecf\u5143\u53ea\u4e0e\u8f93\u5165\u7684\u4e00\u5c0f\u90e8\u5206\u533a\u57df\u76f8\u8fde\uff0c\u8fd9\u610f\u5473\u7740\u6bcf\u4e2a\u795e\u7ecf\u5143\u53ea\u80fd\u63a5\u89e6\u5230\u5c40\u90e8\u7684\u4e0a\u4e0b\u6587\u4fe1\u606f\u3002"),(0,m.kt)("li",{parentName:"ul"},(0,m.kt)("strong",{parentName:"li"},"\u6743\u503c\u5171\u4eab\uff1a")," \u6743\u503c\u5171\u4eab\u7684\u4e3b\u8981\u601d\u60f3\u662f\uff0c\u5bf9\u4e8e\u8f93\u5165\u56fe\u50cf\u7684\u4e0d\u540c\u4f4d\u7f6e\u4f7f\u7528\u76f8\u540c\u7684\u6743\u91cd\u53c2\u6570\u8fdb\u884c\u5377\u79ef\u64cd\u4f5c\u3002\u8fd9\u610f\u5473\u7740\uff0c\u65e0\u8bba\u5377\u79ef\u64cd\u4f5c\u53d1\u751f\u5728\u56fe\u50cf\u7684\u5de6\u4e0a\u89d2\u3001\u53f3\u4e0b\u89d2\uff0c\u6216\u8005\u5176\u4ed6\u4efb\u4f55\u4f4d\u7f6e\uff0c\u90fd\u4f7f\u7528\u76f8\u540c\u7684\u5377\u79ef\u6838\u8fdb\u884c\u6743\u503c\u8ba1\u7b97\u3002CNN\u7684\u6743\u503c\u5171\u4eab\u4f7f\u5f97\u6a21\u578b\u80fd\u591f\u5b66\u4e60\u5230\u56fe\u50cf\u4e2d\u7684\u5c40\u90e8\u7279\u5f81\uff0c\u8fd9\u4e5f\u662f\u4e00\u79cd\u5bf9\u4e8e\u4e0a\u4e0b\u6587\u7684\u5047\u8bbe\u3002\u76f8\u90bb\u4f4d\u7f6e\u4e0a\u7684\u6743\u91cd\u5171\u4eab\u4f7f\u5f97\u6a21\u578b\u80fd\u591f\u5bf9\u5c40\u90e8\u7ed3\u6784\u8fdb\u884c\u5efa\u6a21\uff0c\u8fd9\u79cd\u6743\u91cd\u5171\u4eab\u4f7f\u5f97CNN\u5177\u6709\u66f4\u5f3a\u7684\u5f52\u7eb3\u504f\u7f6e\u3002")),(0,m.kt)("admonition",{type:"tip"},(0,m.kt)("p",{parentName:"admonition"},(0,m.kt)("strong",{parentName:"p"},"\u5728\u591a\u901a\u9053\u5377\u79ef\u4e2d\uff0c\u5377\u79ef\u6838\u4e0d\u540c\u901a\u9053\u4e4b\u95f4\u7684\u6743\u91cd\u53c2\u6570\u662f\u72ec\u7acb\u7684"),"\u3002\u8fd9\u4f7f\u5f97\u7f51\u7edc\u80fd\u591f\u5b66\u4e60\u4e0d\u540c\u901a\u9053\u4e4b\u95f4\u7684\u7279\u5f81\u7ec4\u5408\u3002\u8fd9\u79cd\u8bbe\u8ba1\u6709\u6548\u5730\u6355\u6349\u4e86\u8f93\u5165\u6570\u636e\u4e2d\u7684\u591a\u901a\u9053\u4fe1\u606f\uff0c\u63d0\u9ad8\u4e86\u7f51\u7edc\u7684\u8868\u8fbe\u80fd\u529b\u3002")),(0,m.kt)("p",null,"CNN\u7684\u8bbe\u8ba1\u7406\u5ff5\u8ba4\u4e3a\uff1a\u5728\u56fe\u50cf\u4efb\u52a1\u4e2d\uff0c\u5c40\u90e8\u7ed3\u6784\u901a\u5e38\u66f4\u4e3a\u91cd\u8981\uff0c\u5c40\u90e8\u8fde\u63a5\u548c\u6743\u503c\u5171\u4eab\u4f7f\u5f97CNN\u66f4\u9002\u7528\u4e8e\u56fe\u50cf\u5904\u7406\u7b49\u4efb\u52a1\u3002\u4f46\u4e5f\u6b63\u662f\u8fd9\u79cd\u8bbe\u8ba1\u7406\u5ff5\uff0c\u4f7f\u5f97CNN\u5728\u9762\u4e34",(0,m.kt)("strong",{parentName:"p"},"\u957f\u8f93\u5165\u5e8f\u5217"),"\u65f6\u4e0d\u80fd\u5f88\u597d\u5730\u7efc\u5408",(0,m.kt)("strong",{parentName:"p"},"\u4e0a\u4e0b\u6587\u4fe1\u606f"),"\u3001\u63d0\u53d6",(0,m.kt)("strong",{parentName:"p"},"\u4f4d\u7f6e\u4fe1\u606f"),"\uff0c\u56e0\u6b64Self-Attention\u5e94\u8fd0\u800c\u751f\uff0c",(0,m.kt)("strong",{parentName:"p"},"\u5141\u8bb8\u6bcf\u4e2a\u4f4d\u7f6e\u5173\u6ce8\u5230\u5e8f\u5217\u4e2d\u5730\u6240\u6709\u5176\u4ed6\u4f4d\u7f6e"),"\u3002\u8fd9\u79cd\u5168\u5c40\u5173\u8054\u6027\u8d28\u4f7f\u5f97Transformer\u80fd\u591f\u6355\u6349\u5e8f\u5217\u4e2d\u7684\u957f\u8ddd\u79bb\u4f9d\u8d56\u5173\u7cfb\u3002"),(0,m.kt)("h2",{id:"self-attention\u7684\u539f\u7406"},"Self-Attention\u7684\u539f\u7406"),(0,m.kt)("h3",{id:"\u4ec0\u4e48\u662fself-attention"},"\u4ec0\u4e48\u662fSelf-Attention"),(0,m.kt)("blockquote",null,(0,m.kt)("p",{parentName:"blockquote"},"A self-attention module takes in ",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"n")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"n")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.4306em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"n")))))," inputs and returns ",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"n")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"n")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.4306em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"n")))))," outputs. What happens in this module? In layman\u2019s terms, the self-attention mechanism allows the inputs to interact with each other (\u201cself\u201d) and find out who they should pay more attention to (\u201cattention\u201d). The outputs are aggregates of these interactions and attention scores.")),(0,m.kt)("p",null,"Self-Attention\u63a5\u53d7",(0,m.kt)("strong",{parentName:"p"},"\u4efb\u610f\u5411\u91cf\u6570\u91cf"),"\u7684\u5411\u91cf\u5e8f\u5217\u7684\u8f93\u5165\uff0c\u8f93\u51fa",(0,m.kt)("strong",{parentName:"p"},"\u6bcf\u4e00\u4e2a\u5411\u91cf\u6240\u6709\u5411\u91cf\uff08\u5305\u62ec\u81ea\u8eab\uff09\u7684\u6ce8\u610f\u529b\u5206\u6570"),"\u3002\u8fd9\u4f7f\u5f97Self-Attention\u5728\u6355\u6349",(0,m.kt)("strong",{parentName:"p"},"\u957f\u8ddd\u79bb\u4f9d\u8d56"),"\u548c\u5904\u7406\u5e8f\u5217\u4e2d\u7684",(0,m.kt)("strong",{parentName:"p"},"\u5168\u5c40\u5173\u7cfb"),"\u65f6\u975e\u5e38\u6709\u6548\u3002"),(0,m.kt)("h3",{id:"self-attention\u7684\u6838\u5fc3\u601d\u60f3"},"Self-Attention\u7684\u6838\u5fc3\u601d\u60f3"),(0,m.kt)("p",null,"\u81ea\u6ce8\u610f\u529b\u673a\u5236\u7684\u6838\u5fc3\u601d\u60f3\u662f\u4e3a\u5e8f\u5217\u4e2d\u7684\u6bcf\u4e2a\u5411\u91cf\u5206\u914d\u4e00\u4e2a\u6743\u91cd\uff08\u5373\u6ce8\u610f\u529b\u5206\u6570\uff09\uff0c\u8be5\u6743\u91cd\u8868\u793a\u8be5\u5143\u7d20\u4e0e\u5176\u4ed6\u5143\u7d20\u7684\u5173\u8054\u5f3a\u5ea6\u3002\u8fd9\u4e2a\u6743\u91cd\u662f\u901a\u8fc7\u8ba1\u7b97\u8f93\u5165\u5e8f\u5217\u4e2d\u6240\u6709\u5143\u7d20\u4e0e\u5f53\u524d\u5143\u7d20\u4e4b\u95f4\u7684\u5173\u7cfb\u6765\u786e\u5b9a\u7684\u3002\u901a\u5e38\uff0c\u8fd9\u4e2a\u8ba1\u7b97\u8fc7\u7a0b\u4f7f\u7528\u4e00\u4e2a",(0,m.kt)("strong",{parentName:"p"},"\u53ef\u5b66\u4e60\u7684\u6743\u91cd\u77e9\u9635"),"\u6765\u5b8c\u6210\uff0c\u5373\u7528\u6765\u751f\u6210Key\uff0cQuery\u4ee5\u53caValue\u7684\u6743\u91cd\u77e9\u9635\u3002"),(0,m.kt)("h3",{id:"self-attention\u7684\u5b9e\u73b0"},"Self-Attention\u7684\u5b9e\u73b0"),(0,m.kt)("h4",{id:"\u5b9a\u4e49\u8f93\u5165"},"\u5b9a\u4e49\u8f93\u5165"),(0,m.kt)("p",null,"Self-Attention\u7684\u8f93\u5165\u662f\u5411\u91cf\u5e8f\u5217\uff0c\u5176\u5411\u91cf\u6570\u91cf\u662f\u4efb\u610f\u7684\uff0c\u8ba1\u7b97\u6bcf\u4e2a\u8f93\u5165\u5411\u91cf\u4e4b\u95f4\u7684\u6ce8\u610f\u529b\u5206\u6570\u3002\u5728\u672c\u4f8b\u4e2d\u8f93\u5165\u5411\u91cf\u4e2a\u6570\u4e3a3\uff0c\u540c\u65f6\u4e3a\u4e86\u7edf\u4e00\u6027\u5206\u6790\uff0c\u8ba1\u8f93\u5165\u5411\u91cf\u4e2a\u6570\u4e3a",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"b"),(0,m.kt)("mi",{parentName:"mrow"},"a"),(0,m.kt)("mi",{parentName:"mrow"},"t"),(0,m.kt)("mi",{parentName:"mrow"},"c"),(0,m.kt)("mi",{parentName:"mrow"},"h")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"batch")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6944em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"ba"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"t"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"c"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"h"))))),"\u4e2a\u3002"),(0,m.kt)("pre",null,(0,m.kt)("code",{parentName:"pre",className:"language-python"},"# define the input, which has a shape of (3, 4)\ninputs = [[1, 0, 1, 0], [0, 2, 0, 2], [1, 1, 1, 1]]\ninputs = torch.tensor(inputs, dtype=torch.float32)\n")),(0,m.kt)("p",null,(0,m.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_images1*hmvdDXrxhJsGhOQClQdkBA.png",alt:"img"})),(0,m.kt)("h4",{id:"\u521d\u59cb\u5316\u6743\u91cd\u77e9\u9635"},"\u521d\u59cb\u5316\u6743\u91cd\u77e9\u9635"),(0,m.kt)("p",null,"\u6bcf\u4e2a\u8f93\u5165\u5411\u91cf\u90fd\u4f1a\u4e0e3\u4e2a\u6743\u91cd\u5411\u91cf\u505a\u4e58\u6cd5\u5f97\u52303\u4e2a\u65b0\u7684\u5411\u91cf\uff0c\u5206\u522b\u4e3akey\uff0cquery\u4ee5\u53cavalue\u3002\u5728\u672c\u4f8b\u4e2d\u5c06\u65b0\u7684\u5411\u91cf\u7ef4\u5ea6\u8bbe\u4e3a3\uff0c\u7531\u4e8e\u8f93\u51fa\u7684k\u3001q\u3001v\u77e9\u9635\u5927\u5c0f\u5747\u4e3a",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mn",{parentName:"mrow"},"3"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mn",{parentName:"mrow"},"3"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"(3, 3)")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},"3"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"3"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"))))),"\uff0c\u56e0\u6b64\u6bcf\u4e2a\u6743\u91cd\u77e9\u9635\u7684\u5f62\u72b6\u5e94\u8be5\u662f",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mn",{parentName:"mrow"},"4"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mn",{parentName:"mrow"},"3"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"(4, 3)")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},"4"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"3"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"))))),"\u3002\u4e3a\u4e86\u7edf\u4e00\u6027\u5206\u6790\uff0c\u8ba1key\uff0cquery\u4ee5\u53cavalue\u5404\u5411\u91cf\u7ef4\u5ea6\u4e3a",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"n"),(0,m.kt)("mi",{parentName:"mrow"},"u"),(0,m.kt)("mi",{parentName:"mrow"},"m")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"num")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.4306em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"n"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"u"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"m"))))),"\u3002"),(0,m.kt)("blockquote",null,(0,m.kt)("p",{parentName:"blockquote"},"In a neural network setting, these weights are usually small numbers, initialised randomly using an appropriate random distribution like Gaussian, Xavier and Kaiming distributions. This initialisation is done once before training.")),(0,m.kt)("p",null,"\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\uff0c\u6743\u91cd\u901a\u5e38\u662f\u8f83\u5c0f\u7684\u6570\u5b57\uff0c\u901a\u8fc7\u9002\u5f53\u7684\u968f\u673a\u5206\u5e03\uff08\u6bd4\u5982\u9ad8\u65af\u3001Xavier\u548cKaiming\u5206\u5e03\uff09\u8fdb\u884c\u968f\u673a\u521d\u59cb\u5316\u3002"),(0,m.kt)("pre",null,(0,m.kt)("code",{parentName:"pre",className:"language-python"},"# define the weights for keys, queries and values\nw_key = torch.tensor([[0, 0, 1], [1, 1, 0], [0, 1, 0], [1, 1, 0]], dtype=torch.float32)\nw_query = torch.tensor([[1, 0, 1], [1, 0, 0], [0, 0, 1], [0, 1, 1]], dtype=torch.float32)\nw_value = torch.tensor([[0, 2, 0], [0, 3, 0], [1, 0, 3], [1, 1, 0]], dtype=torch.float32)\n")),(0,m.kt)("h4",{id:"\u8ba1\u7b97keyquery\u4ee5\u53cavalue"},"\u8ba1\u7b97key\uff0cquery\u4ee5\u53cavalue"),(0,m.kt)("pre",null,(0,m.kt)("code",{parentName:"pre",className:"language-python"},'# compute keys, queries and values\nkeys = inputs @ w_key\nqueries = inputs @ w_query\nvalues = inputs @ w_value\nprint("keys:\\n", keys) # (3, 3)\nprint("queries:\\n", queries) # (3, 3)\nprint("values:\\n", values) # (3, 3)\n')),(0,m.kt)("p",null,(0,m.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_imagesimage-20231106192612109.png",alt:"image-20231106192612109"})),(0,m.kt)("h4",{id:"\u8ba1\u7b97\u539f\u59cb\u7684\u6ce8\u610f\u529b\u5206\u6570"},"\u8ba1\u7b97\u539f\u59cb\u7684\u6ce8\u610f\u529b\u5206\u6570"),(0,m.kt)("p",null,"\u6211\u4eec\u8981\u4e3a\u6bcf\u4e00\u4e2a\u8f93\u5165\u5411\u91cf\u8ba1\u7b97\u5b83\u5bf9\u6240\u6709\u5411\u91cf\u7684\u6ce8\u610f\u529b\u5206\u6570\uff0c\u5305\u62ec\u5bf9\u81ea\u8eab\u7684\u3002"),(0,m.kt)("p",null,"\u539f\u59cb\u6ce8\u610f\u529b\u5206\u6570\u7684\u8ba1\u7b97\u65b9\u5f0f\u4e3a\uff0c\u4f7f\u7528\u81ea\u8eab\u7684query\u5206\u522b\u4e0e\u6240\u6709\u5411\u91cf\u7684key\u505a\u5185\u79ef\uff08dot product\uff09\uff0c\u5f97\u5230\u7684scalar\u6570\u91cf\u4e0e\u8f93\u5165\u5411\u91cf\u4e2a\u6570\u76f8\u540c\uff0c\u90fd\u4e3a",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"b"),(0,m.kt)("mi",{parentName:"mrow"},"a"),(0,m.kt)("mi",{parentName:"mrow"},"t"),(0,m.kt)("mi",{parentName:"mrow"},"c"),(0,m.kt)("mi",{parentName:"mrow"},"h")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"batch")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6944em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"ba"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"t"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"c"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"h"))))),"\uff0c\u5373scores\u77e9\u9635\u7684\u5f62\u72b6\u5e94\u4e3a",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"b"),(0,m.kt)("mi",{parentName:"mrow"},"a"),(0,m.kt)("mi",{parentName:"mrow"},"t"),(0,m.kt)("mi",{parentName:"mrow"},"c"),(0,m.kt)("mi",{parentName:"mrow"},"h"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"b"),(0,m.kt)("mi",{parentName:"mrow"},"a"),(0,m.kt)("mi",{parentName:"mrow"},"t"),(0,m.kt)("mi",{parentName:"mrow"},"c"),(0,m.kt)("mi",{parentName:"mrow"},"h"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"(batch, batch)")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"ba"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"t"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"c"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"h"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"ba"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"t"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"c"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"h"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"))))),"\u3002"),(0,m.kt)("pre",null,(0,m.kt)("code",{parentName:"pre",className:"language-python"},'# compute raw self-attention scores\nscores = queries @ keys.T\nprint("attention scores:\\n", scores)\n')),(0,m.kt)("p",null,"\u6ce8\u610f\uff0c\u4ee3\u7801\u4e2d\u63d0\u4f9b\u7684\u662f\u8ba1\u7b97\u6240\u6709\u5411\u91cf\u7684\u6ce8\u610f\u529b\u5206\u6570\uff0c\u800c\u56fe\u4e2d\u6f14\u793a\u7684\u53ea\u662f\u8ba1\u7b97input #1\u7684\u6ce8\u610f\u529b\u5206\u6570\u3002"),(0,m.kt)("p",null,(0,m.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_imagesimage-20231106193506733.png",alt:"image-20231106193506733"})),(0,m.kt)("h4",{id:"\u5bf9\u6bcf\u4e00\u4e2a\u5411\u91cf\u8ba1\u7b97\u51fa\u7684\u6ce8\u610f\u529b\u5206\u6570\u505asoftmax"},"\u5bf9\u6bcf\u4e00\u4e2a\u5411\u91cf\u8ba1\u7b97\u51fa\u7684\u6ce8\u610f\u529b\u5206\u6570\u505asoftmax"),(0,m.kt)("pre",null,(0,m.kt)("code",{parentName:"pre",className:"language-python"},'# normalize the attention score\nscore_softmax = F.softmax(scores, dim=-1) # select the highest dimension\nprint("attention scores after normalization:\\n", score_softmax)\n')),(0,m.kt)("p",null,(0,m.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_imagesimage-20231106195231034.png",alt:"image-20231106195231034"})),(0,m.kt)("h4",{id:"\u5c06\u6ce8\u610f\u529b\u5206\u6570\u4e0e\u5bf9\u5e94\u7684value\u76f8\u4e58"},"\u5c06\u6ce8\u610f\u529b\u5206\u6570\u4e0e\u5bf9\u5e94\u7684value\u76f8\u4e58"),(0,m.kt)("p",null,"\u6bcf\u4e00\u4e2a\u8f93\u5165\u5411\u91cf\u5bf9\u6240\u6709",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"b"),(0,m.kt)("mi",{parentName:"mrow"},"a"),(0,m.kt)("mi",{parentName:"mrow"},"t"),(0,m.kt)("mi",{parentName:"mrow"},"c"),(0,m.kt)("mi",{parentName:"mrow"},"h")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"batch")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6944em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"ba"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"t"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"c"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"h"))))),"\u4e2a\u5411\u91cf\u8ba1\u7b97\u5f97\u5230\u7684\u6ce8\u610f\u529b\u5206\u6570\uff0c\u90fd\u8981\u4e0e\u5176\u5bf9\u5e94\u7684value\u5411\u91cf\u76f8\u4e58\uff0c\u8ba1\u7b97\u52a0\u6743\u7684\u6ce8\u610f\u529b\u5206\u6570\u3002\u6700\u7ec8\u7684\u6ce8\u610f\u529b\u5206\u6570\u77e9\u9635\u7684\u5f62\u72b6\u5e94\u4e3a",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"b"),(0,m.kt)("mi",{parentName:"mrow"},"a"),(0,m.kt)("mi",{parentName:"mrow"},"t"),(0,m.kt)("mi",{parentName:"mrow"},"c"),(0,m.kt)("mi",{parentName:"mrow"},"h"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"n"),(0,m.kt)("mi",{parentName:"mrow"},"u"),(0,m.kt)("mi",{parentName:"mrow"},"m"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"(batch, num)")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"ba"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"t"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"c"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"h"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"n"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"u"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"m"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"))))),"\u3002"),(0,m.kt)("pre",null,(0,m.kt)("code",{parentName:"pre",className:"language-python"},'# compute the weighted values by doting score_softmax with values\n# please be advised, this is dot product\nweighted_values = values[:, None] * score_softmax.T[:, :, None]\nprint("weighted scores: \\n", weighted_values)\n')),(0,m.kt)("p",null,(0,m.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_imagesimage-20231106195316815.png",alt:"image-20231106195316815"})),(0,m.kt)("h4",{id:"\u52a0\u6743\u6ce8\u610f\u529b\u5206\u6570\u6c42\u548c"},"\u52a0\u6743\u6ce8\u610f\u529b\u5206\u6570\u6c42\u548c"),(0,m.kt)("p",null,"\u6700\u540e\u4e00\u6b65\uff0c\u5bf9\u4e8e\u6bcf\u4e2a\u5411\u91cf\u5f97\u5230\u7684\u52a0\u6743\u6ce8\u610f\u529b\u5206\u6570\u8fdb\u884c\u6c42\u548c\uff0c\u5f97\u5230\u7ef4\u5ea6\u4e3a",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"n"),(0,m.kt)("mi",{parentName:"mrow"},"u"),(0,m.kt)("mi",{parentName:"mrow"},"m")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"num")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.4306em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"n"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"u"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"m"))))),"\u7684\u6ce8\u610f\u529b\u5206\u6570\u5411\u91cf\uff0c\u8003\u8651\u5230\u6709",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"b"),(0,m.kt)("mi",{parentName:"mrow"},"a"),(0,m.kt)("mi",{parentName:"mrow"},"t"),(0,m.kt)("mi",{parentName:"mrow"},"c"),(0,m.kt)("mi",{parentName:"mrow"},"h")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"batch")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6944em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"ba"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"t"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"c"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"h"))))),"\u4e2a\u8f93\u5165\u5411\u91cf\uff0c\u56e0\u6b64\u6700\u7ec8\u7684\u6ce8\u610f\u529b\u5206\u6570\u77e9\u9635\u7684\u5f62\u72b6\u4e3a",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"b"),(0,m.kt)("mi",{parentName:"mrow"},"a"),(0,m.kt)("mi",{parentName:"mrow"},"t"),(0,m.kt)("mi",{parentName:"mrow"},"c"),(0,m.kt)("mi",{parentName:"mrow"},"h"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"n"),(0,m.kt)("mi",{parentName:"mrow"},"u"),(0,m.kt)("mi",{parentName:"mrow"},"m"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"(batch, num)")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"ba"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"t"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"c"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"h"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"n"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"u"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"m"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"))))),"\u3002"),(0,m.kt)("p",null,"\u6839\u636e\u63a8\u5bfc\uff0c\u663e\u7136\uff0c\u6700\u7ec8",(0,m.kt)("strong",{parentName:"p"},"Self-Attention\u7684\u8f93\u51fa\u5411\u91cf\u7ef4\u5ea6\u4e0evalue\u5411\u91cf\u7684\u7ef4\u5ea6\u76f8\u540c\uff0c\u8f93\u51fa\u5411\u91cf\u7684\u6570\u91cf\u4e0e\u8f93\u5165\u5411\u91cf\u7684\u6570\u91cf\u76f8\u540c"),"\u3002"),(0,m.kt)("pre",null,(0,m.kt)("code",{parentName:"pre",className:"language-python"},"# compute outputs\noutputs = weighted_values.sum(dim=0)\n")),(0,m.kt)("p",null,(0,m.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_imagesimage-20231106200506260.png",alt:"image-20231106200506260"})),(0,m.kt)("h4",{id:"\u603b\u7ed3"},"\u603b\u7ed3"),(0,m.kt)("blockquote",null,(0,m.kt)("p",{parentName:"blockquote"},"As mentioned in the above paragraph, we don\u2019t only use dot product to find relevance. But we scale it as well by a factor of the square root of key dimension ",(0,m.kt)("strong",{parentName:"p"},"dk"),". This helps in making sure that the dot-products between query and key don\u2019t grow too large for ",(0,m.kt)("strong",{parentName:"p"},"dk"),". If the dot product becomes too large then the softmax output will be very small. To avoid this, we scale the dot product.")),(0,m.kt)("p",null,"\u5728\u8ba1\u7b97dot product\u540e\uff0c\u4e3a\u4e86\u907f\u514d\u70b9\u79ef\u8fd0\u7b97\u7ecf\u8fc7softmax\u540e\u7684\u8f93\u51fa\u592a\u5c0f\uff0c\u5728\u70b9\u79ef\u540e\u9664\u4ee5key\u5411\u91cf\u7ef4\u5ea6\u7684\u5e73\u65b9\u6839\u6765\u8fdb\u884c\u7f29\u653e\u3002"),(0,m.kt)("div",{className:"math math-display"},(0,m.kt)("span",{parentName:"div",className:"katex-display"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mtable",{parentName:"semantics",width:"100%"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mrow",{parentName:"mtd"},(0,m.kt)("mi",{parentName:"mrow"},"A"),(0,m.kt)("mi",{parentName:"mrow"},"t"),(0,m.kt)("mi",{parentName:"mrow"},"t"),(0,m.kt)("mi",{parentName:"mrow"},"e"),(0,m.kt)("mi",{parentName:"mrow"},"n"),(0,m.kt)("mi",{parentName:"mrow"},"t"),(0,m.kt)("mi",{parentName:"mrow"},"i"),(0,m.kt)("mi",{parentName:"mrow"},"o"),(0,m.kt)("mi",{parentName:"mrow"},"n"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"Q"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"K"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"V"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("mtext",{parentName:"mrow",mathvariant:"italic"},"softmax"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mfrac",{parentName:"mrow"},(0,m.kt)("mrow",{parentName:"mfrac"},(0,m.kt)("mi",{parentName:"mrow"},"Q"),(0,m.kt)("msup",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msup"},"K"),(0,m.kt)("mi",{parentName:"msup"},"T"))),(0,m.kt)("msqrt",{parentName:"mfrac"},(0,m.kt)("msub",{parentName:"msqrt"},(0,m.kt)("mi",{parentName:"msub"},"d"),(0,m.kt)("mi",{parentName:"msub"},"k")))),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mi",{parentName:"mrow"},"V"))),(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mtext",{parentName:"mtd"},"(1)")))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"Attention(Q,K,V)=\\textit{softmax}(\\frac{QK^T}{\\sqrt{d_k}})V \\tag{1}")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"A"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"tt"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"e"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"n"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"t"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"i"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"o"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"n"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"Q"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.07153em"}},"K"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.22222em"}},"V"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"="),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"2.4483em",verticalAlign:"-0.93em"}}),(0,m.kt)("span",{parentName:"span",className:"mord text"},(0,m.kt)("span",{parentName:"span",className:"mord textit"},"softmax")),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mopen nulldelimiter"}),(0,m.kt)("span",{parentName:"span",className:"mfrac"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.5183em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.2528em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord sqrt"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.8572em"}},(0,m.kt)("span",{parentName:"span",className:"svg-align",style:{top:"-3em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord",style:{paddingLeft:"0.833em"}},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"d"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3361em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.03148em"}},"k")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))))),(0,m.kt)("span",{parentName:"span",style:{top:"-2.8172em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"hide-tail",style:{minWidth:"0.853em",height:"1.08em"}},(0,m.kt)("svg",{parentName:"span",xmlns:"http://www.w3.org/2000/svg",width:"400em",height:"1.08em",viewBox:"0 0 400000 1080",preserveAspectRatio:"xMinYMin slice"},(0,m.kt)("path",{parentName:"svg",d:"M95,702\nc-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14\nc0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54\nc44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10\ns173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429\nc69,-144,104.5,-217.7,106.5,-221\nl0 -0\nc5.3,-9.3,12,-14,20,-14\nH400000v40H845.2724\ns-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7\nc-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z\nM834 80h400000v40h-400000z"}))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.1828em"}},(0,m.kt)("span",{parentName:"span"}))))))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.23em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"frac-line",style:{borderBottomWidth:"0.04em"}})),(0,m.kt)("span",{parentName:"span",style:{top:"-3.677em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"Q"),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.07153em"}},"K"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.8413em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-3.063em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.13889em"}},"T"))))))))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.93em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"mclose nulldelimiter"})),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.22222em"}},"V")),(0,m.kt)("span",{parentName:"span",className:"tag"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"2.4483em",verticalAlign:"-0.93em"}}),(0,m.kt)("span",{parentName:"span",className:"mord text"},(0,m.kt)("span",{parentName:"span",className:"mord"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"1")),(0,m.kt)("span",{parentName:"span",className:"mord"},")"))))))),(0,m.kt)("p",null,(0,m.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_images1*tfYD93-NrGOTr6LG2WH3bQ.png",alt:"img"})),(0,m.kt)("h4",{id:"\u5b8c\u6574\u4ee3\u7801"},"\u5b8c\u6574\u4ee3\u7801"),(0,m.kt)("pre",null,(0,m.kt)("code",{parentName:"pre",className:"language-python"},'# simple code for Self-Attention\nimport torch\nimport torch.nn.functional as F\nimport numpy as np\nimport matplotlib.pyplot as plot\n\n# define the input, which has the shape of (3, 4)\ninputs = [[1, 0, 1, 0], [0, 2, 0, 2], [1, 1, 1, 1]]\ninputs = torch.tensor(inputs, dtype=torch.float32)\n\n# initialize the weights for keys, queries and values\nw_key = torch.tensor([[0, 0, 1], [1, 1, 0], [0, 1, 0], [1, 1, 0]], dtype=torch.float32)\nw_query = torch.tensor([[1, 0, 1], [1, 0, 0], [0, 0, 1], [0, 1, 1]], dtype=torch.float32)\nw_value = torch.tensor([[0, 2, 0], [0, 3, 0], [1, 0, 3], [1, 1, 0]], dtype=torch.float32)\n\n# compute keys, queries and values\nkeys = inputs @ w_key\nqueries = inputs @ w_query\nvalues = inputs @ w_value\nprint("keys:\\n", keys) # (3, 3)\nprint("queries:\\n", queries) # (3, 3)\nprint("values:\\n", values) # (3, 3)\n\n# compute raw self-attention score\nscores = queries @ keys.T\nprint("attention scores:\\n", scores)\n\n# normalize the attention score\nscore_softmax = F.softmax(scores, dim=-1) # select the highest dimension\nprint("attention scores after normalization:\\n", score_softmax)\n\n# compute the weighted values by doting score_softmax with values\n# please be advised, this is dot product\nweighted_values = values[:, None] * score_softmax.T[:, :, None]\nprint("weighted scores: \\n", weighted_values)\n\n# compute outputs\noutputs = weighted_values.sum(dim=0)\n\n')),(0,m.kt)("h2",{id:"multi-head-self-attention"},"Multi-Head Self-Attention"),(0,m.kt)("p",null," \u591a\u5934\u81ea\u6ce8\u610f\u529b\u673a\u5236\u662f\u5bf9\u81ea\u6ce8\u610f\u529b\u673a\u5236\u7684\u6269\u5c55\uff0c\u5047\u8bbe\u6269\u5c55\u6210\u4e3a",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"n")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"n")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.4306em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"n")))))," -head self-attention\uff0c\u5219\u5bf9\u6bcf\u4e2a\u8f93\u5165\u5411\u91cf\u751f\u6210\u5bf9\u5e94\u7684key\uff0cquery\u548cvalue\u540e\uff0c\u518d\u6b21\u4f7f\u7528",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"n")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"n")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.4306em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"n"))))),"\u4e2a\u53ef\u5b66\u4e60\u7684\u6743\u91cd\u77e9\u9635\u751f\u6210",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"n")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"n")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.4306em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"n"))))),"\u4e2a\u4e0d\u540c\u7684",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"k"),(0,m.kt)("mi",{parentName:"mrow"},"e"),(0,m.kt)("msup",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msup"},"y"),(0,m.kt)("mn",{parentName:"msup"},"0")),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"."),(0,m.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"."),(0,m.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"."),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"k"),(0,m.kt)("mi",{parentName:"mrow"},"e"),(0,m.kt)("msup",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msup"},"y"),(0,m.kt)("mrow",{parentName:"msup"},(0,m.kt)("mi",{parentName:"mrow"},"n"),(0,m.kt)("mo",{parentName:"mrow"},"\u2212"),(0,m.kt)("mn",{parentName:"mrow"},"1")))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"key^{0}, ..., key^{n-1}")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1.0085em",verticalAlign:"-0.1944em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03148em"}},"k"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"e"),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"y"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.8141em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-3.063em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"0"))))))))),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"..."),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03148em"}},"k"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"e"),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"y"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.8141em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-3.063em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"n"),(0,m.kt)("span",{parentName:"span",className:"mbin mtight"},"\u2212"),(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"1"))))))))))))),",",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"q"),(0,m.kt)("mi",{parentName:"mrow"},"u"),(0,m.kt)("mi",{parentName:"mrow"},"e"),(0,m.kt)("mi",{parentName:"mrow"},"r"),(0,m.kt)("msup",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msup"},"y"),(0,m.kt)("mn",{parentName:"msup"},"0")),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"."),(0,m.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"."),(0,m.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"."),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"q"),(0,m.kt)("mi",{parentName:"mrow"},"u"),(0,m.kt)("mi",{parentName:"mrow"},"e"),(0,m.kt)("mi",{parentName:"mrow"},"r"),(0,m.kt)("msup",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msup"},"y"),(0,m.kt)("mrow",{parentName:"msup"},(0,m.kt)("mi",{parentName:"mrow"},"n"),(0,m.kt)("mo",{parentName:"mrow"},"\u2212"),(0,m.kt)("mn",{parentName:"mrow"},"1")))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"query^{0}, ..., query^{n-1}")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1.0085em",verticalAlign:"-0.1944em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"q"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"u"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02778em"}},"er"),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"y"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.8141em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-3.063em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"0"))))))))),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"..."),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"q"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"u"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02778em"}},"er"),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"y"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.8141em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-3.063em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"n"),(0,m.kt)("span",{parentName:"span",className:"mbin mtight"},"\u2212"),(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"1"))))))))))))),"\u4ee5\u53ca",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"v"),(0,m.kt)("mi",{parentName:"mrow"},"a"),(0,m.kt)("mi",{parentName:"mrow"},"l"),(0,m.kt)("mi",{parentName:"mrow"},"u"),(0,m.kt)("msup",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msup"},"e"),(0,m.kt)("mn",{parentName:"msup"},"0")),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"."),(0,m.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"."),(0,m.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"."),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"v"),(0,m.kt)("mi",{parentName:"mrow"},"a"),(0,m.kt)("mi",{parentName:"mrow"},"l"),(0,m.kt)("mi",{parentName:"mrow"},"u"),(0,m.kt)("msup",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msup"},"e"),(0,m.kt)("mrow",{parentName:"msup"},(0,m.kt)("mi",{parentName:"mrow"},"n"),(0,m.kt)("mo",{parentName:"mrow"},"\u2212"),(0,m.kt)("mn",{parentName:"mrow"},"1")))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"value^{0}, ..., value^{n-1}")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1.0085em",verticalAlign:"-0.1944em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"v"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"a"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.01968em"}},"l"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"u"),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"e"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.8141em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-3.063em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"0"))))))))),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"..."),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"v"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"a"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.01968em"}},"l"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"u"),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"e"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.8141em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-3.063em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"n"),(0,m.kt)("span",{parentName:"span",className:"mbin mtight"},"\u2212"),(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"1"))))))))))))),"\u3002"),(0,m.kt)("p",null,"\u5728\u8ba1\u7b97attention score\u65f6\uff0c\u4f7f\u7528\u6bcf\u4e00\u4e2aquery\u67e5\u8be2\u5bf9\u5e94\u7684key\uff0c\u5373",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"q"),(0,m.kt)("mi",{parentName:"mrow"},"u"),(0,m.kt)("mi",{parentName:"mrow"},"e"),(0,m.kt)("mi",{parentName:"mrow"},"r"),(0,m.kt)("msup",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msup"},"y"),(0,m.kt)("mn",{parentName:"msup"},"0"))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"query^{0}")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1.0085em",verticalAlign:"-0.1944em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"q"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"u"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02778em"}},"er"),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"y"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.8141em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-3.063em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"0"))))))))))))),"\u53ea\u4e0e\u5176\u4ed6\u6bcf\u4e00\u4e2a\u8f93\u5165\u5411\u91cf\u7684",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"k"),(0,m.kt)("mi",{parentName:"mrow"},"e"),(0,m.kt)("msup",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msup"},"y"),(0,m.kt)("mn",{parentName:"msup"},"0"))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"key^{0}")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1.0085em",verticalAlign:"-0.1944em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03148em"}},"k"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"e"),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"y"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.8141em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-3.063em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"0"))))))))))))),"\u505adot product\u3002"),(0,m.kt)("p",null,(0,m.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_imagesimage-20231114190847109.png",alt:"image-20231114190847109"})),(0,m.kt)("h2",{id:"self-attention\u4e0ecnn\u7684\u5bf9\u6bd4"},"Self-Attention\u4e0eCNN\u7684\u5bf9\u6bd4"),(0,m.kt)("p",null,"Self-Attention\u53ef\u4ee5\u770b\u4f5c\u662f\u590d\u6742\u5316\u7684CNN\uff0cCNN\u53ea\u80fd\u5728\u611f\u53d7\u91ce\u8303\u56f4\u5185\u8003\u8651\u4e0a\u4e0b\u6587\u4fe1\u606f\uff0c\u800cSelf-Attention\u53ef\u4ee5\u81ea\u5df1\u5b66\u4e60\u611f\u53d7\u91ce\u3002"),(0,m.kt)("p",null,(0,m.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_imagesimage-20231114191518095.png",alt:"image-20231114191518095"})))}k.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/en/assets/js/092909c8.fef9391a.js b/en/assets/js/092909c8.fef9391a.js new file mode 100644 index 000000000..3d3eeea6a --- /dev/null +++ b/en/assets/js/092909c8.fef9391a.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunknpy_notebook=self.webpackChunknpy_notebook||[]).push([[962],{3905:(a,e,t)=>{t.d(e,{Zo:()=>l,kt:()=>h});var n=t(7294);function r(a,e,t){return e in a?Object.defineProperty(a,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):a[e]=t,a}function s(a,e){var t=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable}))),t.push.apply(t,n)}return t}function m(a){for(var e=1;e=0||(r[t]=a[t]);return r}(a,e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(a);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(a,t)&&(r[t]=a[t])}return r}var i=n.createContext({}),o=function(a){var e=n.useContext(i),t=e;return a&&(t="function"==typeof a?a(e):m(m({},e),a)),t},l=function(a){var e=o(a.components);return n.createElement(i.Provider,{value:e},a.children)},c="mdxType",N={inlineCode:"code",wrapper:function(a){var e=a.children;return n.createElement(n.Fragment,{},e)}},k=n.forwardRef((function(a,e){var t=a.components,r=a.mdxType,s=a.originalType,i=a.parentName,l=p(a,["components","mdxType","originalType","parentName"]),c=o(t),k=r,h=c["".concat(i,".").concat(k)]||c[k]||N[k]||s;return t?n.createElement(h,m(m({ref:e},l),{},{components:t})):n.createElement(h,m({ref:e},l))}));function h(a,e){var t=arguments,r=e&&e.mdxType;if("string"==typeof a||r){var s=t.length,m=new Array(s);m[0]=k;var p={};for(var i in e)hasOwnProperty.call(e,i)&&(p[i]=e[i]);p.originalType=a,p[c]="string"==typeof a?a:r,m[1]=p;for(var o=2;o{t.r(e),t.d(e,{assets:()=>i,contentTitle:()=>m,default:()=>N,frontMatter:()=>s,metadata:()=>p,toc:()=>o});var n=t(7462),r=(t(7294),t(3905));const s={},m="\u4e00\u7ef4\u524d\u7f00\u548c\uff08\u5237\u51fa\u4e00\u9053\u5899\uff09",p={unversionedId:"Algorithms/\u9898\u89e3/\u4e00\u7ef4\u524d\u7f00\u548c\uff08\u5237\u51fa\u4e00\u9053\u5899\uff09",id:"Algorithms/\u9898\u89e3/\u4e00\u7ef4\u524d\u7f00\u548c\uff08\u5237\u51fa\u4e00\u9053\u5899\uff09",title:"\u4e00\u7ef4\u524d\u7f00\u548c\uff08\u5237\u51fa\u4e00\u9053\u5899\uff09",description:"\u5728\u4e00\u9762\u5f88\u957f\u7684\u5899\u58c1\u4e0a\uff0c\u5de5\u4eba\u4eec\u7528\u4e0d\u540c\u7684\u6cb9\u6f06\u53bb\u5237\u5899\uff0c\u7136\u800c\u53ef\u80fd\u6709\u4e9b\u5730\u65b9\u5237\u8fc7\u4ee5\u540e\u89c9\u5f97\u4e0d\u597d\u770b\uff0c\u4ed6\u4eec\u4f1a\u91cd\u65b0\u5237\u4e00\u4e0b\u3002\u6709\u4e9b\u90e8\u5206\u56e0\u4e3a\u91cd\u590d\u5237\u4e86\u5f88\u591a\u6b21\u8986\u76d6\u4e86\u5f88\u591a\u5c42\u6cb9\u6f06\uff0c\u5c0f\u8bfa\u5f88\u597d\u5947\u90a3\u4e9b\u5730\u65b9\u88ab\u5237\u8fc7\u591a\u5c11\u79cd\u989c\u8272\u7684\u6cb9\u6f06\u3002",source:"@site/docs/Algorithms/4-\u9898\u89e3/\u4e00\u7ef4\u524d\u7f00\u548c\uff08\u5237\u51fa\u4e00\u9053\u5899\uff09.md",sourceDirName:"Algorithms/4-\u9898\u89e3",slug:"/Algorithms/\u9898\u89e3/\u4e00\u7ef4\u524d\u7f00\u548c\uff08\u5237\u51fa\u4e00\u9053\u5899\uff09",permalink:"/en/docs/Algorithms/\u9898\u89e3/\u4e00\u7ef4\u524d\u7f00\u548c\uff08\u5237\u51fa\u4e00\u9053\u5899\uff09",draft:!1,tags:[],version:"current",frontMatter:{},sidebar:"algorithms",previous:{title:"\u673a\u8bd5\u6280\u5de7\u4e0eSTL",permalink:"/en/docs/Algorithms/\u673a\u8bd5\u6280\u5de7\u4e0eSTL"},next:{title:"\u53cd\u5e8f\u8f93\u51fa",permalink:"/en/docs/Algorithms/\u9898\u89e3/\u53cd\u5e8f\u8f93\u51fa"}},i={},o=[{value:"\u53c2\u8003\u4ee3\u7801",id:"\u53c2\u8003\u4ee3\u7801",level:2},{value:"\u9898\u89e3",id:"\u9898\u89e3",level:2}],l={toc:o},c="wrapper";function N(a){let{components:e,...t}=a;return(0,r.kt)(c,(0,n.Z)({},l,t,{components:e,mdxType:"MDXLayout"}),(0,r.kt)("h1",{id:"\u4e00\u7ef4\u524d\u7f00\u548c\u5237\u51fa\u4e00\u9053\u5899"},"\u4e00\u7ef4\u524d\u7f00\u548c\uff08\u5237\u51fa\u4e00\u9053\u5899\uff09"),(0,r.kt)("admonition",{type:"tip"},(0,r.kt)("p",{parentName:"admonition"},"\u5728\u4e00\u9762\u5f88\u957f\u7684\u5899\u58c1\u4e0a\uff0c\u5de5\u4eba\u4eec\u7528\u4e0d\u540c\u7684\u6cb9\u6f06\u53bb\u5237\u5899\uff0c\u7136\u800c\u53ef\u80fd\u6709\u4e9b\u5730\u65b9\u5237\u8fc7\u4ee5\u540e\u89c9\u5f97\u4e0d\u597d\u770b\uff0c\u4ed6\u4eec\u4f1a\u91cd\u65b0\u5237\u4e00\u4e0b\u3002\u6709\u4e9b\u90e8\u5206\u56e0\u4e3a\u91cd\u590d\u5237\u4e86\u5f88\u591a\u6b21\u8986\u76d6\u4e86\u5f88\u591a\u5c42\u6cb9\u6f06\uff0c\u5c0f\u8bfa\u5f88\u597d\u5947\u90a3\u4e9b\u5730\u65b9\u88ab\u5237\u8fc7\u591a\u5c11\u79cd\u989c\u8272\u7684\u6cb9\u6f06\u3002"),(0,r.kt)("p",{parentName:"admonition"},"\u8f93\u5165\u63cf\u8ff0\uff1a"),(0,r.kt)("pre",{parentName:"admonition"},(0,r.kt)("code",{parentName:"pre"},"\u82e5\u5e72\u884c\u8f93\u5165\uff0c\u6bcf\u884c\u4e24\u4e2a\u6570\u5b57B[i],E[i](0<=B[i]<=E[i]<=200000)\u8868\u793a\u8fd9\u6b21\u5237\u7684\u5899\u58c1\u662f\u54ea\u4e00\u6bb5\n\uff08\u5047\u8bbe\u6bcf\u6b21\u5237\u7684\u65f6\u5019\u6cb9\u6f06\u989c\u8272\u90fd\u548c\u4e4b\u524d\u7684\u4e0d\u540c\uff09\uff0c\u4ee50 0\u7ed3\u675f\n\u53c8\u82e5\u5e72\u884c\u8f93\u5165\uff0c\u6bcf\u884c\u4e24\u4e2a\u6570\u5b57begin[i],end[i]\uff080<=begin[i]<=end[i]<=200000\uff09\u8868\u793a\u5c0f\u8bfa\u8be2\u95ee\u7684\u6bb5\uff0c\n\u4ee50 0\u7ed3\u675f\n")),(0,r.kt)("p",{parentName:"admonition"},"\u8f93\u51fa\u63cf\u8ff0:"),(0,r.kt)("pre",{parentName:"admonition"},(0,r.kt)("code",{parentName:"pre"},"\u5bf9\u4e8e\u6bcf\u4e2a\u5c0f\u8bfa\u7684\u8be2\u95ee\u8f93\u51fa(end[i]-begin[i]+1)\u884c,\u8868\u793a\u5bf9\u5e94\u8be2\u95ee\u6bb5\u7684\u6bcf\u4e2a\u70b9\u88ab\u591a\u5c11\u79cd\u989c\u8272\u7684\u6cb9\u6f06\u8986\u76d6\u8fc7\u3002\n"))),(0,r.kt)("h2",{id:"\u53c2\u8003\u4ee3\u7801"},"\u53c2\u8003\u4ee3\u7801"),(0,r.kt)("pre",null,(0,r.kt)("code",{parentName:"pre",className:"language-c++"},'#include \n\nusing namespace std;\n\nint main()\n{\n vector colors(200001, 0);\n\n int B, E;\n while (scanf("%d %d", &B, &E))\n {\n if (B == 0 && E == 0)\n {\n break;\n }\n colors[B]++; // \u5237\u5899\u8d77\u70b9\u6807\u8bb0\n colors[E + 1]--; // \u5237\u5899\u7ec8\u70b9\u6807\u8bb0\n }\n\n // \u8ba1\u7b97\u524d\u7f00\u548c\n for (int i = 1; i < colors.size(); i++)\n {\n colors[i] += colors[i - 1];\n }\n\n int begin, end;\n while (scanf("%d %d", &begin, &end))\n {\n if (begin == 0 && end == 0)\n {\n break;\n }\n for (int i = begin; i <= end; i++)\n {\n printf("%d\\n", colors[i]);\n }\n }\n\n return 0;\n}\n\n')),(0,r.kt)("h2",{id:"\u9898\u89e3"},"\u9898\u89e3"),(0,r.kt)("p",null,"\u4f7f\u7528",(0,r.kt)("strong",{parentName:"p"},"\u524d\u7f00\u548c"),"\u601d\u60f3\u7b80\u5316\u65f6\u95f4\u590d\u6742\u5ea6\uff0c\u8bbe\u8ba1\u524d\u7f00\u548c\u6570\u7ec4\uff0c\u4f7f\u8f93\u51fa\u7684\u6570\u7ec4\u4e2d\u5143\u7d20\u7684\u503c\u4ee3\u8868\u5176\u5bf9\u5e94\u8282\u70b9\u88ab\u5237\u7684\u6b21\u6570\u3002"),(0,r.kt)("p",null,"\u9996\u5148\u521d\u59cb\u5316\u524d\u7f00\u548c\u6570\u7ec4\uff0c\u4f7f\u6bcf\u4e00\u4e2a\u5143\u7d20\u7b49\u4e8e\u4e3a0\u3002"),(0,r.kt)("p",null,"\u8be5\u9898\u7684",(0,r.kt)("strong",{parentName:"p"},"\u5de7\u5999\u4e4b\u5904"),"\u5c31\u5728\u4e8e\uff1a\u5bf9\u4e8e\u6bcf\u4e00\u4e2a\u8f93\u5165\u7684\u7d22\u5f15B\u4e0eE\uff0cB\u4f5c\u4e3a\u5f00\u59cb\u5237\u7684\u8282\u70b9\u7d22\u5f15\u4ee4\u524d\u7f00\u548c\u6570\u7ec4\u4e2d\u5bf9\u5e94\u5143\u7d20\u7684\u503c",(0,r.kt)("span",{parentName:"p",className:"math math-inline"},(0,r.kt)("span",{parentName:"span",className:"katex"},(0,r.kt)("span",{parentName:"span",className:"katex-mathml"},(0,r.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,r.kt)("semantics",{parentName:"math"},(0,r.kt)("mrow",{parentName:"semantics"},(0,r.kt)("mo",{parentName:"mrow"},"+"),(0,r.kt)("mn",{parentName:"mrow"},"1")),(0,r.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"+1")))),(0,r.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,r.kt)("span",{parentName:"span",className:"base"},(0,r.kt)("span",{parentName:"span",className:"strut",style:{height:"0.7278em",verticalAlign:"-0.0833em"}}),(0,r.kt)("span",{parentName:"span",className:"mord"},"+"),(0,r.kt)("span",{parentName:"span",className:"mord"},"1"))))),"\uff0cE+1\u4f5c\u4e3a\u5237\u5899\u7ed3\u675f\u7684\u4e0b\u4e00\u4e2a\u8282\u70b9\u7684\u7d22\u5f15\u4ee4\u5bf9\u5e94\u7684\u503c",(0,r.kt)("span",{parentName:"p",className:"math math-inline"},(0,r.kt)("span",{parentName:"span",className:"katex"},(0,r.kt)("span",{parentName:"span",className:"katex-mathml"},(0,r.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,r.kt)("semantics",{parentName:"math"},(0,r.kt)("mrow",{parentName:"semantics"},(0,r.kt)("mo",{parentName:"mrow"},"\u2212"),(0,r.kt)("mn",{parentName:"mrow"},"1")),(0,r.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"-1")))),(0,r.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,r.kt)("span",{parentName:"span",className:"base"},(0,r.kt)("span",{parentName:"span",className:"strut",style:{height:"0.7278em",verticalAlign:"-0.0833em"}}),(0,r.kt)("span",{parentName:"span",className:"mord"},"\u2212"),(0,r.kt)("span",{parentName:"span",className:"mord"},"1"))))),"\u3002\u8fd9\u6837\u5728\u6240\u6709\u8f93\u5165\u7ed3\u675f\u540e\u7684\u8ba1\u7b97\u524d\u7f00\u548c\u9636\u6bb5\uff0c\u5728\u6bcf\u4e00\u4e2a\u503c\u4e3a",(0,r.kt)("span",{parentName:"p",className:"math math-inline"},(0,r.kt)("span",{parentName:"span",className:"katex"},(0,r.kt)("span",{parentName:"span",className:"katex-mathml"},(0,r.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,r.kt)("semantics",{parentName:"math"},(0,r.kt)("mrow",{parentName:"semantics"},(0,r.kt)("mo",{parentName:"mrow",stretchy:"false"},"["),(0,r.kt)("mn",{parentName:"mrow"},"1"),(0,r.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,r.kt)("mo",{parentName:"mrow"},"\u2212"),(0,r.kt)("mn",{parentName:"mrow"},"1"),(0,r.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,r.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"[1, -1)")))),(0,r.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,r.kt)("span",{parentName:"span",className:"base"},(0,r.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,r.kt)("span",{parentName:"span",className:"mopen"},"["),(0,r.kt)("span",{parentName:"span",className:"mord"},"1"),(0,r.kt)("span",{parentName:"span",className:"mpunct"},","),(0,r.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,r.kt)("span",{parentName:"span",className:"mord"},"\u2212"),(0,r.kt)("span",{parentName:"span",className:"mord"},"1"),(0,r.kt)("span",{parentName:"span",className:"mclose"},")"))))),"\u7684\u7d22\u5f15\u533a\u95f4\u4e2d\u7684\u5143\u7d20\u503c\u90fd\u4f1a\u52a01\uff0c\u800c\u5bf9\u4e8e\u67d0\u6b21\u5237\u6f06\u7ec8\u70b9E\u7684\u4e0b\u4e00\u4e2a\u7d22\u5f15\u4e3aE+1\u7684\u5143\u7d20\u503c\u7531\u4e8e",(0,r.kt)("span",{parentName:"p",className:"math math-inline"},(0,r.kt)("span",{parentName:"span",className:"katex"},(0,r.kt)("span",{parentName:"span",className:"katex-mathml"},(0,r.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,r.kt)("semantics",{parentName:"math"},(0,r.kt)("mrow",{parentName:"semantics"},(0,r.kt)("mo",{parentName:"mrow"},"\u2212"),(0,r.kt)("mn",{parentName:"mrow"},"1")),(0,r.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"-1")))),(0,r.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,r.kt)("span",{parentName:"span",className:"base"},(0,r.kt)("span",{parentName:"span",className:"strut",style:{height:"0.7278em",verticalAlign:"-0.0833em"}}),(0,r.kt)("span",{parentName:"span",className:"mord"},"\u2212"),(0,r.kt)("span",{parentName:"span",className:"mord"},"1"))))),"\u800c\u62b5\u6d88\u5f71\u54cd\uff08\u81ea\u8eab\u503c\u4e3a",(0,r.kt)("span",{parentName:"p",className:"math math-inline"},(0,r.kt)("span",{parentName:"span",className:"katex"},(0,r.kt)("span",{parentName:"span",className:"katex-mathml"},(0,r.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,r.kt)("semantics",{parentName:"math"},(0,r.kt)("mrow",{parentName:"semantics"},(0,r.kt)("mo",{parentName:"mrow"},"\u2212"),(0,r.kt)("mn",{parentName:"mrow"},"1")),(0,r.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"-1")))),(0,r.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,r.kt)("span",{parentName:"span",className:"base"},(0,r.kt)("span",{parentName:"span",className:"strut",style:{height:"0.7278em",verticalAlign:"-0.0833em"}}),(0,r.kt)("span",{parentName:"span",className:"mord"},"\u2212"),(0,r.kt)("span",{parentName:"span",className:"mord"},"1"))))),"\u52a0\u4e0a\u4e4b\u524d\u5143\u7d20\u6240\u7d2f\u79ef\u76841\u800c\u5f52\u96f6\uff09\uff0c\u6b64\u65f6\u6570\u7ec4\u4e2d\u5143\u7d20\u7684\u503c\u624d\u4ee3\u8868\u5176\u5bf9\u5e94\u8282\u70b9\u88ab\u5237\u7684\u6b21\u6570\u3002"),(0,r.kt)("p",null,"\u5173\u4e8e",(0,r.kt)("strong",{parentName:"p"},"\u8d85\u65f6"),'\uff0c\u53ef\u4ee5\u5728\u51fd\u6570\u4e2d\u52a0\u5165\u4ee5\u4e0b\u4ee3\u7801\u6d88\u9664\u6d41\u64cd\u4f5c\u7684\u7f13\u51b2\u533a\uff0c\u5e76\u4f7f\u7528"\\n"\u4ee3\u66ffendl\u3002'),(0,r.kt)("pre",null,(0,r.kt)("code",{parentName:"pre",className:"language-c++"},"ios::sync_with_stdio(false);\n")))}N.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/en/assets/js/0ed19e66.50b86812.js b/en/assets/js/0ed19e66.50b86812.js new file mode 100644 index 000000000..935f120a8 --- /dev/null +++ b/en/assets/js/0ed19e66.50b86812.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunknpy_notebook=self.webpackChunknpy_notebook||[]).push([[8770],{3905:(a,e,t)=>{t.d(e,{Zo:()=>i,kt:()=>o});var s=t(7294);function n(a,e,t){return e in a?Object.defineProperty(a,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):a[e]=t,a}function m(a,e){var t=Object.keys(a);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(a);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable}))),t.push.apply(t,s)}return t}function p(a){for(var e=1;e=0||(n[t]=a[t]);return n}(a,e);if(Object.getOwnPropertySymbols){var m=Object.getOwnPropertySymbols(a);for(s=0;s=0||Object.prototype.propertyIsEnumerable.call(a,t)&&(n[t]=a[t])}return n}var N=s.createContext({}),l=function(a){var e=s.useContext(N),t=e;return a&&(t="function"==typeof a?a(e):p(p({},e),a)),t},i=function(a){var e=l(a.components);return s.createElement(N.Provider,{value:e},a.children)},k="mdxType",c={inlineCode:"code",wrapper:function(a){var e=a.children;return s.createElement(s.Fragment,{},e)}},h=s.forwardRef((function(a,e){var t=a.components,n=a.mdxType,m=a.originalType,N=a.parentName,i=r(a,["components","mdxType","originalType","parentName"]),k=l(t),h=n,o=k["".concat(N,".").concat(h)]||k[h]||c[h]||m;return t?s.createElement(o,p(p({ref:e},i),{},{components:t})):s.createElement(o,p({ref:e},i))}));function o(a,e){var t=arguments,n=e&&e.mdxType;if("string"==typeof a||n){var m=t.length,p=new Array(m);p[0]=h;var r={};for(var N in e)hasOwnProperty.call(e,N)&&(r[N]=e[N]);r.originalType=a,r[k]="string"==typeof a?a:n,p[1]=r;for(var l=2;l{t.r(e),t.d(e,{assets:()=>N,contentTitle:()=>p,default:()=>c,frontMatter:()=>m,metadata:()=>r,toc:()=>l});var s=t(7462),n=(t(7294),t(3905));const m={},p="\u6269\u6563\u6a21\u578b\uff08Diffusion Model\uff09",r={unversionedId:"Deep-Learning/\u5927\u6a21\u578b/Diffusion-Model",id:"Deep-Learning/\u5927\u6a21\u578b/Diffusion-Model",title:"\u6269\u6563\u6a21\u578b\uff08Diffusion Model\uff09",description:"\u5728\u4ee5\u524d\u7684\u6587\u7ae0\u56fe\u50cf\u751f\u6210\u6a21\u578b\u4e2d\u5df2\u7ecf\u5927\u6982\u4ecb\u7ecd\u4e86\u76ee\u524dSOTA\u7684\u56fe\u50cf\u751f\u6210\u6a21\u578b\u7684\u5171\u540c\u70b9\uff0c\u5e76\u521d\u6b65\u4e86\u89e3\u4e86Diffusion Model\uff0c\u5728\u8fd9\u7bc7\u6587\u7ae0\u4e2d\u5c06\u8be6\u7ec6\u8bb2\u89e3\u6269\u6563\u6a21\u578b\u7684\u6570\u5b66\u539f\u7406\u7b49\u3002",source:"@site/docs/Deep-Learning/5-\u5927\u6a21\u578b/6-Diffusion-Model.md",sourceDirName:"Deep-Learning/5-\u5927\u6a21\u578b",slug:"/Deep-Learning/\u5927\u6a21\u578b/Diffusion-Model",permalink:"/en/docs/Deep-Learning/\u5927\u6a21\u578b/Diffusion-Model",draft:!1,tags:[],version:"current",sidebarPosition:6,frontMatter:{},sidebar:"deep_learning",previous:{title:"\u751f\u6210\u5f0f\u5bf9\u6297\u7f51\u7edc\uff08GAN\uff09",permalink:"/en/docs/Deep-Learning/\u5927\u6a21\u578b/GAN"},next:{title:"\u672c\u79d1\u6bd5\u4e1a\u8bba\u6587\uff1a\u57fa\u4e8e Prompt Learning \u7684\u89c6\u89c9-\u8bed\u8a00\u5927\u6a21\u578b\u5728\u56fe\u50cf\u751f\u6210\u4e2d\u7684\u5e94\u7528\u4e0e\u7814\u7a76",permalink:"/en/docs/Deep-Learning/\u5927\u6a21\u578b/Prompt Learning/Undergraduate-Dissertation"}},N={},l=[{value:"\u57fa\u672c\u6982\u5ff5",id:"\u57fa\u672c\u6982\u5ff5",level:2},{value:"\u8bad\u7ec3\u8fc7\u7a0b",id:"\u8bad\u7ec3\u8fc7\u7a0b",level:3},{value:"\u63a8\u7406\u8fc7\u7a0b",id:"\u63a8\u7406\u8fc7\u7a0b",level:3}],i={toc:l},k="wrapper";function c(a){let{components:e,...t}=a;return(0,n.kt)(k,(0,s.Z)({},i,t,{components:e,mdxType:"MDXLayout"}),(0,n.kt)("h1",{id:"\u6269\u6563\u6a21\u578bdiffusion-model"},"\u6269\u6563\u6a21\u578b\uff08Diffusion Model\uff09"),(0,n.kt)("admonition",{type:"tip"},(0,n.kt)("p",{parentName:"admonition"},"\u5728\u4ee5\u524d\u7684\u6587\u7ae0",(0,n.kt)("a",{parentName:"p",href:"/en/docs/Deep-Learning/%E5%A4%A7%E6%A8%A1%E5%9E%8B/Image-Generation-Models"},"\u56fe\u50cf\u751f\u6210\u6a21\u578b"),"\u4e2d\u5df2\u7ecf\u5927\u6982\u4ecb\u7ecd\u4e86\u76ee\u524dSOTA\u7684\u56fe\u50cf\u751f\u6210\u6a21\u578b\u7684\u5171\u540c\u70b9\uff0c\u5e76\u521d\u6b65\u4e86\u89e3\u4e86Diffusion Model\uff0c\u5728\u8fd9\u7bc7\u6587\u7ae0\u4e2d\u5c06\u8be6\u7ec6\u8bb2\u89e3\u6269\u6563\u6a21\u578b\u7684\u6570\u5b66\u539f\u7406\u7b49\u3002")),(0,n.kt)("h2",{id:"\u57fa\u672c\u6982\u5ff5"},"\u57fa\u672c\u6982\u5ff5"),(0,n.kt)("p",null,"\u9996\u5148\u56de\u987e\u4e00\u4e0b\u6269\u6563\u6a21\u578b\u7684\u57fa\u672c\u6982\u5ff5\u548c\u751f\u6210\u8fc7\u7a0b\uff0c\u53ef\u4ee5\u5927\u6982\u5206\u4e3a\u4e24\u6b65\uff1a"),(0,n.kt)("ol",null,(0,n.kt)("li",{parentName:"ol"},(0,n.kt)("p",{parentName:"li"},"Forward Process\uff1a\u5bf9\u8bad\u7ec3\u96c6\u4e2d\u7684\u56fe\u7247\u4e0d\u65ad\u52a0\u5165\u4e0e\u56fe\u7247shape\u76f8\u540c\u7684\u3001\u4ece\u67d0\u968f\u673a\u5206\u5e03\u4e2dsample\u51fa\u7684\u566a\u58f0\uff0c\u76f4\u81f3\u56fe\u7247\u53ef\u4ee5\u88ab\u8ba4\u4e3a\u662f\u4ece\u8be5\u968f\u673a\u5206\u5e03\u4e2dsample\u51fa\u7684\u77e9\u9635\u3002"),(0,n.kt)("p",{parentName:"li"},"Forward Process\u53c8\u53eb\u505aDiffusion Process\uff0c\u5728\u8fd9\u4e00\u6b65\u4e2d\u4ea7\u751f\u7684\u566a\u58f0-\u52a0\u5165\u566a\u58f0\u7684\u56fe\u50cf\u5bf9\u53ef\u4ee5\u7528\u6765\u8bad\u7ec3Noise Predictor\uff0c\u5373\u4ece\u6709\u566a\u58f0\u7684\u56fe\u50cf\u4e2d\u9884\u6d4b\u51fa\u5176\u4e2d\u7684\u566a\u58f0\uff0c\u518d\u4ece\u8f93\u5165\u4e2d\u51cf\u53bb\u566a\u58f0\u5f97\u5230\u964d\u566a\u540e\u7684\u56fe\u7247\u3002"),(0,n.kt)("admonition",{parentName:"li",title:"\u56fe\u50cf\u751f\u6210\u7684\u539f\u7406",type:"important"},(0,n.kt)("p",{parentName:"admonition"},"\u8fd9\u4e00\u6b65\u7684\u76ee\u7684\u4e5f\u540c\u6837\u5728\u4e4b\u524d\u7684\u6587\u7ae0",(0,n.kt)("a",{parentName:"p",href:"/en/docs/Deep-Learning/%E5%A4%A7%E6%A8%A1%E5%9E%8B/Image-Generation-Models"},"\u56fe\u50cf\u751f\u6210\u6a21\u578b"),"\u4e2d\u63d0\u5230\u8fc7\uff1a\u7531\u4e8e\u6839\u636e\u6587\u5b57prompt\u671f\u5f85\u751f\u6210\u7684\u56fe\u50cf\u5e76\u4e0d\u662f\u56fa\u5b9a\u7684\uff0c\u53ef\u4ee5\u8ba4\u4e3a\u751f\u6210\u7684\u56fe\u7247\u5728\u76ee\u6807\u57df\uff08Target Domain\uff09\u7b26\u5408\u67d0\u79cd\u5206\u5e03\u3002\u56e0\u6b64\u76ee\u524d\u7684SOTA\u6a21\u578b\u9664\u4e86\u5c06\u6587\u5b57prompt\u4f5c\u4e3a\u8f93\u5165\uff0c\u8fd8\u4ece\u67d0\u968f\u673a\u5206\u5e03\u4e2dsample\u51fa\u56fe\u7247shape\u7684\u968f\u673a\u5411\u91cf\uff08\u77e9\u9635\uff09\u4f5c\u4e3a\u8f93\u5165\uff0c\u671f\u5f85\u6a21\u578b\u6839\u636eprompt\u5c06\u6e90\u57df\uff08Source Domain\uff09\u8f93\u5165\u7684\u968f\u673a\u5411\u91cf\u6620\u5c04\u5230\u76ee\u6807\u57df\u7684\u5206\u5e03\uff0c\u751f\u6210\u5bf9\u5e94\u7684\u56fe\u7247\u3002"))),(0,n.kt)("li",{parentName:"ol"},(0,n.kt)("p",{parentName:"li"},"Reverse Process\uff1a\u4f7f\u7528Diffusion Process\u8bad\u7ec3\u7684Noise Predictor\uff0c\u6839\u636e\u6587\u5b57Prompt\u5bf9\u4ece\u968f\u673a\u5206\u5e03\u4e2dsample\u51fa\u7684\u56fe\u7247\u5927\u5c0f\u7684\u566a\u58f0\u56fe\u7247\u8fdb\u884c\u964d\u566a\uff0c\u5f97\u5230\u539f\u56fe\u3002"))),(0,n.kt)("p",null,(0,n.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_imagesimage-20231202192659531.png",alt:"image-20231202192659531"})),(0,n.kt)("p",null,"\u503c\u5f97\u6ce8\u610f\u7684\u662f\uff0c\u53d8\u5206\u81ea\u7f16\u7801\u5668\uff08Variational Auto-Encoder, abbr. VAE\uff09\u4e0eDiffusion Model\u975e\u5e38\u76f8\u4f3c\uff1aVAE\u5bf9\u8bad\u7ec3\u96c6\u4e2d\u7684\u539f\u59cb\u56fe\u50cf\u4f7f\u7528Encoder\u5c06\u5176\u53d8\u6362\u4e3a\u67d0\u79cdLatent Representation\uff0c\u8fd9\u79cdLatent Representation\u7684\u5206\u5e03\u4e5f\u662f\u7b26\u5408\u67d0\u79cd\u968f\u673a\u5206\u5e03\u7684\uff0cVAE\u518d\u901a\u8fc7Decoder\u5c06\u671f\u5f85\u751f\u6210\u7684\u76ee\u6807\u57df\u56fe\u50cf\u8fd8\u539f\u51fa\u6765\u3002"),(0,n.kt)("p",null,(0,n.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_imagesimage-20231202222644684.png",alt:"image-20231202222644684"})),(0,n.kt)("p",null,"\u5728\u4e0b\u9762\u7684\u6587\u7ae0\u4e2d\u6211\u4eec\u4e5f\u4f1a\u5b66\u4e60\u4e00\u4e0bVAE\u7684\u6570\u5b66\u539f\u7406\uff0c\u4eceVAE\u5230Diffusion Model\u7684\u5177\u4f53\u6570\u5b66\u63a8\u5bfc\uff0c\u53ef\u4ee5\u53c2\u8003\u80e1\u8001\u5e08\u63a8\u8350\u7684\u8bba\u6587",(0,n.kt)("a",{parentName:"p",href:"https://arxiv.org/abs/2208.11970"},"Understanding Diffusion Models: A Unified Perspective"),"\u3002"),(0,n.kt)("p",null,"\u4e0b\u9762\u6211\u4eec\u4ee5",(0,n.kt)("a",{parentName:"p",href:"https://arxiv.org/pdf/2006.11239.pdf"},"DDPM\u8bba\u6587"),"\u4e2d\u7684\u539f\u56fe\u6765\u5206\u6790DDPM\u7684\u8bad\u7ec3\u4e0e\u63a8\u7406\u8fc7\u7a0b\u3002"),(0,n.kt)("p",null,(0,n.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_imagesimage-20231202232526449.png",alt:"image-20231202232526449"})),(0,n.kt)("h3",{id:"\u8bad\u7ec3\u8fc7\u7a0b"},"\u8bad\u7ec3\u8fc7\u7a0b"),(0,n.kt)("ol",null,(0,n.kt)("li",{parentName:"ol"},(0,n.kt)("p",{parentName:"li"},"\u5faa\u73af\u5f00\u59cb\uff0c\u91cd\u590d\u4ee5\u4e0b\u6b65\u9aa4\uff1b")),(0,n.kt)("li",{parentName:"ol"},(0,n.kt)("p",{parentName:"li"},"\u9996\u5148\u4ece\u6570\u636e\u96c6\u4e2dsample\u51fa\u539f\u59cb\u56fe\u50cf",(0,n.kt)("span",{parentName:"p",className:"math math-inline"},(0,n.kt)("span",{parentName:"span",className:"katex"},(0,n.kt)("span",{parentName:"span",className:"katex-mathml"},(0,n.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,n.kt)("semantics",{parentName:"math"},(0,n.kt)("mrow",{parentName:"semantics"},(0,n.kt)("msub",{parentName:"mrow"},(0,n.kt)("mi",{parentName:"msub",mathvariant:"bold"},"x"),(0,n.kt)("mn",{parentName:"msub"},"0"))),(0,n.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"\\mathbf{x}_0")))),(0,n.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,n.kt)("span",{parentName:"span",className:"base"},(0,n.kt)("span",{parentName:"span",className:"strut",style:{height:"0.5944em",verticalAlign:"-0.15em"}}),(0,n.kt)("span",{parentName:"span",className:"mord"},(0,n.kt)("span",{parentName:"span",className:"mord mathbf"},"x"),(0,n.kt)("span",{parentName:"span",className:"msupsub"},(0,n.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,n.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,n.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,n.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,n.kt)("span",{parentName:"span",className:"mord mtight"},"0")))),(0,n.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,n.kt)("span",{parentName:"span"})))))))))),"\uff1b")),(0,n.kt)("li",{parentName:"ol"},(0,n.kt)("p",{parentName:"li"},(0,n.kt)("span",{parentName:"p",className:"math math-inline"},(0,n.kt)("span",{parentName:"span",className:"katex"},(0,n.kt)("span",{parentName:"span",className:"katex-mathml"},(0,n.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,n.kt)("semantics",{parentName:"math"},(0,n.kt)("mrow",{parentName:"semantics"},(0,n.kt)("mi",{parentName:"mrow"},"t")),(0,n.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"t")))),(0,n.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,n.kt)("span",{parentName:"span",className:"base"},(0,n.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6151em"}}),(0,n.kt)("span",{parentName:"span",className:"mord mathnormal"},"t"))))),"\u662f\u4ece",(0,n.kt)("span",{parentName:"p",className:"math math-inline"},(0,n.kt)("span",{parentName:"span",className:"katex"},(0,n.kt)("span",{parentName:"span",className:"katex-mathml"},(0,n.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,n.kt)("semantics",{parentName:"math"},(0,n.kt)("mrow",{parentName:"semantics"},(0,n.kt)("mn",{parentName:"mrow"},"1"),(0,n.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,n.kt)("mo",{parentName:"mrow"},"\u2026"),(0,n.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,n.kt)("mi",{parentName:"mrow"},"T")),(0,n.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"1,\\ldots,T")))),(0,n.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,n.kt)("span",{parentName:"span",className:"base"},(0,n.kt)("span",{parentName:"span",className:"strut",style:{height:"0.8778em",verticalAlign:"-0.1944em"}}),(0,n.kt)("span",{parentName:"span",className:"mord"},"1"),(0,n.kt)("span",{parentName:"span",className:"mpunct"},","),(0,n.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,n.kt)("span",{parentName:"span",className:"minner"},"\u2026"),(0,n.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,n.kt)("span",{parentName:"span",className:"mpunct"},","),(0,n.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,n.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"T"))))),"\u8303\u56f4\u4e2dsample\u51fa\u7684\u4e00\u4e2ainteger\uff1b")),(0,n.kt)("li",{parentName:"ol"},(0,n.kt)("p",{parentName:"li"},(0,n.kt)("span",{parentName:"p",className:"math math-inline"},(0,n.kt)("span",{parentName:"span",className:"katex"},(0,n.kt)("span",{parentName:"span",className:"katex-mathml"},(0,n.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,n.kt)("semantics",{parentName:"math"},(0,n.kt)("mrow",{parentName:"semantics"},(0,n.kt)("mi",{parentName:"mrow"},"\u03f5")),(0,n.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"\\epsilon")))),(0,n.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,n.kt)("span",{parentName:"span",className:"base"},(0,n.kt)("span",{parentName:"span",className:"strut",style:{height:"0.4306em"}}),(0,n.kt)("span",{parentName:"span",className:"mord mathnormal"},"\u03f5"))))),"\u662f\u4eceNormal Distribution\u4e2dsample\u51fa\u7684\u4e0e",(0,n.kt)("span",{parentName:"p",className:"math math-inline"},(0,n.kt)("span",{parentName:"span",className:"katex"},(0,n.kt)("span",{parentName:"span",className:"katex-mathml"},(0,n.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,n.kt)("semantics",{parentName:"math"},(0,n.kt)("mrow",{parentName:"semantics"},(0,n.kt)("msub",{parentName:"mrow"},(0,n.kt)("mi",{parentName:"msub",mathvariant:"bold"},"x"),(0,n.kt)("mn",{parentName:"msub"},"0"))),(0,n.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"\\mathbf{x}_0")))),(0,n.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,n.kt)("span",{parentName:"span",className:"base"},(0,n.kt)("span",{parentName:"span",className:"strut",style:{height:"0.5944em",verticalAlign:"-0.15em"}}),(0,n.kt)("span",{parentName:"span",className:"mord"},(0,n.kt)("span",{parentName:"span",className:"mord mathbf"},"x"),(0,n.kt)("span",{parentName:"span",className:"msupsub"},(0,n.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,n.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,n.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,n.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,n.kt)("span",{parentName:"span",className:"mord mtight"},"0")))),(0,n.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,n.kt)("span",{parentName:"span"})))))))))),"\u76f8\u540c\u5927\u5c0f\u7684\u566a\u58f0\uff1b")),(0,n.kt)("li",{parentName:"ol"},(0,n.kt)("p",{parentName:"li"},"\u6839\u636e\u5982\u4e0b\u89c4\u5219\u8fdb\u884c\u68af\u5ea6\u4e0b\u964d\uff0c\u8bad\u7ec3Noise Predictor\uff1a"),(0,n.kt)("div",{parentName:"li",className:"math math-display"},(0,n.kt)("span",{parentName:"div",className:"katex-display"},(0,n.kt)("span",{parentName:"span",className:"katex"},(0,n.kt)("span",{parentName:"span",className:"katex-mathml"},(0,n.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,n.kt)("semantics",{parentName:"math"},(0,n.kt)("mtable",{parentName:"semantics",width:"100%"},(0,n.kt)("mtr",{parentName:"mtable"},(0,n.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,n.kt)("mtd",{parentName:"mtr"},(0,n.kt)("mrow",{parentName:"mtd"},(0,n.kt)("msub",{parentName:"mrow"},(0,n.kt)("mi",{parentName:"msub",mathvariant:"normal"},"\u2207"),(0,n.kt)("mi",{parentName:"msub"},"\u03b8")),(0,n.kt)("msup",{parentName:"mrow"},(0,n.kt)("mrow",{parentName:"msup"},(0,n.kt)("mo",{parentName:"mrow",fence:"true"},"\u2225"),(0,n.kt)("mi",{parentName:"mrow",mathvariant:"bold-italic"},"\u03f5"),(0,n.kt)("mo",{parentName:"mrow"},"\u2212"),(0,n.kt)("msub",{parentName:"mrow"},(0,n.kt)("mi",{parentName:"msub",mathvariant:"bold-italic"},"\u03f5"),(0,n.kt)("mi",{parentName:"msub"},"\u03b8")),(0,n.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,n.kt)("msqrt",{parentName:"mrow"},(0,n.kt)("msub",{parentName:"msqrt"},(0,n.kt)("mover",{parentName:"msub",accent:"true"},(0,n.kt)("mi",{parentName:"mover"},"\u03b1"),(0,n.kt)("mo",{parentName:"mover"},"\u02c9")),(0,n.kt)("mi",{parentName:"msub"},"t"))),(0,n.kt)("msub",{parentName:"mrow"},(0,n.kt)("mi",{parentName:"msub",mathvariant:"bold"},"x"),(0,n.kt)("mn",{parentName:"msub"},"0")),(0,n.kt)("mo",{parentName:"mrow"},"+"),(0,n.kt)("msqrt",{parentName:"mrow"},(0,n.kt)("mrow",{parentName:"msqrt"},(0,n.kt)("mn",{parentName:"mrow"},"1"),(0,n.kt)("mo",{parentName:"mrow"},"\u2212"),(0,n.kt)("msub",{parentName:"mrow"},(0,n.kt)("mover",{parentName:"msub",accent:"true"},(0,n.kt)("mi",{parentName:"mover"},"\u03b1"),(0,n.kt)("mo",{parentName:"mover"},"\u02c9")),(0,n.kt)("mi",{parentName:"msub"},"t")))),(0,n.kt)("mi",{parentName:"mrow",mathvariant:"bold-italic"},"\u03f5"),(0,n.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,n.kt)("mi",{parentName:"mrow"},"t"),(0,n.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,n.kt)("mo",{parentName:"mrow",fence:"true"},"\u2225")),(0,n.kt)("mn",{parentName:"msup"},"2")))),(0,n.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,n.kt)("mtd",{parentName:"mtr"},(0,n.kt)("mtext",{parentName:"mtd"},"(1)")))),(0,n.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"\\nabla_{\\theta}\\left\\|\\boldsymbol{\\epsilon}-\\boldsymbol{\\epsilon}_{\\theta}(\\sqrt{\\bar{\\alpha}_{t}}\\mathbf{x}_{0}+\\sqrt{1-\\bar{\\alpha}_{t}}\\boldsymbol{\\epsilon},t)\\right\\|^{2}\\tag{1}")))),(0,n.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,n.kt)("span",{parentName:"span",className:"base"},(0,n.kt)("span",{parentName:"span",className:"strut",style:{height:"1.4351em",verticalAlign:"-0.35em"}}),(0,n.kt)("span",{parentName:"span",className:"mord"},(0,n.kt)("span",{parentName:"span",className:"mord"},"\u2207"),(0,n.kt)("span",{parentName:"span",className:"msupsub"},(0,n.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3361em"}},(0,n.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,n.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,n.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,n.kt)("span",{parentName:"span",className:"mord mtight"},(0,n.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.02778em"}},"\u03b8"))))),(0,n.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,n.kt)("span",{parentName:"span"})))))),(0,n.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,n.kt)("span",{parentName:"span",className:"minner"},(0,n.kt)("span",{parentName:"span",className:"minner"},(0,n.kt)("span",{parentName:"span",className:"mopen"},(0,n.kt)("span",{parentName:"span",className:"delimsizing mult"},(0,n.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.862em"}},(0,n.kt)("span",{parentName:"span",style:{top:"-2.256em"}},(0,n.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.606em"}}),(0,n.kt)("span",{parentName:"span",className:"delimsizinginner delim-size1"},(0,n.kt)("span",{parentName:"span"},"\u2225"))),(0,n.kt)("span",{parentName:"span",style:{top:"-2.854em"}},(0,n.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.606em"}}),(0,n.kt)("span",{parentName:"span",style:{height:"0.016em",width:"0.5556em"}},(0,n.kt)("svg",{parentName:"span",xmlns:"http://www.w3.org/2000/svg",width:"0.5556em",height:"0.016em",style:{width:"0.5556em"},viewBox:"0 0 555.5600000000001 16",preserveAspectRatio:"xMinYMin"},(0,n.kt)("path",{parentName:"svg",d:"M145 0 H188 V16 H145z M145 0 H188 V16 H145zM367 0 H410 V16 H367z M367 0 H410 V16 H367z"})))),(0,n.kt)("span",{parentName:"span",style:{top:"-2.862em"}},(0,n.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.606em"}}),(0,n.kt)("span",{parentName:"span",className:"delimsizinginner delim-size1"},(0,n.kt)("span",{parentName:"span"},"\u2225")))),(0,n.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.35em"}},(0,n.kt)("span",{parentName:"span"})))))),(0,n.kt)("span",{parentName:"span",className:"mord"},(0,n.kt)("span",{parentName:"span",className:"mord"},(0,n.kt)("span",{parentName:"span",className:"mord boldsymbol"},"\u03f5"))),(0,n.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,n.kt)("span",{parentName:"span",className:"mbin"},"\u2212"),(0,n.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,n.kt)("span",{parentName:"span",className:"mord"},(0,n.kt)("span",{parentName:"span",className:"mord"},(0,n.kt)("span",{parentName:"span",className:"mord"},(0,n.kt)("span",{parentName:"span",className:"mord boldsymbol"},"\u03f5"))),(0,n.kt)("span",{parentName:"span",className:"msupsub"},(0,n.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3361em"}},(0,n.kt)("span",{parentName:"span",style:{top:"-2.55em",marginRight:"0.05em"}},(0,n.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,n.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,n.kt)("span",{parentName:"span",className:"mord mtight"},(0,n.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.02778em"}},"\u03b8"))))),(0,n.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,n.kt)("span",{parentName:"span"})))))),(0,n.kt)("span",{parentName:"span",className:"mopen"},"("),(0,n.kt)("span",{parentName:"span",className:"mord sqrt"},(0,n.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.8428em"}},(0,n.kt)("span",{parentName:"span",className:"svg-align",style:{top:"-3em"}},(0,n.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,n.kt)("span",{parentName:"span",className:"mord",style:{paddingLeft:"0.833em"}},(0,n.kt)("span",{parentName:"span",className:"mord"},(0,n.kt)("span",{parentName:"span",className:"mord accent"},(0,n.kt)("span",{parentName:"span",className:"vlist-t"},(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.5678em"}},(0,n.kt)("span",{parentName:"span",style:{top:"-3em"}},(0,n.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,n.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.0037em"}},"\u03b1")),(0,n.kt)("span",{parentName:"span",style:{top:"-3em"}},(0,n.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,n.kt)("span",{parentName:"span",className:"accent-body",style:{left:"-0.2222em"}},(0,n.kt)("span",{parentName:"span",className:"mord"},"\u02c9"))))))),(0,n.kt)("span",{parentName:"span",className:"msupsub"},(0,n.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.2806em"}},(0,n.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0037em",marginRight:"0.05em"}},(0,n.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,n.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,n.kt)("span",{parentName:"span",className:"mord mtight"},(0,n.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"t"))))),(0,n.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,n.kt)("span",{parentName:"span"})))))))),(0,n.kt)("span",{parentName:"span",style:{top:"-2.8028em"}},(0,n.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,n.kt)("span",{parentName:"span",className:"hide-tail",style:{minWidth:"0.853em",height:"1.08em"}},(0,n.kt)("svg",{parentName:"span",xmlns:"http://www.w3.org/2000/svg",width:"400em",height:"1.08em",viewBox:"0 0 400000 1080",preserveAspectRatio:"xMinYMin slice"},(0,n.kt)("path",{parentName:"svg",d:"M95,702\nc-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14\nc0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54\nc44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10\ns173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429\nc69,-144,104.5,-217.7,106.5,-221\nl0 -0\nc5.3,-9.3,12,-14,20,-14\nH400000v40H845.2724\ns-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7\nc-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z\nM834 80h400000v40h-400000z"}))))),(0,n.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.1972em"}},(0,n.kt)("span",{parentName:"span"}))))),(0,n.kt)("span",{parentName:"span",className:"mord"},(0,n.kt)("span",{parentName:"span",className:"mord mathbf"},"x"),(0,n.kt)("span",{parentName:"span",className:"msupsub"},(0,n.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,n.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,n.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,n.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,n.kt)("span",{parentName:"span",className:"mord mtight"},(0,n.kt)("span",{parentName:"span",className:"mord mtight"},"0"))))),(0,n.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,n.kt)("span",{parentName:"span"})))))),(0,n.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,n.kt)("span",{parentName:"span",className:"mbin"},"+"),(0,n.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,n.kt)("span",{parentName:"span",className:"mord sqrt"},(0,n.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.8811em"}},(0,n.kt)("span",{parentName:"span",className:"svg-align",style:{top:"-3em"}},(0,n.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,n.kt)("span",{parentName:"span",className:"mord",style:{paddingLeft:"0.833em"}},(0,n.kt)("span",{parentName:"span",className:"mord"},"1"),(0,n.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,n.kt)("span",{parentName:"span",className:"mbin"},"\u2212"),(0,n.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,n.kt)("span",{parentName:"span",className:"mord"},(0,n.kt)("span",{parentName:"span",className:"mord accent"},(0,n.kt)("span",{parentName:"span",className:"vlist-t"},(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.5678em"}},(0,n.kt)("span",{parentName:"span",style:{top:"-3em"}},(0,n.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,n.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.0037em"}},"\u03b1")),(0,n.kt)("span",{parentName:"span",style:{top:"-3em"}},(0,n.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,n.kt)("span",{parentName:"span",className:"accent-body",style:{left:"-0.2222em"}},(0,n.kt)("span",{parentName:"span",className:"mord"},"\u02c9"))))))),(0,n.kt)("span",{parentName:"span",className:"msupsub"},(0,n.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.2806em"}},(0,n.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0037em",marginRight:"0.05em"}},(0,n.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,n.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,n.kt)("span",{parentName:"span",className:"mord mtight"},(0,n.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"t"))))),(0,n.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,n.kt)("span",{parentName:"span"})))))))),(0,n.kt)("span",{parentName:"span",style:{top:"-2.8411em"}},(0,n.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,n.kt)("span",{parentName:"span",className:"hide-tail",style:{minWidth:"0.853em",height:"1.08em"}},(0,n.kt)("svg",{parentName:"span",xmlns:"http://www.w3.org/2000/svg",width:"400em",height:"1.08em",viewBox:"0 0 400000 1080",preserveAspectRatio:"xMinYMin slice"},(0,n.kt)("path",{parentName:"svg",d:"M95,702\nc-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14\nc0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54\nc44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10\ns173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429\nc69,-144,104.5,-217.7,106.5,-221\nl0 -0\nc5.3,-9.3,12,-14,20,-14\nH400000v40H845.2724\ns-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7\nc-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z\nM834 80h400000v40h-400000z"}))))),(0,n.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.1589em"}},(0,n.kt)("span",{parentName:"span"}))))),(0,n.kt)("span",{parentName:"span",className:"mord"},(0,n.kt)("span",{parentName:"span",className:"mord"},(0,n.kt)("span",{parentName:"span",className:"mord boldsymbol"},"\u03f5"))),(0,n.kt)("span",{parentName:"span",className:"mpunct"},","),(0,n.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,n.kt)("span",{parentName:"span",className:"mord mathnormal"},"t"),(0,n.kt)("span",{parentName:"span",className:"mclose"},")"),(0,n.kt)("span",{parentName:"span",className:"mclose"},(0,n.kt)("span",{parentName:"span",className:"delimsizing mult"},(0,n.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.862em"}},(0,n.kt)("span",{parentName:"span",style:{top:"-2.256em"}},(0,n.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.606em"}}),(0,n.kt)("span",{parentName:"span",className:"delimsizinginner delim-size1"},(0,n.kt)("span",{parentName:"span"},"\u2225"))),(0,n.kt)("span",{parentName:"span",style:{top:"-2.854em"}},(0,n.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.606em"}}),(0,n.kt)("span",{parentName:"span",style:{height:"0.016em",width:"0.5556em"}},(0,n.kt)("svg",{parentName:"span",xmlns:"http://www.w3.org/2000/svg",width:"0.5556em",height:"0.016em",style:{width:"0.5556em"},viewBox:"0 0 555.5600000000001 16",preserveAspectRatio:"xMinYMin"},(0,n.kt)("path",{parentName:"svg",d:"M145 0 H188 V16 H145z M145 0 H188 V16 H145zM367 0 H410 V16 H367z M367 0 H410 V16 H367z"})))),(0,n.kt)("span",{parentName:"span",style:{top:"-2.862em"}},(0,n.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.606em"}}),(0,n.kt)("span",{parentName:"span",className:"delimsizinginner delim-size1"},(0,n.kt)("span",{parentName:"span"},"\u2225")))),(0,n.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.35em"}},(0,n.kt)("span",{parentName:"span"}))))))),(0,n.kt)("span",{parentName:"span",className:"msupsub"},(0,n.kt)("span",{parentName:"span",className:"vlist-t"},(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.0851em"}},(0,n.kt)("span",{parentName:"span",style:{top:"-3.334em",marginRight:"0.05em"}},(0,n.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,n.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,n.kt)("span",{parentName:"span",className:"mord mtight"},(0,n.kt)("span",{parentName:"span",className:"mord mtight"},"2")))))))))),(0,n.kt)("span",{parentName:"span",className:"tag"},(0,n.kt)("span",{parentName:"span",className:"strut",style:{height:"1.4351em",verticalAlign:"-0.35em"}}),(0,n.kt)("span",{parentName:"span",className:"mord text"},(0,n.kt)("span",{parentName:"span",className:"mord"},"("),(0,n.kt)("span",{parentName:"span",className:"mord"},(0,n.kt)("span",{parentName:"span",className:"mord"},"1")),(0,n.kt)("span",{parentName:"span",className:"mord"},")"))))))),(0,n.kt)("p",{parentName:"li"},"\u9996\u5148\u5bf9",(0,n.kt)("span",{parentName:"p",className:"math math-inline"},(0,n.kt)("span",{parentName:"span",className:"katex"},(0,n.kt)("span",{parentName:"span",className:"katex-mathml"},(0,n.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,n.kt)("semantics",{parentName:"math"},(0,n.kt)("mrow",{parentName:"semantics"},(0,n.kt)("msub",{parentName:"mrow"},(0,n.kt)("mi",{parentName:"msub",mathvariant:"bold"},"x"),(0,n.kt)("mn",{parentName:"msub"},"0"))),(0,n.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"\\mathbf{x}_0")))),(0,n.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,n.kt)("span",{parentName:"span",className:"base"},(0,n.kt)("span",{parentName:"span",className:"strut",style:{height:"0.5944em",verticalAlign:"-0.15em"}}),(0,n.kt)("span",{parentName:"span",className:"mord"},(0,n.kt)("span",{parentName:"span",className:"mord mathbf"},"x"),(0,n.kt)("span",{parentName:"span",className:"msupsub"},(0,n.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,n.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,n.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,n.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,n.kt)("span",{parentName:"span",className:"mord mtight"},"0")))),(0,n.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,n.kt)("span",{parentName:"span"})))))))))),"\u548c",(0,n.kt)("span",{parentName:"p",className:"math math-inline"},(0,n.kt)("span",{parentName:"span",className:"katex"},(0,n.kt)("span",{parentName:"span",className:"katex-mathml"},(0,n.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,n.kt)("semantics",{parentName:"math"},(0,n.kt)("mrow",{parentName:"semantics"},(0,n.kt)("mi",{parentName:"mrow"},"\u03f5")),(0,n.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"\\epsilon")))),(0,n.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,n.kt)("span",{parentName:"span",className:"base"},(0,n.kt)("span",{parentName:"span",className:"strut",style:{height:"0.4306em"}}),(0,n.kt)("span",{parentName:"span",className:"mord mathnormal"},"\u03f5"))))),"\u6839\u636e\u6743\u91cd",(0,n.kt)("span",{parentName:"p",className:"math math-inline"},(0,n.kt)("span",{parentName:"span",className:"katex"},(0,n.kt)("span",{parentName:"span",className:"katex-mathml"},(0,n.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,n.kt)("semantics",{parentName:"math"},(0,n.kt)("mrow",{parentName:"semantics"},(0,n.kt)("msub",{parentName:"mrow"},(0,n.kt)("mover",{parentName:"msub",accent:"true"},(0,n.kt)("mi",{parentName:"mover"},"\u03b1"),(0,n.kt)("mo",{parentName:"mover"},"\u02c9")),(0,n.kt)("mn",{parentName:"msub"},"1")),(0,n.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,n.kt)("msub",{parentName:"mrow"},(0,n.kt)("mover",{parentName:"msub",accent:"true"},(0,n.kt)("mi",{parentName:"mover"},"\u03b1"),(0,n.kt)("mo",{parentName:"mover"},"\u02c9")),(0,n.kt)("mn",{parentName:"msub"},"2")),(0,n.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,n.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"."),(0,n.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"."),(0,n.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"."),(0,n.kt)("msub",{parentName:"mrow"},(0,n.kt)("mover",{parentName:"msub",accent:"true"},(0,n.kt)("mi",{parentName:"mover"},"\u03b1"),(0,n.kt)("mo",{parentName:"mover"},"\u02c9")),(0,n.kt)("mi",{parentName:"msub"},"T"))),(0,n.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"\\bar{\\alpha}_1,\\bar{\\alpha}_2,...\\bar{\\alpha}_T")))),(0,n.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,n.kt)("span",{parentName:"span",className:"base"},(0,n.kt)("span",{parentName:"span",className:"strut",style:{height:"0.7622em",verticalAlign:"-0.1944em"}}),(0,n.kt)("span",{parentName:"span",className:"mord"},(0,n.kt)("span",{parentName:"span",className:"mord accent"},(0,n.kt)("span",{parentName:"span",className:"vlist-t"},(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.5678em"}},(0,n.kt)("span",{parentName:"span",style:{top:"-3em"}},(0,n.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,n.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.0037em"}},"\u03b1")),(0,n.kt)("span",{parentName:"span",style:{top:"-3em"}},(0,n.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,n.kt)("span",{parentName:"span",className:"accent-body",style:{left:"-0.2222em"}},(0,n.kt)("span",{parentName:"span",className:"mord"},"\u02c9"))))))),(0,n.kt)("span",{parentName:"span",className:"msupsub"},(0,n.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,n.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0037em",marginRight:"0.05em"}},(0,n.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,n.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,n.kt)("span",{parentName:"span",className:"mord mtight"},"1")))),(0,n.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,n.kt)("span",{parentName:"span"})))))),(0,n.kt)("span",{parentName:"span",className:"mpunct"},","),(0,n.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,n.kt)("span",{parentName:"span",className:"mord"},(0,n.kt)("span",{parentName:"span",className:"mord accent"},(0,n.kt)("span",{parentName:"span",className:"vlist-t"},(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.5678em"}},(0,n.kt)("span",{parentName:"span",style:{top:"-3em"}},(0,n.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,n.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.0037em"}},"\u03b1")),(0,n.kt)("span",{parentName:"span",style:{top:"-3em"}},(0,n.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,n.kt)("span",{parentName:"span",className:"accent-body",style:{left:"-0.2222em"}},(0,n.kt)("span",{parentName:"span",className:"mord"},"\u02c9"))))))),(0,n.kt)("span",{parentName:"span",className:"msupsub"},(0,n.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,n.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0037em",marginRight:"0.05em"}},(0,n.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,n.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,n.kt)("span",{parentName:"span",className:"mord mtight"},"2")))),(0,n.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,n.kt)("span",{parentName:"span"})))))),(0,n.kt)("span",{parentName:"span",className:"mpunct"},","),(0,n.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,n.kt)("span",{parentName:"span",className:"mord"},"..."),(0,n.kt)("span",{parentName:"span",className:"mord"},(0,n.kt)("span",{parentName:"span",className:"mord accent"},(0,n.kt)("span",{parentName:"span",className:"vlist-t"},(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.5678em"}},(0,n.kt)("span",{parentName:"span",style:{top:"-3em"}},(0,n.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,n.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.0037em"}},"\u03b1")),(0,n.kt)("span",{parentName:"span",style:{top:"-3em"}},(0,n.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,n.kt)("span",{parentName:"span",className:"accent-body",style:{left:"-0.2222em"}},(0,n.kt)("span",{parentName:"span",className:"mord"},"\u02c9"))))))),(0,n.kt)("span",{parentName:"span",className:"msupsub"},(0,n.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3283em"}},(0,n.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0037em",marginRight:"0.05em"}},(0,n.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,n.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,n.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.13889em"}},"T")))),(0,n.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,n.kt)("span",{parentName:"span"})))))))))),"\u505aweighted sum\u4ea7\u751f\u52a0\u5165\u566a\u58f0\u540e\u7684\u56fe\u50cf\u3002\u901a\u5e38\u6765\u8bf4\uff0c",(0,n.kt)("span",{parentName:"p",className:"math math-inline"},(0,n.kt)("span",{parentName:"span",className:"katex"},(0,n.kt)("span",{parentName:"span",className:"katex-mathml"},(0,n.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,n.kt)("semantics",{parentName:"math"},(0,n.kt)("mrow",{parentName:"semantics"},(0,n.kt)("msub",{parentName:"mrow"},(0,n.kt)("mover",{parentName:"msub",accent:"true"},(0,n.kt)("mi",{parentName:"mover"},"\u03b1"),(0,n.kt)("mo",{parentName:"mover"},"\u02c9")),(0,n.kt)("mn",{parentName:"msub"},"1"))),(0,n.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"\\bar{\\alpha}_1")))),(0,n.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,n.kt)("span",{parentName:"span",className:"base"},(0,n.kt)("span",{parentName:"span",className:"strut",style:{height:"0.7178em",verticalAlign:"-0.15em"}}),(0,n.kt)("span",{parentName:"span",className:"mord"},(0,n.kt)("span",{parentName:"span",className:"mord accent"},(0,n.kt)("span",{parentName:"span",className:"vlist-t"},(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.5678em"}},(0,n.kt)("span",{parentName:"span",style:{top:"-3em"}},(0,n.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,n.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.0037em"}},"\u03b1")),(0,n.kt)("span",{parentName:"span",style:{top:"-3em"}},(0,n.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,n.kt)("span",{parentName:"span",className:"accent-body",style:{left:"-0.2222em"}},(0,n.kt)("span",{parentName:"span",className:"mord"},"\u02c9"))))))),(0,n.kt)("span",{parentName:"span",className:"msupsub"},(0,n.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,n.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0037em",marginRight:"0.05em"}},(0,n.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,n.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,n.kt)("span",{parentName:"span",className:"mord mtight"},"1")))),(0,n.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,n.kt)("span",{parentName:"span"})))))))))),"\u81f3",(0,n.kt)("span",{parentName:"p",className:"math math-inline"},(0,n.kt)("span",{parentName:"span",className:"katex"},(0,n.kt)("span",{parentName:"span",className:"katex-mathml"},(0,n.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,n.kt)("semantics",{parentName:"math"},(0,n.kt)("mrow",{parentName:"semantics"},(0,n.kt)("msub",{parentName:"mrow"},(0,n.kt)("mover",{parentName:"msub",accent:"true"},(0,n.kt)("mi",{parentName:"mover"},"\u03b1"),(0,n.kt)("mo",{parentName:"mover"},"\u02c9")),(0,n.kt)("mi",{parentName:"msub"},"T"))),(0,n.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"\\bar{\\alpha}_T")))),(0,n.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,n.kt)("span",{parentName:"span",className:"base"},(0,n.kt)("span",{parentName:"span",className:"strut",style:{height:"0.7178em",verticalAlign:"-0.15em"}}),(0,n.kt)("span",{parentName:"span",className:"mord"},(0,n.kt)("span",{parentName:"span",className:"mord accent"},(0,n.kt)("span",{parentName:"span",className:"vlist-t"},(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.5678em"}},(0,n.kt)("span",{parentName:"span",style:{top:"-3em"}},(0,n.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,n.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.0037em"}},"\u03b1")),(0,n.kt)("span",{parentName:"span",style:{top:"-3em"}},(0,n.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,n.kt)("span",{parentName:"span",className:"accent-body",style:{left:"-0.2222em"}},(0,n.kt)("span",{parentName:"span",className:"mord"},"\u02c9"))))))),(0,n.kt)("span",{parentName:"span",className:"msupsub"},(0,n.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3283em"}},(0,n.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0037em",marginRight:"0.05em"}},(0,n.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,n.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,n.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.13889em"}},"T")))),(0,n.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,n.kt)("span",{parentName:"span"})))))))))),"\u662f\u9012\u51cf\u7684\uff0c\u5f53\u5728\u7b2c2\u6b65\u4e2dsample\u5230\u7684",(0,n.kt)("span",{parentName:"p",className:"math math-inline"},(0,n.kt)("span",{parentName:"span",className:"katex"},(0,n.kt)("span",{parentName:"span",className:"katex-mathml"},(0,n.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,n.kt)("semantics",{parentName:"math"},(0,n.kt)("mrow",{parentName:"semantics"},(0,n.kt)("mi",{parentName:"mrow"},"t")),(0,n.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"t")))),(0,n.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,n.kt)("span",{parentName:"span",className:"base"},(0,n.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6151em"}}),(0,n.kt)("span",{parentName:"span",className:"mord mathnormal"},"t"))))),"\u8d8a\u5927\uff0c\u5219\u539f\u59cb\u56fe\u50cf",(0,n.kt)("span",{parentName:"p",className:"math math-inline"},(0,n.kt)("span",{parentName:"span",className:"katex"},(0,n.kt)("span",{parentName:"span",className:"katex-mathml"},(0,n.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,n.kt)("semantics",{parentName:"math"},(0,n.kt)("mrow",{parentName:"semantics"},(0,n.kt)("msub",{parentName:"mrow"},(0,n.kt)("mi",{parentName:"msub",mathvariant:"bold"},"x"),(0,n.kt)("mn",{parentName:"msub"},"0"))),(0,n.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"\\mathbf{x}_0")))),(0,n.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,n.kt)("span",{parentName:"span",className:"base"},(0,n.kt)("span",{parentName:"span",className:"strut",style:{height:"0.5944em",verticalAlign:"-0.15em"}}),(0,n.kt)("span",{parentName:"span",className:"mord"},(0,n.kt)("span",{parentName:"span",className:"mord mathbf"},"x"),(0,n.kt)("span",{parentName:"span",className:"msupsub"},(0,n.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,n.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,n.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,n.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,n.kt)("span",{parentName:"span",className:"mord mtight"},"0")))),(0,n.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,n.kt)("span",{parentName:"span"})))))))))),"\u5bf9\u65b0\u56fe\u50cf\u7684\u8d21\u732e\u8d8a\u5927\u3002"),(0,n.kt)("p",{parentName:"li"},(0,n.kt)("span",{parentName:"p",className:"math math-inline"},(0,n.kt)("span",{parentName:"span",className:"katex"},(0,n.kt)("span",{parentName:"span",className:"katex-mathml"},(0,n.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,n.kt)("semantics",{parentName:"math"},(0,n.kt)("mrow",{parentName:"semantics"},(0,n.kt)("msub",{parentName:"mrow"},(0,n.kt)("mi",{parentName:"msub"},"\u03f5"),(0,n.kt)("mi",{parentName:"msub"},"\u03b8"))),(0,n.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"\\epsilon_{\\theta}")))),(0,n.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,n.kt)("span",{parentName:"span",className:"base"},(0,n.kt)("span",{parentName:"span",className:"strut",style:{height:"0.5806em",verticalAlign:"-0.15em"}}),(0,n.kt)("span",{parentName:"span",className:"mord"},(0,n.kt)("span",{parentName:"span",className:"mord mathnormal"},"\u03f5"),(0,n.kt)("span",{parentName:"span",className:"msupsub"},(0,n.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3361em"}},(0,n.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,n.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,n.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,n.kt)("span",{parentName:"span",className:"mord mtight"},(0,n.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.02778em"}},"\u03b8"))))),(0,n.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,n.kt)("span",{parentName:"span"})))))))))),"\u662fNoise Predictor\uff0c\u5176\u8f93\u5165\u662f\u52a0\u5165\u566a\u58f0\u7684\u56fe\u50cf\u4ee5\u53casample\u51fa\u7684",(0,n.kt)("span",{parentName:"p",className:"math math-inline"},(0,n.kt)("span",{parentName:"span",className:"katex"},(0,n.kt)("span",{parentName:"span",className:"katex-mathml"},(0,n.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,n.kt)("semantics",{parentName:"math"},(0,n.kt)("mrow",{parentName:"semantics"},(0,n.kt)("mi",{parentName:"mrow"},"t")),(0,n.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"t")))),(0,n.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,n.kt)("span",{parentName:"span",className:"base"},(0,n.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6151em"}}),(0,n.kt)("span",{parentName:"span",className:"mord mathnormal"},"t"))))),"\uff0c\u800c",(0,n.kt)("span",{parentName:"p",className:"math math-inline"},(0,n.kt)("span",{parentName:"span",className:"katex"},(0,n.kt)("span",{parentName:"span",className:"katex-mathml"},(0,n.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,n.kt)("semantics",{parentName:"math"},(0,n.kt)("mrow",{parentName:"semantics"},(0,n.kt)("msub",{parentName:"mrow"},(0,n.kt)("mi",{parentName:"msub"},"\u03f5"),(0,n.kt)("mi",{parentName:"msub"},"\u03b8"))),(0,n.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"\\epsilon_\\theta")))),(0,n.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,n.kt)("span",{parentName:"span",className:"base"},(0,n.kt)("span",{parentName:"span",className:"strut",style:{height:"0.5806em",verticalAlign:"-0.15em"}}),(0,n.kt)("span",{parentName:"span",className:"mord"},(0,n.kt)("span",{parentName:"span",className:"mord mathnormal"},"\u03f5"),(0,n.kt)("span",{parentName:"span",className:"msupsub"},(0,n.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3361em"}},(0,n.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,n.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,n.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,n.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.02778em"}},"\u03b8")))),(0,n.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,n.kt)("span",{parentName:"span"})))))))))),"\u8bad\u7ec3\u7684Ground Truth\u5c31\u662f\u7b2c3\u6b65\u4e2dsample\u51fa\u7684\u566a\u58f0",(0,n.kt)("span",{parentName:"p",className:"math math-inline"},(0,n.kt)("span",{parentName:"span",className:"katex"},(0,n.kt)("span",{parentName:"span",className:"katex-mathml"},(0,n.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,n.kt)("semantics",{parentName:"math"},(0,n.kt)("mrow",{parentName:"semantics"},(0,n.kt)("mi",{parentName:"mrow"},"\u03f5")),(0,n.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"\\epsilon")))),(0,n.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,n.kt)("span",{parentName:"span",className:"base"},(0,n.kt)("span",{parentName:"span",className:"strut",style:{height:"0.4306em"}}),(0,n.kt)("span",{parentName:"span",className:"mord mathnormal"},"\u03f5"))))),"\uff1b")),(0,n.kt)("li",{parentName:"ol"},(0,n.kt)("p",{parentName:"li"},"\u76f4\u81f3\u566a\u58f0\u9884\u6d4b\u6a21\u578b",(0,n.kt)("span",{parentName:"p",className:"math math-inline"},(0,n.kt)("span",{parentName:"span",className:"katex"},(0,n.kt)("span",{parentName:"span",className:"katex-mathml"},(0,n.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,n.kt)("semantics",{parentName:"math"},(0,n.kt)("mrow",{parentName:"semantics"},(0,n.kt)("msub",{parentName:"mrow"},(0,n.kt)("mi",{parentName:"msub"},"\u03f5"),(0,n.kt)("mi",{parentName:"msub"},"\u03b8"))),(0,n.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"\\epsilon_\\theta")))),(0,n.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,n.kt)("span",{parentName:"span",className:"base"},(0,n.kt)("span",{parentName:"span",className:"strut",style:{height:"0.5806em",verticalAlign:"-0.15em"}}),(0,n.kt)("span",{parentName:"span",className:"mord"},(0,n.kt)("span",{parentName:"span",className:"mord mathnormal"},"\u03f5"),(0,n.kt)("span",{parentName:"span",className:"msupsub"},(0,n.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3361em"}},(0,n.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,n.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,n.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,n.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.02778em"}},"\u03b8")))),(0,n.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,n.kt)("span",{parentName:"span"})))))))))),"\u8bad\u7ec3\u81f3\u6536\u655b\u3002"))),(0,n.kt)("p",null,(0,n.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_imagesimage-20231202235322516.png",alt:"image-20231202235322516"})),(0,n.kt)("h3",{id:"\u63a8\u7406\u8fc7\u7a0b"},"\u63a8\u7406\u8fc7\u7a0b"),(0,n.kt)("ol",null,(0,n.kt)("li",{parentName:"ol"},(0,n.kt)("p",{parentName:"li"},"\u4eceNormal Distribution\u4e2dsample\u51fa\u56fe\u7247\u5927\u5c0f\u7684\u566a\u58f0",(0,n.kt)("span",{parentName:"p",className:"math math-inline"},(0,n.kt)("span",{parentName:"span",className:"katex"},(0,n.kt)("span",{parentName:"span",className:"katex-mathml"},(0,n.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,n.kt)("semantics",{parentName:"math"},(0,n.kt)("mrow",{parentName:"semantics"},(0,n.kt)("msub",{parentName:"mrow"},(0,n.kt)("mi",{parentName:"msub",mathvariant:"bold"},"x"),(0,n.kt)("mi",{parentName:"msub"},"T"))),(0,n.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"\\mathbf{x}_T")))),(0,n.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,n.kt)("span",{parentName:"span",className:"base"},(0,n.kt)("span",{parentName:"span",className:"strut",style:{height:"0.5944em",verticalAlign:"-0.15em"}}),(0,n.kt)("span",{parentName:"span",className:"mord"},(0,n.kt)("span",{parentName:"span",className:"mord mathbf"},"x"),(0,n.kt)("span",{parentName:"span",className:"msupsub"},(0,n.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3283em"}},(0,n.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,n.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,n.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,n.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.13889em"}},"T")))),(0,n.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,n.kt)("span",{parentName:"span"})))))))))),"\uff1b")),(0,n.kt)("li",{parentName:"ol"},(0,n.kt)("p",{parentName:"li"},(0,n.kt)("span",{parentName:"p",className:"math math-inline"},(0,n.kt)("span",{parentName:"span",className:"katex"},(0,n.kt)("span",{parentName:"span",className:"katex-mathml"},(0,n.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,n.kt)("semantics",{parentName:"math"},(0,n.kt)("mrow",{parentName:"semantics"},(0,n.kt)("mi",{parentName:"mrow"},"t")),(0,n.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"t")))),(0,n.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,n.kt)("span",{parentName:"span",className:"base"},(0,n.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6151em"}}),(0,n.kt)("span",{parentName:"span",className:"mord mathnormal"},"t"))))),"\u4ece",(0,n.kt)("span",{parentName:"p",className:"math math-inline"},(0,n.kt)("span",{parentName:"span",className:"katex"},(0,n.kt)("span",{parentName:"span",className:"katex-mathml"},(0,n.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,n.kt)("semantics",{parentName:"math"},(0,n.kt)("mrow",{parentName:"semantics"},(0,n.kt)("mi",{parentName:"mrow"},"T"),(0,n.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,n.kt)("mo",{parentName:"mrow"},"\u2026"),(0,n.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,n.kt)("mn",{parentName:"mrow"},"1")),(0,n.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"T,\\ldots,1")))),(0,n.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,n.kt)("span",{parentName:"span",className:"base"},(0,n.kt)("span",{parentName:"span",className:"strut",style:{height:"0.8778em",verticalAlign:"-0.1944em"}}),(0,n.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"T"),(0,n.kt)("span",{parentName:"span",className:"mpunct"},","),(0,n.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,n.kt)("span",{parentName:"span",className:"minner"},"\u2026"),(0,n.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,n.kt)("span",{parentName:"span",className:"mpunct"},","),(0,n.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,n.kt)("span",{parentName:"span",className:"mord"},"1"))))),"\u8303\u56f4\u5faa\u73af",(0,n.kt)("span",{parentName:"p",className:"math math-inline"},(0,n.kt)("span",{parentName:"span",className:"katex"},(0,n.kt)("span",{parentName:"span",className:"katex-mathml"},(0,n.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,n.kt)("semantics",{parentName:"math"},(0,n.kt)("mrow",{parentName:"semantics"},(0,n.kt)("mi",{parentName:"mrow"},"T")),(0,n.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"T")))),(0,n.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,n.kt)("span",{parentName:"span",className:"base"},(0,n.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6833em"}}),(0,n.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"T"))))),"\u6b21\uff1b")),(0,n.kt)("li",{parentName:"ol"},(0,n.kt)("p",{parentName:"li"},"\u5bf9\u4e0e\u6bcf\u4e00\u6b21\u4ee5",(0,n.kt)("span",{parentName:"p",className:"math math-inline"},(0,n.kt)("span",{parentName:"span",className:"katex"},(0,n.kt)("span",{parentName:"span",className:"katex-mathml"},(0,n.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,n.kt)("semantics",{parentName:"math"},(0,n.kt)("mrow",{parentName:"semantics"},(0,n.kt)("mi",{parentName:"mrow"},"t")),(0,n.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"t")))),(0,n.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,n.kt)("span",{parentName:"span",className:"base"},(0,n.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6151em"}}),(0,n.kt)("span",{parentName:"span",className:"mord mathnormal"},"t"))))),"\u8ba1\u6570\u7684\u5faa\u73af\uff0c\u82e5",(0,n.kt)("span",{parentName:"p",className:"math math-inline"},(0,n.kt)("span",{parentName:"span",className:"katex"},(0,n.kt)("span",{parentName:"span",className:"katex-mathml"},(0,n.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,n.kt)("semantics",{parentName:"math"},(0,n.kt)("mrow",{parentName:"semantics"},(0,n.kt)("mi",{parentName:"mrow"},"t"),(0,n.kt)("mo",{parentName:"mrow"},">"),(0,n.kt)("mn",{parentName:"mrow"},"1")),(0,n.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"t>1")))),(0,n.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,n.kt)("span",{parentName:"span",className:"base"},(0,n.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6542em",verticalAlign:"-0.0391em"}}),(0,n.kt)("span",{parentName:"span",className:"mord mathnormal"},"t"),(0,n.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,n.kt)("span",{parentName:"span",className:"mrel"},">"),(0,n.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,n.kt)("span",{parentName:"span",className:"base"},(0,n.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6444em"}}),(0,n.kt)("span",{parentName:"span",className:"mord"},"1"))))),"\uff0c\u5219\u4eceNormal Distribution\u4e2dsample\u51fa",(0,n.kt)("span",{parentName:"p",className:"math math-inline"},(0,n.kt)("span",{parentName:"span",className:"katex"},(0,n.kt)("span",{parentName:"span",className:"katex-mathml"},(0,n.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,n.kt)("semantics",{parentName:"math"},(0,n.kt)("mrow",{parentName:"semantics"},(0,n.kt)("mi",{parentName:"mrow",mathvariant:"bold"},"z")),(0,n.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"\\mathbf{z}")))),(0,n.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,n.kt)("span",{parentName:"span",className:"base"},(0,n.kt)("span",{parentName:"span",className:"strut",style:{height:"0.4444em"}}),(0,n.kt)("span",{parentName:"span",className:"mord mathbf"},"z"))))),"\uff0c\u5426\u5219",(0,n.kt)("span",{parentName:"p",className:"math math-inline"},(0,n.kt)("span",{parentName:"span",className:"katex"},(0,n.kt)("span",{parentName:"span",className:"katex-mathml"},(0,n.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,n.kt)("semantics",{parentName:"math"},(0,n.kt)("mrow",{parentName:"semantics"},(0,n.kt)("mi",{parentName:"mrow",mathvariant:"bold"},"z"),(0,n.kt)("mo",{parentName:"mrow"},"="),(0,n.kt)("mn",{parentName:"mrow",mathvariant:"bold"},"0")),(0,n.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"\\mathbf{z}=\\mathbf{0}")))),(0,n.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,n.kt)("span",{parentName:"span",className:"base"},(0,n.kt)("span",{parentName:"span",className:"strut",style:{height:"0.4444em"}}),(0,n.kt)("span",{parentName:"span",className:"mord mathbf"},"z"),(0,n.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,n.kt)("span",{parentName:"span",className:"mrel"},"="),(0,n.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,n.kt)("span",{parentName:"span",className:"base"},(0,n.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6444em"}}),(0,n.kt)("span",{parentName:"span",className:"mord mathbf"},"0"))))),"\uff1b")),(0,n.kt)("li",{parentName:"ol"},(0,n.kt)("p",{parentName:"li"},"\u6839\u636e\u5982\u4e0b\u516c\u5f0f\u5f97\u5230\u964d\u566a\u540e\u7684\u56fe\u50cf\uff1a"),(0,n.kt)("div",{parentName:"li",className:"math math-display"},(0,n.kt)("span",{parentName:"div",className:"katex-display"},(0,n.kt)("span",{parentName:"span",className:"katex"},(0,n.kt)("span",{parentName:"span",className:"katex-mathml"},(0,n.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,n.kt)("semantics",{parentName:"math"},(0,n.kt)("mtable",{parentName:"semantics",width:"100%"},(0,n.kt)("mtr",{parentName:"mtable"},(0,n.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,n.kt)("mtd",{parentName:"mtr"},(0,n.kt)("mrow",{parentName:"mtd"},(0,n.kt)("msub",{parentName:"mrow"},(0,n.kt)("mi",{parentName:"msub",mathvariant:"bold"},"x"),(0,n.kt)("mrow",{parentName:"msub"},(0,n.kt)("mi",{parentName:"mrow"},"t"),(0,n.kt)("mo",{parentName:"mrow"},"\u2212"),(0,n.kt)("mn",{parentName:"mrow"},"1"))),(0,n.kt)("mo",{parentName:"mrow"},"="),(0,n.kt)("mfrac",{parentName:"mrow"},(0,n.kt)("mn",{parentName:"mfrac"},"1"),(0,n.kt)("msqrt",{parentName:"mfrac"},(0,n.kt)("msub",{parentName:"msqrt"},(0,n.kt)("mi",{parentName:"msub"},"\u03b1"),(0,n.kt)("mi",{parentName:"msub"},"t")))),(0,n.kt)("mrow",{parentName:"mrow"},(0,n.kt)("mo",{parentName:"mrow",fence:"true"},"("),(0,n.kt)("msub",{parentName:"mrow"},(0,n.kt)("mi",{parentName:"msub",mathvariant:"bold"},"x"),(0,n.kt)("mi",{parentName:"msub"},"t")),(0,n.kt)("mo",{parentName:"mrow"},"\u2212"),(0,n.kt)("mfrac",{parentName:"mrow"},(0,n.kt)("mrow",{parentName:"mfrac"},(0,n.kt)("mn",{parentName:"mrow"},"1"),(0,n.kt)("mo",{parentName:"mrow"},"\u2212"),(0,n.kt)("msub",{parentName:"mrow"},(0,n.kt)("mi",{parentName:"msub"},"\u03b1"),(0,n.kt)("mi",{parentName:"msub"},"t"))),(0,n.kt)("msqrt",{parentName:"mfrac"},(0,n.kt)("mrow",{parentName:"msqrt"},(0,n.kt)("mn",{parentName:"mrow"},"1"),(0,n.kt)("mo",{parentName:"mrow"},"\u2212"),(0,n.kt)("msub",{parentName:"mrow"},(0,n.kt)("mover",{parentName:"msub",accent:"true"},(0,n.kt)("mi",{parentName:"mover"},"\u03b1"),(0,n.kt)("mo",{parentName:"mover"},"\u02c9")),(0,n.kt)("mi",{parentName:"msub"},"t"))))),(0,n.kt)("msub",{parentName:"mrow"},(0,n.kt)("mi",{parentName:"msub",mathvariant:"bold-italic"},"\u03f5"),(0,n.kt)("mi",{parentName:"msub"},"\u03b8")),(0,n.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,n.kt)("msub",{parentName:"mrow"},(0,n.kt)("mi",{parentName:"msub",mathvariant:"bold"},"x"),(0,n.kt)("mi",{parentName:"msub"},"t")),(0,n.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,n.kt)("mi",{parentName:"mrow"},"t"),(0,n.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,n.kt)("mo",{parentName:"mrow",fence:"true"},")")),(0,n.kt)("mo",{parentName:"mrow"},"+"),(0,n.kt)("msub",{parentName:"mrow"},(0,n.kt)("mi",{parentName:"msub"},"\u03c3"),(0,n.kt)("mi",{parentName:"msub"},"t")),(0,n.kt)("mi",{parentName:"mrow",mathvariant:"bold"},"z"))),(0,n.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,n.kt)("mtd",{parentName:"mtr"},(0,n.kt)("mtext",{parentName:"mtd"},"(2)")))),(0,n.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"\\mathbf{x}_{t-1}=\\frac{1}{\\sqrt{\\alpha_{t}}}\\left(\\mathbf{x}_{t}-\\frac{1-\\alpha_{t}}{\\sqrt{1-\\bar{\\alpha}_{t}}}\\boldsymbol{\\epsilon}_{\\theta}(\\mathbf{x}_{t},t)\\right)+\\sigma_{t}\\mathbf{z}\\tag{2}")))),(0,n.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,n.kt)("span",{parentName:"span",className:"base"},(0,n.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6528em",verticalAlign:"-0.2083em"}}),(0,n.kt)("span",{parentName:"span",className:"mord"},(0,n.kt)("span",{parentName:"span",className:"mord mathbf"},"x"),(0,n.kt)("span",{parentName:"span",className:"msupsub"},(0,n.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,n.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,n.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,n.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,n.kt)("span",{parentName:"span",className:"mord mtight"},(0,n.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"t"),(0,n.kt)("span",{parentName:"span",className:"mbin mtight"},"\u2212"),(0,n.kt)("span",{parentName:"span",className:"mord mtight"},"1"))))),(0,n.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.2083em"}},(0,n.kt)("span",{parentName:"span"})))))),(0,n.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,n.kt)("span",{parentName:"span",className:"mrel"},"="),(0,n.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,n.kt)("span",{parentName:"span",className:"base"},(0,n.kt)("span",{parentName:"span",className:"strut",style:{height:"2.4507em",verticalAlign:"-1.0007em"}}),(0,n.kt)("span",{parentName:"span",className:"mord"},(0,n.kt)("span",{parentName:"span",className:"mopen nulldelimiter"}),(0,n.kt)("span",{parentName:"span",className:"mfrac"},(0,n.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.3214em"}},(0,n.kt)("span",{parentName:"span",style:{top:"-2.314em"}},(0,n.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,n.kt)("span",{parentName:"span",className:"mord"},(0,n.kt)("span",{parentName:"span",className:"mord sqrt"},(0,n.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.7253em"}},(0,n.kt)("span",{parentName:"span",className:"svg-align",style:{top:"-3em"}},(0,n.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,n.kt)("span",{parentName:"span",className:"mord",style:{paddingLeft:"0.833em"}},(0,n.kt)("span",{parentName:"span",className:"mord"},(0,n.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.0037em"}},"\u03b1"),(0,n.kt)("span",{parentName:"span",className:"msupsub"},(0,n.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.2806em"}},(0,n.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0037em",marginRight:"0.05em"}},(0,n.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,n.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,n.kt)("span",{parentName:"span",className:"mord mtight"},(0,n.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"t"))))),(0,n.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,n.kt)("span",{parentName:"span"})))))))),(0,n.kt)("span",{parentName:"span",style:{top:"-2.6853em"}},(0,n.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,n.kt)("span",{parentName:"span",className:"hide-tail",style:{minWidth:"0.853em",height:"1.08em"}},(0,n.kt)("svg",{parentName:"span",xmlns:"http://www.w3.org/2000/svg",width:"400em",height:"1.08em",viewBox:"0 0 400000 1080",preserveAspectRatio:"xMinYMin slice"},(0,n.kt)("path",{parentName:"svg",d:"M95,702\nc-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14\nc0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54\nc44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10\ns173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429\nc69,-144,104.5,-217.7,106.5,-221\nl0 -0\nc5.3,-9.3,12,-14,20,-14\nH400000v40H845.2724\ns-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7\nc-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z\nM834 80h400000v40h-400000z"}))))),(0,n.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3147em"}},(0,n.kt)("span",{parentName:"span"}))))))),(0,n.kt)("span",{parentName:"span",style:{top:"-3.23em"}},(0,n.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,n.kt)("span",{parentName:"span",className:"frac-line",style:{borderBottomWidth:"0.04em"}})),(0,n.kt)("span",{parentName:"span",style:{top:"-3.677em"}},(0,n.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,n.kt)("span",{parentName:"span",className:"mord"},(0,n.kt)("span",{parentName:"span",className:"mord"},"1")))),(0,n.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.0007em"}},(0,n.kt)("span",{parentName:"span"}))))),(0,n.kt)("span",{parentName:"span",className:"mclose nulldelimiter"})),(0,n.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,n.kt)("span",{parentName:"span",className:"minner"},(0,n.kt)("span",{parentName:"span",className:"mopen delimcenter",style:{top:"0em"}},(0,n.kt)("span",{parentName:"span",className:"delimsizing size3"},"(")),(0,n.kt)("span",{parentName:"span",className:"mord"},(0,n.kt)("span",{parentName:"span",className:"mord mathbf"},"x"),(0,n.kt)("span",{parentName:"span",className:"msupsub"},(0,n.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.2806em"}},(0,n.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,n.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,n.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,n.kt)("span",{parentName:"span",className:"mord mtight"},(0,n.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"t"))))),(0,n.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,n.kt)("span",{parentName:"span"})))))),(0,n.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,n.kt)("span",{parentName:"span",className:"mbin"},"\u2212"),(0,n.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,n.kt)("span",{parentName:"span",className:"mord"},(0,n.kt)("span",{parentName:"span",className:"mopen nulldelimiter"}),(0,n.kt)("span",{parentName:"span",className:"mfrac"},(0,n.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.3214em"}},(0,n.kt)("span",{parentName:"span",style:{top:"-2.2778em"}},(0,n.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,n.kt)("span",{parentName:"span",className:"mord"},(0,n.kt)("span",{parentName:"span",className:"mord sqrt"},(0,n.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.8322em"}},(0,n.kt)("span",{parentName:"span",className:"svg-align",style:{top:"-3em"}},(0,n.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,n.kt)("span",{parentName:"span",className:"mord",style:{paddingLeft:"0.833em"}},(0,n.kt)("span",{parentName:"span",className:"mord"},"1"),(0,n.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,n.kt)("span",{parentName:"span",className:"mbin"},"\u2212"),(0,n.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,n.kt)("span",{parentName:"span",className:"mord"},(0,n.kt)("span",{parentName:"span",className:"mord accent"},(0,n.kt)("span",{parentName:"span",className:"vlist-t"},(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.5678em"}},(0,n.kt)("span",{parentName:"span",style:{top:"-3em"}},(0,n.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,n.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.0037em"}},"\u03b1")),(0,n.kt)("span",{parentName:"span",style:{top:"-3em"}},(0,n.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,n.kt)("span",{parentName:"span",className:"accent-body",style:{left:"-0.2222em"}},(0,n.kt)("span",{parentName:"span",className:"mord"},"\u02c9"))))))),(0,n.kt)("span",{parentName:"span",className:"msupsub"},(0,n.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.2806em"}},(0,n.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0037em",marginRight:"0.05em"}},(0,n.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,n.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,n.kt)("span",{parentName:"span",className:"mord mtight"},(0,n.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"t"))))),(0,n.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,n.kt)("span",{parentName:"span"})))))))),(0,n.kt)("span",{parentName:"span",style:{top:"-2.7922em"}},(0,n.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,n.kt)("span",{parentName:"span",className:"hide-tail",style:{minWidth:"0.853em",height:"1.08em"}},(0,n.kt)("svg",{parentName:"span",xmlns:"http://www.w3.org/2000/svg",width:"400em",height:"1.08em",viewBox:"0 0 400000 1080",preserveAspectRatio:"xMinYMin slice"},(0,n.kt)("path",{parentName:"svg",d:"M95,702\nc-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14\nc0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54\nc44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10\ns173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429\nc69,-144,104.5,-217.7,106.5,-221\nl0 -0\nc5.3,-9.3,12,-14,20,-14\nH400000v40H845.2724\ns-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7\nc-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z\nM834 80h400000v40h-400000z"}))))),(0,n.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.2078em"}},(0,n.kt)("span",{parentName:"span"}))))))),(0,n.kt)("span",{parentName:"span",style:{top:"-3.23em"}},(0,n.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,n.kt)("span",{parentName:"span",className:"frac-line",style:{borderBottomWidth:"0.04em"}})),(0,n.kt)("span",{parentName:"span",style:{top:"-3.677em"}},(0,n.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,n.kt)("span",{parentName:"span",className:"mord"},(0,n.kt)("span",{parentName:"span",className:"mord"},"1"),(0,n.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,n.kt)("span",{parentName:"span",className:"mbin"},"\u2212"),(0,n.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,n.kt)("span",{parentName:"span",className:"mord"},(0,n.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.0037em"}},"\u03b1"),(0,n.kt)("span",{parentName:"span",className:"msupsub"},(0,n.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.2806em"}},(0,n.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0037em",marginRight:"0.05em"}},(0,n.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,n.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,n.kt)("span",{parentName:"span",className:"mord mtight"},(0,n.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"t"))))),(0,n.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,n.kt)("span",{parentName:"span"}))))))))),(0,n.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.93em"}},(0,n.kt)("span",{parentName:"span"}))))),(0,n.kt)("span",{parentName:"span",className:"mclose nulldelimiter"})),(0,n.kt)("span",{parentName:"span",className:"mord"},(0,n.kt)("span",{parentName:"span",className:"mord"},(0,n.kt)("span",{parentName:"span",className:"mord"},(0,n.kt)("span",{parentName:"span",className:"mord boldsymbol"},"\u03f5"))),(0,n.kt)("span",{parentName:"span",className:"msupsub"},(0,n.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3361em"}},(0,n.kt)("span",{parentName:"span",style:{top:"-2.55em",marginRight:"0.05em"}},(0,n.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,n.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,n.kt)("span",{parentName:"span",className:"mord mtight"},(0,n.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.02778em"}},"\u03b8"))))),(0,n.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,n.kt)("span",{parentName:"span"})))))),(0,n.kt)("span",{parentName:"span",className:"mopen"},"("),(0,n.kt)("span",{parentName:"span",className:"mord"},(0,n.kt)("span",{parentName:"span",className:"mord mathbf"},"x"),(0,n.kt)("span",{parentName:"span",className:"msupsub"},(0,n.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.2806em"}},(0,n.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,n.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,n.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,n.kt)("span",{parentName:"span",className:"mord mtight"},(0,n.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"t"))))),(0,n.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,n.kt)("span",{parentName:"span"})))))),(0,n.kt)("span",{parentName:"span",className:"mpunct"},","),(0,n.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,n.kt)("span",{parentName:"span",className:"mord mathnormal"},"t"),(0,n.kt)("span",{parentName:"span",className:"mclose"},")"),(0,n.kt)("span",{parentName:"span",className:"mclose delimcenter",style:{top:"0em"}},(0,n.kt)("span",{parentName:"span",className:"delimsizing size3"},")"))),(0,n.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,n.kt)("span",{parentName:"span",className:"mbin"},"+"),(0,n.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}})),(0,n.kt)("span",{parentName:"span",className:"base"},(0,n.kt)("span",{parentName:"span",className:"strut",style:{height:"0.5944em",verticalAlign:"-0.15em"}}),(0,n.kt)("span",{parentName:"span",className:"mord"},(0,n.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"\u03c3"),(0,n.kt)("span",{parentName:"span",className:"msupsub"},(0,n.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.2806em"}},(0,n.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0359em",marginRight:"0.05em"}},(0,n.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,n.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,n.kt)("span",{parentName:"span",className:"mord mtight"},(0,n.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"t"))))),(0,n.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,n.kt)("span",{parentName:"span"})))))),(0,n.kt)("span",{parentName:"span",className:"mord mathbf"},"z")),(0,n.kt)("span",{parentName:"span",className:"tag"},(0,n.kt)("span",{parentName:"span",className:"strut",style:{height:"2.4507em",verticalAlign:"-1.0007em"}}),(0,n.kt)("span",{parentName:"span",className:"mord text"},(0,n.kt)("span",{parentName:"span",className:"mord"},"("),(0,n.kt)("span",{parentName:"span",className:"mord"},(0,n.kt)("span",{parentName:"span",className:"mord"},"2")),(0,n.kt)("span",{parentName:"span",className:"mord"},")"))))))),(0,n.kt)("p",{parentName:"li"},"\u5176\u4e2d\uff0c",(0,n.kt)("span",{parentName:"p",className:"math math-inline"},(0,n.kt)("span",{parentName:"span",className:"katex"},(0,n.kt)("span",{parentName:"span",className:"katex-mathml"},(0,n.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,n.kt)("semantics",{parentName:"math"},(0,n.kt)("mrow",{parentName:"semantics"},(0,n.kt)("msub",{parentName:"mrow"},(0,n.kt)("mi",{parentName:"msub",mathvariant:"bold"},"x"),(0,n.kt)("mi",{parentName:"msub"},"t"))),(0,n.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"\\mathbf{x}_t")))),(0,n.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,n.kt)("span",{parentName:"span",className:"base"},(0,n.kt)("span",{parentName:"span",className:"strut",style:{height:"0.5944em",verticalAlign:"-0.15em"}}),(0,n.kt)("span",{parentName:"span",className:"mord"},(0,n.kt)("span",{parentName:"span",className:"mord mathbf"},"x"),(0,n.kt)("span",{parentName:"span",className:"msupsub"},(0,n.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.2806em"}},(0,n.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,n.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,n.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,n.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"t")))),(0,n.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,n.kt)("span",{parentName:"span"})))))))))),"\u4ee3\u8868\u4e0a\u4e00\u6b65\u9aa4\u4e2d\u8f93\u51fa\u7684\u964d\u566a\u540e\u7684\u56fe\u50cf\uff0c",(0,n.kt)("span",{parentName:"p",className:"math math-inline"},(0,n.kt)("span",{parentName:"span",className:"katex"},(0,n.kt)("span",{parentName:"span",className:"katex-mathml"},(0,n.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,n.kt)("semantics",{parentName:"math"},(0,n.kt)("mrow",{parentName:"semantics"},(0,n.kt)("msub",{parentName:"mrow"},(0,n.kt)("mi",{parentName:"msub",mathvariant:"bold"},"x"),(0,n.kt)("mrow",{parentName:"msub"},(0,n.kt)("mi",{parentName:"mrow"},"t"),(0,n.kt)("mo",{parentName:"mrow"},"\u2212"),(0,n.kt)("mn",{parentName:"mrow"},"1")))),(0,n.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"\\mathbf{x}_{t-1}")))),(0,n.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,n.kt)("span",{parentName:"span",className:"base"},(0,n.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6528em",verticalAlign:"-0.2083em"}}),(0,n.kt)("span",{parentName:"span",className:"mord"},(0,n.kt)("span",{parentName:"span",className:"mord mathbf"},"x"),(0,n.kt)("span",{parentName:"span",className:"msupsub"},(0,n.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,n.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,n.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,n.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,n.kt)("span",{parentName:"span",className:"mord mtight"},(0,n.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"t"),(0,n.kt)("span",{parentName:"span",className:"mbin mtight"},"\u2212"),(0,n.kt)("span",{parentName:"span",className:"mord mtight"},"1"))))),(0,n.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.2083em"}},(0,n.kt)("span",{parentName:"span"})))))))))),"\u4ee3\u8868\u5f53\u524d\u6b65\u9aa4\u5373\u5c06\u8f93\u51fa\u7684\u964d\u566a\u540e\u7684\u56fe\u50cf\uff0c",(0,n.kt)("span",{parentName:"p",className:"math math-inline"},(0,n.kt)("span",{parentName:"span",className:"katex"},(0,n.kt)("span",{parentName:"span",className:"katex-mathml"},(0,n.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,n.kt)("semantics",{parentName:"math"},(0,n.kt)("mrow",{parentName:"semantics"},(0,n.kt)("msub",{parentName:"mrow"},(0,n.kt)("mi",{parentName:"msub"},"\u03f5"),(0,n.kt)("mi",{parentName:"msub"},"\u03b8"))),(0,n.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"\\epsilon_\\theta")))),(0,n.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,n.kt)("span",{parentName:"span",className:"base"},(0,n.kt)("span",{parentName:"span",className:"strut",style:{height:"0.5806em",verticalAlign:"-0.15em"}}),(0,n.kt)("span",{parentName:"span",className:"mord"},(0,n.kt)("span",{parentName:"span",className:"mord mathnormal"},"\u03f5"),(0,n.kt)("span",{parentName:"span",className:"msupsub"},(0,n.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3361em"}},(0,n.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,n.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,n.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,n.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.02778em"}},"\u03b8")))),(0,n.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,n.kt)("span",{parentName:"span"})))))))))),"\u4ee3\u8868Noise Predictor\u9884\u6d4b\u51fa\u7684\u566a\u58f0\uff0c",(0,n.kt)("span",{parentName:"p",className:"math math-inline"},(0,n.kt)("span",{parentName:"span",className:"katex"},(0,n.kt)("span",{parentName:"span",className:"katex-mathml"},(0,n.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,n.kt)("semantics",{parentName:"math"},(0,n.kt)("mrow",{parentName:"semantics"},(0,n.kt)("msub",{parentName:"mrow"},(0,n.kt)("mover",{parentName:"msub",accent:"true"},(0,n.kt)("mi",{parentName:"mover"},"\u03b1"),(0,n.kt)("mo",{parentName:"mover"},"\u02c9")),(0,n.kt)("mn",{parentName:"msub"},"1")),(0,n.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,n.kt)("msub",{parentName:"mrow"},(0,n.kt)("mover",{parentName:"msub",accent:"true"},(0,n.kt)("mi",{parentName:"mover"},"\u03b1"),(0,n.kt)("mo",{parentName:"mover"},"\u02c9")),(0,n.kt)("mn",{parentName:"msub"},"2")),(0,n.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,n.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"."),(0,n.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"."),(0,n.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"."),(0,n.kt)("msub",{parentName:"mrow"},(0,n.kt)("mover",{parentName:"msub",accent:"true"},(0,n.kt)("mi",{parentName:"mover"},"\u03b1"),(0,n.kt)("mo",{parentName:"mover"},"\u02c9")),(0,n.kt)("mi",{parentName:"msub"},"T"))),(0,n.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"\\bar{\\alpha}_1,\\bar{\\alpha}_2,...\\bar{\\alpha}_T")))),(0,n.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,n.kt)("span",{parentName:"span",className:"base"},(0,n.kt)("span",{parentName:"span",className:"strut",style:{height:"0.7622em",verticalAlign:"-0.1944em"}}),(0,n.kt)("span",{parentName:"span",className:"mord"},(0,n.kt)("span",{parentName:"span",className:"mord accent"},(0,n.kt)("span",{parentName:"span",className:"vlist-t"},(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.5678em"}},(0,n.kt)("span",{parentName:"span",style:{top:"-3em"}},(0,n.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,n.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.0037em"}},"\u03b1")),(0,n.kt)("span",{parentName:"span",style:{top:"-3em"}},(0,n.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,n.kt)("span",{parentName:"span",className:"accent-body",style:{left:"-0.2222em"}},(0,n.kt)("span",{parentName:"span",className:"mord"},"\u02c9"))))))),(0,n.kt)("span",{parentName:"span",className:"msupsub"},(0,n.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,n.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0037em",marginRight:"0.05em"}},(0,n.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,n.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,n.kt)("span",{parentName:"span",className:"mord mtight"},"1")))),(0,n.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,n.kt)("span",{parentName:"span"})))))),(0,n.kt)("span",{parentName:"span",className:"mpunct"},","),(0,n.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,n.kt)("span",{parentName:"span",className:"mord"},(0,n.kt)("span",{parentName:"span",className:"mord accent"},(0,n.kt)("span",{parentName:"span",className:"vlist-t"},(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.5678em"}},(0,n.kt)("span",{parentName:"span",style:{top:"-3em"}},(0,n.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,n.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.0037em"}},"\u03b1")),(0,n.kt)("span",{parentName:"span",style:{top:"-3em"}},(0,n.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,n.kt)("span",{parentName:"span",className:"accent-body",style:{left:"-0.2222em"}},(0,n.kt)("span",{parentName:"span",className:"mord"},"\u02c9"))))))),(0,n.kt)("span",{parentName:"span",className:"msupsub"},(0,n.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,n.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0037em",marginRight:"0.05em"}},(0,n.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,n.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,n.kt)("span",{parentName:"span",className:"mord mtight"},"2")))),(0,n.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,n.kt)("span",{parentName:"span"})))))),(0,n.kt)("span",{parentName:"span",className:"mpunct"},","),(0,n.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,n.kt)("span",{parentName:"span",className:"mord"},"..."),(0,n.kt)("span",{parentName:"span",className:"mord"},(0,n.kt)("span",{parentName:"span",className:"mord accent"},(0,n.kt)("span",{parentName:"span",className:"vlist-t"},(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.5678em"}},(0,n.kt)("span",{parentName:"span",style:{top:"-3em"}},(0,n.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,n.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.0037em"}},"\u03b1")),(0,n.kt)("span",{parentName:"span",style:{top:"-3em"}},(0,n.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,n.kt)("span",{parentName:"span",className:"accent-body",style:{left:"-0.2222em"}},(0,n.kt)("span",{parentName:"span",className:"mord"},"\u02c9"))))))),(0,n.kt)("span",{parentName:"span",className:"msupsub"},(0,n.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3283em"}},(0,n.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0037em",marginRight:"0.05em"}},(0,n.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,n.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,n.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.13889em"}},"T")))),(0,n.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,n.kt)("span",{parentName:"span"})))))))))),"\u4ee5\u53ca",(0,n.kt)("span",{parentName:"p",className:"math math-inline"},(0,n.kt)("span",{parentName:"span",className:"katex"},(0,n.kt)("span",{parentName:"span",className:"katex-mathml"},(0,n.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,n.kt)("semantics",{parentName:"math"},(0,n.kt)("mrow",{parentName:"semantics"},(0,n.kt)("msub",{parentName:"mrow"},(0,n.kt)("mi",{parentName:"msub"},"\u03b1"),(0,n.kt)("mn",{parentName:"msub"},"1")),(0,n.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,n.kt)("msub",{parentName:"mrow"},(0,n.kt)("mi",{parentName:"msub"},"\u03b1"),(0,n.kt)("mn",{parentName:"msub"},"2")),(0,n.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,n.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"."),(0,n.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"."),(0,n.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"."),(0,n.kt)("msub",{parentName:"mrow"},(0,n.kt)("mi",{parentName:"msub"},"\u03b1"),(0,n.kt)("mi",{parentName:"msub"},"T"))),(0,n.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"\\alpha_1,\\alpha_2,...\\alpha_T")))),(0,n.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,n.kt)("span",{parentName:"span",className:"base"},(0,n.kt)("span",{parentName:"span",className:"strut",style:{height:"0.625em",verticalAlign:"-0.1944em"}}),(0,n.kt)("span",{parentName:"span",className:"mord"},(0,n.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.0037em"}},"\u03b1"),(0,n.kt)("span",{parentName:"span",className:"msupsub"},(0,n.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,n.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0037em",marginRight:"0.05em"}},(0,n.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,n.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,n.kt)("span",{parentName:"span",className:"mord mtight"},"1")))),(0,n.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,n.kt)("span",{parentName:"span"})))))),(0,n.kt)("span",{parentName:"span",className:"mpunct"},","),(0,n.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,n.kt)("span",{parentName:"span",className:"mord"},(0,n.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.0037em"}},"\u03b1"),(0,n.kt)("span",{parentName:"span",className:"msupsub"},(0,n.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,n.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0037em",marginRight:"0.05em"}},(0,n.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,n.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,n.kt)("span",{parentName:"span",className:"mord mtight"},"2")))),(0,n.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,n.kt)("span",{parentName:"span"})))))),(0,n.kt)("span",{parentName:"span",className:"mpunct"},","),(0,n.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,n.kt)("span",{parentName:"span",className:"mord"},"..."),(0,n.kt)("span",{parentName:"span",className:"mord"},(0,n.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.0037em"}},"\u03b1"),(0,n.kt)("span",{parentName:"span",className:"msupsub"},(0,n.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3283em"}},(0,n.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0037em",marginRight:"0.05em"}},(0,n.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,n.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,n.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.13889em"}},"T")))),(0,n.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,n.kt)("span",{parentName:"span"})))))))))),"\u662f\u4e24\u7ec4\u6743\u91cd\u5e8f\u5217\uff1b")),(0,n.kt)("li",{parentName:"ol"},(0,n.kt)("p",{parentName:"li"},"\u7ed3\u675f\u672c\u6b21for\u5faa\u73af\uff1b")),(0,n.kt)("li",{parentName:"ol"},(0,n.kt)("p",{parentName:"li"},"\u5f53",(0,n.kt)("span",{parentName:"p",className:"math math-inline"},(0,n.kt)("span",{parentName:"span",className:"katex"},(0,n.kt)("span",{parentName:"span",className:"katex-mathml"},(0,n.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,n.kt)("semantics",{parentName:"math"},(0,n.kt)("mrow",{parentName:"semantics"},(0,n.kt)("mi",{parentName:"mrow"},"t"),(0,n.kt)("mo",{parentName:"mrow"},"="),(0,n.kt)("mn",{parentName:"mrow"},"1")),(0,n.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"t=1")))),(0,n.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,n.kt)("span",{parentName:"span",className:"base"},(0,n.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6151em"}}),(0,n.kt)("span",{parentName:"span",className:"mord mathnormal"},"t"),(0,n.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,n.kt)("span",{parentName:"span",className:"mrel"},"="),(0,n.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,n.kt)("span",{parentName:"span",className:"base"},(0,n.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6444em"}}),(0,n.kt)("span",{parentName:"span",className:"mord"},"1"))))),"\u65f6\uff0c\u5f97\u5230",(0,n.kt)("span",{parentName:"p",className:"math math-inline"},(0,n.kt)("span",{parentName:"span",className:"katex"},(0,n.kt)("span",{parentName:"span",className:"katex-mathml"},(0,n.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,n.kt)("semantics",{parentName:"math"},(0,n.kt)("mrow",{parentName:"semantics"},(0,n.kt)("msub",{parentName:"mrow"},(0,n.kt)("mi",{parentName:"msub",mathvariant:"bold"},"x"),(0,n.kt)("mn",{parentName:"msub"},"0"))),(0,n.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"\\mathbf{x}_0")))),(0,n.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,n.kt)("span",{parentName:"span",className:"base"},(0,n.kt)("span",{parentName:"span",className:"strut",style:{height:"0.5944em",verticalAlign:"-0.15em"}}),(0,n.kt)("span",{parentName:"span",className:"mord"},(0,n.kt)("span",{parentName:"span",className:"mord mathbf"},"x"),(0,n.kt)("span",{parentName:"span",className:"msupsub"},(0,n.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,n.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,n.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,n.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,n.kt)("span",{parentName:"span",className:"mord mtight"},"0")))),(0,n.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,n.kt)("span",{parentName:"span"})))))))))),"\uff0c\u5373\u6700\u7ec8\u964d\u566a\u540e\u7684\u56fe\u50cf\u3002"))),(0,n.kt)("p",null,(0,n.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_imagesimage-20231203133323788.png",alt:"image-20231203133323788"})))}c.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/en/assets/js/11f7daa4.f6108978.js b/en/assets/js/11f7daa4.f6108978.js new file mode 100644 index 000000000..d257129cf --- /dev/null +++ b/en/assets/js/11f7daa4.f6108978.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunknpy_notebook=self.webpackChunknpy_notebook||[]).push([[1180],{3905:(e,n,t)=>{t.d(n,{Zo:()=>s,kt:()=>f});var r=t(7294);function o(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function a(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function i(e){for(var n=1;n=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var c=r.createContext({}),p=function(e){var n=r.useContext(c),t=n;return e&&(t="function"==typeof e?e(n):i(i({},n),e)),t},s=function(e){var n=p(e.components);return r.createElement(c.Provider,{value:n},e.children)},u="mdxType",m={inlineCode:"code",wrapper:function(e){var n=e.children;return r.createElement(r.Fragment,{},n)}},d=r.forwardRef((function(e,n){var t=e.components,o=e.mdxType,a=e.originalType,c=e.parentName,s=l(e,["components","mdxType","originalType","parentName"]),u=p(t),d=o,f=u["".concat(c,".").concat(d)]||u[d]||m[d]||a;return t?r.createElement(f,i(i({ref:n},s),{},{components:t})):r.createElement(f,i({ref:n},s))}));function f(e,n){var t=arguments,o=n&&n.mdxType;if("string"==typeof e||o){var a=t.length,i=new Array(a);i[0]=d;var l={};for(var c in n)hasOwnProperty.call(n,c)&&(l[c]=n[c]);l.originalType=e,l[u]="string"==typeof e?e:o,i[1]=l;for(var p=2;p{t.r(n),t.d(n,{assets:()=>c,contentTitle:()=>i,default:()=>m,frontMatter:()=>a,metadata:()=>l,toc:()=>p});var r=t(7462),o=(t(7294),t(3905));const a={},i="\u6392\u5217\u7ec4\u5408\uff08\u6c4230\u7684\u500d\u6570\uff09",l={unversionedId:"Algorithms/\u9898\u89e3/\u6392\u5217\u7ec4\u5408\uff08\u6c4230\u7684\u500d\u6570\uff09",id:"Algorithms/\u9898\u89e3/\u6392\u5217\u7ec4\u5408\uff08\u6c4230\u7684\u500d\u6570\uff09",title:"\u6392\u5217\u7ec4\u5408\uff08\u6c4230\u7684\u500d\u6570\uff09",description:"\u8f93\u5165\u4e00\u4e2a\u6570\uff0c\u6bd4\u5982201\uff0c\u8ba9\u6570\u5b57\u968f\u610f\u7ec4\u5408\uff0c\u662f\u5426\u80fd\u7ec4\u5408\u51fa30\u7684\u500d\u6570\uff0c\u5982\u679c\u80fd\u591f\u7ec4\u5408\u621030\u7684\u500d\u6570\uff0c\u5c31\u8f93\u51fa\u6700\u5927\u7684\u500d\u6570\uff0c\u4e0d\u80fd\u5c31\u8f93\u51fa-1",source:"@site/docs/Algorithms/4-\u9898\u89e3/\u6392\u5217\u7ec4\u5408\uff08\u6c4230\u7684\u500d\u6570\uff09.md",sourceDirName:"Algorithms/4-\u9898\u89e3",slug:"/Algorithms/\u9898\u89e3/\u6392\u5217\u7ec4\u5408\uff08\u6c4230\u7684\u500d\u6570\uff09",permalink:"/en/docs/Algorithms/\u9898\u89e3/\u6392\u5217\u7ec4\u5408\uff08\u6c4230\u7684\u500d\u6570\uff09",draft:!1,tags:[],version:"current",frontMatter:{},sidebar:"algorithms",previous:{title:"\u53cd\u5e8f\u8f93\u51fa",permalink:"/en/docs/Algorithms/\u9898\u89e3/\u53cd\u5e8f\u8f93\u51fa"}},c={},p=[{value:"\u53c2\u8003\u4ee3\u7801",id:"\u53c2\u8003\u4ee3\u7801",level:2},{value:"\u9898\u89e3",id:"\u9898\u89e3",level:2}],s={toc:p},u="wrapper";function m(e){let{components:n,...t}=e;return(0,o.kt)(u,(0,r.Z)({},s,t,{components:n,mdxType:"MDXLayout"}),(0,o.kt)("h1",{id:"\u6392\u5217\u7ec4\u5408\u6c4230\u7684\u500d\u6570"},"\u6392\u5217\u7ec4\u5408\uff08\u6c4230\u7684\u500d\u6570\uff09"),(0,o.kt)("admonition",{type:"tip"},(0,o.kt)("p",{parentName:"admonition"},"\u8f93\u5165\u4e00\u4e2a\u6570\uff0c\u6bd4\u5982201\uff0c\u8ba9\u6570\u5b57\u968f\u610f\u7ec4\u5408\uff0c\u662f\u5426\u80fd\u7ec4\u5408\u51fa30\u7684\u500d\u6570\uff0c\u5982\u679c\u80fd\u591f\u7ec4\u5408\u621030\u7684\u500d\u6570\uff0c\u5c31\u8f93\u51fa\u6700\u5927\u7684\u500d\u6570\uff0c\u4e0d\u80fd\u5c31\u8f93\u51fa-1"),(0,o.kt)("p",{parentName:"admonition"},"\u4f8b\u5982\u8f93\u5165201\u53ef\u4ee5\u968f\u610f\u7ec4\u5408\u6210"),(0,o.kt)("p",{parentName:"admonition"},"201\uff0c210\uff0c012\uff0c021\uff0c102\uff0c120\u7b49\u6570\u5b57"),(0,o.kt)("p",{parentName:"admonition"},"\u5176\u4e2d120\uff0c210\u90fd\u662f30\u7684\u500d\u6570\uff0c\u7531\u4e8e\u8981\u627e\u6700\u5927\u7684\uff0c\u6240\u4ee5\u7b54\u6848\u662f210"),(0,o.kt)("p",{parentName:"admonition"},"\u8f93\u5165\u6837\u4f8b\uff1a201\n\u8f93\u51fa\u6837\u4f8b\uff1a210")),(0,o.kt)("h2",{id:"\u53c2\u8003\u4ee3\u7801"},"\u53c2\u8003\u4ee3\u7801"),(0,o.kt)("pre",null,(0,o.kt)("code",{parentName:"pre",className:"language-c++"},"#include \n\nusing namespace std;\n\nint main() {\n string s;\n cin >> s;\n int maxx = 0, flag = 0;\n sort(s.begin(), s.end());\n do {\n int now = 0;\n for (int i = 0; i < s.size(); i++) {\n now = now * 10 + s[i] - '0';\n }\n if (now % 30 == 0) {\n flag = 1;\n maxx = max(maxx, now);\n }\n } while (next_permutation(s.begin(), s.end()));\n if (flag == 1) {\n cout << maxx << endl;\n return 0;\n }\n else {\n cout << -1 << endl;\n }\n}\n\n")),(0,o.kt)("h2",{id:"\u9898\u89e3"},"\u9898\u89e3"),(0,o.kt)("p",null,"\u4f7f\u7528C++ STL\u63d0\u4f9b\u7684\u6392\u5217\u7ec4\u5408\u6a21\u7248"),(0,o.kt)("p",null,"\u9996\u5148\u5c06\u4ee3\u6392\u5217\u7ec4\u5408\u7684\u5b57\u7b26\u4e32\u6216\u6570\u7ec4\u8fdb\u884c\u6392\u5e8f"),(0,o.kt)("pre",null,(0,o.kt)("code",{parentName:"pre",className:"language-c++"},"sort(list.begin(), list.end());\n")),(0,o.kt)("p",null,"\u4f7f\u7528\u6392\u5217\u7ec4\u5408\u6a21\u7248"),(0,o.kt)("pre",null,(0,o.kt)("code",{parentName:"pre",className:"language-c++"},"do {\n something();\n} while (next_permutation(list.begin(), list.end()));\n")),(0,o.kt)("p",null,"\u6b64\u65f6\uff0c\u5728\u6bcf\u4e00\u4e2ado\u5faa\u73af\u4e2d\uff0clist\u6309\u4ece\u5c0f\u5230\u5927\u7684\u987a\u5e8f\u8fdb\u884c\u6392\u5217\u7ec4\u5408\u904d\u5386"))}m.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/en/assets/js/1331f6cd.f403c407.js b/en/assets/js/1331f6cd.f403c407.js new file mode 100644 index 000000000..7de4fc31d --- /dev/null +++ b/en/assets/js/1331f6cd.f403c407.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunknpy_notebook=self.webpackChunknpy_notebook||[]).push([[7336],{3905:(e,t,r)=>{r.d(t,{Zo:()=>s,kt:()=>d});var n=r(7294);function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function a(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var l=n.createContext({}),p=function(e){var t=n.useContext(l),r=t;return e&&(r="function"==typeof e?e(t):a(a({},t),e)),r},s=function(e){var t=p(e.components);return n.createElement(l.Provider,{value:t},e.children)},u="mdxType",m={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},f=n.forwardRef((function(e,t){var r=e.components,o=e.mdxType,i=e.originalType,l=e.parentName,s=c(e,["components","mdxType","originalType","parentName"]),u=p(r),f=o,d=u["".concat(l,".").concat(f)]||u[f]||m[f]||i;return r?n.createElement(d,a(a({ref:t},s),{},{components:r})):n.createElement(d,a({ref:t},s))}));function d(e,t){var r=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var i=r.length,a=new Array(i);a[0]=f;var c={};for(var l in t)hasOwnProperty.call(t,l)&&(c[l]=t[l]);c.originalType=e,c[u]="string"==typeof e?e:o,a[1]=c;for(var p=2;p{r.r(t),r.d(t,{assets:()=>l,contentTitle:()=>a,default:()=>m,frontMatter:()=>i,metadata:()=>c,toc:()=>p});var n=r(7462),o=(r(7294),r(3905));const i={},a="Welcome",c={unversionedId:"Algorithms/intro",id:"Algorithms/intro",title:"Welcome",description:"\u6b22\u8fce\u6765\u5230\u7b14\u8bb0\u672c\u7684\u7b97\u6cd5\u90e8\u5206",source:"@site/docs/Algorithms/1-intro.md",sourceDirName:"Algorithms",slug:"/Algorithms/intro",permalink:"/en/docs/Algorithms/intro",draft:!1,tags:[],version:"current",sidebarPosition:1,frontMatter:{},sidebar:"algorithms",next:{title:"STL\u6a21\u677f",permalink:"/en/docs/Algorithms/STL\u6a21\u677f"}},l={},p=[{value:"\u652f\u6301\u6211\uff01",id:"\u652f\u6301\u6211",level:2}],s={toc:p},u="wrapper";function m(e){let{components:t,...i}=e;return(0,o.kt)(u,(0,n.Z)({},s,i,{components:t,mdxType:"MDXLayout"}),(0,o.kt)("h1",{id:"welcome"},"Welcome"),(0,o.kt)("admonition",{type:"tip"},(0,o.kt)("p",{parentName:"admonition"},"\u6b22\u8fce\u6765\u5230\u7b14\u8bb0\u672c\u7684\u7b97\u6cd5\u90e8\u5206")),(0,o.kt)("h2",{id:"\u652f\u6301\u6211"},"\u652f\u6301\u6211\uff01"),(0,o.kt)("p",null,"\u5982\u679c\u53ef\u4ee5\u5e2e\u5230\u4f60\u7684\u8bdd\u5c31\u7ed9\u4e2a\u514d\u8d39\u7684Star\u5427\uff01"),(0,o.kt)("p",null,(0,o.kt)("img",{src:r(9163).Z,width:"2778",height:"2046"})))}m.isMDXComponent=!0},9163:(e,t,r)=>{r.d(t,{Z:()=>n});const n=r.p+"assets/images/intro-822c34cd9b5577b06df8bb0956cdf947.png"}}]); \ No newline at end of file diff --git a/en/assets/js/16ddbeca.1e0b0f89.js b/en/assets/js/16ddbeca.1e0b0f89.js new file mode 100644 index 000000000..6e1232b24 --- /dev/null +++ b/en/assets/js/16ddbeca.1e0b0f89.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunknpy_notebook=self.webpackChunknpy_notebook||[]).push([[3328],{3905:(a,e,t)=>{t.d(e,{Zo:()=>o,kt:()=>h});var n=t(7294);function s(a,e,t){return e in a?Object.defineProperty(a,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):a[e]=t,a}function p(a,e){var t=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable}))),t.push.apply(t,n)}return t}function m(a){for(var e=1;e=0||(s[t]=a[t]);return s}(a,e);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(a);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(a,t)&&(s[t]=a[t])}return s}var l=n.createContext({}),i=function(a){var e=n.useContext(l),t=e;return a&&(t="function"==typeof a?a(e):m(m({},e),a)),t},o=function(a){var e=i(a.components);return n.createElement(l.Provider,{value:e},a.children)},N="mdxType",k={inlineCode:"code",wrapper:function(a){var e=a.children;return n.createElement(n.Fragment,{},e)}},c=n.forwardRef((function(a,e){var t=a.components,s=a.mdxType,p=a.originalType,l=a.parentName,o=r(a,["components","mdxType","originalType","parentName"]),N=i(t),c=s,h=N["".concat(l,".").concat(c)]||N[c]||k[c]||p;return t?n.createElement(h,m(m({ref:e},o),{},{components:t})):n.createElement(h,m({ref:e},o))}));function h(a,e){var t=arguments,s=e&&e.mdxType;if("string"==typeof a||s){var p=t.length,m=new Array(p);m[0]=c;var r={};for(var l in e)hasOwnProperty.call(e,l)&&(r[l]=e[l]);r.originalType=a,r[N]="string"==typeof a?a:s,m[1]=r;for(var i=2;i{t.r(e),t.d(e,{assets:()=>l,contentTitle:()=>m,default:()=>k,frontMatter:()=>p,metadata:()=>r,toc:()=>i});var n=t(7462),s=(t(7294),t(3905));const p={},m="\u672c\u79d1\u6bd5\u4e1a\u8bba\u6587\uff1a\u57fa\u4e8e Prompt Learning \u7684\u89c6\u89c9-\u8bed\u8a00\u5927\u6a21\u578b\u5728\u56fe\u50cf\u751f\u6210\u4e2d\u7684\u5e94\u7528\u4e0e\u7814\u7a76",r={unversionedId:"Deep-Learning/\u5b9e\u6218\u7ec3\u4e60/Undergraduate-Dissertation",id:"Deep-Learning/\u5b9e\u6218\u7ec3\u4e60/Undergraduate-Dissertation",title:"\u672c\u79d1\u6bd5\u4e1a\u8bba\u6587\uff1a\u57fa\u4e8e Prompt Learning \u7684\u89c6\u89c9-\u8bed\u8a00\u5927\u6a21\u578b\u5728\u56fe\u50cf\u751f\u6210\u4e2d\u7684\u5e94\u7528\u4e0e\u7814\u7a76",description:"\u672c\u7bc7\u8bba\u6587\u4e3b\u8981\u57fa\u4e8e IPL \u7684\u601d\u60f3\u5b9e\u73b0\u3002\u672c\u4ed3\u5e93\u5927\u90e8\u5206\u4ece IPL-Zero-Shot-Generative-Model-Adaptation fork \u800c\u6765\u5e76\u505a\u51fa\u4e86\u4e00\u5b9a\u4fee\u6539\u3002",source:"@site/docs/Deep-Learning/4-\u5b9e\u6218\u7ec3\u4e60/3-Undergraduate-Dissertation.md",sourceDirName:"Deep-Learning/4-\u5b9e\u6218\u7ec3\u4e60",slug:"/Deep-Learning/\u5b9e\u6218\u7ec3\u4e60/Undergraduate-Dissertation",permalink:"/en/docs/Deep-Learning/\u5b9e\u6218\u7ec3\u4e60/Undergraduate-Dissertation",draft:!1,tags:[],version:"current",sidebarPosition:3,frontMatter:{},sidebar:"deep_learning",previous:{title:"Speaker Classification",permalink:"/en/docs/Deep-Learning/\u5b9e\u6218\u7ec3\u4e60/Speaker Classification"},next:{title:"\u81ea\u6ce8\u610f\u529b\uff08Self-Attention\uff09",permalink:"/en/docs/Deep-Learning/\u5927\u6a21\u578b/Self-Attention"}},l={},i=[{value:"\u4f9d\u8d56",id:"\u4f9d\u8d56",level:2},{value:"\u521b\u5efa Anaconda \u865a\u62df\u73af\u5883",id:"\u521b\u5efa-anaconda-\u865a\u62df\u73af\u5883",level:3},{value:"\u5b89\u88c5\u4f9d\u8d56",id:"\u5b89\u88c5\u4f9d\u8d56",level:3},{value:"\u4e0b\u8f7d\u9884\u8bad\u7ec3\u751f\u6210\u5668",id:"\u4e0b\u8f7d\u9884\u8bad\u7ec3\u751f\u6210\u5668",level:3},{value:"\u6982\u8ff0",id:"\u6982\u8ff0",level:2},{value:"\u6280\u672f\u7ec6\u8282",id:"\u6280\u672f\u7ec6\u8282",level:2},{value:"prompts \u7684\u521d\u59cb\u5316",id:"prompts-\u7684\u521d\u59cb\u5316",level:3},{value:"prompts \u7684 tokenize \u4e0e embedding",id:"prompts-\u7684-tokenize-\u4e0e-embedding",level:3},{value:"compute_text_features \u7684\u5b9e\u73b0\u7ec6\u8282",id:"compute_text_features-\u7684\u5b9e\u73b0\u7ec6\u8282",level:3},{value:"\u8bad\u7ec3 stage 1",id:"\u8bad\u7ec3-stage-1",level:3},{value:"Z\u7a7a\u95f4\u4e0eW\u7a7a\u95f4",id:"z\u7a7a\u95f4\u4e0ew\u7a7a\u95f4",level:4},{value:"\u635f\u5931\u51fd\u6570",id:"\u635f\u5931\u51fd\u6570",level:4},{value:"\u8bad\u7ec3 stage 2",id:"\u8bad\u7ec3-stage-2",level:3},{value:"\u786e\u5b9a\u76ee\u6807\u57df\u751f\u6210\u57df\u9700\u8981\u66f4\u65b0\u7684\u5c42",id:"\u786e\u5b9a\u76ee\u6807\u57df\u751f\u6210\u57df\u9700\u8981\u66f4\u65b0\u7684\u5c42",level:4},{value:"\u635f\u5931\u51fd\u6570",id:"\u635f\u5931\u51fd\u6570-1",level:4},{value:"\u5b9a\u91cf\u5206\u6790\u6307\u6807",id:"\u5b9a\u91cf\u5206\u6790\u6307\u6807",level:2},{value:"\u65b0\u589e\u529f\u80fd",id:"\u65b0\u589e\u529f\u80fd",level:2},{value:"\u81ea\u5b9a\u4e49\u56fe\u50cf\u98ce\u683c\u8fc1\u79fb",id:"\u81ea\u5b9a\u4e49\u56fe\u50cf\u98ce\u683c\u8fc1\u79fb",level:3},{value:"\u4fee\u6539\u65e5\u5fd7",id:"\u4fee\u6539\u65e5\u5fd7",level:4},{value:"\u95ee\u9898\u63d0\u51fa\u4e0e\u6539\u8fdb",id:"\u95ee\u9898\u63d0\u51fa\u4e0e\u6539\u8fdb",level:2},{value:"\u6539\u8fdb\uff1aMapper \u7ed3\u6784\u7684\u8bbe\u8ba1",id:"\u6539\u8fdbmapper-\u7ed3\u6784\u7684\u8bbe\u8ba1",level:3},{value:"\u95ee\u9898\uff1a\u8bad\u7ec3\u9636\u6bb5\u4eba\u5de5 prompts \u7684\u4f5c\u7528\u662f\u4ec0\u4e48\uff1f",id:"\u95ee\u9898\u8bad\u7ec3\u9636\u6bb5\u4eba\u5de5-prompts-\u7684\u4f5c\u7528\u662f\u4ec0\u4e48",level:3},{value:"ctx_init \u7684\u4f5c\u7528\uff08\u4e0e\u57df\u6807\u7b7e\u62fc\u63a5\u540e\u7684 ctx_init\uff09",id:"ctx_init-\u7684\u4f5c\u7528\u4e0e\u57df\u6807\u7b7e\u62fc\u63a5\u540e\u7684-ctx_init",level:4},{value:"templates \u7684\u4f5c\u7528",id:"templates-\u7684\u4f5c\u7528",level:4},{value:"\u601d\u8003",id:"\u601d\u8003",level:4},{value:"\u6539\u8fdb\uff1a\u4f7f\u5b66\u4e60\u5230\u7684 prompts \u5411\u7528\u6237\u81ea\u4e3b\u8bbe\u8ba1\u7684 prompts \u6a21\u677f\u5bf9\u9f50",id:"\u6539\u8fdb\u4f7f\u5b66\u4e60\u5230\u7684-prompts-\u5411\u7528\u6237\u81ea\u4e3b\u8bbe\u8ba1\u7684-prompts-\u6a21\u677f\u5bf9\u9f50",level:3},{value:"\u5bf9 global_clip_loss \u7684\u6539\u8fdb",id:"\u5bf9-global_clip_loss-\u7684\u6539\u8fdb",level:4},{value:"\u5bf9 clip_directional_loss \u7684\u6539\u8fdb",id:"\u5bf9-clip_directional_loss-\u7684\u6539\u8fdb",level:4}],o={toc:i},N="wrapper";function k(a){let{components:e,...t}=a;return(0,s.kt)(N,(0,n.Z)({},o,t,{components:e,mdxType:"MDXLayout"}),(0,s.kt)("h1",{id:"\u672c\u79d1\u6bd5\u4e1a\u8bba\u6587\u57fa\u4e8e-prompt-learning-\u7684\u89c6\u89c9-\u8bed\u8a00\u5927\u6a21\u578b\u5728\u56fe\u50cf\u751f\u6210\u4e2d\u7684\u5e94\u7528\u4e0e\u7814\u7a76"},"\u672c\u79d1\u6bd5\u4e1a\u8bba\u6587\uff1a\u57fa\u4e8e Prompt Learning \u7684\u89c6\u89c9-\u8bed\u8a00\u5927\u6a21\u578b\u5728\u56fe\u50cf\u751f\u6210\u4e2d\u7684\u5e94\u7528\u4e0e\u7814\u7a76"),(0,s.kt)("p",null,"\u672c\u7bc7\u8bba\u6587\u4e3b\u8981\u57fa\u4e8e ",(0,s.kt)("a",{parentName:"p",href:"https://arxiv.org/pdf/2304.03119.pdf"},"IPL")," \u7684\u601d\u60f3\u5b9e\u73b0\u3002\u672c\u4ed3\u5e93\u5927\u90e8\u5206\u4ece ",(0,s.kt)("a",{parentName:"p",href:"https://github.com/Picsart-AI-Research/IPL-Zero-Shot-Generative-Model-Adaptation"},"IPL-Zero-Shot-Generative-Model-Adaptation")," fork \u800c\u6765\u5e76\u505a\u51fa\u4e86\u4e00\u5b9a\u4fee\u6539\u3002"),(0,s.kt)("h2",{id:"\u4f9d\u8d56"},"\u4f9d\u8d56"),(0,s.kt)("h3",{id:"\u521b\u5efa-anaconda-\u865a\u62df\u73af\u5883"},"\u521b\u5efa Anaconda \u865a\u62df\u73af\u5883"),(0,s.kt)("pre",null,(0,s.kt)("code",{parentName:"pre",className:"language-powershell"},"conda create -n ipl python=3.8\nconda activate ipl\n")),(0,s.kt)("h3",{id:"\u5b89\u88c5\u4f9d\u8d56"},"\u5b89\u88c5\u4f9d\u8d56"),(0,s.kt)("p",null,"\u8bf7\u786e\u4fdd NVIDIA \u9a71\u52a8\u3001CUDA \u4ee5\u53ca PyTorch \u4e4b\u95f4\u7248\u672c\u4e92\u76f8\u5339\u914d\u3002"),(0,s.kt)("pre",null,(0,s.kt)("code",{parentName:"pre",className:"language-powershell"},"conda install pytorch torchvision torchaudio pytorch-cuda=11.8 -c pytorch -c nvidia\npip install ftfy regex tqdm ninja\npip install git+https://github.com/openai/CLIP.git\n")),(0,s.kt)("h3",{id:"\u4e0b\u8f7d\u9884\u8bad\u7ec3\u751f\u6210\u5668"},"\u4e0b\u8f7d\u9884\u8bad\u7ec3\u751f\u6210\u5668"),(0,s.kt)("p",null,"\u9884\u8bad\u7ec3\u7684\u6e90\u57df\u751f\u6210\u5668\u53ef\u4ee5\u901a\u8fc7 ",(0,s.kt)("a",{parentName:"p",href:"https://drive.google.com/drive/folders/1FW8XfDbTg9MLEodEeIl6zJEaCVyZ053L?usp=sharing"},"Google Drive "),"\u6216\u8005 ",(0,s.kt)("a",{parentName:"p",href:"https://cloud.tsinghua.edu.cn/d/dbd0955d9a9547dc99f2/"},"Tsinghua Cloud")," \u4e0b\u8f7d\uff0c\u5e76\u5c06\u5176\u7f6e\u4e8e ",(0,s.kt)("inlineCode",{parentName:"p"},"./pre_stylegan")," \u6587\u4ef6\u5939\u4e2d\u3002"),(0,s.kt)("h2",{id:"\u6982\u8ff0"},"\u6982\u8ff0"),(0,s.kt)("h2",{id:"\u6280\u672f\u7ec6\u8282"},"\u6280\u672f\u7ec6\u8282"),(0,s.kt)("h3",{id:"prompts-\u7684\u521d\u59cb\u5316"},"prompts \u7684\u521d\u59cb\u5316"),(0,s.kt)("p",null,(0,s.kt)("inlineCode",{parentName:"p"},"ctx_init "),"\u53c2\u6570\u7528\u4e8e\u521d\u59cb\u5316 prompts\uff0c\u5b98\u65b9\u63d0\u4f9b\u7684\u6f14\u793a context \u662f",(0,s.kt)("inlineCode",{parentName:"p"},"a photo of a"),"\u3002"),(0,s.kt)("pre",null,(0,s.kt)("code",{parentName:"pre",className:"language-python"},'source_prompts = [prompt_prefix + " " + args.source_class]\n target_prompts = [prompt_prefix + " " + args.target_class]\n')),(0,s.kt)("p",null,"\u6e90\u57df\u7684\u521d\u59cb\u63d0\u793a\u8bcd ",(0,s.kt)("inlineCode",{parentName:"p"},"source_prompts")," \u662f ctx_init \u4e0e\u6e90\u57df\u6807\u7b7e\u7684\u7ec4\u5408\u3002\u82e5\u6e90\u57df\u6807\u7b7e\u4e3a ",(0,s.kt)("inlineCode",{parentName:"p"},"photo"),"\uff0c\u5219\u6e90\u57df\u7684\u521d\u59cb\u63d0\u793a\u8bcd\u662f ",(0,s.kt)("inlineCode",{parentName:"p"},"a photo of a photo"),"\u3002\u76ee\u6807\u57df\u7684\u521d\u59cb\u63d0\u793a\u8bcd\u540c\u7406\u3002"),(0,s.kt)("h3",{id:"prompts-\u7684-tokenize-\u4e0e-embedding"},"prompts \u7684 tokenize \u4e0e embedding"),(0,s.kt)("p",null,"\u6e90\u57df\u4ee5\u53ca\u76ee\u6807\u57df\u7684\u521d\u59cb\u63d0\u793a\u8bcd\u63a5\u4e0b\u6765\u4f1a\u8fdb\u884c tokenize\uff1a"),(0,s.kt)("pre",null,(0,s.kt)("code",{parentName:"pre",className:"language-python"},"source_tokenized_prompts = torch.cat([clip.tokenize(p) for p in source_prompts]).to(device)\n# (1, 77) 'sot a photo of a photo eot' \u5728\u7ecf\u8fc7tokenize\u540e\u4e3atensor [[49406, 320, 1125, 539, 320, 1125, 49407, etc]]\n# 77\u662fCLIP\u5728tokenize\u65b9\u6cd5\u4e2d\u7f3a\u7701\u7684context_length\uff0c\u8d85\u8fc7context_length\u5c06\u88abtruncate\uff0c\u4e0d\u8db3\u7684\u5c06\u75280\u8865\u9f50\ntarget_tokenized_prompts = torch.cat([clip.tokenize(p) for p in target_prompts]).to(device)\n# (1, 77) 'sot a photo of a disney' \u5728\u7ecf\u8fc7tokenize\u540e\u4e3atensor [[49406, 320, 1125, 539, 320, 4696, 49407, etc]]\n# 77\u662fCLIP\u5728tokenize\u65b9\u6cd5\u4e2d\u7f3a\u7701\u7684context_length\uff0c\u8d85\u8fc7context_length\u5c06\u88abtruncate\uff0c\u4e0d\u8db3\u7684\u5c06\u75280\u8865\u9f50\n")),(0,s.kt)("p",null,"tokenize \u662f CLIP \u5bf9\u9001\u5165\u7684 prompt \u5b57\u7b26\u4e32\u8fdb\u884c\u6807\u8bb0\u5316\u5904\u7406\uff0c\u5728\u5934\u90e8\u548c\u5c3e\u90e8\u6dfb\u52a0 startoftext \u4ee5\u53ca endoftext \u6807\u8bb0\uff0c\u6700\u7ec8\u4e3a\u4e24\u4e2a\u9996\u5c3e\u6807\u8bb0\u548c\u5168\u90e8\u5355\u8bcd\u751f\u6210 int \u6807\u8bb0\u3002\u5176\u4e2d CLIP \u6a21\u578b\u7f3a\u7701\u7684 ",(0,s.kt)("inlineCode",{parentName:"p"},"context_length")," \u662f77\uff0c\u82e5 prompt \u5927\u4e8e 77 \u4f1a\u8fdb\u884c\u622a\u65ad\uff08truncate\uff09\uff0c\u82e5\u5c0f\u4e8e 77 \u4f1a\u8fdb\u884c\u8865\u96f6\uff0c\u56e0\u6b64 ",(0,s.kt)("inlineCode",{parentName:"p"},"source_tokenized_prompts")," \u4e0e ",(0,s.kt)("inlineCode",{parentName:"p"},"target_tokenized_prompts")," \u7684\u5f62\u72b6\u5747\u4e3a (1, 77)\u3002"),(0,s.kt)("p",null,"\u5728\u63d0\u793a\u8bcd\u6807\u8bb0\u5316\u4e4b\u540e\uff0c\u5c06\u8fdb\u884c\u5d4c\u5165\u8868\u793a embedding\uff1a"),(0,s.kt)("pre",null,(0,s.kt)("code",{parentName:"pre",className:"language-python"},"source_embedding = clip_model.token_embedding(source_tokenized_prompts).type(clip_model.dtype)\n# (1, 77, 512) \u5176\u4e2d512\u662fCLIP\u4e2d\u7684n_dim\uff0ctoken_embedding\u5c42\u7684\u8bcd\u5d4c\u5165\u7684\u7ef4\u5ea6\ntarget_embedding = clip_model.token_embedding(target_tokenized_prompts).type(clip_model.dtype)\n# (1, 77, 512) \u5176\u4e2d512\u662fCLIP\u4e2d\u7684n_dim\uff0ctoken_embedding\u5c42\u7684\u8bcd\u5d4c\u5165\u7684\u7ef4\u5ea6\n")),(0,s.kt)("h3",{id:"compute_text_features-\u7684\u5b9e\u73b0\u7ec6\u8282"},"compute_text_features \u7684\u5b9e\u73b0\u7ec6\u8282"),(0,s.kt)("p",null,"\u5728 Mapper \u751f\u6210 prompts \u540e\u8fdb\u884c prompts \u7684\u7279\u5f81\u63d0\u53d6\u65f6\uff0c\u9700\u8981\u4f20\u5165 tokenize \u4e4b\u540e\u7684\u4eba\u5de5\u521d\u59cb\u5316 prompt\uff08\u2018a photo of a photo.\u2019\u6216\u2018a photo of a disney.\u2019\uff09\uff0c\u7528\u4e8e\u9009\u62e9 eot \u7b26\u53f7\u5bf9\u5e94\u7684\u7ef4\u5ea6\u6765\u8fdb\u884c\u7279\u5f81\u6295\u5f71\uff08",(0,s.kt)("strong",{parentName:"p"},"\u56e0\u4e3a eot \u4f5c\u4e3a\u6574\u4e2a\u53e5\u5b50\u7684\u7ed3\u5c3e\uff0c\u88ab\u8ba4\u4e3a\u8be5\u7ef4\u5ea6\u5305\u542b\u66f4\u591a\u7684\u4fe1\u606f"),"\u3002\u5177\u4f53\u505a\u6cd5\uff1a\u7531\u4e8e\u5728 tokenize \u4e4b\u540e\uff0ceot \u7b26\u53f7\u5bf9\u5e94\u7684\u7ef4\u5ea6\u7684\u503c\u6700\u5927\uff0c\u56e0\u6b64\u53ef\u4f7f\u7528 argmax \u6765\u5b9a\u4f4d\uff09\uff0c\u4ee5\u4fdd\u8bc1\u6700\u540e\u5f97\u5230\u7684\u7279\u5f81\u5f62\u72b6\u4e0e\u56fe\u50cf\u7279\u5f81\u63d0\u53d6\u7684\u8f93\u51fa\u5f62\u72b6\u76f8\u540c\uff0c\u4f7f\u5f97\u540e\u7eed\u53ef\u4ee5\u8fdb\u884c\u5bf9\u6bd4\u5b66\u4e60\u7684\u635f\u5931\u8ba1\u7b97\u3002"),(0,s.kt)("h3",{id:"\u8bad\u7ec3-stage-1"},"\u8bad\u7ec3 stage 1"),(0,s.kt)("h4",{id:"z\u7a7a\u95f4\u4e0ew\u7a7a\u95f4"},"Z\u7a7a\u95f4\u4e0eW\u7a7a\u95f4"),(0,s.kt)("pre",null,(0,s.kt)("code",{parentName:"pre",className:"language-python"},"# Z\u7a7a\u95f4\u5230W\u7a7a\u95f4\u7684\u53d8\u6362\nsample_z = mixing_noise(args.batch_mapper, 512, args.mixing, device)\n# (batch_size, 512)\nsample_w = net.generator_frozen.style(sample_z)\n# (batch_size, 512)\n")),(0,s.kt)("p",null,"Z \u7a7a\u95f4\u548c W \u7a7a\u95f4\u662f StyleGAN \u6a21\u578b\u4e2d\u4e24\u79cd\u4e0d\u540c\u7684\u9690\u53d8\u91cf\u7a7a\u95f4\uff0c\u5206\u522b\u7528\u4e8e\u63a7\u5236\u751f\u6210\u56fe\u50cf\u7684\u968f\u673a\u7279\u5f81\u548c\u6837\u5f0f\u4fe1\u606f\u3002W \u7a7a\u95f4\u901a\u8fc7\u5bf9 Z \u7a7a\u95f4\u7684\u6620\u5c04\u5f97\u5230\u3002"),(0,s.kt)("ol",null,(0,s.kt)("li",{parentName:"ol"},(0,s.kt)("p",{parentName:"li"},(0,s.kt)("strong",{parentName:"p"},"Z \u7a7a\u95f4\uff08Latent Space Z\uff09"),"\uff1a"),(0,s.kt)("ul",{parentName:"li"},(0,s.kt)("li",{parentName:"ul"},"Z \u7a7a\u95f4\u662f\u968f\u673a\u566a\u58f0\u7a7a\u95f4\uff0c\u901a\u5e38\u7531\u968f\u673a\u566a\u58f0\u5411\u91cf\u7ec4\u6210\uff0c\u8868\u793a\u4e86\u56fe\u50cf\u7684\u968f\u673a\u7279\u5f81\u3002"),(0,s.kt)("li",{parentName:"ul"},"\u5728 StyleGAN \u4e2d\uff0cZ \u7a7a\u95f4\u7684\u7ef4\u5ea6\u901a\u5e38\u4e3a 512 \u7ef4\u3002\u8fd9\u610f\u5473\u7740\u4e00\u4e2a Z \u5411\u91cf\u7531 512 \u4e2a\u6570\u5b57\u7ec4\u6210\uff0c\u6bcf\u4e2a\u6570\u5b57\u8868\u793a\u4e86\u56fe\u50cf\u7684\u4e00\u4e2a\u968f\u673a\u7279\u5f81\u7684\u5f3a\u5ea6\u6216\u8005\u65b9\u5411\u3002"))),(0,s.kt)("li",{parentName:"ol"},(0,s.kt)("p",{parentName:"li"},(0,s.kt)("strong",{parentName:"p"},"W \u7a7a\u95f4\uff08Style Space W\uff09"),"\uff1a"),(0,s.kt)("ul",{parentName:"li"},(0,s.kt)("li",{parentName:"ul"},(0,s.kt)("p",{parentName:"li"},"W \u7a7a\u95f4\u7ecf\u8fc7\u7279\u5f81\u89e3\u8026\u7684\u9690\u7a7a\u95f4\uff0c\u4e0e Z \u7a7a\u95f4\u76f8\u6bd4\u66f4\u52a0\u89e3\u8026\u5408\u3002")),(0,s.kt)("li",{parentName:"ul"},(0,s.kt)("p",{parentName:"li"},"\u5728 StyleGAN \u4e2d\uff0cW \u7a7a\u95f4\u7684\u7ef4\u5ea6\u4e5f\u901a\u5e38\u4e3a 512 \u7ef4\uff0c\u662f\u901a\u8fc7mapping network\u8fdb\u884c\u6620\u5c04\u5f97\u5230\u7684\uff0cmapping network\u7531PixelNorm\u5c42\u4e0eEqualLinear\u5c42\u6784\u6210\u3002\u4ee5\u4e0b\u4ee3\u7801\u8282\u9009\u81ea",(0,s.kt)("inlineCode",{parentName:"p"},"sg2_model.py"),"\uff1a"),(0,s.kt)("pre",{parentName:"li"},(0,s.kt)("code",{parentName:"pre",className:"language-python"},"'''mapping network'''\nlayers = [PixelNorm()]\n\nfor i in range(n_mlp):\n layers.append(\n EqualLinear(\n style_dim, style_dim, lr_mul=lr_mlp, activation=\"fused_lrelu\"\n )\n )\n\nself.style = nn.Sequential(*layers)\n"))))),(0,s.kt)("li",{parentName:"ol"},(0,s.kt)("p",{parentName:"li"},(0,s.kt)("strong",{parentName:"p"},"Z \u7a7a\u95f4\u4e0e W \u7a7a\u95f4\u7684\u5173\u7cfb"),"\uff1a"),(0,s.kt)("ul",{parentName:"li"},(0,s.kt)("li",{parentName:"ul"},"\u5728 StyleGAN \u4e2d\uff0c\u901a\u5e38\u4f1a\u5148\u5c06\u4e00\u4e2a Z \u5411\u91cf\u6620\u5c04\u5230 W \u7a7a\u95f4\uff0c\u7136\u540e\u518d\u5c06 W \u5411\u91cf\u8f93\u5165\u5230\u751f\u6210\u5668\u7f51\u7edc\u4e2d\u751f\u6210\u56fe\u50cf\u3002"),(0,s.kt)("li",{parentName:"ul"},"Z \u7a7a\u95f4\u63d0\u4f9b\u4e86\u521d\u59cb\u968f\u673a\u566a\u58f0\uff0c\u800c W \u7a7a\u95f4\u5219\u901a\u8fc7\u7279\u5f81\u89e3\u8026\u63d0\u4f9b\u66f4\u591a\u63a7\u5236\u56fe\u50cf\u98ce\u683c\u7684\u7075\u6d3b\u6027\u3002\u901a\u8fc7\u5bf9 Z \u548c W \u4e4b\u95f4\u7684\u6620\u5c04\u4ee5\u53ca W \u5728\u751f\u6210\u5668\u4e2d\u7684\u5e94\u7528\uff0cStyleGan \u5b9e\u73b0\u4e86\u9ad8\u5ea6\u53ef\u63a7\u4e14\u5177\u6709\u826f\u597d\u751f\u6210\u6548\u679c\u7684\u56fe\u50cf\u5408\u6210\u3002")))),(0,s.kt)("h4",{id:"\u635f\u5931\u51fd\u6570"},"\u635f\u5931\u51fd\u6570"),(0,s.kt)("p",null,"\u5728\u4ee3\u7801\u4e2d\uff0cstage 1 \u7684\u635f\u5931\u51fd\u6570\u662f ",(0,s.kt)("inlineCode",{parentName:"p"},"global_clip_loss"),"\uff0c\u8be5\u635f\u5931\u7531\u4e09\u90e8\u5206\u7ec4\u6210\uff1a"),(0,s.kt)("ol",null,(0,s.kt)("li",{parentName:"ol"},"\u5bf9\u6bd4\u5b66\u4e60\u635f\u5931\uff1aMapper \u751f\u6210\u7684\u6e90\u57df prompts \u7684\u7279\u5f81",(0,s.kt)("strong",{parentName:"li"},"\uff08\u6ce8\u610f\uff0c\u8fd9\u91cc\u7684 prompts \u7279\u5f81\u662f\u4e0e\u4eba\u5de5\u521d\u59cb\u5316\u7684 prompts \u7684\u7279\u5f81\u505a\u8fc7 element-wise \u76f8\u52a0\u540e\u7684\u7279\u5f81\uff09"),"\u4e0e\u6e90\u57df\u56fe\u50cf\u7279\u5f81\u7684\u4f59\u5f26\u76f8\u4f3c\u5ea6\u7ec4\u6210\u7684\u5bf9\u6bd4\u5b66\u4e60\u635f\u5931\uff1b"),(0,s.kt)("li",{parentName:"ol"},"\u76ee\u6807\u57df\u6b63\u5219\u5316\u635f\u5931\uff1aMapper \u751f\u6210\u7684\u76ee\u6807\u57df prompts \u7684\u7279\u5f81\u4e0e\u76ee\u6807\u57df\u6587\u672c\u6807\u7b7e\u7279\u5f81\u7684\u4f59\u5f26\u76f8\u4f3c\u5ea6\uff0c\u8fd9\u91cc\u751f\u6210\u7684\u76ee\u6807\u57df prompts \u7279\u5f81\u540c\u6837\u4e5f\u662f\u4e0e\u4eba\u5de5\u521d\u59cb\u5316\u7684 prompts \u505a\u8fc7\u52a0\u6cd5\u7684\u3002\u6ce8\u610f\u8be5\u635f\u5931\u6709\u6743\u91cd ",(0,s.kt)("inlineCode",{parentName:"li"},"lambda_l"),"\u3002"),(0,s.kt)("li",{parentName:"ol"},"\u6e90\u57df\u6b63\u5219\u5316\uff1a\u8ba1\u7b97\u751f\u6210\u7684\u6e90\u57dfprompts\u4e0e\u6e90\u57df\u6807\u7b7e\u4e4b\u95f4\u7684\u4f59\u5f26\u76f8\u4f3c\u5ea6\uff0c\u7531 ",(0,s.kt)("inlineCode",{parentName:"li"},"lambda_src")," \u63a7\u5236\uff0c\u9ed8\u8ba4\u662f 0\u3002")),(0,s.kt)("h3",{id:"\u8bad\u7ec3-stage-2"},"\u8bad\u7ec3 stage 2"),(0,s.kt)("h4",{id:"\u786e\u5b9a\u76ee\u6807\u57df\u751f\u6210\u57df\u9700\u8981\u66f4\u65b0\u7684\u5c42"},"\u786e\u5b9a\u76ee\u6807\u57df\u751f\u6210\u57df\u9700\u8981\u66f4\u65b0\u7684\u5c42"),(0,s.kt)("p",null,"\u5728\u8bad\u7ec3\u7684\u7b2c\u4e8c\u9636\u6bb5\u8fdb\u884c\u524d\u5411\u4f20\u64ad\u65f6\uff0c\u9700\u8981\u5148\u5bf9\u76ee\u6807\u57df\u751f\u6210\u5668\uff08generator_trainable\uff09\u7684\u6240\u6709\u5c42\u8fdb\u884c unfreeze\uff0c\u7136\u540e\u5bf9\u66f4\u65b0\u54ea\u4e9b\u5c42\u505a\u51fa\u9009\u62e9\uff0c\u627f\u62c5\u9009\u62e9\u4efb\u52a1\u7684\u529f\u80fd\u51fd\u6570\uff1amodel.ZSSGAN.ZSSGAN.determine_opt_layers\uff0c\u6700\u540e freeze \u6240\u6709\u5c42\u540e\u518d unfreeze \u9009\u62e9\u7684\u7f51\u7edc\u5c42\u3002"),(0,s.kt)("pre",null,(0,s.kt)("code",{parentName:"pre",className:"language-python"},"if self.training and self.auto_layer_iters > 0:\n self.generator_trainable.unfreeze_layers() # unfreeze\n train_layers = self.determine_opt_layers() # layer to train\n\n if not isinstance(train_layers, list):\n train_layers = [train_layers]\n\n self.generator_trainable.freeze_layers()\n self.generator_trainable.unfreeze_layers(train_layers) # unfreeze\n")),(0,s.kt)("p",null,"\u5177\u4f53\u9009\u62e9\u5e26\u66f4\u65b0\u7f51\u7edc\u5c42\u7684\u7b56\u7565\uff1a"),(0,s.kt)("p",null,"\u5c06 W \u7a7a\u95f4\u7684\u9690\u5411\u91cf\u9001\u5165\u76ee\u6807\u57df\u751f\u6210\u5668\uff08SG2Generator\uff09\u4e2d\uff0c\u5e76\u8fdb\u884c\u53cd\u5411\u4f20\u64ad\uff0c\u6b64\u65f6\u53ef\u4ee5\u901a\u8fc7\u53cd\u5411\u4f20\u64ad\u540e W \u7a7a\u95f4\u9690\u5411\u91cf\u4e0d\u540c\u7ef4\u5ea6\u7684\u66f4\u65b0\u5e45\u5ea6\u6765\u8861\u91cf\u4e0d\u540c\u7f51\u7edc\u5c42\u7684\u5f71\u54cd\u529b\uff0c\u56e0\u6b64\u9009\u51fa\u66f4\u65b0\u5e45\u5ea6\u6700\u5927\u7684\u7ef4\u5ea6\u5c31\u53ef\u4ee5\u786e\u5b9a\u5728 Model Adaption \u4e2d\u9700\u8981\u66f4\u65b0\u7684\u7f51\u7edc\u5c42\u3002"),(0,s.kt)("p",null,(0,s.kt)("strong",{parentName:"p"},"\u4e4b\u6240\u4ee5 W \u7a7a\u95f4\u7f16\u7801\u5728 n_latent \u7ef4\u5ea6\u4e0a\u7684\u5e8f\u53f7\u5c31\u4ee3\u8868\u7740\u5bf9\u5e94\u7684\u7f51\u7edc\u5c42\u6570\u7684\u5e8f\u53f7\uff0c\u662f\u56e0\u4e3a StyleGAN \u751f\u6210\u5668\u7684\u7ed3\u6784\u51b3\u5b9a\u4e86\u8fd9\u4e00\u70b9\uff1aStyleGAN \u751f\u6210\u5668\u4e2d\uff0cW \u7a7a\u95f4\u7f16\u7801\u7684\u4e0d\u540c\u7ef4\u5ea6\u4f1a\u88ab\u9001\u5165\u751f\u6210\u5668\u7f51\u7edc\u7684\u4e0d\u540c\u5c42\uff0c\u63a7\u5236\u8fd9\u4e9b\u5c42\u7684\u7279\u5f81\u6620\u5c04 (feature mapping)\u3002\u5177\u4f53\u6765\u8bf4\uff0cW \u7a7a\u95f4\u7f16\u7801\u7684\u6bcf\u4e2a\u7ef4\u5ea6\u4f1a\u88ab\u91cd\u590d n_latent \u6b21\uff0c\u4f5c\u4e3a\u8be5\u5c42\u7684\u98ce\u683c\u5411\u91cf (style vector)\uff0c\u901a\u8fc7 AdaIN (Adaptive Instance Normalization) \u5c42\u63a7\u5236\u8be5\u5c42\u7684\u7279\u5f81\u6620\u5c04\u3002\u56e0\u6b64\uff0cW \u7a7a\u95f4\u7f16\u7801\u7684\u7b2c i \u4e2a\u7ef4\u5ea6\u4f1a\u5f71\u54cd\u751f\u6210\u5668\u7f51\u7edc\u4e2d\u7b2c i \u5c42\u7684\u7279\u5f81\u6620\u5c04\u3002\u5f53\u67d0\u4e2a\u7ef4\u5ea6\u7684 W \u503c\u88ab\u66f4\u65b0\u7684\u7a0b\u5ea6\u8f83\u5927\u65f6\uff0c\u5c31\u610f\u5473\u7740\u8be5\u7ef4\u5ea6\u5bf9\u5e94\u7684\u5c42\u5728\u751f\u6210\u76ee\u6807\u56fe\u50cf\u65f6\u8d77\u5230\u4e86\u91cd\u8981\u4f5c\u7528\uff0c\u9700\u8981\u88ab\u4f18\u5316\u3002")),(0,s.kt)("h4",{id:"\u635f\u5931\u51fd\u6570-1"},"\u635f\u5931\u51fd\u6570"),(0,s.kt)("p",null,"stage 2 \u7684\u635f\u5931\u51fd\u6570\u662f CLIP Loss \u7c7b\u4e2d\u7684 ",(0,s.kt)("inlineCode",{parentName:"p"},"clip_directional_loss"),"\uff0c\u8be5\u635f\u5931\u51fd\u6570\u7531\u4e24\u90e8\u5206\u7ec4\u6210\uff1a"),(0,s.kt)("ol",null,(0,s.kt)("li",{parentName:"ol"},(0,s.kt)("inlineCode",{parentName:"li"},"edit_direciton"),"\uff1a\u6e90\u57df\u751f\u6210\u5668\u4e0e\u76ee\u6807\u57df\u751f\u6210\u5668\u751f\u6210\u7684\u56fe\u7247\u5728\u7ecf\u8fc7 image encdoer \u540e\u505a element-wise \u7684\u76f8\u51cf\uff0c\u6700\u540e\u9664\u4ee5\u81ea\u8eab\u7684 L2 Norm \u65b9\u4fbf\u540e\u7eed\u4e0e target_direction \u8ba1\u7b97\u4f59\u5f26\u76f8\u4f3c\u5ea6\u3002"),(0,s.kt)("li",{parentName:"ol"},(0,s.kt)("inlineCode",{parentName:"li"},"target_direction"),"\uff1aMapper \u4ea7\u751f\u7684\u6e90\u57df\u548c\u76ee\u6807\u57df prompts \u7684 text_features \u505aelement-wise\u76f8\u51cf\u540e\uff0c\u6700\u540e\u521d\u4e00\u81ea\u8eab\u7684 L2 Norm \u4ee5\u4fbf\u540e\u7eed\u4e0e edit_direction \u8ba1\u7b97\u4f59\u5f26\u76f8\u4f3c\u5ea6\u3002")),(0,s.kt)("h2",{id:"\u5b9a\u91cf\u5206\u6790\u6307\u6807"},"\u5b9a\u91cf\u5206\u6790\u6307\u6807"),(0,s.kt)("p",null,"\u53c2\u8003\u6587\u732e\uff1a",(0,s.kt)("a",{parentName:"p",href:"https://blog.csdn.net/qq_35586657/article/details/98478508"},"GAN \u7684\u51e0\u79cd\u8bc4\u4ef7\u6307\u6807")),(0,s.kt)("ol",null,(0,s.kt)("li",{parentName:"ol"},(0,s.kt)("p",{parentName:"li"},"Inception Score\uff08IS\uff09"),(0,s.kt)("p",{parentName:"li"},(0,s.kt)("strong",{parentName:"p"},"\u8bc4\u4f30\u56fe\u50cf\u7684\u8d28\u91cf\u548c\u591a\u6837\u6027")),(0,s.kt)("p",{parentName:"li"},"\u8d28\u91cf\uff1a\u628a\u751f\u6210\u7684\u56fe\u7247 ",(0,s.kt)("span",{parentName:"p",className:"math math-inline"},(0,s.kt)("span",{parentName:"span",className:"katex"},(0,s.kt)("span",{parentName:"span",className:"katex-mathml"},(0,s.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,s.kt)("semantics",{parentName:"math"},(0,s.kt)("mrow",{parentName:"semantics"},(0,s.kt)("mi",{parentName:"mrow"},"x")),(0,s.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"x")))),(0,s.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"0.4306em"}}),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal"},"x")))))," \u8f93\u5165 Inception V3 \u4e2d\uff0c\u5f97\u5230\u8f93\u51fa 1000 \u7ef4\u7684\u5411\u91cf ",(0,s.kt)("span",{parentName:"p",className:"math math-inline"},(0,s.kt)("span",{parentName:"span",className:"katex"},(0,s.kt)("span",{parentName:"span",className:"katex-mathml"},(0,s.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,s.kt)("semantics",{parentName:"math"},(0,s.kt)("mrow",{parentName:"semantics"},(0,s.kt)("mi",{parentName:"mrow"},"y")),(0,s.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"y")))),(0,s.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"0.625em",verticalAlign:"-0.1944em"}}),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"y"))))),"\uff0c\u5411\u91cf\u7684\u6bcf\u4e2a\u7ef4\u5ea6\u7684\u503c\u5bf9\u5e94\u56fe\u7247\u5c5e\u4e8e\u67d0\u7c7b\u7684\u6982\u7387\u3002\u5bf9\u4e8e\u4e00\u4e2a\u6e05\u6670\u7684\u56fe\u7247\uff0c\u5b83\u5c5e\u4e8e\u67d0\u4e00\u7c7b\u7684\u6982\u7387\u5e94\u8be5\u975e\u5e38\u5927\uff0c\u800c\u5c5e\u4e8e\u5176\u5b83\u7c7b\u7684\u6982\u7387\u5e94\u8be5\u5f88\u5c0f\u3002\u7528\u4e13\u4e1a\u672f\u8bed\u8bf4\uff0c ",(0,s.kt)("span",{parentName:"p",className:"math math-inline"},(0,s.kt)("span",{parentName:"span",className:"katex"},(0,s.kt)("span",{parentName:"span",className:"katex-mathml"},(0,s.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,s.kt)("semantics",{parentName:"math"},(0,s.kt)("mrow",{parentName:"semantics"},(0,s.kt)("mi",{parentName:"mrow"},"p"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,s.kt)("mi",{parentName:"mrow"},"y"),(0,s.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"\u2223"),(0,s.kt)("mi",{parentName:"mrow"},"x"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,s.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"p(y|x)")))),(0,s.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal"},"p"),(0,s.kt)("span",{parentName:"span",className:"mopen"},"("),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"y"),(0,s.kt)("span",{parentName:"span",className:"mord"},"\u2223"),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal"},"x"),(0,s.kt)("span",{parentName:"span",className:"mclose"},")")))))," \u7684\u71b5\u5e94\u8be5\u5f88\u5c0f\uff08\u71b5\u4ee3\u8868\u6df7\u4e71\u5ea6\uff0c\u5747\u5300\u5206\u5e03\u7684\u6df7\u4e71\u5ea6\u6700\u5927\uff0c\u71b5\u6700\u5927\uff09\u3002"),(0,s.kt)("p",{parentName:"li"},"\u591a\u6837\u6027\uff1a \u5982\u679c\u4e00\u4e2a\u6a21\u578b\u80fd\u751f\u6210\u8db3\u591f\u591a\u6837\u7684\u56fe\u7247\uff0c\u90a3\u4e48\u5b83\u751f\u6210\u7684\u56fe\u7247\u5728\u5404\u4e2a\u7c7b\u522b\u4e2d\u7684\u5206\u5e03\u5e94\u8be5\u662f\u5e73\u5747\u7684\uff0c\u5047\u8bbe\u751f\u6210\u4e86 10000 \u5f20\u56fe\u7247\uff0c\u90a3\u4e48\u6700\u7406\u60f3\u7684\u60c5\u51b5\u662f\uff0c1000 \u7c7b\u4e2d\u6bcf\u7c7b\u751f\u6210\u4e86 10 \u5f20\u3002\u8f6c\u6362\u6210\u672f\u8bed\uff0c\u5c31\u662f\u751f\u6210\u56fe\u7247\u5728\u6240\u6709\u7c7b\u522b\u6982\u7387\u7684\u8fb9\u7f18\u5206\u5e03 ",(0,s.kt)("span",{parentName:"p",className:"math math-inline"},(0,s.kt)("span",{parentName:"span",className:"katex"},(0,s.kt)("span",{parentName:"span",className:"katex-mathml"},(0,s.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,s.kt)("semantics",{parentName:"math"},(0,s.kt)("mrow",{parentName:"semantics"},(0,s.kt)("mi",{parentName:"mrow"},"p"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,s.kt)("mi",{parentName:"mrow"},"y"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,s.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"p(y)")))),(0,s.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal"},"p"),(0,s.kt)("span",{parentName:"span",className:"mopen"},"("),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"y"),(0,s.kt)("span",{parentName:"span",className:"mclose"},")")))))," \u71b5\u5f88\u5927\uff08\u5747\u5300\u5206\u5e03\uff09\u3002"),(0,s.kt)("p",{parentName:"li"},"\u56e0\u6b64\uff0c\u5bf9\u4e8e IS \u6211\u4eec\u9700\u8981\u6c42\u7684\u4e24\u4e2a\u91cf\u5c31\u662f ",(0,s.kt)("span",{parentName:"p",className:"math math-inline"},(0,s.kt)("span",{parentName:"span",className:"katex"},(0,s.kt)("span",{parentName:"span",className:"katex-mathml"},(0,s.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,s.kt)("semantics",{parentName:"math"},(0,s.kt)("mrow",{parentName:"semantics"},(0,s.kt)("mi",{parentName:"mrow"},"p"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,s.kt)("mi",{parentName:"mrow"},"y"),(0,s.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"\u2223"),(0,s.kt)("mi",{parentName:"mrow"},"x"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,s.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"p(y|x)")))),(0,s.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal"},"p"),(0,s.kt)("span",{parentName:"span",className:"mopen"},"("),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"y"),(0,s.kt)("span",{parentName:"span",className:"mord"},"\u2223"),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal"},"x"),(0,s.kt)("span",{parentName:"span",className:"mclose"},")")))))," \u548c ",(0,s.kt)("span",{parentName:"p",className:"math math-inline"},(0,s.kt)("span",{parentName:"span",className:"katex"},(0,s.kt)("span",{parentName:"span",className:"katex-mathml"},(0,s.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,s.kt)("semantics",{parentName:"math"},(0,s.kt)("mrow",{parentName:"semantics"},(0,s.kt)("mi",{parentName:"mrow"},"p"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,s.kt)("mi",{parentName:"mrow"},"y"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,s.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"p(y)")))),(0,s.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal"},"p"),(0,s.kt)("span",{parentName:"span",className:"mopen"},"("),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"y"),(0,s.kt)("span",{parentName:"span",className:"mclose"},")"))))),"\u3002\u5b9e\u9645\u4e2d\uff0c\u9009\u53d6\u5927\u91cf\u751f\u6210\u6837\u672c\uff0c\u7528\u7ecf\u9a8c\u5206\u5e03\u6a21\u62df ",(0,s.kt)("span",{parentName:"p",className:"math math-inline"},(0,s.kt)("span",{parentName:"span",className:"katex"},(0,s.kt)("span",{parentName:"span",className:"katex-mathml"},(0,s.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,s.kt)("semantics",{parentName:"math"},(0,s.kt)("mrow",{parentName:"semantics"},(0,s.kt)("mi",{parentName:"mrow"},"p"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,s.kt)("mi",{parentName:"mrow"},"y"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,s.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"p(y)")))),(0,s.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal"},"p"),(0,s.kt)("span",{parentName:"span",className:"mopen"},"("),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"y"),(0,s.kt)("span",{parentName:"span",className:"mclose"},")"))))),"\uff1a"),(0,s.kt)("div",{parentName:"li",className:"math math-display"},(0,s.kt)("span",{parentName:"div",className:"katex-display"},(0,s.kt)("span",{parentName:"span",className:"katex"},(0,s.kt)("span",{parentName:"span",className:"katex-mathml"},(0,s.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,s.kt)("semantics",{parentName:"math"},(0,s.kt)("mrow",{parentName:"semantics"},(0,s.kt)("mover",{parentName:"mrow",accent:"true"},(0,s.kt)("mi",{parentName:"mover"},"p"),(0,s.kt)("mo",{parentName:"mover"},"^")),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,s.kt)("mi",{parentName:"mrow"},"y"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,s.kt)("mo",{parentName:"mrow"},"="),(0,s.kt)("mfrac",{parentName:"mrow"},(0,s.kt)("mn",{parentName:"mfrac"},"1"),(0,s.kt)("mi",{parentName:"mfrac"},"N")),(0,s.kt)("munderover",{parentName:"mrow"},(0,s.kt)("mo",{parentName:"munderover"},"\u2211"),(0,s.kt)("mrow",{parentName:"munderover"},(0,s.kt)("mi",{parentName:"mrow"},"i"),(0,s.kt)("mo",{parentName:"mrow"},"="),(0,s.kt)("mn",{parentName:"mrow"},"1")),(0,s.kt)("mi",{parentName:"munderover"},"N")),(0,s.kt)("mi",{parentName:"mrow"},"p"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,s.kt)("mi",{parentName:"mrow"},"y"),(0,s.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"\u2223"),(0,s.kt)("msup",{parentName:"mrow"},(0,s.kt)("mi",{parentName:"msup",mathvariant:"bold"},"x"),(0,s.kt)("mrow",{parentName:"msup"},(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,s.kt)("mi",{parentName:"mrow"},"i"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},")"))),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,s.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"\\hat{p}(y)=\\frac{1}{N}\\sum_{i=1}^{N}p(y|\\mathbf{x}^{(i)})")))),(0,s.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,s.kt)("span",{parentName:"span",className:"mord accent"},(0,s.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.6944em"}},(0,s.kt)("span",{parentName:"span",style:{top:"-3em"}},(0,s.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal"},"p")),(0,s.kt)("span",{parentName:"span",style:{top:"-3em"}},(0,s.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,s.kt)("span",{parentName:"span",className:"accent-body",style:{left:"-0.1667em"}},(0,s.kt)("span",{parentName:"span",className:"mord"},"^")))),(0,s.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.1944em"}},(0,s.kt)("span",{parentName:"span"}))))),(0,s.kt)("span",{parentName:"span",className:"mopen"},"("),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"y"),(0,s.kt)("span",{parentName:"span",className:"mclose"},")"),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,s.kt)("span",{parentName:"span",className:"mrel"},"="),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"3.106em",verticalAlign:"-1.2777em"}}),(0,s.kt)("span",{parentName:"span",className:"mord"},(0,s.kt)("span",{parentName:"span",className:"mopen nulldelimiter"}),(0,s.kt)("span",{parentName:"span",className:"mfrac"},(0,s.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.3214em"}},(0,s.kt)("span",{parentName:"span",style:{top:"-2.314em"}},(0,s.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,s.kt)("span",{parentName:"span",className:"mord"},(0,s.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.10903em"}},"N"))),(0,s.kt)("span",{parentName:"span",style:{top:"-3.23em"}},(0,s.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,s.kt)("span",{parentName:"span",className:"frac-line",style:{borderBottomWidth:"0.04em"}})),(0,s.kt)("span",{parentName:"span",style:{top:"-3.677em"}},(0,s.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,s.kt)("span",{parentName:"span",className:"mord"},(0,s.kt)("span",{parentName:"span",className:"mord"},"1")))),(0,s.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.686em"}},(0,s.kt)("span",{parentName:"span"}))))),(0,s.kt)("span",{parentName:"span",className:"mclose nulldelimiter"})),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,s.kt)("span",{parentName:"span",className:"mop op-limits"},(0,s.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.8283em"}},(0,s.kt)("span",{parentName:"span",style:{top:"-1.8723em",marginLeft:"0em"}},(0,s.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.05em"}}),(0,s.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,s.kt)("span",{parentName:"span",className:"mord mtight"},(0,s.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"i"),(0,s.kt)("span",{parentName:"span",className:"mrel mtight"},"="),(0,s.kt)("span",{parentName:"span",className:"mord mtight"},"1")))),(0,s.kt)("span",{parentName:"span",style:{top:"-3.05em"}},(0,s.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.05em"}}),(0,s.kt)("span",{parentName:"span"},(0,s.kt)("span",{parentName:"span",className:"mop op-symbol large-op"},"\u2211"))),(0,s.kt)("span",{parentName:"span",style:{top:"-4.3em",marginLeft:"0em"}},(0,s.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.05em"}}),(0,s.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,s.kt)("span",{parentName:"span",className:"mord mtight"},(0,s.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.10903em"}},"N"))))),(0,s.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.2777em"}},(0,s.kt)("span",{parentName:"span"}))))),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal"},"p"),(0,s.kt)("span",{parentName:"span",className:"mopen"},"("),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"y"),(0,s.kt)("span",{parentName:"span",className:"mord"},"\u2223"),(0,s.kt)("span",{parentName:"span",className:"mord"},(0,s.kt)("span",{parentName:"span",className:"mord mathbf"},"x"),(0,s.kt)("span",{parentName:"span",className:"msupsub"},(0,s.kt)("span",{parentName:"span",className:"vlist-t"},(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.938em"}},(0,s.kt)("span",{parentName:"span",style:{top:"-3.113em",marginRight:"0.05em"}},(0,s.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,s.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,s.kt)("span",{parentName:"span",className:"mord mtight"},(0,s.kt)("span",{parentName:"span",className:"mopen mtight"},"("),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"i"),(0,s.kt)("span",{parentName:"span",className:"mclose mtight"},")"))))))))),(0,s.kt)("span",{parentName:"span",className:"mclose"},")")))))),(0,s.kt)("p",{parentName:"li"},"Inception Score \u7684\u5b8c\u6574\u516c\u5f0f\u5982\u4e0b\uff1a"),(0,s.kt)("div",{parentName:"li",className:"math math-display"},(0,s.kt)("span",{parentName:"div",className:"katex-display"},(0,s.kt)("span",{parentName:"span",className:"katex"},(0,s.kt)("span",{parentName:"span",className:"katex-mathml"},(0,s.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,s.kt)("semantics",{parentName:"math"},(0,s.kt)("mrow",{parentName:"semantics"},(0,s.kt)("mrow",{parentName:"mrow"},(0,s.kt)("mi",{parentName:"mrow",mathvariant:"bold"},"I"),(0,s.kt)("mi",{parentName:"mrow",mathvariant:"bold"},"S")),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,s.kt)("mi",{parentName:"mrow"},"G"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,s.kt)("mo",{parentName:"mrow"},"="),(0,s.kt)("mi",{parentName:"mrow"},"exp"),(0,s.kt)("mo",{parentName:"mrow"},"\u2061"),(0,s.kt)("mrow",{parentName:"mrow"},(0,s.kt)("mo",{parentName:"mrow",fence:"true"},"("),(0,s.kt)("msub",{parentName:"mrow"},(0,s.kt)("mi",{parentName:"msub",mathvariant:"double-struck"},"E"),(0,s.kt)("mrow",{parentName:"msub"},(0,s.kt)("mi",{parentName:"mrow",mathvariant:"bold"},"x"),(0,s.kt)("mo",{parentName:"mrow"},"\u223c"),(0,s.kt)("msub",{parentName:"mrow"},(0,s.kt)("mi",{parentName:"msub"},"p"),(0,s.kt)("mi",{parentName:"msub"},"g")))),(0,s.kt)("msub",{parentName:"mrow"},(0,s.kt)("mi",{parentName:"msub"},"D"),(0,s.kt)("mrow",{parentName:"msub"},(0,s.kt)("mi",{parentName:"mrow"},"K"),(0,s.kt)("mi",{parentName:"mrow"},"L"))),(0,s.kt)("mrow",{parentName:"mrow"},(0,s.kt)("mo",{parentName:"mrow",fence:"true"},"("),(0,s.kt)("mi",{parentName:"mrow"},"p"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,s.kt)("mi",{parentName:"mrow"},"y"),(0,s.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"\u2223"),(0,s.kt)("mi",{parentName:"mrow",mathvariant:"bold"},"x"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,s.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"\u2223"),(0,s.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"\u2223"),(0,s.kt)("mi",{parentName:"mrow"},"p"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,s.kt)("mi",{parentName:"mrow"},"y"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,s.kt)("mo",{parentName:"mrow",fence:"true"},")")),(0,s.kt)("mo",{parentName:"mrow",fence:"true"},")"))),(0,s.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"\\mathbf{IS}(G)=\\exp\\left(\\mathbb{E}_{\\mathbf{x}\\sim p_g}D_{KL}\\left(p(y|\\mathbf{x})||p(y)\\right)\\right)")))),(0,s.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,s.kt)("span",{parentName:"span",className:"mord"},(0,s.kt)("span",{parentName:"span",className:"mord mathbf"},"IS")),(0,s.kt)("span",{parentName:"span",className:"mopen"},"("),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal"},"G"),(0,s.kt)("span",{parentName:"span",className:"mclose"},")"),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,s.kt)("span",{parentName:"span",className:"mrel"},"="),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"1.2em",verticalAlign:"-0.35em"}}),(0,s.kt)("span",{parentName:"span",className:"mop"},"exp"),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,s.kt)("span",{parentName:"span",className:"minner"},(0,s.kt)("span",{parentName:"span",className:"mopen delimcenter",style:{top:"0em"}},(0,s.kt)("span",{parentName:"span",className:"delimsizing size1"},"(")),(0,s.kt)("span",{parentName:"span",className:"mord"},(0,s.kt)("span",{parentName:"span",className:"mord mathbb"},"E"),(0,s.kt)("span",{parentName:"span",className:"msupsub"},(0,s.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.1611em"}},(0,s.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,s.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,s.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,s.kt)("span",{parentName:"span",className:"mord mtight"},(0,s.kt)("span",{parentName:"span",className:"mord mathbf mtight"},"x"),(0,s.kt)("span",{parentName:"span",className:"mrel mtight"},"\u223c"),(0,s.kt)("span",{parentName:"span",className:"mord mtight"},(0,s.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"p"),(0,s.kt)("span",{parentName:"span",className:"msupsub"},(0,s.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.1645em"}},(0,s.kt)("span",{parentName:"span",style:{top:"-2.357em",marginLeft:"0em",marginRight:"0.0714em"}},(0,s.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.5em"}}),(0,s.kt)("span",{parentName:"span",className:"sizing reset-size3 size1 mtight"},(0,s.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.03588em"}},"g")))),(0,s.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.2819em"}},(0,s.kt)("span",{parentName:"span"})))))))))),(0,s.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3473em"}},(0,s.kt)("span",{parentName:"span"})))))),(0,s.kt)("span",{parentName:"span",className:"mord"},(0,s.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02778em"}},"D"),(0,s.kt)("span",{parentName:"span",className:"msupsub"},(0,s.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3283em"}},(0,s.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0278em",marginRight:"0.05em"}},(0,s.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,s.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,s.kt)("span",{parentName:"span",className:"mord mtight"},(0,s.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.07153em"}},"K"),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"L"))))),(0,s.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,s.kt)("span",{parentName:"span"})))))),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,s.kt)("span",{parentName:"span",className:"minner"},(0,s.kt)("span",{parentName:"span",className:"mopen delimcenter",style:{top:"0em"}},"("),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal"},"p"),(0,s.kt)("span",{parentName:"span",className:"mopen"},"("),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"y"),(0,s.kt)("span",{parentName:"span",className:"mord"},"\u2223"),(0,s.kt)("span",{parentName:"span",className:"mord mathbf"},"x"),(0,s.kt)("span",{parentName:"span",className:"mclose"},")"),(0,s.kt)("span",{parentName:"span",className:"mord"},"\u2223\u2223"),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal"},"p"),(0,s.kt)("span",{parentName:"span",className:"mopen"},"("),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"y"),(0,s.kt)("span",{parentName:"span",className:"mclose"},")"),(0,s.kt)("span",{parentName:"span",className:"mclose delimcenter",style:{top:"0em"}},")")),(0,s.kt)("span",{parentName:"span",className:"mclose delimcenter",style:{top:"0em"}},(0,s.kt)("span",{parentName:"span",className:"delimsizing size1"},")")))))))),(0,s.kt)("p",{parentName:"li"},"\u901a\u5e38\u8ba1\u7b97 Inception Score \u65f6\uff0c\u4f1a\u751f\u6210 50000 \u4e2a\u56fe\u7247\uff0c\u7136\u540e\u628a\u5b83\u5206\u6210 10 \u4efd\uff0c\u6bcf\u4efd 5000 \u4e2a\uff0c\u5206\u522b\u4ee3\u5165\u516c\u5f0f\u8ba1\u7b97 10 \u6b21 Inception Score\uff0c\u518d\u8ba1\u7b97\u5747\u503c\u548c\u65b9\u5dee\uff0c\u4f5c\u4e3a\u6700\u7ec8\u7684\u8861\u91cf\u6307\u6807\uff08\u5747\u503c\xb1\u65b9\u5dee\uff09\u3002\u4f46\u662f 5000 \u4e2a\u6837\u672c\u5f80\u5f80\u4e0d\u8db3\u4ee5\u5f97\u5230\u51c6\u786e\u7684\u8fb9\u7f18\u5206\u5e03 ",(0,s.kt)("span",{parentName:"p",className:"math math-inline"},(0,s.kt)("span",{parentName:"span",className:"katex"},(0,s.kt)("span",{parentName:"span",className:"katex-mathml"},(0,s.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,s.kt)("semantics",{parentName:"math"},(0,s.kt)("mrow",{parentName:"semantics"},(0,s.kt)("mi",{parentName:"mrow"},"p"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,s.kt)("mi",{parentName:"mrow"},"y"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,s.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"p(y)")))),(0,s.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal"},"p"),(0,s.kt)("span",{parentName:"span",className:"mopen"},"("),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"y"),(0,s.kt)("span",{parentName:"span",className:"mclose"},")"))))),"\uff0c\u5c24\u5176\u662f\u50cf ImageNet \u8fd9\u79cd\u5305\u542b 1000 \u4e2a\u7c7b\u7684\u6570\u636e\u96c6\u3002"),(0,s.kt)("p",{parentName:"li"},"StyleGAN-nada \u4ee5\u53ca IPL \u5728\u7ecf\u8fc7 batch_size \u4e3a 2\uff0citeration \u4e3a 300 \u7684\u8bad\u7ec3\u540e\uff08\u5176\u4e2d IPL \u7684 Mapper \u662f\u4ee5 batch_size \u4e3a 32\uff0citeration \u4e3a 300 \u8fdb\u884c\u8bad\u7ec3\u7684\uff09\uff0c\u4e8c\u8005\u7684 IS \u5206\u522b\u4e3a ",(0,s.kt)("inlineCode",{parentName:"p"},"(2.2960, 0.2042)")," \u4ee5\u53ca ",(0,s.kt)("inlineCode",{parentName:"p"},"(2.6420, 0.1959)"),"\u3002")),(0,s.kt)("li",{parentName:"ol"},(0,s.kt)("p",{parentName:"li"},"Fr\xe9chet Inception Distance\uff08FID\uff09"),(0,s.kt)("p",{parentName:"li"},(0,s.kt)("strong",{parentName:"p"},"\u8bc4\u4f30\u76ee\u6807\u57df\u7684\u98ce\u683c")),(0,s.kt)("p",{parentName:"li"},"\u8ba1\u7b97 IS \u65f6\u53ea\u8003\u8651\u4e86\u751f\u6210\u6837\u672c\uff0c\u6ca1\u6709\u8003\u8651\u771f\u5b9e\u6570\u636e\uff0c\u5373 ",(0,s.kt)("strong",{parentName:"p"},"IS \u65e0\u6cd5\u53cd\u6620\u771f\u5b9e\u6570\u636e\u548c\u6837\u672c\u4e4b\u95f4\u7684\u8ddd\u79bb"),"\uff0cIS \u5224\u65ad\u6570\u636e\u771f\u5b9e\u6027\u7684\u4f9d\u636e\uff0c\u6e90\u4e8e Inception V3 \u7684\u8bad\u7ec3\u96c6 ImageNet\uff0c\u5728 Inception V3 \u7684\u201c\u4e16\u754c\u89c2\u201d\u4e0b\uff0c\u51e1\u662f\u4e0d\u50cf ImageNet \u7684\u6570\u636e\uff0c\u90fd\u662f\u4e0d\u771f\u5b9e\u7684\uff0c\u90fd\u4e0d\u80fd\u4fdd\u8bc1\u8f93\u51fa\u4e00\u4e2a sharp \u7684 predition distribution\u3002\u56e0\u6b64\uff0c\u8981\u60f3\u66f4\u597d\u5730\u8bc4\u4ef7\u751f\u6210\u7f51\u7edc\uff0c\u5c31\u8981\u4f7f\u7528\u66f4\u52a0\u6709\u6548\u7684\u65b9\u6cd5\u8ba1\u7b97\u771f\u5b9e\u5206\u5e03\u4e0e\u751f\u6210\u6837\u672c\u4e4b\u95f4\u7684\u8ddd\u79bb\u3002"),(0,s.kt)("p",{parentName:"li"},"FID \u8ddd\u79bb\u8ba1\u7b97\u771f\u5b9e\u6837\u672c\uff0c\u751f\u6210\u6837\u672c\u5728\u7279\u5f81\u7a7a\u95f4\u4e4b\u95f4\u7684\u8ddd\u79bb\u3002\u9996\u5148\u5229\u7528 Inception \u7f51\u7edc\u6765\u63d0\u53d6\u7279\u5f81\uff0c\u7136\u540e\u4f7f\u7528\u9ad8\u65af\u6a21\u578b\u5bf9\u7279\u5f81\u7a7a\u95f4\u8fdb\u884c\u5efa\u6a21\uff0c\u518d\u53bb\u6c42\u89e3\u4e24\u4e2a\u7279\u5f81\u4e4b\u95f4\u7684\u8ddd\u79bb\uff0c\u8f83\u4f4e\u7684 FID \u610f\u5473\u7740\u8f83\u9ad8\u56fe\u7247\u7684\u8d28\u91cf\u548c\u591a\u6837\u6027\u3002"),(0,s.kt)("p",{parentName:"li"},"StyleGAN-nada \u4ee5\u53ca IPL \u5728\u7ecf\u8fc7 batch_size \u4e3a 2\uff0citeration \u4e3a 300 \u7684\u8bad\u7ec3\u540e\uff08\u5176\u4e2d IPL \u7684 Mapper \u662f\u4ee5 batch_size \u4e3a 32\uff0citeration \u4e3a 300 \u8fdb\u884c\u8bad\u7ec3\u7684\uff09\uff0c\u4e8c\u8005\u7684 FID \u5206\u522b\u4e3a ",(0,s.kt)("inlineCode",{parentName:"p"},"84")," \u4ee5\u53ca ",(0,s.kt)("inlineCode",{parentName:"p"},"58"),"\u3002")),(0,s.kt)("li",{parentName:"ol"},(0,s.kt)("p",{parentName:"li"},"Single Image Fr\xe9chet Inception Score\uff08SIFID\uff09"),(0,s.kt)("p",{parentName:"li"},"FID \u6d4b\u91cf\u751f\u6210\u7684\u56fe\u50cf\u7684\u6df1\u5c42\u7279\u5f81\u5206\u5e03\u4e0e\u771f\u5b9e\u56fe\u50cf\u7684\u5206\u5e03\u4e4b\u95f4\u7684\u504f\u5dee\u3002\u5728 ICCV 2019 Best Paper \u4e2d\u63d0\u51fa\u4e86 SIFID\uff0c\u53ea\u4f7f\u7528\u4e00\u5f20\u771f\u5b9e\u76ee\u6807\u57df\u7684\u56fe\u50cf\u3002\u4e0e FID \u4e0d\u540c\uff0cSFID \u4e0d\u4f7f\u7528 Inception Network \u4e2d\u6700\u540e\u4e00\u4e2a\u6c60\u5316\u5c42\u4e4b\u540e\u7684\u6fc0\u6d3b\u77e2\u91cf\uff08\u6bcf\u4e2a\u56fe\u50cf\u4e00\u4e2a\u5411\u91cf\uff09\uff0c\u800c\u662f\u5728\u7b2c\u4e8c\u4e2a\u6c60\u5c42\u4e4b\u524d\u7684\u5377\u79ef\u5c42\u8f93\u51fa\u5904\u4f7f\u7528\u6df1\u5c42\u7279\u5f81\u7684\u5185\u90e8\u5206\u5e03\uff08feature map \u4e2d\u6bcf\u4e2a\u4f4d\u7f6e\u4e00\u4e2a\u5411\u91cf\uff09\u3002\u6700\u7ec8 SIFID \u662f\u771f\u5b9e\u56fe\u50cf\u548c\u751f\u6210\u7684\u6837\u672c\u4e2d\u8fd9\u4e9b\u7279\u5f81\u7684\u7edf\u8ba1\u6570\u636e\u4e4b\u95f4\u7684 FID\u3002")),(0,s.kt)("li",{parentName:"ol"},(0,s.kt)("p",{parentName:"li"},"Structural Consistency Score\uff08SCS\uff09"),(0,s.kt)("p",{parentName:"li"},"\u8bc4\u4f30\u56fe\u50cf\u7684\u7ed3\u6784\u4fdd\u5b58\u80fd\u529b")),(0,s.kt)("li",{parentName:"ol"},(0,s.kt)("p",{parentName:"li"},"Identity Similarity\uff08ID\uff09"),(0,s.kt)("p",{parentName:"li"},"\u8bc4\u4f30\u56fe\u50cf\u7684\u7279\u5f81\u4fdd\u5b58\u80fd\u529b"))),(0,s.kt)("h2",{id:"\u65b0\u589e\u529f\u80fd"},"\u65b0\u589e\u529f\u80fd"),(0,s.kt)("h3",{id:"\u81ea\u5b9a\u4e49\u56fe\u50cf\u98ce\u683c\u8fc1\u79fb"},"\u81ea\u5b9a\u4e49\u56fe\u50cf\u98ce\u683c\u8fc1\u79fb"),(0,s.kt)("p",null,"\u65b0\u589e\u4e86\u81ea\u5b9a\u4e49\u56fe\u50cf\u98ce\u683c\u8fc1\u79fb\u529f\u80fd\u3002"),(0,s.kt)("p",null," ",(0,s.kt)("a",{parentName:"p",href:"https://yuval-alaluf.github.io/hyperstyle/"},"HyperStyle "),"\u4e2d\u7684 e4e encoder \u5c06\u81ea\u5b9a\u4e49\u7684\u771f\u5b9e\u56fe\u50cf\u7f16\u7801\u81f3 StyleGAN2 \u4e2d\u7684 W \u7a7a\u95f4\u751f\u6210 latent codes\uff0c\u518d\u5c06\u5176\u5206\u522b\u8f93\u5165\u81f3\u6e90\u57df\u751f\u6210\u5668\u4ee5\u53ca\u76ee\u6807\u57df\u751f\u6210\u5668\u4ee5\u4ee3\u66ff\u539f\u59cb\u7684\u4ece\u6b63\u6001\u5206\u5e03\u4e2d sample \u51fa\u7684\u968f\u673a\u5411\u91cf\u751f\u6210\u7684 ",(0,s.kt)("inlineCode",{parentName:"p"},"w_codes"),"\uff0c\u4ece\u800c\u5f97\u5230\u76f8\u5e94\u7684\u56fe\u7247\u3002\u5176\u4e2d e4e encoder \u6765\u6e90\u4e8e HyperStyle \u63d0\u4f9b\u7684\u9884\u8bad\u7ec3 checkpoint\u3002"),(0,s.kt)("p",null,"\u4f7f\u7528\u65b9\u6cd5\uff1a\u8fd0\u884c ",(0,s.kt)("inlineCode",{parentName:"p"},"inference.py"),"\uff0c\u8bbe\u7f6e\u5bf9\u5e94\u7684\u53c2\u6570\uff0c\u5982\u751f\u6210\u5668\u4ee5\u53ca e4e encoder \u7684\u8def\u5f84\u3001\u56fe\u50cf\u8def\u5f84\u7b49\uff0c\u6700\u540e\u8fd0\u884c\u5373\u53ef\u3002"),(0,s.kt)("h4",{id:"\u4fee\u6539\u65e5\u5fd7"},"\u4fee\u6539\u65e5\u5fd7"),(0,s.kt)("ol",null,(0,s.kt)("li",{parentName:"ol"},"\u7b2c\u4e00\u6b21\u5c1d\u8bd5\u53ea\u52a0\u8f7d\u4e86 ",(0,s.kt)("inlineCode",{parentName:"li"},"w_encoder")," \u7c7b\u53ca\u5176\u5bf9\u5e94 checkpoint \u53c2\u6570\uff0c\u5bfc\u81f4\u5e76\u672a\u5c06\u771f\u5b9e\u56fe\u7247\u7f16\u7801\u5230 StyleGAN \u7684 W \u7a7a\u95f4\u4e2d\uff0c\u6ca1\u6709 inversion \u51fa\u5408\u7406\u7684\u7ed3\u679c"),(0,s.kt)("li",{parentName:"ol"},"\u7b2c\u4e8c\u6b21\u5c1d\u8bd5\u4f7f\u7528\u4e86 ",(0,s.kt)("inlineCode",{parentName:"li"},"restyle_e4e_encoder"),"\uff0c\u4f46\u662f\u6ca1\u6709\u4f7f\u7528 dlib \u8fdb\u884c alignment\uff0c\u4e5f\u6ca1\u6709\u4f7f\u7528 restyle \u6a21\u578b\u5728\u53cd\u6f14\u65f6\u4f7f\u7528\u7684\u591a\u6b21\u8fdb\u884c\u524d\u5411\u4f20\u64ad\u6765\u4fee\u6b63 latent code \u7684\u7b56\u7565\u3002\u6b64\u6b21\u5c1d\u8bd5\u867d\u7136\u53cd\u6f14\u51fa\u4e86\u5408\u7406\u7684\u4eba\u50cf\uff0c\u4f46\u662f\u4eba\u50cf\u7684\u7279\u5f81\u4fdd\u5b58\u80fd\u529b\u975e\u5e38\u5f31"),(0,s.kt)("li",{parentName:"ol"},"\u7b2c\u4e09\u6b21\u5c1d\u8bd5\u89e3\u51b3\u4e86\u4e0a\u4e00\u6b21\u53d1\u73b0\u7684\u95ee\u9898\uff0c\u52a0\u5165 dlib \u63d0\u4f9b\u7684 landmark \u68c0\u6d4b\u4ee5\u5b9e\u73b0 alignment\uff0c\u5e76\u4e14\u4f7f\u7528 ",(0,s.kt)("inlineCode",{parentName:"li"},"run_loop")," \u51fd\u6570\u5728 restyle_e4e_encoder \u4e2d\u8fdb\u884c\u591a\u6b21\u524d\u5411\u4f20\u64ad\u4ee5\u4fee\u6b63\u5f97\u5230\u7684 W \u7a7a\u95f4\u7684 latent code\uff0c\u6548\u679c\u8f83\u597d"),(0,s.kt)("li",{parentName:"ol"},"\u5bf9\u6bd4 pSp \u548c e4e encoder\uff0cpSp \u5bf9\u4eba\u8138\u56fe\u50cf\u7684\u8fd8\u539f\u80fd\u529b\u8f83\u5f3a\uff0c\u4f46\u662f\u4f1a\u5bfc\u81f4\u76ee\u6807\u57df\u56fe\u50cf\u5177\u6709\u968f\u673a\u7684\u5f69\u8272\u5149\u6655")),(0,s.kt)("h2",{id:"\u95ee\u9898\u63d0\u51fa\u4e0e\u6539\u8fdb"},"\u95ee\u9898\u63d0\u51fa\u4e0e\u6539\u8fdb"),(0,s.kt)("h3",{id:"\u6539\u8fdbmapper-\u7ed3\u6784\u7684\u8bbe\u8ba1"},"\u6539\u8fdb\uff1aMapper \u7ed3\u6784\u7684\u8bbe\u8ba1"),(0,s.kt)("p",null,"Mapper \u7684\u4f5c\u7528\u662f\u4ece W \u7a7a\u95f4\u7684\u9690\u5f0f\u4ee3\u7801\u4e2d\u5b66\u4e60\u51fa\u7b26\u5408\u6e90\u57df\u56fe\u7247\u7279\u5f81\u4ee5\u53ca\u7b26\u5408\u76ee\u6807\u57df\u6587\u5b57\u7279\u5f81\u7684 prompts\u3002"),(0,s.kt)("h3",{id:"\u95ee\u9898\u8bad\u7ec3\u9636\u6bb5\u4eba\u5de5-prompts-\u7684\u4f5c\u7528\u662f\u4ec0\u4e48"},"\u95ee\u9898\uff1a\u8bad\u7ec3\u9636\u6bb5\u4eba\u5de5 prompts \u7684\u4f5c\u7528\u662f\u4ec0\u4e48\uff1f"),(0,s.kt)("p",null,"\u5728 IPL \u7684\u5b98\u65b9\u4ee3\u7801\u5b9e\u73b0\u4e2d\uff0c\u4eba\u5de5\u8bbe\u8ba1\u7684 prompts \u6709\u4e24\u5904\uff0c\u4e00\u662f ",(0,s.kt)("inlineCode",{parentName:"p"},"ctx_init"),'\uff0c\u7531\u547d\u4ee4\u884c\u53c2\u6570\u8d4b\u503c\uff0c\u5373 "a photo of a"\uff0c\u53e6\u4e00\u5904\u662f utils/text_templates.py \u4e2d\u7684 templates\uff0c'),(0,s.kt)("h4",{id:"ctx_init-\u7684\u4f5c\u7528\u4e0e\u57df\u6807\u7b7e\u62fc\u63a5\u540e\u7684-ctx_init"},"ctx_init \u7684\u4f5c\u7528\uff08\u4e0e\u57df\u6807\u7b7e\u62fc\u63a5\u540e\u7684 ctx_init\uff09"),(0,s.kt)("ol",null,(0,s.kt)("li",{parentName:"ol"},(0,s.kt)("p",{parentName:"li"},(0,s.kt)("inlineCode",{parentName:"p"},"ctx_init")," \u5728 ",(0,s.kt)("inlineCode",{parentName:"p"},"compute_text_features")," \u51fd\u6570\u4e2d\u7528\u4e8e\u5b9a\u4f4d ",(0,s.kt)("inlineCode",{parentName:"p"},"eot")," \u5c42\u7b26\u53f7\u6240\u8868\u793a\u7684\u7ef4\u5ea6\u6765\u8fdb\u884c\u6295\u5f71\uff0c\u4f7f\u5f97\u6587\u5b57\u7279\u5f81\u4e0e\u56fe\u50cf\u7279\u5f81\u7ef4\u5ea6\u76f8\u540c\uff0c\u5e76\u4e0d\u53c2\u4e0e ",(0,s.kt)("inlineCode",{parentName:"p"},"text_features")," \u7684\u5b9e\u9645\u8ba1\u7b97\u3002\u4f46\u662f\u5728\u8be5\u51fd\u6570\u4e2d\uff0cMapper \u8f93\u51fa\u7684 image-specific prompts \u5df2\u7ecf\u4e0e\u57df\u6807\u7b7e\u7684\u5d4c\u5165\u8868\u793a\u8fdb\u884c\u4e86 concat\u3002")),(0,s.kt)("li",{parentName:"ol"},(0,s.kt)("p",{parentName:"li"},"\u5728 stage 1 \u8bad\u7ec3 Mapper \u635f\u5931\u51fd\u6570\u4e2d\uff0cMapper \u5b66\u4e60\u5230\u7684 image-specfic prompts \u5728\u4e0e\u6e90\u57df\u6807\u7b7e\u8fdb\u884c concat \u5e76\u5f97\u5230\u6587\u5b57\u7f16\u7801\u540e\uff0c\u4f1a\u4e0e ctx_init \u7684\u6587\u5b57\u7f16\u7801\u8fdb\u884c element-wise \u7684\u76f8\u52a0\uff0c\u6700\u540e\u518d\u4e0e\u6e90\u57df\u751f\u6210\u5668\u8f93\u51fa\u7684\u56fe\u7247\u7684\u56fe\u50cf\u7f16\u7801\u8fdb\u884c\u5bf9\u6bd4\u635f\u5931\u8ba1\u7b97\uff1b"),(0,s.kt)("p",{parentName:"li"},"\u540c\u7406\uff0c\u5728 stage 2 \u8bad\u7ec3\u76ee\u6807\u57df\u751f\u6210\u5668\u65f6\uff0cMapper \u8f93\u51fa\u7684 image-specific prompts \u5728\u5206\u522b\u4e0e\u6e90\u57df\u3001\u76ee\u6807\u57df\u6807\u7b7e concat \u540e\u9001\u5165\u6587\u5b57\u7f16\u7801\u5668\u5f97\u5230\u6587\u5b57\u7279\u5f81\uff0c\u518d\u4e0e ctx_init \u7684\u6587\u5b57\u7279\u5f81\u8fdb\u884c element-wise \u76f8\u52a0\uff0c\u6700\u540e\u4e8c\u8005\u76f8\u51cf\u5f97\u5230 text_direction\u3002"))),(0,s.kt)("h4",{id:"templates-\u7684\u4f5c\u7528"},"templates \u7684\u4f5c\u7528"),(0,s.kt)("p",null,"\u6ce8\u610f\uff0c\u8fd9\u91cc\u7684 ",(0,s.kt)("inlineCode",{parentName:"p"},"compute_text_features")," \u51fd\u6570\u4e2d\u5411\u5176\u53c2\u6570 ",(0,s.kt)("inlineCode",{parentName:"p"},"templates")," \u4f20\u5165\u7684\u503c\u662f ",(0,s.kt)("inlineCode",{parentName:"p"},"ctx_init"),"\uff0c\u6240\u4ee5\u624d\u80fd\u4f7f\u7528 ",(0,s.kt)("inlineCode",{parentName:"p"},"ctx_init")," \u6765\u5b9a\u4f4d eot \u7b26\u53f7\u6240\u5bf9\u5e94\u7684\u5c42\u8fdb\u884c\u7ef4\u5ea6\u6295\u5f71\u3002\u53c2\u6570 ",(0,s.kt)("inlineCode",{parentName:"p"},"templates")," \u7f3a\u7701\u7684\u503c\u662f\u5728 utils/text_templates.py \u4e2d\u5199\u597d\u7684\u6a21\u677f\u3002"),(0,s.kt)("h4",{id:"\u601d\u8003"},"\u601d\u8003"),(0,s.kt)("p",null,"IPL \u65b9\u6cd5\u5bf9 Mapper \u5b66\u4e60\u5230\u7684 prompts \u9664\u4e86\uff081\uff09\u4f7f\u7528\u5bf9\u6bd4\u5b66\u4e60\u4f7f prompts \u5b66\u4e60\u5230\u6e90\u57df\u56fe\u7247\u7684\u7279\u5f81\u4ee5\u53ca\uff082\uff09\u4f7f\u7528\u57df\u6b63\u5219\u5316\u4f7f\u5f97 prompts \u5411\u76ee\u6807\u57df\u6807\u7b7e\u5bf9\u9f50\u4e4b\u5916\uff0c\u5e76\u6ca1\u6709\u4f7f\u7528\u5176\u4ed6\u4e0e\u4eba\u5de5\u8bbe\u8ba1\u7684 prompts \u6709\u5173\u7684\u6b63\u5219\u5316\u65b9\u5f0f\u6765\u7ea6\u675f prompts \u7684\u5b66\u4e60\uff0c\u56e0\u6b64\u4eba\u5de5\u8bbe\u8ba1\u7684 prompts \u53ef\u80fd\u5e76\u6ca1\u6709\u8d77\u5230\u592a\u5927\u7684\u7ea6\u675f\u4f5c\u7528\u3002"),(0,s.kt)("p",null,"\u5982\u679c\u5bf9\u6bd4\u5b66\u4e60\u635f\u5931\u662f\u4e3a\u4e86\u8ba9 Mapper \u81ea\u76d1\u7763\u5b66\u4e60\u5230\u56fe\u7247\u7684\u7279\u5f81\u5916\uff0c\u90a3\u4e48\u662f\u5426\u53ef\u4ee5\u5bf9\u57df\u6b63\u5219\u5316\u635f\u5931\u8fdb\u884c\u6539\u8fdb\uff0c\u7ea6\u675f\u5b66\u4e60\u5230\u7684 prompts \u5411\u4eba\u5de5\u8bbe\u8ba1\u7684\u521d\u59cb\u5316 prompts \u5bf9\u9f50\uff0c\u4ee5\u5b9e\u73b0\u7c7b\u4f3c\u4e8e Stable Diffusion \u7c7b\u4f3c\u7684 prompts \u63a7\u5236\u56fe\u50cf\u751f\u6210\u7684\u6548\u679c\u3002"),(0,s.kt)("h3",{id:"\u6539\u8fdb\u4f7f\u5b66\u4e60\u5230\u7684-prompts-\u5411\u7528\u6237\u81ea\u4e3b\u8bbe\u8ba1\u7684-prompts-\u6a21\u677f\u5bf9\u9f50"},"\u6539\u8fdb\uff1a\u4f7f\u5b66\u4e60\u5230\u7684 prompts \u5411\u7528\u6237\u81ea\u4e3b\u8bbe\u8ba1\u7684 prompts \u6a21\u677f\u5bf9\u9f50"),(0,s.kt)("p",null,"\u5bf9\u7b2c\u4e00\u9636\u6bb5\u7684\u635f\u5931\u51fd\u6570\u505a\u51fa\u4fee\u6539\uff0c\u66f4\u65b0domain loss\uff0c\u4f7f\u76ee\u6807\u57df\u7684image-specific prompts\u4e0e\u81ea\u5b9a\u4e49\u6a21\u677f\u5bf9\u9f50\u3002"),(0,s.kt)("h4",{id:"\u5bf9-global_clip_loss-\u7684\u6539\u8fdb"},"\u5bf9 global_clip_loss \u7684\u6539\u8fdb"),(0,s.kt)("p",null,"IPL \u8bad\u7ec3\u7b2c\u4e00\u9636\u6bb5\u7684\u635f\u5931\u51fd\u6570\u9664\u4e86\u6e90\u57df prompts \u4e0e\u6e90\u57df\u56fe\u50cf\u4e4b\u95f4\u7684\u5bf9\u6bd4\u5b66\u4e60\u635f\u5931\u51fd\u6570\u5916\uff0c\u8fd8\u6709\u5c06\u76ee\u6807\u57df prompts \u4e0e\u76ee\u6807\u57df\u6807\u7b7e\u8ba1\u7b97\u4f59\u5f26\u76f8\u4f3c\u5ea6\u7684 domain regularization\u3002"),(0,s.kt)("p",null,"\u5bf9 domain regularization \u8fdb\u884c\u6539\u8fdb\uff0c\u5f15\u5165\u5f00\u53d1\u8005\u81ea\u5b9a\u4e49\u7684 prompts\uff0c\u7ea6\u675f Mapper \u5b66\u4e60\u5230\u7684\u76ee\u6807\u57df prompts \u5411\u5f00\u53d1\u8005\u81ea\u5b9a\u4e49\u7684 prompts \u5bf9\u9f50\uff0c\u4ee5\u6b64\u6765\u8fdb\u884c prompt tuning\uff0c\u53d1\u6325 prompt learning \u7684\u66f4\u5927\u4f18\u52bf\uff0c\u5e76\u589e\u5f3a\u81ea\u5b9a\u4e49\u6027\u3002"),(0,s.kt)("h4",{id:"\u5bf9-clip_directional_loss-\u7684\u6539\u8fdb"},"\u5bf9 clip_directional_loss \u7684\u6539\u8fdb"),(0,s.kt)("p",null,"IPL \u8bad\u7ec3\u7b2c\u4e8c\u9636\u6bb5\u7684\u635f\u5931\u51fd\u6570"))}k.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/en/assets/js/170d5aca.0210db0d.js b/en/assets/js/170d5aca.0210db0d.js new file mode 100644 index 000000000..c555e81ec --- /dev/null +++ b/en/assets/js/170d5aca.0210db0d.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunknpy_notebook=self.webpackChunknpy_notebook||[]).push([[7122],{3905:(e,t,n)=>{n.d(t,{Zo:()=>u,kt:()=>d});var r=n(7294);function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var c=r.createContext({}),l=function(e){var t=r.useContext(c),n=t;return e&&(n="function"==typeof e?e(t):a(a({},t),e)),n},u=function(e){var t=l(e.components);return r.createElement(c.Provider,{value:t},e.children)},s="mdxType",m={inlineCode:"code",wrapper:function(e){var t=e.children;return r.createElement(r.Fragment,{},t)}},f=r.forwardRef((function(e,t){var n=e.components,o=e.mdxType,i=e.originalType,c=e.parentName,u=p(e,["components","mdxType","originalType","parentName"]),s=l(n),f=o,d=s["".concat(c,".").concat(f)]||s[f]||m[f]||i;return n?r.createElement(d,a(a({ref:t},u),{},{components:n})):r.createElement(d,a({ref:t},u))}));function d(e,t){var n=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var i=n.length,a=new Array(i);a[0]=f;var p={};for(var c in t)hasOwnProperty.call(t,c)&&(p[c]=t[c]);p.originalType=e,p[s]="string"==typeof e?e:o,a[1]=p;for(var l=2;l{n.r(t),n.d(t,{assets:()=>c,contentTitle:()=>a,default:()=>m,frontMatter:()=>i,metadata:()=>p,toc:()=>l});var r=n(7462),o=(n(7294),n(3905));const i={},a="Welcome",p={unversionedId:"Deep-Learning/intro",id:"Deep-Learning/intro",title:"Welcome",description:"\u6b22\u8fce\u6765\u5230\u7b14\u8bb0\u672c\u7684\u6df1\u5ea6\u5b66\u4e60\u90e8\u5206",source:"@site/docs/Deep-Learning/1-intro.md",sourceDirName:"Deep-Learning",slug:"/Deep-Learning/intro",permalink:"/en/docs/Deep-Learning/intro",draft:!1,tags:[],version:"current",sidebarPosition:1,frontMatter:{},sidebar:"deep_learning",next:{title:"\u67e5\u6f0f\u8865\u7f3a",permalink:"/en/docs/Deep-Learning/Fill-The-Gaps"}},c={},l=[{value:"\u652f\u6301\u6211\uff01",id:"\u652f\u6301\u6211",level:2}],u={toc:l},s="wrapper";function m(e){let{components:t,...i}=e;return(0,o.kt)(s,(0,r.Z)({},u,i,{components:t,mdxType:"MDXLayout"}),(0,o.kt)("h1",{id:"welcome"},"Welcome"),(0,o.kt)("admonition",{title:"\u4ecb\u7ecd",type:"tip"},(0,o.kt)("p",{parentName:"admonition"},"\u6b22\u8fce\u6765\u5230\u7b14\u8bb0\u672c\u7684\u6df1\u5ea6\u5b66\u4e60\u90e8\u5206"),(0,o.kt)("p",{parentName:"admonition"},"\u82e5\u66f4\u65b0\u4e0d\u53ca\u65f6\uff0c\u6b22\u8fce\u901a\u8fc7",(0,o.kt)("a",{parentName:"p",href:"https://github.com/bonjour-npy"},"GitHub"),"\u8054\u7cfb\u4ea4\u6d41")),(0,o.kt)("admonition",{title:"\u6709\u5173\u8bba\u6587\u7b14\u8bb0\u7684\u8bf4\u660e",type:"important"},(0,o.kt)("p",{parentName:"admonition"},"\u4e3a\u4e86\u8282\u7701\u5199\u4f5c\u65f6\u95f4\uff0c\u8bba\u6587\u7b14\u8bb0\u90e8\u5206\u7684\u6587\u7ae0\u901a\u5e38\u53ea\u8bb2\u8ff0\u6587\u7ae0\u7684\u65b9\u6cd5\u8bba\uff0cIntroduction\u4ee5\u53caRelated Work\u8be6\u60c5\u53ef\u4ee5\u53c2\u8003\u8bba\u6587\u539f\u6587")),(0,o.kt)("h2",{id:"\u652f\u6301\u6211"},"\u652f\u6301\u6211\uff01"),(0,o.kt)("p",null,"\u5982\u679c\u53ef\u4ee5\u5e2e\u5230\u4f60\u7684\u8bdd\u5c31\u7ed9\u4e2a\u514d\u8d39\u7684Star\u5427\uff01"),(0,o.kt)("p",null,(0,o.kt)("img",{src:n(9163).Z,width:"2778",height:"2046"})))}m.isMDXComponent=!0},9163:(e,t,n)=>{n.d(t,{Z:()=>r});const r=n.p+"assets/images/intro-822c34cd9b5577b06df8bb0956cdf947.png"}}]); \ No newline at end of file diff --git a/en/assets/js/17896441.077d419c.js b/en/assets/js/17896441.077d419c.js new file mode 100644 index 000000000..4bd37413b --- /dev/null +++ b/en/assets/js/17896441.077d419c.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunknpy_notebook=self.webpackChunknpy_notebook||[]).push([[7918],{903:(e,t,a)=>{a.r(t),a.d(t,{default:()=>pe});var n=a(7294),l=a(1944),r=a(902);const o=n.createContext(null);function s(e){let{children:t,content:a}=e;const l=function(e){return(0,n.useMemo)((()=>({metadata:e.metadata,frontMatter:e.frontMatter,assets:e.assets,contentTitle:e.contentTitle,toc:e.toc})),[e])}(a);return n.createElement(o.Provider,{value:l},t)}function c(){const e=(0,n.useContext)(o);if(null===e)throw new r.i6("DocProvider");return e}function i(){const{metadata:e,frontMatter:t,assets:a}=c();return n.createElement(l.d,{title:e.title,description:e.description,keywords:t.keywords,image:a.image??t.image})}var d=a(6010),m=a(7524),u=a(7462),b=a(5999),p=a(9960);function E(e){const{permalink:t,title:a,subLabel:l,isNext:r}=e;return n.createElement(p.Z,{className:(0,d.Z)("pagination-nav__link",r?"pagination-nav__link--next":"pagination-nav__link--prev"),to:t},l&&n.createElement("div",{className:"pagination-nav__sublabel"},l),n.createElement("div",{className:"pagination-nav__label"},a))}function h(e){const{previous:t,next:a}=e;return n.createElement("nav",{className:"pagination-nav docusaurus-mt-lg","aria-label":(0,b.I)({id:"theme.docs.paginator.navAriaLabel",message:"Docs pages",description:"The ARIA label for the docs pagination"})},t&&n.createElement(E,(0,u.Z)({},t,{subLabel:n.createElement(b.Z,{id:"theme.docs.paginator.previous",description:"The label used to navigate to the previous doc"},"Previous")})),a&&n.createElement(E,(0,u.Z)({},a,{subLabel:n.createElement(b.Z,{id:"theme.docs.paginator.next",description:"The label used to navigate to the next doc"},"Next"),isNext:!0})))}function v(){const{metadata:e}=c();return n.createElement(h,{previous:e.previous,next:e.next})}var g=a(2263),f=a(143),_=a(5281),N=a(373),k=a(4477);const Z={unreleased:function(e){let{siteTitle:t,versionMetadata:a}=e;return n.createElement(b.Z,{id:"theme.docs.versions.unreleasedVersionLabel",description:"The label used to tell the user that he's browsing an unreleased doc version",values:{siteTitle:t,versionLabel:n.createElement("b",null,a.label)}},"This is unreleased documentation for {siteTitle} {versionLabel} version.")},unmaintained:function(e){let{siteTitle:t,versionMetadata:a}=e;return n.createElement(b.Z,{id:"theme.docs.versions.unmaintainedVersionLabel",description:"The label used to tell the user that he's browsing an unmaintained doc version",values:{siteTitle:t,versionLabel:n.createElement("b",null,a.label)}},"This is documentation for {siteTitle} {versionLabel}, which is no longer actively maintained.")}};function C(e){const t=Z[e.versionMetadata.banner];return n.createElement(t,e)}function L(e){let{versionLabel:t,to:a,onClick:l}=e;return n.createElement(b.Z,{id:"theme.docs.versions.latestVersionSuggestionLabel",description:"The label used to tell the user to check the latest version",values:{versionLabel:t,latestVersionLink:n.createElement("b",null,n.createElement(p.Z,{to:a,onClick:l},n.createElement(b.Z,{id:"theme.docs.versions.latestVersionLinkLabel",description:"The label used for the latest version suggestion link label"},"latest version")))}},"For up-to-date documentation, see the {latestVersionLink} ({versionLabel}).")}function T(e){let{className:t,versionMetadata:a}=e;const{siteConfig:{title:l}}=(0,g.Z)(),{pluginId:r}=(0,f.gA)({failfast:!0}),{savePreferredVersionName:o}=(0,N.J)(r),{latestDocSuggestion:s,latestVersionSuggestion:c}=(0,f.Jo)(r),i=s??(m=c).docs.find((e=>e.id===m.mainDocId));var m;return n.createElement("div",{className:(0,d.Z)(t,_.k.docs.docVersionBanner,"alert alert--warning margin-bottom--md"),role:"alert"},n.createElement("div",null,n.createElement(C,{siteTitle:l,versionMetadata:a})),n.createElement("div",{className:"margin-top--md"},n.createElement(L,{versionLabel:c.label,to:i.path,onClick:()=>o(c.name)})))}function U(e){let{className:t}=e;const a=(0,k.E)();return a.banner?n.createElement(T,{className:t,versionMetadata:a}):null}function w(e){let{className:t}=e;const a=(0,k.E)();return a.badge?n.createElement("span",{className:(0,d.Z)(t,_.k.docs.docVersionBadge,"badge badge--secondary")},n.createElement(b.Z,{id:"theme.docs.versionBadge.label",values:{versionLabel:a.label}},"Version: {versionLabel}")):null}function x(e){let{lastUpdatedAt:t,formattedLastUpdatedAt:a}=e;return n.createElement(b.Z,{id:"theme.lastUpdated.atDate",description:"The words used to describe on which date a page has been last updated",values:{date:n.createElement("b",null,n.createElement("time",{dateTime:new Date(1e3*t).toISOString()},a))}}," on {date}")}function y(e){let{lastUpdatedBy:t}=e;return n.createElement(b.Z,{id:"theme.lastUpdated.byUser",description:"The words used to describe by who the page has been last updated",values:{user:n.createElement("b",null,t)}}," by {user}")}function A(e){let{lastUpdatedAt:t,formattedLastUpdatedAt:a,lastUpdatedBy:l}=e;return n.createElement("span",{className:_.k.common.lastUpdated},n.createElement(b.Z,{id:"theme.lastUpdated.lastUpdatedAtBy",description:"The sentence used to display when a page has been last updated, and by who",values:{atDate:t&&a?n.createElement(x,{lastUpdatedAt:t,formattedLastUpdatedAt:a}):"",byUser:l?n.createElement(y,{lastUpdatedBy:l}):""}},"Last updated{atDate}{byUser}"),!1)}const M={iconEdit:"iconEdit_Z9Sw"};function B(e){let{className:t,...a}=e;return n.createElement("svg",(0,u.Z)({fill:"currentColor",height:"20",width:"20",viewBox:"0 0 40 40",className:(0,d.Z)(M.iconEdit,t),"aria-hidden":"true"},a),n.createElement("g",null,n.createElement("path",{d:"m34.5 11.7l-3 3.1-6.3-6.3 3.1-3q0.5-0.5 1.2-0.5t1.1 0.5l3.9 3.9q0.5 0.4 0.5 1.1t-0.5 1.2z m-29.5 17.1l18.4-18.5 6.3 6.3-18.4 18.4h-6.3v-6.2z"})))}function I(e){let{editUrl:t}=e;return n.createElement("a",{href:t,target:"_blank",rel:"noreferrer noopener",className:_.k.common.editThisPage},n.createElement(B,null),n.createElement(b.Z,{id:"theme.common.editThisPage",description:"The link label to edit the current page"},"Edit this page"))}const V={tag:"tag_zVej",tagRegular:"tagRegular_sFm0",tagWithCount:"tagWithCount_h2kH"};function H(e){let{permalink:t,label:a,count:l}=e;return n.createElement(p.Z,{href:t,className:(0,d.Z)(V.tag,l?V.tagWithCount:V.tagRegular)},a,l&&n.createElement("span",null,l))}const P={tags:"tags_jXut",tag:"tag_QGVx"};function D(e){let{tags:t}=e;return n.createElement(n.Fragment,null,n.createElement("b",null,n.createElement(b.Z,{id:"theme.tags.tagsListLabel",description:"The label alongside a tag list"},"Tags:")),n.createElement("ul",{className:(0,d.Z)(P.tags,"padding--none","margin-left--sm")},t.map((e=>{let{label:t,permalink:a}=e;return n.createElement("li",{key:a,className:P.tag},n.createElement(H,{label:t,permalink:a}))}))))}const S={lastUpdated:"lastUpdated_vwxv"};function F(e){return n.createElement("div",{className:(0,d.Z)(_.k.docs.docFooterTagsRow,"row margin-bottom--sm")},n.createElement("div",{className:"col"},n.createElement(D,e)))}function R(e){let{editUrl:t,lastUpdatedAt:a,lastUpdatedBy:l,formattedLastUpdatedAt:r}=e;return n.createElement("div",{className:(0,d.Z)(_.k.docs.docFooterEditMetaRow,"row")},n.createElement("div",{className:"col"},t&&n.createElement(I,{editUrl:t})),n.createElement("div",{className:(0,d.Z)("col",S.lastUpdated)},(a||l)&&n.createElement(A,{lastUpdatedAt:a,formattedLastUpdatedAt:r,lastUpdatedBy:l})))}function z(){const{metadata:e}=c(),{editUrl:t,lastUpdatedAt:a,formattedLastUpdatedAt:l,lastUpdatedBy:r,tags:o}=e,s=o.length>0,i=!!(t||a||r);return s||i?n.createElement("footer",{className:(0,d.Z)(_.k.docs.docFooter,"docusaurus-mt-lg")},s&&n.createElement(F,{tags:o}),i&&n.createElement(R,{editUrl:t,lastUpdatedAt:a,lastUpdatedBy:r,formattedLastUpdatedAt:l})):null}var O=a(6043),j=a(3743);const q={tocCollapsibleButton:"tocCollapsibleButton_TO0P",tocCollapsibleButtonExpanded:"tocCollapsibleButtonExpanded_MG3E"};function G(e){let{collapsed:t,...a}=e;return n.createElement("button",(0,u.Z)({type:"button"},a,{className:(0,d.Z)("clean-btn",q.tocCollapsibleButton,!t&&q.tocCollapsibleButtonExpanded,a.className)}),n.createElement(b.Z,{id:"theme.TOCCollapsible.toggleButtonLabel",description:"The label used by the button on the collapsible TOC component"},"On this page"))}const W={tocCollapsible:"tocCollapsible_ETCw",tocCollapsibleContent:"tocCollapsibleContent_vkbj",tocCollapsibleExpanded:"tocCollapsibleExpanded_sAul"};function J(e){let{toc:t,className:a,minHeadingLevel:l,maxHeadingLevel:r}=e;const{collapsed:o,toggleCollapsed:s}=(0,O.u)({initialState:!0});return n.createElement("div",{className:(0,d.Z)(W.tocCollapsible,!o&&W.tocCollapsibleExpanded,a)},n.createElement(G,{collapsed:o,onClick:s}),n.createElement(O.z,{lazy:!0,className:W.tocCollapsibleContent,collapsed:o},n.createElement(j.Z,{toc:t,minHeadingLevel:l,maxHeadingLevel:r})))}const Q={tocMobile:"tocMobile_ITEo"};function X(){const{toc:e,frontMatter:t}=c();return n.createElement(J,{toc:e,minHeadingLevel:t.toc_min_heading_level,maxHeadingLevel:t.toc_max_heading_level,className:(0,d.Z)(_.k.docs.docTocMobile,Q.tocMobile)})}var Y=a(9407);function $(){const{toc:e,frontMatter:t}=c();return n.createElement(Y.Z,{toc:e,minHeadingLevel:t.toc_min_heading_level,maxHeadingLevel:t.toc_max_heading_level,className:_.k.docs.docTocDesktop})}var K=a(2503),ee=a(864);function te(e){let{children:t}=e;const a=function(){const{metadata:e,frontMatter:t,contentTitle:a}=c();return t.hide_title||void 0!==a?null:e.title}();return n.createElement("div",{className:(0,d.Z)(_.k.docs.docMarkdown,"markdown")},a&&n.createElement("header",null,n.createElement(K.Z,{as:"h1"},a)),n.createElement(ee.Z,null,t))}var ae=a(2802),ne=a(8596),le=a(4996);function re(e){return n.createElement("svg",(0,u.Z)({viewBox:"0 0 24 24"},e),n.createElement("path",{d:"M10 19v-5h4v5c0 .55.45 1 1 1h3c.55 0 1-.45 1-1v-7h1.7c.46 0 .68-.57.33-.87L12.67 3.6c-.38-.34-.96-.34-1.34 0l-8.36 7.53c-.34.3-.13.87.33.87H5v7c0 .55.45 1 1 1h3c.55 0 1-.45 1-1z",fill:"currentColor"}))}const oe={breadcrumbHomeIcon:"breadcrumbHomeIcon_YNFT"};function se(){const e=(0,le.Z)("/");return n.createElement("li",{className:"breadcrumbs__item"},n.createElement(p.Z,{"aria-label":(0,b.I)({id:"theme.docs.breadcrumbs.home",message:"Home page",description:"The ARIA label for the home page in the breadcrumbs"}),className:"breadcrumbs__link",href:e},n.createElement(re,{className:oe.breadcrumbHomeIcon})))}const ce={breadcrumbsContainer:"breadcrumbsContainer_Z_bl"};function ie(e){let{children:t,href:a,isLast:l}=e;const r="breadcrumbs__link";return l?n.createElement("span",{className:r,itemProp:"name"},t):a?n.createElement(p.Z,{className:r,href:a,itemProp:"item"},n.createElement("span",{itemProp:"name"},t)):n.createElement("span",{className:r},t)}function de(e){let{children:t,active:a,index:l,addMicrodata:r}=e;return n.createElement("li",(0,u.Z)({},r&&{itemScope:!0,itemProp:"itemListElement",itemType:"https://schema.org/ListItem"},{className:(0,d.Z)("breadcrumbs__item",{"breadcrumbs__item--active":a})}),t,n.createElement("meta",{itemProp:"position",content:String(l+1)}))}function me(){const e=(0,ae.s1)(),t=(0,ne.Ns)();return e?n.createElement("nav",{className:(0,d.Z)(_.k.docs.docBreadcrumbs,ce.breadcrumbsContainer),"aria-label":(0,b.I)({id:"theme.docs.breadcrumbs.navAriaLabel",message:"Breadcrumbs",description:"The ARIA label for the breadcrumbs"})},n.createElement("ul",{className:"breadcrumbs",itemScope:!0,itemType:"https://schema.org/BreadcrumbList"},t&&n.createElement(se,null),e.map(((t,a)=>{const l=a===e.length-1;return n.createElement(de,{key:a,active:l,index:a,addMicrodata:!!t.href},n.createElement(ie,{href:t.href,isLast:l},t.label))})))):null}const ue={docItemContainer:"docItemContainer_Djhp",docItemCol:"docItemCol_VOVn"};function be(e){let{children:t}=e;const a=function(){const{frontMatter:e,toc:t}=c(),a=(0,m.i)(),l=e.hide_table_of_contents,r=!l&&t.length>0;return{hidden:l,mobile:r?n.createElement(X,null):void 0,desktop:!r||"desktop"!==a&&"ssr"!==a?void 0:n.createElement($,null)}}();return n.createElement("div",{className:"row"},n.createElement("div",{className:(0,d.Z)("col",!a.hidden&&ue.docItemCol)},n.createElement(U,null),n.createElement("div",{className:ue.docItemContainer},n.createElement("article",null,n.createElement(me,null),n.createElement(w,null),a.mobile,n.createElement(te,null,t),n.createElement(z,null)),n.createElement(v,null))),a.desktop&&n.createElement("div",{className:"col col--3"},a.desktop))}function pe(e){const t=`docs-doc-id-${e.content.metadata.unversionedId}`,a=e.content;return n.createElement(s,{content:e.content},n.createElement(l.FG,{className:t},n.createElement(i,null),n.createElement(be,null,n.createElement(a,null))))}},4477:(e,t,a)=>{a.d(t,{E:()=>s,q:()=>o});var n=a(7294),l=a(902);const r=n.createContext(null);function o(e){let{children:t,version:a}=e;return n.createElement(r.Provider,{value:a},t)}function s(){const e=(0,n.useContext)(r);if(null===e)throw new l.i6("DocsVersionProvider");return e}}}]); \ No newline at end of file diff --git a/en/assets/js/198a413f.8769abe9.js b/en/assets/js/198a413f.8769abe9.js new file mode 100644 index 000000000..75368350b --- /dev/null +++ b/en/assets/js/198a413f.8769abe9.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunknpy_notebook=self.webpackChunknpy_notebook||[]).push([[2592],{3905:(e,t,n)=>{n.d(t,{Zo:()=>u,kt:()=>N});var r=n(7294);function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;t=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var o=r.createContext({}),m=function(e){var t=r.useContext(o),n=t;return e&&(n="function"==typeof e?e(t):p(p({},t),e)),n},u=function(e){var t=m(e.components);return r.createElement(o.Provider,{value:t},e.children)},c="mdxType",s={inlineCode:"code",wrapper:function(e){var t=e.children;return r.createElement(r.Fragment,{},t)}},k=r.forwardRef((function(e,t){var n=e.components,a=e.mdxType,i=e.originalType,o=e.parentName,u=l(e,["components","mdxType","originalType","parentName"]),c=m(n),k=a,N=c["".concat(o,".").concat(k)]||c[k]||s[k]||i;return n?r.createElement(N,p(p({ref:t},u),{},{components:n})):r.createElement(N,p({ref:t},u))}));function N(e,t){var n=arguments,a=t&&t.mdxType;if("string"==typeof e||a){var i=n.length,p=new Array(i);p[0]=k;var l={};for(var o in t)hasOwnProperty.call(t,o)&&(l[o]=t[o]);l.originalType=e,l[c]="string"==typeof e?e:a,p[1]=l;for(var m=2;m{n.r(t),n.d(t,{assets:()=>o,contentTitle:()=>p,default:()=>s,frontMatter:()=>i,metadata:()=>l,toc:()=>m});var r=n(7462),a=(n(7294),n(3905));const i={},p="\u6570\u636e\u7ed3\u6784",l={unversionedId:"Tui-Mian/\u8ba1\u7b97\u673a\u57fa\u7840\u7efc\u5408/\u6570\u636e\u7ed3\u6784",id:"Tui-Mian/\u8ba1\u7b97\u673a\u57fa\u7840\u7efc\u5408/\u6570\u636e\u7ed3\u6784",title:"\u6570\u636e\u7ed3\u6784",description:"\u6811",source:"@site/docs/Tui-Mian/\u8ba1\u7b97\u673a\u57fa\u7840\u7efc\u5408/\u6570\u636e\u7ed3\u6784.md",sourceDirName:"Tui-Mian/\u8ba1\u7b97\u673a\u57fa\u7840\u7efc\u5408",slug:"/Tui-Mian/\u8ba1\u7b97\u673a\u57fa\u7840\u7efc\u5408/\u6570\u636e\u7ed3\u6784",permalink:"/en/docs/Tui-Mian/\u8ba1\u7b97\u673a\u57fa\u7840\u7efc\u5408/\u6570\u636e\u7ed3\u6784",draft:!1,tags:[],version:"current",frontMatter:{},sidebar:"tui_mian",previous:{title:"\u7b80\u5386\u9762\u8bd5\u51c6\u5907",permalink:"/en/docs/Tui-Mian/\u7b80\u5386/\u7b80\u5386\u9762\u8bd5\u51c6\u5907"}},o={},m=[{value:"\u6811",id:"\u6811",level:2},{value:"\u56fe",id:"\u56fe",level:2}],u={toc:m},c="wrapper";function s(e){let{components:t,...n}=e;return(0,a.kt)(c,(0,r.Z)({},u,n,{components:t,mdxType:"MDXLayout"}),(0,a.kt)("h1",{id:"\u6570\u636e\u7ed3\u6784"},"\u6570\u636e\u7ed3\u6784"),(0,a.kt)("h2",{id:"\u6811"},"\u6811"),(0,a.kt)("ol",null,(0,a.kt)("li",{parentName:"ol"},(0,a.kt)("p",{parentName:"li"},"\u6811\u7684\u6027\u8d28\uff1a"),(0,a.kt)("ul",{parentName:"li"},(0,a.kt)("li",{parentName:"ul"},"\u4e00\u68f5 N \u4e2a\u7ed3\u70b9\u7684\u6811\u6709 N-1 \u6761\u8fb9"),(0,a.kt)("li",{parentName:"ul"},"\u6811\u7684\u603b\u5ea6\u6570+1=\u6811\u7684\u7ed3\u70b9\u6570"),(0,a.kt)("li",{parentName:"ul"},"\u6811\u7684\u5ea6=\u6811\u4e2d\u5ea6\u6700\u5927\u7ed3\u70b9\u7684\u5ea6\u6570"))),(0,a.kt)("li",{parentName:"ol"},(0,a.kt)("p",{parentName:"li"},"\u4e8c\u53c9\u6811\u7684\u6027\u8d28\uff1a"),(0,a.kt)("ul",{parentName:"li"},(0,a.kt)("li",{parentName:"ul"},(0,a.kt)("p",{parentName:"li"},"\u53f6\u5b50\u7ed3\u70b9\u6570\u7b49\u4e8e\u5ea6\u4e3a 2 \u7684\u7ed3\u70b9\u6570\u52a0 1\uff0c\u5373n0 = n2 + 1"),(0,a.kt)("p",{parentName:"li"},(0,a.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_images202309061508552.png",alt:null}))))),(0,a.kt)("li",{parentName:"ol"},(0,a.kt)("p",{parentName:"li"},"\u6811\u8f6c\u5316\u4e3a\u4e8c\u53c9\u6811\uff1a"),(0,a.kt)("p",{parentName:"li"},(0,a.kt)("a",{parentName:"p",href:"https://zhuanlan.zhihu.com/p/134251528"},"\u53c2\u8003\u8d44\u6599\uff1a\u77e5\u4e4e")),(0,a.kt)("ol",{parentName:"li"},(0,a.kt)("li",{parentName:"ol"},(0,a.kt)("strong",{parentName:"li"},"\u52a0\u7ebf\u3002"),"\u5728\u6240\u6709\u7684\u5144\u5f1f\u7ed3\u70b9\u4e4b\u95f4\u52a0\u4e00\u6761\u7ebf\u3002"),(0,a.kt)("li",{parentName:"ol"},(0,a.kt)("strong",{parentName:"li"},"\u53bb\u7ebf\u3002"),"\u6811\u4e2d\u7684\u6bcf\u4e2a\u7ed3\u70b9\uff0c\u53ea\u4fdd\u7559\u5b83\u4e0e",(0,a.kt)("strong",{parentName:"li"},"\u7b2c\u4e00\u4e2a\u5b69\u5b50\u7ed3\u70b9"),"\u7684\u8fde\u7ebf\uff0c\u5220\u9664\u5176\u4ed6\u5b69\u5b50\u7ed3\u70b9\u4e4b\u95f4\u7684\u8fde\u7ebf\u3002"),(0,a.kt)("li",{parentName:"ol"},(0,a.kt)("strong",{parentName:"li"},"\u8c03\u6574\u3002\u6bcf\u4e2a\u7ed3\u70b9\u7684\u539f\u6765\u7684\u5b69\u5b50\u662f\u7ed3\u70b9\u7684\u5de6\u5b69\u5b50\uff0c\u7531\u539f\u6765\u7684\u5144\u5f1f\u7ed3\u70b9\u8f6c\u8fc7\u6765\u7684\u5b69\u5b50\u662f\u7ed3\u70b9\u7684\u53f3\u5b69\u5b50"),"\u3002"))),(0,a.kt)("li",{parentName:"ol"},(0,a.kt)("p",{parentName:"li"},"\u4e8c\u53c9\u6392\u5e8f\u6811\uff1a\u6bcf\u4e2a\u7ed3\u70b9\u7684\u5de6\u5b50\u6811\u4e0a\u7684\u6240\u6709\u7ed3\u70b9\u503c\u90fd\u66f4\u5c0f\uff0c\u6bcf\u4e2a\u7ed3\u70b9\u7684\u53f3\u5b50\u6811\u4e0a\u7684\u6240\u6709\u7ed3\u70b9\u7684\u503c\u90fd\u66f4\u5927\u3002")),(0,a.kt)("li",{parentName:"ol"},(0,a.kt)("p",{parentName:"li"},"\u5e73\u8861\u4e8c\u53c9\u6392\u5e8f\u6811\uff1a\u8981\u4e48\u662f\u7a7a\u6811\uff0c\u8981\u4e48\u5de6\u5b50\u6811\u7684\u9ad8\u5ea6\u4e0e\u53f3\u5b50\u6811\u7684\u9ad8\u5ea6\u4e4b\u5dee\u5c0f\u4e8e\u7b49\u4e8e1\u3002"))),(0,a.kt)("h2",{id:"\u56fe"},"\u56fe"),(0,a.kt)("ol",null,(0,a.kt)("li",{parentName:"ol"},(0,a.kt)("p",{parentName:"li"},"\u56fe\u7684\u8868\u793a\uff1a"),(0,a.kt)("ul",{parentName:"li"},(0,a.kt)("li",{parentName:"ul"},(0,a.kt)("p",{parentName:"li"},"\u90bb\u63a5\u77e9\u9635")),(0,a.kt)("li",{parentName:"ul"},(0,a.kt)("p",{parentName:"li"},"\u90bb\u63a5\u8868\uff1a",(0,a.kt)("strong",{parentName:"p"},"\u6bcf\u4e00\u884c\u8868\u793a\u7684\u662f\u4e00\u4e2a\u9876\u70b9\u6240\u8fde\u63a5\u7684\u9876\u70b9\uff0c\u94fe\u8868\u4e0d\u5177\u6709\u6307\u5411\u6027")),(0,a.kt)("p",{parentName:"li"},"\u90bb\u63a5\u8868\u7684\u641c\u7d22"),(0,a.kt)("p",{parentName:"li"},(0,a.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_images202309061613781.png",alt:null}))))),(0,a.kt)("li",{parentName:"ol"},(0,a.kt)("p",{parentName:"li"},"\u6700\u5c0f\u751f\u6210\u6811\uff1a\u5728\u8fde\u901a\u7f51\u7684\u6240\u6709\u751f\u6210\u6811\u4e2d\uff0c\u6240\u6709\u8fb9\u7684\u4ee3\u4ef7\u548c\u6700\u5c0f\u7684\u751f\u6210\u6811\uff0c\u79f0\u4e3a\u6700\u5c0f\u751f\u6210\u6811\u3002"),(0,a.kt)("ul",{parentName:"li"},(0,a.kt)("li",{parentName:"ul"},(0,a.kt)("p",{parentName:"li"},"Kruskal\u7b97\u6cd5"),(0,a.kt)("p",{parentName:"li"},(0,a.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_images20230906151003.png",alt:null}))),(0,a.kt)("li",{parentName:"ul"},(0,a.kt)("p",{parentName:"li"},"Prim\u7b97\u6cd5"),(0,a.kt)("p",{parentName:"li"},(0,a.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_images20230906151039.png",alt:null}))))),(0,a.kt)("li",{parentName:"ol"},(0,a.kt)("p",{parentName:"li"},"\u6700\u77ed\u8def\u5f84"))),(0,a.kt)("p",null,"\u200b "),(0,a.kt)("p",null,"\u200b"))}s.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/en/assets/js/1a4e3797.cd2275cc.js b/en/assets/js/1a4e3797.cd2275cc.js new file mode 100644 index 000000000..1289859d5 --- /dev/null +++ b/en/assets/js/1a4e3797.cd2275cc.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunknpy_notebook=self.webpackChunknpy_notebook||[]).push([[7920],{2027:(e,t,r)=>{r.r(t),r.d(t,{default:()=>k});var a=r(7294),n=r(2263),l=r(179),s=r(5742),c=r(9960),o=r(5999);const u=["zero","one","two","few","many","other"];function m(e){return u.filter((t=>e.includes(t)))}const h={locale:"en",pluralForms:m(["one","other"]),select:e=>1===e?"one":"other"};function i(){const{i18n:{currentLocale:e}}=(0,n.Z)();return(0,a.useMemo)((()=>{try{return function(e){const t=new Intl.PluralRules(e);return{locale:e,pluralForms:m(t.resolvedOptions().pluralCategories),select:e=>t.select(e)}}(e)}catch(t){return console.error(`Failed to use Intl.PluralRules for locale "${e}".\nDocusaurus will fallback to the default (English) implementation.\nError: ${t.message}\n`),h}}),[e])}function p(){const e=i();return{selectMessage:(t,r)=>function(e,t,r){const a=e.split("|");if(1===a.length)return a[0];a.length>r.pluralForms.length&&console.error(`For locale=${r.locale}, a maximum of ${r.pluralForms.length} plural forms are expected (${r.pluralForms.join(",")}), but the message contains ${a.length}: ${e}`);const n=r.select(t),l=r.pluralForms.indexOf(n);return a[Math.min(l,a.length-1)]}(r,t,e)}}var g=r(6010),d=r(6550),f=r(412);const y=function(){const e=(0,d.k6)(),t=(0,d.TH)(),{siteConfig:{baseUrl:r}}=(0,n.Z)(),a=f.Z.canUseDOM?new URLSearchParams(t.search):null,l=a?.get("q")||"",s=a?.get("ctx")||"",c=a?.get("version")||"",o=e=>{const r=new URLSearchParams(t.search);return e?r.set("q",e):r.delete("q"),r};return{searchValue:l,searchContext:s,searchVersion:c,updateSearchPath:t=>{const r=o(t);e.replace({search:r.toString()})},updateSearchContext:r=>{const a=new URLSearchParams(t.search);a.set("ctx",r),e.replace({search:a.toString()})},generateSearchPageLink:e=>{const t=o(e);return`${r}search?${t.toString()}`}}};var E=r(22),S=r(8202),C=r(2539),I=r(726),x=r(1073),v=r(311),w=r(3926),R=r(1029);const P={searchContextInput:"searchContextInput_mXoe",searchQueryInput:"searchQueryInput_CFBF",searchResultItem:"searchResultItem_U687",searchResultItemPath:"searchResultItemPath_uIbk",searchResultItemSummary:"searchResultItemSummary_oZHr",searchQueryColumn:"searchQueryColumn_q7nx",searchContextColumn:"searchContextColumn_oWAF"};function b(){const{siteConfig:{baseUrl:e}}=(0,n.Z)(),{selectMessage:t}=p(),{searchValue:r,searchContext:l,searchVersion:c,updateSearchPath:u,updateSearchContext:m}=y(),[h,i]=(0,a.useState)(r),[d,f]=(0,a.useState)(),[C,I]=(0,a.useState)(),x=`${e}${c}`,w=(0,a.useMemo)((()=>h?(0,o.I)({id:"theme.SearchPage.existingResultsTitle",message:'Search results for "{query}"',description:"The search page title for non-empty query"},{query:h}):(0,o.I)({id:"theme.SearchPage.emptyResultsTitle",message:"Search the documentation",description:"The search page title for empty query"})),[h]);(0,a.useEffect)((()=>{u(h),d&&(h?d(h,(e=>{I(e)})):I(void 0))}),[h,d]);const b=(0,a.useCallback)((e=>{i(e.target.value)}),[]);return(0,a.useEffect)((()=>{r&&r!==h&&i(r)}),[r]),(0,a.useEffect)((()=>{!async function(){const{wrappedIndexes:e,zhDictionary:t}=await(0,E.w)(x,l);f((()=>(0,S.v)(e,t,100)))}()}),[l,x]),a.createElement(a.Fragment,null,a.createElement(s.Z,null,a.createElement("meta",{property:"robots",content:"noindex, follow"}),a.createElement("title",null,w)),a.createElement("div",{className:"container margin-vert--lg"},a.createElement("h1",null,w),a.createElement("div",{className:"row"},a.createElement("div",{className:(0,g.Z)("col",{[P.searchQueryColumn]:Array.isArray(R.Kc),"col--9":Array.isArray(R.Kc),"col--12":!Array.isArray(R.Kc)})},a.createElement("input",{type:"search",name:"q",className:P.searchQueryInput,"aria-label":"Search",onChange:b,value:h,autoComplete:"off",autoFocus:!0})),Array.isArray(R.Kc)?a.createElement("div",{className:(0,g.Z)("col","col--3","padding-left--none",P.searchContextColumn)},a.createElement("select",{name:"search-context",className:P.searchContextInput,id:"context-selector",value:l,onChange:e=>m(e.target.value)},a.createElement("option",{value:""},R.pQ?(0,o.I)({id:"theme.SearchPage.searchContext.everywhere",message:"everywhere"}):""),R.Kc.map((e=>a.createElement("option",{key:e,value:e},e))))):null),!d&&h&&a.createElement("div",null,a.createElement(v.Z,null)),C&&(C.length>0?a.createElement("p",null,t(C.length,(0,o.I)({id:"theme.SearchPage.documentsFound.plurals",message:"1 document found|{count} documents found",description:'Pluralized label for "{count} documents found". Use as much plural forms (separated by "|") as your language support (see https://www.unicode.org/cldr/cldr-aux/charts/34/supplemental/language_plural_rules.html)'},{count:C.length}))):a.createElement("p",null,(0,o.I)({id:"theme.SearchPage.noResultsText",message:"No documents were found",description:"The paragraph for empty search result"}))),a.createElement("section",null,C&&C.map((e=>a.createElement(_,{key:e.document.i,searchResult:e}))))))}function _(e){let{searchResult:{document:t,type:r,page:n,tokens:l,metadata:s}}=e;const o=0===r,u=2===r,m=(o?t.b:n.b).slice(),h=u?t.s:t.t;o||m.push(n.t);let i="";if(R.vc&&l.length>0){const e=new URLSearchParams;for(const t of l)e.append("_highlight",t);i=`?${e.toString()}`}return a.createElement("article",{className:P.searchResultItem},a.createElement("h2",null,a.createElement(c.Z,{to:t.u+i+(t.h||""),dangerouslySetInnerHTML:{__html:u?(0,C.C)(h,l):(0,I.o)(h,(0,x.m)(s,"t"),l,100)}})),m.length>0&&a.createElement("p",{className:P.searchResultItemPath},(0,w.e)(m)),u&&a.createElement("p",{className:P.searchResultItemSummary,dangerouslySetInnerHTML:{__html:(0,I.o)(t.t,(0,x.m)(s,"t"),l,100)}}))}const k=function(){return a.createElement(l.Z,null,a.createElement(b,null))}}}]); \ No newline at end of file diff --git a/en/assets/js/1be78505.94988c33.js b/en/assets/js/1be78505.94988c33.js new file mode 100644 index 000000000..e594d00e5 --- /dev/null +++ b/en/assets/js/1be78505.94988c33.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunknpy_notebook=self.webpackChunknpy_notebook||[]).push([[9514,4972],{9963:(e,t,n)=>{n.r(t),n.d(t,{default:()=>ge});var a=n(7294),o=n(6010),l=n(1944),r=n(5281),c=n(3320),i=n(2802),s=n(4477),d=n(1116),m=n(179),u=n(5999),b=n(2466),p=n(5936);const h={backToTopButton:"backToTopButton_sjWU",backToTopButtonShow:"backToTopButtonShow_xfvO"};function E(){const{shown:e,scrollToTop:t}=function(e){let{threshold:t}=e;const[n,o]=(0,a.useState)(!1),l=(0,a.useRef)(!1),{startScroll:r,cancelScroll:c}=(0,b.Ct)();return(0,b.RF)(((e,n)=>{let{scrollY:a}=e;const r=n?.scrollY;r&&(l.current?l.current=!1:a>=r?(c(),o(!1)):a{e.location.hash&&(l.current=!0,o(!1))})),{shown:n,scrollToTop:()=>r(0)}}({threshold:300});return a.createElement("button",{"aria-label":(0,u.I)({id:"theme.BackToTopButton.buttonAriaLabel",message:"Scroll back to top",description:"The ARIA label for the back to top button"}),className:(0,o.Z)("clean-btn",r.k.common.backToTopButton,h.backToTopButton,e&&h.backToTopButtonShow),type:"button",onClick:t})}var f=n(1442),g=n(6550),v=n(7524),k=n(6668),_=n(1327),C=n(7462);function S(e){return a.createElement("svg",(0,C.Z)({width:"20",height:"20","aria-hidden":"true"},e),a.createElement("g",{fill:"#7a7a7a"},a.createElement("path",{d:"M9.992 10.023c0 .2-.062.399-.172.547l-4.996 7.492a.982.982 0 01-.828.454H1c-.55 0-1-.453-1-1 0-.2.059-.403.168-.551l4.629-6.942L.168 3.078A.939.939 0 010 2.528c0-.548.45-.997 1-.997h2.996c.352 0 .649.18.828.45L9.82 9.472c.11.148.172.347.172.55zm0 0"}),a.createElement("path",{d:"M19.98 10.023c0 .2-.058.399-.168.547l-4.996 7.492a.987.987 0 01-.828.454h-3c-.547 0-.996-.453-.996-1 0-.2.059-.403.168-.551l4.625-6.942-4.625-6.945a.939.939 0 01-.168-.55 1 1 0 01.996-.997h3c.348 0 .649.18.828.45l4.996 7.492c.11.148.168.347.168.55zm0 0"})))}const I={collapseSidebarButton:"collapseSidebarButton_PEFL",collapseSidebarButtonIcon:"collapseSidebarButtonIcon_kv0_"};function N(e){let{onClick:t}=e;return a.createElement("button",{type:"button",title:(0,u.I)({id:"theme.docs.sidebar.collapseButtonTitle",message:"Collapse sidebar",description:"The title attribute for collapse button of doc sidebar"}),"aria-label":(0,u.I)({id:"theme.docs.sidebar.collapseButtonAriaLabel",message:"Collapse sidebar",description:"The title attribute for collapse button of doc sidebar"}),className:(0,o.Z)("button button--secondary button--outline",I.collapseSidebarButton),onClick:t},a.createElement(S,{className:I.collapseSidebarButtonIcon}))}var T=n(9689),x=n(902);const Z=Symbol("EmptyContext"),B=a.createContext(Z);function y(e){let{children:t}=e;const[n,o]=(0,a.useState)(null),l=(0,a.useMemo)((()=>({expandedItem:n,setExpandedItem:o})),[n]);return a.createElement(B.Provider,{value:l},t)}var w=n(6043),L=n(8596),A=n(9960),M=n(2389);function F(e){let{categoryLabel:t,onClick:n}=e;return a.createElement("button",{"aria-label":(0,u.I)({id:"theme.DocSidebarItem.toggleCollapsedCategoryAriaLabel",message:"Toggle the collapsible sidebar category '{label}'",description:"The ARIA label to toggle the collapsible sidebar category"},{label:t}),type:"button",className:"clean-btn menu__caret",onClick:n})}function H(e){let{item:t,onItemClick:n,activePath:l,level:c,index:s,...d}=e;const{items:m,label:u,collapsible:b,className:p,href:h}=t,{docs:{sidebar:{autoCollapseCategories:E}}}=(0,k.L)(),f=function(e){const t=(0,M.Z)();return(0,a.useMemo)((()=>e.href?e.href:!t&&e.collapsible?(0,i.Wl)(e):void 0),[e,t])}(t),g=(0,i._F)(t,l),v=(0,L.Mg)(h,l),{collapsed:_,setCollapsed:S}=(0,w.u)({initialState:()=>!!b&&(!g&&t.collapsed)}),{expandedItem:I,setExpandedItem:N}=function(){const e=(0,a.useContext)(B);if(e===Z)throw new x.i6("DocSidebarItemsExpandedStateProvider");return e}(),T=function(e){void 0===e&&(e=!_),N(e?null:s),S(e)};return function(e){let{isActive:t,collapsed:n,updateCollapsed:o}=e;const l=(0,x.D9)(t);(0,a.useEffect)((()=>{t&&!l&&n&&o(!1)}),[t,l,n,o])}({isActive:g,collapsed:_,updateCollapsed:T}),(0,a.useEffect)((()=>{b&&null!=I&&I!==s&&E&&S(!0)}),[b,I,s,S,E]),a.createElement("li",{className:(0,o.Z)(r.k.docs.docSidebarItemCategory,r.k.docs.docSidebarItemCategoryLevel(c),"menu__list-item",{"menu__list-item--collapsed":_},p)},a.createElement("div",{className:(0,o.Z)("menu__list-item-collapsible",{"menu__list-item-collapsible--active":v})},a.createElement(A.Z,(0,C.Z)({className:(0,o.Z)("menu__link",{"menu__link--sublist":b,"menu__link--sublist-caret":!h&&b,"menu__link--active":g}),onClick:b?e=>{n?.(t),h?T(!1):(e.preventDefault(),T())}:()=>{n?.(t)},"aria-current":v?"page":void 0,"aria-expanded":b?!_:void 0,href:b?f??"#":f},d),u),h&&b&&a.createElement(F,{categoryLabel:u,onClick:e=>{e.preventDefault(),T()}})),a.createElement(w.z,{lazy:!0,as:"ul",className:"menu__list",collapsed:_},a.createElement(j,{items:m,tabIndex:_?-1:0,onItemClick:n,activePath:l,level:c+1})))}var P=n(3919),W=n(9471);const D={menuExternalLink:"menuExternalLink_NmtK"};function R(e){let{item:t,onItemClick:n,activePath:l,level:c,index:s,...d}=e;const{href:m,label:u,className:b,autoAddBaseUrl:p}=t,h=(0,i._F)(t,l),E=(0,P.Z)(m);return a.createElement("li",{className:(0,o.Z)(r.k.docs.docSidebarItemLink,r.k.docs.docSidebarItemLinkLevel(c),"menu__list-item",b),key:u},a.createElement(A.Z,(0,C.Z)({className:(0,o.Z)("menu__link",!E&&D.menuExternalLink,{"menu__link--active":h}),autoAddBaseUrl:p,"aria-current":h?"page":void 0,to:m},E&&{onClick:n?()=>n(t):void 0},d),u,!E&&a.createElement(W.Z,null)))}const V={menuHtmlItem:"menuHtmlItem_M9Kj"};function U(e){let{item:t,level:n,index:l}=e;const{value:c,defaultStyle:i,className:s}=t;return a.createElement("li",{className:(0,o.Z)(r.k.docs.docSidebarItemLink,r.k.docs.docSidebarItemLinkLevel(n),i&&[V.menuHtmlItem,"menu__list-item"],s),key:l,dangerouslySetInnerHTML:{__html:c}})}function z(e){let{item:t,...n}=e;switch(t.type){case"category":return a.createElement(H,(0,C.Z)({item:t},n));case"html":return a.createElement(U,(0,C.Z)({item:t},n));default:return a.createElement(R,(0,C.Z)({item:t},n))}}function K(e){let{items:t,...n}=e;return a.createElement(y,null,t.map(((e,t)=>a.createElement(z,(0,C.Z)({key:t,item:e,index:t},n)))))}const j=(0,a.memo)(K),q={menu:"menu_SIkG",menuWithAnnouncementBar:"menuWithAnnouncementBar_GW3s"};function G(e){let{path:t,sidebar:n,className:l}=e;const c=function(){const{isActive:e}=(0,T.nT)(),[t,n]=(0,a.useState)(e);return(0,b.RF)((t=>{let{scrollY:a}=t;e&&n(0===a)}),[e]),e&&t}();return a.createElement("nav",{"aria-label":(0,u.I)({id:"theme.docs.sidebar.navAriaLabel",message:"Docs sidebar",description:"The ARIA label for the sidebar navigation"}),className:(0,o.Z)("menu thin-scrollbar",q.menu,c&&q.menuWithAnnouncementBar,l)},a.createElement("ul",{className:(0,o.Z)(r.k.docs.docSidebarMenu,"menu__list")},a.createElement(j,{items:n,activePath:t,level:1})))}const Y="sidebar_njMd",O="sidebarWithHideableNavbar_wUlq",X="sidebarHidden_VK0M",J="sidebarLogo_isFc";function Q(e){let{path:t,sidebar:n,onCollapse:l,isHidden:r}=e;const{navbar:{hideOnScroll:c},docs:{sidebar:{hideable:i}}}=(0,k.L)();return a.createElement("div",{className:(0,o.Z)(Y,c&&O,r&&X)},c&&a.createElement(_.Z,{tabIndex:-1,className:J}),a.createElement(G,{path:t,sidebar:n}),i&&a.createElement(N,{onClick:l}))}const $=a.memo(Q);var ee=n(3102),te=n(2961);const ne=e=>{let{sidebar:t,path:n}=e;const l=(0,te.e)();return a.createElement("ul",{className:(0,o.Z)(r.k.docs.docSidebarMenu,"menu__list")},a.createElement(j,{items:t,activePath:n,onItemClick:e=>{"category"===e.type&&e.href&&l.toggle(),"link"===e.type&&l.toggle()},level:1}))};function ae(e){return a.createElement(ee.Zo,{component:ne,props:e})}const oe=a.memo(ae);function le(e){const t=(0,v.i)(),n="desktop"===t||"ssr"===t,o="mobile"===t;return a.createElement(a.Fragment,null,n&&a.createElement($,e),o&&a.createElement(oe,e))}const re={expandButton:"expandButton_m80_",expandButtonIcon:"expandButtonIcon_BlDH"};function ce(e){let{toggleSidebar:t}=e;return a.createElement("div",{className:re.expandButton,title:(0,u.I)({id:"theme.docs.sidebar.expandButtonTitle",message:"Expand sidebar",description:"The ARIA label and title attribute for expand button of doc sidebar"}),"aria-label":(0,u.I)({id:"theme.docs.sidebar.expandButtonAriaLabel",message:"Expand sidebar",description:"The ARIA label and title attribute for expand button of doc sidebar"}),tabIndex:0,role:"button",onKeyDown:t,onClick:t},a.createElement(S,{className:re.expandButtonIcon}))}const ie={docSidebarContainer:"docSidebarContainer_b6E3",docSidebarContainerHidden:"docSidebarContainerHidden_b3ry",sidebarViewport:"sidebarViewport_Xe31"};function se(e){let{children:t}=e;const n=(0,d.V)();return a.createElement(a.Fragment,{key:n?.name??"noSidebar"},t)}function de(e){let{sidebar:t,hiddenSidebarContainer:n,setHiddenSidebarContainer:l}=e;const{pathname:c}=(0,g.TH)(),[i,s]=(0,a.useState)(!1),d=(0,a.useCallback)((()=>{i&&s(!1),!i&&(0,f.n)()&&s(!0),l((e=>!e))}),[l,i]);return a.createElement("aside",{className:(0,o.Z)(r.k.docs.docSidebarContainer,ie.docSidebarContainer,n&&ie.docSidebarContainerHidden),onTransitionEnd:e=>{e.currentTarget.classList.contains(ie.docSidebarContainer)&&n&&s(!0)}},a.createElement(se,null,a.createElement("div",{className:(0,o.Z)(ie.sidebarViewport,i&&ie.sidebarViewportHidden)},a.createElement(le,{sidebar:t,path:c,onCollapse:d,isHidden:i}),i&&a.createElement(ce,{toggleSidebar:d}))))}const me={docMainContainer:"docMainContainer_gTbr",docMainContainerEnhanced:"docMainContainerEnhanced_Uz_u",docItemWrapperEnhanced:"docItemWrapperEnhanced_czyv"};function ue(e){let{hiddenSidebarContainer:t,children:n}=e;const l=(0,d.V)();return a.createElement("main",{className:(0,o.Z)(me.docMainContainer,(t||!l)&&me.docMainContainerEnhanced)},a.createElement("div",{className:(0,o.Z)("container padding-top--md padding-bottom--lg",me.docItemWrapper,t&&me.docItemWrapperEnhanced)},n))}const be={docPage:"docPage__5DB",docsWrapper:"docsWrapper_BCFX","themedComponent--light":"themedComponent--light_NU7w"};function pe(e){let{children:t}=e;const n=(0,d.V)(),[o,l]=(0,a.useState)(!1);return a.createElement(m.Z,{wrapperClassName:be.docsWrapper},a.createElement(E,null),a.createElement("div",{className:be.docPage},n&&a.createElement(de,{sidebar:n.items,hiddenSidebarContainer:o,setHiddenSidebarContainer:l}),a.createElement(ue,{hiddenSidebarContainer:o},t)))}var he=n(4972),Ee=n(197);function fe(e){const{versionMetadata:t}=e;return a.createElement(a.Fragment,null,a.createElement(Ee.Z,{version:t.version,tag:(0,c.os)(t.pluginId,t.version)}),a.createElement(l.d,null,t.noIndex&&a.createElement("meta",{name:"robots",content:"noindex, nofollow"})))}function ge(e){const{versionMetadata:t}=e,n=(0,i.hI)(e);if(!n)return a.createElement(he.default,null);const{docElement:c,sidebarName:m,sidebarItems:u}=n;return a.createElement(a.Fragment,null,a.createElement(fe,e),a.createElement(l.FG,{className:(0,o.Z)(r.k.wrapper.docsPages,r.k.page.docsDocPage,e.versionMetadata.className)},a.createElement(s.q,{version:t},a.createElement(d.b,{name:m,items:u},a.createElement(pe,null,c)))))}},4972:(e,t,n)=>{n.r(t),n.d(t,{default:()=>c});var a=n(7294),o=n(5999),l=n(1944),r=n(179);function c(){return a.createElement(a.Fragment,null,a.createElement(l.d,{title:(0,o.I)({id:"theme.NotFound.title",message:"Page Not Found"})}),a.createElement(r.Z,null,a.createElement("main",{className:"container margin-vert--xl"},a.createElement("div",{className:"row"},a.createElement("div",{className:"col col--6 col--offset-3"},a.createElement("h1",{className:"hero__title"},a.createElement(o.Z,{id:"theme.NotFound.title",description:"The title of the 404 page"},"Page Not Found")),a.createElement("p",null,a.createElement(o.Z,{id:"theme.NotFound.p1",description:"The first paragraph of the 404 page"},"We could not find what you were looking for.")),a.createElement("p",null,a.createElement(o.Z,{id:"theme.NotFound.p2",description:"The 2nd paragraph of the 404 page"},"Please contact the owner of the site that linked you to the original URL and let them know their link is broken.")))))))}},4477:(e,t,n)=>{n.d(t,{E:()=>c,q:()=>r});var a=n(7294),o=n(902);const l=a.createContext(null);function r(e){let{children:t,version:n}=e;return a.createElement(l.Provider,{value:n},t)}function c(){const e=(0,a.useContext)(l);if(null===e)throw new o.i6("DocsVersionProvider");return e}}}]); \ No newline at end of file diff --git a/en/assets/js/1f391b9e.e222276a.js b/en/assets/js/1f391b9e.e222276a.js new file mode 100644 index 000000000..d2242eee1 --- /dev/null +++ b/en/assets/js/1f391b9e.e222276a.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunknpy_notebook=self.webpackChunknpy_notebook||[]).push([[3085],{4247:(e,t,a)=>{a.r(t),a.d(t,{default:()=>d});var n=a(7294),l=a(6010),c=a(1944),r=a(5281),m=a(179),o=a(864),i=a(9407);const s={mdxPageWrapper:"mdxPageWrapper_j9I6"};function d(e){const{content:t}=e,{metadata:{title:a,description:d,frontMatter:p}}=t,{wrapperClassName:g,hide_table_of_contents:u}=p;return n.createElement(c.FG,{className:(0,l.Z)(g??r.k.wrapper.mdxPages,r.k.page.mdxPage)},n.createElement(c.d,{title:a,description:d}),n.createElement(m.Z,null,n.createElement("main",{className:"container container--fluid margin-vert--lg"},n.createElement("div",{className:(0,l.Z)("row",s.mdxPageWrapper)},n.createElement("div",{className:(0,l.Z)("col",!u&&"col--8")},n.createElement("article",null,n.createElement(o.Z,null,n.createElement(t,null)))),!u&&t.toc.length>0&&n.createElement("div",{className:"col col--2"},n.createElement(i.Z,{toc:t.toc,minHeadingLevel:p.toc_min_heading_level,maxHeadingLevel:p.toc_max_heading_level}))))))}}}]); \ No newline at end of file diff --git a/en/assets/js/21a88645.5d87fc6c.js b/en/assets/js/21a88645.5d87fc6c.js new file mode 100644 index 000000000..d8ab68012 --- /dev/null +++ b/en/assets/js/21a88645.5d87fc6c.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunknpy_notebook=self.webpackChunknpy_notebook||[]).push([[9913],{3905:(a,e,t)=>{t.d(e,{Zo:()=>i,kt:()=>h});var s=t(7294);function m(a,e,t){return e in a?Object.defineProperty(a,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):a[e]=t,a}function n(a,e){var t=Object.keys(a);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(a);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable}))),t.push.apply(t,s)}return t}function p(a){for(var e=1;e=0||(m[t]=a[t]);return m}(a,e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);for(s=0;s=0||Object.prototype.propertyIsEnumerable.call(a,t)&&(m[t]=a[t])}return m}var N=s.createContext({}),l=function(a){var e=s.useContext(N),t=e;return a&&(t="function"==typeof a?a(e):p(p({},e),a)),t},i=function(a){var e=l(a.components);return s.createElement(N.Provider,{value:e},a.children)},k="mdxType",c={inlineCode:"code",wrapper:function(a){var e=a.children;return s.createElement(s.Fragment,{},e)}},o=s.forwardRef((function(a,e){var t=a.components,m=a.mdxType,n=a.originalType,N=a.parentName,i=r(a,["components","mdxType","originalType","parentName"]),k=l(t),o=m,h=k["".concat(N,".").concat(o)]||k[o]||c[o]||n;return t?s.createElement(h,p(p({ref:e},i),{},{components:t})):s.createElement(h,p({ref:e},i))}));function h(a,e){var t=arguments,m=e&&e.mdxType;if("string"==typeof a||m){var n=t.length,p=new Array(n);p[0]=o;var r={};for(var N in e)hasOwnProperty.call(e,N)&&(r[N]=e[N]);r.originalType=a,r[k]="string"==typeof a?a:m,p[1]=r;for(var l=2;l{t.r(e),t.d(e,{assets:()=>N,contentTitle:()=>p,default:()=>c,frontMatter:()=>n,metadata:()=>r,toc:()=>l});var s=t(7462),m=(t(7294),t(3905));const n={},p="NeurIPS 2020: Denoising Diffusion Probabilistic Models",r={unversionedId:"Deep-Learning/\u8bba\u6587\u7b14\u8bb0/Denoising Diffusion Probabilistic Models",id:"Deep-Learning/\u8bba\u6587\u7b14\u8bb0/Denoising Diffusion Probabilistic Models",title:"NeurIPS 2020: Denoising Diffusion Probabilistic Models",description:"\u8bba\u6587\uff1aarXiv",source:"@site/docs/Deep-Learning/6-\u8bba\u6587\u7b14\u8bb0/2-Denoising Diffusion Probabilistic Models.md",sourceDirName:"Deep-Learning/6-\u8bba\u6587\u7b14\u8bb0",slug:"/Deep-Learning/\u8bba\u6587\u7b14\u8bb0/Denoising Diffusion Probabilistic Models",permalink:"/en/docs/Deep-Learning/\u8bba\u6587\u7b14\u8bb0/Denoising Diffusion Probabilistic Models",draft:!1,tags:[],version:"current",sidebarPosition:2,frontMatter:{},sidebar:"deep_learning",previous:{title:"NeurIPS 2017: Attention Is All You Need",permalink:"/en/docs/Deep-Learning/\u8bba\u6587\u7b14\u8bb0/Attention Is All You Need"},next:{title:"CVPR 2022: High-Resolution Image Synthesis with Latent Diffusion Models",permalink:"/en/docs/Deep-Learning/\u8bba\u6587\u7b14\u8bb0/High-Resolution Image Synthesis with Latent Diffusion Models"}},N={},l=[{value:"\u6570\u5b66\u539f\u7406\uff08Mathematical Preliminary\uff09",id:"\u6570\u5b66\u539f\u7406mathematical-preliminary",level:2},{value:"\u5148\u9a8c\u6982\u7387\u4e0e\u540e\u9a8c\u6982\u7387",id:"\u5148\u9a8c\u6982\u7387\u4e0e\u540e\u9a8c\u6982\u7387",level:3},{value:"\u6761\u4ef6\u6982\u7387\u7684\u5b9a\u4e49",id:"\u6761\u4ef6\u6982\u7387\u7684\u5b9a\u4e49",level:4},{value:"\u5168\u6982\u7387\u516c\u5f0f",id:"\u5168\u6982\u7387\u516c\u5f0f",level:4},{value:"\u8d1d\u53f6\u65af\u516c\u5f0f",id:"\u8d1d\u53f6\u65af\u516c\u5f0f",level:4},{value:"\u6761\u4ef6\u6982\u7387\u4e0e\u9ad8\u65af\u5206\u5e03\u7684KL\u6563\u5ea6",id:"\u6761\u4ef6\u6982\u7387\u4e0e\u9ad8\u65af\u5206\u5e03\u7684kl\u6563\u5ea6",level:3},{value:"\u6761\u4ef6\u6982\u7387\u7684\u4e00\u822c\u5f62\u5f0f",id:"\u6761\u4ef6\u6982\u7387\u7684\u4e00\u822c\u5f62\u5f0f",level:4},{value:"\u9ad8\u65af\u5206\u5e03\u7684KL\u6563\u5ea6",id:"\u9ad8\u65af\u5206\u5e03\u7684kl\u6563\u5ea6",level:4},{value:"\u9a6c\u5c14\u79d1\u592b\u94fe\u6761\u4ef6\u6982\u7387\u5f62\u5f0f",id:"\u9a6c\u5c14\u79d1\u592b\u94fe\u6761\u4ef6\u6982\u7387\u5f62\u5f0f",level:3},{value:"\u53c2\u6570\u91cd\u6574\u5316\u6280\u5de7",id:"\u53c2\u6570\u91cd\u6574\u5316\u6280\u5de7",level:3}],i={toc:l},k="wrapper";function c(a){let{components:e,...t}=a;return(0,m.kt)(k,(0,s.Z)({},i,t,{components:e,mdxType:"MDXLayout"}),(0,m.kt)("h1",{id:"neurips-2020-denoising-diffusion-probabilistic-models"},"NeurIPS 2020: Denoising Diffusion Probabilistic Models"),(0,m.kt)("admonition",{title:"\u76f8\u5173\u94fe\u63a5",type:"tip"},(0,m.kt)("p",{parentName:"admonition"},"\u8bba\u6587\uff1a",(0,m.kt)("a",{parentName:"p",href:"https://arxiv.org/pdf/2006.11239.pdf"},"arXiv")),(0,m.kt)("p",{parentName:"admonition"},"\u4ee3\u7801\uff1a",(0,m.kt)("a",{parentName:"p",href:"https://github.com/hojonathanho/diffusion"},"GitHub")),(0,m.kt)("p",{parentName:"admonition"},"\u53c2\u8003\u8d44\u6599\uff1a"),(0,m.kt)("ul",{parentName:"admonition"},(0,m.kt)("li",{parentName:"ul"},(0,m.kt)("a",{parentName:"li",href:"https://www.bilibili.com/video/BV1b541197HX/?spm_id_from=333.337.search-card.all.click&vd_source=f7612ffc8ec6f523824661106b4c304f"},"54\u3001Probabilistic Diffusion Model\u6982\u7387\u6269\u6563\u6a21\u578b\u7406\u8bba\u4e0e\u5b8c\u6574PyTorch\u4ee3\u7801\u8be6\u7ec6\u89e3\u8bfb")),(0,m.kt)("li",{parentName:"ul"},(0,m.kt)("a",{parentName:"li",href:"https://www.bilibili.com/video/BV1WD4y157u3/?spm_id_from=333.337.search-card.all.click&vd_source=f7612ffc8ec6f523824661106b4c304f"},"\u3010\u8bba\u6587\u7cbe\u8bfb\u3011Diffusion Model \u5f00\u5c71\u4e4b\u4f5cDDPM")))),(0,m.kt)("h2",{id:"\u6570\u5b66\u539f\u7406mathematical-preliminary"},"\u6570\u5b66\u539f\u7406\uff08Mathematical Preliminary\uff09"),(0,m.kt)("h3",{id:"\u5148\u9a8c\u6982\u7387\u4e0e\u540e\u9a8c\u6982\u7387"},"\u5148\u9a8c\u6982\u7387\u4e0e\u540e\u9a8c\u6982\u7387"),(0,m.kt)("h4",{id:"\u6761\u4ef6\u6982\u7387\u7684\u5b9a\u4e49"},"\u6761\u4ef6\u6982\u7387\u7684\u5b9a\u4e49"),(0,m.kt)("p",null,"\u6761\u4ef6\u6982\u7387\u662f\u6307\u5728\u7ed9\u5b9a\u53e6\u4e00\u4e2a\u4e8b\u4ef6\u53d1\u751f\u7684\u6761\u4ef6\u4e0b\uff0c\u67d0\u4e00\u4e8b\u4ef6\u53d1\u751f\u7684\u6982\u7387\u3002\u6761\u4ef6\u6982\u7387\u901a\u5e38\u7528\u7b26\u53f7",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"A"),(0,m.kt)("mo",{parentName:"mrow"},"\u2223"),(0,m.kt)("mi",{parentName:"mrow"},"B"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"P(A\\mid B)")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"P"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"A"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"\u2223"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05017em"}},"B"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"))))),"\u8868\u793a\uff0c\u8bfb\u4f5c\u201c\u5728 B \u53d1\u751f\u7684\u6761\u4ef6\u4e0b A \u53d1\u751f\u7684\u6982\u7387\u201d\u3002"),(0,m.kt)("p",null,"\u6761\u4ef6\u6982\u7387\u7684\u8ba1\u7b97\u516c\u5f0f\u4e3a\uff1a"),(0,m.kt)("div",{className:"math math-display"},(0,m.kt)("span",{parentName:"div",className:"katex-display"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"A"),(0,m.kt)("mo",{parentName:"mrow"},"\u2223"),(0,m.kt)("mi",{parentName:"mrow"},"B"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("mfrac",{parentName:"mrow"},(0,m.kt)("mrow",{parentName:"mfrac"},(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"A"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"B"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,m.kt)("mrow",{parentName:"mfrac"},(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"B"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")")))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"P(A\\mid B)=\\frac{P(A,B)}{P(B)}")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"P"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"A"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"\u2223"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05017em"}},"B"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"="),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"2.363em",verticalAlign:"-0.936em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mopen nulldelimiter"}),(0,m.kt)("span",{parentName:"span",className:"mfrac"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.427em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.314em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"P"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05017em"}},"B"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.23em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"frac-line",style:{borderBottomWidth:"0.04em"}})),(0,m.kt)("span",{parentName:"span",style:{top:"-3.677em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"P"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"A"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05017em"}},"B"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.936em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"mclose nulldelimiter"}))))))),(0,m.kt)("p",null,"\u5176\u4e2d\uff1a"),(0,m.kt)("ul",null,(0,m.kt)("li",{parentName:"ul"},(0,m.kt)("span",{parentName:"li",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"A"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"B"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"P(A,B)")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"P"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"A"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05017em"}},"B"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"))))),"\u662f\u4e8b\u4ef6",(0,m.kt)("span",{parentName:"li",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"A")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"A")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6833em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"A"))))),"\u3001",(0,m.kt)("span",{parentName:"li",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"B")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"B")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6833em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05017em"}},"B"))))),"\u540c\u65f6\u53d1\u751f\u7684\u6982\u7387\uff0c\u4e5f\u53eb",(0,m.kt)("strong",{parentName:"li"},"\u8054\u5408\u6982\u7387")),(0,m.kt)("li",{parentName:"ul"},(0,m.kt)("span",{parentName:"li",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"B"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"P(B)")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"P"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05017em"}},"B"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"))))),"\u662f\u4e8b\u4ef6",(0,m.kt)("span",{parentName:"li",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"B")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"B")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6833em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05017em"}},"B"))))),"\u72ec\u7acb\u53d1\u751f\u7684\u6982\u7387")),(0,m.kt)("h4",{id:"\u5168\u6982\u7387\u516c\u5f0f"},"\u5168\u6982\u7387\u516c\u5f0f"),(0,m.kt)("p",null,"\u5bf9\u4e8e\u4e8b\u4ef6",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"A")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"A")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6833em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"A"))))),"\u800c\u8a00\uff0c\u5047\u8bbe\u6709\u4e00\u7ec4",(0,m.kt)("strong",{parentName:"p"},"\u4e92\u65a5\u4e14\u7a77\u5c3d"),"\u7684\u6761\u4ef6\u4e8b\u4ef6",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"B"),(0,m.kt)("mn",{parentName:"msub"},"1")),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"B"),(0,m.kt)("mn",{parentName:"msub"},"2")),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mo",{parentName:"mrow"},"\u2026"),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"B"),(0,m.kt)("mi",{parentName:"msub"},"n"))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"B_{1},B_{2},\\ldots B_{n}")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.8778em",verticalAlign:"-0.1944em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05017em"}},"B"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0502em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"1"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05017em"}},"B"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0502em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"2"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"minner"},"\u2026"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05017em"}},"B"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.1514em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0502em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"n"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))))))),"\u6784\u6210\u4e00\u4e2a\u5b8c\u5907\u4e8b\u4ef6\u7ec4\uff0c\u5219\u4e8b\u4ef6",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"A")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"A")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6833em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"A"))))),"\u7684\u6982\u7387\u7b49\u4e8e\u4e8b\u4ef6",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"A")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"A")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6833em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"A"))))),"\u5728\u6bcf\u4e2a\u6761\u4ef6\u4e8b\u4ef6",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"B"),(0,m.kt)("mi",{parentName:"msub"},"i"))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"B_i")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.8333em",verticalAlign:"-0.15em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05017em"}},"B"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3117em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0502em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"i")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))))))),"\u4e0b\u53d1\u751f\u7684\u6982\u7387\u4e0e\u8be5\u6761\u4ef6\u4e8b\u4ef6\u53d1\u751f\u6982\u7387\u7684\u4e58\u79ef\u548c\u3002"),(0,m.kt)("div",{className:"math math-display"},(0,m.kt)("span",{parentName:"div",className:"katex-display"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"A"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("munderover",{parentName:"mrow"},(0,m.kt)("mo",{parentName:"munderover"},"\u2211"),(0,m.kt)("mrow",{parentName:"munderover"},(0,m.kt)("mi",{parentName:"mrow"},"i"),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("mn",{parentName:"mrow"},"1")),(0,m.kt)("mi",{parentName:"munderover"},"n")),(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"A"),(0,m.kt)("mo",{parentName:"mrow"},"\u2223"),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"B"),(0,m.kt)("mi",{parentName:"msub"},"i")),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"\u22c5"),(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"B"),(0,m.kt)("mi",{parentName:"msub"},"i")),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"P(A)=\\sum_{i=1}^nP(A\\mid B_i)\\cdot P(B_i)")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"P"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"A"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"="),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"2.9291em",verticalAlign:"-1.2777em"}}),(0,m.kt)("span",{parentName:"span",className:"mop op-limits"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.6514em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-1.8723em",marginLeft:"0em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.05em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"i"),(0,m.kt)("span",{parentName:"span",className:"mrel mtight"},"="),(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"1")))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.05em"}}),(0,m.kt)("span",{parentName:"span"},(0,m.kt)("span",{parentName:"span",className:"mop op-symbol large-op"},"\u2211"))),(0,m.kt)("span",{parentName:"span",style:{top:"-4.3em",marginLeft:"0em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.05em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"n")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.2777em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"P"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"A"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"\u2223"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05017em"}},"B"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3117em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0502em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"i")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"\u22c5"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"P"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05017em"}},"B"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3117em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0502em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"i")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mclose"},")")))))),(0,m.kt)("p",null,"\u53ef\u4ee5\u770b\u51fa\uff0c\u5168\u6982\u7387\u516c\u5f0f\u662f\u7531\u201c\u56e0\u201d\uff08\u6761\u4ef6\u4e8b\u4ef6",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"B"),(0,m.kt)("mi",{parentName:"msub"},"i"))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"B_i")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.8333em",verticalAlign:"-0.15em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05017em"}},"B"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3117em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0502em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"i")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))))))),"\uff09\u63a8\u201c\u679c\u201d\uff08\u7ed3\u679c\u4e8b\u4ef6",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"A")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"A")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6833em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"A"))))),"\uff09\u7684\u8fc7\u7a0b\uff0c\u5373\u5f53\u77e5\u9053\u67d0\u7ed3\u679c\u4e8b\u4ef6\u7684\u539f\u56e0\u540e\uff0c\u63a8\u65ad\u7531\u8be5\u539f\u56e0\u5bfc\u81f4\u8fd9\u4ef6\u4e8b\u53d1\u751f\u7684\u6982\u7387\u662f\u591a\u5c11\u3002"),(0,m.kt)("h4",{id:"\u8d1d\u53f6\u65af\u516c\u5f0f"},"\u8d1d\u53f6\u65af\u516c\u5f0f"),(0,m.kt)("p",null,"\u8d1d\u53f6\u65af\u516c\u5f0f\u5728\u89c2\u6d4b\u5230\u7ed3\u679c\u4e8b\u4ef6",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"A")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"A")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6833em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"A"))))),"\u53d1\u751f\u540e\uff0c\u8ba1\u7b97\u5176\u6761\u4ef6\u4e8b\u4ef6",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"B"),(0,m.kt)("mi",{parentName:"msub"},"i"))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"B_i")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.8333em",verticalAlign:"-0.15em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05017em"}},"B"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3117em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0502em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"i")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))))))),"\u5728\u4e8b\u4ef6",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"A")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"A")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6833em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"A"))))),"\u5df2\u7ecf\u53d1\u751f\u7684\u6761\u4ef6\u4e0b\u800c\u53d1\u751f\u7684\u540e\u9a8c\u6982\u7387\u3002"),(0,m.kt)("p",null,"\u7ee7\u7eed\u6cbf\u7528\u4e0a\u8ff0\u5168\u6982\u7387\u516c\u5f0f\u7684\u7b26\u53f7\u5b9a\u4e49\uff0c\u5219\u6709\uff1a"),(0,m.kt)("div",{className:"math math-display"},(0,m.kt)("span",{parentName:"div",className:"katex-display"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"B"),(0,m.kt)("mi",{parentName:"msub"},"i")),(0,m.kt)("mo",{parentName:"mrow"},"\u2223"),(0,m.kt)("mi",{parentName:"mrow"},"A"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("mfrac",{parentName:"mrow"},(0,m.kt)("mrow",{parentName:"mfrac"},(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"A"),(0,m.kt)("mo",{parentName:"mrow"},"\u2223"),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"B"),(0,m.kt)("mi",{parentName:"msub"},"i")),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"\u22c5"),(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"B"),(0,m.kt)("mi",{parentName:"msub"},"i")),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,m.kt)("mrow",{parentName:"mfrac"},(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"A"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")")))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"P(B_i\\mid A)=\\frac{P(A\\mid B_i)\\cdot P(B_i)}{P(A)}")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"P"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05017em"}},"B"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3117em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0502em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"i")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"\u2223"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"A"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"="),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"2.363em",verticalAlign:"-0.936em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mopen nulldelimiter"}),(0,m.kt)("span",{parentName:"span",className:"mfrac"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.427em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.314em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"P"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"A"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.23em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"frac-line",style:{borderBottomWidth:"0.04em"}})),(0,m.kt)("span",{parentName:"span",style:{top:"-3.677em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"P"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"A"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"\u2223"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05017em"}},"B"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3117em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0502em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"i")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"\u22c5"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"P"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05017em"}},"B"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3117em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0502em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"i")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mclose"},")")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.936em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"mclose nulldelimiter"}))))))),(0,m.kt)("p",null,"\u5176\u4e2d\uff1a"),(0,m.kt)("ul",null,(0,m.kt)("li",{parentName:"ul"},(0,m.kt)("span",{parentName:"li",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"B"),(0,m.kt)("mi",{parentName:"msub"},"i")),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"P(B_i)")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"P"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05017em"}},"B"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3117em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0502em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"i")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"))))),"\u4ee5\u53ca",(0,m.kt)("span",{parentName:"li",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"A"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"P(A)")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"P"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"A"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"))))),"\u79f0\u4e3a\u5148\u9a8c\u6982\u7387"),(0,m.kt)("li",{parentName:"ul"},(0,m.kt)("span",{parentName:"li",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"B"),(0,m.kt)("mi",{parentName:"msub"},"i")),(0,m.kt)("mo",{parentName:"mrow"},"\u2223"),(0,m.kt)("mi",{parentName:"mrow"},"A"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"P(B_i\\mid A)")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"P"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05017em"}},"B"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3117em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0502em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"i")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"\u2223"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"A"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"))))),"\u79f0\u4e3a\u540e\u9a8c\u6982\u7387"),(0,m.kt)("li",{parentName:"ul"},(0,m.kt)("span",{parentName:"li",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"A"),(0,m.kt)("mo",{parentName:"mrow"},"\u2223"),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"B"),(0,m.kt)("mi",{parentName:"msub"},"i")),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"P(A\\mid B_i)")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"P"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"A"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"\u2223"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05017em"}},"B"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3117em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0502em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"i")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"))))),"\u79f0\u4e3a\u4f3c\u7136")),(0,m.kt)("h3",{id:"\u6761\u4ef6\u6982\u7387\u4e0e\u9ad8\u65af\u5206\u5e03\u7684kl\u6563\u5ea6"},"\u6761\u4ef6\u6982\u7387\u4e0e\u9ad8\u65af\u5206\u5e03\u7684KL\u6563\u5ea6"),(0,m.kt)("h4",{id:"\u6761\u4ef6\u6982\u7387\u7684\u4e00\u822c\u5f62\u5f0f"},"\u6761\u4ef6\u6982\u7387\u7684\u4e00\u822c\u5f62\u5f0f"),(0,m.kt)("div",{className:"math math-display"},(0,m.kt)("span",{parentName:"div",className:"katex-display"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"A"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"B"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"C"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"C"),(0,m.kt)("mo",{parentName:"mrow"},"\u2223"),(0,m.kt)("mi",{parentName:"mrow"},"A"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"B"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"\u22c5"),(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"A"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"B"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"C"),(0,m.kt)("mo",{parentName:"mrow"},"\u2223"),(0,m.kt)("mi",{parentName:"mrow"},"A"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"B"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"\u22c5"),(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"B"),(0,m.kt)("mo",{parentName:"mrow"},"\u2223"),(0,m.kt)("mi",{parentName:"mrow"},"A"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"\u22c5"),(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"A"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"P(A,B,C)=P(C\\mid A,B)\\cdot P(A,B)=P(C\\mid A,B)\\cdot P(B\\mid A)\\cdot P(A)")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"P"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"A"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05017em"}},"B"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.07153em"}},"C"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"="),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"P"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.07153em"}},"C"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"\u2223"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"A"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05017em"}},"B"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"\u22c5"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"P"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"A"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05017em"}},"B"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"="),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"P"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.07153em"}},"C"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"\u2223"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"A"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05017em"}},"B"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"\u22c5"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"P"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05017em"}},"B"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"\u2223"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"A"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"\u22c5"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"P"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"A"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")")))))),(0,m.kt)("div",{className:"math math-display"},(0,m.kt)("span",{parentName:"div",className:"katex-display"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"B"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"C"),(0,m.kt)("mo",{parentName:"mrow"},"\u2223"),(0,m.kt)("mi",{parentName:"mrow"},"A"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"B"),(0,m.kt)("mo",{parentName:"mrow"},"\u2223"),(0,m.kt)("mi",{parentName:"mrow"},"A"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"\u22c5"),(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"C"),(0,m.kt)("mo",{parentName:"mrow"},"\u2223"),(0,m.kt)("mi",{parentName:"mrow"},"A"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"B"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"P(B,C\\mid A)=P(B\\mid A)\\cdot P(C\\mid A,B)")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"P"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05017em"}},"B"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.07153em"}},"C"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"\u2223"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"A"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"="),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"P"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05017em"}},"B"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"\u2223"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"A"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"\u22c5"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"P"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.07153em"}},"C"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"\u2223"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"A"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05017em"}},"B"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")")))))),(0,m.kt)("p",null,"\u5176\u4e2d\uff0c\u7b2c\u4e8c\u884c\u516c\u5f0f\u7684\u63a8\u5bfc\u5982\u4e0b\uff1a"),(0,m.kt)("div",{className:"math math-display"},(0,m.kt)("span",{parentName:"div",className:"katex-display"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mtable",{parentName:"semantics",rowspacing:"0.25em",columnalign:"right left",columnspacing:"0em"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"true"},(0,m.kt)("mrow",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"B"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"C"),(0,m.kt)("mo",{parentName:"mrow"},"\u2223"),(0,m.kt)("mi",{parentName:"mrow"},"A"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")")))),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"true"},(0,m.kt)("mrow",{parentName:"mstyle"},(0,m.kt)("mrow",{parentName:"mrow"}),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("mfrac",{parentName:"mrow"},(0,m.kt)("mrow",{parentName:"mfrac"},(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"A"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"B"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"C"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,m.kt)("mrow",{parentName:"mfrac"},(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"A"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"))))))),(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"true"},(0,m.kt)("mrow",{parentName:"mstyle"}))),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"true"},(0,m.kt)("mrow",{parentName:"mstyle"},(0,m.kt)("mrow",{parentName:"mrow"}),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("mfrac",{parentName:"mrow"},(0,m.kt)("mrow",{parentName:"mfrac"},(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"A"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"B"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"C"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,m.kt)("mfrac",{parentName:"mfrac"},(0,m.kt)("mrow",{parentName:"mfrac"},(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"A"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"B"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"C"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,m.kt)("mrow",{parentName:"mfrac"},(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"C"),(0,m.kt)("mo",{parentName:"mrow"},"\u2223"),(0,m.kt)("mi",{parentName:"mrow"},"A"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"B"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"\u22c5"),(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"B"),(0,m.kt)("mo",{parentName:"mrow"},"\u2223"),(0,m.kt)("mi",{parentName:"mrow"},"A"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")")))))))),(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"true"},(0,m.kt)("mrow",{parentName:"mstyle"}))),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"true"},(0,m.kt)("mrow",{parentName:"mstyle"},(0,m.kt)("mrow",{parentName:"mrow"}),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"B"),(0,m.kt)("mo",{parentName:"mrow"},"\u2223"),(0,m.kt)("mi",{parentName:"mrow"},"A"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"\u22c5"),(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"C"),(0,m.kt)("mo",{parentName:"mrow"},"\u2223"),(0,m.kt)("mi",{parentName:"mrow"},"A"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"B"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")")))))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"\\begin{align*} P(B,C \\mid A) &= \\frac{P(A,B,C)}{P(A)} \\\\ &= \\frac{P(A,B,C)}{\\frac{P(A,B,C)}{P(C \\mid A,B) \\cdot P(B \\mid A)}} \\\\ &= P(B \\mid A) \\cdot P(C \\mid A,B) \\end{align*}")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"7.31em",verticalAlign:"-3.405em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mtable"},(0,m.kt)("span",{parentName:"span",className:"col-align-r"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"3.905em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-5.905em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.427em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"P"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05017em"}},"B"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.07153em"}},"C"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"\u2223"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"A"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.242em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.427em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"})),(0,m.kt)("span",{parentName:"span",style:{top:"-0.682em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.427em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"}))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"3.405em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"col-align-l"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"3.905em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-5.905em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.427em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"}),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"="),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mopen nulldelimiter"}),(0,m.kt)("span",{parentName:"span",className:"mfrac"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.427em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.314em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"P"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"A"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.23em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"frac-line",style:{borderBottomWidth:"0.04em"}})),(0,m.kt)("span",{parentName:"span",style:{top:"-3.677em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"P"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"A"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05017em"}},"B"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.07153em"}},"C"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.936em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"mclose nulldelimiter"})))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.242em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.427em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"}),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"="),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mopen nulldelimiter"}),(0,m.kt)("span",{parentName:"span",className:"mfrac"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.427em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.11em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.01em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mopen nulldelimiter"}),(0,m.kt)("span",{parentName:"span",className:"mfrac"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.01em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.655em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.13889em"}},"P"),(0,m.kt)("span",{parentName:"span",className:"mopen mtight"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.07153em"}},"C"),(0,m.kt)("span",{parentName:"span",className:"mrel mtight"},"\u2223"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"A"),(0,m.kt)("span",{parentName:"span",className:"mpunct mtight"},","),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.05017em"}},"B"),(0,m.kt)("span",{parentName:"span",className:"mclose mtight"},")"),(0,m.kt)("span",{parentName:"span",className:"mbin mtight"},"\u22c5"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.13889em"}},"P"),(0,m.kt)("span",{parentName:"span",className:"mopen mtight"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.05017em"}},"B"),(0,m.kt)("span",{parentName:"span",className:"mrel mtight"},"\u2223"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"A"),(0,m.kt)("span",{parentName:"span",className:"mclose mtight"},")")))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.23em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"frac-line",style:{borderBottomWidth:"0.04em"}})),(0,m.kt)("span",{parentName:"span",style:{top:"-3.485em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.13889em"}},"P"),(0,m.kt)("span",{parentName:"span",className:"mopen mtight"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"A"),(0,m.kt)("span",{parentName:"span",className:"mpunct mtight"},","),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.05017em"}},"B"),(0,m.kt)("span",{parentName:"span",className:"mpunct mtight"},","),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.07153em"}},"C"),(0,m.kt)("span",{parentName:"span",className:"mclose mtight"},")"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.52em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"mclose nulldelimiter"})))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.24em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.01em"}}),(0,m.kt)("span",{parentName:"span",className:"frac-line",style:{borderBottomWidth:"0.04em"}})),(0,m.kt)("span",{parentName:"span",style:{top:"-3.687em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.01em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"P"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"A"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05017em"}},"B"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.07153em"}},"C"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.42em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"mclose nulldelimiter"})))),(0,m.kt)("span",{parentName:"span",style:{top:"-0.682em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.427em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"}),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"="),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"P"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05017em"}},"B"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"\u2223"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"A"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"\u22c5"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"P"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.07153em"}},"C"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"\u2223"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"A"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05017em"}},"B"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"3.405em"}},(0,m.kt)("span",{parentName:"span"})))))))))))),(0,m.kt)("h4",{id:"\u9ad8\u65af\u5206\u5e03\u7684kl\u6563\u5ea6"},"\u9ad8\u65af\u5206\u5e03\u7684KL\u6563\u5ea6"),(0,m.kt)("p",null,"\u5bf9\u4e8e\u4e24\u4e2a\u5355\u4e00\u53d8\u91cf\u7684\u9ad8\u65af\u5206\u5e03",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"p"),(0,m.kt)("mo",{parentName:"mrow"},"\u223c"),(0,m.kt)("mi",{parentName:"mrow",mathvariant:"script"},"N"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"\u03bc"),(0,m.kt)("mn",{parentName:"msub"},"1")),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("msubsup",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msubsup"},"\u03c3"),(0,m.kt)("mn",{parentName:"msubsup"},"1"),(0,m.kt)("mn",{parentName:"msubsup"},"2")),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"p\\sim \\mathcal{N}(\\mu_1,\\sigma_1^2)")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.625em",verticalAlign:"-0.1944em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"p"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"\u223c"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1.0641em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathcal",style:{marginRight:"0.14736em"}},"N"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"\u03bc"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"1")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"\u03c3"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.8141em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.4519em",marginLeft:"-0.0359em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"1"))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.063em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"2")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.2481em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"))))),"\u548c",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"q"),(0,m.kt)("mo",{parentName:"mrow"},"\u223c"),(0,m.kt)("mi",{parentName:"mrow",mathvariant:"script"},"N"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"\u03bc"),(0,m.kt)("mn",{parentName:"msub"},"2")),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("msubsup",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msubsup"},"\u03c3"),(0,m.kt)("mn",{parentName:"msubsup"},"2"),(0,m.kt)("mn",{parentName:"msubsup"},"2")),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"q\\sim \\mathcal{N}(\\mu_2,\\sigma_2^2)")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.625em",verticalAlign:"-0.1944em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"q"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"\u223c"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1.0641em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathcal",style:{marginRight:"0.14736em"}},"N"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"\u03bc"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"2")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"\u03c3"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.8141em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.4519em",marginLeft:"-0.0359em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"2"))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.063em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"2")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.2481em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"))))),"\u800c\u8a00\uff0c\u5b83\u4eec\u7684KL\u6563\u5ea6\u5b9a\u4e49\u4e3a\uff1a"),(0,m.kt)("div",{className:"math math-display"},(0,m.kt)("span",{parentName:"div",className:"katex-display"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"D"),(0,m.kt)("mrow",{parentName:"msub"},(0,m.kt)("mi",{parentName:"mrow"},"K"),(0,m.kt)("mi",{parentName:"mrow"},"L"))),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"p"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"q"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("mi",{parentName:"mrow"},"log"),(0,m.kt)("mo",{parentName:"mrow"},"\u2061"),(0,m.kt)("mfrac",{parentName:"mrow"},(0,m.kt)("msub",{parentName:"mfrac"},(0,m.kt)("mi",{parentName:"msub"},"\u03c3"),(0,m.kt)("mn",{parentName:"msub"},"2")),(0,m.kt)("msub",{parentName:"mfrac"},(0,m.kt)("mi",{parentName:"msub"},"\u03c3"),(0,m.kt)("mn",{parentName:"msub"},"1"))),(0,m.kt)("mo",{parentName:"mrow"},"+"),(0,m.kt)("mfrac",{parentName:"mrow"},(0,m.kt)("mrow",{parentName:"mfrac"},(0,m.kt)("msubsup",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msubsup"},"\u03c3"),(0,m.kt)("mn",{parentName:"msubsup"},"1"),(0,m.kt)("mn",{parentName:"msubsup"},"2")),(0,m.kt)("mo",{parentName:"mrow"},"+"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"\u03bc"),(0,m.kt)("mn",{parentName:"msub"},"1")),(0,m.kt)("mo",{parentName:"mrow"},"\u2212"),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"\u03bc"),(0,m.kt)("mn",{parentName:"msub"},"2")),(0,m.kt)("msup",{parentName:"mrow"},(0,m.kt)("mo",{parentName:"msup",stretchy:"false"},")"),(0,m.kt)("mn",{parentName:"msup"},"2"))),(0,m.kt)("mrow",{parentName:"mfrac"},(0,m.kt)("mn",{parentName:"mrow"},"2"),(0,m.kt)("msubsup",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msubsup"},"\u03c3"),(0,m.kt)("mn",{parentName:"msubsup"},"2"),(0,m.kt)("mn",{parentName:"msubsup"},"2")))),(0,m.kt)("mo",{parentName:"mrow"},"\u2212"),(0,m.kt)("mfrac",{parentName:"mrow"},(0,m.kt)("mn",{parentName:"mfrac"},"1"),(0,m.kt)("mn",{parentName:"mfrac"},"2"))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"D_{KL}(p,q)=\\log\\frac{\\sigma_2}{\\sigma_1}+\\frac{\\sigma_1^2+(\\mu_1-\\mu_2)^2}{2\\sigma_2^2}-\\frac12")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02778em"}},"D"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3283em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0278em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.07153em"}},"K"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"L"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"p"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"q"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"="),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1.9436em",verticalAlign:"-0.836em"}}),(0,m.kt)("span",{parentName:"span",className:"mop"},"lo",(0,m.kt)("span",{parentName:"span",style:{marginRight:"0.01389em"}},"g")),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mopen nulldelimiter"}),(0,m.kt)("span",{parentName:"span",className:"mfrac"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.1076em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.314em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"\u03c3"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0359em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"1")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.23em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"frac-line",style:{borderBottomWidth:"0.04em"}})),(0,m.kt)("span",{parentName:"span",style:{top:"-3.677em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"\u03c3"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0359em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"2")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"}))))))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.836em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"mclose nulldelimiter"})),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"+"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"2.4434em",verticalAlign:"-0.9523em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mopen nulldelimiter"}),(0,m.kt)("span",{parentName:"span",className:"mfrac"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.4911em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.314em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"2"),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"\u03c3"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.7959em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.4337em",marginLeft:"-0.0359em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"2"))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.0448em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"2")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.2663em"}},(0,m.kt)("span",{parentName:"span"})))))))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.23em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"frac-line",style:{borderBottomWidth:"0.04em"}})),(0,m.kt)("span",{parentName:"span",style:{top:"-3.677em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"\u03c3"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.8141em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.4519em",marginLeft:"-0.0359em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"1"))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.063em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"2")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.2481em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"+"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"\u03bc"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"1")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"\u2212"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"\u03bc"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"2")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mclose"},(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.8141em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-3.063em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"2"))))))))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.9523em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"mclose nulldelimiter"})),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"\u2212"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"2.0074em",verticalAlign:"-0.686em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mopen nulldelimiter"}),(0,m.kt)("span",{parentName:"span",className:"mfrac"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.3214em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.314em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"2"))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.23em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"frac-line",style:{borderBottomWidth:"0.04em"}})),(0,m.kt)("span",{parentName:"span",style:{top:"-3.677em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"1")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.686em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"mclose nulldelimiter"}))))))),(0,m.kt)("h3",{id:"\u9a6c\u5c14\u79d1\u592b\u94fe\u6761\u4ef6\u6982\u7387\u5f62\u5f0f"},"\u9a6c\u5c14\u79d1\u592b\u94fe\u6761\u4ef6\u6982\u7387\u5f62\u5f0f"),(0,m.kt)("p",null,"\u9a6c\u5c14\u79d1\u592b\u94fe\u6307\u5f53\u524d\u72b6\u6001\u7684\u6982\u7387\u53ea\u4e0e\u4e0a\u4e00\u65f6\u523b\u6709\u5173\uff0c\u4f8b\u5982\u82e5\u6ee1\u8db3\u9a6c\u5c14\u79d1\u592b\u5173\u7cfb",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"A"),(0,m.kt)("mo",{parentName:"mrow"},"\u2192"),(0,m.kt)("mi",{parentName:"mrow"},"B"),(0,m.kt)("mo",{parentName:"mrow"},"\u2192"),(0,m.kt)("mi",{parentName:"mrow"},"C")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"A\\to B\\to C")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6833em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"A"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"\u2192"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6833em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05017em"}},"B"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"\u2192"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6833em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.07153em"}},"C"))))),"\uff0c\u5219\u6709\uff1a"),(0,m.kt)("div",{className:"math math-display"},(0,m.kt)("span",{parentName:"div",className:"katex-display"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"A"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"B"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"C"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"C"),(0,m.kt)("mo",{parentName:"mrow"},"\u2223"),(0,m.kt)("mi",{parentName:"mrow"},"A"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"B"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"\u22c5"),(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"A"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"B"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"C"),(0,m.kt)("mo",{parentName:"mrow"},"\u2223"),(0,m.kt)("mi",{parentName:"mrow"},"B"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"\u22c5"),(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"B"),(0,m.kt)("mo",{parentName:"mrow"},"\u2223"),(0,m.kt)("mi",{parentName:"mrow"},"A"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"\u22c5"),(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"A"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"P(A,B,C) =P(C\\mid A,B)\\cdot P(A,B)=P(C\\mid B)\\cdot P(B\\mid A)\\cdot P(A)")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"P"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"A"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05017em"}},"B"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.07153em"}},"C"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"="),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"P"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.07153em"}},"C"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"\u2223"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"A"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05017em"}},"B"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"\u22c5"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"P"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"A"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05017em"}},"B"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"="),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"P"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.07153em"}},"C"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"\u2223"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05017em"}},"B"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"\u22c5"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"P"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05017em"}},"B"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"\u2223"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"A"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"\u22c5"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"P"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"A"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")")))))),(0,m.kt)("div",{className:"math math-display"},(0,m.kt)("span",{parentName:"div",className:"katex-display"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"B"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"C"),(0,m.kt)("mo",{parentName:"mrow"},"\u2223"),(0,m.kt)("mi",{parentName:"mrow"},"A"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"B"),(0,m.kt)("mo",{parentName:"mrow"},"\u2223"),(0,m.kt)("mi",{parentName:"mrow"},"A"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"\u22c5"),(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"C"),(0,m.kt)("mo",{parentName:"mrow"},"\u2223"),(0,m.kt)("mi",{parentName:"mrow"},"B"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"P(B,C\\mid A)=P(B\\mid A)\\cdot P(C\\mid B)")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"P"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05017em"}},"B"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.07153em"}},"C"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"\u2223"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"A"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"="),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"P"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05017em"}},"B"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"\u2223"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"A"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"\u22c5"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"P"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.07153em"}},"C"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"\u2223"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05017em"}},"B"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")")))))),(0,m.kt)("h3",{id:"\u53c2\u6570\u91cd\u6574\u5316\u6280\u5de7"},"\u53c2\u6570\u91cd\u6574\u5316\u6280\u5de7"),(0,m.kt)("p",null,"\u4ece\u4efb\u610f\u9ad8\u65af\u5206\u5e03",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow",mathvariant:"script"},"N"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"\u03bc"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("msup",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msup"},"\u03c3"),(0,m.kt)("mn",{parentName:"msup"},"2")),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"\\mathcal{N}(\\mu,\\sigma^2)")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1.0641em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathcal",style:{marginRight:"0.14736em"}},"N"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"\u03bc"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"\u03c3"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.8141em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-3.063em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"2")))))))),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"))))),"\u91c7\u6837",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"x")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"x")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.4306em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"x"))))),"\u65f6\uff0c\u53ef\u4ee5\u5148\u4ece\u6807\u51c6\u9ad8\u65af\u5206\u5e03",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow",mathvariant:"script"},"N"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mn",{parentName:"mrow"},"0"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mn",{parentName:"mrow"},"1"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"\\mathcal{N}(0,1)")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathcal",style:{marginRight:"0.14736em"}},"N"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},"0"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"1"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"))))),"\u4e2dsample\u51fa",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"z")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"z")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.4306em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.04398em"}},"z"))))),"\uff0c\u518d\u4ee4"),(0,m.kt)("div",{className:"math math-display"},(0,m.kt)("span",{parentName:"div",className:"katex-display"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"x"),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("mi",{parentName:"mrow"},"\u03c3"),(0,m.kt)("mo",{parentName:"mrow"},"\u2217"),(0,m.kt)("mi",{parentName:"mrow"},"z"),(0,m.kt)("mo",{parentName:"mrow"},"+"),(0,m.kt)("mi",{parentName:"mrow"},"\u03bc")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"x=\\sigma * z + \\mu")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.4306em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"x"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"="),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.4653em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"\u03c3"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"\u2217"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6667em",verticalAlign:"-0.0833em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.04398em"}},"z"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"+"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.625em",verticalAlign:"-0.1944em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"\u03bc")))))),(0,m.kt)("p",null,"\u4f18\u52bf\uff1a"),(0,m.kt)("ol",null,(0,m.kt)("li",{parentName:"ol"},"\u7531\u4e8e\u7ebf\u6027\u53d8\u5316\uff0c\u91c7\u6837\u8fc7\u7a0b\u4e2d\u5bf9\u5176\u4ed6\u53c2\u6570\u90fd\u6709",(0,m.kt)("strong",{parentName:"li"},"\u660e\u786e\u7684\u5bfc\u6570"),"\uff0c\u53ef\u4ee5\u8fdb\u884c\u53cd\u5411\u4f20\u64ad"),(0,m.kt)("li",{parentName:"ol"},"\u53ef\u4ee5\u901a\u8fc7",(0,m.kt)("strong",{parentName:"li"},"\u7ebf\u6027\u53d8\u6362"),"\u6765",(0,m.kt)("strong",{parentName:"li"},"\u63a7\u5236\u53c2\u6570\u5316\u7684\u91c7\u6837")),(0,m.kt)("li",{parentName:"ol"},"\u6807\u51c6\u6b63\u6001\u5206\u5e03\u5177\u6709",(0,m.kt)("strong",{parentName:"li"},"\u6613\u91c7\u6837"),"\u7684\u6027\u8d28")))}c.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/en/assets/js/26bb3547.4ca55296.js b/en/assets/js/26bb3547.4ca55296.js new file mode 100644 index 000000000..c53b105b6 --- /dev/null +++ b/en/assets/js/26bb3547.4ca55296.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunknpy_notebook=self.webpackChunknpy_notebook||[]).push([[8399],{3905:(e,t,n)=>{n.d(t,{Zo:()=>c,kt:()=>d});var a=n(7294);function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function i(e){for(var t=1;t=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var l=a.createContext({}),s=function(e){var t=a.useContext(l),n=t;return e&&(n="function"==typeof e?e(t):i(i({},t),e)),n},c=function(e){var t=s(e.components);return a.createElement(l.Provider,{value:t},e.children)},m="mdxType",g={inlineCode:"code",wrapper:function(e){var t=e.children;return a.createElement(a.Fragment,{},t)}},u=a.forwardRef((function(e,t){var n=e.components,r=e.mdxType,o=e.originalType,l=e.parentName,c=p(e,["components","mdxType","originalType","parentName"]),m=s(n),u=r,d=m["".concat(l,".").concat(u)]||m[u]||g[u]||o;return n?a.createElement(d,i(i({ref:t},c),{},{components:n})):a.createElement(d,i({ref:t},c))}));function d(e,t){var n=arguments,r=t&&t.mdxType;if("string"==typeof e||r){var o=n.length,i=new Array(o);i[0]=u;var p={};for(var l in t)hasOwnProperty.call(t,l)&&(p[l]=t[l]);p.originalType=e,p[m]="string"==typeof e?e:r,i[1]=p;for(var s=2;s{n.r(t),n.d(t,{assets:()=>l,contentTitle:()=>i,default:()=>g,frontMatter:()=>o,metadata:()=>p,toc:()=>s});var a=n(7462),r=(n(7294),n(3905));const o={},i="CVPR 2023: Zero-shot Generative Model Adaptation via Image-specific Prompt Learning",p={unversionedId:"Deep-Learning/\u8bba\u6587\u7b14\u8bb0/Zero-shot Generative Model Adaptation via Image-specific Prompt Learning",id:"Deep-Learning/\u8bba\u6587\u7b14\u8bb0/Zero-shot Generative Model Adaptation via Image-specific Prompt Learning",title:"CVPR 2023: Zero-shot Generative Model Adaptation via Image-specific Prompt Learning",description:"\u8bba\u6587\uff1aCVPR 2023 open access",source:"@site/docs/Deep-Learning/6-\u8bba\u6587\u7b14\u8bb0/4-Zero-shot Generative Model Adaptation via Image-specific Prompt Learning.md",sourceDirName:"Deep-Learning/6-\u8bba\u6587\u7b14\u8bb0",slug:"/Deep-Learning/\u8bba\u6587\u7b14\u8bb0/Zero-shot Generative Model Adaptation via Image-specific Prompt Learning",permalink:"/en/docs/Deep-Learning/\u8bba\u6587\u7b14\u8bb0/Zero-shot Generative Model Adaptation via Image-specific Prompt Learning",draft:!1,tags:[],version:"current",sidebarPosition:4,frontMatter:{},sidebar:"deep_learning",previous:{title:"CVPR 2022: High-Resolution Image Synthesis with Latent Diffusion Models",permalink:"/en/docs/Deep-Learning/\u8bba\u6587\u7b14\u8bb0/High-Resolution Image Synthesis with Latent Diffusion Models"}},l={},s=[{value:"\u6458\u8981",id:"\u6458\u8981",level:2},{value:"\u76f8\u5173\u5de5\u4f5c",id:"\u76f8\u5173\u5de5\u4f5c",level:2},{value:"Generative Model Adaption",id:"generative-model-adaption",level:3},{value:"few-shot",id:"few-shot",level:4},{value:"zero-shot",id:"zero-shot",level:4},{value:"Prompt Learning",id:"prompt-learning",level:3},{value:"\u4e3b\u8981\u65b9\u6cd5",id:"\u4e3b\u8981\u65b9\u6cd5",level:2},{value:"\u6982\u8ff0",id:"\u6982\u8ff0",level:3},{value:"\u7b2c\u4e00\u9636\u6bb5\uff1a\u8bad\u7ec3Latent Mapper",id:"\u7b2c\u4e00\u9636\u6bb5\u8bad\u7ec3latent-mapper",level:4},{value:"\u7b2c\u4e8c\u9636\u6bb5\uff1a\u5c06Latent Mapper\u63d2\u5165\u76ee\u6807\u57df\u751f\u6210\u5668\u7684\u8bad\u7ec3\u8fc7\u7a0b",id:"\u7b2c\u4e8c\u9636\u6bb5\u5c06latent-mapper\u63d2\u5165\u76ee\u6807\u57df\u751f\u6210\u5668\u7684\u8bad\u7ec3\u8fc7\u7a0b",level:4},{value:"Image-specific Prompt Learning",id:"image-specific-prompt-learning",level:3}],c={toc:s},m="wrapper";function g(e){let{components:t,...n}=e;return(0,r.kt)(m,(0,a.Z)({},c,n,{components:t,mdxType:"MDXLayout"}),(0,r.kt)("h1",{id:"cvpr-2023-zero-shot-generative-model-adaptation-via-image-specific-prompt-learning"},"CVPR 2023: Zero-shot Generative Model Adaptation via Image-specific Prompt Learning"),(0,r.kt)("admonition",{title:"\u76f8\u5173\u94fe\u63a5",type:"tip"},(0,r.kt)("p",{parentName:"admonition"},"\u8bba\u6587\uff1a",(0,r.kt)("a",{parentName:"p",href:"https://openaccess.thecvf.com/content/CVPR2023/papers/Guo_Zero-Shot_Generative_Model_Adaptation_via_Image-Specific_Prompt_Learning_CVPR_2023_paper.pdf"},"CVPR 2023 open access")),(0,r.kt)("p",{parentName:"admonition"},"\u4ee3\u7801\uff1a",(0,r.kt)("a",{parentName:"p",href:"https://github.com/Picsart-AI-Research/IPL-Zero-Shot-Generative-Model-Adaptation"},"Piscart-AI-Research")),(0,r.kt)("p",{parentName:"admonition"},"\u6587\u7ae0\u7684\u547d\u540d\u98ce\u683c\u501f\u9274\u4e86CVPR 2022\u7684\u6587\u7ae0",(0,r.kt)("a",{parentName:"p",href:"https://openaccess.thecvf.com/content/CVPR2022/papers/Xiao_Few_Shot_Generative_Model_Adaption_via_Relaxed_Spatial_Structural_Alignment_CVPR_2022_paper.pdf"},"Few Shot Generative Model Adaption via Relaxed Spatial Structural Alignment"))),(0,r.kt)("h2",{id:"\u6458\u8981"},"\u6458\u8981"),(0,r.kt)("p",null,"\u672c\u6587\u63d0\u51fa\u4e86Image-specific Prompt Learning\uff08IPL\uff09\u65b9\u6cd5\u6765\u89e3\u51b3",(0,r.kt)("strong",{parentName:"p"},"\u98ce\u683c\u8fc1\u79fb\u4efb\u52a1"),"\u4e2d\u751f\u6210\u6a21\u578b",(0,r.kt)("strong",{parentName:"p"},"\u4ece\u6e90\u57df\u5230\u76ee\u6807\u57df\u7684\u9002\u5e94"),"\u95ee\u9898\u3002\u4e00\u4e2aLatent Mapper\u6765\u4ece\u6e90\u57df\u56fe\u50cf\u4e2d\u5b66\u4e60\u51fa",(0,r.kt)("strong",{parentName:"p"},"\u5305\u542b\u56fe\u50cf\u7279\u5f81"),"\u4e14",(0,r.kt)("strong",{parentName:"p"},"\u9002\u5e94\u76ee\u6807\u57df"),"\u7684prompt\uff0c\u4ece\u800c\u6307\u5bfc\u76ee\u6807\u57df\u751f\u6210\u5668\u7684\u8bad\u7ec3\u3002"),(0,r.kt)("blockquote",null,(0,r.kt)("p",{parentName:"blockquote"},"This produces a more precise adaptation direction for every cross-domain image pair, endowing the target-domain generator with greatly enhanced flexibility.")),(0,r.kt)("p",null,"\u8bad\u7ec3\u8d44\u6599\u662f\u6e90\u57df\u548c\u76ee\u6807\u57df\u7684\u6587\u5b57\u6807\u7b7e\u4ee5\u53ca\u6e90\u57df\u7684\u56fe\u50cf\uff0c",(0,r.kt)("strong",{parentName:"p"},"\u5e76\u4e0d\u9700\u8981\u76ee\u6807\u57df\u7684\u56fe\u50cf"),"\u3002\u6b64\u5916\uff0cIPL\u72ec\u7acb\u4e8e\u751f\u6210\u6a21\u578b\uff0c\u53ef\u4ee5\u81ea\u7531\u9009\u62e9Diffusion Model\u6216GAN\u7b49\u3002"),(0,r.kt)("h2",{id:"\u76f8\u5173\u5de5\u4f5c"},"\u76f8\u5173\u5de5\u4f5c"),(0,r.kt)("h3",{id:"generative-model-adaption"},"Generative Model Adaption"),(0,r.kt)("p",null,"Generative Model Adaption\u7684\u4efb\u52a1\u662f\u4f7f\u5728\u5927\u89c4\u6a21\u6e90\u57df\u56fe\u7247\u4e0a\u8bad\u7ec3\u7684\u751f\u6210\u6a21\u578b\u9002\u5e94\u5230\u6570\u636e\u6709\u9650\u7684\u76ee\u6807\u57df\u4e2d\uff0c\u6839\u636e\u76ee\u6807\u57df\u8bad\u7ec3\u8d44\u6599\u7684\u5927\u5c0f\u53ef\u4ee5\u5206\u4e3afew-shot\u548czero-shot\u3002"),(0,r.kt)("h4",{id:"few-shot"},"few-shot"),(0,r.kt)("p",null,"\u5bf9\u4e8efew-shot\u4efb\u52a1\uff0c\u4e00\u822c\u662f\u901a\u8fc7\u6709\u9650\u7684\u76ee\u6807\u57df\u8bad\u7ec3\u96c6\u8d44\u6599fine-tune\u9884\u8bad\u7ec3\u6a21\u578b\u3002"),(0,r.kt)("p",null,"\u7136\u800c\uff0cfine-tune\u901a\u5e38\u4f1a\u5bfc\u81f4\u8fc7\u62df\u5408\u3002\u4e3a\u4e86\u89e3\u51b3\u8fc7\u62df\u5408\u95ee\u9898\uff0c\u901a\u5e38\u4f7f\u7528\u7684\u65b9\u6cd5\u662f\u65bd\u52a0\u5f3a\u6b63\u5219\u5316\u3001\u4f7f\u7528\u6270\u52a8\u6cd5\u3001\u8de8\u57df\u5bf9\u9f50\u6216\u6570\u636e\u589e\u5f3a\u3002"),(0,r.kt)("admonition",{title:"\u76f8\u5173\u6587\u732e\u65b9\u6cd5",type:"info"},(0,r.kt)("ul",{parentName:"admonition"},(0,r.kt)("li",{parentName:"ul"},"\u5f3a\u6b63\u5219\u5316\uff1aHan Zhang, Zizhao Zhang, Augustus Odena, and Honglak Lee. Consistency regularization for generative adversarial networks. In ICLR, 2019."),(0,r.kt)("li",{parentName:"ul"},"\u6270\u52a8\u6cd5\uff1aSangwoo Mo, Minsu Cho, and Jinwoo Shin. Freeze the discriminator: a simple baseline for fine-tuning GANs. In CVPR Workshops, 2020."),(0,r.kt)("li",{parentName:"ul"},"\u8de8\u57df\u5bf9\u9f50\uff1aUtkarsh Ojha, Yijun Li, Jingwan Lu, Alexei A Efros, Yong Jae Lee, Eli Shechtman, and Richard Zhang. Fewshot image generation via cross-domain correspondence. In CVPR, 2021."),(0,r.kt)("li",{parentName:"ul"},"\u6570\u636e\u589e\u5f3a\uff1aNgoc-Trung Tran, Viet-Hung Tran, Ngoc-Bao Nguyen, Trung-Kien Nguyen, and Ngai-Man Cheung. On data augmentation for GAN training. TIP, 2021."))),(0,r.kt)("h4",{id:"zero-shot"},"zero-shot"),(0,r.kt)("p",null,"\u5bf9\u4e8e\u96f6\u6837\u672c\u7684\u56fe\u50cf\u751f\u6210\u6a21\u578b\u7684\u9002\u5e94\u4efb\u52a1\uff0c",(0,r.kt)("a",{parentName:"p",href:"https://arxiv.org/pdf/2108.00946.pdf"},"NADA"),"\u7387\u5148\u5f15\u5165\u4e86CLIP\u6a21\u578b\u6765\u83b7\u53d6\u5fc5\u987b\u7684\u5148\u9a8c\u77e5\u8bc6\uff0c\u901a\u8fc7\u9884\u8bad\u7ec3\u5927\u6a21\u578b\u7684\u8bed\u8a00\u7406\u89e3\u80fd\u529b\u5b9e\u73b0",(0,r.kt)("strong",{parentName:"p"},"\u5728\u76ee\u6807\u57df\u53ea\u9700\u8981\u6587\u5b57\u6807\u7b7e"),"\u800c\u4e0d\u9700\u8981\u56fe\u7247\uff0c\u5c06\u6e90\u57df\u548c\u76ee\u6807\u57df\u4e4b\u95f4\u7684\u5dee\u8ddd\u7f16\u7801\u4e3a\u5728CLIP\u7a7a\u95f4\u4e0a\u6587\u5b57\u5f15\u5bfc\u7684\u9002\u5e94\u65b9\u5411\u3002"),(0,r.kt)("p",null,"\u6b64\u540e\uff0cCVPR 2022\u53d1\u8868\u7684",(0,r.kt)("a",{parentName:"p",href:"https://arxiv.org/pdf/2110.02711.pdf"},"DiffusionCLIP"),"\u4f7f\u7528\u4e86Diffusion\u6a21\u578b\u4ee3\u66ffNADA\u4e2d\u7684StyleGANs\uff0c\u83b7\u5f97\u4e86\u66f4\u597d\u7684\u7279\u5f81\u4fdd\u5b58\u80fd\u529b\u3002"),(0,r.kt)("p",null,"\u7136\u800c\u8fd9\u4e9b\u65b9\u6cd5\u90fd\u662f\u91c7\u7528\u4e86\u56fa\u5b9a\u7684\u9002\u5e94\u65b9\u5411\uff0c\u53ea\u5305\u542b\u57fa\u7840\u7684\u57df\u77e5\u8bc6\uff0c\u800c\u4e0d\u662f\u56fe\u7247\u7279\u5b9a\u7684\u7279\u5f81\u3002\u5728\u672c\u6587\u4e2d\uff0c\u4f5c\u8005\u53d1\u73b0\u8fd9\u79cd\u5171\u4eab\u7684\u3001\u56fa\u5b9a\u7684\u9002\u5e94\u65b9\u5411\u4f1a\u5bfc\u81f4Mode Collapse\uff08\u6a21\u5f0f\u574d\u584c\uff09\uff0c\u56e0\u6b64\u63d0\u51fa\u4e86\u4ece\u6bcf\u4e2a\u6e90\u57df\u56fe\u50cf\u4e2d\u5b66\u4e60\u51fa\u591a\u6837\u4e14\u51c6\u786e\u7684prompt\uff0c\u4e3a\u751f\u6210\u6a21\u578b\u5411\u76ee\u6807\u57df\u7684\u9002\u5e94\u63d0\u4f9b\u66f4\u7cbe\u786e\u7684\u65b9\u5411\u3002"),(0,r.kt)("p",null,(0,r.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_imagesimage-20231221214755712.png",alt:"image-20231221214755712"})),(0,r.kt)("h3",{id:"prompt-learning"},"Prompt Learning"),(0,r.kt)("p",null,"Prompt\u5de5\u7a0b\u6700\u521d\u662f\u4e00\u79cdKnowledge Probing\uff08\u77e5\u8bc6\u63a2\u6d4b\uff09\u65b9\u6cd5\uff0c\u7ed9\u5b9a\u5b8c\u5f62\u586b\u7a7a\uff08cloze-style\uff09\u7c7b\u7684prompt\uff0c\u5f15\u5bfc\u6a21\u578b\u4ea7\u751f\u76f8\u5bf9\u5e94\u7684\u7b54\u6848\u3002"),(0,r.kt)("p",null,"\u7136\u800c\u4eba\u5de5\u8bbe\u8ba1\u7684prompt\u901a\u5e38\u4e0d\u662f\u6700\u4f18\u7684\uff0c\u53ef\u80fd\u63d0\u4f9b\u4e0d\u51c6\u786e\u7684\u9002\u5e94\u65b9\u5411\u3002\u4e3a\u4e86\u89e3\u51b3\u8fd9\u4e2a\u95ee\u9898\uff0c\u5728NLP\u9886\u57df\u7684Prompt Learning\u53d1\u5c55\u8fc5\u901f\uff0c\u5e76\u968f\u7740\u89c6\u89c9-\u8bed\u8a00\u5927\u6a21\u578b\u7684\u53d1\u5c55\uff0c\u5e94\u7528\u5728\u4e86\u89c6\u89c9\u4efb\u52a1\u4e2d\u3002"),(0,r.kt)("p",null,"Kaiyang Zhou\u7b49\u4eba\u9996\u5148\u5728\u56fe\u50cf\u5206\u7c7b\u4efb\u52a1\u4e2d\u91c7\u7528\u4e0a\u4e0b\u6587\u4f18\u5316\uff0c\u5728\u8bcd\u5d4c\u5165\u7a7a\u95f4\u4e2d\u5bf9\u5177\u6709\u8fde\u7eed\u5411\u91cf\u7684\u4e0a\u4e0b\u6587\u8bcd\u8fdb\u884c\u5efa\u6a21\u3002\u968f\u540ePrompt Learning\u5728\u8ba1\u7b97\u673a\u89c6\u89c9\u4e2d\u7684\u8bb8\u591a\u4e0b\u6e38\u4efb\u52a1\u90fd\u5f97\u5230\u4e86\u63a2\u7d22\uff0c\u4f8b\u5982\u76ee\u6807\u68c0\u6d4b\u3001\u89c6\u9891\u7406\u89e3\u548c\u8fc1\u79fb\u5b66\u4e60\u7b49\u3002"),(0,r.kt)("h2",{id:"\u4e3b\u8981\u65b9\u6cd5"},"\u4e3b\u8981\u65b9\u6cd5"),(0,r.kt)("h3",{id:"\u6982\u8ff0"},"\u6982\u8ff0"),(0,r.kt)("p",null,"IPL\u65b9\u6cd5\u5206\u4e24\u4e2a\u9636\u6bb5\u3002"),(0,r.kt)("h4",{id:"\u7b2c\u4e00\u9636\u6bb5\u8bad\u7ec3latent-mapper"},"\u7b2c\u4e00\u9636\u6bb5\uff1a\u8bad\u7ec3Latent Mapper"),(0,r.kt)("p",null,"\u7b2c\u4e00\u9636\u6bb5\u7684\u4e3b\u8981\u4efb\u52a1\u662f\u8bad\u7ec3Lantent Mapper\u6765\u4e3a\u6bcf\u4e00\u4e2a\u8bad\u7ec3\u96c6\u7684\u6e90\u57df\u56fe\u7247\u751f\u6210\u4e00\u7ec4prompt\u3002Latent Mapper\u63a5\u6536\u6e90\u57df\u56fe\u50cf\u7684latent representation\uff0c\u751f\u6210\u4e00\u7ec4prompt\u5411\u91cf\u3002\u7b2c\u4e00\u9636\u6bb5\u9700\u8981\u89e3\u51b3\u4e24\u4e2a\u95ee\u9898\uff0c\u5373\u5728zero-shot\u7684\u80cc\u666f\u4e0b\uff0c\u5982\u4f55\u5b9e\u73b0prompt\u4e0e\u6e90\u57df\u56fe\u50cf\u7279\u5f81\u7684\u5bf9\u9f50\u4ee5\u53caprompt\u4e0e\u76ee\u6807\u57df\u7a7a\u95f4\u7684\u5bf9\u9f50\uff0c\u56e0\u6b64\u7b2c\u4e00\u9636\u6bb5\u7684\u8bad\u7ec3\u5206\u4e24\u90e8\u5206\u8fdb\u884c\u3002"),(0,r.kt)("p",null,"\u7b2c\u4e00\u90e8\u5206\u662fLatent Mapper\u8f93\u51fa\u7684prompt\u4e0e\u76ee\u6807\u57df\u6807\u7b7econcat\u540e\u9001\u5165\u6765\u81eaCLIP\u7684Text Encoder\u5f97\u5230\u76ee\u6807\u57df\u56fe\u7247prompt\u5728CLIP\u7a7a\u95f4\u7684\u7f16\u7801\u8868\u793a\uff0c\u5e76\u4e0e\u76ee\u6807\u57df\u6807\u7b7e\u7ecf\u8fc7Text Encoder\u540e\u7684\u7f16\u7801\u5171\u540c\u4f5c\u4e3aDomain Loss\u7684\u8f93\u5165\u6765\u7ea6\u675f\u4ece\u6e90\u57df\u4e2d\u5b66\u4e60\u5230\u7684prompt\u4e0e\u76ee\u6807\u57df\u7a7a\u95f4\u5bf9\u9f50\u3002"),(0,r.kt)("p",null,"\u7b2c\u4e8c\u90e8\u5206\u662fLatent Mapper\u8f93\u51fa\u7684prompt\u4e0e\u6e90\u57df\u6807\u7b7econcat\u540e\u9001\u5165\u6765\u81eaCLIP\u7684Text Encoder\u5f97\u5230\u6e90\u57df\u56fe\u7247prompt\u63cf\u8ff0\u5728CLIP\u7a7a\u95f4\u7684\u7f16\u7801\u8868\u793a\uff0c\u540c\u65f6\u6e90\u57df\u56fe\u50cf\u518d\u7ecf\u8fc7\u6765\u81eaCLIP\u7684Image Encoder\u540e\u5f97\u5230\u5176\u5728CLIP\u7a7a\u95f4\u7684\u7f16\u7801\u8868\u793a\u3002\u5c06\u6e90\u57df\u7684prompt\u6587\u5b57\u548c\u56fe\u50cf\u7f16\u7801\u8868\u793a\u4f5c\u4e3acontrastive learning loss\u7684\u8f93\u5165\uff0c\u7ea6\u675f\u5b66\u4e60\u5230\u7684prompt\u4e0e\u6e90\u57df\u56fe\u50cf\u7684\u7279\u5f81\u5bf9\u9f50\u3002"),(0,r.kt)("p",null,(0,r.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_imagesprompt%E4%BA%A7%E7%94%9F%E7%AD%96%E7%95%A5.jpg",alt:"prompt\u4ea7\u751f\u7b56\u7565"})),(0,r.kt)("h4",{id:"\u7b2c\u4e8c\u9636\u6bb5\u5c06latent-mapper\u63d2\u5165\u76ee\u6807\u57df\u751f\u6210\u5668\u7684\u8bad\u7ec3\u8fc7\u7a0b"},"\u7b2c\u4e8c\u9636\u6bb5\uff1a\u5c06Latent Mapper\u63d2\u5165\u76ee\u6807\u57df\u751f\u6210\u5668\u7684\u8bad\u7ec3\u8fc7\u7a0b"),(0,r.kt)("p",null,"\u7b2c\u4e8c\u9636\u6bb5\u5229\u7528Directional CLIP Loss\u6765\u8bad\u7ec3\u76ee\u6807\u57df\u751f\u6210\u5668\uff0c\u4f7f\u6e90\u4e8e\u751f\u6210\u5668\u5411\u76ee\u6807\u57df\u8fc1\u79fb\u5b66\u4e60\u3002\u9700\u8981\u8f93\u5165\u6e90\u57df\u4ee5\u53ca\u76ee\u6807\u57df\u56fe\u50cf\u3001\u6e90\u57df\u4ee5\u53ca\u76ee\u6807\u57df\u7684prompt\u63cf\u8ff0\u3002\u6e90\u57df\u56fe\u50cf\u7684latent representation\u5206\u522b\u8f93\u5165\u81f3\u6e90\u57df\u751f\u6210\u5668\u548c\u76ee\u6807\u57df\u751f\u6210\u5668\u4e2d\u5f97\u5230\u5bf9\u5e94\u7684\u56fe\u50cf\uff0c\u540c\u65f6\u6307\u5bfc\u98ce\u683c\u8fc1\u79fb\u65b9\u5411\u7684\u6e90\u57df\u4ee5\u53ca\u76ee\u6807\u57df\u7684prompt\u63cf\u8ff0\u7531Latent Mapper\u63a5\u6536\u6e90\u57df\u56fe\u50cf\u7684\u9690\u5f0f\u8868\u793a\u540e\u8f93\u51fa\u518d\u5206\u522b\u4e0e\u6e90\u57df\u548c\u76ee\u6807\u57df\u6807\u7b7econcat\u800c\u5f97\u5230\u3002\u5206\u522b\u5c06\u6e90\u57df\u56fe\u50cf\u3001\u751f\u6210\u7684\u76ee\u6807\u57df\u56fe\u50cf\u4ee5\u53ca\u6e90\u57df\u3001\u76ee\u6807\u57df\u7684\u56fe\u7247prompt\u63cf\u8ff0\u4e00\u8d77\u8f93\u5165\u81f3Directional CLIP Loss\uff0c\u4ece\u800c\u7ea6\u675f\u7531\u6e90\u57df\u56fe\u50cf\u751f\u6210\u5668\u521d\u59cb\u5316\u7684\u76ee\u6807\u57df\u56fe\u50cf\u751f\u6210\u5668\u5411\u76ee\u6807\u57df\u7684\u8fc1\u79fb\u5b66\u4e60\u3002"),(0,r.kt)("p",null,(0,r.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_imagesimage-20231221231045323.png",alt:"image-20231221231045323"})),(0,r.kt)("h3",{id:"image-specific-prompt-learning"},"Image-specific Prompt Learning"))}g.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/en/assets/js/2a59d8d4.236a7031.js b/en/assets/js/2a59d8d4.236a7031.js new file mode 100644 index 000000000..85cd825e9 --- /dev/null +++ b/en/assets/js/2a59d8d4.236a7031.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunknpy_notebook=self.webpackChunknpy_notebook||[]).push([[3065],{3905:(a,e,t)=>{t.d(e,{Zo:()=>i,kt:()=>h});var s=t(7294);function m(a,e,t){return e in a?Object.defineProperty(a,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):a[e]=t,a}function n(a,e){var t=Object.keys(a);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(a);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable}))),t.push.apply(t,s)}return t}function p(a){for(var e=1;e=0||(m[t]=a[t]);return m}(a,e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);for(s=0;s=0||Object.prototype.propertyIsEnumerable.call(a,t)&&(m[t]=a[t])}return m}var N=s.createContext({}),l=function(a){var e=s.useContext(N),t=e;return a&&(t="function"==typeof a?a(e):p(p({},e),a)),t},i=function(a){var e=l(a.components);return s.createElement(N.Provider,{value:e},a.children)},k="mdxType",o={inlineCode:"code",wrapper:function(a){var e=a.children;return s.createElement(s.Fragment,{},e)}},c=s.forwardRef((function(a,e){var t=a.components,m=a.mdxType,n=a.originalType,N=a.parentName,i=r(a,["components","mdxType","originalType","parentName"]),k=l(t),c=m,h=k["".concat(N,".").concat(c)]||k[c]||o[c]||n;return t?s.createElement(h,p(p({ref:e},i),{},{components:t})):s.createElement(h,p({ref:e},i))}));function h(a,e){var t=arguments,m=e&&e.mdxType;if("string"==typeof a||m){var n=t.length,p=new Array(n);p[0]=c;var r={};for(var N in e)hasOwnProperty.call(e,N)&&(r[N]=e[N]);r.originalType=a,r[k]="string"==typeof a?a:m,p[1]=r;for(var l=2;l{t.r(e),t.d(e,{assets:()=>N,contentTitle:()=>p,default:()=>o,frontMatter:()=>n,metadata:()=>r,toc:()=>l});var s=t(7462),m=(t(7294),t(3905));const n={},p="\u4ece\u5168\u8fde\u63a5\u5230\u5377\u79ef",r={unversionedId:"Deep-Learning/\u57fa\u7840\u77e5\u8bc6/FromFullyConnectedLayerToConvolutionalLayer",id:"Deep-Learning/\u57fa\u7840\u77e5\u8bc6/FromFullyConnectedLayerToConvolutionalLayer",title:"\u4ece\u5168\u8fde\u63a5\u5230\u5377\u79ef",description:"\u4e00\u3001\u5377\u79ef\u7684\u8bde\u751f&\u6838\u5fc3\u7279\u5f81",source:"@site/docs/Deep-Learning/3-\u57fa\u7840\u77e5\u8bc6/FromFullyConnectedLayerToConvolutionalLayer.md",sourceDirName:"Deep-Learning/3-\u57fa\u7840\u77e5\u8bc6",slug:"/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/FromFullyConnectedLayerToConvolutionalLayer",permalink:"/en/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/FromFullyConnectedLayerToConvolutionalLayer",draft:!1,tags:[],version:"current",frontMatter:{},sidebar:"deep_learning",previous:{title:"\u5377\u79ef\u5c42",permalink:"/en/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/ConvolutionalLayer"},next:{title:"K-fold cross-validation",permalink:"/en/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/K-foldCross-validation"}},N={},l=[{value:"\u4e00\u3001\u5377\u79ef\u7684\u8bde\u751f&\u6838\u5fc3\u7279\u5f81",id:"\u4e00\u5377\u79ef\u7684\u8bde\u751f\u6838\u5fc3\u7279\u5f81",level:2},{value:"\u4e8c\u3001\u91cd\u65b0\u8003\u5bdf\u5168\u8fde\u63a5\u5c42",id:"\u4e8c\u91cd\u65b0\u8003\u5bdf\u5168\u8fde\u63a5\u5c42",level:2},{value:"\u4e09\u3001\u603b\u7ed3",id:"\u4e09\u603b\u7ed3",level:2}],i={toc:l},k="wrapper";function o(a){let{components:e,...t}=a;return(0,m.kt)(k,(0,s.Z)({},i,t,{components:e,mdxType:"MDXLayout"}),(0,m.kt)("h1",{id:"\u4ece\u5168\u8fde\u63a5\u5230\u5377\u79ef"},"\u4ece\u5168\u8fde\u63a5\u5230\u5377\u79ef"),(0,m.kt)("h2",{id:"\u4e00\u5377\u79ef\u7684\u8bde\u751f\u6838\u5fc3\u7279\u5f81"},"\u4e00\u3001\u5377\u79ef\u7684\u8bde\u751f&\u6838\u5fc3\u7279\u5f81"),(0,m.kt)("ol",null,(0,m.kt)("li",{parentName:"ol"},"\u73b0\u4ee3\u56fe\u7247\u5177\u6709\u8f83\u5927\u7684\u50cf\u7d20\uff0c\u4f7f\u7528\u5168\u8fde\u63a5\u5c42\u5bfc\u81f4\u53c2\u6570\u7206\u70b8"),(0,m.kt)("li",{parentName:"ol"},"\u9488\u5bf9\u56fe\u7247\u7684\u7279\u5f81\u63d0\u53d6\u548c\u6a21\u5f0f\u8bc6\u522b\uff0c\u5e94\u5177\u5907\u4ee5\u4e0b\u539f\u5219\uff1a",(0,m.kt)("ul",{parentName:"li"},(0,m.kt)("li",{parentName:"ul"},"\u5e73\u79fb\u4e0d\u53d8\u6027"),(0,m.kt)("li",{parentName:"ul"},"\u5c40\u90e8\u6027")))),(0,m.kt)("hr",null),(0,m.kt)("h2",{id:"\u4e8c\u91cd\u65b0\u8003\u5bdf\u5168\u8fde\u63a5\u5c42"},"\u4e8c\u3001\u91cd\u65b0\u8003\u5bdf\u5168\u8fde\u63a5\u5c42"),(0,m.kt)("ol",null,(0,m.kt)("li",{parentName:"ol"},(0,m.kt)("p",{parentName:"li"},"\u5c06\u5168\u8fde\u63a5\u5c42\u7684\u4e00\u7ef4\u8f93\u5165\u548c\u8f93\u51fa\u53d8\u6362\u4e3a\u4e8c\u7ef4\u7684\u77e9\u9635\uff0c\u516c\u5f0f\u5982\u4e0b"),(0,m.kt)("p",{parentName:"li"},"\u5176\u4e2d",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"i"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"j")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"i,j")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.854em",verticalAlign:"-0.1944em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"i"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05724em"}},"j"))))),"\u4ee3\u8868\u8f93\u51fa\u795e\u7ecf\u5143\u7684\u4e8c\u7ef4\u7d22\u5f15\u5750\u6807\uff0c",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"h"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"w")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"h,w")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.8889em",verticalAlign:"-0.1944em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"h"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02691em"}},"w"))))),"\u4ee3\u8868\u8f93\u5165\u795e\u7ecf\u5143\u7684\u4e8c\u7ef4\u7d22\u5f15\u5750\u6807"))),(0,m.kt)("div",{className:"math math-display"},(0,m.kt)("span",{parentName:"div",className:"katex-display"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mtable",{parentName:"semantics",width:"100%"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mrow",{parentName:"mtd"},(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"y"),(0,m.kt)("mrow",{parentName:"msub"},(0,m.kt)("mi",{parentName:"mrow"},"i"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"j"))),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("munder",{parentName:"mrow"},(0,m.kt)("mo",{parentName:"munder"},"\u2211"),(0,m.kt)("mrow",{parentName:"munder"},(0,m.kt)("mi",{parentName:"mrow"},"h"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"w"))),(0,m.kt)("mrow",{parentName:"mrow"},(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"w"),(0,m.kt)("mrow",{parentName:"msub"},(0,m.kt)("mi",{parentName:"mrow"},"i"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"j"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"h"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"w"))),(0,m.kt)("mo",{parentName:"mrow"},"\u2217"),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"x"),(0,m.kt)("mrow",{parentName:"msub"},(0,m.kt)("mi",{parentName:"mrow"},"h"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"w")))))),(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mtext",{parentName:"mtd"},"(1)")))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"y_{i,j}=\\sum_{h,w}{w_{i,j,h,w}*x_{h,w}} \\tag{1}")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.7167em",verticalAlign:"-0.2861em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"y"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3117em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0359em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"i"),(0,m.kt)("span",{parentName:"span",className:"mpunct mtight"},","),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.05724em"}},"j"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.2861em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"="),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"2.4882em",verticalAlign:"-1.4382em"}}),(0,m.kt)("span",{parentName:"span",className:"mop op-limits"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.05em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-1.8479em",marginLeft:"0em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.05em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"h"),(0,m.kt)("span",{parentName:"span",className:"mpunct mtight"},","),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.02691em"}},"w")))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.05em"}}),(0,m.kt)("span",{parentName:"span"},(0,m.kt)("span",{parentName:"span",className:"mop op-symbol large-op"},"\u2211")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.4382em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02691em"}},"w"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3361em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0269em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"i"),(0,m.kt)("span",{parentName:"span",className:"mpunct mtight"},","),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.05724em"}},"j"),(0,m.kt)("span",{parentName:"span",className:"mpunct mtight"},","),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"h"),(0,m.kt)("span",{parentName:"span",className:"mpunct mtight"},","),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.02691em"}},"w"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.2861em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"\u2217"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"x"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3361em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"h"),(0,m.kt)("span",{parentName:"span",className:"mpunct mtight"},","),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.02691em"}},"w"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.2861em"}},(0,m.kt)("span",{parentName:"span"})))))))),(0,m.kt)("span",{parentName:"span",className:"tag"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"2.4882em",verticalAlign:"-1.4382em"}}),(0,m.kt)("span",{parentName:"span",className:"mord text"},(0,m.kt)("span",{parentName:"span",className:"mord"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"1")),(0,m.kt)("span",{parentName:"span",className:"mord"},")"))))))),(0,m.kt)("ol",{start:2},(0,m.kt)("li",{parentName:"ol"},(0,m.kt)("p",{parentName:"li"},"\u8fdb\u4e00\u6b65\u5c06\u6743\u91cd\u4ee5\u53ca\u8f93\u5165\u7684\u7d22\u5f15\u53d8\u5f62\uff0c\u516c\u5f0f\u5982\u4e0b"),(0,m.kt)("p",{parentName:"li"},"\u5176\u4e2d",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"a"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"b")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"a,b")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.8889em",verticalAlign:"-0.1944em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"a"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"b"))))),"\u7684\u53d6\u503c\u53ef\u8d1f\u53ef\u6b63\uff0c\u76f4\u5230\u904d\u5386\u6240\u6709\u6743\u91cd\u4ee5\u53ca\u8f93\u5165\u795e\u7ecf\u5143\uff0c\u5b9e\u73b0\u5168\u8fde\u63a5"))),(0,m.kt)("div",{className:"math math-display"},(0,m.kt)("span",{parentName:"div",className:"katex-display"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mtable",{parentName:"semantics",width:"100%"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mrow",{parentName:"mtd"},(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"y"),(0,m.kt)("mrow",{parentName:"msub"},(0,m.kt)("mi",{parentName:"mrow"},"i"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"j"))),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("munder",{parentName:"mrow"},(0,m.kt)("mo",{parentName:"munder"},"\u2211"),(0,m.kt)("mrow",{parentName:"munder"},(0,m.kt)("mi",{parentName:"mrow"},"h"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"w"))),(0,m.kt)("mrow",{parentName:"mrow"},(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"w"),(0,m.kt)("mrow",{parentName:"msub"},(0,m.kt)("mi",{parentName:"mrow"},"i"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"j"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"h"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"w"))),(0,m.kt)("mo",{parentName:"mrow"},"\u2217"),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"x"),(0,m.kt)("mrow",{parentName:"msub"},(0,m.kt)("mi",{parentName:"mrow"},"h"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"w")))),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("munder",{parentName:"mrow"},(0,m.kt)("mo",{parentName:"munder"},"\u2211"),(0,m.kt)("mrow",{parentName:"munder"},(0,m.kt)("mi",{parentName:"mrow"},"a"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"b"))),(0,m.kt)("mrow",{parentName:"mrow"},(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"v"),(0,m.kt)("mrow",{parentName:"msub"},(0,m.kt)("mi",{parentName:"mrow"},"i"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"j"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"a"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"b"))),(0,m.kt)("mo",{parentName:"mrow"},"\u2217"),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"x"),(0,m.kt)("mrow",{parentName:"msub"},(0,m.kt)("mi",{parentName:"mrow"},"i"),(0,m.kt)("mo",{parentName:"mrow"},"+"),(0,m.kt)("mi",{parentName:"mrow"},"a"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"j"),(0,m.kt)("mo",{parentName:"mrow"},"+"),(0,m.kt)("mi",{parentName:"mrow"},"b")))))),(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mtext",{parentName:"mtd"},"(2)")))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"y_{i,j}=\\sum_{h,w}{w_{i,j,h,w}*x_{h,w}}=\\sum_{a,b}{v_{i,j,a,b}*x_{i+a,j+b}} \\tag{2}")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.7167em",verticalAlign:"-0.2861em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"y"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3117em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0359em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"i"),(0,m.kt)("span",{parentName:"span",className:"mpunct mtight"},","),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.05724em"}},"j"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.2861em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"="),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"2.4882em",verticalAlign:"-1.4382em"}}),(0,m.kt)("span",{parentName:"span",className:"mop op-limits"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.05em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-1.8479em",marginLeft:"0em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.05em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"h"),(0,m.kt)("span",{parentName:"span",className:"mpunct mtight"},","),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.02691em"}},"w")))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.05em"}}),(0,m.kt)("span",{parentName:"span"},(0,m.kt)("span",{parentName:"span",className:"mop op-symbol large-op"},"\u2211")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.4382em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02691em"}},"w"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3361em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0269em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"i"),(0,m.kt)("span",{parentName:"span",className:"mpunct mtight"},","),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.05724em"}},"j"),(0,m.kt)("span",{parentName:"span",className:"mpunct mtight"},","),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"h"),(0,m.kt)("span",{parentName:"span",className:"mpunct mtight"},","),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.02691em"}},"w"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.2861em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"\u2217"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"x"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3361em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"h"),(0,m.kt)("span",{parentName:"span",className:"mpunct mtight"},","),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.02691em"}},"w"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.2861em"}},(0,m.kt)("span",{parentName:"span"}))))))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"="),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"2.4882em",verticalAlign:"-1.4382em"}}),(0,m.kt)("span",{parentName:"span",className:"mop op-limits"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.05em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-1.8479em",marginLeft:"0em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.05em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"a"),(0,m.kt)("span",{parentName:"span",className:"mpunct mtight"},","),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"b")))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.05em"}}),(0,m.kt)("span",{parentName:"span"},(0,m.kt)("span",{parentName:"span",className:"mop op-symbol large-op"},"\u2211")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.4382em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"v"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3361em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0359em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"i"),(0,m.kt)("span",{parentName:"span",className:"mpunct mtight"},","),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.05724em"}},"j"),(0,m.kt)("span",{parentName:"span",className:"mpunct mtight"},","),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"a"),(0,m.kt)("span",{parentName:"span",className:"mpunct mtight"},","),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"b"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.2861em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"\u2217"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"x"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3361em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"i"),(0,m.kt)("span",{parentName:"span",className:"mbin mtight"},"+"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"a"),(0,m.kt)("span",{parentName:"span",className:"mpunct mtight"},","),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.05724em"}},"j"),(0,m.kt)("span",{parentName:"span",className:"mbin mtight"},"+"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"b"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.2861em"}},(0,m.kt)("span",{parentName:"span"})))))))),(0,m.kt)("span",{parentName:"span",className:"tag"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"2.4882em",verticalAlign:"-1.4382em"}}),(0,m.kt)("span",{parentName:"span",className:"mord text"},(0,m.kt)("span",{parentName:"span",className:"mord"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"2")),(0,m.kt)("span",{parentName:"span",className:"mord"},")"))))))),(0,m.kt)("ol",{start:3},(0,m.kt)("li",{parentName:"ol"},(0,m.kt)("p",{parentName:"li"},"\u5728\u516c\u5f0f(2)\u4e2d\uff0c\u5f53",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"i"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"j")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"i,j")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.854em",verticalAlign:"-0.1944em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"i"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05724em"}},"j"))))),"\u53d1\u751f\u53d8\u5316\u65f6\uff0c\u5373\u4ea7\u751f\u5e73\u79fb\uff0c\u6743\u91cd\u4e5f\u53d1\u751f\u5e73\u79fb\uff0c\u4e0d\u6ee1\u8db3\u5e73\u79fb\u4e0d\u53d8\u6027\u3002"),(0,m.kt)("p",{parentName:"li"},"\u4e3a\u4e86\u89e3\u51b3\u8fd9\u4e00\u95ee\u9898\uff0c\u5c06\u516c\u5f0f(2)\u53d8\u5f62\u4e3a\u5982\u4e0b"),(0,m.kt)("p",{parentName:"li"},"\u6b64\u65f6\u53c2\u6570\u6743\u503c\u5171\u4eab\uff0c\u6ee1\u8db3\u4e86\u5e73\u79fb\u4e0d\u53d8\u6027"),(0,m.kt)("div",{parentName:"li",className:"math math-display"},(0,m.kt)("span",{parentName:"div",className:"katex-display"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mtable",{parentName:"semantics",width:"100%"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mrow",{parentName:"mtd"},(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"y"),(0,m.kt)("mrow",{parentName:"msub"},(0,m.kt)("mi",{parentName:"mrow"},"i"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"j"))),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("munder",{parentName:"mrow"},(0,m.kt)("mo",{parentName:"munder"},"\u2211"),(0,m.kt)("mrow",{parentName:"munder"},(0,m.kt)("mi",{parentName:"mrow"},"a"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"b"))),(0,m.kt)("mrow",{parentName:"mrow"},(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"v"),(0,m.kt)("mrow",{parentName:"msub"},(0,m.kt)("mi",{parentName:"mrow"},"i"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"j"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"a"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"b"))),(0,m.kt)("mo",{parentName:"mrow"},"\u2217"),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"x"),(0,m.kt)("mrow",{parentName:"msub"},(0,m.kt)("mi",{parentName:"mrow"},"i"),(0,m.kt)("mo",{parentName:"mrow"},"+"),(0,m.kt)("mi",{parentName:"mrow"},"a"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"j"),(0,m.kt)("mo",{parentName:"mrow"},"+"),(0,m.kt)("mi",{parentName:"mrow"},"b")))),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("munder",{parentName:"mrow"},(0,m.kt)("mo",{parentName:"munder"},"\u2211"),(0,m.kt)("mrow",{parentName:"munder"},(0,m.kt)("mi",{parentName:"mrow"},"a"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"b"))),(0,m.kt)("mrow",{parentName:"mrow"},(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"v"),(0,m.kt)("mrow",{parentName:"msub"},(0,m.kt)("mi",{parentName:"mrow"},"a"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"b"))),(0,m.kt)("mo",{parentName:"mrow"},"\u2217"),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"x"),(0,m.kt)("mrow",{parentName:"msub"},(0,m.kt)("mi",{parentName:"mrow"},"i"),(0,m.kt)("mo",{parentName:"mrow"},"+"),(0,m.kt)("mi",{parentName:"mrow"},"a"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"j"),(0,m.kt)("mo",{parentName:"mrow"},"+"),(0,m.kt)("mi",{parentName:"mrow"},"b")))))),(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mtext",{parentName:"mtd"},"(3)")))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"y_{i,j}=\\sum_{a,b}{v_{i,j,a,b}*x_{i+a,j+b}}=\\sum_{a,b}{v_{a,b}*x_{i+a,j+b}} \\tag{3}")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.7167em",verticalAlign:"-0.2861em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"y"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3117em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0359em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"i"),(0,m.kt)("span",{parentName:"span",className:"mpunct mtight"},","),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.05724em"}},"j"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.2861em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"="),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"2.4882em",verticalAlign:"-1.4382em"}}),(0,m.kt)("span",{parentName:"span",className:"mop op-limits"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.05em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-1.8479em",marginLeft:"0em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.05em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"a"),(0,m.kt)("span",{parentName:"span",className:"mpunct mtight"},","),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"b")))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.05em"}}),(0,m.kt)("span",{parentName:"span"},(0,m.kt)("span",{parentName:"span",className:"mop op-symbol large-op"},"\u2211")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.4382em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"v"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3361em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0359em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"i"),(0,m.kt)("span",{parentName:"span",className:"mpunct mtight"},","),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.05724em"}},"j"),(0,m.kt)("span",{parentName:"span",className:"mpunct mtight"},","),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"a"),(0,m.kt)("span",{parentName:"span",className:"mpunct mtight"},","),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"b"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.2861em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"\u2217"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"x"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3361em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"i"),(0,m.kt)("span",{parentName:"span",className:"mbin mtight"},"+"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"a"),(0,m.kt)("span",{parentName:"span",className:"mpunct mtight"},","),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.05724em"}},"j"),(0,m.kt)("span",{parentName:"span",className:"mbin mtight"},"+"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"b"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.2861em"}},(0,m.kt)("span",{parentName:"span"}))))))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"="),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"2.4882em",verticalAlign:"-1.4382em"}}),(0,m.kt)("span",{parentName:"span",className:"mop op-limits"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.05em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-1.8479em",marginLeft:"0em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.05em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"a"),(0,m.kt)("span",{parentName:"span",className:"mpunct mtight"},","),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"b")))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.05em"}}),(0,m.kt)("span",{parentName:"span"},(0,m.kt)("span",{parentName:"span",className:"mop op-symbol large-op"},"\u2211")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.4382em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"v"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3361em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0359em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"a"),(0,m.kt)("span",{parentName:"span",className:"mpunct mtight"},","),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"b"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.2861em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"\u2217"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"x"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3361em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"i"),(0,m.kt)("span",{parentName:"span",className:"mbin mtight"},"+"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"a"),(0,m.kt)("span",{parentName:"span",className:"mpunct mtight"},","),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.05724em"}},"j"),(0,m.kt)("span",{parentName:"span",className:"mbin mtight"},"+"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"b"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.2861em"}},(0,m.kt)("span",{parentName:"span"})))))))),(0,m.kt)("span",{parentName:"span",className:"tag"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"2.4882em",verticalAlign:"-1.4382em"}}),(0,m.kt)("span",{parentName:"span",className:"mord text"},(0,m.kt)("span",{parentName:"span",className:"mord"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"3")),(0,m.kt)("span",{parentName:"span",className:"mord"},")")))))))),(0,m.kt)("li",{parentName:"ol"},(0,m.kt)("p",{parentName:"li"},"\u518d\u8003\u8651\u5c40\u90e8\u6027\uff0c\u5728\u8fdb\u884c\u7279\u5f81\u63d0\u53d6\u4ee5\u53ca\u6a21\u5f0f\u8bc6\u522b\u65f6\uff0c\u53ea\u9700\u5173\u6ce8\u5468\u56f4\u7684\u5c40\u90e8\u7279\u5f81\uff0c\u56e0\u6b64\u516c\u5f0f(3)\u4e2d\u7684",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"a"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"b")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"a,b")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.8889em",verticalAlign:"-0.1944em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"a"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"b"))))),"\u53ef\u7f29\u5c0f\u8303\u56f4\uff0c\u5e76\u4e0d\u7528\u6765\u5b9e\u73b0\u5168\u8fde\u63a5\uff0c\u6b64\u65f6",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"a"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"b")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"a,b")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.8889em",verticalAlign:"-0.1944em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"a"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"b"))))),"\u4ee3\u8868\u7740\u5377\u79ef\u6838\u7684\u611f\u53d7\u91ce\uff0c\u5373kernel size")),(0,m.kt)("li",{parentName:"ol"},(0,m.kt)("p",{parentName:"li"},"\u6b64\u65f6\u5b8c\u6210\u4e86\u5168\u8fde\u63a5\u5c42\u5230\u5377\u79ef\u5c42\u7684\u8f6c\u6362"))),(0,m.kt)("hr",null),(0,m.kt)("h2",{id:"\u4e09\u603b\u7ed3"},"\u4e09\u3001\u603b\u7ed3"),(0,m.kt)("ol",null,(0,m.kt)("li",{parentName:"ol"},"\u5bf9\u5168\u8fde\u63a5\u5c42\u4f7f\u7528\u5e73\u79fb\u4e0d\u53d8\u6027\u548c\u5c40\u90e8\u6027\u5f97\u5230\u5377\u79ef\u5c42\uff0c\u5377\u79ef\u662f\u7279\u6b8a\u7684\u5168\u8fde\u63a5")),(0,m.kt)("div",{className:"math math-display"},(0,m.kt)("span",{parentName:"div",className:"katex-display"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mtable",{parentName:"semantics",width:"100%"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mrow",{parentName:"mtd"},(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"y"),(0,m.kt)("mrow",{parentName:"msub"},(0,m.kt)("mi",{parentName:"mrow"},"i"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"j"))),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("munder",{parentName:"mrow"},(0,m.kt)("mo",{parentName:"munder"},"\u2211"),(0,m.kt)("mrow",{parentName:"munder"},(0,m.kt)("mi",{parentName:"mrow"},"a"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"b"))),(0,m.kt)("mrow",{parentName:"mrow"},(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"v"),(0,m.kt)("mrow",{parentName:"msub"},(0,m.kt)("mi",{parentName:"mrow"},"a"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"b"))),(0,m.kt)("mo",{parentName:"mrow"},"\u2217"),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"x"),(0,m.kt)("mrow",{parentName:"msub"},(0,m.kt)("mi",{parentName:"mrow"},"i"),(0,m.kt)("mo",{parentName:"mrow"},"+"),(0,m.kt)("mi",{parentName:"mrow"},"a"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"j"),(0,m.kt)("mo",{parentName:"mrow"},"+"),(0,m.kt)("mi",{parentName:"mrow"},"b")))),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("munderover",{parentName:"mrow"},(0,m.kt)("mo",{parentName:"munderover"},"\u2211"),(0,m.kt)("mrow",{parentName:"munderover"},(0,m.kt)("mi",{parentName:"mrow"},"a"),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("mo",{parentName:"mrow"},"\u2212"),(0,m.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"\u0394")),(0,m.kt)("mi",{parentName:"munderover",mathvariant:"normal"},"\u0394")),(0,m.kt)("munderover",{parentName:"mrow"},(0,m.kt)("mo",{parentName:"munderover"},"\u2211"),(0,m.kt)("mrow",{parentName:"munderover"},(0,m.kt)("mi",{parentName:"mrow"},"b"),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("mo",{parentName:"mrow"},"\u2212"),(0,m.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"\u0394")),(0,m.kt)("mi",{parentName:"munderover",mathvariant:"normal"},"\u0394")),(0,m.kt)("mrow",{parentName:"mrow"},(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"v"),(0,m.kt)("mrow",{parentName:"msub"},(0,m.kt)("mi",{parentName:"mrow"},"a"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"b"))),(0,m.kt)("mo",{parentName:"mrow"},"\u2217"),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"x"),(0,m.kt)("mrow",{parentName:"msub"},(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"i"),(0,m.kt)("mi",{parentName:"msub"},"a")),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"j"),(0,m.kt)("mo",{parentName:"mrow"},"+"),(0,m.kt)("mi",{parentName:"mrow"},"b")))))),(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mtext",{parentName:"mtd"},"(4)")))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"y_{i,j}=\\sum_{a,b}{v_{a,b}*x_{i+a,j+b}}=\\sum_{a=-\\Delta}^{\\Delta}\\sum_{b=-\\Delta}^{\\Delta}{v_{a,b}*x_{i_a,j+b}} \\tag{4}")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.7167em",verticalAlign:"-0.2861em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"y"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3117em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0359em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"i"),(0,m.kt)("span",{parentName:"span",className:"mpunct mtight"},","),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.05724em"}},"j"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.2861em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"="),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"2.4882em",verticalAlign:"-1.4382em"}}),(0,m.kt)("span",{parentName:"span",className:"mop op-limits"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.05em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-1.8479em",marginLeft:"0em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.05em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"a"),(0,m.kt)("span",{parentName:"span",className:"mpunct mtight"},","),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"b")))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.05em"}}),(0,m.kt)("span",{parentName:"span"},(0,m.kt)("span",{parentName:"span",className:"mop op-symbol large-op"},"\u2211")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.4382em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"v"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3361em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0359em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"a"),(0,m.kt)("span",{parentName:"span",className:"mpunct mtight"},","),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"b"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.2861em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"\u2217"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"x"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3361em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"i"),(0,m.kt)("span",{parentName:"span",className:"mbin mtight"},"+"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"a"),(0,m.kt)("span",{parentName:"span",className:"mpunct mtight"},","),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.05724em"}},"j"),(0,m.kt)("span",{parentName:"span",className:"mbin mtight"},"+"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"b"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.2861em"}},(0,m.kt)("span",{parentName:"span"}))))))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"="),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"3.1888em",verticalAlign:"-1.3604em"}}),(0,m.kt)("span",{parentName:"span",className:"mop op-limits"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.8283em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-1.8557em",marginLeft:"0em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.05em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"a"),(0,m.kt)("span",{parentName:"span",className:"mrel mtight"},"="),(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"\u2212"),(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"\u0394")))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.05em"}}),(0,m.kt)("span",{parentName:"span"},(0,m.kt)("span",{parentName:"span",className:"mop op-symbol large-op"},"\u2211"))),(0,m.kt)("span",{parentName:"span",style:{top:"-4.3em",marginLeft:"0em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.05em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"\u0394"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.3527em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mop op-limits"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.8283em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-1.8479em",marginLeft:"0em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.05em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"b"),(0,m.kt)("span",{parentName:"span",className:"mrel mtight"},"="),(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"\u2212"),(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"\u0394")))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.05em"}}),(0,m.kt)("span",{parentName:"span"},(0,m.kt)("span",{parentName:"span",className:"mop op-symbol large-op"},"\u2211"))),(0,m.kt)("span",{parentName:"span",style:{top:"-4.3em",marginLeft:"0em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.05em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"\u0394"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.3604em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"v"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3361em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0359em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"a"),(0,m.kt)("span",{parentName:"span",className:"mpunct mtight"},","),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"b"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.2861em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"\u2217"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"x"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3361em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"i"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.1645em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.357em",marginLeft:"0em",marginRight:"0.0714em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.5em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size3 size1 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"a")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.143em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mpunct mtight"},","),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.05724em"}},"j"),(0,m.kt)("span",{parentName:"span",className:"mbin mtight"},"+"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"b"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.2861em"}},(0,m.kt)("span",{parentName:"span"})))))))),(0,m.kt)("span",{parentName:"span",className:"tag"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"3.2666em",verticalAlign:"-1.4382em"}}),(0,m.kt)("span",{parentName:"span",className:"mord text"},(0,m.kt)("span",{parentName:"span",className:"mord"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"4")),(0,m.kt)("span",{parentName:"span",className:"mord"},")"))))))),(0,m.kt)("ol",{start:2},(0,m.kt)("li",{parentName:"ol"},"\u5377\u79ef\u5c42\u8f93\u51fa\u5f62\u72b6\u7684\u8ba1\u7b97",(0,m.kt)("div",{parentName:"li",className:"math math-display"},(0,m.kt)("span",{parentName:"div",className:"katex-display"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mtable",{parentName:"semantics",width:"100%"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mrow",{parentName:"mtd"},(0,m.kt)("mi",{parentName:"mrow"},"s"),(0,m.kt)("mi",{parentName:"mrow"},"h"),(0,m.kt)("mi",{parentName:"mrow"},"a"),(0,m.kt)("mi",{parentName:"mrow"},"p"),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"e"),(0,m.kt)("mrow",{parentName:"msub"},(0,m.kt)("mi",{parentName:"mrow"},"o"),(0,m.kt)("mi",{parentName:"mrow"},"u"),(0,m.kt)("mi",{parentName:"mrow"},"t"),(0,m.kt)("mi",{parentName:"mrow"},"p"),(0,m.kt)("mi",{parentName:"mrow"},"u"),(0,m.kt)("mi",{parentName:"mrow"},"t"))),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("mfrac",{parentName:"mrow"},(0,m.kt)("mrow",{parentName:"mfrac"},(0,m.kt)("mi",{parentName:"mrow"},"s"),(0,m.kt)("mi",{parentName:"mrow"},"h"),(0,m.kt)("mi",{parentName:"mrow"},"a"),(0,m.kt)("mi",{parentName:"mrow"},"p"),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"e"),(0,m.kt)("mrow",{parentName:"msub"},(0,m.kt)("mi",{parentName:"mrow"},"i"),(0,m.kt)("mi",{parentName:"mrow"},"n"),(0,m.kt)("mi",{parentName:"mrow"},"p"),(0,m.kt)("mi",{parentName:"mrow"},"u"),(0,m.kt)("mi",{parentName:"mrow"},"t"))),(0,m.kt)("mo",{parentName:"mrow"},"\u2212"),(0,m.kt)("mi",{parentName:"mrow"},"s"),(0,m.kt)("mi",{parentName:"mrow"},"i"),(0,m.kt)("mi",{parentName:"mrow"},"z"),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"e"),(0,m.kt)("mrow",{parentName:"msub"},(0,m.kt)("mi",{parentName:"mrow"},"k"),(0,m.kt)("mi",{parentName:"mrow"},"e"),(0,m.kt)("mi",{parentName:"mrow"},"r"),(0,m.kt)("mi",{parentName:"mrow"},"n"),(0,m.kt)("mi",{parentName:"mrow"},"e"),(0,m.kt)("mi",{parentName:"mrow"},"l"))),(0,m.kt)("mo",{parentName:"mrow"},"+"),(0,m.kt)("mn",{parentName:"mrow"},"2"),(0,m.kt)("mo",{parentName:"mrow"},"\u2217"),(0,m.kt)("mi",{parentName:"mrow"},"p"),(0,m.kt)("mi",{parentName:"mrow"},"a"),(0,m.kt)("mi",{parentName:"mrow"},"d"),(0,m.kt)("mi",{parentName:"mrow"},"d"),(0,m.kt)("mi",{parentName:"mrow"},"i"),(0,m.kt)("mi",{parentName:"mrow"},"n"),(0,m.kt)("mi",{parentName:"mrow"},"g")),(0,m.kt)("mrow",{parentName:"mfrac"},(0,m.kt)("mi",{parentName:"mrow"},"s"),(0,m.kt)("mi",{parentName:"mrow"},"t"),(0,m.kt)("mi",{parentName:"mrow"},"r"),(0,m.kt)("mi",{parentName:"mrow"},"i"),(0,m.kt)("mi",{parentName:"mrow"},"d"),(0,m.kt)("mi",{parentName:"mrow"},"e"))),(0,m.kt)("mo",{parentName:"mrow"},"+"),(0,m.kt)("mn",{parentName:"mrow"},"1"))),(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mtext",{parentName:"mtd"},"(5)")))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"shape_{output} = \\frac{shape_{input}-size_{kernel}+2*padding}{stride}+1 \\tag{5}")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.9805em",verticalAlign:"-0.2861em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"s"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"ha"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"p"),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"e"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.2806em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"o"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"u"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"tp"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"u"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"t"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.2861em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"="),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"2.0574em",verticalAlign:"-0.686em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mopen nulldelimiter"}),(0,m.kt)("span",{parentName:"span",className:"mfrac"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.3714em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.314em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"s"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"t"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02778em"}},"r"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"i"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"d"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"e"))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.23em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"frac-line",style:{borderBottomWidth:"0.04em"}})),(0,m.kt)("span",{parentName:"span",style:{top:"-3.677em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"s"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"ha"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"p"),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"e"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3117em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"in"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"p"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"u"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"t"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.2861em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"\u2212"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"s"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"i"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.04398em"}},"z"),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"e"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3361em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.03148em"}},"k"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.02778em"}},"er"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"n"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"e"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.01968em"}},"l"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"+"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"2"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"\u2217"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"p"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"a"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"dd"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"in"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"g")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.686em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"mclose nulldelimiter"})),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"+"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6444em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"1")),(0,m.kt)("span",{parentName:"span",className:"tag"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"2.0574em",verticalAlign:"-0.686em"}}),(0,m.kt)("span",{parentName:"span",className:"mord text"},(0,m.kt)("span",{parentName:"span",className:"mord"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"5")),(0,m.kt)("span",{parentName:"span",className:"mord"},")"))))))))))}o.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/en/assets/js/360a53fd.00f9e11d.js b/en/assets/js/360a53fd.00f9e11d.js new file mode 100644 index 000000000..fa6d29ff8 --- /dev/null +++ b/en/assets/js/360a53fd.00f9e11d.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunknpy_notebook=self.webpackChunknpy_notebook||[]).push([[7851],{3905:(e,t,n)=>{n.d(t,{Zo:()=>s,kt:()=>h});var r=n(7294);function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var c=r.createContext({}),i=function(e){var t=r.useContext(c),n=t;return e&&(n="function"==typeof e?e(t):p(p({},t),e)),n},s=function(e){var t=i(e.components);return r.createElement(c.Provider,{value:t},e.children)},u="mdxType",f={inlineCode:"code",wrapper:function(e){var t=e.children;return r.createElement(r.Fragment,{},t)}},m=r.forwardRef((function(e,t){var n=e.components,o=e.mdxType,a=e.originalType,c=e.parentName,s=l(e,["components","mdxType","originalType","parentName"]),u=i(n),m=o,h=u["".concat(c,".").concat(m)]||u[m]||f[m]||a;return n?r.createElement(h,p(p({ref:t},s),{},{components:n})):r.createElement(h,p({ref:t},s))}));function h(e,t){var n=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var a=n.length,p=new Array(a);p[0]=m;var l={};for(var c in t)hasOwnProperty.call(t,c)&&(l[c]=t[c]);l.originalType=e,l[u]="string"==typeof e?e:o,p[1]=l;for(var i=2;i{n.r(t),n.d(t,{assets:()=>c,contentTitle:()=>p,default:()=>f,frontMatter:()=>a,metadata:()=>l,toc:()=>i});var r=n(7462),o=(n(7294),n(3905));const a={},p="\u7ec8\u7aef\u4ee3\u7406",l={unversionedId:"Others/Linux/\u5b9e\u7528\u5de5\u5177/\u7ec8\u7aef\u4ee3\u7406",id:"Others/Linux/\u5b9e\u7528\u5de5\u5177/\u7ec8\u7aef\u4ee3\u7406",title:"\u7ec8\u7aef\u4ee3\u7406",description:"\u901a\u8fc7\u7f16\u5199\u811a\u672c\u51fd\u6570\u7684\u65b9\u5f0f\uff0c\u624b\u52a8\u5f00\u542f\u4ee3\u7406",source:"@site/docs/Others/2-Linux/\u5b9e\u7528\u5de5\u5177/\u7ec8\u7aef\u4ee3\u7406.md",sourceDirName:"Others/2-Linux/\u5b9e\u7528\u5de5\u5177",slug:"/Others/Linux/\u5b9e\u7528\u5de5\u5177/\u7ec8\u7aef\u4ee3\u7406",permalink:"/en/docs/Others/Linux/\u5b9e\u7528\u5de5\u5177/\u7ec8\u7aef\u4ee3\u7406",draft:!1,tags:[],version:"current",frontMatter:{},sidebar:"others",previous:{title:"Welcome",permalink:"/en/docs/Others/intro"},next:{title:"\u5982\u4f55\u8ba9\u4f60\u7684Kde Plasma\u770b\u8d77\u6765\u66f4\u50cfmacOS",permalink:"/en/docs/Others/Linux/\u5ba2\u5236\u5316/\u5982\u4f55\u8ba9\u4f60\u7684KDE\u770b\u8d77\u6765\u66f4\u50cfmacOS"}},c={},i=[{value:"\u4e00\u3001\u7f16\u5199\u811a\u672c",id:"\u4e00\u7f16\u5199\u811a\u672c",level:2},{value:"\u4e8c\u3001\u5173\u8054\u7ec8\u7aef\u914d\u7f6e\u6587\u4ef6",id:"\u4e8c\u5173\u8054\u7ec8\u7aef\u914d\u7f6e\u6587\u4ef6",level:2},{value:"\u4e09\u3001\u4f7f\u7528",id:"\u4e09\u4f7f\u7528",level:2}],s={toc:i},u="wrapper";function f(e){let{components:t,...n}=e;return(0,o.kt)(u,(0,r.Z)({},s,n,{components:t,mdxType:"MDXLayout"}),(0,o.kt)("h1",{id:"\u7ec8\u7aef\u4ee3\u7406"},"\u7ec8\u7aef\u4ee3\u7406"),(0,o.kt)("p",null,"\u901a\u8fc7\u7f16\u5199\u811a\u672c\u51fd\u6570\u7684\u65b9\u5f0f\uff0c\u624b\u52a8\u5f00\u542f\u4ee3\u7406"),(0,o.kt)("h2",{id:"\u4e00\u7f16\u5199\u811a\u672c"},"\u4e00\u3001\u7f16\u5199\u811a\u672c"),(0,o.kt)("p",null,"\u65b0\u5efa\u811a\u672c\u6587\u4ef6terminal_proxy.sh"),(0,o.kt)("pre",null,(0,o.kt)("code",{parentName:"pre",className:"language-bash"},'# \u5f00\u542f\u4ee3\u7406\nfunction proxy_on(){\n export ALL_PROXY=socks5://127.0.0.1:7890\n export http_proxy=http://127.0.0.1:7890\n export https_proxy=https://127.0.0.1:7890\n echo -e "\u5df2\u5f00\u542f\u4ee3\u7406"\n}\n\n# \u5173\u95ed\u4ee3\u7406\nfunction proxy_off(){\n unset ALL_PROXY\n unset http_proxy\n unset https_proxy\n echo -e "\u5df2\u5173\u95ed\u4ee3\u7406"\n}\n')),(0,o.kt)("h2",{id:"\u4e8c\u5173\u8054\u7ec8\u7aef\u914d\u7f6e\u6587\u4ef6"},"\u4e8c\u3001\u5173\u8054\u7ec8\u7aef\u914d\u7f6e\u6587\u4ef6"),(0,o.kt)("blockquote",null,(0,o.kt)("p",{parentName:"blockquote"},"fish\u7684\u914d\u7f6e\u6587\u4ef6\uff1a~/.config/fish/config.fish"),(0,o.kt)("p",{parentName:"blockquote"},"zsh\u7684\u914d\u7f6e\u6587\u4ef6\uff1a~/.zshrc"),(0,o.kt)("p",{parentName:"blockquote"},"bash\u7684\u914d\u7f6e\u6587\u4ef6\uff1a~/.bashrc")),(0,o.kt)("p",null,"\u5728\u914d\u7f6e\u6587\u4ef6\u672b\u5c3e\u6dfb\u52a0\u4ee5\u4e0b\u4ee3\u7801"),(0,o.kt)("pre",null,(0,o.kt)("code",{parentName:"pre",className:"language-bash"},"source /path/terminal_proxy.sh\n")),(0,o.kt)("h2",{id:"\u4e09\u4f7f\u7528"},"\u4e09\u3001\u4f7f\u7528"),(0,o.kt)("p",null,"\u5728\u7ec8\u7aef\u4e2d\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\u5373\u53ef\u5f00\u542f\u4ee3\u7406"),(0,o.kt)("pre",null,(0,o.kt)("code",{parentName:"pre",className:"language-bash"},"proxy_on\n")),(0,o.kt)("p",null,"\u5728\u7ec8\u7aef\u4e2d\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\u5373\u53ef\u5173\u95ed\u4ee3\u7406"),(0,o.kt)("pre",null,(0,o.kt)("code",{parentName:"pre",className:"language-bash"},"proxy_off\n")))}f.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/en/assets/js/393be207.b0fa9194.js b/en/assets/js/393be207.b0fa9194.js new file mode 100644 index 000000000..cb75b6660 --- /dev/null +++ b/en/assets/js/393be207.b0fa9194.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunknpy_notebook=self.webpackChunknpy_notebook||[]).push([[7414],{3905:(e,t,r)=>{r.d(t,{Zo:()=>u,kt:()=>d});var n=r(7294);function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function p(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var l=n.createContext({}),i=function(e){var t=n.useContext(l),r=t;return e&&(r="function"==typeof e?e(t):p(p({},t),e)),r},u=function(e){var t=i(e.components);return n.createElement(l.Provider,{value:t},e.children)},f="mdxType",m={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},s=n.forwardRef((function(e,t){var r=e.components,o=e.mdxType,a=e.originalType,l=e.parentName,u=c(e,["components","mdxType","originalType","parentName"]),f=i(r),s=o,d=f["".concat(l,".").concat(s)]||f[s]||m[s]||a;return r?n.createElement(d,p(p({ref:t},u),{},{components:r})):n.createElement(d,p({ref:t},u))}));function d(e,t){var r=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var a=r.length,p=new Array(a);p[0]=s;var c={};for(var l in t)hasOwnProperty.call(t,l)&&(c[l]=t[l]);c.originalType=e,c[f]="string"==typeof e?e:o,p[1]=c;for(var i=2;i{r.r(t),r.d(t,{contentTitle:()=>p,default:()=>f,frontMatter:()=>a,metadata:()=>c,toc:()=>l});var n=r(7462),o=(r(7294),r(3905));const a={title:"Markdown page example"},p="Markdown page example",c={type:"mdx",permalink:"/en/markdown-page",source:"@site/src/pages/markdown-page.md",title:"Markdown page example",description:"You don't need React to write simple standalone pages.",frontMatter:{title:"Markdown page example"}},l=[],i={toc:l},u="wrapper";function f(e){let{components:t,...r}=e;return(0,o.kt)(u,(0,n.Z)({},i,r,{components:t,mdxType:"MDXLayout"}),(0,o.kt)("h1",{id:"markdown-page-example"},"Markdown page example"),(0,o.kt)("p",null,"You don't need React to write simple standalone pages."))}f.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/en/assets/js/3c9ce1b2.60dafc4d.js b/en/assets/js/3c9ce1b2.60dafc4d.js new file mode 100644 index 000000000..9b5954348 --- /dev/null +++ b/en/assets/js/3c9ce1b2.60dafc4d.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunknpy_notebook=self.webpackChunknpy_notebook||[]).push([[6674],{3905:(e,t,n)=>{n.d(t,{Zo:()=>s,kt:()=>d});var r=n(7294);function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var c=r.createContext({}),p=function(e){var t=r.useContext(c),n=t;return e&&(n="function"==typeof e?e(t):i(i({},t),e)),n},s=function(e){var t=p(e.components);return r.createElement(c.Provider,{value:t},e.children)},u="mdxType",m={inlineCode:"code",wrapper:function(e){var t=e.children;return r.createElement(r.Fragment,{},t)}},f=r.forwardRef((function(e,t){var n=e.components,o=e.mdxType,a=e.originalType,c=e.parentName,s=l(e,["components","mdxType","originalType","parentName"]),u=p(n),f=o,d=u["".concat(c,".").concat(f)]||u[f]||m[f]||a;return n?r.createElement(d,i(i({ref:t},s),{},{components:n})):r.createElement(d,i({ref:t},s))}));function d(e,t){var n=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var a=n.length,i=new Array(a);i[0]=f;var l={};for(var c in t)hasOwnProperty.call(t,c)&&(l[c]=t[c]);l.originalType=e,l[u]="string"==typeof e?e:o,i[1]=l;for(var p=2;p{n.r(t),n.d(t,{assets:()=>c,contentTitle:()=>i,default:()=>m,frontMatter:()=>a,metadata:()=>l,toc:()=>p});var r=n(7462),o=(n(7294),n(3905));const a={},i="\u53cd\u5e8f\u8f93\u51fa",l={unversionedId:"Algorithms/\u9898\u89e3/\u53cd\u5e8f\u8f93\u51fa",id:"Algorithms/\u9898\u89e3/\u53cd\u5e8f\u8f93\u51fa",title:"\u53cd\u5e8f\u8f93\u51fa",description:"\u8bbeN\u662f\u4e00\u4e2a\u56db\u4f4d\u6570\uff0c\u5b83\u76849\u500d\u6070\u597d\u662f\u5176\u53cd\u5e8f\u6570\uff08\u4f8b\u5982\uff1a1234\u7684\u53cd\u5e8f\u6570\u662f4321\uff09\uff0c\u6c42N\u7684\u503c",source:"@site/docs/Algorithms/4-\u9898\u89e3/\u53cd\u5e8f\u8f93\u51fa.md",sourceDirName:"Algorithms/4-\u9898\u89e3",slug:"/Algorithms/\u9898\u89e3/\u53cd\u5e8f\u8f93\u51fa",permalink:"/en/docs/Algorithms/\u9898\u89e3/\u53cd\u5e8f\u8f93\u51fa",draft:!1,tags:[],version:"current",frontMatter:{},sidebar:"algorithms",previous:{title:"\u4e00\u7ef4\u524d\u7f00\u548c\uff08\u5237\u51fa\u4e00\u9053\u5899\uff09",permalink:"/en/docs/Algorithms/\u9898\u89e3/\u4e00\u7ef4\u524d\u7f00\u548c\uff08\u5237\u51fa\u4e00\u9053\u5899\uff09"},next:{title:"\u6392\u5217\u7ec4\u5408\uff08\u6c4230\u7684\u500d\u6570\uff09",permalink:"/en/docs/Algorithms/\u9898\u89e3/\u6392\u5217\u7ec4\u5408\uff08\u6c4230\u7684\u500d\u6570\uff09"}},c={},p=[{value:"\u53c2\u8003\u4ee3\u7801",id:"\u53c2\u8003\u4ee3\u7801",level:2},{value:"\u9898\u89e3",id:"\u9898\u89e3",level:2}],s={toc:p},u="wrapper";function m(e){let{components:t,...n}=e;return(0,o.kt)(u,(0,r.Z)({},s,n,{components:t,mdxType:"MDXLayout"}),(0,o.kt)("h1",{id:"\u53cd\u5e8f\u8f93\u51fa"},"\u53cd\u5e8f\u8f93\u51fa"),(0,o.kt)("admonition",{type:"tip"},(0,o.kt)("p",{parentName:"admonition"},"\u8bbeN\u662f\u4e00\u4e2a\u56db\u4f4d\u6570\uff0c\u5b83\u76849\u500d\u6070\u597d\u662f\u5176\u53cd\u5e8f\u6570\uff08\u4f8b\u5982\uff1a1234\u7684\u53cd\u5e8f\u6570\u662f4321\uff09\uff0c\u6c42N\u7684\u503c")),(0,o.kt)("h2",{id:"\u53c2\u8003\u4ee3\u7801"},"\u53c2\u8003\u4ee3\u7801"),(0,o.kt)("pre",null,(0,o.kt)("code",{parentName:"pre",className:"language-c++"},"#include \n\nusing namespace std;\n\nint main() {\n for (int i = 1000; i <= 9999; i++) {\n int x = i * 9, y = 0;\n while (x > 0) {\n y = y * 10 + x % 10;\n x /= 10;\n }\n if (i == y) {\n cout << i << endl;\n }\n }\n return 0;\n}\n")),(0,o.kt)("h2",{id:"\u9898\u89e3"},"\u9898\u89e3"),(0,o.kt)("p",null,"\u53cd\u5e8f\u8f93\u51fa\u53ef\u4ee5\u5206\u4e3a\u4e24\u90e8\u5206\uff1a\u62c6\u5206\u4ee5\u53ca\u53cd\u5e8f\u62fc\u63a5"),(0,o.kt)("ul",null,(0,o.kt)("li",{parentName:"ul"},(0,o.kt)("p",{parentName:"li"},"\u62c6\u5206\uff1an\u4f4d\u6574\u6570\u6c42\u4f5910\u53ef\u4ee5\u5f97\u5230\u6700\u540e\u4e00\u4f4d\uff0c\u518d\u9664\u4ee510\u53ef\u4ee5\u5f97\u5230\u9664\u53bb\u4e0a\u8ff0\u6700\u540e\u4e00\u4f4d\u4e4b\u540e\u7684n-1\u4f4d\u6574\u6570\uff0c\u5faa\u73af\u5f97\u5230\u6bcf\u4e00\u4e2a\u6700\u540e\u4e00\u4f4d\uff0c\u5b8c\u6210\u62c6\u5206"),(0,o.kt)("pre",{parentName:"li"},(0,o.kt)("code",{parentName:"pre",className:"language-c++"},"while (x > 0) {\n y = y * 10 + x % 10; // \u62fc\u63a5\u4e0e\u62c6\u5206\n x /= 10;\n}\n"))),(0,o.kt)("li",{parentName:"ul"},(0,o.kt)("p",{parentName:"li"},"\u62fc\u63a5\uff1a\u5c06s\u4e2d\u7684\u6570\u5b57\u62fc\u63a5\u6210\u6574\u6570"),(0,o.kt)("pre",{parentName:"li"},(0,o.kt)("code",{parentName:"pre",className:"language-c++"},"int sum = 0;\nfor (int i = 0; i < s.size(); i++) {\n sum = sum * 10 + s[i];\n}\n")))))}m.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/en/assets/js/446859ef.634a6665.js b/en/assets/js/446859ef.634a6665.js new file mode 100644 index 000000000..28d31730d --- /dev/null +++ b/en/assets/js/446859ef.634a6665.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunknpy_notebook=self.webpackChunknpy_notebook||[]).push([[1459],{3905:(t,n,e)=>{e.d(n,{Zo:()=>u,kt:()=>g});var a=e(7294);function r(t,n,e){return n in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}function l(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);n&&(a=a.filter((function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable}))),e.push.apply(e,a)}return e}function i(t){for(var n=1;n=0||(r[e]=t[e]);return r}(t,n);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(t);for(a=0;a=0||Object.prototype.propertyIsEnumerable.call(t,e)&&(r[e]=t[e])}return r}var d=a.createContext({}),s=function(t){var n=a.useContext(d),e=n;return t&&(e="function"==typeof t?t(n):i(i({},n),t)),e},u=function(t){var n=s(t.components);return a.createElement(d.Provider,{value:n},t.children)},m="mdxType",o={inlineCode:"code",wrapper:function(t){var n=t.children;return a.createElement(a.Fragment,{},n)}},k=a.forwardRef((function(t,n){var e=t.components,r=t.mdxType,l=t.originalType,d=t.parentName,u=p(t,["components","mdxType","originalType","parentName"]),m=s(e),k=r,g=m["".concat(d,".").concat(k)]||m[k]||o[k]||l;return e?a.createElement(g,i(i({ref:n},u),{},{components:e})):a.createElement(g,i({ref:n},u))}));function g(t,n){var e=arguments,r=n&&n.mdxType;if("string"==typeof t||r){var l=e.length,i=new Array(l);i[0]=k;var p={};for(var d in n)hasOwnProperty.call(n,d)&&(p[d]=n[d]);p.originalType=t,p[m]="string"==typeof t?t:r,i[1]=p;for(var s=2;s{e.r(n),e.d(n,{assets:()=>d,contentTitle:()=>i,default:()=>o,frontMatter:()=>l,metadata:()=>p,toc:()=>s});var a=e(7462),r=(e(7294),e(3905));const l={},i="\u673a\u8bd5\u6280\u5de7\u4e0eSTL",p={unversionedId:"Algorithms/\u673a\u8bd5\u6280\u5de7\u4e0eSTL",id:"Algorithms/\u673a\u8bd5\u6280\u5de7\u4e0eSTL",title:"\u673a\u8bd5\u6280\u5de7\u4e0eSTL",description:"\u8f6c\u8f7d\u81eaSonder\u7684\u7b14\u8bb0\u672c",source:"@site/docs/Algorithms/3-\u673a\u8bd5\u6280\u5de7\u4e0eSTL.md",sourceDirName:"Algorithms",slug:"/Algorithms/\u673a\u8bd5\u6280\u5de7\u4e0eSTL",permalink:"/en/docs/Algorithms/\u673a\u8bd5\u6280\u5de7\u4e0eSTL",draft:!1,tags:[],version:"current",sidebarPosition:3,frontMatter:{},sidebar:"algorithms",previous:{title:"STL\u6a21\u677f",permalink:"/en/docs/Algorithms/STL\u6a21\u677f"},next:{title:"\u4e00\u7ef4\u524d\u7f00\u548c\uff08\u5237\u51fa\u4e00\u9053\u5899\uff09",permalink:"/en/docs/Algorithms/\u9898\u89e3/\u4e00\u7ef4\u524d\u7f00\u548c\uff08\u5237\u51fa\u4e00\u9053\u5899\uff09"}},d={},s=[{value:"vs2018 \u5feb\u6377\u952e",id:"vs2018-\u5feb\u6377\u952e",level:2},{value:"\u5934\u6587\u4ef6",id:"\u5934\u6587\u4ef6",level:2},{value:"\u6807\u51c6c\u5e93",id:"\u6807\u51c6c\u5e93",level:3},{value:"c++ STL",id:"c-stl",level:3},{value:"\u5e38\u7528\u5934",id:"\u5e38\u7528\u5934",level:3},{value:"\u5e38\u7528\u5b8f\u5b9a\u4e49",id:"\u5e38\u7528\u5b8f\u5b9a\u4e49",level:2},{value:"\u7ed3\u6784\u4f53",id:"\u7ed3\u6784\u4f53",level:2},{value:"\u5b9a\u4e49",id:"\u5b9a\u4e49",level:3},{value:"\u521d\u59cb\u5316",id:"\u521d\u59cb\u5316",level:3},{value:"\u65b9\u6cd5\u4e00\uff1a\u5b9a\u4e49\u65f6\u8d4b\u503c",id:"\u65b9\u6cd5\u4e00\u5b9a\u4e49\u65f6\u8d4b\u503c",level:4},{value:"\u65b9\u6cd5\u4e8c\uff1a\u5b9a\u4e49\u540e\u9010\u4e2a\u8d4b\u503c",id:"\u65b9\u6cd5\u4e8c\u5b9a\u4e49\u540e\u9010\u4e2a\u8d4b\u503c",level:4},{value:"\u65b9\u6cd5\u4e09\uff1a\u5b9a\u4e49\u65f6\u4e71\u5e8f\u8d4b\u503c\uff08C++\u98ce\u683c\uff09",id:"\u65b9\u6cd5\u4e09\u5b9a\u4e49\u65f6\u4e71\u5e8f\u8d4b\u503cc\u98ce\u683c",level:4},{value:"\u65b9\u6cd5\u56db\uff1a\u6784\u9020\u51fd\u6570",id:"\u65b9\u6cd5\u56db\u6784\u9020\u51fd\u6570",level:4},{value:"\u8fd0\u7b97\u7b26\u91cd\u8f7d",id:"\u8fd0\u7b97\u7b26\u91cd\u8f7d",level:3},{value:"c++new\u7684\u4f7f\u7528",id:"cnew\u7684\u4f7f\u7528",level:2},{value:"\u5e38\u89c4",id:"\u5e38\u89c4",level:3},{value:"\u52a8\u6001\u7533\u8bf7\u5217\u5927\u5c0f\u56fa\u5b9a\u7684\u4e8c\u7ef4\u6570\u7ec4",id:"\u52a8\u6001\u7533\u8bf7\u5217\u5927\u5c0f\u56fa\u5b9a\u7684\u4e8c\u7ef4\u6570\u7ec4",level:3},{value:"\u52a8\u6001\u7533\u8bf7\u5927\u5c0f\u4e0d\u56fa\u5b9a\u7684\u4e8c\u7ef4\u6570\u7ec4",id:"\u52a8\u6001\u7533\u8bf7\u5927\u5c0f\u4e0d\u56fa\u5b9a\u7684\u4e8c\u7ef4\u6570\u7ec4",level:3},{value:"\u5e38\u7528STL",id:"\u5e38\u7528stl",level:2},{value:"\u7b80\u8ff0",id:"\u7b80\u8ff0",level:3},{value:"STL\u5e95\u5c42\u8bf4\u660e",id:"stl\u5e95\u5c42\u8bf4\u660e",level:4},{value:"CCF \u7f16\u8bd1\u51fa\u9519\u539f\u56e0\uff1a \u4e0d\u5141\u8bb8C++STL\u5bb9\u5668\u5d4c\u5957\uff08\u9700\u8981\u6ee1\u8db3\u76f8\u5e94\u7684\u683c\u5f0f\uff09",id:"ccf-\u7f16\u8bd1\u51fa\u9519\u539f\u56e0-\u4e0d\u5141\u8bb8cstl\u5bb9\u5668\u5d4c\u5957\u9700\u8981\u6ee1\u8db3\u76f8\u5e94\u7684\u683c\u5f0f",level:4},{value:"algorithm",id:"algorithm",level:3},{value:"\u4e0d\u4fee\u6539\u5185\u5bb9\u7684\u5e8f\u5217\u64cd\u4f5c",id:"\u4e0d\u4fee\u6539\u5185\u5bb9\u7684\u5e8f\u5217\u64cd\u4f5c",level:4},{value:"\u4fee\u6539\u5185\u5bb9\u7684\u5e8f\u5217\u64cd\u4f5c",id:"\u4fee\u6539\u5185\u5bb9\u7684\u5e8f\u5217\u64cd\u4f5c",level:4},{value:"\u5212\u5206\u64cd\u4f5c",id:"\u5212\u5206\u64cd\u4f5c",level:4},{value:"\u6392\u5e8f\u64cd\u4f5c",id:"\u6392\u5e8f\u64cd\u4f5c",level:4},{value:"\u4e8c\u5206\u6cd5\u67e5\u627e\u64cd\u4f5c",id:"\u4e8c\u5206\u6cd5\u67e5\u627e\u64cd\u4f5c",level:4},{value:"\u96c6\u5408\u64cd\u4f5c",id:"\u96c6\u5408\u64cd\u4f5c",level:4},{value:"\u5806\u64cd\u4f5c",id:"\u5806\u64cd\u4f5c",level:4},{value:"\u6700\u5927/\u6700\u5c0f\u64cd\u4f5c",id:"\u6700\u5927\u6700\u5c0f\u64cd\u4f5c",level:4},{value:"vector",id:"vector",level:3},{value:"list",id:"list",level:3},{value:"string",id:"string",level:3},{value:"pair",id:"pair",level:3},{value:"map",id:"map",level:3},{value:"stack",id:"stack",level:3},{value:"queue",id:"queue",level:3},{value:"set",id:"set",level:3},{value:"multiset",id:"multiset",level:3},{value:"bitset",id:"bitset",level:3},{value:"\u56fe\u6a21\u677f",id:"\u56fe\u6a21\u677f",level:2},{value:"\u4e0d\u5e26\u51fa\u5165\u5ea6\u7684\u6700\u7b80\u6a21\u677f",id:"\u4e0d\u5e26\u51fa\u5165\u5ea6\u7684\u6700\u7b80\u6a21\u677f",level:3},{value:"\u5e26\u51fa\u5165\u5ea6\u7684 (2019\u63a8\u514d\u8bd5\u9898)",id:"\u5e26\u51fa\u5165\u5ea6\u7684-2019\u63a8\u514d\u8bd5\u9898",level:3},{value:"\u56fe\u7b97\u6cd5\uff1a\u627e\u51fau\u5230v\u7684\u6240\u6709\u8def\u5f84-\u90bb\u63a5\u8868",id:"\u56fe\u7b97\u6cd5\u627e\u51fau\u5230v\u7684\u6240\u6709\u8def\u5f84-\u90bb\u63a5\u8868",level:3},{value:"\u6811\u6a21\u677f",id:"\u6811\u6a21\u677f",level:2},{value:"\u6ce8\u91ca\u7248",id:"\u6ce8\u91ca\u7248",level:3},{value:"\u7b80\u5316\u7248\uff08Val As Index\uff0c\u82e5\u6570\u636e\u4e0d\u57281~N\u5185\uff0c\u5219\u53ef\u80fd\u8d8a\u754c\uff09",id:"\u7b80\u5316\u7248val-as-index\u82e5\u6570\u636e\u4e0d\u57281n\u5185\u5219\u53ef\u80fd\u8d8a\u754c",level:3},{value:"\u7b80\u5316\u7248\uff08Val Not As Index\uff0c\u53ef\u4ee5\u5b58\u4efb\u610f\u7684 Val\uff09",id:"\u7b80\u5316\u7248val-not-as-index\u53ef\u4ee5\u5b58\u4efb\u610f\u7684-val",level:3}],u={toc:s},m="wrapper";function o(t){let{components:n,...e}=t;return(0,r.kt)(m,(0,a.Z)({},u,e,{components:n,mdxType:"MDXLayout"}),(0,r.kt)("h1",{id:"\u673a\u8bd5\u6280\u5de7\u4e0estl"},"\u673a\u8bd5\u6280\u5de7\u4e0eSTL"),(0,r.kt)("admonition",{type:"important"},(0,r.kt)("p",{parentName:"admonition"},"\u8f6c\u8f7d\u81ea",(0,r.kt)("a",{parentName:"p",href:"https://space.keter.top/"},"Sonder\u7684\u7b14\u8bb0\u672c"))),(0,r.kt)("p",null,"[TOC]"),(0,r.kt)("h2",{id:"vs2018-\u5feb\u6377\u952e"},"vs2018 \u5feb\u6377\u952e"),(0,r.kt)("pre",null,(0,r.kt)("code",{parentName:"pre"},"CTRL + J \u5217\u51fa\u6210\u5458 \nCtrl+E,D \u683c\u5f0f\u5316\u5168\u90e8\u4ee3\u7801 \nCtrl+K,F \u683c\u5f0f\u5316\u9009\u4e2d\u7684\u4ee3\u7801 \nCTRL + SHIFT + E \u663e\u793a\u8d44\u6e90\u89c6\u56fe \nF12 \u8f6c\u5230\u5b9a\u4e49 \nCTRL + F12 \u8f6c\u5230\u58f0\u660e \nCTRL + ALT + J \u5bf9\u8c61\u6d4f\u89c8 \nCTRL + ALT + F1 \u5e2e\u52a9\u76ee\u5f55 \nCTRL + F1 \u52a8\u6001\u5e2e\u52a9 \nCTRL + K, CTRL + C \u6ce8\u91ca\u9009\u62e9\u7684\u4ee3\u7801 \nCTRL + K, CTRL + U \u53d6\u6d88\u5bf9\u9009\u62e9\u4ee3\u7801\u7684\u6ce8\u91ca \nCTRL + U \u8f6c\u5c0f\u5199 \nCTRL + SHIFT + U \u8f6c\u5927\u5199 \nF5 \u8fd0\u884c\u8c03\u8bd5 \nCTRL + F5 \u8fd0\u884c\u4e0d\u8c03\u8bd5 \nF10 \u8de8\u8fc7\u7a0b\u5e8f\u6267\u884c \nF11 \u5355\u6b65\u9010\u53e5\u6267\u884c \n")),(0,r.kt)("h2",{id:"\u5934\u6587\u4ef6"},"\u5934\u6587\u4ef6"),(0,r.kt)("h3",{id:"\u6807\u51c6c\u5e93"},"\u6807\u51c6c\u5e93"),(0,r.kt)("table",null,(0,r.kt)("thead",{parentName:"table"},(0,r.kt)("tr",{parentName:"thead"},(0,r.kt)("th",{parentName:"tr",align:null},"\u5934\u6587\u4ef6"),(0,r.kt)("th",{parentName:"tr",align:null},"\u8bf4\u660e"),(0,r.kt)("th",{parentName:"tr",align:null},"\u5934\u6587\u4ef6"),(0,r.kt)("th",{parentName:"tr",align:null},"\u8bf4\u660e"),(0,r.kt)("th",{parentName:"tr",align:null},"\u5934\u6587\u4ef6"),(0,r.kt)("th",{parentName:"tr",align:null},"\u8bf4\u660e"))),(0,r.kt)("tbody",{parentName:"table"},(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"assert.h"),(0,r.kt)("td",{parentName:"tr",align:null},"\u65ad\u8a00\u76f8\u5173"),(0,r.kt)("td",{parentName:"tr",align:null},"ctype.h"),(0,r.kt)("td",{parentName:"tr",align:null},"\u5b57\u7b26\u7c7b\u578b\u5224\u65ad"),(0,r.kt)("td",{parentName:"tr",align:null},"errno.h"),(0,r.kt)("td",{parentName:"tr",align:null},"\u6807\u51c6\u9519\u8bef\u673a\u5236")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"float.h"),(0,r.kt)("td",{parentName:"tr",align:null},"\u6d6e\u70b9\u9650\u5236"),(0,r.kt)("td",{parentName:"tr",align:null},"limits.h"),(0,r.kt)("td",{parentName:"tr",align:null},"\u6574\u5f62\u9650\u5236"),(0,r.kt)("td",{parentName:"tr",align:null},"locale.h"),(0,r.kt)("td",{parentName:"tr",align:null},"\u672c\u5730\u5316\u63a5\u53e3")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"math.h"),(0,r.kt)("td",{parentName:"tr",align:null},"\u6570\u5b66\u51fd\u6570"),(0,r.kt)("td",{parentName:"tr",align:null},"setjmp.h"),(0,r.kt)("td",{parentName:"tr",align:null},"\u975e\u672c\u5730\u8df3\u8f6c"),(0,r.kt)("td",{parentName:"tr",align:null},"signal.h"),(0,r.kt)("td",{parentName:"tr",align:null},"\u4fe1\u53f7\u76f8\u5173")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"stdarg.h"),(0,r.kt)("td",{parentName:"tr",align:null},"\u53ef\u53d8\u53c2\u6570\u5904\u7406"),(0,r.kt)("td",{parentName:"tr",align:null},"stddef.h"),(0,r.kt)("td",{parentName:"tr",align:null},"\u5b8f\u548c\u7c7b\u578b\u5b9a\u4e49"),(0,r.kt)("td",{parentName:"tr",align:null},"stdio.h"),(0,r.kt)("td",{parentName:"tr",align:null},"\u6807\u51c6I/O")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"stdlib.h"),(0,r.kt)("td",{parentName:"tr",align:null},"\u6807\u51c6\u5de5\u5177\u5e93"),(0,r.kt)("td",{parentName:"tr",align:null},"string.h"),(0,r.kt)("td",{parentName:"tr",align:null},"\u5b57\u7b26\u4e32\u548c\u5185\u5b58\u5904\u7406"),(0,r.kt)("td",{parentName:"tr",align:null},"time.h"),(0,r.kt)("td",{parentName:"tr",align:null},"\u65f6\u95f4\u76f8\u5173")))),(0,r.kt)("h3",{id:"c-stl"},"c++ STL"),(0,r.kt)("p",null,(0,r.kt)("strong",{parentName:"p"},"using namespace std;")),(0,r.kt)("table",null,(0,r.kt)("thead",{parentName:"table"},(0,r.kt)("tr",{parentName:"thead"},(0,r.kt)("th",{parentName:"tr",align:null},"\u5934\u6587\u4ef6"),(0,r.kt)("th",{parentName:"tr",align:null},"\u8bf4\u660e"),(0,r.kt)("th",{parentName:"tr",align:null},"\u5934\u6587\u4ef6"),(0,r.kt)("th",{parentName:"tr",align:null},"\u8bf4\u660e"),(0,r.kt)("th",{parentName:"tr",align:null},"\u5934\u6587\u4ef6"),(0,r.kt)("th",{parentName:"tr",align:null},"\u8bf4\u660e"))),(0,r.kt)("tbody",{parentName:"table"},(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"algorithm"),(0,r.kt)("td",{parentName:"tr",align:null},"\u901a\u7528\u7b97\u6cd5"),(0,r.kt)("td",{parentName:"tr",align:null},"deque"),(0,r.kt)("td",{parentName:"tr",align:null},"\u53cc\u7aef\u961f\u5217"),(0,r.kt)("td",{parentName:"tr",align:null},"vector"),(0,r.kt)("td",{parentName:"tr",align:null},"\u5411\u91cf")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"iterator"),(0,r.kt)("td",{parentName:"tr",align:null},"\u8fed\u4ee3\u5668"),(0,r.kt)("td",{parentName:"tr",align:null},"stack"),(0,r.kt)("td",{parentName:"tr",align:null},"\u6808"),(0,r.kt)("td",{parentName:"tr",align:null},"map"),(0,r.kt)("td",{parentName:"tr",align:null},"\u56fe\uff08\u952e\u503c\u5bf9\uff09")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"list"),(0,r.kt)("td",{parentName:"tr",align:null},"\u5217\u8868"),(0,r.kt)("td",{parentName:"tr",align:null},"string"),(0,r.kt)("td",{parentName:"tr",align:null},"\u5b57\u7b26\u4e32"),(0,r.kt)("td",{parentName:"tr",align:null},"set"),(0,r.kt)("td",{parentName:"tr",align:null},"\u96c6\u5408")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"queue"),(0,r.kt)("td",{parentName:"tr",align:null},"\u961f\u5217"),(0,r.kt)("td",{parentName:"tr",align:null},"bitset"),(0,r.kt)("td",{parentName:"tr",align:null},"bit\u7c7b"),(0,r.kt)("td",{parentName:"tr",align:null},"numeric"),(0,r.kt)("td",{parentName:"tr",align:null},"\u6570\u503c\u7b97\u6cd5")))),(0,r.kt)("h3",{id:"\u5e38\u7528\u5934"},"\u5e38\u7528\u5934"),(0,r.kt)("pre",null,(0,r.kt)("code",{parentName:"pre",className:"language-c++"},"#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include\nusing namespace std;\n")),(0,r.kt)("h2",{id:"\u5e38\u7528\u5b8f\u5b9a\u4e49"},"\u5e38\u7528\u5b8f\u5b9a\u4e49"),(0,r.kt)("pre",null,(0,r.kt)("code",{parentName:"pre",className:"language-c++"},"//\u6c42\u6700\u5927\u503c\u548c\u6700\u5c0f\u503c\n#define MAX(x,y) (((x)>(y)) ? (x) : (y))\n#define MIN(x,y) (((x) < (y)) ? (x) : (y))\n\n//\u53d6\u4f59\n#define mod(x) ((x)%MOD)\n\n//for\u5faa\u73af\n#define FOR(i,f_start,f_end) for(int i=f_start;i<=f_end;++i) \n\n//\u8fd4\u56de\u6570\u7ec4\u5143\u7d20\u7684\u4e2a\u6570\n#define ARR_SIZE(a) (sizeof((a))/sizeof((a[0])))\n\n//\u521d\u59cb\u5316\u6570\u7ec4\n#define MT(x,i) memset(x,i,sizeof(x))\n#define MEM(a,b) memset((a),(b),sizeof(a))\n\n//\u7b26\u53f7\u91cd\u5b9a\u4e49\n#define LL long long\n#define ull unsigned long long\n#define pii pair\n\n//\u5e38\u89c1\u5e38\u6570\n#define PI acos(-1.0)\n#define eps 1e-12\n#define INF 0x3f3f3f3f //int\u6700\u5927\u503c\nconst int INF_INT = 2147483647;\nconst ll INF_LL = 9223372036854775807LL;\nconst ull INF_ULL = 18446744073709551615Ull;\nconst ll P = 92540646808111039LL;\nconst ll maxn = 1e5 + 10, MOD = 1e9 + 7;\nconst int Move[4][2] = {-1,0,1,0,0,1,0,-1};\nconst int Move_[8][2] = {-1,-1,-1,0,-1,1,0,-1,0,1,1,-1,1,0,1,1};\n\n")),(0,r.kt)("h2",{id:"\u7ed3\u6784\u4f53"},"\u7ed3\u6784\u4f53"),(0,r.kt)("h3",{id:"\u5b9a\u4e49"},"\u5b9a\u4e49"),(0,r.kt)("pre",null,(0,r.kt)("code",{parentName:"pre",className:"language-c++"},"struct InitMember\n{\n int first\uff1b\n double second\uff1b\n char* third\uff1b\n float four;\n};\n")),(0,r.kt)("h3",{id:"\u521d\u59cb\u5316"},"\u521d\u59cb\u5316"),(0,r.kt)("h4",{id:"\u65b9\u6cd5\u4e00\u5b9a\u4e49\u65f6\u8d4b\u503c"},"\u65b9\u6cd5\u4e00\uff1a\u5b9a\u4e49\u65f6\u8d4b\u503c"),(0,r.kt)("pre",null,(0,r.kt)("code",{parentName:"pre",className:"language-c++"},'struct InitMember test = {-10,3.141590\uff0c"method one"\uff0c0.25}\uff1b\n')),(0,r.kt)("h4",{id:"\u65b9\u6cd5\u4e8c\u5b9a\u4e49\u540e\u9010\u4e2a\u8d4b\u503c"},"\u65b9\u6cd5\u4e8c\uff1a\u5b9a\u4e49\u540e\u9010\u4e2a\u8d4b\u503c"),(0,r.kt)("pre",null,(0,r.kt)("code",{parentName:"pre",className:"language-c++"},'struct InitMember test\uff1b\n\ntest.first = -10;\ntest.second = 3.141590;\ntest.third = "method two";\ntest.four = 0.25;\n')),(0,r.kt)("h4",{id:"\u65b9\u6cd5\u4e09\u5b9a\u4e49\u65f6\u4e71\u5e8f\u8d4b\u503cc\u98ce\u683c"},"\u65b9\u6cd5\u4e09\uff1a\u5b9a\u4e49\u65f6\u4e71\u5e8f\u8d4b\u503c\uff08C++\u98ce\u683c\uff09"),(0,r.kt)("pre",null,(0,r.kt)("code",{parentName:"pre",className:"language-c++"},'struct InitMember test = {\n second\uff1a3.141590,\n third\uff1a"method three",\n first\uff1a-10,\n four\uff1a0.25\n};\n')),(0,r.kt)("h4",{id:"\u65b9\u6cd5\u56db\u6784\u9020\u51fd\u6570"},"\u65b9\u6cd5\u56db\uff1a\u6784\u9020\u51fd\u6570"),(0,r.kt)("pre",null,(0,r.kt)("code",{parentName:"pre"},"//\u5b9a\u4e49\u56fe\u7684\u5b9a\u70b9\ntypedef struct Vertex {\n int id,inDegree,outDegree;\n vector connectors; //\u5b58\u50a8\u8282\u70b9\u7684\u540e\u7eed\u8fde\u63a5\u9876\u70b9\u7f16\u53f7\n Vertex() : id(-1),inDegree(0),outDegree(0) {}\n Vertex(int nid) : id(nid),inDegree(0),outDegree(0) {}\n} Vertex;\n \n//\u5b9a\u4e49Graph\u7684\u90bb\u63a5\u8868\u8868\u793a\ntypedef struct Graph {\n vector vertexs; //\u5b58\u50a8\u5b9a\u70b9\u4fe1\u606f\n int nVertexs; //\u8ba1\u6570\uff1a\u90bb\u63a5\u6570\n bool isDAG; //\u6807\u5fd7\uff1a\u662f\u6709\u5411\u56fe\u5417\n \n Graph(int n, bool isDAG) : nVertexs(n), isDAG(isDAG) { vertexs.resize(n); }\n Graph() : nVertexs(1), isDAG(1) { vertexs.resize(1); }\n //\u5411\u56fe\u4e2d\u6dfb\u52a0\u8fb9\n bool addEdge(int id1, int id2) {\n ...\n ...\n ...\n return true;\n }\n} Graph;\n\nGraph g(8, false);\n")),(0,r.kt)("h3",{id:"\u8fd0\u7b97\u7b26\u91cd\u8f7d"},"\u8fd0\u7b97\u7b26\u91cd\u8f7d"),(0,r.kt)("pre",null,(0,r.kt)("code",{parentName:"pre",className:"language-c++"},"typedef struct{int id;int h;} node;\nbool operator <(const node& a,const node & b){return (a.h)<(b.h);}\n")),(0,r.kt)("h2",{id:"cnew\u7684\u4f7f\u7528"},"c++new\u7684\u4f7f\u7528"),(0,r.kt)("h3",{id:"\u5e38\u89c4"},"\u5e38\u89c4"),(0,r.kt)("pre",null,(0,r.kt)("code",{parentName:"pre",className:"language-c++"},"int *x = new int; //\u5f00\u8f9f\u4e00\u4e2a\u5b58\u653e\u6574\u6570\u7684\u5b58\u50a8\u7a7a\u95f4\uff0c\u8fd4\u56de\u4e00\u4e2a\u6307\u5411\u8be5\u5b58\u50a8\u7a7a\u95f4\u7684\u5730\u5740(\u5373\u6307\u9488)\nint *a = new int(100); //\u5f00\u8f9f\u4e00\u4e2a\u5b58\u653e\u6574\u6570\u7684\u7a7a\u95f4\uff0c\u5e76\u6307\u5b9a\u8be5\u6574\u6570\u7684\u521d\u503c\u4e3a100\uff0c\u8fd4\u56de\u4e00\u4e2a\u6307\u5411\u8be5\u5b58\u50a8\u7a7a\u95f4\u7684\u5730\u5740\nchar *b = new char[10]; //\u5f00\u8f9f\u4e00\u4e2a\u5b58\u653e\u5b57\u7b26\u6570\u7ec4(\u5305\u62ec10\u4e2a\u5143\u7d20)\u7684\u7a7a\u95f4\uff0c\u8fd4\u56de\u9996\u5143\u7d20\u7684\u5730\u5740\nfloat *p=new float (3.14159);//\u5f00\u8f9f\u4e00\u4e2a\u5b58\u653e\u5355\u7cbe\u5ea6\u6570\u7684\u7a7a\u95f4\uff0c\u5e76\u6307\u5b9a\u8be5\u5b9e\u6570\u7684\u521d\u503c\u4e3a//3.14159\uff0c\u5c06\u8fd4\u56de\u7684\u8be5\u7a7a\u95f4\u7684\u5730\u5740\u8d4b\u7ed9\u6307\u9488\u53d8\u91cfp\n")),(0,r.kt)("h3",{id:"\u52a8\u6001\u7533\u8bf7\u5217\u5927\u5c0f\u56fa\u5b9a\u7684\u4e8c\u7ef4\u6570\u7ec4"},"\u52a8\u6001\u7533\u8bf7\u5217\u5927\u5c0f\u56fa\u5b9a\u7684\u4e8c\u7ef4\u6570\u7ec4"),(0,r.kt)("pre",null,(0,r.kt)("code",{parentName:"pre",className:"language-c++"},"//\u5217\u503c\u56fa\u5b9a\nconst int MAXCOL = 3;\ncin>>row;\n//\u7533\u8bf7\u4e00\u7ef4\u6570\u636e\u5e76\u5c06\u5176\u8f6c\u6210\u4e8c\u7ef4\u6570\u7ec4\u6307\u9488\nint *pp_arr = new int[nRow * MAXCOL];\nint (*p)[MAXCOL] = (int(*)[MAXCOL])pp_arr;\n//\u6b64\u65f6p[i][j]\u5c31\u53ef\u6b63\u5e38\u4f7f\u7528\n")),(0,r.kt)("h3",{id:"\u52a8\u6001\u7533\u8bf7\u5927\u5c0f\u4e0d\u56fa\u5b9a\u7684\u4e8c\u7ef4\u6570\u7ec4"},"\u52a8\u6001\u7533\u8bf7\u5927\u5c0f\u4e0d\u56fa\u5b9a\u7684\u4e8c\u7ef4\u6570\u7ec4"),(0,r.kt)("pre",null,(0,r.kt)("code",{parentName:"pre",className:"language-c++"},"\ncin>>row>>col;\nint **p = new int*[row];\nfor (int i = 0; i < row; i ++)\n{\n p[i] = new int[col];\n}\n")),(0,r.kt)("h2",{id:"\u5e38\u7528stl"},"\u5e38\u7528STL"),(0,r.kt)("blockquote",null,(0,r.kt)("p",{parentName:"blockquote"},"\u53c2\u8003\uff1a")),(0,r.kt)("p",null,(0,r.kt)("a",{parentName:"p",href:"https://blog.csdn.net/f_zyj/article/details/51594851"},"https://blog.csdn.net/f_zyj/article/details/51594851"),(0,r.kt)("br",{parentName:"p"}),"\n",(0,r.kt)("a",{parentName:"p",href:"https://download.csdn.net/download/f_zyj/9988653"},"https://download.csdn.net/download/f_zyj/9988653")),(0,r.kt)("h3",{id:"\u7b80\u8ff0"},"\u7b80\u8ff0"),(0,r.kt)("h4",{id:"stl\u5e95\u5c42\u8bf4\u660e"},"STL\u5e95\u5c42\u8bf4\u660e"),(0,r.kt)("p",null,"C++ STL \u7684\u5b9e\u73b0\uff1a"),(0,r.kt)("pre",null,(0,r.kt)("code",{parentName:"pre"},"1.vector \u5e95\u5c42\u6570\u636e\u7ed3\u6784\u4e3a\u6570\u7ec4 \uff0c\u652f\u6301\u5feb\u901f\u968f\u673a\u8bbf\u95ee\n\n2.list \u5e95\u5c42\u6570\u636e\u7ed3\u6784\u4e3a\u53cc\u5411\u94fe\u8868\uff0c\u652f\u6301\u5feb\u901f\u589e\u5220\n\n3.deque \u5e95\u5c42\u6570\u636e\u7ed3\u6784\u4e3a\u4e00\u4e2a\u4e2d\u592e\u63a7\u5236\u5668\u548c\u591a\u4e2a\u7f13\u51b2\u533a\uff0c\u8be6\u7ec6\u89c1STL\u6e90\u7801\u5256\u6790P146\uff0c\u652f\u6301\u9996\u5c3e\uff08\u4e2d\u95f4\u4e0d\u80fd\uff09\u5feb\u901f\u589e\u5220\uff0c\u4e5f\u652f\u6301\u968f\u673a\u8bbf\u95ee\ndeque\u662f\u4e00\u4e2a\u53cc\u7aef\u961f\u5217(double-ended queue)\uff0c\u4e5f\u662f\u5728\u5806\u4e2d\u4fdd\u5b58\u5185\u5bb9\u7684.\u5b83\u7684\u4fdd\u5b58\u5f62\u5f0f\u5982\u4e0b:\n[\u58061] --\x3e [\u58062] --\x3e[\u58063] --\x3e ...\n\u6bcf\u4e2a\u5806\u4fdd\u5b58\u597d\u51e0\u4e2a\u5143\u7d20,\u7136\u540e\u5806\u548c\u5806\u4e4b\u95f4\u6709\u6307\u9488\u6307\u5411,\u770b\u8d77\u6765\u50cf\u662flist\u548cvector\u7684\u7ed3\u5408\u54c1.\n\n4.stack \u5e95\u5c42\u4e00\u822c\u7528list\u6216deque\u5b9e\u73b0\uff0c\u5c01\u95ed\u5934\u90e8\u5373\u53ef\uff0c\u4e0d\u7528vector\u7684\u539f\u56e0\u5e94\u8be5\u662f\u5bb9\u91cf\u5927\u5c0f\u6709\u9650\u5236\uff0c\u6269\u5bb9\u8017\u65f6\n\n5.queue \u5e95\u5c42\u4e00\u822c\u7528list\u6216deque\u5b9e\u73b0\uff0c\u5c01\u95ed\u5934\u90e8\u5373\u53ef\uff0c\u4e0d\u7528vector\u7684\u539f\u56e0\u5e94\u8be5\u662f\u5bb9\u91cf\u5927\u5c0f\u6709\u9650\u5236\uff0c\u6269\u5bb9\u8017\u65f6\n\n\uff08stack\u548cqueue\u5176\u5b9e\u662f\u9002\u914d\u5668,\u800c\u4e0d\u53eb\u5bb9\u5668\uff0c\u56e0\u4e3a\u662f\u5bf9\u5bb9\u5668\u7684\u518d\u5c01\u88c5\uff09\n\n6.priority_queue \u7684\u5e95\u5c42\u6570\u636e\u7ed3\u6784\u4e00\u822c\u4e3avector\u4e3a\u5e95\u5c42\u5bb9\u5668\uff0c\u5806heap\u4e3a\u5904\u7406\u89c4\u5219\u6765\u7ba1\u7406\u5e95\u5c42\u5bb9\u5668\u5b9e\u73b0\n\n7.set \u5e95\u5c42\u6570\u636e\u7ed3\u6784\u4e3a\u7ea2\u9ed1\u6811\uff0c\u6709\u5e8f\uff0c\u4e0d\u91cd\u590d\n\n8.multiset \u5e95\u5c42\u6570\u636e\u7ed3\u6784\u4e3a\u7ea2\u9ed1\u6811\uff0c\u6709\u5e8f\uff0c\u53ef\u91cd\u590d \n\n9.map \u5e95\u5c42\u6570\u636e\u7ed3\u6784\u4e3a\u7ea2\u9ed1\u6811\uff0c\u6709\u5e8f\uff0c\u4e0d\u91cd\u590d\n\n10.multimap \u5e95\u5c42\u6570\u636e\u7ed3\u6784\u4e3a\u7ea2\u9ed1\u6811\uff0c\u6709\u5e8f\uff0c\u53ef\u91cd\u590d\n\n11.hash_set \u5e95\u5c42\u6570\u636e\u7ed3\u6784\u4e3ahash\u8868\uff0c\u65e0\u5e8f\uff0c\u4e0d\u91cd\u590d\n\n12.hash_multiset \u5e95\u5c42\u6570\u636e\u7ed3\u6784\u4e3ahash\u8868\uff0c\u65e0\u5e8f\uff0c\u53ef\u91cd\u590d \n\n13.hash_map \u5e95\u5c42\u6570\u636e\u7ed3\u6784\u4e3ahash\u8868\uff0c\u65e0\u5e8f\uff0c\u4e0d\u91cd\u590d\n\n14.hash_multimap \u5e95\u5c42\u6570\u636e\u7ed3\u6784\u4e3ahash\u8868\uff0c\u65e0\u5e8f\uff0c\u53ef\u91cd\u590d \n")),(0,r.kt)("h4",{id:"ccf-\u7f16\u8bd1\u51fa\u9519\u539f\u56e0-\u4e0d\u5141\u8bb8cstl\u5bb9\u5668\u5d4c\u5957\u9700\u8981\u6ee1\u8db3\u76f8\u5e94\u7684\u683c\u5f0f"},"CCF \u7f16\u8bd1\u51fa\u9519\u539f\u56e0\uff1a \u4e0d\u5141\u8bb8C++STL\u5bb9\u5668\u5d4c\u5957\uff08\u9700\u8981\u6ee1\u8db3\u76f8\u5e94\u7684\u683c\u5f0f\uff09"),(0,r.kt)("p",null,"\u5c31\u662f\u8981\u5728\u540e\u9762\u7684\u201c>\u201d\u4e4b\u95f4\uff0c\u5fc5\u987b\u5f97\u6709\u4e00\u4e2a\u7a7a\u683c\uff0c\u5982\u679c\u6709\u591a\u5c42\uff0c\u90a3\u6bcf\u5c42\u90fd\u5f97\u6709\u4e00\u4e2a\u7a7a\u683c\u3002"),(0,r.kt)("pre",null,(0,r.kt)("code",{parentName:"pre",className:"language-c++"},"map > user;\n")),(0,r.kt)("h3",{id:"algorithm"},"algorithm"),(0,r.kt)("p",null,(0,r.kt)("strong",{parentName:"p"},"\u5934\u6587\u4ef6\uff1algorithm")),(0,r.kt)("p",null,"\u51fd\u6570\u53c2\u6570\uff0c\u8fd4\u56de\u503c\u4ee5\u53ca\u5177\u4f53\u7684\u4f7f\u7528\u65b9\u6cd5\u8bf7\u81ea\u884c\u53bb\u5934\u6587\u4ef6\u627e\u5b9a\u4e49\uff01\uff01\uff01"),(0,r.kt)("h4",{id:"\u4e0d\u4fee\u6539\u5185\u5bb9\u7684\u5e8f\u5217\u64cd\u4f5c"},"\u4e0d\u4fee\u6539\u5185\u5bb9\u7684\u5e8f\u5217\u64cd\u4f5c"),(0,r.kt)("table",null,(0,r.kt)("thead",{parentName:"table"},(0,r.kt)("tr",{parentName:"thead"},(0,r.kt)("th",{parentName:"tr",align:null},"\u51fd\u6570"),(0,r.kt)("th",{parentName:"tr",align:null},"\u8bf4\u660e"))),(0,r.kt)("tbody",{parentName:"table"},(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"adjacent_find"),(0,r.kt)("td",{parentName:"tr",align:null},"\u67e5\u627e\u4e24\u4e2a\u76f8\u90bb\uff08Adjacent\uff09\u7684\u7b49\u4ef7\uff08Identical\uff09\u5143\u7d20")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"all_ofC++11"),(0,r.kt)("td",{parentName:"tr",align:null},"\u68c0\u6d4b\u5728\u7ed9\u5b9a\u8303\u56f4\u4e2d\u662f\u5426\u6240\u6709\u5143\u7d20\u90fd\u6ee1\u8db3\u7ed9\u5b9a\u7684\u6761\u4ef6")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"any_ofC++11"),(0,r.kt)("td",{parentName:"tr",align:null},"\u68c0\u6d4b\u5728\u7ed9\u5b9a\u8303\u56f4\u4e2d\u662f\u5426\u5b58\u5728\u5143\u7d20\u6ee1\u8db3\u7ed9\u5b9a\u6761\u4ef6")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"count"),(0,r.kt)("td",{parentName:"tr",align:null},"\u8fd4\u56de\u503c\u7b49\u4ef7\u4e8e\u7ed9\u5b9a\u503c\u7684\u5143\u7d20\u7684\u4e2a\u6570")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"count_if"),(0,r.kt)("td",{parentName:"tr",align:null},"\u8fd4\u56de\u503c\u6ee1\u8db3\u7ed9\u5b9a\u6761\u4ef6\u7684\u5143\u7d20\u7684\u4e2a\u6570")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"equal"),(0,r.kt)("td",{parentName:"tr",align:null},"\u8fd4\u56de\u4e24\u4e2a\u8303\u56f4\u662f\u5426\u76f8\u7b49")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"find"),(0,r.kt)("td",{parentName:"tr",align:null},"\u8fd4\u56de\u7b2c\u4e00\u4e2a\u503c\u7b49\u4ef7\u4e8e\u7ed9\u5b9a\u503c\u7684\u5143\u7d20")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"find_end"),(0,r.kt)("td",{parentName:"tr",align:null},"\u67e5\u627e\u8303\u56f4",(0,r.kt)("em",{parentName:"td"},"A"),"\u4e2d\u4e0e\u8303\u56f4",(0,r.kt)("em",{parentName:"td"},"B"),"\u7b49\u4ef7\u7684\u5b50\u8303\u56f4\u6700\u540e\u51fa\u73b0\u7684\u4f4d\u7f6e")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"find_first_of"),(0,r.kt)("td",{parentName:"tr",align:null},"\u67e5\u627e\u8303\u56f4",(0,r.kt)("em",{parentName:"td"},"A"),"\u4e2d\u7b2c\u4e00\u4e2a\u4e0e\u8303\u56f4",(0,r.kt)("em",{parentName:"td"},"B"),"\u4e2d\u4efb\u4e00\u5143\u7d20\u7b49\u4ef7\u7684\u5143\u7d20\u7684\u4f4d\u7f6e")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"find_if"),(0,r.kt)("td",{parentName:"tr",align:null},"\u8fd4\u56de\u7b2c\u4e00\u4e2a\u503c\u6ee1\u8db3\u7ed9\u5b9a\u6761\u4ef6\u7684\u5143\u7d20")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"find_if_notC++11"),(0,r.kt)("td",{parentName:"tr",align:null},"\u8fd4\u56de\u7b2c\u4e00\u4e2a\u503c\u4e0d\u6ee1\u8db3\u7ed9\u5b9a\u6761\u4ef6\u7684\u5143\u7d20")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"for_each"),(0,r.kt)("td",{parentName:"tr",align:null},"\u5bf9\u8303\u56f4\u4e2d\u7684\u6bcf\u4e2a\u5143\u7d20\u8c03\u7528\u6307\u5b9a\u51fd\u6570")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"mismatch"),(0,r.kt)("td",{parentName:"tr",align:null},"\u8fd4\u56de\u4e24\u4e2a\u8303\u56f4\u4e2d\u7b2c\u4e00\u4e2a\u5143\u7d20\u4e0d\u7b49\u4ef7\u7684\u4f4d\u7f6e")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"none_ofC++11"),(0,r.kt)("td",{parentName:"tr",align:null},"\u68c0\u6d4b\u5728\u7ed9\u5b9a\u8303\u56f4\u4e2d\u662f\u5426\u4e0d\u5b58\u5728\u5143\u7d20\u6ee1\u8db3\u7ed9\u5b9a\u7684\u6761\u4ef6")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"search"),(0,r.kt)("td",{parentName:"tr",align:null},"\u5728\u8303\u56f4",(0,r.kt)("em",{parentName:"td"},"A"),"\u4e2d\u67e5\u627e\u7b2c\u4e00\u4e2a\u4e0e\u8303\u56f4",(0,r.kt)("em",{parentName:"td"},"B"),"\u7b49\u4ef7\u7684\u5b50\u8303\u56f4\u7684\u4f4d\u7f6e")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"search_n"),(0,r.kt)("td",{parentName:"tr",align:null},"\u5728\u7ed9\u5b9a\u8303\u56f4\u4e2d\u67e5\u627e\u7b2c\u4e00\u4e2a\u8fde\u7eed",(0,r.kt)("em",{parentName:"td"},"n"),"\u4e2a\u5143\u7d20\u90fd\u7b49\u4ef7\u4e8e\u7ed9\u5b9a\u503c\u7684\u5b50\u8303\u56f4\u7684\u4f4d\u7f6e")))),(0,r.kt)("h4",{id:"\u4fee\u6539\u5185\u5bb9\u7684\u5e8f\u5217\u64cd\u4f5c"},"\u4fee\u6539\u5185\u5bb9\u7684\u5e8f\u5217\u64cd\u4f5c"),(0,r.kt)("table",null,(0,r.kt)("thead",{parentName:"table"},(0,r.kt)("tr",{parentName:"thead"},(0,r.kt)("th",{parentName:"tr",align:null},"\u51fd\u6570"),(0,r.kt)("th",{parentName:"tr",align:null},"\u8bf4\u660e"))),(0,r.kt)("tbody",{parentName:"table"},(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"copy"),(0,r.kt)("td",{parentName:"tr",align:null},"\u5c06\u4e00\u4e2a\u8303\u56f4\u4e2d\u7684\u5143\u7d20\u62f7\u8d1d\u5230\u65b0\u7684\u4f4d\u7f6e\u5904")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"copy_backward"),(0,r.kt)("td",{parentName:"tr",align:null},"\u5c06\u4e00\u4e2a\u8303\u56f4\u4e2d\u7684\u5143\u7d20\u6309\u9006\u5e8f\u62f7\u8d1d\u5230\u65b0\u7684\u4f4d\u7f6e\u5904")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"copy_ifC++11"),(0,r.kt)("td",{parentName:"tr",align:null},"\u5c06\u4e00\u4e2a\u8303\u56f4\u4e2d\u6ee1\u8db3\u7ed9\u5b9a\u6761\u4ef6\u7684\u5143\u7d20\u62f7\u8d1d\u5230\u65b0\u7684\u4f4d\u7f6e\u5904")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"copy_nC++11"),(0,r.kt)("td",{parentName:"tr",align:null},"\u62f7\u8d1d n \u4e2a\u5143\u7d20\u5230\u65b0\u7684\u4f4d\u7f6e\u5904")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"fill"),(0,r.kt)("td",{parentName:"tr",align:null},"\u5c06\u4e00\u4e2a\u8303\u56f4\u7684\u5143\u7d20\u8d4b\u503c\u4e3a\u7ed9\u5b9a\u503c")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"fill_n"),(0,r.kt)("td",{parentName:"tr",align:null},"\u5c06\u67d0\u4e2a\u4f4d\u7f6e\u5f00\u59cb\u7684 n \u4e2a\u5143\u7d20\u8d4b\u503c\u4e3a\u7ed9\u5b9a\u503c")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"generate"),(0,r.kt)("td",{parentName:"tr",align:null},"\u5c06\u4e00\u4e2a\u51fd\u6570\u7684\u6267\u884c\u7ed3\u679c\u4fdd\u5b58\u5230\u6307\u5b9a\u8303\u56f4\u7684\u5143\u7d20\u4e2d\uff0c\u7528\u4e8e\u6279\u91cf\u8d4b\u503c\u8303\u56f4\u4e2d\u7684\u5143\u7d20")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"generate_n"),(0,r.kt)("td",{parentName:"tr",align:null},"\u5c06\u4e00\u4e2a\u51fd\u6570\u7684\u6267\u884c\u7ed3\u679c\u4fdd\u5b58\u5230\u6307\u5b9a\u4f4d\u7f6e\u5f00\u59cb\u7684 n \u4e2a\u5143\u7d20\u4e2d")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"iter_swap"),(0,r.kt)("td",{parentName:"tr",align:null},"\u4ea4\u6362\u4e24\u4e2a\u8fed\u4ee3\u5668\uff08Iterator\uff09\u6307\u5411\u7684\u5143\u7d20")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"moveC++11"),(0,r.kt)("td",{parentName:"tr",align:null},"\u5c06\u4e00\u4e2a\u8303\u56f4\u4e2d\u7684\u5143\u7d20\u79fb\u52a8\u5230\u65b0\u7684\u4f4d\u7f6e\u5904")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"move_backwardC++11"),(0,r.kt)("td",{parentName:"tr",align:null},"\u5c06\u4e00\u4e2a\u8303\u56f4\u4e2d\u7684\u5143\u7d20\u6309\u9006\u5e8f\u79fb\u52a8\u5230\u65b0\u7684\u4f4d\u7f6e\u5904")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"random_shuffle"),(0,r.kt)("td",{parentName:"tr",align:null},"\u968f\u673a\u6253\u4e71\u6307\u5b9a\u8303\u56f4\u4e2d\u7684\u5143\u7d20\u7684\u4f4d\u7f6e")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"remove"),(0,r.kt)("td",{parentName:"tr",align:null},"\u5c06\u4e00\u4e2a\u8303\u56f4\u4e2d\u503c\u7b49\u4ef7\u4e8e\u7ed9\u5b9a\u503c\u7684\u5143\u7d20\u5220\u9664")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"remove_if"),(0,r.kt)("td",{parentName:"tr",align:null},"\u5c06\u4e00\u4e2a\u8303\u56f4\u4e2d\u503c\u6ee1\u8db3\u7ed9\u5b9a\u6761\u4ef6\u7684\u5143\u7d20\u5220\u9664")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"remove_copy"),(0,r.kt)("td",{parentName:"tr",align:null},"\u62f7\u8d1d\u4e00\u4e2a\u8303\u56f4\u7684\u5143\u7d20\uff0c\u5c06\u5176\u4e2d\u503c\u7b49\u4ef7\u4e8e\u7ed9\u5b9a\u503c\u7684\u5143\u7d20\u5220\u9664")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"remove_copy_if"),(0,r.kt)("td",{parentName:"tr",align:null},"\u62f7\u8d1d\u4e00\u4e2a\u8303\u56f4\u7684\u5143\u7d20\uff0c\u5c06\u5176\u4e2d\u503c\u6ee1\u8db3\u7ed9\u5b9a\u6761\u4ef6\u7684\u5143\u7d20\u5220\u9664")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"replace"),(0,r.kt)("td",{parentName:"tr",align:null},"\u5c06\u4e00\u4e2a\u8303\u56f4\u4e2d\u503c\u7b49\u4ef7\u4e8e\u7ed9\u5b9a\u503c\u7684\u5143\u7d20\u8d4b\u503c\u4e3a\u65b0\u7684\u503c")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"replace_copy"),(0,r.kt)("td",{parentName:"tr",align:null},"\u62f7\u8d1d\u4e00\u4e2a\u8303\u56f4\u7684\u5143\u7d20\uff0c\u5c06\u5176\u4e2d\u503c\u7b49\u4ef7\u4e8e\u7ed9\u5b9a\u503c\u7684\u5143\u7d20\u8d4b\u503c\u4e3a\u65b0\u7684\u503c")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"replace_copy_if"),(0,r.kt)("td",{parentName:"tr",align:null},"\u62f7\u8d1d\u4e00\u4e2a\u8303\u56f4\u7684\u5143\u7d20\uff0c\u5c06\u5176\u4e2d\u503c\u6ee1\u8db3\u7ed9\u5b9a\u6761\u4ef6\u7684\u5143\u7d20\u8d4b\u503c\u4e3a\u65b0\u7684\u503c")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"replace_if"),(0,r.kt)("td",{parentName:"tr",align:null},"\u5c06\u4e00\u4e2a\u8303\u56f4\u4e2d\u503c\u6ee1\u8db3\u7ed9\u5b9a\u6761\u4ef6\u7684\u5143\u7d20\u8d4b\u503c\u4e3a\u65b0\u7684\u503c")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"reverse"),(0,r.kt)("td",{parentName:"tr",align:null},"\u53cd\u8f6c\u6392\u5e8f\u6307\u5b9a\u8303\u56f4\u4e2d\u7684\u5143\u7d20")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"reverse_copy"),(0,r.kt)("td",{parentName:"tr",align:null},"\u62f7\u8d1d\u6307\u5b9a\u8303\u56f4\u7684\u53cd\u8f6c\u6392\u5e8f\u7ed3\u679c")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"rotate"),(0,r.kt)("td",{parentName:"tr",align:null},"\u5faa\u73af\u79fb\u52a8\u6307\u5b9a\u8303\u56f4\u4e2d\u7684\u5143\u7d20")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"rotate_copy"),(0,r.kt)("td",{parentName:"tr",align:null},"\u62f7\u8d1d\u6307\u5b9a\u8303\u56f4\u7684\u5faa\u73af\u79fb\u52a8\u7ed3\u679c")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"shuffleC++11"),(0,r.kt)("td",{parentName:"tr",align:null},"\u7528\u6307\u5b9a\u7684\u968f\u673a\u6570\u5f15\u64ce\u968f\u673a\u6253\u4e71\u6307\u5b9a\u8303\u56f4\u4e2d\u7684\u5143\u7d20\u7684\u4f4d\u7f6e")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"swap"),(0,r.kt)("td",{parentName:"tr",align:null},"\u4ea4\u6362\u4e24\u4e2a\u5bf9\u8c61\u7684\u503c")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"swap_ranges"),(0,r.kt)("td",{parentName:"tr",align:null},"\u4ea4\u6362\u4e24\u4e2a\u8303\u56f4\u7684\u5143\u7d20")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"transform"),(0,r.kt)("td",{parentName:"tr",align:null},"\u5bf9\u6307\u5b9a\u8303\u56f4\u4e2d\u7684\u6bcf\u4e2a\u5143\u7d20\u8c03\u7528\u67d0\u4e2a\u51fd\u6570\u4ee5\u6539\u53d8\u5143\u7d20\u7684\u503c")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"unique"),(0,r.kt)("td",{parentName:"tr",align:null},"\u5220\u9664\u6307\u5b9a\u8303\u56f4\u4e2d\u7684\u6240\u6709\u8fde\u7eed\u91cd\u590d\u5143\u7d20\uff0c\u4ec5\u4ec5\u7559\u4e0b\u6bcf\u7ec4\u7b49\u503c\u5143\u7d20\u4e2d\u7684\u7b2c\u4e00\u4e2a\u5143\u7d20\u3002")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"unique_copy"),(0,r.kt)("td",{parentName:"tr",align:null},"\u62f7\u8d1d\u6307\u5b9a\u8303\u56f4\u7684\u552f\u4e00\u5316\uff08\u53c2\u8003\u4e0a\u8ff0\u7684 unique\uff09\u7ed3\u679c")))),(0,r.kt)("h4",{id:"\u5212\u5206\u64cd\u4f5c"},"\u5212\u5206\u64cd\u4f5c"),(0,r.kt)("table",null,(0,r.kt)("thead",{parentName:"table"},(0,r.kt)("tr",{parentName:"thead"},(0,r.kt)("th",{parentName:"tr",align:null},"\u51fd\u6570"),(0,r.kt)("th",{parentName:"tr",align:null},"\u8bf4\u660e"))),(0,r.kt)("tbody",{parentName:"table"},(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"is_partitionedC++11"),(0,r.kt)("td",{parentName:"tr",align:null},"\u68c0\u6d4b\u67d0\u4e2a\u8303\u56f4\u662f\u5426\u6309\u6307\u5b9a\u8c13\u8bcd\uff08Predicate\uff09\u5212\u5206\u8fc7")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"partition"),(0,r.kt)("td",{parentName:"tr",align:null},"\u5c06\u67d0\u4e2a\u8303\u56f4\u5212\u5206\u4e3a\u4e24\u7ec4")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"partition_copyC++11"),(0,r.kt)("td",{parentName:"tr",align:null},"\u62f7\u8d1d\u6307\u5b9a\u8303\u56f4\u7684\u5212\u5206\u7ed3\u679c")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"partition_pointC++11"),(0,r.kt)("td",{parentName:"tr",align:null},"\u8fd4\u56de\u88ab\u5212\u5206\u8303\u56f4\u7684\u5212\u5206\u70b9")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"stable_partition"),(0,r.kt)("td",{parentName:"tr",align:null},"\u7a33\u5b9a\u5212\u5206\uff0c\u4e24\u7ec4\u5143\u7d20\u5404\u7ef4\u6301\u76f8\u5bf9\u987a\u5e8f")))),(0,r.kt)("h4",{id:"\u6392\u5e8f\u64cd\u4f5c"},"\u6392\u5e8f\u64cd\u4f5c"),(0,r.kt)("table",null,(0,r.kt)("thead",{parentName:"table"},(0,r.kt)("tr",{parentName:"thead"},(0,r.kt)("th",{parentName:"tr",align:null},"\u51fd\u6570"),(0,r.kt)("th",{parentName:"tr",align:null},"\u8bf4\u660e"))),(0,r.kt)("tbody",{parentName:"table"},(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"is_sortedC++11"),(0,r.kt)("td",{parentName:"tr",align:null},"\u68c0\u6d4b\u6307\u5b9a\u8303\u56f4\u662f\u5426\u5df2\u6392\u5e8f")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"is_sorted_untilC++11"),(0,r.kt)("td",{parentName:"tr",align:null},"\u8fd4\u56de\u6700\u5927\u5df2\u6392\u5e8f\u5b50\u8303\u56f4")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"nth_element \u90e8\u4efd\u6392\u5e8f\u6307\u5b9a\u8303\u56f4\u4e2d\u7684\u5143\u7d20\uff0c\u4f7f\u5f97\u8303\u56f4\u6309\u7ed9\u5b9a\u4f4d\u7f6e\u5904\u7684\u5143\u7d20\u5212\u5206"),(0,r.kt)("td",{parentName:"tr",align:null})),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"partial_sort"),(0,r.kt)("td",{parentName:"tr",align:null},"\u90e8\u4efd\u6392\u5e8f")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"partial_sort_copy"),(0,r.kt)("td",{parentName:"tr",align:null},"\u62f7\u8d1d\u90e8\u5206\u6392\u5e8f\u7684\u7ed3\u679c")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"sort"),(0,r.kt)("td",{parentName:"tr",align:null},"\u6392\u5e8f")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"stable_sort"),(0,r.kt)("td",{parentName:"tr",align:null},"\u7a33\u5b9a\u6392\u5e8f")))),(0,r.kt)("h4",{id:"\u4e8c\u5206\u6cd5\u67e5\u627e\u64cd\u4f5c"},"\u4e8c\u5206\u6cd5\u67e5\u627e\u64cd\u4f5c"),(0,r.kt)("table",null,(0,r.kt)("thead",{parentName:"table"},(0,r.kt)("tr",{parentName:"thead"},(0,r.kt)("th",{parentName:"tr",align:null},"\u51fd\u6570"),(0,r.kt)("th",{parentName:"tr",align:null},"\u8bf4\u660e"))),(0,r.kt)("tbody",{parentName:"table"},(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"binary_search"),(0,r.kt)("td",{parentName:"tr",align:null},"\u5224\u65ad\u8303\u56f4\u4e2d\u662f\u5426\u5b58\u5728\u503c\u7b49\u4ef7\u4e8e\u7ed9\u5b9a\u503c\u7684\u5143\u7d20")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"equal_range"),(0,r.kt)("td",{parentName:"tr",align:null},"\u8fd4\u56de\u8303\u56f4\u4e2d\u503c\u7b49\u4e8e\u7ed9\u5b9a\u503c\u7684\u5143\u7d20\u7ec4\u6210\u7684\u5b50\u8303\u56f4")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"lower_bound"),(0,r.kt)("td",{parentName:"tr",align:null},"\u8fd4\u56de\u6307\u5411\u8303\u56f4\u4e2d\u7b2c\u4e00\u4e2a\u503c\u5927\u4e8e\u6216\u7b49\u4e8e\u7ed9\u5b9a\u503c\u7684\u5143\u7d20\u7684\u8fed\u4ee3\u5668")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"upper_bound"),(0,r.kt)("td",{parentName:"tr",align:null},"\u8fd4\u56de\u6307\u5411\u8303\u56f4\u4e2d\u7b2c\u4e00\u4e2a\u503c\u5927\u4e8e\u7ed9\u5b9a\u503c\u7684\u5143\u7d20\u7684\u8fed\u4ee3\u5668")))),(0,r.kt)("h4",{id:"\u96c6\u5408\u64cd\u4f5c"},"\u96c6\u5408\u64cd\u4f5c"),(0,r.kt)("table",null,(0,r.kt)("thead",{parentName:"table"},(0,r.kt)("tr",{parentName:"thead"},(0,r.kt)("th",{parentName:"tr",align:null},"\u51fd\u6570"),(0,r.kt)("th",{parentName:"tr",align:null},"\u8bf4\u660e"))),(0,r.kt)("tbody",{parentName:"table"},(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"includes"),(0,r.kt)("td",{parentName:"tr",align:null},"\u5224\u65ad\u4e00\u4e2a\u96c6\u5408\u662f\u5426\u662f\u53e6\u4e00\u4e2a\u96c6\u5408\u7684\u5b50\u96c6")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"inplace_merge"),(0,r.kt)("td",{parentName:"tr",align:null},"\u5c31\u7eea\u5408\u5e76")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"merge \u5408\u5e76"),(0,r.kt)("td",{parentName:"tr",align:null})),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"set_difference"),(0,r.kt)("td",{parentName:"tr",align:null},"\u83b7\u5f97\u4e24\u4e2a\u96c6\u5408\u7684\u5dee\u96c6")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"set_intersection"),(0,r.kt)("td",{parentName:"tr",align:null},"\u83b7\u5f97\u4e24\u4e2a\u96c6\u5408\u7684\u4ea4\u96c6")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"set_symmetric_difference"),(0,r.kt)("td",{parentName:"tr",align:null},"\u83b7\u5f97\u4e24\u4e2a\u96c6\u5408\u7684\u5bf9\u79f0\u5dee")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"set_union"),(0,r.kt)("td",{parentName:"tr",align:null},"\u83b7\u5f97\u4e24\u4e2a\u96c6\u5408\u7684\u5e76\u96c6")))),(0,r.kt)("h4",{id:"\u5806\u64cd\u4f5c"},"\u5806\u64cd\u4f5c"),(0,r.kt)("table",null,(0,r.kt)("thead",{parentName:"table"},(0,r.kt)("tr",{parentName:"thead"},(0,r.kt)("th",{parentName:"tr",align:null},"\u51fd\u6570"),(0,r.kt)("th",{parentName:"tr",align:null},"\u8bf4\u660e"))),(0,r.kt)("tbody",{parentName:"table"},(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"is_heap"),(0,r.kt)("td",{parentName:"tr",align:null},"\u68c0\u6d4b\u7ed9\u5b9a\u8303\u56f4\u662f\u5426\u6ee1\u8db3\u5806\u7ed3\u6784")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"is_heap_untilC++11"),(0,r.kt)("td",{parentName:"tr",align:null},"\u68c0\u6d4b\u7ed9\u5b9a\u8303\u56f4\u4e2d\u6ee1\u8db3\u5806\u7ed3\u6784\u7684\u6700\u5927\u5b50\u8303\u56f4")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"make_heap"),(0,r.kt)("td",{parentName:"tr",align:null},"\u7528\u7ed9\u5b9a\u8303\u56f4\u6784\u9020\u51fa\u4e00\u4e2a\u5806")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"pop_heap"),(0,r.kt)("td",{parentName:"tr",align:null},"\u4ece\u4e00\u4e2a\u5806\u4e2d\u5220\u9664\u6700\u5927\u7684\u5143\u7d20")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"push_heap"),(0,r.kt)("td",{parentName:"tr",align:null},"\u5411\u5806\u4e2d\u589e\u52a0\u4e00\u4e2a\u5143\u7d20")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"sort_heap"),(0,r.kt)("td",{parentName:"tr",align:null},"\u5c06\u6ee1\u8db3\u5806\u7ed3\u6784\u7684\u8303\u56f4\u6392\u5e8f")))),(0,r.kt)("h4",{id:"\u6700\u5927\u6700\u5c0f\u64cd\u4f5c"},"\u6700\u5927/\u6700\u5c0f\u64cd\u4f5c"),(0,r.kt)("table",null,(0,r.kt)("thead",{parentName:"table"},(0,r.kt)("tr",{parentName:"thead"},(0,r.kt)("th",{parentName:"tr",align:null},"\u51fd\u6570"),(0,r.kt)("th",{parentName:"tr",align:null},"\u8bf4\u660e"))),(0,r.kt)("tbody",{parentName:"table"},(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"is_permutationC++11"),(0,r.kt)("td",{parentName:"tr",align:null},"\u5224\u65ad\u4e00\u4e2a\u5e8f\u5217\u662f\u5426\u662f\u53e6\u4e00\u4e2a\u5e8f\u5217\u7684\u4e00\u79cd\u6392\u5e8f")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"lexicographical_compare"),(0,r.kt)("td",{parentName:"tr",align:null},"\u6bd4\u8f83\u4e24\u4e2a\u5e8f\u5217\u7684\u5b57\u5178\u5e8f")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"max"),(0,r.kt)("td",{parentName:"tr",align:null},"\u8fd4\u56de\u4e24\u4e2a\u5143\u7d20\u4e2d\u503c\u6700\u5927\u7684\u5143\u7d20")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"max_element"),(0,r.kt)("td",{parentName:"tr",align:null},"\u8fd4\u56de\u7ed9\u5b9a\u8303\u56f4\u4e2d\u503c\u6700\u5927\u7684\u5143\u7d20")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"min"),(0,r.kt)("td",{parentName:"tr",align:null},"\u8fd4\u56de\u4e24\u4e2a\u5143\u7d20\u4e2d\u503c\u6700\u5c0f\u7684\u5143\u7d20")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"min_element"),(0,r.kt)("td",{parentName:"tr",align:null},"\u8fd4\u56de\u7ed9\u5b9a\u8303\u56f4\u4e2d\u503c\u6700\u5c0f\u7684\u5143\u7d20")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"minmaxC++11"),(0,r.kt)("td",{parentName:"tr",align:null},"\u8fd4\u56de\u4e24\u4e2a\u5143\u7d20\u4e2d\u503c\u6700\u5927\u53ca\u6700\u5c0f\u7684\u5143\u7d20")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"minmax_elementC++11"),(0,r.kt)("td",{parentName:"tr",align:null},"\u8fd4\u56de\u7ed9\u5b9a\u8303\u56f4\u4e2d\u503c\u6700\u5927\u53ca\u6700\u5c0f\u7684\u5143\u7d20")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"next_permutation"),(0,r.kt)("td",{parentName:"tr",align:null},"\u8fd4\u56de\u7ed9\u5b9a\u8303\u56f4\u4e2d\u7684\u5143\u7d20\u7ec4\u6210\u7684\u4e0b\u4e00\u4e2a\u6309\u5b57\u5178\u5e8f\u7684\u6392\u5217")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"prev_permutation"),(0,r.kt)("td",{parentName:"tr",align:null},"\u8fd4\u56de\u7ed9\u5b9a\u8303\u56f4\u4e2d\u7684\u5143\u7d20\u7ec4\u6210\u7684\u4e0a\u4e00\u4e2a\u6309\u5b57\u5178\u5e8f\u7684\u6392\u5217")))),(0,r.kt)("h3",{id:"vector"},"vector"),(0,r.kt)("p",null,(0,r.kt)("strong",{parentName:"p"},"\u5934\u6587\u4ef6\uff1avector")),(0,r.kt)("p",null,"\u5728STL\u7684vector\u5934\u6587\u4ef6\u4e2d\u5b9a\u4e49\u4e86vector\uff08\u5411\u91cf\u5bb9\u5668\u6a21\u7248\u7c7b\uff09\uff0cvector\u5bb9\u5668\u4ee5\u8fde\u7eed\u6570\u7ec4\u7684\u65b9\u5f0f\u5b58\u50a8\u5143\u7d20\u5e8f\u5217\uff0c\u53ef\u4ee5\u5c06vector\u770b\u4f5c\u662f\u4ee5\u987a\u5e8f\u7ed3\u6784\u5b9e\u73b0\u7684\u7ebf\u6027\u8868\u3002\u5f53\u6211\u4eec\u5728\u7a0b\u5e8f\u4e2d\u9700\u8981\u4f7f\u7528\u52a8\u6001\u6570\u7ec4\u65f6\uff0cvector\u5c06\u4f1a\u662f\u7406\u60f3\u7684\u9009\u62e9\uff0cvector\u53ef\u4ee5\u5728\u4f7f\u7528\u8fc7\u7a0b\u4e2d\u52a8\u6001\u5730\u589e\u957f\u5b58\u50a8\u7a7a\u95f4\u3002\nvector\u6a21\u7248\u7c7b\u9700\u8981\u4e24\u4e2a\u6a21\u7248\u53c2\u6570\uff0c\u7b2c\u4e00\u4e2a\u53c2\u6570\u662f\u5b58\u50a8\u5143\u7d20\u7684\u6570\u636e\u7c7b\u578b\uff0c\u7b2c\u4e8c\u4e2a\u53c2\u6570\u662f\u5b58\u50a8\u5206\u914d\u5668\u7684\u7c7b\u578b\uff0c\u5176\u4e2d\u7b2c\u4e8c\u4e2a\u53c2\u6570\u662f\u53ef\u9009\u7684\uff0c\u5982\u679c\u4e0d\u7ed9\u51fa\u7b2c\u4e8c\u4e2a\u53c2\u6570\uff0c\u5c06\u4f7f\u7528\u9ed8\u8ba4\u7684\u5206\u914d\u5668"),(0,r.kt)("p",null,"\u4e0b\u9762\u7ed9\u51fa\u51e0\u4e2a\u5e38\u7528\u7684\u5b9a\u4e49vector\u5411\u91cf\u5bf9\u8c61\u7684\u65b9\u6cd5\u793a\u4f8b\uff1a"),(0,r.kt)("pre",null,(0,r.kt)("code",{parentName:"pre",className:"language-c++"},"\nvector s; \n// \u5b9a\u4e49\u4e00\u4e2a\u7a7a\u7684vector\u5bf9\u8c61\uff0c\u5b58\u50a8\u7684\u662fint\u7c7b\u578b\u7684\u5143\u7d20\nvector s(n); \n// \u5b9a\u4e49\u4e00\u4e2a\u542b\u6709n\u4e2aint\u5143\u7d20\u7684vector\u5bf9\u8c61\nvector s(first, last); \n// \u5b9a\u4e49\u4e00\u4e2avector\u5bf9\u8c61\uff0c\u5e76\u4ece\u7531\u8fed\u4ee3\u5668first\u548clast\u5b9a\u4e49\u7684\u5e8f\u5217[first, last)\u4e2d\u590d\u5236\u521d\u503c\n\n")),(0,r.kt)("p",null,"vector\u7684\u57fa\u672c\u64cd\u4f5c\uff1a"),(0,r.kt)("pre",null,(0,r.kt)("code",{parentName:"pre",className:"language-c++"},'\ns[i] // \u76f4\u63a5\u4ee5\u4e0b\u6807\u65b9\u5f0f\u8bbf\u95ee\u5bb9\u5668\u4e2d\u7684\u5143\u7d20\ns.front() // \u8fd4\u56de\u9996\u5143\u7d20\ns.back() // \u8fd4\u56de\u5c3e\u5143\u7d20\ns.push_back(x) // \u5411\u8868\u5c3e\u63d2\u5165\u5143\u7d20x\ns.size() // \u8fd4\u56de\u8868\u957f\ns.empty() // \u8868\u4e3a\u7a7a\u65f6\uff0c\u8fd4\u56de\u771f\uff0c\u5426\u5219\u8fd4\u56de\u5047\ns.pop_back() // \u5220\u9664\u8868\u5c3e\u5143\u7d20\ns.begin() // \u8fd4\u56de\u6307\u5411\u9996\u5143\u7d20\u7684\u968f\u673a\u5b58\u53d6\u8fed\u4ee3\u5668\ns.end() // \u8fd4\u56de\u6307\u5411\u5c3e\u5143\u7d20\u7684\u4e0b\u4e00\u4e2a\u4f4d\u7f6e\u7684\u968f\u673a\u5b58\u53d6\u8fed\u4ee3\u5668\ns.insert(it, val) // \u5411\u8fed\u4ee3\u5668it\u6307\u5411\u7684\u5143\u7d20\u524d\u63d2\u5165\u65b0\u5143\u7d20val\ns.insert(it, n, val)// \u5411\u8fed\u4ee3\u5668it\u6307\u5411\u7684\u5143\u7d20\u524d\u63d2\u5165n\u4e2a\u65b0\u5143\u7d20val\ns.insert(it, first, last) \n// \u5c06\u7531\u8fed\u4ee3\u5668first\u548clast\u6240\u6307\u5b9a\u7684\u5e8f\u5217[first, last)\u63d2\u5165\u5230\u8fed\u4ee3\u5668it\u6307\u5411\u7684\u5143\u7d20\u524d\u9762\ns.erase(it) // \u5220\u9664\u7531\u8fed\u4ee3\u5668it\u6240\u6307\u5411\u7684\u5143\u7d20\ns.erase(first, last)// \u5220\u9664\u7531\u8fed\u4ee3\u5668first\u548clast\u6240\u6307\u5b9a\u7684\u5e8f\u5217[first, last)\ns.reserve(n) // \u9884\u5206\u914d\u7f13\u51b2\u7a7a\u95f4\uff0c\u4f7f\u5b58\u50a8\u7a7a\u95f4\u81f3\u5c11\u53ef\u5bb9\u7eb3n\u4e2a\u5143\u7d20\ns.resize(n) // \u6539\u53d8\u5e8f\u5217\u957f\u5ea6\uff0c\u8d85\u51fa\u7684\u5143\u7d20\u5c06\u4f1a\u5168\u90e8\u88ab\u5220\u9664\uff0c\u5982\u679c\u5e8f\u5217\u9700\u8981\u6269\u5c55\uff08\u539f\u7a7a\u95f4\u5c0f\u4e8en\uff09\uff0c\u5143\u7d20\u9ed8\u8ba4\u503c\u5c06\u586b\u6ee1\u6269\u5c55\u51fa\u7684\u7a7a\u95f4\ns.resize(n, val) // \u6539\u53d8\u5e8f\u5217\u957f\u5ea6\uff0c\u8d85\u51fa\u7684\u5143\u7d20\u5c06\u4f1a\u5168\u90e8\u88ab\u5220\u9664\uff0c\u5982\u679c\u5e8f\u5217\u9700\u8981\u6269\u5c55\uff08\u539f\u7a7a\u95f4\u5c0f\u4e8en\uff09\uff0cval\u5c06\u586b\u6ee1\u6269\u5c55\u51fa\u7684\u7a7a\u95f4\ns.clear() // \u5220\u9664\u5bb9\u5668\u4e2d\u7684\u6240\u6709\u5143\u7d20\ns.swap(v) // \u5c06s\u4e0e\u53e6\u4e00\u4e2avector\u5bf9\u8c61\u8fdb\u884c\u4ea4\u6362\ns.assign(first, last)\n// \u5c06\u5e8f\u5217\u66ff\u6362\u6210\u7531\u8fed\u4ee3\u5668first\u548clast\u6240\u6307\u5b9a\u7684\u5e8f\u5217[first, last)\uff0c[first, last)\u4e0d\u80fd\u662f\u539f\u5e8f\u5217\u4e2d\u7684\u4e00\u90e8\u5206\n\n// \u8981\u6ce8\u610f\u7684\u662f\uff0cresize\u64cd\u4f5c\u548cclear\u64cd\u4f5c\u90fd\u662f\u5bf9\u8868\u7684\u6709\u6548\u5143\u7d20\u8fdb\u884c\u7684\u64cd\u4f5c\uff0c\u4f46\u5e76\u4e0d\u4e00\u5b9a\u4f1a\u6539\u53d8\u7f13\u51b2\u7a7a\u95f4\u7684\u5927\u5c0f\n// \u53e6\u5916\uff0cvector\u8fd8\u6709\u5176\u4ed6\u7684\u4e00\u4e9b\u64cd\u4f5c\uff0c\u5982\u53cd\u8f6c\u3001\u53d6\u53cd\u7b49\uff0c\u4e0d\u518d\u4e00\u4e00\u5217\u4e3e\n// vector\u4e0a\u8fd8\u5b9a\u4e49\u4e86\u5e8f\u5217\u4e4b\u95f4\u7684\u6bd4\u8f83\u64cd\u4f5c\u8fd0\u7b97\u7b26\uff08>\u3001<\u3001>=\u3001<=\u3001==\u3001!=\uff09\uff0c\u53ef\u4ee5\u6309\u7167\u5b57\u5178\u5e8f\u6bd4\u8f83\u4e24\u4e2a\u5e8f\u5217\u3002\n// \u8fd8\u662f\u6765\u770b\u4e00\u4e9b\u793a\u4f8b\u4ee3\u7801\u5427\u2026\u2026\n\n/*\n * \u8f93\u5165\u4e2a\u6570\u4e0d\u5b9a\u7684\u4e00\u7ec4\u6574\u6570\uff0c\u518d\u5c06\u8fd9\u7ec4\u6574\u6570\u6309\u5012\u5e8f\u8f93\u51fa\n */\n\n#include \n#include \n\nusing namespace std;\n\nint main()\n{\n vector L;\n int x;\n while(cin >> x)\n {\n L.push_back(x);\n }\n for (int i = L.size() - 1; i >= 0; i--)\n {\n cout << L[i] << " ";\n }\n cout << endl;\n return 0;\n}\n')),(0,r.kt)("h3",{id:"list"},"list"),(0,r.kt)("p",null,(0,r.kt)("strong",{parentName:"p"},"\u5934\u6587\u4ef6\uff1alist")),(0,r.kt)("p",null,"\u4e0b\u9762\u7ed9\u51fa\u51e0\u4e2a\u5e38\u7528\u7684\u5b9a\u4e49list\u5bf9\u8c61\u7684\u65b9\u6cd5\u793a\u4f8b\uff1a"),(0,r.kt)("pre",null,(0,r.kt)("code",{parentName:"pre",className:"language-c++"},"\nlista{1,2,3}\nlista(n) //\u58f0\u660e\u4e00\u4e2an\u4e2a\u5143\u7d20\u7684\u5217\u8868\uff0c\u6bcf\u4e2a\u5143\u7d20\u90fd\u662f0\nlista(n, m) //\u58f0\u660e\u4e00\u4e2an\u4e2a\u5143\u7d20\u7684\u5217\u8868\uff0c\u6bcf\u4e2a\u5143\u7d20\u90fd\u662fm\nlista(first, last) //\u58f0\u660e\u4e00\u4e2a\u5217\u8868\uff0c\u5176\u5143\u7d20\u7684\u521d\u59cb\u503c\u6765\u6e90\u4e8e\u7531\u533a\u95f4\u6240\u6307\u5b9a\u7684\u5e8f\u5217\u4e2d\u7684\u5143\u7d20\uff0cfirst\u548clast\u662f\u8fed\u4ee3\u5668\n\n")),(0,r.kt)("p",null,"list\u7684\u57fa\u672c\u64cd\u4f5c\uff1a"),(0,r.kt)("pre",null,(0,r.kt)("code",{parentName:"pre",className:"language-c++"},"\na.begin() // \u8fd4\u56de\u6307\u5411\u9996\u5143\u7d20\u7684\u968f\u673a\u5b58\u53d6\u8fed\u4ee3\u5668\na.end() // \u8fd4\u56de\u6307\u5411\u5c3e\u5143\u7d20\u7684\u4e0b\u4e00\u4e2a\u4f4d\u7f6e\u7684\u968f\u673a\u5b58\u53d6\u8fed\u4ee3\u5668\na.push_front(x) // \u5411\u8868\u5934\u63d2\u5165\u5143\u7d20x\na.push_back(x) // \u5411\u8868\u5c3e\u63d2\u5165\u5143\u7d20x\na.pop_back() // \u5220\u9664\u8868\u5c3e\u5143\u7d20\na.pop_front() // \u5220\u9664\u8868\u5934\u5143\u7d20\na.size() // \u8fd4\u56de\u8868\u957f\na.empty() // \u8868\u4e3a\u7a7a\u65f6\uff0c\u8fd4\u56de\u771f\uff0c\u5426\u5219\u8fd4\u56de\u5047\na.resize(n) // \u6539\u53d8\u5e8f\u5217\u957f\u5ea6\uff0c\u8d85\u51fa\u7684\u5143\u7d20\u5c06\u4f1a\u5168\u90e8\u88ab\u5220\u9664\uff0c\u5982\u679c\u5e8f\u5217\u9700\u8981\u6269\u5c55\uff08\u539f\u7a7a\u95f4\u5c0f\u4e8en\uff09\uff0c\u5143\u7d20\u9ed8\u8ba4\u503c\u5c06\u586b\u6ee1\u6269\u5c55\u51fa\u7684\u7a7a\u95f4\na.resize(n, val) // \u6539\u53d8\u5e8f\u5217\u957f\u5ea6\uff0c\u8d85\u51fa\u7684\u5143\u7d20\u5c06\u4f1a\u5168\u90e8\u88ab\u5220\u9664\uff0c\u5982\u679c\u5e8f\u5217\u9700\u8981\u6269\u5c55\uff08\u539f\u7a7a\u95f4\u5c0f\u4e8en\uff09\uff0cval\u5c06\u586b\u6ee1\u6269\u5c55\u51fa\u7684\u7a7a\u95f4\na.clear() // \u5220\u9664\u5bb9\u5668\u4e2d\u7684\u6240\u6709\u5143\u7d20\na.front() // \u8fd4\u56de\u9996\u5143\u7d20\na.back() // \u8fd4\u56de\u5c3e\u5143\u7d20\na.swap(v) // \u5c06a\u4e0e\u53e6\u4e00\u4e2alist\u5bf9\u8c61\u8fdb\u884c\u4ea4\u6362\na.merge(b) // \u8c03\u7528\u7ed3\u675f\u540eb\u53d8\u4e3a\u7a7a\uff0ca\u4e2d\u5143\u7d20\u5305\u542b\u539f\u6765a\u548cb\u7684\u5143\u7d20\na.insert(it, val) // \u5411\u8fed\u4ee3\u5668it\u6307\u5411\u7684\u5143\u7d20\u524d\u63d2\u5165\u65b0\u5143\u7d20val\na.insert(it, n, val)// \u5411\u8fed\u4ee3\u5668it\u6307\u5411\u7684\u5143\u7d20\u524d\u63d2\u5165n\u4e2a\u65b0\u5143\u7d20val\na.insert(it, first, last) \n// \u5c06\u7531\u8fed\u4ee3\u5668first\u548clast\u6240\u6307\u5b9a\u7684\u5e8f\u5217[first, last)\u63d2\u5165\u5230\u8fed\u4ee3\u5668it\u6307\u5411\u7684\u5143\u7d20\u524d\u9762\na.erase(it) // \u5220\u9664\u7531\u8fed\u4ee3\u5668it\u6240\u6307\u5411\u7684\u5143\u7d20\na.erase(first, last)// \u5220\u9664\u7531\u8fed\u4ee3\u5668first\u548clast\u6240\u6307\u5b9a\u7684\u5e8f\u5217[first, last)\na.remove(x) // \u5220\u9664\u4e86a\u4e2d\u6240\u6709\u503c\u4e3ax\u7684\u5143\u7d20\na.assign(n, val) // \u5c06a\u4e2d\u7684\u6240\u6709\u5143\u7d20\u66ff\u6362\u6210n\u4e2aval\u5143\u7d20\na.assign(b.begin(), b.end())\n//\u5c06a\u53d8\u6210b\n\n")),(0,r.kt)("h3",{id:"string"},"string"),(0,r.kt)("p",null,(0,r.kt)("strong",{parentName:"p"},"\u5934\u6587\u4ef6\uff1astring")),(0,r.kt)("p",null,"string\u662fSTL\u7684\u5b57\u7b26\u4e32\u7c7b\u578b\uff0c\u901a\u5e38\u7528\u6765\u8868\u793a\u5b57\u7b26\u4e32\u3002\u800c\u5728\u4f7f\u7528string\u4e4b\u524d\uff0c\u5b57\u7b26\u4e32\u901a\u5e38\u662f\u7528",(0,r.kt)("inlineCode",{parentName:"p"},"char*"),"\u8868\u793a\u7684\u3002",(0,r.kt)("br",{parentName:"p"}),"\n","string\u548c",(0,r.kt)("inlineCode",{parentName:"p"},"char*"),"\u7684\u533a\u522b",(0,r.kt)("br",{parentName:"p"}),"\n","string\u662f\u4e00\u4e2a\u7c7b, ",(0,r.kt)("inlineCode",{parentName:"p"},"char*"),"\u662f\u4e00\u4e2a\u6307\u5411\u5b57\u7b26\u7684\u6307\u9488\u3002",(0,r.kt)("br",{parentName:"p"}),"\n","string\u5c01\u88c5\u4e86",(0,r.kt)("inlineCode",{parentName:"p"},"char*"),"\uff0c\u7ba1\u7406\u8fd9\u4e2a\u5b57\u7b26\u4e32\uff0c\u662f\u4e00\u4e2a",(0,r.kt)("inlineCode",{parentName:"p"},"char*"),"\u578b\u7684\u5bb9\u5668\u3002\u4e5f\u5c31\u662f\u8bf4string\u662f\u4e00\u4e2a\u5bb9\u5668\uff0c\u91cc\u9762\u5143\u7d20\u7684\u6570\u636e\u7c7b\u578b\u662f",(0,r.kt)("inlineCode",{parentName:"p"},"char*"),"\u3002",(0,r.kt)("br",{parentName:"p"}),"\n","string\u4e0d\u7528\u8003\u8651\u5185\u5b58\u91ca\u653e\u548c\u8d8a\u754c\u3002",(0,r.kt)("br",{parentName:"p"}),"\n","string\u7ba1\u7406",(0,r.kt)("inlineCode",{parentName:"p"},"char*"),"\u6240\u5206\u914d\u7684\u5185\u5b58\u3002\u6bcf\u4e00\u6b21string\u7684\u590d\u5236\uff0c\u53d6\u503c\u90fd\u7531string\u7c7b\u8d1f\u8d23\u7ef4\u62a4\uff0c\u4e0d\u7528\u62c5\u5fc3\u590d\u5236\u8d8a\u754c\u548c\u53d6\u503c\u8d8a\u754c\u7b49\u3002 string\u63d0\u4f9b\u4e86\u4e00\u7cfb\u5217\u7684\u5b57\u7b26\u4e32\u64cd\u4f5c\u51fd\u6570",(0,r.kt)("br",{parentName:"p"}),"\n","\u67e5\u627efind\uff0c\u62f7\u8d1dcopy\uff0c\u5220\u9664erase\uff0c\u66ff\u6362replace\uff0c\u63d2\u5165insert. "),(0,r.kt)("p",null,"\u6784\u9020\u548c\u6790\u6784\u51fd\u6570:"),(0,r.kt)("table",null,(0,r.kt)("thead",{parentName:"table"},(0,r.kt)("tr",{parentName:"thead"},(0,r.kt)("th",{parentName:"tr",align:null},"\u8868\u8fbe\u5f0f"),(0,r.kt)("th",{parentName:"tr",align:null},"\u6548\u679c"))),(0,r.kt)("tbody",{parentName:"table"},(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"string s"),(0,r.kt)("td",{parentName:"tr",align:null},"\u751f\u6210\u4e00\u4e2a\u7a7a\u5b57\u7b26\u4e32")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"string s(str)"),(0,r.kt)("td",{parentName:"tr",align:null},"copy\u6784\u9020\u51fd\u6570\uff0c\u751f\u6210\u4e00\u4e2astr\u7684\u590d\u5236\u54c1")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"string s(str,idx)"),(0,r.kt)("td",{parentName:"tr",align:null},"\u5c06string\u5185\u59cb\u4e8e\u4f4d\u7f6eidx\u7684\u90e8\u5206\u5f53\u4f5c\u5b57\u7b26\u4e32s\u7684\u521d\u503c")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"string s(str,idx,len)"),(0,r.kt)("td",{parentName:"tr",align:null},"\u5c06string\u5185\u59cb\u4e8e\u4f4d\u7f6eidx\u4e14\u957f\u5ea6\u6700\u591a\u4e3alen\u7684\u90e8\u5206\u5f53\u4f5c\u5b57\u7b26\u4e32s\u7684\u521d\u503c")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"string s(cstr)"),(0,r.kt)("td",{parentName:"tr",align:null},"\u4ee5C-string\u5b57\u7b26\u4e32cstr\u4f5c\u4e3a\u5b57\u7b26\u4e32s\u7684\u521d\u503c")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"string s(cstr\uff0clen)"),(0,r.kt)("td",{parentName:"tr",align:null},"\u4ee5C-string\u5b57\u7b26\u4e32cstr\u7684\u524dlen\u4e2a\u5b57\u7b26\u4f5c\u4e3a\u5b57\u7b26\u4e32s\u7684\u521d\u503c")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"string s(num\uff0cc)"),(0,r.kt)("td",{parentName:"tr",align:null},"\u751f\u6210\u4e00\u4e2a\u5b57\u7b26\u4e32\uff0c\u5305\u542bnum\u4e2a\u5b57\u7b26c")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"string s(beg\uff0cend)"),(0,r.kt)("td",{parentName:"tr",align:null},"\u4ee5\u533a\u95f4","[beg,end]","\u5185\u6240\u6709\u5b57\u7b26\u4f5c\u4e3a\u5b57\u7b26\u4e32s\u7684\u521d\u503c")))),(0,r.kt)("p",null,"\u64cd\u4f5c\u51fd\u6570:"),(0,r.kt)("table",null,(0,r.kt)("thead",{parentName:"table"},(0,r.kt)("tr",{parentName:"thead"},(0,r.kt)("th",{parentName:"tr",align:null},"\u64cd\u4f5c\u51fd\u6570"),(0,r.kt)("th",{parentName:"tr",align:null},"\u6548\u679c"))),(0,r.kt)("tbody",{parentName:"table"},(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"=\uff0cassign()"),(0,r.kt)("td",{parentName:"tr",align:null},"\u8d4b\u4ee5\u65b0\u503c")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"swap()"),(0,r.kt)("td",{parentName:"tr",align:null},"\u4ea4\u6362\u4e24\u4e2a\u5b57\u7b26\u4e32\u7684\u5185\u5bb9")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"+=, append(),push_back()"),(0,r.kt)("td",{parentName:"tr",align:null},"\u6dfb\u52a0\u5b57\u7b26")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"insert()"),(0,r.kt)("td",{parentName:"tr",align:null},"\u63d2\u5165\u5b57\u7b26")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"erase()"),(0,r.kt)("td",{parentName:"tr",align:null},"\u5220\u9664\u5b57\u7b26")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"clear()"),(0,r.kt)("td",{parentName:"tr",align:null},"\u79fb\u9664\u5168\u90e8\u5b57\u7b26")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"resize()"),(0,r.kt)("td",{parentName:"tr",align:null},"\u6539\u53d8\u5b57\u7b26\u6570\u91cf")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"replace()"),(0,r.kt)("td",{parentName:"tr",align:null},"\u66ff\u6362\u5b57\u7b26")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"+"),(0,r.kt)("td",{parentName:"tr",align:null},"\u4e32\u8054\u5b57\u7b26\u4e32")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"==\uff0c!=\uff0c<\uff0c<=\uff0c>\uff0c>=\uff0ccompare()"),(0,r.kt)("td",{parentName:"tr",align:null},"\u6bd4\u8f83\u5b57\u7b26\u4e32\u5185\u5bb9")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"size(),length()"),(0,r.kt)("td",{parentName:"tr",align:null},"\u8fd4\u56de\u5b57\u7b26\u6570\u91cf,\u7b49\u6548\u51fd\u6570")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"max_size()"),(0,r.kt)("td",{parentName:"tr",align:null},"\u8fd4\u56de\u5b57\u7b26\u7684\u6700\u5927\u53ef\u80fd\u4e2a\u6570")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"empty()"),(0,r.kt)("td",{parentName:"tr",align:null},"\u5224\u65ad\u5b57\u7b26\u4e32\u662f\u5426\u4e3a\u7a7a")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"capacity()"),(0,r.kt)("td",{parentName:"tr",align:null},"\u8fd4\u56de\u91cd\u65b0\u5206\u914d\u4e4b\u524d\u7684\u5b57\u7b26\u5bb9\u91cf")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"reserve()"),(0,r.kt)("td",{parentName:"tr",align:null},"\u4fdd\u7559\u4e00\u5b9a\u91cf\u5185\u5b58\u4ee5\u5bb9\u7eb3\u4e00\u5b9a\u6570\u91cf\u7684\u5b57\u7b26")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"[ ]","\uff0cat()"),(0,r.kt)("td",{parentName:"tr",align:null},"\u5b58\u53d6\u5355\u4e00\u5b57\u7b26")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},">>\uff0cgetline()"),(0,r.kt)("td",{parentName:"tr",align:null},"\u4ecestream\u4e2d\u8bfb\u53d6\u67d0\u503c")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"<<"),(0,r.kt)("td",{parentName:"tr",align:null},"\u5c06\u67d0\u503c\u5199\u5165stream")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"copy()"),(0,r.kt)("td",{parentName:"tr",align:null},"\u5c06\u5185\u5bb9\u590d\u5236\u4e3a\u4e00\u4e2aC-string")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"c_str()"),(0,r.kt)("td",{parentName:"tr",align:null},"\u5c06\u5185\u5bb9\u4ee5C-string\u5f62\u5f0f\u8fd4\u56de")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"data()"),(0,r.kt)("td",{parentName:"tr",align:null},"\u5c06\u5185\u5bb9\u4ee5\u5b57\u7b26\u6570\u7ec4\u5f62\u5f0f\u8fd4\u56de")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"substr()"),(0,r.kt)("td",{parentName:"tr",align:null},"\u8fd4\u56de\u67d0\u4e2a\u5b50\u5b57\u7b26\u4e32")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"begin()\uff0cend()"),(0,r.kt)("td",{parentName:"tr",align:null},"\u63d0\u4f9b\u6b63\u5e38\u7684\u8fed\u4ee3\u5668\u652f\u6301")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"rbegin()\uff0crend()"),(0,r.kt)("td",{parentName:"tr",align:null},"\u63d0\u4f9b\u9006\u5411\u8fed\u4ee3\u5668\u652f\u6301")))),(0,r.kt)("h3",{id:"pair"},"pair"),(0,r.kt)("p",null,(0,r.kt)("strong",{parentName:"p"},"\u5934\u6587\u4ef6\uff1autility")),(0,r.kt)("p",null,"STL\u7684utility\u5934\u6587\u4ef6\u4e2d\u63cf\u8ff0\u4e86\u4e00\u4e2a\u770b\u4e0a\u53bb\u975e\u5e38\u7b80\u5355\u7684\u6a21\u7248\u7c7bpair\uff0c\u7528\u6765\u8868\u793a\u4e00\u4e2a\u4e8c\u5143\u7ec4\u6216\u5143\u7d20\u5bf9\uff0c\u5e76\u63d0\u4f9b\u4e86\u6309\u7167\u5b57\u5178\u5e8f\u5bf9\u5143\u7d20\u5bf9\u8fdb\u884c\u5927\u5c0f\u6bd4\u8f83\u8fd0\u7b97\u7b26\u6a21\u7248\u51fd\u6570\u3002\nExample\uff0c\u60f3\u8981\u5b9a\u4e49\u4e00\u4e2a\u5bf9\u8c61\u8868\u793a\u4e00\u4e2a\u5e73\u9762\u5750\u6807\u70b9\uff0c\u5219\u53ef\u4ee5\uff1a"),(0,r.kt)("pre",null,(0,r.kt)("code",{parentName:"pre"},"pair p;\ncin >> p.first >> p.second;\n")),(0,r.kt)("p",null,"pair\u6a21\u7248\u7c7b\u9700\u8981\u4e24\u4e2a\u53c2\u6570\uff1a\u9996\u5143\u7d20\u7684\u6570\u636e\u7c7b\u578b\u548c\u5c3e\u5143\u7d20\u7684\u6570\u636e\u7c7b\u578b\u3002pair\u6a21\u7248\u7c7b\u5bf9\u8c61\u6709\u4e24\u4e2a\u6210\u5458\uff1afirst\u548csecond\uff0c\u5206\u522b\u8868\u793a\u9996\u5143\u7d20\u548c\u5c3e\u5143\u7d20\u3002\n\u5728\u5176\u4e2d\u5df2\u7ecf\u5b9a\u4e49\u4e86pair\u4e0a\u7684\u516d\u4e2a\u6bd4\u8f83\u8fd0\u7b97\u7b26\uff1a<\u3001>\u3001<=\u3001>=\u3001==\u3001!=\uff0c\u5176\u89c4\u5219\u662f\u5148\u6bd4\u8f83first\uff0cfirst\u76f8\u7b49\u65f6\u518d\u6bd4\u8f83second\uff0c\u8fd9\u7b26\u5408\u5927\u591a\u6570\u5e94\u7528\u7684\u903b\u8f91\u3002\u5f53\u7136\uff0c\u4e5f\u53ef\u4ee5\u901a\u8fc7\u91cd\u8f7d\u8fd9\u51e0\u4e2a\u8fd0\u7b97\u7b26\u6765\u91cd\u65b0\u6307\u5b9a\u81ea\u5df1\u7684\u6bd4\u8f83\u903b\u8f91\u3002\n\u9664\u4e86\u76f4\u63a5\u5b9a\u4e49\u4e00\u4e2apair\u5bf9\u8c61\u5916\uff0c\u5982\u679c\u9700\u8981\u5373\u65f6\u751f\u6210\u4e00\u4e2apair\u5bf9\u8c61\uff0c\u4e5f\u53ef\u4ee5\u8c03\u7528\u5728\u5176\u4e2d\u5b9a\u4e49\u7684\u4e00\u4e2a\u6a21\u7248\u51fd\u6570\uff1amake_pair\u3002make_pair\u9700\u8981\u4e24\u4e2a\u53c2\u6570\uff0c\u5206\u522b\u4e3a\u5143\u7d20\u5bf9\u7684\u9996\u5143\u7d20\u548c\u5c3e\u5143\u7d20\u3002"),(0,r.kt)("h3",{id:"map"},"map"),(0,r.kt)("p",null,(0,r.kt)("strong",{parentName:"p"},"\u5934\u6587\u4ef6\uff1amap")),(0,r.kt)("p",null,"\u5728STL\u7684\u5934\u6587\u4ef6\u4e2dmap\u4e2d\u5b9a\u4e49\u4e86\u6a21\u7248\u7c7bmap\u548cmultimap\uff0c\u7528\u6709\u5e8f\u4e8c\u53c9\u6811\u8868\u5b58\u50a8\u7c7b\u578b\u4e3a",(0,r.kt)("inlineCode",{parentName:"p"},"pair"),"\u7684\u5143\u7d20\u5bf9\u5e8f\u5217\u3002\u5e8f\u5217\u4e2d\u7684\u5143\u7d20\u4ee5const Key\u90e8\u5206\u4f5c\u4e3a\u6807\u8bc6\uff0cmap\u4e2d\u6240\u6709\u5143\u7d20\u7684Key\u503c\u5fc5\u987b\u662f\u552f\u4e00\u7684\uff0cmultimap\u5219\u5141\u8bb8\u6709\u91cd\u590d\u7684Key\u503c\u3002"),(0,r.kt)("p",null,"\u53ef\u4ee5\u5c06map\u770b\u4f5c\u662f\u7531Key\u6807\u8bc6\u5143\u7d20\u7684\u5143\u7d20\u96c6\u5408\uff0c\u8fd9\u7c7b\u5bb9\u5668\u4e5f\u88ab\u79f0\u4e3a\u201c\u5173\u8054\u5bb9\u5668\u201d\uff0c\u53ef\u4ee5\u901a\u8fc7\u4e00\u4e2aKey\u503c\u6765\u5feb\u901f\u51b3\u5b9a\u4e00\u4e2a\u5143\u7d20\uff0c\u56e0\u6b64\u975e\u5e38\u9002\u5408\u4e8e\u9700\u8981\u6309\u7167Key\u503c\u67e5\u627e\u5143\u7d20\u7684\u5bb9\u5668\u3002\nmap\u6a21\u7248\u7c7b\u9700\u8981\u56db\u4e2a\u6a21\u7248\u53c2\u6570\uff0c\u7b2c\u4e00\u4e2a\u662f\u952e\u503c\u7c7b\u578b\uff0c\u7b2c\u4e8c\u4e2a\u662f\u5143\u7d20\u7c7b\u578b\uff0c\u7b2c\u4e09\u4e2a\u662f\u6bd4\u8f83\u7b97\u5b50\uff0c\u7b2c\u56db\u4e2a\u662f\u5206\u914d\u5668\u7c7b\u578b\u3002\u5176\u4e2d\u952e\u503c\u7c7b\u578b\u548c\u5143\u7d20\u7c7b\u578b\u662f\u5fc5\u8981\u7684\u3002"),(0,r.kt)("p",null,"\u5b9a\u4e49map\u5bf9\u8c61\u7684\u4ee3\u7801\u793a\u4f8b\uff1a"),(0,r.kt)("pre",null,(0,r.kt)("code",{parentName:"pre",className:"language-c++"},"map m;\n")),(0,r.kt)("p",null,"map\u7684\u57fa\u672c\u64cd\u4f5c\uff1a"),(0,r.kt)("pre",null,(0,r.kt)("code",{parentName:"pre",className:"language-c++"},"/* \u5411map\u4e2d\u63d2\u5165\u5143\u7d20 */\nm[key] = value; // [key]\u64cd\u4f5c\u662fmap\u5f88\u6709\u7279\u8272\u7684\u64cd\u4f5c,\u5982\u679c\u5728map\u4e2d\u5b58\u5728\u952e\u503c\u4e3akey\u7684\u5143\u7d20\u5bf9, \u5219\u8fd4\u56de\u8be5\u5143\u7d20\u5bf9\u7684\u503c\u57df\u90e8\u5206,\u5426\u5219\u5c06\u4f1a\u521b\u5efa\u4e00\u4e2a\u952e\u503c\u4e3akey\u7684\u5143\u7d20\u5bf9,\u503c\u57df\u4e3a\u9ed8\u8ba4\u503c\u3002\u6240\u4ee5\u53ef\u4ee5\u7528\u8be5\u64cd\u4f5c\u5411map\u4e2d\u63d2\u5165\u5143\u7d20\u5bf9\u6216\u4fee\u6539\u5df2\u7ecf\u5b58\u5728\u7684\u5143\u7d20\u5bf9\u7684\u503c\u57df\u90e8\u5206\u3002\nm.insert(make_pair(key, value)); // \u4e5f\u53ef\u4ee5\u76f4\u63a5\u8c03\u7528insert\u65b9\u6cd5\u63d2\u5165\u5143\u7d20\u5bf9,insert\u64cd\u4f5c\u4f1a\u8fd4\u56de\u4e00\u4e2apair,\u5f53map\u4e2d\u6ca1\u6709\u4e0ekey\u76f8\u5339\u914d\u7684\u952e\u503c\u65f6,\u5176first\u662f\u6307\u5411\u63d2\u5165\u5143\u7d20\u5bf9\u7684\u8fed\u4ee3\u5668,\u5176second\u4e3atrue;\u82e5map\u4e2d\u5df2\u7ecf\u5b58\u5728\u4e0ekey\u76f8\u7b49\u7684\u952e\u503c\u65f6,\u5176first\u662f\u6307\u5411\u8be5\u5143\u7d20\u5bf9\u7684\u8fed\u4ee3\u5668,second\u4e3afalse\u3002\n\n/* \u67e5\u627e\u5143\u7d20 */\nint i = m[key]; // \u8981\u6ce8\u610f\u7684\u662f,\u5f53\u4e0e\u8be5\u952e\u503c\u76f8\u5339\u914d\u7684\u5143\u7d20\u5bf9\u4e0d\u5b58\u5728\u65f6,\u4f1a\u521b\u5efa\u952e\u503c\u4e3akey\uff08\u5f53\u53e6\u4e00\u4e2a\u5143\u7d20\u662f\u6574\u5f62\u65f6\uff0cm[key]=0\uff09\u7684\u5143\u7d20\u5bf9\u3002\nmap::iterator it = m.find(key); // \u5982\u679cmap\u4e2d\u5b58\u5728\u4e0ekey\u76f8\u5339\u914d\u7684\u952e\u503c\u65f6,find\u64cd\u4f5c\u5c06\u8fd4\u56de\u6307\u5411\u8be5\u5143\u7d20\u5bf9\u7684\u8fed\u4ee3\u5668,\u5426\u5219,\u8fd4\u56de\u7684\u8fed\u4ee3\u5668\u7b49\u4e8emap\u7684end()(\u53c2\u89c1vector\u4e2d\u63d0\u5230\u7684begin()\u548cend()\u64cd\u4f5c)\u3002\n\n/* \u5220\u9664\u5143\u7d20 */\nm.erase(key); // \u5220\u9664\u4e0e\u6307\u5b9akey\u952e\u503c\u76f8\u5339\u914d\u7684\u5143\u7d20\u5bf9,\u5e76\u8fd4\u56de\u88ab\u5220\u9664\u7684\u5143\u7d20\u7684\u4e2a\u6570\u3002\nm.erase(it); // \u5220\u9664\u7531\u8fed\u4ee3\u5668it\u6240\u6307\u5b9a\u7684\u5143\u7d20\u5bf9,\u5e76\u8fd4\u56de\u6307\u5411\u4e0b\u4e00\u4e2a\u5143\u7d20\u5bf9\u7684\u8fed\u4ee3\u5668\u3002\n\n/* \u5176\u4ed6\u64cd\u4f5c */\nm.size(); // \u8fd4\u56de\u5143\u7d20\u4e2a\u6570\nm.empty(); // \u5224\u65ad\u662f\u5426\u4e3a\u7a7a\nm.clear(); // \u6e05\u7a7a\u6240\u6709\u5143\u7d20\n")),(0,r.kt)("h3",{id:"stack"},"stack"),(0,r.kt)("p",null,(0,r.kt)("strong",{parentName:"p"},"\u5934\u6587\u4ef6\uff1astack")),(0,r.kt)("p",null,"stack\u6a21\u7248\u7c7b\u7684\u5b9a\u4e49\u5728stack\u5934\u6587\u4ef6\u4e2d\u3002\nstack\u6a21\u7248\u7c7b\u9700\u8981\u4e24\u4e2a\u6a21\u7248\u53c2\u6570\uff0c\u4e00\u4e2a\u662f\u5143\u7d20\u7c7b\u578b\uff0c\u53e6\u4e00\u4e2a\u662f\u5bb9\u5668\u7c7b\u578b\uff0c\u4f46\u662f\u53ea\u6709\u5143\u7d20\u7c7b\u578b\u662f\u5fc5\u8981\u7684\uff0c\u5728\u4e0d\u6307\u5b9a\u5bb9\u5668\u7c7b\u578b\u65f6\uff0c\u9ed8\u8ba4\u5bb9\u5668\u7684\u7c7b\u578b\u4e3adeque\u3002"),(0,r.kt)("p",null,"\u5b9a\u4e49stack\u5bf9\u8c61\u7684\u793a\u4f8b\u4ee3\u7801\u5982\u4e0b:"),(0,r.kt)("pre",null,(0,r.kt)("code",{parentName:"pre",className:"language-c++"},"stack s;\nstack ss;\n")),(0,r.kt)("p",null,"stack\u7684\u57fa\u672c\u64cd\u4f5c\u6709\uff1a"),(0,r.kt)("pre",null,(0,r.kt)("code",{parentName:"pre",className:"language-c++"},"s.push(x); // \u5165\u6808\ns.pop(); // \u51fa\u6808\ns.top(); // \u8bbf\u95ee\u6808\u9876\ns.empty(); // \u5f53\u6808\u7a7a\u65f6\uff0c\u8fd4\u56detrue\ns.size(); // \u8bbf\u95ee\u6808\u4e2d\u5143\u7d20\u4e2a\u6570\n")),(0,r.kt)("h3",{id:"queue"},"queue"),(0,r.kt)("p",null,(0,r.kt)("strong",{parentName:"p"},"\u5934\u6587\u4ef6\uff1aqueue")),(0,r.kt)("p",null,"queue\u6a21\u7248\u7c7b\u7684\u5b9a\u4e49\u5728queue\u5934\u6587\u4ef6\u4e2d\u3002\nqueue\u4e0estack\u76f8\u4f3c\uff0cqueue\u6a21\u7248\u7c7b\u4e5f\u9700\u8981\u4e24\u4e2a\u6a21\u7248\u53c2\u6570\uff0c\u4e00\u4e2a\u5143\u7d20\u7c7b\u578b\uff0c\u4e00\u4e2a\u5bb9\u5668\u7c7b\u578b\uff0c\u5143\u7d20\u7c7b\u578b\u65f6\u5fc5\u987b\u7684\uff0c\u5bb9\u5668\u7c7b\u578b\u65f6\u53ef\u9009\u7684\uff0c\u9ed8\u8ba4\u4e3adeque\u7c7b\u578b\u3002"),(0,r.kt)("p",null,"\u5b9a\u4e49queue\u5bf9\u8c61\u7684\u793a\u4f8b\u4ee3\u7801\u5fc5\u987b\u5982\u4e0b\uff1a"),(0,r.kt)("pre",null,(0,r.kt)("code",{parentName:"pre",className:"language-c++"},"queue q;\nqueue qq;\n")),(0,r.kt)("p",null,"queue\u7684\u57fa\u672c\u64cd\u4f5c\uff1a"),(0,r.kt)("pre",null,(0,r.kt)("code",{parentName:"pre",className:"language-c++"},"q.push(x); // \u5165\u961f\u5217\nq.pop(); // \u51fa\u961f\u5217\nq.front(); // \u8bbf\u95ee\u961f\u9996\u5143\u7d20\nq.back(); // \u8bbf\u95ee\u961f\u5c3e\u5143\u7d20\nq.empty(); // \u5224\u65ad\u961f\u5217\u662f\u5426\u4e3a\u7a7a\nq.size(); // \u8bbf\u95ee\u961f\u5217\u4e2d\u7684\u5143\u7d20\u4e2a\u6570\n")),(0,r.kt)("h3",{id:"set"},"set"),(0,r.kt)("p",null,(0,r.kt)("strong",{parentName:"p"},"\u5934\u6587\u4ef6\uff1aset")),(0,r.kt)("p",null,"set\u662f\u4e0e\u96c6\u5408\u76f8\u5173\u7684\u5bb9\u5668\uff0cSTL\u4e3a\u6211\u4eec\u63d0\u4f9b\u4e86set\u7684\u5b9e\u73b0\uff0c\u5728\u7f16\u7a0b\u9898\u4e2d\u9047\u89c1\u96c6\u5408\u95ee\u9898\u76f4\u63a5\u8c03\u7528\u662f\u5341\u5206\u65b9\u4fbf\u7684\u3002"),(0,r.kt)("p",null,"\u5b9a\u4e49set\u5bf9\u8c61\u7684\u793a\u4f8b\u4ee3\u7801\u5982\u4e0b\uff1a"),(0,r.kt)("pre",null,(0,r.kt)("code",{parentName:"pre",className:"language-c++"},"set s;\nset ss;\n")),(0,r.kt)("p",null,"set\u7684\u57fa\u672c\u64cd\u4f5c\uff1a"),(0,r.kt)("pre",null,(0,r.kt)("code",{parentName:"pre",className:"language-c++"},"s.begin() // \u8fd4\u56de\u6307\u5411\u7b2c\u4e00\u4e2a\u5143\u7d20\u7684\u8fed\u4ee3\u5668\ns.clear() // \u6e05\u9664\u6240\u6709\u5143\u7d20\ns.count() // \u8fd4\u56de\u67d0\u4e2a\u503c\u5143\u7d20\u7684\u4e2a\u6570\ns.empty() // \u5982\u679c\u96c6\u5408\u4e3a\u7a7a\uff0c\u8fd4\u56detrue(\u771f\uff09\ns.end() // \u8fd4\u56de\u6307\u5411\u6700\u540e\u4e00\u4e2a\u5143\u7d20\u4e4b\u540e\u7684\u8fed\u4ee3\u5668\uff0c\u4e0d\u662f\u6700\u540e\u4e00\u4e2a\u5143\u7d20\ns.equal_range() // \u8fd4\u56de\u96c6\u5408\u4e2d\u4e0e\u7ed9\u5b9a\u503c\u76f8\u7b49\u7684\u4e0a\u4e0b\u9650\u7684\u4e24\u4e2a\u8fed\u4ee3\u5668\ns.erase() // \u5220\u9664\u96c6\u5408\u4e2d\u7684\u5143\u7d20\ns.find() // \u8fd4\u56de\u4e00\u4e2a\u6307\u5411\u88ab\u67e5\u627e\u5230\u5143\u7d20\u7684\u8fed\u4ee3\u5668\ns.get_allocator() // \u8fd4\u56de\u96c6\u5408\u7684\u5206\u914d\u5668\ns.insert() // \u5728\u96c6\u5408\u4e2d\u63d2\u5165\u5143\u7d20\ns.lower_bound() // \u8fd4\u56de\u6307\u5411\u5927\u4e8e\uff08\u6216\u7b49\u4e8e\uff09\u67d0\u503c\u7684\u7b2c\u4e00\u4e2a\u5143\u7d20\u7684\u8fed\u4ee3\u5668\ns.key_comp() // \u8fd4\u56de\u4e00\u4e2a\u7528\u4e8e\u5143\u7d20\u95f4\u503c\u6bd4\u8f83\u7684\u51fd\u6570\ns.max_size() // \u8fd4\u56de\u96c6\u5408\u80fd\u5bb9\u7eb3\u7684\u5143\u7d20\u7684\u6700\u5927\u9650\u503c\ns.rbegin() // \u8fd4\u56de\u6307\u5411\u96c6\u5408\u4e2d\u6700\u540e\u4e00\u4e2a\u5143\u7d20\u7684\u53cd\u5411\u8fed\u4ee3\u5668\ns.rend() // \u8fd4\u56de\u6307\u5411\u96c6\u5408\u4e2d\u7b2c\u4e00\u4e2a\u5143\u7d20\u7684\u53cd\u5411\u8fed\u4ee3\u5668\ns.size() // \u96c6\u5408\u4e2d\u5143\u7d20\u7684\u6570\u76ee\ns.swap() // \u4ea4\u6362\u4e24\u4e2a\u96c6\u5408\u53d8\u91cf\ns.upper_bound() // \u8fd4\u56de\u5927\u4e8e\u67d0\u4e2a\u503c\u5143\u7d20\u7684\u8fed\u4ee3\u5668\ns.value_comp() // \u8fd4\u56de\u4e00\u4e2a\u7528\u4e8e\u6bd4\u8f83\u5143\u7d20\u95f4\u7684\u503c\u7684\u51fd\u6570\n")),(0,r.kt)("h3",{id:"multiset"},"multiset"),(0,r.kt)("p",null,(0,r.kt)("strong",{parentName:"p"},"\u5934\u6587\u4ef6\uff1aset")),(0,r.kt)("p",null,"\u5728set\u5934\u6587\u4ef6\u4e2d\uff0c\u8fd8\u5b9a\u4e49\u4e86\u53e6\u4e00\u4e2a\u975e\u5e38\u5b9e\u7528\u7684\u6a21\u7248\u7c7bmultiset\uff08\u591a\u91cd\u96c6\u5408\uff09\u3002\u591a\u91cd\u96c6\u5408\u4e0e\u96c6\u5408\u7684\u533a\u522b\u5728\u4e8e\u96c6\u5408\u4e2d\u4e0d\u80fd\u5b58\u5728\u76f8\u540c\u5143\u7d20\uff0c\u800c\u591a\u91cd\u96c6\u5408\u4e2d\u53ef\u4ee5\u5b58\u5728\u3002"),(0,r.kt)("p",null,"\u5b9a\u4e49multiset\u5bf9\u8c61\u7684\u793a\u4f8b\u4ee3\u7801\u5982\u4e0b\uff1a"),(0,r.kt)("pre",null,(0,r.kt)("code",{parentName:"pre",className:"language-c++"},"multiset s;\nmultiset ss;\n")),(0,r.kt)("p",null,"multiset\u548cset\u7684\u57fa\u672c\u64cd\u4f5c\u76f8\u4f3c\uff0c\u9700\u8981\u6ce8\u610f\u7684\u662f\uff0c\u96c6\u5408\u7684count()\u80fd\u8fd4\u56de0\uff08\u65e0\uff09\u6216\u80051\uff08\u6709\uff09\uff0c\u800c\u591a\u91cd\u96c6\u5408\u662f\u6709\u591a\u5c11\u4e2a\u8fd4\u56de\u591a\u5c11\u4e2a\u3002"),(0,r.kt)("h3",{id:"bitset"},"bitset"),(0,r.kt)("p",null,(0,r.kt)("strong",{parentName:"p"},"\u5934\u6587\u4ef6\uff1abitset")),(0,r.kt)("p",null,"\u5728 STLSTL \u7684\u5934\u6587\u4ef6\u4e2d bitset\u4e2d\u5b9a\u4e49\u4e86\u6a21\u7248\u7c7b bitsetbitset\uff0c\u7528\u6765\u65b9\u4fbf\u5730\u7ba1\u7406\u4e00\u7cfb\u5217\u7684 bitbit \u4f4d\u7684\u7c7b\u3002bitsetbitset \u9664\u4e86\u53ef\u4ee5\u8bbf\u95ee\u6307\u5b9a\u4e0b\u6807\u7684 bitbit \u4f4d\u4ee5\u5916\uff0c\u8fd8\u53ef\u4ee5\u628a\u5b83\u4eec\u4f5c\u4e3a\u4e00\u4e2a\u6574\u6570\u6765\u8fdb\u884c\u67d0\u4e9b\u7edf\u8ba1\u3002"),(0,r.kt)("p",null,"bitsetbitset \u6a21\u677f\u7c7b\u9700\u8981\u4e00\u4e2a\u6a21\u7248\u53c2\u6570\uff0c\u7528\u6765\u660e\u786e\u6307\u5b9a\u542b\u6709\u591a\u5c11\u4f4d\u3002"),(0,r.kt)("p",null,"\u5b9a\u4e49 bitsetbitset \u5bf9\u8c61\u7684\u793a\u4f8b\u4ee3\u7801\uff1a"),(0,r.kt)("pre",null,(0,r.kt)("code",{parentName:"pre",className:"language-c++"},'const int MAXN = 32;\nbitset bt; // bt \u5305\u62ec MAXN \u4f4d\uff0c\u4e0b\u6807 0 ~ MAXN - 1\uff0c\u9ed8\u8ba4\u521d\u59cb\u5316\u4e3a 0\nbitset bt1(0xf); // 0xf \u8868\u793a\u5341\u516d\u8fdb\u5236\u6570 f\uff0c\u5bf9\u5e94\u4e8c\u8fdb\u5236 1111\uff0c\u5c06 bt1 \u4f4e 4 \u4f4d\u521d\u59cb\u5316\u4e3a 1\nbitset bt2(012); // 012 \u8868\u793a\u516b\u8fdb\u5236\u6570 12\uff0c\u5bf9\u5e94\u4e8c\u8fdb\u5236 1010\uff0c\u5373\u5c06 bt2 \u4f4e 4 \u4f4d\u521d\u59cb\u5316\u4e3a 1010\nbitset bt3("1010"); // \u5c06 bt3 \u4f4e 4 \u4f4d\u521d\u59cb\u5316\u4e3a 1010\nbitset bt4(s, pos, n);// \u5c06 01 \u5b57\u7b26\u4e32 s \u7684 pos \u4f4d\u5f00\u59cb\u7684 n \u4f4d\u521d\u59cb\u5316 bt4\n')),(0,r.kt)("p",null,"bitsetbitset \u57fa\u672c\u64cd\u4f5c\uff1a"),(0,r.kt)("pre",null,(0,r.kt)("code",{parentName:"pre",className:"language-c++"},"bt.any() // bt \u4e2d\u662f\u5426\u5b58\u5728\u7f6e\u4e3a 1 \u7684\u4e8c\u8fdb\u5236\u4f4d\uff1f\nbt.none() // bt \u4e2d\u4e0d\u5b58\u5728\u7f6e\u4e3a 1 \u7684\u4e8c\u8fdb\u5236\u4f4d\u5417\uff1f\nbt.count() // bt \u4e2d\u7f6e\u4e3a 1 \u7684\u4e8c\u8fdb\u5236\u4f4d\u7684\u4e2a\u6570\nbt.size() // bt \u4e2d\u4e8c\u8fdb\u5236\u4f4d\u7684\u4e2a\u6570\nbt[pos] // \u8bbf\u95ee bt \u4e2d\u5728 pos \u5904\u7684\u4e8c\u8fdb\u5236\u4f4d\nbt.test(pos) // bt \u4e2d\u5728 pos \u5904\u7684\u4e8c\u8fdb\u5236\u4f4d\u662f\u5426\u4e3a 1\nbt.set() // \u628a bt \u4e2d\u6240\u6709\u4e8c\u8fdb\u5236\u4f4d\u90fd\u7f6e\u4e3a 1\nbt.set(pos) // \u628a bt \u4e2d\u5728 pos \u5904\u7684\u4e8c\u8fdb\u5236\u4f4d\u7f6e\u4e3a 1\nbt.reset() // \u628a bt \u4e2d\u6240\u6709\u4e8c\u8fdb\u5236\u4f4d\u90fd\u7f6e\u4e3a 0\nbt.reset(pos) // \u628a bt \u4e2d\u5728pos\u5904\u7684\u4e8c\u8fdb\u5236\u4f4d\u7f6e\u4e3a0\nbt.flip() // \u628a bt \u4e2d\u6240\u6709\u4e8c\u8fdb\u5236\u4f4d\u9010\u4f4d\u53d6\u53cd\nbt.flip(pos) // \u628a bt \u4e2d\u5728 pos \u5904\u7684\u4e8c\u8fdb\u5236\u4f4d\u53d6\u53cd\nbt[pos].flip() // \u540c\u4e0a\nbt.to_ulong() // \u7528 bt \u4e2d\u540c\u6837\u7684\u4e8c\u8fdb\u5236\u4f4d\u8fd4\u56de\u4e00\u4e2a unsigned long \u503c\nos << bt // \u628a bt \u4e2d\u7684\u4f4d\u96c6\u8f93\u51fa\u5230 os \u6d41\n")),(0,r.kt)("h2",{id:"\u56fe\u6a21\u677f"},"\u56fe\u6a21\u677f"),(0,r.kt)("h3",{id:"\u4e0d\u5e26\u51fa\u5165\u5ea6\u7684\u6700\u7b80\u6a21\u677f"},"\u4e0d\u5e26\u51fa\u5165\u5ea6\u7684\u6700\u7b80\u6a21\u677f"),(0,r.kt)("pre",null,(0,r.kt)("code",{parentName:"pre",className:"language-c++"},'#include \n#include \n#include \n \nusing namespace std;\n \n#define MAX(a, b) ((a) > (b) ? (a) : (b) )\n \n//\u5b9a\u4e49\u56fe\u7684\u5b9a\u70b9\ntypedef struct Vertex {\n int id;\n vector connectors; //\u5b58\u50a8\u8282\u70b9\u7684\u540e\u7eed\u8fde\u63a5\u9876\u70b9\u7f16\u53f7\n Vertex() : id(-1) {}\n Vertex(int nid) : id(nid) {}\n} Vertex;\n \n//\u5b9a\u4e49Graph\u7684\u90bb\u63a5\u8868\u8868\u793a\ntypedef struct Graph {\n vector vertexs; //\u5b58\u50a8\u5b9a\u70b9\u4fe1\u606f\n int nVertexs; //\u8ba1\u6570\uff1a\u90bb\u63a5\u6570\n bool isDAG; //\u6807\u5fd7\uff1a\u662f\u6709\u5411\u56fe\u5417\n \n Graph(int n, bool isDAG) : nVertexs(n), isDAG(isDAG) { vertexs.resize(n); }\n \n //\u5411\u56fe\u4e2d\u6dfb\u52a0\u8fb9\n bool addEdge(int id1, int id2) {\n if (!(MAX(id1, id2) < vertexs.size())) return false;\n \n if (isDAG) {\n vertexs[id1].connectors.push_back(id2);\n }\n else {\n vertexs[id1].connectors.push_back(id2);\n vertexs[id2].connectors.push_back(id1);\n }\n return true;\n }\n \n //\u5e7f\u5ea6\u4f18\u5148\u641c\u7d22\n vector BFS(int start) {\n set visited;\n vector g, rst;\n g.push_back(start);\n visited.insert(start);\n while(g.size() > 0) {\n int id = g[0]; \n g.erase(g.begin());\n rst.push_back(id);\n for(int i = 0; i < vertexs[id].connectors.size(); i++) {\n int id1 = vertexs[id].connectors[i];\n if (visited.count(id1) == 0) {\n g.push_back(id1);\n visited.insert(id1);\n }\n }\n }\n return rst;\n }\n \n //\u6df1\u5ea6\u4f18\u5148\u641c\u7d22\n vector DFS(int start) {\n set visited;\n vector g, rst;\n g.push_back(start);\n //cout << "push " << start << " ";\n visited.insert(start);\n rst.push_back(start);\n bool found;\n while(g.size() > 0) {\n int id = g[g.size()-1]; \n found = false;\n for(int i = 0; i < vertexs[id].connectors.size(); i++) {\n int id1 = vertexs[id].connectors[i];\n if (visited.count(id1) == 0) {\n g.push_back(id1);\n rst.push_back(id1);\n visited.insert(id1);\n //cout << "push " << id1 << " ";\n found = true;\n break;\n }\n }\n if (!found) {\n int id2 = g[g.size()-1];\n rst.push_back(-1 * id2);\n //cout << "pop " << id2 << " ";\n g.pop_back();\n }\n }\n //cout << endl;\n return rst;\n }\n} Graph;\n \nint main() {\n Graph g(8, false);\n g.addEdge(0, 1);\n g.addEdge(0, 3);\n g.addEdge(1, 2);\n g.addEdge(3, 4);\n g.addEdge(3, 5);\n g.addEdge(4, 5);\n g.addEdge(4, 6); \n g.addEdge(5, 6);\n g.addEdge(5, 7); \n g.addEdge(6, 7);\n vector bv = g.BFS(0);\n cout << "\u5bbd\u5ea6\u4f18\u5148\u641c\u7d22\u8282\u70b9\u987a\u5e8f\uff1a";\n for(int j = 0; j < bv.size(); j++)\n cout << bv[j] << " ";\n cout << endl;\n \n cout << "\u6df1\u5ea6\u4f18\u5148\u641c\u7d22\u8282\u70b9\u987a\u5e8f\uff1a";\n Graph g1(6, false);\n g1.addEdge(0, 1);\n g1.addEdge(0, 4);\n g1.addEdge(0, 5);\n g1.addEdge(1, 5);\n g1.addEdge(4, 5);\n g1.addEdge(5, 2);\n g1.addEdge(5, 3);\n g1.addEdge(2, 3);\n vector route = g1.DFS(0);\n for(int i = 0; i < route.size(); i++)\n cout << route[i] << " ";\n cout << endl;\n \n char ch;\n cin >> ch;\n return 0;\n}\n\n\n')),(0,r.kt)("h3",{id:"\u5e26\u51fa\u5165\u5ea6\u7684-2019\u63a8\u514d\u8bd5\u9898"},"\u5e26\u51fa\u5165\u5ea6\u7684 (2019\u63a8\u514d\u8bd5\u9898)"),(0,r.kt)("pre",null,(0,r.kt)("code",{parentName:"pre",className:"language-c++"},'#include \n#include \n#include \n#include \n#define MAX(a, b) ((a) > (b) ? (a) : (b) )\nusing namespace std;\nint n,m;\nvector inDegreelist,outDegreelist;\n \n//\u5b9a\u4e49\u56fe\u7684\u5b9a\u70b9\ntypedef struct Vertex {\n int id,inDegree,outDegree;\n vector connectors; //\u5b58\u50a8\u8282\u70b9\u7684\u540e\u7eed\u8fde\u63a5\u9876\u70b9\u7f16\u53f7\n Vertex() : id(-1),inDegree(0),outDegree(0) {}\n Vertex(int nid) : id(nid),inDegree(0),outDegree(0) {}\n} Vertex;\n \n//\u5b9a\u4e49Graph\u7684\u90bb\u63a5\u8868\u8868\u793a\ntypedef struct Graph {\n vector vertexs; //\u5b58\u50a8\u5b9a\u70b9\u4fe1\u606f\n int nVertexs; //\u8ba1\u6570\uff1a\u90bb\u63a5\u6570\n bool isDAG; //\u6807\u5fd7\uff1a\u662f\u6709\u5411\u56fe\u5417\n \n Graph(int n, bool isDAG) : nVertexs(n), isDAG(isDAG) { vertexs.resize(n); }\n Graph() : nVertexs(1), isDAG(1) { vertexs.resize(1); }\n //\u5411\u56fe\u4e2d\u6dfb\u52a0\u8fb9\n bool addEdge(int id1, int id2) {\n if (!(MAX(id1, id2) < vertexs.size())) return false;\n \n if (isDAG) {\n vertexs[id1].connectors.push_back(id2);\n vertexs[id1].outDegree++;\n vertexs[id2].inDegree++;\n }\n else {\n vertexs[id1].connectors.push_back(id2);\n vertexs[id2].connectors.push_back(id1);\n\n vertexs[id1].outDegree++;\n vertexs[id1].inDegree++;\n\n vertexs[id2].outDegree++;\n vertexs[id2].inDegree++;\n\n }\n return true;\n }\n} Graph;\n\nGraph g;\n\nvoid init(){\n cin>>n>>m;\n g=Graph(n, true);\n int src,dst;\n while(m--){\n cin>>src>>dst;\n g.addEdge(src,dst);\n }\n vector::iterator it = g.vertexs.begin();\n while(it!=g.vertexs.end()){\n inDegreelist.push_back(it->inDegree);\n outDegreelist.push_back(it->outDegree);\n it++;\n }\n}\nint countin(int n){\n return count(inDegreelist.begin(),inDegreelist.end(),n);\n}\nint countout(int n){\n return count(outDegreelist.begin(),outDegreelist.end(),n);\n}\n\nbool Is_List(){\n //\u6709\u4e00\u4e2ainDegree\u4e3a0\u7684\u5934\u548c\u4e00\u4e2aoutDegree\u4e3a0\u7684\u5c3e\uff0c\u4e14\u5176\u4f59\u8282\u70b9\u5165\u5ea6\u4e0e\u51fa\u5ea6\u90fd\u4e3a1;\n return (countin(0)==1)&&(countout(0)==1)&&(countin(1)==n-1)&&(countout(1)==n-1);\n}\n\nbool Is_Tree(){\n //\u6709\u4e00\u4e2ainDegree\u4e3a0\u7684\u5934\u4e14\u5176\u4f59\u8282\u70b9inDegree\u5747\u4e3a1\uff0c\u4e14\u4e0d\u662f\u94fe\u8868;\n return (countin(0)==1)&&(countin(1)==n-1);\n}\n\nbool topologicalSort(){//\u62d3\u6251\u6392\u5e8f\u5224\u65ad\u6709\u73af\u65e0\u73af\n int num=0;//\u8bb0\u5f55\u52a0\u5165\u62d3\u6251\u6392\u5e8f\u7684\u9876\u70b9\u6570\n queue q;\n for(int i=0;i\n#include\n\n#ifndef BASE\n#define BASE\n#define TRUE 1\n#define FALSE 0\n#define OK 1\n#define ERROR 0\n#define INFEASIBLE -1\n#define OVERFLOW -2\ntypedef int Status;\ntypedef int bool;\n#endif\n\n#define VertexType char //\u70b9\u7c7b\u578b\n#define VRType int //\u8fb9\u7c7b\u578b\n#define maxSize 100\nvoid Visit(VertexType e) {\n printf("%c", e);\n}\n\n#define MAX_VERTEX_NUM 20\ntypedef enum{DG, UDG} GraphKind;\ntypedef struct ArcNode{\n int adjV; //\u8fb9\u6307\u5411\u7684\u9876\u70b9\n VRType weight; //\u6743\u91cd\n struct ArcNode *next;\n}ArcNode; //\u8fb9\ntypedef struct VNode{\n VertexType data;\n ArcNode *firstarc;\n}VNode, AdjList[MAX_VERTEX_NUM]; //\u9876\u70b9\ntypedef struct{\n GraphKind kind;\n int vernum,arcnum;\n AdjList vers; \n}ALGraph;\n\n\n/*------------------------\n |7.14 \u521b\u5efa\u6709\u5411\u56fe\u7684\u90bb\u63a5\u8868|\n ------------------------*/\nStatus InitGraph_AL(ALGraph *pG) { //\u521d\u59cb\u5316\n int i;\n pG->arcnum = 0;\n pG->vernum = 0;\n for (i=0; ivers[i].firstarc = NULL; //VC++6.0\u4e2d\u6307\u9488\u521d\u59cb\u5316\u4e3a0xcccccccc\n return OK;\n}\nint LocateVex_AL(ALGraph G, VertexType e) { //\u5b9a\u4f4d\u503c\u4e3ae\u7684\u5143\u7d20\u4e0b\u6807\n int i;\n for (i=0; i\u5f27\u7684\u6570\u76ee->\u5404\u9876\u70b9\u7684\u4fe1\u606f->\u5404\u6761\u5f27\u7684\u4fe1\u606f\n int i,a,b;\n char tmp[MAX_VERTEX_NUM];\n char h,t;\n ArcNode *p, *q;\n\n InitGraph_AL(pG); //VC++6.0\u4e2d\u6307\u9488\u521d\u59cb\u5316\u4e3a0xcccccccc\uff0c\u5982\u679c\u4e0d\u5c06\u6307\u9488\u521d\u59cb\u5316\u4e3aNULL\uff0c\u4f1a\u51fa\u9519\n //\u56fe\u7684\u7c7b\u578b\n pG->kind = DG;\n //\u9876\u70b9\u6570\u76ee\n scanf("%d", &i); if (i<0) return ERROR;\n pG->vernum = i;\n //\u5f27\u7684\u6570\u76ee\n scanf("%d", &i); if (i<0) return ERROR;\n pG->arcnum = i;\n //\u5404\u9876\u70b9\u4fe1\u606f\n scanf("%s", tmp);\n for (i=0; ivernum; ++i) pG->vers[i].data=tmp[i];\n //\u5f27\u7684\u4fe1\u606f\n for (i=0; iarcnum; ++i) {\n scanf("%s", tmp);\n h = tmp[0]; t = tmp[2];\n a = LocateVex_AL(*pG, h);\n b = LocateVex_AL(*pG, t);\n if (a<0 || b<0) return ERROR;\n p = (ArcNode *)malloc(sizeof(ArcNode)); if (!p) exit(OVERFLOW);\n p->adjV=b;p->next=NULL;\n if (pG->vers[a].firstarc) { //\u5df2\u7ecf\u6709\u8fb9\u4e86\n for (q = pG->vers[a].firstarc; q->next; q=q->next) ; //\u627e\u5230\u6700\u540e\u4e00\u6761\n q->next = p;\n } else { //\u7b2c\u4e00\u6761\u8fb9\n pG->vers[a].firstarc = p;\n }\n }\n return OK;\n}\n\n/*----------------------------------------------------------------\n |7.28 \u6709\u5411\u56fe-\u4eceu-v\u7684\u6240\u6709\u7b80\u5355\u8def\u5f84 |\n ----------------------------------------------------------------*/\nint visit[MAX_VERTEX_NUM]; //\u524d\u9762\u5b9a\u4e49\u4e86\nVertexType paths[maxSize][MAX_VERTEX_NUM]; //\u5b58\u653e\u8def\u5f84\nint path[MAX_VERTEX_NUM]; //\u8def\u5f84\nint pathnum=0; //\u5f53\u524d\u662f\u7b2c\u51e0\u6761\u8def\u5f84\nvoid FindAllPath(ALGraph G, int u,int v,int k) { //u->v\u5f53\u524d\u662f\u7b2ck\u4e2a\u4f4d\u7f6e\n int i;\n ArcNode *p;\n visit[u]=1; //\u8d70\u5230\u4e86u\n path[k]=u; //\u6dfb\u52a0\u5230\u8def\u5f84->\u4e0b\u6807\u4f4d\u7f6e\u4e3ak\u7684\u7ed3\u70b9\u662fu\uff08\u7b2ck+1\u4e2a\u662fu\uff09\n if (u==v) { //\u627e\u5230\u4e86\n for (i=0; i<=k; i++) {//\u590d\u5236\u5230paths\n paths[pathnum][i] = G.vers[path[i]].data;\n }\n paths[pathnum][i]=\'\\0\'; //\u7ed3\u675f\u7b26\n pathnum++; //\u627e\u4e0b\u4e00\u6761\u8def\u5f84\n } else {\n //u\u7684\u90bb\u8fb9\u5f00\u59cb\u627e\n for (p=G.vers[u].firstarc; p; p=p->next) {\n if (visit[p->adjV]==0)\n FindAllPath(G, p->adjV, v, k+1); //\u53bb\u8fd9\u4e2a\u90bb\u63a5\u70b9\u627e\n }\n }\n // \u56de\u6eaf\u5230\u4e0a\u4e00\u4e2a\u7ed3\u70b9\n // \u6ce8\u610f\uff1a\u56de\u6eaf\u5e94\u8be5\u5199\u5728\u5916\u9762--\x3e\u4e5f\u5c31\u662f\u4e0d\u7ba1\u6709\u6ca1\u6709\u627e\u5230\u90fd\u8981\u56de\u6eaf\n visit[u]=0;\n path[k]=0;\n}\n\n\nint main() {\n/*7.28\n6\n11\nABCDEF\nB,A\nB,D\nC,B\nC,F\nD,C\nD,E\nD,F\nE,A\nF,A\nF,B\nF,E\nB->A\nA->B\nD->A\n*/\n int i,j;\n int cnt;\n ALGraph G;\n char tmp[20];\n\n CreateDG_AL(&G);\n\n while (1) {\n scanf("%s", tmp); //A->B\n i = LocateVex_AL(G, tmp[0]);\n j = LocateVex_AL(G, tmp[3]);\n for (cnt=0; cnt\n#include\n \n#define mem(a,b) memset(a,b,sizeof a);\n \nusing namespace std;\n \ntypedef long long ll;\n \nconst int maxn=50;\nint mid[maxn],po[maxn],pr[maxn];\nint first;\n \nstruct node\n{\n int l,r;\n}T[maxn];\n \n// \u4e2d\u5e8f+\u5148\u5e8f=>\u4e8c\u53c9\u6811\nint mid_pr_build(int la,int ra,int lb,int rb) // la,ra\uff1a\u8868\u793a\u4e2d\u5e8f\u904d\u5386 lb,rb\uff1a\u8868\u793a\u5148\u5e8f\u904d\u5386\n{\n\xa0\xa0\xa0\xa0// \u8fd9\u91cc\u4e0d\u80fd\u7b49\u4e8e\uff0c\u56e0\u4e3a\u5047\u8bbe\uff1alen==1\uff0c\u5219la==ra\uff0c\u76f4\u63a5\u8fd4\u56de\uff0c\u4f46\u662f\u5b9e\u9645\u4e0a\u662f\u6709\u4e00\u4e2a rt \u7684\uff0c\u5374\u6ca1\u88ab\u5efa\u7acb\n if(la>ra) return 0; \n int rt=pr[lb]; // \u56e0\u4e3a\u5148\u5e8f\u904d\u5386\u7b2c\u4e00\u4e2a\u662f\u6839\u8282\u70b9\n int p1=la,p2;\n \n while(mid[p1]!=rt) p1++; // \u5728\u4e2d\u5e8f\u904d\u5386\u4e2d\u627e\u5230\u6839\u8282\u70b9\n p2=p1-la;\n T[rt].l=mid_pr_build(la,p1-1,lb+1,lb+p2); // \u5de6\u5b50\u6811\uff08\u9501\u5b9a\u5de6\u5b50\u6811\u8303\u56f4\u7684\u4e0b\u6807\uff09\n T[rt].r=mid_pr_build(p1+1,ra,lb+p2+1,rb); // \u53f3\u5b50\u6811\uff08\u9501\u5b9a\u53f3\u5b50\u6811\u8303\u56f4\u7684\u4e0b\u6807\uff09\n \n return rt;\n}\n \n// \u4e2d\u5e8f+\u540e\u5e8f=>\u4e8c\u53c9\u6811\nint mid_po_build(int la,int ra,int lb,int rb) // la,ra\uff1a\u8868\u793a\u4e2d\u5e8f\u904d\u5386 lb,rb\uff1a\u8868\u793a\u540e\u5e8f\u904d\u5386\n{\n if(la>ra) return 0;\n int rt=po[rb]; // \u56e0\u4e3a\u540e\u5e8f\u904d\u5386\u6700\u540e\u4e00\u4e2a\u662f\u6839\u8282\u70b9\n int p1=la,p2;\n \n while(mid[p1]!=rt) p1++; // \u5728\u4e2d\u5e8f\u904d\u5386\u4e2d\u627e\u5230\u6839\u8282\u70b9\n p2=p1-la;\n T[rt].l=mid_po_build(la,p1-1,lb,lb+p2-1); // \u5de6\u5b50\u6811\uff08\u9501\u5b9a\u5de6\u5b50\u6811\u8303\u56f4\u7684\u4e0b\u6807\uff09\n T[rt].r=mid_po_build(p1+1,ra,lb+p2,rb-1); // \u53f3\u5b50\u6811\uff08\u9501\u5b9a\u53f3\u5b50\u6811\u8303\u56f4\u7684\u4e0b\u6807\uff09\n \n return rt;\n}\n \n// \u6c42\u6811\u9ad8\nint getHeight(int rt)\n{\n\xa0 \xa0 if(rt==0) return 0;\n\xa0 \xa0 return 1+max(getHeight(T[rt].l),getHeight(T[rt].r));\n}\n \n// \u5c42\u5e8f\u904d\u5386\nvoid bfs(int rt)\n{\n queue q;\n vector v;\n q.push(rt);\n \n while(!q.empty())\n {\n int w=q.front();\n q.pop();\n v.push_back(w);\n if(T[w].l!=0) q.push(T[w].l);\n if(T[w].r!=0) q.push(T[w].r);\n }\n \n int len=v.size();\n for(int i=0;i\n#include\n \n#define mem(a,b) memset(a,b,sizeof a);\n \nusing namespace std;\n \ntypedef long long ll;\n \nconst int maxn=50;\nint mid[maxn],po[maxn],pr[maxn];\nint first;\n \nstruct node\n{\n int l,r;\n}T[maxn];\n \nint mid_pr_build(int la,int ra,int lb,int rb)\n{\n if(la>ra) return 0;\n int rt=pr[lb];\n int p1=la,p2;\n \n while(mid[p1]!=rt) p1++;\n p2=p1-la;\n T[rt].l=mid_pr_build(la,p1-1,lb+1,lb+p2);\n T[rt].r=mid_pr_build(p1+1,ra,lb+p2+1,rb);\n \n return rt;\n}\n \nint mid_po_build(int la,int ra,int lb,int rb)\n{\n if(la>ra) return 0;\n int rt=po[rb];\n int p1=la,p2;\n \n while(mid[p1]!=rt) p1++;\n p2=p1-la;\n T[rt].l=mid_po_build(la,p1-1,lb,lb+p2-1);\n T[rt].r=mid_po_build(p1+1,ra,lb+p2,rb-1);\n \n return rt;\n}\n \nint getHeight(int rt)\n{\n\xa0 \xa0 if(rt==0) return 0;\n\xa0 \xa0 return 1+max(getHeight(T[rt].l),getHeight(T[rt].r));\n}\n \nvoid bfs(int rt)\n{\n queue q;\n vector v;\n q.push(rt);\n \n while(!q.empty())\n {\n int w=q.front();\n q.pop();\n v.push_back(w);\n if(T[w].l!=0) q.push(T[w].l);\n if(T[w].r!=0) q.push(T[w].r);\n }\n \n int len=v.size();\n for(int i=0;i\n#include\n \n#define mem(a,b) memset(a,b,sizeof a)\n#define ssclr(ss) ss.clear(), ss.str("")\n#define INF 0x3f3f3f3f\n#define MOD 1000000007\n \nusing namespace std;\n \ntypedef long long ll;\n \nconst int maxn=5e4+1000;\n \nint f;\nint pre[maxn], in[maxn];\n \nstruct node\n{\n int l,r,d;\n}T[maxn];\n \nint create(int l1,int r1,int l2,int r2) // in pre\n{\n if(l2>r2) return -1;\n int rt=l2;\n int p1=l1,p2;\n \n while(in[p1]!=pre[rt]) p1++;\n p2=p1-l1;\n \n T[rt].d=pre[rt];\n T[rt].l=create(l1,p1-1,l2+1,l2+p2);\n T[rt].r=create(p1+1,r1,l2+p2+1,r2);\n \n return rt;\n}\n \nvoid postT(int rt)\n{\n if(rt==-1 || !f) return;\n postT(T[rt].l);\n postT(T[rt].r);\n if(f) f=0, printf("%d\\n",T[rt].d);\n}\n \nint main()\n{\n int n;\n scanf("%d",&n);\n for(int i=0;i{r.d(t,{Zo:()=>s,kt:()=>d});var n=r(7294);function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function a(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var l=n.createContext({}),p=function(e){var t=n.useContext(l),r=t;return e&&(r="function"==typeof e?e(t):a(a({},t),e)),r},s=function(e){var t=p(e.components);return n.createElement(l.Provider,{value:t},e.children)},u="mdxType",f={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},m=n.forwardRef((function(e,t){var r=e.components,o=e.mdxType,i=e.originalType,l=e.parentName,s=c(e,["components","mdxType","originalType","parentName"]),u=p(r),m=o,d=u["".concat(l,".").concat(m)]||u[m]||f[m]||i;return r?n.createElement(d,a(a({ref:t},s),{},{components:r})):n.createElement(d,a({ref:t},s))}));function d(e,t){var r=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var i=r.length,a=new Array(i);a[0]=m;var c={};for(var l in t)hasOwnProperty.call(t,l)&&(c[l]=t[l]);c.originalType=e,c[u]="string"==typeof e?e:o,a[1]=c;for(var p=2;p{r.r(t),r.d(t,{assets:()=>l,contentTitle:()=>a,default:()=>f,frontMatter:()=>i,metadata:()=>c,toc:()=>p});var n=r(7462),o=(r(7294),r(3905));const i={},a="Welcome",c={unversionedId:"Others/intro",id:"Others/intro",title:"Welcome",description:"\u6b22\u8fce\u6765\u5230\u7b14\u8bb0\u672c\u7684\u5176\u4ed6\u90e8\u5206",source:"@site/docs/Others/1-intro.md",sourceDirName:"Others",slug:"/Others/intro",permalink:"/en/docs/Others/intro",draft:!1,tags:[],version:"current",sidebarPosition:1,frontMatter:{},sidebar:"others",next:{title:"\u7ec8\u7aef\u4ee3\u7406",permalink:"/en/docs/Others/Linux/\u5b9e\u7528\u5de5\u5177/\u7ec8\u7aef\u4ee3\u7406"}},l={},p=[{value:"\u652f\u6301\u6211\uff01",id:"\u652f\u6301\u6211",level:2}],s={toc:p},u="wrapper";function f(e){let{components:t,...i}=e;return(0,o.kt)(u,(0,n.Z)({},s,i,{components:t,mdxType:"MDXLayout"}),(0,o.kt)("h1",{id:"welcome"},"Welcome"),(0,o.kt)("admonition",{type:"tip"},(0,o.kt)("p",{parentName:"admonition"},"\u6b22\u8fce\u6765\u5230\u7b14\u8bb0\u672c\u7684\u5176\u4ed6\u90e8\u5206")),(0,o.kt)("h2",{id:"\u652f\u6301\u6211"},"\u652f\u6301\u6211\uff01"),(0,o.kt)("p",null,"\u5982\u679c\u53ef\u4ee5\u5e2e\u5230\u4f60\u7684\u8bdd\u5c31\u7ed9\u4e2a\u514d\u8d39\u7684Star\u5427\uff01"),(0,o.kt)("p",null,(0,o.kt)("img",{src:r(9163).Z,width:"2778",height:"2046"})))}f.isMDXComponent=!0},9163:(e,t,r)=>{r.d(t,{Z:()=>n});const n=r.p+"assets/images/intro-822c34cd9b5577b06df8bb0956cdf947.png"}}]); \ No newline at end of file diff --git a/en/assets/js/459eb724.1a1d6c35.js b/en/assets/js/459eb724.1a1d6c35.js new file mode 100644 index 000000000..f465b4913 --- /dev/null +++ b/en/assets/js/459eb724.1a1d6c35.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunknpy_notebook=self.webpackChunknpy_notebook||[]).push([[3553],{3905:(a,e,t)=>{t.d(e,{Zo:()=>i,kt:()=>h});var s=t(7294);function m(a,e,t){return e in a?Object.defineProperty(a,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):a[e]=t,a}function n(a,e){var t=Object.keys(a);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(a);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable}))),t.push.apply(t,s)}return t}function p(a){for(var e=1;e=0||(m[t]=a[t]);return m}(a,e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);for(s=0;s=0||Object.prototype.propertyIsEnumerable.call(a,t)&&(m[t]=a[t])}return m}var N=s.createContext({}),l=function(a){var e=s.useContext(N),t=e;return a&&(t="function"==typeof a?a(e):p(p({},e),a)),t},i=function(a){var e=l(a.components);return s.createElement(N.Provider,{value:e},a.children)},k="mdxType",c={inlineCode:"code",wrapper:function(a){var e=a.children;return s.createElement(s.Fragment,{},e)}},o=s.forwardRef((function(a,e){var t=a.components,m=a.mdxType,n=a.originalType,N=a.parentName,i=r(a,["components","mdxType","originalType","parentName"]),k=l(t),o=m,h=k["".concat(N,".").concat(o)]||k[o]||c[o]||n;return t?s.createElement(h,p(p({ref:e},i),{},{components:t})):s.createElement(h,p({ref:e},i))}));function h(a,e){var t=arguments,m=e&&e.mdxType;if("string"==typeof a||m){var n=t.length,p=new Array(n);p[0]=o;var r={};for(var N in e)hasOwnProperty.call(e,N)&&(r[N]=e[N]);r.originalType=a,r[k]="string"==typeof a?a:m,p[1]=r;for(var l=2;l{t.r(e),t.d(e,{assets:()=>N,contentTitle:()=>p,default:()=>c,frontMatter:()=>n,metadata:()=>r,toc:()=>l});var s=t(7462),m=(t(7294),t(3905));const n={},p="NeurIPS 2017: Attention Is All You Need",r={unversionedId:"Deep-Learning/\u5927\u6a21\u578b/Attention-Is-All-You-Need",id:"Deep-Learning/\u5927\u6a21\u578b/Attention-Is-All-You-Need",title:"NeurIPS 2017: Attention Is All You Need",description:"\u8bba\u6587\uff1aarXiv",source:"@site/docs/Deep-Learning/5-\u5927\u6a21\u578b/2-Attention-Is-All-You-Need.md",sourceDirName:"Deep-Learning/5-\u5927\u6a21\u578b",slug:"/Deep-Learning/\u5927\u6a21\u578b/Attention-Is-All-You-Need",permalink:"/en/docs/Deep-Learning/\u5927\u6a21\u578b/Attention-Is-All-You-Need",draft:!1,tags:[],version:"current",sidebarPosition:2,frontMatter:{},sidebar:"deep_learning",previous:{title:"\u81ea\u6ce8\u610f\u529b\uff08Self-Attention\uff09",permalink:"/en/docs/Deep-Learning/\u5927\u6a21\u578b/Self-Attention"},next:{title:"\u81ea\u76d1\u7763\u5b66\u4e60\uff08Self-Supervised Learning\uff09",permalink:"/en/docs/Deep-Learning/\u5927\u6a21\u578b/Self-Supervised-Learning"}},N={},l=[{value:"\u6574\u4f53\u7ed3\u6784",id:"\u6574\u4f53\u7ed3\u6784",level:2},{value:"Encoder",id:"encoder",level:2},{value:"\u6574\u4f53\u7ed3\u6784",id:"\u6574\u4f53\u7ed3\u6784-1",level:3},{value:"\u4f4d\u7f6e\u7f16\u7801\uff08Positional Encoding\uff09",id:"\u4f4d\u7f6e\u7f16\u7801positional-encoding",level:3},{value:"\u5177\u4f53\u7ed3\u6784",id:"\u5177\u4f53\u7ed3\u6784",level:3},{value:"Decoder",id:"decoder",level:2},{value:"Autoregressive Decoder\uff08AT\uff09",id:"autoregressive-decoderat",level:3},{value:"\u6574\u4f53\u7ed3\u6784",id:"\u6574\u4f53\u7ed3\u6784-2",level:4},{value:"\u8bcd\u6c47\u8868\uff08Vocabulary\uff09",id:"\u8bcd\u6c47\u8868vocabulary",level:4},{value:"Begin\u7b26\u53f7",id:"begin\u7b26\u53f7",level:4},{value:"End\u7b26\u53f7",id:"end\u7b26\u53f7",level:4},{value:"\u63a9\u7801\u591a\u5934\u81ea\u6ce8\u610f\u529b\u673a\u5236\uff08Masked Multi-Head Self-Attention\uff09",id:"\u63a9\u7801\u591a\u5934\u81ea\u6ce8\u610f\u529b\u673a\u5236masked-multi-head-self-attention",level:4},{value:"\u4ea4\u53c9\u6ce8\u610f\u529b\uff08Cross-Attention\uff09",id:"\u4ea4\u53c9\u6ce8\u610f\u529bcross-attention",level:4},{value:"Non-Autoregressive Decoder\uff08NAT\uff09",id:"non-autoregressive-decodernat",level:3},{value:"\u8bad\u7ec3\uff08Training\uff09",id:"\u8bad\u7ec3training",level:2},{value:"\u635f\u5931\u51fd\u6570",id:"\u635f\u5931\u51fd\u6570",level:3},{value:"Teacher Forcing",id:"teacher-forcing",level:3},{value:"Teacher Forcing\u4e0eMasked Multi-Head Self-Attention",id:"teacher-forcing\u4e0emasked-multi-head-self-attention",level:3}],i={toc:l},k="wrapper";function c(a){let{components:e,...t}=a;return(0,m.kt)(k,(0,s.Z)({},i,t,{components:e,mdxType:"MDXLayout"}),(0,m.kt)("h1",{id:"neurips-2017-attention-is-all-you-need"},"NeurIPS 2017: Attention Is All You Need"),(0,m.kt)("admonition",{title:"\u76f8\u5173\u94fe\u63a5",type:"tip"},(0,m.kt)("p",{parentName:"admonition"},"\u8bba\u6587\uff1a",(0,m.kt)("a",{parentName:"p",href:"https://arxiv.org/pdf/1706.03762.pdf"},"arXiv")),(0,m.kt)("p",{parentName:"admonition"},"\u53c2\u8003\u8d44\u6599\uff1a"),(0,m.kt)("ul",{parentName:"admonition"},(0,m.kt)("li",{parentName:"ul"},(0,m.kt)("a",{parentName:"li",href:"https://zhuanlan.zhihu.com/p/338817680"},"Transformer\u6a21\u578b\u8be6\u89e3\uff08\u56fe\u89e3\u6700\u5b8c\u6574\u7248\uff09")),(0,m.kt)("li",{parentName:"ul"},(0,m.kt)("a",{parentName:"li",href:"https://www.youtube.com/watch?v=N6aRv06iv2g&list=PLJV_el3uVTsMhtt7_Y6sgTHGHp1Vb2P2J&index=13"},"\u3010\u6a5f\u5668\u5b78\u7fd22021\u3011Transformer (\u4e0b)")))),(0,m.kt)("p",null,"Transformer\u662fSequence-to-Sequence (Seq2Seq) \u6a21\u578b\uff0c\u6a21\u578b\u7684\u8f93\u5165\u662f\u5411\u91cf\u5e8f\u5217\uff0c\u8f93\u51fa\u540c\u6837\u662f\u5411\u91cf\u5e8f\u5217\uff0c\u4e14\u8f93\u51fa\u7684\u957f\u5ea6\u7531\u6a21\u578b\u7ecf\u8fc7\u5b66\u4e60\u51b3\u5b9a\u3002"),(0,m.kt)("h2",{id:"\u6574\u4f53\u7ed3\u6784"},"\u6574\u4f53\u7ed3\u6784"),(0,m.kt)("p",null,"Transformer\u7531Encoder\u548cDecoder\u7ec4\u6210\uff0c\u7f16\u7801\u5668\u548c\u89e3\u7801\u5668\u90fd\u5305\u542b6\u4e2aBlock\uff0c\u6574\u4f53\u7ed3\u6784\u5982\u4e0b\u56fe\u6240\u793a\u3002"),(0,m.kt)("p",null,(0,m.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_imagesimage-20231119110150110.png",alt:"image-20231119110150110"})),(0,m.kt)("h2",{id:"encoder"},"Encoder"),(0,m.kt)("h3",{id:"\u6574\u4f53\u7ed3\u6784-1"},"\u6574\u4f53\u7ed3\u6784"),(0,m.kt)("p",null,"Transformer Encoder\u7ed3\u6784\u5982\u4e0b\u56fe\u6240\u793a\u3002\u5176\u4e2d\uff0cAdd\u6307\u7684\u662f\u6b8b\u5dee\u8fde\u63a5Residual Connection\uff0cNorm\u6307\u7684\u662fLayer Normalization\u3002"),(0,m.kt)("p",null,(0,m.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_imagesimage-20231115165100210.png",alt:"image-20231115164324713"})),(0,m.kt)("h3",{id:"\u4f4d\u7f6e\u7f16\u7801positional-encoding"},"\u4f4d\u7f6e\u7f16\u7801\uff08Positional Encoding\uff09"),(0,m.kt)("p",null,"\u5bf9\u4e8e\u8f93\u5165\u7684\u53e5\u5b50\uff0c\u5bf9\u4e00\u4e2a\u8bcd\u6c47\u7684\u5d4c\u5165\u5411\u91cf\u7684\u5947\u6570\u7ef4\u5ea6\u4f7f\u7528sine\u51fd\u6570\u8fdb\u884c\u7f16\u7801\uff0c\u5bf9\u5076\u6570\u7ef4\u5ea6\u4f7f\u7528cosine\u51fd\u6570\u8ba1\u7b97\u7f16\u7801\u3002"),(0,m.kt)("p",null,"\u516c\u5f0f\u5982\u4e0b\u6240\u793a\uff0c\u5176\u4e2d",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"p"),(0,m.kt)("mi",{parentName:"mrow"},"o"),(0,m.kt)("mi",{parentName:"mrow"},"s")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"pos")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.625em",verticalAlign:"-0.1944em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"p"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"os"))))),"\u6307\u7684\u662f\u8be5\u8bcd\u6c47\u5728\u6574\u4e2a\u8f93\u5165\u53e5\u5b50\u4e2d\u7684\u4f4d\u7f6e\uff0c",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mn",{parentName:"mrow"},"2"),(0,m.kt)("mi",{parentName:"mrow"},"i")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"2i")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6595em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"2"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"i"))))),"\u4ee5\u53ca",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mn",{parentName:"mrow"},"2"),(0,m.kt)("mi",{parentName:"mrow"},"i"),(0,m.kt)("mo",{parentName:"mrow"},"+"),(0,m.kt)("mn",{parentName:"mrow"},"1")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"2i+1")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.7429em",verticalAlign:"-0.0833em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"2"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"i"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"+"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6444em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"1"))))),"\u6307\u7684\u662f\u8be5\u8bcd\u6c47\u7684\u5d4c\u5165\u5411\u91cf\u4e2d\u7684\u7ef4\u5ea6\uff0c",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"d"),(0,m.kt)("mrow",{parentName:"msub"},(0,m.kt)("mi",{parentName:"mrow"},"m"),(0,m.kt)("mi",{parentName:"mrow"},"o"),(0,m.kt)("mi",{parentName:"mrow"},"d"),(0,m.kt)("mi",{parentName:"mrow"},"e"),(0,m.kt)("mi",{parentName:"mrow"},"l")))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"d_{model}")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.8444em",verticalAlign:"-0.15em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"d"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3361em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"m"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"o"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"d"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"e"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.01968em"}},"l"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))))))),"\u6307\u7684\u662f\u5728\u5d4c\u5165\u5c42\u4e4b\u540e\u5d4c\u5165\u5411\u91cf\u7684\u603b\u7ef4\u5ea6\u3002\u5373\u5bf9\u4e8e\u6bcf\u4e2a\u8f93\u5165\u8bcd\u6c47\uff0c\u90fd\u8981\u8ba1\u7b97",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"d"),(0,m.kt)("mrow",{parentName:"msub"},(0,m.kt)("mi",{parentName:"mrow"},"m"),(0,m.kt)("mi",{parentName:"mrow"},"o"),(0,m.kt)("mi",{parentName:"mrow"},"d"),(0,m.kt)("mi",{parentName:"mrow"},"e"),(0,m.kt)("mi",{parentName:"mrow"},"l")))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"d_{model}")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.8444em",verticalAlign:"-0.15em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"d"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3361em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"m"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"o"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"d"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"e"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.01968em"}},"l"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))))))),"\u6b21\u4f4d\u7f6e\u7f16\u7801\u3002"),(0,m.kt)("div",{className:"math math-display"},(0,m.kt)("span",{parentName:"div",className:"katex-display"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mtable",{parentName:"semantics",width:"100%"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mrow",{parentName:"mtd"},(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"E"),(0,m.kt)("mrow",{parentName:"msub"},(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"p"),(0,m.kt)("mi",{parentName:"mrow"},"o"),(0,m.kt)("mi",{parentName:"mrow"},"s"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mn",{parentName:"mrow"},"2"),(0,m.kt)("mi",{parentName:"mrow"},"i"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"))),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("mi",{parentName:"mrow"},"s"),(0,m.kt)("mi",{parentName:"mrow"},"i"),(0,m.kt)("mi",{parentName:"mrow"},"n"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mfrac",{parentName:"mrow"},(0,m.kt)("mrow",{parentName:"mfrac"},(0,m.kt)("mi",{parentName:"mrow"},"p"),(0,m.kt)("mi",{parentName:"mrow"},"o"),(0,m.kt)("mi",{parentName:"mrow"},"s")),(0,m.kt)("mrow",{parentName:"mfrac"},(0,m.kt)("mn",{parentName:"mrow"},"1000"),(0,m.kt)("msup",{parentName:"mrow"},(0,m.kt)("mn",{parentName:"msup"},"0"),(0,m.kt)("mrow",{parentName:"msup"},(0,m.kt)("mn",{parentName:"mrow"},"2"),(0,m.kt)("mi",{parentName:"mrow"},"i"),(0,m.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"/"),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"d"),(0,m.kt)("mrow",{parentName:"msub"},(0,m.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"m"),(0,m.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"o"),(0,m.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"d"),(0,m.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"e"),(0,m.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"l"))))))),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"))),(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mtext",{parentName:"mtd"},"(1)")))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"PE_{(pos,2i)}=sin(\\frac{pos}{10000^{2i/d_{\\mathrm{model}}}}) \\tag{1}")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1.0385em",verticalAlign:"-0.3552em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"P"),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05764em"}},"E"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3448em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.5198em",marginLeft:"-0.0576em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mopen mtight"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"p"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"os"),(0,m.kt)("span",{parentName:"span",className:"mpunct mtight"},","),(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"2"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"i"),(0,m.kt)("span",{parentName:"span",className:"mclose mtight"},")"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3552em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"="),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1.8116em",verticalAlign:"-0.704em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"s"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"in"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mopen nulldelimiter"}),(0,m.kt)("span",{parentName:"span",className:"mfrac"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.1076em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.296em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"1000"),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"0"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.814em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.989em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"2"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"i"),(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"/"),(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"d"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3448em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.3488em",marginLeft:"0em",marginRight:"0.0714em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.5em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size3 size1 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathrm mtight"},"model")))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.1512em"}},(0,m.kt)("span",{parentName:"span"})))))))))))))))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.23em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"frac-line",style:{borderBottomWidth:"0.04em"}})),(0,m.kt)("span",{parentName:"span",style:{top:"-3.677em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"p"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"os")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.704em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"mclose nulldelimiter"})),(0,m.kt)("span",{parentName:"span",className:"mclose"},")")),(0,m.kt)("span",{parentName:"span",className:"tag"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1.8116em",verticalAlign:"-0.704em"}}),(0,m.kt)("span",{parentName:"span",className:"mord text"},(0,m.kt)("span",{parentName:"span",className:"mord"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"1")),(0,m.kt)("span",{parentName:"span",className:"mord"},")"))))))),(0,m.kt)("div",{className:"math math-display"},(0,m.kt)("span",{parentName:"div",className:"katex-display"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mtable",{parentName:"semantics",width:"100%"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mrow",{parentName:"mtd"},(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"E"),(0,m.kt)("mrow",{parentName:"msub"},(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"p"),(0,m.kt)("mi",{parentName:"mrow"},"o"),(0,m.kt)("mi",{parentName:"mrow"},"s"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mn",{parentName:"mrow"},"2"),(0,m.kt)("mi",{parentName:"mrow"},"i"),(0,m.kt)("mo",{parentName:"mrow"},"+"),(0,m.kt)("mn",{parentName:"mrow"},"1"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"))),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("mi",{parentName:"mrow"},"c"),(0,m.kt)("mi",{parentName:"mrow"},"o"),(0,m.kt)("mi",{parentName:"mrow"},"s"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mfrac",{parentName:"mrow"},(0,m.kt)("mrow",{parentName:"mfrac"},(0,m.kt)("mi",{parentName:"mrow"},"p"),(0,m.kt)("mi",{parentName:"mrow"},"o"),(0,m.kt)("mi",{parentName:"mrow"},"s")),(0,m.kt)("mrow",{parentName:"mfrac"},(0,m.kt)("mn",{parentName:"mrow"},"1000"),(0,m.kt)("msup",{parentName:"mrow"},(0,m.kt)("mn",{parentName:"msup"},"0"),(0,m.kt)("mrow",{parentName:"msup"},(0,m.kt)("mn",{parentName:"mrow"},"2"),(0,m.kt)("mi",{parentName:"mrow"},"i"),(0,m.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"/"),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"d"),(0,m.kt)("mrow",{parentName:"msub"},(0,m.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"m"),(0,m.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"o"),(0,m.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"d"),(0,m.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"e"),(0,m.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"l"))))))),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"))),(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mtext",{parentName:"mtd"},"(2)")))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"PE_{(pos,2i+1)}=cos(\\frac{pos}{10000^{2i/d_{\\mathrm{model}}}}) \\tag{2}")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1.0385em",verticalAlign:"-0.3552em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"P"),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05764em"}},"E"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3448em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.5198em",marginLeft:"-0.0576em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mopen mtight"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"p"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"os"),(0,m.kt)("span",{parentName:"span",className:"mpunct mtight"},","),(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"2"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"i"),(0,m.kt)("span",{parentName:"span",className:"mbin mtight"},"+"),(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"1"),(0,m.kt)("span",{parentName:"span",className:"mclose mtight"},")"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3552em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"="),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1.8116em",verticalAlign:"-0.704em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"cos"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mopen nulldelimiter"}),(0,m.kt)("span",{parentName:"span",className:"mfrac"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.1076em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.296em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"1000"),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"0"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.814em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.989em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"2"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"i"),(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"/"),(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"d"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3448em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.3488em",marginLeft:"0em",marginRight:"0.0714em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.5em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size3 size1 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathrm mtight"},"model")))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.1512em"}},(0,m.kt)("span",{parentName:"span"})))))))))))))))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.23em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"frac-line",style:{borderBottomWidth:"0.04em"}})),(0,m.kt)("span",{parentName:"span",style:{top:"-3.677em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"p"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"os")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.704em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"mclose nulldelimiter"})),(0,m.kt)("span",{parentName:"span",className:"mclose"},")")),(0,m.kt)("span",{parentName:"span",className:"tag"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1.8116em",verticalAlign:"-0.704em"}}),(0,m.kt)("span",{parentName:"span",className:"mord text"},(0,m.kt)("span",{parentName:"span",className:"mord"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"2")),(0,m.kt)("span",{parentName:"span",className:"mord"},")"))))))),(0,m.kt)("p",null,"\u6839\u636e\u4e09\u89d2\u51fd\u6570\u7684\u6027\u8d28\uff0c\u5bf9\u4e8e",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"p"),(0,m.kt)("mi",{parentName:"mrow"},"o"),(0,m.kt)("mi",{parentName:"mrow"},"s"),(0,m.kt)("mo",{parentName:"mrow"},"+"),(0,m.kt)("mi",{parentName:"mrow"},"k")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"pos+k")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.7778em",verticalAlign:"-0.1944em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"p"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"os"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"+"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6944em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03148em"}},"k"))))),"\u4f4d\u7f6e\u7684\u5d4c\u5165\u5411\u91cf\u7684\u67d0\u4e00\u7ef4\u5ea6\uff08",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mn",{parentName:"mrow"},"2"),(0,m.kt)("mi",{parentName:"mrow"},"i")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"2i")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6595em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"2"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"i"))))),"\u6216",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mn",{parentName:"mrow"},"2"),(0,m.kt)("mi",{parentName:"mrow"},"i"),(0,m.kt)("mo",{parentName:"mrow"},"+"),(0,m.kt)("mn",{parentName:"mrow"},"1")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"2i+1")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.7429em",verticalAlign:"-0.0833em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"2"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"i"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"+"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6444em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"1"))))),"\uff09\u800c\u8a00\uff0c\u53ef\u4ee5\u8868\u793a\u4e3a",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"p"),(0,m.kt)("mi",{parentName:"mrow"},"o"),(0,m.kt)("mi",{parentName:"mrow"},"s")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"pos")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.625em",verticalAlign:"-0.1944em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"p"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"os"))))),"\u4f4d\u7f6e\u4e0e",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"k")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"k")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6944em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03148em"}},"k"))))),"\u4f4d\u7f6e\u7684\u5d4c\u5165\u5411\u91cf\u7684",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mn",{parentName:"mrow"},"2"),(0,m.kt)("mi",{parentName:"mrow"},"i")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"2i")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6595em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"2"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"i"))))),"\u4e0e",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mn",{parentName:"mrow"},"2"),(0,m.kt)("mi",{parentName:"mrow"},"i"),(0,m.kt)("mo",{parentName:"mrow"},"+"),(0,m.kt)("mn",{parentName:"mrow"},"1")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"2i+1")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.7429em",verticalAlign:"-0.0833em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"2"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"i"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"+"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6444em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"1"))))),"\u7ef4\u5ea6\u7684\u7ebf\u6027\u7ec4\u5408\uff0c\u4f7f\u5f97\u4f4d\u7f6e\u5411\u91cf\u4e2d\u8574\u542b\u4e86\u76f8\u5bf9\u4f4d\u7f6e\u7684\u4fe1\u606f\u3002"),(0,m.kt)("div",{className:"math math-display"},(0,m.kt)("span",{parentName:"div",className:"katex-display"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mtable",{parentName:"semantics",width:"100%"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mtable",{parentName:"mtd",rowspacing:"0.16em",columnalign:"left",columnspacing:"1em"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("mrow",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("mi",{parentName:"mrow"},"E"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"p"),(0,m.kt)("mi",{parentName:"mrow"},"o"),(0,m.kt)("mi",{parentName:"mrow"},"s"),(0,m.kt)("mo",{parentName:"mrow"},"+"),(0,m.kt)("mi",{parentName:"mrow"},"k"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mn",{parentName:"mrow"},"2"),(0,m.kt)("mi",{parentName:"mrow"},"i"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("mi",{parentName:"mrow"},"E"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"p"),(0,m.kt)("mi",{parentName:"mrow"},"o"),(0,m.kt)("mi",{parentName:"mrow"},"s"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mn",{parentName:"mrow"},"2"),(0,m.kt)("mi",{parentName:"mrow"},"i"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"\xd7"),(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("mi",{parentName:"mrow"},"E"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"k"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mn",{parentName:"mrow"},"2"),(0,m.kt)("mi",{parentName:"mrow"},"i"),(0,m.kt)("mo",{parentName:"mrow"},"+"),(0,m.kt)("mn",{parentName:"mrow"},"1"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"+"),(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("mi",{parentName:"mrow"},"E"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"p"),(0,m.kt)("mi",{parentName:"mrow"},"o"),(0,m.kt)("mi",{parentName:"mrow"},"s"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mn",{parentName:"mrow"},"2"),(0,m.kt)("mi",{parentName:"mrow"},"i"),(0,m.kt)("mo",{parentName:"mrow"},"+"),(0,m.kt)("mn",{parentName:"mrow"},"1"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"\xd7"),(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("mi",{parentName:"mrow"},"E"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"k"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mn",{parentName:"mrow"},"2"),(0,m.kt)("mi",{parentName:"mrow"},"i"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"))))),(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("mrow",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("mi",{parentName:"mrow"},"E"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"p"),(0,m.kt)("mi",{parentName:"mrow"},"o"),(0,m.kt)("mi",{parentName:"mrow"},"s"),(0,m.kt)("mo",{parentName:"mrow"},"+"),(0,m.kt)("mi",{parentName:"mrow"},"k"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mn",{parentName:"mrow"},"2"),(0,m.kt)("mi",{parentName:"mrow"},"i"),(0,m.kt)("mo",{parentName:"mrow"},"+"),(0,m.kt)("mn",{parentName:"mrow"},"1"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("mi",{parentName:"mrow"},"E"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"p"),(0,m.kt)("mi",{parentName:"mrow"},"o"),(0,m.kt)("mi",{parentName:"mrow"},"s"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mn",{parentName:"mrow"},"2"),(0,m.kt)("mi",{parentName:"mrow"},"i"),(0,m.kt)("mo",{parentName:"mrow"},"+"),(0,m.kt)("mn",{parentName:"mrow"},"1"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"\xd7"),(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("mi",{parentName:"mrow"},"E"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"k"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mn",{parentName:"mrow"},"2"),(0,m.kt)("mi",{parentName:"mrow"},"i"),(0,m.kt)("mo",{parentName:"mrow"},"+"),(0,m.kt)("mn",{parentName:"mrow"},"1"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"\u2212"),(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("mi",{parentName:"mrow"},"E"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"p"),(0,m.kt)("mi",{parentName:"mrow"},"o"),(0,m.kt)("mi",{parentName:"mrow"},"s"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mn",{parentName:"mrow"},"2"),(0,m.kt)("mi",{parentName:"mrow"},"i"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"\xd7"),(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("mi",{parentName:"mrow"},"E"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"k"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mn",{parentName:"mrow"},"2"),(0,m.kt)("mi",{parentName:"mrow"},"i"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"))))))),(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mtext",{parentName:"mtd"},"(3)")))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"\\begin{array}{l}PE(pos+k,2i)=PE(pos,2i)\\times PE(k,2i+1)+PE(pos,2i+1)\\times PE(k,2i)\\\\PE(pos+k,2i+1)=PE(pos,2i+1)\\times PE(k,2i+1)-PE(pos,2i)\\times PE(k,2i)\\end{array} \\tag{3}")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"2.4em",verticalAlign:"-0.95em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mtable"},(0,m.kt)("span",{parentName:"span",className:"arraycolsep",style:{width:"0.5em"}}),(0,m.kt)("span",{parentName:"span",className:"col-align-l"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.45em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-3.61em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05764em"}},"PE"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"p"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"os"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"+"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03148em"}},"k"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"2"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"i"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"="),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05764em"}},"PE"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"p"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"os"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"2"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"i"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"\xd7"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05764em"}},"PE"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03148em"}},"k"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"2"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"i"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"+"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"1"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"+"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05764em"}},"PE"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"p"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"os"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"2"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"i"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"+"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"1"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"\xd7"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05764em"}},"PE"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03148em"}},"k"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"2"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"i"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"))),(0,m.kt)("span",{parentName:"span",style:{top:"-2.41em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05764em"}},"PE"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"p"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"os"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"+"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03148em"}},"k"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"2"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"i"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"+"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"1"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"="),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05764em"}},"PE"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"p"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"os"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"2"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"i"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"+"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"1"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"\xd7"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05764em"}},"PE"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03148em"}},"k"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"2"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"i"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"+"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"1"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"\u2212"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05764em"}},"PE"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"p"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"os"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"2"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"i"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"\xd7"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05764em"}},"PE"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03148em"}},"k"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"2"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"i"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.95em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"arraycolsep",style:{width:"0.5em"}})))),(0,m.kt)("span",{parentName:"span",className:"tag"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"2.4em",verticalAlign:"-0.95em"}}),(0,m.kt)("span",{parentName:"span",className:"mord text"},(0,m.kt)("span",{parentName:"span",className:"mord"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"3")),(0,m.kt)("span",{parentName:"span",className:"mord"},")"))))))),(0,m.kt)("p",null,"\u6700\u7ec8\uff0c\u4f4d\u7f6e\u7f16\u7801\u5411\u91cf\u7684\u7ef4\u5ea6\u4e0e\u8bcd\u6c47\u7684\u5d4c\u5165\u7ef4\u5ea6\u76f8\u540c\uff0c\u8fdb\u884celement-wise\u7684\u76f8\u52a0\u64cd\u4f5c\u3002"),(0,m.kt)("div",{className:"math math-display"},(0,m.kt)("span",{parentName:"div",className:"katex-display"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mtable",{parentName:"semantics",width:"100%"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mrow",{parentName:"mtd"},(0,m.kt)("mi",{parentName:"mrow"},"I"),(0,m.kt)("mi",{parentName:"mrow"},"n"),(0,m.kt)("mi",{parentName:"mrow"},"p"),(0,m.kt)("mi",{parentName:"mrow"},"u"),(0,m.kt)("mi",{parentName:"mrow"},"t"),(0,m.kt)("mi",{parentName:"mrow"},"E"),(0,m.kt)("mi",{parentName:"mrow"},"m"),(0,m.kt)("mi",{parentName:"mrow"},"b"),(0,m.kt)("mi",{parentName:"mrow"},"e"),(0,m.kt)("mi",{parentName:"mrow"},"d"),(0,m.kt)("mi",{parentName:"mrow"},"d"),(0,m.kt)("mi",{parentName:"mrow"},"i"),(0,m.kt)("mi",{parentName:"mrow"},"n"),(0,m.kt)("mi",{parentName:"mrow"},"g"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"p"),(0,m.kt)("mi",{parentName:"mrow"},"o"),(0,m.kt)("mi",{parentName:"mrow"},"s"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"i"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("mi",{parentName:"mrow"},"W"),(0,m.kt)("mi",{parentName:"mrow"},"o"),(0,m.kt)("mi",{parentName:"mrow"},"r"),(0,m.kt)("mi",{parentName:"mrow"},"d"),(0,m.kt)("mi",{parentName:"mrow"},"E"),(0,m.kt)("mi",{parentName:"mrow"},"m"),(0,m.kt)("mi",{parentName:"mrow"},"b"),(0,m.kt)("mi",{parentName:"mrow"},"e"),(0,m.kt)("mi",{parentName:"mrow"},"d"),(0,m.kt)("mi",{parentName:"mrow"},"d"),(0,m.kt)("mi",{parentName:"mrow"},"i"),(0,m.kt)("mi",{parentName:"mrow"},"n"),(0,m.kt)("mi",{parentName:"mrow"},"g"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"p"),(0,m.kt)("mi",{parentName:"mrow"},"o"),(0,m.kt)("mi",{parentName:"mrow"},"s"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"i"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"+"),(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("mi",{parentName:"mrow"},"o"),(0,m.kt)("mi",{parentName:"mrow"},"s"),(0,m.kt)("mi",{parentName:"mrow"},"i"),(0,m.kt)("mi",{parentName:"mrow"},"t"),(0,m.kt)("mi",{parentName:"mrow"},"i"),(0,m.kt)("mi",{parentName:"mrow"},"o"),(0,m.kt)("mi",{parentName:"mrow"},"n"),(0,m.kt)("mi",{parentName:"mrow"},"E"),(0,m.kt)("mi",{parentName:"mrow"},"n"),(0,m.kt)("mi",{parentName:"mrow"},"c"),(0,m.kt)("mi",{parentName:"mrow"},"o"),(0,m.kt)("mi",{parentName:"mrow"},"d"),(0,m.kt)("mi",{parentName:"mrow"},"i"),(0,m.kt)("mi",{parentName:"mrow"},"n"),(0,m.kt)("mi",{parentName:"mrow"},"g"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"p"),(0,m.kt)("mi",{parentName:"mrow"},"o"),(0,m.kt)("mi",{parentName:"mrow"},"s"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"i"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"))),(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mtext",{parentName:"mtd"},"(4)")))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"InputEmbedding(pos,i)=WordEmbedding(pos,i)+PositionEncoding(pos,i) \\tag{4}")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.07847em"}},"I"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"n"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"p"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"u"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05764em"}},"tE"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"mb"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"e"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"dd"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"in"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"g"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"p"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"os"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"i"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"="),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"W"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02778em"}},"or"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"d"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05764em"}},"E"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"mb"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"e"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"dd"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"in"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"g"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"p"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"os"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"i"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"+"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"P"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"os"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"i"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"t"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"i"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"o"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"n"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05764em"}},"E"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"n"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"co"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"d"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"in"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"g"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"p"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"os"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"i"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")")),(0,m.kt)("span",{parentName:"span",className:"tag"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord text"},(0,m.kt)("span",{parentName:"span",className:"mord"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"4")),(0,m.kt)("span",{parentName:"span",className:"mord"},")"))))))),(0,m.kt)("h3",{id:"\u5177\u4f53\u7ed3\u6784"},"\u5177\u4f53\u7ed3\u6784"),(0,m.kt)("p",null,(0,m.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_imagesimage-20231115164324713.png",alt:"image-20231115164324713"})),(0,m.kt)("p",null,"\u8f93\u5165\u5411\u91cf\u7531Word Embedding\u548cPositional Embedding\u76f8\u52a0\u5f97\u5230\u3002\u8f93\u5165\u5e8f\u5217\u7ecf\u8fc7Mutil-Head Self-Attention\u4e4b\u540e\uff0c\u901a\u8fc7Residual Connection\u52a0\u4e0a\u81ea\u8eab\u7684\u8f93\u5165\u5411\u91cf\uff0c\u518d\u7ecf\u8fc7Layer Normalization\uff0c\u4e4b\u540e\u9001\u5165FCN\u5e76\u8fdb\u884cResidual Connection\u52a0\u4e0a\u9001\u5165FCN\u7684\u8f93\u5165\u81ea\u8eab\uff0c\u6700\u7ec8\u518d\u8fdb\u884cLayer Normalization\uff0c\u4ee5\u4e0a\u6784\u6210\u4e86\u4e00\u4e2aEncoder Block\u3002\u6bcf\u4e00\u4e2aBlock\u8f93\u51fa\u7684\u5411\u91cf\u5e8f\u5217\u957f\u5ea6\u7b49\u4e8e\u8f93\u5165\u7684\u5411\u91cf\u5e8f\u5217\u957f\u5ea6\u3002"),(0,m.kt)("h2",{id:"decoder"},"Decoder"),(0,m.kt)("p",null,"Decoder\u7684\u4efb\u52a1\u662f\u751f\u6210\u8f93\u51fa\uff0c\u53ef\u4ee5\u6839\u636e\u662f\u5426\u4e00\u6b21\u6027\u751f\u6210\u8f93\u51fa\u5206\u4e3aAutoregressive\uff08\u81ea\u56de\u5f52\uff0cabbr. AT\uff09\u4ee5\u53caNon-Autoregressive\uff08\u975e\u81ea\u56de\u5f52\uff0cabbr. NAT\uff09\u4e24\u79cd\u6a21\u5f0f\u3002"),(0,m.kt)("p",null,"\u81ea\u56de\u5f52\u7c7b\u578b\u7684Decoder\u9700\u8981",(0,m.kt)("strong",{parentName:"p"},"\u9010\u6b65\u751f\u6210"),"\u8f93\u51fa\uff0c\u5e76\u5c06",(0,m.kt)("strong",{parentName:"p"},"\u4e4b\u524d\u81ea\u8eab\u8f93\u51fa\u7684\u6240\u6709\u8bcd\u6c47\u7ecf\u8fc7\u5d4c\u5165\u5c42\u540e\u751f\u6210token\u4f5c\u4e3a\u4e0b\u4e00\u6b21\u7684\u8f93\u5165"),"\uff0c\u901a\u5e38\u6bcf\u6b21\u751f\u6210\u4e00\u4e2a\u8bcd\u6216\u4e00\u4e2a\u7b26\u53f7\u3002\u8fd9\u79cd\u65b9\u5f0f\u7684\u7f3a\u70b9\u662f\u9700\u8981\u4fdd\u5b58\u548c\u66f4\u65b0\u8bcd\u8868\u4e2d\u7684\u6240\u6709\u53ef\u80fd\u9009\u9879\uff0c\u56e0\u6b64\u5728\u5927\u8bcd\u6c47\u8868\u4e0a\u53ef\u80fd\u4f1a\u53d8\u5f97\u975e\u5e38\u6162\u3002\u7136\u800c\uff0c\u5b83\u7684\u4f18\u70b9\u662f\u80fd\u591f\u5229\u7528\u4e0a\u4e0b\u6587\u4fe1\u606f\u6765\u751f\u6210\u8f93\u51fa\uff0c\u8fd9\u6709\u52a9\u4e8e\u63d0\u9ad8\u7ffb\u8bd1\u7684\u8d28\u91cf\u3002"),(0,m.kt)("p",null,"\u975e\u81ea\u56de\u5f52\u7c7b\u578b\u7684Decoder\u8bd5\u56fe\u5728\u4e00\u6b21\u64cd\u4f5c\u4e2d\u751f\u6210\u6574\u4e2a\u8f93\u51fa\u5e8f\u5217\u3002\u8fd9\u901a\u5e38\u901a\u8fc7\u4f7f\u7528\u8bf8\u5982\u6ce8\u610f\u529b\u673a\u5236\u7b49\u7b56\u7565\u6765\u5b9e\u73b0\uff0c\u8fd9\u4e9b\u7b56\u7565\u5141\u8bb8\u89e3\u7801\u5668\u5173\u6ce8\u8f93\u5165\u5e8f\u5217\u7684\u4e0d\u540c\u90e8\u5206\uff0c\u540c\u65f6\u751f\u6210\u8f93\u51fa\u5e8f\u5217\u7684\u4e0d\u540c\u90e8\u5206\u3002NAT\u7684\u4f18\u70b9\u5728\u4e8e\u5176\u9ad8\u6548\u6027\uff0c\u56e0\u4e3a\u5b83\u4e0d\u9700\u8981\u4fdd\u5b58\u548c\u66f4\u65b0\u5927\u91cf\u7684\u53ef\u80fd\u9009\u9879\u3002\u7136\u800c\uff0c\u7531\u4e8e\u5b83\u4e0d\u80fd\u5229\u7528\u4e0a\u4e0b\u6587\u4fe1\u606f\u6765\u751f\u6210\u8f93\u51fa\uff0c\u56e0\u6b64\u5176\u751f\u6210\u7684\u8f93\u51fa\u8d28\u91cf\u666e\u904d\u4f1a\u4f4e\u4e8eAT\u3002"),(0,m.kt)("h3",{id:"autoregressive-decoderat"},"Autoregressive Decoder\uff08AT\uff09"),(0,m.kt)("h4",{id:"\u6574\u4f53\u7ed3\u6784-2"},"\u6574\u4f53\u7ed3\u6784"),(0,m.kt)("p",null,(0,m.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_imagesimage-20231119102540689.png",alt:"image-20231119102540689"})),(0,m.kt)("h4",{id:"\u8bcd\u6c47\u8868vocabulary"},"\u8bcd\u6c47\u8868\uff08Vocabulary\uff09"),(0,m.kt)("p",null,"\u8bcd\u6c47\u8868\uff08Vocabulary\uff09\u662f\u4e00\u4e2a\u5305\u542b\u4e86\u5728\u7279\u5b9a\u8bed\u8a00\u6216\u4efb\u52a1\u4e2d",(0,m.kt)("strong",{parentName:"p"},"\u6240\u6709\u53ef\u80fd\u51fa\u73b0"),"\u7684",(0,m.kt)("strong",{parentName:"p"},"\u6240\u6709\u5355\u8bcd\u6216\u6807\u8bb0"),"\u7684\u96c6\u5408\u3002\u5728\u81ea\u7136\u8bed\u8a00\u5904\u7406\uff08NLP\uff09\u4e2d\uff0c\u8bcd\u6c47\u8868\u662f",(0,m.kt)("strong",{parentName:"p"},"\u8bad\u7ec3\u6a21\u578b\u65f6\u6240\u4f7f\u7528\u7684\u552f\u4e00\u5355\u8bcd\u7684\u96c6\u5408"),"\uff0c\u7531\u5177\u4f53\u7684\u751f\u6210\u4efb\u52a1\u800c\u786e\u5b9a\u3002"),(0,m.kt)("p",null,"Decoder\u6bcf\u4e00\u6b65\u7684\u8f93\u51fa\u662f\u4e00\u4e2a\u7ecf\u8fc7Softmax\u7684Probability Distribution\uff08\u6982\u7387\u5206\u5e03\uff09\uff0c\u4ee3\u8868\u7740\u8bcd\u6c47\u8868\u4e2d\u6bcf\u4e00\u4e2a\u8bcd\u6c47\u5f53\u524d\u751f\u6210\u7684\u6982\u7387\uff0c\u53d6\u6700\u5927\u6982\u7387\u503c\u7684\u8bcd\u6c47\u4fbf\u662f\u6a21\u578b\u5f53\u524d\u65f6\u95f4\u6b65\u8f93\u51fa\u7684\u8bcd\u6c47\u3002"),(0,m.kt)("p",null,(0,m.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_imagesimage-20231119094748152.png",alt:"image-20231119094748152"})),(0,m.kt)("h4",{id:"begin\u7b26\u53f7"},"Begin\u7b26\u53f7"),(0,m.kt)("p",null,"\u89e3\u7801\u5668\uff08Decoder\uff09\u5728\u6bcf\u4e2a\u65f6\u95f4\u6b65\uff08\u6216\u6bcf\u4e2a\u89e3\u7801\u6b65\u9aa4\uff09\u7684\u8f93\u5165\u90fd\u6765\u81ea\u4e8e\u524d\u4e00\u4e2a\u65f6\u95f4\u6b65\u81ea\u8eab\u7684\u8f93\u51fa\u4ee5\u53ca\u7f16\u7801\u5668\uff08Encoder\uff09\u7684\u8f93\u51fa\u3002\u7279\u522b\u5730\uff0c\u9996\u4e2a\u65f6\u95f4\u6b65\u7684\u8f93\u5165\u662fBegin\u7b26\u53f7\u4ee5\u53ca\u7f16\u7801\u5668\uff08Encoder\uff09\u7684\u8f93\u51fa\uff0c\u5728\u6bcf\u4e2a\u540e\u7eed\u7684\u65f6\u95f4\u6b65\uff0c\u89e3\u7801\u5668\u7684\u8f93\u5165\u4f1a\u662f\u524d\u4e00\u4e2a\u65f6\u95f4\u6b65\u81ea\u8eab\u7684\u8f93\u51fa\u4ee5\u53ca\u7f16\u7801\u5668\uff08Encoder\uff09\u7684\u8f93\u51fa\uff0c\u76f4\u5230\u751f\u6210\u5e8f\u5217\u7684\u7ed3\u675f\u3002"),(0,m.kt)("admonition",{title:"\u7279\u6b8a\u7b26\u53f7",type:"tip"},(0,m.kt)("p",{parentName:"admonition"},"Begin\u7b26\u53f7\u662f\u5728Lexicon\u4e2d\u6dfb\u52a0\u7684\u7279\u6b8a\u7b26\u53f7\uff0c\u7528\u6765\u8868\u793aDecoder\u751f\u6210\u7684\u5f00\u59cb\u3002Begin\u7b26\u53f7\u901a\u5e38\u88ab\u5d4c\u5165\u5230\u4e00\u4e2a\u4f4e\u7ef4\u7684\u8fde\u7eed\u5411\u91cf\u7a7a\u95f4\u4e2d\uff0c\u8fd9\u4e2a\u5411\u91cf\u7a7a\u95f4\u662f\u901a\u8fc7\u5d4c\u5165\u5c42\uff08Embedding Layer\uff09\u5b66\u4e60\u5f97\u5230\u7684\uff0c\u5728\u5d4c\u5165\u5c42\u4e2d\uff0c\u79bb\u6563\u7684\u7b26\u53f7\u88ab\u6620\u5c04\u5230\u4e00\u4e2a\u5b9e\u6570\u5411\u91cf\u3002"),(0,m.kt)("p",{parentName:"admonition"},"Begin\u7b26\u53f7\u53c8\u53ebStart\u7b26\u53f7\u6216SOS\u7b26\u53f7\uff08",(0,m.kt)("strong",{parentName:"p"},"S"),"tart ",(0,m.kt)("strong",{parentName:"p"},"O"),"f ",(0,m.kt)("strong",{parentName:"p"},"S"),"entence\uff09\uff0c\u90fd\u662f\u8868\u793a\u751f\u6210\u7684\u5f00\u59cb\u3002End\u7b26\u53f7\u53c8\u53ebEOS\u7b26\u53f7\uff08",(0,m.kt)("strong",{parentName:"p"},"E"),"nd ",(0,m.kt)("strong",{parentName:"p"},"O"),"f ",(0,m.kt)("strong",{parentName:"p"},"S"),"entence\uff09\u3002")),(0,m.kt)("h4",{id:"end\u7b26\u53f7"},"End\u7b26\u53f7"),(0,m.kt)("p",null,"\u5728Decoder\u7684\u751f\u6210\u4e2d\uff0c\u6bcf\u4e00\u4e2a\u65f6\u95f4\u6b65\u7684\u8f93\u51fa\u662f\u8bcd\u6c47\u8868\u4e2d\u6bcf\u4e00\u4e2a\u5355\u8bcd\u7ecf\u8fc7Softmax\u4e4b\u540e\u7684\u6982\u7387\u5206\u5e03\u3002\u4e3a\u4e86\u4fdd\u8bc1\u751f\u6210\u4efb\u52a1\u53ef\u4ee5\u901a\u8fc7\u6a21\u578b\u81ea\u5df1\u505c\u6b62\u800c\u4e0d\u662f\u4e00\u76f4\u91cd\u590d\uff0c\u6211\u4eec\u5411Decoder\u7684\u8f93\u51fa\u4e2d\u52a0\u5165End\u7b26\u53f7\u7684\u751f\u6210\uff0c\u5373\u6bcf\u4e00\u6b21\u8f93\u51fa\u9664\u4e86\u8bcd\u6c47\u8868\u7684\u6240\u6709\u8bcd\u6c47\u5916\u8fd8\u6709End\u7b26\u53f7\u7684\u6982\u7387\uff0c\u5f53End\u7b26\u53f7\u662f\u5728\u6240\u6709\u8bcd\u6c47\u4e2d\u6982\u7387\u6700\u5927\u7684\u8bcd\u6c47\u65f6\uff0c\u751f\u6210\u505c\u6b62\u3002"),(0,m.kt)("p",null,(0,m.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_imagesimage-20231119102220262.png",alt:"image-20231119102220262"})),(0,m.kt)("p",null,(0,m.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_imagesimage-20231119102159884.png",alt:"image-20231119102159884"})),(0,m.kt)("h4",{id:"\u63a9\u7801\u591a\u5934\u81ea\u6ce8\u610f\u529b\u673a\u5236masked-multi-head-self-attention"},"\u63a9\u7801\u591a\u5934\u81ea\u6ce8\u610f\u529b\u673a\u5236\uff08Masked Multi-Head Self-Attention\uff09"),(0,m.kt)("admonition",{title:"\u4e3a\u4ec0\u4e48\u4f7f\u7528\u63a9\u7801\u591a\u5934\u81ea\u6ce8\u610f\u529b",type:"important"},(0,m.kt)("p",{parentName:"admonition"},"\u63a9\u7801\u591a\u5934\u81ea\u6ce8\u610f\u529b\u4e0eTransformer\u8bad\u7ec3\u65f6\u91c7\u53d6\u7684Teacher Forcing\u7b56\u7565\u6709\u5f88\u5927\u7684\u5173\u7cfb\uff0c\u5177\u4f53\u5206\u6790\u89c1\u4e0b\u6587\u300aTeacher Forcing\u4e0eMasked Multi-Head Self-Attention\u300b\u7684\u8ba8\u8bba\u73af\u8282\uff1a",(0,m.kt)("a",{parentName:"p",href:"https://bonjour-npy.github.io/docs/Deep-Learning/%E8%AE%BA%E6%96%87%E7%AC%94%E8%AE%B0/Attention%20Is%20All%20You%20Need#teacher-forcing%E4%B8%8Emasked-multi-head-self-attention"},"Teacher Forcing\u4e0eMasked Multi-Head Self-Attention"))),(0,m.kt)("p",null,"\u89c2\u5bdfDecoder\u7684\u6574\u4f53\u7ed3\u6784\uff0c\u63a9\u7801\u591a\u5934\u81ea\u6ce8\u610f\u529b\u7684\u8f93\u5165\u662f\u6dfb\u52a0\u4f4d\u7f6e\u7f16\u7801\u4e4b\u540e\u7684Decoder",(0,m.kt)("strong",{parentName:"p"},"\u5f53\u524d\u65f6\u95f4\u6b65\u4e4b\u524d\u7684\u6240\u6709\u8f93\u51fa\u5355\u8bcd\u7ecf\u8fc7\u5d4c\u5165\u540e\u7684\u5411\u91cf\u8868\u793a"),"\u3002"),(0,m.kt)("p",null,"\u63a9\u7801\u591a\u5934\u81ea\u6ce8\u610f\u529b\u673a\u5236\u7528\u4e8e\u786e\u4fdd\u5728\u751f\u6210\u5e8f\u5217\u7684\u8fc7\u7a0b\u4e2d\uff0c\u6bcf\u4e2a\u4f4d\u7f6e\u53ea\u80fd\u5173\u6ce8\u5230\u8be5\u4f4d\u7f6e\u53ca\u5176\u4e4b\u524d\u7684\u4f4d\u7f6e\u3002\u8fd9\u662f\u901a\u8fc7\u5728Self-Attention\u7684\u8ba1\u7b97\u4e2d\u5e94\u7528\u4e00\u4e2a\u63a9\u7801\uff08mask\uff09\u6765\u5b9e\u73b0\u7684\u3002\u8fd9\u786e\u4fdd\u4e86\u5728\u751f\u6210\u5e8f\u5217\u65f6\uff0c\u6bcf\u4e2a\u4f4d\u7f6e\u53ea\u80fd\u67e5\u770b\u5230\u5b83\u4e4b\u524d\u7684\u4fe1\u606f\uff0c\u800c\u4e0d\u80fd\u67e5\u770b\u5230\u672a\u6765\u7684\u4fe1\u606f\uff0c\u4ece\u800c\u5b9e\u73b0\u4e86\u81ea\u56de\u5f52\u6027\u8d28\u3002"),(0,m.kt)("p",null,"\u5177\u4f53\u6765\u8bf4\uff0c\u6dfb\u52a0\u63a9\u7801\u540e\u7684\u81ea\u6ce8\u610f\u529b\u673a\u5236\u5728\u751f\u6210\u6ce8\u610f\u529b\u5206\u6570\u65f6\u4e0d\u518d\u8003\u8651\u8f93\u5165\u5e8f\u5217\u7684\u6240\u6709\u5411\u91cf\u3002\u5982\u5728\u8f93\u5165\u5411\u91cf",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("msup",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msup"},"a"),(0,m.kt)("mi",{parentName:"msup"},"i"))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"a^i")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.8247em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"a"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.8247em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-3.063em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"i")))))))))))),"\u5728\u8ba1\u7b97\u6ce8\u610f\u529b\u5206\u6570\u65f6\uff0c\u53ea\u5c06",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("msup",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msup"},"a"),(0,m.kt)("mi",{parentName:"msup"},"i"))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"a^i")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.8247em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"a"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.8247em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-3.063em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"i")))))))))))),"\u7684query\u5411\u91cf\u4e0e",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("msup",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msup"},"a"),(0,m.kt)("mn",{parentName:"msup"},"1"))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"a^1")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.8141em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"a"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.8141em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-3.063em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"1")))))))))))),"\u81f3",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("msup",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msup"},"a"),(0,m.kt)("mi",{parentName:"msup"},"i"))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"a^{i}")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.8247em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"a"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.8247em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-3.063em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"i"))))))))))))),"\u7684",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"i")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"i")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6595em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"i"))))),"\u4e2akey\u5411\u91cf\u505adot product\uff0c\u800c\u4e0d\u8003\u8651",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("msup",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msup"},"a"),(0,m.kt)("mi",{parentName:"msup"},"i"))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"a^i")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.8247em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"a"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.8247em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-3.063em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"i")))))))))))),"\u4e4b\u540e\u7684\u8f93\u5165\u7684key\u3002"),(0,m.kt)("admonition",{type:"tip"},(0,m.kt)("p",{parentName:"admonition"},"\u5bf9\u4e8e\u7b2c",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"s")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"s")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.4306em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"s"))))),"\u4e2a\u65f6\u95f4\u6b65\uff0cMasked Mutil-Head Self-Attention\u7684\u8f93\u5165\u662f\u65f6\u95f4\u6b65",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"s")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"s")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.4306em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"s"))))),"\u4e4b\u524dDecoder\u751f\u6210\u7684\u6240\u6709\u8f93\u51fa\u5355\u8bcd\u7684\u5d4c\u5165\u8868\u793a\u3002")),(0,m.kt)("p",null,(0,m.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_imagesimage-20231119095632569.png",alt:"image-20231119095632569"})),(0,m.kt)("h4",{id:"\u4ea4\u53c9\u6ce8\u610f\u529bcross-attention"},"\u4ea4\u53c9\u6ce8\u610f\u529b\uff08Cross-Attention\uff09"),(0,m.kt)("p",null,"\u4ea4\u53c9\u6ce8\u610f\u529b\u662f\u8fde\u63a5Encoder\u548cDecoder\u7684\u6865\u6881\uff0c\u4e5f\u662fDecoder\u8f93\u5165\u7684\u91cd\u8981\u7ec4\u6210\u90e8\u5206\u3002"),(0,m.kt)("p",null,(0,m.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_imagesimage-20231119103201335.png",alt:"image-20231119103201335"})),(0,m.kt)("p",null,"\u4ea4\u53c9\u6ce8\u610f\u529b\u63a5\u6536\u4e24\u4e2a\u8f93\u5165\u5e8f\u5217\uff0c\u4e00\u4e2a\u6765\u81ea\u7f16\u7801\u5668\uff08Encoder\uff09\u7684\u8f93\u51fa\u5e8f\u5217\uff08\u901a\u5e38\u662f\u8f93\u5165\u5e8f\u5217\u7684\u8868\u793a\uff09\uff0c\u53e6\u4e00\u4e2a\u6765\u81ea\u89e3\u7801\u5668\uff08Decoder\uff09\uff0c\u662f\u7ecf\u8fc7\u63a9\u7801\u591a\u5934\u81ea\u6ce8\u610f\u529b\u673a\u5236\u7684\u8f93\u51fa\u5e8f\u5217\uff08\u901a\u5e38\u662f\u6b63\u5728\u751f\u6210\u7684\u5e8f\u5217\u7684\u4e2d\u95f4\u8868\u793a\uff09\u3002"),(0,m.kt)("p",null,"\u5728\u4ea4\u53c9\u6ce8\u610f\u529b\u4e2d\uff0c\u6bcf\u6b21\u8ba1\u7b97\u6ce8\u610f\u529b\u5f97\u5206\u7684",(0,m.kt)("strong",{parentName:"p"},"query\u6765\u81ea\u89e3\u7801\u5668"),"\uff0c",(0,m.kt)("strong",{parentName:"p"},"key\u548cvalue\u6765\u81ea\u7f16\u7801\u5668"),"\u3002\u89e3\u7801\u5668\u6bcf\u4e2a\u5411\u91cf\u7684\u67e5\u8be2\uff08Query\uff09\u4e0e\u7f16\u7801\u5668\u4f4d\u7f6e\u7684\u952e\uff08Key\uff09\u8fdb\u884c\u70b9\u79ef\u5f97\u5230\u4e86\u6ce8\u610f\u529b\u5206\u6570\uff0c\u901a\u8fc7Softmax\u64cd\u4f5c\u540e\u8f6c\u6362\u4e3a\u6ce8\u610f\u529b\u6743\u91cd\uff0c\u518d\u4e0e\u7f16\u7801\u5668\u4f4d\u7f6e\u7684\u503c\uff08Value\uff09weighted sum\u5f97\u5230\u52a0\u6743\u6ce8\u610f\u529b\u5206\u6570\uff0c\u6700\u7ec8\u5c06\u52a0\u6743\u6ce8\u610f\u529b\u5206\u6570\u6c42\u548c\u5f97\u5230\u6bcf\u4e2a\u8f93\u5165\u5411\u91cf\u7684\u8f93\u51fa\u3002"),(0,m.kt)("p",null,(0,m.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_imagesimage-20231119142212757.png",alt:"image-20231119142212757"})),(0,m.kt)("h3",{id:"non-autoregressive-decodernat"},"Non-Autoregressive Decoder\uff08NAT\uff09"),(0,m.kt)("p",null,(0,m.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_imagesimage-20231119103112168.png",alt:"image-20231119103112168"})),(0,m.kt)("h2",{id:"\u8bad\u7ec3training"},"\u8bad\u7ec3\uff08Training\uff09"),(0,m.kt)("h3",{id:"\u635f\u5931\u51fd\u6570"},"\u635f\u5931\u51fd\u6570"),(0,m.kt)("p",null,"\u5728 Transformer \u4e2d\uff0cEncoder \u4e0d\u50cf Decoder \u9700\u8981\u751f\u6210\u5e8f\u5217\uff0c\u56e0\u6b64\u5b83\u901a\u5e38\u4e0d\u6d89\u53ca\u6807\u7b7e\u7684\u9884\u6d4b\u3002Encoder \u7684\u8bad\u7ec3\u901a\u5e38\u662f\u5728\u6574\u4e2a\u6a21\u578b\u4e2d\u7684\u8054\u5408\u8bad\u7ec3\u4e2d\u8fdb\u884c\u7684\uff0c\u901a\u8fc7\u4f18\u5316\u6574\u4e2a\u6a21\u578b\u7684\u635f\u5931\u51fd\u6570\u6765\u8fdb\u884c\u3002"),(0,m.kt)("p",null,"Transformer \u7684\u6574\u4f53\u8bad\u7ec3\u8fc7\u7a0b\u4e00\u822c\u5206\u4e3a\u4ee5\u4e0b\u51e0\u4e2a\u6b65\u9aa4\uff1a"),(0,m.kt)("ol",null,(0,m.kt)("li",{parentName:"ol"},(0,m.kt)("strong",{parentName:"li"},"\u7f16\u7801\u5668\uff08Encoder\uff09\u7684\u6b63\u5411\u4f20\u64ad\uff1a")," \u8f93\u5165\u5e8f\u5217\u7ecf\u8fc7\u7f16\u7801\u5668\u7684\u6b63\u5411\u4f20\u64ad\uff0c\u4ea7\u751f\u4e00\u7ec4\u4e0a\u4e0b\u6587\u8868\u793a\u3002"),(0,m.kt)("li",{parentName:"ol"},(0,m.kt)("strong",{parentName:"li"},"\u89e3\u7801\u5668\uff08Decoder\uff09\u7684\u6b63\u5411\u4f20\u64ad\uff1a")," \u89e3\u7801\u5668\u63a5\u6536\u4e0a\u4e0b\u6587\u8868\u793a\uff0c\u5e76\u751f\u6210\u76ee\u6807\u5e8f\u5217\u3002"),(0,m.kt)("li",{parentName:"ol"},(0,m.kt)("strong",{parentName:"li"},"\u8ba1\u7b97\u635f\u5931\uff1a")," \u901a\u8fc7\u6bd4\u8f83\u751f\u6210\u7684\u76ee\u6807\u5e8f\u5217\u4e0e\u5b9e\u9645\u76ee\u6807\u5e8f\u5217\uff0c\u8ba1\u7b97\u635f\u5931\u3002\u5728 Decoder \u4e2d\uff0c\u901a\u5e38\u4f7f\u7528\u4ea4\u53c9\u71b5\u635f\u5931\u51fd\u6570\u3002"),(0,m.kt)("li",{parentName:"ol"},(0,m.kt)("strong",{parentName:"li"},"\u53cd\u5411\u4f20\u64ad\uff1a")," \u6839\u636e\u635f\u5931\uff0c\u8fdb\u884c\u53cd\u5411\u4f20\u64ad\uff0c\u66f4\u65b0\u6a21\u578b\u53c2\u6570\u3002\u8fd9\u4e2a\u8fc7\u7a0b\u4e2d\uff0c\u68af\u5ea6\u901a\u8fc7\u6574\u4e2a\u6a21\u578b\u4f20\u64ad\uff0c\u5305\u62ec Encoder \u548c Decoder\u3002")),(0,m.kt)("p",null,"\u6574\u4e2a\u6a21\u578b\u7684\u53c2\u6570\uff08\u5305\u62ec Encoder \u548c Decoder\uff09\u90fd\u662f\u901a\u8fc7\u6700\u5c0f\u5316\u6574\u4f53\u635f\u5931\u6765\u8fdb\u884c\u8054\u5408\u8bad\u7ec3\u7684\u3002\u8fd9\u662f\u56e0\u4e3a\u6574\u4f53\u6a21\u578b\u9700\u8981\u534f\u540c\u5de5\u4f5c\uff0cEncoder \u7684\u8868\u793a\u5bf9\u4e8e Decoder \u7684\u6027\u80fd\u81f3\u5173\u91cd\u8981\u3002\u5728\u8bad\u7ec3\u8fc7\u7a0b\u4e2d\uff0c\u68af\u5ea6\u4ece\u635f\u5931\u51fd\u6570\u4f20\u64ad\u56de\u6574\u4e2a\u6a21\u578b\uff0c\u5305\u62ec Encoder \u548c Decoder\uff0c\u4ece\u800c\u66f4\u65b0\u5b83\u4eec\u7684\u53c2\u6570\u3002"),(0,m.kt)("p",null,"\u9700\u8981\u6ce8\u610f\u7684\u662f\uff0cTransformer \u6a21\u578b\u901a\u5e38\u4f7f\u7528\u7684\u662f\u7aef\u5230\u7aef\u7684\u8bad\u7ec3\u65b9\u5f0f\uff0c\u6574\u4e2a\u6a21\u578b\u7684\u53c2\u6570\u662f\u4e00\u6b21\u6027\u66f4\u65b0\u7684\u3002\u5728\u67d0\u4e9b\u573a\u666f\u4e0b\uff0c\u4f60\u53ef\u80fd\u4f1a\u770b\u5230\u5bf9 Encoder \u6216 Decoder \u8fdb\u884c\u5fae\u8c03\uff08fine-tuning\uff09\u7684\u60c5\u51b5\uff0c\u4f46\u8fd9\u662f\u5728\u7279\u5b9a\u5e94\u7528\u573a\u666f\u4e0b\u7684\u8c03\u6574\uff0c\u4e0d\u662f Transformer \u6a21\u578b\u7684\u6807\u51c6\u8bad\u7ec3\u65b9\u5f0f\u3002"),(0,m.kt)("h3",{id:"teacher-forcing"},"Teacher Forcing"),(0,m.kt)("p",null,"\u5728Transformer\u7684\u63a8\u7406\u9636\u6bb5\uff0c\u81ea\u56de\u5f52\u7c7b\u578b\u7684Decoder\u6839\u636e\u5206\u8bcd\u65b9\u5f0f\u7684\u4e0d\u540c\uff0c\u4e00\u4e2a\u8bcd\u6c47\u4e00\u4e2a\u8bcd\u6c47\u7684\u8f93\u51fa\uff0c\u5c06\u5f53\u524d\u65f6\u95f4\u6b65\u4e4b\u524d\u751f\u6210\u7684\u6240\u6709\u8bcd\u6c47\u4f5c\u4e3a\u8f93\u5165load\u8fdb\u5165Decoder\u4e2d\u3002\u4f46\u5728\u8bad\u7ec3\u65f6\u5982\u679c\u9075\u4ece\u540c\u6837\u7684\u751f\u6210\u8303\u5f0f\u4f1a\u5927\u5927\u964d\u4f4e\u6548\u7387\uff0c\u5e76\u4e14\u9762\u4e34\u5219\u4e00\u6b65\u9519\u6b65\u6b65\u9519\u7684\u98ce\u9669\uff08Error Propagation\uff09\u3002"),(0,m.kt)("p",null,"\u56e0\u6b64\u4f7f\u7528Teacher Forcing\u7b56\u7565\uff0c\u5c06Ground Truth\u4e00\u6b21\u6027\u5582\u5230Decoder\u4e2d\uff0c\u4f7f\u6a21\u578b\u66f4\u5feb\u6536\u655b\u5e76\u4e14\u907f\u514d\u8bef\u5dee\u79ef\u7d2f\u7684\u95ee\u9898\u3002"),(0,m.kt)("p",null,(0,m.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_imagesimage-20231119155803489.png",alt:"image-20231119155803489"})),(0,m.kt)("p",null,"\u4f46\u662f\uff0c\u81ea\u56de\u5f52Decoder\u5728\u63a8\u7406\u65f6\u662f\u4e00\u4e2a\u4e00\u4e2a\u8bcd\u6c47\u4ea7\u751f\u7684\uff0c\u5728\u4ea7\u751f\u7b2c",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"i")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"i")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6595em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"i"))))),"\u4e2a\u8bcd\u6c47\u65f6\u5176\u540e\u7eed\u7684\u8bcd\u6c47\u662f\u672a\u77e5\u7684\uff0c\u66f4\u4e0d\u7528\u8bf4\u8fdb\u884c\u6ce8\u610f\u529b\u5206\u6570\u7684\u5c31\u7b97\u4e86\uff0c\u800c\u5728\u8bad\u7ec3\u8fc7\u7a0b\u4e2d\u4f7f\u7528Teacher Forcing\u65f6\u5374\u53ef\u4ee5\u5f97\u5230\u7b2c",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"i"),(0,m.kt)("mo",{parentName:"mrow"},"+"),(0,m.kt)("mn",{parentName:"mrow"},"1")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"i+1")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.7429em",verticalAlign:"-0.0833em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"i"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"+"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6444em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"1"))))),"\u4e2a\u53ca\u5176\u4e4b\u540e\u8bcd\u6c47\u7684\u6ce8\u610f\u529b\u4fe1\u606f\uff0c\u5982\u679c\u4e0d\u6dfb\u52a0\u5176\u4ed6\u7b56\u7565\u663e\u7136\u4f1a\u5bf9\u6a21\u578b\u7684\u6cdb\u5316\u80fd\u529b\u9020\u6210\u5f88\u5927\u7684\u5f71\u54cd\uff0c\u800c\u4e14\u8fd9\u5e76\u4e0d\u7b26\u5408\u81ea\u56de\u5f52\uff08Autoregression\uff09\u7684\u7279\u6027\u3002\u4e3a\u4e86\u89e3\u51b3\u8fd9\u4e2a\u95ee\u9898\uff0c\u63a9\u7801\u591a\u5934\u6ce8\u610f\u529b\u673a\u5236\u5e94\u8fd0\u800c\u751f\uff0c\u5728\u8bad\u7ec3\u9636\u6bb5\u5c06\u6a21\u578b\u5728\u65f6\u95f4\u53d1\u5c55\u987a\u5e8f\u7684\u53f3\u4fa7\u7684\u8f93\u5165masked\u6389\uff0c\u9632\u6b62\u6a21\u578b\u5b66\u4e60\u5230\u4e0d\u8be5\u5b66\u4e60\u7684\u6ce8\u610f\u529b\u3002"),(0,m.kt)("h3",{id:"teacher-forcing\u4e0emasked-multi-head-self-attention"},"Teacher Forcing\u4e0eMasked Multi-Head Self-Attention"),(0,m.kt)("p",null,"\u53c2\u8003\u6587\u732e\uff1a",(0,m.kt)("a",{parentName:"p",href:"http://t.csdnimg.cn/c8QA2"},"MultiHead-Attention\u548cMasked-Attention\u7684\u673a\u5236\u548c\u539f\u7406")),(0,m.kt)("p",null,"\u4e0eEncoder\u7684\u591a\u5934\u81ea\u6ce8\u610f\u529b\u4e0d\u540c\uff0c\u5728Decoder\u4e2d\uff0c\u4e3a\u6ce8\u610f\u529b\u673a\u5236\u5e94\u7528\u4e86\u63a9\u7801\uff0c\u4f7f\u6a21\u578b\u53ea\u80fd\u5173\u6ce8\u5230\u5f53\u524d\u4f4d\u7f6e\u53ca\u5176\u4e4b\u524d\u7684\u4f4d\u7f6e\uff0c\u800c\u4e0d\u80fd\u8bbf\u95ee\u672a\u6765\u7684\u4fe1\u606f\u3002\u8fd9\u89e3\u51b3\u4e86\u5f15\u5165Teacher Forcing\u51fa\u73b0\u7684\u95ee\u9898\uff0c\u907f\u514d\u4e86\u8bad\u7ec3\u4e0e\u63a8\u7406\u9636\u6bb5\u7684Mismatch\uff0c\u7ef4\u62a4\u4e86\u81ea\u56de\u5f52\u7684\u7279\u6027\u3002"),(0,m.kt)("p",null,"\u5177\u4f53\u6765\u8bf4\uff0c\u6a21\u62df\u63a8\u7406\u8fc7\u7a0b\u4e2d\u7b2c\u4e00\u4e2a\u8bcd\u6c47\u65f6\u7684\u573a\u666f\u3002\u5f53\u6a21\u578b\u53ea\u6709",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"v"),(0,m.kt)("mi",{parentName:"mrow"},"o"),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"c"),(0,m.kt)("mn",{parentName:"msub"},"1"))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"voc_1")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.5806em",verticalAlign:"-0.15em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"v"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"o"),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"c"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"1")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))))))),"\u8bcd\u6c47\u5411\u91cf\u8f93\u5165\u65f6\uff0c\u5728Decoder\u4e2d\uff0c",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"v"),(0,m.kt)("mi",{parentName:"mrow"},"o"),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"c"),(0,m.kt)("mn",{parentName:"msub"},"1"))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"voc_1")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.5806em",verticalAlign:"-0.15em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"v"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"o"),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"c"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"1")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))))))),"\u4e0e\u81ea\u8eab\u8ba1\u7b97\u6ce8\u610f\u529b\u5206\u6570\uff0c\u4e8e\u662f\u6709"),(0,m.kt)("div",{className:"math math-display"},(0,m.kt)("span",{parentName:"div",className:"katex-display"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mtable",{parentName:"semantics",width:"100%"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mrow",{parentName:"mtd"},(0,m.kt)("mrow",{parentName:"mrow"},(0,m.kt)("mo",{parentName:"mrow",fence:"true"},"["),(0,m.kt)("mtable",{parentName:"mrow",rowspacing:"0.16em",columnalign:"center",columnspacing:"1em"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("msub",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"msub"},"o"),(0,m.kt)("mn",{parentName:"msub"},"1")))))),(0,m.kt)("mo",{parentName:"mrow",fence:"true"},"]")),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("mrow",{parentName:"mrow"},(0,m.kt)("mo",{parentName:"mrow",fence:"true"},"["),(0,m.kt)("mtable",{parentName:"mrow",rowspacing:"0.16em",columnalign:"center",columnspacing:"1em"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("msubsup",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"msubsup"},"\u03b1"),(0,m.kt)("mrow",{parentName:"msubsup"},(0,m.kt)("mn",{parentName:"mrow"},"1"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mn",{parentName:"mrow"},"1")),(0,m.kt)("mo",{parentName:"msubsup",mathvariant:"normal",lspace:"0em",rspace:"0em"},"\u2032")))))),(0,m.kt)("mo",{parentName:"mrow",fence:"true"},"]")),(0,m.kt)("mrow",{parentName:"mrow"},(0,m.kt)("mo",{parentName:"mrow",fence:"true"},"["),(0,m.kt)("mtable",{parentName:"mrow",rowspacing:"0.16em",columnalign:"center",columnspacing:"1em"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("msub",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"msub"},"v"),(0,m.kt)("mn",{parentName:"msub"},"1")))))),(0,m.kt)("mo",{parentName:"mrow",fence:"true"},"]")))),(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mtext",{parentName:"mtd"},"(5)")))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"\\begin{bmatrix}o_1\\end{bmatrix}=\\begin{bmatrix}\\alpha_{1,1}^{\\prime}\\end{bmatrix}\\begin{bmatrix}v_1\\end{bmatrix}\\tag{5}")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1.2em",verticalAlign:"-0.35em"}}),(0,m.kt)("span",{parentName:"span",className:"minner"},(0,m.kt)("span",{parentName:"span",className:"mopen delimcenter",style:{top:"0em"}},(0,m.kt)("span",{parentName:"span",className:"delimsizing size1"},"[")),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mtable"},(0,m.kt)("span",{parentName:"span",className:"col-align-c"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.85em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-3.01em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"o"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"1")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"}))))))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.35em"}},(0,m.kt)("span",{parentName:"span"}))))))),(0,m.kt)("span",{parentName:"span",className:"mclose delimcenter",style:{top:"0em"}},(0,m.kt)("span",{parentName:"span",className:"delimsizing size1"},"]"))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"="),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1.2242em",verticalAlign:"-0.3621em"}}),(0,m.kt)("span",{parentName:"span",className:"minner"},(0,m.kt)("span",{parentName:"span",className:"mopen delimcenter",style:{top:"0em"}},(0,m.kt)("span",{parentName:"span",className:"delimsizing size1"},"[")),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mtable"},(0,m.kt)("span",{parentName:"span",className:"col-align-c"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.8621em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-3.0221em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.0037em"}},"\u03b1"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.7519em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.4519em",marginLeft:"-0.0037em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"1"),(0,m.kt)("span",{parentName:"span",className:"mpunct mtight"},","),(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"1")))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.063em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"\u2032"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3842em"}},(0,m.kt)("span",{parentName:"span"}))))))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3621em"}},(0,m.kt)("span",{parentName:"span"}))))))),(0,m.kt)("span",{parentName:"span",className:"mclose delimcenter",style:{top:"0em"}},(0,m.kt)("span",{parentName:"span",className:"delimsizing size1"},"]"))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"minner"},(0,m.kt)("span",{parentName:"span",className:"mopen delimcenter",style:{top:"0em"}},(0,m.kt)("span",{parentName:"span",className:"delimsizing size1"},"[")),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mtable"},(0,m.kt)("span",{parentName:"span",className:"col-align-c"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.85em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-3.01em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"v"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0359em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"1")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"}))))))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.35em"}},(0,m.kt)("span",{parentName:"span"}))))))),(0,m.kt)("span",{parentName:"span",className:"mclose delimcenter",style:{top:"0em"}},(0,m.kt)("span",{parentName:"span",className:"delimsizing size1"},"]")))),(0,m.kt)("span",{parentName:"span",className:"tag"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1.2242em",verticalAlign:"-0.3621em"}}),(0,m.kt)("span",{parentName:"span",className:"mord text"},(0,m.kt)("span",{parentName:"span",className:"mord"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"5")),(0,m.kt)("span",{parentName:"span",className:"mord"},")"))))))),(0,m.kt)("p",null,"\u6211\u4eec\u518d\u6a21\u62df\u8bad\u7ec3\u8fc7\u7a0b\u4e2d\u4f7f\u7528Teacher Forcing\uff0c\u4e00\u6b21\u6027\u8f93\u5165\u4e3a\u4e24\u4e2a\u8bcd\u6c47",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"v"),(0,m.kt)("mi",{parentName:"mrow"},"o"),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"c"),(0,m.kt)("mn",{parentName:"msub"},"1"))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"voc_1")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.5806em",verticalAlign:"-0.15em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"v"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"o"),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"c"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"1")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))))))),"\u4e0e",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"v"),(0,m.kt)("mi",{parentName:"mrow"},"o"),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"c"),(0,m.kt)("mn",{parentName:"msub"},"2"))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"voc_2")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.5806em",verticalAlign:"-0.15em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"v"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"o"),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"c"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"2")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))))))),"\u7684\u60c5\u51b5\uff0c\u4e8e\u662f\u6709"),(0,m.kt)("div",{className:"math math-display"},(0,m.kt)("span",{parentName:"div",className:"katex-display"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mtable",{parentName:"semantics",width:"100%"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mrow",{parentName:"mtd"},(0,m.kt)("mrow",{parentName:"mrow"},(0,m.kt)("mo",{parentName:"mrow",fence:"true"},"["),(0,m.kt)("mtable",{parentName:"mrow",rowspacing:"0.16em",columnalign:"center",columnspacing:"1em"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("msub",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"msub"},"o"),(0,m.kt)("mn",{parentName:"msub"},"1"))))),(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("msub",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"msub"},"o"),(0,m.kt)("mn",{parentName:"msub"},"2")))))),(0,m.kt)("mo",{parentName:"mrow",fence:"true"},"]")),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("mrow",{parentName:"mrow"},(0,m.kt)("mo",{parentName:"mrow",fence:"true"},"["),(0,m.kt)("mtable",{parentName:"mrow",rowspacing:"0.16em",columnalign:"center center",columnspacing:"1em"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("msubsup",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"msubsup"},"\u03b1"),(0,m.kt)("mrow",{parentName:"msubsup"},(0,m.kt)("mn",{parentName:"mrow"},"1"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mn",{parentName:"mrow"},"1")),(0,m.kt)("mo",{parentName:"msubsup",mathvariant:"normal",lspace:"0em",rspace:"0em"},"\u2032")))),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("msubsup",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"msubsup"},"\u03b1"),(0,m.kt)("mrow",{parentName:"msubsup"},(0,m.kt)("mn",{parentName:"mrow"},"2"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mn",{parentName:"mrow"},"1")),(0,m.kt)("mo",{parentName:"msubsup",mathvariant:"normal",lspace:"0em",rspace:"0em"},"\u2032"))))),(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("msubsup",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"msubsup"},"\u03b1"),(0,m.kt)("mrow",{parentName:"msubsup"},(0,m.kt)("mn",{parentName:"mrow"},"1"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mn",{parentName:"mrow"},"2")),(0,m.kt)("mo",{parentName:"msubsup",mathvariant:"normal",lspace:"0em",rspace:"0em"},"\u2032")))),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("msubsup",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"msubsup"},"\u03b1"),(0,m.kt)("mrow",{parentName:"msubsup"},(0,m.kt)("mn",{parentName:"mrow"},"2"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mn",{parentName:"mrow"},"2")),(0,m.kt)("mo",{parentName:"msubsup",mathvariant:"normal",lspace:"0em",rspace:"0em"},"\u2032")))))),(0,m.kt)("mo",{parentName:"mrow",fence:"true"},"]")),(0,m.kt)("mrow",{parentName:"mrow"},(0,m.kt)("mo",{parentName:"mrow",fence:"true"},"["),(0,m.kt)("mtable",{parentName:"mrow",rowspacing:"0.16em",columnalign:"center",columnspacing:"1em"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("msub",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"msub"},"v"),(0,m.kt)("mn",{parentName:"msub"},"1"))))),(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("msub",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"msub"},"v"),(0,m.kt)("mn",{parentName:"msub"},"2")))))),(0,m.kt)("mo",{parentName:"mrow",fence:"true"},"]")))),(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mtext",{parentName:"mtd"},"(6)")))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"\\begin{bmatrix}o_1\\\\o_2\\end{bmatrix}=\\begin{bmatrix}\\alpha_{1,1}^{\\prime}&\\alpha_{2,1}^{\\prime}\\\\\\alpha_{1,2}^{\\prime}&\\alpha_{2,2}^{\\prime}\\end{bmatrix}\\begin{bmatrix}v_1\\\\v_2\\end{bmatrix} \\tag{6}")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"2.4em",verticalAlign:"-0.95em"}}),(0,m.kt)("span",{parentName:"span",className:"minner"},(0,m.kt)("span",{parentName:"span",className:"mopen delimcenter",style:{top:"0em"}},(0,m.kt)("span",{parentName:"span",className:"delimsizing size3"},"[")),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mtable"},(0,m.kt)("span",{parentName:"span",className:"col-align-c"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.45em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-3.61em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"o"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"1")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))))),(0,m.kt)("span",{parentName:"span",style:{top:"-2.41em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"o"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"2")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"}))))))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.95em"}},(0,m.kt)("span",{parentName:"span"}))))))),(0,m.kt)("span",{parentName:"span",className:"mclose delimcenter",style:{top:"0em"}},(0,m.kt)("span",{parentName:"span",className:"delimsizing size3"},"]"))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"="),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"2.4484em",verticalAlign:"-0.9742em"}}),(0,m.kt)("span",{parentName:"span",className:"minner"},(0,m.kt)("span",{parentName:"span",className:"mopen delimcenter",style:{top:"0em"}},(0,m.kt)("span",{parentName:"span",className:"delimsizing size3"},"[")),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mtable"},(0,m.kt)("span",{parentName:"span",className:"col-align-c"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.4742em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-3.6342em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.0037em"}},"\u03b1"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.7519em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.4519em",marginLeft:"-0.0037em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"1"),(0,m.kt)("span",{parentName:"span",className:"mpunct mtight"},","),(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"1")))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.063em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"\u2032"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3842em"}},(0,m.kt)("span",{parentName:"span"})))))))),(0,m.kt)("span",{parentName:"span",style:{top:"-2.41em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.0037em"}},"\u03b1"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.7519em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.4519em",marginLeft:"-0.0037em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"1"),(0,m.kt)("span",{parentName:"span",className:"mpunct mtight"},","),(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"2")))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.063em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"\u2032"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3842em"}},(0,m.kt)("span",{parentName:"span"}))))))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.9742em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"arraycolsep",style:{width:"0.5em"}}),(0,m.kt)("span",{parentName:"span",className:"arraycolsep",style:{width:"0.5em"}}),(0,m.kt)("span",{parentName:"span",className:"col-align-c"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.4742em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-3.6342em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.0037em"}},"\u03b1"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.7519em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.4519em",marginLeft:"-0.0037em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"2"),(0,m.kt)("span",{parentName:"span",className:"mpunct mtight"},","),(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"1")))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.063em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"\u2032"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3842em"}},(0,m.kt)("span",{parentName:"span"})))))))),(0,m.kt)("span",{parentName:"span",style:{top:"-2.41em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.0037em"}},"\u03b1"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.7519em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.4519em",marginLeft:"-0.0037em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"2"),(0,m.kt)("span",{parentName:"span",className:"mpunct mtight"},","),(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"2")))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.063em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"\u2032"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3842em"}},(0,m.kt)("span",{parentName:"span"}))))))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.9742em"}},(0,m.kt)("span",{parentName:"span"}))))))),(0,m.kt)("span",{parentName:"span",className:"mclose delimcenter",style:{top:"0em"}},(0,m.kt)("span",{parentName:"span",className:"delimsizing size3"},"]"))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"minner"},(0,m.kt)("span",{parentName:"span",className:"mopen delimcenter",style:{top:"0em"}},(0,m.kt)("span",{parentName:"span",className:"delimsizing size3"},"[")),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mtable"},(0,m.kt)("span",{parentName:"span",className:"col-align-c"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.45em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-3.61em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"v"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0359em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"1")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))))),(0,m.kt)("span",{parentName:"span",style:{top:"-2.41em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"v"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0359em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"2")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"}))))))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.95em"}},(0,m.kt)("span",{parentName:"span"}))))))),(0,m.kt)("span",{parentName:"span",className:"mclose delimcenter",style:{top:"0em"}},(0,m.kt)("span",{parentName:"span",className:"delimsizing size3"},"]")))),(0,m.kt)("span",{parentName:"span",className:"tag"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"2.4484em",verticalAlign:"-0.9742em"}}),(0,m.kt)("span",{parentName:"span",className:"mord text"},(0,m.kt)("span",{parentName:"span",className:"mord"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"6")),(0,m.kt)("span",{parentName:"span",className:"mord"},")"))))))),(0,m.kt)("p",null,"\u7136\u800c\uff0c\u4e3a\u4e86\u4f7f\u8bad\u7ec3\u8fc7\u7a0b\u4e2d\u7b26\u5408\u63a8\u7406\u65f6\u81ea\u56de\u5f52\u7684\u7279\u6027\uff0c\u7406\u60f3\u7684\u8f93\u51fa\u5e94\u8be5\u662f"),(0,m.kt)("div",{className:"math math-display"},(0,m.kt)("span",{parentName:"div",className:"katex-display"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mtable",{parentName:"semantics",width:"100%"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mrow",{parentName:"mtd"},(0,m.kt)("mrow",{parentName:"mrow"},(0,m.kt)("mo",{parentName:"mrow",fence:"true"},"["),(0,m.kt)("mtable",{parentName:"mrow",rowspacing:"0.16em",columnalign:"center",columnspacing:"1em"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("msub",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"msub"},"o"),(0,m.kt)("mn",{parentName:"msub"},"1"))))),(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("msub",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"msub"},"o"),(0,m.kt)("mn",{parentName:"msub"},"2")))))),(0,m.kt)("mo",{parentName:"mrow",fence:"true"},"]")),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("mrow",{parentName:"mrow"},(0,m.kt)("mo",{parentName:"mrow",fence:"true"},"["),(0,m.kt)("mtable",{parentName:"mrow",rowspacing:"0.16em",columnalign:"center center",columnspacing:"1em"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("msubsup",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"msubsup"},"\u03b1"),(0,m.kt)("mrow",{parentName:"msubsup"},(0,m.kt)("mn",{parentName:"mrow"},"1"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mn",{parentName:"mrow"},"1")),(0,m.kt)("mo",{parentName:"msubsup",mathvariant:"normal",lspace:"0em",rspace:"0em"},"\u2032")))),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("mn",{parentName:"mstyle"},"0")))),(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("msubsup",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"msubsup"},"\u03b1"),(0,m.kt)("mrow",{parentName:"msubsup"},(0,m.kt)("mn",{parentName:"mrow"},"1"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mn",{parentName:"mrow"},"2")),(0,m.kt)("mo",{parentName:"msubsup",mathvariant:"normal",lspace:"0em",rspace:"0em"},"\u2032")))),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("msubsup",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"msubsup"},"\u03b1"),(0,m.kt)("mrow",{parentName:"msubsup"},(0,m.kt)("mn",{parentName:"mrow"},"2"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mn",{parentName:"mrow"},"2")),(0,m.kt)("mo",{parentName:"msubsup",mathvariant:"normal",lspace:"0em",rspace:"0em"},"\u2032")))))),(0,m.kt)("mo",{parentName:"mrow",fence:"true"},"]")),(0,m.kt)("mrow",{parentName:"mrow"},(0,m.kt)("mo",{parentName:"mrow",fence:"true"},"["),(0,m.kt)("mtable",{parentName:"mrow",rowspacing:"0.16em",columnalign:"center",columnspacing:"1em"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("msub",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"msub"},"v"),(0,m.kt)("mn",{parentName:"msub"},"1"))))),(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("msub",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"msub"},"v"),(0,m.kt)("mn",{parentName:"msub"},"2")))))),(0,m.kt)("mo",{parentName:"mrow",fence:"true"},"]")))),(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mtext",{parentName:"mtd"},"(7)")))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"\\begin{bmatrix}o_1\\\\o_2\\end{bmatrix}=\\begin{bmatrix}\\alpha_{1,1}^{\\prime}&0\\\\\\alpha_{1,2}^{\\prime}&\\alpha_{2,2}^{\\prime}\\end{bmatrix}\\begin{bmatrix}v_1\\\\v_2\\end{bmatrix} \\tag{7}")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"2.4em",verticalAlign:"-0.95em"}}),(0,m.kt)("span",{parentName:"span",className:"minner"},(0,m.kt)("span",{parentName:"span",className:"mopen delimcenter",style:{top:"0em"}},(0,m.kt)("span",{parentName:"span",className:"delimsizing size3"},"[")),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mtable"},(0,m.kt)("span",{parentName:"span",className:"col-align-c"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.45em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-3.61em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"o"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"1")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))))),(0,m.kt)("span",{parentName:"span",style:{top:"-2.41em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"o"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"2")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"}))))))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.95em"}},(0,m.kt)("span",{parentName:"span"}))))))),(0,m.kt)("span",{parentName:"span",className:"mclose delimcenter",style:{top:"0em"}},(0,m.kt)("span",{parentName:"span",className:"delimsizing size3"},"]"))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"="),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"2.4484em",verticalAlign:"-0.9742em"}}),(0,m.kt)("span",{parentName:"span",className:"minner"},(0,m.kt)("span",{parentName:"span",className:"mopen delimcenter",style:{top:"0em"}},(0,m.kt)("span",{parentName:"span",className:"delimsizing size3"},"[")),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mtable"},(0,m.kt)("span",{parentName:"span",className:"col-align-c"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.4742em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-3.6342em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.0037em"}},"\u03b1"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.7519em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.4519em",marginLeft:"-0.0037em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"1"),(0,m.kt)("span",{parentName:"span",className:"mpunct mtight"},","),(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"1")))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.063em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"\u2032"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3842em"}},(0,m.kt)("span",{parentName:"span"})))))))),(0,m.kt)("span",{parentName:"span",style:{top:"-2.41em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.0037em"}},"\u03b1"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.7519em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.4519em",marginLeft:"-0.0037em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"1"),(0,m.kt)("span",{parentName:"span",className:"mpunct mtight"},","),(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"2")))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.063em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"\u2032"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3842em"}},(0,m.kt)("span",{parentName:"span"}))))))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.9742em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"arraycolsep",style:{width:"0.5em"}}),(0,m.kt)("span",{parentName:"span",className:"arraycolsep",style:{width:"0.5em"}}),(0,m.kt)("span",{parentName:"span",className:"col-align-c"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.4742em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-3.6342em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"0"))),(0,m.kt)("span",{parentName:"span",style:{top:"-2.41em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.0037em"}},"\u03b1"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.7519em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.4519em",marginLeft:"-0.0037em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"2"),(0,m.kt)("span",{parentName:"span",className:"mpunct mtight"},","),(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"2")))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.063em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"\u2032"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3842em"}},(0,m.kt)("span",{parentName:"span"}))))))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.9742em"}},(0,m.kt)("span",{parentName:"span"}))))))),(0,m.kt)("span",{parentName:"span",className:"mclose delimcenter",style:{top:"0em"}},(0,m.kt)("span",{parentName:"span",className:"delimsizing size3"},"]"))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"minner"},(0,m.kt)("span",{parentName:"span",className:"mopen delimcenter",style:{top:"0em"}},(0,m.kt)("span",{parentName:"span",className:"delimsizing size3"},"[")),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mtable"},(0,m.kt)("span",{parentName:"span",className:"col-align-c"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.45em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-3.61em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"v"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0359em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"1")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))))),(0,m.kt)("span",{parentName:"span",style:{top:"-2.41em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"v"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0359em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"2")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"}))))))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.95em"}},(0,m.kt)("span",{parentName:"span"}))))))),(0,m.kt)("span",{parentName:"span",className:"mclose delimcenter",style:{top:"0em"}},(0,m.kt)("span",{parentName:"span",className:"delimsizing size3"},"]")))),(0,m.kt)("span",{parentName:"span",className:"tag"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"2.4484em",verticalAlign:"-0.9742em"}}),(0,m.kt)("span",{parentName:"span",className:"mord text"},(0,m.kt)("span",{parentName:"span",className:"mord"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"7")),(0,m.kt)("span",{parentName:"span",className:"mord"},")"))))))),(0,m.kt)("p",null,"\u7ee7\u7eed\u6269\u5c55\uff0c\u5f53\u6709",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"n")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"n")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.4306em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"n"))))),"\u4e2a\u8f93\u5165\u8bcd\u6c47\u65f6\uff0c\u5e94\u8be5\u6709"),(0,m.kt)("div",{className:"math math-display"},(0,m.kt)("span",{parentName:"div",className:"katex-display"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mtable",{parentName:"semantics",width:"100%"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mrow",{parentName:"mtd"},(0,m.kt)("mrow",{parentName:"mrow"},(0,m.kt)("mo",{parentName:"mrow",fence:"true"},"["),(0,m.kt)("mtable",{parentName:"mrow",rowspacing:"0.16em",columnalign:"center",columnspacing:"1em"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("msub",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"msub"},"o"),(0,m.kt)("mn",{parentName:"msub"},"1"))))),(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("msub",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"msub"},"o"),(0,m.kt)("mn",{parentName:"msub"},"2"))))),(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("mi",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"mi",mathvariant:"normal"},"\u22ee"),(0,m.kt)("mpadded",{parentName:"mi",height:"0em",voffset:"0em"},(0,m.kt)("mspace",{parentName:"mpadded",mathbackground:"black",width:"0em",height:"1.5em"})))))),(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("msub",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"msub"},"o"),(0,m.kt)("mi",{parentName:"msub"},"n")))))),(0,m.kt)("mo",{parentName:"mrow",fence:"true"},"]")),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("mrow",{parentName:"mrow"},(0,m.kt)("mo",{parentName:"mrow",fence:"true"},"["),(0,m.kt)("mtable",{parentName:"mrow",rowspacing:"0.16em",columnalign:"center center center center",columnspacing:"1em"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("msubsup",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"msubsup"},"\u03b1"),(0,m.kt)("mrow",{parentName:"msubsup"},(0,m.kt)("mn",{parentName:"mrow"},"1"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mn",{parentName:"mrow"},"1")),(0,m.kt)("mo",{parentName:"msubsup",mathvariant:"normal",lspace:"0em",rspace:"0em"},"\u2032")))),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("mn",{parentName:"mstyle"},"0"))),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("mo",{parentName:"mstyle",lspace:"0em",rspace:"0em"},"\u22ef"))),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("mn",{parentName:"mstyle"},"0")))),(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("msubsup",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"msubsup"},"\u03b1"),(0,m.kt)("mrow",{parentName:"msubsup"},(0,m.kt)("mn",{parentName:"mrow"},"1"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mn",{parentName:"mrow"},"2")),(0,m.kt)("mo",{parentName:"msubsup",mathvariant:"normal",lspace:"0em",rspace:"0em"},"\u2032")))),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("msubsup",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"msubsup"},"\u03b1"),(0,m.kt)("mn",{parentName:"msubsup"},"2"),(0,m.kt)("mo",{parentName:"msubsup",mathvariant:"normal",lspace:"0em",rspace:"0em"},"\u2032")))),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("mo",{parentName:"mstyle",lspace:"0em",rspace:"0em"},"\u22ef"))),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("mn",{parentName:"mstyle"},"0")))),(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("mi",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"mi",mathvariant:"normal"},"\u22ee"),(0,m.kt)("mpadded",{parentName:"mi",height:"0em",voffset:"0em"},(0,m.kt)("mspace",{parentName:"mpadded",mathbackground:"black",width:"0em",height:"1.5em"}))))),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("mi",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"mi",mathvariant:"normal"},"\u22ee"),(0,m.kt)("mpadded",{parentName:"mi",height:"0em",voffset:"0em"},(0,m.kt)("mspace",{parentName:"mpadded",mathbackground:"black",width:"0em",height:"1.5em"}))))),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("mrow",{parentName:"mstyle"}))),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("mi",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"mi",mathvariant:"normal"},"\u22ee"),(0,m.kt)("mpadded",{parentName:"mi",height:"0em",voffset:"0em"},(0,m.kt)("mspace",{parentName:"mpadded",mathbackground:"black",width:"0em",height:"1.5em"})))))),(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("msubsup",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"msubsup"},"\u03b1"),(0,m.kt)("mrow",{parentName:"msubsup"},(0,m.kt)("mn",{parentName:"mrow"},"1"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"n")),(0,m.kt)("mo",{parentName:"msubsup",mathvariant:"normal",lspace:"0em",rspace:"0em"},"\u2032")))),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("msubsup",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"msubsup"},"\u03b1"),(0,m.kt)("mrow",{parentName:"msubsup"},(0,m.kt)("mn",{parentName:"mrow"},"2"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"n")),(0,m.kt)("mo",{parentName:"msubsup",mathvariant:"normal",lspace:"0em",rspace:"0em"},"\u2032")))),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("mo",{parentName:"mstyle",lspace:"0em",rspace:"0em"},"\u22ef"))),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("msubsup",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"msubsup"},"\u03b1"),(0,m.kt)("mrow",{parentName:"msubsup"},(0,m.kt)("mi",{parentName:"mrow"},"n"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"n")),(0,m.kt)("mo",{parentName:"msubsup",mathvariant:"normal",lspace:"0em",rspace:"0em"},"\u2032")))))),(0,m.kt)("mo",{parentName:"mrow",fence:"true"},"]")),(0,m.kt)("mrow",{parentName:"mrow"},(0,m.kt)("mo",{parentName:"mrow",fence:"true"},"["),(0,m.kt)("mtable",{parentName:"mrow",rowspacing:"0.16em",columnalign:"center",columnspacing:"1em"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("msub",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"msub"},"v"),(0,m.kt)("mn",{parentName:"msub"},"1"))))),(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("msub",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"msub"},"v"),(0,m.kt)("mn",{parentName:"msub"},"2"))))),(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("mi",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"mi",mathvariant:"normal"},"\u22ee"),(0,m.kt)("mpadded",{parentName:"mi",height:"0em",voffset:"0em"},(0,m.kt)("mspace",{parentName:"mpadded",mathbackground:"black",width:"0em",height:"1.5em"})))))),(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("msub",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"msub"},"v"),(0,m.kt)("mi",{parentName:"msub"},"n")))))),(0,m.kt)("mo",{parentName:"mrow",fence:"true"},"]")))),(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mtext",{parentName:"mtd"},"(8)")))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"\\begin{bmatrix}o_1\\\\o_2\\\\\\vdots\\\\o_n\\end{bmatrix}=\\begin{bmatrix}\\alpha'_{1,1}&0&\\cdots&0\\\\\\alpha'_{1,2}&\\alpha'_2&\\cdots&0\\\\\\vdots&\\vdots&&\\vdots\\\\\\alpha'_{1,n}&\\alpha'_{2,n}&\\cdots&\\alpha'_{n,n}\\end{bmatrix}\\begin{bmatrix}v_1\\\\v_2\\\\\\vdots\\\\v_n\\end{bmatrix}\\tag{8}")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"5.46em",verticalAlign:"-2.48em"}}),(0,m.kt)("span",{parentName:"span",className:"minner"},(0,m.kt)("span",{parentName:"span",className:"mopen"},(0,m.kt)("span",{parentName:"span",className:"delimsizing mult"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"2.95em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.011em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.816em"}}),(0,m.kt)("span",{parentName:"span",className:"delimsizinginner delim-size4"},(0,m.kt)("span",{parentName:"span"},"\u23a3"))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.158em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.816em"}}),(0,m.kt)("span",{parentName:"span",style:{height:"1.816em",width:"0.6667em"}},(0,m.kt)("svg",{parentName:"span",xmlns:"http://www.w3.org/2000/svg",width:"0.6667em",height:"1.816em",style:{width:"0.6667em"},viewBox:"0 0 666.67 1816",preserveAspectRatio:"xMinYMin"},(0,m.kt)("path",{parentName:"svg",d:"M319 0 H403 V1816 H319z M319 0 H403 V1816 H319z"})))),(0,m.kt)("span",{parentName:"span",style:{top:"-5.6111em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.816em"}}),(0,m.kt)("span",{parentName:"span",className:"delimsizinginner delim-size4"},(0,m.kt)("span",{parentName:"span"},"\u23a1")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"2.45em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mtable"},(0,m.kt)("span",{parentName:"span",className:"col-align-c"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"2.98em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-5.8275em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.6875em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"o"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"1")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))))),(0,m.kt)("span",{parentName:"span",style:{top:"-4.6275em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.6875em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"o"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"2")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))))),(0,m.kt)("span",{parentName:"span",style:{top:"-2.7675em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.6875em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"\u22ee"),(0,m.kt)("span",{parentName:"span",className:"mord rule",style:{borderRightWidth:"0em",borderTopWidth:"1.5em",bottom:"0em"}})))),(0,m.kt)("span",{parentName:"span",style:{top:"-1.5675em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.6875em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"o"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.1514em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"n")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"}))))))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"2.48em"}},(0,m.kt)("span",{parentName:"span"}))))))),(0,m.kt)("span",{parentName:"span",className:"mclose"},(0,m.kt)("span",{parentName:"span",className:"delimsizing mult"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"2.95em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.011em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.816em"}}),(0,m.kt)("span",{parentName:"span",className:"delimsizinginner delim-size4"},(0,m.kt)("span",{parentName:"span"},"\u23a6"))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.158em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.816em"}}),(0,m.kt)("span",{parentName:"span",style:{height:"1.816em",width:"0.6667em"}},(0,m.kt)("svg",{parentName:"span",xmlns:"http://www.w3.org/2000/svg",width:"0.6667em",height:"1.816em",style:{width:"0.6667em"},viewBox:"0 0 666.67 1816",preserveAspectRatio:"xMinYMin"},(0,m.kt)("path",{parentName:"svg",d:"M263 0 H347 V1816 H263z M263 0 H347 V1816 H263z"})))),(0,m.kt)("span",{parentName:"span",style:{top:"-5.6111em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.816em"}}),(0,m.kt)("span",{parentName:"span",className:"delimsizinginner delim-size4"},(0,m.kt)("span",{parentName:"span"},"\u23a4")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"2.45em"}},(0,m.kt)("span",{parentName:"span"}))))))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"="),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"5.5326em",verticalAlign:"-2.5163em"}}),(0,m.kt)("span",{parentName:"span",className:"minner"},(0,m.kt)("span",{parentName:"span",className:"mopen"},(0,m.kt)("span",{parentName:"span",className:"delimsizing mult"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"2.95em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.011em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.816em"}}),(0,m.kt)("span",{parentName:"span",className:"delimsizinginner delim-size4"},(0,m.kt)("span",{parentName:"span"},"\u23a3"))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.158em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.816em"}}),(0,m.kt)("span",{parentName:"span",style:{height:"1.816em",width:"0.6667em"}},(0,m.kt)("svg",{parentName:"span",xmlns:"http://www.w3.org/2000/svg",width:"0.6667em",height:"1.816em",style:{width:"0.6667em"},viewBox:"0 0 666.67 1816",preserveAspectRatio:"xMinYMin"},(0,m.kt)("path",{parentName:"svg",d:"M319 0 H403 V1816 H319z M319 0 H403 V1816 H319z"})))),(0,m.kt)("span",{parentName:"span",style:{top:"-5.6111em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.816em"}}),(0,m.kt)("span",{parentName:"span",className:"delimsizinginner delim-size4"},(0,m.kt)("span",{parentName:"span"},"\u23a1")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"2.45em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mtable"},(0,m.kt)("span",{parentName:"span",className:"col-align-c"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"3.0163em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-5.8638em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.6875em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.0037em"}},"\u03b1"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.7519em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.4519em",marginLeft:"-0.0037em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"1"),(0,m.kt)("span",{parentName:"span",className:"mpunct mtight"},","),(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"1")))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.063em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"\u2032"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3842em"}},(0,m.kt)("span",{parentName:"span"})))))))),(0,m.kt)("span",{parentName:"span",style:{top:"-4.6396em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.6875em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.0037em"}},"\u03b1"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.7519em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.4519em",marginLeft:"-0.0037em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"1"),(0,m.kt)("span",{parentName:"span",className:"mpunct mtight"},","),(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"2")))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.063em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"\u2032"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3842em"}},(0,m.kt)("span",{parentName:"span"})))))))),(0,m.kt)("span",{parentName:"span",style:{top:"-2.7554em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.6875em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"\u22ee"),(0,m.kt)("span",{parentName:"span",className:"mord rule",style:{borderRightWidth:"0em",borderTopWidth:"1.5em",bottom:"0em"}})))),(0,m.kt)("span",{parentName:"span",style:{top:"-1.5554em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.6875em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.0037em"}},"\u03b1"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.7519em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.4519em",marginLeft:"-0.0037em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"1"),(0,m.kt)("span",{parentName:"span",className:"mpunct mtight"},","),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"n")))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.063em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"\u2032"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3842em"}},(0,m.kt)("span",{parentName:"span"}))))))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"2.5163em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"arraycolsep",style:{width:"0.5em"}}),(0,m.kt)("span",{parentName:"span",className:"arraycolsep",style:{width:"0.5em"}}),(0,m.kt)("span",{parentName:"span",className:"col-align-c"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"3.0163em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-5.8638em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.6875em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"0"))),(0,m.kt)("span",{parentName:"span",style:{top:"-4.6396em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.6875em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.0037em"}},"\u03b1"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.7519em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.4519em",marginLeft:"-0.0037em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"2"))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.063em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"\u2032"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.2481em"}},(0,m.kt)("span",{parentName:"span"})))))))),(0,m.kt)("span",{parentName:"span",style:{top:"-2.7554em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.6875em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"\u22ee"),(0,m.kt)("span",{parentName:"span",className:"mord rule",style:{borderRightWidth:"0em",borderTopWidth:"1.5em",bottom:"0em"}})))),(0,m.kt)("span",{parentName:"span",style:{top:"-1.5554em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.6875em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.0037em"}},"\u03b1"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.7519em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.4519em",marginLeft:"-0.0037em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"2"),(0,m.kt)("span",{parentName:"span",className:"mpunct mtight"},","),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"n")))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.063em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"\u2032"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3842em"}},(0,m.kt)("span",{parentName:"span"}))))))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"2.5163em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"arraycolsep",style:{width:"0.5em"}}),(0,m.kt)("span",{parentName:"span",className:"arraycolsep",style:{width:"0.5em"}}),(0,m.kt)("span",{parentName:"span",className:"col-align-c"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"3.0163em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-5.6763em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.5em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"minner"},"\u22ef"))),(0,m.kt)("span",{parentName:"span",style:{top:"-4.4521em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.5em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"minner"},"\u22ef"))),(0,m.kt)("span",{parentName:"span",style:{top:"-2.5679em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.5em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"})),(0,m.kt)("span",{parentName:"span",style:{top:"-1.3679em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.5em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"minner"},"\u22ef")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"2.5163em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"arraycolsep",style:{width:"0.5em"}}),(0,m.kt)("span",{parentName:"span",className:"arraycolsep",style:{width:"0.5em"}}),(0,m.kt)("span",{parentName:"span",className:"col-align-c"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"3.0163em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-5.8638em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.6875em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"0"))),(0,m.kt)("span",{parentName:"span",style:{top:"-4.6396em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.6875em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"0"))),(0,m.kt)("span",{parentName:"span",style:{top:"-2.7554em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.6875em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"\u22ee"),(0,m.kt)("span",{parentName:"span",className:"mord rule",style:{borderRightWidth:"0em",borderTopWidth:"1.5em",bottom:"0em"}})))),(0,m.kt)("span",{parentName:"span",style:{top:"-1.5554em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.6875em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.0037em"}},"\u03b1"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.7519em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.453em",marginLeft:"-0.0037em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"n"),(0,m.kt)("span",{parentName:"span",className:"mpunct mtight"},","),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"n")))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.063em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"\u2032"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3831em"}},(0,m.kt)("span",{parentName:"span"}))))))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"2.5163em"}},(0,m.kt)("span",{parentName:"span"}))))))),(0,m.kt)("span",{parentName:"span",className:"mclose"},(0,m.kt)("span",{parentName:"span",className:"delimsizing mult"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"2.95em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.011em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.816em"}}),(0,m.kt)("span",{parentName:"span",className:"delimsizinginner delim-size4"},(0,m.kt)("span",{parentName:"span"},"\u23a6"))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.158em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.816em"}}),(0,m.kt)("span",{parentName:"span",style:{height:"1.816em",width:"0.6667em"}},(0,m.kt)("svg",{parentName:"span",xmlns:"http://www.w3.org/2000/svg",width:"0.6667em",height:"1.816em",style:{width:"0.6667em"},viewBox:"0 0 666.67 1816",preserveAspectRatio:"xMinYMin"},(0,m.kt)("path",{parentName:"svg",d:"M263 0 H347 V1816 H263z M263 0 H347 V1816 H263z"})))),(0,m.kt)("span",{parentName:"span",style:{top:"-5.6111em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.816em"}}),(0,m.kt)("span",{parentName:"span",className:"delimsizinginner delim-size4"},(0,m.kt)("span",{parentName:"span"},"\u23a4")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"2.45em"}},(0,m.kt)("span",{parentName:"span"}))))))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"minner"},(0,m.kt)("span",{parentName:"span",className:"mopen"},(0,m.kt)("span",{parentName:"span",className:"delimsizing mult"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"2.95em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.011em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.816em"}}),(0,m.kt)("span",{parentName:"span",className:"delimsizinginner delim-size4"},(0,m.kt)("span",{parentName:"span"},"\u23a3"))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.158em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.816em"}}),(0,m.kt)("span",{parentName:"span",style:{height:"1.816em",width:"0.6667em"}},(0,m.kt)("svg",{parentName:"span",xmlns:"http://www.w3.org/2000/svg",width:"0.6667em",height:"1.816em",style:{width:"0.6667em"},viewBox:"0 0 666.67 1816",preserveAspectRatio:"xMinYMin"},(0,m.kt)("path",{parentName:"svg",d:"M319 0 H403 V1816 H319z M319 0 H403 V1816 H319z"})))),(0,m.kt)("span",{parentName:"span",style:{top:"-5.6111em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.816em"}}),(0,m.kt)("span",{parentName:"span",className:"delimsizinginner delim-size4"},(0,m.kt)("span",{parentName:"span"},"\u23a1")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"2.45em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mtable"},(0,m.kt)("span",{parentName:"span",className:"col-align-c"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"2.98em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-5.8275em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.6875em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"v"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0359em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"1")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))))),(0,m.kt)("span",{parentName:"span",style:{top:"-4.6275em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.6875em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"v"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0359em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"2")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))))),(0,m.kt)("span",{parentName:"span",style:{top:"-2.7675em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.6875em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"\u22ee"),(0,m.kt)("span",{parentName:"span",className:"mord rule",style:{borderRightWidth:"0em",borderTopWidth:"1.5em",bottom:"0em"}})))),(0,m.kt)("span",{parentName:"span",style:{top:"-1.5675em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.6875em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"v"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.1514em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0359em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"n")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"}))))))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"2.48em"}},(0,m.kt)("span",{parentName:"span"}))))))),(0,m.kt)("span",{parentName:"span",className:"mclose"},(0,m.kt)("span",{parentName:"span",className:"delimsizing mult"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"2.95em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.011em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.816em"}}),(0,m.kt)("span",{parentName:"span",className:"delimsizinginner delim-size4"},(0,m.kt)("span",{parentName:"span"},"\u23a6"))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.158em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.816em"}}),(0,m.kt)("span",{parentName:"span",style:{height:"1.816em",width:"0.6667em"}},(0,m.kt)("svg",{parentName:"span",xmlns:"http://www.w3.org/2000/svg",width:"0.6667em",height:"1.816em",style:{width:"0.6667em"},viewBox:"0 0 666.67 1816",preserveAspectRatio:"xMinYMin"},(0,m.kt)("path",{parentName:"svg",d:"M263 0 H347 V1816 H263z M263 0 H347 V1816 H263z"})))),(0,m.kt)("span",{parentName:"span",style:{top:"-5.6111em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.816em"}}),(0,m.kt)("span",{parentName:"span",className:"delimsizinginner delim-size4"},(0,m.kt)("span",{parentName:"span"},"\u23a4")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"2.45em"}},(0,m.kt)("span",{parentName:"span"})))))))),(0,m.kt)("span",{parentName:"span",className:"tag"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"5.5326em",verticalAlign:"-2.5163em"}}),(0,m.kt)("span",{parentName:"span",className:"mord text"},(0,m.kt)("span",{parentName:"span",className:"mord"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"8")),(0,m.kt)("span",{parentName:"span",className:"mord"},")"))))))),(0,m.kt)("p",null,"\u56e0\u6b64\uff0c\u6211\u4eec\u9700\u8981\u5c06\u5f53\u524d\u65f6\u95f4\u6b65\u8ba1\u7b97\u7684\u8bcd\u6c47\u7684\u65f6\u95f4\u987a\u5e8f\u53f3\u4fa7\u7684\u8f93\u5165\u8bcd\u6c47\u5168\u90e8\u63a9\u7801\uff0c\u7f6e\u4e3a0\u3002"),(0,m.kt)("p",null,"\u5728\u6e90\u7801\u4e2d\uff0c\u6709\u5982\u4e0b\u7247\u6bb5\u5b9e\u73b0\u63a9\u7801\uff1a"),(0,m.kt)("pre",null,(0,m.kt)("code",{parentName:"pre",className:"language-python"},"if mask is not None:\n scores = scores.masked_fill(mask == 0, -1e9)\n\np_attn = scores.softmax(dim=-1)\n")),(0,m.kt)("p",null,"\u5728\u6e90\u7801\u4e2d\uff0c\u5c06mask\u7f6e\u4e3a\u8d1f\u65e0\u7a77\u662f\u56e0\u4e3a\u8fd9\u662f\u5728\u7ecf\u8fc7Softmax\u4e4b\u524d\u8fdb\u884c\u7684\u63a9\u7801\uff0c\u5728\u7ecf\u8fc7Softmax\u4e4b\u540e\u8d1f\u65e0\u7a77\u5c0f\u5c31\u53d8\u6210\u4e860\u3002"))}c.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/en/assets/js/4972.d1a5048e.js b/en/assets/js/4972.d1a5048e.js new file mode 100644 index 000000000..a41494381 --- /dev/null +++ b/en/assets/js/4972.d1a5048e.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunknpy_notebook=self.webpackChunknpy_notebook||[]).push([[4972],{4972:(e,t,n)=>{n.r(t),n.d(t,{default:()=>i});var a=n(7294),o=n(5999),l=n(1944),r=n(179);function i(){return a.createElement(a.Fragment,null,a.createElement(l.d,{title:(0,o.I)({id:"theme.NotFound.title",message:"Page Not Found"})}),a.createElement(r.Z,null,a.createElement("main",{className:"container margin-vert--xl"},a.createElement("div",{className:"row"},a.createElement("div",{className:"col col--6 col--offset-3"},a.createElement("h1",{className:"hero__title"},a.createElement(o.Z,{id:"theme.NotFound.title",description:"The title of the 404 page"},"Page Not Found")),a.createElement("p",null,a.createElement(o.Z,{id:"theme.NotFound.p1",description:"The first paragraph of the 404 page"},"We could not find what you were looking for.")),a.createElement("p",null,a.createElement(o.Z,{id:"theme.NotFound.p2",description:"The 2nd paragraph of the 404 page"},"Please contact the owner of the site that linked you to the original URL and let them know their link is broken.")))))))}}}]); \ No newline at end of file diff --git a/en/assets/js/4e1def24.32a199d0.js b/en/assets/js/4e1def24.32a199d0.js new file mode 100644 index 000000000..c4444893e --- /dev/null +++ b/en/assets/js/4e1def24.32a199d0.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunknpy_notebook=self.webpackChunknpy_notebook||[]).push([[6237],{3905:(e,t,r)=>{r.d(t,{Zo:()=>c,kt:()=>k});var n=r(7294);function a(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e){for(var t=1;t=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}var u=n.createContext({}),p=function(e){var t=n.useContext(u),r=t;return e&&(r="function"==typeof e?e(t):i(i({},t),e)),r},c=function(e){var t=p(e.components);return n.createElement(u.Provider,{value:t},e.children)},m="mdxType",d={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},f=n.forwardRef((function(e,t){var r=e.components,a=e.mdxType,l=e.originalType,u=e.parentName,c=o(e,["components","mdxType","originalType","parentName"]),m=p(r),f=a,k=m["".concat(u,".").concat(f)]||m[f]||d[f]||l;return r?n.createElement(k,i(i({ref:t},c),{},{components:r})):n.createElement(k,i({ref:t},c))}));function k(e,t){var r=arguments,a=t&&t.mdxType;if("string"==typeof e||a){var l=r.length,i=new Array(l);i[0]=f;var o={};for(var u in t)hasOwnProperty.call(t,u)&&(o[u]=t[u]);o.originalType=e,o[m]="string"==typeof e?e:a,i[1]=o;for(var p=2;p{r.r(t),r.d(t,{assets:()=>u,contentTitle:()=>i,default:()=>d,frontMatter:()=>l,metadata:()=>o,toc:()=>p});var n=r(7462),a=(r(7294),r(3905));const l={},i="\u7ecf\u9a8c\u8d34\uff1a2023\u5e74\u53cc\u975e\u8ba1\u7b97\u673a\u4fdd\u7814\u7ecf\u5386",o={unversionedId:"Tui-Mian/Summary",id:"Tui-Mian/Summary",title:"\u7ecf\u9a8c\u8d34\uff1a2023\u5e74\u53cc\u975e\u8ba1\u7b97\u673a\u4fdd\u7814\u7ecf\u5386",description:"\u524d\u8a00",source:"@site/docs/Tui-Mian/2-Summary.md",sourceDirName:"Tui-Mian",slug:"/Tui-Mian/Summary",permalink:"/en/docs/Tui-Mian/Summary",draft:!1,tags:[],version:"current",sidebarPosition:2,frontMatter:{},sidebar:"tui_mian",previous:{title:"Welcome",permalink:"/en/docs/Tui-Mian/intro"},next:{title:"\u590f\u4ee4\u8425\u9762\u8bd5\u6570\u5b66\u90e8\u5206\u590d\u4e60",permalink:"/en/docs/Tui-Mian/\u6570\u5b66/\u590f\u4ee4\u8425\u9762\u8bd5\u6570\u5b66\u90e8\u5206\u590d\u4e60"}},u={},p=[{value:"\u524d\u8a00",id:"\u524d\u8a00",level:2},{value:"\u626b\u76f2",id:"\u626b\u76f2",level:3},{value:"\u4e2a\u4eba\u60c5\u51b5",id:"\u4e2a\u4eba\u60c5\u51b5",level:2},{value:"\u524d\u671f\u51c6\u5907",id:"\u524d\u671f\u51c6\u5907",level:2},{value:"\u590f\u4ee4\u8425",id:"\u590f\u4ee4\u8425",level:2},{value:"\u9884\u63a8\u514d",id:"\u9884\u63a8\u514d",level:2},{value:"\u540e\u5e8f",id:"\u540e\u5e8f",level:2}],c={toc:p},m="wrapper";function d(e){let{components:t,...r}=e;return(0,a.kt)(m,(0,n.Z)({},c,r,{components:t,mdxType:"MDXLayout"}),(0,a.kt)("h1",{id:"\u7ecf\u9a8c\u8d342023\u5e74\u53cc\u975e\u8ba1\u7b97\u673a\u4fdd\u7814\u7ecf\u5386"},"\u7ecf\u9a8c\u8d34\uff1a2023\u5e74\u53cc\u975e\u8ba1\u7b97\u673a\u4fdd\u7814\u7ecf\u5386"),(0,a.kt)("h2",{id:"\u524d\u8a00"},"\u524d\u8a00"),(0,a.kt)("p",null,"\u81ea\u5df1\u5728\u51c6\u5907\u590f\u4ee4\u8425\u548c\u9884\u63a8\u514d\u671f\u95f4\u6d4f\u89c8\u4e86\u5f88\u591a\u7ecf\u9a8c\u8d34\uff0c\u6309\u7167\u79d1\u534f\u7684\u4f20\u7edf\uff0c\u4e5f\u652f\u6301\u4e00\u4e0b\u4e92\u8054\u7f51\u7cbe\u795e\uff0c\u8fd8\u662f\u7ed9\u5e08\u5f1f\u5e08\u59b9\u4eec\u7559\u4e0b\u70b9\u6587\u5b57\u8d44\u6599\u5427\u3002"),(0,a.kt)("p",null,"\u5e0c\u671b\u53ef\u4ee5\u5e2e\u5230\u5927\u5bb6\uff0c\u4e5f\u611f\u8c22\u90a3\u4e9b\u66fe\u7ecf\u5e2e\u52a9\u8fc7\u6211\u7684\u7ecf\u9a8c\u8d34\u548c\u5e08\u5144\u5e08\u59d0\u3002"),(0,a.kt)("p",null,(0,a.kt)("inlineCode",{parentName:"p"},"\u6587\u7ae0\u5747\u4e3a\u4e2a\u4eba\u7ecf\u5386\u4e0e\u60f3\u6cd5\uff0c\u4e0d\u4ee3\u8868\u4efb\u4f55\u5355\u4f4d\u7684\u5b98\u65b9\u7acb\u573a\uff0c\u4ec5\u4f9b\u53c2\u8003\u3002")),(0,a.kt)("h3",{id:"\u626b\u76f2"},"\u626b\u76f2"),(0,a.kt)("table",null,(0,a.kt)("thead",{parentName:"table"},(0,a.kt)("tr",{parentName:"thead"},(0,a.kt)("th",{parentName:"tr",align:"center"},"\u5e38\u89c1\u540d\u8bcd"),(0,a.kt)("th",{parentName:"tr",align:"center"},"\u542b\u4e49\u89e3\u91ca"))),(0,a.kt)("tbody",{parentName:"table"},(0,a.kt)("tr",{parentName:"tbody"},(0,a.kt)("td",{parentName:"tr",align:"center"},"928/929"),(0,a.kt)("td",{parentName:"tr",align:"center"},"\u6bcf\u5e74\u7684\u516c\u53869\u670828\u65e5\uff082023\u5e74\u662f9\u670829\u65e5\uff09\uff0c\u662f\u7814\u62db\u7f51\u5168\u56fd\u63a8\u514d\u7cfb\u7edf\u5f00\u653e\u7684\u65e5\u5b50\uff0c\u4e5f\u662f\u5df2\u7ecf\u62ff\u5230offer\u7684\u63a8\u514d\u751f\u4e0a\u5cb8\u7684\u65e5\u5b50\u3002",(0,a.kt)("br",null),"\u6ca1offer\u7684\u4e5f\u4e0d\u7528\u7740\u6025\uff0c\u56e0\u4e3a\u6bcf\u4e2a\u5b66\u751f\u53ea\u80fd\u4e0a\u4e00\u4e2a\u5b66\u6821\uff0c928/929\u5f53\u5929\u5c31\u7b97\u624b\u91cc\u4e00\u5806offer\u7684\u5b66\u751f\u4e5f\u662f\u53ea\u80fd\u9009\u62e9\u6700\u60f3\u53bb\u7684\u5b66\u6821\u800c\u91ca\u653e\u6389\u5176\u4ed6offer\u3002\u7a33\u4f4f\u5fc3\u6001\u6c89\u4f4f\u6c14\uff0c\u4e00\u822c10\u670820\u65e5\u63a8\u514d\u7cfb\u7edf\u624d\u5173\u95ed\uff0c\u8fd9\u6bb5\u65f6\u95f4\u8db3\u591f\u8054\u7cfb\u5bfc\u5e08\u4e0a\u5cb8\u4e86\u3002")),(0,a.kt)("tr",{parentName:"tbody"},(0,a.kt)("td",{parentName:"tr",align:"center"},"\u4f18\u8425"),(0,a.kt)("td",{parentName:"tr",align:"center"},"\u4f18\u8425\u5c31\u662f\u590f\u4ee4\u8425\u7684\u4f18\u79c0\u8425\u5458\u3002",(0,a.kt)("br",null),"\u4e0d\u540c\u5b66\u6821\u4f18\u8425\u7684\u6548\u529b\u4e0d\u540c\uff0c\u6709\u4e9b\u5b66\u6821\u7684\u4f18\u8425\u76f4\u63a5\u7b49\u4e8e\u62df\u5f55\u53d6\uff0c928/929\u5f53\u5929\u586b\u62a5\u7cfb\u7edf\u5373\u53ef\u4e0a\u5cb8\uff1b\u4f46\u6709\u4e9b\u5b66\u6821\u7684\u4f18\u8425\u53ea\u80fd\u4fdd\u8bc1\u5728\u540e\u671f\u7684\u9884\u63a8\u514d\u6216\u4e5d\u63a8\u7684\u521d\u7b5b\u4e2d\u4e0d\u88ab\u5237\u6389\uff0c\u4ecd\u9700\u53c2\u52a0\u540e\u7eed\u8003\u6838\u624d\u80fd\u83b7\u5f97\u62df\u5f55\u53d6\u8d44\u683c\u3002")),(0,a.kt)("tr",{parentName:"tbody"},(0,a.kt)("td",{parentName:"tr",align:"center"},"wl/waiting list"),(0,a.kt)("td",{parentName:"tr",align:"center"},"wl\u5c31\u662f\u9012\u8865\u540d\u5355\uff0c\u6709\u4e9b\u5b66\u6821\u7684\u590f\u4ee4\u8425\u4f18\u8425\u8bc4\u9009\u4e2d\u8bbe\u7f6e\u9012\u8865\u540d\u5355\u3002\u5982\u679c\u540e\u671f\u6709\u5176\u4ed6\u4f18\u8425\u5b66\u751f\u653e\u9e3d\u5b50\u4e0d\u6765\u7684\u8bdd\uff0c\u5c31\u4f1a\u6309\u987a\u5e8f\u8865\u5f55\u5230\u9012\u8865\u540d\u5355\u4e2d\u7684\u5b66\u751f\u3002")))),(0,a.kt)("h2",{id:"\u4e2a\u4eba\u60c5\u51b5"},"\u4e2a\u4eba\u60c5\u51b5"),(0,a.kt)("ul",null,(0,a.kt)("li",{parentName:"ul"},"\u672c\u79d1\u5b66\u6821\uff1a\u7406\u5de5\u7c7b\u666e\u901a\u4e00\u672c\uff08\u56db\u975e\uff09"),(0,a.kt)("li",{parentName:"ul"},"\u4e13\u4e1a\uff1a\u8ba1\u7b97\u673a\u79d1\u5b66\u4e0e\u6280\u672fCS"),(0,a.kt)("li",{parentName:"ul"},"rank\uff1a\u524d1%\uff08\u975erank 1 or 2\u7684top\u9009\u624b\uff09"),(0,a.kt)("li",{parentName:"ul"},"\u82f1\u8bed\uff1a\u56db\u7ea7594 & \u516d\u7ea7586"),(0,a.kt)("li",{parentName:"ul"},"\u7ade\u8d5b\uff1a\u975eACMer\uff0c\u4e00\u4e2aCV\u7c7b\u6bd4\u8d5b\u56fd\u4e00\uff0c\u5176\u4ed6\u90fd\u662f",(0,a.kt)("inlineCode",{parentName:"li"},"\u66f4"),"\u4e0d\u4e0a\u53f0\u9762\u7684\u5956\u9879\u4e86"),(0,a.kt)("li",{parentName:"ul"},"\u5956\u5b66\u91d1\uff1a\u56fd\u5bb6\u5956\u5b66\u91d1\uff08\u590f\u4ee4\u8425\u7ed3\u675f\u4e4b\u540e\u624d\u62ff\u7684\uff0c\u57fa\u672c\u6ca1\u7528\u5230\uff09\u3001\u7701\u4eba\u6c11\u653f\u5e9c\u5956\u5b66\u91d1\u3001CASC\u5956\u5b66\u91d1"),(0,a.kt)("li",{parentName:"ul"},"\u79d1\u7814\u53ca\u8bba\u6587\uff1a\u65e0\u6b63\u7ecf\u79d1\u7814\u7ecf\u5386\uff0cEI\u6c34\u4f1a\u4e00\u7bc7")),(0,a.kt)("p",null,"\u4ece\u67d0\u79cd\u7a0b\u5ea6\u4e0a\u6765\u8bf4\uff0c\u672c\u79d1\u51fa\u8eab\u548crank\u57fa\u672c\u4e0a\u51b3\u5b9a\u4e86\u4e0a\u9650\u3002"),(0,a.kt)("h2",{id:"\u524d\u671f\u51c6\u5907"},"\u524d\u671f\u51c6\u5907"),(0,a.kt)("h2",{id:"\u590f\u4ee4\u8425"},"\u590f\u4ee4\u8425"),(0,a.kt)("h2",{id:"\u9884\u63a8\u514d"},"\u9884\u63a8\u514d"),(0,a.kt)("h2",{id:"\u540e\u5e8f"},"\u540e\u5e8f"))}d.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/en/assets/js/4fdf609a.13f16d17.js b/en/assets/js/4fdf609a.13f16d17.js new file mode 100644 index 000000000..88e56ef37 --- /dev/null +++ b/en/assets/js/4fdf609a.13f16d17.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunknpy_notebook=self.webpackChunknpy_notebook||[]).push([[7698],{3905:(e,t,a)=>{a.d(t,{Zo:()=>s,kt:()=>u});var n=a(7294);function r(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function p(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,n)}return a}function m(e){for(var t=1;t=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}var o=n.createContext({}),l=function(e){var t=n.useContext(o),a=t;return e&&(a="function"==typeof e?e(t):m(m({},t),e)),a},s=function(e){var t=l(e.components);return n.createElement(o.Provider,{value:t},e.children)},k="mdxType",c={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},N=n.forwardRef((function(e,t){var a=e.components,r=e.mdxType,p=e.originalType,o=e.parentName,s=i(e,["components","mdxType","originalType","parentName"]),k=l(a),N=r,u=k["".concat(o,".").concat(N)]||k[N]||c[N]||p;return a?n.createElement(u,m(m({ref:t},s),{},{components:a})):n.createElement(u,m({ref:t},s))}));function u(e,t){var a=arguments,r=t&&t.mdxType;if("string"==typeof e||r){var p=a.length,m=new Array(p);m[0]=N;var i={};for(var o in t)hasOwnProperty.call(t,o)&&(i[o]=t[o]);i.originalType=e,i[k]="string"==typeof e?e:r,m[1]=i;for(var l=2;l{a.r(t),a.d(t,{assets:()=>o,contentTitle:()=>m,default:()=>c,frontMatter:()=>p,metadata:()=>i,toc:()=>l});var n=a(7462),r=(a(7294),a(3905));const p={},m="\u7ebf\u6027\u4ee3\u6570",i={unversionedId:"Tui-Mian/\u6570\u5b66/\u7ebf\u6027\u4ee3\u6570",id:"Tui-Mian/\u6570\u5b66/\u7ebf\u6027\u4ee3\u6570",title:"\u7ebf\u6027\u4ee3\u6570",description:"\u53c2\u8003\u94fe\u63a5\uff1a",source:"@site/docs/Tui-Mian/\u6570\u5b66/\u7ebf\u6027\u4ee3\u6570.md",sourceDirName:"Tui-Mian/\u6570\u5b66",slug:"/Tui-Mian/\u6570\u5b66/\u7ebf\u6027\u4ee3\u6570",permalink:"/en/docs/Tui-Mian/\u6570\u5b66/\u7ebf\u6027\u4ee3\u6570",draft:!1,tags:[],version:"current",frontMatter:{},sidebar:"tui_mian",previous:{title:"\u6982\u7387\u8bba",permalink:"/en/docs/Tui-Mian/\u6570\u5b66/\u6982\u7387\u8bba"},next:{title:"\u5927\u6570\u9664\u6cd5",permalink:"/en/docs/Tui-Mian/\u673a\u8bd5/\u5927\u6570\u9664\u6cd5"}},o={},l=[{value:"\u4e00\u3001\u57fa\u7840\u77e5\u8bc6",id:"\u4e00\u57fa\u7840\u77e5\u8bc6",level:2},{value:"\u4e8c\u3001\u9762\u8bd5\u5e38\u8003\u95ee\u9898",id:"\u4e8c\u9762\u8bd5\u5e38\u8003\u95ee\u9898",level:2}],s={toc:l},k="wrapper";function c(e){let{components:t,...a}=e;return(0,r.kt)(k,(0,n.Z)({},s,a,{components:t,mdxType:"MDXLayout"}),(0,r.kt)("h1",{id:"\u7ebf\u6027\u4ee3\u6570"},"\u7ebf\u6027\u4ee3\u6570"),(0,r.kt)("admonition",{type:"tip"},(0,r.kt)("p",{parentName:"admonition"},"\u53c2\u8003\u94fe\u63a5\uff1a"),(0,r.kt)("p",{parentName:"admonition"},(0,r.kt)("a",{parentName:"p",href:"https://zhuanlan.zhihu.com/p/360522408"},"\u7ebf\u6027\u4ee3\u6570\u6781\u7b80\u5165\u95e8")),(0,r.kt)("p",{parentName:"admonition"},(0,r.kt)("a",{parentName:"p",href:"https://www.bilibili.com/video/BV1aW411Q7x1?p=26&vd_source=24d8fcf68bc0e2b0003defe0995cf533"},"\u300a\u7ebf\u6027\u4ee3\u6570\u300b\u9ad8\u6e05\u6559\u5b66\u89c6\u9891 \u201c\u60ca\u53f9\u53f7\u201d\u7cfb\u5217 \u5b8b\u6d69\u8001\u5e08"))),(0,r.kt)("h2",{id:"\u4e00\u57fa\u7840\u77e5\u8bc6"},"\u4e00\u3001\u57fa\u7840\u77e5\u8bc6"),(0,r.kt)("p",null,(0,r.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora/imagesimage-20230626214118462.png",alt:"image-20230626214118462"})),(0,r.kt)("p",null,(0,r.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora/imagesimage-20230626214142283.png",alt:"image-20230626214142283"})),(0,r.kt)("p",null,(0,r.kt)("strong",{parentName:"p"},"\u7ebf\u6027\u76f8\u5173\u4e0e\u7ebf\u6027\u65e0\u5173\uff1a"),"\u5411\u91cf\u7ec4\u4e2d\u7684\u4efb\u4e00\u5411\u91cf\u90fd\u4e0d\u80fd\u88ab\u5176\u5b83\u5411\u91cf\u7ebf\u6027\u8868\u793a\uff0c\u5c31\u8bf4\u5411\u91cf\u7ec4\u7ebf\u6027\u65e0\u5173\uff1b\u5426\u5219\u5c31\u662f\u7ebf\u6027\u76f8\u5173\u3002"),(0,r.kt)("p",null,(0,r.kt)("strong",{parentName:"p"},"\u77e9\u9635\u8f6c\u7f6e\uff1a"),"\u5c06\u77e9\u9635\u7684\u884c\u548c\u5217\u4e92\u76f8\u4ea4\u6362"),(0,r.kt)("p",null,(0,r.kt)("strong",{parentName:"p"},"\u77e9\u9635\u6c42\u9006\uff1a"),"\u5bf9\u4e8e\u65b9\u9635A\uff0c\u82e5\u5b58\u5728\u65b9\u9635B\u4f7f\u5f97AB=BA=\u5355\u4f4d\u65b9\u9635I\uff0c\u5219\u65b9\u9635B\u4e3a\u65b9\u9635A\u7684\u9006\u77e9\u9635\uff0c\u8bb0\u4e3a",(0,r.kt)("span",{parentName:"p",className:"math math-inline"},(0,r.kt)("span",{parentName:"span",className:"katex"},(0,r.kt)("span",{parentName:"span",className:"katex-mathml"},(0,r.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,r.kt)("semantics",{parentName:"math"},(0,r.kt)("mrow",{parentName:"semantics"},(0,r.kt)("msup",{parentName:"mrow"},(0,r.kt)("mi",{parentName:"msup"},"A"),(0,r.kt)("mrow",{parentName:"msup"},(0,r.kt)("mo",{parentName:"mrow"},"\u2212"),(0,r.kt)("mn",{parentName:"mrow"},"1")))),(0,r.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"A^{-1}")))),(0,r.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,r.kt)("span",{parentName:"span",className:"base"},(0,r.kt)("span",{parentName:"span",className:"strut",style:{height:"0.8141em"}}),(0,r.kt)("span",{parentName:"span",className:"mord"},(0,r.kt)("span",{parentName:"span",className:"mord mathnormal"},"A"),(0,r.kt)("span",{parentName:"span",className:"msupsub"},(0,r.kt)("span",{parentName:"span",className:"vlist-t"},(0,r.kt)("span",{parentName:"span",className:"vlist-r"},(0,r.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.8141em"}},(0,r.kt)("span",{parentName:"span",style:{top:"-3.063em",marginRight:"0.05em"}},(0,r.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,r.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,r.kt)("span",{parentName:"span",className:"mord mtight"},(0,r.kt)("span",{parentName:"span",className:"mord mtight"},"\u2212"),(0,r.kt)("span",{parentName:"span",className:"mord mtight"},"1")))))))))))))),(0,r.kt)("h2",{id:"\u4e8c\u9762\u8bd5\u5e38\u8003\u95ee\u9898"},"\u4e8c\u3001\u9762\u8bd5\u5e38\u8003\u95ee\u9898"),(0,r.kt)("ol",null,(0,r.kt)("li",{parentName:"ol"},(0,r.kt)("p",{parentName:"li"},(0,r.kt)("strong",{parentName:"p"},"\u7ebf\u6027\u4ee3\u6570\u4e2d\u7684\u521d\u7b49\u884c\u53d8\u6362\u3002")),(0,r.kt)("ol",{parentName:"li"},(0,r.kt)("li",{parentName:"ol"},"\u4ea4\u6362\u4e24\u884c"),(0,r.kt)("li",{parentName:"ol"},"\u7528\u975e\u96f6\u5e38\u6570\u4e58\u4ee5\u67d0\u4e00\u884c"),(0,r.kt)("li",{parentName:"ol"},"\u7528\u4e00\u884c\u7684\u500d\u6570\u52a0\u5230\u53e6\u4e00\u884c\u4e0a"))),(0,r.kt)("li",{parentName:"ol"},(0,r.kt)("p",{parentName:"li"},(0,r.kt)("strong",{parentName:"p"},"\u5982\u4f55\u7406\u89e3\u77e9\u9635\u7684\u79e9\u3002")),(0,r.kt)("p",{parentName:"li"},"\u77e9\u9635\u7684\u79e9\u662f\u6307\u77e9\u9635\u7684\u5217\u7a7a\u95f4\uff08\u6216\u884c\u7a7a\u95f4\uff09\u7684\u7ef4\u6570\uff0c\u7b80\u800c\u8a00\u4e4b\u662f\u77e9\u9635\u4e2d\u6240\u6709\u975e\u96f6\u884c\uff08\u6216\u5217\uff09\u5411\u91cf\u6784\u6210\u7684\u96c6\u5408\u6240\u7ec4\u6210\u7684\u6700\u5927\u7ebf\u6027\u65e0\u5173\u7ec4\u7684\u5411\u91cf\u4e2a\u6570\u3002"),(0,r.kt)("admonition",{parentName:"li",type:"tip"},(0,r.kt)("p",{parentName:"admonition"},"\u5b8b\u6d69\u516b\u5b57\uff1a",(0,r.kt)("strong",{parentName:"p"},"\u975e\u96f6\u5b50\u5f0f\u7684\u6700\u9ad8\u9636\u6570")),(0,r.kt)("p",{parentName:"admonition"},"\u4efb\u610f\u77e9\u9635\u7684\u884c\u79e9\u90fd\u7b49\u4e8e\u5217\u79e9\u3002"))),(0,r.kt)("li",{parentName:"ol"},(0,r.kt)("p",{parentName:"li"},(0,r.kt)("strong",{parentName:"p"},"\u77e9\u9635\u7684\u79e9\u4e0e\u7ebf\u6027\u65b9\u7a0b\u7ec4\u89e3\u7684\u5173\u7cfb\u3002")),(0,r.kt)("p",{parentName:"li"},"\u5bf9\u4e8en\u5143\u7ebf\u6027\u65b9\u7a0b\u7ec4\u800c\u8a00\uff1a"),(0,r.kt)("ol",{parentName:"li"},(0,r.kt)("li",{parentName:"ol"},(0,r.kt)("p",{parentName:"li"},"\u5f53\u7cfb\u6570\u77e9\u9635\u7684\u79e9\u7b49\u4e8e\u589e\u5e7f\u77e9\u9635\u7684\u79e9\u4e14\u79e9\u7b49\u4e8en\u65f6\uff0c\u6709\u552f\u4e00\u89e3")),(0,r.kt)("li",{parentName:"ol"},(0,r.kt)("p",{parentName:"li"},"\u5f53\u7cfb\u6570\u77e9\u9635\u7684\u79e9\u7b49\u4e8e\u589e\u5e7f\u77e9\u9635\u7684\u79e9\u4e14\u79e9\u5927\u4e8en\u65f6\uff0c\u6709\u65e0\u7a77\u591a\u89e3")),(0,r.kt)("li",{parentName:"ol"},(0,r.kt)("p",{parentName:"li"},"\u5f53\u7cfb\u6570\u77e9\u9635\u7684\u79e9\u4e0d\u7b49\u4e8e\u589e\u5e7f\u77e9\u9635\u7684\u79e9\u65f6\uff0c\u65e0\u89e3"),(0,r.kt)("admonition",{parentName:"li",type:"tip"},(0,r.kt)("p",{parentName:"admonition"},"\u5f53\u7cfb\u6570\u77e9\u9635\u7684\u79e9\u5c0f\u4e8e\u589e\u5e7f\u77e9\u9635\u7684\u79e9\u65f6\uff0c\u8bf4\u660e\u7cfb\u6570\u77e9\u9635\u4e2d\u7684\u67d0\u4e00\u5217\u5411\u91cf\uff08\u6216\u884c\u5411\u91cf\uff09\u53ef\u4ee5\u88ab\u5176\u4ed6\u5217\u5411\u91cf\uff08\u6216\u884c\u5411\u91cf\uff09\u7ebf\u6027\u8868\u793a\uff0c\u6b64\u65f6\u8be5\u884c\u4e0d\u80fd\u63d0\u4f9b\u989d\u5916\u7684\u7ebf\u6027\u72ec\u7acb\u4fe1\u606f"))))),(0,r.kt)("li",{parentName:"ol"},(0,r.kt)("p",{parentName:"li"},(0,r.kt)("strong",{parentName:"p"},"\u7b80\u8ff0\u5411\u91cf\u7ec4\u7ebf\u6027\u65e0\u5173\u7684\u542b\u4e49\u3002")),(0,r.kt)("p",{parentName:"li"},"\u542b\u4e49\uff1a\u82e5\u4e00\u4e2a\u5411\u91cf\u7ec4\u662f\u7ebf\u6027\u65e0\u5173\u7684\uff0c\u5219\u8be5\u5411\u91cf\u7ec4\u4e2d\u7684\u6bcf\u4e2a\u5411\u91cf\u90fd\u4e0d\u80fd\u8868\u793a\u6210\u5176\u4ed6\u5411\u91cf\u7684\u7ebf\u6027\u7ec4\u5408\u3002"),(0,r.kt)("p",{parentName:"li"},"\u610f\u4e49\uff1a\u5982\u679c\u4e00\u4e2a\u5411\u91cf\u7ec4\u7ebf\u6027\u65e0\u5173\uff0c\u90a3\u4e48\u8be5\u5411\u91cf\u7ec4\u6240\u5f20\u6210\u7684\u7a7a\u95f4\u5c31\u662f\u4e00\u4e2a\u6700\u5c0f\u7ef4\u5ea6\u7684\u5411\u91cf\u7a7a\u95f4\uff0c\u5e76\u4e14\u8be5\u5411\u91cf\u7a7a\u95f4\u4e2d\u7684\u4efb\u4f55\u5411\u91cf\u90fd\u53ef\u7531\u8fd9\u4e9b\u5411\u91cf\u7ebf\u6027\u7ec4\u5408\u8868\u793a\u3002"),(0,r.kt)("p",{parentName:"li"},"\u5224\u5b9a\u65b9\u6cd5\uff1a\u5982\u679c\u4e00\u4e2a\u5411\u91cf\u7ec4\u4e2d\u7684\u6240\u6709\u5411\u91cf\u90fd\u4e0d\u53ef\u4ee5\u7531\u5176\u4ed6\u5411\u91cf\u7ebf\u6027\u7ec4\u5408\u5f97\u5230\uff0c\u5219\u79f0\u8be5\u5411\u91cf\u7ec4\u4e3a\u7ebf\u6027\u65e0\u5173\u7684\u3002\u5426\u5219\uff0c\u5982\u679c\u5b58\u5728\u67d0\u4e2a\u5411\u91cf\u53ef\u4ee5\u8868\u793a\u6210\u5176\u4ed6\u5411\u91cf\u7684\u7ebf\u6027\u7ec4\u5408\uff0c\u5219\u8be5\u5411\u91cf\u7ec4\u5c31\u4e0d\u662f\u7ebf\u6027\u65e0\u5173\u7684\u3002")),(0,r.kt)("li",{parentName:"ol"},(0,r.kt)("p",{parentName:"li"},(0,r.kt)("strong",{parentName:"p"},"\u89e3\u91ca\u6b63\u5b9a\u77e9\u9635\u4ee5\u53ca\u534a\u6b63\u5b9a\u77e9\u9635\u3002"))),(0,r.kt)("li",{parentName:"ol"},(0,r.kt)("p",{parentName:"li"},(0,r.kt)("strong",{parentName:"p"},"\u7b80\u8ff0\u7279\u5f81\u503c\u7684\u542b\u4e49\u3002")),(0,r.kt)("p",{parentName:"li"},"\u7279\u5f81\u503c\u63cf\u8ff0\u4e86\u77e9\u9635\u5728\u7279\u5b9a\u65b9\u5411\uff08\u7279\u5f81\u5411\u91cf\u65b9\u5411\uff09\u4e0a\u7684\u7f29\u653e\u56e0\u5b50\uff0c\u7279\u5f81\u5411\u91cf\u8868\u793a\u77e9\u9635\u5728\u8fd9\u4e2a\u7279\u5b9a\u65b9\u5411\u4e0a\u7684\u4e0d\u53d8\u6027\u3002")),(0,r.kt)("li",{parentName:"ol"},(0,r.kt)("p",{parentName:"li"},(0,r.kt)("strong",{parentName:"p"},"\u7b80\u8ff0\u77e9\u9635\u5206\u89e3\u7684\u7269\u7406\u610f\u4e49\u3002")),(0,r.kt)("p",{parentName:"li"},"\u77e9\u9635\u5206\u89e3\u662f\u5c06\u4e00\u4e2a\u77e9\u9635\u8868\u793a\u4e3a\u4e00\u4e9b\u7279\u5b9a\u5f62\u5f0f\u7684\u77e9\u9635\u4e58\u79ef\u7684\u8fc7\u7a0b\u3002"),(0,r.kt)("p",{parentName:"li"},"\u77e9\u9635\u5206\u89e3\u7684\u79cd\u7c7b\u4ee5\u53ca\u7269\u7406\u610f\u4e49\uff1a"),(0,r.kt)("ul",{parentName:"li"},(0,r.kt)("li",{parentName:"ul"},"LU\u5206\u89e3\uff1a\u5c06\u77e9\u9635\u5206\u89e3\u4e3a\u4e00\u4e2a\u4e0b\u4e09\u89d2\u77e9\u9635\u548c\u4e00\u4e2a\u4e0a\u4e09\u89d2\u77e9\u9635\u7684\u4e58\u79ef\u3002\u7269\u7406\u610f\u4e49\u5305\u62ec\u89e3\u7ebf\u6027\u65b9\u7a0b\u7ec4\u3001\u8ba1\u7b97\u77e9\u9635\u7684\u884c\u5217\u5f0f\u548c\u9006\u77e9\u9635\u7b49\u3002"),(0,r.kt)("li",{parentName:"ul"},"QR\u5206\u89e3\uff1a\u5c06\u77e9\u9635\u5206\u89e3\u4e3a\u4e00\u4e2a\u6b63\u4ea4\u77e9\u9635\u548c\u4e00\u4e2a\u4e0a\u4e09\u89d2\u77e9\u9635\u7684\u4e58\u79ef\u3002\u7269\u7406\u610f\u4e49\u5305\u62ec\u6700\u5c0f\u4e8c\u4e58\u95ee\u9898\u3001\u77e9\u9635\u7684\u7279\u5f81\u503c\u8ba1\u7b97\u7b49\u3002"),(0,r.kt)("li",{parentName:"ul"},"\u7279\u5f81\u503c\u5206\u89e3\uff1a\u5c06\u77e9\u9635\u5206\u89e3\u4e3a\u4e00\u4e2a\u7279\u5f81\u5411\u91cf\u77e9\u9635\u548c\u4e00\u4e2a\u5bf9\u89d2\u77e9\u9635\u7684\u4e58\u79ef\u3002\u7269\u7406\u610f\u4e49\u5305\u62ec\u77e9\u9635\u7684\u5e42\u3001\u6307\u6570\u548c\u5bf9\u79f0\u77e9\u9635\u7684\u5bf9\u89d2\u5316\u7b49\u3002"),(0,r.kt)("li",{parentName:"ul"},"\u5947\u5f02\u503c\u5206\u89e3\uff08SVD\uff09\uff1a\u5c06\u77e9\u9635\u5206\u89e3\u4e3a\u4e00\u4e2a\u6b63\u4ea4\u77e9\u9635\u3001\u4e00\u4e2a\u5bf9\u89d2\u77e9\u9635\u548c\u4e00\u4e2a\u6b63\u4ea4\u77e9\u9635\u7684\u4e58\u79ef\u3002\u7269\u7406\u610f\u4e49\u5305\u62ec\u964d\u7ef4\u3001\u77e9\u9635\u903c\u8fd1\u548c\u56fe\u50cf\u538b\u7f29\u7b49\u3002")))))}c.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/en/assets/js/52f5885d.56c8722d.js b/en/assets/js/52f5885d.56c8722d.js new file mode 100644 index 000000000..db8743481 --- /dev/null +++ b/en/assets/js/52f5885d.56c8722d.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunknpy_notebook=self.webpackChunknpy_notebook||[]).push([[8231],{3905:(e,t,n)=>{n.d(t,{Zo:()=>u,kt:()=>d});var i=n(7294);function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function a(e){for(var t=1;t=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var p=i.createContext({}),l=function(e){var t=i.useContext(p),n=t;return e&&(n="function"==typeof e?e(t):a(a({},t),e)),n},u=function(e){var t=l(e.components);return i.createElement(p.Provider,{value:t},e.children)},c="mdxType",f={inlineCode:"code",wrapper:function(e){var t=e.children;return i.createElement(i.Fragment,{},t)}},m=i.forwardRef((function(e,t){var n=e.components,r=e.mdxType,o=e.originalType,p=e.parentName,u=s(e,["components","mdxType","originalType","parentName"]),c=l(n),m=r,d=c["".concat(p,".").concat(m)]||c[m]||f[m]||o;return n?i.createElement(d,a(a({ref:t},u),{},{components:n})):i.createElement(d,a({ref:t},u))}));function d(e,t){var n=arguments,r=t&&t.mdxType;if("string"==typeof e||r){var o=n.length,a=new Array(o);a[0]=m;var s={};for(var p in t)hasOwnProperty.call(t,p)&&(s[p]=t[p]);s.originalType=e,s[c]="string"==typeof e?e:r,a[1]=s;for(var l=2;l{n.r(t),n.d(t,{assets:()=>p,contentTitle:()=>a,default:()=>f,frontMatter:()=>o,metadata:()=>s,toc:()=>l});var i=n(7462),r=(n(7294),n(3905));const o={},a="CVPR 2022: High-Resolution Image Synthesis with Latent Diffusion Models",s={unversionedId:"Deep-Learning/\u8bba\u6587\u7b14\u8bb0/High-Resolution Image Synthesis with Latent Diffusion Models",id:"Deep-Learning/\u8bba\u6587\u7b14\u8bb0/High-Resolution Image Synthesis with Latent Diffusion Models",title:"CVPR 2022: High-Resolution Image Synthesis with Latent Diffusion Models",description:"\u8bba\u6587\uff1aarXiv",source:"@site/docs/Deep-Learning/6-\u8bba\u6587\u7b14\u8bb0/3-High-Resolution Image Synthesis with Latent Diffusion Models.md",sourceDirName:"Deep-Learning/6-\u8bba\u6587\u7b14\u8bb0",slug:"/Deep-Learning/\u8bba\u6587\u7b14\u8bb0/High-Resolution Image Synthesis with Latent Diffusion Models",permalink:"/en/docs/Deep-Learning/\u8bba\u6587\u7b14\u8bb0/High-Resolution Image Synthesis with Latent Diffusion Models",draft:!1,tags:[],version:"current",sidebarPosition:3,frontMatter:{},sidebar:"deep_learning",previous:{title:"NeurIPS 2020: Denoising Diffusion Probabilistic Models",permalink:"/en/docs/Deep-Learning/\u8bba\u6587\u7b14\u8bb0/Denoising Diffusion Probabilistic Models"},next:{title:"CVPR 2023: Zero-shot Generative Model Adaptation via Image-specific Prompt Learning",permalink:"/en/docs/Deep-Learning/\u8bba\u6587\u7b14\u8bb0/Zero-shot Generative Model Adaptation via Image-specific Prompt Learning"}},p={},l=[{value:"\u6458\u8981\u4e0e\u4e3b\u8981\u8d21\u732e",id:"\u6458\u8981\u4e0e\u4e3b\u8981\u8d21\u732e",level:2}],u={toc:l},c="wrapper";function f(e){let{components:t,...n}=e;return(0,r.kt)(c,(0,i.Z)({},u,n,{components:t,mdxType:"MDXLayout"}),(0,r.kt)("h1",{id:"cvpr-2022-high-resolution-image-synthesis-with-latent-diffusion-models"},"CVPR 2022: High-Resolution Image Synthesis with Latent Diffusion Models"),(0,r.kt)("admonition",{title:"\u76f8\u5173\u94fe\u63a5",type:"tip"},(0,r.kt)("p",{parentName:"admonition"},"\u8bba\u6587\uff1a",(0,r.kt)("a",{parentName:"p",href:"https://arxiv.org/pdf/2112.10752.pdf"},"arXiv")),(0,r.kt)("p",{parentName:"admonition"},"\u4ee3\u7801\uff1a",(0,r.kt)("a",{parentName:"p",href:"https://github.com/CompVis/latent-diffusion"},"GitHub")),(0,r.kt)("p",{parentName:"admonition"},"\u53c2\u8003\u6587\u732e\uff1a"),(0,r.kt)("ul",{parentName:"admonition"},(0,r.kt)("li",{parentName:"ul"},(0,r.kt)("a",{parentName:"li",href:"https://zhuanlan.zhihu.com/p/582693939"},"Latent Diffusion Models\u8bba\u6587\u89e3\u8bfb")),(0,r.kt)("li",{parentName:"ul"},(0,r.kt)("a",{parentName:"li",href:"https://github.com/Stability-AI/stablediffusion"},"Stable Diffusion"),"\u5c31\u662f\u5728\u8fd9\u7bc7\u6587\u7ae0\u7684\u57fa\u7840\u4e0a\uff0c\u4f7f\u7528LDM\u8fdb\u884c\u5f00\u53d1\u7684\u3002"))),(0,r.kt)("h2",{id:"\u6458\u8981\u4e0e\u4e3b\u8981\u8d21\u732e"},"\u6458\u8981\u4e0e\u4e3b\u8981\u8d21\u732e"))}f.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/en/assets/js/5525.db22dd4f.js b/en/assets/js/5525.db22dd4f.js new file mode 100644 index 000000000..c754d0f12 --- /dev/null +++ b/en/assets/js/5525.db22dd4f.js @@ -0,0 +1 @@ +(self.webpackChunknpy_notebook=self.webpackChunknpy_notebook||[]).push([[5525],{5525:()=>{}}]); \ No newline at end of file diff --git a/en/assets/js/56ae16bd.ad59042e.js b/en/assets/js/56ae16bd.ad59042e.js new file mode 100644 index 000000000..0e817a1fd --- /dev/null +++ b/en/assets/js/56ae16bd.ad59042e.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunknpy_notebook=self.webpackChunknpy_notebook||[]).push([[1376],{3905:(a,e,t)=>{t.d(e,{Zo:()=>i,kt:()=>h});var m=t(7294);function s(a,e,t){return e in a?Object.defineProperty(a,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):a[e]=t,a}function n(a,e){var t=Object.keys(a);if(Object.getOwnPropertySymbols){var m=Object.getOwnPropertySymbols(a);e&&(m=m.filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable}))),t.push.apply(t,m)}return t}function p(a){for(var e=1;e=0||(s[t]=a[t]);return s}(a,e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);for(m=0;m=0||Object.prototype.propertyIsEnumerable.call(a,t)&&(s[t]=a[t])}return s}var N=m.createContext({}),l=function(a){var e=m.useContext(N),t=e;return a&&(t="function"==typeof a?a(e):p(p({},e),a)),t},i=function(a){var e=l(a.components);return m.createElement(N.Provider,{value:e},a.children)},k="mdxType",o={inlineCode:"code",wrapper:function(a){var e=a.children;return m.createElement(m.Fragment,{},e)}},c=m.forwardRef((function(a,e){var t=a.components,s=a.mdxType,n=a.originalType,N=a.parentName,i=r(a,["components","mdxType","originalType","parentName"]),k=l(t),c=s,h=k["".concat(N,".").concat(c)]||k[c]||o[c]||n;return t?m.createElement(h,p(p({ref:e},i),{},{components:t})):m.createElement(h,p({ref:e},i))}));function h(a,e){var t=arguments,s=e&&e.mdxType;if("string"==typeof a||s){var n=t.length,p=new Array(n);p[0]=c;var r={};for(var N in e)hasOwnProperty.call(e,N)&&(r[N]=e[N]);r.originalType=a,r[k]="string"==typeof a?a:s,p[1]=r;for(var l=2;l{t.r(e),t.d(e,{assets:()=>N,contentTitle:()=>p,default:()=>o,frontMatter:()=>n,metadata:()=>r,toc:()=>l});var m=t(7462),s=(t(7294),t(3905));const n={},p="\u751f\u6210\u5f0f\u5bf9\u6297\u7f51\u7edc\uff08GAN\uff09",r={unversionedId:"Deep-Learning/\u5927\u6a21\u578b/GAN",id:"Deep-Learning/\u5927\u6a21\u578b/GAN",title:"\u751f\u6210\u5f0f\u5bf9\u6297\u7f51\u7edc\uff08GAN\uff09",description:"How to pronounce Adversarial?",source:"@site/docs/Deep-Learning/5-\u5927\u6a21\u578b/5-GAN.md",sourceDirName:"Deep-Learning/5-\u5927\u6a21\u578b",slug:"/Deep-Learning/\u5927\u6a21\u578b/GAN",permalink:"/en/docs/Deep-Learning/\u5927\u6a21\u578b/GAN",draft:!1,tags:[],version:"current",sidebarPosition:5,frontMatter:{},sidebar:"deep_learning",previous:{title:"\u56fe\u50cf\u751f\u6210\u6a21\u578b",permalink:"/en/docs/Deep-Learning/\u5927\u6a21\u578b/Image-Generation-Models"},next:{title:"\u6269\u6563\u6a21\u578b\uff08Diffusion Model\uff09",permalink:"/en/docs/Deep-Learning/\u5927\u6a21\u578b/Diffusion-Model"}},N={},l=[{value:"\u5f15\u8a00",id:"\u5f15\u8a00",level:2},{value:"\u5c06\u968f\u673a\u5206\u5e03\u4f5c\u4e3a\u8f93\u5165",id:"\u5c06\u968f\u673a\u5206\u5e03\u4f5c\u4e3a\u8f93\u5165",level:3},{value:"\u4e3a\u4ec0\u4e48\u8981\u6dfb\u52a0\u5206\u5e03",id:"\u4e3a\u4ec0\u4e48\u8981\u6dfb\u52a0\u5206\u5e03",level:3},{value:"\u6838\u5fc3\u601d\u60f3",id:"\u6838\u5fc3\u601d\u60f3",level:3},{value:"\u5177\u4f53\u7ed3\u6784\u4e0e\u4f5c\u7528",id:"\u5177\u4f53\u7ed3\u6784\u4e0e\u4f5c\u7528",level:2},{value:"\u751f\u6210\u5668\uff08Generator\uff09",id:"\u751f\u6210\u5668generator",level:3},{value:"Unconditional Generation",id:"unconditional-generation",level:4},{value:"Conditional Generation",id:"conditional-generation",level:4},{value:"\u5224\u522b\u5668\uff08Discriminator\uff09",id:"\u5224\u522b\u5668discriminator",level:3},{value:"\u8bad\u7ec3\u7b97\u6cd5",id:"\u8bad\u7ec3\u7b97\u6cd5",level:2}],i={toc:l},k="wrapper";function o(a){let{components:e,...t}=a;return(0,s.kt)(k,(0,m.Z)({},i,t,{components:e,mdxType:"MDXLayout"}),(0,s.kt)("h1",{id:"\u751f\u6210\u5f0f\u5bf9\u6297\u7f51\u7edcgan"},"\u751f\u6210\u5f0f\u5bf9\u6297\u7f51\u7edc\uff08GAN\uff09"),(0,s.kt)("admonition",{title:"\u6b63\u786e\u53d1\u97f3",type:"tip"},(0,s.kt)("p",{parentName:"admonition"},"How to pronounce Adversarial?"),(0,s.kt)("p",{parentName:"admonition"},"/\u02cc\xe6dv\u0259r\u02c8seri\u0259l/")),(0,s.kt)("h2",{id:"\u5f15\u8a00"},"\u5f15\u8a00"),(0,s.kt)("h3",{id:"\u5c06\u968f\u673a\u5206\u5e03\u4f5c\u4e3a\u8f93\u5165"},"\u5c06\u968f\u673a\u5206\u5e03\u4f5c\u4e3a\u8f93\u5165"),(0,s.kt)("p",null,"\u751f\u6210\u5668\uff08Generator\uff09\u901a\u5e38\u63a5\u6536\u4e00\u4e2a\u6765\u81ea\u6f5c\u5728\u7a7a\u95f4\uff08latent space\uff09\u7684\u968f\u673a\u5411\u91cf\u4f5c\u4e3a\u8f93\u5165\u3002\u8fd9\u4e2a\u6f5c\u5728\u7a7a\u95f4\u901a\u5e38\u662f\u4e00\u4e2a\u968f\u673a\u5206\u5e03\uff0c\u6bd4\u5982\u5747\u5300\u5206\u5e03\u6216\u6b63\u6001\u5206\u5e03\u3002\u751f\u6210\u5668\u7684\u4efb\u52a1\u662f\u5c06\u8fd9\u4e2a\u968f\u673a\u5411\u91cf\u6620\u5c04\u6210\u4e0e\u8bad\u7ec3\u6570\u636e\u76f8\u4f3c\u7684\u6837\u672c\u3002"),(0,s.kt)("p",null,(0,s.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_imagesimage-20231122102402231.png",alt:"image-20231122102402231"})),(0,s.kt)("h3",{id:"\u4e3a\u4ec0\u4e48\u8981\u6dfb\u52a0\u5206\u5e03"},"\u4e3a\u4ec0\u4e48\u8981\u6dfb\u52a0\u5206\u5e03"),(0,s.kt)("p",null,"\u5f53\u9700\u8981\u89e3\u51b3\u7684\u4efb\u52a1\u9700\u8981\u5bcc\u6709\u201c\u521b\u9020\u529b\u201d\u65f6\uff0c\u5373\u6839\u636e\u4e0d\u540c\u7684\u8f93\u5165\uff0c\u53ef\u4ee5\u4ea7\u751f\u591a\u4e2a\u4e0d\u4e00\u6837\u4e14\u6b63\u786e\u7684\u8f93\u51fa\u65f6\u3002\u8fd9\u6837\u7684\u8bbe\u8ba1\u4f7f\u5f97\u751f\u6210\u5668\u80fd\u591f\u751f\u6210\u591a\u6837\u6027\u7684\u6837\u672c\uff0c\u56e0\u4e3a\u6bcf\u4e2a\u4e0d\u540c\u7684\u968f\u673a\u5411\u91cf\u90fd\u53ef\u80fd\u5bfc\u81f4\u751f\u6210\u5668\u8f93\u51fa\u4e0d\u540c\u7684\u6837\u672c\u3002\u5728\u8bad\u7ec3\u8fc7\u7a0b\u4e2d\uff0c\u901a\u8fc7\u4e0d\u65ad\u8c03\u6574\u751f\u6210\u5668\u7684\u53c2\u6570\uff0c\u4f7f\u5f97\u751f\u6210\u5668\u7684\u8f93\u51fa\u5728\u6570\u636e\u5206\u5e03\u4e2d\u66f4\u96be\u4ee5\u88ab\u5224\u522b\u5668\u533a\u5206\u3002"),(0,s.kt)("h3",{id:"\u6838\u5fc3\u601d\u60f3"},"\u6838\u5fc3\u601d\u60f3"),(0,s.kt)("p",null,"GAN\u7684\u5de5\u4f5c\u539f\u7406\uff1a"),(0,s.kt)("ol",null,(0,s.kt)("li",{parentName:"ol"},(0,s.kt)("strong",{parentName:"li"},"\u751f\u6210\u5668\u751f\u6210\u6570\u636e\uff1a")," \u751f\u6210\u5668\u4ece\u6f5c\u5728\u7a7a\u95f4\u4e2d\u91c7\u6837\u5e76\u751f\u6210\u4e00\u4e9b\u6570\u636e\u3002"),(0,s.kt)("li",{parentName:"ol"},(0,s.kt)("strong",{parentName:"li"},"\u771f\u5b9e\u6570\u636e\u4e0e\u751f\u6210\u6570\u636e\u8fdb\u5165\u5224\u522b\u5668\uff1a")," \u771f\u5b9e\u6570\u636e\u548c\u751f\u6210\u5668\u751f\u6210\u7684\u6570\u636e\u4e00\u8d77\u8f93\u5165\u5224\u522b\u5668\u3002"),(0,s.kt)("li",{parentName:"ol"},(0,s.kt)("strong",{parentName:"li"},"\u5224\u522b\u5668\u8bad\u7ec3\uff1a")," \u5224\u522b\u5668\u88ab\u8bad\u7ec3\u6765\u6b63\u786e\u5206\u7c7b\u771f\u5b9e\u6570\u636e\u548c\u751f\u6210\u6570\u636e\u3002"),(0,s.kt)("li",{parentName:"ol"},(0,s.kt)("strong",{parentName:"li"},"\u751f\u6210\u5668\u8bad\u7ec3\uff1a")," \u751f\u6210\u5668\u88ab\u8bad\u7ec3\u6765\u751f\u6210\u80fd\u591f\u6b3a\u9a97\u5224\u522b\u5668\u7684\u6570\u636e\u3002\u751f\u6210\u5668\u7684\u76ee\u6807\u662f\u751f\u6210\u8db3\u591f\u903c\u771f\u7684\u6570\u636e\uff0c\u4ee5\u81f3\u4e8e\u5224\u522b\u5668\u65e0\u6cd5\u51c6\u786e\u533a\u5206\u771f\u5047\u3002"),(0,s.kt)("li",{parentName:"ol"},(0,s.kt)("strong",{parentName:"li"},"\u8fed\u4ee3\uff1a")," \u751f\u6210\u5668\u548c\u5224\u522b\u5668\u4ea4\u66ff\u8bad\u7ec3\uff0c\u8fed\u4ee3\u8fdb\u884c\uff0c\u76f4\u5230\u751f\u6210\u5668\u751f\u6210\u7684\u6570\u636e\u8db3\u591f\u903c\u771f\u3002")),(0,s.kt)("p",null,"\u8bad\u7ec3\u7684\u76ee\u6807\uff1a"),(0,s.kt)("ul",null,(0,s.kt)("li",{parentName:"ul"},(0,s.kt)("strong",{parentName:"li"},"\u751f\u6210\u5668\u76ee\u6807\uff1a")," \u751f\u6210\u66f4\u903c\u771f\u7684\u6570\u636e\uff0c\u4ee5\u6b3a\u9a97\u5224\u522b\u5668\u3002"),(0,s.kt)("li",{parentName:"ul"},(0,s.kt)("strong",{parentName:"li"},"\u5224\u522b\u5668\u76ee\u6807\uff1a")," \u533a\u5206\u771f\u5b9e\u6570\u636e\u548c\u751f\u6210\u6570\u636e\uff0c\u63d0\u9ad8\u5bf9\u771f\u5b9e\u6570\u636e\u7684\u5206\u7c7b\u51c6\u786e\u6027\u3002")),(0,s.kt)("p",null,"GAN\u7684\u8bad\u7ec3\u662f\u4e00\u4e2a",(0,s.kt)("strong",{parentName:"p"},"\u535a\u5f08"),"\u8fc7\u7a0b\uff0c\u751f\u6210\u5668\u548c\u5224\u522b\u5668\u76f8\u4e92\u7ade\u4e89\uff0c\u6700\u7ec8\u8fbe\u5230\u5e73\u8861\uff0c\u751f\u6210\u5668\u751f\u6210\u7684\u6570\u636e\u8db3\u591f\u903c\u771f\uff0c\u5224\u522b\u5668\u4e5f\u65e0\u6cd5\u51c6\u786e\u5224\u522b\u771f\u4f2a\u3002\u8fd9\u79cd\u6a21\u578b\u5728\u56fe\u50cf\u751f\u6210\u3001\u98ce\u683c\u8f6c\u6362\u7b49\u4efb\u52a1\u4e2d\u53d6\u5f97\u4e86\u663e\u8457\u7684\u6210\u529f\u3002"),(0,s.kt)("h2",{id:"\u5177\u4f53\u7ed3\u6784\u4e0e\u4f5c\u7528"},"\u5177\u4f53\u7ed3\u6784\u4e0e\u4f5c\u7528"),(0,s.kt)("p",null,"GAN\uff08Generative Adversarial Network\uff0c\u751f\u6210\u5bf9\u6297\u7f51\u7edc\uff09\u5305\u62ec\u4e24\u4e2a\u4e3b\u8981\u7684\u7ec4\u4ef6\uff1a\u751f\u6210\u5668\uff08Generator\uff09\u548c\u5224\u522b\u5668\uff08Discriminator\uff09\u3002\u8fd9\u4e24\u4e2a\u7ec4\u4ef6\u901a\u8fc7\u5bf9\u6297\u8bad\u7ec3\u7684\u65b9\u5f0f\u4e00\u8d77\u5b66\u4e60\u3002"),(0,s.kt)("ol",null,(0,s.kt)("li",{parentName:"ol"},(0,s.kt)("strong",{parentName:"li"},"\u751f\u6210\u5668\uff08Generator\uff09\uff1a")," \u5b83\u8d1f\u8d23\u751f\u6210\u4e0e\u8bad\u7ec3\u6570\u636e\u76f8\u4f3c\u7684\u65b0\u6837\u672c\u3002\u751f\u6210\u5668\u63a5\u6536\u6765\u81ea\u6f5c\u5728\u7a7a\u95f4\uff08latent space\uff09\u7684\u968f\u673a\u5411\u91cf\u4f5c\u4e3a\u8f93\u5165\uff0c\u5e76\u8f93\u51fa\u4e00\u4e2a\u4e0e\u8bad\u7ec3\u6570\u636e\u7c7b\u4f3c\u7684\u6837\u672c\u3002\u751f\u6210\u5668\u7684\u76ee\u6807\u662f\u6b3a\u9a97\u5224\u522b\u5668\uff0c\u4f7f\u5176\u65e0\u6cd5\u533a\u5206\u751f\u6210\u7684\u6837\u672c\u548c\u771f\u5b9e\u7684\u8bad\u7ec3\u6570\u636e\u3002"),(0,s.kt)("li",{parentName:"ol"},(0,s.kt)("strong",{parentName:"li"},"\u5224\u522b\u5668\uff08Discriminator\uff09\uff1a")," \u5b83\u8d1f\u8d23\u5224\u522b\u8f93\u5165\u7684\u6837\u672c\u662f\u771f\u5b9e\u7684\u8bad\u7ec3\u6570\u636e\u8fd8\u662f\u751f\u6210\u5668\u751f\u6210\u7684\u5047\u6837\u672c\u3002\u5224\u522b\u5668\u7684\u76ee\u6807\u662f\u5c3d\u53ef\u80fd\u51c6\u786e\u5730\u5206\u7c7b\u8f93\u5165\u7684\u6837\u672c\u3002")),(0,s.kt)("p",null,"GAN\u7684\u6838\u5fc3\u601d\u60f3\u662f\u901a\u8fc7\u5bf9\u6297\u8fc7\u7a0b\u8bad\u7ec3\u751f\u6210\u5668\u548c\u5224\u522b\u5668\uff0c\u4e0d\u65ad\u63d0\u9ad8\u5b83\u4eec\u7684\u6027\u80fd\u3002\u751f\u6210\u5668\u8bd5\u56fe\u751f\u6210\u903c\u771f\u7684\u6837\u672c\uff0c\u800c\u5224\u522b\u5668\u8bd5\u56fe\u6b63\u786e\u5730\u533a\u5206\u771f\u5b9e\u6837\u672c\u548c\u751f\u6210\u6837\u672c\u3002\u8fd9\u4e2a\u5bf9\u6297\u7684\u8bad\u7ec3\u8fc7\u7a0b\u53ef\u4ee5\u88ab\u89c6\u4e3a\u5728\u4e24\u4e2a\u5206\u5e03\u4e4b\u95f4\u8fdb\u884c\u7684\u6700\u4f18\u63a7\u5236\u3002"),(0,s.kt)("h3",{id:"\u751f\u6210\u5668generator"},"\u751f\u6210\u5668\uff08Generator\uff09"),(0,s.kt)("ul",null,(0,s.kt)("li",{parentName:"ul"},(0,s.kt)("strong",{parentName:"li"},"\u7ed3\u6784\uff1a")," \u751f\u6210\u5668\u662f\u4e00\u4e2a\u795e\u7ecf\u7f51\u7edc\uff0c\u901a\u5e38\u662f\u4e00\u4e2a\u53cd\u5377\u79ef\u795e\u7ecf\u7f51\u7edc\uff08Generator Network\uff09\uff0c\u5176\u8f93\u5165\u901a\u5e38\u662f\u4e00\u4e2a\u968f\u673a\u566a\u58f0\uff08\u6f5c\u5728\u7a7a\u95f4\u4e2d\u7684\u70b9\uff09\uff0c\u8f93\u51fa\u662f\u4e0e\u8bad\u7ec3\u6570\u636e\u76f8\u4f3c\u7684\u56fe\u50cf\u6216\u6570\u636e\u3002"),(0,s.kt)("li",{parentName:"ul"},(0,s.kt)("strong",{parentName:"li"},"\u4f5c\u7528\uff1a")," \u751f\u6210\u5668\u7684\u76ee\u6807\u662f\u5b66\u4e60\u751f\u6210\u4e0e\u771f\u5b9e\u6570\u636e\u76f8\u4f3c\u7684\u6570\u636e\u3002\u901a\u8fc7\u8fed\u4ee3\u8bad\u7ec3\uff0c\u751f\u6210\u5668\u7684\u53c2\u6570\u88ab\u8c03\u6574\uff0c\u4f7f\u5176\u751f\u6210\u7684\u6570\u636e\u80fd\u591f\u6108\u53d1\u903c\u771f\u3002")),(0,s.kt)("h4",{id:"unconditional-generation"},"Unconditional Generation"),(0,s.kt)("p",null,"Unconditional generation\uff08\u65e0\u6761\u4ef6\u751f\u6210\uff09\u6307\u7684\u662f\u5728\u751f\u6210\u6a21\u578b\u4e2d\u751f\u6210\u6837\u672c\u65f6\uff0c\u4e0d\u53d7\u4efb\u4f55\u6761\u4ef6\u7684\u7ea6\u675f\u3002\u5728\u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0c\u751f\u6210\u5668\u4ec5\u6839\u636e\u5176\u5b66\u5230\u7684\u5206\u5e03\u751f\u6210\u6570\u636e\uff0c\u800c\u65e0\u9700\u5173\u6ce8\u7279\u5b9a\u7684\u8f93\u5165\u6761\u4ef6\u6216\u4e0a\u4e0b\u6587\u3002"),(0,s.kt)("p",null,"\u5bf9\u4e8e\u751f\u6210\u5bf9\u6297\u7f51\u7edc\uff08GAN\uff09\u6216\u53d8\u5206\u81ea\u52a8\u7f16\u7801\u5668\uff08VAE\uff09\u7b49\u751f\u6210\u6a21\u578b\uff0cunconditional generation\u901a\u5e38\u8868\u73b0\u4e3a\u4ece\u6f5c\u5728\u7a7a\u95f4\u4e2d\u91c7\u6837\uff0c\u7136\u540e\u5c06\u8fd9\u4e9b\u6837\u672c\u8f93\u5165\u751f\u6210\u5668\uff0c\u4ee5\u751f\u6210\u65b0\u7684\u3001\u4e0e\u8bad\u7ec3\u6570\u636e\u76f8\u4f3c\u7684\u6837\u672c\u3002\u8fd9\u79cd\u751f\u6210\u65b9\u5f0f\u662f\u968f\u673a\u7684\uff0c\u56e0\u4e3a\u6bcf\u6b21\u4ece\u6f5c\u5728\u7a7a\u95f4\u4e2d\u91c7\u6837\u90fd\u4f1a\u5bfc\u81f4\u751f\u6210\u4e0d\u540c\u7684\u6837\u672c\u3002"),(0,s.kt)("p",null,(0,s.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_imagesimage-20231122104717264.png",alt:"image-20231122104717264"})),(0,s.kt)("h4",{id:"conditional-generation"},"Conditional Generation"),(0,s.kt)("h3",{id:"\u5224\u522b\u5668discriminator"},"\u5224\u522b\u5668\uff08Discriminator\uff09"),(0,s.kt)("ul",null,(0,s.kt)("li",{parentName:"ul"},(0,s.kt)("strong",{parentName:"li"},"\u7ed3\u6784\uff1a")," \u5224\u522b\u5668\u662f\u4e00\u4e2a\u4e8c\u5143\u5206\u7c7b\u5668\uff0c\u901a\u5e38\u662f\u4e00\u4e2a\u5377\u79ef\u795e\u7ecf\u7f51\u7edc\uff08Discriminator Network\uff09\u3002\u5b83\u7684\u8f93\u5165\u53ef\u4ee5\u662f\u771f\u5b9e\u6570\u636e\u6216\u751f\u6210\u5668\u751f\u6210\u7684\u6570\u636e\uff0c\u8f93\u51fa\u662f\u4e00\u4e2a\u6982\u7387\uff0c\u8868\u793a\u8f93\u5165\u6570\u636e\u662f\u771f\u5b9e\u6570\u636e\u7684\u6982\u7387\u3002"),(0,s.kt)("li",{parentName:"ul"},(0,s.kt)("strong",{parentName:"li"},"\u4f5c\u7528\uff1a")," \u5224\u522b\u5668\u7684\u76ee\u6807\u662f\u5b66\u4e60\u533a\u5206\u771f\u5b9e\u6570\u636e\u548c\u751f\u6210\u5668\u751f\u6210\u7684\u6570\u636e\u3002\u5b83\u88ab\u8bad\u7ec3\u6210\u5bf9\u771f\u5b9e\u6570\u636e\u7ed9\u51fa\u9ad8\u6982\u7387\uff0c\u5bf9\u751f\u6210\u7684\u6570\u636e\u7ed9\u51fa\u4f4e\u6982\u7387\u3002")),(0,s.kt)("p",null,(0,s.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_imagesimage-20231122104853941.png",alt:"image-20231122104853941"})),(0,s.kt)("h2",{id:"\u8bad\u7ec3\u7b97\u6cd5"},"\u8bad\u7ec3\u7b97\u6cd5"),(0,s.kt)("p",null,"\u9996\u5148\u968f\u673a\u521d\u59cb\u5316\u751f\u6210\u5668\u548c\u5224\u522b\u5668\uff0c\u63a5\u4e0b\u6765\u5728\u6bcf\u4e00\u8f6e\u8bad\u7ec3\u4e2d\u91cd\u590d\u4ee5\u4e0b\u7b56\u7565\u3002"),(0,s.kt)("p",null,"\u7b2c\u4e00\u6b65\uff0c\u5728\u751f\u6210\u5668\u901a\u8fc7\u968f\u673a\u566a\u58f0\u795e\u751f\u6210\u6837\u672c\u540e\uff0c\u56fa\u5b9a\u751f\u6210\u5668\u7684\u53c2\u6570\uff0c\u5c06\u751f\u6210\u5668\u4ea7\u751f\u7684\u8f93\u51fa\u4e0e\u8bad\u7ec3\u8d44\u6599\u4e2d\u7684\u6807\u7b7e\u4f5c\u4e3a\u5224\u522b\u5668\u7684\u8f93\u5165\uff0c\u5224\u522b\u5668\u4e3a\u6bcf\u4e2a\u8f93\u5165\u6837\u672c\u6253\u5206\uff0c\u4ee3\u8868\u5176\u4e3a\u771f\u5b9e\u6837\u672c\u7684\u6982\u7387\u3002"),(0,s.kt)("p",null,"\u4e3a\u4e86\u6700\u5c0f\u5316\u635f\u5931\u51fd\u6570\u4f7f\u5f97\u5224\u522b\u5668\u4e3a\u771f\u5b9e\u6837\u672c\u8d4b\u5206\u66f4\u9ad8\uff0c\u4e3a\u751f\u6210\u6837\u672c\u8d4b\u5206\u66f4\u4f4e\uff0c\u8bbe\u8ba1\u4ee5\u4e0b\u635f\u5931\u51fd\u6570\uff1a"),(0,s.kt)("div",{className:"math math-display"},(0,s.kt)("span",{parentName:"div",className:"katex-display"},(0,s.kt)("span",{parentName:"span",className:"katex"},(0,s.kt)("span",{parentName:"span",className:"katex-mathml"},(0,s.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,s.kt)("semantics",{parentName:"math"},(0,s.kt)("mtable",{parentName:"semantics",width:"100%"},(0,s.kt)("mtr",{parentName:"mtable"},(0,s.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,s.kt)("mtd",{parentName:"mtr"},(0,s.kt)("mrow",{parentName:"mtd"},(0,s.kt)("mi",{parentName:"mrow"},"L"),(0,s.kt)("mi",{parentName:"mrow"},"o"),(0,s.kt)("mi",{parentName:"mrow"},"s"),(0,s.kt)("msub",{parentName:"mrow"},(0,s.kt)("mi",{parentName:"msub"},"s"),(0,s.kt)("mrow",{parentName:"msub"},(0,s.kt)("mi",{parentName:"mrow"},"r"),(0,s.kt)("mi",{parentName:"mrow"},"e"),(0,s.kt)("mi",{parentName:"mrow"},"a"),(0,s.kt)("mi",{parentName:"mrow"},"l"))),(0,s.kt)("mo",{parentName:"mrow"},"="),(0,s.kt)("mo",{parentName:"mrow"},"\u2212"),(0,s.kt)("msub",{parentName:"mrow"},(0,s.kt)("mi",{parentName:"msub"},"E"),(0,s.kt)("mrow",{parentName:"msub"},(0,s.kt)("mi",{parentName:"mrow"},"x"),(0,s.kt)("mo",{parentName:"mrow"},"\u223c"),(0,s.kt)("msub",{parentName:"mrow"},(0,s.kt)("mi",{parentName:"msub"},"p"),(0,s.kt)("mtext",{parentName:"msub"},"data")),(0,s.kt)("mrow",{parentName:"mrow"},(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,s.kt)("mi",{parentName:"mrow"},"x"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},")")))),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},"["),(0,s.kt)("mi",{parentName:"mrow"},"log"),(0,s.kt)("mo",{parentName:"mrow"},"\u2061"),(0,s.kt)("mi",{parentName:"mrow"},"D"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,s.kt)("mi",{parentName:"mrow"},"x"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},"]"))),(0,s.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,s.kt)("mtd",{parentName:"mtr"},(0,s.kt)("mtext",{parentName:"mtd"},"(1)")))),(0,s.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"Loss_{real}=-E_{x\\sim p_\\text{data}{(x)}}[\\log D(x)]\\tag{1}")))),(0,s.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"0.8333em",verticalAlign:"-0.15em"}}),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal"},"L"),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal"},"os"),(0,s.kt)("span",{parentName:"span",className:"mord"},(0,s.kt)("span",{parentName:"span",className:"mord mathnormal"},"s"),(0,s.kt)("span",{parentName:"span",className:"msupsub"},(0,s.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3361em"}},(0,s.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,s.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,s.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,s.kt)("span",{parentName:"span",className:"mord mtight"},(0,s.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"re"),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"a"),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.01968em"}},"l"))))),(0,s.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,s.kt)("span",{parentName:"span"})))))),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,s.kt)("span",{parentName:"span",className:"mrel"},"="),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"1.1052em",verticalAlign:"-0.3552em"}}),(0,s.kt)("span",{parentName:"span",className:"mord"},"\u2212"),(0,s.kt)("span",{parentName:"span",className:"mord"},(0,s.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05764em"}},"E"),(0,s.kt)("span",{parentName:"span",className:"msupsub"},(0,s.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3448em"}},(0,s.kt)("span",{parentName:"span",style:{top:"-2.5198em",marginLeft:"-0.0576em",marginRight:"0.05em"}},(0,s.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,s.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,s.kt)("span",{parentName:"span",className:"mord mtight"},(0,s.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"x"),(0,s.kt)("span",{parentName:"span",className:"mrel mtight"},"\u223c"),(0,s.kt)("span",{parentName:"span",className:"mord mtight"},(0,s.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"p"),(0,s.kt)("span",{parentName:"span",className:"msupsub"},(0,s.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3448em"}},(0,s.kt)("span",{parentName:"span",style:{top:"-2.3488em",marginLeft:"0em",marginRight:"0.0714em"}},(0,s.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.5em"}}),(0,s.kt)("span",{parentName:"span",className:"sizing reset-size3 size1 mtight"},(0,s.kt)("span",{parentName:"span",className:"mord text mtight"},(0,s.kt)("span",{parentName:"span",className:"mord mtight"},"data"))))),(0,s.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.1512em"}},(0,s.kt)("span",{parentName:"span"})))))),(0,s.kt)("span",{parentName:"span",className:"mord mtight"},(0,s.kt)("span",{parentName:"span",className:"mopen mtight"},"("),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"x"),(0,s.kt)("span",{parentName:"span",className:"mclose mtight"},")")))))),(0,s.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3552em"}},(0,s.kt)("span",{parentName:"span"})))))),(0,s.kt)("span",{parentName:"span",className:"mopen"},"["),(0,s.kt)("span",{parentName:"span",className:"mop"},"lo",(0,s.kt)("span",{parentName:"span",style:{marginRight:"0.01389em"}},"g")),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02778em"}},"D"),(0,s.kt)("span",{parentName:"span",className:"mopen"},"("),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal"},"x"),(0,s.kt)("span",{parentName:"span",className:"mclose"},")]")),(0,s.kt)("span",{parentName:"span",className:"tag"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"1.1052em",verticalAlign:"-0.3552em"}}),(0,s.kt)("span",{parentName:"span",className:"mord text"},(0,s.kt)("span",{parentName:"span",className:"mord"},"("),(0,s.kt)("span",{parentName:"span",className:"mord"},(0,s.kt)("span",{parentName:"span",className:"mord"},"1")),(0,s.kt)("span",{parentName:"span",className:"mord"},")"))))))),(0,s.kt)("p",null,"\u5176\u4e2d\uff0c",(0,s.kt)("span",{parentName:"p",className:"math math-inline"},(0,s.kt)("span",{parentName:"span",className:"katex"},(0,s.kt)("span",{parentName:"span",className:"katex-mathml"},(0,s.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,s.kt)("semantics",{parentName:"math"},(0,s.kt)("mrow",{parentName:"semantics"},(0,s.kt)("mi",{parentName:"mrow"},"D"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,s.kt)("mi",{parentName:"mrow"},"x"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,s.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"D(x)")))),(0,s.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02778em"}},"D"),(0,s.kt)("span",{parentName:"span",className:"mopen"},"("),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal"},"x"),(0,s.kt)("span",{parentName:"span",className:"mclose"},")"))))),"\u662f\u5224\u522b\u5668\u7684\u8f93\u51fa\uff0c",(0,s.kt)("span",{parentName:"p",className:"math math-inline"},(0,s.kt)("span",{parentName:"span",className:"katex"},(0,s.kt)("span",{parentName:"span",className:"katex-mathml"},(0,s.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,s.kt)("semantics",{parentName:"math"},(0,s.kt)("mrow",{parentName:"semantics"},(0,s.kt)("mi",{parentName:"mrow"},"x")),(0,s.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"x")))),(0,s.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"0.4306em"}}),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal"},"x"))))),"\u662f\u771f\u5b9e\u6837\u672c\uff0c",(0,s.kt)("span",{parentName:"p",className:"math math-inline"},(0,s.kt)("span",{parentName:"span",className:"katex"},(0,s.kt)("span",{parentName:"span",className:"katex-mathml"},(0,s.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,s.kt)("semantics",{parentName:"math"},(0,s.kt)("mrow",{parentName:"semantics"},(0,s.kt)("mi",{parentName:"mrow"},"E")),(0,s.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"E")))),(0,s.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6833em"}}),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05764em"}},"E"))))),"\u662f\u6570\u5b66\u671f\u671b\u3002"),(0,s.kt)("div",{className:"math math-display"},(0,s.kt)("span",{parentName:"div",className:"katex-display"},(0,s.kt)("span",{parentName:"span",className:"katex"},(0,s.kt)("span",{parentName:"span",className:"katex-mathml"},(0,s.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,s.kt)("semantics",{parentName:"math"},(0,s.kt)("mtable",{parentName:"semantics",width:"100%"},(0,s.kt)("mtr",{parentName:"mtable"},(0,s.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,s.kt)("mtd",{parentName:"mtr"},(0,s.kt)("mrow",{parentName:"mtd"},(0,s.kt)("mi",{parentName:"mrow"},"L"),(0,s.kt)("mi",{parentName:"mrow"},"o"),(0,s.kt)("mi",{parentName:"mrow"},"s"),(0,s.kt)("msub",{parentName:"mrow"},(0,s.kt)("mi",{parentName:"msub"},"s"),(0,s.kt)("mrow",{parentName:"msub"},(0,s.kt)("mi",{parentName:"mrow"},"f"),(0,s.kt)("mi",{parentName:"mrow"},"a"),(0,s.kt)("mi",{parentName:"mrow"},"k"),(0,s.kt)("mi",{parentName:"mrow"},"e"))),(0,s.kt)("mo",{parentName:"mrow"},"="),(0,s.kt)("mo",{parentName:"mrow"},"\u2212"),(0,s.kt)("msub",{parentName:"mrow"},(0,s.kt)("mi",{parentName:"msub"},"E"),(0,s.kt)("mrow",{parentName:"msub"},(0,s.kt)("mi",{parentName:"mrow"},"z"),(0,s.kt)("mo",{parentName:"mrow"},"\u223c"),(0,s.kt)("msub",{parentName:"mrow"},(0,s.kt)("mi",{parentName:"msub"},"p"),(0,s.kt)("mi",{parentName:"msub"},"z")),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,s.kt)("mi",{parentName:"mrow"},"z"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},")"))),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},"["),(0,s.kt)("mi",{parentName:"mrow"},"l"),(0,s.kt)("mi",{parentName:"mrow"},"o"),(0,s.kt)("mi",{parentName:"mrow"},"g"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,s.kt)("mn",{parentName:"mrow"},"1"),(0,s.kt)("mo",{parentName:"mrow"},"\u2212"),(0,s.kt)("mi",{parentName:"mrow"},"D"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,s.kt)("mi",{parentName:"mrow"},"G"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,s.kt)("mi",{parentName:"mrow"},"z"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},"]"))),(0,s.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,s.kt)("mtd",{parentName:"mtr"},(0,s.kt)("mtext",{parentName:"mtd"},"(2)")))),(0,s.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"Loss_{fake}=-E_{z\\sim p_z(z)}[log(1-D(G(z)))]\\tag{2}")))),(0,s.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"0.9694em",verticalAlign:"-0.2861em"}}),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal"},"L"),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal"},"os"),(0,s.kt)("span",{parentName:"span",className:"mord"},(0,s.kt)("span",{parentName:"span",className:"mord mathnormal"},"s"),(0,s.kt)("span",{parentName:"span",className:"msupsub"},(0,s.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3361em"}},(0,s.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,s.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,s.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,s.kt)("span",{parentName:"span",className:"mord mtight"},(0,s.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.10764em"}},"f"),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.03148em"}},"ak"),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"e"))))),(0,s.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.2861em"}},(0,s.kt)("span",{parentName:"span"})))))),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,s.kt)("span",{parentName:"span",className:"mrel"},"="),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"1.1052em",verticalAlign:"-0.3552em"}}),(0,s.kt)("span",{parentName:"span",className:"mord"},"\u2212"),(0,s.kt)("span",{parentName:"span",className:"mord"},(0,s.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05764em"}},"E"),(0,s.kt)("span",{parentName:"span",className:"msupsub"},(0,s.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3448em"}},(0,s.kt)("span",{parentName:"span",style:{top:"-2.5198em",marginLeft:"-0.0576em",marginRight:"0.05em"}},(0,s.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,s.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,s.kt)("span",{parentName:"span",className:"mord mtight"},(0,s.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.04398em"}},"z"),(0,s.kt)("span",{parentName:"span",className:"mrel mtight"},"\u223c"),(0,s.kt)("span",{parentName:"span",className:"mord mtight"},(0,s.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"p"),(0,s.kt)("span",{parentName:"span",className:"msupsub"},(0,s.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.1645em"}},(0,s.kt)("span",{parentName:"span",style:{top:"-2.357em",marginLeft:"0em",marginRight:"0.0714em"}},(0,s.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.5em"}}),(0,s.kt)("span",{parentName:"span",className:"sizing reset-size3 size1 mtight"},(0,s.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.04398em"}},"z")))),(0,s.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.143em"}},(0,s.kt)("span",{parentName:"span"})))))),(0,s.kt)("span",{parentName:"span",className:"mopen mtight"},"("),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.04398em"}},"z"),(0,s.kt)("span",{parentName:"span",className:"mclose mtight"},")"))))),(0,s.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3552em"}},(0,s.kt)("span",{parentName:"span"})))))),(0,s.kt)("span",{parentName:"span",className:"mopen"},"["),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.01968em"}},"l"),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal"},"o"),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"g"),(0,s.kt)("span",{parentName:"span",className:"mopen"},"("),(0,s.kt)("span",{parentName:"span",className:"mord"},"1"),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,s.kt)("span",{parentName:"span",className:"mbin"},"\u2212"),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}})),(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02778em"}},"D"),(0,s.kt)("span",{parentName:"span",className:"mopen"},"("),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal"},"G"),(0,s.kt)("span",{parentName:"span",className:"mopen"},"("),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.04398em"}},"z"),(0,s.kt)("span",{parentName:"span",className:"mclose"},")))]")),(0,s.kt)("span",{parentName:"span",className:"tag"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"1.1052em",verticalAlign:"-0.3552em"}}),(0,s.kt)("span",{parentName:"span",className:"mord text"},(0,s.kt)("span",{parentName:"span",className:"mord"},"("),(0,s.kt)("span",{parentName:"span",className:"mord"},(0,s.kt)("span",{parentName:"span",className:"mord"},"2")),(0,s.kt)("span",{parentName:"span",className:"mord"},")"))))))),(0,s.kt)("p",null,"\u5176\u4e2d\uff0c",(0,s.kt)("span",{parentName:"p",className:"math math-inline"},(0,s.kt)("span",{parentName:"span",className:"katex"},(0,s.kt)("span",{parentName:"span",className:"katex-mathml"},(0,s.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,s.kt)("semantics",{parentName:"math"},(0,s.kt)("mrow",{parentName:"semantics"},(0,s.kt)("mi",{parentName:"mrow"},"G"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,s.kt)("mi",{parentName:"mrow"},"z"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,s.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"G(z)")))),(0,s.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal"},"G"),(0,s.kt)("span",{parentName:"span",className:"mopen"},"("),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.04398em"}},"z"),(0,s.kt)("span",{parentName:"span",className:"mclose"},")"))))),"\u662f\u751f\u6210\u5668\u7684\u8f93\u51fa\uff0c",(0,s.kt)("span",{parentName:"p",className:"math math-inline"},(0,s.kt)("span",{parentName:"span",className:"katex"},(0,s.kt)("span",{parentName:"span",className:"katex-mathml"},(0,s.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,s.kt)("semantics",{parentName:"math"},(0,s.kt)("mrow",{parentName:"semantics"},(0,s.kt)("mi",{parentName:"mrow"},"z")),(0,s.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"z")))),(0,s.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"0.4306em"}}),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.04398em"}},"z"))))),"\u662f\u968f\u673a\u566a\u58f0\uff0c",(0,s.kt)("span",{parentName:"p",className:"math math-inline"},(0,s.kt)("span",{parentName:"span",className:"katex"},(0,s.kt)("span",{parentName:"span",className:"katex-mathml"},(0,s.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,s.kt)("semantics",{parentName:"math"},(0,s.kt)("mrow",{parentName:"semantics"},(0,s.kt)("mi",{parentName:"mrow"},"E")),(0,s.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"E")))),(0,s.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6833em"}}),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05764em"}},"E"))))),"\u662f\u6570\u5b66\u671f\u671b\u3002"),(0,s.kt)("p",null,"\u5c06\u771f\u5b9e\u6837\u672c\u548c\u751f\u6210\u6837\u672c\u7684\u635f\u5931\u76f8\u52a0\uff0c\u5f62\u6210\u5224\u522b\u5668\u7684\u603b\u4f53\u635f\u5931\u3002"),(0,s.kt)("div",{className:"math math-display"},(0,s.kt)("span",{parentName:"div",className:"katex-display"},(0,s.kt)("span",{parentName:"span",className:"katex"},(0,s.kt)("span",{parentName:"span",className:"katex-mathml"},(0,s.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,s.kt)("semantics",{parentName:"math"},(0,s.kt)("mtable",{parentName:"semantics",width:"100%"},(0,s.kt)("mtr",{parentName:"mtable"},(0,s.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,s.kt)("mtd",{parentName:"mtr"},(0,s.kt)("mrow",{parentName:"mtd"},(0,s.kt)("mi",{parentName:"mrow"},"L"),(0,s.kt)("mi",{parentName:"mrow"},"o"),(0,s.kt)("mi",{parentName:"mrow"},"s"),(0,s.kt)("msub",{parentName:"mrow"},(0,s.kt)("mi",{parentName:"msub"},"s"),(0,s.kt)("mrow",{parentName:"msub"},(0,s.kt)("mi",{parentName:"mrow"},"d"),(0,s.kt)("mi",{parentName:"mrow"},"i"),(0,s.kt)("mi",{parentName:"mrow"},"s"),(0,s.kt)("mi",{parentName:"mrow"},"c"),(0,s.kt)("mi",{parentName:"mrow"},"r"),(0,s.kt)("mi",{parentName:"mrow"},"i"),(0,s.kt)("mi",{parentName:"mrow"},"m"),(0,s.kt)("mi",{parentName:"mrow"},"i"),(0,s.kt)("mi",{parentName:"mrow"},"n"),(0,s.kt)("mi",{parentName:"mrow"},"a"),(0,s.kt)("mi",{parentName:"mrow"},"t"),(0,s.kt)("mi",{parentName:"mrow"},"o"),(0,s.kt)("mi",{parentName:"mrow"},"r"))),(0,s.kt)("mo",{parentName:"mrow"},"="),(0,s.kt)("mi",{parentName:"mrow"},"L"),(0,s.kt)("mi",{parentName:"mrow"},"o"),(0,s.kt)("mi",{parentName:"mrow"},"s"),(0,s.kt)("msub",{parentName:"mrow"},(0,s.kt)("mi",{parentName:"msub"},"s"),(0,s.kt)("mrow",{parentName:"msub"},(0,s.kt)("mi",{parentName:"mrow"},"r"),(0,s.kt)("mi",{parentName:"mrow"},"e"),(0,s.kt)("mi",{parentName:"mrow"},"a"),(0,s.kt)("mi",{parentName:"mrow"},"l"))),(0,s.kt)("mo",{parentName:"mrow"},"+"),(0,s.kt)("mi",{parentName:"mrow"},"L"),(0,s.kt)("mi",{parentName:"mrow"},"o"),(0,s.kt)("mi",{parentName:"mrow"},"s"),(0,s.kt)("msub",{parentName:"mrow"},(0,s.kt)("mi",{parentName:"msub"},"s"),(0,s.kt)("mrow",{parentName:"msub"},(0,s.kt)("mi",{parentName:"mrow"},"f"),(0,s.kt)("mi",{parentName:"mrow"},"a"),(0,s.kt)("mi",{parentName:"mrow"},"k"),(0,s.kt)("mi",{parentName:"mrow"},"e"))))),(0,s.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,s.kt)("mtd",{parentName:"mtr"},(0,s.kt)("mtext",{parentName:"mtd"},"(3)")))),(0,s.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"Loss_{discriminator}=Loss_{real}+Loss_{fake}\\tag{3}")))),(0,s.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"0.8333em",verticalAlign:"-0.15em"}}),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal"},"L"),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal"},"os"),(0,s.kt)("span",{parentName:"span",className:"mord"},(0,s.kt)("span",{parentName:"span",className:"mord mathnormal"},"s"),(0,s.kt)("span",{parentName:"span",className:"msupsub"},(0,s.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3361em"}},(0,s.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,s.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,s.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,s.kt)("span",{parentName:"span",className:"mord mtight"},(0,s.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"d"),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"i"),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.02778em"}},"scr"),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"imina"),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"t"),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.02778em"}},"or"))))),(0,s.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,s.kt)("span",{parentName:"span"})))))),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,s.kt)("span",{parentName:"span",className:"mrel"},"="),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"0.8333em",verticalAlign:"-0.15em"}}),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal"},"L"),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal"},"os"),(0,s.kt)("span",{parentName:"span",className:"mord"},(0,s.kt)("span",{parentName:"span",className:"mord mathnormal"},"s"),(0,s.kt)("span",{parentName:"span",className:"msupsub"},(0,s.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3361em"}},(0,s.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,s.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,s.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,s.kt)("span",{parentName:"span",className:"mord mtight"},(0,s.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"re"),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"a"),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.01968em"}},"l"))))),(0,s.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,s.kt)("span",{parentName:"span"})))))),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,s.kt)("span",{parentName:"span",className:"mbin"},"+"),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}})),(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"0.9694em",verticalAlign:"-0.2861em"}}),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal"},"L"),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal"},"os"),(0,s.kt)("span",{parentName:"span",className:"mord"},(0,s.kt)("span",{parentName:"span",className:"mord mathnormal"},"s"),(0,s.kt)("span",{parentName:"span",className:"msupsub"},(0,s.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3361em"}},(0,s.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,s.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,s.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,s.kt)("span",{parentName:"span",className:"mord mtight"},(0,s.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.10764em"}},"f"),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.03148em"}},"ak"),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"e"))))),(0,s.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.2861em"}},(0,s.kt)("span",{parentName:"span"}))))))),(0,s.kt)("span",{parentName:"span",className:"tag"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"1.0361em",verticalAlign:"-0.2861em"}}),(0,s.kt)("span",{parentName:"span",className:"mord text"},(0,s.kt)("span",{parentName:"span",className:"mord"},"("),(0,s.kt)("span",{parentName:"span",className:"mord"},(0,s.kt)("span",{parentName:"span",className:"mord"},"3")),(0,s.kt)("span",{parentName:"span",className:"mord"},")"))))))),(0,s.kt)("p",null,"\u6700\u5c0f\u5316\u635f\u5931\u51fd\u6570\uff0c\u66f4\u65b0\u5224\u522b\u5668\u7684\u53c2\u6570\u3002"),(0,s.kt)("p",null,(0,s.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_imagesimage-20231122110917135.png",alt:"image-20231122110917135"})),(0,s.kt)("p",null,"\u7b2c\u4e8c\u6b65\uff0c\u5728\u5224\u522b\u5668\u53c2\u6570\u66f4\u65b0\u540e\uff0c\u56fa\u5b9a\u5224\u522b\u5668\u7684\u53c2\u6570\uff0c\u968f\u673a\u5206\u5e03\u7684\u5411\u91cf\u518d\u6b21\u8f93\u5165\u81f3\u751f\u6210\u5668\u4e2d\uff0c\u5f97\u5230\u751f\u6210\u6837\u672c\uff0c\u6b64\u65f6\u751f\u6210\u6837\u672c\u88ab\u9001\u5165\u53c2\u6570\u56fa\u5b9a\u7684\u5224\u522b\u5668\u4e2d\u5f97\u5230\u751f\u6210\u6837\u672c\u5c5e\u4e8e\u771f\u5b9e\u6837\u672c\u7684\u6982\u7387\u3002\u5728\u751f\u6210\u5668\u7684\u8bad\u7ec3\u8fc7\u7a0b\u4e2d\uff0c\u6211\u4eec\u7684\u76ee\u7684\u662f\u8ba9\u751f\u6210\u5668\u751f\u6210\u7684\u6837\u672c\u5c3d\u53ef\u80fd\u7684\u63a5\u8fd1\u771f\u5b9e\u6837\u672c\u3002"),(0,s.kt)("div",{className:"math math-display"},(0,s.kt)("span",{parentName:"div",className:"katex-display"},(0,s.kt)("span",{parentName:"span",className:"katex"},(0,s.kt)("span",{parentName:"span",className:"katex-mathml"},(0,s.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,s.kt)("semantics",{parentName:"math"},(0,s.kt)("mtable",{parentName:"semantics",width:"100%"},(0,s.kt)("mtr",{parentName:"mtable"},(0,s.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,s.kt)("mtd",{parentName:"mtr"},(0,s.kt)("mrow",{parentName:"mtd"},(0,s.kt)("msub",{parentName:"mrow"},(0,s.kt)("mi",{parentName:"msub"},"L"),(0,s.kt)("mi",{parentName:"msub"},"G")),(0,s.kt)("mo",{parentName:"mrow"},"="),(0,s.kt)("mo",{parentName:"mrow"},"\u2212"),(0,s.kt)("msub",{parentName:"mrow"},(0,s.kt)("mi",{parentName:"msub"},"E"),(0,s.kt)("mrow",{parentName:"msub"},(0,s.kt)("mi",{parentName:"mrow"},"z"),(0,s.kt)("mo",{parentName:"mrow"},"\u223c"),(0,s.kt)("msub",{parentName:"mrow"},(0,s.kt)("mi",{parentName:"msub"},"p"),(0,s.kt)("mi",{parentName:"msub"},"z")),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,s.kt)("mi",{parentName:"mrow"},"z"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},")"))),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},"["),(0,s.kt)("mi",{parentName:"mrow"},"log"),(0,s.kt)("mo",{parentName:"mrow"},"\u2061"),(0,s.kt)("mi",{parentName:"mrow"},"D"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,s.kt)("mi",{parentName:"mrow"},"G"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,s.kt)("mi",{parentName:"mrow"},"z"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},"]"))),(0,s.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,s.kt)("mtd",{parentName:"mtr"},(0,s.kt)("mtext",{parentName:"mtd"},"(4)")))),(0,s.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"L_G=-E_{z\\sim p_z(z)}[\\log D(G(z))]\\tag{4}")))),(0,s.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"0.8333em",verticalAlign:"-0.15em"}}),(0,s.kt)("span",{parentName:"span",className:"mord"},(0,s.kt)("span",{parentName:"span",className:"mord mathnormal"},"L"),(0,s.kt)("span",{parentName:"span",className:"msupsub"},(0,s.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3283em"}},(0,s.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,s.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,s.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,s.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"G")))),(0,s.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,s.kt)("span",{parentName:"span"})))))),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,s.kt)("span",{parentName:"span",className:"mrel"},"="),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"1.1052em",verticalAlign:"-0.3552em"}}),(0,s.kt)("span",{parentName:"span",className:"mord"},"\u2212"),(0,s.kt)("span",{parentName:"span",className:"mord"},(0,s.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05764em"}},"E"),(0,s.kt)("span",{parentName:"span",className:"msupsub"},(0,s.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3448em"}},(0,s.kt)("span",{parentName:"span",style:{top:"-2.5198em",marginLeft:"-0.0576em",marginRight:"0.05em"}},(0,s.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,s.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,s.kt)("span",{parentName:"span",className:"mord mtight"},(0,s.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.04398em"}},"z"),(0,s.kt)("span",{parentName:"span",className:"mrel mtight"},"\u223c"),(0,s.kt)("span",{parentName:"span",className:"mord mtight"},(0,s.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"p"),(0,s.kt)("span",{parentName:"span",className:"msupsub"},(0,s.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.1645em"}},(0,s.kt)("span",{parentName:"span",style:{top:"-2.357em",marginLeft:"0em",marginRight:"0.0714em"}},(0,s.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.5em"}}),(0,s.kt)("span",{parentName:"span",className:"sizing reset-size3 size1 mtight"},(0,s.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.04398em"}},"z")))),(0,s.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.143em"}},(0,s.kt)("span",{parentName:"span"})))))),(0,s.kt)("span",{parentName:"span",className:"mopen mtight"},"("),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.04398em"}},"z"),(0,s.kt)("span",{parentName:"span",className:"mclose mtight"},")"))))),(0,s.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3552em"}},(0,s.kt)("span",{parentName:"span"})))))),(0,s.kt)("span",{parentName:"span",className:"mopen"},"["),(0,s.kt)("span",{parentName:"span",className:"mop"},"lo",(0,s.kt)("span",{parentName:"span",style:{marginRight:"0.01389em"}},"g")),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02778em"}},"D"),(0,s.kt)("span",{parentName:"span",className:"mopen"},"("),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal"},"G"),(0,s.kt)("span",{parentName:"span",className:"mopen"},"("),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.04398em"}},"z"),(0,s.kt)("span",{parentName:"span",className:"mclose"},"))]")),(0,s.kt)("span",{parentName:"span",className:"tag"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"1.1052em",verticalAlign:"-0.3552em"}}),(0,s.kt)("span",{parentName:"span",className:"mord text"},(0,s.kt)("span",{parentName:"span",className:"mord"},"("),(0,s.kt)("span",{parentName:"span",className:"mord"},(0,s.kt)("span",{parentName:"span",className:"mord"},"4")),(0,s.kt)("span",{parentName:"span",className:"mord"},")"))))))),(0,s.kt)("p",null,"\u5176\u4e2d\uff0c",(0,s.kt)("span",{parentName:"p",className:"math math-inline"},(0,s.kt)("span",{parentName:"span",className:"katex"},(0,s.kt)("span",{parentName:"span",className:"katex-mathml"},(0,s.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,s.kt)("semantics",{parentName:"math"},(0,s.kt)("mrow",{parentName:"semantics"},(0,s.kt)("mi",{parentName:"mrow"},"G"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,s.kt)("mi",{parentName:"mrow"},"z"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,s.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"G(z)")))),(0,s.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal"},"G"),(0,s.kt)("span",{parentName:"span",className:"mopen"},"("),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.04398em"}},"z"),(0,s.kt)("span",{parentName:"span",className:"mclose"},")"))))),"\u662f\u751f\u6210\u5668\u7684\u8f93\u51fa\uff0c",(0,s.kt)("span",{parentName:"p",className:"math math-inline"},(0,s.kt)("span",{parentName:"span",className:"katex"},(0,s.kt)("span",{parentName:"span",className:"katex-mathml"},(0,s.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,s.kt)("semantics",{parentName:"math"},(0,s.kt)("mrow",{parentName:"semantics"},(0,s.kt)("mi",{parentName:"mrow"},"D"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,s.kt)("mi",{parentName:"mrow"},"G"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,s.kt)("mi",{parentName:"mrow"},"z"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,s.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"D(G(z))")))),(0,s.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02778em"}},"D"),(0,s.kt)("span",{parentName:"span",className:"mopen"},"("),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal"},"G"),(0,s.kt)("span",{parentName:"span",className:"mopen"},"("),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.04398em"}},"z"),(0,s.kt)("span",{parentName:"span",className:"mclose"},"))"))))),"\u662f\u751f\u6210\u6837\u672c\u8f93\u5165\u5230\u5224\u522b\u5668\u540e\u7684\u8f93\u51fa\uff0c",(0,s.kt)("span",{parentName:"p",className:"math math-inline"},(0,s.kt)("span",{parentName:"span",className:"katex"},(0,s.kt)("span",{parentName:"span",className:"katex-mathml"},(0,s.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,s.kt)("semantics",{parentName:"math"},(0,s.kt)("mrow",{parentName:"semantics"},(0,s.kt)("mi",{parentName:"mrow"},"z")),(0,s.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"z")))),(0,s.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"0.4306em"}}),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.04398em"}},"z"))))),"\u662f\u968f\u673a\u566a\u58f0\uff0c",(0,s.kt)("span",{parentName:"p",className:"math math-inline"},(0,s.kt)("span",{parentName:"span",className:"katex"},(0,s.kt)("span",{parentName:"span",className:"katex-mathml"},(0,s.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,s.kt)("semantics",{parentName:"math"},(0,s.kt)("mrow",{parentName:"semantics"},(0,s.kt)("mi",{parentName:"mrow"},"E")),(0,s.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"E")))),(0,s.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6833em"}}),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05764em"}},"E"))))),"\u662f\u6570\u5b66\u671f\u671b\u3002"),(0,s.kt)("p",null,(0,s.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_imagesimage-20231122142205471.png",alt:"image-20231122142205471"})))}o.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/en/assets/js/5960b9f1.062769fa.js b/en/assets/js/5960b9f1.062769fa.js new file mode 100644 index 000000000..a0d9c1db0 --- /dev/null +++ b/en/assets/js/5960b9f1.062769fa.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunknpy_notebook=self.webpackChunknpy_notebook||[]).push([[9615],{3905:(a,e,t)=>{t.d(e,{Zo:()=>o,kt:()=>h});var n=t(7294);function m(a,e,t){return e in a?Object.defineProperty(a,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):a[e]=t,a}function s(a,e){var t=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable}))),t.push.apply(t,n)}return t}function r(a){for(var e=1;e=0||(m[t]=a[t]);return m}(a,e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(a);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(a,t)&&(m[t]=a[t])}return m}var l=n.createContext({}),N=function(a){var e=n.useContext(l),t=e;return a&&(t="function"==typeof a?a(e):r(r({},e),a)),t},o=function(a){var e=N(a.components);return n.createElement(l.Provider,{value:e},a.children)},i="mdxType",k={inlineCode:"code",wrapper:function(a){var e=a.children;return n.createElement(n.Fragment,{},e)}},c=n.forwardRef((function(a,e){var t=a.components,m=a.mdxType,s=a.originalType,l=a.parentName,o=p(a,["components","mdxType","originalType","parentName"]),i=N(t),c=m,h=i["".concat(l,".").concat(c)]||i[c]||k[c]||s;return t?n.createElement(h,r(r({ref:e},o),{},{components:t})):n.createElement(h,r({ref:e},o))}));function h(a,e){var t=arguments,m=e&&e.mdxType;if("string"==typeof a||m){var s=t.length,r=new Array(s);r[0]=c;var p={};for(var l in e)hasOwnProperty.call(e,l)&&(p[l]=e[l]);p.originalType=a,p[i]="string"==typeof a?a:m,r[1]=p;for(var N=2;N{t.r(e),t.d(e,{assets:()=>l,contentTitle:()=>r,default:()=>k,frontMatter:()=>s,metadata:()=>p,toc:()=>N});var n=t(7462),m=(t(7294),t(3905));const s={},r="\u6982\u7387\u8bba",p={unversionedId:"Tui-Mian/\u6570\u5b66/\u6982\u7387\u8bba",id:"Tui-Mian/\u6570\u5b66/\u6982\u7387\u8bba",title:"\u6982\u7387\u8bba",description:"\u9762\u8bd5\u5e38\u8003\u95ee\u9898",source:"@site/docs/Tui-Mian/\u6570\u5b66/\u6982\u7387\u8bba.md",sourceDirName:"Tui-Mian/\u6570\u5b66",slug:"/Tui-Mian/\u6570\u5b66/\u6982\u7387\u8bba",permalink:"/en/docs/Tui-Mian/\u6570\u5b66/\u6982\u7387\u8bba",draft:!1,tags:[],version:"current",frontMatter:{},sidebar:"tui_mian",previous:{title:"\u590f\u4ee4\u8425\u9762\u8bd5\u6570\u5b66\u90e8\u5206\u590d\u4e60",permalink:"/en/docs/Tui-Mian/\u6570\u5b66/\u590f\u4ee4\u8425\u9762\u8bd5\u6570\u5b66\u90e8\u5206\u590d\u4e60"},next:{title:"\u7ebf\u6027\u4ee3\u6570",permalink:"/en/docs/Tui-Mian/\u6570\u5b66/\u7ebf\u6027\u4ee3\u6570"}},l={},N=[{value:"\u9762\u8bd5\u5e38\u8003\u95ee\u9898",id:"\u9762\u8bd5\u5e38\u8003\u95ee\u9898",level:2}],o={toc:N},i="wrapper";function k(a){let{components:e,...t}=a;return(0,m.kt)(i,(0,n.Z)({},o,t,{components:e,mdxType:"MDXLayout"}),(0,m.kt)("h1",{id:"\u6982\u7387\u8bba"},"\u6982\u7387\u8bba"),(0,m.kt)("h2",{id:"\u9762\u8bd5\u5e38\u8003\u95ee\u9898"},"\u9762\u8bd5\u5e38\u8003\u95ee\u9898"),(0,m.kt)("ol",null,(0,m.kt)("li",{parentName:"ol"},(0,m.kt)("p",{parentName:"li"},(0,m.kt)("strong",{parentName:"p"},"\u7b80\u8ff0\u5927\u6570\u5b9a\u7406\u3002")),(0,m.kt)("p",{parentName:"li"},"\u5927\u6570\u5b9a\u7406\u63cf\u8ff0\u4e86\u5927\u6837\u672c\u60c5\u51b5\u4e0b\u968f\u673a\u53d8\u91cf\u7684\u5747\u503c\u4e0e\u5176\u671f\u671b\u503c\u4e4b\u95f4\u7684\u5173\u7cfb\u3002\u5bf9\u4e8e",(0,m.kt)("strong",{parentName:"p"},"\u72ec\u7acb\u540c\u5206\u5e03"),"\u7684\u968f\u673a\u53d8\u91cf\u5e8f\u5217\uff0c\u968f\u7740\u6837\u672c\u6570\u91cf\u7684\u589e\u52a0\uff0c\u6837\u672c\u5747\u503c\u4f1a\u4ee5\u8f83\u9ad8\u7684\u6982\u7387\u63a5\u8fd1\u5176\u671f\u671b\u503c\u3002")),(0,m.kt)("li",{parentName:"ol"},(0,m.kt)("p",{parentName:"li"},(0,m.kt)("strong",{parentName:"p"},"\u7b80\u8ff0\u4e2d\u5fc3\u6781\u9650\u5b9a\u7406\u3002")),(0,m.kt)("p",{parentName:"li"},"\u5f53\u72ec\u7acb\u968f\u673a\u53d8\u91cf\u7684\u6570\u91cf\u8db3\u591f\u5927\u65f6\uff0c\u5b83\u4eec\u7684\u548c\uff08\u6216\u5e73\u5747\u503c\uff09\u7684\u5206\u5e03\u4f1a\u9010\u6e10\u63a5\u8fd1\u4e00\u4e2a\u6b63\u6001\u5206\u5e03\u3002",(0,m.kt)("strong",{parentName:"p"},"\u5373\u4f7f\u539f\u59cb\u968f\u673a\u53d8\u91cf\u4e0d\u670d\u4ece\u6b63\u6001\u5206\u5e03"),"\uff0c\u4f46\u5f53\u6837\u672c\u5bb9\u91cf\u8db3\u591f\u5927\u65f6\uff0c\u548c\uff08\u6216\u5e73\u5747\u503c\uff09\u7684\u5206\u5e03\u4ecd\u7136\u5448\u73b0\u51fa\u6b63\u6001\u5206\u5e03\u7684\u7279\u5f81\u3002")),(0,m.kt)("li",{parentName:"ol"},(0,m.kt)("p",{parentName:"li"},(0,m.kt)("strong",{parentName:"p"},"\u4ec0\u4e48\u662f\u5168\u6982\u7387\u516c\u5f0f\u3002")),(0,m.kt)("p",{parentName:"li"},"\u5bf9\u4e8e\u4e8b\u4ef6A\u800c\u8a00\uff0c\u5047\u8bbe\u6709\u4e00\u7ec4",(0,m.kt)("strong",{parentName:"p"},"\u4e92\u65a5\u4e14\u7a77\u5c3d"),"\u7684\u6761\u4ef6\u4e8b\u4ef6B\uff0c\u5219\u4e8b\u4ef6A\u7684\u6982\u7387\u7b49\u4e8e\u4e8b\u4ef6A\u5728\u6bcf\u4e2a\u6761\u4ef6\u4e8b\u4ef6\u4e0b\u53d1\u751f\u7684\u6982\u7387\u4e0e\u8be5\u6761\u4ef6\u4e8b\u4ef6\u53d1\u751f\u6982\u7387\u7684\u4e58\u79ef\u548c\u3002")),(0,m.kt)("li",{parentName:"ol"},(0,m.kt)("p",{parentName:"li"},(0,m.kt)("strong",{parentName:"p"},"\u4ec0\u4e48\u662f\u6700\u5927\u4f3c\u7136\u4f30\u8ba1\u3002")),(0,m.kt)("p",{parentName:"li"},"\u57fa\u672c\u601d\u60f3\u662f\u5728\u5df2\u77e5\u89c2\u6d4b\u6570\u636e\u7684\u60c5\u51b5\u4e0b\uff0c\u901a\u8fc7\u8c03\u6574\u53c2\u6570\u7684\u53d6\u503c\uff0c\u627e\u5230\u4f7f\u5f97\u89c2\u6d4b\u6570\u636e\u51fa\u73b0\u6982\u7387\u6700\u5927\u7684\u53c2\u6570\u503c\u3002"),(0,m.kt)("p",{parentName:"li"},"\u5927\u81f4\u8fc7\u7a0b\uff1a"),(0,m.kt)("ol",{parentName:"li"},(0,m.kt)("li",{parentName:"ol"},"\u6784\u5efa\u53c2\u6570\u5316\u7684\u6982\u7387\u6a21\u578b\uff0c\u5373\u6784\u5efa\u4f3c\u7136\u51fd\u6570\uff0c\u8868\u793a\u5728\u7ed9\u5b9a\u53c2\u6570\u4e0b\u89c2\u6d4b\u6570\u636e\u51fa\u73b0\u7684\u6982\u7387"),(0,m.kt)("li",{parentName:"ol"},"\u53d6\u4f3c\u7136\u51fd\u6570\u7684\u5bf9\u6570\uff0c\u65b9\u4fbf\u8ba1\u7b97\u4e0e\u4f18\u5316"),(0,m.kt)("li",{parentName:"ol"},"\u6700\u5927\u5316\u4f3c\u7136\u51fd\u6570\uff0c\u6c42\u89e3\u53c2\u6570\u7684\u6700\u4f18\u503c"))),(0,m.kt)("li",{parentName:"ol"},(0,m.kt)("p",{parentName:"li"},(0,m.kt)("strong",{parentName:"p"},"\u7b80\u8ff0\u8d1d\u53f6\u65af\u5b9a\u7406\u3002")),(0,m.kt)("p",{parentName:"li"},"\u8d1d\u53f6\u65af\u5b9a\u7406\u63cf\u8ff0\u4e86\u5728\u7ed9\u5b9a\u89c2\u6d4b\u6570\u636e\u7684\u6761\u4ef6\u4e0b\uff0c\u8ba1\u7b97\u4e8b\u4ef6\u7684\u540e\u9a8c\u6982\u7387\u7684\u65b9\u6cd5\u3002"),(0,m.kt)("div",{parentName:"li",className:"math math-display"},(0,m.kt)("span",{parentName:"div",className:"katex-display"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"A"),(0,m.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"\u2223"),(0,m.kt)("mi",{parentName:"mrow"},"B"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("mfrac",{parentName:"mrow"},(0,m.kt)("mrow",{parentName:"mfrac"},(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"B"),(0,m.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"\u2223"),(0,m.kt)("mi",{parentName:"mrow"},"A"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"\u2217"),(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"A"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,m.kt)("mrow",{parentName:"mfrac"},(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"B"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")")))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"P(A|B) = \\frac{P(B|A) * P(A)}{P(B)}")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"P"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"A"),(0,m.kt)("span",{parentName:"span",className:"mord"},"\u2223"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05017em"}},"B"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"="),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"2.363em",verticalAlign:"-0.936em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mopen nulldelimiter"}),(0,m.kt)("span",{parentName:"span",className:"mfrac"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.427em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.314em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"P"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05017em"}},"B"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.23em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"frac-line",style:{borderBottomWidth:"0.04em"}})),(0,m.kt)("span",{parentName:"span",style:{top:"-3.677em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"P"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05017em"}},"B"),(0,m.kt)("span",{parentName:"span",className:"mord"},"\u2223"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"A"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"\u2217"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"P"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"A"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.936em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"mclose nulldelimiter"}))))))),(0,m.kt)("p",{parentName:"li"},"\u5176\u4e2d\uff1a"),(0,m.kt)("ul",{parentName:"li"},(0,m.kt)("li",{parentName:"ul"},(0,m.kt)("span",{parentName:"li",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"A"),(0,m.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"\u2223"),(0,m.kt)("mi",{parentName:"mrow"},"B"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"P(A|B)")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"P"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"A"),(0,m.kt)("span",{parentName:"span",className:"mord"},"\u2223"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05017em"}},"B"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"))))),"\u8868\u793a\u5728\u89c2\u6d4b\u5230\u4e8b\u4ef6 B \u53d1\u751f\u7684\u6761\u4ef6\u4e0b\uff0c\u4e8b\u4ef6 A \u53d1\u751f\u7684\u6982\u7387\uff0c\u79f0\u4e3a\u540e\u9a8c\u6982\u7387"),(0,m.kt)("li",{parentName:"ul"},(0,m.kt)("span",{parentName:"li",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"B"),(0,m.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"\u2223"),(0,m.kt)("mi",{parentName:"mrow"},"A"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"P(B|A)")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"P"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05017em"}},"B"),(0,m.kt)("span",{parentName:"span",className:"mord"},"\u2223"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"A"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"))))),"\u8868\u793a\u5728\u4e8b\u4ef6 A \u53d1\u751f\u7684\u6761\u4ef6\u4e0b\uff0c\u4e8b\u4ef6 B \u53d1\u751f\u7684\u6982\u7387\uff0c\u79f0\u4e3a\u4f3c\u7136\uff1b"),(0,m.kt)("li",{parentName:"ul"},(0,m.kt)("span",{parentName:"li",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"A"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"P(A)")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"P"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"A"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"))))),"\u548c",(0,m.kt)("span",{parentName:"li",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"B"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"P(B)")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"P"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05017em"}},"B"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"))))),"\u5206\u522b\u662f\u4e8b\u4ef6 A \u548c\u4e8b\u4ef6 B \u72ec\u7acb\u53d1\u751f\u7684\u5148\u9a8c\u6982\u7387\u3002")),(0,m.kt)("p",{parentName:"li"},"\u4f18\u70b9\uff1a\u5b83\u80fd\u591f\u5c06\u4e3b\u89c2\u5148\u9a8c\u77e5\u8bc6\u4e0e\u89c2\u6d4b\u6570\u636e\u76f8\u7ed3\u5408\uff0c\u901a\u8fc7\u4e0d\u65ad\u66f4\u65b0\u540e\u9a8c\u6982\u7387\u6765\u8fdb\u884c\u63a8\u65ad\u548c\u51b3\u7b56\u3002")),(0,m.kt)("li",{parentName:"ol"},(0,m.kt)("p",{parentName:"li"},(0,m.kt)("strong",{parentName:"p"},"P\u95ee\u9898\u3001NP\u95ee\u9898\u4ee5\u53caNP\u5b8c\u5168\u95ee\u9898")),(0,m.kt)("admonition",{parentName:"li",type:"tip"},(0,m.kt)("p",{parentName:"admonition"},"P stands for Polynomial"),(0,m.kt)("p",{parentName:"admonition"},"\u610f\u4e3a\u591a\u9879\u5f0f")),(0,m.kt)("p",{parentName:"li"},"P\u95ee\u9898\u662f\u53ef\u4ee5\u5728\u591a\u9879\u5f0f\u65f6\u95f4\u5185\u89e3\u51b3\u7684\u95ee\u9898"),(0,m.kt)("p",{parentName:"li"},"NP\u95ee\u9898\u662f\u53ef\u4ee5\u5728\u591a\u9879\u5f0f\u65f6\u95f4\u5185\u9a8c\u8bc1\u89e3\u7684\u6b63\u786e\u6027\u7684\u95ee\u9898"),(0,m.kt)("p",{parentName:"li"},"NP\u5b8c\u5168\u95ee\u9898\u662f\u4e00\u7c7b\u7279\u6b8a\u7684NP\u95ee\u9898\uff0c\u6ca1\u6709\u5df2\u77e5\u7684\u9ad8\u6548\u89e3\u51b3\u7b97\u6cd5\uff0c\u5e76\u4e14\u53ef\u4ee5\u5728\u591a\u9879\u5f0f\u65f6\u95f4\u5185\u5f52\u7ea6\u5230\u4efb\u4f55\u5176\u4ed6\u7684NP\u95ee\u9898"))))}k.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/en/assets/js/5b87b98d.095623b9.js b/en/assets/js/5b87b98d.095623b9.js new file mode 100644 index 000000000..c526858ef --- /dev/null +++ b/en/assets/js/5b87b98d.095623b9.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunknpy_notebook=self.webpackChunknpy_notebook||[]).push([[452],{3905:(e,t,r)=>{r.d(t,{Zo:()=>s,kt:()=>y});var n=r(7294);function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var l=n.createContext({}),p=function(e){var t=n.useContext(l),r=t;return e&&(r="function"==typeof e?e(t):i(i({},t),e)),r},s=function(e){var t=p(e.components);return n.createElement(l.Provider,{value:t},e.children)},u="mdxType",m={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},f=n.forwardRef((function(e,t){var r=e.components,o=e.mdxType,a=e.originalType,l=e.parentName,s=c(e,["components","mdxType","originalType","parentName"]),u=p(r),f=o,y=u["".concat(l,".").concat(f)]||u[f]||m[f]||a;return r?n.createElement(y,i(i({ref:t},s),{},{components:r})):n.createElement(y,i({ref:t},s))}));function y(e,t){var r=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var a=r.length,i=new Array(a);i[0]=f;var c={};for(var l in t)hasOwnProperty.call(t,l)&&(c[l]=t[l]);c.originalType=e,c[u]="string"==typeof e?e:o,i[1]=c;for(var p=2;p{r.r(t),r.d(t,{assets:()=>l,contentTitle:()=>i,default:()=>m,frontMatter:()=>a,metadata:()=>c,toc:()=>p});var n=r(7462),o=(r(7294),r(3905));const a={},i="\u544a\u793a\u680f",c={unversionedId:"Others/\u535a\u5ba2\u642d\u5efa/\u544a\u793a\u680f",id:"Others/\u535a\u5ba2\u642d\u5efa/\u544a\u793a\u680f",title:"\u544a\u793a\u680f",description:"1. \u544a\u793a\u680f\u7684\u542f\u7528",source:"@site/docs/Others/3-\u535a\u5ba2\u642d\u5efa/\u544a\u793a\u680f.md",sourceDirName:"Others/3-\u535a\u5ba2\u642d\u5efa",slug:"/Others/\u535a\u5ba2\u642d\u5efa/\u544a\u793a\u680f",permalink:"/en/docs/Others/\u535a\u5ba2\u642d\u5efa/\u544a\u793a\u680f",draft:!1,tags:[],version:"current",frontMatter:{},sidebar:"others",previous:{title:"\u6302\u8f7dWindows\u78c1\u76d8\u4e3a\u53ea\u8bfb\u6587\u4ef6",permalink:"/en/docs/Others/Linux/\u95ee\u9898\u89e3\u51b3/\u53cc\u7cfb\u7edf\u6302\u8f7dWindows\u78c1\u76d8\u4e3a\u53ea\u8bfb\u6587\u4ef6"}},l={},p=[],s={toc:p},u="wrapper";function m(e){let{components:t,...r}=e;return(0,o.kt)(u,(0,n.Z)({},s,r,{components:t,mdxType:"MDXLayout"}),(0,o.kt)("h1",{id:"\u544a\u793a\u680f"},"\u544a\u793a\u680f"),(0,o.kt)("ol",null,(0,o.kt)("li",{parentName:"ol"},(0,o.kt)("p",{parentName:"li"},"\u544a\u793a\u680f\u7684\u542f\u7528"),(0,o.kt)("p",{parentName:"li"},"\u5728docusaurus.config.js\u7684themeConfig\u4e2d\u52a0\u5165\u4ee5\u4e0b\u4ee3\u7801"),(0,o.kt)("pre",{parentName:"li"},(0,o.kt)("code",{parentName:"pre",className:"language-js"}," announcementBar: {\n id: 'announcementBar-3',\n content: 'Welcome to my notebook!',\n isCloseable: false,\n },\n"))),(0,o.kt)("li",{parentName:"ol"},(0,o.kt)("p",{parentName:"li"},"\u544a\u793a\u680f\u7684\u80cc\u666f\u4e2a\u6027\u5316"),(0,o.kt)("p",{parentName:"li"},"\u5728custom.css\u4e2d\u52a0\u5165\u4ee5\u4e0b\u4ee3\u7801"),(0,o.kt)("pre",{parentName:"li"},(0,o.kt)("code",{parentName:"pre",className:"language-css"},"div[class^='announcementBar_'] {\n background: repeating-linear-gradient(\n -35deg,\n var(--ifm-color-primary-lighter),\n var(--ifm-color-primary-lighter) 20px,\n var(--ifm-color-primary-lightest) 10px,\n var(--ifm-color-primary-lightest) 40px\n );\n font-weight: 700;\n}\n")))))}m.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/en/assets/js/6204ac06.8afb11e6.js b/en/assets/js/6204ac06.8afb11e6.js new file mode 100644 index 000000000..ea882daad --- /dev/null +++ b/en/assets/js/6204ac06.8afb11e6.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunknpy_notebook=self.webpackChunknpy_notebook||[]).push([[8614],{3905:(a,e,t)=>{t.d(e,{Zo:()=>i,kt:()=>h});var n=t(7294);function s(a,e,t){return e in a?Object.defineProperty(a,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):a[e]=t,a}function m(a,e){var t=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable}))),t.push.apply(t,n)}return t}function p(a){for(var e=1;e=0||(s[t]=a[t]);return s}(a,e);if(Object.getOwnPropertySymbols){var m=Object.getOwnPropertySymbols(a);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(a,t)&&(s[t]=a[t])}return s}var N=n.createContext({}),l=function(a){var e=n.useContext(N),t=e;return a&&(t="function"==typeof a?a(e):p(p({},e),a)),t},i=function(a){var e=l(a.components);return n.createElement(N.Provider,{value:e},a.children)},c="mdxType",k={inlineCode:"code",wrapper:function(a){var e=a.children;return n.createElement(n.Fragment,{},e)}},o=n.forwardRef((function(a,e){var t=a.components,s=a.mdxType,m=a.originalType,N=a.parentName,i=r(a,["components","mdxType","originalType","parentName"]),c=l(t),o=s,h=c["".concat(N,".").concat(o)]||c[o]||k[o]||m;return t?n.createElement(h,p(p({ref:e},i),{},{components:t})):n.createElement(h,p({ref:e},i))}));function h(a,e){var t=arguments,s=e&&e.mdxType;if("string"==typeof a||s){var m=t.length,p=new Array(m);p[0]=o;var r={};for(var N in e)hasOwnProperty.call(e,N)&&(r[N]=e[N]);r.originalType=a,r[c]="string"==typeof a?a:s,p[1]=r;for(var l=2;l{t.r(e),t.d(e,{assets:()=>N,contentTitle:()=>p,default:()=>k,frontMatter:()=>m,metadata:()=>r,toc:()=>l});var n=t(7462),s=(t(7294),t(3905));const m={},p="\u6df1\u5ea6\u53ef\u5206\u79bb\u5377\u79ef",r={unversionedId:"Deep-Learning/\u57fa\u7840\u77e5\u8bc6/\u6df1\u5ea6\u53ef\u5206\u79bb\u5377\u79ef",id:"Deep-Learning/\u57fa\u7840\u77e5\u8bc6/\u6df1\u5ea6\u53ef\u5206\u79bb\u5377\u79ef",title:"\u6df1\u5ea6\u53ef\u5206\u79bb\u5377\u79ef",description:"\u8f93\u5165\uff1ashape\u4e3a$[5, 5, 3]$\u7684\u56fe\u50cf",source:"@site/docs/Deep-Learning/3-\u57fa\u7840\u77e5\u8bc6/\u6df1\u5ea6\u53ef\u5206\u79bb\u5377\u79ef.md",sourceDirName:"Deep-Learning/3-\u57fa\u7840\u77e5\u8bc6",slug:"/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/\u6df1\u5ea6\u53ef\u5206\u79bb\u5377\u79ef",permalink:"/en/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/\u6df1\u5ea6\u53ef\u5206\u79bb\u5377\u79ef",draft:!1,tags:[],version:"current",frontMatter:{},sidebar:"deep_learning",previous:{title:"\u6b63\u5219\u5316\u4e0e\u6743\u91cd\u8870\u9000",permalink:"/en/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/\u6b63\u5219\u5316\u4e0e\u6743\u91cd\u8870\u9000"},next:{title:"\u6fc0\u6d3b\u51fd\u6570\u4e0eLoss\u7684\u68af\u5ea6",permalink:"/en/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/\u6fc0\u6d3b\u51fd\u6570\u4e0eLoss\u7684\u68af\u5ea6"}},N={},l=[{value:"\u5e38\u89c4\u5377\u79ef",id:"\u5e38\u89c4\u5377\u79ef",level:2},{value:"\u6df1\u5ea6\u53ef\u5206\u79bb\u5377\u79ef",id:"\u6df1\u5ea6\u53ef\u5206\u79bb\u5377\u79ef-1",level:2},{value:"\uff081\uff09\u9010\u901a\u9053\u5377\u79ef-Depthwise Convolution",id:"1\u9010\u901a\u9053\u5377\u79ef-depthwise-convolution",level:3},{value:"\uff082\uff09\u9010\u70b9\u5377\u79ef-Pointwise Convolution",id:"2\u9010\u70b9\u5377\u79ef-pointwise-convolution",level:3}],i={toc:l},c="wrapper";function k(a){let{components:e,...t}=a;return(0,s.kt)(c,(0,n.Z)({},i,t,{components:e,mdxType:"MDXLayout"}),(0,s.kt)("h1",{id:"\u6df1\u5ea6\u53ef\u5206\u79bb\u5377\u79ef"},"\u6df1\u5ea6\u53ef\u5206\u79bb\u5377\u79ef"),(0,s.kt)("admonition",{type:"tip"},(0,s.kt)("p",{parentName:"admonition"},"\u8f93\u5165\uff1ashape\u4e3a",(0,s.kt)("span",{parentName:"p",className:"math math-inline"},(0,s.kt)("span",{parentName:"span",className:"katex"},(0,s.kt)("span",{parentName:"span",className:"katex-mathml"},(0,s.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,s.kt)("semantics",{parentName:"math"},(0,s.kt)("mrow",{parentName:"semantics"},(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},"["),(0,s.kt)("mn",{parentName:"mrow"},"5"),(0,s.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,s.kt)("mn",{parentName:"mrow"},"5"),(0,s.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,s.kt)("mn",{parentName:"mrow"},"3"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},"]")),(0,s.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"[5, 5, 3]")))),(0,s.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,s.kt)("span",{parentName:"span",className:"mopen"},"["),(0,s.kt)("span",{parentName:"span",className:"mord"},"5"),(0,s.kt)("span",{parentName:"span",className:"mpunct"},","),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,s.kt)("span",{parentName:"span",className:"mord"},"5"),(0,s.kt)("span",{parentName:"span",className:"mpunct"},","),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,s.kt)("span",{parentName:"span",className:"mord"},"3"),(0,s.kt)("span",{parentName:"span",className:"mclose"},"]"))))),"\u7684\u56fe\u50cf\n\u8f93\u51fa\u8981\u6c42\uff1ashape\u4e3a",(0,s.kt)("span",{parentName:"p",className:"math math-inline"},(0,s.kt)("span",{parentName:"span",className:"katex"},(0,s.kt)("span",{parentName:"span",className:"katex-mathml"},(0,s.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,s.kt)("semantics",{parentName:"math"},(0,s.kt)("mrow",{parentName:"semantics"},(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},"["),(0,s.kt)("mn",{parentName:"mrow"},"5"),(0,s.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,s.kt)("mn",{parentName:"mrow"},"5"),(0,s.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,s.kt)("mn",{parentName:"mrow"},"4"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},"]")),(0,s.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"[5, 5, 4]")))),(0,s.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,s.kt)("span",{parentName:"span",className:"mopen"},"["),(0,s.kt)("span",{parentName:"span",className:"mord"},"5"),(0,s.kt)("span",{parentName:"span",className:"mpunct"},","),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,s.kt)("span",{parentName:"span",className:"mord"},"5"),(0,s.kt)("span",{parentName:"span",className:"mpunct"},","),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,s.kt)("span",{parentName:"span",className:"mord"},"4"),(0,s.kt)("span",{parentName:"span",className:"mclose"},"]"))))),"\u7684feature map\n\u4f7f\u7528",(0,s.kt)("span",{parentName:"p",className:"math math-inline"},(0,s.kt)("span",{parentName:"span",className:"katex"},(0,s.kt)("span",{parentName:"span",className:"katex-mathml"},(0,s.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,s.kt)("semantics",{parentName:"math"},(0,s.kt)("mrow",{parentName:"semantics"},(0,s.kt)("mn",{parentName:"mrow"},"3"),(0,s.kt)("mo",{parentName:"mrow"},"\xd7"),(0,s.kt)("mn",{parentName:"mrow"},"3")),(0,s.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"3 \\times 3")))),(0,s.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"0.7278em",verticalAlign:"-0.0833em"}}),(0,s.kt)("span",{parentName:"span",className:"mord"},"3"),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,s.kt)("span",{parentName:"span",className:"mbin"},"\xd7"),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}})),(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6444em"}}),(0,s.kt)("span",{parentName:"span",className:"mord"},"3"))))),"\u5377\u79ef\u6838\uff0c",(0,s.kt)("span",{parentName:"p",className:"math math-inline"},(0,s.kt)("span",{parentName:"span",className:"katex"},(0,s.kt)("span",{parentName:"span",className:"katex-mathml"},(0,s.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,s.kt)("semantics",{parentName:"math"},(0,s.kt)("mrow",{parentName:"semantics"},(0,s.kt)("mi",{parentName:"mrow"},"p"),(0,s.kt)("mi",{parentName:"mrow"},"a"),(0,s.kt)("mi",{parentName:"mrow"},"d"),(0,s.kt)("mi",{parentName:"mrow"},"d"),(0,s.kt)("mi",{parentName:"mrow"},"i"),(0,s.kt)("mi",{parentName:"mrow"},"n"),(0,s.kt)("mi",{parentName:"mrow"},"g"),(0,s.kt)("mo",{parentName:"mrow"},"="),(0,s.kt)("mn",{parentName:"mrow"},"1"),(0,s.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,s.kt)("mi",{parentName:"mrow"},"s"),(0,s.kt)("mi",{parentName:"mrow"},"t"),(0,s.kt)("mi",{parentName:"mrow"},"r"),(0,s.kt)("mi",{parentName:"mrow"},"i"),(0,s.kt)("mi",{parentName:"mrow"},"d"),(0,s.kt)("mi",{parentName:"mrow"},"e"),(0,s.kt)("mo",{parentName:"mrow"},"="),(0,s.kt)("mn",{parentName:"mrow"},"1")),(0,s.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"padding=1, stride=1")))),(0,s.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"0.8889em",verticalAlign:"-0.1944em"}}),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal"},"p"),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal"},"a"),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal"},"dd"),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal"},"in"),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"g"),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,s.kt)("span",{parentName:"span",className:"mrel"},"="),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"0.8889em",verticalAlign:"-0.1944em"}}),(0,s.kt)("span",{parentName:"span",className:"mord"},"1"),(0,s.kt)("span",{parentName:"span",className:"mpunct"},","),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal"},"s"),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal"},"t"),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02778em"}},"r"),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal"},"i"),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal"},"d"),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal"},"e"),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,s.kt)("span",{parentName:"span",className:"mrel"},"="),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6444em"}}),(0,s.kt)("span",{parentName:"span",className:"mord"},"1"))))))),(0,s.kt)("h2",{id:"\u5e38\u89c4\u5377\u79ef"},"\u5e38\u89c4\u5377\u79ef"),(0,s.kt)("p",null,"\u5377\u79ef\u5c42\u51714\u4e2afilter\uff08\u8f93\u51fa\u901a\u9053\u4e3a4\uff09\uff0c\u6bcf\u4e2afilter3\u4e2akernel\uff08\u8f93\u5165\u901a\u9053\u4e3a3\uff09"),(0,s.kt)("p",null,"\u5176\u4e2d\uff0c\u6bcf\u4e2afilter\u90fd\u5bf9\u8f93\u5165\u56fe\u50cf\u7684\u6240\u6709\u901a\u9053\u5b8c\u6210\u4e00\u6b21\u5377\u79ef\uff0c",(0,s.kt)("strong",{parentName:"p"},"filter\u4e2d\u7684kernel\u5206\u522b\u5bf9\u8f93\u5165\u7684\u901a\u9053\u8fdb\u884c\u5177\u4f53\u5377\u79ef\u8fd0\u7b97")),(0,s.kt)("p",null,(0,s.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/windows_typora/v2-617b082492f5c1c31bde1c6e2d994bc0_r.jpg",alt:"img"})),(0,s.kt)("p",null,"\u4e0d\u8003\u8651\u5377\u79ef\u504f\u7f6e\uff0c\u53c2\u6570\u91cf\u4e3a"),(0,s.kt)("div",{className:"math math-display"},(0,s.kt)("span",{parentName:"div",className:"katex-display"},(0,s.kt)("span",{parentName:"span",className:"katex"},(0,s.kt)("span",{parentName:"span",className:"katex-mathml"},(0,s.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,s.kt)("semantics",{parentName:"math"},(0,s.kt)("mtable",{parentName:"semantics",width:"100%"},(0,s.kt)("mtr",{parentName:"mtable"},(0,s.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,s.kt)("mtd",{parentName:"mtr"},(0,s.kt)("mrow",{parentName:"mtd"},(0,s.kt)("mn",{parentName:"mrow"},"3"),(0,s.kt)("mo",{parentName:"mrow"},"\xd7"),(0,s.kt)("mn",{parentName:"mrow"},"3"),(0,s.kt)("mo",{parentName:"mrow"},"\xd7"),(0,s.kt)("mn",{parentName:"mrow"},"3"),(0,s.kt)("mo",{parentName:"mrow"},"\xd7"),(0,s.kt)("mn",{parentName:"mrow"},"4"),(0,s.kt)("mo",{parentName:"mrow"},"="),(0,s.kt)("mn",{parentName:"mrow"},"108"))),(0,s.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,s.kt)("mtd",{parentName:"mtr"},(0,s.kt)("mtext",{parentName:"mtd"},"(1)")))),(0,s.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"3 \\times 3 \\times 3 \\times 4 = 108 \\tag{1}")))),(0,s.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"0.7278em",verticalAlign:"-0.0833em"}}),(0,s.kt)("span",{parentName:"span",className:"mord"},"3"),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,s.kt)("span",{parentName:"span",className:"mbin"},"\xd7"),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}})),(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"0.7278em",verticalAlign:"-0.0833em"}}),(0,s.kt)("span",{parentName:"span",className:"mord"},"3"),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,s.kt)("span",{parentName:"span",className:"mbin"},"\xd7"),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}})),(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"0.7278em",verticalAlign:"-0.0833em"}}),(0,s.kt)("span",{parentName:"span",className:"mord"},"3"),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,s.kt)("span",{parentName:"span",className:"mbin"},"\xd7"),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}})),(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6444em"}}),(0,s.kt)("span",{parentName:"span",className:"mord"},"4"),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,s.kt)("span",{parentName:"span",className:"mrel"},"="),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6444em"}}),(0,s.kt)("span",{parentName:"span",className:"mord"},"108")),(0,s.kt)("span",{parentName:"span",className:"tag"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,s.kt)("span",{parentName:"span",className:"mord text"},(0,s.kt)("span",{parentName:"span",className:"mord"},"("),(0,s.kt)("span",{parentName:"span",className:"mord"},(0,s.kt)("span",{parentName:"span",className:"mord"},"1")),(0,s.kt)("span",{parentName:"span",className:"mord"},")"))))))),(0,s.kt)("h2",{id:"\u6df1\u5ea6\u53ef\u5206\u79bb\u5377\u79ef-1"},"\u6df1\u5ea6\u53ef\u5206\u79bb\u5377\u79ef"),(0,s.kt)("h3",{id:"1\u9010\u901a\u9053\u5377\u79ef-depthwise-convolution"},"\uff081\uff09\u9010\u901a\u9053\u5377\u79ef-Depthwise Convolution"),(0,s.kt)("p",null,(0,s.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/windows_typora/v2-a20824492e3e8778a959ca3731dfeea3_r.jpg",alt:"img"})),(0,s.kt)("p",null,"\u4f7f\u75281\u4e2afilter\uff0c\u5176\u4e2d\u5305\u542b3\u4e2akernel\u3002\u6bcf\u4e2akernel\u5206\u522b\u5bf9\u8f93\u5165\u56fe\u50cf\u76843\u4e2a\u901a\u9053\u5355\u72ec\u8fdb\u884c\u5377\u79ef\uff0c\u53c2\u6570\u91cf\u4e3a"),(0,s.kt)("div",{className:"math math-display"},(0,s.kt)("span",{parentName:"div",className:"katex-display"},(0,s.kt)("span",{parentName:"span",className:"katex"},(0,s.kt)("span",{parentName:"span",className:"katex-mathml"},(0,s.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,s.kt)("semantics",{parentName:"math"},(0,s.kt)("mtable",{parentName:"semantics",width:"100%"},(0,s.kt)("mtr",{parentName:"mtable"},(0,s.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,s.kt)("mtd",{parentName:"mtr"},(0,s.kt)("mrow",{parentName:"mtd"},(0,s.kt)("mn",{parentName:"mrow"},"3"),(0,s.kt)("mo",{parentName:"mrow"},"\xd7"),(0,s.kt)("mn",{parentName:"mrow"},"3"),(0,s.kt)("mo",{parentName:"mrow"},"\xd7"),(0,s.kt)("mo",{parentName:"mrow"},"\xd7"),(0,s.kt)("mn",{parentName:"mrow"},"3"),(0,s.kt)("mo",{parentName:"mrow"},"="),(0,s.kt)("mn",{parentName:"mrow"},"27"))),(0,s.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,s.kt)("mtd",{parentName:"mtr"},(0,s.kt)("mtext",{parentName:"mtd"},"(2)")))),(0,s.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"3 \\times 3 \\times \\times 3 = 27 \\tag{2}")))),(0,s.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"0.7278em",verticalAlign:"-0.0833em"}}),(0,s.kt)("span",{parentName:"span",className:"mord"},"3"),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,s.kt)("span",{parentName:"span",className:"mbin"},"\xd7"),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}})),(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"0.7278em",verticalAlign:"-0.0833em"}}),(0,s.kt)("span",{parentName:"span",className:"mord"},"3"),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,s.kt)("span",{parentName:"span",className:"mbin"},"\xd7"),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}})),(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"0.7278em",verticalAlign:"-0.0833em"}}),(0,s.kt)("span",{parentName:"span",className:"mord"},"\xd7"),(0,s.kt)("span",{parentName:"span",className:"mord"},"3"),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,s.kt)("span",{parentName:"span",className:"mrel"},"="),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6444em"}}),(0,s.kt)("span",{parentName:"span",className:"mord"},"27")),(0,s.kt)("span",{parentName:"span",className:"tag"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,s.kt)("span",{parentName:"span",className:"mord text"},(0,s.kt)("span",{parentName:"span",className:"mord"},"("),(0,s.kt)("span",{parentName:"span",className:"mord"},(0,s.kt)("span",{parentName:"span",className:"mord"},"2")),(0,s.kt)("span",{parentName:"span",className:"mord"},")"))))))),(0,s.kt)("p",null,"\u4ee3\u7801\u5b9e\u73b0\u4e5f\u8f83\u4e3a\u7b80\u5355\uff0c\u53ea\u9700\u4ee4Conv2d\u7684\u8f93\u51fa\u901a\u9053\u4e0e\u8f93\u5165\u901a\u9053\u76f8\u540c\u5373\u53ef"),(0,s.kt)("h3",{id:"2\u9010\u70b9\u5377\u79ef-pointwise-convolution"},"\uff082\uff09\u9010\u70b9\u5377\u79ef-Pointwise Convolution"),(0,s.kt)("p",null,(0,s.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/windows_typora/v2-2cdae9b3ad2f1d07e2c738331dac6d8b_r.jpg",alt:"img"})),(0,s.kt)("p",null,"\u4f7f\u7528",(0,s.kt)("span",{parentName:"p",className:"math math-inline"},(0,s.kt)("span",{parentName:"span",className:"katex"},(0,s.kt)("span",{parentName:"span",className:"katex-mathml"},(0,s.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,s.kt)("semantics",{parentName:"math"},(0,s.kt)("mrow",{parentName:"semantics"},(0,s.kt)("mn",{parentName:"mrow"},"1"),(0,s.kt)("mo",{parentName:"mrow"},"\xd7"),(0,s.kt)("mn",{parentName:"mrow"},"1")),(0,s.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"1 \\times 1")))),(0,s.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"0.7278em",verticalAlign:"-0.0833em"}}),(0,s.kt)("span",{parentName:"span",className:"mord"},"1"),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,s.kt)("span",{parentName:"span",className:"mbin"},"\xd7"),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}})),(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6444em"}}),(0,s.kt)("span",{parentName:"span",className:"mord"},"1"))))),"\u5377\u79ef\u6838\uff0c\u6bcf\u4e2afilter\u5bf9\u4e0a\u4e00\u6b65\u7684feature map\u5728\u6df1\u5ea6\u65b9\u5411\u8fdb\u884c\u4e00\u6b21\u52a0\u6743\u7ec4\u5408\uff0c\u53c2\u6570\u91cf\u4e3a"),(0,s.kt)("div",{className:"math math-display"},(0,s.kt)("span",{parentName:"div",className:"katex-display"},(0,s.kt)("span",{parentName:"span",className:"katex"},(0,s.kt)("span",{parentName:"span",className:"katex-mathml"},(0,s.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,s.kt)("semantics",{parentName:"math"},(0,s.kt)("mtable",{parentName:"semantics",width:"100%"},(0,s.kt)("mtr",{parentName:"mtable"},(0,s.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,s.kt)("mtd",{parentName:"mtr"},(0,s.kt)("mrow",{parentName:"mtd"},(0,s.kt)("mn",{parentName:"mrow"},"1"),(0,s.kt)("mo",{parentName:"mrow"},"\xd7"),(0,s.kt)("mn",{parentName:"mrow"},"1"),(0,s.kt)("mo",{parentName:"mrow"},"\xd7"),(0,s.kt)("mn",{parentName:"mrow"},"3"),(0,s.kt)("mo",{parentName:"mrow"},"\xd7"),(0,s.kt)("mn",{parentName:"mrow"},"4"),(0,s.kt)("mo",{parentName:"mrow"},"="),(0,s.kt)("mn",{parentName:"mrow"},"12"))),(0,s.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,s.kt)("mtd",{parentName:"mtr"},(0,s.kt)("mtext",{parentName:"mtd"},"(3)")))),(0,s.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"1 \\times 1 \\times 3 \\times 4 = 12 \\tag{3}")))),(0,s.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"0.7278em",verticalAlign:"-0.0833em"}}),(0,s.kt)("span",{parentName:"span",className:"mord"},"1"),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,s.kt)("span",{parentName:"span",className:"mbin"},"\xd7"),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}})),(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"0.7278em",verticalAlign:"-0.0833em"}}),(0,s.kt)("span",{parentName:"span",className:"mord"},"1"),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,s.kt)("span",{parentName:"span",className:"mbin"},"\xd7"),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}})),(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"0.7278em",verticalAlign:"-0.0833em"}}),(0,s.kt)("span",{parentName:"span",className:"mord"},"3"),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,s.kt)("span",{parentName:"span",className:"mbin"},"\xd7"),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}})),(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6444em"}}),(0,s.kt)("span",{parentName:"span",className:"mord"},"4"),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,s.kt)("span",{parentName:"span",className:"mrel"},"="),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6444em"}}),(0,s.kt)("span",{parentName:"span",className:"mord"},"12")),(0,s.kt)("span",{parentName:"span",className:"tag"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,s.kt)("span",{parentName:"span",className:"mord text"},(0,s.kt)("span",{parentName:"span",className:"mord"},"("),(0,s.kt)("span",{parentName:"span",className:"mord"},(0,s.kt)("span",{parentName:"span",className:"mord"},"3")),(0,s.kt)("span",{parentName:"span",className:"mord"},")"))))))),(0,s.kt)("admonition",{type:"tip"},(0,s.kt)("p",{parentName:"admonition"},"\u56fe\u7247\u6e90\u81ea",(0,s.kt)("a",{parentName:"p",href:"https://zhuanlan.zhihu.com/p/92134485"},"\u77e5\u4e4e"))))}k.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/en/assets/js/67605ec9.4bb01388.js b/en/assets/js/67605ec9.4bb01388.js new file mode 100644 index 000000000..a688509c0 --- /dev/null +++ b/en/assets/js/67605ec9.4bb01388.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunknpy_notebook=self.webpackChunknpy_notebook||[]).push([[3311],{3905:(a,e,t)=>{t.d(e,{Zo:()=>N,kt:()=>g});var n=t(7294);function s(a,e,t){return e in a?Object.defineProperty(a,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):a[e]=t,a}function m(a,e){var t=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable}))),t.push.apply(t,n)}return t}function p(a){for(var e=1;e=0||(s[t]=a[t]);return s}(a,e);if(Object.getOwnPropertySymbols){var m=Object.getOwnPropertySymbols(a);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(a,t)&&(s[t]=a[t])}return s}var i=n.createContext({}),l=function(a){var e=n.useContext(i),t=e;return a&&(t="function"==typeof a?a(e):p(p({},e),a)),t},N=function(a){var e=l(a.components);return n.createElement(i.Provider,{value:e},a.children)},o="mdxType",c={inlineCode:"code",wrapper:function(a){var e=a.children;return n.createElement(n.Fragment,{},e)}},k=n.forwardRef((function(a,e){var t=a.components,s=a.mdxType,m=a.originalType,i=a.parentName,N=r(a,["components","mdxType","originalType","parentName"]),o=l(t),k=s,g=o["".concat(i,".").concat(k)]||o[k]||c[k]||m;return t?n.createElement(g,p(p({ref:e},N),{},{components:t})):n.createElement(g,p({ref:e},N))}));function g(a,e){var t=arguments,s=e&&e.mdxType;if("string"==typeof a||s){var m=t.length,p=new Array(m);p[0]=k;var r={};for(var i in e)hasOwnProperty.call(e,i)&&(r[i]=e[i]);r.originalType=a,r[o]="string"==typeof a?a:s,p[1]=r;for(var l=2;l{t.r(e),t.d(e,{assets:()=>i,contentTitle:()=>p,default:()=>c,frontMatter:()=>m,metadata:()=>r,toc:()=>l});var n=t(7462),s=(t(7294),t(3905));const m={},p="\u56fe\u50cf\u751f\u6210\u6a21\u578b",r={unversionedId:"Deep-Learning/\u5927\u6a21\u578b/Image-Generation-Models",id:"Deep-Learning/\u5927\u6a21\u578b/Image-Generation-Models",title:"\u56fe\u50cf\u751f\u6210\u6a21\u578b",description:"\u56de\u987e\u6587\u5b57\u751f\u6210\u7684\u4e24\u79cd\u65b9\u6cd5",source:"@site/docs/Deep-Learning/5-\u5927\u6a21\u578b/4-Image-Generation-Models.md",sourceDirName:"Deep-Learning/5-\u5927\u6a21\u578b",slug:"/Deep-Learning/\u5927\u6a21\u578b/Image-Generation-Models",permalink:"/en/docs/Deep-Learning/\u5927\u6a21\u578b/Image-Generation-Models",draft:!1,tags:[],version:"current",sidebarPosition:4,frontMatter:{},sidebar:"deep_learning",previous:{title:"\u81ea\u76d1\u7763\u5b66\u4e60\uff08Self-Supervised Learning\uff09",permalink:"/en/docs/Deep-Learning/\u5927\u6a21\u578b/Self-Supervised-Learning"},next:{title:"\u751f\u6210\u5f0f\u5bf9\u6297\u7f51\u7edc\uff08GAN\uff09",permalink:"/en/docs/Deep-Learning/\u5927\u6a21\u578b/GAN"}},i={},l=[{value:"\u56de\u987e\u6587\u5b57\u751f\u6210\u7684\u4e24\u79cd\u65b9\u6cd5",id:"\u56de\u987e\u6587\u5b57\u751f\u6210\u7684\u4e24\u79cd\u65b9\u6cd5",level:2},{value:"\u81ea\u56de\u5f52\u65b9\u6cd5\uff08AR\uff09",id:"\u81ea\u56de\u5f52\u65b9\u6cd5ar",level:3},{value:"\u975e\u81ea\u56de\u5f52\u65b9\u6cd5\uff08NAR\uff09",id:"\u975e\u81ea\u56de\u5f52\u65b9\u6cd5nar",level:3},{value:"\u76ee\u524d\u56fe\u50cf\u751f\u6210\u6a21\u578b\u7684\u5171\u540c\u70b9",id:"\u76ee\u524d\u56fe\u50cf\u751f\u6210\u6a21\u578b\u7684\u5171\u540c\u70b9",level:3},{value:"\u751f\u6210\u6a21\u578b\u7684\u5171\u540c\u7ed3\u6784",id:"\u751f\u6210\u6a21\u578b\u7684\u5171\u540c\u7ed3\u6784",level:2},{value:"\u901a\u7528\u6846\u67b6\u6982\u89c8",id:"\u901a\u7528\u6846\u67b6\u6982\u89c8",level:3},{value:"Benchmark",id:"benchmark",level:3},{value:"FID\uff08Fr\xe9chet Inception Distance\uff09",id:"fidfr\xe9chet-inception-distance",level:4},{value:"CLIP Score",id:"clip-score",level:4},{value:"\u901a\u7528\u6846\u67b6\u89e3\u6790",id:"\u901a\u7528\u6846\u67b6\u89e3\u6790",level:3},{value:"Generation Model",id:"generation-model",level:4},{value:"\u4e2d\u95f4\u4ea7\u7269\u662f\u538b\u7f29\u56fe\u50cf",id:"\u4e2d\u95f4\u4ea7\u7269\u662f\u538b\u7f29\u56fe\u50cf",level:5},{value:"\u4e2d\u95f4\u4ea7\u7269\u662fLatent Representation",id:"\u4e2d\u95f4\u4ea7\u7269\u662flatent-representation",level:5},{value:"Decoder",id:"decoder",level:4},{value:"\u4e2d\u95f4\u4ea7\u7269\u662f\u538b\u7f29\u56fe\u50cf",id:"\u4e2d\u95f4\u4ea7\u7269\u662f\u538b\u7f29\u56fe\u50cf-1",level:5},{value:"\u4e2d\u95f4\u4ea7\u7269\u662fLatent Representation",id:"\u4e2d\u95f4\u4ea7\u7269\u662flatent-representation-1",level:5},{value:"\u5e38\u89c1\u56fe\u50cf\u751f\u6210\u6a21\u578b\u901f\u89c8",id:"\u5e38\u89c1\u56fe\u50cf\u751f\u6210\u6a21\u578b\u901f\u89c8",level:2},{value:"\u53d8\u5206\u81ea\u7f16\u7801\u5668\uff08VAE\uff09",id:"\u53d8\u5206\u81ea\u7f16\u7801\u5668vae",level:3},{value:"\u57fa\u4e8e\u6d41\u7684\u751f\u6210\u6a21\u578b\uff08Flow-Based Generative Model\uff09",id:"\u57fa\u4e8e\u6d41\u7684\u751f\u6210\u6a21\u578bflow-based-generative-model",level:3},{value:"\u751f\u6210\u5bf9\u6297\u7f51\u7edc\uff08GAN\uff09",id:"\u751f\u6210\u5bf9\u6297\u7f51\u7edcgan",level:3},{value:"\u6269\u6563\u6a21\u578b\uff08Diffusion Model\uff09",id:"\u6269\u6563\u6a21\u578bdiffusion-model",level:3}],N={toc:l},o="wrapper";function c(a){let{components:e,...t}=a;return(0,s.kt)(o,(0,n.Z)({},N,t,{components:e,mdxType:"MDXLayout"}),(0,s.kt)("h1",{id:"\u56fe\u50cf\u751f\u6210\u6a21\u578b"},"\u56fe\u50cf\u751f\u6210\u6a21\u578b"),(0,s.kt)("h2",{id:"\u56de\u987e\u6587\u5b57\u751f\u6210\u7684\u4e24\u79cd\u65b9\u6cd5"},"\u56de\u987e\u6587\u5b57\u751f\u6210\u7684\u4e24\u79cd\u65b9\u6cd5"),(0,s.kt)("p",null,"\u5728\u6587\u5b57\u751f\u6210\u6a21\u578b\u4e2d\u6839\u636e\u6a21\u578b\u7684\u8f93\u5165\u662f\u5426\u4e0e\u524d\u4e00\u65f6\u523b\u7684\u8f93\u51fa\u6709\u5173\u53ef\u4ee5\u5206\u4e3a\u81ea\u56de\u5f52AR\u6a21\u578b\u4e0e\u975e\u81ea\u56de\u5f52NAR\u6a21\u578b\u4e24\u79cd\uff0c\u8fd9\u4e24\u79cd\u751f\u6210\u65b9\u5f0f\u7684\u5229\u4e0e\u5f0a\u5728\u56fe\u50cf\u751f\u6210\u4e2d\u4ecd\u7136\u5b58\u5728\u3002"),(0,s.kt)("h3",{id:"\u81ea\u56de\u5f52\u65b9\u6cd5ar"},"\u81ea\u56de\u5f52\u65b9\u6cd5\uff08AR\uff09"),(0,s.kt)("p",null,"Transformer-based\u7684\u6587\u5b57\u751f\u6210\u6a21\u578b\u6709\u5f88\u591a\uff0c\u5982GPT\u6a21\u578b\uff0c\u5927\u591a\u4f7f\u7528\u81ea\u56de\u5f52\uff08Autoregressive, abbr. AR\uff09\u7684\u65b9\u6cd5\u9010token\u751f\u6210\u3002"),(0,s.kt)("admonition",{title:"\u4ec0\u4e48\u662fARM",type:"tip"},(0,s.kt)("p",{parentName:"admonition"},"ARM\uff08Autoregressive Model\uff0c\u81ea\u56de\u5f52\u6a21\u578b\uff09\u662f\u4e00\u7c7b\u7528\u4e8e\u5efa\u6a21\u65f6\u95f4\u5e8f\u5217\u6570\u636e\u7684\u7edf\u8ba1\u6a21\u578b\uff0c\u5176\u4e2d\u5f53\u524d\u65f6\u523b\u7684\u89c2\u6d4b\u503c\u88ab\u8ba4\u4e3a\u662f\u8fc7\u53bb\u65f6\u523b\u89c2\u6d4b\u503c\u7684\u7ebf\u6027\u7ec4\u5408\uff0c\u52a0\u4e0a\u4e00\u4e2a\u968f\u673a\u8bef\u5dee\u9879\u3002\u8fd9\u7c7b\u6a21\u578b\u7684\u6838\u5fc3\u601d\u60f3\u662f\uff0c\u5f53\u524d\u65f6\u523b\u7684\u6570\u636e\u4f9d\u8d56\u4e8e\u5148\u524d\u65f6\u523b\u7684\u6570\u636e\u3002")),(0,s.kt)("p",null,(0,s.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_imagesimage-20231125212727371.png",alt:"image-20231125212727371"})),(0,s.kt)("p",null,"\u82e5\u628a\u6587\u5b57\u751f\u6210\u7684AR\u65b9\u6cd5\u5bf9\u5e94\u5230\u56fe\u50cf\u751f\u6210\u4e2d\u7684\u4f7f\u7528\uff0c\u5373\u4e00\u4e2a\u4e00\u4e2a\u50cf\u7d20\u751f\u6210\u56fe\u50cf\u3002\u7531\u4e8e\u5f53\u524d\u5bf9\u9ad8\u6e05\u56fe\u50cf\u50cf\u7d20\u7684\u9700\u6c42\u8d8a\u6765\u8d8a\u9ad8\uff0c\u81ea\u56de\u5f52\u7684\u751f\u6210\u65b9\u5f0f\u5bfc\u81f4\u901f\u5ea6\u975e\u5e38\u7f13\u6162\uff0c\u4f46\u4f18\u70b9\u662f\u540e\u9762\u751f\u6210\u7684\u6bcf\u4e00\u4e2a\u50cf\u7d20\u90fd\u8003\u8651\u4e86\u4e4b\u524d\u7684\u6240\u6709\u50cf\u7d20\uff0c\u4ece\u800c\u4f7f\u751f\u6210\u7684\u56fe\u50cf\u66f4\u6e05\u6670\u3001\u66f4\u7ec6\u817b\u3001\u66f4\u52a0\u7b26\u5408\u9884\u671f\u3002"),(0,s.kt)("h3",{id:"\u975e\u81ea\u56de\u5f52\u65b9\u6cd5nar"},"\u975e\u81ea\u56de\u5f52\u65b9\u6cd5\uff08NAR\uff09"),(0,s.kt)("p",null,"\u82e5\u4f7f\u7528NAR\u975e\u81ea\u56de\u5f52\u7684\u65b9\u6cd5\u4e00\u6b21\u751f\u6210\u6240\u6709\u50cf\u7d20\uff0c\u5404\u50cf\u7d20\u5728\u751f\u6210\u65f6\u65e0\u6cd5\u8003\u8651\u4e4b\u95f4\u7684\u8bed\u4e49\u4fe1\u606f\uff0c\u751f\u6210\u7684\u56fe\u50cf\u8d28\u91cf\u666e\u904d\u4f4e\u4e8e\u81ea\u56de\u5f52\u65b9\u6cd5\u751f\u6210\u7684\u56fe\u50cf\u3002"),(0,s.kt)("p",null,(0,s.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_imagesimage-20231127103421435.png",alt:"image-20231127103421435"})),(0,s.kt)("h3",{id:"\u76ee\u524d\u56fe\u50cf\u751f\u6210\u6a21\u578b\u7684\u5171\u540c\u70b9"},"\u76ee\u524d\u56fe\u50cf\u751f\u6210\u6a21\u578b\u7684\u5171\u540c\u70b9"),(0,s.kt)("p",null,"VAE\u3001GAN\u4ee5\u53caDiffusion Model\u7b49\u751f\u6210\u6a21\u578b\uff0c\u90fd\u4e0d\u53ea\u662f\u5355\u72ec\u4f7f\u7528\u6587\u5b57\u4f5c\u4e3a\u8f93\u5165\u6765\u751f\u6210\u56fe\u50cf\uff0c\u800c\u662f\u4f7f\u7528\u4e86",(0,s.kt)("strong",{parentName:"p"},"\u4ece\u5df2\u77e5\u7684\u968f\u673a\u5206\u5e03\uff08e.g. Normal Distribution\uff09\u4e2dsample\u51fa\u5411\u91cf\u4f5c\u4e3a\u6a21\u578b\u989d\u5916\u8f93\u5165"),"\u7684\u65b9\u6cd5\u3002"),(0,s.kt)("p",null,"\u5927\u81f4\u7684\u601d\u60f3\u5982\u4e0b\u56fe\u6240\u793a\uff0c\u7531\u4e8e",(0,s.kt)("strong",{parentName:"p"},"\u671f\u5f85\u751f\u6210\u7684\u56fe\u50cf\u5e76\u4e0d\u662f\u56fa\u5b9a\u7684"),"\uff0c\u53ef\u4ee5\u5c06\u9884\u671f\u8f93\u51fa\u770b\u4f5c\u662f\u4e00\u4e2a\u5206\u5e03\uff0c\u5373",(0,s.kt)("span",{parentName:"p",className:"math math-inline"},(0,s.kt)("span",{parentName:"span",className:"katex"},(0,s.kt)("span",{parentName:"span",className:"katex-mathml"},(0,s.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,s.kt)("semantics",{parentName:"math"},(0,s.kt)("mrow",{parentName:"semantics"},(0,s.kt)("mi",{parentName:"mrow"},"P"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,s.kt)("mi",{parentName:"mrow"},"x"),(0,s.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"\u2223"),(0,s.kt)("mi",{parentName:"mrow"},"y"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,s.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"P(x|y)")))),(0,s.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"P"),(0,s.kt)("span",{parentName:"span",className:"mopen"},"("),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal"},"x"),(0,s.kt)("span",{parentName:"span",className:"mord"},"\u2223"),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"y"),(0,s.kt)("span",{parentName:"span",className:"mclose"},")"))))),"\uff0c\u800c\u56fe\u50cf\u751f\u6210\u6a21\u578b\u9700\u8981\u5b8c\u6210\u7684\u4efb\u52a1\u5c31\u662f\u5c06\u8f93\u5165\u7684\u4ece\u67d0\u4e00\u968f\u673a\u5206\u5e03\u4e2dsample\u51fa\u7684\u5411\u91cf\u5bf9\u5e94\u5230\u56fe\u50cf\u9884\u671f\u8f93\u51fa\u5206\u5e03\u4e2d\u7684\u67d0\u4e00\u4e2a\u56fe\u50cf\u3002"),(0,s.kt)("admonition",{type:"important"},(0,s.kt)("p",{parentName:"admonition"},"\u603b\u7ed3\uff1a\u7531\u4e8e\u6839\u636e\u6587\u5b57prompt\u671f\u5f85\u751f\u6210\u7684\u56fe\u50cf\u5e76\u4e0d\u662f\u56fa\u5b9a\u7684\uff0c\u53ef\u4ee5\u8ba4\u4e3a\u751f\u6210\u7684\u56fe\u7247\u5728\u76ee\u6807\u57df\uff08Target Domain\uff09\u7b26\u5408\u67d0\u79cd\u5206\u5e03\u3002\u56e0\u6b64\u76ee\u524d\u7684SOTA\u6a21\u578b\u9664\u4e86\u5c06\u6587\u5b57Prompt\u4f5c\u4e3a\u8f93\u5165\uff0c\u8fd8\u4ece\u67d0\u968f\u673a\u5206\u5e03\u4e2dsample\u51fa\u56fe\u7247shape\u7684\u968f\u673a\u5411\u91cf\uff08\u77e9\u9635\uff09\u4f5c\u4e3a\u8f93\u5165\uff0c\u671f\u5f85\u6a21\u578b\u6839\u636eprompt\u5c06\u6e90\u57df\uff08Source Domain\uff09\u8f93\u5165\u7684\u968f\u673a\u5411\u91cf\u6620\u5c04\u5230\u76ee\u6807\u57df\u7684\u5206\u5e03\uff0c\u751f\u6210\u5bf9\u5e94\u7684\u56fe\u7247\u3002")),(0,s.kt)("p",null,(0,s.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_imagesimage-20231127104041455.png",alt:"image-20231127104041455"})),(0,s.kt)("h2",{id:"\u751f\u6210\u6a21\u578b\u7684\u5171\u540c\u7ed3\u6784"},"\u751f\u6210\u6a21\u578b\u7684\u5171\u540c\u7ed3\u6784"),(0,s.kt)("p",null,"Stable Diffusion\u662f\u76ee\u524d\u56fe\u50cf\u751f\u6210\u7684SOTA\u6a21\u578b\u4e4b\u4e00\uff0c\u5728\u672c\u7ae0\u4e2d\u6211\u4eec\u5feb\u901f\u7684\u4e86\u89e3\u4e00\u4e0bStable Diffusion\u7684\u5927\u81f4\u6846\u67b6\u4ee5\u53ca\u539f\u7406\u3002"),(0,s.kt)("h3",{id:"\u901a\u7528\u6846\u67b6\u6982\u89c8"},"\u901a\u7528\u6846\u67b6\u6982\u89c8"),(0,s.kt)("p",null,"\u76ee\u524d\uff0c\u5982Stable Diffusion\u7b49SOTA\u56fe\u50cf\u751f\u6210\u6a21\u578b\u90fd\u5177\u5907\u4ee5\u4e0b\u6240\u793a\u7684\u4e09\u4e2a\u6a21\u5757\uff0c\u901a\u5e38\u60c5\u51b5\u4e0b\u8fd9\u4e09\u4e2a\u6a21\u5757\u5206\u5f00\u8bad\u7ec3\uff0c\u6700\u7ec8\u901a\u8fc7\u7279\u6b8a\u7684\u903b\u8f91\u548c\u89c4\u5219\u7ec4\u5408\u5728\u4e00\u8d77\u3002"),(0,s.kt)("ul",null,(0,s.kt)("li",{parentName:"ul"},"Text Encoder\uff1a\u6839\u636e\u8f93\u5165\u7684text prompt\u8fdb\u884c\u5d4c\u5165\u8868\u793a"),(0,s.kt)("li",{parentName:"ul"},"Generation Model\uff1a\u63a5\u53d7Text Encoder\u8f93\u51fa\u7684prompt\u8868\u793a\u4ee5\u53ca\u4ece\u968f\u673a\u5206\u5e03sample\u51fa\u7684\u56fe\u50cf\u5927\u5c0f\u7684\u5411\u91cf\uff0c\u5f97\u5230\u201c\u4e2d\u95f4\u4ea7\u7269\u201d\uff0c\u4e2d\u95f4\u4ea7\u7269\u6709\u4ee5\u4e0b\u4e24\u79cd\u60c5\u51b5\uff1a",(0,s.kt)("ol",{parentName:"li"},(0,s.kt)("li",{parentName:"ol"},(0,s.kt)("strong",{parentName:"li"},"\u5177\u6709\u89c6\u89c9\u610f\u4e49\u4f46\u7ecf\u8fc7\u538b\u7f29\u6bd4\u8f83\u6a21\u7cca\u7684\u56fe\u50cf")),(0,s.kt)("li",{parentName:"ol"},(0,s.kt)("strong",{parentName:"li"},"\u4e0d\u5177\u5907\u89c6\u89c9\u7279\u5f81\u7684\u77e9\u9635\uff08Latent Representation\uff09")))),(0,s.kt)("li",{parentName:"ul"},"Decoder\uff1a\u4ee5\u4e0a\u8ff0\u7684\u201c\u4e2d\u95f4\u4ea7\u7269\u201d\u4f5c\u4e3a\u8f93\u5165\uff0c\u751f\u6210\u51fa\u9ad8\u6e05\u56fe\u50cf")),(0,s.kt)("p",null,"\u901a\u7528\u6846\u67b6\u7684\u4e09\u4e2a\u7ec4\u6210\u90e8\u5206\u5982\u4e0b\u56fe\u6240\u793a\uff1a"),(0,s.kt)("p",null,(0,s.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_imagesimage-20231127173905238.png",alt:"image-20231127173905238"})),(0,s.kt)("p",null,"\u518d\u9644\u4e0aStable Diffusion\u3001DALL-E\u7cfb\u5217\u4ee5\u53caGoogle\u7684Imagen\u7684\u7ed3\u6784\u8bf4\u660e\u3002"),(0,s.kt)("p",null,"\u5176\u4e2dImagen\u5c06\u538b\u7f29\u7248\u672c\u7684\u56fe\u7247\u4f5c\u4e3aGeneration Model\u7684\u4e2d\u95f4\u4ea7\u7269\uff0cStable Diffusion\u4ee5\u53caDALL-E\u5c06Latent Representation\u4f5c\u4e3a\u4e2d\u95f4\u4ea7\u7269\u3002"),(0,s.kt)("p",null,(0,s.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_imagesimage-20231127195336960.png",alt:"image-20231127195336960"})),(0,s.kt)("p",null,(0,s.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_imagesimage-20231127195527792.png",alt:"image-20231127195527792"})),(0,s.kt)("p",null,(0,s.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_imagesimage-20231127200044147.png",alt:"img"})),(0,s.kt)("p",null,"\u6839\u636eImagen\u7684\u5b9e\u9a8c\u7ed3\u679c\uff0c\u76f8\u5bf9\u4e8eDecoder\u5373Diffusion Model\u7684\u6a21\u578b\u5927\u5c0f\uff0cText Encoder\u7684\u6a21\u578b\u5927\u5c0f\u5bf9\u56fe\u50cf\u751f\u6210\u6a21\u578b\u7684\u5f71\u54cd\u662f\u975e\u5e38\u5927\u7684\u3002Text Encoder\u53ef\u4ee5\u5e2e\u52a9\u6a21\u578b\u7406\u89e3prompt\u4e2d\u5728\u8bad\u7ec3\u8d44\u6599\u7684\u6587\u5b57-\u56fe\u50cf\u5bf9\u4e2d\u6ca1\u6709\u51fa\u73b0\u7684\u65b0\u7684\u8bcd\u6c47\uff0c\u4ece\u800c\u63d0\u9ad8\u56fe\u50cf\u751f\u6210\u7684\u8868\u73b0\u3002"),(0,s.kt)("blockquote",null,(0,s.kt)("p",{parentName:"blockquote"},"Scaling text encoder size is more important than U-Net size. While scaling the size of the diffusion model U-Net improves sample quality, we found scaling the text encoder size to be significantly more impactful than the U-Net size."),(0,s.kt)("p",{parentName:"blockquote"},(0,s.kt)("a",{parentName:"p",href:"https://arxiv.org/pdf/2205.11487.pdf"},"Photorealistic Text-to-Image Diffusion Models with Deep Language Understanding"))),(0,s.kt)("p",null,(0,s.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_imagesimage-20231127201338956.png",alt:"image-20231127201338956"})),(0,s.kt)("h3",{id:"benchmark"},"Benchmark"),(0,s.kt)("p",null,"\u4e0b\u9762\u4ecb\u7ecd\u4e24\u79cd\u7528\u4e8e\u8bc4\u4f30\u56fe\u50cf\u751f\u6210\u6a21\u578b\u7684\u5e38\u7528Benchmark\uff1aFID\u4e0eCLIP Score\u3002"),(0,s.kt)("h4",{id:"fidfr\xe9chet-inception-distance"},"FID\uff08Fr\xe9chet Inception Distance\uff09"),(0,s.kt)("p",null,"FID\u63d0\u4f9b\u4e00\u4e2aPre-trained\u7684CNN\uff0c\u8be5CNN\u901a\u5e38\u4f7f\u7528\u9884\u8bad\u7ec3\u7684Inception v3\u6a21\u578b\u3002\u5728\u8ba1\u7b97FID\u65f6\uff0c\u751f\u6210\u56fe\u50cf\u548c\u771f\u5b9e\u56fe\u50cf\u5206\u522b\u8f93\u5165\u5230\u9884\u8bad\u7ec3\u7684CNN\u4e2d\uff0c\u63d0\u53d6\u51fa\u5404\u81ea\u7684\u7279\u5f81\u8868\u793a\u5411\u91cf\uff08Representation\uff09\u3002\u8fd9\u4e24\u4e2aRepresentation\u8d8a\u63a5\u8fd1\uff0c\u4ee3\u8868\u8f93\u51fa\u7684\u56fe\u50cf\u8d8a\u50cf\u9884\u671f\u7684\u201c\u771f\u5b9e\u201d\u56fe\u7247\u3002"),(0,s.kt)("p",null,"\u5728FID\u4e2d\uff0c\u505a\u51fa\u4e86\u5982\u4e0b\u91cd\u8981\u7684\u5047\u8bbe\uff1a",(0,s.kt)("strong",{parentName:"p"},"\u5c06\u751f\u6210\u7684\u56fe\u50cf\u771f\u5b9e\u7684\u56fe\u50cf\u7ecf\u8fc7CNN\u8f93\u51fa\u7684Representation\u770b\u4f5c\u662fsample\u81ea\u4e24\u4e2a\u9ad8\u65af\u5206\u5e03\u7684\u968f\u673a\u53d8\u91cf"),"\u3002\u7136\u540e\uff0c\u901a\u8fc7\u8ba1\u7b97\u4e24\u4e2a\u7279\u5f81\u5411\u91cf\u7684\u5747\u503c\u548c\u534f\u65b9\u5dee\u77e9\u9635\u6765\u5f97\u5230\u4e24\u4e2a\u9ad8\u65af\u5206\u5e03\u7684\u53c2\u6570\u3002\u6700\u540e\uff0c\u5229\u7528\u4e24\u4e2a\u9ad8\u65af\u5206\u5e03\u4e4b\u95f4\u7684Fr\xe9chet\u8ddd\u79bb\u6765\u8861\u91cf\u751f\u6210\u56fe\u50cf\u4e0e\u771f\u5b9e\u56fe\u50cf\u4e4b\u95f4\u7684\u5dee\u5f02\u3002"),(0,s.kt)("div",{className:"math math-display"},(0,s.kt)("span",{parentName:"div",className:"katex-display"},(0,s.kt)("span",{parentName:"span",className:"katex"},(0,s.kt)("span",{parentName:"span",className:"katex-mathml"},(0,s.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,s.kt)("semantics",{parentName:"math"},(0,s.kt)("mtable",{parentName:"semantics",width:"100%"},(0,s.kt)("mtr",{parentName:"mtable"},(0,s.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,s.kt)("mtd",{parentName:"mtr"},(0,s.kt)("mrow",{parentName:"mtd"},(0,s.kt)("mrow",{parentName:"mrow"},(0,s.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"F"),(0,s.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"I"),(0,s.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"D")),(0,s.kt)("mo",{parentName:"mrow"},"="),(0,s.kt)("msubsup",{parentName:"mrow"},(0,s.kt)("mrow",{parentName:"msubsup"},(0,s.kt)("mo",{parentName:"mrow",fence:"true"},"\u2225"),(0,s.kt)("msub",{parentName:"mrow"},(0,s.kt)("mi",{parentName:"msub"},"\u03bc"),(0,s.kt)("mn",{parentName:"msub"},"1")),(0,s.kt)("mo",{parentName:"mrow"},"\u2212"),(0,s.kt)("msub",{parentName:"mrow"},(0,s.kt)("mi",{parentName:"msub"},"\u03bc"),(0,s.kt)("mn",{parentName:"msub"},"2")),(0,s.kt)("mo",{parentName:"mrow",fence:"true"},"\u2225")),(0,s.kt)("mn",{parentName:"msubsup"},"2"),(0,s.kt)("mn",{parentName:"msubsup"},"2")),(0,s.kt)("mo",{parentName:"mrow"},"+"),(0,s.kt)("mrow",{parentName:"mrow"},(0,s.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"t"),(0,s.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"r")),(0,s.kt)("mrow",{parentName:"mrow"},(0,s.kt)("mo",{parentName:"mrow",fence:"true"},"("),(0,s.kt)("msub",{parentName:"mrow"},(0,s.kt)("mi",{parentName:"msub",mathvariant:"normal"},"\u03a3"),(0,s.kt)("mn",{parentName:"msub"},"1")),(0,s.kt)("mo",{parentName:"mrow"},"+"),(0,s.kt)("msub",{parentName:"mrow"},(0,s.kt)("mi",{parentName:"msub",mathvariant:"normal"},"\u03a3"),(0,s.kt)("mn",{parentName:"msub"},"2")),(0,s.kt)("mo",{parentName:"mrow"},"\u2212"),(0,s.kt)("mn",{parentName:"mrow"},"2"),(0,s.kt)("msup",{parentName:"mrow"},(0,s.kt)("mrow",{parentName:"msup"},(0,s.kt)("mo",{parentName:"mrow",fence:"true"},"("),(0,s.kt)("msub",{parentName:"mrow"},(0,s.kt)("mi",{parentName:"msub",mathvariant:"normal"},"\u03a3"),(0,s.kt)("mn",{parentName:"msub"},"1")),(0,s.kt)("msub",{parentName:"mrow"},(0,s.kt)("mi",{parentName:"msub",mathvariant:"normal"},"\u03a3"),(0,s.kt)("mn",{parentName:"msub"},"2")),(0,s.kt)("mo",{parentName:"mrow",fence:"true"},")")),(0,s.kt)("mfrac",{parentName:"msup"},(0,s.kt)("mn",{parentName:"mfrac"},"1"),(0,s.kt)("mn",{parentName:"mfrac"},"2"))),(0,s.kt)("mo",{parentName:"mrow",fence:"true"},")")))),(0,s.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,s.kt)("mtd",{parentName:"mtr"},(0,s.kt)("mtext",{parentName:"mtd"},"(1)")))),(0,s.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"\\mathrm{FID}=\\left\\|\\mu_1-\\mu_2\\right\\|_2^2+\\mathrm{tr}\\left(\\Sigma_1+\\Sigma_2-2\\left(\\Sigma_1\\Sigma_2\\right)^{\\frac12}\\right)\\tag{1}")))),(0,s.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6833em"}}),(0,s.kt)("span",{parentName:"span",className:"mord"},(0,s.kt)("span",{parentName:"span",className:"mord mathrm"},"FID")),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,s.kt)("span",{parentName:"span",className:"mrel"},"="),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"1.2537em",verticalAlign:"-0.2997em"}}),(0,s.kt)("span",{parentName:"span",className:"minner"},(0,s.kt)("span",{parentName:"span",className:"minner"},(0,s.kt)("span",{parentName:"span",className:"mopen delimcenter",style:{top:"0em"}},"\u2225"),(0,s.kt)("span",{parentName:"span",className:"mord"},(0,s.kt)("span",{parentName:"span",className:"mord mathnormal"},"\u03bc"),(0,s.kt)("span",{parentName:"span",className:"msupsub"},(0,s.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,s.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,s.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,s.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,s.kt)("span",{parentName:"span",className:"mord mtight"},"1")))),(0,s.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,s.kt)("span",{parentName:"span"})))))),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,s.kt)("span",{parentName:"span",className:"mbin"},"\u2212"),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,s.kt)("span",{parentName:"span",className:"mord"},(0,s.kt)("span",{parentName:"span",className:"mord mathnormal"},"\u03bc"),(0,s.kt)("span",{parentName:"span",className:"msupsub"},(0,s.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,s.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,s.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,s.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,s.kt)("span",{parentName:"span",className:"mord mtight"},"2")))),(0,s.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,s.kt)("span",{parentName:"span"})))))),(0,s.kt)("span",{parentName:"span",className:"mclose delimcenter",style:{top:"0em"}},"\u2225")),(0,s.kt)("span",{parentName:"span",className:"msupsub"},(0,s.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.954em"}},(0,s.kt)("span",{parentName:"span",style:{top:"-2.4003em",marginRight:"0.05em"}},(0,s.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,s.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,s.kt)("span",{parentName:"span",className:"mord mtight"},"2"))),(0,s.kt)("span",{parentName:"span",style:{top:"-3.2029em",marginRight:"0.05em"}},(0,s.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,s.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,s.kt)("span",{parentName:"span",className:"mord mtight"},"2")))),(0,s.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.2997em"}},(0,s.kt)("span",{parentName:"span"})))))),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,s.kt)("span",{parentName:"span",className:"mbin"},"+"),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}})),(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"1.8em",verticalAlign:"-0.65em"}}),(0,s.kt)("span",{parentName:"span",className:"mord"},(0,s.kt)("span",{parentName:"span",className:"mord mathrm"},"tr")),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,s.kt)("span",{parentName:"span",className:"minner"},(0,s.kt)("span",{parentName:"span",className:"mopen delimcenter",style:{top:"0em"}},(0,s.kt)("span",{parentName:"span",className:"delimsizing size2"},"(")),(0,s.kt)("span",{parentName:"span",className:"mord"},(0,s.kt)("span",{parentName:"span",className:"mord"},"\u03a3"),(0,s.kt)("span",{parentName:"span",className:"msupsub"},(0,s.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,s.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,s.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,s.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,s.kt)("span",{parentName:"span",className:"mord mtight"},"1")))),(0,s.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,s.kt)("span",{parentName:"span"})))))),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,s.kt)("span",{parentName:"span",className:"mbin"},"+"),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,s.kt)("span",{parentName:"span",className:"mord"},(0,s.kt)("span",{parentName:"span",className:"mord"},"\u03a3"),(0,s.kt)("span",{parentName:"span",className:"msupsub"},(0,s.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,s.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,s.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,s.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,s.kt)("span",{parentName:"span",className:"mord mtight"},"2")))),(0,s.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,s.kt)("span",{parentName:"span"})))))),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,s.kt)("span",{parentName:"span",className:"mbin"},"\u2212"),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,s.kt)("span",{parentName:"span",className:"mord"},"2"),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,s.kt)("span",{parentName:"span",className:"minner"},(0,s.kt)("span",{parentName:"span",className:"minner"},(0,s.kt)("span",{parentName:"span",className:"mopen delimcenter",style:{top:"0em"}},"("),(0,s.kt)("span",{parentName:"span",className:"mord"},(0,s.kt)("span",{parentName:"span",className:"mord"},"\u03a3"),(0,s.kt)("span",{parentName:"span",className:"msupsub"},(0,s.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,s.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,s.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,s.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,s.kt)("span",{parentName:"span",className:"mord mtight"},"1")))),(0,s.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,s.kt)("span",{parentName:"span"})))))),(0,s.kt)("span",{parentName:"span",className:"mord"},(0,s.kt)("span",{parentName:"span",className:"mord"},"\u03a3"),(0,s.kt)("span",{parentName:"span",className:"msupsub"},(0,s.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,s.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,s.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,s.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,s.kt)("span",{parentName:"span",className:"mord mtight"},"2")))),(0,s.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,s.kt)("span",{parentName:"span"})))))),(0,s.kt)("span",{parentName:"span",className:"mclose delimcenter",style:{top:"0em"}},")")),(0,s.kt)("span",{parentName:"span",className:"msupsub"},(0,s.kt)("span",{parentName:"span",className:"vlist-t"},(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.0939em"}},(0,s.kt)("span",{parentName:"span",style:{top:"-3.5029em",marginRight:"0.05em"}},(0,s.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,s.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,s.kt)("span",{parentName:"span",className:"mord mtight"},(0,s.kt)("span",{parentName:"span",className:"mord mtight"},(0,s.kt)("span",{parentName:"span",className:"mopen nulldelimiter sizing reset-size3 size6"}),(0,s.kt)("span",{parentName:"span",className:"mfrac"},(0,s.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.8443em"}},(0,s.kt)("span",{parentName:"span",style:{top:"-2.656em"}},(0,s.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,s.kt)("span",{parentName:"span",className:"sizing reset-size3 size1 mtight"},(0,s.kt)("span",{parentName:"span",className:"mord mtight"},(0,s.kt)("span",{parentName:"span",className:"mord mtight"},"2")))),(0,s.kt)("span",{parentName:"span",style:{top:"-3.2255em"}},(0,s.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,s.kt)("span",{parentName:"span",className:"frac-line mtight",style:{borderBottomWidth:"0.049em"}})),(0,s.kt)("span",{parentName:"span",style:{top:"-3.384em"}},(0,s.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,s.kt)("span",{parentName:"span",className:"sizing reset-size3 size1 mtight"},(0,s.kt)("span",{parentName:"span",className:"mord mtight"},(0,s.kt)("span",{parentName:"span",className:"mord mtight"},"1"))))),(0,s.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.344em"}},(0,s.kt)("span",{parentName:"span"}))))),(0,s.kt)("span",{parentName:"span",className:"mclose nulldelimiter sizing reset-size3 size6"})))))))))),(0,s.kt)("span",{parentName:"span",className:"mclose delimcenter",style:{top:"0em"}},(0,s.kt)("span",{parentName:"span",className:"delimsizing size2"},")")))),(0,s.kt)("span",{parentName:"span",className:"tag"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"1.8em",verticalAlign:"-0.65em"}}),(0,s.kt)("span",{parentName:"span",className:"mord text"},(0,s.kt)("span",{parentName:"span",className:"mord"},"("),(0,s.kt)("span",{parentName:"span",className:"mord"},(0,s.kt)("span",{parentName:"span",className:"mord"},"1")),(0,s.kt)("span",{parentName:"span",className:"mord"},")"))))))),(0,s.kt)("p",null,"\u5176\u4e2d\uff0c",(0,s.kt)("span",{parentName:"p",className:"math math-inline"},(0,s.kt)("span",{parentName:"span",className:"katex"},(0,s.kt)("span",{parentName:"span",className:"katex-mathml"},(0,s.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,s.kt)("semantics",{parentName:"math"},(0,s.kt)("mrow",{parentName:"semantics"},(0,s.kt)("msub",{parentName:"mrow"},(0,s.kt)("mi",{parentName:"msub"},"\u03bc"),(0,s.kt)("mn",{parentName:"msub"},"1"))),(0,s.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"\\mu_1")))),(0,s.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"0.625em",verticalAlign:"-0.1944em"}}),(0,s.kt)("span",{parentName:"span",className:"mord"},(0,s.kt)("span",{parentName:"span",className:"mord mathnormal"},"\u03bc"),(0,s.kt)("span",{parentName:"span",className:"msupsub"},(0,s.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,s.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,s.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,s.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,s.kt)("span",{parentName:"span",className:"mord mtight"},"1")))),(0,s.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,s.kt)("span",{parentName:"span"})))))))))),"\u548c",(0,s.kt)("span",{parentName:"p",className:"math math-inline"},(0,s.kt)("span",{parentName:"span",className:"katex"},(0,s.kt)("span",{parentName:"span",className:"katex-mathml"},(0,s.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,s.kt)("semantics",{parentName:"math"},(0,s.kt)("mrow",{parentName:"semantics"},(0,s.kt)("msub",{parentName:"mrow"},(0,s.kt)("mi",{parentName:"msub"},"\u03bc"),(0,s.kt)("mn",{parentName:"msub"},"2"))),(0,s.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"\\mu_2")))),(0,s.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"0.625em",verticalAlign:"-0.1944em"}}),(0,s.kt)("span",{parentName:"span",className:"mord"},(0,s.kt)("span",{parentName:"span",className:"mord mathnormal"},"\u03bc"),(0,s.kt)("span",{parentName:"span",className:"msupsub"},(0,s.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,s.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,s.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,s.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,s.kt)("span",{parentName:"span",className:"mord mtight"},"2")))),(0,s.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,s.kt)("span",{parentName:"span"})))))))))),"\u5206\u522b\u662f\u7b2c\u4e00\u4e2a\u548c\u7b2c\u4e8c\u4e2a\u9ad8\u65af\u5206\u5e03\u7684\u5747\u503c\u5411\u91cf\uff1b",(0,s.kt)("span",{parentName:"p",className:"math math-inline"},(0,s.kt)("span",{parentName:"span",className:"katex"},(0,s.kt)("span",{parentName:"span",className:"katex-mathml"},(0,s.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,s.kt)("semantics",{parentName:"math"},(0,s.kt)("mrow",{parentName:"semantics"},(0,s.kt)("msub",{parentName:"mrow"},(0,s.kt)("mi",{parentName:"msub",mathvariant:"normal"},"\u03a3"),(0,s.kt)("mn",{parentName:"msub"},"1"))),(0,s.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"\\Sigma_1")))),(0,s.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"0.8333em",verticalAlign:"-0.15em"}}),(0,s.kt)("span",{parentName:"span",className:"mord"},(0,s.kt)("span",{parentName:"span",className:"mord"},"\u03a3"),(0,s.kt)("span",{parentName:"span",className:"msupsub"},(0,s.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,s.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,s.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,s.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,s.kt)("span",{parentName:"span",className:"mord mtight"},"1")))),(0,s.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,s.kt)("span",{parentName:"span"})))))))))),"\u548c",(0,s.kt)("span",{parentName:"p",className:"math math-inline"},(0,s.kt)("span",{parentName:"span",className:"katex"},(0,s.kt)("span",{parentName:"span",className:"katex-mathml"},(0,s.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,s.kt)("semantics",{parentName:"math"},(0,s.kt)("mrow",{parentName:"semantics"},(0,s.kt)("msub",{parentName:"mrow"},(0,s.kt)("mi",{parentName:"msub",mathvariant:"normal"},"\u03a3"),(0,s.kt)("mn",{parentName:"msub"},"2"))),(0,s.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"\\Sigma_2")))),(0,s.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"0.8333em",verticalAlign:"-0.15em"}}),(0,s.kt)("span",{parentName:"span",className:"mord"},(0,s.kt)("span",{parentName:"span",className:"mord"},"\u03a3"),(0,s.kt)("span",{parentName:"span",className:"msupsub"},(0,s.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,s.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,s.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,s.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,s.kt)("span",{parentName:"span",className:"mord mtight"},"2")))),(0,s.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,s.kt)("span",{parentName:"span"})))))))))),"\u5219\u662f\u5b83\u4eec\u7684\u534f\u65b9\u5dee\u77e9\u9635\uff1b",(0,s.kt)("span",{parentName:"p",className:"math math-inline"},(0,s.kt)("span",{parentName:"span",className:"katex"},(0,s.kt)("span",{parentName:"span",className:"katex-mathml"},(0,s.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,s.kt)("semantics",{parentName:"math"},(0,s.kt)("mrow",{parentName:"semantics"},(0,s.kt)("mrow",{parentName:"mrow"},(0,s.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"t"),(0,s.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"r")),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,s.kt)("mo",{parentName:"mrow"},"\u22c5"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,s.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"\\mathrm{tr}(\\cdot)")))),(0,s.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,s.kt)("span",{parentName:"span",className:"mord"},(0,s.kt)("span",{parentName:"span",className:"mord mathrm"},"tr")),(0,s.kt)("span",{parentName:"span",className:"mopen"},"("),(0,s.kt)("span",{parentName:"span",className:"mord"},"\u22c5"),(0,s.kt)("span",{parentName:"span",className:"mclose"},")"))))),"\u8868\u793a\u77e9\u9635\u7684\u8ff9\u8fd0\u7b97\u3002"),(0,s.kt)("p",null,"\u9ad8\u65af\u5206\u5e03\u7684\u5747\u503c\u5411\u91cf\u4ece\u89c2\u6d4b\u5230\u7684\u6570\u636e\u4e2d\u8ba1\u7b97\u51fa\u6765\u7684\u3002\u5bf9\u4e8e\u4e00\u4e2a",(0,s.kt)("span",{parentName:"p",className:"math math-inline"},(0,s.kt)("span",{parentName:"span",className:"katex"},(0,s.kt)("span",{parentName:"span",className:"katex-mathml"},(0,s.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,s.kt)("semantics",{parentName:"math"},(0,s.kt)("mrow",{parentName:"semantics"},(0,s.kt)("mi",{parentName:"mrow"},"n")),(0,s.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"n")))),(0,s.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"0.4306em"}}),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal"},"n"))))),"-\u7ef4\u9ad8\u65af\u5206\u5e03\uff0c\u5176\u5747\u503c\u5411\u91cf\u53ef\u4ee5\u8868\u793a\u4e3a\u4e00\u4e2a\u957f\u5ea6\u4e3a",(0,s.kt)("span",{parentName:"p",className:"math math-inline"},(0,s.kt)("span",{parentName:"span",className:"katex"},(0,s.kt)("span",{parentName:"span",className:"katex-mathml"},(0,s.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,s.kt)("semantics",{parentName:"math"},(0,s.kt)("mrow",{parentName:"semantics"},(0,s.kt)("mi",{parentName:"mrow"},"n")),(0,s.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"n")))),(0,s.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"0.4306em"}}),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal"},"n"))))),"\u7684\u5217\u5411\u91cf\uff0c\u5176\u4e2d\u7684\u6bcf\u4e00\u4e2a\u5143\u7d20\u90fd\u662f\u4e00\u4e2a\u7279\u5b9a\u7ef4\u5ea6\u7684\u5e73\u5747\u6570\uff0c\u8fd9\u53ef\u4ee5\u901a\u8fc7\u5728\u6bcf\u4e2a\u7ef4\u5ea6\u4e0a\u8fdb\u884c\u7b80\u5355\u7684\u7b97\u672f\u5e73\u5747\u6765\u5b8c\u6210\u3002"),(0,s.kt)("p",null,"\u503c\u5f97\u6ce8\u610f\u7684\u662f\uff0cFID\u6307\u6807\u9700\u8981\u4e00\u5b9a\u6570\u91cf\u7684\u751f\u6210\u56fe\u50cf\u548c\u771f\u5b9e\u56fe\u50cf\u6765\u8fdb\u884c\u7edf\u8ba1\u4f30\u8ba1\u3002\u8fd9\u662f\u56e0\u4e3aFID\u7684\u8ba1\u7b97\u662f\u57fa\u4e8e\u4e24\u4e2a\u9ad8\u65af\u5206\u5e03\u4e4b\u95f4\u7684\u8ddd\u79bb\u8ba1\u7b97\u7684\uff0c\u56e0\u6b64\u9700\u8981\u8db3\u591f\u591a\u7684\u6837\u672c\u6570\u91cf\u624d\u80fd\u591f\u83b7\u5f97\u8f83\u4e3a\u51c6\u786e\u7684\u6982\u7387\u5206\u5e03\u4f30\u8ba1\u3002"),(0,s.kt)("p",null,(0,s.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_imagesimage-20231127202031894.png",alt:"image-20231127202031894"})),(0,s.kt)("h4",{id:"clip-score"},"CLIP Score"),(0,s.kt)("p",null,"CLIP Score\u4e2d\u7684CLIP\u6307\u7684\u5c31\u662f",(0,s.kt)("a",{parentName:"p",href:"https://arxiv.org/abs/2103.00020"},"OpenAI\u7684CLIP\uff08Contrastive Language-Image Pre-Training\uff09\u6a21\u578b"),"\u3002"),(0,s.kt)("p",null,"\u5177\u4f53\u6765\u8bf4\uff0cCLIP Score\u7684\u8ba1\u7b97\u65b9\u5f0f\u662f\u5c06\u7528\u4e8e\u751f\u6210\u56fe\u50cf\u7684\u6587\u5b57prompt\u8f93\u5165\u81f3CLIP\u7684Text Encoder\u4e2d\u5f97\u5230\u4e00\u4e2aRepresentation\uff0c\u518d\u5c06\u5bf9\u5e94prompt\u751f\u6210\u7684\u56fe\u50cf\u8f93\u5165\u81f3CLIP\u7684Image Encoder\u4e2d\u5f97\u5230\u5bf9\u5e94\u7684Representation\uff0c\u8ba1\u7b97\u4e8c\u8005\u4e4b\u95f4\u7684\u8ddd\u79bb\uff0c\u5373\u5f97\u5230CLIP Score\u3002\u5206\u6570\u8d8a\u5c0f\uff0c\u4ee3\u8868\u6587\u5b57\u548c\u56fe\u50cf\u66f4align\u3002"),(0,s.kt)("p",null,(0,s.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_imagesimage-20231128143336879.png",alt:"image-20231128143336879"})),(0,s.kt)("h3",{id:"\u901a\u7528\u6846\u67b6\u89e3\u6790"},"\u901a\u7528\u6846\u67b6\u89e3\u6790"),(0,s.kt)("h4",{id:"generation-model"},"Generation Model"),(0,s.kt)("p",null,"Generation Model\u7684\u751f\u6210\u8fc7\u7a0b\u5176\u5b9e\u5c31\u662fDenoise\u7684\u8fc7\u7a0b\u3002\u5177\u4f53\u6765\u8bb2\uff0c\u8f93\u5165\u6587\u5b57Prompt\u4ee5\u53ca\u4ece\u968f\u673a\u5206\u5e03\u4e2dsample\u51fa\u7684\u4e0e\u9884\u671f\u751f\u6210\u56fe\u50cf\u5177\u6709\u76f8\u540c\u5927\u5c0f\u7684\u566a\u58f0\u77e9\u9635\uff0c\u9884\u6d4b\u51fa\u8f93\u5165\u56fe\u7247\u4e2d\u7684\u566a\u58f0\u5206\u5e03\uff0c\u5728\u8f93\u5165\u56fe\u50cf\u4e2d\u51cf\u53bb\u566a\u58f0\uff0c\u8f93\u51fa\u53bb\u566a\u540e\u7684\u56fe\u50cf\u3002Generation Model\u7684\u6700\u7ec8\u8f93\u51fa\u662f\u4e2d\u95f4\u4ea7\u7269\uff0c\u8fd9\u4e2a\u4e2d\u95f4\u4ea7\u7269\u53ef\u4ee5\u662f\u56fe\u50cf\u7684\u538b\u7f29\u7248\u672c\uff0c\u4e5f\u53ef\u4ee5\u662f\u4e00\u4e2aLatent Representation\u3002\u56e0\u6b64\uff0c\u8bad\u7ec3Generation Model\u5176\u5b9e\u5c31\u662f\u8bad\u7ec3\u4e00\u4e2a",(0,s.kt)("strong",{parentName:"p"},"Noise Predictor"),"\u3002"),(0,s.kt)("h5",{id:"\u4e2d\u95f4\u4ea7\u7269\u662f\u538b\u7f29\u56fe\u50cf"},"\u4e2d\u95f4\u4ea7\u7269\u662f\u538b\u7f29\u56fe\u50cf"),(0,s.kt)("p",null,"\u5f53Generation Model\u7684\u4e2d\u95f4\u4ea7\u7269\u662f\u538b\u7f29\u56fe\u50cf\u65f6\uff0c\u5982Diffusion\u6a21\u578b\uff0c\u5728\u8bad\u7ec3Generation Model\u65f6\u7684\u8bad\u7ec3\u8d44\u6599\u53ef\u4ee5\u901a\u8fc7\u5bf9\u6570\u636e\u96c6\u4e2d\u7684\u539f\u59cb\u56fe\u7247\u6dfb\u52a0\u4e0e\u56fe\u50cf\u5927\u5c0f\u4e00\u81f4\u5730\u4ece\u5df2\u77e5\u968f\u673a\u5206\u5e03\u4e2dsample\u51fa\u7684\u566a\u58f0\u6765\u83b7\u5f97\u3002\u6b64\u65f6\u52a0\u5165\u566a\u58f0\u540e\u7684\u56fe\u50cf\u53ef\u4ee5\u4f5c\u4e3a\u538b\u7f29\u56fe\u50cf\u8f93\u5165\u81f3Noise Predictor\u4e2d\uff0c\u800c\u9700\u8981\u9884\u6d4b\u51fa\u7684\u566a\u58f0\u5206\u5e03\u7684Ground Truth\u5c31\u662fsample\u51fa\u7684\u566a\u58f0\u3002"),(0,s.kt)("h5",{id:"\u4e2d\u95f4\u4ea7\u7269\u662flatent-representation"},"\u4e2d\u95f4\u4ea7\u7269\u662fLatent Representation"),(0,s.kt)("p",null,"\u4e2d\u95f4\u4ea7\u7269\u662fLatent Representation\u65f6\uff0c\u540c\u6837\u91c7\u53d6\u4ece\u5df2\u77e5\u968f\u673a\u5206\u5e03\u4e2dsample\u51fa\u566a\u58f0\u518d\u6dfb\u52a0\u5230\u7f51\u7edc\u7684\u8f93\u5165\u4f5c\u4e3a\u751f\u6210Ground Truth\u7684\u7b56\u7565\uff0c\u4f46\u662f\u8fd8",(0,s.kt)("strong",{parentName:"p"},"\u989d\u5916\u9700\u8981\u4e00\u4e2aEncoder\u6765\u4ea7\u751fLatent Representation"),"\u3002"),(0,s.kt)("p",null,"\u8fd9\u91cc\u7684Encoder\u4f7f\u7528\u6570\u636e\u96c6\u4e2d\u7684\u56fe\u7247\uff08\u5373\u671f\u5f85\u6a21\u578b\u6700\u7ec8\u8f93\u51fa\u7684\u56fe\u7247\uff09\u4f5c\u4e3a\u8f93\u5165\uff0c\u8f93\u51fa\u8be5\u56fe\u7247\u7684\u67d0\u79cdLatent Representation\uff0c\u7ecf\u8fc7\u4ece\u968f\u673a\u5206\u5e03\u4e2dsample\u51fa\u7684\u566a\u58f0\u7684\u52a0\u5165\uff0c\u8f93\u5165\u81f3Noise Predictor\u4e2d\u3002\u4ece\u968f\u673a\u5206\u5e03\u4e2dsample\u51fa\u7684\u566a\u58f0\u5c31\u662fNoise Predictor\u7684Ground Truth\u3002"),(0,s.kt)("h4",{id:"decoder"},"Decoder"),(0,s.kt)("p",null,"Generation Model\u7684\u8bad\u7ec3\u9700\u8981\u5927\u91cf\u6210\u5bf9\u7684\uff08Pair\uff09\u6587\u5b57-\u56fe\u50cf\u8d44\u6599\u3002\u800c\u5bf9\u4e8eDecoder\u6765\u8bf4\uff0c\u5b83\u7684\u8f93\u5165\u662f\u4e2d\u95f4\u4ea7\u7269\uff08\u5373Generation Model\u751f\u6210\u7684\u538b\u7f29\u7684\u56fe\u7247\u6216Latent Representation\uff09\uff0c\u8f93\u51fa\u7684\u662f\u8fd8\u539f\u51fa\u7684\u9ad8\u5206\u8fa8\u7387\u7684\u56fe\u50cf\uff0c\u5b83\u7684\u8bad\u7ec3\u662f",(0,s.kt)("strong",{parentName:"p"},"\u4e0d\u9700\u8981\u989d\u5916pair\u7684\u6587\u5b57-\u56fe\u50cf\u8d44\u6599"),"\u3002"),(0,s.kt)("h5",{id:"\u4e2d\u95f4\u4ea7\u7269\u662f\u538b\u7f29\u56fe\u50cf-1"},"\u4e2d\u95f4\u4ea7\u7269\u662f\u538b\u7f29\u56fe\u50cf"),(0,s.kt)("p",null,"\u5f53Generation Model\u7684\u8f93\u51fa\u662f\u538b\u7f29\u7248\u672c\u7684\u56fe\u50cf\u65f6\uff0cDecoder\u7684\u8bad\u7ec3\u8d44\u6599\u53ef\u4ee5\u5c06\u4ece\u4e92\u8054\u7f51\u4e0afetch\u5230\u7684\u56fe\u50cf\u4f5c\u4e3alabel\uff0c\u5e76\u5bf9\u8fd9\u4e9b\u56fe\u50cf\u505aDown Sampling\u6765\u83b7\u5f97\u538b\u7f29\u7248\u672c\u7684\u56fe\u50cf\u4f5c\u4e3aDecoder\u8bad\u7ec3\u65f6\u7684\u8f93\u51fa\u3002"),(0,s.kt)("p",null,(0,s.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_imagesimage-20231128145010346.png",alt:"image-20231128145010346"})),(0,s.kt)("h5",{id:"\u4e2d\u95f4\u4ea7\u7269\u662flatent-representation-1"},"\u4e2d\u95f4\u4ea7\u7269\u662fLatent Representation"),(0,s.kt)("p",null,"\u5f53\u4e2d\u95f4\u4ea7\u7269\u662fLatent Representation\u65f6\uff0c\u9700\u8981\u8bad\u7ec3\u4e00\u4e2aAuto-Encoder\uff0c\u4f7f\u7528Encoder-Decoder\u7684\u7ed3\u6784\u8bad\u7ec3\u751f\u6210\u6a21\u578b\u7684Decoder\u3002"),(0,s.kt)("p",null,"\u5177\u4f53\u6765\u8bb2\uff0c\u5411Encoder\u4e2d\u8f93\u5165\u6570\u636e\u96c6\u4e2d\u7684\u9ad8\u6e05\u9884\u671f\u56fe\u7247\uff0cEncoder\u5c06\u5176\u8f6c\u6362\u4e3a\u67d0\u79cdLatent Representation\uff0cDecoder\u518d\u5403Encoder\u7684\u8f93\u51fa\uff0c\u6700\u7ec8\u8f93\u51fa\u8fd8\u539f\u51fa\u7684\u9ad8\u6e05label\u56fe\u7247\uff0c\u8bad\u7ec3\u7684\u65b9\u5411\u662f\u8ba9\u8f93\u51fa\u7684\u56fe\u7247\u4e0e\u8f93\u5165\u7684\u56fe\u7247\u8d8a\u63a5\u8fd1\u8d8a\u597d\u3002",(0,s.kt)("strong",{parentName:"p"},"\u5728\u8fd9\u4e2a\u8fc7\u7a0b\u4e2d\uff0c\u4e0d\u9700\u8981\u989d\u5916\u7684\u6807\u6ce8\uff0cAuto-Encoder\u548c\u751f\u6210\u6a21\u578b\u7684Decoder\u4e00\u8d77\u66f4\u65b0\u53c2\u6570\u3002")),(0,s.kt)("p",null,(0,s.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_imagesimage-20231128150641374.png",alt:"image-20231128150641374"})),(0,s.kt)("h2",{id:"\u5e38\u89c1\u56fe\u50cf\u751f\u6210\u6a21\u578b\u901f\u89c8"},"\u5e38\u89c1\u56fe\u50cf\u751f\u6210\u6a21\u578b\u901f\u89c8"),(0,s.kt)("p",null,"\u5728\u8fd9\u4e2a\u6a21\u5757\u5927\u81f4\u4ecb\u7ecd\u76ee\u524d\u5e38\u89c1\u7684\u51e0\u79cd\u56fe\u50cf\u751f\u6210\u6a21\u578b\uff0c\u5176\u4e2dDiffusion Model\u4ee5\u53caGAN\u5c06\u5728\u4ee5\u540e\u7684\u6587\u7ae0\u4e2d\u8be6\u7ec6\u8bb2\u89e3\u3002"),(0,s.kt)("h3",{id:"\u53d8\u5206\u81ea\u7f16\u7801\u5668vae"},"\u53d8\u5206\u81ea\u7f16\u7801\u5668\uff08VAE\uff09"),(0,s.kt)("p",null,"\u53d8\u5206\u81ea\u7f16\u7801\u5668\uff08Variational Auto-Encoder, abbr. VAE\uff09\u7684\u8bad\u7ec3\u7b56\u7565\u662f\u4f7f\u7528Encoder\u5c06\u8f93\u5165\u56fe\u50cf\u5bf9\u5e94\uff08\u5d4c\u5165\uff09\u5230\u4e00\u4e2a\u7b26\u5408\u67d0\u968f\u673a\u5206\u5e03\u7684\u5411\u91cf\uff0c\u518d\u5c06\u8be5\u5411\u91cf\u4f5c\u4e3aDecoder\u7684\u8f93\u5165\uff0c\u52a0\u4e0a\u6587\u5b57prompt\u540e\uff0c\u671f\u5f85\u6a21\u578b\u4ea7\u751f\u5408\u9002\u7684\u56fe\u50cf\u3002"),(0,s.kt)("p",null,(0,s.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_imagesimage-20231127104842038.png",alt:"image-20231127104842038"})),(0,s.kt)("admonition",{type:"tip"},(0,s.kt)("p",{parentName:"admonition"},"VAE\u5728\u8bad\u7ec3\u8fc7\u7a0b\u4e2d\uff0c\u671f\u5f85Ecoder\u8f93\u5165\u591a\u5f20\u56fe\u7247\u540e\uff0c\u8f93\u51fa\u7684\u5411\u91cf\u5728\u4e00\u8d77\u7b26\u5408\u67d0\u4e2a\u968f\u673a\u5206\u5e03\uff08e.g. Normal Distribution\uff09\uff0c\u5e76\u4e0d\u662fEncoder\u76f4\u63a5\u8f93\u51fa\u4e00\u4e2aDistrubution\u3002")),(0,s.kt)("h3",{id:"\u57fa\u4e8e\u6d41\u7684\u751f\u6210\u6a21\u578bflow-based-generative-model"},"\u57fa\u4e8e\u6d41\u7684\u751f\u6210\u6a21\u578b\uff08Flow-Based Generative Model\uff09"),(0,s.kt)("p",null,"\u57fa\u4e8e\u6d41\u7684\u751f\u6210\u6a21\u578b\u91c7\u7528\u7279\u6b8a\u7684\u7f51\u7edc\u7ed3\u6784\u7684\u8bbe\u8ba1\uff0c\u5c06Encoder\u8bbe\u8ba1\u4e3a\u53ef\u9006\u7684\uff08invertible\uff09\uff0c\u5728\u8bad\u7ec3\u9636\u6bb5\u5582\u5165\u591a\u5f20\u56fe\u7247\uff0c\u671f\u5f85\u6a21\u578b\u7684\u5411\u91cf\u7b26\u5408\u67d0\u4e2a\u968f\u673a\u5206\u5e03\u3002\u800c\u5728\u9884\u6d4b\u9636\u6bb5\uff0c\u7531\u4e8eEncoder\u662f\u53ef\u9006\u7684\uff0c\u8f93\u5165\u4ece\u8be5\u968f\u673a\u5206\u5e03\u4e2dsample\u51fa\u6765\u7684\u5411\u91cf\uff0c\u671f\u5f85\u8f93\u51fa\u5bf9\u5e94\u7684\u56fe\u50cf\u3002"),(0,s.kt)("p",null,"\u6ce8\u610f\uff0c\u7531\u4e8eEncoder\u662f\u53ef\u9006\u7684\uff0c\u5728\u8bad\u7ec3\u9636\u6bb5\u5176\u8f93\u5165\u7684\u56fe\u7247\u77e9\u9635\u7684\u5f62\u72b6\u5e94\u8be5\u7b49\u4e8e\u8f93\u51fa\u7684\u968f\u673a\u5206\u5e03\u5411\u91cf\u7684\u5f62\u72b6\uff0c\u5728\u63a8\u7406\u9636\u6bb5\u4ea6\u7136\u3002"),(0,s.kt)("p",null,(0,s.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_imagesimage-20231127111749208.png",alt:"image-20231127111749208"})),(0,s.kt)("h3",{id:"\u751f\u6210\u5bf9\u6297\u7f51\u7edcgan"},"\u751f\u6210\u5bf9\u6297\u7f51\u7edc\uff08GAN\uff09"),(0,s.kt)("p",null,"GAN\u6a21\u578b\u7684\u7ed3\u6784\u5206\u4e3aGenerator\u548cDiscriminator\uff0c\u5176\u4e2dGenerator\u63a5\u53d7\u6765\u81ea\u968f\u673a\u5206\u5e03\u7684\u5411\u91cf\uff0c\u4ea7\u751f\u9884\u671f\u56fe\u50cf\uff1bDiscriminator\u63a5\u53d7\u751f\u6210\u5668\u8f93\u51fa\u7684\u56fe\u50cf\u6216\u771f\u5b9e\u56fe\u50cf\uff0c\u8f93\u51fa\u8f93\u5165\u7684\u56fe\u50cf\u662f\u771f\u5b9e\u56fe\u50cf\u7684\u6982\u7387\u3002\u5728\u8bad\u7ec3\u8fc7\u7a0b\u4e2d\uff0c\u901a\u8fc7\u56fa\u5b9a\u751f\u6210\u5668\u53c2\u6570\u6765\u66f4\u65b0\u8fa8\u522b\u5668\u53c2\u6570\u3001\u56fa\u5b9a\u8fa8\u522b\u5668\u53c2\u6570\u66f4\u65b0\u751f\u6210\u5668\u53c2\u6570\u7684\u5f80\u590d\u4ea4\u66ff\u8bad\u7ec3\u6765\u5f62\u6210\u201c\u4e24\u4e2a\u7f51\u7edc\u5bf9\u6297\u201d\u7684\u6548\u679c\uff0c\u4ece\u800c\u4f7f\u5f97\u751f\u6210\u5668\u751f\u6210\u7684\u56fe\u50cf\u66f4\u903c\u771f\uff08\u4e0e\u8f93\u5165\u7684\u771f\u5b9e\u56fe\u50cf\u66f4\u8fd1\u4f3c\uff09\u3001\u8fa8\u522b\u5668\u8bc6\u522b\u662f\u5426\u662f\u8f93\u5165\u7684\u771f\u5b9e\u56fe\u50cf\u7684\u7cbe\u786e\u5ea6\u66f4\u9ad8\u3002"),(0,s.kt)("p",null,(0,s.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_imagesimage-20231127113242641.png",alt:"image-20231127113242641"})),(0,s.kt)("h3",{id:"\u6269\u6563\u6a21\u578bdiffusion-model"},"\u6269\u6563\u6a21\u578b\uff08Diffusion Model\uff09"),(0,s.kt)("p",null,"\u6269\u6563\u6a21\u578b\u7684\u6838\u5fc3\u601d\u60f3\u662f\u5bf9\u8f93\u5165\u7684\u56fe\u7247\u52a0\u5165\u566a\u58f0\u4f7f\u5176\u6210\u4e3a\u4ece\u67d0\u4e00\u968f\u673a\u5206\u5e03sample\u51fa\u7684\u5411\u91cf\uff0c\u5e76\u5728\u8fd9\u4e2a\u8fc7\u7a0b\u4e2d\u8bad\u7ec3\u51faNoise Predictor\uff1b\u5728\u751f\u6210\u56fe\u7247\u65f6\uff0c\u8f93\u5165\u4ece\u8be5\u968f\u673a\u5206\u5e03\u4e2dsample\u51fa\u7684\u5411\u91cf\uff0c\u4f7f\u7528\u8bad\u7ec3\u51fa\u7684Noise Predictor\u5bf9\u566a\u58f0denoise\u4ece\u800c\u83b7\u5f97\u751f\u6210\u7684\u56fe\u7247\u3002"),(0,s.kt)("p",null,(0,s.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_imagesimage-20231127112447752.png",alt:"image-20231127112447752"})),(0,s.kt)("p",null,"\u4ee5",(0,s.kt)("a",{parentName:"p",href:"https://arxiv.org/abs/2006.11239"},"DDPM\uff08Denoising Diffusion Probabilistic Models\uff09"),"\u6a21\u578b\u4e3a\u4f8b\uff0c\u6a21\u578b\u5728denoise\u65f6\u4e3a\u6bcf\u4e2adenoise\u6b65\u9aa4\u8d4b\u4e88\u4e00\u4e2a\u7f16\u53f7\uff0c\u8d8a\u65e9\u8fdb\u884cdenoise\u7684\u6b65\u9aa4\u7f16\u53f7\u8d8a\u5927\uff0c\u56e0\u6b64\uff0c\u8fd9\u4e2a\u7f16\u53f7\u4e5f\u4ee3\u8868\u7740\u56fe\u50cf\u4e2d\u566a\u58f0\u7684\u4e25\u91cd\u7a0b\u5ea6\u3002\u5728Denoise\u6a21\u5757\u4e2d\uff0c\u6a21\u578b\u6839\u636e\u8f93\u5165\u7684\u5e26\u6709\u566a\u58f0\u7684\u56fe\u7247\u3001\u6587\u5b57prompt\u4ee5\u53ca\u566a\u58f0\u7684\u4e25\u91cd\u7a0b\u5ea6\uff08\u5373denoise\u7684\u6b65\u9aa4\uff09\u9884\u6d4b\u51fa\u8be5\u56fe\u7247\u4e2d\u566a\u58f0\u7684\u5206\u5e03\uff0c\u7136\u540e\u5c06\u8f93\u5165\u7684\u56fe\u7247\u4e2d\u51cf\u53bb\u9884\u6d4b\u51fa\u7684\u566a\u58f0\u5f97\u5230denoise\u540e\u7684\u56fe\u7247\u3002"),(0,s.kt)("p",null,"Denoise\u6a21\u5757\u7684\u76ee\u6807\u662f\u9884\u6d4b\u51fa\u8f93\u5165\u7684\u566a\u58f0\u56fe\u7247\u4e2d\u7684\u566a\u58f0\uff0c\u5176\u8d44\u6599\u53ef\u4ee5\u901a\u8fc7\u5bf9\u6570\u636e\u96c6\u4e2d\u7684\u56fe\u7247\u4e0d\u65ad\u52a0\u5165\u4eceGaussian Distribution\u4e2dsample\u51fa\u7684\u566a\u58f0\u7684\u65b9\u6cd5\u6765\u83b7\u5f97\uff0c\u8fd9\u4e2a",(0,s.kt)("strong",{parentName:"p"},"\u52a0\u566a\u58f0\u7684\u8fc7\u7a0b\u6211\u4eec\u79f0\u4e3aForward Process or Diffusion Process"),"\u3002\u6b64\u65f6\u5c06\u52a0\u5165\u566a\u58f0\u540e\u7684\u56fe\u7247\u3001\u6587\u5b57prompt\u4ee5\u53cadenoise\u7684\u6b65\u9aa4\u5e8f\u53f7\u4f5c\u4e3a\u8f93\u5165\uff0csample\u51fa\u7684\u566a\u58f0\u4f5c\u4e3aGround Truth\u5bf9noise predictor\u8fdb\u884c\u8bad\u7ec3\u3002"))}c.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/en/assets/js/73151820.8e50e653.js b/en/assets/js/73151820.8e50e653.js new file mode 100644 index 000000000..5adc68fc6 --- /dev/null +++ b/en/assets/js/73151820.8e50e653.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunknpy_notebook=self.webpackChunknpy_notebook||[]).push([[9203],{3905:(e,n,t)=>{t.d(n,{Zo:()=>u,kt:()=>k});var r=t(7294);function o(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function i(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function a(e){for(var n=1;n=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var l=r.createContext({}),s=function(e){var n=r.useContext(l),t=n;return e&&(t="function"==typeof e?e(n):a(a({},n),e)),t},u=function(e){var n=s(e.components);return r.createElement(l.Provider,{value:n},e.children)},p="mdxType",d={inlineCode:"code",wrapper:function(e){var n=e.children;return r.createElement(r.Fragment,{},n)}},m=r.forwardRef((function(e,n){var t=e.components,o=e.mdxType,i=e.originalType,l=e.parentName,u=c(e,["components","mdxType","originalType","parentName"]),p=s(t),m=o,k=p["".concat(l,".").concat(m)]||p[m]||d[m]||i;return t?r.createElement(k,a(a({ref:n},u),{},{components:t})):r.createElement(k,a({ref:n},u))}));function k(e,n){var t=arguments,o=n&&n.mdxType;if("string"==typeof e||o){var i=t.length,a=new Array(i);a[0]=m;var c={};for(var l in n)hasOwnProperty.call(n,l)&&(c[l]=n[l]);c.originalType=e,c[p]="string"==typeof e?e:o,a[1]=c;for(var s=2;s{t.r(n),t.d(n,{assets:()=>l,contentTitle:()=>a,default:()=>d,frontMatter:()=>i,metadata:()=>c,toc:()=>s});var r=t(7462),o=(t(7294),t(3905));const i={},a="GeekOS project 0\u7684\u5b9e\u73b0",c={unversionedId:"Curriculum/\u64cd\u4f5c\u7cfb\u7edf\u8bfe\u8bbe/GeekOS-project-0",id:"Curriculum/\u64cd\u4f5c\u7cfb\u7edf\u8bfe\u8bbe/GeekOS-project-0",title:"GeekOS project 0\u7684\u5b9e\u73b0",description:"\u5728\u4e0a\u4e00\u7bc7\u535a\u5ba2\u4e2d\u6211\u4eec\u5b8c\u6210\u4e86GeekOS\u73af\u5883\u7684\u914d\u7f6e\uff0c\u4e0b\u9762\u6211\u4eec\u6765\u9a8c\u8bc1\u73af\u5883\u914d\u7f6e\u7684\u6210\u529f\u4e0e\u5426\u4ee5\u53caproject 0\u7684\u5b9e\u73b0\u3002",source:"@site/docs/Curriculum/4-\u64cd\u4f5c\u7cfb\u7edf\u8bfe\u8bbe/2-GeekOS-project-0.md",sourceDirName:"Curriculum/4-\u64cd\u4f5c\u7cfb\u7edf\u8bfe\u8bbe",slug:"/Curriculum/\u64cd\u4f5c\u7cfb\u7edf\u8bfe\u8bbe/GeekOS-project-0",permalink:"/en/docs/Curriculum/\u64cd\u4f5c\u7cfb\u7edf\u8bfe\u8bbe/GeekOS-project-0",draft:!1,tags:[],version:"current",sidebarPosition:2,frontMatter:{},sidebar:"curriculum",previous:{title:"Linux\u7cfb\u7edf\u4e0bGeekOS\u7684\u73af\u5883\u914d\u7f6e",permalink:"/en/docs/Curriculum/\u64cd\u4f5c\u7cfb\u7edf\u8bfe\u8bbe/Environment-Configuration"}},l={},s=[{value:"1. \u7f16\u5199C\u8bed\u8a00\u4ee3\u7801",id:"1-\u7f16\u5199c\u8bed\u8a00\u4ee3\u7801",level:2},{value:"2. \u4f7f\u7528Linux\u7684\u7f16\u8bd1\u7cfb\u7edf\u5bf9C\u8bed\u8a00\u4ee3\u7801\u8fdb\u884c\u7f16\u8bd1",id:"2-\u4f7f\u7528linux\u7684\u7f16\u8bd1\u7cfb\u7edf\u5bf9c\u8bed\u8a00\u4ee3\u7801\u8fdb\u884c\u7f16\u8bd1",level:2}],u={toc:s},p="wrapper";function d(e){let{components:n,...t}=e;return(0,o.kt)(p,(0,r.Z)({},u,t,{components:n,mdxType:"MDXLayout"}),(0,o.kt)("h1",{id:"geekos-project-0\u7684\u5b9e\u73b0"},"GeekOS project 0\u7684\u5b9e\u73b0"),(0,o.kt)("p",null,"\u5728\u4e0a\u4e00\u7bc7\u535a\u5ba2\u4e2d\u6211\u4eec\u5b8c\u6210\u4e86GeekOS\u73af\u5883\u7684\u914d\u7f6e\uff0c\u4e0b\u9762\u6211\u4eec\u6765\u9a8c\u8bc1\u73af\u5883\u914d\u7f6e\u7684\u6210\u529f\u4e0e\u5426\u4ee5\u53caproject 0\u7684\u5b9e\u73b0\u3002"),(0,o.kt)("h2",{id:"1-\u7f16\u5199c\u8bed\u8a00\u4ee3\u7801"},"1. \u7f16\u5199C\u8bed\u8a00\u4ee3\u7801"),(0,o.kt)("p",null,"\u7f16\u5199geekos-version/src/projecti/src/geekos/main.c\u6587\u4ef6"),(0,o.kt)("p",null,"\u7f16\u5199\u51fd\u6570project0\u5b9e\u73b0\u68c0\u6d4b\u952e\u76d8\u8f93\u5165Ctrl+d\u7ed3\u675f\u7ebf\u7a0b\u3002"),(0,o.kt)("pre",null,(0,o.kt)("code",{parentName:"pre",className:"language-cpp"},"void project0(){\n Print(\"To Exit hit Ctrl + d.\\n\");\n Keycode keycode;\n while(1)\n {\n if(Read_Key(&keycode))\n {\n if(!((keycode & KEY_SPECIAL_FLAG) || (keycode & KEY_RELEASE_FLAG)))// \u4e0d\u662f\u7279\u6b8a\u952e\u6216\u8005\u5f39\u8d77\n {\n int asciiCode = keycode & 0xff;//d\n if((keycode & KEY_CTRL_FLAG)==KEY_CTRL_FLAG && asciiCode=='d')//ctrl+d\n {\n Print(\"\\n---------Adios!---------\\n\");\n # \u8fd9\u91cc\u9700\u8981\u6ce8\u610f\u7d20\u8d28\n Exit(1);\n }else\n {\n Print(\"%c\",(asciiCode=='\\r') ? '\\n' : asciiCode);\n }\n }\n }\n }\n}\n")),(0,o.kt)("p",null,"\u5728main\u51fd\u6570\u4e2d\u6dfb\u52a0\u4ee5\u4e0b\u4ee3\u7801\uff0c\u5b9e\u73b0\u81ea\u5b9a\u4e49\u51fd\u6570\u7684\u8c03\u7528\uff0c\u521b\u5efa\u7ebf\u7a0b\u3002"),(0,o.kt)("pre",null,(0,o.kt)("code",{parentName:"pre",className:"language-cpp"}," struct Kernel_Thread *thread;\n thread = Start_Kernel_Thread(&project0,0,PRIORITY_NORMAL,false);\n")),(0,o.kt)("p",null,"\u603b\u4f53\u4ee3\u7801"),(0,o.kt)("pre",null,(0,o.kt)("code",{parentName:"pre",className:"language-cpp"},'/*\n * GeekOS C code entry point\n * Copyright (c) 2001,2003,2004 David H. Hovemeyer \n * Copyright (c) 2003, Jeffrey K. Hollingsworth \n * Copyright (c) 2004, Iulian Neamtiu \n * $Revision: 1.51 $\n * \n * This is free software. You are permitted to use,\n * redistribute, and modify it as specified in the file "COPYING".\n */\n\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n\nvoid project0(){\n Print("To Exit hit Ctrl + d.\\n");\n Keycode keycode;\n while(1)\n {\n if(Read_Key(&keycode))\n {\n if(!((keycode & KEY_SPECIAL_FLAG) || (keycode & KEY_RELEASE_FLAG)))// \u4e0d\u662f\u7279\u6b8a\u952e\u6216\u8005\u5f39\u8d77\n {\n int asciiCode = keycode & 0xff;//d\n if((keycode & KEY_CTRL_FLAG)==KEY_CTRL_FLAG && asciiCode==\'d\')//ctrl+d\n {\n Print("\\n---------Adios! Motherfucker!---------\\n");\n Exit(1);\n }else\n {\n Print("%c",(asciiCode==\'\\r\') ? \'\\n\' : asciiCode);\n }\n }\n }\n }\n}\n\n\n/*\n * Kernel C code entry point.\n * Initializes kernel subsystems, mounts filesystems,\n * and spawns init process.\n */\nvoid Main(struct Boot_Info* bootInfo)\n{\n Init_BSS();\n Init_Screen();\n Init_Mem(bootInfo);\n Init_CRC32();\n Init_TSS();\n Init_Interrupts();\n Init_Scheduler();\n Init_Traps();\n Init_Timer();\n Init_Keyboard();\n\n Set_Current_Attr(ATTRIB(BLACK, GREEN|BRIGHT));\n Print("Welcome to GeekOS!\\n");\n Set_Current_Attr(ATTRIB(BLACK, GRAY));\n\n // TODO("Start a kernel thread to echo pressed keys and print counts");\n\n struct Kernel_Thread *thread;\n thread = Start_Kernel_Thread(&project0,0,PRIORITY_NORMAL,false);\n\n /* Now this thread is done. */\n Exit(0);\n}\n')),(0,o.kt)("h2",{id:"2-\u4f7f\u7528linux\u7684\u7f16\u8bd1\u7cfb\u7edf\u5bf9c\u8bed\u8a00\u4ee3\u7801\u8fdb\u884c\u7f16\u8bd1"},"2. \u4f7f\u7528Linux\u7684\u7f16\u8bd1\u7cfb\u7edf\u5bf9C\u8bed\u8a00\u4ee3\u7801\u8fdb\u884c\u7f16\u8bd1"),(0,o.kt)("p",null,"\u6bcf\u4e00\u4e2a\u9879\u76ee\u7684\u7f16\u8bd1\u90fd\u5728geekos-version/src/projecti/build\u6587\u4ef6\u5939\u4e0b\u8fdb\u884c\uff0c\u5373\u8981\u5728\u7ec8\u7aef\u4e2d\u901a\u8fc7",(0,o.kt)("inlineCode",{parentName:"p"},"cd"),"\u8fdb\u5165\u8be5\u76ee\u5f55\u3002"),(0,o.kt)("p",null,"\u6267\u884c"),(0,o.kt)("pre",null,(0,o.kt)("code",{parentName:"pre",className:"language-bash"},"make depend\nmake\n")),(0,o.kt)("p",null,"\u6b64\u65f6\uff0c\u8be5\u76ee\u5f55\u4e0b\u4f1a\u751f\u6210bochs.out\u3001depend.mak\u4ee5\u53cafd.img\u6587\u4ef6\uff0cbochs.out\u6587\u4ef6\u662f\u65e5\u5fd7\u8f93\u51fa\u6587\u4ef6\uff0cdepend.mak\u662f\u7f16\u8bd1\u4e2d\u95f4\u751f\u6210\u7684\u6587\u4ef6\uff0c\u6700\u7ec8\u751f\u6210\u7684fd.img\u662f\u6700\u91cd\u8981\u7684GeekOS\u6620\u50cf\u6587\u4ef6\uff0c\u6709\u4e86\u5b83\u624d\u80fd\u4f7f\u7528bochs\u8fd0\u884cGeekOS\u64cd\u4f5c\u7cfb\u7edf\u3002",(0,o.kt)("strong",{parentName:"p"},"\u611f\u6069\u5b83\uff01")),(0,o.kt)("p",null,"\u76ee\u5f55\u4e0b\u7684\u6587\u4ef6\u5e94\u8be5\u662f\u8fd9\u6837\u7684\u7ed3\u6784\uff1a"),(0,o.kt)("p",null,(0,o.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_images/202304251431067.png",alt:null})),(0,o.kt)("p",null,"\u4e0b\u9762\u5c31\u53ef\u4ee5\u4f7f\u7528bochs\u8fd0\u884cGeekOS\u7cfb\u7edf\u4e86\uff0c\u53ef\u4ee5\u8bf4bochs\u7684\u8fd0\u884c\u4f9d\u8d56\u4e24\u4e2a\u6587\u4ef6\uff0c\u4e00\u4e2a\u662f",(0,o.kt)("strong",{parentName:"p"},"\u914d\u7f6e\u6587\u4ef6.bochsrc"),"\uff0c\u4e00\u4e2a\u662f",(0,o.kt)("strong",{parentName:"p"},"\u6620\u50cf\u6587\u4ef6fd.img"),"\uff0c\u6620\u50cf\u6587\u4ef6\u7684\u52a0\u8f7d\u8def\u5f84\u9700\u8981\u5728.bochsrc\u6587\u4ef6\u4e2d\u5b9a\u4e49\uff0c\u5728\u73af\u5883\u914d\u7f6e\u7684\u535a\u5ba2\u4e2d\u5df2\u7ecf\u4ecb\u7ecd\u8fc7\u4e86\u3002\u8fd9\u91cc\u518d\u8d34\u4e00\u4e0b\u5185\u5bb9\u3002"),(0,o.kt)("pre",null,(0,o.kt)("code",{parentName:"pre",className:"language-makefile"},"# An example .bochsrc file.\n# You will need to edit these lines to reflect your system.\nvgaromimage: file=/usr/local/share/bochs/VGABIOS-lgpl-latest\n# \u8bf7\u6839\u636e\u81ea\u5df1\u7684\u5b9e\u9645\u5b89\u88c5\u8def\u5f84\u66f4\u6539\nromimage: file=/usr/local/share/bochs/BIOS-bochs-latest\n# \u8bf7\u6839\u636e\u81ea\u5df1\u7684\u5b9e\u9645\u5b89\u88c5\u8def\u5f84\u66f4\u6539\nmegs: 8\nboot: a\nfloppya: 1_44=fd.img, status=inserted\n#floppya: 1_44=fd_aug.img, status=inserted\nlog: ./bochs.out\n# keyboard_serial_delay: 200\n# vga_update_interval: 300000\nmouse: enabled=0\nprivate_colormap: enabled=0\n# i440fxsupport: enabled=0\n# Uncomment this to write all bochs debugging messages to\n# bochs.out. This produces a lot of output, but can be very\n# useful for debugging the kernel.\n#debug: action=report\n")),(0,o.kt)("p",null,"\u5728\u8fd9\u4e2a\u76ee\u5f55\u4e0b\u6253\u5f00\u7ec8\u7aef\uff0c\u6267\u884c"),(0,o.kt)("pre",null,(0,o.kt)("code",{parentName:"pre",className:"language-bash"},"bochs\n")),(0,o.kt)("p",null,(0,o.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_images/202304251442853.png",alt:null})),(0,o.kt)("p",null,"\u9009\u62e96\uff0c\u6309\u4e0b\u56de\u8f66"),(0,o.kt)("p",null,(0,o.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_images/202304251444987.png",alt:null})),(0,o.kt)("p",null,"\u53ef\u80fd\u4f1a\u51fa\u73b0\u9ed1\u5c4f\u60c5\u51b5\uff0c\u8fd9\u662f\u56e0\u4e3a\u8fdb\u5165\u4e86\u8c03\u8bd5\u6a21\u5f0f\uff0c\u7ec8\u7aef\u6b63\u5728\u7b49\u5f85\u547d\u4ee4\uff0c\u5728\u7ec8\u7aef\u8f93\u5165"),(0,o.kt)("pre",null,(0,o.kt)("code",{parentName:"pre",className:"language-bash"},"c\n")),(0,o.kt)("p",null,"\u5373\u53ef\u5b8c\u6210bochs\u7684\u6b63\u5f0f\u542f\u52a8\uff0c\u6700\u7ec8\u7684\u6548\u679c"),(0,o.kt)("p",null,(0,o.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_images/202304251447741.png",alt:null})))}d.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/en/assets/js/73a0803d.50d6d298.js b/en/assets/js/73a0803d.50d6d298.js new file mode 100644 index 000000000..0f949c368 --- /dev/null +++ b/en/assets/js/73a0803d.50d6d298.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunknpy_notebook=self.webpackChunknpy_notebook||[]).push([[1196],{3905:(a,e,t)=>{t.d(e,{Zo:()=>i,kt:()=>h});var n=t(7294);function m(a,e,t){return e in a?Object.defineProperty(a,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):a[e]=t,a}function p(a,e){var t=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable}))),t.push.apply(t,n)}return t}function s(a){for(var e=1;e=0||(m[t]=a[t]);return m}(a,e);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(a);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(a,t)&&(m[t]=a[t])}return m}var l=n.createContext({}),N=function(a){var e=n.useContext(l),t=e;return a&&(t="function"==typeof a?a(e):s(s({},e),a)),t},i=function(a){var e=N(a.components);return n.createElement(l.Provider,{value:e},a.children)},o="mdxType",k={inlineCode:"code",wrapper:function(a){var e=a.children;return n.createElement(n.Fragment,{},e)}},c=n.forwardRef((function(a,e){var t=a.components,m=a.mdxType,p=a.originalType,l=a.parentName,i=r(a,["components","mdxType","originalType","parentName"]),o=N(t),c=m,h=o["".concat(l,".").concat(c)]||o[c]||k[c]||p;return t?n.createElement(h,s(s({ref:e},i),{},{components:t})):n.createElement(h,s({ref:e},i))}));function h(a,e){var t=arguments,m=e&&e.mdxType;if("string"==typeof a||m){var p=t.length,s=new Array(p);s[0]=c;var r={};for(var l in e)hasOwnProperty.call(e,l)&&(r[l]=e[l]);r.originalType=a,r[o]="string"==typeof a?a:m,s[1]=r;for(var N=2;N{t.r(e),t.d(e,{assets:()=>l,contentTitle:()=>s,default:()=>k,frontMatter:()=>p,metadata:()=>r,toc:()=>N});var n=t(7462),m=(t(7294),t(3905));const p={},s="\u590f\u4ee4\u8425\u9762\u8bd5\u6570\u5b66\u90e8\u5206\u590d\u4e60",r={unversionedId:"Tui-Mian/\u6570\u5b66/\u590f\u4ee4\u8425\u9762\u8bd5\u6570\u5b66\u90e8\u5206\u590d\u4e60",id:"Tui-Mian/\u6570\u5b66/\u590f\u4ee4\u8425\u9762\u8bd5\u6570\u5b66\u90e8\u5206\u590d\u4e60",title:"\u590f\u4ee4\u8425\u9762\u8bd5\u6570\u5b66\u90e8\u5206\u590d\u4e60",description:"\u4e00\u3001\u7ebf\u6027\u4ee3\u6570",source:"@site/docs/Tui-Mian/\u6570\u5b66/\u590f\u4ee4\u8425\u9762\u8bd5\u6570\u5b66\u90e8\u5206\u590d\u4e60.md",sourceDirName:"Tui-Mian/\u6570\u5b66",slug:"/Tui-Mian/\u6570\u5b66/\u590f\u4ee4\u8425\u9762\u8bd5\u6570\u5b66\u90e8\u5206\u590d\u4e60",permalink:"/en/docs/Tui-Mian/\u6570\u5b66/\u590f\u4ee4\u8425\u9762\u8bd5\u6570\u5b66\u90e8\u5206\u590d\u4e60",draft:!1,tags:[],version:"current",frontMatter:{},sidebar:"tui_mian",previous:{title:"\u7ecf\u9a8c\u8d34\uff1a2023\u5e74\u53cc\u975e\u8ba1\u7b97\u673a\u4fdd\u7814\u7ecf\u5386",permalink:"/en/docs/Tui-Mian/Summary"},next:{title:"\u6982\u7387\u8bba",permalink:"/en/docs/Tui-Mian/\u6570\u5b66/\u6982\u7387\u8bba"}},l={},N=[{value:"\u4e00\u3001\u7ebf\u6027\u4ee3\u6570",id:"\u4e00\u7ebf\u6027\u4ee3\u6570",level:2},{value:"\u4e8c\u3001\u6982\u7387\u8bba",id:"\u4e8c\u6982\u7387\u8bba",level:2}],i={toc:N},o="wrapper";function k(a){let{components:e,...t}=a;return(0,m.kt)(o,(0,n.Z)({},i,t,{components:e,mdxType:"MDXLayout"}),(0,m.kt)("h1",{id:"\u590f\u4ee4\u8425\u9762\u8bd5\u6570\u5b66\u90e8\u5206\u590d\u4e60"},"\u590f\u4ee4\u8425\u9762\u8bd5\u6570\u5b66\u90e8\u5206\u590d\u4e60"),(0,m.kt)("h2",{id:"\u4e00\u7ebf\u6027\u4ee3\u6570"},"\u4e00\u3001\u7ebf\u6027\u4ee3\u6570"),(0,m.kt)("p",null,(0,m.kt)("strong",{parentName:"p"},"\u7ebf\u6027\u76f8\u5173\u4e0e\u7ebf\u6027\u65e0\u5173\uff1a"),"\u5411\u91cf\u7ec4\u4e2d\u7684\u4efb\u4e00\u5411\u91cf\u90fd\u4e0d\u80fd\u88ab\u5176\u5b83\u5411\u91cf\u7ebf\u6027\u8868\u793a\uff0c\u5c31\u8bf4\u5411\u91cf\u7ec4\u7ebf\u6027\u65e0\u5173\uff1b\u5426\u5219\u5c31\u662f\u7ebf\u6027\u76f8\u5173\u3002"),(0,m.kt)("p",null,(0,m.kt)("strong",{parentName:"p"},"\u77e9\u9635\u8f6c\u7f6e\uff1a"),"\u5c06\u77e9\u9635\u7684\u884c\u548c\u5217\u4e92\u76f8\u4ea4\u6362"),(0,m.kt)("p",null,(0,m.kt)("strong",{parentName:"p"},"\u77e9\u9635\u6c42\u9006\uff1a"),"\u5bf9\u4e8e\u65b9\u9635A\uff0c\u82e5\u5b58\u5728\u65b9\u9635B\u4f7f\u5f97AB=BA=\u5355\u4f4d\u65b9\u9635I\uff0c\u5219\u65b9\u9635B\u4e3a\u65b9\u9635A\u7684\u9006\u77e9\u9635\uff0c\u8bb0\u4e3a",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("msup",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msup"},"A"),(0,m.kt)("mrow",{parentName:"msup"},(0,m.kt)("mo",{parentName:"mrow"},"\u2212"),(0,m.kt)("mn",{parentName:"mrow"},"1")))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"A^{-1}")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.8141em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"A"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.8141em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-3.063em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"\u2212"),(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"1")))))))))))))),(0,m.kt)("ol",null,(0,m.kt)("li",{parentName:"ol"},(0,m.kt)("p",{parentName:"li"},(0,m.kt)("strong",{parentName:"p"},"\u7ebf\u6027\u4ee3\u6570\u4e2d\u7684\u521d\u7b49\u884c\u53d8\u6362\u3002")),(0,m.kt)("ol",{parentName:"li"},(0,m.kt)("li",{parentName:"ol"},"\u4ea4\u6362\u4e24\u884c"),(0,m.kt)("li",{parentName:"ol"},"\u7528\u975e\u96f6\u5e38\u6570\u4e58\u4ee5\u67d0\u4e00\u884c"),(0,m.kt)("li",{parentName:"ol"},"\u7528\u4e00\u884c\u7684\u500d\u6570\u52a0\u5230\u53e6\u4e00\u884c\u4e0a"))),(0,m.kt)("li",{parentName:"ol"},(0,m.kt)("p",{parentName:"li"},(0,m.kt)("strong",{parentName:"p"},"\u5982\u4f55\u7406\u89e3\u77e9\u9635\u7684\u79e9\u3002")),(0,m.kt)("p",{parentName:"li"},"\u77e9\u9635\u7684\u79e9\u662f\u6307\u77e9\u9635\u7684\u5217\u7a7a\u95f4\uff08\u6216\u884c\u7a7a\u95f4\uff09\u7684\u7ef4\u6570\uff0c\u7b80\u800c\u8a00\u4e4b\u662f\u77e9\u9635\u4e2d\u6240\u6709\u975e\u96f6\u884c\uff08\u6216\u5217\uff09\u5411\u91cf\u6784\u6210\u7684\u96c6\u5408\u6240\u7ec4\u6210\u7684\u6700\u5927\u7ebf\u6027\u65e0\u5173\u7ec4\u7684\u5411\u91cf\u4e2a\u6570\u3002"),(0,m.kt)("admonition",{parentName:"li",type:"tip"},(0,m.kt)("p",{parentName:"admonition"},"\u5b8b\u6d69\u516b\u5b57\uff1a",(0,m.kt)("strong",{parentName:"p"},"\u975e\u96f6\u5b50\u5f0f\u7684\u6700\u9ad8\u9636\u6570")),(0,m.kt)("p",{parentName:"admonition"},"\u4efb\u610f\u77e9\u9635\u7684\u884c\u79e9\u90fd\u7b49\u4e8e\u5217\u79e9\u3002"))),(0,m.kt)("li",{parentName:"ol"},(0,m.kt)("p",{parentName:"li"},(0,m.kt)("strong",{parentName:"p"},"\u77e9\u9635\u7684\u79e9\u4e0e\u7ebf\u6027\u65b9\u7a0b\u7ec4\u89e3\u7684\u5173\u7cfb\u3002")),(0,m.kt)("p",{parentName:"li"},"\u5bf9\u4e8en\u5143\u7ebf\u6027\u65b9\u7a0b\u7ec4\u800c\u8a00\uff1a"),(0,m.kt)("ol",{parentName:"li"},(0,m.kt)("li",{parentName:"ol"},(0,m.kt)("p",{parentName:"li"},"\u5f53\u7cfb\u6570\u77e9\u9635\u7684\u79e9\u7b49\u4e8e\u589e\u5e7f\u77e9\u9635\u7684\u79e9\u4e14\u79e9\u7b49\u4e8en\u65f6\uff0c\u6709\u552f\u4e00\u89e3")),(0,m.kt)("li",{parentName:"ol"},(0,m.kt)("p",{parentName:"li"},"\u5f53\u7cfb\u6570\u77e9\u9635\u7684\u79e9\u7b49\u4e8e\u589e\u5e7f\u77e9\u9635\u7684\u79e9\u4e14\u79e9\u5927\u4e8en\u65f6\uff0c\u6709\u65e0\u7a77\u591a\u89e3")),(0,m.kt)("li",{parentName:"ol"},(0,m.kt)("p",{parentName:"li"},"\u5f53\u7cfb\u6570\u77e9\u9635\u7684\u79e9\u4e0d\u7b49\u4e8e\u589e\u5e7f\u77e9\u9635\u7684\u79e9\u65f6\uff0c\u65e0\u89e3"),(0,m.kt)("admonition",{parentName:"li",type:"tip"},(0,m.kt)("p",{parentName:"admonition"},"\u5f53\u7cfb\u6570\u77e9\u9635\u7684\u79e9\u5c0f\u4e8e\u589e\u5e7f\u77e9\u9635\u7684\u79e9\u65f6\uff0c\u8bf4\u660e\u7cfb\u6570\u77e9\u9635\u4e2d\u7684\u67d0\u4e00\u5217\u5411\u91cf\uff08\u6216\u884c\u5411\u91cf\uff09\u53ef\u4ee5\u88ab\u5176\u4ed6\u5217\u5411\u91cf\uff08\u6216\u884c\u5411\u91cf\uff09\u7ebf\u6027\u8868\u793a\uff0c\u6b64\u65f6\u8be5\u884c\u4e0d\u80fd\u63d0\u4f9b\u989d\u5916\u7684\u7ebf\u6027\u72ec\u7acb\u4fe1\u606f"))))),(0,m.kt)("li",{parentName:"ol"},(0,m.kt)("p",{parentName:"li"},(0,m.kt)("strong",{parentName:"p"},"\u7b80\u8ff0\u5411\u91cf\u7ec4\u7ebf\u6027\u65e0\u5173\u7684\u542b\u4e49\u3002")),(0,m.kt)("p",{parentName:"li"},"\u542b\u4e49\uff1a\u82e5\u4e00\u4e2a\u5411\u91cf\u7ec4\u662f\u7ebf\u6027\u65e0\u5173\u7684\uff0c\u5219\u8be5\u5411\u91cf\u7ec4\u4e2d\u7684\u6bcf\u4e2a\u5411\u91cf\u90fd\u4e0d\u80fd\u8868\u793a\u6210\u5176\u4ed6\u5411\u91cf\u7684\u7ebf\u6027\u7ec4\u5408\u3002"),(0,m.kt)("p",{parentName:"li"},"\u610f\u4e49\uff1a\u5982\u679c\u4e00\u4e2a\u5411\u91cf\u7ec4\u7ebf\u6027\u65e0\u5173\uff0c\u90a3\u4e48\u8be5\u5411\u91cf\u7ec4\u6240\u5f20\u6210\u7684\u7a7a\u95f4\u5c31\u662f\u4e00\u4e2a\u6700\u5c0f\u7ef4\u5ea6\u7684\u5411\u91cf\u7a7a\u95f4\uff0c\u5e76\u4e14\u8be5\u5411\u91cf\u7a7a\u95f4\u4e2d\u7684\u4efb\u4f55\u5411\u91cf\u90fd\u53ef\u7531\u8fd9\u4e9b\u5411\u91cf\u7ebf\u6027\u7ec4\u5408\u8868\u793a\u3002"),(0,m.kt)("p",{parentName:"li"},"\u5224\u5b9a\u65b9\u6cd5\uff1a\u5982\u679c\u4e00\u4e2a\u5411\u91cf\u7ec4\u4e2d\u7684\u6240\u6709\u5411\u91cf\u90fd\u4e0d\u53ef\u4ee5\u7531\u5176\u4ed6\u5411\u91cf\u7ebf\u6027\u7ec4\u5408\u5f97\u5230\uff0c\u5219\u79f0\u8be5\u5411\u91cf\u7ec4\u4e3a\u7ebf\u6027\u65e0\u5173\u7684\u3002\u5426\u5219\uff0c\u5982\u679c\u5b58\u5728\u67d0\u4e2a\u5411\u91cf\u53ef\u4ee5\u8868\u793a\u6210\u5176\u4ed6\u5411\u91cf\u7684\u7ebf\u6027\u7ec4\u5408\uff0c\u5219\u8be5\u5411\u91cf\u7ec4\u5c31\u4e0d\u662f\u7ebf\u6027\u65e0\u5173\u7684\u3002")),(0,m.kt)("li",{parentName:"ol"},(0,m.kt)("p",{parentName:"li"},(0,m.kt)("strong",{parentName:"p"},"\u89e3\u91ca\u6b63\u5b9a\u77e9\u9635\u4ee5\u53ca\u534a\u6b63\u5b9a\u77e9\u9635\u3002"))),(0,m.kt)("li",{parentName:"ol"},(0,m.kt)("p",{parentName:"li"},(0,m.kt)("strong",{parentName:"p"},"\u7b80\u8ff0\u7279\u5f81\u503c\u7684\u542b\u4e49\u3002")),(0,m.kt)("p",{parentName:"li"},"\u7279\u5f81\u503c\u63cf\u8ff0\u4e86\u77e9\u9635\u5728\u7279\u5b9a\u65b9\u5411\uff08\u7279\u5f81\u5411\u91cf\u65b9\u5411\uff09\u4e0a\u7684\u7f29\u653e\u56e0\u5b50\uff0c\u7279\u5f81\u5411\u91cf\u8868\u793a\u77e9\u9635\u5728\u8fd9\u4e2a\u7279\u5b9a\u65b9\u5411\u4e0a\u7684\u4e0d\u53d8\u6027\u3002")),(0,m.kt)("li",{parentName:"ol"},(0,m.kt)("p",{parentName:"li"},(0,m.kt)("strong",{parentName:"p"},"\u7b80\u8ff0\u77e9\u9635\u5206\u89e3\u7684\u7269\u7406\u610f\u4e49\u3002")),(0,m.kt)("p",{parentName:"li"},"\u77e9\u9635\u5206\u89e3\u662f\u5c06\u4e00\u4e2a\u77e9\u9635\u8868\u793a\u4e3a\u4e00\u4e9b\u7279\u5b9a\u5f62\u5f0f\u7684\u77e9\u9635\u4e58\u79ef\u7684\u8fc7\u7a0b\u3002"),(0,m.kt)("p",{parentName:"li"},"\u77e9\u9635\u5206\u89e3\u7684\u79cd\u7c7b\u4ee5\u53ca\u7269\u7406\u610f\u4e49\uff1a"),(0,m.kt)("ul",{parentName:"li"},(0,m.kt)("li",{parentName:"ul"},"LU\u5206\u89e3\uff1a\u5c06\u77e9\u9635\u5206\u89e3\u4e3a\u4e00\u4e2a\u4e0b\u4e09\u89d2\u77e9\u9635\u548c\u4e00\u4e2a\u4e0a\u4e09\u89d2\u77e9\u9635\u7684\u4e58\u79ef\u3002\u7269\u7406\u610f\u4e49\u5305\u62ec\u89e3\u7ebf\u6027\u65b9\u7a0b\u7ec4\u3001\u8ba1\u7b97\u77e9\u9635\u7684\u884c\u5217\u5f0f\u548c\u9006\u77e9\u9635\u7b49\u3002"),(0,m.kt)("li",{parentName:"ul"},"QR\u5206\u89e3\uff1a\u5c06\u77e9\u9635\u5206\u89e3\u4e3a\u4e00\u4e2a\u6b63\u4ea4\u77e9\u9635\u548c\u4e00\u4e2a\u4e0a\u4e09\u89d2\u77e9\u9635\u7684\u4e58\u79ef\u3002\u7269\u7406\u610f\u4e49\u5305\u62ec\u6700\u5c0f\u4e8c\u4e58\u95ee\u9898\u3001\u77e9\u9635\u7684\u7279\u5f81\u503c\u8ba1\u7b97\u7b49\u3002"),(0,m.kt)("li",{parentName:"ul"},"\u7279\u5f81\u503c\u5206\u89e3\uff1a\u5c06\u77e9\u9635\u5206\u89e3\u4e3a\u4e00\u4e2a\u7279\u5f81\u5411\u91cf\u77e9\u9635\u548c\u4e00\u4e2a\u5bf9\u89d2\u77e9\u9635\u7684\u4e58\u79ef\u3002\u7269\u7406\u610f\u4e49\u5305\u62ec\u77e9\u9635\u7684\u5e42\u3001\u6307\u6570\u548c\u5bf9\u79f0\u77e9\u9635\u7684\u5bf9\u89d2\u5316\u7b49\u3002"),(0,m.kt)("li",{parentName:"ul"},"\u5947\u5f02\u503c\u5206\u89e3\uff08SVD\uff09\uff1a\u5c06\u77e9\u9635\u5206\u89e3\u4e3a\u4e00\u4e2a\u6b63\u4ea4\u77e9\u9635\u3001\u4e00\u4e2a\u5bf9\u89d2\u77e9\u9635\u548c\u4e00\u4e2a\u6b63\u4ea4\u77e9\u9635\u7684\u4e58\u79ef\u3002\u7269\u7406\u610f\u4e49\u5305\u62ec\u964d\u7ef4\u3001\u77e9\u9635\u903c\u8fd1\u548c\u56fe\u50cf\u538b\u7f29\u7b49\u3002")))),(0,m.kt)("h2",{id:"\u4e8c\u6982\u7387\u8bba"},"\u4e8c\u3001\u6982\u7387\u8bba"),(0,m.kt)("ol",null,(0,m.kt)("li",{parentName:"ol"},(0,m.kt)("p",{parentName:"li"},(0,m.kt)("strong",{parentName:"p"},"\u7b80\u8ff0\u5927\u6570\u5b9a\u7406\u3002")),(0,m.kt)("p",{parentName:"li"},"\u5927\u6570\u5b9a\u7406\u63cf\u8ff0\u4e86\u5927\u6837\u672c\u60c5\u51b5\u4e0b\u968f\u673a\u53d8\u91cf\u7684\u5747\u503c\u4e0e\u5176\u671f\u671b\u503c\u4e4b\u95f4\u7684\u5173\u7cfb\u3002\u5bf9\u4e8e",(0,m.kt)("strong",{parentName:"p"},"\u72ec\u7acb\u540c\u5206\u5e03"),"\u7684\u968f\u673a\u53d8\u91cf\u5e8f\u5217\uff0c\u968f\u7740\u6837\u672c\u6570\u91cf\u7684\u589e\u52a0\uff0c\u6837\u672c\u5747\u503c\u4f1a\u4ee5\u8f83\u9ad8\u7684\u6982\u7387\u63a5\u8fd1\u5176\u671f\u671b\u503c\u3002")),(0,m.kt)("li",{parentName:"ol"},(0,m.kt)("p",{parentName:"li"},(0,m.kt)("strong",{parentName:"p"},"\u7b80\u8ff0\u4e2d\u5fc3\u6781\u9650\u5b9a\u7406\u3002")),(0,m.kt)("p",{parentName:"li"},"\u5f53\u72ec\u7acb\u968f\u673a\u53d8\u91cf\u7684\u6570\u91cf\u8db3\u591f\u5927\u65f6\uff0c\u5b83\u4eec\u7684\u548c\uff08\u6216\u5e73\u5747\u503c\uff09\u7684\u5206\u5e03\u4f1a\u9010\u6e10\u63a5\u8fd1\u4e00\u4e2a\u6b63\u6001\u5206\u5e03\u3002",(0,m.kt)("strong",{parentName:"p"},"\u5373\u4f7f\u539f\u59cb\u968f\u673a\u53d8\u91cf\u4e0d\u670d\u4ece\u6b63\u6001\u5206\u5e03"),"\uff0c\u4f46\u5f53\u6837\u672c\u5bb9\u91cf\u8db3\u591f\u5927\u65f6\uff0c\u548c\uff08\u6216\u5e73\u5747\u503c\uff09\u7684\u5206\u5e03\u4ecd\u7136\u5448\u73b0\u51fa\u6b63\u6001\u5206\u5e03\u7684\u7279\u5f81\u3002")),(0,m.kt)("li",{parentName:"ol"},(0,m.kt)("p",{parentName:"li"},(0,m.kt)("strong",{parentName:"p"},"\u4ec0\u4e48\u662f\u5168\u6982\u7387\u516c\u5f0f\u3002")),(0,m.kt)("p",{parentName:"li"},"\u5bf9\u4e8e\u4e8b\u4ef6A\u800c\u8a00\uff0c\u5047\u8bbe\u6709\u4e00\u7ec4",(0,m.kt)("strong",{parentName:"p"},"\u4e92\u65a5\u4e14\u7a77\u5c3d"),"\u7684\u6761\u4ef6\u4e8b\u4ef6B\uff0c\u5219\u4e8b\u4ef6A\u7684\u6982\u7387\u7b49\u4e8e\u4e8b\u4ef6A\u5728\u6bcf\u4e2a\u6761\u4ef6\u4e8b\u4ef6\u4e0b\u53d1\u751f\u7684\u6982\u7387\u4e0e\u8be5\u6761\u4ef6\u4e8b\u4ef6\u53d1\u751f\u6982\u7387\u7684\u4e58\u79ef\u548c\u3002")),(0,m.kt)("li",{parentName:"ol"},(0,m.kt)("p",{parentName:"li"},(0,m.kt)("strong",{parentName:"p"},"\u4ec0\u4e48\u662f\u6700\u5927\u4f3c\u7136\u4f30\u8ba1\u3002")),(0,m.kt)("p",{parentName:"li"},"\u57fa\u672c\u601d\u60f3\u662f\u5728\u5df2\u77e5\u89c2\u6d4b\u6570\u636e\u7684\u60c5\u51b5\u4e0b\uff0c\u901a\u8fc7\u8c03\u6574\u53c2\u6570\u7684\u53d6\u503c\uff0c\u627e\u5230\u4f7f\u5f97\u89c2\u6d4b\u6570\u636e\u51fa\u73b0\u6982\u7387\u6700\u5927\u7684\u53c2\u6570\u503c\u3002"),(0,m.kt)("p",{parentName:"li"},"\u5927\u81f4\u8fc7\u7a0b\uff1a"),(0,m.kt)("ol",{parentName:"li"},(0,m.kt)("li",{parentName:"ol"},"\u6784\u5efa\u53c2\u6570\u5316\u7684\u6982\u7387\u6a21\u578b\uff0c\u5373\u6784\u5efa\u4f3c\u7136\u51fd\u6570\uff0c\u8868\u793a\u5728\u7ed9\u5b9a\u53c2\u6570\u4e0b\u89c2\u6d4b\u6570\u636e\u51fa\u73b0\u7684\u6982\u7387"),(0,m.kt)("li",{parentName:"ol"},"\u53d6\u4f3c\u7136\u51fd\u6570\u7684\u5bf9\u6570\uff0c\u65b9\u4fbf\u8ba1\u7b97\u4e0e\u4f18\u5316"),(0,m.kt)("li",{parentName:"ol"},"\u6700\u5927\u5316\u4f3c\u7136\u51fd\u6570\uff0c\u6c42\u89e3\u53c2\u6570\u7684\u6700\u4f18\u503c"))),(0,m.kt)("li",{parentName:"ol"},(0,m.kt)("p",{parentName:"li"},(0,m.kt)("strong",{parentName:"p"},"\u7b80\u8ff0\u8d1d\u53f6\u65af\u5b9a\u7406\u3002")),(0,m.kt)("p",{parentName:"li"},"\u8d1d\u53f6\u65af\u5b9a\u7406\u63cf\u8ff0\u4e86\u5728\u7ed9\u5b9a\u89c2\u6d4b\u6570\u636e\u7684\u6761\u4ef6\u4e0b\uff0c\u8ba1\u7b97\u4e8b\u4ef6\u7684\u540e\u9a8c\u6982\u7387\u7684\u65b9\u6cd5\u3002"),(0,m.kt)("div",{parentName:"li",className:"math math-display"},(0,m.kt)("span",{parentName:"div",className:"katex-display"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"A"),(0,m.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"\u2223"),(0,m.kt)("mi",{parentName:"mrow"},"B"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("mfrac",{parentName:"mrow"},(0,m.kt)("mrow",{parentName:"mfrac"},(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"B"),(0,m.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"\u2223"),(0,m.kt)("mi",{parentName:"mrow"},"A"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"\u2217"),(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"A"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,m.kt)("mrow",{parentName:"mfrac"},(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"B"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")")))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"P(A|B) = \\frac{P(B|A) * P(A)}{P(B)}")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"P"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"A"),(0,m.kt)("span",{parentName:"span",className:"mord"},"\u2223"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05017em"}},"B"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"="),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"2.363em",verticalAlign:"-0.936em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mopen nulldelimiter"}),(0,m.kt)("span",{parentName:"span",className:"mfrac"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.427em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.314em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"P"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05017em"}},"B"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.23em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"frac-line",style:{borderBottomWidth:"0.04em"}})),(0,m.kt)("span",{parentName:"span",style:{top:"-3.677em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"P"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05017em"}},"B"),(0,m.kt)("span",{parentName:"span",className:"mord"},"\u2223"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"A"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"\u2217"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"P"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"A"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.936em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"mclose nulldelimiter"}))))))),(0,m.kt)("p",{parentName:"li"},"\u5176\u4e2d\uff1a"),(0,m.kt)("ul",{parentName:"li"},(0,m.kt)("li",{parentName:"ul"},(0,m.kt)("span",{parentName:"li",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"A"),(0,m.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"\u2223"),(0,m.kt)("mi",{parentName:"mrow"},"B"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"P(A|B)")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"P"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"A"),(0,m.kt)("span",{parentName:"span",className:"mord"},"\u2223"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05017em"}},"B"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"))))),"\u8868\u793a\u5728\u89c2\u6d4b\u5230\u4e8b\u4ef6 B \u53d1\u751f\u7684\u6761\u4ef6\u4e0b\uff0c\u4e8b\u4ef6 A \u53d1\u751f\u7684\u6982\u7387\uff0c\u79f0\u4e3a\u540e\u9a8c\u6982\u7387"),(0,m.kt)("li",{parentName:"ul"},(0,m.kt)("span",{parentName:"li",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"B"),(0,m.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"\u2223"),(0,m.kt)("mi",{parentName:"mrow"},"A"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"P(B|A)")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"P"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05017em"}},"B"),(0,m.kt)("span",{parentName:"span",className:"mord"},"\u2223"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"A"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"))))),"\u8868\u793a\u5728\u4e8b\u4ef6 A \u53d1\u751f\u7684\u6761\u4ef6\u4e0b\uff0c\u4e8b\u4ef6 B \u53d1\u751f\u7684\u6982\u7387\uff0c\u79f0\u4e3a\u4f3c\u7136\uff1b"),(0,m.kt)("li",{parentName:"ul"},(0,m.kt)("span",{parentName:"li",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"A"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"P(A)")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"P"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"A"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"))))),"\u548c",(0,m.kt)("span",{parentName:"li",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"B"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"P(B)")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"P"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05017em"}},"B"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"))))),"\u5206\u522b\u662f\u4e8b\u4ef6 A \u548c\u4e8b\u4ef6 B \u72ec\u7acb\u53d1\u751f\u7684\u5148\u9a8c\u6982\u7387\u3002")),(0,m.kt)("p",{parentName:"li"},"\u4f18\u70b9\uff1a\u5b83\u80fd\u591f\u5c06\u4e3b\u89c2\u5148\u9a8c\u77e5\u8bc6\u4e0e\u89c2\u6d4b\u6570\u636e\u76f8\u7ed3\u5408\uff0c\u901a\u8fc7\u4e0d\u65ad\u66f4\u65b0\u540e\u9a8c\u6982\u7387\u6765\u8fdb\u884c\u63a8\u65ad\u548c\u51b3\u7b56\u3002")),(0,m.kt)("li",{parentName:"ol"},(0,m.kt)("p",{parentName:"li"},(0,m.kt)("strong",{parentName:"p"},"P\u95ee\u9898\u3001NP\u95ee\u9898\u4ee5\u53caNP\u5b8c\u5168\u95ee\u9898")),(0,m.kt)("admonition",{parentName:"li",type:"tip"},(0,m.kt)("p",{parentName:"admonition"},"P stands for Polynomial"),(0,m.kt)("p",{parentName:"admonition"},"\u610f\u4e3a\u591a\u9879\u5f0f")),(0,m.kt)("p",{parentName:"li"},"P\u95ee\u9898\u662f\u53ef\u4ee5\u5728\u591a\u9879\u5f0f\u65f6\u95f4\u5185\u89e3\u51b3\u7684\u95ee\u9898"),(0,m.kt)("p",{parentName:"li"},"NP\u95ee\u9898\u662f\u53ef\u4ee5\u5728\u591a\u9879\u5f0f\u65f6\u95f4\u5185\u9a8c\u8bc1\u89e3\u7684\u6b63\u786e\u6027\u7684\u95ee\u9898"),(0,m.kt)("p",{parentName:"li"},"NP\u5b8c\u5168\u95ee\u9898\u662f\u4e00\u7c7b\u7279\u6b8a\u7684NP\u95ee\u9898\uff0c\u6ca1\u6709\u5df2\u77e5\u7684\u9ad8\u6548\u89e3\u51b3\u7b97\u6cd5\uff0c\u5e76\u4e14\u53ef\u4ee5\u5728\u591a\u9879\u5f0f\u65f6\u95f4\u5185\u5f52\u7ea6\u5230\u4efb\u4f55\u5176\u4ed6\u7684NP\u95ee\u9898"))))}k.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/en/assets/js/74465ad7.f87ed629.js b/en/assets/js/74465ad7.f87ed629.js new file mode 100644 index 000000000..486f66c7a --- /dev/null +++ b/en/assets/js/74465ad7.f87ed629.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunknpy_notebook=self.webpackChunknpy_notebook||[]).push([[5321],{3905:(e,t,n)=>{n.d(t,{Zo:()=>u,kt:()=>m});var r=n(7294);function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var p=r.createContext({}),c=function(e){var t=r.useContext(p),n=t;return e&&(n="function"==typeof e?e(t):l(l({},t),e)),n},u=function(e){var t=c(e.components);return r.createElement(p.Provider,{value:t},e.children)},s="mdxType",f={inlineCode:"code",wrapper:function(e){var t=e.children;return r.createElement(r.Fragment,{},t)}},y=r.forwardRef((function(e,t){var n=e.components,o=e.mdxType,a=e.originalType,p=e.parentName,u=i(e,["components","mdxType","originalType","parentName"]),s=c(n),y=o,m=s["".concat(p,".").concat(y)]||s[y]||f[y]||a;return n?r.createElement(m,l(l({ref:t},u),{},{components:n})):r.createElement(m,l({ref:t},u))}));function m(e,t){var n=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var a=n.length,l=new Array(a);l[0]=y;var i={};for(var p in t)hasOwnProperty.call(t,p)&&(i[p]=t[p]);i.originalType=e,i[s]="string"==typeof e?e:o,l[1]=i;for(var c=2;c{n.r(t),n.d(t,{assets:()=>p,contentTitle:()=>l,default:()=>f,frontMatter:()=>a,metadata:()=>i,toc:()=>c});var r=n(7462),o=(n(7294),n(3905));const a={},l="\u6c60\u5316\u5c42",i={unversionedId:"Deep-Learning/\u57fa\u7840\u77e5\u8bc6/PoolingLayer",id:"Deep-Learning/\u57fa\u7840\u77e5\u8bc6/PoolingLayer",title:"\u6c60\u5316\u5c42",description:"\u4e00\u3001\u5377\u79ef\u5bf9\u50cf\u7d20\u4f4d\u7f6e\u4fe1\u606f\u662f\u654f\u611f\u7684",source:"@site/docs/Deep-Learning/3-\u57fa\u7840\u77e5\u8bc6/PoolingLayer.md",sourceDirName:"Deep-Learning/3-\u57fa\u7840\u77e5\u8bc6",slug:"/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/PoolingLayer",permalink:"/en/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/PoolingLayer",draft:!1,tags:[],version:"current",frontMatter:{},sidebar:"deep_learning",previous:{title:"Perceptron",permalink:"/en/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/Perceptron"},next:{title:"PyTorch\u57fa\u7840",permalink:"/en/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/PytorchBasics"}},p={},c=[{value:"\u4e00\u3001\u5377\u79ef\u5bf9\u50cf\u7d20\u4f4d\u7f6e\u4fe1\u606f\u662f\u654f\u611f\u7684",id:"\u4e00\u5377\u79ef\u5bf9\u50cf\u7d20\u4f4d\u7f6e\u4fe1\u606f\u662f\u654f\u611f\u7684",level:2},{value:"\u4e8c\u3001\u6c60\u5316\u5c42\u7684\u4f5c\u7528",id:"\u4e8c\u6c60\u5316\u5c42\u7684\u4f5c\u7528",level:2},{value:"\u4e09\u3001\u6c60\u5316\u7684\u5b9e\u73b0",id:"\u4e09\u6c60\u5316\u7684\u5b9e\u73b0",level:2}],u={toc:c},s="wrapper";function f(e){let{components:t,...n}=e;return(0,o.kt)(s,(0,r.Z)({},u,n,{components:t,mdxType:"MDXLayout"}),(0,o.kt)("h1",{id:"\u6c60\u5316\u5c42"},"\u6c60\u5316\u5c42"),(0,o.kt)("h2",{id:"\u4e00\u5377\u79ef\u5bf9\u50cf\u7d20\u4f4d\u7f6e\u4fe1\u606f\u662f\u654f\u611f\u7684"},"\u4e00\u3001\u5377\u79ef\u5bf9\u50cf\u7d20\u4f4d\u7f6e\u4fe1\u606f\u662f\u654f\u611f\u7684"),(0,o.kt)("p",null,"\u5377\u79ef\u5c42\u4f1a\u5bf9\u8f93\u5165\u7684\u5c40\u90e8\u533a\u57df\u8fdb\u884c\u5377\u79ef\u64cd\u4f5c\uff0c\u56e0\u6b64\u5bf9\u4e8e\u8f93\u5165\u56fe\u50cf\u4e2d\u7684\u6bcf\u4e2a\u4f4d\u7f6e\u90fd\u4f1a\u4ea7\u751f\u4e00\u4e2a\u54cd\u5e94\u3002\u7136\u800c\uff0c\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\uff0c\u6211\u4eec\u5e76\u4e0d\u5173\u5fc3\u8f93\u5165\u56fe\u50cf\u4e2d\u6bcf\u4e2a\u4f4d\u7f6e\u7684\u7ec6\u8282\uff0c\u800c\u53ea\u662f\u60f3\u83b7\u53d6\u8be5\u533a\u57df\u7684\u4e00\u4e9b\u91cd\u8981\u7279\u5f81\u3002"),(0,o.kt)("p",null,"\u5047\u8bbe\u6211\u4eec\u60f3\u5206\u7c7b\u4e00\u5f20\u732b\u7684\u56fe\u7247\uff0c\u90a3\u4e48\u6211\u4eec\u53ef\u80fd\u53ea\u9700\u8981\u63d0\u53d6\u51fa\u5b83\u7684\u773c\u775b\u3001\u9f3b\u5b50\u3001\u5634\u5df4\u548c\u8033\u6735\u7b49\u7279\u5f81\uff0c\u800c\u4e0d\u5fc5\u8003\u8651\u8fd9\u4e9b\u7279\u5f81\u5728\u56fe\u50cf\u4e2d\u7684\u7cbe\u786e\u4f4d\u7f6e\u3002"),(0,o.kt)("hr",null),(0,o.kt)("h2",{id:"\u4e8c\u6c60\u5316\u5c42\u7684\u4f5c\u7528"},"\u4e8c\u3001\u6c60\u5316\u5c42\u7684\u4f5c\u7528"),(0,o.kt)("p",null,"\u6c60\u5316\u5c42\u901a\u8fc7\u5bf9\u8f93\u5165\u7684\u5c40\u90e8\u533a\u57df\u8fdb\u884c\u964d\u91c7\u6837\u64cd\u4f5c\uff0c\u51cf\u5c11\u4e86\u7279\u5f81\u56fe\u7684\u5927\u5c0f\uff0c\u4ece\u800c",(0,o.kt)("strong",{parentName:"p"},"\u4f7f\u5f97\u6a21\u578b\u5bf9\u4e8e\u8f93\u5165\u4f4d\u7f6e\u7684\u5fae\u5c0f\u53d8\u5316\u66f4\u52a0\u9c81\u68d2"),"\u3002\u4f8b\u5982\uff0c\u5982\u679c\u6211\u4eec\u5c06\u4e00\u4e2a\u5bf9\u8c61\u7a0d\u5fae\u5e73\u79fb\u4e00\u70b9\uff0c\u5b83\u4f9d\u7136\u53ef\u4ee5\u88ab\u6b63\u786e\u5730\u8bc6\u522b\uff0c\u56e0\u4e3a\u6c60\u5316\u5c42\u53ef\u4ee5\u4fdd\u7559\u8f93\u5165\u56fe\u50cf\u7684\u5173\u952e\u7279\u5f81\uff0c\u800c\u5ffd\u7565\u6389\u5fae\u5c0f\u7684\u4f4d\u7f6e\u53d8\u5316\u3002"),(0,o.kt)("p",null,"\u4f46\u662f\u9700\u8981\u6ce8\u610f\u7684\u662f\uff0c\u5f53\u6c60\u5316\u7684\u6b65\u5e45\u548c\u6c60\u5316\u533a\u57df\u7684\u5927\u5c0f\u8fc7\u5927\u65f6\uff0c\u4f1a\u5bfc\u81f4\u6a21\u578b\u4e22\u5931\u8f83\u591a\u7684\u7ec6\u8282\u4fe1\u606f\uff0c\u4ece\u800c\u5f71\u54cd\u6a21\u578b\u6027\u80fd\u3002\u56e0\u6b64\uff0c\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\uff0c\u9700\u8981\u6839\u636e\u5177\u4f53\u4efb\u52a1\u6765\u9009\u62e9\u9002\u5f53\u7684\u6c60\u5316\u53c2\u6570\u3002"),(0,o.kt)("ol",null,(0,o.kt)("li",{parentName:"ol"},(0,o.kt)("strong",{parentName:"li"},"\u7f13\u89e3\u5377\u79ef\u5c42\u5bf9\u4f4d\u7f6e\u7684\u654f\u611f\u6027"),"\uff0c\u63d0\u9ad8\u9c81\u68d2\uff1a\u6c60\u5316\u64cd\u4f5c\u901a\u5e38\u7528\u4e8e\u5377\u79ef\u5c42\u4e4b\u540e\uff0c\u4f7f\u6a21\u578b\u5bf9\u4e8e\u8f93\u5165\u4f4d\u7f6e\u7684\u5fae\u5c0f\u53d8\u5316\u66f4\u52a0\u9c81\u68d2\uff0c\u51cf\u5c11\u56fe\u50cf\u4e2d\u7684\u566a\u58f0\u548c\u5197\u4f59\u4fe1\u606f"),(0,o.kt)("li",{parentName:"ol"},"\u51cf\u5c0f\u7279\u5f81\u56fe\u5927\u5c0f\uff1a\u6c60\u5316\u64cd\u4f5c\u4f1a\u901a\u8fc7\u5728\u7279\u5b9a\u4f4d\u7f6e\u4e0a\u5408\u5e76\u7279\u5f81\u503c\u6765\u7f29\u5c0f\u8f93\u5165\u7279\u5f81\u56fe\u7684\u7a7a\u95f4\u5927\u5c0f\uff0c\u964d\u4f4e\u8ba1\u7b97\u5f00\u9500\u3002"),(0,o.kt)("li",{parentName:"ol"},"\u51cf\u5c11\u53c2\u6570\u6570\u91cf\uff1a\u6c60\u5316\u64cd\u4f5c\u51cf\u5c0f\u4e86\u7279\u5f81\u56fe\u7684\u7a7a\u95f4\u5927\u5c0f\uff0c\u4ece\u800c\u4e5f\u51cf\u5c0f\u4e86\u9700\u8981\u8bad\u7ec3\u7684\u6743\u91cd\u53c2\u6570\u6570\u91cf\uff0c\u66f4\u5bb9\u6613\u8bad\u7ec3\u548c\u4f18\u5316\u3002")),(0,o.kt)("hr",null),(0,o.kt)("h2",{id:"\u4e09\u6c60\u5316\u7684\u5b9e\u73b0"},"\u4e09\u3001\u6c60\u5316\u7684\u5b9e\u73b0"),(0,o.kt)("p",null,"\u6c60\u5316\u5c42\u5c06\u8f93\u5165\u7279\u5f81\u56fe\u5206\u5272\u6210\u82e5\u5e72\u4e2a\u533a\u57df\uff0c\u7136\u540e\u5bf9\u6bcf\u4e2a\u533a\u57df\u8fdb\u884c\u6c47\u805a\u64cd\u4f5c\uff0c\u5c06\u8be5\u533a\u57df\u5185\u7684\u7279\u5f81\u503c\u5408\u5e76\u6210\u4e00\u4e2a\u503c\u3002\u8fd9\u4e2a\u64cd\u4f5c\u53ef\u4ee5\u4f7f\u7528\u4e0d\u540c\u7684\u65b9\u6cd5\u5b9e\u73b0\uff0c\u5982\u6700\u5927\u503c\u6c60\u5316\u3001\u5e73\u5747\u503c\u6c60\u5316\u7b49\u3002"),(0,o.kt)("p",null,"\u6700\u5e38\u89c1\u7684\u662f\u6700\u5927\u503c\u6c60\u5316\uff0c\u5176\u4e2d\u6bcf\u4e2a\u533a\u57df\u7684\u8f93\u51fa\u503c\u662f\u8be5\u533a\u57df\u5185\u7279\u5f81\u503c\u7684\u6700\u5927\u503c\uff0c\u8fd9\u6837\u53ef\u4ee5\u4fdd\u7559\u56fe\u50cf\u4e2d\u6700\u663e\u8457\u7684\u7279\u5f81\uff0c\u540c\u65f6\u51cf\u5c11\u566a\u58f0\u548c\u5197\u4f59\u4fe1\u606f\u7684\u5f71\u54cd\u3002"))}f.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/en/assets/js/76f0dcb5.1bb937cd.js b/en/assets/js/76f0dcb5.1bb937cd.js new file mode 100644 index 000000000..c74083258 --- /dev/null +++ b/en/assets/js/76f0dcb5.1bb937cd.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunknpy_notebook=self.webpackChunknpy_notebook||[]).push([[2615],{3905:(e,t,r)=>{r.d(t,{Zo:()=>c,kt:()=>f});var n=r(7294);function a(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e){for(var t=1;t=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}var s=n.createContext({}),l=function(e){var t=n.useContext(s),r=t;return e&&(r="function"==typeof e?e(t):i(i({},t),e)),r},c=function(e){var t=l(e.components);return n.createElement(s.Provider,{value:t},e.children)},u="mdxType",m={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},d=n.forwardRef((function(e,t){var r=e.components,a=e.mdxType,o=e.originalType,s=e.parentName,c=p(e,["components","mdxType","originalType","parentName"]),u=l(r),d=a,f=u["".concat(s,".").concat(d)]||u[d]||m[d]||o;return r?n.createElement(f,i(i({ref:t},c),{},{components:r})):n.createElement(f,i({ref:t},c))}));function f(e,t){var r=arguments,a=t&&t.mdxType;if("string"==typeof e||a){var o=r.length,i=new Array(o);i[0]=d;var p={};for(var s in t)hasOwnProperty.call(t,s)&&(p[s]=t[s]);p.originalType=e,p[u]="string"==typeof e?e:a,i[1]=p;for(var l=2;l{r.r(t),r.d(t,{assets:()=>s,contentTitle:()=>i,default:()=>m,frontMatter:()=>o,metadata:()=>p,toc:()=>l});var n=r(7462),a=(r(7294),r(3905));const o={},i="Speaker Classification",p={unversionedId:"Deep-Learning/\u5b9e\u6218\u7ec3\u4e60/Speaker Classification",id:"Deep-Learning/\u5b9e\u6218\u7ec3\u4e60/Speaker Classification",title:"Speaker Classification",description:"Transformer\u5b9e\u6218\u7ec3\u4e60\uff0c\u4ee3\u7801\u89c1Github\u4ed3\u5e93\u3002",source:"@site/docs/Deep-Learning/4-\u5b9e\u6218\u7ec3\u4e60/2-Speaker Classification.md",sourceDirName:"Deep-Learning/4-\u5b9e\u6218\u7ec3\u4e60",slug:"/Deep-Learning/\u5b9e\u6218\u7ec3\u4e60/Speaker Classification",permalink:"/en/docs/Deep-Learning/\u5b9e\u6218\u7ec3\u4e60/Speaker Classification",draft:!1,tags:[],version:"current",sidebarPosition:2,frontMatter:{},sidebar:"deep_learning",previous:{title:"Visdom\u53ef\u89c6\u5316",permalink:"/en/docs/Deep-Learning/\u5b9e\u6218\u7ec3\u4e60/Visdom Visualization"},next:{title:"\u672c\u79d1\u6bd5\u4e1a\u8bba\u6587\uff1a\u57fa\u4e8e Prompt Learning \u7684\u89c6\u89c9-\u8bed\u8a00\u5927\u6a21\u578b\u5728\u56fe\u50cf\u751f\u6210\u4e2d\u7684\u5e94\u7528\u4e0e\u7814\u7a76",permalink:"/en/docs/Deep-Learning/\u5b9e\u6218\u7ec3\u4e60/Undergraduate-Dissertation"}},s={},l=[{value:"Overview",id:"overview",level:2},{value:"Dataset",id:"dataset",level:2},{value:"Related",id:"related",level:2}],c={toc:l},u="wrapper";function m(e){let{components:t,...r}=e;return(0,a.kt)(u,(0,n.Z)({},c,r,{components:t,mdxType:"MDXLayout"}),(0,a.kt)("h1",{id:"speaker-classification"},"Speaker Classification"),(0,a.kt)("admonition",{title:"\u5b9e\u6218\u7ec3\u4e60",type:"tip"},(0,a.kt)("p",{parentName:"admonition"},"Transformer\u5b9e\u6218\u7ec3\u4e60\uff0c\u4ee3\u7801\u89c1",(0,a.kt)("a",{parentName:"p",href:"https://github.com/bonjour-npy/Speaker-Classification"},"Github\u4ed3\u5e93"),"\u3002"),(0,a.kt)("p",{parentName:"admonition"},"This is a practice of Transformer, follow the guide of ",(0,a.kt)("a",{parentName:"p",href:"https://github.com/bonjour-npy/Speaker-Classification"},"Github Repo"),".")),(0,a.kt)("p",null,(0,a.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_imagesimage-20240113175506430.png",alt:"image-20240113175506430"})),(0,a.kt)("h2",{id:"overview"},"Overview"),(0,a.kt)("p",null,"Classify the speaker of given features, learn how to use Transformer and how to adjust parameters of transformer."),(0,a.kt)("h2",{id:"dataset"},"Dataset"),(0,a.kt)("p",null,"The original dataset is ",(0,a.kt)("a",{parentName:"p",href:"https://www.robots.ox.ac.uk/~vgg/data/voxceleb/"},"VoxCeleb1"),"."),(0,a.kt)("p",null,"We randomly select 600 speakers from ",(0,a.kt)("a",{parentName:"p",href:"https://www.robots.ox.ac.uk/~vgg/data/voxceleb/"},"VoxCeleb1"),", then preprocess the raw waveforms into mel-spectrograms. You can download the preprocessed dataset from ",(0,a.kt)("a",{parentName:"p",href:"https://drive.google.com/file/d/1gaFy8RaQVUEXo2n0peCBR5gYKCB-mNHc/view?usp=drive_link"},"Google Drive"),"."),(0,a.kt)("p",null,(0,a.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_imagesScreenshot%202024-01-13%20163041.png",alt:"Screenshot 2024-01-13 163041"})),(0,a.kt)("p",null,"Arguments:"),(0,a.kt)("ul",null,(0,a.kt)("li",{parentName:"ul"},(0,a.kt)("p",{parentName:"li"},"data_dir: The path to the data directory.")),(0,a.kt)("li",{parentName:"ul"},(0,a.kt)("p",{parentName:"li"},"metadata_path: The path to the metadata.")),(0,a.kt)("li",{parentName:"ul"},(0,a.kt)("p",{parentName:"li"},"segment_len: The length of audio segment for training."))),(0,a.kt)("p",null,"The architecture of dataset directory is shown below, where ",(0,a.kt)("inlineCode",{parentName:"p"},"uttr-{random string}.pt")," represents PyTorch data file containing ",(0,a.kt)("inlineCode",{parentName:"p"},"valid mel-spectrogram data"),"."),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre"},"data directory/\n\u251c\u2500\u2500 mapping.json\n\u251c\u2500\u2500 metadata.json\n\u251c\u2500\u2500 testdata.json\n\u2514\u2500\u2500 uttr-{random string}.pt\n")),(0,a.kt)("h2",{id:"related"},"Related"),(0,a.kt)("p",null,"This is also the assignment solution of ",(0,a.kt)("a",{parentName:"p",href:"https://speech.ee.ntu.edu.tw/~hylee/ml/2021-spring.php"},"ML2021Spring HW4"),"."))}m.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/en/assets/js/78a3e900.50412383.js b/en/assets/js/78a3e900.50412383.js new file mode 100644 index 000000000..3b10fc499 --- /dev/null +++ b/en/assets/js/78a3e900.50412383.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunknpy_notebook=self.webpackChunknpy_notebook||[]).push([[8125],{3905:(a,e,t)=>{t.d(e,{Zo:()=>i,kt:()=>h});var s=t(7294);function m(a,e,t){return e in a?Object.defineProperty(a,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):a[e]=t,a}function n(a,e){var t=Object.keys(a);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(a);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable}))),t.push.apply(t,s)}return t}function p(a){for(var e=1;e=0||(m[t]=a[t]);return m}(a,e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);for(s=0;s=0||Object.prototype.propertyIsEnumerable.call(a,t)&&(m[t]=a[t])}return m}var N=s.createContext({}),l=function(a){var e=s.useContext(N),t=e;return a&&(t="function"==typeof a?a(e):p(p({},e),a)),t},i=function(a){var e=l(a.components);return s.createElement(N.Provider,{value:e},a.children)},k="mdxType",c={inlineCode:"code",wrapper:function(a){var e=a.children;return s.createElement(s.Fragment,{},e)}},o=s.forwardRef((function(a,e){var t=a.components,m=a.mdxType,n=a.originalType,N=a.parentName,i=r(a,["components","mdxType","originalType","parentName"]),k=l(t),o=m,h=k["".concat(N,".").concat(o)]||k[o]||c[o]||n;return t?s.createElement(h,p(p({ref:e},i),{},{components:t})):s.createElement(h,p({ref:e},i))}));function h(a,e){var t=arguments,m=e&&e.mdxType;if("string"==typeof a||m){var n=t.length,p=new Array(n);p[0]=o;var r={};for(var N in e)hasOwnProperty.call(e,N)&&(r[N]=e[N]);r.originalType=a,r[k]="string"==typeof a?a:m,p[1]=r;for(var l=2;l{t.r(e),t.d(e,{assets:()=>N,contentTitle:()=>p,default:()=>c,frontMatter:()=>n,metadata:()=>r,toc:()=>l});var s=t(7462),m=(t(7294),t(3905));const n={},p="NeurIPS 2017: Attention Is All You Need",r={unversionedId:"Deep-Learning/\u8bba\u6587\u7b14\u8bb0/Attention Is All You Need",id:"Deep-Learning/\u8bba\u6587\u7b14\u8bb0/Attention Is All You Need",title:"NeurIPS 2017: Attention Is All You Need",description:"\u8bba\u6587\uff1aarXiv",source:"@site/docs/Deep-Learning/6-\u8bba\u6587\u7b14\u8bb0/1-Attention Is All You Need.md",sourceDirName:"Deep-Learning/6-\u8bba\u6587\u7b14\u8bb0",slug:"/Deep-Learning/\u8bba\u6587\u7b14\u8bb0/Attention Is All You Need",permalink:"/en/docs/Deep-Learning/\u8bba\u6587\u7b14\u8bb0/Attention Is All You Need",draft:!1,tags:[],version:"current",sidebarPosition:1,frontMatter:{},sidebar:"deep_learning",previous:{title:"\u672c\u79d1\u6bd5\u4e1a\u8bba\u6587\uff1a\u57fa\u4e8e Prompt Learning \u7684\u89c6\u89c9-\u8bed\u8a00\u5927\u6a21\u578b\u5728\u56fe\u50cf\u751f\u6210\u4e2d\u7684\u5e94\u7528\u4e0e\u7814\u7a76",permalink:"/en/docs/Deep-Learning/\u5927\u6a21\u578b/Prompt Learning/Undergraduate-Dissertation"},next:{title:"NeurIPS 2020: Denoising Diffusion Probabilistic Models",permalink:"/en/docs/Deep-Learning/\u8bba\u6587\u7b14\u8bb0/Denoising Diffusion Probabilistic Models"}},N={},l=[{value:"\u6574\u4f53\u7ed3\u6784",id:"\u6574\u4f53\u7ed3\u6784",level:2},{value:"Encoder",id:"encoder",level:2},{value:"\u6574\u4f53\u7ed3\u6784",id:"\u6574\u4f53\u7ed3\u6784-1",level:3},{value:"\u4f4d\u7f6e\u7f16\u7801\uff08Positional Encoding\uff09",id:"\u4f4d\u7f6e\u7f16\u7801positional-encoding",level:3},{value:"\u5177\u4f53\u7ed3\u6784",id:"\u5177\u4f53\u7ed3\u6784",level:3},{value:"Decoder",id:"decoder",level:2},{value:"Autoregressive Decoder\uff08AT\uff09",id:"autoregressive-decoderat",level:3},{value:"\u6574\u4f53\u7ed3\u6784",id:"\u6574\u4f53\u7ed3\u6784-2",level:4},{value:"\u8bcd\u6c47\u8868\uff08Vocabulary\uff09",id:"\u8bcd\u6c47\u8868vocabulary",level:4},{value:"Begin\u7b26\u53f7",id:"begin\u7b26\u53f7",level:4},{value:"End\u7b26\u53f7",id:"end\u7b26\u53f7",level:4},{value:"\u63a9\u7801\u591a\u5934\u81ea\u6ce8\u610f\u529b\u673a\u5236\uff08Masked Multi-Head Self-Attention\uff09",id:"\u63a9\u7801\u591a\u5934\u81ea\u6ce8\u610f\u529b\u673a\u5236masked-multi-head-self-attention",level:4},{value:"\u4ea4\u53c9\u6ce8\u610f\u529b\uff08Cross-Attention\uff09",id:"\u4ea4\u53c9\u6ce8\u610f\u529bcross-attention",level:4},{value:"Non-Autoregressive Decoder\uff08NAT\uff09",id:"non-autoregressive-decodernat",level:3},{value:"\u8bad\u7ec3\uff08Training\uff09",id:"\u8bad\u7ec3training",level:2},{value:"\u635f\u5931\u51fd\u6570",id:"\u635f\u5931\u51fd\u6570",level:3},{value:"Teacher Forcing",id:"teacher-forcing",level:3},{value:"Teacher Forcing\u4e0eMasked Multi-Head Self-Attention",id:"teacher-forcing\u4e0emasked-multi-head-self-attention",level:3}],i={toc:l},k="wrapper";function c(a){let{components:e,...t}=a;return(0,m.kt)(k,(0,s.Z)({},i,t,{components:e,mdxType:"MDXLayout"}),(0,m.kt)("h1",{id:"neurips-2017-attention-is-all-you-need"},"NeurIPS 2017: Attention Is All You Need"),(0,m.kt)("admonition",{title:"\u76f8\u5173\u94fe\u63a5",type:"tip"},(0,m.kt)("p",{parentName:"admonition"},"\u8bba\u6587\uff1a",(0,m.kt)("a",{parentName:"p",href:"https://arxiv.org/pdf/1706.03762.pdf"},"arXiv")),(0,m.kt)("p",{parentName:"admonition"},"\u53c2\u8003\u8d44\u6599\uff1a"),(0,m.kt)("ul",{parentName:"admonition"},(0,m.kt)("li",{parentName:"ul"},(0,m.kt)("a",{parentName:"li",href:"https://zhuanlan.zhihu.com/p/338817680"},"Transformer\u6a21\u578b\u8be6\u89e3\uff08\u56fe\u89e3\u6700\u5b8c\u6574\u7248\uff09")),(0,m.kt)("li",{parentName:"ul"},(0,m.kt)("a",{parentName:"li",href:"https://www.youtube.com/watch?v=N6aRv06iv2g&list=PLJV_el3uVTsMhtt7_Y6sgTHGHp1Vb2P2J&index=13"},"\u3010\u6a5f\u5668\u5b78\u7fd22021\u3011Transformer (\u4e0b)")))),(0,m.kt)("p",null,"Transformer\u662fSequence-to-Sequence (Seq2Seq) \u6a21\u578b\uff0c\u6a21\u578b\u7684\u8f93\u5165\u662f\u5411\u91cf\u5e8f\u5217\uff0c\u8f93\u51fa\u540c\u6837\u662f\u5411\u91cf\u5e8f\u5217\uff0c\u4e14\u8f93\u51fa\u7684\u957f\u5ea6\u7531\u6a21\u578b\u7ecf\u8fc7\u5b66\u4e60\u51b3\u5b9a\u3002"),(0,m.kt)("h2",{id:"\u6574\u4f53\u7ed3\u6784"},"\u6574\u4f53\u7ed3\u6784"),(0,m.kt)("p",null,"Transformer\u7531Encoder\u548cDecoder\u7ec4\u6210\uff0c\u7f16\u7801\u5668\u548c\u89e3\u7801\u5668\u90fd\u5305\u542b6\u4e2aBlock\uff0c\u6574\u4f53\u7ed3\u6784\u5982\u4e0b\u56fe\u6240\u793a\u3002"),(0,m.kt)("p",null,(0,m.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_imagesimage-20231119110150110.png",alt:"image-20231119110150110"})),(0,m.kt)("h2",{id:"encoder"},"Encoder"),(0,m.kt)("h3",{id:"\u6574\u4f53\u7ed3\u6784-1"},"\u6574\u4f53\u7ed3\u6784"),(0,m.kt)("p",null,"Transformer Encoder\u7ed3\u6784\u5982\u4e0b\u56fe\u6240\u793a\u3002\u5176\u4e2d\uff0cAdd\u6307\u7684\u662f\u6b8b\u5dee\u8fde\u63a5Residual Connection\uff0cNorm\u6307\u7684\u662fLayer Normalization\u3002"),(0,m.kt)("p",null,(0,m.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_imagesimage-20231115165100210.png",alt:"image-20231115164324713"})),(0,m.kt)("h3",{id:"\u4f4d\u7f6e\u7f16\u7801positional-encoding"},"\u4f4d\u7f6e\u7f16\u7801\uff08Positional Encoding\uff09"),(0,m.kt)("p",null,"\u5bf9\u4e8e\u8f93\u5165\u7684\u53e5\u5b50\uff0c\u5bf9\u4e00\u4e2a\u8bcd\u6c47\u7684\u5d4c\u5165\u5411\u91cf\u7684\u5947\u6570\u7ef4\u5ea6\u4f7f\u7528sine\u51fd\u6570\u8fdb\u884c\u7f16\u7801\uff0c\u5bf9\u5076\u6570\u7ef4\u5ea6\u4f7f\u7528cosine\u51fd\u6570\u8ba1\u7b97\u7f16\u7801\u3002"),(0,m.kt)("p",null,"\u516c\u5f0f\u5982\u4e0b\u6240\u793a\uff0c\u5176\u4e2d",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"p"),(0,m.kt)("mi",{parentName:"mrow"},"o"),(0,m.kt)("mi",{parentName:"mrow"},"s")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"pos")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.625em",verticalAlign:"-0.1944em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"p"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"os"))))),"\u6307\u7684\u662f\u8be5\u8bcd\u6c47\u5728\u6574\u4e2a\u8f93\u5165\u53e5\u5b50\u4e2d\u7684\u4f4d\u7f6e\uff0c",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mn",{parentName:"mrow"},"2"),(0,m.kt)("mi",{parentName:"mrow"},"i")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"2i")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6595em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"2"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"i"))))),"\u4ee5\u53ca",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mn",{parentName:"mrow"},"2"),(0,m.kt)("mi",{parentName:"mrow"},"i"),(0,m.kt)("mo",{parentName:"mrow"},"+"),(0,m.kt)("mn",{parentName:"mrow"},"1")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"2i+1")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.7429em",verticalAlign:"-0.0833em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"2"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"i"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"+"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6444em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"1"))))),"\u6307\u7684\u662f\u8be5\u8bcd\u6c47\u7684\u5d4c\u5165\u5411\u91cf\u4e2d\u7684\u7ef4\u5ea6\uff0c",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"d"),(0,m.kt)("mrow",{parentName:"msub"},(0,m.kt)("mi",{parentName:"mrow"},"m"),(0,m.kt)("mi",{parentName:"mrow"},"o"),(0,m.kt)("mi",{parentName:"mrow"},"d"),(0,m.kt)("mi",{parentName:"mrow"},"e"),(0,m.kt)("mi",{parentName:"mrow"},"l")))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"d_{model}")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.8444em",verticalAlign:"-0.15em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"d"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3361em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"m"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"o"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"d"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"e"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.01968em"}},"l"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))))))),"\u6307\u7684\u662f\u5728\u5d4c\u5165\u5c42\u4e4b\u540e\u5d4c\u5165\u5411\u91cf\u7684\u603b\u7ef4\u5ea6\u3002\u5373\u5bf9\u4e8e\u6bcf\u4e2a\u8f93\u5165\u8bcd\u6c47\uff0c\u90fd\u8981\u8ba1\u7b97",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"d"),(0,m.kt)("mrow",{parentName:"msub"},(0,m.kt)("mi",{parentName:"mrow"},"m"),(0,m.kt)("mi",{parentName:"mrow"},"o"),(0,m.kt)("mi",{parentName:"mrow"},"d"),(0,m.kt)("mi",{parentName:"mrow"},"e"),(0,m.kt)("mi",{parentName:"mrow"},"l")))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"d_{model}")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.8444em",verticalAlign:"-0.15em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"d"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3361em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"m"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"o"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"d"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"e"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.01968em"}},"l"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))))))),"\u6b21\u4f4d\u7f6e\u7f16\u7801\u3002"),(0,m.kt)("div",{className:"math math-display"},(0,m.kt)("span",{parentName:"div",className:"katex-display"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mtable",{parentName:"semantics",width:"100%"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mrow",{parentName:"mtd"},(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"E"),(0,m.kt)("mrow",{parentName:"msub"},(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"p"),(0,m.kt)("mi",{parentName:"mrow"},"o"),(0,m.kt)("mi",{parentName:"mrow"},"s"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mn",{parentName:"mrow"},"2"),(0,m.kt)("mi",{parentName:"mrow"},"i"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"))),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("mi",{parentName:"mrow"},"s"),(0,m.kt)("mi",{parentName:"mrow"},"i"),(0,m.kt)("mi",{parentName:"mrow"},"n"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mfrac",{parentName:"mrow"},(0,m.kt)("mrow",{parentName:"mfrac"},(0,m.kt)("mi",{parentName:"mrow"},"p"),(0,m.kt)("mi",{parentName:"mrow"},"o"),(0,m.kt)("mi",{parentName:"mrow"},"s")),(0,m.kt)("mrow",{parentName:"mfrac"},(0,m.kt)("mn",{parentName:"mrow"},"1000"),(0,m.kt)("msup",{parentName:"mrow"},(0,m.kt)("mn",{parentName:"msup"},"0"),(0,m.kt)("mrow",{parentName:"msup"},(0,m.kt)("mn",{parentName:"mrow"},"2"),(0,m.kt)("mi",{parentName:"mrow"},"i"),(0,m.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"/"),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"d"),(0,m.kt)("mrow",{parentName:"msub"},(0,m.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"m"),(0,m.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"o"),(0,m.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"d"),(0,m.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"e"),(0,m.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"l"))))))),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"))),(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mtext",{parentName:"mtd"},"(1)")))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"PE_{(pos,2i)}=sin(\\frac{pos}{10000^{2i/d_{\\mathrm{model}}}}) \\tag{1}")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1.0385em",verticalAlign:"-0.3552em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"P"),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05764em"}},"E"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3448em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.5198em",marginLeft:"-0.0576em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mopen mtight"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"p"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"os"),(0,m.kt)("span",{parentName:"span",className:"mpunct mtight"},","),(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"2"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"i"),(0,m.kt)("span",{parentName:"span",className:"mclose mtight"},")"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3552em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"="),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1.8116em",verticalAlign:"-0.704em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"s"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"in"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mopen nulldelimiter"}),(0,m.kt)("span",{parentName:"span",className:"mfrac"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.1076em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.296em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"1000"),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"0"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.814em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.989em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"2"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"i"),(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"/"),(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"d"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3448em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.3488em",marginLeft:"0em",marginRight:"0.0714em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.5em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size3 size1 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathrm mtight"},"model")))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.1512em"}},(0,m.kt)("span",{parentName:"span"})))))))))))))))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.23em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"frac-line",style:{borderBottomWidth:"0.04em"}})),(0,m.kt)("span",{parentName:"span",style:{top:"-3.677em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"p"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"os")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.704em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"mclose nulldelimiter"})),(0,m.kt)("span",{parentName:"span",className:"mclose"},")")),(0,m.kt)("span",{parentName:"span",className:"tag"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1.8116em",verticalAlign:"-0.704em"}}),(0,m.kt)("span",{parentName:"span",className:"mord text"},(0,m.kt)("span",{parentName:"span",className:"mord"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"1")),(0,m.kt)("span",{parentName:"span",className:"mord"},")"))))))),(0,m.kt)("div",{className:"math math-display"},(0,m.kt)("span",{parentName:"div",className:"katex-display"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mtable",{parentName:"semantics",width:"100%"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mrow",{parentName:"mtd"},(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"E"),(0,m.kt)("mrow",{parentName:"msub"},(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"p"),(0,m.kt)("mi",{parentName:"mrow"},"o"),(0,m.kt)("mi",{parentName:"mrow"},"s"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mn",{parentName:"mrow"},"2"),(0,m.kt)("mi",{parentName:"mrow"},"i"),(0,m.kt)("mo",{parentName:"mrow"},"+"),(0,m.kt)("mn",{parentName:"mrow"},"1"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"))),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("mi",{parentName:"mrow"},"c"),(0,m.kt)("mi",{parentName:"mrow"},"o"),(0,m.kt)("mi",{parentName:"mrow"},"s"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mfrac",{parentName:"mrow"},(0,m.kt)("mrow",{parentName:"mfrac"},(0,m.kt)("mi",{parentName:"mrow"},"p"),(0,m.kt)("mi",{parentName:"mrow"},"o"),(0,m.kt)("mi",{parentName:"mrow"},"s")),(0,m.kt)("mrow",{parentName:"mfrac"},(0,m.kt)("mn",{parentName:"mrow"},"1000"),(0,m.kt)("msup",{parentName:"mrow"},(0,m.kt)("mn",{parentName:"msup"},"0"),(0,m.kt)("mrow",{parentName:"msup"},(0,m.kt)("mn",{parentName:"mrow"},"2"),(0,m.kt)("mi",{parentName:"mrow"},"i"),(0,m.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"/"),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"d"),(0,m.kt)("mrow",{parentName:"msub"},(0,m.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"m"),(0,m.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"o"),(0,m.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"d"),(0,m.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"e"),(0,m.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"l"))))))),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"))),(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mtext",{parentName:"mtd"},"(2)")))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"PE_{(pos,2i+1)}=cos(\\frac{pos}{10000^{2i/d_{\\mathrm{model}}}}) \\tag{2}")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1.0385em",verticalAlign:"-0.3552em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"P"),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05764em"}},"E"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3448em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.5198em",marginLeft:"-0.0576em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mopen mtight"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"p"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"os"),(0,m.kt)("span",{parentName:"span",className:"mpunct mtight"},","),(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"2"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"i"),(0,m.kt)("span",{parentName:"span",className:"mbin mtight"},"+"),(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"1"),(0,m.kt)("span",{parentName:"span",className:"mclose mtight"},")"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3552em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"="),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1.8116em",verticalAlign:"-0.704em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"cos"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mopen nulldelimiter"}),(0,m.kt)("span",{parentName:"span",className:"mfrac"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.1076em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.296em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"1000"),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"0"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.814em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.989em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"2"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"i"),(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"/"),(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"d"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3448em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.3488em",marginLeft:"0em",marginRight:"0.0714em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.5em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size3 size1 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathrm mtight"},"model")))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.1512em"}},(0,m.kt)("span",{parentName:"span"})))))))))))))))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.23em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"frac-line",style:{borderBottomWidth:"0.04em"}})),(0,m.kt)("span",{parentName:"span",style:{top:"-3.677em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"p"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"os")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.704em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"mclose nulldelimiter"})),(0,m.kt)("span",{parentName:"span",className:"mclose"},")")),(0,m.kt)("span",{parentName:"span",className:"tag"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1.8116em",verticalAlign:"-0.704em"}}),(0,m.kt)("span",{parentName:"span",className:"mord text"},(0,m.kt)("span",{parentName:"span",className:"mord"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"2")),(0,m.kt)("span",{parentName:"span",className:"mord"},")"))))))),(0,m.kt)("p",null,"\u6839\u636e\u4e09\u89d2\u51fd\u6570\u7684\u6027\u8d28\uff0c\u5bf9\u4e8e",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"p"),(0,m.kt)("mi",{parentName:"mrow"},"o"),(0,m.kt)("mi",{parentName:"mrow"},"s"),(0,m.kt)("mo",{parentName:"mrow"},"+"),(0,m.kt)("mi",{parentName:"mrow"},"k")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"pos+k")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.7778em",verticalAlign:"-0.1944em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"p"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"os"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"+"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6944em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03148em"}},"k"))))),"\u4f4d\u7f6e\u7684\u5d4c\u5165\u5411\u91cf\u7684\u67d0\u4e00\u7ef4\u5ea6\uff08",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mn",{parentName:"mrow"},"2"),(0,m.kt)("mi",{parentName:"mrow"},"i")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"2i")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6595em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"2"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"i"))))),"\u6216",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mn",{parentName:"mrow"},"2"),(0,m.kt)("mi",{parentName:"mrow"},"i"),(0,m.kt)("mo",{parentName:"mrow"},"+"),(0,m.kt)("mn",{parentName:"mrow"},"1")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"2i+1")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.7429em",verticalAlign:"-0.0833em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"2"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"i"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"+"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6444em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"1"))))),"\uff09\u800c\u8a00\uff0c\u53ef\u4ee5\u8868\u793a\u4e3a",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"p"),(0,m.kt)("mi",{parentName:"mrow"},"o"),(0,m.kt)("mi",{parentName:"mrow"},"s")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"pos")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.625em",verticalAlign:"-0.1944em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"p"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"os"))))),"\u4f4d\u7f6e\u4e0e",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"k")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"k")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6944em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03148em"}},"k"))))),"\u4f4d\u7f6e\u7684\u5d4c\u5165\u5411\u91cf\u7684",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mn",{parentName:"mrow"},"2"),(0,m.kt)("mi",{parentName:"mrow"},"i")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"2i")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6595em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"2"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"i"))))),"\u4e0e",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mn",{parentName:"mrow"},"2"),(0,m.kt)("mi",{parentName:"mrow"},"i"),(0,m.kt)("mo",{parentName:"mrow"},"+"),(0,m.kt)("mn",{parentName:"mrow"},"1")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"2i+1")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.7429em",verticalAlign:"-0.0833em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"2"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"i"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"+"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6444em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"1"))))),"\u7ef4\u5ea6\u7684\u7ebf\u6027\u7ec4\u5408\uff0c\u4f7f\u5f97\u4f4d\u7f6e\u5411\u91cf\u4e2d\u8574\u542b\u4e86\u76f8\u5bf9\u4f4d\u7f6e\u7684\u4fe1\u606f\u3002"),(0,m.kt)("div",{className:"math math-display"},(0,m.kt)("span",{parentName:"div",className:"katex-display"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mtable",{parentName:"semantics",width:"100%"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mtable",{parentName:"mtd",rowspacing:"0.16em",columnalign:"left",columnspacing:"1em"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("mrow",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("mi",{parentName:"mrow"},"E"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"p"),(0,m.kt)("mi",{parentName:"mrow"},"o"),(0,m.kt)("mi",{parentName:"mrow"},"s"),(0,m.kt)("mo",{parentName:"mrow"},"+"),(0,m.kt)("mi",{parentName:"mrow"},"k"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mn",{parentName:"mrow"},"2"),(0,m.kt)("mi",{parentName:"mrow"},"i"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("mi",{parentName:"mrow"},"E"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"p"),(0,m.kt)("mi",{parentName:"mrow"},"o"),(0,m.kt)("mi",{parentName:"mrow"},"s"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mn",{parentName:"mrow"},"2"),(0,m.kt)("mi",{parentName:"mrow"},"i"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"\xd7"),(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("mi",{parentName:"mrow"},"E"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"k"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mn",{parentName:"mrow"},"2"),(0,m.kt)("mi",{parentName:"mrow"},"i"),(0,m.kt)("mo",{parentName:"mrow"},"+"),(0,m.kt)("mn",{parentName:"mrow"},"1"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"+"),(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("mi",{parentName:"mrow"},"E"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"p"),(0,m.kt)("mi",{parentName:"mrow"},"o"),(0,m.kt)("mi",{parentName:"mrow"},"s"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mn",{parentName:"mrow"},"2"),(0,m.kt)("mi",{parentName:"mrow"},"i"),(0,m.kt)("mo",{parentName:"mrow"},"+"),(0,m.kt)("mn",{parentName:"mrow"},"1"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"\xd7"),(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("mi",{parentName:"mrow"},"E"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"k"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mn",{parentName:"mrow"},"2"),(0,m.kt)("mi",{parentName:"mrow"},"i"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"))))),(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("mrow",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("mi",{parentName:"mrow"},"E"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"p"),(0,m.kt)("mi",{parentName:"mrow"},"o"),(0,m.kt)("mi",{parentName:"mrow"},"s"),(0,m.kt)("mo",{parentName:"mrow"},"+"),(0,m.kt)("mi",{parentName:"mrow"},"k"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mn",{parentName:"mrow"},"2"),(0,m.kt)("mi",{parentName:"mrow"},"i"),(0,m.kt)("mo",{parentName:"mrow"},"+"),(0,m.kt)("mn",{parentName:"mrow"},"1"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("mi",{parentName:"mrow"},"E"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"p"),(0,m.kt)("mi",{parentName:"mrow"},"o"),(0,m.kt)("mi",{parentName:"mrow"},"s"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mn",{parentName:"mrow"},"2"),(0,m.kt)("mi",{parentName:"mrow"},"i"),(0,m.kt)("mo",{parentName:"mrow"},"+"),(0,m.kt)("mn",{parentName:"mrow"},"1"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"\xd7"),(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("mi",{parentName:"mrow"},"E"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"k"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mn",{parentName:"mrow"},"2"),(0,m.kt)("mi",{parentName:"mrow"},"i"),(0,m.kt)("mo",{parentName:"mrow"},"+"),(0,m.kt)("mn",{parentName:"mrow"},"1"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"\u2212"),(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("mi",{parentName:"mrow"},"E"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"p"),(0,m.kt)("mi",{parentName:"mrow"},"o"),(0,m.kt)("mi",{parentName:"mrow"},"s"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mn",{parentName:"mrow"},"2"),(0,m.kt)("mi",{parentName:"mrow"},"i"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"\xd7"),(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("mi",{parentName:"mrow"},"E"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"k"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mn",{parentName:"mrow"},"2"),(0,m.kt)("mi",{parentName:"mrow"},"i"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"))))))),(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mtext",{parentName:"mtd"},"(3)")))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"\\begin{array}{l}PE(pos+k,2i)=PE(pos,2i)\\times PE(k,2i+1)+PE(pos,2i+1)\\times PE(k,2i)\\\\PE(pos+k,2i+1)=PE(pos,2i+1)\\times PE(k,2i+1)-PE(pos,2i)\\times PE(k,2i)\\end{array} \\tag{3}")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"2.4em",verticalAlign:"-0.95em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mtable"},(0,m.kt)("span",{parentName:"span",className:"arraycolsep",style:{width:"0.5em"}}),(0,m.kt)("span",{parentName:"span",className:"col-align-l"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.45em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-3.61em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05764em"}},"PE"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"p"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"os"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"+"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03148em"}},"k"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"2"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"i"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"="),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05764em"}},"PE"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"p"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"os"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"2"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"i"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"\xd7"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05764em"}},"PE"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03148em"}},"k"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"2"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"i"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"+"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"1"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"+"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05764em"}},"PE"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"p"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"os"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"2"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"i"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"+"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"1"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"\xd7"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05764em"}},"PE"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03148em"}},"k"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"2"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"i"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"))),(0,m.kt)("span",{parentName:"span",style:{top:"-2.41em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05764em"}},"PE"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"p"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"os"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"+"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03148em"}},"k"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"2"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"i"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"+"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"1"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"="),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05764em"}},"PE"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"p"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"os"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"2"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"i"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"+"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"1"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"\xd7"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05764em"}},"PE"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03148em"}},"k"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"2"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"i"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"+"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"1"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"\u2212"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05764em"}},"PE"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"p"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"os"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"2"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"i"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"\xd7"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05764em"}},"PE"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03148em"}},"k"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"2"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"i"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.95em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"arraycolsep",style:{width:"0.5em"}})))),(0,m.kt)("span",{parentName:"span",className:"tag"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"2.4em",verticalAlign:"-0.95em"}}),(0,m.kt)("span",{parentName:"span",className:"mord text"},(0,m.kt)("span",{parentName:"span",className:"mord"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"3")),(0,m.kt)("span",{parentName:"span",className:"mord"},")"))))))),(0,m.kt)("p",null,"\u6700\u7ec8\uff0c\u4f4d\u7f6e\u7f16\u7801\u5411\u91cf\u7684\u7ef4\u5ea6\u4e0e\u8bcd\u6c47\u7684\u5d4c\u5165\u7ef4\u5ea6\u76f8\u540c\uff0c\u8fdb\u884celement-wise\u7684\u76f8\u52a0\u64cd\u4f5c\u3002"),(0,m.kt)("div",{className:"math math-display"},(0,m.kt)("span",{parentName:"div",className:"katex-display"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mtable",{parentName:"semantics",width:"100%"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mrow",{parentName:"mtd"},(0,m.kt)("mi",{parentName:"mrow"},"I"),(0,m.kt)("mi",{parentName:"mrow"},"n"),(0,m.kt)("mi",{parentName:"mrow"},"p"),(0,m.kt)("mi",{parentName:"mrow"},"u"),(0,m.kt)("mi",{parentName:"mrow"},"t"),(0,m.kt)("mi",{parentName:"mrow"},"E"),(0,m.kt)("mi",{parentName:"mrow"},"m"),(0,m.kt)("mi",{parentName:"mrow"},"b"),(0,m.kt)("mi",{parentName:"mrow"},"e"),(0,m.kt)("mi",{parentName:"mrow"},"d"),(0,m.kt)("mi",{parentName:"mrow"},"d"),(0,m.kt)("mi",{parentName:"mrow"},"i"),(0,m.kt)("mi",{parentName:"mrow"},"n"),(0,m.kt)("mi",{parentName:"mrow"},"g"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"p"),(0,m.kt)("mi",{parentName:"mrow"},"o"),(0,m.kt)("mi",{parentName:"mrow"},"s"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"i"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("mi",{parentName:"mrow"},"W"),(0,m.kt)("mi",{parentName:"mrow"},"o"),(0,m.kt)("mi",{parentName:"mrow"},"r"),(0,m.kt)("mi",{parentName:"mrow"},"d"),(0,m.kt)("mi",{parentName:"mrow"},"E"),(0,m.kt)("mi",{parentName:"mrow"},"m"),(0,m.kt)("mi",{parentName:"mrow"},"b"),(0,m.kt)("mi",{parentName:"mrow"},"e"),(0,m.kt)("mi",{parentName:"mrow"},"d"),(0,m.kt)("mi",{parentName:"mrow"},"d"),(0,m.kt)("mi",{parentName:"mrow"},"i"),(0,m.kt)("mi",{parentName:"mrow"},"n"),(0,m.kt)("mi",{parentName:"mrow"},"g"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"p"),(0,m.kt)("mi",{parentName:"mrow"},"o"),(0,m.kt)("mi",{parentName:"mrow"},"s"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"i"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"+"),(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("mi",{parentName:"mrow"},"o"),(0,m.kt)("mi",{parentName:"mrow"},"s"),(0,m.kt)("mi",{parentName:"mrow"},"i"),(0,m.kt)("mi",{parentName:"mrow"},"t"),(0,m.kt)("mi",{parentName:"mrow"},"i"),(0,m.kt)("mi",{parentName:"mrow"},"o"),(0,m.kt)("mi",{parentName:"mrow"},"n"),(0,m.kt)("mi",{parentName:"mrow"},"E"),(0,m.kt)("mi",{parentName:"mrow"},"n"),(0,m.kt)("mi",{parentName:"mrow"},"c"),(0,m.kt)("mi",{parentName:"mrow"},"o"),(0,m.kt)("mi",{parentName:"mrow"},"d"),(0,m.kt)("mi",{parentName:"mrow"},"i"),(0,m.kt)("mi",{parentName:"mrow"},"n"),(0,m.kt)("mi",{parentName:"mrow"},"g"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"p"),(0,m.kt)("mi",{parentName:"mrow"},"o"),(0,m.kt)("mi",{parentName:"mrow"},"s"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"i"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"))),(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mtext",{parentName:"mtd"},"(4)")))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"InputEmbedding(pos,i)=WordEmbedding(pos,i)+PositionEncoding(pos,i) \\tag{4}")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.07847em"}},"I"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"n"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"p"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"u"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05764em"}},"tE"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"mb"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"e"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"dd"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"in"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"g"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"p"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"os"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"i"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"="),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"W"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02778em"}},"or"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"d"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05764em"}},"E"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"mb"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"e"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"dd"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"in"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"g"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"p"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"os"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"i"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"+"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"P"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"os"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"i"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"t"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"i"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"o"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"n"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05764em"}},"E"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"n"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"co"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"d"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"in"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"g"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"p"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"os"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"i"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")")),(0,m.kt)("span",{parentName:"span",className:"tag"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord text"},(0,m.kt)("span",{parentName:"span",className:"mord"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"4")),(0,m.kt)("span",{parentName:"span",className:"mord"},")"))))))),(0,m.kt)("h3",{id:"\u5177\u4f53\u7ed3\u6784"},"\u5177\u4f53\u7ed3\u6784"),(0,m.kt)("p",null,(0,m.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_imagesimage-20231115164324713.png",alt:"image-20231115164324713"})),(0,m.kt)("p",null,"\u8f93\u5165\u5411\u91cf\u7531Word Embedding\u548cPositional Embedding\u76f8\u52a0\u5f97\u5230\u3002\u8f93\u5165\u5e8f\u5217\u7ecf\u8fc7Mutil-Head Self-Attention\u4e4b\u540e\uff0c\u901a\u8fc7Residual Connection\u52a0\u4e0a\u81ea\u8eab\u7684\u8f93\u5165\u5411\u91cf\uff0c\u518d\u7ecf\u8fc7Layer Normalization\uff0c\u4e4b\u540e\u9001\u5165FCN\u5e76\u8fdb\u884cResidual Connection\u52a0\u4e0a\u9001\u5165FCN\u7684\u8f93\u5165\u81ea\u8eab\uff0c\u6700\u7ec8\u518d\u8fdb\u884cLayer Normalization\uff0c\u4ee5\u4e0a\u6784\u6210\u4e86\u4e00\u4e2aEncoder Block\u3002\u6bcf\u4e00\u4e2aBlock\u8f93\u51fa\u7684\u5411\u91cf\u5e8f\u5217\u957f\u5ea6\u7b49\u4e8e\u8f93\u5165\u7684\u5411\u91cf\u5e8f\u5217\u957f\u5ea6\u3002"),(0,m.kt)("h2",{id:"decoder"},"Decoder"),(0,m.kt)("p",null,"Decoder\u7684\u4efb\u52a1\u662f\u751f\u6210\u8f93\u51fa\uff0c\u53ef\u4ee5\u6839\u636e\u662f\u5426\u4e00\u6b21\u6027\u751f\u6210\u8f93\u51fa\u5206\u4e3aAutoregressive\uff08\u81ea\u56de\u5f52\uff0cabbr. AT\uff09\u4ee5\u53caNon-Autoregressive\uff08\u975e\u81ea\u56de\u5f52\uff0cabbr. NAT\uff09\u4e24\u79cd\u6a21\u5f0f\u3002"),(0,m.kt)("p",null,"\u81ea\u56de\u5f52\u7c7b\u578b\u7684Decoder\u9700\u8981",(0,m.kt)("strong",{parentName:"p"},"\u9010\u6b65\u751f\u6210"),"\u8f93\u51fa\uff0c\u5e76\u5c06",(0,m.kt)("strong",{parentName:"p"},"\u4e4b\u524d\u81ea\u8eab\u8f93\u51fa\u7684\u6240\u6709\u8bcd\u6c47\u7ecf\u8fc7\u5d4c\u5165\u5c42\u540e\u751f\u6210token\u4f5c\u4e3a\u4e0b\u4e00\u6b21\u7684\u8f93\u5165"),"\uff0c\u901a\u5e38\u6bcf\u6b21\u751f\u6210\u4e00\u4e2a\u8bcd\u6216\u4e00\u4e2a\u7b26\u53f7\u3002\u8fd9\u79cd\u65b9\u5f0f\u7684\u7f3a\u70b9\u662f\u9700\u8981\u4fdd\u5b58\u548c\u66f4\u65b0\u8bcd\u8868\u4e2d\u7684\u6240\u6709\u53ef\u80fd\u9009\u9879\uff0c\u56e0\u6b64\u5728\u5927\u8bcd\u6c47\u8868\u4e0a\u53ef\u80fd\u4f1a\u53d8\u5f97\u975e\u5e38\u6162\u3002\u7136\u800c\uff0c\u5b83\u7684\u4f18\u70b9\u662f\u80fd\u591f\u5229\u7528\u4e0a\u4e0b\u6587\u4fe1\u606f\u6765\u751f\u6210\u8f93\u51fa\uff0c\u8fd9\u6709\u52a9\u4e8e\u63d0\u9ad8\u7ffb\u8bd1\u7684\u8d28\u91cf\u3002"),(0,m.kt)("p",null,"\u975e\u81ea\u56de\u5f52\u7c7b\u578b\u7684Decoder\u8bd5\u56fe\u5728\u4e00\u6b21\u64cd\u4f5c\u4e2d\u751f\u6210\u6574\u4e2a\u8f93\u51fa\u5e8f\u5217\u3002\u8fd9\u901a\u5e38\u901a\u8fc7\u4f7f\u7528\u8bf8\u5982\u6ce8\u610f\u529b\u673a\u5236\u7b49\u7b56\u7565\u6765\u5b9e\u73b0\uff0c\u8fd9\u4e9b\u7b56\u7565\u5141\u8bb8\u89e3\u7801\u5668\u5173\u6ce8\u8f93\u5165\u5e8f\u5217\u7684\u4e0d\u540c\u90e8\u5206\uff0c\u540c\u65f6\u751f\u6210\u8f93\u51fa\u5e8f\u5217\u7684\u4e0d\u540c\u90e8\u5206\u3002NAT\u7684\u4f18\u70b9\u5728\u4e8e\u5176\u9ad8\u6548\u6027\uff0c\u56e0\u4e3a\u5b83\u4e0d\u9700\u8981\u4fdd\u5b58\u548c\u66f4\u65b0\u5927\u91cf\u7684\u53ef\u80fd\u9009\u9879\u3002\u7136\u800c\uff0c\u7531\u4e8e\u5b83\u4e0d\u80fd\u5229\u7528\u4e0a\u4e0b\u6587\u4fe1\u606f\u6765\u751f\u6210\u8f93\u51fa\uff0c\u56e0\u6b64\u5176\u751f\u6210\u7684\u8f93\u51fa\u8d28\u91cf\u666e\u904d\u4f1a\u4f4e\u4e8eAT\u3002"),(0,m.kt)("h3",{id:"autoregressive-decoderat"},"Autoregressive Decoder\uff08AT\uff09"),(0,m.kt)("h4",{id:"\u6574\u4f53\u7ed3\u6784-2"},"\u6574\u4f53\u7ed3\u6784"),(0,m.kt)("p",null,(0,m.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_imagesimage-20231119102540689.png",alt:"image-20231119102540689"})),(0,m.kt)("h4",{id:"\u8bcd\u6c47\u8868vocabulary"},"\u8bcd\u6c47\u8868\uff08Vocabulary\uff09"),(0,m.kt)("p",null,"\u8bcd\u6c47\u8868\uff08Vocabulary\uff09\u662f\u4e00\u4e2a\u5305\u542b\u4e86\u5728\u7279\u5b9a\u8bed\u8a00\u6216\u4efb\u52a1\u4e2d",(0,m.kt)("strong",{parentName:"p"},"\u6240\u6709\u53ef\u80fd\u51fa\u73b0"),"\u7684",(0,m.kt)("strong",{parentName:"p"},"\u6240\u6709\u5355\u8bcd\u6216\u6807\u8bb0"),"\u7684\u96c6\u5408\u3002\u5728\u81ea\u7136\u8bed\u8a00\u5904\u7406\uff08NLP\uff09\u4e2d\uff0c\u8bcd\u6c47\u8868\u662f",(0,m.kt)("strong",{parentName:"p"},"\u8bad\u7ec3\u6a21\u578b\u65f6\u6240\u4f7f\u7528\u7684\u552f\u4e00\u5355\u8bcd\u7684\u96c6\u5408"),"\uff0c\u7531\u5177\u4f53\u7684\u751f\u6210\u4efb\u52a1\u800c\u786e\u5b9a\u3002"),(0,m.kt)("p",null,"Decoder\u6bcf\u4e00\u6b65\u7684\u8f93\u51fa\u662f\u4e00\u4e2a\u7ecf\u8fc7Softmax\u7684Probability Distribution\uff08\u6982\u7387\u5206\u5e03\uff09\uff0c\u4ee3\u8868\u7740\u8bcd\u6c47\u8868\u4e2d\u6bcf\u4e00\u4e2a\u8bcd\u6c47\u5f53\u524d\u751f\u6210\u7684\u6982\u7387\uff0c\u53d6\u6700\u5927\u6982\u7387\u503c\u7684\u8bcd\u6c47\u4fbf\u662f\u6a21\u578b\u5f53\u524d\u65f6\u95f4\u6b65\u8f93\u51fa\u7684\u8bcd\u6c47\u3002"),(0,m.kt)("p",null,(0,m.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_imagesimage-20231119094748152.png",alt:"image-20231119094748152"})),(0,m.kt)("h4",{id:"begin\u7b26\u53f7"},"Begin\u7b26\u53f7"),(0,m.kt)("p",null,"\u89e3\u7801\u5668\uff08Decoder\uff09\u5728\u6bcf\u4e2a\u65f6\u95f4\u6b65\uff08\u6216\u6bcf\u4e2a\u89e3\u7801\u6b65\u9aa4\uff09\u7684\u8f93\u5165\u90fd\u6765\u81ea\u4e8e\u524d\u4e00\u4e2a\u65f6\u95f4\u6b65\u81ea\u8eab\u7684\u8f93\u51fa\u4ee5\u53ca\u7f16\u7801\u5668\uff08Encoder\uff09\u7684\u8f93\u51fa\u3002\u7279\u522b\u5730\uff0c\u9996\u4e2a\u65f6\u95f4\u6b65\u7684\u8f93\u5165\u662fBegin\u7b26\u53f7\u4ee5\u53ca\u7f16\u7801\u5668\uff08Encoder\uff09\u7684\u8f93\u51fa\uff0c\u5728\u6bcf\u4e2a\u540e\u7eed\u7684\u65f6\u95f4\u6b65\uff0c\u89e3\u7801\u5668\u7684\u8f93\u5165\u4f1a\u662f\u524d\u4e00\u4e2a\u65f6\u95f4\u6b65\u81ea\u8eab\u7684\u8f93\u51fa\u4ee5\u53ca\u7f16\u7801\u5668\uff08Encoder\uff09\u7684\u8f93\u51fa\uff0c\u76f4\u5230\u751f\u6210\u5e8f\u5217\u7684\u7ed3\u675f\u3002"),(0,m.kt)("admonition",{title:"\u7279\u6b8a\u7b26\u53f7",type:"tip"},(0,m.kt)("p",{parentName:"admonition"},"Begin\u7b26\u53f7\u662f\u5728Lexicon\u4e2d\u6dfb\u52a0\u7684\u7279\u6b8a\u7b26\u53f7\uff0c\u7528\u6765\u8868\u793aDecoder\u751f\u6210\u7684\u5f00\u59cb\u3002Begin\u7b26\u53f7\u901a\u5e38\u88ab\u5d4c\u5165\u5230\u4e00\u4e2a\u4f4e\u7ef4\u7684\u8fde\u7eed\u5411\u91cf\u7a7a\u95f4\u4e2d\uff0c\u8fd9\u4e2a\u5411\u91cf\u7a7a\u95f4\u662f\u901a\u8fc7\u5d4c\u5165\u5c42\uff08Embedding Layer\uff09\u5b66\u4e60\u5f97\u5230\u7684\uff0c\u5728\u5d4c\u5165\u5c42\u4e2d\uff0c\u79bb\u6563\u7684\u7b26\u53f7\u88ab\u6620\u5c04\u5230\u4e00\u4e2a\u5b9e\u6570\u5411\u91cf\u3002"),(0,m.kt)("p",{parentName:"admonition"},"Begin\u7b26\u53f7\u53c8\u53ebStart\u7b26\u53f7\u6216SOS\u7b26\u53f7\uff08",(0,m.kt)("strong",{parentName:"p"},"S"),"tart ",(0,m.kt)("strong",{parentName:"p"},"O"),"f ",(0,m.kt)("strong",{parentName:"p"},"S"),"entence\uff09\uff0c\u90fd\u662f\u8868\u793a\u751f\u6210\u7684\u5f00\u59cb\u3002End\u7b26\u53f7\u53c8\u53ebEOS\u7b26\u53f7\uff08",(0,m.kt)("strong",{parentName:"p"},"E"),"nd ",(0,m.kt)("strong",{parentName:"p"},"O"),"f ",(0,m.kt)("strong",{parentName:"p"},"S"),"entence\uff09\u3002")),(0,m.kt)("h4",{id:"end\u7b26\u53f7"},"End\u7b26\u53f7"),(0,m.kt)("p",null,"\u5728Decoder\u7684\u751f\u6210\u4e2d\uff0c\u6bcf\u4e00\u4e2a\u65f6\u95f4\u6b65\u7684\u8f93\u51fa\u662f\u8bcd\u6c47\u8868\u4e2d\u6bcf\u4e00\u4e2a\u5355\u8bcd\u7ecf\u8fc7Softmax\u4e4b\u540e\u7684\u6982\u7387\u5206\u5e03\u3002\u4e3a\u4e86\u4fdd\u8bc1\u751f\u6210\u4efb\u52a1\u53ef\u4ee5\u901a\u8fc7\u6a21\u578b\u81ea\u5df1\u505c\u6b62\u800c\u4e0d\u662f\u4e00\u76f4\u91cd\u590d\uff0c\u6211\u4eec\u5411Decoder\u7684\u8f93\u51fa\u4e2d\u52a0\u5165End\u7b26\u53f7\u7684\u751f\u6210\uff0c\u5373\u6bcf\u4e00\u6b21\u8f93\u51fa\u9664\u4e86\u8bcd\u6c47\u8868\u7684\u6240\u6709\u8bcd\u6c47\u5916\u8fd8\u6709End\u7b26\u53f7\u7684\u6982\u7387\uff0c\u5f53End\u7b26\u53f7\u662f\u5728\u6240\u6709\u8bcd\u6c47\u4e2d\u6982\u7387\u6700\u5927\u7684\u8bcd\u6c47\u65f6\uff0c\u751f\u6210\u505c\u6b62\u3002"),(0,m.kt)("p",null,(0,m.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_imagesimage-20231119102220262.png",alt:"image-20231119102220262"})),(0,m.kt)("p",null,(0,m.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_imagesimage-20231119102159884.png",alt:"image-20231119102159884"})),(0,m.kt)("h4",{id:"\u63a9\u7801\u591a\u5934\u81ea\u6ce8\u610f\u529b\u673a\u5236masked-multi-head-self-attention"},"\u63a9\u7801\u591a\u5934\u81ea\u6ce8\u610f\u529b\u673a\u5236\uff08Masked Multi-Head Self-Attention\uff09"),(0,m.kt)("admonition",{title:"\u4e3a\u4ec0\u4e48\u4f7f\u7528\u63a9\u7801\u591a\u5934\u81ea\u6ce8\u610f\u529b",type:"important"},(0,m.kt)("p",{parentName:"admonition"},"\u63a9\u7801\u591a\u5934\u81ea\u6ce8\u610f\u529b\u4e0eTransformer\u8bad\u7ec3\u65f6\u91c7\u53d6\u7684Teacher Forcing\u7b56\u7565\u6709\u5f88\u5927\u7684\u5173\u7cfb\uff0c\u5177\u4f53\u5206\u6790\u89c1\u4e0b\u6587\u300aTeacher Forcing\u4e0eMasked Multi-Head Self-Attention\u300b\u7684\u8ba8\u8bba\u73af\u8282\uff1a",(0,m.kt)("a",{parentName:"p",href:"https://bonjour-npy.github.io/docs/Deep-Learning/%E8%AE%BA%E6%96%87%E7%AC%94%E8%AE%B0/Attention%20Is%20All%20You%20Need#teacher-forcing%E4%B8%8Emasked-multi-head-self-attention"},"Teacher Forcing\u4e0eMasked Multi-Head Self-Attention"))),(0,m.kt)("p",null,"\u89c2\u5bdfDecoder\u7684\u6574\u4f53\u7ed3\u6784\uff0c\u63a9\u7801\u591a\u5934\u81ea\u6ce8\u610f\u529b\u7684\u8f93\u5165\u662f\u6dfb\u52a0\u4f4d\u7f6e\u7f16\u7801\u4e4b\u540e\u7684Decoder",(0,m.kt)("strong",{parentName:"p"},"\u5f53\u524d\u65f6\u95f4\u6b65\u4e4b\u524d\u7684\u6240\u6709\u8f93\u51fa\u5355\u8bcd\u7ecf\u8fc7\u5d4c\u5165\u540e\u7684\u5411\u91cf\u8868\u793a"),"\u3002"),(0,m.kt)("p",null,"\u63a9\u7801\u591a\u5934\u81ea\u6ce8\u610f\u529b\u673a\u5236\u7528\u4e8e\u786e\u4fdd\u5728\u751f\u6210\u5e8f\u5217\u7684\u8fc7\u7a0b\u4e2d\uff0c\u6bcf\u4e2a\u4f4d\u7f6e\u53ea\u80fd\u5173\u6ce8\u5230\u8be5\u4f4d\u7f6e\u53ca\u5176\u4e4b\u524d\u7684\u4f4d\u7f6e\u3002\u8fd9\u662f\u901a\u8fc7\u5728Self-Attention\u7684\u8ba1\u7b97\u4e2d\u5e94\u7528\u4e00\u4e2a\u63a9\u7801\uff08mask\uff09\u6765\u5b9e\u73b0\u7684\u3002\u8fd9\u786e\u4fdd\u4e86\u5728\u751f\u6210\u5e8f\u5217\u65f6\uff0c\u6bcf\u4e2a\u4f4d\u7f6e\u53ea\u80fd\u67e5\u770b\u5230\u5b83\u4e4b\u524d\u7684\u4fe1\u606f\uff0c\u800c\u4e0d\u80fd\u67e5\u770b\u5230\u672a\u6765\u7684\u4fe1\u606f\uff0c\u4ece\u800c\u5b9e\u73b0\u4e86\u81ea\u56de\u5f52\u6027\u8d28\u3002"),(0,m.kt)("p",null,"\u5177\u4f53\u6765\u8bf4\uff0c\u6dfb\u52a0\u63a9\u7801\u540e\u7684\u81ea\u6ce8\u610f\u529b\u673a\u5236\u5728\u751f\u6210\u6ce8\u610f\u529b\u5206\u6570\u65f6\u4e0d\u518d\u8003\u8651\u8f93\u5165\u5e8f\u5217\u7684\u6240\u6709\u5411\u91cf\u3002\u5982\u5728\u8f93\u5165\u5411\u91cf",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("msup",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msup"},"a"),(0,m.kt)("mi",{parentName:"msup"},"i"))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"a^i")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.8247em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"a"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.8247em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-3.063em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"i")))))))))))),"\u5728\u8ba1\u7b97\u6ce8\u610f\u529b\u5206\u6570\u65f6\uff0c\u53ea\u5c06",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("msup",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msup"},"a"),(0,m.kt)("mi",{parentName:"msup"},"i"))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"a^i")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.8247em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"a"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.8247em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-3.063em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"i")))))))))))),"\u7684query\u5411\u91cf\u4e0e",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("msup",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msup"},"a"),(0,m.kt)("mn",{parentName:"msup"},"1"))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"a^1")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.8141em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"a"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.8141em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-3.063em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"1")))))))))))),"\u81f3",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("msup",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msup"},"a"),(0,m.kt)("mi",{parentName:"msup"},"i"))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"a^{i}")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.8247em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"a"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.8247em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-3.063em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"i"))))))))))))),"\u7684",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"i")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"i")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6595em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"i"))))),"\u4e2akey\u5411\u91cf\u505adot product\uff0c\u800c\u4e0d\u8003\u8651",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("msup",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msup"},"a"),(0,m.kt)("mi",{parentName:"msup"},"i"))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"a^i")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.8247em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"a"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.8247em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-3.063em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"i")))))))))))),"\u4e4b\u540e\u7684\u8f93\u5165\u7684key\u3002"),(0,m.kt)("admonition",{type:"tip"},(0,m.kt)("p",{parentName:"admonition"},"\u5bf9\u4e8e\u7b2c",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"s")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"s")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.4306em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"s"))))),"\u4e2a\u65f6\u95f4\u6b65\uff0cMasked Mutil-Head Self-Attention\u7684\u8f93\u5165\u662f\u65f6\u95f4\u6b65",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"s")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"s")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.4306em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"s"))))),"\u4e4b\u524dDecoder\u751f\u6210\u7684\u6240\u6709\u8f93\u51fa\u5355\u8bcd\u7684\u5d4c\u5165\u8868\u793a\u3002")),(0,m.kt)("p",null,(0,m.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_imagesimage-20231119095632569.png",alt:"image-20231119095632569"})),(0,m.kt)("h4",{id:"\u4ea4\u53c9\u6ce8\u610f\u529bcross-attention"},"\u4ea4\u53c9\u6ce8\u610f\u529b\uff08Cross-Attention\uff09"),(0,m.kt)("p",null,"\u4ea4\u53c9\u6ce8\u610f\u529b\u662f\u8fde\u63a5Encoder\u548cDecoder\u7684\u6865\u6881\uff0c\u4e5f\u662fDecoder\u8f93\u5165\u7684\u91cd\u8981\u7ec4\u6210\u90e8\u5206\u3002"),(0,m.kt)("p",null,(0,m.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_imagesimage-20231119103201335.png",alt:"image-20231119103201335"})),(0,m.kt)("p",null,"\u4ea4\u53c9\u6ce8\u610f\u529b\u63a5\u6536\u4e24\u4e2a\u8f93\u5165\u5e8f\u5217\uff0c\u4e00\u4e2a\u6765\u81ea\u7f16\u7801\u5668\uff08Encoder\uff09\u7684\u8f93\u51fa\u5e8f\u5217\uff08\u901a\u5e38\u662f\u8f93\u5165\u5e8f\u5217\u7684\u8868\u793a\uff09\uff0c\u53e6\u4e00\u4e2a\u6765\u81ea\u89e3\u7801\u5668\uff08Decoder\uff09\uff0c\u662f\u7ecf\u8fc7\u63a9\u7801\u591a\u5934\u81ea\u6ce8\u610f\u529b\u673a\u5236\u7684\u8f93\u51fa\u5e8f\u5217\uff08\u901a\u5e38\u662f\u6b63\u5728\u751f\u6210\u7684\u5e8f\u5217\u7684\u4e2d\u95f4\u8868\u793a\uff09\u3002"),(0,m.kt)("p",null,"\u5728\u4ea4\u53c9\u6ce8\u610f\u529b\u4e2d\uff0c\u6bcf\u6b21\u8ba1\u7b97\u6ce8\u610f\u529b\u5f97\u5206\u7684",(0,m.kt)("strong",{parentName:"p"},"query\u6765\u81ea\u89e3\u7801\u5668"),"\uff0c",(0,m.kt)("strong",{parentName:"p"},"key\u548cvalue\u6765\u81ea\u7f16\u7801\u5668"),"\u3002\u89e3\u7801\u5668\u6bcf\u4e2a\u5411\u91cf\u7684\u67e5\u8be2\uff08Query\uff09\u4e0e\u7f16\u7801\u5668\u4f4d\u7f6e\u7684\u952e\uff08Key\uff09\u8fdb\u884c\u70b9\u79ef\u5f97\u5230\u4e86\u6ce8\u610f\u529b\u5206\u6570\uff0c\u901a\u8fc7Softmax\u64cd\u4f5c\u540e\u8f6c\u6362\u4e3a\u6ce8\u610f\u529b\u6743\u91cd\uff0c\u518d\u4e0e\u7f16\u7801\u5668\u4f4d\u7f6e\u7684\u503c\uff08Value\uff09weighted sum\u5f97\u5230\u52a0\u6743\u6ce8\u610f\u529b\u5206\u6570\uff0c\u6700\u7ec8\u5c06\u52a0\u6743\u6ce8\u610f\u529b\u5206\u6570\u6c42\u548c\u5f97\u5230\u6bcf\u4e2a\u8f93\u5165\u5411\u91cf\u7684\u8f93\u51fa\u3002"),(0,m.kt)("p",null,(0,m.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_imagesimage-20231119142212757.png",alt:"image-20231119142212757"})),(0,m.kt)("h3",{id:"non-autoregressive-decodernat"},"Non-Autoregressive Decoder\uff08NAT\uff09"),(0,m.kt)("p",null,(0,m.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_imagesimage-20231119103112168.png",alt:"image-20231119103112168"})),(0,m.kt)("h2",{id:"\u8bad\u7ec3training"},"\u8bad\u7ec3\uff08Training\uff09"),(0,m.kt)("h3",{id:"\u635f\u5931\u51fd\u6570"},"\u635f\u5931\u51fd\u6570"),(0,m.kt)("p",null,"\u5728 Transformer \u4e2d\uff0cEncoder \u4e0d\u50cf Decoder \u9700\u8981\u751f\u6210\u5e8f\u5217\uff0c\u56e0\u6b64\u5b83\u901a\u5e38\u4e0d\u6d89\u53ca\u6807\u7b7e\u7684\u9884\u6d4b\u3002Encoder \u7684\u8bad\u7ec3\u901a\u5e38\u662f\u5728\u6574\u4e2a\u6a21\u578b\u4e2d\u7684\u8054\u5408\u8bad\u7ec3\u4e2d\u8fdb\u884c\u7684\uff0c\u901a\u8fc7\u4f18\u5316\u6574\u4e2a\u6a21\u578b\u7684\u635f\u5931\u51fd\u6570\u6765\u8fdb\u884c\u3002"),(0,m.kt)("p",null,"Transformer \u7684\u6574\u4f53\u8bad\u7ec3\u8fc7\u7a0b\u4e00\u822c\u5206\u4e3a\u4ee5\u4e0b\u51e0\u4e2a\u6b65\u9aa4\uff1a"),(0,m.kt)("ol",null,(0,m.kt)("li",{parentName:"ol"},(0,m.kt)("strong",{parentName:"li"},"\u7f16\u7801\u5668\uff08Encoder\uff09\u7684\u6b63\u5411\u4f20\u64ad\uff1a")," \u8f93\u5165\u5e8f\u5217\u7ecf\u8fc7\u7f16\u7801\u5668\u7684\u6b63\u5411\u4f20\u64ad\uff0c\u4ea7\u751f\u4e00\u7ec4\u4e0a\u4e0b\u6587\u8868\u793a\u3002"),(0,m.kt)("li",{parentName:"ol"},(0,m.kt)("strong",{parentName:"li"},"\u89e3\u7801\u5668\uff08Decoder\uff09\u7684\u6b63\u5411\u4f20\u64ad\uff1a")," \u89e3\u7801\u5668\u63a5\u6536\u4e0a\u4e0b\u6587\u8868\u793a\uff0c\u5e76\u751f\u6210\u76ee\u6807\u5e8f\u5217\u3002"),(0,m.kt)("li",{parentName:"ol"},(0,m.kt)("strong",{parentName:"li"},"\u8ba1\u7b97\u635f\u5931\uff1a")," \u901a\u8fc7\u6bd4\u8f83\u751f\u6210\u7684\u76ee\u6807\u5e8f\u5217\u4e0e\u5b9e\u9645\u76ee\u6807\u5e8f\u5217\uff0c\u8ba1\u7b97\u635f\u5931\u3002\u5728 Decoder \u4e2d\uff0c\u901a\u5e38\u4f7f\u7528\u4ea4\u53c9\u71b5\u635f\u5931\u51fd\u6570\u3002"),(0,m.kt)("li",{parentName:"ol"},(0,m.kt)("strong",{parentName:"li"},"\u53cd\u5411\u4f20\u64ad\uff1a")," \u6839\u636e\u635f\u5931\uff0c\u8fdb\u884c\u53cd\u5411\u4f20\u64ad\uff0c\u66f4\u65b0\u6a21\u578b\u53c2\u6570\u3002\u8fd9\u4e2a\u8fc7\u7a0b\u4e2d\uff0c\u68af\u5ea6\u901a\u8fc7\u6574\u4e2a\u6a21\u578b\u4f20\u64ad\uff0c\u5305\u62ec Encoder \u548c Decoder\u3002")),(0,m.kt)("p",null,"\u6574\u4e2a\u6a21\u578b\u7684\u53c2\u6570\uff08\u5305\u62ec Encoder \u548c Decoder\uff09\u90fd\u662f\u901a\u8fc7\u6700\u5c0f\u5316\u6574\u4f53\u635f\u5931\u6765\u8fdb\u884c\u8054\u5408\u8bad\u7ec3\u7684\u3002\u8fd9\u662f\u56e0\u4e3a\u6574\u4f53\u6a21\u578b\u9700\u8981\u534f\u540c\u5de5\u4f5c\uff0cEncoder \u7684\u8868\u793a\u5bf9\u4e8e Decoder \u7684\u6027\u80fd\u81f3\u5173\u91cd\u8981\u3002\u5728\u8bad\u7ec3\u8fc7\u7a0b\u4e2d\uff0c\u68af\u5ea6\u4ece\u635f\u5931\u51fd\u6570\u4f20\u64ad\u56de\u6574\u4e2a\u6a21\u578b\uff0c\u5305\u62ec Encoder \u548c Decoder\uff0c\u4ece\u800c\u66f4\u65b0\u5b83\u4eec\u7684\u53c2\u6570\u3002"),(0,m.kt)("p",null,"\u9700\u8981\u6ce8\u610f\u7684\u662f\uff0cTransformer \u6a21\u578b\u901a\u5e38\u4f7f\u7528\u7684\u662f\u7aef\u5230\u7aef\u7684\u8bad\u7ec3\u65b9\u5f0f\uff0c\u6574\u4e2a\u6a21\u578b\u7684\u53c2\u6570\u662f\u4e00\u6b21\u6027\u66f4\u65b0\u7684\u3002\u5728\u67d0\u4e9b\u573a\u666f\u4e0b\uff0c\u4f60\u53ef\u80fd\u4f1a\u770b\u5230\u5bf9 Encoder \u6216 Decoder \u8fdb\u884c\u5fae\u8c03\uff08fine-tuning\uff09\u7684\u60c5\u51b5\uff0c\u4f46\u8fd9\u662f\u5728\u7279\u5b9a\u5e94\u7528\u573a\u666f\u4e0b\u7684\u8c03\u6574\uff0c\u4e0d\u662f Transformer \u6a21\u578b\u7684\u6807\u51c6\u8bad\u7ec3\u65b9\u5f0f\u3002"),(0,m.kt)("h3",{id:"teacher-forcing"},"Teacher Forcing"),(0,m.kt)("p",null,"\u5728Transformer\u7684\u63a8\u7406\u9636\u6bb5\uff0c\u81ea\u56de\u5f52\u7c7b\u578b\u7684Decoder\u6839\u636e\u5206\u8bcd\u65b9\u5f0f\u7684\u4e0d\u540c\uff0c\u4e00\u4e2a\u8bcd\u6c47\u4e00\u4e2a\u8bcd\u6c47\u7684\u8f93\u51fa\uff0c\u5c06\u5f53\u524d\u65f6\u95f4\u6b65\u4e4b\u524d\u751f\u6210\u7684\u6240\u6709\u8bcd\u6c47\u4f5c\u4e3a\u8f93\u5165load\u8fdb\u5165Decoder\u4e2d\u3002\u4f46\u5728\u8bad\u7ec3\u65f6\u5982\u679c\u9075\u4ece\u540c\u6837\u7684\u751f\u6210\u8303\u5f0f\u4f1a\u5927\u5927\u964d\u4f4e\u6548\u7387\uff0c\u5e76\u4e14\u9762\u4e34\u5219\u4e00\u6b65\u9519\u6b65\u6b65\u9519\u7684\u98ce\u9669\uff08Error Propagation\uff09\u3002"),(0,m.kt)("p",null,"\u56e0\u6b64\u4f7f\u7528Teacher Forcing\u7b56\u7565\uff0c\u5c06Ground Truth\u4e00\u6b21\u6027\u5582\u5230Decoder\u4e2d\uff0c\u4f7f\u6a21\u578b\u66f4\u5feb\u6536\u655b\u5e76\u4e14\u907f\u514d\u8bef\u5dee\u79ef\u7d2f\u7684\u95ee\u9898\u3002"),(0,m.kt)("p",null,(0,m.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_imagesimage-20231119155803489.png",alt:"image-20231119155803489"})),(0,m.kt)("p",null,"\u4f46\u662f\uff0c\u81ea\u56de\u5f52Decoder\u5728\u63a8\u7406\u65f6\u662f\u4e00\u4e2a\u4e00\u4e2a\u8bcd\u6c47\u4ea7\u751f\u7684\uff0c\u5728\u4ea7\u751f\u7b2c",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"i")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"i")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6595em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"i"))))),"\u4e2a\u8bcd\u6c47\u65f6\u5176\u540e\u7eed\u7684\u8bcd\u6c47\u662f\u672a\u77e5\u7684\uff0c\u66f4\u4e0d\u7528\u8bf4\u8fdb\u884c\u6ce8\u610f\u529b\u5206\u6570\u7684\u5c31\u7b97\u4e86\uff0c\u800c\u5728\u8bad\u7ec3\u8fc7\u7a0b\u4e2d\u4f7f\u7528Teacher Forcing\u65f6\u5374\u53ef\u4ee5\u5f97\u5230\u7b2c",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"i"),(0,m.kt)("mo",{parentName:"mrow"},"+"),(0,m.kt)("mn",{parentName:"mrow"},"1")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"i+1")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.7429em",verticalAlign:"-0.0833em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"i"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"+"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6444em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"1"))))),"\u4e2a\u53ca\u5176\u4e4b\u540e\u8bcd\u6c47\u7684\u6ce8\u610f\u529b\u4fe1\u606f\uff0c\u5982\u679c\u4e0d\u6dfb\u52a0\u5176\u4ed6\u7b56\u7565\u663e\u7136\u4f1a\u5bf9\u6a21\u578b\u7684\u6cdb\u5316\u80fd\u529b\u9020\u6210\u5f88\u5927\u7684\u5f71\u54cd\uff0c\u800c\u4e14\u8fd9\u5e76\u4e0d\u7b26\u5408\u81ea\u56de\u5f52\uff08Autoregression\uff09\u7684\u7279\u6027\u3002\u4e3a\u4e86\u89e3\u51b3\u8fd9\u4e2a\u95ee\u9898\uff0c\u63a9\u7801\u591a\u5934\u6ce8\u610f\u529b\u673a\u5236\u5e94\u8fd0\u800c\u751f\uff0c\u5728\u8bad\u7ec3\u9636\u6bb5\u5c06\u6a21\u578b\u5728\u65f6\u95f4\u53d1\u5c55\u987a\u5e8f\u7684\u53f3\u4fa7\u7684\u8f93\u5165masked\u6389\uff0c\u9632\u6b62\u6a21\u578b\u5b66\u4e60\u5230\u4e0d\u8be5\u5b66\u4e60\u7684\u6ce8\u610f\u529b\u3002"),(0,m.kt)("h3",{id:"teacher-forcing\u4e0emasked-multi-head-self-attention"},"Teacher Forcing\u4e0eMasked Multi-Head Self-Attention"),(0,m.kt)("p",null,"\u53c2\u8003\u6587\u732e\uff1a",(0,m.kt)("a",{parentName:"p",href:"http://t.csdnimg.cn/c8QA2"},"MultiHead-Attention\u548cMasked-Attention\u7684\u673a\u5236\u548c\u539f\u7406")),(0,m.kt)("p",null,"\u4e0eEncoder\u7684\u591a\u5934\u81ea\u6ce8\u610f\u529b\u4e0d\u540c\uff0c\u5728Decoder\u4e2d\uff0c\u4e3a\u6ce8\u610f\u529b\u673a\u5236\u5e94\u7528\u4e86\u63a9\u7801\uff0c\u4f7f\u6a21\u578b\u53ea\u80fd\u5173\u6ce8\u5230\u5f53\u524d\u4f4d\u7f6e\u53ca\u5176\u4e4b\u524d\u7684\u4f4d\u7f6e\uff0c\u800c\u4e0d\u80fd\u8bbf\u95ee\u672a\u6765\u7684\u4fe1\u606f\u3002\u8fd9\u89e3\u51b3\u4e86\u5f15\u5165Teacher Forcing\u51fa\u73b0\u7684\u95ee\u9898\uff0c\u907f\u514d\u4e86\u8bad\u7ec3\u4e0e\u63a8\u7406\u9636\u6bb5\u7684Mismatch\uff0c\u7ef4\u62a4\u4e86\u81ea\u56de\u5f52\u7684\u7279\u6027\u3002"),(0,m.kt)("p",null,"\u5177\u4f53\u6765\u8bf4\uff0c\u6a21\u62df\u63a8\u7406\u8fc7\u7a0b\u4e2d\u7b2c\u4e00\u4e2a\u8bcd\u6c47\u65f6\u7684\u573a\u666f\u3002\u5f53\u6a21\u578b\u53ea\u6709",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"v"),(0,m.kt)("mi",{parentName:"mrow"},"o"),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"c"),(0,m.kt)("mn",{parentName:"msub"},"1"))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"voc_1")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.5806em",verticalAlign:"-0.15em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"v"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"o"),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"c"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"1")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))))))),"\u8bcd\u6c47\u5411\u91cf\u8f93\u5165\u65f6\uff0c\u5728Decoder\u4e2d\uff0c",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"v"),(0,m.kt)("mi",{parentName:"mrow"},"o"),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"c"),(0,m.kt)("mn",{parentName:"msub"},"1"))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"voc_1")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.5806em",verticalAlign:"-0.15em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"v"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"o"),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"c"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"1")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))))))),"\u4e0e\u81ea\u8eab\u8ba1\u7b97\u6ce8\u610f\u529b\u5206\u6570\uff0c\u4e8e\u662f\u6709"),(0,m.kt)("div",{className:"math math-display"},(0,m.kt)("span",{parentName:"div",className:"katex-display"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mtable",{parentName:"semantics",width:"100%"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mrow",{parentName:"mtd"},(0,m.kt)("mrow",{parentName:"mrow"},(0,m.kt)("mo",{parentName:"mrow",fence:"true"},"["),(0,m.kt)("mtable",{parentName:"mrow",rowspacing:"0.16em",columnalign:"center",columnspacing:"1em"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("msub",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"msub"},"o"),(0,m.kt)("mn",{parentName:"msub"},"1")))))),(0,m.kt)("mo",{parentName:"mrow",fence:"true"},"]")),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("mrow",{parentName:"mrow"},(0,m.kt)("mo",{parentName:"mrow",fence:"true"},"["),(0,m.kt)("mtable",{parentName:"mrow",rowspacing:"0.16em",columnalign:"center",columnspacing:"1em"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("msubsup",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"msubsup"},"\u03b1"),(0,m.kt)("mrow",{parentName:"msubsup"},(0,m.kt)("mn",{parentName:"mrow"},"1"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mn",{parentName:"mrow"},"1")),(0,m.kt)("mo",{parentName:"msubsup",mathvariant:"normal",lspace:"0em",rspace:"0em"},"\u2032")))))),(0,m.kt)("mo",{parentName:"mrow",fence:"true"},"]")),(0,m.kt)("mrow",{parentName:"mrow"},(0,m.kt)("mo",{parentName:"mrow",fence:"true"},"["),(0,m.kt)("mtable",{parentName:"mrow",rowspacing:"0.16em",columnalign:"center",columnspacing:"1em"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("msub",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"msub"},"v"),(0,m.kt)("mn",{parentName:"msub"},"1")))))),(0,m.kt)("mo",{parentName:"mrow",fence:"true"},"]")))),(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mtext",{parentName:"mtd"},"(5)")))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"\\begin{bmatrix}o_1\\end{bmatrix}=\\begin{bmatrix}\\alpha_{1,1}^{\\prime}\\end{bmatrix}\\begin{bmatrix}v_1\\end{bmatrix}\\tag{5}")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1.2em",verticalAlign:"-0.35em"}}),(0,m.kt)("span",{parentName:"span",className:"minner"},(0,m.kt)("span",{parentName:"span",className:"mopen delimcenter",style:{top:"0em"}},(0,m.kt)("span",{parentName:"span",className:"delimsizing size1"},"[")),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mtable"},(0,m.kt)("span",{parentName:"span",className:"col-align-c"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.85em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-3.01em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"o"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"1")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"}))))))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.35em"}},(0,m.kt)("span",{parentName:"span"}))))))),(0,m.kt)("span",{parentName:"span",className:"mclose delimcenter",style:{top:"0em"}},(0,m.kt)("span",{parentName:"span",className:"delimsizing size1"},"]"))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"="),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1.2242em",verticalAlign:"-0.3621em"}}),(0,m.kt)("span",{parentName:"span",className:"minner"},(0,m.kt)("span",{parentName:"span",className:"mopen delimcenter",style:{top:"0em"}},(0,m.kt)("span",{parentName:"span",className:"delimsizing size1"},"[")),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mtable"},(0,m.kt)("span",{parentName:"span",className:"col-align-c"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.8621em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-3.0221em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.0037em"}},"\u03b1"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.7519em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.4519em",marginLeft:"-0.0037em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"1"),(0,m.kt)("span",{parentName:"span",className:"mpunct mtight"},","),(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"1")))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.063em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"\u2032"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3842em"}},(0,m.kt)("span",{parentName:"span"}))))))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3621em"}},(0,m.kt)("span",{parentName:"span"}))))))),(0,m.kt)("span",{parentName:"span",className:"mclose delimcenter",style:{top:"0em"}},(0,m.kt)("span",{parentName:"span",className:"delimsizing size1"},"]"))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"minner"},(0,m.kt)("span",{parentName:"span",className:"mopen delimcenter",style:{top:"0em"}},(0,m.kt)("span",{parentName:"span",className:"delimsizing size1"},"[")),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mtable"},(0,m.kt)("span",{parentName:"span",className:"col-align-c"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.85em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-3.01em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"v"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0359em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"1")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"}))))))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.35em"}},(0,m.kt)("span",{parentName:"span"}))))))),(0,m.kt)("span",{parentName:"span",className:"mclose delimcenter",style:{top:"0em"}},(0,m.kt)("span",{parentName:"span",className:"delimsizing size1"},"]")))),(0,m.kt)("span",{parentName:"span",className:"tag"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1.2242em",verticalAlign:"-0.3621em"}}),(0,m.kt)("span",{parentName:"span",className:"mord text"},(0,m.kt)("span",{parentName:"span",className:"mord"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"5")),(0,m.kt)("span",{parentName:"span",className:"mord"},")"))))))),(0,m.kt)("p",null,"\u6211\u4eec\u518d\u6a21\u62df\u8bad\u7ec3\u8fc7\u7a0b\u4e2d\u4f7f\u7528Teacher Forcing\uff0c\u4e00\u6b21\u6027\u8f93\u5165\u4e3a\u4e24\u4e2a\u8bcd\u6c47",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"v"),(0,m.kt)("mi",{parentName:"mrow"},"o"),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"c"),(0,m.kt)("mn",{parentName:"msub"},"1"))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"voc_1")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.5806em",verticalAlign:"-0.15em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"v"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"o"),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"c"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"1")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))))))),"\u4e0e",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"v"),(0,m.kt)("mi",{parentName:"mrow"},"o"),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"c"),(0,m.kt)("mn",{parentName:"msub"},"2"))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"voc_2")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.5806em",verticalAlign:"-0.15em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"v"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"o"),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"c"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"2")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))))))),"\u7684\u60c5\u51b5\uff0c\u4e8e\u662f\u6709"),(0,m.kt)("div",{className:"math math-display"},(0,m.kt)("span",{parentName:"div",className:"katex-display"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mtable",{parentName:"semantics",width:"100%"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mrow",{parentName:"mtd"},(0,m.kt)("mrow",{parentName:"mrow"},(0,m.kt)("mo",{parentName:"mrow",fence:"true"},"["),(0,m.kt)("mtable",{parentName:"mrow",rowspacing:"0.16em",columnalign:"center",columnspacing:"1em"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("msub",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"msub"},"o"),(0,m.kt)("mn",{parentName:"msub"},"1"))))),(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("msub",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"msub"},"o"),(0,m.kt)("mn",{parentName:"msub"},"2")))))),(0,m.kt)("mo",{parentName:"mrow",fence:"true"},"]")),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("mrow",{parentName:"mrow"},(0,m.kt)("mo",{parentName:"mrow",fence:"true"},"["),(0,m.kt)("mtable",{parentName:"mrow",rowspacing:"0.16em",columnalign:"center center",columnspacing:"1em"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("msubsup",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"msubsup"},"\u03b1"),(0,m.kt)("mrow",{parentName:"msubsup"},(0,m.kt)("mn",{parentName:"mrow"},"1"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mn",{parentName:"mrow"},"1")),(0,m.kt)("mo",{parentName:"msubsup",mathvariant:"normal",lspace:"0em",rspace:"0em"},"\u2032")))),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("msubsup",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"msubsup"},"\u03b1"),(0,m.kt)("mrow",{parentName:"msubsup"},(0,m.kt)("mn",{parentName:"mrow"},"2"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mn",{parentName:"mrow"},"1")),(0,m.kt)("mo",{parentName:"msubsup",mathvariant:"normal",lspace:"0em",rspace:"0em"},"\u2032"))))),(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("msubsup",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"msubsup"},"\u03b1"),(0,m.kt)("mrow",{parentName:"msubsup"},(0,m.kt)("mn",{parentName:"mrow"},"1"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mn",{parentName:"mrow"},"2")),(0,m.kt)("mo",{parentName:"msubsup",mathvariant:"normal",lspace:"0em",rspace:"0em"},"\u2032")))),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("msubsup",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"msubsup"},"\u03b1"),(0,m.kt)("mrow",{parentName:"msubsup"},(0,m.kt)("mn",{parentName:"mrow"},"2"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mn",{parentName:"mrow"},"2")),(0,m.kt)("mo",{parentName:"msubsup",mathvariant:"normal",lspace:"0em",rspace:"0em"},"\u2032")))))),(0,m.kt)("mo",{parentName:"mrow",fence:"true"},"]")),(0,m.kt)("mrow",{parentName:"mrow"},(0,m.kt)("mo",{parentName:"mrow",fence:"true"},"["),(0,m.kt)("mtable",{parentName:"mrow",rowspacing:"0.16em",columnalign:"center",columnspacing:"1em"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("msub",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"msub"},"v"),(0,m.kt)("mn",{parentName:"msub"},"1"))))),(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("msub",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"msub"},"v"),(0,m.kt)("mn",{parentName:"msub"},"2")))))),(0,m.kt)("mo",{parentName:"mrow",fence:"true"},"]")))),(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mtext",{parentName:"mtd"},"(6)")))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"\\begin{bmatrix}o_1\\\\o_2\\end{bmatrix}=\\begin{bmatrix}\\alpha_{1,1}^{\\prime}&\\alpha_{2,1}^{\\prime}\\\\\\alpha_{1,2}^{\\prime}&\\alpha_{2,2}^{\\prime}\\end{bmatrix}\\begin{bmatrix}v_1\\\\v_2\\end{bmatrix} \\tag{6}")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"2.4em",verticalAlign:"-0.95em"}}),(0,m.kt)("span",{parentName:"span",className:"minner"},(0,m.kt)("span",{parentName:"span",className:"mopen delimcenter",style:{top:"0em"}},(0,m.kt)("span",{parentName:"span",className:"delimsizing size3"},"[")),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mtable"},(0,m.kt)("span",{parentName:"span",className:"col-align-c"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.45em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-3.61em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"o"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"1")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))))),(0,m.kt)("span",{parentName:"span",style:{top:"-2.41em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"o"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"2")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"}))))))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.95em"}},(0,m.kt)("span",{parentName:"span"}))))))),(0,m.kt)("span",{parentName:"span",className:"mclose delimcenter",style:{top:"0em"}},(0,m.kt)("span",{parentName:"span",className:"delimsizing size3"},"]"))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"="),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"2.4484em",verticalAlign:"-0.9742em"}}),(0,m.kt)("span",{parentName:"span",className:"minner"},(0,m.kt)("span",{parentName:"span",className:"mopen delimcenter",style:{top:"0em"}},(0,m.kt)("span",{parentName:"span",className:"delimsizing size3"},"[")),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mtable"},(0,m.kt)("span",{parentName:"span",className:"col-align-c"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.4742em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-3.6342em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.0037em"}},"\u03b1"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.7519em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.4519em",marginLeft:"-0.0037em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"1"),(0,m.kt)("span",{parentName:"span",className:"mpunct mtight"},","),(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"1")))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.063em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"\u2032"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3842em"}},(0,m.kt)("span",{parentName:"span"})))))))),(0,m.kt)("span",{parentName:"span",style:{top:"-2.41em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.0037em"}},"\u03b1"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.7519em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.4519em",marginLeft:"-0.0037em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"1"),(0,m.kt)("span",{parentName:"span",className:"mpunct mtight"},","),(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"2")))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.063em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"\u2032"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3842em"}},(0,m.kt)("span",{parentName:"span"}))))))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.9742em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"arraycolsep",style:{width:"0.5em"}}),(0,m.kt)("span",{parentName:"span",className:"arraycolsep",style:{width:"0.5em"}}),(0,m.kt)("span",{parentName:"span",className:"col-align-c"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.4742em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-3.6342em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.0037em"}},"\u03b1"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.7519em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.4519em",marginLeft:"-0.0037em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"2"),(0,m.kt)("span",{parentName:"span",className:"mpunct mtight"},","),(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"1")))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.063em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"\u2032"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3842em"}},(0,m.kt)("span",{parentName:"span"})))))))),(0,m.kt)("span",{parentName:"span",style:{top:"-2.41em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.0037em"}},"\u03b1"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.7519em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.4519em",marginLeft:"-0.0037em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"2"),(0,m.kt)("span",{parentName:"span",className:"mpunct mtight"},","),(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"2")))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.063em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"\u2032"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3842em"}},(0,m.kt)("span",{parentName:"span"}))))))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.9742em"}},(0,m.kt)("span",{parentName:"span"}))))))),(0,m.kt)("span",{parentName:"span",className:"mclose delimcenter",style:{top:"0em"}},(0,m.kt)("span",{parentName:"span",className:"delimsizing size3"},"]"))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"minner"},(0,m.kt)("span",{parentName:"span",className:"mopen delimcenter",style:{top:"0em"}},(0,m.kt)("span",{parentName:"span",className:"delimsizing size3"},"[")),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mtable"},(0,m.kt)("span",{parentName:"span",className:"col-align-c"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.45em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-3.61em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"v"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0359em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"1")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))))),(0,m.kt)("span",{parentName:"span",style:{top:"-2.41em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"v"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0359em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"2")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"}))))))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.95em"}},(0,m.kt)("span",{parentName:"span"}))))))),(0,m.kt)("span",{parentName:"span",className:"mclose delimcenter",style:{top:"0em"}},(0,m.kt)("span",{parentName:"span",className:"delimsizing size3"},"]")))),(0,m.kt)("span",{parentName:"span",className:"tag"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"2.4484em",verticalAlign:"-0.9742em"}}),(0,m.kt)("span",{parentName:"span",className:"mord text"},(0,m.kt)("span",{parentName:"span",className:"mord"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"6")),(0,m.kt)("span",{parentName:"span",className:"mord"},")"))))))),(0,m.kt)("p",null,"\u7136\u800c\uff0c\u4e3a\u4e86\u4f7f\u8bad\u7ec3\u8fc7\u7a0b\u4e2d\u7b26\u5408\u63a8\u7406\u65f6\u81ea\u56de\u5f52\u7684\u7279\u6027\uff0c\u7406\u60f3\u7684\u8f93\u51fa\u5e94\u8be5\u662f"),(0,m.kt)("div",{className:"math math-display"},(0,m.kt)("span",{parentName:"div",className:"katex-display"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mtable",{parentName:"semantics",width:"100%"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mrow",{parentName:"mtd"},(0,m.kt)("mrow",{parentName:"mrow"},(0,m.kt)("mo",{parentName:"mrow",fence:"true"},"["),(0,m.kt)("mtable",{parentName:"mrow",rowspacing:"0.16em",columnalign:"center",columnspacing:"1em"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("msub",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"msub"},"o"),(0,m.kt)("mn",{parentName:"msub"},"1"))))),(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("msub",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"msub"},"o"),(0,m.kt)("mn",{parentName:"msub"},"2")))))),(0,m.kt)("mo",{parentName:"mrow",fence:"true"},"]")),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("mrow",{parentName:"mrow"},(0,m.kt)("mo",{parentName:"mrow",fence:"true"},"["),(0,m.kt)("mtable",{parentName:"mrow",rowspacing:"0.16em",columnalign:"center center",columnspacing:"1em"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("msubsup",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"msubsup"},"\u03b1"),(0,m.kt)("mrow",{parentName:"msubsup"},(0,m.kt)("mn",{parentName:"mrow"},"1"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mn",{parentName:"mrow"},"1")),(0,m.kt)("mo",{parentName:"msubsup",mathvariant:"normal",lspace:"0em",rspace:"0em"},"\u2032")))),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("mn",{parentName:"mstyle"},"0")))),(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("msubsup",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"msubsup"},"\u03b1"),(0,m.kt)("mrow",{parentName:"msubsup"},(0,m.kt)("mn",{parentName:"mrow"},"1"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mn",{parentName:"mrow"},"2")),(0,m.kt)("mo",{parentName:"msubsup",mathvariant:"normal",lspace:"0em",rspace:"0em"},"\u2032")))),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("msubsup",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"msubsup"},"\u03b1"),(0,m.kt)("mrow",{parentName:"msubsup"},(0,m.kt)("mn",{parentName:"mrow"},"2"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mn",{parentName:"mrow"},"2")),(0,m.kt)("mo",{parentName:"msubsup",mathvariant:"normal",lspace:"0em",rspace:"0em"},"\u2032")))))),(0,m.kt)("mo",{parentName:"mrow",fence:"true"},"]")),(0,m.kt)("mrow",{parentName:"mrow"},(0,m.kt)("mo",{parentName:"mrow",fence:"true"},"["),(0,m.kt)("mtable",{parentName:"mrow",rowspacing:"0.16em",columnalign:"center",columnspacing:"1em"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("msub",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"msub"},"v"),(0,m.kt)("mn",{parentName:"msub"},"1"))))),(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("msub",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"msub"},"v"),(0,m.kt)("mn",{parentName:"msub"},"2")))))),(0,m.kt)("mo",{parentName:"mrow",fence:"true"},"]")))),(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mtext",{parentName:"mtd"},"(7)")))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"\\begin{bmatrix}o_1\\\\o_2\\end{bmatrix}=\\begin{bmatrix}\\alpha_{1,1}^{\\prime}&0\\\\\\alpha_{1,2}^{\\prime}&\\alpha_{2,2}^{\\prime}\\end{bmatrix}\\begin{bmatrix}v_1\\\\v_2\\end{bmatrix} \\tag{7}")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"2.4em",verticalAlign:"-0.95em"}}),(0,m.kt)("span",{parentName:"span",className:"minner"},(0,m.kt)("span",{parentName:"span",className:"mopen delimcenter",style:{top:"0em"}},(0,m.kt)("span",{parentName:"span",className:"delimsizing size3"},"[")),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mtable"},(0,m.kt)("span",{parentName:"span",className:"col-align-c"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.45em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-3.61em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"o"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"1")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))))),(0,m.kt)("span",{parentName:"span",style:{top:"-2.41em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"o"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"2")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"}))))))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.95em"}},(0,m.kt)("span",{parentName:"span"}))))))),(0,m.kt)("span",{parentName:"span",className:"mclose delimcenter",style:{top:"0em"}},(0,m.kt)("span",{parentName:"span",className:"delimsizing size3"},"]"))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"="),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"2.4484em",verticalAlign:"-0.9742em"}}),(0,m.kt)("span",{parentName:"span",className:"minner"},(0,m.kt)("span",{parentName:"span",className:"mopen delimcenter",style:{top:"0em"}},(0,m.kt)("span",{parentName:"span",className:"delimsizing size3"},"[")),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mtable"},(0,m.kt)("span",{parentName:"span",className:"col-align-c"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.4742em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-3.6342em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.0037em"}},"\u03b1"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.7519em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.4519em",marginLeft:"-0.0037em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"1"),(0,m.kt)("span",{parentName:"span",className:"mpunct mtight"},","),(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"1")))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.063em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"\u2032"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3842em"}},(0,m.kt)("span",{parentName:"span"})))))))),(0,m.kt)("span",{parentName:"span",style:{top:"-2.41em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.0037em"}},"\u03b1"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.7519em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.4519em",marginLeft:"-0.0037em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"1"),(0,m.kt)("span",{parentName:"span",className:"mpunct mtight"},","),(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"2")))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.063em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"\u2032"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3842em"}},(0,m.kt)("span",{parentName:"span"}))))))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.9742em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"arraycolsep",style:{width:"0.5em"}}),(0,m.kt)("span",{parentName:"span",className:"arraycolsep",style:{width:"0.5em"}}),(0,m.kt)("span",{parentName:"span",className:"col-align-c"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.4742em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-3.6342em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"0"))),(0,m.kt)("span",{parentName:"span",style:{top:"-2.41em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.0037em"}},"\u03b1"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.7519em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.4519em",marginLeft:"-0.0037em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"2"),(0,m.kt)("span",{parentName:"span",className:"mpunct mtight"},","),(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"2")))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.063em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"\u2032"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3842em"}},(0,m.kt)("span",{parentName:"span"}))))))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.9742em"}},(0,m.kt)("span",{parentName:"span"}))))))),(0,m.kt)("span",{parentName:"span",className:"mclose delimcenter",style:{top:"0em"}},(0,m.kt)("span",{parentName:"span",className:"delimsizing size3"},"]"))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"minner"},(0,m.kt)("span",{parentName:"span",className:"mopen delimcenter",style:{top:"0em"}},(0,m.kt)("span",{parentName:"span",className:"delimsizing size3"},"[")),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mtable"},(0,m.kt)("span",{parentName:"span",className:"col-align-c"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.45em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-3.61em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"v"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0359em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"1")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))))),(0,m.kt)("span",{parentName:"span",style:{top:"-2.41em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"v"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0359em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"2")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"}))))))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.95em"}},(0,m.kt)("span",{parentName:"span"}))))))),(0,m.kt)("span",{parentName:"span",className:"mclose delimcenter",style:{top:"0em"}},(0,m.kt)("span",{parentName:"span",className:"delimsizing size3"},"]")))),(0,m.kt)("span",{parentName:"span",className:"tag"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"2.4484em",verticalAlign:"-0.9742em"}}),(0,m.kt)("span",{parentName:"span",className:"mord text"},(0,m.kt)("span",{parentName:"span",className:"mord"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"7")),(0,m.kt)("span",{parentName:"span",className:"mord"},")"))))))),(0,m.kt)("p",null,"\u7ee7\u7eed\u6269\u5c55\uff0c\u5f53\u6709",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"n")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"n")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.4306em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"n"))))),"\u4e2a\u8f93\u5165\u8bcd\u6c47\u65f6\uff0c\u5e94\u8be5\u6709"),(0,m.kt)("div",{className:"math math-display"},(0,m.kt)("span",{parentName:"div",className:"katex-display"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mtable",{parentName:"semantics",width:"100%"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mrow",{parentName:"mtd"},(0,m.kt)("mrow",{parentName:"mrow"},(0,m.kt)("mo",{parentName:"mrow",fence:"true"},"["),(0,m.kt)("mtable",{parentName:"mrow",rowspacing:"0.16em",columnalign:"center",columnspacing:"1em"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("msub",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"msub"},"o"),(0,m.kt)("mn",{parentName:"msub"},"1"))))),(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("msub",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"msub"},"o"),(0,m.kt)("mn",{parentName:"msub"},"2"))))),(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("mi",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"mi",mathvariant:"normal"},"\u22ee"),(0,m.kt)("mpadded",{parentName:"mi",height:"0em",voffset:"0em"},(0,m.kt)("mspace",{parentName:"mpadded",mathbackground:"black",width:"0em",height:"1.5em"})))))),(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("msub",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"msub"},"o"),(0,m.kt)("mi",{parentName:"msub"},"n")))))),(0,m.kt)("mo",{parentName:"mrow",fence:"true"},"]")),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("mrow",{parentName:"mrow"},(0,m.kt)("mo",{parentName:"mrow",fence:"true"},"["),(0,m.kt)("mtable",{parentName:"mrow",rowspacing:"0.16em",columnalign:"center center center center",columnspacing:"1em"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("msubsup",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"msubsup"},"\u03b1"),(0,m.kt)("mrow",{parentName:"msubsup"},(0,m.kt)("mn",{parentName:"mrow"},"1"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mn",{parentName:"mrow"},"1")),(0,m.kt)("mo",{parentName:"msubsup",mathvariant:"normal",lspace:"0em",rspace:"0em"},"\u2032")))),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("mn",{parentName:"mstyle"},"0"))),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("mo",{parentName:"mstyle",lspace:"0em",rspace:"0em"},"\u22ef"))),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("mn",{parentName:"mstyle"},"0")))),(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("msubsup",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"msubsup"},"\u03b1"),(0,m.kt)("mrow",{parentName:"msubsup"},(0,m.kt)("mn",{parentName:"mrow"},"1"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mn",{parentName:"mrow"},"2")),(0,m.kt)("mo",{parentName:"msubsup",mathvariant:"normal",lspace:"0em",rspace:"0em"},"\u2032")))),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("msubsup",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"msubsup"},"\u03b1"),(0,m.kt)("mn",{parentName:"msubsup"},"2"),(0,m.kt)("mo",{parentName:"msubsup",mathvariant:"normal",lspace:"0em",rspace:"0em"},"\u2032")))),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("mo",{parentName:"mstyle",lspace:"0em",rspace:"0em"},"\u22ef"))),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("mn",{parentName:"mstyle"},"0")))),(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("mi",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"mi",mathvariant:"normal"},"\u22ee"),(0,m.kt)("mpadded",{parentName:"mi",height:"0em",voffset:"0em"},(0,m.kt)("mspace",{parentName:"mpadded",mathbackground:"black",width:"0em",height:"1.5em"}))))),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("mi",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"mi",mathvariant:"normal"},"\u22ee"),(0,m.kt)("mpadded",{parentName:"mi",height:"0em",voffset:"0em"},(0,m.kt)("mspace",{parentName:"mpadded",mathbackground:"black",width:"0em",height:"1.5em"}))))),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("mrow",{parentName:"mstyle"}))),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("mi",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"mi",mathvariant:"normal"},"\u22ee"),(0,m.kt)("mpadded",{parentName:"mi",height:"0em",voffset:"0em"},(0,m.kt)("mspace",{parentName:"mpadded",mathbackground:"black",width:"0em",height:"1.5em"})))))),(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("msubsup",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"msubsup"},"\u03b1"),(0,m.kt)("mrow",{parentName:"msubsup"},(0,m.kt)("mn",{parentName:"mrow"},"1"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"n")),(0,m.kt)("mo",{parentName:"msubsup",mathvariant:"normal",lspace:"0em",rspace:"0em"},"\u2032")))),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("msubsup",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"msubsup"},"\u03b1"),(0,m.kt)("mrow",{parentName:"msubsup"},(0,m.kt)("mn",{parentName:"mrow"},"2"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"n")),(0,m.kt)("mo",{parentName:"msubsup",mathvariant:"normal",lspace:"0em",rspace:"0em"},"\u2032")))),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("mo",{parentName:"mstyle",lspace:"0em",rspace:"0em"},"\u22ef"))),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("msubsup",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"msubsup"},"\u03b1"),(0,m.kt)("mrow",{parentName:"msubsup"},(0,m.kt)("mi",{parentName:"mrow"},"n"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"n")),(0,m.kt)("mo",{parentName:"msubsup",mathvariant:"normal",lspace:"0em",rspace:"0em"},"\u2032")))))),(0,m.kt)("mo",{parentName:"mrow",fence:"true"},"]")),(0,m.kt)("mrow",{parentName:"mrow"},(0,m.kt)("mo",{parentName:"mrow",fence:"true"},"["),(0,m.kt)("mtable",{parentName:"mrow",rowspacing:"0.16em",columnalign:"center",columnspacing:"1em"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("msub",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"msub"},"v"),(0,m.kt)("mn",{parentName:"msub"},"1"))))),(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("msub",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"msub"},"v"),(0,m.kt)("mn",{parentName:"msub"},"2"))))),(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("mi",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"mi",mathvariant:"normal"},"\u22ee"),(0,m.kt)("mpadded",{parentName:"mi",height:"0em",voffset:"0em"},(0,m.kt)("mspace",{parentName:"mpadded",mathbackground:"black",width:"0em",height:"1.5em"})))))),(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("msub",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"msub"},"v"),(0,m.kt)("mi",{parentName:"msub"},"n")))))),(0,m.kt)("mo",{parentName:"mrow",fence:"true"},"]")))),(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mtext",{parentName:"mtd"},"(8)")))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"\\begin{bmatrix}o_1\\\\o_2\\\\\\vdots\\\\o_n\\end{bmatrix}=\\begin{bmatrix}\\alpha'_{1,1}&0&\\cdots&0\\\\\\alpha'_{1,2}&\\alpha'_2&\\cdots&0\\\\\\vdots&\\vdots&&\\vdots\\\\\\alpha'_{1,n}&\\alpha'_{2,n}&\\cdots&\\alpha'_{n,n}\\end{bmatrix}\\begin{bmatrix}v_1\\\\v_2\\\\\\vdots\\\\v_n\\end{bmatrix}\\tag{8}")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"5.46em",verticalAlign:"-2.48em"}}),(0,m.kt)("span",{parentName:"span",className:"minner"},(0,m.kt)("span",{parentName:"span",className:"mopen"},(0,m.kt)("span",{parentName:"span",className:"delimsizing mult"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"2.95em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.011em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.816em"}}),(0,m.kt)("span",{parentName:"span",className:"delimsizinginner delim-size4"},(0,m.kt)("span",{parentName:"span"},"\u23a3"))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.158em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.816em"}}),(0,m.kt)("span",{parentName:"span",style:{height:"1.816em",width:"0.6667em"}},(0,m.kt)("svg",{parentName:"span",xmlns:"http://www.w3.org/2000/svg",width:"0.6667em",height:"1.816em",style:{width:"0.6667em"},viewBox:"0 0 666.67 1816",preserveAspectRatio:"xMinYMin"},(0,m.kt)("path",{parentName:"svg",d:"M319 0 H403 V1816 H319z M319 0 H403 V1816 H319z"})))),(0,m.kt)("span",{parentName:"span",style:{top:"-5.6111em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.816em"}}),(0,m.kt)("span",{parentName:"span",className:"delimsizinginner delim-size4"},(0,m.kt)("span",{parentName:"span"},"\u23a1")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"2.45em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mtable"},(0,m.kt)("span",{parentName:"span",className:"col-align-c"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"2.98em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-5.8275em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.6875em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"o"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"1")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))))),(0,m.kt)("span",{parentName:"span",style:{top:"-4.6275em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.6875em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"o"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"2")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))))),(0,m.kt)("span",{parentName:"span",style:{top:"-2.7675em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.6875em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"\u22ee"),(0,m.kt)("span",{parentName:"span",className:"mord rule",style:{borderRightWidth:"0em",borderTopWidth:"1.5em",bottom:"0em"}})))),(0,m.kt)("span",{parentName:"span",style:{top:"-1.5675em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.6875em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"o"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.1514em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"n")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"}))))))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"2.48em"}},(0,m.kt)("span",{parentName:"span"}))))))),(0,m.kt)("span",{parentName:"span",className:"mclose"},(0,m.kt)("span",{parentName:"span",className:"delimsizing mult"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"2.95em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.011em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.816em"}}),(0,m.kt)("span",{parentName:"span",className:"delimsizinginner delim-size4"},(0,m.kt)("span",{parentName:"span"},"\u23a6"))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.158em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.816em"}}),(0,m.kt)("span",{parentName:"span",style:{height:"1.816em",width:"0.6667em"}},(0,m.kt)("svg",{parentName:"span",xmlns:"http://www.w3.org/2000/svg",width:"0.6667em",height:"1.816em",style:{width:"0.6667em"},viewBox:"0 0 666.67 1816",preserveAspectRatio:"xMinYMin"},(0,m.kt)("path",{parentName:"svg",d:"M263 0 H347 V1816 H263z M263 0 H347 V1816 H263z"})))),(0,m.kt)("span",{parentName:"span",style:{top:"-5.6111em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.816em"}}),(0,m.kt)("span",{parentName:"span",className:"delimsizinginner delim-size4"},(0,m.kt)("span",{parentName:"span"},"\u23a4")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"2.45em"}},(0,m.kt)("span",{parentName:"span"}))))))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"="),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"5.5326em",verticalAlign:"-2.5163em"}}),(0,m.kt)("span",{parentName:"span",className:"minner"},(0,m.kt)("span",{parentName:"span",className:"mopen"},(0,m.kt)("span",{parentName:"span",className:"delimsizing mult"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"2.95em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.011em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.816em"}}),(0,m.kt)("span",{parentName:"span",className:"delimsizinginner delim-size4"},(0,m.kt)("span",{parentName:"span"},"\u23a3"))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.158em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.816em"}}),(0,m.kt)("span",{parentName:"span",style:{height:"1.816em",width:"0.6667em"}},(0,m.kt)("svg",{parentName:"span",xmlns:"http://www.w3.org/2000/svg",width:"0.6667em",height:"1.816em",style:{width:"0.6667em"},viewBox:"0 0 666.67 1816",preserveAspectRatio:"xMinYMin"},(0,m.kt)("path",{parentName:"svg",d:"M319 0 H403 V1816 H319z M319 0 H403 V1816 H319z"})))),(0,m.kt)("span",{parentName:"span",style:{top:"-5.6111em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.816em"}}),(0,m.kt)("span",{parentName:"span",className:"delimsizinginner delim-size4"},(0,m.kt)("span",{parentName:"span"},"\u23a1")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"2.45em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mtable"},(0,m.kt)("span",{parentName:"span",className:"col-align-c"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"3.0163em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-5.8638em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.6875em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.0037em"}},"\u03b1"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.7519em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.4519em",marginLeft:"-0.0037em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"1"),(0,m.kt)("span",{parentName:"span",className:"mpunct mtight"},","),(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"1")))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.063em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"\u2032"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3842em"}},(0,m.kt)("span",{parentName:"span"})))))))),(0,m.kt)("span",{parentName:"span",style:{top:"-4.6396em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.6875em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.0037em"}},"\u03b1"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.7519em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.4519em",marginLeft:"-0.0037em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"1"),(0,m.kt)("span",{parentName:"span",className:"mpunct mtight"},","),(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"2")))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.063em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"\u2032"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3842em"}},(0,m.kt)("span",{parentName:"span"})))))))),(0,m.kt)("span",{parentName:"span",style:{top:"-2.7554em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.6875em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"\u22ee"),(0,m.kt)("span",{parentName:"span",className:"mord rule",style:{borderRightWidth:"0em",borderTopWidth:"1.5em",bottom:"0em"}})))),(0,m.kt)("span",{parentName:"span",style:{top:"-1.5554em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.6875em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.0037em"}},"\u03b1"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.7519em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.4519em",marginLeft:"-0.0037em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"1"),(0,m.kt)("span",{parentName:"span",className:"mpunct mtight"},","),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"n")))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.063em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"\u2032"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3842em"}},(0,m.kt)("span",{parentName:"span"}))))))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"2.5163em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"arraycolsep",style:{width:"0.5em"}}),(0,m.kt)("span",{parentName:"span",className:"arraycolsep",style:{width:"0.5em"}}),(0,m.kt)("span",{parentName:"span",className:"col-align-c"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"3.0163em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-5.8638em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.6875em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"0"))),(0,m.kt)("span",{parentName:"span",style:{top:"-4.6396em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.6875em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.0037em"}},"\u03b1"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.7519em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.4519em",marginLeft:"-0.0037em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"2"))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.063em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"\u2032"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.2481em"}},(0,m.kt)("span",{parentName:"span"})))))))),(0,m.kt)("span",{parentName:"span",style:{top:"-2.7554em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.6875em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"\u22ee"),(0,m.kt)("span",{parentName:"span",className:"mord rule",style:{borderRightWidth:"0em",borderTopWidth:"1.5em",bottom:"0em"}})))),(0,m.kt)("span",{parentName:"span",style:{top:"-1.5554em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.6875em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.0037em"}},"\u03b1"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.7519em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.4519em",marginLeft:"-0.0037em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"2"),(0,m.kt)("span",{parentName:"span",className:"mpunct mtight"},","),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"n")))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.063em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"\u2032"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3842em"}},(0,m.kt)("span",{parentName:"span"}))))))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"2.5163em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"arraycolsep",style:{width:"0.5em"}}),(0,m.kt)("span",{parentName:"span",className:"arraycolsep",style:{width:"0.5em"}}),(0,m.kt)("span",{parentName:"span",className:"col-align-c"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"3.0163em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-5.6763em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.5em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"minner"},"\u22ef"))),(0,m.kt)("span",{parentName:"span",style:{top:"-4.4521em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.5em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"minner"},"\u22ef"))),(0,m.kt)("span",{parentName:"span",style:{top:"-2.5679em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.5em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"})),(0,m.kt)("span",{parentName:"span",style:{top:"-1.3679em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.5em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"minner"},"\u22ef")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"2.5163em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"arraycolsep",style:{width:"0.5em"}}),(0,m.kt)("span",{parentName:"span",className:"arraycolsep",style:{width:"0.5em"}}),(0,m.kt)("span",{parentName:"span",className:"col-align-c"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"3.0163em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-5.8638em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.6875em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"0"))),(0,m.kt)("span",{parentName:"span",style:{top:"-4.6396em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.6875em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"0"))),(0,m.kt)("span",{parentName:"span",style:{top:"-2.7554em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.6875em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"\u22ee"),(0,m.kt)("span",{parentName:"span",className:"mord rule",style:{borderRightWidth:"0em",borderTopWidth:"1.5em",bottom:"0em"}})))),(0,m.kt)("span",{parentName:"span",style:{top:"-1.5554em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.6875em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.0037em"}},"\u03b1"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.7519em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.453em",marginLeft:"-0.0037em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"n"),(0,m.kt)("span",{parentName:"span",className:"mpunct mtight"},","),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"n")))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.063em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"\u2032"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3831em"}},(0,m.kt)("span",{parentName:"span"}))))))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"2.5163em"}},(0,m.kt)("span",{parentName:"span"}))))))),(0,m.kt)("span",{parentName:"span",className:"mclose"},(0,m.kt)("span",{parentName:"span",className:"delimsizing mult"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"2.95em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.011em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.816em"}}),(0,m.kt)("span",{parentName:"span",className:"delimsizinginner delim-size4"},(0,m.kt)("span",{parentName:"span"},"\u23a6"))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.158em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.816em"}}),(0,m.kt)("span",{parentName:"span",style:{height:"1.816em",width:"0.6667em"}},(0,m.kt)("svg",{parentName:"span",xmlns:"http://www.w3.org/2000/svg",width:"0.6667em",height:"1.816em",style:{width:"0.6667em"},viewBox:"0 0 666.67 1816",preserveAspectRatio:"xMinYMin"},(0,m.kt)("path",{parentName:"svg",d:"M263 0 H347 V1816 H263z M263 0 H347 V1816 H263z"})))),(0,m.kt)("span",{parentName:"span",style:{top:"-5.6111em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.816em"}}),(0,m.kt)("span",{parentName:"span",className:"delimsizinginner delim-size4"},(0,m.kt)("span",{parentName:"span"},"\u23a4")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"2.45em"}},(0,m.kt)("span",{parentName:"span"}))))))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"minner"},(0,m.kt)("span",{parentName:"span",className:"mopen"},(0,m.kt)("span",{parentName:"span",className:"delimsizing mult"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"2.95em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.011em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.816em"}}),(0,m.kt)("span",{parentName:"span",className:"delimsizinginner delim-size4"},(0,m.kt)("span",{parentName:"span"},"\u23a3"))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.158em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.816em"}}),(0,m.kt)("span",{parentName:"span",style:{height:"1.816em",width:"0.6667em"}},(0,m.kt)("svg",{parentName:"span",xmlns:"http://www.w3.org/2000/svg",width:"0.6667em",height:"1.816em",style:{width:"0.6667em"},viewBox:"0 0 666.67 1816",preserveAspectRatio:"xMinYMin"},(0,m.kt)("path",{parentName:"svg",d:"M319 0 H403 V1816 H319z M319 0 H403 V1816 H319z"})))),(0,m.kt)("span",{parentName:"span",style:{top:"-5.6111em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.816em"}}),(0,m.kt)("span",{parentName:"span",className:"delimsizinginner delim-size4"},(0,m.kt)("span",{parentName:"span"},"\u23a1")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"2.45em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mtable"},(0,m.kt)("span",{parentName:"span",className:"col-align-c"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"2.98em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-5.8275em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.6875em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"v"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0359em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"1")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))))),(0,m.kt)("span",{parentName:"span",style:{top:"-4.6275em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.6875em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"v"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0359em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"2")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))))),(0,m.kt)("span",{parentName:"span",style:{top:"-2.7675em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.6875em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"\u22ee"),(0,m.kt)("span",{parentName:"span",className:"mord rule",style:{borderRightWidth:"0em",borderTopWidth:"1.5em",bottom:"0em"}})))),(0,m.kt)("span",{parentName:"span",style:{top:"-1.5675em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.6875em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"v"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.1514em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0359em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"n")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"}))))))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"2.48em"}},(0,m.kt)("span",{parentName:"span"}))))))),(0,m.kt)("span",{parentName:"span",className:"mclose"},(0,m.kt)("span",{parentName:"span",className:"delimsizing mult"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"2.95em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.011em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.816em"}}),(0,m.kt)("span",{parentName:"span",className:"delimsizinginner delim-size4"},(0,m.kt)("span",{parentName:"span"},"\u23a6"))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.158em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.816em"}}),(0,m.kt)("span",{parentName:"span",style:{height:"1.816em",width:"0.6667em"}},(0,m.kt)("svg",{parentName:"span",xmlns:"http://www.w3.org/2000/svg",width:"0.6667em",height:"1.816em",style:{width:"0.6667em"},viewBox:"0 0 666.67 1816",preserveAspectRatio:"xMinYMin"},(0,m.kt)("path",{parentName:"svg",d:"M263 0 H347 V1816 H263z M263 0 H347 V1816 H263z"})))),(0,m.kt)("span",{parentName:"span",style:{top:"-5.6111em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.816em"}}),(0,m.kt)("span",{parentName:"span",className:"delimsizinginner delim-size4"},(0,m.kt)("span",{parentName:"span"},"\u23a4")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"2.45em"}},(0,m.kt)("span",{parentName:"span"})))))))),(0,m.kt)("span",{parentName:"span",className:"tag"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"5.5326em",verticalAlign:"-2.5163em"}}),(0,m.kt)("span",{parentName:"span",className:"mord text"},(0,m.kt)("span",{parentName:"span",className:"mord"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"8")),(0,m.kt)("span",{parentName:"span",className:"mord"},")"))))))),(0,m.kt)("p",null,"\u56e0\u6b64\uff0c\u6211\u4eec\u9700\u8981\u5c06\u5f53\u524d\u65f6\u95f4\u6b65\u8ba1\u7b97\u7684\u8bcd\u6c47\u7684\u65f6\u95f4\u987a\u5e8f\u53f3\u4fa7\u7684\u8f93\u5165\u8bcd\u6c47\u5168\u90e8\u63a9\u7801\uff0c\u7f6e\u4e3a0\u3002"),(0,m.kt)("p",null,"\u5728\u6e90\u7801\u4e2d\uff0c\u6709\u5982\u4e0b\u7247\u6bb5\u5b9e\u73b0\u63a9\u7801\uff1a"),(0,m.kt)("pre",null,(0,m.kt)("code",{parentName:"pre",className:"language-python"},"if mask is not None:\n scores = scores.masked_fill(mask == 0, -1e9)\n\np_attn = scores.softmax(dim=-1)\n")),(0,m.kt)("p",null,"\u5728\u6e90\u7801\u4e2d\uff0c\u5c06mask\u7f6e\u4e3a\u8d1f\u65e0\u7a77\u662f\u56e0\u4e3a\u8fd9\u662f\u5728\u7ecf\u8fc7Softmax\u4e4b\u524d\u8fdb\u884c\u7684\u63a9\u7801\uff0c\u5728\u7ecf\u8fc7Softmax\u4e4b\u540e\u8d1f\u65e0\u7a77\u5c0f\u5c31\u53d8\u6210\u4e860\u3002"))}c.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/en/assets/js/7ab2d319.a7170132.js b/en/assets/js/7ab2d319.a7170132.js new file mode 100644 index 000000000..d94122881 --- /dev/null +++ b/en/assets/js/7ab2d319.a7170132.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunknpy_notebook=self.webpackChunknpy_notebook||[]).push([[5736],{3905:(e,n,t)=>{t.d(n,{Zo:()=>p,kt:()=>f});var r=t(7294);function i(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function a(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function o(e){for(var n=1;n=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}var l=r.createContext({}),s=function(e){var n=r.useContext(l),t=n;return e&&(t="function"==typeof e?e(n):o(o({},n),e)),t},p=function(e){var n=s(e.components);return r.createElement(l.Provider,{value:n},e.children)},u="mdxType",d={inlineCode:"code",wrapper:function(e){var n=e.children;return r.createElement(r.Fragment,{},n)}},m=r.forwardRef((function(e,n){var t=e.components,i=e.mdxType,a=e.originalType,l=e.parentName,p=c(e,["components","mdxType","originalType","parentName"]),u=s(t),m=i,f=u["".concat(l,".").concat(m)]||u[m]||d[m]||a;return t?r.createElement(f,o(o({ref:n},p),{},{components:t})):r.createElement(f,o({ref:n},p))}));function f(e,n){var t=arguments,i=n&&n.mdxType;if("string"==typeof e||i){var a=t.length,o=new Array(a);o[0]=m;var c={};for(var l in n)hasOwnProperty.call(n,l)&&(c[l]=n[l]);c.originalType=e,c[u]="string"==typeof e?e:i,o[1]=c;for(var s=2;s{t.r(n),t.d(n,{assets:()=>l,contentTitle:()=>o,default:()=>d,frontMatter:()=>a,metadata:()=>c,toc:()=>s});var r=t(7462),i=(t(7294),t(3905));const a={},o="LeNet",c={unversionedId:"Deep-Learning/\u57fa\u7840\u77e5\u8bc6/LeNet",id:"Deep-Learning/\u57fa\u7840\u77e5\u8bc6/LeNet",title:"LeNet",description:"\u80cc\u666f",source:"@site/docs/Deep-Learning/3-\u57fa\u7840\u77e5\u8bc6/LeNet.md",sourceDirName:"Deep-Learning/3-\u57fa\u7840\u77e5\u8bc6",slug:"/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/LeNet",permalink:"/en/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/LeNet",draft:!1,tags:[],version:"current",frontMatter:{},sidebar:"deep_learning",previous:{title:"K-fold cross-validation",permalink:"/en/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/K-foldCross-validation"},next:{title:"\u5173\u4e8eLogistic Regression",permalink:"/en/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/LogisticRegression"}},l={},s=[{value:"\u80cc\u666f",id:"\u80cc\u666f",level:2},{value:"\u4ee3\u7801\u5b9e\u73b0",id:"\u4ee3\u7801\u5b9e\u73b0",level:2},{value:"\u95ee\u9898",id:"\u95ee\u9898",level:2}],p={toc:s},u="wrapper";function d(e){let{components:n,...t}=e;return(0,i.kt)(u,(0,r.Z)({},p,t,{components:n,mdxType:"MDXLayout"}),(0,i.kt)("h1",{id:"lenet"},"LeNet"),(0,i.kt)("h2",{id:"\u80cc\u666f"},"\u80cc\u666f"),(0,i.kt)("p",null,"LeNet\u662f\u7531Yann LeCun\u7b49\u4eba\u4e8e1998\u5e74\u63d0\u51fa\u7684\u5377\u79ef\u795e\u7ecf\u7f51\u7edc\u7ed3\u6784\uff0c\u8be5\u7ed3\u6784\u7531\u5377\u79ef\u5c42\u3001\u6c60\u5316\u5c42\u548c\u5168\u8fde\u63a5\u5c42\u7ec4\u6210\uff0c\u53ef\u4ee5\u9ad8\u6548\u5730\u5904\u7406\u624b\u5199\u6570\u5b57\u56fe\u50cf\uff0c\u5e76\u5728MNIST\u6570\u636e\u96c6\u4e0a\u53d6\u5f97\u4e86\u5f88\u597d\u7684\u6027\u80fd\u3002"),(0,i.kt)("p",null,"LeNet-5\u7684\u6210\u529f\u6807\u5fd7\u7740\u5377\u79ef\u795e\u7ecf\u7f51\u7edc\u5728\u8ba1\u7b97\u673a\u89c6\u89c9\u9886\u57df\u4e2d\u7684\u5d1b\u8d77\uff0c\u5e76\u4fc3\u8fdb\u4e86\u6df1\u5ea6\u5b66\u4e60\u7684\u5feb\u901f\u53d1\u5c55\u3002"),(0,i.kt)("hr",null),(0,i.kt)("h2",{id:"\u4ee3\u7801\u5b9e\u73b0"},"\u4ee3\u7801\u5b9e\u73b0"),(0,i.kt)("pre",null,(0,i.kt)("code",{parentName:"pre",className:"language-python"},"import torch\nimport numpy as np\nfrom torch import nn as nn\nfrom torch.nn import functional as F\nfrom d2l import torch as d2l\nfrom matplotlib import pyplot as plt\nimport os\n\nos.environ['http_proxy'] = 'http://127.0.0.1:7890'\nos.environ['https_proxy'] = 'https://127.0.0.1:7890'\n\n\nclass LeNetReshape(nn.Module):\n def __init__(self):\n super(LeNetReshape, self).__init__()\n\n def forward(self, x):\n return x.reshape(-1, 1, 28, 28)\n\n\nclass LeNet5(nn.Module):\n def __init__(self):\n super(LeNet5, self).__init__()\n self.net = torch.nn.Sequential(\n LeNetReshape(),\n # \u6fc0\u6d3b\u51fd\u6570\u5e94\u4e3aSigmoid\n nn.Conv2d(1, 6, kernel_size=5, padding=2), nn.LeakyReLU(), nn.AvgPool2d(kernel_size=2, stride=2),\n nn.Conv2d(6, 16, kernel_size=5), nn.LeakyReLU(), nn.AvgPool2d(kernel_size=2, stride=2),\n nn.Flatten(),\n nn.Linear(16 * 5 * 5, 120), nn.LeakyReLU(),\n nn.Linear(120, 84), nn.Sigmoid(),\n nn.Linear(84, 10))\n\n def forward(self, x):\n return self.net(x)\n\n\ndef evaluate_accuracy_gpu(net, data_iter, device=None):\n if isinstance(net, torch.nn.Module):\n net.eval()\n if not device:\n device = next(iter(net.parameters())).device\n metric = d2l.Accumulator(2)\n for X, y in data_iter:\n if isinstance(X, list):\n X = [x.to(device) for x in X]\n else:\n X = X.to(device)\n y = y.to(device)\n metric.add(d2l.accuracy(net(X), y), y.numel()) # \u6b64\u5904accuracy\u662f\u7edf\u8ba1\n return metric[0] / metric[1]\n\n\ndef accuracy(y_hat, y):\n return torch.sum(y_hat.argmax(dim=1) == y)\n\n\ndef train(net, train_iter, test_iter, num_epochs, lr, device):\n def init_weights(m):\n if type(m) == nn.Linear or type(m) == nn.Conv2d:\n nn.init.xavier_uniform_(m.weight)\n\n net.apply(init_weights)\n net.to(device)\n optimizer = torch.optim.SGD(net.parameters(), lr=lr)\n loss = torch.nn.CrossEntropyLoss()\n loss.to(device)\n animator = d2l.Animator(xlabel='epoch', xlim=[1, num_epochs],\n legend=['train loss', 'train acc', 'test acc'])\n timer, num_batches = d2l.Timer(), len(train_iter)\n metric = d2l.Accumulator(3)\n net.train()\n for epoch in range(num_epochs):\n for batch, (X, y) in enumerate(train_iter):\n timer.start()\n optimizer.zero_grad()\n X, y = X.to(device), y.to(device)\n y_hat = net(X)\n l = loss(y_hat, y)\n l.backward()\n optimizer.step()\n metric.add(l * X.shape[0], accuracy(y_hat, y), y.numel())\n timer.stop()\n train_l = metric[0] / metric[2]\n train_acc = metric[1] / metric[2]\n if (batch + 1) % (num_batches // 5) == 0 or batch == num_batches - 1:\n animator.add(epoch + (batch + 1) / num_batches, (train_l, train_acc, None))\n test_acc = evaluate_accuracy_gpu(net, test_iter)\n animator.add(epoch + 1, (None, None, test_acc))\n print(f'loss {train_l:.3f}, train acc {train_acc:.3f}, test acc {test_acc:.3f}')\n print(f'{metric[2] * num_epochs / timer.sum():.1f} examples/sec on {str(device)}')\n plt.show()\n\nbatch_size = 256\ntrain_iter, test_iter = d2l.load_data_fashion_mnist(batch_size)\nlr, num_epochs = 0.9, 10\nlenet = LeNet5()\ntrain(lenet, train_iter, test_iter, num_epochs, lr, d2l.try_gpu())\n\n")),(0,i.kt)("h2",{id:"\u95ee\u9898"},"\u95ee\u9898"),(0,i.kt)("p",null,"\u5728\u5206\u7c7b\u6a21\u578b\u4e2d\uff0c\u6700\u540e\u4e24\u4e2a\u5168\u8fde\u63a5\u5c42\u4e4b\u95f4",(0,i.kt)("strong",{parentName:"p"},"\u4e0d\u8981\u4f7f\u7528ReLU"),"\u6fc0\u6d3b\u51fd\u6570\u3002\u56e0\u4e3aReLU\u7684\u8303\u56f4\u662f[0, +\u221e)\uff0c\u5b83\u4f1a\u5c06\u6240\u6709\u8d1f\u6570\u90fd\u53d8\u62100\u3002\u800c\u6700\u540e\u4e00\u5c42\u5168\u8fde\u63a5\u5c42\u8f93\u51fa\u4e86\u7c7b\u522b\u4fe1\u606f\uff0c\u5012\u6570\u7b2c\u4e8c\u5c42\u7684\u8f93\u51fa\u503c\u5305\u542b\u7740\u975e\u5e38\u91cd\u8981\u7684\u7c7b\u522b\u4fe1\u606f\uff0c\u6b64\u65f6\u4f7f\u7528\u6fc0\u6d3b\u51fd\u6570\u5f88\u53ef\u80fd\u4f1a\u5bfc\u81f4\u4fe1\u606f\u4e22\u5931\u3002"))}d.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/en/assets/js/7d51be72.9622b692.js b/en/assets/js/7d51be72.9622b692.js new file mode 100644 index 000000000..831b18f1c --- /dev/null +++ b/en/assets/js/7d51be72.9622b692.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunknpy_notebook=self.webpackChunknpy_notebook||[]).push([[6898],{3905:(e,n,t)=>{t.d(n,{Zo:()=>d,kt:()=>v});var i=t(7294);function r(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function o(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function a(e){for(var n=1;n=0||(r[t]=e[t]);return r}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(r[t]=e[t])}return r}var l=i.createContext({}),p=function(e){var n=i.useContext(l),t=n;return e&&(t="function"==typeof e?e(n):a(a({},n),e)),t},d=function(e){var n=p(e.components);return i.createElement(l.Provider,{value:n},e.children)},m="mdxType",c={inlineCode:"code",wrapper:function(e){var n=e.children;return i.createElement(i.Fragment,{},n)}},u=i.forwardRef((function(e,n){var t=e.components,r=e.mdxType,o=e.originalType,l=e.parentName,d=s(e,["components","mdxType","originalType","parentName"]),m=p(t),u=r,v=m["".concat(l,".").concat(u)]||m[u]||c[u]||o;return t?i.createElement(v,a(a({ref:n},d),{},{components:t})):i.createElement(v,a({ref:n},d))}));function v(e,n){var t=arguments,r=n&&n.mdxType;if("string"==typeof e||r){var o=t.length,a=new Array(o);a[0]=u;var s={};for(var l in n)hasOwnProperty.call(n,l)&&(s[l]=n[l]);s.originalType=e,s[m]="string"==typeof e?e:r,a[1]=s;for(var p=2;p{t.r(n),t.d(n,{assets:()=>l,contentTitle:()=>a,default:()=>c,frontMatter:()=>o,metadata:()=>s,toc:()=>p});var i=t(7462),r=(t(7294),t(3905));const o={},a="Visdom\u53ef\u89c6\u5316",s={unversionedId:"Deep-Learning/\u5b9e\u6218\u7ec3\u4e60/Visdom Visualization",id:"Deep-Learning/\u5b9e\u6218\u7ec3\u4e60/Visdom Visualization",title:"Visdom\u53ef\u89c6\u5316",description:"\u5bf9\u4e8eTensorFlow\u6846\u67b6\uff0c\u53ef\u4ee5\u4f7f\u7528TensorBoard\u5b9e\u73b0\u53ef\u89c6\u5316\u3002",source:"@site/docs/Deep-Learning/4-\u5b9e\u6218\u7ec3\u4e60/1-Visdom Visualization.md",sourceDirName:"Deep-Learning/4-\u5b9e\u6218\u7ec3\u4e60",slug:"/Deep-Learning/\u5b9e\u6218\u7ec3\u4e60/Visdom Visualization",permalink:"/en/docs/Deep-Learning/\u5b9e\u6218\u7ec3\u4e60/Visdom Visualization",draft:!1,tags:[],version:"current",sidebarPosition:1,frontMatter:{},sidebar:"deep_learning",previous:{title:"\u6fc0\u6d3b\u51fd\u6570\u4e0eLoss\u7684\u68af\u5ea6",permalink:"/en/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/\u6fc0\u6d3b\u51fd\u6570\u4e0eLoss\u7684\u68af\u5ea6"},next:{title:"Speaker Classification",permalink:"/en/docs/Deep-Learning/\u5b9e\u6218\u7ec3\u4e60/Speaker Classification"}},l={},p=[{value:"\u5b89\u88c5Visdom",id:"\u5b89\u88c5visdom",level:2},{value:"Visdom\u7684\u4f7f\u7528",id:"visdom\u7684\u4f7f\u7528",level:2},{value:"Visdom\u7684\u542f\u52a8",id:"visdom\u7684\u542f\u52a8",level:3},{value:"\u5355\u7a97\u53e3\u5355\u66f2\u7ebf\u7684\u53ef\u89c6\u5316",id:"\u5355\u7a97\u53e3\u5355\u66f2\u7ebf\u7684\u53ef\u89c6\u5316",level:3},{value:"\u5355\u7a97\u53e3\u591a\u66f2\u7ebf\u7684\u53ef\u89c6\u5316",id:"\u5355\u7a97\u53e3\u591a\u66f2\u7ebf\u7684\u53ef\u89c6\u5316",level:3}],d={toc:p},m="wrapper";function c(e){let{components:n,...t}=e;return(0,r.kt)(m,(0,i.Z)({},d,t,{components:n,mdxType:"MDXLayout"}),(0,r.kt)("h1",{id:"visdom\u53ef\u89c6\u5316"},"Visdom\u53ef\u89c6\u5316"),(0,r.kt)("admonition",{type:"tip"},(0,r.kt)("p",{parentName:"admonition"},"\u5bf9\u4e8eTensorFlow\u6846\u67b6\uff0c\u53ef\u4ee5\u4f7f\u7528TensorBoard\u5b9e\u73b0\u53ef\u89c6\u5316\u3002"),(0,r.kt)("p",{parentName:"admonition"},"\u5bf9\u4e8ePyTorch\u6846\u67b6\uff0c\u53ef\u4ee5\u4f7f\u7528Visdom\u6216TensorBoardX\u5b9e\u73b0\u53ef\u89c6\u5316\uff0c\u672c\u7bc7\u4e3b\u8981\u8bb2\u8ff0Visdom\u3002")),(0,r.kt)("h2",{id:"\u5b89\u88c5visdom"},"\u5b89\u88c5Visdom"),(0,r.kt)("pre",null,(0,r.kt)("code",{parentName:"pre"},"pip install visdom\n")),(0,r.kt)("h2",{id:"visdom\u7684\u4f7f\u7528"},"Visdom\u7684\u4f7f\u7528"),(0,r.kt)("h3",{id:"visdom\u7684\u542f\u52a8"},"Visdom\u7684\u542f\u52a8"),(0,r.kt)("p",null,"\u9996\u5148\u8981\u901a\u8fc7\u7ec8\u7aef\u542f\u52a8Visdom\uff0c\u4f7f\u7528\u672c\u673a\u7aef\u53e3\u8fd0\u884c\u670d\u52a1\u5668\u3002"),(0,r.kt)("p",null,"\u4ee5\u4e0b\u4e8c\u8005\u5747\u53ef\u3002"),(0,r.kt)("pre",null,(0,r.kt)("code",{parentName:"pre",className:"language-bash"},"visdom\npython -m visdom.server\n")),(0,r.kt)("h3",{id:"\u5355\u7a97\u53e3\u5355\u66f2\u7ebf\u7684\u53ef\u89c6\u5316"},"\u5355\u7a97\u53e3\u5355\u66f2\u7ebf\u7684\u53ef\u89c6\u5316"),(0,r.kt)("pre",null,(0,r.kt)("code",{parentName:"pre",className:"language-python"},"from visdom import Visdom\n\nvis = Visdom() # \u5b9e\u4f8b\u5316\n# \u521b\u5efa\u4e00\u6761\u66f2\u7ebf\uff0c\u524d\u4e24\u4e2a\u53c2\u6570\u5206\u522b\u4e3ay\u8f74\u6570\u636e\u3001x\u8f74\u6570\u636e\uff0cwin\u53c2\u6570\u662f\u7a97\u53e3\u7684\u552f\u4e00\u6807\u8bc6\uff0copt\u53ef\u9009\u5b57\u5178\u4e2d\u53ef\u4ee5\u7ed9\u51fa\u7a97\u53e3\u7684title\u548clegend\nvis.line([0.], [0.], win='win_id', opts=dict(title=\"win_title\"))\n \n# \u5728\u8bad\u7ec3\u8fc7\u7a0b\u4e2d\u7684\u5408\u9002\u4f4d\u7f6e\u5411\u521d\u59cb\u5316\u7684\u66f2\u7ebf\u4e2d\u5582\u6570\u636e\n# viz.line([real_y_data], [global_step], win='win_id', update='append')\n# \u67e5\u770b\u8bad\u7ec3loss\nvis.line([loss.item()], [epoch], win='win_id', update='append')\n# \u5bf9\u4e8e\u975eimage\u6570\u636e\uff0c\u5728\u4f20\u5165visdom\u65f6\u4ecd\u9700\u8981\u5148\u8f6c\u5316\u4e3anumpy\u7c7b\u578b\n")),(0,r.kt)("h3",{id:"\u5355\u7a97\u53e3\u591a\u66f2\u7ebf\u7684\u53ef\u89c6\u5316"},"\u5355\u7a97\u53e3\u591a\u66f2\u7ebf\u7684\u53ef\u89c6\u5316"),(0,r.kt)("pre",null,(0,r.kt)("code",{parentName:"pre",className:"language-python"},"from visdom import Visdom\n\nvis = Visdom()\nvis.line([[0., 0.]], [0.], win='win_id', opts=dic(title=\"win_title\", legend=[\"curve_name_1\", \"curve_name_2\"]))\n\n# \u5728\u8bad\u7ec3\u8fc7\u7a0b\u4e2d\u7684\u5408\u9002\u4f4d\u7f6e\u5411\u521d\u59cb\u5316\u7684\u66f2\u7ebf\u4e2d\u5582\u6570\u636e\nviz.line([[y1, y2]], [global_step], win='win_id', update='append')\n")))}c.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/en/assets/js/7daa201b.7d2e8a69.js b/en/assets/js/7daa201b.7d2e8a69.js new file mode 100644 index 000000000..6f87889f6 --- /dev/null +++ b/en/assets/js/7daa201b.7d2e8a69.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunknpy_notebook=self.webpackChunknpy_notebook||[]).push([[8347],{2776:e=>{e.exports=JSON.parse('{"name":"@easyops-cn/docusaurus-search-local","id":"default"}')}}]); \ No newline at end of file diff --git a/en/assets/js/7f328912.43f96743.js b/en/assets/js/7f328912.43f96743.js new file mode 100644 index 000000000..e0f16b515 --- /dev/null +++ b/en/assets/js/7f328912.43f96743.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunknpy_notebook=self.webpackChunknpy_notebook||[]).push([[8975],{3905:(e,t,n)=>{n.d(t,{Zo:()=>u,kt:()=>d});var r=n(7294);function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var l=r.createContext({}),p=function(e){var t=r.useContext(l),n=t;return e&&(n="function"==typeof e?e(t):a(a({},t),e)),n},u=function(e){var t=p(e.components);return r.createElement(l.Provider,{value:t},e.children)},s="mdxType",f={inlineCode:"code",wrapper:function(e){var t=e.children;return r.createElement(r.Fragment,{},t)}},m=r.forwardRef((function(e,t){var n=e.components,o=e.mdxType,i=e.originalType,l=e.parentName,u=c(e,["components","mdxType","originalType","parentName"]),s=p(n),m=o,d=s["".concat(l,".").concat(m)]||s[m]||f[m]||i;return n?r.createElement(d,a(a({ref:t},u),{},{components:n})):r.createElement(d,a({ref:t},u))}));function d(e,t){var n=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var i=n.length,a=new Array(i);a[0]=m;var c={};for(var l in t)hasOwnProperty.call(t,l)&&(c[l]=t[l]);c.originalType=e,c[s]="string"==typeof e?e:o,a[1]=c;for(var p=2;p{n.r(t),n.d(t,{assets:()=>l,contentTitle:()=>a,default:()=>f,frontMatter:()=>i,metadata:()=>c,toc:()=>p});var r=n(7462),o=(n(7294),n(3905));const i={},a="Welcome",c={unversionedId:"Tui-Mian/intro",id:"Tui-Mian/intro",title:"Welcome",description:"\u6b22\u8fce\u6765\u5230\u7b14\u8bb0\u672c\u7684\u63a8\u514d\u590d\u4e60\u90e8\u5206",source:"@site/docs/Tui-Mian/1-intro.md",sourceDirName:"Tui-Mian",slug:"/Tui-Mian/intro",permalink:"/en/docs/Tui-Mian/intro",draft:!1,tags:[],version:"current",sidebarPosition:1,frontMatter:{},sidebar:"tui_mian",next:{title:"\u7ecf\u9a8c\u8d34\uff1a2023\u5e74\u53cc\u975e\u8ba1\u7b97\u673a\u4fdd\u7814\u7ecf\u5386",permalink:"/en/docs/Tui-Mian/Summary"}},l={},p=[{value:"\u652f\u6301\u6211\uff01",id:"\u652f\u6301\u6211",level:2}],u={toc:p},s="wrapper";function f(e){let{components:t,...i}=e;return(0,o.kt)(s,(0,r.Z)({},u,i,{components:t,mdxType:"MDXLayout"}),(0,o.kt)("h1",{id:"welcome"},"Welcome"),(0,o.kt)("admonition",{type:"tip"},(0,o.kt)("p",{parentName:"admonition"},"\u6b22\u8fce\u6765\u5230\u7b14\u8bb0\u672c\u7684\u63a8\u514d\u590d\u4e60\u90e8\u5206")),(0,o.kt)("h2",{id:"\u652f\u6301\u6211"},"\u652f\u6301\u6211\uff01"),(0,o.kt)("p",null,"\u5982\u679c\u53ef\u4ee5\u5e2e\u5230\u4f60\u7684\u8bdd\u5c31\u7ed9\u4e2a\u514d\u8d39\u7684Star\u5427\uff01"),(0,o.kt)("p",null,(0,o.kt)("img",{src:n(9163).Z,width:"2778",height:"2046"})))}f.isMDXComponent=!0},9163:(e,t,n)=>{n.d(t,{Z:()=>r});const r=n.p+"assets/images/intro-822c34cd9b5577b06df8bb0956cdf947.png"}}]); \ No newline at end of file diff --git a/en/assets/js/800ff996.9c12b89a.js b/en/assets/js/800ff996.9c12b89a.js new file mode 100644 index 000000000..2dd0ae754 --- /dev/null +++ b/en/assets/js/800ff996.9c12b89a.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunknpy_notebook=self.webpackChunknpy_notebook||[]).push([[6178],{3905:(a,e,t)=>{t.d(e,{Zo:()=>o,kt:()=>g});var s=t(7294);function n(a,e,t){return e in a?Object.defineProperty(a,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):a[e]=t,a}function r(a,e){var t=Object.keys(a);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(a);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable}))),t.push.apply(t,s)}return t}function m(a){for(var e=1;e=0||(n[t]=a[t]);return n}(a,e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(a);for(s=0;s=0||Object.prototype.propertyIsEnumerable.call(a,t)&&(n[t]=a[t])}return n}var i=s.createContext({}),l=function(a){var e=s.useContext(i),t=e;return a&&(t="function"==typeof a?a(e):m(m({},e),a)),t},o=function(a){var e=l(a.components);return s.createElement(i.Provider,{value:e},a.children)},c="mdxType",N={inlineCode:"code",wrapper:function(a){var e=a.children;return s.createElement(s.Fragment,{},e)}},k=s.forwardRef((function(a,e){var t=a.components,n=a.mdxType,r=a.originalType,i=a.parentName,o=p(a,["components","mdxType","originalType","parentName"]),c=l(t),k=n,g=c["".concat(i,".").concat(k)]||c[k]||N[k]||r;return t?s.createElement(g,m(m({ref:e},o),{},{components:t})):s.createElement(g,m({ref:e},o))}));function g(a,e){var t=arguments,n=e&&e.mdxType;if("string"==typeof a||n){var r=t.length,m=new Array(r);m[0]=k;var p={};for(var i in e)hasOwnProperty.call(e,i)&&(p[i]=e[i]);p.originalType=a,p[c]="string"==typeof a?a:n,m[1]=p;for(var l=2;l{t.r(e),t.d(e,{assets:()=>i,contentTitle:()=>m,default:()=>N,frontMatter:()=>r,metadata:()=>p,toc:()=>l});var s=t(7462),n=(t(7294),t(3905));const r={},m="\u5173\u4e8eLogistic Regression",p={unversionedId:"Deep-Learning/\u57fa\u7840\u77e5\u8bc6/LogisticRegression",id:"Deep-Learning/\u57fa\u7840\u77e5\u8bc6/LogisticRegression",title:"\u5173\u4e8eLogistic Regression",description:"\u4e00\u3001\u4ec0\u4e48\u662fLogistic Regression",source:"@site/docs/Deep-Learning/3-\u57fa\u7840\u77e5\u8bc6/LogisticRegression.md",sourceDirName:"Deep-Learning/3-\u57fa\u7840\u77e5\u8bc6",slug:"/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/LogisticRegression",permalink:"/en/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/LogisticRegression",draft:!1,tags:[],version:"current",frontMatter:{},sidebar:"deep_learning",previous:{title:"LeNet",permalink:"/en/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/LeNet"},next:{title:"Perceptron",permalink:"/en/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/Perceptron"}},i={},l=[{value:"\u4e00\u3001\u4ec0\u4e48\u662fLogistic Regression",id:"\u4e00\u4ec0\u4e48\u662flogistic-regression",level:2},{value:"\u4e8c\u3001\u903b\u8f91\u56de\u5f52\uff08Logistic Regression\uff09\u548c\u7ebf\u6027\u56de\u5f52\uff08Linear Regression\uff09",id:"\u4e8c\u903b\u8f91\u56de\u5f52logistic-regression\u548c\u7ebf\u6027\u56de\u5f52linear-regression",level:2},{value:"\u4e09\u3001\u903b\u8f91\u56de\u5f52\u5230\u5e95\u662f\u56de\u5f52\u4efb\u52a1\uff08Regression\uff09\u8fd8\u662f\u5206\u7c7b\u4efb\u52a1\uff08Classification\uff09\uff1f",id:"\u4e09\u903b\u8f91\u56de\u5f52\u5230\u5e95\u662f\u56de\u5f52\u4efb\u52a1regression\u8fd8\u662f\u5206\u7c7b\u4efb\u52a1classification",level:2},{value:"\u56db\u3001\u4e3a\u4ec0\u4e48\u903b\u8f91\u56de\u5f52\u6216\u5176\u4ed6\u5206\u7c7b\u4efb\u52a1\u4e0d\u4f7f\u7528\u5206\u7c7b\u51c6\u786e\u7387\u4f5c\u4e3a\u635f\u5931\u51fd\u6570\uff1f",id:"\u56db\u4e3a\u4ec0\u4e48\u903b\u8f91\u56de\u5f52\u6216\u5176\u4ed6\u5206\u7c7b\u4efb\u52a1\u4e0d\u4f7f\u7528\u5206\u7c7b\u51c6\u786e\u7387\u4f5c\u4e3a\u635f\u5931\u51fd\u6570",level:2}],o={toc:l},c="wrapper";function N(a){let{components:e,...t}=a;return(0,n.kt)(c,(0,s.Z)({},o,t,{components:e,mdxType:"MDXLayout"}),(0,n.kt)("h1",{id:"\u5173\u4e8elogistic-regression"},"\u5173\u4e8eLogistic Regression"),(0,n.kt)("h2",{id:"\u4e00\u4ec0\u4e48\u662flogistic-regression"},"\u4e00\u3001\u4ec0\u4e48\u662fLogistic Regression"),(0,n.kt)("p",null,"Logistic Regression\u76f4\u8bd1\u4e3a\u903b\u8f91\u56de\u5f52\uff0c\u662f\u4e00\u79cd\u7528\u6765\u89e3\u51b3\u4e8c\u5206\u7c7b\u95ee\u9898\u7684\u673a\u5668\u5b66\u4e60\u65b9\u6cd5\uff0c\u7528\u4e8e\u4f30\u8ba1\u67d0\u79cd\u4e8b\u7269\u7684\u53ef\u80fd\u6027\u3002"),(0,n.kt)("p",null,"\u903b\u8f91\u56de\u5f52\u7ecf\u8fc7sigmoid\u51fd\u6570\u8f93\u51fa\u7684\u7ed3\u679c\u53ef\u5c06\u5176\u89c6\u4e3aprobability\uff0c\u800c\u540e\u6839\u636e\u8bbe\u5b9a\u7684\u7f6e\u4fe1\u5ea6\u9608\u503c\u6765\u5224\u65ad\u8be5\u7279\u5f81\u5411\u91cf\u5bf9\u5e94\u7684\u6807\u7b7e\u662f1\u8fd8\u662f0\uff0c\u7528\u4ee5\u89e3\u51b3\u4e8c\u5206\u7c7b\u95ee\u9898\u3002"),(0,n.kt)("hr",null),(0,n.kt)("h2",{id:"\u4e8c\u903b\u8f91\u56de\u5f52logistic-regression\u548c\u7ebf\u6027\u56de\u5f52linear-regression"},"\u4e8c\u3001\u903b\u8f91\u56de\u5f52\uff08Logistic Regression\uff09\u548c\u7ebf\u6027\u56de\u5f52\uff08Linear Regression\uff09"),(0,n.kt)("ul",null,(0,n.kt)("li",{parentName:"ul"},"\u7ebf\u6027\u56de\u5f52\u8981\u6c42\u56e0\u53d8\u91cf\u662f\u8fde\u7eed\u6027\u6570\u503c\u53d8\u91cf\uff0c\u800c\u903b\u8f91\u56de\u5f52\u8981\u6c42\u56e0\u53d8\u91cf\u662f\u79bb\u6563\u7684\u53d8\u91cf\u3002"),(0,n.kt)("li",{parentName:"ul"},"\u903b\u8f91\u56de\u5f52\u4ee5\u7ebf\u6027\u56de\u5f52\u4e3a\u7406\u8bba\u652f\u6301\uff0c\u901a\u8fc7Sigmoid\u51fd\u6570\u5f15\u5165\u4e86\u975e\u7ebf\u6027\u56e0\u7d20\u3002"),(0,n.kt)("li",{parentName:"ul"},"\u7ebf\u6027\u56de\u5f52\u5e38\u7528MSE\u51fd\u6570\u4f5c\u4e3a\u635f\u5931\u51fd\u6570\uff0c\u800c\u903b\u8f91\u56de\u5f52\u4f5c\u4e3a\u5206\u7c7b\u4efb\u52a1\u7684\u89e3\u51b3\u65b9\u6848\u901a\u5e38\u642d\u914d\u4ea4\u53c9\u71b5\u635f\u5931\u51fd\u6570\u8fdb\u884c\u8bad\u7ec3\u3002")),(0,n.kt)("hr",null),(0,n.kt)("h2",{id:"\u4e09\u903b\u8f91\u56de\u5f52\u5230\u5e95\u662f\u56de\u5f52\u4efb\u52a1regression\u8fd8\u662f\u5206\u7c7b\u4efb\u52a1classification"},"\u4e09\u3001\u903b\u8f91\u56de\u5f52\u5230\u5e95\u662f\u56de\u5f52\u4efb\u52a1\uff08Regression\uff09\u8fd8\u662f\u5206\u7c7b\u4efb\u52a1\uff08Classification\uff09\uff1f"),(0,n.kt)("p",null,"\u4ece\u5386\u53f2\u89d2\u5ea6\u65b9\u9762\u770b\uff0c\u903b\u8f91\u56de\u5f52\u5728\u8bde\u751f\u65f6\u4f7f\u7528MSE\u4f5c\u4e3a\u635f\u5931\u51fd\u6570\uff0c\u5176\u76ee\u6807\u662f\u8ba9\u8f93\u51fa\u7684\u6982\u7387\u66f4\u63a5\u8fd1\u4e8e1\uff0c\u4e0e\u56de\u5f52\u4efb\u52a1\u7684\u76ee\u6807\u76f8\u4f3c\u3002"),(0,n.kt)("hr",null),(0,n.kt)("h2",{id:"\u56db\u4e3a\u4ec0\u4e48\u903b\u8f91\u56de\u5f52\u6216\u5176\u4ed6\u5206\u7c7b\u4efb\u52a1\u4e0d\u4f7f\u7528\u5206\u7c7b\u51c6\u786e\u7387\u4f5c\u4e3a\u635f\u5931\u51fd\u6570"},"\u56db\u3001\u4e3a\u4ec0\u4e48\u903b\u8f91\u56de\u5f52\u6216\u5176\u4ed6\u5206\u7c7b\u4efb\u52a1\u4e0d\u4f7f\u7528\u5206\u7c7b\u51c6\u786e\u7387\u4f5c\u4e3a\u635f\u5931\u51fd\u6570\uff1f"),(0,n.kt)("p",null,"\u903b\u8f91\u56de\u5f52\u4ee5\u53ca\u5176\u4ed6\u5206\u7c7b\u4efb\u52a1\u5728\u6d4b\u8bd5\u89d2\u5ea6\u4e0a\u7684\u76ee\u6807\u8ba9\u63d0\u9ad8\u5206\u7c7b\u51c6\u786e\u7387acc\uff0c\u4f46\u5e76\u4e0d\u4f1a\u5c06maximize accuracy\u4f5c\u4e3a\u6570\u5b66\u4e0a\u7684\u8bad\u7ec3\u65b9\u6cd5\uff0c\u5373\u5728\u8bad\u7ec3\u8fc7\u7a0b\u4e2d\u4e0d\u4f7f\u7528\u4e0eacc\u6709\u5173\u7684\u635f\u5931\u51fd\u6570\u3002"),(0,n.kt)("p",null,"\u903b\u8f91\u56de\u5f52\u4e2d\u7684\u8bad\u7ec3\u76ee\u6807\uff08\u8bc4\u4f30\u51fd\u6570\uff09\u4e0e\u9884\u6d4b\u76ee\u6807\uff08\u8bc4\u4f30\u51fd\u6570\uff09\u5e76\u4e0d\u76f8\u540c\uff0c\u4f46\u65b9\u5411\u4e00\u81f4\u3002"),(0,n.kt)("div",{className:"math math-display"},(0,n.kt)("span",{parentName:"div",className:"katex-display"},(0,n.kt)("span",{parentName:"span",className:"katex"},(0,n.kt)("span",{parentName:"span",className:"katex-mathml"},(0,n.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,n.kt)("semantics",{parentName:"math"},(0,n.kt)("mtable",{parentName:"semantics",width:"100%"},(0,n.kt)("mtr",{parentName:"mtable"},(0,n.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,n.kt)("mtd",{parentName:"mtr"},(0,n.kt)("mrow",{parentName:"mtd"},(0,n.kt)("mi",{parentName:"mrow"},"a"),(0,n.kt)("mi",{parentName:"mrow"},"c"),(0,n.kt)("mi",{parentName:"mrow"},"c"),(0,n.kt)("mo",{parentName:"mrow"},"="),(0,n.kt)("mfrac",{parentName:"mrow"},(0,n.kt)("mrow",{parentName:"mfrac"},(0,n.kt)("mo",{parentName:"mrow"},"\u2211"),(0,n.kt)("mrow",{parentName:"mrow"},(0,n.kt)("mi",{parentName:"mrow"},"I"),(0,n.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,n.kt)("mi",{parentName:"mrow"},"p"),(0,n.kt)("mi",{parentName:"mrow"},"r"),(0,n.kt)("mi",{parentName:"mrow"},"e"),(0,n.kt)("msub",{parentName:"mrow"},(0,n.kt)("mi",{parentName:"msub"},"d"),(0,n.kt)("mi",{parentName:"msub"},"i")),(0,n.kt)("mo",{parentName:"mrow"},"="),(0,n.kt)("mo",{parentName:"mrow"},"="),(0,n.kt)("msub",{parentName:"mrow"},(0,n.kt)("mi",{parentName:"msub"},"y"),(0,n.kt)("mi",{parentName:"msub"},"i")),(0,n.kt)("mo",{parentName:"mrow",stretchy:"false"},")"))),(0,n.kt)("mrow",{parentName:"mfrac"},(0,n.kt)("mi",{parentName:"mrow"},"l"),(0,n.kt)("mi",{parentName:"mrow"},"e"),(0,n.kt)("mi",{parentName:"mrow"},"n"),(0,n.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,n.kt)("mi",{parentName:"mrow"},"Y"),(0,n.kt)("mo",{parentName:"mrow",stretchy:"false"},")"))))),(0,n.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,n.kt)("mtd",{parentName:"mtr"},(0,n.kt)("mtext",{parentName:"mtd"},"(1)")))),(0,n.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"acc = \\frac{\\sum{I(pred_i==y_i)}}{len(Y)} \\tag{1}")))),(0,n.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,n.kt)("span",{parentName:"span",className:"base"},(0,n.kt)("span",{parentName:"span",className:"strut",style:{height:"0.4306em"}}),(0,n.kt)("span",{parentName:"span",className:"mord mathnormal"},"a"),(0,n.kt)("span",{parentName:"span",className:"mord mathnormal"},"cc"),(0,n.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,n.kt)("span",{parentName:"span",className:"mrel"},"="),(0,n.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,n.kt)("span",{parentName:"span",className:"base"},(0,n.kt)("span",{parentName:"span",className:"strut",style:{height:"2.363em",verticalAlign:"-0.936em"}}),(0,n.kt)("span",{parentName:"span",className:"mord"},(0,n.kt)("span",{parentName:"span",className:"mopen nulldelimiter"}),(0,n.kt)("span",{parentName:"span",className:"mfrac"},(0,n.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.427em"}},(0,n.kt)("span",{parentName:"span",style:{top:"-2.314em"}},(0,n.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,n.kt)("span",{parentName:"span",className:"mord"},(0,n.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.01968em"}},"l"),(0,n.kt)("span",{parentName:"span",className:"mord mathnormal"},"e"),(0,n.kt)("span",{parentName:"span",className:"mord mathnormal"},"n"),(0,n.kt)("span",{parentName:"span",className:"mopen"},"("),(0,n.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.22222em"}},"Y"),(0,n.kt)("span",{parentName:"span",className:"mclose"},")"))),(0,n.kt)("span",{parentName:"span",style:{top:"-3.23em"}},(0,n.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,n.kt)("span",{parentName:"span",className:"frac-line",style:{borderBottomWidth:"0.04em"}})),(0,n.kt)("span",{parentName:"span",style:{top:"-3.677em"}},(0,n.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,n.kt)("span",{parentName:"span",className:"mord"},(0,n.kt)("span",{parentName:"span",className:"mop op-symbol small-op",style:{position:"relative",top:"0em"}},"\u2211"),(0,n.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,n.kt)("span",{parentName:"span",className:"mord"},(0,n.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.07847em"}},"I"),(0,n.kt)("span",{parentName:"span",className:"mopen"},"("),(0,n.kt)("span",{parentName:"span",className:"mord mathnormal"},"p"),(0,n.kt)("span",{parentName:"span",className:"mord mathnormal"},"re"),(0,n.kt)("span",{parentName:"span",className:"mord"},(0,n.kt)("span",{parentName:"span",className:"mord mathnormal"},"d"),(0,n.kt)("span",{parentName:"span",className:"msupsub"},(0,n.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3117em"}},(0,n.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,n.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,n.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,n.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"i")))),(0,n.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,n.kt)("span",{parentName:"span"})))))),(0,n.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,n.kt)("span",{parentName:"span",className:"mrel"},"=="),(0,n.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,n.kt)("span",{parentName:"span",className:"mord"},(0,n.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"y"),(0,n.kt)("span",{parentName:"span",className:"msupsub"},(0,n.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3117em"}},(0,n.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0359em",marginRight:"0.05em"}},(0,n.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,n.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,n.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"i")))),(0,n.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,n.kt)("span",{parentName:"span"})))))),(0,n.kt)("span",{parentName:"span",className:"mclose"},")"))))),(0,n.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.936em"}},(0,n.kt)("span",{parentName:"span"}))))),(0,n.kt)("span",{parentName:"span",className:"mclose nulldelimiter"}))),(0,n.kt)("span",{parentName:"span",className:"tag"},(0,n.kt)("span",{parentName:"span",className:"strut",style:{height:"2.363em",verticalAlign:"-0.936em"}}),(0,n.kt)("span",{parentName:"span",className:"mord text"},(0,n.kt)("span",{parentName:"span",className:"mord"},"("),(0,n.kt)("span",{parentName:"span",className:"mord"},(0,n.kt)("span",{parentName:"span",className:"mord"},"1")),(0,n.kt)("span",{parentName:"span",className:"mord"},")"))))))),(0,n.kt)("p",null,"\u5982\u679c\u5728\u8bad\u7ec3\u8fc7\u7a0b\u4e2d\u4ee5\u6700\u5927\u5316acc\u4e3a\u76ee\u6807\uff0c\u5f53\u53c2\u6570\u5728\u8bad\u7ec3\u8fc7\u7a0b\u4e2d\u5411\u6807\u7b7e\u65b9\u5411\u66f4\u65b0\u4f7f\u5f97\u903b\u8f91\u56de\u5f52\u8f93\u51fa\u7684\u6b63\u786e\u7c7b\u7684\u6982\u7387\u589e\u5927\u65f6\uff0c\u8003\u8651\u4ee5\u4e0b\u4e24\u79cd\u60c5\u51b5\uff1a"),(0,n.kt)("ol",null,(0,n.kt)("li",{parentName:"ol"},(0,n.kt)("p",{parentName:"li"},(0,n.kt)("strong",{parentName:"p"},"gradient = 0")," if accuracy unchanged but weights changed:"),(0,n.kt)("p",{parentName:"li"},"\u7531\u4e8e\u9608\u503c\u7684\u5b58\u5728\uff0c\u4e0b\u4e00\u8f6e\u8fed\u4ee3\u8f93\u51fa\u7684\u6982\u7387\u53ef\u80fd\u4ecd\u5c0f\u4e8e\u9608\u503c\uff0c\u4ece\u800c\u5bfc\u81f4\u5206\u7c7b\u7ed3\u679c\u4e0e\u4e0a\u4e00\u6b21\u8fed\u4ee3\u76f8\u540c\uff0c\u6b64\u65f6acc\u5e76\u65e0\u53d8\u5316\uff0c",(0,n.kt)("strong",{parentName:"p"},"\u51fa\u73b0\u68af\u5ea6\u4e3a0"),"\u7684\u60c5\u51b5\u3002")),(0,n.kt)("li",{parentName:"ol"},(0,n.kt)("p",{parentName:"li"},(0,n.kt)("strong",{parentName:"p"},"gradient not continuous")," since the number of correct is not continunous:"),(0,n.kt)("p",{parentName:"li"},"\u5f53\u4e0a\u4e00\u8f6e\u8fed\u4ee3\u7684\u8f93\u51fa\u6982\u7387\u5f88\u63a5\u8fd1\u9608\u503c\u65f6\uff0c\u4e0b\u4e00\u6b21\u8fed\u4ee3\u7684\u6982\u7387\u63d0\u5347\u4e86\u5f88\u5c11\u4e00\u70b9\u4f46\u662f\u4ecd\u8d85\u8fc7\u4e86\u9608\u503c\uff0c\u4e14\u4e00\u4e2abatch\u4e2d\u6709\u5927\u91cf\u6837\u672c\u5747\u5b58\u5728\u8fd9\u79cd\u60c5\u51b5\uff0c\u6b64\u65f6acc\u6709\u663e\u8457\u63d0\u5347\u800c\u7f51\u7edc\u7684\u6743\u91cd\u7684\u66f4\u65b0\u6781\u5c0f\uff0c\u6b64\u65f6\uff0c\u4e0eacc\u6709\u5173\u7684Loss\u51fd\u6570\u5bf9\u6743\u91cd\u6c42\u5bfc\u5f97\u5230\u7684\u68af\u5ea6\u4f1a\u51fa\u73b0\u68af\u5ea6\u7206\u70b8\u6216\u8005\u8bf4",(0,n.kt)("strong",{parentName:"p"},"\u4e0d\u8fde\u7eed"),"\u7684\u60c5\u51b5\u3002"))))}N.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/en/assets/js/8443.ac831155.js b/en/assets/js/8443.ac831155.js new file mode 100644 index 000000000..566044b0a --- /dev/null +++ b/en/assets/js/8443.ac831155.js @@ -0,0 +1,2 @@ +/*! For license information please see 8443.ac831155.js.LICENSE.txt */ +(self.webpackChunknpy_notebook=self.webpackChunknpy_notebook||[]).push([[8443],{6937:(t,e,n)=>{"use strict";t.exports=n(295)},1228:(t,e,n)=>{"use strict";var i=n(2856),s={wrapper:{position:"relative",display:"inline-block"},hint:{position:"absolute",top:"0",left:"0",borderColor:"transparent",boxShadow:"none",opacity:"1"},input:{position:"relative",verticalAlign:"top",backgroundColor:"transparent"},inputWithNoHint:{position:"relative",verticalAlign:"top"},dropdown:{position:"absolute",top:"100%",left:"0",zIndex:"100",display:"none"},suggestions:{display:"block"},suggestion:{whiteSpace:"nowrap",cursor:"pointer"},suggestionChild:{whiteSpace:"normal"},ltr:{left:"0",right:"auto"},rtl:{left:"auto",right:"0"},defaultClasses:{root:"algolia-autocomplete",prefix:"aa",noPrefix:!1,dropdownMenu:"dropdown-menu",input:"input",hint:"hint",suggestions:"suggestions",suggestion:"suggestion",cursor:"cursor",dataset:"dataset",empty:"empty"},appendTo:{wrapper:{position:"absolute",zIndex:"100",display:"none"},input:{},inputWithNoHint:{},dropdown:{display:"block"}}};i.isMsie()&&i.mixin(s.input,{backgroundImage:"url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)"}),i.isMsie()&&i.isMsie()<=7&&i.mixin(s.input,{marginTop:"-1px"}),t.exports=s},9050:(t,e,n)=>{"use strict";var i="aaDataset",s="aaValue",r="aaDatum",o=n(2856),a=n(4910),u=n(3561),c=n(1228),l=n(3109);function h(t){var e;(t=t||{}).templates=t.templates||{},t.source||o.error("missing source"),t.name&&(e=t.name,!/^[_a-zA-Z0-9-]+$/.test(e))&&o.error("invalid dataset name: "+t.name),this.query=null,this._isEmpty=!0,this.highlight=!!t.highlight,this.name=void 0===t.name||null===t.name?o.getUniqueId():t.name,this.source=t.source,this.displayFn=function(t){return t=t||"value",o.isFunction(t)?t:e;function e(e){return e[t]}}(t.display||t.displayKey),this.debounce=t.debounce,this.cache=!1!==t.cache,this.templates=function(t,e){return{empty:t.empty&&o.templatify(t.empty),header:t.header&&o.templatify(t.header),footer:t.footer&&o.templatify(t.footer),suggestion:t.suggestion||n};function n(t){return"

"+e(t)+"

"}}(t.templates,this.displayFn),this.css=o.mixin({},c,t.appendTo?c.appendTo:{}),this.cssClasses=t.cssClasses=o.mixin({},c.defaultClasses,t.cssClasses||{}),this.cssClasses.prefix=t.cssClasses.formattedPrefix||o.formatPrefix(this.cssClasses.prefix,this.cssClasses.noPrefix);var n=o.className(this.cssClasses.prefix,this.cssClasses.dataset);this.$el=t.$menu&&t.$menu.find(n+"-"+this.name).length>0?a.element(t.$menu.find(n+"-"+this.name)[0]):a.element(u.dataset.replace("%CLASS%",this.name).replace("%PREFIX%",this.cssClasses.prefix).replace("%DATASET%",this.cssClasses.dataset)),this.$menu=t.$menu,this.clearCachedSuggestions()}h.extractDatasetName=function(t){return a.element(t).data(i)},h.extractValue=function(t){return a.element(t).data(s)},h.extractDatum=function(t){var e=a.element(t).data(r);return"string"==typeof e&&(e=JSON.parse(e)),e},o.mixin(h.prototype,l,{_render:function(t,e){if(this.$el){var n,c=this,l=[].slice.call(arguments,2);if(this.$el.empty(),n=e&&e.length,this._isEmpty=!n,!n&&this.templates.empty)this.$el.html(function(){var e=[].slice.call(arguments,0);return e=[{query:t,isEmpty:!0}].concat(e),c.templates.empty.apply(this,e)}.apply(this,l)).prepend(c.templates.header?h.apply(this,l):null).append(c.templates.footer?p.apply(this,l):null);else if(n)this.$el.html(function(){var t,n,l=[].slice.call(arguments,0),h=this,p=u.suggestions.replace("%PREFIX%",this.cssClasses.prefix).replace("%SUGGESTIONS%",this.cssClasses.suggestions);return t=a.element(p).css(this.css.suggestions),n=o.map(e,f),t.append.apply(t,n),t;function f(t){var e,n=u.suggestion.replace("%PREFIX%",h.cssClasses.prefix).replace("%SUGGESTION%",h.cssClasses.suggestion);return(e=a.element(n).attr({role:"option",id:["option",Math.floor(1e8*Math.random())].join("-")}).append(c.templates.suggestion.apply(this,[t].concat(l)))).data(i,c.name),e.data(s,c.displayFn(t)||void 0),e.data(r,JSON.stringify(t)),e.children().each((function(){a.element(this).css(h.css.suggestionChild)})),e}}.apply(this,l)).prepend(c.templates.header?h.apply(this,l):null).append(c.templates.footer?p.apply(this,l):null);else if(e&&!Array.isArray(e))throw new TypeError("suggestions must be an array");this.$menu&&this.$menu.addClass(this.cssClasses.prefix+(n?"with":"without")+"-"+this.name).removeClass(this.cssClasses.prefix+(n?"without":"with")+"-"+this.name),this.trigger("rendered",t)}function h(){var e=[].slice.call(arguments,0);return e=[{query:t,isEmpty:!n}].concat(e),c.templates.header.apply(this,e)}function p(){var e=[].slice.call(arguments,0);return e=[{query:t,isEmpty:!n}].concat(e),c.templates.footer.apply(this,e)}},getRoot:function(){return this.$el},update:function(t){function e(e){if(!this.canceled&&t===this.query){var n=[].slice.call(arguments,1);this.cacheSuggestions(t,e,n),this._render.apply(this,[t,e].concat(n))}}if(this.query=t,this.canceled=!1,this.shouldFetchFromCache(t))e.apply(this,[this.cachedSuggestions].concat(this.cachedRenderExtraArgs));else{var n=this,i=function(){n.canceled||n.source(t,e.bind(n))};if(this.debounce){clearTimeout(this.debounceTimeout),this.debounceTimeout=setTimeout((function(){n.debounceTimeout=null,i()}),this.debounce)}else i()}},cacheSuggestions:function(t,e,n){this.cachedQuery=t,this.cachedSuggestions=e,this.cachedRenderExtraArgs=n},shouldFetchFromCache:function(t){return this.cache&&this.cachedQuery===t&&this.cachedSuggestions&&this.cachedSuggestions.length},clearCachedSuggestions:function(){delete this.cachedQuery,delete this.cachedSuggestions,delete this.cachedRenderExtraArgs},cancel:function(){this.canceled=!0},clear:function(){this.$el&&(this.cancel(),this.$el.empty(),this.trigger("rendered",""))},isEmpty:function(){return this._isEmpty},destroy:function(){this.clearCachedSuggestions(),this.$el=null}}),t.exports=h},3354:(t,e,n)=>{"use strict";var i=n(2856),s=n(4910),r=n(3109),o=n(9050),a=n(1228);function u(t){var e,n,r,o=this;(t=t||{}).menu||i.error("menu is required"),i.isArray(t.datasets)||i.isObject(t.datasets)||i.error("1 or more datasets required"),t.datasets||i.error("datasets is required"),this.isOpen=!1,this.isEmpty=!0,this.minLength=t.minLength||0,this.templates={},this.appendTo=t.appendTo||!1,this.css=i.mixin({},a,t.appendTo?a.appendTo:{}),this.cssClasses=t.cssClasses=i.mixin({},a.defaultClasses,t.cssClasses||{}),this.cssClasses.prefix=t.cssClasses.formattedPrefix||i.formatPrefix(this.cssClasses.prefix,this.cssClasses.noPrefix),e=i.bind(this._onSuggestionClick,this),n=i.bind(this._onSuggestionMouseEnter,this),r=i.bind(this._onSuggestionMouseLeave,this);var c=i.className(this.cssClasses.prefix,this.cssClasses.suggestion);this.$menu=s.element(t.menu).on("mouseenter.aa",c,n).on("mouseleave.aa",c,r).on("click.aa",c,e),this.$container=t.appendTo?t.wrapper:this.$menu,t.templates&&t.templates.header&&(this.templates.header=i.templatify(t.templates.header),this.$menu.prepend(this.templates.header())),t.templates&&t.templates.empty&&(this.templates.empty=i.templatify(t.templates.empty),this.$empty=s.element('
'),this.$menu.append(this.$empty),this.$empty.hide()),this.datasets=i.map(t.datasets,(function(e){return function(t,e,n){return new u.Dataset(i.mixin({$menu:t,cssClasses:n},e))}(o.$menu,e,t.cssClasses)})),i.each(this.datasets,(function(t){var e=t.getRoot();e&&0===e.parent().length&&o.$menu.append(e),t.onSync("rendered",o._onRendered,o)})),t.templates&&t.templates.footer&&(this.templates.footer=i.templatify(t.templates.footer),this.$menu.append(this.templates.footer()));var l=this;s.element(window).resize((function(){l._redraw()}))}i.mixin(u.prototype,r,{_onSuggestionClick:function(t){this.trigger("suggestionClicked",s.element(t.currentTarget))},_onSuggestionMouseEnter:function(t){var e=s.element(t.currentTarget);if(!e.hasClass(i.className(this.cssClasses.prefix,this.cssClasses.cursor,!0))){this._removeCursor();var n=this;setTimeout((function(){n._setCursor(e,!1)}),0)}},_onSuggestionMouseLeave:function(t){if(t.relatedTarget&&s.element(t.relatedTarget).closest("."+i.className(this.cssClasses.prefix,this.cssClasses.cursor,!0)).length>0)return;this._removeCursor(),this.trigger("cursorRemoved")},_onRendered:function(t,e){if(this.isEmpty=i.every(this.datasets,(function(t){return t.isEmpty()})),this.isEmpty)if(e.length>=this.minLength&&this.trigger("empty"),this.$empty)if(e.length=this.minLength?this._show():this._hide());this.trigger("datasetRendered")},_hide:function(){this.$container.hide()},_show:function(){this.$container.css("display","block"),this._redraw(),this.trigger("shown")},_redraw:function(){this.isOpen&&this.appendTo&&this.trigger("redrawn")},_getSuggestions:function(){return this.$menu.find(i.className(this.cssClasses.prefix,this.cssClasses.suggestion))},_getCursor:function(){return this.$menu.find(i.className(this.cssClasses.prefix,this.cssClasses.cursor)).first()},_setCursor:function(t,e){t.first().addClass(i.className(this.cssClasses.prefix,this.cssClasses.cursor,!0)).attr("aria-selected","true"),this.trigger("cursorMoved",e)},_removeCursor:function(){this._getCursor().removeClass(i.className(this.cssClasses.prefix,this.cssClasses.cursor,!0)).removeAttr("aria-selected")},_moveCursor:function(t){var e,n,i,s;this.isOpen&&(n=this._getCursor(),e=this._getSuggestions(),this._removeCursor(),-1!==(i=((i=e.index(n)+t)+1)%(e.length+1)-1)?(i<-1&&(i=e.length-1),this._setCursor(s=e.eq(i),!0),this._ensureVisible(s)):this.trigger("cursorRemoved"))},_ensureVisible:function(t){var e,n,i,s;n=(e=t.position().top)+t.height()+parseInt(t.css("margin-top"),10)+parseInt(t.css("margin-bottom"),10),i=this.$menu.scrollTop(),s=this.$menu.height()+parseInt(this.$menu.css("padding-top"),10)+parseInt(this.$menu.css("padding-bottom"),10),e<0?this.$menu.scrollTop(i+e):s{"use strict";var i=n(2856),s=n(4910);function r(t){t&&t.el||i.error("EventBus initialized without el"),this.$el=s.element(t.el)}i.mixin(r.prototype,{trigger:function(t,e,n,s){var r=i.Event("autocomplete:"+t);return this.$el.trigger(r,[e,n,s]),r}}),t.exports=r},3109:(t,e,n)=>{"use strict";var i=n(624),s=/\s+/;function r(t,e,n,i){var r;if(!n)return this;for(e=e.split(s),n=i?function(t,e){return t.bind?t.bind(e):function(){t.apply(e,[].slice.call(arguments,0))}}(n,i):n,this._callbacks=this._callbacks||{};r=e.shift();)this._callbacks[r]=this._callbacks[r]||{sync:[],async:[]},this._callbacks[r][t].push(n);return this}function o(t,e,n){return function(){for(var i,s=0,r=t.length;!i&&s{"use strict";t.exports={wrapper:'',dropdown:'',dataset:'
',suggestions:'',suggestion:'
'}},2534:(t,e,n)=>{"use strict";var i;i={9:"tab",27:"esc",37:"left",39:"right",13:"enter",38:"up",40:"down"};var s=n(2856),r=n(4910),o=n(3109);function a(t){var e,n,o,a,u,c=this;(t=t||{}).input||s.error("input is missing"),e=s.bind(this._onBlur,this),n=s.bind(this._onFocus,this),o=s.bind(this._onKeydown,this),a=s.bind(this._onInput,this),this.$hint=r.element(t.hint),this.$input=r.element(t.input).on("blur.aa",e).on("focus.aa",n).on("keydown.aa",o),0===this.$hint.length&&(this.setHint=this.getHint=this.clearHint=this.clearHintIfInvalid=s.noop),s.isMsie()?this.$input.on("keydown.aa keypress.aa cut.aa paste.aa",(function(t){i[t.which||t.keyCode]||s.defer(s.bind(c._onInput,c,t))})):this.$input.on("input.aa",a),this.query=this.$input.val(),this.$overflowHelper=(u=this.$input,r.element('').css({position:"absolute",visibility:"hidden",whiteSpace:"pre",fontFamily:u.css("font-family"),fontSize:u.css("font-size"),fontStyle:u.css("font-style"),fontVariant:u.css("font-variant"),fontWeight:u.css("font-weight"),wordSpacing:u.css("word-spacing"),letterSpacing:u.css("letter-spacing"),textIndent:u.css("text-indent"),textRendering:u.css("text-rendering"),textTransform:u.css("text-transform")}).insertAfter(u))}function u(t){return t.altKey||t.ctrlKey||t.metaKey||t.shiftKey}a.normalizeQuery=function(t){return(t||"").replace(/^\s*/g,"").replace(/\s{2,}/g," ")},s.mixin(a.prototype,o,{_onBlur:function(){this.resetInputValue(),this.$input.removeAttr("aria-activedescendant"),this.trigger("blurred")},_onFocus:function(){this.trigger("focused")},_onKeydown:function(t){var e=i[t.which||t.keyCode];this._managePreventDefault(e,t),e&&this._shouldTrigger(e,t)&&this.trigger(e+"Keyed",t)},_onInput:function(){this._checkInputValue()},_managePreventDefault:function(t,e){var n,i,s;switch(t){case"tab":i=this.getHint(),s=this.getInputValue(),n=i&&i!==s&&!u(e);break;case"up":case"down":n=!u(e);break;default:n=!1}n&&e.preventDefault()},_shouldTrigger:function(t,e){var n;if("tab"===t)n=!u(e);else n=!0;return n},_checkInputValue:function(){var t,e,n,i,s;t=this.getInputValue(),i=t,s=this.query,n=!(!(e=a.normalizeQuery(i)===a.normalizeQuery(s))||!this.query)&&this.query.length!==t.length,this.query=t,e?n&&this.trigger("whitespaceChanged",this.query):this.trigger("queryChanged",this.query)},focus:function(){this.$input.focus()},blur:function(){this.$input.blur()},getQuery:function(){return this.query},setQuery:function(t){this.query=t},getInputValue:function(){return this.$input.val()},setInputValue:function(t,e){void 0===t&&(t=this.query),this.$input.val(t),e?this.clearHint():this._checkInputValue()},expand:function(){this.$input.attr("aria-expanded","true")},collapse:function(){this.$input.attr("aria-expanded","false")},setActiveDescendant:function(t){this.$input.attr("aria-activedescendant",t)},removeActiveDescendant:function(){this.$input.removeAttr("aria-activedescendant")},resetInputValue:function(){this.setInputValue(this.query,!0)},getHint:function(){return this.$hint.val()},setHint:function(t){this.$hint.val(t)},clearHint:function(){this.setHint("")},clearHintIfInvalid:function(){var t,e,n;n=(t=this.getInputValue())!==(e=this.getHint())&&0===e.indexOf(t),""!==t&&n&&!this.hasOverflow()||this.clearHint()},getLanguageDirection:function(){return(this.$input.css("direction")||"ltr").toLowerCase()},hasOverflow:function(){var t=this.$input.width()-2;return this.$overflowHelper.text(this.getInputValue()),this.$overflowHelper.width()>=t},isCursorAtEnd:function(){var t,e,n;return t=this.$input.val().length,e=this.$input[0].selectionStart,s.isNumber(e)?e===t:!document.selection||((n=document.selection.createRange()).moveStart("character",-t),t===n.text.length)},destroy:function(){this.$hint.off(".aa"),this.$input.off(".aa"),this.$hint=this.$input=this.$overflowHelper=null}}),t.exports=a},6549:(t,e,n)=>{"use strict";var i="aaAttrs",s=n(2856),r=n(4910),o=n(50),a=n(2534),u=n(3354),c=n(3561),l=n(1228);function h(t){var e,n;if((t=t||{}).input||s.error("missing input"),this.isActivated=!1,this.debug=!!t.debug,this.autoselect=!!t.autoselect,this.autoselectOnBlur=!!t.autoselectOnBlur,this.openOnFocus=!!t.openOnFocus,this.minLength=s.isNumber(t.minLength)?t.minLength:1,this.autoWidth=void 0===t.autoWidth||!!t.autoWidth,this.clearOnSelected=!!t.clearOnSelected,this.tabAutocomplete=void 0===t.tabAutocomplete||!!t.tabAutocomplete,t.hint=!!t.hint,t.hint&&t.appendTo)throw new Error("[autocomplete.js] hint and appendTo options can't be used at the same time");this.css=t.css=s.mixin({},l,t.appendTo?l.appendTo:{}),this.cssClasses=t.cssClasses=s.mixin({},l.defaultClasses,t.cssClasses||{}),this.cssClasses.prefix=t.cssClasses.formattedPrefix=s.formatPrefix(this.cssClasses.prefix,this.cssClasses.noPrefix),this.listboxId=t.listboxId=[this.cssClasses.root,"listbox",s.getUniqueId()].join("-");var a=function(t){var e,n,o,a;e=r.element(t.input),n=r.element(c.wrapper.replace("%ROOT%",t.cssClasses.root)).css(t.css.wrapper),t.appendTo||"block"!==e.css("display")||"table"!==e.parent().css("display")||n.css("display","table-cell");var u=c.dropdown.replace("%PREFIX%",t.cssClasses.prefix).replace("%DROPDOWN_MENU%",t.cssClasses.dropdownMenu);o=r.element(u).css(t.css.dropdown).attr({role:"listbox",id:t.listboxId}),t.templates&&t.templates.dropdownMenu&&o.html(s.templatify(t.templates.dropdownMenu)());a=e.clone().css(t.css.hint).css(function(t){return{backgroundAttachment:t.css("background-attachment"),backgroundClip:t.css("background-clip"),backgroundColor:t.css("background-color"),backgroundImage:t.css("background-image"),backgroundOrigin:t.css("background-origin"),backgroundPosition:t.css("background-position"),backgroundRepeat:t.css("background-repeat"),backgroundSize:t.css("background-size")}}(e)),a.val("").addClass(s.className(t.cssClasses.prefix,t.cssClasses.hint,!0)).removeAttr("id name placeholder required").prop("readonly",!0).attr({"aria-hidden":"true",autocomplete:"off",spellcheck:"false",tabindex:-1}),a.removeData&&a.removeData();e.data(i,{"aria-autocomplete":e.attr("aria-autocomplete"),"aria-expanded":e.attr("aria-expanded"),"aria-owns":e.attr("aria-owns"),autocomplete:e.attr("autocomplete"),dir:e.attr("dir"),role:e.attr("role"),spellcheck:e.attr("spellcheck"),style:e.attr("style"),type:e.attr("type")}),e.addClass(s.className(t.cssClasses.prefix,t.cssClasses.input,!0)).attr({autocomplete:"off",spellcheck:!1,role:"combobox","aria-autocomplete":t.datasets&&t.datasets[0]&&t.datasets[0].displayKey?"both":"list","aria-expanded":"false","aria-label":t.ariaLabel,"aria-owns":t.listboxId}).css(t.hint?t.css.input:t.css.inputWithNoHint);try{e.attr("dir")||e.attr("dir","auto")}catch(l){}return n=t.appendTo?n.appendTo(r.element(t.appendTo).eq(0)).eq(0):e.wrap(n).parent(),n.prepend(t.hint?a:null).append(o),{wrapper:n,input:e,hint:a,menu:o}}(t);this.$node=a.wrapper;var u=this.$input=a.input;e=a.menu,n=a.hint,t.dropdownMenuContainer&&r.element(t.dropdownMenuContainer).css("position","relative").append(e.css("top","0")),u.on("blur.aa",(function(t){var n=document.activeElement;s.isMsie()&&(e[0]===n||e[0].contains(n))&&(t.preventDefault(),t.stopImmediatePropagation(),s.defer((function(){u.focus()})))})),e.on("mousedown.aa",(function(t){t.preventDefault()})),this.eventBus=t.eventBus||new o({el:u}),this.dropdown=new h.Dropdown({appendTo:t.appendTo,wrapper:this.$node,menu:e,datasets:t.datasets,templates:t.templates,cssClasses:t.cssClasses,minLength:this.minLength}).onSync("suggestionClicked",this._onSuggestionClicked,this).onSync("cursorMoved",this._onCursorMoved,this).onSync("cursorRemoved",this._onCursorRemoved,this).onSync("opened",this._onOpened,this).onSync("closed",this._onClosed,this).onSync("shown",this._onShown,this).onSync("empty",this._onEmpty,this).onSync("redrawn",this._onRedrawn,this).onAsync("datasetRendered",this._onDatasetRendered,this),this.input=new h.Input({input:u,hint:n}).onSync("focused",this._onFocused,this).onSync("blurred",this._onBlurred,this).onSync("enterKeyed",this._onEnterKeyed,this).onSync("tabKeyed",this._onTabKeyed,this).onSync("escKeyed",this._onEscKeyed,this).onSync("upKeyed",this._onUpKeyed,this).onSync("downKeyed",this._onDownKeyed,this).onSync("leftKeyed",this._onLeftKeyed,this).onSync("rightKeyed",this._onRightKeyed,this).onSync("queryChanged",this._onQueryChanged,this).onSync("whitespaceChanged",this._onWhitespaceChanged,this),this._bindKeyboardShortcuts(t),this._setLanguageDirection()}s.mixin(h.prototype,{_bindKeyboardShortcuts:function(t){if(t.keyboardShortcuts){var e=this.$input,n=[];s.each(t.keyboardShortcuts,(function(t){"string"==typeof t&&(t=t.toUpperCase().charCodeAt(0)),n.push(t)})),r.element(document).keydown((function(t){var i=t.target||t.srcElement,s=i.tagName;if(!i.isContentEditable&&"INPUT"!==s&&"SELECT"!==s&&"TEXTAREA"!==s){var r=t.which||t.keyCode;-1!==n.indexOf(r)&&(e.focus(),t.stopPropagation(),t.preventDefault())}}))}},_onSuggestionClicked:function(t,e){var n;(n=this.dropdown.getDatumForSuggestion(e))&&this._select(n,{selectionMethod:"click"})},_onCursorMoved:function(t,e){var n=this.dropdown.getDatumForCursor(),i=this.dropdown.getCurrentCursor().attr("id");this.input.setActiveDescendant(i),n&&(e&&this.input.setInputValue(n.value,!0),this.eventBus.trigger("cursorchanged",n.raw,n.datasetName))},_onCursorRemoved:function(){this.input.resetInputValue(),this._updateHint(),this.eventBus.trigger("cursorremoved")},_onDatasetRendered:function(){this._updateHint(),this.eventBus.trigger("updated")},_onOpened:function(){this._updateHint(),this.input.expand(),this.eventBus.trigger("opened")},_onEmpty:function(){this.eventBus.trigger("empty")},_onRedrawn:function(){this.$node.css("top","0px"),this.$node.css("left","0px");var t=this.$input[0].getBoundingClientRect();this.autoWidth&&this.$node.css("width",t.width+"px");var e=this.$node[0].getBoundingClientRect(),n=t.bottom-e.top;this.$node.css("top",n+"px");var i=t.left-e.left;this.$node.css("left",i+"px"),this.eventBus.trigger("redrawn")},_onShown:function(){this.eventBus.trigger("shown"),this.autoselect&&this.dropdown.cursorTopSuggestion()},_onClosed:function(){this.input.clearHint(),this.input.removeActiveDescendant(),this.input.collapse(),this.eventBus.trigger("closed")},_onFocused:function(){if(this.isActivated=!0,this.openOnFocus){var t=this.input.getQuery();t.length>=this.minLength?this.dropdown.update(t):this.dropdown.empty(),this.dropdown.open()}},_onBlurred:function(){var t,e;t=this.dropdown.getDatumForCursor(),e=this.dropdown.getDatumForTopSuggestion();var n={selectionMethod:"blur"};this.debug||(this.autoselectOnBlur&&t?this._select(t,n):this.autoselectOnBlur&&e?this._select(e,n):(this.isActivated=!1,this.dropdown.empty(),this.dropdown.close()))},_onEnterKeyed:function(t,e){var n,i;n=this.dropdown.getDatumForCursor(),i=this.dropdown.getDatumForTopSuggestion();var s={selectionMethod:"enterKey"};n?(this._select(n,s),e.preventDefault()):this.autoselect&&i&&(this._select(i,s),e.preventDefault())},_onTabKeyed:function(t,e){if(this.tabAutocomplete){var n;(n=this.dropdown.getDatumForCursor())?(this._select(n,{selectionMethod:"tabKey"}),e.preventDefault()):this._autocomplete(!0)}else this.dropdown.close()},_onEscKeyed:function(){this.dropdown.close(),this.input.resetInputValue()},_onUpKeyed:function(){var t=this.input.getQuery();this.dropdown.isEmpty&&t.length>=this.minLength?this.dropdown.update(t):this.dropdown.moveCursorUp(),this.dropdown.open()},_onDownKeyed:function(){var t=this.input.getQuery();this.dropdown.isEmpty&&t.length>=this.minLength?this.dropdown.update(t):this.dropdown.moveCursorDown(),this.dropdown.open()},_onLeftKeyed:function(){"rtl"===this.dir&&this._autocomplete()},_onRightKeyed:function(){"ltr"===this.dir&&this._autocomplete()},_onQueryChanged:function(t,e){this.input.clearHintIfInvalid(),e.length>=this.minLength?this.dropdown.update(e):this.dropdown.empty(),this.dropdown.open(),this._setLanguageDirection()},_onWhitespaceChanged:function(){this._updateHint(),this.dropdown.open()},_setLanguageDirection:function(){var t=this.input.getLanguageDirection();this.dir!==t&&(this.dir=t,this.$node.css("direction",t),this.dropdown.setLanguageDirection(t))},_updateHint:function(){var t,e,n,i,r;(t=this.dropdown.getDatumForTopSuggestion())&&this.dropdown.isVisible()&&!this.input.hasOverflow()?(e=this.input.getInputValue(),n=a.normalizeQuery(e),i=s.escapeRegExChars(n),(r=new RegExp("^(?:"+i+")(.+$)","i").exec(t.value))?this.input.setHint(e+r[1]):this.input.clearHint()):this.input.clearHint()},_autocomplete:function(t){var e,n,i,s;e=this.input.getHint(),n=this.input.getQuery(),i=t||this.input.isCursorAtEnd(),e&&n!==e&&i&&((s=this.dropdown.getDatumForTopSuggestion())&&this.input.setInputValue(s.value),this.eventBus.trigger("autocompleted",s.raw,s.datasetName))},_select:function(t,e){void 0!==t.value&&this.input.setQuery(t.value),this.clearOnSelected?this.setVal(""):this.input.setInputValue(t.value,!0),this._setLanguageDirection(),!1===this.eventBus.trigger("selected",t.raw,t.datasetName,e).isDefaultPrevented()&&(this.dropdown.close(),s.defer(s.bind(this.dropdown.empty,this.dropdown)))},open:function(){if(!this.isActivated){var t=this.input.getInputValue();t.length>=this.minLength?this.dropdown.update(t):this.dropdown.empty()}this.dropdown.open()},close:function(){this.dropdown.close()},setVal:function(t){t=s.toStr(t),this.isActivated?this.input.setInputValue(t):(this.input.setQuery(t),this.input.setInputValue(t,!0)),this._setLanguageDirection()},getVal:function(){return this.input.getQuery()},destroy:function(){this.input.destroy(),this.dropdown.destroy(),function(t,e){var n=t.find(s.className(e.prefix,e.input));s.each(n.data(i),(function(t,e){void 0===t?n.removeAttr(e):n.attr(e,t)})),n.detach().removeClass(s.className(e.prefix,e.input,!0)).insertAfter(t),n.removeData&&n.removeData(i);t.remove()}(this.$node,this.cssClasses),this.$node=null},getWrapper:function(){return this.dropdown.$container[0]}}),h.Dropdown=u,h.Input=a,h.sources=n(8840),t.exports=h},4910:t=>{"use strict";t.exports={element:null}},6177:t=>{"use strict";t.exports=function(t){var e=t.match(/Algolia for JavaScript \((\d+\.)(\d+\.)(\d+)\)/)||t.match(/Algolia for vanilla JavaScript (\d+\.)(\d+\.)(\d+)/);if(e)return[e[1],e[2],e[3]]}},2856:(t,e,n)=>{"use strict";var i,s=n(8820),r=n(4910);function o(t){return t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}t.exports={isArray:null,isFunction:null,isObject:null,bind:null,each:null,map:null,mixin:null,isMsie:function(t){if(void 0===t&&(t=navigator.userAgent),/(msie|trident)/i.test(t)){var e=t.match(/(msie |rv:)(\d+(.\d+)?)/i);if(e)return e[2]}return!1},escapeRegExChars:function(t){return t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")},isNumber:function(t){return"number"==typeof t},toStr:function(t){return null==t?"":t+""},cloneDeep:function(t){var e=this.mixin({},t),n=this;return this.each(e,(function(t,i){t&&(n.isArray(t)?e[i]=[].concat(t):n.isObject(t)&&(e[i]=n.cloneDeep(t)))})),e},error:function(t){throw new Error(t)},every:function(t,e){var n=!0;return t?(this.each(t,(function(i,s){n&&(n=e.call(null,i,s,t)&&n)})),!!n):n},any:function(t,e){var n=!1;return t?(this.each(t,(function(i,s){if(e.call(null,i,s,t))return n=!0,!1})),n):n},getUniqueId:(i=0,function(){return i++}),templatify:function(t){if(this.isFunction(t))return t;var e=r.element(t);return"SCRIPT"===e.prop("tagName")?function(){return e.text()}:function(){return String(t)}},defer:function(t){setTimeout(t,0)},noop:function(){},formatPrefix:function(t,e){return e?"":t+"-"},className:function(t,e,n){return n?t+e:"."+s(t+e,{isIdentifier:!0})},escapeHighlightedString:function(t,e,n){e=e||"";var i=document.createElement("div");i.appendChild(document.createTextNode(e)),n=n||"";var s=document.createElement("div");s.appendChild(document.createTextNode(n));var r=document.createElement("div");return r.appendChild(document.createTextNode(t)),r.innerHTML.replace(RegExp(o(i.innerHTML),"g"),e).replace(RegExp(o(s.innerHTML),"g"),n)}}},9983:(t,e,n)=>{"use strict";var i=n(2856),s=n(533),r=n(6177);var o,a,u=(o=[],a=window.Promise.resolve(),function(t,e){return function(n,s){(function(t,e){return window.Promise.resolve().then((function(){return o.length&&(a=t.search(o),o=[]),a})).then((function(t){if(t)return t.results[e]}))})(t.as,o.push({indexName:t.indexName,query:n,params:e})-1).then((function(t){t&&s(t.hits,t)})).catch((function(t){i.error(t.message)}))}});t.exports=function(t,e){var n=r(t.as._ua);if(n&&n[0]>=3&&n[1]>20){var i="autocomplete.js "+s;-1===t.as._ua.indexOf(i)&&(t.as._ua+="; "+i)}return u(t,e)}},8840:(t,e,n)=>{"use strict";t.exports={hits:n(9983),popularIn:n(4445)}},4445:(t,e,n)=>{"use strict";var i=n(2856),s=n(533),r=n(6177);t.exports=function(t,e,n,o){var a=r(t.as._ua);if(a&&a[0]>=3&&a[1]>20&&((e=e||{}).additionalUA="autocomplete.js "+s),!n.source)return i.error("Missing 'source' key");var u=i.isFunction(n.source)?n.source:function(t){return t[n.source]};if(!n.index)return i.error("Missing 'index' key");var c=n.index;return o=o||{},function(a,l){t.search(a,e,(function(t,a){if(t)i.error(t.message);else{if(a.hits.length>0){var h=a.hits[0],p=i.mixin({hitsPerPage:0},n);delete p.source,delete p.index;var f=r(c.as._ua);return f&&f[0]>=3&&f[1]>20&&(e.additionalUA="autocomplete.js "+s),void c.search(u(h),p,(function(t,e){if(t)i.error(t.message);else{var n=[];if(o.includeAll){var s=o.allTitle||"All departments";n.push(i.mixin({facet:{value:s,count:e.nbHits}},i.cloneDeep(h)))}i.each(e.facets,(function(t,e){i.each(t,(function(t,s){n.push(i.mixin({facet:{facet:e,value:s,count:t}},i.cloneDeep(h)))}))}));for(var r=1;r{"use strict";var i=n(6990);n(4910).element=i;var s=n(2856);s.isArray=i.isArray,s.isFunction=i.isFunction,s.isObject=i.isPlainObject,s.bind=i.proxy,s.each=function(t,e){i.each(t,(function(t,n){return e(n,t)}))},s.map=i.map,s.mixin=i.extend,s.Event=i.Event;var r="aaAutocomplete",o=n(6549),a=n(50);function u(t,e,n,u){n=s.isArray(n)?n:[].slice.call(arguments,2);var c=i(t).each((function(t,s){var c=i(s),l=new a({el:c}),h=u||new o({input:c,eventBus:l,dropdownMenuContainer:e.dropdownMenuContainer,hint:void 0===e.hint||!!e.hint,minLength:e.minLength,autoselect:e.autoselect,autoselectOnBlur:e.autoselectOnBlur,tabAutocomplete:e.tabAutocomplete,openOnFocus:e.openOnFocus,templates:e.templates,debug:e.debug,clearOnSelected:e.clearOnSelected,cssClasses:e.cssClasses,datasets:n,keyboardShortcuts:e.keyboardShortcuts,appendTo:e.appendTo,autoWidth:e.autoWidth,ariaLabel:e.ariaLabel||s.getAttribute("aria-label")});c.data(r,h)}));return c.autocomplete={},s.each(["open","close","getVal","setVal","destroy","getWrapper"],(function(t){c.autocomplete[t]=function(){var e,n=arguments;return c.each((function(s,o){var a=i(o).data(r);e=a[t].apply(a,n)})),e}})),c}u.sources=o.sources,u.escapeHighlightedString=s.escapeHighlightedString;var c="autocomplete"in window,l=window.autocomplete;u.noConflict=function(){return c?window.autocomplete=l:delete window.autocomplete,u},t.exports=u},533:t=>{t.exports="0.38.1"},6990:t=>{var e;e=window,t.exports=function(t){var e,n,i=function(){var e,n,i,s,r,o,a=[],u=a.concat,c=a.filter,l=a.slice,h=t.document,p={},f={},d={"column-count":1,columns:1,"font-weight":1,"line-height":1,opacity:1,"z-index":1,zoom:1},g=/^\s*<(\w+|!)[^>]*>/,m=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,v=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,y=/^(?:body|html)$/i,w=/([A-Z])/g,b=["val","css","html","text","data","width","height","offset"],C=["after","prepend","before","append"],x=h.createElement("table"),_=h.createElement("tr"),S={tr:h.createElement("tbody"),tbody:x,thead:x,tfoot:x,td:_,th:_,"*":h.createElement("div")},E=/complete|loaded|interactive/,A=/^[\w-]*$/,$={},T=$.toString,O={},D=h.createElement("div"),N={tabindex:"tabIndex",readonly:"readOnly",for:"htmlFor",class:"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},k=Array.isArray||function(t){return t instanceof Array};function I(t){return null==t?String(t):$[T.call(t)]||"object"}function P(t){return"function"==I(t)}function L(t){return null!=t&&t==t.window}function M(t){return null!=t&&t.nodeType==t.DOCUMENT_NODE}function F(t){return"object"==I(t)}function R(t){return F(t)&&!L(t)&&Object.getPrototypeOf(t)==Object.prototype}function q(t){var e=!!t&&"length"in t&&t.length,n=i.type(t);return"function"!=n&&!L(t)&&("array"==n||0===e||"number"==typeof e&&e>0&&e-1 in t)}function V(t){return c.call(t,(function(t){return null!=t}))}function H(t){return t.length>0?i.fn.concat.apply([],t):t}function B(t){return t.replace(/::/g,"/").replace(/([A-Z]+)([A-Z][a-z])/g,"$1_$2").replace(/([a-z\d])([A-Z])/g,"$1_$2").replace(/_/g,"-").toLowerCase()}function K(t){return t in f?f[t]:f[t]=new RegExp("(^|\\s)"+t+"(\\s|$)")}function j(t,e){return"number"!=typeof e||d[B(t)]?e:e+"px"}function z(t){var e,n;return p[t]||(e=h.createElement(t),h.body.appendChild(e),n=getComputedStyle(e,"").getPropertyValue("display"),e.parentNode.removeChild(e),"none"==n&&(n="block"),p[t]=n),p[t]}function U(t){return"children"in t?l.call(t.children):i.map(t.childNodes,(function(t){if(1==t.nodeType)return t}))}function Q(t,e){var n,i=t?t.length:0;for(n=0;n")),n===e&&(n=g.test(t)&&RegExp.$1),n in S||(n="*"),(a=S[n]).innerHTML=""+t,r=i.each(l.call(a.childNodes),(function(){a.removeChild(this)}))),R(s)&&(o=i(r),i.each(s,(function(t,e){b.indexOf(t)>-1?o[t](e):o.attr(t,e)}))),r},O.Z=function(t,e){return new Q(t,e)},O.isZ=function(t){return t instanceof O.Z},O.init=function(t,n){var s;if(!t)return O.Z();if("string"==typeof t)if("<"==(t=t.trim())[0]&&g.test(t))s=O.fragment(t,RegExp.$1,n),t=null;else{if(n!==e)return i(n).find(t);s=O.qsa(h,t)}else{if(P(t))return i(h).ready(t);if(O.isZ(t))return t;if(k(t))s=V(t);else if(F(t))s=[t],t=null;else if(g.test(t))s=O.fragment(t.trim(),RegExp.$1,n),t=null;else{if(n!==e)return i(n).find(t);s=O.qsa(h,t)}}return O.Z(s,t)},(i=function(t,e){return O.init(t,e)}).extend=function(t){var e,n=l.call(arguments,1);return"boolean"==typeof t&&(e=t,t=n.shift()),n.forEach((function(n){W(t,n,e)})),t},O.qsa=function(t,e){var n,i="#"==e[0],s=!i&&"."==e[0],r=i||s?e.slice(1):e,o=A.test(r);return t.getElementById&&o&&i?(n=t.getElementById(r))?[n]:[]:1!==t.nodeType&&9!==t.nodeType&&11!==t.nodeType?[]:l.call(o&&!i&&t.getElementsByClassName?s?t.getElementsByClassName(r):t.getElementsByTagName(e):t.querySelectorAll(e))},i.contains=h.documentElement.contains?function(t,e){return t!==e&&t.contains(e)}:function(t,e){for(;e&&(e=e.parentNode);)if(e===t)return!0;return!1},i.type=I,i.isFunction=P,i.isWindow=L,i.isArray=k,i.isPlainObject=R,i.isEmptyObject=function(t){var e;for(e in t)return!1;return!0},i.isNumeric=function(t){var e=Number(t),n=typeof t;return null!=t&&"boolean"!=n&&("string"!=n||t.length)&&!isNaN(e)&&isFinite(e)||!1},i.inArray=function(t,e,n){return a.indexOf.call(e,t,n)},i.camelCase=r,i.trim=function(t){return null==t?"":String.prototype.trim.call(t)},i.uuid=0,i.support={},i.expr={},i.noop=function(){},i.map=function(t,e){var n,i,s,r=[];if(q(t))for(i=0;i=0?t:t+this.length]},toArray:function(){return this.get()},size:function(){return this.length},remove:function(){return this.each((function(){null!=this.parentNode&&this.parentNode.removeChild(this)}))},each:function(t){return a.every.call(this,(function(e,n){return!1!==t.call(e,n,e)})),this},filter:function(t){return P(t)?this.not(this.not(t)):i(c.call(this,(function(e){return O.matches(e,t)})))},add:function(t,e){return i(o(this.concat(i(t,e))))},is:function(t){return this.length>0&&O.matches(this[0],t)},not:function(t){var n=[];if(P(t)&&t.call!==e)this.each((function(e){t.call(this,e)||n.push(this)}));else{var s="string"==typeof t?this.filter(t):q(t)&&P(t.item)?l.call(t):i(t);this.forEach((function(t){s.indexOf(t)<0&&n.push(t)}))}return i(n)},has:function(t){return this.filter((function(){return F(t)?i.contains(this,t):i(this).find(t).size()}))},eq:function(t){return-1===t?this.slice(t):this.slice(t,+t+1)},first:function(){var t=this[0];return t&&!F(t)?t:i(t)},last:function(){var t=this[this.length-1];return t&&!F(t)?t:i(t)},find:function(t){var e=this;return t?"object"==typeof t?i(t).filter((function(){var t=this;return a.some.call(e,(function(e){return i.contains(e,t)}))})):1==this.length?i(O.qsa(this[0],t)):this.map((function(){return O.qsa(this,t)})):i()},closest:function(t,e){var n=[],s="object"==typeof t&&i(t);return this.each((function(i,r){for(;r&&!(s?s.indexOf(r)>=0:O.matches(r,t));)r=r!==e&&!M(r)&&r.parentNode;r&&n.indexOf(r)<0&&n.push(r)})),i(n)},parents:function(t){for(var e=[],n=this;n.length>0;)n=i.map(n,(function(t){if((t=t.parentNode)&&!M(t)&&e.indexOf(t)<0)return e.push(t),t}));return Z(e,t)},parent:function(t){return Z(o(this.pluck("parentNode")),t)},children:function(t){return Z(this.map((function(){return U(this)})),t)},contents:function(){return this.map((function(){return this.contentDocument||l.call(this.childNodes)}))},siblings:function(t){return Z(this.map((function(t,e){return c.call(U(e.parentNode),(function(t){return t!==e}))})),t)},empty:function(){return this.each((function(){this.innerHTML=""}))},pluck:function(t){return i.map(this,(function(e){return e[t]}))},show:function(){return this.each((function(){"none"==this.style.display&&(this.style.display=""),"none"==getComputedStyle(this,"").getPropertyValue("display")&&(this.style.display=z(this.nodeName))}))},replaceWith:function(t){return this.before(t).remove()},wrap:function(t){var e=P(t);if(this[0]&&!e)var n=i(t).get(0),s=n.parentNode||this.length>1;return this.each((function(r){i(this).wrapAll(e?t.call(this,r):s?n.cloneNode(!0):n)}))},wrapAll:function(t){if(this[0]){var e;for(i(this[0]).before(t=i(t));(e=t.children()).length;)t=e.first();i(t).append(this)}return this},wrapInner:function(t){var e=P(t);return this.each((function(n){var s=i(this),r=s.contents(),o=e?t.call(this,n):t;r.length?r.wrapAll(o):s.append(o)}))},unwrap:function(){return this.parent().each((function(){i(this).replaceWith(i(this).children())})),this},clone:function(){return this.map((function(){return this.cloneNode(!0)}))},hide:function(){return this.css("display","none")},toggle:function(t){return this.each((function(){var n=i(this);(t===e?"none"==n.css("display"):t)?n.show():n.hide()}))},prev:function(t){return i(this.pluck("previousElementSibling")).filter(t||"*")},next:function(t){return i(this.pluck("nextElementSibling")).filter(t||"*")},html:function(t){return 0 in arguments?this.each((function(e){var n=this.innerHTML;i(this).empty().append(X(this,t,e,n))})):0 in this?this[0].innerHTML:null},text:function(t){return 0 in arguments?this.each((function(e){var n=X(this,t,e,this.textContent);this.textContent=null==n?"":""+n})):0 in this?this.pluck("textContent").join(""):null},attr:function(t,i){var s;return"string"!=typeof t||1 in arguments?this.each((function(e){if(1===this.nodeType)if(F(t))for(n in t)G(this,n,t[n]);else G(this,t,X(this,i,e,this.getAttribute(t)))})):0 in this&&1==this[0].nodeType&&null!=(s=this[0].getAttribute(t))?s:e},removeAttr:function(t){return this.each((function(){1===this.nodeType&&t.split(" ").forEach((function(t){G(this,t)}),this)}))},prop:function(t,e){return t=N[t]||t,1 in arguments?this.each((function(n){this[t]=X(this,e,n,this[t])})):this[0]&&this[0][t]},removeProp:function(t){return t=N[t]||t,this.each((function(){delete this[t]}))},data:function(t,n){var i="data-"+t.replace(w,"-$1").toLowerCase(),s=1 in arguments?this.attr(i,n):this.attr(i);return null!==s?Y(s):e},val:function(t){return 0 in arguments?(null==t&&(t=""),this.each((function(e){this.value=X(this,t,e,this.value)}))):this[0]&&(this[0].multiple?i(this[0]).find("option").filter((function(){return this.selected})).pluck("value"):this[0].value)},offset:function(e){if(e)return this.each((function(t){var n=i(this),s=X(this,e,t,n.offset()),r=n.offsetParent().offset(),o={top:s.top-r.top,left:s.left-r.left};"static"==n.css("position")&&(o.position="relative"),n.css(o)}));if(!this.length)return null;if(h.documentElement!==this[0]&&!i.contains(h.documentElement,this[0]))return{top:0,left:0};var n=this[0].getBoundingClientRect();return{left:n.left+t.pageXOffset,top:n.top+t.pageYOffset,width:Math.round(n.width),height:Math.round(n.height)}},css:function(t,e){if(arguments.length<2){var s=this[0];if("string"==typeof t){if(!s)return;return s.style[r(t)]||getComputedStyle(s,"").getPropertyValue(t)}if(k(t)){if(!s)return;var o={},a=getComputedStyle(s,"");return i.each(t,(function(t,e){o[e]=s.style[r(e)]||a.getPropertyValue(e)})),o}}var u="";if("string"==I(t))e||0===e?u=B(t)+":"+j(t,e):this.each((function(){this.style.removeProperty(B(t))}));else for(n in t)t[n]||0===t[n]?u+=B(n)+":"+j(n,t[n])+";":this.each((function(){this.style.removeProperty(B(n))}));return this.each((function(){this.style.cssText+=";"+u}))},index:function(t){return t?this.indexOf(i(t)[0]):this.parent().children().indexOf(this[0])},hasClass:function(t){return!!t&&a.some.call(this,(function(t){return this.test(J(t))}),K(t))},addClass:function(t){return t?this.each((function(e){if("className"in this){s=[];var n=J(this);X(this,t,e,n).split(/\s+/g).forEach((function(t){i(this).hasClass(t)||s.push(t)}),this),s.length&&J(this,n+(n?" ":"")+s.join(" "))}})):this},removeClass:function(t){return this.each((function(n){if("className"in this){if(t===e)return J(this,"");s=J(this),X(this,t,n,s).split(/\s+/g).forEach((function(t){s=s.replace(K(t)," ")})),J(this,s.trim())}}))},toggleClass:function(t,n){return t?this.each((function(s){var r=i(this);X(this,t,s,J(this)).split(/\s+/g).forEach((function(t){(n===e?!r.hasClass(t):n)?r.addClass(t):r.removeClass(t)}))})):this},scrollTop:function(t){if(this.length){var n="scrollTop"in this[0];return t===e?n?this[0].scrollTop:this[0].pageYOffset:this.each(n?function(){this.scrollTop=t}:function(){this.scrollTo(this.scrollX,t)})}},scrollLeft:function(t){if(this.length){var n="scrollLeft"in this[0];return t===e?n?this[0].scrollLeft:this[0].pageXOffset:this.each(n?function(){this.scrollLeft=t}:function(){this.scrollTo(t,this.scrollY)})}},position:function(){if(this.length){var t=this[0],e=this.offsetParent(),n=this.offset(),s=y.test(e[0].nodeName)?{top:0,left:0}:e.offset();return n.top-=parseFloat(i(t).css("margin-top"))||0,n.left-=parseFloat(i(t).css("margin-left"))||0,s.top+=parseFloat(i(e[0]).css("border-top-width"))||0,s.left+=parseFloat(i(e[0]).css("border-left-width"))||0,{top:n.top-s.top,left:n.left-s.left}}},offsetParent:function(){return this.map((function(){for(var t=this.offsetParent||h.body;t&&!y.test(t.nodeName)&&"static"==i(t).css("position");)t=t.offsetParent;return t}))}},i.fn.detach=i.fn.remove,["width","height"].forEach((function(t){var n=t.replace(/./,(function(t){return t[0].toUpperCase()}));i.fn[t]=function(s){var r,o=this[0];return s===e?L(o)?o["inner"+n]:M(o)?o.documentElement["scroll"+n]:(r=this.offset())&&r[t]:this.each((function(e){(o=i(this)).css(t,X(this,s,e,o[t]()))}))}})),C.forEach((function(n,s){var r=s%2;i.fn[n]=function(){var n,o,a=i.map(arguments,(function(t){var s=[];return"array"==(n=I(t))?(t.forEach((function(t){return t.nodeType!==e?s.push(t):i.zepto.isZ(t)?s=s.concat(t.get()):void(s=s.concat(O.fragment(t)))})),s):"object"==n||null==t?t:O.fragment(t)})),u=this.length>1;return a.length<1?this:this.each((function(e,n){o=r?n:n.parentNode,n=0==s?n.nextSibling:1==s?n.firstChild:2==s?n:null;var c=i.contains(h.documentElement,o);a.forEach((function(e){if(u)e=e.cloneNode(!0);else if(!o)return i(e).remove();o.insertBefore(e,n),c&&tt(e,(function(e){if(!(null==e.nodeName||"SCRIPT"!==e.nodeName.toUpperCase()||e.type&&"text/javascript"!==e.type||e.src)){var n=e.ownerDocument?e.ownerDocument.defaultView:t;n.eval.call(n,e.innerHTML)}}))}))}))},i.fn[r?n+"To":"insert"+(s?"Before":"After")]=function(t){return i(t)[n](this),this}})),O.Z.prototype=Q.prototype=i.fn,O.uniq=o,O.deserializeValue=Y,i.zepto=O,i}();return function(e){var n,i=1,s=Array.prototype.slice,r=e.isFunction,o=function(t){return"string"==typeof t},a={},u={},c="onfocusin"in t,l={focus:"focusin",blur:"focusout"},h={mouseenter:"mouseover",mouseleave:"mouseout"};function p(t){return t._zid||(t._zid=i++)}function f(t,e,n,i){if((e=d(e)).ns)var s=g(e.ns);return(a[p(t)]||[]).filter((function(t){return t&&(!e.e||t.e==e.e)&&(!e.ns||s.test(t.ns))&&(!n||p(t.fn)===p(n))&&(!i||t.sel==i)}))}function d(t){var e=(""+t).split(".");return{e:e[0],ns:e.slice(1).sort().join(" ")}}function g(t){return new RegExp("(?:^| )"+t.replace(" "," .* ?")+"(?: |$)")}function m(t,e){return t.del&&!c&&t.e in l||!!e}function v(t){return h[t]||c&&l[t]||t}function y(t,i,s,r,o,u,c){var l=p(t),f=a[l]||(a[l]=[]);i.split(/\s/).forEach((function(i){if("ready"==i)return e(document).ready(s);var a=d(i);a.fn=s,a.sel=o,a.e in h&&(s=function(t){var n=t.relatedTarget;if(!n||n!==this&&!e.contains(this,n))return a.fn.apply(this,arguments)}),a.del=u;var l=u||s;a.proxy=function(e){if(!(e=S(e)).isImmediatePropagationStopped()){try{var i=Object.getOwnPropertyDescriptor(e,"data");i&&!i.writable||(e.data=r)}catch(e){}var s=l.apply(t,e._args==n?[e]:[e].concat(e._args));return!1===s&&(e.preventDefault(),e.stopPropagation()),s}},a.i=f.length,f.push(a),"addEventListener"in t&&t.addEventListener(v(a.e),a.proxy,m(a,c))}))}function w(t,e,n,i,s){var r=p(t);(e||"").split(/\s/).forEach((function(e){f(t,e,n,i).forEach((function(e){delete a[r][e.i],"removeEventListener"in t&&t.removeEventListener(v(e.e),e.proxy,m(e,s))}))}))}u.click=u.mousedown=u.mouseup=u.mousemove="MouseEvents",e.event={add:y,remove:w},e.proxy=function(t,n){var i=2 in arguments&&s.call(arguments,2);if(r(t)){var a=function(){return t.apply(n,i?i.concat(s.call(arguments)):arguments)};return a._zid=p(t),a}if(o(n))return i?(i.unshift(t[n],t),e.proxy.apply(null,i)):e.proxy(t[n],t);throw new TypeError("expected function")},e.fn.bind=function(t,e,n){return this.on(t,e,n)},e.fn.unbind=function(t,e){return this.off(t,e)},e.fn.one=function(t,e,n,i){return this.on(t,e,n,i,1)};var b=function(){return!0},C=function(){return!1},x=/^([A-Z]|returnValue$|layer[XY]$|webkitMovement[XY]$)/,_={preventDefault:"isDefaultPrevented",stopImmediatePropagation:"isImmediatePropagationStopped",stopPropagation:"isPropagationStopped"};function S(t,i){if(i||!t.isDefaultPrevented){i||(i=t),e.each(_,(function(e,n){var s=i[e];t[e]=function(){return this[n]=b,s&&s.apply(i,arguments)},t[n]=C}));try{t.timeStamp||(t.timeStamp=Date.now())}catch(s){}(i.defaultPrevented!==n?i.defaultPrevented:"returnValue"in i?!1===i.returnValue:i.getPreventDefault&&i.getPreventDefault())&&(t.isDefaultPrevented=b)}return t}function E(t){var e,i={originalEvent:t};for(e in t)x.test(e)||t[e]===n||(i[e]=t[e]);return S(i,t)}e.fn.delegate=function(t,e,n){return this.on(e,t,n)},e.fn.undelegate=function(t,e,n){return this.off(e,t,n)},e.fn.live=function(t,n){return e(document.body).delegate(this.selector,t,n),this},e.fn.die=function(t,n){return e(document.body).undelegate(this.selector,t,n),this},e.fn.on=function(t,i,a,u,c){var l,h,p=this;return t&&!o(t)?(e.each(t,(function(t,e){p.on(t,i,a,e,c)})),p):(o(i)||r(u)||!1===u||(u=a,a=i,i=n),u!==n&&!1!==a||(u=a,a=n),!1===u&&(u=C),p.each((function(n,r){c&&(l=function(t){return w(r,t.type,u),u.apply(this,arguments)}),i&&(h=function(t){var n,o=e(t.target).closest(i,r).get(0);if(o&&o!==r)return n=e.extend(E(t),{currentTarget:o,liveFired:r}),(l||u).apply(o,[n].concat(s.call(arguments,1)))}),y(r,t,u,a,i,h||l)})))},e.fn.off=function(t,i,s){var a=this;return t&&!o(t)?(e.each(t,(function(t,e){a.off(t,i,e)})),a):(o(i)||r(s)||!1===s||(s=i,i=n),!1===s&&(s=C),a.each((function(){w(this,t,s,i)})))},e.fn.trigger=function(t,n){return(t=o(t)||e.isPlainObject(t)?e.Event(t):S(t))._args=n,this.each((function(){t.type in l&&"function"==typeof this[t.type]?this[t.type]():"dispatchEvent"in this?this.dispatchEvent(t):e(this).triggerHandler(t,n)}))},e.fn.triggerHandler=function(t,n){var i,s;return this.each((function(r,a){(i=E(o(t)?e.Event(t):t))._args=n,i.target=a,e.each(f(a,t.type||t),(function(t,e){if(s=e.proxy(i),i.isImmediatePropagationStopped())return!1}))})),s},"focusin focusout focus blur load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select keydown keypress keyup error".split(" ").forEach((function(t){e.fn[t]=function(e){return 0 in arguments?this.bind(t,e):this.trigger(t)}})),e.Event=function(t,e){o(t)||(t=(e=t).type);var n=document.createEvent(u[t]||"Events"),i=!0;if(e)for(var s in e)"bubbles"==s?i=!!e[s]:n[s]=e[s];return n.initEvent(t,i,!0),S(n)}}(i),n=[],i.fn.remove=function(){return this.each((function(){this.parentNode&&("IMG"===this.tagName&&(n.push(this),this.src="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=",e&&clearTimeout(e),e=setTimeout((function(){n=[]}),6e4)),this.parentNode.removeChild(this))}))},function(t){var e={},n=t.fn.data,i=t.camelCase,s=t.expando="Zepto"+ +new Date,r=[];function o(r,o){var u=r[s],c=u&&e[u];if(void 0===o)return c||a(r);if(c){if(o in c)return c[o];var l=i(o);if(l in c)return c[l]}return n.call(t(r),o)}function a(n,r,o){var a=n[s]||(n[s]=++t.uuid),c=e[a]||(e[a]=u(n));return void 0!==r&&(c[i(r)]=o),c}function u(e){var n={};return t.each(e.attributes||r,(function(e,s){0==s.name.indexOf("data-")&&(n[i(s.name.replace("data-",""))]=t.zepto.deserializeValue(s.value))})),n}t.fn.data=function(e,n){return void 0===n?t.isPlainObject(e)?this.each((function(n,i){t.each(e,(function(t,e){a(i,t,e)}))})):0 in this?o(this[0],e):void 0:this.each((function(){a(this,e,n)}))},t.data=function(e,n,i){return t(e).data(n,i)},t.hasData=function(n){var i=n[s],r=i&&e[i];return!!r&&!t.isEmptyObject(r)},t.fn.removeData=function(n){return"string"==typeof n&&(n=n.split(/\s+/)),this.each((function(){var r=this[s],o=r&&e[r];o&&t.each(n||o,(function(t){delete o[n?i(this):t]}))}))},["remove","empty"].forEach((function(e){var n=t.fn[e];t.fn[e]=function(){var t=this.find("*");return"remove"===e&&(t=t.add(this)),t.removeData(),n.call(this)}}))}(i),i}(e)},8820:t=>{"use strict";var e={}.hasOwnProperty,n=/[ -,\.\/:-@\[-\^`\{-~]/,i=/[ -,\.\/:-@\[\]\^`\{-~]/,s=/(^|\\+)?(\\[A-F0-9]{1,6})\x20(?![a-fA-F0-9\x20])/g,r=function t(r,o){"single"!=(o=function(t,n){if(!t)return n;var i={};for(var s in n)i[s]=e.call(t,s)?t[s]:n[s];return i}(o,t.options)).quotes&&"double"!=o.quotes&&(o.quotes="single");for(var a="double"==o.quotes?'"':"'",u=o.isIdentifier,c=r.charAt(0),l="",h=0,p=r.length;h126){if(d>=55296&&d<=56319&&h{"use strict";var i,s,r,o=[n(5525),n(4785),n(8291),n(2709),n(2506),n(9176)],a=-1,u=[],c=!1;function l(){i&&s&&(i=!1,s.length?u=s.concat(u):a=-1,u.length&&h())}function h(){if(!i){c=!1,i=!0;for(var t=u.length,e=setTimeout(l);t;){for(s=u,u=[];s&&++a1)for(var n=1;n{"use strict";e.test=function(){return!n.g.setImmediate&&void 0!==n.g.MessageChannel},e.install=function(t){var e=new n.g.MessageChannel;return e.port1.onmessage=t,function(){e.port2.postMessage(0)}}},8291:(t,e,n)=>{"use strict";var i=n.g.MutationObserver||n.g.WebKitMutationObserver;e.test=function(){return i},e.install=function(t){var e=0,s=new i(t),r=n.g.document.createTextNode("");return s.observe(r,{characterData:!0}),function(){r.data=e=++e%2}}},4785:(t,e,n)=>{"use strict";e.test=function(){return"function"==typeof n.g.queueMicrotask},e.install=function(t){return function(){n.g.queueMicrotask(t)}}},2506:(t,e,n)=>{"use strict";e.test=function(){return"document"in n.g&&"onreadystatechange"in n.g.document.createElement("script")},e.install=function(t){return function(){var e=n.g.document.createElement("script");return e.onreadystatechange=function(){t(),e.onreadystatechange=null,e.parentNode.removeChild(e),e=null},n.g.document.documentElement.appendChild(e),t}}},9176:(t,e)=>{"use strict";e.test=function(){return!0},e.install=function(t){return function(){setTimeout(t,0)}}}}]); \ No newline at end of file diff --git a/en/assets/js/8443.ac831155.js.LICENSE.txt b/en/assets/js/8443.ac831155.js.LICENSE.txt new file mode 100644 index 000000000..4f7ccd8a7 --- /dev/null +++ b/en/assets/js/8443.ac831155.js.LICENSE.txt @@ -0,0 +1 @@ +/*! https://mths.be/cssesc v3.0.0 by @mathias */ diff --git a/en/assets/js/8605.012e1e77.js b/en/assets/js/8605.012e1e77.js new file mode 100644 index 000000000..d2800a00b --- /dev/null +++ b/en/assets/js/8605.012e1e77.js @@ -0,0 +1 @@ +(self.webpackChunknpy_notebook=self.webpackChunknpy_notebook||[]).push([[8605],{3905:(e,t,n)=>{"use strict";n.d(t,{Zo:()=>u,kt:()=>f});var o=n(7294);function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function c(e){for(var t=1;t=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var i=o.createContext({}),s=function(e){var t=o.useContext(i),n=t;return e&&(n="function"==typeof e?e(t):c(c({},t),e)),n},u=function(e){var t=s(e.components);return o.createElement(i.Provider,{value:t},e.children)},m="mdxType",d={inlineCode:"code",wrapper:function(e){var t=e.children;return o.createElement(o.Fragment,{},t)}},p=o.forwardRef((function(e,t){var n=e.components,r=e.mdxType,a=e.originalType,i=e.parentName,u=l(e,["components","mdxType","originalType","parentName"]),m=s(n),p=r,f=m["".concat(i,".").concat(p)]||m[p]||d[p]||a;return n?o.createElement(f,c(c({ref:t},u),{},{components:n})):o.createElement(f,c({ref:t},u))}));function f(e,t){var n=arguments,r=t&&t.mdxType;if("string"==typeof e||r){var a=n.length,c=new Array(a);c[0]=p;var l={};for(var i in t)hasOwnProperty.call(t,i)&&(l[i]=t[i]);l.originalType=e,l[m]="string"==typeof e?e:r,c[1]=l;for(var s=2;s{"use strict";n.d(t,{Z:()=>u});var o=n(7462),r=n(7294),a=n(6010),c=n(5999),l=n(6668),i=n(9960);const s={anchorWithStickyNavbar:"anchorWithStickyNavbar_LWe7",anchorWithHideOnScrollNavbar:"anchorWithHideOnScrollNavbar_WYt5"};function u(e){let{as:t,id:n,...u}=e;const{navbar:{hideOnScroll:m}}=(0,l.L)();if("h1"===t||!n)return r.createElement(t,(0,o.Z)({},u,{id:void 0}));const d=(0,c.I)({id:"theme.common.headingLinkTitle",message:"Direct link to {heading}",description:"Title for link to heading"},{heading:"string"==typeof u.children?u.children:n});return r.createElement(t,(0,o.Z)({},u,{className:(0,a.Z)("anchor",m?s.anchorWithHideOnScrollNavbar:s.anchorWithStickyNavbar,u.className),id:n}),u.children,r.createElement(i.Z,{className:"hash-link",to:`#${n}`,"aria-label":d,title:d},"\u200b"))}},864:(e,t,n)=>{"use strict";n.d(t,{Z:()=>ye});var o=n(7294),r=n(3905),a=n(7462),c=n(5742);var l=n(2389),i=n(6010),s=n(2949),u=n(6668);function m(){const{prism:e}=(0,u.L)(),{colorMode:t}=(0,s.I)(),n=e.theme,o=e.darkTheme||n;return"dark"===t?o:n}var d=n(5281),p=n(7594),f=n.n(p);const h=/title=(?["'])(?.*?)\1/,g=/\{(?<range>[\d,-]+)\}/,y={js:{start:"\\/\\/",end:""},jsBlock:{start:"\\/\\*",end:"\\*\\/"},jsx:{start:"\\{\\s*\\/\\*",end:"\\*\\/\\s*\\}"},bash:{start:"#",end:""},html:{start:"\x3c!--",end:"--\x3e"}};function v(e,t){const n=e.map((e=>{const{start:n,end:o}=y[e];return`(?:${n}\\s*(${t.flatMap((e=>[e.line,e.block?.start,e.block?.end].filter(Boolean))).join("|")})\\s*${o})`})).join("|");return new RegExp(`^\\s*(?:${n})\\s*$`)}function b(e,t){let n=e.replace(/\n$/,"");const{language:o,magicComments:r,metastring:a}=t;if(a&&g.test(a)){const e=a.match(g).groups.range;if(0===r.length)throw new Error(`A highlight range has been given in code block's metastring (\`\`\` ${a}), but no magic comment config is available. Docusaurus applies the first magic comment entry's className for metastring ranges.`);const t=r[0].className,o=f()(e).filter((e=>e>0)).map((e=>[e-1,[t]]));return{lineClassNames:Object.fromEntries(o),code:n}}if(void 0===o)return{lineClassNames:{},code:n};const c=function(e,t){switch(e){case"js":case"javascript":case"ts":case"typescript":return v(["js","jsBlock"],t);case"jsx":case"tsx":return v(["js","jsBlock","jsx"],t);case"html":return v(["js","jsBlock","html"],t);case"python":case"py":case"bash":return v(["bash"],t);case"markdown":case"md":return v(["html","jsx","bash"],t);default:return v(Object.keys(y),t)}}(o,r),l=n.split("\n"),i=Object.fromEntries(r.map((e=>[e.className,{start:0,range:""}]))),s=Object.fromEntries(r.filter((e=>e.line)).map((e=>{let{className:t,line:n}=e;return[n,t]}))),u=Object.fromEntries(r.filter((e=>e.block)).map((e=>{let{className:t,block:n}=e;return[n.start,t]}))),m=Object.fromEntries(r.filter((e=>e.block)).map((e=>{let{className:t,block:n}=e;return[n.end,t]})));for(let p=0;p<l.length;){const e=l[p].match(c);if(!e){p+=1;continue}const t=e.slice(1).find((e=>void 0!==e));s[t]?i[s[t]].range+=`${p},`:u[t]?i[u[t]].start=p:m[t]&&(i[m[t]].range+=`${i[m[t]].start}-${p-1},`),l.splice(p,1)}n=l.join("\n");const d={};return Object.entries(i).forEach((e=>{let[t,{range:n}]=e;f()(n).forEach((e=>{d[e]??=[],d[e].push(t)}))})),{lineClassNames:d,code:n}}const E={codeBlockContainer:"codeBlockContainer_Ckt0"};function k(e){let{as:t,...n}=e;const r=function(e){const t={color:"--prism-color",backgroundColor:"--prism-background-color"},n={};return Object.entries(e.plain).forEach((e=>{let[o,r]=e;const a=t[o];a&&"string"==typeof r&&(n[a]=r)})),n}(m());return o.createElement(t,(0,a.Z)({},n,{style:r,className:(0,i.Z)(n.className,E.codeBlockContainer,d.k.common.codeBlock)}))}const N={codeBlockContent:"codeBlockContent_biex",codeBlockTitle:"codeBlockTitle_Ktv7",codeBlock:"codeBlock_bY9V",codeBlockStandalone:"codeBlockStandalone_MEMb",codeBlockLines:"codeBlockLines_e6Vv",codeBlockLinesWithNumbering:"codeBlockLinesWithNumbering_o6Pm",buttonGroup:"buttonGroup__atx"};function C(e){let{children:t,className:n}=e;return o.createElement(k,{as:"pre",tabIndex:0,className:(0,i.Z)(N.codeBlockStandalone,"thin-scrollbar",n)},o.createElement("code",{className:N.codeBlockLines},t))}var L=n(902);const w={attributes:!0,characterData:!0,childList:!0,subtree:!0};function B(e,t){const[n,r]=(0,o.useState)(),a=(0,o.useCallback)((()=>{r(e.current?.closest("[role=tabpanel][hidden]"))}),[e,r]);(0,o.useEffect)((()=>{a()}),[a]),function(e,t,n){void 0===n&&(n=w);const r=(0,L.zX)(t),a=(0,L.Ql)(n);(0,o.useEffect)((()=>{const t=new MutationObserver(r);return e&&t.observe(e,a),()=>t.disconnect()}),[e,r,a])}(n,(e=>{e.forEach((e=>{"attributes"===e.type&&"hidden"===e.attributeName&&(t(),a())}))}),{attributes:!0,characterData:!1,childList:!1,subtree:!1})}const x={plain:{backgroundColor:"#2a2734",color:"#9a86fd"},styles:[{types:["comment","prolog","doctype","cdata","punctuation"],style:{color:"#6c6783"}},{types:["namespace"],style:{opacity:.7}},{types:["tag","operator","number"],style:{color:"#e09142"}},{types:["property","function"],style:{color:"#9a86fd"}},{types:["tag-id","selector","atrule-id"],style:{color:"#eeebff"}},{types:["attr-name"],style:{color:"#c4b9fe"}},{types:["boolean","string","entity","url","attr-value","keyword","control","directive","unit","statement","regex","atrule","placeholder","variable"],style:{color:"#ffcc99"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"#c4b9fe"}}]};var T={Prism:n(7410).Z,theme:x};function O(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Z(){return Z=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Z.apply(this,arguments)}var j=/\r\n|\r|\n/,_=function(e){0===e.length?e.push({types:["plain"],content:"\n",empty:!0}):1===e.length&&""===e[0].content&&(e[0].content="\n",e[0].empty=!0)},H=function(e,t){var n=e.length;return n>0&&e[n-1]===t?e:e.concat(t)};function S(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&-1===t.indexOf(o)&&(n[o]=e[o]);return n}var A=function(e){function t(){for(var t=this,n=[],o=arguments.length;o--;)n[o]=arguments[o];e.apply(this,n),O(this,"getThemeDict",(function(e){if(void 0!==t.themeDict&&e.theme===t.prevTheme&&e.language===t.prevLanguage)return t.themeDict;t.prevTheme=e.theme,t.prevLanguage=e.language;var n=e.theme?function(e,t){var n=e.plain,o=Object.create(null),r=e.styles.reduce((function(e,n){var o=n.languages,r=n.style;return o&&!o.includes(t)||n.types.forEach((function(t){var n=Z({},e[t],r);e[t]=n})),e}),o);return r.root=n,r.plain=Z({},n,{backgroundColor:null}),r}(e.theme,e.language):void 0;return t.themeDict=n})),O(this,"getLineProps",(function(e){var n=e.key,o=e.className,r=e.style,a=Z({},S(e,["key","className","style","line"]),{className:"token-line",style:void 0,key:void 0}),c=t.getThemeDict(t.props);return void 0!==c&&(a.style=c.plain),void 0!==r&&(a.style=void 0!==a.style?Z({},a.style,r):r),void 0!==n&&(a.key=n),o&&(a.className+=" "+o),a})),O(this,"getStyleForToken",(function(e){var n=e.types,o=e.empty,r=n.length,a=t.getThemeDict(t.props);if(void 0!==a){if(1===r&&"plain"===n[0])return o?{display:"inline-block"}:void 0;if(1===r&&!o)return a[n[0]];var c=o?{display:"inline-block"}:{},l=n.map((function(e){return a[e]}));return Object.assign.apply(Object,[c].concat(l))}})),O(this,"getTokenProps",(function(e){var n=e.key,o=e.className,r=e.style,a=e.token,c=Z({},S(e,["key","className","style","token"]),{className:"token "+a.types.join(" "),children:a.content,style:t.getStyleForToken(a),key:void 0});return void 0!==r&&(c.style=void 0!==c.style?Z({},c.style,r):r),void 0!==n&&(c.key=n),o&&(c.className+=" "+o),c})),O(this,"tokenize",(function(e,t,n,o){var r={code:t,grammar:n,language:o,tokens:[]};e.hooks.run("before-tokenize",r);var a=r.tokens=e.tokenize(r.code,r.grammar,r.language);return e.hooks.run("after-tokenize",r),a}))}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.render=function(){var e=this.props,t=e.Prism,n=e.language,o=e.code,r=e.children,a=this.getThemeDict(this.props),c=t.languages[n];return r({tokens:function(e){for(var t=[[]],n=[e],o=[0],r=[e.length],a=0,c=0,l=[],i=[l];c>-1;){for(;(a=o[c]++)<r[c];){var s=void 0,u=t[c],m=n[c][a];if("string"==typeof m?(u=c>0?u:["plain"],s=m):(u=H(u,m.type),m.alias&&(u=H(u,m.alias)),s=m.content),"string"==typeof s){var d=s.split(j),p=d.length;l.push({types:u,content:d[0]});for(var f=1;f<p;f++)_(l),i.push(l=[]),l.push({types:u,content:d[f]})}else c++,t.push(u),n.push(s),o.push(0),r.push(s.length)}c--,t.pop(),n.pop(),o.pop(),r.pop()}return _(l),i}(void 0!==c?this.tokenize(t,o,c,n):[o]),className:"prism-code language-"+n,style:void 0!==a?a.root:{},getLineProps:this.getLineProps,getTokenProps:this.getTokenProps})},t}(o.Component);const I=A,P={codeLine:"codeLine_lJS_",codeLineNumber:"codeLineNumber_Tfdd",codeLineContent:"codeLineContent_feaV"};function z(e){let{line:t,classNames:n,showLineNumbers:r,getLineProps:c,getTokenProps:l}=e;1===t.length&&"\n"===t[0].content&&(t[0].content="");const s=c({line:t,className:(0,i.Z)(n,r&&P.codeLine)}),u=t.map(((e,t)=>o.createElement("span",(0,a.Z)({key:t},l({token:e,key:t})))));return o.createElement("span",s,r?o.createElement(o.Fragment,null,o.createElement("span",{className:P.codeLineNumber}),o.createElement("span",{className:P.codeLineContent},u)):u,o.createElement("br",null))}var M=n(5999);function D(e){return o.createElement("svg",(0,a.Z)({viewBox:"0 0 24 24"},e),o.createElement("path",{fill:"currentColor",d:"M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z"}))}function W(e){return o.createElement("svg",(0,a.Z)({viewBox:"0 0 24 24"},e),o.createElement("path",{fill:"currentColor",d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"}))}const R={copyButtonCopied:"copyButtonCopied_obH4",copyButtonIcons:"copyButtonIcons_eSgA",copyButtonIcon:"copyButtonIcon_y97N",copyButtonSuccessIcon:"copyButtonSuccessIcon_LjdS"};function V(e){let{code:t,className:n}=e;const[r,a]=(0,o.useState)(!1),c=(0,o.useRef)(void 0),l=(0,o.useCallback)((()=>{!function(e,{target:t=document.body}={}){if("string"!=typeof e)throw new TypeError(`Expected parameter \`text\` to be a \`string\`, got \`${typeof e}\`.`);const n=document.createElement("textarea"),o=document.activeElement;n.value=e,n.setAttribute("readonly",""),n.style.contain="strict",n.style.position="absolute",n.style.left="-9999px",n.style.fontSize="12pt";const r=document.getSelection(),a=r.rangeCount>0&&r.getRangeAt(0);t.append(n),n.select(),n.selectionStart=0,n.selectionEnd=e.length;let c=!1;try{c=document.execCommand("copy")}catch{}n.remove(),a&&(r.removeAllRanges(),r.addRange(a)),o&&o.focus()}(t),a(!0),c.current=window.setTimeout((()=>{a(!1)}),1e3)}),[t]);return(0,o.useEffect)((()=>()=>window.clearTimeout(c.current)),[]),o.createElement("button",{type:"button","aria-label":r?(0,M.I)({id:"theme.CodeBlock.copied",message:"Copied",description:"The copied button label on code blocks"}):(0,M.I)({id:"theme.CodeBlock.copyButtonAriaLabel",message:"Copy code to clipboard",description:"The ARIA label for copy code blocks button"}),title:(0,M.I)({id:"theme.CodeBlock.copy",message:"Copy",description:"The copy button label on code blocks"}),className:(0,i.Z)("clean-btn",n,R.copyButton,r&&R.copyButtonCopied),onClick:l},o.createElement("span",{className:R.copyButtonIcons,"aria-hidden":"true"},o.createElement(D,{className:R.copyButtonIcon}),o.createElement(W,{className:R.copyButtonSuccessIcon})))}function $(e){return o.createElement("svg",(0,a.Z)({viewBox:"0 0 24 24"},e),o.createElement("path",{fill:"currentColor",d:"M4 19h6v-2H4v2zM20 5H4v2h16V5zm-3 6H4v2h13.25c1.1 0 2 .9 2 2s-.9 2-2 2H15v-2l-3 3l3 3v-2h2c2.21 0 4-1.79 4-4s-1.79-4-4-4z"}))}const q={wordWrapButtonIcon:"wordWrapButtonIcon_Bwma",wordWrapButtonEnabled:"wordWrapButtonEnabled_EoeP"};function F(e){let{className:t,onClick:n,isEnabled:r}=e;const a=(0,M.I)({id:"theme.CodeBlock.wordWrapToggle",message:"Toggle word wrap",description:"The title attribute for toggle word wrapping button of code block lines"});return o.createElement("button",{type:"button",onClick:n,className:(0,i.Z)("clean-btn",t,r&&q.wordWrapButtonEnabled),"aria-label":a,title:a},o.createElement($,{className:q.wordWrapButtonIcon,"aria-hidden":"true"}))}function U(e){let{children:t,className:n="",metastring:r,title:c,showLineNumbers:l,language:s}=e;const{prism:{defaultLanguage:d,magicComments:p}}=(0,u.L)(),f=s??function(e){const t=e.split(" ").find((e=>e.startsWith("language-")));return t?.replace(/language-/,"")}(n)??d,g=m(),y=function(){const[e,t]=(0,o.useState)(!1),[n,r]=(0,o.useState)(!1),a=(0,o.useRef)(null),c=(0,o.useCallback)((()=>{const n=a.current.querySelector("code");e?n.removeAttribute("style"):(n.style.whiteSpace="pre-wrap",n.style.overflowWrap="anywhere"),t((e=>!e))}),[a,e]),l=(0,o.useCallback)((()=>{const{scrollWidth:e,clientWidth:t}=a.current,n=e>t||a.current.querySelector("code").hasAttribute("style");r(n)}),[a]);return B(a,l),(0,o.useEffect)((()=>{l()}),[e,l]),(0,o.useEffect)((()=>(window.addEventListener("resize",l,{passive:!0}),()=>{window.removeEventListener("resize",l)})),[l]),{codeBlockRef:a,isEnabled:e,isCodeScrollable:n,toggle:c}}(),v=function(e){return e?.match(h)?.groups.title??""}(r)||c,{lineClassNames:E,code:C}=b(t,{metastring:r,language:f,magicComments:p}),L=l??function(e){return Boolean(e?.includes("showLineNumbers"))}(r);return o.createElement(k,{as:"div",className:(0,i.Z)(n,f&&!n.includes(`language-${f}`)&&`language-${f}`)},v&&o.createElement("div",{className:N.codeBlockTitle},v),o.createElement("div",{className:N.codeBlockContent},o.createElement(I,(0,a.Z)({},T,{theme:g,code:C,language:f??"text"}),(e=>{let{className:t,tokens:n,getLineProps:r,getTokenProps:a}=e;return o.createElement("pre",{tabIndex:0,ref:y.codeBlockRef,className:(0,i.Z)(t,N.codeBlock,"thin-scrollbar")},o.createElement("code",{className:(0,i.Z)(N.codeBlockLines,L&&N.codeBlockLinesWithNumbering)},n.map(((e,t)=>o.createElement(z,{key:t,line:e,getLineProps:r,getTokenProps:a,classNames:E[t],showLineNumbers:L})))))})),o.createElement("div",{className:N.buttonGroup},(y.isEnabled||y.isCodeScrollable)&&o.createElement(F,{className:N.codeButton,onClick:()=>y.toggle(),isEnabled:y.isEnabled}),o.createElement(V,{className:N.codeButton,code:C}))))}function G(e){let{children:t,...n}=e;const r=(0,l.Z)(),c=function(e){return o.Children.toArray(e).some((e=>(0,o.isValidElement)(e)))?e:Array.isArray(e)?e.join(""):e}(t),i="string"==typeof c?U:C;return o.createElement(i,(0,a.Z)({key:String(r)},n),c)}var Y=n(9960);var Q=n(6043);const X={details:"details_lb9f",isBrowser:"isBrowser_bmU9",collapsibleContent:"collapsibleContent_i85q"};function J(e){return!!e&&("SUMMARY"===e.tagName||J(e.parentElement))}function K(e,t){return!!e&&(e===t||K(e.parentElement,t))}function ee(e){let{summary:t,children:n,...r}=e;const c=(0,l.Z)(),s=(0,o.useRef)(null),{collapsed:u,setCollapsed:m}=(0,Q.u)({initialState:!r.open}),[d,p]=(0,o.useState)(r.open),f=o.isValidElement(t)?t:o.createElement("summary",null,t??"Details");return o.createElement("details",(0,a.Z)({},r,{ref:s,open:d,"data-collapsed":u,className:(0,i.Z)(X.details,c&&X.isBrowser,r.className),onMouseDown:e=>{J(e.target)&&e.detail>1&&e.preventDefault()},onClick:e=>{e.stopPropagation();const t=e.target;J(t)&&K(t,s.current)&&(e.preventDefault(),u?(m(!1),p(!0)):m(!0))}}),f,o.createElement(Q.z,{lazy:!1,collapsed:u,disableSSRStyle:!0,onCollapseTransitionEnd:e=>{m(e),p(!e)}},o.createElement("div",{className:X.collapsibleContent},n)))}const te={details:"details_b_Ee"},ne="alert alert--info";function oe(e){let{...t}=e;return o.createElement(ee,(0,a.Z)({},t,{className:(0,i.Z)(ne,te.details,t.className)}))}var re=n(2503);function ae(e){return o.createElement(re.Z,e)}const ce={containsTaskList:"containsTaskList_mC6p"};function le(e){if(void 0!==e)return(0,i.Z)(e,e?.includes("contains-task-list")&&ce.containsTaskList)}const ie={img:"img_ev3q"};const se="admonition_LlT9",ue="admonitionHeading_tbUL",me="admonitionIcon_kALy",de="admonitionContent_S0QG";const pe={note:{infimaClassName:"secondary",iconComponent:function(){return o.createElement("svg",{viewBox:"0 0 14 16"},o.createElement("path",{fillRule:"evenodd",d:"M6.3 5.69a.942.942 0 0 1-.28-.7c0-.28.09-.52.28-.7.19-.18.42-.28.7-.28.28 0 .52.09.7.28.18.19.28.42.28.7 0 .28-.09.52-.28.7a1 1 0 0 1-.7.3c-.28 0-.52-.11-.7-.3zM8 7.99c-.02-.25-.11-.48-.31-.69-.2-.19-.42-.3-.69-.31H6c-.27.02-.48.13-.69.31-.2.2-.3.44-.31.69h1v3c.02.27.11.5.31.69.2.2.42.31.69.31h1c.27 0 .48-.11.69-.31.2-.19.3-.42.31-.69H8V7.98v.01zM7 2.3c-3.14 0-5.7 2.54-5.7 5.68 0 3.14 2.56 5.7 5.7 5.7s5.7-2.55 5.7-5.7c0-3.15-2.56-5.69-5.7-5.69v.01zM7 .98c3.86 0 7 3.14 7 7s-3.14 7-7 7-7-3.12-7-7 3.14-7 7-7z"}))},label:o.createElement(M.Z,{id:"theme.admonition.note",description:"The default label used for the Note admonition (:::note)"},"note")},tip:{infimaClassName:"success",iconComponent:function(){return o.createElement("svg",{viewBox:"0 0 12 16"},o.createElement("path",{fillRule:"evenodd",d:"M6.5 0C3.48 0 1 2.19 1 5c0 .92.55 2.25 1 3 1.34 2.25 1.78 2.78 2 4v1h5v-1c.22-1.22.66-1.75 2-4 .45-.75 1-2.08 1-3 0-2.81-2.48-5-5.5-5zm3.64 7.48c-.25.44-.47.8-.67 1.11-.86 1.41-1.25 2.06-1.45 3.23-.02.05-.02.11-.02.17H5c0-.06 0-.13-.02-.17-.2-1.17-.59-1.83-1.45-3.23-.2-.31-.42-.67-.67-1.11C2.44 6.78 2 5.65 2 5c0-2.2 2.02-4 4.5-4 1.22 0 2.36.42 3.22 1.19C10.55 2.94 11 3.94 11 5c0 .66-.44 1.78-.86 2.48zM4 14h5c-.23 1.14-1.3 2-2.5 2s-2.27-.86-2.5-2z"}))},label:o.createElement(M.Z,{id:"theme.admonition.tip",description:"The default label used for the Tip admonition (:::tip)"},"tip")},danger:{infimaClassName:"danger",iconComponent:function(){return o.createElement("svg",{viewBox:"0 0 12 16"},o.createElement("path",{fillRule:"evenodd",d:"M5.05.31c.81 2.17.41 3.38-.52 4.31C3.55 5.67 1.98 6.45.9 7.98c-1.45 2.05-1.7 6.53 3.53 7.7-2.2-1.16-2.67-4.52-.3-6.61-.61 2.03.53 3.33 1.94 2.86 1.39-.47 2.3.53 2.27 1.67-.02.78-.31 1.44-1.13 1.81 3.42-.59 4.78-3.42 4.78-5.56 0-2.84-2.53-3.22-1.25-5.61-1.52.13-2.03 1.13-1.89 2.75.09 1.08-1.02 1.8-1.86 1.33-.67-.41-.66-1.19-.06-1.78C8.18 5.31 8.68 2.45 5.05.32L5.03.3l.02.01z"}))},label:o.createElement(M.Z,{id:"theme.admonition.danger",description:"The default label used for the Danger admonition (:::danger)"},"danger")},info:{infimaClassName:"info",iconComponent:function(){return o.createElement("svg",{viewBox:"0 0 14 16"},o.createElement("path",{fillRule:"evenodd",d:"M7 2.3c3.14 0 5.7 2.56 5.7 5.7s-2.56 5.7-5.7 5.7A5.71 5.71 0 0 1 1.3 8c0-3.14 2.56-5.7 5.7-5.7zM7 1C3.14 1 0 4.14 0 8s3.14 7 7 7 7-3.14 7-7-3.14-7-7-7zm1 3H6v5h2V4zm0 6H6v2h2v-2z"}))},label:o.createElement(M.Z,{id:"theme.admonition.info",description:"The default label used for the Info admonition (:::info)"},"info")},caution:{infimaClassName:"warning",iconComponent:function(){return o.createElement("svg",{viewBox:"0 0 16 16"},o.createElement("path",{fillRule:"evenodd",d:"M8.893 1.5c-.183-.31-.52-.5-.887-.5s-.703.19-.886.5L.138 13.499a.98.98 0 0 0 0 1.001c.193.31.53.501.886.501h13.964c.367 0 .704-.19.877-.5a1.03 1.03 0 0 0 .01-1.002L8.893 1.5zm.133 11.497H6.987v-2.003h2.039v2.003zm0-3.004H6.987V5.987h2.039v4.006z"}))},label:o.createElement(M.Z,{id:"theme.admonition.caution",description:"The default label used for the Caution admonition (:::caution)"},"caution")}},fe={secondary:"note",important:"info",success:"tip",warning:"danger"};function he(e){const{mdxAdmonitionTitle:t,rest:n}=function(e){const t=o.Children.toArray(e),n=t.find((e=>o.isValidElement(e)&&"mdxAdmonitionTitle"===e.props?.mdxType)),r=o.createElement(o.Fragment,null,t.filter((e=>e!==n)));return{mdxAdmonitionTitle:n,rest:r}}(e.children);return{...e,title:e.title??t,children:n}}const ge={head:function(e){const t=o.Children.map(e.children,(e=>o.isValidElement(e)?function(e){if(e.props?.mdxType&&e.props.originalType){const{mdxType:t,originalType:n,...r}=e.props;return o.createElement(e.props.originalType,r)}return e}(e):e));return o.createElement(c.Z,e,t)},code:function(e){const t=["a","abbr","b","br","button","cite","code","del","dfn","em","i","img","input","ins","kbd","label","object","output","q","ruby","s","small","span","strong","sub","sup","time","u","var","wbr"];return o.Children.toArray(e.children).every((e=>"string"==typeof e&&!e.includes("\n")||(0,o.isValidElement)(e)&&t.includes(e.props?.mdxType)))?o.createElement("code",e):o.createElement(G,e)},a:function(e){return o.createElement(Y.Z,e)},pre:function(e){return o.createElement(G,(0,o.isValidElement)(e.children)&&"code"===e.children.props?.originalType?e.children.props:{...e})},details:function(e){const t=o.Children.toArray(e.children),n=t.find((e=>o.isValidElement(e)&&"summary"===e.props?.mdxType)),r=o.createElement(o.Fragment,null,t.filter((e=>e!==n)));return o.createElement(oe,(0,a.Z)({},e,{summary:n}),r)},ul:function(e){return o.createElement("ul",(0,a.Z)({},e,{className:le(e.className)}))},img:function(e){return o.createElement("img",(0,a.Z)({loading:"lazy"},e,{className:(t=e.className,(0,i.Z)(t,ie.img))}));var t},h1:e=>o.createElement(ae,(0,a.Z)({as:"h1"},e)),h2:e=>o.createElement(ae,(0,a.Z)({as:"h2"},e)),h3:e=>o.createElement(ae,(0,a.Z)({as:"h3"},e)),h4:e=>o.createElement(ae,(0,a.Z)({as:"h4"},e)),h5:e=>o.createElement(ae,(0,a.Z)({as:"h5"},e)),h6:e=>o.createElement(ae,(0,a.Z)({as:"h6"},e)),admonition:function(e){const{children:t,type:n,title:r,icon:a}=he(e),c=function(e){const t=fe[e]??e,n=pe[t];return n||(console.warn(`No admonition config found for admonition type "${t}". Using Info as fallback.`),pe.info)}(n),l=r??c.label,{iconComponent:s}=c,u=a??o.createElement(s,null);return o.createElement("div",{className:(0,i.Z)(d.k.common.admonition,d.k.common.admonitionType(e.type),"alert",`alert--${c.infimaClassName}`,se)},o.createElement("div",{className:ue},o.createElement("span",{className:me},u),l),o.createElement("div",{className:de},t))},mermaid:()=>null};function ye(e){let{children:t}=e;return o.createElement(r.Zo,{components:ge},t)}},3743:(e,t,n)=>{"use strict";n.d(t,{Z:()=>f});var o=n(7462),r=n(7294),a=n(6668);function c(e){const t=e.map((e=>({...e,parentIndex:-1,children:[]}))),n=Array(7).fill(-1);t.forEach(((e,t)=>{const o=n.slice(2,e.level);e.parentIndex=Math.max(...o),n[e.level]=t}));const o=[];return t.forEach((e=>{const{parentIndex:n,...r}=e;n>=0?t[n].children.push(r):o.push(r)})),o}function l(e){let{toc:t,minHeadingLevel:n,maxHeadingLevel:o}=e;return t.flatMap((e=>{const t=l({toc:e.children,minHeadingLevel:n,maxHeadingLevel:o});return function(e){return e.level>=n&&e.level<=o}(e)?[{...e,children:t}]:t}))}function i(e){const t=e.getBoundingClientRect();return t.top===t.bottom?i(e.parentNode):t}function s(e,t){let{anchorTopOffset:n}=t;const o=e.find((e=>i(e).top>=n));if(o){return function(e){return e.top>0&&e.bottom<window.innerHeight/2}(i(o))?o:e[e.indexOf(o)-1]??null}return e[e.length-1]??null}function u(){const e=(0,r.useRef)(0),{navbar:{hideOnScroll:t}}=(0,a.L)();return(0,r.useEffect)((()=>{e.current=t?0:document.querySelector(".navbar").clientHeight}),[t]),e}function m(e){const t=(0,r.useRef)(void 0),n=u();(0,r.useEffect)((()=>{if(!e)return()=>{};const{linkClassName:o,linkActiveClassName:r,minHeadingLevel:a,maxHeadingLevel:c}=e;function l(){const e=function(e){return Array.from(document.getElementsByClassName(e))}(o),l=function(e){let{minHeadingLevel:t,maxHeadingLevel:n}=e;const o=[];for(let r=t;r<=n;r+=1)o.push(`h${r}.anchor`);return Array.from(document.querySelectorAll(o.join()))}({minHeadingLevel:a,maxHeadingLevel:c}),i=s(l,{anchorTopOffset:n.current}),u=e.find((e=>i&&i.id===function(e){return decodeURIComponent(e.href.substring(e.href.indexOf("#")+1))}(e)));e.forEach((e=>{!function(e,n){n?(t.current&&t.current!==e&&t.current.classList.remove(r),e.classList.add(r),t.current=e):e.classList.remove(r)}(e,e===u)}))}return document.addEventListener("scroll",l),document.addEventListener("resize",l),l(),()=>{document.removeEventListener("scroll",l),document.removeEventListener("resize",l)}}),[e,n])}function d(e){let{toc:t,className:n,linkClassName:o,isChild:a}=e;return t.length?r.createElement("ul",{className:a?void 0:n},t.map((e=>r.createElement("li",{key:e.id},r.createElement("a",{href:`#${e.id}`,className:o??void 0,dangerouslySetInnerHTML:{__html:e.value}}),r.createElement(d,{isChild:!0,toc:e.children,className:n,linkClassName:o}))))):null}const p=r.memo(d);function f(e){let{toc:t,className:n="table-of-contents table-of-contents__left-border",linkClassName:i="table-of-contents__link",linkActiveClassName:s,minHeadingLevel:u,maxHeadingLevel:d,...f}=e;const h=(0,a.L)(),g=u??h.tableOfContents.minHeadingLevel,y=d??h.tableOfContents.maxHeadingLevel,v=function(e){let{toc:t,minHeadingLevel:n,maxHeadingLevel:o}=e;return(0,r.useMemo)((()=>l({toc:c(t),minHeadingLevel:n,maxHeadingLevel:o})),[t,n,o])}({toc:t,minHeadingLevel:g,maxHeadingLevel:y});return m((0,r.useMemo)((()=>{if(i&&s)return{linkClassName:i,linkActiveClassName:s,minHeadingLevel:g,maxHeadingLevel:y}}),[i,s,g,y])),r.createElement(p,(0,o.Z)({toc:v,className:n,linkClassName:i},f))}},9407:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var o=n(7462),r=n(7294),a=n(6010),c=n(3743);const l={tableOfContents:"tableOfContents_bqdL",docItemContainer:"docItemContainer_F8PC"},i="table-of-contents__link toc-highlight",s="table-of-contents__link--active";function u(e){let{className:t,...n}=e;return r.createElement("div",{className:(0,a.Z)(l.tableOfContents,"thin-scrollbar",t)},r.createElement(c.Z,(0,o.Z)({},n,{linkClassName:i,linkActiveClassName:s})))}},7594:(e,t)=>{function n(e){let t,n=[];for(let o of e.split(",").map((e=>e.trim())))if(/^-?\d+$/.test(o))n.push(parseInt(o,10));else if(t=o.match(/^(-?\d+)(-|\.\.\.?|\u2025|\u2026|\u22EF)(-?\d+)$/)){let[e,o,r,a]=t;if(o&&a){o=parseInt(o),a=parseInt(a);const e=o<a?1:-1;"-"!==r&&".."!==r&&"\u2025"!==r||(a+=e);for(let t=o;t!==a;t+=e)n.push(t)}}return n}t.default=n,e.exports=n}}]); \ No newline at end of file diff --git a/en/assets/js/86a892ec.fcd82238.js b/en/assets/js/86a892ec.fcd82238.js new file mode 100644 index 000000000..6ca7690f9 --- /dev/null +++ b/en/assets/js/86a892ec.fcd82238.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunknpy_notebook=self.webpackChunknpy_notebook||[]).push([[8175],{3905:(a,e,t)=>{t.d(e,{Zo:()=>o,kt:()=>h});var n=t(7294);function s(a,e,t){return e in a?Object.defineProperty(a,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):a[e]=t,a}function m(a,e){var t=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable}))),t.push.apply(t,n)}return t}function p(a){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?m(Object(t),!0).forEach((function(e){s(a,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(t)):m(Object(t)).forEach((function(e){Object.defineProperty(a,e,Object.getOwnPropertyDescriptor(t,e))}))}return a}function r(a,e){if(null==a)return{};var t,n,s=function(a,e){if(null==a)return{};var t,n,s={},m=Object.keys(a);for(n=0;n<m.length;n++)t=m[n],e.indexOf(t)>=0||(s[t]=a[t]);return s}(a,e);if(Object.getOwnPropertySymbols){var m=Object.getOwnPropertySymbols(a);for(n=0;n<m.length;n++)t=m[n],e.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(a,t)&&(s[t]=a[t])}return s}var l=n.createContext({}),i=function(a){var e=n.useContext(l),t=e;return a&&(t="function"==typeof a?a(e):p(p({},e),a)),t},o=function(a){var e=i(a.components);return n.createElement(l.Provider,{value:e},a.children)},N="mdxType",k={inlineCode:"code",wrapper:function(a){var e=a.children;return n.createElement(n.Fragment,{},e)}},c=n.forwardRef((function(a,e){var t=a.components,s=a.mdxType,m=a.originalType,l=a.parentName,o=r(a,["components","mdxType","originalType","parentName"]),N=i(t),c=s,h=N["".concat(l,".").concat(c)]||N[c]||k[c]||m;return t?n.createElement(h,p(p({ref:e},o),{},{components:t})):n.createElement(h,p({ref:e},o))}));function h(a,e){var t=arguments,s=e&&e.mdxType;if("string"==typeof a||s){var m=t.length,p=new Array(m);p[0]=c;var r={};for(var l in e)hasOwnProperty.call(e,l)&&(r[l]=e[l]);r.originalType=a,r[N]="string"==typeof a?a:s,p[1]=r;for(var i=2;i<m;i++)p[i]=t[i];return n.createElement.apply(null,p)}return n.createElement.apply(null,t)}c.displayName="MDXCreateElement"},4362:(a,e,t)=>{t.r(e),t.d(e,{assets:()=>l,contentTitle:()=>p,default:()=>k,frontMatter:()=>m,metadata:()=>r,toc:()=>i});var n=t(7462),s=(t(7294),t(3905));const m={},p="\u672c\u79d1\u6bd5\u4e1a\u8bba\u6587\uff1a\u57fa\u4e8e Prompt Learning \u7684\u89c6\u89c9-\u8bed\u8a00\u5927\u6a21\u578b\u5728\u56fe\u50cf\u751f\u6210\u4e2d\u7684\u5e94\u7528\u4e0e\u7814\u7a76",r={unversionedId:"Deep-Learning/\u5927\u6a21\u578b/Prompt Learning/Undergraduate-Dissertation",id:"Deep-Learning/\u5927\u6a21\u578b/Prompt Learning/Undergraduate-Dissertation",title:"\u672c\u79d1\u6bd5\u4e1a\u8bba\u6587\uff1a\u57fa\u4e8e Prompt Learning \u7684\u89c6\u89c9-\u8bed\u8a00\u5927\u6a21\u578b\u5728\u56fe\u50cf\u751f\u6210\u4e2d\u7684\u5e94\u7528\u4e0e\u7814\u7a76",description:"\u672c\u7bc7\u8bba\u6587\u4e3b\u8981\u57fa\u4e8e IPL \u7684\u601d\u60f3\u5b9e\u73b0\u3002\u672c\u4ed3\u5e93\u5927\u90e8\u5206\u4ece IPL-Zero-Shot-Generative-Model-Adaptation fork \u800c\u6765\u5e76\u505a\u51fa\u4e86\u4e00\u5b9a\u4fee\u6539\u3002",source:"@site/docs/Deep-Learning/5-\u5927\u6a21\u578b/Prompt Learning/1-Undergraduate-Dissertation.md",sourceDirName:"Deep-Learning/5-\u5927\u6a21\u578b/Prompt Learning",slug:"/Deep-Learning/\u5927\u6a21\u578b/Prompt Learning/Undergraduate-Dissertation",permalink:"/en/docs/Deep-Learning/\u5927\u6a21\u578b/Prompt Learning/Undergraduate-Dissertation",draft:!1,tags:[],version:"current",sidebarPosition:1,frontMatter:{},sidebar:"deep_learning",previous:{title:"\u6269\u6563\u6a21\u578b\uff08Diffusion Model\uff09",permalink:"/en/docs/Deep-Learning/\u5927\u6a21\u578b/Diffusion-Model"},next:{title:"NeurIPS 2017: Attention Is All You Need",permalink:"/en/docs/Deep-Learning/\u8bba\u6587\u7b14\u8bb0/Attention Is All You Need"}},l={},i=[{value:"\u4f9d\u8d56",id:"\u4f9d\u8d56",level:2},{value:"\u521b\u5efa Anaconda \u865a\u62df\u73af\u5883",id:"\u521b\u5efa-anaconda-\u865a\u62df\u73af\u5883",level:3},{value:"\u5b89\u88c5\u4f9d\u8d56",id:"\u5b89\u88c5\u4f9d\u8d56",level:3},{value:"\u4e0b\u8f7d\u9884\u8bad\u7ec3\u751f\u6210\u5668",id:"\u4e0b\u8f7d\u9884\u8bad\u7ec3\u751f\u6210\u5668",level:3},{value:"\u6982\u8ff0",id:"\u6982\u8ff0",level:2},{value:"\u6280\u672f\u7ec6\u8282",id:"\u6280\u672f\u7ec6\u8282",level:2},{value:"prompts \u7684\u521d\u59cb\u5316",id:"prompts-\u7684\u521d\u59cb\u5316",level:3},{value:"prompts \u7684 tokenize \u4e0e embedding",id:"prompts-\u7684-tokenize-\u4e0e-embedding",level:3},{value:"compute_text_features \u7684\u5b9e\u73b0\u7ec6\u8282",id:"compute_text_features-\u7684\u5b9e\u73b0\u7ec6\u8282",level:3},{value:"\u8bad\u7ec3 stage 1",id:"\u8bad\u7ec3-stage-1",level:3},{value:"Z\u7a7a\u95f4\u4e0eW\u7a7a\u95f4",id:"z\u7a7a\u95f4\u4e0ew\u7a7a\u95f4",level:4},{value:"\u635f\u5931\u51fd\u6570",id:"\u635f\u5931\u51fd\u6570",level:4},{value:"\u8bad\u7ec3 stage 2",id:"\u8bad\u7ec3-stage-2",level:3},{value:"\u786e\u5b9a\u76ee\u6807\u57df\u751f\u6210\u57df\u9700\u8981\u66f4\u65b0\u7684\u5c42",id:"\u786e\u5b9a\u76ee\u6807\u57df\u751f\u6210\u57df\u9700\u8981\u66f4\u65b0\u7684\u5c42",level:4},{value:"\u635f\u5931\u51fd\u6570",id:"\u635f\u5931\u51fd\u6570-1",level:4},{value:"\u5b9a\u91cf\u5206\u6790\u6307\u6807",id:"\u5b9a\u91cf\u5206\u6790\u6307\u6807",level:2},{value:"\u65b0\u589e\u529f\u80fd",id:"\u65b0\u589e\u529f\u80fd",level:2},{value:"\u81ea\u5b9a\u4e49\u56fe\u50cf\u98ce\u683c\u8fc1\u79fb",id:"\u81ea\u5b9a\u4e49\u56fe\u50cf\u98ce\u683c\u8fc1\u79fb",level:3},{value:"\u4fee\u6539\u65e5\u5fd7",id:"\u4fee\u6539\u65e5\u5fd7",level:4},{value:"\u95ee\u9898\u63d0\u51fa\u4e0e\u6539\u8fdb",id:"\u95ee\u9898\u63d0\u51fa\u4e0e\u6539\u8fdb",level:2},{value:"\u8bad\u7ec3\u9636\u6bb5\u4eba\u5de5 prompts \u7684\u4f5c\u7528\u662f\u4ec0\u4e48\uff1f",id:"\u8bad\u7ec3\u9636\u6bb5\u4eba\u5de5-prompts-\u7684\u4f5c\u7528\u662f\u4ec0\u4e48",level:3},{value:"\u4f5c\u7528",id:"\u4f5c\u7528",level:4},{value:"\u601d\u8003",id:"\u601d\u8003",level:4},{value:"Mapper \u7ed3\u6784\u7684\u8bbe\u8ba1",id:"mapper-\u7ed3\u6784\u7684\u8bbe\u8ba1",level:3}],o={toc:i},N="wrapper";function k(a){let{components:e,...t}=a;return(0,s.kt)(N,(0,n.Z)({},o,t,{components:e,mdxType:"MDXLayout"}),(0,s.kt)("h1",{id:"\u672c\u79d1\u6bd5\u4e1a\u8bba\u6587\u57fa\u4e8e-prompt-learning-\u7684\u89c6\u89c9-\u8bed\u8a00\u5927\u6a21\u578b\u5728\u56fe\u50cf\u751f\u6210\u4e2d\u7684\u5e94\u7528\u4e0e\u7814\u7a76"},"\u672c\u79d1\u6bd5\u4e1a\u8bba\u6587\uff1a\u57fa\u4e8e Prompt Learning \u7684\u89c6\u89c9-\u8bed\u8a00\u5927\u6a21\u578b\u5728\u56fe\u50cf\u751f\u6210\u4e2d\u7684\u5e94\u7528\u4e0e\u7814\u7a76"),(0,s.kt)("p",null,"\u672c\u7bc7\u8bba\u6587\u4e3b\u8981\u57fa\u4e8e ",(0,s.kt)("a",{parentName:"p",href:"https://arxiv.org/pdf/2304.03119.pdf"},"IPL")," \u7684\u601d\u60f3\u5b9e\u73b0\u3002\u672c\u4ed3\u5e93\u5927\u90e8\u5206\u4ece ",(0,s.kt)("a",{parentName:"p",href:"https://github.com/Picsart-AI-Research/IPL-Zero-Shot-Generative-Model-Adaptation"},"IPL-Zero-Shot-Generative-Model-Adaptation")," fork \u800c\u6765\u5e76\u505a\u51fa\u4e86\u4e00\u5b9a\u4fee\u6539\u3002"),(0,s.kt)("h2",{id:"\u4f9d\u8d56"},"\u4f9d\u8d56"),(0,s.kt)("h3",{id:"\u521b\u5efa-anaconda-\u865a\u62df\u73af\u5883"},"\u521b\u5efa Anaconda \u865a\u62df\u73af\u5883"),(0,s.kt)("pre",null,(0,s.kt)("code",{parentName:"pre",className:"language-powershell"},"conda create -n ipl python=3.8\nconda activate ipl\n")),(0,s.kt)("h3",{id:"\u5b89\u88c5\u4f9d\u8d56"},"\u5b89\u88c5\u4f9d\u8d56"),(0,s.kt)("p",null,"\u8bf7\u786e\u4fdd NVIDIA \u9a71\u52a8\u3001CUDA \u4ee5\u53ca PyTorch \u4e4b\u95f4\u7248\u672c\u4e92\u76f8\u5339\u914d\u3002"),(0,s.kt)("pre",null,(0,s.kt)("code",{parentName:"pre",className:"language-powershell"},"conda install pytorch torchvision torchaudio pytorch-cuda=11.8 -c pytorch -c nvidia\npip install ftfy regex tqdm ninja\npip install git+https://github.com/openai/CLIP.git\n")),(0,s.kt)("h3",{id:"\u4e0b\u8f7d\u9884\u8bad\u7ec3\u751f\u6210\u5668"},"\u4e0b\u8f7d\u9884\u8bad\u7ec3\u751f\u6210\u5668"),(0,s.kt)("p",null,"\u9884\u8bad\u7ec3\u7684\u6e90\u57df\u751f\u6210\u5668\u53ef\u4ee5\u901a\u8fc7 ",(0,s.kt)("a",{parentName:"p",href:"https://drive.google.com/drive/folders/1FW8XfDbTg9MLEodEeIl6zJEaCVyZ053L?usp=sharing"},"Google Drive "),"\u6216\u8005 ",(0,s.kt)("a",{parentName:"p",href:"https://cloud.tsinghua.edu.cn/d/dbd0955d9a9547dc99f2/"},"Tsinghua Cloud")," \u4e0b\u8f7d\uff0c\u5e76\u5c06\u5176\u7f6e\u4e8e ",(0,s.kt)("inlineCode",{parentName:"p"},"./pre_stylegan")," \u6587\u4ef6\u5939\u4e2d\u3002"),(0,s.kt)("h2",{id:"\u6982\u8ff0"},"\u6982\u8ff0"),(0,s.kt)("h2",{id:"\u6280\u672f\u7ec6\u8282"},"\u6280\u672f\u7ec6\u8282"),(0,s.kt)("h3",{id:"prompts-\u7684\u521d\u59cb\u5316"},"prompts \u7684\u521d\u59cb\u5316"),(0,s.kt)("p",null,(0,s.kt)("inlineCode",{parentName:"p"},"ctx_init "),"\u53c2\u6570\u7528\u4e8e\u521d\u59cb\u5316 prompts\uff0c\u5b98\u65b9\u63d0\u4f9b\u7684\u6f14\u793a context \u662f",(0,s.kt)("inlineCode",{parentName:"p"},"a photo of a"),"\u3002"),(0,s.kt)("pre",null,(0,s.kt)("code",{parentName:"pre",className:"language-python"},'source_prompts = [prompt_prefix + " " + args.source_class]\n target_prompts = [prompt_prefix + " " + args.target_class]\n')),(0,s.kt)("p",null,"\u6e90\u57df\u7684\u521d\u59cb\u63d0\u793a\u8bcd ",(0,s.kt)("inlineCode",{parentName:"p"},"source_prompts")," \u662f ctx_init \u4e0e\u6e90\u57df\u6807\u7b7e\u7684\u7ec4\u5408\u3002\u82e5\u6e90\u57df\u6807\u7b7e\u4e3a ",(0,s.kt)("inlineCode",{parentName:"p"},"photo"),"\uff0c\u5219\u6e90\u57df\u7684\u521d\u59cb\u63d0\u793a\u8bcd\u662f ",(0,s.kt)("inlineCode",{parentName:"p"},"a photo of a photo"),"\u3002\u76ee\u6807\u57df\u7684\u521d\u59cb\u63d0\u793a\u8bcd\u540c\u7406\u3002"),(0,s.kt)("h3",{id:"prompts-\u7684-tokenize-\u4e0e-embedding"},"prompts \u7684 tokenize \u4e0e embedding"),(0,s.kt)("p",null,"\u6e90\u57df\u4ee5\u53ca\u76ee\u6807\u57df\u7684\u521d\u59cb\u63d0\u793a\u8bcd\u63a5\u4e0b\u6765\u4f1a\u8fdb\u884c tokenize\uff1a"),(0,s.kt)("pre",null,(0,s.kt)("code",{parentName:"pre",className:"language-python"},"source_tokenized_prompts = torch.cat([clip.tokenize(p) for p in source_prompts]).to(device)\n# (1, 77) 'sot a photo of a photo eot' \u5728\u7ecf\u8fc7tokenize\u540e\u4e3atensor [[49406, 320, 1125, 539, 320, 1125, 49407, etc]]\n# 77\u662fCLIP\u5728tokenize\u65b9\u6cd5\u4e2d\u7f3a\u7701\u7684context_length\uff0c\u8d85\u8fc7context_length\u5c06\u88abtruncate\uff0c\u4e0d\u8db3\u7684\u5c06\u75280\u8865\u9f50\ntarget_tokenized_prompts = torch.cat([clip.tokenize(p) for p in target_prompts]).to(device)\n# (1, 77) 'sot a photo of a disney' \u5728\u7ecf\u8fc7tokenize\u540e\u4e3atensor [[49406, 320, 1125, 539, 320, 4696, 49407, etc]]\n# 77\u662fCLIP\u5728tokenize\u65b9\u6cd5\u4e2d\u7f3a\u7701\u7684context_length\uff0c\u8d85\u8fc7context_length\u5c06\u88abtruncate\uff0c\u4e0d\u8db3\u7684\u5c06\u75280\u8865\u9f50\n")),(0,s.kt)("p",null,"tokenize \u662f CLIP \u5bf9\u9001\u5165\u7684 prompt \u5b57\u7b26\u4e32\u8fdb\u884c\u6807\u8bb0\u5316\u5904\u7406\uff0c\u5728\u5934\u90e8\u548c\u5c3e\u90e8\u6dfb\u52a0 startoftext \u4ee5\u53ca endoftext \u6807\u8bb0\uff0c\u6700\u7ec8\u4e3a\u4e24\u4e2a\u9996\u5c3e\u6807\u8bb0\u548c\u5168\u90e8\u5355\u8bcd\u751f\u6210 int \u6807\u8bb0\u3002\u5176\u4e2d CLIP \u6a21\u578b\u7f3a\u7701\u7684 ",(0,s.kt)("inlineCode",{parentName:"p"},"context_length")," \u662f77\uff0c\u82e5 prompt \u5927\u4e8e 77 \u4f1a\u8fdb\u884c\u622a\u65ad\uff08truncate\uff09\uff0c\u82e5\u5c0f\u4e8e 77 \u4f1a\u8fdb\u884c\u8865\u96f6\uff0c\u56e0\u6b64 ",(0,s.kt)("inlineCode",{parentName:"p"},"source_tokenized_prompts")," \u4e0e ",(0,s.kt)("inlineCode",{parentName:"p"},"target_tokenized_prompts")," \u7684\u5f62\u72b6\u5747\u4e3a (1, 77)\u3002"),(0,s.kt)("p",null,"\u5728\u63d0\u793a\u8bcd\u6807\u8bb0\u5316\u4e4b\u540e\uff0c\u5c06\u8fdb\u884c\u5d4c\u5165\u8868\u793a embedding\uff1a"),(0,s.kt)("pre",null,(0,s.kt)("code",{parentName:"pre",className:"language-python"},"source_embedding = clip_model.token_embedding(source_tokenized_prompts).type(clip_model.dtype)\n# (1, 77, 512) \u5176\u4e2d512\u662fCLIP\u4e2d\u7684n_dim\uff0ctoken_embedding\u5c42\u7684\u8bcd\u5d4c\u5165\u7684\u7ef4\u5ea6\ntarget_embedding = clip_model.token_embedding(target_tokenized_prompts).type(clip_model.dtype)\n# (1, 77, 512) \u5176\u4e2d512\u662fCLIP\u4e2d\u7684n_dim\uff0ctoken_embedding\u5c42\u7684\u8bcd\u5d4c\u5165\u7684\u7ef4\u5ea6\n")),(0,s.kt)("h3",{id:"compute_text_features-\u7684\u5b9e\u73b0\u7ec6\u8282"},"compute_text_features \u7684\u5b9e\u73b0\u7ec6\u8282"),(0,s.kt)("p",null,"\u5728 Mapper \u751f\u6210 prompts \u540e\u8fdb\u884c prompts \u7684\u7279\u5f81\u63d0\u53d6\u65f6\uff0c\u9700\u8981\u4f20\u5165 tokenize \u4e4b\u540e\u7684\u4eba\u5de5\u521d\u59cb\u5316 prompt\uff08\u2018a photo of a photo.\u2019\u6216\u2018a photo of a disney.\u2019\uff09\uff0c\u7528\u4e8e\u9009\u62e9 eot \u7b26\u53f7\u5bf9\u5e94\u7684\u7ef4\u5ea6\u6765\u8fdb\u884c\u7279\u5f81\u6295\u5f71\uff08",(0,s.kt)("strong",{parentName:"p"},"\u56e0\u4e3a eot \u4f5c\u4e3a\u6574\u4e2a\u53e5\u5b50\u7684\u7ed3\u5c3e\uff0c\u88ab\u8ba4\u4e3a\u8be5\u7ef4\u5ea6\u5305\u542b\u66f4\u591a\u7684\u4fe1\u606f"),"\u3002\u5177\u4f53\u505a\u6cd5\uff1a\u7531\u4e8e\u5728 tokenize \u4e4b\u540e\uff0ceot \u7b26\u53f7\u5bf9\u5e94\u7684\u7ef4\u5ea6\u7684\u503c\u6700\u5927\uff0c\u56e0\u6b64\u53ef\u4f7f\u7528 argmax \u6765\u5b9a\u4f4d\uff09\uff0c\u4ee5\u4fdd\u8bc1\u6700\u540e\u5f97\u5230\u7684\u7279\u5f81\u5f62\u72b6\u4e0e\u56fe\u50cf\u7279\u5f81\u63d0\u53d6\u7684\u8f93\u51fa\u5f62\u72b6\u76f8\u540c\uff0c\u4f7f\u5f97\u540e\u7eed\u53ef\u4ee5\u8fdb\u884c\u5bf9\u6bd4\u5b66\u4e60\u7684\u635f\u5931\u8ba1\u7b97\u3002"),(0,s.kt)("h3",{id:"\u8bad\u7ec3-stage-1"},"\u8bad\u7ec3 stage 1"),(0,s.kt)("h4",{id:"z\u7a7a\u95f4\u4e0ew\u7a7a\u95f4"},"Z\u7a7a\u95f4\u4e0eW\u7a7a\u95f4"),(0,s.kt)("pre",null,(0,s.kt)("code",{parentName:"pre",className:"language-python"},"# Z\u7a7a\u95f4\u5230W\u7a7a\u95f4\u7684\u53d8\u6362\nsample_z = mixing_noise(args.batch_mapper, 512, args.mixing, device)\n# (batch_size, 512)\nsample_w = net.generator_frozen.style(sample_z)\n# (batch_size, 512)\n")),(0,s.kt)("p",null,"Z \u7a7a\u95f4\u548c W \u7a7a\u95f4\u662f StyleGAN \u6a21\u578b\u4e2d\u4e24\u79cd\u4e0d\u540c\u7684\u9690\u53d8\u91cf\u7a7a\u95f4\uff0c\u5206\u522b\u7528\u4e8e\u63a7\u5236\u751f\u6210\u56fe\u50cf\u7684\u968f\u673a\u7279\u5f81\u548c\u6837\u5f0f\u4fe1\u606f\u3002W \u7a7a\u95f4\u901a\u8fc7\u5bf9 Z \u7a7a\u95f4\u7684\u6620\u5c04\u5f97\u5230\u3002"),(0,s.kt)("ol",null,(0,s.kt)("li",{parentName:"ol"},(0,s.kt)("p",{parentName:"li"},(0,s.kt)("strong",{parentName:"p"},"Z \u7a7a\u95f4\uff08Latent Space Z\uff09"),"\uff1a"),(0,s.kt)("ul",{parentName:"li"},(0,s.kt)("li",{parentName:"ul"},"Z \u7a7a\u95f4\u662f\u968f\u673a\u566a\u58f0\u7a7a\u95f4\uff0c\u901a\u5e38\u7531\u968f\u673a\u566a\u58f0\u5411\u91cf\u7ec4\u6210\uff0c\u8868\u793a\u4e86\u56fe\u50cf\u7684\u968f\u673a\u7279\u5f81\u3002"),(0,s.kt)("li",{parentName:"ul"},"\u5728 StyleGAN \u4e2d\uff0cZ \u7a7a\u95f4\u7684\u7ef4\u5ea6\u901a\u5e38\u4e3a 512 \u7ef4\u3002\u8fd9\u610f\u5473\u7740\u4e00\u4e2a Z \u5411\u91cf\u7531 512 \u4e2a\u6570\u5b57\u7ec4\u6210\uff0c\u6bcf\u4e2a\u6570\u5b57\u8868\u793a\u4e86\u56fe\u50cf\u7684\u4e00\u4e2a\u968f\u673a\u7279\u5f81\u7684\u5f3a\u5ea6\u6216\u8005\u65b9\u5411\u3002"))),(0,s.kt)("li",{parentName:"ol"},(0,s.kt)("p",{parentName:"li"},(0,s.kt)("strong",{parentName:"p"},"W \u7a7a\u95f4\uff08Style Space W\uff09"),"\uff1a"),(0,s.kt)("ul",{parentName:"li"},(0,s.kt)("li",{parentName:"ul"},(0,s.kt)("p",{parentName:"li"},"W \u7a7a\u95f4\u7ecf\u8fc7\u7279\u5f81\u89e3\u8026\u7684\u9690\u7a7a\u95f4\uff0c\u4e0e Z \u7a7a\u95f4\u76f8\u6bd4\u66f4\u52a0\u89e3\u8026\u5408\u3002")),(0,s.kt)("li",{parentName:"ul"},(0,s.kt)("p",{parentName:"li"},"\u5728 StyleGAN \u4e2d\uff0cW \u7a7a\u95f4\u7684\u7ef4\u5ea6\u4e5f\u901a\u5e38\u4e3a 512 \u7ef4\uff0c\u662f\u901a\u8fc7mapping network\u8fdb\u884c\u6620\u5c04\u5f97\u5230\u7684\uff0cmapping network\u7531PixelNorm\u5c42\u4e0eEqualLinear\u5c42\u6784\u6210\u3002\u4ee5\u4e0b\u4ee3\u7801\u8282\u9009\u81ea",(0,s.kt)("inlineCode",{parentName:"p"},"sg2_model.py")),(0,s.kt)("pre",{parentName:"li"},(0,s.kt)("code",{parentName:"pre",className:"language-python"},"'''mapping network'''\nlayers = [PixelNorm()]\n\nfor i in range(n_mlp):\n layers.append(\n EqualLinear(\n style_dim, style_dim, lr_mul=lr_mlp, activation=\"fused_lrelu\"\n )\n )\n\nself.style = nn.Sequential(*layers)\n"))))),(0,s.kt)("li",{parentName:"ol"},(0,s.kt)("p",{parentName:"li"},(0,s.kt)("strong",{parentName:"p"},"Z \u7a7a\u95f4\u4e0e W \u7a7a\u95f4\u7684\u5173\u7cfb"),"\uff1a"),(0,s.kt)("ul",{parentName:"li"},(0,s.kt)("li",{parentName:"ul"},"\u5728 StyleGAN \u4e2d\uff0c\u901a\u5e38\u4f1a\u5148\u5c06\u4e00\u4e2a Z \u5411\u91cf\u6620\u5c04\u5230 W \u7a7a\u95f4\uff0c\u7136\u540e\u518d\u5c06 W \u5411\u91cf\u8f93\u5165\u5230\u751f\u6210\u5668\u7f51\u7edc\u4e2d\u751f\u6210\u56fe\u50cf\u3002"),(0,s.kt)("li",{parentName:"ul"},"Z \u7a7a\u95f4\u63d0\u4f9b\u4e86\u521d\u59cb\u968f\u673a\u566a\u58f0\uff0c\u800c W \u7a7a\u95f4\u5219\u901a\u8fc7\u7279\u5f81\u89e3\u8026\u63d0\u4f9b\u66f4\u591a\u63a7\u5236\u56fe\u50cf\u98ce\u683c\u7684\u7075\u6d3b\u6027\u3002\u901a\u8fc7\u5bf9 Z \u548c W \u4e4b\u95f4\u7684\u6620\u5c04\u4ee5\u53ca W \u5728\u751f\u6210\u5668\u4e2d\u7684\u5e94\u7528\uff0cStyleGan \u5b9e\u73b0\u4e86\u9ad8\u5ea6\u53ef\u63a7\u4e14\u5177\u6709\u826f\u597d\u751f\u6210\u6548\u679c\u7684\u56fe\u50cf\u5408\u6210\u3002")))),(0,s.kt)("h4",{id:"\u635f\u5931\u51fd\u6570"},"\u635f\u5931\u51fd\u6570"),(0,s.kt)("p",null,"\u5728\u4ee3\u7801\u4e2d\uff0cstage 1 \u7684\u635f\u5931\u51fd\u6570\u662f ",(0,s.kt)("inlineCode",{parentName:"p"},"global_clip_loss"),"\uff0c\u8be5\u635f\u5931\u7531\u4e09\u90e8\u5206\u7ec4\u6210\uff1a"),(0,s.kt)("ol",null,(0,s.kt)("li",{parentName:"ol"},"\u5bf9\u6bd4\u5b66\u4e60\u635f\u5931\uff1aMapper \u751f\u6210\u7684\u6e90\u57df prompts \u7684\u7279\u5f81",(0,s.kt)("strong",{parentName:"li"},"\uff08\u6ce8\u610f\uff0c\u8fd9\u91cc\u7684 prompts \u7279\u5f81\u662f\u4e0e\u4eba\u5de5\u521d\u59cb\u5316\u7684 prompts \u7684\u7279\u5f81\u505a\u8fc7 element-wise \u76f8\u52a0\u540e\u7684\u7279\u5f81\uff09"),"\u4e0e\u6e90\u57df\u56fe\u50cf\u7279\u5f81\u7684\u4f59\u5f26\u76f8\u4f3c\u5ea6\u7ec4\u6210\u7684\u5bf9\u6bd4\u5b66\u4e60\u635f\u5931\uff1b"),(0,s.kt)("li",{parentName:"ol"},"\u76ee\u6807\u57df\u6b63\u5219\u5316\u635f\u5931\uff1aMapper \u751f\u6210\u7684\u76ee\u6807\u57df prompts \u7684\u7279\u5f81\u4e0e\u76ee\u6807\u57df\u6587\u672c\u6807\u7b7e\u7279\u5f81\u7684\u4f59\u5f26\u76f8\u4f3c\u5ea6\uff0c\u8fd9\u91cc\u751f\u6210\u7684\u76ee\u6807\u57df prompts \u7279\u5f81\u540c\u6837\u4e5f\u662f\u4e0e\u4eba\u5de5\u521d\u59cb\u5316\u7684 prompts \u505a\u8fc7\u52a0\u6cd5\u7684\u3002\u6ce8\u610f\u8be5\u635f\u5931\u6709\u6743\u91cd ",(0,s.kt)("inlineCode",{parentName:"li"},"lambda_l"),"\u3002"),(0,s.kt)("li",{parentName:"ol"},"\u6e90\u57df\u6b63\u5219\u5316\uff1a\u8ba1\u7b97\u751f\u6210\u7684\u6e90\u57dfprompts\u4e0e\u6e90\u57df\u6807\u7b7e\u4e4b\u95f4\u7684\u4f59\u5f26\u76f8\u4f3c\u5ea6\uff0c\u7531 ",(0,s.kt)("inlineCode",{parentName:"li"},"lambda_src")," \u63a7\u5236\uff0c\u9ed8\u8ba4\u662f 0\u3002")),(0,s.kt)("h3",{id:"\u8bad\u7ec3-stage-2"},"\u8bad\u7ec3 stage 2"),(0,s.kt)("h4",{id:"\u786e\u5b9a\u76ee\u6807\u57df\u751f\u6210\u57df\u9700\u8981\u66f4\u65b0\u7684\u5c42"},"\u786e\u5b9a\u76ee\u6807\u57df\u751f\u6210\u57df\u9700\u8981\u66f4\u65b0\u7684\u5c42"),(0,s.kt)("p",null,"\u5728\u8bad\u7ec3\u7684\u7b2c\u4e8c\u9636\u6bb5\u8fdb\u884c\u524d\u5411\u4f20\u64ad\u65f6\uff0c\u9700\u8981\u5148\u5bf9\u76ee\u6807\u57df\u751f\u6210\u5668\uff08generator_trainable\uff09\u7684\u6240\u6709\u5c42\u8fdb\u884c unfreeze\uff0c\u7136\u540e\u5bf9\u66f4\u65b0\u54ea\u4e9b\u5c42\u505a\u51fa\u9009\u62e9\uff0c\u627f\u62c5\u9009\u62e9\u4efb\u52a1\u7684\u529f\u80fd\u51fd\u6570\uff1amodel.ZSSGAN.ZSSGAN.determine_opt_layers\uff0c\u6700\u540e freeze \u6240\u6709\u5c42\u540e\u518d unfreeze \u9009\u62e9\u7684\u7f51\u7edc\u5c42\u3002"),(0,s.kt)("pre",null,(0,s.kt)("code",{parentName:"pre",className:"language-python"},"if self.training and self.auto_layer_iters > 0:\n self.generator_trainable.unfreeze_layers() # unfreeze\n train_layers = self.determine_opt_layers() # layer to train\n\n if not isinstance(train_layers, list):\n train_layers = [train_layers]\n\n self.generator_trainable.freeze_layers()\n self.generator_trainable.unfreeze_layers(train_layers) # unfreeze\n")),(0,s.kt)("p",null,"\u5177\u4f53\u9009\u62e9\u5e26\u66f4\u65b0\u7f51\u7edc\u5c42\u7684\u7b56\u7565\uff1a"),(0,s.kt)("p",null,"\u5c06 W \u7a7a\u95f4\u7684\u9690\u5411\u91cf\u9001\u5165\u76ee\u6807\u57df\u751f\u6210\u5668\uff08SG2Generator\uff09\u4e2d\uff0c\u5e76\u8fdb\u884c\u53cd\u5411\u4f20\u64ad\uff0c\u6b64\u65f6\u53ef\u4ee5\u901a\u8fc7\u53cd\u5411\u4f20\u64ad\u540e W \u7a7a\u95f4\u9690\u5411\u91cf\u4e0d\u540c\u7ef4\u5ea6\u7684\u66f4\u65b0\u5e45\u5ea6\u6765\u8861\u91cf\u4e0d\u540c\u7f51\u7edc\u5c42\u7684\u5f71\u54cd\u529b\uff0c\u56e0\u6b64\u9009\u51fa\u66f4\u65b0\u5e45\u5ea6\u6700\u5927\u7684\u7ef4\u5ea6\u5c31\u53ef\u4ee5\u786e\u5b9a\u5728 Model Adaption \u4e2d\u9700\u8981\u66f4\u65b0\u7684\u7f51\u7edc\u5c42\u3002"),(0,s.kt)("p",null,(0,s.kt)("strong",{parentName:"p"},"\u4e4b\u6240\u4ee5 W \u7a7a\u95f4\u7f16\u7801\u5728 n_latent \u7ef4\u5ea6\u4e0a\u7684\u5e8f\u53f7\u5c31\u4ee3\u8868\u7740\u5bf9\u5e94\u7684\u7f51\u7edc\u5c42\u6570\u7684\u5e8f\u53f7\uff0c\u662f\u56e0\u4e3a StyleGAN \u751f\u6210\u5668\u7684\u7ed3\u6784\u51b3\u5b9a\u4e86\u8fd9\u4e00\u70b9\uff1aStyleGAN \u751f\u6210\u5668\u4e2d\uff0cW \u7a7a\u95f4\u7f16\u7801\u7684\u4e0d\u540c\u7ef4\u5ea6\u4f1a\u88ab\u9001\u5165\u751f\u6210\u5668\u7f51\u7edc\u7684\u4e0d\u540c\u5c42\uff0c\u63a7\u5236\u8fd9\u4e9b\u5c42\u7684\u7279\u5f81\u6620\u5c04 (feature mapping)\u3002\u5177\u4f53\u6765\u8bf4\uff0cW \u7a7a\u95f4\u7f16\u7801\u7684\u6bcf\u4e2a\u7ef4\u5ea6\u4f1a\u88ab\u91cd\u590d n_latent \u6b21\uff0c\u4f5c\u4e3a\u8be5\u5c42\u7684\u98ce\u683c\u5411\u91cf (style vector)\uff0c\u901a\u8fc7 AdaIN (Adaptive Instance Normalization) \u5c42\u63a7\u5236\u8be5\u5c42\u7684\u7279\u5f81\u6620\u5c04\u3002\u56e0\u6b64\uff0cW \u7a7a\u95f4\u7f16\u7801\u7684\u7b2c i \u4e2a\u7ef4\u5ea6\u4f1a\u5f71\u54cd\u751f\u6210\u5668\u7f51\u7edc\u4e2d\u7b2c i \u5c42\u7684\u7279\u5f81\u6620\u5c04\u3002\u5f53\u67d0\u4e2a\u7ef4\u5ea6\u7684 W \u503c\u88ab\u66f4\u65b0\u7684\u7a0b\u5ea6\u8f83\u5927\u65f6\uff0c\u5c31\u610f\u5473\u7740\u8be5\u7ef4\u5ea6\u5bf9\u5e94\u7684\u5c42\u5728\u751f\u6210\u76ee\u6807\u56fe\u50cf\u65f6\u8d77\u5230\u4e86\u91cd\u8981\u4f5c\u7528\uff0c\u9700\u8981\u88ab\u4f18\u5316\u3002")),(0,s.kt)("h4",{id:"\u635f\u5931\u51fd\u6570-1"},"\u635f\u5931\u51fd\u6570"),(0,s.kt)("p",null,"stage 2 \u7684\u635f\u5931\u51fd\u6570\u662f CLIP Loss \u7c7b\u4e2d\u7684 ",(0,s.kt)("inlineCode",{parentName:"p"},"clip_directional_loss"),"\uff0c\u8be5\u635f\u5931\u51fd\u6570\u7531\u4e24\u90e8\u5206\u7ec4\u6210\uff1a"),(0,s.kt)("ol",null,(0,s.kt)("li",{parentName:"ol"},(0,s.kt)("inlineCode",{parentName:"li"},"edit_direciton"),"\uff1a\u6e90\u57df\u751f\u6210\u5668\u4e0e\u76ee\u6807\u57df\u751f\u6210\u5668\u751f\u6210\u7684\u56fe\u7247\u5728\u7ecf\u8fc7 image encdoer \u540e\u505a element-wise \u7684\u76f8\u51cf\uff0c\u6700\u540e\u9664\u4ee5\u81ea\u8eab\u7684 L2 Norm \u65b9\u4fbf\u540e\u7eed\u4e0e target_direction \u8ba1\u7b97\u4f59\u5f26\u76f8\u4f3c\u5ea6"),(0,s.kt)("li",{parentName:"ol"},(0,s.kt)("inlineCode",{parentName:"li"},"target_direction"),"\uff1aMapper \u4ea7\u751f\u7684\u6e90\u57df\u548c\u76ee\u6807\u57df prompts \u7684 text_features \u505aelement-wise\u76f8\u51cf\u540e\uff0c\u6700\u540e\u521d\u4e00\u81ea\u8eab\u7684 L2 Norm \u4ee5\u4fbf\u540e\u7eed\u4e0e edit_direction \u8ba1\u7b97\u4f59\u5f26\u76f8\u4f3c\u5ea6")),(0,s.kt)("h2",{id:"\u5b9a\u91cf\u5206\u6790\u6307\u6807"},"\u5b9a\u91cf\u5206\u6790\u6307\u6807"),(0,s.kt)("p",null,"\u53c2\u8003\u6587\u732e\uff1a",(0,s.kt)("a",{parentName:"p",href:"https://blog.csdn.net/qq_35586657/article/details/98478508"},"GAN \u7684\u51e0\u79cd\u8bc4\u4ef7\u6307\u6807")),(0,s.kt)("ol",null,(0,s.kt)("li",{parentName:"ol"},(0,s.kt)("p",{parentName:"li"},"Inception Score\uff08IS\uff09"),(0,s.kt)("p",{parentName:"li"},(0,s.kt)("strong",{parentName:"p"},"\u8bc4\u4f30\u56fe\u50cf\u7684\u8d28\u91cf\u548c\u591a\u6837\u6027")),(0,s.kt)("p",{parentName:"li"},"\u8d28\u91cf\uff1a\u628a\u751f\u6210\u7684\u56fe\u7247 ",(0,s.kt)("span",{parentName:"p",className:"math math-inline"},(0,s.kt)("span",{parentName:"span",className:"katex"},(0,s.kt)("span",{parentName:"span",className:"katex-mathml"},(0,s.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,s.kt)("semantics",{parentName:"math"},(0,s.kt)("mrow",{parentName:"semantics"},(0,s.kt)("mi",{parentName:"mrow"},"x")),(0,s.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"x")))),(0,s.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"0.4306em"}}),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal"},"x")))))," \u8f93\u5165 Inception V3 \u4e2d\uff0c\u5f97\u5230\u8f93\u51fa 1000 \u7ef4\u7684\u5411\u91cf ",(0,s.kt)("span",{parentName:"p",className:"math math-inline"},(0,s.kt)("span",{parentName:"span",className:"katex"},(0,s.kt)("span",{parentName:"span",className:"katex-mathml"},(0,s.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,s.kt)("semantics",{parentName:"math"},(0,s.kt)("mrow",{parentName:"semantics"},(0,s.kt)("mi",{parentName:"mrow"},"y")),(0,s.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"y")))),(0,s.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"0.625em",verticalAlign:"-0.1944em"}}),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"y"))))),"\uff0c\u5411\u91cf\u7684\u6bcf\u4e2a\u7ef4\u5ea6\u7684\u503c\u5bf9\u5e94\u56fe\u7247\u5c5e\u4e8e\u67d0\u7c7b\u7684\u6982\u7387\u3002\u5bf9\u4e8e\u4e00\u4e2a\u6e05\u6670\u7684\u56fe\u7247\uff0c\u5b83\u5c5e\u4e8e\u67d0\u4e00\u7c7b\u7684\u6982\u7387\u5e94\u8be5\u975e\u5e38\u5927\uff0c\u800c\u5c5e\u4e8e\u5176\u5b83\u7c7b\u7684\u6982\u7387\u5e94\u8be5\u5f88\u5c0f\u3002\u7528\u4e13\u4e1a\u672f\u8bed\u8bf4\uff0c ",(0,s.kt)("span",{parentName:"p",className:"math math-inline"},(0,s.kt)("span",{parentName:"span",className:"katex"},(0,s.kt)("span",{parentName:"span",className:"katex-mathml"},(0,s.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,s.kt)("semantics",{parentName:"math"},(0,s.kt)("mrow",{parentName:"semantics"},(0,s.kt)("mi",{parentName:"mrow"},"p"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,s.kt)("mi",{parentName:"mrow"},"y"),(0,s.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"\u2223"),(0,s.kt)("mi",{parentName:"mrow"},"x"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,s.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"p(y|x)")))),(0,s.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal"},"p"),(0,s.kt)("span",{parentName:"span",className:"mopen"},"("),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"y"),(0,s.kt)("span",{parentName:"span",className:"mord"},"\u2223"),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal"},"x"),(0,s.kt)("span",{parentName:"span",className:"mclose"},")"))))),"\u200b \u7684\u71b5\u5e94\u8be5\u5f88\u5c0f\uff08\u71b5\u4ee3\u8868\u6df7\u4e71\u5ea6\uff0c\u5747\u5300\u5206\u5e03\u7684\u6df7\u4e71\u5ea6\u6700\u5927\uff0c\u71b5\u6700\u5927\uff09\u3002"),(0,s.kt)("p",{parentName:"li"},"\u591a\u6837\u6027\uff1a \u5982\u679c\u4e00\u4e2a\u6a21\u578b\u80fd\u751f\u6210\u8db3\u591f\u591a\u6837\u7684\u56fe\u7247\uff0c\u90a3\u4e48\u5b83\u751f\u6210\u7684\u56fe\u7247\u5728\u5404\u4e2a\u7c7b\u522b\u4e2d\u7684\u5206\u5e03\u5e94\u8be5\u662f\u5e73\u5747\u7684\uff0c\u5047\u8bbe\u751f\u6210\u4e86 10000 \u5f20\u56fe\u7247\uff0c\u90a3\u4e48\u6700\u7406\u60f3\u7684\u60c5\u51b5\u662f\uff0c1000 \u7c7b\u4e2d\u6bcf\u7c7b\u751f\u6210\u4e86 10 \u5f20\u3002\u8f6c\u6362\u6210\u672f\u8bed\uff0c\u5c31\u662f\u751f\u6210\u56fe\u7247\u5728\u6240\u6709\u7c7b\u522b\u6982\u7387\u7684\u8fb9\u7f18\u5206\u5e03 ",(0,s.kt)("span",{parentName:"p",className:"math math-inline"},(0,s.kt)("span",{parentName:"span",className:"katex"},(0,s.kt)("span",{parentName:"span",className:"katex-mathml"},(0,s.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,s.kt)("semantics",{parentName:"math"},(0,s.kt)("mrow",{parentName:"semantics"},(0,s.kt)("mi",{parentName:"mrow"},"p"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,s.kt)("mi",{parentName:"mrow"},"y"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,s.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"p(y)")))),(0,s.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal"},"p"),(0,s.kt)("span",{parentName:"span",className:"mopen"},"("),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"y"),(0,s.kt)("span",{parentName:"span",className:"mclose"},")"))))),"\u200b \u71b5\u5f88\u5927\uff08\u5747\u5300\u5206\u5e03\uff09\u3002"),(0,s.kt)("p",{parentName:"li"},"\u56e0\u6b64\uff0c\u5bf9\u4e8e IS \u6211\u4eec\u9700\u8981\u6c42\u7684\u4e24\u4e2a\u91cf\u5c31\u662f ",(0,s.kt)("span",{parentName:"p",className:"math math-inline"},(0,s.kt)("span",{parentName:"span",className:"katex"},(0,s.kt)("span",{parentName:"span",className:"katex-mathml"},(0,s.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,s.kt)("semantics",{parentName:"math"},(0,s.kt)("mrow",{parentName:"semantics"},(0,s.kt)("mi",{parentName:"mrow"},"p"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,s.kt)("mi",{parentName:"mrow"},"y"),(0,s.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"\u2223"),(0,s.kt)("mi",{parentName:"mrow"},"x"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,s.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"p(y|x)")))),(0,s.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal"},"p"),(0,s.kt)("span",{parentName:"span",className:"mopen"},"("),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"y"),(0,s.kt)("span",{parentName:"span",className:"mord"},"\u2223"),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal"},"x"),(0,s.kt)("span",{parentName:"span",className:"mclose"},")")))))," \u548c ",(0,s.kt)("span",{parentName:"p",className:"math math-inline"},(0,s.kt)("span",{parentName:"span",className:"katex"},(0,s.kt)("span",{parentName:"span",className:"katex-mathml"},(0,s.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,s.kt)("semantics",{parentName:"math"},(0,s.kt)("mrow",{parentName:"semantics"},(0,s.kt)("mi",{parentName:"mrow"},"p"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,s.kt)("mi",{parentName:"mrow"},"y"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,s.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"p(y)")))),(0,s.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal"},"p"),(0,s.kt)("span",{parentName:"span",className:"mopen"},"("),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"y"),(0,s.kt)("span",{parentName:"span",className:"mclose"},")"))))),"\u3002\u5b9e\u9645\u4e2d\uff0c\u9009\u53d6\u5927\u91cf\u751f\u6210\u6837\u672c\uff0c\u7528\u7ecf\u9a8c\u5206\u5e03\u6a21\u62df ",(0,s.kt)("span",{parentName:"p",className:"math math-inline"},(0,s.kt)("span",{parentName:"span",className:"katex"},(0,s.kt)("span",{parentName:"span",className:"katex-mathml"},(0,s.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,s.kt)("semantics",{parentName:"math"},(0,s.kt)("mrow",{parentName:"semantics"},(0,s.kt)("mi",{parentName:"mrow"},"p"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,s.kt)("mi",{parentName:"mrow"},"y"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,s.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"p(y)")))),(0,s.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal"},"p"),(0,s.kt)("span",{parentName:"span",className:"mopen"},"("),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"y"),(0,s.kt)("span",{parentName:"span",className:"mclose"},")"))))),"\uff1a"),(0,s.kt)("div",{parentName:"li",className:"math math-display"},(0,s.kt)("span",{parentName:"div",className:"katex-display"},(0,s.kt)("span",{parentName:"span",className:"katex"},(0,s.kt)("span",{parentName:"span",className:"katex-mathml"},(0,s.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,s.kt)("semantics",{parentName:"math"},(0,s.kt)("mrow",{parentName:"semantics"},(0,s.kt)("mover",{parentName:"mrow",accent:"true"},(0,s.kt)("mi",{parentName:"mover"},"p"),(0,s.kt)("mo",{parentName:"mover"},"^")),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,s.kt)("mi",{parentName:"mrow"},"y"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,s.kt)("mo",{parentName:"mrow"},"="),(0,s.kt)("mfrac",{parentName:"mrow"},(0,s.kt)("mn",{parentName:"mfrac"},"1"),(0,s.kt)("mi",{parentName:"mfrac"},"N")),(0,s.kt)("munderover",{parentName:"mrow"},(0,s.kt)("mo",{parentName:"munderover"},"\u2211"),(0,s.kt)("mrow",{parentName:"munderover"},(0,s.kt)("mi",{parentName:"mrow"},"i"),(0,s.kt)("mo",{parentName:"mrow"},"="),(0,s.kt)("mn",{parentName:"mrow"},"1")),(0,s.kt)("mi",{parentName:"munderover"},"N")),(0,s.kt)("mi",{parentName:"mrow"},"p"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,s.kt)("mi",{parentName:"mrow"},"y"),(0,s.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"\u2223"),(0,s.kt)("msup",{parentName:"mrow"},(0,s.kt)("mi",{parentName:"msup",mathvariant:"bold"},"x"),(0,s.kt)("mrow",{parentName:"msup"},(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,s.kt)("mi",{parentName:"mrow"},"i"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},")"))),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,s.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"\\hat{p}(y)=\\frac{1}{N}\\sum_{i=1}^{N}p(y|\\mathbf{x}^{(i)})")))),(0,s.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,s.kt)("span",{parentName:"span",className:"mord accent"},(0,s.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.6944em"}},(0,s.kt)("span",{parentName:"span",style:{top:"-3em"}},(0,s.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal"},"p")),(0,s.kt)("span",{parentName:"span",style:{top:"-3em"}},(0,s.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,s.kt)("span",{parentName:"span",className:"accent-body",style:{left:"-0.1667em"}},(0,s.kt)("span",{parentName:"span",className:"mord"},"^")))),(0,s.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.1944em"}},(0,s.kt)("span",{parentName:"span"}))))),(0,s.kt)("span",{parentName:"span",className:"mopen"},"("),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"y"),(0,s.kt)("span",{parentName:"span",className:"mclose"},")"),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,s.kt)("span",{parentName:"span",className:"mrel"},"="),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"3.106em",verticalAlign:"-1.2777em"}}),(0,s.kt)("span",{parentName:"span",className:"mord"},(0,s.kt)("span",{parentName:"span",className:"mopen nulldelimiter"}),(0,s.kt)("span",{parentName:"span",className:"mfrac"},(0,s.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.3214em"}},(0,s.kt)("span",{parentName:"span",style:{top:"-2.314em"}},(0,s.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,s.kt)("span",{parentName:"span",className:"mord"},(0,s.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.10903em"}},"N"))),(0,s.kt)("span",{parentName:"span",style:{top:"-3.23em"}},(0,s.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,s.kt)("span",{parentName:"span",className:"frac-line",style:{borderBottomWidth:"0.04em"}})),(0,s.kt)("span",{parentName:"span",style:{top:"-3.677em"}},(0,s.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,s.kt)("span",{parentName:"span",className:"mord"},(0,s.kt)("span",{parentName:"span",className:"mord"},"1")))),(0,s.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.686em"}},(0,s.kt)("span",{parentName:"span"}))))),(0,s.kt)("span",{parentName:"span",className:"mclose nulldelimiter"})),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,s.kt)("span",{parentName:"span",className:"mop op-limits"},(0,s.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.8283em"}},(0,s.kt)("span",{parentName:"span",style:{top:"-1.8723em",marginLeft:"0em"}},(0,s.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.05em"}}),(0,s.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,s.kt)("span",{parentName:"span",className:"mord mtight"},(0,s.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"i"),(0,s.kt)("span",{parentName:"span",className:"mrel mtight"},"="),(0,s.kt)("span",{parentName:"span",className:"mord mtight"},"1")))),(0,s.kt)("span",{parentName:"span",style:{top:"-3.05em"}},(0,s.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.05em"}}),(0,s.kt)("span",{parentName:"span"},(0,s.kt)("span",{parentName:"span",className:"mop op-symbol large-op"},"\u2211"))),(0,s.kt)("span",{parentName:"span",style:{top:"-4.3em",marginLeft:"0em"}},(0,s.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.05em"}}),(0,s.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,s.kt)("span",{parentName:"span",className:"mord mtight"},(0,s.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.10903em"}},"N"))))),(0,s.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.2777em"}},(0,s.kt)("span",{parentName:"span"}))))),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal"},"p"),(0,s.kt)("span",{parentName:"span",className:"mopen"},"("),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"y"),(0,s.kt)("span",{parentName:"span",className:"mord"},"\u2223"),(0,s.kt)("span",{parentName:"span",className:"mord"},(0,s.kt)("span",{parentName:"span",className:"mord mathbf"},"x"),(0,s.kt)("span",{parentName:"span",className:"msupsub"},(0,s.kt)("span",{parentName:"span",className:"vlist-t"},(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.938em"}},(0,s.kt)("span",{parentName:"span",style:{top:"-3.113em",marginRight:"0.05em"}},(0,s.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,s.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,s.kt)("span",{parentName:"span",className:"mord mtight"},(0,s.kt)("span",{parentName:"span",className:"mopen mtight"},"("),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"i"),(0,s.kt)("span",{parentName:"span",className:"mclose mtight"},")"))))))))),(0,s.kt)("span",{parentName:"span",className:"mclose"},")")))))),(0,s.kt)("p",{parentName:"li"},"Inception Score \u7684\u5b8c\u6574\u516c\u5f0f\u5982\u4e0b\uff1a"),(0,s.kt)("div",{parentName:"li",className:"math math-display"},(0,s.kt)("span",{parentName:"div",className:"katex-display"},(0,s.kt)("span",{parentName:"span",className:"katex"},(0,s.kt)("span",{parentName:"span",className:"katex-mathml"},(0,s.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,s.kt)("semantics",{parentName:"math"},(0,s.kt)("mrow",{parentName:"semantics"},(0,s.kt)("mrow",{parentName:"mrow"},(0,s.kt)("mi",{parentName:"mrow",mathvariant:"bold"},"I"),(0,s.kt)("mi",{parentName:"mrow",mathvariant:"bold"},"S")),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,s.kt)("mi",{parentName:"mrow"},"G"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,s.kt)("mo",{parentName:"mrow"},"="),(0,s.kt)("mi",{parentName:"mrow"},"exp"),(0,s.kt)("mo",{parentName:"mrow"},"\u2061"),(0,s.kt)("mrow",{parentName:"mrow"},(0,s.kt)("mo",{parentName:"mrow",fence:"true"},"("),(0,s.kt)("msub",{parentName:"mrow"},(0,s.kt)("mi",{parentName:"msub",mathvariant:"double-struck"},"E"),(0,s.kt)("mrow",{parentName:"msub"},(0,s.kt)("mi",{parentName:"mrow",mathvariant:"bold"},"x"),(0,s.kt)("mo",{parentName:"mrow"},"\u223c"),(0,s.kt)("msub",{parentName:"mrow"},(0,s.kt)("mi",{parentName:"msub"},"p"),(0,s.kt)("mi",{parentName:"msub"},"g")))),(0,s.kt)("msub",{parentName:"mrow"},(0,s.kt)("mi",{parentName:"msub"},"D"),(0,s.kt)("mrow",{parentName:"msub"},(0,s.kt)("mi",{parentName:"mrow"},"K"),(0,s.kt)("mi",{parentName:"mrow"},"L"))),(0,s.kt)("mrow",{parentName:"mrow"},(0,s.kt)("mo",{parentName:"mrow",fence:"true"},"("),(0,s.kt)("mi",{parentName:"mrow"},"p"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,s.kt)("mi",{parentName:"mrow"},"y"),(0,s.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"\u2223"),(0,s.kt)("mi",{parentName:"mrow",mathvariant:"bold"},"x"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,s.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"\u2223"),(0,s.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"\u2223"),(0,s.kt)("mi",{parentName:"mrow"},"p"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,s.kt)("mi",{parentName:"mrow"},"y"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,s.kt)("mo",{parentName:"mrow",fence:"true"},")")),(0,s.kt)("mo",{parentName:"mrow",fence:"true"},")"))),(0,s.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"\\mathbf{IS}(G)=\\exp\\left(\\mathbb{E}_{\\mathbf{x}\\sim p_g}D_{KL}\\left(p(y|\\mathbf{x})||p(y)\\right)\\right)")))),(0,s.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,s.kt)("span",{parentName:"span",className:"mord"},(0,s.kt)("span",{parentName:"span",className:"mord mathbf"},"IS")),(0,s.kt)("span",{parentName:"span",className:"mopen"},"("),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal"},"G"),(0,s.kt)("span",{parentName:"span",className:"mclose"},")"),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,s.kt)("span",{parentName:"span",className:"mrel"},"="),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"1.2em",verticalAlign:"-0.35em"}}),(0,s.kt)("span",{parentName:"span",className:"mop"},"exp"),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,s.kt)("span",{parentName:"span",className:"minner"},(0,s.kt)("span",{parentName:"span",className:"mopen delimcenter",style:{top:"0em"}},(0,s.kt)("span",{parentName:"span",className:"delimsizing size1"},"(")),(0,s.kt)("span",{parentName:"span",className:"mord"},(0,s.kt)("span",{parentName:"span",className:"mord mathbb"},"E"),(0,s.kt)("span",{parentName:"span",className:"msupsub"},(0,s.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.1611em"}},(0,s.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,s.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,s.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,s.kt)("span",{parentName:"span",className:"mord mtight"},(0,s.kt)("span",{parentName:"span",className:"mord mathbf mtight"},"x"),(0,s.kt)("span",{parentName:"span",className:"mrel mtight"},"\u223c"),(0,s.kt)("span",{parentName:"span",className:"mord mtight"},(0,s.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"p"),(0,s.kt)("span",{parentName:"span",className:"msupsub"},(0,s.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.1645em"}},(0,s.kt)("span",{parentName:"span",style:{top:"-2.357em",marginLeft:"0em",marginRight:"0.0714em"}},(0,s.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.5em"}}),(0,s.kt)("span",{parentName:"span",className:"sizing reset-size3 size1 mtight"},(0,s.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.03588em"}},"g")))),(0,s.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.2819em"}},(0,s.kt)("span",{parentName:"span"})))))))))),(0,s.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3473em"}},(0,s.kt)("span",{parentName:"span"})))))),(0,s.kt)("span",{parentName:"span",className:"mord"},(0,s.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02778em"}},"D"),(0,s.kt)("span",{parentName:"span",className:"msupsub"},(0,s.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3283em"}},(0,s.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0278em",marginRight:"0.05em"}},(0,s.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,s.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,s.kt)("span",{parentName:"span",className:"mord mtight"},(0,s.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.07153em"}},"K"),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"L"))))),(0,s.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,s.kt)("span",{parentName:"span"})))))),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,s.kt)("span",{parentName:"span",className:"minner"},(0,s.kt)("span",{parentName:"span",className:"mopen delimcenter",style:{top:"0em"}},"("),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal"},"p"),(0,s.kt)("span",{parentName:"span",className:"mopen"},"("),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"y"),(0,s.kt)("span",{parentName:"span",className:"mord"},"\u2223"),(0,s.kt)("span",{parentName:"span",className:"mord mathbf"},"x"),(0,s.kt)("span",{parentName:"span",className:"mclose"},")"),(0,s.kt)("span",{parentName:"span",className:"mord"},"\u2223\u2223"),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal"},"p"),(0,s.kt)("span",{parentName:"span",className:"mopen"},"("),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"y"),(0,s.kt)("span",{parentName:"span",className:"mclose"},")"),(0,s.kt)("span",{parentName:"span",className:"mclose delimcenter",style:{top:"0em"}},")")),(0,s.kt)("span",{parentName:"span",className:"mclose delimcenter",style:{top:"0em"}},(0,s.kt)("span",{parentName:"span",className:"delimsizing size1"},")")))))))),(0,s.kt)("p",{parentName:"li"},"\u901a\u5e38\u8ba1\u7b97 Inception Score \u65f6\uff0c\u4f1a\u751f\u6210 50000 \u4e2a\u56fe\u7247\uff0c\u7136\u540e\u628a\u5b83\u5206\u6210 10 \u4efd\uff0c\u6bcf\u4efd 5000 \u4e2a\uff0c\u5206\u522b\u4ee3\u5165\u516c\u5f0f\u8ba1\u7b97 10 \u6b21 Inception Score\uff0c\u518d\u8ba1\u7b97\u5747\u503c\u548c\u65b9\u5dee\uff0c\u4f5c\u4e3a\u6700\u7ec8\u7684\u8861\u91cf\u6307\u6807\uff08\u5747\u503c\xb1\u65b9\u5dee\uff09\u3002\u4f46\u662f 5000 \u4e2a\u6837\u672c\u5f80\u5f80\u4e0d\u8db3\u4ee5\u5f97\u5230\u51c6\u786e\u7684\u8fb9\u7f18\u5206\u5e03 ",(0,s.kt)("span",{parentName:"p",className:"math math-inline"},(0,s.kt)("span",{parentName:"span",className:"katex"},(0,s.kt)("span",{parentName:"span",className:"katex-mathml"},(0,s.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,s.kt)("semantics",{parentName:"math"},(0,s.kt)("mrow",{parentName:"semantics"},(0,s.kt)("mi",{parentName:"mrow"},"p"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,s.kt)("mi",{parentName:"mrow"},"y"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,s.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"p(y)")))),(0,s.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal"},"p"),(0,s.kt)("span",{parentName:"span",className:"mopen"},"("),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"y"),(0,s.kt)("span",{parentName:"span",className:"mclose"},")"))))),"\u200b\uff0c\u5c24\u5176\u662f\u50cf ImageNet \u8fd9\u79cd\u5305\u542b 1000 \u4e2a\u7c7b\u7684\u6570\u636e\u96c6\u3002"),(0,s.kt)("p",{parentName:"li"},"StyleGAN-nada \u4ee5\u53ca IPL \u5728\u7ecf\u8fc7 batch_size \u4e3a 2\uff0citeration \u4e3a 300 \u7684\u8bad\u7ec3\u540e\uff08\u5176\u4e2d IPL \u7684 Mapper \u662f\u4ee5 batch_size \u4e3a 32\uff0citeration \u4e3a 300 \u8fdb\u884c\u8bad\u7ec3\u7684\uff09\uff0c\u4e8c\u8005\u7684 IS \u5206\u522b\u4e3a ",(0,s.kt)("inlineCode",{parentName:"p"},"(2.2960, 0.2042)")," \u4ee5\u53ca ",(0,s.kt)("inlineCode",{parentName:"p"},"(2.6420, 0.1959)"),"\u3002")),(0,s.kt)("li",{parentName:"ol"},(0,s.kt)("p",{parentName:"li"},"Fr\xe9chet Inception Distance\uff08FID\uff09"),(0,s.kt)("p",{parentName:"li"},(0,s.kt)("strong",{parentName:"p"},"\u8bc4\u4f30\u76ee\u6807\u57df\u7684\u98ce\u683c")),(0,s.kt)("p",{parentName:"li"},"\u8ba1\u7b97 IS \u65f6\u53ea\u8003\u8651\u4e86\u751f\u6210\u6837\u672c\uff0c\u6ca1\u6709\u8003\u8651\u771f\u5b9e\u6570\u636e\uff0c\u5373 ",(0,s.kt)("strong",{parentName:"p"},"IS \u65e0\u6cd5\u53cd\u6620\u771f\u5b9e\u6570\u636e\u548c\u6837\u672c\u4e4b\u95f4\u7684\u8ddd\u79bb"),"\uff0cIS \u5224\u65ad\u6570\u636e\u771f\u5b9e\u6027\u7684\u4f9d\u636e\uff0c\u6e90\u4e8e Inception V3 \u7684\u8bad\u7ec3\u96c6 ImageNet\uff0c\u5728 Inception V3 \u7684\u201c\u4e16\u754c\u89c2\u201d\u4e0b\uff0c\u51e1\u662f\u4e0d\u50cf ImageNet \u7684\u6570\u636e\uff0c\u90fd\u662f\u4e0d\u771f\u5b9e\u7684\uff0c\u90fd\u4e0d\u80fd\u4fdd\u8bc1\u8f93\u51fa\u4e00\u4e2a sharp \u7684 predition distribution\u3002\u56e0\u6b64\uff0c\u8981\u60f3\u66f4\u597d\u5730\u8bc4\u4ef7\u751f\u6210\u7f51\u7edc\uff0c\u5c31\u8981\u4f7f\u7528\u66f4\u52a0\u6709\u6548\u7684\u65b9\u6cd5\u8ba1\u7b97\u771f\u5b9e\u5206\u5e03\u4e0e\u751f\u6210\u6837\u672c\u4e4b\u95f4\u7684\u8ddd\u79bb\u3002"),(0,s.kt)("p",{parentName:"li"},"FID \u8ddd\u79bb\u8ba1\u7b97\u771f\u5b9e\u6837\u672c\uff0c\u751f\u6210\u6837\u672c\u5728\u7279\u5f81\u7a7a\u95f4\u4e4b\u95f4\u7684\u8ddd\u79bb\u3002\u9996\u5148\u5229\u7528 Inception \u7f51\u7edc\u6765\u63d0\u53d6\u7279\u5f81\uff0c\u7136\u540e\u4f7f\u7528\u9ad8\u65af\u6a21\u578b\u5bf9\u7279\u5f81\u7a7a\u95f4\u8fdb\u884c\u5efa\u6a21\uff0c\u518d\u53bb\u6c42\u89e3\u4e24\u4e2a\u7279\u5f81\u4e4b\u95f4\u7684\u8ddd\u79bb\uff0c\u8f83\u4f4e\u7684 FID \u610f\u5473\u7740\u8f83\u9ad8\u56fe\u7247\u7684\u8d28\u91cf\u548c\u591a\u6837\u6027\u3002"),(0,s.kt)("p",{parentName:"li"},"StyleGAN-nada \u4ee5\u53ca IPL \u5728\u7ecf\u8fc7 batch_size \u4e3a 2\uff0citeration \u4e3a 300 \u7684\u8bad\u7ec3\u540e\uff08\u5176\u4e2d IPL \u7684 Mapper \u662f\u4ee5 batch_size \u4e3a 32\uff0citeration \u4e3a 300 \u8fdb\u884c\u8bad\u7ec3\u7684\uff09\uff0c\u4e8c\u8005\u7684 FID \u5206\u522b\u4e3a ",(0,s.kt)("inlineCode",{parentName:"p"},"84")," \u4ee5\u53ca ",(0,s.kt)("inlineCode",{parentName:"p"},"58"),"\u3002")),(0,s.kt)("li",{parentName:"ol"},(0,s.kt)("p",{parentName:"li"},"Single Image Fr\xe9chet Inception Score\uff08SIFID\uff09"),(0,s.kt)("p",{parentName:"li"},"FID \u6d4b\u91cf\u751f\u6210\u7684\u56fe\u50cf\u7684\u6df1\u5c42\u7279\u5f81\u5206\u5e03\u4e0e\u771f\u5b9e\u56fe\u50cf\u7684\u5206\u5e03\u4e4b\u95f4\u7684\u504f\u5dee\u3002\u5728 ICCV 2019 Best Paper \u4e2d\u63d0\u51fa\u4e86 SIFID\uff0c\u53ea\u4f7f\u7528\u4e00\u5f20\u771f\u5b9e\u76ee\u6807\u57df\u7684\u56fe\u50cf\u3002\u4e0e FID \u4e0d\u540c\uff0cSFID \u4e0d\u4f7f\u7528 Inception Network \u4e2d\u6700\u540e\u4e00\u4e2a\u6c60\u5316\u5c42\u4e4b\u540e\u7684\u6fc0\u6d3b\u77e2\u91cf\uff08\u6bcf\u4e2a\u56fe\u50cf\u4e00\u4e2a\u5411\u91cf\uff09\uff0c\u800c\u662f\u5728\u7b2c\u4e8c\u4e2a\u6c60\u5c42\u4e4b\u524d\u7684\u5377\u79ef\u5c42\u8f93\u51fa\u5904\u4f7f\u7528\u6df1\u5c42\u7279\u5f81\u7684\u5185\u90e8\u5206\u5e03\uff08feature map \u4e2d\u6bcf\u4e2a\u4f4d\u7f6e\u4e00\u4e2a\u5411\u91cf\uff09\u3002\u6700\u7ec8 SIFID \u662f\u771f\u5b9e\u56fe\u50cf\u548c\u751f\u6210\u7684\u6837\u672c\u4e2d\u8fd9\u4e9b\u7279\u5f81\u7684\u7edf\u8ba1\u6570\u636e\u4e4b\u95f4\u7684 FID\u3002")),(0,s.kt)("li",{parentName:"ol"},(0,s.kt)("p",{parentName:"li"},"Structural Consistency Score\uff08SCS\uff09"),(0,s.kt)("p",{parentName:"li"},"\u8bc4\u4f30\u56fe\u50cf\u7684\u7ed3\u6784\u4fdd\u5b58\u80fd\u529b")),(0,s.kt)("li",{parentName:"ol"},(0,s.kt)("p",{parentName:"li"},"Identity Similarity\uff08ID\uff09"),(0,s.kt)("p",{parentName:"li"},"\u8bc4\u4f30\u56fe\u50cf\u7684\u7279\u5f81\u4fdd\u5b58\u80fd\u529b"))),(0,s.kt)("h2",{id:"\u65b0\u589e\u529f\u80fd"},"\u65b0\u589e\u529f\u80fd"),(0,s.kt)("h3",{id:"\u81ea\u5b9a\u4e49\u56fe\u50cf\u98ce\u683c\u8fc1\u79fb"},"\u81ea\u5b9a\u4e49\u56fe\u50cf\u98ce\u683c\u8fc1\u79fb"),(0,s.kt)("p",null,"\u65b0\u589e\u4e86\u81ea\u5b9a\u4e49\u56fe\u50cf\u98ce\u683c\u8fc1\u79fb\u529f\u80fd\u3002"),(0,s.kt)("p",null," ",(0,s.kt)("a",{parentName:"p",href:"https://yuval-alaluf.github.io/hyperstyle/"},"HyperStyle "),"\u4e2d\u7684 e4e encoder \u5c06\u81ea\u5b9a\u4e49\u7684\u771f\u5b9e\u56fe\u50cf\u7f16\u7801\u81f3 StyleGAN2 \u4e2d\u7684 W \u7a7a\u95f4\u751f\u6210 latent codes\uff0c\u518d\u5c06\u5176\u5206\u522b\u8f93\u5165\u81f3\u6e90\u57df\u751f\u6210\u5668\u4ee5\u53ca\u76ee\u6807\u57df\u751f\u6210\u5668\u4ee5\u4ee3\u66ff\u539f\u59cb\u7684\u4ece\u6b63\u6001\u5206\u5e03\u4e2d sample \u51fa\u7684\u968f\u673a\u5411\u91cf\u751f\u6210\u7684 ",(0,s.kt)("inlineCode",{parentName:"p"},"w_codes"),"\uff0c\u4ece\u800c\u5f97\u5230\u76f8\u5e94\u7684\u56fe\u7247\u3002\u5176\u4e2d e4e encoder \u6765\u6e90\u4e8e HyperStyle \u63d0\u4f9b\u7684\u9884\u8bad\u7ec3 checkpoint\u3002"),(0,s.kt)("p",null,"\u4f7f\u7528\u65b9\u6cd5\uff1a\u8fd0\u884c ",(0,s.kt)("inlineCode",{parentName:"p"},"inference.py"),"\uff0c\u8bbe\u7f6e\u5bf9\u5e94\u7684\u53c2\u6570\uff0c\u5982\u751f\u6210\u5668\u4ee5\u53ca e4e encoder \u7684\u8def\u5f84\u3001\u56fe\u50cf\u8def\u5f84\u7b49\uff0c\u6700\u540e\u8fd0\u884c\u5373\u53ef\u3002"),(0,s.kt)("h4",{id:"\u4fee\u6539\u65e5\u5fd7"},"\u4fee\u6539\u65e5\u5fd7"),(0,s.kt)("ol",null,(0,s.kt)("li",{parentName:"ol"},"\u7b2c\u4e00\u6b21\u5c1d\u8bd5\u53ea\u52a0\u8f7d\u4e86 ",(0,s.kt)("inlineCode",{parentName:"li"},"w_encoder")," \u7c7b\u53ca\u5176\u5bf9\u5e94 checkpoint \u53c2\u6570\uff0c\u5bfc\u81f4\u5e76\u672a\u5c06\u771f\u5b9e\u56fe\u7247\u7f16\u7801\u5230 StyleGAN \u7684 W \u7a7a\u95f4\u4e2d\uff0c\u6ca1\u6709 inversion \u51fa\u5408\u7406\u7684\u7ed3\u679c"),(0,s.kt)("li",{parentName:"ol"},"\u7b2c\u4e8c\u6b21\u5c1d\u8bd5\u4f7f\u7528\u4e86 ",(0,s.kt)("inlineCode",{parentName:"li"},"restyle_e4e_encoder"),"\uff0c\u4f46\u662f\u6ca1\u6709\u4f7f\u7528 dlib \u8fdb\u884c alignment\uff0c\u4e5f\u6ca1\u6709\u4f7f\u7528 restyle \u6a21\u578b\u5728\u53cd\u6f14\u65f6\u4f7f\u7528\u7684\u591a\u6b21\u8fdb\u884c\u524d\u5411\u4f20\u64ad\u6765\u4fee\u6b63 latent code \u7684\u7b56\u7565\u3002\u6b64\u6b21\u5c1d\u8bd5\u867d\u7136\u53cd\u6f14\u51fa\u4e86\u5408\u7406\u7684\u4eba\u50cf\uff0c\u4f46\u662f\u4eba\u50cf\u7684\u7279\u5f81\u4fdd\u5b58\u80fd\u529b\u975e\u5e38\u5f31"),(0,s.kt)("li",{parentName:"ol"},"\u7b2c\u4e09\u6b21\u5c1d\u8bd5\u89e3\u51b3\u4e86\u4e0a\u4e00\u6b21\u53d1\u73b0\u7684\u95ee\u9898\uff0c\u52a0\u5165 dlib \u63d0\u4f9b\u7684 landmark \u68c0\u6d4b\u4ee5\u5b9e\u73b0 alignment\uff0c\u5e76\u4e14\u4f7f\u7528 ",(0,s.kt)("inlineCode",{parentName:"li"},"run_loop")," \u51fd\u6570\u5728 restyle_e4e_encoder \u4e2d\u8fdb\u884c\u591a\u6b21\u524d\u5411\u4f20\u64ad\u4ee5\u4fee\u6b63\u5f97\u5230\u7684 W \u7a7a\u95f4\u7684 latent code\uff0c\u6548\u679c\u8f83\u597d"),(0,s.kt)("li",{parentName:"ol"},"\u5bf9\u6bd4 pSp \u548c e4e encoder\uff0cpSp \u5bf9\u4eba\u8138\u56fe\u50cf\u7684\u8fd8\u539f\u80fd\u529b\u8f83\u5f3a\uff0c\u4f46\u662f\u4f1a\u5bfc\u81f4\u76ee\u6807\u57df\u56fe\u50cf\u5177\u6709\u968f\u673a\u7684\u5f69\u8272\u5149\u6655")),(0,s.kt)("h2",{id:"\u95ee\u9898\u63d0\u51fa\u4e0e\u6539\u8fdb"},"\u95ee\u9898\u63d0\u51fa\u4e0e\u6539\u8fdb"),(0,s.kt)("h3",{id:"\u8bad\u7ec3\u9636\u6bb5\u4eba\u5de5-prompts-\u7684\u4f5c\u7528\u662f\u4ec0\u4e48"},"\u8bad\u7ec3\u9636\u6bb5\u4eba\u5de5 prompts \u7684\u4f5c\u7528\u662f\u4ec0\u4e48\uff1f"),(0,s.kt)("h4",{id:"\u4f5c\u7528"},"\u4f5c\u7528"),(0,s.kt)("ol",null,(0,s.kt)("li",{parentName:"ol"},"\u4eba\u5de5\u8bbe\u8ba1\u7684 prompts \u5728\u8ba1\u7b97 ",(0,s.kt)("inlineCode",{parentName:"li"},"text_features")," \u65f6\u7528\u4e8e\u5b9a\u4f4d ",(0,s.kt)("inlineCode",{parentName:"li"},"eot")," \u5c42\u7b26\u53f7\u6240\u8868\u793a\u7684\u7ef4\u5ea6\u6765\u8fdb\u884c\u6295\u5f71\uff0c\u4f46\u4e0d\u53c2\u4e0e ",(0,s.kt)("inlineCode",{parentName:"li"},"text_features")," \u7684\u5b9e\u9645\u8ba1\u7b97"),(0,s.kt)("li",{parentName:"ol"},"\u5728\u8bad\u7ec3 Mapper \u7684 stage 1 \u7684\u635f\u5931\u51fd\u6570\u4e2d\uff0c\u5728\u8ba1\u7b97\u5bf9\u6bd4\u635f\u5931\u51fd\u6570\u65f6\uff0cMapper \u5b66\u4e60\u5230\u7684 prompts \u7684\u6587\u5b57\u7279\u5f81\u7279\u5f81\u4f1a\u4e0e\u4eba\u5de5\u8bbe\u8ba1\u7684 prompts \u7684\u6587\u5b57\u7279\u5f81\u8fdb\u884c element-wise \u7684\u76f8\u52a0\uff0c\u6700\u540e\u518d\u4e0e \u6e90\u57df\u751f\u6210\u5668\u5f97\u5230\u7684\u56fe\u7247\u7684\u56fe\u50cf\u7279\u5f81\u8fdb\u884c\u5bf9\u6bd4\u635f\u5931\u8ba1\u7b97")),(0,s.kt)("h4",{id:"\u601d\u8003"},"\u601d\u8003"),(0,s.kt)("p",null,"IPL \u65b9\u6cd5\u5bf9 Mapper \u5b66\u4e60\u5230\u7684 prompts \u9664\u4e86\uff081\uff09\u4f7f\u7528\u5bf9\u6bd4\u5b66\u4e60\u4f7f prompts \u5b66\u4e60\u5230\u6e90\u57df\u56fe\u7247\u7684\u7279\u5f81\u4ee5\u53ca\uff082\uff09\u4f7f\u7528\u57df\u6b63\u5219\u5316\u4f7f\u5f97 prompts \u5411\u76ee\u6807\u57df\u6807\u7b7e\u5bf9\u9f50\u4e4b\u5916\uff0c\u5e76\u6ca1\u6709\u4f7f\u7528\u5176\u4ed6\u4e0e\u4eba\u5de5\u8bbe\u8ba1\u7684 prompts \u6709\u5173\u7684\u6b63\u5219\u5316\u65b9\u5f0f\u6765\u7ea6\u675f prompts \u7684\u5b66\u4e60\uff0c\u56e0\u6b64\u4eba\u5de5\u8bbe\u8ba1\u7684 prompts \u53ef\u80fd\u5e76\u6ca1\u6709\u8d77\u5230\u592a\u5927\u7684\u7ea6\u675f\u4f5c\u7528\u3002"),(0,s.kt)("p",null,"\u5982\u679c\u5bf9\u6bd4\u5b66\u4e60\u635f\u5931\u662f\u4e3a\u4e86\u8ba9 Mapper \u81ea\u76d1\u7763\u5b66\u4e60\u5230\u56fe\u7247\u7684\u7279\u5f81\u5916\uff0c\u90a3\u4e48\u662f\u5426\u53ef\u4ee5\u5bf9\u57df\u6b63\u5219\u5316\u635f\u5931\u8fdb\u884c\u6539\u8fdb\uff0c\u7ea6\u675f\u5b66\u4e60\u5230\u7684 prompts \u5411\u4eba\u5de5\u8bbe\u8ba1\u7684\u521d\u59cb\u5316 prompts \u5bf9\u9f50\uff0c\u4ee5\u5b9e\u73b0\u7c7b\u4f3c\u4e8e Stable Diffusion \u7c7b\u4f3c\u7684 prompts \u63a7\u5236\u56fe\u50cf\u751f\u6210\u7684\u6548\u679c\u3002"),(0,s.kt)("h3",{id:"mapper-\u7ed3\u6784\u7684\u8bbe\u8ba1"},"Mapper \u7ed3\u6784\u7684\u8bbe\u8ba1"),(0,s.kt)("p",null,"Mapper \u7684\u4f5c\u7528\u662f\u4ece W \u7a7a\u95f4\u7684\u9690\u5f0f\u4ee3\u7801\u4e2d\u5b66\u4e60\u51fa\u7b26\u5408\u6e90\u57df\u56fe\u7247\u7279\u5f81\u4ee5\u53ca\u7b26\u5408\u76ee\u6807\u57df\u6587\u5b57\u7279\u5f81\u7684 prompts\u3002"),(0,s.kt)("p",null,"\u539f\u59cb"))}k.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/en/assets/js/86cc22d4.aa8c1fa6.js b/en/assets/js/86cc22d4.aa8c1fa6.js new file mode 100644 index 000000000..627b113d7 --- /dev/null +++ b/en/assets/js/86cc22d4.aa8c1fa6.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunknpy_notebook=self.webpackChunknpy_notebook||[]).push([[3576],{5745:e=>{e.exports=JSON.parse('{"name":"docusaurus-plugin-content-pages","id":"default"}')}}]); \ No newline at end of file diff --git a/en/assets/js/935f2afb.1286ce63.js b/en/assets/js/935f2afb.1286ce63.js new file mode 100644 index 000000000..4f8da83c8 --- /dev/null +++ b/en/assets/js/935f2afb.1286ce63.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunknpy_notebook=self.webpackChunknpy_notebook||[]).push([[53],{1109:e=>{e.exports=JSON.parse('{"pluginId":"default","version":"current","label":"Next","banner":null,"badge":false,"noIndex":false,"className":"docs-version-current","isLast":true,"docsSidebars":{"deep_learning":[{"type":"link","label":"Welcome","href":"/en/docs/Deep-Learning/intro","docId":"Deep-Learning/intro"},{"type":"link","label":"\u67e5\u6f0f\u8865\u7f3a","href":"/en/docs/Deep-Learning/Fill-The-Gaps","docId":"Deep-Learning/Fill-The-Gaps"},{"type":"category","label":"\u57fa\u7840\u77e5\u8bc6","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"AlexNet","href":"/en/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/AlexNet","docId":"Deep-Learning/\u57fa\u7840\u77e5\u8bc6/AlexNet"},{"type":"link","label":"\u5377\u79ef\u5c42","href":"/en/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/ConvolutionalLayer","docId":"Deep-Learning/\u57fa\u7840\u77e5\u8bc6/ConvolutionalLayer"},{"type":"link","label":"\u4ece\u5168\u8fde\u63a5\u5230\u5377\u79ef","href":"/en/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/FromFullyConnectedLayerToConvolutionalLayer","docId":"Deep-Learning/\u57fa\u7840\u77e5\u8bc6/FromFullyConnectedLayerToConvolutionalLayer"},{"type":"link","label":"K-fold cross-validation","href":"/en/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/K-foldCross-validation","docId":"Deep-Learning/\u57fa\u7840\u77e5\u8bc6/K-foldCross-validation"},{"type":"link","label":"LeNet","href":"/en/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/LeNet","docId":"Deep-Learning/\u57fa\u7840\u77e5\u8bc6/LeNet"},{"type":"link","label":"\u5173\u4e8eLogistic Regression","href":"/en/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/LogisticRegression","docId":"Deep-Learning/\u57fa\u7840\u77e5\u8bc6/LogisticRegression"},{"type":"link","label":"Perceptron","href":"/en/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/Perceptron","docId":"Deep-Learning/\u57fa\u7840\u77e5\u8bc6/Perceptron"},{"type":"link","label":"\u6c60\u5316\u5c42","href":"/en/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/PoolingLayer","docId":"Deep-Learning/\u57fa\u7840\u77e5\u8bc6/PoolingLayer"},{"type":"link","label":"PyTorch\u57fa\u7840","href":"/en/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/PytorchBasics","docId":"Deep-Learning/\u57fa\u7840\u77e5\u8bc6/PytorchBasics"},{"type":"link","label":"\u6b63\u5219\u5316\u4e0e\u6743\u91cd\u8870\u9000","href":"/en/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/\u6b63\u5219\u5316\u4e0e\u6743\u91cd\u8870\u9000","docId":"Deep-Learning/\u57fa\u7840\u77e5\u8bc6/\u6b63\u5219\u5316\u4e0e\u6743\u91cd\u8870\u9000"},{"type":"link","label":"\u6df1\u5ea6\u53ef\u5206\u79bb\u5377\u79ef","href":"/en/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/\u6df1\u5ea6\u53ef\u5206\u79bb\u5377\u79ef","docId":"Deep-Learning/\u57fa\u7840\u77e5\u8bc6/\u6df1\u5ea6\u53ef\u5206\u79bb\u5377\u79ef"},{"type":"link","label":"\u6fc0\u6d3b\u51fd\u6570\u4e0eLoss\u7684\u68af\u5ea6","href":"/en/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/\u6fc0\u6d3b\u51fd\u6570\u4e0eLoss\u7684\u68af\u5ea6","docId":"Deep-Learning/\u57fa\u7840\u77e5\u8bc6/\u6fc0\u6d3b\u51fd\u6570\u4e0eLoss\u7684\u68af\u5ea6"}]},{"type":"category","label":"\u5b9e\u6218\u7ec3\u4e60","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"Visdom\u53ef\u89c6\u5316","href":"/en/docs/Deep-Learning/\u5b9e\u6218\u7ec3\u4e60/Visdom Visualization","docId":"Deep-Learning/\u5b9e\u6218\u7ec3\u4e60/Visdom Visualization"},{"type":"link","label":"Speaker Classification","href":"/en/docs/Deep-Learning/\u5b9e\u6218\u7ec3\u4e60/Speaker Classification","docId":"Deep-Learning/\u5b9e\u6218\u7ec3\u4e60/Speaker Classification"},{"type":"link","label":"\u672c\u79d1\u6bd5\u4e1a\u8bba\u6587\uff1a\u57fa\u4e8e Prompt Learning \u7684\u89c6\u89c9-\u8bed\u8a00\u5927\u6a21\u578b\u5728\u56fe\u50cf\u751f\u6210\u4e2d\u7684\u5e94\u7528\u4e0e\u7814\u7a76","href":"/en/docs/Deep-Learning/\u5b9e\u6218\u7ec3\u4e60/Undergraduate-Dissertation","docId":"Deep-Learning/\u5b9e\u6218\u7ec3\u4e60/Undergraduate-Dissertation"}]},{"type":"category","label":"\u5927\u6a21\u578b","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"\u81ea\u6ce8\u610f\u529b\uff08Self-Attention\uff09","href":"/en/docs/Deep-Learning/\u5927\u6a21\u578b/Self-Attention","docId":"Deep-Learning/\u5927\u6a21\u578b/Self-Attention"},{"type":"link","label":"NeurIPS 2017: Attention Is All You Need","href":"/en/docs/Deep-Learning/\u5927\u6a21\u578b/Attention-Is-All-You-Need","docId":"Deep-Learning/\u5927\u6a21\u578b/Attention-Is-All-You-Need"},{"type":"link","label":"\u81ea\u76d1\u7763\u5b66\u4e60\uff08Self-Supervised Learning\uff09","href":"/en/docs/Deep-Learning/\u5927\u6a21\u578b/Self-Supervised-Learning","docId":"Deep-Learning/\u5927\u6a21\u578b/Self-Supervised-Learning"},{"type":"link","label":"\u56fe\u50cf\u751f\u6210\u6a21\u578b","href":"/en/docs/Deep-Learning/\u5927\u6a21\u578b/Image-Generation-Models","docId":"Deep-Learning/\u5927\u6a21\u578b/Image-Generation-Models"},{"type":"link","label":"\u751f\u6210\u5f0f\u5bf9\u6297\u7f51\u7edc\uff08GAN\uff09","href":"/en/docs/Deep-Learning/\u5927\u6a21\u578b/GAN","docId":"Deep-Learning/\u5927\u6a21\u578b/GAN"},{"type":"link","label":"\u6269\u6563\u6a21\u578b\uff08Diffusion Model\uff09","href":"/en/docs/Deep-Learning/\u5927\u6a21\u578b/Diffusion-Model","docId":"Deep-Learning/\u5927\u6a21\u578b/Diffusion-Model"},{"type":"category","label":"Prompt Learning","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"\u672c\u79d1\u6bd5\u4e1a\u8bba\u6587\uff1a\u57fa\u4e8e Prompt Learning \u7684\u89c6\u89c9-\u8bed\u8a00\u5927\u6a21\u578b\u5728\u56fe\u50cf\u751f\u6210\u4e2d\u7684\u5e94\u7528\u4e0e\u7814\u7a76","href":"/en/docs/Deep-Learning/\u5927\u6a21\u578b/Prompt Learning/Undergraduate-Dissertation","docId":"Deep-Learning/\u5927\u6a21\u578b/Prompt Learning/Undergraduate-Dissertation"}]}]},{"type":"category","label":"\u8bba\u6587\u7b14\u8bb0","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"NeurIPS 2017: Attention Is All You Need","href":"/en/docs/Deep-Learning/\u8bba\u6587\u7b14\u8bb0/Attention Is All You Need","docId":"Deep-Learning/\u8bba\u6587\u7b14\u8bb0/Attention Is All You Need"},{"type":"link","label":"NeurIPS 2020: Denoising Diffusion Probabilistic Models","href":"/en/docs/Deep-Learning/\u8bba\u6587\u7b14\u8bb0/Denoising Diffusion Probabilistic Models","docId":"Deep-Learning/\u8bba\u6587\u7b14\u8bb0/Denoising Diffusion Probabilistic Models"},{"type":"link","label":"CVPR 2022: High-Resolution Image Synthesis with Latent Diffusion Models","href":"/en/docs/Deep-Learning/\u8bba\u6587\u7b14\u8bb0/High-Resolution Image Synthesis with Latent Diffusion Models","docId":"Deep-Learning/\u8bba\u6587\u7b14\u8bb0/High-Resolution Image Synthesis with Latent Diffusion Models"},{"type":"link","label":"CVPR 2023: Zero-shot Generative Model Adaptation via Image-specific Prompt Learning","href":"/en/docs/Deep-Learning/\u8bba\u6587\u7b14\u8bb0/Zero-shot Generative Model Adaptation via Image-specific Prompt Learning","docId":"Deep-Learning/\u8bba\u6587\u7b14\u8bb0/Zero-shot Generative Model Adaptation via Image-specific Prompt Learning"}]}],"tui_mian":[{"type":"link","label":"Welcome","href":"/en/docs/Tui-Mian/intro","docId":"Tui-Mian/intro"},{"type":"link","label":"\u7ecf\u9a8c\u8d34\uff1a2023\u5e74\u53cc\u975e\u8ba1\u7b97\u673a\u4fdd\u7814\u7ecf\u5386","href":"/en/docs/Tui-Mian/Summary","docId":"Tui-Mian/Summary"},{"type":"category","label":"\u6570\u5b66","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"\u590f\u4ee4\u8425\u9762\u8bd5\u6570\u5b66\u90e8\u5206\u590d\u4e60","href":"/en/docs/Tui-Mian/\u6570\u5b66/\u590f\u4ee4\u8425\u9762\u8bd5\u6570\u5b66\u90e8\u5206\u590d\u4e60","docId":"Tui-Mian/\u6570\u5b66/\u590f\u4ee4\u8425\u9762\u8bd5\u6570\u5b66\u90e8\u5206\u590d\u4e60"},{"type":"link","label":"\u6982\u7387\u8bba","href":"/en/docs/Tui-Mian/\u6570\u5b66/\u6982\u7387\u8bba","docId":"Tui-Mian/\u6570\u5b66/\u6982\u7387\u8bba"},{"type":"link","label":"\u7ebf\u6027\u4ee3\u6570","href":"/en/docs/Tui-Mian/\u6570\u5b66/\u7ebf\u6027\u4ee3\u6570","docId":"Tui-Mian/\u6570\u5b66/\u7ebf\u6027\u4ee3\u6570"}]},{"type":"category","label":"\u673a\u8bd5","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"\u5927\u6570\u9664\u6cd5","href":"/en/docs/Tui-Mian/\u673a\u8bd5/\u5927\u6570\u9664\u6cd5","docId":"Tui-Mian/\u673a\u8bd5/\u5927\u6570\u9664\u6cd5"}]},{"type":"category","label":"\u7b80\u5386","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"\u7b80\u5386\u9762\u8bd5\u51c6\u5907","href":"/en/docs/Tui-Mian/\u7b80\u5386/\u7b80\u5386\u9762\u8bd5\u51c6\u5907","docId":"Tui-Mian/\u7b80\u5386/\u7b80\u5386\u9762\u8bd5\u51c6\u5907"}]},{"type":"category","label":"\u8ba1\u7b97\u673a\u57fa\u7840\u7efc\u5408","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"\u6570\u636e\u7ed3\u6784","href":"/en/docs/Tui-Mian/\u8ba1\u7b97\u673a\u57fa\u7840\u7efc\u5408/\u6570\u636e\u7ed3\u6784","docId":"Tui-Mian/\u8ba1\u7b97\u673a\u57fa\u7840\u7efc\u5408/\u6570\u636e\u7ed3\u6784"}]}],"algorithms":[{"type":"link","label":"Welcome","href":"/en/docs/Algorithms/intro","docId":"Algorithms/intro"},{"type":"link","label":"STL\u6a21\u677f","href":"/en/docs/Algorithms/STL\u6a21\u677f","docId":"Algorithms/STL\u6a21\u677f"},{"type":"link","label":"\u673a\u8bd5\u6280\u5de7\u4e0eSTL","href":"/en/docs/Algorithms/\u673a\u8bd5\u6280\u5de7\u4e0eSTL","docId":"Algorithms/\u673a\u8bd5\u6280\u5de7\u4e0eSTL"},{"type":"category","label":"\u9898\u89e3","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"\u4e00\u7ef4\u524d\u7f00\u548c\uff08\u5237\u51fa\u4e00\u9053\u5899\uff09","href":"/en/docs/Algorithms/\u9898\u89e3/\u4e00\u7ef4\u524d\u7f00\u548c\uff08\u5237\u51fa\u4e00\u9053\u5899\uff09","docId":"Algorithms/\u9898\u89e3/\u4e00\u7ef4\u524d\u7f00\u548c\uff08\u5237\u51fa\u4e00\u9053\u5899\uff09"},{"type":"link","label":"\u53cd\u5e8f\u8f93\u51fa","href":"/en/docs/Algorithms/\u9898\u89e3/\u53cd\u5e8f\u8f93\u51fa","docId":"Algorithms/\u9898\u89e3/\u53cd\u5e8f\u8f93\u51fa"},{"type":"link","label":"\u6392\u5217\u7ec4\u5408\uff08\u6c4230\u7684\u500d\u6570\uff09","href":"/en/docs/Algorithms/\u9898\u89e3/\u6392\u5217\u7ec4\u5408\uff08\u6c4230\u7684\u500d\u6570\uff09","docId":"Algorithms/\u9898\u89e3/\u6392\u5217\u7ec4\u5408\uff08\u6c4230\u7684\u500d\u6570\uff09"}]}],"curriculum":[{"type":"link","label":"Welcome","href":"/en/docs/Curriculum/intro","docId":"Curriculum/intro"},{"type":"category","label":"\u6570\u5b57\u56fe\u50cf\u5904\u7406","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"\u6570\u5b57\u56fe\u50cf\u5904\u7406\u590d\u4e60\u7b14\u8bb0","href":"/en/docs/Curriculum/\u6570\u5b57\u56fe\u50cf\u5904\u7406/Note","docId":"Curriculum/\u6570\u5b57\u56fe\u50cf\u5904\u7406/Note"}]},{"type":"category","label":"\u7f16\u8bd1\u539f\u7406","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"\u7f16\u8bd1\u539f\u7406\u7b14\u8bb0","href":"/en/docs/Curriculum/\u7f16\u8bd1\u539f\u7406/Note","docId":"Curriculum/\u7f16\u8bd1\u539f\u7406/Note"}]},{"type":"category","label":"\u64cd\u4f5c\u7cfb\u7edf\u8bfe\u8bbe","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"Linux\u7cfb\u7edf\u4e0bGeekOS\u7684\u73af\u5883\u914d\u7f6e","href":"/en/docs/Curriculum/\u64cd\u4f5c\u7cfb\u7edf\u8bfe\u8bbe/Environment-Configuration","docId":"Curriculum/\u64cd\u4f5c\u7cfb\u7edf\u8bfe\u8bbe/Environment-Configuration"},{"type":"link","label":"GeekOS project 0\u7684\u5b9e\u73b0","href":"/en/docs/Curriculum/\u64cd\u4f5c\u7cfb\u7edf\u8bfe\u8bbe/GeekOS-project-0","docId":"Curriculum/\u64cd\u4f5c\u7cfb\u7edf\u8bfe\u8bbe/GeekOS-project-0"}]}],"others":[{"type":"link","label":"Welcome","href":"/en/docs/Others/intro","docId":"Others/intro"},{"type":"category","label":"Linux","collapsible":true,"collapsed":true,"items":[{"type":"category","label":"\u5b9e\u7528\u5de5\u5177","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"\u7ec8\u7aef\u4ee3\u7406","href":"/en/docs/Others/Linux/\u5b9e\u7528\u5de5\u5177/\u7ec8\u7aef\u4ee3\u7406","docId":"Others/Linux/\u5b9e\u7528\u5de5\u5177/\u7ec8\u7aef\u4ee3\u7406"}]},{"type":"category","label":"\u5ba2\u5236\u5316","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"\u5982\u4f55\u8ba9\u4f60\u7684Kde Plasma\u770b\u8d77\u6765\u66f4\u50cfmacOS","href":"/en/docs/Others/Linux/\u5ba2\u5236\u5316/\u5982\u4f55\u8ba9\u4f60\u7684KDE\u770b\u8d77\u6765\u66f4\u50cfmacOS","docId":"Others/Linux/\u5ba2\u5236\u5316/\u5982\u4f55\u8ba9\u4f60\u7684KDE\u770b\u8d77\u6765\u66f4\u50cfmacOS"}]},{"type":"category","label":"\u95ee\u9898\u89e3\u51b3","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"\u6302\u8f7dWindows\u78c1\u76d8\u4e3a\u53ea\u8bfb\u6587\u4ef6","href":"/en/docs/Others/Linux/\u95ee\u9898\u89e3\u51b3/\u53cc\u7cfb\u7edf\u6302\u8f7dWindows\u78c1\u76d8\u4e3a\u53ea\u8bfb\u6587\u4ef6","docId":"Others/Linux/\u95ee\u9898\u89e3\u51b3/\u53cc\u7cfb\u7edf\u6302\u8f7dWindows\u78c1\u76d8\u4e3a\u53ea\u8bfb\u6587\u4ef6"}]}]},{"type":"category","label":"\u535a\u5ba2\u642d\u5efa","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"\u544a\u793a\u680f","href":"/en/docs/Others/\u535a\u5ba2\u642d\u5efa/\u544a\u793a\u680f","docId":"Others/\u535a\u5ba2\u642d\u5efa/\u544a\u793a\u680f"}]}],"acknowledgement":[{"type":"link","label":"\u9e23\u8c22","href":"/en/docs/Acknowledgement/intro","docId":"Acknowledgement/intro"}]},"docs":{"Acknowledgement/intro":{"id":"Acknowledgement/intro","title":"\u9e23\u8c22","description":"\u996e\u6c34\u601d\u6e90","sidebar":"acknowledgement"},"Algorithms/\u673a\u8bd5\u6280\u5de7\u4e0eSTL":{"id":"Algorithms/\u673a\u8bd5\u6280\u5de7\u4e0eSTL","title":"\u673a\u8bd5\u6280\u5de7\u4e0eSTL","description":"\u8f6c\u8f7d\u81eaSonder\u7684\u7b14\u8bb0\u672c","sidebar":"algorithms"},"Algorithms/\u9898\u89e3/\u53cd\u5e8f\u8f93\u51fa":{"id":"Algorithms/\u9898\u89e3/\u53cd\u5e8f\u8f93\u51fa","title":"\u53cd\u5e8f\u8f93\u51fa","description":"\u8bbeN\u662f\u4e00\u4e2a\u56db\u4f4d\u6570\uff0c\u5b83\u76849\u500d\u6070\u597d\u662f\u5176\u53cd\u5e8f\u6570\uff08\u4f8b\u5982\uff1a1234\u7684\u53cd\u5e8f\u6570\u662f4321\uff09\uff0c\u6c42N\u7684\u503c","sidebar":"algorithms"},"Algorithms/\u9898\u89e3/\u6392\u5217\u7ec4\u5408\uff08\u6c4230\u7684\u500d\u6570\uff09":{"id":"Algorithms/\u9898\u89e3/\u6392\u5217\u7ec4\u5408\uff08\u6c4230\u7684\u500d\u6570\uff09","title":"\u6392\u5217\u7ec4\u5408\uff08\u6c4230\u7684\u500d\u6570\uff09","description":"\u8f93\u5165\u4e00\u4e2a\u6570\uff0c\u6bd4\u5982201\uff0c\u8ba9\u6570\u5b57\u968f\u610f\u7ec4\u5408\uff0c\u662f\u5426\u80fd\u7ec4\u5408\u51fa30\u7684\u500d\u6570\uff0c\u5982\u679c\u80fd\u591f\u7ec4\u5408\u621030\u7684\u500d\u6570\uff0c\u5c31\u8f93\u51fa\u6700\u5927\u7684\u500d\u6570\uff0c\u4e0d\u80fd\u5c31\u8f93\u51fa-1","sidebar":"algorithms"},"Algorithms/\u9898\u89e3/\u4e00\u7ef4\u524d\u7f00\u548c\uff08\u5237\u51fa\u4e00\u9053\u5899\uff09":{"id":"Algorithms/\u9898\u89e3/\u4e00\u7ef4\u524d\u7f00\u548c\uff08\u5237\u51fa\u4e00\u9053\u5899\uff09","title":"\u4e00\u7ef4\u524d\u7f00\u548c\uff08\u5237\u51fa\u4e00\u9053\u5899\uff09","description":"\u5728\u4e00\u9762\u5f88\u957f\u7684\u5899\u58c1\u4e0a\uff0c\u5de5\u4eba\u4eec\u7528\u4e0d\u540c\u7684\u6cb9\u6f06\u53bb\u5237\u5899\uff0c\u7136\u800c\u53ef\u80fd\u6709\u4e9b\u5730\u65b9\u5237\u8fc7\u4ee5\u540e\u89c9\u5f97\u4e0d\u597d\u770b\uff0c\u4ed6\u4eec\u4f1a\u91cd\u65b0\u5237\u4e00\u4e0b\u3002\u6709\u4e9b\u90e8\u5206\u56e0\u4e3a\u91cd\u590d\u5237\u4e86\u5f88\u591a\u6b21\u8986\u76d6\u4e86\u5f88\u591a\u5c42\u6cb9\u6f06\uff0c\u5c0f\u8bfa\u5f88\u597d\u5947\u90a3\u4e9b\u5730\u65b9\u88ab\u5237\u8fc7\u591a\u5c11\u79cd\u989c\u8272\u7684\u6cb9\u6f06\u3002","sidebar":"algorithms"},"Algorithms/intro":{"id":"Algorithms/intro","title":"Welcome","description":"\u6b22\u8fce\u6765\u5230\u7b14\u8bb0\u672c\u7684\u7b97\u6cd5\u90e8\u5206","sidebar":"algorithms"},"Algorithms/STL\u6a21\u677f":{"id":"Algorithms/STL\u6a21\u677f","title":"STL\u6a21\u677f","description":"\u8f6c\u8f7d\u81eaSonder\u7684\u7b14\u8bb0\u672c","sidebar":"algorithms"},"Curriculum/\u7f16\u8bd1\u539f\u7406/Note":{"id":"Curriculum/\u7f16\u8bd1\u539f\u7406/Note","title":"\u7f16\u8bd1\u539f\u7406\u7b14\u8bb0","description":"\u7b2c\u4e00\u7ae0\uff1a\u524d\u8a00","sidebar":"curriculum"},"Curriculum/\u64cd\u4f5c\u7cfb\u7edf\u8bfe\u8bbe/Environment-Configuration":{"id":"Curriculum/\u64cd\u4f5c\u7cfb\u7edf\u8bfe\u8bbe/Environment-Configuration","title":"Linux\u7cfb\u7edf\u4e0bGeekOS\u7684\u73af\u5883\u914d\u7f6e","description":"\u4e00\u3001\u5fc5\u987b\u8981\u77e5\u9053\u7684\u539f\u7406","sidebar":"curriculum"},"Curriculum/\u64cd\u4f5c\u7cfb\u7edf\u8bfe\u8bbe/GeekOS-project-0":{"id":"Curriculum/\u64cd\u4f5c\u7cfb\u7edf\u8bfe\u8bbe/GeekOS-project-0","title":"GeekOS project 0\u7684\u5b9e\u73b0","description":"\u5728\u4e0a\u4e00\u7bc7\u535a\u5ba2\u4e2d\u6211\u4eec\u5b8c\u6210\u4e86GeekOS\u73af\u5883\u7684\u914d\u7f6e\uff0c\u4e0b\u9762\u6211\u4eec\u6765\u9a8c\u8bc1\u73af\u5883\u914d\u7f6e\u7684\u6210\u529f\u4e0e\u5426\u4ee5\u53caproject 0\u7684\u5b9e\u73b0\u3002","sidebar":"curriculum"},"Curriculum/\u6570\u5b57\u56fe\u50cf\u5904\u7406/Note":{"id":"Curriculum/\u6570\u5b57\u56fe\u50cf\u5904\u7406/Note","title":"\u6570\u5b57\u56fe\u50cf\u5904\u7406\u590d\u4e60\u7b14\u8bb0","description":"\u672c\u7b14\u8bb0\u4f7f\u7528\u7684\u6559\u6750\u662f\u9648\u5929\u534e\u6240\u8457\u3001\u6e05\u534e\u5927\u5b66\u51fa\u7248\u793e\u7684\u300a\u6570\u5b57\u56fe\u50cf\u5904\u7406\u53ca\u5e94\u7528\uff1a\u4f7f\u7528MATLAB\u5206\u6790\u4e0e\u5b9e\u73b0\u300b\u3002","sidebar":"curriculum"},"Curriculum/intro":{"id":"Curriculum/intro","title":"Welcome","description":"\u6b22\u8fce\u6765\u5230\u7b14\u8bb0\u672c\u7684\u8bfe\u7a0b\u5b66\u4e60\u90e8\u5206","sidebar":"curriculum"},"Deep-Learning/\u5927\u6a21\u578b/Attention-Is-All-You-Need":{"id":"Deep-Learning/\u5927\u6a21\u578b/Attention-Is-All-You-Need","title":"NeurIPS 2017: Attention Is All You Need","description":"\u8bba\u6587\uff1aarXiv","sidebar":"deep_learning"},"Deep-Learning/\u5927\u6a21\u578b/Diffusion-Model":{"id":"Deep-Learning/\u5927\u6a21\u578b/Diffusion-Model","title":"\u6269\u6563\u6a21\u578b\uff08Diffusion Model\uff09","description":"\u5728\u4ee5\u524d\u7684\u6587\u7ae0\u56fe\u50cf\u751f\u6210\u6a21\u578b\u4e2d\u5df2\u7ecf\u5927\u6982\u4ecb\u7ecd\u4e86\u76ee\u524dSOTA\u7684\u56fe\u50cf\u751f\u6210\u6a21\u578b\u7684\u5171\u540c\u70b9\uff0c\u5e76\u521d\u6b65\u4e86\u89e3\u4e86Diffusion Model\uff0c\u5728\u8fd9\u7bc7\u6587\u7ae0\u4e2d\u5c06\u8be6\u7ec6\u8bb2\u89e3\u6269\u6563\u6a21\u578b\u7684\u6570\u5b66\u539f\u7406\u7b49\u3002","sidebar":"deep_learning"},"Deep-Learning/\u5927\u6a21\u578b/GAN":{"id":"Deep-Learning/\u5927\u6a21\u578b/GAN","title":"\u751f\u6210\u5f0f\u5bf9\u6297\u7f51\u7edc\uff08GAN\uff09","description":"How to pronounce Adversarial?","sidebar":"deep_learning"},"Deep-Learning/\u5927\u6a21\u578b/Image-Generation-Models":{"id":"Deep-Learning/\u5927\u6a21\u578b/Image-Generation-Models","title":"\u56fe\u50cf\u751f\u6210\u6a21\u578b","description":"\u56de\u987e\u6587\u5b57\u751f\u6210\u7684\u4e24\u79cd\u65b9\u6cd5","sidebar":"deep_learning"},"Deep-Learning/\u5927\u6a21\u578b/Prompt Learning/Undergraduate-Dissertation":{"id":"Deep-Learning/\u5927\u6a21\u578b/Prompt Learning/Undergraduate-Dissertation","title":"\u672c\u79d1\u6bd5\u4e1a\u8bba\u6587\uff1a\u57fa\u4e8e Prompt Learning \u7684\u89c6\u89c9-\u8bed\u8a00\u5927\u6a21\u578b\u5728\u56fe\u50cf\u751f\u6210\u4e2d\u7684\u5e94\u7528\u4e0e\u7814\u7a76","description":"\u672c\u7bc7\u8bba\u6587\u4e3b\u8981\u57fa\u4e8e IPL \u7684\u601d\u60f3\u5b9e\u73b0\u3002\u672c\u4ed3\u5e93\u5927\u90e8\u5206\u4ece IPL-Zero-Shot-Generative-Model-Adaptation fork \u800c\u6765\u5e76\u505a\u51fa\u4e86\u4e00\u5b9a\u4fee\u6539\u3002","sidebar":"deep_learning"},"Deep-Learning/\u5927\u6a21\u578b/Self-Attention":{"id":"Deep-Learning/\u5927\u6a21\u578b/Self-Attention","title":"\u81ea\u6ce8\u610f\u529b\uff08Self-Attention\uff09","description":"\u53c2\u8003\u94fe\u63a5:","sidebar":"deep_learning"},"Deep-Learning/\u5927\u6a21\u578b/Self-Supervised-Learning":{"id":"Deep-Learning/\u5927\u6a21\u578b/Self-Supervised-Learning","title":"\u81ea\u76d1\u7763\u5b66\u4e60\uff08Self-Supervised Learning\uff09","description":"\u5728\u81ea\u76d1\u7763\u5b66\u4e60\u7684\u6a21\u578b\u4e2d\uff0c\u51fa\u73b0\u4e86\u5f88\u591a\u4ee5\u829d\u9ebb\u8857\u4efb\u52a1\u547d\u540d\u7684\u7ecf\u5178\u6a21\u578b\u548c\u8bba\u6587\u3002","sidebar":"deep_learning"},"Deep-Learning/\u57fa\u7840\u77e5\u8bc6/\u6fc0\u6d3b\u51fd\u6570\u4e0eLoss\u7684\u68af\u5ea6":{"id":"Deep-Learning/\u57fa\u7840\u77e5\u8bc6/\u6fc0\u6d3b\u51fd\u6570\u4e0eLoss\u7684\u68af\u5ea6","title":"\u6fc0\u6d3b\u51fd\u6570\u4e0eLoss\u7684\u68af\u5ea6","description":"\u4e00\u3001\u6fc0\u6d3b\u51fd\u6570","sidebar":"deep_learning"},"Deep-Learning/\u57fa\u7840\u77e5\u8bc6/\u6df1\u5ea6\u53ef\u5206\u79bb\u5377\u79ef":{"id":"Deep-Learning/\u57fa\u7840\u77e5\u8bc6/\u6df1\u5ea6\u53ef\u5206\u79bb\u5377\u79ef","title":"\u6df1\u5ea6\u53ef\u5206\u79bb\u5377\u79ef","description":"\u8f93\u5165\uff1ashape\u4e3a$[5, 5, 3]$\u7684\u56fe\u50cf","sidebar":"deep_learning"},"Deep-Learning/\u57fa\u7840\u77e5\u8bc6/\u6b63\u5219\u5316\u4e0e\u6743\u91cd\u8870\u9000":{"id":"Deep-Learning/\u57fa\u7840\u77e5\u8bc6/\u6b63\u5219\u5316\u4e0e\u6743\u91cd\u8870\u9000","title":"\u6b63\u5219\u5316\u4e0e\u6743\u91cd\u8870\u9000","description":"\u6b63\u5219\u5316\u4e0e\u6743\u91cd\u8870\u9000","sidebar":"deep_learning"},"Deep-Learning/\u57fa\u7840\u77e5\u8bc6/AlexNet":{"id":"Deep-Learning/\u57fa\u7840\u77e5\u8bc6/AlexNet","title":"AlexNet","description":"\u80cc\u666f","sidebar":"deep_learning"},"Deep-Learning/\u57fa\u7840\u77e5\u8bc6/ConvolutionalLayer":{"id":"Deep-Learning/\u57fa\u7840\u77e5\u8bc6/ConvolutionalLayer","title":"\u5377\u79ef\u5c42","description":"\u4e00\u30011x1\u5377\u79ef","sidebar":"deep_learning"},"Deep-Learning/\u57fa\u7840\u77e5\u8bc6/FromFullyConnectedLayerToConvolutionalLayer":{"id":"Deep-Learning/\u57fa\u7840\u77e5\u8bc6/FromFullyConnectedLayerToConvolutionalLayer","title":"\u4ece\u5168\u8fde\u63a5\u5230\u5377\u79ef","description":"\u4e00\u3001\u5377\u79ef\u7684\u8bde\u751f&\u6838\u5fc3\u7279\u5f81","sidebar":"deep_learning"},"Deep-Learning/\u57fa\u7840\u77e5\u8bc6/K-foldCross-validation":{"id":"Deep-Learning/\u57fa\u7840\u77e5\u8bc6/K-foldCross-validation","title":"K-fold cross-validation","description":"What is k-fold cross-validation?","sidebar":"deep_learning"},"Deep-Learning/\u57fa\u7840\u77e5\u8bc6/LeNet":{"id":"Deep-Learning/\u57fa\u7840\u77e5\u8bc6/LeNet","title":"LeNet","description":"\u80cc\u666f","sidebar":"deep_learning"},"Deep-Learning/\u57fa\u7840\u77e5\u8bc6/LogisticRegression":{"id":"Deep-Learning/\u57fa\u7840\u77e5\u8bc6/LogisticRegression","title":"\u5173\u4e8eLogistic Regression","description":"\u4e00\u3001\u4ec0\u4e48\u662fLogistic Regression","sidebar":"deep_learning"},"Deep-Learning/\u57fa\u7840\u77e5\u8bc6/Perceptron":{"id":"Deep-Learning/\u57fa\u7840\u77e5\u8bc6/Perceptron","title":"Perceptron","description":"\u4e00\u3001\u4ec0\u4e48\u662f\u611f\u77e5\u673a","sidebar":"deep_learning"},"Deep-Learning/\u57fa\u7840\u77e5\u8bc6/PoolingLayer":{"id":"Deep-Learning/\u57fa\u7840\u77e5\u8bc6/PoolingLayer","title":"\u6c60\u5316\u5c42","description":"\u4e00\u3001\u5377\u79ef\u5bf9\u50cf\u7d20\u4f4d\u7f6e\u4fe1\u606f\u662f\u654f\u611f\u7684","sidebar":"deep_learning"},"Deep-Learning/\u57fa\u7840\u77e5\u8bc6/PytorchBasics":{"id":"Deep-Learning/\u57fa\u7840\u77e5\u8bc6/PytorchBasics","title":"PyTorch\u57fa\u7840","description":"\u4e00\u3001\u5e38\u7528\u51fd\u6570\u90e8\u5206","sidebar":"deep_learning"},"Deep-Learning/\u8bba\u6587\u7b14\u8bb0/Attention Is All You Need":{"id":"Deep-Learning/\u8bba\u6587\u7b14\u8bb0/Attention Is All You Need","title":"NeurIPS 2017: Attention Is All You Need","description":"\u8bba\u6587\uff1aarXiv","sidebar":"deep_learning"},"Deep-Learning/\u8bba\u6587\u7b14\u8bb0/Denoising Diffusion Probabilistic Models":{"id":"Deep-Learning/\u8bba\u6587\u7b14\u8bb0/Denoising Diffusion Probabilistic Models","title":"NeurIPS 2020: Denoising Diffusion Probabilistic Models","description":"\u8bba\u6587\uff1aarXiv","sidebar":"deep_learning"},"Deep-Learning/\u8bba\u6587\u7b14\u8bb0/High-Resolution Image Synthesis with Latent Diffusion Models":{"id":"Deep-Learning/\u8bba\u6587\u7b14\u8bb0/High-Resolution Image Synthesis with Latent Diffusion Models","title":"CVPR 2022: High-Resolution Image Synthesis with Latent Diffusion Models","description":"\u8bba\u6587\uff1aarXiv","sidebar":"deep_learning"},"Deep-Learning/\u8bba\u6587\u7b14\u8bb0/Zero-shot Generative Model Adaptation via Image-specific Prompt Learning":{"id":"Deep-Learning/\u8bba\u6587\u7b14\u8bb0/Zero-shot Generative Model Adaptation via Image-specific Prompt Learning","title":"CVPR 2023: Zero-shot Generative Model Adaptation via Image-specific Prompt Learning","description":"\u8bba\u6587\uff1aCVPR 2023 open access","sidebar":"deep_learning"},"Deep-Learning/\u5b9e\u6218\u7ec3\u4e60/Speaker Classification":{"id":"Deep-Learning/\u5b9e\u6218\u7ec3\u4e60/Speaker Classification","title":"Speaker Classification","description":"Transformer\u5b9e\u6218\u7ec3\u4e60\uff0c\u4ee3\u7801\u89c1Github\u4ed3\u5e93\u3002","sidebar":"deep_learning"},"Deep-Learning/\u5b9e\u6218\u7ec3\u4e60/Undergraduate-Dissertation":{"id":"Deep-Learning/\u5b9e\u6218\u7ec3\u4e60/Undergraduate-Dissertation","title":"\u672c\u79d1\u6bd5\u4e1a\u8bba\u6587\uff1a\u57fa\u4e8e Prompt Learning \u7684\u89c6\u89c9-\u8bed\u8a00\u5927\u6a21\u578b\u5728\u56fe\u50cf\u751f\u6210\u4e2d\u7684\u5e94\u7528\u4e0e\u7814\u7a76","description":"\u672c\u7bc7\u8bba\u6587\u4e3b\u8981\u57fa\u4e8e IPL \u7684\u601d\u60f3\u5b9e\u73b0\u3002\u672c\u4ed3\u5e93\u5927\u90e8\u5206\u4ece IPL-Zero-Shot-Generative-Model-Adaptation fork \u800c\u6765\u5e76\u505a\u51fa\u4e86\u4e00\u5b9a\u4fee\u6539\u3002","sidebar":"deep_learning"},"Deep-Learning/\u5b9e\u6218\u7ec3\u4e60/Visdom Visualization":{"id":"Deep-Learning/\u5b9e\u6218\u7ec3\u4e60/Visdom Visualization","title":"Visdom\u53ef\u89c6\u5316","description":"\u5bf9\u4e8eTensorFlow\u6846\u67b6\uff0c\u53ef\u4ee5\u4f7f\u7528TensorBoard\u5b9e\u73b0\u53ef\u89c6\u5316\u3002","sidebar":"deep_learning"},"Deep-Learning/Fill-The-Gaps":{"id":"Deep-Learning/Fill-The-Gaps","title":"\u67e5\u6f0f\u8865\u7f3a","description":"\u8fd9\u91cc\u8bb0\u5f55\u7740\u5728\u5b66\u4e60\u8fc7\u7a0b\u4e2d\u53d1\u73b0\u7684\u7406\u89e3\u6216\u64cd\u4f5c\u65b9\u9762\u51fa\u73b0\u7684\u9519\u8bef\uff0c\u6e29\u6545\u77e5\u65b0\u3002","sidebar":"deep_learning"},"Deep-Learning/intro":{"id":"Deep-Learning/intro","title":"Welcome","description":"\u6b22\u8fce\u6765\u5230\u7b14\u8bb0\u672c\u7684\u6df1\u5ea6\u5b66\u4e60\u90e8\u5206","sidebar":"deep_learning"},"Others/\u535a\u5ba2\u642d\u5efa/\u544a\u793a\u680f":{"id":"Others/\u535a\u5ba2\u642d\u5efa/\u544a\u793a\u680f","title":"\u544a\u793a\u680f","description":"1. \u544a\u793a\u680f\u7684\u542f\u7528","sidebar":"others"},"Others/intro":{"id":"Others/intro","title":"Welcome","description":"\u6b22\u8fce\u6765\u5230\u7b14\u8bb0\u672c\u7684\u5176\u4ed6\u90e8\u5206","sidebar":"others"},"Others/Linux/\u5ba2\u5236\u5316/\u5982\u4f55\u8ba9\u4f60\u7684KDE\u770b\u8d77\u6765\u66f4\u50cfmacOS":{"id":"Others/Linux/\u5ba2\u5236\u5316/\u5982\u4f55\u8ba9\u4f60\u7684KDE\u770b\u8d77\u6765\u66f4\u50cfmacOS","title":"\u5982\u4f55\u8ba9\u4f60\u7684Kde Plasma\u770b\u8d77\u6765\u66f4\u50cfmacOS","description":"\u4e00\u3001latte-dock","sidebar":"others"},"Others/Linux/\u5b9e\u7528\u5de5\u5177/\u7ec8\u7aef\u4ee3\u7406":{"id":"Others/Linux/\u5b9e\u7528\u5de5\u5177/\u7ec8\u7aef\u4ee3\u7406","title":"\u7ec8\u7aef\u4ee3\u7406","description":"\u901a\u8fc7\u7f16\u5199\u811a\u672c\u51fd\u6570\u7684\u65b9\u5f0f\uff0c\u624b\u52a8\u5f00\u542f\u4ee3\u7406","sidebar":"others"},"Others/Linux/\u95ee\u9898\u89e3\u51b3/\u53cc\u7cfb\u7edf\u6302\u8f7dWindows\u78c1\u76d8\u4e3a\u53ea\u8bfb\u6587\u4ef6":{"id":"Others/Linux/\u95ee\u9898\u89e3\u51b3/\u53cc\u7cfb\u7edf\u6302\u8f7dWindows\u78c1\u76d8\u4e3a\u53ea\u8bfb\u6587\u4ef6","title":"\u6302\u8f7dWindows\u78c1\u76d8\u4e3a\u53ea\u8bfb\u6587\u4ef6","description":"\u4e00\u3001\u53d1\u751f\u539f\u56e0","sidebar":"others"},"Tui-Mian/\u673a\u8bd5/\u5927\u6570\u9664\u6cd5":{"id":"Tui-Mian/\u673a\u8bd5/\u5927\u6570\u9664\u6cd5","title":"\u5927\u6570\u9664\u6cd5","description":"\u5927\u6570\u9664\u6cd5\u662f\u6307\u88ab\u9664\u6570\u5927\u5c0f\u8d85\u51falong long\u8303\u56f4\uff0c\u800c\u5bfc\u81f4\u5fc5\u987b\u4f7f\u7528\u5b57\u7b26\u4e32\u5b58\u50a8\u7684\u9664\u6cd5\uff0c\u5c5e\u4e8e\u7b80\u5355\u6a21\u62df\u7684\u8303\u7574","sidebar":"tui_mian"},"Tui-Mian/\u8ba1\u7b97\u673a\u57fa\u7840\u7efc\u5408/\u6570\u636e\u7ed3\u6784":{"id":"Tui-Mian/\u8ba1\u7b97\u673a\u57fa\u7840\u7efc\u5408/\u6570\u636e\u7ed3\u6784","title":"\u6570\u636e\u7ed3\u6784","description":"\u6811","sidebar":"tui_mian"},"Tui-Mian/\u7b80\u5386/\u7b80\u5386\u9762\u8bd5\u51c6\u5907":{"id":"Tui-Mian/\u7b80\u5386/\u7b80\u5386\u9762\u8bd5\u51c6\u5907","title":"\u7b80\u5386\u9762\u8bd5\u51c6\u5907","description":"\u4e00\u3001U-2-Net","sidebar":"tui_mian"},"Tui-Mian/\u6570\u5b66/\u6982\u7387\u8bba":{"id":"Tui-Mian/\u6570\u5b66/\u6982\u7387\u8bba","title":"\u6982\u7387\u8bba","description":"\u9762\u8bd5\u5e38\u8003\u95ee\u9898","sidebar":"tui_mian"},"Tui-Mian/\u6570\u5b66/\u590f\u4ee4\u8425\u9762\u8bd5\u6570\u5b66\u90e8\u5206\u590d\u4e60":{"id":"Tui-Mian/\u6570\u5b66/\u590f\u4ee4\u8425\u9762\u8bd5\u6570\u5b66\u90e8\u5206\u590d\u4e60","title":"\u590f\u4ee4\u8425\u9762\u8bd5\u6570\u5b66\u90e8\u5206\u590d\u4e60","description":"\u4e00\u3001\u7ebf\u6027\u4ee3\u6570","sidebar":"tui_mian"},"Tui-Mian/\u6570\u5b66/\u7ebf\u6027\u4ee3\u6570":{"id":"Tui-Mian/\u6570\u5b66/\u7ebf\u6027\u4ee3\u6570","title":"\u7ebf\u6027\u4ee3\u6570","description":"\u53c2\u8003\u94fe\u63a5\uff1a","sidebar":"tui_mian"},"Tui-Mian/intro":{"id":"Tui-Mian/intro","title":"Welcome","description":"\u6b22\u8fce\u6765\u5230\u7b14\u8bb0\u672c\u7684\u63a8\u514d\u590d\u4e60\u90e8\u5206","sidebar":"tui_mian"},"Tui-Mian/Summary":{"id":"Tui-Mian/Summary","title":"\u7ecf\u9a8c\u8d34\uff1a2023\u5e74\u53cc\u975e\u8ba1\u7b97\u673a\u4fdd\u7814\u7ecf\u5386","description":"\u524d\u8a00","sidebar":"tui_mian"}}}')}}]); \ No newline at end of file diff --git a/en/assets/js/a0558625.e5242f1d.js b/en/assets/js/a0558625.e5242f1d.js new file mode 100644 index 000000000..957830748 --- /dev/null +++ b/en/assets/js/a0558625.e5242f1d.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunknpy_notebook=self.webpackChunknpy_notebook||[]).push([[3389],{3905:(e,t,n)=>{n.d(t,{Zo:()=>u,kt:()=>k});var r=n(7294);function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function o(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var p=r.createContext({}),s=function(e){var t=r.useContext(p),n=t;return e&&(n="function"==typeof e?e(t):l(l({},t),e)),n},u=function(e){var t=s(e.components);return r.createElement(p.Provider,{value:t},e.children)},c="mdxType",m={inlineCode:"code",wrapper:function(e){var t=e.children;return r.createElement(r.Fragment,{},t)}},d=r.forwardRef((function(e,t){var n=e.components,a=e.mdxType,i=e.originalType,p=e.parentName,u=o(e,["components","mdxType","originalType","parentName"]),c=s(n),d=a,k=c["".concat(p,".").concat(d)]||c[d]||m[d]||i;return n?r.createElement(k,l(l({ref:t},u),{},{components:n})):r.createElement(k,l({ref:t},u))}));function k(e,t){var n=arguments,a=t&&t.mdxType;if("string"==typeof e||a){var i=n.length,l=new Array(i);l[0]=d;var o={};for(var p in t)hasOwnProperty.call(t,p)&&(o[p]=t[p]);o.originalType=e,o[c]="string"==typeof e?e:a,l[1]=o;for(var s=2;s<i;s++)l[s]=n[s];return r.createElement.apply(null,l)}return r.createElement.apply(null,n)}d.displayName="MDXCreateElement"},350:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>p,contentTitle:()=>l,default:()=>m,frontMatter:()=>i,metadata:()=>o,toc:()=>s});var r=n(7462),a=(n(7294),n(3905));const i={},l="STL\u6a21\u677f",o={unversionedId:"Algorithms/STL\u6a21\u677f",id:"Algorithms/STL\u6a21\u677f",title:"STL\u6a21\u677f",description:"\u8f6c\u8f7d\u81eaSonder\u7684\u7b14\u8bb0\u672c",source:"@site/docs/Algorithms/2-STL\u6a21\u677f.md",sourceDirName:"Algorithms",slug:"/Algorithms/STL\u6a21\u677f",permalink:"/en/docs/Algorithms/STL\u6a21\u677f",draft:!1,tags:[],version:"current",sidebarPosition:2,frontMatter:{},sidebar:"algorithms",previous:{title:"Welcome",permalink:"/en/docs/Algorithms/intro"},next:{title:"\u673a\u8bd5\u6280\u5de7\u4e0eSTL",permalink:"/en/docs/Algorithms/\u673a\u8bd5\u6280\u5de7\u4e0eSTL"}},p={},s=[{value:"vector",id:"vector",level:3},{value:"pair",id:"pair",level:3},{value:"string",id:"string",level:3},{value:"query",id:"query",level:3},{value:"priority_queue",id:"priority_queue",level:3},{value:"stack",id:"stack",level:3},{value:"deque",id:"deque",level:3},{value:"set/multiset",id:"setmultiset",level:3},{value:"map/multimap",id:"mapmultimap",level:3},{value:"biset",id:"biset",level:3}],u={toc:s},c="wrapper";function m(e){let{components:t,...n}=e;return(0,a.kt)(c,(0,r.Z)({},u,n,{components:t,mdxType:"MDXLayout"}),(0,a.kt)("h1",{id:"stl\u6a21\u677f"},"STL\u6a21\u677f"),(0,a.kt)("admonition",{type:"important"},(0,a.kt)("p",{parentName:"admonition"},"\u8f6c\u8f7d\u81ea",(0,a.kt)("a",{parentName:"p",href:"https://space.keter.top/"},"Sonder\u7684\u7b14\u8bb0\u672c"))),(0,a.kt)("ul",null,(0,a.kt)("li",{parentName:"ul"},"vector\uff1a\u53d8\u957f\u6570\u7ec4\uff0c\u500d\u589e\u7684\u601d\u60f3"),(0,a.kt)("li",{parentName:"ul"},"pair\uff1a\u5b58\u50a8\u4e00\u5bf9\u6570"),(0,a.kt)("li",{parentName:"ul"},"string\uff1a\u5b57\u7b26\u4e32\uff0csubstr(), c_str()"),(0,a.kt)("li",{parentName:"ul"},"queue\uff1apush(), front(), pop()"),(0,a.kt)("li",{parentName:"ul"},"priority_queue\uff1a\u4f18\u5148\u961f\u5217\uff0cpush(), top(), pop()"),(0,a.kt)("li",{parentName:"ul"},"stack\uff1a\u6808\uff0cpush(), top(), pop()"),(0,a.kt)("li",{parentName:"ul"},"deque\uff1a\u53cc\u7aef\u961f\u5217"),(0,a.kt)("li",{parentName:"ul"},"set, map, multiset, multimap\uff1a\u57fa\u4e8e\u7ea2\u9ed1\u6811\u6765\u5b9e\u73b0\uff0c\u672c\u8d28\u4e0a\u662f\u52a8\u6001\u7ef4\u62a4\u4e00\u4e2a\u6709\u5e8f\u5e8f\u5217"),(0,a.kt)("li",{parentName:"ul"},"unordered_set, unordered_map, unordered_multiset, unordered_multimap\uff1a\u54c8\u5e0c\u8868"),(0,a.kt)("li",{parentName:"ul"},"bitset\uff1a\u538b\u4f4d")),(0,a.kt)("h3",{id:"vector"},"vector"),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-c++"},'vector<int> a(10,3); // \u5b9a\u4e49\u4e00\u4e2a\u957f\u5ea6\u4e3a10\u7684vector\uff0c\u521d\u59cb\u5316\u4e3a3\uff1b\na.size(); // vector\u7684size\uff0c\u6240\u6709\u5bb9\u5668\u90fd\u6709\na.empty(); // \u8303\u56f4vector\u662f\u5426\u4e3a\u7a7a\uff0c\u6240\u6709\u5bb9\u5668\u90fd\u6709\na.clear(); // \u6e05\u7a7a\na.front(); // \u7b2c\u4e00\u4e2a\u6570\na.back(); // \u6700\u540e\u4e00\u4e2a\u6570\na.push_back(); // \u5728\u6700\u540e\u63d2\u5165\u4e00\u4e2a\u6570\na.pop_back(); // \u5220\u9664\u6700\u540e\u4e00\u4e2a\u6570\n// vector\u652f\u6301\u6bd4\u8f83\u8fd0\u7b97\nvector<int> a(4,3),b(3,4);\nif(a > b) cout << "Yes";\nelse cout << "No"\n')),(0,a.kt)("h3",{id:"pair"},"pair"),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-c++"},'pair<int,int> a;\na = {20,"abc"};\na.first(); // \u83b7\u53d6\u7b2c\u4e00\u4e2a\u5143\u7d20\na.second(); // \u83b7\u53d6\u7b2c\u4e8c\u4e2a\u5143\u7d20\n// pair\u4e5f\u80fd\u8fdb\u884csort\n')),(0,a.kt)("h3",{id:"string"},"string"),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-c++"},'string a = "Acwing";\na.size(); // \u83b7\u53d6string\u7684\u5927\u5c0f\na.empty(); // \u5224\u65ad\u662f\u5426\u4e3a\u7a7a\na.clear(); // \u6e05\u7a7a\na += "def";\ncout << a. substr(1,2) << endl; // \u7b2c\u4e00\u4e2a\u53c2\u6570\u8d77\u59cb\u4f4d\u7f6e\uff0c\u7b2c\u4e8c\u4e2a\u53c2\u6570\u662f\u5b57\u7b26\u4e32\u957f\u5ea6\n')),(0,a.kt)("h3",{id:"query"},"query"),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-c++"},"query<int> a;\na.size();\na.empty();\na.push(1); // \u961f\u5c3e\u63d2\u5165\u5143\u7d20\na.front(); // \u8fd4\u56de\u961f\u5934\u5143\u7d20\na.back(); // \u8fd4\u56de\u961f\u5c3e\u5143\u7d20\na.pop(); // \u5220\u9664\u961f\u5934\u5143\u7d20\n")),(0,a.kt)("h3",{id:"priority_queue"},"priority_queue"),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-c++"},"// \u9ed8\u8ba4\u662f\u5927\u6839\u5806\npriority_queue<int> heap;\nheap.clear();\nheap.size();\nheap.empty();\n// \u5982\u4f55\u5b9a\u4e49\u4e00\u4e2a\u5c0f\u6839\u5806\uff1a 1. \u63d2\u5165\u8d1f\u6570 2. \u76f4\u63a5\u5b9a\u4e49\nheap.push(-x); // \u9ed1\u79d1\u6280\u65b9\u6cd5\npriority_queue<int,vector<int>,greater<int>> q;\n")),(0,a.kt)("h3",{id:"stack"},"stack"),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-c++"},"stack<int> s;\ns.size();\ns.empty();\ns.push();\ns.top();\ns.pop();\n")),(0,a.kt)("h3",{id:"deque"},"deque"),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-c++"},"deque<int> a;\na.size();\na.empty();\na.clear();\na.front();\na.back();\na.push_back();\na.pop_back();\n")),(0,a.kt)("h3",{id:"setmultiset"},"set/multiset"),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-c++"},"set<int> s; // \u4e0d\u80fd\u6709\u91cd\u590d\u5143\u7d20\n// s.begin()/end()\nmultiset<int> MS; // \u53ef\u4ee5\u6709\u91cd\u590d\u5143\u7d20\ns.insert(1); \u63d2\u5165\u4e00\u4e2a\u6570\ns.size();\ns.empty();\ns.clear();\n s.find(1); // \u67e5\u627e\u4e00\u4e2a\u5143\u7d20\uff0c\u5982\u679c\u4e0d\u5b58\u5728\u7684\u8bdd\u8fd4\u56deend\u8fed\u4ee3\u5668\ns.erase(1); // \u8f93\u5165\u662f\u4e00\u4e2a\u6570x\uff0c\u8f93\u51fa\u6240\u6709x \uff082\uff09\u8f93\u5165\u4e00\u4e2a\u8fed\u4ee3\u5668\uff0c\u5220\u9664\u8fd9\u4e2a\u8fed\u4ee3\u5668\n// set \u6700\u6838\u5fc3\u7684\u64cd\u4f5c\ns.lower_bound(); // \u8303\u56f4\u5927\u4e8e\u7b49\u4e8ex\u7684\u6700\u5c0f\u7684\u6570\ns.upper_bound(); // \u8fd4\u56de\u5927\u4e8ex\u7684\u6700\u5c0f\u7684\u6570\n")),(0,a.kt)("h3",{id:"mapmultimap"},"map/multimap"),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-c++"},'#include <map>\n// \u548cpython\u91cc\u9762\u7684\u5b57\u5178\u975e\u5e38\u7684\u76f8\u4f3c\nmap<string,int> a;\na["2"] = 3;\na.insert({"1",1});\na.erase({"1",1});\na.find({"1",1});\n')),(0,a.kt)("blockquote",null,(0,a.kt)("p",{parentName:"blockquote"},"unordered_set, unordered_map, unordered_multiset, unordered_multimap\u7684\u64cd\u4f5c\u548cset\u6216\u8005map\u7b49\u7684\u64cd\u4f5c\u57fa\u672c\u4e00\u81f4\uff0c\u552f\u4e00\u7684\u533a\u522b\u5c31\u662f\u4e0d\u652f\u6301\u7c7b\u4f3clower_bound()\u8fd9\u6837\u7684\u64cd\u4f5c \uff08\u54c8\u5e0c\u8868\u7684\u5185\u90e8\u662f\u65e0\u5e8f\u7684\uff09")),(0,a.kt)("h3",{id:"biset"},"biset"),(0,a.kt)("blockquote",null,(0,a.kt)("p",{parentName:"blockquote"},"\u53ef\u4ee5\u7701\u4e0b\u67658\u4f4d\u7684\u7a7a\u95f4")),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-c++"},"bitset<10000> s;\n// \u652f\u6301\u6240\u6709\u7684\u57fa\u672c\u64cd\u4f5c\uff1a\n// \u79fb\u4f4d\u64cd\u4f5c\uff1a<< >> \n// == !=\n// count() \u8fd4\u56de\u6709\u591a\u5c11\u4e2a1\n// any() \u5224\u65ad\u662f\u5426\u81f3\u5c11\u6709\u4e00\u4e2a1\n// none() \u5224\u65ad\u662f\u5426\u5168\u4e3a0\n// set()\uff0c\u628a\u6240\u6709\u4e3a\u7f6e\u4e3a1\n// set(k,v), \u5c06\u7b2ck\u4e2a\u53d8\u4e3av\n// reset(), \u628a\u6240\u6709\u4f4d\u53d8\u62100\n// flip(), \u628a\u6240\u6709\u4f4d\u53d6\u53cd\n")))}m.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/en/assets/js/a2a36db7.efe4cdcf.js b/en/assets/js/a2a36db7.efe4cdcf.js new file mode 100644 index 000000000..d684084bb --- /dev/null +++ b/en/assets/js/a2a36db7.efe4cdcf.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunknpy_notebook=self.webpackChunknpy_notebook||[]).push([[5776],{3905:(e,n,t)=>{t.d(n,{Zo:()=>c,kt:()=>f});var i=t(7294);function r(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function o(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function a(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?o(Object(t),!0).forEach((function(n){r(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):o(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function p(e,n){if(null==e)return{};var t,i,r=function(e,n){if(null==e)return{};var t,i,r={},o=Object.keys(e);for(i=0;i<o.length;i++)t=o[i],n.indexOf(t)>=0||(r[t]=e[t]);return r}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)t=o[i],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(r[t]=e[t])}return r}var s=i.createContext({}),u=function(e){var n=i.useContext(s),t=n;return e&&(t="function"==typeof e?e(n):a(a({},n),e)),t},c=function(e){var n=u(e.components);return i.createElement(s.Provider,{value:n},e.children)},l="mdxType",m={inlineCode:"code",wrapper:function(e){var n=e.children;return i.createElement(i.Fragment,{},n)}},d=i.forwardRef((function(e,n){var t=e.components,r=e.mdxType,o=e.originalType,s=e.parentName,c=p(e,["components","mdxType","originalType","parentName"]),l=u(t),d=r,f=l["".concat(s,".").concat(d)]||l[d]||m[d]||o;return t?i.createElement(f,a(a({ref:n},c),{},{components:t})):i.createElement(f,a({ref:n},c))}));function f(e,n){var t=arguments,r=n&&n.mdxType;if("string"==typeof e||r){var o=t.length,a=new Array(o);a[0]=d;var p={};for(var s in n)hasOwnProperty.call(n,s)&&(p[s]=n[s]);p.originalType=e,p[l]="string"==typeof e?e:r,a[1]=p;for(var u=2;u<o;u++)a[u]=t[u];return i.createElement.apply(null,a)}return i.createElement.apply(null,t)}d.displayName="MDXCreateElement"},8847:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>s,contentTitle:()=>a,default:()=>m,frontMatter:()=>o,metadata:()=>p,toc:()=>u});var i=t(7462),r=(t(7294),t(3905));const o={},a="\u5927\u6570\u9664\u6cd5",p={unversionedId:"Tui-Mian/\u673a\u8bd5/\u5927\u6570\u9664\u6cd5",id:"Tui-Mian/\u673a\u8bd5/\u5927\u6570\u9664\u6cd5",title:"\u5927\u6570\u9664\u6cd5",description:"\u5927\u6570\u9664\u6cd5\u662f\u6307\u88ab\u9664\u6570\u5927\u5c0f\u8d85\u51falong long\u8303\u56f4\uff0c\u800c\u5bfc\u81f4\u5fc5\u987b\u4f7f\u7528\u5b57\u7b26\u4e32\u5b58\u50a8\u7684\u9664\u6cd5\uff0c\u5c5e\u4e8e\u7b80\u5355\u6a21\u62df\u7684\u8303\u7574",source:"@site/docs/Tui-Mian/\u673a\u8bd5/\u5927\u6570\u9664\u6cd5.md",sourceDirName:"Tui-Mian/\u673a\u8bd5",slug:"/Tui-Mian/\u673a\u8bd5/\u5927\u6570\u9664\u6cd5",permalink:"/en/docs/Tui-Mian/\u673a\u8bd5/\u5927\u6570\u9664\u6cd5",draft:!1,tags:[],version:"current",frontMatter:{},sidebar:"tui_mian",previous:{title:"\u7ebf\u6027\u4ee3\u6570",permalink:"/en/docs/Tui-Mian/\u6570\u5b66/\u7ebf\u6027\u4ee3\u6570"},next:{title:"\u7b80\u5386\u9762\u8bd5\u51c6\u5907",permalink:"/en/docs/Tui-Mian/\u7b80\u5386/\u7b80\u5386\u9762\u8bd5\u51c6\u5907"}},s={},u=[{value:"\u601d\u8def",id:"\u601d\u8def",level:2},{value:"\u53c2\u8003\u4ee3\u7801",id:"\u53c2\u8003\u4ee3\u7801",level:2},{value:"\u6269\u5c55",id:"\u6269\u5c55",level:2}],c={toc:u},l="wrapper";function m(e){let{components:n,...t}=e;return(0,r.kt)(l,(0,i.Z)({},c,t,{components:n,mdxType:"MDXLayout"}),(0,r.kt)("h1",{id:"\u5927\u6570\u9664\u6cd5"},"\u5927\u6570\u9664\u6cd5"),(0,r.kt)("admonition",{type:"tip"},(0,r.kt)("p",{parentName:"admonition"},"\u5927\u6570\u9664\u6cd5\u662f\u6307\u88ab\u9664\u6570\u5927\u5c0f\u8d85\u51falong long\u8303\u56f4\uff0c\u800c\u5bfc\u81f4\u5fc5\u987b\u4f7f\u7528\u5b57\u7b26\u4e32\u5b58\u50a8\u7684\u9664\u6cd5\uff0c\u5c5e\u4e8e\u7b80\u5355\u6a21\u62df\u7684\u8303\u7574")),(0,r.kt)("h2",{id:"\u601d\u8def"},"\u601d\u8def"),(0,r.kt)("p",null,"\u901a\u8fc7\u6a21\u62df\u5217\u7ad6\u5f0f\u624b\u52a8\u8ba1\u7b97\u9664\u6cd5\uff0c\u5b9e\u73b0\u4f7f\u7528\u5b57\u7b26\u4e32\u5b58\u50a8\u88ab\u9664\u6570\u7684\u5927\u6570\u9664\u6cd5"),(0,r.kt)("h2",{id:"\u53c2\u8003\u4ee3\u7801"},"\u53c2\u8003\u4ee3\u7801"),(0,r.kt)("pre",null,(0,r.kt)("code",{parentName:"pre",className:"language-c++"},"string division(string s, int divisor) {\n /*\n * \u901a\u8fc7\u6a21\u62df\u5217\u7ad6\u5f0f\u624b\u7b97\u9664\u6cd5\u5b8c\u6210\u5b57\u7b26\u4e32\u5b58\u50a8\u7684\u5927\u6570\u9664\u6cd5\n */\n string quotient; // \u5546\n int idx = 0; // \u5f53\u524d\u5904\u7406\u7684\u6570\u5b57\u5728\u539f\u59cb\u5b57\u7b26\u4e32\u4e2d\u7684\u4f4d\u7f6e\n int remainder = 0; // \u4f59\u6570\n int temp = 0;\n while (idx < s.size()) { // \u4e00\u76f4\u5faa\u73af\u5904\u7406\u5230\u7d22\u5f15\u7b49\u4e8e\u957f\u5ea6\n temp = remainder * 10 + (s[idx] - '0'); // \u5f53\u524d\u8fdb\u884c\u9664\u6cd5\u8fd0\u7b97\u7684temp\n if (temp >= divisor) { // \u5982\u679c\u80fd\u9664\u7684\u52a8\uff0c\u5219\u5c06\u5f53\u524d\u7684\u5546\u63d2\u5165quotient\uff0c\u5e76\u66f4\u65b0\u4f59\u6570\n quotient.push_back(temp / divisor + '0');\n remainder = temp % divisor;\n } else { // \u9664\u4e0d\u52a8\u65f6\u5206\u4e24\u79cd\u60c5\u51b5\n if (!quotient.empty()) { // \u5546\u76ee\u524d\u4e0d\u4e3a\u7a7a\uff0c\u6b64\u65f6\u6309\u7167\u7ad6\u5f0f\u65b9\u6cd5\uff0c\u9700\u8981\u5411\u5546\u4e2d\u52a0\u51650\uff0c\u518d\u63a5\u7740\u4e0b\u4e00\u6b21\u5faa\u73af\n quotient.push_back('0');\n }\n remainder = temp; // \u5546\u76ee\u524d\u4e3a\u7a7a\uff0c\u6309\u7167\u7ad6\u5f0f\u8ba1\u7b97\u65b9\u6cd5\uff0c\u53ea\u66f4\u65b0\u4f59\u6570\uff0c\u5546\u4fdd\u6301\u4e3a\u7a7a\n }\n idx++; // \u66f4\u65b0\u7d22\u5f15\u4f4d\u7f6e\n }\n if (quotient.empty()) { // \u5982\u679c\u4e00\u76f4\u9664\u4e0d\u52a8\uff0c\u5faa\u73af\u7ed3\u675f\u5546\u8fd8\u4e3a\u7a7a\uff0c\u5219\u8d4b\u503c\u4e3a0\u5b57\u7b26\u4e32\n quotient.assign(\"0\");\n }\n return quotient; // \u8fd4\u56de\u5546\u5b57\u7b26\u4e32\n}\n")),(0,r.kt)("h2",{id:"\u6269\u5c55"},"\u6269\u5c55"),(0,r.kt)("p",null,"\u5c06\u5927\u6570\u9664\u6cd5\u4e0e\u8fdb\u5236\u8f6c\u6362\u76f8\u7ed3\u5408\u3002"),(0,r.kt)("admonition",{type:"tip"},(0,r.kt)("p",{parentName:"admonition"},(0,r.kt)("a",{parentName:"p",href:"https://noobdream.com/DreamJudge/Issue/page/1178/"},"\u5317\u4eac\u5927\u5b66\u673a\u8bd5\u771f\u9898\uff0cN\u8bfa\u94fe\u63a5")),(0,r.kt)("p",{parentName:"admonition"},(0,r.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora/imagesimage-20230703192843719.png",alt:"image-20230703192843719"}))),(0,r.kt)("p",null,"\u5b8c\u6574\u4ee3\u7801\u5982\u4e0b\uff1a"),(0,r.kt)("pre",null,(0,r.kt)("code",{parentName:"pre",className:"language-c++"},"#include <bits/stdc++.h>\n\nusing namespace std;\n\nstring division(string s, int divisor) {\n /*\n * \u901a\u8fc7\u6a21\u62df\u5217\u7ad6\u5f0f\u624b\u7b97\u9664\u6cd5\u5b8c\u6210\u5b57\u7b26\u4e32\u5b58\u50a8\u7684\u5927\u6570\u9664\u6cd5\n */\n string quotient; // \u5546\n int idx = 0; // \u5f53\u524d\u5904\u7406\u7684\u6570\u5b57\u5728\u539f\u59cb\u5b57\u7b26\u4e32\u4e2d\u7684\u4f4d\u7f6e\n int remainder = 0; // \u4f59\u6570\n int temp = 0;\n while (idx < s.size()) { // \u4e00\u76f4\u5faa\u73af\u5904\u7406\u5230\u7d22\u5f15\u7b49\u4e8e\u957f\u5ea6\n temp = remainder * 10 + (s[idx] - '0'); // \u5f53\u524d\u8fdb\u884c\u9664\u6cd5\u8fd0\u7b97\u7684temp\n if (temp >= divisor) { // \u5982\u679c\u80fd\u9664\u7684\u52a8\uff0c\u5219\u5c06\u5f53\u524d\u7684\u5546\u63d2\u5165quotient\uff0c\u5e76\u66f4\u65b0\u4f59\u6570\n quotient.push_back(temp / divisor + '0');\n remainder = temp % divisor;\n } else { // \u9664\u4e0d\u52a8\u65f6\u5206\u4e24\u79cd\u60c5\u51b5\n if (!quotient.empty()) { // \u5546\u76ee\u524d\u4e0d\u4e3a\u7a7a\uff0c\u6b64\u65f6\u6309\u7167\u7ad6\u5f0f\u65b9\u6cd5\uff0c\u9700\u8981\u5411\u5546\u4e2d\u52a0\u51650\uff0c\u518d\u63a5\u7740\u4e0b\u4e00\u6b21\u5faa\u73af\n quotient.push_back('0');\n }\n remainder = temp; // \u5546\u76ee\u524d\u4e3a\u7a7a\uff0c\u6309\u7167\u7ad6\u5f0f\u8ba1\u7b97\u65b9\u6cd5\uff0c\u53ea\u66f4\u65b0\u4f59\u6570\uff0c\u5546\u4fdd\u6301\u4e3a\u7a7a\n }\n idx++; // \u66f4\u65b0\u7d22\u5f15\u4f4d\u7f6e\n }\n if (quotient.empty()) { // \u5982\u679c\u4e00\u76f4\u9664\u4e0d\u52a8\uff0c\u5faa\u73af\u7ed3\u675f\u5546\u8fd8\u4e3a\u7a7a\uff0c\u5219\u8d4b\u503c\u4e3a0\u5b57\u7b26\u4e32\n quotient.assign(\"0\");\n }\n return quotient; // \u8fd4\u56de\u5546\u5b57\u7b26\u4e32\n}\n\nint main() {\n string s;\n while (cin >> s) {\n vector<int> vec;\n int len = s.size();\n while (s != \"0\") {\n int remainder = (s[len - 1] - '0') % 2;\n vec.push_back(remainder);\n s = division(s, 2);\n len = s.size();\n }\n if (vec.empty()) {\n cout << \"0\";\n } else {\n for (auto it = vec.rbegin(); it != vec.rend(); it++) {\n cout << *it;\n }\n }\n cout << endl;\n }\n return 0;\n}\n")))}m.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/en/assets/js/a8183bcb.330626cf.js b/en/assets/js/a8183bcb.330626cf.js new file mode 100644 index 000000000..c771c6d8e --- /dev/null +++ b/en/assets/js/a8183bcb.330626cf.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunknpy_notebook=self.webpackChunknpy_notebook||[]).push([[7739],{3905:(a,e,t)=>{t.d(e,{Zo:()=>o,kt:()=>g});var n=t(7294);function s(a,e,t){return e in a?Object.defineProperty(a,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):a[e]=t,a}function m(a,e){var t=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable}))),t.push.apply(t,n)}return t}function r(a){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?m(Object(t),!0).forEach((function(e){s(a,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(t)):m(Object(t)).forEach((function(e){Object.defineProperty(a,e,Object.getOwnPropertyDescriptor(t,e))}))}return a}function p(a,e){if(null==a)return{};var t,n,s=function(a,e){if(null==a)return{};var t,n,s={},m=Object.keys(a);for(n=0;n<m.length;n++)t=m[n],e.indexOf(t)>=0||(s[t]=a[t]);return s}(a,e);if(Object.getOwnPropertySymbols){var m=Object.getOwnPropertySymbols(a);for(n=0;n<m.length;n++)t=m[n],e.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(a,t)&&(s[t]=a[t])}return s}var i=n.createContext({}),l=function(a){var e=n.useContext(i),t=e;return a&&(t="function"==typeof a?a(e):r(r({},e),a)),t},o=function(a){var e=l(a.components);return n.createElement(i.Provider,{value:e},a.children)},N="mdxType",k={inlineCode:"code",wrapper:function(a){var e=a.children;return n.createElement(n.Fragment,{},e)}},c=n.forwardRef((function(a,e){var t=a.components,s=a.mdxType,m=a.originalType,i=a.parentName,o=p(a,["components","mdxType","originalType","parentName"]),N=l(t),c=s,g=N["".concat(i,".").concat(c)]||N[c]||k[c]||m;return t?n.createElement(g,r(r({ref:e},o),{},{components:t})):n.createElement(g,r({ref:e},o))}));function g(a,e){var t=arguments,s=e&&e.mdxType;if("string"==typeof a||s){var m=t.length,r=new Array(m);r[0]=c;var p={};for(var i in e)hasOwnProperty.call(e,i)&&(p[i]=e[i]);p.originalType=a,p[N]="string"==typeof a?a:s,r[1]=p;for(var l=2;l<m;l++)r[l]=t[l];return n.createElement.apply(null,r)}return n.createElement.apply(null,t)}c.displayName="MDXCreateElement"},3199:(a,e,t)=>{t.r(e),t.d(e,{assets:()=>i,contentTitle:()=>r,default:()=>k,frontMatter:()=>m,metadata:()=>p,toc:()=>l});var n=t(7462),s=(t(7294),t(3905));const m={},r="\u81ea\u76d1\u7763\u5b66\u4e60\uff08Self-Supervised Learning\uff09",p={unversionedId:"Deep-Learning/\u5927\u6a21\u578b/Self-Supervised-Learning",id:"Deep-Learning/\u5927\u6a21\u578b/Self-Supervised-Learning",title:"\u81ea\u76d1\u7763\u5b66\u4e60\uff08Self-Supervised Learning\uff09",description:"\u5728\u81ea\u76d1\u7763\u5b66\u4e60\u7684\u6a21\u578b\u4e2d\uff0c\u51fa\u73b0\u4e86\u5f88\u591a\u4ee5\u829d\u9ebb\u8857\u4efb\u52a1\u547d\u540d\u7684\u7ecf\u5178\u6a21\u578b\u548c\u8bba\u6587\u3002",source:"@site/docs/Deep-Learning/5-\u5927\u6a21\u578b/3-Self-Supervised-Learning.md",sourceDirName:"Deep-Learning/5-\u5927\u6a21\u578b",slug:"/Deep-Learning/\u5927\u6a21\u578b/Self-Supervised-Learning",permalink:"/en/docs/Deep-Learning/\u5927\u6a21\u578b/Self-Supervised-Learning",draft:!1,tags:[],version:"current",sidebarPosition:3,frontMatter:{},sidebar:"deep_learning",previous:{title:"NeurIPS 2017: Attention Is All You Need",permalink:"/en/docs/Deep-Learning/\u5927\u6a21\u578b/Attention-Is-All-You-Need"},next:{title:"\u56fe\u50cf\u751f\u6210\u6a21\u578b",permalink:"/en/docs/Deep-Learning/\u5927\u6a21\u578b/Image-Generation-Models"}},i={},l=[{value:"\u4ecb\u7ecd",id:"\u4ecb\u7ecd",level:2},{value:"BERT\uff08Bidirectional Encoder Representation from Transformers\uff09",id:"bertbidirectional-encoder-representation-from-transformers",level:2},{value:"\u7ed3\u6784",id:"\u7ed3\u6784",level:3},{value:"Self-Supervised Pretraining",id:"self-supervised-pretraining",level:3},{value:"Masking Input",id:"masking-input",level:4},{value:"Next Sentence Prediction",id:"next-sentence-prediction",level:4},{value:"Fine-tuning",id:"fine-tuning",level:3},{value:"Benchmark: GLUE",id:"benchmark-glue",level:4},{value:"Downstream Tasks",id:"downstream-tasks",level:4},{value:"Sentiment Analysis",id:"sentiment-analysis",level:5},{value:"\u7acb\u573a\u5206\u6790",id:"\u7acb\u573a\u5206\u6790",level:5},{value:"Extraction-based Question Answering",id:"extraction-based-question-answering",level:5},{value:"\u5176\u4ed6\u5e94\u7528",id:"\u5176\u4ed6\u5e94\u7528",level:5},{value:"Why does BERT work?",id:"why-does-bert-work",level:3},{value:"GPT: Generative Pre-trained Transformer",id:"gpt-generative-pre-trained-transformer",level:2}],o={toc:l},N="wrapper";function k(a){let{components:e,...t}=a;return(0,s.kt)(N,(0,n.Z)({},o,t,{components:e,mdxType:"MDXLayout"}),(0,s.kt)("h1",{id:"\u81ea\u76d1\u7763\u5b66\u4e60self-supervised-learning"},"\u81ea\u76d1\u7763\u5b66\u4e60\uff08Self-Supervised Learning\uff09"),(0,s.kt)("admonition",{type:"tip"},(0,s.kt)("p",{parentName:"admonition"},"\u5728\u81ea\u76d1\u7763\u5b66\u4e60\u7684\u6a21\u578b\u4e2d\uff0c\u51fa\u73b0\u4e86\u5f88\u591a\u4ee5\u829d\u9ebb\u8857\u4efb\u52a1\u547d\u540d\u7684\u7ecf\u5178\u6a21\u578b\u548c\u8bba\u6587\u3002"),(0,s.kt)("p",{parentName:"admonition"},(0,s.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_imagesimage-20231121113727141.png",alt:"image-20231121113727141"}))),(0,s.kt)("h2",{id:"\u4ecb\u7ecd"},"\u4ecb\u7ecd"),(0,s.kt)("p",null,"\u81ea\u76d1\u7763\u5b66\u4e60\u662f\u65e0\u76d1\u7763\u5b66\u4e60\u7684\u4e00\u79cd\u65b9\u6cd5\uff0c\u5229\u7528\u672a\u6807\u8bb0\u7684\u6570\u636e\u6765\u8bad\u7ec3\u6a21\u578b\u3002\u4e0e\u4f20\u7edf\u7684\u76d1\u7763\u5b66\u4e60\u4e0d\u540c\uff0c\u81ea\u76d1\u7763\u5b66\u4e60\u4e0d\u9700\u8981\u4f9d\u8d56\u4eba\u5de5\u6807\u6ce8\u7684\u6807\u7b7e\u6570\u636e\uff0c\u800c\u662f\u901a\u8fc7\u81ea\u52a8\u6784\u5efa\u4efb\u52a1\u6765\u751f\u6210\u4f2a\u6807\u7b7e\uff0c\u4ece\u800c\u6307\u5bfc\u6a21\u578b\u7684\u5b66\u4e60\u3002"),(0,s.kt)("p",null,"\u81ea\u76d1\u7763\u5b66\u4e60\u7684\u57fa\u672c\u539f\u7406\u662f\uff0c\u901a\u8fc7\u5bf9",(0,s.kt)("strong",{parentName:"p"},"\u8f93\u5165\u6570\u636e"),"\u8fdb\u884c\u67d0\u79cd",(0,s.kt)("strong",{parentName:"p"},"\u53d8\u6362"),"\u6216",(0,s.kt)("strong",{parentName:"p"},"\u64cd\u4f5c"),"\uff0c\u4f7f\u5f97\u6a21\u578b\u80fd\u591f\u4ece\u4e2d",(0,s.kt)("strong",{parentName:"p"},"\u63d0\u53d6\u6709\u7528\u7684\u7279\u5f81\u548c\u8bed\u4e49\u4fe1\u606f"),"\u3002\u4f8b\u5982\uff0c\u5728\u81ea\u7136\u8bed\u8a00\u5904\u7406\u9886\u57df\uff0c\u4e00\u79cd\u5e38\u89c1\u7684\u81ea\u76d1\u7763\u5b66\u4e60\u4efb\u52a1\u662f\u9884\u6d4b\u4e0b\u4e00\u4e2a\u5355\u8bcd\uff1b\u5728\u8ba1\u7b97\u673a\u89c6\u89c9\u9886\u57df\uff0c\u4e00\u79cd\u5e38\u89c1\u7684\u81ea\u76d1\u7763\u5b66\u4e60\u4efb\u52a1\u662f\u9884\u6d4b\u56fe\u50cf\u4e2d\u7684\u7f3a\u5931\u90e8\u5206\u3002\u8fd9\u4e9b\u4efb\u52a1\u53ef\u4ee5\u5e2e\u52a9\u6a21\u578b\u5b66\u4e60\u5230",(0,s.kt)("strong",{parentName:"p"},"\u8f93\u5165\u6570\u636e\u4e2d\u7684\u6f5c\u5728\u7ed3\u6784\u548c\u89c4\u5f8b"),"\uff0c\u4ece\u800c\u63d0\u9ad8\u5176\u6cdb\u5316\u80fd\u529b\u548c\u6027\u80fd\u3002"),(0,s.kt)("p",null,(0,s.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_imagesimage-20231121124909759.png",alt:"image-20231121124909759"})),(0,s.kt)("h2",{id:"bertbidirectional-encoder-representation-from-transformers"},"BERT\uff08Bidirectional Encoder Representation from Transformers\uff09"),(0,s.kt)("p",null,"\u4e0b\u9762\u4ee5BERT\u4e3a\u4f8b\uff0c\u4ecb\u7ecd\u81ea\u76d1\u7763\u6a21\u578b\u3002"),(0,s.kt)("h3",{id:"\u7ed3\u6784"},"\u7ed3\u6784"),(0,s.kt)("p",null,"BERT\u7684\u7ed3\u6784\u5176\u5b9e\u662fTransformer\u7684Encoder\u90e8\u5206\uff0c\u4ec5\u4f7f\u7528Encoder\u505a\u7279\u5f81\u62bd\u53d6\u5668\u3002"),(0,s.kt)("p",null,"BERT\uff08Bidirectional Encoder Representations from Transformers\uff09\u672c\u8eab\u662f\u4e00\u79cd\u9884\u8bad\u7ec3\u7684\u6a21\u578b\u67b6\u6784\uff0c\u901a\u5e38\u662f\u5728\u5927\u89c4\u6a21\u65e0\u6807\u7b7e\u6570\u636e\u4e0a\u8fdb\u884c\u9884\u8bad\u7ec3\uff0c\u7136\u540e\u5728\u7279\u5b9a\u4efb\u52a1\u4e0a\u8fdb\u884c\u5fae\u8c03\u3002BERT\u5e76\u4e0d\u662f\u4e00\u4e2a\u7528\u4e8e\u7279\u5b9a\u4efb\u52a1\u7684\u6a21\u578b\uff0c\u800c\u662f\u4e00\u4e2a\u901a\u7528\u7684\u8bed\u8a00\u8868\u793a\u6a21\u578b\u3002"),(0,s.kt)("p",null,"\u4f7f\u7528 BERT \u7684\u4e00\u822c\u6b65\u9aa4\u5305\u62ec\uff1a"),(0,s.kt)("ol",null,(0,s.kt)("li",{parentName:"ol"},(0,s.kt)("strong",{parentName:"li"},"\u9884\u8bad\u7ec3\uff08Pretraining\uff09"),"\uff1a\u5728\u5927\u89c4\u6a21\u65e0\u6807\u7b7e\u6570\u636e\u4e0a\u5bf9 BERT \u8fdb\u884c\u9884\u8bad\u7ec3\uff0c\u5b66\u4e60\u901a\u7528\u7684\u8bed\u8a00\u8868\u793a\u3002"),(0,s.kt)("li",{parentName:"ol"},(0,s.kt)("strong",{parentName:"li"},"\u5fae\u8c03\uff08Fine-tuning\uff09"),"\uff1a\u5c06\u9884\u8bad\u7ec3\u7684 BERT \u6a21\u578b\u5e94\u7528\u4e8e\u7279\u5b9a\u4efb\u52a1\uff0c\u5e76\u5728\u6709\u6807\u7b7e\u7684\u6570\u636e\u4e0a\u8fdb\u884c\u5fae\u8c03\uff0c\u4ee5\u9002\u5e94\u8be5\u4efb\u52a1\u3002"),(0,s.kt)("li",{parentName:"ol"},(0,s.kt)("strong",{parentName:"li"},"\u5e94\u7528\u4e8e\u4e0b\u6e38\u4efb\u52a1\uff08Downstream Tasks\uff09"),"\uff1a\u5fae\u8c03\u540e\u7684 BERT \u6a21\u578b\u53ef\u4ee5\u88ab\u7528\u4e8e\u6267\u884c\u7279\u5b9a\u7684\u4e0b\u6e38\u4efb\u52a1\uff0c\u5982\u6587\u672c\u5206\u7c7b\u3001\u547d\u540d\u5b9e\u4f53\u8bc6\u522b\u7b49\u3002")),(0,s.kt)("h3",{id:"self-supervised-pretraining"},"Self-Supervised Pretraining"),(0,s.kt)("h4",{id:"masking-input"},"Masking Input"),(0,s.kt)("p",null,"BERT\u6a21\u578b\u7684\u81ea\u76d1\u7763\u6027\u8d28\u4e3b\u8981\u4f53\u73b0\u5728\u5176\u8bad\u7ec3\u6570\u636e\u5e76\u4e0d\u9700\u8981\u4eba\u4e3a\u6807\u6ce8label\uff0c\u800c\u662f\u901a\u8fc7\u5bf9\u8f93\u5165\u53e5\u5b50\u4e2d\u7684\u90e8\u5206\u8bcd\u6c47\u505amask\uff0c\u5c06\u8f93\u5165\u6570\u636e\u7684\u90e8\u5206\u5185\u5bb9\u4f7f\u7528special token\u6216random token\u8fdb\u884c\u906e\u6321\u540e\uff0c\u5582\u5165Encoder\u4e2d\u3002\u5bf9\u4e8e\u6bcf\u4e2a\u88abmask\u6389\u7684\u8bcd\u6c47\uff0cBERT\u8f93\u51fa\u4e00\u4e2a\u6982\u7387\u5206\u5e03\u5411\u91cf\uff0c\u8868\u793a\u8fd9\u4e2a\u8bcd\u6c47\u5c5e\u4e8e\u8bcd\u6c47\u8868\u4e2d\u7684\u54ea\u4e00\u4e2a\u3002"),(0,s.kt)("p",null,"BERT\u7684\u635f\u5931\u51fd\u6570\u4e3b\u8981\u662fMasked Language Model\uff08MLM\uff09\u4efb\u52a1\u7684\u4ea4\u53c9\u71b5\u635f\u5931\uff0c\u901a\u8fc7",(0,s.kt)("strong",{parentName:"p"},"\u6700\u5c0f\u5316"),"Encoder\u8f93\u51fa\u7684\u6982\u7387\u5206\u5e03\u4e0eGround Truth\u4e4b\u95f4\u7684",(0,s.kt)("strong",{parentName:"p"},"\u4ea4\u53c9\u71b5\u635f\u5931\u51fd\u6570"),"\u6765\u8bad\u7ec3\u6a21\u578b\u3002"),(0,s.kt)("div",{className:"math math-display"},(0,s.kt)("span",{parentName:"div",className:"katex-display"},(0,s.kt)("span",{parentName:"span",className:"katex"},(0,s.kt)("span",{parentName:"span",className:"katex-mathml"},(0,s.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,s.kt)("semantics",{parentName:"math"},(0,s.kt)("mtable",{parentName:"semantics",width:"100%"},(0,s.kt)("mtr",{parentName:"mtable"},(0,s.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,s.kt)("mtd",{parentName:"mtr"},(0,s.kt)("mrow",{parentName:"mtd"},(0,s.kt)("mi",{parentName:"mrow"},"L"),(0,s.kt)("mo",{parentName:"mrow"},"="),(0,s.kt)("mo",{parentName:"mrow"},"\u2212"),(0,s.kt)("mfrac",{parentName:"mrow"},(0,s.kt)("mn",{parentName:"mfrac"},"1"),(0,s.kt)("mi",{parentName:"mfrac"},"N")),(0,s.kt)("munderover",{parentName:"mrow"},(0,s.kt)("mo",{parentName:"munderover"},"\u2211"),(0,s.kt)("mrow",{parentName:"munderover"},(0,s.kt)("mi",{parentName:"mrow"},"i"),(0,s.kt)("mo",{parentName:"mrow"},"="),(0,s.kt)("mn",{parentName:"mrow"},"1")),(0,s.kt)("mi",{parentName:"munderover"},"N")),(0,s.kt)("msub",{parentName:"mrow"},(0,s.kt)("mi",{parentName:"msub"},"y"),(0,s.kt)("mi",{parentName:"msub"},"i")),(0,s.kt)("mi",{parentName:"mrow"},"log"),(0,s.kt)("mo",{parentName:"mrow"},"\u2061"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,s.kt)("msub",{parentName:"mrow"},(0,s.kt)("mi",{parentName:"msub"},"p"),(0,s.kt)("mi",{parentName:"msub"},"i")),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},")"))),(0,s.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,s.kt)("mtd",{parentName:"mtr"},(0,s.kt)("mtext",{parentName:"mtd"},"(1)")))),(0,s.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"L=-\\frac1N\\sum_{i=1}^Ny_i\\log(p_i)\\tag{1}")))),(0,s.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6833em"}}),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal"},"L"),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,s.kt)("span",{parentName:"span",className:"mrel"},"="),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"3.106em",verticalAlign:"-1.2777em"}}),(0,s.kt)("span",{parentName:"span",className:"mord"},"\u2212"),(0,s.kt)("span",{parentName:"span",className:"mord"},(0,s.kt)("span",{parentName:"span",className:"mopen nulldelimiter"}),(0,s.kt)("span",{parentName:"span",className:"mfrac"},(0,s.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.3214em"}},(0,s.kt)("span",{parentName:"span",style:{top:"-2.314em"}},(0,s.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,s.kt)("span",{parentName:"span",className:"mord"},(0,s.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.10903em"}},"N"))),(0,s.kt)("span",{parentName:"span",style:{top:"-3.23em"}},(0,s.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,s.kt)("span",{parentName:"span",className:"frac-line",style:{borderBottomWidth:"0.04em"}})),(0,s.kt)("span",{parentName:"span",style:{top:"-3.677em"}},(0,s.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,s.kt)("span",{parentName:"span",className:"mord"},(0,s.kt)("span",{parentName:"span",className:"mord"},"1")))),(0,s.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.686em"}},(0,s.kt)("span",{parentName:"span"}))))),(0,s.kt)("span",{parentName:"span",className:"mclose nulldelimiter"})),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,s.kt)("span",{parentName:"span",className:"mop op-limits"},(0,s.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.8283em"}},(0,s.kt)("span",{parentName:"span",style:{top:"-1.8723em",marginLeft:"0em"}},(0,s.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.05em"}}),(0,s.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,s.kt)("span",{parentName:"span",className:"mord mtight"},(0,s.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"i"),(0,s.kt)("span",{parentName:"span",className:"mrel mtight"},"="),(0,s.kt)("span",{parentName:"span",className:"mord mtight"},"1")))),(0,s.kt)("span",{parentName:"span",style:{top:"-3.05em"}},(0,s.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.05em"}}),(0,s.kt)("span",{parentName:"span"},(0,s.kt)("span",{parentName:"span",className:"mop op-symbol large-op"},"\u2211"))),(0,s.kt)("span",{parentName:"span",style:{top:"-4.3em",marginLeft:"0em"}},(0,s.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.05em"}}),(0,s.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,s.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.10903em"}},"N")))),(0,s.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.2777em"}},(0,s.kt)("span",{parentName:"span"}))))),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,s.kt)("span",{parentName:"span",className:"mord"},(0,s.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"y"),(0,s.kt)("span",{parentName:"span",className:"msupsub"},(0,s.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3117em"}},(0,s.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0359em",marginRight:"0.05em"}},(0,s.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,s.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,s.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"i")))),(0,s.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,s.kt)("span",{parentName:"span"})))))),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,s.kt)("span",{parentName:"span",className:"mop"},"lo",(0,s.kt)("span",{parentName:"span",style:{marginRight:"0.01389em"}},"g")),(0,s.kt)("span",{parentName:"span",className:"mopen"},"("),(0,s.kt)("span",{parentName:"span",className:"mord"},(0,s.kt)("span",{parentName:"span",className:"mord mathnormal"},"p"),(0,s.kt)("span",{parentName:"span",className:"msupsub"},(0,s.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3117em"}},(0,s.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,s.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,s.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,s.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"i")))),(0,s.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,s.kt)("span",{parentName:"span"})))))),(0,s.kt)("span",{parentName:"span",className:"mclose"},")")),(0,s.kt)("span",{parentName:"span",className:"tag"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"3.106em",verticalAlign:"-1.2777em"}}),(0,s.kt)("span",{parentName:"span",className:"mord text"},(0,s.kt)("span",{parentName:"span",className:"mord"},"("),(0,s.kt)("span",{parentName:"span",className:"mord"},(0,s.kt)("span",{parentName:"span",className:"mord"},"1")),(0,s.kt)("span",{parentName:"span",className:"mord"},")"))))))),(0,s.kt)("p",null,"\u5176\u4e2d\uff1a"),(0,s.kt)("ul",null,(0,s.kt)("li",{parentName:"ul"},(0,s.kt)("span",{parentName:"li",className:"math math-inline"},(0,s.kt)("span",{parentName:"span",className:"katex"},(0,s.kt)("span",{parentName:"span",className:"katex-mathml"},(0,s.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,s.kt)("semantics",{parentName:"math"},(0,s.kt)("mrow",{parentName:"semantics"},(0,s.kt)("mi",{parentName:"mrow"},"N")),(0,s.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"N")))),(0,s.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6833em"}}),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.10903em"}},"N"))))),"\u662f\u8f93\u51fa\u7684\u6982\u7387\u5206\u5e03\u5411\u91cf\u7684\u7ef4\u5ea6\u3002"),(0,s.kt)("li",{parentName:"ul"},(0,s.kt)("span",{parentName:"li",className:"math math-inline"},(0,s.kt)("span",{parentName:"span",className:"katex"},(0,s.kt)("span",{parentName:"span",className:"katex-mathml"},(0,s.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,s.kt)("semantics",{parentName:"math"},(0,s.kt)("mrow",{parentName:"semantics"},(0,s.kt)("msub",{parentName:"mrow"},(0,s.kt)("mi",{parentName:"msub"},"y"),(0,s.kt)("mi",{parentName:"msub"},"i"))),(0,s.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"y_{i}")))),(0,s.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"0.625em",verticalAlign:"-0.1944em"}}),(0,s.kt)("span",{parentName:"span",className:"mord"},(0,s.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"y"),(0,s.kt)("span",{parentName:"span",className:"msupsub"},(0,s.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3117em"}},(0,s.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0359em",marginRight:"0.05em"}},(0,s.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,s.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,s.kt)("span",{parentName:"span",className:"mord mtight"},(0,s.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"i"))))),(0,s.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,s.kt)("span",{parentName:"span"})))))))))),"\u662f\u6982\u7387\u5206\u5e03\u5411\u91cf\u6807\u7b7e\u3002"),(0,s.kt)("li",{parentName:"ul"},(0,s.kt)("span",{parentName:"li",className:"math math-inline"},(0,s.kt)("span",{parentName:"span",className:"katex"},(0,s.kt)("span",{parentName:"span",className:"katex-mathml"},(0,s.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,s.kt)("semantics",{parentName:"math"},(0,s.kt)("mrow",{parentName:"semantics"},(0,s.kt)("msub",{parentName:"mrow"},(0,s.kt)("mi",{parentName:"msub"},"p"),(0,s.kt)("mi",{parentName:"msub"},"i"))),(0,s.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"p_{i}")))),(0,s.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"0.625em",verticalAlign:"-0.1944em"}}),(0,s.kt)("span",{parentName:"span",className:"mord"},(0,s.kt)("span",{parentName:"span",className:"mord mathnormal"},"p"),(0,s.kt)("span",{parentName:"span",className:"msupsub"},(0,s.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3117em"}},(0,s.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,s.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,s.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,s.kt)("span",{parentName:"span",className:"mord mtight"},(0,s.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"i"))))),(0,s.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,s.kt)("span",{parentName:"span"})))))))))),"\u662f\u6a21\u578b\u9884\u6d4b\u7684\u6982\u7387\u5206\u5e03\u5411\u91cf\u3002")),(0,s.kt)("p",null,(0,s.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_imagesimage-20231121134420134.png",alt:"image-20231121134420134"})),(0,s.kt)("h4",{id:"next-sentence-prediction"},"Next Sentence Prediction"),(0,s.kt)("p",null,(0,s.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_imagesimage-20231121171808764.png",alt:"image-20231121171808764"})),(0,s.kt)("h3",{id:"fine-tuning"},"Fine-tuning"),(0,s.kt)("p",null,"\u5728\u9884\u8bad\u7ec3\u4e4b\u540e\uff0cBERT \u7684\u6a21\u578b\u53c2\u6570\u53ef\u4ee5\u88ab\u7528\u4e8e\u591a\u4e2a\u4e0b\u6e38\u4efb\u52a1\uff0c\u5982\u6587\u672c\u5206\u7c7b\u3001\u547d\u540d\u5b9e\u4f53\u8bc6\u522b\u3001\u95ee\u7b54\u7b49\u3002"),(0,s.kt)("p",null,"\u9996\u5148\uff0c\u6211\u4eec\u5148\u6765\u4e86\u89e3\u4e00\u4e0bNLP\u4efb\u52a1\u4e2d\u5f88\u91cd\u8981\u7684\u4e00\u4e2aBenchmark\uff1aGLUE\u3002"),(0,s.kt)("h4",{id:"benchmark-glue"},"Benchmark: GLUE"),(0,s.kt)("p",null,(0,s.kt)("a",{parentName:"p",href:"https://gluebenchmark.com/"},"GLUE\uff08General Language Understanding Evaluation\uff09"),"\u662f\u4e00\u4e2a\u8bc4\u4f30\u81ea\u7136\u8bed\u8a00\u5904\u7406\u6a21\u578b\u5728\u591a\u4e2a\u4efb\u52a1\u4e0a\u7efc\u5408\u6027\u80fd\u7684\u57fa\u51c6\uff08benchmark\uff09\u3002\u5b83\u65e8\u5728\u6d4b\u8bd5\u6a21\u578b\u5bf9\u5404\u79cd\u8bed\u8a00\u4efb\u52a1\u7684\u901a\u7528\u7406\u89e3\u80fd\u529b\u3002GLUE benchmark \u5305\u542b\u4e86\u591a\u4e2a\u4efb\u52a1\uff0c\u6bcf\u4e2a\u4efb\u52a1\u90fd\u6709\u4e00\u4e2a\u5bf9\u5e94\u7684\u6570\u636e\u96c6\u548c\u8bc4\u4f30\u6807\u51c6\u3002"),(0,s.kt)("ol",null,(0,s.kt)("li",{parentName:"ol"},(0,s.kt)("strong",{parentName:"li"},"MNLI\uff08MultiNLI\uff09"),"\uff1a\u81ea\u7136\u8bed\u8a00\u63a8\u7406\u4efb\u52a1\uff0c\u8981\u6c42\u6a21\u578b\u5224\u65ad\u7ed9\u5b9a\u7684\u4e24\u4e2a\u53e5\u5b50\u4e4b\u95f4\u7684\u5173\u7cfb\u662f\u8574\u542b\u3001\u77db\u76fe\u8fd8\u662f\u4e2d\u7acb\u3002"),(0,s.kt)("li",{parentName:"ol"},(0,s.kt)("strong",{parentName:"li"},"QQP\uff08Quora Question Pairs\uff09"),"\uff1a\u95ee\u9898\u5339\u914d\u4efb\u52a1\uff0c\u8981\u6c42\u6a21\u578b\u5224\u65ad\u4e24\u4e2a\u95ee\u9898\u662f\u5426\u8bed\u4e49\u4e0a\u7b49\u4ef7\u3002"),(0,s.kt)("li",{parentName:"ol"},(0,s.kt)("strong",{parentName:"li"},"QNLI\uff08Question-answering Natural Language Inference\uff09"),"\uff1a\u53e5\u5b50\u5206\u7c7b\u4efb\u52a1\uff0c\u8981\u6c42\u6a21\u578b\u5224\u65ad\u7ed9\u5b9a\u95ee\u9898\u548c\u53e5\u5b50\u4e4b\u95f4\u7684\u5173\u7cfb\u3002"),(0,s.kt)("li",{parentName:"ol"},(0,s.kt)("strong",{parentName:"li"},"RTE\uff08Recognizing Textual Entailment\uff09"),"\uff1a\u6587\u672c\u8574\u6db5\u4efb\u52a1\uff0c\u8981\u6c42\u6a21\u578b\u5224\u65ad\u7ed9\u5b9a\u7684\u4e24\u4e2a\u6587\u672c\u4e4b\u95f4\u662f\u5426\u5b58\u5728\u8574\u6db5\u5173\u7cfb\u3002"),(0,s.kt)("li",{parentName:"ol"},(0,s.kt)("strong",{parentName:"li"},"STS-B\uff08Semantic Textual Similarity Benchmark\uff09"),"\uff1a\u8bed\u4e49\u6587\u672c\u76f8\u4f3c\u5ea6\u4efb\u52a1\uff0c\u8981\u6c42\u6a21\u578b\u5ea6\u91cf\u4e24\u4e2a\u6587\u672c\u4e4b\u95f4\u7684\u8bed\u4e49\u76f8\u4f3c\u5ea6\u3002"),(0,s.kt)("li",{parentName:"ol"},(0,s.kt)("strong",{parentName:"li"},"CoLA\uff08Corpus of Linguistic Acceptability\uff09"),"\uff1a\u8bed\u8a00\u53ef\u63a5\u53d7\u6027\u5224\u65ad\u4efb\u52a1\uff0c\u8981\u6c42\u6a21\u578b\u5224\u65ad\u4e00\u4e2a\u53e5\u5b50\u662f\u5426\u8bed\u6cd5\u4e0a\u6b63\u786e\u3002"),(0,s.kt)("li",{parentName:"ol"},(0,s.kt)("strong",{parentName:"li"},"MRPC\uff08Microsoft Research Paraphrase Corpus\uff09"),"\uff1a\u77ed\u8bed\u5339\u914d\u4efb\u52a1\uff0c\u8981\u6c42\u6a21\u578b\u5224\u65ad\u4e24\u4e2a\u53e5\u5b50\u662f\u5426\u8bed\u4e49\u4e0a\u7b49\u4ef7\u3002"),(0,s.kt)("li",{parentName:"ol"},(0,s.kt)("strong",{parentName:"li"},"SST-2\uff08Stanford Sentiment Treebank\uff09"),"\uff1a\u60c5\u611f\u5206\u7c7b\u4efb\u52a1\uff0c\u8981\u6c42\u6a21\u578b\u5224\u65ad\u7ed9\u5b9a\u53e5\u5b50\u7684\u60c5\u611f\u6781\u6027\u3002"),(0,s.kt)("li",{parentName:"ol"},(0,s.kt)("strong",{parentName:"li"},"WNLI\uff08Winograd NLI\uff09"),"\uff1a\u81ea\u7136\u8bed\u8a00\u63a8\u7406\u4efb\u52a1\uff0c\u5c5e\u4e8e Winograd \u6a21\u5f0f\u7684\u53d8\u4f53\uff0c\u8981\u6c42\u6a21\u578b\u5224\u65ad\u4e00\u4e2a\u7ed9\u5b9a\u7684\u53e5\u5b50\u5bf9\u662f\u5426\u5b58\u5728\u8574\u542b\u5173\u7cfb\u3002")),(0,s.kt)("p",null,"GLUE \u63d0\u4f9b\u4e86\u4e00\u4e2a\u5168\u9762\u7684\u6d4b\u8bd5\u5e73\u53f0\uff0c\u6709\u52a9\u4e8e\u8bc4\u4f30\u548c\u6bd4\u8f83\u4e0d\u540c\u81ea\u7136\u8bed\u8a00\u5904\u7406\u6a21\u578b\u5728\u591a\u4e2a\u4efb\u52a1\u4e0a\u7684\u6027\u80fd\u3002"),(0,s.kt)("p",null,(0,s.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_imagesimage-20231121172718354.png",alt:"image-20231121172718354"})),(0,s.kt)("h4",{id:"downstream-tasks"},"Downstream Tasks"),(0,s.kt)("h5",{id:"sentiment-analysis"},"Sentiment Analysis"),(0,s.kt)("p",null,(0,s.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_imagesimage-20231121203549320.png",alt:"image-20231121203549320"})),(0,s.kt)("p",null,"BERT\u4f5c\u4e3a\u81ea\u76d1\u7763\u7684\u9884\u8bad\u7ec3\u6a21\u578b\uff0c\u4ece\u5927\u8bed\u6599\u5e93\u4e2d\u5b66\u4e60\u5230\u4e86\u4e00\u5b9a\u7684\u8bed\u8a00\u77e5\u8bc6\uff0c\u5728\u505a\u6587\u5b57\u60c5\u611f\u5206\u6790\u65f6\uff0c\u53ea\u9700\u8981\u5728\u4e0b\u6e38\u8fde\u63a5\u4e0a\u5bf9\u5e94\u7684\u5206\u7c7b\u5668\u7f51\u7edc\uff0c\u5373\u4f7f\u53ea\u6709\u6bd4\u8f83\u5c11\u91cf\u7684\u8bad\u7ec3\u8d44\u6599\u4e5f\u80fd\u5f97\u5230\u6bd4\u8f83\u597d\u7684\u6548\u679c\u3002"),(0,s.kt)("p",null,"\u4e0b\u56fe\u5c06Pre-training&Fine-tuning\u8303\u5f0f\u4e0eScratch\u8303\u5f0f\u7684\u8bad\u7ec3\u6548\u679c\u505a\u4e86\u5bf9\u6bd4\uff0c\u5176\u4e2dScratch\u8303\u5f0f\u5373\u4f7f\u7528\u4f20\u7edf\u7684\u968f\u673a\u521d\u59cb\u5316\u7684\u65b9\u5f0f\u4ece\u5934\u8bad\u7ec3\u6574\u4e2a\u5206\u7c7b\u7f51\u7edc\u3002\u53ef\u4ee5\u770b\u5230\u9884\u8bad\u7ec3&\u5fae\u8c03\u7684\u8bad\u7ec3\u8303\u5f0f\u53ef\u4ee5\u52a0\u901f\u6a21\u578b\u7684\u6536\u655b\uff08Convergence\uff09\u5e76\u4e14\u6548\u679c\u4e5f\u66f4\u597d\u3002"),(0,s.kt)("p",null,(0,s.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_imagesimage-20231121203701613.png",alt:"image-20231121203701613"})),(0,s.kt)("h5",{id:"\u7acb\u573a\u5206\u6790"},"\u7acb\u573a\u5206\u6790"),(0,s.kt)("p",null,(0,s.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_imagesimage-20231121205359709.png",alt:"image-20231121205359709"})),(0,s.kt)("h5",{id:"extraction-based-question-answering"},"Extraction-based Question Answering"),(0,s.kt)("p",null,"BERT\u4e5f\u53ef\u4ee5\u7528\u6765\u5b8c\u6210\u622a\u53d6\u5f0f\u95ee\u7b54\u4efb\u52a1\uff0c\u63d0\u4f9b\u4e00\u7bc7\u6587\u7ae0\u4ee5\u53ca\u95ee\u9898\uff0c\u8981\u6c42\u8f93\u51fa\u4e24\u4e2ainteger\u4ee3\u8868\u7b54\u6848\u77ed\u8bed\u5728\u8be5\u6587\u7ae0\u4e2d\u7684\u8d77\u59cb\u4f4d\u7f6e\u4ee5\u53ca\u7ed3\u675f\u4f4d\u7f6e\u3002"),(0,s.kt)("p",null,(0,s.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_imagesimage-20231121205619437.png",alt:"image-20231121205619437"})),(0,s.kt)("p",null,"\u5177\u4f53\u7684\u89e3\u51b3\u65b9\u6848\uff1a\u9009\u62e9\u8f93\u5165\u6587\u7ae0\u7684\u6240\u6709token\u6240\u5bf9\u5e94\u7684\u8f93\u51fa\u5411\u91cf\uff0c\u968f\u673a\u521d\u59cb\u5316\u4e24\u4e2a\u76f8\u540c\u7ef4\u5ea6\u7684\u5411\u91cf\uff0c\u5206\u522b\u4e0e\u8f93\u51fa\u5411\u91cf\u505aDot Product\uff0c\u5728\u7ecf\u8fc7Softmax\u4e4b\u540e\u9009\u62e9\u6700\u5927\u7684\u5f97\u5206\u6240\u5bf9\u5e94\u7684\u7d22\u5f15\u3002\u5f97\u5230\u7684\u4e24\u4e2a\u7d22\u5f15\u5206\u522b\u662f\u7b54\u6848\u77ed\u8bed\u5728\u6587\u7ae0\u4e2d\u5f00\u59cb\u7684\u4f4d\u7f6e\u4ee5\u53ca\u7ed3\u675f\u7684\u4f4d\u7f6e\u3002"),(0,s.kt)("p",null,(0,s.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_imagesimage-20231121211218801.png",alt:"image-20231121211218801"})),(0,s.kt)("p",null,(0,s.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_imagesimage-20231121210938519.png",alt:"image-20231121210938519"})),(0,s.kt)("h5",{id:"\u5176\u4ed6\u5e94\u7528"},"\u5176\u4ed6\u5e94\u7528"),(0,s.kt)("p",null,"\u867d\u7136\u4ee5\u4e0a\u7684\u5e94\u7528\u90fd\u662fNLP\u9886\u57df\u7684\uff0c\u4f46\u662fBERT\u662fSeq2Seq\u6a21\u578b\uff0c\u56fe\u7247\u3001\u8bed\u97f3\u7b49\u4fe1\u53f7\u4e5f\u90fd\u53ef\u4ee5\u4f5c\u4e3aSequence\u8f93\u5165\u81f3BERT\u4e2d\uff0c\u56e0\u6b64BERT\u4e5f\u53ef\u4ee5\u901a\u8fc7\u8fc1\u79fb\u5b66\u4e60\u5e94\u7528\u81f3\u591a\u6a21\u6001\u9886\u57df\u3002"),(0,s.kt)("h3",{id:"why-does-bert-work"},"Why does BERT work?"),(0,s.kt)("p",null,"BERT\u5728\u5927\u89c4\u6a21\u8bed\u6599\u5e93\uff08Corpus\uff09\u4e0a\u9884\u8bad\u7ec3\u540e\uff0c\u8f93\u51fa\u7684\u5411\u91cf\u8868\u793a\u4e86\u5bf9\u5e94\u8f93\u5165token\u7684\u610f\u601d\uff0c\u7279\u522b\u5730\uff0c\u662f\u8003\u8651\u4e86",(0,s.kt)("strong",{parentName:"p"},"\u4e0a\u4e0b\u6587\u4fe1\u606f"),"\u7684\u610f\u601d\u3002\u6bd4\u5982\uff0c\u5bf9\u4e8e\u6c34\u679c\u7684\u82f9\u679c\u5df2\u7ecf\u82f9\u679c\u516c\u53f8\u7684\u82f9\u679c\uff0cBERT\u5bf9\u4e00\u6837\u7684\u82f9\u679c\u6709\u4e0d\u540c\u7684\u8f93\u51fa\u3002\u5373\u5bf9\u4e00\u4e2a\u5904\u5728\u4e0d\u540c\u4e0a\u4e0b\u6587\u4fe1\u606f\u4e2d\u7684\u76f8\u540c\u8bcd\u6c47\uff0cBERT\u6709\u4e0d\u540c\u7684Embedding\u3002\u7c7b\u4f3c\u4e8eWord Embedding\u4e2d\u7684CBOW\uff0cBERT\u53ef\u4ee5\u770b\u4f5c\u662f",(0,s.kt)("strong",{parentName:"p"},"Contextualized Word Embedding"),"\u3002"),(0,s.kt)("blockquote",null,(0,s.kt)("p",{parentName:"blockquote"},"BERT\u6a21\u578b\u7684\u6838\u5fc3\u5c31\u662f\u901a\u8fc7\u9884\u8bad\u7ec3\u6765\u5b66\u4e60\u4e0a\u4e0b\u6587\u4fe1\u606f\uff0c\u8fdb\u800c\u5bf9\u6bcf\u4e2a\u8f93\u5165token\u751f\u6210\u76f8\u5e94\u7684\u5411\u91cf\u8868\u793a\u3002\u8fd9\u4e2a\u5411\u91cf\u8868\u793a\u8003\u8651\u4e86\u4e0a\u4e0b\u6587\u4fe1\u606f\uff0c\u6240\u4ee5\u5bf9\u4e8e\u5904\u5728\u4e0d\u540c\u4e0a\u4e0b\u6587\u4e2d\u7684\u76f8\u540c\u8bcd\u6c47\uff0cBERT\u4f1a\u6709\u4e0d\u540c\u7684Embedding\u3002"),(0,s.kt)("p",{parentName:"blockquote"},"\u2014\u2014\u6765\u81ea\u8baf\u98de\u661f\u706b\u5927\u6a21\u578b")),(0,s.kt)("blockquote",null,(0,s.kt)("p",{parentName:"blockquote"},"\u867d\u7136 BERT \u7684\u786e\u662f\u4e00\u79cd\u57fa\u4e8e\u5927\u89c4\u6a21\u8bed\u6599\u5e93\u7684\u9884\u8bad\u7ec3\u6a21\u578b\uff0c\u4f46\u5b83\u5e76\u4e0d\u662f\u4e00\u79cd\u7b80\u5355\u7684\u8bcd\u5d4c\u5165\u65b9\u6cd5\uff0c\u800c\u662f\u4e00\u79cd\u6df1\u5ea6\u795e\u7ecf\u7f51\u7edc\u6a21\u578b\u3002"),(0,s.kt)("p",{parentName:"blockquote"},"\u5728 BERT \u4e2d\uff0c\u6bcf\u4e2a\u5355\u8bcd\u90fd\u88ab\u5d4c\u5165\u5230\u4e00\u4e2a\u9ad8\u7ef4\u7a7a\u95f4\u4e2d\uff0c\u5e76\u4e14\u8fd9\u4e9b\u5d4c\u5165\u5411\u91cf\u662f\u901a\u8fc7\u591a\u5c42 Transformer \u7f16\u7801\u5668\u751f\u6210\u7684\u3002\u8fd9\u4e9b\u7f16\u7801\u5668\u7684\u6bcf\u4e00\u5c42\u90fd\u5305\u542b\u591a\u4e2a\u81ea\u6ce8\u610f\u529b\u5b50\u5c42\u548c\u4e00\u4e2a\u524d\u9988\u795e\u7ecf\u7f51\u7edc\u5b50\u5c42\uff0c\u5b83\u4eec\u5171\u540c\u4f5c\u7528\u6765\u6355\u6349\u6587\u672c\u4e2d\u7684\u4e0a\u4e0b\u6587\u5173\u7cfb\u548c\u5176\u4ed6\u8bed\u4e49\u7279\u5f81\u3002"),(0,s.kt)("p",{parentName:"blockquote"},"\u56e0\u6b64\uff0cBERT \u4e2d\u7684\u5d4c\u5165\u5411\u91cf\u4e0d\u4ec5\u4ec5\u662f\u5355\u4e2a\u5355\u8bcd\u7684\u8bcd\u4e49\u8868\u5f81\uff0c\u8fd8\u5305\u62ec\u6574\u4e2a\u53e5\u5b50\u6216\u6bb5\u843d\u4e2d\u7684\u8bed\u5883\u4fe1\u606f\u3002\u8fd9\u610f\u5473\u7740\u5373\u4f7f\u4e24\u4e2a\u5355\u8bcd\u5728\u4e0d\u540c\u7684\u4e0a\u4e0b\u6587\u4e2d\u51fa\u73b0\uff0c\u5b83\u4eec\u7684\u5d4c\u5165\u5411\u91cf\u4e5f\u53ef\u80fd\u975e\u5e38\u76f8\u4f3c\uff0c\u56e0\u4e3a\u5b83\u4eec\u5171\u4eab\u76f8\u540c\u7684\u8bed\u4e49\u7ed3\u6784\u3002"),(0,s.kt)("p",{parentName:"blockquote"},"\u603b\u4e4b\uff0cBERT \u53ef\u4ee5\u88ab\u89c6\u4e3a\u4e00\u79cd",(0,s.kt)("strong",{parentName:"p"},"\u4e0a\u4e0b\u6587\u611f\u77e5\u8bcd\u5d4c\u5165"),"\u6280\u672f\uff0c\u4f46\u5b83\u7684\u5b9e\u73b0\u65b9\u5f0f\u6bd4\u4f20\u7edf\u7684\u8bcd\u5d4c\u5165\u65b9\u6cd5\u8981\u590d\u6742\u5f97\u591a\u3002"),(0,s.kt)("p",{parentName:"blockquote"},"\u2014\u2014\u6765\u81ea\u817e\u8baf\u6df7\u5143\u5927\u6a21\u578b")),(0,s.kt)("h2",{id:"gpt-generative-pre-trained-transformer"},"GPT: Generative Pre-trained Transformer"),(0,s.kt)("p",null,"GPT\u7684\u7ed3\u6784\u662fTransformer\u7684Decoder\u90e8\u5206\uff0c\u53ef\u4ee5\u627f\u62c5\u751f\u6210\u7684\u4efb\u52a1\u3002"),(0,s.kt)("p",null,"GPT\u7684\u81ea\u76d1\u7763\u5b66\u4e60\u7684\u7279\u5f81\u4f53\u73b0\u5728\uff1a\u5728\u8bad\u7ec3\u8fc7\u7a0b\u4e2d\uff0cGPT\u6839\u636e\u8f93\u5165\u7684token\u9884\u6d4b\u8f93\u5165\u7684\u4e0b\u4e00\u4e2atoken\u5e94\u8be5\u662f\u4ec0\u4e48\uff0c\u5bf9\u8f93\u51fa\u7684distribution\u4e0eGround Truth\u505aCross Entropy Loss\u6765\u66f4\u65b0\u53c2\u6570\u3002"),(0,s.kt)("p",null,(0,s.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_imagesimage-20231122093825510.png",alt:"image-20231122093825510"})))}k.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/en/assets/js/a8fad2e4.6560c6d4.js b/en/assets/js/a8fad2e4.6560c6d4.js new file mode 100644 index 000000000..c75f96965 --- /dev/null +++ b/en/assets/js/a8fad2e4.6560c6d4.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunknpy_notebook=self.webpackChunknpy_notebook||[]).push([[1130],{3905:(a,e,t)=>{t.d(e,{Zo:()=>i,kt:()=>h});var s=t(7294);function n(a,e,t){return e in a?Object.defineProperty(a,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):a[e]=t,a}function m(a,e){var t=Object.keys(a);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(a);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable}))),t.push.apply(t,s)}return t}function p(a){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?m(Object(t),!0).forEach((function(e){n(a,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(t)):m(Object(t)).forEach((function(e){Object.defineProperty(a,e,Object.getOwnPropertyDescriptor(t,e))}))}return a}function r(a,e){if(null==a)return{};var t,s,n=function(a,e){if(null==a)return{};var t,s,n={},m=Object.keys(a);for(s=0;s<m.length;s++)t=m[s],e.indexOf(t)>=0||(n[t]=a[t]);return n}(a,e);if(Object.getOwnPropertySymbols){var m=Object.getOwnPropertySymbols(a);for(s=0;s<m.length;s++)t=m[s],e.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(a,t)&&(n[t]=a[t])}return n}var N=s.createContext({}),l=function(a){var e=s.useContext(N),t=e;return a&&(t="function"==typeof a?a(e):p(p({},e),a)),t},i=function(a){var e=l(a.components);return s.createElement(N.Provider,{value:e},a.children)},k="mdxType",c={inlineCode:"code",wrapper:function(a){var e=a.children;return s.createElement(s.Fragment,{},e)}},o=s.forwardRef((function(a,e){var t=a.components,n=a.mdxType,m=a.originalType,N=a.parentName,i=r(a,["components","mdxType","originalType","parentName"]),k=l(t),o=n,h=k["".concat(N,".").concat(o)]||k[o]||c[o]||m;return t?s.createElement(h,p(p({ref:e},i),{},{components:t})):s.createElement(h,p({ref:e},i))}));function h(a,e){var t=arguments,n=e&&e.mdxType;if("string"==typeof a||n){var m=t.length,p=new Array(m);p[0]=o;var r={};for(var N in e)hasOwnProperty.call(e,N)&&(r[N]=e[N]);r.originalType=a,r[k]="string"==typeof a?a:n,p[1]=r;for(var l=2;l<m;l++)p[l]=t[l];return s.createElement.apply(null,p)}return s.createElement.apply(null,t)}o.displayName="MDXCreateElement"},119:(a,e,t)=>{t.r(e),t.d(e,{assets:()=>N,contentTitle:()=>p,default:()=>c,frontMatter:()=>m,metadata:()=>r,toc:()=>l});var s=t(7462),n=(t(7294),t(3905));const m={},p="Perceptron",r={unversionedId:"Deep-Learning/\u57fa\u7840\u77e5\u8bc6/Perceptron",id:"Deep-Learning/\u57fa\u7840\u77e5\u8bc6/Perceptron",title:"Perceptron",description:"\u4e00\u3001\u4ec0\u4e48\u662f\u611f\u77e5\u673a",source:"@site/docs/Deep-Learning/3-\u57fa\u7840\u77e5\u8bc6/Perceptron.md",sourceDirName:"Deep-Learning/3-\u57fa\u7840\u77e5\u8bc6",slug:"/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/Perceptron",permalink:"/en/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/Perceptron",draft:!1,tags:[],version:"current",frontMatter:{},sidebar:"deep_learning",previous:{title:"\u5173\u4e8eLogistic Regression",permalink:"/en/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/LogisticRegression"},next:{title:"\u6c60\u5316\u5c42",permalink:"/en/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/PoolingLayer"}},N={},l=[{value:"\u4e00\u3001\u4ec0\u4e48\u662f\u611f\u77e5\u673a",id:"\u4e00\u4ec0\u4e48\u662f\u611f\u77e5\u673a",level:2},{value:"\u4e8c\u3001\u8be6\u7ec6\u539f\u7406",id:"\u4e8c\u8be6\u7ec6\u539f\u7406",level:2},{value:"\u4e09\u3001\u603b\u7ed3",id:"\u4e09\u603b\u7ed3",level:2}],i={toc:l},k="wrapper";function c(a){let{components:e,...t}=a;return(0,n.kt)(k,(0,s.Z)({},i,t,{components:e,mdxType:"MDXLayout"}),(0,n.kt)("h1",{id:"perceptron"},"Perceptron"),(0,n.kt)("h2",{id:"\u4e00\u4ec0\u4e48\u662f\u611f\u77e5\u673a"},"\u4e00\u3001\u4ec0\u4e48\u662f\u611f\u77e5\u673a"),(0,n.kt)("p",null,"\u611f\u77e5\u673a\u662f\u4e00\u79cd\u4e8c\u5143\u7ebf\u6027\u5206\u7c7b\u6a21\u578b\uff0c\u65e8\u5728\u5bfb\u627e\u4e00\u4e2a\u8d85\u5e73\u9762\uff08\u5728\u4e8c\u7ef4\u7a7a\u95f4\u4e2d\u5373\u4e3a\u4e00\u6761\u76f4\u7ebf\uff09\uff0c\u5c06\u4e0d\u540c\u7c7b\u522b\u7684\u5b9e\u4f8b\u5212\u5206\u5230\u4e0d\u540c\u7684\u533a\u57df\u3002\u611f\u77e5\u673a\u7684\u8bad\u7ec3\u8fc7\u7a0b\u5305\u62ec\u8fed\u4ee3\u5730\u5bf9\u6837\u672c\u8fdb\u884c\u5206\u7c7b\uff0c\u5e76\u6839\u636e\u5206\u7c7b\u9519\u8bef\u7684\u60c5\u51b5\u8c03\u6574\u8d85\u5e73\u9762\u7684\u53c2\u6570\uff0c\u4f7f\u5f97\u5206\u7c7b\u51c6\u786e\u7387\u9010\u6b65\u63d0\u9ad8\u3002\u611f\u77e5\u673a\u662f\u57fa\u7840\u7684\u673a\u5668\u5b66\u4e60\u7b97\u6cd5\u4e4b\u4e00\uff0c\u5176\u601d\u60f3\u548c\u65b9\u6cd5\u5bf9\u795e\u7ecf\u7f51\u7edc\u7b49\u66f4\u590d\u6742\u7684\u6a21\u578b\u4e5f\u5177\u6709\u542f\u53d1\u610f\u4e49\u3002"),(0,n.kt)("hr",null),(0,n.kt)("h2",{id:"\u4e8c\u8be6\u7ec6\u539f\u7406"},"\u4e8c\u3001\u8be6\u7ec6\u539f\u7406"),(0,n.kt)("ol",null,(0,n.kt)("li",{parentName:"ol"},(0,n.kt)("p",{parentName:"li"},"\u8f93\u5165\u5411\u91cf\uff1a\u611f\u77e5\u673a\u7684\u8f93\u5165\u5411\u91cf\u662f\u4e00\u4e2an\u7ef4\u5411\u91cf",(0,n.kt)("span",{parentName:"p",className:"math math-inline"},(0,n.kt)("span",{parentName:"span",className:"katex"},(0,n.kt)("span",{parentName:"span",className:"katex-mathml"},(0,n.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,n.kt)("semantics",{parentName:"math"},(0,n.kt)("mrow",{parentName:"semantics"},(0,n.kt)("mi",{parentName:"mrow"},"x"),(0,n.kt)("mo",{parentName:"mrow"},"="),(0,n.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,n.kt)("msub",{parentName:"mrow"},(0,n.kt)("mi",{parentName:"msub"},"x"),(0,n.kt)("mn",{parentName:"msub"},"1")),(0,n.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,n.kt)("msub",{parentName:"mrow"},(0,n.kt)("mi",{parentName:"msub"},"x"),(0,n.kt)("mn",{parentName:"msub"},"2")),(0,n.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,n.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"."),(0,n.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"."),(0,n.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"."),(0,n.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,n.kt)("msub",{parentName:"mrow"},(0,n.kt)("mi",{parentName:"msub"},"x"),(0,n.kt)("mi",{parentName:"msub"},"n")),(0,n.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,n.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"x=(x_1,x_2,...,x_n)")))),(0,n.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,n.kt)("span",{parentName:"span",className:"base"},(0,n.kt)("span",{parentName:"span",className:"strut",style:{height:"0.4306em"}}),(0,n.kt)("span",{parentName:"span",className:"mord mathnormal"},"x"),(0,n.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,n.kt)("span",{parentName:"span",className:"mrel"},"="),(0,n.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,n.kt)("span",{parentName:"span",className:"base"},(0,n.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,n.kt)("span",{parentName:"span",className:"mopen"},"("),(0,n.kt)("span",{parentName:"span",className:"mord"},(0,n.kt)("span",{parentName:"span",className:"mord mathnormal"},"x"),(0,n.kt)("span",{parentName:"span",className:"msupsub"},(0,n.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,n.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,n.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,n.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,n.kt)("span",{parentName:"span",className:"mord mtight"},"1")))),(0,n.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,n.kt)("span",{parentName:"span"})))))),(0,n.kt)("span",{parentName:"span",className:"mpunct"},","),(0,n.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,n.kt)("span",{parentName:"span",className:"mord"},(0,n.kt)("span",{parentName:"span",className:"mord mathnormal"},"x"),(0,n.kt)("span",{parentName:"span",className:"msupsub"},(0,n.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,n.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,n.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,n.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,n.kt)("span",{parentName:"span",className:"mord mtight"},"2")))),(0,n.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,n.kt)("span",{parentName:"span"})))))),(0,n.kt)("span",{parentName:"span",className:"mpunct"},","),(0,n.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,n.kt)("span",{parentName:"span",className:"mord"},"..."),(0,n.kt)("span",{parentName:"span",className:"mpunct"},","),(0,n.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,n.kt)("span",{parentName:"span",className:"mord"},(0,n.kt)("span",{parentName:"span",className:"mord mathnormal"},"x"),(0,n.kt)("span",{parentName:"span",className:"msupsub"},(0,n.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.1514em"}},(0,n.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,n.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,n.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,n.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"n")))),(0,n.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,n.kt)("span",{parentName:"span"})))))),(0,n.kt)("span",{parentName:"span",className:"mclose"},")"))))),"\uff0c\u8868\u793a\u4e00\u4e2a\u6837\u672c\u7684\u5404\u4e2a\u7279\u5f81\u503c\u3002")),(0,n.kt)("li",{parentName:"ol"},(0,n.kt)("p",{parentName:"li"},"\u6743\u503c\u5411\u91cf\uff1a\u611f\u77e5\u673a\u7684\u6743\u503c\u5411\u91cf\u4e5f\u662f\u4e00\u4e2an\u7ef4\u5411\u91cf",(0,n.kt)("span",{parentName:"p",className:"math math-inline"},(0,n.kt)("span",{parentName:"span",className:"katex"},(0,n.kt)("span",{parentName:"span",className:"katex-mathml"},(0,n.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,n.kt)("semantics",{parentName:"math"},(0,n.kt)("mrow",{parentName:"semantics"},(0,n.kt)("mi",{parentName:"mrow"},"w"),(0,n.kt)("mo",{parentName:"mrow"},"="),(0,n.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,n.kt)("msub",{parentName:"mrow"},(0,n.kt)("mi",{parentName:"msub"},"w"),(0,n.kt)("mn",{parentName:"msub"},"1")),(0,n.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,n.kt)("msub",{parentName:"mrow"},(0,n.kt)("mi",{parentName:"msub"},"w"),(0,n.kt)("mn",{parentName:"msub"},"2")),(0,n.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,n.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"."),(0,n.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"."),(0,n.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"."),(0,n.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,n.kt)("msub",{parentName:"mrow"},(0,n.kt)("mi",{parentName:"msub"},"w"),(0,n.kt)("mi",{parentName:"msub"},"n")),(0,n.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,n.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"w=(w_1,w_2,...,w_n)")))),(0,n.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,n.kt)("span",{parentName:"span",className:"base"},(0,n.kt)("span",{parentName:"span",className:"strut",style:{height:"0.4306em"}}),(0,n.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02691em"}},"w"),(0,n.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,n.kt)("span",{parentName:"span",className:"mrel"},"="),(0,n.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,n.kt)("span",{parentName:"span",className:"base"},(0,n.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,n.kt)("span",{parentName:"span",className:"mopen"},"("),(0,n.kt)("span",{parentName:"span",className:"mord"},(0,n.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02691em"}},"w"),(0,n.kt)("span",{parentName:"span",className:"msupsub"},(0,n.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,n.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0269em",marginRight:"0.05em"}},(0,n.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,n.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,n.kt)("span",{parentName:"span",className:"mord mtight"},"1")))),(0,n.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,n.kt)("span",{parentName:"span"})))))),(0,n.kt)("span",{parentName:"span",className:"mpunct"},","),(0,n.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,n.kt)("span",{parentName:"span",className:"mord"},(0,n.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02691em"}},"w"),(0,n.kt)("span",{parentName:"span",className:"msupsub"},(0,n.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,n.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0269em",marginRight:"0.05em"}},(0,n.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,n.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,n.kt)("span",{parentName:"span",className:"mord mtight"},"2")))),(0,n.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,n.kt)("span",{parentName:"span"})))))),(0,n.kt)("span",{parentName:"span",className:"mpunct"},","),(0,n.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,n.kt)("span",{parentName:"span",className:"mord"},"..."),(0,n.kt)("span",{parentName:"span",className:"mpunct"},","),(0,n.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,n.kt)("span",{parentName:"span",className:"mord"},(0,n.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02691em"}},"w"),(0,n.kt)("span",{parentName:"span",className:"msupsub"},(0,n.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.1514em"}},(0,n.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0269em",marginRight:"0.05em"}},(0,n.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,n.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,n.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"n")))),(0,n.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,n.kt)("span",{parentName:"span",className:"vlist-r"},(0,n.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,n.kt)("span",{parentName:"span"})))))),(0,n.kt)("span",{parentName:"span",className:"mclose"},")"))))),"\uff0c\u8868\u793a\u6bcf\u4e2a\u7279\u5f81\u5bf9\u5e94\u7684\u6743\u91cd\u3002")),(0,n.kt)("li",{parentName:"ol"},(0,n.kt)("p",{parentName:"li"},"\u504f\u7f6e\u9879\uff1a\u504f\u7f6e\u9879",(0,n.kt)("span",{parentName:"p",className:"math math-inline"},(0,n.kt)("span",{parentName:"span",className:"katex"},(0,n.kt)("span",{parentName:"span",className:"katex-mathml"},(0,n.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,n.kt)("semantics",{parentName:"math"},(0,n.kt)("mrow",{parentName:"semantics"},(0,n.kt)("mi",{parentName:"mrow"},"b")),(0,n.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"b")))),(0,n.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,n.kt)("span",{parentName:"span",className:"base"},(0,n.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6944em"}}),(0,n.kt)("span",{parentName:"span",className:"mord mathnormal"},"b"))))),"\u662f\u4e00\u4e2a\u5e38\u6570\uff0c\u53ef\u770b\u4f5c\u662f\u6a21\u578b\u7684\u622a\u8ddd\uff0c\u7528\u4e8e\u8c03\u6574\u9608\u503c\u51fd\u6570\u7684\u4f4d\u7f6e\u3002")),(0,n.kt)("li",{parentName:"ol"},(0,n.kt)("p",{parentName:"li"},"\u5185\u79ef\u8fd0\u7b97\uff1a\u611f\u77e5\u673a\u5c06\u8f93\u5165\u5411\u91cf\u548c\u6743\u503c\u5411\u91cf\u8fdb\u884c\u5185\u79ef\u8fd0\u7b97\uff0c\u5e76\u52a0\u4e0a\u504f\u7f6e\u9879\uff0c\u5f97\u5230\u8f93\u5165\u4fe1\u53f7",(0,n.kt)("span",{parentName:"p",className:"math math-inline"},(0,n.kt)("span",{parentName:"span",className:"katex"},(0,n.kt)("span",{parentName:"span",className:"katex-mathml"},(0,n.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,n.kt)("semantics",{parentName:"math"},(0,n.kt)("mrow",{parentName:"semantics"},(0,n.kt)("mi",{parentName:"mrow"},"z"),(0,n.kt)("mo",{parentName:"mrow"},"="),(0,n.kt)("mi",{parentName:"mrow"},"w"),(0,n.kt)("mo",{parentName:"mrow"},"\u2217"),(0,n.kt)("mi",{parentName:"mrow"},"x"),(0,n.kt)("mo",{parentName:"mrow"},"+"),(0,n.kt)("mi",{parentName:"mrow"},"b")),(0,n.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"z=w*x+b")))),(0,n.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,n.kt)("span",{parentName:"span",className:"base"},(0,n.kt)("span",{parentName:"span",className:"strut",style:{height:"0.4306em"}}),(0,n.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.04398em"}},"z"),(0,n.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,n.kt)("span",{parentName:"span",className:"mrel"},"="),(0,n.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,n.kt)("span",{parentName:"span",className:"base"},(0,n.kt)("span",{parentName:"span",className:"strut",style:{height:"0.4653em"}}),(0,n.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02691em"}},"w"),(0,n.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,n.kt)("span",{parentName:"span",className:"mbin"},"\u2217"),(0,n.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}})),(0,n.kt)("span",{parentName:"span",className:"base"},(0,n.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6667em",verticalAlign:"-0.0833em"}}),(0,n.kt)("span",{parentName:"span",className:"mord mathnormal"},"x"),(0,n.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,n.kt)("span",{parentName:"span",className:"mbin"},"+"),(0,n.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}})),(0,n.kt)("span",{parentName:"span",className:"base"},(0,n.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6944em"}}),(0,n.kt)("span",{parentName:"span",className:"mord mathnormal"},"b"))))),"\u3002")),(0,n.kt)("li",{parentName:"ol"},(0,n.kt)("p",{parentName:"li"},"\u9608\u503c\u51fd\u6570\uff1a\u5c06\u8f93\u5165\u4fe1\u53f7",(0,n.kt)("span",{parentName:"p",className:"math math-inline"},(0,n.kt)("span",{parentName:"span",className:"katex"},(0,n.kt)("span",{parentName:"span",className:"katex-mathml"},(0,n.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,n.kt)("semantics",{parentName:"math"},(0,n.kt)("mrow",{parentName:"semantics"},(0,n.kt)("mi",{parentName:"mrow"},"z")),(0,n.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"z")))),(0,n.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,n.kt)("span",{parentName:"span",className:"base"},(0,n.kt)("span",{parentName:"span",className:"strut",style:{height:"0.4306em"}}),(0,n.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.04398em"}},"z"))))),"\u5e26\u5165\u9608\u503c\u51fd\u6570\uff0c\u5982\u7b26\u53f7\u51fd\u6570",(0,n.kt)("span",{parentName:"p",className:"math math-inline"},(0,n.kt)("span",{parentName:"span",className:"katex"},(0,n.kt)("span",{parentName:"span",className:"katex-mathml"},(0,n.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,n.kt)("semantics",{parentName:"math"},(0,n.kt)("mrow",{parentName:"semantics"},(0,n.kt)("mi",{parentName:"mrow"},"s"),(0,n.kt)("mi",{parentName:"mrow"},"i"),(0,n.kt)("mi",{parentName:"mrow"},"g"),(0,n.kt)("mi",{parentName:"mrow"},"n"),(0,n.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,n.kt)("mi",{parentName:"mrow"},"z"),(0,n.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,n.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"sign(z)")))),(0,n.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,n.kt)("span",{parentName:"span",className:"base"},(0,n.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,n.kt)("span",{parentName:"span",className:"mord mathnormal"},"s"),(0,n.kt)("span",{parentName:"span",className:"mord mathnormal"},"i"),(0,n.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"g"),(0,n.kt)("span",{parentName:"span",className:"mord mathnormal"},"n"),(0,n.kt)("span",{parentName:"span",className:"mopen"},"("),(0,n.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.04398em"}},"z"),(0,n.kt)("span",{parentName:"span",className:"mclose"},")"))))),"\uff0c\u5373\u53ef\u5f97\u5230\u5206\u7c7b\u7ed3\u679c\u3002")),(0,n.kt)("li",{parentName:"ol"},(0,n.kt)("p",{parentName:"li"},"\u635f\u5931\u51fd\u6570\uff1a\u611f\u77e5\u673a\u4f7f\u7528\u8bef\u5206\u7c7b\u70b9\u5230\u8d85\u5e73\u9762\u7684\u8ddd\u79bb\u6765\u4f5c\u4e3a\u635f\u5931\u51fd\u6570\uff0c\u5373"),(0,n.kt)("div",{parentName:"li",className:"math math-display"},(0,n.kt)("span",{parentName:"div",className:"katex-display"},(0,n.kt)("span",{parentName:"span",className:"katex"},(0,n.kt)("span",{parentName:"span",className:"katex-mathml"},(0,n.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,n.kt)("semantics",{parentName:"math"},(0,n.kt)("mtable",{parentName:"semantics",width:"100%"},(0,n.kt)("mtr",{parentName:"mtable"},(0,n.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,n.kt)("mtd",{parentName:"mtr"},(0,n.kt)("mrow",{parentName:"mtd"},(0,n.kt)("mi",{parentName:"mrow"},"L"),(0,n.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,n.kt)("mi",{parentName:"mrow"},"y"),(0,n.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,n.kt)("mi",{parentName:"mrow"},"z"),(0,n.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,n.kt)("mo",{parentName:"mrow"},"="),(0,n.kt)("mi",{parentName:"mrow"},"m"),(0,n.kt)("mi",{parentName:"mrow"},"a"),(0,n.kt)("mi",{parentName:"mrow"},"x"),(0,n.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,n.kt)("mn",{parentName:"mrow"},"0"),(0,n.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,n.kt)("mo",{parentName:"mrow"},"\u2212"),(0,n.kt)("mi",{parentName:"mrow"},"y"),(0,n.kt)("mo",{parentName:"mrow"},"\u2217"),(0,n.kt)("mi",{parentName:"mrow"},"z"),(0,n.kt)("mo",{parentName:"mrow",stretchy:"false"},")"))),(0,n.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,n.kt)("mtd",{parentName:"mtr"},(0,n.kt)("mtext",{parentName:"mtd"},"(1)")))),(0,n.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"L(y,z)=max(0,-y*z) \\tag{1}")))),(0,n.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,n.kt)("span",{parentName:"span",className:"base"},(0,n.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,n.kt)("span",{parentName:"span",className:"mord mathnormal"},"L"),(0,n.kt)("span",{parentName:"span",className:"mopen"},"("),(0,n.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"y"),(0,n.kt)("span",{parentName:"span",className:"mpunct"},","),(0,n.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,n.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.04398em"}},"z"),(0,n.kt)("span",{parentName:"span",className:"mclose"},")"),(0,n.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,n.kt)("span",{parentName:"span",className:"mrel"},"="),(0,n.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,n.kt)("span",{parentName:"span",className:"base"},(0,n.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,n.kt)("span",{parentName:"span",className:"mord mathnormal"},"ma"),(0,n.kt)("span",{parentName:"span",className:"mord mathnormal"},"x"),(0,n.kt)("span",{parentName:"span",className:"mopen"},"("),(0,n.kt)("span",{parentName:"span",className:"mord"},"0"),(0,n.kt)("span",{parentName:"span",className:"mpunct"},","),(0,n.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,n.kt)("span",{parentName:"span",className:"mord"},"\u2212"),(0,n.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"y"),(0,n.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,n.kt)("span",{parentName:"span",className:"mbin"},"\u2217"),(0,n.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}})),(0,n.kt)("span",{parentName:"span",className:"base"},(0,n.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,n.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.04398em"}},"z"),(0,n.kt)("span",{parentName:"span",className:"mclose"},")")),(0,n.kt)("span",{parentName:"span",className:"tag"},(0,n.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,n.kt)("span",{parentName:"span",className:"mord text"},(0,n.kt)("span",{parentName:"span",className:"mord"},"("),(0,n.kt)("span",{parentName:"span",className:"mord"},(0,n.kt)("span",{parentName:"span",className:"mord"},"1")),(0,n.kt)("span",{parentName:"span",className:"mord"},")"))))))),(0,n.kt)("p",{parentName:"li"},"\u5176\u4e2d",(0,n.kt)("span",{parentName:"p",className:"math math-inline"},(0,n.kt)("span",{parentName:"span",className:"katex"},(0,n.kt)("span",{parentName:"span",className:"katex-mathml"},(0,n.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,n.kt)("semantics",{parentName:"math"},(0,n.kt)("mrow",{parentName:"semantics"},(0,n.kt)("mi",{parentName:"mrow"},"y")),(0,n.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"y")))),(0,n.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,n.kt)("span",{parentName:"span",className:"base"},(0,n.kt)("span",{parentName:"span",className:"strut",style:{height:"0.625em",verticalAlign:"-0.1944em"}}),(0,n.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"y"))))),"\u662f\u6837\u672c\u7684\u771f\u5b9e\u6807\u7b7e\uff0c",(0,n.kt)("span",{parentName:"p",className:"math math-inline"},(0,n.kt)("span",{parentName:"span",className:"katex"},(0,n.kt)("span",{parentName:"span",className:"katex-mathml"},(0,n.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,n.kt)("semantics",{parentName:"math"},(0,n.kt)("mrow",{parentName:"semantics"},(0,n.kt)("mi",{parentName:"mrow"},"z")),(0,n.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"z")))),(0,n.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,n.kt)("span",{parentName:"span",className:"base"},(0,n.kt)("span",{parentName:"span",className:"strut",style:{height:"0.4306em"}}),(0,n.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.04398em"}},"z"))))),"\u662f\u9884\u6d4b\u503c\u3002")),(0,n.kt)("li",{parentName:"ol"},(0,n.kt)("p",{parentName:"li"},"\u53c2\u6570\u66f4\u65b0\uff1a\u6839\u636e\u5f53\u524d\u6837\u672c\u8bef\u5206\u7c7b\u60c5\u51b5\u6765\u5bf9\u6743\u503c\u5411\u91cf",(0,n.kt)("span",{parentName:"p",className:"math math-inline"},(0,n.kt)("span",{parentName:"span",className:"katex"},(0,n.kt)("span",{parentName:"span",className:"katex-mathml"},(0,n.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,n.kt)("semantics",{parentName:"math"},(0,n.kt)("mrow",{parentName:"semantics"},(0,n.kt)("mi",{parentName:"mrow"},"w")),(0,n.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"w")))),(0,n.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,n.kt)("span",{parentName:"span",className:"base"},(0,n.kt)("span",{parentName:"span",className:"strut",style:{height:"0.4306em"}}),(0,n.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02691em"}},"w"))))),"\u548c\u504f\u7f6e\u9879",(0,n.kt)("span",{parentName:"p",className:"math math-inline"},(0,n.kt)("span",{parentName:"span",className:"katex"},(0,n.kt)("span",{parentName:"span",className:"katex-mathml"},(0,n.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,n.kt)("semantics",{parentName:"math"},(0,n.kt)("mrow",{parentName:"semantics"},(0,n.kt)("mi",{parentName:"mrow"},"b")),(0,n.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"b")))),(0,n.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,n.kt)("span",{parentName:"span",className:"base"},(0,n.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6944em"}}),(0,n.kt)("span",{parentName:"span",className:"mord mathnormal"},"b"))))),"\u8fdb\u884c\u8fed\u4ee3\u66f4\u65b0\u3002")),(0,n.kt)("li",{parentName:"ol"},(0,n.kt)("p",{parentName:"li"},"\u6536\u655b\u6761\u4ef6\uff1a\u5f53\u5168\u90e8\u8bad\u7ec3\u6837\u672c\u88ab\u6b63\u786e\u5206\u7c7b\u6216\u8fbe\u5230\u6700\u5927\u8fed\u4ee3\u6b21\u6570\u65f6\uff0c\u611f\u77e5\u673a\u7b97\u6cd5\u505c\u6b62\u8fed\u4ee3\u3002"))),(0,n.kt)("p",null,"\u611f\u77e5\u673a\u8bad\u7ec3\u6d41\u7a0b\u4f2a\u4ee3\u7801\u5982\u4e0b\u6240\u793a\uff1a"),(0,n.kt)("pre",null,(0,n.kt)("code",{parentName:"pre",className:"language-pseudocode"},"initialize w = 0 and b = 0\nrepeat\n if yi * zi <= 0 then\n w = w + yi * xi and b = b + yi\n end if\nuntil all classified correctly\n")),(0,n.kt)("hr",null),(0,n.kt)("h2",{id:"\u4e09\u603b\u7ed3"},"\u4e09\u3001\u603b\u7ed3"),(0,n.kt)("ul",null,(0,n.kt)("li",{parentName:"ul"},"\u611f\u77e5\u673a\u662f\u4e00\u4e2a\u4e8c\u5206\u7c7b\u6a21\u578b\uff0c\u6700\u65e9\u7684AI\u6a21\u578b\u4e4b\u4e00"),(0,n.kt)("li",{parentName:"ul"},"\u6c42\u89e3\u7b97\u6cd5\u7b49\u4ef7\u4e8e\u4f7f\u7528\u6279\u91cf\u5927\u5c0f\u4e3a1\u7684\u68af\u5ea6\u4e0b\u964d"),(0,n.kt)("li",{parentName:"ul"},"\u8981\u6c42\u6570\u636e\u96c6\u7ebf\u6027\u53ef\u5206\uff0c\u4e0d\u80fd\u62df\u5408XOR\u5f02\u6216\u7b49\u975e\u7ebf\u6027\u95ee\u9898\uff0c\u5bfc\u81f4\u7b2c\u4e00\u6b21AI\u5bd2\u51ac")))}c.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/en/assets/js/a91af95f.f9e3bf24.js b/en/assets/js/a91af95f.f9e3bf24.js new file mode 100644 index 000000000..69a255be2 --- /dev/null +++ b/en/assets/js/a91af95f.f9e3bf24.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunknpy_notebook=self.webpackChunknpy_notebook||[]).push([[1007],{3905:(a,e,t)=>{t.d(e,{Zo:()=>i,kt:()=>h});var s=t(7294);function m(a,e,t){return e in a?Object.defineProperty(a,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):a[e]=t,a}function n(a,e){var t=Object.keys(a);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(a);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable}))),t.push.apply(t,s)}return t}function p(a){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?n(Object(t),!0).forEach((function(e){m(a,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(t)):n(Object(t)).forEach((function(e){Object.defineProperty(a,e,Object.getOwnPropertyDescriptor(t,e))}))}return a}function r(a,e){if(null==a)return{};var t,s,m=function(a,e){if(null==a)return{};var t,s,m={},n=Object.keys(a);for(s=0;s<n.length;s++)t=n[s],e.indexOf(t)>=0||(m[t]=a[t]);return m}(a,e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);for(s=0;s<n.length;s++)t=n[s],e.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(a,t)&&(m[t]=a[t])}return m}var N=s.createContext({}),l=function(a){var e=s.useContext(N),t=e;return a&&(t="function"==typeof a?a(e):p(p({},e),a)),t},i=function(a){var e=l(a.components);return s.createElement(N.Provider,{value:e},a.children)},k="mdxType",c={inlineCode:"code",wrapper:function(a){var e=a.children;return s.createElement(s.Fragment,{},e)}},o=s.forwardRef((function(a,e){var t=a.components,m=a.mdxType,n=a.originalType,N=a.parentName,i=r(a,["components","mdxType","originalType","parentName"]),k=l(t),o=m,h=k["".concat(N,".").concat(o)]||k[o]||c[o]||n;return t?s.createElement(h,p(p({ref:e},i),{},{components:t})):s.createElement(h,p({ref:e},i))}));function h(a,e){var t=arguments,m=e&&e.mdxType;if("string"==typeof a||m){var n=t.length,p=new Array(n);p[0]=o;var r={};for(var N in e)hasOwnProperty.call(e,N)&&(r[N]=e[N]);r.originalType=a,r[k]="string"==typeof a?a:m,p[1]=r;for(var l=2;l<n;l++)p[l]=t[l];return s.createElement.apply(null,p)}return s.createElement.apply(null,t)}o.displayName="MDXCreateElement"},6831:(a,e,t)=>{t.r(e),t.d(e,{assets:()=>N,contentTitle:()=>p,default:()=>c,frontMatter:()=>n,metadata:()=>r,toc:()=>l});var s=t(7462),m=(t(7294),t(3905));const n={},p="\u6570\u5b57\u56fe\u50cf\u5904\u7406\u590d\u4e60\u7b14\u8bb0",r={unversionedId:"Curriculum/\u6570\u5b57\u56fe\u50cf\u5904\u7406/Note",id:"Curriculum/\u6570\u5b57\u56fe\u50cf\u5904\u7406/Note",title:"\u6570\u5b57\u56fe\u50cf\u5904\u7406\u590d\u4e60\u7b14\u8bb0",description:"\u672c\u7b14\u8bb0\u4f7f\u7528\u7684\u6559\u6750\u662f\u9648\u5929\u534e\u6240\u8457\u3001\u6e05\u534e\u5927\u5b66\u51fa\u7248\u793e\u7684\u300a\u6570\u5b57\u56fe\u50cf\u5904\u7406\u53ca\u5e94\u7528\uff1a\u4f7f\u7528MATLAB\u5206\u6790\u4e0e\u5b9e\u73b0\u300b\u3002",source:"@site/docs/Curriculum/2-\u6570\u5b57\u56fe\u50cf\u5904\u7406/Note.md",sourceDirName:"Curriculum/2-\u6570\u5b57\u56fe\u50cf\u5904\u7406",slug:"/Curriculum/\u6570\u5b57\u56fe\u50cf\u5904\u7406/Note",permalink:"/en/docs/Curriculum/\u6570\u5b57\u56fe\u50cf\u5904\u7406/Note",draft:!1,tags:[],version:"current",frontMatter:{},sidebar:"curriculum",previous:{title:"Welcome",permalink:"/en/docs/Curriculum/intro"},next:{title:"\u7f16\u8bd1\u539f\u7406\u7b14\u8bb0",permalink:"/en/docs/Curriculum/\u7f16\u8bd1\u539f\u7406/Note"}},N={},l=[{value:"\u7b2c2\u7ae0 \u6570\u5b57\u56fe\u50cf\u5904\u7406\u57fa\u7840",id:"\u7b2c2\u7ae0-\u6570\u5b57\u56fe\u50cf\u5904\u7406\u57fa\u7840",level:2},{value:"\u56fe\u50cf\u7684\u91c7\u6837\u4e0e\u91cf\u5316",id:"\u56fe\u50cf\u7684\u91c7\u6837\u4e0e\u91cf\u5316",level:3},{value:"\u8ddd\u79bb\u5ea6\u91cf",id:"\u8ddd\u79bb\u5ea6\u91cf",level:3},{value:"\u56fe\u50cf\u8d28\u91cf\u8bc4\u4ef7",id:"\u56fe\u50cf\u8d28\u91cf\u8bc4\u4ef7",level:3},{value:"\u7070\u5ea6\u76f4\u65b9\u56fe",id:"\u7070\u5ea6\u76f4\u65b9\u56fe",level:3},{value:"\u7b2c3\u7ae0 \u56fe\u50cf\u53d8\u6362",id:"\u7b2c3\u7ae0-\u56fe\u50cf\u53d8\u6362",level:2},{value:"\u5085\u91cc\u53f6\u53d8\u6362",id:"\u5085\u91cc\u53f6\u53d8\u6362",level:3},{value:"\u8fde\u7eed\u5085\u91cc\u53f6\u53d8\u6362",id:"\u8fde\u7eed\u5085\u91cc\u53f6\u53d8\u6362",level:4},{value:"\u79bb\u6563\u5085\u91cc\u53f6\u53d8\u6362",id:"\u79bb\u6563\u5085\u91cc\u53f6\u53d8\u6362",level:4},{value:"\u7b2c4\u7ae0 \u56fe\u50cf\u5904\u7406\u7684\u57fa\u672c\u8fd0\u7b97",id:"\u7b2c4\u7ae0-\u56fe\u50cf\u5904\u7406\u7684\u57fa\u672c\u8fd0\u7b97",level:2},{value:"\u70b9\u8fd0\u7b97",id:"\u70b9\u8fd0\u7b97",level:3},{value:"\u6bd4\u4f8b\u7f29\u653e",id:"\u6bd4\u4f8b\u7f29\u653e",level:3},{value:"\u7070\u5ea6\u7ea7\u63d2\u503c",id:"\u7070\u5ea6\u7ea7\u63d2\u503c",level:3},{value:"\u6700\u8fd1\u90bb\u6cd5\u63d2\u503c",id:"\u6700\u8fd1\u90bb\u6cd5\u63d2\u503c",level:4},{value:"\u53cc\u7ebf\u6027\u63d2\u503c\uff08Bilinear\uff09",id:"\u53cc\u7ebf\u6027\u63d2\u503cbilinear",level:4},{value:"\u7b2c5\u7ae0 \u56fe\u50cf\u7a7a\u57df\u589e\u5f3a",id:"\u7b2c5\u7ae0-\u56fe\u50cf\u7a7a\u57df\u589e\u5f3a",level:2},{value:"\u76f4\u63a5\u7070\u5ea6\u53d8\u6362",id:"\u76f4\u63a5\u7070\u5ea6\u53d8\u6362",level:3},{value:"\u7ebf\u6027\u53d8\u6362",id:"\u7ebf\u6027\u53d8\u6362",level:4},{value:"\u975e\u7ebf\u6027\u53d8\u6362",id:"\u975e\u7ebf\u6027\u53d8\u6362",level:4},{value:"\u76f4\u65b9\u56fe\u7070\u5ea6\u53d8\u6362",id:"\u76f4\u65b9\u56fe\u7070\u5ea6\u53d8\u6362",level:3},{value:"\u76f4\u65b9\u56fe\u5747\u8861\u5316",id:"\u76f4\u65b9\u56fe\u5747\u8861\u5316",level:4},{value:"\u76f4\u65b9\u56fe\u89c4\u5b9a\u5316",id:"\u76f4\u65b9\u56fe\u89c4\u5b9a\u5316",level:4},{value:"\u7a7a\u57df\u6ee4\u6ce2\u589e\u5f3a",id:"\u7a7a\u57df\u6ee4\u6ce2\u589e\u5f3a",level:3},{value:"\u5e73\u6ed1\u6ee4\u6ce2",id:"\u5e73\u6ed1\u6ee4\u6ce2",level:4},{value:"\u7ebf\u6027\u5e73\u6ed1\u6ee4\u6ce2",id:"\u7ebf\u6027\u5e73\u6ed1\u6ee4\u6ce2",level:5},{value:"\u975e\u7ebf\u6027\u5e73\u6ed1\u6ee4\u6ce2",id:"\u975e\u7ebf\u6027\u5e73\u6ed1\u6ee4\u6ce2",level:5},{value:"\u9510\u5316\u6ee4\u6ce2",id:"\u9510\u5316\u6ee4\u6ce2",level:4},{value:"\u7b2c6\u7ae0 \u56fe\u50cf\u9891\u57df\u589e\u5f3a",id:"\u7b2c6\u7ae0-\u56fe\u50cf\u9891\u57df\u589e\u5f3a",level:2},{value:"\u4f4e\u901a\u6ee4\u6ce2",id:"\u4f4e\u901a\u6ee4\u6ce2",level:3},{value:"\u7406\u60f3\u4f4e\u901a\u6ee4\u6ce2\u5668\uff08ILPF\uff09",id:"\u7406\u60f3\u4f4e\u901a\u6ee4\u6ce2\u5668ilpf",level:4},{value:"\u5df4\u7279\u6c83\u65af\u4f4e\u901a\u6ee4\u6ce2\u5668\uff08BLPF\uff09",id:"\u5df4\u7279\u6c83\u65af\u4f4e\u901a\u6ee4\u6ce2\u5668blpf",level:4},{value:"\u6307\u6570\u4f4e\u901a\u6ee4\u6ce2\u5668\uff08ELPF\uff09",id:"\u6307\u6570\u4f4e\u901a\u6ee4\u6ce2\u5668elpf",level:4},{value:"\u68af\u5f62\u4f4e\u901a\u6ee4\u6ce2\u5668\uff08TLPF\uff09",id:"\u68af\u5f62\u4f4e\u901a\u6ee4\u6ce2\u5668tlpf",level:4},{value:"\u9ad8\u901a\u6ee4\u6ce2",id:"\u9ad8\u901a\u6ee4\u6ce2",level:3},{value:"\u7406\u60f3\u9ad8\u901a\u6ee4\u6ce2\u5668\uff08IHPF\uff09",id:"\u7406\u60f3\u9ad8\u901a\u6ee4\u6ce2\u5668ihpf",level:4},{value:"\u5df4\u7279\u6c83\u65af\u9ad8\u901a\u6ee4\u6ce2\u5668\uff08BHPF\uff09",id:"\u5df4\u7279\u6c83\u65af\u9ad8\u901a\u6ee4\u6ce2\u5668bhpf",level:4},{value:"\u6307\u6570\u9ad8\u901a\u6ee4\u6ce2\u5668\uff08EHPF\uff09",id:"\u6307\u6570\u9ad8\u901a\u6ee4\u6ce2\u5668ehpf",level:4},{value:"\u68af\u5f62\u9ad8\u901a\u6ee4\u6ce2\u5668\uff08THPF\uff09",id:"\u68af\u5f62\u9ad8\u901a\u6ee4\u6ce2\u5668thpf",level:4},{value:"\u5e26\u901a\u548c\u5e26\u963b\u6ee4\u6ce2",id:"\u5e26\u901a\u548c\u5e26\u963b\u6ee4\u6ce2",level:3},{value:"\u5e26\u901a\u6ee4\u6ce2",id:"\u5e26\u901a\u6ee4\u6ce2",level:4},{value:"\u5e26\u963b\u6ee4\u6ce2",id:"\u5e26\u963b\u6ee4\u6ce2",level:4},{value:"\u7b2c7\u7ae0 \u5f69\u8272\u56fe\u50cf\u5904\u7406",id:"\u7b2c7\u7ae0-\u5f69\u8272\u56fe\u50cf\u5904\u7406",level:2},{value:"\u4f2a\u5f69\u8272\u56fe\u50cf\u7684\u5904\u7406",id:"\u4f2a\u5f69\u8272\u56fe\u50cf\u7684\u5904\u7406",level:3},{value:"\u5168\u5f69\u8272\u56fe\u50cf\u7684\u5904\u7406",id:"\u5168\u5f69\u8272\u56fe\u50cf\u7684\u5904\u7406",level:3},{value:"\u7b2c8\u7ae0 \u56fe\u50cf\u590d\u539f",id:"\u7b2c8\u7ae0-\u56fe\u50cf\u590d\u539f",level:2},{value:"\u56fe\u50cf\u9000\u5316\u673a\u7406",id:"\u56fe\u50cf\u9000\u5316\u673a\u7406",level:3},{value:"\u9000\u5316\u539f\u56e0",id:"\u9000\u5316\u539f\u56e0",level:4},{value:"\u590d\u539f\u673a\u7406",id:"\u590d\u539f\u673a\u7406",level:4},{value:"\u56fe\u50cf\u590d\u539f\u4e0e\u56fe\u50cf\u589e\u5f3a\u7684\u533a\u522b\u548c\u8054\u7cfb",id:"\u56fe\u50cf\u590d\u539f\u4e0e\u56fe\u50cf\u589e\u5f3a\u7684\u533a\u522b\u548c\u8054\u7cfb",level:4},{value:"\u56fe\u50cf\u9000\u5316\u6a21\u578b",id:"\u56fe\u50cf\u9000\u5316\u6a21\u578b",level:3},{value:"\u7b2c11\u7ae0 \u56fe\u50cf\u5206\u5272",id:"\u7b2c11\u7ae0-\u56fe\u50cf\u5206\u5272",level:2},{value:"\u9608\u503c\u5206\u5272\u6cd5",id:"\u9608\u503c\u5206\u5272\u6cd5",level:3},{value:"\u6700\u4f73\u9608\u503c\u6cd5",id:"\u6700\u4f73\u9608\u503c\u6cd5",level:4},{value:"\u5224\u522b\u5206\u6790\u6cd5",id:"\u5224\u522b\u5206\u6790\u6cd5",level:4},{value:"\u8fb9\u7f18\u68c0\u6d4b\u7684\u57fa\u672c\u539f\u7406",id:"\u8fb9\u7f18\u68c0\u6d4b\u7684\u57fa\u672c\u539f\u7406",level:3},{value:"\u8fb9\u7f18\u68c0\u6d4b\u7b97\u5b50",id:"\u8fb9\u7f18\u68c0\u6d4b\u7b97\u5b50",level:3},{value:"Robert\u7b97\u5b50",id:"robert\u7b97\u5b50",level:4},{value:"Sobel\u7b97\u5b50",id:"sobel\u7b97\u5b50",level:4},{value:"Prewitt\u7b97\u5b50",id:"prewitt\u7b97\u5b50",level:4},{value:"Laplace\u7b97\u5b50",id:"laplace\u7b97\u5b50",level:4},{value:"Canny\u8fb9\u7f18\u68c0\u6d4b",id:"canny\u8fb9\u7f18\u68c0\u6d4b",level:4},{value:"\u8bfe\u540e\u4e60\u9898\u4e2d\u7684\u95ee\u7b54\u9898",id:"\u8bfe\u540e\u4e60\u9898\u4e2d\u7684\u95ee\u7b54\u9898",level:2}],i={toc:l},k="wrapper";function c(a){let{components:e,...t}=a;return(0,m.kt)(k,(0,s.Z)({},i,t,{components:e,mdxType:"MDXLayout"}),(0,m.kt)("h1",{id:"\u6570\u5b57\u56fe\u50cf\u5904\u7406\u590d\u4e60\u7b14\u8bb0"},"\u6570\u5b57\u56fe\u50cf\u5904\u7406\u590d\u4e60\u7b14\u8bb0"),(0,m.kt)("admonition",{type:"tip"},(0,m.kt)("p",{parentName:"admonition"},"\u672c\u7b14\u8bb0\u4f7f\u7528\u7684\u6559\u6750\u662f\u9648\u5929\u534e\u6240\u8457\u3001\u6e05\u534e\u5927\u5b66\u51fa\u7248\u793e\u7684\u300a\u6570\u5b57\u56fe\u50cf\u5904\u7406\u53ca\u5e94\u7528\uff1a\u4f7f\u7528MATLAB\u5206\u6790\u4e0e\u5b9e\u73b0\u300b\u3002"),(0,m.kt)("blockquote",{parentName:"admonition"},(0,m.kt)("p",{parentName:"blockquote"},"Take me to church, I'll worship like a dog at the shrine of your lies."),(0,m.kt)("p",{parentName:"blockquote"},"I'll tell you my sins, and you can sharpen your knife."),(0,m.kt)("p",{parentName:"blockquote"},"Offer me that deathless death, good god, let me give you my life."))),(0,m.kt)("h2",{id:"\u7b2c2\u7ae0-\u6570\u5b57\u56fe\u50cf\u5904\u7406\u57fa\u7840"},"\u7b2c2\u7ae0 \u6570\u5b57\u56fe\u50cf\u5904\u7406\u57fa\u7840"),(0,m.kt)("h3",{id:"\u56fe\u50cf\u7684\u91c7\u6837\u4e0e\u91cf\u5316"},"\u56fe\u50cf\u7684\u91c7\u6837\u4e0e\u91cf\u5316"),(0,m.kt)("p",null,"\u4e3a\u4e86\u4ece\u6a21\u62df\u56fe\u50cf\u4ea7\u751f\u6570\u5b57\u56fe\u50cf\uff0c\u9700\u8981\u8fdb\u884c\u91c7\u6837\u4e0e\u91cf\u5316\uff0c\u5373\u5bf9\u6a21\u62df\u56fe\u50cf\u5728\u7a7a\u95f4",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"x"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"y"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"(x, y)")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"x"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"y"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"))))),"\u65b9\u5411\u4e0a\u4ee5\u53ca\u4eae\u5ea6\u51fd\u6570",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"f"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"x"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"y"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"f(x, y)")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.10764em"}},"f"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"x"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"y"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"))))),"\u8fdb\u884c\u79bb\u6563\u5316\u5904\u7406\u3002"),(0,m.kt)("ul",null,(0,m.kt)("li",{parentName:"ul"},(0,m.kt)("p",{parentName:"li"},"\u91c7\u6837\uff1a"),(0,m.kt)("p",{parentName:"li"},"\u6a21\u62df\u56fe\u50cf\u5728\u7a7a\u95f4",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"x"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"y"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"(x, y)")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"x"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"y"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"))))),"\u4e0a\u7684\u79bb\u6563\u5316\u79f0\u4e3a\u91c7\u6837\u3002"),(0,m.kt)("p",{parentName:"li"},"\u82e5\u5728x\u548cy\u65b9\u5411\u4e0a\u5747\u8fdb\u884c\u7b49\u95f4\u8ddd\u7684\u91c7\u6837\uff0c\u5219\u79f0\u4e3a\u5747\u5300\u91c7\u6837\u3002"),(0,m.kt)("p",{parentName:"li"},"\u91c7\u6837\u70b9\u7684\u591a\u5c11\u4ee5\u53ca\u91c7\u6837\u7684\u95f4\u9694\u76f4\u63a5\u5f71\u54cd\u7740\u56fe\u50cf\u7684\u8d28\u91cf\u3002")),(0,m.kt)("li",{parentName:"ul"},(0,m.kt)("p",{parentName:"li"},"\u91cf\u5316\uff1a"),(0,m.kt)("p",{parentName:"li"},"\u6a21\u62df\u56fe\u50cf\u7ecf\u8fc7\u91c7\u6837\u540e\uff0c\u5728\u65f6\u95f4\u548c\u7a7a\u95f4\u4e0a\u88ab\u79bb\u6563\u5316\u4e3a\u50cf\u7d20\uff0c\u4f46\u91c7\u6837\u6240\u5f97\u7684\u50cf\u7d20\u70b9\u7684\u50cf\u7d20\u503c\u4f9d\u7136\u662f\u8fde\u7eed\u91cf\u3002\u91cf\u5316\u8fc7\u7a0b\u5c31\u662f\u4ee5\u79bb\u6563\u7684\u7070\u5ea6\u503c\u4fe1\u606f\u4ee3\u66ff\u8fde\u7eed\u7684\u6a21\u62df\u91cf\u7070\u5ea6\u4fe1\u606f\u7684\u8fc7\u7a0b\uff0c\u662f\u4e00\u5bf9\u591a\u7684\u8fc7\u7a0b\u3002"),(0,m.kt)("p",{parentName:"li"},"\u91cf\u5316\u53ef\u4ee5\u5206\u4e3a\u7ebf\u6027\u91cf\u5316\u4ee5\u53ca\u975e\u7ebf\u6027\u91cf\u5316\u3002"))),(0,m.kt)("p",null,"\u7070\u5ea6\u7ea7\u4e00\u822c\u4ee52\u7684\u6574\u6570\u6b21\u5e42\u8868\u793a\uff0c\u5982\u5927\u591a\u56fe\u50cf\u4e3a\u5f69\u8272RGB\u56fe\u50cf\uff0c256\u4e2a\u7070\u5ea6\u7ea7\uff0c\u4f4d\u6df1\u5ea6\u4e3a8\uff08",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("msup",{parentName:"mrow"},(0,m.kt)("mn",{parentName:"msup"},"2"),(0,m.kt)("mn",{parentName:"msup"},"8")),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("mn",{parentName:"mrow"},"256")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"2^8=256")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.8141em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"2"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.8141em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-3.063em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"8")))))))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"="),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6444em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"256"))))),"\uff09\uff0c\u5219\u5bf9\u4e8e\u5206\u8fa8\u7387\u4e3a256\xd7256\u7684\u56fe\u50cf\u6765\u8bf4\uff0c\u9700\u8981256\xd7256\xd73\xd78\u4f4d\u8868\u793a\uff0c\u5373\u6bcf\u4e00\u4e2a\u50cf\u7d20\u5b9e\u9645\u4e0a\u4f7f\u752824\u4f4d\u8868\u793a\u3002"),(0,m.kt)("h3",{id:"\u8ddd\u79bb\u5ea6\u91cf"},"\u8ddd\u79bb\u5ea6\u91cf"),(0,m.kt)("p",null,"4\u90bb\u57df",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"N"),(0,m.kt)("mn",{parentName:"msub"},"4")),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"p"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"N_4(p)")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.10903em"}},"N"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.109em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"4")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"p"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"))))),"\u5373\u8be5\u50cf\u7d20\u4e0a\u4e0b\u5de6\u53f3\u7684\u56db\u4e2a\u70b9\uff0c8\u90bb\u57df",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"N"),(0,m.kt)("mn",{parentName:"msub"},"8")),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"p"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"N_8(p)")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.10903em"}},"N"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.109em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"8")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"p"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"))))),"\uff0c\u5bf9\u89d2\u90bb\u57df",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"N"),(0,m.kt)("mi",{parentName:"msub"},"D")),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"p"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"N_D(p)")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.10903em"}},"N"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3283em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.109em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.02778em"}},"D")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"p"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"))))),"\u3002"),(0,m.kt)("p",null,(0,m.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_imagesimage-20231204174356477.png",alt:"image-20231204174356477"})),(0,m.kt)("p",null,"\u50cf\u7d20\u4e4b\u95f4\u7684\u8ddd\u79bb\u5ea6\u91cf\u5fc5\u987b\u6ee1\u8db3\u4e09\u79cd\u5173\u7cfb\uff1a"),(0,m.kt)("ol",null,(0,m.kt)("li",{parentName:"ol"},"\u975e\u8d1f\u6027"),(0,m.kt)("li",{parentName:"ol"},"\u5bf9\u79f0\u6027"),(0,m.kt)("li",{parentName:"ol"},"\u4e09\u89d2\u4e0d\u7b49\u5f0f")),(0,m.kt)("p",null,"\u4e09\u79cd\u8ddd\u79bb\u5ea6\u91cf\uff1a"),(0,m.kt)("p",null,"\u5df2\u77e5\uff0c\u70b9",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"p")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"p")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.625em",verticalAlign:"-0.1944em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"p"))))),"\u7684\u5750\u6807\u4e3a",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"x"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"y"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"(x, y)")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"x"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"y"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"))))),"\uff0c\u70b9",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"q")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"q")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.625em",verticalAlign:"-0.1944em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"q"))))),"\u7684\u5750\u6807\u4e3a",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"s"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"t"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"(s,t)")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"s"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"t"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"))))),"\u3002"),(0,m.kt)("ol",null,(0,m.kt)("li",{parentName:"ol"},"\u6b27\u6c0f\u8ddd\u79bb\uff1a",(0,m.kt)("div",{parentName:"li",className:"math math-display"},(0,m.kt)("span",{parentName:"div",className:"katex-display"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mtable",{parentName:"semantics",width:"100%"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mrow",{parentName:"mtd"},(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"D"),(0,m.kt)("mi",{parentName:"msub"},"e")),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"p"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"q"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("msqrt",{parentName:"mrow"},(0,m.kt)("mrow",{parentName:"msqrt"},(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"x"),(0,m.kt)("mo",{parentName:"mrow"},"\u2212"),(0,m.kt)("mi",{parentName:"mrow"},"s"),(0,m.kt)("msup",{parentName:"mrow"},(0,m.kt)("mo",{parentName:"msup",stretchy:"false"},")"),(0,m.kt)("mn",{parentName:"msup"},"2")),(0,m.kt)("mo",{parentName:"mrow"},"+"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"y"),(0,m.kt)("mo",{parentName:"mrow"},"\u2212"),(0,m.kt)("mi",{parentName:"mrow"},"t"),(0,m.kt)("msup",{parentName:"mrow"},(0,m.kt)("mo",{parentName:"msup",stretchy:"false"},")"),(0,m.kt)("mn",{parentName:"msup"},"2")))))),(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mtext",{parentName:"mtd"},"(1)")))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"D_e(p,q)=\\sqrt{(x-s)^2+(y-t)^2}\\tag{1}")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02778em"}},"D"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.1514em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0278em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"e")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"p"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"q"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"="),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1.24em",verticalAlign:"-0.2561em"}}),(0,m.kt)("span",{parentName:"span",className:"mord sqrt"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.9839em"}},(0,m.kt)("span",{parentName:"span",className:"svg-align",style:{top:"-3.2em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.2em"}}),(0,m.kt)("span",{parentName:"span",className:"mord",style:{paddingLeft:"1em"}},(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"x"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"\u2212"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"s"),(0,m.kt)("span",{parentName:"span",className:"mclose"},(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.7401em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.989em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"2")))))))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"+"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"y"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"\u2212"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"t"),(0,m.kt)("span",{parentName:"span",className:"mclose"},(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.7401em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.989em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"2")))))))))),(0,m.kt)("span",{parentName:"span",style:{top:"-2.9439em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.2em"}}),(0,m.kt)("span",{parentName:"span",className:"hide-tail",style:{minWidth:"1.02em",height:"1.28em"}},(0,m.kt)("svg",{parentName:"span",xmlns:"http://www.w3.org/2000/svg",width:"400em",height:"1.28em",viewBox:"0 0 400000 1296",preserveAspectRatio:"xMinYMin slice"},(0,m.kt)("path",{parentName:"svg",d:"M263,681c0.7,0,18,39.7,52,119\nc34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120\nc340,-704.7,510.7,-1060.3,512,-1067\nl0 -0\nc4.7,-7.3,11,-11,19,-11\nH40000v40H1012.3\ns-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232\nc-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1\ns-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26\nc-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z\nM1001 80h400000v40h-400000z"}))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.2561em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"tag"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1.24em",verticalAlign:"-0.2561em"}}),(0,m.kt)("span",{parentName:"span",className:"mord text"},(0,m.kt)("span",{parentName:"span",className:"mord"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"1")),(0,m.kt)("span",{parentName:"span",className:"mord"},")")))))))),(0,m.kt)("li",{parentName:"ol"},"\u57ce\u5e02\u8ddd\u79bb",(0,m.kt)("div",{parentName:"li",className:"math math-display"},(0,m.kt)("span",{parentName:"div",className:"katex-display"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mtable",{parentName:"semantics",width:"100%"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mrow",{parentName:"mtd"},(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"D"),(0,m.kt)("mn",{parentName:"msub"},"4")),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"p"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"q"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"\u2223"),(0,m.kt)("mi",{parentName:"mrow"},"x"),(0,m.kt)("mo",{parentName:"mrow"},"\u2212"),(0,m.kt)("mi",{parentName:"mrow"},"s"),(0,m.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"\u2223"),(0,m.kt)("mo",{parentName:"mrow"},"+"),(0,m.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"\u2223"),(0,m.kt)("mi",{parentName:"mrow"},"y"),(0,m.kt)("mo",{parentName:"mrow"},"\u2212"),(0,m.kt)("mi",{parentName:"mrow"},"t"),(0,m.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"\u2223"))),(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mtext",{parentName:"mtd"},"(2)")))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"D_4(p,q)=\\vert x-s\\vert+\\vert y-t\\vert \\tag{2}")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02778em"}},"D"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0278em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"4")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"p"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"q"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"="),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"\u2223"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"x"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"\u2212"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"s"),(0,m.kt)("span",{parentName:"span",className:"mord"},"\u2223"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"+"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"\u2223"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"y"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"\u2212"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"t"),(0,m.kt)("span",{parentName:"span",className:"mord"},"\u2223")),(0,m.kt)("span",{parentName:"span",className:"tag"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord text"},(0,m.kt)("span",{parentName:"span",className:"mord"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"2")),(0,m.kt)("span",{parentName:"span",className:"mord"},")")))))))),(0,m.kt)("li",{parentName:"ol"},"\u68cb\u76d8\u8ddd\u79bb",(0,m.kt)("div",{parentName:"li",className:"math math-display"},(0,m.kt)("span",{parentName:"div",className:"katex-display"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mtable",{parentName:"semantics",width:"100%"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mrow",{parentName:"mtd"},(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"D"),(0,m.kt)("mn",{parentName:"msub"},"8")),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"p"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"q"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("mi",{parentName:"mrow"},"m"),(0,m.kt)("mi",{parentName:"mrow"},"a"),(0,m.kt)("mi",{parentName:"mrow"},"x"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"\u2223"),(0,m.kt)("mi",{parentName:"mrow"},"x"),(0,m.kt)("mo",{parentName:"mrow"},"\u2212"),(0,m.kt)("mi",{parentName:"mrow"},"s"),(0,m.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"\u2223"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"\u2223"),(0,m.kt)("mi",{parentName:"mrow"},"y"),(0,m.kt)("mo",{parentName:"mrow"},"\u2212"),(0,m.kt)("mi",{parentName:"mrow"},"t"),(0,m.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"\u2223"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"))),(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mtext",{parentName:"mtd"},"(3)")))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"D_8(p,q)=max(\\vert x-s\\vert,\\vert y-t\\vert)\\tag{3}")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02778em"}},"D"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0278em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"8")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"p"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"q"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"="),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"ma"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"x"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},"\u2223"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"x"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"\u2212"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"s"),(0,m.kt)("span",{parentName:"span",className:"mord"},"\u2223"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"\u2223"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"y"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"\u2212"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"t"),(0,m.kt)("span",{parentName:"span",className:"mord"},"\u2223"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")")),(0,m.kt)("span",{parentName:"span",className:"tag"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord text"},(0,m.kt)("span",{parentName:"span",className:"mord"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"3")),(0,m.kt)("span",{parentName:"span",className:"mord"},")"))))))))),(0,m.kt)("h3",{id:"\u56fe\u50cf\u8d28\u91cf\u8bc4\u4ef7"},"\u56fe\u50cf\u8d28\u91cf\u8bc4\u4ef7"),(0,m.kt)("ul",null,(0,m.kt)("li",{parentName:"ul"},(0,m.kt)("p",{parentName:"li"},"MSE\u8d8a\u5c0f\u4ee3\u8868\u5f85\u6d4b\u56fe\u50cf\u4e0e\u53c2\u8003\u56fe\u50cf\u8d8a\u63a5\u8fd1\uff0c\u5747\u65b9\u8bef\u5dee\u516c\u5f0f\u5982\u4e0b\uff1a"),(0,m.kt)("div",{parentName:"li",className:"math math-display"},(0,m.kt)("span",{parentName:"div",className:"katex-display"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mtable",{parentName:"semantics",width:"100%"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mrow",{parentName:"mtd"},(0,m.kt)("mi",{parentName:"mrow"},"M"),(0,m.kt)("mi",{parentName:"mrow"},"S"),(0,m.kt)("mi",{parentName:"mrow"},"E"),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("mfrac",{parentName:"mrow"},(0,m.kt)("mn",{parentName:"mfrac"},"1"),(0,m.kt)("mrow",{parentName:"mfrac"},(0,m.kt)("mi",{parentName:"mrow"},"M"),(0,m.kt)("mi",{parentName:"mrow"},"N"))),(0,m.kt)("munderover",{parentName:"mrow"},(0,m.kt)("mo",{parentName:"munderover"},"\u2211"),(0,m.kt)("mrow",{parentName:"munderover"},(0,m.kt)("mi",{parentName:"mrow"},"x"),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("mn",{parentName:"mrow"},"1")),(0,m.kt)("mi",{parentName:"munderover"},"M")),(0,m.kt)("munderover",{parentName:"mrow"},(0,m.kt)("mo",{parentName:"munderover"},"\u2211"),(0,m.kt)("mrow",{parentName:"munderover"},(0,m.kt)("mi",{parentName:"mrow"},"y"),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("mn",{parentName:"mrow"},"1")),(0,m.kt)("mi",{parentName:"munderover"},"N")),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"["),(0,m.kt)("mi",{parentName:"mrow"},"f"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"x"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"y"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"\u2212"),(0,m.kt)("mi",{parentName:"mrow"},"g"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"x"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"y"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("msup",{parentName:"mrow"},(0,m.kt)("mo",{parentName:"msup",stretchy:"false"},"]"),(0,m.kt)("mn",{parentName:"msup"},"2")))),(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mtext",{parentName:"mtd"},"(4)")))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"MSE=\\frac{1}{MN}\\sum_{x=1}^{M}\\sum_{y=1}^{N}[f(x,y)-g(x,y)]^2\\tag{4}")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6833em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05764em"}},"MSE"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"="),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"3.2316em",verticalAlign:"-1.4032em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mopen nulldelimiter"}),(0,m.kt)("span",{parentName:"span",className:"mfrac"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.3214em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.314em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.10903em"}},"MN"))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.23em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"frac-line",style:{borderBottomWidth:"0.04em"}})),(0,m.kt)("span",{parentName:"span",style:{top:"-3.677em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"1")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.686em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"mclose nulldelimiter"})),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mop op-limits"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.8283em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-1.8829em",marginLeft:"0em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.05em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"x"),(0,m.kt)("span",{parentName:"span",className:"mrel mtight"},"="),(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"1")))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.05em"}}),(0,m.kt)("span",{parentName:"span"},(0,m.kt)("span",{parentName:"span",className:"mop op-symbol large-op"},"\u2211"))),(0,m.kt)("span",{parentName:"span",style:{top:"-4.3em",marginLeft:"0em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.05em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.10903em"}},"M"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.2671em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mop op-limits"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.8283em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-1.8829em",marginLeft:"0em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.05em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.03588em"}},"y"),(0,m.kt)("span",{parentName:"span",className:"mrel mtight"},"="),(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"1")))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.05em"}}),(0,m.kt)("span",{parentName:"span"},(0,m.kt)("span",{parentName:"span",className:"mop op-symbol large-op"},"\u2211"))),(0,m.kt)("span",{parentName:"span",style:{top:"-4.3em",marginLeft:"0em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.05em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.10903em"}},"N"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.4032em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"mopen"},"["),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.10764em"}},"f"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"x"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"y"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"\u2212"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1.1141em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"g"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"x"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"y"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mclose"},(0,m.kt)("span",{parentName:"span",className:"mclose"},"]"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.8641em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-3.113em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"2"))))))))),(0,m.kt)("span",{parentName:"span",className:"tag"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"3.2316em",verticalAlign:"-1.4032em"}}),(0,m.kt)("span",{parentName:"span",className:"mord text"},(0,m.kt)("span",{parentName:"span",className:"mord"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"4")),(0,m.kt)("span",{parentName:"span",className:"mord"},")")))))))),(0,m.kt)("li",{parentName:"ul"},(0,m.kt)("p",{parentName:"li"},"SNR\uff1a\u53c2\u8003\u56fe\u50cf\u50cf\u7d20\u503c\u7684\u5e73\u65b9\u5747\u503c\u4e0e\u5747\u65b9\u8bef\u5dee\u7684\u6bd4\u503c\u7684\u5bf9\u6570\u768410\u500d\u3002\u8d8a\u5927\u4ee3\u8868\u56fe\u50cf\u8d28\u91cf\u8d8a\u597d")),(0,m.kt)("li",{parentName:"ul"},(0,m.kt)("p",{parentName:"li"},"PSNR\uff1a\u5cf0\u503c\u4fe1\u566a\u6bd4\uff0c\u56fe\u50cf\u6240\u5141\u8bb8\u7684\u6700\u5927\u50cf\u7d20\u503c\u7684\u5e73\u65b9\u4e0e\u5747\u65b9\u8bef\u5dee\u7684\u6bd4\u503c\u7684\u5bf9\u6570\u768410\u500d\uff0c\u8fd9\u662f\u4fe1\u566a\u6bd4\u7684\u6539\u826f\u7248\u672c\uff0c\u6d88\u9664\u4e86\u56fe\u50cf\u81ea\u8eab\u50cf\u7d20\u503c\u5bf9\u8bc4\u4ef7\u6307\u6807\u7684\u5f71\u54cd\u3002\u8d8a\u5927\u4ee3\u8868\u56fe\u50cf\u8d28\u91cf\u8d8a\u597d")),(0,m.kt)("li",{parentName:"ul"},(0,m.kt)("p",{parentName:"li"},"SSIM\u4e3a\u7ed3\u6784\u76f8\u4f3c\u7cfb\u6570\uff0c\u8d8a\u5927\u4ee3\u8868\u56fe\u50cf\u8d28\u91cf\u8d8a\u597d"))),(0,m.kt)("p",null,(0,m.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_imagesimage-20231204175437763.png",alt:"image-20231204175437763"})),(0,m.kt)("h3",{id:"\u7070\u5ea6\u76f4\u65b9\u56fe"},"\u7070\u5ea6\u76f4\u65b9\u56fe"),(0,m.kt)("p",null,(0,m.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_imagesimage-20231204182548156.png",alt:"image-20231204182548156"})),(0,m.kt)("h2",{id:"\u7b2c3\u7ae0-\u56fe\u50cf\u53d8\u6362"},"\u7b2c3\u7ae0 \u56fe\u50cf\u53d8\u6362"),(0,m.kt)("h3",{id:"\u5085\u91cc\u53f6\u53d8\u6362"},"\u5085\u91cc\u53f6\u53d8\u6362"),(0,m.kt)("p",null,"\u53ef\u4ee5\u4f7f\u7528\u5085\u91cc\u53f6\u53d8\u6362\u7684\u51fd\u6570\u9700\u8981\u6ee1\u8db3\u72c4\u5229\u514b\u83b1\u6761\u4ef6\uff08Dirichlet Condition\uff09\uff1a"),(0,m.kt)("ol",null,(0,m.kt)("li",{parentName:"ol"},"\u5177\u6709\u6709\u9650\u4e2a\u95f4\u65ad\u70b9"),(0,m.kt)("li",{parentName:"ol"},"\u5177\u6709\u6709\u9650\u4e2a\u6781\u503c\u70b9"),(0,m.kt)("li",{parentName:"ol"},"\u7edd\u5bf9\u53ef\u79ef")),(0,m.kt)("p",null,"\u5085\u91cc\u53f6\u53d8\u6362\u7684\u7279\u6027\uff1a"),(0,m.kt)("p",null,(0,m.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_imagesimage-20231205153724162.png",alt:"image-20231205153724162"})),(0,m.kt)("admonition",{type:"important"},(0,m.kt)("p",{parentName:"admonition"},"\u5085\u91cc\u53f6\u9891\u8c31\u56fe\u7684\u7279\u5f81\uff1a"),(0,m.kt)("ul",{parentName:"admonition"},(0,m.kt)("li",{parentName:"ul"},"\u9891\u7387\u5206\u5e03\uff1a\u5085\u91cc\u53f6\u9891\u8c31\u56fe\u5c55\u793a\u4e86\u56fe\u50cf\u5728\u4e0d\u540c\u9891\u7387\u4e0b\u7684\u5f3a\u5ea6\u5206\u5e03\u3002\u9ad8\u9891\u90e8\u5206\u5bf9\u5e94\u56fe\u50cf\u4e2d\u7684\u8fb9\u7f18\u548c\u7ec6\u8282\uff0c\u4f4e\u9891\u90e8\u5206\u5bf9\u5e94\u56fe\u50cf\u4e2d\u7684\u6574\u4f53\u7ed3\u6784\u548c\u5927\u81f4\u8f6e\u5ed3\u3002"),(0,m.kt)("li",{parentName:"ul"},"\u80fd\u91cf\u5206\u5e03\uff1a\u56fe\u50cf\u4e2d\u4e0d\u540c\u9891\u7387\u7684\u80fd\u91cf\u5728\u9891\u8c31\u56fe\u4e2d\u4ee5\u4e0d\u540c\u5f3a\u5ea6\u7684\u5e45\u5ea6\u5448\u73b0\u3002\u9ad8\u5e45\u5ea6\u7684\u9891\u7387\u5206\u91cf\u901a\u5e38\u6807\u793a\u7740\u56fe\u50cf\u4e2d\u5f3a\u70c8\u7684\u53d8\u5316\u6216\u8fb9\u7f18\u3002"),(0,m.kt)("li",{parentName:"ul"},"\u5e73\u79fb\u4e0d\u53d8\u6027\uff1a\u5085\u91cc\u53f6\u53d8\u6362\u5177\u6709\u5e73\u79fb\u4e0d\u53d8\u6027\uff0c\u8fd9\u610f\u5473\u7740\u5728\u9891\u57df\u4e2d\u56fe\u50cf\u7684\u5e73\u79fb\u5bf9\u5e94\u4e8e\u5e45\u5ea6\u8c31\u4e2d\u76f8\u4f4d\u7684\u6539\u53d8\u800c\u4e0d\u5f71\u54cd\u5e45\u5ea6\u8c31\u672c\u8eab\u3002"))),(0,m.kt)("h4",{id:"\u8fde\u7eed\u5085\u91cc\u53f6\u53d8\u6362"},"\u8fde\u7eed\u5085\u91cc\u53f6\u53d8\u6362"),(0,m.kt)("p",null,"\u4e00\u7ef4\u8fde\u7eed\u5085\u91cc\u53f6\u53d8\u6362"),(0,m.kt)("div",{className:"math math-display"},(0,m.kt)("span",{parentName:"div",className:"katex-display"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mtable",{parentName:"semantics",width:"100%"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mrow",{parentName:"mtd"},(0,m.kt)("mi",{parentName:"mrow"},"F"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"u"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("msubsup",{parentName:"mrow"},(0,m.kt)("mo",{parentName:"msubsup"},"\u222b"),(0,m.kt)("mrow",{parentName:"msubsup"},(0,m.kt)("mo",{parentName:"mrow"},"\u2212"),(0,m.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"\u221e")),(0,m.kt)("mrow",{parentName:"msubsup"},(0,m.kt)("mo",{parentName:"mrow"},"+"),(0,m.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"\u221e"))),(0,m.kt)("mi",{parentName:"mrow"},"f"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"x"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("msup",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msup"},"e"),(0,m.kt)("mrow",{parentName:"msup"},(0,m.kt)("mo",{parentName:"mrow"},"\u2212"),(0,m.kt)("mi",{parentName:"mrow"},"j"),(0,m.kt)("mn",{parentName:"mrow"},"2"),(0,m.kt)("mi",{parentName:"mrow"},"\u03c0"),(0,m.kt)("mi",{parentName:"mrow"},"u"),(0,m.kt)("mi",{parentName:"mrow"},"x"))),(0,m.kt)("mi",{parentName:"mrow"},"d"),(0,m.kt)("mi",{parentName:"mrow"},"x"))),(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mtext",{parentName:"mtd"},"(5)")))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"F(u)=\\int_{-\\infty}^{+\\infty}f(x)e^{-j2\\pi ux}dx\\tag{5}")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"F"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"u"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"="),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"2.4915em",verticalAlign:"-0.9703em"}}),(0,m.kt)("span",{parentName:"span",className:"mop"},(0,m.kt)("span",{parentName:"span",className:"mop op-symbol large-op",style:{marginRight:"0.44445em",position:"relative",top:"-0.0011em"}},"\u222b"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.5212em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-1.7881em",marginLeft:"-0.4445em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"\u2212"),(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"\u221e")))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.8129em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"+"),(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"\u221e"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.9703em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.10764em"}},"f"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"x"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"e"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.8747em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-3.113em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"\u2212"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.05724em"}},"j"),(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"2"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.03588em"}},"\u03c0"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"ux"))))))))),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"d"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"x")),(0,m.kt)("span",{parentName:"span",className:"tag"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"2.4915em",verticalAlign:"-0.9703em"}}),(0,m.kt)("span",{parentName:"span",className:"mord text"},(0,m.kt)("span",{parentName:"span",className:"mord"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"5")),(0,m.kt)("span",{parentName:"span",className:"mord"},")"))))))),(0,m.kt)("p",null,"\u4e00\u7ef4\u8fde\u7eed\u5085\u91cc\u53f6\u9006\u53d8\u6362"),(0,m.kt)("div",{className:"math math-display"},(0,m.kt)("span",{parentName:"div",className:"katex-display"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mtable",{parentName:"semantics",width:"100%"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mrow",{parentName:"mtd"},(0,m.kt)("mi",{parentName:"mrow"},"f"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"x"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("msubsup",{parentName:"mrow"},(0,m.kt)("mo",{parentName:"msubsup"},"\u222b"),(0,m.kt)("mrow",{parentName:"msubsup"},(0,m.kt)("mo",{parentName:"mrow"},"\u2212"),(0,m.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"\u221e")),(0,m.kt)("mi",{parentName:"msubsup",mathvariant:"normal"},"\u221e")),(0,m.kt)("mi",{parentName:"mrow"},"F"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"u"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("msup",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msup"},"e"),(0,m.kt)("mrow",{parentName:"msup"},(0,m.kt)("mi",{parentName:"mrow"},"j"),(0,m.kt)("mn",{parentName:"mrow"},"2"),(0,m.kt)("mi",{parentName:"mrow"},"\u03c0"),(0,m.kt)("mi",{parentName:"mrow"},"u"),(0,m.kt)("mi",{parentName:"mrow"},"x"))),(0,m.kt)("mi",{parentName:"mrow"},"d"),(0,m.kt)("mi",{parentName:"mrow"},"u"))),(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mtext",{parentName:"mtd"},"(6)")))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"f(x)=\\int_{-\\infty}^{\\infty}F(u)e^{j2\\pi ux}du\\tag{6}")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.10764em"}},"f"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"x"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"="),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"2.3846em",verticalAlign:"-0.9703em"}}),(0,m.kt)("span",{parentName:"span",className:"mop"},(0,m.kt)("span",{parentName:"span",className:"mop op-symbol large-op",style:{marginRight:"0.44445em",position:"relative",top:"-0.0011em"}},"\u222b"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.4143em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-1.7881em",marginLeft:"-0.4445em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"\u2212"),(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"\u221e")))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.8129em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"\u221e"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.9703em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"F"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"u"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"e"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.8747em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-3.113em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.05724em"}},"j"),(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"2"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.03588em"}},"\u03c0"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"ux"))))))))),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"d"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"u")),(0,m.kt)("span",{parentName:"span",className:"tag"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"2.3846em",verticalAlign:"-0.9703em"}}),(0,m.kt)("span",{parentName:"span",className:"mord text"},(0,m.kt)("span",{parentName:"span",className:"mord"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"6")),(0,m.kt)("span",{parentName:"span",className:"mord"},")"))))))),(0,m.kt)("p",null,"\u4e8c\u7ef4\u8fde\u7eed\u5085\u91cc\u53f6\u53d8\u6362"),(0,m.kt)("div",{className:"math math-display"},(0,m.kt)("span",{parentName:"div",className:"katex-display"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mtable",{parentName:"semantics",width:"100%"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mrow",{parentName:"mtd"},(0,m.kt)("mi",{parentName:"mrow"},"F"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"u"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"v"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("msubsup",{parentName:"mrow"},(0,m.kt)("mo",{parentName:"msubsup"},"\u222b"),(0,m.kt)("mrow",{parentName:"msubsup"},(0,m.kt)("mo",{parentName:"mrow"},"\u2212"),(0,m.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"\u221e")),(0,m.kt)("mi",{parentName:"msubsup",mathvariant:"normal"},"\u221e")),(0,m.kt)("msubsup",{parentName:"mrow"},(0,m.kt)("mo",{parentName:"msubsup"},"\u222b"),(0,m.kt)("mrow",{parentName:"msubsup"},(0,m.kt)("mo",{parentName:"mrow"},"\u2212"),(0,m.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"\u221e")),(0,m.kt)("mi",{parentName:"msubsup",mathvariant:"normal"},"\u221e")),(0,m.kt)("mi",{parentName:"mrow"},"f"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"x"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"y"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("msup",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msup"},"e"),(0,m.kt)("mrow",{parentName:"msup"},(0,m.kt)("mo",{parentName:"mrow"},"\u2212"),(0,m.kt)("mi",{parentName:"mrow"},"j"),(0,m.kt)("mn",{parentName:"mrow"},"2"),(0,m.kt)("mi",{parentName:"mrow"},"\u03c0"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"u"),(0,m.kt)("mi",{parentName:"mrow"},"x"),(0,m.kt)("mo",{parentName:"mrow"},"+"),(0,m.kt)("mi",{parentName:"mrow"},"v"),(0,m.kt)("mi",{parentName:"mrow"},"y"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"))),(0,m.kt)("mi",{parentName:"mrow"},"d"),(0,m.kt)("mi",{parentName:"mrow"},"x"),(0,m.kt)("mi",{parentName:"mrow"},"d"),(0,m.kt)("mi",{parentName:"mrow"},"y"))),(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mtext",{parentName:"mtd"},"(7)")))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"F(u,v)=\\int_{-\\infty}^{\\infty}\\int_{-\\infty}^{\\infty}f(x,y)e^{-j2\\pi (ux+vy)}dxdy\\tag{7}")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"F"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"u"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"v"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"="),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"2.3846em",verticalAlign:"-0.9703em"}}),(0,m.kt)("span",{parentName:"span",className:"mop"},(0,m.kt)("span",{parentName:"span",className:"mop op-symbol large-op",style:{marginRight:"0.44445em",position:"relative",top:"-0.0011em"}},"\u222b"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.4143em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-1.7881em",marginLeft:"-0.4445em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"\u2212"),(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"\u221e")))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.8129em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"\u221e"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.9703em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mop"},(0,m.kt)("span",{parentName:"span",className:"mop op-symbol large-op",style:{marginRight:"0.44445em",position:"relative",top:"-0.0011em"}},"\u222b"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.4143em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-1.7881em",marginLeft:"-0.4445em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"\u2212"),(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"\u221e")))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.8129em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"\u221e"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.9703em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.10764em"}},"f"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"x"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"y"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"e"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.938em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-3.113em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"\u2212"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.05724em"}},"j"),(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"2"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.03588em"}},"\u03c0"),(0,m.kt)("span",{parentName:"span",className:"mopen mtight"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"ux"),(0,m.kt)("span",{parentName:"span",className:"mbin mtight"},"+"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.03588em"}},"v"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.03588em"}},"y"),(0,m.kt)("span",{parentName:"span",className:"mclose mtight"},")"))))))))),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"d"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"x"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"d"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"y")),(0,m.kt)("span",{parentName:"span",className:"tag"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"2.3846em",verticalAlign:"-0.9703em"}}),(0,m.kt)("span",{parentName:"span",className:"mord text"},(0,m.kt)("span",{parentName:"span",className:"mord"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"7")),(0,m.kt)("span",{parentName:"span",className:"mord"},")"))))))),(0,m.kt)("p",null,"\u4e8c\u7ef4\u8fde\u7eed\u5085\u91cc\u53f6\u9006\u53d8\u6362"),(0,m.kt)("div",{className:"math math-display"},(0,m.kt)("span",{parentName:"div",className:"katex-display"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mtable",{parentName:"semantics",width:"100%"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mrow",{parentName:"mtd"},(0,m.kt)("mi",{parentName:"mrow"},"f"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"x"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"y"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("msubsup",{parentName:"mrow"},(0,m.kt)("mo",{parentName:"msubsup"},"\u222b"),(0,m.kt)("mrow",{parentName:"msubsup"},(0,m.kt)("mo",{parentName:"mrow"},"\u2212"),(0,m.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"\u221e")),(0,m.kt)("mi",{parentName:"msubsup",mathvariant:"normal"},"\u221e")),(0,m.kt)("msubsup",{parentName:"mrow"},(0,m.kt)("mo",{parentName:"msubsup"},"\u222b"),(0,m.kt)("mrow",{parentName:"msubsup"},(0,m.kt)("mo",{parentName:"mrow"},"\u2212"),(0,m.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"\u221e")),(0,m.kt)("mi",{parentName:"msubsup",mathvariant:"normal"},"\u221e")),(0,m.kt)("mi",{parentName:"mrow"},"F"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"u"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"v"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("msup",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msup"},"e"),(0,m.kt)("mrow",{parentName:"msup"},(0,m.kt)("mi",{parentName:"mrow"},"j"),(0,m.kt)("mn",{parentName:"mrow"},"2"),(0,m.kt)("mi",{parentName:"mrow"},"\u03c0"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"u"),(0,m.kt)("mi",{parentName:"mrow"},"x"),(0,m.kt)("mo",{parentName:"mrow"},"+"),(0,m.kt)("mi",{parentName:"mrow"},"v"),(0,m.kt)("mi",{parentName:"mrow"},"y"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"))),(0,m.kt)("mi",{parentName:"mrow"},"d"),(0,m.kt)("mi",{parentName:"mrow"},"u"),(0,m.kt)("mi",{parentName:"mrow"},"d"),(0,m.kt)("mi",{parentName:"mrow"},"v"))),(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mtext",{parentName:"mtd"},"(8)")))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"f(x,y)=\\int_{-\\infty}^{\\infty}\\int_{-\\infty}^{\\infty}F(u,v)e^{j2\\pi (ux+vy)}dudv\\tag{8}")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.10764em"}},"f"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"x"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"y"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"="),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"2.3846em",verticalAlign:"-0.9703em"}}),(0,m.kt)("span",{parentName:"span",className:"mop"},(0,m.kt)("span",{parentName:"span",className:"mop op-symbol large-op",style:{marginRight:"0.44445em",position:"relative",top:"-0.0011em"}},"\u222b"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.4143em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-1.7881em",marginLeft:"-0.4445em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"\u2212"),(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"\u221e")))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.8129em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"\u221e"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.9703em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mop"},(0,m.kt)("span",{parentName:"span",className:"mop op-symbol large-op",style:{marginRight:"0.44445em",position:"relative",top:"-0.0011em"}},"\u222b"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.4143em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-1.7881em",marginLeft:"-0.4445em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"\u2212"),(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"\u221e")))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.8129em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"\u221e"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.9703em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"F"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"u"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"v"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"e"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.938em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-3.113em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.05724em"}},"j"),(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"2"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.03588em"}},"\u03c0"),(0,m.kt)("span",{parentName:"span",className:"mopen mtight"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"ux"),(0,m.kt)("span",{parentName:"span",className:"mbin mtight"},"+"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.03588em"}},"v"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.03588em"}},"y"),(0,m.kt)("span",{parentName:"span",className:"mclose mtight"},")"))))))))),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"d"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"u"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"d"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"v")),(0,m.kt)("span",{parentName:"span",className:"tag"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"2.3846em",verticalAlign:"-0.9703em"}}),(0,m.kt)("span",{parentName:"span",className:"mord text"},(0,m.kt)("span",{parentName:"span",className:"mord"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"8")),(0,m.kt)("span",{parentName:"span",className:"mord"},")"))))))),(0,m.kt)("h4",{id:"\u79bb\u6563\u5085\u91cc\u53f6\u53d8\u6362"},"\u79bb\u6563\u5085\u91cc\u53f6\u53d8\u6362"),(0,m.kt)("p",null,"\u4e00\u7ef4\u79bb\u6563\u5085\u91cc\u53f6\u53d8\u6362"),(0,m.kt)("div",{className:"math math-display"},(0,m.kt)("span",{parentName:"div",className:"katex-display"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mtable",{parentName:"semantics",width:"100%"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mrow",{parentName:"mtd"},(0,m.kt)("mi",{parentName:"mrow"},"F"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"u"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("munderover",{parentName:"mrow"},(0,m.kt)("mo",{parentName:"munderover"},"\u2211"),(0,m.kt)("mrow",{parentName:"munderover"},(0,m.kt)("mi",{parentName:"mrow"},"x"),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("mn",{parentName:"mrow"},"0")),(0,m.kt)("mrow",{parentName:"munderover"},(0,m.kt)("mi",{parentName:"mrow"},"N"),(0,m.kt)("mo",{parentName:"mrow"},"\u2212"),(0,m.kt)("mn",{parentName:"mrow"},"1"))),(0,m.kt)("mi",{parentName:"mrow"},"f"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"x"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("msup",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msup"},"e"),(0,m.kt)("mrow",{parentName:"msup"},(0,m.kt)("mo",{parentName:"mrow"},"\u2212"),(0,m.kt)("mi",{parentName:"mrow"},"j"),(0,m.kt)("mfrac",{parentName:"mrow"},(0,m.kt)("mrow",{parentName:"mfrac"},(0,m.kt)("mn",{parentName:"mrow"},"2"),(0,m.kt)("mi",{parentName:"mrow"},"\u03c0"),(0,m.kt)("mi",{parentName:"mrow"},"u"),(0,m.kt)("mi",{parentName:"mrow"},"x")),(0,m.kt)("mi",{parentName:"mfrac"},"N")))))),(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mtext",{parentName:"mtd"},"(9)")))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"F(u)=\\sum_{x=0}^{N-1}f(x)e^{-j\\frac{2\\pi ux}{N}}\\tag{9}")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"F"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"u"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"="),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"3.0954em",verticalAlign:"-1.2671em"}}),(0,m.kt)("span",{parentName:"span",className:"mop op-limits"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.8283em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-1.8829em",marginLeft:"0em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.05em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"x"),(0,m.kt)("span",{parentName:"span",className:"mrel mtight"},"="),(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"0")))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.05em"}}),(0,m.kt)("span",{parentName:"span"},(0,m.kt)("span",{parentName:"span",className:"mop op-symbol large-op"},"\u2211"))),(0,m.kt)("span",{parentName:"span",style:{top:"-4.3em",marginLeft:"0em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.05em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.10903em"}},"N"),(0,m.kt)("span",{parentName:"span",className:"mbin mtight"},"\u2212"),(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"1"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.2671em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.10764em"}},"f"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"x"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"e"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.004em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-3.413em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"\u2212"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.05724em"}},"j"),(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mopen nulldelimiter sizing reset-size3 size6"}),(0,m.kt)("span",{parentName:"span",className:"mfrac"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.8443em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.656em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size3 size1 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.10903em"}},"N")))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.2255em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"frac-line mtight",style:{borderBottomWidth:"0.049em"}})),(0,m.kt)("span",{parentName:"span",style:{top:"-3.384em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size3 size1 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"2"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.03588em"}},"\u03c0"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"ux"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.344em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"mclose nulldelimiter sizing reset-size3 size6"}))))))))))),(0,m.kt)("span",{parentName:"span",className:"tag"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"3.0954em",verticalAlign:"-1.2671em"}}),(0,m.kt)("span",{parentName:"span",className:"mord text"},(0,m.kt)("span",{parentName:"span",className:"mord"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"9")),(0,m.kt)("span",{parentName:"span",className:"mord"},")"))))))),(0,m.kt)("p",null,"\u4e00\u7ef4\u79bb\u6563\u5085\u91cc\u53f6\u9006\u53d8\u6362"),(0,m.kt)("div",{className:"math math-display"},(0,m.kt)("span",{parentName:"div",className:"katex-display"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mtable",{parentName:"semantics",width:"100%"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mrow",{parentName:"mtd"},(0,m.kt)("mi",{parentName:"mrow"},"f"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"x"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("mfrac",{parentName:"mrow"},(0,m.kt)("mn",{parentName:"mfrac"},"1"),(0,m.kt)("mi",{parentName:"mfrac"},"N")),(0,m.kt)("munderover",{parentName:"mrow"},(0,m.kt)("mo",{parentName:"munderover"},"\u2211"),(0,m.kt)("mrow",{parentName:"munderover"},(0,m.kt)("mi",{parentName:"mrow"},"u"),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("mn",{parentName:"mrow"},"0")),(0,m.kt)("mrow",{parentName:"munderover"},(0,m.kt)("mi",{parentName:"mrow"},"N"),(0,m.kt)("mo",{parentName:"mrow"},"\u2212"),(0,m.kt)("mn",{parentName:"mrow"},"1"))),(0,m.kt)("mi",{parentName:"mrow"},"F"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"u"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("msup",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msup"},"e"),(0,m.kt)("mrow",{parentName:"msup"},(0,m.kt)("mi",{parentName:"mrow"},"j"),(0,m.kt)("mfrac",{parentName:"mrow"},(0,m.kt)("mrow",{parentName:"mfrac"},(0,m.kt)("mn",{parentName:"mrow"},"2"),(0,m.kt)("mi",{parentName:"mrow"},"\u03c0"),(0,m.kt)("mi",{parentName:"mrow"},"u"),(0,m.kt)("mi",{parentName:"mrow"},"x")),(0,m.kt)("mi",{parentName:"mfrac"},"N")))))),(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mtext",{parentName:"mtd"},"(10)")))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"f(x)=\\frac{1}{N}\\sum_{u=0}^{N-1}F(u)e^{j\\frac{2\\pi ux}{N}}\\tag{10}")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.10764em"}},"f"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"x"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"="),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"3.0954em",verticalAlign:"-1.2671em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mopen nulldelimiter"}),(0,m.kt)("span",{parentName:"span",className:"mfrac"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.3214em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.314em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.10903em"}},"N"))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.23em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"frac-line",style:{borderBottomWidth:"0.04em"}})),(0,m.kt)("span",{parentName:"span",style:{top:"-3.677em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"1")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.686em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"mclose nulldelimiter"})),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mop op-limits"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.8283em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-1.8829em",marginLeft:"0em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.05em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"u"),(0,m.kt)("span",{parentName:"span",className:"mrel mtight"},"="),(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"0")))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.05em"}}),(0,m.kt)("span",{parentName:"span"},(0,m.kt)("span",{parentName:"span",className:"mop op-symbol large-op"},"\u2211"))),(0,m.kt)("span",{parentName:"span",style:{top:"-4.3em",marginLeft:"0em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.05em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.10903em"}},"N"),(0,m.kt)("span",{parentName:"span",className:"mbin mtight"},"\u2212"),(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"1"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.2671em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"F"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"u"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"e"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.004em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-3.413em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.05724em"}},"j"),(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mopen nulldelimiter sizing reset-size3 size6"}),(0,m.kt)("span",{parentName:"span",className:"mfrac"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.8443em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.656em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size3 size1 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.10903em"}},"N")))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.2255em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"frac-line mtight",style:{borderBottomWidth:"0.049em"}})),(0,m.kt)("span",{parentName:"span",style:{top:"-3.384em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size3 size1 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"2"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.03588em"}},"\u03c0"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"ux"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.344em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"mclose nulldelimiter sizing reset-size3 size6"}))))))))))),(0,m.kt)("span",{parentName:"span",className:"tag"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"3.0954em",verticalAlign:"-1.2671em"}}),(0,m.kt)("span",{parentName:"span",className:"mord text"},(0,m.kt)("span",{parentName:"span",className:"mord"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"10")),(0,m.kt)("span",{parentName:"span",className:"mord"},")"))))))),(0,m.kt)("p",null,"\u4e8c\u7ef4\u79bb\u6563\u5085\u91cc\u53f6\u53d8\u6362"),(0,m.kt)("div",{className:"math math-display"},(0,m.kt)("span",{parentName:"div",className:"katex-display"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mtable",{parentName:"semantics",width:"100%"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mrow",{parentName:"mtd"},(0,m.kt)("mi",{parentName:"mrow"},"F"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"u"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"v"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("munderover",{parentName:"mrow"},(0,m.kt)("mo",{parentName:"munderover"},"\u2211"),(0,m.kt)("mrow",{parentName:"munderover"},(0,m.kt)("mi",{parentName:"mrow"},"x"),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("mn",{parentName:"mrow"},"0")),(0,m.kt)("mrow",{parentName:"munderover"},(0,m.kt)("mi",{parentName:"mrow"},"M"),(0,m.kt)("mo",{parentName:"mrow"},"\u2212"),(0,m.kt)("mn",{parentName:"mrow"},"1"))),(0,m.kt)("munderover",{parentName:"mrow"},(0,m.kt)("mo",{parentName:"munderover"},"\u2211"),(0,m.kt)("mrow",{parentName:"munderover"},(0,m.kt)("mi",{parentName:"mrow"},"y"),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("mn",{parentName:"mrow"},"0")),(0,m.kt)("mrow",{parentName:"munderover"},(0,m.kt)("mi",{parentName:"mrow"},"N"),(0,m.kt)("mo",{parentName:"mrow"},"\u2212"),(0,m.kt)("mn",{parentName:"mrow"},"1"))),(0,m.kt)("mi",{parentName:"mrow"},"f"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"x"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"y"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("msup",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msup"},"e"),(0,m.kt)("mrow",{parentName:"msup"},(0,m.kt)("mo",{parentName:"mrow"},"\u2212"),(0,m.kt)("mi",{parentName:"mrow"},"j"),(0,m.kt)("mn",{parentName:"mrow"},"2"),(0,m.kt)("mi",{parentName:"mrow"},"\u03c0"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mfrac",{parentName:"mrow"},(0,m.kt)("mrow",{parentName:"mfrac"},(0,m.kt)("mi",{parentName:"mrow"},"u"),(0,m.kt)("mi",{parentName:"mrow"},"x")),(0,m.kt)("mi",{parentName:"mfrac"},"M")),(0,m.kt)("mo",{parentName:"mrow"},"+"),(0,m.kt)("mfrac",{parentName:"mrow"},(0,m.kt)("mrow",{parentName:"mfrac"},(0,m.kt)("mi",{parentName:"mrow"},"v"),(0,m.kt)("mi",{parentName:"mrow"},"y")),(0,m.kt)("mi",{parentName:"mfrac"},"N")),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"))))),(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mtext",{parentName:"mtd"},"(11)")))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"F(u,v)=\\sum_{x=0}^{M-1}\\sum_{y=0}^{N-1}f(x,y)e^{-j2\\pi (\\frac{ux}{M}+\\frac{vy}{N})}\\tag{11}")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"F"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"u"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"v"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"="),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"3.2316em",verticalAlign:"-1.4032em"}}),(0,m.kt)("span",{parentName:"span",className:"mop op-limits"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.8283em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-1.8829em",marginLeft:"0em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.05em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"x"),(0,m.kt)("span",{parentName:"span",className:"mrel mtight"},"="),(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"0")))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.05em"}}),(0,m.kt)("span",{parentName:"span"},(0,m.kt)("span",{parentName:"span",className:"mop op-symbol large-op"},"\u2211"))),(0,m.kt)("span",{parentName:"span",style:{top:"-4.3em",marginLeft:"0em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.05em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.10903em"}},"M"),(0,m.kt)("span",{parentName:"span",className:"mbin mtight"},"\u2212"),(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"1"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.2671em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mop op-limits"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.8283em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-1.8829em",marginLeft:"0em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.05em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.03588em"}},"y"),(0,m.kt)("span",{parentName:"span",className:"mrel mtight"},"="),(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"0")))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.05em"}}),(0,m.kt)("span",{parentName:"span"},(0,m.kt)("span",{parentName:"span",className:"mop op-symbol large-op"},"\u2211"))),(0,m.kt)("span",{parentName:"span",style:{top:"-4.3em",marginLeft:"0em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.05em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.10903em"}},"N"),(0,m.kt)("span",{parentName:"span",className:"mbin mtight"},"\u2212"),(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"1"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.4032em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.10764em"}},"f"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"x"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"y"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"e"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.9519em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-3.413em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"\u2212"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.05724em"}},"j"),(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"2"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.03588em"}},"\u03c0"),(0,m.kt)("span",{parentName:"span",className:"mopen mtight"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mopen nulldelimiter sizing reset-size3 size6"}),(0,m.kt)("span",{parentName:"span",className:"mfrac"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.6915em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.656em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size3 size1 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.10903em"}},"M")))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.2255em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"frac-line mtight",style:{borderBottomWidth:"0.049em"}})),(0,m.kt)("span",{parentName:"span",style:{top:"-3.384em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size3 size1 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"ux"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.344em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"mclose nulldelimiter sizing reset-size3 size6"})),(0,m.kt)("span",{parentName:"span",className:"mbin mtight"},"+"),(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mopen nulldelimiter sizing reset-size3 size6"}),(0,m.kt)("span",{parentName:"span",className:"mfrac"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.7699em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.656em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size3 size1 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.10903em"}},"N")))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.2255em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"frac-line mtight",style:{borderBottomWidth:"0.049em"}})),(0,m.kt)("span",{parentName:"span",style:{top:"-3.4624em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size3 size1 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.03588em"}},"v"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.03588em"}},"y"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.344em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"mclose nulldelimiter sizing reset-size3 size6"})),(0,m.kt)("span",{parentName:"span",className:"mclose mtight"},")")))))))))),(0,m.kt)("span",{parentName:"span",className:"tag"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"3.2316em",verticalAlign:"-1.4032em"}}),(0,m.kt)("span",{parentName:"span",className:"mord text"},(0,m.kt)("span",{parentName:"span",className:"mord"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"11")),(0,m.kt)("span",{parentName:"span",className:"mord"},")"))))))),(0,m.kt)("p",null,"\u4e8c\u7ef4\u79bb\u6563\u5085\u91cc\u53f6\u9006\u53d8\u6362"),(0,m.kt)("div",{className:"math math-display"},(0,m.kt)("span",{parentName:"div",className:"katex-display"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mtable",{parentName:"semantics",width:"100%"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mrow",{parentName:"mtd"},(0,m.kt)("mi",{parentName:"mrow"},"f"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"x"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"y"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("mfrac",{parentName:"mrow"},(0,m.kt)("mn",{parentName:"mfrac"},"1"),(0,m.kt)("mrow",{parentName:"mfrac"},(0,m.kt)("mi",{parentName:"mrow"},"M"),(0,m.kt)("mi",{parentName:"mrow"},"N"))),(0,m.kt)("munderover",{parentName:"mrow"},(0,m.kt)("mo",{parentName:"munderover"},"\u2211"),(0,m.kt)("mrow",{parentName:"munderover"},(0,m.kt)("mi",{parentName:"mrow"},"u"),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("mn",{parentName:"mrow"},"0")),(0,m.kt)("mrow",{parentName:"munderover"},(0,m.kt)("mi",{parentName:"mrow"},"M"),(0,m.kt)("mo",{parentName:"mrow"},"\u2212"),(0,m.kt)("mn",{parentName:"mrow"},"1"))),(0,m.kt)("munderover",{parentName:"mrow"},(0,m.kt)("mo",{parentName:"munderover"},"\u2211"),(0,m.kt)("mrow",{parentName:"munderover"},(0,m.kt)("mi",{parentName:"mrow"},"v"),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("mn",{parentName:"mrow"},"0")),(0,m.kt)("mrow",{parentName:"munderover"},(0,m.kt)("mi",{parentName:"mrow"},"N"),(0,m.kt)("mo",{parentName:"mrow"},"\u2212"),(0,m.kt)("mn",{parentName:"mrow"},"1"))),(0,m.kt)("mi",{parentName:"mrow"},"F"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"u"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"v"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("msup",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msup"},"e"),(0,m.kt)("mrow",{parentName:"msup"},(0,m.kt)("mi",{parentName:"mrow"},"j"),(0,m.kt)("mn",{parentName:"mrow"},"2"),(0,m.kt)("mi",{parentName:"mrow"},"\u03c0"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mfrac",{parentName:"mrow"},(0,m.kt)("mrow",{parentName:"mfrac"},(0,m.kt)("mi",{parentName:"mrow"},"u"),(0,m.kt)("mi",{parentName:"mrow"},"x")),(0,m.kt)("mi",{parentName:"mfrac"},"M")),(0,m.kt)("mo",{parentName:"mrow"},"+"),(0,m.kt)("mfrac",{parentName:"mrow"},(0,m.kt)("mrow",{parentName:"mfrac"},(0,m.kt)("mi",{parentName:"mrow"},"v"),(0,m.kt)("mi",{parentName:"mrow"},"y")),(0,m.kt)("mi",{parentName:"mfrac"},"N")),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"))))),(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mtext",{parentName:"mtd"},"(12)")))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"f(x,y)=\\frac{1}{MN}\\sum_{u=0}^{M-1}\\sum_{v=0}^{N-1}F(u,v)e^{j2\\pi (\\frac{ux}{M}+\\frac{vy}{N})}\\tag{12}")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.10764em"}},"f"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"x"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"y"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"="),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"3.0954em",verticalAlign:"-1.2671em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mopen nulldelimiter"}),(0,m.kt)("span",{parentName:"span",className:"mfrac"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.3214em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.314em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.10903em"}},"MN"))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.23em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"frac-line",style:{borderBottomWidth:"0.04em"}})),(0,m.kt)("span",{parentName:"span",style:{top:"-3.677em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"1")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.686em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"mclose nulldelimiter"})),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mop op-limits"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.8283em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-1.8829em",marginLeft:"0em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.05em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"u"),(0,m.kt)("span",{parentName:"span",className:"mrel mtight"},"="),(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"0")))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.05em"}}),(0,m.kt)("span",{parentName:"span"},(0,m.kt)("span",{parentName:"span",className:"mop op-symbol large-op"},"\u2211"))),(0,m.kt)("span",{parentName:"span",style:{top:"-4.3em",marginLeft:"0em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.05em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.10903em"}},"M"),(0,m.kt)("span",{parentName:"span",className:"mbin mtight"},"\u2212"),(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"1"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.2671em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mop op-limits"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.8283em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-1.8829em",marginLeft:"0em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.05em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.03588em"}},"v"),(0,m.kt)("span",{parentName:"span",className:"mrel mtight"},"="),(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"0")))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.05em"}}),(0,m.kt)("span",{parentName:"span"},(0,m.kt)("span",{parentName:"span",className:"mop op-symbol large-op"},"\u2211"))),(0,m.kt)("span",{parentName:"span",style:{top:"-4.3em",marginLeft:"0em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.05em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.10903em"}},"N"),(0,m.kt)("span",{parentName:"span",className:"mbin mtight"},"\u2212"),(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"1"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.2671em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"F"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"u"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"v"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"e"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.9519em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-3.413em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.05724em"}},"j"),(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"2"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.03588em"}},"\u03c0"),(0,m.kt)("span",{parentName:"span",className:"mopen mtight"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mopen nulldelimiter sizing reset-size3 size6"}),(0,m.kt)("span",{parentName:"span",className:"mfrac"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.6915em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.656em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size3 size1 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.10903em"}},"M")))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.2255em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"frac-line mtight",style:{borderBottomWidth:"0.049em"}})),(0,m.kt)("span",{parentName:"span",style:{top:"-3.384em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size3 size1 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"ux"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.344em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"mclose nulldelimiter sizing reset-size3 size6"})),(0,m.kt)("span",{parentName:"span",className:"mbin mtight"},"+"),(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mopen nulldelimiter sizing reset-size3 size6"}),(0,m.kt)("span",{parentName:"span",className:"mfrac"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.7699em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.656em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size3 size1 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.10903em"}},"N")))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.2255em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"frac-line mtight",style:{borderBottomWidth:"0.049em"}})),(0,m.kt)("span",{parentName:"span",style:{top:"-3.4624em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size3 size1 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.03588em"}},"v"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.03588em"}},"y"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.344em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"mclose nulldelimiter sizing reset-size3 size6"})),(0,m.kt)("span",{parentName:"span",className:"mclose mtight"},")")))))))))),(0,m.kt)("span",{parentName:"span",className:"tag"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"3.0954em",verticalAlign:"-1.2671em"}}),(0,m.kt)("span",{parentName:"span",className:"mord text"},(0,m.kt)("span",{parentName:"span",className:"mord"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"12")),(0,m.kt)("span",{parentName:"span",className:"mord"},")"))))))),(0,m.kt)("h2",{id:"\u7b2c4\u7ae0-\u56fe\u50cf\u5904\u7406\u7684\u57fa\u672c\u8fd0\u7b97"},"\u7b2c4\u7ae0 \u56fe\u50cf\u5904\u7406\u7684\u57fa\u672c\u8fd0\u7b97"),(0,m.kt)("h3",{id:"\u70b9\u8fd0\u7b97"},"\u70b9\u8fd0\u7b97"),(0,m.kt)("p",null,"\u4e0b\u56fe\u5c55\u793a\u4e86\u70b9\u8fd0\u7b97\u7684\u4e3b\u8981\u5e94\u7528\uff1a\u5bf9\u6bd4\u5ea6\u62c9\u4f38"),(0,m.kt)("p",null,(0,m.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_imagesimage-20231206232333992.png",alt:"image-20231206232333992"})),(0,m.kt)("p",null,"\u4e3b\u8981\u5e94\u7528\uff1a"),(0,m.kt)("ol",null,(0,m.kt)("li",{parentName:"ol"},"\u5bf9\u6bd4\u5ea6\u62c9\u4f38"),(0,m.kt)("li",{parentName:"ol"},"\u5149\u5ea6\u5b66\u6807\u5b9a"),(0,m.kt)("li",{parentName:"ol"},"\u663e\u793a\u6807\u5b9a"),(0,m.kt)("li",{parentName:"ol"},"\u8f6e\u5ed3\u7ebf"),(0,m.kt)("li",{parentName:"ol"},"\u88c1\u526a")),(0,m.kt)("h3",{id:"\u6bd4\u4f8b\u7f29\u653e"},"\u6bd4\u4f8b\u7f29\u653e"),(0,m.kt)("p",null,"\u4f7f\u7528\u9f50\u6b21\u5750\u6807\u5bf9\u56fe\u50cf\u8fdb\u884c\u6bd4\u4f8b\u7f29\u653e\u3002"),(0,m.kt)("p",null,"\u5168\u6bd4\u4f8b\u7f29\u653e\u662f\u6307x\u65b9\u5411\u548cy\u65b9\u5411\u4f7f\u7528\u76f8\u540c\u7684\u6bd4\u4f8b\u7cfb\u6570\u3002"),(0,m.kt)("p",null,"\u5f53\u5bf9\u56fe\u50cf\u8fdb\u884c\u653e\u5927\u65f6\uff0c\u4f1a\u4ea7\u751f\u4e4b\u524d\u6ca1\u6709\u7684\u50cf\u7d20\uff0c\u6b64\u65f6\u9700\u8981\u4f7f\u7528\u63d2\u503c\u6765\u89e3\u51b3\u3002"),(0,m.kt)("h3",{id:"\u7070\u5ea6\u7ea7\u63d2\u503c"},"\u7070\u5ea6\u7ea7\u63d2\u503c"),(0,m.kt)("h4",{id:"\u6700\u8fd1\u90bb\u6cd5\u63d2\u503c"},"\u6700\u8fd1\u90bb\u6cd5\u63d2\u503c"),(0,m.kt)("p",null,(0,m.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_imagesimage-20231204211821512.png",alt:"image-20231204211821512"})),(0,m.kt)("h4",{id:"\u53cc\u7ebf\u6027\u63d2\u503cbilinear"},"\u53cc\u7ebf\u6027\u63d2\u503c\uff08Bilinear\uff09"),(0,m.kt)("p",null,(0,m.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_images5aa135de29a5477b339c46f0dc05fd54_720.png",alt:"img"})),(0,m.kt)("p",null,"\u4f8b\u9898\uff1a"),(0,m.kt)("p",null,(0,m.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_imagesimage-20231207094211248.png",alt:"image-20231207094211248"})),(0,m.kt)("p",null,(0,m.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_imagesimage-20231204214449115.png",alt:"image-20231204214449115"})),(0,m.kt)("h2",{id:"\u7b2c5\u7ae0-\u56fe\u50cf\u7a7a\u57df\u589e\u5f3a"},"\u7b2c5\u7ae0 \u56fe\u50cf\u7a7a\u57df\u589e\u5f3a"),(0,m.kt)("p",null,(0,m.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_imagesc2a028df9a0fcfb571be1dc64a1a14ad_720.png",alt:"img"})),(0,m.kt)("h3",{id:"\u76f4\u63a5\u7070\u5ea6\u53d8\u6362"},"\u76f4\u63a5\u7070\u5ea6\u53d8\u6362"),(0,m.kt)("h4",{id:"\u7ebf\u6027\u53d8\u6362"},"\u7ebf\u6027\u53d8\u6362"),(0,m.kt)("p",null,"\u662f\u6307\u5c06\u8f93\u5165\u56fe\u50cf\u7684\u7070\u5ea6\u503c\u7684\u52a8\u6001\u8303\u56f4\u6309\u7ebf\u6027\u5173\u7cfb\u53d8\u6362\u81f3\u6307\u5b9a\u8303\u56f4\u6216\u7070\u5ea6\u7684\u6574\u4e2a\u52a8\u6001\u8303\u56f4\u3002"),(0,m.kt)("ul",null,(0,m.kt)("li",{parentName:"ul"},"\u6309\u6bd4\u4f8b\u7ebf\u6027\u53d8\u6362",(0,m.kt)("ul",{parentName:"li"},(0,m.kt)("li",{parentName:"ul"},"\u5747\u5300\u7ebf\u6027\u53d8\u6362"),(0,m.kt)("li",{parentName:"ul"},"\u9650\u5e45\u7ebf\u6027\u53d8\u6362"))),(0,m.kt)("li",{parentName:"ul"},"\u5206\u6bb5\u7ebf\u6027\u62c9\u4f38")),(0,m.kt)("h4",{id:"\u975e\u7ebf\u6027\u53d8\u6362"},"\u975e\u7ebf\u6027\u53d8\u6362"),(0,m.kt)("ul",null,(0,m.kt)("li",{parentName:"ul"},"\u5bf9\u6570\u62c9\u4f38\u53ef\u4ee5\u62c9\u4f38\u4f4e\u4eae\u5ea6\u533a\u57df\uff0c\u538b\u7f29\u9ad8\u4eae\u5ea6\u533a\u57df\u3002"),(0,m.kt)("li",{parentName:"ul"},"\u6307\u6570\u62c9\u4f38\u53ef\u4ee5\u62c9\u4f38\u9ad8\u4eae\u5ea6\u533a\u57df\uff0c\u538b\u7f29\u4f4e\u4eae\u5ea6\u533a\u57df\u3002")),(0,m.kt)("p",null,"\u6ce8\u610f\uff0c\u4e0a\u8ff0\u7684",(0,m.kt)("strong",{parentName:"p"},"\u62c9\u4f38"),"\u662f\u6307\u65b0\u7684\u56fe\u50cf\u5728\u8be5\u7070\u5ea6\u8303\u56f4\u5185\u5206\u5e03\u7684\u66f4\u5747\u5300\uff0c\u5373",(0,m.kt)("strong",{parentName:"p"},"\u51fa\u73b0\u7684\u7070\u5ea6\u7ea7\u66f4\u591a"),"\uff1b",(0,m.kt)("strong",{parentName:"p"},"\u538b\u7f29"),"\u7684\u610f\u4e49\u662f\u6307\u65b0\u7684\u56fe\u50cf\u5728\u8be5\u7070\u5ea6\u8303\u56f4\u5185\u5206\u5e03\u7684\u66f4\u72ed\u7a84\uff0c\u5373\u51fa\u73b0\u7684\u7070\u5ea6\u7ea7\u66f4\u5c11\u3002"),(0,m.kt)("p",null,"\u4f8b\u9898\uff1a"),(0,m.kt)("p",null,(0,m.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_imagesimage-20231204221520210.png",alt:"image-20231204221520210"})),(0,m.kt)("p",null,"\u7b54\uff1a\u8be5\u56fe\u50cf\u5b58\u5728\u8f83\u4eae\u7684\u95ee\u9898\uff0c\u7070\u5ea6\u76f4\u65b9\u56fe\u5206\u5e03\u5728\u8f83\u9ad8\u7684\u533a\u57df\u3002\u4ece\u76f4\u63a5\u7070\u5ea6\u53d8\u6362\u589e\u5f3a\u6cd5\u7684\u89d2\u5ea6\uff0c\u6211\u4eec\u53ef\u4ee5\u91c7\u7528\u6307\u6570\u51fd\u6570\u53d8\u6362\uff0c\u5bf9\u9ad8\u7070\u5ea6\u533a\u8fdb\u884c\u6269\u5c55\u3002"),(0,m.kt)("admonition",{type:"tip"},(0,m.kt)("p",{parentName:"admonition"},"\u5206\u6790\uff1a\u8be5\u56fe\u50cf\u4e2d\u6ca1\u6709\u4f4e\u7070\u5ea6\u7684\u50cf\u7d20\uff0c\u5168\u90e8\u96c6\u4e2d\u5728\u9ad8\u7070\u5ea6\u90e8\u5206\uff0c\u56e0\u6b64",(0,m.kt)("strong",{parentName:"p"},"\u4f7f\u7528\u6307\u6570\u51fd\u6570\u53d8\u6362\u5c06\u539f\u6765\u7684\u96c6\u4e2d\u7684\u9ad8\u7070\u5ea6\u533a\u57df\u8fdb\u884c\u62c9\u4f38\uff0c\u6269\u5c55\u5176\u7070\u5ea6\u5206\u5e03\u7684\u8303\u56f4"),"\uff0c\u4ece\u800c\u8d77\u5230\u589e\u5f3a\u6548\u679c\u3002")),(0,m.kt)("h3",{id:"\u76f4\u65b9\u56fe\u7070\u5ea6\u53d8\u6362"},"\u76f4\u65b9\u56fe\u7070\u5ea6\u53d8\u6362"),(0,m.kt)("h4",{id:"\u76f4\u65b9\u56fe\u5747\u8861\u5316"},"\u76f4\u65b9\u56fe\u5747\u8861\u5316"),(0,m.kt)("ul",null,(0,m.kt)("li",{parentName:"ul"},(0,m.kt)("p",{parentName:"li"},"\u76ee\u7684\uff1a"),(0,m.kt)("p",{parentName:"li"},"\u5c06\u4e00\u975e\u5747\u5300\u7070\u5ea6\u6982\u7387\u5bc6\u5ea6\u5206\u5e03\u7684\u56fe\u50cf\uff0c\u901a\u8fc7\u67d0\u79cd\u7070\u5ea6\u53d8\u6362\uff0c\u5c06\u5176\u53d8\u6210\u4e00\u5e45\u5177\u6709\u5747\u5300\u7070\u5ea6\u6982\u7387\u5bc6\u5ea6\u5206\u5e03\u7684\u76ee\u7684\u56fe\u50cf\u3002")),(0,m.kt)("li",{parentName:"ul"},(0,m.kt)("p",{parentName:"li"},"\u6b65\u9aa4\uff1a"),(0,m.kt)("ol",{parentName:"li"},(0,m.kt)("li",{parentName:"ol"},(0,m.kt)("p",{parentName:"li"},"\u6839\u636e\u539f\u59cb\u56fe\u50cf\u8ba1\u7b97\u539f\u59cb\u7070\u5ea6\u5bc6\u5ea6\u5206\u5e03\u51fd\u6570",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"r"),(0,m.kt)("mi",{parentName:"msub"},"k"))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"r_k")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.5806em",verticalAlign:"-0.15em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02778em"}},"r"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3361em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0278em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.03148em"}},"k")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))))))))),(0,m.kt)("li",{parentName:"ol"},(0,m.kt)("p",{parentName:"li"},"\u8ba1\u7b97\u53d8\u6362\u51fd\u6570\uff0c\u5373\u7d2f\u79ef\u5bc6\u5ea6\u5206\u5e03\u51fd\u6570",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"s"),(0,m.kt)("mi",{parentName:"msub"},"k"))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"s_k")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.5806em",verticalAlign:"-0.15em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"s"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3361em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.03148em"}},"k")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))))))))),(0,m.kt)("li",{parentName:"ol"},(0,m.kt)("p",{parentName:"li"},"\u8ba1\u7b97\u5747\u8861\u5316\u540e\u7684\u7070\u5ea6\u7ea7",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"s"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"k"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"s(k)")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"s"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03148em"}},"k"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"))))),"\uff0c\u5373\u4f7f\u7528\u4ee5\u4e0b\u516c\u5f0f\u8fdb\u884c\u5747\u8861\u5316\u6620\u5c04\uff1a"),(0,m.kt)("div",{parentName:"li",className:"math math-display"},(0,m.kt)("span",{parentName:"div",className:"katex-display"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mtable",{parentName:"semantics",width:"100%"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mrow",{parentName:"mtd"},(0,m.kt)("mi",{parentName:"mrow"},"s"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"k"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("mrow",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"mrow",mathvariant:"bold"},"c"),(0,m.kt)("mi",{parentName:"mrow",mathvariant:"bold"},"e"),(0,m.kt)("mi",{parentName:"mrow",mathvariant:"bold"},"i"),(0,m.kt)("mi",{parentName:"mrow",mathvariant:"bold"},"l")),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"s"),(0,m.kt)("mi",{parentName:"msub"},"k")),(0,m.kt)("mo",{parentName:"mrow"},"\xd7"),(0,m.kt)("mi",{parentName:"mrow"},"L"),(0,m.kt)("mo",{parentName:"mrow"},"\u2212"),(0,m.kt)("mn",{parentName:"mrow"},"1"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"))),(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mtext",{parentName:"mtd"},"(13)")))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"s(k)=\\mathbf{ceil}(s_k\\times L-1)\\tag{13}")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"s"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03148em"}},"k"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"="),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathbf"},"ceil")),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"s"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3361em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.03148em"}},"k")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"\xd7"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.7667em",verticalAlign:"-0.0833em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"L"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"\u2212"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"1"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")")),(0,m.kt)("span",{parentName:"span",className:"tag"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord text"},(0,m.kt)("span",{parentName:"span",className:"mord"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"13")),(0,m.kt)("span",{parentName:"span",className:"mord"},")"))))))),(0,m.kt)("p",{parentName:"li"},"\u5176\u4e2d\uff0c",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"L")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"L")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6833em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"L"))))),"\u662f\u539f\u76f4\u65b9\u56fe\u4e2d\u7070\u5ea6\u7ea7\u6570\u3002")),(0,m.kt)("li",{parentName:"ol"},(0,m.kt)("p",{parentName:"li"},"\u753b\u51fa\u6700\u7ec8\u5747\u8861\u5316\u540e\u7684\u76f4\u65b9\u56fe"))))),(0,m.kt)("p",null,"\u4f8b\u9898\uff1a"),(0,m.kt)("p",null,(0,m.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_imagesimage-20231204220310925.png",alt:"image-20231204220310925"})),(0,m.kt)("h4",{id:"\u76f4\u65b9\u56fe\u89c4\u5b9a\u5316"},"\u76f4\u65b9\u56fe\u89c4\u5b9a\u5316"),(0,m.kt)("ul",null,(0,m.kt)("li",{parentName:"ul"},(0,m.kt)("p",{parentName:"li"},"\u76ee\u7684\uff1a"),(0,m.kt)("p",{parentName:"li"},"\u8c03\u6574\u539f\u59cb\u56fe\u50cf\u7684\u76f4\u65b9\u56fe\u4f7f\u5176\u7b26\u5408\u67d0\u4e00\u89c4\u5b9a\u7684\u76f4\u65b9\u56fe\u7684\u8981\u6c42\u3002")),(0,m.kt)("li",{parentName:"ul"},(0,m.kt)("p",{parentName:"li"},"\u601d\u60f3\uff1a"),(0,m.kt)("p",{parentName:"li"},"\u5c06\u539f\u59cb\u56fe\u50cf\u548c\u89c4\u5b9a\u56fe\u50cf\u8fdb\u884c\u5747\u8861\u5316\u540e\uff0c\u4e8c\u8005\u7684\u7070\u5ea6\u6982\u7387\u5bc6\u5ea6\u5206\u5e03\u76f8\u540c\uff0c\u8fdb\u884c\u5bf9\u5e94\u6620\u5c04\u5373\u53ef\u3002")),(0,m.kt)("li",{parentName:"ul"},(0,m.kt)("p",{parentName:"li"},"\u6b65\u9aa4\uff1a"),(0,m.kt)("ol",{parentName:"li"},(0,m.kt)("li",{parentName:"ol"},"\u5bf9\u539f\u59cb\u56fe\u50cf\u8fdb\u884c\u5747\u8861\u5316\uff0c\u5f97\u5230\u6620\u5c04\u540e\u7684",(0,m.kt)("span",{parentName:"li",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"s"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"k"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"s(k)")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"s"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03148em"}},"k"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")")))))),(0,m.kt)("li",{parentName:"ol"},"\u5bf9\u89c4\u5b9a\u7684\u56fe\u50cf\u76f4\u65b9\u56fe\u8fdb\u884c\u5747\u8861\u5316\uff0c\u5f97\u5230\u6620\u5c04\u540e\u7684",(0,m.kt)("span",{parentName:"li",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"z"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"k"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"z(k)")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.04398em"}},"z"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03148em"}},"k"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")")))))),(0,m.kt)("li",{parentName:"ol"},"\u7531\u4e8e",(0,m.kt)("span",{parentName:"li",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"s"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"k"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"s(k)")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"s"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03148em"}},"k"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"))))),"\u548c",(0,m.kt)("span",{parentName:"li",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"z"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"k"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"z(k)")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.04398em"}},"z"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03148em"}},"k"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"))))),"\u90fd\u662f\u5f52\u4e00\u5316\u540e\u7684\u5747\u5300\u5206\u5e03\uff0c\u4f7f\u7528\u4e8c\u8005\u4e4b\u95f4\u7684\u5c31\u8fd1\u539f\u5219\u5c06",(0,m.kt)("span",{parentName:"li",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"s"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"k"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"s(k)")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"s"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03148em"}},"k"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"))))),"\u5bf9\u5e94\u5230\u7ed9\u51fa\u7684\u89c4\u5b9a\u76f4\u65b9\u56fe\u7684\u7070\u5ea6\u7ea7"),(0,m.kt)("li",{parentName:"ol"},"\u753b\u51fa\u89c4\u5b9a\u5316\u540e\u7684\u76f4\u65b9\u56fe"))),(0,m.kt)("li",{parentName:"ul"},(0,m.kt)("p",{parentName:"li"},"\u4f8b\u9898\uff1a"),(0,m.kt)("p",{parentName:"li"},(0,m.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_imagesimage-20231207100622160.png",alt:"image-20231207100622160"})),(0,m.kt)("p",{parentName:"li"},(0,m.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_imagesimage-20231207100636525.png",alt:"image-20231207100636525"})),(0,m.kt)("p",{parentName:"li"},(0,m.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_imagesimage-20231207100655656.png",alt:"image-20231207100655656"})),(0,m.kt)("p",{parentName:"li"},"\u6b64\u65f6\u5df2\u7ecf\u83b7\u5f97\u4e86\u539f\u59cb\u56fe\u50cf\u5747\u8861\u5316\u540e\u7684\u7070\u5ea6\u7ea7\u4e0e\u76ee\u6807\u89c4\u5b9a\u5316\u8f93\u51fa\u7684\u56fe\u50cf\u7684\u7070\u5ea6\u7ea7\u4e4b\u95f4\u7684\u6620\u5c04\u5173\u7cfb\uff0c\u6700\u540e\u4e00\u6b65\u6309\u7167",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"r"),(0,m.kt)("mi",{parentName:"msub"},"k"))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"r_k")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.5806em",verticalAlign:"-0.15em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02778em"}},"r"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3361em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0278em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.03148em"}},"k")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))))))),"\u753b\u51fa\u76ee\u6807\u89c4\u5b9a\u5316\u8f93\u51fa\u7684\u56fe\u50cf\u76f4\u65b9\u56fe\u5373\u53ef\u3002"))),(0,m.kt)("h3",{id:"\u7a7a\u57df\u6ee4\u6ce2\u589e\u5f3a"},"\u7a7a\u57df\u6ee4\u6ce2\u589e\u5f3a"),(0,m.kt)("p",null,"\u7a7a\u57df\u6ee4\u6ce2\u53ef\u4ee5\u6839\u636e\u4f5c\u7528\u5206\u4e3a\u5e73\u6ed1\u6ee4\u6ce2\u4ee5\u53ca\u9510\u5316\u6ee4\u6ce2\u3002"),(0,m.kt)("h4",{id:"\u5e73\u6ed1\u6ee4\u6ce2"},"\u5e73\u6ed1\u6ee4\u6ce2"),(0,m.kt)("admonition",{type:"important"},(0,m.kt)("p",{parentName:"admonition"},"\u566a\u58f0\u7684\u7279\u70b9\uff1a"),(0,m.kt)("ul",{parentName:"admonition"},(0,m.kt)("li",{parentName:"ul"},"\u968f\u673a\u6027"),(0,m.kt)("li",{parentName:"ul"},"\u53e0\u52a0\u6027"),(0,m.kt)("li",{parentName:"ul"},"\u566a\u58f0\u4e0e\u56fe\u50cf\u4e4b\u95f4\u5177\u6709\u76f8\u5173\u6027"))),(0,m.kt)("h5",{id:"\u7ebf\u6027\u5e73\u6ed1\u6ee4\u6ce2"},"\u7ebf\u6027\u5e73\u6ed1\u6ee4\u6ce2"),(0,m.kt)("ol",null,(0,m.kt)("li",{parentName:"ol"},"\u90bb\u57df\u5e73\u5747\u6ee4\u6ce2"),(0,m.kt)("li",{parentName:"ol"},"\u52a0\u6743\u5e73\u5747\u6ee4\u6ce2"),(0,m.kt)("li",{parentName:"ol"},"\u9ad8\u65af\u6ee4\u6ce2")),(0,m.kt)("h5",{id:"\u975e\u7ebf\u6027\u5e73\u6ed1\u6ee4\u6ce2"},"\u975e\u7ebf\u6027\u5e73\u6ed1\u6ee4\u6ce2"),(0,m.kt)("ol",null,(0,m.kt)("li",{parentName:"ol"},"\u4e2d\u503c\u6ee4\u6ce2"),(0,m.kt)("li",{parentName:"ol"},"\u6700\u5927\u503c\u6ee4\u6ce2"),(0,m.kt)("li",{parentName:"ol"},"\u6700\u5c0f\u503c\u6ee4\u6ce2")),(0,m.kt)("h4",{id:"\u9510\u5316\u6ee4\u6ce2"},"\u9510\u5316\u6ee4\u6ce2"),(0,m.kt)("p",null,"\u9510\u5316\u6ee4\u6ce2\u6d88\u9664\u6216\u51cf\u5f31\u56fe\u50cf\u7684\u4f4e\u9891\u5206\u91cf\u4ece\u800c\u589e\u5f3a\u56fe\u50cf\u4e2d\u7269\u4f53\u7684\u8fb9\u7f18\u8f6e\u5ed3\u4fe1\u606f\uff0c\u4f7f\u5f97\u9664\u8fb9\u7f18\u4ee5\u5916\u7684\u50cf\u7d20\u70b9\u7684\u7070\u5ea6\u503c\u8d8b\u5411\u4e8e\u96f6\u3002"),(0,m.kt)("ol",null,(0,m.kt)("li",{parentName:"ol"},"\u68af\u5ea6\u6cd5 "),(0,m.kt)("li",{parentName:"ol"},"\u62c9\u666e\u62c9\u65af\u7b97\u5b50\uff0c\u975e\u7ebf\u6027\u6ee4\u6ce2"),(0,m.kt)("li",{parentName:"ol"},"\u5b9a\u5411\u6ee4\u6ce2\uff1a\u68c0\u6d4b",(0,m.kt)("strong",{parentName:"li"},"\u7279\u5b9a\u65b9\u5411\u8fb9\u7f18"),"\u7684\u6ee4\u6ce2\uff0c\u901a\u5e38",(0,m.kt)("strong",{parentName:"li"},"\u5728\u6a21\u677f\u4e0a\u8868\u73b0\u4e3a\u5728\u8be5\u7279\u5b9a\u65b9\u5411\u4e0a\u6a21\u677f\u503c\u8f83\u5927"),"\u3002")),(0,m.kt)("p",null,"\u4e0b\u9762\u7684\u8868\u683c\u5c55\u793a\u4e86\u6c34\u5e73\u65b9\u5411\u7684\u5b9a\u5411\u9510\u5316\u6a21\u677f"),(0,m.kt)("table",null,(0,m.kt)("thead",{parentName:"table"},(0,m.kt)("tr",{parentName:"thead"},(0,m.kt)("th",{parentName:"tr",align:"center"},"-1"),(0,m.kt)("th",{parentName:"tr",align:"center"},"-1"),(0,m.kt)("th",{parentName:"tr",align:"center"},"-1"))),(0,m.kt)("tbody",{parentName:"table"},(0,m.kt)("tr",{parentName:"tbody"},(0,m.kt)("td",{parentName:"tr",align:"center"},"2"),(0,m.kt)("td",{parentName:"tr",align:"center"},"2"),(0,m.kt)("td",{parentName:"tr",align:"center"},"2")),(0,m.kt)("tr",{parentName:"tbody"},(0,m.kt)("td",{parentName:"tr",align:"center"},"-1"),(0,m.kt)("td",{parentName:"tr",align:"center"},"-1"),(0,m.kt)("td",{parentName:"tr",align:"center"},"-1")))),(0,m.kt)("p",null,"\u4e0b\u9762\u7684\u8868\u683c\u5c55\u793a\u4e86\u5bf9\u89d2\u65b9\u5411\u7684\u5b9a\u5411\u9510\u5316\u6a21\u677f"),(0,m.kt)("table",null,(0,m.kt)("thead",{parentName:"table"},(0,m.kt)("tr",{parentName:"thead"},(0,m.kt)("th",{parentName:"tr",align:"center"},"-1"),(0,m.kt)("th",{parentName:"tr",align:"center"},"2"),(0,m.kt)("th",{parentName:"tr",align:"center"},"-1"))),(0,m.kt)("tbody",{parentName:"table"},(0,m.kt)("tr",{parentName:"tbody"},(0,m.kt)("td",{parentName:"tr",align:"center"},"-1"),(0,m.kt)("td",{parentName:"tr",align:"center"},"2"),(0,m.kt)("td",{parentName:"tr",align:"center"},"-1")),(0,m.kt)("tr",{parentName:"tbody"},(0,m.kt)("td",{parentName:"tr",align:"center"},"-1"),(0,m.kt)("td",{parentName:"tr",align:"center"},"2"),(0,m.kt)("td",{parentName:"tr",align:"center"},"-1")))),(0,m.kt)("h2",{id:"\u7b2c6\u7ae0-\u56fe\u50cf\u9891\u57df\u589e\u5f3a"},"\u7b2c6\u7ae0 \u56fe\u50cf\u9891\u57df\u589e\u5f3a"),(0,m.kt)("p",null,"\u56fe\u50cf\u4ece\u7a7a\u57df\u53d8\u6362\u5230\u9891\u57df\u540e\uff0c",(0,m.kt)("strong",{parentName:"p"},"\u4f4e\u9891\u5206\u91cf\u5bf9\u5e94\u56fe\u50cf\u4e2d\u7070\u5ea6\u503c\u53d8\u5316\u7f13\u6162\u7684\u533a\u57df\uff0c\u53ef\u80fd\u662f\u56fe\u50cf\u7684\u80cc\u666f"),"\uff1b",(0,m.kt)("strong",{parentName:"p"},"\u9ad8\u9891\u5206\u91cf\u8868\u793a\u56fe\u50cf\u4e2d\u7070\u5ea6\u503c\u53d8\u5316\u8fc5\u901f\u7684\u533a\u57df\uff0c\u53ef\u80fd\u662f\u56fe\u50cf\u7684\u566a\u58f0\u6216\u7269\u4f53\u7684\u8fb9\u7f18"),"\u3002"),(0,m.kt)("p",null,"\u5728\u56fe\u50cf\u9891\u8c31\uff08\u7ecf\u8fc7\u4e2d\u5fc3\u504f\u79fb\u7684\uff09\u4e2d\uff0c",(0,m.kt)("strong",{parentName:"p"},"\u4e2d\u5fc3\u4ee3\u8868\u4f4e\u9891\u4fe1\u606f\uff0c\u56db\u5468\u4ee3\u8868\u9ad8\u9891\u4fe1\u606f"),"\u3002"),(0,m.kt)("h3",{id:"\u4f4e\u901a\u6ee4\u6ce2"},"\u4f4e\u901a\u6ee4\u6ce2"),(0,m.kt)("p",null,"\u6291\u5236\u3001\u8870\u51cf\u9ad8\u9891\u5206\u91cf\uff0c\u4fdd\u7559\u4f4e\u9891\u5206\u91cf\u3002"),(0,m.kt)("h4",{id:"\u7406\u60f3\u4f4e\u901a\u6ee4\u6ce2\u5668ilpf"},"\u7406\u60f3\u4f4e\u901a\u6ee4\u6ce2\u5668\uff08ILPF\uff09"),(0,m.kt)("admonition",{type:"tip"},(0,m.kt)("p",{parentName:"admonition"},"ILPF means Ideal Low Pass Filter.")),(0,m.kt)("p",null,(0,m.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_imagesimage-20231205161518110.png",alt:"image-20231205161518110"})),(0,m.kt)("div",{className:"math math-display"},(0,m.kt)("span",{parentName:"div",className:"katex-display"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mtable",{parentName:"semantics",width:"100%"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mrow",{parentName:"mtd"},(0,m.kt)("mi",{parentName:"mrow"},"H"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"u"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"v"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("mrow",{parentName:"mrow"},(0,m.kt)("mo",{parentName:"mrow",fence:"true"},"{"),(0,m.kt)("mtable",{parentName:"mrow",rowspacing:"0.36em",columnalign:"left left",columnspacing:"1em"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("mn",{parentName:"mstyle"},"1"))),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("mrow",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"mrow"},"D"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"u"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"v"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"\u2264"),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"D"),(0,m.kt)("mn",{parentName:"msub"},"0")))))),(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("mn",{parentName:"mstyle"},"0"))),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("mrow",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"mrow"},"D"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"u"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"v"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},">"),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"D"),(0,m.kt)("mn",{parentName:"msub"},"0")))))))))),(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mtext",{parentName:"mtd"},"(14)")))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"H(u,v)=\\begin{cases}1&D(u,v)\\leq D_0\\\\ 0&D(u,v)>D_0\\end{cases}\\tag{14}")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.08125em"}},"H"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"u"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"v"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"="),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"3em",verticalAlign:"-1.25em"}}),(0,m.kt)("span",{parentName:"span",className:"minner"},(0,m.kt)("span",{parentName:"span",className:"mopen delimcenter",style:{top:"0em"}},(0,m.kt)("span",{parentName:"span",className:"delimsizing size4"},"{")),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mtable"},(0,m.kt)("span",{parentName:"span",className:"col-align-l"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.69em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-3.69em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.008em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"1"))),(0,m.kt)("span",{parentName:"span",style:{top:"-2.25em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.008em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"0")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.19em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"arraycolsep",style:{width:"1em"}}),(0,m.kt)("span",{parentName:"span",className:"col-align-l"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.69em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-3.69em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.008em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02778em"}},"D"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"u"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"v"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"\u2264"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02778em"}},"D"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0278em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"0")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))))),(0,m.kt)("span",{parentName:"span",style:{top:"-2.25em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.008em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02778em"}},"D"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"u"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"v"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},">"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02778em"}},"D"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0278em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"0")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"}))))))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.19em"}},(0,m.kt)("span",{parentName:"span"}))))))),(0,m.kt)("span",{parentName:"span",className:"mclose nulldelimiter"}))),(0,m.kt)("span",{parentName:"span",className:"tag"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"3em",verticalAlign:"-1.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord text"},(0,m.kt)("span",{parentName:"span",className:"mord"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"14")),(0,m.kt)("span",{parentName:"span",className:"mord"},")"))))))),(0,m.kt)("div",{className:"math math-display"},(0,m.kt)("span",{parentName:"div",className:"katex-display"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mtable",{parentName:"semantics",width:"100%"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mrow",{parentName:"mtd"},(0,m.kt)("mi",{parentName:"mrow"},"D"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"u"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"v"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("msqrt",{parentName:"mrow"},(0,m.kt)("mrow",{parentName:"msqrt"},(0,m.kt)("msup",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msup"},"u"),(0,m.kt)("mn",{parentName:"msup"},"2")),(0,m.kt)("mo",{parentName:"mrow"},"+"),(0,m.kt)("msup",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msup"},"v"),(0,m.kt)("mn",{parentName:"msup"},"2")))))),(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mtext",{parentName:"mtd"},"(15)")))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"D(u,v)=\\sqrt{u^2+v^2}\\tag{15}")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02778em"}},"D"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"u"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"v"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"="),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1.24em",verticalAlign:"-0.1777em"}}),(0,m.kt)("span",{parentName:"span",className:"mord sqrt"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.0623em"}},(0,m.kt)("span",{parentName:"span",className:"svg-align",style:{top:"-3.2em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.2em"}}),(0,m.kt)("span",{parentName:"span",className:"mord",style:{paddingLeft:"1em"}},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"u"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.7401em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.989em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"2")))))))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"+"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"v"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.7401em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.989em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"2")))))))))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.0223em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.2em"}}),(0,m.kt)("span",{parentName:"span",className:"hide-tail",style:{minWidth:"1.02em",height:"1.28em"}},(0,m.kt)("svg",{parentName:"span",xmlns:"http://www.w3.org/2000/svg",width:"400em",height:"1.28em",viewBox:"0 0 400000 1296",preserveAspectRatio:"xMinYMin slice"},(0,m.kt)("path",{parentName:"svg",d:"M263,681c0.7,0,18,39.7,52,119\nc34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120\nc340,-704.7,510.7,-1060.3,512,-1067\nl0 -0\nc4.7,-7.3,11,-11,19,-11\nH40000v40H1012.3\ns-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232\nc-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1\ns-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26\nc-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z\nM1001 80h400000v40h-400000z"}))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.1777em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"tag"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1.3123em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord text"},(0,m.kt)("span",{parentName:"span",className:"mord"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"15")),(0,m.kt)("span",{parentName:"span",className:"mord"},")"))))))),(0,m.kt)("p",null,"\u5728\u622a\u6b62\u9891\u7387",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"D"),(0,m.kt)("mn",{parentName:"msub"},"0"))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"D_0")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.8333em",verticalAlign:"-0.15em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02778em"}},"D"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0278em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"0")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))))))),"\u5904\u5782\u76f4\u622a\u6b62\uff0c\u901a\u8fc7\u9891\u7387\u548c\u622a\u6b62\u9891\u7387\u5728",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"D"),(0,m.kt)("mn",{parentName:"msub"},"0"))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"D_0")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.8333em",verticalAlign:"-0.15em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02778em"}},"D"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0278em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"0")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))))))),"\u5904\u5177\u6709\u4e0d\u8fde\u7eed\u6027\uff0c\u901a\u5e26\u548c\u963b\u5e26\u4e4b\u95f4\u6ca1\u6709\u8fc7\u6e21\uff0c\u4f1a\u4ea7\u751f",(0,m.kt)("strong",{parentName:"p"},"\u65e0\u9650\u7684\u632f\u94c3"),"\u6548\u5e94\u3002"),(0,m.kt)("h4",{id:"\u5df4\u7279\u6c83\u65af\u4f4e\u901a\u6ee4\u6ce2\u5668blpf"},"\u5df4\u7279\u6c83\u65af\u4f4e\u901a\u6ee4\u6ce2\u5668\uff08BLPF\uff09"),(0,m.kt)("p",null,"\u901a\u5e26\u4e0e\u963b\u5e26\u4e4b\u95f4\u8fc7\u5ea6\u5e73\u5766\uff0c\u901a\u8fc7\u9891\u7387\u548c\u622a\u6b62\u9891\u7387\u4e4b\u95f4\u6ca1\u6709\u660e\u663e\u7684\u4e0d\u8fde\u7eed\u6027\uff0c",(0,m.kt)("strong",{parentName:"p"},"\u4e0d\u4f1a\u51fa\u73b0\u632f\u94c3\u6548\u5e94"),"\u3002"),(0,m.kt)("div",{className:"math math-display"},(0,m.kt)("span",{parentName:"div",className:"katex-display"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mtable",{parentName:"semantics",width:"100%"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mrow",{parentName:"mtd"},(0,m.kt)("mi",{parentName:"mrow"},"H"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"u"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"v"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("mfrac",{parentName:"mrow"},(0,m.kt)("mn",{parentName:"mfrac"},"1"),(0,m.kt)("mrow",{parentName:"mfrac"},(0,m.kt)("mn",{parentName:"mrow"},"1"),(0,m.kt)("mo",{parentName:"mrow"},"+"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("msqrt",{parentName:"mrow"},(0,m.kt)("mn",{parentName:"msqrt"},"2")),(0,m.kt)("mo",{parentName:"mrow"},"\u2212"),(0,m.kt)("mn",{parentName:"mrow"},"1"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"["),(0,m.kt)("mfrac",{parentName:"mrow"},(0,m.kt)("mrow",{parentName:"mfrac"},(0,m.kt)("mi",{parentName:"mrow"},"D"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"u"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"v"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,m.kt)("msub",{parentName:"mfrac"},(0,m.kt)("mi",{parentName:"msub"},"D"),(0,m.kt)("mn",{parentName:"msub"},"0"))),(0,m.kt)("msup",{parentName:"mrow"},(0,m.kt)("mo",{parentName:"msup",stretchy:"false"},"]"),(0,m.kt)("mrow",{parentName:"msup"},(0,m.kt)("mn",{parentName:"mrow"},"2"),(0,m.kt)("mi",{parentName:"mrow"},"n"))))))),(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mtext",{parentName:"mtd"},"(16)")))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"H(u,v)=\\frac{1}{1+(\\sqrt{2}-1)[\\frac{D(u,v)}{D_0}]^{2n}}\\tag{16}")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.08125em"}},"H"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"u"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"v"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"="),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"2.6665em",verticalAlign:"-1.3451em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mopen nulldelimiter"}),(0,m.kt)("span",{parentName:"span",className:"mfrac"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.3214em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.11em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.01em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"1"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"+"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord sqrt"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.9072em"}},(0,m.kt)("span",{parentName:"span",className:"svg-align",style:{top:"-3em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord",style:{paddingLeft:"0.833em"}},(0,m.kt)("span",{parentName:"span",className:"mord"},"2"))),(0,m.kt)("span",{parentName:"span",style:{top:"-2.8672em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"hide-tail",style:{minWidth:"0.853em",height:"1.08em"}},(0,m.kt)("svg",{parentName:"span",xmlns:"http://www.w3.org/2000/svg",width:"400em",height:"1.08em",viewBox:"0 0 400000 1080",preserveAspectRatio:"xMinYMin slice"},(0,m.kt)("path",{parentName:"svg",d:"M95,702\nc-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14\nc0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54\nc44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10\ns173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429\nc69,-144,104.5,-217.7,106.5,-221\nl0 -0\nc5.3,-9.3,12,-14,20,-14\nH400000v40H845.2724\ns-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7\nc-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z\nM834 80h400000v40h-400000z"}))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.1328em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"\u2212"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"1"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"["),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mopen nulldelimiter"}),(0,m.kt)("span",{parentName:"span",className:"mfrac"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.01em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.655em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.02778em"}},"D"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3173em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.357em",marginLeft:"-0.0278em",marginRight:"0.0714em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.5em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size3 size1 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"0")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.143em"}},(0,m.kt)("span",{parentName:"span"}))))))))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.23em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"frac-line",style:{borderBottomWidth:"0.04em"}})),(0,m.kt)("span",{parentName:"span",style:{top:"-3.485em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.02778em"}},"D"),(0,m.kt)("span",{parentName:"span",className:"mopen mtight"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"u"),(0,m.kt)("span",{parentName:"span",className:"mpunct mtight"},","),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.03588em"}},"v"),(0,m.kt)("span",{parentName:"span",className:"mclose mtight"},")"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.4451em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"mclose nulldelimiter"})),(0,m.kt)("span",{parentName:"span",className:"mclose"},(0,m.kt)("span",{parentName:"span",className:"mclose"},"]"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.7401em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.989em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"2"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"n"))))))))))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.24em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.01em"}}),(0,m.kt)("span",{parentName:"span",className:"frac-line",style:{borderBottomWidth:"0.04em"}})),(0,m.kt)("span",{parentName:"span",style:{top:"-3.687em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.01em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"1")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.3451em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"mclose nulldelimiter"}))),(0,m.kt)("span",{parentName:"span",className:"tag"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"2.6665em",verticalAlign:"-1.3451em"}}),(0,m.kt)("span",{parentName:"span",className:"mord text"},(0,m.kt)("span",{parentName:"span",className:"mord"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"16")),(0,m.kt)("span",{parentName:"span",className:"mord"},")"))))))),(0,m.kt)("p",null,"\u5176\u4e2d\uff0c\u53d6",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"H"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"u"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"v"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"H(u,v)")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.08125em"}},"H"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"u"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"v"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"))))),"\u4e0b\u964d\u5230\u6700\u5927\u503c\u76840.707\u65f6\u7684",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"D"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"u"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"v"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"D(u,v)")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02778em"}},"D"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"u"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"v"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"))))),"\u4f5c\u4e3a\u622a\u6b62\u9891\u7387",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"D"),(0,m.kt)("mn",{parentName:"msub"},"0"))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"D_0")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.8333em",verticalAlign:"-0.15em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02778em"}},"D"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0278em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"0")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))))))),"\u3002"),(0,m.kt)("p",null,"\u5373\u5f53",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"D"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"u"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"v"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"D(u,v)")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02778em"}},"D"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"u"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"v"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"))))),"\u8fbe\u5230\u622a\u6b62\u9891\u7387\u65f6\uff0c",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mfrac",{parentName:"mrow"},(0,m.kt)("mrow",{parentName:"mfrac"},(0,m.kt)("mi",{parentName:"mrow"},"D"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"u"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"v"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,m.kt)("msub",{parentName:"mfrac"},(0,m.kt)("mi",{parentName:"msub"},"D"),(0,m.kt)("mn",{parentName:"msub"},"0"))),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("mn",{parentName:"mrow"},"1")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"\\frac{D(u,v)}{D_0}=1")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1.4551em",verticalAlign:"-0.4451em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mopen nulldelimiter"}),(0,m.kt)("span",{parentName:"span",className:"mfrac"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.01em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.655em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.02778em"}},"D"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3173em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.357em",marginLeft:"-0.0278em",marginRight:"0.0714em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.5em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size3 size1 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"0")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.143em"}},(0,m.kt)("span",{parentName:"span"}))))))))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.23em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"frac-line",style:{borderBottomWidth:"0.04em"}})),(0,m.kt)("span",{parentName:"span",style:{top:"-3.485em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.02778em"}},"D"),(0,m.kt)("span",{parentName:"span",className:"mopen mtight"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"u"),(0,m.kt)("span",{parentName:"span",className:"mpunct mtight"},","),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.03588em"}},"v"),(0,m.kt)("span",{parentName:"span",className:"mclose mtight"},")"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.4451em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"mclose nulldelimiter"})),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"="),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6444em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"1"))))),"\uff0c\u6b64\u65f6",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"H"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"u"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"v"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("mn",{parentName:"mrow"},"0.707")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"H(u,v)=0.707")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.08125em"}},"H"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"u"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"v"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"="),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6444em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"0.707"))))),"\u3002"),(0,m.kt)("h4",{id:"\u6307\u6570\u4f4e\u901a\u6ee4\u6ce2\u5668elpf"},"\u6307\u6570\u4f4e\u901a\u6ee4\u6ce2\u5668\uff08ELPF\uff09"),(0,m.kt)("p",null,"\u4e00\u822c\u60c5\u51b5\u4e0b\uff0c\u53d6",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"H"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"u"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"v"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"H(u,v)")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.08125em"}},"H"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"u"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"v"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"))))),"\u4e0b\u964d\u5230\u6700\u5927\u503c\u76841/2\u65f6\u7684",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"D"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"u"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"v"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"D(u,v)")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02778em"}},"D"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"u"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"v"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"))))),"\u4f5c\u4e3a\u622a\u6b62\u9891\u7387\u3002"),(0,m.kt)("div",{className:"math math-display"},(0,m.kt)("span",{parentName:"div",className:"katex-display"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mtable",{parentName:"semantics",width:"100%"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mrow",{parentName:"mtd"},(0,m.kt)("mi",{parentName:"mrow"},"H"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"u"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"v"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("msup",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msup"},"e"),(0,m.kt)("mrow",{parentName:"msup"},(0,m.kt)("mo",{parentName:"mrow"},"\u2212"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"["),(0,m.kt)("mfrac",{parentName:"mrow"},(0,m.kt)("mrow",{parentName:"mfrac"},(0,m.kt)("mi",{parentName:"mrow"},"D"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"u"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"v"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,m.kt)("msub",{parentName:"mfrac"},(0,m.kt)("mi",{parentName:"msub"},"D"),(0,m.kt)("mn",{parentName:"msub"},"0"))),(0,m.kt)("msup",{parentName:"mrow"},(0,m.kt)("mo",{parentName:"msup",stretchy:"false"},"]"),(0,m.kt)("mi",{parentName:"msup"},"n")))))),(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mtext",{parentName:"mtd"},"(17)")))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"H(u,v)=e^{-[\\frac{D(u,v)}{D_0}]^n}\\tag{17}")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.08125em"}},"H"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"u"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"v"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"="),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1.2248em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"e"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.2248em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-3.4984em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"\u2212"),(0,m.kt)("span",{parentName:"span",className:"mopen mtight"},"["),(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mopen nulldelimiter sizing reset-size3 size6"}),(0,m.kt)("span",{parentName:"span",className:"mfrac"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.0378em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.656em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size3 size1 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.02778em"}},"D"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3448em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.3448em",marginLeft:"-0.0278em",marginRight:"0.1em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.6444em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"0"))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.2996em"}},(0,m.kt)("span",{parentName:"span"}))))))))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.2255em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"frac-line mtight",style:{borderBottomWidth:"0.049em"}})),(0,m.kt)("span",{parentName:"span",style:{top:"-3.5021em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size3 size1 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.02778em"}},"D"),(0,m.kt)("span",{parentName:"span",className:"mopen mtight"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"u"),(0,m.kt)("span",{parentName:"span",className:"mpunct mtight"},","),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.03588em"}},"v"),(0,m.kt)("span",{parentName:"span",className:"mclose mtight"},")"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.558em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"mclose nulldelimiter sizing reset-size3 size6"})),(0,m.kt)("span",{parentName:"span",className:"mclose mtight"},(0,m.kt)("span",{parentName:"span",className:"mclose mtight"},"]"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.7385em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.931em",marginRight:"0.0714em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.5em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size3 size1 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"n"))))))))))))))))),(0,m.kt)("span",{parentName:"span",className:"tag"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1.4748em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord text"},(0,m.kt)("span",{parentName:"span",className:"mord"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"17")),(0,m.kt)("span",{parentName:"span",className:"mord"},")"))))))),(0,m.kt)("p",null,"\u622a\u6b62\u9891\u7387\u548c\u901a\u8fc7\u9891\u7387\u4e4b\u95f4\u5177\u6709\u66f4\u5149\u6ed1\u7684\u8fc7\u6e21\uff0c",(0,m.kt)("strong",{parentName:"p"},"\u6ca1\u6709\u632f\u94c3\u73b0\u8c61"),"\u3002\u4e14\u6307\u6570\u4f4e\u901a\u6ee4\u6ce2\u5668\u6bd4\u5df4\u7279\u6c83\u65af\u4f4e\u901a\u6ee4\u6ce2\u5668",(0,m.kt)("strong",{parentName:"p"},"\u8870\u51cf\u66f4\u5feb"),"\uff0c\u5904\u7406\u540e\u7684\u56fe\u50cf",(0,m.kt)("strong",{parentName:"p"},"\u66f4\u6a21\u7cca"),"\u3002"),(0,m.kt)("h4",{id:"\u68af\u5f62\u4f4e\u901a\u6ee4\u6ce2\u5668tlpf"},"\u68af\u5f62\u4f4e\u901a\u6ee4\u6ce2\u5668\uff08TLPF\uff09"),(0,m.kt)("p",null,"\u7531\u4e8e\u5728",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"D"),(0,m.kt)("mn",{parentName:"msub"},"0"))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"D_0")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.8333em",verticalAlign:"-0.15em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02778em"}},"D"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0278em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"0")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))))))),"\u5c3e\u90e8\u5305\u542b\u9ad8\u9891\u5206\u91cf",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"D"),(0,m.kt)("mn",{parentName:"msub"},"1"))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"D_1")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.8333em",verticalAlign:"-0.15em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02778em"}},"D"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0278em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"1")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))))))),"\uff0c\u5904\u7406\u540e\u56fe\u50cf\u7684\u6e05\u6670\u5ea6\u8f83\u7406\u60f3\u4f4e\u901a\u6ee4\u6ce2\u5668\u6709\u6240\u6539\u5584\uff0c\u4f46",(0,m.kt)("strong",{parentName:"p"},"\u4f1a\u51fa\u73b0\u632f\u94c3\u6548\u5e94"),"\uff0c"),(0,m.kt)("div",{className:"math math-display"},(0,m.kt)("span",{parentName:"div",className:"katex-display"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mtable",{parentName:"semantics",width:"100%"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mrow",{parentName:"mtd"},(0,m.kt)("mi",{parentName:"mrow"},"H"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"u"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"v"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("mrow",{parentName:"mrow"},(0,m.kt)("mo",{parentName:"mrow",fence:"true"},"{"),(0,m.kt)("mtable",{parentName:"mrow",rowspacing:"0.36em",columnalign:"left left",columnspacing:"1em"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("mn",{parentName:"mstyle"},"1"))),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("mrow",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"mrow"},"D"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"u"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"v"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"<"),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"D"),(0,m.kt)("mn",{parentName:"msub"},"0")))))),(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("mrow",{parentName:"mstyle"})))),(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("mfrac",{parentName:"mstyle"},(0,m.kt)("mrow",{parentName:"mfrac"},(0,m.kt)("mi",{parentName:"mrow"},"D"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"u"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"v"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"\u2212"),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"D"),(0,m.kt)("mn",{parentName:"msub"},"1"))),(0,m.kt)("mrow",{parentName:"mfrac"},(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"D"),(0,m.kt)("mn",{parentName:"msub"},"0")),(0,m.kt)("mo",{parentName:"mrow"},"\u2212"),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"D"),(0,m.kt)("mn",{parentName:"msub"},"1")))))),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("mrow",{parentName:"mstyle"},(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"D"),(0,m.kt)("mn",{parentName:"msub"},"0")),(0,m.kt)("mo",{parentName:"mrow"},"\u2264"),(0,m.kt)("mi",{parentName:"mrow"},"D"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"u"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"v"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"\u2264"),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"D"),(0,m.kt)("mn",{parentName:"msub"},"1")))))),(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("mrow",{parentName:"mstyle"})))),(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("mn",{parentName:"mstyle"},"0"))),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("mrow",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"mrow"},"D"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"u"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"v"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},">"),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"D"),(0,m.kt)("mn",{parentName:"msub"},"1")))))))))),(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mtext",{parentName:"mtd"},"(18)")))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"H(u,v)=\\begin{cases}1&D(u,v)<D_0\\\\ \\\\ \\frac{D(u,v)-D_1}{D_0-D_1}&D_0\\leq D(u,v)\\leq D_1\\\\ \\\\ 0&D(u,v)>D_1\\end{cases}\\tag{18}")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.08125em"}},"H"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"u"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"v"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"="),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"7.2151em",verticalAlign:"-3.3576em"}}),(0,m.kt)("span",{parentName:"span",className:"minner"},(0,m.kt)("span",{parentName:"span",className:"mopen"},(0,m.kt)("span",{parentName:"span",className:"delimsizing mult"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"3.85em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-1.366em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.816em"}}),(0,m.kt)("span",{parentName:"span",className:"delimsizinginner delim-size4"},(0,m.kt)("span",{parentName:"span"},"\u23a9"))),(0,m.kt)("span",{parentName:"span",style:{top:"-1.358em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.816em"}}),(0,m.kt)("span",{parentName:"span",style:{height:"1.816em",width:"0.8889em"}},(0,m.kt)("svg",{parentName:"span",xmlns:"http://www.w3.org/2000/svg",width:"0.8889em",height:"1.816em",style:{width:"0.8889em"},viewBox:"0 0 888.89 1816",preserveAspectRatio:"xMinYMin"},(0,m.kt)("path",{parentName:"svg",d:"M384 0 H504 V1816 H384z M384 0 H504 V1816 H384z"})))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.816em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.816em"}}),(0,m.kt)("span",{parentName:"span",className:"delimsizinginner delim-size4"},(0,m.kt)("span",{parentName:"span"},"\u23a8"))),(0,m.kt)("span",{parentName:"span",style:{top:"-4.958em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.816em"}}),(0,m.kt)("span",{parentName:"span",style:{height:"1.816em",width:"0.8889em"}},(0,m.kt)("svg",{parentName:"span",xmlns:"http://www.w3.org/2000/svg",width:"0.8889em",height:"1.816em",style:{width:"0.8889em"},viewBox:"0 0 888.89 1816",preserveAspectRatio:"xMinYMin"},(0,m.kt)("path",{parentName:"svg",d:"M384 0 H504 V1816 H384z M384 0 H504 V1816 H384z"})))),(0,m.kt)("span",{parentName:"span",style:{top:"-6.766em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.816em"}}),(0,m.kt)("span",{parentName:"span",className:"delimsizinginner delim-size4"},(0,m.kt)("span",{parentName:"span"},"\u23a7")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"3.35em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mtable"},(0,m.kt)("span",{parentName:"span",className:"col-align-l"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"3.8576em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-5.8596em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.01em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"1"))),(0,m.kt)("span",{parentName:"span",style:{top:"-4.4196em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.01em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"})),(0,m.kt)("span",{parentName:"span",style:{top:"-2.9776em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.01em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mopen nulldelimiter"}),(0,m.kt)("span",{parentName:"span",className:"mfrac"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.01em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.655em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.02778em"}},"D"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3173em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.357em",marginLeft:"-0.0278em",marginRight:"0.0714em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.5em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size3 size1 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"0")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.143em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mbin mtight"},"\u2212"),(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.02778em"}},"D"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3173em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.357em",marginLeft:"-0.0278em",marginRight:"0.0714em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.5em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size3 size1 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"1")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.143em"}},(0,m.kt)("span",{parentName:"span"}))))))))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.23em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"frac-line",style:{borderBottomWidth:"0.04em"}})),(0,m.kt)("span",{parentName:"span",style:{top:"-3.485em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.02778em"}},"D"),(0,m.kt)("span",{parentName:"span",className:"mopen mtight"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"u"),(0,m.kt)("span",{parentName:"span",className:"mpunct mtight"},","),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.03588em"}},"v"),(0,m.kt)("span",{parentName:"span",className:"mclose mtight"},")"),(0,m.kt)("span",{parentName:"span",className:"mbin mtight"},"\u2212"),(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.02778em"}},"D"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3173em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.357em",marginLeft:"-0.0278em",marginRight:"0.0714em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.5em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size3 size1 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"1")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.143em"}},(0,m.kt)("span",{parentName:"span"})))))))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.4451em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"mclose nulldelimiter"})))),(0,m.kt)("span",{parentName:"span",style:{top:"-1.5245em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.01em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"})),(0,m.kt)("span",{parentName:"span",style:{top:"-0.0845em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.01em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"0")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"3.3575em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"arraycolsep",style:{width:"1em"}}),(0,m.kt)("span",{parentName:"span",className:"col-align-l"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"3.8576em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-5.8596em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.01em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02778em"}},"D"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"u"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"v"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"<"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02778em"}},"D"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0278em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"0")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))))),(0,m.kt)("span",{parentName:"span",style:{top:"-2.9776em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.01em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02778em"}},"D"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0278em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"0")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"\u2264"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02778em"}},"D"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"u"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"v"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"\u2264"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02778em"}},"D"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0278em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"1")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))))),(0,m.kt)("span",{parentName:"span",style:{top:"-0.0844em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.01em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02778em"}},"D"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"u"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"v"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},">"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02778em"}},"D"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0278em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"1")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"}))))))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"3.3576em"}},(0,m.kt)("span",{parentName:"span"}))))))),(0,m.kt)("span",{parentName:"span",className:"mclose nulldelimiter"}))),(0,m.kt)("span",{parentName:"span",className:"tag"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"7.2151em",verticalAlign:"-3.3576em"}}),(0,m.kt)("span",{parentName:"span",className:"mord text"},(0,m.kt)("span",{parentName:"span",className:"mord"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"18")),(0,m.kt)("span",{parentName:"span",className:"mord"},")"))))))),(0,m.kt)("h3",{id:"\u9ad8\u901a\u6ee4\u6ce2"},"\u9ad8\u901a\u6ee4\u6ce2"),(0,m.kt)("p",null,"\u6291\u5236\u4f4e\u9891\u5206\u91cf\uff0c\u4fdd\u7559\u9ad8\u9891\u5206\u91cf\u3002"),(0,m.kt)("h4",{id:"\u7406\u60f3\u9ad8\u901a\u6ee4\u6ce2\u5668ihpf"},"\u7406\u60f3\u9ad8\u901a\u6ee4\u6ce2\u5668\uff08IHPF\uff09"),(0,m.kt)("div",{className:"math math-display"},(0,m.kt)("span",{parentName:"div",className:"katex-display"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mtable",{parentName:"semantics",width:"100%"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mrow",{parentName:"mtd"},(0,m.kt)("mi",{parentName:"mrow"},"H"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"u"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"v"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("mrow",{parentName:"mrow"},(0,m.kt)("mo",{parentName:"mrow",fence:"true"},"{"),(0,m.kt)("mtable",{parentName:"mrow",rowspacing:"0.36em",columnalign:"left left",columnspacing:"1em"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("mn",{parentName:"mstyle"},"1"))),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("mrow",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"mrow"},"D"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"u"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"v"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},">"),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"D"),(0,m.kt)("mn",{parentName:"msub"},"0")))))),(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("mn",{parentName:"mstyle"},"0"))),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("mrow",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"mrow"},"D"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"u"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"v"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"\u2264"),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"D"),(0,m.kt)("mn",{parentName:"msub"},"0")))))))))),(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mtext",{parentName:"mtd"},"(19)")))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"H(u,v)=\\begin{cases}1&D(u,v)>D_0\\\\ 0&D(u,v)\\leq D_0\\end{cases}\\tag{19}")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.08125em"}},"H"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"u"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"v"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"="),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"3em",verticalAlign:"-1.25em"}}),(0,m.kt)("span",{parentName:"span",className:"minner"},(0,m.kt)("span",{parentName:"span",className:"mopen delimcenter",style:{top:"0em"}},(0,m.kt)("span",{parentName:"span",className:"delimsizing size4"},"{")),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mtable"},(0,m.kt)("span",{parentName:"span",className:"col-align-l"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.69em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-3.69em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.008em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"1"))),(0,m.kt)("span",{parentName:"span",style:{top:"-2.25em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.008em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"0")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.19em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"arraycolsep",style:{width:"1em"}}),(0,m.kt)("span",{parentName:"span",className:"col-align-l"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.69em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-3.69em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.008em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02778em"}},"D"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"u"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"v"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},">"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02778em"}},"D"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0278em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"0")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))))),(0,m.kt)("span",{parentName:"span",style:{top:"-2.25em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.008em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02778em"}},"D"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"u"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"v"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"\u2264"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02778em"}},"D"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0278em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"0")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"}))))))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.19em"}},(0,m.kt)("span",{parentName:"span"}))))))),(0,m.kt)("span",{parentName:"span",className:"mclose nulldelimiter"}))),(0,m.kt)("span",{parentName:"span",className:"tag"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"3em",verticalAlign:"-1.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord text"},(0,m.kt)("span",{parentName:"span",className:"mord"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"19")),(0,m.kt)("span",{parentName:"span",className:"mord"},")"))))))),(0,m.kt)("p",null,"\u6027\u8d28\u4e0e\u7406\u60f3\u4f4e\u901a\u6ee4\u6ce2\u5668\u4e00\u6837\uff0c\u5782\u76f4\u622a\u65ad\uff0c\u5177\u6709",(0,m.kt)("strong",{parentName:"p"},"\u65e0\u9650\u632f\u94c3"),"\u6548\u5e94\u3002"),(0,m.kt)("h4",{id:"\u5df4\u7279\u6c83\u65af\u9ad8\u901a\u6ee4\u6ce2\u5668bhpf"},"\u5df4\u7279\u6c83\u65af\u9ad8\u901a\u6ee4\u6ce2\u5668\uff08BHPF\uff09"),(0,m.kt)("div",{className:"math math-display"},(0,m.kt)("span",{parentName:"div",className:"katex-display"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mtable",{parentName:"semantics",width:"100%"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mrow",{parentName:"mtd"},(0,m.kt)("mi",{parentName:"mrow"},"H"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"u"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"v"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("mfrac",{parentName:"mrow"},(0,m.kt)("mn",{parentName:"mfrac"},"1"),(0,m.kt)("mrow",{parentName:"mfrac"},(0,m.kt)("mn",{parentName:"mrow"},"1"),(0,m.kt)("mo",{parentName:"mrow"},"+"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("msqrt",{parentName:"mrow"},(0,m.kt)("mn",{parentName:"msqrt"},"2")),(0,m.kt)("mo",{parentName:"mrow"},"\u2212"),(0,m.kt)("mn",{parentName:"mrow"},"1"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"["),(0,m.kt)("mfrac",{parentName:"mrow"},(0,m.kt)("msub",{parentName:"mfrac"},(0,m.kt)("mi",{parentName:"msub"},"D"),(0,m.kt)("mn",{parentName:"msub"},"0")),(0,m.kt)("mrow",{parentName:"mfrac"},(0,m.kt)("mi",{parentName:"mrow"},"D"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"u"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"v"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"))),(0,m.kt)("msup",{parentName:"mrow"},(0,m.kt)("mo",{parentName:"msup",stretchy:"false"},"]"),(0,m.kt)("mrow",{parentName:"msup"},(0,m.kt)("mn",{parentName:"mrow"},"2"),(0,m.kt)("mi",{parentName:"mrow"},"n"))))))),(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mtext",{parentName:"mtd"},"(20)")))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"H(u,v)=\\frac{1}{1+(\\sqrt{2}-1)[\\frac{D_0}{D(u,v)}]^{2n}}\\tag{20}")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.08125em"}},"H"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"u"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"v"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"="),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"2.6387em",verticalAlign:"-1.3172em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mopen nulldelimiter"}),(0,m.kt)("span",{parentName:"span",className:"mfrac"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.3214em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.2028em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"1"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"+"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord sqrt"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.9072em"}},(0,m.kt)("span",{parentName:"span",className:"svg-align",style:{top:"-3em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord",style:{paddingLeft:"0.833em"}},(0,m.kt)("span",{parentName:"span",className:"mord"},"2"))),(0,m.kt)("span",{parentName:"span",style:{top:"-2.8672em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"hide-tail",style:{minWidth:"0.853em",height:"1.08em"}},(0,m.kt)("svg",{parentName:"span",xmlns:"http://www.w3.org/2000/svg",width:"400em",height:"1.08em",viewBox:"0 0 400000 1080",preserveAspectRatio:"xMinYMin slice"},(0,m.kt)("path",{parentName:"svg",d:"M95,702\nc-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14\nc0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54\nc44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10\ns173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429\nc69,-144,104.5,-217.7,106.5,-221\nl0 -0\nc5.3,-9.3,12,-14,20,-14\nH400000v40H845.2724\ns-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7\nc-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z\nM834 80h400000v40h-400000z"}))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.1328em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"\u2212"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"1"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"["),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mopen nulldelimiter"}),(0,m.kt)("span",{parentName:"span",className:"mfrac"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.8884em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.655em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.02778em"}},"D"),(0,m.kt)("span",{parentName:"span",className:"mopen mtight"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"u"),(0,m.kt)("span",{parentName:"span",className:"mpunct mtight"},","),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.03588em"}},"v"),(0,m.kt)("span",{parentName:"span",className:"mclose mtight"},")")))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.23em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"frac-line",style:{borderBottomWidth:"0.04em"}})),(0,m.kt)("span",{parentName:"span",style:{top:"-3.4101em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.02778em"}},"D"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3173em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.357em",marginLeft:"-0.0278em",marginRight:"0.0714em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.5em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size3 size1 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"0")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.143em"}},(0,m.kt)("span",{parentName:"span"})))))))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.52em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"mclose nulldelimiter"})),(0,m.kt)("span",{parentName:"span",className:"mclose"},(0,m.kt)("span",{parentName:"span",className:"mclose"},"]"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.7401em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.989em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"2"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"n"))))))))))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.23em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"frac-line",style:{borderBottomWidth:"0.04em"}})),(0,m.kt)("span",{parentName:"span",style:{top:"-3.677em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"1")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.3172em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"mclose nulldelimiter"}))),(0,m.kt)("span",{parentName:"span",className:"tag"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"2.6387em",verticalAlign:"-1.3172em"}}),(0,m.kt)("span",{parentName:"span",className:"mord text"},(0,m.kt)("span",{parentName:"span",className:"mord"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"20")),(0,m.kt)("span",{parentName:"span",className:"mord"},")"))))))),(0,m.kt)("p",null,"\u901a\u5e38\u91c7\u53d6",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"H"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"u"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"v"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"H(u,v)")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.08125em"}},"H"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"u"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"v"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"))))),"\u4e0b\u964d\u5230\u6700\u5927\u503c\u76840.707\u65f6\u7684",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"D"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"u"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"v"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"D(u,v)")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02778em"}},"D"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"u"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"v"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"))))),"\u4f5c\u4e3a\u622a\u6b62\u9891\u7387\uff0c",(0,m.kt)("strong",{parentName:"p"},"\u6ca1\u6709\u632f\u94c3\u6548\u5e94"),"\u3002"),(0,m.kt)("h4",{id:"\u6307\u6570\u9ad8\u901a\u6ee4\u6ce2\u5668ehpf"},"\u6307\u6570\u9ad8\u901a\u6ee4\u6ce2\u5668\uff08EHPF\uff09"),(0,m.kt)("div",{className:"math math-display"},(0,m.kt)("span",{parentName:"div",className:"katex-display"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mtable",{parentName:"semantics",width:"100%"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mrow",{parentName:"mtd"},(0,m.kt)("mi",{parentName:"mrow"},"H"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"u"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"v"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("msup",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msup"},"e"),(0,m.kt)("mrow",{parentName:"msup"},(0,m.kt)("mo",{parentName:"mrow"},"\u2212"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"["),(0,m.kt)("mfrac",{parentName:"mrow"},(0,m.kt)("msub",{parentName:"mfrac"},(0,m.kt)("mi",{parentName:"msub"},"D"),(0,m.kt)("mn",{parentName:"msub"},"0")),(0,m.kt)("mrow",{parentName:"mfrac"},(0,m.kt)("mi",{parentName:"mrow"},"D"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"u"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"v"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"))),(0,m.kt)("msup",{parentName:"mrow"},(0,m.kt)("mo",{parentName:"msup",stretchy:"false"},"]"),(0,m.kt)("mi",{parentName:"msup"},"n")))))),(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mtext",{parentName:"mtd"},"(21)")))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"H(u,v)=e^{-[\\frac{D_0}{D(u,v)}]^n}\\tag{21}")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.08125em"}},"H"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"u"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"v"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"="),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1.2021em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"e"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.2021em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-3.4842em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"\u2212"),(0,m.kt)("span",{parentName:"span",className:"mopen mtight"},"["),(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mopen nulldelimiter sizing reset-size3 size6"}),(0,m.kt)("span",{parentName:"span",className:"mfrac"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.0256em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.6408em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size3 size1 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.02778em"}},"D"),(0,m.kt)("span",{parentName:"span",className:"mopen mtight"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"u"),(0,m.kt)("span",{parentName:"span",className:"mpunct mtight"},","),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.03588em"}},"v"),(0,m.kt)("span",{parentName:"span",className:"mclose mtight"},")")))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.2255em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"frac-line mtight",style:{borderBottomWidth:"0.049em"}})),(0,m.kt)("span",{parentName:"span",style:{top:"-3.5375em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size3 size1 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.02778em"}},"D"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3448em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.3448em",marginLeft:"-0.0278em",marginRight:"0.1em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.6444em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"0"))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.2996em"}},(0,m.kt)("span",{parentName:"span"})))))))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.5378em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"mclose nulldelimiter sizing reset-size3 size6"})),(0,m.kt)("span",{parentName:"span",className:"mclose mtight"},(0,m.kt)("span",{parentName:"span",className:"mclose mtight"},"]"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.7385em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.931em",marginRight:"0.0714em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.5em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size3 size1 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"n"))))))))))))))))),(0,m.kt)("span",{parentName:"span",className:"tag"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1.4521em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord text"},(0,m.kt)("span",{parentName:"span",className:"mord"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"21")),(0,m.kt)("span",{parentName:"span",className:"mord"},")"))))))),(0,m.kt)("h4",{id:"\u68af\u5f62\u9ad8\u901a\u6ee4\u6ce2\u5668thpf"},"\u68af\u5f62\u9ad8\u901a\u6ee4\u6ce2\u5668\uff08THPF\uff09"),(0,m.kt)("div",{className:"math math-display"},(0,m.kt)("span",{parentName:"div",className:"katex-display"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mtable",{parentName:"semantics",width:"100%"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mrow",{parentName:"mtd"},(0,m.kt)("mi",{parentName:"mrow"},"H"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"u"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"v"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("mrow",{parentName:"mrow"},(0,m.kt)("mo",{parentName:"mrow",fence:"true"},"{"),(0,m.kt)("mtable",{parentName:"mrow",rowspacing:"0.36em",columnalign:"left left",columnspacing:"1em"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("mn",{parentName:"mstyle"},"1"))),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("mrow",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"mrow"},"D"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"u"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"v"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},">"),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"D"),(0,m.kt)("mn",{parentName:"msub"},"0")))))),(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("mrow",{parentName:"mstyle"})))),(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("mfrac",{parentName:"mstyle"},(0,m.kt)("mrow",{parentName:"mfrac"},(0,m.kt)("mi",{parentName:"mrow"},"D"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"u"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"v"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"\u2212"),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"D"),(0,m.kt)("mn",{parentName:"msub"},"1"))),(0,m.kt)("mrow",{parentName:"mfrac"},(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"D"),(0,m.kt)("mn",{parentName:"msub"},"0")),(0,m.kt)("mo",{parentName:"mrow"},"\u2212"),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"D"),(0,m.kt)("mn",{parentName:"msub"},"1")))))),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("mrow",{parentName:"mstyle"},(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"D"),(0,m.kt)("mn",{parentName:"msub"},"1")),(0,m.kt)("mo",{parentName:"mrow"},"\u2264"),(0,m.kt)("mi",{parentName:"mrow"},"D"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"u"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"v"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"\u2264"),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"D"),(0,m.kt)("mn",{parentName:"msub"},"0")))))),(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("mrow",{parentName:"mstyle"})))),(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("mn",{parentName:"mstyle"},"0"))),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("mrow",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"mrow"},"D"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"u"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"v"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"<"),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"D"),(0,m.kt)("mn",{parentName:"msub"},"1")))))))))),(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mtext",{parentName:"mtd"},"(22)")))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"H(u,v)=\\begin{cases}1&D(u,v)>D_0\\\\ \\\\ \\frac{D(u,v)-D_1}{D_0-D_1}&D_1\\leq D(u,v)\\leq D_0\\\\ \\\\ 0&D(u,v)<D_1\\end{cases}\\tag{22}")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.08125em"}},"H"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"u"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"v"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"="),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"7.2151em",verticalAlign:"-3.3576em"}}),(0,m.kt)("span",{parentName:"span",className:"minner"},(0,m.kt)("span",{parentName:"span",className:"mopen"},(0,m.kt)("span",{parentName:"span",className:"delimsizing mult"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"3.85em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-1.366em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.816em"}}),(0,m.kt)("span",{parentName:"span",className:"delimsizinginner delim-size4"},(0,m.kt)("span",{parentName:"span"},"\u23a9"))),(0,m.kt)("span",{parentName:"span",style:{top:"-1.358em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.816em"}}),(0,m.kt)("span",{parentName:"span",style:{height:"1.816em",width:"0.8889em"}},(0,m.kt)("svg",{parentName:"span",xmlns:"http://www.w3.org/2000/svg",width:"0.8889em",height:"1.816em",style:{width:"0.8889em"},viewBox:"0 0 888.89 1816",preserveAspectRatio:"xMinYMin"},(0,m.kt)("path",{parentName:"svg",d:"M384 0 H504 V1816 H384z M384 0 H504 V1816 H384z"})))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.816em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.816em"}}),(0,m.kt)("span",{parentName:"span",className:"delimsizinginner delim-size4"},(0,m.kt)("span",{parentName:"span"},"\u23a8"))),(0,m.kt)("span",{parentName:"span",style:{top:"-4.958em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.816em"}}),(0,m.kt)("span",{parentName:"span",style:{height:"1.816em",width:"0.8889em"}},(0,m.kt)("svg",{parentName:"span",xmlns:"http://www.w3.org/2000/svg",width:"0.8889em",height:"1.816em",style:{width:"0.8889em"},viewBox:"0 0 888.89 1816",preserveAspectRatio:"xMinYMin"},(0,m.kt)("path",{parentName:"svg",d:"M384 0 H504 V1816 H384z M384 0 H504 V1816 H384z"})))),(0,m.kt)("span",{parentName:"span",style:{top:"-6.766em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.816em"}}),(0,m.kt)("span",{parentName:"span",className:"delimsizinginner delim-size4"},(0,m.kt)("span",{parentName:"span"},"\u23a7")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"3.35em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mtable"},(0,m.kt)("span",{parentName:"span",className:"col-align-l"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"3.8576em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-5.8596em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.01em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"1"))),(0,m.kt)("span",{parentName:"span",style:{top:"-4.4196em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.01em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"})),(0,m.kt)("span",{parentName:"span",style:{top:"-2.9776em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.01em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mopen nulldelimiter"}),(0,m.kt)("span",{parentName:"span",className:"mfrac"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.01em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.655em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.02778em"}},"D"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3173em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.357em",marginLeft:"-0.0278em",marginRight:"0.0714em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.5em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size3 size1 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"0")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.143em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mbin mtight"},"\u2212"),(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.02778em"}},"D"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3173em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.357em",marginLeft:"-0.0278em",marginRight:"0.0714em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.5em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size3 size1 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"1")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.143em"}},(0,m.kt)("span",{parentName:"span"}))))))))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.23em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"frac-line",style:{borderBottomWidth:"0.04em"}})),(0,m.kt)("span",{parentName:"span",style:{top:"-3.485em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.02778em"}},"D"),(0,m.kt)("span",{parentName:"span",className:"mopen mtight"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"u"),(0,m.kt)("span",{parentName:"span",className:"mpunct mtight"},","),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.03588em"}},"v"),(0,m.kt)("span",{parentName:"span",className:"mclose mtight"},")"),(0,m.kt)("span",{parentName:"span",className:"mbin mtight"},"\u2212"),(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.02778em"}},"D"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3173em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.357em",marginLeft:"-0.0278em",marginRight:"0.0714em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.5em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size3 size1 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"1")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.143em"}},(0,m.kt)("span",{parentName:"span"})))))))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.4451em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"mclose nulldelimiter"})))),(0,m.kt)("span",{parentName:"span",style:{top:"-1.5245em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.01em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"})),(0,m.kt)("span",{parentName:"span",style:{top:"-0.0845em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.01em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"0")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"3.3575em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"arraycolsep",style:{width:"1em"}}),(0,m.kt)("span",{parentName:"span",className:"col-align-l"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"3.8576em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-5.8596em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.01em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02778em"}},"D"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"u"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"v"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},">"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02778em"}},"D"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0278em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"0")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))))),(0,m.kt)("span",{parentName:"span",style:{top:"-2.9776em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.01em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02778em"}},"D"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0278em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"1")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"\u2264"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02778em"}},"D"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"u"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"v"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"\u2264"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02778em"}},"D"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0278em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"0")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))))),(0,m.kt)("span",{parentName:"span",style:{top:"-0.0844em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.01em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02778em"}},"D"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"u"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"v"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"<"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02778em"}},"D"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0278em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"1")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"}))))))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"3.3576em"}},(0,m.kt)("span",{parentName:"span"}))))))),(0,m.kt)("span",{parentName:"span",className:"mclose nulldelimiter"}))),(0,m.kt)("span",{parentName:"span",className:"tag"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"7.2151em",verticalAlign:"-3.3576em"}}),(0,m.kt)("span",{parentName:"span",className:"mord text"},(0,m.kt)("span",{parentName:"span",className:"mord"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"22")),(0,m.kt)("span",{parentName:"span",className:"mord"},")"))))))),(0,m.kt)("h3",{id:"\u5e26\u901a\u548c\u5e26\u963b\u6ee4\u6ce2"},"\u5e26\u901a\u548c\u5e26\u963b\u6ee4\u6ce2"),(0,m.kt)("h4",{id:"\u5e26\u901a\u6ee4\u6ce2"},"\u5e26\u901a\u6ee4\u6ce2"),(0,m.kt)("p",null,"\u987e\u540d\u601d\u4e49\uff0c\u5e26\u901a\u6ee4\u6ce2\u5c31\u662f\u5141\u8bb8\u67d0\u4e00\u7279\u5b9a\u9891\u7387\u7684\u4fe1\u53f7\u901a\u8fc7\uff0c\u800c\u8870\u51cf\u9891\u7387\u8303\u56f4\u4e4b\u5916\u7684\u4fe1\u53f7\u3002"),(0,m.kt)("p",null,"\u7406\u60f3\u5e26\u901a\u6ee4\u6ce2\u7684\u4f20\u9012\u51fd\u6570\u4e3a\uff1a"),(0,m.kt)("div",{className:"math math-display"},(0,m.kt)("span",{parentName:"div",className:"katex-display"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mtable",{parentName:"semantics",width:"100%"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mrow",{parentName:"mtd"},(0,m.kt)("mi",{parentName:"mrow"},"H"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"u"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"v"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("mrow",{parentName:"mrow"},(0,m.kt)("mo",{parentName:"mrow",fence:"true"},"{"),(0,m.kt)("mtable",{parentName:"mrow",rowspacing:"0.36em",columnalign:"left left",columnspacing:"1em"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("mn",{parentName:"mstyle"},"0"))),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("mrow",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"mrow"},"D"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"u"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"v"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"<"),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"D"),(0,m.kt)("mn",{parentName:"msub"},"0")),(0,m.kt)("mo",{parentName:"mrow"},"\u2212"),(0,m.kt)("mfrac",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"mfrac"},"w"),(0,m.kt)("mn",{parentName:"mfrac"},"2")))))),(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("mn",{parentName:"mstyle"},"1"))),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("mrow",{parentName:"mstyle"},(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"D"),(0,m.kt)("mn",{parentName:"msub"},"0")),(0,m.kt)("mo",{parentName:"mrow"},"\u2212"),(0,m.kt)("mfrac",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"mfrac"},"w"),(0,m.kt)("mn",{parentName:"mfrac"},"2")),(0,m.kt)("mo",{parentName:"mrow"},"\u2264"),(0,m.kt)("mi",{parentName:"mrow"},"D"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"u"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"v"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"\u2264"),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"D"),(0,m.kt)("mn",{parentName:"msub"},"0")),(0,m.kt)("mo",{parentName:"mrow"},"+"),(0,m.kt)("mfrac",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"mfrac"},"w"),(0,m.kt)("mn",{parentName:"mfrac"},"2")))))),(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("mn",{parentName:"mstyle"},"0"))),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("mrow",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"mrow"},"D"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"u"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"v"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"\u2265"),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"D"),(0,m.kt)("mn",{parentName:"msub"},"0")),(0,m.kt)("mo",{parentName:"mrow"},"+"),(0,m.kt)("mfrac",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"mfrac"},"w"),(0,m.kt)("mn",{parentName:"mfrac"},"2")))))))))),(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mtext",{parentName:"mtd"},"(23)")))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"H(u,v)=\\begin{cases}0&D(u,v)<D_0-\\frac{w}{2}\\\\1&D_0-\\frac{w}{2}\\leq D(u,v)\\leq D_0+\\frac{w}{2}\\\\0&D(u,v)\\geq D_0+\\frac{w}{2}\\end{cases}\\tag{23}")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.08125em"}},"H"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"u"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"v"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"="),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"4.32em",verticalAlign:"-1.91em"}}),(0,m.kt)("span",{parentName:"span",className:"minner"},(0,m.kt)("span",{parentName:"span",className:"mopen"},(0,m.kt)("span",{parentName:"span",className:"delimsizing mult"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"2.35em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.2em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.15em"}}),(0,m.kt)("span",{parentName:"span",className:"delimsizinginner delim-size4"},(0,m.kt)("span",{parentName:"span"},"\u23a9"))),(0,m.kt)("span",{parentName:"span",style:{top:"-2.192em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.15em"}}),(0,m.kt)("span",{parentName:"span",style:{height:"0.316em",width:"0.8889em"}},(0,m.kt)("svg",{parentName:"span",xmlns:"http://www.w3.org/2000/svg",width:"0.8889em",height:"0.316em",style:{width:"0.8889em"},viewBox:"0 0 888.89 316",preserveAspectRatio:"xMinYMin"},(0,m.kt)("path",{parentName:"svg",d:"M384 0 H504 V316 H384z M384 0 H504 V316 H384z"})))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.15em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.15em"}}),(0,m.kt)("span",{parentName:"span",className:"delimsizinginner delim-size4"},(0,m.kt)("span",{parentName:"span"},"\u23a8"))),(0,m.kt)("span",{parentName:"span",style:{top:"-4.292em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.15em"}}),(0,m.kt)("span",{parentName:"span",style:{height:"0.316em",width:"0.8889em"}},(0,m.kt)("svg",{parentName:"span",xmlns:"http://www.w3.org/2000/svg",width:"0.8889em",height:"0.316em",style:{width:"0.8889em"},viewBox:"0 0 888.89 316",preserveAspectRatio:"xMinYMin"},(0,m.kt)("path",{parentName:"svg",d:"M384 0 H504 V316 H384z M384 0 H504 V316 H384z"})))),(0,m.kt)("span",{parentName:"span",style:{top:"-4.6em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.15em"}}),(0,m.kt)("span",{parentName:"span",className:"delimsizinginner delim-size4"},(0,m.kt)("span",{parentName:"span"},"\u23a7")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.85em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mtable"},(0,m.kt)("span",{parentName:"span",className:"col-align-l"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"2.41em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-4.41em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.008em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"0"))),(0,m.kt)("span",{parentName:"span",style:{top:"-2.97em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.008em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"1"))),(0,m.kt)("span",{parentName:"span",style:{top:"-1.53em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.008em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"0")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.91em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"arraycolsep",style:{width:"1em"}}),(0,m.kt)("span",{parentName:"span",className:"col-align-l"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"2.41em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-4.41em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.008em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02778em"}},"D"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"u"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"v"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"<"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02778em"}},"D"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0278em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"0")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"\u2212"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mopen nulldelimiter"}),(0,m.kt)("span",{parentName:"span",className:"mfrac"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.6954em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.655em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"2")))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.23em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"frac-line",style:{borderBottomWidth:"0.04em"}})),(0,m.kt)("span",{parentName:"span",style:{top:"-3.394em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.02691em"}},"w"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.345em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"mclose nulldelimiter"})))),(0,m.kt)("span",{parentName:"span",style:{top:"-2.97em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.008em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02778em"}},"D"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0278em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"0")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"\u2212"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mopen nulldelimiter"}),(0,m.kt)("span",{parentName:"span",className:"mfrac"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.6954em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.655em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"2")))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.23em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"frac-line",style:{borderBottomWidth:"0.04em"}})),(0,m.kt)("span",{parentName:"span",style:{top:"-3.394em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.02691em"}},"w"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.345em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"mclose nulldelimiter"})),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"\u2264"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02778em"}},"D"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"u"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"v"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"\u2264"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02778em"}},"D"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0278em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"0")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"+"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mopen nulldelimiter"}),(0,m.kt)("span",{parentName:"span",className:"mfrac"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.6954em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.655em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"2")))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.23em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"frac-line",style:{borderBottomWidth:"0.04em"}})),(0,m.kt)("span",{parentName:"span",style:{top:"-3.394em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.02691em"}},"w"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.345em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"mclose nulldelimiter"})))),(0,m.kt)("span",{parentName:"span",style:{top:"-1.53em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.008em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02778em"}},"D"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"u"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"v"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"\u2265"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02778em"}},"D"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0278em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"0")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"+"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mopen nulldelimiter"}),(0,m.kt)("span",{parentName:"span",className:"mfrac"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.6954em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.655em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"2")))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.23em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"frac-line",style:{borderBottomWidth:"0.04em"}})),(0,m.kt)("span",{parentName:"span",style:{top:"-3.394em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.02691em"}},"w"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.345em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"mclose nulldelimiter"}))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.91em"}},(0,m.kt)("span",{parentName:"span"}))))))),(0,m.kt)("span",{parentName:"span",className:"mclose nulldelimiter"}))),(0,m.kt)("span",{parentName:"span",className:"tag"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"4.32em",verticalAlign:"-1.91em"}}),(0,m.kt)("span",{parentName:"span",className:"mord text"},(0,m.kt)("span",{parentName:"span",className:"mord"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"23")),(0,m.kt)("span",{parentName:"span",className:"mord"},")"))))))),(0,m.kt)("p",null,"\u5176\u4e2d\uff0c",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"D"),(0,m.kt)("mn",{parentName:"msub"},"0"))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"D_0")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.8333em",verticalAlign:"-0.15em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02778em"}},"D"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0278em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"0")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))))))),"\u662f\u901a\u5e26\u4e2d\u5fc3\u9891\u7387\uff0c",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"w")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"w")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.4306em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02691em"}},"w"))))),"\u662f\u901a\u5e26\u5bbd\u5ea6\u3002"),(0,m.kt)("h4",{id:"\u5e26\u963b\u6ee4\u6ce2"},"\u5e26\u963b\u6ee4\u6ce2"),(0,m.kt)("p",null,"\u987e\u540d\u601d\u4e49\uff0c\u5e26\u963b\u6ee4\u6ce2\u5c31\u662f\u8870\u51cf\u67d0\u4e00\u7279\u5b9a\u9891\u7387\u8303\u56f4\u7684\u4fe1\u53f7\uff0c\u800c\u5141\u8bb8\u9891\u7387\u8303\u56f4\u4e4b\u5916\u7684\u4fe1\u53f7\u901a\u8fc7\u3002"),(0,m.kt)("p",null,"\u7406\u60f3\u5e26\u963b\u6ee4\u6ce2\u7684\u4f20\u9012\u51fd\u6570\u4e3a\uff1a"),(0,m.kt)("div",{className:"math math-display"},(0,m.kt)("span",{parentName:"div",className:"katex-display"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mtable",{parentName:"semantics",width:"100%"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mrow",{parentName:"mtd"},(0,m.kt)("mi",{parentName:"mrow"},"H"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"u"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"v"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("mrow",{parentName:"mrow"},(0,m.kt)("mo",{parentName:"mrow",fence:"true"},"{"),(0,m.kt)("mtable",{parentName:"mrow",rowspacing:"0.36em",columnalign:"left left",columnspacing:"1em"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("mn",{parentName:"mstyle"},"1"))),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("mrow",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"mrow"},"D"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"u"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"v"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"<"),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"w"),(0,m.kt)("mn",{parentName:"msub"},"1")))))),(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("mn",{parentName:"mstyle"},"0"))),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("mrow",{parentName:"mstyle"},(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"w"),(0,m.kt)("mn",{parentName:"msub"},"1")),(0,m.kt)("mo",{parentName:"mrow"},"\u2a7d"),(0,m.kt)("mi",{parentName:"mrow"},"D"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"u"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"v"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"\u2264"),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"w"),(0,m.kt)("mn",{parentName:"msub"},"2")))))),(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("mn",{parentName:"mstyle"},"1"))),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("mrow",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"mrow"},"D"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"u"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"v"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},">"),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"w"),(0,m.kt)("mn",{parentName:"msub"},"2")))))))))),(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mtext",{parentName:"mtd"},"(24)")))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"H(u,v)=\\begin{cases}1&D(u,v)<w_1\\\\0&w_1\\leqslant D(u,v)\\leq w_2\\\\1&D(u,v)> w_2\\end{cases}\\tag{24}")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.08125em"}},"H"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"u"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"v"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"="),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"4.32em",verticalAlign:"-1.91em"}}),(0,m.kt)("span",{parentName:"span",className:"minner"},(0,m.kt)("span",{parentName:"span",className:"mopen"},(0,m.kt)("span",{parentName:"span",className:"delimsizing mult"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"2.35em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.2em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.15em"}}),(0,m.kt)("span",{parentName:"span",className:"delimsizinginner delim-size4"},(0,m.kt)("span",{parentName:"span"},"\u23a9"))),(0,m.kt)("span",{parentName:"span",style:{top:"-2.192em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.15em"}}),(0,m.kt)("span",{parentName:"span",style:{height:"0.316em",width:"0.8889em"}},(0,m.kt)("svg",{parentName:"span",xmlns:"http://www.w3.org/2000/svg",width:"0.8889em",height:"0.316em",style:{width:"0.8889em"},viewBox:"0 0 888.89 316",preserveAspectRatio:"xMinYMin"},(0,m.kt)("path",{parentName:"svg",d:"M384 0 H504 V316 H384z M384 0 H504 V316 H384z"})))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.15em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.15em"}}),(0,m.kt)("span",{parentName:"span",className:"delimsizinginner delim-size4"},(0,m.kt)("span",{parentName:"span"},"\u23a8"))),(0,m.kt)("span",{parentName:"span",style:{top:"-4.292em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.15em"}}),(0,m.kt)("span",{parentName:"span",style:{height:"0.316em",width:"0.8889em"}},(0,m.kt)("svg",{parentName:"span",xmlns:"http://www.w3.org/2000/svg",width:"0.8889em",height:"0.316em",style:{width:"0.8889em"},viewBox:"0 0 888.89 316",preserveAspectRatio:"xMinYMin"},(0,m.kt)("path",{parentName:"svg",d:"M384 0 H504 V316 H384z M384 0 H504 V316 H384z"})))),(0,m.kt)("span",{parentName:"span",style:{top:"-4.6em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.15em"}}),(0,m.kt)("span",{parentName:"span",className:"delimsizinginner delim-size4"},(0,m.kt)("span",{parentName:"span"},"\u23a7")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.85em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mtable"},(0,m.kt)("span",{parentName:"span",className:"col-align-l"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"2.41em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-4.41em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.008em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"1"))),(0,m.kt)("span",{parentName:"span",style:{top:"-2.97em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.008em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"0"))),(0,m.kt)("span",{parentName:"span",style:{top:"-1.53em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.008em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"1")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.91em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"arraycolsep",style:{width:"1em"}}),(0,m.kt)("span",{parentName:"span",className:"col-align-l"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"2.41em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-4.41em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.008em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02778em"}},"D"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"u"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"v"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"<"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02691em"}},"w"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0269em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"1")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))))),(0,m.kt)("span",{parentName:"span",style:{top:"-2.97em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.008em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02691em"}},"w"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0269em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"1")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel amsrm"},"\u2a7d"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02778em"}},"D"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"u"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"v"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"\u2264"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02691em"}},"w"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0269em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"2")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))))),(0,m.kt)("span",{parentName:"span",style:{top:"-1.53em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.008em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02778em"}},"D"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"u"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"v"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},">"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02691em"}},"w"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0269em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"2")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"}))))))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.91em"}},(0,m.kt)("span",{parentName:"span"}))))))),(0,m.kt)("span",{parentName:"span",className:"mclose nulldelimiter"}))),(0,m.kt)("span",{parentName:"span",className:"tag"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"4.32em",verticalAlign:"-1.91em"}}),(0,m.kt)("span",{parentName:"span",className:"mord text"},(0,m.kt)("span",{parentName:"span",className:"mord"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"24")),(0,m.kt)("span",{parentName:"span",className:"mord"},")"))))))),(0,m.kt)("h2",{id:"\u7b2c7\u7ae0-\u5f69\u8272\u56fe\u50cf\u5904\u7406"},"\u7b2c7\u7ae0 \u5f69\u8272\u56fe\u50cf\u5904\u7406"),(0,m.kt)("h3",{id:"\u4f2a\u5f69\u8272\u56fe\u50cf\u7684\u5904\u7406"},"\u4f2a\u5f69\u8272\u56fe\u50cf\u7684\u5904\u7406"),(0,m.kt)("p",null,"\u4f2a\u5f69\u8272\u56fe\u50cf\u7684\u589e\u5f3a\u4e00\u822c\u7528\u4e8e",(0,m.kt)("strong",{parentName:"p"},"B\u8d85\u3001\u77f3\u6cb9\u5f00\u91c7\u4ee5\u53ca\u5b89\u68c0"),"\u65b9\u9762\u3002"),(0,m.kt)("h3",{id:"\u5168\u5f69\u8272\u56fe\u50cf\u7684\u5904\u7406"},"\u5168\u5f69\u8272\u56fe\u50cf\u7684\u5904\u7406"),(0,m.kt)("h2",{id:"\u7b2c8\u7ae0-\u56fe\u50cf\u590d\u539f"},"\u7b2c8\u7ae0 \u56fe\u50cf\u590d\u539f"),(0,m.kt)("h3",{id:"\u56fe\u50cf\u9000\u5316\u673a\u7406"},"\u56fe\u50cf\u9000\u5316\u673a\u7406"),(0,m.kt)("h4",{id:"\u9000\u5316\u539f\u56e0"},"\u9000\u5316\u539f\u56e0"),(0,m.kt)("ol",null,(0,m.kt)("li",{parentName:"ol"},"\u6210\u50cf\u7cfb\u7edf\u955c\u5934\u805a\u7126\u4e0d\u51c6\u4ea7\u751f\u7684\u6563\u7126"),(0,m.kt)("li",{parentName:"ol"},"\u76f8\u673a\u4e0e\u666f\u7269\u4e4b\u95f4\u7684\u76f8\u5bf9\u8fd0\u52a8"),(0,m.kt)("li",{parentName:"ol"},"\u6210\u50cf\u7cfb\u7edf\u5b58\u5728\u7684\u5404\u79cd\u975e\u7ebf\u6027\u56e0\u7d20\u4ee5\u53ca\u7cfb\u7edf\u672c\u8eab\u7684\u6027\u80fd"),(0,m.kt)("li",{parentName:"ol"},"\u6a21\u62df\u56fe\u50cf\u5728\u6570\u5b57\u5316\u8fc7\u7a0b\u4e2d\uff0c\u56e0\u6570\u5b57\u5316\u7684\u7cbe\u5ea6\u548c\u8bef\u5dee\u800c\u635f\u5931\u56fe\u50cf\u7ec6\u8282"),(0,m.kt)("li",{parentName:"ol"},"\u6210\u50cf\u7cfb\u7edf\u4e2d\u5b58\u5728\u7684\u5404\u79cd\u968f\u673a\u566a\u58f0")),(0,m.kt)("h4",{id:"\u590d\u539f\u673a\u7406"},"\u590d\u539f\u673a\u7406"),(0,m.kt)("p",null,"\u56fe\u50cf\u590d\u539f\u7684\u8fc7\u7a0b\u4e00\u822c\u662f\u6cbf\u7740\u56fe\u50cf\u9000\u5316\u7684\u9006\u5411\u8fc7\u7a0b\u8fdb\u884c\u7684\u3002\u9996\u5148\u6839\u636e\u5148\u9a8c\u77e5\u8bc6\u5206\u6790\u9000\u5316\u539f\u56e0\uff0c\u4e86\u89e3\u56fe\u50cf\u53d8\u8d28\u7684\u539f\u7406\uff0c\u5728\u6b64\u57fa\u7840\u4e0a\u5efa\u7acb\u56fe\u50cf\u7684\u9000\u5316\u6a21\u578b\uff0c\u7136\u540e\u4ee5\u56fe\u50cf\u9000\u5316\u7684\u9006\u8fc7\u7a0b\u5bf9\u56fe\u50cf\u8fdb\u884c\u5904\u7406\u3002"),(0,m.kt)("h4",{id:"\u56fe\u50cf\u590d\u539f\u4e0e\u56fe\u50cf\u589e\u5f3a\u7684\u533a\u522b\u548c\u8054\u7cfb"},"\u56fe\u50cf\u590d\u539f\u4e0e\u56fe\u50cf\u589e\u5f3a\u7684\u533a\u522b\u548c\u8054\u7cfb"),(0,m.kt)("p",null,"\u8054\u7cfb\uff1a\u4e8c\u8005\u4ece\u8868\u9762\u4e0a\u770b\u90fd\u662f\u4e3a\u4e86\u63d0\u9ad8\u56fe\u50cf\u7684\u8d28\u91cf\u3002"),(0,m.kt)("p",null,"\u533a\u522b\uff1a\u4e8c\u8005\u5728\u76ee\u7684\u548c\u8fc7\u7a0b\u4e0a\u90fd\u6709\u660e\u663e\u7684\u533a\u522b\u3002"),(0,m.kt)("p",null,"\u5728\u76ee\u7684\u4e0a\uff0c\u56fe\u50cf\u589e\u5f3a\u662f\u4e3a\u4e86\u63d0\u9ad8\u56fe\u50cf\u7684\u89c6\u611f\u8d28\u91cf\uff0c\u589e\u5f3a\u540e\u7684\u56fe\u50cf\u53ef\u80fd\u635f\u5931\u4e00\u4e9b\u4fe1\u606f\uff0c\u5e76\u4e0e\u539f\u59cb\u56fe\u50cf\u6709\u4e00\u5b9a\u7684\u5dee\u5f02\uff1b\u800c\u56fe\u50cf\u590d\u539f\u662f\u4e3a\u4e86\u4f7f\u5f85\u590d\u539f\u7684\u56fe\u50cf\u4e0e\u539f\u59cb\u56fe\u50cf\u5c3d\u53ef\u80fd\u7684\u63a5\u8fd1\u3002"),(0,m.kt)("p",null,"\u5728\u8fc7\u7a0b\u4e0a\u3002\u56fe\u50cf\u589e\u5f3a\u4e00\u822c\u4e0d\u8003\u8651\u56fe\u50cf\u9000\u5316\u7684\u771f\u5b9e\u8fc7\u7a0b\uff0c\u800c\u662f\u4f7f\u7528\u7279\u5b9a\u6280\u672f\u6765\u7a81\u51fa\u548c\u5f3a\u8c03\u56fe\u50cf\u4e2d\u6240\u5173\u6ce8\u7684\u7279\u5f81\uff1b\u800c\u56fe\u50cf\u590d\u539f\u662f\u76f4\u63a5\u9488\u5bf9\u56fe\u50cf\u4ea7\u751f\u9000\u5316\u7684\u539f\u56e0\u5efa\u7acb\u76f8\u5e94\u7684\u6570\u5b66\u6a21\u578b\uff0c\u5e76\u6cbf\u7740\u9000\u5316\u7684\u9006\u5411\u8fdb\u884c\u590d\u539f\u3002"),(0,m.kt)("h3",{id:"\u56fe\u50cf\u9000\u5316\u6a21\u578b"},"\u56fe\u50cf\u9000\u5316\u6a21\u578b"),(0,m.kt)("p",null,"\u56fe\u50cf",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"f"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"x"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"y"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"f(x,y)")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.10764em"}},"f"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"x"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"y"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"))))),"\u7ecf\u8fc7\u9000\u5316\u7cfb\u7edf",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"H"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"x"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"y"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"H(x,y)")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.08125em"}},"H"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"x"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"y"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"))))),"\u540e\u518d\u4e0e\u566a\u58f0",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"n"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"x"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"y"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"n(x,y)")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"n"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"x"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"y"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"))))),"\u53e0\u52a0\uff0c\u5f97\u5230\u6700\u540e\u9000\u5316\u7684\u56fe\u50cf",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"g"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"x"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"y"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"g(x,y)")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"g"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"x"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"y"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"))))),"\u3002"),(0,m.kt)("p",null,"\u9000\u5316\u7cfb\u7edf\u7684\u4e00\u822c\u7279\u6027\uff1a"),(0,m.kt)("ol",null,(0,m.kt)("li",{parentName:"ol"},"\u7ebf\u6027\u7279\u6027\u3002"),(0,m.kt)("li",{parentName:"ol"},"\u7a7a\u95f4\u4f4d\u7f6e\u4e0d\u53d8\u6027\uff1a\u7ecf\u8fc7\u9000\u5316\u7cfb\u7edf\u540e\u7684\u8f93\u51fa\u53ea\u6709\u8f93\u5165\u6709\u5173\uff0c\u800c\u4e0e\u8f93\u5165\u5728\u56fe\u50cf\u4e2d\u7684\u4f4d\u7f6e\u65e0\u5173\u3002")),(0,m.kt)("h2",{id:"\u7b2c11\u7ae0-\u56fe\u50cf\u5206\u5272"},"\u7b2c11\u7ae0 \u56fe\u50cf\u5206\u5272"),(0,m.kt)("h3",{id:"\u9608\u503c\u5206\u5272\u6cd5"},"\u9608\u503c\u5206\u5272\u6cd5"),(0,m.kt)("h4",{id:"\u6700\u4f73\u9608\u503c\u6cd5"},"\u6700\u4f73\u9608\u503c\u6cd5"),(0,m.kt)("p",null,"\u5047\u8bbe\u56fe\u50cf\u7531\u7269\u4f53\u548c\u80cc\u666f\u4e24\u90e8\u5206\u7ec4\u6210\uff0c\u4e14\u7269\u4f53\u50cf\u7d20\u7684\u5206\u5e03\u548c\u80cc\u666f\u50cf\u7d20\u7684\u5206\u5e03\u5747\u7b26\u5408\u6b63\u6001\u5206\u5e03\uff0c\u7269\u4f53\u50cf\u7d20\u7684\u6b63\u6001\u5206\u5e03\u6982\u7387\u5bc6\u5ea6\u51fd\u6570\u7684\u5747\u503c\u4e3a",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"\u03bc")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"\\mu")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.625em",verticalAlign:"-0.1944em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"\u03bc"))))),"\uff0c\u80cc\u666f\u50cf\u7d20\u7684\u6b63\u6001\u5206\u5e03\u6982\u7387\u5bc6\u5ea6\u51fd\u6570\u7684\u5747\u503c\u4e3a",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"\u03bd")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"\\nu")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.4306em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.06366em"}},"\u03bd"))))),"\uff0c\u5219\u6700\u4f73\u9608\u503c\u6cd5\u786e\u5b9a\u7684\u9608\u503c\u4e3a"),(0,m.kt)("div",{className:"math math-display"},(0,m.kt)("span",{parentName:"div",className:"katex-display"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mtable",{parentName:"semantics",width:"100%"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mrow",{parentName:"mtd"},(0,m.kt)("mi",{parentName:"mrow"},"t"),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("mfrac",{parentName:"mrow"},(0,m.kt)("mrow",{parentName:"mfrac"},(0,m.kt)("mi",{parentName:"mrow"},"\u03bc"),(0,m.kt)("mo",{parentName:"mrow"},"+"),(0,m.kt)("mi",{parentName:"mrow"},"\u03bd")),(0,m.kt)("mn",{parentName:"mfrac"},"2")))),(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mtext",{parentName:"mtd"},"(25)")))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"t=\\frac{\\mu +\\nu}{2}\\tag{25}")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6151em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"t"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"="),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1.9463em",verticalAlign:"-0.686em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mopen nulldelimiter"}),(0,m.kt)("span",{parentName:"span",className:"mfrac"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.2603em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.314em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"2"))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.23em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"frac-line",style:{borderBottomWidth:"0.04em"}})),(0,m.kt)("span",{parentName:"span",style:{top:"-3.677em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"\u03bc"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"+"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.06366em"}},"\u03bd")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.686em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"mclose nulldelimiter"}))),(0,m.kt)("span",{parentName:"span",className:"tag"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1.9463em",verticalAlign:"-0.686em"}}),(0,m.kt)("span",{parentName:"span",className:"mord text"},(0,m.kt)("span",{parentName:"span",className:"mord"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"25")),(0,m.kt)("span",{parentName:"span",className:"mord"},")"))))))),(0,m.kt)("h4",{id:"\u5224\u522b\u5206\u6790\u6cd5"},"\u5224\u522b\u5206\u6790\u6cd5"),(0,m.kt)("p",null,"\u901a\u8fc7\u8ba1\u7b97\u7070\u5ea6\u76f4\u65b9\u56fe\u76840\u9636\u77e9\u548c1\u9636\u77e9\u6700\u5927\u5316\u7c7b\u95f4\u65b9\u5dee\u4ece\u800c\u5f97\u5230\u6700\u4f73\u9608\u503c\u3002"),(0,m.kt)("h3",{id:"\u8fb9\u7f18\u68c0\u6d4b\u7684\u57fa\u672c\u539f\u7406"},"\u8fb9\u7f18\u68c0\u6d4b\u7684\u57fa\u672c\u539f\u7406"),(0,m.kt)("ol",null,(0,m.kt)("li",{parentName:"ol"},(0,m.kt)("p",{parentName:"li"},"\u4ec0\u4e48\u662f\u56fe\u50cf\u7684\u8fb9\u7f18\uff1f"),(0,m.kt)("p",{parentName:"li"},"\u56fe\u50cf\u4e2d\u7ed3\u6784\u5177\u6709\u7a81\u53d8\u7684\u5730\u65b9\uff0c\u8868\u660e\u4e00\u4e2a\u533a\u57df\u7684\u7ec8\u7ed3\uff0c\u4e5f\u662f\u53e6\u4e00\u4e2a\u533a\u57df\u7684\u5f00\u59cb\uff0c\u8fd9\u79cd\u4e0d\u8fde\u7eed\u6027\u79f0\u4e3a\u8fb9\u7f18\u3002")),(0,m.kt)("li",{parentName:"ol"},(0,m.kt)("p",{parentName:"li"},"\u8fb9\u7f18\u4fe1\u53f7\u7684\u7c7b\u578b\uff1f"),(0,m.kt)("ol",{parentName:"li"},(0,m.kt)("li",{parentName:"ol"},"\u9636\u8dc3\u578b\uff0c\u4f46\u5b9e\u9645\u60c5\u51b5\u4e2d\u4e0d\u53ef\u80fd\u6709\u5b8c\u5168\u7406\u60f3\u7684\u7a81\u53d8\u3002\u7a81\u53d8\u5904\u4e3a\u8fb9\u7f18\u70b9\u3002"),(0,m.kt)("li",{parentName:"ol"},"\u6e10\u53d8\u578b\uff0c\u9010\u6e10\u589e\u5927\u6216\u9010\u6e10\u51cf\u5c0f\u3002\u6e10\u53d8\u7684\u4e2d\u95f4\u4f4d\u7f6e\u4e3a\u8fb9\u7f18\u70b9\u3002"),(0,m.kt)("li",{parentName:"ol"},"\u53f0\u9636\u578b\u3002\u53f0\u9636\u7684\u4e2d\u95f4\u4e3a\u8fb9\u7f18\u70b9\u6216\u8ba4\u4e3a\u53f0\u9636\u4e24\u4fa7\u4e3a\u4e24\u4e2a\u8fb9\u7f18\u70b9\u3002")))),(0,m.kt)("h3",{id:"\u8fb9\u7f18\u68c0\u6d4b\u7b97\u5b50"},"\u8fb9\u7f18\u68c0\u6d4b\u7b97\u5b50"),(0,m.kt)("h4",{id:"robert\u7b97\u5b50"},"Robert\u7b97\u5b50"),(0,m.kt)("ul",null,(0,m.kt)("li",{parentName:"ul"},"\u4e00\u9636\u5bfc\u6570\u7b97\u5b50\u3002"),(0,m.kt)("li",{parentName:"ul"},"\u5229\u7528\u5c40\u90e8\u5dee\u5206\u65b9\u6cd5\uff0c\u91c7\u7528\u5bf9\u89d2\u7ebf\u65b9\u5411\u76f8\u90bb\u4e24\u50cf\u7d20\u4e4b\u5dee\u8fd1\u4f3c\u68af\u5ea6\u5e45\u503c\u68c0\u6d4b\u8fb9\u7f18\u3002"),(0,m.kt)("li",{parentName:"ul"},"\u5bf9\u566a\u58f0\u654f\u611f\uff0c",(0,m.kt)("strong",{parentName:"li"},"\u4e0d\u80fd\u6291\u5236\u566a\u58f0"),"\u3002")),(0,m.kt)("h4",{id:"sobel\u7b97\u5b50"},"Sobel\u7b97\u5b50"),(0,m.kt)("ul",null,(0,m.kt)("li",{parentName:"ul"},"\u4e00\u9636\u5bfc\u6570\u7b97\u5b50\u3002"),(0,m.kt)("li",{parentName:"ul"},"\u5148\u8fdb\u884c",(0,m.kt)("strong",{parentName:"li"},"\u52a0\u6743\u5e73\u5747"),"\uff0c\u7136\u540e\u8fdb\u884c\u5fae\u5206\u8fd0\u7b97\u3002"),(0,m.kt)("li",{parentName:"ul"},"\u5bf9\u566a\u58f0\u5177\u6709\u4e00\u5b9a\u7684\u6291\u5236\u80fd\u529b\u3002")),(0,m.kt)("h4",{id:"prewitt\u7b97\u5b50"},"Prewitt\u7b97\u5b50"),(0,m.kt)("ul",null,(0,m.kt)("li",{parentName:"ul"},"\u4e00\u9636\u5bfc\u6570\u7b97\u5b50\u3002"),(0,m.kt)("li",{parentName:"ul"},"\u5229\u7528",(0,m.kt)("strong",{parentName:"li"},"\u5c40\u90e8\u5dee\u5206\u5e73\u5747\u65b9\u6cd5"),"\u5bfb\u627e\u8fb9\u7f18\u3002",(0,m.kt)("strong",{parentName:"li"},"\u4e24\u4e2a\u6a21\u677f\u4e00\u4e2a\u68c0\u6d4b\u6c34\u5e73\u8fb9\u7f18\uff0c\u4e00\u4e2a\u68c0\u6d4b\u7ad6\u76f4\u8fb9\u7f18"),"\u3002"),(0,m.kt)("li",{parentName:"ul"},"\u5bf9\u566a\u58f0\u5177\u6709\u4e00\u5b9a\u7684\u6291\u5236\u80fd\u529b\u3002")),(0,m.kt)("h4",{id:"laplace\u7b97\u5b50"},"Laplace\u7b97\u5b50"),(0,m.kt)("ul",null,(0,m.kt)("li",{parentName:"ul"},"\u4e8c\u9636\u5bfc\u6570\u7b97\u5b50\u3002"),(0,m.kt)("li",{parentName:"ul"},"\u4f7f\u566a\u58f0\u6210\u5206\u5f97\u5230\u52a0\u5f3a\uff0c\u5bf9\u566a\u58f0\u66f4\u654f\u611f\u3002"),(0,m.kt)("li",{parentName:"ul"},"\u4e0eMarr\u8fb9\u7f18\u68c0\u6d4b\u7b97\u5b50\u4e00\u6837\uff0c\u4e00\u822c\u5148\u8fdb\u884c\u4f4e\u901a\u6ee4\u6ce2\u5e73\u6ed1\u540e\u518d\u8fdb\u884c\u4e8c\u9636\u5fae\u5206\u8fd0\u7b97\u3002")),(0,m.kt)("h4",{id:"canny\u8fb9\u7f18\u68c0\u6d4b"},"Canny\u8fb9\u7f18\u68c0\u6d4b"),(0,m.kt)("ol",null,(0,m.kt)("li",{parentName:"ol"},"\u4f7f\u7528\u9ad8\u65af\u6ee4\u6ce2\u5e73\u6ed1\u56fe\u50cf"),(0,m.kt)("li",{parentName:"ol"},"\u8ba1\u7b97\u68af\u5ea6\u5e45\u503c\u548c\u65b9\u5411"),(0,m.kt)("li",{parentName:"ol"},"NMS\u975e\u6781\u5927\u503c\u6291\u5236\uff0c\u4fdd\u7559\u6bcf\u4e2a\u50cf\u7d20\u70b9\u4e0a\u68af\u5ea6\u5f3a\u5ea6\u7684\u6781\u5927\u503c\uff0c\u5220\u6389\u5176\u4ed6\u503c"),(0,m.kt)("li",{parentName:"ol"},"\u4f7f\u7528\u53cc\u9608\u503c\u65b9\u6cd5\u786e\u5b9a\u5f3a\u8fb9\u754c\u548c\u5f31\u8fb9\u754c"),(0,m.kt)("li",{parentName:"ol"},"\u6ede\u540e\u8fb9\u754c\u8ddf\u8e2a")),(0,m.kt)("h2",{id:"\u8bfe\u540e\u4e60\u9898\u4e2d\u7684\u95ee\u7b54\u9898"},"\u8bfe\u540e\u4e60\u9898\u4e2d\u7684\u95ee\u7b54\u9898"),(0,m.kt)("ol",null,(0,m.kt)("li",{parentName:"ol"},(0,m.kt)("p",{parentName:"li"},"\u5085\u91cc\u53f6\u9891\u8c31\u56fe\u7684\u7279\u5f81\uff1a"),(0,m.kt)("ul",{parentName:"li"},(0,m.kt)("li",{parentName:"ul"},"\u9891\u7387\u5206\u5e03\uff1a\u5085\u91cc\u53f6\u9891\u8c31\u56fe\u5c55\u793a\u4e86\u56fe\u50cf\u5728\u4e0d\u540c\u9891\u7387\u4e0b\u7684\u5f3a\u5ea6\u5206\u5e03\u3002\u9ad8\u9891\u90e8\u5206\u5bf9\u5e94\u56fe\u50cf\u4e2d\u7684\u8fb9\u7f18\u548c\u7ec6\u8282\uff0c\u4f4e\u9891\u90e8\u5206\u5bf9\u5e94\u56fe\u50cf\u4e2d\u7684\u6574\u4f53\u7ed3\u6784\u548c\u5927\u81f4\u8f6e\u5ed3\u3002"),(0,m.kt)("li",{parentName:"ul"},"\u80fd\u91cf\u5206\u5e03\uff1a\u56fe\u50cf\u4e2d\u4e0d\u540c\u9891\u7387\u7684\u80fd\u91cf\u5728\u9891\u8c31\u56fe\u4e2d\u4ee5\u4e0d\u540c\u5f3a\u5ea6\u7684\u5e45\u5ea6\u5448\u73b0\u3002\u9ad8\u5e45\u5ea6\u7684\u9891\u7387\u5206\u91cf\u901a\u5e38\u6807\u793a\u7740\u56fe\u50cf\u4e2d\u5f3a\u70c8\u7684\u53d8\u5316\u6216\u8fb9\u7f18\u3002"),(0,m.kt)("li",{parentName:"ul"},"\u5e73\u79fb\u4e0d\u53d8\u6027\uff1a\u5085\u91cc\u53f6\u53d8\u6362\u5177\u6709\u5e73\u79fb\u4e0d\u53d8\u6027\uff0c\u8fd9\u610f\u5473\u7740\u5728\u9891\u57df\u4e2d\u56fe\u50cf\u7684\u5e73\u79fb\u5bf9\u5e94\u4e8e\u5e45\u5ea6\u8c31\u4e2d\u76f8\u4f4d\u7684\u6539\u53d8\u800c\u4e0d\u5f71\u54cd\u5e45\u5ea6\u8c31\u672c\u8eab\u3002"))),(0,m.kt)("li",{parentName:"ol"},(0,m.kt)("p",{parentName:"li"},"\u5982\u4f55\u5728\u9891\u57df\u5b9e\u73b0\u56fe\u50cf\u5e73\u6ed1"),(0,m.kt)("ol",{parentName:"li"},(0,m.kt)("li",{parentName:"ol"},"\u5229\u7528\u5085\u91cc\u53f6\u53d8\u6362\u5c06\u56fe\u50cf\u4ece\u7a7a\u57df\u8f6c\u6362\u4e3a\u9891\u57df\uff1b"),(0,m.kt)("li",{parentName:"ol"},"\u5c06\u9891\u57df\u56fe\u50cf\u8fdb\u884c\u4e2d\u5fc3\u504f\u79fb\uff0c\u4f7f\u5f97\u4f4e\u9891\u4fe1\u606f\u5728\u9891\u8c31\u4e2d\u592e\uff1b"),(0,m.kt)("li",{parentName:"ol"},"\u5229\u7528\u6ee4\u6ce2\u51fd\u6570\u751f\u6210\u4e00\u4e2a\u4e0e\u56fe\u50cf\u5927\u5c0f\u76f8\u540c\u7684\u4e8c\u7ef4\u9891\u57df\u77e9\u9635\uff1b"),(0,m.kt)("li",{parentName:"ol"},"\u5c06\u56fe\u50cf\u7684\u9891\u57df\u4e0e\u6ee4\u6ce2\u5668\u7684\u9891\u57df\u76f8\u5e94\u76f8\u4e58\uff1b"),(0,m.kt)("li",{parentName:"ol"},"\u5c06\u76f8\u4e58\u540e\u7684\u9891\u57df\u518d\u6b21\u9006\u5e73\u79fb\u5230\u9891\u57df\u7684\u539f\u59cb\u4f4d\u7f6e\uff1b"),(0,m.kt)("li",{parentName:"ol"},"\u5c06\u5f97\u5230\u7684\u9891\u57df\u8fdb\u884c\u9006\u5085\u91cc\u53f6\u53d8\u6362\uff0c\u5f97\u5230\u6ee4\u6ce2\u540e\u7684\u7a7a\u57df\u56fe\u50cf\u3002"))),(0,m.kt)("li",{parentName:"ol"},(0,m.kt)("p",{parentName:"li"},"\u4e00\u9636\u8fb9\u7f18\u68c0\u6d4b\u7b97\u5b50\u4e0eLaplace\u7b97\u5b50\u7684\u5f02\u540c\u3002"),(0,m.kt)("ul",{parentName:"li"},(0,m.kt)("li",{parentName:"ul"},"\u76f8\u540c\u70b9\uff1a\u90fd\u53ef\u4ee5\u68c0\u6d4b\u8fb9\u7f18\u5e76\u4e14\u5bf9\u566a\u58f0\u654f\u611f"),(0,m.kt)("li",{parentName:"ul"},"\u4e0d\u540c\u70b9\uff1a\u4e00\u9636\u8fb9\u7f18\u68c0\u6d4b\u7b97\u5b50\u68c0\u6d4b\u5230\u7684\u8fb9\u7f18\u90fd\u6709\u660e\u786e\u7684\u65b9\u5411\uff0c\u800cLaplace\u7b97\u5b50\u5bf9\u5404\u79cd\u65b9\u5411\u7684\u8fb9\u7f18\u90fd\u6709\u8f83\u597d\u7684\u54cd\u5e94"))),(0,m.kt)("li",{parentName:"ol"},(0,m.kt)("p",{parentName:"li"},"\u5df2\u77e5\u4e00\u5e45\u56fe\u50cf\u53d7\u5230\u52a0\u6027\u968f\u673a\u566a\u58f0\u6c61\u67d3\uff0c\u5206\u6790\u5e76\u5199\u51fa\u4e09\u79cd\u53bb\u9664\u6216\u964d\u4f4e\u566a\u58f0\u7684\u65b9\u6cd5\u3002"),(0,m.kt)("p",{parentName:"li"},"\u7a7a\u57df\u6ee4\u6ce2\uff08\u5747\u503c\u6ee4\u6ce2\u3001\u4e2d\u503c\u6ee4\u6ce2\uff09\uff0c\u9891\u57df\u6ee4\u6ce2\uff08\u5df4\u7279\u6c83\u65af\u4f4e\u901a\u6ee4\u6ce2\uff09\uff0c\u56fe\u50cf\u6062\u590d\u6280\u672f\u3002")),(0,m.kt)("li",{parentName:"ol"},(0,m.kt)("p",{parentName:"li"},"\u5206\u6790\u91c7\u6837\u548c\u91cf\u5316\u7684\u8fc7\u7a0b\uff0c\u4ee5\u53ca\u5b83\u4eec\u5bf9\u6570\u5b57\u5316\u56fe\u50cf\u8d28\u91cf\u7684\u5f71\u54cd\u3002"),(0,m.kt)("p",{parentName:"li"},"\u91c7\u6837\u662f\u628a\u7a7a\u95f4\u4e0a\u8fde\u7eed\u7684\u56fe\u50cf\u8f6c\u6362\u4e3a\u79bb\u6563\u7684\u62bd\u6837\u70b9\uff0c\u5373\u50cf\u7d20\u3002\u91cf\u5316\u5c06\u62bd\u6837\u540e\u6240\u5f97\u7684\u8fde\u7eed\u7684\u50cf\u7d20\u503c\u79bb\u6563\u5316\u4e3a\u6574\u6570\u503c\u3002"),(0,m.kt)("p",{parentName:"li"},"\u5bf9\u6570\u5b57\u5316\u56fe\u50cf\u8d28\u91cf\u7684\u5f71\u54cd\uff1a"),(0,m.kt)("p",{parentName:"li"},(0,m.kt)("strong",{parentName:"p"},"\u91c7\u6837\u95f4\u9694"),"\u8d8a\u5927\uff0c\u6240\u5f97\u56fe\u50cf\u50cf\u7d20\u6570\u8d8a\u5c11\uff0c\u56fe\u50cf\u7a7a\u95f4\u5206\u8fa8\u7387\u8d8a\u4f4e\uff0c\u8d28\u91cf\u8d8a\u5dee\u3002\u53cd\u4e4b\u56fe\u50cf\u8d28\u91cf\u597d\uff0c\u4f46\u6570\u636e\u91cf\u5927\u3002"),(0,m.kt)("p",{parentName:"li"},(0,m.kt)("strong",{parentName:"p"},"\u91cf\u5316\u7b49\u7ea7"),"\u8d8a\u591a\uff08\u7070\u5ea6\u7ea7\u6570\u8d8a\u591a\uff09\uff0c\u6240\u5f97\u56fe\u50cf\u5c42\u6b21\u8d8a\u4e30\u5bcc\uff0c\u7070\u5ea6\u5206\u8fa8\u7387\u8d8a\u9ad8\uff0c\u8d28\u91cf\u8d8a\u597d\uff0c\u4f46\u6570\u636e\u91cf\u5927\u3002\u53cd\u4e4b\uff0c\u56fe\u50cf\u8d28\u91cf\u5dee\uff0c\u4f1a\u51fa\u73b0\u5047\u8f6e\u5ed3\u73b0\u8c61\uff0c\u4f46\u6570\u636e\u91cf\u5c0f\u3002")),(0,m.kt)("li",{parentName:"ol"},(0,m.kt)("p",{parentName:"li"},"\u56fe\u50cf\u566a\u58f0\u7684\u7279\u70b9\u3002"),(0,m.kt)("ul",{parentName:"li"},(0,m.kt)("li",{parentName:"ul"},"\u968f\u673a\u6027"),(0,m.kt)("li",{parentName:"ul"},"\u53e0\u52a0\u6027"),(0,m.kt)("li",{parentName:"ul"},"\u566a\u58f0\u4e0e\u56fe\u50cf\u4e4b\u95f4\u5177\u6709\u76f8\u5173\u6027"))),(0,m.kt)("li",{parentName:"ol"},(0,m.kt)("p",{parentName:"li"},"\u4ec0\u4e48\u662f\u7ebf\u6027\u7070\u5ea6\u62c9\u4f38\uff1f\u7ebf\u6027\u7070\u5ea6\u62c9\u4f38\u53ef\u4ee5\u5206\u4e3a\u51e0\u79cd\u60c5\u51b5\uff1f"),(0,m.kt)("p",{parentName:"li"},"\u7ebf\u6027\u7070\u5ea6\u62c9\u4f38\u662f\u5c06\u8f93\u5165\u56fe\u50cf\u7684\u7070\u5ea6\u503c\u7684\u52a8\u6001\u8303\u56f4\u6309\u7ebf\u6027\u5173\u7cfb\u62c9\u4f38\u6269\u5c55\u81f3\u6307\u5b9a\u8303\u56f4\u6216\u7070\u5ea6\u7684\u6574\u4e2a\u52a8\u6001\u8303\u56f4\u3002"),(0,m.kt)("p",{parentName:"li"},"\u7ebf\u6027\u62c9\u4f38\u53ef\u5206\u4e3a\u6309\u6bd4\u4f8b\u7ebf\u6027\u62c9\u4f38\u548c\u5206\u6bb5\u7ebf\u6027\u62c9\u4f38\u4e24\u79cd\u65b9\u6cd5\u3002\u540c\u65f6\uff0c\u6309\u6bd4\u4f8b\u7ebf\u6027\u62c9\u4f38\u53c8\u53ef\u4ee5\u5206\u4e3a\u5747\u5300\u7ebf\u6027\u62c9\u4f38\u4ee5\u53ca\u9650\u5e45\u7ebf\u6027\u62c9\u4f38\u3002")),(0,m.kt)("li",{parentName:"ol"},(0,m.kt)("p",{parentName:"li"},"\u4f2a\u5f69\u8272\u56fe\u50cf\u5904\u7406\u53ef\u4ee5\u5e94\u7528\u5728\u54ea\u4e9b\u65b9\u9762\uff1f"),(0,m.kt)("ul",{parentName:"li"},(0,m.kt)("li",{parentName:"ul"},"B\u8d85"),(0,m.kt)("li",{parentName:"ul"},"\u77f3\u6cb9\u5f00\u91c7"),(0,m.kt)("li",{parentName:"ul"},"\u5b89\u68c0")))))}c.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/en/assets/js/b28e7af0.bd2709b4.js b/en/assets/js/b28e7af0.bd2709b4.js new file mode 100644 index 000000000..80f0b17c2 --- /dev/null +++ b/en/assets/js/b28e7af0.bd2709b4.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunknpy_notebook=self.webpackChunknpy_notebook||[]).push([[618],{3905:(a,e,t)=>{t.d(e,{Zo:()=>i,kt:()=>h});var n=t(7294);function s(a,e,t){return e in a?Object.defineProperty(a,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):a[e]=t,a}function m(a,e){var t=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable}))),t.push.apply(t,n)}return t}function p(a){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?m(Object(t),!0).forEach((function(e){s(a,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(t)):m(Object(t)).forEach((function(e){Object.defineProperty(a,e,Object.getOwnPropertyDescriptor(t,e))}))}return a}function r(a,e){if(null==a)return{};var t,n,s=function(a,e){if(null==a)return{};var t,n,s={},m=Object.keys(a);for(n=0;n<m.length;n++)t=m[n],e.indexOf(t)>=0||(s[t]=a[t]);return s}(a,e);if(Object.getOwnPropertySymbols){var m=Object.getOwnPropertySymbols(a);for(n=0;n<m.length;n++)t=m[n],e.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(a,t)&&(s[t]=a[t])}return s}var l=n.createContext({}),N=function(a){var e=n.useContext(l),t=e;return a&&(t="function"==typeof a?a(e):p(p({},e),a)),t},i=function(a){var e=N(a.components);return n.createElement(l.Provider,{value:e},a.children)},o="mdxType",c={inlineCode:"code",wrapper:function(a){var e=a.children;return n.createElement(n.Fragment,{},e)}},k=n.forwardRef((function(a,e){var t=a.components,s=a.mdxType,m=a.originalType,l=a.parentName,i=r(a,["components","mdxType","originalType","parentName"]),o=N(t),k=s,h=o["".concat(l,".").concat(k)]||o[k]||c[k]||m;return t?n.createElement(h,p(p({ref:e},i),{},{components:t})):n.createElement(h,p({ref:e},i))}));function h(a,e){var t=arguments,s=e&&e.mdxType;if("string"==typeof a||s){var m=t.length,p=new Array(m);p[0]=k;var r={};for(var l in e)hasOwnProperty.call(e,l)&&(r[l]=e[l]);r.originalType=a,r[o]="string"==typeof a?a:s,p[1]=r;for(var N=2;N<m;N++)p[N]=t[N];return n.createElement.apply(null,p)}return n.createElement.apply(null,t)}k.displayName="MDXCreateElement"},8069:(a,e,t)=>{t.r(e),t.d(e,{assets:()=>l,contentTitle:()=>p,default:()=>c,frontMatter:()=>m,metadata:()=>r,toc:()=>N});var n=t(7462),s=(t(7294),t(3905));const m={},p="\u67e5\u6f0f\u8865\u7f3a",r={unversionedId:"Deep-Learning/Fill-The-Gaps",id:"Deep-Learning/Fill-The-Gaps",title:"\u67e5\u6f0f\u8865\u7f3a",description:"\u8fd9\u91cc\u8bb0\u5f55\u7740\u5728\u5b66\u4e60\u8fc7\u7a0b\u4e2d\u53d1\u73b0\u7684\u7406\u89e3\u6216\u64cd\u4f5c\u65b9\u9762\u51fa\u73b0\u7684\u9519\u8bef\uff0c\u6e29\u6545\u77e5\u65b0\u3002",source:"@site/docs/Deep-Learning/2-Fill-The-Gaps.md",sourceDirName:"Deep-Learning",slug:"/Deep-Learning/Fill-The-Gaps",permalink:"/en/docs/Deep-Learning/Fill-The-Gaps",draft:!1,tags:[],version:"current",sidebarPosition:2,frontMatter:{},sidebar:"deep_learning",previous:{title:"Welcome",permalink:"/en/docs/Deep-Learning/intro"},next:{title:"AlexNet",permalink:"/en/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/AlexNet"}},l={},N=[{value:"Python\u7684\u5e7f\u64ad\u673a\u5236",id:"python\u7684\u5e7f\u64ad\u673a\u5236",level:2},{value:"\u70b9\u79ef\uff08dot product\uff09\u4e0e\u77e9\u9635\u4e58\u6cd5\uff08matmul product\uff09",id:"\u70b9\u79efdot-product\u4e0e\u77e9\u9635\u4e58\u6cd5matmul-product",level:2},{value:"zip\u51fd\u6570\u4e0e\u89e3\u538b\u64cd\u4f5c*",id:"zip\u51fd\u6570\u4e0e\u89e3\u538b\u64cd\u4f5c",level:2},{value:"\u5bf9batch_first\u53c2\u6570\u7684\u7406\u89e3",id:"\u5bf9batch_first\u53c2\u6570\u7684\u7406\u89e3",level:2}],i={toc:N},o="wrapper";function c(a){let{components:e,...t}=a;return(0,s.kt)(o,(0,n.Z)({},i,t,{components:e,mdxType:"MDXLayout"}),(0,s.kt)("h1",{id:"\u67e5\u6f0f\u8865\u7f3a"},"\u67e5\u6f0f\u8865\u7f3a"),(0,s.kt)("admonition",{type:"important"},(0,s.kt)("p",{parentName:"admonition"},"\u8fd9\u91cc\u8bb0\u5f55\u7740\u5728\u5b66\u4e60\u8fc7\u7a0b\u4e2d\u53d1\u73b0\u7684\u7406\u89e3\u6216\u64cd\u4f5c\u65b9\u9762\u51fa\u73b0\u7684\u9519\u8bef\uff0c\u6e29\u6545\u77e5\u65b0\u3002")),(0,s.kt)("h2",{id:"python\u7684\u5e7f\u64ad\u673a\u5236"},"Python\u7684\u5e7f\u64ad\u673a\u5236"),(0,s.kt)("ol",null,(0,s.kt)("li",{parentName:"ol"},(0,s.kt)("p",{parentName:"li"},"\u8fdb\u884c\u5e7f\u64ad\u7684\u6761\u4ef6\uff1a\u4e24\u4e2a\u77e9\u9635\u7684",(0,s.kt)("strong",{parentName:"p"},"\u540e\u7f18\u7ef4\u5ea6\u76f8\u540c\u6216\u5176\u4e2d\u4e00\u65b9\u7684\u7ef4\u5ea6\u4e3a1"),"\u3002"),(0,s.kt)("ol",{parentName:"li"},(0,s.kt)("li",{parentName:"ol"},"\u540e\u7f18\u7ef4\u5ea6\u76f8\u540c\uff1aA\u4e3a\uff083\uff0c4\uff0c5\uff09\u7684\u4e09\u7ef4\u6570\u636e\uff0cB\u4e3a\uff084\uff0c5\uff09\u7684\u4e8c\u7ef4\u6570\u7ec4\u3002\u7531\u4e8eA\u548cB\u7684\u540e\u7f18\u7ef4\u5ea6\u90fd\u4e3a\uff084\uff0c5\uff09\uff0c\u6240\u4ee5\u53ef\u4ee5\u8fdb\u884c\u5e7f\u64ad\u3002\u540c\u7406\uff0c\u5f53A\u4e3a\uff083\uff0c4\uff09\u7684\u4e8c\u7ef4\u6570\u7ec4\uff0cB\u4e3a\uff084\uff0c\uff09\u7684\u6570\u7ec4\uff0c\u4ed6\u4eec\u7684\u540e\u7f18\u7ef4\u5ea6\u90fd\u662f4\uff0c\u6240\u4ee5\u53ef\u4ee5\u8fdb\u884c\u5e7f\u64ad\u3002"),(0,s.kt)("li",{parentName:"ol"},"\u540e\u7f18\u7ef4\u5ea6\u4e2d\u6709\u4e00\u65b9\u7ef4\u5ea6\u4e3a1\uff1aA\u4e3a\uff084\uff0c5\uff09\u7684\u4e8c\u7ef4\u6570\u7ec4\uff0cB\u4e3a\uff084\uff0c1\uff09\u7684\u4e8c\u7ef4\u6570\u7ec4\uff0c\u5176\u4e2d\u4e00\u65b9\u7ef4\u5ea6\u4e3a1\uff0c\u53ef\u4ee5\u8fdb\u884c\u5e7f\u64ad\u3002"))),(0,s.kt)("li",{parentName:"ol"},(0,s.kt)("p",{parentName:"li"},"\u5e7f\u64ad\u7684\u539f\u7406\uff1a\u5728\u8fd0\u7b97\u8fc7\u7a0b\u4e2d\uff0cPython\u9010\u6b65\u5bf9\u6570\u7ec4\u8fdb\u884c\u5e7f\u64ad\uff0c\u5e76\u4e0d\u8fdb\u884c\u5b9e\u9645\u7684\u590d\u5236\u64cd\u4f5c\uff0c\u8282\u7701\u5185\u5b58\u3002"),(0,s.kt)("p",{parentName:"li"},"\u4ee5\u4e0b\u662f\u4e3e\u51fa\u5177\u4f53\u4f8b\u5b50\u8fdb\u884c\u5206\u6790\uff1a"),(0,s.kt)("pre",{parentName:"li"},(0,s.kt)("code",{parentName:"pre",className:"language-python"},'import numpy as np\nimport torch\n\nx = torch.tensor(np.arange(9), dtype=torch.float32)\nx = torch.reshape(x, (3, 3))\nprint(x)\n\nx1 = x[:, :, None] # (3, 3, 1)\nprint(x1)\n"""\ntensor([[[0.],\n [1.],\n [2.]],\n [[3.],\n [4.],\n [5.]],\n [[6.],\n [7.],\n [8.]]])\n"""\n\nx2 = x[:, None] # (3, 1, 3)\nprint(x2)\n"""\ntensor([[[0., 1., 2.]],\n [[3., 4., 5.]],\n [[6., 7., 8.]]])\n"""\n\noutput = x1 + x2\nprint(output)\n"""\ntensor([[[ 0., 1., 2.],\n [ 1., 2., 3.],\n [ 2., 3., 4.]],\n [[ 6., 7., 8.],\n [ 7., 8., 9.],\n [ 8., 9., 10.]],\n [[12., 13., 14.],\n [13., 14., 15.],\n [14., 15., 16.]]])\n"""\n\n')),(0,s.kt)("p",{parentName:"li"},"\u7531\u4e8ex1\u4e0ex2\u5728",(0,s.kt)("strong",{parentName:"p"},"\u7b2c0\u7ef4\u5ea6\u4e0a\u7ef4\u5ea6\u76f8\u540c"),"\uff0c\u6240\u4ee5Python\u53ef\u4ee5",(0,s.kt)("strong",{parentName:"p"},"\u76f4\u63a5\u8fdb\u884c\u9010\u5143\u7d20\u76f8\u52a0"),"\uff0c\u5373\u4f9d\u6b21\u8fdb\u884c\u5982\u4e0b\u8fd0\u7b97"),(0,s.kt)("div",{parentName:"li",className:"math math-display"},(0,s.kt)("span",{parentName:"div",className:"katex-display"},(0,s.kt)("span",{parentName:"span",className:"katex"},(0,s.kt)("span",{parentName:"span",className:"katex-mathml"},(0,s.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,s.kt)("semantics",{parentName:"math"},(0,s.kt)("mtable",{parentName:"semantics",width:"100%"},(0,s.kt)("mtr",{parentName:"mtable"},(0,s.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,s.kt)("mtd",{parentName:"mtr"},(0,s.kt)("mrow",{parentName:"mtd"},(0,s.kt)("mi",{parentName:"mrow"},"x"),(0,s.kt)("mn",{parentName:"mrow"},"1"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},"["),(0,s.kt)("mn",{parentName:"mrow"},"0"),(0,s.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,s.kt)("mo",{parentName:"mrow"},":"),(0,s.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,s.kt)("mo",{parentName:"mrow"},":"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},"]"),(0,s.kt)("mo",{parentName:"mrow"},"+"),(0,s.kt)("mi",{parentName:"mrow"},"x"),(0,s.kt)("mn",{parentName:"mrow"},"2"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},"["),(0,s.kt)("mn",{parentName:"mrow"},"0"),(0,s.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,s.kt)("mo",{parentName:"mrow"},":"),(0,s.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,s.kt)("mo",{parentName:"mrow"},":"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},"]"))),(0,s.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,s.kt)("mtd",{parentName:"mtr"},(0,s.kt)("mtext",{parentName:"mtd"},"(1)")))),(0,s.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"x1[0, :, :] + x2[0, :, :] \\tag{1}")))),(0,s.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal"},"x"),(0,s.kt)("span",{parentName:"span",className:"mord"},"1"),(0,s.kt)("span",{parentName:"span",className:"mopen"},"["),(0,s.kt)("span",{parentName:"span",className:"mord"},"0"),(0,s.kt)("span",{parentName:"span",className:"mpunct"},","),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,s.kt)("span",{parentName:"span",className:"mrel"},":")),(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"0.625em",verticalAlign:"-0.1944em"}}),(0,s.kt)("span",{parentName:"span",className:"mpunct"},","),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,s.kt)("span",{parentName:"span",className:"mrel"},":")),(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,s.kt)("span",{parentName:"span",className:"mclose"},"]"),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,s.kt)("span",{parentName:"span",className:"mbin"},"+"),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}})),(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal"},"x"),(0,s.kt)("span",{parentName:"span",className:"mord"},"2"),(0,s.kt)("span",{parentName:"span",className:"mopen"},"["),(0,s.kt)("span",{parentName:"span",className:"mord"},"0"),(0,s.kt)("span",{parentName:"span",className:"mpunct"},","),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,s.kt)("span",{parentName:"span",className:"mrel"},":")),(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"0.625em",verticalAlign:"-0.1944em"}}),(0,s.kt)("span",{parentName:"span",className:"mpunct"},","),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,s.kt)("span",{parentName:"span",className:"mrel"},":")),(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,s.kt)("span",{parentName:"span",className:"mclose"},"]")),(0,s.kt)("span",{parentName:"span",className:"tag"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,s.kt)("span",{parentName:"span",className:"mord text"},(0,s.kt)("span",{parentName:"span",className:"mord"},"("),(0,s.kt)("span",{parentName:"span",className:"mord"},(0,s.kt)("span",{parentName:"span",className:"mord"},"1")),(0,s.kt)("span",{parentName:"span",className:"mord"},")"))))))),(0,s.kt)("div",{parentName:"li",className:"math math-display"},(0,s.kt)("span",{parentName:"div",className:"katex-display"},(0,s.kt)("span",{parentName:"span",className:"katex"},(0,s.kt)("span",{parentName:"span",className:"katex-mathml"},(0,s.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,s.kt)("semantics",{parentName:"math"},(0,s.kt)("mtable",{parentName:"semantics",width:"100%"},(0,s.kt)("mtr",{parentName:"mtable"},(0,s.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,s.kt)("mtd",{parentName:"mtr"},(0,s.kt)("mrow",{parentName:"mtd"},(0,s.kt)("mi",{parentName:"mrow"},"x"),(0,s.kt)("mn",{parentName:"mrow"},"1"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},"["),(0,s.kt)("mn",{parentName:"mrow"},"1"),(0,s.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,s.kt)("mo",{parentName:"mrow"},":"),(0,s.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,s.kt)("mo",{parentName:"mrow"},":"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},"]"),(0,s.kt)("mo",{parentName:"mrow"},"+"),(0,s.kt)("mi",{parentName:"mrow"},"x"),(0,s.kt)("mn",{parentName:"mrow"},"2"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},"["),(0,s.kt)("mn",{parentName:"mrow"},"1"),(0,s.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,s.kt)("mo",{parentName:"mrow"},":"),(0,s.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,s.kt)("mo",{parentName:"mrow"},":"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},"]"))),(0,s.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,s.kt)("mtd",{parentName:"mtr"},(0,s.kt)("mtext",{parentName:"mtd"},"(2)")))),(0,s.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"x1[1, :, :] + x2[1, :, :] \\tag{2}")))),(0,s.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal"},"x"),(0,s.kt)("span",{parentName:"span",className:"mord"},"1"),(0,s.kt)("span",{parentName:"span",className:"mopen"},"["),(0,s.kt)("span",{parentName:"span",className:"mord"},"1"),(0,s.kt)("span",{parentName:"span",className:"mpunct"},","),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,s.kt)("span",{parentName:"span",className:"mrel"},":")),(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"0.625em",verticalAlign:"-0.1944em"}}),(0,s.kt)("span",{parentName:"span",className:"mpunct"},","),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,s.kt)("span",{parentName:"span",className:"mrel"},":")),(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,s.kt)("span",{parentName:"span",className:"mclose"},"]"),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,s.kt)("span",{parentName:"span",className:"mbin"},"+"),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}})),(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal"},"x"),(0,s.kt)("span",{parentName:"span",className:"mord"},"2"),(0,s.kt)("span",{parentName:"span",className:"mopen"},"["),(0,s.kt)("span",{parentName:"span",className:"mord"},"1"),(0,s.kt)("span",{parentName:"span",className:"mpunct"},","),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,s.kt)("span",{parentName:"span",className:"mrel"},":")),(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"0.625em",verticalAlign:"-0.1944em"}}),(0,s.kt)("span",{parentName:"span",className:"mpunct"},","),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,s.kt)("span",{parentName:"span",className:"mrel"},":")),(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,s.kt)("span",{parentName:"span",className:"mclose"},"]")),(0,s.kt)("span",{parentName:"span",className:"tag"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,s.kt)("span",{parentName:"span",className:"mord text"},(0,s.kt)("span",{parentName:"span",className:"mord"},"("),(0,s.kt)("span",{parentName:"span",className:"mord"},(0,s.kt)("span",{parentName:"span",className:"mord"},"2")),(0,s.kt)("span",{parentName:"span",className:"mord"},")"))))))),(0,s.kt)("div",{parentName:"li",className:"math math-display"},(0,s.kt)("span",{parentName:"div",className:"katex-display"},(0,s.kt)("span",{parentName:"span",className:"katex"},(0,s.kt)("span",{parentName:"span",className:"katex-mathml"},(0,s.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,s.kt)("semantics",{parentName:"math"},(0,s.kt)("mtable",{parentName:"semantics",width:"100%"},(0,s.kt)("mtr",{parentName:"mtable"},(0,s.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,s.kt)("mtd",{parentName:"mtr"},(0,s.kt)("mrow",{parentName:"mtd"},(0,s.kt)("mi",{parentName:"mrow"},"x"),(0,s.kt)("mn",{parentName:"mrow"},"1"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},"["),(0,s.kt)("mn",{parentName:"mrow"},"2"),(0,s.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,s.kt)("mo",{parentName:"mrow"},":"),(0,s.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,s.kt)("mo",{parentName:"mrow"},":"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},"]"),(0,s.kt)("mo",{parentName:"mrow"},"+"),(0,s.kt)("mi",{parentName:"mrow"},"x"),(0,s.kt)("mn",{parentName:"mrow"},"2"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},"["),(0,s.kt)("mn",{parentName:"mrow"},"2"),(0,s.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,s.kt)("mo",{parentName:"mrow"},":"),(0,s.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,s.kt)("mo",{parentName:"mrow"},":"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},"]"))),(0,s.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,s.kt)("mtd",{parentName:"mtr"},(0,s.kt)("mtext",{parentName:"mtd"},"(3)")))),(0,s.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"x1[2, :, :] + x2[2, :, :] \\tag{3}")))),(0,s.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal"},"x"),(0,s.kt)("span",{parentName:"span",className:"mord"},"1"),(0,s.kt)("span",{parentName:"span",className:"mopen"},"["),(0,s.kt)("span",{parentName:"span",className:"mord"},"2"),(0,s.kt)("span",{parentName:"span",className:"mpunct"},","),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,s.kt)("span",{parentName:"span",className:"mrel"},":")),(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"0.625em",verticalAlign:"-0.1944em"}}),(0,s.kt)("span",{parentName:"span",className:"mpunct"},","),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,s.kt)("span",{parentName:"span",className:"mrel"},":")),(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,s.kt)("span",{parentName:"span",className:"mclose"},"]"),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,s.kt)("span",{parentName:"span",className:"mbin"},"+"),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}})),(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal"},"x"),(0,s.kt)("span",{parentName:"span",className:"mord"},"2"),(0,s.kt)("span",{parentName:"span",className:"mopen"},"["),(0,s.kt)("span",{parentName:"span",className:"mord"},"2"),(0,s.kt)("span",{parentName:"span",className:"mpunct"},","),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,s.kt)("span",{parentName:"span",className:"mrel"},":")),(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"0.625em",verticalAlign:"-0.1944em"}}),(0,s.kt)("span",{parentName:"span",className:"mpunct"},","),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,s.kt)("span",{parentName:"span",className:"mrel"},":")),(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,s.kt)("span",{parentName:"span",className:"mclose"},"]")),(0,s.kt)("span",{parentName:"span",className:"tag"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,s.kt)("span",{parentName:"span",className:"mord text"},(0,s.kt)("span",{parentName:"span",className:"mord"},"("),(0,s.kt)("span",{parentName:"span",className:"mord"},(0,s.kt)("span",{parentName:"span",className:"mord"},"3")),(0,s.kt)("span",{parentName:"span",className:"mord"},")"))))))))),(0,s.kt)("p",null," \u4f46\u5728\u7b2c0\u7ef4\u5ea6\u7684\u76f8\u52a0\u8fc7\u7a0b\u4e2d\u51fa\u73b0\u4e86shape\u4e3a(3, 1)\u7684\u77e9\u9635\u4e0eshape\u4e3a(1, 3)\u7684\u77e9\u9635\u76f8\u52a0\u7684\u60c5\u51b5\uff0c\u6b64\u65f6\u8fdb\u884c\u5e7f\u64ad\uff0c\u5c06(3, 1)\u7684\u6bcf\u4e00\u5217\u590d\u5236\u4e09\u6b21\u4e3a(3, 3)\uff0c\u5c06(1, 3)\u7684\u6bcf\u4e00\u884c\u590d\u5236\u4e09\u6b21\u4e3a(3, 3)\uff0c\u518d\u8fdb\u884c\u9010\u5143\u7d20\u76f8\u52a0\u3002"),(0,s.kt)("p",null," \u5176\u5b9e\uff0c\u4e0a\u8ff0\u7684\u8fc7\u7a0b\u8fd8\u53ef\u4ee5\u518d\u7ec6\u5206\u4e3a\uff0cx1","[0, 0, :]","\u4e0ex2","[0, 0, :]","\u76f8\u52a0\u65f6\u51fa\u73b0\u4e86\u7b2c\u4e00\u6b21\u5e7f\u64ad\uff0c\u5c06x1","[0, 0, :]","\u590d\u5236\u4e86\u4e09\u6b21\u4e0ex2","[0,0, :]","\u5b8c\u6210\u76f8\u52a0\uff0c\u8fd9\u91cc\u4e0d\u518d\u8d58\u8ff0\uff0c\u6700\u7ec8\u60f3\u8868\u8fbe\u7684\u539f\u7406\u662f",(0,s.kt)("strong",{parentName:"p"},"\u5e7f\u64ad\u673a\u5236\u662f\u5728\u8fd0\u7b97\u8fc7\u7a0b\u5f53\u4e2d\u8fdb\u884c\u7684\uff0c\u5e76\u975e\u4e00\u6b21\u6027\u5c06\u4e8c\u8005\u5168\u90e8\u590d\u5236\u4e3a\u5bf9\u5e94\u7684\u6700\u5c0f\u516c\u500d\u6570\u5f62\u72b6\u540e\u518d\u8fdb\u884c\u8fd0\u7b97"),"\u3002"),(0,s.kt)("h2",{id:"\u70b9\u79efdot-product\u4e0e\u77e9\u9635\u4e58\u6cd5matmul-product"},"\u70b9\u79ef\uff08dot product\uff09\u4e0e\u77e9\u9635\u4e58\u6cd5\uff08matmul product\uff09"),(0,s.kt)("ol",null,(0,s.kt)("li",{parentName:"ol"},"\u70b9\u79ef\u5728Python\u4e2d\u5bf9\u5e94\u7684\u8fd0\u7b97\u7b26\u4e3a*\uff0c\u8fdb\u884c\u77e9\u9635\u4e4b\u95f4\u7684\u9010\u5143\u7d20\u4e58\u6cd5\u3002\u5728\u70b9\u79ef\u8fd0\u7b97\u4e2d\uff0c\u8fd0\u7b97\u77e9\u9635\u4e8c\u8005\u5f62\u72b6\u4e0d\u4e00\u6837\u65f6\u53ef\u80fd\u6d89\u53ca\u5230\u5e7f\u64ad\u673a\u5236\uff1b"),(0,s.kt)("li",{parentName:"ol"},"\u77e9\u9635\u4e58\u6cd5\u5728Python\u4e2d\u5bf9\u5e94\u7684\u8fd0\u7b97\u7b26\u4e3a@\uff0c\u8fdb\u884c\u5e38\u89c4\u77e9\u9635\u4e58\u6cd5\u3002\u9075\u5b88\u5de6\u77e9\u9635\u7684\u5217\u6570\u5fc5\u987b\u7b49\u4e8e\u53f3\u77e9\u9635\u7684\u884c\u6570\uff0c\u4e14\u8f93\u51fa\u77e9\u9635\u7684\u884c\u6570\u7b49\u4e8e\u5de6\u77e9\u9635\u7684\u884c\u6570\u3001\u8f93\u51fa\u77e9\u9635\u7684\u5217\u6570\u7b49\u4e8e\u53f3\u77e9\u9635\u7684\u5217\u6570\u7684\u89c4\u5219\u3002")),(0,s.kt)("h2",{id:"zip\u51fd\u6570\u4e0e\u89e3\u538b\u64cd\u4f5c"},"zip\u51fd\u6570\u4e0e\u89e3\u538b\u64cd\u4f5c*"),(0,s.kt)("p",null,"\u5f53\u4f60\u6709\u591a\u4e2a\u5217\u8868\uff08\u6216\u5176\u4ed6\u53ef\u8fed\u4ee3\u5bf9\u8c61\uff09\u65f6\uff0c",(0,s.kt)("inlineCode",{parentName:"p"},"zip"),"\u51fd\u6570\u53ef\u4ee5\u5c06\u5b83\u4eec\u9010\u4e2a\u914d\u5bf9\u6210\u5143\u7ec4\u3002\u800c",(0,s.kt)("inlineCode",{parentName:"p"},"*"),"\u64cd\u4f5c\u7b26\u7528\u4e8e\u89e3\u538b\u5143\u7ec4\uff0c\u5c06\u5143\u7ec4\u4e2d\u7684\u5143\u7d20\u5206\u522b\u4f5c\u4e3a\u53c2\u6570\u4f20\u9012\u7ed9\u51fd\u6570\u3002"),(0,s.kt)("p",null,"\u4ee5\u4e0b\u662f\u4e00\u4e2a\u7b80\u5355\u7684\u4f8b\u5b50\uff1a"),(0,s.kt)("pre",null,(0,s.kt)("code",{parentName:"pre",className:"language-python"},"# zip\u51fd\u6570\u7684\u4f8b\u5b50\nlist1 = [1, 2, 3]\nlist2 = ['a', 'b', 'c']\nlist3 = ['x', 'y', 'z']\n\n# \u4f7f\u7528zip\u5c06\u591a\u4e2a\u5217\u8868\u914d\u5bf9\u6210\u5143\u7ec4\nzipped_lists = zip(list1, list2, list3)\n\n# \u6253\u5370\u914d\u5bf9\u540e\u7684\u5143\u7ec4\nfor item in zipped_lists:\n print(item)\n")),(0,s.kt)("p",null,"\u8f93\u51fa\uff1a"),(0,s.kt)("pre",null,(0,s.kt)("code",{parentName:"pre"},"(1, 'a', 'x')\n(2, 'b', 'y')\n(3, 'c', 'z')\n")),(0,s.kt)("p",null,"\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c",(0,s.kt)("inlineCode",{parentName:"p"},"zip"),"\u5c06",(0,s.kt)("inlineCode",{parentName:"p"},"list1"),"\u3001",(0,s.kt)("inlineCode",{parentName:"p"},"list2"),"\u548c",(0,s.kt)("inlineCode",{parentName:"p"},"list3"),"\u4e2d\u76f8\u540c\u4f4d\u7f6e\u7684\u5143\u7d20\u7ec4\u5408\u6210\u5143\u7ec4\u3002"),(0,s.kt)("p",null,"\u63a5\u4e0b\u6765\uff0c\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528 ",(0,s.kt)("inlineCode",{parentName:"p"},"*")," \u64cd\u4f5c\u7b26\u89e3\u538b\u8fd9\u4e9b\u5143\u7ec4\uff1a"),(0,s.kt)("pre",null,(0,s.kt)("code",{parentName:"pre",className:"language-python"},"# *\u89e3\u538b\u64cd\u4f5c\u7684\u4f8b\u5b50\nunzipped_lists = zip(*zipped_lists)\n\n# \u6253\u5370\u89e3\u538b\u540e\u7684\u5217\u8868\nfor item in unzipped_lists:\n print(item)\n")),(0,s.kt)("p",null,"\u8f93\u51fa\uff1a"),(0,s.kt)("pre",null,(0,s.kt)("code",{parentName:"pre"},"(1, 2, 3)\n('a', 'b', 'c')\n('x', 'y', 'z')\n")),(0,s.kt)("p",null,"\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c",(0,s.kt)("inlineCode",{parentName:"p"},"*"),"\u64cd\u4f5c\u7b26\u5c06\u5148\u524d\u7531",(0,s.kt)("inlineCode",{parentName:"p"},"zip"),"\u7ec4\u5408\u7684\u5143\u7ec4\u89e3\u538b\uff0c\u5206\u522b\u653e\u56de\u539f\u59cb\u7684\u5217\u8868\u3002"),(0,s.kt)("h2",{id:"\u5bf9batch_first\u53c2\u6570\u7684\u7406\u89e3"},"\u5bf9batch_first\u53c2\u6570\u7684\u7406\u89e3"),(0,s.kt)("admonition",{title:"\u53c2\u8003\u8d44\u6599",type:"info"},(0,s.kt)("p",{parentName:"admonition"},(0,s.kt)("a",{parentName:"p",href:"https://www.jianshu.com/p/41c15d301542"},"https://www.jianshu.com/p/41c15d301542"))),(0,s.kt)("p",null,"\u5bf9\u4e8e\u4e0d\u540c\u7684\u7f51\u7edc\u5c42\uff0c\u8f93\u5165\u7684\u7ef4\u5ea6\u867d\u7136\u4e0d\u540c\uff0c\u4f46\u662f\u901a\u5e38\u8f93\u5165\u7684\u7b2c\u4e00\u4e2a\u7ef4\u5ea6\u90fd\u662fbatch_size\uff0c\u6bd4\u5982",(0,s.kt)("inlineCode",{parentName:"p"},"torch.nn.Linear"),"\u7684\u8f93\u5165",(0,s.kt)("inlineCode",{parentName:"p"},"(batch_size,in_features)"),"\uff0c",(0,s.kt)("inlineCode",{parentName:"p"},"torch.nn.Conv2d"),"\u7684\u8f93\u5165",(0,s.kt)("inlineCode",{parentName:"p"},"(batch_size, C, H, W)"),"\u3002"),(0,s.kt)("p",null,"\u800c",(0,s.kt)("inlineCode",{parentName:"p"},"RNN"),"\u7684\u8f93\u5165\u662f",(0,s.kt)("inlineCode",{parentName:"p"},"(seq_len, batch_size, input_size)"),"\uff0c",(0,s.kt)("inlineCode",{parentName:"p"},"batch_size"),"\u4f4d\u4e8e\u7b2c\u4e8c\u7ef4\u5ea6\uff01\u867d\u7136\u53ef\u4ee5\u5c06",(0,s.kt)("inlineCode",{parentName:"p"},"batch_size"),"\u548c\u5e8f\u5217\u957f\u5ea6",(0,s.kt)("inlineCode",{parentName:"p"},"seq_len"),"\u5bf9\u6362\u4f4d\u7f6e\uff0c\u6b64\u65f6",(0,s.kt)("strong",{parentName:"p"},"\u53ea\u9700\u4ee4batch_first=True"),"\u3002"),(0,s.kt)("p",null,"\u4f46\u662f",(0,s.kt)("strong",{parentName:"p"},"\u4e3a\u4ec0\u4e48RNN\u8f93\u5165\u9ed8\u8ba4\u4e0d\u662fbatch first=True\uff1f\u8fd9\u662f\u4e3a\u4e86\u4fbf\u4e8e\u5e76\u884c\u8ba1\u7b97"),"\u3002"),(0,s.kt)("p",null,"\u56e0\u4e3acuDNN\u4e2dRNN\u7684API\u5c31\u662fbatch_size\u5728\u7b2c\u4e8c\u7ef4\u5ea6\u3002\u8fdb\u4e00\u6b65\u8bb2\uff0c",(0,s.kt)("inlineCode",{parentName:"p"},"batch first"),"\u610f\u5473\u7740\u6a21\u578b\u7684\u8f93\u5165\uff08\u4e00\u4e2aTensor\uff09\u5728\u5185\u5b58\u4e2d\u5b58\u50a8\u65f6\uff0c\u5148\u5b58\u50a8\u7b2c\u4e00\u4e2asequence\uff0c\u518d\u5b58\u50a8\u7b2c\u4e8c\u4e2a\uff0c\u800c\u5982\u679c\u662f",(0,s.kt)("inlineCode",{parentName:"p"},"seq_len first"),"\uff0c\u6a21\u578b\u7684\u8f93\u5165\u5728\u5185\u5b58\u4e2d\uff0c\u5148\u5b58\u50a8\u6bcf\u4e00\u4e2asequence\u7684\u7b2c\u4e00\u4e2a\u5143\u7d20\uff0c\u7136\u540e\u662f\u7b2c\u4e8c\u4e2a\u5143\u7d20\uff0c\u4e24\u79cd\u533a\u522b\u5982\u4e0b\u56fe\u6240\u793a\uff1a"),(0,s.kt)("p",null,(0,s.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_images9136879-3948ad90daaf094a.png",alt:"img"})),(0,s.kt)("p",null,(0,s.kt)("strong",{parentName:"p"},(0,s.kt)("inlineCode",{parentName:"strong"},"seq_len first"),"\u610f\u5473\u7740\u4e0d\u540c\u5e8f\u5217\u4e2d\u540c\u4e00\u4e2a\u65f6\u523b\u5bf9\u5e94\u7684\u8f93\u5165\u5355\u5143\u5728\u5185\u5b58\u4e2d\u662f\u6bd7\u90bb\u7684\uff0c\u8fd9\u6837\u624d\u80fd\u505a\u5230\u771f\u6b63\u7684batch\u8ba1\u7b97\u3002")))}c.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/en/assets/js/b529c19d.6b7aeb6d.js b/en/assets/js/b529c19d.6b7aeb6d.js new file mode 100644 index 000000000..b0c37ea92 --- /dev/null +++ b/en/assets/js/b529c19d.6b7aeb6d.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunknpy_notebook=self.webpackChunknpy_notebook||[]).push([[1835],{3905:(a,e,t)=>{t.d(e,{Zo:()=>i,kt:()=>h});var s=t(7294);function m(a,e,t){return e in a?Object.defineProperty(a,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):a[e]=t,a}function n(a,e){var t=Object.keys(a);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(a);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable}))),t.push.apply(t,s)}return t}function p(a){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?n(Object(t),!0).forEach((function(e){m(a,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(t)):n(Object(t)).forEach((function(e){Object.defineProperty(a,e,Object.getOwnPropertyDescriptor(t,e))}))}return a}function r(a,e){if(null==a)return{};var t,s,m=function(a,e){if(null==a)return{};var t,s,m={},n=Object.keys(a);for(s=0;s<n.length;s++)t=n[s],e.indexOf(t)>=0||(m[t]=a[t]);return m}(a,e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);for(s=0;s<n.length;s++)t=n[s],e.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(a,t)&&(m[t]=a[t])}return m}var N=s.createContext({}),l=function(a){var e=s.useContext(N),t=e;return a&&(t="function"==typeof a?a(e):p(p({},e),a)),t},i=function(a){var e=l(a.components);return s.createElement(N.Provider,{value:e},a.children)},k="mdxType",c={inlineCode:"code",wrapper:function(a){var e=a.children;return s.createElement(s.Fragment,{},e)}},o=s.forwardRef((function(a,e){var t=a.components,m=a.mdxType,n=a.originalType,N=a.parentName,i=r(a,["components","mdxType","originalType","parentName"]),k=l(t),o=m,h=k["".concat(N,".").concat(o)]||k[o]||c[o]||n;return t?s.createElement(h,p(p({ref:e},i),{},{components:t})):s.createElement(h,p({ref:e},i))}));function h(a,e){var t=arguments,m=e&&e.mdxType;if("string"==typeof a||m){var n=t.length,p=new Array(n);p[0]=o;var r={};for(var N in e)hasOwnProperty.call(e,N)&&(r[N]=e[N]);r.originalType=a,r[k]="string"==typeof a?a:m,p[1]=r;for(var l=2;l<n;l++)p[l]=t[l];return s.createElement.apply(null,p)}return s.createElement.apply(null,t)}o.displayName="MDXCreateElement"},5470:(a,e,t)=>{t.r(e),t.d(e,{assets:()=>N,contentTitle:()=>p,default:()=>c,frontMatter:()=>n,metadata:()=>r,toc:()=>l});var s=t(7462),m=(t(7294),t(3905));const n={},p="\u6fc0\u6d3b\u51fd\u6570\u4e0eLoss\u7684\u68af\u5ea6",r={unversionedId:"Deep-Learning/\u57fa\u7840\u77e5\u8bc6/\u6fc0\u6d3b\u51fd\u6570\u4e0eLoss\u7684\u68af\u5ea6",id:"Deep-Learning/\u57fa\u7840\u77e5\u8bc6/\u6fc0\u6d3b\u51fd\u6570\u4e0eLoss\u7684\u68af\u5ea6",title:"\u6fc0\u6d3b\u51fd\u6570\u4e0eLoss\u7684\u68af\u5ea6",description:"\u4e00\u3001\u6fc0\u6d3b\u51fd\u6570",source:"@site/docs/Deep-Learning/3-\u57fa\u7840\u77e5\u8bc6/\u6fc0\u6d3b\u51fd\u6570\u4e0eLoss\u7684\u68af\u5ea6.md",sourceDirName:"Deep-Learning/3-\u57fa\u7840\u77e5\u8bc6",slug:"/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/\u6fc0\u6d3b\u51fd\u6570\u4e0eLoss\u7684\u68af\u5ea6",permalink:"/en/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/\u6fc0\u6d3b\u51fd\u6570\u4e0eLoss\u7684\u68af\u5ea6",draft:!1,tags:[],version:"current",frontMatter:{},sidebar:"deep_learning",previous:{title:"\u6df1\u5ea6\u53ef\u5206\u79bb\u5377\u79ef",permalink:"/en/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/\u6df1\u5ea6\u53ef\u5206\u79bb\u5377\u79ef"},next:{title:"Visdom\u53ef\u89c6\u5316",permalink:"/en/docs/Deep-Learning/\u5b9e\u6218\u7ec3\u4e60/Visdom Visualization"}},N={},l=[{value:"\u4e00\u3001\u6fc0\u6d3b\u51fd\u6570",id:"\u4e00\u6fc0\u6d3b\u51fd\u6570",level:2},{value:"1. Sigmoid\u51fd\u6570 / Logistic\u51fd\u6570",id:"1-sigmoid\u51fd\u6570--logistic\u51fd\u6570",level:3},{value:"2. \u7ebf\u6027\u6574\u6d41\u5355\u5143\uff08Rectified Linear Unit, ReLU\uff09",id:"2-\u7ebf\u6027\u6574\u6d41\u5355\u5143rectified-linear-unit-relu",level:3},{value:"\u4e8c\u3001\u635f\u5931\u51fd\u6570",id:"\u4e8c\u635f\u5931\u51fd\u6570",level:2},{value:"1. Mean Squared Error \u5747\u65b9\u8bef\u5dee",id:"1-mean-squared-error-\u5747\u65b9\u8bef\u5dee",level:3},{value:"2. Cross Entropy Loss \u4ea4\u53c9\u71b5\u635f\u5931",id:"2-cross-entropy-loss-\u4ea4\u53c9\u71b5\u635f\u5931",level:3},{value:"\u4fe1\u606f\u71b5",id:"\u4fe1\u606f\u71b5",level:4},{value:"KL\u6563\u5ea6",id:"kl\u6563\u5ea6",level:4},{value:"\u4ea4\u53c9\u71b5",id:"\u4ea4\u53c9\u71b5",level:4},{value:"PyTorch\u4e2d\u7684CrossEntropyLoss",id:"pytorch\u4e2d\u7684crossentropyloss",level:4}],i={toc:l},k="wrapper";function c(a){let{components:e,...t}=a;return(0,m.kt)(k,(0,s.Z)({},i,t,{components:e,mdxType:"MDXLayout"}),(0,m.kt)("h1",{id:"\u6fc0\u6d3b\u51fd\u6570\u4e0eloss\u7684\u68af\u5ea6"},"\u6fc0\u6d3b\u51fd\u6570\u4e0eLoss\u7684\u68af\u5ea6"),(0,m.kt)("h2",{id:"\u4e00\u6fc0\u6d3b\u51fd\u6570"},"\u4e00\u3001\u6fc0\u6d3b\u51fd\u6570"),(0,m.kt)("h3",{id:"1-sigmoid\u51fd\u6570--logistic\u51fd\u6570"},"1. Sigmoid\u51fd\u6570 / Logistic\u51fd\u6570"),(0,m.kt)("div",{className:"math math-display"},(0,m.kt)("span",{parentName:"div",className:"katex-display"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mtable",{parentName:"semantics",width:"100%"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mrow",{parentName:"mtd"},(0,m.kt)("mi",{parentName:"mrow"},"\u03c3"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"x"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("mfrac",{parentName:"mrow"},(0,m.kt)("mn",{parentName:"mfrac"},"1"),(0,m.kt)("mrow",{parentName:"mfrac"},(0,m.kt)("mn",{parentName:"mrow"},"1"),(0,m.kt)("mo",{parentName:"mrow"},"+"),(0,m.kt)("msup",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msup"},"e"),(0,m.kt)("mrow",{parentName:"msup"},(0,m.kt)("mo",{parentName:"mrow"},"\u2212"),(0,m.kt)("mi",{parentName:"mrow"},"x"))))))),(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mtext",{parentName:"mtd"},"(1)")))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"\\sigma(x) = \\frac{1}{1 + e^{-x}} \\tag{1}")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"\u03c3"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"x"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"="),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"2.0908em",verticalAlign:"-0.7693em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mopen nulldelimiter"}),(0,m.kt)("span",{parentName:"span",className:"mfrac"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.3214em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.314em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"1"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"+"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"e"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.6973em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.989em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"\u2212"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"x"))))))))))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.23em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"frac-line",style:{borderBottomWidth:"0.04em"}})),(0,m.kt)("span",{parentName:"span",style:{top:"-3.677em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"1")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.7693em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"mclose nulldelimiter"}))),(0,m.kt)("span",{parentName:"span",className:"tag"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"2.0908em",verticalAlign:"-0.7693em"}}),(0,m.kt)("span",{parentName:"span",className:"mord text"},(0,m.kt)("span",{parentName:"span",className:"mord"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"1")),(0,m.kt)("span",{parentName:"span",className:"mord"},")"))))))),(0,m.kt)("div",{className:"math math-display"},(0,m.kt)("span",{parentName:"div",className:"katex-display"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mtable",{parentName:"semantics",width:"100%"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mrow",{parentName:"mtd"},(0,m.kt)("mfrac",{parentName:"mrow"},(0,m.kt)("mrow",{parentName:"mfrac"},(0,m.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"d"),(0,m.kt)("mi",{parentName:"mrow"},"\u03c3")),(0,m.kt)("mrow",{parentName:"mfrac"},(0,m.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"d"),(0,m.kt)("mi",{parentName:"mrow"},"x"))),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("mi",{parentName:"mrow"},"\u03c3"),(0,m.kt)("mtext",{parentName:"mrow"},"\xa0"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mn",{parentName:"mrow"},"1"),(0,m.kt)("mo",{parentName:"mrow"},"\u2212"),(0,m.kt)("mi",{parentName:"mrow"},"\u03c3"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"))),(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mtext",{parentName:"mtd"},"(2)")))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"\\frac{{\\rm d}\\sigma}{{\\rm d}x} = \\sigma \\space (1 - \\sigma) \\tag{2}")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"2.0574em",verticalAlign:"-0.686em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mopen nulldelimiter"}),(0,m.kt)("span",{parentName:"span",className:"mfrac"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.3714em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.314em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathrm"},"d"))),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"x"))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.23em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"frac-line",style:{borderBottomWidth:"0.04em"}})),(0,m.kt)("span",{parentName:"span",style:{top:"-3.677em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathrm"},"d"))),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"\u03c3")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.686em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"mclose nulldelimiter"})),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"="),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"\u03c3"),(0,m.kt)("span",{parentName:"span",className:"mspace"},"\xa0"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},"1"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"\u2212"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"\u03c3"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")")),(0,m.kt)("span",{parentName:"span",className:"tag"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"2.0574em",verticalAlign:"-0.686em"}}),(0,m.kt)("span",{parentName:"span",className:"mord text"},(0,m.kt)("span",{parentName:"span",className:"mord"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"2")),(0,m.kt)("span",{parentName:"span",className:"mord"},")"))))))),(0,m.kt)("p",null," \u4f18\u70b9\uff1a\u53ef\u4ee5\u5c06\u6570\u636e\u538b\u7f29\u81f3[0, 1)\u533a\u95f4\u5185\uff0c\u6709\u8f83\u5927\u5b9e\u7528\u610f\u4e49"),(0,m.kt)("p",null," \u81f4\u547d\u95ee\u9898\uff1a\u5728\u8f93\u5165\u503c\u8f83\u5c0f\u6216\u8f83\u5927\u65f6\uff0cSigmoid\u51fd\u6570\u7684\u68af\u5ea6\u8d8b\u8fd1\u4e8e\u96f6\uff0c\u4f1a\u5bfc\u81f4\u7f51\u7edc\u53c2\u6570\u957f\u65f6\u95f4\u5f97\u4e0d\u5230\u66f4\u65b0\uff0c\u5373\u68af\u5ea6\u5f25\u6563\u95ee\u9898"),(0,m.kt)("pre",null,(0,m.kt)("code",{parentName:"pre",className:"language-python"},"from torch.nn import functional as F\nimport torch\n\nx = torch.linspace(-100, 100, 10)\nF.sigmoid(x) # \u5f53x\u4e3a100\u65f6\uff0csigmoid(x)\u5c31\u63a5\u8fd1\u4e8e0\u4e86\n")),(0,m.kt)("h3",{id:"2-\u7ebf\u6027\u6574\u6d41\u5355\u5143rectified-linear-unit-relu"},"2. \u7ebf\u6027\u6574\u6d41\u5355\u5143\uff08Rectified Linear Unit, ReLU\uff09"),(0,m.kt)("div",{className:"math math-display"},(0,m.kt)("span",{parentName:"div",className:"katex-display"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mtable",{parentName:"semantics",width:"100%"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mrow",{parentName:"mtd"},(0,m.kt)("mi",{parentName:"mrow"},"f"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"x"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("mrow",{parentName:"mrow"},(0,m.kt)("mo",{parentName:"mrow",fence:"true"},"{"),(0,m.kt)("mtable",{parentName:"mrow",rowspacing:"0.36em",columnalign:"left left",columnspacing:"1em"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("mn",{parentName:"mstyle"},"0"))),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("mrow",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"mrow"},"x"),(0,m.kt)("mo",{parentName:"mrow"},"<"),(0,m.kt)("mn",{parentName:"mrow"},"0"))))),(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("mi",{parentName:"mstyle"},"x"))),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("mrow",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"mrow"},"x"),(0,m.kt)("mo",{parentName:"mrow"},"\u2265"),(0,m.kt)("mn",{parentName:"mrow"},"0"))))))))),(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mtext",{parentName:"mtd"},"(3)")))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"f(x) = \\begin{cases} 0 & x < 0\\\\ x & x \\geq 0\\\\ \\end{cases} \\tag{3}")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.10764em"}},"f"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"x"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"="),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"3em",verticalAlign:"-1.25em"}}),(0,m.kt)("span",{parentName:"span",className:"minner"},(0,m.kt)("span",{parentName:"span",className:"mopen delimcenter",style:{top:"0em"}},(0,m.kt)("span",{parentName:"span",className:"delimsizing size4"},"{")),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mtable"},(0,m.kt)("span",{parentName:"span",className:"col-align-l"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.69em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-3.69em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.008em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"0"))),(0,m.kt)("span",{parentName:"span",style:{top:"-2.25em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.008em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"x")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.19em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"arraycolsep",style:{width:"1em"}}),(0,m.kt)("span",{parentName:"span",className:"col-align-l"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.69em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-3.69em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.008em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"x"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"<"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"0"))),(0,m.kt)("span",{parentName:"span",style:{top:"-2.25em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.008em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"x"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"\u2265"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"0")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.19em"}},(0,m.kt)("span",{parentName:"span"}))))))),(0,m.kt)("span",{parentName:"span",className:"mclose nulldelimiter"}))),(0,m.kt)("span",{parentName:"span",className:"tag"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"3em",verticalAlign:"-1.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord text"},(0,m.kt)("span",{parentName:"span",className:"mord"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"3")),(0,m.kt)("span",{parentName:"span",className:"mord"},")"))))))),(0,m.kt)("div",{className:"math math-display"},(0,m.kt)("span",{parentName:"div",className:"katex-display"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mtable",{parentName:"semantics",width:"100%"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mrow",{parentName:"mtd"},(0,m.kt)("mfrac",{parentName:"mrow"},(0,m.kt)("mrow",{parentName:"mfrac"},(0,m.kt)("mtext",{parentName:"mrow"},"d"),(0,m.kt)("mi",{parentName:"mrow"},"f"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"x"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,m.kt)("mrow",{parentName:"mfrac"},(0,m.kt)("mtext",{parentName:"mrow"},"d"),(0,m.kt)("mi",{parentName:"mrow"},"x"))),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("mrow",{parentName:"mrow"},(0,m.kt)("mo",{parentName:"mrow",fence:"true"},"{"),(0,m.kt)("mtable",{parentName:"mrow",rowspacing:"0.36em",columnalign:"left left",columnspacing:"1em"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("mn",{parentName:"mstyle"},"0"))),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("mrow",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"mrow"},"x"),(0,m.kt)("mo",{parentName:"mrow"},"<"),(0,m.kt)("mn",{parentName:"mrow"},"0"))))),(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("mn",{parentName:"mstyle"},"1"))),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"false"},(0,m.kt)("mrow",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"mrow"},"x"),(0,m.kt)("mo",{parentName:"mrow"},"\u2265"),(0,m.kt)("mn",{parentName:"mrow"},"0"))))))))),(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mtext",{parentName:"mtd"},"(4)")))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"\\frac {{\\text d}f(x)}{{\\text d}x} = \\begin{cases} 0 & x < 0\\\\ 1 & x \\geq 0\\\\ \\end{cases} \\tag{4}")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"2.113em",verticalAlign:"-0.686em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mopen nulldelimiter"}),(0,m.kt)("span",{parentName:"span",className:"mfrac"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.427em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.314em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord text"},(0,m.kt)("span",{parentName:"span",className:"mord"},"d"))),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"x"))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.23em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"frac-line",style:{borderBottomWidth:"0.04em"}})),(0,m.kt)("span",{parentName:"span",style:{top:"-3.677em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord text"},(0,m.kt)("span",{parentName:"span",className:"mord"},"d"))),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.10764em"}},"f"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"x"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.686em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"mclose nulldelimiter"})),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"="),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"3em",verticalAlign:"-1.25em"}}),(0,m.kt)("span",{parentName:"span",className:"minner"},(0,m.kt)("span",{parentName:"span",className:"mopen delimcenter",style:{top:"0em"}},(0,m.kt)("span",{parentName:"span",className:"delimsizing size4"},"{")),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mtable"},(0,m.kt)("span",{parentName:"span",className:"col-align-l"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.69em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-3.69em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.008em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"0"))),(0,m.kt)("span",{parentName:"span",style:{top:"-2.25em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.008em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"1")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.19em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"arraycolsep",style:{width:"1em"}}),(0,m.kt)("span",{parentName:"span",className:"col-align-l"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.69em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-3.69em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.008em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"x"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"<"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"0"))),(0,m.kt)("span",{parentName:"span",style:{top:"-2.25em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.008em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"x"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"\u2265"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"0")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.19em"}},(0,m.kt)("span",{parentName:"span"}))))))),(0,m.kt)("span",{parentName:"span",className:"mclose nulldelimiter"}))),(0,m.kt)("span",{parentName:"span",className:"tag"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"3em",verticalAlign:"-1.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord text"},(0,m.kt)("span",{parentName:"span",className:"mord"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"4")),(0,m.kt)("span",{parentName:"span",className:"mord"},")"))))))),(0,m.kt)("pre",null,(0,m.kt)("code",{parentName:"pre",className:"language-python"},"from torch.nn import functional as F\nimport torch\n\nx = torch.linspace(-100, 100, 10)\nF.relu(x)\n")),(0,m.kt)("hr",null),(0,m.kt)("h2",{id:"\u4e8c\u635f\u5931\u51fd\u6570"},"\u4e8c\u3001\u635f\u5931\u51fd\u6570"),(0,m.kt)("h3",{id:"1-mean-squared-error-\u5747\u65b9\u8bef\u5dee"},"1. Mean Squared Error \u5747\u65b9\u8bef\u5dee"),(0,m.kt)("ul",null,(0,m.kt)("li",{parentName:"ul"},(0,m.kt)("p",{parentName:"li"},"L2\u8303\u6570\u662f\u5bf9\u5143\u7d20\u6c42\u5e73\u65b9\u548c\u540e\u518d\u5f00\u6839\u53f7\uff0c\u9700\u8981.pow(2)\u540e\u624d\u53ef\u4f5c\u4e3a\u635f\u5931\u51fd\u6570")),(0,m.kt)("li",{parentName:"ul"},(0,m.kt)("p",{parentName:"li"},"\u5fae\u5c0f\u7684\u8bef\u5dee\u53ef\u80fd\u5bf9\u7f51\u7edc\u6027\u80fd\u5e26\u6765\u6781\u5927\u7684\u5f71\u54cd"),(0,m.kt)("div",{parentName:"li",className:"math math-display"},(0,m.kt)("span",{parentName:"div",className:"katex-display"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mtable",{parentName:"semantics",width:"100%"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mrow",{parentName:"mtd"},(0,m.kt)("mi",{parentName:"mrow"},"L"),(0,m.kt)("mi",{parentName:"mrow"},"o"),(0,m.kt)("mi",{parentName:"mrow"},"s"),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"s"),(0,m.kt)("mrow",{parentName:"msub"},(0,m.kt)("mi",{parentName:"mrow"},"M"),(0,m.kt)("mi",{parentName:"mrow"},"S"),(0,m.kt)("mi",{parentName:"mrow"},"E"))),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("mo",{parentName:"mrow"},"\u2211"),(0,m.kt)("mrow",{parentName:"mrow"},(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"["),(0,m.kt)("mrow",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"mrow"},"y"),(0,m.kt)("mo",{parentName:"mrow"},"\u2212"),(0,m.kt)("mi",{parentName:"mrow"},"f"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"x"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("msup",{parentName:"mrow"},(0,m.kt)("mo",{parentName:"msup",stretchy:"false"},"]"),(0,m.kt)("mn",{parentName:"msup"},"2")))))),(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mtext",{parentName:"mtd"},"(5)")))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"Loss_{MSE} = \\sum{[{y - f(x)]^2}} \\tag{5}")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.8333em",verticalAlign:"-0.15em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"L"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"os"),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"s"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3283em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.05764em"}},"MSE"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"="),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1.6em",verticalAlign:"-0.55em"}}),(0,m.kt)("span",{parentName:"span",className:"mop op-symbol large-op",style:{position:"relative",top:"0em"}},"\u2211"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mopen"},"["),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"y"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"\u2212"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.10764em"}},"f"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"x"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mclose"},(0,m.kt)("span",{parentName:"span",className:"mclose"},"]"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.8641em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-3.113em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"2"))))))))))),(0,m.kt)("span",{parentName:"span",className:"tag"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1.6em",verticalAlign:"-0.55em"}}),(0,m.kt)("span",{parentName:"span",className:"mord text"},(0,m.kt)("span",{parentName:"span",className:"mord"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"5")),(0,m.kt)("span",{parentName:"span",className:"mord"},")"))))))),(0,m.kt)("div",{parentName:"li",className:"math math-display"},(0,m.kt)("span",{parentName:"div",className:"katex-display"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mtable",{parentName:"semantics",width:"100%"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mrow",{parentName:"mtd"},(0,m.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"\u2225"),(0,m.kt)("mi",{parentName:"mrow"},"y"),(0,m.kt)("mo",{parentName:"mrow"},"\u2212"),(0,m.kt)("mi",{parentName:"mrow"},"f"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"x"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub",mathvariant:"normal"},"\u2225"),(0,m.kt)("mn",{parentName:"msub"},"2")),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("mroot",{parentName:"mrow"},(0,m.kt)("mrow",{parentName:"mroot"},(0,m.kt)("mo",{parentName:"mrow"},"\u2211"),(0,m.kt)("mrow",{parentName:"mrow"},(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"["),(0,m.kt)("mi",{parentName:"mrow"},"y"),(0,m.kt)("mo",{parentName:"mrow"},"\u2212"),(0,m.kt)("mi",{parentName:"mrow"},"f"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"x"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("msup",{parentName:"mrow"},(0,m.kt)("mo",{parentName:"msup",stretchy:"false"},"]"),(0,m.kt)("mn",{parentName:"msup"},"2")))),(0,m.kt)("mn",{parentName:"mroot"},"2")))),(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mtext",{parentName:"mtd"},"(6)")))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"\\Vert y - f(x) \\Vert_2 = \\sqrt[2]{\\sum{[y - f(x)]^2}} \\tag{6}")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"\u2225"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"y"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"\u2212"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.10764em"}},"f"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"x"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"\u2225"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"2")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"="),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1.84em",verticalAlign:"-0.5561em"}}),(0,m.kt)("span",{parentName:"span",className:"mord sqrt"},(0,m.kt)("span",{parentName:"span",className:"root"},(0,m.kt)("span",{parentName:"span",className:"vlist-t"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.7589em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.9366em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.5em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size1 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"2")))))))),(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.2839em"}},(0,m.kt)("span",{parentName:"span",className:"svg-align",style:{top:"-3.8em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.8em"}}),(0,m.kt)("span",{parentName:"span",className:"mord",style:{paddingLeft:"1em"}},(0,m.kt)("span",{parentName:"span",className:"mop op-symbol large-op",style:{position:"relative",top:"0em"}},"\u2211"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mopen"},"["),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"y"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"\u2212"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.10764em"}},"f"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"x"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mclose"},(0,m.kt)("span",{parentName:"span",className:"mclose"},"]"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.7401em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.989em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"2"))))))))))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.2439em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.8em"}}),(0,m.kt)("span",{parentName:"span",className:"hide-tail",style:{minWidth:"1.02em",height:"1.88em"}},(0,m.kt)("svg",{parentName:"span",xmlns:"http://www.w3.org/2000/svg",width:"400em",height:"1.88em",viewBox:"0 0 400000 1944",preserveAspectRatio:"xMinYMin slice"},(0,m.kt)("path",{parentName:"svg",d:"M983 90\nl0 -0\nc4,-6.7,10,-10,18,-10 H400000v40\nH1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7\ns-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744\nc-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30\nc26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722\nc56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5\nc53.7,-170.3,84.5,-266.8,92.5,-289.5z\nM1001 80h400000v40h-400000z"}))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.5561em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"tag"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1.84em",verticalAlign:"-0.5561em"}}),(0,m.kt)("span",{parentName:"span",className:"mord text"},(0,m.kt)("span",{parentName:"span",className:"mord"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"6")),(0,m.kt)("span",{parentName:"span",className:"mord"},")"))))))))),(0,m.kt)("h3",{id:"2-cross-entropy-loss-\u4ea4\u53c9\u71b5\u635f\u5931"},"2. Cross Entropy Loss \u4ea4\u53c9\u71b5\u635f\u5931"),(0,m.kt)("h4",{id:"\u4fe1\u606f\u71b5"},"\u4fe1\u606f\u71b5"),(0,m.kt)("p",null,"Cross Entropy\u4e2d\u7684Entropy\u6307\u7684\u662f\u4fe1\u606f\u71b5\uff0c\u53ef\u4ee5\u7406\u89e3\u4e3a\u4e0d\u786e\u5b9a\u6027\u3002\u8861\u91cf\u4e00\u4e2a\u6982\u7387\u5206\u5e03\u672c\u8eab\u7684\u4e0d\u786e\u5b9a\u7a0b\u5ea6\u3002"),(0,m.kt)("p",null,"It's a measure of surprise, higher entrpoy means less information and higher uncertainty."),(0,m.kt)("p",null,"\u5047\u8bbe\u4e00\u4e2a\u79bb\u6563\u578b\u968f\u673a\u53d8\u91cf",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"X")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"X")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6833em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.07847em"}},"X"))))),"\u7684\u53ef\u80fd\u53d6\u503c\u4e3a",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"X"),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"x"),(0,m.kt)("mn",{parentName:"msub"},"1")),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"x"),(0,m.kt)("mn",{parentName:"msub"},"2")),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"."),(0,m.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"."),(0,m.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"."),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"x"),(0,m.kt)("mi",{parentName:"msub"},"n"))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"X=x_1,x_2,...,x_n")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6833em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.07847em"}},"X"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"="),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.625em",verticalAlign:"-0.1944em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"x"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"1")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"x"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"2")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"..."),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"x"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.1514em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"n")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))))))),"\uff0c\u800c\u53d6\u503c\u4e8b\u4ef6",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"x"),(0,m.kt)("mi",{parentName:"msub"},"i"))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"x_i")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.5806em",verticalAlign:"-0.15em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"x"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3117em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"i")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))))))),"\u53d1\u751f\u7684\u6982\u7387\u4e3a",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"P"),(0,m.kt)("mi",{parentName:"msub"},"i"))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"P_i")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.8333em",verticalAlign:"-0.15em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"P"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3117em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.1389em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"i")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))))))),"\uff0c\u5219\u5176\u4fe1\u606f\u71b5\u7684\u5b9a\u4e49\u4e3a"),(0,m.kt)("div",{className:"math math-display"},(0,m.kt)("span",{parentName:"div",className:"katex-display"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mtable",{parentName:"semantics",width:"100%"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mtable",{parentName:"mtd",rowspacing:"0.25em",columnalign:"right left",columnspacing:"0em"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr",className:"mtr-glue"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"true"},(0,m.kt)("mrow",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"mrow"},"H"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")")))),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"true"},(0,m.kt)("mrow",{parentName:"mstyle"},(0,m.kt)("mrow",{parentName:"mrow"}),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("mo",{parentName:"mrow"},"\u2212"),(0,m.kt)("munderover",{parentName:"mrow"},(0,m.kt)("mo",{parentName:"munderover"},"\u2211"),(0,m.kt)("mi",{parentName:"munderover"},"i"),(0,m.kt)("mi",{parentName:"munderover"},"n")),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"P"),(0,m.kt)("mi",{parentName:"msub"},"i")),(0,m.kt)("mtext",{parentName:"mrow"},"\xa0"),(0,m.kt)("mrow",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"mrow"},"l"),(0,m.kt)("mi",{parentName:"mrow"},"o"),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"g"),(0,m.kt)("mn",{parentName:"msub"},"2")),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"P"),(0,m.kt)("mi",{parentName:"msub"},"i")),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"))))),(0,m.kt)("mtd",{parentName:"mtr",className:"mtr-glue"}),(0,m.kt)("mtd",{parentName:"mtr",className:"mml-eqn-num"})),(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr",className:"mtr-glue"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"true"},(0,m.kt)("mrow",{parentName:"mstyle"}))),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"true"},(0,m.kt)("mrow",{parentName:"mstyle"},(0,m.kt)("mrow",{parentName:"mrow"}),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("munderover",{parentName:"mrow"},(0,m.kt)("mo",{parentName:"munderover"},"\u2211"),(0,m.kt)("mi",{parentName:"munderover"},"i"),(0,m.kt)("mi",{parentName:"munderover"},"n")),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"P"),(0,m.kt)("mi",{parentName:"msub"},"i")),(0,m.kt)("mtext",{parentName:"mrow"},"\xa0"),(0,m.kt)("mrow",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"mrow"},"l"),(0,m.kt)("mi",{parentName:"mrow"},"o"),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"g"),(0,m.kt)("mn",{parentName:"msub"},"2")),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mfrac",{parentName:"mrow"},(0,m.kt)("mn",{parentName:"mfrac"},"1"),(0,m.kt)("msub",{parentName:"mfrac"},(0,m.kt)("mi",{parentName:"msub"},"P"),(0,m.kt)("mi",{parentName:"msub"},"i")))),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")")))),(0,m.kt)("mtd",{parentName:"mtr",className:"mtr-glue"}),(0,m.kt)("mtd",{parentName:"mtr",className:"mml-eqn-num"})))),(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mtext",{parentName:"mtd"},"(7)")))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"\\begin{align} H(P) &= -\\sum_i^n{P_i}\\space{log_2(P_i)} \\\\ &= \\sum_i^n{P_i}\\space{log_2({\\frac{1}{P_i}}}) \\tag{7} \\end{align}")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"6.4581em",verticalAlign:"-2.9791em"}}),(0,m.kt)("span",{parentName:"span",className:"mtable"},(0,m.kt)("span",{parentName:"span",className:"col-align-r"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"3.4791em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-5.4791em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.6514em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.08125em"}},"H"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"P"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"))),(0,m.kt)("span",{parentName:"span",style:{top:"-2.25em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.6514em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"}))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"2.9791em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"col-align-l"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"3.4791em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-5.4791em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.6514em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"}),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"="),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"\u2212"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mop op-limits"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.6514em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-1.8723em",marginLeft:"0em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.05em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"i"))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.05em"}}),(0,m.kt)("span",{parentName:"span"},(0,m.kt)("span",{parentName:"span",className:"mop op-symbol large-op"},"\u2211"))),(0,m.kt)("span",{parentName:"span",style:{top:"-4.3em",marginLeft:"0em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.05em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"n")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.2777em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"P"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3117em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.1389em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"i")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"}))))))),(0,m.kt)("span",{parentName:"span",className:"mspace"},"\xa0"),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.01968em"}},"l"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"o"),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"g"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0359em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"2")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"P"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3117em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.1389em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"i")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mclose"},")")))),(0,m.kt)("span",{parentName:"span",style:{top:"-2.25em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.6514em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"}),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"="),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mop op-limits"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.6514em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-1.8723em",marginLeft:"0em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.05em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"i"))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.05em"}}),(0,m.kt)("span",{parentName:"span"},(0,m.kt)("span",{parentName:"span",className:"mop op-symbol large-op"},"\u2211"))),(0,m.kt)("span",{parentName:"span",style:{top:"-4.3em",marginLeft:"0em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.05em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"n")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.2777em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"P"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3117em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.1389em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"i")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"}))))))),(0,m.kt)("span",{parentName:"span",className:"mspace"},"\xa0"),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.01968em"}},"l"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"o"),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"g"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0359em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"2")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mopen nulldelimiter"}),(0,m.kt)("span",{parentName:"span",className:"mfrac"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.3214em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.314em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"P"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3117em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.1389em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"i")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.23em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"frac-line",style:{borderBottomWidth:"0.04em"}})),(0,m.kt)("span",{parentName:"span",style:{top:"-3.677em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"1")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.836em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"mclose nulldelimiter"})))),(0,m.kt)("span",{parentName:"span",className:"mclose"},")")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"2.9791em"}},(0,m.kt)("span",{parentName:"span"}))))))),(0,m.kt)("span",{parentName:"span",className:"tag"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"6.4581em",verticalAlign:"-2.9791em"}}),(0,m.kt)("span",{parentName:"span",className:"mord text"},(0,m.kt)("span",{parentName:"span",className:"mord"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"7")),(0,m.kt)("span",{parentName:"span",className:"mord"},")"))))))),(0,m.kt)("h4",{id:"kl\u6563\u5ea6"},"KL\u6563\u5ea6"),(0,m.kt)("p",null,"\u5728\u6982\u7387\u8bba\u6216\u4fe1\u606f\u8bba\u4e2d\uff0cKL\u6563\u5ea6( Kullback\u2013Leibler Divergence)\uff0c\u53c8\u79f0\u76f8\u5bf9\u71b5\uff08relative entropy)\uff0c\u662f\u63cf\u8ff0\u4e24\u4e2a\u6982\u7387\u5206\u5e03P\u548cQ\u5dee\u5f02\u7684\u4e00\u79cd\u65b9\u6cd5\u3002"),(0,m.kt)("p",null,"\u5b58\u5728\u4e24\u4e2a\u6982\u7387\u5206\u5e03P\u548cQ\uff0c\u5176\u79bb\u6563\u578b\u968f\u673a\u53d8\u91cf",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"X")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"X")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6833em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.07847em"}},"X"))))),"\u7684\u53ef\u80fd\u53d6\u503c\u4e3a",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"X"),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"x"),(0,m.kt)("mn",{parentName:"msub"},"1")),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"x"),(0,m.kt)("mn",{parentName:"msub"},"2")),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"."),(0,m.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"."),(0,m.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"."),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"x"),(0,m.kt)("mi",{parentName:"msub"},"n"))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"X=x_1,x_2,...,x_n")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6833em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.07847em"}},"X"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"="),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.625em",verticalAlign:"-0.1944em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"x"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"1")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"x"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"2")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"..."),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"x"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.1514em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"n")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))))))),"\uff0c\u800c\u53d6\u503c\u4e8b\u4ef6",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"x"),(0,m.kt)("mi",{parentName:"msub"},"i"))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"x_i")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.5806em",verticalAlign:"-0.15em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"x"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3117em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"i")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))))))),"\u53d1\u751f\u7684\u6982\u7387\u5206\u522b\u4e3a",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"P"),(0,m.kt)("mi",{parentName:"msub"},"i")),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"Q"),(0,m.kt)("mi",{parentName:"msub"},"i"))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"P_i,Q_i")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.8778em",verticalAlign:"-0.1944em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"P"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3117em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.1389em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"i")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"Q"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3117em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"i")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))))))),"."),(0,m.kt)("p",null,"KL\u6563\u5ea6\u662f",(0,m.kt)("strong",{parentName:"p"},"\u975e\u5bf9\u79f0\u7684"),"\uff0c\u5373"),(0,m.kt)("div",{className:"math math-display"},(0,m.kt)("span",{parentName:"div",className:"katex-display"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mtable",{parentName:"semantics",width:"100%"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mrow",{parentName:"mtd"},(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"D"),(0,m.kt)("mrow",{parentName:"msub"},(0,m.kt)("mi",{parentName:"mrow"},"K"),(0,m.kt)("mi",{parentName:"mrow"},"L"))),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("mtext",{parentName:"mrow"},"\xa0"),(0,m.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"\u2223"),(0,m.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"\u2223"),(0,m.kt)("mtext",{parentName:"mrow"},"\xa0"),(0,m.kt)("mi",{parentName:"mrow"},"Q"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow",mathvariant:"normal"},"\u2260"),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"D"),(0,m.kt)("mrow",{parentName:"msub"},(0,m.kt)("mi",{parentName:"mrow"},"K"),(0,m.kt)("mi",{parentName:"mrow"},"L"))),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"Q"),(0,m.kt)("mtext",{parentName:"mrow"},"\xa0"),(0,m.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"\u2223"),(0,m.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"\u2223"),(0,m.kt)("mtext",{parentName:"mrow"},"\xa0"),(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"))),(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mtext",{parentName:"mtd"},"(8)")))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"D_{KL}(P \\space || \\space Q) \\neq D_{KL}(Q \\space || \\space P)\\tag{8}")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02778em"}},"D"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3283em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0278em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.07153em"}},"K"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"L"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"P"),(0,m.kt)("span",{parentName:"span",className:"mspace"},"\xa0"),(0,m.kt)("span",{parentName:"span",className:"mord"},"\u2223\u2223"),(0,m.kt)("span",{parentName:"span",className:"mspace"},"\xa0"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"Q"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},(0,m.kt)("span",{parentName:"span",className:"mrel"},(0,m.kt)("span",{parentName:"span",className:"mord vbox"},(0,m.kt)("span",{parentName:"span",className:"thinbox"},(0,m.kt)("span",{parentName:"span",className:"rlap"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.8889em",verticalAlign:"-0.1944em"}}),(0,m.kt)("span",{parentName:"span",className:"inner"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mrel"},"\ue020"))),(0,m.kt)("span",{parentName:"span",className:"fix"}))))),(0,m.kt)("span",{parentName:"span",className:"mrel"},"=")),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02778em"}},"D"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3283em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0278em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.07153em"}},"K"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"L"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"Q"),(0,m.kt)("span",{parentName:"span",className:"mspace"},"\xa0"),(0,m.kt)("span",{parentName:"span",className:"mord"},"\u2223\u2223"),(0,m.kt)("span",{parentName:"span",className:"mspace"},"\xa0"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"P"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")")),(0,m.kt)("span",{parentName:"span",className:"tag"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord text"},(0,m.kt)("span",{parentName:"span",className:"mord"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"8")),(0,m.kt)("span",{parentName:"span",className:"mord"},")"))))))),(0,m.kt)("div",{className:"math math-display"},(0,m.kt)("span",{parentName:"div",className:"katex-display"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mtable",{parentName:"semantics",width:"100%"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mrow",{parentName:"mtd"},(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"D"),(0,m.kt)("mrow",{parentName:"msub"},(0,m.kt)("mi",{parentName:"mrow"},"K"),(0,m.kt)("mi",{parentName:"mrow"},"L"))),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("mtext",{parentName:"mrow"},"\xa0"),(0,m.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"\u2223"),(0,m.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"\u2223"),(0,m.kt)("mtext",{parentName:"mrow"},"\xa0"),(0,m.kt)("mi",{parentName:"mrow"},"Q"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("mo",{parentName:"mrow"},"\u2211"),(0,m.kt)("mrow",{parentName:"mrow"},(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"P"),(0,m.kt)("mi",{parentName:"msub"},"i")),(0,m.kt)("mtext",{parentName:"mrow"},"\xa0"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"["),(0,m.kt)("mi",{parentName:"mrow"},"l"),(0,m.kt)("mi",{parentName:"mrow"},"o"),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"g"),(0,m.kt)("mn",{parentName:"msub"},"2")),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"P"),(0,m.kt)("mi",{parentName:"msub"},"i")),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"\u2212"),(0,m.kt)("mi",{parentName:"mrow"},"l"),(0,m.kt)("mi",{parentName:"mrow"},"o"),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"g"),(0,m.kt)("mn",{parentName:"msub"},"2")),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"Q"),(0,m.kt)("mi",{parentName:"msub"},"i")),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"]")))),(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mtext",{parentName:"mtd"},"(9)")))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"D_{KL}(P \\space || \\space Q) = \\sum{P_i\\space [log_2(P_i)-log_2(Q_i)]}\\tag{9}")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02778em"}},"D"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3283em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0278em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.07153em"}},"K"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"L"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"P"),(0,m.kt)("span",{parentName:"span",className:"mspace"},"\xa0"),(0,m.kt)("span",{parentName:"span",className:"mord"},"\u2223\u2223"),(0,m.kt)("span",{parentName:"span",className:"mspace"},"\xa0"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"Q"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"="),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1.6em",verticalAlign:"-0.55em"}}),(0,m.kt)("span",{parentName:"span",className:"mop op-symbol large-op",style:{position:"relative",top:"0em"}},"\u2211"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"P"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3117em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.1389em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"i")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mspace"},"\xa0"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"["),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.01968em"}},"l"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"o"),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"g"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0359em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"2")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"P"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3117em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.1389em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"i")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"\u2212"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.01968em"}},"l"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"o"),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"g"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0359em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"2")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"Q"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3117em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"i")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mclose"},")]"))),(0,m.kt)("span",{parentName:"span",className:"tag"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1.6em",verticalAlign:"-0.55em"}}),(0,m.kt)("span",{parentName:"span",className:"mord text"},(0,m.kt)("span",{parentName:"span",className:"mord"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"9")),(0,m.kt)("span",{parentName:"span",className:"mord"},")"))))))),(0,m.kt)("p",null,"\u7279\u522b\u7684\uff0c",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"D"),(0,m.kt)("mrow",{parentName:"msub"},(0,m.kt)("mi",{parentName:"mrow"},"K"),(0,m.kt)("mi",{parentName:"mrow"},"L"))),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"P"),(0,m.kt)("mrow",{parentName:"msub"},(0,m.kt)("mi",{parentName:"mrow"},"L"),(0,m.kt)("mi",{parentName:"mrow"},"a"),(0,m.kt)("mi",{parentName:"mrow"},"b"),(0,m.kt)("mi",{parentName:"mrow"},"e"),(0,m.kt)("mi",{parentName:"mrow"},"l"))),(0,m.kt)("mtext",{parentName:"mrow"},"\xa0"),(0,m.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"\u2223"),(0,m.kt)("mtext",{parentName:"mrow"},"\xa0"),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"Q"),(0,m.kt)("mrow",{parentName:"msub"},(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("mi",{parentName:"mrow"},"r"),(0,m.kt)("mi",{parentName:"mrow"},"e"),(0,m.kt)("mi",{parentName:"mrow"},"d"))),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"D_{KL}(P_{Label} \\space | \\space Q_{Pred})")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02778em"}},"D"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3283em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0278em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.07153em"}},"K"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"L"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"P"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3361em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.1389em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"L"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"ab"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"e"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.01968em"}},"l"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mspace"},"\xa0"),(0,m.kt)("span",{parentName:"span",className:"mord"},"\u2223"),(0,m.kt)("span",{parentName:"span",className:"mspace"},"\xa0"),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"Q"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3361em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.13889em"}},"P"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"re"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"d"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"))))),"\u8868\u793a\u5f53\u7528\u6982\u7387\u5206\u5e03Q\u6765\u62df\u5408\u771f\u5b9e\u5206\u5e03P\u65f6\uff0c\u4ea7\u751f\u7684\u4fe1\u606f\u635f\u8017\uff0c\u5176\u4e2d",(0,m.kt)("strong",{parentName:"p"},"P\u8868\u793a\u771f\u5b9e\u5206\u5e03\uff0cQ\u8868\u793aP\u7684\u62df\u5408\u5206\u5e03"),"\u3002"),(0,m.kt)("h4",{id:"\u4ea4\u53c9\u71b5"},"\u4ea4\u53c9\u71b5"),(0,m.kt)("p",null,"\u8861\u91cf\u4e24\u4e2a\u6982\u7387\u5206\u5e03P\u548cQ\u4e4b\u95f4\u7684\u4e0d\u786e\u5b9a\u6027\u7a0b\u5ea6\u3002\u4ea4\u53c9\u71b5\u7684\u6570\u5b66\u8868\u8fbe\u4e3a"),(0,m.kt)("div",{className:"math math-display"},(0,m.kt)("span",{parentName:"div",className:"katex-display"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mtable",{parentName:"semantics",width:"100%"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mtable",{parentName:"mtd",rowspacing:"0.25em",columnalign:"right left",columnspacing:"0em"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr",className:"mtr-glue"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"true"},(0,m.kt)("mrow",{parentName:"mstyle"},(0,m.kt)("mi",{parentName:"mrow"},"H"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mtext",{parentName:"mrow"},"\xa0"),(0,m.kt)("mi",{parentName:"mrow"},"Q"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")")))),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"true"},(0,m.kt)("mrow",{parentName:"mstyle"},(0,m.kt)("mrow",{parentName:"mrow"}),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("mi",{parentName:"mrow"},"H"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"+"),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"D"),(0,m.kt)("mrow",{parentName:"msub"},(0,m.kt)("mi",{parentName:"mrow"},"K"),(0,m.kt)("mi",{parentName:"mrow"},"L"))),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"P"),(0,m.kt)("mtext",{parentName:"mrow"},"\xa0"),(0,m.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"\u2223"),(0,m.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"\u2223"),(0,m.kt)("mtext",{parentName:"mrow"},"\xa0"),(0,m.kt)("mi",{parentName:"mrow"},"Q"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")")))),(0,m.kt)("mtd",{parentName:"mtr",className:"mtr-glue"}),(0,m.kt)("mtd",{parentName:"mtr",className:"mml-eqn-num"})),(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr",className:"mtr-glue"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"true"},(0,m.kt)("mrow",{parentName:"mstyle"}))),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mstyle",{parentName:"mtd",scriptlevel:"0",displaystyle:"true"},(0,m.kt)("mrow",{parentName:"mstyle"},(0,m.kt)("mrow",{parentName:"mrow"}),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("mo",{parentName:"mrow"},"\u2212"),(0,m.kt)("mo",{parentName:"mrow"},"\u2211"),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"P"),(0,m.kt)("mi",{parentName:"msub"},"i")),(0,m.kt)("mtext",{parentName:"mrow"},"\xa0"),(0,m.kt)("mrow",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"mrow"},"l"),(0,m.kt)("mi",{parentName:"mrow"},"o"),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"g"),(0,m.kt)("mn",{parentName:"msub"},"2")),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"Q"),(0,m.kt)("mi",{parentName:"msub"},"i")),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"))))),(0,m.kt)("mtd",{parentName:"mtr",className:"mtr-glue"}),(0,m.kt)("mtd",{parentName:"mtr",className:"mml-eqn-num"})))),(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mtext",{parentName:"mtd"},"(10)")))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"\\begin{align} H(P, \\space Q) &= H(P) + D_{KL}(P\\space || \\space Q) \\\\ &= - \\sum{P_i}\\space{log_2({Q_i})} \\tag{10} \\end{align}")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"3.4em",verticalAlign:"-1.45em"}}),(0,m.kt)("span",{parentName:"span",className:"mtable"},(0,m.kt)("span",{parentName:"span",className:"col-align-r"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.95em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-4.16em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.05em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.08125em"}},"H"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"P"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace"},"\xa0"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"Q"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"))),(0,m.kt)("span",{parentName:"span",style:{top:"-2.45em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.05em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"}))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.45em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"col-align-l"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.95em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-4.16em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.05em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"}),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"="),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.08125em"}},"H"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"P"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"+"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02778em"}},"D"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3283em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0278em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.07153em"}},"K"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"L"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"P"),(0,m.kt)("span",{parentName:"span",className:"mspace"},"\xa0"),(0,m.kt)("span",{parentName:"span",className:"mord"},"\u2223\u2223"),(0,m.kt)("span",{parentName:"span",className:"mspace"},"\xa0"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"Q"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"))),(0,m.kt)("span",{parentName:"span",style:{top:"-2.45em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.05em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"}),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"="),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"\u2212"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mop op-symbol large-op",style:{position:"relative",top:"0em"}},"\u2211"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"P"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3117em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.1389em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"i")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"}))))))),(0,m.kt)("span",{parentName:"span",className:"mspace"},"\xa0"),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.01968em"}},"l"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"o"),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"g"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0359em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"2")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"Q"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3117em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"i")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"}))))))),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.45em"}},(0,m.kt)("span",{parentName:"span"}))))))),(0,m.kt)("span",{parentName:"span",className:"tag"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"3.4em",verticalAlign:"-1.45em"}}),(0,m.kt)("span",{parentName:"span",className:"mord text"},(0,m.kt)("span",{parentName:"span",className:"mord"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"10")),(0,m.kt)("span",{parentName:"span",className:"mord"},")"))))))),(0,m.kt)("h4",{id:"pytorch\u4e2d\u7684crossentropyloss"},"PyTorch\u4e2d\u7684CrossEntropyLoss"),(0,m.kt)("p",null,"torch.nn.CrossEntropyLoss\u76f8\u5f53\u4e8etorch.softmax + torch.log + torch.nn.nllloss."),(0,m.kt)("pre",null,(0,m.kt)("code",{parentName:"pre",className:"language-python"},"import torch.nn as nn\n\n# \u4f7f\u7528NLLLoss\u5b9e\u73b0\nnllloss = nn.NLLLoss()\npredict = torch.Tensor([[2, 3, 1], [3, 7, 9]])\npredict = torch.log(torch.softmax(predict, dim=-1))\nlabel = torch.tensor([1, 2])\nnllloss(predict, label)\n# output: tensor(0.2684)\n\n# \u4f7f\u7528CrossEntropyLoss\u5b9e\u73b0\ncross_loss = nn.CrossEntropyLoss()\npredict = torch.Tensor([[2, 3, 1], [3, 7, 9]])\nlabel = torch.tensor([1, 2])\ncross_loss(predict, label)\n# output: tensor(0.2684)\n")))}c.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/en/assets/js/c00822a0.6c2e3bc2.js b/en/assets/js/c00822a0.6c2e3bc2.js new file mode 100644 index 000000000..80cf857b3 --- /dev/null +++ b/en/assets/js/c00822a0.6c2e3bc2.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunknpy_notebook=self.webpackChunknpy_notebook||[]).push([[9507],{3905:(e,t,n)=>{n.d(t,{Zo:()=>s,kt:()=>y});var r=n(7294);function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function i(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var c=r.createContext({}),l=function(e){var t=r.useContext(c),n=t;return e&&(n="function"==typeof e?e(t):p(p({},t),e)),n},s=function(e){var t=l(e.components);return r.createElement(c.Provider,{value:t},e.children)},m="mdxType",u={inlineCode:"code",wrapper:function(e){var t=e.children;return r.createElement(r.Fragment,{},t)}},d=r.forwardRef((function(e,t){var n=e.components,a=e.mdxType,o=e.originalType,c=e.parentName,s=i(e,["components","mdxType","originalType","parentName"]),m=l(n),d=a,y=m["".concat(c,".").concat(d)]||m[d]||u[d]||o;return n?r.createElement(y,p(p({ref:t},s),{},{components:n})):r.createElement(y,p({ref:t},s))}));function y(e,t){var n=arguments,a=t&&t.mdxType;if("string"==typeof e||a){var o=n.length,p=new Array(o);p[0]=d;var i={};for(var c in t)hasOwnProperty.call(t,c)&&(i[c]=t[c]);i.originalType=e,i[m]="string"==typeof e?e:a,p[1]=i;for(var l=2;l<o;l++)p[l]=n[l];return r.createElement.apply(null,p)}return r.createElement.apply(null,n)}d.displayName="MDXCreateElement"},8135:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>c,contentTitle:()=>p,default:()=>u,frontMatter:()=>o,metadata:()=>i,toc:()=>l});var r=n(7462),a=(n(7294),n(3905));const o={},p="PyTorch\u57fa\u7840",i={unversionedId:"Deep-Learning/\u57fa\u7840\u77e5\u8bc6/PytorchBasics",id:"Deep-Learning/\u57fa\u7840\u77e5\u8bc6/PytorchBasics",title:"PyTorch\u57fa\u7840",description:"\u4e00\u3001\u5e38\u7528\u51fd\u6570\u90e8\u5206",source:"@site/docs/Deep-Learning/3-\u57fa\u7840\u77e5\u8bc6/PytorchBasics.md",sourceDirName:"Deep-Learning/3-\u57fa\u7840\u77e5\u8bc6",slug:"/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/PytorchBasics",permalink:"/en/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/PytorchBasics",draft:!1,tags:[],version:"current",frontMatter:{},sidebar:"deep_learning",previous:{title:"\u6c60\u5316\u5c42",permalink:"/en/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/PoolingLayer"},next:{title:"\u6b63\u5219\u5316\u4e0e\u6743\u91cd\u8870\u9000",permalink:"/en/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/\u6b63\u5219\u5316\u4e0e\u6743\u91cd\u8870\u9000"}},c={},l=[{value:"\u4e00\u3001\u5e38\u7528\u51fd\u6570\u90e8\u5206",id:"\u4e00\u5e38\u7528\u51fd\u6570\u90e8\u5206",level:2}],s={toc:l},m="wrapper";function u(e){let{components:t,...n}=e;return(0,a.kt)(m,(0,r.Z)({},s,n,{components:t,mdxType:"MDXLayout"}),(0,a.kt)("h1",{id:"pytorch\u57fa\u7840"},"PyTorch\u57fa\u7840"),(0,a.kt)("h2",{id:"\u4e00\u5e38\u7528\u51fd\u6570\u90e8\u5206"},"\u4e00\u3001\u5e38\u7528\u51fd\u6570\u90e8\u5206"),(0,a.kt)("ol",null,(0,a.kt)("li",{parentName:"ol"},(0,a.kt)("p",{parentName:"li"},"concat\u4e0estack\u51fd\u6570"),(0,a.kt)("p",{parentName:"li"},"stack\u51fd\u6570\u5bf9\u8f93\u5165\u7684\u4e24\u4e2a\u5f20\u91cf\u5728\u6307\u5b9a\u7684\u7ef4\u5ea6\u8fdb\u884c\u5806\u53e0\uff0c\u662f",(0,a.kt)("strong",{parentName:"p"},"\u521b\u5efa\u4e86\u65b0\u7684\u7ef4\u5ea6")),(0,a.kt)("p",{parentName:"li"},"concat\u51fd\u6570\u5bf9\u8f93\u5165\u7684\u5f20\u91cf\u5728\u6307\u5b9a\u7ef4\u5ea6\u8fdb\u884c\u62fc\u63a5\uff0c\u6ca1\u6709\u521b\u5efa\u65b0\u7684\u7ef4\u5ea6"),(0,a.kt)("pre",{parentName:"li"},(0,a.kt)("code",{parentName:"pre",className:"language-python"},"# stack\u548cconcat\u51fd\u6570\na = torch.rand(4, 3) # A\u73ed4\u4f4d\u540c\u5b66\uff0c\u6bcf\u4f4d\u540c\u5b663\u79d1\u6210\u7ee9\nb = torch.rand(4, 3) # B\u73ed4\u4f4d\u540c\u5b66\uff0c\u6bcf\u4f4d\u540c\u5b663\u79d1\u6210\u7ee9\nc = torch.stack((a, b), dim=0) # \u7406\u89e3\uff1a\u5e74\u7ea7\u6240\u6709\u540c\u5b66\u76843\u79d1\u6210\u7ee9\uff08\u5047\u8bbe\u5e74\u7ea7\u53ea\u6709A\u73ed\u548cB\u73ed\u4e24\u4e2a\u73ed\uff0c\u6bcf\u4e2a\u73ed\u53ea\u6709\u56db\u540d\u540c\u5b66\uff09\nprint(c.shape) # torch.Size([2, 4, 3])\nd = torch.concat((a, b), dim=1) # \u7406\u89e3\uff1aa\u662fA\u73ed4\u4f4d\u540c\u5b663\u79d1\u6210\u7ee9\uff0cb\u662f\u8fd94\u540d\u540c\u5b66\u5176\u4ed63\u95e8\u8bfe\u7684\u6210\u7ee9\uff0c\u62fc\u63a5\u540e\u4ee3\u8868\u8fd94\u540d\u540c\u5b66\u76846\u79d1\u6210\u7ee9\nprint(d.shape) # torch.Size([4, 6])\n"))),(0,a.kt)("li",{parentName:"ol"},(0,a.kt)("p",{parentName:"li"},"list\u548ctensor\u4e58\u6cd5\u4e0d\u540c\u4e4b\u5904"),(0,a.kt)("p",{parentName:"li"},"list\u7684*\u4e58\u6cd5\u662f\u590d\u5236\u5143\u7d20\uff0c\u6539\u53d8list\u7684shape"),(0,a.kt)("p",{parentName:"li"},"tensor\u7684*\u4e58\u6cd5\u662f\u5bf9tensor\u4e2d\u7684\u5143\u7d20\u8fdb\u884c\u70b9\u4e58\u8ba1\u7b97"),(0,a.kt)("pre",{parentName:"li"},(0,a.kt)("code",{parentName:"pre",className:"language-python"},"a = torch.tensor([[3, 3, 3, 3]])\nb = [3] # list\u7684*\u4e58\u662f\u590d\u5236\u5143\u7d20\u8fdb\u884c\u6269\u5c55\nprint(a * 3) # tensor([[9, 9, 9, 9]])\nprint(b * 3) # [3, 3, 3]\n"))),(0,a.kt)("li",{parentName:"ol"},(0,a.kt)("p",{parentName:"li"},"\u6700\u5927\u503c / \u6700\u5c0f\u503c\u7d22\u5f15\uff1aargmax / argmin"),(0,a.kt)("p",{parentName:"li"},"\u9700\u8981\u901a\u8fc7\u53c2\u6570dim\u6307\u5b9a\u64cd\u4f5c\u7684\u7ef4\u5ea6\uff0cdim\u7684\u7406\u89e3"),(0,a.kt)("ul",{parentName:"li"},(0,a.kt)("li",{parentName:"ul"},(0,a.kt)("p",{parentName:"li"},"\u5b98\u65b9\u89e3\u91ca\uff1aThe dimension to reduce")),(0,a.kt)("li",{parentName:"ul"},(0,a.kt)("p",{parentName:"li"},"\u4ee5\u4e8c\u7ef4\u5f20\u91cf\u4e3e\u4f8b\uff0cdim=1\u5373\u5728\u6bcf\u4e00\u884c\u4e2d\u9009\u51fa\u4e00\u4e2a\u6700\u5927\u503c / \u6700\u5c0f\u503c\u5143\u7d20\u7684\u7d22\u5f15\uff0c\u7d22\u5f15\u7684shape\u5e94\u4e3a","[dim0, 1]","\uff0c\u5373reduce\u4e86dim=1\u7684\u7ef4\u5ea6"))),(0,a.kt)("pre",{parentName:"li"},(0,a.kt)("code",{parentName:"pre",className:"language-python"},'# \u6700\u5927\u503c\u6700\u5c0f\u503c\u7d22\u5f15\na = torch.tensor([[0.1, 0.9, 0.3], [0.9, 0.8, 0.99], [0.1, 0.7, 0.8], [0.88, 0.1, 0.2]]) # [4, 3]\nprint("argmax output: ", a.argmax(dim=0), a.argmax(dim=1)) # argmax output: tensor([1, 0, 1]) tensor([1, 2, 2, 0])\n'))),(0,a.kt)("li",{parentName:"ol"},(0,a.kt)("p",{parentName:"li"},"Python zip\u51fd\u6570"),(0,a.kt)("p",{parentName:"li"},"zip\u51fd\u6570\u53ef\u4ee5\u7406\u89e3\u4e3a\u538b\u7f29\uff0c\u5c06\u8f93\u5165\u7684\u4e24\u4e2a\u8fed\u4ee3\u5668\u7684",(0,a.kt)("strong",{parentName:"p"},"\u6700\u5916\u5c42"),"\u5bf9\u5e94\u5143\u7d20\u538b\u7f29\u4e3a\u4e00\u4e2a\u65b0\u7684\u5143\u7d20"),(0,a.kt)("pre",{parentName:"li"},(0,a.kt)("code",{parentName:"pre",className:"language-python"},"a = torch.tensor([1, 2, 3])\nb = torch.tensor([4, 5, 6])\nc = zip(a, b)\nfor i in c:\n print(i)\n'''\n(tensor(1), tensor(4))\n(tensor(2), tensor(5))\n(tensor(3), tensor(6))\n'''\na = torch.tensor([[1, 2, 3], [3, 2, 1]])\nb = torch.tensor([[4, 5, 6], [6, 5, 4]])\nc = zip(a, b)\nfor i in c:\n print(i)\n'''\n(tensor([1, 2, 3]), tensor([4, 5, 6]))\n(tensor([3, 2, 1]), tensor([6, 5, 4]))\n'''\n")))))}u.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/en/assets/js/c4f5d8e4.2acb6b67.js b/en/assets/js/c4f5d8e4.2acb6b67.js new file mode 100644 index 000000000..4ea5f8a25 --- /dev/null +++ b/en/assets/js/c4f5d8e4.2acb6b67.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunknpy_notebook=self.webpackChunknpy_notebook||[]).push([[4195],{1792:(e,t,n)=>{n.r(t),n.d(t,{default:()=>k});var a=n(7294),r=n(6010),l=n(9960),c=n(2263),s=n(179),i=n(7462);const o={features:"features_t9lD"},m=n.p+"assets/images/GUET_logo-2ca573752497f4153d65447c4f644736.png",u=n.p+"assets/images/UESTC_logo-26b07a2ed8fc72bcc918804e9d572e7b.png",g=n.p+"assets/images/KEXIE_logo-5366f4894a5a4aeb6d632a5158e69097.png",d=n.p+"assets/images/CFM_Circle-485b2bb96d00ce0d9c1cef62bc8254bf.png",p=[{title:"\u7535\u5b50\u79d1\u6280\u5927\u5b66",img:u,description:a.createElement(a.Fragment,null,"\u6c42\u5b9e\u6c42\u771f\uff0c\u5927\u6c14\u5927\u4e3a"),link:"https://www.uestc.edu.cn/"},{title:"\u672a\u6765\u5a92\u4f53\u7814\u7a76\u4e2d\u5fc3",img:d,description:a.createElement(a.Fragment,null,"CENTER FOR FUTURE MEDIA"),link:"https://cfm.uestc.edu.cn/index"},{title:"\u6842\u6797\u7535\u5b50\u79d1\u6280\u5927\u5b66",img:m,description:a.createElement(a.Fragment,null,"\u6b63\u5fb7\u539a\u5b66\uff0c\u7b03\u884c\u81f4\u65b0"),link:"https://www.guet.edu.cn/"},{title:"\u6842\u7535\u4e09\u9662\u79d1\u534f",img:g,description:a.createElement(a.Fragment,null,"\u6728\u8d77\u9752\u7eff\uff0c\u68a6\u7ed8\u521d\u84dd"),link:"https://hello.kexie.space/"}];function E(e){let{img:t,title:n,description:l,link:c}=e;return a.createElement("div",{className:(0,r.Z)("col col--3")},a.createElement("div",{className:"text--center"},a.createElement("a",{href:c,target:"_blank",rel:"noopener noreferrer"},a.createElement("img",{src:t,alt:"Image",style:{width:175,height:"auto",marginBottom:"1.2rem"}}))),a.createElement("div",{className:"text--center padding-horiz--md"},a.createElement("h3",{className:(0,r.Z)("title")},a.createElement("a",{href:c,target:"_blank",rel:"noopener noreferrer"},n)),a.createElement("p",null,l)))}function b(){return a.createElement("section",{className:o.features},a.createElement("div",{className:"container"},a.createElement("div",{className:(0,r.Z)("row")},p.map(((e,t)=>a.createElement(E,(0,i.Z)({key:t},e)))))))}const h={heroBanner:"heroBanner_qdFl",buttons:"buttons_AeoN",buttonFonts:"buttonFonts_pwBM"};function f(){const{siteConfig:e}=(0,c.Z)();return a.createElement("header",{className:(0,r.Z)("hero hero--primary",h.heroBanner),style:{backgroundSize:"cover",backgroundPosition:"center"}},a.createElement("div",{className:"container"},a.createElement("h1",{className:"hero__title"},e.title),a.createElement("p",{className:"hero__subtitle"},e.tagline),a.createElement("div",{className:h.buttons},a.createElement(l.Z,{className:(0,r.Z)("button button--secondary button--lg",h.buttonFonts),to:"/docs/Deep-Learning/intro"},"\ud83d\udcd6 \u4ece\u6df1\u5ea6\u5b66\u4e60\u5f00\u59cb\u6d4f\u89c8 \ud83d\ude80"))))}function k(){const{siteConfig:e}=(0,c.Z)();return a.createElement(s.Z,{title:`${e.title}`,description:"Description will go into a meta tag in <head />"},a.createElement(f,null),a.createElement("main",null,a.createElement(b,null)))}}}]); \ No newline at end of file diff --git a/en/assets/js/cccb4b32.b2301e98.js b/en/assets/js/cccb4b32.b2301e98.js new file mode 100644 index 000000000..df0af57f3 --- /dev/null +++ b/en/assets/js/cccb4b32.b2301e98.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunknpy_notebook=self.webpackChunknpy_notebook||[]).push([[3346],{3905:(e,t,n)=>{n.d(t,{Zo:()=>c,kt:()=>d});var r=n(7294);function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function i(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var p=r.createContext({}),s=function(e){var t=r.useContext(p),n=t;return e&&(n="function"==typeof e?e(t):l(l({},t),e)),n},c=function(e){var t=s(e.components);return r.createElement(p.Provider,{value:t},e.children)},u="mdxType",k={inlineCode:"code",wrapper:function(e){var t=e.children;return r.createElement(r.Fragment,{},t)}},m=r.forwardRef((function(e,t){var n=e.components,o=e.mdxType,a=e.originalType,p=e.parentName,c=i(e,["components","mdxType","originalType","parentName"]),u=s(n),m=o,d=u["".concat(p,".").concat(m)]||u[m]||k[m]||a;return n?r.createElement(d,l(l({ref:t},c),{},{components:n})):r.createElement(d,l({ref:t},c))}));function d(e,t){var n=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var a=n.length,l=new Array(a);l[0]=m;var i={};for(var p in t)hasOwnProperty.call(t,p)&&(i[p]=t[p]);i.originalType=e,i[u]="string"==typeof e?e:o,l[1]=i;for(var s=2;s<a;s++)l[s]=n[s];return r.createElement.apply(null,l)}return r.createElement.apply(null,n)}m.displayName="MDXCreateElement"},9575:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>p,contentTitle:()=>l,default:()=>k,frontMatter:()=>a,metadata:()=>i,toc:()=>s});var r=n(7462),o=(n(7294),n(3905));const a={},l="Linux\u7cfb\u7edf\u4e0bGeekOS\u7684\u73af\u5883\u914d\u7f6e",i={unversionedId:"Curriculum/\u64cd\u4f5c\u7cfb\u7edf\u8bfe\u8bbe/Environment-Configuration",id:"Curriculum/\u64cd\u4f5c\u7cfb\u7edf\u8bfe\u8bbe/Environment-Configuration",title:"Linux\u7cfb\u7edf\u4e0bGeekOS\u7684\u73af\u5883\u914d\u7f6e",description:"\u4e00\u3001\u5fc5\u987b\u8981\u77e5\u9053\u7684\u539f\u7406",source:"@site/docs/Curriculum/4-\u64cd\u4f5c\u7cfb\u7edf\u8bfe\u8bbe/1-Environment-Configuration.md",sourceDirName:"Curriculum/4-\u64cd\u4f5c\u7cfb\u7edf\u8bfe\u8bbe",slug:"/Curriculum/\u64cd\u4f5c\u7cfb\u7edf\u8bfe\u8bbe/Environment-Configuration",permalink:"/en/docs/Curriculum/\u64cd\u4f5c\u7cfb\u7edf\u8bfe\u8bbe/Environment-Configuration",draft:!1,tags:[],version:"current",sidebarPosition:1,frontMatter:{},sidebar:"curriculum",previous:{title:"\u7f16\u8bd1\u539f\u7406\u7b14\u8bb0",permalink:"/en/docs/Curriculum/\u7f16\u8bd1\u539f\u7406/Note"},next:{title:"GeekOS project 0\u7684\u5b9e\u73b0",permalink:"/en/docs/Curriculum/\u64cd\u4f5c\u7cfb\u7edf\u8bfe\u8bbe/GeekOS-project-0"}},p={},s=[{value:"\u4e00\u3001\u5fc5\u987b\u8981\u77e5\u9053\u7684\u539f\u7406",id:"\u4e00\u5fc5\u987b\u8981\u77e5\u9053\u7684\u539f\u7406",level:2},{value:"1. GeekOS:",id:"1-geekos",level:3},{value:"2. bochs:",id:"2-bochs",level:3},{value:"3. <strong>\u4e8c\u8005\u4e4b\u95f4\u7684\u5173\u7cfb</strong>",id:"3-\u4e8c\u8005\u4e4b\u95f4\u7684\u5173\u7cfb",level:3},{value:"\u4e8c\u3001\u5b89\u88c5\u4e0e\u914d\u7f6e",id:"\u4e8c\u5b89\u88c5\u4e0e\u914d\u7f6e",level:2},{value:"1. \u5b89\u88c5",id:"1-\u5b89\u88c5",level:3},{value:"2. \u914d\u7f6e",id:"2-\u914d\u7f6e",level:3},{value:"GeekOS\u4e2dmakefile\u7684\u914d\u7f6e",id:"geekos\u4e2dmakefile\u7684\u914d\u7f6e",level:4},{value:"bochs\u914d\u7f6e\u6587\u4ef6\u7684\u4fee\u6539",id:"bochs\u914d\u7f6e\u6587\u4ef6\u7684\u4fee\u6539",level:4}],c={toc:s},u="wrapper";function k(e){let{components:t,...n}=e;return(0,o.kt)(u,(0,r.Z)({},c,n,{components:t,mdxType:"MDXLayout"}),(0,o.kt)("h1",{id:"linux\u7cfb\u7edf\u4e0bgeekos\u7684\u73af\u5883\u914d\u7f6e"},"Linux\u7cfb\u7edf\u4e0bGeekOS\u7684\u73af\u5883\u914d\u7f6e"),(0,o.kt)("h2",{id:"\u4e00\u5fc5\u987b\u8981\u77e5\u9053\u7684\u539f\u7406"},"\u4e00\u3001\u5fc5\u987b\u8981\u77e5\u9053\u7684\u539f\u7406"),(0,o.kt)("h3",{id:"1-geekos"},"1. GeekOS:"),(0,o.kt)("p",null,"GeekOS\u662f\u4e00\u4e2a\u57fa\u4e8ex86\u4f53\u7cfb\u7ed3\u6784\u7684\u5fae\u64cd\u4f5c\u7cfb\u7edf\u5185\u6838. \u7531\u7f8e\u56fd\u9a6c\u7406\u5170\u5927\u5b66\u7684\u6559\u5e08\u5f00\u53d1, \u4e3b\u8981\u7528\u4e8e\u64cd\u4f5c\u7cfb\u7edf\u8bfe\u7a0b\u8bbe\u8ba1\u7684\u6559\u80b2. \u51fa\u4e8e\u6559\u5b66\u76ee\u7684, \u8fd9\u4e2a\u7cfb\u7edf\u5185\u6838\u8bbe\u8ba1\u7b80\u5355, \u5374\u53c8\u517c\u5907\u5b9e\u7528\u6027, \u5b83\u53ef\u4ee5\u8fd0\u884c\u5728\u771f\u6b63\u7684X86 PC\u786c\u4ef6\u5e73\u53f0."),(0,o.kt)("p",null,"\u5728\u4e0b\u8f7d\u597dGeekOS\u540e, \u5728geekos-version/src/\u76ee\u5f55\u4e0b\u4f1a\u5b58\u5728project0-project6\u8fd97\u4e2a\u6587\u4ef6\u5939, \u5206\u522b\u4ee3\u8868GeekOS\u8bbe\u8ba1\u76847\u4e2a\u5b66\u4e60\u4efb\u52a1."),(0,o.kt)("p",null,"\u5728\u73af\u5883\u642d\u5efa\u5b8c\u6210\u4e4b\u540e, \u6211\u4eec\u8fdb\u884c\u7684\u6bcf\u4e00\u4e2a\u9879\u76ee\u7684\u4ee3\u7801\u7f16\u5199\u51e0\u4e4e\u90fd\u5728geekos-version/src/projecti/src/geekos/\u6587\u4ef6\u5939\u4e0b, \u6bcf\u4e00\u4e2a\u9879\u76ee\u7684\u7f16\u8bd1\u90fd\u5728geekos-version/src/projecti/build\u6587\u4ef6\u5939\u4e0b\u8fdb\u884c, \u5373\u8981\u5728\u7ec8\u7aef\u4e2d\u901a\u8fc7",(0,o.kt)("inlineCode",{parentName:"p"},"cd"),"\u8fdb\u5165\u8be5\u76ee\u5f55, \u518d\u6267\u884c",(0,o.kt)("inlineCode",{parentName:"p"},"make depend"),"\u548c",(0,o.kt)("inlineCode",{parentName:"p"},"make"),"\u547d\u4ee4."),(0,o.kt)("h3",{id:"2-bochs"},"2. bochs:"),(0,o.kt)("p",null,"bochs\u662f\u4e00\u4e2ax86\u786c\u4ef6\u5e73\u53f0\u7684\u6a21\u62df\u5668. GeekOS\u8fd0\u884c\u4f9d\u6258\u4e8ebochs. "),(0,o.kt)("p",null,"\u5728\u5b89\u88c5\u597dLinux\u64cd\u4f5c\u7cfb\u7edf\u540e\u9700\u8981\u5b89\u88c5bochs\u4ee5\u53canasm, \u4ee5\u5b8c\u6210GeekOS\u73af\u5883\u7684\u642d\u5efa."),(0,o.kt)("h3",{id:"3-\u4e8c\u8005\u4e4b\u95f4\u7684\u5173\u7cfb"},"3. ",(0,o.kt)("strong",{parentName:"h3"},"\u4e8c\u8005\u4e4b\u95f4\u7684\u5173\u7cfb")),(0,o.kt)("p",null,"GeekOS\u7684\u5f00\u53d1\u73af\u5883\u53ef\u5206\u4e3a\u4e24\u90e8\u5206, \u4e00\u90e8\u5206\u662f\u7f16\u8bd1\u73af\u5883, \u4e00\u90e8\u5206\u662f\u8fd0\u884c\u73af\u5883. "),(0,o.kt)("p",null,(0,o.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora_images/202304251116967.jpg",alt:null})),(0,o.kt)("p",null,"\u5728\u7f16\u8bd1\u8fc7\u7a0b\u4e2d, \u4f7f\u7528Linux\u81ea\u5e26\u7684\u7f16\u8bd1\u73af\u5883\u4ee5\u53ca\u7f16\u8bd1\u547d\u4ee4\u5bf9\u7279\u5b9a\u7684GeekOS project\u8fdb\u884c\u7f16\u8bd1\u5373\u53ef. \u9996\u5148\u5728\u7ec8\u7aef\u4e2d\u901a\u8fc7",(0,o.kt)("inlineCode",{parentName:"p"},"cd"),"\u547d\u4ee4\u8fdb\u5165geekos-version/src/projecti/build\u76ee\u5f55, \u518d\u6267\u884cmake depend\u548cmake\u547d\u4ee4. \u7f16\u8bd1\u540e\u751f\u6210bochs\u7684\u955c\u50cf\u6587\u4ef6fd.img, \u8fd9\u662fbochs\u8fd0\u884c\u6240\u5fc5\u987b\u7684\u6587\u4ef6,\u4e5f\u662fGeekOS\u8fd0\u884c\u73af\u5883\u7684\u524d\u7f6e\u914d\u7f6e. "),(0,o.kt)("h2",{id:"\u4e8c\u5b89\u88c5\u4e0e\u914d\u7f6e"},"\u4e8c\u3001\u5b89\u88c5\u4e0e\u914d\u7f6e"),(0,o.kt)("p",null,"\u5b89\u88c5\u5176\u5b9e\u975e\u5e38\u7b80\u5355, \u8fd9\u91cc\u4e3b\u8981\u82b1\u7bc7\u5e45\u4ecb\u7ecd\u5b89\u88c5\u540e\u89e3\u51b3\u62a5\u9519\u7684\u914d\u7f6e."),(0,o.kt)("h3",{id:"1-\u5b89\u88c5"},"1. \u5b89\u88c5"),(0,o.kt)("p",null,"\u9700\u8981\u4e0b\u8f7d",(0,o.kt)("a",{parentName:"p",href:"https://sourceforge.net/projects/geekos/files/"},"GeekOS Files"),", \u5b89\u88c5bochs, nasm\u7b49."),(0,o.kt)("p",null,"GeekOS\u76f4\u63a5\u4e0b\u8f7d\u538b\u7f29\u5305, \u89e3\u538b\u5373\u53ef."),(0,o.kt)("p",null,"arch\u7cfb\u7528\u6237\u901a\u8fc7\u4ee5\u4e0b\u547d\u4ee4\u5373\u53ef\u5b8c\u6210bochs\u548cnasm\u7684\u5b89\u88c5."),(0,o.kt)("pre",null,(0,o.kt)("code",{parentName:"pre",className:"language-bash"},"yay -S bochs nasm\n")),(0,o.kt)("p",null,"\u5176\u4ed6\u53d1\u884c\u7248\u7684\u5b89\u88c5\u65b9\u6cd5\u8fd9\u91cc\u4e0d\u518d\u8d58\u8ff0, \u53ef\u9009\u62e9\u4ece\u7fa4\u6587\u4ef6\u91cc\u4e0b\u8f7d\u6e90\u6587\u4ef6\u5e76\u7f16\u8bd1\u5b89\u88c5, \u5e08\u5144\u5e08\u59d0\u4e5f\u5728\u7fa4\u6587\u4ef6\u91cc\u7ed9\u4e86\u4e00\u4e9b\u6559\u7a0b\u6307\u5bfc."),(0,o.kt)("h3",{id:"2-\u914d\u7f6e"},"2. \u914d\u7f6e"),(0,o.kt)("p",null,"\u5b8c\u6210\u5b89\u88c5\u540e, \u6211\u4eec\u5c31\u53ef\u4ee5\u5f00\u59cb\u5bf9project0\u4e2d\u7684\u4ee3\u7801\u8fdb\u884c\u5b8c\u5584\u4e86, \u5e76\u5728geekos-version/src/project0/build\u76ee\u5f55\u4e0b\u6267\u884c",(0,o.kt)("inlineCode",{parentName:"p"},"make depend"),"\u4ee5\u53ca",(0,o.kt)("inlineCode",{parentName:"p"},"make"),"\u547d\u4ee4, \u76ee\u7684\u662f\u7f16\u8bd1project0\u7684\u4ee3\u7801, \u751f\u6210bochs\u7684\u955c\u50cf\u6587\u4ef6fd.img\u4ee5\u6784\u5efaGeekOS\u7684\u8fd0\u884c\u73af\u5883."),(0,o.kt)("p",null,"\u4f46\u5f88\u591a\u62a5\u9519\u5c31\u662f\u5728",(0,o.kt)("inlineCode",{parentName:"p"},"make"),"\u8fd9\u4e00\u6b65\u4ea7\u751f\u7684, \u56e0\u6b64\u5728\u5b89\u88c5\u5b8c\u6210\u540e\u8fd8\u9700\u8981\u8fdb\u884c",(0,o.kt)("strong",{parentName:"p"},"\u914d\u7f6e"),"."),(0,o.kt)("p",null,"\u914d\u7f6e\u5206\u4e3a\u4e24\u90e8\u5206, \u4e00\u4e2a\u662f\u5bf9GeekOS\u4e2dmakefile\u7684\u4fee\u6539, \u53e6\u4e00\u90e8\u5206\u662f\u5bf9bochs\u7684\u914d\u7f6e\u6587\u4ef6\u7684\u4fee\u6539."),(0,o.kt)("h4",{id:"geekos\u4e2dmakefile\u7684\u914d\u7f6e"},"GeekOS\u4e2dmakefile\u7684\u914d\u7f6e"),(0,o.kt)("p",null,"\u7efc\u5408\u7f51\u4e0a\u5f88\u591a\u5e08\u5144\u5e08\u59d0\u7684\u535a\u5ba2\uff0c\u8fd9\u4e09\u4e2a\u9519\u8bef\u5e94\u8be5\u662f\u6bcf\u4e2a\u4eba\u90fd\u4f1a\u9047\u5230\u7684\uff0c\u6240\u4ee5\u5f53\u4f60\u4e0d\u786e\u5b9a\u81ea\u5df1\u80fd\u4e0d\u80fd\u8fd0\u884c\u65f6\uff0c\u8bf7\u5168\u90e8\u5b8c\u6210\u8fd9\u4e09\u4e2a\u6b65\u9aa4."),(0,o.kt)("ul",null,(0,o.kt)("li",{parentName:"ul"},(0,o.kt)("p",{parentName:"li"},"\u95ee\u9898: ",(0,o.kt)("inlineCode",{parentName:"p"},"warnings being treated as errors")),(0,o.kt)("p",{parentName:"li"},"\u89e3\u51b3\u65b9\u6848: "),(0,o.kt)("p",{parentName:"li"},"\u4fee\u6539geekos-version/src/projecti/build\u76ee\u5f55\u4e0b\u7684makefie\u6587\u4ef6(\u7531\u4e8e\u6bcf\u4e2aproject\u4e0b\u90fd\u5b58\u5728\u4e00\u4e2a\u5bf9\u5e94\u7684makefile\u6587\u4ef6, \u6240\u4ee5\u5728\u6bcf\u4e2a\u9879\u76ee\u7f16\u8bd1\u524d\u90fd\u8981\u4fee\u6539\u4e00\u6b21)"),(0,o.kt)("pre",{parentName:"li"},(0,o.kt)("code",{parentName:"pre",className:"language-makefile"},"// \u4fee\u6539\u7b2c149\u884c\uff1a\nCC_GENERAL_OPTS := $(GENERAL_OPTS) -Werror \n// \u4fee\u6539\u540e\uff1a\nCC_GENERAL_OPTS := $(GENERAL_OPTS)\n"))),(0,o.kt)("li",{parentName:"ul"},(0,o.kt)("p",{parentName:"li"},"\u95ee\u9898: ",(0,o.kt)("inlineCode",{parentName:"p"},"X86_64\u4e0ei386\u8f93\u51fa\u4e0d\u517c\u5bb9")),(0,o.kt)("p",{parentName:"li"},"\u89e3\u51b3\u65b9\u6848: "),(0,o.kt)("p",{parentName:"li"},"\u4fee\u6539geekos-version/src/projecti/build\u76ee\u5f55\u4e0b\u7684makefie\u6587\u4ef6"),(0,o.kt)("pre",{parentName:"li"},(0,o.kt)("code",{parentName:"pre",className:"language-makefile"},"# Target C compiler. gcc 2.95.2 or later should work. 100\u884c\nTARGET_CC := $(TARGET_CC_PREFIX)gcc -m32\n\n# Host C compiler. This is used to compile programs to execute on\n# the host platform, not the target (x86) platform. On x86/ELF\n# systems, such as Linux and FreeBSD, it can generally be the same\n# as the target C compiler. 106\u884c\nHOST_CC := gcc -m32\n\n# Target linker. GNU ld is probably to only one that will work.109\u884c\nTARGET_LD := $(TARGET_CC_PREFIX)ld -m elf_i386\n"))),(0,o.kt)("li",{parentName:"ul"},(0,o.kt)("p",{parentName:"li"},"\u95ee\u9898: ",(0,o.kt)("inlineCode",{parentName:"p"},"undefined reference to '__stack_chk_fail'")),(0,o.kt)("p",{parentName:"li"},"\u89e3\u51b3\u65b9\u6848: "),(0,o.kt)("p",{parentName:"li"},"\u4fee\u6539geekos-version/src/projecti/build\u76ee\u5f55\u4e0b\u7684makefie\u6587\u4ef6"),(0,o.kt)("pre",{parentName:"li"},(0,o.kt)("code",{parentName:"pre",className:"language-makefile"},"# Flags used for all C source files\n// \u4fee\u6539\u524d\uff1a148\u884c\nGENERAL_OPTS := -O -Wall $(EXTRA_C_OPTS)\n// \u4fee\u6539\u540e\uff1a\nGENERAL_OPTS := -O -Wall -fno-stack-protector $(EXTRA_C_OPTS)\n")))),(0,o.kt)("h4",{id:"bochs\u914d\u7f6e\u6587\u4ef6\u7684\u4fee\u6539"},"bochs\u914d\u7f6e\u6587\u4ef6\u7684\u4fee\u6539"),(0,o.kt)("p",null,"\u5728geekos-version/src/projecti/build\u76ee\u5f55\u4e0b\u521b\u5efa.bochsrc\u6587\u4ef6"),(0,o.kt)("pre",null,(0,o.kt)("code",{parentName:"pre",className:"language-makefile"},"# An example .bochsrc file.\n# You will need to edit these lines to reflect your system.\nvgaromimage: file=/usr/local/share/bochs/VGABIOS-lgpl-latest\n# \u8bf7\u6839\u636e\u81ea\u5df1\u7684\u5b9e\u9645\u5b89\u88c5\u8def\u5f84\u66f4\u6539\nromimage: file=/usr/local/share/bochs/BIOS-bochs-latest\n# \u8bf7\u6839\u636e\u81ea\u5df1\u7684\u5b9e\u9645\u5b89\u88c5\u8def\u5f84\u66f4\u6539\nmegs: 8\nboot: a\nfloppya: 1_44=fd.img, status=inserted\n#floppya: 1_44=fd_aug.img, status=inserted\nlog: ./bochs.out\n# keyboard_serial_delay: 200\n# vga_update_interval: 300000\nmouse: enabled=0\nprivate_colormap: enabled=0\n# i440fxsupport: enabled=0\n# Uncomment this to write all bochs debugging messages to\n# bochs.out. This produces a lot of output, but can be very\n# useful for debugging the kernel.\n#debug: action=report\n\n")),(0,o.kt)("p",null,"\u5230\u6b64\u4e3a\u6b62, \u6240\u6709\u7684\u914d\u7f6e\u5de5\u4f5c\u5df2\u7ecf\u5b8c\u6210, \u53ef\u4ee5\u6b63\u5e38\u7684\u8fdb\u884c\u4e0b\u4e00\u6b65\u7684\u4ee3\u7801\u5b8c\u5584."),(0,o.kt)("p",null,"\u5982\u679c\u9700\u8981\u9a8c\u8bc1\u81ea\u5df1\u662f\u5426\u914d\u7f6e\u6210\u529f, \u53ef\u4ee5\u53c2\u7167\u4e0b\u4e00\u7bc7\u535a\u5ba2",(0,o.kt)("a",{parentName:"p",href:"https://bonjour-npy.github.io/docs/%E8%AF%BE%E7%A8%8B%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0/%E6%93%8D%E4%BD%9C%E7%B3%BB%E7%BB%9F%E8%AF%BE%E8%AE%BE/GeekOS%20project%200"},"GeekOS project 0\u7684\u5b9e\u73b0"),", \u5728\u672c\u7bc7\u535a\u5ba2\u4e2d\u4f1a\u6709\u5b8c\u6574\u7684C\u8bed\u8a00\u4ee3\u7801\u7f16\u5199\u4ee5\u53ca\u7f16\u8bd1\u3001\u4f7f\u7528bochs\u6267\u884c\u7684\u8fc7\u7a0b."))}k.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/en/assets/js/cf67a3ce.f89d92ef.js b/en/assets/js/cf67a3ce.f89d92ef.js new file mode 100644 index 000000000..864c3d87b --- /dev/null +++ b/en/assets/js/cf67a3ce.f89d92ef.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunknpy_notebook=self.webpackChunknpy_notebook||[]).push([[3094],{3905:(a,e,t)=>{t.d(e,{Zo:()=>i,kt:()=>h});var s=t(7294);function m(a,e,t){return e in a?Object.defineProperty(a,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):a[e]=t,a}function n(a,e){var t=Object.keys(a);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(a);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable}))),t.push.apply(t,s)}return t}function p(a){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?n(Object(t),!0).forEach((function(e){m(a,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(t)):n(Object(t)).forEach((function(e){Object.defineProperty(a,e,Object.getOwnPropertyDescriptor(t,e))}))}return a}function r(a,e){if(null==a)return{};var t,s,m=function(a,e){if(null==a)return{};var t,s,m={},n=Object.keys(a);for(s=0;s<n.length;s++)t=n[s],e.indexOf(t)>=0||(m[t]=a[t]);return m}(a,e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);for(s=0;s<n.length;s++)t=n[s],e.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(a,t)&&(m[t]=a[t])}return m}var N=s.createContext({}),l=function(a){var e=s.useContext(N),t=e;return a&&(t="function"==typeof a?a(e):p(p({},e),a)),t},i=function(a){var e=l(a.components);return s.createElement(N.Provider,{value:e},a.children)},k="mdxType",c={inlineCode:"code",wrapper:function(a){var e=a.children;return s.createElement(s.Fragment,{},e)}},o=s.forwardRef((function(a,e){var t=a.components,m=a.mdxType,n=a.originalType,N=a.parentName,i=r(a,["components","mdxType","originalType","parentName"]),k=l(t),o=m,h=k["".concat(N,".").concat(o)]||k[o]||c[o]||n;return t?s.createElement(h,p(p({ref:e},i),{},{components:t})):s.createElement(h,p({ref:e},i))}));function h(a,e){var t=arguments,m=e&&e.mdxType;if("string"==typeof a||m){var n=t.length,p=new Array(n);p[0]=o;var r={};for(var N in e)hasOwnProperty.call(e,N)&&(r[N]=e[N]);r.originalType=a,r[k]="string"==typeof a?a:m,p[1]=r;for(var l=2;l<n;l++)p[l]=t[l];return s.createElement.apply(null,p)}return s.createElement.apply(null,t)}o.displayName="MDXCreateElement"},3582:(a,e,t)=>{t.r(e),t.d(e,{assets:()=>N,contentTitle:()=>p,default:()=>c,frontMatter:()=>n,metadata:()=>r,toc:()=>l});var s=t(7462),m=(t(7294),t(3905));const n={},p="\u6b63\u5219\u5316\u4e0e\u6743\u91cd\u8870\u9000",r={unversionedId:"Deep-Learning/\u57fa\u7840\u77e5\u8bc6/\u6b63\u5219\u5316\u4e0e\u6743\u91cd\u8870\u9000",id:"Deep-Learning/\u57fa\u7840\u77e5\u8bc6/\u6b63\u5219\u5316\u4e0e\u6743\u91cd\u8870\u9000",title:"\u6b63\u5219\u5316\u4e0e\u6743\u91cd\u8870\u9000",description:"\u6b63\u5219\u5316\u4e0e\u6743\u91cd\u8870\u9000",source:"@site/docs/Deep-Learning/3-\u57fa\u7840\u77e5\u8bc6/\u6b63\u5219\u5316\u4e0e\u6743\u91cd\u8870\u9000.md",sourceDirName:"Deep-Learning/3-\u57fa\u7840\u77e5\u8bc6",slug:"/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/\u6b63\u5219\u5316\u4e0e\u6743\u91cd\u8870\u9000",permalink:"/en/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/\u6b63\u5219\u5316\u4e0e\u6743\u91cd\u8870\u9000",draft:!1,tags:[],version:"current",frontMatter:{},sidebar:"deep_learning",previous:{title:"PyTorch\u57fa\u7840",permalink:"/en/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/PytorchBasics"},next:{title:"\u6df1\u5ea6\u53ef\u5206\u79bb\u5377\u79ef",permalink:"/en/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/\u6df1\u5ea6\u53ef\u5206\u79bb\u5377\u79ef"}},N={},l=[{value:"\u4e00\u3001\u4ec0\u4e48\u662f\u6b63\u5219\u5316",id:"\u4e00\u4ec0\u4e48\u662f\u6b63\u5219\u5316",level:2},{value:"\u4e8c\u3001L1\u6b63\u5219\u5316",id:"\u4e8cl1\u6b63\u5219\u5316",level:2},{value:"\u4e09\u3001L2\u6b63\u5219\u5316\u4e0e\u6743\u91cd\u8870\u9000",id:"\u4e09l2\u6b63\u5219\u5316\u4e0e\u6743\u91cd\u8870\u9000",level:2}],i={toc:l},k="wrapper";function c(a){let{components:e,...t}=a;return(0,m.kt)(k,(0,s.Z)({},i,t,{components:e,mdxType:"MDXLayout"}),(0,m.kt)("h1",{id:"\u6b63\u5219\u5316\u4e0e\u6743\u91cd\u8870\u9000"},"\u6b63\u5219\u5316\u4e0e\u6743\u91cd\u8870\u9000"),(0,m.kt)("admonition",{type:"tip"},(0,m.kt)("p",{parentName:"admonition"},"\u6b63\u5219\u5316\u4e0e\u6743\u91cd\u8870\u9000")),(0,m.kt)("h2",{id:"\u4e00\u4ec0\u4e48\u662f\u6b63\u5219\u5316"},"\u4e00\u3001\u4ec0\u4e48\u662f\u6b63\u5219\u5316"),(0,m.kt)("p",null,"\u6b63\u5219\u5316(Regularization)\u662f\u673a\u5668\u5b66\u4e60\u4e2d\u7528\u4e8e\u63a7\u5236\u6a21\u578b\u8fc7\u62df\u5408\u7684\u4e00\u79cd\u6280\u672f\u3002\u5728\u6a21\u578b\u8bad\u7ec3\u8fc7\u7a0b\u4e2d\uff0c\u6211\u4eec\u901a\u5e38\u8981\u6700\u5c0f\u5316\u4e00\u4e2a\u635f\u5931\u51fd\u6570\u6765\u5f97\u5230\u6700\u4f73\u7684\u6a21\u578b\u53c2\u6570\u3002\u4f46\u662f\u5f53\u6a21\u578b\u8fc7\u4e8e\u590d\u6742\u65f6\uff0c\u5bb9\u6613\u51fa\u73b0\u8fc7\u62df\u5408\u73b0\u8c61\uff0c\u5373\u5728\u8bad\u7ec3\u6570\u636e\u4e0a\u8868\u73b0\u5f88\u597d\uff0c\u4f46\u5728\u6d4b\u8bd5\u6570\u636e\u4e0a\u8868\u73b0\u5f88\u5dee\u3002\u8fd9\u662f\u56e0\u4e3a",(0,m.kt)("strong",{parentName:"p"},"\u6a21\u578b\u8fc7\u4e8e\u4f9d\u8d56\u8bad\u7ec3\u6570\u636e\u7684\u566a\u58f0\u548c\u7ec6\u8282\uff0c\u800c\u5ffd\u7565\u4e86\u771f\u6b63\u7684\u89c4\u5f8b\u3002")),(0,m.kt)("p",null,"\u6b63\u5219\u5316\u901a\u8fc7\u5728\u635f\u5931\u51fd\u6570\u4e2d\u589e\u52a0\u4e00\u4e2a",(0,m.kt)("strong",{parentName:"p"},"\u60e9\u7f5a\u9879(Penalty)"),"\u6765\u5bf9\u6a21\u578b\u8fdb\u884c\u7ea6\u675f\uff0c\u9632\u6b62\u5176\u8fc7\u5206\u4f9d\u8d56\u8bad\u7ec3\u6570\u636e\u3002"),(0,m.kt)("p",null,"\u5e38\u89c1\u7684\u6b63\u5219\u5316\u65b9\u6cd5\u5305\u62ecL1\u6b63\u5219\u5316(\u786c\u6027\u9650\u5236)\u3001L2\u6b63\u5219\u5316(\u67d4\u6027\u9650\u5236)\u7b49\u3002"),(0,m.kt)("p",null,"L1\u6b63\u5219\u5316\u4f1a\u4f7f\u5f97\u4e00\u90e8\u5206\u53c2\u6570\u53d8\u4e3a0\uff0c\u4ece\u800c\u5b9e\u73b0\u7279\u5f81\u9009\u62e9\u7684\u6548\u679c\uff1bL2\u6b63\u5219\u5316\u5219\u4f1a\u4f7f\u5f97\u6a21\u578b\u53c2\u6570\u5c3d\u91cf\u63a5\u8fd10\uff0c\u4e5f\u5c31\u662f\u4f7f\u5f97\u6a21\u578b\u66f4\u52a0\u5e73\u6ed1\u3002\u5728\u4f7f\u7528\u6b63\u5219\u5316\u65f6\uff0c\u9700\u8981\u8c03\u6574\u6b63\u5219\u5316\u5f3a\u5ea6\u7684\u8d85\u53c2\u6570\uff0c\u4ee5\u8fbe\u5230\u6700\u4f18\u7684\u6cdb\u5316\u6027\u80fd\u3002"),(0,m.kt)("hr",null),(0,m.kt)("h2",{id:"\u4e8cl1\u6b63\u5219\u5316"},"\u4e8c\u3001L1\u6b63\u5219\u5316"),(0,m.kt)("div",{className:"math math-display"},(0,m.kt)("span",{parentName:"div",className:"katex-display"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mtable",{parentName:"semantics",width:"100%"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mrow",{parentName:"mtd"},(0,m.kt)("mi",{parentName:"mrow"},"m"),(0,m.kt)("mi",{parentName:"mrow"},"i"),(0,m.kt)("mi",{parentName:"mrow"},"n"),(0,m.kt)("mtext",{parentName:"mrow"},"\xa0"),(0,m.kt)("mi",{parentName:"mrow"},"l"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"w"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"b"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mtext",{parentName:"mrow"},"\xa0subject\xa0to\xa0"),(0,m.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"\u2225"),(0,m.kt)("mi",{parentName:"mrow"},"w"),(0,m.kt)("msubsup",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msubsup",mathvariant:"normal"},"\u2225"),(0,m.kt)("mn",{parentName:"msubsup"},"1"),(0,m.kt)("mn",{parentName:"msubsup"},"2")),(0,m.kt)("mo",{parentName:"mrow"},"\u2264"),(0,m.kt)("mi",{parentName:"mrow"},"\u03b8"))),(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mtext",{parentName:"mtd"},"(1)")))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"min \\space l(w, b) \\space \\text{subject to} \\space \\Vert w \\Vert^2_1 \\leq \\theta \\tag{1}")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1.1141em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"min"),(0,m.kt)("span",{parentName:"span",className:"mspace"},"\xa0"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.01968em"}},"l"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02691em"}},"w"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"b"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace"},"\xa0"),(0,m.kt)("span",{parentName:"span",className:"mord text"},(0,m.kt)("span",{parentName:"span",className:"mord"},"subject\xa0to")),(0,m.kt)("span",{parentName:"span",className:"mspace"},"\xa0"),(0,m.kt)("span",{parentName:"span",className:"mord"},"\u2225"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02691em"}},"w"),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"\u2225"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.8641em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.453em",marginLeft:"0em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"1"))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.113em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"2")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.247em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"\u2264"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6944em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02778em"}},"\u03b8")),(0,m.kt)("span",{parentName:"span",className:"tag"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1.1141em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord text"},(0,m.kt)("span",{parentName:"span",className:"mord"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"1")),(0,m.kt)("span",{parentName:"span",className:"mord"},")"))))))),(0,m.kt)("ul",null,(0,m.kt)("li",{parentName:"ul"},"L1\u6b63\u5219\u5316\u9650\u5236\u6743\u91cd\u53c2\u6570\u7684L1\u8303\u6570\u5c0f\u4e8e\u67d0\u4e00\u7279\u5b9a\u7684\u8d85\u53c2\u6570"),(0,m.kt)("li",{parentName:"ul"},"\u901a\u5e38\u4e0d\u9650\u5236\u504f\u79fb",(0,m.kt)("span",{parentName:"li",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"b")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"b")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6944em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"b")))))),(0,m.kt)("li",{parentName:"ul"},"\u66f4\u5c0f\u7684\u8d85\u53c2\u6570",(0,m.kt)("span",{parentName:"li",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"\u03b8")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"\\theta")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6944em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02778em"}},"\u03b8"))))),"\u610f\u5473\u7740\u66f4\u5f3a\u7684\u6b63\u5219\u9879")),(0,m.kt)("hr",null),(0,m.kt)("h2",{id:"\u4e09l2\u6b63\u5219\u5316\u4e0e\u6743\u91cd\u8870\u9000"},"\u4e09\u3001L2\u6b63\u5219\u5316\u4e0e\u6743\u91cd\u8870\u9000"),(0,m.kt)("p",null,"L2\u6b63\u5219\u5316\u662f\u6307\u5728\u6a21\u578b\u7684\u635f\u5931\u51fd\u6570\u4e2d\uff0c\u52a0\u5165\u5bf9\u6a21\u578b\u53c2\u6570\u7684L2\u8303\u6570\u8fdb\u884c\u60e9\u7f5a\u7684\u4e00\u79cd\u65b9\u6cd5\u3002\u516c\u5f0f\u5982\u4e0b\u6240\u793a\uff1a"),(0,m.kt)("div",{className:"math math-display"},(0,m.kt)("span",{parentName:"div",className:"katex-display"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mtable",{parentName:"semantics",width:"100%"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mrow",{parentName:"mtd"},(0,m.kt)("mi",{parentName:"mrow"},"l"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"w"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"b"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"+"),(0,m.kt)("mfrac",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"mfrac"},"\u03bb"),(0,m.kt)("mn",{parentName:"mfrac"},"2")),(0,m.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"\u2225"),(0,m.kt)("mi",{parentName:"mrow"},"w"),(0,m.kt)("msubsup",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msubsup",mathvariant:"normal"},"\u2225"),(0,m.kt)("mn",{parentName:"msubsup"},"1"),(0,m.kt)("mn",{parentName:"msubsup"},"2")))),(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mtext",{parentName:"mtd"},"(2)")))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"l(w, b) + \\frac{\\lambda}{2} \\Vert w \\Vert^2_1 \\tag{2}")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.01968em"}},"l"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02691em"}},"w"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"b"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"+"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"2.0574em",verticalAlign:"-0.686em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mopen nulldelimiter"}),(0,m.kt)("span",{parentName:"span",className:"mfrac"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.3714em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.314em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"2"))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.23em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"frac-line",style:{borderBottomWidth:"0.04em"}})),(0,m.kt)("span",{parentName:"span",style:{top:"-3.677em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"\u03bb")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.686em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"mclose nulldelimiter"})),(0,m.kt)("span",{parentName:"span",className:"mord"},"\u2225"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02691em"}},"w"),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"\u2225"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.8641em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.453em",marginLeft:"0em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"1"))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.113em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"2")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.247em"}},(0,m.kt)("span",{parentName:"span"}))))))),(0,m.kt)("span",{parentName:"span",className:"tag"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"2.0574em",verticalAlign:"-0.686em"}}),(0,m.kt)("span",{parentName:"span",className:"mord text"},(0,m.kt)("span",{parentName:"span",className:"mord"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"2")),(0,m.kt)("span",{parentName:"span",className:"mord"},")"))))))),(0,m.kt)("p",null,"\u5176\u4e2d\uff0c",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"\u03bb")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"\\lambda")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6944em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"\u03bb"))))),"\u662f\u4e00\u4e2a\u6b63\u5219\u5316\u7cfb\u6570\u8d85\u53c2\u6570"),(0,m.kt)("p",null,"\u6b64\u65f6\u5728\u66f4\u65b0\u68af\u5ea6\u65f6\uff0c\u5177\u6709\u5982\u4e0b\u516c\u5f0f"),(0,m.kt)("div",{className:"math math-display"},(0,m.kt)("span",{parentName:"div",className:"katex-display"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mtable",{parentName:"semantics",width:"100%"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mrow",{parentName:"mtd"},(0,m.kt)("mfrac",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"mfrac",mathvariant:"normal"},"\u2202"),(0,m.kt)("mrow",{parentName:"mfrac"},(0,m.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"\u2202"),(0,m.kt)("mi",{parentName:"mrow"},"w"))),(0,m.kt)("mo",{parentName:"mrow",fence:"false",stretchy:"true",minsize:"1.2em",maxsize:"1.2em"},"("),(0,m.kt)("mi",{parentName:"mrow"},"l"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"w"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"b"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"mrow"},"+"),(0,m.kt)("mfrac",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"mfrac"},"\u03bb"),(0,m.kt)("mn",{parentName:"mfrac"},"2")),(0,m.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"\u2225"),(0,m.kt)("mi",{parentName:"mrow"},"w"),(0,m.kt)("msubsup",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msubsup",mathvariant:"normal"},"\u2225"),(0,m.kt)("mn",{parentName:"msubsup"},"1"),(0,m.kt)("mn",{parentName:"msubsup"},"2")),(0,m.kt)("mo",{parentName:"mrow",fence:"false",stretchy:"true",minsize:"1.2em",maxsize:"1.2em"},")"),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("mfrac",{parentName:"mrow"},(0,m.kt)("mrow",{parentName:"mfrac"},(0,m.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"\u2202"),(0,m.kt)("mi",{parentName:"mrow"},"l"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"w"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"b"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,m.kt)("mrow",{parentName:"mfrac"},(0,m.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"\u2202"),(0,m.kt)("mi",{parentName:"mrow"},"w"))),(0,m.kt)("mo",{parentName:"mrow"},"+"),(0,m.kt)("mi",{parentName:"mrow"},"\u03bb"),(0,m.kt)("mi",{parentName:"mrow"},"w"))),(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mtext",{parentName:"mtd"},"(3)")))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"\\frac{\\partial}{\\partial w} \\big(l(w, b) + \\frac{\\lambda}{2} \\Vert w \\Vert^2_1 \\big) = \\frac{\\partial l(w, b)}{\\partial w} + \\lambda w \\tag{3}")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"2.0574em",verticalAlign:"-0.686em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mopen nulldelimiter"}),(0,m.kt)("span",{parentName:"span",className:"mfrac"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.3714em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.314em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord",style:{marginRight:"0.05556em"}},"\u2202"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02691em"}},"w"))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.23em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"frac-line",style:{borderBottomWidth:"0.04em"}})),(0,m.kt)("span",{parentName:"span",style:{top:"-3.677em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord",style:{marginRight:"0.05556em"}},"\u2202")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.686em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"mclose nulldelimiter"})),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"delimsizing size1"},"(")),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.01968em"}},"l"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02691em"}},"w"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"b"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"+"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"2.0574em",verticalAlign:"-0.686em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mopen nulldelimiter"}),(0,m.kt)("span",{parentName:"span",className:"mfrac"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.3714em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.314em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"2"))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.23em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"frac-line",style:{borderBottomWidth:"0.04em"}})),(0,m.kt)("span",{parentName:"span",style:{top:"-3.677em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"\u03bb")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.686em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"mclose nulldelimiter"})),(0,m.kt)("span",{parentName:"span",className:"mord"},"\u2225"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02691em"}},"w"),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"\u2225"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.8641em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.453em",marginLeft:"0em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"1"))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.113em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"2")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.247em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"delimsizing size1"},")")),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"="),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"2.113em",verticalAlign:"-0.686em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mopen nulldelimiter"}),(0,m.kt)("span",{parentName:"span",className:"mfrac"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.427em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.314em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord",style:{marginRight:"0.05556em"}},"\u2202"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02691em"}},"w"))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.23em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"frac-line",style:{borderBottomWidth:"0.04em"}})),(0,m.kt)("span",{parentName:"span",style:{top:"-3.677em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord",style:{marginRight:"0.05556em"}},"\u2202"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.01968em"}},"l"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02691em"}},"w"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"b"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.686em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"mclose nulldelimiter"})),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"+"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6944em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"\u03bb"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02691em"}},"w")),(0,m.kt)("span",{parentName:"span",className:"tag"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"2.113em",verticalAlign:"-0.686em"}}),(0,m.kt)("span",{parentName:"span",className:"mord text"},(0,m.kt)("span",{parentName:"span",className:"mord"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"3")),(0,m.kt)("span",{parentName:"span",className:"mord"},")"))))))),(0,m.kt)("div",{className:"math math-display"},(0,m.kt)("span",{parentName:"div",className:"katex-display"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mtable",{parentName:"semantics",width:"100%"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mrow",{parentName:"mtd"},(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"w"),(0,m.kt)("mrow",{parentName:"msub"},(0,m.kt)("mi",{parentName:"mrow"},"t"),(0,m.kt)("mo",{parentName:"mrow"},"+"),(0,m.kt)("mn",{parentName:"mrow"},"1"))),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mn",{parentName:"mrow"},"1"),(0,m.kt)("mo",{parentName:"mrow"},"\u2212"),(0,m.kt)("mi",{parentName:"mrow"},"\u03b7"),(0,m.kt)("mi",{parentName:"mrow"},"\u03bb"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"w"),(0,m.kt)("mi",{parentName:"msub"},"t")),(0,m.kt)("mo",{parentName:"mrow"},"+"),(0,m.kt)("mi",{parentName:"mrow"},"\u03b7"),(0,m.kt)("mfrac",{parentName:"mrow"},(0,m.kt)("mrow",{parentName:"mfrac"},(0,m.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"\u2202"),(0,m.kt)("mi",{parentName:"mrow"},"l"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"w"),(0,m.kt)("mi",{parentName:"msub"},"t")),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"b"),(0,m.kt)("mi",{parentName:"msub"},"t")),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,m.kt)("mrow",{parentName:"mfrac"},(0,m.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"\u2202"),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"w"),(0,m.kt)("mi",{parentName:"msub"},"t")))))),(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mtext",{parentName:"mtd"},"(4)")))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"w_{t+1}=(1-\\eta \\lambda)w_t + \\eta \\frac{\\partial l(w_t, b_t)}{\\partial w_t} \\tag{4}")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6389em",verticalAlign:"-0.2083em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02691em"}},"w"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3011em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0269em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"t"),(0,m.kt)("span",{parentName:"span",className:"mbin mtight"},"+"),(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"1"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.2083em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"="),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},"1"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"\u2212"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"\u03b7"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"\u03bb"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02691em"}},"w"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.2806em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0269em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"t")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"+"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"2.263em",verticalAlign:"-0.836em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"\u03b7"),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mopen nulldelimiter"}),(0,m.kt)("span",{parentName:"span",className:"mfrac"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.427em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.314em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord",style:{marginRight:"0.05556em"}},"\u2202"),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02691em"}},"w"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.2806em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0269em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"t")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.23em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"frac-line",style:{borderBottomWidth:"0.04em"}})),(0,m.kt)("span",{parentName:"span",style:{top:"-3.677em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord",style:{marginRight:"0.05556em"}},"\u2202"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.01968em"}},"l"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02691em"}},"w"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.2806em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0269em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"t")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"b"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.2806em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"t")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mclose"},")")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.836em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"mclose nulldelimiter"}))),(0,m.kt)("span",{parentName:"span",className:"tag"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"2.263em",verticalAlign:"-0.836em"}}),(0,m.kt)("span",{parentName:"span",className:"mord text"},(0,m.kt)("span",{parentName:"span",className:"mord"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"4")),(0,m.kt)("span",{parentName:"span",className:"mord"},")"))))))),(0,m.kt)("p",null,"\u901a\u5e38",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"\u03b7"),(0,m.kt)("mi",{parentName:"mrow"},"\u03bb"),(0,m.kt)("mo",{parentName:"mrow"},"<"),(0,m.kt)("mn",{parentName:"mrow"},"1")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"\\eta \\lambda < 1")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.8889em",verticalAlign:"-0.1944em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"\u03b7"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"\u03bb"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"<"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6444em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"1"))))),"\uff0c\u56e0\u6b64\u53c8\u53eb\u505a\u6743\u91cd\u8870\u9000"))}c.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/en/assets/js/d1030cc9.b55e3482.js b/en/assets/js/d1030cc9.b55e3482.js new file mode 100644 index 000000000..80db72dae --- /dev/null +++ b/en/assets/js/d1030cc9.b55e3482.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunknpy_notebook=self.webpackChunknpy_notebook||[]).push([[5742],{3905:(e,t,n)=>{n.d(t,{Zo:()=>u,kt:()=>y});var r=n(7294);function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function i(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var p=r.createContext({}),c=function(e){var t=r.useContext(p),n=t;return e&&(n="function"==typeof e?e(t):l(l({},t),e)),n},u=function(e){var t=c(e.components);return r.createElement(p.Provider,{value:t},e.children)},s="mdxType",m={inlineCode:"code",wrapper:function(e){var t=e.children;return r.createElement(r.Fragment,{},t)}},f=r.forwardRef((function(e,t){var n=e.components,a=e.mdxType,o=e.originalType,p=e.parentName,u=i(e,["components","mdxType","originalType","parentName"]),s=c(n),f=a,y=s["".concat(p,".").concat(f)]||s[f]||m[f]||o;return n?r.createElement(y,l(l({ref:t},u),{},{components:n})):r.createElement(y,l({ref:t},u))}));function y(e,t){var n=arguments,a=t&&t.mdxType;if("string"==typeof e||a){var o=n.length,l=new Array(o);l[0]=f;var i={};for(var p in t)hasOwnProperty.call(t,p)&&(i[p]=t[p]);i.originalType=e,i[s]="string"==typeof e?e:a,l[1]=i;for(var c=2;c<o;c++)l[c]=n[c];return r.createElement.apply(null,l)}return r.createElement.apply(null,n)}f.displayName="MDXCreateElement"},3688:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>p,contentTitle:()=>l,default:()=>m,frontMatter:()=>o,metadata:()=>i,toc:()=>c});var r=n(7462),a=(n(7294),n(3905));const o={},l="AlexNet",i={unversionedId:"Deep-Learning/\u57fa\u7840\u77e5\u8bc6/AlexNet",id:"Deep-Learning/\u57fa\u7840\u77e5\u8bc6/AlexNet",title:"AlexNet",description:"\u80cc\u666f",source:"@site/docs/Deep-Learning/3-\u57fa\u7840\u77e5\u8bc6/AlexNet.md",sourceDirName:"Deep-Learning/3-\u57fa\u7840\u77e5\u8bc6",slug:"/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/AlexNet",permalink:"/en/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/AlexNet",draft:!1,tags:[],version:"current",frontMatter:{},sidebar:"deep_learning",previous:{title:"\u67e5\u6f0f\u8865\u7f3a",permalink:"/en/docs/Deep-Learning/Fill-The-Gaps"},next:{title:"\u5377\u79ef\u5c42",permalink:"/en/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/ConvolutionalLayer"}},p={},c=[{value:"\u80cc\u666f",id:"\u80cc\u666f",level:2},{value:"\u65b0\u7684\u6982\u5ff5\u548c\u6280\u672f",id:"\u65b0\u7684\u6982\u5ff5\u548c\u6280\u672f",level:2},{value:"\u4e0eLeNet\u6bd4\u8f83",id:"\u4e0elenet\u6bd4\u8f83",level:2}],u={toc:c},s="wrapper";function m(e){let{components:t,...n}=e;return(0,a.kt)(s,(0,r.Z)({},u,n,{components:t,mdxType:"MDXLayout"}),(0,a.kt)("h1",{id:"alexnet"},"AlexNet"),(0,a.kt)("h2",{id:"\u80cc\u666f"},"\u80cc\u666f"),(0,a.kt)("p",null,"AlexNet\u662f\u63072012\u5e74\u7531Alex Krizhevsky\u3001Ilya Sutskever\u548cGeoffrey Hinton\u63d0\u51fa\u7684\u4e00\u79cd\u5377\u79ef\u795e\u7ecf\u7f51\u7edc\u6a21\u578b\uff0c\u5b83\u4e3b\u8981\u5e94\u7528\u4e8e\u56fe\u50cf\u5206\u7c7b\u4efb\u52a1\u3002\u5728\u5f53\u65f6\uff0cAlexNet\u7684\u8868\u73b0\u8fdc\u8fdc\u8d85\u8fc7\u4e86\u5176\u4ed6\u53c2\u8d5b\u7684\u7f51\u7edc\u6a21\u578b\uff0c\u5e76\u4e14\u5728ImageNet\u6bd4\u8d5b\u4e2d\u83b7\u5f97\u4e86\u7b2c\u4e00\u540d\u3002"),(0,a.kt)("p",null,"\u6807\u5fd7\u7740\u65b0\u7684\u4e00\u8f6e\u795e\u7ecf\u7f51\u7edc\u70ed\u6f6e\u7684\u5f00\u59cb"),(0,a.kt)("p",null,(0,a.kt)("img",{parentName:"p",src:"https://github.com/bonjour-npy/Image-Hosting-Service/blob/main/typora_images/1.png?raw=true",alt:"image"})),(0,a.kt)("h2",{id:"\u65b0\u7684\u6982\u5ff5\u548c\u6280\u672f"},"\u65b0\u7684\u6982\u5ff5\u548c\u6280\u672f"),(0,a.kt)("ul",null,(0,a.kt)("li",{parentName:"ul"},"ReLU\u6fc0\u6d3b\u51fd\u6570"),(0,a.kt)("li",{parentName:"ul"},"Dropout\u6b63\u5219\u5316\u3001\u4e22\u5f03\u6cd5"),(0,a.kt)("li",{parentName:"ul"},"\u6700\u5927\u6c60\u5316MaxPooling")),(0,a.kt)("h2",{id:"\u4e0elenet\u6bd4\u8f83"},"\u4e0eLeNet\u6bd4\u8f83"),(0,a.kt)("ol",null,(0,a.kt)("li",{parentName:"ol"},"\u7531\u4e8e\u8f93\u5165\u7684\u56fe\u7247\u66f4\u5927\uff0c\u8bbe\u7f6e\u4e86\u66f4\u5927\u7684\u5377\u79ef\u6838\u5c3a\u5bf8\u548c\u6b65\u957f"),(0,a.kt)("li",{parentName:"ol"},"\u66f4\u5927\u7684\u6c60\u5316\u7a97\u53e3\uff0c\u4f7f\u7528\u6700\u5927\u6c60\u5316"),(0,a.kt)("li",{parentName:"ol"},"\u5728\u5377\u79ef\u5c42\u4e2d\u8bbe\u7f6e\u4e86\u66f4\u5927\u7684\u8f93\u51fa\u901a\u9053\uff0c\u63d0\u53d6\u66f4\u6df1\u5c42\u7684\u7279\u5f81\u3001\u8bc6\u522b\u66f4\u591a\u7684\u6a21\u5f0f"),(0,a.kt)("li",{parentName:"ol"},"\u6fc0\u6d3b\u51fd\u6570\u4eceSigmoid\u6539\u6210\u4e86ReLU\uff0c\u51cf\u7f13\u68af\u5ea6\u6d88\u5931"),(0,a.kt)("li",{parentName:"ol"},"\u5728\u5377\u79ef\u5c42\u548c\u8f93\u51fa\u5c42\u4e4b\u95f4\u4ecd\u4f7f\u7528\u4e24\u4e2a\u5168\u8fde\u63a5\u9690\u85cf\u5c42\uff0c\u4f46\u5728\u8f93\u51fa\u5c42\u4e4b\u524d\u589e\u52a0\u4e86Dropout\u5c42\u505a\u6b63\u5219\u5316"),(0,a.kt)("li",{parentName:"ol"},"\u4f7f\u7528\u4e86\u6570\u636e\u589e\u5f3adata augmentation")))}m.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/en/assets/js/d594b08b.b2ee120d.js b/en/assets/js/d594b08b.b2ee120d.js new file mode 100644 index 000000000..4925e565a --- /dev/null +++ b/en/assets/js/d594b08b.b2ee120d.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunknpy_notebook=self.webpackChunknpy_notebook||[]).push([[5923],{3769:e=>{e.exports=JSON.parse('{"name":"docusaurus-plugin-content-docs","id":"default"}')}}]); \ No newline at end of file diff --git a/en/assets/js/d5b726de.7bb5e4ed.js b/en/assets/js/d5b726de.7bb5e4ed.js new file mode 100644 index 000000000..465976d77 --- /dev/null +++ b/en/assets/js/d5b726de.7bb5e4ed.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunknpy_notebook=self.webpackChunknpy_notebook||[]).push([[3320],{3905:(a,e,s)=>{s.d(e,{Zo:()=>i,kt:()=>h});var t=s(7294);function m(a,e,s){return e in a?Object.defineProperty(a,e,{value:s,enumerable:!0,configurable:!0,writable:!0}):a[e]=s,a}function n(a,e){var s=Object.keys(a);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(a);e&&(t=t.filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable}))),s.push.apply(s,t)}return s}function p(a){for(var e=1;e<arguments.length;e++){var s=null!=arguments[e]?arguments[e]:{};e%2?n(Object(s),!0).forEach((function(e){m(a,e,s[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(s)):n(Object(s)).forEach((function(e){Object.defineProperty(a,e,Object.getOwnPropertyDescriptor(s,e))}))}return a}function r(a,e){if(null==a)return{};var s,t,m=function(a,e){if(null==a)return{};var s,t,m={},n=Object.keys(a);for(t=0;t<n.length;t++)s=n[t],e.indexOf(s)>=0||(m[s]=a[s]);return m}(a,e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);for(t=0;t<n.length;t++)s=n[t],e.indexOf(s)>=0||Object.prototype.propertyIsEnumerable.call(a,s)&&(m[s]=a[s])}return m}var N=t.createContext({}),l=function(a){var e=t.useContext(N),s=e;return a&&(s="function"==typeof a?a(e):p(p({},e),a)),s},i=function(a){var e=l(a.components);return t.createElement(N.Provider,{value:e},a.children)},k="mdxType",c={inlineCode:"code",wrapper:function(a){var e=a.children;return t.createElement(t.Fragment,{},e)}},o=t.forwardRef((function(a,e){var s=a.components,m=a.mdxType,n=a.originalType,N=a.parentName,i=r(a,["components","mdxType","originalType","parentName"]),k=l(s),o=m,h=k["".concat(N,".").concat(o)]||k[o]||c[o]||n;return s?t.createElement(h,p(p({ref:e},i),{},{components:s})):t.createElement(h,p({ref:e},i))}));function h(a,e){var s=arguments,m=e&&e.mdxType;if("string"==typeof a||m){var n=s.length,p=new Array(n);p[0]=o;var r={};for(var N in e)hasOwnProperty.call(e,N)&&(r[N]=e[N]);r.originalType=a,r[k]="string"==typeof a?a:m,p[1]=r;for(var l=2;l<n;l++)p[l]=s[l];return t.createElement.apply(null,p)}return t.createElement.apply(null,s)}o.displayName="MDXCreateElement"},942:(a,e,s)=>{s.r(e),s.d(e,{assets:()=>N,contentTitle:()=>p,default:()=>c,frontMatter:()=>n,metadata:()=>r,toc:()=>l});var t=s(7462),m=(s(7294),s(3905));const n={},p="\u5377\u79ef\u5c42",r={unversionedId:"Deep-Learning/\u57fa\u7840\u77e5\u8bc6/ConvolutionalLayer",id:"Deep-Learning/\u57fa\u7840\u77e5\u8bc6/ConvolutionalLayer",title:"\u5377\u79ef\u5c42",description:"\u4e00\u30011x1\u5377\u79ef",source:"@site/docs/Deep-Learning/3-\u57fa\u7840\u77e5\u8bc6/ConvolutionalLayer.md",sourceDirName:"Deep-Learning/3-\u57fa\u7840\u77e5\u8bc6",slug:"/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/ConvolutionalLayer",permalink:"/en/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/ConvolutionalLayer",draft:!1,tags:[],version:"current",frontMatter:{},sidebar:"deep_learning",previous:{title:"AlexNet",permalink:"/en/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/AlexNet"},next:{title:"\u4ece\u5168\u8fde\u63a5\u5230\u5377\u79ef",permalink:"/en/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/FromFullyConnectedLayerToConvolutionalLayer"}},N={},l=[{value:"\u4e00\u30011x1\u5377\u79ef",id:"\u4e001x1\u5377\u79ef",level:2},{value:"\u4e8c\u3001\u4e8c\u7ef4\u5377\u79ef\u5c42",id:"\u4e8c\u4e8c\u7ef4\u5377\u79ef\u5c42",level:2}],i={toc:l},k="wrapper";function c(a){let{components:e,...s}=a;return(0,m.kt)(k,(0,t.Z)({},i,s,{components:e,mdxType:"MDXLayout"}),(0,m.kt)("h1",{id:"\u5377\u79ef\u5c42"},"\u5377\u79ef\u5c42"),(0,m.kt)("h2",{id:"\u4e001x1\u5377\u79ef"},"\u4e00\u30011x1\u5377\u79ef"),(0,m.kt)("p",null,(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"k"),(0,m.kt)("mi",{parentName:"msub"},"h")),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"k"),(0,m.kt)("mi",{parentName:"msub"},"w")),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("mn",{parentName:"mrow"},"1")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"k_h=k_w=1")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.8444em",verticalAlign:"-0.15em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03148em"}},"k"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3361em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0315em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"h")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"="),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.8444em",verticalAlign:"-0.15em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03148em"}},"k"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.1514em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0315em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.02691em"}},"w")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"="),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6444em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"1"))))),"\u7684\u5377\u79ef\u4e0d\u8bc6\u522b\u7a7a\u95f4\u6a21\u5f0f\uff0c\u4e22\u5f03\u4e86\u7a7a\u95f4\u4fe1\u606f\uff0c\u53ea\u662f\u878d\u5408\u901a\u9053"),(0,m.kt)("p",null,"\u76f8\u5f53\u4e8e\u8f93\u5165\u5f62\u72b6\u4e3a",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"H"),(0,m.kt)("mi",{parentName:"mrow"},"W"),(0,m.kt)("mo",{parentName:"mrow"},"\xd7"),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"c"),(0,m.kt)("mi",{parentName:"msub"},"i"))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"HW \\times c_i")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.7667em",verticalAlign:"-0.0833em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.08125em"}},"H"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"W"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"\xd7"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.5806em",verticalAlign:"-0.15em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"c"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3117em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"i")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))))))),"\uff0c\u6743\u91cd\u5f62\u72b6\u4e3a",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"c"),(0,m.kt)("mi",{parentName:"msub"},"o")),(0,m.kt)("mo",{parentName:"mrow"},"\xd7"),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"c"),(0,m.kt)("mi",{parentName:"msub"},"i"))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"c_o \\times c_i")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.7333em",verticalAlign:"-0.15em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"c"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.1514em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"o")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"\xd7"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.5806em",verticalAlign:"-0.15em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"c"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3117em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"i")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))))))),"\u7684\u5168\u8fde\u63a5\u5c42"),(0,m.kt)("hr",null),(0,m.kt)("h2",{id:"\u4e8c\u4e8c\u7ef4\u5377\u79ef\u5c42"},"\u4e8c\u3001\u4e8c\u7ef4\u5377\u79ef\u5c42"),(0,m.kt)("ul",null,(0,m.kt)("li",{parentName:"ul"},(0,m.kt)("p",{parentName:"li"},"\u8f93\u5165\uff1a",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"c"),(0,m.kt)("mi",{parentName:"msub"},"i")),(0,m.kt)("mo",{parentName:"mrow"},"\xd7"),(0,m.kt)("mi",{parentName:"mrow"},"H"),(0,m.kt)("mo",{parentName:"mrow"},"\xd7"),(0,m.kt)("mi",{parentName:"mrow"},"W")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"c_i \\times H \\times W")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.7333em",verticalAlign:"-0.15em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"c"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3117em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"i")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"\xd7"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.7667em",verticalAlign:"-0.0833em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.08125em"}},"H"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"\xd7"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6833em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"W"))))))),(0,m.kt)("li",{parentName:"ul"},(0,m.kt)("p",{parentName:"li"},"\u6838\uff1a",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"c"),(0,m.kt)("mi",{parentName:"msub"},"o")),(0,m.kt)("mo",{parentName:"mrow"},"\xd7"),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"c"),(0,m.kt)("mi",{parentName:"msub"},"i")),(0,m.kt)("mo",{parentName:"mrow"},"\xd7"),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"k"),(0,m.kt)("mi",{parentName:"msub"},"h")),(0,m.kt)("mo",{parentName:"mrow"},"\xd7"),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"k"),(0,m.kt)("mi",{parentName:"msub"},"w"))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"c_o \\times c_i \\times k_h \\times k_w")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.7333em",verticalAlign:"-0.15em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"c"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.1514em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"o")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"\xd7"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.7333em",verticalAlign:"-0.15em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"c"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3117em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"i")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"\xd7"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.8444em",verticalAlign:"-0.15em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03148em"}},"k"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3361em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0315em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"h")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"\xd7"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.8444em",verticalAlign:"-0.15em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03148em"}},"k"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.1514em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0315em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.02691em"}},"w")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))))))))),(0,m.kt)("li",{parentName:"ul"},(0,m.kt)("p",{parentName:"li"},"\u504f\u5dee\uff1a",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"c"),(0,m.kt)("mi",{parentName:"msub"},"o")),(0,m.kt)("mo",{parentName:"mrow"},"\xd7"),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"c"),(0,m.kt)("mi",{parentName:"msub"},"i"))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"c_o \\times c_i")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.7333em",verticalAlign:"-0.15em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"c"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.1514em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"o")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"\xd7"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.5806em",verticalAlign:"-0.15em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"c"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3117em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"i")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))))))))),(0,m.kt)("li",{parentName:"ul"},(0,m.kt)("p",{parentName:"li"},"\u8f93\u51fa\uff1a",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"c"),(0,m.kt)("mi",{parentName:"msub"},"o")),(0,m.kt)("mo",{parentName:"mrow"},"\xd7"),(0,m.kt)("msup",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msup"},"H"),(0,m.kt)("mo",{parentName:"msup",mathvariant:"normal",lspace:"0em",rspace:"0em"},"\u2032")),(0,m.kt)("mo",{parentName:"mrow"},"\xd7"),(0,m.kt)("msup",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msup"},"W"),(0,m.kt)("mo",{parentName:"msup",mathvariant:"normal",lspace:"0em",rspace:"0em"},"\u2032"))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"c_o \\times H' \\times W'")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.7333em",verticalAlign:"-0.15em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"c"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.1514em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"o")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"\xd7"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.8352em",verticalAlign:"-0.0833em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.08125em"}},"H"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.7519em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-3.063em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"\u2032"))))))))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"\xd7"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.7519em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"W"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.7519em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-3.063em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"\u2032"))))))))))))))),(0,m.kt)("li",{parentName:"ul"},(0,m.kt)("p",{parentName:"li"},"\u8f93\u51fa",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("msup",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msup"},"H"),(0,m.kt)("mo",{parentName:"msup",mathvariant:"normal",lspace:"0em",rspace:"0em"},"\u2032")),(0,m.kt)("mtext",{parentName:"mrow"},"\u4ee5\u53ca"),(0,m.kt)("msup",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msup"},"W"),(0,m.kt)("mo",{parentName:"msup",mathvariant:"normal",lspace:"0em",rspace:"0em"},"\u2032"))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"H'\u4ee5\u53caW'")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.7519em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.08125em"}},"H"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.7519em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-3.063em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"\u2032"))))))))),(0,m.kt)("span",{parentName:"span",className:"mord cjk_fallback"},"\u4ee5\u53ca"),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"W"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.7519em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-3.063em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"\u2032"))))))))))))),"\u7684\u8ba1\u7b97\uff1a"),(0,m.kt)("div",{parentName:"li",className:"math math-display"},(0,m.kt)("span",{parentName:"div",className:"katex-display"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mtable",{parentName:"semantics",width:"100%"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mrow",{parentName:"mtd"},(0,m.kt)("mi",{parentName:"mrow"},"s"),(0,m.kt)("mi",{parentName:"mrow"},"h"),(0,m.kt)("mi",{parentName:"mrow"},"a"),(0,m.kt)("mi",{parentName:"mrow"},"p"),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"e"),(0,m.kt)("mrow",{parentName:"msub"},(0,m.kt)("mi",{parentName:"mrow"},"o"),(0,m.kt)("mi",{parentName:"mrow"},"u"),(0,m.kt)("mi",{parentName:"mrow"},"t"),(0,m.kt)("mi",{parentName:"mrow"},"p"),(0,m.kt)("mi",{parentName:"mrow"},"u"),(0,m.kt)("mi",{parentName:"mrow"},"t"))),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("mfrac",{parentName:"mrow"},(0,m.kt)("mrow",{parentName:"mfrac"},(0,m.kt)("mi",{parentName:"mrow"},"s"),(0,m.kt)("mi",{parentName:"mrow"},"h"),(0,m.kt)("mi",{parentName:"mrow"},"a"),(0,m.kt)("mi",{parentName:"mrow"},"p"),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"e"),(0,m.kt)("mrow",{parentName:"msub"},(0,m.kt)("mi",{parentName:"mrow"},"i"),(0,m.kt)("mi",{parentName:"mrow"},"n"),(0,m.kt)("mi",{parentName:"mrow"},"p"),(0,m.kt)("mi",{parentName:"mrow"},"u"),(0,m.kt)("mi",{parentName:"mrow"},"t"))),(0,m.kt)("mo",{parentName:"mrow"},"\u2212"),(0,m.kt)("mi",{parentName:"mrow"},"s"),(0,m.kt)("mi",{parentName:"mrow"},"i"),(0,m.kt)("mi",{parentName:"mrow"},"z"),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"e"),(0,m.kt)("mrow",{parentName:"msub"},(0,m.kt)("mi",{parentName:"mrow"},"k"),(0,m.kt)("mi",{parentName:"mrow"},"e"),(0,m.kt)("mi",{parentName:"mrow"},"r"),(0,m.kt)("mi",{parentName:"mrow"},"n"),(0,m.kt)("mi",{parentName:"mrow"},"e"),(0,m.kt)("mi",{parentName:"mrow"},"l"))),(0,m.kt)("mo",{parentName:"mrow"},"+"),(0,m.kt)("mn",{parentName:"mrow"},"2"),(0,m.kt)("mo",{parentName:"mrow"},"\u2217"),(0,m.kt)("mi",{parentName:"mrow"},"p"),(0,m.kt)("mi",{parentName:"mrow"},"a"),(0,m.kt)("mi",{parentName:"mrow"},"d"),(0,m.kt)("mi",{parentName:"mrow"},"d"),(0,m.kt)("mi",{parentName:"mrow"},"i"),(0,m.kt)("mi",{parentName:"mrow"},"n"),(0,m.kt)("mi",{parentName:"mrow"},"g")),(0,m.kt)("mrow",{parentName:"mfrac"},(0,m.kt)("mi",{parentName:"mrow"},"s"),(0,m.kt)("mi",{parentName:"mrow"},"t"),(0,m.kt)("mi",{parentName:"mrow"},"r"),(0,m.kt)("mi",{parentName:"mrow"},"i"),(0,m.kt)("mi",{parentName:"mrow"},"d"),(0,m.kt)("mi",{parentName:"mrow"},"e"))),(0,m.kt)("mo",{parentName:"mrow"},"+"),(0,m.kt)("mn",{parentName:"mrow"},"1"))),(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mtext",{parentName:"mtd"},"(1)")))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"shape_{output} = \\frac{shape_{input}-size_{kernel}+2*padding}{stride}+1 \\tag{1}")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.9805em",verticalAlign:"-0.2861em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"s"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"ha"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"p"),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"e"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.2806em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"o"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"u"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"tp"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"u"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"t"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.2861em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"="),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"2.0574em",verticalAlign:"-0.686em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mopen nulldelimiter"}),(0,m.kt)("span",{parentName:"span",className:"mfrac"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.3714em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.314em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"s"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"t"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02778em"}},"r"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"i"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"d"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"e"))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.23em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"frac-line",style:{borderBottomWidth:"0.04em"}})),(0,m.kt)("span",{parentName:"span",style:{top:"-3.677em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"s"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"ha"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"p"),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"e"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3117em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"in"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"p"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"u"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"t"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.2861em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"\u2212"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"s"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"i"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.04398em"}},"z"),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"e"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3361em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.03148em"}},"k"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.02778em"}},"er"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"n"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"e"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.01968em"}},"l"))))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"+"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"2"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"\u2217"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"p"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"a"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"dd"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"in"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"g")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.686em"}},(0,m.kt)("span",{parentName:"span"}))))),(0,m.kt)("span",{parentName:"span",className:"mclose nulldelimiter"})),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"+"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6444em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"1")),(0,m.kt)("span",{parentName:"span",className:"tag"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"2.0574em",verticalAlign:"-0.686em"}}),(0,m.kt)("span",{parentName:"span",className:"mord text"},(0,m.kt)("span",{parentName:"span",className:"mord"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"1")),(0,m.kt)("span",{parentName:"span",className:"mord"},")"))))))))),(0,m.kt)("ul",null,(0,m.kt)("li",{parentName:"ul"},(0,m.kt)("p",{parentName:"li"},"\u8ba1\u7b97\u590d\u6742\u5ea6\uff1a",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"O"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"c"),(0,m.kt)("mi",{parentName:"msub"},"o")),(0,m.kt)("mo",{parentName:"mrow"},"\xd7"),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"c"),(0,m.kt)("mi",{parentName:"msub"},"i")),(0,m.kt)("mo",{parentName:"mrow"},"\xd7"),(0,m.kt)("mi",{parentName:"mrow"},"H"),(0,m.kt)("mo",{parentName:"mrow"},"\xd7"),(0,m.kt)("mi",{parentName:"mrow"},"W"),(0,m.kt)("mo",{parentName:"mrow"},"\xd7"),(0,m.kt)("msup",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msup"},"H"),(0,m.kt)("mo",{parentName:"msup",mathvariant:"normal",lspace:"0em",rspace:"0em"},"\u2032")),(0,m.kt)("mo",{parentName:"mrow"},"\xd7"),(0,m.kt)("msup",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msup"},"W"),(0,m.kt)("mo",{parentName:"msup",mathvariant:"normal",lspace:"0em",rspace:"0em"},"\u2032")),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"O(c_o \\times c_i \\times H \\times W \\times H' \\times W')")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02778em"}},"O"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"c"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.1514em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"o")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"\xd7"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.7333em",verticalAlign:"-0.15em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"c"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3117em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"i")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"\xd7"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.7667em",verticalAlign:"-0.0833em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.08125em"}},"H"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"\xd7"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.7667em",verticalAlign:"-0.0833em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"W"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"\xd7"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.8352em",verticalAlign:"-0.0833em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.08125em"}},"H"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.7519em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-3.063em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"\u2032"))))))))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"\xd7"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1.0019em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"W"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.7519em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-3.063em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mtight"},"\u2032"))))))))),(0,m.kt)("span",{parentName:"span",className:"mclose"},")"))))))),(0,m.kt)("li",{parentName:"ul"},(0,m.kt)("p",{parentName:"li"},"\u603b\u7ed3\uff1a"),(0,m.kt)("ol",{parentName:"li"},(0,m.kt)("li",{parentName:"ol"},"\u8f93\u51fa\u7684\u901a\u9053\u6570\u662f\u5377\u79ef\u5c42\u7684\u8d85\u53c2\u6570"),(0,m.kt)("li",{parentName:"ol"},"\u6bcf\u4e2a\u8f93\u5165\u901a\u9053\u6709\u72ec\u7acb\u7684\u4e8c\u7ef4\u5377\u79ef\u6838\uff0c\u6240\u6709\u901a\u9053\u7ed3\u679c\u76f8\u52a0\u5f97\u5230\u4e00\u4e2a\u8f93\u51fa\u7ed3\u679c"),(0,m.kt)("li",{parentName:"ol"},"\u6bcf\u4e2a\u8f93\u51fa\u901a\u9053\u6709\u72ec\u7acb\u7684\u4e09\u7ef4\u5377\u79ef\u6838")))))}c.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/en/assets/js/d6b41bcb.b97d34ef.js b/en/assets/js/d6b41bcb.b97d34ef.js new file mode 100644 index 000000000..852232396 --- /dev/null +++ b/en/assets/js/d6b41bcb.b97d34ef.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunknpy_notebook=self.webpackChunknpy_notebook||[]).push([[5901],{3905:(a,e,t)=>{t.d(e,{Zo:()=>N,kt:()=>g});var n=t(7294);function m(a,e,t){return e in a?Object.defineProperty(a,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):a[e]=t,a}function s(a,e){var t=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable}))),t.push.apply(t,n)}return t}function p(a){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?s(Object(t),!0).forEach((function(e){m(a,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(t)):s(Object(t)).forEach((function(e){Object.defineProperty(a,e,Object.getOwnPropertyDescriptor(t,e))}))}return a}function r(a,e){if(null==a)return{};var t,n,m=function(a,e){if(null==a)return{};var t,n,m={},s=Object.keys(a);for(n=0;n<s.length;n++)t=s[n],e.indexOf(t)>=0||(m[t]=a[t]);return m}(a,e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(a);for(n=0;n<s.length;n++)t=s[n],e.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(a,t)&&(m[t]=a[t])}return m}var l=n.createContext({}),i=function(a){var e=n.useContext(l),t=e;return a&&(t="function"==typeof a?a(e):p(p({},e),a)),t},N=function(a){var e=i(a.components);return n.createElement(l.Provider,{value:e},a.children)},k="mdxType",o={inlineCode:"code",wrapper:function(a){var e=a.children;return n.createElement(n.Fragment,{},e)}},c=n.forwardRef((function(a,e){var t=a.components,m=a.mdxType,s=a.originalType,l=a.parentName,N=r(a,["components","mdxType","originalType","parentName"]),k=i(t),c=m,g=k["".concat(l,".").concat(c)]||k[c]||o[c]||s;return t?n.createElement(g,p(p({ref:e},N),{},{components:t})):n.createElement(g,p({ref:e},N))}));function g(a,e){var t=arguments,m=e&&e.mdxType;if("string"==typeof a||m){var s=t.length,p=new Array(s);p[0]=c;var r={};for(var l in e)hasOwnProperty.call(e,l)&&(r[l]=e[l]);r.originalType=a,r[k]="string"==typeof a?a:m,p[1]=r;for(var i=2;i<s;i++)p[i]=t[i];return n.createElement.apply(null,p)}return n.createElement.apply(null,t)}c.displayName="MDXCreateElement"},2509:(a,e,t)=>{t.r(e),t.d(e,{assets:()=>l,contentTitle:()=>p,default:()=>o,frontMatter:()=>s,metadata:()=>r,toc:()=>i});var n=t(7462),m=(t(7294),t(3905));const s={},p="\u7f16\u8bd1\u539f\u7406\u7b14\u8bb0",r={unversionedId:"Curriculum/\u7f16\u8bd1\u539f\u7406/Note",id:"Curriculum/\u7f16\u8bd1\u539f\u7406/Note",title:"\u7f16\u8bd1\u539f\u7406\u7b14\u8bb0",description:"\u7b2c\u4e00\u7ae0\uff1a\u524d\u8a00",source:"@site/docs/Curriculum/3-\u7f16\u8bd1\u539f\u7406/Note.md",sourceDirName:"Curriculum/3-\u7f16\u8bd1\u539f\u7406",slug:"/Curriculum/\u7f16\u8bd1\u539f\u7406/Note",permalink:"/en/docs/Curriculum/\u7f16\u8bd1\u539f\u7406/Note",draft:!1,tags:[],version:"current",frontMatter:{},sidebar:"curriculum",previous:{title:"\u6570\u5b57\u56fe\u50cf\u5904\u7406\u590d\u4e60\u7b14\u8bb0",permalink:"/en/docs/Curriculum/\u6570\u5b57\u56fe\u50cf\u5904\u7406/Note"},next:{title:"Linux\u7cfb\u7edf\u4e0bGeekOS\u7684\u73af\u5883\u914d\u7f6e",permalink:"/en/docs/Curriculum/\u64cd\u4f5c\u7cfb\u7edf\u8bfe\u8bbe/Environment-Configuration"}},l={},i=[{value:"\u7b2c\u4e00\u7ae0\uff1a\u524d\u8a00",id:"\u7b2c\u4e00\u7ae0\u524d\u8a00",level:2},{value:"1.1 \u7f16\u8bd1\u7a0b\u5e8f\u7684\u903b\u8f91\u7ed3\u6784",id:"11-\u7f16\u8bd1\u7a0b\u5e8f\u7684\u903b\u8f91\u7ed3\u6784",level:3},{value:"1.2 \u524d\u7aef\u548c\u540e\u7aef",id:"12-\u524d\u7aef\u548c\u540e\u7aef",level:3},{value:"1.3 \u904d\u7684\u6982\u5ff5",id:"13-\u904d\u7684\u6982\u5ff5",level:3},{value:"\u7b2c\u4e8c\u7ae0\uff1a\u6587\u6cd5\u548c\u8bed\u8a00",id:"\u7b2c\u4e8c\u7ae0\u6587\u6cd5\u548c\u8bed\u8a00",level:2},{value:"2.1 \u53e5\u578b",id:"21-\u53e5\u578b",level:3},{value:"2.2 \u53e5\u5b50\uff1a",id:"22-\u53e5\u5b50",level:3},{value:"2.3 \u6587\u6cd5\u7684\u5206\u7c7b\uff1a",id:"23-\u6587\u6cd5\u7684\u5206\u7c7b",level:3},{value:"2.4 \u6700\u5de6/\u53f3\u63a8\u5bfc\uff1a",id:"24-\u6700\u5de6\u53f3\u63a8\u5bfc",level:3},{value:"\u7b2c\u4e09\u7ae0\uff1a\u8bcd\u6cd5\u5206\u6790",id:"\u7b2c\u4e09\u7ae0\u8bcd\u6cd5\u5206\u6790",level:2},{value:"3.1 \u6b63\u89c4\u6587\u6cd5\u8f6c\u6362\u6210\u6b63\u89c4\u5f0f",id:"31-\u6b63\u89c4\u6587\u6cd5\u8f6c\u6362\u6210\u6b63\u89c4\u5f0f",level:3},{value:"3.2 \u6709\u7a77\u81ea\u52a8\u673a\uff08FA\uff09",id:"32-\u6709\u7a77\u81ea\u52a8\u673afa",level:3},{value:"3.3 \u6b63\u89c4\u5f0fRE\u4e0e\u6709\u7a77\u81ea\u52a8\u673aFA\u7684\u4e92\u76f8\u8f6c\u5316",id:"33-\u6b63\u89c4\u5f0fre\u4e0e\u6709\u7a77\u81ea\u52a8\u673afa\u7684\u4e92\u76f8\u8f6c\u5316",level:3},{value:"3.4 \u6b63\u89c4\u6587\u6cd5RM\u4e0e\u6709\u7a77\u81ea\u52a8\u673aFA\u7684\u4e92\u76f8\u8f6c\u5316",id:"34-\u6b63\u89c4\u6587\u6cd5rm\u4e0e\u6709\u7a77\u81ea\u52a8\u673afa\u7684\u4e92\u76f8\u8f6c\u5316",level:3},{value:"\u7b2c\u56db\u7ae0\uff1a\u81ea\u9876\u5411\u4e0b\u8bed\u6cd5\u5206\u6790\u65b9\u6cd5",id:"\u7b2c\u56db\u7ae0\u81ea\u9876\u5411\u4e0b\u8bed\u6cd5\u5206\u6790\u65b9\u6cd5",level:2},{value:"1. FIRST\u96c6\u7684\u5b9a\u4e49",id:"1-first\u96c6\u7684\u5b9a\u4e49",level:3},{value:"2. Follow\u96c6\u7684\u5b9a\u4e49",id:"2-follow\u96c6\u7684\u5b9a\u4e49",level:3},{value:"3. SELECT\u96c6\u7684\u5b9a\u4e49",id:"3-select\u96c6\u7684\u5b9a\u4e49",level:3},{value:"4. LL(1)\u6587\u6cd5\u7684\u5b9a\u4e49",id:"4-ll1\u6587\u6cd5\u7684\u5b9a\u4e49",level:3},{value:"5. LL(1)\u6587\u6cd5\u7684\u5224\u522b",id:"5-ll1\u6587\u6cd5\u7684\u5224\u522b",level:3},{value:"6. \u9884\u6d4b\u5206\u6790\u8868",id:"6-\u9884\u6d4b\u5206\u6790\u8868",level:3},{value:"7. \u975eLL(1)\u6587\u6cd5\u5230LL(1)\u6587\u6cd5\u7684\u7b49\u4ef7\u53d8\u6362",id:"7-\u975ell1\u6587\u6cd5\u5230ll1\u6587\u6cd5\u7684\u7b49\u4ef7\u53d8\u6362",level:3},{value:"\u7b2c\u4e94\u7ae0\uff1a\u81ea\u5e95\u5411\u4e0a\u8bed\u6cd5\u5206\u6790\u65b9\u6cd5",id:"\u7b2c\u4e94\u7ae0\u81ea\u5e95\u5411\u4e0a\u8bed\u6cd5\u5206\u6790\u65b9\u6cd5",level:2},{value:"5.1 \u6982\u5ff5",id:"51-\u6982\u5ff5",level:3},{value:"5.2 \u65b9\u6cd5",id:"52-\u65b9\u6cd5",level:3},{value:"5.3 \u5de5\u4f5c\u8fc7\u7a0b",id:"53-\u5de5\u4f5c\u8fc7\u7a0b",level:3},{value:"5.4 \u79fb\u5165-\u5f52\u7ea6\u5206\u6790\u5668\u76844\u79cd\u52a8\u4f5c",id:"54-\u79fb\u5165-\u5f52\u7ea6\u5206\u6790\u5668\u76844\u79cd\u52a8\u4f5c",level:3},{value:"5.5 \u91cd\u8981\u9898\u578b",id:"55-\u91cd\u8981\u9898\u578b",level:3},{value:"\u6982\u5ff5\u603b\u7ed3",id:"\u6982\u5ff5\u603b\u7ed3",level:2},{value:"1 \u7f16\u8bd1\u7a0b\u5e8f\u5404\u9636\u6bb5\u529f\u80fd",id:"1-\u7f16\u8bd1\u7a0b\u5e8f\u5404\u9636\u6bb5\u529f\u80fd",level:3},{value:"2 \u8bed\u6cd5\u5206\u6790\u65b9\u6cd5\u7684\u6982\u5ff5",id:"2-\u8bed\u6cd5\u5206\u6790\u65b9\u6cd5\u7684\u6982\u5ff5",level:3},{value:"3 \u7ffb\u8bd1\u6a21\u5f0f",id:"3-\u7ffb\u8bd1\u6a21\u5f0f",level:3},{value:"4 \u5c5e\u6027\u6587\u6cd5",id:"4-\u5c5e\u6027\u6587\u6cd5",level:3},{value:"5 \u7b26\u53f7\u8868",id:"5-\u7b26\u53f7\u8868",level:3}],N={toc:i},k="wrapper";function o(a){let{components:e,...t}=a;return(0,m.kt)(k,(0,n.Z)({},N,t,{components:e,mdxType:"MDXLayout"}),(0,m.kt)("h1",{id:"\u7f16\u8bd1\u539f\u7406\u7b14\u8bb0"},"\u7f16\u8bd1\u539f\u7406\u7b14\u8bb0"),(0,m.kt)("h2",{id:"\u7b2c\u4e00\u7ae0\u524d\u8a00"},"\u7b2c\u4e00\u7ae0\uff1a\u524d\u8a00"),(0,m.kt)("img",{src:"https://github.com/bonjour-npy/Image-Hosting-Service/blob/main/typora_images/Fq_mAL2_G19wtIZSMHEoKcBe6Y4K.png?raw=true",alt:"image"}),(0,m.kt)("h3",{id:"11-\u7f16\u8bd1\u7a0b\u5e8f\u7684\u903b\u8f91\u7ed3\u6784"},"1.1 \u7f16\u8bd1\u7a0b\u5e8f\u7684\u903b\u8f91\u7ed3\u6784"),(0,m.kt)("ul",null,(0,m.kt)("li",{parentName:"ul"},(0,m.kt)("p",{parentName:"li"},"\u8bcd\u6cd5\u5206\u6790\uff1a\u5206\u6790\u8f93\u5165\u4e32\u5982\u4f55\u6784\u6210\u53e5\u5b50\uff0c\u5f97\u5230\u5355\u8bcd\u5e8f\u5217")),(0,m.kt)("li",{parentName:"ul"},(0,m.kt)("p",{parentName:"li"},"\u8bed\u6cd5\u5206\u6790\uff1a\u5206\u6790\u5355\u8bcd\u5e8f\u5217\u5982\u4f55\u6784\u6210\u7a0b\u5e8f\uff0c\u6784\u9020\u8bed\u6cd5\u5206\u6790\u6811")),(0,m.kt)("li",{parentName:"ul"},(0,m.kt)("p",{parentName:"li"},"\u8bed\u4e49\u5206\u6790\uff1a\u5ba1\u67e5\u8bed\u4e49\u9519\u8bef\uff0c\u4e3a\u4ee3\u7801\u751f\u6210\u6536\u96c6\u7c7b\u578b\u4fe1\u606f")),(0,m.kt)("li",{parentName:"ul"},(0,m.kt)("p",{parentName:"li"},"\u4e2d\u95f4\u4ee3\u7801\u751f\u6210")),(0,m.kt)("li",{parentName:"ul"},(0,m.kt)("p",{parentName:"li"},"\u4ee3\u7801\u4f18\u5316")),(0,m.kt)("li",{parentName:"ul"},(0,m.kt)("p",{parentName:"li"},"\u76ee\u6807\u4ee3\u7801\u751f\u6210")),(0,m.kt)("li",{parentName:"ul"},(0,m.kt)("p",{parentName:"li"},"\u8868\u7ba1\u7406\u3001\u9519\u8bef\u68c0\u67e5\u548c\u5904\u7406\u8d2f\u7a7f",(0,m.kt)("strong",{parentName:"p"},"\u6574\u4e2a\u8fc7\u7a0b")),(0,m.kt)("p",{parentName:"li"},(0,m.kt)("img",{parentName:"p",src:"https://github.com/bonjour-npy/Image-Hosting-Service/blob/main/typora_images/FiP05XBQ5gzerE-DFd0vT1QOUrE8.png?raw=true",alt:"image"})))),(0,m.kt)("h3",{id:"12-\u524d\u7aef\u548c\u540e\u7aef"},"1.2 \u524d\u7aef\u548c\u540e\u7aef"),(0,m.kt)("ul",null,(0,m.kt)("li",{parentName:"ul"},(0,m.kt)("p",{parentName:"li"},"\u524d\u7aef\u662f\u6307\u4e0e\u6e90\u8bed\u8a00\u6709\u5173\u3001\u4e0e\u76ee\u6807\u673a\u65e0\u5173\u7684\u90e8\u5206"),(0,m.kt)("p",{parentName:"li"},"\u5982\u8bcd\u6cd5\u5206\u6790\u3001\u8bed\u6cd5\u5206\u6790\u3001\u8bed\u4e49\u5206\u6790\u3001\u4e2d\u95f4\u4ee3\u7801\u751f\u6210\u3001\u4ee3\u7801\u4f18\u5316\u4e2d\u4e0e\u673a\u5668\u65e0\u5173\u7684\u90e8\u5206")),(0,m.kt)("li",{parentName:"ul"},(0,m.kt)("p",{parentName:"li"},"\u540e\u7aef\u662f\u6307\u4e0e\u76ee\u6807\u673a\u6709\u5173\u7684\u90e8\u5206"),(0,m.kt)("p",{parentName:"li"},"\u5982\u4ee3\u7801\u4f18\u5316\u4e2d\u4e0e\u673a\u5668\u6709\u5173\u7684\u90e8\u5206\u3001\u76ee\u6807\u4ee3\u7801\u7684\u751f\u6210"))),(0,m.kt)("h3",{id:"13-\u904d\u7684\u6982\u5ff5"},"1.3 \u904d\u7684\u6982\u5ff5"),(0,m.kt)("p",null,"\u904d\u662f\u6307\u4ece\u5934\u5230\u5c3e\u626b\u63cf\u4e00\u904d\u6e90\u7a0b\u5e8f"),(0,m.kt)("hr",null),(0,m.kt)("h2",{id:"\u7b2c\u4e8c\u7ae0\u6587\u6cd5\u548c\u8bed\u8a00"},"\u7b2c\u4e8c\u7ae0\uff1a\u6587\u6cd5\u548c\u8bed\u8a00"),(0,m.kt)("h3",{id:"21-\u53e5\u578b"},"2.1 \u53e5\u578b"),(0,m.kt)("p",null,"\u82e5\u4ece\u6587\u6cd5\u7684\u5f00\u59cb\u7b26\u53f7\u5f00\u59cb\u5b58\u5728\u4ee5\u4e0b\u63a8\u5bfc\uff0c\u5219\u79f0",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"\u03b1")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"\\alpha")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.4306em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.0037em"}},"\u03b1"))))),"\u4e3a\u8be5\u6587\u6cd5\u7684\u4e00\u4e2a\u53e5\u578b\uff0c\u53e5\u578b\u4e2d\u65e2\u53ef\u4ee5\u5305\u542b\u7ec8\u7ed3\u7b26\uff0c\u4e5f\u53ef\u4ee5\u5305\u542b\u975e\u7ec8\u7ed3\u7b26\uff0c\u4e5f\u53ef\u4ee5\u662f\u7a7a\u4e32"),(0,m.kt)("div",{className:"math math-display"},(0,m.kt)("span",{parentName:"div",className:"katex-display"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mtable",{parentName:"semantics",width:"100%"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mrow",{parentName:"mtd"},(0,m.kt)("mi",{parentName:"mrow"},"S"),(0,m.kt)("msup",{parentName:"mrow"},(0,m.kt)("mo",{parentName:"msup"},"\u21d2"),(0,m.kt)("mo",{parentName:"msup"},"\u2217")),(0,m.kt)("mi",{parentName:"mrow"},"\u03b1"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mtext",{parentName:"mrow"},"\xa0"),(0,m.kt)("mi",{parentName:"mrow"},"\u03b1"),(0,m.kt)("mo",{parentName:"mrow"},"\u2208"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"V"),(0,m.kt)("mi",{parentName:"msub"},"T")),(0,m.kt)("mo",{parentName:"mrow"},"\u222a"),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"V"),(0,m.kt)("mi",{parentName:"msub"},"N")),(0,m.kt)("msup",{parentName:"mrow"},(0,m.kt)("mo",{parentName:"msup",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"msup"},"\u2217")))),(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mtext",{parentName:"mtd"},"(1)")))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"S \\Rightarrow^* \\alpha,\\space \\alpha \\in (V_T \\cup V_N)^* \\tag{1}")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.7387em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05764em"}},"S"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},(0,m.kt)("span",{parentName:"span",className:"mrel"},"\u21d2"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.7387em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-3.113em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mbin mtight"},"\u2217")))))))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.7335em",verticalAlign:"-0.1944em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.0037em"}},"\u03b1"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace"},"\xa0"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.0037em"}},"\u03b1"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"\u2208"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.22222em"}},"V"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3283em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.2222em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.13889em"}},"T")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"\u222a"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.22222em"}},"V"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3283em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.2222em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.10903em"}},"N")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mclose"},(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.7387em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-3.113em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mbin mtight"},"\u2217"))))))))),(0,m.kt)("span",{parentName:"span",className:"tag"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord text"},(0,m.kt)("span",{parentName:"span",className:"mord"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"1")),(0,m.kt)("span",{parentName:"span",className:"mord"},")"))))))),(0,m.kt)("h3",{id:"22-\u53e5\u5b50"},"2.2 \u53e5\u5b50\uff1a"),(0,m.kt)("div",{className:"math math-display"},(0,m.kt)("span",{parentName:"div",className:"katex-display"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mtable",{parentName:"semantics",width:"100%"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mrow",{parentName:"mtd"},(0,m.kt)("mi",{parentName:"mrow"},"S"),(0,m.kt)("msup",{parentName:"mrow"},(0,m.kt)("mo",{parentName:"msup"},"\u21d2"),(0,m.kt)("mo",{parentName:"msup"},"\u2217")),(0,m.kt)("mi",{parentName:"mrow"},"\u03b2"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mtext",{parentName:"mrow"},"\xa0"),(0,m.kt)("mi",{parentName:"mrow"},"\u03b2"),(0,m.kt)("mo",{parentName:"mrow"},"\u2208"),(0,m.kt)("msubsup",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msubsup"},"V"),(0,m.kt)("mi",{parentName:"msubsup"},"T"),(0,m.kt)("mo",{parentName:"msubsup"},"\u2217")))),(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mtext",{parentName:"mtd"},"(2)")))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"S \\Rightarrow^* \\beta,\\space \\beta \\in V_T^* \\tag{2}")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.7387em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05764em"}},"S"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},(0,m.kt)("span",{parentName:"span",className:"mrel"},"\u21d2"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.7387em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-3.113em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mbin mtight"},"\u2217")))))))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.8889em",verticalAlign:"-0.1944em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05278em"}},"\u03b2"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace"},"\xa0"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05278em"}},"\u03b2"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"\u2208"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.9857em",verticalAlign:"-0.247em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.22222em"}},"V"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.7387em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.453em",marginLeft:"-0.2222em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.13889em"}},"T"))),(0,m.kt)("span",{parentName:"span",style:{top:"-3.113em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mbin mtight"},"\u2217")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.247em"}},(0,m.kt)("span",{parentName:"span"}))))))),(0,m.kt)("span",{parentName:"span",className:"tag"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord text"},(0,m.kt)("span",{parentName:"span",className:"mord"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"2")),(0,m.kt)("span",{parentName:"span",className:"mord"},")"))))))),(0,m.kt)("p",null,"\u5219\u79f0",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"\u03b2")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"\\beta")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.8889em",verticalAlign:"-0.1944em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05278em"}},"\u03b2"))))),"\u662f\u8be5\u6587\u6cd5\u7684\u53e5\u5b50"),(0,m.kt)("h3",{id:"23-\u6587\u6cd5\u7684\u5206\u7c7b"},"2.3 \u6587\u6cd5\u7684\u5206\u7c7b\uff1a"),(0,m.kt)("ol",null,(0,m.kt)("li",{parentName:"ol"},(0,m.kt)("p",{parentName:"li"},"0\u578b\u6587\u6cd5\uff0c\u53c8\u79f0\u65e0\u9650\u5236\u6587\u6cd5\u3001\u77ed\u8bed\u6587\u6cd5")),(0,m.kt)("li",{parentName:"ol"},(0,m.kt)("p",{parentName:"li"},"1\u578b\u6587\u6cd5\uff0c\u53c8\u79f0\u6587\u6709\u5173\u6587\u6cd5")),(0,m.kt)("li",{parentName:"ol"},(0,m.kt)("p",{parentName:"li"},"2\u578b\u6587\u6cd5\uff0c\u53c8\u79f0\u4e0a\u4e0b\u6587\u65e0\u5173\u6587\u6cd5\uff08Context-Free Grammar\uff0cCFG\uff09"),(0,m.kt)("p",{parentName:"li"},"\u53ef\u7528\u6765\u6784\u5efa\u8bed\u6cd5\u6811\uff0c\u8bed\u6cd5\u6811\u662f\u4e0a\u4e0b\u6587\u65e0\u5173\u6587\u6cd5\u63a8\u5bfc\u548c\u89c4\u7ea6\u7684\u56fe\u5f62\u5316\u8868\u793a"),(0,m.kt)("div",{parentName:"li",className:"math math-display"},(0,m.kt)("span",{parentName:"div",className:"katex-display"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mtable",{parentName:"semantics",width:"100%"},(0,m.kt)("mtr",{parentName:"mtable"},(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mrow",{parentName:"mtd"},(0,m.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"A"),(0,m.kt)("mo",{parentName:"mrow"},"\u2192"),(0,m.kt)("mi",{parentName:"mrow"},"\u03b2"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mtext",{parentName:"mrow"},"\xa0"),(0,m.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"A"),(0,m.kt)("mo",{parentName:"mrow"},"\u2208"),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"V"),(0,m.kt)("mi",{parentName:"msub"},"N")),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mtext",{parentName:"mrow"},"\xa0"),(0,m.kt)("mi",{parentName:"mrow"},"\u03b2"),(0,m.kt)("mo",{parentName:"mrow"},"\u2208"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"V"),(0,m.kt)("mi",{parentName:"msub"},"T")),(0,m.kt)("mo",{parentName:"mrow"},"\u222a"),(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"V"),(0,m.kt)("mi",{parentName:"msub"},"N")),(0,m.kt)("msup",{parentName:"mrow"},(0,m.kt)("mo",{parentName:"msup",stretchy:"false"},")"),(0,m.kt)("mo",{parentName:"msup"},"\u2217")))),(0,m.kt)("mtd",{parentName:"mtr",width:"50%"}),(0,m.kt)("mtd",{parentName:"mtr"},(0,m.kt)("mtext",{parentName:"mtd"},"(3)")))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"\\Alpha \\rightarrow \\beta,\\space \\Alpha \\in V_N, \\space \\beta \\in (V_T \\cup V_N)^* \\tag{3}")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6833em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathrm"},"A"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"\u2192"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.8889em",verticalAlign:"-0.1944em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05278em"}},"\u03b2"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace"},"\xa0"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathrm"},"A"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"\u2208"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.8889em",verticalAlign:"-0.1944em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.22222em"}},"V"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3283em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.2222em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.10903em"}},"N")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace"},"\xa0"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05278em"}},"\u03b2"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"\u2208"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.22222em"}},"V"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3283em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.2222em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.13889em"}},"T")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"\u222a"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.22222em"}},"V"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3283em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.2222em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.10903em"}},"N")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"})))))),(0,m.kt)("span",{parentName:"span",className:"mclose"},(0,m.kt)("span",{parentName:"span",className:"mclose"},")"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.7387em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-3.113em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mbin mtight"},"\u2217"))))))))),(0,m.kt)("span",{parentName:"span",className:"tag"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord text"},(0,m.kt)("span",{parentName:"span",className:"mord"},"("),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord"},"3")),(0,m.kt)("span",{parentName:"span",className:"mord"},")")))))))),(0,m.kt)("li",{parentName:"ol"},(0,m.kt)("p",{parentName:"li"},"3\u578b\u6587\u6cd5\uff0c\u53c8\u79f0\u6b63\u89c4\u6587\u6cd5\uff08Regular Grammar\uff0cRG\uff09"),(0,m.kt)("ol",{parentName:"li"},(0,m.kt)("li",{parentName:"ol"},"\u5de6\u7ebf\u6027\u6587\u6cd5"),(0,m.kt)("li",{parentName:"ol"},"\u53f3\u7ebf\u6027\u6587\u6cd5")),(0,m.kt)("p",{parentName:"li"},(0,m.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora/imagesimage-20230528200840812.png",alt:"image-20230528200840812"})))),(0,m.kt)("h3",{id:"24-\u6700\u5de6\u53f3\u63a8\u5bfc"},"2.4 \u6700\u5de6/\u53f3\u63a8\u5bfc\uff1a"),(0,m.kt)("p",null,"\u5982\u679c\u5728\u63a8\u5bfc\u7684\u4efb\u4f55\u4e00\u6b65\u90fd\u662f\u5bf9\u4ea7\u751f\u5f0f\u5de6\u90e8\u4e2d\u7684\u6700\u5de6/\u53f3\u975e\u7ec8\u7ed3\u7b26\u8fdb\u884c\u66ff\u6362\uff0c\u5219\u79f0\u4e3a\u6700\u5de6/\u53f3\u63a8\u5bfc\uff0c\u5176\u4e2d\u6700\u53f3\u63a8\u5bfc\u4e5f\u88ab\u6210\u4e3a\u89c4\u8303\u63a8\u5bfc"),(0,m.kt)("hr",null),(0,m.kt)("h2",{id:"\u7b2c\u4e09\u7ae0\u8bcd\u6cd5\u5206\u6790"},"\u7b2c\u4e09\u7ae0\uff1a\u8bcd\u6cd5\u5206\u6790"),(0,m.kt)("h3",{id:"31-\u6b63\u89c4\u6587\u6cd5\u8f6c\u6362\u6210\u6b63\u89c4\u5f0f"},"3.1 \u6b63\u89c4\u6587\u6cd5\u8f6c\u6362\u6210\u6b63\u89c4\u5f0f"),(0,m.kt)("p",null,(0,m.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora/imagesimage-20230528201017013.png",alt:"image-20230528201017013"})),(0,m.kt)("h3",{id:"32-\u6709\u7a77\u81ea\u52a8\u673afa"},"3.2 \u6709\u7a77\u81ea\u52a8\u673a\uff08FA\uff09"),(0,m.kt)("p",null,(0,m.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora/imagesimage-20230528201040816.png",alt:"image-20230528201040816"})),(0,m.kt)("ol",null,(0,m.kt)("li",{parentName:"ol"},(0,m.kt)("p",{parentName:"li"},"\u786e\u5b9a\u7684\u6709\u7a77\u81ea\u52a8\u673a\uff08DFA\uff09"),(0,m.kt)("ol",{parentName:"li"},(0,m.kt)("li",{parentName:"ol"},(0,m.kt)("p",{parentName:"li"},"DFA\u7684\u5b9a\u4e49\u53ca\u7ec4\u6210"),(0,m.kt)("p",{parentName:"li"},(0,m.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora/imagesimage-20230528201127539.png",alt:"image-20230528201127539"}))),(0,m.kt)("li",{parentName:"ol"},(0,m.kt)("p",{parentName:"li"},"\u786e\u5b9a\u7684\u542b\u4e49\uff1a\u5728\u72b6\u6001\u8f6c\u6362\u7684\u6bcf\u4e00\u6b65\uff0cFA\u6839\u636e\u5f53\u524d\u7684\u72b6\u6001\u53ca\u626b\u63cf\u7684\u8f93\u5165\u5b57\u7b26\uff0c\u4fbf\u80fd\u552f\u4e00\u5730\u77e5\u9053FA\u7684\u4e0b\u4e00\u72b6\u6001\u3002"),(0,m.kt)("admonition",{parentName:"li",type:"tip"},(0,m.kt)("p",{parentName:"admonition"},"\u5728\u72b6\u6001\u8f6c\u6362\u56fe\u4e2d\u7684\u76f4\u89c2\u4f53\u73b0\u5c31\u662f\uff0c\u5728\u786e\u5b9a\u884c\u8868\u793a\u7684\u5f53\u524d\u72b6\u6001\u4ee5\u53ca\u5217\u786e\u5b9a\u7684\u8def\u5f84\u540e\uff0c\u5f97\u5230\u7684\u76ee\u7684\u72b6\u6001\u4e0d\u4f1a\u662f\u5143\u7d20\u4e2a\u6570\u5927\u4e8e1\u7684\u96c6\u5408\u3002"))),(0,m.kt)("li",{parentName:"ol"},(0,m.kt)("p",{parentName:"li"},"DFA\u7684\u53ef\u63a5\u53d7\u4ee5\u53ca\u63a5\u53d7\u96c6\u7684\u5b9a\u4e49\uff1a\u4ece\u5f00\u59cb\u72b6\u6001\u5f00\u59cb\uff0c\u7ecf\u8fc7\u8be5\u7b26\u53f7\u4e32\u8868\u793a\u7684\u8def\u5f84\uff0c\u82e5\u80fd\u5230\u8fbe\u7ec8\u6001\u5219\u79f0\u8be5\u7b26\u53f7\u4e32\u53ef\u88ab\u6539DFA\u63a5\u53d7\u3002"),(0,m.kt)("p",{parentName:"li"},(0,m.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora/imagesimage-20230528201159840.png",alt:"image-20230528201159840"}))))),(0,m.kt)("li",{parentName:"ol"},(0,m.kt)("p",{parentName:"li"},"\u4e0d\u786e\u5b9a\u7684\u6709\u7a77\u81ea\u52a8\u673a\uff08NFA\uff09")),(0,m.kt)("li",{parentName:"ol"},(0,m.kt)("p",{parentName:"li"},(0,m.kt)("inlineCode",{parentName:"p"},"NFA\u7684\u786e\u5b9a\u5316"),"\uff0c\u5373\u5c06NFA\u8f6c\u6362\u4e3aDFA\uff08\u5b50\u96c6\u6cd5\uff09"),(0,m.kt)("p",{parentName:"li"},(0,m.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora/imagesimage-20230528201222992.png",alt:"image-20230528201222992"})),(0,m.kt)("p",{parentName:"li"},"\u6b65\u9aa4\uff1a"),(0,m.kt)("ol",{parentName:"li"},(0,m.kt)("li",{parentName:"ol"},(0,m.kt)("p",{parentName:"li"},"\u753b\u51faDFA\u8f6c\u6362\u8868"),(0,m.kt)("admonition",{parentName:"li",type:"tip"},(0,m.kt)("p",{parentName:"admonition"},"\u8f6c\u6362\u8868\u4e2d\u5728\u72b6\u6001\u4e00\u5217\u4e2d\uff0c\u72b6\u6001\u5305\u542b\u539fNFA\u7ec8\u6001\u7684\u96c6\u5408\u8981\u6807*\uff0c\u4ee3\u8868\u5176\u4e3a\u7b49\u4ef7DFA\u7684\u7ec8\u6001")),(0,m.kt)("ol",{parentName:"li"},(0,m.kt)("li",{parentName:"ol"},"\u8ba1\u7b97",(0,m.kt)("span",{parentName:"li",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"m"),(0,m.kt)("mi",{parentName:"mrow"},"o"),(0,m.kt)("mi",{parentName:"mrow"},"v"),(0,m.kt)("mi",{parentName:"mrow"},"e"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"T"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"a"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"move(T, a)")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"m"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"o"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"v"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"e"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"T"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"a"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")")))))),(0,m.kt)("li",{parentName:"ol"},"\u8ba1\u7b97",(0,m.kt)("span",{parentName:"li",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"\u03f5"),(0,m.kt)("mo",{parentName:"mrow"},"\u2212"),(0,m.kt)("mi",{parentName:"mrow"},"c"),(0,m.kt)("mi",{parentName:"mrow"},"l"),(0,m.kt)("mi",{parentName:"mrow"},"o"),(0,m.kt)("mi",{parentName:"mrow"},"s"),(0,m.kt)("mi",{parentName:"mrow"},"u"),(0,m.kt)("mi",{parentName:"mrow"},"r"),(0,m.kt)("mi",{parentName:"mrow"},"e"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,m.kt)("mi",{parentName:"mrow"},"T"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"\\epsilon -closure(T)")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6667em",verticalAlign:"-0.0833em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"\u03f5"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"\u2212"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"c"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.01968em"}},"l"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"os"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"u"),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"re"),(0,m.kt)("span",{parentName:"span",className:"mopen"},"("),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.13889em"}},"T"),(0,m.kt)("span",{parentName:"span",className:"mclose"},")")))))))),(0,m.kt)("li",{parentName:"ol"},(0,m.kt)("p",{parentName:"li"},"\u4e3a\u8f6c\u6362\u8868\u4e2d\u7684\u72b6\u6001\u91cd\u547d\u540d")),(0,m.kt)("li",{parentName:"ol"},(0,m.kt)("p",{parentName:"li"},"\u786e\u5b9a\u521d\u6001\u548c\u7ec8\u6001")))),(0,m.kt)("li",{parentName:"ol"},(0,m.kt)("p",{parentName:"li"},(0,m.kt)("inlineCode",{parentName:"p"},"DFA\u7684\u6700\u5c0f\u5316"),"\uff08\u5206\u5272\u6cd5\uff09"),(0,m.kt)("p",{parentName:"li"},"\u6b65\u9aa4\u5982\u4e0b\uff1a"),(0,m.kt)("p",{parentName:"li"},(0,m.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora/imagesimage-20230528201309296.png",alt:"image-20230528201309296"})),(0,m.kt)("admonition",{parentName:"li",type:"tip"},(0,m.kt)("p",{parentName:"admonition"},"\u8003\u8bd5\u65f6\u6ce8\u610f\u8fc7\u7a0b\u600e\u4e48\u5199\uff0c\u4e0b\u9762\u4f7f\u7528\u9700\u8981\u4e09\u8f6e\u5206\u5272\u7684\u5217\u5b50\u6f14\u793a\u6b65\u9aa4")),(0,m.kt)("p",{parentName:"li"},(0,m.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora/imagesimage-20230528201322014.png",alt:"image-20230528201322014"})),(0,m.kt)("p",{parentName:"li"},(0,m.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora/imagesimage-20230528201330964.png",alt:"image-20230528201330964"})),(0,m.kt)("p",{parentName:"li"},(0,m.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora/imagesimage-20230528201338655.png",alt:"image-20230528201338655"})),(0,m.kt)("p",{parentName:"li"},"\u5728\u5206\u5272\u5b8c\u6210\u540e\uff0c\u5bf9\u53ef\u4ee5\u5316\u7b80\u7684\u96c6\u5408\u9009\u51fa\u4e00\u4e2a\u72b6\u6001\u4f5c\u4e3a\u4ee3\u8868\uff0c\u5220\u9664\u5176\u4ed6\u591a\u4f59\u72b6\u6001\uff0c\u91cd\u65b0\u753b\u56fe"),(0,m.kt)("p",{parentName:"li"},(0,m.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora/imagesimage-20230528201346345.png",alt:"image-20230528201346345"})))),(0,m.kt)("h3",{id:"33-\u6b63\u89c4\u5f0fre\u4e0e\u6709\u7a77\u81ea\u52a8\u673afa\u7684\u4e92\u76f8\u8f6c\u5316"},"3.3 \u6b63\u89c4\u5f0fRE\u4e0e\u6709\u7a77\u81ea\u52a8\u673aFA\u7684\u4e92\u76f8\u8f6c\u5316"),(0,m.kt)("p",null,(0,m.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora/imagesimage-20230528201408139.png",alt:"image-20230528201408139"})),(0,m.kt)("h3",{id:"34-\u6b63\u89c4\u6587\u6cd5rm\u4e0e\u6709\u7a77\u81ea\u52a8\u673afa\u7684\u4e92\u76f8\u8f6c\u5316"},"3.4 \u6b63\u89c4\u6587\u6cd5RM\u4e0e\u6709\u7a77\u81ea\u52a8\u673aFA\u7684\u4e92\u76f8\u8f6c\u5316"),(0,m.kt)("p",null,(0,m.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora/imagesimage-20230528201418070.png",alt:"image-20230528201418070"})),(0,m.kt)("hr",null),(0,m.kt)("h2",{id:"\u7b2c\u56db\u7ae0\u81ea\u9876\u5411\u4e0b\u8bed\u6cd5\u5206\u6790\u65b9\u6cd5"},"\u7b2c\u56db\u7ae0\uff1a\u81ea\u9876\u5411\u4e0b\u8bed\u6cd5\u5206\u6790\u65b9\u6cd5"),(0,m.kt)("p",null,"\u63cf\u8ff0\u7a0b\u5e8f\u8bed\u6cd5\u7ed3\u6784\u7684\u89c4\u5219\u53ef\u4ee5\u4f7f\u7528",(0,m.kt)("inlineCode",{parentName:"p"},"2\u578b\u6587\u6cd5\uff08\u4e0a\u4e0b\u6587\u65e0\u5173\u8bed\u6cd5\uff0cCFG\uff09")),(0,m.kt)("p",null,"\u8bed\u6cd5\u5206\u6790\u65b9\u6cd5\u5305\u542b\u786e\u5b9a\u7684\u548c\u4e0d\u786e\u5b9a\u7684\u5206\u6790\u65b9\u6cd5\uff0c\u786e\u5b9a\u7684\u8bed\u6cd5\u5206\u6790\u65b9\u6cd5",(0,m.kt)("inlineCode",{parentName:"p"},"\u6839\u636e\u8f93\u5165\u7b26\u53f7\uff0c\u552f\u4e00\u9009\u62e9\u4ea7\u751f\u5f0f")),(0,m.kt)("p",null,"\u786e\u5b9a\u7684\u81ea\u9876\u5411\u4e0b\u5206\u6790\u65b9\u6cd5\uff1a\u6839\u636e\u5f53\u524d\u7684\u8f93\u5165\u7b26\u53f7",(0,m.kt)("inlineCode",{parentName:"p"},"\u552f\u4e00\u5730"),"\u786e\u5b9a\u9009\u7528\u54ea\u4e2a\u4ea7\u751f\u5f0f",(0,m.kt)("inlineCode",{parentName:"p"},"\u66ff\u6362\u76f8\u5e94\u7684\u975e\u7ec8\u7ed3\u7b26"),"\u4ee5\u5f80\u4e0b\u63a8\u5bfc"),(0,m.kt)("p",null,(0,m.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora/imagesimage-20230528201657180.png",alt:"image-20230528201657180"})),(0,m.kt)("h3",{id:"1-first\u96c6\u7684\u5b9a\u4e49"},"1. FIRST\u96c6\u7684\u5b9a\u4e49"),(0,m.kt)("p",null,(0,m.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora/imagesimage-20230528201545335.png",alt:"image-20230528201545335"})),(0,m.kt)("h3",{id:"2-follow\u96c6\u7684\u5b9a\u4e49"},"2. Follow\u96c6\u7684\u5b9a\u4e49"),(0,m.kt)("p",null,(0,m.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora/imagesimage-20230529222731177.png",alt:"image-20230529222731177"})),(0,m.kt)("admonition",{type:"tip"},(0,m.kt)("p",{parentName:"admonition"},"FOLLOW\u96c6\u7684\u6c42\u6cd5\u53ef\u4ee5\u6309\u7167\u4e0b\u56fe\u6280\u5de7\u8fdb\u884c")),(0,m.kt)("ol",null,(0,m.kt)("li",{parentName:"ol"},(0,m.kt)("p",{parentName:"li"},"\u82e5\u8981\u6c42\u7684\u975e\u7ec8\u7ed3\u7b26\u662f\u5f00\u59cb\u7b26\u53f7\uff0c\u5219\u76f4\u63a5\u5c06#\u63d2\u5165FOLLOW\u96c6\u4e2d")),(0,m.kt)("li",{parentName:"ol"},(0,m.kt)("p",{parentName:"li"},"\u5728\u6240\u6709\u4ea7\u751f\u5f0f\u7684\u53f3\u90e8\u4e2d\u627e\u5230\u8981\u6c42\u7684\u975e\u7ec8\u7ed3\u7b26")),(0,m.kt)("li",{parentName:"ol"},(0,m.kt)("p",{parentName:"li"},"\u770b\u975e\u7ec8\u7ed3\u7b26\u7684\u53f3\u4fa7\u662f\u4ec0\u4e48\u5143\u7d20"),(0,m.kt)("ol",{parentName:"li"},(0,m.kt)("li",{parentName:"ol"},(0,m.kt)("inlineCode",{parentName:"li"},"\u82e5\u65e0\u5143\u7d20\uff0c\u5219\u76f4\u63a5\u5c06\u8be5\u4ea7\u751f\u5f0f\u5de6\u90e8\u7684FOLLOW\u96c6\u52a0\u5165\u5230\u8be5\u975e\u7ec8\u7ed3\u7b26\u7684FOLLOW\u96c6\u4e2d")),(0,m.kt)("li",{parentName:"ol"},"\u82e5\u4e3a\u7ec8\u7ed3\u7b26\uff0c\u76f4\u63a5\u5c06\u8be5\u7ec8\u7ed3\u7b26\u52a0\u5165\u5230FOLLOW\u96c6\u4e2d"),(0,m.kt)("li",{parentName:"ol"},"\u82e5\u4e3a\u975e\u7ec8\u7ed3\u7b26\uff0c\u5c06FIRST(\u8be5\u975e\u7ec8\u7ed3\u7b26)\u51cf\u53bb",(0,m.kt)("span",{parentName:"li",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"\u03f5")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"\\epsilon")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.4306em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"\u03f5"))))),"\u7684\u6240\u6709\u7ec8\u7ed3\u7b26\u5143\u7d20\u90fd\u52a0\u5165\u81f3FOLLOW\u96c6\u4e2d")),(0,m.kt)("p",{parentName:"li"},(0,m.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora/imagescover699_20230322101450.jpg",alt:"ppt"})))),(0,m.kt)("h3",{id:"3-select\u96c6\u7684\u5b9a\u4e49"},"3. SELECT\u96c6\u7684\u5b9a\u4e49"),(0,m.kt)("admonition",{type:"tip"},(0,m.kt)("p",{parentName:"admonition"},"\u9700\u8981\u6ce8\u610f\u7684\u662fFIRST\u96c6\u3001FOLLOW\u96c6\u662f\u9488\u5bf9\u4e8e\u7b26\u53f7\u4e32\u800c\u8a00\u7684\uff0c\u800cSELECT\u96c6\u662f\u9488\u5bf9\u4e8e\u4ea7\u751f\u5f0f\u800c\u8a00\u7684")),(0,m.kt)("p",null,(0,m.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora/imagesimage-20230529222743763.png",alt:"image-20230529222743763"})),(0,m.kt)("h3",{id:"4-ll1\u6587\u6cd5\u7684\u5b9a\u4e49"},"4. LL(1)\u6587\u6cd5\u7684\u5b9a\u4e49"),(0,m.kt)("p",null,(0,m.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora/imagesimage-20230529222755134.png",alt:"image-20230529222755134"})),(0,m.kt)("h3",{id:"5-ll1\u6587\u6cd5\u7684\u5224\u522b"},"5. LL(1)\u6587\u6cd5\u7684\u5224\u522b"),(0,m.kt)("p",null,(0,m.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora/imagesimage-20230529222804098.png",alt:"image-20230529222804098"})),(0,m.kt)("admonition",{type:"tip"},(0,m.kt)("p",{parentName:"admonition"},"\u8003\u8bd5\u65f6\u6ce8\u610f\u4e66\u5199\u8fc7\u7a0b\uff0c\u9700\u8981\u753b\u51fa\u4ee5\u4e0b\u4e24\u5f20\u8868")),(0,m.kt)("p",null,(0,m.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora/imagesimage-20230529222639440.png",alt:"image-20230529222639440"})),(0,m.kt)("h3",{id:"6-\u9884\u6d4b\u5206\u6790\u8868"},"6. \u9884\u6d4b\u5206\u6790\u8868"),(0,m.kt)("p",null,"\u9884\u6d4b\u5206\u6790\u8868\u901a\u8fc7\u8ba1\u7b97SELECT\u96c6\u5f97\u5230\uff0c\u5f62\u5982\u4e0b\u8868"),(0,m.kt)("p",null,"\u884c\u6807\u4e3a\u5404\u975e\u7ec8\u7ed3\u7b26\uff0c\u5217\u6807\u4e3a\u8f93\u5165\u7b26\u53f7\uff0c\u82e5\u4ece\u67d0\u4e00\u975e\u7ec8\u7ed3\u7b26\u5f00\u59cb\u7684\u4ea7\u751f\u5f0f\u7684SELECT\u96c6\u5305\u542b\u67d0\u4e00\u8f93\u5165\u7b26\u53f7\uff0c\u5219\u5bf9\u5e94\u4ea7\u751f\u5f0f\u5c31\u662f\u884c\u5217\u786e\u5b9a\u7684\u5143\u7d20\u503c\u3002"),(0,m.kt)("p",null," ",(0,m.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora/imagescover696_20230322101455.jpg",alt:"ppt"})),(0,m.kt)("h3",{id:"7-\u975ell1\u6587\u6cd5\u5230ll1\u6587\u6cd5\u7684\u7b49\u4ef7\u53d8\u6362"},"7. \u975eLL(1)\u6587\u6cd5\u5230LL(1)\u6587\u6cd5\u7684\u7b49\u4ef7\u53d8\u6362"),(0,m.kt)("ol",null,(0,m.kt)("li",{parentName:"ol"},(0,m.kt)("p",{parentName:"li"},"\u6d88\u9664\u5de6\u516c\u56e0\u5b50\uff08\u56de\u6eaf\uff09"),(0,m.kt)("admonition",{parentName:"li",type:"caution"},(0,m.kt)("p",{parentName:"admonition"},"\u540c\u4e00\u975e\u7ec8\u7ed3\u7b26\u7684\u591a\u4e2a\u4ea7\u751f\u5f0f\u5b58\u5728\u5171\u540c\u524d\u7f00\uff0c\u4f1a\u5bfc\u81f4\u56de\u6eaf\u73b0\u8c61\uff0c\u9700\u8981\u6d88\u9664")),(0,m.kt)("p",{parentName:"li"},(0,m.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora/imagescover680_20230322101457.jpg",alt:"ppt"}))),(0,m.kt)("li",{parentName:"ol"},(0,m.kt)("p",{parentName:"li"},"\u6d88\u9664\u5de6\u9012\u5f52"),(0,m.kt)("admonition",{parentName:"li",type:"caution"},(0,m.kt)("p",{parentName:"admonition"},"\u5de6\u9012\u5f52\u6587\u6cd5\u4f1a\u4f7f\u9012\u5f52\u4e0b\u964d\u5206\u6790\u5668\u9677\u5165\u65e0\u9650\u5faa\u73af")),(0,m.kt)("ol",{parentName:"li"},(0,m.kt)("li",{parentName:"ol"},(0,m.kt)("p",{parentName:"li"},"\u6d88\u9664\u76f4\u63a5\u5de6\u9012\u5f52"),(0,m.kt)("p",{parentName:"li"},(0,m.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora/imagescover1129_20230322101459.jpg",alt:"ppt"}))),(0,m.kt)("li",{parentName:"ol"},(0,m.kt)("p",{parentName:"li"},"\u6d88\u9664\u95f4\u63a5\u5de6\u9012\u5f52"),(0,m.kt)("p",{parentName:"li"},"\u901a\u8fc7\u4ee3\u5165\u6cd5\u53d8\u6210\u76f4\u63a5\u5de6\u9012\u5f52\u518d\u6d88\u9664"))))),(0,m.kt)("h2",{id:"\u7b2c\u4e94\u7ae0\u81ea\u5e95\u5411\u4e0a\u8bed\u6cd5\u5206\u6790\u65b9\u6cd5"},"\u7b2c\u4e94\u7ae0\uff1a\u81ea\u5e95\u5411\u4e0a\u8bed\u6cd5\u5206\u6790\u65b9\u6cd5"),(0,m.kt)("h3",{id:"51-\u6982\u5ff5"},"5.1 \u6982\u5ff5"),(0,m.kt)("p",null,"\u4ece\u7684\u5e95\u90e8\u5411\u9876\u90e8\u7684\u65b9\u5411\u6784\u9020\u8bed\u6cd5\u5206\u6790\u6811\uff0c\u91c7\u7528\u6700\u5de6\u5f52\u7ea6\u7684\u65b9\u5f0f\uff0c\u5373\u6700\u53f3\u63a8\u5bfc\u7684\u9006\u8fc7\u7a0b"),(0,m.kt)("admonition",{type:"tip"},(0,m.kt)("p",{parentName:"admonition"},"\u6ce8\u610f\u8fa8\u522b\uff1a\u81ea\u9876\u5411\u4e0b\u7684\u8bed\u6cd5\u5206\u6790\u91c7\u7528\u6700\u5de6\u63a8\u5bfc\u7684\u65b9\u5f0f"),(0,m.kt)("p",{parentName:"admonition"},"\u6700\u53f3\u63a8\u5bfc\u662f\u89c4\u8303\u63a8\u5bfc\uff0c\u6700\u5de6\u5f52\u7ea6\u662f\u6700\u53f3\u63a8\u5bfc\u7684\u9006\u8fc7\u7a0b\uff0c\u53c8\u79f0\u89c4\u8303\u5f52\u7ea6")),(0,m.kt)("h3",{id:"52-\u65b9\u6cd5"},"5.2 \u65b9\u6cd5"),(0,m.kt)("ol",null,(0,m.kt)("li",{parentName:"ol"},(0,m.kt)("p",{parentName:"li"},"\u7b97\u7b26\u4f18\u5148\u5206\u6790\u6cd5"),(0,m.kt)("p",{parentName:"li"},"\u6309\u7167\u7b97\u7b26\u7684\u4f18\u5148\u5173\u7cfb\u548c\u7ed3\u5408\u6027\u8d28\u8fdb\u884c\u8bed\u6cd5\u5206\u6790")),(0,m.kt)("li",{parentName:"ol"},(0,m.kt)("p",{parentName:"li"},"LR\u5206\u6790\u6cd5\uff08\u91cd\u70b9\uff09"),(0,m.kt)("p",{parentName:"li"},"\u89c4\u8303\u89c4\u7ea6\uff1a\u53e5\u67c4\u4f5c\u4e3a\u53ef\u5f52\u7ea6\u4e32"))),(0,m.kt)("h3",{id:"53-\u5de5\u4f5c\u8fc7\u7a0b"},"5.3 \u5de5\u4f5c\u8fc7\u7a0b"),(0,m.kt)("p",null,(0,m.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora/imagescover1137_20230329104315.jpg",alt:"img"})),(0,m.kt)("h3",{id:"54-\u79fb\u5165-\u5f52\u7ea6\u5206\u6790\u5668\u76844\u79cd\u52a8\u4f5c"},"5.4 \u79fb\u5165-\u5f52\u7ea6\u5206\u6790\u5668\u76844\u79cd\u52a8\u4f5c"),(0,m.kt)("ol",null,(0,m.kt)("li",{parentName:"ol"},"\u79fb\u5165\uff1a\u5c06\u4e0b\u4e00\u4e2a\u8f93\u5165\u7b26\u53f7\u79fb\u5230\u6808\u9876"),(0,m.kt)("li",{parentName:"ol"},"\u5f52\u7ea6\uff1a\u88ab\u5f52\u7ea6\u7684\u7b26\u53f7\u4e32\u7684\u53f3\u7aef\u5904\u4e8e\u6808\u9876\uff0c\u8bed\u6cd5\u5206\u6790\u5668\u5728\u6808\u4e2d\u786e\u5b9a\u8fd9\u4e2a\u4e32\u7684\u5de6\u7aef\u975e\u7ec8\u7ed3\u7b26\u6765\u66ff\u6362\u8be5\u4e32"),(0,m.kt)("li",{parentName:"ol"},"\u63a5\u53d7\uff1a\u5ba3\u5e03\u8bed\u6cd5\u5206\u6790\u8fc7\u7a0b\u6210\u529f\u5b8c\u6210"),(0,m.kt)("li",{parentName:"ol"},"\u62a5\u9519\uff1a\u53d1\u73b0\u4e00\u4e2a\u8bed\u6cd5\u9519\u8bef\uff0c\u5e76\u8c03\u7528\u9519\u8bef\u6062\u590d\u5b50\u7a0b\u5e8f")),(0,m.kt)("p",null,(0,m.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora/imagescover1125_20230329104316.jpg",alt:"img"})),(0,m.kt)("h3",{id:"55-\u91cd\u8981\u9898\u578b"},"5.5 \u91cd\u8981\u9898\u578b"),(0,m.kt)("ol",null,(0,m.kt)("li",{parentName:"ol"},(0,m.kt)("p",{parentName:"li"},"\u524d\u5bfc\u77e5\u8bc6\uff1a4\u79cd\u9879\u76ee\u72b6\u6001"),(0,m.kt)("ol",{parentName:"li"},(0,m.kt)("li",{parentName:"ol"},"\u5f52\u7ea6\u9879\u76ee\uff1a\xb7\u5728\u6700\u540e"),(0,m.kt)("li",{parentName:"ol"},"\u63a5\u53d7\u9879\u76ee\uff1a\u62d3\u5e7f\u6587\u6cd5\u7684\u5f00\u59cb\u7b26\u53f7\u7684\u4ea7\u751f\u5f0f\uff0c\u4e14\xb7\u5728\u6700\u540e"),(0,m.kt)("li",{parentName:"ol"},"\u79fb\u8fdb\u9879\u76ee\uff1a\xb7\u540e\u9762\u662f\u7ec8\u7ed3\u7b26",(0,m.kt)("span",{parentName:"li",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"V"),(0,m.kt)("mi",{parentName:"msub"},"T"))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"V_T")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.8333em",verticalAlign:"-0.15em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.22222em"}},"V"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3283em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.2222em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.13889em"}},"T")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"}))))))))))),(0,m.kt)("li",{parentName:"ol"},"\u5f85\u7ea6\u9879\u76ee\uff1a\xb7\u540e\u9762\u662f\u975e\u7ec8\u7ed3\u7b26",(0,m.kt)("span",{parentName:"li",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("msub",{parentName:"mrow"},(0,m.kt)("mi",{parentName:"msub"},"V"),(0,m.kt)("mi",{parentName:"msub"},"N"))),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"V_N")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.8333em",verticalAlign:"-0.15em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.22222em"}},"V"),(0,m.kt)("span",{parentName:"span",className:"msupsub"},(0,m.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3283em"}},(0,m.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.2222em",marginRight:"0.05em"}},(0,m.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,m.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,m.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.10903em"}},"N")))),(0,m.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,m.kt)("span",{parentName:"span",className:"vlist-r"},(0,m.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,m.kt)("span",{parentName:"span"}))))))))))))),(0,m.kt)("li",{parentName:"ol"},(0,m.kt)("p",{parentName:"li"},"\u79fb\u5165-\u5f52\u7ea6\u5206\u6790"),(0,m.kt)("p",{parentName:"li"},(0,m.kt)("img",{parentName:"p",src:"https://github.com/bonjour-npy/Image-Hosting-Service/blob/main/typora/%E5%B1%8F%E5%B9%95%E6%88%AA%E5%9B%BE%202023-05-30%20085808.png?raw=true",alt:"image"}))),(0,m.kt)("li",{parentName:"ol"},(0,m.kt)("p",{parentName:"li"},"LR(0)\u5206\u6790\u8868 / \u6784\u9020\u5176\u8bc6\u522b\u6d3b\u524d\u7f00DFA "),(0,m.kt)("p",{parentName:"li"},(0,m.kt)("a",{parentName:"p",href:"https://www.bilibili.com/video/BV1pL4y1E7RE/?spm_id_from=333.788&vd_source=24d8fcf68bc0e2b0003defe0995cf533"},"https://www.bilibili.com/video/BV1pL4y1E7RE/?spm_id_from=333.788&vd_source=24d8fcf68bc0e2b0003defe0995cf533")),(0,m.kt)("p",{parentName:"li"},(0,m.kt)("inlineCode",{parentName:"p"},"\u5728\u5199\u9884\u6d4b\u5206\u6790\u8868\u7684reduce\u9879\u65f6\uff0caction\u7684\u6bcf\u4e00\u5217\u90fd\u8981\u5199"))),(0,m.kt)("li",{parentName:"ol"},(0,m.kt)("p",{parentName:"li"},"SLR(1)\u5206\u6790\u8868 / \u6784\u9020\u5176\u8bc6\u522b\u6d3b\u524d\u7f00DFA"),(0,m.kt)("p",{parentName:"li"},(0,m.kt)("a",{parentName:"p",href:"https://www.bilibili.com/video/BV12u411S7Us/?spm_id_from=333.788&vd_source=24d8fcf68bc0e2b0003defe0995cf533"},"https://www.bilibili.com/video/BV12u411S7Us/?spm_id_from=333.788&vd_source=24d8fcf68bc0e2b0003defe0995cf533")),(0,m.kt)("p",{parentName:"li"},(0,m.kt)("inlineCode",{parentName:"p"},"\u5728\u5199\u9884\u6d4b\u5206\u6790\u8868\u7684reduce\u9879\u65f6\uff0c\u53ea\u5199\u4ea7\u751f\u5f0f\u5de6\u90e8\u7684FOLLOW\u96c6\u5bf9\u5e94\u7684action\u5217"))),(0,m.kt)("li",{parentName:"ol"},(0,m.kt)("p",{parentName:"li"},"LR(1)\u5206\u6790\u8868 / \u6784\u9020\u5176\u8bc6\u522b\u6d3b\u524d\u7f00DFA"),(0,m.kt)("p",{parentName:"li"},(0,m.kt)("a",{parentName:"p",href:"https://www.bilibili.com/video/BV1Vm4y1Q7XB/?spm_id_from=333.788&vd_source=24d8fcf68bc0e2b0003defe0995cf533"},"https://www.bilibili.com/video/BV1Vm4y1Q7XB/?spm_id_from=333.788&vd_source=24d8fcf68bc0e2b0003defe0995cf533")),(0,m.kt)("p",{parentName:"li"},(0,m.kt)("inlineCode",{parentName:"p"},"\u5728\u6784\u9020\u9879\u76ee\u96c6\u65f6\uff0c\u8981\u52a0\u5165\u524d\u5411\u641c\u7d22\u7b26\uff1b\u5e76\u4e14\uff0c\u5728\u5199\u9884\u6d4b\u5206\u6790\u8868\u7684reduce\u9879\u65f6\u53ea\u5199\u524d\u5411\u641c\u7d22\u7b26\u5bf9\u5e94\u7684action\u5217"))),(0,m.kt)("li",{parentName:"ol"},(0,m.kt)("p",{parentName:"li"},"LALR(1)\u5206\u6790\u8868 / \u6784\u9020\u5176\u8bc6\u522b\u6d3b\u524d\u7f00DFA"),(0,m.kt)("p",{parentName:"li"},(0,m.kt)("inlineCode",{parentName:"p"},"\u5728\u6784\u9020\u9879\u76ee\u96c6\u65f6\uff0c\u8981\u52a0\u5165\u524d\u5411\u641c\u7d22\u7b26\uff0c\u4f46\u662f\u8981\u5408\u5e76\u540c\u5fc3\u96c6\uff0c\u628a\u76f8\u540c\u8868\u8fbe\u5f0f\u4f46\u662f\u4e0d\u540c\u524d\u5411\u641c\u7d22\u7b26\u7684\u524d\u5411\u641c\u7d22\u7b26\u5408\u5e76\uff0c\u5e76\u4e14\u5728\u5199\u9884\u6d4b\u5206\u6790\u8868\u7684reduce\u9879\u65f6\u53ea\u5199\u524d\u5411\u641c\u7d22\u7b26\u96c6\u5bf9\u5e94\u7684action\u5217")),(0,m.kt)("p",{parentName:"li"},(0,m.kt)("a",{parentName:"p",href:"https://www.bilibili.com/video/BV13r4y1m7sQ/?spm_id_from=333.788&vd_source=24d8fcf68bc0e2b0003defe0995cf533"},"https://www.bilibili.com/video/BV13r4y1m7sQ/?spm_id_from=333.788&vd_source=24d8fcf68bc0e2b0003defe0995cf533")))),(0,m.kt)("h2",{id:"\u6982\u5ff5\u603b\u7ed3"},"\u6982\u5ff5\u603b\u7ed3"),(0,m.kt)("h3",{id:"1-\u7f16\u8bd1\u7a0b\u5e8f\u5404\u9636\u6bb5\u529f\u80fd"},"1 \u7f16\u8bd1\u7a0b\u5e8f\u5404\u9636\u6bb5\u529f\u80fd"),(0,m.kt)("p",null,(0,m.kt)("inlineCode",{parentName:"p"},"\u8bcd\u6cd5\u5206\u6790"),"\uff1a\u4ece\u5de6\u5230\u53f3\u626b\u63cf\u6e90\u7a0b\u5e8f\uff0c\u8bc6\u522b\u51fa\u5404\u4e2a\u5355\u8bcd\uff0c\u786e\u5b9a\u5355\u8bcd\u7c7b\u578b\u5e76\u5f62\u6210\u5355\u8bcd\u5e8f\u5217\uff0c\u8fdb\u884c\u8bcd\u6cd5\u9519\u8bef\u68c0\u67e5\uff0c\u5bf9\u6807\u8bc6\u7b26\u8fdb\u884c\u767b\u8bb0\uff0c\u5373\u7b26\u53f7\u8868\u7ba1\u7406\n",(0,m.kt)("inlineCode",{parentName:"p"},"\u8bed\u6cd5\u5206\u6790"),"\uff1a\u4ece\u8bcd\u6cd5\u5206\u6790\u8f93\u51fa\u7684\u5355\u8bcd\u5e8f\u5217\u8bc6\u522b\u51fa\u5404\u7c7b\u77ed\u8bed\uff0c\u6784\u9020\u8bed\u6cd5\u5206\u6790\u6811\uff0c\u5e76\u8fdb\u884c\u8bed\u6cd5\u9519\u8bef\u68c0\u67e5\n",(0,m.kt)("inlineCode",{parentName:"p"},"\u8bed\u4e49\u5206\u6790"),"\uff1a\u5ba1\u67e5\u7a0b\u5e8f\u662f\u5426\u5177\u6709\u8bed\u4e49\u9519\u8bef\uff0c\u4e3a\u4ee3\u7801\u751f\u6210\u9636\u6bb5\u6536\u96c6\u7c7b\u578b\u4fe1\u606f\uff0c\u4e0d\u7b26\u5408\u89c4\u8303\u65f6\u62a5\u9519\uff08\u7b26\u53f7\u8868\u662f\u8bed\u4e49\u6b63\u786e\u6027\u68c0\u67e5\u7684\u4f9d\u636e\uff09\n",(0,m.kt)("inlineCode",{parentName:"p"},"\u4e2d\u95f4\u4ee3\u7801\u751f\u6210"),"\uff1a\u751f\u6210\u4e2d\u95f4\u4ee3\u7801\uff0c\u5982\u4e09\u5730\u5740\u6307\u4ee4\u3001\u56db\u5143\u5f0f\u3001\u6ce2\u5170\u5f0f\u3001\u9006\u6ce2\u5170\u5f0f\u3001\u6811\u5f62\u7ed3\u6784\u7b49\n",(0,m.kt)("inlineCode",{parentName:"p"},"\u4ee3\u7801\u4f18\u5316"),"\uff1a\u5bf9\u4ee3\u7801\u8fdb\u884c\u7b49\u4ef7\u53d8\u6362\u4ee5\u6c42\u63d0\u9ad8\u6267\u884c\u6548\u7387\uff0c\u63d0\u9ad8\u901f\u5ea6\u6216\u8282\u7701\u7a7a\u95f4\n",(0,m.kt)("inlineCode",{parentName:"p"},"\u76ee\u6807\u4ee3\u7801\u751f\u6210"),"\uff1a\u5c06\u4e2d\u95f4\u4ee3\u7801\u8f6c\u5316\u6210",(0,m.kt)("inlineCode",{parentName:"p"},"\u76ee\u6807\u673a\u4e0a"),"\u7684\u673a\u5668\u6307\u4ee4\u4ee3\u7801\u6216\u6c47\u7f16\u4ee3\u7801\uff08\u7b26\u53f7\u8868\u662f\u5bf9\u7b26\u53f7\u5206\u914d\u5730\u5740\u7684\u4f9d\u636e\uff09"),(0,m.kt)("h3",{id:"2-\u8bed\u6cd5\u5206\u6790\u65b9\u6cd5\u7684\u6982\u5ff5"},"2 \u8bed\u6cd5\u5206\u6790\u65b9\u6cd5\u7684\u6982\u5ff5"),(0,m.kt)("p",null,"\u5c31\u4ea7\u751f\u8bed\u6cd5\u6811\u7684\u65b9\u5411\u800c\u8a00\uff0c\u53ef\u5927\u81f4\u5206\u4e3a",(0,m.kt)("inlineCode",{parentName:"p"},"\u81ea\u9876\u5411\u4e0b"),"\u7684\u8bed\u6cd5\u5206\u6790\u548c",(0,m.kt)("inlineCode",{parentName:"p"},"\u81ea\u5e95\u5411\u4e0a"),"\u7684\u8bed\u6cd5\u5206\u6790\u4e24\u5927\u7c7b\u3002"),(0,m.kt)("p",null,"\u81ea\u9876\u5411\u4e0b\u7684\u8bed\u6cd5\u5206\u6790\u65b9\u6cd5\uff1a\u4e3b\u6d41\u65b9\u6cd5\u4e3a",(0,m.kt)("inlineCode",{parentName:"p"},"\u9012\u5f52\u4e0b\u964d\u5206\u6790\u6cd5"),"\u3002\u6839\u636e\u5f53\u524d\u7684\u8f93\u5165\u7b26\u53f7",(0,m.kt)("inlineCode",{parentName:"p"},"\u552f\u4e00\u5730"),"\u786e\u5b9a\u9009\u7528\u54ea\u4e2a\u4ea7\u751f\u5f0f",(0,m.kt)("inlineCode",{parentName:"p"},"\u66ff\u6362\u76f8\u5e94\u7684\u975e\u7ec8\u7ed3\u7b26"),"\u4ee5\u5f80\u4e0b\u63a8\u5bfc\u3002"),(0,m.kt)("p",null,"\u81ea\u5e95\u5411\u4e0a\u7684\u8bed\u6cd5\u5206\u6790\u65b9\u6cd5\uff1a",(0,m.kt)("inlineCode",{parentName:"p"},"\u5c06\u8f93\u5165\u4e32w\u5f52\u7ea6\u4e3a\u6587\u6cd5\u5f00\u59cb\u7b26\u53f7S\u7684\u8fc7\u7a0b"),"\u3002"),(0,m.kt)("admonition",{type:"tip"},(0,m.kt)("p",{parentName:"admonition"},"LR(0), SLR(1), LR(1)"),(0,m.kt)("p",{parentName:"admonition"},"LR(0)\u6587\u6cd5\u53ef\u80fd\u5b58\u5728\u79fb\u8fdb-\u5f52\u7ea6\u51b2\u7a81\u3001\u5f52\u7ea6-\u5f52\u7ea6\u51b2\u7a81"),(0,m.kt)("p",{parentName:"admonition"},"SLR(1)\u6587\u6cd5\u5728\u6784\u9020\u7684\u8fc7\u7a0b\u4e2d\u4e0d\u5b58\u5728\u5f52\u7ea6-\u5f52\u7ea6\u51b2\u7a81\uff0c\u4f46\u6709\u53ef\u80fd\u51fa\u73b0\u79fb\u8fdb-\u5f52\u7ea6\u51b2\u7a81\uff0c\u53ef\u4ee5\u7531FOLLOW\u96c6\u89e3\u51b3\u7684\u8bdd\u5219\u662fSLR(1)\u6587\u6cd5")),(0,m.kt)("h3",{id:"3-\u7ffb\u8bd1\u6a21\u5f0f"},"3 \u7ffb\u8bd1\u6a21\u5f0f"),(0,m.kt)("p",null,"\u7ffb\u8bd1\u6a21\u5f0f\u662f\u9002\u5408",(0,m.kt)("inlineCode",{parentName:"p"},"\u8bed\u6cd5\u5236\u5bfc\u8bed\u4e49\u8ba1\u7b97"),"\u7684\u53e6\u4e00\u79cd\u63cf\u8ff0\u5f62\u5f0f\uff0c\u53ef\u4ee5\u4f53\u73b0\u4e00\u79cd\u5408\u7406\u8c03\u7528\u8bed\u4e49\u52a8\u4f5c\u7684\u7b97\u6cd5\u3002"),(0,m.kt)("ul",null,(0,m.kt)("li",{parentName:"ul"},(0,m.kt)("p",{parentName:"li"},"S-\u7ffb\u8bd1\u6a21\u5f0f\uff1a"),(0,m.kt)("p",{parentName:"li"},"\u4ec5\u6d89\u53ca\u7efc\u5408\u5c5e\u6027\u7684\u7ffb\u8bd1\u6a21\u5f0f\uff0c\u901a\u5e38\u5c06\u8bed\u4e49\u52a8\u4f5c\u96c6\u5408\u7f6e\u4e8e\u4ea7\u751f\u5f0f\u53f3\u7aef\u672b\u5c3e\u3002")),(0,m.kt)("li",{parentName:"ul"},(0,m.kt)("p",{parentName:"li"},"L-\u7ffb\u8bd1\u6a21\u5f0f\uff1a"),(0,m.kt)("p",{parentName:"li"},"\u65e2\u53ef\u4ee5\u5305\u542b\u7efc\u5408\u5c5e\u6027\uff0c\u4e5f\u53ef\u4ee5\u5305\u542b\u7ee7\u627f\u5c5e\u6027\u3002"))),(0,m.kt)("h3",{id:"4-\u5c5e\u6027\u6587\u6cd5"},"4 \u5c5e\u6027\u6587\u6cd5"),(0,m.kt)("p",null,"\u5728\u6587\u6cd5\u57fa\u7840\u4e0a\uff0c",(0,m.kt)("inlineCode",{parentName:"p"},"\u4e3a\u6587\u6cd5\u7b26\u53f7\u5173\u8054\u6709\u7279\u5b9a\u610f\u4e49\u7684\u5c5e\u6027"),"\uff0c\u5e76",(0,m.kt)("inlineCode",{parentName:"p"},"\u4e3a\u4ea7\u751f\u5f0f\u5173\u8054\u76f8\u5e94\u7684\u8bed\u4e49\u52a8\u4f5c"),"\uff0c\u79f0\u4e4b\u4e3a\u5c5e\u6027\u6587\u6cd5\u3002"),(0,m.kt)("ul",null,(0,m.kt)("li",{parentName:"ul"},(0,m.kt)("p",{parentName:"li"},"S-\u5c5e\u6027\u6587\u6cd5\uff1a"),(0,m.kt)("p",{parentName:"li"},"\u53ea\u5305\u542b\u7efc\u5408\u5c5e\u6027\u7684\u5c5e\u6027\u6587\u6cd5\u6210\u4e3aS-\u5c5e\u6027\u6587\u6cd5")),(0,m.kt)("li",{parentName:"ul"},(0,m.kt)("p",{parentName:"li"},"L-\u5c5e\u6027\u6587\u6cd5\uff1a"),(0,m.kt)("p",{parentName:"li"},"\u53ef\u4ee5\u5305\u542b\u7efc\u5408\u5c5e\u6027\uff0c\u4e5f\u53ef\u4ee5\u5305\u542b\u7ee7\u627f\u5c5e\u6027\uff0c\u4f46\u8981\u6c42\u4ea7\u751f\u5f0f\u53f3\u90e8\u7684\u6587\u6cd5\u7b26\u53f7\u7684\u7ee7\u627f\u5c5e\u6027\u7684\u8ba1\u7b97\u53ea\u53d6\u51b3\u4e8e\u8be5\u7b26\u53f7\u5de6\u8fb9\u7b26\u53f7\u7684\u5c5e\u6027"))),(0,m.kt)("h3",{id:"5-\u7b26\u53f7\u8868"},"5 \u7b26\u53f7\u8868"),(0,m.kt)("p",null,"\u7b26\u53f7\u8868\u662f\u7f16\u8bd1\u7a0b\u5e8f\u4e2d\u7528\u4e8e\u6536\u96c6\u6807\u8bc6\u7b26\u7684\u5c5e\u6027\u4fe1\u606f\u7684\u6570\u636e\u7ed3\u6784\u3002"),(0,m.kt)("p",null,"\u5404\u9636\u6bb5\u4f5c\u7528\uff1a"),(0,m.kt)("ul",null,(0,m.kt)("li",{parentName:"ul"},"\u8bed\u4e49\u5206\u6790\u9636\u6bb5\uff1a\u8bed\u4e49\u5408\u6cd5\u6027\u68c0\u67e5\u7684\u4f9d\u636e"),(0,m.kt)("li",{parentName:"ul"},"\u76ee\u6807\u4ee3\u7801\u751f\u6210\u9636\u6bb5\uff1a\u5bf9\u7b26\u53f7\u540d\u8fdb\u884c\u5730\u5740\u5206\u914d\u7684\u4f9d\u636e")))}o.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/en/assets/js/d839ba35.4600c979.js b/en/assets/js/d839ba35.4600c979.js new file mode 100644 index 000000000..663b4665e --- /dev/null +++ b/en/assets/js/d839ba35.4600c979.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunknpy_notebook=self.webpackChunknpy_notebook||[]).push([[198],{3905:(a,e,t)=>{t.d(e,{Zo:()=>i,kt:()=>h});var n=t(7294);function m(a,e,t){return e in a?Object.defineProperty(a,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):a[e]=t,a}function s(a,e){var t=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable}))),t.push.apply(t,n)}return t}function p(a){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?s(Object(t),!0).forEach((function(e){m(a,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(t)):s(Object(t)).forEach((function(e){Object.defineProperty(a,e,Object.getOwnPropertyDescriptor(t,e))}))}return a}function r(a,e){if(null==a)return{};var t,n,m=function(a,e){if(null==a)return{};var t,n,m={},s=Object.keys(a);for(n=0;n<s.length;n++)t=s[n],e.indexOf(t)>=0||(m[t]=a[t]);return m}(a,e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(a);for(n=0;n<s.length;n++)t=s[n],e.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(a,t)&&(m[t]=a[t])}return m}var l=n.createContext({}),N=function(a){var e=n.useContext(l),t=e;return a&&(t="function"==typeof a?a(e):p(p({},e),a)),t},i=function(a){var e=N(a.components);return n.createElement(l.Provider,{value:e},a.children)},o="mdxType",c={inlineCode:"code",wrapper:function(a){var e=a.children;return n.createElement(n.Fragment,{},e)}},k=n.forwardRef((function(a,e){var t=a.components,m=a.mdxType,s=a.originalType,l=a.parentName,i=r(a,["components","mdxType","originalType","parentName"]),o=N(t),k=m,h=o["".concat(l,".").concat(k)]||o[k]||c[k]||s;return t?n.createElement(h,p(p({ref:e},i),{},{components:t})):n.createElement(h,p({ref:e},i))}));function h(a,e){var t=arguments,m=e&&e.mdxType;if("string"==typeof a||m){var s=t.length,p=new Array(s);p[0]=k;var r={};for(var l in e)hasOwnProperty.call(e,l)&&(r[l]=e[l]);r.originalType=a,r[o]="string"==typeof a?a:m,p[1]=r;for(var N=2;N<s;N++)p[N]=t[N];return n.createElement.apply(null,p)}return n.createElement.apply(null,t)}k.displayName="MDXCreateElement"},1031:(a,e,t)=>{t.r(e),t.d(e,{assets:()=>l,contentTitle:()=>p,default:()=>c,frontMatter:()=>s,metadata:()=>r,toc:()=>N});var n=t(7462),m=(t(7294),t(3905));const s={},p="\u7b80\u5386\u9762\u8bd5\u51c6\u5907",r={unversionedId:"Tui-Mian/\u7b80\u5386/\u7b80\u5386\u9762\u8bd5\u51c6\u5907",id:"Tui-Mian/\u7b80\u5386/\u7b80\u5386\u9762\u8bd5\u51c6\u5907",title:"\u7b80\u5386\u9762\u8bd5\u51c6\u5907",description:"\u4e00\u3001U-2-Net",source:"@site/docs/Tui-Mian/\u7b80\u5386/\u7b80\u5386\u9762\u8bd5\u51c6\u5907.md",sourceDirName:"Tui-Mian/\u7b80\u5386",slug:"/Tui-Mian/\u7b80\u5386/\u7b80\u5386\u9762\u8bd5\u51c6\u5907",permalink:"/en/docs/Tui-Mian/\u7b80\u5386/\u7b80\u5386\u9762\u8bd5\u51c6\u5907",draft:!1,tags:[],version:"current",frontMatter:{},sidebar:"tui_mian",previous:{title:"\u5927\u6570\u9664\u6cd5",permalink:"/en/docs/Tui-Mian/\u673a\u8bd5/\u5927\u6570\u9664\u6cd5"},next:{title:"\u6570\u636e\u7ed3\u6784",permalink:"/en/docs/Tui-Mian/\u8ba1\u7b97\u673a\u57fa\u7840\u7efc\u5408/\u6570\u636e\u7ed3\u6784"}},l={},N=[{value:"\u4e00\u3001U-2-Net",id:"\u4e00u-2-net",level:2},{value:"\uff08\u4e00\uff09SOD\u4efb\u52a1",id:"\u4e00sod\u4efb\u52a1",level:3},{value:"\uff08\u4e8c\uff09\u7f51\u7edc\u7ed3\u6784",id:"\u4e8c\u7f51\u7edc\u7ed3\u6784",level:3},{value:"\uff08\u4e09\uff09\u635f\u5931\u51fd\u6570",id:"\u4e09\u635f\u5931\u51fd\u6570",level:3},{value:"\uff08\u56db\uff09\u6df1\u5ea6\u53ef\u5206\u79bb\u5377\u79ef",id:"\u56db\u6df1\u5ea6\u53ef\u5206\u79bb\u5377\u79ef",level:3},{value:"\u4e8c\u3001YOLO",id:"\u4e8cyolo",level:2},{value:"\uff08\u4e00\uff09mAP",id:"\u4e00map",level:3},{value:"\uff08\u4e8c\uff09YOLOv1",id:"\u4e8cyolov1",level:3},{value:"1.\u9884\u6d4b\u9636\u6bb5",id:"1\u9884\u6d4b\u9636\u6bb5",level:4},{value:"2. \u8bad\u7ec3\u8fc7\u7a0b\u7684\u635f\u5931\u51fd\u6570",id:"2-\u8bad\u7ec3\u8fc7\u7a0b\u7684\u635f\u5931\u51fd\u6570",level:4},{value:"\uff08\u4e8c\uff09YOLOv2",id:"\u4e8cyolov2",level:3},{value:"1. BN\u5c42",id:"1-bn\u5c42",level:4},{value:"2. \u9ad8\u5206\u8fa8\u7387\u8bad\u7ec3",id:"2-\u9ad8\u5206\u8fa8\u7387\u8bad\u7ec3",level:4},{value:"3. Anchor",id:"3-anchor",level:4},{value:"\uff08\u4e09\uff09YOLOv5",id:"\u4e09yolov5",level:3},{value:"1. \u7279\u5f81\u878d\u5408",id:"1-\u7279\u5f81\u878d\u5408",level:4},{value:"2. \u524d\u5904\u7406",id:"2-\u524d\u5904\u7406",level:4},{value:"3. \u7279\u5f81\u91d1\u5b57\u5854FCN",id:"3-\u7279\u5f81\u91d1\u5b57\u5854fcn",level:4},{value:"\u4e09\u3001CBAM",id:"\u4e09cbam",level:2},{value:"\uff08\u4e00\uff09\u603b\u4f53\u7ed3\u6784",id:"\u4e00\u603b\u4f53\u7ed3\u6784",level:3},{value:"\uff08\u4e8c\uff09\u901a\u9053\u6ce8\u610f\u529b",id:"\u4e8c\u901a\u9053\u6ce8\u610f\u529b",level:3},{value:"\uff08\u4e09\uff09\u7a7a\u95f4\u6ce8\u610f\u529b",id:"\u4e09\u7a7a\u95f4\u6ce8\u610f\u529b",level:3},{value:"\uff08\u56db\uff09\u5176\u4ed6\u6ce8\u610f\u4e8b\u9879",id:"\u56db\u5176\u4ed6\u6ce8\u610f\u4e8b\u9879",level:3},{value:"\u56db\u3001Focal Loss",id:"\u56dbfocal-loss",level:2},{value:"\u4e94\u3001SENet",id:"\u4e94senet",level:2},{value:"\u516d\u3001\u81ea\u6ce8\u610f\u529b\u673a\u5236",id:"\u516d\u81ea\u6ce8\u610f\u529b\u673a\u5236",level:2},{value:"\u4e03\u3001\u81ea\u6211\u4ecb\u7ecd",id:"\u4e03\u81ea\u6211\u4ecb\u7ecd",level:2},{value:"\uff08\u4e00\uff09\u82f1\u6587\u81ea\u6211\u4ecb\u7ecd",id:"\u4e00\u82f1\u6587\u81ea\u6211\u4ecb\u7ecd",level:3},{value:"\uff08\u4e8c\uff09\u897f\u7535\u5e7f\u7814\u9662\u81ea\u6211\u4ecb\u7ecd",id:"\u4e8c\u897f\u7535\u5e7f\u7814\u9662\u81ea\u6211\u4ecb\u7ecd",level:3},{value:"1. \u82f1\u6587\u81ea\u6211\u4ecb\u7ecd",id:"1-\u82f1\u6587\u81ea\u6211\u4ecb\u7ecd",level:4},{value:"2. \u4e2d\u6587\u81ea\u6211\u4ecb\u7ecd",id:"2-\u4e2d\u6587\u81ea\u6211\u4ecb\u7ecd",level:4},{value:"\uff08\u4e09\uff09\u7535\u5b50\u79d1\u6280\u5927\u5b66\u81ea\u6211\u4ecb\u7ecd",id:"\u4e09\u7535\u5b50\u79d1\u6280\u5927\u5b66\u81ea\u6211\u4ecb\u7ecd",level:3},{value:"1. \u82f1\u6587\u81ea\u6211\u4ecb\u7ecd",id:"1-\u82f1\u6587\u81ea\u6211\u4ecb\u7ecd-1",level:4},{value:"2. \u4e2d\u6587\u81ea\u6211\u4ecb\u7ecd",id:"2-\u4e2d\u6587\u81ea\u6211\u4ecb\u7ecd-1",level:4}],i={toc:N},o="wrapper";function c(a){let{components:e,...t}=a;return(0,m.kt)(o,(0,n.Z)({},i,t,{components:e,mdxType:"MDXLayout"}),(0,m.kt)("h1",{id:"\u7b80\u5386\u9762\u8bd5\u51c6\u5907"},"\u7b80\u5386\u9762\u8bd5\u51c6\u5907"),(0,m.kt)("h2",{id:"\u4e00u-2-net"},"\u4e00\u3001U-2-Net"),(0,m.kt)("h3",{id:"\u4e00sod\u4efb\u52a1"},"\uff08\u4e00\uff09SOD\u4efb\u52a1"),(0,m.kt)("p",null,"\u663e\u8457\u6027\u76ee\u6807\u68c0\u6d4bSalient Object Detection\uff0c\u76f8\u5f53\u4e8e\u8bed\u4e49\u5206\u5272\u4e2d\u7684\u4e8c\u5206\u7c7b\u4efb\u52a1\uff0c\u53ea\u6709\u524d\u666f\u548c\u80cc\u666f"),(0,m.kt)("h3",{id:"\u4e8c\u7f51\u7edc\u7ed3\u6784"},"\uff08\u4e8c\uff09\u7f51\u7edc\u7ed3\u6784"),(0,m.kt)("p",null,"\u4e0b\u56fe\u4e3aU-2-Net\u7684\u6574\u4f53\u7ed3\u6784"),(0,m.kt)("p",null,(0,m.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora/imagesimage-20230618103036971.png",alt:"image-20230618103036971"})),(0,m.kt)("admonition",{type:"tip"},(0,m.kt)("p",{parentName:"admonition"},"residual ","[r\u026a\u02c8z\u026adju\u0259l]")),(0,m.kt)("p",null,"\u5728encoder\u9636\u6bb5\uff0c\u6bcf\u4e2ablock\u4e4b\u540e\u4f7f\u7528maxpooling\u4e0b\u91c7\u6837\u4e24\u500d\n\u5728decoder\u9636\u6bb5\uff0c\u6bcf\u4e2ablock\u4e4b\u540e\u4f7f\u7528\u53cc\u7ebf\u6027\u63d2\u503c\u4e0a\u91c7\u6837\u4e24\u500d"),(0,m.kt)("p",null,"\u4e0b\u56fe\u4e3aResidual U-block\u7684\u7ed3\u6784"),(0,m.kt)("p",null,(0,m.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora/imagesimage-20230618103937905.png",alt:"image-20230618103937905"})),(0,m.kt)("admonition",{type:"tip"},(0,m.kt)("p",{parentName:"admonition"},"\u5377\u79ef\u662f\u5982\u4f55\u6539\u53d8\u8f93\u51fa\u7684\u901a\u9053\u6570\u7684\uff1f\n",(0,m.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora/imagesv2-ec760bd24d7c00de5eef31cde2a4b33c_720w.webp",alt:"img"})),(0,m.kt)("p",{parentName:"admonition"},"\u5377\u79ef\u6838\u7684\u901a\u9053\u6570\u7b49\u4e8e\u8f93\u5165\u7684\u901a\u9053\u6570\uff0c\u5377\u79ef\u6838\u7684\u4e2a\u6570\u7b49\u4e8e\u8f93\u51fa\u7684\u901a\u9053\u6570"),(0,m.kt)("p",{parentName:"admonition"},(0,m.kt)("a",{parentName:"p",href:"https://www.zhihu.com/question/474159106/answer/2014764112"},"\u56fe\u7247\u6765\u6e90\u77e5\u4e4e"))),(0,m.kt)("p",null,"\u5728\u7279\u5f81\u878d\u5408\u9636\u6bb5\uff0c\u6bcf\u4e00\u5c42\u7684encoder-decoder\u8f93\u51fa\uff0c\u4f7f\u75283x3\u5377\u79ef\u4ee5\u53ca\u53cc\u7ebf\u6027\u63d2\u503c\u4e0a\u91c7\u6837\u5230\u539f\u59cb\u5206\u8fa8\u7387\u5f97\u5230\u8be5\u5c42\u7684\u7279\u5f81\u56fe\uff0c\u4e14\u5377\u79ef\u6838\u7684\u4e2a\u6570\u4e3a1\uff0c\u8f93\u51fa\u7684feature map\u901a\u9053\u6570\u4e5f\u4e3a1\u3002\u5c06\u6bcf\u4e00\u5c42\u7684feature map\u8fdb\u884cconcat\u62fc\u63a5\uff0c\u5f97\u52306\u901a\u9053\u7684\u878d\u5408feature map\uff0c\u6700\u540e\u4f7f\u75281x1\u5377\u79ef\u4ee5\u53casigmoid\u6fc0\u6d3b\u51fd\u6570\u5f97\u5230\u6700\u7ec8\u7684\u878d\u5408\u7279\u5f81\u56fe\u8f93\u51fa"),(0,m.kt)("h3",{id:"\u4e09\u635f\u5931\u51fd\u6570"},"\uff08\u4e09\uff09\u635f\u5931\u51fd\u6570"),(0,m.kt)("p",null,"\u635f\u5931\u51fd\u6570\u662f7\u4e2a\u635f\u5931\u9879\u7684\u52a0\u6743\u6c42\u548c\n\u5171\u67096\u5c42encoder-decoder\u7ed3\u6784\uff0c\u5c06\u6bcf\u4e00\u5c42\u5bf9\u5e94\u7684feature map\u4e0eground truth\u505aBCE Loss\u5f97\u52306\u4e2a\u635f\u5931\u9879\n\u7b2c7\u4e2a\u635f\u5931\u9879\u662f\u6700\u7ec8\u878d\u5408\u5f97\u5230\u7684feature map\u4e0eground truth\u7684BCE Loss\n\u5728\u8bba\u6587\u4e2d\uff0c\u6bcf\u4e2a\u635f\u5931\u9879\u7684\u6743\u91cd\u90fd\u4e3a1"),(0,m.kt)("p",null,"canny\u8fb9\u7f18\u68c0\u6d4b\uff1a"),(0,m.kt)("ol",null,(0,m.kt)("li",{parentName:"ol"},"\u4f7f\u7528\u9ad8\u65af\u6ee4\u6ce2\u8fdb\u884c\u5e73\u6ed1"),(0,m.kt)("li",{parentName:"ol"},"\u8ba1\u7b97\u50cf\u7d20\u68af\u5ea6"),(0,m.kt)("li",{parentName:"ol"},"\u975e\u6781\u5927\u503c\u6291\u5236"),(0,m.kt)("li",{parentName:"ol"},"\u53cc\u9608\u503c\u68c0\u6d4b\u5f3a\u8fb9\u7f18\u3001\u5f31\u8fb9\u7f18"),(0,m.kt)("li",{parentName:"ol"},"\u8fb9\u7f18\u8fde\u63a5")),(0,m.kt)("h3",{id:"\u56db\u6df1\u5ea6\u53ef\u5206\u79bb\u5377\u79ef"},"\uff08\u56db\uff09\u6df1\u5ea6\u53ef\u5206\u79bb\u5377\u79ef"),(0,m.kt)("p",null,"\u6df1\u5ea6\u53ef\u5206\u79bb\u5377\u79ef\u7684\u4f18\u70b9\u662f\u53ef\u4ee5\u5728\u5927\u81f4\u4fdd\u6301\u5377\u79ef\u6548\u679c\u7684\u60c5\u51b5\u4e0b\u51cf\u5c11\u53c2\u6570\u91cf"),(0,m.kt)("p",null,"\u5728\u5b9e\u73b0\u539f\u7406\u4e0a\u53ef\u5206\u4e3a\u4e24\u4e2a\u6b65\u9aa4\uff1a\u6df1\u5ea6\u5377\u79ef\uff08depth wise\uff09\u4ee5\u53ca\u9010\u70b9\uff08point wise\uff09\u5377\u79ef"),(0,m.kt)("p",null,"\u6df1\u5ea6\u5377\u79ef\u662f\u4e00\u79cd\u5728\u6bcf\u4e2a\u8f93\u5165\u901a\u9053\u4e0a\u5206\u522b\u8fdb\u884c\u5377\u79ef\u64cd\u4f5c\u7684\u5377\u79ef\u65b9\u6cd5\uff0c\u6bcf\u4e2a\u8f93\u5165\u901a\u9053\u53ea\u4e0e\u5bf9\u5e94\u7684\u5377\u79ef\u6838\u8fdb\u884c\u5377\u79ef\u3002"),(0,m.kt)("p",null,"\u9010\u70b9\u5377\u79ef\u901a\u8fc7\u4f7f\u7528",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mn",{parentName:"mrow"},"1"),(0,m.kt)("mo",{parentName:"mrow"},"\xd7"),(0,m.kt)("mn",{parentName:"mrow"},"1")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"1 \\times 1")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.7278em",verticalAlign:"-0.0833em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"1"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"\xd7"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6444em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"1"))))),"\u5377\u79ef\u5bf9\u6df1\u5ea6\u5377\u79ef\u7684\u7ed3\u679c\u518d\u6b21\u5377\u79ef"),(0,m.kt)("h2",{id:"\u4e8cyolo"},"\u4e8c\u3001YOLO"),(0,m.kt)("h3",{id:"\u4e00map"},"\uff08\u4e00\uff09mAP"),(0,m.kt)("p",null,"PR\u66f2\u7ebf\u6240\u56f4\u6210\u7684\u9762\u79ef\u5373\u4f7f\u8be5\u7c7b\u7684AP\u503c"),(0,m.kt)("p",null,(0,m.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora/imagesimage-20230618120734230.png",alt:"image-20230618120734230"})),(0,m.kt)("h3",{id:"\u4e8cyolov1"},"\uff08\u4e8c\uff09YOLOv1"),(0,m.kt)("admonition",{type:"tip"},(0,m.kt)("p",{parentName:"admonition"},"\u53c2\u8003\u8d44\u6599\uff1a",(0,m.kt)("a",{parentName:"p",href:"https://www.bilibili.com/video/BV15w411Z7LG?p=4&vd_source=24d8fcf68bc0e2b0003defe0995cf533"},"\u3010\u7cbe\u8bfbAI\u8bba\u6587\u3011YOLO V1\u76ee\u6807\u68c0\u6d4b\uff0c\u770b\u6211\u5c31\u591f\u4e86"))),(0,m.kt)("h4",{id:"1\u9884\u6d4b\u9636\u6bb5"},"1.\u9884\u6d4b\u9636\u6bb5"),(0,m.kt)("p",null,"\u4e0b\u56fe\u4e3aYOLOv1\u7684\u7b97\u6cd5\u6846\u67b6"),(0,m.kt)("p",null,(0,m.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora/imagesimage-20230618122157583.png",alt:"image-20230618122157583"})),(0,m.kt)("p",null,"\u4e0b\u56fe\u4e3aYOLOv1\u7684\u7f51\u7edc\u7ed3\u6784"),(0,m.kt)("p",null,(0,m.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora/imagesimage-20230618122438429.png",alt:"image-20230618122438429"})),(0,m.kt)("p",null,"\u8f93\u5165","[448, 448, 3]","\u56fe\u50cf\uff0c\u8f93\u51fa","[7, 7, 30]","\u7684tensor\uff08\u5305\u542b\u6240\u6709\u9884\u6d4b\u6846\u7684\u5750\u6807\u3001\u7f6e\u4fe1\u5ea6\u548c\u7c7b\u522b\u7ed3\u679c\uff09\uff0c\u901a\u8fc7\u89e3\u6790\u8f93\u51fa\u7684tensor\u5f97\u5230\u9884\u6d4b\u7ed3\u679c"),(0,m.kt)("p",null,(0,m.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora/imagesimage-20230618122634451.png",alt:"image-20230618122634451"})),(0,m.kt)("p",null,"\u9996\u5148\u5c06\u8f93\u5165\u56fe\u7247\u5212\u5206\u4e3a",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"S"),(0,m.kt)("mo",{parentName:"mrow"},"\xd7"),(0,m.kt)("mi",{parentName:"mrow"},"S")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"S \\times S")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.7667em",verticalAlign:"-0.0833em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05764em"}},"S"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"\xd7"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6833em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05764em"}},"S"))))),"\u4e2agrid cell\u3002\u5728YOLOv1\u4e2d",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"S"),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("mn",{parentName:"mrow"},"7")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"S=7")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6833em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05764em"}},"S"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"="),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6444em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"7")))))),(0,m.kt)("p",null,"\u6bcf\u4e2agrid cell\u9884\u6d4b\u51fa",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"B")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"B")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6833em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05017em"}},"B"))))),"\u4e2abounding box\u9884\u6d4b\u6846\uff08bbox\uff09\uff0c\u6bcf\u4e2abbox\u7684\u4e2d\u5fc3\u70b9\u90fd\u843d\u5728\u8be5grid cell\u4e2d\u3002\u5728YOLOv1\u4e2d",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mi",{parentName:"mrow"},"B"),(0,m.kt)("mo",{parentName:"mrow"},"="),(0,m.kt)("mn",{parentName:"mrow"},"2")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"B=2")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6833em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.05017em"}},"B"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,m.kt)("span",{parentName:"span",className:"mrel"},"="),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6444em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"2")))))),(0,m.kt)("p",null,"\u6bcf\u4e2abbox\u5305\u542b(x, y, h, w, c)\u4e94\u79cd\u4fe1\u606f\uff0c\u5176\u4e2dx, y\u4e3abbox\u5de6\u4e0a\u89d2\u5750\u6807\uff0ch, w\u4e3abbox\u7684\u5bbd\u9ad8\uff0cc\u4e3a\u8be5bbox\u662f\u5426\u5b58\u5728object\u7684\u6982\u7387"),(0,m.kt)("p",null,"\u540c\u65f6\u6bcf\u4e2agrid cell\u9884\u6d4b\u51fa\u4e00\u7ec4\u4e0e\u6570\u636e\u96c6\u6709\u5173\u7684\u6761\u4ef6\u7c7b\u522b\u6982\u7387\u3002\u5728YOLOv1\u8bba\u6587\u4f7f\u7528\u7684\u6570\u636e\u96c6Pascal VOC\u4e2d\uff0c\u7c7b\u522b\u79cd\u7c7b\u4e3a20\u7c7b\uff0c\u56e0\u6b64\u5728\u9884\u6d4b\u9636\u6bb5\u8f93\u51fa\u7684","[7, 7, 30]","\u7684tensor\u542b\u4e49\u5982\u4e0b\u56fe\u6240\u793a"),(0,m.kt)("p",null,"\u6bcf\u4e2agrid cell\u9009\u51fa\u6761\u4ef6\u7c7b\u522b\u6982\u7387\u6700\u5927\u7684\u7c7b\u522b\uff0c\u56e0\u6b64\u6bcf\u4e2agrid cell\u53ea\u80fd\u68c0\u6d4b\u4e00\u4e2a\u7269\u4f53"),(0,m.kt)("admonition",{type:"tip"},(0,m.kt)("p",{parentName:"admonition"},"\u8fd9\u4e5f\u662fYOLOv1\u5c0f\u76ee\u6807\u548c\u5bc6\u96c6\u76ee\u6807\u8bc6\u522b\u80fd\u529b\u5dee\u7684\u539f\u56e0")),(0,m.kt)("p",null,(0,m.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/windows_typora/image-20230708094841128.png",alt:"image-20230708094841128"})),(0,m.kt)("p",null,"\u6bcf\u4e2abbox\u7684\u7f6e\u4fe1\u5ea6\u4e0e\u5176\u7236grid cell\u7684\u7c7b\u522b\u6982\u7387\u76f8\u4e58\u5f97\u5230\u5168\u6982\u7387\uff0c\u5982\u4e0b\u56fe\u6240\u793a"),(0,m.kt)("p",null,(0,m.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/windows_typora/image-20230708100637488.png",alt:"image-20230708100637488"})),(0,m.kt)("p",null,"\u8fdb\u884cNMS\u540e\u5904\u7406\uff1a"),(0,m.kt)("ol",null,(0,m.kt)("li",{parentName:"ol"},"\u5bf9\u67d0\u4e00\u7279\u5b9a\u7c7b\u522b\uff0c\u9996\u5148\u6839\u636e\u5168\u6982\u7387\u7f6e\u4fe1\u5ea6\u6392\u5e8f"),(0,m.kt)("li",{parentName:"ol"},"\u5c06\u6b64\u65f6\u6700\u5927\u7f6e\u4fe1\u5ea6\u7684bbox\u4e0e\u5176\u4ed6\u6240\u6709\u7f6e\u4fe1\u5ea6\u66f4\u5c0f\u7684bbox\u505aIoU\u5224\u65ad\uff0c\u82e5IoU\u5927\u4e8e\u8bbe\u7f6e\u7684\u9608\u503c\uff0c\u5219\u62b9\u9664\u7f6e\u4fe1\u5ea6\u5c0f\u7684bbox"),(0,m.kt)("li",{parentName:"ol"},"\u5c06\u5269\u4f59\u7684\u6b21\u5927\u7684\u7f6e\u4fe1\u5ea6\u91cd\u590d\u6b65\u9aa42\uff0c\u62b9\u9664\u6240\u6709\u7f6e\u4fe1\u5ea6\u66f4\u5c0f\u7684\u5176IoU\u8d85\u8fc7\u9608\u503c\u7684bbox")),(0,m.kt)("admonition",{type:"tip"},(0,m.kt)("p",{parentName:"admonition"},"\u975e\u6781\u5927\u503c\u6291\u5236\u53ea\u5728\u9884\u6d4b\u9636\u6bb5\u8fdb\u884c"),(0,m.kt)("p",{parentName:"admonition"},"\u5728\u8bad\u7ec3\u9636\u6bb5\uff0c\u6240\u6709bbox\u90fd\u4f1a\u5728Loss Function\u4e2d\u8d77\u5230\u66f4\u65b0\u7684\u4f5c\u7528\uff0c\u56e0\u6b64\u4e0d\u8fdb\u884cNMS")),(0,m.kt)("h4",{id:"2-\u8bad\u7ec3\u8fc7\u7a0b\u7684\u635f\u5931\u51fd\u6570"},"2. \u8bad\u7ec3\u8fc7\u7a0b\u7684\u635f\u5931\u51fd\u6570"),(0,m.kt)("p",null,(0,m.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora/imagesimage-20230618135151404.png",alt:"image-20230618135151404"})),(0,m.kt)("h3",{id:"\u4e8cyolov2"},"\uff08\u4e8c\uff09YOLOv2"),(0,m.kt)("h4",{id:"1-bn\u5c42"},"1. BN\u5c42"),(0,m.kt)("p",null,(0,m.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/windows_typora/image-20230711101245141.png",alt:"image-20230711101245141"})),(0,m.kt)("h4",{id:"2-\u9ad8\u5206\u8fa8\u7387\u8bad\u7ec3"},"2. \u9ad8\u5206\u8fa8\u7387\u8bad\u7ec3"),(0,m.kt)("h4",{id:"3-anchor"},"3. Anchor"),(0,m.kt)("p",null,"YOLOv2\u5f15\u5165\u4e86anchor\u673a\u5236\u4ee3\u66ffbbox\uff0c\u5c06\u56fe\u50cf\u5212\u5206\u4e3a",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mn",{parentName:"mrow"},"13"),(0,m.kt)("mo",{parentName:"mrow"},"\xd7"),(0,m.kt)("mn",{parentName:"mrow"},"13")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"13 \\times 13")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.7278em",verticalAlign:"-0.0833em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"13"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"\xd7"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6444em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"13"))))),"\u4e2agrid cell\uff0c\u6bcf\u4e2agrid cell\u751f\u62105\u4e2aanchor"),(0,m.kt)("p",null,"anchor\u662f\u901a\u8fc7k-means\u805a\u7c7b\u5728\u6570\u636e\u96c6\u4e0a\u751f\u6210\u7684\u4e0d\u540c\u5c3a\u5bf8\u7684\u5148\u9a8c\u6846\n\u5bf9\u6570\u636e\u96c6\u8fdb\u884canchor\u5bbd\u9ad8\u6bd4\u7684\u805a\u7c7b\uff0c\u805a\u7c7b\u6570\u8d8a\u5927\uff0c\u8986\u76d6\u7684IoU\u8d8a\u5927\uff0c\u4f46\u540c\u65f6\u6a21\u578b\u4e5f\u66f4\u590d\u6742"),(0,m.kt)("h3",{id:"\u4e09yolov5"},"\uff08\u4e09\uff09YOLOv5"),(0,m.kt)("h4",{id:"1-\u7279\u5f81\u878d\u5408"},"1. \u7279\u5f81\u878d\u5408"),(0,m.kt)("p",null,"YOLOv5\u4f7f\u7528CSPNet\u5b9e\u73b0\u7279\u5f81\u878d\u5408\uff0cCSP\u6a21\u5757\u7531\u4e3b\u5e72\u548c\u5206\u652f\u6784\u6210\uff0c\u4e3b\u5e72\u63d0\u53d6\u4f4e\u7ef4\u7279\u5f81\uff0c\u5206\u652f\u63d0\u53d6\u9ad8\u7ef4\u7279\u5f81"),(0,m.kt)("p",null,"\u4e3b\u5e72\u901a\u8fc7\u5377\u79ef\u548c\u6c60\u5316\u63d0\u53d6\u7279\u5f81\uff0c\u5f62\u6210\u4e0d\u540c\u5c3a\u5bf8\u7684\u7279\u5f81\u56fe"),(0,m.kt)("p",null,"\u5206\u652f\u5c06\u4e3b\u5e72\u8f93\u51fa\u7684\u7279\u5f81\u56fe\u4f5c\u4e3a\u8f93\u5165\uff0c\u9010\u6b65\u5377\u79ef\u548c\u4e0a\u91c7\u6837\u63d0\u53d6\u9ad8\u7ea7\u522b\u8bed\u4e49\u7279\u5f81"),(0,m.kt)("p",null,"\u4e3b\u5e72\u7279\u5f81\u56fe\u901a\u8fc7\u5377\u79ef\u5bf9\u901a\u9053\u6570\u964d\u7ef4\u4e4b\u540e\u4e0e\u5206\u652f\u5728\u901a\u9053\u7ef4\u5ea6\u4e0aconcat"),(0,m.kt)("admonition",{type:"tip"},(0,m.kt)("p",{parentName:"admonition"},"\u5728\u7279\u5f81\u63d0\u53d6\u4ee5\u53ca\u878d\u5408\u9636\u6bb5\u53ef\u4ee5\u52a0\u5165Canny\u8fb9\u7f18\u68c0\u6d4b\u5f97\u5230\u7684\u7279\u5f81\u56fe\u8fdb\u884c\u7279\u5f81\u878d\u5408")),(0,m.kt)("h4",{id:"2-\u524d\u5904\u7406"},"2. \u524d\u5904\u7406"),(0,m.kt)("p",null,"\u5bf9\u586b\u5145\u9ed1\u8272\u50cf\u7d20\u8fdb\u884c\u4e86\u6539\u5584\uff0c\u4ee5\u586b\u5145\u66f4\u5c11\u7684\u9ed1\u50cf\u7d20\uff0c\u63d0\u9ad8\u4e86\u7cbe\u5ea6"),(0,m.kt)("h4",{id:"3-\u7279\u5f81\u91d1\u5b57\u5854fcn"},"3. \u7279\u5f81\u91d1\u5b57\u5854FCN"),(0,m.kt)("h2",{id:"\u4e09cbam"},"\u4e09\u3001CBAM"),(0,m.kt)("admonition",{type:"tip"},(0,m.kt)("p",{parentName:"admonition"},"\u6709\u5173CSP\u7279\u5f81\u878d\u5408\u53ef\u4ee5\u53c2\u8003\uff1a",(0,m.kt)("a",{parentName:"p",href:"https://blog.csdn.net/weixin_55073640/article/details/122614176"},"https://blog.csdn.net/weixin_55073640/article/details/122614176"))),(0,m.kt)("p",null,"CBAM\u662f\u901a\u9053+\u7a7a\u95f4\u6ce8\u610f\u529b\u673a\u5236\uff08SENet\u662f\u901a\u9053\u6ce8\u610f\u529b\u673a\u5236\uff09"),(0,m.kt)("h3",{id:"\u4e00\u603b\u4f53\u7ed3\u6784"},"\uff08\u4e00\uff09\u603b\u4f53\u7ed3\u6784"),(0,m.kt)("p",null,(0,m.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/windows_typora/image-20230710234929290.png",alt:"image-20230710234929290"})),(0,m.kt)("p",null,"\u901a\u9053\u6ce8\u610f\u529b\uff1a\u539f\u59cb\u7279\u5f81\u56fe",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"["),(0,m.kt)("mi",{parentName:"mrow"},"b"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"c"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"h"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"w"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"]")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"[b, c, h, w]")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mopen"},"["),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"b"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"c"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"h"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02691em"}},"w"),(0,m.kt)("span",{parentName:"span",className:"mclose"},"]"))))),"\u7ecf\u8fc7\u901a\u9053\u6ce8\u610f\u529b\u673a\u5236\u7b97\u6cd5\u5f97\u5230",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"["),(0,m.kt)("mi",{parentName:"mrow"},"b"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"c"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mn",{parentName:"mrow"},"1"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mn",{parentName:"mrow"},"1"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"]")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"[b, c, 1, 1]")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mopen"},"["),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"b"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"c"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"1"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"1"),(0,m.kt)("span",{parentName:"span",className:"mclose"},"]"))))),"\u7684tensor\uff0c\u4ee3\u8868\u4e0d\u540c\u901a\u9053\u4e4b\u95f4\u7684\u91cd\u8981\u7a0b\u5ea6\uff0c\u5c06\u5176\u4e0e\u539f\u59cb\u7279\u5f81\u56fe\u76f8\u4e58"),(0,m.kt)("p",null,"\u7a7a\u95f4\u6ce8\u610f\u529b\uff1a\u7ecf\u8fc7\u901a\u9053\u6ce8\u610f\u529b\u7684\u7279\u5f81\u56fe",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"["),(0,m.kt)("mi",{parentName:"mrow"},"b"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"c"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"h"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"w"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"]")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"[b, c, h, w]")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mopen"},"["),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"b"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"c"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"h"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02691em"}},"w"),(0,m.kt)("span",{parentName:"span",className:"mclose"},"]"))))),"\u7ecf\u8fc7\u7a7a\u95f4\u6ce8\u610f\u529b\u673a\u5236\u7b97\u6cd5\u5f97\u5230",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"["),(0,m.kt)("mi",{parentName:"mrow"},"b"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mn",{parentName:"mrow"},"1"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"h"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"w"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"]")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"[b, 1, h, w]")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mopen"},"["),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"b"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"1"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"h"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02691em"}},"w"),(0,m.kt)("span",{parentName:"span",className:"mclose"},"]"))))),"\u7684tensor\uff0c\u4ee3\u8868\u5bbd\u9ad8\u7ef4\u5ea6\u7684\u50cf\u7d20\u4e4b\u95f4\u7684\u91cd\u8981\u7a0b\u5ea6\uff0c\u5c06\u5176\u4e0e\u539f\u59cb\u7279\u5f81\u56fe\u76f8\u4e58"),(0,m.kt)("h3",{id:"\u4e8c\u901a\u9053\u6ce8\u610f\u529b"},"\uff08\u4e8c\uff09\u901a\u9053\u6ce8\u610f\u529b"),(0,m.kt)("p",null,(0,m.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/windows_typora/image-20230710235658595.png",alt:"image-20230710235658595"})),(0,m.kt)("p",null,"\u539f\u59cb\u7279\u5f81\u56fe",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"["),(0,m.kt)("mi",{parentName:"mrow"},"b"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"c"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"h"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"w"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"]")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"[b, c, h, w]")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mopen"},"["),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"b"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"c"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"h"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02691em"}},"w"),(0,m.kt)("span",{parentName:"span",className:"mclose"},"]"))))),"\u5206\u522b\u7ecf\u8fc7\u6700\u5927\u6c60\u5316\u548c\u5e73\u5747\u6c60\u5316\u6765\u538b\u7f29\u7a7a\u95f4\u7ef4\u5ea6\u3001\u5b66\u4e60\u901a\u9053\u4e4b\u95f4\u7684\u7279\u5f81\uff0c\u5f97\u5230",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"["),(0,m.kt)("mi",{parentName:"mrow"},"b"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"c"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mn",{parentName:"mrow"},"1"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mn",{parentName:"mrow"},"1"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"]")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"[b, c, 1, 1]")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mopen"},"["),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"b"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"c"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"1"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"1"),(0,m.kt)("span",{parentName:"span",className:"mclose"},"]"))))),"\u7684tensor\uff0c\u518d\u9001\u5165\u5171\u4eab\u7684\u591a\u5c42\u611f\u77e5\u673a\u7f51\u7edc\u8fdb\u884c\u964d\u7ef4\u518d\u5347\u7ef4\uff0c\u6700\u540e\u5c06\u4e8c\u8005\u76f8\u52a0\u518d\u7ecf\u8fc7sigmoid\u51fd\u6570\u4ea7\u751f\u6700\u7ec8\u7684\u901a\u9053\u6ce8\u610f\u529b\u7279\u5f81\u56fe"),(0,m.kt)("h3",{id:"\u4e09\u7a7a\u95f4\u6ce8\u610f\u529b"},"\uff08\u4e09\uff09\u7a7a\u95f4\u6ce8\u610f\u529b"),(0,m.kt)("p",null,(0,m.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/windows_typora/image-20230710235603737.png",alt:"image-20230710235603737"})),(0,m.kt)("p",null,"\u539f\u59cb\u7279\u5f81\u56fe",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"["),(0,m.kt)("mi",{parentName:"mrow"},"b"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"c"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"h"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"w"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"]")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"[b, c, h, w]")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mopen"},"["),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"b"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"c"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"h"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02691em"}},"w"),(0,m.kt)("span",{parentName:"span",className:"mclose"},"]"))))),"\u5206\u522b\u7ecf\u8fc7\u6700\u5927\u6c60\u5316\u548c\u5e73\u5747\u6c60\u5316\uff08\u901a\u8fc7torch.max\u548ctorch.mean\u51fd\u6570\u5b9e\u73b0\uff09\u5f97\u5230",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"["),(0,m.kt)("mi",{parentName:"mrow"},"b"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mn",{parentName:"mrow"},"1"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"h"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"w"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"]")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"[b, 1, h, w]")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mopen"},"["),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"b"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"1"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"h"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02691em"}},"w"),(0,m.kt)("span",{parentName:"span",className:"mclose"},"]"))))),"\u7684tensor\uff0c\u518d\u5c06\u4e8c\u8005concat\u540e\u901a\u8fc7",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mn",{parentName:"mrow"},"7"),(0,m.kt)("mo",{parentName:"mrow"},"\xd7"),(0,m.kt)("mn",{parentName:"mrow"},"7")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"7 \\times 7")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.7278em",verticalAlign:"-0.0833em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"7"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"\xd7"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6444em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"7"))))),"\u5377\u79ef\u5b66\u4e60\u7279\u5f81\u5e76\u964d\u7ef4\uff0c\u6700\u540e\u9001\u5165sigmoid\u51fd\u6570\u5f97\u5230\u6700\u7ec8\u7684\u7a7a\u95f4\u6ce8\u610f\u529b\u7279\u5f81\u56fe"),(0,m.kt)("h3",{id:"\u56db\u5176\u4ed6\u6ce8\u610f\u4e8b\u9879"},"\uff08\u56db\uff09\u5176\u4ed6\u6ce8\u610f\u4e8b\u9879"),(0,m.kt)("ol",null,(0,m.kt)("li",{parentName:"ol"},"\u4f5c\u8005\u5206\u522b\u5bf9\u901a\u9053\u6ce8\u610f\u529b\u4ee5\u53ca\u7a7a\u95f4\u6ce8\u610f\u529b\u4f7f\u7528\u6700\u5927\u6c60\u5316\u8fd8\u662f\u5e73\u5747\u6c60\u5316\u505a\u4e86\u6d88\u878d\u5b9e\u9a8c\uff0c\u7ed3\u679c\u53cd\u6620\u4e8c\u8005\u90fd\u7528\u6700\u5927\u6c60\u5316\u4ee5\u53ca\u5e73\u5747\u6c60\u5316\u518d\u76f8\u52a0\u6548\u679c\u6700\u597d\uff08\u4e14\u5bf9\u4e8e",(0,m.kt)("span",{parentName:"li",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mn",{parentName:"mrow"},"7"),(0,m.kt)("mo",{parentName:"mrow"},"\xd7"),(0,m.kt)("mn",{parentName:"mrow"},"7")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"7 \\times 7")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.7278em",verticalAlign:"-0.0833em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"7"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"\xd7"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6444em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"7"))))),"\u5377\u79ef\u4e0e",(0,m.kt)("span",{parentName:"li",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mn",{parentName:"mrow"},"3"),(0,m.kt)("mo",{parentName:"mrow"},"\xd7"),(0,m.kt)("mn",{parentName:"mrow"},"3")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"3 \\times 3")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.7278em",verticalAlign:"-0.0833em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"3"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"\xd7"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6444em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"3"))))),"\u5377\u79ef\u7684\u6d88\u878d\u5b9e\u9a8c\u53d1\u73b0\uff0c",(0,m.kt)("span",{parentName:"li",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mn",{parentName:"mrow"},"7"),(0,m.kt)("mo",{parentName:"mrow"},"\xd7"),(0,m.kt)("mn",{parentName:"mrow"},"7")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"7 \\times 7")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.7278em",verticalAlign:"-0.0833em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"7"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,m.kt)("span",{parentName:"span",className:"mbin"},"\xd7"),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}})),(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6444em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"7"))))),"\u5377\u79ef\u6548\u679c\u66f4\u597d\uff09"),(0,m.kt)("li",{parentName:"ol"},"\u4f5c\u8005\u5bf9\u5148\u901a\u9053\u6ce8\u610f\u529b\u8fd8\u662f\u5148\u7a7a\u95f4\u6ce8\u610f\u529b\u505a\u4e86\u6d88\u878d\u5b9e\u9a8c\uff0c\u7ed3\u679c\u53d1\u73b0\u5148\u901a\u9053\u518d\u7a7a\u95f4\u6548\u679c\u66f4\u597d")),(0,m.kt)("h2",{id:"\u56dbfocal-loss"},"\u56db\u3001Focal Loss"),(0,m.kt)("p",null,"Focal Loss\u901a\u8fc7\u5f15\u5165\u4fee\u6b63\u9879\u548c\u6837\u672c\u5173\u6ce8\u5ea6\u8d85\u53c2\u6570\uff0c\u589e\u52a0\u56f0\u96be\u6837\u672c\u7684\u5173\u6ce8\u5ea6\uff0c\u6765\u89e3\u51b3\u7c7b\u522b\u4e0d\u5747\u8861\u95ee\u9898\u3002"),(0,m.kt)("p",null,(0,m.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/typora/imagesimage-20230618135151404.png",alt:"image-20230618135151404"})),(0,m.kt)("p",null,"YOLO\u635f\u5931\u51fd\u6570\u5206\u4e3a\u5206\u7c7b\u635f\u5931\u4ee5\u53ca\u56de\u5f52\u635f\u5931\uff0c\u53ef\u4ee5\u5728\u5206\u7c7b\u635f\u5931\u4e2d\u5f15\u5165Focal Loss\u4ee3\u66ff\u539f\u6765\u7684\u4ea4\u53c9\u71b5\u635f\u5931"),(0,m.kt)("h2",{id:"\u4e94senet"},"\u4e94\u3001SENet"),(0,m.kt)("p",null,(0,m.kt)("img",{parentName:"p",src:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/windows_typora/image-20230711091505462.png",alt:"image-20230711091505462"})),(0,m.kt)("p",null,"Squeeze and Excitation"),(0,m.kt)("p",null,"Squeeze\u6324\u538b\u64cd\u4f5c\u5c31\u662f\u5c06",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"["),(0,m.kt)("mi",{parentName:"mrow"},"b"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"c"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"h"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"w"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"]")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"[b, c, h, w]")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mopen"},"["),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"b"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"c"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"h"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02691em"}},"w"),(0,m.kt)("span",{parentName:"span",className:"mclose"},"]"))))),"\u7684\u7279\u5f81\u56fe\u901a\u8fc7\u6c60\u5316\u6324\u538b\u5bbd\u9ad8\u7ef4\u5ea6\uff0c\u5f97\u5230",(0,m.kt)("span",{parentName:"p",className:"math math-inline"},(0,m.kt)("span",{parentName:"span",className:"katex"},(0,m.kt)("span",{parentName:"span",className:"katex-mathml"},(0,m.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,m.kt)("semantics",{parentName:"math"},(0,m.kt)("mrow",{parentName:"semantics"},(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"["),(0,m.kt)("mi",{parentName:"mrow"},"b"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mi",{parentName:"mrow"},"c"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mn",{parentName:"mrow"},"1"),(0,m.kt)("mo",{parentName:"mrow",separator:"true"},","),(0,m.kt)("mn",{parentName:"mrow"},"1"),(0,m.kt)("mo",{parentName:"mrow",stretchy:"false"},"]")),(0,m.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"[b, c, 1, 1]")))),(0,m.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,m.kt)("span",{parentName:"span",className:"base"},(0,m.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,m.kt)("span",{parentName:"span",className:"mopen"},"["),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"b"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord mathnormal"},"c"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"1"),(0,m.kt)("span",{parentName:"span",className:"mpunct"},","),(0,m.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,m.kt)("span",{parentName:"span",className:"mord"},"1"),(0,m.kt)("span",{parentName:"span",className:"mclose"},"]"))))),"\u7684tensor\uff0c\u8be5tensor\u8fd8\u8981\u7ecf\u8fc7\u6240\u793a\u7684\u5168\u8fde\u63a5\u5c42-ReLU-\u5168\u8fde\u63a5\u5c42\u7ed3\u6784"),(0,m.kt)("p",null,"Excitation\u6fc0\u52b1\u64cd\u4f5c\u5c31\u662f\u901a\u8fc7sigmoid\u51fd\u6570\u5f97\u5230\u6bcf\u4e2a\u901a\u9053\u4e4b\u95f4\u7684\u91cd\u8981\u7a0b\u5ea6\u7cfb\u6570"),(0,m.kt)("h2",{id:"\u516d\u81ea\u6ce8\u610f\u529b\u673a\u5236"},"\u516d\u3001\u81ea\u6ce8\u610f\u529b\u673a\u5236"),(0,m.kt)("p",null,"\u81ea\u6ce8\u610f\u529b\u673a\u5236\u901a\u8fc7\u8ba1\u7b97\u5143\u7d20\u4e4b\u95f4\u7684\u76f8\u4f3c\u5ea6\u6765\u786e\u5b9a\u5b83\u4eec\u4e4b\u95f4\u7684\u5173\u8054\u6027\uff0c\u5e76\u5bf9\u5176\u8fdb\u884c\u52a0\u6743\u5904\u7406\u4ee5\u83b7\u5f97\u4e0a\u4e0b\u6587\u4fe1\u606f\u3002"),(0,m.kt)("ul",null,(0,m.kt)("li",{parentName:"ul"},"\u81ea\u6ce8\u610f\u529b\u673a\u5236\u901a\u8fc7\u5bf9\u8f93\u5165\u7684\u5143\u7d20\u8fdb\u884c",(0,m.kt)("strong",{parentName:"li"},"\u7ebf\u6027\u53d8\u6362"),"\u6765\u5f97\u5230",(0,m.kt)("strong",{parentName:"li"},"\u67e5\u8be2\uff08Query\uff09\u5411\u91cf"),"\u3001",(0,m.kt)("strong",{parentName:"li"},"\u952e\uff08Key\uff09\u5411\u91cf"),"\u548c",(0,m.kt)("strong",{parentName:"li"},"\u503c\uff08Value\uff09\u5411\u91cf"),"\u3002"),(0,m.kt)("li",{parentName:"ul"},"\u901a\u8fc7\u70b9\u79ef\u548c\u7f29\u653e\u70b9\u79ef\u8ba1\u7b97\u76f8\u4f3c\u7a0b\u5ea6")),(0,m.kt)("p",null,"\u901a\u8fc7\u81ea\u6ce8\u610f\u529b\u673a\u5236\uff0c\u6bcf\u4e2a\u5143\u7d20\u90fd\u53ef\u4ee5\u901a\u8fc7\u4e0e\u5176\u4ed6\u5143\u7d20\u7684\u76f8\u4f3c\u5ea6\u8ba1\u7b97\u548c\u52a0\u6743\u6c42\u548c\uff0c\u83b7\u53d6\u5230\u4e0e\u5b83\u4eec\u76f8\u5173\u7684\u4e0a\u4e0b\u6587\u4fe1\u606f\u3002\u76f8\u4f3c\u5ea6\u9ad8\u7684\u5143\u7d20\u5c06\u83b7\u5f97\u66f4\u9ad8\u7684\u6743\u91cd\uff0c\u56e0\u6b64\u66f4\u53d7\u5230\u5173\u6ce8\u548c\u5f71\u54cd\uff0c\u4ece\u800c\u5efa\u7acb\u8d77\u5143\u7d20\u4e4b\u95f4\u7684\u5173\u8054\u6027\u3002"),(0,m.kt)("h2",{id:"\u4e03\u81ea\u6211\u4ecb\u7ecd"},"\u4e03\u3001\u81ea\u6211\u4ecb\u7ecd"),(0,m.kt)("h3",{id:"\u4e00\u82f1\u6587\u81ea\u6211\u4ecb\u7ecd"},"\uff08\u4e00\uff09\u82f1\u6587\u81ea\u6211\u4ecb\u7ecd"),(0,m.kt)("p",null,"This content has been encrypted."),(0,m.kt)("h3",{id:"\u4e8c\u897f\u7535\u5e7f\u7814\u9662\u81ea\u6211\u4ecb\u7ecd"},"\uff08\u4e8c\uff09\u897f\u7535\u5e7f\u7814\u9662\u81ea\u6211\u4ecb\u7ecd"),(0,m.kt)("h4",{id:"1-\u82f1\u6587\u81ea\u6211\u4ecb\u7ecd"},"1. \u82f1\u6587\u81ea\u6211\u4ecb\u7ecd"),(0,m.kt)("p",null,"This content has been encrypted."),(0,m.kt)("h4",{id:"2-\u4e2d\u6587\u81ea\u6211\u4ecb\u7ecd"},"2. \u4e2d\u6587\u81ea\u6211\u4ecb\u7ecd"),(0,m.kt)("p",null,"This content has been encrypted."),(0,m.kt)("h3",{id:"\u4e09\u7535\u5b50\u79d1\u6280\u5927\u5b66\u81ea\u6211\u4ecb\u7ecd"},"\uff08\u4e09\uff09\u7535\u5b50\u79d1\u6280\u5927\u5b66\u81ea\u6211\u4ecb\u7ecd"),(0,m.kt)("h4",{id:"1-\u82f1\u6587\u81ea\u6211\u4ecb\u7ecd-1"},"1. \u82f1\u6587\u81ea\u6211\u4ecb\u7ecd"),(0,m.kt)("p",null,"This content has been encrypted."),(0,m.kt)("h4",{id:"2-\u4e2d\u6587\u81ea\u6211\u4ecb\u7ecd-1"},"2. \u4e2d\u6587\u81ea\u6211\u4ecb\u7ecd"),(0,m.kt)("p",null,"This content has been encrypted."))}c.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/en/assets/js/e106d379.ff6d17e0.js b/en/assets/js/e106d379.ff6d17e0.js new file mode 100644 index 000000000..be523a401 --- /dev/null +++ b/en/assets/js/e106d379.ff6d17e0.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunknpy_notebook=self.webpackChunknpy_notebook||[]).push([[1646],{3905:(e,t,n)=>{n.d(t,{Zo:()=>c,kt:()=>d});var r=n(7294);function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function l(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var p=r.createContext({}),s=function(e){var t=r.useContext(p),n=t;return e&&(n="function"==typeof e?e(t):i(i({},t),e)),n},c=function(e){var t=s(e.components);return r.createElement(p.Provider,{value:t},e.children)},u="mdxType",m={inlineCode:"code",wrapper:function(e){var t=e.children;return r.createElement(r.Fragment,{},t)}},f=r.forwardRef((function(e,t){var n=e.components,a=e.mdxType,o=e.originalType,p=e.parentName,c=l(e,["components","mdxType","originalType","parentName"]),u=s(n),f=a,d=u["".concat(p,".").concat(f)]||u[f]||m[f]||o;return n?r.createElement(d,i(i({ref:t},c),{},{components:n})):r.createElement(d,i({ref:t},c))}));function d(e,t){var n=arguments,a=t&&t.mdxType;if("string"==typeof e||a){var o=n.length,i=new Array(o);i[0]=f;var l={};for(var p in t)hasOwnProperty.call(t,p)&&(l[p]=t[p]);l.originalType=e,l[u]="string"==typeof e?e:a,i[1]=l;for(var s=2;s<o;s++)i[s]=n[s];return r.createElement.apply(null,i)}return r.createElement.apply(null,n)}f.displayName="MDXCreateElement"},2572:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>p,contentTitle:()=>i,default:()=>m,frontMatter:()=>o,metadata:()=>l,toc:()=>s});var r=n(7462),a=(n(7294),n(3905));const o={},i="\u6302\u8f7dWindows\u78c1\u76d8\u4e3a\u53ea\u8bfb\u6587\u4ef6",l={unversionedId:"Others/Linux/\u95ee\u9898\u89e3\u51b3/\u53cc\u7cfb\u7edf\u6302\u8f7dWindows\u78c1\u76d8\u4e3a\u53ea\u8bfb\u6587\u4ef6",id:"Others/Linux/\u95ee\u9898\u89e3\u51b3/\u53cc\u7cfb\u7edf\u6302\u8f7dWindows\u78c1\u76d8\u4e3a\u53ea\u8bfb\u6587\u4ef6",title:"\u6302\u8f7dWindows\u78c1\u76d8\u4e3a\u53ea\u8bfb\u6587\u4ef6",description:"\u4e00\u3001\u53d1\u751f\u539f\u56e0",source:"@site/docs/Others/2-Linux/\u95ee\u9898\u89e3\u51b3/\u53cc\u7cfb\u7edf\u6302\u8f7dWindows\u78c1\u76d8\u4e3a\u53ea\u8bfb\u6587\u4ef6.md",sourceDirName:"Others/2-Linux/\u95ee\u9898\u89e3\u51b3",slug:"/Others/Linux/\u95ee\u9898\u89e3\u51b3/\u53cc\u7cfb\u7edf\u6302\u8f7dWindows\u78c1\u76d8\u4e3a\u53ea\u8bfb\u6587\u4ef6",permalink:"/en/docs/Others/Linux/\u95ee\u9898\u89e3\u51b3/\u53cc\u7cfb\u7edf\u6302\u8f7dWindows\u78c1\u76d8\u4e3a\u53ea\u8bfb\u6587\u4ef6",draft:!1,tags:[],version:"current",frontMatter:{},sidebar:"others",previous:{title:"\u5982\u4f55\u8ba9\u4f60\u7684Kde Plasma\u770b\u8d77\u6765\u66f4\u50cfmacOS",permalink:"/en/docs/Others/Linux/\u5ba2\u5236\u5316/\u5982\u4f55\u8ba9\u4f60\u7684KDE\u770b\u8d77\u6765\u66f4\u50cfmacOS"},next:{title:"\u544a\u793a\u680f",permalink:"/en/docs/Others/\u535a\u5ba2\u642d\u5efa/\u544a\u793a\u680f"}},p={},s=[{value:"\u4e00\u3001\u53d1\u751f\u539f\u56e0",id:"\u4e00\u53d1\u751f\u539f\u56e0",level:2},{value:"\u4e8c\u3001\u89e3\u51b3\u65b9\u6848",id:"\u4e8c\u89e3\u51b3\u65b9\u6848",level:2}],c={toc:s},u="wrapper";function m(e){let{components:t,...n}=e;return(0,a.kt)(u,(0,r.Z)({},c,n,{components:t,mdxType:"MDXLayout"}),(0,a.kt)("h1",{id:"\u6302\u8f7dwindows\u78c1\u76d8\u4e3a\u53ea\u8bfb\u6587\u4ef6"},"\u6302\u8f7dWindows\u78c1\u76d8\u4e3a\u53ea\u8bfb\u6587\u4ef6"),(0,a.kt)("h2",{id:"\u4e00\u53d1\u751f\u539f\u56e0"},"\u4e00\u3001\u53d1\u751f\u539f\u56e0"),(0,a.kt)("p",null,"\u672a\u77e5\uff0c\u53ef\u80fd\u662f\u7531Windows\u4f11\u7720\u6a21\u5f0f\u5bfc\u81f4"),(0,a.kt)("h2",{id:"\u4e8c\u89e3\u51b3\u65b9\u6848"},"\u4e8c\u3001\u89e3\u51b3\u65b9\u6848"),(0,a.kt)("p",null,"\u4f7f\u7528ntfsfix\u4fee\u590dntfs\u78c1\u76d8"),(0,a.kt)("ol",null,(0,a.kt)("li",{parentName:"ol"},(0,a.kt)("p",{parentName:"li"},"\u5b89\u88c5ntfsfix"),(0,a.kt)("pre",{parentName:"li"},(0,a.kt)("code",{parentName:"pre",className:"language-bash"},"yay -S ntfsfix\n"))),(0,a.kt)("li",{parentName:"ol"},(0,a.kt)("p",{parentName:"li"},"\u67e5\u770b\u95ee\u9898\u5206\u533a"),(0,a.kt)("pre",{parentName:"li"},(0,a.kt)("code",{parentName:"pre",className:"language-bash"},"df -h\n"))),(0,a.kt)("li",{parentName:"ol"},(0,a.kt)("p",{parentName:"li"},"\u4fee\u590d"),(0,a.kt)("pre",{parentName:"li"},(0,a.kt)("code",{parentName:"pre",className:"language-bash"},"sudo ntfsfix /dev/your_partition\n"))),(0,a.kt)("li",{parentName:"ol"},(0,a.kt)("p",{parentName:"li"},"\u91cd\u542f"),(0,a.kt)("pre",{parentName:"li"},(0,a.kt)("code",{parentName:"pre",className:"language-bash"},"reboot\n")))))}m.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/en/assets/js/e5f716fd.e49ea367.js b/en/assets/js/e5f716fd.e49ea367.js new file mode 100644 index 000000000..94fdf9bee --- /dev/null +++ b/en/assets/js/e5f716fd.e49ea367.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunknpy_notebook=self.webpackChunknpy_notebook||[]).push([[3033],{3905:(e,t,r)=>{r.d(t,{Zo:()=>p,kt:()=>d});var n=r(7294);function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function c(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach((function(t){o(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function a(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var u=n.createContext({}),l=function(e){var t=n.useContext(u),r=t;return e&&(r="function"==typeof e?e(t):c(c({},t),e)),r},p=function(e){var t=l(e.components);return n.createElement(u.Provider,{value:t},e.children)},s="mdxType",m={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},f=n.forwardRef((function(e,t){var r=e.components,o=e.mdxType,i=e.originalType,u=e.parentName,p=a(e,["components","mdxType","originalType","parentName"]),s=l(r),f=o,d=s["".concat(u,".").concat(f)]||s[f]||m[f]||i;return r?n.createElement(d,c(c({ref:t},p),{},{components:r})):n.createElement(d,c({ref:t},p))}));function d(e,t){var r=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var i=r.length,c=new Array(i);c[0]=f;var a={};for(var u in t)hasOwnProperty.call(t,u)&&(a[u]=t[u]);a.originalType=e,a[s]="string"==typeof e?e:o,c[1]=a;for(var l=2;l<i;l++)c[l]=r[l];return n.createElement.apply(null,c)}return n.createElement.apply(null,r)}f.displayName="MDXCreateElement"},3264:(e,t,r)=>{r.r(t),r.d(t,{assets:()=>u,contentTitle:()=>c,default:()=>m,frontMatter:()=>i,metadata:()=>a,toc:()=>l});var n=r(7462),o=(r(7294),r(3905));const i={},c="Welcome",a={unversionedId:"Curriculum/intro",id:"Curriculum/intro",title:"Welcome",description:"\u6b22\u8fce\u6765\u5230\u7b14\u8bb0\u672c\u7684\u8bfe\u7a0b\u5b66\u4e60\u90e8\u5206",source:"@site/docs/Curriculum/1-intro.md",sourceDirName:"Curriculum",slug:"/Curriculum/intro",permalink:"/en/docs/Curriculum/intro",draft:!1,tags:[],version:"current",sidebarPosition:1,frontMatter:{},sidebar:"curriculum",next:{title:"\u6570\u5b57\u56fe\u50cf\u5904\u7406\u590d\u4e60\u7b14\u8bb0",permalink:"/en/docs/Curriculum/\u6570\u5b57\u56fe\u50cf\u5904\u7406/Note"}},u={},l=[{value:"\u652f\u6301\u6211\uff01",id:"\u652f\u6301\u6211",level:2}],p={toc:l},s="wrapper";function m(e){let{components:t,...i}=e;return(0,o.kt)(s,(0,n.Z)({},p,i,{components:t,mdxType:"MDXLayout"}),(0,o.kt)("h1",{id:"welcome"},"Welcome"),(0,o.kt)("admonition",{type:"tip"},(0,o.kt)("p",{parentName:"admonition"},"\u6b22\u8fce\u6765\u5230\u7b14\u8bb0\u672c\u7684\u8bfe\u7a0b\u5b66\u4e60\u90e8\u5206")),(0,o.kt)("h2",{id:"\u652f\u6301\u6211"},"\u652f\u6301\u6211\uff01"),(0,o.kt)("p",null,"\u5982\u679c\u53ef\u4ee5\u5e2e\u5230\u4f60\u7684\u8bdd\u5c31\u7ed9\u4e2a\u514d\u8d39\u7684Star\u5427\uff01"),(0,o.kt)("p",null,(0,o.kt)("img",{src:r(9163).Z,width:"2778",height:"2046"})))}m.isMDXComponent=!0},9163:(e,t,r)=>{r.d(t,{Z:()=>n});const n=r.p+"assets/images/intro-822c34cd9b5577b06df8bb0956cdf947.png"}}]); \ No newline at end of file diff --git a/en/assets/js/e6c11ea8.1e898afe.js b/en/assets/js/e6c11ea8.1e898afe.js new file mode 100644 index 000000000..1b709d43b --- /dev/null +++ b/en/assets/js/e6c11ea8.1e898afe.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunknpy_notebook=self.webpackChunknpy_notebook||[]).push([[2051],{3905:(e,t,n)=>{n.d(t,{Zo:()=>s,kt:()=>k});var r=n(7294);function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function i(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var c=r.createContext({}),p=function(e){var t=r.useContext(c),n=t;return e&&(n="function"==typeof e?e(t):l(l({},t),e)),n},s=function(e){var t=p(e.components);return r.createElement(c.Provider,{value:t},e.children)},u="mdxType",m={inlineCode:"code",wrapper:function(e){var t=e.children;return r.createElement(r.Fragment,{},t)}},d=r.forwardRef((function(e,t){var n=e.components,a=e.mdxType,o=e.originalType,c=e.parentName,s=i(e,["components","mdxType","originalType","parentName"]),u=p(n),d=a,k=u["".concat(c,".").concat(d)]||u[d]||m[d]||o;return n?r.createElement(k,l(l({ref:t},s),{},{components:n})):r.createElement(k,l({ref:t},s))}));function k(e,t){var n=arguments,a=t&&t.mdxType;if("string"==typeof e||a){var o=n.length,l=new Array(o);l[0]=d;var i={};for(var c in t)hasOwnProperty.call(t,c)&&(i[c]=t[c]);i.originalType=e,i[u]="string"==typeof e?e:a,l[1]=i;for(var p=2;p<o;p++)l[p]=n[p];return r.createElement.apply(null,l)}return r.createElement.apply(null,n)}d.displayName="MDXCreateElement"},1999:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>c,contentTitle:()=>l,default:()=>m,frontMatter:()=>o,metadata:()=>i,toc:()=>p});var r=n(7462),a=(n(7294),n(3905));const o={},l="\u5982\u4f55\u8ba9\u4f60\u7684Kde Plasma\u770b\u8d77\u6765\u66f4\u50cfmacOS",i={unversionedId:"Others/Linux/\u5ba2\u5236\u5316/\u5982\u4f55\u8ba9\u4f60\u7684KDE\u770b\u8d77\u6765\u66f4\u50cfmacOS",id:"Others/Linux/\u5ba2\u5236\u5316/\u5982\u4f55\u8ba9\u4f60\u7684KDE\u770b\u8d77\u6765\u66f4\u50cfmacOS",title:"\u5982\u4f55\u8ba9\u4f60\u7684Kde Plasma\u770b\u8d77\u6765\u66f4\u50cfmacOS",description:"\u4e00\u3001latte-dock",source:"@site/docs/Others/2-Linux/\u5ba2\u5236\u5316/\u5982\u4f55\u8ba9\u4f60\u7684KDE\u770b\u8d77\u6765\u66f4\u50cfmacOS.md",sourceDirName:"Others/2-Linux/\u5ba2\u5236\u5316",slug:"/Others/Linux/\u5ba2\u5236\u5316/\u5982\u4f55\u8ba9\u4f60\u7684KDE\u770b\u8d77\u6765\u66f4\u50cfmacOS",permalink:"/en/docs/Others/Linux/\u5ba2\u5236\u5316/\u5982\u4f55\u8ba9\u4f60\u7684KDE\u770b\u8d77\u6765\u66f4\u50cfmacOS",draft:!1,tags:[],version:"current",frontMatter:{},sidebar:"others",previous:{title:"\u7ec8\u7aef\u4ee3\u7406",permalink:"/en/docs/Others/Linux/\u5b9e\u7528\u5de5\u5177/\u7ec8\u7aef\u4ee3\u7406"},next:{title:"\u6302\u8f7dWindows\u78c1\u76d8\u4e3a\u53ea\u8bfb\u6587\u4ef6",permalink:"/en/docs/Others/Linux/\u95ee\u9898\u89e3\u51b3/\u53cc\u7cfb\u7edf\u6302\u8f7dWindows\u78c1\u76d8\u4e3a\u53ea\u8bfb\u6587\u4ef6"}},c={},p=[{value:"\u4e00\u3001latte-dock",id:"\u4e00latte-dock",level:2},{value:"\u4e8c\u3001Kde Plasmoids",id:"\u4e8ckde-plasmoids",level:2}],s={toc:p},u="wrapper";function m(e){let{components:t,...n}=e;return(0,a.kt)(u,(0,r.Z)({},s,n,{components:t,mdxType:"MDXLayout"}),(0,a.kt)("h1",{id:"\u5982\u4f55\u8ba9\u4f60\u7684kde-plasma\u770b\u8d77\u6765\u66f4\u50cfmacos"},"\u5982\u4f55\u8ba9\u4f60\u7684Kde Plasma\u770b\u8d77\u6765\u66f4\u50cfmacOS"),(0,a.kt)("h2",{id:"\u4e00latte-dock"},"\u4e00\u3001latte-dock"),(0,a.kt)("ol",null,(0,a.kt)("li",{parentName:"ol"},"dock\u663e\u793a\u7684\u56fe\u6807\u662f\u5168\u5c40\u56fe\u6807\uff0c\u7a0b\u5e8f\u542f\u52a8\u5668\u7684desktop\u6587\u4ef6\u4f4d\u4e8e/usr/share/applications\u4e2d\uff0c\u5168\u5c40\u4e3b\u9898\u4e2d\u56fe\u6807\u4e3b\u9898\u7684\u7a0b\u5e8flogo\u4f4d\u4e8e",(0,a.kt)("em",{parentName:"li"},"~/.local/share/icons/Mkos-Big-Sur-Night/128x128/apps"),"(",(0,a.kt)("strong",{parentName:"li"},"deppending on specific situation"),")\u4e2d\u3002\u5728logo\u6587\u4ef6\u5939\u4e2d\u6311\u9009\u60f3\u8981\u7684logo\uff0c\u5728desktop\u4e2d\u7684icon\u4f4d\u7f6e\u4fee\u6539\u5373\u53ef"),(0,a.kt)("li",{parentName:"ol"},"\u5e94\u7528\u66f4\u65b0\u7684\u65f6\u5019\u4f1a",(0,a.kt)("strong",{parentName:"li"},"\u540c\u65f6\u66f4\u65b0.desktop\u6587\u4ef6"),"\uff0c\u56e0\u6b64\u5728\u66f4\u6362\u56fe\u6807\u662f\u6700\u597d\u76f4\u63a5\u66f4\u6362\u5728\u4e3b\u9898\u6587\u4ef6\u4e2d\u66ff\u6362icon\uff0c\u800c\u4e0d\u662f\u66f4\u6539desktop\u7684icon\u8def\u5f84"),(0,a.kt)("li",{parentName:"ol"},"Finder\u5c0f\u7ec4\u4ef6\u4e2dapplication title\u6587\u5b57\u4e0d\u80fd\u5782\u76f4\u5c45\u4e2d\uff0c\u53ef\u4ee5\u66f4\u6362\u4e3aWindow title\u63d2\u4ef6")),(0,a.kt)("h2",{id:"\u4e8ckde-plasmoids"},"\u4e8c\u3001Kde Plasmoids"),(0,a.kt)("p",null,"Finder\u680f\u4e2dPlasmoids\u5de6\u534a\u90e8\u5206\u4ece\u5de6\u81f3\u53f3\u4f9d\u6b21\u4e3a\uff1a"),(0,a.kt)("ul",null,(0,a.kt)("li",{parentName:"ul"},"kpple menu"),(0,a.kt)("li",{parentName:"ul"},"application title/window titile(if the text of application title can't be centered vertically)"),(0,a.kt)("li",{parentName:"ul"},"global menu")),(0,a.kt)("p",null,"\u53f3\u534a\u90e8\u5206\u4ece\u5de6\u81f3\u53f3\u4f9d\u6b21\u4e3a\uff1a"),(0,a.kt)("ul",null,(0,a.kt)("li",{parentName:"ul"},"resources monitor (fork)"),(0,a.kt)("li",{parentName:"ul"},"mcOS BS Inline Battery"),(0,a.kt)("li",{parentName:"ul"},"\u7f51\u7edc"),(0,a.kt)("li",{parentName:"ul"},"Control Center(replace the icon with search icon)"),(0,a.kt)("li",{parentName:"ul"},"Control Center(replace the icom with menu icon)"),(0,a.kt)("li",{parentName:"ul"},"Better Inline Clock")),(0,a.kt)("p",null,"\u5b89\u88c5\u65b9\u6cd5\uff1a"),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-bash"},"plasmpkg2 -u xxx.plasmoid\n")))}m.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/en/assets/js/f0ad40a3.96f1171a.js b/en/assets/js/f0ad40a3.96f1171a.js new file mode 100644 index 000000000..ab1a8f149 --- /dev/null +++ b/en/assets/js/f0ad40a3.96f1171a.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunknpy_notebook=self.webpackChunknpy_notebook||[]).push([[2296],{3905:(e,t,n)=>{n.d(t,{Zo:()=>u,kt:()=>f});var r=n(7294);function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function i(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var l=r.createContext({}),p=function(e){var t=r.useContext(l),n=t;return e&&(n="function"==typeof e?e(t):c(c({},t),e)),n},u=function(e){var t=p(e.components);return r.createElement(l.Provider,{value:t},e.children)},s="mdxType",d={inlineCode:"code",wrapper:function(e){var t=e.children;return r.createElement(r.Fragment,{},t)}},m=r.forwardRef((function(e,t){var n=e.components,o=e.mdxType,a=e.originalType,l=e.parentName,u=i(e,["components","mdxType","originalType","parentName"]),s=p(n),m=o,f=s["".concat(l,".").concat(m)]||s[m]||d[m]||a;return n?r.createElement(f,c(c({ref:t},u),{},{components:n})):r.createElement(f,c({ref:t},u))}));function f(e,t){var n=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var a=n.length,c=new Array(a);c[0]=m;var i={};for(var l in t)hasOwnProperty.call(t,l)&&(i[l]=t[l]);i.originalType=e,i[s]="string"==typeof e?e:o,c[1]=i;for(var p=2;p<a;p++)c[p]=n[p];return r.createElement.apply(null,c)}return r.createElement.apply(null,n)}m.displayName="MDXCreateElement"},582:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>l,contentTitle:()=>c,default:()=>d,frontMatter:()=>a,metadata:()=>i,toc:()=>p});var r=n(7462),o=(n(7294),n(3905));const a={},c="\u9e23\u8c22",i={unversionedId:"Acknowledgement/intro",id:"Acknowledgement/intro",title:"\u9e23\u8c22",description:"\u996e\u6c34\u601d\u6e90",source:"@site/docs/Acknowledgement/intro.md",sourceDirName:"Acknowledgement",slug:"/Acknowledgement/intro",permalink:"/en/docs/Acknowledgement/intro",draft:!1,tags:[],version:"current",frontMatter:{},sidebar:"acknowledgement"},l={},p=[{value:"\u996e\u6c34\u601d\u6e90",id:"\u996e\u6c34\u601d\u6e90",level:2},{value:"Disclaimer",id:"disclaimer",level:2}],u={toc:p},s="wrapper";function d(e){let{components:t,...a}=e;return(0,o.kt)(s,(0,r.Z)({},u,a,{components:t,mdxType:"MDXLayout"}),(0,o.kt)("h1",{id:"\u9e23\u8c22"},"\u9e23\u8c22"),(0,o.kt)("h2",{id:"\u996e\u6c34\u601d\u6e90"},"\u996e\u6c34\u601d\u6e90"),(0,o.kt)("p",null,"\u8be5\u7f51\u7ad9\u7684\u642d\u5efa\u79bb\u4e0d\u5f00",(0,o.kt)("a",{parentName:"p",href:"https://github.com/facebook/docusaurus"},"Docusaurus"),"\u7684\u652f\u6301\u4ee5\u53ca\u5bf9",(0,o.kt)("a",{parentName:"p",href:"https://space.keter.top/"},"Sonder\u7684\u5b9d\u85cf\u7b14\u8bb0\u672c"),"\u7684\u53c2\u8003\u3002"),(0,o.kt)("h2",{id:"disclaimer"},"Disclaimer"),(0,o.kt)("p",null,"\u672c\u7f51\u7ad9\u5c55\u793a\u7684\u6240\u6709\u6807\u8bc6\u548c\u94fe\u63a5\u4ec5\u5c5e\u4e8e",(0,o.kt)("inlineCode",{parentName:"p"},"\u4e2a\u4eba\u559c\u597d"),"\uff0c",(0,o.kt)("inlineCode",{parentName:"p"},"\u4e0d\u4ee3\u8868\u56fd\u5bb6\u7684\u7acb\u573a\u6216\u4f01\u4e1a\u3001\u7ec4\u7ec7\u7684\u884c\u4e3a"),"\u3002"),(0,o.kt)("p",null,"\u672c\u7f51\u7ad9\u7684\u6240\u6709\u4fe1\u606f",(0,o.kt)("inlineCode",{parentName:"p"},"\u4ec5\u4f9b\u53c2\u8003"),"\uff0c",(0,o.kt)("inlineCode",{parentName:"p"},"\u4e0d\u6784\u6210\u6cd5\u5f8b\u6216\u5546\u4e1a\u5efa\u8bae"),"\u3002"),(0,o.kt)("p",null,(0,o.kt)("img",{src:n(9163).Z,width:"2778",height:"2046"})))}d.isMDXComponent=!0},9163:(e,t,n)=>{n.d(t,{Z:()=>r});const r=n.p+"assets/images/intro-822c34cd9b5577b06df8bb0956cdf947.png"}}]); \ No newline at end of file diff --git a/en/assets/js/f26368c4.53e6a014.js b/en/assets/js/f26368c4.53e6a014.js new file mode 100644 index 000000000..d4264871b --- /dev/null +++ b/en/assets/js/f26368c4.53e6a014.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunknpy_notebook=self.webpackChunknpy_notebook||[]).push([[4760],{3905:(a,e,t)=>{t.d(e,{Zo:()=>l,kt:()=>h});var n=t(7294);function s(a,e,t){return e in a?Object.defineProperty(a,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):a[e]=t,a}function r(a,e){var t=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable}))),t.push.apply(t,n)}return t}function m(a){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?r(Object(t),!0).forEach((function(e){s(a,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(t)):r(Object(t)).forEach((function(e){Object.defineProperty(a,e,Object.getOwnPropertyDescriptor(t,e))}))}return a}function o(a,e){if(null==a)return{};var t,n,s=function(a,e){if(null==a)return{};var t,n,s={},r=Object.keys(a);for(n=0;n<r.length;n++)t=r[n],e.indexOf(t)>=0||(s[t]=a[t]);return s}(a,e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(a);for(n=0;n<r.length;n++)t=r[n],e.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(a,t)&&(s[t]=a[t])}return s}var p=n.createContext({}),i=function(a){var e=n.useContext(p),t=e;return a&&(t="function"==typeof a?a(e):m(m({},e),a)),t},l=function(a){var e=i(a.components);return n.createElement(p.Provider,{value:e},a.children)},c="mdxType",k={inlineCode:"code",wrapper:function(a){var e=a.children;return n.createElement(n.Fragment,{},e)}},d=n.forwardRef((function(a,e){var t=a.components,s=a.mdxType,r=a.originalType,p=a.parentName,l=o(a,["components","mdxType","originalType","parentName"]),c=i(t),d=s,h=c["".concat(p,".").concat(d)]||c[d]||k[d]||r;return t?n.createElement(h,m(m({ref:e},l),{},{components:t})):n.createElement(h,m({ref:e},l))}));function h(a,e){var t=arguments,s=e&&e.mdxType;if("string"==typeof a||s){var r=t.length,m=new Array(r);m[0]=d;var o={};for(var p in e)hasOwnProperty.call(e,p)&&(o[p]=e[p]);o.originalType=a,o[c]="string"==typeof a?a:s,m[1]=o;for(var i=2;i<r;i++)m[i]=t[i];return n.createElement.apply(null,m)}return n.createElement.apply(null,t)}d.displayName="MDXCreateElement"},1933:(a,e,t)=>{t.r(e),t.d(e,{assets:()=>p,contentTitle:()=>m,default:()=>k,frontMatter:()=>r,metadata:()=>o,toc:()=>i});var n=t(7462),s=(t(7294),t(3905));const r={},m="K-fold cross-validation",o={unversionedId:"Deep-Learning/\u57fa\u7840\u77e5\u8bc6/K-foldCross-validation",id:"Deep-Learning/\u57fa\u7840\u77e5\u8bc6/K-foldCross-validation",title:"K-fold cross-validation",description:"What is k-fold cross-validation?",source:"@site/docs/Deep-Learning/3-\u57fa\u7840\u77e5\u8bc6/K-foldCross-validation.md",sourceDirName:"Deep-Learning/3-\u57fa\u7840\u77e5\u8bc6",slug:"/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/K-foldCross-validation",permalink:"/en/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/K-foldCross-validation",draft:!1,tags:[],version:"current",frontMatter:{},sidebar:"deep_learning",previous:{title:"\u4ece\u5168\u8fde\u63a5\u5230\u5377\u79ef",permalink:"/en/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/FromFullyConnectedLayerToConvolutionalLayer"},next:{title:"LeNet",permalink:"/en/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/LeNet"}},p={},i=[{value:"What is k-fold cross-validation?",id:"what-is-k-fold-cross-validation",level:2},{value:"How does k-fold cross-validation work?",id:"how-does-k-fold-cross-validation-work",level:2},{value:"Summary",id:"summary",level:2}],l={toc:i},c="wrapper";function k(a){let{components:e,...t}=a;return(0,s.kt)(c,(0,n.Z)({},l,t,{components:e,mdxType:"MDXLayout"}),(0,s.kt)("h1",{id:"k-fold-cross-validation"},"K-fold cross-validation"),(0,s.kt)("h2",{id:"what-is-k-fold-cross-validation"},"What is k-fold cross-validation?"),(0,s.kt)("p",null,"K-fold cross-validation is a technique used in machine learning to evaluate the performance of a model. The basic idea behind k-fold cross-validation is to split the dataset into ",(0,s.kt)("span",{parentName:"p",className:"math math-inline"},(0,s.kt)("span",{parentName:"span",className:"katex"},(0,s.kt)("span",{parentName:"span",className:"katex-mathml"},(0,s.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,s.kt)("semantics",{parentName:"math"},(0,s.kt)("mrow",{parentName:"semantics"},(0,s.kt)("mi",{parentName:"mrow"},"k")),(0,s.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"k")))),(0,s.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6944em"}}),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03148em"}},"k")))))," partitions, or folds, and then train and test the model ",(0,s.kt)("span",{parentName:"p",className:"math math-inline"},(0,s.kt)("span",{parentName:"span",className:"katex"},(0,s.kt)("span",{parentName:"span",className:"katex-mathml"},(0,s.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,s.kt)("semantics",{parentName:"math"},(0,s.kt)("mrow",{parentName:"semantics"},(0,s.kt)("mi",{parentName:"mrow"},"k")),(0,s.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"k")))),(0,s.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6944em"}}),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03148em"}},"k")))))," times, ",(0,s.kt)("strong",{parentName:"p"},"using a different fold for testing each time"),"."),(0,s.kt)("hr",null),(0,s.kt)("h2",{id:"how-does-k-fold-cross-validation-work"},"How does k-fold cross-validation work?"),(0,s.kt)("p",null,"In each iteration of k-fold cross-validation, one of the ",(0,s.kt)("span",{parentName:"p",className:"math math-inline"},(0,s.kt)("span",{parentName:"span",className:"katex"},(0,s.kt)("span",{parentName:"span",className:"katex-mathml"},(0,s.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,s.kt)("semantics",{parentName:"math"},(0,s.kt)("mrow",{parentName:"semantics"},(0,s.kt)("mi",{parentName:"mrow"},"k")),(0,s.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"k")))),(0,s.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6944em"}}),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03148em"}},"k")))))," folds is used as the ",(0,s.kt)("strong",{parentName:"p"},"test set"),", while the remaining ",(0,s.kt)("span",{parentName:"p",className:"math math-inline"},(0,s.kt)("span",{parentName:"span",className:"katex"},(0,s.kt)("span",{parentName:"span",className:"katex-mathml"},(0,s.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,s.kt)("semantics",{parentName:"math"},(0,s.kt)("mrow",{parentName:"semantics"},(0,s.kt)("mi",{parentName:"mrow"},"k"),(0,s.kt)("mo",{parentName:"mrow"},"\u2212"),(0,s.kt)("mn",{parentName:"mrow"},"1")),(0,s.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"k-1")))),(0,s.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"0.7778em",verticalAlign:"-0.0833em"}}),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03148em"}},"k"),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}}),(0,s.kt)("span",{parentName:"span",className:"mbin"},"\u2212"),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2222em"}})),(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6444em"}}),(0,s.kt)("span",{parentName:"span",className:"mord"},"1")))))," folds are used as the training set. This process is repeated ",(0,s.kt)("span",{parentName:"p",className:"math math-inline"},(0,s.kt)("span",{parentName:"span",className:"katex"},(0,s.kt)("span",{parentName:"span",className:"katex-mathml"},(0,s.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,s.kt)("semantics",{parentName:"math"},(0,s.kt)("mrow",{parentName:"semantics"},(0,s.kt)("mi",{parentName:"mrow"},"k")),(0,s.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"k")))),(0,s.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"0.6944em"}}),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03148em"}},"k")))))," times, with each fold being used ",(0,s.kt)("strong",{parentName:"p"},"exactly once as the test set"),". The results from each iteration can then be averaged to produce a more accurate estimate of the model's performance."),(0,s.kt)("hr",null),(0,s.kt)("h2",{id:"summary"},"Summary"),(0,s.kt)("ul",null,(0,s.kt)("li",{parentName:"ul"},"train set: to train the model and do parameter update"),(0,s.kt)("li",{parentName:"ul"},"validation set: to choose hyperparameter"),(0,s.kt)("li",{parentName:"ul"},"test set: the final test, only used once")))}k.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/en/assets/js/main.c115541d.js b/en/assets/js/main.c115541d.js new file mode 100644 index 000000000..8e71ebdff --- /dev/null +++ b/en/assets/js/main.c115541d.js @@ -0,0 +1,2 @@ +/*! For license information please see main.c115541d.js.LICENSE.txt */ +(self.webpackChunknpy_notebook=self.webpackChunknpy_notebook||[]).push([[179],{723:(e,t,n)=>{"use strict";n.d(t,{Z:()=>p});var r=n(7294),a=n(7462),o=n(8356),i=n.n(o),s=n(6887);const l={"05ec199a":[()=>n.e(2373).then(n.bind(n,2240)),"@site/docs/Deep-Learning/5-\u5927\u6a21\u578b/1-Self-Attention.md",2240],"092909c8":[()=>n.e(962).then(n.bind(n,1026)),"@site/docs/Algorithms/4-\u9898\u89e3/\u4e00\u7ef4\u524d\u7f00\u548c\uff08\u5237\u51fa\u4e00\u9053\u5899\uff09.md",1026],"0ed19e66":[()=>n.e(8770).then(n.bind(n,3887)),"@site/docs/Deep-Learning/5-\u5927\u6a21\u578b/6-Diffusion-Model.md",3887],"11f7daa4":[()=>n.e(1180).then(n.bind(n,4618)),"@site/docs/Algorithms/4-\u9898\u89e3/\u6392\u5217\u7ec4\u5408\uff08\u6c4230\u7684\u500d\u6570\uff09.md",4618],"1331f6cd":[()=>n.e(7336).then(n.bind(n,2922)),"@site/docs/Algorithms/1-intro.md",2922],"16ddbeca":[()=>n.e(3328).then(n.bind(n,4978)),"@site/docs/Deep-Learning/4-\u5b9e\u6218\u7ec3\u4e60/3-Undergraduate-Dissertation.md",4978],"170d5aca":[()=>n.e(7122).then(n.bind(n,806)),"@site/docs/Deep-Learning/1-intro.md",806],17896441:[()=>Promise.all([n.e(532),n.e(8605),n.e(7918)]).then(n.bind(n,903)),"@theme/DocItem",903],"198a413f":[()=>n.e(2592).then(n.bind(n,3857)),"@site/docs/Tui-Mian/\u8ba1\u7b97\u673a\u57fa\u7840\u7efc\u5408/\u6570\u636e\u7ed3\u6784.md",3857],"1a4e3797":[()=>Promise.all([n.e(532),n.e(7920)]).then(n.bind(n,2027)),"@theme/SearchPage",2027],"1be78505":[()=>Promise.all([n.e(532),n.e(9514)]).then(n.bind(n,9963)),"@theme/DocPage",9963],"1f391b9e":[()=>Promise.all([n.e(532),n.e(8605),n.e(3085)]).then(n.bind(n,4247)),"@theme/MDXPage",4247],"21a88645":[()=>n.e(9913).then(n.bind(n,3721)),"@site/docs/Deep-Learning/6-\u8bba\u6587\u7b14\u8bb0/2-Denoising Diffusion Probabilistic Models.md",3721],"26bb3547":[()=>n.e(8399).then(n.bind(n,2629)),"@site/docs/Deep-Learning/6-\u8bba\u6587\u7b14\u8bb0/4-Zero-shot Generative Model Adaptation via Image-specific Prompt Learning.md",2629],"2a59d8d4":[()=>n.e(3065).then(n.bind(n,7146)),"@site/docs/Deep-Learning/3-\u57fa\u7840\u77e5\u8bc6/FromFullyConnectedLayerToConvolutionalLayer.md",7146],"360a53fd":[()=>n.e(7851).then(n.bind(n,2353)),"@site/docs/Others/2-Linux/\u5b9e\u7528\u5de5\u5177/\u7ec8\u7aef\u4ee3\u7406.md",2353],"393be207":[()=>n.e(7414).then(n.bind(n,3123)),"@site/src/pages/markdown-page.md",3123],"3c9ce1b2":[()=>n.e(6674).then(n.bind(n,9721)),"@site/docs/Algorithms/4-\u9898\u89e3/\u53cd\u5e8f\u8f93\u51fa.md",9721],"446859ef":[()=>n.e(1459).then(n.bind(n,8739)),"@site/docs/Algorithms/3-\u673a\u8bd5\u6280\u5de7\u4e0eSTL.md",8739],"4557037c":[()=>n.e(189).then(n.bind(n,3148)),"@site/docs/Others/1-intro.md",3148],"459eb724":[()=>n.e(3553).then(n.bind(n,2257)),"@site/docs/Deep-Learning/5-\u5927\u6a21\u578b/2-Attention-Is-All-You-Need.md",2257],"4e1def24":[()=>n.e(6237).then(n.bind(n,9570)),"@site/docs/Tui-Mian/2-Summary.md",9570],"4fdf609a":[()=>n.e(7698).then(n.bind(n,4817)),"@site/docs/Tui-Mian/\u6570\u5b66/\u7ebf\u6027\u4ee3\u6570.md",4817],"52f5885d":[()=>n.e(8231).then(n.bind(n,8530)),"@site/docs/Deep-Learning/6-\u8bba\u6587\u7b14\u8bb0/3-High-Resolution Image Synthesis with Latent Diffusion Models.md",8530],"56ae16bd":[()=>n.e(1376).then(n.bind(n,3754)),"@site/docs/Deep-Learning/5-\u5927\u6a21\u578b/5-GAN.md",3754],"5960b9f1":[()=>n.e(9615).then(n.bind(n,9124)),"@site/docs/Tui-Mian/\u6570\u5b66/\u6982\u7387\u8bba.md",9124],"5b87b98d":[()=>n.e(452).then(n.bind(n,6624)),"@site/docs/Others/3-\u535a\u5ba2\u642d\u5efa/\u544a\u793a\u680f.md",6624],"5e9f5e1a":[()=>Promise.resolve().then(n.bind(n,6809)),"@generated/docusaurus.config",6809],"6204ac06":[()=>n.e(8614).then(n.bind(n,4140)),"@site/docs/Deep-Learning/3-\u57fa\u7840\u77e5\u8bc6/\u6df1\u5ea6\u53ef\u5206\u79bb\u5377\u79ef.md",4140],"67605ec9":[()=>n.e(3311).then(n.bind(n,7391)),"@site/docs/Deep-Learning/5-\u5927\u6a21\u578b/4-Image-Generation-Models.md",7391],73151820:[()=>n.e(9203).then(n.bind(n,2823)),"@site/docs/Curriculum/4-\u64cd\u4f5c\u7cfb\u7edf\u8bfe\u8bbe/2-GeekOS-project-0.md",2823],"73a0803d":[()=>n.e(1196).then(n.bind(n,1265)),"@site/docs/Tui-Mian/\u6570\u5b66/\u590f\u4ee4\u8425\u9762\u8bd5\u6570\u5b66\u90e8\u5206\u590d\u4e60.md",1265],"74465ad7":[()=>n.e(5321).then(n.bind(n,8038)),"@site/docs/Deep-Learning/3-\u57fa\u7840\u77e5\u8bc6/PoolingLayer.md",8038],"76f0dcb5":[()=>n.e(2615).then(n.bind(n,7574)),"@site/docs/Deep-Learning/4-\u5b9e\u6218\u7ec3\u4e60/2-Speaker Classification.md",7574],"78a3e900":[()=>n.e(8125).then(n.bind(n,472)),"@site/docs/Deep-Learning/6-\u8bba\u6587\u7b14\u8bb0/1-Attention Is All You Need.md",472],"7ab2d319":[()=>n.e(5736).then(n.bind(n,8932)),"@site/docs/Deep-Learning/3-\u57fa\u7840\u77e5\u8bc6/LeNet.md",8932],"7d51be72":[()=>n.e(6898).then(n.bind(n,4434)),"@site/docs/Deep-Learning/4-\u5b9e\u6218\u7ec3\u4e60/1-Visdom Visualization.md",4434],"7daa201b":[()=>n.e(8347).then(n.t.bind(n,2776,19)),"C:\\External\\bonjour-npy.github.io\\.docusaurus\\@easyops-cn\\docusaurus-search-local\\default\\plugin-route-context-module-100.json",2776],"7f328912":[()=>n.e(8975).then(n.bind(n,7427)),"@site/docs/Tui-Mian/1-intro.md",7427],"800ff996":[()=>n.e(6178).then(n.bind(n,5541)),"@site/docs/Deep-Learning/3-\u57fa\u7840\u77e5\u8bc6/LogisticRegression.md",5541],"86a892ec":[()=>n.e(8175).then(n.bind(n,4362)),"@site/docs/Deep-Learning/5-\u5927\u6a21\u578b/Prompt Learning/1-Undergraduate-Dissertation.md",4362],"86cc22d4":[()=>n.e(3576).then(n.t.bind(n,5745,19)),"C:\\External\\bonjour-npy.github.io\\.docusaurus\\docusaurus-plugin-content-pages\\default\\plugin-route-context-module-100.json",5745],"935f2afb":[()=>n.e(53).then(n.t.bind(n,1109,19)),"~docs/default/version-current-metadata-prop-751.json",1109],a0558625:[()=>n.e(3389).then(n.bind(n,350)),"@site/docs/Algorithms/2-STL\u6a21\u677f.md",350],a2a36db7:[()=>n.e(5776).then(n.bind(n,8847)),"@site/docs/Tui-Mian/\u673a\u8bd5/\u5927\u6570\u9664\u6cd5.md",8847],a8183bcb:[()=>n.e(7739).then(n.bind(n,3199)),"@site/docs/Deep-Learning/5-\u5927\u6a21\u578b/3-Self-Supervised-Learning.md",3199],a8fad2e4:[()=>n.e(1130).then(n.bind(n,119)),"@site/docs/Deep-Learning/3-\u57fa\u7840\u77e5\u8bc6/Perceptron.md",119],a91af95f:[()=>n.e(1007).then(n.bind(n,6831)),"@site/docs/Curriculum/2-\u6570\u5b57\u56fe\u50cf\u5904\u7406/Note.md",6831],b28e7af0:[()=>n.e(618).then(n.bind(n,8069)),"@site/docs/Deep-Learning/2-Fill-The-Gaps.md",8069],b529c19d:[()=>n.e(1835).then(n.bind(n,5470)),"@site/docs/Deep-Learning/3-\u57fa\u7840\u77e5\u8bc6/\u6fc0\u6d3b\u51fd\u6570\u4e0eLoss\u7684\u68af\u5ea6.md",5470],c00822a0:[()=>n.e(9507).then(n.bind(n,8135)),"@site/docs/Deep-Learning/3-\u57fa\u7840\u77e5\u8bc6/PytorchBasics.md",8135],c4f5d8e4:[()=>Promise.all([n.e(532),n.e(4195)]).then(n.bind(n,1792)),"@site/src/pages/index.js",1792],cccb4b32:[()=>n.e(3346).then(n.bind(n,9575)),"@site/docs/Curriculum/4-\u64cd\u4f5c\u7cfb\u7edf\u8bfe\u8bbe/1-Environment-Configuration.md",9575],cf67a3ce:[()=>n.e(3094).then(n.bind(n,3582)),"@site/docs/Deep-Learning/3-\u57fa\u7840\u77e5\u8bc6/\u6b63\u5219\u5316\u4e0e\u6743\u91cd\u8870\u9000.md",3582],d1030cc9:[()=>n.e(5742).then(n.bind(n,3688)),"@site/docs/Deep-Learning/3-\u57fa\u7840\u77e5\u8bc6/AlexNet.md",3688],d594b08b:[()=>n.e(5923).then(n.t.bind(n,3769,19)),"C:\\External\\bonjour-npy.github.io\\.docusaurus\\docusaurus-plugin-content-docs\\default\\plugin-route-context-module-100.json",3769],d5b726de:[()=>n.e(3320).then(n.bind(n,942)),"@site/docs/Deep-Learning/3-\u57fa\u7840\u77e5\u8bc6/ConvolutionalLayer.md",942],d6b41bcb:[()=>n.e(5901).then(n.bind(n,2509)),"@site/docs/Curriculum/3-\u7f16\u8bd1\u539f\u7406/Note.md",2509],d839ba35:[()=>n.e(198).then(n.bind(n,1031)),"@site/docs/Tui-Mian/\u7b80\u5386/\u7b80\u5386\u9762\u8bd5\u51c6\u5907.md",1031],e106d379:[()=>n.e(1646).then(n.bind(n,2572)),"@site/docs/Others/2-Linux/\u95ee\u9898\u89e3\u51b3/\u53cc\u7cfb\u7edf\u6302\u8f7dWindows\u78c1\u76d8\u4e3a\u53ea\u8bfb\u6587\u4ef6.md",2572],e5f716fd:[()=>n.e(3033).then(n.bind(n,3264)),"@site/docs/Curriculum/1-intro.md",3264],e6c11ea8:[()=>n.e(2051).then(n.bind(n,1999)),"@site/docs/Others/2-Linux/\u5ba2\u5236\u5316/\u5982\u4f55\u8ba9\u4f60\u7684KDE\u770b\u8d77\u6765\u66f4\u50cfmacOS.md",1999],f0ad40a3:[()=>n.e(2296).then(n.bind(n,582)),"@site/docs/Acknowledgement/intro.md",582],f26368c4:[()=>n.e(4760).then(n.bind(n,1933)),"@site/docs/Deep-Learning/3-\u57fa\u7840\u77e5\u8bc6/K-foldCross-validation.md",1933]};function u(e){let{error:t,retry:n,pastDelay:a}=e;return t?r.createElement("div",{style:{textAlign:"center",color:"#fff",backgroundColor:"#fa383e",borderColor:"#fa383e",borderStyle:"solid",borderRadius:"0.25rem",borderWidth:"1px",boxSizing:"border-box",display:"block",padding:"1rem",flex:"0 0 50%",marginLeft:"25%",marginRight:"25%",marginTop:"5rem",maxWidth:"50%",width:"100%"}},r.createElement("p",null,String(t)),r.createElement("div",null,r.createElement("button",{type:"button",onClick:n},"Retry"))):a?r.createElement("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",height:"100vh"}},r.createElement("svg",{id:"loader",style:{width:128,height:110,position:"absolute",top:"calc(100vh - 64%)"},viewBox:"0 0 45 45",xmlns:"http://www.w3.org/2000/svg",stroke:"#61dafb"},r.createElement("g",{fill:"none",fillRule:"evenodd",transform:"translate(1 1)",strokeWidth:"2"},r.createElement("circle",{cx:"22",cy:"22",r:"6",strokeOpacity:"0"},r.createElement("animate",{attributeName:"r",begin:"1.5s",dur:"3s",values:"6;22",calcMode:"linear",repeatCount:"indefinite"}),r.createElement("animate",{attributeName:"stroke-opacity",begin:"1.5s",dur:"3s",values:"1;0",calcMode:"linear",repeatCount:"indefinite"}),r.createElement("animate",{attributeName:"stroke-width",begin:"1.5s",dur:"3s",values:"2;0",calcMode:"linear",repeatCount:"indefinite"})),r.createElement("circle",{cx:"22",cy:"22",r:"6",strokeOpacity:"0"},r.createElement("animate",{attributeName:"r",begin:"3s",dur:"3s",values:"6;22",calcMode:"linear",repeatCount:"indefinite"}),r.createElement("animate",{attributeName:"stroke-opacity",begin:"3s",dur:"3s",values:"1;0",calcMode:"linear",repeatCount:"indefinite"}),r.createElement("animate",{attributeName:"stroke-width",begin:"3s",dur:"3s",values:"2;0",calcMode:"linear",repeatCount:"indefinite"})),r.createElement("circle",{cx:"22",cy:"22",r:"8"},r.createElement("animate",{attributeName:"r",begin:"0s",dur:"1.5s",values:"6;1;2;3;4;5;6",calcMode:"linear",repeatCount:"indefinite"}))))):null}var c=n(9670),d=n(226);function f(e,t){if("*"===e)return i()({loading:u,loader:()=>n.e(4972).then(n.bind(n,4972)),modules:["@theme/NotFound"],webpack:()=>[4972],render(e,t){const n=e.default;return r.createElement(d.z,{value:{plugin:{name:"native",id:"default"}}},r.createElement(n,t))}});const o=s[`${e}-${t}`],f={},p=[],h=[],m=(0,c.Z)(o);return Object.entries(m).forEach((e=>{let[t,n]=e;const r=l[n];r&&(f[t]=r[0],p.push(r[1]),h.push(r[2]))})),i().Map({loading:u,loader:f,modules:p,webpack:()=>h,render(t,n){const i=JSON.parse(JSON.stringify(o));Object.entries(t).forEach((t=>{let[n,r]=t;const a=r.default;if(!a)throw new Error(`The page component at ${e} doesn't have a default export. This makes it impossible to render anything. Consider default-exporting a React component.`);"object"!=typeof a&&"function"!=typeof a||Object.keys(r).filter((e=>"default"!==e)).forEach((e=>{a[e]=r[e]}));let o=i;const s=n.split(".");s.slice(0,-1).forEach((e=>{o=o[e]})),o[s[s.length-1]]=a}));const s=i.__comp;delete i.__comp;const l=i.__context;return delete i.__context,r.createElement(d.z,{value:l},r.createElement(s,(0,a.Z)({},i,n)))}})}const p=[{path:"/en/markdown-page",component:f("/en/markdown-page","5ca"),exact:!0},{path:"/en/search",component:f("/en/search","3b5"),exact:!0},{path:"/en/docs",component:f("/en/docs","885"),routes:[{path:"/en/docs/Acknowledgement/intro",component:f("/en/docs/Acknowledgement/intro","7ff"),exact:!0,sidebar:"acknowledgement"},{path:"/en/docs/Algorithms/\u673a\u8bd5\u6280\u5de7\u4e0eSTL",component:f("/en/docs/Algorithms/\u673a\u8bd5\u6280\u5de7\u4e0eSTL","161"),exact:!0,sidebar:"algorithms"},{path:"/en/docs/Algorithms/\u9898\u89e3/\u53cd\u5e8f\u8f93\u51fa",component:f("/en/docs/Algorithms/\u9898\u89e3/\u53cd\u5e8f\u8f93\u51fa","4a8"),exact:!0,sidebar:"algorithms"},{path:"/en/docs/Algorithms/\u9898\u89e3/\u6392\u5217\u7ec4\u5408\uff08\u6c4230\u7684\u500d\u6570\uff09",component:f("/en/docs/Algorithms/\u9898\u89e3/\u6392\u5217\u7ec4\u5408\uff08\u6c4230\u7684\u500d\u6570\uff09","c4a"),exact:!0,sidebar:"algorithms"},{path:"/en/docs/Algorithms/\u9898\u89e3/\u4e00\u7ef4\u524d\u7f00\u548c\uff08\u5237\u51fa\u4e00\u9053\u5899\uff09",component:f("/en/docs/Algorithms/\u9898\u89e3/\u4e00\u7ef4\u524d\u7f00\u548c\uff08\u5237\u51fa\u4e00\u9053\u5899\uff09","0f8"),exact:!0,sidebar:"algorithms"},{path:"/en/docs/Algorithms/intro",component:f("/en/docs/Algorithms/intro","64a"),exact:!0,sidebar:"algorithms"},{path:"/en/docs/Algorithms/STL\u6a21\u677f",component:f("/en/docs/Algorithms/STL\u6a21\u677f","8ce"),exact:!0,sidebar:"algorithms"},{path:"/en/docs/Curriculum/\u7f16\u8bd1\u539f\u7406/Note",component:f("/en/docs/Curriculum/\u7f16\u8bd1\u539f\u7406/Note","c21"),exact:!0,sidebar:"curriculum"},{path:"/en/docs/Curriculum/\u64cd\u4f5c\u7cfb\u7edf\u8bfe\u8bbe/Environment-Configuration",component:f("/en/docs/Curriculum/\u64cd\u4f5c\u7cfb\u7edf\u8bfe\u8bbe/Environment-Configuration","61b"),exact:!0,sidebar:"curriculum"},{path:"/en/docs/Curriculum/\u64cd\u4f5c\u7cfb\u7edf\u8bfe\u8bbe/GeekOS-project-0",component:f("/en/docs/Curriculum/\u64cd\u4f5c\u7cfb\u7edf\u8bfe\u8bbe/GeekOS-project-0","951"),exact:!0,sidebar:"curriculum"},{path:"/en/docs/Curriculum/\u6570\u5b57\u56fe\u50cf\u5904\u7406/Note",component:f("/en/docs/Curriculum/\u6570\u5b57\u56fe\u50cf\u5904\u7406/Note","467"),exact:!0,sidebar:"curriculum"},{path:"/en/docs/Curriculum/intro",component:f("/en/docs/Curriculum/intro","6de"),exact:!0,sidebar:"curriculum"},{path:"/en/docs/Deep-Learning/\u5927\u6a21\u578b/Attention-Is-All-You-Need",component:f("/en/docs/Deep-Learning/\u5927\u6a21\u578b/Attention-Is-All-You-Need","349"),exact:!0,sidebar:"deep_learning"},{path:"/en/docs/Deep-Learning/\u5927\u6a21\u578b/Diffusion-Model",component:f("/en/docs/Deep-Learning/\u5927\u6a21\u578b/Diffusion-Model","226"),exact:!0,sidebar:"deep_learning"},{path:"/en/docs/Deep-Learning/\u5927\u6a21\u578b/GAN",component:f("/en/docs/Deep-Learning/\u5927\u6a21\u578b/GAN","6dc"),exact:!0,sidebar:"deep_learning"},{path:"/en/docs/Deep-Learning/\u5927\u6a21\u578b/Image-Generation-Models",component:f("/en/docs/Deep-Learning/\u5927\u6a21\u578b/Image-Generation-Models","b18"),exact:!0,sidebar:"deep_learning"},{path:"/en/docs/Deep-Learning/\u5927\u6a21\u578b/Prompt Learning/Undergraduate-Dissertation",component:f("/en/docs/Deep-Learning/\u5927\u6a21\u578b/Prompt Learning/Undergraduate-Dissertation","bca"),exact:!0,sidebar:"deep_learning"},{path:"/en/docs/Deep-Learning/\u5927\u6a21\u578b/Self-Attention",component:f("/en/docs/Deep-Learning/\u5927\u6a21\u578b/Self-Attention","51d"),exact:!0,sidebar:"deep_learning"},{path:"/en/docs/Deep-Learning/\u5927\u6a21\u578b/Self-Supervised-Learning",component:f("/en/docs/Deep-Learning/\u5927\u6a21\u578b/Self-Supervised-Learning","e39"),exact:!0,sidebar:"deep_learning"},{path:"/en/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/\u6fc0\u6d3b\u51fd\u6570\u4e0eLoss\u7684\u68af\u5ea6",component:f("/en/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/\u6fc0\u6d3b\u51fd\u6570\u4e0eLoss\u7684\u68af\u5ea6","1d0"),exact:!0,sidebar:"deep_learning"},{path:"/en/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/\u6df1\u5ea6\u53ef\u5206\u79bb\u5377\u79ef",component:f("/en/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/\u6df1\u5ea6\u53ef\u5206\u79bb\u5377\u79ef","463"),exact:!0,sidebar:"deep_learning"},{path:"/en/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/\u6b63\u5219\u5316\u4e0e\u6743\u91cd\u8870\u9000",component:f("/en/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/\u6b63\u5219\u5316\u4e0e\u6743\u91cd\u8870\u9000","076"),exact:!0,sidebar:"deep_learning"},{path:"/en/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/AlexNet",component:f("/en/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/AlexNet","632"),exact:!0,sidebar:"deep_learning"},{path:"/en/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/ConvolutionalLayer",component:f("/en/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/ConvolutionalLayer","a5a"),exact:!0,sidebar:"deep_learning"},{path:"/en/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/FromFullyConnectedLayerToConvolutionalLayer",component:f("/en/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/FromFullyConnectedLayerToConvolutionalLayer","b27"),exact:!0,sidebar:"deep_learning"},{path:"/en/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/K-foldCross-validation",component:f("/en/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/K-foldCross-validation","615"),exact:!0,sidebar:"deep_learning"},{path:"/en/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/LeNet",component:f("/en/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/LeNet","02a"),exact:!0,sidebar:"deep_learning"},{path:"/en/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/LogisticRegression",component:f("/en/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/LogisticRegression","638"),exact:!0,sidebar:"deep_learning"},{path:"/en/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/Perceptron",component:f("/en/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/Perceptron","0bc"),exact:!0,sidebar:"deep_learning"},{path:"/en/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/PoolingLayer",component:f("/en/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/PoolingLayer","7cc"),exact:!0,sidebar:"deep_learning"},{path:"/en/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/PytorchBasics",component:f("/en/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/PytorchBasics","fc7"),exact:!0,sidebar:"deep_learning"},{path:"/en/docs/Deep-Learning/\u8bba\u6587\u7b14\u8bb0/Attention Is All You Need",component:f("/en/docs/Deep-Learning/\u8bba\u6587\u7b14\u8bb0/Attention Is All You Need","a1c"),exact:!0,sidebar:"deep_learning"},{path:"/en/docs/Deep-Learning/\u8bba\u6587\u7b14\u8bb0/Denoising Diffusion Probabilistic Models",component:f("/en/docs/Deep-Learning/\u8bba\u6587\u7b14\u8bb0/Denoising Diffusion Probabilistic Models","09b"),exact:!0,sidebar:"deep_learning"},{path:"/en/docs/Deep-Learning/\u8bba\u6587\u7b14\u8bb0/High-Resolution Image Synthesis with Latent Diffusion Models",component:f("/en/docs/Deep-Learning/\u8bba\u6587\u7b14\u8bb0/High-Resolution Image Synthesis with Latent Diffusion Models","dc6"),exact:!0,sidebar:"deep_learning"},{path:"/en/docs/Deep-Learning/\u8bba\u6587\u7b14\u8bb0/Zero-shot Generative Model Adaptation via Image-specific Prompt Learning",component:f("/en/docs/Deep-Learning/\u8bba\u6587\u7b14\u8bb0/Zero-shot Generative Model Adaptation via Image-specific Prompt Learning","566"),exact:!0,sidebar:"deep_learning"},{path:"/en/docs/Deep-Learning/\u5b9e\u6218\u7ec3\u4e60/Speaker Classification",component:f("/en/docs/Deep-Learning/\u5b9e\u6218\u7ec3\u4e60/Speaker Classification","41c"),exact:!0,sidebar:"deep_learning"},{path:"/en/docs/Deep-Learning/\u5b9e\u6218\u7ec3\u4e60/Undergraduate-Dissertation",component:f("/en/docs/Deep-Learning/\u5b9e\u6218\u7ec3\u4e60/Undergraduate-Dissertation","bc2"),exact:!0,sidebar:"deep_learning"},{path:"/en/docs/Deep-Learning/\u5b9e\u6218\u7ec3\u4e60/Visdom Visualization",component:f("/en/docs/Deep-Learning/\u5b9e\u6218\u7ec3\u4e60/Visdom Visualization","6b6"),exact:!0,sidebar:"deep_learning"},{path:"/en/docs/Deep-Learning/Fill-The-Gaps",component:f("/en/docs/Deep-Learning/Fill-The-Gaps","fc6"),exact:!0,sidebar:"deep_learning"},{path:"/en/docs/Deep-Learning/intro",component:f("/en/docs/Deep-Learning/intro","662"),exact:!0,sidebar:"deep_learning"},{path:"/en/docs/Others/\u535a\u5ba2\u642d\u5efa/\u544a\u793a\u680f",component:f("/en/docs/Others/\u535a\u5ba2\u642d\u5efa/\u544a\u793a\u680f","497"),exact:!0,sidebar:"others"},{path:"/en/docs/Others/intro",component:f("/en/docs/Others/intro","23a"),exact:!0,sidebar:"others"},{path:"/en/docs/Others/Linux/\u5ba2\u5236\u5316/\u5982\u4f55\u8ba9\u4f60\u7684KDE\u770b\u8d77\u6765\u66f4\u50cfmacOS",component:f("/en/docs/Others/Linux/\u5ba2\u5236\u5316/\u5982\u4f55\u8ba9\u4f60\u7684KDE\u770b\u8d77\u6765\u66f4\u50cfmacOS","563"),exact:!0,sidebar:"others"},{path:"/en/docs/Others/Linux/\u5b9e\u7528\u5de5\u5177/\u7ec8\u7aef\u4ee3\u7406",component:f("/en/docs/Others/Linux/\u5b9e\u7528\u5de5\u5177/\u7ec8\u7aef\u4ee3\u7406","ab2"),exact:!0,sidebar:"others"},{path:"/en/docs/Others/Linux/\u95ee\u9898\u89e3\u51b3/\u53cc\u7cfb\u7edf\u6302\u8f7dWindows\u78c1\u76d8\u4e3a\u53ea\u8bfb\u6587\u4ef6",component:f("/en/docs/Others/Linux/\u95ee\u9898\u89e3\u51b3/\u53cc\u7cfb\u7edf\u6302\u8f7dWindows\u78c1\u76d8\u4e3a\u53ea\u8bfb\u6587\u4ef6","bc9"),exact:!0,sidebar:"others"},{path:"/en/docs/Tui-Mian/\u673a\u8bd5/\u5927\u6570\u9664\u6cd5",component:f("/en/docs/Tui-Mian/\u673a\u8bd5/\u5927\u6570\u9664\u6cd5","862"),exact:!0,sidebar:"tui_mian"},{path:"/en/docs/Tui-Mian/\u8ba1\u7b97\u673a\u57fa\u7840\u7efc\u5408/\u6570\u636e\u7ed3\u6784",component:f("/en/docs/Tui-Mian/\u8ba1\u7b97\u673a\u57fa\u7840\u7efc\u5408/\u6570\u636e\u7ed3\u6784","4e7"),exact:!0,sidebar:"tui_mian"},{path:"/en/docs/Tui-Mian/\u7b80\u5386/\u7b80\u5386\u9762\u8bd5\u51c6\u5907",component:f("/en/docs/Tui-Mian/\u7b80\u5386/\u7b80\u5386\u9762\u8bd5\u51c6\u5907","ec5"),exact:!0,sidebar:"tui_mian"},{path:"/en/docs/Tui-Mian/\u6570\u5b66/\u6982\u7387\u8bba",component:f("/en/docs/Tui-Mian/\u6570\u5b66/\u6982\u7387\u8bba","ca3"),exact:!0,sidebar:"tui_mian"},{path:"/en/docs/Tui-Mian/\u6570\u5b66/\u590f\u4ee4\u8425\u9762\u8bd5\u6570\u5b66\u90e8\u5206\u590d\u4e60",component:f("/en/docs/Tui-Mian/\u6570\u5b66/\u590f\u4ee4\u8425\u9762\u8bd5\u6570\u5b66\u90e8\u5206\u590d\u4e60","cf2"),exact:!0,sidebar:"tui_mian"},{path:"/en/docs/Tui-Mian/\u6570\u5b66/\u7ebf\u6027\u4ee3\u6570",component:f("/en/docs/Tui-Mian/\u6570\u5b66/\u7ebf\u6027\u4ee3\u6570","65e"),exact:!0,sidebar:"tui_mian"},{path:"/en/docs/Tui-Mian/intro",component:f("/en/docs/Tui-Mian/intro","4c0"),exact:!0,sidebar:"tui_mian"},{path:"/en/docs/Tui-Mian/Summary",component:f("/en/docs/Tui-Mian/Summary","b9f"),exact:!0,sidebar:"tui_mian"}]},{path:"/en/",component:f("/en/","d83"),exact:!0},{path:"*",component:f("*")}]},8934:(e,t,n)=>{"use strict";n.d(t,{_:()=>a,t:()=>o});var r=n(7294);const a=r.createContext(!1);function o(e){let{children:t}=e;const[n,o]=(0,r.useState)(!1);return(0,r.useEffect)((()=>{o(!0)}),[]),r.createElement(a.Provider,{value:n},t)}},7221:(e,t,n)=>{"use strict";var r=n(7294),a=n(3935),o=n(3727),i=n(405),s=n(412);const l=[n(2497),n(3310),n(8320),n(2295),n(2601),n(7713)];var u=n(723),c=n(6550),d=n(8790);function f(e){let{children:t}=e;return r.createElement(r.Fragment,null,t)}var p=n(7462),h=n(5742),m=n(2263),g=n(4996),b=n(6668),v=n(1944),y=n(4711),w=n(9727),E=n(3320),k=n(8780),S=n(197);function x(){const{i18n:{defaultLocale:e,localeConfigs:t}}=(0,m.Z)(),n=(0,y.l)();return r.createElement(h.Z,null,Object.entries(t).map((e=>{let[t,{htmlLang:a}]=e;return r.createElement("link",{key:t,rel:"alternate",href:n.createUrl({locale:t,fullyQualified:!0}),hrefLang:a})})),r.createElement("link",{rel:"alternate",href:n.createUrl({locale:e,fullyQualified:!0}),hrefLang:"x-default"}))}function _(e){let{permalink:t}=e;const{siteConfig:{url:n}}=(0,m.Z)(),a=function(){const{siteConfig:{url:e,baseUrl:t,trailingSlash:n}}=(0,m.Z)(),{pathname:r}=(0,c.TH)();return e+(0,k.applyTrailingSlash)((0,g.Z)(r),{trailingSlash:n,baseUrl:t})}(),o=t?`${n}${t}`:a;return r.createElement(h.Z,null,r.createElement("meta",{property:"og:url",content:o}),r.createElement("link",{rel:"canonical",href:o}))}function L(){const{i18n:{currentLocale:e}}=(0,m.Z)(),{metadata:t,image:n}=(0,b.L)();return r.createElement(r.Fragment,null,r.createElement(h.Z,null,r.createElement("meta",{name:"twitter:card",content:"summary_large_image"}),r.createElement("body",{className:w.h})),n&&r.createElement(v.d,{image:n}),r.createElement(_,null),r.createElement(x,null),r.createElement(S.Z,{tag:E.HX,locale:e}),r.createElement(h.Z,null,t.map(((e,t)=>r.createElement("meta",(0,p.Z)({key:t},e))))))}const C=new Map;function T(e){if(C.has(e.pathname))return{...e,pathname:C.get(e.pathname)};if((0,d.f)(u.Z,e.pathname).some((e=>{let{route:t}=e;return!0===t.exact})))return C.set(e.pathname,e.pathname),e;const t=e.pathname.trim().replace(/(?:\/index)?\.html$/,"")||"/";return C.set(e.pathname,t),{...e,pathname:t}}var A=n(8934),O=n(8940);function P(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];const a=l.map((t=>{const r=t.default?.[e]??t[e];return r?.(...n)}));return()=>a.forEach((e=>e?.()))}const N=function(e){let{children:t,location:n,previousLocation:a}=e;return(0,r.useLayoutEffect)((()=>{a!==n&&(!function(e){let{location:t,previousLocation:n}=e;if(!n)return;const r=t.pathname===n.pathname,a=t.hash===n.hash,o=t.search===n.search;if(r&&a&&!o)return;const{hash:i}=t;if(i){const e=decodeURIComponent(i.substring(1)),t=document.getElementById(e);t?.scrollIntoView()}else window.scrollTo(0,0)}({location:n,previousLocation:a}),P("onRouteDidUpdate",{previousLocation:a,location:n}))}),[a,n]),t};function D(e){const t=Array.from(new Set([e,decodeURI(e)])).map((e=>(0,d.f)(u.Z,e))).flat();return Promise.all(t.map((e=>e.route.component.preload?.())))}class I extends r.Component{previousLocation;routeUpdateCleanupCb;constructor(e){super(e),this.previousLocation=null,this.routeUpdateCleanupCb=s.Z.canUseDOM?P("onRouteUpdate",{previousLocation:null,location:this.props.location}):()=>{},this.state={nextRouteHasLoaded:!0}}shouldComponentUpdate(e,t){if(e.location===this.props.location)return t.nextRouteHasLoaded;const n=e.location;return this.previousLocation=this.props.location,this.setState({nextRouteHasLoaded:!1}),this.routeUpdateCleanupCb=P("onRouteUpdate",{previousLocation:this.previousLocation,location:n}),D(n.pathname).then((()=>{this.routeUpdateCleanupCb(),this.setState({nextRouteHasLoaded:!0})})).catch((e=>{console.warn(e),window.location.reload()})),!1}render(){const{children:e,location:t}=this.props;return r.createElement(N,{previousLocation:this.previousLocation,location:t},r.createElement(c.AW,{location:t,render:()=>e}))}}const R=I,M="__docusaurus-base-url-issue-banner-container",F="__docusaurus-base-url-issue-banner",B="__docusaurus-base-url-issue-banner-suggestion-container",j="__DOCUSAURUS_INSERT_BASEURL_BANNER";function $(e){return`\nwindow['${j}'] = true;\n\ndocument.addEventListener('DOMContentLoaded', maybeInsertBanner);\n\nfunction maybeInsertBanner() {\n var shouldInsert = window['${j}'];\n shouldInsert && insertBanner();\n}\n\nfunction insertBanner() {\n var bannerContainer = document.getElementById('${M}');\n if (!bannerContainer) {\n return;\n }\n var bannerHtml = ${JSON.stringify(function(e){return`\n<div id="${F}" style="border: thick solid red; background-color: rgb(255, 230, 179); margin: 20px; padding: 20px; font-size: 20px;">\n <p style="font-weight: bold; font-size: 30px;">Your Docusaurus site did not load properly.</p>\n <p>A very common reason is a wrong site <a href="https://docusaurus.io/docs/docusaurus.config.js/#baseUrl" style="font-weight: bold;">baseUrl configuration</a>.</p>\n <p>Current configured baseUrl = <span style="font-weight: bold; color: red;">${e}</span> ${"/"===e?" (default value)":""}</p>\n <p>We suggest trying baseUrl = <span id="${B}" style="font-weight: bold; color: green;"></span></p>\n</div>\n`}(e)).replace(/</g,"\\<")};\n bannerContainer.innerHTML = bannerHtml;\n var suggestionContainer = document.getElementById('${B}');\n var actualHomePagePath = window.location.pathname;\n var suggestedBaseUrl = actualHomePagePath.substr(-1) === '/'\n ? actualHomePagePath\n : actualHomePagePath + '/';\n suggestionContainer.innerHTML = suggestedBaseUrl;\n}\n`}function z(){const{siteConfig:{baseUrl:e}}=(0,m.Z)();return(0,r.useLayoutEffect)((()=>{window[j]=!1}),[]),r.createElement(r.Fragment,null,!s.Z.canUseDOM&&r.createElement(h.Z,null,r.createElement("script",null,$(e))),r.createElement("div",{id:M}))}function U(){const{siteConfig:{baseUrl:e,baseUrlIssueBanner:t}}=(0,m.Z)(),{pathname:n}=(0,c.TH)();return t&&n===e?r.createElement(z,null):null}function H(){const{siteConfig:{favicon:e,title:t,noIndex:n},i18n:{currentLocale:a,localeConfigs:o}}=(0,m.Z)(),i=(0,g.Z)(e),{htmlLang:s,direction:l}=o[a];return r.createElement(h.Z,null,r.createElement("html",{lang:s,dir:l}),r.createElement("title",null,t),r.createElement("meta",{property:"og:title",content:t}),r.createElement("meta",{name:"viewport",content:"width=device-width, initial-scale=1.0"}),n&&r.createElement("meta",{name:"robots",content:"noindex, nofollow"}),e&&r.createElement("link",{rel:"icon",href:i}))}var Z=n(4763),Q=n(2389);function V(){const e=(0,Q.Z)();return r.createElement(h.Z,null,r.createElement("html",{"data-has-hydrated":e}))}function G(){const e=(0,d.H)(u.Z),t=(0,c.TH)();return r.createElement(Z.Z,null,r.createElement(O.M,null,r.createElement(A.t,null,r.createElement(f,null,r.createElement(H,null),r.createElement(L,null),r.createElement(U,null),r.createElement(R,{location:T(t)},e)),r.createElement(V,null))))}var W=n(6887);const q=function(e){try{return document.createElement("link").relList.supports(e)}catch{return!1}}("prefetch")?function(e){return new Promise(((t,n)=>{if("undefined"==typeof document)return void n();const r=document.createElement("link");r.setAttribute("rel","prefetch"),r.setAttribute("href",e),r.onload=()=>t(),r.onerror=()=>n();const a=document.getElementsByTagName("head")[0]??document.getElementsByName("script")[0]?.parentNode;a?.appendChild(r)}))}:function(e){return new Promise(((t,n)=>{const r=new XMLHttpRequest;r.open("GET",e,!0),r.withCredentials=!0,r.onload=()=>{200===r.status?t():n()},r.send(null)}))};var Y=n(9670);const K=new Set,X=new Set,J=()=>navigator.connection?.effectiveType.includes("2g")||navigator.connection?.saveData,ee={prefetch(e){if(!(e=>!J()&&!X.has(e)&&!K.has(e))(e))return!1;K.add(e);const t=(0,d.f)(u.Z,e).flatMap((e=>{return t=e.route.path,Object.entries(W).filter((e=>{let[n]=e;return n.replace(/-[^-]+$/,"")===t})).flatMap((e=>{let[,t]=e;return Object.values((0,Y.Z)(t))}));var t}));return Promise.all(t.map((e=>{const t=n.gca(e);return t&&!t.includes("undefined")?q(t).catch((()=>{})):Promise.resolve()})))},preload:e=>!!(e=>!J()&&!X.has(e))(e)&&(X.add(e),D(e))},te=Object.freeze(ee);if(s.Z.canUseDOM){window.docusaurus=te;const e=a.hydrate;D(window.location.pathname).then((()=>{e(r.createElement(i.B6,null,r.createElement(o.VK,null,r.createElement(G,null))),document.getElementById("__docusaurus"))}))}},8940:(e,t,n)=>{"use strict";n.d(t,{_:()=>c,M:()=>d});var r=n(7294),a=n(6809);const o=JSON.parse('{"docusaurus-plugin-content-docs":{"default":{"path":"/en/docs","versions":[{"name":"current","label":"Next","isLast":true,"path":"/en/docs","mainDocId":"Deep-Learning/intro","docs":[{"id":"Acknowledgement/intro","path":"/en/docs/Acknowledgement/intro","sidebar":"acknowledgement"},{"id":"Algorithms/\u673a\u8bd5\u6280\u5de7\u4e0eSTL","path":"/en/docs/Algorithms/\u673a\u8bd5\u6280\u5de7\u4e0eSTL","sidebar":"algorithms"},{"id":"Algorithms/\u9898\u89e3/\u53cd\u5e8f\u8f93\u51fa","path":"/en/docs/Algorithms/\u9898\u89e3/\u53cd\u5e8f\u8f93\u51fa","sidebar":"algorithms"},{"id":"Algorithms/\u9898\u89e3/\u6392\u5217\u7ec4\u5408\uff08\u6c4230\u7684\u500d\u6570\uff09","path":"/en/docs/Algorithms/\u9898\u89e3/\u6392\u5217\u7ec4\u5408\uff08\u6c4230\u7684\u500d\u6570\uff09","sidebar":"algorithms"},{"id":"Algorithms/\u9898\u89e3/\u4e00\u7ef4\u524d\u7f00\u548c\uff08\u5237\u51fa\u4e00\u9053\u5899\uff09","path":"/en/docs/Algorithms/\u9898\u89e3/\u4e00\u7ef4\u524d\u7f00\u548c\uff08\u5237\u51fa\u4e00\u9053\u5899\uff09","sidebar":"algorithms"},{"id":"Algorithms/intro","path":"/en/docs/Algorithms/intro","sidebar":"algorithms"},{"id":"Algorithms/STL\u6a21\u677f","path":"/en/docs/Algorithms/STL\u6a21\u677f","sidebar":"algorithms"},{"id":"Curriculum/\u7f16\u8bd1\u539f\u7406/Note","path":"/en/docs/Curriculum/\u7f16\u8bd1\u539f\u7406/Note","sidebar":"curriculum"},{"id":"Curriculum/\u64cd\u4f5c\u7cfb\u7edf\u8bfe\u8bbe/Environment-Configuration","path":"/en/docs/Curriculum/\u64cd\u4f5c\u7cfb\u7edf\u8bfe\u8bbe/Environment-Configuration","sidebar":"curriculum"},{"id":"Curriculum/\u64cd\u4f5c\u7cfb\u7edf\u8bfe\u8bbe/GeekOS-project-0","path":"/en/docs/Curriculum/\u64cd\u4f5c\u7cfb\u7edf\u8bfe\u8bbe/GeekOS-project-0","sidebar":"curriculum"},{"id":"Curriculum/\u6570\u5b57\u56fe\u50cf\u5904\u7406/Note","path":"/en/docs/Curriculum/\u6570\u5b57\u56fe\u50cf\u5904\u7406/Note","sidebar":"curriculum"},{"id":"Curriculum/intro","path":"/en/docs/Curriculum/intro","sidebar":"curriculum"},{"id":"Deep-Learning/\u5927\u6a21\u578b/Attention-Is-All-You-Need","path":"/en/docs/Deep-Learning/\u5927\u6a21\u578b/Attention-Is-All-You-Need","sidebar":"deep_learning"},{"id":"Deep-Learning/\u5927\u6a21\u578b/Diffusion-Model","path":"/en/docs/Deep-Learning/\u5927\u6a21\u578b/Diffusion-Model","sidebar":"deep_learning"},{"id":"Deep-Learning/\u5927\u6a21\u578b/GAN","path":"/en/docs/Deep-Learning/\u5927\u6a21\u578b/GAN","sidebar":"deep_learning"},{"id":"Deep-Learning/\u5927\u6a21\u578b/Image-Generation-Models","path":"/en/docs/Deep-Learning/\u5927\u6a21\u578b/Image-Generation-Models","sidebar":"deep_learning"},{"id":"Deep-Learning/\u5927\u6a21\u578b/Prompt Learning/Undergraduate-Dissertation","path":"/en/docs/Deep-Learning/\u5927\u6a21\u578b/Prompt Learning/Undergraduate-Dissertation","sidebar":"deep_learning"},{"id":"Deep-Learning/\u5927\u6a21\u578b/Self-Attention","path":"/en/docs/Deep-Learning/\u5927\u6a21\u578b/Self-Attention","sidebar":"deep_learning"},{"id":"Deep-Learning/\u5927\u6a21\u578b/Self-Supervised-Learning","path":"/en/docs/Deep-Learning/\u5927\u6a21\u578b/Self-Supervised-Learning","sidebar":"deep_learning"},{"id":"Deep-Learning/\u57fa\u7840\u77e5\u8bc6/\u6fc0\u6d3b\u51fd\u6570\u4e0eLoss\u7684\u68af\u5ea6","path":"/en/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/\u6fc0\u6d3b\u51fd\u6570\u4e0eLoss\u7684\u68af\u5ea6","sidebar":"deep_learning"},{"id":"Deep-Learning/\u57fa\u7840\u77e5\u8bc6/\u6df1\u5ea6\u53ef\u5206\u79bb\u5377\u79ef","path":"/en/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/\u6df1\u5ea6\u53ef\u5206\u79bb\u5377\u79ef","sidebar":"deep_learning"},{"id":"Deep-Learning/\u57fa\u7840\u77e5\u8bc6/\u6b63\u5219\u5316\u4e0e\u6743\u91cd\u8870\u9000","path":"/en/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/\u6b63\u5219\u5316\u4e0e\u6743\u91cd\u8870\u9000","sidebar":"deep_learning"},{"id":"Deep-Learning/\u57fa\u7840\u77e5\u8bc6/AlexNet","path":"/en/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/AlexNet","sidebar":"deep_learning"},{"id":"Deep-Learning/\u57fa\u7840\u77e5\u8bc6/ConvolutionalLayer","path":"/en/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/ConvolutionalLayer","sidebar":"deep_learning"},{"id":"Deep-Learning/\u57fa\u7840\u77e5\u8bc6/FromFullyConnectedLayerToConvolutionalLayer","path":"/en/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/FromFullyConnectedLayerToConvolutionalLayer","sidebar":"deep_learning"},{"id":"Deep-Learning/\u57fa\u7840\u77e5\u8bc6/K-foldCross-validation","path":"/en/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/K-foldCross-validation","sidebar":"deep_learning"},{"id":"Deep-Learning/\u57fa\u7840\u77e5\u8bc6/LeNet","path":"/en/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/LeNet","sidebar":"deep_learning"},{"id":"Deep-Learning/\u57fa\u7840\u77e5\u8bc6/LogisticRegression","path":"/en/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/LogisticRegression","sidebar":"deep_learning"},{"id":"Deep-Learning/\u57fa\u7840\u77e5\u8bc6/Perceptron","path":"/en/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/Perceptron","sidebar":"deep_learning"},{"id":"Deep-Learning/\u57fa\u7840\u77e5\u8bc6/PoolingLayer","path":"/en/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/PoolingLayer","sidebar":"deep_learning"},{"id":"Deep-Learning/\u57fa\u7840\u77e5\u8bc6/PytorchBasics","path":"/en/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/PytorchBasics","sidebar":"deep_learning"},{"id":"Deep-Learning/\u8bba\u6587\u7b14\u8bb0/Attention Is All You Need","path":"/en/docs/Deep-Learning/\u8bba\u6587\u7b14\u8bb0/Attention Is All You Need","sidebar":"deep_learning"},{"id":"Deep-Learning/\u8bba\u6587\u7b14\u8bb0/Denoising Diffusion Probabilistic Models","path":"/en/docs/Deep-Learning/\u8bba\u6587\u7b14\u8bb0/Denoising Diffusion Probabilistic Models","sidebar":"deep_learning"},{"id":"Deep-Learning/\u8bba\u6587\u7b14\u8bb0/High-Resolution Image Synthesis with Latent Diffusion Models","path":"/en/docs/Deep-Learning/\u8bba\u6587\u7b14\u8bb0/High-Resolution Image Synthesis with Latent Diffusion Models","sidebar":"deep_learning"},{"id":"Deep-Learning/\u8bba\u6587\u7b14\u8bb0/Zero-shot Generative Model Adaptation via Image-specific Prompt Learning","path":"/en/docs/Deep-Learning/\u8bba\u6587\u7b14\u8bb0/Zero-shot Generative Model Adaptation via Image-specific Prompt Learning","sidebar":"deep_learning"},{"id":"Deep-Learning/\u5b9e\u6218\u7ec3\u4e60/Speaker Classification","path":"/en/docs/Deep-Learning/\u5b9e\u6218\u7ec3\u4e60/Speaker Classification","sidebar":"deep_learning"},{"id":"Deep-Learning/\u5b9e\u6218\u7ec3\u4e60/Undergraduate-Dissertation","path":"/en/docs/Deep-Learning/\u5b9e\u6218\u7ec3\u4e60/Undergraduate-Dissertation","sidebar":"deep_learning"},{"id":"Deep-Learning/\u5b9e\u6218\u7ec3\u4e60/Visdom Visualization","path":"/en/docs/Deep-Learning/\u5b9e\u6218\u7ec3\u4e60/Visdom Visualization","sidebar":"deep_learning"},{"id":"Deep-Learning/Fill-The-Gaps","path":"/en/docs/Deep-Learning/Fill-The-Gaps","sidebar":"deep_learning"},{"id":"Deep-Learning/intro","path":"/en/docs/Deep-Learning/intro","sidebar":"deep_learning"},{"id":"Others/\u535a\u5ba2\u642d\u5efa/\u544a\u793a\u680f","path":"/en/docs/Others/\u535a\u5ba2\u642d\u5efa/\u544a\u793a\u680f","sidebar":"others"},{"id":"Others/intro","path":"/en/docs/Others/intro","sidebar":"others"},{"id":"Others/Linux/\u5ba2\u5236\u5316/\u5982\u4f55\u8ba9\u4f60\u7684KDE\u770b\u8d77\u6765\u66f4\u50cfmacOS","path":"/en/docs/Others/Linux/\u5ba2\u5236\u5316/\u5982\u4f55\u8ba9\u4f60\u7684KDE\u770b\u8d77\u6765\u66f4\u50cfmacOS","sidebar":"others"},{"id":"Others/Linux/\u5b9e\u7528\u5de5\u5177/\u7ec8\u7aef\u4ee3\u7406","path":"/en/docs/Others/Linux/\u5b9e\u7528\u5de5\u5177/\u7ec8\u7aef\u4ee3\u7406","sidebar":"others"},{"id":"Others/Linux/\u95ee\u9898\u89e3\u51b3/\u53cc\u7cfb\u7edf\u6302\u8f7dWindows\u78c1\u76d8\u4e3a\u53ea\u8bfb\u6587\u4ef6","path":"/en/docs/Others/Linux/\u95ee\u9898\u89e3\u51b3/\u53cc\u7cfb\u7edf\u6302\u8f7dWindows\u78c1\u76d8\u4e3a\u53ea\u8bfb\u6587\u4ef6","sidebar":"others"},{"id":"Tui-Mian/\u673a\u8bd5/\u5927\u6570\u9664\u6cd5","path":"/en/docs/Tui-Mian/\u673a\u8bd5/\u5927\u6570\u9664\u6cd5","sidebar":"tui_mian"},{"id":"Tui-Mian/\u8ba1\u7b97\u673a\u57fa\u7840\u7efc\u5408/\u6570\u636e\u7ed3\u6784","path":"/en/docs/Tui-Mian/\u8ba1\u7b97\u673a\u57fa\u7840\u7efc\u5408/\u6570\u636e\u7ed3\u6784","sidebar":"tui_mian"},{"id":"Tui-Mian/\u7b80\u5386/\u7b80\u5386\u9762\u8bd5\u51c6\u5907","path":"/en/docs/Tui-Mian/\u7b80\u5386/\u7b80\u5386\u9762\u8bd5\u51c6\u5907","sidebar":"tui_mian"},{"id":"Tui-Mian/\u6570\u5b66/\u6982\u7387\u8bba","path":"/en/docs/Tui-Mian/\u6570\u5b66/\u6982\u7387\u8bba","sidebar":"tui_mian"},{"id":"Tui-Mian/\u6570\u5b66/\u590f\u4ee4\u8425\u9762\u8bd5\u6570\u5b66\u90e8\u5206\u590d\u4e60","path":"/en/docs/Tui-Mian/\u6570\u5b66/\u590f\u4ee4\u8425\u9762\u8bd5\u6570\u5b66\u90e8\u5206\u590d\u4e60","sidebar":"tui_mian"},{"id":"Tui-Mian/\u6570\u5b66/\u7ebf\u6027\u4ee3\u6570","path":"/en/docs/Tui-Mian/\u6570\u5b66/\u7ebf\u6027\u4ee3\u6570","sidebar":"tui_mian"},{"id":"Tui-Mian/intro","path":"/en/docs/Tui-Mian/intro","sidebar":"tui_mian"},{"id":"Tui-Mian/Summary","path":"/en/docs/Tui-Mian/Summary","sidebar":"tui_mian"}],"draftIds":[],"sidebars":{"deep_learning":{"link":{"path":"/en/docs/Deep-Learning/intro","label":"Deep-Learning/intro"}},"tui_mian":{"link":{"path":"/en/docs/Tui-Mian/intro","label":"Tui-Mian/intro"}},"algorithms":{"link":{"path":"/en/docs/Algorithms/intro","label":"Algorithms/intro"}},"curriculum":{"link":{"path":"/en/docs/Curriculum/intro","label":"Curriculum/intro"}},"others":{"link":{"path":"/en/docs/Others/intro","label":"Others/intro"}},"acknowledgement":{"link":{"path":"/en/docs/Acknowledgement/intro","label":"Acknowledgement/intro"}}}}],"breadcrumbs":true}}}'),i=JSON.parse('{"defaultLocale":"zh-Hans","locales":["en","zh-Hans"],"path":"i18n","currentLocale":"en","localeConfigs":{"en":{"label":"English","direction":"ltr","htmlLang":"en","calendar":"gregory","path":"en"},"zh-Hans":{"label":"\u7b80\u4f53\u4e2d\u6587","direction":"ltr","htmlLang":"zh-Hans","calendar":"gregory","path":"zh-Hans"}}}');var s=n(7529);const l=JSON.parse('{"docusaurusVersion":"2.4.3","siteVersion":"1.0.0","pluginVersions":{"docusaurus-plugin-content-docs":{"type":"package","name":"@docusaurus/plugin-content-docs","version":"2.4.3"},"docusaurus-plugin-content-blog":{"type":"package","name":"@docusaurus/plugin-content-blog","version":"2.4.3"},"docusaurus-plugin-content-pages":{"type":"package","name":"@docusaurus/plugin-content-pages","version":"2.4.3"},"docusaurus-plugin-sitemap":{"type":"package","name":"@docusaurus/plugin-sitemap","version":"2.4.3"},"docusaurus-theme-classic":{"type":"package","name":"@docusaurus/theme-classic","version":"2.4.3"},"@easyops-cn/docusaurus-search-local":{"type":"package","name":"@easyops-cn/docusaurus-search-local","version":"0.35.0"}}}'),u={siteConfig:a.default,siteMetadata:l,globalData:o,i18n:i,codeTranslations:s},c=r.createContext(u);function d(e){let{children:t}=e;return r.createElement(c.Provider,{value:u},t)}},4763:(e,t,n)=>{"use strict";n.d(t,{Z:()=>f});var r=n(7294),a=n(412),o=n(5742),i=n(8780),s=n(179);function l(e){let{error:t,tryAgain:n}=e;return r.createElement("div",{style:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"flex-start",minHeight:"100vh",width:"100%",maxWidth:"80ch",fontSize:"20px",margin:"0 auto",padding:"1rem"}},r.createElement("h1",{style:{fontSize:"3rem"}},"This page crashed"),r.createElement("button",{type:"button",onClick:n,style:{margin:"1rem 0",fontSize:"2rem",cursor:"pointer",borderRadius:20,padding:"1rem"}},"Try again"),r.createElement(u,{error:t}))}function u(e){let{error:t}=e;const n=(0,i.getErrorCausalChain)(t).map((e=>e.message)).join("\n\nCause:\n");return r.createElement("p",{style:{whiteSpace:"pre-wrap"}},n)}function c(e){let{error:t,tryAgain:n}=e;return r.createElement(f,{fallback:()=>r.createElement(l,{error:t,tryAgain:n})},r.createElement(o.Z,null,r.createElement("title",null,"Page Error")),r.createElement(s.Z,null,r.createElement(l,{error:t,tryAgain:n})))}const d=e=>r.createElement(c,e);class f extends r.Component{constructor(e){super(e),this.state={error:null}}componentDidCatch(e){a.Z.canUseDOM&&this.setState({error:e})}render(){const{children:e}=this.props,{error:t}=this.state;if(t){const e={error:t,tryAgain:()=>this.setState({error:null})};return(this.props.fallback??d)(e)}return e??null}}},412:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});const r="undefined"!=typeof window&&"document"in window&&"createElement"in window.document,a={canUseDOM:r,canUseEventListeners:r&&("addEventListener"in window||"attachEvent"in window),canUseIntersectionObserver:r&&"IntersectionObserver"in window,canUseViewport:r&&"screen"in window}},5742:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(7294),a=n(405);function o(e){return r.createElement(a.ql,e)}},9960:(e,t,n)=>{"use strict";n.d(t,{Z:()=>p});var r=n(7462),a=n(7294),o=n(3727),i=n(8780),s=n(2263),l=n(3919),u=n(412);const c=a.createContext({collectLink:()=>{}});var d=n(4996);function f(e,t){let{isNavLink:n,to:f,href:p,activeClassName:h,isActive:m,"data-noBrokenLinkCheck":g,autoAddBaseUrl:b=!0,...v}=e;const{siteConfig:{trailingSlash:y,baseUrl:w}}=(0,s.Z)(),{withBaseUrl:E}=(0,d.C)(),k=(0,a.useContext)(c),S=(0,a.useRef)(null);(0,a.useImperativeHandle)(t,(()=>S.current));const x=f||p;const _=(0,l.Z)(x),L=x?.replace("pathname://","");let C=void 0!==L?(T=L,b&&(e=>e.startsWith("/"))(T)?E(T):T):void 0;var T;C&&_&&(C=(0,i.applyTrailingSlash)(C,{trailingSlash:y,baseUrl:w}));const A=(0,a.useRef)(!1),O=n?o.OL:o.rU,P=u.Z.canUseIntersectionObserver,N=(0,a.useRef)(),D=()=>{A.current||null==C||(window.docusaurus.preload(C),A.current=!0)};(0,a.useEffect)((()=>(!P&&_&&null!=C&&window.docusaurus.prefetch(C),()=>{P&&N.current&&N.current.disconnect()})),[N,C,P,_]);const I=C?.startsWith("#")??!1,R=!C||!_||I;return R||g||k.collectLink(C),R?a.createElement("a",(0,r.Z)({ref:S,href:C},x&&!_&&{target:"_blank",rel:"noopener noreferrer"},v)):a.createElement(O,(0,r.Z)({},v,{onMouseEnter:D,onTouchStart:D,innerRef:e=>{S.current=e,P&&e&&_&&(N.current=new window.IntersectionObserver((t=>{t.forEach((t=>{e===t.target&&(t.isIntersecting||t.intersectionRatio>0)&&(N.current.unobserve(e),N.current.disconnect(),null!=C&&window.docusaurus.prefetch(C))}))})),N.current.observe(e))},to:C},n&&{isActive:m,activeClassName:h}))}const p=a.forwardRef(f)},5999:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l,I:()=>s});var r=n(7294);function a(e,t){const n=e.split(/(\{\w+\})/).map(((e,n)=>{if(n%2==1){const n=t?.[e.slice(1,-1)];if(void 0!==n)return n}return e}));return n.some((e=>(0,r.isValidElement)(e)))?n.map(((e,t)=>(0,r.isValidElement)(e)?r.cloneElement(e,{key:t}):e)).filter((e=>""!==e)):n.join("")}var o=n(7529);function i(e){let{id:t,message:n}=e;if(void 0===t&&void 0===n)throw new Error("Docusaurus translation declarations must have at least a translation id or a default translation message");return o[t??n]??n??t}function s(e,t){let{message:n,id:r}=e;return a(i({message:n,id:r}),t)}function l(e){let{children:t,id:n,values:o}=e;if(t&&"string"!=typeof t)throw console.warn("Illegal <Translate> children",t),new Error("The Docusaurus <Translate> component only accept simple string values");const s=i({message:t,id:n});return r.createElement(r.Fragment,null,a(s,o))}},9935:(e,t,n)=>{"use strict";n.d(t,{m:()=>r});const r="default"},3919:(e,t,n)=>{"use strict";function r(e){return/^(?:\w*:|\/\/)/.test(e)}function a(e){return void 0!==e&&!r(e)}n.d(t,{Z:()=>a,b:()=>r})},4996:(e,t,n)=>{"use strict";n.d(t,{C:()=>i,Z:()=>s});var r=n(7294),a=n(2263),o=n(3919);function i(){const{siteConfig:{baseUrl:e,url:t}}=(0,a.Z)(),n=(0,r.useCallback)(((n,r)=>function(e,t,n,r){let{forcePrependBaseUrl:a=!1,absolute:i=!1}=void 0===r?{}:r;if(!n||n.startsWith("#")||(0,o.b)(n))return n;if(a)return t+n.replace(/^\//,"");if(n===t.replace(/\/$/,""))return t;const s=n.startsWith(t)?n:t+n.replace(/^\//,"");return i?e+s:s}(t,e,n,r)),[t,e]);return{withBaseUrl:n}}function s(e,t){void 0===t&&(t={});const{withBaseUrl:n}=i();return n(e,t)}},2263:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(7294),a=n(8940);function o(){return(0,r.useContext)(a._)}},2389:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(7294),a=n(8934);function o(){return(0,r.useContext)(a._)}},9670:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});const r=e=>"object"==typeof e&&!!e&&Object.keys(e).length>0;function a(e){const t={};return function e(n,a){Object.entries(n).forEach((n=>{let[o,i]=n;const s=a?`${a}.${o}`:o;r(i)?e(i,s):t[s]=i}))}(e),t}},226:(e,t,n)=>{"use strict";n.d(t,{_:()=>a,z:()=>o});var r=n(7294);const a=r.createContext(null);function o(e){let{children:t,value:n}=e;const o=r.useContext(a),i=(0,r.useMemo)((()=>function(e){let{parent:t,value:n}=e;if(!t){if(!n)throw new Error("Unexpected: no Docusaurus route context found");if(!("plugin"in n))throw new Error("Unexpected: Docusaurus topmost route context has no `plugin` attribute");return n}const r={...t.data,...n?.data};return{plugin:t.plugin,data:r}}({parent:o,value:n})),[o,n]);return r.createElement(a.Provider,{value:i},t)}},143:(e,t,n)=>{"use strict";n.d(t,{Iw:()=>m,gA:()=>f,_r:()=>c,Jo:()=>g,zh:()=>d,yW:()=>h,gB:()=>p});var r=n(6550),a=n(2263),o=n(9935);function i(e,t){void 0===t&&(t={});const n=function(){const{globalData:e}=(0,a.Z)();return e}()[e];if(!n&&t.failfast)throw new Error(`Docusaurus plugin global data not found for "${e}" plugin.`);return n}const s=e=>e.versions.find((e=>e.isLast));function l(e,t){const n=function(e,t){const n=s(e);return[...e.versions.filter((e=>e!==n)),n].find((e=>!!(0,r.LX)(t,{path:e.path,exact:!1,strict:!1})))}(e,t),a=n?.docs.find((e=>!!(0,r.LX)(t,{path:e.path,exact:!0,strict:!1})));return{activeVersion:n,activeDoc:a,alternateDocVersions:a?function(t){const n={};return e.versions.forEach((e=>{e.docs.forEach((r=>{r.id===t&&(n[e.name]=r)}))})),n}(a.id):{}}}const u={},c=()=>i("docusaurus-plugin-content-docs")??u,d=e=>function(e,t,n){void 0===t&&(t=o.m),void 0===n&&(n={});const r=i(e),a=r?.[t];if(!a&&n.failfast)throw new Error(`Docusaurus plugin global data not found for "${e}" plugin with id "${t}".`);return a}("docusaurus-plugin-content-docs",e,{failfast:!0});function f(e){void 0===e&&(e={});const t=c(),{pathname:n}=(0,r.TH)();return function(e,t,n){void 0===n&&(n={});const a=Object.entries(e).sort(((e,t)=>t[1].path.localeCompare(e[1].path))).find((e=>{let[,n]=e;return!!(0,r.LX)(t,{path:n.path,exact:!1,strict:!1})})),o=a?{pluginId:a[0],pluginData:a[1]}:void 0;if(!o&&n.failfast)throw new Error(`Can't find active docs plugin for "${t}" pathname, while it was expected to be found. Maybe you tried to use a docs feature that can only be used on a docs-related page? Existing docs plugin paths are: ${Object.values(e).map((e=>e.path)).join(", ")}`);return o}(t,n,e)}function p(e){return d(e).versions}function h(e){const t=d(e);return s(t)}function m(e){const t=d(e),{pathname:n}=(0,r.TH)();return l(t,n)}function g(e){const t=d(e),{pathname:n}=(0,r.TH)();return function(e,t){const n=s(e);return{latestDocSuggestion:l(e,t).alternateDocVersions[n.name],latestVersionSuggestion:n}}(t,n)}},8320:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(4865),a=n.n(r);a().configure({showSpinner:!1});const o={onRouteUpdate(e){let{location:t,previousLocation:n}=e;if(n&&t.pathname!==n.pathname){const e=window.setTimeout((()=>{a().start()}),200);return()=>window.clearTimeout(e)}},onRouteDidUpdate(){a().done()}}},3310:(e,t,n)=>{"use strict";n.r(t);var r=n(7410),a=n(6809);!function(e){const{themeConfig:{prism:t}}=a.default,{additionalLanguages:r}=t;globalThis.Prism=e,r.forEach((e=>{n(1248)(`./prism-${e}`)})),delete globalThis.Prism}(r.Z)},9471:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(7294);const a={iconExternalLink:"iconExternalLink_nPIU"};function o(e){let{width:t=13.5,height:n=13.5}=e;return r.createElement("svg",{width:t,height:n,"aria-hidden":"true",viewBox:"0 0 24 24",className:a.iconExternalLink},r.createElement("path",{fill:"currentColor",d:"M21 13v10h-21v-19h12v2h-10v15h17v-8h2zm3-12h-10.988l4.035 4-6.977 7.07 2.828 2.828 6.977-7.07 4.125 4.172v-11z"}))}},179:(e,t,n)=>{"use strict";n.d(t,{Z:()=>Nt});var r=n(7294),a=n(6010),o=n(4763),i=n(1944),s=n(7462),l=n(6550),u=n(5999),c=n(5936);const d="__docusaurus_skipToContent_fallback";function f(e){e.setAttribute("tabindex","-1"),e.focus(),e.removeAttribute("tabindex")}function p(){const e=(0,r.useRef)(null),{action:t}=(0,l.k6)(),n=(0,r.useCallback)((e=>{e.preventDefault();const t=document.querySelector("main:first-of-type")??document.getElementById(d);t&&f(t)}),[]);return(0,c.S)((n=>{let{location:r}=n;e.current&&!r.hash&&"PUSH"===t&&f(e.current)})),{containerRef:e,onClick:n}}const h=(0,u.I)({id:"theme.common.skipToMainContent",description:"The skip to content label used for accessibility, allowing to rapidly navigate to main content with keyboard tab/enter navigation",message:"Skip to main content"});function m(e){const t=e.children??h,{containerRef:n,onClick:a}=p();return r.createElement("div",{ref:n,role:"region","aria-label":h},r.createElement("a",(0,s.Z)({},e,{href:`#${d}`,onClick:a}),t))}var g=n(5281),b=n(9727);const v={skipToContent:"skipToContent_fXgn"};function y(){return r.createElement(m,{className:v.skipToContent})}var w=n(6668),E=n(9689);function k(e){let{width:t=21,height:n=21,color:a="currentColor",strokeWidth:o=1.2,className:i,...l}=e;return r.createElement("svg",(0,s.Z)({viewBox:"0 0 15 15",width:t,height:n},l),r.createElement("g",{stroke:a,strokeWidth:o},r.createElement("path",{d:"M.75.75l13.5 13.5M14.25.75L.75 14.25"})))}const S={closeButton:"closeButton_CVFx"};function x(e){return r.createElement("button",(0,s.Z)({type:"button","aria-label":(0,u.I)({id:"theme.AnnouncementBar.closeButtonAriaLabel",message:"Close",description:"The ARIA label for close button of announcement bar"})},e,{className:(0,a.Z)("clean-btn close",S.closeButton,e.className)}),r.createElement(k,{width:14,height:14,strokeWidth:3.1}))}const _={content:"content_knG7"};function L(e){const{announcementBar:t}=(0,w.L)(),{content:n}=t;return r.createElement("div",(0,s.Z)({},e,{className:(0,a.Z)(_.content,e.className),dangerouslySetInnerHTML:{__html:n}}))}const C={announcementBar:"announcementBar_mb4j",announcementBarPlaceholder:"announcementBarPlaceholder_vyr4",announcementBarClose:"announcementBarClose_gvF7",announcementBarContent:"announcementBarContent_xLdY"};function T(){const{announcementBar:e}=(0,w.L)(),{isActive:t,close:n}=(0,E.nT)();if(!t)return null;const{backgroundColor:a,textColor:o,isCloseable:i}=e;return r.createElement("div",{className:C.announcementBar,style:{backgroundColor:a,color:o},role:"banner"},i&&r.createElement("div",{className:C.announcementBarPlaceholder}),r.createElement(L,{className:C.announcementBarContent}),i&&r.createElement(x,{onClick:n,className:C.announcementBarClose}))}var A=n(2961),O=n(2466);var P=n(902),N=n(3102);const D=r.createContext(null);function I(e){let{children:t}=e;const n=function(){const e=(0,A.e)(),t=(0,N.HY)(),[n,a]=(0,r.useState)(!1),o=null!==t.component,i=(0,P.D9)(o);return(0,r.useEffect)((()=>{o&&!i&&a(!0)}),[o,i]),(0,r.useEffect)((()=>{o?e.shown||a(!0):a(!1)}),[e.shown,o]),(0,r.useMemo)((()=>[n,a]),[n])}();return r.createElement(D.Provider,{value:n},t)}function R(e){if(e.component){const t=e.component;return r.createElement(t,e.props)}}function M(){const e=(0,r.useContext)(D);if(!e)throw new P.i6("NavbarSecondaryMenuDisplayProvider");const[t,n]=e,a=(0,r.useCallback)((()=>n(!1)),[n]),o=(0,N.HY)();return(0,r.useMemo)((()=>({shown:t,hide:a,content:R(o)})),[a,o,t])}function F(e){let{header:t,primaryMenu:n,secondaryMenu:o}=e;const{shown:i}=M();return r.createElement("div",{className:"navbar-sidebar"},t,r.createElement("div",{className:(0,a.Z)("navbar-sidebar__items",{"navbar-sidebar__items--show-secondary":i})},r.createElement("div",{className:"navbar-sidebar__item menu"},n),r.createElement("div",{className:"navbar-sidebar__item menu"},o)))}var B=n(2949),j=n(2389);function $(e){return r.createElement("svg",(0,s.Z)({viewBox:"0 0 24 24",width:24,height:24},e),r.createElement("path",{fill:"currentColor",d:"M12,9c1.65,0,3,1.35,3,3s-1.35,3-3,3s-3-1.35-3-3S10.35,9,12,9 M12,7c-2.76,0-5,2.24-5,5s2.24,5,5,5s5-2.24,5-5 S14.76,7,12,7L12,7z M2,13l2,0c0.55,0,1-0.45,1-1s-0.45-1-1-1l-2,0c-0.55,0-1,0.45-1,1S1.45,13,2,13z M20,13l2,0c0.55,0,1-0.45,1-1 s-0.45-1-1-1l-2,0c-0.55,0-1,0.45-1,1S19.45,13,20,13z M11,2v2c0,0.55,0.45,1,1,1s1-0.45,1-1V2c0-0.55-0.45-1-1-1S11,1.45,11,2z M11,20v2c0,0.55,0.45,1,1,1s1-0.45,1-1v-2c0-0.55-0.45-1-1-1C11.45,19,11,19.45,11,20z M5.99,4.58c-0.39-0.39-1.03-0.39-1.41,0 c-0.39,0.39-0.39,1.03,0,1.41l1.06,1.06c0.39,0.39,1.03,0.39,1.41,0s0.39-1.03,0-1.41L5.99,4.58z M18.36,16.95 c-0.39-0.39-1.03-0.39-1.41,0c-0.39,0.39-0.39,1.03,0,1.41l1.06,1.06c0.39,0.39,1.03,0.39,1.41,0c0.39-0.39,0.39-1.03,0-1.41 L18.36,16.95z M19.42,5.99c0.39-0.39,0.39-1.03,0-1.41c-0.39-0.39-1.03-0.39-1.41,0l-1.06,1.06c-0.39,0.39-0.39,1.03,0,1.41 s1.03,0.39,1.41,0L19.42,5.99z M7.05,18.36c0.39-0.39,0.39-1.03,0-1.41c-0.39-0.39-1.03-0.39-1.41,0l-1.06,1.06 c-0.39,0.39-0.39,1.03,0,1.41s1.03,0.39,1.41,0L7.05,18.36z"}))}function z(e){return r.createElement("svg",(0,s.Z)({viewBox:"0 0 24 24",width:24,height:24},e),r.createElement("path",{fill:"currentColor",d:"M9.37,5.51C9.19,6.15,9.1,6.82,9.1,7.5c0,4.08,3.32,7.4,7.4,7.4c0.68,0,1.35-0.09,1.99-0.27C17.45,17.19,14.93,19,12,19 c-3.86,0-7-3.14-7-7C5,9.07,6.81,6.55,9.37,5.51z M12,3c-4.97,0-9,4.03-9,9s4.03,9,9,9s9-4.03,9-9c0-0.46-0.04-0.92-0.1-1.36 c-0.98,1.37-2.58,2.26-4.4,2.26c-2.98,0-5.4-2.42-5.4-5.4c0-1.81,0.89-3.42,2.26-4.4C12.92,3.04,12.46,3,12,3L12,3z"}))}const U={toggle:"toggle_vylO",toggleButton:"toggleButton_gllP",darkToggleIcon:"darkToggleIcon_wfgR",lightToggleIcon:"lightToggleIcon_pyhR",toggleButtonDisabled:"toggleButtonDisabled_aARS"};function H(e){let{className:t,buttonClassName:n,value:o,onChange:i}=e;const s=(0,j.Z)(),l=(0,u.I)({message:"Switch between dark and light mode (currently {mode})",id:"theme.colorToggle.ariaLabel",description:"The ARIA label for the navbar color mode toggle"},{mode:"dark"===o?(0,u.I)({message:"dark mode",id:"theme.colorToggle.ariaLabel.mode.dark",description:"The name for the dark color mode"}):(0,u.I)({message:"light mode",id:"theme.colorToggle.ariaLabel.mode.light",description:"The name for the light color mode"})});return r.createElement("div",{className:(0,a.Z)(U.toggle,t)},r.createElement("button",{className:(0,a.Z)("clean-btn",U.toggleButton,!s&&U.toggleButtonDisabled,n),type:"button",onClick:()=>i("dark"===o?"light":"dark"),disabled:!s,title:l,"aria-label":l,"aria-live":"polite"},r.createElement($,{className:(0,a.Z)(U.toggleIcon,U.lightToggleIcon)}),r.createElement(z,{className:(0,a.Z)(U.toggleIcon,U.darkToggleIcon)})))}const Z=r.memo(H),Q={darkNavbarColorModeToggle:"darkNavbarColorModeToggle_X3D1"};function V(e){let{className:t}=e;const n=(0,w.L)().navbar.style,a=(0,w.L)().colorMode.disableSwitch,{colorMode:o,setColorMode:i}=(0,B.I)();return a?null:r.createElement(Z,{className:t,buttonClassName:"dark"===n?Q.darkNavbarColorModeToggle:void 0,value:o,onChange:i})}var G=n(1327);function W(){return r.createElement(G.Z,{className:"navbar__brand",imageClassName:"navbar__logo",titleClassName:"navbar__title text--truncate"})}function q(){const e=(0,A.e)();return r.createElement("button",{type:"button","aria-label":(0,u.I)({id:"theme.docs.sidebar.closeSidebarButtonAriaLabel",message:"Close navigation bar",description:"The ARIA label for close button of mobile sidebar"}),className:"clean-btn navbar-sidebar__close",onClick:()=>e.toggle()},r.createElement(k,{color:"var(--ifm-color-emphasis-600)"}))}function Y(){return r.createElement("div",{className:"navbar-sidebar__brand"},r.createElement(W,null),r.createElement(V,{className:"margin-right--md"}),r.createElement(q,null))}var K=n(9960),X=n(4996),J=n(3919);function ee(e,t){return void 0!==e&&void 0!==t&&new RegExp(e,"gi").test(t)}var te=n(9471);function ne(e){let{activeBasePath:t,activeBaseRegex:n,to:a,href:o,label:i,html:l,isDropdownLink:u,prependBaseUrlToHref:c,...d}=e;const f=(0,X.Z)(a),p=(0,X.Z)(t),h=(0,X.Z)(o,{forcePrependBaseUrl:!0}),m=i&&o&&!(0,J.Z)(o),g=l?{dangerouslySetInnerHTML:{__html:l}}:{children:r.createElement(r.Fragment,null,i,m&&r.createElement(te.Z,u&&{width:12,height:12}))};return o?r.createElement(K.Z,(0,s.Z)({href:c?h:o},d,g)):r.createElement(K.Z,(0,s.Z)({to:f,isNavLink:!0},(t||n)&&{isActive:(e,t)=>n?ee(n,t.pathname):t.pathname.startsWith(p)},d,g))}function re(e){let{className:t,isDropdownItem:n=!1,...o}=e;const i=r.createElement(ne,(0,s.Z)({className:(0,a.Z)(n?"dropdown__link":"navbar__item navbar__link",t),isDropdownLink:n},o));return n?r.createElement("li",null,i):i}function ae(e){let{className:t,isDropdownItem:n,...o}=e;return r.createElement("li",{className:"menu__list-item"},r.createElement(ne,(0,s.Z)({className:(0,a.Z)("menu__link",t)},o)))}function oe(e){let{mobile:t=!1,position:n,...a}=e;const o=t?ae:re;return r.createElement(o,(0,s.Z)({},a,{activeClassName:a.activeClassName??(t?"menu__link--active":"navbar__link--active")}))}var ie=n(6043),se=n(8596),le=n(2263);function ue(e,t){return e.some((e=>function(e,t){return!!(0,se.Mg)(e.to,t)||!!ee(e.activeBaseRegex,t)||!(!e.activeBasePath||!t.startsWith(e.activeBasePath))}(e,t)))}function ce(e){let{items:t,position:n,className:o,onClick:i,...l}=e;const u=(0,r.useRef)(null),[c,d]=(0,r.useState)(!1);return(0,r.useEffect)((()=>{const e=e=>{u.current&&!u.current.contains(e.target)&&d(!1)};return document.addEventListener("mousedown",e),document.addEventListener("touchstart",e),document.addEventListener("focusin",e),()=>{document.removeEventListener("mousedown",e),document.removeEventListener("touchstart",e),document.removeEventListener("focusin",e)}}),[u]),r.createElement("div",{ref:u,className:(0,a.Z)("navbar__item","dropdown","dropdown--hoverable",{"dropdown--right":"right"===n,"dropdown--show":c})},r.createElement(ne,(0,s.Z)({"aria-haspopup":"true","aria-expanded":c,role:"button",href:l.to?void 0:"#",className:(0,a.Z)("navbar__link",o)},l,{onClick:l.to?void 0:e=>e.preventDefault(),onKeyDown:e=>{"Enter"===e.key&&(e.preventDefault(),d(!c))}}),l.children??l.label),r.createElement("ul",{className:"dropdown__menu"},t.map(((e,t)=>r.createElement(Qe,(0,s.Z)({isDropdownItem:!0,activeClassName:"dropdown__link--active"},e,{key:t}))))))}function de(e){let{items:t,className:n,position:o,onClick:i,...u}=e;const c=function(){const{siteConfig:{baseUrl:e}}=(0,le.Z)(),{pathname:t}=(0,l.TH)();return t.replace(e,"/")}(),d=ue(t,c),{collapsed:f,toggleCollapsed:p,setCollapsed:h}=(0,ie.u)({initialState:()=>!d});return(0,r.useEffect)((()=>{d&&h(!d)}),[c,d,h]),r.createElement("li",{className:(0,a.Z)("menu__list-item",{"menu__list-item--collapsed":f})},r.createElement(ne,(0,s.Z)({role:"button",className:(0,a.Z)("menu__link menu__link--sublist menu__link--sublist-caret",n)},u,{onClick:e=>{e.preventDefault(),p()}}),u.children??u.label),r.createElement(ie.z,{lazy:!0,as:"ul",className:"menu__list",collapsed:f},t.map(((e,t)=>r.createElement(Qe,(0,s.Z)({mobile:!0,isDropdownItem:!0,onClick:i,activeClassName:"menu__link--active"},e,{key:t}))))))}function fe(e){let{mobile:t=!1,...n}=e;const a=t?de:ce;return r.createElement(a,n)}var pe=n(4711);function he(e){let{width:t=20,height:n=20,...a}=e;return r.createElement("svg",(0,s.Z)({viewBox:"0 0 24 24",width:t,height:n,"aria-hidden":!0},a),r.createElement("path",{fill:"currentColor",d:"M12.87 15.07l-2.54-2.51.03-.03c1.74-1.94 2.98-4.17 3.71-6.53H17V4h-7V2H8v2H1v1.99h11.17C11.5 7.92 10.44 9.75 9 11.35 8.07 10.32 7.3 9.19 6.69 8h-2c.73 1.63 1.73 3.17 2.98 4.56l-5.09 5.02L4 19l5-5 3.11 3.11.76-2.04zM18.5 10h-2L12 22h2l1.12-3h4.75L21 22h2l-4.5-12zm-2.62 7l1.62-4.33L19.12 17h-3.24z"}))}const me="iconLanguage_nlXk";var ge=n(1029),be=n(412),ve=n(373),ye=n(143),we=n(22),Ee=n(8202),ke=n(3926),Se=n(1073),xe=n(2539),_e=n(726);const Le='<svg width="20" height="20" viewBox="0 0 20 20"><path d="M17 6v12c0 .52-.2 1-1 1H4c-.7 0-1-.33-1-1V2c0-.55.42-1 1-1h8l5 5zM14 8h-3.13c-.51 0-.87-.34-.87-.87V4" stroke="currentColor" fill="none" fill-rule="evenodd" stroke-linejoin="round"></path></svg>',Ce='<svg width="20" height="20" viewBox="0 0 20 20"><path d="M13 13h4-4V8H7v5h6v4-4H7V8H3h4V3v5h6V3v5h4-4v5zm-6 0v4-4H3h4z" stroke="currentColor" fill="none" fill-rule="evenodd" stroke-linecap="round" stroke-linejoin="round"></path></svg>',Te='<svg width="20" height="20" viewBox="0 0 20 20"><path d="M17 5H3h14zm0 5H3h14zm0 5H3h14z" stroke="currentColor" fill="none" fill-rule="evenodd" stroke-linejoin="round"></path></svg>',Ae='<svg width="20" height="20" viewBox="0 0 20 20"><g stroke="currentColor" fill="none" fill-rule="evenodd" stroke-linecap="round" stroke-linejoin="round"><path d="M18 3v4c0 2-2 4-4 4H2"></path><path d="M8 17l-6-6 6-6"></path></g></svg>',Oe='<svg width="40" height="40" viewBox="0 0 20 20" fill="none" fill-rule="evenodd" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"><path d="M15.5 4.8c2 3 1.7 7-1 9.7h0l4.3 4.3-4.3-4.3a7.8 7.8 0 01-9.8 1m-2.2-2.2A7.8 7.8 0 0113.2 2.4M2 18L18 2"></path></svg>',Pe='<svg viewBox="0 0 24 54"><g stroke="currentColor" fill="none" fill-rule="evenodd" stroke-linecap="round" stroke-linejoin="round"><path d="M8 6v42M20 27H8.3"></path></g></svg>',Ne='<svg viewBox="0 0 24 54"><g stroke="currentColor" fill="none" fill-rule="evenodd" stroke-linecap="round" stroke-linejoin="round"><path d="M8 6v21M20 27H8.3"></path></g></svg>',De={searchBar:"searchBar_RVTs",dropdownMenu:"dropdownMenu_qbY6",searchBarLeft:"searchBarLeft_MXDe",suggestion:"suggestion_fB_2",cursor:"cursor_eG29",hitTree:"hitTree_kk6K",hitIcon:"hitIcon_a7Zy",hitPath:"hitPath_ieM4",noResultsIcon:"noResultsIcon_EBY5",hitFooter:"hitFooter_E9YW",hitWrapper:"hitWrapper_sAK8",hitTitle:"hitTitle_vyVt",hitAction:"hitAction_NqkB",hideAction:"hideAction_vcyE",noResults:"noResults_l6Q3",searchBarContainer:"searchBarContainer_NW3z",searchBarLoadingRing:"searchBarLoadingRing_YnHq",searchClearButton:"searchClearButton_qk4g",searchIndexLoading:"searchIndexLoading_EJ1f",searchHintContainer:"searchHintContainer_Pkmr",searchHint:"searchHint_iIMx",focused:"focused_OWtg",input:"input_FOTf",hint:"hint_URu1",suggestions:"suggestions_X8XU",dataset:"dataset_QiCy",empty:"empty_eITn"};function Ie(e){let{document:t,type:n,page:r,metadata:a,tokens:o,isInterOfTree:i,isLastOfTree:s}=e;const l=0===n,u=1===n,c=[];i?c.push(Pe):s&&c.push(Ne);const d=c.map((e=>`<span class="${De.hitTree}">${e}</span>`)),f=`<span class="${De.hitIcon}">${l?Le:u?Ce:Te}</span>`,p=[`<span class="${De.hitTitle}">${(0,_e.o)(t.t,(0,Se.m)(a,"t"),o)}</span>`];if(!i&&!s&&ge.H6){const e=r?(r.b??[]).concat(r.t).concat(t.s&&t.s!==r.t?t.s:[]):t.b;p.push(`<span class="${De.hitPath}">${(0,ke.e)(e??[])}</span>`)}else l||p.push(`<span class="${De.hitPath}">${(0,xe.C)(r.t||(t.u.startsWith("/docs/api-reference/")?"API Reference":""),o)}</span>`);const h=`<span class="${De.hitAction}">${Ae}</span>`;return[...d,f,`<span class="${De.hitWrapper}">`,...p,"</span>",h].join("")}function Re(){return`<span class="${De.noResults}"><span class="${De.noResultsIcon}">${Oe}</span><span>${(0,u.I)({id:"theme.SearchBar.noResultsText",message:"No results"})}</span></span>`}var Me=n(311);async function Fe(){const e=await Promise.all([n.e(8443),n.e(5525)]).then(n.t.bind(n,6937,23)),t=e.default;return t.noConflict?t.noConflict():e.noConflict&&e.noConflict(),t}const Be="_highlight";const je=function(e){let{handleSearchBarToggle:t}=e;const{siteConfig:{baseUrl:n}}=(0,le.Z)(),o=(0,ye.gA)();let i=n;try{const{preferredVersion:e}=(0,ve.J)(o?.pluginId??ge.gQ);e&&!e.isLast&&(i=e.path+"/")}catch(R){if(ge.l9&&!(R instanceof P.i6))throw R}const s=(0,l.k6)(),c=(0,l.TH)(),d=(0,r.useRef)(null),f=(0,r.useRef)(new Map),p=(0,r.useRef)(!1),[h,m]=(0,r.useState)(!1),[g,b]=(0,r.useState)(!1),[v,y]=(0,r.useState)(""),w=(0,r.useRef)(null),E=(0,r.useRef)(""),[k,S]=(0,r.useState)("");(0,r.useEffect)((()=>{if(!Array.isArray(ge.Kc))return;let e="";if(c.pathname.startsWith(i)){const t=c.pathname.substring(i.length),n=ge.Kc.find((e=>t===e||t.startsWith(`${e}/`)));n&&(e=n)}E.current!==e&&(f.current.delete(e),E.current=e),S(e)}),[c.pathname,i]);const x=!!ge.hG&&Array.isArray(ge.Kc)&&""===k,_=(0,r.useCallback)((async()=>{if(x||f.current.get(k))return;f.current.set(k,"loading"),w.current?.autocomplete.destroy(),m(!0);const[{wrappedIndexes:e,zhDictionary:t},r]=await Promise.all([(0,we.w)(i,k),Fe()]);if(w.current=r(d.current,{hint:!1,autoselect:!0,openOnFocus:!0,cssClasses:{root:(0,a.Z)(De.searchBar,{[De.searchBarLeft]:"left"===ge.pu}),noPrefix:!0,dropdownMenu:De.dropdownMenu,input:De.input,hint:De.hint,suggestions:De.suggestions,suggestion:De.suggestion,cursor:De.cursor,dataset:De.dataset,empty:De.empty}},[{source:(0,Ee.v)(e,t,ge.qo),templates:{suggestion:Ie,empty:Re,footer:e=>{let{query:t,isEmpty:r}=e;if(r&&!k)return;const a=(e=>{let{query:t,isEmpty:r}=e;const a=document.createElement("a"),o=new URLSearchParams,l=(0,u.I)({id:"theme.SearchBar.seeAll",message:"See all results"}),c=(0,u.I)({id:"theme.SearchBar.seeAllOutsideContext",message:"See results outside {context}"},{context:k}),d=(0,u.I)({id:"theme.SearchBar.searchInContext",message:"See all results in {context}"},{context:k});let f;if(o.set("q",t),f=k&&r?c:k?d:l,Array.isArray(ge.Kc)&&!r&&o.set("ctx",k),i!==n){if(!i.startsWith(n))throw new Error(`Version url '${i}' does not start with base url '${n}', this is a bug of \`@easyops-cn/docusaurus-search-local\`, please report it.`);o.set("version",i.substring(n.length))}const p=`${n}search?${o.toString()}`;return a.href=p,a.textContent=f,a.addEventListener("click",(e=>{e.ctrlKey||e.metaKey||(e.preventDefault(),w.current?.autocomplete.close(),s.push(p))})),a})({query:t,isEmpty:r}),o=document.createElement("div");return o.className=De.hitFooter,o.appendChild(a),o}}}]).on("autocomplete:selected",(function(e,t){let{document:{u:n,h:r},tokens:a}=t;d.current?.blur();let o=n;if(ge.vc&&a.length>0){const e=new URLSearchParams;for(const t of a)e.append(Be,t);o+=`?${e.toString()}`}r&&(o+=r),s.push(o)})).on("autocomplete:closed",(()=>{d.current?.blur()})),f.current.set(k,"done"),m(!1),p.current){const e=d.current;e.value&&w.current?.autocomplete.open(),e.focus()}}),[x,k,i,n,s]);(0,r.useEffect)((()=>{if(!ge.vc)return;const e=be.Z.canUseDOM?new URLSearchParams(c.search).getAll(Be):[];setTimeout((()=>{const t=document.querySelector("article");if(!t)return;const n=new ge.vc(t);n.unmark(),0!==e.length&&n.mark(e),y(e.join(" ")),w.current?.autocomplete.setVal(e.join(" "))}))}),[c.search,c.pathname]);const[L,C]=(0,r.useState)(!1),T=(0,r.useCallback)((()=>{p.current=!0,_(),C(!0),t?.(!0)}),[t,_]),A=(0,r.useCallback)((()=>{C(!1),t?.(!1)}),[t]),O=(0,r.useCallback)((()=>{_()}),[_]),N=(0,r.useCallback)((e=>{y(e.target.value),e.target.value&&b(!0)}),[]),D=!!be.Z.canUseDOM&&/mac/i.test(navigator.userAgentData?.platform??navigator.platform);(0,r.useEffect)((()=>{if(!ge.AY)return;const e=e=>{!(D?e.metaKey:e.ctrlKey)||"k"!==e.key&&"K"!==e.key||(e.preventDefault(),d.current?.focus(),T())};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}}),[D,T]);const I=(0,r.useCallback)((()=>{const e=new URLSearchParams(c.search);e.delete(Be);const t=e.toString(),n=c.pathname+(""!=t?`?${t}`:"")+c.hash;n!=c.pathname+c.search+c.hash&&s.push(n),y(""),w.current?.autocomplete.setVal("")}),[c.pathname,c.search,c.hash,s]);return r.createElement("div",{className:(0,a.Z)("navbar__search",De.searchBarContainer,{[De.searchIndexLoading]:h&&g,[De.focused]:L}),hidden:x},r.createElement("input",{placeholder:(0,u.I)({id:"theme.SearchBar.label",message:"Search",description:"The ARIA label and placeholder for search button"}),"aria-label":"Search",className:"navbar__search-input",onMouseEnter:O,onFocus:T,onBlur:A,onChange:N,ref:d,value:v}),r.createElement(Me.Z,{className:De.searchBarLoadingRing}),ge.AY&&ge.t_&&(""!==v?r.createElement("button",{className:De.searchClearButton,onClick:I},"\u2715"):be.Z.canUseDOM&&r.createElement("div",{className:De.searchHintContainer},r.createElement("kbd",{className:De.searchHint},D?"\u2318":"ctrl"),r.createElement("kbd",{className:De.searchHint},"K"))))},$e={searchBox:"searchBox_ZlJk"};function ze(e){let{children:t,className:n}=e;return r.createElement("div",{className:(0,a.Z)(n,$e.searchBox)},t)}var Ue=n(2802);const He=e=>e.docs.find((t=>t.id===e.mainDocId));const Ze={default:oe,localeDropdown:function(e){let{mobile:t,dropdownItemsBefore:n,dropdownItemsAfter:a,...o}=e;const{i18n:{currentLocale:i,locales:c,localeConfigs:d}}=(0,le.Z)(),f=(0,pe.l)(),{search:p,hash:h}=(0,l.TH)(),m=[...n,...c.map((e=>{const n=`${`pathname://${f.createUrl({locale:e,fullyQualified:!1})}`}${p}${h}`;return{label:d[e].label,lang:d[e].htmlLang,to:n,target:"_self",autoAddBaseUrl:!1,className:e===i?t?"menu__link--active":"dropdown__link--active":""}})),...a],g=t?(0,u.I)({message:"Languages",id:"theme.navbar.mobileLanguageDropdown.label",description:"The label for the mobile language switcher dropdown"}):d[i].label;return r.createElement(fe,(0,s.Z)({},o,{mobile:t,label:r.createElement(r.Fragment,null,r.createElement(he,{className:me}),g),items:m}))},search:function(e){let{mobile:t,className:n}=e;return t?null:r.createElement(ze,{className:n},r.createElement(je,null))},dropdown:fe,html:function(e){let{value:t,className:n,mobile:o=!1,isDropdownItem:i=!1}=e;const s=i?"li":"div";return r.createElement(s,{className:(0,a.Z)({navbar__item:!o&&!i,"menu__list-item":o},n),dangerouslySetInnerHTML:{__html:t}})},doc:function(e){let{docId:t,label:n,docsPluginId:a,...o}=e;const{activeDoc:i}=(0,ye.Iw)(a),l=(0,Ue.vY)(t,a);return null===l?null:r.createElement(oe,(0,s.Z)({exact:!0},o,{isActive:()=>i?.path===l.path||!!i?.sidebar&&i.sidebar===l.sidebar,label:n??l.id,to:l.path}))},docSidebar:function(e){let{sidebarId:t,label:n,docsPluginId:a,...o}=e;const{activeDoc:i}=(0,ye.Iw)(a),l=(0,Ue.oz)(t,a).link;if(!l)throw new Error(`DocSidebarNavbarItem: Sidebar with ID "${t}" doesn't have anything to be linked to.`);return r.createElement(oe,(0,s.Z)({exact:!0},o,{isActive:()=>i?.sidebar===t,label:n??l.label,to:l.path}))},docsVersion:function(e){let{label:t,to:n,docsPluginId:a,...o}=e;const i=(0,Ue.lO)(a)[0],l=t??i.label,u=n??(e=>e.docs.find((t=>t.id===e.mainDocId)))(i).path;return r.createElement(oe,(0,s.Z)({},o,{label:l,to:u}))},docsVersionDropdown:function(e){let{mobile:t,docsPluginId:n,dropdownActiveClassDisabled:a,dropdownItemsBefore:o,dropdownItemsAfter:i,...c}=e;const{search:d,hash:f}=(0,l.TH)(),p=(0,ye.Iw)(n),h=(0,ye.gB)(n),{savePreferredVersionName:m}=(0,ve.J)(n),g=[...o,...h.map((e=>{const t=p.alternateDocVersions[e.name]??He(e);return{label:e.label,to:`${t.path}${d}${f}`,isActive:()=>e===p.activeVersion,onClick:()=>m(e.name)}})),...i],b=(0,Ue.lO)(n)[0],v=t&&g.length>1?(0,u.I)({id:"theme.navbar.mobileVersionsDropdown.label",message:"Versions",description:"The label for the navbar versions dropdown on mobile view"}):b.label,y=t&&g.length>1?void 0:He(b).path;return g.length<=1?r.createElement(oe,(0,s.Z)({},c,{mobile:t,label:v,to:y,isActive:a?()=>!1:void 0})):r.createElement(fe,(0,s.Z)({},c,{mobile:t,label:v,to:y,items:g,isActive:a?()=>!1:void 0}))}};function Qe(e){let{type:t,...n}=e;const a=function(e,t){return e&&"default"!==e?e:"items"in t?"dropdown":"default"}(t,n),o=Ze[a];if(!o)throw new Error(`No NavbarItem component found for type "${t}".`);return r.createElement(o,n)}function Ve(){const e=(0,A.e)(),t=(0,w.L)().navbar.items;return r.createElement("ul",{className:"menu__list"},t.map(((t,n)=>r.createElement(Qe,(0,s.Z)({mobile:!0},t,{onClick:()=>e.toggle(),key:n})))))}function Ge(e){return r.createElement("button",(0,s.Z)({},e,{type:"button",className:"clean-btn navbar-sidebar__back"}),r.createElement(u.Z,{id:"theme.navbar.mobileSidebarSecondaryMenu.backButtonLabel",description:"The label of the back button to return to main menu, inside the mobile navbar sidebar secondary menu (notably used to display the docs sidebar)"},"\u2190 Back to main menu"))}function We(){const e=0===(0,w.L)().navbar.items.length,t=M();return r.createElement(r.Fragment,null,!e&&r.createElement(Ge,{onClick:()=>t.hide()}),t.content)}function qe(){const e=(0,A.e)();var t;return void 0===(t=e.shown)&&(t=!0),(0,r.useEffect)((()=>(document.body.style.overflow=t?"hidden":"visible",()=>{document.body.style.overflow="visible"})),[t]),e.shouldRender?r.createElement(F,{header:r.createElement(Y,null),primaryMenu:r.createElement(Ve,null),secondaryMenu:r.createElement(We,null)}):null}const Ye={navbarHideable:"navbarHideable_m1mJ",navbarHidden:"navbarHidden_jGov"};function Ke(e){return r.createElement("div",(0,s.Z)({role:"presentation"},e,{className:(0,a.Z)("navbar-sidebar__backdrop",e.className)}))}function Xe(e){let{children:t}=e;const{navbar:{hideOnScroll:n,style:o}}=(0,w.L)(),i=(0,A.e)(),{navbarRef:s,isNavbarVisible:l}=function(e){const[t,n]=(0,r.useState)(e),a=(0,r.useRef)(!1),o=(0,r.useRef)(0),i=(0,r.useCallback)((e=>{null!==e&&(o.current=e.getBoundingClientRect().height)}),[]);return(0,O.RF)(((t,r)=>{let{scrollY:i}=t;if(!e)return;if(i<o.current)return void n(!0);if(a.current)return void(a.current=!1);const s=r?.scrollY,l=document.documentElement.scrollHeight-o.current,u=window.innerHeight;s&&i>=s?n(!1):i+u<l&&n(!0)})),(0,c.S)((t=>{if(!e)return;const r=t.location.hash;if(r?document.getElementById(r.substring(1)):void 0)return a.current=!0,void n(!1);n(!0)})),{navbarRef:i,isNavbarVisible:t}}(n);return r.createElement("nav",{ref:s,"aria-label":(0,u.I)({id:"theme.NavBar.navAriaLabel",message:"Main",description:"The ARIA label for the main navigation"}),className:(0,a.Z)("navbar","navbar--fixed-top",n&&[Ye.navbarHideable,!l&&Ye.navbarHidden],{"navbar--dark":"dark"===o,"navbar--primary":"primary"===o,"navbar-sidebar--show":i.shown})},t,r.createElement(Ke,{onClick:i.toggle}),r.createElement(qe,null))}var Je=n(8780);const et={errorBoundaryError:"errorBoundaryError_a6uf"};function tt(e){return r.createElement("button",(0,s.Z)({type:"button"},e),r.createElement(u.Z,{id:"theme.ErrorPageContent.tryAgain",description:"The label of the button to try again rendering when the React error boundary captures an error"},"Try again"))}function nt(e){let{error:t}=e;const n=(0,Je.getErrorCausalChain)(t).map((e=>e.message)).join("\n\nCause:\n");return r.createElement("p",{className:et.errorBoundaryError},n)}class rt extends r.Component{componentDidCatch(e,t){throw this.props.onError(e,t)}render(){return this.props.children}}const at="right";function ot(e){let{width:t=30,height:n=30,className:a,...o}=e;return r.createElement("svg",(0,s.Z)({className:a,width:t,height:n,viewBox:"0 0 30 30","aria-hidden":"true"},o),r.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeMiterlimit:"10",strokeWidth:"2",d:"M4 7h22M4 15h22M4 23h22"}))}function it(){const{toggle:e,shown:t}=(0,A.e)();return r.createElement("button",{onClick:e,"aria-label":(0,u.I)({id:"theme.docs.sidebar.toggleSidebarButtonAriaLabel",message:"Toggle navigation bar",description:"The ARIA label for hamburger menu button of mobile navigation"}),"aria-expanded":t,className:"navbar__toggle clean-btn",type:"button"},r.createElement(ot,null))}const st={colorModeToggle:"colorModeToggle_DEke"};function lt(e){let{items:t}=e;return r.createElement(r.Fragment,null,t.map(((e,t)=>r.createElement(rt,{key:t,onError:t=>new Error(`A theme navbar item failed to render.\nPlease double-check the following navbar item (themeConfig.navbar.items) of your Docusaurus config:\n${JSON.stringify(e,null,2)}`,{cause:t})},r.createElement(Qe,e)))))}function ut(e){let{left:t,right:n}=e;return r.createElement("div",{className:"navbar__inner"},r.createElement("div",{className:"navbar__items"},t),r.createElement("div",{className:"navbar__items navbar__items--right"},n))}function ct(){const e=(0,A.e)(),t=(0,w.L)().navbar.items,[n,a]=function(e){function t(e){return"left"===(e.position??at)}return[e.filter(t),e.filter((e=>!t(e)))]}(t),o=t.find((e=>"search"===e.type));return r.createElement(ut,{left:r.createElement(r.Fragment,null,!e.disabled&&r.createElement(it,null),r.createElement(W,null),r.createElement(lt,{items:n})),right:r.createElement(r.Fragment,null,r.createElement(lt,{items:a}),r.createElement(V,{className:st.colorModeToggle}),!o&&r.createElement(ze,null,r.createElement(je,null)))})}function dt(){return r.createElement(Xe,null,r.createElement(ct,null))}function ft(e){let{item:t}=e;const{to:n,href:a,label:o,prependBaseUrlToHref:i,...l}=t,u=(0,X.Z)(n),c=(0,X.Z)(a,{forcePrependBaseUrl:!0});return r.createElement(K.Z,(0,s.Z)({className:"footer__link-item"},a?{href:i?c:a}:{to:u},l),o,a&&!(0,J.Z)(a)&&r.createElement(te.Z,null))}function pt(e){let{item:t}=e;return t.html?r.createElement("li",{className:"footer__item",dangerouslySetInnerHTML:{__html:t.html}}):r.createElement("li",{key:t.href??t.to,className:"footer__item"},r.createElement(ft,{item:t}))}function ht(e){let{column:t}=e;return r.createElement("div",{className:"col footer__col"},r.createElement("div",{className:"footer__title"},t.title),r.createElement("ul",{className:"footer__items clean-list"},t.items.map(((e,t)=>r.createElement(pt,{key:t,item:e})))))}function mt(e){let{columns:t}=e;return r.createElement("div",{className:"row footer__links"},t.map(((e,t)=>r.createElement(ht,{key:t,column:e}))))}function gt(){return r.createElement("span",{className:"footer__link-separator"},"\xb7")}function bt(e){let{item:t}=e;return t.html?r.createElement("span",{className:"footer__link-item",dangerouslySetInnerHTML:{__html:t.html}}):r.createElement(ft,{item:t})}function vt(e){let{links:t}=e;return r.createElement("div",{className:"footer__links text--center"},r.createElement("div",{className:"footer__links"},t.map(((e,n)=>r.createElement(r.Fragment,{key:n},r.createElement(bt,{item:e}),t.length!==n+1&&r.createElement(gt,null))))))}function yt(e){let{links:t}=e;return function(e){return"title"in e[0]}(t)?r.createElement(mt,{columns:t}):r.createElement(vt,{links:t})}var wt=n(941);const Et={footerLogoLink:"footerLogoLink_BH7S"};function kt(e){let{logo:t}=e;const{withBaseUrl:n}=(0,X.C)(),o={light:n(t.src),dark:n(t.srcDark??t.src)};return r.createElement(wt.Z,{className:(0,a.Z)("footer__logo",t.className),alt:t.alt,sources:o,width:t.width,height:t.height,style:t.style})}function St(e){let{logo:t}=e;return t.href?r.createElement(K.Z,{href:t.href,className:Et.footerLogoLink,target:t.target},r.createElement(kt,{logo:t})):r.createElement(kt,{logo:t})}function xt(e){let{copyright:t}=e;return r.createElement("div",{className:"footer__copyright",dangerouslySetInnerHTML:{__html:t}})}function _t(e){let{style:t,links:n,logo:o,copyright:i}=e;return r.createElement("footer",{className:(0,a.Z)("footer",{"footer--dark":"dark"===t})},r.createElement("div",{className:"container container-fluid"},n,(o||i)&&r.createElement("div",{className:"footer__bottom text--center"},o&&r.createElement("div",{className:"margin-bottom--sm"},o),i)))}function Lt(){const{footer:e}=(0,w.L)();if(!e)return null;const{copyright:t,links:n,logo:a,style:o}=e;return r.createElement(_t,{style:o,links:n&&n.length>0&&r.createElement(yt,{links:n}),logo:a&&r.createElement(St,{logo:a}),copyright:t&&r.createElement(xt,{copyright:t})})}const Ct=r.memo(Lt),Tt=(0,P.Qc)([B.S,E.pl,O.OC,ve.L5,i.VC,function(e){let{children:t}=e;return r.createElement(N.n2,null,r.createElement(A.M,null,r.createElement(I,null,t)))}]);function At(e){let{children:t}=e;return r.createElement(Tt,null,t)}function Ot(e){let{error:t,tryAgain:n}=e;return r.createElement("main",{className:"container margin-vert--xl"},r.createElement("div",{className:"row"},r.createElement("div",{className:"col col--6 col--offset-3"},r.createElement("h1",{className:"hero__title"},r.createElement(u.Z,{id:"theme.ErrorPageContent.title",description:"The title of the fallback page when the page crashed"},"This page crashed.")),r.createElement("div",{className:"margin-vert--lg"},r.createElement(tt,{onClick:n,className:"button button--primary shadow--lw"})),r.createElement("hr",null),r.createElement("div",{className:"margin-vert--md"},r.createElement(nt,{error:t})))))}const Pt={mainWrapper:"mainWrapper_z2l0"};function Nt(e){const{children:t,noFooter:n,wrapperClassName:s,title:l,description:u}=e;return(0,b.t)(),r.createElement(At,null,r.createElement(i.d,{title:l,description:u}),r.createElement(y,null),r.createElement(T,null),r.createElement(dt,null),r.createElement("div",{id:d,className:(0,a.Z)(g.k.wrapper.main,Pt.mainWrapper,s)},r.createElement(o.Z,{fallback:e=>r.createElement(Ot,e)},t)),!n&&r.createElement(Ct,null))}},1327:(e,t,n)=>{"use strict";n.d(t,{Z:()=>d});var r=n(7462),a=n(7294),o=n(9960),i=n(4996),s=n(2263),l=n(6668),u=n(941);function c(e){let{logo:t,alt:n,imageClassName:r}=e;const o={light:(0,i.Z)(t.src),dark:(0,i.Z)(t.srcDark||t.src)},s=a.createElement(u.Z,{className:t.className,sources:o,height:t.height,width:t.width,alt:n,style:t.style});return r?a.createElement("div",{className:r},s):s}function d(e){const{siteConfig:{title:t}}=(0,s.Z)(),{navbar:{title:n,logo:u}}=(0,l.L)(),{imageClassName:d,titleClassName:f,...p}=e,h=(0,i.Z)(u?.href||"/"),m=n?"":t,g=u?.alt??m;return a.createElement(o.Z,(0,r.Z)({to:h},p,u?.target&&{target:u.target}),u&&a.createElement(c,{logo:u,alt:g,imageClassName:d}),null!=n&&a.createElement("b",{className:f},n))}},197:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(7294),a=n(5742);function o(e){let{locale:t,version:n,tag:o}=e;const i=t;return r.createElement(a.Z,null,t&&r.createElement("meta",{name:"docusaurus_locale",content:t}),n&&r.createElement("meta",{name:"docusaurus_version",content:n}),o&&r.createElement("meta",{name:"docusaurus_tag",content:o}),i&&r.createElement("meta",{name:"docsearch:language",content:i}),n&&r.createElement("meta",{name:"docsearch:version",content:n}),o&&r.createElement("meta",{name:"docsearch:docusaurus_tag",content:o}))}},941:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var r=n(7462),a=n(7294),o=n(6010),i=n(2389),s=n(2949);const l={themedImage:"themedImage_ToTc","themedImage--light":"themedImage--light_HNdA","themedImage--dark":"themedImage--dark_i4oU"};function u(e){const t=(0,i.Z)(),{colorMode:n}=(0,s.I)(),{sources:u,className:c,alt:d,...f}=e,p=t?"dark"===n?["dark"]:["light"]:["light","dark"];return a.createElement(a.Fragment,null,p.map((e=>a.createElement("img",(0,r.Z)({key:e,src:u[e],alt:d,className:(0,o.Z)(l.themedImage,l[`themedImage--${e}`],c)},f)))))}},6043:(e,t,n)=>{"use strict";n.d(t,{u:()=>l,z:()=>g});var r=n(7462),a=n(7294),o=n(412),i=n(1442);const s="ease-in-out";function l(e){let{initialState:t}=e;const[n,r]=(0,a.useState)(t??!1),o=(0,a.useCallback)((()=>{r((e=>!e))}),[]);return{collapsed:n,setCollapsed:r,toggleCollapsed:o}}const u={display:"none",overflow:"hidden",height:"0px"},c={display:"block",overflow:"visible",height:"auto"};function d(e,t){const n=t?u:c;e.style.display=n.display,e.style.overflow=n.overflow,e.style.height=n.height}function f(e){let{collapsibleRef:t,collapsed:n,animation:r}=e;const o=(0,a.useRef)(!1);(0,a.useEffect)((()=>{const e=t.current;function a(){const t=e.scrollHeight,n=r?.duration??function(e){if((0,i.n)())return 1;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}(t);return{transition:`height ${n}ms ${r?.easing??s}`,height:`${t}px`}}function l(){const t=a();e.style.transition=t.transition,e.style.height=t.height}if(!o.current)return d(e,n),void(o.current=!0);return e.style.willChange="height",function(){const t=requestAnimationFrame((()=>{n?(l(),requestAnimationFrame((()=>{e.style.height=u.height,e.style.overflow=u.overflow}))):(e.style.display="block",requestAnimationFrame((()=>{l()})))}));return()=>cancelAnimationFrame(t)}()}),[t,n,r])}function p(e){if(!o.Z.canUseDOM)return e?u:c}function h(e){let{as:t="div",collapsed:n,children:r,animation:o,onCollapseTransitionEnd:i,className:s,disableSSRStyle:l}=e;const u=(0,a.useRef)(null);return f({collapsibleRef:u,collapsed:n,animation:o}),a.createElement(t,{ref:u,style:l?void 0:p(n),onTransitionEnd:e=>{"height"===e.propertyName&&(d(u.current,n),i?.(n))},className:s},r)}function m(e){let{collapsed:t,...n}=e;const[o,i]=(0,a.useState)(!t),[s,l]=(0,a.useState)(t);return(0,a.useLayoutEffect)((()=>{t||i(!0)}),[t]),(0,a.useLayoutEffect)((()=>{o&&l(t)}),[o,t]),o?a.createElement(h,(0,r.Z)({},n,{collapsed:s})):null}function g(e){let{lazy:t,...n}=e;const r=t?m:h;return a.createElement(r,n)}},9689:(e,t,n)=>{"use strict";n.d(t,{nT:()=>h,pl:()=>p});var r=n(7294),a=n(2389),o=n(12),i=n(902),s=n(6668);const l=(0,o.WA)("docusaurus.announcement.dismiss"),u=(0,o.WA)("docusaurus.announcement.id"),c=()=>"true"===l.get(),d=e=>l.set(String(e)),f=r.createContext(null);function p(e){let{children:t}=e;const n=function(){const{announcementBar:e}=(0,s.L)(),t=(0,a.Z)(),[n,o]=(0,r.useState)((()=>!!t&&c()));(0,r.useEffect)((()=>{o(c())}),[]);const i=(0,r.useCallback)((()=>{d(!0),o(!0)}),[]);return(0,r.useEffect)((()=>{if(!e)return;const{id:t}=e;let n=u.get();"annoucement-bar"===n&&(n="announcement-bar");const r=t!==n;u.set(t),r&&d(!1),!r&&c()||o(!1)}),[e]),(0,r.useMemo)((()=>({isActive:!!e&&!n,close:i})),[e,n,i])}();return r.createElement(f.Provider,{value:n},t)}function h(){const e=(0,r.useContext)(f);if(!e)throw new i.i6("AnnouncementBarProvider");return e}},2949:(e,t,n)=>{"use strict";n.d(t,{I:()=>g,S:()=>m});var r=n(7294),a=n(412),o=n(902),i=n(12),s=n(6668);const l=r.createContext(void 0),u="theme",c=(0,i.WA)(u),d={light:"light",dark:"dark"},f=e=>e===d.dark?d.dark:d.light,p=e=>a.Z.canUseDOM?f(document.documentElement.getAttribute("data-theme")):f(e),h=e=>{c.set(f(e))};function m(e){let{children:t}=e;const n=function(){const{colorMode:{defaultMode:e,disableSwitch:t,respectPrefersColorScheme:n}}=(0,s.L)(),[a,o]=(0,r.useState)(p(e));(0,r.useEffect)((()=>{t&&c.del()}),[t]);const i=(0,r.useCallback)((function(t,r){void 0===r&&(r={});const{persist:a=!0}=r;t?(o(t),a&&h(t)):(o(n?window.matchMedia("(prefers-color-scheme: dark)").matches?d.dark:d.light:e),c.del())}),[n,e]);(0,r.useEffect)((()=>{document.documentElement.setAttribute("data-theme",f(a))}),[a]),(0,r.useEffect)((()=>{if(t)return;const e=e=>{if(e.key!==u)return;const t=c.get();null!==t&&i(f(t))};return window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)}),[t,i]);const l=(0,r.useRef)(!1);return(0,r.useEffect)((()=>{if(t&&!n)return;const e=window.matchMedia("(prefers-color-scheme: dark)"),r=()=>{window.matchMedia("print").matches||l.current?l.current=window.matchMedia("print").matches:i(null)};return e.addListener(r),()=>e.removeListener(r)}),[i,t,n]),(0,r.useMemo)((()=>({colorMode:a,setColorMode:i,get isDarkTheme(){return a===d.dark},setLightTheme(){i(d.light)},setDarkTheme(){i(d.dark)}})),[a,i])}();return r.createElement(l.Provider,{value:n},t)}function g(){const e=(0,r.useContext)(l);if(null==e)throw new o.i6("ColorModeProvider","Please see https://docusaurus.io/docs/api/themes/configuration#use-color-mode.");return e}},373:(e,t,n)=>{"use strict";n.d(t,{J:()=>v,L5:()=>g});var r=n(7294),a=n(143),o=n(9935),i=n(6668),s=n(2802),l=n(902),u=n(12);const c=e=>`docs-preferred-version-${e}`,d={save:(e,t,n)=>{(0,u.WA)(c(e),{persistence:t}).set(n)},read:(e,t)=>(0,u.WA)(c(e),{persistence:t}).get(),clear:(e,t)=>{(0,u.WA)(c(e),{persistence:t}).del()}},f=e=>Object.fromEntries(e.map((e=>[e,{preferredVersionName:null}])));const p=r.createContext(null);function h(){const e=(0,a._r)(),t=(0,i.L)().docs.versionPersistence,n=(0,r.useMemo)((()=>Object.keys(e)),[e]),[o,s]=(0,r.useState)((()=>f(n)));(0,r.useEffect)((()=>{s(function(e){let{pluginIds:t,versionPersistence:n,allDocsData:r}=e;function a(e){const t=d.read(e,n);return r[e].versions.some((e=>e.name===t))?{preferredVersionName:t}:(d.clear(e,n),{preferredVersionName:null})}return Object.fromEntries(t.map((e=>[e,a(e)])))}({allDocsData:e,versionPersistence:t,pluginIds:n}))}),[e,t,n]);return[o,(0,r.useMemo)((()=>({savePreferredVersion:function(e,n){d.save(e,t,n),s((t=>({...t,[e]:{preferredVersionName:n}})))}})),[t])]}function m(e){let{children:t}=e;const n=h();return r.createElement(p.Provider,{value:n},t)}function g(e){let{children:t}=e;return s.cE?r.createElement(m,null,t):r.createElement(r.Fragment,null,t)}function b(){const e=(0,r.useContext)(p);if(!e)throw new l.i6("DocsPreferredVersionContextProvider");return e}function v(e){void 0===e&&(e=o.m);const t=(0,a.zh)(e),[n,i]=b(),{preferredVersionName:s}=n[e];return{preferredVersion:t.versions.find((e=>e.name===s))??null,savePreferredVersionName:(0,r.useCallback)((t=>{i.savePreferredVersion(e,t)}),[i,e])}}},1116:(e,t,n)=>{"use strict";n.d(t,{V:()=>l,b:()=>s});var r=n(7294),a=n(902);const o=Symbol("EmptyContext"),i=r.createContext(o);function s(e){let{children:t,name:n,items:a}=e;const o=(0,r.useMemo)((()=>n&&a?{name:n,items:a}:null),[n,a]);return r.createElement(i.Provider,{value:o},t)}function l(){const e=(0,r.useContext)(i);if(e===o)throw new a.i6("DocsSidebarProvider");return e}},2961:(e,t,n)=>{"use strict";n.d(t,{M:()=>f,e:()=>p});var r=n(7294),a=n(3102),o=n(7524),i=n(6550),s=(n(1688),n(902));function l(e){!function(e){const t=(0,i.k6)(),n=(0,s.zX)(e);(0,r.useEffect)((()=>t.block(((e,t)=>n(e,t)))),[t,n])}(((t,n)=>{if("POP"===n)return e(t,n)}))}var u=n(6668);const c=r.createContext(void 0);function d(){const e=function(){const e=(0,a.HY)(),{items:t}=(0,u.L)().navbar;return 0===t.length&&!e.component}(),t=(0,o.i)(),n=!e&&"mobile"===t,[i,s]=(0,r.useState)(!1);l((()=>{if(i)return s(!1),!1}));const c=(0,r.useCallback)((()=>{s((e=>!e))}),[]);return(0,r.useEffect)((()=>{"desktop"===t&&s(!1)}),[t]),(0,r.useMemo)((()=>({disabled:e,shouldRender:n,toggle:c,shown:i})),[e,n,c,i])}function f(e){let{children:t}=e;const n=d();return r.createElement(c.Provider,{value:n},t)}function p(){const e=r.useContext(c);if(void 0===e)throw new s.i6("NavbarMobileSidebarProvider");return e}},3102:(e,t,n)=>{"use strict";n.d(t,{HY:()=>s,Zo:()=>l,n2:()=>i});var r=n(7294),a=n(902);const o=r.createContext(null);function i(e){let{children:t}=e;const n=(0,r.useState)({component:null,props:null});return r.createElement(o.Provider,{value:n},t)}function s(){const e=(0,r.useContext)(o);if(!e)throw new a.i6("NavbarSecondaryMenuContentProvider");return e[0]}function l(e){let{component:t,props:n}=e;const i=(0,r.useContext)(o);if(!i)throw new a.i6("NavbarSecondaryMenuContentProvider");const[,s]=i,l=(0,a.Ql)(n);return(0,r.useEffect)((()=>{s({component:t,props:l})}),[s,t,l]),(0,r.useEffect)((()=>()=>s({component:null,props:null})),[s]),null}},9727:(e,t,n)=>{"use strict";n.d(t,{h:()=>a,t:()=>o});var r=n(7294);const a="navigation-with-keyboard";function o(){(0,r.useEffect)((()=>{function e(e){"keydown"===e.type&&"Tab"===e.key&&document.body.classList.add(a),"mousedown"===e.type&&document.body.classList.remove(a)}return document.addEventListener("keydown",e),document.addEventListener("mousedown",e),()=>{document.body.classList.remove(a),document.removeEventListener("keydown",e),document.removeEventListener("mousedown",e)}}),[])}},7524:(e,t,n)=>{"use strict";n.d(t,{i:()=>u});var r=n(7294),a=n(412);const o={desktop:"desktop",mobile:"mobile",ssr:"ssr"},i=996;function s(){return a.Z.canUseDOM?window.innerWidth>i?o.desktop:o.mobile:o.ssr}const l=!1;function u(){const[e,t]=(0,r.useState)((()=>l?"ssr":s()));return(0,r.useEffect)((()=>{function e(){t(s())}const n=l?window.setTimeout(e,1e3):void 0;return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e),clearTimeout(n)}}),[]),e}},5281:(e,t,n)=>{"use strict";n.d(t,{k:()=>r});const r={page:{blogListPage:"blog-list-page",blogPostPage:"blog-post-page",blogTagsListPage:"blog-tags-list-page",blogTagPostListPage:"blog-tags-post-list-page",docsDocPage:"docs-doc-page",docsTagsListPage:"docs-tags-list-page",docsTagDocListPage:"docs-tags-doc-list-page",mdxPage:"mdx-page"},wrapper:{main:"main-wrapper",blogPages:"blog-wrapper",docsPages:"docs-wrapper",mdxPages:"mdx-wrapper"},common:{editThisPage:"theme-edit-this-page",lastUpdated:"theme-last-updated",backToTopButton:"theme-back-to-top-button",codeBlock:"theme-code-block",admonition:"theme-admonition",admonitionType:e=>`theme-admonition-${e}`},layout:{},docs:{docVersionBanner:"theme-doc-version-banner",docVersionBadge:"theme-doc-version-badge",docBreadcrumbs:"theme-doc-breadcrumbs",docMarkdown:"theme-doc-markdown",docTocMobile:"theme-doc-toc-mobile",docTocDesktop:"theme-doc-toc-desktop",docFooter:"theme-doc-footer",docFooterTagsRow:"theme-doc-footer-tags-row",docFooterEditMetaRow:"theme-doc-footer-edit-meta-row",docSidebarContainer:"theme-doc-sidebar-container",docSidebarMenu:"theme-doc-sidebar-menu",docSidebarItemCategory:"theme-doc-sidebar-item-category",docSidebarItemLink:"theme-doc-sidebar-item-link",docSidebarItemCategoryLevel:e=>`theme-doc-sidebar-item-category-level-${e}`,docSidebarItemLinkLevel:e=>`theme-doc-sidebar-item-link-level-${e}`},blog:{}}},1442:(e,t,n)=>{"use strict";function r(){return window.matchMedia("(prefers-reduced-motion: reduce)").matches}n.d(t,{n:()=>r})},2802:(e,t,n)=>{"use strict";n.d(t,{Wl:()=>f,_F:()=>m,cE:()=>d,hI:()=>E,lO:()=>v,vY:()=>w,oz:()=>y,s1:()=>b});var r=n(7294),a=n(6550),o=n(8790),i=n(143),s=n(373),l=n(1116);function u(e){return Array.from(new Set(e))}var c=n(8596);const d=!!i._r;function f(e){if(e.href)return e.href;for(const t of e.items){if("link"===t.type)return t.href;if("category"===t.type){const e=f(t);if(e)return e}}}const p=(e,t)=>void 0!==e&&(0,c.Mg)(e,t),h=(e,t)=>e.some((e=>m(e,t)));function m(e,t){return"link"===e.type?p(e.href,t):"category"===e.type&&(p(e.href,t)||h(e.items,t))}function g(e){let{sidebarItems:t,pathname:n,onlyCategories:r=!1}=e;const a=[];return function e(t){for(const o of t)if("category"===o.type&&((0,c.Mg)(o.href,n)||e(o.items))||"link"===o.type&&(0,c.Mg)(o.href,n)){return r&&"category"!==o.type||a.unshift(o),!0}return!1}(t),a}function b(){const e=(0,l.V)(),{pathname:t}=(0,a.TH)(),n=(0,i.gA)()?.pluginData.breadcrumbs;return!1!==n&&e?g({sidebarItems:e.items,pathname:t}):null}function v(e){const{activeVersion:t}=(0,i.Iw)(e),{preferredVersion:n}=(0,s.J)(e),a=(0,i.yW)(e);return(0,r.useMemo)((()=>u([t,n,a].filter(Boolean))),[t,n,a])}function y(e,t){const n=v(t);return(0,r.useMemo)((()=>{const t=n.flatMap((e=>e.sidebars?Object.entries(e.sidebars):[])),r=t.find((t=>t[0]===e));if(!r)throw new Error(`Can't find any sidebar with id "${e}" in version${n.length>1?"s":""} ${n.map((e=>e.name)).join(", ")}".\nAvailable sidebar ids are:\n- ${t.map((e=>e[0])).join("\n- ")}`);return r[1]}),[e,n])}function w(e,t){const n=v(t);return(0,r.useMemo)((()=>{const t=n.flatMap((e=>e.docs)),r=t.find((t=>t.id===e));if(!r){if(n.flatMap((e=>e.draftIds)).includes(e))return null;throw new Error(`Couldn't find any doc with id "${e}" in version${n.length>1?"s":""} "${n.map((e=>e.name)).join(", ")}".\nAvailable doc ids are:\n- ${u(t.map((e=>e.id))).join("\n- ")}`)}return r}),[e,n])}function E(e){let{route:t,versionMetadata:n}=e;const r=(0,a.TH)(),i=t.routes,s=i.find((e=>(0,a.LX)(r.pathname,e)));if(!s)return null;const l=s.sidebar,u=l?n.docsSidebars[l]:void 0;return{docElement:(0,o.H)(i),sidebarName:l,sidebarItems:u}}},1944:(e,t,n)=>{"use strict";n.d(t,{FG:()=>f,d:()=>c,VC:()=>p});var r=n(7294),a=n(6010),o=n(5742),i=n(226);function s(){const e=r.useContext(i._);if(!e)throw new Error("Unexpected: no Docusaurus route context found");return e}var l=n(4996),u=n(2263);function c(e){let{title:t,description:n,keywords:a,image:i,children:s}=e;const c=function(e){const{siteConfig:t}=(0,u.Z)(),{title:n,titleDelimiter:r}=t;return e?.trim().length?`${e.trim()} ${r} ${n}`:n}(t),{withBaseUrl:d}=(0,l.C)(),f=i?d(i,{absolute:!0}):void 0;return r.createElement(o.Z,null,t&&r.createElement("title",null,c),t&&r.createElement("meta",{property:"og:title",content:c}),n&&r.createElement("meta",{name:"description",content:n}),n&&r.createElement("meta",{property:"og:description",content:n}),a&&r.createElement("meta",{name:"keywords",content:Array.isArray(a)?a.join(","):a}),f&&r.createElement("meta",{property:"og:image",content:f}),f&&r.createElement("meta",{name:"twitter:image",content:f}),s)}const d=r.createContext(void 0);function f(e){let{className:t,children:n}=e;const i=r.useContext(d),s=(0,a.Z)(i,t);return r.createElement(d.Provider,{value:s},r.createElement(o.Z,null,r.createElement("html",{className:s})),n)}function p(e){let{children:t}=e;const n=s(),o=`plugin-${n.plugin.name.replace(/docusaurus-(?:plugin|theme)-(?:content-)?/gi,"")}`;const i=`plugin-id-${n.plugin.id}`;return r.createElement(f,{className:(0,a.Z)(o,i)},t)}},902:(e,t,n)=>{"use strict";n.d(t,{D9:()=>i,Qc:()=>u,Ql:()=>l,i6:()=>s,zX:()=>o});var r=n(7294);const a=n(412).Z.canUseDOM?r.useLayoutEffect:r.useEffect;function o(e){const t=(0,r.useRef)(e);return a((()=>{t.current=e}),[e]),(0,r.useCallback)((function(){return t.current(...arguments)}),[])}function i(e){const t=(0,r.useRef)();return a((()=>{t.current=e})),t.current}class s extends Error{constructor(e,t){super(),this.name="ReactContextError",this.message=`Hook ${this.stack?.split("\n")[1]?.match(/at (?:\w+\.)?(?<name>\w+)/)?.groups.name??""} is called outside the <${e}>. ${t??""}`}}function l(e){const t=Object.entries(e);return t.sort(((e,t)=>e[0].localeCompare(t[0]))),(0,r.useMemo)((()=>e),t.flat())}function u(e){return t=>{let{children:n}=t;return r.createElement(r.Fragment,null,e.reduceRight(((e,t)=>r.createElement(t,null,e)),n))}}},8596:(e,t,n)=>{"use strict";n.d(t,{Mg:()=>i,Ns:()=>s});var r=n(7294),a=n(723),o=n(2263);function i(e,t){const n=e=>(!e||e.endsWith("/")?e:`${e}/`)?.toLowerCase();return n(e)===n(t)}function s(){const{baseUrl:e}=(0,o.Z)().siteConfig;return(0,r.useMemo)((()=>function(e){let{baseUrl:t,routes:n}=e;function r(e){return e.path===t&&!0===e.exact}function a(e){return e.path===t&&!e.exact}return function e(t){if(0===t.length)return;return t.find(r)||e(t.filter(a).flatMap((e=>e.routes??[])))}(n)}({routes:a.Z,baseUrl:e})),[e])}},2466:(e,t,n)=>{"use strict";n.d(t,{Ct:()=>f,OC:()=>l,RF:()=>d});var r=n(7294),a=n(412),o=n(2389),i=n(902);const s=r.createContext(void 0);function l(e){let{children:t}=e;const n=function(){const e=(0,r.useRef)(!0);return(0,r.useMemo)((()=>({scrollEventsEnabledRef:e,enableScrollEvents:()=>{e.current=!0},disableScrollEvents:()=>{e.current=!1}})),[])}();return r.createElement(s.Provider,{value:n},t)}function u(){const e=(0,r.useContext)(s);if(null==e)throw new i.i6("ScrollControllerProvider");return e}const c=()=>a.Z.canUseDOM?{scrollX:window.pageXOffset,scrollY:window.pageYOffset}:null;function d(e,t){void 0===t&&(t=[]);const{scrollEventsEnabledRef:n}=u(),a=(0,r.useRef)(c()),o=(0,i.zX)(e);(0,r.useEffect)((()=>{const e=()=>{if(!n.current)return;const e=c();o(e,a.current),a.current=e},t={passive:!0};return e(),window.addEventListener("scroll",e,t),()=>window.removeEventListener("scroll",e,t)}),[o,n,...t])}function f(){const e=(0,r.useRef)(null),t=(0,o.Z)()&&"smooth"===getComputedStyle(document.documentElement).scrollBehavior;return{startScroll:n=>{e.current=t?function(e){return window.scrollTo({top:e,behavior:"smooth"}),()=>{}}(n):function(e){let t=null;const n=document.documentElement.scrollTop>e;return function r(){const a=document.documentElement.scrollTop;(n&&a>e||!n&&a<e)&&(t=requestAnimationFrame(r),window.scrollTo(0,Math.floor(.85*(a-e))+e))}(),()=>t&&cancelAnimationFrame(t)}(n)},cancelScroll:()=>e.current?.()}}},3320:(e,t,n)=>{"use strict";n.d(t,{HX:()=>r,os:()=>a});n(2263);const r="default";function a(e,t){return`docs-${e}-${t}`}},12:(e,t,n)=>{"use strict";n.d(t,{WA:()=>l});n(7294),n(1688);const r="localStorage";function a(e){let{key:t,oldValue:n,newValue:r,storage:a}=e;if(n===r)return;const o=document.createEvent("StorageEvent");o.initStorageEvent("storage",!1,!1,t,n,r,window.location.href,a),window.dispatchEvent(o)}function o(e){if(void 0===e&&(e=r),"undefined"==typeof window)throw new Error("Browser storage is not available on Node.js/Docusaurus SSR process.");if("none"===e)return null;try{return window[e]}catch(n){return t=n,i||(console.warn("Docusaurus browser storage is not available.\nPossible reasons: running Docusaurus in an iframe, in an incognito browser session, or using too strict browser privacy settings.",t),i=!0),null}var t}let i=!1;const s={get:()=>null,set:()=>{},del:()=>{},listen:()=>()=>{}};function l(e,t){if("undefined"==typeof window)return function(e){function t(){throw new Error(`Illegal storage API usage for storage key "${e}".\nDocusaurus storage APIs are not supposed to be called on the server-rendering process.\nPlease only call storage APIs in effects and event handlers.`)}return{get:t,set:t,del:t,listen:t}}(e);const n=o(t?.persistence);return null===n?s:{get:()=>{try{return n.getItem(e)}catch(t){return console.error(`Docusaurus storage error, can't get key=${e}`,t),null}},set:t=>{try{const r=n.getItem(e);n.setItem(e,t),a({key:e,oldValue:r,newValue:t,storage:n})}catch(r){console.error(`Docusaurus storage error, can't set ${e}=${t}`,r)}},del:()=>{try{const t=n.getItem(e);n.removeItem(e),a({key:e,oldValue:t,newValue:null,storage:n})}catch(t){console.error(`Docusaurus storage error, can't delete key=${e}`,t)}},listen:t=>{try{const r=r=>{r.storageArea===n&&r.key===e&&t(r)};return window.addEventListener("storage",r),()=>window.removeEventListener("storage",r)}catch(r){return console.error(`Docusaurus storage error, can't listen for changes of key=${e}`,r),()=>{}}}}}},4711:(e,t,n)=>{"use strict";n.d(t,{l:()=>i});var r=n(2263),a=n(6550),o=n(8780);function i(){const{siteConfig:{baseUrl:e,url:t,trailingSlash:n},i18n:{defaultLocale:i,currentLocale:s}}=(0,r.Z)(),{pathname:l}=(0,a.TH)(),u=(0,o.applyTrailingSlash)(l,{trailingSlash:n,baseUrl:e}),c=s===i?e:e.replace(`/${s}/`,"/"),d=u.replace(e,"");return{createUrl:function(e){let{locale:n,fullyQualified:r}=e;return`${r?t:""}${function(e){return e===i?`${c}`:`${c}${e}/`}(n)}${d}`}}}},5936:(e,t,n)=>{"use strict";n.d(t,{S:()=>i});var r=n(7294),a=n(6550),o=n(902);function i(e){const t=(0,a.TH)(),n=(0,o.D9)(t),i=(0,o.zX)(e);(0,r.useEffect)((()=>{n&&t!==n&&i({location:t,previousLocation:n})}),[i,t,n])}},6668:(e,t,n)=>{"use strict";n.d(t,{L:()=>a});var r=n(2263);function a(){return(0,r.Z)().siteConfig.themeConfig}},8802:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){const{trailingSlash:n,baseUrl:r}=t;if(e.startsWith("#"))return e;if(void 0===n)return e;const[a]=e.split(/[#?]/),o="/"===a||a===r?a:(i=a,n?function(e){return e.endsWith("/")?e:`${e}/`}(i):function(e){return e.endsWith("/")?e.slice(0,-1):e}(i));var i;return e.replace(a,o)}},4143:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getErrorCausalChain=void 0,t.getErrorCausalChain=function e(t){return t.cause?[t,...e(t.cause)]:[t]}},8780:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.getErrorCausalChain=t.applyTrailingSlash=t.blogPostContainerID=void 0,t.blogPostContainerID="__blog-post-container";var a=n(8802);Object.defineProperty(t,"applyTrailingSlash",{enumerable:!0,get:function(){return r(a).default}});var o=n(4143);Object.defineProperty(t,"getErrorCausalChain",{enumerable:!0,get:function(){return o.getErrorCausalChain}})},311:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(7294),a=n(6010);const o={loadingRing:"loadingRing_RJI3","loading-ring":"loading-ring_FB5o"};function i(e){let{className:t}=e;return r.createElement("div",{className:(0,a.Z)(o.loadingRing,t)},r.createElement("div",null),r.createElement("div",null),r.createElement("div",null),r.createElement("div",null))}},22:(e,t,n)=>{"use strict";n.d(t,{w:()=>s});var r=n(1336),a=n.n(r),o=n(1029);const i=new Map;function s(e,t){const n=`${e}${t}`;let r=i.get(n);return r||(r=async function(e,t){{const n=`${e}${o.J.replace("{dir}",t?`-${t.replace(/\//g,"-")}`:"")}`;if(new URL(n,location.origin).origin!==location.origin)throw new Error("Unexpected version url");const r=await(await fetch(n)).json(),i=r.map(((e,t)=>{let{documents:n,index:r}=e;return{type:t,documents:n,index:a().Index.load(r)}})),s=r.reduce(((e,t)=>{for(const n of t.index.invertedIndex)/\p{Unified_Ideograph}/u.test(n[0][0])&&e.add(n[0]);return e}),new Set);return{wrappedIndexes:i,zhDictionary:Array.from(s)}}return{wrappedIndexes:[],zhDictionary:[]}}(e,t),i.set(n,r)),r}},8202:(e,t,n)=>{"use strict";n.d(t,{v:()=>l});var r=n(1336),a=n.n(r);var o=n(1029);function i(e){return s(e).concat(s(e.filter((e=>{const t=e[e.length-1];return!t.trailing&&t.maybeTyping})),!0))}function s(e,t){return e.map((e=>({tokens:e.map((e=>e.value)),term:e.map((e=>({value:e.value,presence:a().Query.presence.REQUIRED,wildcard:(t?e.trailing||e.maybeTyping:e.trailing)?a().Query.wildcard.TRAILING:a().Query.wildcard.NONE})))})))}function l(e,t,n){return function(r,s){const l=function(e,t){if(1===t.length&&["ja","jp","th"].includes(t[0]))return a()[t[0]].tokenizer(e).map((e=>e.toString()));let n=/[^-\s]+/g;return t.includes("zh")&&(n=/\w+|\p{Unified_Ideograph}+/gu),e.toLowerCase().match(n)||[]}(r,o.dK);if(0===l.length)return void s([]);const u=function(e,t){const n=function(e,t){const n=[];return function e(r,a){if(0===r.length)return void n.push(a);const o=r[0];if(/\p{Unified_Ideograph}/u.test(o)){const n=function(e,t){const n=[];return function e(r,a){let o=0,i=!1;for(const s of t)if(r.substr(0,s.length)===s){const t={missed:a.missed,term:a.term.concat({value:s})};r.length>s.length?e(r.substr(s.length),t):n.push(t),i=!0}else for(let t=s.length-1;t>o;t-=1){const l=s.substr(0,t);if(r.substr(0,t)===l){o=t;const s={missed:a.missed,term:a.term.concat({value:l,trailing:!0})};r.length>t?e(r.substr(t),s):n.push(s),i=!0;break}}i||(r.length>0?e(r.substr(1),{missed:a.missed+1,term:a.term}):a.term.length>0&&n.push(a))}(e,{missed:0,term:[]}),n.sort(((e,t)=>{const n=e.missed>0?1:0,r=t.missed>0?1:0;return n!==r?n-r:e.term.length-t.term.length})).map((e=>e.term))}(o,t);for(const t of n){const n=a.concat(...t);e(r.slice(1),n)}}else{const t=a.concat({value:o});e(r.slice(1),t)}}(e,[]),n}(e,t);if(0===n.length)return[{tokens:e,term:e.map((e=>({value:e,presence:a().Query.presence.REQUIRED,wildcard:a().Query.wildcard.LEADING|a().Query.wildcard.TRAILING})))}];for(const a of n)a[a.length-1].maybeTyping=!0;const r=[];for(const i of o.dK)if("en"===i)o._k||r.unshift(a().stopWordFilter);else{const e=a()[i];e.stopWordFilter&&r.unshift(e.stopWordFilter)}let s;if(r.length>0){const e=e=>r.reduce(((e,t)=>e.filter((e=>t(e.value)))),e);s=[];const t=[];for(const r of n){const n=e(r);s.push(n),n.length<r.length&&n.length>0&&t.push(n)}n.push(...t)}else s=n.slice();const l=[];for(const a of s)if(a.length>2)for(let e=a.length-1;e>=0;e-=1)l.push(a.slice(0,e).concat(a.slice(e+1)));return i(n).concat(i(l))}(l,t),c=[];e:for(const{term:t,tokens:a}of u)for(const{documents:r,index:o,type:i}of e)if(c.push(...o.query((e=>{for(const n of t)e.term(n.value,{wildcard:n.wildcard,presence:n.presence})})).slice(0,n).filter((e=>!c.some((t=>t.document.i.toString()===e.ref)))).slice(0,n-c.length).map((t=>{const n=r.find((e=>e.i.toString()===t.ref));return{document:n,type:i,page:0!==i&&e[0].documents.find((e=>e.i===n.p)),metadata:t.matchData.metadata,tokens:a,score:t.score}}))),c.length>=n)break e;!function(e){e.forEach(((e,t)=>{e.index=t})),e.sort(((t,n)=>{let r=t.type>0&&t.page?e.findIndex((e=>e.document===t.page)):t.index,a=n.type>0&&n.page?e.findIndex((e=>e.document===n.page)):n.index;return-1===r&&(r=t.index),-1===a&&(a=n.index),r===a?0===t.type?-1:0===n.type?1:t.index-n.index:r-a}))}(c),function(e){e.forEach(((t,n)=>{n>0&&t.page&&e.some((e=>e.document===t.page))&&(n<e.length-1&&e[n+1].page===t.page?t.isInterOfTree=!0:t.isLastOfTree=!0)}))}(c),s(c)}}},3926:(e,t,n)=>{"use strict";function r(e){return e.join(" \u203a ")}n.d(t,{e:()=>r})},1690:(e,t,n)=>{"use strict";function r(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}n.d(t,{X:()=>r})},1073:(e,t,n)=>{"use strict";function r(e,t){const n=[];for(const r of Object.values(e))r[t]&&n.push(...r[t].position);return n.sort(((e,t)=>e[0]-t[0]||t[1]-e[1]))}n.d(t,{m:()=>r})},2539:(e,t,n)=>{"use strict";n.d(t,{C:()=>a});var r=n(1690);function a(e,t,n){const o=[];for(const i of t){const n=e.toLowerCase().indexOf(i);if(n>=0){n>0&&o.push(a(e.substr(0,n),t)),o.push(`<mark>${(0,r.X)(e.substr(n,i.length))}</mark>`);const s=n+i.length;s<e.length&&o.push(a(e.substr(s),t));break}}return 0===o.length?n?`<mark>${(0,r.X)(e)}</mark>`:(0,r.X)(e):o.join("")}},726:(e,t,n)=>{"use strict";n.d(t,{o:()=>l});var r=n(1690),a=n(2539);const o=/\w+|\p{Unified_Ideograph}/u;function i(e){const t=[];let n=0,r=e;for(;r.length>0;){const a=r.match(o);if(!a){t.push(r);break}a.index>0&&t.push(r.substring(0,a.index)),t.push(a[0]),n+=a.index+a[0].length,r=e.substring(n)}return t}var s=n(1029);function l(e,t,n,o){void 0===o&&(o=s.Hk);const{chunkIndex:l,chunks:u}=function(e,t,n){const o=[];let s=0,l=0,u=-1;for(;s<t.length;){const[c,d]=t[s];if(s+=1,!(c<l)){if(c>l){const t=i(e.substring(l,c)).map((e=>({html:(0,r.X)(e),textLength:e.length})));for(const e of t)o.push(e)}-1===u&&(u=o.length),l=c+d,o.push({html:(0,a.C)(e.substring(c,l),n,!0),textLength:d})}}if(l<e.length){const t=i(e.substring(l)).map((e=>({html:(0,r.X)(e),textLength:e.length})));for(const e of t)o.push(e)}return{chunkIndex:u,chunks:o}}(e,t,n),c=u.slice(0,l),d=u[l],f=[d.html],p=u.slice(l+1);let h=d.textLength,m=0,g=0,b=!1,v=!1;for(;h<o;)if((m<=g||0===p.length)&&c.length>0){const e=c.pop();h+e.textLength<=o?(f.unshift(e.html),m+=e.textLength,h+=e.textLength):(b=!0,c.length=0)}else{if(!(p.length>0))break;{const e=p.shift();h+e.textLength<=o?(f.push(e.html),g+=e.textLength,h+=e.textLength):(v=!0,p.length=0)}}return(b||c.length>0)&&f.unshift("\u2026"),(v||p.length>0)&&f.push("\u2026"),f.join("")}},1029:(e,t,n)=>{"use strict";n.d(t,{vc:()=>o,gQ:()=>p,H6:()=>u,hG:()=>g,l9:()=>h,dK:()=>r,_k:()=>a,pu:()=>f,AY:()=>c,t_:()=>d,Kc:()=>m,J:()=>i,Hk:()=>l,qo:()=>s,pQ:()=>b});n(1336);const r=["en"],a=!1,o=null,i="search-index{dir}.json?_=778999e6",s=8,l=50,u=!1,c=!0,d=!0,f="right",p=void 0,h=!0,m=null,g=!1,b=!1},6010:(e,t,n)=>{"use strict";function r(e){var t,n,a="";if("string"==typeof e||"number"==typeof e)a+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=r(e[t]))&&(a&&(a+=" "),a+=n);else for(t in e)e[t]&&(a&&(a+=" "),a+=t);return a}n.d(t,{Z:()=>a});const a=function(){for(var e,t,n=0,a="";n<arguments.length;)(e=arguments[n++])&&(t=r(e))&&(a&&(a+=" "),a+=t);return a}},9318:(e,t,n)=>{"use strict";n.d(t,{lX:()=>w,q_:()=>L,ob:()=>p,PP:()=>T,Ep:()=>f});var r=n(7462);function a(e){return"/"===e.charAt(0)}function o(e,t){for(var n=t,r=n+1,a=e.length;r<a;n+=1,r+=1)e[n]=e[r];e.pop()}const i=function(e,t){void 0===t&&(t="");var n,r=e&&e.split("/")||[],i=t&&t.split("/")||[],s=e&&a(e),l=t&&a(t),u=s||l;if(e&&a(e)?i=r:r.length&&(i.pop(),i=i.concat(r)),!i.length)return"/";if(i.length){var c=i[i.length-1];n="."===c||".."===c||""===c}else n=!1;for(var d=0,f=i.length;f>=0;f--){var p=i[f];"."===p?o(i,f):".."===p?(o(i,f),d++):d&&(o(i,f),d--)}if(!u)for(;d--;d)i.unshift("..");!u||""===i[0]||i[0]&&a(i[0])||i.unshift("");var h=i.join("/");return n&&"/"!==h.substr(-1)&&(h+="/"),h};var s=n(8776);function l(e){return"/"===e.charAt(0)?e:"/"+e}function u(e){return"/"===e.charAt(0)?e.substr(1):e}function c(e,t){return function(e,t){return 0===e.toLowerCase().indexOf(t.toLowerCase())&&-1!=="/?#".indexOf(e.charAt(t.length))}(e,t)?e.substr(t.length):e}function d(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}function f(e){var t=e.pathname,n=e.search,r=e.hash,a=t||"/";return n&&"?"!==n&&(a+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(a+="#"===r.charAt(0)?r:"#"+r),a}function p(e,t,n,a){var o;"string"==typeof e?(o=function(e){var t=e||"/",n="",r="",a=t.indexOf("#");-1!==a&&(r=t.substr(a),t=t.substr(0,a));var o=t.indexOf("?");return-1!==o&&(n=t.substr(o),t=t.substr(0,o)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}}(e),o.state=t):(void 0===(o=(0,r.Z)({},e)).pathname&&(o.pathname=""),o.search?"?"!==o.search.charAt(0)&&(o.search="?"+o.search):o.search="",o.hash?"#"!==o.hash.charAt(0)&&(o.hash="#"+o.hash):o.hash="",void 0!==t&&void 0===o.state&&(o.state=t));try{o.pathname=decodeURI(o.pathname)}catch(s){throw s instanceof URIError?new URIError('Pathname "'+o.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):s}return n&&(o.key=n),a?o.pathname?"/"!==o.pathname.charAt(0)&&(o.pathname=i(o.pathname,a.pathname)):o.pathname=a.pathname:o.pathname||(o.pathname="/"),o}function h(){var e=null;var t=[];return{setPrompt:function(t){return e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,r,a){if(null!=e){var o="function"==typeof e?e(t,n):e;"string"==typeof o?"function"==typeof r?r(o,a):a(!0):a(!1!==o)}else a(!0)},appendListener:function(e){var n=!0;function r(){n&&e.apply(void 0,arguments)}return t.push(r),function(){n=!1,t=t.filter((function(e){return e!==r}))}},notifyListeners:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];t.forEach((function(e){return e.apply(void 0,n)}))}}}var m=!("undefined"==typeof window||!window.document||!window.document.createElement);function g(e,t){t(window.confirm(e))}var b="popstate",v="hashchange";function y(){try{return window.history.state||{}}catch(e){return{}}}function w(e){void 0===e&&(e={}),m||(0,s.Z)(!1);var t,n=window.history,a=(-1===(t=window.navigator.userAgent).indexOf("Android 2.")&&-1===t.indexOf("Android 4.0")||-1===t.indexOf("Mobile Safari")||-1!==t.indexOf("Chrome")||-1!==t.indexOf("Windows Phone"))&&window.history&&"pushState"in window.history,o=!(-1===window.navigator.userAgent.indexOf("Trident")),i=e,u=i.forceRefresh,w=void 0!==u&&u,E=i.getUserConfirmation,k=void 0===E?g:E,S=i.keyLength,x=void 0===S?6:S,_=e.basename?d(l(e.basename)):"";function L(e){var t=e||{},n=t.key,r=t.state,a=window.location,o=a.pathname+a.search+a.hash;return _&&(o=c(o,_)),p(o,r,n)}function C(){return Math.random().toString(36).substr(2,x)}var T=h();function A(e){(0,r.Z)(z,e),z.length=n.length,T.notifyListeners(z.location,z.action)}function O(e){(function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")})(e)||D(L(e.state))}function P(){D(L(y()))}var N=!1;function D(e){if(N)N=!1,A();else{T.confirmTransitionTo(e,"POP",k,(function(t){t?A({action:"POP",location:e}):function(e){var t=z.location,n=R.indexOf(t.key);-1===n&&(n=0);var r=R.indexOf(e.key);-1===r&&(r=0);var a=n-r;a&&(N=!0,F(a))}(e)}))}}var I=L(y()),R=[I.key];function M(e){return _+f(e)}function F(e){n.go(e)}var B=0;function j(e){1===(B+=e)&&1===e?(window.addEventListener(b,O),o&&window.addEventListener(v,P)):0===B&&(window.removeEventListener(b,O),o&&window.removeEventListener(v,P))}var $=!1;var z={length:n.length,action:"POP",location:I,createHref:M,push:function(e,t){var r="PUSH",o=p(e,t,C(),z.location);T.confirmTransitionTo(o,r,k,(function(e){if(e){var t=M(o),i=o.key,s=o.state;if(a)if(n.pushState({key:i,state:s},null,t),w)window.location.href=t;else{var l=R.indexOf(z.location.key),u=R.slice(0,l+1);u.push(o.key),R=u,A({action:r,location:o})}else window.location.href=t}}))},replace:function(e,t){var r="REPLACE",o=p(e,t,C(),z.location);T.confirmTransitionTo(o,r,k,(function(e){if(e){var t=M(o),i=o.key,s=o.state;if(a)if(n.replaceState({key:i,state:s},null,t),w)window.location.replace(t);else{var l=R.indexOf(z.location.key);-1!==l&&(R[l]=o.key),A({action:r,location:o})}else window.location.replace(t)}}))},go:F,goBack:function(){F(-1)},goForward:function(){F(1)},block:function(e){void 0===e&&(e=!1);var t=T.setPrompt(e);return $||(j(1),$=!0),function(){return $&&($=!1,j(-1)),t()}},listen:function(e){var t=T.appendListener(e);return j(1),function(){j(-1),t()}}};return z}var E="hashchange",k={hashbang:{encodePath:function(e){return"!"===e.charAt(0)?e:"!/"+u(e)},decodePath:function(e){return"!"===e.charAt(0)?e.substr(1):e}},noslash:{encodePath:u,decodePath:l},slash:{encodePath:l,decodePath:l}};function S(e){var t=e.indexOf("#");return-1===t?e:e.slice(0,t)}function x(){var e=window.location.href,t=e.indexOf("#");return-1===t?"":e.substring(t+1)}function _(e){window.location.replace(S(window.location.href)+"#"+e)}function L(e){void 0===e&&(e={}),m||(0,s.Z)(!1);var t=window.history,n=(window.navigator.userAgent.indexOf("Firefox"),e),a=n.getUserConfirmation,o=void 0===a?g:a,i=n.hashType,u=void 0===i?"slash":i,b=e.basename?d(l(e.basename)):"",v=k[u],y=v.encodePath,w=v.decodePath;function L(){var e=w(x());return b&&(e=c(e,b)),p(e)}var C=h();function T(e){(0,r.Z)($,e),$.length=t.length,C.notifyListeners($.location,$.action)}var A=!1,O=null;function P(){var e,t,n=x(),r=y(n);if(n!==r)_(r);else{var a=L(),i=$.location;if(!A&&(t=a,(e=i).pathname===t.pathname&&e.search===t.search&&e.hash===t.hash))return;if(O===f(a))return;O=null,function(e){if(A)A=!1,T();else{var t="POP";C.confirmTransitionTo(e,t,o,(function(n){n?T({action:t,location:e}):function(e){var t=$.location,n=R.lastIndexOf(f(t));-1===n&&(n=0);var r=R.lastIndexOf(f(e));-1===r&&(r=0);var a=n-r;a&&(A=!0,M(a))}(e)}))}}(a)}}var N=x(),D=y(N);N!==D&&_(D);var I=L(),R=[f(I)];function M(e){t.go(e)}var F=0;function B(e){1===(F+=e)&&1===e?window.addEventListener(E,P):0===F&&window.removeEventListener(E,P)}var j=!1;var $={length:t.length,action:"POP",location:I,createHref:function(e){var t=document.querySelector("base"),n="";return t&&t.getAttribute("href")&&(n=S(window.location.href)),n+"#"+y(b+f(e))},push:function(e,t){var n="PUSH",r=p(e,void 0,void 0,$.location);C.confirmTransitionTo(r,n,o,(function(e){if(e){var t=f(r),a=y(b+t);if(x()!==a){O=t,function(e){window.location.hash=e}(a);var o=R.lastIndexOf(f($.location)),i=R.slice(0,o+1);i.push(t),R=i,T({action:n,location:r})}else T()}}))},replace:function(e,t){var n="REPLACE",r=p(e,void 0,void 0,$.location);C.confirmTransitionTo(r,n,o,(function(e){if(e){var t=f(r),a=y(b+t);x()!==a&&(O=t,_(a));var o=R.indexOf(f($.location));-1!==o&&(R[o]=t),T({action:n,location:r})}}))},go:M,goBack:function(){M(-1)},goForward:function(){M(1)},block:function(e){void 0===e&&(e=!1);var t=C.setPrompt(e);return j||(B(1),j=!0),function(){return j&&(j=!1,B(-1)),t()}},listen:function(e){var t=C.appendListener(e);return B(1),function(){B(-1),t()}}};return $}function C(e,t,n){return Math.min(Math.max(e,t),n)}function T(e){void 0===e&&(e={});var t=e,n=t.getUserConfirmation,a=t.initialEntries,o=void 0===a?["/"]:a,i=t.initialIndex,s=void 0===i?0:i,l=t.keyLength,u=void 0===l?6:l,c=h();function d(e){(0,r.Z)(w,e),w.length=w.entries.length,c.notifyListeners(w.location,w.action)}function m(){return Math.random().toString(36).substr(2,u)}var g=C(s,0,o.length-1),b=o.map((function(e){return p(e,void 0,"string"==typeof e?m():e.key||m())})),v=f;function y(e){var t=C(w.index+e,0,w.entries.length-1),r=w.entries[t];c.confirmTransitionTo(r,"POP",n,(function(e){e?d({action:"POP",location:r,index:t}):d()}))}var w={length:b.length,action:"POP",location:b[g],index:g,entries:b,createHref:v,push:function(e,t){var r="PUSH",a=p(e,t,m(),w.location);c.confirmTransitionTo(a,r,n,(function(e){if(e){var t=w.index+1,n=w.entries.slice(0);n.length>t?n.splice(t,n.length-t,a):n.push(a),d({action:r,location:a,index:t,entries:n})}}))},replace:function(e,t){var r="REPLACE",a=p(e,t,m(),w.location);c.confirmTransitionTo(a,r,n,(function(e){e&&(w.entries[w.index]=a,d({action:r,location:a}))}))},go:y,goBack:function(){y(-1)},goForward:function(){y(1)},canGo:function(e){var t=w.index+e;return t>=0&&t<w.entries.length},block:function(e){return void 0===e&&(e=!1),c.setPrompt(e)},listen:function(e){return c.appendListener(e)}};return w}},8679:(e,t,n)=>{"use strict";var r=n(9864),a={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return r.isMemo(e)?i:s[e.$$typeof]||a}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=i;var u=Object.defineProperty,c=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(h){var a=p(n);a&&a!==h&&e(t,a,r)}var i=c(n);d&&(i=i.concat(d(n)));for(var s=l(t),m=l(n),g=0;g<i.length;++g){var b=i[g];if(!(o[b]||r&&r[b]||m&&m[b]||s&&s[b])){var v=f(n,b);try{u(t,b,v)}catch(y){}}}}return t}},1143:e=>{"use strict";e.exports=function(e,t,n,r,a,o,i,s){if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,r,a,o,i,s],c=0;(l=new Error(t.replace(/%s/g,(function(){return u[c++]})))).name="Invariant Violation"}throw l.framesToPop=1,l}}},5826:e=>{e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},1336:(e,t,n)=>{var r,a;!function(){var o,i,s,l,u,c,d,f,p,h,m,g,b,v,y,w,E,k,S,x,_,L,C,T,A,O,P,N,D,I,R=function(e){var t=new R.Builder;return t.pipeline.add(R.trimmer,R.stopWordFilter,R.stemmer),t.searchPipeline.add(R.stemmer),e.call(t,t),t.build()};R.version="2.3.9",R.utils={},R.utils.warn=(o=this,function(e){o.console&&console.warn&&console.warn(e)}),R.utils.asString=function(e){return null==e?"":e.toString()},R.utils.clone=function(e){if(null==e)return e;for(var t=Object.create(null),n=Object.keys(e),r=0;r<n.length;r++){var a=n[r],o=e[a];if(Array.isArray(o))t[a]=o.slice();else{if("string"!=typeof o&&"number"!=typeof o&&"boolean"!=typeof o)throw new TypeError("clone is not deep and does not support nested objects");t[a]=o}}return t},R.FieldRef=function(e,t,n){this.docRef=e,this.fieldName=t,this._stringValue=n},R.FieldRef.joiner="/",R.FieldRef.fromString=function(e){var t=e.indexOf(R.FieldRef.joiner);if(-1===t)throw"malformed field ref string";var n=e.slice(0,t),r=e.slice(t+1);return new R.FieldRef(r,n,e)},R.FieldRef.prototype.toString=function(){return null==this._stringValue&&(this._stringValue=this.fieldName+R.FieldRef.joiner+this.docRef),this._stringValue},R.Set=function(e){if(this.elements=Object.create(null),e){this.length=e.length;for(var t=0;t<this.length;t++)this.elements[e[t]]=!0}else this.length=0},R.Set.complete={intersect:function(e){return e},union:function(){return this},contains:function(){return!0}},R.Set.empty={intersect:function(){return this},union:function(e){return e},contains:function(){return!1}},R.Set.prototype.contains=function(e){return!!this.elements[e]},R.Set.prototype.intersect=function(e){var t,n,r,a=[];if(e===R.Set.complete)return this;if(e===R.Set.empty)return e;this.length<e.length?(t=this,n=e):(t=e,n=this),r=Object.keys(t.elements);for(var o=0;o<r.length;o++){var i=r[o];i in n.elements&&a.push(i)}return new R.Set(a)},R.Set.prototype.union=function(e){return e===R.Set.complete?R.Set.complete:e===R.Set.empty?this:new R.Set(Object.keys(this.elements).concat(Object.keys(e.elements)))},R.idf=function(e,t){var n=0;for(var r in e)"_index"!=r&&(n+=Object.keys(e[r]).length);var a=(t-n+.5)/(n+.5);return Math.log(1+Math.abs(a))},R.Token=function(e,t){this.str=e||"",this.metadata=t||{}},R.Token.prototype.toString=function(){return this.str},R.Token.prototype.update=function(e){return this.str=e(this.str,this.metadata),this},R.Token.prototype.clone=function(e){return e=e||function(e){return e},new R.Token(e(this.str,this.metadata),this.metadata)},R.tokenizer=function(e,t){if(null==e||null==e)return[];if(Array.isArray(e))return e.map((function(e){return new R.Token(R.utils.asString(e).toLowerCase(),R.utils.clone(t))}));for(var n=e.toString().toLowerCase(),r=n.length,a=[],o=0,i=0;o<=r;o++){var s=o-i;if(n.charAt(o).match(R.tokenizer.separator)||o==r){if(s>0){var l=R.utils.clone(t)||{};l.position=[i,s],l.index=a.length,a.push(new R.Token(n.slice(i,o),l))}i=o+1}}return a},R.tokenizer.separator=/[\s\-]+/,R.Pipeline=function(){this._stack=[]},R.Pipeline.registeredFunctions=Object.create(null),R.Pipeline.registerFunction=function(e,t){t in this.registeredFunctions&&R.utils.warn("Overwriting existing registered function: "+t),e.label=t,R.Pipeline.registeredFunctions[e.label]=e},R.Pipeline.warnIfFunctionNotRegistered=function(e){e.label&&e.label in this.registeredFunctions||R.utils.warn("Function is not registered with pipeline. This may cause problems when serialising the index.\n",e)},R.Pipeline.load=function(e){var t=new R.Pipeline;return e.forEach((function(e){var n=R.Pipeline.registeredFunctions[e];if(!n)throw new Error("Cannot load unregistered function: "+e);t.add(n)})),t},R.Pipeline.prototype.add=function(){Array.prototype.slice.call(arguments).forEach((function(e){R.Pipeline.warnIfFunctionNotRegistered(e),this._stack.push(e)}),this)},R.Pipeline.prototype.after=function(e,t){R.Pipeline.warnIfFunctionNotRegistered(t);var n=this._stack.indexOf(e);if(-1==n)throw new Error("Cannot find existingFn");n+=1,this._stack.splice(n,0,t)},R.Pipeline.prototype.before=function(e,t){R.Pipeline.warnIfFunctionNotRegistered(t);var n=this._stack.indexOf(e);if(-1==n)throw new Error("Cannot find existingFn");this._stack.splice(n,0,t)},R.Pipeline.prototype.remove=function(e){var t=this._stack.indexOf(e);-1!=t&&this._stack.splice(t,1)},R.Pipeline.prototype.run=function(e){for(var t=this._stack.length,n=0;n<t;n++){for(var r=this._stack[n],a=[],o=0;o<e.length;o++){var i=r(e[o],o,e);if(null!=i&&""!==i)if(Array.isArray(i))for(var s=0;s<i.length;s++)a.push(i[s]);else a.push(i)}e=a}return e},R.Pipeline.prototype.runString=function(e,t){var n=new R.Token(e,t);return this.run([n]).map((function(e){return e.toString()}))},R.Pipeline.prototype.reset=function(){this._stack=[]},R.Pipeline.prototype.toJSON=function(){return this._stack.map((function(e){return R.Pipeline.warnIfFunctionNotRegistered(e),e.label}))},R.Vector=function(e){this._magnitude=0,this.elements=e||[]},R.Vector.prototype.positionForIndex=function(e){if(0==this.elements.length)return 0;for(var t=0,n=this.elements.length/2,r=n-t,a=Math.floor(r/2),o=this.elements[2*a];r>1&&(o<e&&(t=a),o>e&&(n=a),o!=e);)r=n-t,a=t+Math.floor(r/2),o=this.elements[2*a];return o==e||o>e?2*a:o<e?2*(a+1):void 0},R.Vector.prototype.insert=function(e,t){this.upsert(e,t,(function(){throw"duplicate index"}))},R.Vector.prototype.upsert=function(e,t,n){this._magnitude=0;var r=this.positionForIndex(e);this.elements[r]==e?this.elements[r+1]=n(this.elements[r+1],t):this.elements.splice(r,0,e,t)},R.Vector.prototype.magnitude=function(){if(this._magnitude)return this._magnitude;for(var e=0,t=this.elements.length,n=1;n<t;n+=2){var r=this.elements[n];e+=r*r}return this._magnitude=Math.sqrt(e)},R.Vector.prototype.dot=function(e){for(var t=0,n=this.elements,r=e.elements,a=n.length,o=r.length,i=0,s=0,l=0,u=0;l<a&&u<o;)(i=n[l])<(s=r[u])?l+=2:i>s?u+=2:i==s&&(t+=n[l+1]*r[u+1],l+=2,u+=2);return t},R.Vector.prototype.similarity=function(e){return this.dot(e)/this.magnitude()||0},R.Vector.prototype.toArray=function(){for(var e=new Array(this.elements.length/2),t=1,n=0;t<this.elements.length;t+=2,n++)e[n]=this.elements[t];return e},R.Vector.prototype.toJSON=function(){return this.elements},R.stemmer=(i={ational:"ate",tional:"tion",enci:"ence",anci:"ance",izer:"ize",bli:"ble",alli:"al",entli:"ent",eli:"e",ousli:"ous",ization:"ize",ation:"ate",ator:"ate",alism:"al",iveness:"ive",fulness:"ful",ousness:"ous",aliti:"al",iviti:"ive",biliti:"ble",logi:"log"},s={icate:"ic",ative:"",alize:"al",iciti:"ic",ical:"ic",ful:"",ness:""},d="^("+(u="[^aeiou][^aeiouy]*")+")?"+(c=(l="[aeiouy]")+"[aeiou]*")+u+"("+c+")?$",f="^("+u+")?"+c+u+c+u,p="^("+u+")?"+l,h=new RegExp("^("+u+")?"+c+u),m=new RegExp(f),g=new RegExp(d),b=new RegExp(p),v=/^(.+?)(ss|i)es$/,y=/^(.+?)([^s])s$/,w=/^(.+?)eed$/,E=/^(.+?)(ed|ing)$/,k=/.$/,S=/(at|bl|iz)$/,x=new RegExp("([^aeiouylsz])\\1$"),_=new RegExp("^"+u+l+"[^aeiouwxy]$"),L=/^(.+?[^aeiou])y$/,C=/^(.+?)(ational|tional|enci|anci|izer|bli|alli|entli|eli|ousli|ization|ation|ator|alism|iveness|fulness|ousness|aliti|iviti|biliti|logi)$/,T=/^(.+?)(icate|ative|alize|iciti|ical|ful|ness)$/,A=/^(.+?)(al|ance|ence|er|ic|able|ible|ant|ement|ment|ent|ou|ism|ate|iti|ous|ive|ize)$/,O=/^(.+?)(s|t)(ion)$/,P=/^(.+?)e$/,N=/ll$/,D=new RegExp("^"+u+l+"[^aeiouwxy]$"),I=function(e){var t,n,r,a,o,l,u;if(e.length<3)return e;if("y"==(r=e.substr(0,1))&&(e=r.toUpperCase()+e.substr(1)),o=y,(a=v).test(e)?e=e.replace(a,"$1$2"):o.test(e)&&(e=e.replace(o,"$1$2")),o=E,(a=w).test(e)){var c=a.exec(e);(a=h).test(c[1])&&(a=k,e=e.replace(a,""))}else o.test(e)&&(t=(c=o.exec(e))[1],(o=b).test(t)&&(l=x,u=_,(o=S).test(e=t)?e+="e":l.test(e)?(a=k,e=e.replace(a,"")):u.test(e)&&(e+="e")));return(a=L).test(e)&&(e=(t=(c=a.exec(e))[1])+"i"),(a=C).test(e)&&(t=(c=a.exec(e))[1],n=c[2],(a=h).test(t)&&(e=t+i[n])),(a=T).test(e)&&(t=(c=a.exec(e))[1],n=c[2],(a=h).test(t)&&(e=t+s[n])),o=O,(a=A).test(e)?(t=(c=a.exec(e))[1],(a=m).test(t)&&(e=t)):o.test(e)&&(t=(c=o.exec(e))[1]+c[2],(o=m).test(t)&&(e=t)),(a=P).test(e)&&(t=(c=a.exec(e))[1],o=g,l=D,((a=m).test(t)||o.test(t)&&!l.test(t))&&(e=t)),o=m,(a=N).test(e)&&o.test(e)&&(a=k,e=e.replace(a,"")),"y"==r&&(e=r.toLowerCase()+e.substr(1)),e},function(e){return e.update(I)}),R.Pipeline.registerFunction(R.stemmer,"stemmer"),R.generateStopWordFilter=function(e){var t=e.reduce((function(e,t){return e[t]=t,e}),{});return function(e){if(e&&t[e.toString()]!==e.toString())return e}},R.stopWordFilter=R.generateStopWordFilter(["a","able","about","across","after","all","almost","also","am","among","an","and","any","are","as","at","be","because","been","but","by","can","cannot","could","dear","did","do","does","either","else","ever","every","for","from","get","got","had","has","have","he","her","hers","him","his","how","however","i","if","in","into","is","it","its","just","least","let","like","likely","may","me","might","most","must","my","neither","no","nor","not","of","off","often","on","only","or","other","our","own","rather","said","say","says","she","should","since","so","some","than","that","the","their","them","then","there","these","they","this","tis","to","too","twas","us","wants","was","we","were","what","when","where","which","while","who","whom","why","will","with","would","yet","you","your"]),R.Pipeline.registerFunction(R.stopWordFilter,"stopWordFilter"),R.trimmer=function(e){return e.update((function(e){return e.replace(/^\W+/,"").replace(/\W+$/,"")}))},R.Pipeline.registerFunction(R.trimmer,"trimmer"),R.TokenSet=function(){this.final=!1,this.edges={},this.id=R.TokenSet._nextId,R.TokenSet._nextId+=1},R.TokenSet._nextId=1,R.TokenSet.fromArray=function(e){for(var t=new R.TokenSet.Builder,n=0,r=e.length;n<r;n++)t.insert(e[n]);return t.finish(),t.root},R.TokenSet.fromClause=function(e){return"editDistance"in e?R.TokenSet.fromFuzzyString(e.term,e.editDistance):R.TokenSet.fromString(e.term)},R.TokenSet.fromFuzzyString=function(e,t){for(var n=new R.TokenSet,r=[{node:n,editsRemaining:t,str:e}];r.length;){var a=r.pop();if(a.str.length>0){var o,i=a.str.charAt(0);i in a.node.edges?o=a.node.edges[i]:(o=new R.TokenSet,a.node.edges[i]=o),1==a.str.length&&(o.final=!0),r.push({node:o,editsRemaining:a.editsRemaining,str:a.str.slice(1)})}if(0!=a.editsRemaining){if("*"in a.node.edges)var s=a.node.edges["*"];else{s=new R.TokenSet;a.node.edges["*"]=s}if(0==a.str.length&&(s.final=!0),r.push({node:s,editsRemaining:a.editsRemaining-1,str:a.str}),a.str.length>1&&r.push({node:a.node,editsRemaining:a.editsRemaining-1,str:a.str.slice(1)}),1==a.str.length&&(a.node.final=!0),a.str.length>=1){if("*"in a.node.edges)var l=a.node.edges["*"];else{l=new R.TokenSet;a.node.edges["*"]=l}1==a.str.length&&(l.final=!0),r.push({node:l,editsRemaining:a.editsRemaining-1,str:a.str.slice(1)})}if(a.str.length>1){var u,c=a.str.charAt(0),d=a.str.charAt(1);d in a.node.edges?u=a.node.edges[d]:(u=new R.TokenSet,a.node.edges[d]=u),1==a.str.length&&(u.final=!0),r.push({node:u,editsRemaining:a.editsRemaining-1,str:c+a.str.slice(2)})}}}return n},R.TokenSet.fromString=function(e){for(var t=new R.TokenSet,n=t,r=0,a=e.length;r<a;r++){var o=e[r],i=r==a-1;if("*"==o)t.edges[o]=t,t.final=i;else{var s=new R.TokenSet;s.final=i,t.edges[o]=s,t=s}}return n},R.TokenSet.prototype.toArray=function(){for(var e=[],t=[{prefix:"",node:this}];t.length;){var n=t.pop(),r=Object.keys(n.node.edges),a=r.length;n.node.final&&(n.prefix.charAt(0),e.push(n.prefix));for(var o=0;o<a;o++){var i=r[o];t.push({prefix:n.prefix.concat(i),node:n.node.edges[i]})}}return e},R.TokenSet.prototype.toString=function(){if(this._str)return this._str;for(var e=this.final?"1":"0",t=Object.keys(this.edges).sort(),n=t.length,r=0;r<n;r++){var a=t[r];e=e+a+this.edges[a].id}return e},R.TokenSet.prototype.intersect=function(e){for(var t=new R.TokenSet,n=void 0,r=[{qNode:e,output:t,node:this}];r.length;){n=r.pop();for(var a=Object.keys(n.qNode.edges),o=a.length,i=Object.keys(n.node.edges),s=i.length,l=0;l<o;l++)for(var u=a[l],c=0;c<s;c++){var d=i[c];if(d==u||"*"==u){var f=n.node.edges[d],p=n.qNode.edges[u],h=f.final&&p.final,m=void 0;d in n.output.edges?(m=n.output.edges[d]).final=m.final||h:((m=new R.TokenSet).final=h,n.output.edges[d]=m),r.push({qNode:p,output:m,node:f})}}}return t},R.TokenSet.Builder=function(){this.previousWord="",this.root=new R.TokenSet,this.uncheckedNodes=[],this.minimizedNodes={}},R.TokenSet.Builder.prototype.insert=function(e){var t,n=0;if(e<this.previousWord)throw new Error("Out of order word insertion");for(var r=0;r<e.length&&r<this.previousWord.length&&e[r]==this.previousWord[r];r++)n++;this.minimize(n),t=0==this.uncheckedNodes.length?this.root:this.uncheckedNodes[this.uncheckedNodes.length-1].child;for(r=n;r<e.length;r++){var a=new R.TokenSet,o=e[r];t.edges[o]=a,this.uncheckedNodes.push({parent:t,char:o,child:a}),t=a}t.final=!0,this.previousWord=e},R.TokenSet.Builder.prototype.finish=function(){this.minimize(0)},R.TokenSet.Builder.prototype.minimize=function(e){for(var t=this.uncheckedNodes.length-1;t>=e;t--){var n=this.uncheckedNodes[t],r=n.child.toString();r in this.minimizedNodes?n.parent.edges[n.char]=this.minimizedNodes[r]:(n.child._str=r,this.minimizedNodes[r]=n.child),this.uncheckedNodes.pop()}},R.Index=function(e){this.invertedIndex=e.invertedIndex,this.fieldVectors=e.fieldVectors,this.tokenSet=e.tokenSet,this.fields=e.fields,this.pipeline=e.pipeline},R.Index.prototype.search=function(e){return this.query((function(t){new R.QueryParser(e,t).parse()}))},R.Index.prototype.query=function(e){for(var t=new R.Query(this.fields),n=Object.create(null),r=Object.create(null),a=Object.create(null),o=Object.create(null),i=Object.create(null),s=0;s<this.fields.length;s++)r[this.fields[s]]=new R.Vector;e.call(t,t);for(s=0;s<t.clauses.length;s++){var l=t.clauses[s],u=null,c=R.Set.empty;u=l.usePipeline?this.pipeline.runString(l.term,{fields:l.fields}):[l.term];for(var d=0;d<u.length;d++){var f=u[d];l.term=f;var p=R.TokenSet.fromClause(l),h=this.tokenSet.intersect(p).toArray();if(0===h.length&&l.presence===R.Query.presence.REQUIRED){for(var m=0;m<l.fields.length;m++){o[P=l.fields[m]]=R.Set.empty}break}for(var g=0;g<h.length;g++){var b=h[g],v=this.invertedIndex[b],y=v._index;for(m=0;m<l.fields.length;m++){var w=v[P=l.fields[m]],E=Object.keys(w),k=b+"/"+P,S=new R.Set(E);if(l.presence==R.Query.presence.REQUIRED&&(c=c.union(S),void 0===o[P]&&(o[P]=R.Set.complete)),l.presence!=R.Query.presence.PROHIBITED){if(r[P].upsert(y,l.boost,(function(e,t){return e+t})),!a[k]){for(var x=0;x<E.length;x++){var _,L=E[x],C=new R.FieldRef(L,P),T=w[L];void 0===(_=n[C])?n[C]=new R.MatchData(b,P,T):_.add(b,P,T)}a[k]=!0}}else void 0===i[P]&&(i[P]=R.Set.empty),i[P]=i[P].union(S)}}}if(l.presence===R.Query.presence.REQUIRED)for(m=0;m<l.fields.length;m++){o[P=l.fields[m]]=o[P].intersect(c)}}var A=R.Set.complete,O=R.Set.empty;for(s=0;s<this.fields.length;s++){var P;o[P=this.fields[s]]&&(A=A.intersect(o[P])),i[P]&&(O=O.union(i[P]))}var N=Object.keys(n),D=[],I=Object.create(null);if(t.isNegated()){N=Object.keys(this.fieldVectors);for(s=0;s<N.length;s++){C=N[s];var M=R.FieldRef.fromString(C);n[C]=new R.MatchData}}for(s=0;s<N.length;s++){var F=(M=R.FieldRef.fromString(N[s])).docRef;if(A.contains(F)&&!O.contains(F)){var B,j=this.fieldVectors[M],$=r[M.fieldName].similarity(j);if(void 0!==(B=I[F]))B.score+=$,B.matchData.combine(n[M]);else{var z={ref:F,score:$,matchData:n[M]};I[F]=z,D.push(z)}}}return D.sort((function(e,t){return t.score-e.score}))},R.Index.prototype.toJSON=function(){var e=Object.keys(this.invertedIndex).sort().map((function(e){return[e,this.invertedIndex[e]]}),this),t=Object.keys(this.fieldVectors).map((function(e){return[e,this.fieldVectors[e].toJSON()]}),this);return{version:R.version,fields:this.fields,fieldVectors:t,invertedIndex:e,pipeline:this.pipeline.toJSON()}},R.Index.load=function(e){var t={},n={},r=e.fieldVectors,a=Object.create(null),o=e.invertedIndex,i=new R.TokenSet.Builder,s=R.Pipeline.load(e.pipeline);e.version!=R.version&&R.utils.warn("Version mismatch when loading serialised index. Current version of lunr '"+R.version+"' does not match serialized index '"+e.version+"'");for(var l=0;l<r.length;l++){var u=(d=r[l])[0],c=d[1];n[u]=new R.Vector(c)}for(l=0;l<o.length;l++){var d,f=(d=o[l])[0],p=d[1];i.insert(f),a[f]=p}return i.finish(),t.fields=e.fields,t.fieldVectors=n,t.invertedIndex=a,t.tokenSet=i.root,t.pipeline=s,new R.Index(t)},R.Builder=function(){this._ref="id",this._fields=Object.create(null),this._documents=Object.create(null),this.invertedIndex=Object.create(null),this.fieldTermFrequencies={},this.fieldLengths={},this.tokenizer=R.tokenizer,this.pipeline=new R.Pipeline,this.searchPipeline=new R.Pipeline,this.documentCount=0,this._b=.75,this._k1=1.2,this.termIndex=0,this.metadataWhitelist=[]},R.Builder.prototype.ref=function(e){this._ref=e},R.Builder.prototype.field=function(e,t){if(/\//.test(e))throw new RangeError("Field '"+e+"' contains illegal character '/'");this._fields[e]=t||{}},R.Builder.prototype.b=function(e){this._b=e<0?0:e>1?1:e},R.Builder.prototype.k1=function(e){this._k1=e},R.Builder.prototype.add=function(e,t){var n=e[this._ref],r=Object.keys(this._fields);this._documents[n]=t||{},this.documentCount+=1;for(var a=0;a<r.length;a++){var o=r[a],i=this._fields[o].extractor,s=i?i(e):e[o],l=this.tokenizer(s,{fields:[o]}),u=this.pipeline.run(l),c=new R.FieldRef(n,o),d=Object.create(null);this.fieldTermFrequencies[c]=d,this.fieldLengths[c]=0,this.fieldLengths[c]+=u.length;for(var f=0;f<u.length;f++){var p=u[f];if(null==d[p]&&(d[p]=0),d[p]+=1,null==this.invertedIndex[p]){var h=Object.create(null);h._index=this.termIndex,this.termIndex+=1;for(var m=0;m<r.length;m++)h[r[m]]=Object.create(null);this.invertedIndex[p]=h}null==this.invertedIndex[p][o][n]&&(this.invertedIndex[p][o][n]=Object.create(null));for(var g=0;g<this.metadataWhitelist.length;g++){var b=this.metadataWhitelist[g],v=p.metadata[b];null==this.invertedIndex[p][o][n][b]&&(this.invertedIndex[p][o][n][b]=[]),this.invertedIndex[p][o][n][b].push(v)}}}},R.Builder.prototype.calculateAverageFieldLengths=function(){for(var e=Object.keys(this.fieldLengths),t=e.length,n={},r={},a=0;a<t;a++){var o=R.FieldRef.fromString(e[a]),i=o.fieldName;r[i]||(r[i]=0),r[i]+=1,n[i]||(n[i]=0),n[i]+=this.fieldLengths[o]}var s=Object.keys(this._fields);for(a=0;a<s.length;a++){var l=s[a];n[l]=n[l]/r[l]}this.averageFieldLength=n},R.Builder.prototype.createFieldVectors=function(){for(var e={},t=Object.keys(this.fieldTermFrequencies),n=t.length,r=Object.create(null),a=0;a<n;a++){for(var o=R.FieldRef.fromString(t[a]),i=o.fieldName,s=this.fieldLengths[o],l=new R.Vector,u=this.fieldTermFrequencies[o],c=Object.keys(u),d=c.length,f=this._fields[i].boost||1,p=this._documents[o.docRef].boost||1,h=0;h<d;h++){var m,g,b,v=c[h],y=u[v],w=this.invertedIndex[v]._index;void 0===r[v]?(m=R.idf(this.invertedIndex[v],this.documentCount),r[v]=m):m=r[v],g=m*((this._k1+1)*y)/(this._k1*(1-this._b+this._b*(s/this.averageFieldLength[i]))+y),g*=f,g*=p,b=Math.round(1e3*g)/1e3,l.insert(w,b)}e[o]=l}this.fieldVectors=e},R.Builder.prototype.createTokenSet=function(){this.tokenSet=R.TokenSet.fromArray(Object.keys(this.invertedIndex).sort())},R.Builder.prototype.build=function(){return this.calculateAverageFieldLengths(),this.createFieldVectors(),this.createTokenSet(),new R.Index({invertedIndex:this.invertedIndex,fieldVectors:this.fieldVectors,tokenSet:this.tokenSet,fields:Object.keys(this._fields),pipeline:this.searchPipeline})},R.Builder.prototype.use=function(e){var t=Array.prototype.slice.call(arguments,1);t.unshift(this),e.apply(this,t)},R.MatchData=function(e,t,n){for(var r=Object.create(null),a=Object.keys(n||{}),o=0;o<a.length;o++){var i=a[o];r[i]=n[i].slice()}this.metadata=Object.create(null),void 0!==e&&(this.metadata[e]=Object.create(null),this.metadata[e][t]=r)},R.MatchData.prototype.combine=function(e){for(var t=Object.keys(e.metadata),n=0;n<t.length;n++){var r=t[n],a=Object.keys(e.metadata[r]);null==this.metadata[r]&&(this.metadata[r]=Object.create(null));for(var o=0;o<a.length;o++){var i=a[o],s=Object.keys(e.metadata[r][i]);null==this.metadata[r][i]&&(this.metadata[r][i]=Object.create(null));for(var l=0;l<s.length;l++){var u=s[l];null==this.metadata[r][i][u]?this.metadata[r][i][u]=e.metadata[r][i][u]:this.metadata[r][i][u]=this.metadata[r][i][u].concat(e.metadata[r][i][u])}}}},R.MatchData.prototype.add=function(e,t,n){if(!(e in this.metadata))return this.metadata[e]=Object.create(null),void(this.metadata[e][t]=n);if(t in this.metadata[e])for(var r=Object.keys(n),a=0;a<r.length;a++){var o=r[a];o in this.metadata[e][t]?this.metadata[e][t][o]=this.metadata[e][t][o].concat(n[o]):this.metadata[e][t][o]=n[o]}else this.metadata[e][t]=n},R.Query=function(e){this.clauses=[],this.allFields=e},R.Query.wildcard=new String("*"),R.Query.wildcard.NONE=0,R.Query.wildcard.LEADING=1,R.Query.wildcard.TRAILING=2,R.Query.presence={OPTIONAL:1,REQUIRED:2,PROHIBITED:3},R.Query.prototype.clause=function(e){return"fields"in e||(e.fields=this.allFields),"boost"in e||(e.boost=1),"usePipeline"in e||(e.usePipeline=!0),"wildcard"in e||(e.wildcard=R.Query.wildcard.NONE),e.wildcard&R.Query.wildcard.LEADING&&e.term.charAt(0)!=R.Query.wildcard&&(e.term="*"+e.term),e.wildcard&R.Query.wildcard.TRAILING&&e.term.slice(-1)!=R.Query.wildcard&&(e.term=e.term+"*"),"presence"in e||(e.presence=R.Query.presence.OPTIONAL),this.clauses.push(e),this},R.Query.prototype.isNegated=function(){for(var e=0;e<this.clauses.length;e++)if(this.clauses[e].presence!=R.Query.presence.PROHIBITED)return!1;return!0},R.Query.prototype.term=function(e,t){if(Array.isArray(e))return e.forEach((function(e){this.term(e,R.utils.clone(t))}),this),this;var n=t||{};return n.term=e.toString(),this.clause(n),this},R.QueryParseError=function(e,t,n){this.name="QueryParseError",this.message=e,this.start=t,this.end=n},R.QueryParseError.prototype=new Error,R.QueryLexer=function(e){this.lexemes=[],this.str=e,this.length=e.length,this.pos=0,this.start=0,this.escapeCharPositions=[]},R.QueryLexer.prototype.run=function(){for(var e=R.QueryLexer.lexText;e;)e=e(this)},R.QueryLexer.prototype.sliceString=function(){for(var e=[],t=this.start,n=this.pos,r=0;r<this.escapeCharPositions.length;r++)n=this.escapeCharPositions[r],e.push(this.str.slice(t,n)),t=n+1;return e.push(this.str.slice(t,this.pos)),this.escapeCharPositions.length=0,e.join("")},R.QueryLexer.prototype.emit=function(e){this.lexemes.push({type:e,str:this.sliceString(),start:this.start,end:this.pos}),this.start=this.pos},R.QueryLexer.prototype.escapeCharacter=function(){this.escapeCharPositions.push(this.pos-1),this.pos+=1},R.QueryLexer.prototype.next=function(){if(this.pos>=this.length)return R.QueryLexer.EOS;var e=this.str.charAt(this.pos);return this.pos+=1,e},R.QueryLexer.prototype.width=function(){return this.pos-this.start},R.QueryLexer.prototype.ignore=function(){this.start==this.pos&&(this.pos+=1),this.start=this.pos},R.QueryLexer.prototype.backup=function(){this.pos-=1},R.QueryLexer.prototype.acceptDigitRun=function(){var e,t;do{t=(e=this.next()).charCodeAt(0)}while(t>47&&t<58);e!=R.QueryLexer.EOS&&this.backup()},R.QueryLexer.prototype.more=function(){return this.pos<this.length},R.QueryLexer.EOS="EOS",R.QueryLexer.FIELD="FIELD",R.QueryLexer.TERM="TERM",R.QueryLexer.EDIT_DISTANCE="EDIT_DISTANCE",R.QueryLexer.BOOST="BOOST",R.QueryLexer.PRESENCE="PRESENCE",R.QueryLexer.lexField=function(e){return e.backup(),e.emit(R.QueryLexer.FIELD),e.ignore(),R.QueryLexer.lexText},R.QueryLexer.lexTerm=function(e){if(e.width()>1&&(e.backup(),e.emit(R.QueryLexer.TERM)),e.ignore(),e.more())return R.QueryLexer.lexText},R.QueryLexer.lexEditDistance=function(e){return e.ignore(),e.acceptDigitRun(),e.emit(R.QueryLexer.EDIT_DISTANCE),R.QueryLexer.lexText},R.QueryLexer.lexBoost=function(e){return e.ignore(),e.acceptDigitRun(),e.emit(R.QueryLexer.BOOST),R.QueryLexer.lexText},R.QueryLexer.lexEOS=function(e){e.width()>0&&e.emit(R.QueryLexer.TERM)},R.QueryLexer.termSeparator=R.tokenizer.separator,R.QueryLexer.lexText=function(e){for(;;){var t=e.next();if(t==R.QueryLexer.EOS)return R.QueryLexer.lexEOS;if(92!=t.charCodeAt(0)){if(":"==t)return R.QueryLexer.lexField;if("~"==t)return e.backup(),e.width()>0&&e.emit(R.QueryLexer.TERM),R.QueryLexer.lexEditDistance;if("^"==t)return e.backup(),e.width()>0&&e.emit(R.QueryLexer.TERM),R.QueryLexer.lexBoost;if("+"==t&&1===e.width())return e.emit(R.QueryLexer.PRESENCE),R.QueryLexer.lexText;if("-"==t&&1===e.width())return e.emit(R.QueryLexer.PRESENCE),R.QueryLexer.lexText;if(t.match(R.QueryLexer.termSeparator))return R.QueryLexer.lexTerm}else e.escapeCharacter()}},R.QueryParser=function(e,t){this.lexer=new R.QueryLexer(e),this.query=t,this.currentClause={},this.lexemeIdx=0},R.QueryParser.prototype.parse=function(){this.lexer.run(),this.lexemes=this.lexer.lexemes;for(var e=R.QueryParser.parseClause;e;)e=e(this);return this.query},R.QueryParser.prototype.peekLexeme=function(){return this.lexemes[this.lexemeIdx]},R.QueryParser.prototype.consumeLexeme=function(){var e=this.peekLexeme();return this.lexemeIdx+=1,e},R.QueryParser.prototype.nextClause=function(){var e=this.currentClause;this.query.clause(e),this.currentClause={}},R.QueryParser.parseClause=function(e){var t=e.peekLexeme();if(null!=t)switch(t.type){case R.QueryLexer.PRESENCE:return R.QueryParser.parsePresence;case R.QueryLexer.FIELD:return R.QueryParser.parseField;case R.QueryLexer.TERM:return R.QueryParser.parseTerm;default:var n="expected either a field or a term, found "+t.type;throw t.str.length>=1&&(n+=" with value '"+t.str+"'"),new R.QueryParseError(n,t.start,t.end)}},R.QueryParser.parsePresence=function(e){var t=e.consumeLexeme();if(null!=t){switch(t.str){case"-":e.currentClause.presence=R.Query.presence.PROHIBITED;break;case"+":e.currentClause.presence=R.Query.presence.REQUIRED;break;default:var n="unrecognised presence operator'"+t.str+"'";throw new R.QueryParseError(n,t.start,t.end)}var r=e.peekLexeme();if(null==r){n="expecting term or field, found nothing";throw new R.QueryParseError(n,t.start,t.end)}switch(r.type){case R.QueryLexer.FIELD:return R.QueryParser.parseField;case R.QueryLexer.TERM:return R.QueryParser.parseTerm;default:n="expecting term or field, found '"+r.type+"'";throw new R.QueryParseError(n,r.start,r.end)}}},R.QueryParser.parseField=function(e){var t=e.consumeLexeme();if(null!=t){if(-1==e.query.allFields.indexOf(t.str)){var n=e.query.allFields.map((function(e){return"'"+e+"'"})).join(", "),r="unrecognised field '"+t.str+"', possible fields: "+n;throw new R.QueryParseError(r,t.start,t.end)}e.currentClause.fields=[t.str];var a=e.peekLexeme();if(null==a){r="expecting term, found nothing";throw new R.QueryParseError(r,t.start,t.end)}if(a.type===R.QueryLexer.TERM)return R.QueryParser.parseTerm;r="expecting term, found '"+a.type+"'";throw new R.QueryParseError(r,a.start,a.end)}},R.QueryParser.parseTerm=function(e){var t=e.consumeLexeme();if(null!=t){e.currentClause.term=t.str.toLowerCase(),-1!=t.str.indexOf("*")&&(e.currentClause.usePipeline=!1);var n=e.peekLexeme();if(null!=n)switch(n.type){case R.QueryLexer.TERM:return e.nextClause(),R.QueryParser.parseTerm;case R.QueryLexer.FIELD:return e.nextClause(),R.QueryParser.parseField;case R.QueryLexer.EDIT_DISTANCE:return R.QueryParser.parseEditDistance;case R.QueryLexer.BOOST:return R.QueryParser.parseBoost;case R.QueryLexer.PRESENCE:return e.nextClause(),R.QueryParser.parsePresence;default:var r="Unexpected lexeme type '"+n.type+"'";throw new R.QueryParseError(r,n.start,n.end)}else e.nextClause()}},R.QueryParser.parseEditDistance=function(e){var t=e.consumeLexeme();if(null!=t){var n=parseInt(t.str,10);if(isNaN(n)){var r="edit distance must be numeric";throw new R.QueryParseError(r,t.start,t.end)}e.currentClause.editDistance=n;var a=e.peekLexeme();if(null!=a)switch(a.type){case R.QueryLexer.TERM:return e.nextClause(),R.QueryParser.parseTerm;case R.QueryLexer.FIELD:return e.nextClause(),R.QueryParser.parseField;case R.QueryLexer.EDIT_DISTANCE:return R.QueryParser.parseEditDistance;case R.QueryLexer.BOOST:return R.QueryParser.parseBoost;case R.QueryLexer.PRESENCE:return e.nextClause(),R.QueryParser.parsePresence;default:r="Unexpected lexeme type '"+a.type+"'";throw new R.QueryParseError(r,a.start,a.end)}else e.nextClause()}},R.QueryParser.parseBoost=function(e){var t=e.consumeLexeme();if(null!=t){var n=parseInt(t.str,10);if(isNaN(n)){var r="boost must be numeric";throw new R.QueryParseError(r,t.start,t.end)}e.currentClause.boost=n;var a=e.peekLexeme();if(null!=a)switch(a.type){case R.QueryLexer.TERM:return e.nextClause(),R.QueryParser.parseTerm;case R.QueryLexer.FIELD:return e.nextClause(),R.QueryParser.parseField;case R.QueryLexer.EDIT_DISTANCE:return R.QueryParser.parseEditDistance;case R.QueryLexer.BOOST:return R.QueryParser.parseBoost;case R.QueryLexer.PRESENCE:return e.nextClause(),R.QueryParser.parsePresence;default:r="Unexpected lexeme type '"+a.type+"'";throw new R.QueryParseError(r,a.start,a.end)}else e.nextClause()}},void 0===(a="function"==typeof(r=function(){return R})?r.call(t,n,t,e):r)||(e.exports=a)}()},2497:(e,t,n)=>{"use strict";n.r(t)},2295:(e,t,n)=>{"use strict";n.r(t)},7713:(e,t,n)=>{"use strict";n.r(t)},2601:(e,t,n)=>{"use strict";n.r(t)},4865:function(e,t,n){var r,a;r=function(){var e,t,n={version:"0.2.0"},r=n.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'<div class="bar" role="bar"><div class="peg"></div></div><div class="spinner" role="spinner"><div class="spinner-icon"></div></div>'};function a(e,t,n){return e<t?t:e>n?n:e}function o(e){return 100*(-1+e)}function i(e,t,n){var a;return(a="translate3d"===r.positionUsing?{transform:"translate3d("+o(e)+"%,0,0)"}:"translate"===r.positionUsing?{transform:"translate("+o(e)+"%,0)"}:{"margin-left":o(e)+"%"}).transition="all "+t+"ms "+n,a}n.configure=function(e){var t,n;for(t in e)void 0!==(n=e[t])&&e.hasOwnProperty(t)&&(r[t]=n);return this},n.status=null,n.set=function(e){var t=n.isStarted();e=a(e,r.minimum,1),n.status=1===e?null:e;var o=n.render(!t),u=o.querySelector(r.barSelector),c=r.speed,d=r.easing;return o.offsetWidth,s((function(t){""===r.positionUsing&&(r.positionUsing=n.getPositioningCSS()),l(u,i(e,c,d)),1===e?(l(o,{transition:"none",opacity:1}),o.offsetWidth,setTimeout((function(){l(o,{transition:"all "+c+"ms linear",opacity:0}),setTimeout((function(){n.remove(),t()}),c)}),c)):setTimeout(t,c)})),this},n.isStarted=function(){return"number"==typeof n.status},n.start=function(){n.status||n.set(0);var e=function(){setTimeout((function(){n.status&&(n.trickle(),e())}),r.trickleSpeed)};return r.trickle&&e(),this},n.done=function(e){return e||n.status?n.inc(.3+.5*Math.random()).set(1):this},n.inc=function(e){var t=n.status;return t?("number"!=typeof e&&(e=(1-t)*a(Math.random()*t,.1,.95)),t=a(t+e,0,.994),n.set(t)):n.start()},n.trickle=function(){return n.inc(Math.random()*r.trickleRate)},e=0,t=0,n.promise=function(r){return r&&"resolved"!==r.state()?(0===t&&n.start(),e++,t++,r.always((function(){0==--t?(e=0,n.done()):n.set((e-t)/e)})),this):this},n.render=function(e){if(n.isRendered())return document.getElementById("nprogress");c(document.documentElement,"nprogress-busy");var t=document.createElement("div");t.id="nprogress",t.innerHTML=r.template;var a,i=t.querySelector(r.barSelector),s=e?"-100":o(n.status||0),u=document.querySelector(r.parent);return l(i,{transition:"all 0 linear",transform:"translate3d("+s+"%,0,0)"}),r.showSpinner||(a=t.querySelector(r.spinnerSelector))&&p(a),u!=document.body&&c(u,"nprogress-custom-parent"),u.appendChild(t),t},n.remove=function(){d(document.documentElement,"nprogress-busy"),d(document.querySelector(r.parent),"nprogress-custom-parent");var e=document.getElementById("nprogress");e&&p(e)},n.isRendered=function(){return!!document.getElementById("nprogress")},n.getPositioningCSS=function(){var e=document.body.style,t="WebkitTransform"in e?"Webkit":"MozTransform"in e?"Moz":"msTransform"in e?"ms":"OTransform"in e?"O":"";return t+"Perspective"in e?"translate3d":t+"Transform"in e?"translate":"margin"};var s=function(){var e=[];function t(){var n=e.shift();n&&n(t)}return function(n){e.push(n),1==e.length&&t()}}(),l=function(){var e=["Webkit","O","Moz","ms"],t={};function n(e){return e.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,(function(e,t){return t.toUpperCase()}))}function r(t){var n=document.body.style;if(t in n)return t;for(var r,a=e.length,o=t.charAt(0).toUpperCase()+t.slice(1);a--;)if((r=e[a]+o)in n)return r;return t}function a(e){return e=n(e),t[e]||(t[e]=r(e))}function o(e,t,n){t=a(t),e.style[t]=n}return function(e,t){var n,r,a=arguments;if(2==a.length)for(n in t)void 0!==(r=t[n])&&t.hasOwnProperty(n)&&o(e,n,r);else o(e,a[1],a[2])}}();function u(e,t){return("string"==typeof e?e:f(e)).indexOf(" "+t+" ")>=0}function c(e,t){var n=f(e),r=n+t;u(n,t)||(e.className=r.substring(1))}function d(e,t){var n,r=f(e);u(e,t)&&(n=r.replace(" "+t+" "," "),e.className=n.substring(1,n.length-1))}function f(e){return(" "+(e.className||"")+" ").replace(/\s+/gi," ")}function p(e){e&&e.parentNode&&e.parentNode.removeChild(e)}return n},void 0===(a="function"==typeof r?r.call(t,n,t,e):r)||(e.exports=a)},7418:e=>{"use strict";var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(a){return!1}}()?Object.assign:function(e,a){for(var o,i,s=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),l=1;l<arguments.length;l++){for(var u in o=Object(arguments[l]))n.call(o,u)&&(s[u]=o[u]);if(t){i=t(o);for(var c=0;c<i.length;c++)r.call(o,i[c])&&(s[i[c]]=o[i[c]])}}return s}},4779:(e,t,n)=>{var r=n(5826);e.exports=p,e.exports.parse=o,e.exports.compile=function(e,t){return s(o(e,t),t)},e.exports.tokensToFunction=s,e.exports.tokensToRegExp=f;var a=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function o(e,t){for(var n,r=[],o=0,i=0,s="",c=t&&t.delimiter||"/";null!=(n=a.exec(e));){var d=n[0],f=n[1],p=n.index;if(s+=e.slice(i,p),i=p+d.length,f)s+=f[1];else{var h=e[i],m=n[2],g=n[3],b=n[4],v=n[5],y=n[6],w=n[7];s&&(r.push(s),s="");var E=null!=m&&null!=h&&h!==m,k="+"===y||"*"===y,S="?"===y||"*"===y,x=n[2]||c,_=b||v;r.push({name:g||o++,prefix:m||"",delimiter:x,optional:S,repeat:k,partial:E,asterisk:!!w,pattern:_?u(_):w?".*":"[^"+l(x)+"]+?"})}}return i<e.length&&(s+=e.substr(i)),s&&r.push(s),r}function i(e){return encodeURI(e).replace(/[\/?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function s(e,t){for(var n=new Array(e.length),a=0;a<e.length;a++)"object"==typeof e[a]&&(n[a]=new RegExp("^(?:"+e[a].pattern+")$",d(t)));return function(t,a){for(var o="",s=t||{},l=(a||{}).pretty?i:encodeURIComponent,u=0;u<e.length;u++){var c=e[u];if("string"!=typeof c){var d,f=s[c.name];if(null==f){if(c.optional){c.partial&&(o+=c.prefix);continue}throw new TypeError('Expected "'+c.name+'" to be defined')}if(r(f)){if(!c.repeat)throw new TypeError('Expected "'+c.name+'" to not repeat, but received `'+JSON.stringify(f)+"`");if(0===f.length){if(c.optional)continue;throw new TypeError('Expected "'+c.name+'" to not be empty')}for(var p=0;p<f.length;p++){if(d=l(f[p]),!n[u].test(d))throw new TypeError('Expected all "'+c.name+'" to match "'+c.pattern+'", but received `'+JSON.stringify(d)+"`");o+=(0===p?c.prefix:c.delimiter)+d}}else{if(d=c.asterisk?encodeURI(f).replace(/[?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})):l(f),!n[u].test(d))throw new TypeError('Expected "'+c.name+'" to match "'+c.pattern+'", but received "'+d+'"');o+=c.prefix+d}}else o+=c}return o}}function l(e){return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function u(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function c(e,t){return e.keys=t,e}function d(e){return e&&e.sensitive?"":"i"}function f(e,t,n){r(t)||(n=t||n,t=[]);for(var a=(n=n||{}).strict,o=!1!==n.end,i="",s=0;s<e.length;s++){var u=e[s];if("string"==typeof u)i+=l(u);else{var f=l(u.prefix),p="(?:"+u.pattern+")";t.push(u),u.repeat&&(p+="(?:"+f+p+")*"),i+=p=u.optional?u.partial?f+"("+p+")?":"(?:"+f+"("+p+"))?":f+"("+p+")"}}var h=l(n.delimiter||"/"),m=i.slice(-h.length)===h;return a||(i=(m?i.slice(0,-h.length):i)+"(?:"+h+"(?=$))?"),i+=o?"$":a&&m?"":"(?="+h+"|$)",c(new RegExp("^"+i,d(n)),t)}function p(e,t,n){return r(t)||(n=t||n,t=[]),n=n||{},e instanceof RegExp?function(e,t){var n=e.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)t.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return c(e,t)}(e,t):r(e)?function(e,t,n){for(var r=[],a=0;a<e.length;a++)r.push(p(e[a],t,n).source);return c(new RegExp("(?:"+r.join("|")+")",d(n)),t)}(e,t,n):function(e,t,n){return f(o(e,n),t,n)}(e,t,n)}},7410:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=function(){var e=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,t=0,n={},r={util:{encode:function e(t){return t instanceof a?new a(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++t}),e.__id},clone:function e(t,n){var a,o;switch(n=n||{},r.util.type(t)){case"Object":if(o=r.util.objId(t),n[o])return n[o];for(var i in a={},n[o]=a,t)t.hasOwnProperty(i)&&(a[i]=e(t[i],n));return a;case"Array":return o=r.util.objId(t),n[o]?n[o]:(a=[],n[o]=a,t.forEach((function(t,r){a[r]=e(t,n)})),a);default:return t}},getLanguage:function(t){for(;t;){var n=e.exec(t.className);if(n)return n[1].toLowerCase();t=t.parentElement}return"none"},setLanguage:function(t,n){t.className=t.className.replace(RegExp(e,"gi"),""),t.classList.add("language-"+n)},isActive:function(e,t,n){for(var r="no-"+t;e;){var a=e.classList;if(a.contains(t))return!0;if(a.contains(r))return!1;e=e.parentElement}return!!n}},languages:{plain:n,plaintext:n,text:n,txt:n,extend:function(e,t){var n=r.util.clone(r.languages[e]);for(var a in t)n[a]=t[a];return n},insertBefore:function(e,t,n,a){var o=(a=a||r.languages)[e],i={};for(var s in o)if(o.hasOwnProperty(s)){if(s==t)for(var l in n)n.hasOwnProperty(l)&&(i[l]=n[l]);n.hasOwnProperty(s)||(i[s]=o[s])}var u=a[e];return a[e]=i,r.languages.DFS(r.languages,(function(t,n){n===u&&t!=e&&(this[t]=i)})),i},DFS:function e(t,n,a,o){o=o||{};var i=r.util.objId;for(var s in t)if(t.hasOwnProperty(s)){n.call(t,s,t[s],a||s);var l=t[s],u=r.util.type(l);"Object"!==u||o[i(l)]?"Array"!==u||o[i(l)]||(o[i(l)]=!0,e(l,n,s,o)):(o[i(l)]=!0,e(l,n,null,o))}}},plugins:{},highlight:function(e,t,n){var o={code:e,grammar:t,language:n};return r.hooks.run("before-tokenize",o),o.tokens=r.tokenize(o.code,o.grammar),r.hooks.run("after-tokenize",o),a.stringify(r.util.encode(o.tokens),o.language)},tokenize:function(e,t){var n=t.rest;if(n){for(var r in n)t[r]=n[r];delete t.rest}var a=new s;return l(a,a.head,e),i(e,a,t,a.head,0),function(e){var t=[],n=e.head.next;for(;n!==e.tail;)t.push(n.value),n=n.next;return t}(a)},hooks:{all:{},add:function(e,t){var n=r.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=r.hooks.all[e];if(n&&n.length)for(var a,o=0;a=n[o++];)a(t)}},Token:a};function a(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=0|(r||"").length}function o(e,t,n,r){e.lastIndex=t;var a=e.exec(n);if(a&&r&&a[1]){var o=a[1].length;a.index+=o,a[0]=a[0].slice(o)}return a}function i(e,t,n,s,c,d){for(var f in n)if(n.hasOwnProperty(f)&&n[f]){var p=n[f];p=Array.isArray(p)?p:[p];for(var h=0;h<p.length;++h){if(d&&d.cause==f+","+h)return;var m=p[h],g=m.inside,b=!!m.lookbehind,v=!!m.greedy,y=m.alias;if(v&&!m.pattern.global){var w=m.pattern.toString().match(/[imsuy]*$/)[0];m.pattern=RegExp(m.pattern.source,w+"g")}for(var E=m.pattern||m,k=s.next,S=c;k!==t.tail&&!(d&&S>=d.reach);S+=k.value.length,k=k.next){var x=k.value;if(t.length>e.length)return;if(!(x instanceof a)){var _,L=1;if(v){if(!(_=o(E,S,e,b))||_.index>=e.length)break;var C=_.index,T=_.index+_[0].length,A=S;for(A+=k.value.length;C>=A;)A+=(k=k.next).value.length;if(S=A-=k.value.length,k.value instanceof a)continue;for(var O=k;O!==t.tail&&(A<T||"string"==typeof O.value);O=O.next)L++,A+=O.value.length;L--,x=e.slice(S,A),_.index-=S}else if(!(_=o(E,0,x,b)))continue;C=_.index;var P=_[0],N=x.slice(0,C),D=x.slice(C+P.length),I=S+x.length;d&&I>d.reach&&(d.reach=I);var R=k.prev;if(N&&(R=l(t,R,N),S+=N.length),u(t,R,L),k=l(t,R,new a(f,g?r.tokenize(P,g):P,y,P)),D&&l(t,k,D),L>1){var M={cause:f+","+h,reach:I};i(e,t,n,k.prev,S,M),d&&M.reach>d.reach&&(d.reach=M.reach)}}}}}}function s(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function l(e,t,n){var r=t.next,a={value:n,prev:t,next:r};return t.next=a,r.prev=a,e.length++,a}function u(e,t,n){for(var r=t.next,a=0;a<n&&r!==e.tail;a++)r=r.next;t.next=r,r.prev=t,e.length-=a}return a.stringify=function e(t,n){if("string"==typeof t)return t;if(Array.isArray(t)){var a="";return t.forEach((function(t){a+=e(t,n)})),a}var o={type:t.type,content:e(t.content,n),tag:"span",classes:["token",t.type],attributes:{},language:n},i=t.alias;i&&(Array.isArray(i)?Array.prototype.push.apply(o.classes,i):o.classes.push(i)),r.hooks.run("wrap",o);var s="";for(var l in o.attributes)s+=" "+l+'="'+(o.attributes[l]||"").replace(/"/g,""")+'"';return"<"+o.tag+' class="'+o.classes.join(" ")+'"'+s+">"+o.content+"</"+o.tag+">"},r}(),a=r;r.default=r,a.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},a.languages.markup.tag.inside["attr-value"].inside.entity=a.languages.markup.entity,a.languages.markup.doctype.inside["internal-subset"].inside=a.languages.markup,a.hooks.add("wrap",(function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&/,"&"))})),Object.defineProperty(a.languages.markup.tag,"addInlined",{value:function(e,t){var n={};n["language-"+t]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:a.languages[t]},n.cdata=/^<!\[CDATA\[|\]\]>$/i;var r={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:n}};r["language-"+t]={pattern:/[\s\S]+/,inside:a.languages[t]};var o={};o[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,(function(){return e})),"i"),lookbehind:!0,greedy:!0,inside:r},a.languages.insertBefore("markup","cdata",o)}}),Object.defineProperty(a.languages.markup.tag,"addAttribute",{value:function(e,t){a.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,"language-"+t],inside:a.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),a.languages.html=a.languages.markup,a.languages.mathml=a.languages.markup,a.languages.svg=a.languages.markup,a.languages.xml=a.languages.extend("markup",{}),a.languages.ssml=a.languages.xml,a.languages.atom=a.languages.xml,a.languages.rss=a.languages.xml,function(e){var t="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",n={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},r={bash:n,environment:{pattern:RegExp("\\$"+t),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+t),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};e.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+t),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:r},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:n}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:r},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:r.entity}}],environment:{pattern:RegExp("\\$?"+t),alias:"constant"},variable:r.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},n.inside=e.languages.bash;for(var a=["comment","function-name","for-or-select","assign-left","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],o=r.variable[1].inside,i=0;i<a.length;i++)o[a[i]]=e.languages.bash[a[i]];e.languages.shell=e.languages.bash}(a),a.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},a.languages.c=a.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),a.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),a.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},a.languages.c.string],char:a.languages.c.char,comment:a.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:a.languages.c}}}}),a.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete a.languages.c.boolean,function(e){var t=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,n=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,(function(){return t.source}));e.languages.cpp=e.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,(function(){return t.source}))),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:t,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),e.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,(function(){return n}))+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),e.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:e.languages.cpp}}}}),e.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),e.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:e.languages.extend("cpp",{})}}),e.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},e.languages.cpp["base-clause"])}(a),function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/,inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css;var n=e.languages.markup;n&&(n.tag.addInlined("style","css"),n.tag.addAttribute("style","css"))}(a),function(e){var t,n=/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/;e.languages.css.selector={pattern:e.languages.css.selector.pattern,lookbehind:!0,inside:t={"pseudo-element":/:(?:after|before|first-letter|first-line|selection)|::[-\w]+/,"pseudo-class":/:[-\w]+/,class:/\.[-\w]+/,id:/#[-\w]+/,attribute:{pattern:RegExp("\\[(?:[^[\\]\"']|"+n.source+")*\\]"),greedy:!0,inside:{punctuation:/^\[|\]$/,"case-sensitivity":{pattern:/(\s)[si]$/i,lookbehind:!0,alias:"keyword"},namespace:{pattern:/^(\s*)(?:(?!\s)[-*\w\xA0-\uFFFF])*\|(?!=)/,lookbehind:!0,inside:{punctuation:/\|$/}},"attr-name":{pattern:/^(\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+/,lookbehind:!0},"attr-value":[n,{pattern:/(=\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+(?=\s*$)/,lookbehind:!0}],operator:/[|~*^$]?=/}},"n-th":[{pattern:/(\(\s*)[+-]?\d*[\dn](?:\s*[+-]\s*\d+)?(?=\s*\))/,lookbehind:!0,inside:{number:/[\dn]+/,operator:/[+-]/}},{pattern:/(\(\s*)(?:even|odd)(?=\s*\))/i,lookbehind:!0}],combinator:/>|\+|~|\|\|/,punctuation:/[(),]/}},e.languages.css.atrule.inside["selector-function-argument"].inside=t,e.languages.insertBefore("css","property",{variable:{pattern:/(^|[^-\w\xA0-\uFFFF])--(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*/i,lookbehind:!0}});var r={pattern:/(\b\d+)(?:%|[a-z]+(?![\w-]))/,lookbehind:!0},a={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0};e.languages.insertBefore("css","function",{operator:{pattern:/(\s)[+\-*\/](?=\s)/,lookbehind:!0},hexcode:{pattern:/\B#[\da-f]{3,8}\b/i,alias:"color"},color:[{pattern:/(^|[^\w-])(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)(?![\w-])/i,lookbehind:!0},{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:r,number:a,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:r,number:a})}(a),a.languages.javascript=a.languages.extend("clike",{"class-name":[a.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),a.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,a.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:a.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:a.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:a.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:a.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:a.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),a.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:a.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),a.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),a.languages.markup&&(a.languages.markup.tag.addInlined("script","javascript"),a.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),a.languages.js=a.languages.javascript,function(e){var t=/#(?!\{).+/,n={pattern:/#\{[^}]+\}/,alias:"variable"};e.languages.coffeescript=e.languages.extend("javascript",{comment:t,string:[{pattern:/'(?:\\[\s\S]|[^\\'])*'/,greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0,inside:{interpolation:n}}],keyword:/\b(?:and|break|by|catch|class|continue|debugger|delete|do|each|else|extend|extends|false|finally|for|if|in|instanceof|is|isnt|let|loop|namespace|new|no|not|null|of|off|on|or|own|return|super|switch|then|this|throw|true|try|typeof|undefined|unless|until|when|while|window|with|yes|yield)\b/,"class-member":{pattern:/@(?!\d)\w+/,alias:"variable"}}),e.languages.insertBefore("coffeescript","comment",{"multiline-comment":{pattern:/###[\s\S]+?###/,alias:"comment"},"block-regex":{pattern:/\/{3}[\s\S]*?\/{3}/,alias:"regex",inside:{comment:t,interpolation:n}}}),e.languages.insertBefore("coffeescript","string",{"inline-javascript":{pattern:/`(?:\\[\s\S]|[^\\`])*`/,inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"},script:{pattern:/[\s\S]+/,alias:"language-javascript",inside:e.languages.javascript}}},"multiline-string":[{pattern:/'''[\s\S]*?'''/,greedy:!0,alias:"string"},{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string",inside:{interpolation:n}}]}),e.languages.insertBefore("coffeescript","keyword",{property:/(?!\d)\w+(?=\s*:(?!:))/}),delete e.languages.coffeescript["template-string"],e.languages.coffee=e.languages.coffeescript}(a),function(e){var t=/[*&][^\s[\]{},]+/,n=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,r="(?:"+n.source+"(?:[ \t]+"+t.source+")?|"+t.source+"(?:[ \t]+"+n.source+")?)",a=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*/.source.replace(/<PLAIN>/g,(function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source})),o=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function i(e,t){t=(t||"").replace(/m/g,"")+"m";var n=/([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g,(function(){return r})).replace(/<<value>>/g,(function(){return e}));return RegExp(n,t)}e.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<<prop>>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<<prop>>/g,(function(){return r}))),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g,(function(){return r})).replace(/<<key>>/g,(function(){return"(?:"+a+"|"+o+")"}))),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:i(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:i(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:i(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:i(o),lookbehind:!0,greedy:!0},number:{pattern:i(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:n,important:t,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},e.languages.yml=e.languages.yaml}(a),function(e){var t=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function n(e){return e=e.replace(/<inner>/g,(function(){return t})),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+e+")")}var r=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,a=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,(function(){return r})),o=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;e.languages.markdown=e.languages.extend("markup",{}),e.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:e.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+a+o+"(?:"+a+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+a+o+")(?:"+a+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(r),inside:e.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+a+")"+o+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+a+"$"),inside:{"table-header":{pattern:RegExp(r),alias:"important",inside:e.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:n(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:n(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:n(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:n(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach((function(t){["url","bold","italic","strike","code-snippet"].forEach((function(n){t!==n&&(e.languages.markdown[t].inside.content.inside[n]=e.languages.markdown[n])}))})),e.hooks.add("after-tokenize",(function(e){"markdown"!==e.language&&"md"!==e.language||function e(t){if(t&&"string"!=typeof t)for(var n=0,r=t.length;n<r;n++){var a=t[n];if("code"===a.type){var o=a.content[1],i=a.content[3];if(o&&i&&"code-language"===o.type&&"code-block"===i.type&&"string"==typeof o.content){var s=o.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp"),l="language-"+(s=(/[a-z][\w-]*/i.exec(s)||[""])[0].toLowerCase());i.alias?"string"==typeof i.alias?i.alias=[i.alias,l]:i.alias.push(l):i.alias=[l]}}else e(a.content)}}(e.tokens)})),e.hooks.add("wrap",(function(t){if("code-block"===t.type){for(var n="",r=0,a=t.classes.length;r<a;r++){var o=t.classes[r],u=/language-(.+)/.exec(o);if(u){n=u[1];break}}var c,d=e.languages[n];if(d)t.content=e.highlight((c=t.content,c.replace(i,"").replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,(function(e,t){var n;if("#"===(t=t.toLowerCase())[0])return n="x"===t[1]?parseInt(t.slice(2),16):Number(t.slice(1)),l(n);var r=s[t];return r||e}))),d,n);else if(n&&"none"!==n&&e.plugins.autoloader){var f="md-"+(new Date).valueOf()+"-"+Math.floor(1e16*Math.random());t.attributes.id=f,e.plugins.autoloader.loadLanguages(n,(function(){var t=document.getElementById(f);t&&(t.innerHTML=e.highlight(t.textContent,e.languages[n],n))}))}}}));var i=RegExp(e.languages.markup.tag.pattern.source,"gi"),s={amp:"&",lt:"<",gt:">",quot:'"'},l=String.fromCodePoint||String.fromCharCode;e.languages.md=e.languages.markdown}(a),a.languages.graphql={comment:/#.*/,description:{pattern:/(?:"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*")(?=\s*[a-z_])/i,greedy:!0,alias:"string",inside:{"language-markdown":{pattern:/(^"(?:"")?)(?!\1)[\s\S]+(?=\1$)/,lookbehind:!0,inside:a.languages.markdown}}},string:{pattern:/"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},number:/(?:\B-|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,boolean:/\b(?:false|true)\b/,variable:/\$[a-z_]\w*/i,directive:{pattern:/@[a-z_]\w*/i,alias:"function"},"attr-name":{pattern:/\b[a-z_]\w*(?=\s*(?:\((?:[^()"]|"(?:\\.|[^\\"\r\n])*")*\))?:)/i,greedy:!0},"atom-input":{pattern:/\b[A-Z]\w*Input\b/,alias:"class-name"},scalar:/\b(?:Boolean|Float|ID|Int|String)\b/,constant:/\b[A-Z][A-Z_\d]*\b/,"class-name":{pattern:/(\b(?:enum|implements|interface|on|scalar|type|union)\s+|&\s*|:\s*|\[)[A-Z_]\w*/,lookbehind:!0},fragment:{pattern:/(\bfragment\s+|\.{3}\s*(?!on\b))[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-mutation":{pattern:/(\bmutation\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-query":{pattern:/(\bquery\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},keyword:/\b(?:directive|enum|extend|fragment|implements|input|interface|mutation|on|query|repeatable|scalar|schema|subscription|type|union)\b/,operator:/[!=|&]|\.{3}/,"property-query":/\w+(?=\s*\()/,object:/\w+(?=\s*\{)/,punctuation:/[!(){}\[\]:=,]/,property:/\w+/},a.hooks.add("after-tokenize",(function(e){if("graphql"===e.language)for(var t=e.tokens.filter((function(e){return"string"!=typeof e&&"comment"!==e.type&&"scalar"!==e.type})),n=0;n<t.length;){var r=t[n++];if("keyword"===r.type&&"mutation"===r.content){var a=[];if(d(["definition-mutation","punctuation"])&&"("===c(1).content){n+=2;var o=f(/^\($/,/^\)$/);if(-1===o)continue;for(;n<o;n++){var i=c(0);"variable"===i.type&&(p(i,"variable-input"),a.push(i.content))}n=o+1}if(d(["punctuation","property-query"])&&"{"===c(0).content&&(n++,p(c(0),"property-mutation"),a.length>0)){var s=f(/^\{$/,/^\}$/);if(-1===s)continue;for(var l=n;l<s;l++){var u=t[l];"variable"===u.type&&a.indexOf(u.content)>=0&&p(u,"variable-input")}}}}function c(e){return t[n+e]}function d(e,t){t=t||0;for(var n=0;n<e.length;n++){var r=c(n+t);if(!r||r.type!==e[n])return!1}return!0}function f(e,r){for(var a=1,o=n;o<t.length;o++){var i=t[o],s=i.content;if("punctuation"===i.type&&"string"==typeof s)if(e.test(s))a++;else if(r.test(s)&&0===--a)return o}return-1}function p(e,t){var n=e.alias;n?Array.isArray(n)||(e.alias=n=[n]):e.alias=n=[],n.push(t)}})),a.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/},function(e){var t=e.languages.javascript["template-string"],n=t.pattern.source,r=t.inside.interpolation,a=r.inside["interpolation-punctuation"],o=r.pattern.source;function i(t,r){if(e.languages[t])return{pattern:RegExp("((?:"+r+")\\s*)"+n),lookbehind:!0,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},"embedded-code":{pattern:/[\s\S]+/,alias:t}}}}function s(e,t){return"___"+t.toUpperCase()+"_"+e+"___"}function l(t,n,r){var a={code:t,grammar:n,language:r};return e.hooks.run("before-tokenize",a),a.tokens=e.tokenize(a.code,a.grammar),e.hooks.run("after-tokenize",a),a.tokens}function u(t){var n={};n["interpolation-punctuation"]=a;var o=e.tokenize(t,n);if(3===o.length){var i=[1,1];i.push.apply(i,l(o[1],e.languages.javascript,"javascript")),o.splice.apply(o,i)}return new e.Token("interpolation",o,r.alias,t)}function c(t,n,r){var a=e.tokenize(t,{interpolation:{pattern:RegExp(o),lookbehind:!0}}),i=0,c={},d=l(a.map((function(e){if("string"==typeof e)return e;for(var n,a=e.content;-1!==t.indexOf(n=s(i++,r)););return c[n]=a,n})).join(""),n,r),f=Object.keys(c);return i=0,function e(t){for(var n=0;n<t.length;n++){if(i>=f.length)return;var r=t[n];if("string"==typeof r||"string"==typeof r.content){var a=f[i],o="string"==typeof r?r:r.content,s=o.indexOf(a);if(-1!==s){++i;var l=o.substring(0,s),d=u(c[a]),p=o.substring(s+a.length),h=[];if(l&&h.push(l),h.push(d),p){var m=[p];e(m),h.push.apply(h,m)}"string"==typeof r?(t.splice.apply(t,[n,1].concat(h)),n+=h.length-1):r.content=h}}else{var g=r.content;Array.isArray(g)?e(g):e([g])}}}(d),new e.Token(r,d,"language-"+r,t)}e.languages.javascript["template-string"]=[i("css",/\b(?:styled(?:\([^)]*\))?(?:\s*\.\s*\w+(?:\([^)]*\))*)*|css(?:\s*\.\s*(?:global|resolve))?|createGlobalStyle|keyframes)/.source),i("html",/\bhtml|\.\s*(?:inner|outer)HTML\s*\+?=/.source),i("svg",/\bsvg/.source),i("markdown",/\b(?:markdown|md)/.source),i("graphql",/\b(?:gql|graphql(?:\s*\.\s*experimental)?)/.source),i("sql",/\bsql/.source),t].filter(Boolean);var d={javascript:!0,js:!0,typescript:!0,ts:!0,jsx:!0,tsx:!0};function f(e){return"string"==typeof e?e:Array.isArray(e)?e.map(f).join(""):f(e.content)}e.hooks.add("after-tokenize",(function(t){t.language in d&&function t(n){for(var r=0,a=n.length;r<a;r++){var o=n[r];if("string"!=typeof o){var i=o.content;if(Array.isArray(i))if("template-string"===o.type){var s=i[1];if(3===i.length&&"string"!=typeof s&&"embedded-code"===s.type){var l=f(s),u=s.alias,d=Array.isArray(u)?u[0]:u,p=e.languages[d];if(!p)continue;i[1]=c(l,p,d)}}else t(i);else"string"!=typeof i&&t([i])}}}(t.tokens)}))}(a),function(e){e.languages.typescript=e.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),e.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete e.languages.typescript.parameter,delete e.languages.typescript["literal-property"];var t=e.languages.extend("typescript",{});delete t["class-name"],e.languages.typescript["class-name"].inside=t,e.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:t}}}}),e.languages.ts=e.languages.typescript}(a),function(e){function t(e,t){return RegExp(e.replace(/<ID>/g,(function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source})),t)}e.languages.insertBefore("javascript","function-variable",{"method-variable":{pattern:RegExp("(\\.\\s*)"+e.languages.javascript["function-variable"].pattern.source),lookbehind:!0,alias:["function-variable","method","function","property-access"]}}),e.languages.insertBefore("javascript","function",{method:{pattern:RegExp("(\\.\\s*)"+e.languages.javascript.function.source),lookbehind:!0,alias:["function","property-access"]}}),e.languages.insertBefore("javascript","constant",{"known-class-name":[{pattern:/\b(?:(?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)?Array|ArrayBuffer|BigInt|Boolean|DataView|Date|Error|Function|Intl|JSON|(?:Weak)?(?:Map|Set)|Math|Number|Object|Promise|Proxy|Reflect|RegExp|String|Symbol|WebAssembly)\b/,alias:"class-name"},{pattern:/\b(?:[A-Z]\w*)Error\b/,alias:"class-name"}]}),e.languages.insertBefore("javascript","keyword",{imports:{pattern:t(/(\bimport\b\s*)(?:<ID>(?:\s*,\s*(?:\*\s*as\s+<ID>|\{[^{}]*\}))?|\*\s*as\s+<ID>|\{[^{}]*\})(?=\s*\bfrom\b)/.source),lookbehind:!0,inside:e.languages.javascript},exports:{pattern:t(/(\bexport\b\s*)(?:\*(?:\s*as\s+<ID>)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source),lookbehind:!0,inside:e.languages.javascript}}),e.languages.javascript.keyword.unshift({pattern:/\b(?:as|default|export|from|import)\b/,alias:"module"},{pattern:/\b(?:await|break|catch|continue|do|else|finally|for|if|return|switch|throw|try|while|yield)\b/,alias:"control-flow"},{pattern:/\bnull\b/,alias:["null","nil"]},{pattern:/\bundefined\b/,alias:"nil"}),e.languages.insertBefore("javascript","operator",{spread:{pattern:/\.{3}/,alias:"operator"},arrow:{pattern:/=>/,alias:"operator"}}),e.languages.insertBefore("javascript","punctuation",{"property-access":{pattern:t(/(\.\s*)#?<ID>/.source),lookbehind:!0},"maybe-class-name":{pattern:/(^|[^$\w\xA0-\uFFFF])[A-Z][$\w\xA0-\uFFFF]+/,lookbehind:!0},dom:{pattern:/\b(?:document|(?:local|session)Storage|location|navigator|performance|window)\b/,alias:"variable"},console:{pattern:/\bconsole(?=\s*\.)/,alias:"class-name"}});for(var n=["function","function-variable","method","method-variable","property-access"],r=0;r<n.length;r++){var a=n[r],o=e.languages.javascript[a];"RegExp"===e.util.type(o)&&(o=e.languages.javascript[a]={pattern:o});var i=o.inside||{};o.inside=i,i["maybe-class-name"]=/^[A-Z][\s\S]*/}}(a),function(e){var t=e.util.clone(e.languages.javascript),n=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,r=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,a=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function o(e,t){return e=e.replace(/<S>/g,(function(){return n})).replace(/<BRACES>/g,(function(){return r})).replace(/<SPREAD>/g,(function(){return a})),RegExp(e,t)}a=o(a).source,e.languages.jsx=e.languages.extend("markup",t),e.languages.jsx.tag.pattern=o(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),e.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,e.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,e.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,e.languages.jsx.tag.inside.comment=t.comment,e.languages.insertBefore("inside","attr-name",{spread:{pattern:o(/<SPREAD>/.source),inside:e.languages.jsx}},e.languages.jsx.tag),e.languages.insertBefore("inside","special-attr",{script:{pattern:o(/=<BRACES>/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:e.languages.jsx}}},e.languages.jsx.tag);var i=function(e){return e?"string"==typeof e?e:"string"==typeof e.content?e.content:e.content.map(i).join(""):""},s=function(t){for(var n=[],r=0;r<t.length;r++){var a=t[r],o=!1;if("string"!=typeof a&&("tag"===a.type&&a.content[0]&&"tag"===a.content[0].type?"</"===a.content[0].content[0].content?n.length>0&&n[n.length-1].tagName===i(a.content[0].content[1])&&n.pop():"/>"===a.content[a.content.length-1].content||n.push({tagName:i(a.content[0].content[1]),openedBraces:0}):n.length>0&&"punctuation"===a.type&&"{"===a.content?n[n.length-1].openedBraces++:n.length>0&&n[n.length-1].openedBraces>0&&"punctuation"===a.type&&"}"===a.content?n[n.length-1].openedBraces--:o=!0),(o||"string"==typeof a)&&n.length>0&&0===n[n.length-1].openedBraces){var l=i(a);r<t.length-1&&("string"==typeof t[r+1]||"plain-text"===t[r+1].type)&&(l+=i(t[r+1]),t.splice(r+1,1)),r>0&&("string"==typeof t[r-1]||"plain-text"===t[r-1].type)&&(l=i(t[r-1])+l,t.splice(r-1,1),r--),t[r]=new e.Token("plain-text",l,null,l)}a.content&&"string"!=typeof a.content&&s(a.content)}};e.hooks.add("after-tokenize",(function(e){"jsx"!==e.language&&"tsx"!==e.language||s(e.tokens)}))}(a),function(e){e.languages.diff={coord:[/^(?:\*{3}|-{3}|\+{3}).*$/m,/^@@.*@@$/m,/^\d.*$/m]};var t={"deleted-sign":"-","deleted-arrow":"<","inserted-sign":"+","inserted-arrow":">",unchanged:" ",diff:"!"};Object.keys(t).forEach((function(n){var r=t[n],a=[];/^\w+$/.test(n)||a.push(/\w+/.exec(n)[0]),"diff"===n&&a.push("bold"),e.languages.diff[n]={pattern:RegExp("^(?:["+r+"].*(?:\r\n?|\n|(?![\\s\\S])))+","m"),alias:a,inside:{line:{pattern:/(.)(?=[\s\S]).*(?:\r\n?|\n)?/,lookbehind:!0},prefix:{pattern:/[\s\S]/,alias:/\w+/.exec(n)[0]}}}})),Object.defineProperty(e.languages.diff,"PREFIXES",{value:t})}(a),a.languages.git={comment:/^#.*/m,deleted:/^[-\u2013].*/m,inserted:/^\+.*/m,string:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,command:{pattern:/^.*\$ git .*$/m,inside:{parameter:/\s--?\w+/}},coord:/^@@.*@@$/m,"commit-sha1":/^commit \w{40}$/m},a.languages.go=a.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),a.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete a.languages.go["class-name"],function(e){function t(e,t){return"___"+e.toUpperCase()+t+"___"}Object.defineProperties(e.languages["markup-templating"]={},{buildPlaceholders:{value:function(n,r,a,o){if(n.language===r){var i=n.tokenStack=[];n.code=n.code.replace(a,(function(e){if("function"==typeof o&&!o(e))return e;for(var a,s=i.length;-1!==n.code.indexOf(a=t(r,s));)++s;return i[s]=e,a})),n.grammar=e.languages.markup}}},tokenizePlaceholders:{value:function(n,r){if(n.language===r&&n.tokenStack){n.grammar=e.languages[r];var a=0,o=Object.keys(n.tokenStack);!function i(s){for(var l=0;l<s.length&&!(a>=o.length);l++){var u=s[l];if("string"==typeof u||u.content&&"string"==typeof u.content){var c=o[a],d=n.tokenStack[c],f="string"==typeof u?u:u.content,p=t(r,c),h=f.indexOf(p);if(h>-1){++a;var m=f.substring(0,h),g=new e.Token(r,e.tokenize(d,n.grammar),"language-"+r,d),b=f.substring(h+p.length),v=[];m&&v.push.apply(v,i([m])),v.push(g),b&&v.push.apply(v,i([b])),"string"==typeof u?s.splice.apply(s,[l,1].concat(v)):u.content=v}}else u.content&&i(u.content)}return s}(n.tokens)}}}})}(a),function(e){e.languages.handlebars={comment:/\{\{![\s\S]*?\}\}/,delimiter:{pattern:/^\{\{\{?|\}\}\}?$/,alias:"punctuation"},string:/(["'])(?:\\.|(?!\1)[^\\\r\n])*\1/,number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][+-]?\d+)?/,boolean:/\b(?:false|true)\b/,block:{pattern:/^(\s*(?:~\s*)?)[#\/]\S+?(?=\s*(?:~\s*)?$|\s)/,lookbehind:!0,alias:"keyword"},brackets:{pattern:/\[[^\]]+\]/,inside:{punctuation:/\[|\]/,variable:/[\s\S]+/}},punctuation:/[!"#%&':()*+,.\/;<=>@\[\\\]^`{|}~]/,variable:/[^!"#%&'()*+,\/;<=>@\[\\\]^`{|}~\s]+/},e.hooks.add("before-tokenize",(function(t){e.languages["markup-templating"].buildPlaceholders(t,"handlebars",/\{\{\{[\s\S]+?\}\}\}|\{\{[\s\S]+?\}\}/g)})),e.hooks.add("after-tokenize",(function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"handlebars")})),e.languages.hbs=e.languages.handlebars}(a),a.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},a.languages.webmanifest=a.languages.json,a.languages.less=a.languages.extend("css",{comment:[/\/\*[\s\S]*?\*\//,{pattern:/(^|[^\\])\/\/.*/,lookbehind:!0}],atrule:{pattern:/@[\w-](?:\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{punctuation:/[:()]/}},selector:{pattern:/(?:@\{[\w-]+\}|[^{};\s@])(?:@\{[\w-]+\}|\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};@\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{variable:/@+[\w-]+/}},property:/(?:@\{[\w-]+\}|[\w-])+(?:\+_?)?(?=\s*:)/,operator:/[+\-*\/]/}),a.languages.insertBefore("less","property",{variable:[{pattern:/@[\w-]+\s*:/,inside:{punctuation:/:/}},/@@?[\w-]+/],"mixin-usage":{pattern:/([{;]\s*)[.#](?!\d)[\w-].*?(?=[(;])/,lookbehind:!0,alias:"function"}}),a.languages.makefile={comment:{pattern:/(^|[^\\])#(?:\\(?:\r\n|[\s\S])|[^\\\r\n])*/,lookbehind:!0},string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"builtin-target":{pattern:/\.[A-Z][^:#=\s]+(?=\s*:(?!=))/,alias:"builtin"},target:{pattern:/^(?:[^:=\s]|[ \t]+(?![\s:]))+(?=\s*:(?!=))/m,alias:"symbol",inside:{variable:/\$+(?:(?!\$)[^(){}:#=\s]+|(?=[({]))/}},variable:/\$+(?:(?!\$)[^(){}:#=\s]+|\([@*%<^+?][DF]\)|(?=[({]))/,keyword:/-include\b|\b(?:define|else|endef|endif|export|ifn?def|ifn?eq|include|override|private|sinclude|undefine|unexport|vpath)\b/,function:{pattern:/(\()(?:abspath|addsuffix|and|basename|call|dir|error|eval|file|filter(?:-out)?|findstring|firstword|flavor|foreach|guile|if|info|join|lastword|load|notdir|or|origin|patsubst|realpath|shell|sort|strip|subst|suffix|value|warning|wildcard|word(?:list|s)?)(?=[ \t])/,lookbehind:!0},operator:/(?:::|[?:+!])?=|[|@]/,punctuation:/[:;(){}]/},a.languages.objectivec=a.languages.extend("c",{string:{pattern:/@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|inline|int|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/,operator:/-[->]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete a.languages.objectivec["class-name"],a.languages.objc=a.languages.objectivec,a.languages.ocaml={comment:{pattern:/\(\*[\s\S]*?\*\)/,greedy:!0},char:{pattern:/'(?:[^\\\r\n']|\\(?:.|[ox]?[0-9a-f]{1,3}))'/i,greedy:!0},string:[{pattern:/"(?:\\(?:[\s\S]|\r\n)|[^\\\r\n"])*"/,greedy:!0},{pattern:/\{([a-z_]*)\|[\s\S]*?\|\1\}/,greedy:!0}],number:[/\b(?:0b[01][01_]*|0o[0-7][0-7_]*)\b/i,/\b0x[a-f0-9][a-f0-9_]*(?:\.[a-f0-9_]*)?(?:p[+-]?\d[\d_]*)?(?!\w)/i,/\b\d[\d_]*(?:\.[\d_]*)?(?:e[+-]?\d[\d_]*)?(?!\w)/i],directive:{pattern:/\B#\w+/,alias:"property"},label:{pattern:/\B~\w+/,alias:"property"},"type-variable":{pattern:/\B'\w+/,alias:"function"},variant:{pattern:/`\w+/,alias:"symbol"},keyword:/\b(?:as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|match|method|module|mutable|new|nonrec|object|of|open|private|rec|sig|struct|then|to|try|type|val|value|virtual|when|where|while|with)\b/,boolean:/\b(?:false|true)\b/,"operator-like-punctuation":{pattern:/\[[<>|]|[>|]\]|\{<|>\}/,alias:"punctuation"},operator:/\.[.~]|:[=>]|[=<>@^|&+\-*\/$%!?~][!$%&*+\-.\/:<=>?@^|~]*|\b(?:and|asr|land|lor|lsl|lsr|lxor|mod|or)\b/,punctuation:/;;|::|[(){}\[\].,:;#]|\b_\b/},a.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},a.languages.python["string-interpolation"].inside.interpolation.inside.rest=a.languages.python,a.languages.py=a.languages.python,a.languages.reason=a.languages.extend("clike",{string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},"class-name":/\b[A-Z]\w*/,keyword:/\b(?:and|as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|method|module|mutable|new|nonrec|object|of|open|or|private|rec|sig|struct|switch|then|to|try|type|val|virtual|when|while|with)\b/,operator:/\.{3}|:[:=]|\|>|->|=(?:==?|>)?|<=?|>=?|[|^?'#!~`]|[+\-*\/]\.?|\b(?:asr|land|lor|lsl|lsr|lxor|mod)\b/}),a.languages.insertBefore("reason","class-name",{char:{pattern:/'(?:\\x[\da-f]{2}|\\o[0-3][0-7][0-7]|\\\d{3}|\\.|[^'\\\r\n])'/,greedy:!0},constructor:/\b[A-Z]\w*\b(?!\s*\.)/,label:{pattern:/\b[a-z]\w*(?=::)/,alias:"symbol"}}),delete a.languages.reason.function,function(e){e.languages.sass=e.languages.extend("css",{comment:{pattern:/^([ \t]*)\/[\/*].*(?:(?:\r?\n|\r)\1[ \t].+)*/m,lookbehind:!0,greedy:!0}}),e.languages.insertBefore("sass","atrule",{"atrule-line":{pattern:/^(?:[ \t]*)[@+=].+/m,greedy:!0,inside:{atrule:/(?:@[\w-]+|[+=])/}}}),delete e.languages.sass.atrule;var t=/\$[-\w]+|#\{\$[-\w]+\}/,n=[/[+*\/%]|[=!]=|<=?|>=?|\b(?:and|not|or)\b/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}];e.languages.insertBefore("sass","property",{"variable-line":{pattern:/^[ \t]*\$.+/m,greedy:!0,inside:{punctuation:/:/,variable:t,operator:n}},"property-line":{pattern:/^[ \t]*(?:[^:\s]+ *:.*|:[^:\s].*)/m,greedy:!0,inside:{property:[/[^:\s]+(?=\s*:)/,{pattern:/(:)[^:\s]+/,lookbehind:!0}],punctuation:/:/,variable:t,operator:n,important:e.languages.sass.important}}}),delete e.languages.sass.property,delete e.languages.sass.important,e.languages.insertBefore("sass","punctuation",{selector:{pattern:/^([ \t]*)\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*(?:,(?:\r?\n|\r)\1[ \t]+\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*)*/m,lookbehind:!0,greedy:!0}})}(a),a.languages.scss=a.languages.extend("css",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},atrule:{pattern:/@[\w-](?:\([^()]+\)|[^()\s]|\s+(?!\s))*?(?=\s+[{;])/,inside:{rule:/@[\w-]+/}},url:/(?:[-a-z]+-)?url(?=\()/i,selector:{pattern:/(?=\S)[^@;{}()]?(?:[^@;{}()\s]|\s+(?!\s)|#\{\$[-\w]+\})+(?=\s*\{(?:\}|\s|[^}][^:{}]*[:{][^}]))/,inside:{parent:{pattern:/&/,alias:"important"},placeholder:/%[-\w]+/,variable:/\$[-\w]+|#\{\$[-\w]+\}/}},property:{pattern:/(?:[-\w]|\$[-\w]|#\{\$[-\w]+\})+(?=\s*:)/,inside:{variable:/\$[-\w]+|#\{\$[-\w]+\}/}}}),a.languages.insertBefore("scss","atrule",{keyword:[/@(?:content|debug|each|else(?: if)?|extend|for|forward|function|if|import|include|mixin|return|use|warn|while)\b/i,{pattern:/( )(?:from|through)(?= )/,lookbehind:!0}]}),a.languages.insertBefore("scss","important",{variable:/\$[-\w]+|#\{\$[-\w]+\}/}),a.languages.insertBefore("scss","function",{"module-modifier":{pattern:/\b(?:as|hide|show|with)\b/i,alias:"keyword"},placeholder:{pattern:/%[-\w]+/,alias:"selector"},statement:{pattern:/\B!(?:default|optional)\b/i,alias:"keyword"},boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"},operator:{pattern:/(\s)(?:[-+*\/%]|[=!]=|<=?|>=?|and|not|or)(?=\s)/,lookbehind:!0}}),a.languages.scss.atrule.inside.rest=a.languages.scss,function(e){var t={pattern:/(\b\d+)(?:%|[a-z]+)/,lookbehind:!0},n={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0},r={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},url:{pattern:/\burl\((["']?).*?\1\)/i,greedy:!0},string:{pattern:/("|')(?:(?!\1)[^\\\r\n]|\\(?:\r\n|[\s\S]))*\1/,greedy:!0},interpolation:null,func:null,important:/\B!(?:important|optional)\b/i,keyword:{pattern:/(^|\s+)(?:(?:else|for|if|return|unless)(?=\s|$)|@[\w-]+)/,lookbehind:!0},hexcode:/#[\da-f]{3,6}/i,color:[/\b(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)\b/i,{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:t,number:n,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:t,boolean:/\b(?:false|true)\b/,operator:[/~|[+!\/%<>?=]=?|[-:]=|\*[*=]?|\.{2,3}|&&|\|\||\B-\B|\b(?:and|in|is(?: a| defined| not|nt)?|not|or)\b/],number:n,punctuation:/[{}()\[\];:,]/};r.interpolation={pattern:/\{[^\r\n}:]+\}/,alias:"variable",inside:{delimiter:{pattern:/^\{|\}$/,alias:"punctuation"},rest:r}},r.func={pattern:/[\w-]+\([^)]*\).*/,inside:{function:/^[^(]+/,rest:r}},e.languages.stylus={"atrule-declaration":{pattern:/(^[ \t]*)@.+/m,lookbehind:!0,inside:{atrule:/^@[\w-]+/,rest:r}},"variable-declaration":{pattern:/(^[ \t]*)[\w$-]+\s*.?=[ \t]*(?:\{[^{}]*\}|\S.*|$)/m,lookbehind:!0,inside:{variable:/^\S+/,rest:r}},statement:{pattern:/(^[ \t]*)(?:else|for|if|return|unless)[ \t].+/m,lookbehind:!0,inside:{keyword:/^\S+/,rest:r}},"property-declaration":{pattern:/((?:^|\{)([ \t]*))(?:[\w-]|\{[^}\r\n]+\})+(?:\s*:\s*|[ \t]+)(?!\s)[^{\r\n]*(?:;|[^{\r\n,]$(?!(?:\r?\n|\r)(?:\{|\2[ \t])))/m,lookbehind:!0,inside:{property:{pattern:/^[^\s:]+/,inside:{interpolation:r.interpolation}},rest:r}},selector:{pattern:/(^[ \t]*)(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)(?:(?:\r?\n|\r)(?:\1(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)))*(?:,$|\{|(?=(?:\r?\n|\r)(?:\{|\1[ \t])))/m,lookbehind:!0,inside:{interpolation:r.interpolation,comment:r.comment,punctuation:/[{},]/}},func:r.func,string:r.string,comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0,greedy:!0},interpolation:r.interpolation,punctuation:/[{}()\[\];:.]/}}(a),function(e){var t=e.util.clone(e.languages.typescript);e.languages.tsx=e.languages.extend("jsx",t),delete e.languages.tsx.parameter,delete e.languages.tsx["literal-property"];var n=e.languages.tsx.tag;n.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+n.pattern.source+")",n.pattern.flags),n.lookbehind=!0}(a),a.languages.wasm={comment:[/\(;[\s\S]*?;\)/,{pattern:/;;.*/,greedy:!0}],string:{pattern:/"(?:\\[\s\S]|[^"\\])*"/,greedy:!0},keyword:[{pattern:/\b(?:align|offset)=/,inside:{operator:/=/}},{pattern:/\b(?:(?:f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|neg?|nearest|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|sqrt|store(?:8|16|32)?|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))?|memory\.(?:grow|size))\b/,inside:{punctuation:/\./}},/\b(?:anyfunc|block|br(?:_if|_table)?|call(?:_indirect)?|data|drop|elem|else|end|export|func|get_(?:global|local)|global|if|import|local|loop|memory|module|mut|nop|offset|param|result|return|select|set_(?:global|local)|start|table|tee_local|then|type|unreachable)\b/],variable:/\$[\w!#$%&'*+\-./:<=>?@\\^`|~]+/,number:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/,punctuation:/[()]/};const o=a},8443:()=>{Prism.languages.makefile={comment:{pattern:/(^|[^\\])#(?:\\(?:\r\n|[\s\S])|[^\\\r\n])*/,lookbehind:!0},string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"builtin-target":{pattern:/\.[A-Z][^:#=\s]+(?=\s*:(?!=))/,alias:"builtin"},target:{pattern:/^(?:[^:=\s]|[ \t]+(?![\s:]))+(?=\s*:(?!=))/m,alias:"symbol",inside:{variable:/\$+(?:(?!\$)[^(){}:#=\s]+|(?=[({]))/}},variable:/\$+(?:(?!\$)[^(){}:#=\s]+|\([@*%<^+?][DF]\)|(?=[({]))/,keyword:/-include\b|\b(?:define|else|endef|endif|export|ifn?def|ifn?eq|include|override|private|sinclude|undefine|unexport|vpath)\b/,function:{pattern:/(\()(?:abspath|addsuffix|and|basename|call|dir|error|eval|file|filter(?:-out)?|findstring|firstword|flavor|foreach|guile|if|info|join|lastword|load|notdir|or|origin|patsubst|realpath|shell|sort|strip|subst|suffix|value|warning|wildcard|word(?:list|s)?)(?=[ \t])/,lookbehind:!0},operator:/(?:::|[?:+!])?=|[|@]/,punctuation:/[:;(){}]/}},1248:(e,t,n)=>{var r={"./prism-makefile":8443};function a(e){var t=o(e);return n(t)}function o(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}a.keys=function(){return Object.keys(r)},a.resolve=o,e.exports=a,a.id=1248},2703:(e,t,n)=>{"use strict";var r=n(414);function a(){}function o(){}o.resetWarningCache=a,e.exports=function(){function e(e,t,n,a,o,i){if(i!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:a};return n.PropTypes=n,n}},5697:(e,t,n)=>{e.exports=n(2703)()},414:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},4448:(e,t,n)=>{"use strict";var r=n(7294),a=n(7418),o=n(3840);function i(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!r)throw Error(i(227));var s=new Set,l={};function u(e,t){c(e,t),c(e+"Capture",t)}function c(e,t){for(l[e]=t,e=0;e<t.length;e++)s.add(t[e])}var d=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),f=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,p=Object.prototype.hasOwnProperty,h={},m={};function g(e,t,n,r,a,o,i){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=a,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=i}var b={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){b[e]=new g(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];b[t]=new g(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){b[e]=new g(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){b[e]=new g(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){b[e]=new g(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){b[e]=new g(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){b[e]=new g(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){b[e]=new g(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){b[e]=new g(e,5,!1,e.toLowerCase(),null,!1,!1)}));var v=/[\-:]([a-z])/g;function y(e){return e[1].toUpperCase()}function w(e,t,n,r){var a=b.hasOwnProperty(t)?b[t]:null;(null!==a?0===a.type:!r&&(2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1])))||(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,a,r)&&(n=null),r||null===a?function(e){return!!p.call(m,e)||!p.call(h,e)&&(f.test(e)?m[e]=!0:(h[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):a.mustUseProperty?e[a.propertyName]=null===n?3!==a.type&&"":n:(t=a.attributeName,r=a.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(a=a.type)||4===a&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(v,y);b[t]=new g(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(v,y);b[t]=new g(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(v,y);b[t]=new g(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){b[e]=new g(e,1,!1,e.toLowerCase(),null,!1,!1)})),b.xlinkHref=new g("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){b[e]=new g(e,1,!1,e.toLowerCase(),null,!0,!0)}));var E=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,k=60103,S=60106,x=60107,_=60108,L=60114,C=60109,T=60110,A=60112,O=60113,P=60120,N=60115,D=60116,I=60121,R=60128,M=60129,F=60130,B=60131;if("function"==typeof Symbol&&Symbol.for){var j=Symbol.for;k=j("react.element"),S=j("react.portal"),x=j("react.fragment"),_=j("react.strict_mode"),L=j("react.profiler"),C=j("react.provider"),T=j("react.context"),A=j("react.forward_ref"),O=j("react.suspense"),P=j("react.suspense_list"),N=j("react.memo"),D=j("react.lazy"),I=j("react.block"),j("react.scope"),R=j("react.opaque.id"),M=j("react.debug_trace_mode"),F=j("react.offscreen"),B=j("react.legacy_hidden")}var $,z="function"==typeof Symbol&&Symbol.iterator;function U(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=z&&e[z]||e["@@iterator"])?e:null}function H(e){if(void 0===$)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);$=t&&t[1]||""}return"\n"+$+e}var Z=!1;function Q(e,t){if(!e||Z)return"";Z=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(l){var r=l}Reflect.construct(e,[],t)}else{try{t.call()}catch(l){r=l}e.call(t.prototype)}else{try{throw Error()}catch(l){r=l}e()}}catch(l){if(l&&r&&"string"==typeof l.stack){for(var a=l.stack.split("\n"),o=r.stack.split("\n"),i=a.length-1,s=o.length-1;1<=i&&0<=s&&a[i]!==o[s];)s--;for(;1<=i&&0<=s;i--,s--)if(a[i]!==o[s]){if(1!==i||1!==s)do{if(i--,0>--s||a[i]!==o[s])return"\n"+a[i].replace(" at new "," at ")}while(1<=i&&0<=s);break}}}finally{Z=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?H(e):""}function V(e){switch(e.tag){case 5:return H(e.type);case 16:return H("Lazy");case 13:return H("Suspense");case 19:return H("SuspenseList");case 0:case 2:case 15:return e=Q(e.type,!1);case 11:return e=Q(e.type.render,!1);case 22:return e=Q(e.type._render,!1);case 1:return e=Q(e.type,!0);default:return""}}function G(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case x:return"Fragment";case S:return"Portal";case L:return"Profiler";case _:return"StrictMode";case O:return"Suspense";case P:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case T:return(e.displayName||"Context")+".Consumer";case C:return(e._context.displayName||"Context")+".Provider";case A:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case N:return G(e.type);case I:return G(e._render);case D:t=e._payload,e=e._init;try{return G(e(t))}catch(n){}}return null}function W(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function q(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function Y(e){e._valueTracker||(e._valueTracker=function(e){var t=q(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var a=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(e){r=""+e,o.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function K(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=q(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function X(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function J(e,t){var n=t.checked;return a({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function ee(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=W(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function te(e,t){null!=(t=t.checked)&&w(e,"checked",t,!1)}function ne(e,t){te(e,t);var n=W(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ae(e,t.type,n):t.hasOwnProperty("defaultValue")&&ae(e,t.type,W(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function re(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ae(e,t,n){"number"===t&&X(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function oe(e,t){return e=a({children:void 0},t),(t=function(e){var t="";return r.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(t.children))&&(e.children=t),e}function ie(e,t,n,r){if(e=e.options,t){t={};for(var a=0;a<n.length;a++)t["$"+n[a]]=!0;for(n=0;n<e.length;n++)a=t.hasOwnProperty("$"+e[n].value),e[n].selected!==a&&(e[n].selected=a),a&&r&&(e[n].defaultSelected=!0)}else{for(n=""+W(n),t=null,a=0;a<e.length;a++){if(e[a].value===n)return e[a].selected=!0,void(r&&(e[a].defaultSelected=!0));null!==t||e[a].disabled||(t=e[a])}null!==t&&(t.selected=!0)}}function se(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(i(91));return a({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function le(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(i(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(i(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:W(n)}}function ue(e,t){var n=W(t.value),r=W(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function ce(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}var de={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};function fe(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function pe(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?fe(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var he,me,ge=(me=function(e,t){if(e.namespaceURI!==de.svg||"innerHTML"in e)e.innerHTML=t;else{for((he=he||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=he.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return me(e,t)}))}:me);function be(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var ve={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},ye=["Webkit","ms","Moz","O"];function we(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||ve.hasOwnProperty(e)&&ve[e]?(""+t).trim():t+"px"}function Ee(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),a=we(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,a):e[n]=a}}Object.keys(ve).forEach((function(e){ye.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ve[t]=ve[e]}))}));var ke=a({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Se(e,t){if(t){if(ke[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(i(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(i(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(i(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(i(62))}}function xe(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function _e(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Le=null,Ce=null,Te=null;function Ae(e){if(e=na(e)){if("function"!=typeof Le)throw Error(i(280));var t=e.stateNode;t&&(t=aa(t),Le(e.stateNode,e.type,t))}}function Oe(e){Ce?Te?Te.push(e):Te=[e]:Ce=e}function Pe(){if(Ce){var e=Ce,t=Te;if(Te=Ce=null,Ae(e),t)for(e=0;e<t.length;e++)Ae(t[e])}}function Ne(e,t){return e(t)}function De(e,t,n,r,a){return e(t,n,r,a)}function Ie(){}var Re=Ne,Me=!1,Fe=!1;function Be(){null===Ce&&null===Te||(Ie(),Pe())}function je(e,t){var n=e.stateNode;if(null===n)return null;var r=aa(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(i(231,t,typeof n));return n}var $e=!1;if(d)try{var ze={};Object.defineProperty(ze,"passive",{get:function(){$e=!0}}),window.addEventListener("test",ze,ze),window.removeEventListener("test",ze,ze)}catch(me){$e=!1}function Ue(e,t,n,r,a,o,i,s,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(c){this.onError(c)}}var He=!1,Ze=null,Qe=!1,Ve=null,Ge={onError:function(e){He=!0,Ze=e}};function We(e,t,n,r,a,o,i,s,l){He=!1,Ze=null,Ue.apply(Ge,arguments)}function qe(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(1026&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Ye(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function Ke(e){if(qe(e)!==e)throw Error(i(188))}function Xe(e){if(e=function(e){var t=e.alternate;if(!t){if(null===(t=qe(e)))throw Error(i(188));return t!==e?null:e}for(var n=e,r=t;;){var a=n.return;if(null===a)break;var o=a.alternate;if(null===o){if(null!==(r=a.return)){n=r;continue}break}if(a.child===o.child){for(o=a.child;o;){if(o===n)return Ke(a),e;if(o===r)return Ke(a),t;o=o.sibling}throw Error(i(188))}if(n.return!==r.return)n=a,r=o;else{for(var s=!1,l=a.child;l;){if(l===n){s=!0,n=a,r=o;break}if(l===r){s=!0,r=a,n=o;break}l=l.sibling}if(!s){for(l=o.child;l;){if(l===n){s=!0,n=o,r=a;break}if(l===r){s=!0,r=o,n=a;break}l=l.sibling}if(!s)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(3!==n.tag)throw Error(i(188));return n.stateNode.current===n?e:t}(e),!e)return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function Je(e,t){for(var n=e.alternate;null!==t;){if(t===e||t===n)return!0;t=t.return}return!1}var et,tt,nt,rt,at=!1,ot=[],it=null,st=null,lt=null,ut=new Map,ct=new Map,dt=[],ft="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function pt(e,t,n,r,a){return{blockedOn:e,domEventName:t,eventSystemFlags:16|n,nativeEvent:a,targetContainers:[r]}}function ht(e,t){switch(e){case"focusin":case"focusout":it=null;break;case"dragenter":case"dragleave":st=null;break;case"mouseover":case"mouseout":lt=null;break;case"pointerover":case"pointerout":ut.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ct.delete(t.pointerId)}}function mt(e,t,n,r,a,o){return null===e||e.nativeEvent!==o?(e=pt(t,n,r,a,o),null!==t&&(null!==(t=na(t))&&tt(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==a&&-1===t.indexOf(a)&&t.push(a),e)}function gt(e){var t=ta(e.target);if(null!==t){var n=qe(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Ye(n)))return e.blockedOn=t,void rt(e.lanePriority,(function(){o.unstable_runWithPriority(e.priority,(function(){nt(n)}))}))}else if(3===t&&n.stateNode.hydrate)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function bt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Xt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=na(n))&&tt(t),e.blockedOn=n,!1;t.shift()}return!0}function vt(e,t,n){bt(e)&&n.delete(t)}function yt(){for(at=!1;0<ot.length;){var e=ot[0];if(null!==e.blockedOn){null!==(e=na(e.blockedOn))&&et(e);break}for(var t=e.targetContainers;0<t.length;){var n=Xt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n){e.blockedOn=n;break}t.shift()}null===e.blockedOn&&ot.shift()}null!==it&&bt(it)&&(it=null),null!==st&&bt(st)&&(st=null),null!==lt&&bt(lt)&&(lt=null),ut.forEach(vt),ct.forEach(vt)}function wt(e,t){e.blockedOn===t&&(e.blockedOn=null,at||(at=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,yt)))}function Et(e){function t(t){return wt(t,e)}if(0<ot.length){wt(ot[0],e);for(var n=1;n<ot.length;n++){var r=ot[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==it&&wt(it,e),null!==st&&wt(st,e),null!==lt&&wt(lt,e),ut.forEach(t),ct.forEach(t),n=0;n<dt.length;n++)(r=dt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<dt.length&&null===(n=dt[0]).blockedOn;)gt(n),null===n.blockedOn&&dt.shift()}function kt(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var St={animationend:kt("Animation","AnimationEnd"),animationiteration:kt("Animation","AnimationIteration"),animationstart:kt("Animation","AnimationStart"),transitionend:kt("Transition","TransitionEnd")},xt={},_t={};function Lt(e){if(xt[e])return xt[e];if(!St[e])return e;var t,n=St[e];for(t in n)if(n.hasOwnProperty(t)&&t in _t)return xt[e]=n[t];return e}d&&(_t=document.createElement("div").style,"AnimationEvent"in window||(delete St.animationend.animation,delete St.animationiteration.animation,delete St.animationstart.animation),"TransitionEvent"in window||delete St.transitionend.transition);var Ct=Lt("animationend"),Tt=Lt("animationiteration"),At=Lt("animationstart"),Ot=Lt("transitionend"),Pt=new Map,Nt=new Map,Dt=["abort","abort",Ct,"animationEnd",Tt,"animationIteration",At,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",Ot,"transitionEnd","waiting","waiting"];function It(e,t){for(var n=0;n<e.length;n+=2){var r=e[n],a=e[n+1];a="on"+(a[0].toUpperCase()+a.slice(1)),Nt.set(r,t),Pt.set(r,a),u(a,[r])}}(0,o.unstable_now)();var Rt=8;function Mt(e){if(0!=(1&e))return Rt=15,1;if(0!=(2&e))return Rt=14,2;if(0!=(4&e))return Rt=13,4;var t=24&e;return 0!==t?(Rt=12,t):0!=(32&e)?(Rt=11,32):0!==(t=192&e)?(Rt=10,t):0!=(256&e)?(Rt=9,256):0!==(t=3584&e)?(Rt=8,t):0!=(4096&e)?(Rt=7,4096):0!==(t=4186112&e)?(Rt=6,t):0!==(t=62914560&e)?(Rt=5,t):67108864&e?(Rt=4,67108864):0!=(134217728&e)?(Rt=3,134217728):0!==(t=805306368&e)?(Rt=2,t):0!=(1073741824&e)?(Rt=1,1073741824):(Rt=8,e)}function Ft(e,t){var n=e.pendingLanes;if(0===n)return Rt=0;var r=0,a=0,o=e.expiredLanes,i=e.suspendedLanes,s=e.pingedLanes;if(0!==o)r=o,a=Rt=15;else if(0!==(o=134217727&n)){var l=o&~i;0!==l?(r=Mt(l),a=Rt):0!==(s&=o)&&(r=Mt(s),a=Rt)}else 0!==(o=n&~i)?(r=Mt(o),a=Rt):0!==s&&(r=Mt(s),a=Rt);if(0===r)return 0;if(r=n&((0>(r=31-Ht(r))?0:1<<r)<<1)-1,0!==t&&t!==r&&0==(t&i)){if(Mt(t),a<=Rt)return t;Rt=a}if(0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)a=1<<(n=31-Ht(t)),r|=e[n],t&=~a;return r}function Bt(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function jt(e,t){switch(e){case 15:return 1;case 14:return 2;case 12:return 0===(e=$t(24&~t))?jt(10,t):e;case 10:return 0===(e=$t(192&~t))?jt(8,t):e;case 8:return 0===(e=$t(3584&~t))&&(0===(e=$t(4186112&~t))&&(e=512)),e;case 2:return 0===(t=$t(805306368&~t))&&(t=268435456),t}throw Error(i(358,e))}function $t(e){return e&-e}function zt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Ut(e,t,n){e.pendingLanes|=t;var r=t-1;e.suspendedLanes&=r,e.pingedLanes&=r,(e=e.eventTimes)[t=31-Ht(t)]=n}var Ht=Math.clz32?Math.clz32:function(e){return 0===e?32:31-(Zt(e)/Qt|0)|0},Zt=Math.log,Qt=Math.LN2;var Vt=o.unstable_UserBlockingPriority,Gt=o.unstable_runWithPriority,Wt=!0;function qt(e,t,n,r){Me||Ie();var a=Kt,o=Me;Me=!0;try{De(a,e,t,n,r)}finally{(Me=o)||Be()}}function Yt(e,t,n,r){Gt(Vt,Kt.bind(null,e,t,n,r))}function Kt(e,t,n,r){var a;if(Wt)if((a=0==(4&t))&&0<ot.length&&-1<ft.indexOf(e))e=pt(null,e,t,n,r),ot.push(e);else{var o=Xt(e,t,n,r);if(null===o)a&&ht(e,r);else{if(a){if(-1<ft.indexOf(e))return e=pt(o,e,t,n,r),void ot.push(e);if(function(e,t,n,r,a){switch(t){case"focusin":return it=mt(it,e,t,n,r,a),!0;case"dragenter":return st=mt(st,e,t,n,r,a),!0;case"mouseover":return lt=mt(lt,e,t,n,r,a),!0;case"pointerover":var o=a.pointerId;return ut.set(o,mt(ut.get(o)||null,e,t,n,r,a)),!0;case"gotpointercapture":return o=a.pointerId,ct.set(o,mt(ct.get(o)||null,e,t,n,r,a)),!0}return!1}(o,e,t,n,r))return;ht(e,r)}Ir(e,t,r,null,n)}}}function Xt(e,t,n,r){var a=_e(r);if(null!==(a=ta(a))){var o=qe(a);if(null===o)a=null;else{var i=o.tag;if(13===i){if(null!==(a=Ye(o)))return a;a=null}else if(3===i){if(o.stateNode.hydrate)return 3===o.tag?o.stateNode.containerInfo:null;a=null}else o!==a&&(a=null)}}return Ir(e,t,r,a,n),null}var Jt=null,en=null,tn=null;function nn(){if(tn)return tn;var e,t,n=en,r=n.length,a="value"in Jt?Jt.value:Jt.textContent,o=a.length;for(e=0;e<r&&n[e]===a[e];e++);var i=r-e;for(t=1;t<=i&&n[r-t]===a[o-t];t++);return tn=a.slice(e,1<t?1-t:void 0)}function rn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function an(){return!0}function on(){return!1}function sn(e){function t(t,n,r,a,o){for(var i in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=a,this.target=o,this.currentTarget=null,e)e.hasOwnProperty(i)&&(t=e[i],this[i]=t?t(a):a[i]);return this.isDefaultPrevented=(null!=a.defaultPrevented?a.defaultPrevented:!1===a.returnValue)?an:on,this.isPropagationStopped=on,this}return a(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=an)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=an)},persist:function(){},isPersistent:an}),t}var ln,un,cn,dn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},fn=sn(dn),pn=a({},dn,{view:0,detail:0}),hn=sn(pn),mn=a({},pn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Cn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==cn&&(cn&&"mousemove"===e.type?(ln=e.screenX-cn.screenX,un=e.screenY-cn.screenY):un=ln=0,cn=e),ln)},movementY:function(e){return"movementY"in e?e.movementY:un}}),gn=sn(mn),bn=sn(a({},mn,{dataTransfer:0})),vn=sn(a({},pn,{relatedTarget:0})),yn=sn(a({},dn,{animationName:0,elapsedTime:0,pseudoElement:0})),wn=a({},dn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),En=sn(wn),kn=sn(a({},dn,{data:0})),Sn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},xn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},_n={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Ln(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=_n[e])&&!!t[e]}function Cn(){return Ln}var Tn=a({},pn,{key:function(e){if(e.key){var t=Sn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=rn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?xn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Cn,charCode:function(e){return"keypress"===e.type?rn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?rn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),An=sn(Tn),On=sn(a({},mn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Pn=sn(a({},pn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Cn})),Nn=sn(a({},dn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Dn=a({},mn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),In=sn(Dn),Rn=[9,13,27,32],Mn=d&&"CompositionEvent"in window,Fn=null;d&&"documentMode"in document&&(Fn=document.documentMode);var Bn=d&&"TextEvent"in window&&!Fn,jn=d&&(!Mn||Fn&&8<Fn&&11>=Fn),$n=String.fromCharCode(32),zn=!1;function Un(e,t){switch(e){case"keyup":return-1!==Rn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Hn(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Zn=!1;var Qn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Vn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Qn[e.type]:"textarea"===t}function Gn(e,t,n,r){Oe(r),0<(t=Mr(t,"onChange")).length&&(n=new fn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Wn=null,qn=null;function Yn(e){Tr(e,0)}function Kn(e){if(K(ra(e)))return e}function Xn(e,t){if("change"===e)return t}var Jn=!1;if(d){var er;if(d){var tr="oninput"in document;if(!tr){var nr=document.createElement("div");nr.setAttribute("oninput","return;"),tr="function"==typeof nr.oninput}er=tr}else er=!1;Jn=er&&(!document.documentMode||9<document.documentMode)}function rr(){Wn&&(Wn.detachEvent("onpropertychange",ar),qn=Wn=null)}function ar(e){if("value"===e.propertyName&&Kn(qn)){var t=[];if(Gn(t,qn,e,_e(e)),e=Yn,Me)e(t);else{Me=!0;try{Ne(e,t)}finally{Me=!1,Be()}}}}function or(e,t,n){"focusin"===e?(rr(),qn=n,(Wn=t).attachEvent("onpropertychange",ar)):"focusout"===e&&rr()}function ir(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Kn(qn)}function sr(e,t){if("click"===e)return Kn(t)}function lr(e,t){if("input"===e||"change"===e)return Kn(t)}var ur="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},cr=Object.prototype.hasOwnProperty;function dr(e,t){if(ur(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++)if(!cr.call(t,n[r])||!ur(e[n[r]],t[n[r]]))return!1;return!0}function fr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function pr(e,t){var n,r=fr(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=fr(r)}}function hr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?hr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function mr(){for(var e=window,t=X();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=X((e=t.contentWindow).document)}return t}function gr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var br=d&&"documentMode"in document&&11>=document.documentMode,vr=null,yr=null,wr=null,Er=!1;function kr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;Er||null==vr||vr!==X(r)||("selectionStart"in(r=vr)&&gr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},wr&&dr(wr,r)||(wr=r,0<(r=Mr(yr,"onSelect")).length&&(t=new fn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=vr)))}It("cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focusin focus focusout blur input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),It("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),It(Dt,2);for(var Sr="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),xr=0;xr<Sr.length;xr++)Nt.set(Sr[xr],0);c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),u("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),u("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),u("onBeforeInput",["compositionend","keypress","textInput","paste"]),u("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var _r="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Lr=new Set("cancel close invalid load scroll toggle".split(" ").concat(_r));function Cr(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,a,o,s,l,u){if(We.apply(this,arguments),He){if(!He)throw Error(i(198));var c=Ze;He=!1,Ze=null,Qe||(Qe=!0,Ve=c)}}(r,t,void 0,e),e.currentTarget=null}function Tr(e,t){t=0!=(4&t);for(var n=0;n<e.length;n++){var r=e[n],a=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var i=r.length-1;0<=i;i--){var s=r[i],l=s.instance,u=s.currentTarget;if(s=s.listener,l!==o&&a.isPropagationStopped())break e;Cr(a,s,u),o=l}else for(i=0;i<r.length;i++){if(l=(s=r[i]).instance,u=s.currentTarget,s=s.listener,l!==o&&a.isPropagationStopped())break e;Cr(a,s,u),o=l}}}if(Qe)throw e=Ve,Qe=!1,Ve=null,e}function Ar(e,t){var n=oa(t),r=e+"__bubble";n.has(r)||(Dr(t,e,2,!1),n.add(r))}var Or="_reactListening"+Math.random().toString(36).slice(2);function Pr(e){e[Or]||(e[Or]=!0,s.forEach((function(t){Lr.has(t)||Nr(t,!1,e,null),Nr(t,!0,e,null)})))}function Nr(e,t,n,r){var a=4<arguments.length&&void 0!==arguments[4]?arguments[4]:0,o=n;if("selectionchange"===e&&9!==n.nodeType&&(o=n.ownerDocument),null!==r&&!t&&Lr.has(e)){if("scroll"!==e)return;a|=2,o=r}var i=oa(o),s=e+"__"+(t?"capture":"bubble");i.has(s)||(t&&(a|=4),Dr(o,e,a,t),i.add(s))}function Dr(e,t,n,r){var a=Nt.get(t);switch(void 0===a?2:a){case 0:a=qt;break;case 1:a=Yt;break;default:a=Kt}n=a.bind(null,t,n,e),a=void 0,!$e||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(a=!0),r?void 0!==a?e.addEventListener(t,n,{capture:!0,passive:a}):e.addEventListener(t,n,!0):void 0!==a?e.addEventListener(t,n,{passive:a}):e.addEventListener(t,n,!1)}function Ir(e,t,n,r,a){var o=r;if(0==(1&t)&&0==(2&t)&&null!==r)e:for(;;){if(null===r)return;var i=r.tag;if(3===i||4===i){var s=r.stateNode.containerInfo;if(s===a||8===s.nodeType&&s.parentNode===a)break;if(4===i)for(i=r.return;null!==i;){var l=i.tag;if((3===l||4===l)&&((l=i.stateNode.containerInfo)===a||8===l.nodeType&&l.parentNode===a))return;i=i.return}for(;null!==s;){if(null===(i=ta(s)))return;if(5===(l=i.tag)||6===l){r=o=i;continue e}s=s.parentNode}}r=r.return}!function(e,t,n){if(Fe)return e(t,n);Fe=!0;try{return Re(e,t,n)}finally{Fe=!1,Be()}}((function(){var r=o,a=_e(n),i=[];e:{var s=Pt.get(e);if(void 0!==s){var l=fn,u=e;switch(e){case"keypress":if(0===rn(n))break e;case"keydown":case"keyup":l=An;break;case"focusin":u="focus",l=vn;break;case"focusout":u="blur",l=vn;break;case"beforeblur":case"afterblur":l=vn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=gn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=bn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=Pn;break;case Ct:case Tt:case At:l=yn;break;case Ot:l=Nn;break;case"scroll":l=hn;break;case"wheel":l=In;break;case"copy":case"cut":case"paste":l=En;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=On}var c=0!=(4&t),d=!c&&"scroll"===e,f=c?null!==s?s+"Capture":null:s;c=[];for(var p,h=r;null!==h;){var m=(p=h).stateNode;if(5===p.tag&&null!==m&&(p=m,null!==f&&(null!=(m=je(h,f))&&c.push(Rr(h,m,p)))),d)break;h=h.return}0<c.length&&(s=new l(s,u,null,n,a),i.push({event:s,listeners:c}))}}if(0==(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||0!=(16&t)||!(u=n.relatedTarget||n.fromElement)||!ta(u)&&!u[Jr])&&(l||s)&&(s=a.window===a?a:(s=a.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=r,null!==(u=(u=n.relatedTarget||n.toElement)?ta(u):null)&&(u!==(d=qe(u))||5!==u.tag&&6!==u.tag)&&(u=null)):(l=null,u=r),l!==u)){if(c=gn,m="onMouseLeave",f="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(c=On,m="onPointerLeave",f="onPointerEnter",h="pointer"),d=null==l?s:ra(l),p=null==u?s:ra(u),(s=new c(m,h+"leave",l,n,a)).target=d,s.relatedTarget=p,m=null,ta(a)===r&&((c=new c(f,h+"enter",u,n,a)).target=p,c.relatedTarget=d,m=c),d=m,l&&u)e:{for(f=u,h=0,p=c=l;p;p=Fr(p))h++;for(p=0,m=f;m;m=Fr(m))p++;for(;0<h-p;)c=Fr(c),h--;for(;0<p-h;)f=Fr(f),p--;for(;h--;){if(c===f||null!==f&&c===f.alternate)break e;c=Fr(c),f=Fr(f)}c=null}else c=null;null!==l&&Br(i,s,l,c,!1),null!==u&&null!==d&&Br(i,d,u,c,!0)}if("select"===(l=(s=r?ra(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var g=Xn;else if(Vn(s))if(Jn)g=lr;else{g=ir;var b=or}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(g=sr);switch(g&&(g=g(e,r))?Gn(i,g,n,a):(b&&b(e,s,r),"focusout"===e&&(b=s._wrapperState)&&b.controlled&&"number"===s.type&&ae(s,"number",s.value)),b=r?ra(r):window,e){case"focusin":(Vn(b)||"true"===b.contentEditable)&&(vr=b,yr=r,wr=null);break;case"focusout":wr=yr=vr=null;break;case"mousedown":Er=!0;break;case"contextmenu":case"mouseup":case"dragend":Er=!1,kr(i,n,a);break;case"selectionchange":if(br)break;case"keydown":case"keyup":kr(i,n,a)}var v;if(Mn)e:{switch(e){case"compositionstart":var y="onCompositionStart";break e;case"compositionend":y="onCompositionEnd";break e;case"compositionupdate":y="onCompositionUpdate";break e}y=void 0}else Zn?Un(e,n)&&(y="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(y="onCompositionStart");y&&(jn&&"ko"!==n.locale&&(Zn||"onCompositionStart"!==y?"onCompositionEnd"===y&&Zn&&(v=nn()):(en="value"in(Jt=a)?Jt.value:Jt.textContent,Zn=!0)),0<(b=Mr(r,y)).length&&(y=new kn(y,e,null,n,a),i.push({event:y,listeners:b}),v?y.data=v:null!==(v=Hn(n))&&(y.data=v))),(v=Bn?function(e,t){switch(e){case"compositionend":return Hn(t);case"keypress":return 32!==t.which?null:(zn=!0,$n);case"textInput":return(e=t.data)===$n&&zn?null:e;default:return null}}(e,n):function(e,t){if(Zn)return"compositionend"===e||!Mn&&Un(e,t)?(e=nn(),tn=en=Jt=null,Zn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return jn&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=Mr(r,"onBeforeInput")).length&&(a=new kn("onBeforeInput","beforeinput",null,n,a),i.push({event:a,listeners:r}),a.data=v))}Tr(i,t)}))}function Rr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Mr(e,t){for(var n=t+"Capture",r=[];null!==e;){var a=e,o=a.stateNode;5===a.tag&&null!==o&&(a=o,null!=(o=je(e,n))&&r.unshift(Rr(e,o,a)),null!=(o=je(e,t))&&r.push(Rr(e,o,a))),e=e.return}return r}function Fr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Br(e,t,n,r,a){for(var o=t._reactName,i=[];null!==n&&n!==r;){var s=n,l=s.alternate,u=s.stateNode;if(null!==l&&l===r)break;5===s.tag&&null!==u&&(s=u,a?null!=(l=je(n,o))&&i.unshift(Rr(n,l,s)):a||null!=(l=je(n,o))&&i.push(Rr(n,l,s))),n=n.return}0!==i.length&&e.push({event:t,listeners:i})}function jr(){}var $r=null,zr=null;function Ur(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function Hr(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var Zr="function"==typeof setTimeout?setTimeout:void 0,Qr="function"==typeof clearTimeout?clearTimeout:void 0;function Vr(e){1===e.nodeType?e.textContent="":9===e.nodeType&&(null!=(e=e.body)&&(e.textContent=""))}function Gr(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function Wr(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var qr=0;var Yr=Math.random().toString(36).slice(2),Kr="__reactFiber$"+Yr,Xr="__reactProps$"+Yr,Jr="__reactContainer$"+Yr,ea="__reactEvents$"+Yr;function ta(e){var t=e[Kr];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Jr]||n[Kr]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=Wr(e);null!==e;){if(n=e[Kr])return n;e=Wr(e)}return t}n=(e=n).parentNode}return null}function na(e){return!(e=e[Kr]||e[Jr])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function ra(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(i(33))}function aa(e){return e[Xr]||null}function oa(e){var t=e[ea];return void 0===t&&(t=e[ea]=new Set),t}var ia=[],sa=-1;function la(e){return{current:e}}function ua(e){0>sa||(e.current=ia[sa],ia[sa]=null,sa--)}function ca(e,t){sa++,ia[sa]=e.current,e.current=t}var da={},fa=la(da),pa=la(!1),ha=da;function ma(e,t){var n=e.type.contextTypes;if(!n)return da;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var a,o={};for(a in n)o[a]=t[a];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function ga(e){return null!=(e=e.childContextTypes)}function ba(){ua(pa),ua(fa)}function va(e,t,n){if(fa.current!==da)throw Error(i(168));ca(fa,t),ca(pa,n)}function ya(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in e))throw Error(i(108,G(t)||"Unknown",o));return a({},n,r)}function wa(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||da,ha=fa.current,ca(fa,e),ca(pa,pa.current),!0}function Ea(e,t,n){var r=e.stateNode;if(!r)throw Error(i(169));n?(e=ya(e,t,ha),r.__reactInternalMemoizedMergedChildContext=e,ua(pa),ua(fa),ca(fa,e)):ua(pa),ca(pa,n)}var ka=null,Sa=null,xa=o.unstable_runWithPriority,_a=o.unstable_scheduleCallback,La=o.unstable_cancelCallback,Ca=o.unstable_shouldYield,Ta=o.unstable_requestPaint,Aa=o.unstable_now,Oa=o.unstable_getCurrentPriorityLevel,Pa=o.unstable_ImmediatePriority,Na=o.unstable_UserBlockingPriority,Da=o.unstable_NormalPriority,Ia=o.unstable_LowPriority,Ra=o.unstable_IdlePriority,Ma={},Fa=void 0!==Ta?Ta:function(){},Ba=null,ja=null,$a=!1,za=Aa(),Ua=1e4>za?Aa:function(){return Aa()-za};function Ha(){switch(Oa()){case Pa:return 99;case Na:return 98;case Da:return 97;case Ia:return 96;case Ra:return 95;default:throw Error(i(332))}}function Za(e){switch(e){case 99:return Pa;case 98:return Na;case 97:return Da;case 96:return Ia;case 95:return Ra;default:throw Error(i(332))}}function Qa(e,t){return e=Za(e),xa(e,t)}function Va(e,t,n){return e=Za(e),_a(e,t,n)}function Ga(){if(null!==ja){var e=ja;ja=null,La(e)}Wa()}function Wa(){if(!$a&&null!==Ba){$a=!0;var e=0;try{var t=Ba;Qa(99,(function(){for(;e<t.length;e++){var n=t[e];do{n=n(!0)}while(null!==n)}})),Ba=null}catch(n){throw null!==Ba&&(Ba=Ba.slice(e+1)),_a(Pa,Ga),n}finally{$a=!1}}}var qa=E.ReactCurrentBatchConfig;function Ya(e,t){if(e&&e.defaultProps){for(var n in t=a({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var Ka=la(null),Xa=null,Ja=null,eo=null;function to(){eo=Ja=Xa=null}function no(e){var t=Ka.current;ua(Ka),e.type._context._currentValue=t}function ro(e,t){for(;null!==e;){var n=e.alternate;if((e.childLanes&t)===t){if(null===n||(n.childLanes&t)===t)break;n.childLanes|=t}else e.childLanes|=t,null!==n&&(n.childLanes|=t);e=e.return}}function ao(e,t){Xa=e,eo=Ja=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(Mi=!0),e.firstContext=null)}function oo(e,t){if(eo!==e&&!1!==t&&0!==t)if("number"==typeof t&&1073741823!==t||(eo=e,t=1073741823),t={context:e,observedBits:t,next:null},null===Ja){if(null===Xa)throw Error(i(308));Ja=t,Xa.dependencies={lanes:0,firstContext:t,responders:null}}else Ja=Ja.next=t;return e._currentValue}var io=!1;function so(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function lo(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function uo(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function co(e,t){if(null!==(e=e.updateQueue)){var n=(e=e.shared).pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}}function fo(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var a=null,o=null;if(null!==(n=n.firstBaseUpdate)){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===o?a=o=i:o=o.next=i,n=n.next}while(null!==n);null===o?a=o=t:o=o.next=t}else a=o=t;return n={baseState:r.baseState,firstBaseUpdate:a,lastBaseUpdate:o,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function po(e,t,n,r){var o=e.updateQueue;io=!1;var i=o.firstBaseUpdate,s=o.lastBaseUpdate,l=o.shared.pending;if(null!==l){o.shared.pending=null;var u=l,c=u.next;u.next=null,null===s?i=c:s.next=c,s=u;var d=e.alternate;if(null!==d){var f=(d=d.updateQueue).lastBaseUpdate;f!==s&&(null===f?d.firstBaseUpdate=c:f.next=c,d.lastBaseUpdate=u)}}if(null!==i){for(f=o.baseState,s=0,d=c=u=null;;){l=i.lane;var p=i.eventTime;if((r&l)===l){null!==d&&(d=d.next={eventTime:p,lane:0,tag:i.tag,payload:i.payload,callback:i.callback,next:null});e:{var h=e,m=i;switch(l=t,p=n,m.tag){case 1:if("function"==typeof(h=m.payload)){f=h.call(p,f,l);break e}f=h;break e;case 3:h.flags=-4097&h.flags|64;case 0:if(null==(l="function"==typeof(h=m.payload)?h.call(p,f,l):h))break e;f=a({},f,l);break e;case 2:io=!0}}null!==i.callback&&(e.flags|=32,null===(l=o.effects)?o.effects=[i]:l.push(i))}else p={eventTime:p,lane:l,tag:i.tag,payload:i.payload,callback:i.callback,next:null},null===d?(c=d=p,u=f):d=d.next=p,s|=l;if(null===(i=i.next)){if(null===(l=o.shared.pending))break;i=l.next,l.next=null,o.lastBaseUpdate=l,o.shared.pending=null}}null===d&&(u=f),o.baseState=u,o.firstBaseUpdate=c,o.lastBaseUpdate=d,zs|=s,e.lanes=s,e.memoizedState=f}}function ho(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],a=r.callback;if(null!==a){if(r.callback=null,r=n,"function"!=typeof a)throw Error(i(191,a));a.call(r)}}}var mo=(new r.Component).refs;function go(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:a({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var bo={isMounted:function(e){return!!(e=e._reactInternals)&&qe(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=fl(),a=pl(e),o=uo(r,a);o.payload=t,null!=n&&(o.callback=n),co(e,o),hl(e,a,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=fl(),a=pl(e),o=uo(r,a);o.tag=1,o.payload=t,null!=n&&(o.callback=n),co(e,o),hl(e,a,r)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=fl(),r=pl(e),a=uo(n,r);a.tag=2,null!=t&&(a.callback=t),co(e,a),hl(e,r,n)}};function vo(e,t,n,r,a,o,i){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,o,i):!t.prototype||!t.prototype.isPureReactComponent||(!dr(n,r)||!dr(a,o))}function yo(e,t,n){var r=!1,a=da,o=t.contextType;return"object"==typeof o&&null!==o?o=oo(o):(a=ga(t)?ha:fa.current,o=(r=null!=(r=t.contextTypes))?ma(e,a):da),t=new t(n,o),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=bo,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=a,e.__reactInternalMemoizedMaskedChildContext=o),t}function wo(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&bo.enqueueReplaceState(t,t.state,null)}function Eo(e,t,n,r){var a=e.stateNode;a.props=n,a.state=e.memoizedState,a.refs=mo,so(e);var o=t.contextType;"object"==typeof o&&null!==o?a.context=oo(o):(o=ga(t)?ha:fa.current,a.context=ma(e,o)),po(e,n,a,r),a.state=e.memoizedState,"function"==typeof(o=t.getDerivedStateFromProps)&&(go(e,t,o,n),a.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof a.getSnapshotBeforeUpdate||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||(t=a.state,"function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount(),t!==a.state&&bo.enqueueReplaceState(a,a.state,null),po(e,n,a,r),a.state=e.memoizedState),"function"==typeof a.componentDidMount&&(e.flags|=4)}var ko=Array.isArray;function So(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(i(309));var r=n.stateNode}if(!r)throw Error(i(147,e));var a=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===a?t.ref:(t=function(e){var t=r.refs;t===mo&&(t=r.refs={}),null===e?delete t[a]:t[a]=e},t._stringRef=a,t)}if("string"!=typeof e)throw Error(i(284));if(!n._owner)throw Error(i(290,e))}return e}function xo(e,t){if("textarea"!==e.type)throw Error(i(31,"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t))}function _o(e){function t(t,n){if(e){var r=t.lastEffect;null!==r?(r.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n,n.nextEffect=null,n.flags=8}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function a(e,t){return(e=Vl(e,t)).index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags=2,n):r:(t.flags=2,n):n}function s(t){return e&&null===t.alternate&&(t.flags=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=Yl(n,e.mode,r)).return=e,t):((t=a(t,n)).return=e,t)}function u(e,t,n,r){return null!==t&&t.elementType===n.type?((r=a(t,n.props)).ref=So(e,t,n),r.return=e,r):((r=Gl(n.type,n.key,n.props,null,e.mode,r)).ref=So(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Kl(n,e.mode,r)).return=e,t):((t=a(t,n.children||[])).return=e,t)}function d(e,t,n,r,o){return null===t||7!==t.tag?((t=Wl(n,e.mode,r,o)).return=e,t):((t=a(t,n)).return=e,t)}function f(e,t,n){if("string"==typeof t||"number"==typeof t)return(t=Yl(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case k:return(n=Gl(t.type,t.key,t.props,null,e.mode,n)).ref=So(e,null,t),n.return=e,n;case S:return(t=Kl(t,e.mode,n)).return=e,t}if(ko(t)||U(t))return(t=Wl(t,e.mode,n,null)).return=e,t;xo(e,t)}return null}function p(e,t,n,r){var a=null!==t?t.key:null;if("string"==typeof n||"number"==typeof n)return null!==a?null:l(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case k:return n.key===a?n.type===x?d(e,t,n.props.children,r,a):u(e,t,n,r):null;case S:return n.key===a?c(e,t,n,r):null}if(ko(n)||U(n))return null!==a?null:d(e,t,n,r,null);xo(e,n)}return null}function h(e,t,n,r,a){if("string"==typeof r||"number"==typeof r)return l(t,e=e.get(n)||null,""+r,a);if("object"==typeof r&&null!==r){switch(r.$$typeof){case k:return e=e.get(null===r.key?n:r.key)||null,r.type===x?d(t,e,r.props.children,a,r.key):u(t,e,r,a);case S:return c(t,e=e.get(null===r.key?n:r.key)||null,r,a)}if(ko(r)||U(r))return d(t,e=e.get(n)||null,r,a,null);xo(t,r)}return null}function m(a,i,s,l){for(var u=null,c=null,d=i,m=i=0,g=null;null!==d&&m<s.length;m++){d.index>m?(g=d,d=null):g=d.sibling;var b=p(a,d,s[m],l);if(null===b){null===d&&(d=g);break}e&&d&&null===b.alternate&&t(a,d),i=o(b,i,m),null===c?u=b:c.sibling=b,c=b,d=g}if(m===s.length)return n(a,d),u;if(null===d){for(;m<s.length;m++)null!==(d=f(a,s[m],l))&&(i=o(d,i,m),null===c?u=d:c.sibling=d,c=d);return u}for(d=r(a,d);m<s.length;m++)null!==(g=h(d,a,m,s[m],l))&&(e&&null!==g.alternate&&d.delete(null===g.key?m:g.key),i=o(g,i,m),null===c?u=g:c.sibling=g,c=g);return e&&d.forEach((function(e){return t(a,e)})),u}function g(a,s,l,u){var c=U(l);if("function"!=typeof c)throw Error(i(150));if(null==(l=c.call(l)))throw Error(i(151));for(var d=c=null,m=s,g=s=0,b=null,v=l.next();null!==m&&!v.done;g++,v=l.next()){m.index>g?(b=m,m=null):b=m.sibling;var y=p(a,m,v.value,u);if(null===y){null===m&&(m=b);break}e&&m&&null===y.alternate&&t(a,m),s=o(y,s,g),null===d?c=y:d.sibling=y,d=y,m=b}if(v.done)return n(a,m),c;if(null===m){for(;!v.done;g++,v=l.next())null!==(v=f(a,v.value,u))&&(s=o(v,s,g),null===d?c=v:d.sibling=v,d=v);return c}for(m=r(a,m);!v.done;g++,v=l.next())null!==(v=h(m,a,g,v.value,u))&&(e&&null!==v.alternate&&m.delete(null===v.key?g:v.key),s=o(v,s,g),null===d?c=v:d.sibling=v,d=v);return e&&m.forEach((function(e){return t(a,e)})),c}return function(e,r,o,l){var u="object"==typeof o&&null!==o&&o.type===x&&null===o.key;u&&(o=o.props.children);var c="object"==typeof o&&null!==o;if(c)switch(o.$$typeof){case k:e:{for(c=o.key,u=r;null!==u;){if(u.key===c){if(7===u.tag){if(o.type===x){n(e,u.sibling),(r=a(u,o.props.children)).return=e,e=r;break e}}else if(u.elementType===o.type){n(e,u.sibling),(r=a(u,o.props)).ref=So(e,u,o),r.return=e,e=r;break e}n(e,u);break}t(e,u),u=u.sibling}o.type===x?((r=Wl(o.props.children,e.mode,l,o.key)).return=e,e=r):((l=Gl(o.type,o.key,o.props,null,e.mode,l)).ref=So(e,r,o),l.return=e,e=l)}return s(e);case S:e:{for(u=o.key;null!==r;){if(r.key===u){if(4===r.tag&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),(r=a(r,o.children||[])).return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}(r=Kl(o,e.mode,l)).return=e,e=r}return s(e)}if("string"==typeof o||"number"==typeof o)return o=""+o,null!==r&&6===r.tag?(n(e,r.sibling),(r=a(r,o)).return=e,e=r):(n(e,r),(r=Yl(o,e.mode,l)).return=e,e=r),s(e);if(ko(o))return m(e,r,o,l);if(U(o))return g(e,r,o,l);if(c&&xo(e,o),void 0===o&&!u)switch(e.tag){case 1:case 22:case 0:case 11:case 15:throw Error(i(152,G(e.type)||"Component"))}return n(e,r)}}var Lo=_o(!0),Co=_o(!1),To={},Ao=la(To),Oo=la(To),Po=la(To);function No(e){if(e===To)throw Error(i(174));return e}function Do(e,t){switch(ca(Po,t),ca(Oo,e),ca(Ao,To),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:pe(null,"");break;default:t=pe(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}ua(Ao),ca(Ao,t)}function Io(){ua(Ao),ua(Oo),ua(Po)}function Ro(e){No(Po.current);var t=No(Ao.current),n=pe(t,e.type);t!==n&&(ca(Oo,e),ca(Ao,n))}function Mo(e){Oo.current===e&&(ua(Ao),ua(Oo))}var Fo=la(0);function Bo(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(64&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var jo=null,$o=null,zo=!1;function Uo(e,t){var n=Zl(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.flags=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function Ho(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);default:return!1}}function Zo(e){if(zo){var t=$o;if(t){var n=t;if(!Ho(e,t)){if(!(t=Gr(n.nextSibling))||!Ho(e,t))return e.flags=-1025&e.flags|2,zo=!1,void(jo=e);Uo(jo,n)}jo=e,$o=Gr(t.firstChild)}else e.flags=-1025&e.flags|2,zo=!1,jo=e}}function Qo(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;jo=e}function Vo(e){if(e!==jo)return!1;if(!zo)return Qo(e),zo=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!Hr(t,e.memoizedProps))for(t=$o;t;)Uo(e,t),t=Gr(t.nextSibling);if(Qo(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(i(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){$o=Gr(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}$o=null}}else $o=jo?Gr(e.stateNode.nextSibling):null;return!0}function Go(){$o=jo=null,zo=!1}var Wo=[];function qo(){for(var e=0;e<Wo.length;e++)Wo[e]._workInProgressVersionPrimary=null;Wo.length=0}var Yo=E.ReactCurrentDispatcher,Ko=E.ReactCurrentBatchConfig,Xo=0,Jo=null,ei=null,ti=null,ni=!1,ri=!1;function ai(){throw Error(i(321))}function oi(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!ur(e[n],t[n]))return!1;return!0}function ii(e,t,n,r,a,o){if(Xo=o,Jo=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Yo.current=null===e||null===e.memoizedState?Ni:Di,e=n(r,a),ri){o=0;do{if(ri=!1,!(25>o))throw Error(i(301));o+=1,ti=ei=null,t.updateQueue=null,Yo.current=Ii,e=n(r,a)}while(ri)}if(Yo.current=Pi,t=null!==ei&&null!==ei.next,Xo=0,ti=ei=Jo=null,ni=!1,t)throw Error(i(300));return e}function si(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===ti?Jo.memoizedState=ti=e:ti=ti.next=e,ti}function li(){if(null===ei){var e=Jo.alternate;e=null!==e?e.memoizedState:null}else e=ei.next;var t=null===ti?Jo.memoizedState:ti.next;if(null!==t)ti=t,ei=e;else{if(null===e)throw Error(i(310));e={memoizedState:(ei=e).memoizedState,baseState:ei.baseState,baseQueue:ei.baseQueue,queue:ei.queue,next:null},null===ti?Jo.memoizedState=ti=e:ti=ti.next=e}return ti}function ui(e,t){return"function"==typeof t?t(e):t}function ci(e){var t=li(),n=t.queue;if(null===n)throw Error(i(311));n.lastRenderedReducer=e;var r=ei,a=r.baseQueue,o=n.pending;if(null!==o){if(null!==a){var s=a.next;a.next=o.next,o.next=s}r.baseQueue=a=o,n.pending=null}if(null!==a){a=a.next,r=r.baseState;var l=s=o=null,u=a;do{var c=u.lane;if((Xo&c)===c)null!==l&&(l=l.next={lane:0,action:u.action,eagerReducer:u.eagerReducer,eagerState:u.eagerState,next:null}),r=u.eagerReducer===e?u.eagerState:e(r,u.action);else{var d={lane:c,action:u.action,eagerReducer:u.eagerReducer,eagerState:u.eagerState,next:null};null===l?(s=l=d,o=r):l=l.next=d,Jo.lanes|=c,zs|=c}u=u.next}while(null!==u&&u!==a);null===l?o=r:l.next=s,ur(r,t.memoizedState)||(Mi=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=l,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function di(e){var t=li(),n=t.queue;if(null===n)throw Error(i(311));n.lastRenderedReducer=e;var r=n.dispatch,a=n.pending,o=t.memoizedState;if(null!==a){n.pending=null;var s=a=a.next;do{o=e(o,s.action),s=s.next}while(s!==a);ur(o,t.memoizedState)||(Mi=!0),t.memoizedState=o,null===t.baseQueue&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function fi(e,t,n){var r=t._getVersion;r=r(t._source);var a=t._workInProgressVersionPrimary;if(null!==a?e=a===r:(e=e.mutableReadLanes,(e=(Xo&e)===e)&&(t._workInProgressVersionPrimary=r,Wo.push(t))),e)return n(t._source);throw Wo.push(t),Error(i(350))}function pi(e,t,n,r){var a=Ds;if(null===a)throw Error(i(349));var o=t._getVersion,s=o(t._source),l=Yo.current,u=l.useState((function(){return fi(a,t,n)})),c=u[1],d=u[0];u=ti;var f=e.memoizedState,p=f.refs,h=p.getSnapshot,m=f.source;f=f.subscribe;var g=Jo;return e.memoizedState={refs:p,source:t,subscribe:r},l.useEffect((function(){p.getSnapshot=n,p.setSnapshot=c;var e=o(t._source);if(!ur(s,e)){e=n(t._source),ur(d,e)||(c(e),e=pl(g),a.mutableReadLanes|=e&a.pendingLanes),e=a.mutableReadLanes,a.entangledLanes|=e;for(var r=a.entanglements,i=e;0<i;){var l=31-Ht(i),u=1<<l;r[l]|=e,i&=~u}}}),[n,t,r]),l.useEffect((function(){return r(t._source,(function(){var e=p.getSnapshot,n=p.setSnapshot;try{n(e(t._source));var r=pl(g);a.mutableReadLanes|=r&a.pendingLanes}catch(o){n((function(){throw o}))}}))}),[t,r]),ur(h,n)&&ur(m,t)&&ur(f,r)||((e={pending:null,dispatch:null,lastRenderedReducer:ui,lastRenderedState:d}).dispatch=c=Oi.bind(null,Jo,e),u.queue=e,u.baseQueue=null,d=fi(a,t,n),u.memoizedState=u.baseState=d),d}function hi(e,t,n){return pi(li(),e,t,n)}function mi(e){var t=si();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={pending:null,dispatch:null,lastRenderedReducer:ui,lastRenderedState:e}).dispatch=Oi.bind(null,Jo,e),[t.memoizedState,e]}function gi(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=Jo.updateQueue)?(t={lastEffect:null},Jo.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function bi(e){return e={current:e},si().memoizedState=e}function vi(){return li().memoizedState}function yi(e,t,n,r){var a=si();Jo.flags|=e,a.memoizedState=gi(1|t,n,void 0,void 0===r?null:r)}function wi(e,t,n,r){var a=li();r=void 0===r?null:r;var o=void 0;if(null!==ei){var i=ei.memoizedState;if(o=i.destroy,null!==r&&oi(r,i.deps))return void gi(t,n,o,r)}Jo.flags|=e,a.memoizedState=gi(1|t,n,o,r)}function Ei(e,t){return yi(516,4,e,t)}function ki(e,t){return wi(516,4,e,t)}function Si(e,t){return wi(4,2,e,t)}function xi(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function _i(e,t,n){return n=null!=n?n.concat([e]):null,wi(4,2,xi.bind(null,t,e),n)}function Li(){}function Ci(e,t){var n=li();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&oi(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Ti(e,t){var n=li();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&oi(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Ai(e,t){var n=Ha();Qa(98>n?98:n,(function(){e(!0)})),Qa(97<n?97:n,(function(){var n=Ko.transition;Ko.transition=1;try{e(!1),t()}finally{Ko.transition=n}}))}function Oi(e,t,n){var r=fl(),a=pl(e),o={lane:a,action:n,eagerReducer:null,eagerState:null,next:null},i=t.pending;if(null===i?o.next=o:(o.next=i.next,i.next=o),t.pending=o,i=e.alternate,e===Jo||null!==i&&i===Jo)ri=ni=!0;else{if(0===e.lanes&&(null===i||0===i.lanes)&&null!==(i=t.lastRenderedReducer))try{var s=t.lastRenderedState,l=i(s,n);if(o.eagerReducer=i,o.eagerState=l,ur(l,s))return}catch(u){}hl(e,a,r)}}var Pi={readContext:oo,useCallback:ai,useContext:ai,useEffect:ai,useImperativeHandle:ai,useLayoutEffect:ai,useMemo:ai,useReducer:ai,useRef:ai,useState:ai,useDebugValue:ai,useDeferredValue:ai,useTransition:ai,useMutableSource:ai,useOpaqueIdentifier:ai,unstable_isNewReconciler:!1},Ni={readContext:oo,useCallback:function(e,t){return si().memoizedState=[e,void 0===t?null:t],e},useContext:oo,useEffect:Ei,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,yi(4,2,xi.bind(null,t,e),n)},useLayoutEffect:function(e,t){return yi(4,2,e,t)},useMemo:function(e,t){var n=si();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=si();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e=(e=r.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=Oi.bind(null,Jo,e),[r.memoizedState,e]},useRef:bi,useState:mi,useDebugValue:Li,useDeferredValue:function(e){var t=mi(e),n=t[0],r=t[1];return Ei((function(){var t=Ko.transition;Ko.transition=1;try{r(e)}finally{Ko.transition=t}}),[e]),n},useTransition:function(){var e=mi(!1),t=e[0];return bi(e=Ai.bind(null,e[1])),[e,t]},useMutableSource:function(e,t,n){var r=si();return r.memoizedState={refs:{getSnapshot:t,setSnapshot:null},source:e,subscribe:n},pi(r,e,t,n)},useOpaqueIdentifier:function(){if(zo){var e=!1,t=function(e){return{$$typeof:R,toString:e,valueOf:e}}((function(){throw e||(e=!0,n("r:"+(qr++).toString(36))),Error(i(355))})),n=mi(t)[1];return 0==(2&Jo.mode)&&(Jo.flags|=516,gi(5,(function(){n("r:"+(qr++).toString(36))}),void 0,null)),t}return mi(t="r:"+(qr++).toString(36)),t},unstable_isNewReconciler:!1},Di={readContext:oo,useCallback:Ci,useContext:oo,useEffect:ki,useImperativeHandle:_i,useLayoutEffect:Si,useMemo:Ti,useReducer:ci,useRef:vi,useState:function(){return ci(ui)},useDebugValue:Li,useDeferredValue:function(e){var t=ci(ui),n=t[0],r=t[1];return ki((function(){var t=Ko.transition;Ko.transition=1;try{r(e)}finally{Ko.transition=t}}),[e]),n},useTransition:function(){var e=ci(ui)[0];return[vi().current,e]},useMutableSource:hi,useOpaqueIdentifier:function(){return ci(ui)[0]},unstable_isNewReconciler:!1},Ii={readContext:oo,useCallback:Ci,useContext:oo,useEffect:ki,useImperativeHandle:_i,useLayoutEffect:Si,useMemo:Ti,useReducer:di,useRef:vi,useState:function(){return di(ui)},useDebugValue:Li,useDeferredValue:function(e){var t=di(ui),n=t[0],r=t[1];return ki((function(){var t=Ko.transition;Ko.transition=1;try{r(e)}finally{Ko.transition=t}}),[e]),n},useTransition:function(){var e=di(ui)[0];return[vi().current,e]},useMutableSource:hi,useOpaqueIdentifier:function(){return di(ui)[0]},unstable_isNewReconciler:!1},Ri=E.ReactCurrentOwner,Mi=!1;function Fi(e,t,n,r){t.child=null===e?Co(t,null,n,r):Lo(t,e.child,n,r)}function Bi(e,t,n,r,a){n=n.render;var o=t.ref;return ao(t,a),r=ii(e,t,n,r,o,a),null===e||Mi?(t.flags|=1,Fi(e,t,r,a),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~a,os(e,t,a))}function ji(e,t,n,r,a,o){if(null===e){var i=n.type;return"function"!=typeof i||Ql(i)||void 0!==i.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Gl(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,$i(e,t,i,r,a,o))}return i=e.child,0==(a&o)&&(a=i.memoizedProps,(n=null!==(n=n.compare)?n:dr)(a,r)&&e.ref===t.ref)?os(e,t,o):(t.flags|=1,(e=Vl(i,r)).ref=t.ref,e.return=t,t.child=e)}function $i(e,t,n,r,a,o){if(null!==e&&dr(e.memoizedProps,r)&&e.ref===t.ref){if(Mi=!1,0==(o&a))return t.lanes=e.lanes,os(e,t,o);0!=(16384&e.flags)&&(Mi=!0)}return Hi(e,t,n,r,o)}function zi(e,t,n){var r=t.pendingProps,a=r.children,o=null!==e?e.memoizedState:null;if("hidden"===r.mode||"unstable-defer-without-hiding"===r.mode)if(0==(4&t.mode))t.memoizedState={baseLanes:0},kl(t,n);else{if(0==(1073741824&n))return e=null!==o?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e},kl(t,e),null;t.memoizedState={baseLanes:0},kl(t,null!==o?o.baseLanes:n)}else null!==o?(r=o.baseLanes|n,t.memoizedState=null):r=n,kl(t,r);return Fi(e,t,a,n),t.child}function Ui(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=128)}function Hi(e,t,n,r,a){var o=ga(n)?ha:fa.current;return o=ma(t,o),ao(t,a),n=ii(e,t,n,r,o,a),null===e||Mi?(t.flags|=1,Fi(e,t,n,a),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~a,os(e,t,a))}function Zi(e,t,n,r,a){if(ga(n)){var o=!0;wa(t)}else o=!1;if(ao(t,a),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),yo(t,n,r),Eo(t,n,r,a),r=!0;else if(null===e){var i=t.stateNode,s=t.memoizedProps;i.props=s;var l=i.context,u=n.contextType;"object"==typeof u&&null!==u?u=oo(u):u=ma(t,u=ga(n)?ha:fa.current);var c=n.getDerivedStateFromProps,d="function"==typeof c||"function"==typeof i.getSnapshotBeforeUpdate;d||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(s!==r||l!==u)&&wo(t,i,r,u),io=!1;var f=t.memoizedState;i.state=f,po(t,r,i,a),l=t.memoizedState,s!==r||f!==l||pa.current||io?("function"==typeof c&&(go(t,n,c,r),l=t.memoizedState),(s=io||vo(t,n,s,r,f,l,u))?(d||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||("function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount()),"function"==typeof i.componentDidMount&&(t.flags|=4)):("function"==typeof i.componentDidMount&&(t.flags|=4),t.memoizedProps=r,t.memoizedState=l),i.props=r,i.state=l,i.context=u,r=s):("function"==typeof i.componentDidMount&&(t.flags|=4),r=!1)}else{i=t.stateNode,lo(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:Ya(t.type,s),i.props=u,d=t.pendingProps,f=i.context,"object"==typeof(l=n.contextType)&&null!==l?l=oo(l):l=ma(t,l=ga(n)?ha:fa.current);var p=n.getDerivedStateFromProps;(c="function"==typeof p||"function"==typeof i.getSnapshotBeforeUpdate)||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(s!==d||f!==l)&&wo(t,i,r,l),io=!1,f=t.memoizedState,i.state=f,po(t,r,i,a);var h=t.memoizedState;s!==d||f!==h||pa.current||io?("function"==typeof p&&(go(t,n,p,r),h=t.memoizedState),(u=io||vo(t,n,u,r,f,h,l))?(c||"function"!=typeof i.UNSAFE_componentWillUpdate&&"function"!=typeof i.componentWillUpdate||("function"==typeof i.componentWillUpdate&&i.componentWillUpdate(r,h,l),"function"==typeof i.UNSAFE_componentWillUpdate&&i.UNSAFE_componentWillUpdate(r,h,l)),"function"==typeof i.componentDidUpdate&&(t.flags|=4),"function"==typeof i.getSnapshotBeforeUpdate&&(t.flags|=256)):("function"!=typeof i.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=256),t.memoizedProps=r,t.memoizedState=h),i.props=r,i.state=h,i.context=l,r=u):("function"!=typeof i.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=256),r=!1)}return Qi(e,t,n,r,o,a)}function Qi(e,t,n,r,a,o){Ui(e,t);var i=0!=(64&t.flags);if(!r&&!i)return a&&Ea(t,n,!1),os(e,t,o);r=t.stateNode,Ri.current=t;var s=i&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&i?(t.child=Lo(t,e.child,null,o),t.child=Lo(t,null,s,o)):Fi(e,t,s,o),t.memoizedState=r.state,a&&Ea(t,n,!0),t.child}function Vi(e){var t=e.stateNode;t.pendingContext?va(0,t.pendingContext,t.pendingContext!==t.context):t.context&&va(0,t.context,!1),Do(e,t.containerInfo)}var Gi,Wi,qi,Yi,Ki={dehydrated:null,retryLane:0};function Xi(e,t,n){var r,a=t.pendingProps,o=Fo.current,i=!1;return(r=0!=(64&t.flags))||(r=(null===e||null!==e.memoizedState)&&0!=(2&o)),r?(i=!0,t.flags&=-65):null!==e&&null===e.memoizedState||void 0===a.fallback||!0===a.unstable_avoidThisFallback||(o|=1),ca(Fo,1&o),null===e?(void 0!==a.fallback&&Zo(t),e=a.children,o=a.fallback,i?(e=Ji(t,e,o,n),t.child.memoizedState={baseLanes:n},t.memoizedState=Ki,e):"number"==typeof a.unstable_expectedLoadTime?(e=Ji(t,e,o,n),t.child.memoizedState={baseLanes:n},t.memoizedState=Ki,t.lanes=33554432,e):((n=ql({mode:"visible",children:e},t.mode,n,null)).return=t,t.child=n)):(e.memoizedState,i?(a=ts(e,t,a.children,a.fallback,n),i=t.child,o=e.child.memoizedState,i.memoizedState=null===o?{baseLanes:n}:{baseLanes:o.baseLanes|n},i.childLanes=e.childLanes&~n,t.memoizedState=Ki,a):(n=es(e,t,a.children,n),t.memoizedState=null,n))}function Ji(e,t,n,r){var a=e.mode,o=e.child;return t={mode:"hidden",children:t},0==(2&a)&&null!==o?(o.childLanes=0,o.pendingProps=t):o=ql(t,a,0,null),n=Wl(n,a,r,null),o.return=e,n.return=e,o.sibling=n,e.child=o,n}function es(e,t,n,r){var a=e.child;return e=a.sibling,n=Vl(a,{mode:"visible",children:n}),0==(2&t.mode)&&(n.lanes=r),n.return=t,n.sibling=null,null!==e&&(e.nextEffect=null,e.flags=8,t.firstEffect=t.lastEffect=e),t.child=n}function ts(e,t,n,r,a){var o=t.mode,i=e.child;e=i.sibling;var s={mode:"hidden",children:n};return 0==(2&o)&&t.child!==i?((n=t.child).childLanes=0,n.pendingProps=s,null!==(i=n.lastEffect)?(t.firstEffect=n.firstEffect,t.lastEffect=i,i.nextEffect=null):t.firstEffect=t.lastEffect=null):n=Vl(i,s),null!==e?r=Vl(e,r):(r=Wl(r,o,a,null)).flags|=2,r.return=t,n.return=t,n.sibling=r,t.child=n,r}function ns(e,t){e.lanes|=t;var n=e.alternate;null!==n&&(n.lanes|=t),ro(e.return,t)}function rs(e,t,n,r,a,o){var i=e.memoizedState;null===i?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:a,lastEffect:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=a,i.lastEffect=o)}function as(e,t,n){var r=t.pendingProps,a=r.revealOrder,o=r.tail;if(Fi(e,t,r.children,n),0!=(2&(r=Fo.current)))r=1&r|2,t.flags|=64;else{if(null!==e&&0!=(64&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&ns(e,n);else if(19===e.tag)ns(e,n);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(ca(Fo,r),0==(2&t.mode))t.memoizedState=null;else switch(a){case"forwards":for(n=t.child,a=null;null!==n;)null!==(e=n.alternate)&&null===Bo(e)&&(a=n),n=n.sibling;null===(n=a)?(a=t.child,t.child=null):(a=n.sibling,n.sibling=null),rs(t,!1,a,n,o,t.lastEffect);break;case"backwards":for(n=null,a=t.child,t.child=null;null!==a;){if(null!==(e=a.alternate)&&null===Bo(e)){t.child=a;break}e=a.sibling,a.sibling=n,n=a,a=e}rs(t,!0,n,null,o,t.lastEffect);break;case"together":rs(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function os(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),zs|=t.lanes,0!=(n&t.childLanes)){if(null!==e&&t.child!==e.child)throw Error(i(153));if(null!==t.child){for(n=Vl(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Vl(e,e.pendingProps)).return=t;n.sibling=null}return t.child}return null}function is(e,t){if(!zo)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function ss(e,t,n){var r=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:case 17:return ga(t.type)&&ba(),null;case 3:return Io(),ua(pa),ua(fa),qo(),(r=t.stateNode).pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(Vo(t)?t.flags|=4:r.hydrate||(t.flags|=256)),Wi(t),null;case 5:Mo(t);var o=No(Po.current);if(n=t.type,null!==e&&null!=t.stateNode)qi(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=128);else{if(!r){if(null===t.stateNode)throw Error(i(166));return null}if(e=No(Ao.current),Vo(t)){r=t.stateNode,n=t.type;var s=t.memoizedProps;switch(r[Kr]=t,r[Xr]=s,n){case"dialog":Ar("cancel",r),Ar("close",r);break;case"iframe":case"object":case"embed":Ar("load",r);break;case"video":case"audio":for(e=0;e<_r.length;e++)Ar(_r[e],r);break;case"source":Ar("error",r);break;case"img":case"image":case"link":Ar("error",r),Ar("load",r);break;case"details":Ar("toggle",r);break;case"input":ee(r,s),Ar("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!s.multiple},Ar("invalid",r);break;case"textarea":le(r,s),Ar("invalid",r)}for(var u in Se(n,s),e=null,s)s.hasOwnProperty(u)&&(o=s[u],"children"===u?"string"==typeof o?r.textContent!==o&&(e=["children",o]):"number"==typeof o&&r.textContent!==""+o&&(e=["children",""+o]):l.hasOwnProperty(u)&&null!=o&&"onScroll"===u&&Ar("scroll",r));switch(n){case"input":Y(r),re(r,s,!0);break;case"textarea":Y(r),ce(r);break;case"select":case"option":break;default:"function"==typeof s.onClick&&(r.onclick=jr)}r=e,t.updateQueue=r,null!==r&&(t.flags|=4)}else{switch(u=9===o.nodeType?o:o.ownerDocument,e===de.html&&(e=fe(n)),e===de.html?"script"===n?((e=u.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=u.createElement(n,{is:r.is}):(e=u.createElement(n),"select"===n&&(u=e,r.multiple?u.multiple=!0:r.size&&(u.size=r.size))):e=u.createElementNS(e,n),e[Kr]=t,e[Xr]=r,Gi(e,t,!1,!1),t.stateNode=e,u=xe(n,r),n){case"dialog":Ar("cancel",e),Ar("close",e),o=r;break;case"iframe":case"object":case"embed":Ar("load",e),o=r;break;case"video":case"audio":for(o=0;o<_r.length;o++)Ar(_r[o],e);o=r;break;case"source":Ar("error",e),o=r;break;case"img":case"image":case"link":Ar("error",e),Ar("load",e),o=r;break;case"details":Ar("toggle",e),o=r;break;case"input":ee(e,r),o=J(e,r),Ar("invalid",e);break;case"option":o=oe(e,r);break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=a({},r,{value:void 0}),Ar("invalid",e);break;case"textarea":le(e,r),o=se(e,r),Ar("invalid",e);break;default:o=r}Se(n,o);var c=o;for(s in c)if(c.hasOwnProperty(s)){var d=c[s];"style"===s?Ee(e,d):"dangerouslySetInnerHTML"===s?null!=(d=d?d.__html:void 0)&&ge(e,d):"children"===s?"string"==typeof d?("textarea"!==n||""!==d)&&be(e,d):"number"==typeof d&&be(e,""+d):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(l.hasOwnProperty(s)?null!=d&&"onScroll"===s&&Ar("scroll",e):null!=d&&w(e,s,d,u))}switch(n){case"input":Y(e),re(e,r,!1);break;case"textarea":Y(e),ce(e);break;case"option":null!=r.value&&e.setAttribute("value",""+W(r.value));break;case"select":e.multiple=!!r.multiple,null!=(s=r.value)?ie(e,!!r.multiple,s,!1):null!=r.defaultValue&&ie(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof o.onClick&&(e.onclick=jr)}Ur(n,r)&&(t.flags|=4)}null!==t.ref&&(t.flags|=128)}return null;case 6:if(e&&null!=t.stateNode)Yi(e,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(i(166));n=No(Po.current),No(Ao.current),Vo(t)?(r=t.stateNode,n=t.memoizedProps,r[Kr]=t,r.nodeValue!==n&&(t.flags|=4)):((r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[Kr]=t,t.stateNode=r)}return null;case 13:return ua(Fo),r=t.memoizedState,0!=(64&t.flags)?(t.lanes=n,t):(r=null!==r,n=!1,null===e?void 0!==t.memoizedProps.fallback&&Vo(t):n=null!==e.memoizedState,r&&!n&&0!=(2&t.mode)&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!=(1&Fo.current)?0===Bs&&(Bs=3):(0!==Bs&&3!==Bs||(Bs=4),null===Ds||0==(134217727&zs)&&0==(134217727&Us)||vl(Ds,Rs))),(r||n)&&(t.flags|=4),null);case 4:return Io(),Wi(t),null===e&&Pr(t.stateNode.containerInfo),null;case 10:return no(t),null;case 19:if(ua(Fo),null===(r=t.memoizedState))return null;if(s=0!=(64&t.flags),null===(u=r.rendering))if(s)is(r,!1);else{if(0!==Bs||null!==e&&0!=(64&e.flags))for(e=t.child;null!==e;){if(null!==(u=Bo(e))){for(t.flags|=64,is(r,!1),null!==(s=u.updateQueue)&&(t.updateQueue=s,t.flags|=4),null===r.lastEffect&&(t.firstEffect=null),t.lastEffect=r.lastEffect,r=n,n=t.child;null!==n;)e=r,(s=n).flags&=2,s.nextEffect=null,s.firstEffect=null,s.lastEffect=null,null===(u=s.alternate)?(s.childLanes=0,s.lanes=e,s.child=null,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=u.childLanes,s.lanes=u.lanes,s.child=u.child,s.memoizedProps=u.memoizedProps,s.memoizedState=u.memoizedState,s.updateQueue=u.updateQueue,s.type=u.type,e=u.dependencies,s.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return ca(Fo,1&Fo.current|2),t.child}e=e.sibling}null!==r.tail&&Ua()>Vs&&(t.flags|=64,s=!0,is(r,!1),t.lanes=33554432)}else{if(!s)if(null!==(e=Bo(u))){if(t.flags|=64,s=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),is(r,!0),null===r.tail&&"hidden"===r.tailMode&&!u.alternate&&!zo)return null!==(t=t.lastEffect=r.lastEffect)&&(t.nextEffect=null),null}else 2*Ua()-r.renderingStartTime>Vs&&1073741824!==n&&(t.flags|=64,s=!0,is(r,!1),t.lanes=33554432);r.isBackwards?(u.sibling=t.child,t.child=u):(null!==(n=r.last)?n.sibling=u:t.child=u,r.last=u)}return null!==r.tail?(n=r.tail,r.rendering=n,r.tail=n.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=Ua(),n.sibling=null,t=Fo.current,ca(Fo,s?1&t|2:1&t),n):null;case 23:case 24:return Sl(),null!==e&&null!==e.memoizedState!=(null!==t.memoizedState)&&"unstable-defer-without-hiding"!==r.mode&&(t.flags|=4),null}throw Error(i(156,t.tag))}function ls(e){switch(e.tag){case 1:ga(e.type)&&ba();var t=e.flags;return 4096&t?(e.flags=-4097&t|64,e):null;case 3:if(Io(),ua(pa),ua(fa),qo(),0!=(64&(t=e.flags)))throw Error(i(285));return e.flags=-4097&t|64,e;case 5:return Mo(e),null;case 13:return ua(Fo),4096&(t=e.flags)?(e.flags=-4097&t|64,e):null;case 19:return ua(Fo),null;case 4:return Io(),null;case 10:return no(e),null;case 23:case 24:return Sl(),null;default:return null}}function us(e,t){try{var n="",r=t;do{n+=V(r),r=r.return}while(r);var a=n}catch(o){a="\nError generating stack: "+o.message+"\n"+o.stack}return{value:e,source:t,stack:a}}function cs(e,t){try{console.error(t.value)}catch(n){setTimeout((function(){throw n}))}}Gi=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Wi=function(){},qi=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,No(Ao.current);var i,s=null;switch(n){case"input":o=J(e,o),r=J(e,r),s=[];break;case"option":o=oe(e,o),r=oe(e,r),s=[];break;case"select":o=a({},o,{value:void 0}),r=a({},r,{value:void 0}),s=[];break;case"textarea":o=se(e,o),r=se(e,r),s=[];break;default:"function"!=typeof o.onClick&&"function"==typeof r.onClick&&(e.onclick=jr)}for(d in Se(n,r),n=null,o)if(!r.hasOwnProperty(d)&&o.hasOwnProperty(d)&&null!=o[d])if("style"===d){var u=o[d];for(i in u)u.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else"dangerouslySetInnerHTML"!==d&&"children"!==d&&"suppressContentEditableWarning"!==d&&"suppressHydrationWarning"!==d&&"autoFocus"!==d&&(l.hasOwnProperty(d)?s||(s=[]):(s=s||[]).push(d,null));for(d in r){var c=r[d];if(u=null!=o?o[d]:void 0,r.hasOwnProperty(d)&&c!==u&&(null!=c||null!=u))if("style"===d)if(u){for(i in u)!u.hasOwnProperty(i)||c&&c.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in c)c.hasOwnProperty(i)&&u[i]!==c[i]&&(n||(n={}),n[i]=c[i])}else n||(s||(s=[]),s.push(d,n)),n=c;else"dangerouslySetInnerHTML"===d?(c=c?c.__html:void 0,u=u?u.__html:void 0,null!=c&&u!==c&&(s=s||[]).push(d,c)):"children"===d?"string"!=typeof c&&"number"!=typeof c||(s=s||[]).push(d,""+c):"suppressContentEditableWarning"!==d&&"suppressHydrationWarning"!==d&&(l.hasOwnProperty(d)?(null!=c&&"onScroll"===d&&Ar("scroll",e),s||u===c||(s=[])):"object"==typeof c&&null!==c&&c.$$typeof===R?c.toString():(s=s||[]).push(d,c))}n&&(s=s||[]).push("style",n);var d=s;(t.updateQueue=d)&&(t.flags|=4)}},Yi=function(e,t,n,r){n!==r&&(t.flags|=4)};var ds="function"==typeof WeakMap?WeakMap:Map;function fs(e,t,n){(n=uo(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Ys||(Ys=!0,Ks=r),cs(0,t)},n}function ps(e,t,n){(n=uo(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var a=t.value;n.payload=function(){return cs(0,t),r(a)}}var o=e.stateNode;return null!==o&&"function"==typeof o.componentDidCatch&&(n.callback=function(){"function"!=typeof r&&(null===Xs?Xs=new Set([this]):Xs.add(this),cs(0,t));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}var hs="function"==typeof WeakSet?WeakSet:Set;function ms(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(n){$l(e,n)}else t.current=null}function gs(e,t){switch(t.tag){case 0:case 11:case 15:case 22:case 5:case 6:case 4:case 17:return;case 1:if(256&t.flags&&null!==e){var n=e.memoizedProps,r=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:Ya(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:return void(256&t.flags&&Vr(t.stateNode.containerInfo))}throw Error(i(163))}function bs(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{if(3==(3&e.tag)){var r=e.create;e.destroy=r()}e=e.next}while(e!==t)}if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{var a=e;r=a.next,0!=(4&(a=a.tag))&&0!=(1&a)&&(Fl(n,e),Ml(n,e)),e=r}while(e!==t)}return;case 1:return e=n.stateNode,4&n.flags&&(null===t?e.componentDidMount():(r=n.elementType===n.type?t.memoizedProps:Ya(n.type,t.memoizedProps),e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),void(null!==(t=n.updateQueue)&&ho(n,t,e));case 3:if(null!==(t=n.updateQueue)){if(e=null,null!==n.child)switch(n.child.tag){case 5:case 1:e=n.child.stateNode}ho(n,t,e)}return;case 5:return e=n.stateNode,void(null===t&&4&n.flags&&Ur(n.type,n.memoizedProps)&&e.focus());case 6:case 4:case 12:case 19:case 17:case 20:case 21:case 23:case 24:return;case 13:return void(null===n.memoizedState&&(n=n.alternate,null!==n&&(n=n.memoizedState,null!==n&&(n=n.dehydrated,null!==n&&Et(n)))))}throw Error(i(163))}function vs(e,t){for(var n=e;;){if(5===n.tag){var r=n.stateNode;if(t)"function"==typeof(r=r.style).setProperty?r.setProperty("display","none","important"):r.display="none";else{r=n.stateNode;var a=n.memoizedProps.style;a=null!=a&&a.hasOwnProperty("display")?a.display:null,r.style.display=we("display",a)}}else if(6===n.tag)n.stateNode.nodeValue=t?"":n.memoizedProps;else if((23!==n.tag&&24!==n.tag||null===n.memoizedState||n===e)&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}}function ys(e,t){if(Sa&&"function"==typeof Sa.onCommitFiberUnmount)try{Sa.onCommitFiberUnmount(ka,t)}catch(o){}switch(t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var n=e=e.next;do{var r=n,a=r.destroy;if(r=r.tag,void 0!==a)if(0!=(4&r))Fl(t,n);else{r=t;try{a()}catch(o){$l(r,o)}}n=n.next}while(n!==e)}break;case 1:if(ms(t),"function"==typeof(e=t.stateNode).componentWillUnmount)try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(o){$l(t,o)}break;case 5:ms(t);break;case 4:_s(e,t)}}function ws(e){e.alternate=null,e.child=null,e.dependencies=null,e.firstEffect=null,e.lastEffect=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.return=null,e.updateQueue=null}function Es(e){return 5===e.tag||3===e.tag||4===e.tag}function ks(e){e:{for(var t=e.return;null!==t;){if(Es(t))break e;t=t.return}throw Error(i(160))}var n=t;switch(t=n.stateNode,n.tag){case 5:var r=!1;break;case 3:case 4:t=t.containerInfo,r=!0;break;default:throw Error(i(161))}16&n.flags&&(be(t,""),n.flags&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||Es(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.flags)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.flags)){n=n.stateNode;break e}}r?Ss(e,n,t):xs(e,n,t)}function Ss(e,t,n){var r=e.tag,a=5===r||6===r;if(a)e=a?e.stateNode:e.stateNode.instance,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=jr));else if(4!==r&&null!==(e=e.child))for(Ss(e,t,n),e=e.sibling;null!==e;)Ss(e,t,n),e=e.sibling}function xs(e,t,n){var r=e.tag,a=5===r||6===r;if(a)e=a?e.stateNode:e.stateNode.instance,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(xs(e,t,n),e=e.sibling;null!==e;)xs(e,t,n),e=e.sibling}function _s(e,t){for(var n,r,a=t,o=!1;;){if(!o){o=a.return;e:for(;;){if(null===o)throw Error(i(160));switch(n=o.stateNode,o.tag){case 5:r=!1;break e;case 3:case 4:n=n.containerInfo,r=!0;break e}o=o.return}o=!0}if(5===a.tag||6===a.tag){e:for(var s=e,l=a,u=l;;)if(ys(s,u),null!==u.child&&4!==u.tag)u.child.return=u,u=u.child;else{if(u===l)break e;for(;null===u.sibling;){if(null===u.return||u.return===l)break e;u=u.return}u.sibling.return=u.return,u=u.sibling}r?(s=n,l=a.stateNode,8===s.nodeType?s.parentNode.removeChild(l):s.removeChild(l)):n.removeChild(a.stateNode)}else if(4===a.tag){if(null!==a.child){n=a.stateNode.containerInfo,r=!0,a.child.return=a,a=a.child;continue}}else if(ys(e,a),null!==a.child){a.child.return=a,a=a.child;continue}if(a===t)break;for(;null===a.sibling;){if(null===a.return||a.return===t)return;4===(a=a.return).tag&&(o=!1)}a.sibling.return=a.return,a=a.sibling}}function Ls(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:var n=t.updateQueue;if(null!==(n=null!==n?n.lastEffect:null)){var r=n=n.next;do{3==(3&r.tag)&&(e=r.destroy,r.destroy=void 0,void 0!==e&&e()),r=r.next}while(r!==n)}return;case 1:case 12:case 17:return;case 5:if(null!=(n=t.stateNode)){r=t.memoizedProps;var a=null!==e?e.memoizedProps:r;e=t.type;var o=t.updateQueue;if(t.updateQueue=null,null!==o){for(n[Xr]=r,"input"===e&&"radio"===r.type&&null!=r.name&&te(n,r),xe(e,a),t=xe(e,r),a=0;a<o.length;a+=2){var s=o[a],l=o[a+1];"style"===s?Ee(n,l):"dangerouslySetInnerHTML"===s?ge(n,l):"children"===s?be(n,l):w(n,s,l,t)}switch(e){case"input":ne(n,r);break;case"textarea":ue(n,r);break;case"select":e=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,null!=(o=r.value)?ie(n,!!r.multiple,o,!1):e!==!!r.multiple&&(null!=r.defaultValue?ie(n,!!r.multiple,r.defaultValue,!0):ie(n,!!r.multiple,r.multiple?[]:"",!1))}}}return;case 6:if(null===t.stateNode)throw Error(i(162));return void(t.stateNode.nodeValue=t.memoizedProps);case 3:return void((n=t.stateNode).hydrate&&(n.hydrate=!1,Et(n.containerInfo)));case 13:return null!==t.memoizedState&&(Qs=Ua(),vs(t.child,!0)),void Cs(t);case 19:return void Cs(t);case 23:case 24:return void vs(t,null!==t.memoizedState)}throw Error(i(163))}function Cs(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new hs),t.forEach((function(t){var r=Ul.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function Ts(e,t){return null!==e&&(null===(e=e.memoizedState)||null!==e.dehydrated)&&(null!==(t=t.memoizedState)&&null===t.dehydrated)}var As=Math.ceil,Os=E.ReactCurrentDispatcher,Ps=E.ReactCurrentOwner,Ns=0,Ds=null,Is=null,Rs=0,Ms=0,Fs=la(0),Bs=0,js=null,$s=0,zs=0,Us=0,Hs=0,Zs=null,Qs=0,Vs=1/0;function Gs(){Vs=Ua()+500}var Ws,qs=null,Ys=!1,Ks=null,Xs=null,Js=!1,el=null,tl=90,nl=[],rl=[],al=null,ol=0,il=null,sl=-1,ll=0,ul=0,cl=null,dl=!1;function fl(){return 0!=(48&Ns)?Ua():-1!==sl?sl:sl=Ua()}function pl(e){if(0==(2&(e=e.mode)))return 1;if(0==(4&e))return 99===Ha()?1:2;if(0===ll&&(ll=$s),0!==qa.transition){0!==ul&&(ul=null!==Zs?Zs.pendingLanes:0),e=ll;var t=4186112&~ul;return 0===(t&=-t)&&(0===(t=(e=4186112&~e)&-e)&&(t=8192)),t}return e=Ha(),0!=(4&Ns)&&98===e?e=jt(12,ll):e=jt(e=function(e){switch(e){case 99:return 15;case 98:return 10;case 97:case 96:return 8;case 95:return 2;default:return 0}}(e),ll),e}function hl(e,t,n){if(50<ol)throw ol=0,il=null,Error(i(185));if(null===(e=ml(e,t)))return null;Ut(e,t,n),e===Ds&&(Us|=t,4===Bs&&vl(e,Rs));var r=Ha();1===t?0!=(8&Ns)&&0==(48&Ns)?yl(e):(gl(e,n),0===Ns&&(Gs(),Ga())):(0==(4&Ns)||98!==r&&99!==r||(null===al?al=new Set([e]):al.add(e)),gl(e,n)),Zs=e}function ml(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}function gl(e,t){for(var n=e.callbackNode,r=e.suspendedLanes,a=e.pingedLanes,o=e.expirationTimes,s=e.pendingLanes;0<s;){var l=31-Ht(s),u=1<<l,c=o[l];if(-1===c){if(0==(u&r)||0!=(u&a)){c=t,Mt(u);var d=Rt;o[l]=10<=d?c+250:6<=d?c+5e3:-1}}else c<=t&&(e.expiredLanes|=u);s&=~u}if(r=Ft(e,e===Ds?Rs:0),t=Rt,0===r)null!==n&&(n!==Ma&&La(n),e.callbackNode=null,e.callbackPriority=0);else{if(null!==n){if(e.callbackPriority===t)return;n!==Ma&&La(n)}15===t?(n=yl.bind(null,e),null===Ba?(Ba=[n],ja=_a(Pa,Wa)):Ba.push(n),n=Ma):14===t?n=Va(99,yl.bind(null,e)):(n=function(e){switch(e){case 15:case 14:return 99;case 13:case 12:case 11:case 10:return 98;case 9:case 8:case 7:case 6:case 4:case 5:return 97;case 3:case 2:case 1:return 95;case 0:return 90;default:throw Error(i(358,e))}}(t),n=Va(n,bl.bind(null,e))),e.callbackPriority=t,e.callbackNode=n}}function bl(e){if(sl=-1,ul=ll=0,0!=(48&Ns))throw Error(i(327));var t=e.callbackNode;if(Rl()&&e.callbackNode!==t)return null;var n=Ft(e,e===Ds?Rs:0);if(0===n)return null;var r=n,a=Ns;Ns|=16;var o=Ll();for(Ds===e&&Rs===r||(Gs(),xl(e,r));;)try{Al();break}catch(l){_l(e,l)}if(to(),Os.current=o,Ns=a,null!==Is?r=0:(Ds=null,Rs=0,r=Bs),0!=($s&Us))xl(e,0);else if(0!==r){if(2===r&&(Ns|=64,e.hydrate&&(e.hydrate=!1,Vr(e.containerInfo)),0!==(n=Bt(e))&&(r=Cl(e,n))),1===r)throw t=js,xl(e,0),vl(e,n),gl(e,Ua()),t;switch(e.finishedWork=e.current.alternate,e.finishedLanes=n,r){case 0:case 1:throw Error(i(345));case 2:case 5:Nl(e);break;case 3:if(vl(e,n),(62914560&n)===n&&10<(r=Qs+500-Ua())){if(0!==Ft(e,0))break;if(((a=e.suspendedLanes)&n)!==n){fl(),e.pingedLanes|=e.suspendedLanes&a;break}e.timeoutHandle=Zr(Nl.bind(null,e),r);break}Nl(e);break;case 4:if(vl(e,n),(4186112&n)===n)break;for(r=e.eventTimes,a=-1;0<n;){var s=31-Ht(n);o=1<<s,(s=r[s])>a&&(a=s),n&=~o}if(n=a,10<(n=(120>(n=Ua()-n)?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*As(n/1960))-n)){e.timeoutHandle=Zr(Nl.bind(null,e),n);break}Nl(e);break;default:throw Error(i(329))}}return gl(e,Ua()),e.callbackNode===t?bl.bind(null,e):null}function vl(e,t){for(t&=~Hs,t&=~Us,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Ht(t),r=1<<n;e[n]=-1,t&=~r}}function yl(e){if(0!=(48&Ns))throw Error(i(327));if(Rl(),e===Ds&&0!=(e.expiredLanes&Rs)){var t=Rs,n=Cl(e,t);0!=($s&Us)&&(n=Cl(e,t=Ft(e,t)))}else n=Cl(e,t=Ft(e,0));if(0!==e.tag&&2===n&&(Ns|=64,e.hydrate&&(e.hydrate=!1,Vr(e.containerInfo)),0!==(t=Bt(e))&&(n=Cl(e,t))),1===n)throw n=js,xl(e,0),vl(e,t),gl(e,Ua()),n;return e.finishedWork=e.current.alternate,e.finishedLanes=t,Nl(e),gl(e,Ua()),null}function wl(e,t){var n=Ns;Ns|=1;try{return e(t)}finally{0===(Ns=n)&&(Gs(),Ga())}}function El(e,t){var n=Ns;Ns&=-2,Ns|=8;try{return e(t)}finally{0===(Ns=n)&&(Gs(),Ga())}}function kl(e,t){ca(Fs,Ms),Ms|=t,$s|=t}function Sl(){Ms=Fs.current,ua(Fs)}function xl(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,Qr(n)),null!==Is)for(n=Is.return;null!==n;){var r=n;switch(r.tag){case 1:null!=(r=r.type.childContextTypes)&&ba();break;case 3:Io(),ua(pa),ua(fa),qo();break;case 5:Mo(r);break;case 4:Io();break;case 13:case 19:ua(Fo);break;case 10:no(r);break;case 23:case 24:Sl()}n=n.return}Ds=e,Is=Vl(e.current,null),Rs=Ms=$s=t,Bs=0,js=null,Hs=Us=zs=0}function _l(e,t){for(;;){var n=Is;try{if(to(),Yo.current=Pi,ni){for(var r=Jo.memoizedState;null!==r;){var a=r.queue;null!==a&&(a.pending=null),r=r.next}ni=!1}if(Xo=0,ti=ei=Jo=null,ri=!1,Ps.current=null,null===n||null===n.return){Bs=1,js=t,Is=null;break}e:{var o=e,i=n.return,s=n,l=t;if(t=Rs,s.flags|=2048,s.firstEffect=s.lastEffect=null,null!==l&&"object"==typeof l&&"function"==typeof l.then){var u=l;if(0==(2&s.mode)){var c=s.alternate;c?(s.updateQueue=c.updateQueue,s.memoizedState=c.memoizedState,s.lanes=c.lanes):(s.updateQueue=null,s.memoizedState=null)}var d=0!=(1&Fo.current),f=i;do{var p;if(p=13===f.tag){var h=f.memoizedState;if(null!==h)p=null!==h.dehydrated;else{var m=f.memoizedProps;p=void 0!==m.fallback&&(!0!==m.unstable_avoidThisFallback||!d)}}if(p){var g=f.updateQueue;if(null===g){var b=new Set;b.add(u),f.updateQueue=b}else g.add(u);if(0==(2&f.mode)){if(f.flags|=64,s.flags|=16384,s.flags&=-2981,1===s.tag)if(null===s.alternate)s.tag=17;else{var v=uo(-1,1);v.tag=2,co(s,v)}s.lanes|=1;break e}l=void 0,s=t;var y=o.pingCache;if(null===y?(y=o.pingCache=new ds,l=new Set,y.set(u,l)):void 0===(l=y.get(u))&&(l=new Set,y.set(u,l)),!l.has(s)){l.add(s);var w=zl.bind(null,o,u,s);u.then(w,w)}f.flags|=4096,f.lanes=t;break e}f=f.return}while(null!==f);l=Error((G(s.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.")}5!==Bs&&(Bs=2),l=us(l,s),f=i;do{switch(f.tag){case 3:o=l,f.flags|=4096,t&=-t,f.lanes|=t,fo(f,fs(0,o,t));break e;case 1:o=l;var E=f.type,k=f.stateNode;if(0==(64&f.flags)&&("function"==typeof E.getDerivedStateFromError||null!==k&&"function"==typeof k.componentDidCatch&&(null===Xs||!Xs.has(k)))){f.flags|=4096,t&=-t,f.lanes|=t,fo(f,ps(f,o,t));break e}}f=f.return}while(null!==f)}Pl(n)}catch(S){t=S,Is===n&&null!==n&&(Is=n=n.return);continue}break}}function Ll(){var e=Os.current;return Os.current=Pi,null===e?Pi:e}function Cl(e,t){var n=Ns;Ns|=16;var r=Ll();for(Ds===e&&Rs===t||xl(e,t);;)try{Tl();break}catch(a){_l(e,a)}if(to(),Ns=n,Os.current=r,null!==Is)throw Error(i(261));return Ds=null,Rs=0,Bs}function Tl(){for(;null!==Is;)Ol(Is)}function Al(){for(;null!==Is&&!Ca();)Ol(Is)}function Ol(e){var t=Ws(e.alternate,e,Ms);e.memoizedProps=e.pendingProps,null===t?Pl(e):Is=t,Ps.current=null}function Pl(e){var t=e;do{var n=t.alternate;if(e=t.return,0==(2048&t.flags)){if(null!==(n=ss(n,t,Ms)))return void(Is=n);if(24!==(n=t).tag&&23!==n.tag||null===n.memoizedState||0!=(1073741824&Ms)||0==(4&n.mode)){for(var r=0,a=n.child;null!==a;)r|=a.lanes|a.childLanes,a=a.sibling;n.childLanes=r}null!==e&&0==(2048&e.flags)&&(null===e.firstEffect&&(e.firstEffect=t.firstEffect),null!==t.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1<t.flags&&(null!==e.lastEffect?e.lastEffect.nextEffect=t:e.firstEffect=t,e.lastEffect=t))}else{if(null!==(n=ls(t)))return n.flags&=2047,void(Is=n);null!==e&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}if(null!==(t=t.sibling))return void(Is=t);Is=t=e}while(null!==t);0===Bs&&(Bs=5)}function Nl(e){var t=Ha();return Qa(99,Dl.bind(null,e,t)),null}function Dl(e,t){do{Rl()}while(null!==el);if(0!=(48&Ns))throw Error(i(327));var n=e.finishedWork;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(i(177));e.callbackNode=null;var r=n.lanes|n.childLanes,a=r,o=e.pendingLanes&~a;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=a,e.mutableReadLanes&=a,e.entangledLanes&=a,a=e.entanglements;for(var s=e.eventTimes,l=e.expirationTimes;0<o;){var u=31-Ht(o),c=1<<u;a[u]=0,s[u]=-1,l[u]=-1,o&=~c}if(null!==al&&0==(24&r)&&al.has(e)&&al.delete(e),e===Ds&&(Is=Ds=null,Rs=0),1<n.flags?null!==n.lastEffect?(n.lastEffect.nextEffect=n,r=n.firstEffect):r=n:r=n.firstEffect,null!==r){if(a=Ns,Ns|=32,Ps.current=null,$r=Wt,gr(s=mr())){if("selectionStart"in s)l={start:s.selectionStart,end:s.selectionEnd};else e:if(l=(l=s.ownerDocument)&&l.defaultView||window,(c=l.getSelection&&l.getSelection())&&0!==c.rangeCount){l=c.anchorNode,o=c.anchorOffset,u=c.focusNode,c=c.focusOffset;try{l.nodeType,u.nodeType}catch(L){l=null;break e}var d=0,f=-1,p=-1,h=0,m=0,g=s,b=null;t:for(;;){for(var v;g!==l||0!==o&&3!==g.nodeType||(f=d+o),g!==u||0!==c&&3!==g.nodeType||(p=d+c),3===g.nodeType&&(d+=g.nodeValue.length),null!==(v=g.firstChild);)b=g,g=v;for(;;){if(g===s)break t;if(b===l&&++h===o&&(f=d),b===u&&++m===c&&(p=d),null!==(v=g.nextSibling))break;b=(g=b).parentNode}g=v}l=-1===f||-1===p?null:{start:f,end:p}}else l=null;l=l||{start:0,end:0}}else l=null;zr={focusedElem:s,selectionRange:l},Wt=!1,cl=null,dl=!1,qs=r;do{try{Il()}catch(L){if(null===qs)throw Error(i(330));$l(qs,L),qs=qs.nextEffect}}while(null!==qs);cl=null,qs=r;do{try{for(s=e;null!==qs;){var y=qs.flags;if(16&y&&be(qs.stateNode,""),128&y){var w=qs.alternate;if(null!==w){var E=w.ref;null!==E&&("function"==typeof E?E(null):E.current=null)}}switch(1038&y){case 2:ks(qs),qs.flags&=-3;break;case 6:ks(qs),qs.flags&=-3,Ls(qs.alternate,qs);break;case 1024:qs.flags&=-1025;break;case 1028:qs.flags&=-1025,Ls(qs.alternate,qs);break;case 4:Ls(qs.alternate,qs);break;case 8:_s(s,l=qs);var k=l.alternate;ws(l),null!==k&&ws(k)}qs=qs.nextEffect}}catch(L){if(null===qs)throw Error(i(330));$l(qs,L),qs=qs.nextEffect}}while(null!==qs);if(E=zr,w=mr(),y=E.focusedElem,s=E.selectionRange,w!==y&&y&&y.ownerDocument&&hr(y.ownerDocument.documentElement,y)){null!==s&&gr(y)&&(w=s.start,void 0===(E=s.end)&&(E=w),"selectionStart"in y?(y.selectionStart=w,y.selectionEnd=Math.min(E,y.value.length)):(E=(w=y.ownerDocument||document)&&w.defaultView||window).getSelection&&(E=E.getSelection(),l=y.textContent.length,k=Math.min(s.start,l),s=void 0===s.end?k:Math.min(s.end,l),!E.extend&&k>s&&(l=s,s=k,k=l),l=pr(y,k),o=pr(y,s),l&&o&&(1!==E.rangeCount||E.anchorNode!==l.node||E.anchorOffset!==l.offset||E.focusNode!==o.node||E.focusOffset!==o.offset)&&((w=w.createRange()).setStart(l.node,l.offset),E.removeAllRanges(),k>s?(E.addRange(w),E.extend(o.node,o.offset)):(w.setEnd(o.node,o.offset),E.addRange(w))))),w=[];for(E=y;E=E.parentNode;)1===E.nodeType&&w.push({element:E,left:E.scrollLeft,top:E.scrollTop});for("function"==typeof y.focus&&y.focus(),y=0;y<w.length;y++)(E=w[y]).element.scrollLeft=E.left,E.element.scrollTop=E.top}Wt=!!$r,zr=$r=null,e.current=n,qs=r;do{try{for(y=e;null!==qs;){var S=qs.flags;if(36&S&&bs(y,qs.alternate,qs),128&S){w=void 0;var x=qs.ref;if(null!==x){var _=qs.stateNode;qs.tag,w=_,"function"==typeof x?x(w):x.current=w}}qs=qs.nextEffect}}catch(L){if(null===qs)throw Error(i(330));$l(qs,L),qs=qs.nextEffect}}while(null!==qs);qs=null,Fa(),Ns=a}else e.current=n;if(Js)Js=!1,el=e,tl=t;else for(qs=r;null!==qs;)t=qs.nextEffect,qs.nextEffect=null,8&qs.flags&&((S=qs).sibling=null,S.stateNode=null),qs=t;if(0===(r=e.pendingLanes)&&(Xs=null),1===r?e===il?ol++:(ol=0,il=e):ol=0,n=n.stateNode,Sa&&"function"==typeof Sa.onCommitFiberRoot)try{Sa.onCommitFiberRoot(ka,n,void 0,64==(64&n.current.flags))}catch(L){}if(gl(e,Ua()),Ys)throw Ys=!1,e=Ks,Ks=null,e;return 0!=(8&Ns)||Ga(),null}function Il(){for(;null!==qs;){var e=qs.alternate;dl||null===cl||(0!=(8&qs.flags)?Je(qs,cl)&&(dl=!0):13===qs.tag&&Ts(e,qs)&&Je(qs,cl)&&(dl=!0));var t=qs.flags;0!=(256&t)&&gs(e,qs),0==(512&t)||Js||(Js=!0,Va(97,(function(){return Rl(),null}))),qs=qs.nextEffect}}function Rl(){if(90!==tl){var e=97<tl?97:tl;return tl=90,Qa(e,Bl)}return!1}function Ml(e,t){nl.push(t,e),Js||(Js=!0,Va(97,(function(){return Rl(),null})))}function Fl(e,t){rl.push(t,e),Js||(Js=!0,Va(97,(function(){return Rl(),null})))}function Bl(){if(null===el)return!1;var e=el;if(el=null,0!=(48&Ns))throw Error(i(331));var t=Ns;Ns|=32;var n=rl;rl=[];for(var r=0;r<n.length;r+=2){var a=n[r],o=n[r+1],s=a.destroy;if(a.destroy=void 0,"function"==typeof s)try{s()}catch(u){if(null===o)throw Error(i(330));$l(o,u)}}for(n=nl,nl=[],r=0;r<n.length;r+=2){a=n[r],o=n[r+1];try{var l=a.create;a.destroy=l()}catch(u){if(null===o)throw Error(i(330));$l(o,u)}}for(l=e.current.firstEffect;null!==l;)e=l.nextEffect,l.nextEffect=null,8&l.flags&&(l.sibling=null,l.stateNode=null),l=e;return Ns=t,Ga(),!0}function jl(e,t,n){co(e,t=fs(0,t=us(n,t),1)),t=fl(),null!==(e=ml(e,1))&&(Ut(e,1,t),gl(e,t))}function $l(e,t){if(3===e.tag)jl(e,e,t);else for(var n=e.return;null!==n;){if(3===n.tag){jl(n,e,t);break}if(1===n.tag){var r=n.stateNode;if("function"==typeof n.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Xs||!Xs.has(r))){var a=ps(n,e=us(t,e),1);if(co(n,a),a=fl(),null!==(n=ml(n,1)))Ut(n,1,a),gl(n,a);else if("function"==typeof r.componentDidCatch&&(null===Xs||!Xs.has(r)))try{r.componentDidCatch(t,e)}catch(o){}break}}n=n.return}}function zl(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=fl(),e.pingedLanes|=e.suspendedLanes&n,Ds===e&&(Rs&n)===n&&(4===Bs||3===Bs&&(62914560&Rs)===Rs&&500>Ua()-Qs?xl(e,0):Hs|=n),gl(e,t)}function Ul(e,t){var n=e.stateNode;null!==n&&n.delete(t),0===(t=0)&&(0==(2&(t=e.mode))?t=1:0==(4&t)?t=99===Ha()?1:2:(0===ll&&(ll=$s),0===(t=$t(62914560&~ll))&&(t=4194304))),n=fl(),null!==(e=ml(e,t))&&(Ut(e,t,n),gl(e,n))}function Hl(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function Zl(e,t,n,r){return new Hl(e,t,n,r)}function Ql(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Vl(e,t){var n=e.alternate;return null===n?((n=Zl(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Gl(e,t,n,r,a,o){var s=2;if(r=e,"function"==typeof e)Ql(e)&&(s=1);else if("string"==typeof e)s=5;else e:switch(e){case x:return Wl(n.children,a,o,t);case M:s=8,a|=16;break;case _:s=8,a|=1;break;case L:return(e=Zl(12,n,t,8|a)).elementType=L,e.type=L,e.lanes=o,e;case O:return(e=Zl(13,n,t,a)).type=O,e.elementType=O,e.lanes=o,e;case P:return(e=Zl(19,n,t,a)).elementType=P,e.lanes=o,e;case F:return ql(n,a,o,t);case B:return(e=Zl(24,n,t,a)).elementType=B,e.lanes=o,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case C:s=10;break e;case T:s=9;break e;case A:s=11;break e;case N:s=14;break e;case D:s=16,r=null;break e;case I:s=22;break e}throw Error(i(130,null==e?e:typeof e,""))}return(t=Zl(s,n,t,a)).elementType=e,t.type=r,t.lanes=o,t}function Wl(e,t,n,r){return(e=Zl(7,e,r,t)).lanes=n,e}function ql(e,t,n,r){return(e=Zl(23,e,r,t)).elementType=F,e.lanes=n,e}function Yl(e,t,n){return(e=Zl(6,e,null,t)).lanes=n,e}function Kl(e,t,n){return(t=Zl(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Xl(e,t,n){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=zt(0),this.expirationTimes=zt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=zt(0),this.mutableSourceEagerHydrationData=null}function Jl(e,t,n,r){var a=t.current,o=fl(),s=pl(a);e:if(n){t:{if(qe(n=n._reactInternals)!==n||1!==n.tag)throw Error(i(170));var l=n;do{switch(l.tag){case 3:l=l.stateNode.context;break t;case 1:if(ga(l.type)){l=l.stateNode.__reactInternalMemoizedMergedChildContext;break t}}l=l.return}while(null!==l);throw Error(i(171))}if(1===n.tag){var u=n.type;if(ga(u)){n=ya(n,u,l);break e}}n=l}else n=da;return null===t.context?t.context=n:t.pendingContext=n,(t=uo(o,s)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),co(a,t),hl(a,s,o),s}function eu(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function tu(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function nu(e,t){tu(e,t),(e=e.alternate)&&tu(e,t)}function ru(e,t,n){var r=null!=n&&null!=n.hydrationOptions&&n.hydrationOptions.mutableSources||null;if(n=new Xl(e,t,null!=n&&!0===n.hydrate),t=Zl(3,null,null,2===t?7:1===t?3:0),n.current=t,t.stateNode=n,so(t),e[Jr]=n.current,Pr(8===e.nodeType?e.parentNode:e),r)for(e=0;e<r.length;e++){var a=(t=r[e])._getVersion;a=a(t._source),null==n.mutableSourceEagerHydrationData?n.mutableSourceEagerHydrationData=[t,a]:n.mutableSourceEagerHydrationData.push(t,a)}this._internalRoot=n}function au(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function ou(e,t,n,r,a){var o=n._reactRootContainer;if(o){var i=o._internalRoot;if("function"==typeof a){var s=a;a=function(){var e=eu(i);s.call(e)}}Jl(t,i,e,a)}else{if(o=n._reactRootContainer=function(e,t){if(t||(t=!(!(t=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new ru(e,0,t?{hydrate:!0}:void 0)}(n,r),i=o._internalRoot,"function"==typeof a){var l=a;a=function(){var e=eu(i);l.call(e)}}El((function(){Jl(t,i,e,a)}))}return eu(i)}function iu(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!au(t))throw Error(i(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:S,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)}Ws=function(e,t,n){var r=t.lanes;if(null!==e)if(e.memoizedProps!==t.pendingProps||pa.current)Mi=!0;else{if(0==(n&r)){switch(Mi=!1,t.tag){case 3:Vi(t),Go();break;case 5:Ro(t);break;case 1:ga(t.type)&&wa(t);break;case 4:Do(t,t.stateNode.containerInfo);break;case 10:r=t.memoizedProps.value;var a=t.type._context;ca(Ka,a._currentValue),a._currentValue=r;break;case 13:if(null!==t.memoizedState)return 0!=(n&t.child.childLanes)?Xi(e,t,n):(ca(Fo,1&Fo.current),null!==(t=os(e,t,n))?t.sibling:null);ca(Fo,1&Fo.current);break;case 19:if(r=0!=(n&t.childLanes),0!=(64&e.flags)){if(r)return as(e,t,n);t.flags|=64}if(null!==(a=t.memoizedState)&&(a.rendering=null,a.tail=null,a.lastEffect=null),ca(Fo,Fo.current),r)break;return null;case 23:case 24:return t.lanes=0,zi(e,t,n)}return os(e,t,n)}Mi=0!=(16384&e.flags)}else Mi=!1;switch(t.lanes=0,t.tag){case 2:if(r=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,a=ma(t,fa.current),ao(t,n),a=ii(null,t,r,e,a,n),t.flags|=1,"object"==typeof a&&null!==a&&"function"==typeof a.render&&void 0===a.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,ga(r)){var o=!0;wa(t)}else o=!1;t.memoizedState=null!==a.state&&void 0!==a.state?a.state:null,so(t);var s=r.getDerivedStateFromProps;"function"==typeof s&&go(t,r,s,e),a.updater=bo,t.stateNode=a,a._reactInternals=t,Eo(t,r,e,n),t=Qi(null,t,r,!0,o,n)}else t.tag=0,Fi(null,t,a,n),t=t.child;return t;case 16:a=t.elementType;e:{switch(null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,a=(o=a._init)(a._payload),t.type=a,o=t.tag=function(e){if("function"==typeof e)return Ql(e)?1:0;if(null!=e){if((e=e.$$typeof)===A)return 11;if(e===N)return 14}return 2}(a),e=Ya(a,e),o){case 0:t=Hi(null,t,a,e,n);break e;case 1:t=Zi(null,t,a,e,n);break e;case 11:t=Bi(null,t,a,e,n);break e;case 14:t=ji(null,t,a,Ya(a.type,e),r,n);break e}throw Error(i(306,a,""))}return t;case 0:return r=t.type,a=t.pendingProps,Hi(e,t,r,a=t.elementType===r?a:Ya(r,a),n);case 1:return r=t.type,a=t.pendingProps,Zi(e,t,r,a=t.elementType===r?a:Ya(r,a),n);case 3:if(Vi(t),r=t.updateQueue,null===e||null===r)throw Error(i(282));if(r=t.pendingProps,a=null!==(a=t.memoizedState)?a.element:null,lo(e,t),po(t,r,null,n),(r=t.memoizedState.element)===a)Go(),t=os(e,t,n);else{if((o=(a=t.stateNode).hydrate)&&($o=Gr(t.stateNode.containerInfo.firstChild),jo=t,o=zo=!0),o){if(null!=(e=a.mutableSourceEagerHydrationData))for(a=0;a<e.length;a+=2)(o=e[a])._workInProgressVersionPrimary=e[a+1],Wo.push(o);for(n=Co(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|1024,n=n.sibling}else Fi(e,t,r,n),Go();t=t.child}return t;case 5:return Ro(t),null===e&&Zo(t),r=t.type,a=t.pendingProps,o=null!==e?e.memoizedProps:null,s=a.children,Hr(r,a)?s=null:null!==o&&Hr(r,o)&&(t.flags|=16),Ui(e,t),Fi(e,t,s,n),t.child;case 6:return null===e&&Zo(t),null;case 13:return Xi(e,t,n);case 4:return Do(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Lo(t,null,r,n):Fi(e,t,r,n),t.child;case 11:return r=t.type,a=t.pendingProps,Bi(e,t,r,a=t.elementType===r?a:Ya(r,a),n);case 7:return Fi(e,t,t.pendingProps,n),t.child;case 8:case 12:return Fi(e,t,t.pendingProps.children,n),t.child;case 10:e:{r=t.type._context,a=t.pendingProps,s=t.memoizedProps,o=a.value;var l=t.type._context;if(ca(Ka,l._currentValue),l._currentValue=o,null!==s)if(l=s.value,0===(o=ur(l,o)?0:0|("function"==typeof r._calculateChangedBits?r._calculateChangedBits(l,o):1073741823))){if(s.children===a.children&&!pa.current){t=os(e,t,n);break e}}else for(null!==(l=t.child)&&(l.return=t);null!==l;){var u=l.dependencies;if(null!==u){s=l.child;for(var c=u.firstContext;null!==c;){if(c.context===r&&0!=(c.observedBits&o)){1===l.tag&&((c=uo(-1,n&-n)).tag=2,co(l,c)),l.lanes|=n,null!==(c=l.alternate)&&(c.lanes|=n),ro(l.return,n),u.lanes|=n;break}c=c.next}}else s=10===l.tag&&l.type===t.type?null:l.child;if(null!==s)s.return=l;else for(s=l;null!==s;){if(s===t){s=null;break}if(null!==(l=s.sibling)){l.return=s.return,s=l;break}s=s.return}l=s}Fi(e,t,a.children,n),t=t.child}return t;case 9:return a=t.type,r=(o=t.pendingProps).children,ao(t,n),r=r(a=oo(a,o.unstable_observedBits)),t.flags|=1,Fi(e,t,r,n),t.child;case 14:return o=Ya(a=t.type,t.pendingProps),ji(e,t,a,o=Ya(a.type,o),r,n);case 15:return $i(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:Ya(r,a),null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,ga(r)?(e=!0,wa(t)):e=!1,ao(t,n),yo(t,r,a),Eo(t,r,a,n),Qi(null,t,r,!0,e,n);case 19:return as(e,t,n);case 23:case 24:return zi(e,t,n)}throw Error(i(156,t.tag))},ru.prototype.render=function(e){Jl(e,this._internalRoot,null,null)},ru.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;Jl(null,e,null,(function(){t[Jr]=null}))},et=function(e){13===e.tag&&(hl(e,4,fl()),nu(e,4))},tt=function(e){13===e.tag&&(hl(e,67108864,fl()),nu(e,67108864))},nt=function(e){if(13===e.tag){var t=fl(),n=pl(e);hl(e,n,t),nu(e,n)}},rt=function(e,t){return t()},Le=function(e,t,n){switch(t){case"input":if(ne(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=aa(r);if(!a)throw Error(i(90));K(r),ne(r,a)}}}break;case"textarea":ue(e,n);break;case"select":null!=(t=n.value)&&ie(e,!!n.multiple,t,!1)}},Ne=wl,De=function(e,t,n,r,a){var o=Ns;Ns|=4;try{return Qa(98,e.bind(null,t,n,r,a))}finally{0===(Ns=o)&&(Gs(),Ga())}},Ie=function(){0==(49&Ns)&&(function(){if(null!==al){var e=al;al=null,e.forEach((function(e){e.expiredLanes|=24&e.pendingLanes,gl(e,Ua())}))}Ga()}(),Rl())},Re=function(e,t){var n=Ns;Ns|=2;try{return e(t)}finally{0===(Ns=n)&&(Gs(),Ga())}};var su={Events:[na,ra,aa,Oe,Pe,Rl,{current:!1}]},lu={findFiberByHostInstance:ta,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},uu={bundleType:lu.bundleType,version:lu.version,rendererPackageName:lu.rendererPackageName,rendererConfig:lu.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:E.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Xe(e))?null:e.stateNode},findFiberByHostInstance:lu.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var cu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!cu.isDisabled&&cu.supportsFiber)try{ka=cu.inject(uu),Sa=cu}catch(me){}}t.hydrate=function(e,t,n){if(!au(t))throw Error(i(200));return ou(null,e,t,!0,n)}},3935:(e,t,n)=>{"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),e.exports=n(4448)},9590:e=>{var t="undefined"!=typeof Element,n="function"==typeof Map,r="function"==typeof Set,a="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;function o(e,i){if(e===i)return!0;if(e&&i&&"object"==typeof e&&"object"==typeof i){if(e.constructor!==i.constructor)return!1;var s,l,u,c;if(Array.isArray(e)){if((s=e.length)!=i.length)return!1;for(l=s;0!=l--;)if(!o(e[l],i[l]))return!1;return!0}if(n&&e instanceof Map&&i instanceof Map){if(e.size!==i.size)return!1;for(c=e.entries();!(l=c.next()).done;)if(!i.has(l.value[0]))return!1;for(c=e.entries();!(l=c.next()).done;)if(!o(l.value[1],i.get(l.value[0])))return!1;return!0}if(r&&e instanceof Set&&i instanceof Set){if(e.size!==i.size)return!1;for(c=e.entries();!(l=c.next()).done;)if(!i.has(l.value[0]))return!1;return!0}if(a&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(i)){if((s=e.length)!=i.length)return!1;for(l=s;0!=l--;)if(e[l]!==i[l])return!1;return!0}if(e.constructor===RegExp)return e.source===i.source&&e.flags===i.flags;if(e.valueOf!==Object.prototype.valueOf&&"function"==typeof e.valueOf&&"function"==typeof i.valueOf)return e.valueOf()===i.valueOf();if(e.toString!==Object.prototype.toString&&"function"==typeof e.toString&&"function"==typeof i.toString)return e.toString()===i.toString();if((s=(u=Object.keys(e)).length)!==Object.keys(i).length)return!1;for(l=s;0!=l--;)if(!Object.prototype.hasOwnProperty.call(i,u[l]))return!1;if(t&&e instanceof Element)return!1;for(l=s;0!=l--;)if(("_owner"!==u[l]&&"__v"!==u[l]&&"__o"!==u[l]||!e.$$typeof)&&!o(e[u[l]],i[u[l]]))return!1;return!0}return e!=e&&i!=i}e.exports=function(e,t){try{return o(e,t)}catch(n){if((n.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw n}}},405:(e,t,n)=>{"use strict";n.d(t,{B6:()=>Q,ql:()=>J});var r=n(7294),a=n(5697),o=n.n(a),i=n(9590),s=n.n(i),l=n(1143),u=n.n(l),c=n(6774),d=n.n(c);function f(){return f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},f.apply(this,arguments)}function p(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,h(e,t)}function h(e,t){return h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},h(e,t)}function m(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t.indexOf(n=o[r])>=0||(a[n]=e[n]);return a}var g={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title",FRAGMENT:"Symbol(react.fragment)"},b={rel:["amphtml","canonical","alternate"]},v={type:["application/ld+json"]},y={charset:"",name:["robots","description"],property:["og:type","og:title","og:url","og:image","og:image:alt","og:description","twitter:url","twitter:title","twitter:description","twitter:image","twitter:image:alt","twitter:card","twitter:site"]},w=Object.keys(g).map((function(e){return g[e]})),E={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},k=Object.keys(E).reduce((function(e,t){return e[E[t]]=t,e}),{}),S=function(e,t){for(var n=e.length-1;n>=0;n-=1){var r=e[n];if(Object.prototype.hasOwnProperty.call(r,t))return r[t]}return null},x=function(e){var t=S(e,g.TITLE),n=S(e,"titleTemplate");if(Array.isArray(t)&&(t=t.join("")),n&&t)return n.replace(/%s/g,(function(){return t}));var r=S(e,"defaultTitle");return t||r||void 0},_=function(e){return S(e,"onChangeClientState")||function(){}},L=function(e,t){return t.filter((function(t){return void 0!==t[e]})).map((function(t){return t[e]})).reduce((function(e,t){return f({},e,t)}),{})},C=function(e,t){return t.filter((function(e){return void 0!==e[g.BASE]})).map((function(e){return e[g.BASE]})).reverse().reduce((function(t,n){if(!t.length)for(var r=Object.keys(n),a=0;a<r.length;a+=1){var o=r[a].toLowerCase();if(-1!==e.indexOf(o)&&n[o])return t.concat(n)}return t}),[])},T=function(e,t,n){var r={};return n.filter((function(t){return!!Array.isArray(t[e])||(void 0!==t[e]&&console&&"function"==typeof console.warn&&console.warn("Helmet: "+e+' should be of type "Array". Instead found type "'+typeof t[e]+'"'),!1)})).map((function(t){return t[e]})).reverse().reduce((function(e,n){var a={};n.filter((function(e){for(var n,o=Object.keys(e),i=0;i<o.length;i+=1){var s=o[i],l=s.toLowerCase();-1===t.indexOf(l)||"rel"===n&&"canonical"===e[n].toLowerCase()||"rel"===l&&"stylesheet"===e[l].toLowerCase()||(n=l),-1===t.indexOf(s)||"innerHTML"!==s&&"cssText"!==s&&"itemprop"!==s||(n=s)}if(!n||!e[n])return!1;var u=e[n].toLowerCase();return r[n]||(r[n]={}),a[n]||(a[n]={}),!r[n][u]&&(a[n][u]=!0,!0)})).reverse().forEach((function(t){return e.push(t)}));for(var o=Object.keys(a),i=0;i<o.length;i+=1){var s=o[i],l=f({},r[s],a[s]);r[s]=l}return e}),[]).reverse()},A=function(e,t){if(Array.isArray(e)&&e.length)for(var n=0;n<e.length;n+=1)if(e[n][t])return!0;return!1},O=function(e){return Array.isArray(e)?e.join(""):e},P=function(e,t){return Array.isArray(e)?e.reduce((function(e,n){return function(e,t){for(var n=Object.keys(e),r=0;r<n.length;r+=1)if(t[n[r]]&&t[n[r]].includes(e[n[r]]))return!0;return!1}(n,t)?e.priority.push(n):e.default.push(n),e}),{priority:[],default:[]}):{default:e}},N=function(e,t){var n;return f({},e,((n={})[t]=void 0,n))},D=[g.NOSCRIPT,g.SCRIPT,g.STYLE],I=function(e,t){return void 0===t&&(t=!0),!1===t?String(e):String(e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")},R=function(e){return Object.keys(e).reduce((function(t,n){var r=void 0!==e[n]?n+'="'+e[n]+'"':""+n;return t?t+" "+r:r}),"")},M=function(e,t){return void 0===t&&(t={}),Object.keys(e).reduce((function(t,n){return t[E[n]||n]=e[n],t}),t)},F=function(e,t){return t.map((function(t,n){var a,o=((a={key:n})["data-rh"]=!0,a);return Object.keys(t).forEach((function(e){var n=E[e]||e;"innerHTML"===n||"cssText"===n?o.dangerouslySetInnerHTML={__html:t.innerHTML||t.cssText}:o[n]=t[e]})),r.createElement(e,o)}))},B=function(e,t,n){switch(e){case g.TITLE:return{toComponent:function(){return n=t.titleAttributes,(a={key:e=t.title})["data-rh"]=!0,o=M(n,a),[r.createElement(g.TITLE,o,e)];var e,n,a,o},toString:function(){return function(e,t,n,r){var a=R(n),o=O(t);return a?"<"+e+' data-rh="true" '+a+">"+I(o,r)+"</"+e+">":"<"+e+' data-rh="true">'+I(o,r)+"</"+e+">"}(e,t.title,t.titleAttributes,n)}};case"bodyAttributes":case"htmlAttributes":return{toComponent:function(){return M(t)},toString:function(){return R(t)}};default:return{toComponent:function(){return F(e,t)},toString:function(){return function(e,t,n){return t.reduce((function(t,r){var a=Object.keys(r).filter((function(e){return!("innerHTML"===e||"cssText"===e)})).reduce((function(e,t){var a=void 0===r[t]?t:t+'="'+I(r[t],n)+'"';return e?e+" "+a:a}),""),o=r.innerHTML||r.cssText||"",i=-1===D.indexOf(e);return t+"<"+e+' data-rh="true" '+a+(i?"/>":">"+o+"</"+e+">")}),"")}(e,t,n)}}}},j=function(e){var t=e.baseTag,n=e.bodyAttributes,r=e.encode,a=e.htmlAttributes,o=e.noscriptTags,i=e.styleTags,s=e.title,l=void 0===s?"":s,u=e.titleAttributes,c=e.linkTags,d=e.metaTags,f=e.scriptTags,p={toComponent:function(){},toString:function(){return""}};if(e.prioritizeSeoTags){var h=function(e){var t=e.linkTags,n=e.scriptTags,r=e.encode,a=P(e.metaTags,y),o=P(t,b),i=P(n,v);return{priorityMethods:{toComponent:function(){return[].concat(F(g.META,a.priority),F(g.LINK,o.priority),F(g.SCRIPT,i.priority))},toString:function(){return B(g.META,a.priority,r)+" "+B(g.LINK,o.priority,r)+" "+B(g.SCRIPT,i.priority,r)}},metaTags:a.default,linkTags:o.default,scriptTags:i.default}}(e);p=h.priorityMethods,c=h.linkTags,d=h.metaTags,f=h.scriptTags}return{priority:p,base:B(g.BASE,t,r),bodyAttributes:B("bodyAttributes",n,r),htmlAttributes:B("htmlAttributes",a,r),link:B(g.LINK,c,r),meta:B(g.META,d,r),noscript:B(g.NOSCRIPT,o,r),script:B(g.SCRIPT,f,r),style:B(g.STYLE,i,r),title:B(g.TITLE,{title:l,titleAttributes:u},r)}},$=[],z=function(e,t){var n=this;void 0===t&&(t="undefined"!=typeof document),this.instances=[],this.value={setHelmet:function(e){n.context.helmet=e},helmetInstances:{get:function(){return n.canUseDOM?$:n.instances},add:function(e){(n.canUseDOM?$:n.instances).push(e)},remove:function(e){var t=(n.canUseDOM?$:n.instances).indexOf(e);(n.canUseDOM?$:n.instances).splice(t,1)}}},this.context=e,this.canUseDOM=t,t||(e.helmet=j({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))},U=r.createContext({}),H=o().shape({setHelmet:o().func,helmetInstances:o().shape({get:o().func,add:o().func,remove:o().func})}),Z="undefined"!=typeof document,Q=function(e){function t(n){var r;return(r=e.call(this,n)||this).helmetData=new z(r.props.context,t.canUseDOM),r}return p(t,e),t.prototype.render=function(){return r.createElement(U.Provider,{value:this.helmetData.value},this.props.children)},t}(r.Component);Q.canUseDOM=Z,Q.propTypes={context:o().shape({helmet:o().shape()}),children:o().node.isRequired},Q.defaultProps={context:{}},Q.displayName="HelmetProvider";var V=function(e,t){var n,r=document.head||document.querySelector(g.HEAD),a=r.querySelectorAll(e+"[data-rh]"),o=[].slice.call(a),i=[];return t&&t.length&&t.forEach((function(t){var r=document.createElement(e);for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&("innerHTML"===a?r.innerHTML=t.innerHTML:"cssText"===a?r.styleSheet?r.styleSheet.cssText=t.cssText:r.appendChild(document.createTextNode(t.cssText)):r.setAttribute(a,void 0===t[a]?"":t[a]));r.setAttribute("data-rh","true"),o.some((function(e,t){return n=t,r.isEqualNode(e)}))?o.splice(n,1):i.push(r)})),o.forEach((function(e){return e.parentNode.removeChild(e)})),i.forEach((function(e){return r.appendChild(e)})),{oldTags:o,newTags:i}},G=function(e,t){var n=document.getElementsByTagName(e)[0];if(n){for(var r=n.getAttribute("data-rh"),a=r?r.split(","):[],o=[].concat(a),i=Object.keys(t),s=0;s<i.length;s+=1){var l=i[s],u=t[l]||"";n.getAttribute(l)!==u&&n.setAttribute(l,u),-1===a.indexOf(l)&&a.push(l);var c=o.indexOf(l);-1!==c&&o.splice(c,1)}for(var d=o.length-1;d>=0;d-=1)n.removeAttribute(o[d]);a.length===o.length?n.removeAttribute("data-rh"):n.getAttribute("data-rh")!==i.join(",")&&n.setAttribute("data-rh",i.join(","))}},W=function(e,t){var n=e.baseTag,r=e.htmlAttributes,a=e.linkTags,o=e.metaTags,i=e.noscriptTags,s=e.onChangeClientState,l=e.scriptTags,u=e.styleTags,c=e.title,d=e.titleAttributes;G(g.BODY,e.bodyAttributes),G(g.HTML,r),function(e,t){void 0!==e&&document.title!==e&&(document.title=O(e)),G(g.TITLE,t)}(c,d);var f={baseTag:V(g.BASE,n),linkTags:V(g.LINK,a),metaTags:V(g.META,o),noscriptTags:V(g.NOSCRIPT,i),scriptTags:V(g.SCRIPT,l),styleTags:V(g.STYLE,u)},p={},h={};Object.keys(f).forEach((function(e){var t=f[e],n=t.newTags,r=t.oldTags;n.length&&(p[e]=n),r.length&&(h[e]=f[e].oldTags)})),t&&t(),s(e,p,h)},q=null,Y=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return(t=e.call.apply(e,[this].concat(r))||this).rendered=!1,t}p(t,e);var n=t.prototype;return n.shouldComponentUpdate=function(e){return!d()(e,this.props)},n.componentDidUpdate=function(){this.emitChange()},n.componentWillUnmount=function(){this.props.context.helmetInstances.remove(this),this.emitChange()},n.emitChange=function(){var e,t,n=this.props.context,r=n.setHelmet,a=null,o=(e=n.helmetInstances.get().map((function(e){var t=f({},e.props);return delete t.context,t})),{baseTag:C(["href"],e),bodyAttributes:L("bodyAttributes",e),defer:S(e,"defer"),encode:S(e,"encodeSpecialCharacters"),htmlAttributes:L("htmlAttributes",e),linkTags:T(g.LINK,["rel","href"],e),metaTags:T(g.META,["name","charset","http-equiv","property","itemprop"],e),noscriptTags:T(g.NOSCRIPT,["innerHTML"],e),onChangeClientState:_(e),scriptTags:T(g.SCRIPT,["src","innerHTML"],e),styleTags:T(g.STYLE,["cssText"],e),title:x(e),titleAttributes:L("titleAttributes",e),prioritizeSeoTags:A(e,"prioritizeSeoTags")});Q.canUseDOM?(t=o,q&&cancelAnimationFrame(q),t.defer?q=requestAnimationFrame((function(){W(t,(function(){q=null}))})):(W(t),q=null)):j&&(a=j(o)),r(a)},n.init=function(){this.rendered||(this.rendered=!0,this.props.context.helmetInstances.add(this),this.emitChange())},n.render=function(){return this.init(),null},t}(r.Component);Y.propTypes={context:H.isRequired},Y.displayName="HelmetDispatcher";var K=["children"],X=["children"],J=function(e){function t(){return e.apply(this,arguments)||this}p(t,e);var n=t.prototype;return n.shouldComponentUpdate=function(e){return!s()(N(this.props,"helmetData"),N(e,"helmetData"))},n.mapNestedChildrenToProps=function(e,t){if(!t)return null;switch(e.type){case g.SCRIPT:case g.NOSCRIPT:return{innerHTML:t};case g.STYLE:return{cssText:t};default:throw new Error("<"+e.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")}},n.flattenArrayTypeChildren=function(e){var t,n=e.child,r=e.arrayTypeChildren;return f({},r,((t={})[n.type]=[].concat(r[n.type]||[],[f({},e.newChildProps,this.mapNestedChildrenToProps(n,e.nestedChildren))]),t))},n.mapObjectTypeChildren=function(e){var t,n,r=e.child,a=e.newProps,o=e.newChildProps,i=e.nestedChildren;switch(r.type){case g.TITLE:return f({},a,((t={})[r.type]=i,t.titleAttributes=f({},o),t));case g.BODY:return f({},a,{bodyAttributes:f({},o)});case g.HTML:return f({},a,{htmlAttributes:f({},o)});default:return f({},a,((n={})[r.type]=f({},o),n))}},n.mapArrayTypeChildrenToProps=function(e,t){var n=f({},t);return Object.keys(e).forEach((function(t){var r;n=f({},n,((r={})[t]=e[t],r))})),n},n.warnOnInvalidChildren=function(e,t){return u()(w.some((function(t){return e.type===t})),"function"==typeof e.type?"You may be attempting to nest <Helmet> components within each other, which is not allowed. Refer to our API for more information.":"Only elements types "+w.join(", ")+" are allowed. Helmet does not support rendering <"+e.type+"> elements. Refer to our API for more information."),u()(!t||"string"==typeof t||Array.isArray(t)&&!t.some((function(e){return"string"!=typeof e})),"Helmet expects a string as a child of <"+e.type+">. Did you forget to wrap your children in braces? ( <"+e.type+">{``}</"+e.type+"> ) Refer to our API for more information."),!0},n.mapChildrenToProps=function(e,t){var n=this,a={};return r.Children.forEach(e,(function(e){if(e&&e.props){var r=e.props,o=r.children,i=m(r,K),s=Object.keys(i).reduce((function(e,t){return e[k[t]||t]=i[t],e}),{}),l=e.type;switch("symbol"==typeof l?l=l.toString():n.warnOnInvalidChildren(e,o),l){case g.FRAGMENT:t=n.mapChildrenToProps(o,t);break;case g.LINK:case g.META:case g.NOSCRIPT:case g.SCRIPT:case g.STYLE:a=n.flattenArrayTypeChildren({child:e,arrayTypeChildren:a,newChildProps:s,nestedChildren:o});break;default:t=n.mapObjectTypeChildren({child:e,newProps:t,newChildProps:s,nestedChildren:o})}}})),this.mapArrayTypeChildrenToProps(a,t)},n.render=function(){var e=this.props,t=e.children,n=m(e,X),a=f({},n),o=n.helmetData;return t&&(a=this.mapChildrenToProps(t,a)),!o||o instanceof z||(o=new z(o.context,o.instances)),o?r.createElement(Y,f({},a,{context:o.value,helmetData:void 0})):r.createElement(U.Consumer,null,(function(e){return r.createElement(Y,f({},a,{context:e}))}))},t}(r.Component);J.propTypes={base:o().object,bodyAttributes:o().object,children:o().oneOfType([o().arrayOf(o().node),o().node]),defaultTitle:o().string,defer:o().bool,encodeSpecialCharacters:o().bool,htmlAttributes:o().object,link:o().arrayOf(o().object),meta:o().arrayOf(o().object),noscript:o().arrayOf(o().object),onChangeClientState:o().func,script:o().arrayOf(o().object),style:o().arrayOf(o().object),title:o().string,titleAttributes:o().object,titleTemplate:o().string,prioritizeSeoTags:o().bool,helmetData:o().object},J.defaultProps={defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1},J.displayName="Helmet"},9921:(e,t)=>{"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,a=n?Symbol.for("react.portal"):60106,o=n?Symbol.for("react.fragment"):60107,i=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,u=n?Symbol.for("react.context"):60110,c=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,f=n?Symbol.for("react.forward_ref"):60112,p=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,b=n?Symbol.for("react.block"):60121,v=n?Symbol.for("react.fundamental"):60117,y=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;function E(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case c:case d:case o:case s:case i:case p:return e;default:switch(e=e&&e.$$typeof){case u:case f:case g:case m:case l:return e;default:return t}}case a:return t}}}function k(e){return E(e)===d}t.AsyncMode=c,t.ConcurrentMode=d,t.ContextConsumer=u,t.ContextProvider=l,t.Element=r,t.ForwardRef=f,t.Fragment=o,t.Lazy=g,t.Memo=m,t.Portal=a,t.Profiler=s,t.StrictMode=i,t.Suspense=p,t.isAsyncMode=function(e){return k(e)||E(e)===c},t.isConcurrentMode=k,t.isContextConsumer=function(e){return E(e)===u},t.isContextProvider=function(e){return E(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return E(e)===f},t.isFragment=function(e){return E(e)===o},t.isLazy=function(e){return E(e)===g},t.isMemo=function(e){return E(e)===m},t.isPortal=function(e){return E(e)===a},t.isProfiler=function(e){return E(e)===s},t.isStrictMode=function(e){return E(e)===i},t.isSuspense=function(e){return E(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===d||e===s||e===i||e===p||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===l||e.$$typeof===u||e.$$typeof===f||e.$$typeof===v||e.$$typeof===y||e.$$typeof===w||e.$$typeof===b)},t.typeOf=E},9864:(e,t,n)=>{"use strict";e.exports=n(9921)},8356:(e,t,n)=>{"use strict";function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function a(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(){return i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(this,arguments)}var s=n(7294),l=n(5697),u=[],c=[];function d(e){var t=e(),n={loading:!0,loaded:null,error:null};return n.promise=t.then((function(e){return n.loading=!1,n.loaded=e,e})).catch((function(e){throw n.loading=!1,n.error=e,e})),n}function f(e){var t={loading:!1,loaded:{},error:null},n=[];try{Object.keys(e).forEach((function(r){var a=d(e[r]);a.loading?t.loading=!0:(t.loaded[r]=a.loaded,t.error=a.error),n.push(a.promise),a.promise.then((function(e){t.loaded[r]=e})).catch((function(e){t.error=e}))}))}catch(r){t.error=r}return t.promise=Promise.all(n).then((function(e){return t.loading=!1,e})).catch((function(e){throw t.loading=!1,e})),t}function p(e,t){return s.createElement((n=e)&&n.__esModule?n.default:n,t);var n}function h(e,t){var d,f;if(!t.loading)throw new Error("react-loadable requires a `loading` component");var h=i({loader:null,loading:null,delay:200,timeout:null,render:p,webpack:null,modules:null},t),m=null;function g(){return m||(m=e(h.loader)),m.promise}return u.push(g),"function"==typeof h.webpack&&c.push((function(){if((0,h.webpack)().every((function(e){return void 0!==e&&void 0!==n.m[e]})))return g()})),f=d=function(t){function n(n){var r;return o(a(a(r=t.call(this,n)||this)),"retry",(function(){r.setState({error:null,loading:!0,timedOut:!1}),m=e(h.loader),r._loadModule()})),g(),r.state={error:m.error,pastDelay:!1,timedOut:!1,loading:m.loading,loaded:m.loaded},r}r(n,t),n.preload=function(){return g()};var i=n.prototype;return i.UNSAFE_componentWillMount=function(){this._loadModule()},i.componentDidMount=function(){this._mounted=!0},i._loadModule=function(){var e=this;if(this.context.loadable&&Array.isArray(h.modules)&&h.modules.forEach((function(t){e.context.loadable.report(t)})),m.loading){var t=function(t){e._mounted&&e.setState(t)};"number"==typeof h.delay&&(0===h.delay?this.setState({pastDelay:!0}):this._delay=setTimeout((function(){t({pastDelay:!0})}),h.delay)),"number"==typeof h.timeout&&(this._timeout=setTimeout((function(){t({timedOut:!0})}),h.timeout));var n=function(){t({error:m.error,loaded:m.loaded,loading:m.loading}),e._clearTimeouts()};m.promise.then((function(){return n(),null})).catch((function(e){return n(),null}))}},i.componentWillUnmount=function(){this._mounted=!1,this._clearTimeouts()},i._clearTimeouts=function(){clearTimeout(this._delay),clearTimeout(this._timeout)},i.render=function(){return this.state.loading||this.state.error?s.createElement(h.loading,{isLoading:this.state.loading,pastDelay:this.state.pastDelay,timedOut:this.state.timedOut,error:this.state.error,retry:this.retry}):this.state.loaded?h.render(this.state.loaded,this.props):null},n}(s.Component),o(d,"contextTypes",{loadable:l.shape({report:l.func.isRequired})}),f}function m(e){return h(d,e)}m.Map=function(e){if("function"!=typeof e.render)throw new Error("LoadableMap requires a `render(loaded, props)` function");return h(f,e)};var g=function(e){function t(){return e.apply(this,arguments)||this}r(t,e);var n=t.prototype;return n.getChildContext=function(){return{loadable:{report:this.props.report}}},n.render=function(){return s.Children.only(this.props.children)},t}(s.Component);function b(e){for(var t=[];e.length;){var n=e.pop();t.push(n())}return Promise.all(t).then((function(){if(e.length)return b(e)}))}o(g,"propTypes",{report:l.func.isRequired}),o(g,"childContextTypes",{loadable:l.shape({report:l.func.isRequired}).isRequired}),m.Capture=g,m.preloadAll=function(){return new Promise((function(e,t){b(u).then(e,t)}))},m.preloadReady=function(){return new Promise((function(e,t){b(c).then(e,e)}))},e.exports=m},8790:(e,t,n)=>{"use strict";n.d(t,{H:()=>s,f:()=>i});var r=n(6550),a=n(7462),o=n(7294);function i(e,t,n){return void 0===n&&(n=[]),e.some((function(e){var a=e.path?(0,r.LX)(t,e):n.length?n[n.length-1].match:r.F0.computeRootMatch(t);return a&&(n.push({route:e,match:a}),e.routes&&i(e.routes,t,n)),a})),n}function s(e,t,n){return void 0===t&&(t={}),void 0===n&&(n={}),e?o.createElement(r.rs,n,e.map((function(e,n){return o.createElement(r.AW,{key:e.key||n,path:e.path,exact:e.exact,strict:e.strict,render:function(n){return e.render?e.render((0,a.Z)({},n,{},t,{route:e})):o.createElement(e.component,(0,a.Z)({},n,t,{route:e}))}})}))):null}},3727:(e,t,n)=>{"use strict";n.d(t,{OL:()=>y,VK:()=>c,rU:()=>g});var r=n(6550),a=n(5068),o=n(7294),i=n(9318),s=n(7462),l=n(3366),u=n(8776),c=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return(t=e.call.apply(e,[this].concat(r))||this).history=(0,i.lX)(t.props),t}return(0,a.Z)(t,e),t.prototype.render=function(){return o.createElement(r.F0,{history:this.history,children:this.props.children})},t}(o.Component);o.Component;var d=function(e,t){return"function"==typeof e?e(t):e},f=function(e,t){return"string"==typeof e?(0,i.ob)(e,null,null,t):e},p=function(e){return e},h=o.forwardRef;void 0===h&&(h=p);var m=h((function(e,t){var n=e.innerRef,r=e.navigate,a=e.onClick,i=(0,l.Z)(e,["innerRef","navigate","onClick"]),u=i.target,c=(0,s.Z)({},i,{onClick:function(e){try{a&&a(e)}catch(t){throw e.preventDefault(),t}e.defaultPrevented||0!==e.button||u&&"_self"!==u||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)||(e.preventDefault(),r())}});return c.ref=p!==h&&t||n,o.createElement("a",c)}));var g=h((function(e,t){var n=e.component,a=void 0===n?m:n,c=e.replace,g=e.to,b=e.innerRef,v=(0,l.Z)(e,["component","replace","to","innerRef"]);return o.createElement(r.s6.Consumer,null,(function(e){e||(0,u.Z)(!1);var n=e.history,r=f(d(g,e.location),e.location),l=r?n.createHref(r):"",m=(0,s.Z)({},v,{href:l,navigate:function(){var t=d(g,e.location),r=(0,i.Ep)(e.location)===(0,i.Ep)(f(t));(c||r?n.replace:n.push)(t)}});return p!==h?m.ref=t||b:m.innerRef=b,o.createElement(a,m)}))})),b=function(e){return e},v=o.forwardRef;void 0===v&&(v=b);var y=v((function(e,t){var n=e["aria-current"],a=void 0===n?"page":n,i=e.activeClassName,c=void 0===i?"active":i,p=e.activeStyle,h=e.className,m=e.exact,y=e.isActive,w=e.location,E=e.sensitive,k=e.strict,S=e.style,x=e.to,_=e.innerRef,L=(0,l.Z)(e,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","sensitive","strict","style","to","innerRef"]);return o.createElement(r.s6.Consumer,null,(function(e){e||(0,u.Z)(!1);var n=w||e.location,i=f(d(x,n),n),l=i.pathname,C=l&&l.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),T=C?(0,r.LX)(n.pathname,{path:C,exact:m,sensitive:E,strict:k}):null,A=!!(y?y(T,n):T),O="function"==typeof h?h(A):h,P="function"==typeof S?S(A):S;A&&(O=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter((function(e){return e})).join(" ")}(O,c),P=(0,s.Z)({},P,p));var N=(0,s.Z)({"aria-current":A&&a||null,className:O,style:P,to:i},L);return b!==v?N.ref=t||_:N.innerRef=_,o.createElement(g,N)}))}))},6550:(e,t,n)=>{"use strict";n.d(t,{AW:()=>x,F0:()=>y,LX:()=>S,TH:()=>D,k6:()=>N,rs:()=>O,s6:()=>v});var r=n(5068),a=n(7294),o=n(5697),i=n.n(o),s=n(9318),l=n(8776),u=n(7462),c=n(4779),d=n.n(c),f=(n(9864),n(3366)),p=(n(8679),1073741823),h="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:{};var m=a.createContext||function(e,t){var n,o,s="__create-react-context-"+function(){var e="__global_unique_id__";return h[e]=(h[e]||0)+1}()+"__",l=function(e){function n(){for(var t,n,r,a=arguments.length,o=new Array(a),i=0;i<a;i++)o[i]=arguments[i];return(t=e.call.apply(e,[this].concat(o))||this).emitter=(n=t.props.value,r=[],{on:function(e){r.push(e)},off:function(e){r=r.filter((function(t){return t!==e}))},get:function(){return n},set:function(e,t){n=e,r.forEach((function(e){return e(n,t)}))}}),t}(0,r.Z)(n,e);var a=n.prototype;return a.getChildContext=function(){var e;return(e={})[s]=this.emitter,e},a.componentWillReceiveProps=function(e){if(this.props.value!==e.value){var n,r=this.props.value,a=e.value;((o=r)===(i=a)?0!==o||1/o==1/i:o!=o&&i!=i)?n=0:(n="function"==typeof t?t(r,a):p,0!==(n|=0)&&this.emitter.set(e.value,n))}var o,i},a.render=function(){return this.props.children},n}(a.Component);l.childContextTypes=((n={})[s]=i().object.isRequired,n);var u=function(t){function n(){for(var e,n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return(e=t.call.apply(t,[this].concat(r))||this).observedBits=void 0,e.state={value:e.getValue()},e.onUpdate=function(t,n){0!=((0|e.observedBits)&n)&&e.setState({value:e.getValue()})},e}(0,r.Z)(n,t);var a=n.prototype;return a.componentWillReceiveProps=function(e){var t=e.observedBits;this.observedBits=null==t?p:t},a.componentDidMount=function(){this.context[s]&&this.context[s].on(this.onUpdate);var e=this.props.observedBits;this.observedBits=null==e?p:e},a.componentWillUnmount=function(){this.context[s]&&this.context[s].off(this.onUpdate)},a.getValue=function(){return this.context[s]?this.context[s].get():e},a.render=function(){return(e=this.props.children,Array.isArray(e)?e[0]:e)(this.state.value);var e},n}(a.Component);return u.contextTypes=((o={})[s]=i().object,o),{Provider:l,Consumer:u}},g=function(e){var t=m();return t.displayName=e,t},b=g("Router-History"),v=g("Router"),y=function(e){function t(t){var n;return(n=e.call(this,t)||this).state={location:t.history.location},n._isMounted=!1,n._pendingLocation=null,t.staticContext||(n.unlisten=t.history.listen((function(e){n._pendingLocation=e}))),n}(0,r.Z)(t,e),t.computeRootMatch=function(e){return{path:"/",url:"/",params:{},isExact:"/"===e}};var n=t.prototype;return n.componentDidMount=function(){var e=this;this._isMounted=!0,this.unlisten&&this.unlisten(),this.props.staticContext||(this.unlisten=this.props.history.listen((function(t){e._isMounted&&e.setState({location:t})}))),this._pendingLocation&&this.setState({location:this._pendingLocation})},n.componentWillUnmount=function(){this.unlisten&&(this.unlisten(),this._isMounted=!1,this._pendingLocation=null)},n.render=function(){return a.createElement(v.Provider,{value:{history:this.props.history,location:this.state.location,match:t.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}},a.createElement(b.Provider,{children:this.props.children||null,value:this.props.history}))},t}(a.Component);a.Component;a.Component;var w={},E=1e4,k=0;function S(e,t){void 0===t&&(t={}),("string"==typeof t||Array.isArray(t))&&(t={path:t});var n=t,r=n.path,a=n.exact,o=void 0!==a&&a,i=n.strict,s=void 0!==i&&i,l=n.sensitive,u=void 0!==l&&l;return[].concat(r).reduce((function(t,n){if(!n&&""!==n)return null;if(t)return t;var r=function(e,t){var n=""+t.end+t.strict+t.sensitive,r=w[n]||(w[n]={});if(r[e])return r[e];var a=[],o={regexp:d()(e,a,t),keys:a};return k<E&&(r[e]=o,k++),o}(n,{end:o,strict:s,sensitive:u}),a=r.regexp,i=r.keys,l=a.exec(e);if(!l)return null;var c=l[0],f=l.slice(1),p=e===c;return o&&!p?null:{path:n,url:"/"===n&&""===c?"/":c,isExact:p,params:i.reduce((function(e,t,n){return e[t.name]=f[n],e}),{})}}),null)}var x=function(e){function t(){return e.apply(this,arguments)||this}return(0,r.Z)(t,e),t.prototype.render=function(){var e=this;return a.createElement(v.Consumer,null,(function(t){t||(0,l.Z)(!1);var n=e.props.location||t.location,r=e.props.computedMatch?e.props.computedMatch:e.props.path?S(n.pathname,e.props):t.match,o=(0,u.Z)({},t,{location:n,match:r}),i=e.props,s=i.children,c=i.component,d=i.render;return Array.isArray(s)&&function(e){return 0===a.Children.count(e)}(s)&&(s=null),a.createElement(v.Provider,{value:o},o.match?s?"function"==typeof s?s(o):s:c?a.createElement(c,o):d?d(o):null:"function"==typeof s?s(o):null)}))},t}(a.Component);function _(e){return"/"===e.charAt(0)?e:"/"+e}function L(e,t){if(!e)return t;var n=_(e);return 0!==t.pathname.indexOf(n)?t:(0,u.Z)({},t,{pathname:t.pathname.substr(n.length)})}function C(e){return"string"==typeof e?e:(0,s.Ep)(e)}function T(e){return function(){(0,l.Z)(!1)}}function A(){}a.Component;var O=function(e){function t(){return e.apply(this,arguments)||this}return(0,r.Z)(t,e),t.prototype.render=function(){var e=this;return a.createElement(v.Consumer,null,(function(t){t||(0,l.Z)(!1);var n,r,o=e.props.location||t.location;return a.Children.forEach(e.props.children,(function(e){if(null==r&&a.isValidElement(e)){n=e;var i=e.props.path||e.props.from;r=i?S(o.pathname,(0,u.Z)({},e.props,{path:i})):t.match}})),r?a.cloneElement(n,{location:o,computedMatch:r}):null}))},t}(a.Component);var P=a.useContext;function N(){return P(b)}function D(){return P(v).location}},2408:(e,t,n)=>{"use strict";var r=n(7418),a=60103,o=60106;t.Fragment=60107,t.StrictMode=60108,t.Profiler=60114;var i=60109,s=60110,l=60112;t.Suspense=60113;var u=60115,c=60116;if("function"==typeof Symbol&&Symbol.for){var d=Symbol.for;a=d("react.element"),o=d("react.portal"),t.Fragment=d("react.fragment"),t.StrictMode=d("react.strict_mode"),t.Profiler=d("react.profiler"),i=d("react.provider"),s=d("react.context"),l=d("react.forward_ref"),t.Suspense=d("react.suspense"),u=d("react.memo"),c=d("react.lazy")}var f="function"==typeof Symbol&&Symbol.iterator;function p(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m={};function g(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||h}function b(){}function v(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||h}g.prototype.isReactComponent={},g.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(p(85));this.updater.enqueueSetState(this,e,t,"setState")},g.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},b.prototype=g.prototype;var y=v.prototype=new b;y.constructor=v,r(y,g.prototype),y.isPureReactComponent=!0;var w={current:null},E=Object.prototype.hasOwnProperty,k={key:!0,ref:!0,__self:!0,__source:!0};function S(e,t,n){var r,o={},i=null,s=null;if(null!=t)for(r in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(i=""+t.key),t)E.call(t,r)&&!k.hasOwnProperty(r)&&(o[r]=t[r]);var l=arguments.length-2;if(1===l)o.children=n;else if(1<l){for(var u=Array(l),c=0;c<l;c++)u[c]=arguments[c+2];o.children=u}if(e&&e.defaultProps)for(r in l=e.defaultProps)void 0===o[r]&&(o[r]=l[r]);return{$$typeof:a,type:e,key:i,ref:s,props:o,_owner:w.current}}function x(e){return"object"==typeof e&&null!==e&&e.$$typeof===a}var _=/\/+/g;function L(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function C(e,t,n,r,i){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var l=!1;if(null===e)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case a:case o:l=!0}}if(l)return i=i(l=e),e=""===r?"."+L(l,0):r,Array.isArray(i)?(n="",null!=e&&(n=e.replace(_,"$&/")+"/"),C(i,t,n,"",(function(e){return e}))):null!=i&&(x(i)&&(i=function(e,t){return{$$typeof:a,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(i,n+(!i.key||l&&l.key===i.key?"":(""+i.key).replace(_,"$&/")+"/")+e)),t.push(i)),1;if(l=0,r=""===r?".":r+":",Array.isArray(e))for(var u=0;u<e.length;u++){var c=r+L(s=e[u],u);l+=C(s,t,n,c,i)}else if(c=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=f&&e[f]||e["@@iterator"])?e:null}(e),"function"==typeof c)for(e=c.call(e),u=0;!(s=e.next()).done;)l+=C(s=s.value,t,n,c=r+L(s,u++),i);else if("object"===s)throw t=""+e,Error(p(31,"[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t));return l}function T(e,t,n){if(null==e)return e;var r=[],a=0;return C(e,r,"","",(function(e){return t.call(n,e,a++)})),r}function A(e){if(-1===e._status){var t=e._result;t=t(),e._status=0,e._result=t,t.then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)}))}if(1===e._status)return e._result;throw e._result}var O={current:null};function P(){var e=O.current;if(null===e)throw Error(p(321));return e}var N={ReactCurrentDispatcher:O,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:w,IsSomeRendererActing:{current:!1},assign:r};t.Children={map:T,forEach:function(e,t,n){T(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return T(e,(function(){t++})),t},toArray:function(e){return T(e,(function(e){return e}))||[]},only:function(e){if(!x(e))throw Error(p(143));return e}},t.Component=g,t.PureComponent=v,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=N,t.cloneElement=function(e,t,n){if(null==e)throw Error(p(267,e));var o=r({},e.props),i=e.key,s=e.ref,l=e._owner;if(null!=t){if(void 0!==t.ref&&(s=t.ref,l=w.current),void 0!==t.key&&(i=""+t.key),e.type&&e.type.defaultProps)var u=e.type.defaultProps;for(c in t)E.call(t,c)&&!k.hasOwnProperty(c)&&(o[c]=void 0===t[c]&&void 0!==u?u[c]:t[c])}var c=arguments.length-2;if(1===c)o.children=n;else if(1<c){u=Array(c);for(var d=0;d<c;d++)u[d]=arguments[d+2];o.children=u}return{$$typeof:a,type:e.type,key:i,ref:s,props:o,_owner:l}},t.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:s,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:i,_context:e},e.Consumer=e},t.createElement=S,t.createFactory=function(e){var t=S.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:l,render:e}},t.isValidElement=x,t.lazy=function(e){return{$$typeof:c,_payload:{_status:-1,_result:e},_init:A}},t.memo=function(e,t){return{$$typeof:u,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return P().useCallback(e,t)},t.useContext=function(e,t){return P().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return P().useEffect(e,t)},t.useImperativeHandle=function(e,t,n){return P().useImperativeHandle(e,t,n)},t.useLayoutEffect=function(e,t){return P().useLayoutEffect(e,t)},t.useMemo=function(e,t){return P().useMemo(e,t)},t.useReducer=function(e,t,n){return P().useReducer(e,t,n)},t.useRef=function(e){return P().useRef(e)},t.useState=function(e){return P().useState(e)},t.version="17.0.2"},7294:(e,t,n)=>{"use strict";e.exports=n(2408)},53:(e,t)=>{"use strict";var n,r,a,o;if("object"==typeof performance&&"function"==typeof performance.now){var i=performance;t.unstable_now=function(){return i.now()}}else{var s=Date,l=s.now();t.unstable_now=function(){return s.now()-l}}if("undefined"==typeof window||"function"!=typeof MessageChannel){var u=null,c=null,d=function(){if(null!==u)try{var e=t.unstable_now();u(!0,e),u=null}catch(n){throw setTimeout(d,0),n}};n=function(e){null!==u?setTimeout(n,0,e):(u=e,setTimeout(d,0))},r=function(e,t){c=setTimeout(e,t)},a=function(){clearTimeout(c)},t.unstable_shouldYield=function(){return!1},o=t.unstable_forceFrameRate=function(){}}else{var f=window.setTimeout,p=window.clearTimeout;if("undefined"!=typeof console){var h=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),"function"!=typeof h&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var m=!1,g=null,b=-1,v=5,y=0;t.unstable_shouldYield=function(){return t.unstable_now()>=y},o=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):v=0<e?Math.floor(1e3/e):5};var w=new MessageChannel,E=w.port2;w.port1.onmessage=function(){if(null!==g){var e=t.unstable_now();y=e+v;try{g(!0,e)?E.postMessage(null):(m=!1,g=null)}catch(n){throw E.postMessage(null),n}}else m=!1},n=function(e){g=e,m||(m=!0,E.postMessage(null))},r=function(e,n){b=f((function(){e(t.unstable_now())}),n)},a=function(){p(b),b=-1}}function k(e,t){var n=e.length;e.push(t);e:for(;;){var r=n-1>>>1,a=e[r];if(!(void 0!==a&&0<_(a,t)))break e;e[r]=t,e[n]=a,n=r}}function S(e){return void 0===(e=e[0])?null:e}function x(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,a=e.length;r<a;){var o=2*(r+1)-1,i=e[o],s=o+1,l=e[s];if(void 0!==i&&0>_(i,n))void 0!==l&&0>_(l,i)?(e[r]=l,e[s]=n,r=s):(e[r]=i,e[o]=n,r=o);else{if(!(void 0!==l&&0>_(l,n)))break e;e[r]=l,e[s]=n,r=s}}}return t}return null}function _(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var L=[],C=[],T=1,A=null,O=3,P=!1,N=!1,D=!1;function I(e){for(var t=S(C);null!==t;){if(null===t.callback)x(C);else{if(!(t.startTime<=e))break;x(C),t.sortIndex=t.expirationTime,k(L,t)}t=S(C)}}function R(e){if(D=!1,I(e),!N)if(null!==S(L))N=!0,n(M);else{var t=S(C);null!==t&&r(R,t.startTime-e)}}function M(e,n){N=!1,D&&(D=!1,a()),P=!0;var o=O;try{for(I(n),A=S(L);null!==A&&(!(A.expirationTime>n)||e&&!t.unstable_shouldYield());){var i=A.callback;if("function"==typeof i){A.callback=null,O=A.priorityLevel;var s=i(A.expirationTime<=n);n=t.unstable_now(),"function"==typeof s?A.callback=s:A===S(L)&&x(L),I(n)}else x(L);A=S(L)}if(null!==A)var l=!0;else{var u=S(C);null!==u&&r(R,u.startTime-n),l=!1}return l}finally{A=null,O=o,P=!1}}var F=o;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){N||P||(N=!0,n(M))},t.unstable_getCurrentPriorityLevel=function(){return O},t.unstable_getFirstCallbackNode=function(){return S(L)},t.unstable_next=function(e){switch(O){case 1:case 2:case 3:var t=3;break;default:t=O}var n=O;O=t;try{return e()}finally{O=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=F,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=O;O=e;try{return t()}finally{O=n}},t.unstable_scheduleCallback=function(e,o,i){var s=t.unstable_now();switch("object"==typeof i&&null!==i?i="number"==typeof(i=i.delay)&&0<i?s+i:s:i=s,e){case 1:var l=-1;break;case 2:l=250;break;case 5:l=1073741823;break;case 4:l=1e4;break;default:l=5e3}return e={id:T++,callback:o,priorityLevel:e,startTime:i,expirationTime:l=i+l,sortIndex:-1},i>s?(e.sortIndex=i,k(C,e),null===S(L)&&e===S(C)&&(D?a():D=!0,r(R,i-s))):(e.sortIndex=l,k(L,e),N||P||(N=!0,n(M))),e},t.unstable_wrapCallback=function(e){var t=O;return function(){var n=O;O=t;try{return e.apply(this,arguments)}finally{O=n}}}},3840:(e,t,n)=>{"use strict";e.exports=n(53)},6774:e=>{e.exports=function(e,t,n,r){var a=n?n.call(r,e,t):void 0;if(void 0!==a)return!!a;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var o=Object.keys(e),i=Object.keys(t);if(o.length!==i.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),l=0;l<o.length;l++){var u=o[l];if(!s(u))return!1;var c=e[u],d=t[u];if(!1===(a=n?n.call(r,c,d,u):void 0)||void 0===a&&c!==d)return!1}return!0}},3250:(e,t,n)=>{"use strict";var r=n(7294);var a="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=r.useState,i=r.useEffect,s=r.useLayoutEffect,l=r.useDebugValue;function u(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!a(e,n)}catch(r){return!0}}var c="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=o({inst:{value:n,getSnapshot:t}}),a=r[0].inst,c=r[1];return s((function(){a.value=n,a.getSnapshot=t,u(a)&&c({inst:a})}),[e,n,t]),i((function(){return u(a)&&c({inst:a}),e((function(){u(a)&&c({inst:a})}))}),[e]),l(n),n};void 0!==r.useSyncExternalStore&&r.useSyncExternalStore},1688:(e,t,n)=>{"use strict";n(3250)},6809:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r={customFields:{webpack:{}},title:"\u57f9\u6d0b\u7684\u7b14\u8bb0\u672c\ud83d\udcd2",favicon:"img/rockstar-games.svg",url:"https://bonjour-npy.github.io",baseUrl:"/en/",organizationName:"bonjour-npy",projectName:"bonjour-npy.github.io",deploymentBranch:"gh-pages",onBrokenLinks:"throw",onBrokenMarkdownLinks:"warn",i18n:{defaultLocale:"zh-Hans",locales:["en","zh-Hans"],path:"i18n",localeConfigs:{}},presets:[["classic",{docs:{remarkPlugins:[null],rehypePlugins:[null],sidebarPath:"C:\\External\\bonjour-npy.github.io\\sidebars.js"},blog:{showReadingTime:!1,remarkPlugins:[null],rehypePlugins:[null]},theme:{customCss:["C:\\External\\bonjour-npy.github.io\\src\\css\\custom.css","C:\\External\\bonjour-npy.github.io\\src\\css\\header.css","C:\\External\\bonjour-npy.github.io\\src\\css\\fonts.css"]}}]],stylesheets:[{href:"https://cdn.jsdelivr.net/npm/katex@0.13.24/dist/katex.min.css",type:"text/css",integrity:"sha384-odtC+0UGzzFL/6PNoE8rX/SPcQDXBJ+uRepguP4QkPCm2LBxH3FA3y+fKSiJ+AmM",crossorigin:"anonymous"}],plugins:[["C:\\External\\bonjour-npy.github.io\\node_modules\\@easyops-cn\\docusaurus-search-local\\dist\\server\\server\\index.js",{hashed:!0,language:["en"]}]],themeConfig:{image:"./static/img/intro.png",announcementBar:{id:"announcementBar-3",content:"\u6c42\u5b9e\u6c42\u771f\uff0c\u5927\u6c14\u5927\u4e3a",isCloseable:!1},docs:{sidebar:{hideable:!0,autoCollapseCategories:!1},versionPersistence:"localStorage"},colorMode:{defaultMode:"light",disableSwitch:!0,respectPrefersColorScheme:!1},tableOfContents:{minHeadingLevel:2,maxHeadingLevel:5},navbar:{hideOnScroll:!1,title:"\u57f9\u6d0b\u7684\u7b14\u8bb0\u672c",logo:{alt:"My Site Logo",src:"img/UESTC_logo.png"},items:[{to:"/docs/Deep-Learning/intro",label:"\ud83e\udd16\u6df1\u5ea6\u5b66\u4e60",position:"left"},{to:"/docs/Tui-Mian/intro",label:"\ud83e\udd21\u63a8\u514d",position:"left"},{to:"/docs/Algorithms/intro",label:"\ud83c\udfb0\u7b97\u6cd5",position:"left"},{to:"/docs/Curriculum/intro",label:"\ud83d\udcd6\u8bfe\u7a0b\u5b66\u4e60",position:"left"},{to:"/docs/Others/intro",label:"\u2603\ufe0f\u5176\u4ed6",position:"left"},{to:"/docs/Acknowledgement/intro",label:"\ud83c\udf7a\u996e\u6c34\u601d\u6e90",position:"left"},{href:"https://github.com/bonjour-npy",label:"GitHub",position:"right"}]},footer:{style:"dark",links:[{title:"\ud83d\udc4b\u8054\u7cfb\u6211",items:[{label:"WeChat",href:"https://raw.githubusercontent.com/bonjour-npy/Image-Hosting-Service/main/WeChat_QR_Code.jpg"},{label:"TikTok",href:"https://www.douyin.com/user/self?modal_id=7157246567970360614"},{label:"GitHub",href:"https://github.com/bonjour-npy"}]},{title:"\u2708\ufe0f\u5916\u90e8\u94fe\u63a5",items:[{label:"\u5171\u548c\u56fd\u56fd\u9632\u90e8",href:"http://www.mod.gov.cn/"},{label:"\u5b66\u4e60\u5f3a\u56fd",href:"https://www.xuexi.cn/"},{label:"\u8054\u5408\u56fd\u7ef4\u6301\u548c\u5e73",href:"https://peacekeeping.un.org/zh"}]},{title:"\ud83c\udf85\u5f69\u86cb",items:[{label:"\u6b22\u8fce\u6765\u5230\u6d1b\u5723\u90fd",href:"https://www.rockstargames.com/gta-v"},{label:"\u661f\u7403\u5927\u6218",href:"https://www.starwars.com/"},{label:"Apple(\u4e2d\u56fd\u5927\u9646)",href:"https://www.apple.com.cn/"}]},{title:"\ud83e\udd84\u6559\u80b2\u5b98\u7f51",items:[{label:"\u7535\u5b50\u79d1\u6280\u5927\u5b66",href:"https://www.uestc.edu.cn/"},{label:"\u6842\u6797\u7535\u5b50\u79d1\u6280\u5927\u5b66",href:"https://www.guet.edu.cn"},{label:"\u672a\u6765\u5a92\u4f53\u7814\u7a76\u4e2d\u5fc3",href:"https://cfm.uestc.edu.cn/index"}]}],copyright:"<br />\u672c\u7f51\u7ad9\u6240\u5c55\u793a\u7684\u6807\u8bc6\u3001\u94fe\u63a5\u5747\u5c5e\u4e8e\u4e2a\u4eba\u521b\u4f5c\u548c\u559c\u597d\u8868\u8fbe\uff0c\u4e0d\u4ee3\u8868\u4efb\u4f55\u56fd\u5bb6\u3001\u653f\u5e9c\u3001\u4f01\u4e1a\u6216\u7ec4\u7ec7\u7684\u5b98\u65b9\u7acb\u573a\u6216\u884c\u4e3a\u3002<br />\n \u5c3d\u7ba1\u672c\u7f51\u7ad9\u52aa\u529b\u786e\u4fdd\u4fe1\u606f\u7684\u51c6\u786e\u6027\u548c\u65f6\u6548\u6027\uff0c\u4f46\u6240\u6709\u4fe1\u606f\u4ec5\u4f9b\u53c2\u8003\uff0c\u5e76\u4e0d\u6784\u6210\u4efb\u4f55\u5f62\u5f0f\u7684\u6cd5\u5f8b\u3001\u8d22\u52a1\u6216\u5546\u4e1a\u5efa\u8bae\u3002<br />\n <br />Copyright \xa9 2024 bonjour-npy. Built with Docusaurus."},prism:{theme:{plain:{color:"#393A34",backgroundColor:"#f6f8fa"},styles:[{types:["comment","prolog","doctype","cdata"],style:{color:"#999988",fontStyle:"italic"}},{types:["namespace"],style:{opacity:.7}},{types:["string","attr-value"],style:{color:"#e3116c"}},{types:["punctuation","operator"],style:{color:"#393A34"}},{types:["entity","url","symbol","number","boolean","variable","constant","property","regex","inserted"],style:{color:"#36acaa"}},{types:["atrule","keyword","attr-name","selector"],style:{color:"#00a4db"}},{types:["function","deleted","tag"],style:{color:"#d73a49"}},{types:["function-variable"],style:{color:"#6f42c1"}},{types:["tag","selector","keyword"],style:{color:"#00009f"}}]},darkTheme:{plain:{color:"#F8F8F2",backgroundColor:"#282A36"},styles:[{types:["prolog","constant","builtin"],style:{color:"rgb(189, 147, 249)"}},{types:["inserted","function"],style:{color:"rgb(80, 250, 123)"}},{types:["deleted"],style:{color:"rgb(255, 85, 85)"}},{types:["changed"],style:{color:"rgb(255, 184, 108)"}},{types:["punctuation","symbol"],style:{color:"rgb(248, 248, 242)"}},{types:["string","char","tag","selector"],style:{color:"rgb(255, 121, 198)"}},{types:["keyword","variable"],style:{color:"rgb(189, 147, 249)",fontStyle:"italic"}},{types:["comment"],style:{color:"rgb(98, 114, 164)"}},{types:["attr-name"],style:{color:"rgb(241, 250, 140)"}}]},additionalLanguages:["makefile"],magicComments:[{className:"theme-code-block-highlighted-line",line:"highlight-next-line",block:{start:"highlight-start",end:"highlight-end"}}]},metadata:[]},baseUrlIssueBanner:!0,onDuplicateRoutes:"warn",staticDirectories:["static"],themes:[],scripts:[],headTags:[],clientModules:[],tagline:"",titleDelimiter:"|",noIndex:!1,markdown:{mermaid:!1}}},7462:(e,t,n)=>{"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}n.d(t,{Z:()=>r})},5068:(e,t,n)=>{"use strict";function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}function a(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,r(e,t)}n.d(t,{Z:()=>a})},3366:(e,t,n)=>{"use strict";function r(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}n.d(t,{Z:()=>r})},8776:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=!0,a="Invariant failed";function o(e,t){if(!e){if(r)throw new Error(a);var n="function"==typeof t?t():t,o=n?"".concat(a,": ").concat(n):a;throw new Error(o)}}},7529:e=>{"use strict";e.exports={}},6887:e=>{"use strict";e.exports=JSON.parse('{"/en/markdown-page-5ca":{"__comp":"1f391b9e","__context":{"plugin":"86cc22d4"},"content":"393be207"},"/en/search-3b5":{"__comp":"1a4e3797","__context":{"plugin":"7daa201b"}},"/en/docs-885":{"__comp":"1be78505","__context":{"plugin":"d594b08b"},"versionMetadata":"935f2afb"},"/en/docs/Acknowledgement/intro-7ff":{"__comp":"17896441","content":"f0ad40a3"},"/en/docs/Algorithms/\u673a\u8bd5\u6280\u5de7\u4e0eSTL-161":{"__comp":"17896441","content":"446859ef"},"/en/docs/Algorithms/\u9898\u89e3/\u53cd\u5e8f\u8f93\u51fa-4a8":{"__comp":"17896441","content":"3c9ce1b2"},"/en/docs/Algorithms/\u9898\u89e3/\u6392\u5217\u7ec4\u5408\uff08\u6c4230\u7684\u500d\u6570\uff09-c4a":{"__comp":"17896441","content":"11f7daa4"},"/en/docs/Algorithms/\u9898\u89e3/\u4e00\u7ef4\u524d\u7f00\u548c\uff08\u5237\u51fa\u4e00\u9053\u5899\uff09-0f8":{"__comp":"17896441","content":"092909c8"},"/en/docs/Algorithms/intro-64a":{"__comp":"17896441","content":"1331f6cd"},"/en/docs/Algorithms/STL\u6a21\u677f-8ce":{"__comp":"17896441","content":"a0558625"},"/en/docs/Curriculum/\u7f16\u8bd1\u539f\u7406/Note-c21":{"__comp":"17896441","content":"d6b41bcb"},"/en/docs/Curriculum/\u64cd\u4f5c\u7cfb\u7edf\u8bfe\u8bbe/Environment-Configuration-61b":{"__comp":"17896441","content":"cccb4b32"},"/en/docs/Curriculum/\u64cd\u4f5c\u7cfb\u7edf\u8bfe\u8bbe/GeekOS-project-0-951":{"__comp":"17896441","content":"73151820"},"/en/docs/Curriculum/\u6570\u5b57\u56fe\u50cf\u5904\u7406/Note-467":{"__comp":"17896441","content":"a91af95f"},"/en/docs/Curriculum/intro-6de":{"__comp":"17896441","content":"e5f716fd"},"/en/docs/Deep-Learning/\u5927\u6a21\u578b/Attention-Is-All-You-Need-349":{"__comp":"17896441","content":"459eb724"},"/en/docs/Deep-Learning/\u5927\u6a21\u578b/Diffusion-Model-226":{"__comp":"17896441","content":"0ed19e66"},"/en/docs/Deep-Learning/\u5927\u6a21\u578b/GAN-6dc":{"__comp":"17896441","content":"56ae16bd"},"/en/docs/Deep-Learning/\u5927\u6a21\u578b/Image-Generation-Models-b18":{"__comp":"17896441","content":"67605ec9"},"/en/docs/Deep-Learning/\u5927\u6a21\u578b/Prompt Learning/Undergraduate-Dissertation-bca":{"__comp":"17896441","content":"86a892ec"},"/en/docs/Deep-Learning/\u5927\u6a21\u578b/Self-Attention-51d":{"__comp":"17896441","content":"05ec199a"},"/en/docs/Deep-Learning/\u5927\u6a21\u578b/Self-Supervised-Learning-e39":{"__comp":"17896441","content":"a8183bcb"},"/en/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/\u6fc0\u6d3b\u51fd\u6570\u4e0eLoss\u7684\u68af\u5ea6-1d0":{"__comp":"17896441","content":"b529c19d"},"/en/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/\u6df1\u5ea6\u53ef\u5206\u79bb\u5377\u79ef-463":{"__comp":"17896441","content":"6204ac06"},"/en/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/\u6b63\u5219\u5316\u4e0e\u6743\u91cd\u8870\u9000-076":{"__comp":"17896441","content":"cf67a3ce"},"/en/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/AlexNet-632":{"__comp":"17896441","content":"d1030cc9"},"/en/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/ConvolutionalLayer-a5a":{"__comp":"17896441","content":"d5b726de"},"/en/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/FromFullyConnectedLayerToConvolutionalLayer-b27":{"__comp":"17896441","content":"2a59d8d4"},"/en/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/K-foldCross-validation-615":{"__comp":"17896441","content":"f26368c4"},"/en/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/LeNet-02a":{"__comp":"17896441","content":"7ab2d319"},"/en/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/LogisticRegression-638":{"__comp":"17896441","content":"800ff996"},"/en/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/Perceptron-0bc":{"__comp":"17896441","content":"a8fad2e4"},"/en/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/PoolingLayer-7cc":{"__comp":"17896441","content":"74465ad7"},"/en/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/PytorchBasics-fc7":{"__comp":"17896441","content":"c00822a0"},"/en/docs/Deep-Learning/\u8bba\u6587\u7b14\u8bb0/Attention Is All You Need-a1c":{"__comp":"17896441","content":"78a3e900"},"/en/docs/Deep-Learning/\u8bba\u6587\u7b14\u8bb0/Denoising Diffusion Probabilistic Models-09b":{"__comp":"17896441","content":"21a88645"},"/en/docs/Deep-Learning/\u8bba\u6587\u7b14\u8bb0/High-Resolution Image Synthesis with Latent Diffusion Models-dc6":{"__comp":"17896441","content":"52f5885d"},"/en/docs/Deep-Learning/\u8bba\u6587\u7b14\u8bb0/Zero-shot Generative Model Adaptation via Image-specific Prompt Learning-566":{"__comp":"17896441","content":"26bb3547"},"/en/docs/Deep-Learning/\u5b9e\u6218\u7ec3\u4e60/Speaker Classification-41c":{"__comp":"17896441","content":"76f0dcb5"},"/en/docs/Deep-Learning/\u5b9e\u6218\u7ec3\u4e60/Undergraduate-Dissertation-bc2":{"__comp":"17896441","content":"16ddbeca"},"/en/docs/Deep-Learning/\u5b9e\u6218\u7ec3\u4e60/Visdom Visualization-6b6":{"__comp":"17896441","content":"7d51be72"},"/en/docs/Deep-Learning/Fill-The-Gaps-fc6":{"__comp":"17896441","content":"b28e7af0"},"/en/docs/Deep-Learning/intro-662":{"__comp":"17896441","content":"170d5aca"},"/en/docs/Others/\u535a\u5ba2\u642d\u5efa/\u544a\u793a\u680f-497":{"__comp":"17896441","content":"5b87b98d"},"/en/docs/Others/intro-23a":{"__comp":"17896441","content":"4557037c"},"/en/docs/Others/Linux/\u5ba2\u5236\u5316/\u5982\u4f55\u8ba9\u4f60\u7684KDE\u770b\u8d77\u6765\u66f4\u50cfmacOS-563":{"__comp":"17896441","content":"e6c11ea8"},"/en/docs/Others/Linux/\u5b9e\u7528\u5de5\u5177/\u7ec8\u7aef\u4ee3\u7406-ab2":{"__comp":"17896441","content":"360a53fd"},"/en/docs/Others/Linux/\u95ee\u9898\u89e3\u51b3/\u53cc\u7cfb\u7edf\u6302\u8f7dWindows\u78c1\u76d8\u4e3a\u53ea\u8bfb\u6587\u4ef6-bc9":{"__comp":"17896441","content":"e106d379"},"/en/docs/Tui-Mian/\u673a\u8bd5/\u5927\u6570\u9664\u6cd5-862":{"__comp":"17896441","content":"a2a36db7"},"/en/docs/Tui-Mian/\u8ba1\u7b97\u673a\u57fa\u7840\u7efc\u5408/\u6570\u636e\u7ed3\u6784-4e7":{"__comp":"17896441","content":"198a413f"},"/en/docs/Tui-Mian/\u7b80\u5386/\u7b80\u5386\u9762\u8bd5\u51c6\u5907-ec5":{"__comp":"17896441","content":"d839ba35"},"/en/docs/Tui-Mian/\u6570\u5b66/\u6982\u7387\u8bba-ca3":{"__comp":"17896441","content":"5960b9f1"},"/en/docs/Tui-Mian/\u6570\u5b66/\u590f\u4ee4\u8425\u9762\u8bd5\u6570\u5b66\u90e8\u5206\u590d\u4e60-cf2":{"__comp":"17896441","content":"73a0803d"},"/en/docs/Tui-Mian/\u6570\u5b66/\u7ebf\u6027\u4ee3\u6570-65e":{"__comp":"17896441","content":"4fdf609a"},"/en/docs/Tui-Mian/intro-4c0":{"__comp":"17896441","content":"7f328912"},"/en/docs/Tui-Mian/Summary-b9f":{"__comp":"17896441","content":"4e1def24"},"/en/-d83":{"__comp":"c4f5d8e4","__context":{"plugin":"86cc22d4"},"config":"5e9f5e1a"}}')}},e=>{e.O(0,[532],(()=>{return t=7221,e(e.s=t);var t}));e.O()}]); \ No newline at end of file diff --git a/en/assets/js/main.c115541d.js.LICENSE.txt b/en/assets/js/main.c115541d.js.LICENSE.txt new file mode 100644 index 000000000..2c826395b --- /dev/null +++ b/en/assets/js/main.c115541d.js.LICENSE.txt @@ -0,0 +1,125 @@ +/* +object-assign +(c) Sindre Sorhus +@license MIT +*/ + +/* NProgress, (c) 2013, 2014 Rico Sta. Cruz - http://ricostacruz.com/nprogress + * @license MIT */ + +/*! + * lunr.Builder + * Copyright (C) 2020 Oliver Nightingale + */ + +/*! + * lunr.Index + * Copyright (C) 2020 Oliver Nightingale + */ + +/*! + * lunr.Pipeline + * Copyright (C) 2020 Oliver Nightingale + */ + +/*! + * lunr.Set + * Copyright (C) 2020 Oliver Nightingale + */ + +/*! + * lunr.TokenSet + * Copyright (C) 2020 Oliver Nightingale + */ + +/*! + * lunr.Vector + * Copyright (C) 2020 Oliver Nightingale + */ + +/*! + * lunr.stemmer + * Copyright (C) 2020 Oliver Nightingale + * Includes code from - http://tartarus.org/~martin/PorterStemmer/js.txt + */ + +/*! + * lunr.stopWordFilter + * Copyright (C) 2020 Oliver Nightingale + */ + +/*! + * lunr.tokenizer + * Copyright (C) 2020 Oliver Nightingale + */ + +/*! + * lunr.trimmer + * Copyright (C) 2020 Oliver Nightingale + */ + +/*! + * lunr.utils + * Copyright (C) 2020 Oliver Nightingale + */ + +/** + * @license React + * use-sync-external-store-shim.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +/** + * Prism: Lightweight, robust, elegant syntax highlighting + * + * @license MIT <https://opensource.org/licenses/MIT> + * @author Lea Verou <https://lea.verou.me> + * @namespace + * @public + */ + +/** + * lunr - http://lunrjs.com - A bit like Solr, but much smaller and not as bright - 2.3.9 + * Copyright (C) 2020 Oliver Nightingale + * @license MIT + */ + +/** @license React v0.20.2 + * scheduler.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +/** @license React v16.13.1 + * react-is.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +/** @license React v17.0.2 + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +/** @license React v17.0.2 + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ diff --git a/en/assets/js/runtime~main.8ea371b6.js b/en/assets/js/runtime~main.8ea371b6.js new file mode 100644 index 000000000..50531260a --- /dev/null +++ b/en/assets/js/runtime~main.8ea371b6.js @@ -0,0 +1 @@ +(()=>{"use strict";var e,a,b,d,c,f={},t={};function r(e){var a=t[e];if(void 0!==a)return a.exports;var b=t[e]={exports:{}};return f[e].call(b.exports,b,b.exports,r),b.exports}r.m=f,e=[],r.O=(a,b,d,c)=>{if(!b){var f=1/0;for(i=0;i<e.length;i++){b=e[i][0],d=e[i][1],c=e[i][2];for(var t=!0,o=0;o<b.length;o++)(!1&c||f>=c)&&Object.keys(r.O).every((e=>r.O[e](b[o])))?b.splice(o--,1):(t=!1,c<f&&(f=c));if(t){e.splice(i--,1);var n=d();void 0!==n&&(a=n)}}return a}c=c||0;for(var i=e.length;i>0&&e[i-1][2]>c;i--)e[i]=e[i-1];e[i]=[b,d,c]},r.n=e=>{var a=e&&e.__esModule?()=>e.default:()=>e;return r.d(a,{a:a}),a},b=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,r.t=function(e,d){if(1&d&&(e=this(e)),8&d)return e;if("object"==typeof e&&e){if(4&d&&e.__esModule)return e;if(16&d&&"function"==typeof e.then)return e}var c=Object.create(null);r.r(c);var f={};a=a||[null,b({}),b([]),b(b)];for(var t=2&d&&e;"object"==typeof t&&!~a.indexOf(t);t=b(t))Object.getOwnPropertyNames(t).forEach((a=>f[a]=()=>e[a]));return f.default=()=>e,r.d(c,f),c},r.d=(e,a)=>{for(var b in a)r.o(a,b)&&!r.o(e,b)&&Object.defineProperty(e,b,{enumerable:!0,get:a[b]})},r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce(((a,b)=>(r.f[b](e,a),a)),[])),r.u=e=>"assets/js/"+({53:"935f2afb",189:"4557037c",198:"d839ba35",452:"5b87b98d",618:"b28e7af0",962:"092909c8",1007:"a91af95f",1130:"a8fad2e4",1180:"11f7daa4",1196:"73a0803d",1376:"56ae16bd",1459:"446859ef",1646:"e106d379",1835:"b529c19d",2051:"e6c11ea8",2296:"f0ad40a3",2373:"05ec199a",2592:"198a413f",2615:"76f0dcb5",3033:"e5f716fd",3065:"2a59d8d4",3085:"1f391b9e",3094:"cf67a3ce",3311:"67605ec9",3320:"d5b726de",3328:"16ddbeca",3346:"cccb4b32",3389:"a0558625",3553:"459eb724",3576:"86cc22d4",4195:"c4f5d8e4",4760:"f26368c4",5321:"74465ad7",5736:"7ab2d319",5742:"d1030cc9",5776:"a2a36db7",5901:"d6b41bcb",5923:"d594b08b",6178:"800ff996",6237:"4e1def24",6674:"3c9ce1b2",6898:"7d51be72",7122:"170d5aca",7336:"1331f6cd",7414:"393be207",7698:"4fdf609a",7739:"a8183bcb",7851:"360a53fd",7918:"17896441",7920:"1a4e3797",8125:"78a3e900",8175:"86a892ec",8231:"52f5885d",8347:"7daa201b",8399:"26bb3547",8614:"6204ac06",8770:"0ed19e66",8975:"7f328912",9203:"73151820",9507:"c00822a0",9514:"1be78505",9615:"5960b9f1",9913:"21a88645"}[e]||e)+"."+{53:"1286ce63",189:"3c131b40",198:"4600c979",452:"095623b9",618:"bd2709b4",962:"fef9391a",1007:"f9e3bf24",1130:"6560c6d4",1180:"f6108978",1196:"50d6d298",1376:"ad59042e",1459:"634a6665",1646:"ff6d17e0",1835:"6b7aeb6d",2051:"1e898afe",2296:"96f1171a",2373:"6ad57d3c",2592:"8769abe9",2615:"1bb937cd",3033:"e49ea367",3065:"236a7031",3085:"e222276a",3094:"f89d92ef",3311:"4bb01388",3320:"7bb5e4ed",3328:"1e0b0f89",3346:"b2301e98",3389:"e5242f1d",3553:"1a1d6c35",3576:"aa8c1fa6",4195:"2acb6b67",4760:"53e6a014",4972:"d1a5048e",5321:"f87ed629",5525:"db22dd4f",5736:"a7170132",5742:"b55e3482",5776:"efe4cdcf",5901:"b97d34ef",5923:"b2ee120d",6178:"9c12b89a",6237:"32a199d0",6674:"60dafc4d",6898:"9622b692",7122:"0210db0d",7336:"f403c407",7414:"b0fa9194",7698:"13f16d17",7739:"330626cf",7851:"00f9e11d",7918:"077d419c",7920:"cd2275cc",8125:"50412383",8175:"fcd82238",8231:"56c8722d",8347:"7d2e8a69",8399:"4ca55296",8443:"ac831155",8605:"012e1e77",8614:"8afb11e6",8770:"50b86812",8975:"43f96743",9203:"8e50e653",9507:"6c2e3bc2",9514:"94988c33",9615:"062769fa",9913:"5d87fc6c"}[e]+".js",r.miniCssF=e=>{},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,a)=>Object.prototype.hasOwnProperty.call(e,a),d={},c="npy-notebook:",r.l=(e,a,b,f)=>{if(d[e])d[e].push(a);else{var t,o;if(void 0!==b)for(var n=document.getElementsByTagName("script"),i=0;i<n.length;i++){var u=n[i];if(u.getAttribute("src")==e||u.getAttribute("data-webpack")==c+b){t=u;break}}t||(o=!0,(t=document.createElement("script")).charset="utf-8",t.timeout=120,r.nc&&t.setAttribute("nonce",r.nc),t.setAttribute("data-webpack",c+b),t.src=e),d[e]=[a];var l=(a,b)=>{t.onerror=t.onload=null,clearTimeout(s);var c=d[e];if(delete d[e],t.parentNode&&t.parentNode.removeChild(t),c&&c.forEach((e=>e(b))),a)return a(b)},s=setTimeout(l.bind(null,void 0,{type:"timeout",target:t}),12e4);t.onerror=l.bind(null,t.onerror),t.onload=l.bind(null,t.onload),o&&document.head.appendChild(t)}},r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.p="/en/",r.gca=function(e){return e={17896441:"7918",73151820:"9203","935f2afb":"53","4557037c":"189",d839ba35:"198","5b87b98d":"452",b28e7af0:"618","092909c8":"962",a91af95f:"1007",a8fad2e4:"1130","11f7daa4":"1180","73a0803d":"1196","56ae16bd":"1376","446859ef":"1459",e106d379:"1646",b529c19d:"1835",e6c11ea8:"2051",f0ad40a3:"2296","05ec199a":"2373","198a413f":"2592","76f0dcb5":"2615",e5f716fd:"3033","2a59d8d4":"3065","1f391b9e":"3085",cf67a3ce:"3094","67605ec9":"3311",d5b726de:"3320","16ddbeca":"3328",cccb4b32:"3346",a0558625:"3389","459eb724":"3553","86cc22d4":"3576",c4f5d8e4:"4195",f26368c4:"4760","74465ad7":"5321","7ab2d319":"5736",d1030cc9:"5742",a2a36db7:"5776",d6b41bcb:"5901",d594b08b:"5923","800ff996":"6178","4e1def24":"6237","3c9ce1b2":"6674","7d51be72":"6898","170d5aca":"7122","1331f6cd":"7336","393be207":"7414","4fdf609a":"7698",a8183bcb:"7739","360a53fd":"7851","1a4e3797":"7920","78a3e900":"8125","86a892ec":"8175","52f5885d":"8231","7daa201b":"8347","26bb3547":"8399","6204ac06":"8614","0ed19e66":"8770","7f328912":"8975",c00822a0:"9507","1be78505":"9514","5960b9f1":"9615","21a88645":"9913"}[e]||e,r.p+r.u(e)},(()=>{var e={1303:0,532:0};r.f.j=(a,b)=>{var d=r.o(e,a)?e[a]:void 0;if(0!==d)if(d)b.push(d[2]);else if(/^(1303|532)$/.test(a))e[a]=0;else{var c=new Promise(((b,c)=>d=e[a]=[b,c]));b.push(d[2]=c);var f=r.p+r.u(a),t=new Error;r.l(f,(b=>{if(r.o(e,a)&&(0!==(d=e[a])&&(e[a]=void 0),d)){var c=b&&("load"===b.type?"missing":b.type),f=b&&b.target&&b.target.src;t.message="Loading chunk "+a+" failed.\n("+c+": "+f+")",t.name="ChunkLoadError",t.type=c,t.request=f,d[1](t)}}),"chunk-"+a,a)}},r.O.j=a=>0===e[a];var a=(a,b)=>{var d,c,f=b[0],t=b[1],o=b[2],n=0;if(f.some((a=>0!==e[a]))){for(d in t)r.o(t,d)&&(r.m[d]=t[d]);if(o)var i=o(r)}for(a&&a(b);n<f.length;n++)c=f[n],r.o(e,c)&&e[c]&&e[c][0](),e[c]=0;return r.O(i)},b=self.webpackChunknpy_notebook=self.webpackChunknpy_notebook||[];b.forEach(a.bind(null,0)),b.push=a.bind(null,b.push.bind(b))})()})(); \ No newline at end of file diff --git a/en/docs/Acknowledgement/intro/index.html b/en/docs/Acknowledgement/intro/index.html new file mode 100644 index 000000000..b1eb7fa48 --- /dev/null +++ b/en/docs/Acknowledgement/intro/index.html @@ -0,0 +1,18 @@ +<!doctype html> +<html lang="en" dir="ltr" class="docs-wrapper docs-doc-page docs-version-current plugin-docs plugin-id-default docs-doc-id-Acknowledgement/intro" data-has-hydrated="false"> +<head> +<meta charset="UTF-8"> +<meta name="generator" content="Docusaurus v2.4.3"> +<title data-rh="true">鸣谢 | 培洋的笔记本📒 + + + + +
+

鸣谢

饮水思源

该网站的搭建离不开Docusaurus的支持以及对Sonder的宝藏笔记本的参考。

Disclaimer

本网站展示的所有标识和链接仅属于个人喜好不代表国家的立场或企业、组织的行为

本网站的所有信息仅供参考不构成法律或商业建议

+ + + + \ No newline at end of file diff --git "a/en/docs/Algorithms/STL\346\250\241\346\235\277/index.html" "b/en/docs/Algorithms/STL\346\250\241\346\235\277/index.html" new file mode 100644 index 000000000..0735a29fc --- /dev/null +++ "b/en/docs/Algorithms/STL\346\250\241\346\235\277/index.html" @@ -0,0 +1,18 @@ + + + + + +STL模板 | 培洋的笔记本📒 + + + + +
+

STL模板

info
  • vector:变长数组,倍增的思想
  • pair:存储一对数
  • string:字符串,substr(), c_str()
  • queue:push(), front(), pop()
  • priority_queue:优先队列,push(), top(), pop()
  • stack:栈,push(), top(), pop()
  • deque:双端队列
  • set, map, multiset, multimap:基于红黑树来实现,本质上是动态维护一个有序序列
  • unordered_set, unordered_map, unordered_multiset, unordered_multimap:哈希表
  • bitset:压位

vector

vector<int> a(10,3); // 定义一个长度为10的vector,初始化为3;
a.size(); // vector的size,所有容器都有
a.empty(); // 范围vector是否为空,所有容器都有
a.clear(); // 清空
a.front(); // 第一个数
a.back(); // 最后一个数
a.push_back(); // 在最后插入一个数
a.pop_back(); // 删除最后一个数
// vector支持比较运算
vector<int> a(4,3),b(3,4);
if(a > b) cout << "Yes";
else cout << "No"

pair

pair<int,int> a;
a = {20,"abc"};
a.first(); // 获取第一个元素
a.second(); // 获取第二个元素
// pair也能进行sort

string

string a = "Acwing";
a.size(); // 获取string的大小
a.empty(); // 判断是否为空
a.clear(); // 清空
a += "def";
cout << a. substr(1,2) << endl; // 第一个参数起始位置,第二个参数是字符串长度

query

query<int> a;
a.size();
a.empty();
a.push(1); // 队尾插入元素
a.front(); // 返回队头元素
a.back(); // 返回队尾元素
a.pop(); // 删除队头元素

priority_queue

// 默认是大根堆
priority_queue<int> heap;
heap.clear();
heap.size();
heap.empty();
// 如何定义一个小根堆: 1. 插入负数 2. 直接定义
heap.push(-x); // 黑科技方法
priority_queue<int,vector<int>,greater<int>> q;

stack

stack<int> s;
s.size();
s.empty();
s.push();
s.top();
s.pop();

deque

deque<int> a;
a.size();
a.empty();
a.clear();
a.front();
a.back();
a.push_back();
a.pop_back();

set/multiset

set<int> s; // 不能有重复元素
// s.begin()/end()
multiset<int> MS; // 可以有重复元素
s.insert(1); 插入一个数
s.size();
s.empty();
s.clear();
s.find(1); // 查找一个元素,如果不存在的话返回end迭代器
s.erase(1); // 输入是一个数x,输出所有x (2)输入一个迭代器,删除这个迭代器
// set 最核心的操作
s.lower_bound(); // 范围大于等于x的最小的数
s.upper_bound(); // 返回大于x的最小的数

map/multimap

#include <map>
// 和python里面的字典非常的相似
map<string,int> a;
a["2"] = 3;
a.insert({"1",1});
a.erase({"1",1});
a.find({"1",1});

unordered_set, unordered_map, unordered_multiset, unordered_multimap的操作和set或者map等的操作基本一致,唯一的区别就是不支持类似lower_bound()这样的操作 (哈希表的内部是无序的)

biset

可以省下来8位的空间

bitset<10000> s;
// 支持所有的基本操作:
// 移位操作:<< >>
// == !=
// count() 返回有多少个1
// any() 判断是否至少有一个1
// none() 判断是否全为0
// set(),把所有为置为1
// set(k,v), 将第k个变为v
// reset(), 把所有位变成0
// flip(), 把所有位取反
+ + + + \ No newline at end of file diff --git a/en/docs/Algorithms/intro/index.html b/en/docs/Algorithms/intro/index.html new file mode 100644 index 000000000..1359ac51c --- /dev/null +++ b/en/docs/Algorithms/intro/index.html @@ -0,0 +1,18 @@ + + + + + +Welcome | 培洋的笔记本📒 + + + + +
+

Welcome

tip

欢迎来到笔记本的算法部分

支持我!

如果可以帮到你的话就给个免费的Star吧!

+ + + + \ No newline at end of file diff --git "a/en/docs/Algorithms/\346\234\272\350\257\225\346\212\200\345\267\247\344\270\216STL/index.html" "b/en/docs/Algorithms/\346\234\272\350\257\225\346\212\200\345\267\247\344\270\216STL/index.html" new file mode 100644 index 000000000..4b7e3ab20 --- /dev/null +++ "b/en/docs/Algorithms/\346\234\272\350\257\225\346\212\200\345\267\247\344\270\216STL/index.html" @@ -0,0 +1,32 @@ + + + + + +机试技巧与STL | 培洋的笔记本📒 + + + + +
+

机试技巧与STL

info

[TOC]

vs2018 快捷键

CTRL + J                  列出成员 
Ctrl+E,D 格式化全部代码
Ctrl+K,F 格式化选中的代码
CTRL + SHIFT + E 显示资源视图
F12 转到定义
CTRL + F12 转到声明
CTRL + ALT + J 对象浏览
CTRL + ALT + F1 帮助目录
CTRL + F1 动态帮助
CTRL + K, CTRL + C 注释选择的代码
CTRL + K, CTRL + U 取消对选择代码的注释
CTRL + U 转小写
CTRL + SHIFT + U 转大写
F5 运行调试
CTRL + F5 运行不调试
F10 跨过程序执行
F11 单步逐句执行

头文件

标准c库

头文件说明头文件说明头文件说明
assert.h断言相关ctype.h字符类型判断errno.h标准错误机制
float.h浮点限制limits.h整形限制locale.h本地化接口
math.h数学函数setjmp.h非本地跳转signal.h信号相关
stdarg.h可变参数处理stddef.h宏和类型定义stdio.h标准I/O
stdlib.h标准工具库string.h字符串和内存处理time.h时间相关

c++ STL

using namespace std;

头文件说明头文件说明头文件说明
algorithm通用算法deque双端队列vector向量
iterator迭代器stackmap图(键值对)
list列表string字符串set集合
queue队列bitsetbit类numeric数值算法

常用头

#include<cstdio>  
#include<cstring>
#include<algorithm>
#include<iostream>
#include<string>
#include<vector>
#include<stack>
#include<bitset>
#include<cstdlib>
#include<cmath>
#include<set>
#include<list>
#include<deque>
#include<map>
#include<queue>
using namespace std;

常用宏定义

//求最大值和最小值
#define MAX(x,y) (((x)>(y)) ? (x) : (y))
#define MIN(x,y) (((x) < (y)) ? (x) : (y))

//取余
#define mod(x) ((x)%MOD)

//for循环
#define FOR(i,f_start,f_end) for(int i=f_start;i<=f_end;++i)

//返回数组元素的个数
#define ARR_SIZE(a) (sizeof((a))/sizeof((a[0])))

//初始化数组
#define MT(x,i) memset(x,i,sizeof(x))
#define MEM(a,b) memset((a),(b),sizeof(a))

//符号重定义
#define LL long long
#define ull unsigned long long
#define pii pair<int,int>

//常见常数
#define PI acos(-1.0)
#define eps 1e-12
#define INF 0x3f3f3f3f //int最大值
const int INF_INT = 2147483647;
const ll INF_LL = 9223372036854775807LL;
const ull INF_ULL = 18446744073709551615Ull;
const ll P = 92540646808111039LL;
const ll maxn = 1e5 + 10, MOD = 1e9 + 7;
const int Move[4][2] = {-1,0,1,0,0,1,0,-1};
const int Move_[8][2] = {-1,-1,-1,0,-1,1,0,-1,0,1,1,-1,1,0,1,1};

结构体

定义

struct InitMember
{
int first;
double second;
char* third;
float four;
};

初始化

方法一:定义时赋值

struct InitMember test = {-10,3.141590,"method one",0.25};

方法二:定义后逐个赋值

struct InitMember test;

test.first = -10;
test.second = 3.141590;
test.third = "method two";
test.four = 0.25;

方法三:定义时乱序赋值(C++风格)

struct InitMember test = {
second:3.141590,
third:"method three",
first:-10,
four:0.25
};

方法四:构造函数

//定义图的定点
typedef struct Vertex {
int id,inDegree,outDegree;
vector<int> connectors; //存储节点的后续连接顶点编号
Vertex() : id(-1),inDegree(0),outDegree(0) {}
Vertex(int nid) : id(nid),inDegree(0),outDegree(0) {}
} Vertex;

//定义Graph的邻接表表示
typedef struct Graph {
vector<Vertex> vertexs; //存储定点信息
int nVertexs; //计数:邻接数
bool isDAG; //标志:是有向图吗

Graph(int n, bool isDAG) : nVertexs(n), isDAG(isDAG) { vertexs.resize(n); }
Graph() : nVertexs(1), isDAG(1) { vertexs.resize(1); }
//向图中添加边
bool addEdge(int id1, int id2) {
...
...
...
return true;
}
} Graph;

Graph g(8, false);

运算符重载

typedef struct{int id;int h;} node;
bool operator <(const node& a,const node & b){return (a.h)<(b.h);}

c++new的使用

常规

int *x = new int;       //开辟一个存放整数的存储空间,返回一个指向该存储空间的地址(即指针)
int *a = new int(100); //开辟一个存放整数的空间,并指定该整数的初值为100,返回一个指向该存储空间的地址
char *b = new char[10]; //开辟一个存放字符数组(包括10个元素)的空间,返回首元素的地址
float *p=new float (3.14159);//开辟一个存放单精度数的空间,并指定该实数的初值为//3.14159,将返回的该空间的地址赋给指针变量p

动态申请列大小固定的二维数组

//列值固定
const int MAXCOL = 3;
cin>>row;
//申请一维数据并将其转成二维数组指针
int *pp_arr = new int[nRow * MAXCOL];
int (*p)[MAXCOL] = (int(*)[MAXCOL])pp_arr;
//此时p[i][j]就可正常使用

动态申请大小不固定的二维数组


cin>>row>>col;
int **p = new int*[row];
for (int i = 0; i < row; i ++)
{
p[i] = new int[col];
}

常用STL

参考:

https://blog.csdn.net/f_zyj/article/details/51594851
+https://download.csdn.net/download/f_zyj/9988653

简述

STL底层说明

C++ STL 的实现:

1.vector      底层数据结构为数组 ,支持快速随机访问

2.list 底层数据结构为双向链表,支持快速增删

3.deque 底层数据结构为一个中央控制器和多个缓冲区,详细见STL源码剖析P146,支持首尾(中间不能)快速增删,也支持随机访问
deque是一个双端队列(double-ended queue),也是在堆中保存内容的.它的保存形式如下:
[堆1] --> [堆2] -->[堆3] --> ...
每个堆保存好几个元素,然后堆和堆之间有指针指向,看起来像是list和vector的结合品.

4.stack 底层一般用list或deque实现,封闭头部即可,不用vector的原因应该是容量大小有限制,扩容耗时

5.queue 底层一般用list或deque实现,封闭头部即可,不用vector的原因应该是容量大小有限制,扩容耗时

(stack和queue其实是适配器,而不叫容器,因为是对容器的再封装)

6.priority_queue 的底层数据结构一般为vector为底层容器,堆heap为处理规则来管理底层容器实现

7.set 底层数据结构为红黑树,有序,不重复

8.multiset 底层数据结构为红黑树,有序,可重复

9.map 底层数据结构为红黑树,有序,不重复

10.multimap 底层数据结构为红黑树,有序,可重复

11.hash_set 底层数据结构为hash表,无序,不重复

12.hash_multiset 底层数据结构为hash表,无序,可重复

13.hash_map 底层数据结构为hash表,无序,不重复

14.hash_multimap 底层数据结构为hash表,无序,可重复

CCF 编译出错原因: 不允许C++STL容器嵌套(需要满足相应的格式)

就是要在后面的“>”之间,必须得有一个空格,如果有多层,那每层都得有一个空格。

map<string,list<string> > user;

algorithm

头文件:lgorithm

函数参数,返回值以及具体的使用方法请自行去头文件找定义!!!

不修改内容的序列操作

函数说明
adjacent_find查找两个相邻(Adjacent)的等价(Identical)元素
all_ofC++11检测在给定范围中是否所有元素都满足给定的条件
any_ofC++11检测在给定范围中是否存在元素满足给定条件
count返回值等价于给定值的元素的个数
count_if返回值满足给定条件的元素的个数
equal返回两个范围是否相等
find返回第一个值等价于给定值的元素
find_end查找范围A中与范围B等价的子范围最后出现的位置
find_first_of查找范围A中第一个与范围B中任一元素等价的元素的位置
find_if返回第一个值满足给定条件的元素
find_if_notC++11返回第一个值不满足给定条件的元素
for_each对范围中的每个元素调用指定函数
mismatch返回两个范围中第一个元素不等价的位置
none_ofC++11检测在给定范围中是否不存在元素满足给定的条件
search在范围A中查找第一个与范围B等价的子范围的位置
search_n在给定范围中查找第一个连续n个元素都等价于给定值的子范围的位置

修改内容的序列操作

函数说明
copy将一个范围中的元素拷贝到新的位置处
copy_backward将一个范围中的元素按逆序拷贝到新的位置处
copy_ifC++11将一个范围中满足给定条件的元素拷贝到新的位置处
copy_nC++11拷贝 n 个元素到新的位置处
fill将一个范围的元素赋值为给定值
fill_n将某个位置开始的 n 个元素赋值为给定值
generate将一个函数的执行结果保存到指定范围的元素中,用于批量赋值范围中的元素
generate_n将一个函数的执行结果保存到指定位置开始的 n 个元素中
iter_swap交换两个迭代器(Iterator)指向的元素
moveC++11将一个范围中的元素移动到新的位置处
move_backwardC++11将一个范围中的元素按逆序移动到新的位置处
random_shuffle随机打乱指定范围中的元素的位置
remove将一个范围中值等价于给定值的元素删除
remove_if将一个范围中值满足给定条件的元素删除
remove_copy拷贝一个范围的元素,将其中值等价于给定值的元素删除
remove_copy_if拷贝一个范围的元素,将其中值满足给定条件的元素删除
replace将一个范围中值等价于给定值的元素赋值为新的值
replace_copy拷贝一个范围的元素,将其中值等价于给定值的元素赋值为新的值
replace_copy_if拷贝一个范围的元素,将其中值满足给定条件的元素赋值为新的值
replace_if将一个范围中值满足给定条件的元素赋值为新的值
reverse反转排序指定范围中的元素
reverse_copy拷贝指定范围的反转排序结果
rotate循环移动指定范围中的元素
rotate_copy拷贝指定范围的循环移动结果
shuffleC++11用指定的随机数引擎随机打乱指定范围中的元素的位置
swap交换两个对象的值
swap_ranges交换两个范围的元素
transform对指定范围中的每个元素调用某个函数以改变元素的值
unique删除指定范围中的所有连续重复元素,仅仅留下每组等值元素中的第一个元素。
unique_copy拷贝指定范围的唯一化(参考上述的 unique)结果

划分操作

函数说明
is_partitionedC++11检测某个范围是否按指定谓词(Predicate)划分过
partition将某个范围划分为两组
partition_copyC++11拷贝指定范围的划分结果
partition_pointC++11返回被划分范围的划分点
stable_partition稳定划分,两组元素各维持相对顺序

排序操作

函数说明
is_sortedC++11检测指定范围是否已排序
is_sorted_untilC++11返回最大已排序子范围
nth_element 部份排序指定范围中的元素,使得范围按给定位置处的元素划分
partial_sort部份排序
partial_sort_copy拷贝部分排序的结果
sort排序
stable_sort稳定排序

二分法查找操作

函数说明
binary_search判断范围中是否存在值等价于给定值的元素
equal_range返回范围中值等于给定值的元素组成的子范围
lower_bound返回指向范围中第一个值大于或等于给定值的元素的迭代器
upper_bound返回指向范围中第一个值大于给定值的元素的迭代器

集合操作

函数说明
includes判断一个集合是否是另一个集合的子集
inplace_merge就绪合并
merge 合并
set_difference获得两个集合的差集
set_intersection获得两个集合的交集
set_symmetric_difference获得两个集合的对称差
set_union获得两个集合的并集

堆操作

函数说明
is_heap检测给定范围是否满足堆结构
is_heap_untilC++11检测给定范围中满足堆结构的最大子范围
make_heap用给定范围构造出一个堆
pop_heap从一个堆中删除最大的元素
push_heap向堆中增加一个元素
sort_heap将满足堆结构的范围排序

最大/最小操作

函数说明
is_permutationC++11判断一个序列是否是另一个序列的一种排序
lexicographical_compare比较两个序列的字典序
max返回两个元素中值最大的元素
max_element返回给定范围中值最大的元素
min返回两个元素中值最小的元素
min_element返回给定范围中值最小的元素
minmaxC++11返回两个元素中值最大及最小的元素
minmax_elementC++11返回给定范围中值最大及最小的元素
next_permutation返回给定范围中的元素组成的下一个按字典序的排列
prev_permutation返回给定范围中的元素组成的上一个按字典序的排列

vector

头文件:vector

在STL的vector头文件中定义了vector(向量容器模版类),vector容器以连续数组的方式存储元素序列,可以将vector看作是以顺序结构实现的线性表。当我们在程序中需要使用动态数组时,vector将会是理想的选择,vector可以在使用过程中动态地增长存储空间。 +vector模版类需要两个模版参数,第一个参数是存储元素的数据类型,第二个参数是存储分配器的类型,其中第二个参数是可选的,如果不给出第二个参数,将使用默认的分配器

下面给出几个常用的定义vector向量对象的方法示例:


vector<int> s;
// 定义一个空的vector对象,存储的是int类型的元素
vector<int> s(n);
// 定义一个含有n个int元素的vector对象
vector<int> s(first, last);
// 定义一个vector对象,并从由迭代器first和last定义的序列[first, last)中复制初值

vector的基本操作:


s[i] // 直接以下标方式访问容器中的元素
s.front() // 返回首元素
s.back() // 返回尾元素
s.push_back(x) // 向表尾插入元素x
s.size() // 返回表长
s.empty() // 表为空时,返回真,否则返回假
s.pop_back() // 删除表尾元素
s.begin() // 返回指向首元素的随机存取迭代器
s.end() // 返回指向尾元素的下一个位置的随机存取迭代器
s.insert(it, val) // 向迭代器it指向的元素前插入新元素val
s.insert(it, n, val)// 向迭代器it指向的元素前插入n个新元素val
s.insert(it, first, last)
// 将由迭代器first和last所指定的序列[first, last)插入到迭代器it指向的元素前面
s.erase(it) // 删除由迭代器it所指向的元素
s.erase(first, last)// 删除由迭代器first和last所指定的序列[first, last)
s.reserve(n) // 预分配缓冲空间,使存储空间至少可容纳n个元素
s.resize(n) // 改变序列长度,超出的元素将会全部被删除,如果序列需要扩展(原空间小于n),元素默认值将填满扩展出的空间
s.resize(n, val) // 改变序列长度,超出的元素将会全部被删除,如果序列需要扩展(原空间小于n),val将填满扩展出的空间
s.clear() // 删除容器中的所有元素
s.swap(v) // 将s与另一个vector对象进行交换
s.assign(first, last)
// 将序列替换成由迭代器first和last所指定的序列[first, last),[first, last)不能是原序列中的一部分

// 要注意的是,resize操作和clear操作都是对表的有效元素进行的操作,但并不一定会改变缓冲空间的大小
// 另外,vector还有其他的一些操作,如反转、取反等,不再一一列举
// vector上还定义了序列之间的比较操作运算符(>、<、>=、<=、==、!=),可以按照字典序比较两个序列。
// 还是来看一些示例代码吧……

/*
* 输入个数不定的一组整数,再将这组整数按倒序输出
*/

#include <iostream>
#include <vector>

using namespace std;

int main()
{
vector<int> L;
int x;
while(cin >> x)
{
L.push_back(x);
}
for (int i = L.size() - 1; i >= 0; i--)
{
cout << L[i] << " ";
}
cout << endl;
return 0;
}

list

头文件:list

下面给出几个常用的定义list对象的方法示例:


list<int>a{1,2,3}
list<int>a(n) //声明一个n个元素的列表,每个元素都是0
list<int>a(n, m) //声明一个n个元素的列表,每个元素都是m
list<int>a(first, last) //声明一个列表,其元素的初始值来源于由区间所指定的序列中的元素,first和last是迭代器

list的基本操作:


a.begin() // 返回指向首元素的随机存取迭代器
a.end() // 返回指向尾元素的下一个位置的随机存取迭代器
a.push_front(x) // 向表头插入元素x
a.push_back(x) // 向表尾插入元素x
a.pop_back() // 删除表尾元素
a.pop_front() // 删除表头元素
a.size() // 返回表长
a.empty() // 表为空时,返回真,否则返回假
a.resize(n) // 改变序列长度,超出的元素将会全部被删除,如果序列需要扩展(原空间小于n),元素默认值将填满扩展出的空间
a.resize(n, val) // 改变序列长度,超出的元素将会全部被删除,如果序列需要扩展(原空间小于n),val将填满扩展出的空间
a.clear() // 删除容器中的所有元素
a.front() // 返回首元素
a.back() // 返回尾元素
a.swap(v) // 将a与另一个list对象进行交换
a.merge(b) // 调用结束后b变为空,a中元素包含原来a和b的元素
a.insert(it, val) // 向迭代器it指向的元素前插入新元素val
a.insert(it, n, val)// 向迭代器it指向的元素前插入n个新元素val
a.insert(it, first, last)
// 将由迭代器first和last所指定的序列[first, last)插入到迭代器it指向的元素前面
a.erase(it) // 删除由迭代器it所指向的元素
a.erase(first, last)// 删除由迭代器first和last所指定的序列[first, last)
a.remove(x) // 删除了a中所有值为x的元素
a.assign(n, val) // 将a中的所有元素替换成n个val元素
a.assign(b.begin(), b.end())
//将a变成b

string

头文件:string

string是STL的字符串类型,通常用来表示字符串。而在使用string之前,字符串通常是用char*表示的。
+string和char*的区别
+string是一个类, char*是一个指向字符的指针。
+string封装了char*,管理这个字符串,是一个char*型的容器。也就是说string是一个容器,里面元素的数据类型是char*
+string不用考虑内存释放和越界。
+string管理char*所分配的内存。每一次string的复制,取值都由string类负责维护,不用担心复制越界和取值越界等。 string提供了一系列的字符串操作函数
+查找find,拷贝copy,删除erase,替换replace,插入insert.

构造和析构函数:

表达式效果
string s生成一个空字符串
string s(str)copy构造函数,生成一个str的复制品
string s(str,idx)将string内始于位置idx的部分当作字符串s的初值
string s(str,idx,len)将string内始于位置idx且长度最多为len的部分当作字符串s的初值
string s(cstr)以C-string字符串cstr作为字符串s的初值
string s(cstr,len)以C-string字符串cstr的前len个字符作为字符串s的初值
string s(num,c)生成一个字符串,包含num个字符c
string s(beg,end)以区间[beg,end]内所有字符作为字符串s的初值

操作函数:

操作函数效果
=,assign()赋以新值
swap()交换两个字符串的内容
+=, append(),push_back()添加字符
insert()插入字符
erase()删除字符
clear()移除全部字符
resize()改变字符数量
replace()替换字符
+串联字符串
==,!=,<,<=,>,>=,compare()比较字符串内容
size(),length()返回字符数量,等效函数
max_size()返回字符的最大可能个数
empty()判断字符串是否为空
capacity()返回重新分配之前的字符容量
reserve()保留一定量内存以容纳一定数量的字符
[ ],at()存取单一字符
>>,getline()从stream中读取某值
<<将某值写入stream
copy()将内容复制为一个C-string
c_str()将内容以C-string形式返回
data()将内容以字符数组形式返回
substr()返回某个子字符串
begin(),end()提供正常的迭代器支持
rbegin(),rend()提供逆向迭代器支持

pair

头文件:utility

STL的utility头文件中描述了一个看上去非常简单的模版类pair,用来表示一个二元组或元素对,并提供了按照字典序对元素对进行大小比较运算符模版函数。 +Example,想要定义一个对象表示一个平面坐标点,则可以:

pair<double, double> p;
cin >> p.first >> p.second;

pair模版类需要两个参数:首元素的数据类型和尾元素的数据类型。pair模版类对象有两个成员:first和second,分别表示首元素和尾元素。 +在其中已经定义了pair上的六个比较运算符:<、>、<=、>=、==、!=,其规则是先比较first,first相等时再比较second,这符合大多数应用的逻辑。当然,也可以通过重载这几个运算符来重新指定自己的比较逻辑。 +除了直接定义一个pair对象外,如果需要即时生成一个pair对象,也可以调用在其中定义的一个模版函数:make_pair。make_pair需要两个参数,分别为元素对的首元素和尾元素。

map

头文件:map

在STL的头文件中map中定义了模版类map和multimap,用有序二叉树表存储类型为pair<const Key, T>的元素对序列。序列中的元素以const Key部分作为标识,map中所有元素的Key值必须是唯一的,multimap则允许有重复的Key值。

可以将map看作是由Key标识元素的元素集合,这类容器也被称为“关联容器”,可以通过一个Key值来快速决定一个元素,因此非常适合于需要按照Key值查找元素的容器。 +map模版类需要四个模版参数,第一个是键值类型,第二个是元素类型,第三个是比较算子,第四个是分配器类型。其中键值类型和元素类型是必要的。

定义map对象的代码示例:

map<string, int> m;

map的基本操作:

/*  向map中插入元素  */
m[key] = value; // [key]操作是map很有特色的操作,如果在map中存在键值为key的元素对, 则返回该元素对的值域部分,否则将会创建一个键值为key的元素对,值域为默认值。所以可以用该操作向map中插入元素对或修改已经存在的元素对的值域部分。
m.insert(make_pair(key, value)); // 也可以直接调用insert方法插入元素对,insert操作会返回一个pair,当map中没有与key相匹配的键值时,其first是指向插入元素对的迭代器,其second为true;若map中已经存在与key相等的键值时,其first是指向该元素对的迭代器,second为false。

/* 查找元素 */
int i = m[key]; // 要注意的是,当与该键值相匹配的元素对不存在时,会创建键值为key(当另一个元素是整形时,m[key]=0)的元素对。
map<string, int>::iterator it = m.find(key); // 如果map中存在与key相匹配的键值时,find操作将返回指向该元素对的迭代器,否则,返回的迭代器等于map的end()(参见vector中提到的begin()和end()操作)。

/* 删除元素 */
m.erase(key); // 删除与指定key键值相匹配的元素对,并返回被删除的元素的个数。
m.erase(it); // 删除由迭代器it所指定的元素对,并返回指向下一个元素对的迭代器。

/* 其他操作 */
m.size(); // 返回元素个数
m.empty(); // 判断是否为空
m.clear(); // 清空所有元素

stack

头文件:stack

stack模版类的定义在stack头文件中。 +stack模版类需要两个模版参数,一个是元素类型,另一个是容器类型,但是只有元素类型是必要的,在不指定容器类型时,默认容器的类型为deque。

定义stack对象的示例代码如下:

stack<int> s;
stack<string> ss;

stack的基本操作有:

s.push(x);  //  入栈
s.pop(); // 出栈
s.top(); // 访问栈顶
s.empty(); // 当栈空时,返回true
s.size(); // 访问栈中元素个数

queue

头文件:queue

queue模版类的定义在queue头文件中。 +queue与stack相似,queue模版类也需要两个模版参数,一个元素类型,一个容器类型,元素类型时必须的,容器类型时可选的,默认为deque类型。

定义queue对象的示例代码必须如下:

queue<int> q;
queue<double> qq;

queue的基本操作:

q.push(x);  //  入队列
q.pop(); // 出队列
q.front(); // 访问队首元素
q.back(); // 访问队尾元素
q.empty(); // 判断队列是否为空
q.size(); // 访问队列中的元素个数

set

头文件:set

set是与集合相关的容器,STL为我们提供了set的实现,在编程题中遇见集合问题直接调用是十分方便的。

定义set对象的示例代码如下:

set<int> s;
set<double> ss;

set的基本操作:

s.begin()       //  返回指向第一个元素的迭代器
s.clear() // 清除所有元素
s.count() // 返回某个值元素的个数
s.empty() // 如果集合为空,返回true(真)
s.end() // 返回指向最后一个元素之后的迭代器,不是最后一个元素
s.equal_range() // 返回集合中与给定值相等的上下限的两个迭代器
s.erase() // 删除集合中的元素
s.find() // 返回一个指向被查找到元素的迭代器
s.get_allocator() // 返回集合的分配器
s.insert() // 在集合中插入元素
s.lower_bound() // 返回指向大于(或等于)某值的第一个元素的迭代器
s.key_comp() // 返回一个用于元素间值比较的函数
s.max_size() // 返回集合能容纳的元素的最大限值
s.rbegin() // 返回指向集合中最后一个元素的反向迭代器
s.rend() // 返回指向集合中第一个元素的反向迭代器
s.size() // 集合中元素的数目
s.swap() // 交换两个集合变量
s.upper_bound() // 返回大于某个值元素的迭代器
s.value_comp() // 返回一个用于比较元素间的值的函数

multiset

头文件:set

在set头文件中,还定义了另一个非常实用的模版类multiset(多重集合)。多重集合与集合的区别在于集合中不能存在相同元素,而多重集合中可以存在。

定义multiset对象的示例代码如下:

multiset<int> s;
multiset<double> ss;

multiset和set的基本操作相似,需要注意的是,集合的count()能返回0(无)或者1(有),而多重集合是有多少个返回多少个。

bitset

头文件:bitset

在 STLSTL 的头文件中 bitset中定义了模版类 bitsetbitset,用来方便地管理一系列的 bitbit 位的类。bitsetbitset 除了可以访问指定下标的 bitbit 位以外,还可以把它们作为一个整数来进行某些统计。

bitsetbitset 模板类需要一个模版参数,用来明确指定含有多少位。

定义 bitsetbitset 对象的示例代码:

const int MAXN = 32;
bitset<MAXN> bt; // bt 包括 MAXN 位,下标 0 ~ MAXN - 1,默认初始化为 0
bitset<MAXN> bt1(0xf); // 0xf 表示十六进制数 f,对应二进制 1111,将 bt1 低 4 位初始化为 1
bitset<MAXN> bt2(012); // 012 表示八进制数 12,对应二进制 1010,即将 bt2 低 4 位初始化为 1010
bitset<MAXN> bt3("1010"); // 将 bt3 低 4 位初始化为 1010
bitset<MAXN> bt4(s, pos, n);// 将 01 字符串 s 的 pos 位开始的 n 位初始化 bt4

bitsetbitset 基本操作:

bt.any()        //  bt 中是否存在置为 1 的二进制位?
bt.none() // bt 中不存在置为 1 的二进制位吗?
bt.count() // bt 中置为 1 的二进制位的个数
bt.size() // bt 中二进制位的个数
bt[pos] // 访问 bt 中在 pos 处的二进制位
bt.test(pos) // bt 中在 pos 处的二进制位是否为 1
bt.set() // 把 bt 中所有二进制位都置为 1
bt.set(pos) // 把 bt 中在 pos 处的二进制位置为 1
bt.reset() // 把 bt 中所有二进制位都置为 0
bt.reset(pos) // 把 bt 中在pos处的二进制位置为0
bt.flip() // 把 bt 中所有二进制位逐位取反
bt.flip(pos) // 把 bt 中在 pos 处的二进制位取反
bt[pos].flip() // 同上
bt.to_ulong() // 用 bt 中同样的二进制位返回一个 unsigned long 值
os << bt // 把 bt 中的位集输出到 os 流

图模板

不带出入度的最简模板

#include <iostream>
#include <vector>
#include <set>

using namespace std;

#define MAX(a, b) ((a) > (b) ? (a) : (b) )

//定义图的定点
typedef struct Vertex {
int id;
vector<int> connectors; //存储节点的后续连接顶点编号
Vertex() : id(-1) {}
Vertex(int nid) : id(nid) {}
} Vertex;

//定义Graph的邻接表表示
typedef struct Graph {
vector<Vertex> vertexs; //存储定点信息
int nVertexs; //计数:邻接数
bool isDAG; //标志:是有向图吗

Graph(int n, bool isDAG) : nVertexs(n), isDAG(isDAG) { vertexs.resize(n); }

//向图中添加边
bool addEdge(int id1, int id2) {
if (!(MAX(id1, id2) < vertexs.size())) return false;

if (isDAG) {
vertexs[id1].connectors.push_back(id2);
}
else {
vertexs[id1].connectors.push_back(id2);
vertexs[id2].connectors.push_back(id1);
}
return true;
}

//广度优先搜索
vector<int> BFS(int start) {
set<int> visited;
vector<int> g, rst;
g.push_back(start);
visited.insert(start);
while(g.size() > 0) {
int id = g[0];
g.erase(g.begin());
rst.push_back(id);
for(int i = 0; i < vertexs[id].connectors.size(); i++) {
int id1 = vertexs[id].connectors[i];
if (visited.count(id1) == 0) {
g.push_back(id1);
visited.insert(id1);
}
}
}
return rst;
}

//深度优先搜索
vector<int> DFS(int start) {
set<int> visited;
vector<int> g, rst;
g.push_back(start);
//cout << "push " << start << " ";
visited.insert(start);
rst.push_back(start);
bool found;
while(g.size() > 0) {
int id = g[g.size()-1];
found = false;
for(int i = 0; i < vertexs[id].connectors.size(); i++) {
int id1 = vertexs[id].connectors[i];
if (visited.count(id1) == 0) {
g.push_back(id1);
rst.push_back(id1);
visited.insert(id1);
//cout << "push " << id1 << " ";
found = true;
break;
}
}
if (!found) {
int id2 = g[g.size()-1];
rst.push_back(-1 * id2);
//cout << "pop " << id2 << " ";
g.pop_back();
}
}
//cout << endl;
return rst;
}
} Graph;

int main() {
Graph g(8, false);
g.addEdge(0, 1);
g.addEdge(0, 3);
g.addEdge(1, 2);
g.addEdge(3, 4);
g.addEdge(3, 5);
g.addEdge(4, 5);
g.addEdge(4, 6);
g.addEdge(5, 6);
g.addEdge(5, 7);
g.addEdge(6, 7);
vector<int> bv = g.BFS(0);
cout << "宽度优先搜索节点顺序:";
for(int j = 0; j < bv.size(); j++)
cout << bv[j] << " ";
cout << endl;

cout << "深度优先搜索节点顺序:";
Graph g1(6, false);
g1.addEdge(0, 1);
g1.addEdge(0, 4);
g1.addEdge(0, 5);
g1.addEdge(1, 5);
g1.addEdge(4, 5);
g1.addEdge(5, 2);
g1.addEdge(5, 3);
g1.addEdge(2, 3);
vector<int> route = g1.DFS(0);
for(int i = 0; i < route.size(); i++)
cout << route[i] << " ";
cout << endl;

char ch;
cin >> ch;
return 0;
}


带出入度的 (2019推免试题)

#include <algorithm>
#include <iostream>
#include <vector>
#include <queue>
#define MAX(a, b) ((a) > (b) ? (a) : (b) )
using namespace std;
int n,m;
vector<int> inDegreelist,outDegreelist;

//定义图的定点
typedef struct Vertex {
int id,inDegree,outDegree;
vector<int> connectors; //存储节点的后续连接顶点编号
Vertex() : id(-1),inDegree(0),outDegree(0) {}
Vertex(int nid) : id(nid),inDegree(0),outDegree(0) {}
} Vertex;

//定义Graph的邻接表表示
typedef struct Graph {
vector<Vertex> vertexs; //存储定点信息
int nVertexs; //计数:邻接数
bool isDAG; //标志:是有向图吗

Graph(int n, bool isDAG) : nVertexs(n), isDAG(isDAG) { vertexs.resize(n); }
Graph() : nVertexs(1), isDAG(1) { vertexs.resize(1); }
//向图中添加边
bool addEdge(int id1, int id2) {
if (!(MAX(id1, id2) < vertexs.size())) return false;

if (isDAG) {
vertexs[id1].connectors.push_back(id2);
vertexs[id1].outDegree++;
vertexs[id2].inDegree++;
}
else {
vertexs[id1].connectors.push_back(id2);
vertexs[id2].connectors.push_back(id1);

vertexs[id1].outDegree++;
vertexs[id1].inDegree++;

vertexs[id2].outDegree++;
vertexs[id2].inDegree++;

}
return true;
}
} Graph;

Graph g;

void init(){
cin>>n>>m;
g=Graph(n, true);
int src,dst;
while(m--){
cin>>src>>dst;
g.addEdge(src,dst);
}
vector<Vertex>::iterator it = g.vertexs.begin();
while(it!=g.vertexs.end()){
inDegreelist.push_back(it->inDegree);
outDegreelist.push_back(it->outDegree);
it++;
}
}
int countin(int n){
return count(inDegreelist.begin(),inDegreelist.end(),n);
}
int countout(int n){
return count(outDegreelist.begin(),outDegreelist.end(),n);
}

bool Is_List(){
//有一个inDegree为0的头和一个outDegree为0的尾,且其余节点入度与出度都为1;
return (countin(0)==1)&&(countout(0)==1)&&(countin(1)==n-1)&&(countout(1)==n-1);
}

bool Is_Tree(){
//有一个inDegree为0的头且其余节点inDegree均为1,且不是链表;
return (countin(0)==1)&&(countin(1)==n-1);
}

bool topologicalSort(){//拓扑排序判断有环无环
int num=0;//记录加入拓扑排序的顶点数
queue<int> q;
for(int i=0;i<n;i++){
if(inDegreelist[i]==0){
q.push(i);//将所有入度为0的顶点入队
}
}

while(!q.empty()){
int u=q.front();//取队首顶点u
q.pop();
for(int i=0;i<g.vertexs[u].connectors.size();i++){
int v=g.vertexs[u].connectors[i];//u的后继节点v
inDegreelist[v]--;//v的入度减1
if(inDegreelist[v]==0){//顶点v的入度减为0则入队
q.push(v);
}
}
g.vertexs[u].connectors.clear();//清空u的所有出边
num++;//加入拓扑排序的顶点数加1
}
if(num==n) return true;//加入拓扑排序的顶点为n,则拓扑排序成功,图无环
else return false;//否则拓扑排序失败,图有环
}


int main(){
init();
if(n==0||m==0){
cout<<"error"<<endl;
}
if(Is_List()){
cout<<"list"<<endl;
}

else if(Is_Tree()){
cout<<"tree"<<endl;
}
else if(topologicalSort()){
cout<<"no ring"<<endl;
}
else{
cout<<"have ring"<<endl;
}
return 0;
}

图算法:找出u到v的所有路径-邻接表

#include<stdio.h>
#include<stdlib.h>

#ifndef BASE
#define BASE
#define TRUE 1
#define FALSE 0
#define OK 1
#define ERROR 0
#define INFEASIBLE -1
#define OVERFLOW -2
typedef int Status;
typedef int bool;
#endif

#define VertexType char //点类型
#define VRType int //边类型
#define maxSize 100
void Visit(VertexType e) {
printf("%c", e);
}

#define MAX_VERTEX_NUM 20
typedef enum{DG, UDG} GraphKind;
typedef struct ArcNode{
int adjV; //边指向的顶点
VRType weight; //权重
struct ArcNode *next;
}ArcNode; //边
typedef struct VNode{
VertexType data;
ArcNode *firstarc;
}VNode, AdjList[MAX_VERTEX_NUM]; //顶点
typedef struct{
GraphKind kind;
int vernum,arcnum;
AdjList vers;
}ALGraph;


/*------------------------
|7.14 创建有向图的邻接表|
------------------------*/
Status InitGraph_AL(ALGraph *pG) { //初始化
int i;
pG->arcnum = 0;
pG->vernum = 0;
for (i=0; i<MAX_VERTEX_NUM; ++i)
pG->vers[i].firstarc = NULL; //VC++6.0中指针初始化为0xcccccccc
return OK;
}
int LocateVex_AL(ALGraph G, VertexType e) { //定位值为e的元素下标
int i;
for (i=0; i<G.vernum; ++i) {
if (G.vers[i].data == e) {
return i;
}
}
return -1;
}
Status CreateDG_AL(ALGraph *pG) { //创建有向图的邻接表
//输入规则:顶点数目->弧的数目->各顶点的信息->各条弧的信息
int i,a,b;
char tmp[MAX_VERTEX_NUM];
char h,t;
ArcNode *p, *q;

InitGraph_AL(pG); //VC++6.0中指针初始化为0xcccccccc,如果不将指针初始化为NULL,会出错
//图的类型
pG->kind = DG;
//顶点数目
scanf("%d", &i); if (i<0) return ERROR;
pG->vernum = i;
//弧的数目
scanf("%d", &i); if (i<0) return ERROR;
pG->arcnum = i;
//各顶点信息
scanf("%s", tmp);
for (i=0; i<pG->vernum; ++i) pG->vers[i].data=tmp[i];
//弧的信息
for (i=0; i<pG->arcnum; ++i) {
scanf("%s", tmp);
h = tmp[0]; t = tmp[2];
a = LocateVex_AL(*pG, h);
b = LocateVex_AL(*pG, t);
if (a<0 || b<0) return ERROR;
p = (ArcNode *)malloc(sizeof(ArcNode)); if (!p) exit(OVERFLOW);
p->adjV=b;p->next=NULL;
if (pG->vers[a].firstarc) { //已经有边了
for (q = pG->vers[a].firstarc; q->next; q=q->next) ; //找到最后一条
q->next = p;
} else { //第一条边
pG->vers[a].firstarc = p;
}
}
return OK;
}

/*----------------------------------------------------------------
|7.28 有向图-从u-v的所有简单路径 |
----------------------------------------------------------------*/
int visit[MAX_VERTEX_NUM]; //前面定义了
VertexType paths[maxSize][MAX_VERTEX_NUM]; //存放路径
int path[MAX_VERTEX_NUM]; //路径
int pathnum=0; //当前是第几条路径
void FindAllPath(ALGraph G, int u,int v,int k) { //u->v当前是第k个位置
int i;
ArcNode *p;
visit[u]=1; //走到了u
path[k]=u; //添加到路径->下标位置为k的结点是u(第k+1个是u)
if (u==v) { //找到了
for (i=0; i<=k; i++) {//复制到paths
paths[pathnum][i] = G.vers[path[i]].data;
}
paths[pathnum][i]='\0'; //结束符
pathnum++; //找下一条路径
} else {
//u的邻边开始找
for (p=G.vers[u].firstarc; p; p=p->next) {
if (visit[p->adjV]==0)
FindAllPath(G, p->adjV, v, k+1); //去这个邻接点找
}
}
// 回溯到上一个结点
// 注意:回溯应该写在外面-->也就是不管有没有找到都要回溯
visit[u]=0;
path[k]=0;
}


int main() {
/*7.28
6
11
ABCDEF
B,A
B,D
C,B
C,F
D,C
D,E
D,F
E,A
F,A
F,B
F,E
B->A
A->B
D->A
*/
int i,j;
int cnt;
ALGraph G;
char tmp[20];

CreateDG_AL(&G);

while (1) {
scanf("%s", tmp); //A->B
i = LocateVex_AL(G, tmp[0]);
j = LocateVex_AL(G, tmp[3]);
for (cnt=0; cnt<MAX_VERTEX_NUM; cnt++) visit[cnt]=0;
pathnum=0;
printf("7.28 输出所有 %c 到 %c 的路径\n", tmp[0], tmp[3]);
FindAllPath(G, i, j, 0);
if (pathnum==0) {
printf("\t- 走不通\n");
}
for (i=0; i<pathnum; i++) {
printf("\t%d %s\n", i+1, paths[i]);
}
}
return 0;
}

树模板

注释版

#include<bits/stdc++.h>
#include<cmath>

#define mem(a,b) memset(a,b,sizeof a);

using namespace std;

typedef long long ll;

const int maxn=50;
int mid[maxn],po[maxn],pr[maxn];
int first;

struct node
{
int l,r;
}T[maxn];

// 中序+先序=>二叉树
int mid_pr_build(int la,int ra,int lb,int rb) // la,ra:表示中序遍历 lb,rb:表示先序遍历
{
    // 这里不能等于,因为假设:len==1,则la==ra,直接返回,但是实际上是有一个 rt 的,却没被建立
if(la>ra) return 0;
int rt=pr[lb]; // 因为先序遍历第一个是根节点
int p1=la,p2;

while(mid[p1]!=rt) p1++; // 在中序遍历中找到根节点
p2=p1-la;
T[rt].l=mid_pr_build(la,p1-1,lb+1,lb+p2); // 左子树(锁定左子树范围的下标)
T[rt].r=mid_pr_build(p1+1,ra,lb+p2+1,rb); // 右子树(锁定右子树范围的下标)

return rt;
}

// 中序+后序=>二叉树
int mid_po_build(int la,int ra,int lb,int rb) // la,ra:表示中序遍历 lb,rb:表示后序遍历
{
if(la>ra) return 0;
int rt=po[rb]; // 因为后序遍历最后一个是根节点
int p1=la,p2;

while(mid[p1]!=rt) p1++; // 在中序遍历中找到根节点
p2=p1-la;
T[rt].l=mid_po_build(la,p1-1,lb,lb+p2-1); // 左子树(锁定左子树范围的下标)
T[rt].r=mid_po_build(p1+1,ra,lb+p2,rb-1); // 右子树(锁定右子树范围的下标)

return rt;
}

// 求树高
int getHeight(int rt)
{
    if(rt==0) return 0;
    return 1+max(getHeight(T[rt].l),getHeight(T[rt].r));
}

// 层序遍历
void bfs(int rt)
{
queue<int> q;
vector<int> v;
q.push(rt);

while(!q.empty())
{
int w=q.front();
q.pop();
v.push_back(w);
if(T[w].l!=0) q.push(T[w].l);
if(T[w].r!=0) q.push(T[w].r);
}

int len=v.size();
for(int i=0;i<len;i++)
printf("%d%c",v[i],i==len-1?'\n':' '); // 推荐这种写法,简洁
}

// 先序遍历
void preT(int rt)
{
if(rt==0) return;
printf(first?first=0,"%d":" %d",rt);
preT(T[rt].l);
preT(T[rt].r);
}

// 中序遍历
void midT(int rt)
{
if(rt==0) return;
midT(T[rt].l);
printf(first?first=0,"%d":" %d",rt);
midT(T[rt].r);
}

// 后序遍历
void postT(int rt)
{
if(rt==0) return;
postT(T[rt].l);
postT(T[rt].r);
printf(first?first=0,"%d":" %d",rt);
}

int main()
{
int n;
while(~scanf("%d",&n))
{
first=1;
for(int i=0;i<n;i++) scanf("%d",&po[i]); // 后序结点
// for(int i=0;i<n;i++) scanf("%d",&pr[i]); // 先序结点
for(int i=0;i<n;i++) scanf("%d",&mid[i]); // 中序结点

int rt=mid_po_build(0,n-1,0,n-1); // 中+后,返回根节点
// int rt=mid_pr_build(0,n-1,0,n-1); // 中+先,返回根节点

bfs(rt); // 层序遍历
// preT(rt); // 先序遍历
// puts("");
// postT(rt); // 后序遍历
// puts("");
// midT(rt); // 中序遍历
// puts("");
}

return 0;
}

简化版(Val As Index,若数据不在1~N内,则可能越界)

#include<bits/stdc++.h>
#include<cmath>

#define mem(a,b) memset(a,b,sizeof a);

using namespace std;

typedef long long ll;

const int maxn=50;
int mid[maxn],po[maxn],pr[maxn];
int first;

struct node
{
int l,r;
}T[maxn];

int mid_pr_build(int la,int ra,int lb,int rb)
{
if(la>ra) return 0;
int rt=pr[lb];
int p1=la,p2;

while(mid[p1]!=rt) p1++;
p2=p1-la;
T[rt].l=mid_pr_build(la,p1-1,lb+1,lb+p2);
T[rt].r=mid_pr_build(p1+1,ra,lb+p2+1,rb);

return rt;
}

int mid_po_build(int la,int ra,int lb,int rb)
{
if(la>ra) return 0;
int rt=po[rb];
int p1=la,p2;

while(mid[p1]!=rt) p1++;
p2=p1-la;
T[rt].l=mid_po_build(la,p1-1,lb,lb+p2-1);
T[rt].r=mid_po_build(p1+1,ra,lb+p2,rb-1);

return rt;
}

int getHeight(int rt)
{
    if(rt==0) return 0;
    return 1+max(getHeight(T[rt].l),getHeight(T[rt].r));
}

void bfs(int rt)
{
queue<int> q;
vector<int> v;
q.push(rt);

while(!q.empty())
{
int w=q.front();
q.pop();
v.push_back(w);
if(T[w].l!=0) q.push(T[w].l);
if(T[w].r!=0) q.push(T[w].r);
}

int len=v.size();
for(int i=0;i<len;i++)
printf("%d%c",v[i],i==len-1?'\n':' ');
}

void preT(int rt)
{
if(rt==0) return;
printf(first?first=0,"%d":" %d",rt);
preT(T[rt].l);
preT(T[rt].r);
}

void midT(int rt)
{
if(rt==0) return;
midT(T[rt].l);
printf(first?first=0,"%d":" %d",rt);
midT(T[rt].r);
}

void postT(int rt)
{
if(rt==0) return;
postT(T[rt].l);
postT(T[rt].r);
printf(first?first=0,"%d":" %d",rt);
}

int main()
{
int n;
while(~scanf("%d",&n))
{
first=1;
for(int i=0;i<n;i++) scanf("%d",&po[i]);
// for(int i=0;i<n;i++) scanf("%d",&pr[i]);
for(int i=0;i<n;i++) scanf("%d",&mid[i]);

int rt=mid_po_build(0,n-1,0,n-1);
// int rt=mid_pr_build(0,n-1,0,n-1);

bfs(rt);
// preT(rt);
// postT(rt);
// midT(rt);
}

return 0;
}

简化版(Val Not As Index,可以存任意的 Val)

#include<bits/stdc++.h>
#include<cmath>

#define mem(a,b) memset(a,b,sizeof a)
#define ssclr(ss) ss.clear(), ss.str("")
#define INF 0x3f3f3f3f
#define MOD 1000000007

using namespace std;

typedef long long ll;

const int maxn=5e4+1000;

int f;
int pre[maxn], in[maxn];

struct node
{
int l,r,d;
}T[maxn];

int create(int l1,int r1,int l2,int r2) // in pre
{
if(l2>r2) return -1;
int rt=l2;
int p1=l1,p2;

while(in[p1]!=pre[rt]) p1++;
p2=p1-l1;

T[rt].d=pre[rt];
T[rt].l=create(l1,p1-1,l2+1,l2+p2);
T[rt].r=create(p1+1,r1,l2+p2+1,r2);

return rt;
}

void postT(int rt)
{
if(rt==-1 || !f) return;
postT(T[rt].l);
postT(T[rt].r);
if(f) f=0, printf("%d\n",T[rt].d);
}

int main()
{
int n;
scanf("%d",&n);
for(int i=0;i<n;i++) scanf("%d",&pre[i]);
for(int i=0;i<n;i++) scanf("%d",&in[i]);
int rt=create(0,n-1,0,n-1);
f=1, postT(rt);

return 0;
}
+ + + + \ No newline at end of file diff --git "a/en/docs/Algorithms/\351\242\230\350\247\243/\344\270\200\347\273\264\345\211\215\347\274\200\345\222\214\357\274\210\345\210\267\345\207\272\344\270\200\351\201\223\345\242\231\357\274\211/index.html" "b/en/docs/Algorithms/\351\242\230\350\247\243/\344\270\200\347\273\264\345\211\215\347\274\200\345\222\214\357\274\210\345\210\267\345\207\272\344\270\200\351\201\223\345\242\231\357\274\211/index.html" new file mode 100644 index 000000000..1bafaaa46 --- /dev/null +++ "b/en/docs/Algorithms/\351\242\230\350\247\243/\344\270\200\347\273\264\345\211\215\347\274\200\345\222\214\357\274\210\345\210\267\345\207\272\344\270\200\351\201\223\345\242\231\357\274\211/index.html" @@ -0,0 +1,18 @@ + + + + + +一维前缀和(刷出一道墙) | 培洋的笔记本📒 + + + + +
+

一维前缀和(刷出一道墙)

tip

在一面很长的墙壁上,工人们用不同的油漆去刷墙,然而可能有些地方刷过以后觉得不好看,他们会重新刷一下。有些部分因为重复刷了很多次覆盖了很多层油漆,小诺很好奇那些地方被刷过多少种颜色的油漆。

输入描述:

若干行输入,每行两个数字B[i],E[i](0<=B[i]<=E[i]<=200000)表示这次刷的墙壁是哪一段
(假设每次刷的时候油漆颜色都和之前的不同),以0 0结束
又若干行输入,每行两个数字begin[i],end[i](0<=begin[i]<=end[i]<=200000)表示小诺询问的段,
以0 0结束

输出描述:

对于每个小诺的询问输出(end[i]-begin[i]+1)行,表示对应询问段的每个点被多少种颜色的油漆覆盖过。

参考代码

#include <bits/stdc++.h>

using namespace std;

int main()
{
vector<int> colors(200001, 0);

int B, E;
while (scanf("%d %d", &B, &E))
{
if (B == 0 && E == 0)
{
break;
}
colors[B]++; // 刷墙起点标记
colors[E + 1]--; // 刷墙终点标记
}

// 计算前缀和
for (int i = 1; i < colors.size(); i++)
{
colors[i] += colors[i - 1];
}

int begin, end;
while (scanf("%d %d", &begin, &end))
{
if (begin == 0 && end == 0)
{
break;
}
for (int i = begin; i <= end; i++)
{
printf("%d\n", colors[i]);
}
}

return 0;
}

题解

使用前缀和思想简化时间复杂度,设计前缀和数组,使输出的数组中元素的值代表其对应节点被刷的次数。

首先初始化前缀和数组,使每一个元素等于为0。

该题的巧妙之处就在于:对于每一个输入的索引B与E,B作为开始刷的节点索引令前缀和数组中对应元素的值+1+1,E+1作为刷墙结束的下一个节点的索引令对应的值1-1。这样在所有输入结束后的计算前缀和阶段,在每一个值为[1,1)[1, -1)的索引区间中的元素值都会加1,而对于某次刷漆终点E的下一个索引为E+1的元素值由于1-1而抵消影响(自身值为1-1加上之前元素所累积的1而归零),此时数组中元素的值才代表其对应节点被刷的次数。

关于超时,可以在函数中加入以下代码消除流操作的缓冲区,并使用"\n"代替endl。

ios::sync_with_stdio(false);
+ + + + \ No newline at end of file diff --git "a/en/docs/Algorithms/\351\242\230\350\247\243/\345\217\215\345\272\217\350\276\223\345\207\272/index.html" "b/en/docs/Algorithms/\351\242\230\350\247\243/\345\217\215\345\272\217\350\276\223\345\207\272/index.html" new file mode 100644 index 000000000..3e05b99be --- /dev/null +++ "b/en/docs/Algorithms/\351\242\230\350\247\243/\345\217\215\345\272\217\350\276\223\345\207\272/index.html" @@ -0,0 +1,18 @@ + + + + + +反序输出 | 培洋的笔记本📒 + + + + +
+

反序输出

tip

设N是一个四位数,它的9倍恰好是其反序数(例如:1234的反序数是4321),求N的值

参考代码

#include <bits/stdc++.h>

using namespace std;

int main() {
for (int i = 1000; i <= 9999; i++) {
int x = i * 9, y = 0;
while (x > 0) {
y = y * 10 + x % 10;
x /= 10;
}
if (i == y) {
cout << i << endl;
}
}
return 0;
}

题解

反序输出可以分为两部分:拆分以及反序拼接

  • 拆分:n位整数求余10可以得到最后一位,再除以10可以得到除去上述最后一位之后的n-1位整数,循环得到每一个最后一位,完成拆分

    while (x > 0) {
    y = y * 10 + x % 10; // 拼接与拆分
    x /= 10;
    }
  • 拼接:将s中的数字拼接成整数

    int sum = 0;
    for (int i = 0; i < s.size(); i++) {
    sum = sum * 10 + s[i];
    }
+ + + + \ No newline at end of file diff --git "a/en/docs/Algorithms/\351\242\230\350\247\243/\346\216\222\345\210\227\347\273\204\345\220\210\357\274\210\346\261\20230\347\232\204\345\200\215\346\225\260\357\274\211/index.html" "b/en/docs/Algorithms/\351\242\230\350\247\243/\346\216\222\345\210\227\347\273\204\345\220\210\357\274\210\346\261\20230\347\232\204\345\200\215\346\225\260\357\274\211/index.html" new file mode 100644 index 000000000..d03e6c40b --- /dev/null +++ "b/en/docs/Algorithms/\351\242\230\350\247\243/\346\216\222\345\210\227\347\273\204\345\220\210\357\274\210\346\261\20230\347\232\204\345\200\215\346\225\260\357\274\211/index.html" @@ -0,0 +1,19 @@ + + + + + +排列组合(求30的倍数) | 培洋的笔记本📒 + + + + +
+

排列组合(求30的倍数)

tip

输入一个数,比如201,让数字随意组合,是否能组合出30的倍数,如果能够组合成30的倍数,就输出最大的倍数,不能就输出-1

例如输入201可以随意组合成

201,210,012,021,102,120等数字

其中120,210都是30的倍数,由于要找最大的,所以答案是210

输入样例:201 +输出样例:210

参考代码

#include <bits/stdc++.h>

using namespace std;

int main() {
string s;
cin >> s;
int maxx = 0, flag = 0;
sort(s.begin(), s.end());
do {
int now = 0;
for (int i = 0; i < s.size(); i++) {
now = now * 10 + s[i] - '0';
}
if (now % 30 == 0) {
flag = 1;
maxx = max(maxx, now);
}
} while (next_permutation(s.begin(), s.end()));
if (flag == 1) {
cout << maxx << endl;
return 0;
}
else {
cout << -1 << endl;
}
}

题解

使用C++ STL提供的排列组合模版

首先将代排列组合的字符串或数组进行排序

sort(list.begin(), list.end());

使用排列组合模版

do {
something();
} while (next_permutation(list.begin(), list.end()));

此时,在每一个do循环中,list按从小到大的顺序进行排列组合遍历

+ + + + \ No newline at end of file diff --git a/en/docs/Curriculum/intro/index.html b/en/docs/Curriculum/intro/index.html new file mode 100644 index 000000000..7959355e4 --- /dev/null +++ b/en/docs/Curriculum/intro/index.html @@ -0,0 +1,18 @@ + + + + + +Welcome | 培洋的笔记本📒 + + + + +
+

Welcome

tip

欢迎来到笔记本的课程学习部分

支持我!

如果可以帮到你的话就给个免费的Star吧!

+ + + + \ No newline at end of file diff --git "a/en/docs/Curriculum/\346\223\215\344\275\234\347\263\273\347\273\237\350\257\276\350\256\276/Environment-Configuration/index.html" "b/en/docs/Curriculum/\346\223\215\344\275\234\347\263\273\347\273\237\350\257\276\350\256\276/Environment-Configuration/index.html" new file mode 100644 index 000000000..71d559364 --- /dev/null +++ "b/en/docs/Curriculum/\346\223\215\344\275\234\347\263\273\347\273\237\350\257\276\350\256\276/Environment-Configuration/index.html" @@ -0,0 +1,18 @@ + + + + + +Linux系统下GeekOS的环境配置 | 培洋的笔记本📒 + + + + +
+

Linux系统下GeekOS的环境配置

一、必须要知道的原理

1. GeekOS:

GeekOS是一个基于x86体系结构的微操作系统内核. 由美国马理兰大学的教师开发, 主要用于操作系统课程设计的教育. 出于教学目的, 这个系统内核设计简单, 却又兼备实用性, 它可以运行在真正的X86 PC硬件平台.

在下载好GeekOS后, 在geekos-version/src/目录下会存在project0-project6这7个文件夹, 分别代表GeekOS设计的7个学习任务.

在环境搭建完成之后, 我们进行的每一个项目的代码编写几乎都在geekos-version/src/projecti/src/geekos/文件夹下, 每一个项目的编译都在geekos-version/src/projecti/build文件夹下进行, 即要在终端中通过cd进入该目录, 再执行make dependmake命令.

2. bochs:

bochs是一个x86硬件平台的模拟器. GeekOS运行依托于bochs.

在安装好Linux操作系统后需要安装bochs以及nasm, 以完成GeekOS环境的搭建.

3. 二者之间的关系

GeekOS的开发环境可分为两部分, 一部分是编译环境, 一部分是运行环境.

在编译过程中, 使用Linux自带的编译环境以及编译命令对特定的GeekOS project进行编译即可. 首先在终端中通过cd命令进入geekos-version/src/projecti/build目录, 再执行make depend和make命令. 编译后生成bochs的镜像文件fd.img, 这是bochs运行所必须的文件,也是GeekOS运行环境的前置配置.

二、安装与配置

安装其实非常简单, 这里主要花篇幅介绍安装后解决报错的配置.

1. 安装

需要下载GeekOS Files, 安装bochs, nasm等.

GeekOS直接下载压缩包, 解压即可.

arch系用户通过以下命令即可完成bochs和nasm的安装.

yay -S bochs nasm

其他发行版的安装方法这里不再赘述, 可选择从群文件里下载源文件并编译安装, 师兄师姐也在群文件里给了一些教程指导.

2. 配置

完成安装后, 我们就可以开始对project0中的代码进行完善了, 并在geekos-version/src/project0/build目录下执行make depend以及make命令, 目的是编译project0的代码, 生成bochs的镜像文件fd.img以构建GeekOS的运行环境.

但很多报错就是在make这一步产生的, 因此在安装完成后还需要进行配置.

配置分为两部分, 一个是对GeekOS中makefile的修改, 另一部分是对bochs的配置文件的修改.

GeekOS中makefile的配置

综合网上很多师兄师姐的博客,这三个错误应该是每个人都会遇到的,所以当你不确定自己能不能运行时,请全部完成这三个步骤.

  • 问题: warnings being treated as errors

    解决方案:

    修改geekos-version/src/projecti/build目录下的makefie文件(由于每个project下都存在一个对应的makefile文件, 所以在每个项目编译前都要修改一次)

    // 修改第149行:
    CC_GENERAL_OPTS := $(GENERAL_OPTS) -Werror
    // 修改后:
    CC_GENERAL_OPTS := $(GENERAL_OPTS)
  • 问题: X86_64与i386输出不兼容

    解决方案:

    修改geekos-version/src/projecti/build目录下的makefie文件

    # Target C compiler.  gcc 2.95.2 or later should work. 100行
    TARGET_CC := $(TARGET_CC_PREFIX)gcc -m32

    # Host C compiler. This is used to compile programs to execute on
    # the host platform, not the target (x86) platform. On x86/ELF
    # systems, such as Linux and FreeBSD, it can generally be the same
    # as the target C compiler. 106行
    HOST_CC := gcc -m32

    # Target linker. GNU ld is probably to only one that will work.109行
    TARGET_LD := $(TARGET_CC_PREFIX)ld -m elf_i386
  • 问题: undefined reference to '__stack_chk_fail'

    解决方案:

    修改geekos-version/src/projecti/build目录下的makefie文件

    # Flags used for all C source files
    // 修改前:148行
    GENERAL_OPTS := -O -Wall $(EXTRA_C_OPTS)
    // 修改后:
    GENERAL_OPTS := -O -Wall -fno-stack-protector $(EXTRA_C_OPTS)

bochs配置文件的修改

在geekos-version/src/projecti/build目录下创建.bochsrc文件

# An example .bochsrc file.
# You will need to edit these lines to reflect your system.
vgaromimage: file=/usr/local/share/bochs/VGABIOS-lgpl-latest
# 请根据自己的实际安装路径更改
romimage: file=/usr/local/share/bochs/BIOS-bochs-latest
# 请根据自己的实际安装路径更改
megs: 8
boot: a
floppya: 1_44=fd.img, status=inserted
#floppya: 1_44=fd_aug.img, status=inserted
log: ./bochs.out
# keyboard_serial_delay: 200
# vga_update_interval: 300000
mouse: enabled=0
private_colormap: enabled=0
# i440fxsupport: enabled=0
# Uncomment this to write all bochs debugging messages to
# bochs.out. This produces a lot of output, but can be very
# useful for debugging the kernel.
#debug: action=report

到此为止, 所有的配置工作已经完成, 可以正常的进行下一步的代码完善.

如果需要验证自己是否配置成功, 可以参照下一篇博客GeekOS project 0的实现, 在本篇博客中会有完整的C语言代码编写以及编译、使用bochs执行的过程.

+ + + + \ No newline at end of file diff --git "a/en/docs/Curriculum/\346\223\215\344\275\234\347\263\273\347\273\237\350\257\276\350\256\276/GeekOS-project-0/index.html" "b/en/docs/Curriculum/\346\223\215\344\275\234\347\263\273\347\273\237\350\257\276\350\256\276/GeekOS-project-0/index.html" new file mode 100644 index 000000000..07396cd5b --- /dev/null +++ "b/en/docs/Curriculum/\346\223\215\344\275\234\347\263\273\347\273\237\350\257\276\350\256\276/GeekOS-project-0/index.html" @@ -0,0 +1,18 @@ + + + + + +GeekOS project 0的实现 | 培洋的笔记本📒 + + + + +
+

GeekOS project 0的实现

在上一篇博客中我们完成了GeekOS环境的配置,下面我们来验证环境配置的成功与否以及project 0的实现。

1. 编写C语言代码

编写geekos-version/src/projecti/src/geekos/main.c文件

编写函数project0实现检测键盘输入Ctrl+d结束线程。

void project0(){
Print("To Exit hit Ctrl + d.\n");
Keycode keycode;
while(1)
{
if(Read_Key(&keycode))
{
if(!((keycode & KEY_SPECIAL_FLAG) || (keycode & KEY_RELEASE_FLAG)))// 不是特殊键或者弹起
{
int asciiCode = keycode & 0xff;//d
if((keycode & KEY_CTRL_FLAG)==KEY_CTRL_FLAG && asciiCode=='d')//ctrl+d
{
Print("\n---------Adios!---------\n");
# 这里需要注意素质
Exit(1);
}else
{
Print("%c",(asciiCode=='\r') ? '\n' : asciiCode);
}
}
}
}
}

在main函数中添加以下代码,实现自定义函数的调用,创建线程。

    struct Kernel_Thread *thread;
thread = Start_Kernel_Thread(&project0,0,PRIORITY_NORMAL,false);

总体代码

/*
* GeekOS C code entry point
* Copyright (c) 2001,2003,2004 David H. Hovemeyer <daveho@cs.umd.edu>
* Copyright (c) 2003, Jeffrey K. Hollingsworth <hollings@cs.umd.edu>
* Copyright (c) 2004, Iulian Neamtiu <neamtiu@cs.umd.edu>
* $Revision: 1.51 $
*
* This is free software. You are permitted to use,
* redistribute, and modify it as specified in the file "COPYING".
*/

#include <geekos/bootinfo.h>
#include <geekos/string.h>
#include <geekos/screen.h>
#include <geekos/mem.h>
#include <geekos/crc32.h>
#include <geekos/tss.h>
#include <geekos/int.h>
#include <geekos/kthread.h>
#include <geekos/trap.h>
#include <geekos/timer.h>
#include <geekos/keyboard.h>

void project0(){
Print("To Exit hit Ctrl + d.\n");
Keycode keycode;
while(1)
{
if(Read_Key(&keycode))
{
if(!((keycode & KEY_SPECIAL_FLAG) || (keycode & KEY_RELEASE_FLAG)))// 不是特殊键或者弹起
{
int asciiCode = keycode & 0xff;//d
if((keycode & KEY_CTRL_FLAG)==KEY_CTRL_FLAG && asciiCode=='d')//ctrl+d
{
Print("\n---------Adios! Motherfucker!---------\n");
Exit(1);
}else
{
Print("%c",(asciiCode=='\r') ? '\n' : asciiCode);
}
}
}
}
}


/*
* Kernel C code entry point.
* Initializes kernel subsystems, mounts filesystems,
* and spawns init process.
*/
void Main(struct Boot_Info* bootInfo)
{
Init_BSS();
Init_Screen();
Init_Mem(bootInfo);
Init_CRC32();
Init_TSS();
Init_Interrupts();
Init_Scheduler();
Init_Traps();
Init_Timer();
Init_Keyboard();

Set_Current_Attr(ATTRIB(BLACK, GREEN|BRIGHT));
Print("Welcome to GeekOS!\n");
Set_Current_Attr(ATTRIB(BLACK, GRAY));

// TODO("Start a kernel thread to echo pressed keys and print counts");

struct Kernel_Thread *thread;
thread = Start_Kernel_Thread(&project0,0,PRIORITY_NORMAL,false);

/* Now this thread is done. */
Exit(0);
}

2. 使用Linux的编译系统对C语言代码进行编译

每一个项目的编译都在geekos-version/src/projecti/build文件夹下进行,即要在终端中通过cd进入该目录。

执行

make depend
make

此时,该目录下会生成bochs.out、depend.mak以及fd.img文件,bochs.out文件是日志输出文件,depend.mak是编译中间生成的文件,最终生成的fd.img是最重要的GeekOS映像文件,有了它才能使用bochs运行GeekOS操作系统。感恩它!

目录下的文件应该是这样的结构:

下面就可以使用bochs运行GeekOS系统了,可以说bochs的运行依赖两个文件,一个是配置文件.bochsrc,一个是映像文件fd.img,映像文件的加载路径需要在.bochsrc文件中定义,在环境配置的博客中已经介绍过了。这里再贴一下内容。

# An example .bochsrc file.
# You will need to edit these lines to reflect your system.
vgaromimage: file=/usr/local/share/bochs/VGABIOS-lgpl-latest
# 请根据自己的实际安装路径更改
romimage: file=/usr/local/share/bochs/BIOS-bochs-latest
# 请根据自己的实际安装路径更改
megs: 8
boot: a
floppya: 1_44=fd.img, status=inserted
#floppya: 1_44=fd_aug.img, status=inserted
log: ./bochs.out
# keyboard_serial_delay: 200
# vga_update_interval: 300000
mouse: enabled=0
private_colormap: enabled=0
# i440fxsupport: enabled=0
# Uncomment this to write all bochs debugging messages to
# bochs.out. This produces a lot of output, but can be very
# useful for debugging the kernel.
#debug: action=report

在这个目录下打开终端,执行

bochs

选择6,按下回车

可能会出现黑屏情况,这是因为进入了调试模式,终端正在等待命令,在终端输入

c

即可完成bochs的正式启动,最终的效果

+ + + + \ No newline at end of file diff --git "a/en/docs/Curriculum/\346\225\260\345\255\227\345\233\276\345\203\217\345\244\204\347\220\206/Note/index.html" "b/en/docs/Curriculum/\346\225\260\345\255\227\345\233\276\345\203\217\345\244\204\347\220\206/Note/index.html" new file mode 100644 index 000000000..959895d9b --- /dev/null +++ "b/en/docs/Curriculum/\346\225\260\345\255\227\345\233\276\345\203\217\345\244\204\347\220\206/Note/index.html" @@ -0,0 +1,60 @@ + + + + + +数字图像处理复习笔记 | 培洋的笔记本📒 + + + + +
+

数字图像处理复习笔记

tip

本笔记使用的教材是陈天华所著、清华大学出版社的《数字图像处理及应用:使用MATLAB分析与实现》。

Take me to church, I'll worship like a dog at the shrine of your lies.

I'll tell you my sins, and you can sharpen your knife.

Offer me that deathless death, good god, let me give you my life.

第2章 数字图像处理基础

图像的采样与量化

为了从模拟图像产生数字图像,需要进行采样与量化,即对模拟图像在空间(x,y)(x, y)方向上以及亮度函数f(x,y)f(x, y)进行离散化处理。

  • 采样:

    模拟图像在空间(x,y)(x, y)上的离散化称为采样。

    若在x和y方向上均进行等间距的采样,则称为均匀采样。

    采样点的多少以及采样的间隔直接影响着图像的质量。

  • 量化:

    模拟图像经过采样后,在时间和空间上被离散化为像素,但采样所得的像素点的像素值依然是连续量。量化过程就是以离散的灰度值信息代替连续的模拟量灰度信息的过程,是一对多的过程。

    量化可以分为线性量化以及非线性量化。

灰度级一般以2的整数次幂表示,如大多图像为彩色RGB图像,256个灰度级,位深度为8(28=2562^8=256),则对于分辨率为256×256的图像来说,需要256×256×3×8位表示,即每一个像素实际上使用24位表示。

距离度量

4邻域N4(p)N_4(p)即该像素上下左右的四个点,8邻域N8(p)N_8(p),对角邻域ND(p)N_D(p)

image-20231204174356477

像素之间的距离度量必须满足三种关系:

  1. 非负性
  2. 对称性
  3. 三角不等式

三种距离度量:

已知,点pp的坐标为(x,y)(x, y),点qq的坐标为(s,t)(s,t)

  1. 欧氏距离:
    De(p,q)=(xs)2+(yt)2(1)D_e(p,q)=\sqrt{(x-s)^2+(y-t)^2}\tag{1}
  2. 城市距离
    D4(p,q)=xs+yt(2)D_4(p,q)=\vert x-s\vert+\vert y-t\vert \tag{2}
  3. 棋盘距离
    D8(p,q)=max(xs,yt)(3)D_8(p,q)=max(\vert x-s\vert,\vert y-t\vert)\tag{3}

图像质量评价

  • MSE越小代表待测图像与参考图像越接近,均方误差公式如下:

    MSE=1MNx=1My=1N[f(x,y)g(x,y)]2(4)MSE=\frac{1}{MN}\sum_{x=1}^{M}\sum_{y=1}^{N}[f(x,y)-g(x,y)]^2\tag{4}
  • SNR:参考图像像素值的平方均值与均方误差的比值的对数的10倍。越大代表图像质量越好

  • PSNR:峰值信噪比,图像所允许的最大像素值的平方与均方误差的比值的对数的10倍,这是信噪比的改良版本,消除了图像自身像素值对评价指标的影响。越大代表图像质量越好

  • SSIM为结构相似系数,越大代表图像质量越好

image-20231204175437763

灰度直方图

image-20231204182548156

第3章 图像变换

傅里叶变换

可以使用傅里叶变换的函数需要满足狄利克莱条件(Dirichlet Condition):

  1. 具有有限个间断点
  2. 具有有限个极值点
  3. 绝对可积

傅里叶变换的特性:

image-20231205153724162

info

傅里叶频谱图的特征:

  • 频率分布:傅里叶频谱图展示了图像在不同频率下的强度分布。高频部分对应图像中的边缘和细节,低频部分对应图像中的整体结构和大致轮廓。
  • 能量分布:图像中不同频率的能量在频谱图中以不同强度的幅度呈现。高幅度的频率分量通常标示着图像中强烈的变化或边缘。
  • 平移不变性:傅里叶变换具有平移不变性,这意味着在频域中图像的平移对应于幅度谱中相位的改变而不影响幅度谱本身。

连续傅里叶变换

一维连续傅里叶变换

F(u)=+f(x)ej2πuxdx(5)F(u)=\int_{-\infty}^{+\infty}f(x)e^{-j2\pi ux}dx\tag{5}

一维连续傅里叶逆变换

f(x)=F(u)ej2πuxdu(6)f(x)=\int_{-\infty}^{\infty}F(u)e^{j2\pi ux}du\tag{6}

二维连续傅里叶变换

F(u,v)=f(x,y)ej2π(ux+vy)dxdy(7)F(u,v)=\int_{-\infty}^{\infty}\int_{-\infty}^{\infty}f(x,y)e^{-j2\pi (ux+vy)}dxdy\tag{7}

二维连续傅里叶逆变换

f(x,y)=F(u,v)ej2π(ux+vy)dudv(8)f(x,y)=\int_{-\infty}^{\infty}\int_{-\infty}^{\infty}F(u,v)e^{j2\pi (ux+vy)}dudv\tag{8}

离散傅里叶变换

一维离散傅里叶变换

F(u)=x=0N1f(x)ej2πuxN(9)F(u)=\sum_{x=0}^{N-1}f(x)e^{-j\frac{2\pi ux}{N}}\tag{9}

一维离散傅里叶逆变换

f(x)=1Nu=0N1F(u)ej2πuxN(10)f(x)=\frac{1}{N}\sum_{u=0}^{N-1}F(u)e^{j\frac{2\pi ux}{N}}\tag{10}

二维离散傅里叶变换

F(u,v)=x=0M1y=0N1f(x,y)ej2π(uxM+vyN)(11)F(u,v)=\sum_{x=0}^{M-1}\sum_{y=0}^{N-1}f(x,y)e^{-j2\pi (\frac{ux}{M}+\frac{vy}{N})}\tag{11}

二维离散傅里叶逆变换

f(x,y)=1MNu=0M1v=0N1F(u,v)ej2π(uxM+vyN)(12)f(x,y)=\frac{1}{MN}\sum_{u=0}^{M-1}\sum_{v=0}^{N-1}F(u,v)e^{j2\pi (\frac{ux}{M}+\frac{vy}{N})}\tag{12}

第4章 图像处理的基本运算

点运算

下图展示了点运算的主要应用:对比度拉伸

image-20231206232333992

主要应用:

  1. 对比度拉伸
  2. 光度学标定
  3. 显示标定
  4. 轮廓线
  5. 裁剪

比例缩放

使用齐次坐标对图像进行比例缩放。

全比例缩放是指x方向和y方向使用相同的比例系数。

当对图像进行放大时,会产生之前没有的像素,此时需要使用插值来解决。

灰度级插值

最近邻法插值

image-20231204211821512

双线性插值(Bilinear)

img

例题:

image-20231207094211248

image-20231204214449115

第5章 图像空域增强

img

直接灰度变换

线性变换

是指将输入图像的灰度值的动态范围按线性关系变换至指定范围或灰度的整个动态范围。

  • 按比例线性变换
    • 均匀线性变换
    • 限幅线性变换
  • 分段线性拉伸

非线性变换

  • 对数拉伸可以拉伸低亮度区域,压缩高亮度区域。
  • 指数拉伸可以拉伸高亮度区域,压缩低亮度区域。

注意,上述的拉伸是指新的图像在该灰度范围内分布的更均匀,即出现的灰度级更多压缩的意义是指新的图像在该灰度范围内分布的更狭窄,即出现的灰度级更少。

例题:

image-20231204221520210

答:该图像存在较亮的问题,灰度直方图分布在较高的区域。从直接灰度变换增强法的角度,我们可以采用指数函数变换,对高灰度区进行扩展。

tip

分析:该图像中没有低灰度的像素,全部集中在高灰度部分,因此使用指数函数变换将原来的集中的高灰度区域进行拉伸,扩展其灰度分布的范围,从而起到增强效果。

直方图灰度变换

直方图均衡化

  • 目的:

    将一非均匀灰度概率密度分布的图像,通过某种灰度变换,将其变成一幅具有均匀灰度概率密度分布的目的图像。

  • 步骤:

    1. 根据原始图像计算原始灰度密度分布函数rkr_k

    2. 计算变换函数,即累积密度分布函数sks_k

    3. 计算均衡化后的灰度级s(k)s(k),即使用以下公式进行均衡化映射:

      s(k)=ceil(sk×L1)(13)s(k)=\mathbf{ceil}(s_k\times L-1)\tag{13}

      其中,LL是原直方图中灰度级数。

    4. 画出最终均衡化后的直方图

例题:

image-20231204220310925

直方图规定化

  • 目的:

    调整原始图像的直方图使其符合某一规定的直方图的要求。

  • 思想:

    将原始图像和规定图像进行均衡化后,二者的灰度概率密度分布相同,进行对应映射即可。

  • 步骤:

    1. 对原始图像进行均衡化,得到映射后的s(k)s(k)
    2. 对规定的图像直方图进行均衡化,得到映射后的z(k)z(k)
    3. 由于s(k)s(k)z(k)z(k)都是归一化后的均匀分布,使用二者之间的就近原则将s(k)s(k)对应到给出的规定直方图的灰度级
    4. 画出规定化后的直方图
  • 例题:

    image-20231207100622160

    image-20231207100636525

    image-20231207100655656

    此时已经获得了原始图像均衡化后的灰度级与目标规定化输出的图像的灰度级之间的映射关系,最后一步按照rkr_k画出目标规定化输出的图像直方图即可。

空域滤波增强

空域滤波可以根据作用分为平滑滤波以及锐化滤波。

平滑滤波

info

噪声的特点:

  • 随机性
  • 叠加性
  • 噪声与图像之间具有相关性
线性平滑滤波
  1. 邻域平均滤波
  2. 加权平均滤波
  3. 高斯滤波
非线性平滑滤波
  1. 中值滤波
  2. 最大值滤波
  3. 最小值滤波

锐化滤波

锐化滤波消除或减弱图像的低频分量从而增强图像中物体的边缘轮廓信息,使得除边缘以外的像素点的灰度值趋向于零。

  1. 梯度法
  2. 拉普拉斯算子,非线性滤波
  3. 定向滤波:检测特定方向边缘的滤波,通常在模板上表现为在该特定方向上模板值较大

下面的表格展示了水平方向的定向锐化模板

-1-1-1
222
-1-1-1

下面的表格展示了对角方向的定向锐化模板

-12-1
-12-1
-12-1

第6章 图像频域增强

图像从空域变换到频域后,低频分量对应图像中灰度值变化缓慢的区域,可能是图像的背景高频分量表示图像中灰度值变化迅速的区域,可能是图像的噪声或物体的边缘

在图像频谱(经过中心偏移的)中,中心代表低频信息,四周代表高频信息

低通滤波

抑制、衰减高频分量,保留低频分量。

理想低通滤波器(ILPF)

tip

ILPF means Ideal Low Pass Filter.

image-20231205161518110

H(u,v)={1D(u,v)D00D(u,v)>D0(14)H(u,v)=\begin{cases}1&D(u,v)\leq D_0\\ 0&D(u,v)>D_0\end{cases}\tag{14}
D(u,v)=u2+v2(15)D(u,v)=\sqrt{u^2+v^2}\tag{15}

在截止频率D0D_0处垂直截止,通过频率和截止频率在D0D_0处具有不连续性,通带和阻带之间没有过渡,会产生无限的振铃效应。

巴特沃斯低通滤波器(BLPF)

通带与阻带之间过度平坦,通过频率和截止频率之间没有明显的不连续性,不会出现振铃效应

H(u,v)=11+(21)[D(u,v)D0]2n(16)H(u,v)=\frac{1}{1+(\sqrt{2}-1)[\frac{D(u,v)}{D_0}]^{2n}}\tag{16}

其中,取H(u,v)H(u,v)下降到最大值的0.707时的D(u,v)D(u,v)作为截止频率D0D_0

即当D(u,v)D(u,v)达到截止频率时,D(u,v)D0=1\frac{D(u,v)}{D_0}=1,此时H(u,v)=0.707H(u,v)=0.707

指数低通滤波器(ELPF)

一般情况下,取H(u,v)H(u,v)下降到最大值的1/2时的D(u,v)D(u,v)作为截止频率。

H(u,v)=e[D(u,v)D0]n(17)H(u,v)=e^{-[\frac{D(u,v)}{D_0}]^n}\tag{17}

截止频率和通过频率之间具有更光滑的过渡,没有振铃现象。且指数低通滤波器比巴特沃斯低通滤波器衰减更快,处理后的图像更模糊

梯形低通滤波器(TLPF)

由于在D0D_0尾部包含高频分量D1D_1,处理后图像的清晰度较理想低通滤波器有所改善,但会出现振铃效应

H(u,v)={1D(u,v)<D0D(u,v)D1D0D1D0D(u,v)D10D(u,v)>D1(18)H(u,v)=\begin{cases}1&D(u,v)<D_0\\ \\ \frac{D(u,v)-D_1}{D_0-D_1}&D_0\leq D(u,v)\leq D_1\\ \\ 0&D(u,v)>D_1\end{cases}\tag{18}

高通滤波

抑制低频分量,保留高频分量。

理想高通滤波器(IHPF)

H(u,v)={1D(u,v)>D00D(u,v)D0(19)H(u,v)=\begin{cases}1&D(u,v)>D_0\\ 0&D(u,v)\leq D_0\end{cases}\tag{19}

性质与理想低通滤波器一样,垂直截断,具有无限振铃效应。

巴特沃斯高通滤波器(BHPF)

H(u,v)=11+(21)[D0D(u,v)]2n(20)H(u,v)=\frac{1}{1+(\sqrt{2}-1)[\frac{D_0}{D(u,v)}]^{2n}}\tag{20}

通常采取H(u,v)H(u,v)下降到最大值的0.707时的D(u,v)D(u,v)作为截止频率,没有振铃效应

指数高通滤波器(EHPF)

H(u,v)=e[D0D(u,v)]n(21)H(u,v)=e^{-[\frac{D_0}{D(u,v)}]^n}\tag{21}

梯形高通滤波器(THPF)

H(u,v)={1D(u,v)>D0D(u,v)D1D0D1D1D(u,v)D00D(u,v)<D1(22)H(u,v)=\begin{cases}1&D(u,v)>D_0\\ \\ \frac{D(u,v)-D_1}{D_0-D_1}&D_1\leq D(u,v)\leq D_0\\ \\ 0&D(u,v)<D_1\end{cases}\tag{22}

带通和带阻滤波

带通滤波

顾名思义,带通滤波就是允许某一特定频率的信号通过,而衰减频率范围之外的信号。

理想带通滤波的传递函数为:

H(u,v)={0D(u,v)<D0w21D0w2D(u,v)D0+w20D(u,v)D0+w2(23)H(u,v)=\begin{cases}0&D(u,v)<D_0-\frac{w}{2}\\1&D_0-\frac{w}{2}\leq D(u,v)\leq D_0+\frac{w}{2}\\0&D(u,v)\geq D_0+\frac{w}{2}\end{cases}\tag{23}

其中,D0D_0是通带中心频率,ww是通带宽度。

带阻滤波

顾名思义,带阻滤波就是衰减某一特定频率范围的信号,而允许频率范围之外的信号通过。

理想带阻滤波的传递函数为:

H(u,v)={1D(u,v)<w10w1D(u,v)w21D(u,v)>w2(24)H(u,v)=\begin{cases}1&D(u,v)<w_1\\0&w_1\leqslant D(u,v)\leq w_2\\1&D(u,v)> w_2\end{cases}\tag{24}

第7章 彩色图像处理

伪彩色图像的处理

伪彩色图像的增强一般用于B超、石油开采以及安检方面。

全彩色图像的处理

第8章 图像复原

图像退化机理

退化原因

  1. 成像系统镜头聚焦不准产生的散焦
  2. 相机与景物之间的相对运动
  3. 成像系统存在的各种非线性因素以及系统本身的性能
  4. 模拟图像在数字化过程中,因数字化的精度和误差而损失图像细节
  5. 成像系统中存在的各种随机噪声

复原机理

图像复原的过程一般是沿着图像退化的逆向过程进行的。首先根据先验知识分析退化原因,了解图像变质的原理,在此基础上建立图像的退化模型,然后以图像退化的逆过程对图像进行处理。

图像复原与图像增强的区别和联系

联系:二者从表面上看都是为了提高图像的质量。

区别:二者在目的和过程上都有明显的区别。

在目的上,图像增强是为了提高图像的视感质量,增强后的图像可能损失一些信息,并与原始图像有一定的差异;而图像复原是为了使待复原的图像与原始图像尽可能的接近。

在过程上。图像增强一般不考虑图像退化的真实过程,而是使用特定技术来突出和强调图像中所关注的特征;而图像复原是直接针对图像产生退化的原因建立相应的数学模型,并沿着退化的逆向进行复原。

图像退化模型

图像f(x,y)f(x,y)经过退化系统H(x,y)H(x,y)后再与噪声n(x,y)n(x,y)叠加,得到最后退化的图像g(x,y)g(x,y)

退化系统的一般特性:

  1. 线性特性。
  2. 空间位置不变性:经过退化系统后的输出只有输入有关,而与输入在图像中的位置无关。

第11章 图像分割

阈值分割法

最佳阈值法

假设图像由物体和背景两部分组成,且物体像素的分布和背景像素的分布均符合正态分布,物体像素的正态分布概率密度函数的均值为μ\mu,背景像素的正态分布概率密度函数的均值为ν\nu,则最佳阈值法确定的阈值为

t=μ+ν2(25)t=\frac{\mu +\nu}{2}\tag{25}

判别分析法

通过计算灰度直方图的0阶矩和1阶矩最大化类间方差从而得到最佳阈值。

边缘检测的基本原理

  1. 什么是图像的边缘?

    图像中结构具有突变的地方,表明一个区域的终结,也是另一个区域的开始,这种不连续性称为边缘。

  2. 边缘信号的类型?

    1. 阶跃型,但实际情况中不可能有完全理想的突变。突变处为边缘点。
    2. 渐变型,逐渐增大或逐渐减小。渐变的中间位置为边缘点。
    3. 台阶型。台阶的中间为边缘点或认为台阶两侧为两个边缘点。

边缘检测算子

Robert算子

  • 一阶导数算子。
  • 利用局部差分方法,采用对角线方向相邻两像素之差近似梯度幅值检测边缘。
  • 对噪声敏感,不能抑制噪声

Sobel算子

  • 一阶导数算子。
  • 先进行加权平均,然后进行微分运算。
  • 对噪声具有一定的抑制能力。

Prewitt算子

  • 一阶导数算子。
  • 利用局部差分平均方法寻找边缘。两个模板一个检测水平边缘,一个检测竖直边缘
  • 对噪声具有一定的抑制能力。

Laplace算子

  • 二阶导数算子。
  • 使噪声成分得到加强,对噪声更敏感。
  • 与Marr边缘检测算子一样,一般先进行低通滤波平滑后再进行二阶微分运算。

Canny边缘检测

  1. 使用高斯滤波平滑图像
  2. 计算梯度幅值和方向
  3. NMS非极大值抑制,保留每个像素点上梯度强度的极大值,删掉其他值
  4. 使用双阈值方法确定强边界和弱边界
  5. 滞后边界跟踪

课后习题中的问答题

  1. 傅里叶频谱图的特征:

    • 频率分布:傅里叶频谱图展示了图像在不同频率下的强度分布。高频部分对应图像中的边缘和细节,低频部分对应图像中的整体结构和大致轮廓。
    • 能量分布:图像中不同频率的能量在频谱图中以不同强度的幅度呈现。高幅度的频率分量通常标示着图像中强烈的变化或边缘。
    • 平移不变性:傅里叶变换具有平移不变性,这意味着在频域中图像的平移对应于幅度谱中相位的改变而不影响幅度谱本身。
  2. 如何在频域实现图像平滑

    1. 利用傅里叶变换将图像从空域转换为频域;
    2. 将频域图像进行中心偏移,使得低频信息在频谱中央;
    3. 利用滤波函数生成一个与图像大小相同的二维频域矩阵;
    4. 将图像的频域与滤波器的频域相应相乘;
    5. 将相乘后的频域再次逆平移到频域的原始位置;
    6. 将得到的频域进行逆傅里叶变换,得到滤波后的空域图像。
  3. 一阶边缘检测算子与Laplace算子的异同。

    • 相同点:都可以检测边缘并且对噪声敏感
    • 不同点:一阶边缘检测算子检测到的边缘都有明确的方向,而Laplace算子对各种方向的边缘都有较好的响应
  4. 已知一幅图像受到加性随机噪声污染,分析并写出三种去除或降低噪声的方法。

    空域滤波(均值滤波、中值滤波),频域滤波(巴特沃斯低通滤波),图像恢复技术。

  5. 分析采样和量化的过程,以及它们对数字化图像质量的影响。

    采样是把空间上连续的图像转换为离散的抽样点,即像素。量化将抽样后所得的连续的像素值离散化为整数值。

    对数字化图像质量的影响:

    采样间隔越大,所得图像像素数越少,图像空间分辨率越低,质量越差。反之图像质量好,但数据量大。

    量化等级越多(灰度级数越多),所得图像层次越丰富,灰度分辨率越高,质量越好,但数据量大。反之,图像质量差,会出现假轮廓现象,但数据量小。

  6. 图像噪声的特点。

    • 随机性
    • 叠加性
    • 噪声与图像之间具有相关性
  7. 什么是线性灰度拉伸?线性灰度拉伸可以分为几种情况?

    线性灰度拉伸是将输入图像的灰度值的动态范围按线性关系拉伸扩展至指定范围或灰度的整个动态范围。

    线性拉伸可分为按比例线性拉伸和分段线性拉伸两种方法。同时,按比例线性拉伸又可以分为均匀线性拉伸以及限幅线性拉伸。

  8. 伪彩色图像处理可以应用在哪些方面?

    • B超
    • 石油开采
    • 安检
+ + + + \ No newline at end of file diff --git "a/en/docs/Curriculum/\347\274\226\350\257\221\345\216\237\347\220\206/Note/index.html" "b/en/docs/Curriculum/\347\274\226\350\257\221\345\216\237\347\220\206/Note/index.html" new file mode 100644 index 000000000..e1244fed9 --- /dev/null +++ "b/en/docs/Curriculum/\347\274\226\350\257\221\345\216\237\347\220\206/Note/index.html" @@ -0,0 +1,23 @@ + + + + + +编译原理笔记 | 培洋的笔记本📒 + + + + +
+

编译原理笔记

第一章:前言

image

1.1 编译程序的逻辑结构

  • 词法分析:分析输入串如何构成句子,得到单词序列

  • 语法分析:分析单词序列如何构成程序,构造语法分析树

  • 语义分析:审查语义错误,为代码生成收集类型信息

  • 中间代码生成

  • 代码优化

  • 目标代码生成

  • 表管理、错误检查和处理贯穿整个过程

    image

1.2 前端和后端

  • 前端是指与源语言有关、与目标机无关的部分

    如词法分析、语法分析、语义分析、中间代码生成、代码优化中与机器无关的部分

  • 后端是指与目标机有关的部分

    如代码优化中与机器有关的部分、目标代码的生成

1.3 遍的概念

遍是指从头到尾扫描一遍源程序


第二章:文法和语言

2.1 句型

若从文法的开始符号开始存在以下推导,则称α\alpha为该文法的一个句型,句型中既可以包含终结符,也可以包含非终结符,也可以是空串

Sα, α(VTVN)(1)S \Rightarrow^* \alpha,\space \alpha \in (V_T \cup V_N)^* \tag{1}

2.2 句子:

Sβ, βVT(2)S \Rightarrow^* \beta,\space \beta \in V_T^* \tag{2}

则称β\beta是该文法的句子

2.3 文法的分类:

  1. 0型文法,又称无限制文法、短语文法

  2. 1型文法,又称文有关文法

  3. 2型文法,又称上下文无关文法(Context-Free Grammar,CFG)

    可用来构建语法树,语法树是上下文无关文法推导和规约的图形化表示

    Aβ, AVN, β(VTVN)(3)\Alpha \rightarrow \beta,\space \Alpha \in V_N, \space \beta \in (V_T \cup V_N)^* \tag{3}
  4. 3型文法,又称正规文法(Regular Grammar,RG)

    1. 左线性文法
    2. 右线性文法

    image-20230528200840812

2.4 最左/右推导:

如果在推导的任何一步都是对产生式左部中的最左/右非终结符进行替换,则称为最左/右推导,其中最右推导也被成为规范推导


第三章:词法分析

3.1 正规文法转换成正规式

image-20230528201017013

3.2 有穷自动机(FA)

image-20230528201040816

  1. 确定的有穷自动机(DFA)

    1. DFA的定义及组成

      image-20230528201127539

    2. 确定的含义:在状态转换的每一步,FA根据当前的状态及扫描的输入字符,便能唯一地知道FA的下一状态。

      tip

      在状态转换图中的直观体现就是,在确定行表示的当前状态以及列确定的路径后,得到的目的状态不会是元素个数大于1的集合。

    3. DFA的可接受以及接受集的定义:从开始状态开始,经过该符号串表示的路径,若能到达终态则称该符号串可被改DFA接受。

      image-20230528201159840

  2. 不确定的有穷自动机(NFA)

  3. NFA的确定化,即将NFA转换为DFA(子集法)

    image-20230528201222992

    步骤:

    1. 画出DFA转换表

      tip

      转换表中在状态一列中,状态包含原NFA终态的集合要标*,代表其为等价DFA的终态

      1. 计算move(T,a)move(T, a)
      2. 计算ϵclosure(T)\epsilon -closure(T)
    2. 为转换表中的状态重命名

    3. 确定初态和终态

  4. DFA的最小化(分割法)

    步骤如下:

    image-20230528201309296

    tip

    考试时注意过程怎么写,下面使用需要三轮分割的列子演示步骤

    image-20230528201322014

    image-20230528201330964

    image-20230528201338655

    在分割完成后,对可以化简的集合选出一个状态作为代表,删除其他多余状态,重新画图

    image-20230528201346345

3.3 正规式RE与有穷自动机FA的互相转化

image-20230528201408139

3.4 正规文法RM与有穷自动机FA的互相转化

image-20230528201418070


第四章:自顶向下语法分析方法

描述程序语法结构的规则可以使用2型文法(上下文无关语法,CFG)

语法分析方法包含确定的和不确定的分析方法,确定的语法分析方法根据输入符号,唯一选择产生式

确定的自顶向下分析方法:根据当前的输入符号唯一地确定选用哪个产生式替换相应的非终结符以往下推导

image-20230528201657180

1. FIRST集的定义

image-20230528201545335

2. Follow集的定义

image-20230529222731177

tip

FOLLOW集的求法可以按照下图技巧进行

  1. 若要求的非终结符是开始符号,则直接将#插入FOLLOW集中

  2. 在所有产生式的右部中找到要求的非终结符

  3. 看非终结符的右侧是什么元素

    1. 若无元素,则直接将该产生式左部的FOLLOW集加入到该非终结符的FOLLOW集中
    2. 若为终结符,直接将该终结符加入到FOLLOW集中
    3. 若为非终结符,将FIRST(该非终结符)减去ϵ\epsilon的所有终结符元素都加入至FOLLOW集中

    ppt

3. SELECT集的定义

tip

需要注意的是FIRST集、FOLLOW集是针对于符号串而言的,而SELECT集是针对于产生式而言的

image-20230529222743763

4. LL(1)文法的定义

image-20230529222755134

5. LL(1)文法的判别

image-20230529222804098

tip

考试时注意书写过程,需要画出以下两张表

image-20230529222639440

6. 预测分析表

预测分析表通过计算SELECT集得到,形如下表

行标为各非终结符,列标为输入符号,若从某一非终结符开始的产生式的SELECT集包含某一输入符号,则对应产生式就是行列确定的元素值。

ppt

7. 非LL(1)文法到LL(1)文法的等价变换

  1. 消除左公因子(回溯)

    caution

    同一非终结符的多个产生式存在共同前缀,会导致回溯现象,需要消除

    ppt

  2. 消除左递归

    caution

    左递归文法会使递归下降分析器陷入无限循环

    1. 消除直接左递归

      ppt

    2. 消除间接左递归

      通过代入法变成直接左递归再消除

第五章:自底向上语法分析方法

5.1 概念

从的底部向顶部的方向构造语法分析树,采用最左归约的方式,即最右推导的逆过程

tip

注意辨别:自顶向下的语法分析采用最左推导的方式

最右推导是规范推导,最左归约是最右推导的逆过程,又称规范归约

5.2 方法

  1. 算符优先分析法

    按照算符的优先关系和结合性质进行语法分析

  2. LR分析法(重点)

    规范规约:句柄作为可归约串

5.3 工作过程

img

5.4 移入-归约分析器的4种动作

  1. 移入:将下一个输入符号移到栈顶
  2. 归约:被归约的符号串的右端处于栈顶,语法分析器在栈中确定这个串的左端非终结符来替换该串
  3. 接受:宣布语法分析过程成功完成
  4. 报错:发现一个语法错误,并调用错误恢复子程序

img

5.5 重要题型

  1. 前导知识:4种项目状态

    1. 归约项目:·在最后
    2. 接受项目:拓广文法的开始符号的产生式,且·在最后
    3. 移进项目:·后面是终结符VTV_T
    4. 待约项目:·后面是非终结符VNV_N
  2. 移入-归约分析

    image

  3. LR(0)分析表 / 构造其识别活前缀DFA

    https://www.bilibili.com/video/BV1pL4y1E7RE/?spm_id_from=333.788&vd_source=24d8fcf68bc0e2b0003defe0995cf533

    在写预测分析表的reduce项时,action的每一列都要写

  4. SLR(1)分析表 / 构造其识别活前缀DFA

    https://www.bilibili.com/video/BV12u411S7Us/?spm_id_from=333.788&vd_source=24d8fcf68bc0e2b0003defe0995cf533

    在写预测分析表的reduce项时,只写产生式左部的FOLLOW集对应的action列

  5. LR(1)分析表 / 构造其识别活前缀DFA

    https://www.bilibili.com/video/BV1Vm4y1Q7XB/?spm_id_from=333.788&vd_source=24d8fcf68bc0e2b0003defe0995cf533

    在构造项目集时,要加入前向搜索符;并且,在写预测分析表的reduce项时只写前向搜索符对应的action列

  6. LALR(1)分析表 / 构造其识别活前缀DFA

    在构造项目集时,要加入前向搜索符,但是要合并同心集,把相同表达式但是不同前向搜索符的前向搜索符合并,并且在写预测分析表的reduce项时只写前向搜索符集对应的action列

    https://www.bilibili.com/video/BV13r4y1m7sQ/?spm_id_from=333.788&vd_source=24d8fcf68bc0e2b0003defe0995cf533

概念总结

1 编译程序各阶段功能

词法分析:从左到右扫描源程序,识别出各个单词,确定单词类型并形成单词序列,进行词法错误检查,对标识符进行登记,即符号表管理 +语法分析:从词法分析输出的单词序列识别出各类短语,构造语法分析树,并进行语法错误检查 +语义分析:审查程序是否具有语义错误,为代码生成阶段收集类型信息,不符合规范时报错(符号表是语义正确性检查的依据) +中间代码生成:生成中间代码,如三地址指令、四元式、波兰式、逆波兰式、树形结构等 +代码优化:对代码进行等价变换以求提高执行效率,提高速度或节省空间 +目标代码生成:将中间代码转化成目标机上的机器指令代码或汇编代码(符号表是对符号分配地址的依据)

2 语法分析方法的概念

就产生语法树的方向而言,可大致分为自顶向下的语法分析和自底向上的语法分析两大类。

自顶向下的语法分析方法:主流方法为递归下降分析法。根据当前的输入符号唯一地确定选用哪个产生式替换相应的非终结符以往下推导。

自底向上的语法分析方法:将输入串w归约为文法开始符号S的过程

tip

LR(0), SLR(1), LR(1)

LR(0)文法可能存在移进-归约冲突、归约-归约冲突

SLR(1)文法在构造的过程中不存在归约-归约冲突,但有可能出现移进-归约冲突,可以由FOLLOW集解决的话则是SLR(1)文法

3 翻译模式

翻译模式是适合语法制导语义计算的另一种描述形式,可以体现一种合理调用语义动作的算法。

  • S-翻译模式:

    仅涉及综合属性的翻译模式,通常将语义动作集合置于产生式右端末尾。

  • L-翻译模式:

    既可以包含综合属性,也可以包含继承属性。

4 属性文法

在文法基础上,为文法符号关联有特定意义的属性,并为产生式关联相应的语义动作,称之为属性文法。

  • S-属性文法:

    只包含综合属性的属性文法成为S-属性文法

  • L-属性文法:

    可以包含综合属性,也可以包含继承属性,但要求产生式右部的文法符号的继承属性的计算只取决于该符号左边符号的属性

5 符号表

符号表是编译程序中用于收集标识符的属性信息的数据结构。

各阶段作用:

  • 语义分析阶段:语义合法性检查的依据
  • 目标代码生成阶段:对符号名进行地址分配的依据
+ + + + \ No newline at end of file diff --git a/en/docs/Deep-Learning/Fill-The-Gaps/index.html b/en/docs/Deep-Learning/Fill-The-Gaps/index.html new file mode 100644 index 000000000..ce4f8a319 --- /dev/null +++ b/en/docs/Deep-Learning/Fill-The-Gaps/index.html @@ -0,0 +1,18 @@ + + + + + +查漏补缺 | 培洋的笔记本📒 + + + + +
+

查漏补缺

info

这里记录着在学习过程中发现的理解或操作方面出现的错误,温故知新。

Python的广播机制

  1. 进行广播的条件:两个矩阵的后缘维度相同或其中一方的维度为1

    1. 后缘维度相同:A为(3,4,5)的三维数据,B为(4,5)的二维数组。由于A和B的后缘维度都为(4,5),所以可以进行广播。同理,当A为(3,4)的二维数组,B为(4,)的数组,他们的后缘维度都是4,所以可以进行广播。
    2. 后缘维度中有一方维度为1:A为(4,5)的二维数组,B为(4,1)的二维数组,其中一方维度为1,可以进行广播。
  2. 广播的原理:在运算过程中,Python逐步对数组进行广播,并不进行实际的复制操作,节省内存。

    以下是举出具体例子进行分析:

    import numpy as np
    import torch

    x = torch.tensor(np.arange(9), dtype=torch.float32)
    x = torch.reshape(x, (3, 3))
    print(x)

    x1 = x[:, :, None] # (3, 3, 1)
    print(x1)
    """
    tensor([[[0.],
    [1.],
    [2.]],
    [[3.],
    [4.],
    [5.]],
    [[6.],
    [7.],
    [8.]]])
    """

    x2 = x[:, None] # (3, 1, 3)
    print(x2)
    """
    tensor([[[0., 1., 2.]],
    [[3., 4., 5.]],
    [[6., 7., 8.]]])
    """

    output = x1 + x2
    print(output)
    """
    tensor([[[ 0., 1., 2.],
    [ 1., 2., 3.],
    [ 2., 3., 4.]],
    [[ 6., 7., 8.],
    [ 7., 8., 9.],
    [ 8., 9., 10.]],
    [[12., 13., 14.],
    [13., 14., 15.],
    [14., 15., 16.]]])
    """

    由于x1与x2在第0维度上维度相同,所以Python可以直接进行逐元素相加,即依次进行如下运算

    x1[0,:,:]+x2[0,:,:](1)x1[0, :, :] + x2[0, :, :] \tag{1}
    x1[1,:,:]+x2[1,:,:](2)x1[1, :, :] + x2[1, :, :] \tag{2}
    x1[2,:,:]+x2[2,:,:](3)x1[2, :, :] + x2[2, :, :] \tag{3}

但在第0维度的相加过程中出现了shape为(3, 1)的矩阵与shape为(1, 3)的矩阵相加的情况,此时进行广播,将(3, 1)的每一列复制三次为(3, 3),将(1, 3)的每一行复制三次为(3, 3),再进行逐元素相加。

其实,上述的过程还可以再细分为,x1[0, 0, :]与x2[0, 0, :]相加时出现了第一次广播,将x1[0, 0, :]复制了三次与x2[0,0, :]完成相加,这里不再赘述,最终想表达的原理是广播机制是在运算过程当中进行的,并非一次性将二者全部复制为对应的最小公倍数形状后再进行运算

点积(dot product)与矩阵乘法(matmul product)

  1. 点积在Python中对应的运算符为*,进行矩阵之间的逐元素乘法。在点积运算中,运算矩阵二者形状不一样时可能涉及到广播机制;
  2. 矩阵乘法在Python中对应的运算符为@,进行常规矩阵乘法。遵守左矩阵的列数必须等于右矩阵的行数,且输出矩阵的行数等于左矩阵的行数、输出矩阵的列数等于右矩阵的列数的规则。

zip函数与解压操作*

当你有多个列表(或其他可迭代对象)时,zip函数可以将它们逐个配对成元组。而*操作符用于解压元组,将元组中的元素分别作为参数传递给函数。

以下是一个简单的例子:

# zip函数的例子
list1 = [1, 2, 3]
list2 = ['a', 'b', 'c']
list3 = ['x', 'y', 'z']

# 使用zip将多个列表配对成元组
zipped_lists = zip(list1, list2, list3)

# 打印配对后的元组
for item in zipped_lists:
print(item)

输出:

(1, 'a', 'x')
(2, 'b', 'y')
(3, 'c', 'z')

在这个例子中,ziplist1list2list3中相同位置的元素组合成元组。

接下来,我们可以使用 * 操作符解压这些元组:

# *解压操作的例子
unzipped_lists = zip(*zipped_lists)

# 打印解压后的列表
for item in unzipped_lists:
print(item)

输出:

(1, 2, 3)
('a', 'b', 'c')
('x', 'y', 'z')

在这个例子中,*操作符将先前由zip组合的元组解压,分别放回原始的列表。

对batch_first参数的理解

对于不同的网络层,输入的维度虽然不同,但是通常输入的第一个维度都是batch_size,比如torch.nn.Linear的输入(batch_size,in_features)torch.nn.Conv2d的输入(batch_size, C, H, W)

RNN的输入是(seq_len, batch_size, input_size)batch_size位于第二维度!虽然可以将batch_size和序列长度seq_len对换位置,此时只需令batch_first=True

但是为什么RNN输入默认不是batch first=True?这是为了便于并行计算

因为cuDNN中RNN的API就是batch_size在第二维度。进一步讲,batch first意味着模型的输入(一个Tensor)在内存中存储时,先存储第一个sequence,再存储第二个,而如果是seq_len first,模型的输入在内存中,先存储每一个sequence的第一个元素,然后是第二个元素,两种区别如下图所示:

img

seq_len first意味着不同序列中同一个时刻对应的输入单元在内存中是毗邻的,这样才能做到真正的batch计算。

+ + + + \ No newline at end of file diff --git a/en/docs/Deep-Learning/intro/index.html b/en/docs/Deep-Learning/intro/index.html new file mode 100644 index 000000000..2517abc46 --- /dev/null +++ b/en/docs/Deep-Learning/intro/index.html @@ -0,0 +1,18 @@ + + + + + +Welcome | 培洋的笔记本📒 + + + + +
+

Welcome

介绍

欢迎来到笔记本的深度学习部分

若更新不及时,欢迎通过GitHub联系交流

有关论文笔记的说明

为了节省写作时间,论文笔记部分的文章通常只讲述文章的方法论,Introduction以及Related Work详情可以参考论文原文

支持我!

如果可以帮到你的话就给个免费的Star吧!

+ + + + \ No newline at end of file diff --git "a/en/docs/Deep-Learning/\345\237\272\347\241\200\347\237\245\350\257\206/AlexNet/index.html" "b/en/docs/Deep-Learning/\345\237\272\347\241\200\347\237\245\350\257\206/AlexNet/index.html" new file mode 100644 index 000000000..47a15b32e --- /dev/null +++ "b/en/docs/Deep-Learning/\345\237\272\347\241\200\347\237\245\350\257\206/AlexNet/index.html" @@ -0,0 +1,18 @@ + + + + + +AlexNet | 培洋的笔记本📒 + + + + +
+

AlexNet

背景

AlexNet是指2012年由Alex Krizhevsky、Ilya Sutskever和Geoffrey Hinton提出的一种卷积神经网络模型,它主要应用于图像分类任务。在当时,AlexNet的表现远远超过了其他参赛的网络模型,并且在ImageNet比赛中获得了第一名。

标志着新的一轮神经网络热潮的开始

image

新的概念和技术

  • ReLU激活函数
  • Dropout正则化、丢弃法
  • 最大池化MaxPooling

与LeNet比较

  1. 由于输入的图片更大,设置了更大的卷积核尺寸和步长
  2. 更大的池化窗口,使用最大池化
  3. 在卷积层中设置了更大的输出通道,提取更深层的特征、识别更多的模式
  4. 激活函数从Sigmoid改成了ReLU,减缓梯度消失
  5. 在卷积层和输出层之间仍使用两个全连接隐藏层,但在输出层之前增加了Dropout层做正则化
  6. 使用了数据增强data augmentation
+ + + + \ No newline at end of file diff --git "a/en/docs/Deep-Learning/\345\237\272\347\241\200\347\237\245\350\257\206/ConvolutionalLayer/index.html" "b/en/docs/Deep-Learning/\345\237\272\347\241\200\347\237\245\350\257\206/ConvolutionalLayer/index.html" new file mode 100644 index 000000000..408344549 --- /dev/null +++ "b/en/docs/Deep-Learning/\345\237\272\347\241\200\347\237\245\350\257\206/ConvolutionalLayer/index.html" @@ -0,0 +1,18 @@ + + + + + +卷积层 | 培洋的笔记本📒 + + + + +
+

卷积层

一、1x1卷积

kh=kw=1k_h=k_w=1的卷积不识别空间模式,丢弃了空间信息,只是融合通道

相当于输入形状为HW×ciHW \times c_i,权重形状为co×cic_o \times c_i的全连接层


二、二维卷积层

  • 输入:ci×H×Wc_i \times H \times W

  • 核:co×ci×kh×kwc_o \times c_i \times k_h \times k_w

  • 偏差:co×cic_o \times c_i

  • 输出:co×H×Wc_o \times H' \times W'

  • 输出H以及WH'以及W'的计算:

    shapeoutput=shapeinputsizekernel+2paddingstride+1(1)shape_{output} = \frac{shape_{input}-size_{kernel}+2*padding}{stride}+1 \tag{1}
  • 计算复杂度:O(co×ci×H×W×H×W)O(c_o \times c_i \times H \times W \times H' \times W')

  • 总结:

    1. 输出的通道数是卷积层的超参数
    2. 每个输入通道有独立的二维卷积核,所有通道结果相加得到一个输出结果
    3. 每个输出通道有独立的三维卷积核
+ + + + \ No newline at end of file diff --git "a/en/docs/Deep-Learning/\345\237\272\347\241\200\347\237\245\350\257\206/FromFullyConnectedLayerToConvolutionalLayer/index.html" "b/en/docs/Deep-Learning/\345\237\272\347\241\200\347\237\245\350\257\206/FromFullyConnectedLayerToConvolutionalLayer/index.html" new file mode 100644 index 000000000..a495e5e6b --- /dev/null +++ "b/en/docs/Deep-Learning/\345\237\272\347\241\200\347\237\245\350\257\206/FromFullyConnectedLayerToConvolutionalLayer/index.html" @@ -0,0 +1,18 @@ + + + + + +从全连接到卷积 | 培洋的笔记本📒 + + + + +
+

从全连接到卷积

一、卷积的诞生&核心特征

  1. 现代图片具有较大的像素,使用全连接层导致参数爆炸
  2. 针对图片的特征提取和模式识别,应具备以下原则:
    • 平移不变性
    • 局部性

二、重新考察全连接层

  1. 将全连接层的一维输入和输出变换为二维的矩阵,公式如下

    其中i,ji,j代表输出神经元的二维索引坐标,h,wh,w代表输入神经元的二维索引坐标

yi,j=h,wwi,j,h,wxh,w(1)y_{i,j}=\sum_{h,w}{w_{i,j,h,w}*x_{h,w}} \tag{1}
  1. 进一步将权重以及输入的索引变形,公式如下

    其中a,ba,b的取值可负可正,直到遍历所有权重以及输入神经元,实现全连接

yi,j=h,wwi,j,h,wxh,w=a,bvi,j,a,bxi+a,j+b(2)y_{i,j}=\sum_{h,w}{w_{i,j,h,w}*x_{h,w}}=\sum_{a,b}{v_{i,j,a,b}*x_{i+a,j+b}} \tag{2}
  1. 在公式(2)中,当i,ji,j发生变化时,即产生平移,权重也发生平移,不满足平移不变性。

    为了解决这一问题,将公式(2)变形为如下

    此时参数权值共享,满足了平移不变性

    yi,j=a,bvi,j,a,bxi+a,j+b=a,bva,bxi+a,j+b(3)y_{i,j}=\sum_{a,b}{v_{i,j,a,b}*x_{i+a,j+b}}=\sum_{a,b}{v_{a,b}*x_{i+a,j+b}} \tag{3}
  2. 再考虑局部性,在进行特征提取以及模式识别时,只需关注周围的局部特征,因此公式(3)中的a,ba,b可缩小范围,并不用来实现全连接,此时a,ba,b代表着卷积核的感受野,即kernel size

  3. 此时完成了全连接层到卷积层的转换


三、总结

  1. 对全连接层使用平移不变性和局部性得到卷积层,卷积是特殊的全连接
yi,j=a,bva,bxi+a,j+b=a=ΔΔb=ΔΔva,bxia,j+b(4)y_{i,j}=\sum_{a,b}{v_{a,b}*x_{i+a,j+b}}=\sum_{a=-\Delta}^{\Delta}\sum_{b=-\Delta}^{\Delta}{v_{a,b}*x_{i_a,j+b}} \tag{4}
  1. 卷积层输出形状的计算
    shapeoutput=shapeinputsizekernel+2paddingstride+1(5)shape_{output} = \frac{shape_{input}-size_{kernel}+2*padding}{stride}+1 \tag{5}
+ + + + \ No newline at end of file diff --git "a/en/docs/Deep-Learning/\345\237\272\347\241\200\347\237\245\350\257\206/K-foldCross-validation/index.html" "b/en/docs/Deep-Learning/\345\237\272\347\241\200\347\237\245\350\257\206/K-foldCross-validation/index.html" new file mode 100644 index 000000000..c380182d4 --- /dev/null +++ "b/en/docs/Deep-Learning/\345\237\272\347\241\200\347\237\245\350\257\206/K-foldCross-validation/index.html" @@ -0,0 +1,18 @@ + + + + + +K-fold cross-validation | 培洋的笔记本📒 + + + + +
+

K-fold cross-validation

What is k-fold cross-validation?

K-fold cross-validation is a technique used in machine learning to evaluate the performance of a model. The basic idea behind k-fold cross-validation is to split the dataset into kk partitions, or folds, and then train and test the model kk times, using a different fold for testing each time.


How does k-fold cross-validation work?

In each iteration of k-fold cross-validation, one of the kk folds is used as the test set, while the remaining k1k-1 folds are used as the training set. This process is repeated kk times, with each fold being used exactly once as the test set. The results from each iteration can then be averaged to produce a more accurate estimate of the model's performance.


Summary

  • train set: to train the model and do parameter update
  • validation set: to choose hyperparameter
  • test set: the final test, only used once
+ + + + \ No newline at end of file diff --git "a/en/docs/Deep-Learning/\345\237\272\347\241\200\347\237\245\350\257\206/LeNet/index.html" "b/en/docs/Deep-Learning/\345\237\272\347\241\200\347\237\245\350\257\206/LeNet/index.html" new file mode 100644 index 000000000..c48a7e89c --- /dev/null +++ "b/en/docs/Deep-Learning/\345\237\272\347\241\200\347\237\245\350\257\206/LeNet/index.html" @@ -0,0 +1,18 @@ + + + + + +LeNet | 培洋的笔记本📒 + + + + +
+

LeNet

背景

LeNet是由Yann LeCun等人于1998年提出的卷积神经网络结构,该结构由卷积层、池化层和全连接层组成,可以高效地处理手写数字图像,并在MNIST数据集上取得了很好的性能。

LeNet-5的成功标志着卷积神经网络在计算机视觉领域中的崛起,并促进了深度学习的快速发展。


代码实现

import torch
import numpy as np
from torch import nn as nn
from torch.nn import functional as F
from d2l import torch as d2l
from matplotlib import pyplot as plt
import os

os.environ['http_proxy'] = 'http://127.0.0.1:7890'
os.environ['https_proxy'] = 'https://127.0.0.1:7890'


class LeNetReshape(nn.Module):
def __init__(self):
super(LeNetReshape, self).__init__()

def forward(self, x):
return x.reshape(-1, 1, 28, 28)


class LeNet5(nn.Module):
def __init__(self):
super(LeNet5, self).__init__()
self.net = torch.nn.Sequential(
LeNetReshape(),
# 激活函数应为Sigmoid
nn.Conv2d(1, 6, kernel_size=5, padding=2), nn.LeakyReLU(), nn.AvgPool2d(kernel_size=2, stride=2),
nn.Conv2d(6, 16, kernel_size=5), nn.LeakyReLU(), nn.AvgPool2d(kernel_size=2, stride=2),
nn.Flatten(),
nn.Linear(16 * 5 * 5, 120), nn.LeakyReLU(),
nn.Linear(120, 84), nn.Sigmoid(),
nn.Linear(84, 10))

def forward(self, x):
return self.net(x)


def evaluate_accuracy_gpu(net, data_iter, device=None):
if isinstance(net, torch.nn.Module):
net.eval()
if not device:
device = next(iter(net.parameters())).device
metric = d2l.Accumulator(2)
for X, y in data_iter:
if isinstance(X, list):
X = [x.to(device) for x in X]
else:
X = X.to(device)
y = y.to(device)
metric.add(d2l.accuracy(net(X), y), y.numel()) # 此处accuracy是统计
return metric[0] / metric[1]


def accuracy(y_hat, y):
return torch.sum(y_hat.argmax(dim=1) == y)


def train(net, train_iter, test_iter, num_epochs, lr, device):
def init_weights(m):
if type(m) == nn.Linear or type(m) == nn.Conv2d:
nn.init.xavier_uniform_(m.weight)

net.apply(init_weights)
net.to(device)
optimizer = torch.optim.SGD(net.parameters(), lr=lr)
loss = torch.nn.CrossEntropyLoss()
loss.to(device)
animator = d2l.Animator(xlabel='epoch', xlim=[1, num_epochs],
legend=['train loss', 'train acc', 'test acc'])
timer, num_batches = d2l.Timer(), len(train_iter)
metric = d2l.Accumulator(3)
net.train()
for epoch in range(num_epochs):
for batch, (X, y) in enumerate(train_iter):
timer.start()
optimizer.zero_grad()
X, y = X.to(device), y.to(device)
y_hat = net(X)
l = loss(y_hat, y)
l.backward()
optimizer.step()
metric.add(l * X.shape[0], accuracy(y_hat, y), y.numel())
timer.stop()
train_l = metric[0] / metric[2]
train_acc = metric[1] / metric[2]
if (batch + 1) % (num_batches // 5) == 0 or batch == num_batches - 1:
animator.add(epoch + (batch + 1) / num_batches, (train_l, train_acc, None))
test_acc = evaluate_accuracy_gpu(net, test_iter)
animator.add(epoch + 1, (None, None, test_acc))
print(f'loss {train_l:.3f}, train acc {train_acc:.3f}, test acc {test_acc:.3f}')
print(f'{metric[2] * num_epochs / timer.sum():.1f} examples/sec on {str(device)}')
plt.show()

batch_size = 256
train_iter, test_iter = d2l.load_data_fashion_mnist(batch_size)
lr, num_epochs = 0.9, 10
lenet = LeNet5()
train(lenet, train_iter, test_iter, num_epochs, lr, d2l.try_gpu())

问题

在分类模型中,最后两个全连接层之间不要使用ReLU激活函数。因为ReLU的范围是[0, +∞),它会将所有负数都变成0。而最后一层全连接层输出了类别信息,倒数第二层的输出值包含着非常重要的类别信息,此时使用激活函数很可能会导致信息丢失。

+ + + + \ No newline at end of file diff --git "a/en/docs/Deep-Learning/\345\237\272\347\241\200\347\237\245\350\257\206/LogisticRegression/index.html" "b/en/docs/Deep-Learning/\345\237\272\347\241\200\347\237\245\350\257\206/LogisticRegression/index.html" new file mode 100644 index 000000000..60d7fe2dd --- /dev/null +++ "b/en/docs/Deep-Learning/\345\237\272\347\241\200\347\237\245\350\257\206/LogisticRegression/index.html" @@ -0,0 +1,18 @@ + + + + + +关于Logistic Regression | 培洋的笔记本📒 + + + + +
+

关于Logistic Regression

一、什么是Logistic Regression

Logistic Regression直译为逻辑回归,是一种用来解决二分类问题的机器学习方法,用于估计某种事物的可能性。

逻辑回归经过sigmoid函数输出的结果可将其视为probability,而后根据设定的置信度阈值来判断该特征向量对应的标签是1还是0,用以解决二分类问题。


二、逻辑回归(Logistic Regression)和线性回归(Linear Regression)

  • 线性回归要求因变量是连续性数值变量,而逻辑回归要求因变量是离散的变量。
  • 逻辑回归以线性回归为理论支持,通过Sigmoid函数引入了非线性因素。
  • 线性回归常用MSE函数作为损失函数,而逻辑回归作为分类任务的解决方案通常搭配交叉熵损失函数进行训练。

三、逻辑回归到底是回归任务(Regression)还是分类任务(Classification)?

从历史角度方面看,逻辑回归在诞生时使用MSE作为损失函数,其目标是让输出的概率更接近于1,与回归任务的目标相似。


四、为什么逻辑回归或其他分类任务不使用分类准确率作为损失函数?

逻辑回归以及其他分类任务在测试角度上的目标让提高分类准确率acc,但并不会将maximize accuracy作为数学上的训练方法,即在训练过程中不使用与acc有关的损失函数。

逻辑回归中的训练目标(评估函数)与预测目标(评估函数)并不相同,但方向一致。

acc=I(predi==yi)len(Y)(1)acc = \frac{\sum{I(pred_i==y_i)}}{len(Y)} \tag{1}

如果在训练过程中以最大化acc为目标,当参数在训练过程中向标签方向更新使得逻辑回归输出的正确类的概率增大时,考虑以下两种情况:

  1. gradient = 0 if accuracy unchanged but weights changed:

    由于阈值的存在,下一轮迭代输出的概率可能仍小于阈值,从而导致分类结果与上一次迭代相同,此时acc并无变化,出现梯度为0的情况。

  2. gradient not continuous since the number of correct is not continunous:

    当上一轮迭代的输出概率很接近阈值时,下一次迭代的概率提升了很少一点但是仍超过了阈值,且一个batch中有大量样本均存在这种情况,此时acc有显著提升而网络的权重的更新极小,此时,与acc有关的Loss函数对权重求导得到的梯度会出现梯度爆炸或者说不连续的情况。

+ + + + \ No newline at end of file diff --git "a/en/docs/Deep-Learning/\345\237\272\347\241\200\347\237\245\350\257\206/Perceptron/index.html" "b/en/docs/Deep-Learning/\345\237\272\347\241\200\347\237\245\350\257\206/Perceptron/index.html" new file mode 100644 index 000000000..fa1afa826 --- /dev/null +++ "b/en/docs/Deep-Learning/\345\237\272\347\241\200\347\237\245\350\257\206/Perceptron/index.html" @@ -0,0 +1,18 @@ + + + + + +Perceptron | 培洋的笔记本📒 + + + + +
+

Perceptron

一、什么是感知机

感知机是一种二元线性分类模型,旨在寻找一个超平面(在二维空间中即为一条直线),将不同类别的实例划分到不同的区域。感知机的训练过程包括迭代地对样本进行分类,并根据分类错误的情况调整超平面的参数,使得分类准确率逐步提高。感知机是基础的机器学习算法之一,其思想和方法对神经网络等更复杂的模型也具有启发意义。


二、详细原理

  1. 输入向量:感知机的输入向量是一个n维向量x=(x1,x2,...,xn)x=(x_1,x_2,...,x_n),表示一个样本的各个特征值。

  2. 权值向量:感知机的权值向量也是一个n维向量w=(w1,w2,...,wn)w=(w_1,w_2,...,w_n),表示每个特征对应的权重。

  3. 偏置项:偏置项bb是一个常数,可看作是模型的截距,用于调整阈值函数的位置。

  4. 内积运算:感知机将输入向量和权值向量进行内积运算,并加上偏置项,得到输入信号z=wx+bz=w*x+b

  5. 阈值函数:将输入信号zz带入阈值函数,如符号函数sign(z)sign(z),即可得到分类结果。

  6. 损失函数:感知机使用误分类点到超平面的距离来作为损失函数,即

    L(y,z)=max(0,yz)(1)L(y,z)=max(0,-y*z) \tag{1}

    其中yy是样本的真实标签,zz是预测值。

  7. 参数更新:根据当前样本误分类情况来对权值向量ww和偏置项bb进行迭代更新。

  8. 收敛条件:当全部训练样本被正确分类或达到最大迭代次数时,感知机算法停止迭代。

感知机训练流程伪代码如下所示:

initialize w = 0 and b = 0
repeat
if yi * zi <= 0 then
w = w + yi * xi and b = b + yi
end if
until all classified correctly

三、总结

  • 感知机是一个二分类模型,最早的AI模型之一
  • 求解算法等价于使用批量大小为1的梯度下降
  • 要求数据集线性可分,不能拟合XOR异或等非线性问题,导致第一次AI寒冬
+ + + + \ No newline at end of file diff --git "a/en/docs/Deep-Learning/\345\237\272\347\241\200\347\237\245\350\257\206/PoolingLayer/index.html" "b/en/docs/Deep-Learning/\345\237\272\347\241\200\347\237\245\350\257\206/PoolingLayer/index.html" new file mode 100644 index 000000000..45ac9f38b --- /dev/null +++ "b/en/docs/Deep-Learning/\345\237\272\347\241\200\347\237\245\350\257\206/PoolingLayer/index.html" @@ -0,0 +1,18 @@ + + + + + +池化层 | 培洋的笔记本📒 + + + + +
+

池化层

一、卷积对像素位置信息是敏感的

卷积层会对输入的局部区域进行卷积操作,因此对于输入图像中的每个位置都会产生一个响应。然而,在某些情况下,我们并不关心输入图像中每个位置的细节,而只是想获取该区域的一些重要特征。

假设我们想分类一张猫的图片,那么我们可能只需要提取出它的眼睛、鼻子、嘴巴和耳朵等特征,而不必考虑这些特征在图像中的精确位置。


二、池化层的作用

池化层通过对输入的局部区域进行降采样操作,减少了特征图的大小,从而使得模型对于输入位置的微小变化更加鲁棒。例如,如果我们将一个对象稍微平移一点,它依然可以被正确地识别,因为池化层可以保留输入图像的关键特征,而忽略掉微小的位置变化。

但是需要注意的是,当池化的步幅和池化区域的大小过大时,会导致模型丢失较多的细节信息,从而影响模型性能。因此,在实际应用中,需要根据具体任务来选择适当的池化参数。

  1. 缓解卷积层对位置的敏感性,提高鲁棒:池化操作通常用于卷积层之后,使模型对于输入位置的微小变化更加鲁棒,减少图像中的噪声和冗余信息
  2. 减小特征图大小:池化操作会通过在特定位置上合并特征值来缩小输入特征图的空间大小,降低计算开销。
  3. 减少参数数量:池化操作减小了特征图的空间大小,从而也减小了需要训练的权重参数数量,更容易训练和优化。

三、池化的实现

池化层将输入特征图分割成若干个区域,然后对每个区域进行汇聚操作,将该区域内的特征值合并成一个值。这个操作可以使用不同的方法实现,如最大值池化、平均值池化等。

最常见的是最大值池化,其中每个区域的输出值是该区域内特征值的最大值,这样可以保留图像中最显著的特征,同时减少噪声和冗余信息的影响。

+ + + + \ No newline at end of file diff --git "a/en/docs/Deep-Learning/\345\237\272\347\241\200\347\237\245\350\257\206/PytorchBasics/index.html" "b/en/docs/Deep-Learning/\345\237\272\347\241\200\347\237\245\350\257\206/PytorchBasics/index.html" new file mode 100644 index 000000000..a89faf2a2 --- /dev/null +++ "b/en/docs/Deep-Learning/\345\237\272\347\241\200\347\237\245\350\257\206/PytorchBasics/index.html" @@ -0,0 +1,18 @@ + + + + + +PyTorch基础 | 培洋的笔记本📒 + + + + +
+

PyTorch基础

一、常用函数部分

  1. concat与stack函数

    stack函数对输入的两个张量在指定的维度进行堆叠,是创建了新的维度

    concat函数对输入的张量在指定维度进行拼接,没有创建新的维度

    # stack和concat函数
    a = torch.rand(4, 3) # A班4位同学,每位同学3科成绩
    b = torch.rand(4, 3) # B班4位同学,每位同学3科成绩
    c = torch.stack((a, b), dim=0) # 理解:年级所有同学的3科成绩(假设年级只有A班和B班两个班,每个班只有四名同学)
    print(c.shape) # torch.Size([2, 4, 3])
    d = torch.concat((a, b), dim=1) # 理解:a是A班4位同学3科成绩,b是这4名同学其他3门课的成绩,拼接后代表这4名同学的6科成绩
    print(d.shape) # torch.Size([4, 6])
  2. list和tensor乘法不同之处

    list的*乘法是复制元素,改变list的shape

    tensor的*乘法是对tensor中的元素进行点乘计算

    a = torch.tensor([[3, 3, 3, 3]])
    b = [3] # list的*乘是复制元素进行扩展
    print(a * 3) # tensor([[9, 9, 9, 9]])
    print(b * 3) # [3, 3, 3]
  3. 最大值 / 最小值索引:argmax / argmin

    需要通过参数dim指定操作的维度,dim的理解

    • 官方解释:The dimension to reduce

    • 以二维张量举例,dim=1即在每一行中选出一个最大值 / 最小值元素的索引,索引的shape应为[dim0, 1],即reduce了dim=1的维度

    # 最大值最小值索引
    a = torch.tensor([[0.1, 0.9, 0.3], [0.9, 0.8, 0.99], [0.1, 0.7, 0.8], [0.88, 0.1, 0.2]]) # [4, 3]
    print("argmax output: ", a.argmax(dim=0), a.argmax(dim=1)) # argmax output: tensor([1, 0, 1]) tensor([1, 2, 2, 0])
  4. Python zip函数

    zip函数可以理解为压缩,将输入的两个迭代器的最外层对应元素压缩为一个新的元素

    a = torch.tensor([1, 2, 3])
    b = torch.tensor([4, 5, 6])
    c = zip(a, b)
    for i in c:
    print(i)
    '''
    (tensor(1), tensor(4))
    (tensor(2), tensor(5))
    (tensor(3), tensor(6))
    '''
    a = torch.tensor([[1, 2, 3], [3, 2, 1]])
    b = torch.tensor([[4, 5, 6], [6, 5, 4]])
    c = zip(a, b)
    for i in c:
    print(i)
    '''
    (tensor([1, 2, 3]), tensor([4, 5, 6]))
    (tensor([3, 2, 1]), tensor([6, 5, 4]))
    '''
+ + + + \ No newline at end of file diff --git "a/en/docs/Deep-Learning/\345\237\272\347\241\200\347\237\245\350\257\206/\346\255\243\345\210\231\345\214\226\344\270\216\346\235\203\351\207\215\350\241\260\351\200\200/index.html" "b/en/docs/Deep-Learning/\345\237\272\347\241\200\347\237\245\350\257\206/\346\255\243\345\210\231\345\214\226\344\270\216\346\235\203\351\207\215\350\241\260\351\200\200/index.html" new file mode 100644 index 000000000..9f231c9a4 --- /dev/null +++ "b/en/docs/Deep-Learning/\345\237\272\347\241\200\347\237\245\350\257\206/\346\255\243\345\210\231\345\214\226\344\270\216\346\235\203\351\207\215\350\241\260\351\200\200/index.html" @@ -0,0 +1,18 @@ + + + + + +正则化与权重衰退 | 培洋的笔记本📒 + + + + +
+

正则化与权重衰退

tip

正则化与权重衰退

一、什么是正则化

正则化(Regularization)是机器学习中用于控制模型过拟合的一种技术。在模型训练过程中,我们通常要最小化一个损失函数来得到最佳的模型参数。但是当模型过于复杂时,容易出现过拟合现象,即在训练数据上表现很好,但在测试数据上表现很差。这是因为模型过于依赖训练数据的噪声和细节,而忽略了真正的规律。

正则化通过在损失函数中增加一个惩罚项(Penalty)来对模型进行约束,防止其过分依赖训练数据。

常见的正则化方法包括L1正则化(硬性限制)、L2正则化(柔性限制)等。

L1正则化会使得一部分参数变为0,从而实现特征选择的效果;L2正则化则会使得模型参数尽量接近0,也就是使得模型更加平滑。在使用正则化时,需要调整正则化强度的超参数,以达到最优的泛化性能。


二、L1正则化

min l(w,b) subject to w12θ(1)min \space l(w, b) \space \text{subject to} \space \Vert w \Vert^2_1 \leq \theta \tag{1}
  • L1正则化限制权重参数的L1范数小于某一特定的超参数
  • 通常不限制偏移bb
  • 更小的超参数θ\theta意味着更强的正则项

三、L2正则化与权重衰退

L2正则化是指在模型的损失函数中,加入对模型参数的L2范数进行惩罚的一种方法。公式如下所示:

l(w,b)+λ2w12(2)l(w, b) + \frac{\lambda}{2} \Vert w \Vert^2_1 \tag{2}

其中,λ\lambda是一个正则化系数超参数

此时在更新梯度时,具有如下公式

w(l(w,b)+λ2w12)=l(w,b)w+λw(3)\frac{\partial}{\partial w} \big(l(w, b) + \frac{\lambda}{2} \Vert w \Vert^2_1 \big) = \frac{\partial l(w, b)}{\partial w} + \lambda w \tag{3}
wt+1=(1ηλ)wt+ηl(wt,bt)wt(4)w_{t+1}=(1-\eta \lambda)w_t + \eta \frac{\partial l(w_t, b_t)}{\partial w_t} \tag{4}

通常ηλ<1\eta \lambda < 1,因此又叫做权重衰退

+ + + + \ No newline at end of file diff --git "a/en/docs/Deep-Learning/\345\237\272\347\241\200\347\237\245\350\257\206/\346\267\261\345\272\246\345\217\257\345\210\206\347\246\273\345\215\267\347\247\257/index.html" "b/en/docs/Deep-Learning/\345\237\272\347\241\200\347\237\245\350\257\206/\346\267\261\345\272\246\345\217\257\345\210\206\347\246\273\345\215\267\347\247\257/index.html" new file mode 100644 index 000000000..964f7ca6a --- /dev/null +++ "b/en/docs/Deep-Learning/\345\237\272\347\241\200\347\237\245\350\257\206/\346\267\261\345\272\246\345\217\257\345\210\206\347\246\273\345\215\267\347\247\257/index.html" @@ -0,0 +1,20 @@ + + + + + +深度可分离卷积 | 培洋的笔记本📒 + + + + +
+

深度可分离卷积

tip

输入:shape为[5,5,3][5, 5, 3]的图像 +输出要求:shape为[5,5,4][5, 5, 4]的feature map +使用3×33 \times 3卷积核,padding=1,stride=1padding=1, stride=1

常规卷积

卷积层共4个filter(输出通道为4),每个filter3个kernel(输入通道为3)

其中,每个filter都对输入图像的所有通道完成一次卷积,filter中的kernel分别对输入的通道进行具体卷积运算

img

不考虑卷积偏置,参数量为

3×3×3×4=108(1)3 \times 3 \times 3 \times 4 = 108 \tag{1}

深度可分离卷积

(1)逐通道卷积-Depthwise Convolution

img

使用1个filter,其中包含3个kernel。每个kernel分别对输入图像的3个通道单独进行卷积,参数量为

3×3××3=27(2)3 \times 3 \times \times 3 = 27 \tag{2}

代码实现也较为简单,只需令Conv2d的输出通道与输入通道相同即可

(2)逐点卷积-Pointwise Convolution

img

使用1×11 \times 1卷积核,每个filter对上一步的feature map在深度方向进行一次加权组合,参数量为

1×1×3×4=12(3)1 \times 1 \times 3 \times 4 = 12 \tag{3}
tip

图片源自知乎

+ + + + \ No newline at end of file diff --git "a/en/docs/Deep-Learning/\345\237\272\347\241\200\347\237\245\350\257\206/\346\277\200\346\264\273\345\207\275\346\225\260\344\270\216Loss\347\232\204\346\242\257\345\272\246/index.html" "b/en/docs/Deep-Learning/\345\237\272\347\241\200\347\237\245\350\257\206/\346\277\200\346\264\273\345\207\275\346\225\260\344\270\216Loss\347\232\204\346\242\257\345\272\246/index.html" new file mode 100644 index 000000000..12da1186b --- /dev/null +++ "b/en/docs/Deep-Learning/\345\237\272\347\241\200\347\237\245\350\257\206/\346\277\200\346\264\273\345\207\275\346\225\260\344\270\216Loss\347\232\204\346\242\257\345\272\246/index.html" @@ -0,0 +1,27 @@ + + + + + +激活函数与Loss的梯度 | 培洋的笔记本📒 + + + + +
+

激活函数与Loss的梯度

一、激活函数

1. Sigmoid函数 / Logistic函数

σ(x)=11+ex(1)\sigma(x) = \frac{1}{1 + e^{-x}} \tag{1}
dσdx=σ (1σ)(2)\frac{{\rm d}\sigma}{{\rm d}x} = \sigma \space (1 - \sigma) \tag{2}

优点:可以将数据压缩至[0, 1)区间内,有较大实用意义

致命问题:在输入值较小或较大时,Sigmoid函数的梯度趋近于零,会导致网络参数长时间得不到更新,即梯度弥散问题

from torch.nn import functional as F
import torch

x = torch.linspace(-100, 100, 10)
F.sigmoid(x) # 当x为100时,sigmoid(x)就接近于0了

2. 线性整流单元(Rectified Linear Unit, ReLU)

f(x)={0x<0xx0(3)f(x) = \begin{cases} 0 & x < 0\\ x & x \geq 0\\ \end{cases} \tag{3}
df(x)dx={0x<01x0(4)\frac {{\text d}f(x)}{{\text d}x} = \begin{cases} 0 & x < 0\\ 1 & x \geq 0\\ \end{cases} \tag{4}
from torch.nn import functional as F
import torch

x = torch.linspace(-100, 100, 10)
F.relu(x)

二、损失函数

1. Mean Squared Error 均方误差

  • L2范数是对元素求平方和后再开根号,需要.pow(2)后才可作为损失函数

  • 微小的误差可能对网络性能带来极大的影响

    LossMSE=[yf(x)]2(5)Loss_{MSE} = \sum{[{y - f(x)]^2}} \tag{5}
    yf(x)2=[yf(x)]22(6)\Vert y - f(x) \Vert_2 = \sqrt[2]{\sum{[y - f(x)]^2}} \tag{6}

2. Cross Entropy Loss 交叉熵损失

信息熵

Cross Entropy中的Entropy指的是信息熵,可以理解为不确定性。衡量一个概率分布本身的不确定程度。

It's a measure of surprise, higher entrpoy means less information and higher uncertainty.

假设一个离散型随机变量XX的可能取值为X=x1,x2,...,xnX=x_1,x_2,...,x_n,而取值事件xix_i发生的概率为PiP_i,则其信息熵的定义为

H(P)=inPi log2(Pi)=inPi log2(1Pi)(7)\begin{align} H(P) &= -\sum_i^n{P_i}\space{log_2(P_i)} \\ &= \sum_i^n{P_i}\space{log_2({\frac{1}{P_i}}}) \tag{7} \end{align}

KL散度

在概率论或信息论中,KL散度( Kullback–Leibler Divergence),又称相对熵(relative entropy),是描述两个概率分布P和Q差异的一种方法。

存在两个概率分布P和Q,其离散型随机变量XX的可能取值为X=x1,x2,...,xnX=x_1,x_2,...,x_n,而取值事件xix_i发生的概率分别为Pi,QiP_i,Q_i.

KL散度是非对称的,即

DKL(P  Q)DKL(Q  P)(8)D_{KL}(P \space || \space Q) \neq D_{KL}(Q \space || \space P)\tag{8}
DKL(P  Q)=Pi [log2(Pi)log2(Qi)](9)D_{KL}(P \space || \space Q) = \sum{P_i\space [log_2(P_i)-log_2(Q_i)]}\tag{9}

特别的,DKL(PLabel  QPred)D_{KL}(P_{Label} \space | \space Q_{Pred})表示当用概率分布Q来拟合真实分布P时,产生的信息损耗,其中P表示真实分布,Q表示P的拟合分布

交叉熵

衡量两个概率分布P和Q之间的不确定性程度。交叉熵的数学表达为

H(P, Q)=H(P)+DKL(P  Q)=Pi log2(Qi)(10)\begin{align} H(P, \space Q) &= H(P) + D_{KL}(P\space || \space Q) \\ &= - \sum{P_i}\space{log_2({Q_i})} \tag{10} \end{align}

PyTorch中的CrossEntropyLoss

torch.nn.CrossEntropyLoss相当于torch.softmax + torch.log + torch.nn.nllloss.

import torch.nn as nn

# 使用NLLLoss实现
nllloss = nn.NLLLoss()
predict = torch.Tensor([[2, 3, 1], [3, 7, 9]])
predict = torch.log(torch.softmax(predict, dim=-1))
label = torch.tensor([1, 2])
nllloss(predict, label)
# output: tensor(0.2684)

# 使用CrossEntropyLoss实现
cross_loss = nn.CrossEntropyLoss()
predict = torch.Tensor([[2, 3, 1], [3, 7, 9]])
label = torch.tensor([1, 2])
cross_loss(predict, label)
# output: tensor(0.2684)
+ + + + \ No newline at end of file diff --git "a/en/docs/Deep-Learning/\345\244\247\346\250\241\345\236\213/Attention-Is-All-You-Need/index.html" "b/en/docs/Deep-Learning/\345\244\247\346\250\241\345\236\213/Attention-Is-All-You-Need/index.html" new file mode 100644 index 000000000..4a59f0d45 --- /dev/null +++ "b/en/docs/Deep-Learning/\345\244\247\346\250\241\345\236\213/Attention-Is-All-You-Need/index.html" @@ -0,0 +1,18 @@ + + + + + +NeurIPS 2017: Attention Is All You Need | 培洋的笔记本📒 + + + + +
+

NeurIPS 2017: Attention Is All You Need

Transformer是Sequence-to-Sequence (Seq2Seq) 模型,模型的输入是向量序列,输出同样是向量序列,且输出的长度由模型经过学习决定。

整体结构

Transformer由Encoder和Decoder组成,编码器和解码器都包含6个Block,整体结构如下图所示。

image-20231119110150110

Encoder

整体结构

Transformer Encoder结构如下图所示。其中,Add指的是残差连接Residual Connection,Norm指的是Layer Normalization。

image-20231115164324713

位置编码(Positional Encoding)

对于输入的句子,对一个词汇的嵌入向量的奇数维度使用sine函数进行编码,对偶数维度使用cosine函数计算编码。

公式如下所示,其中pospos指的是该词汇在整个输入句子中的位置,2i2i以及2i+12i+1指的是该词汇的嵌入向量中的维度,dmodeld_{model}指的是在嵌入层之后嵌入向量的总维度。即对于每个输入词汇,都要计算dmodeld_{model}次位置编码。

PE(pos,2i)=sin(pos100002i/dmodel)(1)PE_{(pos,2i)}=sin(\frac{pos}{10000^{2i/d_{\mathrm{model}}}}) \tag{1}
PE(pos,2i+1)=cos(pos100002i/dmodel)(2)PE_{(pos,2i+1)}=cos(\frac{pos}{10000^{2i/d_{\mathrm{model}}}}) \tag{2}

根据三角函数的性质,对于pos+kpos+k位置的嵌入向量的某一维度(2i2i2i+12i+1)而言,可以表示为pospos位置与kk位置的嵌入向量的2i2i2i+12i+1维度的线性组合,使得位置向量中蕴含了相对位置的信息。

PE(pos+k,2i)=PE(pos,2i)×PE(k,2i+1)+PE(pos,2i+1)×PE(k,2i)PE(pos+k,2i+1)=PE(pos,2i+1)×PE(k,2i+1)PE(pos,2i)×PE(k,2i)(3)\begin{array}{l}PE(pos+k,2i)=PE(pos,2i)\times PE(k,2i+1)+PE(pos,2i+1)\times PE(k,2i)\\PE(pos+k,2i+1)=PE(pos,2i+1)\times PE(k,2i+1)-PE(pos,2i)\times PE(k,2i)\end{array} \tag{3}

最终,位置编码向量的维度与词汇的嵌入维度相同,进行element-wise的相加操作。

InputEmbedding(pos,i)=WordEmbedding(pos,i)+PositionEncoding(pos,i)(4)InputEmbedding(pos,i)=WordEmbedding(pos,i)+PositionEncoding(pos,i) \tag{4}

具体结构

image-20231115164324713

输入向量由Word Embedding和Positional Embedding相加得到。输入序列经过Mutil-Head Self-Attention之后,通过Residual Connection加上自身的输入向量,再经过Layer Normalization,之后送入FCN并进行Residual Connection加上送入FCN的输入自身,最终再进行Layer Normalization,以上构成了一个Encoder Block。每一个Block输出的向量序列长度等于输入的向量序列长度。

Decoder

Decoder的任务是生成输出,可以根据是否一次性生成输出分为Autoregressive(自回归,abbr. AT)以及Non-Autoregressive(非自回归,abbr. NAT)两种模式。

自回归类型的Decoder需要逐步生成输出,并将之前自身输出的所有词汇经过嵌入层后生成token作为下一次的输入,通常每次生成一个词或一个符号。这种方式的缺点是需要保存和更新词表中的所有可能选项,因此在大词汇表上可能会变得非常慢。然而,它的优点是能够利用上下文信息来生成输出,这有助于提高翻译的质量。

非自回归类型的Decoder试图在一次操作中生成整个输出序列。这通常通过使用诸如注意力机制等策略来实现,这些策略允许解码器关注输入序列的不同部分,同时生成输出序列的不同部分。NAT的优点在于其高效性,因为它不需要保存和更新大量的可能选项。然而,由于它不能利用上下文信息来生成输出,因此其生成的输出质量普遍会低于AT。

Autoregressive Decoder(AT)

整体结构

image-20231119102540689

词汇表(Vocabulary)

词汇表(Vocabulary)是一个包含了在特定语言或任务中所有可能出现所有单词或标记的集合。在自然语言处理(NLP)中,词汇表是训练模型时所使用的唯一单词的集合,由具体的生成任务而确定。

Decoder每一步的输出是一个经过Softmax的Probability Distribution(概率分布),代表着词汇表中每一个词汇当前生成的概率,取最大概率值的词汇便是模型当前时间步输出的词汇。

image-20231119094748152

Begin符号

解码器(Decoder)在每个时间步(或每个解码步骤)的输入都来自于前一个时间步自身的输出以及编码器(Encoder)的输出。特别地,首个时间步的输入是Begin符号以及编码器(Encoder)的输出,在每个后续的时间步,解码器的输入会是前一个时间步自身的输出以及编码器(Encoder)的输出,直到生成序列的结束。

特殊符号

Begin符号是在Lexicon中添加的特殊符号,用来表示Decoder生成的开始。Begin符号通常被嵌入到一个低维的连续向量空间中,这个向量空间是通过嵌入层(Embedding Layer)学习得到的,在嵌入层中,离散的符号被映射到一个实数向量。

Begin符号又叫Start符号或SOS符号(Start Of Sentence),都是表示生成的开始。End符号又叫EOS符号(End Of Sentence)。

End符号

在Decoder的生成中,每一个时间步的输出是词汇表中每一个单词经过Softmax之后的概率分布。为了保证生成任务可以通过模型自己停止而不是一直重复,我们向Decoder的输出中加入End符号的生成,即每一次输出除了词汇表的所有词汇外还有End符号的概率,当End符号是在所有词汇中概率最大的词汇时,生成停止。

image-20231119102220262

image-20231119102159884

掩码多头自注意力机制(Masked Multi-Head Self-Attention)

为什么使用掩码多头自注意力

掩码多头自注意力与Transformer训练时采取的Teacher Forcing策略有很大的关系,具体分析见下文《Teacher Forcing与Masked Multi-Head Self-Attention》的讨论环节:Teacher Forcing与Masked Multi-Head Self-Attention

观察Decoder的整体结构,掩码多头自注意力的输入是添加位置编码之后的Decoder当前时间步之前的所有输出单词经过嵌入后的向量表示

掩码多头自注意力机制用于确保在生成序列的过程中,每个位置只能关注到该位置及其之前的位置。这是通过在Self-Attention的计算中应用一个掩码(mask)来实现的。这确保了在生成序列时,每个位置只能查看到它之前的信息,而不能查看到未来的信息,从而实现了自回归性质。

具体来说,添加掩码后的自注意力机制在生成注意力分数时不再考虑输入序列的所有向量。如在输入向量aia^i在计算注意力分数时,只将aia^i的query向量与a1a^1aia^{i}ii个key向量做dot product,而不考虑aia^i之后的输入的key。

tip

对于第ss个时间步,Masked Mutil-Head Self-Attention的输入是时间步ss之前Decoder生成的所有输出单词的嵌入表示。

image-20231119095632569

交叉注意力(Cross-Attention)

交叉注意力是连接Encoder和Decoder的桥梁,也是Decoder输入的重要组成部分。

image-20231119103201335

交叉注意力接收两个输入序列,一个来自编码器(Encoder)的输出序列(通常是输入序列的表示),另一个来自解码器(Decoder),是经过掩码多头自注意力机制的输出序列(通常是正在生成的序列的中间表示)。

在交叉注意力中,每次计算注意力得分的query来自解码器key和value来自编码器。解码器每个向量的查询(Query)与编码器位置的键(Key)进行点积得到了注意力分数,通过Softmax操作后转换为注意力权重,再与编码器位置的值(Value)weighted sum得到加权注意力分数,最终将加权注意力分数求和得到每个输入向量的输出。

image-20231119142212757

Non-Autoregressive Decoder(NAT)

image-20231119103112168

训练(Training)

损失函数

在 Transformer 中,Encoder 不像 Decoder 需要生成序列,因此它通常不涉及标签的预测。Encoder 的训练通常是在整个模型中的联合训练中进行的,通过优化整个模型的损失函数来进行。

Transformer 的整体训练过程一般分为以下几个步骤:

  1. 编码器(Encoder)的正向传播: 输入序列经过编码器的正向传播,产生一组上下文表示。
  2. 解码器(Decoder)的正向传播: 解码器接收上下文表示,并生成目标序列。
  3. 计算损失: 通过比较生成的目标序列与实际目标序列,计算损失。在 Decoder 中,通常使用交叉熵损失函数。
  4. 反向传播: 根据损失,进行反向传播,更新模型参数。这个过程中,梯度通过整个模型传播,包括 Encoder 和 Decoder。

整个模型的参数(包括 Encoder 和 Decoder)都是通过最小化整体损失来进行联合训练的。这是因为整体模型需要协同工作,Encoder 的表示对于 Decoder 的性能至关重要。在训练过程中,梯度从损失函数传播回整个模型,包括 Encoder 和 Decoder,从而更新它们的参数。

需要注意的是,Transformer 模型通常使用的是端到端的训练方式,整个模型的参数是一次性更新的。在某些场景下,你可能会看到对 Encoder 或 Decoder 进行微调(fine-tuning)的情况,但这是在特定应用场景下的调整,不是 Transformer 模型的标准训练方式。

Teacher Forcing

在Transformer的推理阶段,自回归类型的Decoder根据分词方式的不同,一个词汇一个词汇的输出,将当前时间步之前生成的所有词汇作为输入load进入Decoder中。但在训练时如果遵从同样的生成范式会大大降低效率,并且面临则一步错步步错的风险(Error Propagation)。

因此使用Teacher Forcing策略,将Ground Truth一次性喂到Decoder中,使模型更快收敛并且避免误差积累的问题。

image-20231119155803489

但是,自回归Decoder在推理时是一个一个词汇产生的,在产生第ii个词汇时其后续的词汇是未知的,更不用说进行注意力分数的就算了,而在训练过程中使用Teacher Forcing时却可以得到第i+1i+1个及其之后词汇的注意力信息,如果不添加其他策略显然会对模型的泛化能力造成很大的影响,而且这并不符合自回归(Autoregression)的特性。为了解决这个问题,掩码多头注意力机制应运而生,在训练阶段将模型在时间发展顺序的右侧的输入masked掉,防止模型学习到不该学习的注意力。

Teacher Forcing与Masked Multi-Head Self-Attention

参考文献:MultiHead-Attention和Masked-Attention的机制和原理

与Encoder的多头自注意力不同,在Decoder中,为注意力机制应用了掩码,使模型只能关注到当前位置及其之前的位置,而不能访问未来的信息。这解决了引入Teacher Forcing出现的问题,避免了训练与推理阶段的Mismatch,维护了自回归的特性。

具体来说,模拟推理过程中第一个词汇时的场景。当模型只有voc1voc_1词汇向量输入时,在Decoder中,voc1voc_1与自身计算注意力分数,于是有

[o1]=[α1,1][v1](5)\begin{bmatrix}o_1\end{bmatrix}=\begin{bmatrix}\alpha_{1,1}^{\prime}\end{bmatrix}\begin{bmatrix}v_1\end{bmatrix}\tag{5}

我们再模拟训练过程中使用Teacher Forcing,一次性输入为两个词汇voc1voc_1voc2voc_2的情况,于是有

[o1o2]=[α1,1α2,1α1,2α2,2][v1v2](6)\begin{bmatrix}o_1\\o_2\end{bmatrix}=\begin{bmatrix}\alpha_{1,1}^{\prime}&\alpha_{2,1}^{\prime}\\\alpha_{1,2}^{\prime}&\alpha_{2,2}^{\prime}\end{bmatrix}\begin{bmatrix}v_1\\v_2\end{bmatrix} \tag{6}

然而,为了使训练过程中符合推理时自回归的特性,理想的输出应该是

[o1o2]=[α1,10α1,2α2,2][v1v2](7)\begin{bmatrix}o_1\\o_2\end{bmatrix}=\begin{bmatrix}\alpha_{1,1}^{\prime}&0\\\alpha_{1,2}^{\prime}&\alpha_{2,2}^{\prime}\end{bmatrix}\begin{bmatrix}v_1\\v_2\end{bmatrix} \tag{7}

继续扩展,当有nn个输入词汇时,应该有

[o1o2on]=[α1,100α1,2α20α1,nα2,nαn,n][v1v2vn](8)\begin{bmatrix}o_1\\o_2\\\vdots\\o_n\end{bmatrix}=\begin{bmatrix}\alpha'_{1,1}&0&\cdots&0\\\alpha'_{1,2}&\alpha'_2&\cdots&0\\\vdots&\vdots&&\vdots\\\alpha'_{1,n}&\alpha'_{2,n}&\cdots&\alpha'_{n,n}\end{bmatrix}\begin{bmatrix}v_1\\v_2\\\vdots\\v_n\end{bmatrix}\tag{8}

因此,我们需要将当前时间步计算的词汇的时间顺序右侧的输入词汇全部掩码,置为0。

在源码中,有如下片段实现掩码:

if mask is not None:
scores = scores.masked_fill(mask == 0, -1e9)

p_attn = scores.softmax(dim=-1)

在源码中,将mask置为负无穷是因为这是在经过Softmax之前进行的掩码,在经过Softmax之后负无穷小就变成了0。

+ + + + \ No newline at end of file diff --git "a/en/docs/Deep-Learning/\345\244\247\346\250\241\345\236\213/Diffusion-Model/index.html" "b/en/docs/Deep-Learning/\345\244\247\346\250\241\345\236\213/Diffusion-Model/index.html" new file mode 100644 index 000000000..3436f750a --- /dev/null +++ "b/en/docs/Deep-Learning/\345\244\247\346\250\241\345\236\213/Diffusion-Model/index.html" @@ -0,0 +1,62 @@ + + + + + +扩散模型(Diffusion Model) | 培洋的笔记本📒 + + + + +
+

扩散模型(Diffusion Model)

tip

在以前的文章图像生成模型中已经大概介绍了目前SOTA的图像生成模型的共同点,并初步了解了Diffusion Model,在这篇文章中将详细讲解扩散模型的数学原理等。

基本概念

首先回顾一下扩散模型的基本概念和生成过程,可以大概分为两步:

  1. Forward Process:对训练集中的图片不断加入与图片shape相同的、从某随机分布中sample出的噪声,直至图片可以被认为是从该随机分布中sample出的矩阵。

    Forward Process又叫做Diffusion Process,在这一步中产生的噪声-加入噪声的图像对可以用来训练Noise Predictor,即从有噪声的图像中预测出其中的噪声,再从输入中减去噪声得到降噪后的图片。

    图像生成的原理

    这一步的目的也同样在之前的文章图像生成模型中提到过:由于根据文字prompt期待生成的图像并不是固定的,可以认为生成的图片在目标域(Target Domain)符合某种分布。因此目前的SOTA模型除了将文字prompt作为输入,还从某随机分布中sample出图片shape的随机向量(矩阵)作为输入,期待模型根据prompt将源域(Source Domain)输入的随机向量映射到目标域的分布,生成对应的图片。

  2. Reverse Process:使用Diffusion Process训练的Noise Predictor,根据文字Prompt对从随机分布中sample出的图片大小的噪声图片进行降噪,得到原图。

image-20231202192659531

值得注意的是,变分自编码器(Variational Auto-Encoder, abbr. VAE)与Diffusion Model非常相似:VAE对训练集中的原始图像使用Encoder将其变换为某种Latent Representation,这种Latent Representation的分布也是符合某种随机分布的,VAE再通过Decoder将期待生成的目标域图像还原出来。

image-20231202222644684

在下面的文章中我们也会学习一下VAE的数学原理,从VAE到Diffusion Model的具体数学推导,可以参考胡老师推荐的论文Understanding Diffusion Models: A Unified Perspective

下面我们以DDPM论文中的原图来分析DDPM的训练与推理过程。

image-20231202232526449

训练过程

  1. 循环开始,重复以下步骤;

  2. 首先从数据集中sample出原始图像x0\mathbf{x}_0

  3. tt是从1,,T1,\ldots,T范围中sample出的一个integer;

  4. ϵ\epsilon是从Normal Distribution中sample出的与x0\mathbf{x}_0相同大小的噪声;

  5. 根据如下规则进行梯度下降,训练Noise Predictor:

    θϵϵθ(αˉtx0+1αˉtϵ,t)2(1)\nabla_{\theta}\left\|\boldsymbol{\epsilon}-\boldsymbol{\epsilon}_{\theta}(\sqrt{\bar{\alpha}_{t}}\mathbf{x}_{0}+\sqrt{1-\bar{\alpha}_{t}}\boldsymbol{\epsilon},t)\right\|^{2}\tag{1}

    首先对x0\mathbf{x}_0ϵ\epsilon根据权重αˉ1,αˉ2,...αˉT\bar{\alpha}_1,\bar{\alpha}_2,...\bar{\alpha}_T做weighted sum产生加入噪声后的图像。通常来说,αˉ1\bar{\alpha}_1αˉT\bar{\alpha}_T是递减的,当在第2步中sample到的tt越大,则原始图像x0\mathbf{x}_0对新图像的贡献越大。

    ϵθ\epsilon_{\theta}是Noise Predictor,其输入是加入噪声的图像以及sample出的tt,而ϵθ\epsilon_\theta训练的Ground Truth就是第3步中sample出的噪声ϵ\epsilon

  6. 直至噪声预测模型ϵθ\epsilon_\theta训练至收敛。

image-20231202235322516

推理过程

  1. 从Normal Distribution中sample出图片大小的噪声xT\mathbf{x}_T

  2. ttT,,1T,\ldots,1范围循环TT次;

  3. 对与每一次以tt计数的循环,若t>1t>1,则从Normal Distribution中sample出z\mathbf{z},否则z=0\mathbf{z}=\mathbf{0}

  4. 根据如下公式得到降噪后的图像:

    xt1=1αt(xt1αt1αˉtϵθ(xt,t))+σtz(2)\mathbf{x}_{t-1}=\frac{1}{\sqrt{\alpha_{t}}}\left(\mathbf{x}_{t}-\frac{1-\alpha_{t}}{\sqrt{1-\bar{\alpha}_{t}}}\boldsymbol{\epsilon}_{\theta}(\mathbf{x}_{t},t)\right)+\sigma_{t}\mathbf{z}\tag{2}

    其中,xt\mathbf{x}_t代表上一步骤中输出的降噪后的图像,xt1\mathbf{x}_{t-1}代表当前步骤即将输出的降噪后的图像,ϵθ\epsilon_\theta代表Noise Predictor预测出的噪声,αˉ1,αˉ2,...αˉT\bar{\alpha}_1,\bar{\alpha}_2,...\bar{\alpha}_T以及α1,α2,...αT\alpha_1,\alpha_2,...\alpha_T是两组权重序列;

  5. 结束本次for循环;

  6. t=1t=1时,得到x0\mathbf{x}_0,即最终降噪后的图像。

image-20231203133323788

+ + + + \ No newline at end of file diff --git "a/en/docs/Deep-Learning/\345\244\247\346\250\241\345\236\213/GAN/index.html" "b/en/docs/Deep-Learning/\345\244\247\346\250\241\345\236\213/GAN/index.html" new file mode 100644 index 000000000..993e36500 --- /dev/null +++ "b/en/docs/Deep-Learning/\345\244\247\346\250\241\345\236\213/GAN/index.html" @@ -0,0 +1,18 @@ + + + + + +生成式对抗网络(GAN) | 培洋的笔记本📒 + + + + +
+

生成式对抗网络(GAN)

正确发音

How to pronounce Adversarial?

/ˌædvərˈseriəl/

引言

将随机分布作为输入

生成器(Generator)通常接收一个来自潜在空间(latent space)的随机向量作为输入。这个潜在空间通常是一个随机分布,比如均匀分布或正态分布。生成器的任务是将这个随机向量映射成与训练数据相似的样本。

image-20231122102402231

为什么要添加分布

当需要解决的任务需要富有“创造力”时,即根据不同的输入,可以产生多个不一样且正确的输出时。这样的设计使得生成器能够生成多样性的样本,因为每个不同的随机向量都可能导致生成器输出不同的样本。在训练过程中,通过不断调整生成器的参数,使得生成器的输出在数据分布中更难以被判别器区分。

核心思想

GAN的工作原理:

  1. 生成器生成数据: 生成器从潜在空间中采样并生成一些数据。
  2. 真实数据与生成数据进入判别器: 真实数据和生成器生成的数据一起输入判别器。
  3. 判别器训练: 判别器被训练来正确分类真实数据和生成数据。
  4. 生成器训练: 生成器被训练来生成能够欺骗判别器的数据。生成器的目标是生成足够逼真的数据,以至于判别器无法准确区分真假。
  5. 迭代: 生成器和判别器交替训练,迭代进行,直到生成器生成的数据足够逼真。

训练的目标:

  • 生成器目标: 生成更逼真的数据,以欺骗判别器。
  • 判别器目标: 区分真实数据和生成数据,提高对真实数据的分类准确性。

GAN的训练是一个博弈过程,生成器和判别器相互竞争,最终达到平衡,生成器生成的数据足够逼真,判别器也无法准确判别真伪。这种模型在图像生成、风格转换等任务中取得了显著的成功。

具体结构与作用

GAN(Generative Adversarial Network,生成对抗网络)包括两个主要的组件:生成器(Generator)和判别器(Discriminator)。这两个组件通过对抗训练的方式一起学习。

  1. 生成器(Generator): 它负责生成与训练数据相似的新样本。生成器接收来自潜在空间(latent space)的随机向量作为输入,并输出一个与训练数据类似的样本。生成器的目标是欺骗判别器,使其无法区分生成的样本和真实的训练数据。
  2. 判别器(Discriminator): 它负责判别输入的样本是真实的训练数据还是生成器生成的假样本。判别器的目标是尽可能准确地分类输入的样本。

GAN的核心思想是通过对抗过程训练生成器和判别器,不断提高它们的性能。生成器试图生成逼真的样本,而判别器试图正确地区分真实样本和生成样本。这个对抗的训练过程可以被视为在两个分布之间进行的最优控制。

生成器(Generator)

  • 结构: 生成器是一个神经网络,通常是一个反卷积神经网络(Generator Network),其输入通常是一个随机噪声(潜在空间中的点),输出是与训练数据相似的图像或数据。
  • 作用: 生成器的目标是学习生成与真实数据相似的数据。通过迭代训练,生成器的参数被调整,使其生成的数据能够愈发逼真。

Unconditional Generation

Unconditional generation(无条件生成)指的是在生成模型中生成样本时,不受任何条件的约束。在这种情况下,生成器仅根据其学到的分布生成数据,而无需关注特定的输入条件或上下文。

对于生成对抗网络(GAN)或变分自动编码器(VAE)等生成模型,unconditional generation通常表现为从潜在空间中采样,然后将这些样本输入生成器,以生成新的、与训练数据相似的样本。这种生成方式是随机的,因为每次从潜在空间中采样都会导致生成不同的样本。

image-20231122104717264

Conditional Generation

判别器(Discriminator)

  • 结构: 判别器是一个二元分类器,通常是一个卷积神经网络(Discriminator Network)。它的输入可以是真实数据或生成器生成的数据,输出是一个概率,表示输入数据是真实数据的概率。
  • 作用: 判别器的目标是学习区分真实数据和生成器生成的数据。它被训练成对真实数据给出高概率,对生成的数据给出低概率。

image-20231122104853941

训练算法

首先随机初始化生成器和判别器,接下来在每一轮训练中重复以下策略。

第一步,在生成器通过随机噪声神生成样本后,固定生成器的参数,将生成器产生的输出与训练资料中的标签作为判别器的输入,判别器为每个输入样本打分,代表其为真实样本的概率。

为了最小化损失函数使得判别器为真实样本赋分更高,为生成样本赋分更低,设计以下损失函数:

Lossreal=Expdata(x)[logD(x)](1)Loss_{real}=-E_{x\sim p_\text{data}{(x)}}[\log D(x)]\tag{1}

其中,D(x)D(x)是判别器的输出,xx是真实样本,EE是数学期望。

Lossfake=Ezpz(z)[log(1D(G(z)))](2)Loss_{fake}=-E_{z\sim p_z(z)}[log(1-D(G(z)))]\tag{2}

其中,G(z)G(z)是生成器的输出,zz是随机噪声,EE是数学期望。

将真实样本和生成样本的损失相加,形成判别器的总体损失。

Lossdiscriminator=Lossreal+Lossfake(3)Loss_{discriminator}=Loss_{real}+Loss_{fake}\tag{3}

最小化损失函数,更新判别器的参数。

image-20231122110917135

第二步,在判别器参数更新后,固定判别器的参数,随机分布的向量再次输入至生成器中,得到生成样本,此时生成样本被送入参数固定的判别器中得到生成样本属于真实样本的概率。在生成器的训练过程中,我们的目的是让生成器生成的样本尽可能的接近真实样本。

LG=Ezpz(z)[logD(G(z))](4)L_G=-E_{z\sim p_z(z)}[\log D(G(z))]\tag{4}

其中,G(z)G(z)是生成器的输出,D(G(z))D(G(z))是生成样本输入到判别器后的输出,zz是随机噪声,EE是数学期望。

image-20231122142205471

+ + + + \ No newline at end of file diff --git "a/en/docs/Deep-Learning/\345\244\247\346\250\241\345\236\213/Image-Generation-Models/index.html" "b/en/docs/Deep-Learning/\345\244\247\346\250\241\345\236\213/Image-Generation-Models/index.html" new file mode 100644 index 000000000..15bfb1b58 --- /dev/null +++ "b/en/docs/Deep-Learning/\345\244\247\346\250\241\345\236\213/Image-Generation-Models/index.html" @@ -0,0 +1,18 @@ + + + + + +图像生成模型 | 培洋的笔记本📒 + + + + +
+

图像生成模型

回顾文字生成的两种方法

在文字生成模型中根据模型的输入是否与前一时刻的输出有关可以分为自回归AR模型与非自回归NAR模型两种,这两种生成方式的利与弊在图像生成中仍然存在。

自回归方法(AR)

Transformer-based的文字生成模型有很多,如GPT模型,大多使用自回归(Autoregressive, abbr. AR)的方法逐token生成。

什么是ARM

ARM(Autoregressive Model,自回归模型)是一类用于建模时间序列数据的统计模型,其中当前时刻的观测值被认为是过去时刻观测值的线性组合,加上一个随机误差项。这类模型的核心思想是,当前时刻的数据依赖于先前时刻的数据。

image-20231125212727371

若把文字生成的AR方法对应到图像生成中的使用,即一个一个像素生成图像。由于当前对高清图像像素的需求越来越高,自回归的生成方式导致速度非常缓慢,但优点是后面生成的每一个像素都考虑了之前的所有像素,从而使生成的图像更清晰、更细腻、更加符合预期。

非自回归方法(NAR)

若使用NAR非自回归的方法一次生成所有像素,各像素在生成时无法考虑之间的语义信息,生成的图像质量普遍低于自回归方法生成的图像。

image-20231127103421435

目前图像生成模型的共同点

VAE、GAN以及Diffusion Model等生成模型,都不只是单独使用文字作为输入来生成图像,而是使用了从已知的随机分布(e.g. Normal Distribution)中sample出向量作为模型额外输入的方法。

大致的思想如下图所示,由于期待生成的图像并不是固定的,可以将预期输出看作是一个分布,即P(xy)P(x|y),而图像生成模型需要完成的任务就是将输入的从某一随机分布中sample出的向量对应到图像预期输出分布中的某一个图像。

info

总结:由于根据文字prompt期待生成的图像并不是固定的,可以认为生成的图片在目标域(Target Domain)符合某种分布。因此目前的SOTA模型除了将文字Prompt作为输入,还从某随机分布中sample出图片shape的随机向量(矩阵)作为输入,期待模型根据prompt将源域(Source Domain)输入的随机向量映射到目标域的分布,生成对应的图片。

image-20231127104041455

生成模型的共同结构

Stable Diffusion是目前图像生成的SOTA模型之一,在本章中我们快速的了解一下Stable Diffusion的大致框架以及原理。

通用框架概览

目前,如Stable Diffusion等SOTA图像生成模型都具备以下所示的三个模块,通常情况下这三个模块分开训练,最终通过特殊的逻辑和规则组合在一起。

  • Text Encoder:根据输入的text prompt进行嵌入表示
  • Generation Model:接受Text Encoder输出的prompt表示以及从随机分布sample出的图像大小的向量,得到“中间产物”,中间产物有以下两种情况:
    1. 具有视觉意义但经过压缩比较模糊的图像
    2. 不具备视觉特征的矩阵(Latent Representation)
  • Decoder:以上述的“中间产物”作为输入,生成出高清图像

通用框架的三个组成部分如下图所示:

image-20231127173905238

再附上Stable Diffusion、DALL-E系列以及Google的Imagen的结构说明。

其中Imagen将压缩版本的图片作为Generation Model的中间产物,Stable Diffusion以及DALL-E将Latent Representation作为中间产物。

image-20231127195336960

image-20231127195527792

img

根据Imagen的实验结果,相对于Decoder即Diffusion Model的模型大小,Text Encoder的模型大小对图像生成模型的影响是非常大的。Text Encoder可以帮助模型理解prompt中在训练资料的文字-图像对中没有出现的新的词汇,从而提高图像生成的表现。

Scaling text encoder size is more important than U-Net size. While scaling the size of the diffusion model U-Net improves sample quality, we found scaling the text encoder size to be significantly more impactful than the U-Net size.

Photorealistic Text-to-Image Diffusion Models with Deep Language Understanding

image-20231127201338956

Benchmark

下面介绍两种用于评估图像生成模型的常用Benchmark:FID与CLIP Score。

FID(Fréchet Inception Distance)

FID提供一个Pre-trained的CNN,该CNN通常使用预训练的Inception v3模型。在计算FID时,生成图像和真实图像分别输入到预训练的CNN中,提取出各自的特征表示向量(Representation)。这两个Representation越接近,代表输出的图像越像预期的“真实”图片。

在FID中,做出了如下重要的假设:将生成的图像真实的图像经过CNN输出的Representation看作是sample自两个高斯分布的随机变量。然后,通过计算两个特征向量的均值和协方差矩阵来得到两个高斯分布的参数。最后,利用两个高斯分布之间的Fréchet距离来衡量生成图像与真实图像之间的差异。

FID=μ1μ222+tr(Σ1+Σ22(Σ1Σ2)12)(1)\mathrm{FID}=\left\|\mu_1-\mu_2\right\|_2^2+\mathrm{tr}\left(\Sigma_1+\Sigma_2-2\left(\Sigma_1\Sigma_2\right)^{\frac12}\right)\tag{1}

其中,μ1\mu_1μ2\mu_2分别是第一个和第二个高斯分布的均值向量;Σ1\Sigma_1Σ2\Sigma_2则是它们的协方差矩阵;tr()\mathrm{tr}(\cdot)表示矩阵的迹运算。

高斯分布的均值向量从观测到的数据中计算出来的。对于一个nn-维高斯分布,其均值向量可以表示为一个长度为nn的列向量,其中的每一个元素都是一个特定维度的平均数,这可以通过在每个维度上进行简单的算术平均来完成。

值得注意的是,FID指标需要一定数量的生成图像和真实图像来进行统计估计。这是因为FID的计算是基于两个高斯分布之间的距离计算的,因此需要足够多的样本数量才能够获得较为准确的概率分布估计。

image-20231127202031894

CLIP Score

CLIP Score中的CLIP指的就是OpenAI的CLIP(Contrastive Language-Image Pre-Training)模型

具体来说,CLIP Score的计算方式是将用于生成图像的文字prompt输入至CLIP的Text Encoder中得到一个Representation,再将对应prompt生成的图像输入至CLIP的Image Encoder中得到对应的Representation,计算二者之间的距离,即得到CLIP Score。分数越小,代表文字和图像更align。

image-20231128143336879

通用框架解析

Generation Model

Generation Model的生成过程其实就是Denoise的过程。具体来讲,输入文字Prompt以及从随机分布中sample出的与预期生成图像具有相同大小的噪声矩阵,预测出输入图片中的噪声分布,在输入图像中减去噪声,输出去噪后的图像。Generation Model的最终输出是中间产物,这个中间产物可以是图像的压缩版本,也可以是一个Latent Representation。因此,训练Generation Model其实就是训练一个Noise Predictor

中间产物是压缩图像

当Generation Model的中间产物是压缩图像时,如Diffusion模型,在训练Generation Model时的训练资料可以通过对数据集中的原始图片添加与图像大小一致地从已知随机分布中sample出的噪声来获得。此时加入噪声后的图像可以作为压缩图像输入至Noise Predictor中,而需要预测出的噪声分布的Ground Truth就是sample出的噪声。

中间产物是Latent Representation

中间产物是Latent Representation时,同样采取从已知随机分布中sample出噪声再添加到网络的输入作为生成Ground Truth的策略,但是还额外需要一个Encoder来产生Latent Representation

这里的Encoder使用数据集中的图片(即期待模型最终输出的图片)作为输入,输出该图片的某种Latent Representation,经过从随机分布中sample出的噪声的加入,输入至Noise Predictor中。从随机分布中sample出的噪声就是Noise Predictor的Ground Truth。

Decoder

Generation Model的训练需要大量成对的(Pair)文字-图像资料。而对于Decoder来说,它的输入是中间产物(即Generation Model生成的压缩的图片或Latent Representation),输出的是还原出的高分辨率的图像,它的训练是不需要额外pair的文字-图像资料

中间产物是压缩图像

当Generation Model的输出是压缩版本的图像时,Decoder的训练资料可以将从互联网上fetch到的图像作为label,并对这些图像做Down Sampling来获得压缩版本的图像作为Decoder训练时的输出。

image-20231128145010346

中间产物是Latent Representation

当中间产物是Latent Representation时,需要训练一个Auto-Encoder,使用Encoder-Decoder的结构训练生成模型的Decoder。

具体来讲,向Encoder中输入数据集中的高清预期图片,Encoder将其转换为某种Latent Representation,Decoder再吃Encoder的输出,最终输出还原出的高清label图片,训练的方向是让输出的图片与输入的图片越接近越好。在这个过程中,不需要额外的标注,Auto-Encoder和生成模型的Decoder一起更新参数。

image-20231128150641374

常见图像生成模型速览

在这个模块大致介绍目前常见的几种图像生成模型,其中Diffusion Model以及GAN将在以后的文章中详细讲解。

变分自编码器(VAE)

变分自编码器(Variational Auto-Encoder, abbr. VAE)的训练策略是使用Encoder将输入图像对应(嵌入)到一个符合某随机分布的向量,再将该向量作为Decoder的输入,加上文字prompt后,期待模型产生合适的图像。

image-20231127104842038

tip

VAE在训练过程中,期待Ecoder输入多张图片后,输出的向量在一起符合某个随机分布(e.g. Normal Distribution),并不是Encoder直接输出一个Distrubution。

基于流的生成模型(Flow-Based Generative Model)

基于流的生成模型采用特殊的网络结构的设计,将Encoder设计为可逆的(invertible),在训练阶段喂入多张图片,期待模型的向量符合某个随机分布。而在预测阶段,由于Encoder是可逆的,输入从该随机分布中sample出来的向量,期待输出对应的图像。

注意,由于Encoder是可逆的,在训练阶段其输入的图片矩阵的形状应该等于输出的随机分布向量的形状,在推理阶段亦然。

image-20231127111749208

生成对抗网络(GAN)

GAN模型的结构分为Generator和Discriminator,其中Generator接受来自随机分布的向量,产生预期图像;Discriminator接受生成器输出的图像或真实图像,输出输入的图像是真实图像的概率。在训练过程中,通过固定生成器参数来更新辨别器参数、固定辨别器参数更新生成器参数的往复交替训练来形成“两个网络对抗”的效果,从而使得生成器生成的图像更逼真(与输入的真实图像更近似)、辨别器识别是否是输入的真实图像的精确度更高。

image-20231127113242641

扩散模型(Diffusion Model)

扩散模型的核心思想是对输入的图片加入噪声使其成为从某一随机分布sample出的向量,并在这个过程中训练出Noise Predictor;在生成图片时,输入从该随机分布中sample出的向量,使用训练出的Noise Predictor对噪声denoise从而获得生成的图片。

image-20231127112447752

DDPM(Denoising Diffusion Probabilistic Models)模型为例,模型在denoise时为每个denoise步骤赋予一个编号,越早进行denoise的步骤编号越大,因此,这个编号也代表着图像中噪声的严重程度。在Denoise模块中,模型根据输入的带有噪声的图片、文字prompt以及噪声的严重程度(即denoise的步骤)预测出该图片中噪声的分布,然后将输入的图片中减去预测出的噪声得到denoise后的图片。

Denoise模块的目标是预测出输入的噪声图片中的噪声,其资料可以通过对数据集中的图片不断加入从Gaussian Distribution中sample出的噪声的方法来获得,这个加噪声的过程我们称为Forward Process or Diffusion Process。此时将加入噪声后的图片、文字prompt以及denoise的步骤序号作为输入,sample出的噪声作为Ground Truth对noise predictor进行训练。

+ + + + \ No newline at end of file diff --git "a/en/docs/Deep-Learning/\345\244\247\346\250\241\345\236\213/Prompt Learning/Undergraduate-Dissertation/index.html" "b/en/docs/Deep-Learning/\345\244\247\346\250\241\345\236\213/Prompt Learning/Undergraduate-Dissertation/index.html" new file mode 100644 index 000000000..07bdcbd7c --- /dev/null +++ "b/en/docs/Deep-Learning/\345\244\247\346\250\241\345\236\213/Prompt Learning/Undergraduate-Dissertation/index.html" @@ -0,0 +1,18 @@ + + + + + +本科毕业论文:基于 Prompt Learning 的视觉-语言大模型在图像生成中的应用与研究 | 培洋的笔记本📒 + + + + +
+

本科毕业论文:基于 Prompt Learning 的视觉-语言大模型在图像生成中的应用与研究

本篇论文主要基于 IPL 的思想实现。本仓库大部分从 IPL-Zero-Shot-Generative-Model-Adaptation fork 而来并做出了一定修改。

依赖

创建 Anaconda 虚拟环境

conda create -n ipl python=3.8
conda activate ipl

安装依赖

请确保 NVIDIA 驱动、CUDA 以及 PyTorch 之间版本互相匹配。

conda install pytorch torchvision torchaudio pytorch-cuda=11.8 -c pytorch -c nvidia
pip install ftfy regex tqdm ninja
pip install git+https://github.com/openai/CLIP.git

下载预训练生成器

预训练的源域生成器可以通过 Google Drive 或者 Tsinghua Cloud 下载,并将其置于 ./pre_stylegan 文件夹中。

概述

技术细节

prompts 的初始化

ctx_init 参数用于初始化 prompts,官方提供的演示 context 是a photo of a

source_prompts = [prompt_prefix + " " + args.source_class]
target_prompts = [prompt_prefix + " " + args.target_class]

源域的初始提示词 source_prompts 是 ctx_init 与源域标签的组合。若源域标签为 photo,则源域的初始提示词是 a photo of a photo。目标域的初始提示词同理。

prompts 的 tokenize 与 embedding

源域以及目标域的初始提示词接下来会进行 tokenize:

source_tokenized_prompts = torch.cat([clip.tokenize(p) for p in source_prompts]).to(device)
# (1, 77) 'sot a photo of a photo eot' 在经过tokenize后为tensor [[49406, 320, 1125, 539, 320, 1125, 49407, etc]]
# 77是CLIP在tokenize方法中缺省的context_length,超过context_length将被truncate,不足的将用0补齐
target_tokenized_prompts = torch.cat([clip.tokenize(p) for p in target_prompts]).to(device)
# (1, 77) 'sot a photo of a disney' 在经过tokenize后为tensor [[49406, 320, 1125, 539, 320, 4696, 49407, etc]]
# 77是CLIP在tokenize方法中缺省的context_length,超过context_length将被truncate,不足的将用0补齐

tokenize 是 CLIP 对送入的 prompt 字符串进行标记化处理,在头部和尾部添加 startoftext 以及 endoftext 标记,最终为两个首尾标记和全部单词生成 int 标记。其中 CLIP 模型缺省的 context_length 是77,若 prompt 大于 77 会进行截断(truncate),若小于 77 会进行补零,因此 source_tokenized_promptstarget_tokenized_prompts 的形状均为 (1, 77)。

在提示词标记化之后,将进行嵌入表示 embedding:

source_embedding = clip_model.token_embedding(source_tokenized_prompts).type(clip_model.dtype)
# (1, 77, 512) 其中512是CLIP中的n_dim,token_embedding层的词嵌入的维度
target_embedding = clip_model.token_embedding(target_tokenized_prompts).type(clip_model.dtype)
# (1, 77, 512) 其中512是CLIP中的n_dim,token_embedding层的词嵌入的维度

compute_text_features 的实现细节

在 Mapper 生成 prompts 后进行 prompts 的特征提取时,需要传入 tokenize 之后的人工初始化 prompt(‘a photo of a photo.’或‘a photo of a disney.’),用于选择 eot 符号对应的维度来进行特征投影(因为 eot 作为整个句子的结尾,被认为该维度包含更多的信息。具体做法:由于在 tokenize 之后,eot 符号对应的维度的值最大,因此可使用 argmax 来定位),以保证最后得到的特征形状与图像特征提取的输出形状相同,使得后续可以进行对比学习的损失计算。

训练 stage 1

Z空间与W空间

# Z空间到W空间的变换
sample_z = mixing_noise(args.batch_mapper, 512, args.mixing, device)
# (batch_size, 512)
sample_w = net.generator_frozen.style(sample_z)
# (batch_size, 512)

Z 空间和 W 空间是 StyleGAN 模型中两种不同的隐变量空间,分别用于控制生成图像的随机特征和样式信息。W 空间通过对 Z 空间的映射得到。

  1. Z 空间(Latent Space Z)

    • Z 空间是随机噪声空间,通常由随机噪声向量组成,表示了图像的随机特征。
    • 在 StyleGAN 中,Z 空间的维度通常为 512 维。这意味着一个 Z 向量由 512 个数字组成,每个数字表示了图像的一个随机特征的强度或者方向。
  2. W 空间(Style Space W)

    • W 空间经过特征解耦的隐空间,与 Z 空间相比更加解耦合。

    • 在 StyleGAN 中,W 空间的维度也通常为 512 维,是通过mapping network进行映射得到的,mapping network由PixelNorm层与EqualLinear层构成。以下代码节选自sg2_model.py

      '''mapping network'''
      layers = [PixelNorm()]

      for i in range(n_mlp):
      layers.append(
      EqualLinear(
      style_dim, style_dim, lr_mul=lr_mlp, activation="fused_lrelu"
      )
      )

      self.style = nn.Sequential(*layers)
  3. Z 空间与 W 空间的关系

    • 在 StyleGAN 中,通常会先将一个 Z 向量映射到 W 空间,然后再将 W 向量输入到生成器网络中生成图像。
    • Z 空间提供了初始随机噪声,而 W 空间则通过特征解耦提供更多控制图像风格的灵活性。通过对 Z 和 W 之间的映射以及 W 在生成器中的应用,StyleGan 实现了高度可控且具有良好生成效果的图像合成。

损失函数

在代码中,stage 1 的损失函数是 global_clip_loss,该损失由三部分组成:

  1. 对比学习损失:Mapper 生成的源域 prompts 的特征(注意,这里的 prompts 特征是与人工初始化的 prompts 的特征做过 element-wise 相加后的特征)与源域图像特征的余弦相似度组成的对比学习损失;
  2. 目标域正则化损失:Mapper 生成的目标域 prompts 的特征与目标域文本标签特征的余弦相似度,这里生成的目标域 prompts 特征同样也是与人工初始化的 prompts 做过加法的。注意该损失有权重 lambda_l
  3. 源域正则化:计算生成的源域prompts与源域标签之间的余弦相似度,由 lambda_src 控制,默认是 0。

训练 stage 2

确定目标域生成域需要更新的层

在训练的第二阶段进行前向传播时,需要先对目标域生成器(generator_trainable)的所有层进行 unfreeze,然后对更新哪些层做出选择,承担选择任务的功能函数:model.ZSSGAN.ZSSGAN.determine_opt_layers,最后 freeze 所有层后再 unfreeze 选择的网络层。

if self.training and self.auto_layer_iters > 0:
self.generator_trainable.unfreeze_layers() # unfreeze
train_layers = self.determine_opt_layers() # layer to train

if not isinstance(train_layers, list):
train_layers = [train_layers]

self.generator_trainable.freeze_layers()
self.generator_trainable.unfreeze_layers(train_layers) # unfreeze

具体选择带更新网络层的策略:

将 W 空间的隐向量送入目标域生成器(SG2Generator)中,并进行反向传播,此时可以通过反向传播后 W 空间隐向量不同维度的更新幅度来衡量不同网络层的影响力,因此选出更新幅度最大的维度就可以确定在 Model Adaption 中需要更新的网络层。

之所以 W 空间编码在 n_latent 维度上的序号就代表着对应的网络层数的序号,是因为 StyleGAN 生成器的结构决定了这一点:StyleGAN 生成器中,W 空间编码的不同维度会被送入生成器网络的不同层,控制这些层的特征映射 (feature mapping)。具体来说,W 空间编码的每个维度会被重复 n_latent 次,作为该层的风格向量 (style vector),通过 AdaIN (Adaptive Instance Normalization) 层控制该层的特征映射。因此,W 空间编码的第 i 个维度会影响生成器网络中第 i 层的特征映射。当某个维度的 W 值被更新的程度较大时,就意味着该维度对应的层在生成目标图像时起到了重要作用,需要被优化。

损失函数

stage 2 的损失函数是 CLIP Loss 类中的 clip_directional_loss,该损失函数由两部分组成:

  1. edit_direciton:源域生成器与目标域生成器生成的图片在经过 image encdoer 后做 element-wise 的相减,最后除以自身的 L2 Norm 方便后续与 target_direction 计算余弦相似度
  2. target_direction:Mapper 产生的源域和目标域 prompts 的 text_features 做element-wise相减后,最后初一自身的 L2 Norm 以便后续与 edit_direction 计算余弦相似度

定量分析指标

参考文献:GAN 的几种评价指标

  1. Inception Score(IS)

    评估图像的质量和多样性

    质量:把生成的图片 xx 输入 Inception V3 中,得到输出 1000 维的向量 yy,向量的每个维度的值对应图片属于某类的概率。对于一个清晰的图片,它属于某一类的概率应该非常大,而属于其它类的概率应该很小。用专业术语说, p(yx)p(y|x)​ 的熵应该很小(熵代表混乱度,均匀分布的混乱度最大,熵最大)。

    多样性: 如果一个模型能生成足够多样的图片,那么它生成的图片在各个类别中的分布应该是平均的,假设生成了 10000 张图片,那么最理想的情况是,1000 类中每类生成了 10 张。转换成术语,就是生成图片在所有类别概率的边缘分布 p(y)p(y)​ 熵很大(均匀分布)。

    因此,对于 IS 我们需要求的两个量就是 p(yx)p(y|x)p(y)p(y)。实际中,选取大量生成样本,用经验分布模拟 p(y)p(y)

    p^(y)=1Ni=1Np(yx(i))\hat{p}(y)=\frac{1}{N}\sum_{i=1}^{N}p(y|\mathbf{x}^{(i)})

    Inception Score 的完整公式如下:

    IS(G)=exp(ExpgDKL(p(yx)p(y)))\mathbf{IS}(G)=\exp\left(\mathbb{E}_{\mathbf{x}\sim p_g}D_{KL}\left(p(y|\mathbf{x})||p(y)\right)\right)

    通常计算 Inception Score 时,会生成 50000 个图片,然后把它分成 10 份,每份 5000 个,分别代入公式计算 10 次 Inception Score,再计算均值和方差,作为最终的衡量指标(均值±方差)。但是 5000 个样本往往不足以得到准确的边缘分布 p(y)p(y)​,尤其是像 ImageNet 这种包含 1000 个类的数据集。

    StyleGAN-nada 以及 IPL 在经过 batch_size 为 2,iteration 为 300 的训练后(其中 IPL 的 Mapper 是以 batch_size 为 32,iteration 为 300 进行训练的),二者的 IS 分别为 (2.2960, 0.2042) 以及 (2.6420, 0.1959)

  2. Fréchet Inception Distance(FID)

    评估目标域的风格

    计算 IS 时只考虑了生成样本,没有考虑真实数据,即 IS 无法反映真实数据和样本之间的距离,IS 判断数据真实性的依据,源于 Inception V3 的训练集 ImageNet,在 Inception V3 的“世界观”下,凡是不像 ImageNet 的数据,都是不真实的,都不能保证输出一个 sharp 的 predition distribution。因此,要想更好地评价生成网络,就要使用更加有效的方法计算真实分布与生成样本之间的距离。

    FID 距离计算真实样本,生成样本在特征空间之间的距离。首先利用 Inception 网络来提取特征,然后使用高斯模型对特征空间进行建模,再去求解两个特征之间的距离,较低的 FID 意味着较高图片的质量和多样性。

    StyleGAN-nada 以及 IPL 在经过 batch_size 为 2,iteration 为 300 的训练后(其中 IPL 的 Mapper 是以 batch_size 为 32,iteration 为 300 进行训练的),二者的 FID 分别为 84 以及 58

  3. Single Image Fréchet Inception Score(SIFID)

    FID 测量生成的图像的深层特征分布与真实图像的分布之间的偏差。在 ICCV 2019 Best Paper 中提出了 SIFID,只使用一张真实目标域的图像。与 FID 不同,SFID 不使用 Inception Network 中最后一个池化层之后的激活矢量(每个图像一个向量),而是在第二个池层之前的卷积层输出处使用深层特征的内部分布(feature map 中每个位置一个向量)。最终 SIFID 是真实图像和生成的样本中这些特征的统计数据之间的 FID。

  4. Structural Consistency Score(SCS)

    评估图像的结构保存能力

  5. Identity Similarity(ID)

    评估图像的特征保存能力

新增功能

自定义图像风格迁移

新增了自定义图像风格迁移功能。

HyperStyle 中的 e4e encoder 将自定义的真实图像编码至 StyleGAN2 中的 W 空间生成 latent codes,再将其分别输入至源域生成器以及目标域生成器以代替原始的从正态分布中 sample 出的随机向量生成的 w_codes,从而得到相应的图片。其中 e4e encoder 来源于 HyperStyle 提供的预训练 checkpoint。

使用方法:运行 inference.py,设置对应的参数,如生成器以及 e4e encoder 的路径、图像路径等,最后运行即可。

修改日志

  1. 第一次尝试只加载了 w_encoder 类及其对应 checkpoint 参数,导致并未将真实图片编码到 StyleGAN 的 W 空间中,没有 inversion 出合理的结果
  2. 第二次尝试使用了 restyle_e4e_encoder,但是没有使用 dlib 进行 alignment,也没有使用 restyle 模型在反演时使用的多次进行前向传播来修正 latent code 的策略。此次尝试虽然反演出了合理的人像,但是人像的特征保存能力非常弱
  3. 第三次尝试解决了上一次发现的问题,加入 dlib 提供的 landmark 检测以实现 alignment,并且使用 run_loop 函数在 restyle_e4e_encoder 中进行多次前向传播以修正得到的 W 空间的 latent code,效果较好
  4. 对比 pSp 和 e4e encoder,pSp 对人脸图像的还原能力较强,但是会导致目标域图像具有随机的彩色光晕

问题提出与改进

训练阶段人工 prompts 的作用是什么?

作用

  1. 人工设计的 prompts 在计算 text_features 时用于定位 eot 层符号所表示的维度来进行投影,但不参与 text_features 的实际计算
  2. 在训练 Mapper 的 stage 1 的损失函数中,在计算对比损失函数时,Mapper 学习到的 prompts 的文字特征特征会与人工设计的 prompts 的文字特征进行 element-wise 的相加,最后再与 源域生成器得到的图片的图像特征进行对比损失计算

思考

IPL 方法对 Mapper 学习到的 prompts 除了(1)使用对比学习使 prompts 学习到源域图片的特征以及(2)使用域正则化使得 prompts 向目标域标签对齐之外,并没有使用其他与人工设计的 prompts 有关的正则化方式来约束 prompts 的学习,因此人工设计的 prompts 可能并没有起到太大的约束作用。

如果对比学习损失是为了让 Mapper 自监督学习到图片的特征外,那么是否可以对域正则化损失进行改进,约束学习到的 prompts 向人工设计的初始化 prompts 对齐,以实现类似于 Stable Diffusion 类似的 prompts 控制图像生成的效果。

Mapper 结构的设计

Mapper 的作用是从 W 空间的隐式代码中学习出符合源域图片特征以及符合目标域文字特征的 prompts。

原始

+ + + + \ No newline at end of file diff --git "a/en/docs/Deep-Learning/\345\244\247\346\250\241\345\236\213/Self-Attention/index.html" "b/en/docs/Deep-Learning/\345\244\247\346\250\241\345\236\213/Self-Attention/index.html" new file mode 100644 index 000000000..85207addf --- /dev/null +++ "b/en/docs/Deep-Learning/\345\244\247\346\250\241\345\236\213/Self-Attention/index.html" @@ -0,0 +1,29 @@ + + + + + +自注意力(Self-Attention) | 培洋的笔记本📒 + + + + +
+

自注意力(Self-Attention)

认识CNN的局限性

输入与输出的局限性

CNN模型的输入向量的形状是固定的,其输出向量的形状也是固定的或可以根据不同的下游任务而唯一确定,即输入形状与下游任务共同确定了一个CNN模型的架构,具有较强的固定性。

info

在视觉中,输入大多为数字图像,其形状可以大致分为由尺寸和通道数来决定。

从输入图像的尺寸看,当CNN中没有全连接层时,本质上可以接受任意尺寸的输入,但这是狭隘的。若考虑其下游任务以及输出,如FCN(Fully Convolution Network),FCN通过最后通过反卷积将tensor还原到原始图像尺寸,即在CNN中,输入与输出(下游任务的要求)都影响着CNN网络的结构。

从通道数看,CNN本质上可以接受任意通道数的图像输入,但是其模型效果将会受到极大的影响。以一个使用通道数为3的数据集进行训练的CNN模型,但在测试阶段分别使用通道数为 1 和 6 的数据进行推理的情形为例,进行分析:

  1. 通道数为1的测试集:
  • 情况: 如果使用通道数为 1 的数据进行推理,即灰度图像,而模型在训练时是使用 RGB 数据集训练的,模型可能会受到一些影响。
  • 解释: 模型可能在训练时学到了关于颜色的特定信息,而在测试时,如果输入是灰度图像,那些颜色信息将不可用。
  • 建议: 在这种情况下,模型可能会失去对颜色信息的敏感性,可能需要进行进一步的调整或微调,以适应灰度图像的特性。
  1. 通道数为6的测试集:
  • 情况: 如果使用通道数为 6 的数据进行推理,模型可能会面临额外的挑战,因为它在训练时只见过 3 个通道的数据。
  • 解释: 模型在训练时学到的权重是基于 3 个通道的数据的,对于额外的通道,模型可能无法有效利用这些信息。
  • 建议: 对于通道数不匹配的情况,可以考虑进行通道的适当组合或调整。这可能包括降低通道数(例如,只使用前 3 个通道),或者通过某种方式将 6 个通道映射到 3 个通道,例如通过某种特定的数据预处理。

当模型的输入更复杂(sophisticated),是长度不定的向量序列(sequence)时,CNN不能很好地处理,且不能解决输出由输入和模型自行决定的下游任务,如生成类任务。

关联上下文信息的局限性

CNN中存在局部连接和权值共享的归纳偏置:

  • 局部连接:CNN使用卷积层通过滑动卷积核在输入上进行局部感受野的操作。每个神经元只与输入的一小部分区域相连,这意味着每个神经元只能接触到局部的上下文信息。
  • 权值共享: 权值共享的主要思想是,对于输入图像的不同位置使用相同的权重参数进行卷积操作。这意味着,无论卷积操作发生在图像的左上角、右下角,或者其他任何位置,都使用相同的卷积核进行权值计算。CNN的权值共享使得模型能够学习到图像中的局部特征,这也是一种对于上下文的假设。相邻位置上的权重共享使得模型能够对局部结构进行建模,这种权重共享使得CNN具有更强的归纳偏置。
tip

在多通道卷积中,卷积核不同通道之间的权重参数是独立的。这使得网络能够学习不同通道之间的特征组合。这种设计有效地捕捉了输入数据中的多通道信息,提高了网络的表达能力。

CNN的设计理念认为:在图像任务中,局部结构通常更为重要,局部连接和权值共享使得CNN更适用于图像处理等任务。但也正是这种设计理念,使得CNN在面临长输入序列时不能很好地综合上下文信息、提取位置信息,因此Self-Attention应运而生,允许每个位置关注到序列中地所有其他位置。这种全局关联性质使得Transformer能够捕捉序列中的长距离依赖关系。

Self-Attention的原理

什么是Self-Attention

A self-attention module takes in nn inputs and returns nn outputs. What happens in this module? In layman’s terms, the self-attention mechanism allows the inputs to interact with each other (“self”) and find out who they should pay more attention to (“attention”). The outputs are aggregates of these interactions and attention scores.

Self-Attention接受任意向量数量的向量序列的输入,输出每一个向量所有向量(包括自身)的注意力分数。这使得Self-Attention在捕捉长距离依赖和处理序列中的全局关系时非常有效。

Self-Attention的核心思想

自注意力机制的核心思想是为序列中的每个向量分配一个权重(即注意力分数),该权重表示该元素与其他元素的关联强度。这个权重是通过计算输入序列中所有元素与当前元素之间的关系来确定的。通常,这个计算过程使用一个可学习的权重矩阵来完成,即用来生成Key,Query以及Value的权重矩阵。

Self-Attention的实现

定义输入

Self-Attention的输入是向量序列,其向量数量是任意的,计算每个输入向量之间的注意力分数。在本例中输入向量个数为3,同时为了统一性分析,计输入向量个数为batchbatch个。

# define the input, which has a shape of (3, 4)
inputs = [[1, 0, 1, 0], [0, 2, 0, 2], [1, 1, 1, 1]]
inputs = torch.tensor(inputs, dtype=torch.float32)

img

初始化权重矩阵

每个输入向量都会与3个权重向量做乘法得到3个新的向量,分别为key,query以及value。在本例中将新的向量维度设为3,由于输出的k、q、v矩阵大小均为(3,3)(3, 3),因此每个权重矩阵的形状应该是(4,3)(4, 3)。为了统一性分析,计key,query以及value各向量维度为numnum

In a neural network setting, these weights are usually small numbers, initialised randomly using an appropriate random distribution like Gaussian, Xavier and Kaiming distributions. This initialisation is done once before training.

在实际应用中,权重通常是较小的数字,通过适当的随机分布(比如高斯、Xavier和Kaiming分布)进行随机初始化。

# define the weights for keys, queries and values
w_key = torch.tensor([[0, 0, 1], [1, 1, 0], [0, 1, 0], [1, 1, 0]], dtype=torch.float32)
w_query = torch.tensor([[1, 0, 1], [1, 0, 0], [0, 0, 1], [0, 1, 1]], dtype=torch.float32)
w_value = torch.tensor([[0, 2, 0], [0, 3, 0], [1, 0, 3], [1, 1, 0]], dtype=torch.float32)

计算key,query以及value

# compute keys, queries and values
keys = inputs @ w_key
queries = inputs @ w_query
values = inputs @ w_value
print("keys:\n", keys) # (3, 3)
print("queries:\n", queries) # (3, 3)
print("values:\n", values) # (3, 3)

image-20231106192612109

计算原始的注意力分数

我们要为每一个输入向量计算它对所有向量的注意力分数,包括对自身的。

原始注意力分数的计算方式为,使用自身的query分别与所有向量的key做内积(dot product),得到的scalar数量与输入向量个数相同,都为batchbatch,即scores矩阵的形状应为(batch,batch)(batch, batch)

# compute raw self-attention scores
scores = queries @ keys.T
print("attention scores:\n", scores)

注意,代码中提供的是计算所有向量的注意力分数,而图中演示的只是计算input #1的注意力分数。

image-20231106193506733

对每一个向量计算出的注意力分数做softmax

# normalize the attention score
score_softmax = F.softmax(scores, dim=-1) # select the highest dimension
print("attention scores after normalization:\n", score_softmax)

image-20231106195231034

将注意力分数与对应的value相乘

每一个输入向量对所有batchbatch个向量计算得到的注意力分数,都要与其对应的value向量相乘,计算加权的注意力分数。最终的注意力分数矩阵的形状应为(batch,num)(batch, num)

# compute the weighted values by doting score_softmax with values
# please be advised, this is dot product
weighted_values = values[:, None] * score_softmax.T[:, :, None]
print("weighted scores: \n", weighted_values)

image-20231106195316815

加权注意力分数求和

最后一步,对于每个向量得到的加权注意力分数进行求和,得到维度为numnum的注意力分数向量,考虑到有batchbatch个输入向量,因此最终的注意力分数矩阵的形状为(batch,num)(batch, num)

根据推导,显然,最终Self-Attention的输出向量维度与value向量的维度相同,输出向量的数量与输入向量的数量相同

# compute outputs
outputs = weighted_values.sum(dim=0)

image-20231106200506260

总结

As mentioned in the above paragraph, we don’t only use dot product to find relevance. But we scale it as well by a factor of the square root of key dimension dk. This helps in making sure that the dot-products between query and key don’t grow too large for dk. If the dot product becomes too large then the softmax output will be very small. To avoid this, we scale the dot product.

在计算dot product后,为了避免点积运算经过softmax后的输出太小,在点积后除以key向量维度的平方根来进行缩放。

Attention(Q,K,V)=softmax(QKTdk)V(1)Attention(Q,K,V)=\textit{softmax}(\frac{QK^T}{\sqrt{d_k}})V \tag{1}

img

完整代码

# simple code for Self-Attention
import torch
import torch.nn.functional as F
import numpy as np
import matplotlib.pyplot as plot

# define the input, which has the shape of (3, 4)
inputs = [[1, 0, 1, 0], [0, 2, 0, 2], [1, 1, 1, 1]]
inputs = torch.tensor(inputs, dtype=torch.float32)

# initialize the weights for keys, queries and values
w_key = torch.tensor([[0, 0, 1], [1, 1, 0], [0, 1, 0], [1, 1, 0]], dtype=torch.float32)
w_query = torch.tensor([[1, 0, 1], [1, 0, 0], [0, 0, 1], [0, 1, 1]], dtype=torch.float32)
w_value = torch.tensor([[0, 2, 0], [0, 3, 0], [1, 0, 3], [1, 1, 0]], dtype=torch.float32)

# compute keys, queries and values
keys = inputs @ w_key
queries = inputs @ w_query
values = inputs @ w_value
print("keys:\n", keys) # (3, 3)
print("queries:\n", queries) # (3, 3)
print("values:\n", values) # (3, 3)

# compute raw self-attention score
scores = queries @ keys.T
print("attention scores:\n", scores)

# normalize the attention score
score_softmax = F.softmax(scores, dim=-1) # select the highest dimension
print("attention scores after normalization:\n", score_softmax)

# compute the weighted values by doting score_softmax with values
# please be advised, this is dot product
weighted_values = values[:, None] * score_softmax.T[:, :, None]
print("weighted scores: \n", weighted_values)

# compute outputs
outputs = weighted_values.sum(dim=0)

Multi-Head Self-Attention

多头自注意力机制是对自注意力机制的扩展,假设扩展成为nn -head self-attention,则对每个输入向量生成对应的key,query和value后,再次使用nn个可学习的权重矩阵生成nn个不同的key0,...,keyn1key^{0}, ..., key^{n-1},query0,...,queryn1query^{0}, ..., query^{n-1}以及value0,...,valuen1value^{0}, ..., value^{n-1}

在计算attention score时,使用每一个query查询对应的key,即query0query^{0}只与其他每一个输入向量的key0key^{0}做dot product。

image-20231114190847109

Self-Attention与CNN的对比

Self-Attention可以看作是复杂化的CNN,CNN只能在感受野范围内考虑上下文信息,而Self-Attention可以自己学习感受野。

image-20231114191518095

+ + + + \ No newline at end of file diff --git "a/en/docs/Deep-Learning/\345\244\247\346\250\241\345\236\213/Self-Supervised-Learning/index.html" "b/en/docs/Deep-Learning/\345\244\247\346\250\241\345\236\213/Self-Supervised-Learning/index.html" new file mode 100644 index 000000000..f3df38c13 --- /dev/null +++ "b/en/docs/Deep-Learning/\345\244\247\346\250\241\345\236\213/Self-Supervised-Learning/index.html" @@ -0,0 +1,18 @@ + + + + + +自监督学习(Self-Supervised Learning) | 培洋的笔记本📒 + + + + +
+

自监督学习(Self-Supervised Learning)

tip

在自监督学习的模型中,出现了很多以芝麻街任务命名的经典模型和论文。

image-20231121113727141

介绍

自监督学习是无监督学习的一种方法,利用未标记的数据来训练模型。与传统的监督学习不同,自监督学习不需要依赖人工标注的标签数据,而是通过自动构建任务来生成伪标签,从而指导模型的学习。

自监督学习的基本原理是,通过对输入数据进行某种变换操作,使得模型能够从中提取有用的特征和语义信息。例如,在自然语言处理领域,一种常见的自监督学习任务是预测下一个单词;在计算机视觉领域,一种常见的自监督学习任务是预测图像中的缺失部分。这些任务可以帮助模型学习到输入数据中的潜在结构和规律,从而提高其泛化能力和性能。

image-20231121124909759

BERT(Bidirectional Encoder Representation from Transformers)

下面以BERT为例,介绍自监督模型。

结构

BERT的结构其实是Transformer的Encoder部分,仅使用Encoder做特征抽取器。

BERT(Bidirectional Encoder Representations from Transformers)本身是一种预训练的模型架构,通常是在大规模无标签数据上进行预训练,然后在特定任务上进行微调。BERT并不是一个用于特定任务的模型,而是一个通用的语言表示模型。

使用 BERT 的一般步骤包括:

  1. 预训练(Pretraining):在大规模无标签数据上对 BERT 进行预训练,学习通用的语言表示。
  2. 微调(Fine-tuning):将预训练的 BERT 模型应用于特定任务,并在有标签的数据上进行微调,以适应该任务。
  3. 应用于下游任务(Downstream Tasks):微调后的 BERT 模型可以被用于执行特定的下游任务,如文本分类、命名实体识别等。

Self-Supervised Pretraining

Masking Input

BERT模型的自监督性质主要体现在其训练数据并不需要人为标注label,而是通过对输入句子中的部分词汇做mask,将输入数据的部分内容使用special token或random token进行遮挡后,喂入Encoder中。对于每个被mask掉的词汇,BERT输出一个概率分布向量,表示这个词汇属于词汇表中的哪一个。

BERT的损失函数主要是Masked Language Model(MLM)任务的交叉熵损失,通过最小化Encoder输出的概率分布与Ground Truth之间的交叉熵损失函数来训练模型。

L=1Ni=1Nyilog(pi)(1)L=-\frac1N\sum_{i=1}^Ny_i\log(p_i)\tag{1}

其中:

  • NN是输出的概率分布向量的维度。
  • yiy_{i}是概率分布向量标签。
  • pip_{i}是模型预测的概率分布向量。

image-20231121134420134

Next Sentence Prediction

image-20231121171808764

Fine-tuning

在预训练之后,BERT 的模型参数可以被用于多个下游任务,如文本分类、命名实体识别、问答等。

首先,我们先来了解一下NLP任务中很重要的一个Benchmark:GLUE。

Benchmark: GLUE

GLUE(General Language Understanding Evaluation)是一个评估自然语言处理模型在多个任务上综合性能的基准(benchmark)。它旨在测试模型对各种语言任务的通用理解能力。GLUE benchmark 包含了多个任务,每个任务都有一个对应的数据集和评估标准。

  1. MNLI(MultiNLI):自然语言推理任务,要求模型判断给定的两个句子之间的关系是蕴含、矛盾还是中立。
  2. QQP(Quora Question Pairs):问题匹配任务,要求模型判断两个问题是否语义上等价。
  3. QNLI(Question-answering Natural Language Inference):句子分类任务,要求模型判断给定问题和句子之间的关系。
  4. RTE(Recognizing Textual Entailment):文本蕴涵任务,要求模型判断给定的两个文本之间是否存在蕴涵关系。
  5. STS-B(Semantic Textual Similarity Benchmark):语义文本相似度任务,要求模型度量两个文本之间的语义相似度。
  6. CoLA(Corpus of Linguistic Acceptability):语言可接受性判断任务,要求模型判断一个句子是否语法上正确。
  7. MRPC(Microsoft Research Paraphrase Corpus):短语匹配任务,要求模型判断两个句子是否语义上等价。
  8. SST-2(Stanford Sentiment Treebank):情感分类任务,要求模型判断给定句子的情感极性。
  9. WNLI(Winograd NLI):自然语言推理任务,属于 Winograd 模式的变体,要求模型判断一个给定的句子对是否存在蕴含关系。

GLUE 提供了一个全面的测试平台,有助于评估和比较不同自然语言处理模型在多个任务上的性能。

image-20231121172718354

Downstream Tasks

Sentiment Analysis

image-20231121203549320

BERT作为自监督的预训练模型,从大语料库中学习到了一定的语言知识,在做文字情感分析时,只需要在下游连接上对应的分类器网络,即使只有比较少量的训练资料也能得到比较好的效果。

下图将Pre-training&Fine-tuning范式与Scratch范式的训练效果做了对比,其中Scratch范式即使用传统的随机初始化的方式从头训练整个分类网络。可以看到预训练&微调的训练范式可以加速模型的收敛(Convergence)并且效果也更好。

image-20231121203701613

立场分析

image-20231121205359709

Extraction-based Question Answering

BERT也可以用来完成截取式问答任务,提供一篇文章以及问题,要求输出两个integer代表答案短语在该文章中的起始位置以及结束位置。

image-20231121205619437

具体的解决方案:选择输入文章的所有token所对应的输出向量,随机初始化两个相同维度的向量,分别与输出向量做Dot Product,在经过Softmax之后选择最大的得分所对应的索引。得到的两个索引分别是答案短语在文章中开始的位置以及结束的位置。

image-20231121211218801

image-20231121210938519

其他应用

虽然以上的应用都是NLP领域的,但是BERT是Seq2Seq模型,图片、语音等信号也都可以作为Sequence输入至BERT中,因此BERT也可以通过迁移学习应用至多模态领域。

Why does BERT work?

BERT在大规模语料库(Corpus)上预训练后,输出的向量表示了对应输入token的意思,特别地,是考虑了上下文信息的意思。比如,对于水果的苹果已经苹果公司的苹果,BERT对一样的苹果有不同的输出。即对一个处在不同上下文信息中的相同词汇,BERT有不同的Embedding。类似于Word Embedding中的CBOW,BERT可以看作是Contextualized Word Embedding

BERT模型的核心就是通过预训练来学习上下文信息,进而对每个输入token生成相应的向量表示。这个向量表示考虑了上下文信息,所以对于处在不同上下文中的相同词汇,BERT会有不同的Embedding。

——来自讯飞星火大模型

虽然 BERT 的确是一种基于大规模语料库的预训练模型,但它并不是一种简单的词嵌入方法,而是一种深度神经网络模型。

在 BERT 中,每个单词都被嵌入到一个高维空间中,并且这些嵌入向量是通过多层 Transformer 编码器生成的。这些编码器的每一层都包含多个自注意力子层和一个前馈神经网络子层,它们共同作用来捕捉文本中的上下文关系和其他语义特征。

因此,BERT 中的嵌入向量不仅仅是单个单词的词义表征,还包括整个句子或段落中的语境信息。这意味着即使两个单词在不同的上下文中出现,它们的嵌入向量也可能非常相似,因为它们共享相同的语义结构。

总之,BERT 可以被视为一种上下文感知词嵌入技术,但它的实现方式比传统的词嵌入方法要复杂得多。

——来自腾讯混元大模型

GPT: Generative Pre-trained Transformer

GPT的结构是Transformer的Decoder部分,可以承担生成的任务。

GPT的自监督学习的特征体现在:在训练过程中,GPT根据输入的token预测输入的下一个token应该是什么,对输出的distribution与Ground Truth做Cross Entropy Loss来更新参数。

image-20231122093825510

+ + + + \ No newline at end of file diff --git "a/en/docs/Deep-Learning/\345\256\236\346\210\230\347\273\203\344\271\240/Speaker Classification/index.html" "b/en/docs/Deep-Learning/\345\256\236\346\210\230\347\273\203\344\271\240/Speaker Classification/index.html" new file mode 100644 index 000000000..9b207896c --- /dev/null +++ "b/en/docs/Deep-Learning/\345\256\236\346\210\230\347\273\203\344\271\240/Speaker Classification/index.html" @@ -0,0 +1,18 @@ + + + + + +Speaker Classification | 培洋的笔记本📒 + + + + +
+

Speaker Classification

实战练习

Transformer实战练习,代码见Github仓库

This is a practice of Transformer, follow the guide of Github Repo.

image-20240113175506430

Overview

Classify the speaker of given features, learn how to use Transformer and how to adjust parameters of transformer.

Dataset

The original dataset is VoxCeleb1.

We randomly select 600 speakers from VoxCeleb1, then preprocess the raw waveforms into mel-spectrograms. You can download the preprocessed dataset from Google Drive.

Screenshot 2024-01-13 163041

Arguments:

  • data_dir: The path to the data directory.

  • metadata_path: The path to the metadata.

  • segment_len: The length of audio segment for training.

The architecture of dataset directory is shown below, where uttr-{random string}.pt represents PyTorch data file containing valid mel-spectrogram data.

data directory/
├── mapping.json
├── metadata.json
├── testdata.json
└── uttr-{random string}.pt

This is also the assignment solution of ML2021Spring HW4.

+ + + + \ No newline at end of file diff --git "a/en/docs/Deep-Learning/\345\256\236\346\210\230\347\273\203\344\271\240/Undergraduate-Dissertation/index.html" "b/en/docs/Deep-Learning/\345\256\236\346\210\230\347\273\203\344\271\240/Undergraduate-Dissertation/index.html" new file mode 100644 index 000000000..42feda2f7 --- /dev/null +++ "b/en/docs/Deep-Learning/\345\256\236\346\210\230\347\273\203\344\271\240/Undergraduate-Dissertation/index.html" @@ -0,0 +1,18 @@ + + + + + +本科毕业论文:基于 Prompt Learning 的视觉-语言大模型在图像生成中的应用与研究 | 培洋的笔记本📒 + + + + +
+

本科毕业论文:基于 Prompt Learning 的视觉-语言大模型在图像生成中的应用与研究

本篇论文主要基于 IPL 的思想实现。本仓库大部分从 IPL-Zero-Shot-Generative-Model-Adaptation fork 而来并做出了一定修改。

依赖

创建 Anaconda 虚拟环境

conda create -n ipl python=3.8
conda activate ipl

安装依赖

请确保 NVIDIA 驱动、CUDA 以及 PyTorch 之间版本互相匹配。

conda install pytorch torchvision torchaudio pytorch-cuda=11.8 -c pytorch -c nvidia
pip install ftfy regex tqdm ninja
pip install git+https://github.com/openai/CLIP.git

下载预训练生成器

预训练的源域生成器可以通过 Google Drive 或者 Tsinghua Cloud 下载,并将其置于 ./pre_stylegan 文件夹中。

概述

技术细节

prompts 的初始化

ctx_init 参数用于初始化 prompts,官方提供的演示 context 是a photo of a

source_prompts = [prompt_prefix + " " + args.source_class]
target_prompts = [prompt_prefix + " " + args.target_class]

源域的初始提示词 source_prompts 是 ctx_init 与源域标签的组合。若源域标签为 photo,则源域的初始提示词是 a photo of a photo。目标域的初始提示词同理。

prompts 的 tokenize 与 embedding

源域以及目标域的初始提示词接下来会进行 tokenize:

source_tokenized_prompts = torch.cat([clip.tokenize(p) for p in source_prompts]).to(device)
# (1, 77) 'sot a photo of a photo eot' 在经过tokenize后为tensor [[49406, 320, 1125, 539, 320, 1125, 49407, etc]]
# 77是CLIP在tokenize方法中缺省的context_length,超过context_length将被truncate,不足的将用0补齐
target_tokenized_prompts = torch.cat([clip.tokenize(p) for p in target_prompts]).to(device)
# (1, 77) 'sot a photo of a disney' 在经过tokenize后为tensor [[49406, 320, 1125, 539, 320, 4696, 49407, etc]]
# 77是CLIP在tokenize方法中缺省的context_length,超过context_length将被truncate,不足的将用0补齐

tokenize 是 CLIP 对送入的 prompt 字符串进行标记化处理,在头部和尾部添加 startoftext 以及 endoftext 标记,最终为两个首尾标记和全部单词生成 int 标记。其中 CLIP 模型缺省的 context_length 是77,若 prompt 大于 77 会进行截断(truncate),若小于 77 会进行补零,因此 source_tokenized_promptstarget_tokenized_prompts 的形状均为 (1, 77)。

在提示词标记化之后,将进行嵌入表示 embedding:

source_embedding = clip_model.token_embedding(source_tokenized_prompts).type(clip_model.dtype)
# (1, 77, 512) 其中512是CLIP中的n_dim,token_embedding层的词嵌入的维度
target_embedding = clip_model.token_embedding(target_tokenized_prompts).type(clip_model.dtype)
# (1, 77, 512) 其中512是CLIP中的n_dim,token_embedding层的词嵌入的维度

compute_text_features 的实现细节

在 Mapper 生成 prompts 后进行 prompts 的特征提取时,需要传入 tokenize 之后的人工初始化 prompt(‘a photo of a photo.’或‘a photo of a disney.’),用于选择 eot 符号对应的维度来进行特征投影(因为 eot 作为整个句子的结尾,被认为该维度包含更多的信息。具体做法:由于在 tokenize 之后,eot 符号对应的维度的值最大,因此可使用 argmax 来定位),以保证最后得到的特征形状与图像特征提取的输出形状相同,使得后续可以进行对比学习的损失计算。

训练 stage 1

Z空间与W空间

# Z空间到W空间的变换
sample_z = mixing_noise(args.batch_mapper, 512, args.mixing, device)
# (batch_size, 512)
sample_w = net.generator_frozen.style(sample_z)
# (batch_size, 512)

Z 空间和 W 空间是 StyleGAN 模型中两种不同的隐变量空间,分别用于控制生成图像的随机特征和样式信息。W 空间通过对 Z 空间的映射得到。

  1. Z 空间(Latent Space Z)

    • Z 空间是随机噪声空间,通常由随机噪声向量组成,表示了图像的随机特征。
    • 在 StyleGAN 中,Z 空间的维度通常为 512 维。这意味着一个 Z 向量由 512 个数字组成,每个数字表示了图像的一个随机特征的强度或者方向。
  2. W 空间(Style Space W)

    • W 空间经过特征解耦的隐空间,与 Z 空间相比更加解耦合。

    • 在 StyleGAN 中,W 空间的维度也通常为 512 维,是通过mapping network进行映射得到的,mapping network由PixelNorm层与EqualLinear层构成。以下代码节选自sg2_model.py

      '''mapping network'''
      layers = [PixelNorm()]

      for i in range(n_mlp):
      layers.append(
      EqualLinear(
      style_dim, style_dim, lr_mul=lr_mlp, activation="fused_lrelu"
      )
      )

      self.style = nn.Sequential(*layers)
  3. Z 空间与 W 空间的关系

    • 在 StyleGAN 中,通常会先将一个 Z 向量映射到 W 空间,然后再将 W 向量输入到生成器网络中生成图像。
    • Z 空间提供了初始随机噪声,而 W 空间则通过特征解耦提供更多控制图像风格的灵活性。通过对 Z 和 W 之间的映射以及 W 在生成器中的应用,StyleGan 实现了高度可控且具有良好生成效果的图像合成。

损失函数

在代码中,stage 1 的损失函数是 global_clip_loss,该损失由三部分组成:

  1. 对比学习损失:Mapper 生成的源域 prompts 的特征(注意,这里的 prompts 特征是与人工初始化的 prompts 的特征做过 element-wise 相加后的特征)与源域图像特征的余弦相似度组成的对比学习损失;
  2. 目标域正则化损失:Mapper 生成的目标域 prompts 的特征与目标域文本标签特征的余弦相似度,这里生成的目标域 prompts 特征同样也是与人工初始化的 prompts 做过加法的。注意该损失有权重 lambda_l
  3. 源域正则化:计算生成的源域prompts与源域标签之间的余弦相似度,由 lambda_src 控制,默认是 0。

训练 stage 2

确定目标域生成域需要更新的层

在训练的第二阶段进行前向传播时,需要先对目标域生成器(generator_trainable)的所有层进行 unfreeze,然后对更新哪些层做出选择,承担选择任务的功能函数:model.ZSSGAN.ZSSGAN.determine_opt_layers,最后 freeze 所有层后再 unfreeze 选择的网络层。

if self.training and self.auto_layer_iters > 0:
self.generator_trainable.unfreeze_layers() # unfreeze
train_layers = self.determine_opt_layers() # layer to train

if not isinstance(train_layers, list):
train_layers = [train_layers]

self.generator_trainable.freeze_layers()
self.generator_trainable.unfreeze_layers(train_layers) # unfreeze

具体选择带更新网络层的策略:

将 W 空间的隐向量送入目标域生成器(SG2Generator)中,并进行反向传播,此时可以通过反向传播后 W 空间隐向量不同维度的更新幅度来衡量不同网络层的影响力,因此选出更新幅度最大的维度就可以确定在 Model Adaption 中需要更新的网络层。

之所以 W 空间编码在 n_latent 维度上的序号就代表着对应的网络层数的序号,是因为 StyleGAN 生成器的结构决定了这一点:StyleGAN 生成器中,W 空间编码的不同维度会被送入生成器网络的不同层,控制这些层的特征映射 (feature mapping)。具体来说,W 空间编码的每个维度会被重复 n_latent 次,作为该层的风格向量 (style vector),通过 AdaIN (Adaptive Instance Normalization) 层控制该层的特征映射。因此,W 空间编码的第 i 个维度会影响生成器网络中第 i 层的特征映射。当某个维度的 W 值被更新的程度较大时,就意味着该维度对应的层在生成目标图像时起到了重要作用,需要被优化。

损失函数

stage 2 的损失函数是 CLIP Loss 类中的 clip_directional_loss,该损失函数由两部分组成:

  1. edit_direciton:源域生成器与目标域生成器生成的图片在经过 image encdoer 后做 element-wise 的相减,最后除以自身的 L2 Norm 方便后续与 target_direction 计算余弦相似度。
  2. target_direction:Mapper 产生的源域和目标域 prompts 的 text_features 做element-wise相减后,最后初一自身的 L2 Norm 以便后续与 edit_direction 计算余弦相似度。

定量分析指标

参考文献:GAN 的几种评价指标

  1. Inception Score(IS)

    评估图像的质量和多样性

    质量:把生成的图片 xx 输入 Inception V3 中,得到输出 1000 维的向量 yy,向量的每个维度的值对应图片属于某类的概率。对于一个清晰的图片,它属于某一类的概率应该非常大,而属于其它类的概率应该很小。用专业术语说, p(yx)p(y|x) 的熵应该很小(熵代表混乱度,均匀分布的混乱度最大,熵最大)。

    多样性: 如果一个模型能生成足够多样的图片,那么它生成的图片在各个类别中的分布应该是平均的,假设生成了 10000 张图片,那么最理想的情况是,1000 类中每类生成了 10 张。转换成术语,就是生成图片在所有类别概率的边缘分布 p(y)p(y) 熵很大(均匀分布)。

    因此,对于 IS 我们需要求的两个量就是 p(yx)p(y|x)p(y)p(y)。实际中,选取大量生成样本,用经验分布模拟 p(y)p(y)

    p^(y)=1Ni=1Np(yx(i))\hat{p}(y)=\frac{1}{N}\sum_{i=1}^{N}p(y|\mathbf{x}^{(i)})

    Inception Score 的完整公式如下:

    IS(G)=exp(ExpgDKL(p(yx)p(y)))\mathbf{IS}(G)=\exp\left(\mathbb{E}_{\mathbf{x}\sim p_g}D_{KL}\left(p(y|\mathbf{x})||p(y)\right)\right)

    通常计算 Inception Score 时,会生成 50000 个图片,然后把它分成 10 份,每份 5000 个,分别代入公式计算 10 次 Inception Score,再计算均值和方差,作为最终的衡量指标(均值±方差)。但是 5000 个样本往往不足以得到准确的边缘分布 p(y)p(y),尤其是像 ImageNet 这种包含 1000 个类的数据集。

    StyleGAN-nada 以及 IPL 在经过 batch_size 为 2,iteration 为 300 的训练后(其中 IPL 的 Mapper 是以 batch_size 为 32,iteration 为 300 进行训练的),二者的 IS 分别为 (2.2960, 0.2042) 以及 (2.6420, 0.1959)

  2. Fréchet Inception Distance(FID)

    评估目标域的风格

    计算 IS 时只考虑了生成样本,没有考虑真实数据,即 IS 无法反映真实数据和样本之间的距离,IS 判断数据真实性的依据,源于 Inception V3 的训练集 ImageNet,在 Inception V3 的“世界观”下,凡是不像 ImageNet 的数据,都是不真实的,都不能保证输出一个 sharp 的 predition distribution。因此,要想更好地评价生成网络,就要使用更加有效的方法计算真实分布与生成样本之间的距离。

    FID 距离计算真实样本,生成样本在特征空间之间的距离。首先利用 Inception 网络来提取特征,然后使用高斯模型对特征空间进行建模,再去求解两个特征之间的距离,较低的 FID 意味着较高图片的质量和多样性。

    StyleGAN-nada 以及 IPL 在经过 batch_size 为 2,iteration 为 300 的训练后(其中 IPL 的 Mapper 是以 batch_size 为 32,iteration 为 300 进行训练的),二者的 FID 分别为 84 以及 58

  3. Single Image Fréchet Inception Score(SIFID)

    FID 测量生成的图像的深层特征分布与真实图像的分布之间的偏差。在 ICCV 2019 Best Paper 中提出了 SIFID,只使用一张真实目标域的图像。与 FID 不同,SFID 不使用 Inception Network 中最后一个池化层之后的激活矢量(每个图像一个向量),而是在第二个池层之前的卷积层输出处使用深层特征的内部分布(feature map 中每个位置一个向量)。最终 SIFID 是真实图像和生成的样本中这些特征的统计数据之间的 FID。

  4. Structural Consistency Score(SCS)

    评估图像的结构保存能力

  5. Identity Similarity(ID)

    评估图像的特征保存能力

新增功能

自定义图像风格迁移

新增了自定义图像风格迁移功能。

HyperStyle 中的 e4e encoder 将自定义的真实图像编码至 StyleGAN2 中的 W 空间生成 latent codes,再将其分别输入至源域生成器以及目标域生成器以代替原始的从正态分布中 sample 出的随机向量生成的 w_codes,从而得到相应的图片。其中 e4e encoder 来源于 HyperStyle 提供的预训练 checkpoint。

使用方法:运行 inference.py,设置对应的参数,如生成器以及 e4e encoder 的路径、图像路径等,最后运行即可。

修改日志

  1. 第一次尝试只加载了 w_encoder 类及其对应 checkpoint 参数,导致并未将真实图片编码到 StyleGAN 的 W 空间中,没有 inversion 出合理的结果
  2. 第二次尝试使用了 restyle_e4e_encoder,但是没有使用 dlib 进行 alignment,也没有使用 restyle 模型在反演时使用的多次进行前向传播来修正 latent code 的策略。此次尝试虽然反演出了合理的人像,但是人像的特征保存能力非常弱
  3. 第三次尝试解决了上一次发现的问题,加入 dlib 提供的 landmark 检测以实现 alignment,并且使用 run_loop 函数在 restyle_e4e_encoder 中进行多次前向传播以修正得到的 W 空间的 latent code,效果较好
  4. 对比 pSp 和 e4e encoder,pSp 对人脸图像的还原能力较强,但是会导致目标域图像具有随机的彩色光晕

问题提出与改进

改进:Mapper 结构的设计

Mapper 的作用是从 W 空间的隐式代码中学习出符合源域图片特征以及符合目标域文字特征的 prompts。

问题:训练阶段人工 prompts 的作用是什么?

在 IPL 的官方代码实现中,人工设计的 prompts 有两处,一是 ctx_init,由命令行参数赋值,即 "a photo of a",另一处是 utils/text_templates.py 中的 templates,

ctx_init 的作用(与域标签拼接后的 ctx_init)

  1. ctx_initcompute_text_features 函数中用于定位 eot 层符号所表示的维度来进行投影,使得文字特征与图像特征维度相同,并不参与 text_features 的实际计算。但是在该函数中,Mapper 输出的 image-specific prompts 已经与域标签的嵌入表示进行了 concat。

  2. 在 stage 1 训练 Mapper 损失函数中,Mapper 学习到的 image-specfic prompts 在与源域标签进行 concat 并得到文字编码后,会与 ctx_init 的文字编码进行 element-wise 的相加,最后再与源域生成器输出的图片的图像编码进行对比损失计算;

    同理,在 stage 2 训练目标域生成器时,Mapper 输出的 image-specific prompts 在分别与源域、目标域标签 concat 后送入文字编码器得到文字特征,再与 ctx_init 的文字特征进行 element-wise 相加,最后二者相减得到 text_direction。

templates 的作用

注意,这里的 compute_text_features 函数中向其参数 templates 传入的值是 ctx_init,所以才能使用 ctx_init 来定位 eot 符号所对应的层进行维度投影。参数 templates 缺省的值是在 utils/text_templates.py 中写好的模板。

思考

IPL 方法对 Mapper 学习到的 prompts 除了(1)使用对比学习使 prompts 学习到源域图片的特征以及(2)使用域正则化使得 prompts 向目标域标签对齐之外,并没有使用其他与人工设计的 prompts 有关的正则化方式来约束 prompts 的学习,因此人工设计的 prompts 可能并没有起到太大的约束作用。

如果对比学习损失是为了让 Mapper 自监督学习到图片的特征外,那么是否可以对域正则化损失进行改进,约束学习到的 prompts 向人工设计的初始化 prompts 对齐,以实现类似于 Stable Diffusion 类似的 prompts 控制图像生成的效果。

改进:使学习到的 prompts 向用户自主设计的 prompts 模板对齐

对第一阶段的损失函数做出修改,更新domain loss,使目标域的image-specific prompts与自定义模板对齐。

对 global_clip_loss 的改进

IPL 训练第一阶段的损失函数除了源域 prompts 与源域图像之间的对比学习损失函数外,还有将目标域 prompts 与目标域标签计算余弦相似度的 domain regularization。

对 domain regularization 进行改进,引入开发者自定义的 prompts,约束 Mapper 学习到的目标域 prompts 向开发者自定义的 prompts 对齐,以此来进行 prompt tuning,发挥 prompt learning 的更大优势,并增强自定义性。

对 clip_directional_loss 的改进

IPL 训练第二阶段的损失函数

+ + + + \ No newline at end of file diff --git "a/en/docs/Deep-Learning/\345\256\236\346\210\230\347\273\203\344\271\240/Visdom Visualization/index.html" "b/en/docs/Deep-Learning/\345\256\236\346\210\230\347\273\203\344\271\240/Visdom Visualization/index.html" new file mode 100644 index 000000000..bf941d137 --- /dev/null +++ "b/en/docs/Deep-Learning/\345\256\236\346\210\230\347\273\203\344\271\240/Visdom Visualization/index.html" @@ -0,0 +1,18 @@ + + + + + +Visdom可视化 | 培洋的笔记本📒 + + + + +
+

Visdom可视化

tip

对于TensorFlow框架,可以使用TensorBoard实现可视化。

对于PyTorch框架,可以使用Visdom或TensorBoardX实现可视化,本篇主要讲述Visdom。

安装Visdom

pip install visdom

Visdom的使用

Visdom的启动

首先要通过终端启动Visdom,使用本机端口运行服务器。

以下二者均可。

visdom
python -m visdom.server

单窗口单曲线的可视化

from visdom import Visdom

vis = Visdom() # 实例化
# 创建一条曲线,前两个参数分别为y轴数据、x轴数据,win参数是窗口的唯一标识,opt可选字典中可以给出窗口的title和legend
vis.line([0.], [0.], win='win_id', opts=dict(title="win_title"))

# 在训练过程中的合适位置向初始化的曲线中喂数据
# viz.line([real_y_data], [global_step], win='win_id', update='append')
# 查看训练loss
vis.line([loss.item()], [epoch], win='win_id', update='append')
# 对于非image数据,在传入visdom时仍需要先转化为numpy类型

单窗口多曲线的可视化

from visdom import Visdom

vis = Visdom()
vis.line([[0., 0.]], [0.], win='win_id', opts=dic(title="win_title", legend=["curve_name_1", "curve_name_2"]))

# 在训练过程中的合适位置向初始化的曲线中喂数据
viz.line([[y1, y2]], [global_step], win='win_id', update='append')
+ + + + \ No newline at end of file diff --git "a/en/docs/Deep-Learning/\350\256\272\346\226\207\347\254\224\350\256\260/Attention Is All You Need/index.html" "b/en/docs/Deep-Learning/\350\256\272\346\226\207\347\254\224\350\256\260/Attention Is All You Need/index.html" new file mode 100644 index 000000000..8ccb4c4fd --- /dev/null +++ "b/en/docs/Deep-Learning/\350\256\272\346\226\207\347\254\224\350\256\260/Attention Is All You Need/index.html" @@ -0,0 +1,18 @@ + + + + + +NeurIPS 2017: Attention Is All You Need | 培洋的笔记本📒 + + + + +
+

NeurIPS 2017: Attention Is All You Need

Transformer是Sequence-to-Sequence (Seq2Seq) 模型,模型的输入是向量序列,输出同样是向量序列,且输出的长度由模型经过学习决定。

整体结构

Transformer由Encoder和Decoder组成,编码器和解码器都包含6个Block,整体结构如下图所示。

image-20231119110150110

Encoder

整体结构

Transformer Encoder结构如下图所示。其中,Add指的是残差连接Residual Connection,Norm指的是Layer Normalization。

image-20231115164324713

位置编码(Positional Encoding)

对于输入的句子,对一个词汇的嵌入向量的奇数维度使用sine函数进行编码,对偶数维度使用cosine函数计算编码。

公式如下所示,其中pospos指的是该词汇在整个输入句子中的位置,2i2i以及2i+12i+1指的是该词汇的嵌入向量中的维度,dmodeld_{model}指的是在嵌入层之后嵌入向量的总维度。即对于每个输入词汇,都要计算dmodeld_{model}次位置编码。

PE(pos,2i)=sin(pos100002i/dmodel)(1)PE_{(pos,2i)}=sin(\frac{pos}{10000^{2i/d_{\mathrm{model}}}}) \tag{1}
PE(pos,2i+1)=cos(pos100002i/dmodel)(2)PE_{(pos,2i+1)}=cos(\frac{pos}{10000^{2i/d_{\mathrm{model}}}}) \tag{2}

根据三角函数的性质,对于pos+kpos+k位置的嵌入向量的某一维度(2i2i2i+12i+1)而言,可以表示为pospos位置与kk位置的嵌入向量的2i2i2i+12i+1维度的线性组合,使得位置向量中蕴含了相对位置的信息。

PE(pos+k,2i)=PE(pos,2i)×PE(k,2i+1)+PE(pos,2i+1)×PE(k,2i)PE(pos+k,2i+1)=PE(pos,2i+1)×PE(k,2i+1)PE(pos,2i)×PE(k,2i)(3)\begin{array}{l}PE(pos+k,2i)=PE(pos,2i)\times PE(k,2i+1)+PE(pos,2i+1)\times PE(k,2i)\\PE(pos+k,2i+1)=PE(pos,2i+1)\times PE(k,2i+1)-PE(pos,2i)\times PE(k,2i)\end{array} \tag{3}

最终,位置编码向量的维度与词汇的嵌入维度相同,进行element-wise的相加操作。

InputEmbedding(pos,i)=WordEmbedding(pos,i)+PositionEncoding(pos,i)(4)InputEmbedding(pos,i)=WordEmbedding(pos,i)+PositionEncoding(pos,i) \tag{4}

具体结构

image-20231115164324713

输入向量由Word Embedding和Positional Embedding相加得到。输入序列经过Mutil-Head Self-Attention之后,通过Residual Connection加上自身的输入向量,再经过Layer Normalization,之后送入FCN并进行Residual Connection加上送入FCN的输入自身,最终再进行Layer Normalization,以上构成了一个Encoder Block。每一个Block输出的向量序列长度等于输入的向量序列长度。

Decoder

Decoder的任务是生成输出,可以根据是否一次性生成输出分为Autoregressive(自回归,abbr. AT)以及Non-Autoregressive(非自回归,abbr. NAT)两种模式。

自回归类型的Decoder需要逐步生成输出,并将之前自身输出的所有词汇经过嵌入层后生成token作为下一次的输入,通常每次生成一个词或一个符号。这种方式的缺点是需要保存和更新词表中的所有可能选项,因此在大词汇表上可能会变得非常慢。然而,它的优点是能够利用上下文信息来生成输出,这有助于提高翻译的质量。

非自回归类型的Decoder试图在一次操作中生成整个输出序列。这通常通过使用诸如注意力机制等策略来实现,这些策略允许解码器关注输入序列的不同部分,同时生成输出序列的不同部分。NAT的优点在于其高效性,因为它不需要保存和更新大量的可能选项。然而,由于它不能利用上下文信息来生成输出,因此其生成的输出质量普遍会低于AT。

Autoregressive Decoder(AT)

整体结构

image-20231119102540689

词汇表(Vocabulary)

词汇表(Vocabulary)是一个包含了在特定语言或任务中所有可能出现所有单词或标记的集合。在自然语言处理(NLP)中,词汇表是训练模型时所使用的唯一单词的集合,由具体的生成任务而确定。

Decoder每一步的输出是一个经过Softmax的Probability Distribution(概率分布),代表着词汇表中每一个词汇当前生成的概率,取最大概率值的词汇便是模型当前时间步输出的词汇。

image-20231119094748152

Begin符号

解码器(Decoder)在每个时间步(或每个解码步骤)的输入都来自于前一个时间步自身的输出以及编码器(Encoder)的输出。特别地,首个时间步的输入是Begin符号以及编码器(Encoder)的输出,在每个后续的时间步,解码器的输入会是前一个时间步自身的输出以及编码器(Encoder)的输出,直到生成序列的结束。

特殊符号

Begin符号是在Lexicon中添加的特殊符号,用来表示Decoder生成的开始。Begin符号通常被嵌入到一个低维的连续向量空间中,这个向量空间是通过嵌入层(Embedding Layer)学习得到的,在嵌入层中,离散的符号被映射到一个实数向量。

Begin符号又叫Start符号或SOS符号(Start Of Sentence),都是表示生成的开始。End符号又叫EOS符号(End Of Sentence)。

End符号

在Decoder的生成中,每一个时间步的输出是词汇表中每一个单词经过Softmax之后的概率分布。为了保证生成任务可以通过模型自己停止而不是一直重复,我们向Decoder的输出中加入End符号的生成,即每一次输出除了词汇表的所有词汇外还有End符号的概率,当End符号是在所有词汇中概率最大的词汇时,生成停止。

image-20231119102220262

image-20231119102159884

掩码多头自注意力机制(Masked Multi-Head Self-Attention)

为什么使用掩码多头自注意力

掩码多头自注意力与Transformer训练时采取的Teacher Forcing策略有很大的关系,具体分析见下文《Teacher Forcing与Masked Multi-Head Self-Attention》的讨论环节:Teacher Forcing与Masked Multi-Head Self-Attention

观察Decoder的整体结构,掩码多头自注意力的输入是添加位置编码之后的Decoder当前时间步之前的所有输出单词经过嵌入后的向量表示

掩码多头自注意力机制用于确保在生成序列的过程中,每个位置只能关注到该位置及其之前的位置。这是通过在Self-Attention的计算中应用一个掩码(mask)来实现的。这确保了在生成序列时,每个位置只能查看到它之前的信息,而不能查看到未来的信息,从而实现了自回归性质。

具体来说,添加掩码后的自注意力机制在生成注意力分数时不再考虑输入序列的所有向量。如在输入向量aia^i在计算注意力分数时,只将aia^i的query向量与a1a^1aia^{i}ii个key向量做dot product,而不考虑aia^i之后的输入的key。

tip

对于第ss个时间步,Masked Mutil-Head Self-Attention的输入是时间步ss之前Decoder生成的所有输出单词的嵌入表示。

image-20231119095632569

交叉注意力(Cross-Attention)

交叉注意力是连接Encoder和Decoder的桥梁,也是Decoder输入的重要组成部分。

image-20231119103201335

交叉注意力接收两个输入序列,一个来自编码器(Encoder)的输出序列(通常是输入序列的表示),另一个来自解码器(Decoder),是经过掩码多头自注意力机制的输出序列(通常是正在生成的序列的中间表示)。

在交叉注意力中,每次计算注意力得分的query来自解码器key和value来自编码器。解码器每个向量的查询(Query)与编码器位置的键(Key)进行点积得到了注意力分数,通过Softmax操作后转换为注意力权重,再与编码器位置的值(Value)weighted sum得到加权注意力分数,最终将加权注意力分数求和得到每个输入向量的输出。

image-20231119142212757

Non-Autoregressive Decoder(NAT)

image-20231119103112168

训练(Training)

损失函数

在 Transformer 中,Encoder 不像 Decoder 需要生成序列,因此它通常不涉及标签的预测。Encoder 的训练通常是在整个模型中的联合训练中进行的,通过优化整个模型的损失函数来进行。

Transformer 的整体训练过程一般分为以下几个步骤:

  1. 编码器(Encoder)的正向传播: 输入序列经过编码器的正向传播,产生一组上下文表示。
  2. 解码器(Decoder)的正向传播: 解码器接收上下文表示,并生成目标序列。
  3. 计算损失: 通过比较生成的目标序列与实际目标序列,计算损失。在 Decoder 中,通常使用交叉熵损失函数。
  4. 反向传播: 根据损失,进行反向传播,更新模型参数。这个过程中,梯度通过整个模型传播,包括 Encoder 和 Decoder。

整个模型的参数(包括 Encoder 和 Decoder)都是通过最小化整体损失来进行联合训练的。这是因为整体模型需要协同工作,Encoder 的表示对于 Decoder 的性能至关重要。在训练过程中,梯度从损失函数传播回整个模型,包括 Encoder 和 Decoder,从而更新它们的参数。

需要注意的是,Transformer 模型通常使用的是端到端的训练方式,整个模型的参数是一次性更新的。在某些场景下,你可能会看到对 Encoder 或 Decoder 进行微调(fine-tuning)的情况,但这是在特定应用场景下的调整,不是 Transformer 模型的标准训练方式。

Teacher Forcing

在Transformer的推理阶段,自回归类型的Decoder根据分词方式的不同,一个词汇一个词汇的输出,将当前时间步之前生成的所有词汇作为输入load进入Decoder中。但在训练时如果遵从同样的生成范式会大大降低效率,并且面临则一步错步步错的风险(Error Propagation)。

因此使用Teacher Forcing策略,将Ground Truth一次性喂到Decoder中,使模型更快收敛并且避免误差积累的问题。

image-20231119155803489

但是,自回归Decoder在推理时是一个一个词汇产生的,在产生第ii个词汇时其后续的词汇是未知的,更不用说进行注意力分数的就算了,而在训练过程中使用Teacher Forcing时却可以得到第i+1i+1个及其之后词汇的注意力信息,如果不添加其他策略显然会对模型的泛化能力造成很大的影响,而且这并不符合自回归(Autoregression)的特性。为了解决这个问题,掩码多头注意力机制应运而生,在训练阶段将模型在时间发展顺序的右侧的输入masked掉,防止模型学习到不该学习的注意力。

Teacher Forcing与Masked Multi-Head Self-Attention

参考文献:MultiHead-Attention和Masked-Attention的机制和原理

与Encoder的多头自注意力不同,在Decoder中,为注意力机制应用了掩码,使模型只能关注到当前位置及其之前的位置,而不能访问未来的信息。这解决了引入Teacher Forcing出现的问题,避免了训练与推理阶段的Mismatch,维护了自回归的特性。

具体来说,模拟推理过程中第一个词汇时的场景。当模型只有voc1voc_1词汇向量输入时,在Decoder中,voc1voc_1与自身计算注意力分数,于是有

[o1]=[α1,1][v1](5)\begin{bmatrix}o_1\end{bmatrix}=\begin{bmatrix}\alpha_{1,1}^{\prime}\end{bmatrix}\begin{bmatrix}v_1\end{bmatrix}\tag{5}

我们再模拟训练过程中使用Teacher Forcing,一次性输入为两个词汇voc1voc_1voc2voc_2的情况,于是有

[o1o2]=[α1,1α2,1α1,2α2,2][v1v2](6)\begin{bmatrix}o_1\\o_2\end{bmatrix}=\begin{bmatrix}\alpha_{1,1}^{\prime}&\alpha_{2,1}^{\prime}\\\alpha_{1,2}^{\prime}&\alpha_{2,2}^{\prime}\end{bmatrix}\begin{bmatrix}v_1\\v_2\end{bmatrix} \tag{6}

然而,为了使训练过程中符合推理时自回归的特性,理想的输出应该是

[o1o2]=[α1,10α1,2α2,2][v1v2](7)\begin{bmatrix}o_1\\o_2\end{bmatrix}=\begin{bmatrix}\alpha_{1,1}^{\prime}&0\\\alpha_{1,2}^{\prime}&\alpha_{2,2}^{\prime}\end{bmatrix}\begin{bmatrix}v_1\\v_2\end{bmatrix} \tag{7}

继续扩展,当有nn个输入词汇时,应该有

[o1o2on]=[α1,100α1,2α20α1,nα2,nαn,n][v1v2vn](8)\begin{bmatrix}o_1\\o_2\\\vdots\\o_n\end{bmatrix}=\begin{bmatrix}\alpha'_{1,1}&0&\cdots&0\\\alpha'_{1,2}&\alpha'_2&\cdots&0\\\vdots&\vdots&&\vdots\\\alpha'_{1,n}&\alpha'_{2,n}&\cdots&\alpha'_{n,n}\end{bmatrix}\begin{bmatrix}v_1\\v_2\\\vdots\\v_n\end{bmatrix}\tag{8}

因此,我们需要将当前时间步计算的词汇的时间顺序右侧的输入词汇全部掩码,置为0。

在源码中,有如下片段实现掩码:

if mask is not None:
scores = scores.masked_fill(mask == 0, -1e9)

p_attn = scores.softmax(dim=-1)

在源码中,将mask置为负无穷是因为这是在经过Softmax之前进行的掩码,在经过Softmax之后负无穷小就变成了0。

+ + + + \ No newline at end of file diff --git "a/en/docs/Deep-Learning/\350\256\272\346\226\207\347\254\224\350\256\260/Denoising Diffusion Probabilistic Models/index.html" "b/en/docs/Deep-Learning/\350\256\272\346\226\207\347\254\224\350\256\260/Denoising Diffusion Probabilistic Models/index.html" new file mode 100644 index 000000000..ba15051ec --- /dev/null +++ "b/en/docs/Deep-Learning/\350\256\272\346\226\207\347\254\224\350\256\260/Denoising Diffusion Probabilistic Models/index.html" @@ -0,0 +1,18 @@ + + + + + +NeurIPS 2020: Denoising Diffusion Probabilistic Models | 培洋的笔记本📒 + + + + +
+

NeurIPS 2020: Denoising Diffusion Probabilistic Models

数学原理(Mathematical Preliminary)

先验概率与后验概率

条件概率的定义

条件概率是指在给定另一个事件发生的条件下,某一事件发生的概率。条件概率通常用符号P(AB)P(A\mid B)表示,读作“在 B 发生的条件下 A 发生的概率”。

条件概率的计算公式为:

P(AB)=P(A,B)P(B)P(A\mid B)=\frac{P(A,B)}{P(B)}

其中:

  • P(A,B)P(A,B)是事件AABB同时发生的概率,也叫联合概率
  • P(B)P(B)是事件BB独立发生的概率

全概率公式

对于事件AA而言,假设有一组互斥且穷尽的条件事件B1,B2,BnB_{1},B_{2},\ldots B_{n}构成一个完备事件组,则事件AA的概率等于事件AA在每个条件事件BiB_i下发生的概率与该条件事件发生概率的乘积和。

P(A)=i=1nP(ABi)P(Bi)P(A)=\sum_{i=1}^nP(A\mid B_i)\cdot P(B_i)

可以看出,全概率公式是由“因”(条件事件BiB_i)推“果”(结果事件AA)的过程,即当知道某结果事件的原因后,推断由该原因导致这件事发生的概率是多少。

贝叶斯公式

贝叶斯公式在观测到结果事件AA发生后,计算其条件事件BiB_i在事件AA已经发生的条件下而发生的后验概率。

继续沿用上述全概率公式的符号定义,则有:

P(BiA)=P(ABi)P(Bi)P(A)P(B_i\mid A)=\frac{P(A\mid B_i)\cdot P(B_i)}{P(A)}

其中:

  • P(Bi)P(B_i)以及P(A)P(A)称为先验概率
  • P(BiA)P(B_i\mid A)称为后验概率
  • P(ABi)P(A\mid B_i)称为似然

条件概率与高斯分布的KL散度

条件概率的一般形式

P(A,B,C)=P(CA,B)P(A,B)=P(CA,B)P(BA)P(A)P(A,B,C)=P(C\mid A,B)\cdot P(A,B)=P(C\mid A,B)\cdot P(B\mid A)\cdot P(A)
P(B,CA)=P(BA)P(CA,B)P(B,C\mid A)=P(B\mid A)\cdot P(C\mid A,B)

其中,第二行公式的推导如下:

P(B,CA)=P(A,B,C)P(A)=P(A,B,C)P(A,B,C)P(CA,B)P(BA)=P(BA)P(CA,B)\begin{align*} P(B,C \mid A) &= \frac{P(A,B,C)}{P(A)} \\ &= \frac{P(A,B,C)}{\frac{P(A,B,C)}{P(C \mid A,B) \cdot P(B \mid A)}} \\ &= P(B \mid A) \cdot P(C \mid A,B) \end{align*}

高斯分布的KL散度

对于两个单一变量的高斯分布pN(μ1,σ12)p\sim \mathcal{N}(\mu_1,\sigma_1^2)qN(μ2,σ22)q\sim \mathcal{N}(\mu_2,\sigma_2^2)而言,它们的KL散度定义为:

DKL(p,q)=logσ2σ1+σ12+(μ1μ2)22σ2212D_{KL}(p,q)=\log\frac{\sigma_2}{\sigma_1}+\frac{\sigma_1^2+(\mu_1-\mu_2)^2}{2\sigma_2^2}-\frac12

马尔科夫链条件概率形式

马尔科夫链指当前状态的概率只与上一时刻有关,例如若满足马尔科夫关系ABCA\to B\to C,则有:

P(A,B,C)=P(CA,B)P(A,B)=P(CB)P(BA)P(A)P(A,B,C) =P(C\mid A,B)\cdot P(A,B)=P(C\mid B)\cdot P(B\mid A)\cdot P(A)
P(B,CA)=P(BA)P(CB)P(B,C\mid A)=P(B\mid A)\cdot P(C\mid B)

参数重整化技巧

从任意高斯分布N(μ,σ2)\mathcal{N}(\mu,\sigma^2)采样xx时,可以先从标准高斯分布N(0,1)\mathcal{N}(0,1)中sample出zz,再令

x=σz+μx=\sigma * z + \mu

优势:

  1. 由于线性变化,采样过程中对其他参数都有明确的导数,可以进行反向传播
  2. 可以通过线性变换控制参数化的采样
  3. 标准正态分布具有易采样的性质
+ + + + \ No newline at end of file diff --git "a/en/docs/Deep-Learning/\350\256\272\346\226\207\347\254\224\350\256\260/High-Resolution Image Synthesis with Latent Diffusion Models/index.html" "b/en/docs/Deep-Learning/\350\256\272\346\226\207\347\254\224\350\256\260/High-Resolution Image Synthesis with Latent Diffusion Models/index.html" new file mode 100644 index 000000000..b7cd49533 --- /dev/null +++ "b/en/docs/Deep-Learning/\350\256\272\346\226\207\347\254\224\350\256\260/High-Resolution Image Synthesis with Latent Diffusion Models/index.html" @@ -0,0 +1,18 @@ + + + + + +CVPR 2022: High-Resolution Image Synthesis with Latent Diffusion Models | 培洋的笔记本📒 + + + + +
+
+ + + + \ No newline at end of file diff --git "a/en/docs/Deep-Learning/\350\256\272\346\226\207\347\254\224\350\256\260/Zero-shot Generative Model Adaptation via Image-specific Prompt Learning/index.html" "b/en/docs/Deep-Learning/\350\256\272\346\226\207\347\254\224\350\256\260/Zero-shot Generative Model Adaptation via Image-specific Prompt Learning/index.html" new file mode 100644 index 000000000..e8403a7e6 --- /dev/null +++ "b/en/docs/Deep-Learning/\350\256\272\346\226\207\347\254\224\350\256\260/Zero-shot Generative Model Adaptation via Image-specific Prompt Learning/index.html" @@ -0,0 +1,18 @@ + + + + + +CVPR 2023: Zero-shot Generative Model Adaptation via Image-specific Prompt Learning | 培洋的笔记本📒 + + + + +
+

CVPR 2023: Zero-shot Generative Model Adaptation via Image-specific Prompt Learning

相关链接

摘要

本文提出了Image-specific Prompt Learning(IPL)方法来解决风格迁移任务中生成模型从源域到目标域的适应问题。一个Latent Mapper来从源域图像中学习出包含图像特征适应目标域的prompt,从而指导目标域生成器的训练。

This produces a more precise adaptation direction for every cross-domain image pair, endowing the target-domain generator with greatly enhanced flexibility.

训练资料是源域和目标域的文字标签以及源域的图像,并不需要目标域的图像。此外,IPL独立于生成模型,可以自由选择Diffusion Model或GAN等。

相关工作

Generative Model Adaption

Generative Model Adaption的任务是使在大规模源域图片上训练的生成模型适应到数据有限的目标域中,根据目标域训练资料的大小可以分为few-shot和zero-shot。

few-shot

对于few-shot任务,一般是通过有限的目标域训练集资料fine-tune预训练模型。

然而,fine-tune通常会导致过拟合。为了解决过拟合问题,通常使用的方法是施加强正则化、使用扰动法、跨域对齐或数据增强。

相关文献方法
  • 强正则化:Han Zhang, Zizhao Zhang, Augustus Odena, and Honglak Lee. Consistency regularization for generative adversarial networks. In ICLR, 2019.
  • 扰动法:Sangwoo Mo, Minsu Cho, and Jinwoo Shin. Freeze the discriminator: a simple baseline for fine-tuning GANs. In CVPR Workshops, 2020.
  • 跨域对齐:Utkarsh Ojha, Yijun Li, Jingwan Lu, Alexei A Efros, Yong Jae Lee, Eli Shechtman, and Richard Zhang. Fewshot image generation via cross-domain correspondence. In CVPR, 2021.
  • 数据增强:Ngoc-Trung Tran, Viet-Hung Tran, Ngoc-Bao Nguyen, Trung-Kien Nguyen, and Ngai-Man Cheung. On data augmentation for GAN training. TIP, 2021.

zero-shot

对于零样本的图像生成模型的适应任务,NADA率先引入了CLIP模型来获取必须的先验知识,通过预训练大模型的语言理解能力实现在目标域只需要文字标签而不需要图片,将源域和目标域之间的差距编码为在CLIP空间上文字引导的适应方向。

此后,CVPR 2022发表的DiffusionCLIP使用了Diffusion模型代替NADA中的StyleGANs,获得了更好的特征保存能力。

然而这些方法都是采用了固定的适应方向,只包含基础的域知识,而不是图片特定的特征。在本文中,作者发现这种共享的、固定的适应方向会导致Mode Collapse(模式坍塌),因此提出了从每个源域图像中学习出多样且准确的prompt,为生成模型向目标域的适应提供更精确的方向。

image-20231221214755712

Prompt Learning

Prompt工程最初是一种Knowledge Probing(知识探测)方法,给定完形填空(cloze-style)类的prompt,引导模型产生相对应的答案。

然而人工设计的prompt通常不是最优的,可能提供不准确的适应方向。为了解决这个问题,在NLP领域的Prompt Learning发展迅速,并随着视觉-语言大模型的发展,应用在了视觉任务中。

Kaiyang Zhou等人首先在图像分类任务中采用上下文优化,在词嵌入空间中对具有连续向量的上下文词进行建模。随后Prompt Learning在计算机视觉中的许多下游任务都得到了探索,例如目标检测、视频理解和迁移学习等。

主要方法

概述

IPL方法分两个阶段。

第一阶段:训练Latent Mapper

第一阶段的主要任务是训练Lantent Mapper来为每一个训练集的源域图片生成一组prompt。Latent Mapper接收源域图像的latent representation,生成一组prompt向量。第一阶段需要解决两个问题,即在zero-shot的背景下,如何实现prompt与源域图像特征的对齐以及prompt与目标域空间的对齐,因此第一阶段的训练分两部分进行。

第一部分是Latent Mapper输出的prompt与目标域标签concat后送入来自CLIP的Text Encoder得到目标域图片prompt在CLIP空间的编码表示,并与目标域标签经过Text Encoder后的编码共同作为Domain Loss的输入来约束从源域中学习到的prompt与目标域空间对齐。

第二部分是Latent Mapper输出的prompt与源域标签concat后送入来自CLIP的Text Encoder得到源域图片prompt描述在CLIP空间的编码表示,同时源域图像再经过来自CLIP的Image Encoder后得到其在CLIP空间的编码表示。将源域的prompt文字和图像编码表示作为contrastive learning loss的输入,约束学习到的prompt与源域图像的特征对齐。

prompt产生策略

第二阶段:将Latent Mapper插入目标域生成器的训练过程

第二阶段利用Directional CLIP Loss来训练目标域生成器,使源于生成器向目标域迁移学习。需要输入源域以及目标域图像、源域以及目标域的prompt描述。源域图像的latent representation分别输入至源域生成器和目标域生成器中得到对应的图像,同时指导风格迁移方向的源域以及目标域的prompt描述由Latent Mapper接收源域图像的隐式表示后输出再分别与源域和目标域标签concat而得到。分别将源域图像、生成的目标域图像以及源域、目标域的图片prompt描述一起输入至Directional CLIP Loss,从而约束由源域图像生成器初始化的目标域图像生成器向目标域的迁移学习。

image-20231221231045323

Image-specific Prompt Learning

+ + + + \ No newline at end of file diff --git "a/en/docs/Others/Linux/\345\256\236\347\224\250\345\267\245\345\205\267/\347\273\210\347\253\257\344\273\243\347\220\206/index.html" "b/en/docs/Others/Linux/\345\256\236\347\224\250\345\267\245\345\205\267/\347\273\210\347\253\257\344\273\243\347\220\206/index.html" new file mode 100644 index 000000000..cf485899b --- /dev/null +++ "b/en/docs/Others/Linux/\345\256\236\347\224\250\345\267\245\345\205\267/\347\273\210\347\253\257\344\273\243\347\220\206/index.html" @@ -0,0 +1,18 @@ + + + + + +终端代理 | 培洋的笔记本📒 + + + + +
+

终端代理

通过编写脚本函数的方式,手动开启代理

一、编写脚本

新建脚本文件terminal_proxy.sh

# 开启代理
function proxy_on(){
export ALL_PROXY=socks5://127.0.0.1:7890
export http_proxy=http://127.0.0.1:7890
export https_proxy=https://127.0.0.1:7890
echo -e "已开启代理"
}

# 关闭代理
function proxy_off(){
unset ALL_PROXY
unset http_proxy
unset https_proxy
echo -e "已关闭代理"
}

二、关联终端配置文件

fish的配置文件:~/.config/fish/config.fish

zsh的配置文件:~/.zshrc

bash的配置文件:~/.bashrc

在配置文件末尾添加以下代码

source /path/terminal_proxy.sh

三、使用

在终端中输入以下命令即可开启代理

proxy_on

在终端中输入以下命令即可关闭代理

proxy_off
+ + + + \ No newline at end of file diff --git "a/en/docs/Others/Linux/\345\256\242\345\210\266\345\214\226/\345\246\202\344\275\225\350\256\251\344\275\240\347\232\204KDE\347\234\213\350\265\267\346\235\245\346\233\264\345\203\217macOS/index.html" "b/en/docs/Others/Linux/\345\256\242\345\210\266\345\214\226/\345\246\202\344\275\225\350\256\251\344\275\240\347\232\204KDE\347\234\213\350\265\267\346\235\245\346\233\264\345\203\217macOS/index.html" new file mode 100644 index 000000000..22f74e655 --- /dev/null +++ "b/en/docs/Others/Linux/\345\256\242\345\210\266\345\214\226/\345\246\202\344\275\225\350\256\251\344\275\240\347\232\204KDE\347\234\213\350\265\267\346\235\245\346\233\264\345\203\217macOS/index.html" @@ -0,0 +1,18 @@ + + + + + +如何让你的Kde Plasma看起来更像macOS | 培洋的笔记本📒 + + + + +
+

如何让你的Kde Plasma看起来更像macOS

一、latte-dock

  1. dock显示的图标是全局图标,程序启动器的desktop文件位于/usr/share/applications中,全局主题中图标主题的程序logo位于~/.local/share/icons/Mkos-Big-Sur-Night/128x128/apps(deppending on specific situation)中。在logo文件夹中挑选想要的logo,在desktop中的icon位置修改即可
  2. 应用更新的时候会同时更新.desktop文件,因此在更换图标是最好直接更换在主题文件中替换icon,而不是更改desktop的icon路径
  3. Finder小组件中application title文字不能垂直居中,可以更换为Window title插件

二、Kde Plasmoids

Finder栏中Plasmoids左半部分从左至右依次为:

  • kpple menu
  • application title/window titile(if the text of application title can't be centered vertically)
  • global menu

右半部分从左至右依次为:

  • resources monitor (fork)
  • mcOS BS Inline Battery
  • 网络
  • Control Center(replace the icon with search icon)
  • Control Center(replace the icom with menu icon)
  • Better Inline Clock

安装方法:

plasmpkg2 -u xxx.plasmoid
+ + + + \ No newline at end of file diff --git "a/en/docs/Others/Linux/\351\227\256\351\242\230\350\247\243\345\206\263/\345\217\214\347\263\273\347\273\237\346\214\202\350\275\275Windows\347\243\201\347\233\230\344\270\272\345\217\252\350\257\273\346\226\207\344\273\266/index.html" "b/en/docs/Others/Linux/\351\227\256\351\242\230\350\247\243\345\206\263/\345\217\214\347\263\273\347\273\237\346\214\202\350\275\275Windows\347\243\201\347\233\230\344\270\272\345\217\252\350\257\273\346\226\207\344\273\266/index.html" new file mode 100644 index 000000000..165ef3173 --- /dev/null +++ "b/en/docs/Others/Linux/\351\227\256\351\242\230\350\247\243\345\206\263/\345\217\214\347\263\273\347\273\237\346\214\202\350\275\275Windows\347\243\201\347\233\230\344\270\272\345\217\252\350\257\273\346\226\207\344\273\266/index.html" @@ -0,0 +1,18 @@ + + + + + +挂载Windows磁盘为只读文件 | 培洋的笔记本📒 + + + + +
+

挂载Windows磁盘为只读文件

一、发生原因

未知,可能是由Windows休眠模式导致

二、解决方案

使用ntfsfix修复ntfs磁盘

  1. 安装ntfsfix

    yay -S ntfsfix
  2. 查看问题分区

    df -h
  3. 修复

    sudo ntfsfix /dev/your_partition
  4. 重启

    reboot
+ + + + \ No newline at end of file diff --git a/en/docs/Others/intro/index.html b/en/docs/Others/intro/index.html new file mode 100644 index 000000000..a9fa45048 --- /dev/null +++ b/en/docs/Others/intro/index.html @@ -0,0 +1,18 @@ + + + + + +Welcome | 培洋的笔记本📒 + + + + +
+

Welcome

tip

欢迎来到笔记本的其他部分

支持我!

如果可以帮到你的话就给个免费的Star吧!

+ + + + \ No newline at end of file diff --git "a/en/docs/Others/\345\215\232\345\256\242\346\220\255\345\273\272/\345\221\212\347\244\272\346\240\217/index.html" "b/en/docs/Others/\345\215\232\345\256\242\346\220\255\345\273\272/\345\221\212\347\244\272\346\240\217/index.html" new file mode 100644 index 000000000..b56cd37aa --- /dev/null +++ "b/en/docs/Others/\345\215\232\345\256\242\346\220\255\345\273\272/\345\221\212\347\244\272\346\240\217/index.html" @@ -0,0 +1,18 @@ + + + + + +告示栏 | 培洋的笔记本📒 + + + + +
+

告示栏

  1. 告示栏的启用

    在docusaurus.config.js的themeConfig中加入以下代码

          announcementBar: {
    id: 'announcementBar-3',
    content: 'Welcome to my notebook!',
    isCloseable: false,
    },
  2. 告示栏的背景个性化

    在custom.css中加入以下代码

    div[class^='announcementBar_'] {
    background: repeating-linear-gradient(
    -35deg,
    var(--ifm-color-primary-lighter),
    var(--ifm-color-primary-lighter) 20px,
    var(--ifm-color-primary-lightest) 10px,
    var(--ifm-color-primary-lightest) 40px
    );
    font-weight: 700;
    }
+ + + + \ No newline at end of file diff --git a/en/docs/Tui-Mian/Summary/index.html b/en/docs/Tui-Mian/Summary/index.html new file mode 100644 index 000000000..cd30239ff --- /dev/null +++ b/en/docs/Tui-Mian/Summary/index.html @@ -0,0 +1,18 @@ + + + + + +经验贴:2023年双非计算机保研经历 | 培洋的笔记本📒 + + + + +
+

经验贴:2023年双非计算机保研经历

前言

自己在准备夏令营和预推免期间浏览了很多经验贴,按照科协的传统,也支持一下互联网精神,还是给师弟师妹们留下点文字资料吧。

希望可以帮到大家,也感谢那些曾经帮助过我的经验贴和师兄师姐。

文章均为个人经历与想法,不代表任何单位的官方立场,仅供参考。

扫盲

常见名词含义解释
928/929每年的公历9月28日(2023年是9月29日),是研招网全国推免系统开放的日子,也是已经拿到offer的推免生上岸的日子。
没offer的也不用着急,因为每个学生只能上一个学校,928/929当天就算手里一堆offer的学生也是只能选择最想去的学校而释放掉其他offer。稳住心态沉住气,一般10月20日推免系统才关闭,这段时间足够联系导师上岸了。
优营优营就是夏令营的优秀营员。
不同学校优营的效力不同,有些学校的优营直接等于拟录取,928/929当天填报系统即可上岸;但有些学校的优营只能保证在后期的预推免或九推的初筛中不被刷掉,仍需参加后续考核才能获得拟录取资格。
wl/waiting listwl就是递补名单,有些学校的夏令营优营评选中设置递补名单。如果后期有其他优营学生放鸽子不来的话,就会按顺序补录到递补名单中的学生。

个人情况

  • 本科学校:理工类普通一本(四非)
  • 专业:计算机科学与技术CS
  • rank:前1%(非rank 1 or 2的top选手)
  • 英语:四级594 & 六级586
  • 竞赛:非ACMer,一个CV类比赛国一,其他都是不上台面的奖项了
  • 奖学金:国家奖学金(夏令营结束之后才拿的,基本没用到)、省人民政府奖学金、CASC奖学金
  • 科研及论文:无正经科研经历,EI水会一篇

从某种程度上来说,本科出身和rank基本上决定了上限。

前期准备

夏令营

预推免

后序

+ + + + \ No newline at end of file diff --git a/en/docs/Tui-Mian/intro/index.html b/en/docs/Tui-Mian/intro/index.html new file mode 100644 index 000000000..760b1be8e --- /dev/null +++ b/en/docs/Tui-Mian/intro/index.html @@ -0,0 +1,18 @@ + + + + + +Welcome | 培洋的笔记本📒 + + + + +
+

Welcome

tip

欢迎来到笔记本的推免复习部分

支持我!

如果可以帮到你的话就给个免费的Star吧!

+ + + + \ No newline at end of file diff --git "a/en/docs/Tui-Mian/\346\225\260\345\255\246/\345\244\217\344\273\244\350\220\245\351\235\242\350\257\225\346\225\260\345\255\246\351\203\250\345\210\206\345\244\215\344\271\240/index.html" "b/en/docs/Tui-Mian/\346\225\260\345\255\246/\345\244\217\344\273\244\350\220\245\351\235\242\350\257\225\346\225\260\345\255\246\351\203\250\345\210\206\345\244\215\344\271\240/index.html" new file mode 100644 index 000000000..1c119f43f --- /dev/null +++ "b/en/docs/Tui-Mian/\346\225\260\345\255\246/\345\244\217\344\273\244\350\220\245\351\235\242\350\257\225\346\225\260\345\255\246\351\203\250\345\210\206\345\244\215\344\271\240/index.html" @@ -0,0 +1,18 @@ + + + + + +夏令营面试数学部分复习 | 培洋的笔记本📒 + + + + +
+

夏令营面试数学部分复习

一、线性代数

线性相关与线性无关:向量组中的任一向量都不能被其它向量线性表示,就说向量组线性无关;否则就是线性相关。

矩阵转置:将矩阵的行和列互相交换

矩阵求逆:对于方阵A,若存在方阵B使得AB=BA=单位方阵I,则方阵B为方阵A的逆矩阵,记为A1A^{-1}

  1. 线性代数中的初等行变换。

    1. 交换两行
    2. 用非零常数乘以某一行
    3. 用一行的倍数加到另一行上
  2. 如何理解矩阵的秩。

    矩阵的秩是指矩阵的列空间(或行空间)的维数,简而言之是矩阵中所有非零行(或列)向量构成的集合所组成的最大线性无关组的向量个数。

    tip

    宋浩八字:非零子式的最高阶数

    任意矩阵的行秩都等于列秩。

  3. 矩阵的秩与线性方程组解的关系。

    对于n元线性方程组而言:

    1. 当系数矩阵的秩等于增广矩阵的秩且秩等于n时,有唯一解

    2. 当系数矩阵的秩等于增广矩阵的秩且秩大于n时,有无穷多解

    3. 当系数矩阵的秩不等于增广矩阵的秩时,无解

      tip

      当系数矩阵的秩小于增广矩阵的秩时,说明系数矩阵中的某一列向量(或行向量)可以被其他列向量(或行向量)线性表示,此时该行不能提供额外的线性独立信息

  4. 简述向量组线性无关的含义。

    含义:若一个向量组是线性无关的,则该向量组中的每个向量都不能表示成其他向量的线性组合。

    意义:如果一个向量组线性无关,那么该向量组所张成的空间就是一个最小维度的向量空间,并且该向量空间中的任何向量都可由这些向量线性组合表示。

    判定方法:如果一个向量组中的所有向量都不可以由其他向量线性组合得到,则称该向量组为线性无关的。否则,如果存在某个向量可以表示成其他向量的线性组合,则该向量组就不是线性无关的。

  5. 解释正定矩阵以及半正定矩阵。

  6. 简述特征值的含义。

    特征值描述了矩阵在特定方向(特征向量方向)上的缩放因子,特征向量表示矩阵在这个特定方向上的不变性。

  7. 简述矩阵分解的物理意义。

    矩阵分解是将一个矩阵表示为一些特定形式的矩阵乘积的过程。

    矩阵分解的种类以及物理意义:

    • LU分解:将矩阵分解为一个下三角矩阵和一个上三角矩阵的乘积。物理意义包括解线性方程组、计算矩阵的行列式和逆矩阵等。
    • QR分解:将矩阵分解为一个正交矩阵和一个上三角矩阵的乘积。物理意义包括最小二乘问题、矩阵的特征值计算等。
    • 特征值分解:将矩阵分解为一个特征向量矩阵和一个对角矩阵的乘积。物理意义包括矩阵的幂、指数和对称矩阵的对角化等。
    • 奇异值分解(SVD):将矩阵分解为一个正交矩阵、一个对角矩阵和一个正交矩阵的乘积。物理意义包括降维、矩阵逼近和图像压缩等。

二、概率论

  1. 简述大数定理。

    大数定理描述了大样本情况下随机变量的均值与其期望值之间的关系。对于独立同分布的随机变量序列,随着样本数量的增加,样本均值会以较高的概率接近其期望值。

  2. 简述中心极限定理。

    当独立随机变量的数量足够大时,它们的和(或平均值)的分布会逐渐接近一个正态分布。即使原始随机变量不服从正态分布,但当样本容量足够大时,和(或平均值)的分布仍然呈现出正态分布的特征。

  3. 什么是全概率公式。

    对于事件A而言,假设有一组互斥且穷尽的条件事件B,则事件A的概率等于事件A在每个条件事件下发生的概率与该条件事件发生概率的乘积和。

  4. 什么是最大似然估计。

    基本思想是在已知观测数据的情况下,通过调整参数的取值,找到使得观测数据出现概率最大的参数值。

    大致过程:

    1. 构建参数化的概率模型,即构建似然函数,表示在给定参数下观测数据出现的概率
    2. 取似然函数的对数,方便计算与优化
    3. 最大化似然函数,求解参数的最优值
  5. 简述贝叶斯定理。

    贝叶斯定理描述了在给定观测数据的条件下,计算事件的后验概率的方法。

    P(AB)=P(BA)P(A)P(B)P(A|B) = \frac{P(B|A) * P(A)}{P(B)}

    其中:

    • P(AB)P(A|B)表示在观测到事件 B 发生的条件下,事件 A 发生的概率,称为后验概率
    • P(BA)P(B|A)表示在事件 A 发生的条件下,事件 B 发生的概率,称为似然;
    • P(A)P(A)P(B)P(B)分别是事件 A 和事件 B 独立发生的先验概率。

    优点:它能够将主观先验知识与观测数据相结合,通过不断更新后验概率来进行推断和决策。

  6. P问题、NP问题以及NP完全问题

    tip

    P stands for Polynomial

    意为多项式

    P问题是可以在多项式时间内解决的问题

    NP问题是可以在多项式时间内验证解的正确性的问题

    NP完全问题是一类特殊的NP问题,没有已知的高效解决算法,并且可以在多项式时间内归约到任何其他的NP问题

+ + + + \ No newline at end of file diff --git "a/en/docs/Tui-Mian/\346\225\260\345\255\246/\346\246\202\347\216\207\350\256\272/index.html" "b/en/docs/Tui-Mian/\346\225\260\345\255\246/\346\246\202\347\216\207\350\256\272/index.html" new file mode 100644 index 000000000..3372fcdc0 --- /dev/null +++ "b/en/docs/Tui-Mian/\346\225\260\345\255\246/\346\246\202\347\216\207\350\256\272/index.html" @@ -0,0 +1,18 @@ + + + + + +概率论 | 培洋的笔记本📒 + + + + +
+

概率论

面试常考问题

  1. 简述大数定理。

    大数定理描述了大样本情况下随机变量的均值与其期望值之间的关系。对于独立同分布的随机变量序列,随着样本数量的增加,样本均值会以较高的概率接近其期望值。

  2. 简述中心极限定理。

    当独立随机变量的数量足够大时,它们的和(或平均值)的分布会逐渐接近一个正态分布。即使原始随机变量不服从正态分布,但当样本容量足够大时,和(或平均值)的分布仍然呈现出正态分布的特征。

  3. 什么是全概率公式。

    对于事件A而言,假设有一组互斥且穷尽的条件事件B,则事件A的概率等于事件A在每个条件事件下发生的概率与该条件事件发生概率的乘积和。

  4. 什么是最大似然估计。

    基本思想是在已知观测数据的情况下,通过调整参数的取值,找到使得观测数据出现概率最大的参数值。

    大致过程:

    1. 构建参数化的概率模型,即构建似然函数,表示在给定参数下观测数据出现的概率
    2. 取似然函数的对数,方便计算与优化
    3. 最大化似然函数,求解参数的最优值
  5. 简述贝叶斯定理。

    贝叶斯定理描述了在给定观测数据的条件下,计算事件的后验概率的方法。

    P(AB)=P(BA)P(A)P(B)P(A|B) = \frac{P(B|A) * P(A)}{P(B)}

    其中:

    • P(AB)P(A|B)表示在观测到事件 B 发生的条件下,事件 A 发生的概率,称为后验概率
    • P(BA)P(B|A)表示在事件 A 发生的条件下,事件 B 发生的概率,称为似然;
    • P(A)P(A)P(B)P(B)分别是事件 A 和事件 B 独立发生的先验概率。

    优点:它能够将主观先验知识与观测数据相结合,通过不断更新后验概率来进行推断和决策。

  6. P问题、NP问题以及NP完全问题

    tip

    P stands for Polynomial

    意为多项式

    P问题是可以在多项式时间内解决的问题

    NP问题是可以在多项式时间内验证解的正确性的问题

    NP完全问题是一类特殊的NP问题,没有已知的高效解决算法,并且可以在多项式时间内归约到任何其他的NP问题

+ + + + \ No newline at end of file diff --git "a/en/docs/Tui-Mian/\346\225\260\345\255\246/\347\272\277\346\200\247\344\273\243\346\225\260/index.html" "b/en/docs/Tui-Mian/\346\225\260\345\255\246/\347\272\277\346\200\247\344\273\243\346\225\260/index.html" new file mode 100644 index 000000000..3b54f60ac --- /dev/null +++ "b/en/docs/Tui-Mian/\346\225\260\345\255\246/\347\272\277\346\200\247\344\273\243\346\225\260/index.html" @@ -0,0 +1,18 @@ + + + + + +线性代数 | 培洋的笔记本📒 + + + + +
+

线性代数

一、基础知识

image-20230626214118462

image-20230626214142283

线性相关与线性无关:向量组中的任一向量都不能被其它向量线性表示,就说向量组线性无关;否则就是线性相关。

矩阵转置:将矩阵的行和列互相交换

矩阵求逆:对于方阵A,若存在方阵B使得AB=BA=单位方阵I,则方阵B为方阵A的逆矩阵,记为A1A^{-1}

二、面试常考问题

  1. 线性代数中的初等行变换。

    1. 交换两行
    2. 用非零常数乘以某一行
    3. 用一行的倍数加到另一行上
  2. 如何理解矩阵的秩。

    矩阵的秩是指矩阵的列空间(或行空间)的维数,简而言之是矩阵中所有非零行(或列)向量构成的集合所组成的最大线性无关组的向量个数。

    tip

    宋浩八字:非零子式的最高阶数

    任意矩阵的行秩都等于列秩。

  3. 矩阵的秩与线性方程组解的关系。

    对于n元线性方程组而言:

    1. 当系数矩阵的秩等于增广矩阵的秩且秩等于n时,有唯一解

    2. 当系数矩阵的秩等于增广矩阵的秩且秩大于n时,有无穷多解

    3. 当系数矩阵的秩不等于增广矩阵的秩时,无解

      tip

      当系数矩阵的秩小于增广矩阵的秩时,说明系数矩阵中的某一列向量(或行向量)可以被其他列向量(或行向量)线性表示,此时该行不能提供额外的线性独立信息

  4. 简述向量组线性无关的含义。

    含义:若一个向量组是线性无关的,则该向量组中的每个向量都不能表示成其他向量的线性组合。

    意义:如果一个向量组线性无关,那么该向量组所张成的空间就是一个最小维度的向量空间,并且该向量空间中的任何向量都可由这些向量线性组合表示。

    判定方法:如果一个向量组中的所有向量都不可以由其他向量线性组合得到,则称该向量组为线性无关的。否则,如果存在某个向量可以表示成其他向量的线性组合,则该向量组就不是线性无关的。

  5. 解释正定矩阵以及半正定矩阵。

  6. 简述特征值的含义。

    特征值描述了矩阵在特定方向(特征向量方向)上的缩放因子,特征向量表示矩阵在这个特定方向上的不变性。

  7. 简述矩阵分解的物理意义。

    矩阵分解是将一个矩阵表示为一些特定形式的矩阵乘积的过程。

    矩阵分解的种类以及物理意义:

    • LU分解:将矩阵分解为一个下三角矩阵和一个上三角矩阵的乘积。物理意义包括解线性方程组、计算矩阵的行列式和逆矩阵等。
    • QR分解:将矩阵分解为一个正交矩阵和一个上三角矩阵的乘积。物理意义包括最小二乘问题、矩阵的特征值计算等。
    • 特征值分解:将矩阵分解为一个特征向量矩阵和一个对角矩阵的乘积。物理意义包括矩阵的幂、指数和对称矩阵的对角化等。
    • 奇异值分解(SVD):将矩阵分解为一个正交矩阵、一个对角矩阵和一个正交矩阵的乘积。物理意义包括降维、矩阵逼近和图像压缩等。
+ + + + \ No newline at end of file diff --git "a/en/docs/Tui-Mian/\346\234\272\350\257\225/\345\244\247\346\225\260\351\231\244\346\263\225/index.html" "b/en/docs/Tui-Mian/\346\234\272\350\257\225/\345\244\247\346\225\260\351\231\244\346\263\225/index.html" new file mode 100644 index 000000000..b4399f789 --- /dev/null +++ "b/en/docs/Tui-Mian/\346\234\272\350\257\225/\345\244\247\346\225\260\351\231\244\346\263\225/index.html" @@ -0,0 +1,18 @@ + + + + + +大数除法 | 培洋的笔记本📒 + + + + +
+

大数除法

tip

大数除法是指被除数大小超出long long范围,而导致必须使用字符串存储的除法,属于简单模拟的范畴

思路

通过模拟列竖式手动计算除法,实现使用字符串存储被除数的大数除法

参考代码

string division(string s, int divisor) {
/*
* 通过模拟列竖式手算除法完成字符串存储的大数除法
*/
string quotient; // 商
int idx = 0; // 当前处理的数字在原始字符串中的位置
int remainder = 0; // 余数
int temp = 0;
while (idx < s.size()) { // 一直循环处理到索引等于长度
temp = remainder * 10 + (s[idx] - '0'); // 当前进行除法运算的temp
if (temp >= divisor) { // 如果能除的动,则将当前的商插入quotient,并更新余数
quotient.push_back(temp / divisor + '0');
remainder = temp % divisor;
} else { // 除不动时分两种情况
if (!quotient.empty()) { // 商目前不为空,此时按照竖式方法,需要向商中加入0,再接着下一次循环
quotient.push_back('0');
}
remainder = temp; // 商目前为空,按照竖式计算方法,只更新余数,商保持为空
}
idx++; // 更新索引位置
}
if (quotient.empty()) { // 如果一直除不动,循环结束商还为空,则赋值为0字符串
quotient.assign("0");
}
return quotient; // 返回商字符串
}

扩展

将大数除法与进制转换相结合。

完整代码如下:

#include <bits/stdc++.h>

using namespace std;

string division(string s, int divisor) {
/*
* 通过模拟列竖式手算除法完成字符串存储的大数除法
*/
string quotient; // 商
int idx = 0; // 当前处理的数字在原始字符串中的位置
int remainder = 0; // 余数
int temp = 0;
while (idx < s.size()) { // 一直循环处理到索引等于长度
temp = remainder * 10 + (s[idx] - '0'); // 当前进行除法运算的temp
if (temp >= divisor) { // 如果能除的动,则将当前的商插入quotient,并更新余数
quotient.push_back(temp / divisor + '0');
remainder = temp % divisor;
} else { // 除不动时分两种情况
if (!quotient.empty()) { // 商目前不为空,此时按照竖式方法,需要向商中加入0,再接着下一次循环
quotient.push_back('0');
}
remainder = temp; // 商目前为空,按照竖式计算方法,只更新余数,商保持为空
}
idx++; // 更新索引位置
}
if (quotient.empty()) { // 如果一直除不动,循环结束商还为空,则赋值为0字符串
quotient.assign("0");
}
return quotient; // 返回商字符串
}

int main() {
string s;
while (cin >> s) {
vector<int> vec;
int len = s.size();
while (s != "0") {
int remainder = (s[len - 1] - '0') % 2;
vec.push_back(remainder);
s = division(s, 2);
len = s.size();
}
if (vec.empty()) {
cout << "0";
} else {
for (auto it = vec.rbegin(); it != vec.rend(); it++) {
cout << *it;
}
}
cout << endl;
}
return 0;
}
+ + + + \ No newline at end of file diff --git "a/en/docs/Tui-Mian/\347\256\200\345\216\206/\347\256\200\345\216\206\351\235\242\350\257\225\345\207\206\345\244\207/index.html" "b/en/docs/Tui-Mian/\347\256\200\345\216\206/\347\256\200\345\216\206\351\235\242\350\257\225\345\207\206\345\244\207/index.html" new file mode 100644 index 000000000..ed4e946d2 --- /dev/null +++ "b/en/docs/Tui-Mian/\347\256\200\345\216\206/\347\256\200\345\216\206\351\235\242\350\257\225\345\207\206\345\244\207/index.html" @@ -0,0 +1,24 @@ + + + + + +简历面试准备 | 培洋的笔记本📒 + + + + +
+

简历面试准备

一、U-2-Net

(一)SOD任务

显著性目标检测Salient Object Detection,相当于语义分割中的二分类任务,只有前景和背景

(二)网络结构

下图为U-2-Net的整体结构

image-20230618103036971

tip

residual [rɪˈzɪdjuəl]

在encoder阶段,每个block之后使用maxpooling下采样两倍 +在decoder阶段,每个block之后使用双线性插值上采样两倍

下图为Residual U-block的结构

image-20230618103937905

tip

卷积是如何改变输出的通道数的? +img

卷积核的通道数等于输入的通道数,卷积核的个数等于输出的通道数

图片来源知乎

在特征融合阶段,每一层的encoder-decoder输出,使用3x3卷积以及双线性插值上采样到原始分辨率得到该层的特征图,且卷积核的个数为1,输出的feature map通道数也为1。将每一层的feature map进行concat拼接,得到6通道的融合feature map,最后使用1x1卷积以及sigmoid激活函数得到最终的融合特征图输出

(三)损失函数

损失函数是7个损失项的加权求和 +共有6层encoder-decoder结构,将每一层对应的feature map与ground truth做BCE Loss得到6个损失项 +第7个损失项是最终融合得到的feature map与ground truth的BCE Loss +在论文中,每个损失项的权重都为1

canny边缘检测:

  1. 使用高斯滤波进行平滑
  2. 计算像素梯度
  3. 非极大值抑制
  4. 双阈值检测强边缘、弱边缘
  5. 边缘连接

(四)深度可分离卷积

深度可分离卷积的优点是可以在大致保持卷积效果的情况下减少参数量

在实现原理上可分为两个步骤:深度卷积(depth wise)以及逐点(point wise)卷积

深度卷积是一种在每个输入通道上分别进行卷积操作的卷积方法,每个输入通道只与对应的卷积核进行卷积。

逐点卷积通过使用1×11 \times 1卷积对深度卷积的结果再次卷积

二、YOLO

(一)mAP

PR曲线所围成的面积即使该类的AP值

image-20230618120734230

(二)YOLOv1

1.预测阶段

下图为YOLOv1的算法框架

image-20230618122157583

下图为YOLOv1的网络结构

image-20230618122438429

输入[448, 448, 3]图像,输出[7, 7, 30]的tensor(包含所有预测框的坐标、置信度和类别结果),通过解析输出的tensor得到预测结果

image-20230618122634451

首先将输入图片划分为S×SS \times S个grid cell。在YOLOv1中S=7S=7

每个grid cell预测出BB个bounding box预测框(bbox),每个bbox的中心点都落在该grid cell中。在YOLOv1中B=2B=2

每个bbox包含(x, y, h, w, c)五种信息,其中x, y为bbox左上角坐标,h, w为bbox的宽高,c为该bbox是否存在object的概率

同时每个grid cell预测出一组与数据集有关的条件类别概率。在YOLOv1论文使用的数据集Pascal VOC中,类别种类为20类,因此在预测阶段输出的[7, 7, 30]的tensor含义如下图所示

每个grid cell选出条件类别概率最大的类别,因此每个grid cell只能检测一个物体

tip

这也是YOLOv1小目标和密集目标识别能力差的原因

image-20230708094841128

每个bbox的置信度与其父grid cell的类别概率相乘得到全概率,如下图所示

image-20230708100637488

进行NMS后处理:

  1. 对某一特定类别,首先根据全概率置信度排序
  2. 将此时最大置信度的bbox与其他所有置信度更小的bbox做IoU判断,若IoU大于设置的阈值,则抹除置信度小的bbox
  3. 将剩余的次大的置信度重复步骤2,抹除所有置信度更小的其IoU超过阈值的bbox
tip

非极大值抑制只在预测阶段进行

在训练阶段,所有bbox都会在Loss Function中起到更新的作用,因此不进行NMS

2. 训练过程的损失函数

image-20230618135151404

(二)YOLOv2

1. BN层

image-20230711101245141

2. 高分辨率训练

3. Anchor

YOLOv2引入了anchor机制代替bbox,将图像划分为13×1313 \times 13个grid cell,每个grid cell生成5个anchor

anchor是通过k-means聚类在数据集上生成的不同尺寸的先验框 +对数据集进行anchor宽高比的聚类,聚类数越大,覆盖的IoU越大,但同时模型也更复杂

(三)YOLOv5

1. 特征融合

YOLOv5使用CSPNet实现特征融合,CSP模块由主干和分支构成,主干提取低维特征,分支提取高维特征

主干通过卷积和池化提取特征,形成不同尺寸的特征图

分支将主干输出的特征图作为输入,逐步卷积和上采样提取高级别语义特征

主干特征图通过卷积对通道数降维之后与分支在通道维度上concat

tip

在特征提取以及融合阶段可以加入Canny边缘检测得到的特征图进行特征融合

2. 前处理

对填充黑色像素进行了改善,以填充更少的黑像素,提高了精度

3. 特征金字塔FCN

三、CBAM

CBAM是通道+空间注意力机制(SENet是通道注意力机制)

(一)总体结构

image-20230710234929290

通道注意力:原始特征图[b,c,h,w][b, c, h, w]经过通道注意力机制算法得到[b,c,1,1][b, c, 1, 1]的tensor,代表不同通道之间的重要程度,将其与原始特征图相乘

空间注意力:经过通道注意力的特征图[b,c,h,w][b, c, h, w]经过空间注意力机制算法得到[b,1,h,w][b, 1, h, w]的tensor,代表宽高维度的像素之间的重要程度,将其与原始特征图相乘

(二)通道注意力

image-20230710235658595

原始特征图[b,c,h,w][b, c, h, w]分别经过最大池化和平均池化来压缩空间维度、学习通道之间的特征,得到[b,c,1,1][b, c, 1, 1]的tensor,再送入共享的多层感知机网络进行降维再升维,最后将二者相加再经过sigmoid函数产生最终的通道注意力特征图

(三)空间注意力

image-20230710235603737

原始特征图[b,c,h,w][b, c, h, w]分别经过最大池化和平均池化(通过torch.max和torch.mean函数实现)得到[b,1,h,w][b, 1, h, w]的tensor,再将二者concat后通过7×77 \times 7卷积学习特征并降维,最后送入sigmoid函数得到最终的空间注意力特征图

(四)其他注意事项

  1. 作者分别对通道注意力以及空间注意力使用最大池化还是平均池化做了消融实验,结果反映二者都用最大池化以及平均池化再相加效果最好(且对于7×77 \times 7卷积与3×33 \times 3卷积的消融实验发现,7×77 \times 7卷积效果更好)
  2. 作者对先通道注意力还是先空间注意力做了消融实验,结果发现先通道再空间效果更好

四、Focal Loss

Focal Loss通过引入修正项和样本关注度超参数,增加困难样本的关注度,来解决类别不均衡问题。

image-20230618135151404

YOLO损失函数分为分类损失以及回归损失,可以在分类损失中引入Focal Loss代替原来的交叉熵损失

五、SENet

image-20230711091505462

Squeeze and Excitation

Squeeze挤压操作就是将[b,c,h,w][b, c, h, w]的特征图通过池化挤压宽高维度,得到[b,c,1,1][b, c, 1, 1]的tensor,该tensor还要经过所示的全连接层-ReLU-全连接层结构

Excitation激励操作就是通过sigmoid函数得到每个通道之间的重要程度系数

六、自注意力机制

自注意力机制通过计算元素之间的相似度来确定它们之间的关联性,并对其进行加权处理以获得上下文信息。

  • 自注意力机制通过对输入的元素进行线性变换来得到查询(Query)向量键(Key)向量值(Value)向量
  • 通过点积和缩放点积计算相似程度

通过自注意力机制,每个元素都可以通过与其他元素的相似度计算和加权求和,获取到与它们相关的上下文信息。相似度高的元素将获得更高的权重,因此更受到关注和影响,从而建立起元素之间的关联性。

七、自我介绍

(一)英文自我介绍

This content has been encrypted.

(二)西电广研院自我介绍

1. 英文自我介绍

This content has been encrypted.

2. 中文自我介绍

This content has been encrypted.

(三)电子科技大学自我介绍

1. 英文自我介绍

This content has been encrypted.

2. 中文自我介绍

This content has been encrypted.

+ + + + \ No newline at end of file diff --git "a/en/docs/Tui-Mian/\350\256\241\347\256\227\346\234\272\345\237\272\347\241\200\347\273\274\345\220\210/\346\225\260\346\215\256\347\273\223\346\236\204/index.html" "b/en/docs/Tui-Mian/\350\256\241\347\256\227\346\234\272\345\237\272\347\241\200\347\273\274\345\220\210/\346\225\260\346\215\256\347\273\223\346\236\204/index.html" new file mode 100644 index 000000000..4b9c5e874 --- /dev/null +++ "b/en/docs/Tui-Mian/\350\256\241\347\256\227\346\234\272\345\237\272\347\241\200\347\273\274\345\220\210/\346\225\260\346\215\256\347\273\223\346\236\204/index.html" @@ -0,0 +1,18 @@ + + + + + +数据结构 | 培洋的笔记本📒 + + + + +
+

数据结构

  1. 树的性质:

    • 一棵 N 个结点的树有 N-1 条边
    • 树的总度数+1=树的结点数
    • 树的度=树中度最大结点的度数
  2. 二叉树的性质:

    • 叶子结点数等于度为 2 的结点数加 1,即n0 = n2 + 1

  3. 树转化为二叉树:

    参考资料:知乎

    1. 加线。在所有的兄弟结点之间加一条线。
    2. 去线。树中的每个结点,只保留它与第一个孩子结点的连线,删除其他孩子结点之间的连线。
    3. 调整。每个结点的原来的孩子是结点的左孩子,由原来的兄弟结点转过来的孩子是结点的右孩子
  4. 二叉排序树:每个结点的左子树上的所有结点值都更小,每个结点的右子树上的所有结点的值都更大。

  5. 平衡二叉排序树:要么是空树,要么左子树的高度与右子树的高度之差小于等于1。

  1. 图的表示:

    • 邻接矩阵

    • 邻接表:每一行表示的是一个顶点所连接的顶点,链表不具有指向性

      邻接表的搜索

  2. 最小生成树:在连通网的所有生成树中,所有边的代价和最小的生成树,称为最小生成树。

    • Kruskal算法

    • Prim算法

  3. 最短路径

+ + + + \ No newline at end of file diff --git a/en/fonts/PingFang-Medium.ttf b/en/fonts/PingFang-Medium.ttf new file mode 100644 index 000000000..982661b83 Binary files /dev/null and b/en/fonts/PingFang-Medium.ttf differ diff --git a/en/fonts/SF-Pro-Text-Medium.otf b/en/fonts/SF-Pro-Text-Medium.otf new file mode 100644 index 000000000..6d78eea03 Binary files /dev/null and b/en/fonts/SF-Pro-Text-Medium.otf differ diff --git a/en/fonts/SF-Pro-Text-Regular.otf b/en/fonts/SF-Pro-Text-Regular.otf new file mode 100644 index 000000000..3dc6161c0 Binary files /dev/null and b/en/fonts/SF-Pro-Text-Regular.otf differ diff --git a/en/img/CFM_Circle.png b/en/img/CFM_Circle.png new file mode 100644 index 000000000..e15b29894 Binary files /dev/null and b/en/img/CFM_Circle.png differ diff --git a/en/img/ChatGPT.svg b/en/img/ChatGPT.svg new file mode 100644 index 000000000..2312a7744 --- /dev/null +++ b/en/img/ChatGPT.svg @@ -0,0 +1,10 @@ + + + + + + + + + + \ No newline at end of file diff --git a/en/img/GUET_logo.png b/en/img/GUET_logo.png new file mode 100644 index 000000000..703148e5d Binary files /dev/null and b/en/img/GUET_logo.png differ diff --git a/en/img/KEXIE_logo.png b/en/img/KEXIE_logo.png new file mode 100644 index 000000000..d0ca2ea46 Binary files /dev/null and b/en/img/KEXIE_logo.png differ diff --git a/en/img/Musk_0.jpg b/en/img/Musk_0.jpg new file mode 100644 index 000000000..0f07f3128 Binary files /dev/null and b/en/img/Musk_0.jpg differ diff --git a/en/img/Musk_1.jpg b/en/img/Musk_1.jpg new file mode 100644 index 000000000..84fb34a84 Binary files /dev/null and b/en/img/Musk_1.jpg differ diff --git a/en/img/Musk_2.jpg b/en/img/Musk_2.jpg new file mode 100644 index 000000000..5eff1e875 Binary files /dev/null and b/en/img/Musk_2.jpg differ diff --git a/en/img/NYPD_Truck_with_officers.jpg b/en/img/NYPD_Truck_with_officers.jpg new file mode 100644 index 000000000..86a943719 Binary files /dev/null and b/en/img/NYPD_Truck_with_officers.jpg differ diff --git a/en/img/UESTC_logo.png b/en/img/UESTC_logo.png new file mode 100644 index 000000000..e86a65f69 Binary files /dev/null and b/en/img/UESTC_logo.png differ diff --git a/en/img/intro.png b/en/img/intro.png new file mode 100644 index 000000000..9088471b3 Binary files /dev/null and b/en/img/intro.png differ diff --git a/en/img/rockstar-games.svg b/en/img/rockstar-games.svg new file mode 100644 index 000000000..612969cae --- /dev/null +++ b/en/img/rockstar-games.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/en/img/spaceX_0.jpg b/en/img/spaceX_0.jpg new file mode 100644 index 000000000..5758898c5 Binary files /dev/null and b/en/img/spaceX_0.jpg differ diff --git a/en/img/spaceX_1.jpg b/en/img/spaceX_1.jpg new file mode 100644 index 000000000..90398112d Binary files /dev/null and b/en/img/spaceX_1.jpg differ diff --git a/en/index.html b/en/index.html new file mode 100644 index 000000000..ae6cbc862 --- /dev/null +++ b/en/index.html @@ -0,0 +1,18 @@ + + + + + +培洋的笔记本📒 | 培洋的笔记本📒 + + + + +
+
Image

电子科技大学

求实求真,大气大为

Image

未来媒体研究中心

CENTER FOR FUTURE MEDIA

Image

桂林电子科技大学

正德厚学,笃行致新

Image

桂电三院科协

木起青绿,梦绘初蓝

+ + + + \ No newline at end of file diff --git a/en/markdown-page/index.html b/en/markdown-page/index.html new file mode 100644 index 000000000..45981e569 --- /dev/null +++ b/en/markdown-page/index.html @@ -0,0 +1,18 @@ + + + + + +Markdown page example | 培洋的笔记本📒 + + + + +
+

Markdown page example

You don't need React to write simple standalone pages.

+ + + + \ No newline at end of file diff --git a/en/search-index.json b/en/search-index.json new file mode 100644 index 000000000..555c47a85 --- /dev/null +++ b/en/search-index.json @@ -0,0 +1 @@ +[{"documents":[{"i":702,"t":"排列组合(求30的倍数)","u":"/en/docs/Algorithms/题解/排列组合(求30的倍数)","b":["题解"]},{"i":708,"t":"反序输出","u":"/en/docs/Algorithms/题解/反序输出","b":["题解"]},{"i":714,"t":"一维前缀和(刷出一道墙)","u":"/en/docs/Algorithms/题解/一维前缀和(刷出一道墙)","b":["题解"]},{"i":720,"t":"鸣谢","u":"/en/docs/Acknowledgement/intro","b":["🍺饮水思源"]},{"i":725,"t":"STL模板","u":"/en/docs/Algorithms/STL模板","b":[]},{"i":747,"t":"编译原理笔记","u":"/en/docs/Curriculum/编译原理/Note","b":["编译原理"]},{"i":805,"t":"Welcome","u":"/en/docs/Algorithms/intro","b":["🎰算法"]},{"i":809,"t":"机试技巧与STL","u":"/en/docs/Algorithms/机试技巧与STL","b":[]},{"i":876,"t":"GeekOS project 0的实现","u":"/en/docs/Curriculum/操作系统课设/GeekOS-project-0","b":["操作系统课设"]},{"i":882,"t":"Linux系统下GeekOS的环境配置","u":"/en/docs/Curriculum/操作系统课设/Environment-Configuration","b":["操作系统课设"]},{"i":896,"t":"数字图像处理复习笔记","u":"/en/docs/Curriculum/数字图像处理/Note","b":["数字图像处理"]},{"i":949,"t":"Welcome","u":"/en/docs/Curriculum/intro","b":["📖课程学习"]},{"i":953,"t":"图像生成模型","u":"/en/docs/Deep-Learning/大模型/Image-Generation-Models","b":["大模型"]},{"i":980,"t":"NeurIPS 2017: Attention Is All You Need","u":"/en/docs/Deep-Learning/大模型/Attention-Is-All-You-Need","b":["大模型"]},{"i":1003,"t":"扩散模型(Diffusion Model)","u":"/en/docs/Deep-Learning/大模型/Diffusion-Model","b":["大模型"]},{"i":1011,"t":"本科毕业论文:基于 Prompt Learning 的视觉-语言大模型在图像生成中的应用与研究","u":"/en/docs/Deep-Learning/大模型/Prompt Learning/Undergraduate-Dissertation","b":["大模型","Prompt Learning"]},{"i":1042,"t":"自注意力(Self-Attention)","u":"/en/docs/Deep-Learning/大模型/Self-Attention","b":["大模型"]},{"i":1060,"t":"生成式对抗网络(GAN)","u":"/en/docs/Deep-Learning/大模型/GAN","b":["大模型"]},{"i":1077,"t":"自监督学习(Self-Supervised Learning)","u":"/en/docs/Deep-Learning/大模型/Self-Supervised-Learning","b":["大模型"]},{"i":1093,"t":"正则化与权重衰退","u":"/en/docs/Deep-Learning/基础知识/正则化与权重衰退","b":["基础知识"]},{"i":1101,"t":"深度可分离卷积","u":"/en/docs/Deep-Learning/基础知识/深度可分离卷积","b":["基础知识"]},{"i":1109,"t":"AlexNet","u":"/en/docs/Deep-Learning/基础知识/AlexNet","b":["基础知识"]},{"i":1116,"t":"激活函数与Loss的梯度","u":"/en/docs/Deep-Learning/基础知识/激活函数与Loss的梯度","b":["基础知识"]},{"i":1127,"t":"K-fold cross-validation","u":"/en/docs/Deep-Learning/基础知识/K-foldCross-validation","b":["基础知识"]},{"i":1134,"t":"Perceptron","u":"/en/docs/Deep-Learning/基础知识/Perceptron","b":["基础知识"]},{"i":1141,"t":"卷积层","u":"/en/docs/Deep-Learning/基础知识/ConvolutionalLayer","b":["基础知识"]},{"i":1146,"t":"LeNet","u":"/en/docs/Deep-Learning/基础知识/LeNet","b":["基础知识"]},{"i":1153,"t":"从全连接到卷积","u":"/en/docs/Deep-Learning/基础知识/FromFullyConnectedLayerToConvolutionalLayer","b":["基础知识"]},{"i":1160,"t":"池化层","u":"/en/docs/Deep-Learning/基础知识/PoolingLayer","b":["基础知识"]},{"i":1167,"t":"关于Logistic Regression","u":"/en/docs/Deep-Learning/基础知识/LogisticRegression","b":["基础知识"]},{"i":1176,"t":"CVPR 2022: High-Resolution Image Synthesis with Latent Diffusion Models","u":"/en/docs/Deep-Learning/论文笔记/High-Resolution Image Synthesis with Latent Diffusion Models","b":["论文笔记"]},{"i":1179,"t":"PyTorch基础","u":"/en/docs/Deep-Learning/基础知识/PytorchBasics","b":["基础知识"]},{"i":1182,"t":"CVPR 2023: Zero-shot Generative Model Adaptation via Image-specific Prompt Learning","u":"/en/docs/Deep-Learning/论文笔记/Zero-shot Generative Model Adaptation via Image-specific Prompt Learning","b":["论文笔记"]},{"i":1195,"t":"NeurIPS 2020: Denoising Diffusion Probabilistic Models","u":"/en/docs/Deep-Learning/论文笔记/Denoising Diffusion Probabilistic Models","b":["论文笔记"]},{"i":1206,"t":"Speaker Classification","u":"/en/docs/Deep-Learning/实战练习/Speaker Classification","b":["实战练习"]},{"i":1214,"t":"NeurIPS 2017: Attention Is All You Need","u":"/en/docs/Deep-Learning/论文笔记/Attention Is All You Need","b":["论文笔记"]},{"i":1237,"t":"本科毕业论文:基于 Prompt Learning 的视觉-语言大模型在图像生成中的应用与研究","u":"/en/docs/Deep-Learning/实战练习/Undergraduate-Dissertation","b":["实战练习"]},{"i":1270,"t":"Visdom可视化","u":"/en/docs/Deep-Learning/实战练习/Visdom Visualization","b":["实战练习"]},{"i":1281,"t":"Welcome","u":"/en/docs/Deep-Learning/intro","b":["🤖深度学习"]},{"i":1285,"t":"Welcome","u":"/en/docs/Others/intro","b":["☃️其他"]},{"i":1289,"t":"告示栏","u":"/en/docs/Others/博客搭建/告示栏","b":["博客搭建"]},{"i":1291,"t":"查漏补缺","u":"/en/docs/Deep-Learning/Fill-The-Gaps","b":[]},{"i":1301,"t":"如何让你的Kde Plasma看起来更像macOS","u":"/en/docs/Others/Linux/客制化/如何让你的KDE看起来更像macOS","b":["Linux","客制化"]},{"i":1306,"t":"终端代理","u":"/en/docs/Others/Linux/实用工具/终端代理","b":["Linux","实用工具"]},{"i":1314,"t":"大数除法","u":"/en/docs/Tui-Mian/机试/大数除法","b":["机试"]},{"i":1322,"t":"挂载Windows磁盘为只读文件","u":"/en/docs/Others/Linux/问题解决/双系统挂载Windows磁盘为只读文件","b":["Linux","问题解决"]},{"i":1327,"t":"概率论","u":"/en/docs/Tui-Mian/数学/概率论","b":["数学"]},{"i":1330,"t":"数据结构","u":"/en/docs/Tui-Mian/计算机基础综合/数据结构","b":["计算机基础综合"]},{"i":1335,"t":"夏令营面试数学部分复习","u":"/en/docs/Tui-Mian/数学/夏令营面试数学部分复习","b":["数学"]},{"i":1340,"t":"简历面试准备","u":"/en/docs/Tui-Mian/简历/简历面试准备","b":["简历"]},{"i":1382,"t":"Welcome","u":"/en/docs/Tui-Mian/intro","b":["🤡推免"]},{"i":1386,"t":"经验贴:2023年双非计算机保研经历","u":"/en/docs/Tui-Mian/Summary","b":[]},{"i":1397,"t":"线性代数","u":"/en/docs/Tui-Mian/数学/线性代数","b":["数学"]}],"index":{"version":"2.3.9","fields":["t"],"fieldVectors":[["t/702",[0,4.472]],["t/708",[1,1.092]],["t/714",[1,1.092]],["t/720",[1,1.092]],["t/725",[2,3.834]],["t/747",[1,1.092]],["t/805",[3,2.85]],["t/809",[2,3.834]],["t/876",[4,2.931,5,2.931,6,2.931]],["t/882",[7,4.472]],["t/896",[1,1.092]],["t/949",[3,2.85]],["t/953",[1,1.092]],["t/980",[8,1.91,9,2.144,10,1.91,11,2.144]],["t/1003",[12,2.704,13,2.456]],["t/1011",[1,1.029,14,1.665,15,1.512]],["t/1042",[10,2.704,16,3.037]],["t/1060",[17,4.472]],["t/1077",[15,2.033,16,2.514,18,2.931]],["t/1093",[1,1.092]],["t/1101",[1,1.092]],["t/1109",[19,4.472]],["t/1116",[20,4.472]],["t/1127",[21,2.501,22,2.501,23,2.501,24,2.501]],["t/1134",[25,4.472]],["t/1141",[1,1.092]],["t/1146",[26,4.472]],["t/1153",[1,1.092]],["t/1160",[1,1.092]],["t/1167",[27,3.541,28,3.541]],["t/1176",[12,1.101,13,1,29,1.236,30,1.442,31,1.442,32,1.442,33,1.236,34,1.442,35,1.442]],["t/1179",[36,4.472]],["t/1182",[13,0.797,14,0.878,15,0.797,29,0.986,33,0.986,37,0.986,38,1.15,39,1.15,40,1.15,41,1.15,42,1.15,43,1.15]],["t/1195",[8,1.476,12,1.476,13,1.34,44,1.933,45,1.933,46,1.933]],["t/1206",[47,3.541,48,3.541]],["t/1214",[8,1.91,9,2.144,10,1.91,11,2.144]],["t/1237",[1,1.029,14,1.665,15,1.512]],["t/1270",[49,4.472]],["t/1281",[3,2.85]],["t/1285",[3,2.85]],["t/1289",[1,1.092]],["t/1291",[1,1.092]],["t/1301",[50,3.541,51,3.541]],["t/1306",[1,1.092]],["t/1314",[1,1.092]],["t/1322",[52,4.472]],["t/1327",[1,1.092]],["t/1330",[1,1.092]],["t/1335",[1,1.092]],["t/1340",[1,1.092]],["t/1382",[3,2.85]],["t/1386",[37,3.834]],["t/1397",[1,1.092]]],"invertedIndex":[["",{"_index":1,"t":{"708":{"position":[[0,4]]},"714":{"position":[[0,12]]},"720":{"position":[[0,2]]},"747":{"position":[[0,6]]},"896":{"position":[[0,10]]},"953":{"position":[[0,6]]},"1011":{"position":[[0,9],[26,3],[30,17]]},"1093":{"position":[[0,8]]},"1101":{"position":[[0,7]]},"1141":{"position":[[0,3]]},"1153":{"position":[[0,7]]},"1160":{"position":[[0,3]]},"1237":{"position":[[0,9],[26,3],[30,17]]},"1289":{"position":[[0,3]]},"1291":{"position":[[0,4]]},"1306":{"position":[[0,4]]},"1314":{"position":[[0,4]]},"1327":{"position":[[0,3]]},"1330":{"position":[[0,4]]},"1335":{"position":[[0,11]]},"1340":{"position":[[0,6]]},"1397":{"position":[[0,4]]}}}],["0",{"_index":6,"t":{"876":{"position":[[15,4]]}}}],["2017",{"_index":9,"t":{"980":{"position":[[8,5]]},"1214":{"position":[[8,5]]}}}],["2020",{"_index":44,"t":{"1195":{"position":[[8,5]]}}}],["2022",{"_index":30,"t":{"1176":{"position":[[5,5]]}}}],["2023",{"_index":37,"t":{"1182":{"position":[[5,5]]},"1386":{"position":[[0,18]]}}}],["30",{"_index":0,"t":{"702":{"position":[[0,12]]}}}],["adapt",{"_index":41,"t":{"1182":{"position":[[38,10]]}}}],["alexnet",{"_index":19,"t":{"1109":{"position":[[0,7]]}}}],["attent",{"_index":10,"t":{"980":{"position":[[14,9]]},"1042":{"position":[[10,10]]},"1214":{"position":[[14,9]]}}}],["classif",{"_index":48,"t":{"1206":{"position":[[8,14]]}}}],["cross",{"_index":23,"t":{"1127":{"position":[[7,5]]}}}],["cvpr",{"_index":29,"t":{"1176":{"position":[[0,4]]},"1182":{"position":[[0,4]]}}}],["denois",{"_index":45,"t":{"1195":{"position":[[14,9]]}}}],["diffus",{"_index":12,"t":{"1003":{"position":[[0,14]]},"1176":{"position":[[55,9]]},"1195":{"position":[[24,9]]}}}],["fold",{"_index":22,"t":{"1127":{"position":[[2,4]]}}}],["gan",{"_index":17,"t":{"1060":{"position":[[0,12]]}}}],["geeko",{"_index":4,"t":{"876":{"position":[[0,6]]}}}],["gener",{"_index":40,"t":{"1182":{"position":[[21,10]]}}}],["high",{"_index":31,"t":{"1176":{"position":[[11,4]]}}}],["imag",{"_index":33,"t":{"1176":{"position":[[27,5]]},"1182":{"position":[[53,5]]}}}],["k",{"_index":21,"t":{"1127":{"position":[[0,1]]}}}],["kde",{"_index":50,"t":{"1301":{"position":[[0,8]]}}}],["latent",{"_index":35,"t":{"1176":{"position":[[48,6]]}}}],["learn",{"_index":15,"t":{"1011":{"position":[[17,8]]},"1077":{"position":[[22,9]]},"1182":{"position":[[75,8]]},"1237":{"position":[[17,8]]}}}],["lenet",{"_index":26,"t":{"1146":{"position":[[0,5]]}}}],["linux系统下geeko",{"_index":7,"t":{"882":{"position":[[0,19]]}}}],["logist",{"_index":27,"t":{"1167":{"position":[[0,10]]}}}],["loss",{"_index":20,"t":{"1116":{"position":[[0,12]]}}}],["model",{"_index":13,"t":{"1003":{"position":[[15,6]]},"1176":{"position":[[65,6]]},"1182":{"position":[[32,5]]},"1195":{"position":[[48,6]]}}}],["need",{"_index":11,"t":{"980":{"position":[[35,4]]},"1214":{"position":[[35,4]]}}}],["neurip",{"_index":8,"t":{"980":{"position":[[0,7]]},"1195":{"position":[[0,7]]},"1214":{"position":[[0,7]]}}}],["perceptron",{"_index":25,"t":{"1134":{"position":[[0,10]]}}}],["plasma看起来更像maco",{"_index":51,"t":{"1301":{"position":[[9,16]]}}}],["probabilist",{"_index":46,"t":{"1195":{"position":[[34,13]]}}}],["project",{"_index":5,"t":{"876":{"position":[[7,7]]}}}],["prompt",{"_index":14,"t":{"1011":{"position":[[10,6]]},"1182":{"position":[[68,6]]},"1237":{"position":[[10,6]]}}}],["pytorch",{"_index":36,"t":{"1179":{"position":[[0,9]]}}}],["regress",{"_index":28,"t":{"1167":{"position":[[11,10]]}}}],["resolut",{"_index":32,"t":{"1176":{"position":[[16,10]]}}}],["self",{"_index":16,"t":{"1042":{"position":[[0,9]]},"1077":{"position":[[0,10]]}}}],["shot",{"_index":39,"t":{"1182":{"position":[[16,4]]}}}],["speaker",{"_index":47,"t":{"1206":{"position":[[0,7]]}}}],["specif",{"_index":43,"t":{"1182":{"position":[[59,8]]}}}],["stl",{"_index":2,"t":{"725":{"position":[[0,5]]},"809":{"position":[[0,8]]}}}],["supervis",{"_index":18,"t":{"1077":{"position":[[11,10]]}}}],["synthesi",{"_index":34,"t":{"1176":{"position":[[33,9]]}}}],["valid",{"_index":24,"t":{"1127":{"position":[[13,10]]}}}],["via",{"_index":42,"t":{"1182":{"position":[[49,3]]}}}],["visdom",{"_index":49,"t":{"1270":{"position":[[0,9]]}}}],["welcom",{"_index":3,"t":{"805":{"position":[[0,7]]},"949":{"position":[[0,7]]},"1281":{"position":[[0,7]]},"1285":{"position":[[0,7]]},"1382":{"position":[[0,7]]}}}],["window",{"_index":52,"t":{"1322":{"position":[[0,16]]}}}],["zero",{"_index":38,"t":{"1182":{"position":[[11,4]]}}}]],"pipeline":["stemmer"]}},{"documents":[{"i":704,"t":"参考代码","u":"/en/docs/Algorithms/题解/排列组合(求30的倍数)","h":"#参考代码","p":702},{"i":706,"t":"题解","u":"/en/docs/Algorithms/题解/排列组合(求30的倍数)","h":"#题解","p":702},{"i":710,"t":"参考代码","u":"/en/docs/Algorithms/题解/反序输出","h":"#参考代码","p":708},{"i":712,"t":"题解","u":"/en/docs/Algorithms/题解/反序输出","h":"#题解","p":708},{"i":716,"t":"参考代码","u":"/en/docs/Algorithms/题解/一维前缀和(刷出一道墙)","h":"#参考代码","p":714},{"i":718,"t":"题解","u":"/en/docs/Algorithms/题解/一维前缀和(刷出一道墙)","h":"#题解","p":714},{"i":721,"t":"饮水思源","u":"/en/docs/Acknowledgement/intro","h":"#饮水思源","p":720},{"i":723,"t":"Disclaimer","u":"/en/docs/Acknowledgement/intro","h":"#disclaimer","p":720},{"i":727,"t":"vector","u":"/en/docs/Algorithms/STL模板","h":"#vector","p":725},{"i":729,"t":"pair","u":"/en/docs/Algorithms/STL模板","h":"#pair","p":725},{"i":731,"t":"string","u":"/en/docs/Algorithms/STL模板","h":"#string","p":725},{"i":733,"t":"query","u":"/en/docs/Algorithms/STL模板","h":"#query","p":725},{"i":735,"t":"priority_queue","u":"/en/docs/Algorithms/STL模板","h":"#priority_queue","p":725},{"i":737,"t":"stack","u":"/en/docs/Algorithms/STL模板","h":"#stack","p":725},{"i":739,"t":"deque","u":"/en/docs/Algorithms/STL模板","h":"#deque","p":725},{"i":741,"t":"set/multiset","u":"/en/docs/Algorithms/STL模板","h":"#setmultiset","p":725},{"i":743,"t":"map/multimap","u":"/en/docs/Algorithms/STL模板","h":"#mapmultimap","p":725},{"i":745,"t":"biset","u":"/en/docs/Algorithms/STL模板","h":"#biset","p":725},{"i":748,"t":"第一章:前言","u":"/en/docs/Curriculum/编译原理/Note","h":"#第一章前言","p":747},{"i":749,"t":"1.1 编译程序的逻辑结构","u":"/en/docs/Curriculum/编译原理/Note","h":"#11-编译程序的逻辑结构","p":747},{"i":751,"t":"1.2 前端和后端","u":"/en/docs/Curriculum/编译原理/Note","h":"#12-前端和后端","p":747},{"i":753,"t":"1.3 遍的概念","u":"/en/docs/Curriculum/编译原理/Note","h":"#13-遍的概念","p":747},{"i":755,"t":"第二章:文法和语言","u":"/en/docs/Curriculum/编译原理/Note","h":"#第二章文法和语言","p":747},{"i":756,"t":"2.1 句型","u":"/en/docs/Curriculum/编译原理/Note","h":"#21-句型","p":747},{"i":758,"t":"2.2 句子:","u":"/en/docs/Curriculum/编译原理/Note","h":"#22-句子","p":747},{"i":760,"t":"2.3 文法的分类:","u":"/en/docs/Curriculum/编译原理/Note","h":"#23-文法的分类","p":747},{"i":762,"t":"2.4 最左/右推导:","u":"/en/docs/Curriculum/编译原理/Note","h":"#24-最左右推导","p":747},{"i":764,"t":"第三章:词法分析","u":"/en/docs/Curriculum/编译原理/Note","h":"#第三章词法分析","p":747},{"i":765,"t":"3.1 正规文法转换成正规式","u":"/en/docs/Curriculum/编译原理/Note","h":"#31-正规文法转换成正规式","p":747},{"i":766,"t":"3.2 有穷自动机(FA)","u":"/en/docs/Curriculum/编译原理/Note","h":"#32-有穷自动机fa","p":747},{"i":768,"t":"3.3 正规式RE与有穷自动机FA的互相转化","u":"/en/docs/Curriculum/编译原理/Note","h":"#33-正规式re与有穷自动机fa的互相转化","p":747},{"i":769,"t":"3.4 正规文法RM与有穷自动机FA的互相转化","u":"/en/docs/Curriculum/编译原理/Note","h":"#34-正规文法rm与有穷自动机fa的互相转化","p":747},{"i":770,"t":"第四章:自顶向下语法分析方法","u":"/en/docs/Curriculum/编译原理/Note","h":"#第四章自顶向下语法分析方法","p":747},{"i":772,"t":"1. FIRST集的定义","u":"/en/docs/Curriculum/编译原理/Note","h":"#1-first集的定义","p":747},{"i":773,"t":"2. Follow集的定义","u":"/en/docs/Curriculum/编译原理/Note","h":"#2-follow集的定义","p":747},{"i":775,"t":"3. SELECT集的定义","u":"/en/docs/Curriculum/编译原理/Note","h":"#3-select集的定义","p":747},{"i":777,"t":"4. LL(1)文法的定义","u":"/en/docs/Curriculum/编译原理/Note","h":"#4-ll1文法的定义","p":747},{"i":778,"t":"5. LL(1)文法的判别","u":"/en/docs/Curriculum/编译原理/Note","h":"#5-ll1文法的判别","p":747},{"i":780,"t":"6. 预测分析表","u":"/en/docs/Curriculum/编译原理/Note","h":"#6-预测分析表","p":747},{"i":782,"t":"7. 非LL(1)文法到LL(1)文法的等价变换","u":"/en/docs/Curriculum/编译原理/Note","h":"#7-非ll1文法到ll1文法的等价变换","p":747},{"i":784,"t":"第五章:自底向上语法分析方法","u":"/en/docs/Curriculum/编译原理/Note","h":"#第五章自底向上语法分析方法","p":747},{"i":785,"t":"5.1 概念","u":"/en/docs/Curriculum/编译原理/Note","h":"#51-概念","p":747},{"i":787,"t":"5.2 方法","u":"/en/docs/Curriculum/编译原理/Note","h":"#52-方法","p":747},{"i":789,"t":"5.3 工作过程","u":"/en/docs/Curriculum/编译原理/Note","h":"#53-工作过程","p":747},{"i":790,"t":"5.4 移入-归约分析器的4种动作","u":"/en/docs/Curriculum/编译原理/Note","h":"#54-移入-归约分析器的4种动作","p":747},{"i":792,"t":"5.5 重要题型","u":"/en/docs/Curriculum/编译原理/Note","h":"#55-重要题型","p":747},{"i":794,"t":"概念总结","u":"/en/docs/Curriculum/编译原理/Note","h":"#概念总结","p":747},{"i":795,"t":"1 编译程序各阶段功能","u":"/en/docs/Curriculum/编译原理/Note","h":"#1-编译程序各阶段功能","p":747},{"i":797,"t":"2 语法分析方法的概念","u":"/en/docs/Curriculum/编译原理/Note","h":"#2-语法分析方法的概念","p":747},{"i":799,"t":"3 翻译模式","u":"/en/docs/Curriculum/编译原理/Note","h":"#3-翻译模式","p":747},{"i":801,"t":"4 属性文法","u":"/en/docs/Curriculum/编译原理/Note","h":"#4-属性文法","p":747},{"i":803,"t":"5 符号表","u":"/en/docs/Curriculum/编译原理/Note","h":"#5-符号表","p":747},{"i":807,"t":"支持我!","u":"/en/docs/Algorithms/intro","h":"#支持我","p":805},{"i":811,"t":"vs2018 快捷键","u":"/en/docs/Algorithms/机试技巧与STL","h":"#vs2018-快捷键","p":809},{"i":813,"t":"头文件","u":"/en/docs/Algorithms/机试技巧与STL","h":"#头文件","p":809},{"i":814,"t":"标准c库","u":"/en/docs/Algorithms/机试技巧与STL","h":"#标准c库","p":809},{"i":816,"t":"c++ STL","u":"/en/docs/Algorithms/机试技巧与STL","h":"#c-stl","p":809},{"i":818,"t":"常用头","u":"/en/docs/Algorithms/机试技巧与STL","h":"#常用头","p":809},{"i":820,"t":"常用宏定义","u":"/en/docs/Algorithms/机试技巧与STL","h":"#常用宏定义","p":809},{"i":822,"t":"结构体","u":"/en/docs/Algorithms/机试技巧与STL","h":"#结构体","p":809},{"i":823,"t":"定义","u":"/en/docs/Algorithms/机试技巧与STL","h":"#定义","p":809},{"i":825,"t":"初始化","u":"/en/docs/Algorithms/机试技巧与STL","h":"#初始化","p":809},{"i":827,"t":"运算符重载","u":"/en/docs/Algorithms/机试技巧与STL","h":"#运算符重载","p":809},{"i":829,"t":"c++new的使用","u":"/en/docs/Algorithms/机试技巧与STL","h":"#cnew的使用","p":809},{"i":830,"t":"常规","u":"/en/docs/Algorithms/机试技巧与STL","h":"#常规","p":809},{"i":832,"t":"动态申请列大小固定的二维数组","u":"/en/docs/Algorithms/机试技巧与STL","h":"#动态申请列大小固定的二维数组","p":809},{"i":834,"t":"动态申请大小不固定的二维数组","u":"/en/docs/Algorithms/机试技巧与STL","h":"#动态申请大小不固定的二维数组","p":809},{"i":836,"t":"常用STL","u":"/en/docs/Algorithms/机试技巧与STL","h":"#常用stl","p":809},{"i":838,"t":"简述","u":"/en/docs/Algorithms/机试技巧与STL","h":"#简述","p":809},{"i":840,"t":"algorithm","u":"/en/docs/Algorithms/机试技巧与STL","h":"#algorithm","p":809},{"i":842,"t":"vector","u":"/en/docs/Algorithms/机试技巧与STL","h":"#vector","p":809},{"i":844,"t":"list","u":"/en/docs/Algorithms/机试技巧与STL","h":"#list","p":809},{"i":846,"t":"string","u":"/en/docs/Algorithms/机试技巧与STL","h":"#string","p":809},{"i":848,"t":"pair","u":"/en/docs/Algorithms/机试技巧与STL","h":"#pair","p":809},{"i":850,"t":"map","u":"/en/docs/Algorithms/机试技巧与STL","h":"#map","p":809},{"i":852,"t":"stack","u":"/en/docs/Algorithms/机试技巧与STL","h":"#stack","p":809},{"i":854,"t":"queue","u":"/en/docs/Algorithms/机试技巧与STL","h":"#queue","p":809},{"i":856,"t":"set","u":"/en/docs/Algorithms/机试技巧与STL","h":"#set","p":809},{"i":858,"t":"multiset","u":"/en/docs/Algorithms/机试技巧与STL","h":"#multiset","p":809},{"i":860,"t":"bitset","u":"/en/docs/Algorithms/机试技巧与STL","h":"#bitset","p":809},{"i":862,"t":"图模板","u":"/en/docs/Algorithms/机试技巧与STL","h":"#图模板","p":809},{"i":863,"t":"不带出入度的最简模板","u":"/en/docs/Algorithms/机试技巧与STL","h":"#不带出入度的最简模板","p":809},{"i":865,"t":"带出入度的 (2019推免试题)","u":"/en/docs/Algorithms/机试技巧与STL","h":"#带出入度的-2019推免试题","p":809},{"i":867,"t":"图算法:找出u到v的所有路径-邻接表","u":"/en/docs/Algorithms/机试技巧与STL","h":"#图算法找出u到v的所有路径-邻接表","p":809},{"i":869,"t":"树模板","u":"/en/docs/Algorithms/机试技巧与STL","h":"#树模板","p":809},{"i":870,"t":"注释版","u":"/en/docs/Algorithms/机试技巧与STL","h":"#注释版","p":809},{"i":872,"t":"简化版(Val As Index,若数据不在1~N内,则可能越界)","u":"/en/docs/Algorithms/机试技巧与STL","h":"#简化版val-as-index若数据不在1n内则可能越界","p":809},{"i":874,"t":"简化版(Val Not As Index,可以存任意的 Val)","u":"/en/docs/Algorithms/机试技巧与STL","h":"#简化版val-not-as-index可以存任意的-val","p":809},{"i":878,"t":"1. 编写C语言代码","u":"/en/docs/Curriculum/操作系统课设/GeekOS-project-0","h":"#1-编写c语言代码","p":876},{"i":880,"t":"2. 使用Linux的编译系统对C语言代码进行编译","u":"/en/docs/Curriculum/操作系统课设/GeekOS-project-0","h":"#2-使用linux的编译系统对c语言代码进行编译","p":876},{"i":883,"t":"一、必须要知道的原理","u":"/en/docs/Curriculum/操作系统课设/Environment-Configuration","h":"#一必须要知道的原理","p":882},{"i":884,"t":"1. GeekOS:","u":"/en/docs/Curriculum/操作系统课设/Environment-Configuration","h":"#1-geekos","p":882},{"i":886,"t":"2. bochs:","u":"/en/docs/Curriculum/操作系统课设/Environment-Configuration","h":"#2-bochs","p":882},{"i":888,"t":"3. 二者之间的关系","u":"/en/docs/Curriculum/操作系统课设/Environment-Configuration","h":"#3-二者之间的关系","p":882},{"i":890,"t":"二、安装与配置","u":"/en/docs/Curriculum/操作系统课设/Environment-Configuration","h":"#二安装与配置","p":882},{"i":892,"t":"1. 安装","u":"/en/docs/Curriculum/操作系统课设/Environment-Configuration","h":"#1-安装","p":882},{"i":894,"t":"2. 配置","u":"/en/docs/Curriculum/操作系统课设/Environment-Configuration","h":"#2-配置","p":882},{"i":898,"t":"第2章 数字图像处理基础","u":"/en/docs/Curriculum/数字图像处理/Note","h":"#第2章-数字图像处理基础","p":896},{"i":899,"t":"图像的采样与量化","u":"/en/docs/Curriculum/数字图像处理/Note","h":"#图像的采样与量化","p":896},{"i":901,"t":"距离度量","u":"/en/docs/Curriculum/数字图像处理/Note","h":"#距离度量","p":896},{"i":903,"t":"图像质量评价","u":"/en/docs/Curriculum/数字图像处理/Note","h":"#图像质量评价","p":896},{"i":905,"t":"灰度直方图","u":"/en/docs/Curriculum/数字图像处理/Note","h":"#灰度直方图","p":896},{"i":906,"t":"第3章 图像变换","u":"/en/docs/Curriculum/数字图像处理/Note","h":"#第3章-图像变换","p":896},{"i":907,"t":"傅里叶变换","u":"/en/docs/Curriculum/数字图像处理/Note","h":"#傅里叶变换","p":896},{"i":909,"t":"第4章 图像处理的基本运算","u":"/en/docs/Curriculum/数字图像处理/Note","h":"#第4章-图像处理的基本运算","p":896},{"i":910,"t":"点运算","u":"/en/docs/Curriculum/数字图像处理/Note","h":"#点运算","p":896},{"i":912,"t":"比例缩放","u":"/en/docs/Curriculum/数字图像处理/Note","h":"#比例缩放","p":896},{"i":914,"t":"灰度级插值","u":"/en/docs/Curriculum/数字图像处理/Note","h":"#灰度级插值","p":896},{"i":916,"t":"第5章 图像空域增强","u":"/en/docs/Curriculum/数字图像处理/Note","h":"#第5章-图像空域增强","p":896},{"i":917,"t":"直接灰度变换","u":"/en/docs/Curriculum/数字图像处理/Note","h":"#直接灰度变换","p":896},{"i":919,"t":"直方图灰度变换","u":"/en/docs/Curriculum/数字图像处理/Note","h":"#直方图灰度变换","p":896},{"i":921,"t":"空域滤波增强","u":"/en/docs/Curriculum/数字图像处理/Note","h":"#空域滤波增强","p":896},{"i":923,"t":"第6章 图像频域增强","u":"/en/docs/Curriculum/数字图像处理/Note","h":"#第6章-图像频域增强","p":896},{"i":925,"t":"低通滤波","u":"/en/docs/Curriculum/数字图像处理/Note","h":"#低通滤波","p":896},{"i":927,"t":"高通滤波","u":"/en/docs/Curriculum/数字图像处理/Note","h":"#高通滤波","p":896},{"i":929,"t":"带通和带阻滤波","u":"/en/docs/Curriculum/数字图像处理/Note","h":"#带通和带阻滤波","p":896},{"i":931,"t":"第7章 彩色图像处理","u":"/en/docs/Curriculum/数字图像处理/Note","h":"#第7章-彩色图像处理","p":896},{"i":932,"t":"伪彩色图像的处理","u":"/en/docs/Curriculum/数字图像处理/Note","h":"#伪彩色图像的处理","p":896},{"i":934,"t":"全彩色图像的处理","u":"/en/docs/Curriculum/数字图像处理/Note","h":"#全彩色图像的处理","p":896},{"i":935,"t":"第8章 图像复原","u":"/en/docs/Curriculum/数字图像处理/Note","h":"#第8章-图像复原","p":896},{"i":936,"t":"图像退化机理","u":"/en/docs/Curriculum/数字图像处理/Note","h":"#图像退化机理","p":896},{"i":938,"t":"图像退化模型","u":"/en/docs/Curriculum/数字图像处理/Note","h":"#图像退化模型","p":896},{"i":940,"t":"第11章 图像分割","u":"/en/docs/Curriculum/数字图像处理/Note","h":"#第11章-图像分割","p":896},{"i":941,"t":"阈值分割法","u":"/en/docs/Curriculum/数字图像处理/Note","h":"#阈值分割法","p":896},{"i":943,"t":"边缘检测的基本原理","u":"/en/docs/Curriculum/数字图像处理/Note","h":"#边缘检测的基本原理","p":896},{"i":945,"t":"边缘检测算子","u":"/en/docs/Curriculum/数字图像处理/Note","h":"#边缘检测算子","p":896},{"i":947,"t":"课后习题中的问答题","u":"/en/docs/Curriculum/数字图像处理/Note","h":"#课后习题中的问答题","p":896},{"i":951,"t":"支持我!","u":"/en/docs/Curriculum/intro","h":"#支持我","p":949},{"i":954,"t":"回顾文字生成的两种方法","u":"/en/docs/Deep-Learning/大模型/Image-Generation-Models","h":"#回顾文字生成的两种方法","p":953},{"i":956,"t":"自回归方法(AR)","u":"/en/docs/Deep-Learning/大模型/Image-Generation-Models","h":"#自回归方法ar","p":953},{"i":958,"t":"非自回归方法(NAR)","u":"/en/docs/Deep-Learning/大模型/Image-Generation-Models","h":"#非自回归方法nar","p":953},{"i":960,"t":"目前图像生成模型的共同点","u":"/en/docs/Deep-Learning/大模型/Image-Generation-Models","h":"#目前图像生成模型的共同点","p":953},{"i":962,"t":"生成模型的共同结构","u":"/en/docs/Deep-Learning/大模型/Image-Generation-Models","h":"#生成模型的共同结构","p":953},{"i":964,"t":"通用框架概览","u":"/en/docs/Deep-Learning/大模型/Image-Generation-Models","h":"#通用框架概览","p":953},{"i":966,"t":"Benchmark","u":"/en/docs/Deep-Learning/大模型/Image-Generation-Models","h":"#benchmark","p":953},{"i":968,"t":"通用框架解析","u":"/en/docs/Deep-Learning/大模型/Image-Generation-Models","h":"#通用框架解析","p":953},{"i":970,"t":"常见图像生成模型速览","u":"/en/docs/Deep-Learning/大模型/Image-Generation-Models","h":"#常见图像生成模型速览","p":953},{"i":972,"t":"变分自编码器(VAE)","u":"/en/docs/Deep-Learning/大模型/Image-Generation-Models","h":"#变分自编码器vae","p":953},{"i":974,"t":"基于流的生成模型(Flow-Based Generative Model)","u":"/en/docs/Deep-Learning/大模型/Image-Generation-Models","h":"#基于流的生成模型flow-based-generative-model","p":953},{"i":976,"t":"生成对抗网络(GAN)","u":"/en/docs/Deep-Learning/大模型/Image-Generation-Models","h":"#生成对抗网络gan","p":953},{"i":978,"t":"扩散模型(Diffusion Model)","u":"/en/docs/Deep-Learning/大模型/Image-Generation-Models","h":"#扩散模型diffusion-model","p":953},{"i":982,"t":"整体结构","u":"/en/docs/Deep-Learning/大模型/Attention-Is-All-You-Need","h":"#整体结构","p":980},{"i":984,"t":"Encoder","u":"/en/docs/Deep-Learning/大模型/Attention-Is-All-You-Need","h":"#encoder","p":980},{"i":985,"t":"整体结构","u":"/en/docs/Deep-Learning/大模型/Attention-Is-All-You-Need","h":"#整体结构-1","p":980},{"i":987,"t":"位置编码(Positional Encoding)","u":"/en/docs/Deep-Learning/大模型/Attention-Is-All-You-Need","h":"#位置编码positional-encoding","p":980},{"i":989,"t":"具体结构","u":"/en/docs/Deep-Learning/大模型/Attention-Is-All-You-Need","h":"#具体结构","p":980},{"i":991,"t":"Decoder","u":"/en/docs/Deep-Learning/大模型/Attention-Is-All-You-Need","h":"#decoder","p":980},{"i":993,"t":"Autoregressive Decoder(AT)","u":"/en/docs/Deep-Learning/大模型/Attention-Is-All-You-Need","h":"#autoregressive-decoderat","p":980},{"i":995,"t":"Non-Autoregressive Decoder(NAT)","u":"/en/docs/Deep-Learning/大模型/Attention-Is-All-You-Need","h":"#non-autoregressive-decodernat","p":980},{"i":996,"t":"训练(Training)","u":"/en/docs/Deep-Learning/大模型/Attention-Is-All-You-Need","h":"#训练training","p":980},{"i":997,"t":"损失函数","u":"/en/docs/Deep-Learning/大模型/Attention-Is-All-You-Need","h":"#损失函数","p":980},{"i":999,"t":"Teacher Forcing","u":"/en/docs/Deep-Learning/大模型/Attention-Is-All-You-Need","h":"#teacher-forcing","p":980},{"i":1001,"t":"Teacher Forcing与Masked Multi-Head Self-Attention","u":"/en/docs/Deep-Learning/大模型/Attention-Is-All-You-Need","h":"#teacher-forcing与masked-multi-head-self-attention","p":980},{"i":1005,"t":"基本概念","u":"/en/docs/Deep-Learning/大模型/Diffusion-Model","h":"#基本概念","p":1003},{"i":1007,"t":"训练过程","u":"/en/docs/Deep-Learning/大模型/Diffusion-Model","h":"#训练过程","p":1003},{"i":1009,"t":"推理过程","u":"/en/docs/Deep-Learning/大模型/Diffusion-Model","h":"#推理过程","p":1003},{"i":1013,"t":"依赖","u":"/en/docs/Deep-Learning/大模型/Prompt Learning/Undergraduate-Dissertation","h":"#依赖","p":1011},{"i":1014,"t":"创建 Anaconda 虚拟环境","u":"/en/docs/Deep-Learning/大模型/Prompt Learning/Undergraduate-Dissertation","h":"#创建-anaconda-虚拟环境","p":1011},{"i":1016,"t":"安装依赖","u":"/en/docs/Deep-Learning/大模型/Prompt Learning/Undergraduate-Dissertation","h":"#安装依赖","p":1011},{"i":1018,"t":"下载预训练生成器","u":"/en/docs/Deep-Learning/大模型/Prompt Learning/Undergraduate-Dissertation","h":"#下载预训练生成器","p":1011},{"i":1020,"t":"概述","u":"/en/docs/Deep-Learning/大模型/Prompt Learning/Undergraduate-Dissertation","h":"#概述","p":1011},{"i":1021,"t":"技术细节","u":"/en/docs/Deep-Learning/大模型/Prompt Learning/Undergraduate-Dissertation","h":"#技术细节","p":1011},{"i":1022,"t":"prompts 的初始化","u":"/en/docs/Deep-Learning/大模型/Prompt Learning/Undergraduate-Dissertation","h":"#prompts-的初始化","p":1011},{"i":1024,"t":"prompts 的 tokenize 与 embedding","u":"/en/docs/Deep-Learning/大模型/Prompt Learning/Undergraduate-Dissertation","h":"#prompts-的-tokenize-与-embedding","p":1011},{"i":1026,"t":"compute_text_features 的实现细节","u":"/en/docs/Deep-Learning/大模型/Prompt Learning/Undergraduate-Dissertation","h":"#compute_text_features-的实现细节","p":1011},{"i":1028,"t":"训练 stage 1","u":"/en/docs/Deep-Learning/大模型/Prompt Learning/Undergraduate-Dissertation","h":"#训练-stage-1","p":1011},{"i":1030,"t":"训练 stage 2","u":"/en/docs/Deep-Learning/大模型/Prompt Learning/Undergraduate-Dissertation","h":"#训练-stage-2","p":1011},{"i":1032,"t":"定量分析指标","u":"/en/docs/Deep-Learning/大模型/Prompt Learning/Undergraduate-Dissertation","h":"#定量分析指标","p":1011},{"i":1034,"t":"新增功能","u":"/en/docs/Deep-Learning/大模型/Prompt Learning/Undergraduate-Dissertation","h":"#新增功能","p":1011},{"i":1035,"t":"自定义图像风格迁移","u":"/en/docs/Deep-Learning/大模型/Prompt Learning/Undergraduate-Dissertation","h":"#自定义图像风格迁移","p":1011},{"i":1037,"t":"问题提出与改进","u":"/en/docs/Deep-Learning/大模型/Prompt Learning/Undergraduate-Dissertation","h":"#问题提出与改进","p":1011},{"i":1038,"t":"训练阶段人工 prompts 的作用是什么?","u":"/en/docs/Deep-Learning/大模型/Prompt Learning/Undergraduate-Dissertation","h":"#训练阶段人工-prompts-的作用是什么","p":1011},{"i":1040,"t":"Mapper 结构的设计","u":"/en/docs/Deep-Learning/大模型/Prompt Learning/Undergraduate-Dissertation","h":"#mapper-结构的设计","p":1011},{"i":1044,"t":"认识CNN的局限性","u":"/en/docs/Deep-Learning/大模型/Self-Attention","h":"#认识cnn的局限性","p":1042},{"i":1045,"t":"输入与输出的局限性","u":"/en/docs/Deep-Learning/大模型/Self-Attention","h":"#输入与输出的局限性","p":1042},{"i":1047,"t":"关联上下文信息的局限性","u":"/en/docs/Deep-Learning/大模型/Self-Attention","h":"#关联上下文信息的局限性","p":1042},{"i":1049,"t":"Self-Attention的原理","u":"/en/docs/Deep-Learning/大模型/Self-Attention","h":"#self-attention的原理","p":1042},{"i":1050,"t":"什么是Self-Attention","u":"/en/docs/Deep-Learning/大模型/Self-Attention","h":"#什么是self-attention","p":1042},{"i":1052,"t":"Self-Attention的核心思想","u":"/en/docs/Deep-Learning/大模型/Self-Attention","h":"#self-attention的核心思想","p":1042},{"i":1054,"t":"Self-Attention的实现","u":"/en/docs/Deep-Learning/大模型/Self-Attention","h":"#self-attention的实现","p":1042},{"i":1056,"t":"Multi-Head Self-Attention","u":"/en/docs/Deep-Learning/大模型/Self-Attention","h":"#multi-head-self-attention","p":1042},{"i":1058,"t":"Self-Attention与CNN的对比","u":"/en/docs/Deep-Learning/大模型/Self-Attention","h":"#self-attention与cnn的对比","p":1042},{"i":1062,"t":"引言","u":"/en/docs/Deep-Learning/大模型/GAN","h":"#引言","p":1060},{"i":1063,"t":"将随机分布作为输入","u":"/en/docs/Deep-Learning/大模型/GAN","h":"#将随机分布作为输入","p":1060},{"i":1065,"t":"为什么要添加分布","u":"/en/docs/Deep-Learning/大模型/GAN","h":"#为什么要添加分布","p":1060},{"i":1067,"t":"核心思想","u":"/en/docs/Deep-Learning/大模型/GAN","h":"#核心思想","p":1060},{"i":1069,"t":"具体结构与作用","u":"/en/docs/Deep-Learning/大模型/GAN","h":"#具体结构与作用","p":1060},{"i":1071,"t":"生成器(Generator)","u":"/en/docs/Deep-Learning/大模型/GAN","h":"#生成器generator","p":1060},{"i":1073,"t":"判别器(Discriminator)","u":"/en/docs/Deep-Learning/大模型/GAN","h":"#判别器discriminator","p":1060},{"i":1075,"t":"训练算法","u":"/en/docs/Deep-Learning/大模型/GAN","h":"#训练算法","p":1060},{"i":1079,"t":"介绍","u":"/en/docs/Deep-Learning/大模型/Self-Supervised-Learning","h":"#介绍","p":1077},{"i":1081,"t":"BERT(Bidirectional Encoder Representation from Transformers)","u":"/en/docs/Deep-Learning/大模型/Self-Supervised-Learning","h":"#bertbidirectional-encoder-representation-from-transformers","p":1077},{"i":1083,"t":"结构","u":"/en/docs/Deep-Learning/大模型/Self-Supervised-Learning","h":"#结构","p":1077},{"i":1085,"t":"Self-Supervised Pretraining","u":"/en/docs/Deep-Learning/大模型/Self-Supervised-Learning","h":"#self-supervised-pretraining","p":1077},{"i":1087,"t":"Fine-tuning","u":"/en/docs/Deep-Learning/大模型/Self-Supervised-Learning","h":"#fine-tuning","p":1077},{"i":1089,"t":"Why does BERT work?","u":"/en/docs/Deep-Learning/大模型/Self-Supervised-Learning","h":"#why-does-bert-work","p":1077},{"i":1091,"t":"GPT: Generative Pre-trained Transformer","u":"/en/docs/Deep-Learning/大模型/Self-Supervised-Learning","h":"#gpt-generative-pre-trained-transformer","p":1077},{"i":1095,"t":"一、什么是正则化","u":"/en/docs/Deep-Learning/基础知识/正则化与权重衰退","h":"#一什么是正则化","p":1093},{"i":1097,"t":"二、L1正则化","u":"/en/docs/Deep-Learning/基础知识/正则化与权重衰退","h":"#二l1正则化","p":1093},{"i":1099,"t":"三、L2正则化与权重衰退","u":"/en/docs/Deep-Learning/基础知识/正则化与权重衰退","h":"#三l2正则化与权重衰退","p":1093},{"i":1103,"t":"常规卷积","u":"/en/docs/Deep-Learning/基础知识/深度可分离卷积","h":"#常规卷积","p":1101},{"i":1105,"t":"(1)逐通道卷积-Depthwise Convolution","u":"/en/docs/Deep-Learning/基础知识/深度可分离卷积","h":"#1逐通道卷积-depthwise-convolution","p":1101},{"i":1107,"t":"(2)逐点卷积-Pointwise Convolution","u":"/en/docs/Deep-Learning/基础知识/深度可分离卷积","h":"#2逐点卷积-pointwise-convolution","p":1101},{"i":1110,"t":"背景","u":"/en/docs/Deep-Learning/基础知识/AlexNet","h":"#背景","p":1109},{"i":1112,"t":"新的概念和技术","u":"/en/docs/Deep-Learning/基础知识/AlexNet","h":"#新的概念和技术","p":1109},{"i":1114,"t":"与LeNet比较","u":"/en/docs/Deep-Learning/基础知识/AlexNet","h":"#与lenet比较","p":1109},{"i":1117,"t":"一、激活函数","u":"/en/docs/Deep-Learning/基础知识/激活函数与Loss的梯度","h":"#一激活函数","p":1116},{"i":1118,"t":"1. Sigmoid函数 / Logistic函数","u":"/en/docs/Deep-Learning/基础知识/激活函数与Loss的梯度","h":"#1-sigmoid函数--logistic函数","p":1116},{"i":1120,"t":"2. 线性整流单元(Rectified Linear Unit, ReLU)","u":"/en/docs/Deep-Learning/基础知识/激活函数与Loss的梯度","h":"#2-线性整流单元rectified-linear-unit-relu","p":1116},{"i":1122,"t":"二、损失函数","u":"/en/docs/Deep-Learning/基础知识/激活函数与Loss的梯度","h":"#二损失函数","p":1116},{"i":1123,"t":"1. Mean Squared Error 均方误差","u":"/en/docs/Deep-Learning/基础知识/激活函数与Loss的梯度","h":"#1-mean-squared-error-均方误差","p":1116},{"i":1125,"t":"2. Cross Entropy Loss 交叉熵损失","u":"/en/docs/Deep-Learning/基础知识/激活函数与Loss的梯度","h":"#2-cross-entropy-loss-交叉熵损失","p":1116},{"i":1128,"t":"What is k-fold cross-validation?","u":"/en/docs/Deep-Learning/基础知识/K-foldCross-validation","h":"#what-is-k-fold-cross-validation","p":1127},{"i":1130,"t":"How does k-fold cross-validation work?","u":"/en/docs/Deep-Learning/基础知识/K-foldCross-validation","h":"#how-does-k-fold-cross-validation-work","p":1127},{"i":1132,"t":"Summary","u":"/en/docs/Deep-Learning/基础知识/K-foldCross-validation","h":"#summary","p":1127},{"i":1135,"t":"一、什么是感知机","u":"/en/docs/Deep-Learning/基础知识/Perceptron","h":"#一什么是感知机","p":1134},{"i":1137,"t":"二、详细原理","u":"/en/docs/Deep-Learning/基础知识/Perceptron","h":"#二详细原理","p":1134},{"i":1139,"t":"三、总结","u":"/en/docs/Deep-Learning/基础知识/Perceptron","h":"#三总结","p":1134},{"i":1142,"t":"一、1x1卷积","u":"/en/docs/Deep-Learning/基础知识/ConvolutionalLayer","h":"#一1x1卷积","p":1141},{"i":1144,"t":"二、二维卷积层","u":"/en/docs/Deep-Learning/基础知识/ConvolutionalLayer","h":"#二二维卷积层","p":1141},{"i":1147,"t":"背景","u":"/en/docs/Deep-Learning/基础知识/LeNet","h":"#背景","p":1146},{"i":1149,"t":"代码实现","u":"/en/docs/Deep-Learning/基础知识/LeNet","h":"#代码实现","p":1146},{"i":1151,"t":"问题","u":"/en/docs/Deep-Learning/基础知识/LeNet","h":"#问题","p":1146},{"i":1154,"t":"一、卷积的诞生&核心特征","u":"/en/docs/Deep-Learning/基础知识/FromFullyConnectedLayerToConvolutionalLayer","h":"#一卷积的诞生核心特征","p":1153},{"i":1156,"t":"二、重新考察全连接层","u":"/en/docs/Deep-Learning/基础知识/FromFullyConnectedLayerToConvolutionalLayer","h":"#二重新考察全连接层","p":1153},{"i":1158,"t":"三、总结","u":"/en/docs/Deep-Learning/基础知识/FromFullyConnectedLayerToConvolutionalLayer","h":"#三总结","p":1153},{"i":1161,"t":"一、卷积对像素位置信息是敏感的","u":"/en/docs/Deep-Learning/基础知识/PoolingLayer","h":"#一卷积对像素位置信息是敏感的","p":1160},{"i":1163,"t":"二、池化层的作用","u":"/en/docs/Deep-Learning/基础知识/PoolingLayer","h":"#二池化层的作用","p":1160},{"i":1165,"t":"三、池化的实现","u":"/en/docs/Deep-Learning/基础知识/PoolingLayer","h":"#三池化的实现","p":1160},{"i":1168,"t":"一、什么是Logistic Regression","u":"/en/docs/Deep-Learning/基础知识/LogisticRegression","h":"#一什么是logistic-regression","p":1167},{"i":1170,"t":"二、逻辑回归(Logistic Regression)和线性回归(Linear Regression)","u":"/en/docs/Deep-Learning/基础知识/LogisticRegression","h":"#二逻辑回归logistic-regression和线性回归linear-regression","p":1167},{"i":1172,"t":"三、逻辑回归到底是回归任务(Regression)还是分类任务(Classification)?","u":"/en/docs/Deep-Learning/基础知识/LogisticRegression","h":"#三逻辑回归到底是回归任务regression还是分类任务classification","p":1167},{"i":1174,"t":"四、为什么逻辑回归或其他分类任务不使用分类准确率作为损失函数?","u":"/en/docs/Deep-Learning/基础知识/LogisticRegression","h":"#四为什么逻辑回归或其他分类任务不使用分类准确率作为损失函数","p":1167},{"i":1178,"t":"摘要与主要贡献","u":"/en/docs/Deep-Learning/论文笔记/High-Resolution Image Synthesis with Latent Diffusion Models","h":"#摘要与主要贡献","p":1176},{"i":1180,"t":"一、常用函数部分","u":"/en/docs/Deep-Learning/基础知识/PytorchBasics","h":"#一常用函数部分","p":1179},{"i":1184,"t":"摘要","u":"/en/docs/Deep-Learning/论文笔记/Zero-shot Generative Model Adaptation via Image-specific Prompt Learning","h":"#摘要","p":1182},{"i":1186,"t":"相关工作","u":"/en/docs/Deep-Learning/论文笔记/Zero-shot Generative Model Adaptation via Image-specific Prompt Learning","h":"#相关工作","p":1182},{"i":1187,"t":"Generative Model Adaption","u":"/en/docs/Deep-Learning/论文笔记/Zero-shot Generative Model Adaptation via Image-specific Prompt Learning","h":"#generative-model-adaption","p":1182},{"i":1189,"t":"Prompt Learning","u":"/en/docs/Deep-Learning/论文笔记/Zero-shot Generative Model Adaptation via Image-specific Prompt Learning","h":"#prompt-learning","p":1182},{"i":1191,"t":"主要方法","u":"/en/docs/Deep-Learning/论文笔记/Zero-shot Generative Model Adaptation via Image-specific Prompt Learning","h":"#主要方法","p":1182},{"i":1192,"t":"概述","u":"/en/docs/Deep-Learning/论文笔记/Zero-shot Generative Model Adaptation via Image-specific Prompt Learning","h":"#概述","p":1182},{"i":1194,"t":"Image-specific Prompt Learning","u":"/en/docs/Deep-Learning/论文笔记/Zero-shot Generative Model Adaptation via Image-specific Prompt Learning","h":"#image-specific-prompt-learning","p":1182},{"i":1197,"t":"数学原理(Mathematical Preliminary)","u":"/en/docs/Deep-Learning/论文笔记/Denoising Diffusion Probabilistic Models","h":"#数学原理mathematical-preliminary","p":1195},{"i":1198,"t":"先验概率与后验概率","u":"/en/docs/Deep-Learning/论文笔记/Denoising Diffusion Probabilistic Models","h":"#先验概率与后验概率","p":1195},{"i":1200,"t":"条件概率与高斯分布的KL散度","u":"/en/docs/Deep-Learning/论文笔记/Denoising Diffusion Probabilistic Models","h":"#条件概率与高斯分布的kl散度","p":1195},{"i":1202,"t":"马尔科夫链条件概率形式","u":"/en/docs/Deep-Learning/论文笔记/Denoising Diffusion Probabilistic Models","h":"#马尔科夫链条件概率形式","p":1195},{"i":1204,"t":"参数重整化技巧","u":"/en/docs/Deep-Learning/论文笔记/Denoising Diffusion Probabilistic Models","h":"#参数重整化技巧","p":1195},{"i":1208,"t":"Overview","u":"/en/docs/Deep-Learning/实战练习/Speaker Classification","h":"#overview","p":1206},{"i":1210,"t":"Dataset","u":"/en/docs/Deep-Learning/实战练习/Speaker Classification","h":"#dataset","p":1206},{"i":1212,"t":"Related","u":"/en/docs/Deep-Learning/实战练习/Speaker Classification","h":"#related","p":1206},{"i":1216,"t":"整体结构","u":"/en/docs/Deep-Learning/论文笔记/Attention Is All You Need","h":"#整体结构","p":1214},{"i":1218,"t":"Encoder","u":"/en/docs/Deep-Learning/论文笔记/Attention Is All You Need","h":"#encoder","p":1214},{"i":1219,"t":"整体结构","u":"/en/docs/Deep-Learning/论文笔记/Attention Is All You Need","h":"#整体结构-1","p":1214},{"i":1221,"t":"位置编码(Positional Encoding)","u":"/en/docs/Deep-Learning/论文笔记/Attention Is All You Need","h":"#位置编码positional-encoding","p":1214},{"i":1223,"t":"具体结构","u":"/en/docs/Deep-Learning/论文笔记/Attention Is All You Need","h":"#具体结构","p":1214},{"i":1225,"t":"Decoder","u":"/en/docs/Deep-Learning/论文笔记/Attention Is All You Need","h":"#decoder","p":1214},{"i":1227,"t":"Autoregressive Decoder(AT)","u":"/en/docs/Deep-Learning/论文笔记/Attention Is All You Need","h":"#autoregressive-decoderat","p":1214},{"i":1229,"t":"Non-Autoregressive Decoder(NAT)","u":"/en/docs/Deep-Learning/论文笔记/Attention Is All You Need","h":"#non-autoregressive-decodernat","p":1214},{"i":1230,"t":"训练(Training)","u":"/en/docs/Deep-Learning/论文笔记/Attention Is All You Need","h":"#训练training","p":1214},{"i":1231,"t":"损失函数","u":"/en/docs/Deep-Learning/论文笔记/Attention Is All You Need","h":"#损失函数","p":1214},{"i":1233,"t":"Teacher Forcing","u":"/en/docs/Deep-Learning/论文笔记/Attention Is All You Need","h":"#teacher-forcing","p":1214},{"i":1235,"t":"Teacher Forcing与Masked Multi-Head Self-Attention","u":"/en/docs/Deep-Learning/论文笔记/Attention Is All You Need","h":"#teacher-forcing与masked-multi-head-self-attention","p":1214},{"i":1239,"t":"依赖","u":"/en/docs/Deep-Learning/实战练习/Undergraduate-Dissertation","h":"#依赖","p":1237},{"i":1240,"t":"创建 Anaconda 虚拟环境","u":"/en/docs/Deep-Learning/实战练习/Undergraduate-Dissertation","h":"#创建-anaconda-虚拟环境","p":1237},{"i":1242,"t":"安装依赖","u":"/en/docs/Deep-Learning/实战练习/Undergraduate-Dissertation","h":"#安装依赖","p":1237},{"i":1244,"t":"下载预训练生成器","u":"/en/docs/Deep-Learning/实战练习/Undergraduate-Dissertation","h":"#下载预训练生成器","p":1237},{"i":1246,"t":"概述","u":"/en/docs/Deep-Learning/实战练习/Undergraduate-Dissertation","h":"#概述","p":1237},{"i":1247,"t":"技术细节","u":"/en/docs/Deep-Learning/实战练习/Undergraduate-Dissertation","h":"#技术细节","p":1237},{"i":1248,"t":"prompts 的初始化","u":"/en/docs/Deep-Learning/实战练习/Undergraduate-Dissertation","h":"#prompts-的初始化","p":1237},{"i":1250,"t":"prompts 的 tokenize 与 embedding","u":"/en/docs/Deep-Learning/实战练习/Undergraduate-Dissertation","h":"#prompts-的-tokenize-与-embedding","p":1237},{"i":1252,"t":"compute_text_features 的实现细节","u":"/en/docs/Deep-Learning/实战练习/Undergraduate-Dissertation","h":"#compute_text_features-的实现细节","p":1237},{"i":1254,"t":"训练 stage 1","u":"/en/docs/Deep-Learning/实战练习/Undergraduate-Dissertation","h":"#训练-stage-1","p":1237},{"i":1256,"t":"训练 stage 2","u":"/en/docs/Deep-Learning/实战练习/Undergraduate-Dissertation","h":"#训练-stage-2","p":1237},{"i":1258,"t":"定量分析指标","u":"/en/docs/Deep-Learning/实战练习/Undergraduate-Dissertation","h":"#定量分析指标","p":1237},{"i":1260,"t":"新增功能","u":"/en/docs/Deep-Learning/实战练习/Undergraduate-Dissertation","h":"#新增功能","p":1237},{"i":1261,"t":"自定义图像风格迁移","u":"/en/docs/Deep-Learning/实战练习/Undergraduate-Dissertation","h":"#自定义图像风格迁移","p":1237},{"i":1263,"t":"问题提出与改进","u":"/en/docs/Deep-Learning/实战练习/Undergraduate-Dissertation","h":"#问题提出与改进","p":1237},{"i":1264,"t":"改进:Mapper 结构的设计","u":"/en/docs/Deep-Learning/实战练习/Undergraduate-Dissertation","h":"#改进mapper-结构的设计","p":1237},{"i":1266,"t":"问题:训练阶段人工 prompts 的作用是什么?","u":"/en/docs/Deep-Learning/实战练习/Undergraduate-Dissertation","h":"#问题训练阶段人工-prompts-的作用是什么","p":1237},{"i":1268,"t":"改进:使学习到的 prompts 向用户自主设计的 prompts 模板对齐","u":"/en/docs/Deep-Learning/实战练习/Undergraduate-Dissertation","h":"#改进使学习到的-prompts-向用户自主设计的-prompts-模板对齐","p":1237},{"i":1272,"t":"安装Visdom","u":"/en/docs/Deep-Learning/实战练习/Visdom Visualization","h":"#安装visdom","p":1270},{"i":1274,"t":"Visdom的使用","u":"/en/docs/Deep-Learning/实战练习/Visdom Visualization","h":"#visdom的使用","p":1270},{"i":1275,"t":"Visdom的启动","u":"/en/docs/Deep-Learning/实战练习/Visdom Visualization","h":"#visdom的启动","p":1270},{"i":1277,"t":"单窗口单曲线的可视化","u":"/en/docs/Deep-Learning/实战练习/Visdom Visualization","h":"#单窗口单曲线的可视化","p":1270},{"i":1279,"t":"单窗口多曲线的可视化","u":"/en/docs/Deep-Learning/实战练习/Visdom Visualization","h":"#单窗口多曲线的可视化","p":1270},{"i":1283,"t":"支持我!","u":"/en/docs/Deep-Learning/intro","h":"#支持我","p":1281},{"i":1287,"t":"支持我!","u":"/en/docs/Others/intro","h":"#支持我","p":1285},{"i":1293,"t":"Python的广播机制","u":"/en/docs/Deep-Learning/Fill-The-Gaps","h":"#python的广播机制","p":1291},{"i":1295,"t":"点积(dot product)与矩阵乘法(matmul product)","u":"/en/docs/Deep-Learning/Fill-The-Gaps","h":"#点积dot-product与矩阵乘法matmul-product","p":1291},{"i":1297,"t":"zip函数与解压操作*","u":"/en/docs/Deep-Learning/Fill-The-Gaps","h":"#zip函数与解压操作","p":1291},{"i":1299,"t":"对batch_first参数的理解","u":"/en/docs/Deep-Learning/Fill-The-Gaps","h":"#对batch_first参数的理解","p":1291},{"i":1302,"t":"一、latte-dock","u":"/en/docs/Others/Linux/客制化/如何让你的KDE看起来更像macOS","h":"#一latte-dock","p":1301},{"i":1304,"t":"二、Kde Plasmoids","u":"/en/docs/Others/Linux/客制化/如何让你的KDE看起来更像macOS","h":"#二kde-plasmoids","p":1301},{"i":1308,"t":"一、编写脚本","u":"/en/docs/Others/Linux/实用工具/终端代理","h":"#一编写脚本","p":1306},{"i":1310,"t":"二、关联终端配置文件","u":"/en/docs/Others/Linux/实用工具/终端代理","h":"#二关联终端配置文件","p":1306},{"i":1312,"t":"三、使用","u":"/en/docs/Others/Linux/实用工具/终端代理","h":"#三使用","p":1306},{"i":1316,"t":"思路","u":"/en/docs/Tui-Mian/机试/大数除法","h":"#思路","p":1314},{"i":1318,"t":"参考代码","u":"/en/docs/Tui-Mian/机试/大数除法","h":"#参考代码","p":1314},{"i":1320,"t":"扩展","u":"/en/docs/Tui-Mian/机试/大数除法","h":"#扩展","p":1314},{"i":1323,"t":"一、发生原因","u":"/en/docs/Others/Linux/问题解决/双系统挂载Windows磁盘为只读文件","h":"#一发生原因","p":1322},{"i":1325,"t":"二、解决方案","u":"/en/docs/Others/Linux/问题解决/双系统挂载Windows磁盘为只读文件","h":"#二解决方案","p":1322},{"i":1328,"t":"面试常考问题","u":"/en/docs/Tui-Mian/数学/概率论","h":"#面试常考问题","p":1327},{"i":1331,"t":"树","u":"/en/docs/Tui-Mian/计算机基础综合/数据结构","h":"#树","p":1330},{"i":1333,"t":"图","u":"/en/docs/Tui-Mian/计算机基础综合/数据结构","h":"#图","p":1330},{"i":1336,"t":"一、线性代数","u":"/en/docs/Tui-Mian/数学/夏令营面试数学部分复习","h":"#一线性代数","p":1335},{"i":1338,"t":"二、概率论","u":"/en/docs/Tui-Mian/数学/夏令营面试数学部分复习","h":"#二概率论","p":1335},{"i":1341,"t":"一、U-2-Net","u":"/en/docs/Tui-Mian/简历/简历面试准备","h":"#一u-2-net","p":1340},{"i":1342,"t":"(一)SOD任务","u":"/en/docs/Tui-Mian/简历/简历面试准备","h":"#一sod任务","p":1340},{"i":1344,"t":"(二)网络结构","u":"/en/docs/Tui-Mian/简历/简历面试准备","h":"#二网络结构","p":1340},{"i":1346,"t":"(三)损失函数","u":"/en/docs/Tui-Mian/简历/简历面试准备","h":"#三损失函数","p":1340},{"i":1348,"t":"(四)深度可分离卷积","u":"/en/docs/Tui-Mian/简历/简历面试准备","h":"#四深度可分离卷积","p":1340},{"i":1350,"t":"二、YOLO","u":"/en/docs/Tui-Mian/简历/简历面试准备","h":"#二yolo","p":1340},{"i":1351,"t":"(一)mAP","u":"/en/docs/Tui-Mian/简历/简历面试准备","h":"#一map","p":1340},{"i":1353,"t":"(二)YOLOv1","u":"/en/docs/Tui-Mian/简历/简历面试准备","h":"#二yolov1","p":1340},{"i":1355,"t":"(二)YOLOv2","u":"/en/docs/Tui-Mian/简历/简历面试准备","h":"#二yolov2","p":1340},{"i":1357,"t":"(三)YOLOv5","u":"/en/docs/Tui-Mian/简历/简历面试准备","h":"#三yolov5","p":1340},{"i":1359,"t":"三、CBAM","u":"/en/docs/Tui-Mian/简历/简历面试准备","h":"#三cbam","p":1340},{"i":1361,"t":"(一)总体结构","u":"/en/docs/Tui-Mian/简历/简历面试准备","h":"#一总体结构","p":1340},{"i":1363,"t":"(二)通道注意力","u":"/en/docs/Tui-Mian/简历/简历面试准备","h":"#二通道注意力","p":1340},{"i":1365,"t":"(三)空间注意力","u":"/en/docs/Tui-Mian/简历/简历面试准备","h":"#三空间注意力","p":1340},{"i":1367,"t":"(四)其他注意事项","u":"/en/docs/Tui-Mian/简历/简历面试准备","h":"#四其他注意事项","p":1340},{"i":1369,"t":"四、Focal Loss","u":"/en/docs/Tui-Mian/简历/简历面试准备","h":"#四focal-loss","p":1340},{"i":1371,"t":"五、SENet","u":"/en/docs/Tui-Mian/简历/简历面试准备","h":"#五senet","p":1340},{"i":1373,"t":"六、自注意力机制","u":"/en/docs/Tui-Mian/简历/简历面试准备","h":"#六自注意力机制","p":1340},{"i":1375,"t":"七、自我介绍","u":"/en/docs/Tui-Mian/简历/简历面试准备","h":"#七自我介绍","p":1340},{"i":1376,"t":"(一)英文自我介绍","u":"/en/docs/Tui-Mian/简历/简历面试准备","h":"#一英文自我介绍","p":1340},{"i":1378,"t":"(二)西电广研院自我介绍","u":"/en/docs/Tui-Mian/简历/简历面试准备","h":"#二西电广研院自我介绍","p":1340},{"i":1380,"t":"(三)电子科技大学自我介绍","u":"/en/docs/Tui-Mian/简历/简历面试准备","h":"#三电子科技大学自我介绍","p":1340},{"i":1384,"t":"支持我!","u":"/en/docs/Tui-Mian/intro","h":"#支持我","p":1382},{"i":1387,"t":"前言","u":"/en/docs/Tui-Mian/Summary","h":"#前言","p":1386},{"i":1389,"t":"扫盲","u":"/en/docs/Tui-Mian/Summary","h":"#扫盲","p":1386},{"i":1391,"t":"个人情况","u":"/en/docs/Tui-Mian/Summary","h":"#个人情况","p":1386},{"i":1393,"t":"前期准备","u":"/en/docs/Tui-Mian/Summary","h":"#前期准备","p":1386},{"i":1394,"t":"夏令营","u":"/en/docs/Tui-Mian/Summary","h":"#夏令营","p":1386},{"i":1395,"t":"预推免","u":"/en/docs/Tui-Mian/Summary","h":"#预推免","p":1386},{"i":1396,"t":"后序","u":"/en/docs/Tui-Mian/Summary","h":"#后序","p":1386},{"i":1399,"t":"一、基础知识","u":"/en/docs/Tui-Mian/数学/线性代数","h":"#一基础知识","p":1397},{"i":1401,"t":"二、面试常考问题","u":"/en/docs/Tui-Mian/数学/线性代数","h":"#二面试常考问题","p":1397}],"index":{"version":"2.3.9","fields":["t"],"fieldVectors":[["t/704",[0,0.499]],["t/706",[0,0.499]],["t/710",[0,0.499]],["t/712",[0,0.499]],["t/716",[0,0.499]],["t/718",[0,0.499]],["t/721",[0,0.499]],["t/723",[1,6.284]],["t/727",[2,5.692]],["t/729",[3,5.692]],["t/731",[4,5.692]],["t/733",[5,6.284]],["t/735",[6,6.284]],["t/737",[7,5.692]],["t/739",[8,6.284]],["t/741",[9,6.284]],["t/743",[10,6.284]],["t/745",[11,6.284]],["t/748",[0,0.499]],["t/749",[0,0.379,12,4.779]],["t/751",[0,0.379,13,4.779]],["t/753",[0,0.379,14,4.779]],["t/755",[0,0.499]],["t/756",[0,0.379,15,4.779]],["t/758",[0,0.379,16,4.779]],["t/760",[0,0.379,17,4.779]],["t/762",[0,0.379,18,4.779]],["t/764",[0,0.499]],["t/765",[0,0.379,19,4.779]],["t/766",[20,4.779,21,4.779]],["t/768",[22,4.779,23,4.779]],["t/769",[24,4.779,25,4.779]],["t/770",[0,0.499]],["t/772",[26,3.063,27,4.779]],["t/773",[28,2.91,29,4.779]],["t/775",[30,3.81,31,4.779]],["t/777",[32,3.81,33,4.329]],["t/778",[33,4.329,34,4.032]],["t/780",[0,0.379,35,4.329]],["t/782",[36,4.329,37,4.779]],["t/784",[0,0.499]],["t/785",[0,0.379,38,4.779]],["t/787",[0,0.379,39,4.779]],["t/789",[0,0.379,40,4.779]],["t/790",[0,0.306,32,3.074,41,3.856]],["t/792",[0,0.379,42,4.779]],["t/794",[0,0.499]],["t/795",[0,0.379,26,3.063]],["t/797",[0,0.379,28,2.91]],["t/799",[0,0.379,30,3.81]],["t/801",[0,0.379,32,3.81]],["t/803",[0,0.379,34,4.032]],["t/807",[0,0.499]],["t/811",[0,0.379,43,4.779]],["t/813",[0,0.499]],["t/814",[44,5.302]],["t/816",[44,4.032,45,4.329]],["t/818",[0,0.499]],["t/820",[0,0.499]],["t/822",[0,0.499]],["t/823",[0,0.499]],["t/825",[0,0.499]],["t/827",[0,0.499]],["t/829",[46,6.284]],["t/830",[0,0.499]],["t/832",[0,0.499]],["t/834",[0,0.499]],["t/836",[45,5.692]],["t/838",[0,0.499]],["t/840",[47,6.284]],["t/842",[2,5.692]],["t/844",[48,6.284]],["t/846",[4,5.692]],["t/848",[3,5.692]],["t/850",[49,5.692]],["t/852",[7,5.692]],["t/854",[50,6.284]],["t/856",[51,6.284]],["t/858",[52,6.284]],["t/860",[53,6.284]],["t/862",[0,0.499]],["t/863",[0,0.499]],["t/865",[0,0.379,54,4.779]],["t/867",[0,0.379,55,4.779]],["t/869",[0,0.499]],["t/870",[0,0.499]],["t/872",[56,4.329,57,4.779]],["t/874",[56,5.278,58,3.856]],["t/878",[26,3.063,44,4.032]],["t/880",[28,2.91,59,4.779]],["t/883",[0,0.499]],["t/884",[26,3.063,60,4.779]],["t/886",[28,2.91,61,4.779]],["t/888",[0,0.379,30,3.81]],["t/890",[0,0.499]],["t/892",[0,0.379,26,3.063]],["t/894",[0,0.379,28,2.91]],["t/898",[0,0.379,28,2.91]],["t/899",[0,0.499]],["t/901",[0,0.499]],["t/903",[0,0.499]],["t/905",[0,0.499]],["t/906",[0,0.379,30,3.81]],["t/907",[0,0.499]],["t/909",[0,0.379,32,3.81]],["t/910",[0,0.499]],["t/912",[0,0.499]],["t/914",[0,0.499]],["t/916",[0,0.379,34,4.032]],["t/917",[0,0.499]],["t/919",[0,0.499]],["t/921",[0,0.499]],["t/923",[0,0.379,35,4.329]],["t/925",[0,0.499]],["t/927",[0,0.499]],["t/929",[0,0.499]],["t/931",[0,0.379,36,4.329]],["t/932",[0,0.499]],["t/934",[0,0.499]],["t/935",[0,0.379,62,4.779]],["t/936",[0,0.499]],["t/938",[0,0.499]],["t/940",[0,0.379,63,4.779]],["t/941",[0,0.499]],["t/943",[0,0.499]],["t/945",[0,0.499]],["t/947",[0,0.499]],["t/951",[0,0.499]],["t/954",[0,0.499]],["t/956",[64,6.284]],["t/958",[65,6.284]],["t/960",[0,0.499]],["t/962",[0,0.499]],["t/964",[0,0.499]],["t/966",[66,6.284]],["t/968",[0,0.499]],["t/970",[0,0.499]],["t/972",[67,6.284]],["t/974",[68,3.231,69,3.231,70,2.576,71,2.726]],["t/976",[72,6.284]],["t/978",[71,4.032,73,4.779]],["t/982",[0,0.499]],["t/984",[74,4.778]],["t/985",[0,0.499]],["t/987",[74,3.634,75,4.329]],["t/989",[0,0.499]],["t/991",[76,5.692]],["t/993",[77,3.81,78,4.329]],["t/995",[77,3.074,79,3.492,80,3.492]],["t/996",[81,5.302]],["t/997",[0,0.499]],["t/999",[82,3.81,83,4.329]],["t/1001",[82,1.946,84,2.211,85,2.059,86,2.059,87,1.61,88,1.716]],["t/1005",[0,0.499]],["t/1007",[0,0.499]],["t/1009",[0,0.499]],["t/1013",[0,0.499]],["t/1014",[0,0.462,89,3.492]],["t/1016",[0,0.499]],["t/1018",[0,0.499]],["t/1020",[0,0.499]],["t/1021",[0,0.499]],["t/1022",[0,0.379,90,3.152]],["t/1024",[0,0.358,90,1.834,91,2.519,92,2.519]],["t/1026",[0,0.379,93,4.329]],["t/1028",[0,0.306,26,2.472,94,3.074]],["t/1030",[0,0.306,28,2.347,94,3.074]],["t/1032",[0,0.499]],["t/1034",[0,0.499]],["t/1035",[0,0.499]],["t/1037",[0,0.499]],["t/1038",[0,0.462,90,2.543]],["t/1040",[0,0.379,95,4.329]],["t/1044",[96,6.284]],["t/1045",[0,0.499]],["t/1047",[0,0.499]],["t/1049",[87,3.152,88,3.36]],["t/1050",[87,3.152,88,3.36]],["t/1052",[87,3.152,88,3.36]],["t/1054",[87,3.152,88,3.36]],["t/1056",[85,2.726,86,2.726,87,2.131,88,2.272]],["t/1058",[87,3.152,97,4.779]],["t/1062",[0,0.499]],["t/1063",[0,0.499]],["t/1065",[0,0.499]],["t/1067",[0,0.499]],["t/1069",[0,0.499]],["t/1071",[70,5.011]],["t/1073",[98,6.284]],["t/1075",[0,0.499]],["t/1079",[0,0.499]],["t/1081",[74,2.457,99,3.231,100,3.231,101,2.927]],["t/1083",[0,0.499]],["t/1085",[87,2.543,102,3.856,103,3.856]],["t/1087",[104,4.779,105,4.779]],["t/1089",[106,4.779,107,4.329]],["t/1091",[70,2.217,81,2.346,101,2.519,108,2.781,109,2.781]],["t/1095",[0,0.499]],["t/1097",[110,6.284]],["t/1099",[111,6.284]],["t/1103",[0,0.499]],["t/1105",[26,2.472,112,3.856,113,3.492]],["t/1107",[28,2.347,113,3.492,114,3.856]],["t/1110",[0,0.499]],["t/1112",[0,0.499]],["t/1114",[115,6.284]],["t/1117",[0,0.499]],["t/1118",[0,0.256,26,2.071,116,3.231,117,2.726]],["t/1120",[28,1.693,118,2.781,119,2.781,120,2.781,121,2.781]],["t/1122",[0,0.499]],["t/1123",[0,0.221,26,1.783,122,2.781,123,2.781,124,2.781]],["t/1125",[0,0.221,28,1.693,125,2.346,126,2.781,127,2.519]],["t/1128",[125,2.726,128,2.927,129,2.927,130,2.927]],["t/1130",[107,2.519,125,2.346,128,2.519,129,2.519,130,2.519]],["t/1132",[131,6.284]],["t/1135",[0,0.499]],["t/1137",[0,0.499]],["t/1139",[0,0.499]],["t/1142",[132,6.284]],["t/1144",[0,0.499]],["t/1147",[0,0.499]],["t/1149",[0,0.499]],["t/1151",[0,0.499]],["t/1154",[0,0.499]],["t/1156",[0,0.499]],["t/1158",[0,0.499]],["t/1161",[0,0.499]],["t/1163",[0,0.499]],["t/1165",[0,0.499]],["t/1168",[117,4.032,133,4.329]],["t/1170",[117,3.253,133,3.492,134,3.856]],["t/1172",[135,6.284]],["t/1174",[0,0.499]],["t/1178",[0,0.499]],["t/1180",[0,0.499]],["t/1184",[0,0.499]],["t/1186",[0,0.499]],["t/1187",[70,3.074,71,3.253,136,3.856]],["t/1189",[90,3.152,137,4.329]],["t/1191",[0,0.499]],["t/1192",[0,0.499]],["t/1194",[90,2.131,137,2.927,138,3.231,139,3.231]],["t/1197",[140,4.779,141,4.779]],["t/1198",[0,0.499]],["t/1200",[142,6.284]],["t/1202",[0,0.499]],["t/1204",[0,0.499]],["t/1208",[143,6.284]],["t/1210",[144,6.284]],["t/1212",[145,6.284]],["t/1216",[0,0.499]],["t/1218",[74,4.778]],["t/1219",[0,0.499]],["t/1221",[74,3.634,75,4.329]],["t/1223",[0,0.499]],["t/1225",[76,5.692]],["t/1227",[77,3.81,78,4.329]],["t/1229",[77,3.074,79,3.492,80,3.492]],["t/1230",[81,5.302]],["t/1231",[0,0.499]],["t/1233",[82,3.81,83,4.329]],["t/1235",[82,1.946,84,2.211,85,2.059,86,2.059,87,1.61,88,1.716]],["t/1239",[0,0.499]],["t/1240",[0,0.462,89,3.492]],["t/1242",[0,0.499]],["t/1244",[0,0.499]],["t/1246",[0,0.499]],["t/1247",[0,0.499]],["t/1248",[0,0.379,90,3.152]],["t/1250",[0,0.358,90,1.834,91,2.519,92,2.519]],["t/1252",[0,0.379,93,4.329]],["t/1254",[0,0.306,26,2.472,94,3.074]],["t/1256",[0,0.306,28,2.347,94,3.074]],["t/1258",[0,0.499]],["t/1260",[0,0.499]],["t/1261",[0,0.499]],["t/1263",[0,0.499]],["t/1264",[0,0.379,95,4.329]],["t/1266",[0,0.462,90,2.543]],["t/1268",[0,0.451,90,2.974]],["t/1272",[146,5.302]],["t/1274",[146,5.302]],["t/1275",[146,5.302]],["t/1277",[0,0.499]],["t/1279",[0,0.499]],["t/1283",[0,0.499]],["t/1287",[0,0.499]],["t/1293",[147,6.284]],["t/1295",[148,3.856,149,3.856,150,3.856]],["t/1297",[151,6.284]],["t/1299",[152,6.284]],["t/1302",[153,4.779,154,4.779]],["t/1304",[155,4.779,156,4.779]],["t/1308",[0,0.499]],["t/1310",[0,0.499]],["t/1312",[0,0.499]],["t/1316",[0,0.499]],["t/1318",[0,0.499]],["t/1320",[0,0.499]],["t/1323",[0,0.499]],["t/1325",[0,0.499]],["t/1328",[0,0.499]],["t/1331",[0,0.499]],["t/1333",[0,0.499]],["t/1336",[0,0.499]],["t/1338",[0,0.499]],["t/1341",[28,2.347,157,3.856,158,3.856]],["t/1342",[159,6.284]],["t/1344",[0,0.499]],["t/1346",[0,0.499]],["t/1348",[0,0.499]],["t/1350",[160,6.284]],["t/1351",[49,5.692]],["t/1353",[161,6.284]],["t/1355",[162,6.284]],["t/1357",[163,6.284]],["t/1359",[164,6.284]],["t/1361",[0,0.499]],["t/1363",[0,0.499]],["t/1365",[0,0.499]],["t/1367",[0,0.499]],["t/1369",[127,4.329,165,4.779]],["t/1371",[166,6.284]],["t/1373",[0,0.499]],["t/1375",[0,0.499]],["t/1376",[0,0.499]],["t/1378",[0,0.499]],["t/1380",[0,0.499]],["t/1384",[0,0.499]],["t/1387",[0,0.499]],["t/1389",[0,0.499]],["t/1391",[0,0.499]],["t/1393",[0,0.499]],["t/1394",[0,0.499]],["t/1395",[0,0.499]],["t/1396",[0,0.499]],["t/1399",[0,0.499]],["t/1401",[0,0.499]]],"invertedIndex":[["",{"_index":0,"t":{"704":{"position":[[0,4]]},"706":{"position":[[0,2]]},"710":{"position":[[0,4]]},"712":{"position":[[0,2]]},"716":{"position":[[0,4]]},"718":{"position":[[0,2]]},"721":{"position":[[0,4]]},"748":{"position":[[0,6]]},"749":{"position":[[4,9]]},"751":{"position":[[4,5]]},"753":{"position":[[4,4]]},"755":{"position":[[0,9]]},"756":{"position":[[4,2]]},"758":{"position":[[4,3]]},"760":{"position":[[4,6]]},"762":{"position":[[4,7]]},"764":{"position":[[0,8]]},"765":{"position":[[4,10]]},"770":{"position":[[0,14]]},"780":{"position":[[3,5]]},"784":{"position":[[0,14]]},"785":{"position":[[4,2]]},"787":{"position":[[4,2]]},"789":{"position":[[4,4]]},"790":{"position":[[4,2]]},"792":{"position":[[4,4]]},"794":{"position":[[0,4]]},"795":{"position":[[2,9]]},"797":{"position":[[2,9]]},"799":{"position":[[2,4]]},"801":{"position":[[2,4]]},"803":{"position":[[2,3]]},"807":{"position":[[0,4]]},"811":{"position":[[7,3]]},"813":{"position":[[0,3]]},"818":{"position":[[0,3]]},"820":{"position":[[0,5]]},"822":{"position":[[0,3]]},"823":{"position":[[0,2]]},"825":{"position":[[0,3]]},"827":{"position":[[0,5]]},"830":{"position":[[0,2]]},"832":{"position":[[0,14]]},"834":{"position":[[0,14]]},"838":{"position":[[0,2]]},"862":{"position":[[0,3]]},"863":{"position":[[0,10]]},"865":{"position":[[0,5]]},"867":{"position":[[15,3]]},"869":{"position":[[0,3]]},"870":{"position":[[0,3]]},"883":{"position":[[0,10]]},"888":{"position":[[3,7]]},"890":{"position":[[0,7]]},"892":{"position":[[3,2]]},"894":{"position":[[3,2]]},"898":{"position":[[4,8]]},"899":{"position":[[0,8]]},"901":{"position":[[0,4]]},"903":{"position":[[0,6]]},"905":{"position":[[0,5]]},"906":{"position":[[4,4]]},"907":{"position":[[0,5]]},"909":{"position":[[4,9]]},"910":{"position":[[0,3]]},"912":{"position":[[0,4]]},"914":{"position":[[0,5]]},"916":{"position":[[4,6]]},"917":{"position":[[0,6]]},"919":{"position":[[0,7]]},"921":{"position":[[0,6]]},"923":{"position":[[4,6]]},"925":{"position":[[0,4]]},"927":{"position":[[0,4]]},"929":{"position":[[0,7]]},"931":{"position":[[4,6]]},"932":{"position":[[0,8]]},"934":{"position":[[0,8]]},"935":{"position":[[4,4]]},"936":{"position":[[0,6]]},"938":{"position":[[0,6]]},"940":{"position":[[5,4]]},"941":{"position":[[0,5]]},"943":{"position":[[0,9]]},"945":{"position":[[0,6]]},"947":{"position":[[0,9]]},"951":{"position":[[0,4]]},"954":{"position":[[0,11]]},"960":{"position":[[0,12]]},"962":{"position":[[0,9]]},"964":{"position":[[0,6]]},"968":{"position":[[0,6]]},"970":{"position":[[0,10]]},"982":{"position":[[0,4]]},"985":{"position":[[0,4]]},"989":{"position":[[0,4]]},"997":{"position":[[0,4]]},"1005":{"position":[[0,4]]},"1007":{"position":[[0,4]]},"1009":{"position":[[0,4]]},"1013":{"position":[[0,2]]},"1014":{"position":[[0,2],[12,4]]},"1016":{"position":[[0,4]]},"1018":{"position":[[0,8]]},"1020":{"position":[[0,2]]},"1021":{"position":[[0,4]]},"1022":{"position":[[8,4]]},"1024":{"position":[[8,1],[19,1]]},"1026":{"position":[[22,5]]},"1028":{"position":[[0,2]]},"1030":{"position":[[0,2]]},"1032":{"position":[[0,6]]},"1034":{"position":[[0,4]]},"1035":{"position":[[0,9]]},"1037":{"position":[[0,7]]},"1038":{"position":[[0,6],[15,7]]},"1040":{"position":[[7,5]]},"1045":{"position":[[0,9]]},"1047":{"position":[[0,11]]},"1062":{"position":[[0,2]]},"1063":{"position":[[0,9]]},"1065":{"position":[[0,8]]},"1067":{"position":[[0,4]]},"1069":{"position":[[0,7]]},"1075":{"position":[[0,4]]},"1079":{"position":[[0,2]]},"1083":{"position":[[0,2]]},"1095":{"position":[[0,8]]},"1103":{"position":[[0,4]]},"1110":{"position":[[0,2]]},"1112":{"position":[[0,7]]},"1117":{"position":[[0,6]]},"1118":{"position":[[13,1]]},"1122":{"position":[[0,6]]},"1123":{"position":[[22,4]]},"1125":{"position":[[22,5]]},"1135":{"position":[[0,8]]},"1137":{"position":[[0,6]]},"1139":{"position":[[0,4]]},"1144":{"position":[[0,7]]},"1147":{"position":[[0,2]]},"1149":{"position":[[0,4]]},"1151":{"position":[[0,2]]},"1154":{"position":[[0,12]]},"1156":{"position":[[0,10]]},"1158":{"position":[[0,4]]},"1161":{"position":[[0,15]]},"1163":{"position":[[0,8]]},"1165":{"position":[[0,7]]},"1174":{"position":[[0,31]]},"1178":{"position":[[0,7]]},"1180":{"position":[[0,8]]},"1184":{"position":[[0,2]]},"1186":{"position":[[0,4]]},"1191":{"position":[[0,4]]},"1192":{"position":[[0,2]]},"1198":{"position":[[0,9]]},"1202":{"position":[[0,11]]},"1204":{"position":[[0,7]]},"1216":{"position":[[0,4]]},"1219":{"position":[[0,4]]},"1223":{"position":[[0,4]]},"1231":{"position":[[0,4]]},"1239":{"position":[[0,2]]},"1240":{"position":[[0,2],[12,4]]},"1242":{"position":[[0,4]]},"1244":{"position":[[0,8]]},"1246":{"position":[[0,2]]},"1247":{"position":[[0,4]]},"1248":{"position":[[8,4]]},"1250":{"position":[[8,1],[19,1]]},"1252":{"position":[[22,5]]},"1254":{"position":[[0,2]]},"1256":{"position":[[0,2]]},"1258":{"position":[[0,6]]},"1260":{"position":[[0,4]]},"1261":{"position":[[0,9]]},"1263":{"position":[[0,7]]},"1264":{"position":[[10,5]]},"1266":{"position":[[0,9],[18,7]]},"1268":{"position":[[0,8],[17,8],[34,4]]},"1277":{"position":[[0,10]]},"1279":{"position":[[0,10]]},"1283":{"position":[[0,4]]},"1287":{"position":[[0,4]]},"1308":{"position":[[0,6]]},"1310":{"position":[[0,10]]},"1312":{"position":[[0,4]]},"1316":{"position":[[0,2]]},"1318":{"position":[[0,4]]},"1320":{"position":[[0,2]]},"1323":{"position":[[0,6]]},"1325":{"position":[[0,6]]},"1328":{"position":[[0,6]]},"1331":{"position":[[0,1]]},"1333":{"position":[[0,1]]},"1336":{"position":[[0,6]]},"1338":{"position":[[0,5]]},"1344":{"position":[[0,7]]},"1346":{"position":[[0,7]]},"1348":{"position":[[0,10]]},"1361":{"position":[[0,7]]},"1363":{"position":[[0,8]]},"1365":{"position":[[0,8]]},"1367":{"position":[[0,9]]},"1373":{"position":[[0,8]]},"1375":{"position":[[0,6]]},"1376":{"position":[[0,9]]},"1378":{"position":[[0,12]]},"1380":{"position":[[0,13]]},"1384":{"position":[[0,4]]},"1387":{"position":[[0,2]]},"1389":{"position":[[0,2]]},"1391":{"position":[[0,4]]},"1393":{"position":[[0,4]]},"1394":{"position":[[0,3]]},"1395":{"position":[[0,3]]},"1396":{"position":[[0,2]]},"1399":{"position":[[0,6]]},"1401":{"position":[[0,8]]}}}],["1",{"_index":26,"t":{"772":{"position":[[0,2]]},"795":{"position":[[0,1]]},"878":{"position":[[0,2]]},"884":{"position":[[0,2]]},"892":{"position":[[0,2]]},"1028":{"position":[[9,1]]},"1105":{"position":[[0,8]]},"1118":{"position":[[0,2]]},"1123":{"position":[[0,2]]},"1254":{"position":[[9,1]]}}}],["1.1",{"_index":12,"t":{"749":{"position":[[0,3]]}}}],["1.2",{"_index":13,"t":{"751":{"position":[[0,3]]}}}],["1.3",{"_index":14,"t":{"753":{"position":[[0,3]]}}}],["11",{"_index":63,"t":{"940":{"position":[[0,4]]}}}],["1x1",{"_index":132,"t":{"1142":{"position":[[0,7]]}}}],["2",{"_index":28,"t":{"773":{"position":[[0,2]]},"797":{"position":[[0,1]]},"880":{"position":[[0,2]]},"886":{"position":[[0,2]]},"894":{"position":[[0,2]]},"898":{"position":[[0,3]]},"1030":{"position":[[9,1]]},"1107":{"position":[[0,7]]},"1120":{"position":[[0,2]]},"1125":{"position":[[0,2]]},"1256":{"position":[[9,1]]},"1341":{"position":[[4,1]]}}}],["2.1",{"_index":15,"t":{"756":{"position":[[0,3]]}}}],["2.2",{"_index":16,"t":{"758":{"position":[[0,3]]}}}],["2.3",{"_index":17,"t":{"760":{"position":[[0,3]]}}}],["2.4",{"_index":18,"t":{"762":{"position":[[0,3]]}}}],["2019",{"_index":54,"t":{"865":{"position":[[6,10]]}}}],["3",{"_index":30,"t":{"775":{"position":[[0,2]]},"799":{"position":[[0,1]]},"888":{"position":[[0,2]]},"906":{"position":[[0,3]]}}}],["3.1",{"_index":19,"t":{"765":{"position":[[0,3]]}}}],["3.2",{"_index":20,"t":{"766":{"position":[[0,3]]}}}],["3.3",{"_index":22,"t":{"768":{"position":[[0,3]]}}}],["3.4",{"_index":24,"t":{"769":{"position":[[0,3]]}}}],["4",{"_index":32,"t":{"777":{"position":[[0,2]]},"790":{"position":[[7,10]]},"801":{"position":[[0,1]]},"909":{"position":[[0,3]]}}}],["5",{"_index":34,"t":{"778":{"position":[[0,2]]},"803":{"position":[[0,1]]},"916":{"position":[[0,3]]}}}],["5.1",{"_index":38,"t":{"785":{"position":[[0,3]]}}}],["5.2",{"_index":39,"t":{"787":{"position":[[0,3]]}}}],["5.3",{"_index":40,"t":{"789":{"position":[[0,3]]}}}],["5.4",{"_index":41,"t":{"790":{"position":[[0,3]]}}}],["5.5",{"_index":42,"t":{"792":{"position":[[0,3]]}}}],["6",{"_index":35,"t":{"780":{"position":[[0,2]]},"923":{"position":[[0,3]]}}}],["7",{"_index":36,"t":{"782":{"position":[[0,2]]},"931":{"position":[[0,3]]}}}],["8",{"_index":62,"t":{"935":{"position":[[0,3]]}}}],["adapt",{"_index":136,"t":{"1187":{"position":[[17,8]]}}}],["algorithm",{"_index":47,"t":{"840":{"position":[[0,9]]}}}],["anaconda",{"_index":89,"t":{"1014":{"position":[[3,8]]},"1240":{"position":[[3,8]]}}}],["ar",{"_index":64,"t":{"956":{"position":[[0,9]]}}}],["attent",{"_index":88,"t":{"1001":{"position":[[39,9]]},"1049":{"position":[[5,12]]},"1050":{"position":[[8,9]]},"1052":{"position":[[5,14]]},"1054":{"position":[[5,12]]},"1056":{"position":[[16,9]]},"1235":{"position":[[39,9]]}}}],["attention与cnn",{"_index":97,"t":{"1058":{"position":[[5,16]]}}}],["autoregress",{"_index":77,"t":{"993":{"position":[[0,14]]},"995":{"position":[[4,14]]},"1227":{"position":[[0,14]]},"1229":{"position":[[4,14]]}}}],["base",{"_index":69,"t":{"974":{"position":[[14,5]]}}}],["batch_first",{"_index":152,"t":{"1299":{"position":[[0,17]]}}}],["benchmark",{"_index":66,"t":{"966":{"position":[[0,9]]}}}],["bert",{"_index":106,"t":{"1089":{"position":[[9,4]]}}}],["bert(bidirect",{"_index":99,"t":{"1081":{"position":[[0,18]]}}}],["biset",{"_index":11,"t":{"745":{"position":[[0,5]]}}}],["bitset",{"_index":53,"t":{"860":{"position":[[0,6]]}}}],["boch",{"_index":61,"t":{"886":{"position":[[3,6]]}}}],["c",{"_index":44,"t":{"814":{"position":[[0,4]]},"816":{"position":[[0,3]]},"878":{"position":[[3,7]]}}}],["c++new",{"_index":46,"t":{"829":{"position":[[0,9]]}}}],["cbam",{"_index":164,"t":{"1359":{"position":[[0,6]]}}}],["cnn",{"_index":96,"t":{"1044":{"position":[[0,9]]}}}],["compute_text_featur",{"_index":93,"t":{"1026":{"position":[[0,21]]},"1252":{"position":[[0,21]]}}}],["convolut",{"_index":113,"t":{"1105":{"position":[[19,11]]},"1107":{"position":[[18,11]]}}}],["cross",{"_index":125,"t":{"1125":{"position":[[3,5]]},"1128":{"position":[[15,5]]},"1130":{"position":[[16,5]]}}}],["dataset",{"_index":144,"t":{"1210":{"position":[[0,7]]}}}],["decod",{"_index":76,"t":{"991":{"position":[[0,7]]},"1225":{"position":[[0,7]]}}}],["decoder(at",{"_index":78,"t":{"993":{"position":[[15,11]]},"1227":{"position":[[15,11]]}}}],["decoder(nat",{"_index":80,"t":{"995":{"position":[[19,12]]},"1229":{"position":[[19,12]]}}}],["depthwis",{"_index":112,"t":{"1105":{"position":[[9,9]]}}}],["dequ",{"_index":8,"t":{"739":{"position":[[0,5]]}}}],["diffus",{"_index":73,"t":{"978":{"position":[[0,14]]}}}],["disclaim",{"_index":1,"t":{"723":{"position":[[0,10]]}}}],["discrimin",{"_index":98,"t":{"1073":{"position":[[0,18]]}}}],["dock",{"_index":154,"t":{"1302":{"position":[[8,4]]}}}],["dot",{"_index":148,"t":{"1295":{"position":[[0,6]]}}}],["embed",{"_index":92,"t":{"1024":{"position":[[21,9]]},"1250":{"position":[[21,9]]}}}],["encod",{"_index":74,"t":{"984":{"position":[[0,7]]},"987":{"position":[[16,9]]},"1081":{"position":[[19,7]]},"1218":{"position":[[0,7]]},"1221":{"position":[[16,9]]}}}],["entropi",{"_index":126,"t":{"1125":{"position":[[9,7]]}}}],["error",{"_index":124,"t":{"1123":{"position":[[16,5]]}}}],["fa",{"_index":21,"t":{"766":{"position":[[4,9]]}}}],["fine",{"_index":104,"t":{"1087":{"position":[[0,4]]}}}],["first",{"_index":27,"t":{"772":{"position":[[3,9]]}}}],["flow",{"_index":68,"t":{"974":{"position":[[0,13]]}}}],["focal",{"_index":165,"t":{"1369":{"position":[[0,7]]}}}],["fold",{"_index":129,"t":{"1128":{"position":[[10,4]]},"1130":{"position":[[11,4]]}}}],["follow",{"_index":29,"t":{"773":{"position":[[3,10]]}}}],["forc",{"_index":83,"t":{"999":{"position":[[8,7]]},"1233":{"position":[[8,7]]}}}],["forcing与mask",{"_index":84,"t":{"1001":{"position":[[8,14]]},"1235":{"position":[[8,14]]}}}],["gan",{"_index":72,"t":{"976":{"position":[[0,11]]}}}],["geeko",{"_index":60,"t":{"884":{"position":[[3,7]]}}}],["gener",{"_index":70,"t":{"974":{"position":[[20,10]]},"1071":{"position":[[0,14]]},"1091":{"position":[[5,10]]},"1187":{"position":[[0,10]]}}}],["gpt",{"_index":108,"t":{"1091":{"position":[[0,4]]}}}],["head",{"_index":86,"t":{"1001":{"position":[[29,4]]},"1056":{"position":[[6,4]]},"1235":{"position":[[29,4]]}}}],["imag",{"_index":138,"t":{"1194":{"position":[[0,5]]}}}],["index",{"_index":58,"t":{"874":{"position":[[15,12]]}}}],["index,若数据不在1~n",{"_index":57,"t":{"872":{"position":[[11,22]]}}}],["k",{"_index":128,"t":{"1128":{"position":[[8,1]]},"1130":{"position":[[9,1]]}}}],["kde",{"_index":155,"t":{"1304":{"position":[[0,5]]}}}],["kl",{"_index":142,"t":{"1200":{"position":[[0,14]]}}}],["l1",{"_index":110,"t":{"1097":{"position":[[0,7]]}}}],["l2",{"_index":111,"t":{"1099":{"position":[[0,12]]}}}],["latt",{"_index":153,"t":{"1302":{"position":[[0,7]]}}}],["learn",{"_index":137,"t":{"1189":{"position":[[7,8]]},"1194":{"position":[[22,8]]}}}],["lenet",{"_index":115,"t":{"1114":{"position":[[0,8]]}}}],["linear",{"_index":119,"t":{"1120":{"position":[[20,6]]}}}],["linux的编译系统对c",{"_index":59,"t":{"880":{"position":[[3,22]]}}}],["list",{"_index":48,"t":{"844":{"position":[[0,4]]}}}],["ll(1",{"_index":33,"t":{"777":{"position":[[3,10]]},"778":{"position":[[3,10]]}}}],["ll(1)文法到ll(1",{"_index":37,"t":{"782":{"position":[[3,21]]}}}],["logist",{"_index":117,"t":{"1118":{"position":[[15,10]]},"1168":{"position":[[0,13]]},"1170":{"position":[[0,15]]}}}],["loss",{"_index":127,"t":{"1125":{"position":[[17,4]]},"1369":{"position":[[8,4]]}}}],["map",{"_index":49,"t":{"850":{"position":[[0,3]]},"1351":{"position":[[0,6]]}}}],["map/multimap",{"_index":10,"t":{"743":{"position":[[0,12]]}}}],["mapper",{"_index":95,"t":{"1040":{"position":[[0,6]]},"1264":{"position":[[0,9]]}}}],["mathemat",{"_index":140,"t":{"1197":{"position":[[0,17]]}}}],["mean",{"_index":122,"t":{"1123":{"position":[[3,4]]}}}],["model",{"_index":71,"t":{"974":{"position":[[31,6]]},"978":{"position":[[15,6]]},"1187":{"position":[[11,5]]}}}],["multi",{"_index":85,"t":{"1001":{"position":[[23,5]]},"1056":{"position":[[0,5]]},"1235":{"position":[[23,5]]}}}],["multiset",{"_index":52,"t":{"858":{"position":[[0,8]]}}}],["nar",{"_index":65,"t":{"958":{"position":[[0,11]]}}}],["net",{"_index":158,"t":{"1341":{"position":[[6,3]]}}}],["non",{"_index":79,"t":{"995":{"position":[[0,3]]},"1229":{"position":[[0,3]]}}}],["overview",{"_index":143,"t":{"1208":{"position":[[0,8]]}}}],["pair",{"_index":3,"t":{"729":{"position":[[0,4]]},"848":{"position":[[0,4]]}}}],["plasmoid",{"_index":156,"t":{"1304":{"position":[[6,9]]}}}],["pointwis",{"_index":114,"t":{"1107":{"position":[[8,9]]}}}],["posit",{"_index":75,"t":{"987":{"position":[[0,15]]},"1221":{"position":[[0,15]]}}}],["pre",{"_index":109,"t":{"1091":{"position":[[16,3]]}}}],["preliminari",{"_index":141,"t":{"1197":{"position":[[18,12]]}}}],["pretrain",{"_index":103,"t":{"1085":{"position":[[16,11]]}}}],["priority_queu",{"_index":6,"t":{"735":{"position":[[0,14]]}}}],["product",{"_index":150,"t":{"1295":{"position":[[28,8]]}}}],["product)与矩阵乘法(matmul",{"_index":149,"t":{"1295":{"position":[[7,20]]}}}],["prompt",{"_index":90,"t":{"1022":{"position":[[0,7]]},"1024":{"position":[[0,7]]},"1038":{"position":[[7,7]]},"1189":{"position":[[0,6]]},"1194":{"position":[[15,6]]},"1248":{"position":[[0,7]]},"1250":{"position":[[0,7]]},"1266":{"position":[[10,7]]},"1268":{"position":[[9,7],[26,7]]}}}],["python",{"_index":147,"t":{"1293":{"position":[[0,11]]}}}],["queri",{"_index":5,"t":{"733":{"position":[[0,5]]}}}],["queue",{"_index":50,"t":{"854":{"position":[[0,5]]}}}],["rectifi",{"_index":118,"t":{"1120":{"position":[[3,16]]}}}],["regress",{"_index":133,"t":{"1168":{"position":[[14,10]]},"1170":{"position":[[40,11]]}}}],["regression)和线性回归(linear",{"_index":134,"t":{"1170":{"position":[[16,23]]}}}],["regression)还是分类任务(classif",{"_index":135,"t":{"1172":{"position":[[0,48]]}}}],["relat",{"_index":145,"t":{"1212":{"position":[[0,7]]}}}],["relu",{"_index":121,"t":{"1120":{"position":[[33,5]]}}}],["represent",{"_index":100,"t":{"1081":{"position":[[27,14]]}}}],["re与有穷自动机fa",{"_index":23,"t":{"768":{"position":[[4,18]]}}}],["rm与有穷自动机fa",{"_index":25,"t":{"769":{"position":[[4,19]]}}}],["select",{"_index":31,"t":{"775":{"position":[[3,10]]}}}],["self",{"_index":87,"t":{"1001":{"position":[[34,4]]},"1049":{"position":[[0,4]]},"1050":{"position":[[0,7]]},"1052":{"position":[[0,4]]},"1054":{"position":[[0,4]]},"1056":{"position":[[11,4]]},"1058":{"position":[[0,4]]},"1085":{"position":[[0,4]]},"1235":{"position":[[34,4]]}}}],["senet",{"_index":166,"t":{"1371":{"position":[[0,7]]}}}],["set",{"_index":51,"t":{"856":{"position":[[0,3]]}}}],["set/multiset",{"_index":9,"t":{"741":{"position":[[0,12]]}}}],["sigmoid",{"_index":116,"t":{"1118":{"position":[[3,9]]}}}],["sod",{"_index":159,"t":{"1342":{"position":[[0,8]]}}}],["specif",{"_index":139,"t":{"1194":{"position":[[6,8]]}}}],["squar",{"_index":123,"t":{"1123":{"position":[[8,7]]}}}],["stack",{"_index":7,"t":{"737":{"position":[[0,5]]},"852":{"position":[[0,5]]}}}],["stage",{"_index":94,"t":{"1028":{"position":[[3,5]]},"1030":{"position":[[3,5]]},"1254":{"position":[[3,5]]},"1256":{"position":[[3,5]]}}}],["stl",{"_index":45,"t":{"816":{"position":[[4,3]]},"836":{"position":[[0,5]]}}}],["string",{"_index":4,"t":{"731":{"position":[[0,6]]},"846":{"position":[[0,6]]}}}],["summari",{"_index":131,"t":{"1132":{"position":[[0,7]]}}}],["supervis",{"_index":102,"t":{"1085":{"position":[[5,10]]}}}],["teacher",{"_index":82,"t":{"999":{"position":[[0,7]]},"1001":{"position":[[0,7]]},"1233":{"position":[[0,7]]},"1235":{"position":[[0,7]]}}}],["token",{"_index":91,"t":{"1024":{"position":[[10,8]]},"1250":{"position":[[10,8]]}}}],["train",{"_index":81,"t":{"996":{"position":[[0,12]]},"1091":{"position":[[20,7]]},"1230":{"position":[[0,12]]}}}],["transform",{"_index":101,"t":{"1081":{"position":[[47,13]]},"1091":{"position":[[28,11]]}}}],["tune",{"_index":105,"t":{"1087":{"position":[[5,6]]}}}],["u",{"_index":157,"t":{"1341":{"position":[[0,3]]}}}],["unit",{"_index":120,"t":{"1120":{"position":[[27,5]]}}}],["u到v",{"_index":55,"t":{"867":{"position":[[0,14]]}}}],["vae",{"_index":67,"t":{"972":{"position":[[0,11]]}}}],["val",{"_index":56,"t":{"872":{"position":[[0,7]]},"874":{"position":[[0,7],[28,4]]}}}],["valid",{"_index":130,"t":{"1128":{"position":[[21,11]]},"1130":{"position":[[22,10]]}}}],["vector",{"_index":2,"t":{"727":{"position":[[0,6]]},"842":{"position":[[0,6]]}}}],["visdom",{"_index":146,"t":{"1272":{"position":[[0,8]]},"1274":{"position":[[0,9]]},"1275":{"position":[[0,9]]}}}],["vs2018",{"_index":43,"t":{"811":{"position":[[0,6]]}}}],["work",{"_index":107,"t":{"1089":{"position":[[14,5]]},"1130":{"position":[[33,5]]}}}],["yolo",{"_index":160,"t":{"1350":{"position":[[0,6]]}}}],["yolov1",{"_index":161,"t":{"1353":{"position":[[0,9]]}}}],["yolov2",{"_index":162,"t":{"1355":{"position":[[0,9]]}}}],["yolov5",{"_index":163,"t":{"1357":{"position":[[0,9]]}}}],["zip",{"_index":151,"t":{"1297":{"position":[[0,11]]}}}]],"pipeline":["stemmer"]}},{"documents":[{"i":703,"t":"tip 输入一个数,比如201,让数字随意组合,是否能组合出30的倍数,如果能够组合成30的倍数,就输出最大的倍数,不能就输出-1 例如输入201可以随意组合成 201,210,012,021,102,120等数字 其中120,210都是30的倍数,由于要找最大的,所以答案是210 输入样例:201 输出样例:210","s":"排列组合(求30的倍数)","u":"/en/docs/Algorithms/题解/排列组合(求30的倍数)","h":"","p":702},{"i":705,"t":"#include using namespace std; int main() { string s; cin >> s; int maxx = 0, flag = 0; sort(s.begin(), s.end()); do { int now = 0; for (int i = 0; i < s.size(); i++) { now = now * 10 + s[i] - '0'; } if (now % 30 == 0) { flag = 1; maxx = max(maxx, now); } } while (next_permutation(s.begin(), s.end())); if (flag == 1) { cout << maxx << endl; return 0; } else { cout << -1 << endl; } }","s":"参考代码","u":"/en/docs/Algorithms/题解/排列组合(求30的倍数)","h":"#参考代码","p":702},{"i":707,"t":"使用C++ STL提供的排列组合模版 首先将代排列组合的字符串或数组进行排序 sort(list.begin(), list.end()); 使用排列组合模版 do { something(); } while (next_permutation(list.begin(), list.end())); 此时,在每一个do循环中,list按从小到大的顺序进行排列组合遍历","s":"题解","u":"/en/docs/Algorithms/题解/排列组合(求30的倍数)","h":"#题解","p":702},{"i":709,"t":"tip 设N是一个四位数,它的9倍恰好是其反序数(例如:1234的反序数是4321),求N的值","s":"反序输出","u":"/en/docs/Algorithms/题解/反序输出","h":"","p":708},{"i":711,"t":"#include using namespace std; int main() { for (int i = 1000; i <= 9999; i++) { int x = i * 9, y = 0; while (x > 0) { y = y * 10 + x % 10; x /= 10; } if (i == y) { cout << i << endl; } } return 0; }","s":"参考代码","u":"/en/docs/Algorithms/题解/反序输出","h":"#参考代码","p":708},{"i":713,"t":"反序输出可以分为两部分:拆分以及反序拼接 拆分:n位整数求余10可以得到最后一位,再除以10可以得到除去上述最后一位之后的n-1位整数,循环得到每一个最后一位,完成拆分 while (x > 0) { y = y * 10 + x % 10; // 拼接与拆分 x /= 10; } 拼接:将s中的数字拼接成整数 int sum = 0; for (int i = 0; i < s.size(); i++) { sum = sum * 10 + s[i]; }","s":"题解","u":"/en/docs/Algorithms/题解/反序输出","h":"#题解","p":708},{"i":715,"t":"tip 在一面很长的墙壁上,工人们用不同的油漆去刷墙,然而可能有些地方刷过以后觉得不好看,他们会重新刷一下。有些部分因为重复刷了很多次覆盖了很多层油漆,小诺很好奇那些地方被刷过多少种颜色的油漆。 输入描述: 若干行输入,每行两个数字B[i],E[i](0<=B[i]<=E[i]<=200000)表示这次刷的墙壁是哪一段 (假设每次刷的时候油漆颜色都和之前的不同),以0 0结束 又若干行输入,每行两个数字begin[i],end[i](0<=begin[i]<=end[i]<=200000)表示小诺询问的段, 以0 0结束 输出描述: 对于每个小诺的询问输出(end[i]-begin[i]+1)行,表示对应询问段的每个点被多少种颜色的油漆覆盖过。","s":"一维前缀和(刷出一道墙)","u":"/en/docs/Algorithms/题解/一维前缀和(刷出一道墙)","h":"","p":714},{"i":717,"t":"#include using namespace std; int main() { vector colors(200001, 0); int B, E; while (scanf(\"%d %d\", &B, &E)) { if (B == 0 && E == 0) { break; } colors[B]++; // 刷墙起点标记 colors[E + 1]--; // 刷墙终点标记 } // 计算前缀和 for (int i = 1; i < colors.size(); i++) { colors[i] += colors[i - 1]; } int begin, end; while (scanf(\"%d %d\", &begin, &end)) { if (begin == 0 && end == 0) { break; } for (int i = begin; i <= end; i++) { printf(\"%d\\n\", colors[i]); } } return 0; }","s":"参考代码","u":"/en/docs/Algorithms/题解/一维前缀和(刷出一道墙)","h":"#参考代码","p":714},{"i":719,"t":"使用前缀和思想简化时间复杂度,设计前缀和数组,使输出的数组中元素的值代表其对应节点被刷的次数。 首先初始化前缀和数组,使每一个元素等于为0。 该题的巧妙之处就在于:对于每一个输入的索引B与E,B作为开始刷的节点索引令前缀和数组中对应元素的值+1+1+1,E+1作为刷墙结束的下一个节点的索引令对应的值−1-1−1。这样在所有输入结束后的计算前缀和阶段,在每一个值为[1,−1)[1, -1)[1,−1)的索引区间中的元素值都会加1,而对于某次刷漆终点E的下一个索引为E+1的元素值由于−1-1−1而抵消影响(自身值为−1-1−1加上之前元素所累积的1而归零),此时数组中元素的值才代表其对应节点被刷的次数。 关于超时,可以在函数中加入以下代码消除流操作的缓冲区,并使用\"\\n\"代替endl。 ios::sync_with_stdio(false);","s":"题解","u":"/en/docs/Algorithms/题解/一维前缀和(刷出一道墙)","h":"#题解","p":714},{"i":722,"t":"该网站的搭建离不开Docusaurus的支持以及对Sonder的宝藏笔记本的参考。","s":"饮水思源","u":"/en/docs/Acknowledgement/intro","h":"#饮水思源","p":720},{"i":724,"t":"本网站展示的所有标识和链接仅属于个人喜好,不代表国家的立场或企业、组织的行为。 本网站的所有信息仅供参考,不构成法律或商业建议。","s":"Disclaimer","u":"/en/docs/Acknowledgement/intro","h":"#disclaimer","p":720},{"i":726,"t":"info 转载自Sonder的笔记本 vector:变长数组,倍增的思想 pair:存储一对数 string:字符串,substr(), c_str() queue:push(), front(), pop() priority_queue:优先队列,push(), top(), pop() stack:栈,push(), top(), pop() deque:双端队列 set, map, multiset, multimap:基于红黑树来实现,本质上是动态维护一个有序序列 unordered_set, unordered_map, unordered_multiset, unordered_multimap:哈希表 bitset:压位","s":"STL模板","u":"/en/docs/Algorithms/STL模板","h":"","p":725},{"i":728,"t":"vector a(10,3); // 定义一个长度为10的vector,初始化为3; a.size(); // vector的size,所有容器都有 a.empty(); // 范围vector是否为空,所有容器都有 a.clear(); // 清空 a.front(); // 第一个数 a.back(); // 最后一个数 a.push_back(); // 在最后插入一个数 a.pop_back(); // 删除最后一个数 // vector支持比较运算 vector a(4,3),b(3,4); if(a > b) cout << \"Yes\"; else cout << \"No\"","s":"vector","u":"/en/docs/Algorithms/STL模板","h":"#vector","p":725},{"i":730,"t":"pair a; a = {20,\"abc\"}; a.first(); // 获取第一个元素 a.second(); // 获取第二个元素 // pair也能进行sort","s":"pair","u":"/en/docs/Algorithms/STL模板","h":"#pair","p":725},{"i":732,"t":"string a = \"Acwing\"; a.size(); // 获取string的大小 a.empty(); // 判断是否为空 a.clear(); // 清空 a += \"def\"; cout << a. substr(1,2) << endl; // 第一个参数起始位置,第二个参数是字符串长度","s":"string","u":"/en/docs/Algorithms/STL模板","h":"#string","p":725},{"i":734,"t":"query a; a.size(); a.empty(); a.push(1); // 队尾插入元素 a.front(); // 返回队头元素 a.back(); // 返回队尾元素 a.pop(); // 删除队头元素","s":"query","u":"/en/docs/Algorithms/STL模板","h":"#query","p":725},{"i":736,"t":"// 默认是大根堆 priority_queue heap; heap.clear(); heap.size(); heap.empty(); // 如何定义一个小根堆: 1. 插入负数 2. 直接定义 heap.push(-x); // 黑科技方法 priority_queue,greater> q;","s":"priority_queue","u":"/en/docs/Algorithms/STL模板","h":"#priority_queue","p":725},{"i":738,"t":"stack s; s.size(); s.empty(); s.push(); s.top(); s.pop();","s":"stack","u":"/en/docs/Algorithms/STL模板","h":"#stack","p":725},{"i":740,"t":"deque a; a.size(); a.empty(); a.clear(); a.front(); a.back(); a.push_back(); a.pop_back();","s":"deque","u":"/en/docs/Algorithms/STL模板","h":"#deque","p":725},{"i":742,"t":"set s; // 不能有重复元素 // s.begin()/end() multiset MS; // 可以有重复元素 s.insert(1); 插入一个数 s.size(); s.empty(); s.clear(); s.find(1); // 查找一个元素,如果不存在的话返回end迭代器 s.erase(1); // 输入是一个数x,输出所有x (2)输入一个迭代器,删除这个迭代器 // set 最核心的操作 s.lower_bound(); // 范围大于等于x的最小的数 s.upper_bound(); // 返回大于x的最小的数","s":"set/multiset","u":"/en/docs/Algorithms/STL模板","h":"#setmultiset","p":725},{"i":744,"t":"#include // 和python里面的字典非常的相似 map a; a[\"2\"] = 3; a.insert({\"1\",1}); a.erase({\"1\",1}); a.find({\"1\",1}); unordered_set, unordered_map, unordered_multiset, unordered_multimap的操作和set或者map等的操作基本一致,唯一的区别就是不支持类似lower_bound()这样的操作 (哈希表的内部是无序的)","s":"map/multimap","u":"/en/docs/Algorithms/STL模板","h":"#mapmultimap","p":725},{"i":746,"t":"可以省下来8位的空间 bitset<10000> s; // 支持所有的基本操作: // 移位操作:<< >> // == != // count() 返回有多少个1 // any() 判断是否至少有一个1 // none() 判断是否全为0 // set(),把所有为置为1 // set(k,v), 将第k个变为v // reset(), 把所有位变成0 // flip(), 把所有位取反","s":"biset","u":"/en/docs/Algorithms/STL模板","h":"#biset","p":725},{"i":750,"t":"词法分析:分析输入串如何构成句子,得到单词序列 语法分析:分析单词序列如何构成程序,构造语法分析树 语义分析:审查语义错误,为代码生成收集类型信息 中间代码生成 代码优化 目标代码生成 表管理、错误检查和处理贯穿整个过程","s":"1.1 编译程序的逻辑结构","u":"/en/docs/Curriculum/编译原理/Note","h":"#11-编译程序的逻辑结构","p":747},{"i":752,"t":"前端是指与源语言有关、与目标机无关的部分 如词法分析、语法分析、语义分析、中间代码生成、代码优化中与机器无关的部分 后端是指与目标机有关的部分 如代码优化中与机器有关的部分、目标代码的生成","s":"1.2 前端和后端","u":"/en/docs/Curriculum/编译原理/Note","h":"#12-前端和后端","p":747},{"i":754,"t":"遍是指从头到尾扫描一遍源程序","s":"1.3 遍的概念","u":"/en/docs/Curriculum/编译原理/Note","h":"#13-遍的概念","p":747},{"i":757,"t":"若从文法的开始符号开始存在以下推导,则称α\\alphaα为该文法的一个句型,句型中既可以包含终结符,也可以包含非终结符,也可以是空串 S⇒∗α, α∈(VT∪VN)∗(1)S \\Rightarrow^* \\alpha,\\space \\alpha \\in (V_T \\cup V_N)^* \\tag{1}S⇒∗α, α∈(VT​∪VN​)∗(1)","s":"2.1 句型","u":"/en/docs/Curriculum/编译原理/Note","h":"#21-句型","p":747},{"i":759,"t":"S⇒∗β, β∈VT∗(2)S \\Rightarrow^* \\beta,\\space \\beta \\in V_T^* \\tag{2}S⇒∗β, β∈VT∗​(2) 则称β\\betaβ是该文法的句子","s":"2.2 句子:","u":"/en/docs/Curriculum/编译原理/Note","h":"#22-句子","p":747},{"i":761,"t":"0型文法,又称无限制文法、短语文法 1型文法,又称文有关文法 2型文法,又称上下文无关文法(Context-Free Grammar,CFG) 可用来构建语法树,语法树是上下文无关文法推导和规约的图形化表示 A→β, A∈VN, β∈(VT∪VN)∗(3)\\Alpha \\rightarrow \\beta,\\space \\Alpha \\in V_N, \\space \\beta \\in (V_T \\cup V_N)^* \\tag{3}A→β, A∈VN​, β∈(VT​∪VN​)∗(3) 3型文法,又称正规文法(Regular Grammar,RG) 左线性文法 右线性文法","s":"2.3 文法的分类:","u":"/en/docs/Curriculum/编译原理/Note","h":"#23-文法的分类","p":747},{"i":763,"t":"如果在推导的任何一步都是对产生式左部中的最左/右非终结符进行替换,则称为最左/右推导,其中最右推导也被成为规范推导","s":"2.4 最左/右推导:","u":"/en/docs/Curriculum/编译原理/Note","h":"#24-最左右推导","p":747},{"i":767,"t":"确定的有穷自动机(DFA) DFA的定义及组成 确定的含义:在状态转换的每一步,FA根据当前的状态及扫描的输入字符,便能唯一地知道FA的下一状态。 tip 在状态转换图中的直观体现就是,在确定行表示的当前状态以及列确定的路径后,得到的目的状态不会是元素个数大于1的集合。 DFA的可接受以及接受集的定义:从开始状态开始,经过该符号串表示的路径,若能到达终态则称该符号串可被改DFA接受。 不确定的有穷自动机(NFA) NFA的确定化,即将NFA转换为DFA(子集法) 步骤: 画出DFA转换表 tip 转换表中在状态一列中,状态包含原NFA终态的集合要标*,代表其为等价DFA的终态 计算move(T,a)move(T, a)move(T,a) 计算ϵ−closure(T)\\epsilon -closure(T)ϵ−closure(T) 为转换表中的状态重命名 确定初态和终态 DFA的最小化(分割法) 步骤如下: tip 考试时注意过程怎么写,下面使用需要三轮分割的列子演示步骤 在分割完成后,对可以化简的集合选出一个状态作为代表,删除其他多余状态,重新画图","s":"3.2 有穷自动机(FA)","u":"/en/docs/Curriculum/编译原理/Note","h":"#32-有穷自动机fa","p":747},{"i":771,"t":"描述程序语法结构的规则可以使用2型文法(上下文无关语法,CFG) 语法分析方法包含确定的和不确定的分析方法,确定的语法分析方法根据输入符号,唯一选择产生式 确定的自顶向下分析方法:根据当前的输入符号唯一地确定选用哪个产生式替换相应的非终结符以往下推导","s":"第四章:自顶向下语法分析方法","u":"/en/docs/Curriculum/编译原理/Note","h":"#第四章自顶向下语法分析方法","p":747},{"i":774,"t":"tip FOLLOW集的求法可以按照下图技巧进行 若要求的非终结符是开始符号,则直接将#插入FOLLOW集中 在所有产生式的右部中找到要求的非终结符 看非终结符的右侧是什么元素 若无元素,则直接将该产生式左部的FOLLOW集加入到该非终结符的FOLLOW集中 若为终结符,直接将该终结符加入到FOLLOW集中 若为非终结符,将FIRST(该非终结符)减去ϵ\\epsilonϵ的所有终结符元素都加入至FOLLOW集中","s":"2. Follow集的定义","u":"/en/docs/Curriculum/编译原理/Note","h":"#2-follow集的定义","p":747},{"i":776,"t":"tip 需要注意的是FIRST集、FOLLOW集是针对于符号串而言的,而SELECT集是针对于产生式而言的","s":"3. SELECT集的定义","u":"/en/docs/Curriculum/编译原理/Note","h":"#3-select集的定义","p":747},{"i":779,"t":"tip 考试时注意书写过程,需要画出以下两张表","s":"5. LL(1)文法的判别","u":"/en/docs/Curriculum/编译原理/Note","h":"#5-ll1文法的判别","p":747},{"i":781,"t":"预测分析表通过计算SELECT集得到,形如下表 行标为各非终结符,列标为输入符号,若从某一非终结符开始的产生式的SELECT集包含某一输入符号,则对应产生式就是行列确定的元素值。","s":"6. 预测分析表","u":"/en/docs/Curriculum/编译原理/Note","h":"#6-预测分析表","p":747},{"i":783,"t":"消除左公因子(回溯) caution 同一非终结符的多个产生式存在共同前缀,会导致回溯现象,需要消除 消除左递归 caution 左递归文法会使递归下降分析器陷入无限循环 消除直接左递归 消除间接左递归 通过代入法变成直接左递归再消除","s":"7. 非LL(1)文法到LL(1)文法的等价变换","u":"/en/docs/Curriculum/编译原理/Note","h":"#7-非ll1文法到ll1文法的等价变换","p":747},{"i":786,"t":"从的底部向顶部的方向构造语法分析树,采用最左归约的方式,即最右推导的逆过程 tip 注意辨别:自顶向下的语法分析采用最左推导的方式 最右推导是规范推导,最左归约是最右推导的逆过程,又称规范归约","s":"5.1 概念","u":"/en/docs/Curriculum/编译原理/Note","h":"#51-概念","p":747},{"i":788,"t":"算符优先分析法 按照算符的优先关系和结合性质进行语法分析 LR分析法(重点) 规范规约:句柄作为可归约串","s":"5.2 方法","u":"/en/docs/Curriculum/编译原理/Note","h":"#52-方法","p":747},{"i":791,"t":"移入:将下一个输入符号移到栈顶 归约:被归约的符号串的右端处于栈顶,语法分析器在栈中确定这个串的左端非终结符来替换该串 接受:宣布语法分析过程成功完成 报错:发现一个语法错误,并调用错误恢复子程序","s":"5.4 移入-归约分析器的4种动作","u":"/en/docs/Curriculum/编译原理/Note","h":"#54-移入-归约分析器的4种动作","p":747},{"i":793,"t":"前导知识:4种项目状态 归约项目:·在最后 接受项目:拓广文法的开始符号的产生式,且·在最后 移进项目:·后面是终结符VTV_TVT​ 待约项目:·后面是非终结符VNV_NVN​ 移入-归约分析 LR(0)分析表 / 构造其识别活前缀DFA https://www.bilibili.com/video/BV1pL4y1E7RE/?spm_id_from=333.788&vd_source=24d8fcf68bc0e2b0003defe0995cf533 在写预测分析表的reduce项时,action的每一列都要写 SLR(1)分析表 / 构造其识别活前缀DFA https://www.bilibili.com/video/BV12u411S7Us/?spm_id_from=333.788&vd_source=24d8fcf68bc0e2b0003defe0995cf533 在写预测分析表的reduce项时,只写产生式左部的FOLLOW集对应的action列 LR(1)分析表 / 构造其识别活前缀DFA https://www.bilibili.com/video/BV1Vm4y1Q7XB/?spm_id_from=333.788&vd_source=24d8fcf68bc0e2b0003defe0995cf533 在构造项目集时,要加入前向搜索符;并且,在写预测分析表的reduce项时只写前向搜索符对应的action列 LALR(1)分析表 / 构造其识别活前缀DFA 在构造项目集时,要加入前向搜索符,但是要合并同心集,把相同表达式但是不同前向搜索符的前向搜索符合并,并且在写预测分析表的reduce项时只写前向搜索符集对应的action列 https://www.bilibili.com/video/BV13r4y1m7sQ/?spm_id_from=333.788&vd_source=24d8fcf68bc0e2b0003defe0995cf533","s":"5.5 重要题型","u":"/en/docs/Curriculum/编译原理/Note","h":"#55-重要题型","p":747},{"i":796,"t":"词法分析:从左到右扫描源程序,识别出各个单词,确定单词类型并形成单词序列,进行词法错误检查,对标识符进行登记,即符号表管理 语法分析:从词法分析输出的单词序列识别出各类短语,构造语法分析树,并进行语法错误检查 语义分析:审查程序是否具有语义错误,为代码生成阶段收集类型信息,不符合规范时报错(符号表是语义正确性检查的依据) 中间代码生成:生成中间代码,如三地址指令、四元式、波兰式、逆波兰式、树形结构等 代码优化:对代码进行等价变换以求提高执行效率,提高速度或节省空间 目标代码生成:将中间代码转化成目标机上的机器指令代码或汇编代码(符号表是对符号分配地址的依据)","s":"1 编译程序各阶段功能","u":"/en/docs/Curriculum/编译原理/Note","h":"#1-编译程序各阶段功能","p":747},{"i":798,"t":"就产生语法树的方向而言,可大致分为自顶向下的语法分析和自底向上的语法分析两大类。 自顶向下的语法分析方法:主流方法为递归下降分析法。根据当前的输入符号唯一地确定选用哪个产生式替换相应的非终结符以往下推导。 自底向上的语法分析方法:将输入串w归约为文法开始符号S的过程。 tip LR(0), SLR(1), LR(1) LR(0)文法可能存在移进-归约冲突、归约-归约冲突 SLR(1)文法在构造的过程中不存在归约-归约冲突,但有可能出现移进-归约冲突,可以由FOLLOW集解决的话则是SLR(1)文法","s":"2 语法分析方法的概念","u":"/en/docs/Curriculum/编译原理/Note","h":"#2-语法分析方法的概念","p":747},{"i":800,"t":"翻译模式是适合语法制导语义计算的另一种描述形式,可以体现一种合理调用语义动作的算法。 S-翻译模式: 仅涉及综合属性的翻译模式,通常将语义动作集合置于产生式右端末尾。 L-翻译模式: 既可以包含综合属性,也可以包含继承属性。","s":"3 翻译模式","u":"/en/docs/Curriculum/编译原理/Note","h":"#3-翻译模式","p":747},{"i":802,"t":"在文法基础上,为文法符号关联有特定意义的属性,并为产生式关联相应的语义动作,称之为属性文法。 S-属性文法: 只包含综合属性的属性文法成为S-属性文法 L-属性文法: 可以包含综合属性,也可以包含继承属性,但要求产生式右部的文法符号的继承属性的计算只取决于该符号左边符号的属性","s":"4 属性文法","u":"/en/docs/Curriculum/编译原理/Note","h":"#4-属性文法","p":747},{"i":804,"t":"符号表是编译程序中用于收集标识符的属性信息的数据结构。 各阶段作用: 语义分析阶段:语义合法性检查的依据 目标代码生成阶段:对符号名进行地址分配的依据","s":"5 符号表","u":"/en/docs/Curriculum/编译原理/Note","h":"#5-符号表","p":747},{"i":806,"t":"tip 欢迎来到笔记本的算法部分","s":"Welcome","u":"/en/docs/Algorithms/intro","h":"","p":805},{"i":808,"t":"如果可以帮到你的话就给个免费的Star吧!","s":"支持我!","u":"/en/docs/Algorithms/intro","h":"#支持我","p":805},{"i":810,"t":"info 转载自Sonder的笔记本 [TOC]","s":"机试技巧与STL","u":"/en/docs/Algorithms/机试技巧与STL","h":"","p":809},{"i":812,"t":"CTRL + J 列出成员 Ctrl+E,D 格式化全部代码 Ctrl+K,F 格式化选中的代码 CTRL + SHIFT + E 显示资源视图 F12 转到定义 CTRL + F12 转到声明 CTRL + ALT + J 对象浏览 CTRL + ALT + F1 帮助目录 CTRL + F1 动态帮助 CTRL + K, CTRL + C 注释选择的代码 CTRL + K, CTRL + U 取消对选择代码的注释 CTRL + U 转小写 CTRL + SHIFT + U 转大写 F5 运行调试 CTRL + F5 运行不调试 F10 跨过程序执行 F11 单步逐句执行","s":"vs2018 快捷键","u":"/en/docs/Algorithms/机试技巧与STL","h":"#vs2018-快捷键","p":809},{"i":815,"t":"头文件 说明 头文件 说明 头文件 说明 assert.h 断言相关 ctype.h 字符类型判断 errno.h 标准错误机制 float.h 浮点限制 limits.h 整形限制 locale.h 本地化接口 math.h 数学函数 setjmp.h 非本地跳转 signal.h 信号相关 stdarg.h 可变参数处理 stddef.h 宏和类型定义 stdio.h 标准I/O stdlib.h 标准工具库 string.h 字符串和内存处理 time.h 时间相关","s":"标准c库","u":"/en/docs/Algorithms/机试技巧与STL","h":"#标准c库","p":809},{"i":817,"t":"using namespace std; 头文件 说明 头文件 说明 头文件 说明 algorithm 通用算法 deque 双端队列 vector 向量 iterator 迭代器 stack 栈 map 图(键值对) list 列表 string 字符串 set 集合 queue 队列 bitset bit类 numeric 数值算法","s":"c++ STL","u":"/en/docs/Algorithms/机试技巧与STL","h":"#c-stl","p":809},{"i":819,"t":"#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std;","s":"常用头","u":"/en/docs/Algorithms/机试技巧与STL","h":"#常用头","p":809},{"i":821,"t":"//求最大值和最小值 #define MAX(x,y) (((x)>(y)) ? (x) : (y)) #define MIN(x,y) (((x) < (y)) ? (x) : (y)) //取余 #define mod(x) ((x)%MOD) //for循环 #define FOR(i,f_start,f_end) for(int i=f_start;i<=f_end;++i) //返回数组元素的个数 #define ARR_SIZE(a) (sizeof((a))/sizeof((a[0]))) //初始化数组 #define MT(x,i) memset(x,i,sizeof(x)) #define MEM(a,b) memset((a),(b),sizeof(a)) //符号重定义 #define LL long long #define ull unsigned long long #define pii pair //常见常数 #define PI acos(-1.0) #define eps 1e-12 #define INF 0x3f3f3f3f //int最大值 const int INF_INT = 2147483647; const ll INF_LL = 9223372036854775807LL; const ull INF_ULL = 18446744073709551615Ull; const ll P = 92540646808111039LL; const ll maxn = 1e5 + 10, MOD = 1e9 + 7; const int Move[4][2] = {-1,0,1,0,0,1,0,-1}; const int Move_[8][2] = {-1,-1,-1,0,-1,1,0,-1,0,1,1,-1,1,0,1,1};","s":"常用宏定义","u":"/en/docs/Algorithms/机试技巧与STL","h":"#常用宏定义","p":809},{"i":824,"t":"struct InitMember { int first; double second; char* third; float four; };","s":"定义","u":"/en/docs/Algorithms/机试技巧与STL","h":"#定义","p":809},{"i":826,"t":"方法一:定义时赋值​ struct InitMember test = {-10,3.141590,\"method one\",0.25}; 方法二:定义后逐个赋值​ struct InitMember test; test.first = -10; test.second = 3.141590; test.third = \"method two\"; test.four = 0.25; 方法三:定义时乱序赋值(C++风格)​ struct InitMember test = { second:3.141590, third:\"method three\", first:-10, four:0.25 }; 方法四:构造函数​ //定义图的定点 typedef struct Vertex { int id,inDegree,outDegree; vector connectors; //存储节点的后续连接顶点编号 Vertex() : id(-1),inDegree(0),outDegree(0) {} Vertex(int nid) : id(nid),inDegree(0),outDegree(0) {} } Vertex; //定义Graph的邻接表表示 typedef struct Graph { vector vertexs; //存储定点信息 int nVertexs; //计数:邻接数 bool isDAG; //标志:是有向图吗 Graph(int n, bool isDAG) : nVertexs(n), isDAG(isDAG) { vertexs.resize(n); } Graph() : nVertexs(1), isDAG(1) { vertexs.resize(1); } //向图中添加边 bool addEdge(int id1, int id2) { ... ... ... return true; } } Graph; Graph g(8, false);","s":"初始化","u":"/en/docs/Algorithms/机试技巧与STL","h":"#初始化","p":809},{"i":828,"t":"typedef struct{int id;int h;} node; bool operator <(const node& a,const node & b){return (a.h)<(b.h);}","s":"运算符重载","u":"/en/docs/Algorithms/机试技巧与STL","h":"#运算符重载","p":809},{"i":831,"t":"int *x = new int; //开辟一个存放整数的存储空间,返回一个指向该存储空间的地址(即指针) int *a = new int(100); //开辟一个存放整数的空间,并指定该整数的初值为100,返回一个指向该存储空间的地址 char *b = new char[10]; //开辟一个存放字符数组(包括10个元素)的空间,返回首元素的地址 float *p=new float (3.14159);//开辟一个存放单精度数的空间,并指定该实数的初值为//3.14159,将返回的该空间的地址赋给指针变量p","s":"常规","u":"/en/docs/Algorithms/机试技巧与STL","h":"#常规","p":809},{"i":833,"t":"//列值固定 const int MAXCOL = 3; cin>>row; //申请一维数据并将其转成二维数组指针 int *pp_arr = new int[nRow * MAXCOL]; int (*p)[MAXCOL] = (int(*)[MAXCOL])pp_arr; //此时p[i][j]就可正常使用","s":"动态申请列大小固定的二维数组","u":"/en/docs/Algorithms/机试技巧与STL","h":"#动态申请列大小固定的二维数组","p":809},{"i":835,"t":"cin>>row>>col; int **p = new int*[row]; for (int i = 0; i < row; i ++) { p[i] = new int[col]; }","s":"动态申请大小不固定的二维数组","u":"/en/docs/Algorithms/机试技巧与STL","h":"#动态申请大小不固定的二维数组","p":809},{"i":837,"t":"参考: https://blog.csdn.net/f_zyj/article/details/51594851 https://download.csdn.net/download/f_zyj/9988653","s":"常用STL","u":"/en/docs/Algorithms/机试技巧与STL","h":"#常用stl","p":809},{"i":839,"t":"STL底层说明​ C++ STL 的实现: 1.vector 底层数据结构为数组 ,支持快速随机访问 2.list 底层数据结构为双向链表,支持快速增删 3.deque 底层数据结构为一个中央控制器和多个缓冲区,详细见STL源码剖析P146,支持首尾(中间不能)快速增删,也支持随机访问 deque是一个双端队列(double-ended queue),也是在堆中保存内容的.它的保存形式如下: [堆1] --> [堆2] -->[堆3] --> ... 每个堆保存好几个元素,然后堆和堆之间有指针指向,看起来像是list和vector的结合品. 4.stack 底层一般用list或deque实现,封闭头部即可,不用vector的原因应该是容量大小有限制,扩容耗时 5.queue 底层一般用list或deque实现,封闭头部即可,不用vector的原因应该是容量大小有限制,扩容耗时 (stack和queue其实是适配器,而不叫容器,因为是对容器的再封装) 6.priority_queue 的底层数据结构一般为vector为底层容器,堆heap为处理规则来管理底层容器实现 7.set 底层数据结构为红黑树,有序,不重复 8.multiset 底层数据结构为红黑树,有序,可重复 9.map 底层数据结构为红黑树,有序,不重复 10.multimap 底层数据结构为红黑树,有序,可重复 11.hash_set 底层数据结构为hash表,无序,不重复 12.hash_multiset 底层数据结构为hash表,无序,可重复 13.hash_map 底层数据结构为hash表,无序,不重复 14.hash_multimap 底层数据结构为hash表,无序,可重复 CCF 编译出错原因: 不允许C++STL容器嵌套(需要满足相应的格式)​ 就是要在后面的“>”之间,必须得有一个空格,如果有多层,那每层都得有一个空格。 map > user;","s":"简述","u":"/en/docs/Algorithms/机试技巧与STL","h":"#简述","p":809},{"i":841,"t":"头文件:lgorithm 函数参数,返回值以及具体的使用方法请自行去头文件找定义!!! 不修改内容的序列操作​ 函数 说明 adjacent_find 查找两个相邻(Adjacent)的等价(Identical)元素 all_ofC++11 检测在给定范围中是否所有元素都满足给定的条件 any_ofC++11 检测在给定范围中是否存在元素满足给定条件 count 返回值等价于给定值的元素的个数 count_if 返回值满足给定条件的元素的个数 equal 返回两个范围是否相等 find 返回第一个值等价于给定值的元素 find_end 查找范围A中与范围B等价的子范围最后出现的位置 find_first_of 查找范围A中第一个与范围B中任一元素等价的元素的位置 find_if 返回第一个值满足给定条件的元素 find_if_notC++11 返回第一个值不满足给定条件的元素 for_each 对范围中的每个元素调用指定函数 mismatch 返回两个范围中第一个元素不等价的位置 none_ofC++11 检测在给定范围中是否不存在元素满足给定的条件 search 在范围A中查找第一个与范围B等价的子范围的位置 search_n 在给定范围中查找第一个连续n个元素都等价于给定值的子范围的位置 修改内容的序列操作​ 函数 说明 copy 将一个范围中的元素拷贝到新的位置处 copy_backward 将一个范围中的元素按逆序拷贝到新的位置处 copy_ifC++11 将一个范围中满足给定条件的元素拷贝到新的位置处 copy_nC++11 拷贝 n 个元素到新的位置处 fill 将一个范围的元素赋值为给定值 fill_n 将某个位置开始的 n 个元素赋值为给定值 generate 将一个函数的执行结果保存到指定范围的元素中,用于批量赋值范围中的元素 generate_n 将一个函数的执行结果保存到指定位置开始的 n 个元素中 iter_swap 交换两个迭代器(Iterator)指向的元素 moveC++11 将一个范围中的元素移动到新的位置处 move_backwardC++11 将一个范围中的元素按逆序移动到新的位置处 random_shuffle 随机打乱指定范围中的元素的位置 remove 将一个范围中值等价于给定值的元素删除 remove_if 将一个范围中值满足给定条件的元素删除 remove_copy 拷贝一个范围的元素,将其中值等价于给定值的元素删除 remove_copy_if 拷贝一个范围的元素,将其中值满足给定条件的元素删除 replace 将一个范围中值等价于给定值的元素赋值为新的值 replace_copy 拷贝一个范围的元素,将其中值等价于给定值的元素赋值为新的值 replace_copy_if 拷贝一个范围的元素,将其中值满足给定条件的元素赋值为新的值 replace_if 将一个范围中值满足给定条件的元素赋值为新的值 reverse 反转排序指定范围中的元素 reverse_copy 拷贝指定范围的反转排序结果 rotate 循环移动指定范围中的元素 rotate_copy 拷贝指定范围的循环移动结果 shuffleC++11 用指定的随机数引擎随机打乱指定范围中的元素的位置 swap 交换两个对象的值 swap_ranges 交换两个范围的元素 transform 对指定范围中的每个元素调用某个函数以改变元素的值 unique 删除指定范围中的所有连续重复元素,仅仅留下每组等值元素中的第一个元素。 unique_copy 拷贝指定范围的唯一化(参考上述的 unique)结果 划分操作​ 函数 说明 is_partitionedC++11 检测某个范围是否按指定谓词(Predicate)划分过 partition 将某个范围划分为两组 partition_copyC++11 拷贝指定范围的划分结果 partition_pointC++11 返回被划分范围的划分点 stable_partition 稳定划分,两组元素各维持相对顺序 排序操作​ 函数 说明 is_sortedC++11 检测指定范围是否已排序 is_sorted_untilC++11 返回最大已排序子范围 nth_element 部份排序指定范围中的元素,使得范围按给定位置处的元素划分 partial_sort 部份排序 partial_sort_copy 拷贝部分排序的结果 sort 排序 stable_sort 稳定排序 二分法查找操作​ 函数 说明 binary_search 判断范围中是否存在值等价于给定值的元素 equal_range 返回范围中值等于给定值的元素组成的子范围 lower_bound 返回指向范围中第一个值大于或等于给定值的元素的迭代器 upper_bound 返回指向范围中第一个值大于给定值的元素的迭代器 集合操作​ 函数 说明 includes 判断一个集合是否是另一个集合的子集 inplace_merge 就绪合并 merge 合并 set_difference 获得两个集合的差集 set_intersection 获得两个集合的交集 set_symmetric_difference 获得两个集合的对称差 set_union 获得两个集合的并集 堆操作​ 函数 说明 is_heap 检测给定范围是否满足堆结构 is_heap_untilC++11 检测给定范围中满足堆结构的最大子范围 make_heap 用给定范围构造出一个堆 pop_heap 从一个堆中删除最大的元素 push_heap 向堆中增加一个元素 sort_heap 将满足堆结构的范围排序 最大/最小操作​ 函数 说明 is_permutationC++11 判断一个序列是否是另一个序列的一种排序 lexicographical_compare 比较两个序列的字典序 max 返回两个元素中值最大的元素 max_element 返回给定范围中值最大的元素 min 返回两个元素中值最小的元素 min_element 返回给定范围中值最小的元素 minmaxC++11 返回两个元素中值最大及最小的元素 minmax_elementC++11 返回给定范围中值最大及最小的元素 next_permutation 返回给定范围中的元素组成的下一个按字典序的排列 prev_permutation 返回给定范围中的元素组成的上一个按字典序的排列","s":"algorithm","u":"/en/docs/Algorithms/机试技巧与STL","h":"#algorithm","p":809},{"i":843,"t":"头文件:vector 在STL的vector头文件中定义了vector(向量容器模版类),vector容器以连续数组的方式存储元素序列,可以将vector看作是以顺序结构实现的线性表。当我们在程序中需要使用动态数组时,vector将会是理想的选择,vector可以在使用过程中动态地增长存储空间。 vector模版类需要两个模版参数,第一个参数是存储元素的数据类型,第二个参数是存储分配器的类型,其中第二个参数是可选的,如果不给出第二个参数,将使用默认的分配器 下面给出几个常用的定义vector向量对象的方法示例: vector s; // 定义一个空的vector对象,存储的是int类型的元素 vector s(n); // 定义一个含有n个int元素的vector对象 vector s(first, last); // 定义一个vector对象,并从由迭代器first和last定义的序列[first, last)中复制初值 vector的基本操作: s[i] // 直接以下标方式访问容器中的元素 s.front() // 返回首元素 s.back() // 返回尾元素 s.push_back(x) // 向表尾插入元素x s.size() // 返回表长 s.empty() // 表为空时,返回真,否则返回假 s.pop_back() // 删除表尾元素 s.begin() // 返回指向首元素的随机存取迭代器 s.end() // 返回指向尾元素的下一个位置的随机存取迭代器 s.insert(it, val) // 向迭代器it指向的元素前插入新元素val s.insert(it, n, val)// 向迭代器it指向的元素前插入n个新元素val s.insert(it, first, last) // 将由迭代器first和last所指定的序列[first, last)插入到迭代器it指向的元素前面 s.erase(it) // 删除由迭代器it所指向的元素 s.erase(first, last)// 删除由迭代器first和last所指定的序列[first, last) s.reserve(n) // 预分配缓冲空间,使存储空间至少可容纳n个元素 s.resize(n) // 改变序列长度,超出的元素将会全部被删除,如果序列需要扩展(原空间小于n),元素默认值将填满扩展出的空间 s.resize(n, val) // 改变序列长度,超出的元素将会全部被删除,如果序列需要扩展(原空间小于n),val将填满扩展出的空间 s.clear() // 删除容器中的所有元素 s.swap(v) // 将s与另一个vector对象进行交换 s.assign(first, last) // 将序列替换成由迭代器first和last所指定的序列[first, last),[first, last)不能是原序列中的一部分 // 要注意的是,resize操作和clear操作都是对表的有效元素进行的操作,但并不一定会改变缓冲空间的大小 // 另外,vector还有其他的一些操作,如反转、取反等,不再一一列举 // vector上还定义了序列之间的比较操作运算符(>、<、>=、<=、==、!=),可以按照字典序比较两个序列。 // 还是来看一些示例代码吧…… /* * 输入个数不定的一组整数,再将这组整数按倒序输出 */ #include #include using namespace std; int main() { vector L; int x; while(cin >> x) { L.push_back(x); } for (int i = L.size() - 1; i >= 0; i--) { cout << L[i] << \" \"; } cout << endl; return 0; }","s":"vector","u":"/en/docs/Algorithms/机试技巧与STL","h":"#vector","p":809},{"i":845,"t":"头文件:list 下面给出几个常用的定义list对象的方法示例: lista{1,2,3} lista(n) //声明一个n个元素的列表,每个元素都是0 lista(n, m) //声明一个n个元素的列表,每个元素都是m lista(first, last) //声明一个列表,其元素的初始值来源于由区间所指定的序列中的元素,first和last是迭代器 list的基本操作: a.begin() // 返回指向首元素的随机存取迭代器 a.end() // 返回指向尾元素的下一个位置的随机存取迭代器 a.push_front(x) // 向表头插入元素x a.push_back(x) // 向表尾插入元素x a.pop_back() // 删除表尾元素 a.pop_front() // 删除表头元素 a.size() // 返回表长 a.empty() // 表为空时,返回真,否则返回假 a.resize(n) // 改变序列长度,超出的元素将会全部被删除,如果序列需要扩展(原空间小于n),元素默认值将填满扩展出的空间 a.resize(n, val) // 改变序列长度,超出的元素将会全部被删除,如果序列需要扩展(原空间小于n),val将填满扩展出的空间 a.clear() // 删除容器中的所有元素 a.front() // 返回首元素 a.back() // 返回尾元素 a.swap(v) // 将a与另一个list对象进行交换 a.merge(b) // 调用结束后b变为空,a中元素包含原来a和b的元素 a.insert(it, val) // 向迭代器it指向的元素前插入新元素val a.insert(it, n, val)// 向迭代器it指向的元素前插入n个新元素val a.insert(it, first, last) // 将由迭代器first和last所指定的序列[first, last)插入到迭代器it指向的元素前面 a.erase(it) // 删除由迭代器it所指向的元素 a.erase(first, last)// 删除由迭代器first和last所指定的序列[first, last) a.remove(x) // 删除了a中所有值为x的元素 a.assign(n, val) // 将a中的所有元素替换成n个val元素 a.assign(b.begin(), b.end()) //将a变成b","s":"list","u":"/en/docs/Algorithms/机试技巧与STL","h":"#list","p":809},{"i":847,"t":"头文件:string string是STL的字符串类型,通常用来表示字符串。而在使用string之前,字符串通常是用char*表示的。 string和char*的区别 string是一个类, char*是一个指向字符的指针。 string封装了char*,管理这个字符串,是一个char*型的容器。也就是说string是一个容器,里面元素的数据类型是char*。 string不用考虑内存释放和越界。 string管理char*所分配的内存。每一次string的复制,取值都由string类负责维护,不用担心复制越界和取值越界等。 string提供了一系列的字符串操作函数 查找find,拷贝copy,删除erase,替换replace,插入insert. 构造和析构函数: 表达式 效果 string s 生成一个空字符串 string s(str) copy构造函数,生成一个str的复制品 string s(str,idx) 将string内始于位置idx的部分当作字符串s的初值 string s(str,idx,len) 将string内始于位置idx且长度最多为len的部分当作字符串s的初值 string s(cstr) 以C-string字符串cstr作为字符串s的初值 string s(cstr,len) 以C-string字符串cstr的前len个字符作为字符串s的初值 string s(num,c) 生成一个字符串,包含num个字符c string s(beg,end) 以区间[beg,end]内所有字符作为字符串s的初值 操作函数: 操作函数 效果 =,assign() 赋以新值 swap() 交换两个字符串的内容 +=, append(),push_back() 添加字符 insert() 插入字符 erase() 删除字符 clear() 移除全部字符 resize() 改变字符数量 replace() 替换字符 + 串联字符串 ==,!=,<,<=,>,>=,compare() 比较字符串内容 size(),length() 返回字符数量,等效函数 max_size() 返回字符的最大可能个数 empty() 判断字符串是否为空 capacity() 返回重新分配之前的字符容量 reserve() 保留一定量内存以容纳一定数量的字符 [ ],at() 存取单一字符 >>,getline() 从stream中读取某值 << 将某值写入stream copy() 将内容复制为一个C-string c_str() 将内容以C-string形式返回 data() 将内容以字符数组形式返回 substr() 返回某个子字符串 begin(),end() 提供正常的迭代器支持 rbegin(),rend() 提供逆向迭代器支持","s":"string","u":"/en/docs/Algorithms/机试技巧与STL","h":"#string","p":809},{"i":849,"t":"头文件:utility STL的utility头文件中描述了一个看上去非常简单的模版类pair,用来表示一个二元组或元素对,并提供了按照字典序对元素对进行大小比较运算符模版函数。 Example,想要定义一个对象表示一个平面坐标点,则可以: pair p; cin >> p.first >> p.second; pair模版类需要两个参数:首元素的数据类型和尾元素的数据类型。pair模版类对象有两个成员:first和second,分别表示首元素和尾元素。 在其中已经定义了pair上的六个比较运算符:<、>、<=、>=、==、!=,其规则是先比较first,first相等时再比较second,这符合大多数应用的逻辑。当然,也可以通过重载这几个运算符来重新指定自己的比较逻辑。 除了直接定义一个pair对象外,如果需要即时生成一个pair对象,也可以调用在其中定义的一个模版函数:make_pair。make_pair需要两个参数,分别为元素对的首元素和尾元素。","s":"pair","u":"/en/docs/Algorithms/机试技巧与STL","h":"#pair","p":809},{"i":851,"t":"头文件:map 在STL的头文件中map中定义了模版类map和multimap,用有序二叉树表存储类型为pair的元素对序列。序列中的元素以const Key部分作为标识,map中所有元素的Key值必须是唯一的,multimap则允许有重复的Key值。 可以将map看作是由Key标识元素的元素集合,这类容器也被称为“关联容器”,可以通过一个Key值来快速决定一个元素,因此非常适合于需要按照Key值查找元素的容器。 map模版类需要四个模版参数,第一个是键值类型,第二个是元素类型,第三个是比较算子,第四个是分配器类型。其中键值类型和元素类型是必要的。 定义map对象的代码示例: map m; map的基本操作: /* 向map中插入元素 */ m[key] = value; // [key]操作是map很有特色的操作,如果在map中存在键值为key的元素对, 则返回该元素对的值域部分,否则将会创建一个键值为key的元素对,值域为默认值。所以可以用该操作向map中插入元素对或修改已经存在的元素对的值域部分。 m.insert(make_pair(key, value)); // 也可以直接调用insert方法插入元素对,insert操作会返回一个pair,当map中没有与key相匹配的键值时,其first是指向插入元素对的迭代器,其second为true;若map中已经存在与key相等的键值时,其first是指向该元素对的迭代器,second为false。 /* 查找元素 */ int i = m[key]; // 要注意的是,当与该键值相匹配的元素对不存在时,会创建键值为key(当另一个元素是整形时,m[key]=0)的元素对。 map::iterator it = m.find(key); // 如果map中存在与key相匹配的键值时,find操作将返回指向该元素对的迭代器,否则,返回的迭代器等于map的end()(参见vector中提到的begin()和end()操作)。 /* 删除元素 */ m.erase(key); // 删除与指定key键值相匹配的元素对,并返回被删除的元素的个数。 m.erase(it); // 删除由迭代器it所指定的元素对,并返回指向下一个元素对的迭代器。 /* 其他操作 */ m.size(); // 返回元素个数 m.empty(); // 判断是否为空 m.clear(); // 清空所有元素","s":"map","u":"/en/docs/Algorithms/机试技巧与STL","h":"#map","p":809},{"i":853,"t":"头文件:stack stack模版类的定义在stack头文件中。 stack模版类需要两个模版参数,一个是元素类型,另一个是容器类型,但是只有元素类型是必要的,在不指定容器类型时,默认容器的类型为deque。 定义stack对象的示例代码如下: stack s; stack ss; stack的基本操作有: s.push(x); // 入栈 s.pop(); // 出栈 s.top(); // 访问栈顶 s.empty(); // 当栈空时,返回true s.size(); // 访问栈中元素个数","s":"stack","u":"/en/docs/Algorithms/机试技巧与STL","h":"#stack","p":809},{"i":855,"t":"头文件:queue queue模版类的定义在queue头文件中。 queue与stack相似,queue模版类也需要两个模版参数,一个元素类型,一个容器类型,元素类型时必须的,容器类型时可选的,默认为deque类型。 定义queue对象的示例代码必须如下: queue q; queue qq; queue的基本操作: q.push(x); // 入队列 q.pop(); // 出队列 q.front(); // 访问队首元素 q.back(); // 访问队尾元素 q.empty(); // 判断队列是否为空 q.size(); // 访问队列中的元素个数","s":"queue","u":"/en/docs/Algorithms/机试技巧与STL","h":"#queue","p":809},{"i":857,"t":"头文件:set set是与集合相关的容器,STL为我们提供了set的实现,在编程题中遇见集合问题直接调用是十分方便的。 定义set对象的示例代码如下: set s; set ss; set的基本操作: s.begin() // 返回指向第一个元素的迭代器 s.clear() // 清除所有元素 s.count() // 返回某个值元素的个数 s.empty() // 如果集合为空,返回true(真) s.end() // 返回指向最后一个元素之后的迭代器,不是最后一个元素 s.equal_range() // 返回集合中与给定值相等的上下限的两个迭代器 s.erase() // 删除集合中的元素 s.find() // 返回一个指向被查找到元素的迭代器 s.get_allocator() // 返回集合的分配器 s.insert() // 在集合中插入元素 s.lower_bound() // 返回指向大于(或等于)某值的第一个元素的迭代器 s.key_comp() // 返回一个用于元素间值比较的函数 s.max_size() // 返回集合能容纳的元素的最大限值 s.rbegin() // 返回指向集合中最后一个元素的反向迭代器 s.rend() // 返回指向集合中第一个元素的反向迭代器 s.size() // 集合中元素的数目 s.swap() // 交换两个集合变量 s.upper_bound() // 返回大于某个值元素的迭代器 s.value_comp() // 返回一个用于比较元素间的值的函数","s":"set","u":"/en/docs/Algorithms/机试技巧与STL","h":"#set","p":809},{"i":859,"t":"头文件:set 在set头文件中,还定义了另一个非常实用的模版类multiset(多重集合)。多重集合与集合的区别在于集合中不能存在相同元素,而多重集合中可以存在。 定义multiset对象的示例代码如下: multiset s; multiset ss; multiset和set的基本操作相似,需要注意的是,集合的count()能返回0(无)或者1(有),而多重集合是有多少个返回多少个。","s":"multiset","u":"/en/docs/Algorithms/机试技巧与STL","h":"#multiset","p":809},{"i":861,"t":"头文件:bitset 在 STLSTL 的头文件中 bitset中定义了模版类 bitsetbitset,用来方便地管理一系列的 bitbit 位的类。bitsetbitset 除了可以访问指定下标的 bitbit 位以外,还可以把它们作为一个整数来进行某些统计。 bitsetbitset 模板类需要一个模版参数,用来明确指定含有多少位。 定义 bitsetbitset 对象的示例代码: const int MAXN = 32; bitset bt; // bt 包括 MAXN 位,下标 0 ~ MAXN - 1,默认初始化为 0 bitset bt1(0xf); // 0xf 表示十六进制数 f,对应二进制 1111,将 bt1 低 4 位初始化为 1 bitset bt2(012); // 012 表示八进制数 12,对应二进制 1010,即将 bt2 低 4 位初始化为 1010 bitset bt3(\"1010\"); // 将 bt3 低 4 位初始化为 1010 bitset bt4(s, pos, n);// 将 01 字符串 s 的 pos 位开始的 n 位初始化 bt4 bitsetbitset 基本操作: bt.any() // bt 中是否存在置为 1 的二进制位? bt.none() // bt 中不存在置为 1 的二进制位吗? bt.count() // bt 中置为 1 的二进制位的个数 bt.size() // bt 中二进制位的个数 bt[pos] // 访问 bt 中在 pos 处的二进制位 bt.test(pos) // bt 中在 pos 处的二进制位是否为 1 bt.set() // 把 bt 中所有二进制位都置为 1 bt.set(pos) // 把 bt 中在 pos 处的二进制位置为 1 bt.reset() // 把 bt 中所有二进制位都置为 0 bt.reset(pos) // 把 bt 中在pos处的二进制位置为0 bt.flip() // 把 bt 中所有二进制位逐位取反 bt.flip(pos) // 把 bt 中在 pos 处的二进制位取反 bt[pos].flip() // 同上 bt.to_ulong() // 用 bt 中同样的二进制位返回一个 unsigned long 值 os << bt // 把 bt 中的位集输出到 os 流","s":"bitset","u":"/en/docs/Algorithms/机试技巧与STL","h":"#bitset","p":809},{"i":864,"t":"#include #include #include using namespace std; #define MAX(a, b) ((a) > (b) ? (a) : (b) ) //定义图的定点 typedef struct Vertex { int id; vector connectors; //存储节点的后续连接顶点编号 Vertex() : id(-1) {} Vertex(int nid) : id(nid) {} } Vertex; //定义Graph的邻接表表示 typedef struct Graph { vector vertexs; //存储定点信息 int nVertexs; //计数:邻接数 bool isDAG; //标志:是有向图吗 Graph(int n, bool isDAG) : nVertexs(n), isDAG(isDAG) { vertexs.resize(n); } //向图中添加边 bool addEdge(int id1, int id2) { if (!(MAX(id1, id2) < vertexs.size())) return false; if (isDAG) { vertexs[id1].connectors.push_back(id2); } else { vertexs[id1].connectors.push_back(id2); vertexs[id2].connectors.push_back(id1); } return true; } //广度优先搜索 vector BFS(int start) { set visited; vector g, rst; g.push_back(start); visited.insert(start); while(g.size() > 0) { int id = g[0]; g.erase(g.begin()); rst.push_back(id); for(int i = 0; i < vertexs[id].connectors.size(); i++) { int id1 = vertexs[id].connectors[i]; if (visited.count(id1) == 0) { g.push_back(id1); visited.insert(id1); } } } return rst; } //深度优先搜索 vector DFS(int start) { set visited; vector g, rst; g.push_back(start); //cout << \"push \" << start << \" \"; visited.insert(start); rst.push_back(start); bool found; while(g.size() > 0) { int id = g[g.size()-1]; found = false; for(int i = 0; i < vertexs[id].connectors.size(); i++) { int id1 = vertexs[id].connectors[i]; if (visited.count(id1) == 0) { g.push_back(id1); rst.push_back(id1); visited.insert(id1); //cout << \"push \" << id1 << \" \"; found = true; break; } } if (!found) { int id2 = g[g.size()-1]; rst.push_back(-1 * id2); //cout << \"pop \" << id2 << \" \"; g.pop_back(); } } //cout << endl; return rst; } } Graph; int main() { Graph g(8, false); g.addEdge(0, 1); g.addEdge(0, 3); g.addEdge(1, 2); g.addEdge(3, 4); g.addEdge(3, 5); g.addEdge(4, 5); g.addEdge(4, 6); g.addEdge(5, 6); g.addEdge(5, 7); g.addEdge(6, 7); vector bv = g.BFS(0); cout << \"宽度优先搜索节点顺序:\"; for(int j = 0; j < bv.size(); j++) cout << bv[j] << \" \"; cout << endl; cout << \"深度优先搜索节点顺序:\"; Graph g1(6, false); g1.addEdge(0, 1); g1.addEdge(0, 4); g1.addEdge(0, 5); g1.addEdge(1, 5); g1.addEdge(4, 5); g1.addEdge(5, 2); g1.addEdge(5, 3); g1.addEdge(2, 3); vector route = g1.DFS(0); for(int i = 0; i < route.size(); i++) cout << route[i] << \" \"; cout << endl; char ch; cin >> ch; return 0; }","s":"不带出入度的最简模板","u":"/en/docs/Algorithms/机试技巧与STL","h":"#不带出入度的最简模板","p":809},{"i":866,"t":"#include #include #include #include #define MAX(a, b) ((a) > (b) ? (a) : (b) ) using namespace std; int n,m; vector inDegreelist,outDegreelist; //定义图的定点 typedef struct Vertex { int id,inDegree,outDegree; vector connectors; //存储节点的后续连接顶点编号 Vertex() : id(-1),inDegree(0),outDegree(0) {} Vertex(int nid) : id(nid),inDegree(0),outDegree(0) {} } Vertex; //定义Graph的邻接表表示 typedef struct Graph { vector vertexs; //存储定点信息 int nVertexs; //计数:邻接数 bool isDAG; //标志:是有向图吗 Graph(int n, bool isDAG) : nVertexs(n), isDAG(isDAG) { vertexs.resize(n); } Graph() : nVertexs(1), isDAG(1) { vertexs.resize(1); } //向图中添加边 bool addEdge(int id1, int id2) { if (!(MAX(id1, id2) < vertexs.size())) return false; if (isDAG) { vertexs[id1].connectors.push_back(id2); vertexs[id1].outDegree++; vertexs[id2].inDegree++; } else { vertexs[id1].connectors.push_back(id2); vertexs[id2].connectors.push_back(id1); vertexs[id1].outDegree++; vertexs[id1].inDegree++; vertexs[id2].outDegree++; vertexs[id2].inDegree++; } return true; } } Graph; Graph g; void init(){ cin>>n>>m; g=Graph(n, true); int src,dst; while(m--){ cin>>src>>dst; g.addEdge(src,dst); } vector::iterator it = g.vertexs.begin(); while(it!=g.vertexs.end()){ inDegreelist.push_back(it->inDegree); outDegreelist.push_back(it->outDegree); it++; } } int countin(int n){ return count(inDegreelist.begin(),inDegreelist.end(),n); } int countout(int n){ return count(outDegreelist.begin(),outDegreelist.end(),n); } bool Is_List(){ //有一个inDegree为0的头和一个outDegree为0的尾,且其余节点入度与出度都为1; return (countin(0)==1)&&(countout(0)==1)&&(countin(1)==n-1)&&(countout(1)==n-1); } bool Is_Tree(){ //有一个inDegree为0的头且其余节点inDegree均为1,且不是链表; return (countin(0)==1)&&(countin(1)==n-1); } bool topologicalSort(){//拓扑排序判断有环无环 int num=0;//记录加入拓扑排序的顶点数 queue q; for(int i=0;i #include #ifndef BASE #define BASE #define TRUE 1 #define FALSE 0 #define OK 1 #define ERROR 0 #define INFEASIBLE -1 #define OVERFLOW -2 typedef int Status; typedef int bool; #endif #define VertexType char //点类型 #define VRType int //边类型 #define maxSize 100 void Visit(VertexType e) { printf(\"%c\", e); } #define MAX_VERTEX_NUM 20 typedef enum{DG, UDG} GraphKind; typedef struct ArcNode{ int adjV; //边指向的顶点 VRType weight; //权重 struct ArcNode *next; }ArcNode; //边 typedef struct VNode{ VertexType data; ArcNode *firstarc; }VNode, AdjList[MAX_VERTEX_NUM]; //顶点 typedef struct{ GraphKind kind; int vernum,arcnum; AdjList vers; }ALGraph; /*------------------------ |7.14 创建有向图的邻接表| ------------------------*/ Status InitGraph_AL(ALGraph *pG) { //初始化 int i; pG->arcnum = 0; pG->vernum = 0; for (i=0; ivers[i].firstarc = NULL; //VC++6.0中指针初始化为0xcccccccc return OK; } int LocateVex_AL(ALGraph G, VertexType e) { //定位值为e的元素下标 int i; for (i=0; i弧的数目->各顶点的信息->各条弧的信息 int i,a,b; char tmp[MAX_VERTEX_NUM]; char h,t; ArcNode *p, *q; InitGraph_AL(pG); //VC++6.0中指针初始化为0xcccccccc,如果不将指针初始化为NULL,会出错 //图的类型 pG->kind = DG; //顶点数目 scanf(\"%d\", &i); if (i<0) return ERROR; pG->vernum = i; //弧的数目 scanf(\"%d\", &i); if (i<0) return ERROR; pG->arcnum = i; //各顶点信息 scanf(\"%s\", tmp); for (i=0; ivernum; ++i) pG->vers[i].data=tmp[i]; //弧的信息 for (i=0; iarcnum; ++i) { scanf(\"%s\", tmp); h = tmp[0]; t = tmp[2]; a = LocateVex_AL(*pG, h); b = LocateVex_AL(*pG, t); if (a<0 || b<0) return ERROR; p = (ArcNode *)malloc(sizeof(ArcNode)); if (!p) exit(OVERFLOW); p->adjV=b;p->next=NULL; if (pG->vers[a].firstarc) { //已经有边了 for (q = pG->vers[a].firstarc; q->next; q=q->next) ; //找到最后一条 q->next = p; } else { //第一条边 pG->vers[a].firstarc = p; } } return OK; } /*---------------------------------------------------------------- |7.28 有向图-从u-v的所有简单路径 | ----------------------------------------------------------------*/ int visit[MAX_VERTEX_NUM]; //前面定义了 VertexType paths[maxSize][MAX_VERTEX_NUM]; //存放路径 int path[MAX_VERTEX_NUM]; //路径 int pathnum=0; //当前是第几条路径 void FindAllPath(ALGraph G, int u,int v,int k) { //u->v当前是第k个位置 int i; ArcNode *p; visit[u]=1; //走到了u path[k]=u; //添加到路径->下标位置为k的结点是u(第k+1个是u) if (u==v) { //找到了 for (i=0; i<=k; i++) {//复制到paths paths[pathnum][i] = G.vers[path[i]].data; } paths[pathnum][i]='\\0'; //结束符 pathnum++; //找下一条路径 } else { //u的邻边开始找 for (p=G.vers[u].firstarc; p; p=p->next) { if (visit[p->adjV]==0) FindAllPath(G, p->adjV, v, k+1); //去这个邻接点找 } } // 回溯到上一个结点 // 注意:回溯应该写在外面-->也就是不管有没有找到都要回溯 visit[u]=0; path[k]=0; } int main() { /*7.28 6 11 ABCDEF B,A B,D C,B C,F D,C D,E D,F E,A F,A F,B F,E B->A A->B D->A */ int i,j; int cnt; ALGraph G; char tmp[20]; CreateDG_AL(&G); while (1) { scanf(\"%s\", tmp); //A->B i = LocateVex_AL(G, tmp[0]); j = LocateVex_AL(G, tmp[3]); for (cnt=0; cnt #include #define mem(a,b) memset(a,b,sizeof a); using namespace std; typedef long long ll; const int maxn=50; int mid[maxn],po[maxn],pr[maxn]; int first; struct node { int l,r; }T[maxn]; // 中序+先序=>二叉树 int mid_pr_build(int la,int ra,int lb,int rb) // la,ra:表示中序遍历 lb,rb:表示先序遍历 { // 这里不能等于,因为假设:len==1,则la==ra,直接返回,但是实际上是有一个 rt 的,却没被建立 if(la>ra) return 0; int rt=pr[lb]; // 因为先序遍历第一个是根节点 int p1=la,p2; while(mid[p1]!=rt) p1++; // 在中序遍历中找到根节点 p2=p1-la; T[rt].l=mid_pr_build(la,p1-1,lb+1,lb+p2); // 左子树(锁定左子树范围的下标) T[rt].r=mid_pr_build(p1+1,ra,lb+p2+1,rb); // 右子树(锁定右子树范围的下标) return rt; } // 中序+后序=>二叉树 int mid_po_build(int la,int ra,int lb,int rb) // la,ra:表示中序遍历 lb,rb:表示后序遍历 { if(la>ra) return 0; int rt=po[rb]; // 因为后序遍历最后一个是根节点 int p1=la,p2; while(mid[p1]!=rt) p1++; // 在中序遍历中找到根节点 p2=p1-la; T[rt].l=mid_po_build(la,p1-1,lb,lb+p2-1); // 左子树(锁定左子树范围的下标) T[rt].r=mid_po_build(p1+1,ra,lb+p2,rb-1); // 右子树(锁定右子树范围的下标) return rt; } // 求树高 int getHeight(int rt) { if(rt==0) return 0; return 1+max(getHeight(T[rt].l),getHeight(T[rt].r)); } // 层序遍历 void bfs(int rt) { queue q; vector v; q.push(rt); while(!q.empty()) { int w=q.front(); q.pop(); v.push_back(w); if(T[w].l!=0) q.push(T[w].l); if(T[w].r!=0) q.push(T[w].r); } int len=v.size(); for(int i=0;i #include #define mem(a,b) memset(a,b,sizeof a); using namespace std; typedef long long ll; const int maxn=50; int mid[maxn],po[maxn],pr[maxn]; int first; struct node { int l,r; }T[maxn]; int mid_pr_build(int la,int ra,int lb,int rb) { if(la>ra) return 0; int rt=pr[lb]; int p1=la,p2; while(mid[p1]!=rt) p1++; p2=p1-la; T[rt].l=mid_pr_build(la,p1-1,lb+1,lb+p2); T[rt].r=mid_pr_build(p1+1,ra,lb+p2+1,rb); return rt; } int mid_po_build(int la,int ra,int lb,int rb) { if(la>ra) return 0; int rt=po[rb]; int p1=la,p2; while(mid[p1]!=rt) p1++; p2=p1-la; T[rt].l=mid_po_build(la,p1-1,lb,lb+p2-1); T[rt].r=mid_po_build(p1+1,ra,lb+p2,rb-1); return rt; } int getHeight(int rt) { if(rt==0) return 0; return 1+max(getHeight(T[rt].l),getHeight(T[rt].r)); } void bfs(int rt) { queue q; vector v; q.push(rt); while(!q.empty()) { int w=q.front(); q.pop(); v.push_back(w); if(T[w].l!=0) q.push(T[w].l); if(T[w].r!=0) q.push(T[w].r); } int len=v.size(); for(int i=0;i #include #define mem(a,b) memset(a,b,sizeof a) #define ssclr(ss) ss.clear(), ss.str(\"\") #define INF 0x3f3f3f3f #define MOD 1000000007 using namespace std; typedef long long ll; const int maxn=5e4+1000; int f; int pre[maxn], in[maxn]; struct node { int l,r,d; }T[maxn]; int create(int l1,int r1,int l2,int r2) // in pre { if(l2>r2) return -1; int rt=l2; int p1=l1,p2; while(in[p1]!=pre[rt]) p1++; p2=p1-l1; T[rt].d=pre[rt]; T[rt].l=create(l1,p1-1,l2+1,l2+p2); T[rt].r=create(p1+1,r1,l2+p2+1,r2); return rt; } void postT(int rt) { if(rt==-1 || !f) return; postT(T[rt].l); postT(T[rt].r); if(f) f=0, printf(\"%d\\n\",T[rt].d); } int main() { int n; scanf(\"%d\",&n); for(int i=0;i * Copyright (c) 2003, Jeffrey K. Hollingsworth * Copyright (c) 2004, Iulian Neamtiu * $Revision: 1.51 $ * * This is free software. You are permitted to use, * redistribute, and modify it as specified in the file \"COPYING\". */ #include #include #include #include #include #include #include #include #include #include #include void project0(){ Print(\"To Exit hit Ctrl + d.\\n\"); Keycode keycode; while(1) { if(Read_Key(&keycode)) { if(!((keycode & KEY_SPECIAL_FLAG) || (keycode & KEY_RELEASE_FLAG)))// 不是特殊键或者弹起 { int asciiCode = keycode & 0xff;//d if((keycode & KEY_CTRL_FLAG)==KEY_CTRL_FLAG && asciiCode=='d')//ctrl+d { Print(\"\\n---------Adios! Motherfucker!---------\\n\"); Exit(1); }else { Print(\"%c\",(asciiCode=='\\r') ? '\\n' : asciiCode); } } } } } /* * Kernel C code entry point. * Initializes kernel subsystems, mounts filesystems, * and spawns init process. */ void Main(struct Boot_Info* bootInfo) { Init_BSS(); Init_Screen(); Init_Mem(bootInfo); Init_CRC32(); Init_TSS(); Init_Interrupts(); Init_Scheduler(); Init_Traps(); Init_Timer(); Init_Keyboard(); Set_Current_Attr(ATTRIB(BLACK, GREEN|BRIGHT)); Print(\"Welcome to GeekOS!\\n\"); Set_Current_Attr(ATTRIB(BLACK, GRAY)); // TODO(\"Start a kernel thread to echo pressed keys and print counts\"); struct Kernel_Thread *thread; thread = Start_Kernel_Thread(&project0,0,PRIORITY_NORMAL,false); /* Now this thread is done. */ Exit(0); }","s":"1. 编写C语言代码","u":"/en/docs/Curriculum/操作系统课设/GeekOS-project-0","h":"#1-编写c语言代码","p":876},{"i":881,"t":"每一个项目的编译都在geekos-version/src/projecti/build文件夹下进行,即要在终端中通过cd进入该目录。 执行 make depend make 此时,该目录下会生成bochs.out、depend.mak以及fd.img文件,bochs.out文件是日志输出文件,depend.mak是编译中间生成的文件,最终生成的fd.img是最重要的GeekOS映像文件,有了它才能使用bochs运行GeekOS操作系统。感恩它! 目录下的文件应该是这样的结构: 下面就可以使用bochs运行GeekOS系统了,可以说bochs的运行依赖两个文件,一个是配置文件.bochsrc,一个是映像文件fd.img,映像文件的加载路径需要在.bochsrc文件中定义,在环境配置的博客中已经介绍过了。这里再贴一下内容。 # An example .bochsrc file. # You will need to edit these lines to reflect your system. vgaromimage: file=/usr/local/share/bochs/VGABIOS-lgpl-latest # 请根据自己的实际安装路径更改 romimage: file=/usr/local/share/bochs/BIOS-bochs-latest # 请根据自己的实际安装路径更改 megs: 8 boot: a floppya: 1_44=fd.img, status=inserted #floppya: 1_44=fd_aug.img, status=inserted log: ./bochs.out # keyboard_serial_delay: 200 # vga_update_interval: 300000 mouse: enabled=0 private_colormap: enabled=0 # i440fxsupport: enabled=0 # Uncomment this to write all bochs debugging messages to # bochs.out. This produces a lot of output, but can be very # useful for debugging the kernel. #debug: action=report 在这个目录下打开终端,执行 bochs 选择6,按下回车 可能会出现黑屏情况,这是因为进入了调试模式,终端正在等待命令,在终端输入 c 即可完成bochs的正式启动,最终的效果","s":"2. 使用Linux的编译系统对C语言代码进行编译","u":"/en/docs/Curriculum/操作系统课设/GeekOS-project-0","h":"#2-使用linux的编译系统对c语言代码进行编译","p":876},{"i":885,"t":"GeekOS是一个基于x86体系结构的微操作系统内核. 由美国马理兰大学的教师开发, 主要用于操作系统课程设计的教育. 出于教学目的, 这个系统内核设计简单, 却又兼备实用性, 它可以运行在真正的X86 PC硬件平台. 在下载好GeekOS后, 在geekos-version/src/目录下会存在project0-project6这7个文件夹, 分别代表GeekOS设计的7个学习任务. 在环境搭建完成之后, 我们进行的每一个项目的代码编写几乎都在geekos-version/src/projecti/src/geekos/文件夹下, 每一个项目的编译都在geekos-version/src/projecti/build文件夹下进行, 即要在终端中通过cd进入该目录, 再执行make depend和make命令.","s":"1. GeekOS:","u":"/en/docs/Curriculum/操作系统课设/Environment-Configuration","h":"#1-geekos","p":882},{"i":887,"t":"bochs是一个x86硬件平台的模拟器. GeekOS运行依托于bochs. 在安装好Linux操作系统后需要安装bochs以及nasm, 以完成GeekOS环境的搭建.","s":"2. bochs:","u":"/en/docs/Curriculum/操作系统课设/Environment-Configuration","h":"#2-bochs","p":882},{"i":889,"t":"GeekOS的开发环境可分为两部分, 一部分是编译环境, 一部分是运行环境. 在编译过程中, 使用Linux自带的编译环境以及编译命令对特定的GeekOS project进行编译即可. 首先在终端中通过cd命令进入geekos-version/src/projecti/build目录, 再执行make depend和make命令. 编译后生成bochs的镜像文件fd.img, 这是bochs运行所必须的文件,也是GeekOS运行环境的前置配置.","s":"3. 二者之间的关系","u":"/en/docs/Curriculum/操作系统课设/Environment-Configuration","h":"#3-二者之间的关系","p":882},{"i":891,"t":"安装其实非常简单, 这里主要花篇幅介绍安装后解决报错的配置.","s":"二、安装与配置","u":"/en/docs/Curriculum/操作系统课设/Environment-Configuration","h":"#二安装与配置","p":882},{"i":893,"t":"需要下载GeekOS Files, 安装bochs, nasm等. GeekOS直接下载压缩包, 解压即可. arch系用户通过以下命令即可完成bochs和nasm的安装. yay -S bochs nasm 其他发行版的安装方法这里不再赘述, 可选择从群文件里下载源文件并编译安装, 师兄师姐也在群文件里给了一些教程指导.","s":"1. 安装","u":"/en/docs/Curriculum/操作系统课设/Environment-Configuration","h":"#1-安装","p":882},{"i":895,"t":"完成安装后, 我们就可以开始对project0中的代码进行完善了, 并在geekos-version/src/project0/build目录下执行make depend以及make命令, 目的是编译project0的代码, 生成bochs的镜像文件fd.img以构建GeekOS的运行环境. 但很多报错就是在make这一步产生的, 因此在安装完成后还需要进行配置. 配置分为两部分, 一个是对GeekOS中makefile的修改, 另一部分是对bochs的配置文件的修改. GeekOS中makefile的配置​ 综合网上很多师兄师姐的博客,这三个错误应该是每个人都会遇到的,所以当你不确定自己能不能运行时,请全部完成这三个步骤. 问题: warnings being treated as errors 解决方案: 修改geekos-version/src/projecti/build目录下的makefie文件(由于每个project下都存在一个对应的makefile文件, 所以在每个项目编译前都要修改一次) // 修改第149行: CC_GENERAL_OPTS := $(GENERAL_OPTS) -Werror // 修改后: CC_GENERAL_OPTS := $(GENERAL_OPTS) 问题: X86_64与i386输出不兼容 解决方案: 修改geekos-version/src/projecti/build目录下的makefie文件 # Target C compiler. gcc 2.95.2 or later should work. 100行 TARGET_CC := $(TARGET_CC_PREFIX)gcc -m32 # Host C compiler. This is used to compile programs to execute on # the host platform, not the target (x86) platform. On x86/ELF # systems, such as Linux and FreeBSD, it can generally be the same # as the target C compiler. 106行 HOST_CC := gcc -m32 # Target linker. GNU ld is probably to only one that will work.109行 TARGET_LD := $(TARGET_CC_PREFIX)ld -m elf_i386 问题: undefined reference to '__stack_chk_fail' 解决方案: 修改geekos-version/src/projecti/build目录下的makefie文件 # Flags used for all C source files // 修改前:148行 GENERAL_OPTS := -O -Wall $(EXTRA_C_OPTS) // 修改后: GENERAL_OPTS := -O -Wall -fno-stack-protector $(EXTRA_C_OPTS) bochs配置文件的修改​ 在geekos-version/src/projecti/build目录下创建.bochsrc文件 # An example .bochsrc file. # You will need to edit these lines to reflect your system. vgaromimage: file=/usr/local/share/bochs/VGABIOS-lgpl-latest # 请根据自己的实际安装路径更改 romimage: file=/usr/local/share/bochs/BIOS-bochs-latest # 请根据自己的实际安装路径更改 megs: 8 boot: a floppya: 1_44=fd.img, status=inserted #floppya: 1_44=fd_aug.img, status=inserted log: ./bochs.out # keyboard_serial_delay: 200 # vga_update_interval: 300000 mouse: enabled=0 private_colormap: enabled=0 # i440fxsupport: enabled=0 # Uncomment this to write all bochs debugging messages to # bochs.out. This produces a lot of output, but can be very # useful for debugging the kernel. #debug: action=report 到此为止, 所有的配置工作已经完成, 可以正常的进行下一步的代码完善. 如果需要验证自己是否配置成功, 可以参照下一篇博客GeekOS project 0的实现, 在本篇博客中会有完整的C语言代码编写以及编译、使用bochs执行的过程.","s":"2. 配置","u":"/en/docs/Curriculum/操作系统课设/Environment-Configuration","h":"#2-配置","p":882},{"i":897,"t":"tip 本笔记使用的教材是陈天华所著、清华大学出版社的《数字图像处理及应用:使用MATLAB分析与实现》。 Take me to church, I'll worship like a dog at the shrine of your lies. I'll tell you my sins, and you can sharpen your knife. Offer me that deathless death, good god, let me give you my life.","s":"数字图像处理复习笔记","u":"/en/docs/Curriculum/数字图像处理/Note","h":"","p":896},{"i":900,"t":"为了从模拟图像产生数字图像,需要进行采样与量化,即对模拟图像在空间(x,y)(x, y)(x,y)方向上以及亮度函数f(x,y)f(x, y)f(x,y)进行离散化处理。 采样: 模拟图像在空间(x,y)(x, y)(x,y)上的离散化称为采样。 若在x和y方向上均进行等间距的采样,则称为均匀采样。 采样点的多少以及采样的间隔直接影响着图像的质量。 量化: 模拟图像经过采样后,在时间和空间上被离散化为像素,但采样所得的像素点的像素值依然是连续量。量化过程就是以离散的灰度值信息代替连续的模拟量灰度信息的过程,是一对多的过程。 量化可以分为线性量化以及非线性量化。 灰度级一般以2的整数次幂表示,如大多图像为彩色RGB图像,256个灰度级,位深度为8(28=2562^8=25628=256),则对于分辨率为256×256的图像来说,需要256×256×3×8位表示,即每一个像素实际上使用24位表示。","s":"图像的采样与量化","u":"/en/docs/Curriculum/数字图像处理/Note","h":"#图像的采样与量化","p":896},{"i":902,"t":"4邻域N4(p)N_4(p)N4​(p)即该像素上下左右的四个点,8邻域N8(p)N_8(p)N8​(p),对角邻域ND(p)N_D(p)ND​(p)。 像素之间的距离度量必须满足三种关系: 非负性 对称性 三角不等式 三种距离度量: 已知,点ppp的坐标为(x,y)(x, y)(x,y),点qqq的坐标为(s,t)(s,t)(s,t)。 欧氏距离: De(p,q)=(x−s)2+(y−t)2(1)D_e(p,q)=\\sqrt{(x-s)^2+(y-t)^2}\\tag{1}De​(p,q)=(x−s)2+(y−t)2​(1) 城市距离 D4(p,q)=∣x−s∣+∣y−t∣(2)D_4(p,q)=\\vert x-s\\vert+\\vert y-t\\vert \\tag{2}D4​(p,q)=∣x−s∣+∣y−t∣(2) 棋盘距离 D8(p,q)=max(∣x−s∣,∣y−t∣)(3)D_8(p,q)=max(\\vert x-s\\vert,\\vert y-t\\vert)\\tag{3}D8​(p,q)=max(∣x−s∣,∣y−t∣)(3)","s":"距离度量","u":"/en/docs/Curriculum/数字图像处理/Note","h":"#距离度量","p":896},{"i":904,"t":"MSE越小代表待测图像与参考图像越接近,均方误差公式如下: MSE=1MN∑x=1M∑y=1N[f(x,y)−g(x,y)]2(4)MSE=\\frac{1}{MN}\\sum_{x=1}^{M}\\sum_{y=1}^{N}[f(x,y)-g(x,y)]^2\\tag{4}MSE=MN1​x=1∑M​y=1∑N​[f(x,y)−g(x,y)]2(4) SNR:参考图像像素值的平方均值与均方误差的比值的对数的10倍。越大代表图像质量越好 PSNR:峰值信噪比,图像所允许的最大像素值的平方与均方误差的比值的对数的10倍,这是信噪比的改良版本,消除了图像自身像素值对评价指标的影响。越大代表图像质量越好 SSIM为结构相似系数,越大代表图像质量越好","s":"图像质量评价","u":"/en/docs/Curriculum/数字图像处理/Note","h":"#图像质量评价","p":896},{"i":908,"t":"可以使用傅里叶变换的函数需要满足狄利克莱条件(Dirichlet Condition): 具有有限个间断点 具有有限个极值点 绝对可积 傅里叶变换的特性: info 傅里叶频谱图的特征: 频率分布:傅里叶频谱图展示了图像在不同频率下的强度分布。高频部分对应图像中的边缘和细节,低频部分对应图像中的整体结构和大致轮廓。 能量分布:图像中不同频率的能量在频谱图中以不同强度的幅度呈现。高幅度的频率分量通常标示着图像中强烈的变化或边缘。 平移不变性:傅里叶变换具有平移不变性,这意味着在频域中图像的平移对应于幅度谱中相位的改变而不影响幅度谱本身。 连续傅里叶变换​ 一维连续傅里叶变换 F(u)=∫−∞+∞f(x)e−j2πuxdx(5)F(u)=\\int_{-\\infty}^{+\\infty}f(x)e^{-j2\\pi ux}dx\\tag{5}F(u)=∫−∞+∞​f(x)e−j2πuxdx(5) 一维连续傅里叶逆变换 f(x)=∫−∞∞F(u)ej2πuxdu(6)f(x)=\\int_{-\\infty}^{\\infty}F(u)e^{j2\\pi ux}du\\tag{6}f(x)=∫−∞∞​F(u)ej2πuxdu(6) 二维连续傅里叶变换 F(u,v)=∫−∞∞∫−∞∞f(x,y)e−j2π(ux+vy)dxdy(7)F(u,v)=\\int_{-\\infty}^{\\infty}\\int_{-\\infty}^{\\infty}f(x,y)e^{-j2\\pi (ux+vy)}dxdy\\tag{7}F(u,v)=∫−∞∞​∫−∞∞​f(x,y)e−j2π(ux+vy)dxdy(7) 二维连续傅里叶逆变换 f(x,y)=∫−∞∞∫−∞∞F(u,v)ej2π(ux+vy)dudv(8)f(x,y)=\\int_{-\\infty}^{\\infty}\\int_{-\\infty}^{\\infty}F(u,v)e^{j2\\pi (ux+vy)}dudv\\tag{8}f(x,y)=∫−∞∞​∫−∞∞​F(u,v)ej2π(ux+vy)dudv(8) 离散傅里叶变换​ 一维离散傅里叶变换 F(u)=∑x=0N−1f(x)e−j2πuxN(9)F(u)=\\sum_{x=0}^{N-1}f(x)e^{-j\\frac{2\\pi ux}{N}}\\tag{9}F(u)=x=0∑N−1​f(x)e−jN2πux​(9) 一维离散傅里叶逆变换 f(x)=1N∑u=0N−1F(u)ej2πuxN(10)f(x)=\\frac{1}{N}\\sum_{u=0}^{N-1}F(u)e^{j\\frac{2\\pi ux}{N}}\\tag{10}f(x)=N1​u=0∑N−1​F(u)ejN2πux​(10) 二维离散傅里叶变换 F(u,v)=∑x=0M−1∑y=0N−1f(x,y)e−j2π(uxM+vyN)(11)F(u,v)=\\sum_{x=0}^{M-1}\\sum_{y=0}^{N-1}f(x,y)e^{-j2\\pi (\\frac{ux}{M}+\\frac{vy}{N})}\\tag{11}F(u,v)=x=0∑M−1​y=0∑N−1​f(x,y)e−j2π(Mux​+Nvy​)(11) 二维离散傅里叶逆变换 f(x,y)=1MN∑u=0M−1∑v=0N−1F(u,v)ej2π(uxM+vyN)(12)f(x,y)=\\frac{1}{MN}\\sum_{u=0}^{M-1}\\sum_{v=0}^{N-1}F(u,v)e^{j2\\pi (\\frac{ux}{M}+\\frac{vy}{N})}\\tag{12}f(x,y)=MN1​u=0∑M−1​v=0∑N−1​F(u,v)ej2π(Mux​+Nvy​)(12)","s":"傅里叶变换","u":"/en/docs/Curriculum/数字图像处理/Note","h":"#傅里叶变换","p":896},{"i":911,"t":"下图展示了点运算的主要应用:对比度拉伸 主要应用: 对比度拉伸 光度学标定 显示标定 轮廓线 裁剪","s":"点运算","u":"/en/docs/Curriculum/数字图像处理/Note","h":"#点运算","p":896},{"i":913,"t":"使用齐次坐标对图像进行比例缩放。 全比例缩放是指x方向和y方向使用相同的比例系数。 当对图像进行放大时,会产生之前没有的像素,此时需要使用插值来解决。","s":"比例缩放","u":"/en/docs/Curriculum/数字图像处理/Note","h":"#比例缩放","p":896},{"i":915,"t":"最近邻法插值​ 双线性插值(Bilinear)​ 例题:","s":"灰度级插值","u":"/en/docs/Curriculum/数字图像处理/Note","h":"#灰度级插值","p":896},{"i":918,"t":"线性变换​ 是指将输入图像的灰度值的动态范围按线性关系变换至指定范围或灰度的整个动态范围。 按比例线性变换 均匀线性变换 限幅线性变换 分段线性拉伸 非线性变换​ 对数拉伸可以拉伸低亮度区域,压缩高亮度区域。 指数拉伸可以拉伸高亮度区域,压缩低亮度区域。 注意,上述的拉伸是指新的图像在该灰度范围内分布的更均匀,即出现的灰度级更多;压缩的意义是指新的图像在该灰度范围内分布的更狭窄,即出现的灰度级更少。 例题: 答:该图像存在较亮的问题,灰度直方图分布在较高的区域。从直接灰度变换增强法的角度,我们可以采用指数函数变换,对高灰度区进行扩展。 tip 分析:该图像中没有低灰度的像素,全部集中在高灰度部分,因此使用指数函数变换将原来的集中的高灰度区域进行拉伸,扩展其灰度分布的范围,从而起到增强效果。","s":"直接灰度变换","u":"/en/docs/Curriculum/数字图像处理/Note","h":"#直接灰度变换","p":896},{"i":920,"t":"直方图均衡化​ 目的: 将一非均匀灰度概率密度分布的图像,通过某种灰度变换,将其变成一幅具有均匀灰度概率密度分布的目的图像。 步骤: 根据原始图像计算原始灰度密度分布函数rkr_krk​ 计算变换函数,即累积密度分布函数sks_ksk​ 计算均衡化后的灰度级s(k)s(k)s(k),即使用以下公式进行均衡化映射: s(k)=ceil(sk×L−1)(13)s(k)=\\mathbf{ceil}(s_k\\times L-1)\\tag{13}s(k)=ceil(sk​×L−1)(13) 其中,LLL是原直方图中灰度级数。 画出最终均衡化后的直方图 例题: 直方图规定化​ 目的: 调整原始图像的直方图使其符合某一规定的直方图的要求。 思想: 将原始图像和规定图像进行均衡化后,二者的灰度概率密度分布相同,进行对应映射即可。 步骤: 对原始图像进行均衡化,得到映射后的s(k)s(k)s(k) 对规定的图像直方图进行均衡化,得到映射后的z(k)z(k)z(k) 由于s(k)s(k)s(k)和z(k)z(k)z(k)都是归一化后的均匀分布,使用二者之间的就近原则将s(k)s(k)s(k)对应到给出的规定直方图的灰度级 画出规定化后的直方图 例题: 此时已经获得了原始图像均衡化后的灰度级与目标规定化输出的图像的灰度级之间的映射关系,最后一步按照rkr_krk​画出目标规定化输出的图像直方图即可。","s":"直方图灰度变换","u":"/en/docs/Curriculum/数字图像处理/Note","h":"#直方图灰度变换","p":896},{"i":922,"t":"空域滤波可以根据作用分为平滑滤波以及锐化滤波。 平滑滤波​ info 噪声的特点: 随机性 叠加性 噪声与图像之间具有相关性 线性平滑滤波​ 邻域平均滤波 加权平均滤波 高斯滤波 非线性平滑滤波​ 中值滤波 最大值滤波 最小值滤波 锐化滤波​ 锐化滤波消除或减弱图像的低频分量从而增强图像中物体的边缘轮廓信息,使得除边缘以外的像素点的灰度值趋向于零。 梯度法 拉普拉斯算子,非线性滤波 定向滤波:检测特定方向边缘的滤波,通常在模板上表现为在该特定方向上模板值较大。 下面的表格展示了水平方向的定向锐化模板 -1 -1 -1 2 2 2 -1 -1 -1 下面的表格展示了对角方向的定向锐化模板 -1 2 -1 -1 2 -1 -1 2 -1","s":"空域滤波增强","u":"/en/docs/Curriculum/数字图像处理/Note","h":"#空域滤波增强","p":896},{"i":924,"t":"图像从空域变换到频域后,低频分量对应图像中灰度值变化缓慢的区域,可能是图像的背景;高频分量表示图像中灰度值变化迅速的区域,可能是图像的噪声或物体的边缘。 在图像频谱(经过中心偏移的)中,中心代表低频信息,四周代表高频信息。","s":"第6章 图像频域增强","u":"/en/docs/Curriculum/数字图像处理/Note","h":"#第6章-图像频域增强","p":896},{"i":926,"t":"抑制、衰减高频分量,保留低频分量。 理想低通滤波器(ILPF)​ tip ILPF means Ideal Low Pass Filter. H(u,v)={1D(u,v)≤D00D(u,v)>D0(14)H(u,v)=\\begin{cases}1&D(u,v)\\leq D_0\\\\ 0&D(u,v)>D_0\\end{cases}\\tag{14}H(u,v)={10​D(u,v)≤D0​D(u,v)>D0​​(14) D(u,v)=u2+v2(15)D(u,v)=\\sqrt{u^2+v^2}\\tag{15}D(u,v)=u2+v2​(15) 在截止频率D0D_0D0​处垂直截止,通过频率和截止频率在D0D_0D0​处具有不连续性,通带和阻带之间没有过渡,会产生无限的振铃效应。 巴特沃斯低通滤波器(BLPF)​ 通带与阻带之间过度平坦,通过频率和截止频率之间没有明显的不连续性,不会出现振铃效应。 H(u,v)=11+(2−1)[D(u,v)D0]2n(16)H(u,v)=\\frac{1}{1+(\\sqrt{2}-1)[\\frac{D(u,v)}{D_0}]^{2n}}\\tag{16}H(u,v)=1+(2​−1)[D0​D(u,v)​]2n1​(16) 其中,取H(u,v)H(u,v)H(u,v)下降到最大值的0.707时的D(u,v)D(u,v)D(u,v)作为截止频率D0D_0D0​。 即当D(u,v)D(u,v)D(u,v)达到截止频率时,D(u,v)D0=1\\frac{D(u,v)}{D_0}=1D0​D(u,v)​=1,此时H(u,v)=0.707H(u,v)=0.707H(u,v)=0.707。 指数低通滤波器(ELPF)​ 一般情况下,取H(u,v)H(u,v)H(u,v)下降到最大值的1/2时的D(u,v)D(u,v)D(u,v)作为截止频率。 H(u,v)=e−[D(u,v)D0]n(17)H(u,v)=e^{-[\\frac{D(u,v)}{D_0}]^n}\\tag{17}H(u,v)=e−[D0​D(u,v)​]n(17) 截止频率和通过频率之间具有更光滑的过渡,没有振铃现象。且指数低通滤波器比巴特沃斯低通滤波器衰减更快,处理后的图像更模糊。 梯形低通滤波器(TLPF)​ 由于在D0D_0D0​尾部包含高频分量D1D_1D1​,处理后图像的清晰度较理想低通滤波器有所改善,但会出现振铃效应, H(u,v)={1D(u,v)D1(18)H(u,v)=\\begin{cases}1&D(u,v)D_1\\end{cases}\\tag{18}H(u,v)=⎩⎨⎧​1D0​−D1​D(u,v)−D1​​0​D(u,v)D1​​(18)","s":"低通滤波","u":"/en/docs/Curriculum/数字图像处理/Note","h":"#低通滤波","p":896},{"i":928,"t":"抑制低频分量,保留高频分量。 理想高通滤波器(IHPF)​ H(u,v)={1D(u,v)>D00D(u,v)≤D0(19)H(u,v)=\\begin{cases}1&D(u,v)>D_0\\\\ 0&D(u,v)\\leq D_0\\end{cases}\\tag{19}H(u,v)={10​D(u,v)>D0​D(u,v)≤D0​​(19) 性质与理想低通滤波器一样,垂直截断,具有无限振铃效应。 巴特沃斯高通滤波器(BHPF)​ H(u,v)=11+(2−1)[D0D(u,v)]2n(20)H(u,v)=\\frac{1}{1+(\\sqrt{2}-1)[\\frac{D_0}{D(u,v)}]^{2n}}\\tag{20}H(u,v)=1+(2​−1)[D(u,v)D0​​]2n1​(20) 通常采取H(u,v)H(u,v)H(u,v)下降到最大值的0.707时的D(u,v)D(u,v)D(u,v)作为截止频率,没有振铃效应。 指数高通滤波器(EHPF)​ H(u,v)=e−[D0D(u,v)]n(21)H(u,v)=e^{-[\\frac{D_0}{D(u,v)}]^n}\\tag{21}H(u,v)=e−[D(u,v)D0​​]n(21) 梯形高通滤波器(THPF)​ H(u,v)={1D(u,v)>D0D(u,v)−D1D0−D1D1≤D(u,v)≤D00D(u,v)D_0\\\\ \\\\ \\frac{D(u,v)-D_1}{D_0-D_1}&D_1\\leq D(u,v)\\leq D_0\\\\ \\\\ 0&D(u,v)D0​D1​≤D(u,v)≤D0​D(u,v)w2(24)H(u,v)=\\begin{cases}1&D(u,v) w_2\\end{cases}\\tag{24}H(u,v)=⎩⎨⎧​101​D(u,v)w2​​(24)","s":"带通和带阻滤波","u":"/en/docs/Curriculum/数字图像处理/Note","h":"#带通和带阻滤波","p":896},{"i":933,"t":"伪彩色图像的增强一般用于B超、石油开采以及安检方面。","s":"伪彩色图像的处理","u":"/en/docs/Curriculum/数字图像处理/Note","h":"#伪彩色图像的处理","p":896},{"i":937,"t":"退化原因​ 成像系统镜头聚焦不准产生的散焦 相机与景物之间的相对运动 成像系统存在的各种非线性因素以及系统本身的性能 模拟图像在数字化过程中,因数字化的精度和误差而损失图像细节 成像系统中存在的各种随机噪声 复原机理​ 图像复原的过程一般是沿着图像退化的逆向过程进行的。首先根据先验知识分析退化原因,了解图像变质的原理,在此基础上建立图像的退化模型,然后以图像退化的逆过程对图像进行处理。 图像复原与图像增强的区别和联系​ 联系:二者从表面上看都是为了提高图像的质量。 区别:二者在目的和过程上都有明显的区别。 在目的上,图像增强是为了提高图像的视感质量,增强后的图像可能损失一些信息,并与原始图像有一定的差异;而图像复原是为了使待复原的图像与原始图像尽可能的接近。 在过程上。图像增强一般不考虑图像退化的真实过程,而是使用特定技术来突出和强调图像中所关注的特征;而图像复原是直接针对图像产生退化的原因建立相应的数学模型,并沿着退化的逆向进行复原。","s":"图像退化机理","u":"/en/docs/Curriculum/数字图像处理/Note","h":"#图像退化机理","p":896},{"i":939,"t":"图像f(x,y)f(x,y)f(x,y)经过退化系统H(x,y)H(x,y)H(x,y)后再与噪声n(x,y)n(x,y)n(x,y)叠加,得到最后退化的图像g(x,y)g(x,y)g(x,y)。 退化系统的一般特性: 线性特性。 空间位置不变性:经过退化系统后的输出只有输入有关,而与输入在图像中的位置无关。","s":"图像退化模型","u":"/en/docs/Curriculum/数字图像处理/Note","h":"#图像退化模型","p":896},{"i":942,"t":"最佳阈值法​ 假设图像由物体和背景两部分组成,且物体像素的分布和背景像素的分布均符合正态分布,物体像素的正态分布概率密度函数的均值为μ\\muμ,背景像素的正态分布概率密度函数的均值为ν\\nuν,则最佳阈值法确定的阈值为 t=μ+ν2(25)t=\\frac{\\mu +\\nu}{2}\\tag{25}t=2μ+ν​(25) 判别分析法​ 通过计算灰度直方图的0阶矩和1阶矩最大化类间方差从而得到最佳阈值。","s":"阈值分割法","u":"/en/docs/Curriculum/数字图像处理/Note","h":"#阈值分割法","p":896},{"i":944,"t":"什么是图像的边缘? 图像中结构具有突变的地方,表明一个区域的终结,也是另一个区域的开始,这种不连续性称为边缘。 边缘信号的类型? 阶跃型,但实际情况中不可能有完全理想的突变。突变处为边缘点。 渐变型,逐渐增大或逐渐减小。渐变的中间位置为边缘点。 台阶型。台阶的中间为边缘点或认为台阶两侧为两个边缘点。","s":"边缘检测的基本原理","u":"/en/docs/Curriculum/数字图像处理/Note","h":"#边缘检测的基本原理","p":896},{"i":946,"t":"Robert算子​ 一阶导数算子。 利用局部差分方法,采用对角线方向相邻两像素之差近似梯度幅值检测边缘。 对噪声敏感,不能抑制噪声。 Sobel算子​ 一阶导数算子。 先进行加权平均,然后进行微分运算。 对噪声具有一定的抑制能力。 Prewitt算子​ 一阶导数算子。 利用局部差分平均方法寻找边缘。两个模板一个检测水平边缘,一个检测竖直边缘。 对噪声具有一定的抑制能力。 Laplace算子​ 二阶导数算子。 使噪声成分得到加强,对噪声更敏感。 与Marr边缘检测算子一样,一般先进行低通滤波平滑后再进行二阶微分运算。 Canny边缘检测​ 使用高斯滤波平滑图像 计算梯度幅值和方向 NMS非极大值抑制,保留每个像素点上梯度强度的极大值,删掉其他值 使用双阈值方法确定强边界和弱边界 滞后边界跟踪","s":"边缘检测算子","u":"/en/docs/Curriculum/数字图像处理/Note","h":"#边缘检测算子","p":896},{"i":948,"t":"傅里叶频谱图的特征: 频率分布:傅里叶频谱图展示了图像在不同频率下的强度分布。高频部分对应图像中的边缘和细节,低频部分对应图像中的整体结构和大致轮廓。 能量分布:图像中不同频率的能量在频谱图中以不同强度的幅度呈现。高幅度的频率分量通常标示着图像中强烈的变化或边缘。 平移不变性:傅里叶变换具有平移不变性,这意味着在频域中图像的平移对应于幅度谱中相位的改变而不影响幅度谱本身。 如何在频域实现图像平滑 利用傅里叶变换将图像从空域转换为频域; 将频域图像进行中心偏移,使得低频信息在频谱中央; 利用滤波函数生成一个与图像大小相同的二维频域矩阵; 将图像的频域与滤波器的频域相应相乘; 将相乘后的频域再次逆平移到频域的原始位置; 将得到的频域进行逆傅里叶变换,得到滤波后的空域图像。 一阶边缘检测算子与Laplace算子的异同。 相同点:都可以检测边缘并且对噪声敏感 不同点:一阶边缘检测算子检测到的边缘都有明确的方向,而Laplace算子对各种方向的边缘都有较好的响应 已知一幅图像受到加性随机噪声污染,分析并写出三种去除或降低噪声的方法。 空域滤波(均值滤波、中值滤波),频域滤波(巴特沃斯低通滤波),图像恢复技术。 分析采样和量化的过程,以及它们对数字化图像质量的影响。 采样是把空间上连续的图像转换为离散的抽样点,即像素。量化将抽样后所得的连续的像素值离散化为整数值。 对数字化图像质量的影响: 采样间隔越大,所得图像像素数越少,图像空间分辨率越低,质量越差。反之图像质量好,但数据量大。 量化等级越多(灰度级数越多),所得图像层次越丰富,灰度分辨率越高,质量越好,但数据量大。反之,图像质量差,会出现假轮廓现象,但数据量小。 图像噪声的特点。 随机性 叠加性 噪声与图像之间具有相关性 什么是线性灰度拉伸?线性灰度拉伸可以分为几种情况? 线性灰度拉伸是将输入图像的灰度值的动态范围按线性关系拉伸扩展至指定范围或灰度的整个动态范围。 线性拉伸可分为按比例线性拉伸和分段线性拉伸两种方法。同时,按比例线性拉伸又可以分为均匀线性拉伸以及限幅线性拉伸。 伪彩色图像处理可以应用在哪些方面? B超 石油开采 安检","s":"课后习题中的问答题","u":"/en/docs/Curriculum/数字图像处理/Note","h":"#课后习题中的问答题","p":896},{"i":950,"t":"tip 欢迎来到笔记本的课程学习部分","s":"Welcome","u":"/en/docs/Curriculum/intro","h":"","p":949},{"i":952,"t":"如果可以帮到你的话就给个免费的Star吧!","s":"支持我!","u":"/en/docs/Curriculum/intro","h":"#支持我","p":949},{"i":955,"t":"在文字生成模型中根据模型的输入是否与前一时刻的输出有关可以分为自回归AR模型与非自回归NAR模型两种,这两种生成方式的利与弊在图像生成中仍然存在。","s":"回顾文字生成的两种方法","u":"/en/docs/Deep-Learning/大模型/Image-Generation-Models","h":"#回顾文字生成的两种方法","p":953},{"i":957,"t":"Transformer-based的文字生成模型有很多,如GPT模型,大多使用自回归(Autoregressive, abbr. AR)的方法逐token生成。 什么是ARM ARM(Autoregressive Model,自回归模型)是一类用于建模时间序列数据的统计模型,其中当前时刻的观测值被认为是过去时刻观测值的线性组合,加上一个随机误差项。这类模型的核心思想是,当前时刻的数据依赖于先前时刻的数据。 若把文字生成的AR方法对应到图像生成中的使用,即一个一个像素生成图像。由于当前对高清图像像素的需求越来越高,自回归的生成方式导致速度非常缓慢,但优点是后面生成的每一个像素都考虑了之前的所有像素,从而使生成的图像更清晰、更细腻、更加符合预期。","s":"自回归方法(AR)","u":"/en/docs/Deep-Learning/大模型/Image-Generation-Models","h":"#自回归方法ar","p":953},{"i":959,"t":"若使用NAR非自回归的方法一次生成所有像素,各像素在生成时无法考虑之间的语义信息,生成的图像质量普遍低于自回归方法生成的图像。","s":"非自回归方法(NAR)","u":"/en/docs/Deep-Learning/大模型/Image-Generation-Models","h":"#非自回归方法nar","p":953},{"i":961,"t":"VAE、GAN以及Diffusion Model等生成模型,都不只是单独使用文字作为输入来生成图像,而是使用了从已知的随机分布(e.g. Normal Distribution)中sample出向量作为模型额外输入的方法。 大致的思想如下图所示,由于期待生成的图像并不是固定的,可以将预期输出看作是一个分布,即P(x∣y)P(x|y)P(x∣y),而图像生成模型需要完成的任务就是将输入的从某一随机分布中sample出的向量对应到图像预期输出分布中的某一个图像。 info 总结:由于根据文字prompt期待生成的图像并不是固定的,可以认为生成的图片在目标域(Target Domain)符合某种分布。因此目前的SOTA模型除了将文字Prompt作为输入,还从某随机分布中sample出图片shape的随机向量(矩阵)作为输入,期待模型根据prompt将源域(Source Domain)输入的随机向量映射到目标域的分布,生成对应的图片。","s":"目前图像生成模型的共同点","u":"/en/docs/Deep-Learning/大模型/Image-Generation-Models","h":"#目前图像生成模型的共同点","p":953},{"i":963,"t":"Stable Diffusion是目前图像生成的SOTA模型之一,在本章中我们快速的了解一下Stable Diffusion的大致框架以及原理。","s":"生成模型的共同结构","u":"/en/docs/Deep-Learning/大模型/Image-Generation-Models","h":"#生成模型的共同结构","p":953},{"i":965,"t":"目前,如Stable Diffusion等SOTA图像生成模型都具备以下所示的三个模块,通常情况下这三个模块分开训练,最终通过特殊的逻辑和规则组合在一起。 Text Encoder:根据输入的text prompt进行嵌入表示 Generation Model:接受Text Encoder输出的prompt表示以及从随机分布sample出的图像大小的向量,得到“中间产物”,中间产物有以下两种情况: 具有视觉意义但经过压缩比较模糊的图像 不具备视觉特征的矩阵(Latent Representation) Decoder:以上述的“中间产物”作为输入,生成出高清图像 通用框架的三个组成部分如下图所示: 再附上Stable Diffusion、DALL-E系列以及Google的Imagen的结构说明。 其中Imagen将压缩版本的图片作为Generation Model的中间产物,Stable Diffusion以及DALL-E将Latent Representation作为中间产物。 根据Imagen的实验结果,相对于Decoder即Diffusion Model的模型大小,Text Encoder的模型大小对图像生成模型的影响是非常大的。Text Encoder可以帮助模型理解prompt中在训练资料的文字-图像对中没有出现的新的词汇,从而提高图像生成的表现。 Scaling text encoder size is more important than U-Net size. While scaling the size of the diffusion model U-Net improves sample quality, we found scaling the text encoder size to be significantly more impactful than the U-Net size. Photorealistic Text-to-Image Diffusion Models with Deep Language Understanding","s":"通用框架概览","u":"/en/docs/Deep-Learning/大模型/Image-Generation-Models","h":"#通用框架概览","p":953},{"i":967,"t":"下面介绍两种用于评估图像生成模型的常用Benchmark:FID与CLIP Score。 FID(Fréchet Inception Distance)​ FID提供一个Pre-trained的CNN,该CNN通常使用预训练的Inception v3模型。在计算FID时,生成图像和真实图像分别输入到预训练的CNN中,提取出各自的特征表示向量(Representation)。这两个Representation越接近,代表输出的图像越像预期的“真实”图片。 在FID中,做出了如下重要的假设:将生成的图像真实的图像经过CNN输出的Representation看作是sample自两个高斯分布的随机变量。然后,通过计算两个特征向量的均值和协方差矩阵来得到两个高斯分布的参数。最后,利用两个高斯分布之间的Fréchet距离来衡量生成图像与真实图像之间的差异。 FID=∥μ1−μ2∥22+tr(Σ1+Σ2−2(Σ1Σ2)12)(1)\\mathrm{FID}=\\left\\|\\mu_1-\\mu_2\\right\\|_2^2+\\mathrm{tr}\\left(\\Sigma_1+\\Sigma_2-2\\left(\\Sigma_1\\Sigma_2\\right)^{\\frac12}\\right)\\tag{1}FID=∥μ1​−μ2​∥22​+tr(Σ1​+Σ2​−2(Σ1​Σ2​)21​)(1) 其中,μ1\\mu_1μ1​和μ2\\mu_2μ2​分别是第一个和第二个高斯分布的均值向量;Σ1\\Sigma_1Σ1​和Σ2\\Sigma_2Σ2​则是它们的协方差矩阵;tr(⋅)\\mathrm{tr}(\\cdot)tr(⋅)表示矩阵的迹运算。 高斯分布的均值向量从观测到的数据中计算出来的。对于一个nnn-维高斯分布,其均值向量可以表示为一个长度为nnn的列向量,其中的每一个元素都是一个特定维度的平均数,这可以通过在每个维度上进行简单的算术平均来完成。 值得注意的是,FID指标需要一定数量的生成图像和真实图像来进行统计估计。这是因为FID的计算是基于两个高斯分布之间的距离计算的,因此需要足够多的样本数量才能够获得较为准确的概率分布估计。 CLIP Score​ CLIP Score中的CLIP指的就是OpenAI的CLIP(Contrastive Language-Image Pre-Training)模型。 具体来说,CLIP Score的计算方式是将用于生成图像的文字prompt输入至CLIP的Text Encoder中得到一个Representation,再将对应prompt生成的图像输入至CLIP的Image Encoder中得到对应的Representation,计算二者之间的距离,即得到CLIP Score。分数越小,代表文字和图像更align。","s":"Benchmark","u":"/en/docs/Deep-Learning/大模型/Image-Generation-Models","h":"#benchmark","p":953},{"i":969,"t":"Generation Model​ Generation Model的生成过程其实就是Denoise的过程。具体来讲,输入文字Prompt以及从随机分布中sample出的与预期生成图像具有相同大小的噪声矩阵,预测出输入图片中的噪声分布,在输入图像中减去噪声,输出去噪后的图像。Generation Model的最终输出是中间产物,这个中间产物可以是图像的压缩版本,也可以是一个Latent Representation。因此,训练Generation Model其实就是训练一个Noise Predictor。 中间产物是压缩图像​ 当Generation Model的中间产物是压缩图像时,如Diffusion模型,在训练Generation Model时的训练资料可以通过对数据集中的原始图片添加与图像大小一致地从已知随机分布中sample出的噪声来获得。此时加入噪声后的图像可以作为压缩图像输入至Noise Predictor中,而需要预测出的噪声分布的Ground Truth就是sample出的噪声。 中间产物是Latent Representation​ 中间产物是Latent Representation时,同样采取从已知随机分布中sample出噪声再添加到网络的输入作为生成Ground Truth的策略,但是还额外需要一个Encoder来产生Latent Representation。 这里的Encoder使用数据集中的图片(即期待模型最终输出的图片)作为输入,输出该图片的某种Latent Representation,经过从随机分布中sample出的噪声的加入,输入至Noise Predictor中。从随机分布中sample出的噪声就是Noise Predictor的Ground Truth。 Decoder​ Generation Model的训练需要大量成对的(Pair)文字-图像资料。而对于Decoder来说,它的输入是中间产物(即Generation Model生成的压缩的图片或Latent Representation),输出的是还原出的高分辨率的图像,它的训练是不需要额外pair的文字-图像资料。 中间产物是压缩图像​ 当Generation Model的输出是压缩版本的图像时,Decoder的训练资料可以将从互联网上fetch到的图像作为label,并对这些图像做Down Sampling来获得压缩版本的图像作为Decoder训练时的输出。 中间产物是Latent Representation​ 当中间产物是Latent Representation时,需要训练一个Auto-Encoder,使用Encoder-Decoder的结构训练生成模型的Decoder。 具体来讲,向Encoder中输入数据集中的高清预期图片,Encoder将其转换为某种Latent Representation,Decoder再吃Encoder的输出,最终输出还原出的高清label图片,训练的方向是让输出的图片与输入的图片越接近越好。在这个过程中,不需要额外的标注,Auto-Encoder和生成模型的Decoder一起更新参数。","s":"通用框架解析","u":"/en/docs/Deep-Learning/大模型/Image-Generation-Models","h":"#通用框架解析","p":953},{"i":971,"t":"在这个模块大致介绍目前常见的几种图像生成模型,其中Diffusion Model以及GAN将在以后的文章中详细讲解。","s":"常见图像生成模型速览","u":"/en/docs/Deep-Learning/大模型/Image-Generation-Models","h":"#常见图像生成模型速览","p":953},{"i":973,"t":"变分自编码器(Variational Auto-Encoder, abbr. VAE)的训练策略是使用Encoder将输入图像对应(嵌入)到一个符合某随机分布的向量,再将该向量作为Decoder的输入,加上文字prompt后,期待模型产生合适的图像。 tip VAE在训练过程中,期待Ecoder输入多张图片后,输出的向量在一起符合某个随机分布(e.g. Normal Distribution),并不是Encoder直接输出一个Distrubution。","s":"变分自编码器(VAE)","u":"/en/docs/Deep-Learning/大模型/Image-Generation-Models","h":"#变分自编码器vae","p":953},{"i":975,"t":"基于流的生成模型采用特殊的网络结构的设计,将Encoder设计为可逆的(invertible),在训练阶段喂入多张图片,期待模型的向量符合某个随机分布。而在预测阶段,由于Encoder是可逆的,输入从该随机分布中sample出来的向量,期待输出对应的图像。 注意,由于Encoder是可逆的,在训练阶段其输入的图片矩阵的形状应该等于输出的随机分布向量的形状,在推理阶段亦然。","s":"基于流的生成模型(Flow-Based Generative Model)","u":"/en/docs/Deep-Learning/大模型/Image-Generation-Models","h":"#基于流的生成模型flow-based-generative-model","p":953},{"i":977,"t":"GAN模型的结构分为Generator和Discriminator,其中Generator接受来自随机分布的向量,产生预期图像;Discriminator接受生成器输出的图像或真实图像,输出输入的图像是真实图像的概率。在训练过程中,通过固定生成器参数来更新辨别器参数、固定辨别器参数更新生成器参数的往复交替训练来形成“两个网络对抗”的效果,从而使得生成器生成的图像更逼真(与输入的真实图像更近似)、辨别器识别是否是输入的真实图像的精确度更高。","s":"生成对抗网络(GAN)","u":"/en/docs/Deep-Learning/大模型/Image-Generation-Models","h":"#生成对抗网络gan","p":953},{"i":979,"t":"扩散模型的核心思想是对输入的图片加入噪声使其成为从某一随机分布sample出的向量,并在这个过程中训练出Noise Predictor;在生成图片时,输入从该随机分布中sample出的向量,使用训练出的Noise Predictor对噪声denoise从而获得生成的图片。 以DDPM(Denoising Diffusion Probabilistic Models)模型为例,模型在denoise时为每个denoise步骤赋予一个编号,越早进行denoise的步骤编号越大,因此,这个编号也代表着图像中噪声的严重程度。在Denoise模块中,模型根据输入的带有噪声的图片、文字prompt以及噪声的严重程度(即denoise的步骤)预测出该图片中噪声的分布,然后将输入的图片中减去预测出的噪声得到denoise后的图片。 Denoise模块的目标是预测出输入的噪声图片中的噪声,其资料可以通过对数据集中的图片不断加入从Gaussian Distribution中sample出的噪声的方法来获得,这个加噪声的过程我们称为Forward Process or Diffusion Process。此时将加入噪声后的图片、文字prompt以及denoise的步骤序号作为输入,sample出的噪声作为Ground Truth对noise predictor进行训练。","s":"扩散模型(Diffusion Model)","u":"/en/docs/Deep-Learning/大模型/Image-Generation-Models","h":"#扩散模型diffusion-model","p":953},{"i":981,"t":"相关链接 论文:arXiv 参考资料: Transformer模型详解(图解最完整版) 【機器學習2021】Transformer (下) Transformer是Sequence-to-Sequence (Seq2Seq) 模型,模型的输入是向量序列,输出同样是向量序列,且输出的长度由模型经过学习决定。","s":"NeurIPS 2017: Attention Is All You Need","u":"/en/docs/Deep-Learning/大模型/Attention-Is-All-You-Need","h":"","p":980},{"i":983,"t":"Transformer由Encoder和Decoder组成,编码器和解码器都包含6个Block,整体结构如下图所示。","s":"整体结构","u":"/en/docs/Deep-Learning/大模型/Attention-Is-All-You-Need","h":"#整体结构","p":980},{"i":986,"t":"Transformer Encoder结构如下图所示。其中,Add指的是残差连接Residual Connection,Norm指的是Layer Normalization。","s":"整体结构","u":"/en/docs/Deep-Learning/大模型/Attention-Is-All-You-Need","h":"#整体结构-1","p":980},{"i":988,"t":"对于输入的句子,对一个词汇的嵌入向量的奇数维度使用sine函数进行编码,对偶数维度使用cosine函数计算编码。 公式如下所示,其中pospospos指的是该词汇在整个输入句子中的位置,2i2i2i以及2i+12i+12i+1指的是该词汇的嵌入向量中的维度,dmodeld_{model}dmodel​指的是在嵌入层之后嵌入向量的总维度。即对于每个输入词汇,都要计算dmodeld_{model}dmodel​次位置编码。 PE(pos,2i)=sin(pos100002i/dmodel)(1)PE_{(pos,2i)}=sin(\\frac{pos}{10000^{2i/d_{\\mathrm{model}}}}) \\tag{1}PE(pos,2i)​=sin(100002i/dmodel​pos​)(1) PE(pos,2i+1)=cos(pos100002i/dmodel)(2)PE_{(pos,2i+1)}=cos(\\frac{pos}{10000^{2i/d_{\\mathrm{model}}}}) \\tag{2}PE(pos,2i+1)​=cos(100002i/dmodel​pos​)(2) 根据三角函数的性质,对于pos+kpos+kpos+k位置的嵌入向量的某一维度(2i2i2i或2i+12i+12i+1)而言,可以表示为pospospos位置与kkk位置的嵌入向量的2i2i2i与2i+12i+12i+1维度的线性组合,使得位置向量中蕴含了相对位置的信息。 PE(pos+k,2i)=PE(pos,2i)×PE(k,2i+1)+PE(pos,2i+1)×PE(k,2i)PE(pos+k,2i+1)=PE(pos,2i+1)×PE(k,2i+1)−PE(pos,2i)×PE(k,2i)(3)\\begin{array}{l}PE(pos+k,2i)=PE(pos,2i)\\times PE(k,2i+1)+PE(pos,2i+1)\\times PE(k,2i)\\\\PE(pos+k,2i+1)=PE(pos,2i+1)\\times PE(k,2i+1)-PE(pos,2i)\\times PE(k,2i)\\end{array} \\tag{3}PE(pos+k,2i)=PE(pos,2i)×PE(k,2i+1)+PE(pos,2i+1)×PE(k,2i)PE(pos+k,2i+1)=PE(pos,2i+1)×PE(k,2i+1)−PE(pos,2i)×PE(k,2i)​(3) 最终,位置编码向量的维度与词汇的嵌入维度相同,进行element-wise的相加操作。 InputEmbedding(pos,i)=WordEmbedding(pos,i)+PositionEncoding(pos,i)(4)InputEmbedding(pos,i)=WordEmbedding(pos,i)+PositionEncoding(pos,i) \\tag{4}InputEmbedding(pos,i)=WordEmbedding(pos,i)+PositionEncoding(pos,i)(4)","s":"位置编码(Positional Encoding)","u":"/en/docs/Deep-Learning/大模型/Attention-Is-All-You-Need","h":"#位置编码positional-encoding","p":980},{"i":990,"t":"输入向量由Word Embedding和Positional Embedding相加得到。输入序列经过Mutil-Head Self-Attention之后,通过Residual Connection加上自身的输入向量,再经过Layer Normalization,之后送入FCN并进行Residual Connection加上送入FCN的输入自身,最终再进行Layer Normalization,以上构成了一个Encoder Block。每一个Block输出的向量序列长度等于输入的向量序列长度。","s":"具体结构","u":"/en/docs/Deep-Learning/大模型/Attention-Is-All-You-Need","h":"#具体结构","p":980},{"i":992,"t":"Decoder的任务是生成输出,可以根据是否一次性生成输出分为Autoregressive(自回归,abbr. AT)以及Non-Autoregressive(非自回归,abbr. NAT)两种模式。 自回归类型的Decoder需要逐步生成输出,并将之前自身输出的所有词汇经过嵌入层后生成token作为下一次的输入,通常每次生成一个词或一个符号。这种方式的缺点是需要保存和更新词表中的所有可能选项,因此在大词汇表上可能会变得非常慢。然而,它的优点是能够利用上下文信息来生成输出,这有助于提高翻译的质量。 非自回归类型的Decoder试图在一次操作中生成整个输出序列。这通常通过使用诸如注意力机制等策略来实现,这些策略允许解码器关注输入序列的不同部分,同时生成输出序列的不同部分。NAT的优点在于其高效性,因为它不需要保存和更新大量的可能选项。然而,由于它不能利用上下文信息来生成输出,因此其生成的输出质量普遍会低于AT。","s":"Decoder","u":"/en/docs/Deep-Learning/大模型/Attention-Is-All-You-Need","h":"#decoder","p":980},{"i":994,"t":"整体结构​ 词汇表(Vocabulary)​ 词汇表(Vocabulary)是一个包含了在特定语言或任务中所有可能出现的所有单词或标记的集合。在自然语言处理(NLP)中,词汇表是训练模型时所使用的唯一单词的集合,由具体的生成任务而确定。 Decoder每一步的输出是一个经过Softmax的Probability Distribution(概率分布),代表着词汇表中每一个词汇当前生成的概率,取最大概率值的词汇便是模型当前时间步输出的词汇。 Begin符号​ 解码器(Decoder)在每个时间步(或每个解码步骤)的输入都来自于前一个时间步自身的输出以及编码器(Encoder)的输出。特别地,首个时间步的输入是Begin符号以及编码器(Encoder)的输出,在每个后续的时间步,解码器的输入会是前一个时间步自身的输出以及编码器(Encoder)的输出,直到生成序列的结束。 特殊符号 Begin符号是在Lexicon中添加的特殊符号,用来表示Decoder生成的开始。Begin符号通常被嵌入到一个低维的连续向量空间中,这个向量空间是通过嵌入层(Embedding Layer)学习得到的,在嵌入层中,离散的符号被映射到一个实数向量。 Begin符号又叫Start符号或SOS符号(Start Of Sentence),都是表示生成的开始。End符号又叫EOS符号(End Of Sentence)。 End符号​ 在Decoder的生成中,每一个时间步的输出是词汇表中每一个单词经过Softmax之后的概率分布。为了保证生成任务可以通过模型自己停止而不是一直重复,我们向Decoder的输出中加入End符号的生成,即每一次输出除了词汇表的所有词汇外还有End符号的概率,当End符号是在所有词汇中概率最大的词汇时,生成停止。 掩码多头自注意力机制(Masked Multi-Head Self-Attention)​ 为什么使用掩码多头自注意力 掩码多头自注意力与Transformer训练时采取的Teacher Forcing策略有很大的关系,具体分析见下文《Teacher Forcing与Masked Multi-Head Self-Attention》的讨论环节:Teacher Forcing与Masked Multi-Head Self-Attention 观察Decoder的整体结构,掩码多头自注意力的输入是添加位置编码之后的Decoder当前时间步之前的所有输出单词经过嵌入后的向量表示。 掩码多头自注意力机制用于确保在生成序列的过程中,每个位置只能关注到该位置及其之前的位置。这是通过在Self-Attention的计算中应用一个掩码(mask)来实现的。这确保了在生成序列时,每个位置只能查看到它之前的信息,而不能查看到未来的信息,从而实现了自回归性质。 具体来说,添加掩码后的自注意力机制在生成注意力分数时不再考虑输入序列的所有向量。如在输入向量aia^iai在计算注意力分数时,只将aia^iai的query向量与a1a^1a1至aia^{i}ai的iii个key向量做dot product,而不考虑aia^iai之后的输入的key。 tip 对于第sss个时间步,Masked Mutil-Head Self-Attention的输入是时间步sss之前Decoder生成的所有输出单词的嵌入表示。 交叉注意力(Cross-Attention)​ 交叉注意力是连接Encoder和Decoder的桥梁,也是Decoder输入的重要组成部分。 交叉注意力接收两个输入序列,一个来自编码器(Encoder)的输出序列(通常是输入序列的表示),另一个来自解码器(Decoder),是经过掩码多头自注意力机制的输出序列(通常是正在生成的序列的中间表示)。 在交叉注意力中,每次计算注意力得分的query来自解码器,key和value来自编码器。解码器每个向量的查询(Query)与编码器位置的键(Key)进行点积得到了注意力分数,通过Softmax操作后转换为注意力权重,再与编码器位置的值(Value)weighted sum得到加权注意力分数,最终将加权注意力分数求和得到每个输入向量的输出。","s":"Autoregressive Decoder(AT)","u":"/en/docs/Deep-Learning/大模型/Attention-Is-All-You-Need","h":"#autoregressive-decoderat","p":980},{"i":998,"t":"在 Transformer 中,Encoder 不像 Decoder 需要生成序列,因此它通常不涉及标签的预测。Encoder 的训练通常是在整个模型中的联合训练中进行的,通过优化整个模型的损失函数来进行。 Transformer 的整体训练过程一般分为以下几个步骤: 编码器(Encoder)的正向传播: 输入序列经过编码器的正向传播,产生一组上下文表示。 解码器(Decoder)的正向传播: 解码器接收上下文表示,并生成目标序列。 计算损失: 通过比较生成的目标序列与实际目标序列,计算损失。在 Decoder 中,通常使用交叉熵损失函数。 反向传播: 根据损失,进行反向传播,更新模型参数。这个过程中,梯度通过整个模型传播,包括 Encoder 和 Decoder。 整个模型的参数(包括 Encoder 和 Decoder)都是通过最小化整体损失来进行联合训练的。这是因为整体模型需要协同工作,Encoder 的表示对于 Decoder 的性能至关重要。在训练过程中,梯度从损失函数传播回整个模型,包括 Encoder 和 Decoder,从而更新它们的参数。 需要注意的是,Transformer 模型通常使用的是端到端的训练方式,整个模型的参数是一次性更新的。在某些场景下,你可能会看到对 Encoder 或 Decoder 进行微调(fine-tuning)的情况,但这是在特定应用场景下的调整,不是 Transformer 模型的标准训练方式。","s":"损失函数","u":"/en/docs/Deep-Learning/大模型/Attention-Is-All-You-Need","h":"#损失函数","p":980},{"i":1000,"t":"在Transformer的推理阶段,自回归类型的Decoder根据分词方式的不同,一个词汇一个词汇的输出,将当前时间步之前生成的所有词汇作为输入load进入Decoder中。但在训练时如果遵从同样的生成范式会大大降低效率,并且面临则一步错步步错的风险(Error Propagation)。 因此使用Teacher Forcing策略,将Ground Truth一次性喂到Decoder中,使模型更快收敛并且避免误差积累的问题。 但是,自回归Decoder在推理时是一个一个词汇产生的,在产生第iii个词汇时其后续的词汇是未知的,更不用说进行注意力分数的就算了,而在训练过程中使用Teacher Forcing时却可以得到第i+1i+1i+1个及其之后词汇的注意力信息,如果不添加其他策略显然会对模型的泛化能力造成很大的影响,而且这并不符合自回归(Autoregression)的特性。为了解决这个问题,掩码多头注意力机制应运而生,在训练阶段将模型在时间发展顺序的右侧的输入masked掉,防止模型学习到不该学习的注意力。","s":"Teacher Forcing","u":"/en/docs/Deep-Learning/大模型/Attention-Is-All-You-Need","h":"#teacher-forcing","p":980},{"i":1002,"t":"参考文献:MultiHead-Attention和Masked-Attention的机制和原理 与Encoder的多头自注意力不同,在Decoder中,为注意力机制应用了掩码,使模型只能关注到当前位置及其之前的位置,而不能访问未来的信息。这解决了引入Teacher Forcing出现的问题,避免了训练与推理阶段的Mismatch,维护了自回归的特性。 具体来说,模拟推理过程中第一个词汇时的场景。当模型只有voc1voc_1voc1​词汇向量输入时,在Decoder中,voc1voc_1voc1​与自身计算注意力分数,于是有 [o1]=[α1,1′][v1](5)\\begin{bmatrix}o_1\\end{bmatrix}=\\begin{bmatrix}\\alpha_{1,1}^{\\prime}\\end{bmatrix}\\begin{bmatrix}v_1\\end{bmatrix}\\tag{5}[o1​​]=[α1,1′​​][v1​​](5) 我们再模拟训练过程中使用Teacher Forcing,一次性输入为两个词汇voc1voc_1voc1​与voc2voc_2voc2​的情况,于是有 [o1o2]=[α1,1′α2,1′α1,2′α2,2′][v1v2](6)\\begin{bmatrix}o_1\\\\o_2\\end{bmatrix}=\\begin{bmatrix}\\alpha_{1,1}^{\\prime}&\\alpha_{2,1}^{\\prime}\\\\\\alpha_{1,2}^{\\prime}&\\alpha_{2,2}^{\\prime}\\end{bmatrix}\\begin{bmatrix}v_1\\\\v_2\\end{bmatrix} \\tag{6}[o1​o2​​]=[α1,1′​α1,2′​​α2,1′​α2,2′​​][v1​v2​​](6) 然而,为了使训练过程中符合推理时自回归的特性,理想的输出应该是 [o1o2]=[α1,1′0α1,2′α2,2′][v1v2](7)\\begin{bmatrix}o_1\\\\o_2\\end{bmatrix}=\\begin{bmatrix}\\alpha_{1,1}^{\\prime}&0\\\\\\alpha_{1,2}^{\\prime}&\\alpha_{2,2}^{\\prime}\\end{bmatrix}\\begin{bmatrix}v_1\\\\v_2\\end{bmatrix} \\tag{7}[o1​o2​​]=[α1,1′​α1,2′​​0α2,2′​​][v1​v2​​](7) 继续扩展,当有nnn个输入词汇时,应该有 [o1o2⋮on]=[α1,1′0⋯0α1,2′α2′⋯0⋮⋮⋮α1,n′α2,n′⋯αn,n′][v1v2⋮vn](8)\\begin{bmatrix}o_1\\\\o_2\\\\\\vdots\\\\o_n\\end{bmatrix}=\\begin{bmatrix}\\alpha'_{1,1}&0&\\cdots&0\\\\\\alpha'_{1,2}&\\alpha'_2&\\cdots&0\\\\\\vdots&\\vdots&&\\vdots\\\\\\alpha'_{1,n}&\\alpha'_{2,n}&\\cdots&\\alpha'_{n,n}\\end{bmatrix}\\begin{bmatrix}v_1\\\\v_2\\\\\\vdots\\\\v_n\\end{bmatrix}\\tag{8}⎣⎡​o1​o2​⋮on​​⎦⎤​=⎣⎡​α1,1′​α1,2′​⋮α1,n′​​0α2′​⋮α2,n′​​⋯⋯⋯​00⋮αn,n′​​⎦⎤​⎣⎡​v1​v2​⋮vn​​⎦⎤​(8) 因此,我们需要将当前时间步计算的词汇的时间顺序右侧的输入词汇全部掩码,置为0。 在源码中,有如下片段实现掩码: if mask is not None: scores = scores.masked_fill(mask == 0, -1e9) p_attn = scores.softmax(dim=-1) 在源码中,将mask置为负无穷是因为这是在经过Softmax之前进行的掩码,在经过Softmax之后负无穷小就变成了0。","s":"Teacher Forcing与Masked Multi-Head Self-Attention","u":"/en/docs/Deep-Learning/大模型/Attention-Is-All-You-Need","h":"#teacher-forcing与masked-multi-head-self-attention","p":980},{"i":1004,"t":"tip 在以前的文章图像生成模型中已经大概介绍了目前SOTA的图像生成模型的共同点,并初步了解了Diffusion Model,在这篇文章中将详细讲解扩散模型的数学原理等。","s":"扩散模型(Diffusion Model)","u":"/en/docs/Deep-Learning/大模型/Diffusion-Model","h":"","p":1003},{"i":1006,"t":"首先回顾一下扩散模型的基本概念和生成过程,可以大概分为两步: Forward Process:对训练集中的图片不断加入与图片shape相同的、从某随机分布中sample出的噪声,直至图片可以被认为是从该随机分布中sample出的矩阵。 Forward Process又叫做Diffusion Process,在这一步中产生的噪声-加入噪声的图像对可以用来训练Noise Predictor,即从有噪声的图像中预测出其中的噪声,再从输入中减去噪声得到降噪后的图片。 图像生成的原理 这一步的目的也同样在之前的文章图像生成模型中提到过:由于根据文字prompt期待生成的图像并不是固定的,可以认为生成的图片在目标域(Target Domain)符合某种分布。因此目前的SOTA模型除了将文字prompt作为输入,还从某随机分布中sample出图片shape的随机向量(矩阵)作为输入,期待模型根据prompt将源域(Source Domain)输入的随机向量映射到目标域的分布,生成对应的图片。 Reverse Process:使用Diffusion Process训练的Noise Predictor,根据文字Prompt对从随机分布中sample出的图片大小的噪声图片进行降噪,得到原图。 值得注意的是,变分自编码器(Variational Auto-Encoder, abbr. VAE)与Diffusion Model非常相似:VAE对训练集中的原始图像使用Encoder将其变换为某种Latent Representation,这种Latent Representation的分布也是符合某种随机分布的,VAE再通过Decoder将期待生成的目标域图像还原出来。 在下面的文章中我们也会学习一下VAE的数学原理,从VAE到Diffusion Model的具体数学推导,可以参考胡老师推荐的论文Understanding Diffusion Models: A Unified Perspective。 下面我们以DDPM论文中的原图来分析DDPM的训练与推理过程。","s":"基本概念","u":"/en/docs/Deep-Learning/大模型/Diffusion-Model","h":"#基本概念","p":1003},{"i":1008,"t":"循环开始,重复以下步骤; 首先从数据集中sample出原始图像x0\\mathbf{x}_0x0​; ttt是从1,…,T1,\\ldots,T1,…,T范围中sample出的一个integer; ϵ\\epsilonϵ是从Normal Distribution中sample出的与x0\\mathbf{x}_0x0​相同大小的噪声; 根据如下规则进行梯度下降,训练Noise Predictor: ∇θ∥ϵ−ϵθ(αˉtx0+1−αˉtϵ,t)∥2(1)\\nabla_{\\theta}\\left\\|\\boldsymbol{\\epsilon}-\\boldsymbol{\\epsilon}_{\\theta}(\\sqrt{\\bar{\\alpha}_{t}}\\mathbf{x}_{0}+\\sqrt{1-\\bar{\\alpha}_{t}}\\boldsymbol{\\epsilon},t)\\right\\|^{2}\\tag{1}∇θ​∥∥​ϵ−ϵθ​(αˉt​​x0​+1−αˉt​​ϵ,t)∥∥​2(1) 首先对x0\\mathbf{x}_0x0​和ϵ\\epsilonϵ根据权重αˉ1,αˉ2,...αˉT\\bar{\\alpha}_1,\\bar{\\alpha}_2,...\\bar{\\alpha}_Tαˉ1​,αˉ2​,...αˉT​做weighted sum产生加入噪声后的图像。通常来说,αˉ1\\bar{\\alpha}_1αˉ1​至αˉT\\bar{\\alpha}_TαˉT​是递减的,当在第2步中sample到的ttt越大,则原始图像x0\\mathbf{x}_0x0​对新图像的贡献越大。 ϵθ\\epsilon_{\\theta}ϵθ​是Noise Predictor,其输入是加入噪声的图像以及sample出的ttt,而ϵθ\\epsilon_\\thetaϵθ​训练的Ground Truth就是第3步中sample出的噪声ϵ\\epsilonϵ; 直至噪声预测模型ϵθ\\epsilon_\\thetaϵθ​训练至收敛。","s":"训练过程","u":"/en/docs/Deep-Learning/大模型/Diffusion-Model","h":"#训练过程","p":1003},{"i":1010,"t":"从Normal Distribution中sample出图片大小的噪声xT\\mathbf{x}_TxT​; ttt从T,…,1T,\\ldots,1T,…,1范围循环TTT次; 对与每一次以ttt计数的循环,若t>1t>1t>1,则从Normal Distribution中sample出z\\mathbf{z}z,否则z=0\\mathbf{z}=\\mathbf{0}z=0; 根据如下公式得到降噪后的图像: xt−1=1αt(xt−1−αt1−αˉtϵθ(xt,t))+σtz(2)\\mathbf{x}_{t-1}=\\frac{1}{\\sqrt{\\alpha_{t}}}\\left(\\mathbf{x}_{t}-\\frac{1-\\alpha_{t}}{\\sqrt{1-\\bar{\\alpha}_{t}}}\\boldsymbol{\\epsilon}_{\\theta}(\\mathbf{x}_{t},t)\\right)+\\sigma_{t}\\mathbf{z}\\tag{2}xt−1​=αt​​1​(xt​−1−αˉt​​1−αt​​ϵθ​(xt​,t))+σt​z(2) 其中,xt\\mathbf{x}_txt​代表上一步骤中输出的降噪后的图像,xt−1\\mathbf{x}_{t-1}xt−1​代表当前步骤即将输出的降噪后的图像,ϵθ\\epsilon_\\thetaϵθ​代表Noise Predictor预测出的噪声,αˉ1,αˉ2,...αˉT\\bar{\\alpha}_1,\\bar{\\alpha}_2,...\\bar{\\alpha}_Tαˉ1​,αˉ2​,...αˉT​以及α1,α2,...αT\\alpha_1,\\alpha_2,...\\alpha_Tα1​,α2​,...αT​是两组权重序列; 结束本次for循环; 当t=1t=1t=1时,得到x0\\mathbf{x}_0x0​,即最终降噪后的图像。","s":"推理过程","u":"/en/docs/Deep-Learning/大模型/Diffusion-Model","h":"#推理过程","p":1003},{"i":1012,"t":"本篇论文主要基于 IPL 的思想实现。本仓库大部分从 IPL-Zero-Shot-Generative-Model-Adaptation fork 而来并做出了一定修改。","s":"本科毕业论文:基于 Prompt Learning 的视觉-语言大模型在图像生成中的应用与研究","u":"/en/docs/Deep-Learning/大模型/Prompt Learning/Undergraduate-Dissertation","h":"","p":1011},{"i":1015,"t":"conda create -n ipl python=3.8 conda activate ipl","s":"创建 Anaconda 虚拟环境","u":"/en/docs/Deep-Learning/大模型/Prompt Learning/Undergraduate-Dissertation","h":"#创建-anaconda-虚拟环境","p":1011},{"i":1017,"t":"请确保 NVIDIA 驱动、CUDA 以及 PyTorch 之间版本互相匹配。 conda install pytorch torchvision torchaudio pytorch-cuda=11.8 -c pytorch -c nvidia pip install ftfy regex tqdm ninja pip install git+https://github.com/openai/CLIP.git","s":"安装依赖","u":"/en/docs/Deep-Learning/大模型/Prompt Learning/Undergraduate-Dissertation","h":"#安装依赖","p":1011},{"i":1019,"t":"预训练的源域生成器可以通过 Google Drive 或者 Tsinghua Cloud 下载,并将其置于 ./pre_stylegan 文件夹中。","s":"下载预训练生成器","u":"/en/docs/Deep-Learning/大模型/Prompt Learning/Undergraduate-Dissertation","h":"#下载预训练生成器","p":1011},{"i":1023,"t":"ctx_init 参数用于初始化 prompts,官方提供的演示 context 是a photo of a。 source_prompts = [prompt_prefix + \" \" + args.source_class] target_prompts = [prompt_prefix + \" \" + args.target_class] 源域的初始提示词 source_prompts 是 ctx_init 与源域标签的组合。若源域标签为 photo,则源域的初始提示词是 a photo of a photo。目标域的初始提示词同理。","s":"prompts 的初始化","u":"/en/docs/Deep-Learning/大模型/Prompt Learning/Undergraduate-Dissertation","h":"#prompts-的初始化","p":1011},{"i":1025,"t":"源域以及目标域的初始提示词接下来会进行 tokenize: source_tokenized_prompts = torch.cat([clip.tokenize(p) for p in source_prompts]).to(device) # (1, 77) 'sot a photo of a photo eot' 在经过tokenize后为tensor [[49406, 320, 1125, 539, 320, 1125, 49407, etc]] # 77是CLIP在tokenize方法中缺省的context_length,超过context_length将被truncate,不足的将用0补齐 target_tokenized_prompts = torch.cat([clip.tokenize(p) for p in target_prompts]).to(device) # (1, 77) 'sot a photo of a disney' 在经过tokenize后为tensor [[49406, 320, 1125, 539, 320, 4696, 49407, etc]] # 77是CLIP在tokenize方法中缺省的context_length,超过context_length将被truncate,不足的将用0补齐 tokenize 是 CLIP 对送入的 prompt 字符串进行标记化处理,在头部和尾部添加 startoftext 以及 endoftext 标记,最终为两个首尾标记和全部单词生成 int 标记。其中 CLIP 模型缺省的 context_length 是77,若 prompt 大于 77 会进行截断(truncate),若小于 77 会进行补零,因此 source_tokenized_prompts 与 target_tokenized_prompts 的形状均为 (1, 77)。 在提示词标记化之后,将进行嵌入表示 embedding: source_embedding = clip_model.token_embedding(source_tokenized_prompts).type(clip_model.dtype) # (1, 77, 512) 其中512是CLIP中的n_dim,token_embedding层的词嵌入的维度 target_embedding = clip_model.token_embedding(target_tokenized_prompts).type(clip_model.dtype) # (1, 77, 512) 其中512是CLIP中的n_dim,token_embedding层的词嵌入的维度","s":"prompts 的 tokenize 与 embedding","u":"/en/docs/Deep-Learning/大模型/Prompt Learning/Undergraduate-Dissertation","h":"#prompts-的-tokenize-与-embedding","p":1011},{"i":1027,"t":"在 Mapper 生成 prompts 后进行 prompts 的特征提取时,需要传入 tokenize 之后的人工初始化 prompt(‘a photo of a photo.’或‘a photo of a disney.’),用于选择 eot 符号对应的维度来进行特征投影(因为 eot 作为整个句子的结尾,被认为该维度包含更多的信息。具体做法:由于在 tokenize 之后,eot 符号对应的维度的值最大,因此可使用 argmax 来定位),以保证最后得到的特征形状与图像特征提取的输出形状相同,使得后续可以进行对比学习的损失计算。","s":"compute_text_features 的实现细节","u":"/en/docs/Deep-Learning/大模型/Prompt Learning/Undergraduate-Dissertation","h":"#compute_text_features-的实现细节","p":1011},{"i":1029,"t":"Z空间与W空间​ # Z空间到W空间的变换 sample_z = mixing_noise(args.batch_mapper, 512, args.mixing, device) # (batch_size, 512) sample_w = net.generator_frozen.style(sample_z) # (batch_size, 512) Z 空间和 W 空间是 StyleGAN 模型中两种不同的隐变量空间,分别用于控制生成图像的随机特征和样式信息。W 空间通过对 Z 空间的映射得到。 Z 空间(Latent Space Z): Z 空间是随机噪声空间,通常由随机噪声向量组成,表示了图像的随机特征。 在 StyleGAN 中,Z 空间的维度通常为 512 维。这意味着一个 Z 向量由 512 个数字组成,每个数字表示了图像的一个随机特征的强度或者方向。 W 空间(Style Space W): W 空间经过特征解耦的隐空间,与 Z 空间相比更加解耦合。 在 StyleGAN 中,W 空间的维度也通常为 512 维,是通过mapping network进行映射得到的,mapping network由PixelNorm层与EqualLinear层构成。以下代码节选自sg2_model.py '''mapping network''' layers = [PixelNorm()] for i in range(n_mlp): layers.append( EqualLinear( style_dim, style_dim, lr_mul=lr_mlp, activation=\"fused_lrelu\" ) ) self.style = nn.Sequential(*layers) Z 空间与 W 空间的关系: 在 StyleGAN 中,通常会先将一个 Z 向量映射到 W 空间,然后再将 W 向量输入到生成器网络中生成图像。 Z 空间提供了初始随机噪声,而 W 空间则通过特征解耦提供更多控制图像风格的灵活性。通过对 Z 和 W 之间的映射以及 W 在生成器中的应用,StyleGan 实现了高度可控且具有良好生成效果的图像合成。 损失函数​ 在代码中,stage 1 的损失函数是 global_clip_loss,该损失由三部分组成: 对比学习损失:Mapper 生成的源域 prompts 的特征(注意,这里的 prompts 特征是与人工初始化的 prompts 的特征做过 element-wise 相加后的特征)与源域图像特征的余弦相似度组成的对比学习损失; 目标域正则化损失:Mapper 生成的目标域 prompts 的特征与目标域文本标签特征的余弦相似度,这里生成的目标域 prompts 特征同样也是与人工初始化的 prompts 做过加法的。注意该损失有权重 lambda_l。 源域正则化:计算生成的源域prompts与源域标签之间的余弦相似度,由 lambda_src 控制,默认是 0。","s":"训练 stage 1","u":"/en/docs/Deep-Learning/大模型/Prompt Learning/Undergraduate-Dissertation","h":"#训练-stage-1","p":1011},{"i":1031,"t":"确定目标域生成域需要更新的层​ 在训练的第二阶段进行前向传播时,需要先对目标域生成器(generator_trainable)的所有层进行 unfreeze,然后对更新哪些层做出选择,承担选择任务的功能函数:model.ZSSGAN.ZSSGAN.determine_opt_layers,最后 freeze 所有层后再 unfreeze 选择的网络层。 if self.training and self.auto_layer_iters > 0: self.generator_trainable.unfreeze_layers() # unfreeze train_layers = self.determine_opt_layers() # layer to train if not isinstance(train_layers, list): train_layers = [train_layers] self.generator_trainable.freeze_layers() self.generator_trainable.unfreeze_layers(train_layers) # unfreeze 具体选择带更新网络层的策略: 将 W 空间的隐向量送入目标域生成器(SG2Generator)中,并进行反向传播,此时可以通过反向传播后 W 空间隐向量不同维度的更新幅度来衡量不同网络层的影响力,因此选出更新幅度最大的维度就可以确定在 Model Adaption 中需要更新的网络层。 之所以 W 空间编码在 n_latent 维度上的序号就代表着对应的网络层数的序号,是因为 StyleGAN 生成器的结构决定了这一点:StyleGAN 生成器中,W 空间编码的不同维度会被送入生成器网络的不同层,控制这些层的特征映射 (feature mapping)。具体来说,W 空间编码的每个维度会被重复 n_latent 次,作为该层的风格向量 (style vector),通过 AdaIN (Adaptive Instance Normalization) 层控制该层的特征映射。因此,W 空间编码的第 i 个维度会影响生成器网络中第 i 层的特征映射。当某个维度的 W 值被更新的程度较大时,就意味着该维度对应的层在生成目标图像时起到了重要作用,需要被优化。 损失函数​ stage 2 的损失函数是 CLIP Loss 类中的 clip_directional_loss,该损失函数由两部分组成: edit_direciton:源域生成器与目标域生成器生成的图片在经过 image encdoer 后做 element-wise 的相减,最后除以自身的 L2 Norm 方便后续与 target_direction 计算余弦相似度 target_direction:Mapper 产生的源域和目标域 prompts 的 text_features 做element-wise相减后,最后初一自身的 L2 Norm 以便后续与 edit_direction 计算余弦相似度","s":"训练 stage 2","u":"/en/docs/Deep-Learning/大模型/Prompt Learning/Undergraduate-Dissertation","h":"#训练-stage-2","p":1011},{"i":1033,"t":"参考文献:GAN 的几种评价指标 Inception Score(IS) 评估图像的质量和多样性 质量:把生成的图片 xxx 输入 Inception V3 中,得到输出 1000 维的向量 yyy,向量的每个维度的值对应图片属于某类的概率。对于一个清晰的图片,它属于某一类的概率应该非常大,而属于其它类的概率应该很小。用专业术语说, p(y∣x)p(y|x)p(y∣x)​ 的熵应该很小(熵代表混乱度,均匀分布的混乱度最大,熵最大)。 多样性: 如果一个模型能生成足够多样的图片,那么它生成的图片在各个类别中的分布应该是平均的,假设生成了 10000 张图片,那么最理想的情况是,1000 类中每类生成了 10 张。转换成术语,就是生成图片在所有类别概率的边缘分布 p(y)p(y)p(y)​ 熵很大(均匀分布)。 因此,对于 IS 我们需要求的两个量就是 p(y∣x)p(y|x)p(y∣x) 和 p(y)p(y)p(y)。实际中,选取大量生成样本,用经验分布模拟 p(y)p(y)p(y): p^(y)=1N∑i=1Np(y∣x(i))\\hat{p}(y)=\\frac{1}{N}\\sum_{i=1}^{N}p(y|\\mathbf{x}^{(i)})p^​(y)=N1​i=1∑N​p(y∣x(i)) Inception Score 的完整公式如下: IS(G)=exp⁡(Ex∼pgDKL(p(y∣x)∣∣p(y)))\\mathbf{IS}(G)=\\exp\\left(\\mathbb{E}_{\\mathbf{x}\\sim p_g}D_{KL}\\left(p(y|\\mathbf{x})||p(y)\\right)\\right)IS(G)=exp(Ex∼pg​​DKL​(p(y∣x)∣∣p(y))) 通常计算 Inception Score 时,会生成 50000 个图片,然后把它分成 10 份,每份 5000 个,分别代入公式计算 10 次 Inception Score,再计算均值和方差,作为最终的衡量指标(均值±方差)。但是 5000 个样本往往不足以得到准确的边缘分布 p(y)p(y)p(y)​,尤其是像 ImageNet 这种包含 1000 个类的数据集。 StyleGAN-nada 以及 IPL 在经过 batch_size 为 2,iteration 为 300 的训练后(其中 IPL 的 Mapper 是以 batch_size 为 32,iteration 为 300 进行训练的),二者的 IS 分别为 (2.2960, 0.2042) 以及 (2.6420, 0.1959)。 Fréchet Inception Distance(FID) 评估目标域的风格 计算 IS 时只考虑了生成样本,没有考虑真实数据,即 IS 无法反映真实数据和样本之间的距离,IS 判断数据真实性的依据,源于 Inception V3 的训练集 ImageNet,在 Inception V3 的“世界观”下,凡是不像 ImageNet 的数据,都是不真实的,都不能保证输出一个 sharp 的 predition distribution。因此,要想更好地评价生成网络,就要使用更加有效的方法计算真实分布与生成样本之间的距离。 FID 距离计算真实样本,生成样本在特征空间之间的距离。首先利用 Inception 网络来提取特征,然后使用高斯模型对特征空间进行建模,再去求解两个特征之间的距离,较低的 FID 意味着较高图片的质量和多样性。 StyleGAN-nada 以及 IPL 在经过 batch_size 为 2,iteration 为 300 的训练后(其中 IPL 的 Mapper 是以 batch_size 为 32,iteration 为 300 进行训练的),二者的 FID 分别为 84 以及 58。 Single Image Fréchet Inception Score(SIFID) FID 测量生成的图像的深层特征分布与真实图像的分布之间的偏差。在 ICCV 2019 Best Paper 中提出了 SIFID,只使用一张真实目标域的图像。与 FID 不同,SFID 不使用 Inception Network 中最后一个池化层之后的激活矢量(每个图像一个向量),而是在第二个池层之前的卷积层输出处使用深层特征的内部分布(feature map 中每个位置一个向量)。最终 SIFID 是真实图像和生成的样本中这些特征的统计数据之间的 FID。 Structural Consistency Score(SCS) 评估图像的结构保存能力 Identity Similarity(ID) 评估图像的特征保存能力","s":"定量分析指标","u":"/en/docs/Deep-Learning/大模型/Prompt Learning/Undergraduate-Dissertation","h":"#定量分析指标","p":1011},{"i":1036,"t":"新增了自定义图像风格迁移功能。 HyperStyle 中的 e4e encoder 将自定义的真实图像编码至 StyleGAN2 中的 W 空间生成 latent codes,再将其分别输入至源域生成器以及目标域生成器以代替原始的从正态分布中 sample 出的随机向量生成的 w_codes,从而得到相应的图片。其中 e4e encoder 来源于 HyperStyle 提供的预训练 checkpoint。 使用方法:运行 inference.py,设置对应的参数,如生成器以及 e4e encoder 的路径、图像路径等,最后运行即可。 修改日志​ 第一次尝试只加载了 w_encoder 类及其对应 checkpoint 参数,导致并未将真实图片编码到 StyleGAN 的 W 空间中,没有 inversion 出合理的结果 第二次尝试使用了 restyle_e4e_encoder,但是没有使用 dlib 进行 alignment,也没有使用 restyle 模型在反演时使用的多次进行前向传播来修正 latent code 的策略。此次尝试虽然反演出了合理的人像,但是人像的特征保存能力非常弱 第三次尝试解决了上一次发现的问题,加入 dlib 提供的 landmark 检测以实现 alignment,并且使用 run_loop 函数在 restyle_e4e_encoder 中进行多次前向传播以修正得到的 W 空间的 latent code,效果较好 对比 pSp 和 e4e encoder,pSp 对人脸图像的还原能力较强,但是会导致目标域图像具有随机的彩色光晕","s":"自定义图像风格迁移","u":"/en/docs/Deep-Learning/大模型/Prompt Learning/Undergraduate-Dissertation","h":"#自定义图像风格迁移","p":1011},{"i":1039,"t":"作用​ 人工设计的 prompts 在计算 text_features 时用于定位 eot 层符号所表示的维度来进行投影,但不参与 text_features 的实际计算 在训练 Mapper 的 stage 1 的损失函数中,在计算对比损失函数时,Mapper 学习到的 prompts 的文字特征特征会与人工设计的 prompts 的文字特征进行 element-wise 的相加,最后再与 源域生成器得到的图片的图像特征进行对比损失计算 思考​ IPL 方法对 Mapper 学习到的 prompts 除了(1)使用对比学习使 prompts 学习到源域图片的特征以及(2)使用域正则化使得 prompts 向目标域标签对齐之外,并没有使用其他与人工设计的 prompts 有关的正则化方式来约束 prompts 的学习,因此人工设计的 prompts 可能并没有起到太大的约束作用。 如果对比学习损失是为了让 Mapper 自监督学习到图片的特征外,那么是否可以对域正则化损失进行改进,约束学习到的 prompts 向人工设计的初始化 prompts 对齐,以实现类似于 Stable Diffusion 类似的 prompts 控制图像生成的效果。","s":"训练阶段人工 prompts 的作用是什么?","u":"/en/docs/Deep-Learning/大模型/Prompt Learning/Undergraduate-Dissertation","h":"#训练阶段人工-prompts-的作用是什么","p":1011},{"i":1041,"t":"Mapper 的作用是从 W 空间的隐式代码中学习出符合源域图片特征以及符合目标域文字特征的 prompts。 原始","s":"Mapper 结构的设计","u":"/en/docs/Deep-Learning/大模型/Prompt Learning/Undergraduate-Dissertation","h":"#mapper-结构的设计","p":1011},{"i":1043,"t":"info 参考链接: Illustrated: Self-Attention 动图轻松理解Self-Attention(自注意力机制)","s":"自注意力(Self-Attention)","u":"/en/docs/Deep-Learning/大模型/Self-Attention","h":"","p":1042},{"i":1046,"t":"CNN模型的输入向量的形状是固定的,其输出向量的形状也是固定的或可以根据不同的下游任务而唯一确定,即输入形状与下游任务共同确定了一个CNN模型的架构,具有较强的固定性。 info 在视觉中,输入大多为数字图像,其形状可以大致分为由尺寸和通道数来决定。 从输入图像的尺寸看,当CNN中没有全连接层时,本质上可以接受任意尺寸的输入,但这是狭隘的。若考虑其下游任务以及输出,如FCN(Fully Convolution Network),FCN通过最后通过反卷积将tensor还原到原始图像尺寸,即在CNN中,输入与输出(下游任务的要求)都影响着CNN网络的结构。 从通道数看,CNN本质上可以接受任意通道数的图像输入,但是其模型效果将会受到极大的影响。以一个使用通道数为3的数据集进行训练的CNN模型,但在测试阶段分别使用通道数为 1 和 6 的数据进行推理的情形为例,进行分析: 通道数为1的测试集: 情况: 如果使用通道数为 1 的数据进行推理,即灰度图像,而模型在训练时是使用 RGB 数据集训练的,模型可能会受到一些影响。 解释: 模型可能在训练时学到了关于颜色的特定信息,而在测试时,如果输入是灰度图像,那些颜色信息将不可用。 建议: 在这种情况下,模型可能会失去对颜色信息的敏感性,可能需要进行进一步的调整或微调,以适应灰度图像的特性。 通道数为6的测试集: 情况: 如果使用通道数为 6 的数据进行推理,模型可能会面临额外的挑战,因为它在训练时只见过 3 个通道的数据。 解释: 模型在训练时学到的权重是基于 3 个通道的数据的,对于额外的通道,模型可能无法有效利用这些信息。 建议: 对于通道数不匹配的情况,可以考虑进行通道的适当组合或调整。这可能包括降低通道数(例如,只使用前 3 个通道),或者通过某种方式将 6 个通道映射到 3 个通道,例如通过某种特定的数据预处理。 当模型的输入更复杂(sophisticated),是长度不定的向量序列(sequence)时,CNN不能很好地处理,且不能解决输出由输入和模型自行决定的下游任务,如生成类任务。","s":"输入与输出的局限性","u":"/en/docs/Deep-Learning/大模型/Self-Attention","h":"#输入与输出的局限性","p":1042},{"i":1048,"t":"CNN中存在局部连接和权值共享的归纳偏置: 局部连接:CNN使用卷积层通过滑动卷积核在输入上进行局部感受野的操作。每个神经元只与输入的一小部分区域相连,这意味着每个神经元只能接触到局部的上下文信息。 权值共享: 权值共享的主要思想是,对于输入图像的不同位置使用相同的权重参数进行卷积操作。这意味着,无论卷积操作发生在图像的左上角、右下角,或者其他任何位置,都使用相同的卷积核进行权值计算。CNN的权值共享使得模型能够学习到图像中的局部特征,这也是一种对于上下文的假设。相邻位置上的权重共享使得模型能够对局部结构进行建模,这种权重共享使得CNN具有更强的归纳偏置。 tip 在多通道卷积中,卷积核不同通道之间的权重参数是独立的。这使得网络能够学习不同通道之间的特征组合。这种设计有效地捕捉了输入数据中的多通道信息,提高了网络的表达能力。 CNN的设计理念认为:在图像任务中,局部结构通常更为重要,局部连接和权值共享使得CNN更适用于图像处理等任务。但也正是这种设计理念,使得CNN在面临长输入序列时不能很好地综合上下文信息、提取位置信息,因此Self-Attention应运而生,允许每个位置关注到序列中地所有其他位置。这种全局关联性质使得Transformer能够捕捉序列中的长距离依赖关系。","s":"关联上下文信息的局限性","u":"/en/docs/Deep-Learning/大模型/Self-Attention","h":"#关联上下文信息的局限性","p":1042},{"i":1051,"t":"A self-attention module takes in nnn inputs and returns nnn outputs. What happens in this module? In layman’s terms, the self-attention mechanism allows the inputs to interact with each other (“self”) and find out who they should pay more attention to (“attention”). The outputs are aggregates of these interactions and attention scores. Self-Attention接受任意向量数量的向量序列的输入,输出每一个向量所有向量(包括自身)的注意力分数。这使得Self-Attention在捕捉长距离依赖和处理序列中的全局关系时非常有效。","s":"什么是Self-Attention","u":"/en/docs/Deep-Learning/大模型/Self-Attention","h":"#什么是self-attention","p":1042},{"i":1053,"t":"自注意力机制的核心思想是为序列中的每个向量分配一个权重(即注意力分数),该权重表示该元素与其他元素的关联强度。这个权重是通过计算输入序列中所有元素与当前元素之间的关系来确定的。通常,这个计算过程使用一个可学习的权重矩阵来完成,即用来生成Key,Query以及Value的权重矩阵。","s":"Self-Attention的核心思想","u":"/en/docs/Deep-Learning/大模型/Self-Attention","h":"#self-attention的核心思想","p":1042},{"i":1055,"t":"定义输入​ Self-Attention的输入是向量序列,其向量数量是任意的,计算每个输入向量之间的注意力分数。在本例中输入向量个数为3,同时为了统一性分析,计输入向量个数为batchbatchbatch个。 # define the input, which has a shape of (3, 4) inputs = [[1, 0, 1, 0], [0, 2, 0, 2], [1, 1, 1, 1]] inputs = torch.tensor(inputs, dtype=torch.float32) 初始化权重矩阵​ 每个输入向量都会与3个权重向量做乘法得到3个新的向量,分别为key,query以及value。在本例中将新的向量维度设为3,由于输出的k、q、v矩阵大小均为(3,3)(3, 3)(3,3),因此每个权重矩阵的形状应该是(4,3)(4, 3)(4,3)。为了统一性分析,计key,query以及value各向量维度为numnumnum。 In a neural network setting, these weights are usually small numbers, initialised randomly using an appropriate random distribution like Gaussian, Xavier and Kaiming distributions. This initialisation is done once before training. 在实际应用中,权重通常是较小的数字,通过适当的随机分布(比如高斯、Xavier和Kaiming分布)进行随机初始化。 # define the weights for keys, queries and values w_key = torch.tensor([[0, 0, 1], [1, 1, 0], [0, 1, 0], [1, 1, 0]], dtype=torch.float32) w_query = torch.tensor([[1, 0, 1], [1, 0, 0], [0, 0, 1], [0, 1, 1]], dtype=torch.float32) w_value = torch.tensor([[0, 2, 0], [0, 3, 0], [1, 0, 3], [1, 1, 0]], dtype=torch.float32) 计算key,query以及value​ # compute keys, queries and values keys = inputs @ w_key queries = inputs @ w_query values = inputs @ w_value print(\"keys:\\n\", keys) # (3, 3) print(\"queries:\\n\", queries) # (3, 3) print(\"values:\\n\", values) # (3, 3) 计算原始的注意力分数​ 我们要为每一个输入向量计算它对所有向量的注意力分数,包括对自身的。 原始注意力分数的计算方式为,使用自身的query分别与所有向量的key做内积(dot product),得到的scalar数量与输入向量个数相同,都为batchbatchbatch,即scores矩阵的形状应为(batch,batch)(batch, batch)(batch,batch)。 # compute raw self-attention scores scores = queries @ keys.T print(\"attention scores:\\n\", scores) 注意,代码中提供的是计算所有向量的注意力分数,而图中演示的只是计算input #1的注意力分数。 对每一个向量计算出的注意力分数做softmax​ # normalize the attention score score_softmax = F.softmax(scores, dim=-1) # select the highest dimension print(\"attention scores after normalization:\\n\", score_softmax) 将注意力分数与对应的value相乘​ 每一个输入向量对所有batchbatchbatch个向量计算得到的注意力分数,都要与其对应的value向量相乘,计算加权的注意力分数。最终的注意力分数矩阵的形状应为(batch,num)(batch, num)(batch,num)。 # compute the weighted values by doting score_softmax with values # please be advised, this is dot product weighted_values = values[:, None] * score_softmax.T[:, :, None] print(\"weighted scores: \\n\", weighted_values) 加权注意力分数求和​ 最后一步,对于每个向量得到的加权注意力分数进行求和,得到维度为numnumnum的注意力分数向量,考虑到有batchbatchbatch个输入向量,因此最终的注意力分数矩阵的形状为(batch,num)(batch, num)(batch,num)。 根据推导,显然,最终Self-Attention的输出向量维度与value向量的维度相同,输出向量的数量与输入向量的数量相同。 # compute outputs outputs = weighted_values.sum(dim=0) 总结​ As mentioned in the above paragraph, we don’t only use dot product to find relevance. But we scale it as well by a factor of the square root of key dimension dk. This helps in making sure that the dot-products between query and key don’t grow too large for dk. If the dot product becomes too large then the softmax output will be very small. To avoid this, we scale the dot product. 在计算dot product后,为了避免点积运算经过softmax后的输出太小,在点积后除以key向量维度的平方根来进行缩放。 Attention(Q,K,V)=softmax(QKTdk)V(1)Attention(Q,K,V)=\\textit{softmax}(\\frac{QK^T}{\\sqrt{d_k}})V \\tag{1}Attention(Q,K,V)=softmax(dk​​QKT​)V(1) 完整代码​ # simple code for Self-Attention import torch import torch.nn.functional as F import numpy as np import matplotlib.pyplot as plot # define the input, which has the shape of (3, 4) inputs = [[1, 0, 1, 0], [0, 2, 0, 2], [1, 1, 1, 1]] inputs = torch.tensor(inputs, dtype=torch.float32) # initialize the weights for keys, queries and values w_key = torch.tensor([[0, 0, 1], [1, 1, 0], [0, 1, 0], [1, 1, 0]], dtype=torch.float32) w_query = torch.tensor([[1, 0, 1], [1, 0, 0], [0, 0, 1], [0, 1, 1]], dtype=torch.float32) w_value = torch.tensor([[0, 2, 0], [0, 3, 0], [1, 0, 3], [1, 1, 0]], dtype=torch.float32) # compute keys, queries and values keys = inputs @ w_key queries = inputs @ w_query values = inputs @ w_value print(\"keys:\\n\", keys) # (3, 3) print(\"queries:\\n\", queries) # (3, 3) print(\"values:\\n\", values) # (3, 3) # compute raw self-attention score scores = queries @ keys.T print(\"attention scores:\\n\", scores) # normalize the attention score score_softmax = F.softmax(scores, dim=-1) # select the highest dimension print(\"attention scores after normalization:\\n\", score_softmax) # compute the weighted values by doting score_softmax with values # please be advised, this is dot product weighted_values = values[:, None] * score_softmax.T[:, :, None] print(\"weighted scores: \\n\", weighted_values) # compute outputs outputs = weighted_values.sum(dim=0)","s":"Self-Attention的实现","u":"/en/docs/Deep-Learning/大模型/Self-Attention","h":"#self-attention的实现","p":1042},{"i":1057,"t":"多头自注意力机制是对自注意力机制的扩展,假设扩展成为nnn -head self-attention,则对每个输入向量生成对应的key,query和value后,再次使用nnn个可学习的权重矩阵生成nnn个不同的key0,...,keyn−1key^{0}, ..., key^{n-1}key0,...,keyn−1,query0,...,queryn−1query^{0}, ..., query^{n-1}query0,...,queryn−1以及value0,...,valuen−1value^{0}, ..., value^{n-1}value0,...,valuen−1。 在计算attention score时,使用每一个query查询对应的key,即query0query^{0}query0只与其他每一个输入向量的key0key^{0}key0做dot product。","s":"Multi-Head Self-Attention","u":"/en/docs/Deep-Learning/大模型/Self-Attention","h":"#multi-head-self-attention","p":1042},{"i":1059,"t":"Self-Attention可以看作是复杂化的CNN,CNN只能在感受野范围内考虑上下文信息,而Self-Attention可以自己学习感受野。","s":"Self-Attention与CNN的对比","u":"/en/docs/Deep-Learning/大模型/Self-Attention","h":"#self-attention与cnn的对比","p":1042},{"i":1061,"t":"正确发音 How to pronounce Adversarial? /ˌædvərˈseriəl/","s":"生成式对抗网络(GAN)","u":"/en/docs/Deep-Learning/大模型/GAN","h":"","p":1060},{"i":1064,"t":"生成器(Generator)通常接收一个来自潜在空间(latent space)的随机向量作为输入。这个潜在空间通常是一个随机分布,比如均匀分布或正态分布。生成器的任务是将这个随机向量映射成与训练数据相似的样本。","s":"将随机分布作为输入","u":"/en/docs/Deep-Learning/大模型/GAN","h":"#将随机分布作为输入","p":1060},{"i":1066,"t":"当需要解决的任务需要富有“创造力”时,即根据不同的输入,可以产生多个不一样且正确的输出时。这样的设计使得生成器能够生成多样性的样本,因为每个不同的随机向量都可能导致生成器输出不同的样本。在训练过程中,通过不断调整生成器的参数,使得生成器的输出在数据分布中更难以被判别器区分。","s":"为什么要添加分布","u":"/en/docs/Deep-Learning/大模型/GAN","h":"#为什么要添加分布","p":1060},{"i":1068,"t":"GAN的工作原理: 生成器生成数据: 生成器从潜在空间中采样并生成一些数据。 真实数据与生成数据进入判别器: 真实数据和生成器生成的数据一起输入判别器。 判别器训练: 判别器被训练来正确分类真实数据和生成数据。 生成器训练: 生成器被训练来生成能够欺骗判别器的数据。生成器的目标是生成足够逼真的数据,以至于判别器无法准确区分真假。 迭代: 生成器和判别器交替训练,迭代进行,直到生成器生成的数据足够逼真。 训练的目标: 生成器目标: 生成更逼真的数据,以欺骗判别器。 判别器目标: 区分真实数据和生成数据,提高对真实数据的分类准确性。 GAN的训练是一个博弈过程,生成器和判别器相互竞争,最终达到平衡,生成器生成的数据足够逼真,判别器也无法准确判别真伪。这种模型在图像生成、风格转换等任务中取得了显著的成功。","s":"核心思想","u":"/en/docs/Deep-Learning/大模型/GAN","h":"#核心思想","p":1060},{"i":1070,"t":"GAN(Generative Adversarial Network,生成对抗网络)包括两个主要的组件:生成器(Generator)和判别器(Discriminator)。这两个组件通过对抗训练的方式一起学习。 生成器(Generator): 它负责生成与训练数据相似的新样本。生成器接收来自潜在空间(latent space)的随机向量作为输入,并输出一个与训练数据类似的样本。生成器的目标是欺骗判别器,使其无法区分生成的样本和真实的训练数据。 判别器(Discriminator): 它负责判别输入的样本是真实的训练数据还是生成器生成的假样本。判别器的目标是尽可能准确地分类输入的样本。 GAN的核心思想是通过对抗过程训练生成器和判别器,不断提高它们的性能。生成器试图生成逼真的样本,而判别器试图正确地区分真实样本和生成样本。这个对抗的训练过程可以被视为在两个分布之间进行的最优控制。","s":"具体结构与作用","u":"/en/docs/Deep-Learning/大模型/GAN","h":"#具体结构与作用","p":1060},{"i":1072,"t":"结构: 生成器是一个神经网络,通常是一个反卷积神经网络(Generator Network),其输入通常是一个随机噪声(潜在空间中的点),输出是与训练数据相似的图像或数据。 作用: 生成器的目标是学习生成与真实数据相似的数据。通过迭代训练,生成器的参数被调整,使其生成的数据能够愈发逼真。 Unconditional Generation​ Unconditional generation(无条件生成)指的是在生成模型中生成样本时,不受任何条件的约束。在这种情况下,生成器仅根据其学到的分布生成数据,而无需关注特定的输入条件或上下文。 对于生成对抗网络(GAN)或变分自动编码器(VAE)等生成模型,unconditional generation通常表现为从潜在空间中采样,然后将这些样本输入生成器,以生成新的、与训练数据相似的样本。这种生成方式是随机的,因为每次从潜在空间中采样都会导致生成不同的样本。 Conditional Generation​","s":"生成器(Generator)","u":"/en/docs/Deep-Learning/大模型/GAN","h":"#生成器generator","p":1060},{"i":1074,"t":"结构: 判别器是一个二元分类器,通常是一个卷积神经网络(Discriminator Network)。它的输入可以是真实数据或生成器生成的数据,输出是一个概率,表示输入数据是真实数据的概率。 作用: 判别器的目标是学习区分真实数据和生成器生成的数据。它被训练成对真实数据给出高概率,对生成的数据给出低概率。","s":"判别器(Discriminator)","u":"/en/docs/Deep-Learning/大模型/GAN","h":"#判别器discriminator","p":1060},{"i":1076,"t":"首先随机初始化生成器和判别器,接下来在每一轮训练中重复以下策略。 第一步,在生成器通过随机噪声神生成样本后,固定生成器的参数,将生成器产生的输出与训练资料中的标签作为判别器的输入,判别器为每个输入样本打分,代表其为真实样本的概率。 为了最小化损失函数使得判别器为真实样本赋分更高,为生成样本赋分更低,设计以下损失函数: Lossreal=−Ex∼pdata(x)[log⁡D(x)](1)Loss_{real}=-E_{x\\sim p_\\text{data}{(x)}}[\\log D(x)]\\tag{1}Lossreal​=−Ex∼pdata​(x)​[logD(x)](1) 其中,D(x)D(x)D(x)是判别器的输出,xxx是真实样本,EEE是数学期望。 Lossfake=−Ez∼pz(z)[log(1−D(G(z)))](2)Loss_{fake}=-E_{z\\sim p_z(z)}[log(1-D(G(z)))]\\tag{2}Lossfake​=−Ez∼pz​(z)​[log(1−D(G(z)))](2) 其中,G(z)G(z)G(z)是生成器的输出,zzz是随机噪声,EEE是数学期望。 将真实样本和生成样本的损失相加,形成判别器的总体损失。 Lossdiscriminator=Lossreal+Lossfake(3)Loss_{discriminator}=Loss_{real}+Loss_{fake}\\tag{3}Lossdiscriminator​=Lossreal​+Lossfake​(3) 最小化损失函数,更新判别器的参数。 第二步,在判别器参数更新后,固定判别器的参数,随机分布的向量再次输入至生成器中,得到生成样本,此时生成样本被送入参数固定的判别器中得到生成样本属于真实样本的概率。在生成器的训练过程中,我们的目的是让生成器生成的样本尽可能的接近真实样本。 LG=−Ez∼pz(z)[log⁡D(G(z))](4)L_G=-E_{z\\sim p_z(z)}[\\log D(G(z))]\\tag{4}LG​=−Ez∼pz​(z)​[logD(G(z))](4) 其中,G(z)G(z)G(z)是生成器的输出,D(G(z))D(G(z))D(G(z))是生成样本输入到判别器后的输出,zzz是随机噪声,EEE是数学期望。","s":"训练算法","u":"/en/docs/Deep-Learning/大模型/GAN","h":"#训练算法","p":1060},{"i":1078,"t":"tip 在自监督学习的模型中,出现了很多以芝麻街任务命名的经典模型和论文。","s":"自监督学习(Self-Supervised Learning)","u":"/en/docs/Deep-Learning/大模型/Self-Supervised-Learning","h":"","p":1077},{"i":1080,"t":"自监督学习是无监督学习的一种方法,利用未标记的数据来训练模型。与传统的监督学习不同,自监督学习不需要依赖人工标注的标签数据,而是通过自动构建任务来生成伪标签,从而指导模型的学习。 自监督学习的基本原理是,通过对输入数据进行某种变换或操作,使得模型能够从中提取有用的特征和语义信息。例如,在自然语言处理领域,一种常见的自监督学习任务是预测下一个单词;在计算机视觉领域,一种常见的自监督学习任务是预测图像中的缺失部分。这些任务可以帮助模型学习到输入数据中的潜在结构和规律,从而提高其泛化能力和性能。","s":"介绍","u":"/en/docs/Deep-Learning/大模型/Self-Supervised-Learning","h":"#介绍","p":1077},{"i":1082,"t":"下面以BERT为例,介绍自监督模型。","s":"BERT(Bidirectional Encoder Representation from Transformers)","u":"/en/docs/Deep-Learning/大模型/Self-Supervised-Learning","h":"#bertbidirectional-encoder-representation-from-transformers","p":1077},{"i":1084,"t":"BERT的结构其实是Transformer的Encoder部分,仅使用Encoder做特征抽取器。 BERT(Bidirectional Encoder Representations from Transformers)本身是一种预训练的模型架构,通常是在大规模无标签数据上进行预训练,然后在特定任务上进行微调。BERT并不是一个用于特定任务的模型,而是一个通用的语言表示模型。 使用 BERT 的一般步骤包括: 预训练(Pretraining):在大规模无标签数据上对 BERT 进行预训练,学习通用的语言表示。 微调(Fine-tuning):将预训练的 BERT 模型应用于特定任务,并在有标签的数据上进行微调,以适应该任务。 应用于下游任务(Downstream Tasks):微调后的 BERT 模型可以被用于执行特定的下游任务,如文本分类、命名实体识别等。","s":"结构","u":"/en/docs/Deep-Learning/大模型/Self-Supervised-Learning","h":"#结构","p":1077},{"i":1086,"t":"Masking Input​ BERT模型的自监督性质主要体现在其训练数据并不需要人为标注label,而是通过对输入句子中的部分词汇做mask,将输入数据的部分内容使用special token或random token进行遮挡后,喂入Encoder中。对于每个被mask掉的词汇,BERT输出一个概率分布向量,表示这个词汇属于词汇表中的哪一个。 BERT的损失函数主要是Masked Language Model(MLM)任务的交叉熵损失,通过最小化Encoder输出的概率分布与Ground Truth之间的交叉熵损失函数来训练模型。 L=−1N∑i=1Nyilog⁡(pi)(1)L=-\\frac1N\\sum_{i=1}^Ny_i\\log(p_i)\\tag{1}L=−N1​i=1∑N​yi​log(pi​)(1) 其中: NNN是输出的概率分布向量的维度。 yiy_{i}yi​是概率分布向量标签。 pip_{i}pi​是模型预测的概率分布向量。 Next Sentence Prediction​","s":"Self-Supervised Pretraining","u":"/en/docs/Deep-Learning/大模型/Self-Supervised-Learning","h":"#self-supervised-pretraining","p":1077},{"i":1088,"t":"在预训练之后,BERT 的模型参数可以被用于多个下游任务,如文本分类、命名实体识别、问答等。 首先,我们先来了解一下NLP任务中很重要的一个Benchmark:GLUE。 Benchmark: GLUE​ GLUE(General Language Understanding Evaluation)是一个评估自然语言处理模型在多个任务上综合性能的基准(benchmark)。它旨在测试模型对各种语言任务的通用理解能力。GLUE benchmark 包含了多个任务,每个任务都有一个对应的数据集和评估标准。 MNLI(MultiNLI):自然语言推理任务,要求模型判断给定的两个句子之间的关系是蕴含、矛盾还是中立。 QQP(Quora Question Pairs):问题匹配任务,要求模型判断两个问题是否语义上等价。 QNLI(Question-answering Natural Language Inference):句子分类任务,要求模型判断给定问题和句子之间的关系。 RTE(Recognizing Textual Entailment):文本蕴涵任务,要求模型判断给定的两个文本之间是否存在蕴涵关系。 STS-B(Semantic Textual Similarity Benchmark):语义文本相似度任务,要求模型度量两个文本之间的语义相似度。 CoLA(Corpus of Linguistic Acceptability):语言可接受性判断任务,要求模型判断一个句子是否语法上正确。 MRPC(Microsoft Research Paraphrase Corpus):短语匹配任务,要求模型判断两个句子是否语义上等价。 SST-2(Stanford Sentiment Treebank):情感分类任务,要求模型判断给定句子的情感极性。 WNLI(Winograd NLI):自然语言推理任务,属于 Winograd 模式的变体,要求模型判断一个给定的句子对是否存在蕴含关系。 GLUE 提供了一个全面的测试平台,有助于评估和比较不同自然语言处理模型在多个任务上的性能。 Downstream Tasks​ Sentiment Analysis​ BERT作为自监督的预训练模型,从大语料库中学习到了一定的语言知识,在做文字情感分析时,只需要在下游连接上对应的分类器网络,即使只有比较少量的训练资料也能得到比较好的效果。 下图将Pre-training&Fine-tuning范式与Scratch范式的训练效果做了对比,其中Scratch范式即使用传统的随机初始化的方式从头训练整个分类网络。可以看到预训练&微调的训练范式可以加速模型的收敛(Convergence)并且效果也更好。 立场分析​ Extraction-based Question Answering​ BERT也可以用来完成截取式问答任务,提供一篇文章以及问题,要求输出两个integer代表答案短语在该文章中的起始位置以及结束位置。 具体的解决方案:选择输入文章的所有token所对应的输出向量,随机初始化两个相同维度的向量,分别与输出向量做Dot Product,在经过Softmax之后选择最大的得分所对应的索引。得到的两个索引分别是答案短语在文章中开始的位置以及结束的位置。 其他应用​ 虽然以上的应用都是NLP领域的,但是BERT是Seq2Seq模型,图片、语音等信号也都可以作为Sequence输入至BERT中,因此BERT也可以通过迁移学习应用至多模态领域。","s":"Fine-tuning","u":"/en/docs/Deep-Learning/大模型/Self-Supervised-Learning","h":"#fine-tuning","p":1077},{"i":1090,"t":"BERT在大规模语料库(Corpus)上预训练后,输出的向量表示了对应输入token的意思,特别地,是考虑了上下文信息的意思。比如,对于水果的苹果已经苹果公司的苹果,BERT对一样的苹果有不同的输出。即对一个处在不同上下文信息中的相同词汇,BERT有不同的Embedding。类似于Word Embedding中的CBOW,BERT可以看作是Contextualized Word Embedding。 BERT模型的核心就是通过预训练来学习上下文信息,进而对每个输入token生成相应的向量表示。这个向量表示考虑了上下文信息,所以对于处在不同上下文中的相同词汇,BERT会有不同的Embedding。 ——来自讯飞星火大模型 虽然 BERT 的确是一种基于大规模语料库的预训练模型,但它并不是一种简单的词嵌入方法,而是一种深度神经网络模型。 在 BERT 中,每个单词都被嵌入到一个高维空间中,并且这些嵌入向量是通过多层 Transformer 编码器生成的。这些编码器的每一层都包含多个自注意力子层和一个前馈神经网络子层,它们共同作用来捕捉文本中的上下文关系和其他语义特征。 因此,BERT 中的嵌入向量不仅仅是单个单词的词义表征,还包括整个句子或段落中的语境信息。这意味着即使两个单词在不同的上下文中出现,它们的嵌入向量也可能非常相似,因为它们共享相同的语义结构。 总之,BERT 可以被视为一种上下文感知词嵌入技术,但它的实现方式比传统的词嵌入方法要复杂得多。 ——来自腾讯混元大模型","s":"Why does BERT work?","u":"/en/docs/Deep-Learning/大模型/Self-Supervised-Learning","h":"#why-does-bert-work","p":1077},{"i":1092,"t":"GPT的结构是Transformer的Decoder部分,可以承担生成的任务。 GPT的自监督学习的特征体现在:在训练过程中,GPT根据输入的token预测输入的下一个token应该是什么,对输出的distribution与Ground Truth做Cross Entropy Loss来更新参数。","s":"GPT: Generative Pre-trained Transformer","u":"/en/docs/Deep-Learning/大模型/Self-Supervised-Learning","h":"#gpt-generative-pre-trained-transformer","p":1077},{"i":1094,"t":"tip 正则化与权重衰退","s":"正则化与权重衰退","u":"/en/docs/Deep-Learning/基础知识/正则化与权重衰退","h":"","p":1093},{"i":1096,"t":"正则化(Regularization)是机器学习中用于控制模型过拟合的一种技术。在模型训练过程中,我们通常要最小化一个损失函数来得到最佳的模型参数。但是当模型过于复杂时,容易出现过拟合现象,即在训练数据上表现很好,但在测试数据上表现很差。这是因为模型过于依赖训练数据的噪声和细节,而忽略了真正的规律。 正则化通过在损失函数中增加一个惩罚项(Penalty)来对模型进行约束,防止其过分依赖训练数据。 常见的正则化方法包括L1正则化(硬性限制)、L2正则化(柔性限制)等。 L1正则化会使得一部分参数变为0,从而实现特征选择的效果;L2正则化则会使得模型参数尽量接近0,也就是使得模型更加平滑。在使用正则化时,需要调整正则化强度的超参数,以达到最优的泛化性能。","s":"一、什么是正则化","u":"/en/docs/Deep-Learning/基础知识/正则化与权重衰退","h":"#一什么是正则化","p":1093},{"i":1098,"t":"min l(w,b) subject to ∥w∥12≤θ(1)min \\space l(w, b) \\space \\text{subject to} \\space \\Vert w \\Vert^2_1 \\leq \\theta \\tag{1}min l(w,b) subject to ∥w∥12​≤θ(1) L1正则化限制权重参数的L1范数小于某一特定的超参数 通常不限制偏移bbb 更小的超参数θ\\thetaθ意味着更强的正则项","s":"二、L1正则化","u":"/en/docs/Deep-Learning/基础知识/正则化与权重衰退","h":"#二l1正则化","p":1093},{"i":1100,"t":"L2正则化是指在模型的损失函数中,加入对模型参数的L2范数进行惩罚的一种方法。公式如下所示: l(w,b)+λ2∥w∥12(2)l(w, b) + \\frac{\\lambda}{2} \\Vert w \\Vert^2_1 \\tag{2}l(w,b)+2λ​∥w∥12​(2) 其中,λ\\lambdaλ是一个正则化系数超参数 此时在更新梯度时,具有如下公式 ∂∂w(l(w,b)+λ2∥w∥12)=∂l(w,b)∂w+λw(3)\\frac{\\partial}{\\partial w} \\big(l(w, b) + \\frac{\\lambda}{2} \\Vert w \\Vert^2_1 \\big) = \\frac{\\partial l(w, b)}{\\partial w} + \\lambda w \\tag{3}∂w∂​(l(w,b)+2λ​∥w∥12​)=∂w∂l(w,b)​+λw(3) wt+1=(1−ηλ)wt+η∂l(wt,bt)∂wt(4)w_{t+1}=(1-\\eta \\lambda)w_t + \\eta \\frac{\\partial l(w_t, b_t)}{\\partial w_t} \\tag{4}wt+1​=(1−ηλ)wt​+η∂wt​∂l(wt​,bt​)​(4) 通常ηλ<1\\eta \\lambda < 1ηλ<1,因此又叫做权重衰退","s":"三、L2正则化与权重衰退","u":"/en/docs/Deep-Learning/基础知识/正则化与权重衰退","h":"#三l2正则化与权重衰退","p":1093},{"i":1102,"t":"tip 输入:shape为[5,5,3][5, 5, 3][5,5,3]的图像 输出要求:shape为[5,5,4][5, 5, 4][5,5,4]的feature map 使用3×33 \\times 33×3卷积核,padding=1,stride=1padding=1, stride=1padding=1,stride=1","s":"深度可分离卷积","u":"/en/docs/Deep-Learning/基础知识/深度可分离卷积","h":"","p":1101},{"i":1104,"t":"卷积层共4个filter(输出通道为4),每个filter3个kernel(输入通道为3) 其中,每个filter都对输入图像的所有通道完成一次卷积,filter中的kernel分别对输入的通道进行具体卷积运算 不考虑卷积偏置,参数量为 3×3×3×4=108(1)3 \\times 3 \\times 3 \\times 4 = 108 \\tag{1}3×3×3×4=108(1)","s":"常规卷积","u":"/en/docs/Deep-Learning/基础知识/深度可分离卷积","h":"#常规卷积","p":1101},{"i":1106,"t":"使用1个filter,其中包含3个kernel。每个kernel分别对输入图像的3个通道单独进行卷积,参数量为 3×3××3=27(2)3 \\times 3 \\times \\times 3 = 27 \\tag{2}3×3××3=27(2) 代码实现也较为简单,只需令Conv2d的输出通道与输入通道相同即可","s":"(1)逐通道卷积-Depthwise Convolution","u":"/en/docs/Deep-Learning/基础知识/深度可分离卷积","h":"#1逐通道卷积-depthwise-convolution","p":1101},{"i":1108,"t":"使用1×11 \\times 11×1卷积核,每个filter对上一步的feature map在深度方向进行一次加权组合,参数量为 1×1×3×4=12(3)1 \\times 1 \\times 3 \\times 4 = 12 \\tag{3}1×1×3×4=12(3) tip 图片源自知乎","s":"(2)逐点卷积-Pointwise Convolution","u":"/en/docs/Deep-Learning/基础知识/深度可分离卷积","h":"#2逐点卷积-pointwise-convolution","p":1101},{"i":1111,"t":"AlexNet是指2012年由Alex Krizhevsky、Ilya Sutskever和Geoffrey Hinton提出的一种卷积神经网络模型,它主要应用于图像分类任务。在当时,AlexNet的表现远远超过了其他参赛的网络模型,并且在ImageNet比赛中获得了第一名。 标志着新的一轮神经网络热潮的开始","s":"背景","u":"/en/docs/Deep-Learning/基础知识/AlexNet","h":"#背景","p":1109},{"i":1113,"t":"ReLU激活函数 Dropout正则化、丢弃法 最大池化MaxPooling","s":"新的概念和技术","u":"/en/docs/Deep-Learning/基础知识/AlexNet","h":"#新的概念和技术","p":1109},{"i":1115,"t":"由于输入的图片更大,设置了更大的卷积核尺寸和步长 更大的池化窗口,使用最大池化 在卷积层中设置了更大的输出通道,提取更深层的特征、识别更多的模式 激活函数从Sigmoid改成了ReLU,减缓梯度消失 在卷积层和输出层之间仍使用两个全连接隐藏层,但在输出层之前增加了Dropout层做正则化 使用了数据增强data augmentation","s":"与LeNet比较","u":"/en/docs/Deep-Learning/基础知识/AlexNet","h":"#与lenet比较","p":1109},{"i":1119,"t":"σ(x)=11+e−x(1)\\sigma(x) = \\frac{1}{1 + e^{-x}} \\tag{1}σ(x)=1+e−x1​(1) dσdx=σ (1−σ)(2)\\frac{{\\rm d}\\sigma}{{\\rm d}x} = \\sigma \\space (1 - \\sigma) \\tag{2}dxdσ​=σ (1−σ)(2) 优点:可以将数据压缩至[0, 1)区间内,有较大实用意义 致命问题:在输入值较小或较大时,Sigmoid函数的梯度趋近于零,会导致网络参数长时间得不到更新,即梯度弥散问题 from torch.nn import functional as F import torch x = torch.linspace(-100, 100, 10) F.sigmoid(x) # 当x为100时,sigmoid(x)就接近于0了","s":"1. Sigmoid函数 / Logistic函数","u":"/en/docs/Deep-Learning/基础知识/激活函数与Loss的梯度","h":"#1-sigmoid函数--logistic函数","p":1116},{"i":1121,"t":"f(x)={0x<0xx≥0(3)f(x) = \\begin{cases} 0 & x < 0\\\\ x & x \\geq 0\\\\ \\end{cases} \\tag{3}f(x)={0x​x<0x≥0​(3) df(x)dx={0x<01x≥0(4)\\frac {{\\text d}f(x)}{{\\text d}x} = \\begin{cases} 0 & x < 0\\\\ 1 & x \\geq 0\\\\ \\end{cases} \\tag{4}dxdf(x)​={01​x<0x≥0​(4) from torch.nn import functional as F import torch x = torch.linspace(-100, 100, 10) F.relu(x)","s":"2. 线性整流单元(Rectified Linear Unit, ReLU)","u":"/en/docs/Deep-Learning/基础知识/激活函数与Loss的梯度","h":"#2-线性整流单元rectified-linear-unit-relu","p":1116},{"i":1124,"t":"L2范数是对元素求平方和后再开根号,需要.pow(2)后才可作为损失函数 微小的误差可能对网络性能带来极大的影响 LossMSE=∑[y−f(x)]2(5)Loss_{MSE} = \\sum{[{y - f(x)]^2}} \\tag{5}LossMSE​=∑[y−f(x)]2(5) ∥y−f(x)∥2=∑[y−f(x)]22(6)\\Vert y - f(x) \\Vert_2 = \\sqrt[2]{\\sum{[y - f(x)]^2}} \\tag{6}∥y−f(x)∥2​=2∑[y−f(x)]2​(6)","s":"1. Mean Squared Error 均方误差","u":"/en/docs/Deep-Learning/基础知识/激活函数与Loss的梯度","h":"#1-mean-squared-error-均方误差","p":1116},{"i":1126,"t":"信息熵​ Cross Entropy中的Entropy指的是信息熵,可以理解为不确定性。衡量一个概率分布本身的不确定程度。 It's a measure of surprise, higher entrpoy means less information and higher uncertainty. 假设一个离散型随机变量XXX的可能取值为X=x1,x2,...,xnX=x_1,x_2,...,x_nX=x1​,x2​,...,xn​,而取值事件xix_ixi​发生的概率为PiP_iPi​,则其信息熵的定义为 H(P)=−∑inPi log2(Pi)=∑inPi log2(1Pi)(7)\\begin{align} H(P) &= -\\sum_i^n{P_i}\\space{log_2(P_i)} \\\\ &= \\sum_i^n{P_i}\\space{log_2({\\frac{1}{P_i}}}) \\tag{7} \\end{align}H(P)​=−i∑n​Pi​ log2​(Pi​)=i∑n​Pi​ log2​(Pi​1​)​(7) KL散度​ 在概率论或信息论中,KL散度( Kullback–Leibler Divergence),又称相对熵(relative entropy),是描述两个概率分布P和Q差异的一种方法。 存在两个概率分布P和Q,其离散型随机变量XXX的可能取值为X=x1,x2,...,xnX=x_1,x_2,...,x_nX=x1​,x2​,...,xn​,而取值事件xix_ixi​发生的概率分别为Pi,QiP_i,Q_iPi​,Qi​. KL散度是非对称的,即 DKL(P ∣∣ Q)≠DKL(Q ∣∣ P)(8)D_{KL}(P \\space || \\space Q) \\neq D_{KL}(Q \\space || \\space P)\\tag{8}DKL​(P ∣∣ Q)=DKL​(Q ∣∣ P)(8) DKL(P ∣∣ Q)=∑Pi [log2(Pi)−log2(Qi)](9)D_{KL}(P \\space || \\space Q) = \\sum{P_i\\space [log_2(P_i)-log_2(Q_i)]}\\tag{9}DKL​(P ∣∣ Q)=∑Pi​ [log2​(Pi​)−log2​(Qi​)](9) 特别的,DKL(PLabel ∣ QPred)D_{KL}(P_{Label} \\space | \\space Q_{Pred})DKL​(PLabel​ ∣ QPred​)表示当用概率分布Q来拟合真实分布P时,产生的信息损耗,其中P表示真实分布,Q表示P的拟合分布。 交叉熵​ 衡量两个概率分布P和Q之间的不确定性程度。交叉熵的数学表达为 H(P, Q)=H(P)+DKL(P ∣∣ Q)=−∑Pi log2(Qi)(10)\\begin{align} H(P, \\space Q) &= H(P) + D_{KL}(P\\space || \\space Q) \\\\ &= - \\sum{P_i}\\space{log_2({Q_i})} \\tag{10} \\end{align}H(P, Q)​=H(P)+DKL​(P ∣∣ Q)=−∑Pi​ log2​(Qi​)​(10) PyTorch中的CrossEntropyLoss​ torch.nn.CrossEntropyLoss相当于torch.softmax + torch.log + torch.nn.nllloss. import torch.nn as nn # 使用NLLLoss实现 nllloss = nn.NLLLoss() predict = torch.Tensor([[2, 3, 1], [3, 7, 9]]) predict = torch.log(torch.softmax(predict, dim=-1)) label = torch.tensor([1, 2]) nllloss(predict, label) # output: tensor(0.2684) # 使用CrossEntropyLoss实现 cross_loss = nn.CrossEntropyLoss() predict = torch.Tensor([[2, 3, 1], [3, 7, 9]]) label = torch.tensor([1, 2]) cross_loss(predict, label) # output: tensor(0.2684)","s":"2. Cross Entropy Loss 交叉熵损失","u":"/en/docs/Deep-Learning/基础知识/激活函数与Loss的梯度","h":"#2-cross-entropy-loss-交叉熵损失","p":1116},{"i":1129,"t":"K-fold cross-validation is a technique used in machine learning to evaluate the performance of a model. The basic idea behind k-fold cross-validation is to split the dataset into kkk partitions, or folds, and then train and test the model kkk times, using a different fold for testing each time.","s":"What is k-fold cross-validation?","u":"/en/docs/Deep-Learning/基础知识/K-foldCross-validation","h":"#what-is-k-fold-cross-validation","p":1127},{"i":1131,"t":"In each iteration of k-fold cross-validation, one of the kkk folds is used as the test set, while the remaining k−1k-1k−1 folds are used as the training set. This process is repeated kkk times, with each fold being used exactly once as the test set. The results from each iteration can then be averaged to produce a more accurate estimate of the model's performance.","s":"How does k-fold cross-validation work?","u":"/en/docs/Deep-Learning/基础知识/K-foldCross-validation","h":"#how-does-k-fold-cross-validation-work","p":1127},{"i":1133,"t":"train set: to train the model and do parameter update validation set: to choose hyperparameter test set: the final test, only used once","s":"Summary","u":"/en/docs/Deep-Learning/基础知识/K-foldCross-validation","h":"#summary","p":1127},{"i":1136,"t":"感知机是一种二元线性分类模型,旨在寻找一个超平面(在二维空间中即为一条直线),将不同类别的实例划分到不同的区域。感知机的训练过程包括迭代地对样本进行分类,并根据分类错误的情况调整超平面的参数,使得分类准确率逐步提高。感知机是基础的机器学习算法之一,其思想和方法对神经网络等更复杂的模型也具有启发意义。","s":"一、什么是感知机","u":"/en/docs/Deep-Learning/基础知识/Perceptron","h":"#一什么是感知机","p":1134},{"i":1138,"t":"输入向量:感知机的输入向量是一个n维向量x=(x1,x2,...,xn)x=(x_1,x_2,...,x_n)x=(x1​,x2​,...,xn​),表示一个样本的各个特征值。 权值向量:感知机的权值向量也是一个n维向量w=(w1,w2,...,wn)w=(w_1,w_2,...,w_n)w=(w1​,w2​,...,wn​),表示每个特征对应的权重。 偏置项:偏置项bbb是一个常数,可看作是模型的截距,用于调整阈值函数的位置。 内积运算:感知机将输入向量和权值向量进行内积运算,并加上偏置项,得到输入信号z=w∗x+bz=w*x+bz=w∗x+b。 阈值函数:将输入信号zzz带入阈值函数,如符号函数sign(z)sign(z)sign(z),即可得到分类结果。 损失函数:感知机使用误分类点到超平面的距离来作为损失函数,即 L(y,z)=max(0,−y∗z)(1)L(y,z)=max(0,-y*z) \\tag{1}L(y,z)=max(0,−y∗z)(1) 其中yyy是样本的真实标签,zzz是预测值。 参数更新:根据当前样本误分类情况来对权值向量www和偏置项bbb进行迭代更新。 收敛条件:当全部训练样本被正确分类或达到最大迭代次数时,感知机算法停止迭代。 感知机训练流程伪代码如下所示: initialize w = 0 and b = 0 repeat if yi * zi <= 0 then w = w + yi * xi and b = b + yi end if until all classified correctly","s":"二、详细原理","u":"/en/docs/Deep-Learning/基础知识/Perceptron","h":"#二详细原理","p":1134},{"i":1140,"t":"感知机是一个二分类模型,最早的AI模型之一 求解算法等价于使用批量大小为1的梯度下降 要求数据集线性可分,不能拟合XOR异或等非线性问题,导致第一次AI寒冬","s":"三、总结","u":"/en/docs/Deep-Learning/基础知识/Perceptron","h":"#三总结","p":1134},{"i":1143,"t":"kh=kw=1k_h=k_w=1kh​=kw​=1的卷积不识别空间模式,丢弃了空间信息,只是融合通道 相当于输入形状为HW×ciHW \\times c_iHW×ci​,权重形状为co×cic_o \\times c_ico​×ci​的全连接层","s":"一、1x1卷积","u":"/en/docs/Deep-Learning/基础知识/ConvolutionalLayer","h":"#一1x1卷积","p":1141},{"i":1145,"t":"输入:ci×H×Wc_i \\times H \\times Wci​×H×W 核:co×ci×kh×kwc_o \\times c_i \\times k_h \\times k_wco​×ci​×kh​×kw​ 偏差:co×cic_o \\times c_ico​×ci​ 输出:co×H′×W′c_o \\times H' \\times W'co​×H′×W′ 输出H′以及W′H'以及W'H′以及W′的计算: shapeoutput=shapeinput−sizekernel+2∗paddingstride+1(1)shape_{output} = \\frac{shape_{input}-size_{kernel}+2*padding}{stride}+1 \\tag{1}shapeoutput​=strideshapeinput​−sizekernel​+2∗padding​+1(1) 计算复杂度:O(co×ci×H×W×H′×W′)O(c_o \\times c_i \\times H \\times W \\times H' \\times W')O(co​×ci​×H×W×H′×W′) 总结: 输出的通道数是卷积层的超参数 每个输入通道有独立的二维卷积核,所有通道结果相加得到一个输出结果 每个输出通道有独立的三维卷积核","s":"二、二维卷积层","u":"/en/docs/Deep-Learning/基础知识/ConvolutionalLayer","h":"#二二维卷积层","p":1141},{"i":1148,"t":"LeNet是由Yann LeCun等人于1998年提出的卷积神经网络结构,该结构由卷积层、池化层和全连接层组成,可以高效地处理手写数字图像,并在MNIST数据集上取得了很好的性能。 LeNet-5的成功标志着卷积神经网络在计算机视觉领域中的崛起,并促进了深度学习的快速发展。","s":"背景","u":"/en/docs/Deep-Learning/基础知识/LeNet","h":"#背景","p":1146},{"i":1150,"t":"import torch import numpy as np from torch import nn as nn from torch.nn import functional as F from d2l import torch as d2l from matplotlib import pyplot as plt import os os.environ['http_proxy'] = 'http://127.0.0.1:7890' os.environ['https_proxy'] = 'https://127.0.0.1:7890' class LeNetReshape(nn.Module): def __init__(self): super(LeNetReshape, self).__init__() def forward(self, x): return x.reshape(-1, 1, 28, 28) class LeNet5(nn.Module): def __init__(self): super(LeNet5, self).__init__() self.net = torch.nn.Sequential( LeNetReshape(), # 激活函数应为Sigmoid nn.Conv2d(1, 6, kernel_size=5, padding=2), nn.LeakyReLU(), nn.AvgPool2d(kernel_size=2, stride=2), nn.Conv2d(6, 16, kernel_size=5), nn.LeakyReLU(), nn.AvgPool2d(kernel_size=2, stride=2), nn.Flatten(), nn.Linear(16 * 5 * 5, 120), nn.LeakyReLU(), nn.Linear(120, 84), nn.Sigmoid(), nn.Linear(84, 10)) def forward(self, x): return self.net(x) def evaluate_accuracy_gpu(net, data_iter, device=None): if isinstance(net, torch.nn.Module): net.eval() if not device: device = next(iter(net.parameters())).device metric = d2l.Accumulator(2) for X, y in data_iter: if isinstance(X, list): X = [x.to(device) for x in X] else: X = X.to(device) y = y.to(device) metric.add(d2l.accuracy(net(X), y), y.numel()) # 此处accuracy是统计 return metric[0] / metric[1] def accuracy(y_hat, y): return torch.sum(y_hat.argmax(dim=1) == y) def train(net, train_iter, test_iter, num_epochs, lr, device): def init_weights(m): if type(m) == nn.Linear or type(m) == nn.Conv2d: nn.init.xavier_uniform_(m.weight) net.apply(init_weights) net.to(device) optimizer = torch.optim.SGD(net.parameters(), lr=lr) loss = torch.nn.CrossEntropyLoss() loss.to(device) animator = d2l.Animator(xlabel='epoch', xlim=[1, num_epochs], legend=['train loss', 'train acc', 'test acc']) timer, num_batches = d2l.Timer(), len(train_iter) metric = d2l.Accumulator(3) net.train() for epoch in range(num_epochs): for batch, (X, y) in enumerate(train_iter): timer.start() optimizer.zero_grad() X, y = X.to(device), y.to(device) y_hat = net(X) l = loss(y_hat, y) l.backward() optimizer.step() metric.add(l * X.shape[0], accuracy(y_hat, y), y.numel()) timer.stop() train_l = metric[0] / metric[2] train_acc = metric[1] / metric[2] if (batch + 1) % (num_batches // 5) == 0 or batch == num_batches - 1: animator.add(epoch + (batch + 1) / num_batches, (train_l, train_acc, None)) test_acc = evaluate_accuracy_gpu(net, test_iter) animator.add(epoch + 1, (None, None, test_acc)) print(f'loss {train_l:.3f}, train acc {train_acc:.3f}, test acc {test_acc:.3f}') print(f'{metric[2] * num_epochs / timer.sum():.1f} examples/sec on {str(device)}') plt.show() batch_size = 256 train_iter, test_iter = d2l.load_data_fashion_mnist(batch_size) lr, num_epochs = 0.9, 10 lenet = LeNet5() train(lenet, train_iter, test_iter, num_epochs, lr, d2l.try_gpu())","s":"代码实现","u":"/en/docs/Deep-Learning/基础知识/LeNet","h":"#代码实现","p":1146},{"i":1152,"t":"在分类模型中,最后两个全连接层之间不要使用ReLU激活函数。因为ReLU的范围是[0, +∞),它会将所有负数都变成0。而最后一层全连接层输出了类别信息,倒数第二层的输出值包含着非常重要的类别信息,此时使用激活函数很可能会导致信息丢失。","s":"问题","u":"/en/docs/Deep-Learning/基础知识/LeNet","h":"#问题","p":1146},{"i":1155,"t":"现代图片具有较大的像素,使用全连接层导致参数爆炸 针对图片的特征提取和模式识别,应具备以下原则: 平移不变性 局部性","s":"一、卷积的诞生&核心特征","u":"/en/docs/Deep-Learning/基础知识/FromFullyConnectedLayerToConvolutionalLayer","h":"#一卷积的诞生核心特征","p":1153},{"i":1157,"t":"将全连接层的一维输入和输出变换为二维的矩阵,公式如下 其中i,ji,ji,j代表输出神经元的二维索引坐标,h,wh,wh,w代表输入神经元的二维索引坐标 yi,j=∑h,wwi,j,h,w∗xh,w(1)y_{i,j}=\\sum_{h,w}{w_{i,j,h,w}*x_{h,w}} \\tag{1}yi,j​=h,w∑​wi,j,h,w​∗xh,w​(1) 进一步将权重以及输入的索引变形,公式如下 其中a,ba,ba,b的取值可负可正,直到遍历所有权重以及输入神经元,实现全连接 yi,j=∑h,wwi,j,h,w∗xh,w=∑a,bvi,j,a,b∗xi+a,j+b(2)y_{i,j}=\\sum_{h,w}{w_{i,j,h,w}*x_{h,w}}=\\sum_{a,b}{v_{i,j,a,b}*x_{i+a,j+b}} \\tag{2}yi,j​=h,w∑​wi,j,h,w​∗xh,w​=a,b∑​vi,j,a,b​∗xi+a,j+b​(2) 在公式(2)中,当i,ji,ji,j发生变化时,即产生平移,权重也发生平移,不满足平移不变性。 为了解决这一问题,将公式(2)变形为如下 此时参数权值共享,满足了平移不变性 yi,j=∑a,bvi,j,a,b∗xi+a,j+b=∑a,bva,b∗xi+a,j+b(3)y_{i,j}=\\sum_{a,b}{v_{i,j,a,b}*x_{i+a,j+b}}=\\sum_{a,b}{v_{a,b}*x_{i+a,j+b}} \\tag{3}yi,j​=a,b∑​vi,j,a,b​∗xi+a,j+b​=a,b∑​va,b​∗xi+a,j+b​(3) 再考虑局部性,在进行特征提取以及模式识别时,只需关注周围的局部特征,因此公式(3)中的a,ba,ba,b可缩小范围,并不用来实现全连接,此时a,ba,ba,b代表着卷积核的感受野,即kernel size 此时完成了全连接层到卷积层的转换","s":"二、重新考察全连接层","u":"/en/docs/Deep-Learning/基础知识/FromFullyConnectedLayerToConvolutionalLayer","h":"#二重新考察全连接层","p":1153},{"i":1159,"t":"对全连接层使用平移不变性和局部性得到卷积层,卷积是特殊的全连接 yi,j=∑a,bva,b∗xi+a,j+b=∑a=−ΔΔ∑b=−ΔΔva,b∗xia,j+b(4)y_{i,j}=\\sum_{a,b}{v_{a,b}*x_{i+a,j+b}}=\\sum_{a=-\\Delta}^{\\Delta}\\sum_{b=-\\Delta}^{\\Delta}{v_{a,b}*x_{i_a,j+b}} \\tag{4}yi,j​=a,b∑​va,b​∗xi+a,j+b​=a=−Δ∑Δ​b=−Δ∑Δ​va,b​∗xia​,j+b​(4) 卷积层输出形状的计算 shapeoutput=shapeinput−sizekernel+2∗paddingstride+1(5)shape_{output} = \\frac{shape_{input}-size_{kernel}+2*padding}{stride}+1 \\tag{5}shapeoutput​=strideshapeinput​−sizekernel​+2∗padding​+1(5)","s":"三、总结","u":"/en/docs/Deep-Learning/基础知识/FromFullyConnectedLayerToConvolutionalLayer","h":"#三总结","p":1153},{"i":1162,"t":"卷积层会对输入的局部区域进行卷积操作,因此对于输入图像中的每个位置都会产生一个响应。然而,在某些情况下,我们并不关心输入图像中每个位置的细节,而只是想获取该区域的一些重要特征。 假设我们想分类一张猫的图片,那么我们可能只需要提取出它的眼睛、鼻子、嘴巴和耳朵等特征,而不必考虑这些特征在图像中的精确位置。","s":"一、卷积对像素位置信息是敏感的","u":"/en/docs/Deep-Learning/基础知识/PoolingLayer","h":"#一卷积对像素位置信息是敏感的","p":1160},{"i":1164,"t":"池化层通过对输入的局部区域进行降采样操作,减少了特征图的大小,从而使得模型对于输入位置的微小变化更加鲁棒。例如,如果我们将一个对象稍微平移一点,它依然可以被正确地识别,因为池化层可以保留输入图像的关键特征,而忽略掉微小的位置变化。 但是需要注意的是,当池化的步幅和池化区域的大小过大时,会导致模型丢失较多的细节信息,从而影响模型性能。因此,在实际应用中,需要根据具体任务来选择适当的池化参数。 缓解卷积层对位置的敏感性,提高鲁棒:池化操作通常用于卷积层之后,使模型对于输入位置的微小变化更加鲁棒,减少图像中的噪声和冗余信息 减小特征图大小:池化操作会通过在特定位置上合并特征值来缩小输入特征图的空间大小,降低计算开销。 减少参数数量:池化操作减小了特征图的空间大小,从而也减小了需要训练的权重参数数量,更容易训练和优化。","s":"二、池化层的作用","u":"/en/docs/Deep-Learning/基础知识/PoolingLayer","h":"#二池化层的作用","p":1160},{"i":1166,"t":"池化层将输入特征图分割成若干个区域,然后对每个区域进行汇聚操作,将该区域内的特征值合并成一个值。这个操作可以使用不同的方法实现,如最大值池化、平均值池化等。 最常见的是最大值池化,其中每个区域的输出值是该区域内特征值的最大值,这样可以保留图像中最显著的特征,同时减少噪声和冗余信息的影响。","s":"三、池化的实现","u":"/en/docs/Deep-Learning/基础知识/PoolingLayer","h":"#三池化的实现","p":1160},{"i":1169,"t":"Logistic Regression直译为逻辑回归,是一种用来解决二分类问题的机器学习方法,用于估计某种事物的可能性。 逻辑回归经过sigmoid函数输出的结果可将其视为probability,而后根据设定的置信度阈值来判断该特征向量对应的标签是1还是0,用以解决二分类问题。","s":"一、什么是Logistic Regression","u":"/en/docs/Deep-Learning/基础知识/LogisticRegression","h":"#一什么是logistic-regression","p":1167},{"i":1171,"t":"线性回归要求因变量是连续性数值变量,而逻辑回归要求因变量是离散的变量。 逻辑回归以线性回归为理论支持,通过Sigmoid函数引入了非线性因素。 线性回归常用MSE函数作为损失函数,而逻辑回归作为分类任务的解决方案通常搭配交叉熵损失函数进行训练。","s":"二、逻辑回归(Logistic Regression)和线性回归(Linear Regression)","u":"/en/docs/Deep-Learning/基础知识/LogisticRegression","h":"#二逻辑回归logistic-regression和线性回归linear-regression","p":1167},{"i":1173,"t":"从历史角度方面看,逻辑回归在诞生时使用MSE作为损失函数,其目标是让输出的概率更接近于1,与回归任务的目标相似。","s":"三、逻辑回归到底是回归任务(Regression)还是分类任务(Classification)?","u":"/en/docs/Deep-Learning/基础知识/LogisticRegression","h":"#三逻辑回归到底是回归任务regression还是分类任务classification","p":1167},{"i":1175,"t":"逻辑回归以及其他分类任务在测试角度上的目标让提高分类准确率acc,但并不会将maximize accuracy作为数学上的训练方法,即在训练过程中不使用与acc有关的损失函数。 逻辑回归中的训练目标(评估函数)与预测目标(评估函数)并不相同,但方向一致。 acc=∑I(predi==yi)len(Y)(1)acc = \\frac{\\sum{I(pred_i==y_i)}}{len(Y)} \\tag{1}acc=len(Y)∑I(predi​==yi​)​(1) 如果在训练过程中以最大化acc为目标,当参数在训练过程中向标签方向更新使得逻辑回归输出的正确类的概率增大时,考虑以下两种情况: gradient = 0 if accuracy unchanged but weights changed: 由于阈值的存在,下一轮迭代输出的概率可能仍小于阈值,从而导致分类结果与上一次迭代相同,此时acc并无变化,出现梯度为0的情况。 gradient not continuous since the number of correct is not continunous: 当上一轮迭代的输出概率很接近阈值时,下一次迭代的概率提升了很少一点但是仍超过了阈值,且一个batch中有大量样本均存在这种情况,此时acc有显著提升而网络的权重的更新极小,此时,与acc有关的Loss函数对权重求导得到的梯度会出现梯度爆炸或者说不连续的情况。","s":"四、为什么逻辑回归或其他分类任务不使用分类准确率作为损失函数?","u":"/en/docs/Deep-Learning/基础知识/LogisticRegression","h":"#四为什么逻辑回归或其他分类任务不使用分类准确率作为损失函数","p":1167},{"i":1177,"t":"相关链接 论文:arXiv 代码:GitHub 参考文献: Latent Diffusion Models论文解读 Stable Diffusion就是在这篇文章的基础上,使用LDM进行开发的。","s":"CVPR 2022: High-Resolution Image Synthesis with Latent Diffusion Models","u":"/en/docs/Deep-Learning/论文笔记/High-Resolution Image Synthesis with Latent Diffusion Models","h":"","p":1176},{"i":1181,"t":"concat与stack函数 stack函数对输入的两个张量在指定的维度进行堆叠,是创建了新的维度 concat函数对输入的张量在指定维度进行拼接,没有创建新的维度 # stack和concat函数 a = torch.rand(4, 3) # A班4位同学,每位同学3科成绩 b = torch.rand(4, 3) # B班4位同学,每位同学3科成绩 c = torch.stack((a, b), dim=0) # 理解:年级所有同学的3科成绩(假设年级只有A班和B班两个班,每个班只有四名同学) print(c.shape) # torch.Size([2, 4, 3]) d = torch.concat((a, b), dim=1) # 理解:a是A班4位同学3科成绩,b是这4名同学其他3门课的成绩,拼接后代表这4名同学的6科成绩 print(d.shape) # torch.Size([4, 6]) list和tensor乘法不同之处 list的*乘法是复制元素,改变list的shape tensor的*乘法是对tensor中的元素进行点乘计算 a = torch.tensor([[3, 3, 3, 3]]) b = [3] # list的*乘是复制元素进行扩展 print(a * 3) # tensor([[9, 9, 9, 9]]) print(b * 3) # [3, 3, 3] 最大值 / 最小值索引:argmax / argmin 需要通过参数dim指定操作的维度,dim的理解 官方解释:The dimension to reduce 以二维张量举例,dim=1即在每一行中选出一个最大值 / 最小值元素的索引,索引的shape应为[dim0, 1],即reduce了dim=1的维度 # 最大值最小值索引 a = torch.tensor([[0.1, 0.9, 0.3], [0.9, 0.8, 0.99], [0.1, 0.7, 0.8], [0.88, 0.1, 0.2]]) # [4, 3] print(\"argmax output: \", a.argmax(dim=0), a.argmax(dim=1)) # argmax output: tensor([1, 0, 1]) tensor([1, 2, 2, 0]) Python zip函数 zip函数可以理解为压缩,将输入的两个迭代器的最外层对应元素压缩为一个新的元素 a = torch.tensor([1, 2, 3]) b = torch.tensor([4, 5, 6]) c = zip(a, b) for i in c: print(i) ''' (tensor(1), tensor(4)) (tensor(2), tensor(5)) (tensor(3), tensor(6)) ''' a = torch.tensor([[1, 2, 3], [3, 2, 1]]) b = torch.tensor([[4, 5, 6], [6, 5, 4]]) c = zip(a, b) for i in c: print(i) ''' (tensor([1, 2, 3]), tensor([4, 5, 6])) (tensor([3, 2, 1]), tensor([6, 5, 4])) '''","s":"一、常用函数部分","u":"/en/docs/Deep-Learning/基础知识/PytorchBasics","h":"#一常用函数部分","p":1179},{"i":1183,"t":"相关链接 论文:CVPR 2023 open access 代码:Piscart-AI-Research 文章的命名风格借鉴了CVPR 2022的文章Few Shot Generative Model Adaption via Relaxed Spatial Structural Alignment","s":"CVPR 2023: Zero-shot Generative Model Adaptation via Image-specific Prompt Learning","u":"/en/docs/Deep-Learning/论文笔记/Zero-shot Generative Model Adaptation via Image-specific Prompt Learning","h":"","p":1182},{"i":1185,"t":"本文提出了Image-specific Prompt Learning(IPL)方法来解决风格迁移任务中生成模型从源域到目标域的适应问题。一个Latent Mapper来从源域图像中学习出包含图像特征且适应目标域的prompt,从而指导目标域生成器的训练。 This produces a more precise adaptation direction for every cross-domain image pair, endowing the target-domain generator with greatly enhanced flexibility. 训练资料是源域和目标域的文字标签以及源域的图像,并不需要目标域的图像。此外,IPL独立于生成模型,可以自由选择Diffusion Model或GAN等。","s":"摘要","u":"/en/docs/Deep-Learning/论文笔记/Zero-shot Generative Model Adaptation via Image-specific Prompt Learning","h":"#摘要","p":1182},{"i":1188,"t":"Generative Model Adaption的任务是使在大规模源域图片上训练的生成模型适应到数据有限的目标域中,根据目标域训练资料的大小可以分为few-shot和zero-shot。 few-shot​ 对于few-shot任务,一般是通过有限的目标域训练集资料fine-tune预训练模型。 然而,fine-tune通常会导致过拟合。为了解决过拟合问题,通常使用的方法是施加强正则化、使用扰动法、跨域对齐或数据增强。 相关文献方法 强正则化:Han Zhang, Zizhao Zhang, Augustus Odena, and Honglak Lee. Consistency regularization for generative adversarial networks. In ICLR, 2019. 扰动法:Sangwoo Mo, Minsu Cho, and Jinwoo Shin. Freeze the discriminator: a simple baseline for fine-tuning GANs. In CVPR Workshops, 2020. 跨域对齐:Utkarsh Ojha, Yijun Li, Jingwan Lu, Alexei A Efros, Yong Jae Lee, Eli Shechtman, and Richard Zhang. Fewshot image generation via cross-domain correspondence. In CVPR, 2021. 数据增强:Ngoc-Trung Tran, Viet-Hung Tran, Ngoc-Bao Nguyen, Trung-Kien Nguyen, and Ngai-Man Cheung. On data augmentation for GAN training. TIP, 2021. zero-shot​ 对于零样本的图像生成模型的适应任务,NADA率先引入了CLIP模型来获取必须的先验知识,通过预训练大模型的语言理解能力实现在目标域只需要文字标签而不需要图片,将源域和目标域之间的差距编码为在CLIP空间上文字引导的适应方向。 此后,CVPR 2022发表的DiffusionCLIP使用了Diffusion模型代替NADA中的StyleGANs,获得了更好的特征保存能力。 然而这些方法都是采用了固定的适应方向,只包含基础的域知识,而不是图片特定的特征。在本文中,作者发现这种共享的、固定的适应方向会导致Mode Collapse(模式坍塌),因此提出了从每个源域图像中学习出多样且准确的prompt,为生成模型向目标域的适应提供更精确的方向。","s":"Generative Model Adaption","u":"/en/docs/Deep-Learning/论文笔记/Zero-shot Generative Model Adaptation via Image-specific Prompt Learning","h":"#generative-model-adaption","p":1182},{"i":1190,"t":"Prompt工程最初是一种Knowledge Probing(知识探测)方法,给定完形填空(cloze-style)类的prompt,引导模型产生相对应的答案。 然而人工设计的prompt通常不是最优的,可能提供不准确的适应方向。为了解决这个问题,在NLP领域的Prompt Learning发展迅速,并随着视觉-语言大模型的发展,应用在了视觉任务中。 Kaiyang Zhou等人首先在图像分类任务中采用上下文优化,在词嵌入空间中对具有连续向量的上下文词进行建模。随后Prompt Learning在计算机视觉中的许多下游任务都得到了探索,例如目标检测、视频理解和迁移学习等。","s":"Prompt Learning","u":"/en/docs/Deep-Learning/论文笔记/Zero-shot Generative Model Adaptation via Image-specific Prompt Learning","h":"#prompt-learning","p":1182},{"i":1193,"t":"IPL方法分两个阶段。 第一阶段:训练Latent Mapper​ 第一阶段的主要任务是训练Lantent Mapper来为每一个训练集的源域图片生成一组prompt。Latent Mapper接收源域图像的latent representation,生成一组prompt向量。第一阶段需要解决两个问题,即在zero-shot的背景下,如何实现prompt与源域图像特征的对齐以及prompt与目标域空间的对齐,因此第一阶段的训练分两部分进行。 第一部分是Latent Mapper输出的prompt与目标域标签concat后送入来自CLIP的Text Encoder得到目标域图片prompt在CLIP空间的编码表示,并与目标域标签经过Text Encoder后的编码共同作为Domain Loss的输入来约束从源域中学习到的prompt与目标域空间对齐。 第二部分是Latent Mapper输出的prompt与源域标签concat后送入来自CLIP的Text Encoder得到源域图片prompt描述在CLIP空间的编码表示,同时源域图像再经过来自CLIP的Image Encoder后得到其在CLIP空间的编码表示。将源域的prompt文字和图像编码表示作为contrastive learning loss的输入,约束学习到的prompt与源域图像的特征对齐。 第二阶段:将Latent Mapper插入目标域生成器的训练过程​ 第二阶段利用Directional CLIP Loss来训练目标域生成器,使源于生成器向目标域迁移学习。需要输入源域以及目标域图像、源域以及目标域的prompt描述。源域图像的latent representation分别输入至源域生成器和目标域生成器中得到对应的图像,同时指导风格迁移方向的源域以及目标域的prompt描述由Latent Mapper接收源域图像的隐式表示后输出再分别与源域和目标域标签concat而得到。分别将源域图像、生成的目标域图像以及源域、目标域的图片prompt描述一起输入至Directional CLIP Loss,从而约束由源域图像生成器初始化的目标域图像生成器向目标域的迁移学习。","s":"概述","u":"/en/docs/Deep-Learning/论文笔记/Zero-shot Generative Model Adaptation via Image-specific Prompt Learning","h":"#概述","p":1182},{"i":1196,"t":"相关链接 论文:arXiv 代码:GitHub 参考资料: 54、Probabilistic Diffusion Model概率扩散模型理论与完整PyTorch代码详细解读 【论文精读】Diffusion Model 开山之作DDPM","s":"NeurIPS 2020: Denoising Diffusion Probabilistic Models","u":"/en/docs/Deep-Learning/论文笔记/Denoising Diffusion Probabilistic Models","h":"","p":1195},{"i":1199,"t":"条件概率的定义​ 条件概率是指在给定另一个事件发生的条件下,某一事件发生的概率。条件概率通常用符号P(A∣B)P(A\\mid B)P(A∣B)表示,读作“在 B 发生的条件下 A 发生的概率”。 条件概率的计算公式为: P(A∣B)=P(A,B)P(B)P(A\\mid B)=\\frac{P(A,B)}{P(B)}P(A∣B)=P(B)P(A,B)​ 其中: P(A,B)P(A,B)P(A,B)是事件AAA、BBB同时发生的概率,也叫联合概率 P(B)P(B)P(B)是事件BBB独立发生的概率 全概率公式​ 对于事件AAA而言,假设有一组互斥且穷尽的条件事件B1,B2,…BnB_{1},B_{2},\\ldots B_{n}B1​,B2​,…Bn​构成一个完备事件组,则事件AAA的概率等于事件AAA在每个条件事件BiB_iBi​下发生的概率与该条件事件发生概率的乘积和。 P(A)=∑i=1nP(A∣Bi)⋅P(Bi)P(A)=\\sum_{i=1}^nP(A\\mid B_i)\\cdot P(B_i)P(A)=i=1∑n​P(A∣Bi​)⋅P(Bi​) 可以看出,全概率公式是由“因”(条件事件BiB_iBi​)推“果”(结果事件AAA)的过程,即当知道某结果事件的原因后,推断由该原因导致这件事发生的概率是多少。 贝叶斯公式​ 贝叶斯公式在观测到结果事件AAA发生后,计算其条件事件BiB_iBi​在事件AAA已经发生的条件下而发生的后验概率。 继续沿用上述全概率公式的符号定义,则有: P(Bi∣A)=P(A∣Bi)⋅P(Bi)P(A)P(B_i\\mid A)=\\frac{P(A\\mid B_i)\\cdot P(B_i)}{P(A)}P(Bi​∣A)=P(A)P(A∣Bi​)⋅P(Bi​)​ 其中: P(Bi)P(B_i)P(Bi​)以及P(A)P(A)P(A)称为先验概率 P(Bi∣A)P(B_i\\mid A)P(Bi​∣A)称为后验概率 P(A∣Bi)P(A\\mid B_i)P(A∣Bi​)称为似然","s":"先验概率与后验概率","u":"/en/docs/Deep-Learning/论文笔记/Denoising Diffusion Probabilistic Models","h":"#先验概率与后验概率","p":1195},{"i":1201,"t":"条件概率的一般形式​ P(A,B,C)=P(C∣A,B)⋅P(A,B)=P(C∣A,B)⋅P(B∣A)⋅P(A)P(A,B,C)=P(C\\mid A,B)\\cdot P(A,B)=P(C\\mid A,B)\\cdot P(B\\mid A)\\cdot P(A)P(A,B,C)=P(C∣A,B)⋅P(A,B)=P(C∣A,B)⋅P(B∣A)⋅P(A) P(B,C∣A)=P(B∣A)⋅P(C∣A,B)P(B,C\\mid A)=P(B\\mid A)\\cdot P(C\\mid A,B)P(B,C∣A)=P(B∣A)⋅P(C∣A,B) 其中,第二行公式的推导如下: P(B,C∣A)=P(A,B,C)P(A)=P(A,B,C)P(A,B,C)P(C∣A,B)⋅P(B∣A)=P(B∣A)⋅P(C∣A,B)\\begin{align*} P(B,C \\mid A) &= \\frac{P(A,B,C)}{P(A)} \\\\ &= \\frac{P(A,B,C)}{\\frac{P(A,B,C)}{P(C \\mid A,B) \\cdot P(B \\mid A)}} \\\\ &= P(B \\mid A) \\cdot P(C \\mid A,B) \\end{align*}P(B,C∣A)​=P(A)P(A,B,C)​=P(C∣A,B)⋅P(B∣A)P(A,B,C)​P(A,B,C)​=P(B∣A)⋅P(C∣A,B)​ 高斯分布的KL散度​ 对于两个单一变量的高斯分布p∼N(μ1,σ12)p\\sim \\mathcal{N}(\\mu_1,\\sigma_1^2)p∼N(μ1​,σ12​)和q∼N(μ2,σ22)q\\sim \\mathcal{N}(\\mu_2,\\sigma_2^2)q∼N(μ2​,σ22​)而言,它们的KL散度定义为: DKL(p,q)=log⁡σ2σ1+σ12+(μ1−μ2)22σ22−12D_{KL}(p,q)=\\log\\frac{\\sigma_2}{\\sigma_1}+\\frac{\\sigma_1^2+(\\mu_1-\\mu_2)^2}{2\\sigma_2^2}-\\frac12DKL​(p,q)=logσ1​σ2​​+2σ22​σ12​+(μ1​−μ2​)2​−21​","s":"条件概率与高斯分布的KL散度","u":"/en/docs/Deep-Learning/论文笔记/Denoising Diffusion Probabilistic Models","h":"#条件概率与高斯分布的kl散度","p":1195},{"i":1203,"t":"马尔科夫链指当前状态的概率只与上一时刻有关,例如若满足马尔科夫关系A→B→CA\\to B\\to CA→B→C,则有: P(A,B,C)=P(C∣A,B)⋅P(A,B)=P(C∣B)⋅P(B∣A)⋅P(A)P(A,B,C) =P(C\\mid A,B)\\cdot P(A,B)=P(C\\mid B)\\cdot P(B\\mid A)\\cdot P(A)P(A,B,C)=P(C∣A,B)⋅P(A,B)=P(C∣B)⋅P(B∣A)⋅P(A) P(B,C∣A)=P(B∣A)⋅P(C∣B)P(B,C\\mid A)=P(B\\mid A)\\cdot P(C\\mid B)P(B,C∣A)=P(B∣A)⋅P(C∣B)","s":"马尔科夫链条件概率形式","u":"/en/docs/Deep-Learning/论文笔记/Denoising Diffusion Probabilistic Models","h":"#马尔科夫链条件概率形式","p":1195},{"i":1205,"t":"从任意高斯分布N(μ,σ2)\\mathcal{N}(\\mu,\\sigma^2)N(μ,σ2)采样xxx时,可以先从标准高斯分布N(0,1)\\mathcal{N}(0,1)N(0,1)中sample出zzz,再令 x=σ∗z+μx=\\sigma * z + \\mux=σ∗z+μ 优势: 由于线性变化,采样过程中对其他参数都有明确的导数,可以进行反向传播 可以通过线性变换来控制参数化的采样 标准正态分布具有易采样的性质","s":"参数重整化技巧","u":"/en/docs/Deep-Learning/论文笔记/Denoising Diffusion Probabilistic Models","h":"#参数重整化技巧","p":1195},{"i":1207,"t":"实战练习 Transformer实战练习,代码见Github仓库。 This is a practice of Transformer, follow the guide of Github Repo.","s":"Speaker Classification","u":"/en/docs/Deep-Learning/实战练习/Speaker Classification","h":"","p":1206},{"i":1209,"t":"Classify the speaker of given features, learn how to use Transformer and how to adjust parameters of transformer.","s":"Overview","u":"/en/docs/Deep-Learning/实战练习/Speaker Classification","h":"#overview","p":1206},{"i":1211,"t":"The original dataset is VoxCeleb1. We randomly select 600 speakers from VoxCeleb1, then preprocess the raw waveforms into mel-spectrograms. You can download the preprocessed dataset from Google Drive. Arguments: data_dir: The path to the data directory. metadata_path: The path to the metadata. segment_len: The length of audio segment for training. The architecture of dataset directory is shown below, where uttr-{random string}.pt represents PyTorch data file containing valid mel-spectrogram data. data directory/ ├── mapping.json ├── metadata.json ├── testdata.json └── uttr-{random string}.pt","s":"Dataset","u":"/en/docs/Deep-Learning/实战练习/Speaker Classification","h":"#dataset","p":1206},{"i":1213,"t":"This is also the assignment solution of ML2021Spring HW4.","s":"Related","u":"/en/docs/Deep-Learning/实战练习/Speaker Classification","h":"#related","p":1206},{"i":1215,"t":"相关链接 论文:arXiv 参考资料: Transformer模型详解(图解最完整版) 【機器學習2021】Transformer (下) Transformer是Sequence-to-Sequence (Seq2Seq) 模型,模型的输入是向量序列,输出同样是向量序列,且输出的长度由模型经过学习决定。","s":"NeurIPS 2017: Attention Is All You Need","u":"/en/docs/Deep-Learning/论文笔记/Attention Is All You Need","h":"","p":1214},{"i":1217,"t":"Transformer由Encoder和Decoder组成,编码器和解码器都包含6个Block,整体结构如下图所示。","s":"整体结构","u":"/en/docs/Deep-Learning/论文笔记/Attention Is All You Need","h":"#整体结构","p":1214},{"i":1220,"t":"Transformer Encoder结构如下图所示。其中,Add指的是残差连接Residual Connection,Norm指的是Layer Normalization。","s":"整体结构","u":"/en/docs/Deep-Learning/论文笔记/Attention Is All You Need","h":"#整体结构-1","p":1214},{"i":1222,"t":"对于输入的句子,对一个词汇的嵌入向量的奇数维度使用sine函数进行编码,对偶数维度使用cosine函数计算编码。 公式如下所示,其中pospospos指的是该词汇在整个输入句子中的位置,2i2i2i以及2i+12i+12i+1指的是该词汇的嵌入向量中的维度,dmodeld_{model}dmodel​指的是在嵌入层之后嵌入向量的总维度。即对于每个输入词汇,都要计算dmodeld_{model}dmodel​次位置编码。 PE(pos,2i)=sin(pos100002i/dmodel)(1)PE_{(pos,2i)}=sin(\\frac{pos}{10000^{2i/d_{\\mathrm{model}}}}) \\tag{1}PE(pos,2i)​=sin(100002i/dmodel​pos​)(1) PE(pos,2i+1)=cos(pos100002i/dmodel)(2)PE_{(pos,2i+1)}=cos(\\frac{pos}{10000^{2i/d_{\\mathrm{model}}}}) \\tag{2}PE(pos,2i+1)​=cos(100002i/dmodel​pos​)(2) 根据三角函数的性质,对于pos+kpos+kpos+k位置的嵌入向量的某一维度(2i2i2i或2i+12i+12i+1)而言,可以表示为pospospos位置与kkk位置的嵌入向量的2i2i2i与2i+12i+12i+1维度的线性组合,使得位置向量中蕴含了相对位置的信息。 PE(pos+k,2i)=PE(pos,2i)×PE(k,2i+1)+PE(pos,2i+1)×PE(k,2i)PE(pos+k,2i+1)=PE(pos,2i+1)×PE(k,2i+1)−PE(pos,2i)×PE(k,2i)(3)\\begin{array}{l}PE(pos+k,2i)=PE(pos,2i)\\times PE(k,2i+1)+PE(pos,2i+1)\\times PE(k,2i)\\\\PE(pos+k,2i+1)=PE(pos,2i+1)\\times PE(k,2i+1)-PE(pos,2i)\\times PE(k,2i)\\end{array} \\tag{3}PE(pos+k,2i)=PE(pos,2i)×PE(k,2i+1)+PE(pos,2i+1)×PE(k,2i)PE(pos+k,2i+1)=PE(pos,2i+1)×PE(k,2i+1)−PE(pos,2i)×PE(k,2i)​(3) 最终,位置编码向量的维度与词汇的嵌入维度相同,进行element-wise的相加操作。 InputEmbedding(pos,i)=WordEmbedding(pos,i)+PositionEncoding(pos,i)(4)InputEmbedding(pos,i)=WordEmbedding(pos,i)+PositionEncoding(pos,i) \\tag{4}InputEmbedding(pos,i)=WordEmbedding(pos,i)+PositionEncoding(pos,i)(4)","s":"位置编码(Positional Encoding)","u":"/en/docs/Deep-Learning/论文笔记/Attention Is All You Need","h":"#位置编码positional-encoding","p":1214},{"i":1224,"t":"输入向量由Word Embedding和Positional Embedding相加得到。输入序列经过Mutil-Head Self-Attention之后,通过Residual Connection加上自身的输入向量,再经过Layer Normalization,之后送入FCN并进行Residual Connection加上送入FCN的输入自身,最终再进行Layer Normalization,以上构成了一个Encoder Block。每一个Block输出的向量序列长度等于输入的向量序列长度。","s":"具体结构","u":"/en/docs/Deep-Learning/论文笔记/Attention Is All You Need","h":"#具体结构","p":1214},{"i":1226,"t":"Decoder的任务是生成输出,可以根据是否一次性生成输出分为Autoregressive(自回归,abbr. AT)以及Non-Autoregressive(非自回归,abbr. NAT)两种模式。 自回归类型的Decoder需要逐步生成输出,并将之前自身输出的所有词汇经过嵌入层后生成token作为下一次的输入,通常每次生成一个词或一个符号。这种方式的缺点是需要保存和更新词表中的所有可能选项,因此在大词汇表上可能会变得非常慢。然而,它的优点是能够利用上下文信息来生成输出,这有助于提高翻译的质量。 非自回归类型的Decoder试图在一次操作中生成整个输出序列。这通常通过使用诸如注意力机制等策略来实现,这些策略允许解码器关注输入序列的不同部分,同时生成输出序列的不同部分。NAT的优点在于其高效性,因为它不需要保存和更新大量的可能选项。然而,由于它不能利用上下文信息来生成输出,因此其生成的输出质量普遍会低于AT。","s":"Decoder","u":"/en/docs/Deep-Learning/论文笔记/Attention Is All You Need","h":"#decoder","p":1214},{"i":1228,"t":"整体结构​ 词汇表(Vocabulary)​ 词汇表(Vocabulary)是一个包含了在特定语言或任务中所有可能出现的所有单词或标记的集合。在自然语言处理(NLP)中,词汇表是训练模型时所使用的唯一单词的集合,由具体的生成任务而确定。 Decoder每一步的输出是一个经过Softmax的Probability Distribution(概率分布),代表着词汇表中每一个词汇当前生成的概率,取最大概率值的词汇便是模型当前时间步输出的词汇。 Begin符号​ 解码器(Decoder)在每个时间步(或每个解码步骤)的输入都来自于前一个时间步自身的输出以及编码器(Encoder)的输出。特别地,首个时间步的输入是Begin符号以及编码器(Encoder)的输出,在每个后续的时间步,解码器的输入会是前一个时间步自身的输出以及编码器(Encoder)的输出,直到生成序列的结束。 特殊符号 Begin符号是在Lexicon中添加的特殊符号,用来表示Decoder生成的开始。Begin符号通常被嵌入到一个低维的连续向量空间中,这个向量空间是通过嵌入层(Embedding Layer)学习得到的,在嵌入层中,离散的符号被映射到一个实数向量。 Begin符号又叫Start符号或SOS符号(Start Of Sentence),都是表示生成的开始。End符号又叫EOS符号(End Of Sentence)。 End符号​ 在Decoder的生成中,每一个时间步的输出是词汇表中每一个单词经过Softmax之后的概率分布。为了保证生成任务可以通过模型自己停止而不是一直重复,我们向Decoder的输出中加入End符号的生成,即每一次输出除了词汇表的所有词汇外还有End符号的概率,当End符号是在所有词汇中概率最大的词汇时,生成停止。 掩码多头自注意力机制(Masked Multi-Head Self-Attention)​ 为什么使用掩码多头自注意力 掩码多头自注意力与Transformer训练时采取的Teacher Forcing策略有很大的关系,具体分析见下文《Teacher Forcing与Masked Multi-Head Self-Attention》的讨论环节:Teacher Forcing与Masked Multi-Head Self-Attention 观察Decoder的整体结构,掩码多头自注意力的输入是添加位置编码之后的Decoder当前时间步之前的所有输出单词经过嵌入后的向量表示。 掩码多头自注意力机制用于确保在生成序列的过程中,每个位置只能关注到该位置及其之前的位置。这是通过在Self-Attention的计算中应用一个掩码(mask)来实现的。这确保了在生成序列时,每个位置只能查看到它之前的信息,而不能查看到未来的信息,从而实现了自回归性质。 具体来说,添加掩码后的自注意力机制在生成注意力分数时不再考虑输入序列的所有向量。如在输入向量aia^iai在计算注意力分数时,只将aia^iai的query向量与a1a^1a1至aia^{i}ai的iii个key向量做dot product,而不考虑aia^iai之后的输入的key。 tip 对于第sss个时间步,Masked Mutil-Head Self-Attention的输入是时间步sss之前Decoder生成的所有输出单词的嵌入表示。 交叉注意力(Cross-Attention)​ 交叉注意力是连接Encoder和Decoder的桥梁,也是Decoder输入的重要组成部分。 交叉注意力接收两个输入序列,一个来自编码器(Encoder)的输出序列(通常是输入序列的表示),另一个来自解码器(Decoder),是经过掩码多头自注意力机制的输出序列(通常是正在生成的序列的中间表示)。 在交叉注意力中,每次计算注意力得分的query来自解码器,key和value来自编码器。解码器每个向量的查询(Query)与编码器位置的键(Key)进行点积得到了注意力分数,通过Softmax操作后转换为注意力权重,再与编码器位置的值(Value)weighted sum得到加权注意力分数,最终将加权注意力分数求和得到每个输入向量的输出。","s":"Autoregressive Decoder(AT)","u":"/en/docs/Deep-Learning/论文笔记/Attention Is All You Need","h":"#autoregressive-decoderat","p":1214},{"i":1232,"t":"在 Transformer 中,Encoder 不像 Decoder 需要生成序列,因此它通常不涉及标签的预测。Encoder 的训练通常是在整个模型中的联合训练中进行的,通过优化整个模型的损失函数来进行。 Transformer 的整体训练过程一般分为以下几个步骤: 编码器(Encoder)的正向传播: 输入序列经过编码器的正向传播,产生一组上下文表示。 解码器(Decoder)的正向传播: 解码器接收上下文表示,并生成目标序列。 计算损失: 通过比较生成的目标序列与实际目标序列,计算损失。在 Decoder 中,通常使用交叉熵损失函数。 反向传播: 根据损失,进行反向传播,更新模型参数。这个过程中,梯度通过整个模型传播,包括 Encoder 和 Decoder。 整个模型的参数(包括 Encoder 和 Decoder)都是通过最小化整体损失来进行联合训练的。这是因为整体模型需要协同工作,Encoder 的表示对于 Decoder 的性能至关重要。在训练过程中,梯度从损失函数传播回整个模型,包括 Encoder 和 Decoder,从而更新它们的参数。 需要注意的是,Transformer 模型通常使用的是端到端的训练方式,整个模型的参数是一次性更新的。在某些场景下,你可能会看到对 Encoder 或 Decoder 进行微调(fine-tuning)的情况,但这是在特定应用场景下的调整,不是 Transformer 模型的标准训练方式。","s":"损失函数","u":"/en/docs/Deep-Learning/论文笔记/Attention Is All You Need","h":"#损失函数","p":1214},{"i":1234,"t":"在Transformer的推理阶段,自回归类型的Decoder根据分词方式的不同,一个词汇一个词汇的输出,将当前时间步之前生成的所有词汇作为输入load进入Decoder中。但在训练时如果遵从同样的生成范式会大大降低效率,并且面临则一步错步步错的风险(Error Propagation)。 因此使用Teacher Forcing策略,将Ground Truth一次性喂到Decoder中,使模型更快收敛并且避免误差积累的问题。 但是,自回归Decoder在推理时是一个一个词汇产生的,在产生第iii个词汇时其后续的词汇是未知的,更不用说进行注意力分数的就算了,而在训练过程中使用Teacher Forcing时却可以得到第i+1i+1i+1个及其之后词汇的注意力信息,如果不添加其他策略显然会对模型的泛化能力造成很大的影响,而且这并不符合自回归(Autoregression)的特性。为了解决这个问题,掩码多头注意力机制应运而生,在训练阶段将模型在时间发展顺序的右侧的输入masked掉,防止模型学习到不该学习的注意力。","s":"Teacher Forcing","u":"/en/docs/Deep-Learning/论文笔记/Attention Is All You Need","h":"#teacher-forcing","p":1214},{"i":1236,"t":"参考文献:MultiHead-Attention和Masked-Attention的机制和原理 与Encoder的多头自注意力不同,在Decoder中,为注意力机制应用了掩码,使模型只能关注到当前位置及其之前的位置,而不能访问未来的信息。这解决了引入Teacher Forcing出现的问题,避免了训练与推理阶段的Mismatch,维护了自回归的特性。 具体来说,模拟推理过程中第一个词汇时的场景。当模型只有voc1voc_1voc1​词汇向量输入时,在Decoder中,voc1voc_1voc1​与自身计算注意力分数,于是有 [o1]=[α1,1′][v1](5)\\begin{bmatrix}o_1\\end{bmatrix}=\\begin{bmatrix}\\alpha_{1,1}^{\\prime}\\end{bmatrix}\\begin{bmatrix}v_1\\end{bmatrix}\\tag{5}[o1​​]=[α1,1′​​][v1​​](5) 我们再模拟训练过程中使用Teacher Forcing,一次性输入为两个词汇voc1voc_1voc1​与voc2voc_2voc2​的情况,于是有 [o1o2]=[α1,1′α2,1′α1,2′α2,2′][v1v2](6)\\begin{bmatrix}o_1\\\\o_2\\end{bmatrix}=\\begin{bmatrix}\\alpha_{1,1}^{\\prime}&\\alpha_{2,1}^{\\prime}\\\\\\alpha_{1,2}^{\\prime}&\\alpha_{2,2}^{\\prime}\\end{bmatrix}\\begin{bmatrix}v_1\\\\v_2\\end{bmatrix} \\tag{6}[o1​o2​​]=[α1,1′​α1,2′​​α2,1′​α2,2′​​][v1​v2​​](6) 然而,为了使训练过程中符合推理时自回归的特性,理想的输出应该是 [o1o2]=[α1,1′0α1,2′α2,2′][v1v2](7)\\begin{bmatrix}o_1\\\\o_2\\end{bmatrix}=\\begin{bmatrix}\\alpha_{1,1}^{\\prime}&0\\\\\\alpha_{1,2}^{\\prime}&\\alpha_{2,2}^{\\prime}\\end{bmatrix}\\begin{bmatrix}v_1\\\\v_2\\end{bmatrix} \\tag{7}[o1​o2​​]=[α1,1′​α1,2′​​0α2,2′​​][v1​v2​​](7) 继续扩展,当有nnn个输入词汇时,应该有 [o1o2⋮on]=[α1,1′0⋯0α1,2′α2′⋯0⋮⋮⋮α1,n′α2,n′⋯αn,n′][v1v2⋮vn](8)\\begin{bmatrix}o_1\\\\o_2\\\\\\vdots\\\\o_n\\end{bmatrix}=\\begin{bmatrix}\\alpha'_{1,1}&0&\\cdots&0\\\\\\alpha'_{1,2}&\\alpha'_2&\\cdots&0\\\\\\vdots&\\vdots&&\\vdots\\\\\\alpha'_{1,n}&\\alpha'_{2,n}&\\cdots&\\alpha'_{n,n}\\end{bmatrix}\\begin{bmatrix}v_1\\\\v_2\\\\\\vdots\\\\v_n\\end{bmatrix}\\tag{8}⎣⎡​o1​o2​⋮on​​⎦⎤​=⎣⎡​α1,1′​α1,2′​⋮α1,n′​​0α2′​⋮α2,n′​​⋯⋯⋯​00⋮αn,n′​​⎦⎤​⎣⎡​v1​v2​⋮vn​​⎦⎤​(8) 因此,我们需要将当前时间步计算的词汇的时间顺序右侧的输入词汇全部掩码,置为0。 在源码中,有如下片段实现掩码: if mask is not None: scores = scores.masked_fill(mask == 0, -1e9) p_attn = scores.softmax(dim=-1) 在源码中,将mask置为负无穷是因为这是在经过Softmax之前进行的掩码,在经过Softmax之后负无穷小就变成了0。","s":"Teacher Forcing与Masked Multi-Head Self-Attention","u":"/en/docs/Deep-Learning/论文笔记/Attention Is All You Need","h":"#teacher-forcing与masked-multi-head-self-attention","p":1214},{"i":1238,"t":"本篇论文主要基于 IPL 的思想实现。本仓库大部分从 IPL-Zero-Shot-Generative-Model-Adaptation fork 而来并做出了一定修改。","s":"本科毕业论文:基于 Prompt Learning 的视觉-语言大模型在图像生成中的应用与研究","u":"/en/docs/Deep-Learning/实战练习/Undergraduate-Dissertation","h":"","p":1237},{"i":1241,"t":"conda create -n ipl python=3.8 conda activate ipl","s":"创建 Anaconda 虚拟环境","u":"/en/docs/Deep-Learning/实战练习/Undergraduate-Dissertation","h":"#创建-anaconda-虚拟环境","p":1237},{"i":1243,"t":"请确保 NVIDIA 驱动、CUDA 以及 PyTorch 之间版本互相匹配。 conda install pytorch torchvision torchaudio pytorch-cuda=11.8 -c pytorch -c nvidia pip install ftfy regex tqdm ninja pip install git+https://github.com/openai/CLIP.git","s":"安装依赖","u":"/en/docs/Deep-Learning/实战练习/Undergraduate-Dissertation","h":"#安装依赖","p":1237},{"i":1245,"t":"预训练的源域生成器可以通过 Google Drive 或者 Tsinghua Cloud 下载,并将其置于 ./pre_stylegan 文件夹中。","s":"下载预训练生成器","u":"/en/docs/Deep-Learning/实战练习/Undergraduate-Dissertation","h":"#下载预训练生成器","p":1237},{"i":1249,"t":"ctx_init 参数用于初始化 prompts,官方提供的演示 context 是a photo of a。 source_prompts = [prompt_prefix + \" \" + args.source_class] target_prompts = [prompt_prefix + \" \" + args.target_class] 源域的初始提示词 source_prompts 是 ctx_init 与源域标签的组合。若源域标签为 photo,则源域的初始提示词是 a photo of a photo。目标域的初始提示词同理。","s":"prompts 的初始化","u":"/en/docs/Deep-Learning/实战练习/Undergraduate-Dissertation","h":"#prompts-的初始化","p":1237},{"i":1251,"t":"源域以及目标域的初始提示词接下来会进行 tokenize: source_tokenized_prompts = torch.cat([clip.tokenize(p) for p in source_prompts]).to(device) # (1, 77) 'sot a photo of a photo eot' 在经过tokenize后为tensor [[49406, 320, 1125, 539, 320, 1125, 49407, etc]] # 77是CLIP在tokenize方法中缺省的context_length,超过context_length将被truncate,不足的将用0补齐 target_tokenized_prompts = torch.cat([clip.tokenize(p) for p in target_prompts]).to(device) # (1, 77) 'sot a photo of a disney' 在经过tokenize后为tensor [[49406, 320, 1125, 539, 320, 4696, 49407, etc]] # 77是CLIP在tokenize方法中缺省的context_length,超过context_length将被truncate,不足的将用0补齐 tokenize 是 CLIP 对送入的 prompt 字符串进行标记化处理,在头部和尾部添加 startoftext 以及 endoftext 标记,最终为两个首尾标记和全部单词生成 int 标记。其中 CLIP 模型缺省的 context_length 是77,若 prompt 大于 77 会进行截断(truncate),若小于 77 会进行补零,因此 source_tokenized_prompts 与 target_tokenized_prompts 的形状均为 (1, 77)。 在提示词标记化之后,将进行嵌入表示 embedding: source_embedding = clip_model.token_embedding(source_tokenized_prompts).type(clip_model.dtype) # (1, 77, 512) 其中512是CLIP中的n_dim,token_embedding层的词嵌入的维度 target_embedding = clip_model.token_embedding(target_tokenized_prompts).type(clip_model.dtype) # (1, 77, 512) 其中512是CLIP中的n_dim,token_embedding层的词嵌入的维度","s":"prompts 的 tokenize 与 embedding","u":"/en/docs/Deep-Learning/实战练习/Undergraduate-Dissertation","h":"#prompts-的-tokenize-与-embedding","p":1237},{"i":1253,"t":"在 Mapper 生成 prompts 后进行 prompts 的特征提取时,需要传入 tokenize 之后的人工初始化 prompt(‘a photo of a photo.’或‘a photo of a disney.’),用于选择 eot 符号对应的维度来进行特征投影(因为 eot 作为整个句子的结尾,被认为该维度包含更多的信息。具体做法:由于在 tokenize 之后,eot 符号对应的维度的值最大,因此可使用 argmax 来定位),以保证最后得到的特征形状与图像特征提取的输出形状相同,使得后续可以进行对比学习的损失计算。","s":"compute_text_features 的实现细节","u":"/en/docs/Deep-Learning/实战练习/Undergraduate-Dissertation","h":"#compute_text_features-的实现细节","p":1237},{"i":1255,"t":"Z空间与W空间​ # Z空间到W空间的变换 sample_z = mixing_noise(args.batch_mapper, 512, args.mixing, device) # (batch_size, 512) sample_w = net.generator_frozen.style(sample_z) # (batch_size, 512) Z 空间和 W 空间是 StyleGAN 模型中两种不同的隐变量空间,分别用于控制生成图像的随机特征和样式信息。W 空间通过对 Z 空间的映射得到。 Z 空间(Latent Space Z): Z 空间是随机噪声空间,通常由随机噪声向量组成,表示了图像的随机特征。 在 StyleGAN 中,Z 空间的维度通常为 512 维。这意味着一个 Z 向量由 512 个数字组成,每个数字表示了图像的一个随机特征的强度或者方向。 W 空间(Style Space W): W 空间经过特征解耦的隐空间,与 Z 空间相比更加解耦合。 在 StyleGAN 中,W 空间的维度也通常为 512 维,是通过mapping network进行映射得到的,mapping network由PixelNorm层与EqualLinear层构成。以下代码节选自sg2_model.py: '''mapping network''' layers = [PixelNorm()] for i in range(n_mlp): layers.append( EqualLinear( style_dim, style_dim, lr_mul=lr_mlp, activation=\"fused_lrelu\" ) ) self.style = nn.Sequential(*layers) Z 空间与 W 空间的关系: 在 StyleGAN 中,通常会先将一个 Z 向量映射到 W 空间,然后再将 W 向量输入到生成器网络中生成图像。 Z 空间提供了初始随机噪声,而 W 空间则通过特征解耦提供更多控制图像风格的灵活性。通过对 Z 和 W 之间的映射以及 W 在生成器中的应用,StyleGan 实现了高度可控且具有良好生成效果的图像合成。 损失函数​ 在代码中,stage 1 的损失函数是 global_clip_loss,该损失由三部分组成: 对比学习损失:Mapper 生成的源域 prompts 的特征(注意,这里的 prompts 特征是与人工初始化的 prompts 的特征做过 element-wise 相加后的特征)与源域图像特征的余弦相似度组成的对比学习损失; 目标域正则化损失:Mapper 生成的目标域 prompts 的特征与目标域文本标签特征的余弦相似度,这里生成的目标域 prompts 特征同样也是与人工初始化的 prompts 做过加法的。注意该损失有权重 lambda_l。 源域正则化:计算生成的源域prompts与源域标签之间的余弦相似度,由 lambda_src 控制,默认是 0。","s":"训练 stage 1","u":"/en/docs/Deep-Learning/实战练习/Undergraduate-Dissertation","h":"#训练-stage-1","p":1237},{"i":1257,"t":"确定目标域生成域需要更新的层​ 在训练的第二阶段进行前向传播时,需要先对目标域生成器(generator_trainable)的所有层进行 unfreeze,然后对更新哪些层做出选择,承担选择任务的功能函数:model.ZSSGAN.ZSSGAN.determine_opt_layers,最后 freeze 所有层后再 unfreeze 选择的网络层。 if self.training and self.auto_layer_iters > 0: self.generator_trainable.unfreeze_layers() # unfreeze train_layers = self.determine_opt_layers() # layer to train if not isinstance(train_layers, list): train_layers = [train_layers] self.generator_trainable.freeze_layers() self.generator_trainable.unfreeze_layers(train_layers) # unfreeze 具体选择带更新网络层的策略: 将 W 空间的隐向量送入目标域生成器(SG2Generator)中,并进行反向传播,此时可以通过反向传播后 W 空间隐向量不同维度的更新幅度来衡量不同网络层的影响力,因此选出更新幅度最大的维度就可以确定在 Model Adaption 中需要更新的网络层。 之所以 W 空间编码在 n_latent 维度上的序号就代表着对应的网络层数的序号,是因为 StyleGAN 生成器的结构决定了这一点:StyleGAN 生成器中,W 空间编码的不同维度会被送入生成器网络的不同层,控制这些层的特征映射 (feature mapping)。具体来说,W 空间编码的每个维度会被重复 n_latent 次,作为该层的风格向量 (style vector),通过 AdaIN (Adaptive Instance Normalization) 层控制该层的特征映射。因此,W 空间编码的第 i 个维度会影响生成器网络中第 i 层的特征映射。当某个维度的 W 值被更新的程度较大时,就意味着该维度对应的层在生成目标图像时起到了重要作用,需要被优化。 损失函数​ stage 2 的损失函数是 CLIP Loss 类中的 clip_directional_loss,该损失函数由两部分组成: edit_direciton:源域生成器与目标域生成器生成的图片在经过 image encdoer 后做 element-wise 的相减,最后除以自身的 L2 Norm 方便后续与 target_direction 计算余弦相似度。 target_direction:Mapper 产生的源域和目标域 prompts 的 text_features 做element-wise相减后,最后初一自身的 L2 Norm 以便后续与 edit_direction 计算余弦相似度。","s":"训练 stage 2","u":"/en/docs/Deep-Learning/实战练习/Undergraduate-Dissertation","h":"#训练-stage-2","p":1237},{"i":1259,"t":"参考文献:GAN 的几种评价指标 Inception Score(IS) 评估图像的质量和多样性 质量:把生成的图片 xxx 输入 Inception V3 中,得到输出 1000 维的向量 yyy,向量的每个维度的值对应图片属于某类的概率。对于一个清晰的图片,它属于某一类的概率应该非常大,而属于其它类的概率应该很小。用专业术语说, p(y∣x)p(y|x)p(y∣x) 的熵应该很小(熵代表混乱度,均匀分布的混乱度最大,熵最大)。 多样性: 如果一个模型能生成足够多样的图片,那么它生成的图片在各个类别中的分布应该是平均的,假设生成了 10000 张图片,那么最理想的情况是,1000 类中每类生成了 10 张。转换成术语,就是生成图片在所有类别概率的边缘分布 p(y)p(y)p(y) 熵很大(均匀分布)。 因此,对于 IS 我们需要求的两个量就是 p(y∣x)p(y|x)p(y∣x) 和 p(y)p(y)p(y)。实际中,选取大量生成样本,用经验分布模拟 p(y)p(y)p(y): p^(y)=1N∑i=1Np(y∣x(i))\\hat{p}(y)=\\frac{1}{N}\\sum_{i=1}^{N}p(y|\\mathbf{x}^{(i)})p^​(y)=N1​i=1∑N​p(y∣x(i)) Inception Score 的完整公式如下: IS(G)=exp⁡(Ex∼pgDKL(p(y∣x)∣∣p(y)))\\mathbf{IS}(G)=\\exp\\left(\\mathbb{E}_{\\mathbf{x}\\sim p_g}D_{KL}\\left(p(y|\\mathbf{x})||p(y)\\right)\\right)IS(G)=exp(Ex∼pg​​DKL​(p(y∣x)∣∣p(y))) 通常计算 Inception Score 时,会生成 50000 个图片,然后把它分成 10 份,每份 5000 个,分别代入公式计算 10 次 Inception Score,再计算均值和方差,作为最终的衡量指标(均值±方差)。但是 5000 个样本往往不足以得到准确的边缘分布 p(y)p(y)p(y),尤其是像 ImageNet 这种包含 1000 个类的数据集。 StyleGAN-nada 以及 IPL 在经过 batch_size 为 2,iteration 为 300 的训练后(其中 IPL 的 Mapper 是以 batch_size 为 32,iteration 为 300 进行训练的),二者的 IS 分别为 (2.2960, 0.2042) 以及 (2.6420, 0.1959)。 Fréchet Inception Distance(FID) 评估目标域的风格 计算 IS 时只考虑了生成样本,没有考虑真实数据,即 IS 无法反映真实数据和样本之间的距离,IS 判断数据真实性的依据,源于 Inception V3 的训练集 ImageNet,在 Inception V3 的“世界观”下,凡是不像 ImageNet 的数据,都是不真实的,都不能保证输出一个 sharp 的 predition distribution。因此,要想更好地评价生成网络,就要使用更加有效的方法计算真实分布与生成样本之间的距离。 FID 距离计算真实样本,生成样本在特征空间之间的距离。首先利用 Inception 网络来提取特征,然后使用高斯模型对特征空间进行建模,再去求解两个特征之间的距离,较低的 FID 意味着较高图片的质量和多样性。 StyleGAN-nada 以及 IPL 在经过 batch_size 为 2,iteration 为 300 的训练后(其中 IPL 的 Mapper 是以 batch_size 为 32,iteration 为 300 进行训练的),二者的 FID 分别为 84 以及 58。 Single Image Fréchet Inception Score(SIFID) FID 测量生成的图像的深层特征分布与真实图像的分布之间的偏差。在 ICCV 2019 Best Paper 中提出了 SIFID,只使用一张真实目标域的图像。与 FID 不同,SFID 不使用 Inception Network 中最后一个池化层之后的激活矢量(每个图像一个向量),而是在第二个池层之前的卷积层输出处使用深层特征的内部分布(feature map 中每个位置一个向量)。最终 SIFID 是真实图像和生成的样本中这些特征的统计数据之间的 FID。 Structural Consistency Score(SCS) 评估图像的结构保存能力 Identity Similarity(ID) 评估图像的特征保存能力","s":"定量分析指标","u":"/en/docs/Deep-Learning/实战练习/Undergraduate-Dissertation","h":"#定量分析指标","p":1237},{"i":1262,"t":"新增了自定义图像风格迁移功能。 HyperStyle 中的 e4e encoder 将自定义的真实图像编码至 StyleGAN2 中的 W 空间生成 latent codes,再将其分别输入至源域生成器以及目标域生成器以代替原始的从正态分布中 sample 出的随机向量生成的 w_codes,从而得到相应的图片。其中 e4e encoder 来源于 HyperStyle 提供的预训练 checkpoint。 使用方法:运行 inference.py,设置对应的参数,如生成器以及 e4e encoder 的路径、图像路径等,最后运行即可。 修改日志​ 第一次尝试只加载了 w_encoder 类及其对应 checkpoint 参数,导致并未将真实图片编码到 StyleGAN 的 W 空间中,没有 inversion 出合理的结果 第二次尝试使用了 restyle_e4e_encoder,但是没有使用 dlib 进行 alignment,也没有使用 restyle 模型在反演时使用的多次进行前向传播来修正 latent code 的策略。此次尝试虽然反演出了合理的人像,但是人像的特征保存能力非常弱 第三次尝试解决了上一次发现的问题,加入 dlib 提供的 landmark 检测以实现 alignment,并且使用 run_loop 函数在 restyle_e4e_encoder 中进行多次前向传播以修正得到的 W 空间的 latent code,效果较好 对比 pSp 和 e4e encoder,pSp 对人脸图像的还原能力较强,但是会导致目标域图像具有随机的彩色光晕","s":"自定义图像风格迁移","u":"/en/docs/Deep-Learning/实战练习/Undergraduate-Dissertation","h":"#自定义图像风格迁移","p":1237},{"i":1265,"t":"Mapper 的作用是从 W 空间的隐式代码中学习出符合源域图片特征以及符合目标域文字特征的 prompts。","s":"改进:Mapper 结构的设计","u":"/en/docs/Deep-Learning/实战练习/Undergraduate-Dissertation","h":"#改进mapper-结构的设计","p":1237},{"i":1267,"t":"在 IPL 的官方代码实现中,人工设计的 prompts 有两处,一是 ctx_init,由命令行参数赋值,即 \"a photo of a\",另一处是 utils/text_templates.py 中的 templates, ctx_init 的作用(与域标签拼接后的 ctx_init)​ ctx_init 在 compute_text_features 函数中用于定位 eot 层符号所表示的维度来进行投影,使得文字特征与图像特征维度相同,并不参与 text_features 的实际计算。但是在该函数中,Mapper 输出的 image-specific prompts 已经与域标签的嵌入表示进行了 concat。 在 stage 1 训练 Mapper 损失函数中,Mapper 学习到的 image-specfic prompts 在与源域标签进行 concat 并得到文字编码后,会与 ctx_init 的文字编码进行 element-wise 的相加,最后再与源域生成器输出的图片的图像编码进行对比损失计算; 同理,在 stage 2 训练目标域生成器时,Mapper 输出的 image-specific prompts 在分别与源域、目标域标签 concat 后送入文字编码器得到文字特征,再与 ctx_init 的文字特征进行 element-wise 相加,最后二者相减得到 text_direction。 templates 的作用​ 注意,这里的 compute_text_features 函数中向其参数 templates 传入的值是 ctx_init,所以才能使用 ctx_init 来定位 eot 符号所对应的层进行维度投影。参数 templates 缺省的值是在 utils/text_templates.py 中写好的模板。 思考​ IPL 方法对 Mapper 学习到的 prompts 除了(1)使用对比学习使 prompts 学习到源域图片的特征以及(2)使用域正则化使得 prompts 向目标域标签对齐之外,并没有使用其他与人工设计的 prompts 有关的正则化方式来约束 prompts 的学习,因此人工设计的 prompts 可能并没有起到太大的约束作用。 如果对比学习损失是为了让 Mapper 自监督学习到图片的特征外,那么是否可以对域正则化损失进行改进,约束学习到的 prompts 向人工设计的初始化 prompts 对齐,以实现类似于 Stable Diffusion 类似的 prompts 控制图像生成的效果。","s":"问题:训练阶段人工 prompts 的作用是什么?","u":"/en/docs/Deep-Learning/实战练习/Undergraduate-Dissertation","h":"#问题训练阶段人工-prompts-的作用是什么","p":1237},{"i":1269,"t":"对第一阶段的损失函数做出修改,更新domain loss,使目标域的image-specific prompts与自定义模板对齐。 对 global_clip_loss 的改进​ IPL 训练第一阶段的损失函数除了源域 prompts 与源域图像之间的对比学习损失函数外,还有将目标域 prompts 与目标域标签计算余弦相似度的 domain regularization。 对 domain regularization 进行改进,引入开发者自定义的 prompts,约束 Mapper 学习到的目标域 prompts 向开发者自定义的 prompts 对齐,以此来进行 prompt tuning,发挥 prompt learning 的更大优势,并增强自定义性。 对 clip_directional_loss 的改进​ IPL 训练第二阶段的损失函数","s":"改进:使学习到的 prompts 向用户自主设计的 prompts 模板对齐","u":"/en/docs/Deep-Learning/实战练习/Undergraduate-Dissertation","h":"#改进使学习到的-prompts-向用户自主设计的-prompts-模板对齐","p":1237},{"i":1271,"t":"tip 对于TensorFlow框架,可以使用TensorBoard实现可视化。 对于PyTorch框架,可以使用Visdom或TensorBoardX实现可视化,本篇主要讲述Visdom。","s":"Visdom可视化","u":"/en/docs/Deep-Learning/实战练习/Visdom Visualization","h":"","p":1270},{"i":1273,"t":"pip install visdom","s":"安装Visdom","u":"/en/docs/Deep-Learning/实战练习/Visdom Visualization","h":"#安装visdom","p":1270},{"i":1276,"t":"首先要通过终端启动Visdom,使用本机端口运行服务器。 以下二者均可。 visdom python -m visdom.server","s":"Visdom的启动","u":"/en/docs/Deep-Learning/实战练习/Visdom Visualization","h":"#visdom的启动","p":1270},{"i":1278,"t":"from visdom import Visdom vis = Visdom() # 实例化 # 创建一条曲线,前两个参数分别为y轴数据、x轴数据,win参数是窗口的唯一标识,opt可选字典中可以给出窗口的title和legend vis.line([0.], [0.], win='win_id', opts=dict(title=\"win_title\")) # 在训练过程中的合适位置向初始化的曲线中喂数据 # viz.line([real_y_data], [global_step], win='win_id', update='append') # 查看训练loss vis.line([loss.item()], [epoch], win='win_id', update='append') # 对于非image数据,在传入visdom时仍需要先转化为numpy类型","s":"单窗口单曲线的可视化","u":"/en/docs/Deep-Learning/实战练习/Visdom Visualization","h":"#单窗口单曲线的可视化","p":1270},{"i":1280,"t":"from visdom import Visdom vis = Visdom() vis.line([[0., 0.]], [0.], win='win_id', opts=dic(title=\"win_title\", legend=[\"curve_name_1\", \"curve_name_2\"])) # 在训练过程中的合适位置向初始化的曲线中喂数据 viz.line([[y1, y2]], [global_step], win='win_id', update='append')","s":"单窗口多曲线的可视化","u":"/en/docs/Deep-Learning/实战练习/Visdom Visualization","h":"#单窗口多曲线的可视化","p":1270},{"i":1282,"t":"介绍 欢迎来到笔记本的深度学习部分 若更新不及时,欢迎通过GitHub联系交流 有关论文笔记的说明 为了节省写作时间,论文笔记部分的文章通常只讲述文章的方法论,Introduction以及Related Work详情可以参考论文原文","s":"Welcome","u":"/en/docs/Deep-Learning/intro","h":"","p":1281},{"i":1284,"t":"如果可以帮到你的话就给个免费的Star吧!","s":"支持我!","u":"/en/docs/Deep-Learning/intro","h":"#支持我","p":1281},{"i":1286,"t":"tip 欢迎来到笔记本的其他部分","s":"Welcome","u":"/en/docs/Others/intro","h":"","p":1285},{"i":1288,"t":"如果可以帮到你的话就给个免费的Star吧!","s":"支持我!","u":"/en/docs/Others/intro","h":"#支持我","p":1285},{"i":1290,"t":"告示栏的启用 在docusaurus.config.js的themeConfig中加入以下代码 announcementBar: { id: 'announcementBar-3', content: 'Welcome to my notebook!', isCloseable: false, }, 告示栏的背景个性化 在custom.css中加入以下代码 div[class^='announcementBar_'] { background: repeating-linear-gradient( -35deg, var(--ifm-color-primary-lighter), var(--ifm-color-primary-lighter) 20px, var(--ifm-color-primary-lightest) 10px, var(--ifm-color-primary-lightest) 40px ); font-weight: 700; }","s":"告示栏","u":"/en/docs/Others/博客搭建/告示栏","h":"","p":1289},{"i":1292,"t":"info 这里记录着在学习过程中发现的理解或操作方面出现的错误,温故知新。","s":"查漏补缺","u":"/en/docs/Deep-Learning/Fill-The-Gaps","h":"","p":1291},{"i":1294,"t":"进行广播的条件:两个矩阵的后缘维度相同或其中一方的维度为1。 后缘维度相同:A为(3,4,5)的三维数据,B为(4,5)的二维数组。由于A和B的后缘维度都为(4,5),所以可以进行广播。同理,当A为(3,4)的二维数组,B为(4,)的数组,他们的后缘维度都是4,所以可以进行广播。 后缘维度中有一方维度为1:A为(4,5)的二维数组,B为(4,1)的二维数组,其中一方维度为1,可以进行广播。 广播的原理:在运算过程中,Python逐步对数组进行广播,并不进行实际的复制操作,节省内存。 以下是举出具体例子进行分析: import numpy as np import torch x = torch.tensor(np.arange(9), dtype=torch.float32) x = torch.reshape(x, (3, 3)) print(x) x1 = x[:, :, None] # (3, 3, 1) print(x1) \"\"\" tensor([[[0.], [1.], [2.]], [[3.], [4.], [5.]], [[6.], [7.], [8.]]]) \"\"\" x2 = x[:, None] # (3, 1, 3) print(x2) \"\"\" tensor([[[0., 1., 2.]], [[3., 4., 5.]], [[6., 7., 8.]]]) \"\"\" output = x1 + x2 print(output) \"\"\" tensor([[[ 0., 1., 2.], [ 1., 2., 3.], [ 2., 3., 4.]], [[ 6., 7., 8.], [ 7., 8., 9.], [ 8., 9., 10.]], [[12., 13., 14.], [13., 14., 15.], [14., 15., 16.]]]) \"\"\" 由于x1与x2在第0维度上维度相同,所以Python可以直接进行逐元素相加,即依次进行如下运算 x1[0,:,:]+x2[0,:,:](1)x1[0, :, :] + x2[0, :, :] \\tag{1}x1[0,:,:]+x2[0,:,:](1) x1[1,:,:]+x2[1,:,:](2)x1[1, :, :] + x2[1, :, :] \\tag{2}x1[1,:,:]+x2[1,:,:](2) x1[2,:,:]+x2[2,:,:](3)x1[2, :, :] + x2[2, :, :] \\tag{3}x1[2,:,:]+x2[2,:,:](3) 但在第0维度的相加过程中出现了shape为(3, 1)的矩阵与shape为(1, 3)的矩阵相加的情况,此时进行广播,将(3, 1)的每一列复制三次为(3, 3),将(1, 3)的每一行复制三次为(3, 3),再进行逐元素相加。 其实,上述的过程还可以再细分为,x1[0, 0, :]与x2[0, 0, :]相加时出现了第一次广播,将x1[0, 0, :]复制了三次与x2[0,0, :]完成相加,这里不再赘述,最终想表达的原理是广播机制是在运算过程当中进行的,并非一次性将二者全部复制为对应的最小公倍数形状后再进行运算。","s":"Python的广播机制","u":"/en/docs/Deep-Learning/Fill-The-Gaps","h":"#python的广播机制","p":1291},{"i":1296,"t":"点积在Python中对应的运算符为*,进行矩阵之间的逐元素乘法。在点积运算中,运算矩阵二者形状不一样时可能涉及到广播机制; 矩阵乘法在Python中对应的运算符为@,进行常规矩阵乘法。遵守左矩阵的列数必须等于右矩阵的行数,且输出矩阵的行数等于左矩阵的行数、输出矩阵的列数等于右矩阵的列数的规则。","s":"点积(dot product)与矩阵乘法(matmul product)","u":"/en/docs/Deep-Learning/Fill-The-Gaps","h":"#点积dot-product与矩阵乘法matmul-product","p":1291},{"i":1298,"t":"当你有多个列表(或其他可迭代对象)时,zip函数可以将它们逐个配对成元组。而*操作符用于解压元组,将元组中的元素分别作为参数传递给函数。 以下是一个简单的例子: # zip函数的例子 list1 = [1, 2, 3] list2 = ['a', 'b', 'c'] list3 = ['x', 'y', 'z'] # 使用zip将多个列表配对成元组 zipped_lists = zip(list1, list2, list3) # 打印配对后的元组 for item in zipped_lists: print(item) 输出: (1, 'a', 'x') (2, 'b', 'y') (3, 'c', 'z') 在这个例子中,zip将list1、list2和list3中相同位置的元素组合成元组。 接下来,我们可以使用 * 操作符解压这些元组: # *解压操作的例子 unzipped_lists = zip(*zipped_lists) # 打印解压后的列表 for item in unzipped_lists: print(item) 输出: (1, 2, 3) ('a', 'b', 'c') ('x', 'y', 'z') 在这个例子中,*操作符将先前由zip组合的元组解压,分别放回原始的列表。","s":"zip函数与解压操作*","u":"/en/docs/Deep-Learning/Fill-The-Gaps","h":"#zip函数与解压操作","p":1291},{"i":1300,"t":"参考资料 https://www.jianshu.com/p/41c15d301542 对于不同的网络层,输入的维度虽然不同,但是通常输入的第一个维度都是batch_size,比如torch.nn.Linear的输入(batch_size,in_features),torch.nn.Conv2d的输入(batch_size, C, H, W)。 而RNN的输入是(seq_len, batch_size, input_size),batch_size位于第二维度!虽然可以将batch_size和序列长度seq_len对换位置,此时只需令batch_first=True。 但是为什么RNN输入默认不是batch first=True?这是为了便于并行计算。 因为cuDNN中RNN的API就是batch_size在第二维度。进一步讲,batch first意味着模型的输入(一个Tensor)在内存中存储时,先存储第一个sequence,再存储第二个,而如果是seq_len first,模型的输入在内存中,先存储每一个sequence的第一个元素,然后是第二个元素,两种区别如下图所示: seq_len first意味着不同序列中同一个时刻对应的输入单元在内存中是毗邻的,这样才能做到真正的batch计算。","s":"对batch_first参数的理解","u":"/en/docs/Deep-Learning/Fill-The-Gaps","h":"#对batch_first参数的理解","p":1291},{"i":1303,"t":"dock显示的图标是全局图标,程序启动器的desktop文件位于/usr/share/applications中,全局主题中图标主题的程序logo位于~/.local/share/icons/Mkos-Big-Sur-Night/128x128/apps(deppending on specific situation)中。在logo文件夹中挑选想要的logo,在desktop中的icon位置修改即可 应用更新的时候会同时更新.desktop文件,因此在更换图标是最好直接更换在主题文件中替换icon,而不是更改desktop的icon路径 Finder小组件中application title文字不能垂直居中,可以更换为Window title插件","s":"一、latte-dock","u":"/en/docs/Others/Linux/客制化/如何让你的KDE看起来更像macOS","h":"#一latte-dock","p":1301},{"i":1305,"t":"Finder栏中Plasmoids左半部分从左至右依次为: kpple menu application title/window titile(if the text of application title can't be centered vertically) global menu 右半部分从左至右依次为: resources monitor (fork) mcOS BS Inline Battery 网络 Control Center(replace the icon with search icon) Control Center(replace the icom with menu icon) Better Inline Clock 安装方法: plasmpkg2 -u xxx.plasmoid","s":"二、Kde Plasmoids","u":"/en/docs/Others/Linux/客制化/如何让你的KDE看起来更像macOS","h":"#二kde-plasmoids","p":1301},{"i":1307,"t":"通过编写脚本函数的方式,手动开启代理","s":"终端代理","u":"/en/docs/Others/Linux/实用工具/终端代理","h":"","p":1306},{"i":1309,"t":"新建脚本文件terminal_proxy.sh # 开启代理 function proxy_on(){ export ALL_PROXY=socks5://127.0.0.1:7890 export http_proxy=http://127.0.0.1:7890 export https_proxy=https://127.0.0.1:7890 echo -e \"已开启代理\" } # 关闭代理 function proxy_off(){ unset ALL_PROXY unset http_proxy unset https_proxy echo -e \"已关闭代理\" }","s":"一、编写脚本","u":"/en/docs/Others/Linux/实用工具/终端代理","h":"#一编写脚本","p":1306},{"i":1311,"t":"fish的配置文件:~/.config/fish/config.fish zsh的配置文件:~/.zshrc bash的配置文件:~/.bashrc 在配置文件末尾添加以下代码 source /path/terminal_proxy.sh","s":"二、关联终端配置文件","u":"/en/docs/Others/Linux/实用工具/终端代理","h":"#二关联终端配置文件","p":1306},{"i":1313,"t":"在终端中输入以下命令即可开启代理 proxy_on 在终端中输入以下命令即可关闭代理 proxy_off","s":"三、使用","u":"/en/docs/Others/Linux/实用工具/终端代理","h":"#三使用","p":1306},{"i":1315,"t":"tip 大数除法是指被除数大小超出long long范围,而导致必须使用字符串存储的除法,属于简单模拟的范畴","s":"大数除法","u":"/en/docs/Tui-Mian/机试/大数除法","h":"","p":1314},{"i":1317,"t":"通过模拟列竖式手动计算除法,实现使用字符串存储被除数的大数除法","s":"思路","u":"/en/docs/Tui-Mian/机试/大数除法","h":"#思路","p":1314},{"i":1319,"t":"string division(string s, int divisor) { /* * 通过模拟列竖式手算除法完成字符串存储的大数除法 */ string quotient; // 商 int idx = 0; // 当前处理的数字在原始字符串中的位置 int remainder = 0; // 余数 int temp = 0; while (idx < s.size()) { // 一直循环处理到索引等于长度 temp = remainder * 10 + (s[idx] - '0'); // 当前进行除法运算的temp if (temp >= divisor) { // 如果能除的动,则将当前的商插入quotient,并更新余数 quotient.push_back(temp / divisor + '0'); remainder = temp % divisor; } else { // 除不动时分两种情况 if (!quotient.empty()) { // 商目前不为空,此时按照竖式方法,需要向商中加入0,再接着下一次循环 quotient.push_back('0'); } remainder = temp; // 商目前为空,按照竖式计算方法,只更新余数,商保持为空 } idx++; // 更新索引位置 } if (quotient.empty()) { // 如果一直除不动,循环结束商还为空,则赋值为0字符串 quotient.assign(\"0\"); } return quotient; // 返回商字符串 }","s":"参考代码","u":"/en/docs/Tui-Mian/机试/大数除法","h":"#参考代码","p":1314},{"i":1321,"t":"将大数除法与进制转换相结合。 tip 北京大学机试真题,N诺链接 完整代码如下: #include using namespace std; string division(string s, int divisor) { /* * 通过模拟列竖式手算除法完成字符串存储的大数除法 */ string quotient; // 商 int idx = 0; // 当前处理的数字在原始字符串中的位置 int remainder = 0; // 余数 int temp = 0; while (idx < s.size()) { // 一直循环处理到索引等于长度 temp = remainder * 10 + (s[idx] - '0'); // 当前进行除法运算的temp if (temp >= divisor) { // 如果能除的动,则将当前的商插入quotient,并更新余数 quotient.push_back(temp / divisor + '0'); remainder = temp % divisor; } else { // 除不动时分两种情况 if (!quotient.empty()) { // 商目前不为空,此时按照竖式方法,需要向商中加入0,再接着下一次循环 quotient.push_back('0'); } remainder = temp; // 商目前为空,按照竖式计算方法,只更新余数,商保持为空 } idx++; // 更新索引位置 } if (quotient.empty()) { // 如果一直除不动,循环结束商还为空,则赋值为0字符串 quotient.assign(\"0\"); } return quotient; // 返回商字符串 } int main() { string s; while (cin >> s) { vector vec; int len = s.size(); while (s != \"0\") { int remainder = (s[len - 1] - '0') % 2; vec.push_back(remainder); s = division(s, 2); len = s.size(); } if (vec.empty()) { cout << \"0\"; } else { for (auto it = vec.rbegin(); it != vec.rend(); it++) { cout << *it; } } cout << endl; } return 0; }","s":"扩展","u":"/en/docs/Tui-Mian/机试/大数除法","h":"#扩展","p":1314},{"i":1324,"t":"未知,可能是由Windows休眠模式导致","s":"一、发生原因","u":"/en/docs/Others/Linux/问题解决/双系统挂载Windows磁盘为只读文件","h":"#一发生原因","p":1322},{"i":1326,"t":"使用ntfsfix修复ntfs磁盘 安装ntfsfix yay -S ntfsfix 查看问题分区 df -h 修复 sudo ntfsfix /dev/your_partition 重启 reboot","s":"二、解决方案","u":"/en/docs/Others/Linux/问题解决/双系统挂载Windows磁盘为只读文件","h":"#二解决方案","p":1322},{"i":1329,"t":"简述大数定理。 大数定理描述了大样本情况下随机变量的均值与其期望值之间的关系。对于独立同分布的随机变量序列,随着样本数量的增加,样本均值会以较高的概率接近其期望值。 简述中心极限定理。 当独立随机变量的数量足够大时,它们的和(或平均值)的分布会逐渐接近一个正态分布。即使原始随机变量不服从正态分布,但当样本容量足够大时,和(或平均值)的分布仍然呈现出正态分布的特征。 什么是全概率公式。 对于事件A而言,假设有一组互斥且穷尽的条件事件B,则事件A的概率等于事件A在每个条件事件下发生的概率与该条件事件发生概率的乘积和。 什么是最大似然估计。 基本思想是在已知观测数据的情况下,通过调整参数的取值,找到使得观测数据出现概率最大的参数值。 大致过程: 构建参数化的概率模型,即构建似然函数,表示在给定参数下观测数据出现的概率 取似然函数的对数,方便计算与优化 最大化似然函数,求解参数的最优值 简述贝叶斯定理。 贝叶斯定理描述了在给定观测数据的条件下,计算事件的后验概率的方法。 P(A∣B)=P(B∣A)∗P(A)P(B)P(A|B) = \\frac{P(B|A) * P(A)}{P(B)}P(A∣B)=P(B)P(B∣A)∗P(A)​ 其中: P(A∣B)P(A|B)P(A∣B)表示在观测到事件 B 发生的条件下,事件 A 发生的概率,称为后验概率 P(B∣A)P(B|A)P(B∣A)表示在事件 A 发生的条件下,事件 B 发生的概率,称为似然; P(A)P(A)P(A)和P(B)P(B)P(B)分别是事件 A 和事件 B 独立发生的先验概率。 优点:它能够将主观先验知识与观测数据相结合,通过不断更新后验概率来进行推断和决策。 P问题、NP问题以及NP完全问题 tip P stands for Polynomial 意为多项式 P问题是可以在多项式时间内解决的问题 NP问题是可以在多项式时间内验证解的正确性的问题 NP完全问题是一类特殊的NP问题,没有已知的高效解决算法,并且可以在多项式时间内归约到任何其他的NP问题","s":"面试常考问题","u":"/en/docs/Tui-Mian/数学/概率论","h":"#面试常考问题","p":1327},{"i":1332,"t":"树的性质: 一棵 N 个结点的树有 N-1 条边 树的总度数+1=树的结点数 树的度=树中度最大结点的度数 二叉树的性质: 叶子结点数等于度为 2 的结点数加 1,即n0 = n2 + 1 树转化为二叉树: 参考资料:知乎 加线。在所有的兄弟结点之间加一条线。 去线。树中的每个结点,只保留它与第一个孩子结点的连线,删除其他孩子结点之间的连线。 调整。每个结点的原来的孩子是结点的左孩子,由原来的兄弟结点转过来的孩子是结点的右孩子。 二叉排序树:每个结点的左子树上的所有结点值都更小,每个结点的右子树上的所有结点的值都更大。 平衡二叉排序树:要么是空树,要么左子树的高度与右子树的高度之差小于等于1。","s":"树","u":"/en/docs/Tui-Mian/计算机基础综合/数据结构","h":"#树","p":1330},{"i":1334,"t":"图的表示: 邻接矩阵 邻接表:每一行表示的是一个顶点所连接的顶点,链表不具有指向性 邻接表的搜索 最小生成树:在连通网的所有生成树中,所有边的代价和最小的生成树,称为最小生成树。 Kruskal算法 Prim算法 最短路径 ​ ​","s":"图","u":"/en/docs/Tui-Mian/计算机基础综合/数据结构","h":"#图","p":1330},{"i":1337,"t":"线性相关与线性无关:向量组中的任一向量都不能被其它向量线性表示,就说向量组线性无关;否则就是线性相关。 矩阵转置:将矩阵的行和列互相交换 矩阵求逆:对于方阵A,若存在方阵B使得AB=BA=单位方阵I,则方阵B为方阵A的逆矩阵,记为A−1A^{-1}A−1 线性代数中的初等行变换。 交换两行 用非零常数乘以某一行 用一行的倍数加到另一行上 如何理解矩阵的秩。 矩阵的秩是指矩阵的列空间(或行空间)的维数,简而言之是矩阵中所有非零行(或列)向量构成的集合所组成的最大线性无关组的向量个数。 tip 宋浩八字:非零子式的最高阶数 任意矩阵的行秩都等于列秩。 矩阵的秩与线性方程组解的关系。 对于n元线性方程组而言: 当系数矩阵的秩等于增广矩阵的秩且秩等于n时,有唯一解 当系数矩阵的秩等于增广矩阵的秩且秩大于n时,有无穷多解 当系数矩阵的秩不等于增广矩阵的秩时,无解 tip 当系数矩阵的秩小于增广矩阵的秩时,说明系数矩阵中的某一列向量(或行向量)可以被其他列向量(或行向量)线性表示,此时该行不能提供额外的线性独立信息 简述向量组线性无关的含义。 含义:若一个向量组是线性无关的,则该向量组中的每个向量都不能表示成其他向量的线性组合。 意义:如果一个向量组线性无关,那么该向量组所张成的空间就是一个最小维度的向量空间,并且该向量空间中的任何向量都可由这些向量线性组合表示。 判定方法:如果一个向量组中的所有向量都不可以由其他向量线性组合得到,则称该向量组为线性无关的。否则,如果存在某个向量可以表示成其他向量的线性组合,则该向量组就不是线性无关的。 解释正定矩阵以及半正定矩阵。 简述特征值的含义。 特征值描述了矩阵在特定方向(特征向量方向)上的缩放因子,特征向量表示矩阵在这个特定方向上的不变性。 简述矩阵分解的物理意义。 矩阵分解是将一个矩阵表示为一些特定形式的矩阵乘积的过程。 矩阵分解的种类以及物理意义: LU分解:将矩阵分解为一个下三角矩阵和一个上三角矩阵的乘积。物理意义包括解线性方程组、计算矩阵的行列式和逆矩阵等。 QR分解:将矩阵分解为一个正交矩阵和一个上三角矩阵的乘积。物理意义包括最小二乘问题、矩阵的特征值计算等。 特征值分解:将矩阵分解为一个特征向量矩阵和一个对角矩阵的乘积。物理意义包括矩阵的幂、指数和对称矩阵的对角化等。 奇异值分解(SVD):将矩阵分解为一个正交矩阵、一个对角矩阵和一个正交矩阵的乘积。物理意义包括降维、矩阵逼近和图像压缩等。","s":"一、线性代数","u":"/en/docs/Tui-Mian/数学/夏令营面试数学部分复习","h":"#一线性代数","p":1335},{"i":1339,"t":"简述大数定理。 大数定理描述了大样本情况下随机变量的均值与其期望值之间的关系。对于独立同分布的随机变量序列,随着样本数量的增加,样本均值会以较高的概率接近其期望值。 简述中心极限定理。 当独立随机变量的数量足够大时,它们的和(或平均值)的分布会逐渐接近一个正态分布。即使原始随机变量不服从正态分布,但当样本容量足够大时,和(或平均值)的分布仍然呈现出正态分布的特征。 什么是全概率公式。 对于事件A而言,假设有一组互斥且穷尽的条件事件B,则事件A的概率等于事件A在每个条件事件下发生的概率与该条件事件发生概率的乘积和。 什么是最大似然估计。 基本思想是在已知观测数据的情况下,通过调整参数的取值,找到使得观测数据出现概率最大的参数值。 大致过程: 构建参数化的概率模型,即构建似然函数,表示在给定参数下观测数据出现的概率 取似然函数的对数,方便计算与优化 最大化似然函数,求解参数的最优值 简述贝叶斯定理。 贝叶斯定理描述了在给定观测数据的条件下,计算事件的后验概率的方法。 P(A∣B)=P(B∣A)∗P(A)P(B)P(A|B) = \\frac{P(B|A) * P(A)}{P(B)}P(A∣B)=P(B)P(B∣A)∗P(A)​ 其中: P(A∣B)P(A|B)P(A∣B)表示在观测到事件 B 发生的条件下,事件 A 发生的概率,称为后验概率 P(B∣A)P(B|A)P(B∣A)表示在事件 A 发生的条件下,事件 B 发生的概率,称为似然; P(A)P(A)P(A)和P(B)P(B)P(B)分别是事件 A 和事件 B 独立发生的先验概率。 优点:它能够将主观先验知识与观测数据相结合,通过不断更新后验概率来进行推断和决策。 P问题、NP问题以及NP完全问题 tip P stands for Polynomial 意为多项式 P问题是可以在多项式时间内解决的问题 NP问题是可以在多项式时间内验证解的正确性的问题 NP完全问题是一类特殊的NP问题,没有已知的高效解决算法,并且可以在多项式时间内归约到任何其他的NP问题","s":"二、概率论","u":"/en/docs/Tui-Mian/数学/夏令营面试数学部分复习","h":"#二概率论","p":1335},{"i":1343,"t":"显著性目标检测Salient Object Detection,相当于语义分割中的二分类任务,只有前景和背景","s":"(一)SOD任务","u":"/en/docs/Tui-Mian/简历/简历面试准备","h":"#一sod任务","p":1340},{"i":1345,"t":"下图为U-2-Net的整体结构 tip residual [rɪˈzɪdjuəl] 在encoder阶段,每个block之后使用maxpooling下采样两倍 在decoder阶段,每个block之后使用双线性插值上采样两倍 下图为Residual U-block的结构 tip 卷积是如何改变输出的通道数的? 卷积核的通道数等于输入的通道数,卷积核的个数等于输出的通道数 图片来源知乎 在特征融合阶段,每一层的encoder-decoder输出,使用3x3卷积以及双线性插值上采样到原始分辨率得到该层的特征图,且卷积核的个数为1,输出的feature map通道数也为1。将每一层的feature map进行concat拼接,得到6通道的融合feature map,最后使用1x1卷积以及sigmoid激活函数得到最终的融合特征图输出","s":"(二)网络结构","u":"/en/docs/Tui-Mian/简历/简历面试准备","h":"#二网络结构","p":1340},{"i":1347,"t":"损失函数是7个损失项的加权求和 共有6层encoder-decoder结构,将每一层对应的feature map与ground truth做BCE Loss得到6个损失项 第7个损失项是最终融合得到的feature map与ground truth的BCE Loss 在论文中,每个损失项的权重都为1 canny边缘检测: 使用高斯滤波进行平滑 计算像素梯度 非极大值抑制 双阈值检测强边缘、弱边缘 边缘连接","s":"(三)损失函数","u":"/en/docs/Tui-Mian/简历/简历面试准备","h":"#三损失函数","p":1340},{"i":1349,"t":"深度可分离卷积的优点是可以在大致保持卷积效果的情况下减少参数量 在实现原理上可分为两个步骤:深度卷积(depth wise)以及逐点(point wise)卷积 深度卷积是一种在每个输入通道上分别进行卷积操作的卷积方法,每个输入通道只与对应的卷积核进行卷积。 逐点卷积通过使用1×11 \\times 11×1卷积对深度卷积的结果再次卷积","s":"(四)深度可分离卷积","u":"/en/docs/Tui-Mian/简历/简历面试准备","h":"#四深度可分离卷积","p":1340},{"i":1352,"t":"PR曲线所围成的面积即使该类的AP值","s":"(一)mAP","u":"/en/docs/Tui-Mian/简历/简历面试准备","h":"#一map","p":1340},{"i":1354,"t":"tip 参考资料:【精读AI论文】YOLO V1目标检测,看我就够了 1.预测阶段​ 下图为YOLOv1的算法框架 下图为YOLOv1的网络结构 输入[448, 448, 3]图像,输出[7, 7, 30]的tensor(包含所有预测框的坐标、置信度和类别结果),通过解析输出的tensor得到预测结果 首先将输入图片划分为S×SS \\times SS×S个grid cell。在YOLOv1中S=7S=7S=7 每个grid cell预测出BBB个bounding box预测框(bbox),每个bbox的中心点都落在该grid cell中。在YOLOv1中B=2B=2B=2 每个bbox包含(x, y, h, w, c)五种信息,其中x, y为bbox左上角坐标,h, w为bbox的宽高,c为该bbox是否存在object的概率 同时每个grid cell预测出一组与数据集有关的条件类别概率。在YOLOv1论文使用的数据集Pascal VOC中,类别种类为20类,因此在预测阶段输出的[7, 7, 30]的tensor含义如下图所示 每个grid cell选出条件类别概率最大的类别,因此每个grid cell只能检测一个物体 tip 这也是YOLOv1小目标和密集目标识别能力差的原因 每个bbox的置信度与其父grid cell的类别概率相乘得到全概率,如下图所示 进行NMS后处理: 对某一特定类别,首先根据全概率置信度排序 将此时最大置信度的bbox与其他所有置信度更小的bbox做IoU判断,若IoU大于设置的阈值,则抹除置信度小的bbox 将剩余的次大的置信度重复步骤2,抹除所有置信度更小的其IoU超过阈值的bbox tip 非极大值抑制只在预测阶段进行 在训练阶段,所有bbox都会在Loss Function中起到更新的作用,因此不进行NMS 2. 训练过程的损失函数​","s":"(二)YOLOv1","u":"/en/docs/Tui-Mian/简历/简历面试准备","h":"#二yolov1","p":1340},{"i":1356,"t":"1. BN层​ 2. 高分辨率训练​ 3. Anchor​ YOLOv2引入了anchor机制代替bbox,将图像划分为13×1313 \\times 1313×13个grid cell,每个grid cell生成5个anchor anchor是通过k-means聚类在数据集上生成的不同尺寸的先验框 对数据集进行anchor宽高比的聚类,聚类数越大,覆盖的IoU越大,但同时模型也更复杂","s":"(二)YOLOv2","u":"/en/docs/Tui-Mian/简历/简历面试准备","h":"#二yolov2","p":1340},{"i":1358,"t":"1. 特征融合​ YOLOv5使用CSPNet实现特征融合,CSP模块由主干和分支构成,主干提取低维特征,分支提取高维特征 主干通过卷积和池化提取特征,形成不同尺寸的特征图 分支将主干输出的特征图作为输入,逐步卷积和上采样提取高级别语义特征 主干特征图通过卷积对通道数降维之后与分支在通道维度上concat tip 在特征提取以及融合阶段可以加入Canny边缘检测得到的特征图进行特征融合 2. 前处理​ 对填充黑色像素进行了改善,以填充更少的黑像素,提高了精度 3. 特征金字塔FCN​","s":"(三)YOLOv5","u":"/en/docs/Tui-Mian/简历/简历面试准备","h":"#三yolov5","p":1340},{"i":1360,"t":"tip 有关CSP特征融合可以参考:https://blog.csdn.net/weixin_55073640/article/details/122614176 CBAM是通道+空间注意力机制(SENet是通道注意力机制)","s":"三、CBAM","u":"/en/docs/Tui-Mian/简历/简历面试准备","h":"#三cbam","p":1340},{"i":1362,"t":"通道注意力:原始特征图[b,c,h,w][b, c, h, w][b,c,h,w]经过通道注意力机制算法得到[b,c,1,1][b, c, 1, 1][b,c,1,1]的tensor,代表不同通道之间的重要程度,将其与原始特征图相乘 空间注意力:经过通道注意力的特征图[b,c,h,w][b, c, h, w][b,c,h,w]经过空间注意力机制算法得到[b,1,h,w][b, 1, h, w][b,1,h,w]的tensor,代表宽高维度的像素之间的重要程度,将其与原始特征图相乘","s":"(一)总体结构","u":"/en/docs/Tui-Mian/简历/简历面试准备","h":"#一总体结构","p":1340},{"i":1364,"t":"原始特征图[b,c,h,w][b, c, h, w][b,c,h,w]分别经过最大池化和平均池化来压缩空间维度、学习通道之间的特征,得到[b,c,1,1][b, c, 1, 1][b,c,1,1]的tensor,再送入共享的多层感知机网络进行降维再升维,最后将二者相加再经过sigmoid函数产生最终的通道注意力特征图","s":"(二)通道注意力","u":"/en/docs/Tui-Mian/简历/简历面试准备","h":"#二通道注意力","p":1340},{"i":1366,"t":"原始特征图[b,c,h,w][b, c, h, w][b,c,h,w]分别经过最大池化和平均池化(通过torch.max和torch.mean函数实现)得到[b,1,h,w][b, 1, h, w][b,1,h,w]的tensor,再将二者concat后通过7×77 \\times 77×7卷积学习特征并降维,最后送入sigmoid函数得到最终的空间注意力特征图","s":"(三)空间注意力","u":"/en/docs/Tui-Mian/简历/简历面试准备","h":"#三空间注意力","p":1340},{"i":1368,"t":"作者分别对通道注意力以及空间注意力使用最大池化还是平均池化做了消融实验,结果反映二者都用最大池化以及平均池化再相加效果最好(且对于7×77 \\times 77×7卷积与3×33 \\times 33×3卷积的消融实验发现,7×77 \\times 77×7卷积效果更好) 作者对先通道注意力还是先空间注意力做了消融实验,结果发现先通道再空间效果更好","s":"(四)其他注意事项","u":"/en/docs/Tui-Mian/简历/简历面试准备","h":"#四其他注意事项","p":1340},{"i":1370,"t":"Focal Loss通过引入修正项和样本关注度超参数,增加困难样本的关注度,来解决类别不均衡问题。 YOLO损失函数分为分类损失以及回归损失,可以在分类损失中引入Focal Loss代替原来的交叉熵损失","s":"四、Focal Loss","u":"/en/docs/Tui-Mian/简历/简历面试准备","h":"#四focal-loss","p":1340},{"i":1372,"t":"Squeeze and Excitation Squeeze挤压操作就是将[b,c,h,w][b, c, h, w][b,c,h,w]的特征图通过池化挤压宽高维度,得到[b,c,1,1][b, c, 1, 1][b,c,1,1]的tensor,该tensor还要经过所示的全连接层-ReLU-全连接层结构 Excitation激励操作就是通过sigmoid函数得到每个通道之间的重要程度系数","s":"五、SENet","u":"/en/docs/Tui-Mian/简历/简历面试准备","h":"#五senet","p":1340},{"i":1374,"t":"自注意力机制通过计算元素之间的相似度来确定它们之间的关联性,并对其进行加权处理以获得上下文信息。 自注意力机制通过对输入的元素进行线性变换来得到查询(Query)向量、键(Key)向量和值(Value)向量。 通过点积和缩放点积计算相似程度 通过自注意力机制,每个元素都可以通过与其他元素的相似度计算和加权求和,获取到与它们相关的上下文信息。相似度高的元素将获得更高的权重,因此更受到关注和影响,从而建立起元素之间的关联性。","s":"六、自注意力机制","u":"/en/docs/Tui-Mian/简历/简历面试准备","h":"#六自注意力机制","p":1340},{"i":1377,"t":"This content has been encrypted.","s":"(一)英文自我介绍","u":"/en/docs/Tui-Mian/简历/简历面试准备","h":"#一英文自我介绍","p":1340},{"i":1379,"t":"1. 英文自我介绍​ This content has been encrypted. 2. 中文自我介绍​ This content has been encrypted.","s":"(二)西电广研院自我介绍","u":"/en/docs/Tui-Mian/简历/简历面试准备","h":"#二西电广研院自我介绍","p":1340},{"i":1381,"t":"1. 英文自我介绍​ This content has been encrypted. 2. 中文自我介绍​ This content has been encrypted.","s":"(三)电子科技大学自我介绍","u":"/en/docs/Tui-Mian/简历/简历面试准备","h":"#三电子科技大学自我介绍","p":1340},{"i":1383,"t":"tip 欢迎来到笔记本的推免复习部分","s":"Welcome","u":"/en/docs/Tui-Mian/intro","h":"","p":1382},{"i":1385,"t":"如果可以帮到你的话就给个免费的Star吧!","s":"支持我!","u":"/en/docs/Tui-Mian/intro","h":"#支持我","p":1382},{"i":1388,"t":"自己在准备夏令营和预推免期间浏览了很多经验贴,按照科协的传统,也支持一下互联网精神,还是给师弟师妹们留下点文字资料吧。 希望可以帮到大家,也感谢那些曾经帮助过我的经验贴和师兄师姐。 文章均为个人经历与想法,不代表任何单位的官方立场,仅供参考。","s":"前言","u":"/en/docs/Tui-Mian/Summary","h":"#前言","p":1386},{"i":1390,"t":"常见名词 含义解释 928/929 每年的公历9月28日(2023年是9月29日),是研招网全国推免系统开放的日子,也是已经拿到offer的推免生上岸的日子。 没offer的也不用着急,因为每个学生只能上一个学校,928/929当天就算手里一堆offer的学生也是只能选择最想去的学校而释放掉其他offer。稳住心态沉住气,一般10月20日推免系统才关闭,这段时间足够联系导师上岸了。 优营 优营就是夏令营的优秀营员。 不同学校优营的效力不同,有些学校的优营直接等于拟录取,928/929当天填报系统即可上岸;但有些学校的优营只能保证在后期的预推免或九推的初筛中不被刷掉,仍需参加后续考核才能获得拟录取资格。 wl/waiting list wl就是递补名单,有些学校的夏令营优营评选中设置递补名单。如果后期有其他优营学生放鸽子不来的话,就会按顺序补录到递补名单中的学生。","s":"扫盲","u":"/en/docs/Tui-Mian/Summary","h":"#扫盲","p":1386},{"i":1392,"t":"本科学校:理工类普通一本(四非) 专业:计算机科学与技术CS rank:前1%(非rank 1 or 2的top选手) 英语:四级594 & 六级586 竞赛:非ACMer,一个CV类比赛国一,其他都是更不上台面的奖项了 奖学金:国家奖学金(夏令营结束之后才拿的,基本没用到)、省人民政府奖学金、CASC奖学金 科研及论文:无正经科研经历,EI水会一篇 从某种程度上来说,本科出身和rank基本上决定了上限。","s":"个人情况","u":"/en/docs/Tui-Mian/Summary","h":"#个人情况","p":1386},{"i":1398,"t":"tip 参考链接: 线性代数极简入门 《线性代数》高清教学视频 “惊叹号”系列 宋浩老师","s":"线性代数","u":"/en/docs/Tui-Mian/数学/线性代数","h":"","p":1397},{"i":1400,"t":"线性相关与线性无关:向量组中的任一向量都不能被其它向量线性表示,就说向量组线性无关;否则就是线性相关。 矩阵转置:将矩阵的行和列互相交换 矩阵求逆:对于方阵A,若存在方阵B使得AB=BA=单位方阵I,则方阵B为方阵A的逆矩阵,记为A−1A^{-1}A−1","s":"一、基础知识","u":"/en/docs/Tui-Mian/数学/线性代数","h":"#一基础知识","p":1397},{"i":1402,"t":"线性代数中的初等行变换。 交换两行 用非零常数乘以某一行 用一行的倍数加到另一行上 如何理解矩阵的秩。 矩阵的秩是指矩阵的列空间(或行空间)的维数,简而言之是矩阵中所有非零行(或列)向量构成的集合所组成的最大线性无关组的向量个数。 tip 宋浩八字:非零子式的最高阶数 任意矩阵的行秩都等于列秩。 矩阵的秩与线性方程组解的关系。 对于n元线性方程组而言: 当系数矩阵的秩等于增广矩阵的秩且秩等于n时,有唯一解 当系数矩阵的秩等于增广矩阵的秩且秩大于n时,有无穷多解 当系数矩阵的秩不等于增广矩阵的秩时,无解 tip 当系数矩阵的秩小于增广矩阵的秩时,说明系数矩阵中的某一列向量(或行向量)可以被其他列向量(或行向量)线性表示,此时该行不能提供额外的线性独立信息 简述向量组线性无关的含义。 含义:若一个向量组是线性无关的,则该向量组中的每个向量都不能表示成其他向量的线性组合。 意义:如果一个向量组线性无关,那么该向量组所张成的空间就是一个最小维度的向量空间,并且该向量空间中的任何向量都可由这些向量线性组合表示。 判定方法:如果一个向量组中的所有向量都不可以由其他向量线性组合得到,则称该向量组为线性无关的。否则,如果存在某个向量可以表示成其他向量的线性组合,则该向量组就不是线性无关的。 解释正定矩阵以及半正定矩阵。 简述特征值的含义。 特征值描述了矩阵在特定方向(特征向量方向)上的缩放因子,特征向量表示矩阵在这个特定方向上的不变性。 简述矩阵分解的物理意义。 矩阵分解是将一个矩阵表示为一些特定形式的矩阵乘积的过程。 矩阵分解的种类以及物理意义: LU分解:将矩阵分解为一个下三角矩阵和一个上三角矩阵的乘积。物理意义包括解线性方程组、计算矩阵的行列式和逆矩阵等。 QR分解:将矩阵分解为一个正交矩阵和一个上三角矩阵的乘积。物理意义包括最小二乘问题、矩阵的特征值计算等。 特征值分解:将矩阵分解为一个特征向量矩阵和一个对角矩阵的乘积。物理意义包括矩阵的幂、指数和对称矩阵的对角化等。 奇异值分解(SVD):将矩阵分解为一个正交矩阵、一个对角矩阵和一个正交矩阵的乘积。物理意义包括降维、矩阵逼近和图像压缩等。","s":"二、面试常考问题","u":"/en/docs/Tui-Mian/数学/线性代数","h":"#二面试常考问题","p":1397}],"index":{"version":"2.3.9","fields":["t"],"fieldVectors":[["t/703",[0,3.021,1,7.715,2,2.601,3,9.31,4,7.715,5,7.715,6,7.715]],["t/705",[2,2.164,7,2.14,8,2.675,9,1.717,10,2.03,11,2.03,12,3.449,13,2.03,14,0.671,15,2.443,16,2.718,17,2.675,18,6.42,19,3.392,20,5.805,21,3.369,22,4.403,23,7.09,24,2.203,25,1.936,26,2.834,27,3.369,28,3.369,29,3.369,30,3.655,31,3.796,32,1.894]],["t/707",[14,0.628,33,3.805,34,6.503,35,7.192,36,8.919,37,7.192,38,7.192,39,7.192]],["t/709",[0,3.391,40,8.659]],["t/711",[7,2.751,8,3.439,9,2.208,10,2.609,11,2.609,12,3.561,13,2.609,14,0.674,19,2.928,25,4.296,30,3.024,31,3.14,32,2.435,41,3.643,42,4.331,43,4.725,44,3.439,45,5.548]],["t/713",[2,1.626,12,3.257,14,0.676,16,2.504,19,3.11,24,3.154,25,4.965,26,4.057,43,4.564,45,4.613,46,4.823,47,6.68]],["t/715",[0,2.817,14,0.6,19,3.969,48,7.192,49,7.192,50,7.192,51,7.192]],["t/717",[2,2.121,7,2.074,8,2.593,9,1.664,10,1.967,11,1.967,12,3.681,13,1.967,14,0.674,19,3.209,32,1.836,52,2.135,53,3.265,54,3.464,55,4.76,56,4.619,57,4.297,58,4.619,59,3.265,60,3.265,61,3.265,62,6.293,63,5.988,64,5.162,65,3.265]],["t/719",[14,0.469,19,2.968,66,7.577,67,7.577,68,7.577,69,7.577,70,7.577,71,7.577,72,7.577]],["t/722",[73,8.839]],["t/724",[14,0.617]],["t/726",[74,3.977,75,5.33,76,3.977,77,4.958,78,5.894,79,5.33,80,5.894,81,5.894,82,7.977,83,5.894,84,7.847,85,5.894,86,5.33,87,3.855,88,3.744,89,5.33,90,5.894,91,5.33,92,5.33,93,5.33,94,5.894,95,4.958]],["t/728",[14,0.674,30,4.932,52,4.619,54,2.781,76,4.767,96,5.052,97,5.052,98,3.822,99,5.052,100,3.822,101,4.012,102,4.012,103,4.012,104,4.569,105,4.25,106,5.052,107,5.052,108,5.052]],["t/730",[14,0.66,109,6.615,110,7.316,111,7.316,112,7.316,113,7.316]],["t/732",[14,0.673,15,5.908,30,4.358,31,4.525,98,4.721,100,4.721,101,4.955,114,6.241,115,5.643,116,6.241]],["t/734",[14,0.667,98,5.177,100,5.177,102,5.435,103,5.435,117,6.844,118,6.844,119,6.844]],["t/736",[2,2.167,14,0.659,43,3.695,120,6.43,121,6.43,122,6.43,123,6.43,124,6.43,125,3.063,126,6.43,127,6.43,128,4.49]],["t/738",[16,4.079,24,5.139,129,7.105,130,5.944,131,7.858,132,7.105,133,7.105]],["t/740",[98,5.836,100,5.836,101,6.126,102,6.126,103,6.126,104,6.976,105,6.49,134,7.715]],["t/742",[14,0.663,16,2.825,24,3.558,43,4.273,64,3.945,87,3.558,125,2.592,130,4.116,135,4.577,136,5.441,137,4.92,138,5.441,139,5.441,140,4.577,141,5.441,142,5.441,143,5.441,144,4.92,145,4.92]],["t/744",[7,4.279,14,0.583,88,4.279,91,6.091,92,6.091,93,6.091,146,5.095,147,6.736,148,6.736,149,3.708,150,6.736,151,6.736,152,6.736,153,6.736]],["t/746",[2,2.528,14,0.679,16,2.861,19,2.937,154,4.376,155,5.511,156,4.636,157,3.996,158,5.511,159,5.511,160,5.511,161,5.511,162,5.511]],["t/750",[14,0.679]],["t/752",[14,0.659]],["t/754",[14,0.547]],["t/757",[16,3.798,163,8.15,164,7.316,165,6.154,166,7.316,167,6.154,168,6.615,169,6.615,170,7.316,171,7.316]],["t/759",[16,3.934,165,6.374,167,6.374,172,7.577,173,6.852,174,8.327,175,7.577,176,7.577]],["t/761",[2,2.015,14,0.55,19,2.341,163,5.405,165,5.028,167,5.028,168,5.405,169,7.162,173,5.405,174,5.405,177,5.977,178,5.405,179,5.977,180,7.92,181,5.977,182,4.033,183,5.977,184,5.977,185,5.977,186,5.977]],["t/763",[14,0.547]],["t/767",[0,3.503,2,2.044,14,0.629,187,8.6,188,6.062,189,6.062,190,6.062,191,6.062,192,6.062,193,6.062,194,6.062,195,6.062,196,6.062]],["t/771",[14,0.61,197,8.486]],["t/774",[0,3.021,14,0.577,198,9.041,199,7.715,200,7.715]],["t/776",[0,3.391,201,8.659]],["t/779",[0,3.391,14,0.536]],["t/781",[202,8.382]],["t/783",[14,0.674,203,9.209]],["t/786",[0,3.258,14,0.639]],["t/788",[14,0.639,204,7.523]],["t/791",[14,0.659]],["t/793",[14,0.643,187,8.411,205,3.87,206,5.735,207,5.735,208,5.186,209,5.735,210,5.735,211,5.186,212,5.735,213,5.735,214,5.186,215,5.735,216,5.735,217,5.735,218,5.735,219,5.735]],["t/796",[14,0.674]],["t/798",[0,2.77,14,0.642,208,7.981,211,7.981,214,6.395,220,7.072,221,7.072]],["t/800",[14,0.662,16,4.079,222,5.944]],["t/802",[14,0.658,16,4.833,222,5.836]],["t/804",[14,0.659]],["t/806",[0,3.391,14,0.536]],["t/808",[223,6.686]],["t/810",[74,5.727,75,7.673,224,8.486]],["t/812",[14,0.682,33,1.919,55,2.744,225,9.055,226,4.662,227,3.628,228,3.628,229,5.542,230,5.542,231,5.542,232,5.542,233,4.192,234,5.087,235,5.542,236,3.628,237,3.628]],["t/815",[14,0.683,238,5.113,239,5.113,240,5.113,241,5.113,242,5.113,243,5.113,244,5.113,245,5.113,246,5.113,247,5.113,248,5.113,249,5.113,250,5.113,251,5.113,252,5.113,253,5.113]],["t/817",[9,2.704,10,3.196,11,3.196,14,0.678,15,3.847,76,3.58,86,4.797,87,3.469,88,3.37,95,4.462,254,4.797,255,4.462,256,4.212,257,3.704,258,4.212,259,5.305,260,5.305]],["t/819",[9,3.328,10,3.934,11,3.934,261,6.529,262,6.529,263,6.529,264,6.529,265,6.529,266,6.529,267,6.529,268,6.529,269,6.529,270,5.184,271,6.529,272,6.529,273,6.529,274,6.529,275,6.529]],["t/821",[2,1.856,12,3.024,14,0.633,25,1.534,43,3.163,45,3.715,109,2.414,276,6.279,277,2.67,278,2.67,279,2.67,280,2.67,281,2.67,282,2.67,283,1.936,284,2.67,285,2.67,286,2.67,287,2.67,288,2.67,289,2.12,290,2.67,291,5.04,292,4.602,293,4.35,294,2.414,295,2.67,296,2.67,297,2.67,298,2.67,299,2.67,300,2.67,301,2.12,302,2.414,303,2.414,304,5.518,305,2.67,306,2.67,307,2.67,308,2.67,309,2.67,310,2.67,311,1.801,312,2.67,313,2.414,314,2.67,315,2.414,316,2.246,317,1.936,318,2.67,319,2.67,320,2.67,321,2.67,322,2.67,323,2.67,324,2.67]],["t/824",[12,3.426,14,0.552,325,4.703,326,6.503,327,5.215,328,6.503,329,7.192,330,5.44,331,7.192,332,6.503,333,7.192]],["t/826",[12,2.645,14,0.667,25,2.526,32,1.52,33,1.43,52,1.768,325,4.601,326,5.021,327,1.96,334,4.2,335,2.704,336,2.704,337,2.704,338,2.704,339,2.704,340,2.704,341,2.704,342,2.704,343,2.704,344,2.704,345,2.704,346,2.704,347,2.704,348,2.704,349,2.966,350,5.379,351,2.445,352,2.274,353,2.147,354,2.445,355,2.274,356,2.274,357,2.445,358,5.918,359,2.274,360,2.274,361,4.2,362,3.697,363,2.274,364,1.404,365,2.274,366,2.274,367,2.274,368,2.445,369,2.445,370,2.445,371,2.274,372,2.274,373,2.274,374,1.96,375,2.445,376,2.045]],["t/828",[14,0.431,304,4.858,349,4.694,361,5.262,377,6.956,378,6.956,379,4.3,380,7.582,381,6.956,382,6.956,383,6.956,384,6.956]],["t/831",[12,4.322,14,0.596,25,3.586,43,3.586,54,3.435,330,4.721,332,7.368,385,7.632,386,6.241,387,4.721,388,6.241,389,6.241,390,6.241]],["t/833",[12,4.353,14,0.636,149,3.487,304,4.423,385,5.328,391,8.227,392,6.334,393,6.334,394,6.334,395,6.334,396,6.334,397,6.334]],["t/835",[12,3.997,14,0.652,19,2.557,311,4.406,385,7.057,398,6.529,399,6.529,400,6.529,401,6.529,402,6.529]],["t/837",[14,0.526,403,8.486,404,8.486]],["t/839",[2,1.46,14,0.648,33,2.291,34,5.721,64,3.14,125,2.063,149,2.384,258,3.439,405,4.331,406,4.331,407,4.331,408,4.331,409,4.331,410,4.331,411,4.331,412,6.327,413,4.331,414,4.331,415,4.331,416,4.331,417,4.331,418,4.331,419,4.331,420,4.331,421,4.331,422,8.221,423,4.331,424,4.331,425,4.331,426,4.331,427,4.331,428,4.331,429,4.331]],["t/841",[7,1.079,14,0.688,156,1.428,255,1.428,364,2.459,430,1.698,431,1.698,432,1.698,433,1.698,434,1.698,435,1.698,436,1.698,437,1.428,438,1.698,439,1.698,440,1.698,441,1.698,442,1.698,443,1.698,444,1.698,445,1.698,446,1.698,447,1.535,448,1.698,449,1.698,450,1.428,451,1.698,452,1.698,453,1.698,454,1.698,455,1.698,456,1.05,457,1.698,458,1.698,459,1.698,460,1.698,461,1.698,462,1.698,463,1.698,464,1.698,465,1.698,466,1.535,467,1.698,468,1.698,469,1.698,470,1.535,471,1.698,472,1.698,473,1.698,474,1.698,475,1.535,476,1.698,477,1.05,478,2.967,479,1.698,480,1.698,481,1.698,482,1.535,483,1.698,484,1.698,485,1.698,486,1.698,487,1.698,488,1.698,489,1.698,490,1.698,491,1.698,492,1.698,493,1.698,494,1.698,495,1.698,496,1.698,497,1.698,498,1.698,499,1.698,500,1.698,501,1.698,502,1.698,503,1.698,504,1.698,505,1.698,506,1.698,507,1.698,508,1.698,509,1.698,510,1.698,511,1.698,512,1.698,513,1.535,514,1.698,515,1.698,516,1.698,517,1.698,518,1.698]],["t/843",[2,0.761,7,2.406,9,1.151,10,1.36,11,1.36,12,2.33,13,1.36,14,0.674,16,1.172,19,1.483,22,1.899,24,1.477,26,1.899,30,2.644,31,1.637,32,1.269,43,2.811,52,3.745,76,4.951,130,1.708,140,1.899,222,1.708,327,1.637,364,2.539,519,2.258,520,2.258,521,2.258,522,2.258,523,2.258,524,6.634,525,2.258,526,2.258,527,2.258,528,2.258,529,2.258,530,2.042,531,4.891,532,4.423,533,2.042,534,2.042,535,4.423,536,2.042,537,2.258,538,2.258,539,2.258,540,3.787,541,2.042,542,2.258,543,2.258,544,2.258,545,2.258,546,2.258,547,1.899,548,2.258,549,2.258,550,2.258,551,2.258]],["t/845",[14,0.664,43,2.85,98,2.378,100,2.378,101,2.497,102,2.497,103,2.497,105,2.645,257,4.289,327,2.28,364,2.575,524,6.305,532,6.305,533,2.843,534,2.843,535,4.485,536,2.843,541,2.843,552,3.144,553,4.959,554,3.144,555,2.497,556,3.144,557,3.144,558,3.144,559,3.144,560,3.144,561,3.144,562,3.144,563,3.144,564,4.959,565,3.144,566,3.144,567,3.144,568,3.144,569,6.141,570,3.144,571,3.144,572,3.144,573,3.144,574,3.144,575,3.144,576,3.144,577,3.144,578,3.144]],["t/847",[14,0.665,15,7.062,16,1.574,33,3.614,79,2.741,330,2.293,450,2.55,466,2.741,475,2.741,579,3.032,580,3.032,581,3.032,582,3.032,583,3.032,584,3.032,585,3.032,586,3.032,587,3.032,588,3.032,589,3.032,590,3.032,591,3.032,592,3.032,593,3.032,594,3.032,595,3.032,596,3.032,597,3.032,598,2.741,599,3.032,600,3.032,601,3.032,602,3.032,603,3.032,604,3.032,605,3.032,606,3.032,607,3.032,608,3.032,609,3.032,610,3.032,611,4.819,612,2.293,613,3.032,614,3.032,615,3.032]],["t/849",[14,0.541,17,5.524,311,4.694,328,6.29,616,6.956,617,6.956,618,5.851,619,6.956,620,6.956,621,6.956,622,6.956,623,6.956,624,6.956]],["t/851",[12,2.844,14,0.677,88,5.378,555,3.179,625,4.004,626,5.022,627,4.004,628,4.004,629,4.004,630,5.971,631,5.971,632,5.399,633,4.004,634,4.004,635,4.004,636,4.004,637,4.004,638,4.004,639,4.004,640,4.004,641,4.004,642,4.004,643,4.004,644,4.004,645,4.004]],["t/853",[14,0.657,16,3.103,24,3.909,129,5.405,130,4.521,132,5.405,133,5.405,256,7.053,374,4.334,646,5.977,647,5.977,648,5.977,649,5.028,650,5.977]],["t/855",[14,0.669,128,4.005,258,6.909,651,5.735,652,5.735,653,4.554,654,5.735,655,5.735,656,5.735,657,4.554,658,5.735,659,5.735,660,5.735,661,5.735]],["t/857",[14,0.688,16,1.967,22,3.188,24,2.478,87,4.517,130,2.867,135,3.188,140,3.188,144,3.427,145,3.427,374,2.748,530,3.427,649,3.188,662,3.79,663,3.79,664,3.79,665,3.79,666,3.79,667,3.79,668,3.79,669,3.79,670,3.79,671,3.79,672,3.79,673,3.79,674,3.79,675,3.79]],["t/859",[16,4.005,87,5.045,89,6.976,137,6.976,649,6.49,676,7.715,677,7.715,678,7.715]],["t/861",[2,2.409,12,0.911,14,0.682,16,0.993,19,1.694,95,2.766,205,2.92,292,1.386,294,1.729,301,1.518,304,1.335,313,3.912,364,1.707,679,1.912,680,5.788,681,3.288,682,1.912,683,5.788,684,9.012,685,1.912,686,1.912,687,1.386,688,1.912,689,1.912,690,1.912,691,1.912,692,4.326,693,1.912,694,1.912,695,1.912,696,1.912,697,6.322,698,1.912,699,1.912,700,1.912,701,1.912,702,1.912,703,1.912,704,1.912,705,1.912,706,1.912,707,1.912,708,1.912,709,1.912,710,1.912,711,1.912,712,1.912,713,1.912,714,1.912,715,2.974]],["t/864",[2,1.542,7,1.804,9,0.576,10,0.68,11,0.68,12,2.735,13,0.68,14,0.668,17,0.896,19,2.249,30,4.225,31,2.06,32,2.292,52,3.277,54,1.564,58,1.021,76,0.762,82,1.021,87,0.738,125,0.981,135,1.733,149,1.564,205,1.39,226,2.389,276,0.762,283,2.541,317,1.494,325,1.347,330,0.854,349,1.39,350,2.948,352,0.95,353,2.783,355,0.95,356,0.95,358,3.429,359,0.95,360,0.95,361,2.651,362,2.389,363,0.95,364,0.586,365,0.95,366,0.95,367,0.95,371,0.95,372,2.948,373,3.429,374,1.494,375,1.021,376,2.651,547,0.95,716,1.021,717,1.129,718,1.021,719,1.021,720,1.863,721,1.021,722,0.95,723,2.84,724,2.06,725,1.733,726,3.505,727,2.06,728,2.06,729,2.06,730,1.129,731,1.129,732,1.129,733,2.06,734,2.06,735,2.06,736,2.06,737,2.06,738,1.129,739,2.06,740,1.129,741,3.169,742,2.06,743,1.129,744,1.129,745,1.129,746,2.06,747,1.129,748,2.06,749,2.956,750,2.06,751,1.438,752,2.06,753,1.129,754,1.129,755,1.129,756,1.129,757,1.129,758,1.129,759,2.84,760,1.129,761,1.129,762,2.06,763,1.129,764,1.129,765,1.129,766,1.129,767,1.129,768,2.06]],["t/866",[2,0.953,7,2.895,9,0.82,10,0.969,11,0.969,12,3.555,13,0.969,14,0.648,19,0.63,32,3.881,52,1.85,54,2.084,76,1.085,128,1.123,254,1.454,258,1.277,276,1.085,283,2.051,325,1.85,349,1.909,350,3.834,351,1.454,352,1.353,353,1.277,354,1.454,355,1.353,356,1.353,357,1.454,358,4.368,359,1.353,360,1.353,361,4.331,362,3.185,363,1.353,364,1.966,365,1.353,366,1.353,367,1.353,368,1.454,369,1.454,370,1.454,371,1.353,372,1.353,373,2.379,374,2.051,376,2.139,547,1.353,653,1.277,657,1.277,716,1.454,718,1.454,719,1.454,720,2.557,721,1.454,725,1.353,769,1.608,770,1.608,771,2.828,772,2.828,773,1.608,774,1.608,775,1.166,776,2.557,777,1.608,778,1.608,779,1.608,780,1.608,781,1.608,782,1.608,783,1.608,784,1.608,785,1.608,786,1.608,787,1.608,788,1.608,789,1.608,790,1.608,791,1.608,792,1.608,793,1.608,794,1.608,795,1.608,796,1.608,797,1.608,798,1.608,799,1.608,800,1.608,801,1.608,802,1.608,803,1.277,804,1.608,805,1.608,806,1.353,807,1.608,808,1.608,809,1.608,810,1.608,811,1.608,812,1.608,813,1.608,814,1.608,815,1.608,816,1.608,817,1.608,818,1.608,819,1.608,820,1.608,821,1.608,822,1.608,823,1.608,824,1.608,825,1.608,826,2.828,827,1.608]],["t/868",[2,1.201,12,3.338,13,0.567,14,0.651,19,1.579,32,2.711,33,0.922,54,1.671,55,2.695,56,1.576,57,0.792,125,0.448,128,2.119,226,1.466,233,0.712,234,2.296,276,3.877,311,3.482,325,1.985,330,2.296,349,2.72,361,0.712,364,0.905,374,0.683,376,0.712,379,1.077,387,0.712,612,0.712,725,2.047,751,0.657,775,1.264,828,0.941,829,0.941,830,0.941,831,1.576,832,2.433,833,2.744,834,0.941,835,0.941,836,2.433,837,0.941,838,3.035,839,1.743,840,0.941,841,0.941,842,0.941,843,0.941,844,0.941,845,0.941,846,0.941,847,1.743,848,4.448,849,1.743,850,0.747,851,3.222,852,1.743,853,0.941,854,0.941,855,1.743,856,0.941,857,0.941,858,0.941,859,1.743,860,0.941,861,0.941,862,6.001,863,2.433,864,2.433,865,4.031,866,0.941,867,0.941,868,0.941,869,0.941,870,0.941,871,0.941,872,0.941,873,0.941,874,0.941,875,0.941,876,0.941,877,0.941,878,0.941,879,0.941,880,1.743,881,2.433,882,2.433,883,1.743,884,0.941,885,2.433,886,1.743,887,0.941,888,1.743,889,0.941,890,0.941,891,0.941,892,0.941,893,0.941,894,0.941,895,2.433,896,0.941,897,1.743,898,1.466,899,0.941,900,0.941,901,0.941,902,1.743,903,0.941,904,0.941,905,0.941,906,0.941,907,0.941,908,0.941,909,0.941,910,0.941,911,0.941,912,0.851,913,0.941,914,0.941,915,0.941,916,0.941,917,0.941,918,0.941,919,0.941,920,0.941,921,1.743,922,0.941,923,0.941,924,0.941,925,0.941,926,0.941,927,0.941,928,0.941,929,0.941,930,0.941,931,0.941,932,0.941,933,0.941,934,0.941,935,0.941,936,0.941,937,0.941,938,0.941,939,1.743,940,0.941,941,0.941,942,1.743,943,1.743,944,0.941,945,0.941,946,0.941,947,0.941,948,0.941,949,0.941,950,0.941,951,0.941,952,0.941,953,0.941,954,0.941]],["t/871",[2,1.412,9,0.729,10,0.861,11,0.861,12,3.925,13,0.861,14,0.669,19,1.64,32,3.833,52,0.935,128,0.998,270,1.135,276,0.965,283,3.036,289,1.135,291,1.135,292,1.848,304,0.998,325,0.935,327,1.036,349,0.965,364,0.742,380,1.135,653,1.135,657,1.135,722,1.202,775,3.036,803,2.738,806,1.202,898,1.202,955,1.202,956,1.202,957,1.292,958,1.292,959,1.292,960,1.202,961,1.292,962,2.304,963,2.304,964,2.304,965,2.304,966,2.548,967,2.548,968,1.429,969,5.192,970,2.304,971,1.292,972,2.304,973,2.304,974,2.143,975,2.143,976,2.304,977,1.292,978,1.292,979,1.292,980,1.292,981,1.292,982,1.292,983,1.292,984,1.292,985,1.292,986,3.786,987,1.292,988,1.292,989,1.292,990,1.292,991,1.292,992,1.292,993,1.292,994,1.292,995,1.292,996,1.292,997,1.292,998,1.292,999,1.292,1000,3.118,1001,3.118,1002,1.292,1003,1.292,1004,1.292,1005,1.292,1006,1.292,1007,1.202,1008,1.202,1009,1.202,1010,1.292,1011,1.292,1012,1.292,1013,1.292,1014,1.292,1015,1.292,1016,2.143,1017,1.292,1018,1.292,1019,1.292,1020,3.448,1021,1.202,1022,1.292]],["t/873",[2,1.686,9,0.937,10,1.107,11,1.107,12,4.245,13,1.107,14,0.606,19,1.959,32,4.288,52,1.202,128,1.283,270,1.459,276,1.24,283,3.626,289,1.459,291,1.459,292,2.304,304,1.283,325,1.202,327,1.332,349,1.24,364,0.954,380,1.459,653,1.459,657,1.459,722,1.546,775,3.626,803,3.333,806,1.546,898,1.546,955,1.546,956,1.546,957,1.662,958,1.662,959,1.662,960,1.546,961,1.662,962,2.873,963,2.873,964,2.873,965,2.873,969,5.579,970,2.873,971,1.662,972,2.873,973,2.873,974,2.673,975,2.673,976,2.873,977,1.662,978,1.662,979,1.662,980,1.662,981,1.662,982,1.662,983,1.662,984,1.662,985,1.662,986,4.522,987,1.662,988,1.662,989,1.662,990,1.662,991,1.662,992,1.662,993,1.662,994,1.662,995,1.662,996,1.662,997,1.662,998,1.662,999,1.662,1000,3.796,1001,3.796,1002,1.662,1003,1.662,1004,1.662,1005,1.662,1006,1.662,1007,1.546,1008,1.546,1009,1.546,1010,1.662,1011,1.662,1012,1.662,1013,1.662,1014,1.662,1015,1.662,1016,2.673,1017,1.662,1018,1.662,1019,1.662,1021,1.546,1022,1.662]],["t/875",[2,1.966,9,1.482,10,1.752,11,1.752,12,4.288,13,1.752,14,0.543,19,1.139,32,3.75,270,2.308,276,4.502,283,3.379,289,2.308,291,2.308,292,3.379,302,2.629,303,2.629,304,2.03,315,2.629,325,1.901,349,1.962,364,1.509,380,2.308,687,3.379,775,2.108,803,3.7,955,2.445,956,2.445,960,2.445,969,3.92,974,2.445,975,2.445,1007,2.445,1008,2.445,1009,2.445,1016,2.445,1021,2.445,1023,2.907,1024,2.907,1025,2.907,1026,2.907,1027,2.907,1028,2.907,1029,2.907,1030,2.907,1031,2.907,1032,2.907,1033,2.907,1034,2.907,1035,2.907,1036,2.445,1037,2.907,1038,2.907,1039,2.907,1040,2.907,1041,2.907,1042,2.907,1043,2.907,1044,2.907,1045,2.907,1046,2.907,1047,2.907,1048,2.907,1049,2.907,1050,2.907,1051,2.907,1052,2.907,1053,2.907,1054,2.907]],["t/877",[19,3.391,1055,8.659]],["t/879",[7,4.544,9,0.744,12,1.236,13,0.879,14,0.659,23,1.319,33,2.577,156,1.227,178,1.319,225,2.346,233,1.103,325,1.697,364,2.207,379,0.902,450,1.227,626,1.227,775,2.541,776,1.319,1056,1.812,1057,1.459,1058,1.459,1059,2.346,1060,2.595,1061,2.595,1062,2.595,1063,2.595,1064,6.24,1065,2.595,1066,2.595,1067,2.595,1068,2.595,1069,2.595,1070,4.25,1071,2.595,1072,2.595,1073,2.595,1074,2.595,1075,2.595,1076,2.595,1077,2.595,1078,2.595,1079,2.595,1080,5.398,1081,2.595,1082,2.061,1083,2.595,1084,2.595,1085,3.505,1086,1.459,1087,1.459,1088,1.459,1089,1.459,1090,1.459,1091,1.459,1092,1.459,1093,1.459,1094,1.459,1095,1.459,1096,1.459,1097,1.459,1098,1.459,1099,1.459,1100,1.459,1101,1.459,1102,1.459,1103,1.459,1104,1.459,1105,1.103,1106,1.459,1107,1.459,1108,1.459,1109,1.459,1110,1.459,1111,1.459,1112,1.459,1113,1.459,1114,1.459,1115,1.459,1116,1.459,1117,1.459,1118,2.948,1119,1.227,1120,1.459,1121,1.459,1122,1.459,1123,1.459,1124,1.158,1125,1.459,1126,1.459,1127,1.459,1128,1.459,1129,1.459,1130,1.459,1131,1.459,1132,1.459,1133,1.459,1134,1.459,1135,1.459,1136,1.459,1137,1.459,1138,2.595,1139,1.459,1140,1.459,1141,1.459,1142,1.459,1143,1.459,1144,1.319,1145,1.459,1146,1.459,1147,1.319,1148,1.459]],["t/881",[9,1.717,14,0.629,33,1.782,154,2.675,618,2.834,751,2.352,1056,2.352,1105,2.548,1118,2.834,1149,3.369,1150,3.96,1151,3.369,1152,3.369,1153,3.369,1154,3.046,1155,3.046,1156,3.046,1157,3.046,1158,3.046,1159,3.046,1160,3.046,1161,3.046,1162,3.046,1163,4.733,1164,3.046,1165,3.046,1166,6.09,1167,3.046,1168,3.046,1169,4.733,1170,3.046,1171,4.733,1172,3.046,1173,3.046,1174,4.733,1175,3.046,1176,3.046,1177,3.046,1178,3.046,1179,3.046,1180,5.805,1181,3.046,1182,3.046,1183,3.046,1184,3.046,1185,5.805,1186,3.046,1187,2.675,1188,3.046,1189,2.352,1190,2.834,1191,3.046]],["t/885",[14,0.634,1056,6.716,1150,4.721,1192,6.241,1193,5.643,1194,6.241,1195,6.241,1196,6.241,1197,6.241,1198,6.241,1199,5.643,1200,6.241,1201,5.643]],["t/887",[1056,5.81,1202,8.32,1203,8.32,1204,8.32]],["t/889",[14,0.6,1056,5.022,1150,5.44,1199,6.503,1201,6.503,1205,7.192,1206,6.503,1207,7.192,1208,7.192,1209,7.192]],["t/891",[14,0.617]],["t/893",[14,0.62,16,3.612,1056,6.1,1105,5.262,1166,7.348,1210,8.735,1211,6.956,1212,6.29]],["t/895",[9,2.027,14,0.646,19,0.67,20,1.548,33,2.52,154,1.359,256,1.359,387,1.295,456,1.058,555,1.359,618,1.44,833,1.548,1056,4.147,1059,2.701,1105,2.26,1118,1.44,1150,1.295,1154,1.548,1155,1.548,1156,1.548,1157,1.548,1158,1.548,1159,2.701,1160,1.548,1161,1.548,1162,1.548,1163,2.701,1164,1.548,1165,1.548,1166,4.006,1167,1.548,1168,1.548,1169,2.701,1170,1.548,1171,2.701,1172,1.548,1173,1.548,1174,2.701,1175,1.548,1176,1.548,1177,1.548,1178,1.548,1179,1.548,1180,3.595,1181,1.548,1182,1.548,1183,1.548,1184,1.548,1185,3.595,1186,1.548,1187,1.359,1188,1.548,1189,1.195,1190,1.44,1191,1.548,1193,1.548,1206,1.548,1213,1.712,1214,1.712,1215,1.712,1216,2.988,1217,1.712,1218,1.548,1219,1.712,1220,1.712,1221,1.712,1222,2.988,1223,4.763,1224,1.712,1225,1.712,1226,2.988,1227,4.307,1228,4.763,1229,2.988,1230,1.712,1231,1.712,1232,1.548,1233,1.712,1234,1.712,1235,2.988,1236,2.988,1237,1.712,1238,1.712,1239,2.988,1240,1.712,1241,1.712,1242,1.712,1243,1.712,1244,1.712,1245,1.712,1246,1.712,1247,1.712,1248,1.712,1249,1.712,1250,1.712,1251,1.548,1252,1.712,1253,1.712,1254,1.712,1255,1.712,1256,1.712,1257,1.712,1258,1.712,1259,1.548,1260,1.712,1261,2.988,1262,2.988,1263,2.988,1264,1.712,1265,1.712,1266,1.712,1267,1.712]],["t/897",[0,2.444,1268,6.241,1269,5.643,1270,6.241,1271,8.148,1272,6.241,1273,6.241,1274,6.241,1275,5.643,1276,6.241,1277,6.241,1278,6.241,1279,6.241,1280,6.241,1281,6.241,1282,6.241,1283,6.241,1284,6.241,1285,6.241,1286,6.241]],["t/900",[14,0.645,1287,8.919,1288,7.192,1289,7.192,1290,7.192,1291,7.192,1292,7.192]],["t/902",[14,0.647,43,4.51,45,5.295,1293,5.894,1294,5.894,1295,5.894,1296,5.894,1297,5.894,1298,5.894,1299,5.894,1300,5.894,1301,5.894,1302,5.894,1303,5.894,1304,5.894,1305,5.894]],["t/904",[1306,7.239,1307,8.006,1308,8.006,1309,8.006,1310,8.006,1311,8.006]],["t/908",[14,0.662,74,2.864,1312,4.244,1313,3.838,1314,4.244,1315,4.244,1316,7.388,1317,4.244,1318,4.244,1319,4.244,1320,4.244,1321,4.244,1322,6.234,1323,4.244,1324,4.244,1325,4.244,1326,4.244,1327,4.244,1328,4.244,1329,4.244,1330,4.244,1331,4.244,1332,4.244,1333,4.244,1334,4.244,1335,4.244,1336,4.244,1337,4.244,1338,4.244,1339,4.244,1340,4.244,1341,4.244,1342,4.244]],["t/911",[14,0.679]],["t/913",[14,0.61,1343,8.486]],["t/915",[14,0.61,1344,8.486]],["t/918",[0,2.724,14,0.69]],["t/920",[14,0.679,222,4.458,1345,7.847,1346,5.894,1347,7.847,1348,5.894,1349,5.894,1350,5.894,1351,5.894,1352,5.894]],["t/922",[2,3.541,14,0.681,74,3.292,125,4.529]],["t/924",[14,0.617]],["t/926",[0,2.003,14,0.577,1353,7.123,1354,4.301,1355,5.113,1356,5.113,1357,5.113,1358,5.113,1359,5.113,1360,4.624,1361,5.113,1362,5.113,1363,5.113,1364,5.113,1365,5.113,1366,5.113,1367,5.113,1368,5.113,1369,5.113,1370,5.113,1371,5.113,1372,5.113,1373,5.113,1374,5.113,1375,5.113,1376,4.624,1377,4.624,1378,5.113,1379,4.301,1380,5.113,1381,5.113]],["t/928",[14,0.589,1360,5.482,1376,5.482,1377,5.482,1379,5.099,1382,6.062,1383,6.062,1384,6.062,1385,6.062,1386,6.062,1387,6.062,1388,6.062,1389,6.062,1390,6.062,1391,6.062,1392,6.062,1393,6.062,1394,6.062,1395,6.062,1396,6.062]],["t/930",[14,0.644,1379,7.128,1397,6.631,1398,6.631,1399,6.631,1400,6.631,1401,6.631,1402,6.631,1403,6.631,1404,6.631,1405,6.631]],["t/933",[54,4.866]],["t/937",[14,0.692]],["t/939",[14,0.639,1406,8.32]],["t/942",[14,0.59,1407,8.006,1408,8.006,1409,8.006,1410,8.006]],["t/944",[14,0.674]],["t/946",[14,0.685,1411,6.15,1412,6.15,1413,6.15,1414,5.561,1415,6.15,1416,5.173,1417,5.561]],["t/948",[14,0.698,54,2.957,1414,6.664]],["t/950",[0,3.391,14,0.536]],["t/952",[223,6.686]],["t/955",[1418,8.839]],["t/957",[477,4.769,1419,7.715,1420,6.49,1421,7.715,1422,7.715,1423,7.715,1424,4.337,1425,7.715]],["t/959",[1426,8.839]],["t/961",[74,5.113,1427,7.577,1428,7.577,1429,5.113,1430,7.577,1431,7.577,1432,6.852,1433,6.852,1434,5.732]],["t/963",[1435,6.419,1436,8.486,1437,5.55]],["t/965",[14,0.433,234,5.282,456,2.385,741,3.489,1424,3.265,1435,4.393,1437,3.798,1438,3.858,1439,6.536,1440,3.858,1441,2.081,1442,3.858,1443,3.858,1444,2.523,1445,4.885,1446,3.064,1447,3.858,1448,3.858,1449,3.858,1450,3.858,1451,3.858,1452,3.858,1453,3.858,1454,3.858,1455,3.858,1456,3.858,1457,6.315,1458,3.689,1459,7.535,1460,4.611,1461,2.523,1462,6.315,1463,3.858,1464,3.246,1465,3.858,1466,3.858,1467,3.858,1468,3.858,1469,2.523,1470,3.858,1471,3.064,1472,3.489]],["t/967",[1036,4.697,1469,3.652,1471,4.434,1473,5.584,1474,5.284,1475,5.584,1476,4.697,1477,5.584,1478,5.584,1479,5.584,1480,5.584,1481,5.584,1482,5.584,1483,5.584,1484,5.584,1485,5.584,1486,5.487,1487,5.584,1488,6.224,1489,5.584,1490,3.547,1491,5.584,1492,5.584,1493,5.584,1494,5.584]],["t/969",[14,0.48,456,5.543,1424,2.594,1444,5.537,1445,6.517,1446,3.663,1495,4.613,1496,4.613,1497,4.613,1498,4.613,1499,3.663,1500,4.613,1501,4.613,1502,4.613,1503,4.613,1504,4.613,1505,4.613,1506,4.613,1507,4.613,1508,4.613,1509,4.613,1510,4.171,1511,4.613,1512,4.613,1513,4.613,1514,4.613,1515,4.613,1516,4.613,1517,4.613,1518,4.613,1519,4.613,1520,4.613,1521,4.613,1522,4.613]],["t/971",[1437,5.663,1523,8.659]],["t/973",[0,2.968,1420,6.374,1429,5.113,1458,4.813,1524,6.852,1525,6.374,1526,7.577,1527,7.577,1528,7.577]],["t/975",[1458,5.5,1529,8.659]],["t/977",[1530,8.839]],["t/979",[1124,5.524,1437,5.712,1499,5.524,1531,6.956,1532,6.956,1533,6.956,1534,6.956,1535,6.956,1536,6.956,1537,6.956,1538,6.956,1539,6.956,1540,6.956]],["t/981",[14,0.635,477,4.602,1541,5.911,1542,6.731,1543,6.731,1544,6.731,1545,6.731]],["t/983",[1546,7.993]],["t/986",[477,5.143,1429,5.614,1547,7.523,1548,7.523]],["t/988",[1549,5.903,1550,5.903,1551,5.903,1552,5.903,1553,5.903,1554,5.903,1555,5.903,1556,5.903,1557,5.903,1558,5.903,1559,5.903,1560,5.903,1561,5.903,1562,5.903,1563,4.406,1564,4.269,1565,5.903,1566,5.903]],["t/990",[1567,6.154,1568,6.615,1569,6.615,1570,5.534,1571,4.785,1572,6.615,1573,6.615,1574,6.615,1575,6.615,1576,6.615,1577,6.615]],["t/992",[1578,7.239,1579,7.239,1580,7.239,1581,7.239,1582,7.239,1583,7.239]],["t/994",[0,1.714,14,0.466,47,3.68,63,3.68,64,3.173,1570,6.249,1571,5.743,1584,3.956,1585,3.956,1586,3.956,1587,3.31,1588,3.956,1589,3.956,1590,3.173,1591,3.956,1592,3.956,1593,3.68,1594,3.956,1595,3.31,1596,6.799,1597,4.917,1598,3.956,1599,3.956,1600,5.764,1601,3.956,1602,3.956,1603,3.956,1604,3.956,1605,3.956,1606,3.956,1607,3.956,1608,3.956,1609,3.055,1610,3.956,1611,3.956,1612,3.956]],["t/998",[14,0.678,477,5.341,1446,7.735,1458,6.188,1613,4.361,1614,3.83,1615,3.648]],["t/1000",[1616,7.105,1617,7.105,1618,6.239,1619,7.105,1620,7.105,1621,7.105,1622,7.105]],["t/1002",[2,1.834,14,0.59,19,2.912,157,3.945,316,4.577,1474,3.799,1486,3.945,1595,4.116,1597,3.558,1618,4.32,1623,4.92,1624,4.92,1625,4.92,1626,4.92,1627,4.92,1628,4.92,1629,4.92,1630,4.92,1631,4.92,1632,4.92,1633,4.92,1634,4.92,1635,4.92,1636,4.92,1637,4.92,1638,4.92]],["t/1004",[0,3.323,1424,4.771,1639,8.486]],["t/1006",[14,0.46,470,4.92,1124,4.32,1420,4.577,1424,3.059,1432,4.92,1433,4.92,1434,4.116,1437,3.558,1458,3.456,1499,4.32,1524,4.92,1525,4.577,1640,7.435,1641,5.441,1642,5.441,1643,4.92,1644,5.441,1645,5.441,1646,5.441,1647,5.441,1648,5.441,1649,5.441,1650,5.441,1651,5.441,1652,5.441,1653,5.441,1654,5.441,1655,5.441]],["t/1008",[14,0.417,1499,5.348,1643,6.091,1656,6.736,1657,6.736,1658,6.736,1659,6.736,1660,6.736,1661,6.736,1662,6.736,1663,6.736,1664,6.736,1665,6.736,1666,6.736,1667,6.736,1668,6.736]],["t/1010",[14,0.424,1429,4.619,1669,6.844,1670,6.844,1671,6.844,1672,6.844,1673,6.844,1674,6.844,1675,6.844,1676,6.844,1677,6.844,1678,6.844,1679,6.844,1680,6.844,1681,6.844]],["t/1012",[14,0.605,456,4.522,1424,4.113,1682,5.725,1683,6.154,1684,5.809,1685,5.305,1686,6.154]],["t/1015",[364,4.005,1682,5.914,1687,7.392,1688,6.976,1689,6.976,1690,6.976]],["t/1017",[14,0.543,33,4.113,1687,4.616,1691,7.031,1692,5.257,1693,7.868,1694,7.369,1695,5.257,1696,5.257,1697,5.257,1698,6.54,1699,5.257,1700,5.257,1701,5.257,1702,5.257,1703,5.257]],["t/1019",[14,0.639,1704,6.374,1705,6.374,1706,6.852,1707,6.852,1708,6.852]],["t/1023",[14,0.674,1441,3.012,1709,6.365,1710,5.049,1711,6.425,1712,6.843,1713,6.843,1714,5.049,1715,5.049,1716,5.049]],["t/1025",[2,2.513,12,1.444,14,0.646,311,3.252,1441,2.599,1488,3.494,1711,4.188,1717,3.826,1718,4.357,1719,4.357,1720,2.741,1721,7.809,1722,4.357,1723,2.198,1724,4.357,1725,4.357,1726,6.178,1727,5.423,1728,4.357,1729,4.357,1730,4.357,1731,4.357,1732,4.357,1733,2.741,1734,2.407,1735,2.741,1736,2.741,1737,2.741,1738,2.741,1739,2.741,1740,2.55,1741,2.741,1742,2.741,1743,3.826,1744,4.357,1745,2.741,1746,2.741]],["t/1027",[14,0.658,1441,4.313,1711,5.583,1717,6.348,1723,6.486,1734,4.814,1747,3.653,1748,5.482,1749,5.482,1750,5.099]],["t/1029",[2,0.813,14,0.672,19,0.945,88,2.542,182,2.7,1441,4.078,1444,1.577,1563,1.628,1564,1.577,1590,1.749,1743,5.667,1747,2.411,1751,2.181,1752,2.181,1753,2.181,1754,2.181,1755,2.181,1756,2.029,1757,2.901,1758,2.181,1759,2.181,1760,7.048,1761,5.101,1762,4.466,1763,1.915,1764,2.181,1765,2.181,1766,1.628,1767,2.181,1768,2.181,1769,2.181,1770,2.181,1771,3.618,1772,2.181,1773,2.181,1774,2.181,1775,2.181,1776,1.749,1777,2.029,1778,2.181,1779,2.181]],["t/1031",[14,0.669,19,1.162,76,2.003,125,1.414,257,2.073,1424,1.669,1429,2.003,1441,1.601,1469,1.941,1488,2.152,1490,1.885,1563,3.197,1564,3.099,1590,2.152,1685,3.436,1761,4.52,1762,3.197,1763,2.357,1776,2.152,1780,2.684,1781,2.684,1782,2.497,1783,5.347,1784,2.684,1785,2.684,1786,2.684,1787,5.347,1788,2.684,1789,2.684,1790,2.684,1791,2.684,1792,2.684,1793,4.284,1794,2.245,1795,2.684,1796,2.684,1797,2.684,1798,2.003,1799,2.497,1800,2.684,1801,2.684,1802,4.284,1803,4.284,1804,2.684,1805,2.684,1806,2.357,1807,2.684]],["t/1033",[14,0.677,25,2.547,41,3.728,88,1.254,1469,1.291,1474,3.095,1476,6.81,1587,1.493,1682,3.334,1747,2.037,1757,3.806,1762,2.281,1766,1.332,1794,1.493,1808,1.493,1809,1.785,1810,1.785,1811,4.007,1812,1.785,1813,3.056,1814,1.785,1815,4.746,1816,1.785,1817,1.785,1818,1.785,1819,1.785,1820,3.056,1821,4.007,1822,3.056,1823,3.056,1824,4.746,1825,3.056,1826,1.785,1827,1.785,1828,1.785,1829,1.785,1830,3.056,1831,1.785,1832,1.785,1833,1.785,1834,5.818,1835,1.661,1836,1.785,1837,1.785,1838,1.785,1839,1.785,1840,1.661,1841,1.785,1842,1.785,1843,3.056,1844,1.785,1845,1.661,1846,1.661,1847,1.785,1848,1.785,1849,1.785]],["t/1036",[14,0.678,1082,5.397,1444,4.445,1458,4.318,1464,3.105,1761,3.906,1762,2.491,1850,5.078,1851,6.869,1852,3.337,1853,3.337,1854,5.078,1855,3.337,1856,3.337,1857,3.337,1858,5.078,1859,5.078,1860,4.724,1861,3.337,1862,3.337,1863,3.337,1864,3.337,1865,3.337]],["t/1039",[2,2.086,14,0.68,125,2.002,1435,3.179,1437,2.748,1441,5.508,1563,2.836,1564,2.748,1682,2.669,1723,3.047,1747,4.883,1776,3.047,1806,4.914]],["t/1041",[14,0.629,1441,4.319,1747,4.824,1761,4.601]],["t/1043",[14,0.487,74,5.303,1571,6.156,1597,6.156,1866,7.858]],["t/1046",[2,2.66,14,0.683,74,3.218,149,4.732,751,6.002,1867,4.769,1868,4.769,1869,4.769,1870,4.769,1871,4.769,1872,4.769,1873,4.769]],["t/1048",[0,3.021,14,0.577,1874,9.31,1875,7.715,1876,7.715,1877,7.715]],["t/1051",[32,2.91,437,4.353,1189,5.016,1269,4.68,1460,4.11,1474,3.614,1486,5.209,1571,5.828,1597,6.336,1878,7.183,1879,6.042,1880,5.176,1881,5.176,1882,5.176,1883,5.176,1884,5.176,1885,7.183,1886,4.353,1887,5.176,1888,5.176,1889,5.176,1890,5.176]],["t/1053",[1891,7.993]],["t/1055",[2,3.049,9,0.809,14,0.612,19,3.482,87,0.556,125,1.785,149,3.776,157,2.027,202,1.334,205,1.071,276,1.504,364,0.824,437,0.716,626,4.331,632,5.727,687,0.617,850,2.618,1082,0.676,1119,0.716,1147,0.769,1150,0.644,1189,2.303,1190,0.716,1429,1.071,1457,1.435,1461,1.828,1474,3.966,1490,0.54,1571,2.156,1587,1.2,1597,2.156,1766,0.574,1879,4.975,1891,0.769,1892,0.851,1893,1.586,1894,1.586,1895,4.082,1896,0.851,1897,0.851,1898,0.851,1899,0.851,1900,0.851,1901,1.586,1902,0.769,1903,1.586,1904,0.769,1905,0.851,1906,0.769,1907,0.851,1908,0.851,1909,0.851,1910,0.716,1911,0.851,1912,0.851,1913,5.425,1914,2.795,1915,2.795,1916,2.795,1917,1.435,1918,2.795,1919,4.515,1920,1.586,1921,1.586,1922,1.586,1923,0.851,1924,0.851,1925,0.851,1926,1.435,1927,1.586,1928,2.795,1929,1.586,1930,1.586,1931,3.746,1932,1.586,1933,1.435,1934,1.586,1935,2.016,1936,1.586,1937,0.851,1938,1.586,1939,1.586,1940,1.586,1941,1.586,1942,4.15,1943,3.388,1944,2.795,1945,1.586,1946,1.586,1947,0.851,1948,0.851,1949,1.586,1950,0.851,1951,0.851,1952,0.851,1953,1.586,1954,0.851,1955,0.851,1956,0.851,1957,0.851,1958,0.851,1959,1.586,1960,0.851,1961,0.851,1962,0.851,1963,0.851,1964,1.586,1965,0.851,1966,0.851,1967,0.851,1968,0.851,1969,0.851,1970,0.769,1971,0.644,1972,0.851,1973,0.716,1974,0.644,1975,0.851,1976,0.851]],["t/1057",[14,0.583,1486,4.884,1570,5.095,1571,4.405,1597,4.405,1943,6.091,1977,6.736,1978,6.736,1979,6.736,1980,6.736,1981,6.736,1982,6.736,1983,6.736,1984,6.736]],["t/1059",[1571,5.55,1597,5.55,1985,8.486]],["t/1061",[14,0.515,1986,8.32,1987,6.998,1988,8.32]],["t/1064",[182,5.843,1989,8.659]],["t/1066",[14,0.547]],["t/1068",[14,0.691,1808,6.41]],["t/1070",[14,0.469,182,5.113,456,4.684,1444,4.955,1808,5.732,1987,6.374,1990,7.577,1991,7.577,1992,6.374]],["t/1072",[14,0.596,456,6.409,1313,6.395,1766,4.773,1993,8.826,1994,7.072]],["t/1074",[14,0.634,1766,5.506,1992,6.864]],["t/1076",[14,0.631,1995,6.15,1996,6.15,1997,6.15,1998,6.15,1999,6.15,2000,6.15,2001,8.071,2002,6.15,2003,6.15,2004,6.15,2005,6.15,2006,6.15,2007,6.15,2008,6.15,2009,6.15]],["t/1078",[0,3.391,14,0.536]],["t/1080",[14,0.617]],["t/1082",[2010,7.019]],["t/1084",[14,0.624,1445,5.408,1458,4.084,1614,5.105,1615,4.864,2010,7.725,2011,6.43,2012,6.43,2013,6.43,2014,6.43,2015,5.814,2016,5.814]],["t/1086",[14,0.404,851,5.903,1471,5.184,1486,4.734,1510,5.903,1593,5.492,1595,4.938,1879,5.492,2017,6.529,2018,6.529,2019,6.529,2020,6.529,2021,6.529,2022,6.529,2023,6.529,2024,6.529,2025,6.529,2026,5.903]],["t/1088",[14,0.542,77,3.246,831,3.489,1036,3.246,1471,4.611,1472,3.489,2010,4.611,2015,3.489,2016,3.489,2027,3.858,2028,6.983,2029,5.808,2030,3.858,2031,3.858,2032,3.858,2033,3.858,2034,5.808,2035,3.858,2036,5.808,2037,3.858,2038,3.858,2039,3.858,2040,5.808,2041,3.858,2042,3.858,2043,3.858,2044,3.858,2045,3.858,2046,3.858,2047,3.858,2048,3.858,2049,3.489,2050,3.858,2051,3.858,2052,3.858,2053,3.858,2054,5.808,2055,3.858,2056,3.858,2057,3.858,2058,3.858,2059,3.858,2060,3.858,2061,3.858,2062,3.858,2063,3.858,2064,3.858,2065,3.858,2066,3.858]],["t/1090",[14,0.666,477,3.975,1567,5.408,1740,5.408,2010,7.725,2067,6.43,2068,6.43,2069,6.43]],["t/1092",[1798,5.506,2070,8.16,2071,8.16,2072,8.16,2073,8.16]],["t/1094",[0,3.391,14,0.536]],["t/1096",[2074,6.998,2075,8.32,2076,8.32,2077,8.32]],["t/1098",[54,3.386,182,6.079,513,5.561,1761,3.535,2078,8.071,2079,8.071,2080,6.15,2081,5.561,2082,6.15,2083,5.561,2084,5.561,2085,6.15,2086,8.071,2087,6.15,2088,6.15,2089,6.15,2090,5.561]],["t/1100",[14,0.597,54,3.674,1761,5.175,2081,4.217,2083,6.036,2084,6.036,2091,4.664,2092,4.664,2093,6.675,2094,4.664,2095,7.795,2096,4.664,2097,4.664,2098,4.217,2099,6.675,2100,4.664,2101,4.664,2102,4.664,2103,6.675,2104,4.664,2105,4.664,2106,4.664,2107,4.664,2108,4.664,2109,4.664,2110,4.664]],["t/1102",[0,2.817,88,4.569,749,6.467,2111,7.192,2112,7.192,2113,7.192,2114,7.192,2115,7.192,2116,4.23,2117,7.192,2118,7.192]],["t/1104",[14,0.547,149,4.858,205,4.773,2116,5.658,2119,7.072,2120,7.072,2121,7.072,2122,7.072,2123,7.072]],["t/1106",[14,0.453,149,4.962,2116,5.745,2124,7.316,2125,7.316,2126,7.316,2127,7.316,2128,7.316]],["t/1108",[0,2.638,2,2.271,14,0.53,88,4.279,149,3.708,205,4.545,301,5.348,2116,5.821,2129,6.091,2130,6.736,2131,6.736,2132,6.736]],["t/1111",[14,0.505,2133,8.16,2134,8.16,2135,8.16,2136,8.16]],["t/1113",[2137,7.673,2138,7.673,2139,8.486]],["t/1115",[14,0.624,612,5.944,2138,7.105,2140,7.858,2141,7.105]],["t/1119",[2,2.401,14,0.577,19,2.003,25,2.939,43,4.094,55,3.868,182,3.451,387,5.388,687,3.708,1461,4.658,1971,3.868,2142,5.113,2143,5.113,2144,5.113,2145,5.113,2146,5.113,2147,5.113,2148,4.624,2149,7.123,2150,5.113,2151,5.113,2152,4.301,2153,4.06,2154,4.06,2155,4.624,2156,5.113,2157,5.113]],["t/1121",[2,1.538,14,0.619,19,3.642,25,2.623,43,5.345,387,4.971,687,3.309,1439,3.839,1461,4.298,1971,3.452,2148,4.127,2153,3.624,2154,3.624,2155,4.127,2158,4.564,2159,6.572,2160,6.572,2161,6.572,2162,4.564,2163,4.564,2164,4.564,2165,4.564,2166,4.564]],["t/1124",[14,0.587,45,4.619,2167,6.844,2168,6.844,2169,6.844,2170,8.646,2171,6.844,2172,6.844,2173,6.844,2174,6.844,2175,6.844,2176,6.844]],["t/1126",[2,1.531,14,0.646,44,2.761,125,1.656,128,3.746,149,2.953,182,5.369,317,2.521,1189,2.428,1354,1.717,1461,1.335,1609,1.425,1933,1.845,2026,4.107,2153,1.62,2177,2.041,2178,2.041,2179,2.041,2180,2.041,2181,3.477,2182,2.041,2183,2.041,2184,2.041,2185,2.041,2186,2.041,2187,2.041,2188,2.041,2189,2.041,2190,5.364,2191,2.041,2192,2.041,2193,2.041,2194,2.041,2195,2.041,2196,2.041,2197,4.107,2198,2.041,2199,2.041,2200,2.041,2201,2.041,2202,3.477,2203,2.041,2204,2.041,2205,2.041,2206,2.041,2207,2.041,2208,2.041,2209,2.041,2210,3.477,2211,2.041,2212,2.041,2213,2.041,2214,2.041,2215,2.041,2216,2.041,2217,2.041,2218,2.041,2219,2.041,2220,2.041,2221,2.041,2222,3.477,2223,2.041,2224,2.041,2225,2.041,2226,2.041,2227,2.041,2228,2.041,2229,2.041,2230,2.041,2231,2.041,2232,2.041,2233,2.041,2234,1.845,2235,3.477,2236,2.041,2237,3.477,2238,2.041,2239,5.364,2240,3.144,2241,2.041,2242,3.477,2243,2.041,2244,2.041,2245,2.041,2246,2.041]],["t/1129",[9,3.693,233,5.48,334,5.48,482,4.738,1424,4.073,1490,3.328,1609,5.059,1886,4.407,2116,4.26,2247,8.101,2248,5.752,2249,5.239,2250,5.239,2251,3.963,2252,5.239,2253,4.738,2254,5.239,2255,5.239,2256,5.239,2257,5.239,2258,4.738,2259,6.551,2260,5.239]],["t/1131",[9,4.048,87,5.193,233,3.648,255,5.75,334,5.171,1124,3.83,1187,3.83,1218,4.361,1251,4.361,1460,3.83,1490,3.063,1609,3.368,1886,6.68,1910,4.057,2116,2.836,2247,7.812,2248,3.83,2253,4.361,2259,6.182,2261,4.823,2262,4.823,2263,4.823,2264,4.057,2265,4.823,2266,4.823,2267,4.823,2268,4.823,2269,4.823,2270,4.823]],["t/1133",[9,3.434,87,6.152,334,6.474,1424,3.787,1490,5.437,1910,5.666,2248,5.348,2271,6.091,2272,6.736,2273,6.736,2274,6.736,2275,6.736]],["t/1136",[14,0.547]],["t/1138",[14,0.648,19,3.091,54,4.344,64,3.458,1119,4.011,1761,4.536,2090,4.312,2264,4.011,2276,4.769,2277,4.769,2278,4.769,2279,4.769,2280,4.769,2281,4.769,2282,4.769,2283,4.769,2284,4.769,2285,7.892,2286,4.769,2287,4.769,2288,4.769,2289,4.312,2290,4.769]],["t/1140",[2,2.861,2291,7.673,2292,8.486]],["t/1143",[2116,5.598,2293,8.006,2294,8.006,2295,8.006,2296,7.239]],["t/1145",[14,0.565,379,5.341,1761,2.772,2116,6.216,2296,4.361,2297,4.823,2298,4.823,2299,4.823,2300,6.836,2301,4.823,2302,4.823,2303,4.823,2304,4.823,2305,4.823,2306,4.823,2307,4.823,2308,4.361,2309,4.361,2310,4.823,2311,4.823,2312,4.823]],["t/1148",[749,6.033,2313,8.32,2314,8.32,2315,7.523]],["t/1150",[2,1.664,14,0.614,19,0.496,25,1.315,32,2.152,43,3.517,45,4.129,115,5.221,157,2.267,204,2.827,222,0.959,257,0.885,334,1.73,687,0.919,715,1.146,749,2.267,751,0.885,1461,3.52,1490,1.453,1756,2.63,1757,0.919,1798,1.544,1835,1.066,1971,2.365,1973,1.066,1974,0.959,2152,1.066,2153,1.006,2154,1.006,2234,2.068,2315,1.146,2316,2.287,2317,1.267,2318,1.267,2319,1.267,2320,1.267,2321,1.267,2322,1.267,2323,1.267,2324,2.287,2325,1.267,2326,2.287,2327,1.267,2328,2.287,2329,2.287,2330,1.267,2331,2.287,2332,1.267,2333,1.267,2334,1.267,2335,1.267,2336,1.267,2337,1.267,2338,2.287,2339,1.267,2340,3.126,2341,2.287,2342,2.287,2343,1.267,2344,1.146,2345,1.267,2346,1.267,2347,1.267,2348,1.267,2349,1.267,2350,1.267,2351,1.267,2352,2.287,2353,2.287,2354,1.267,2355,1.267,2356,1.267,2357,1.267,2358,1.267,2359,2.287,2360,1.267,2361,1.267,2362,3.126,2363,2.287,2364,1.267,2365,2.287,2366,1.146,2367,2.287,2368,2.287,2369,2.287,2370,1.267,2371,1.267,2372,3.126,2373,3.829,2374,4.425,2375,1.267,2376,2.287,2377,1.267,2378,1.267,2379,1.267,2380,1.267,2381,1.267,2382,1.267,2383,1.267,2384,1.267,2385,1.267,2386,1.267,2387,1.267,2388,1.267,2389,1.267,2390,1.267,2391,3.462,2392,1.267,2393,3.829,2394,1.267,2395,1.267,2396,1.267,2397,1.267,2398,1.146,2399,1.267,2400,3.829,2401,1.267,2402,1.267,2403,1.267,2404,1.267,2405,1.267,2406,1.267,2407,1.267,2408,1.267,2409,1.267,2410,1.267,2411,1.267,2412,2.287,2413,2.287,2414,2.287,2415,2.287,2416,2.287,2417,1.267,2418,1.267,2419,1.267,2420,1.267,2421,1.267,2422,1.267,2423,1.267,2424,1.267,2425,1.267,2426,1.267,2427,1.267,2428,1.146,2429,1.267,2430,1.267,2431,1.267]],["t/1152",[19,3.391,2432,8.659]],["t/1155",[14,0.659]],["t/1157",[14,0.613,125,3.209,1459,6.091,2433,6.736,2434,6.736,2435,6.736,2436,6.736,2437,6.736,2438,6.736,2439,6.736,2440,6.736,2441,6.736,2442,6.736]],["t/1159",[14,0.605,2308,6.615,2309,6.615,2443,7.316,2444,7.316,2445,7.316,2446,7.316,2447,7.316,2448,7.316]],["t/1162",[14,0.617]],["t/1164",[14,0.668]],["t/1166",[14,0.617]],["t/1169",[2449,8.486,2450,8.486,2451,8.486]],["t/1171",[14,0.526,1306,7.673,2152,7.138]],["t/1173",[2452,8.839]],["t/1175",[14,0.558,19,2.409,850,4.884,1902,5.561,2366,5.561,2391,5.561,2453,6.15,2454,6.15,2455,6.15,2456,6.15,2457,6.15,2458,7.298,2459,6.15,2460,6.15,2461,6.15,2462,6.15,2463,6.15,2464,6.15,2465,6.15]],["t/1177",[14,0.57,1424,4.26,1435,5.732,1437,4.955,1444,4.955,1541,6.017,2466,6.017,2467,7.577]],["t/1181",[2,1.468,14,0.641,19,1.298,33,3.079,44,3.459,54,3.95,57,1.623,125,3.239,146,1.46,149,4.973,205,3.488,256,1.532,257,1.347,749,4.22,751,4.064,1189,2.314,1750,2.788,1917,1.745,1935,1.745,2240,1.745,2428,2.997,2468,1.929,2469,1.623,2470,1.929,2471,3.314,2472,1.929,2473,1.929,2474,1.929,2475,1.929,2476,1.929,2477,1.929,2478,1.929,2479,1.929,2480,3.314,2481,1.929,2482,1.929,2483,1.929,2484,1.929,2485,1.929,2486,1.929,2487,1.929,2488,1.929,2489,1.929,2490,1.929,2491,1.929,2492,1.929,2493,1.929,2494,1.929,2495,1.929,2496,1.929,2497,1.929,2498,3.314,2499,1.929,2500,3.314,2501,1.929,2502,1.929,2503,1.929,2504,1.929,2505,1.929,2506,1.929,2507,4.356,2508,2.997,2509,1.929,2510,3.314,2511,3.314,2512,1.929,2513,1.929,2514,1.929,2515,1.929,2516,1.929,2517,1.929,2518,1.929,2519,1.929,2520,1.929,2521,1.929]],["t/1183",[14,0.398,456,3.975,1424,3.615,1684,5.105,1685,4.662,1845,5.408,1860,5.408,2049,5.814,2291,5.814,2522,7.512,2523,6.43,2524,6.43,2525,6.43,2526,6.43,2527,6.43,2528,5.814,2529,6.43,2530,6.43]],["t/1185",[77,5.099,456,3.748,1187,4.814,1227,5.482,1434,6.048,1441,3.27,1460,4.814,1469,5.228,1609,4.233,1685,4.396,2531,4.814,2532,6.062,2533,6.062,2534,6.062,2535,5.482,2536,6.062,2537,6.062,2538,6.062,2539,6.062,2540,6.062,2541,6.062]],["t/1188",[0,1.162,14,0.184,456,3.655,612,2.245,1275,2.684,1424,1.669,1434,2.245,1469,1.941,1490,1.885,1609,2.073,1614,3.762,1615,4.473,1683,2.497,1684,4.696,1766,2.003,1782,2.497,1808,3.584,1840,2.497,1846,2.497,1970,2.684,1987,2.497,1992,2.497,2074,2.497,2141,2.684,2522,5.347,2528,2.684,2542,2.968,2543,2.968,2544,4.738,2545,2.968,2546,2.968,2547,5.913,2548,2.968,2549,2.968,2550,2.968,2551,2.968,2552,4.738,2553,2.968,2554,2.968,2555,2.968,2556,2.968,2557,2.968,2558,2.968,2559,2.968,2560,2.968,2561,2.968,2562,2.968,2563,2.968,2564,2.968,2565,2.968,2566,2.968,2567,2.497,2568,2.968,2569,2.968,2570,2.968,2571,2.968,2572,2.968,2573,2.968,2574,2.968,2575,2.968,2576,2.968,2577,4.738,2578,4.738,2579,4.738,2580,4.738,2581,2.968,2582,2.968,2583,2.968,2584,4.738,2585,2.968,2586,2.968,2587,2.968,2588,2.968,2589,2.968,2590,2.968,2591,2.968,2592,2.968]],["t/1190",[14,0.469,2251,6.966,2593,7.577,2594,7.577,2595,7.577,2596,7.577,2597,7.577,2598,7.577]],["t/1193",[1444,6.05,1488,5.536,1682,3.594,1747,4.6,1798,3.818,2251,4.28,2535,5.117,2599,5.658,2600,5.658,2601,5.658,2602,5.658,2603,5.658,2604,5.658,2605,5.658,2606,5.658,2607,5.658,2608,5.658,2609,5.658,2610,5.658,2611,5.658,2612,5.658,2613,5.658,2614,5.658]],["t/1196",[14,0.564,1424,4.185,1437,5.958,1541,5.911,2466,5.911,2615,7.444,2616,7.444,2617,7.444]],["t/1199",[14,0.642,54,2.957,2618,5.372,2619,5.372,2620,5.372,2621,5.372,2622,5.372,2623,5.372,2624,5.372,2625,5.372,2626,5.372,2627,7.37,2628,5.372,2629,5.372,2630,5.372,2631,5.372,2632,5.372,2633,5.372,2634,5.372,2635,5.372,2636,5.372,2637,5.372,2638,5.372]],["t/1201",[14,0.599,2197,4.264,2639,4.716,2640,6.084,2641,4.264,2642,4.264,2643,6.084,2644,4.716,2645,4.716,2646,4.264,2647,4.264,2648,4.716,2649,4.716,2650,4.716,2651,9.043,2652,4.716,2653,4.716,2654,6.728,2655,6.728,2656,6.728,2657,4.716,2658,4.716,2659,4.716,2660,4.716,2661,4.716,2662,4.716,2663,4.716,2664,4.716]],["t/1203",[2640,6.091,2641,6.091,2642,6.091,2643,7.739,2646,6.091,2647,7.739,2665,6.736,2666,6.736,2667,6.736,2668,6.736,2669,6.736,2670,6.736,2671,6.736,2672,6.736]],["t/1205",[14,0.663,1760,5.911,2673,7.444,2674,7.444,2675,7.444]],["t/1207",[14,0.478,198,6.976,477,4.769,2466,6.126,2676,7.715,2677,7.715,2678,7.715,2679,7.715]],["t/1209",[9,3.795,477,5.631,1794,5.631,2251,5.631,2271,6.731,2289,6.731,2680,6.731,2681,7.444,2682,7.444]],["t/1211",[14,0.488,202,3.337,612,5.959,912,5.361,1105,3,1490,2.52,1693,3.337,1704,3.337,1705,3.337,1904,3.587,1906,5.361,1926,3.587,2248,3.15,2258,6.42,2680,3.587,2683,3.967,2684,5.929,2685,3.967,2686,5.929,2687,3.967,2688,5.929,2689,5.929,2690,3.967,2691,3.967,2692,3.967,2693,7.1,2694,3.967,2695,3.967,2696,3.967,2697,3.967,2698,3.967,2699,3.967,2700,3.967,2701,3.967,2702,3.967,2703,5.929,2704,5.929,2705,3.967,2706,3.967,2707,3.967,2708,3.967,2709,3.967]],["t/1213",[598,7.523,2710,8.32,2711,8.32,2712,8.32]],["t/1215",[14,0.635,477,4.602,1541,5.911,1542,6.731,1543,6.731,1544,6.731,1545,6.731]],["t/1217",[1546,7.993]],["t/1220",[477,5.143,1429,5.614,1547,7.523,1548,7.523]],["t/1222",[1549,5.903,1550,5.903,1551,5.903,1552,5.903,1553,5.903,1554,5.903,1555,5.903,1556,5.903,1557,5.903,1558,5.903,1559,5.903,1560,5.903,1561,5.903,1562,5.903,1563,4.406,1564,4.269,1565,5.903,1566,5.903]],["t/1224",[1567,6.154,1568,6.615,1569,6.615,1570,5.534,1571,4.785,1572,6.615,1573,6.615,1574,6.615,1575,6.615,1576,6.615,1577,6.615]],["t/1226",[1578,7.239,1579,7.239,1580,7.239,1581,7.239,1582,7.239,1583,7.239]],["t/1228",[0,1.714,14,0.466,47,3.68,63,3.68,64,3.173,1570,6.249,1571,5.743,1584,3.956,1585,3.956,1586,3.956,1587,3.31,1588,3.956,1589,3.956,1590,3.173,1591,3.956,1592,3.956,1593,3.68,1594,3.956,1595,3.31,1596,6.799,1597,4.917,1598,3.956,1599,3.956,1600,5.764,1601,3.956,1602,3.956,1603,3.956,1604,3.956,1605,3.956,1606,3.956,1607,3.956,1608,3.956,1609,3.055,1610,3.956,1611,3.956,1612,3.956]],["t/1232",[14,0.678,477,5.341,1446,7.735,1458,6.188,1613,4.361,1614,3.83,1615,3.648]],["t/1234",[1616,7.105,1617,7.105,1618,6.239,1619,7.105,1620,7.105,1621,7.105,1622,7.105]],["t/1236",[2,1.834,14,0.59,19,2.912,157,3.945,316,4.577,1474,3.799,1486,3.945,1595,4.116,1597,3.558,1618,4.32,1623,4.92,1624,4.92,1625,4.92,1626,4.92,1627,4.92,1628,4.92,1629,4.92,1630,4.92,1631,4.92,1632,4.92,1633,4.92,1634,4.92,1635,4.92,1636,4.92,1637,4.92,1638,4.92]],["t/1238",[14,0.605,456,4.522,1424,4.113,1682,5.725,1683,6.154,1684,5.809,1685,5.305,1686,6.154]],["t/1241",[364,4.005,1682,5.914,1687,7.392,1688,6.976,1689,6.976,1690,6.976]],["t/1243",[14,0.543,33,4.113,1687,4.616,1691,7.031,1692,5.257,1693,7.868,1694,7.369,1695,5.257,1696,5.257,1697,5.257,1698,6.54,1699,5.257,1700,5.257,1701,5.257,1702,5.257,1703,5.257]],["t/1245",[14,0.639,1704,6.374,1705,6.374,1706,6.852,1707,6.852,1708,6.852]],["t/1249",[14,0.674,1441,3.012,1709,6.365,1710,5.049,1711,6.425,1712,6.843,1713,6.843,1714,5.049,1715,5.049,1716,5.049]],["t/1251",[2,2.513,12,1.444,14,0.646,311,3.252,1441,2.599,1488,3.494,1711,4.188,1717,3.826,1718,4.357,1719,4.357,1720,2.741,1721,7.809,1722,4.357,1723,2.198,1724,4.357,1725,4.357,1726,6.178,1727,5.423,1728,4.357,1729,4.357,1730,4.357,1731,4.357,1732,4.357,1733,2.741,1734,2.407,1735,2.741,1736,2.741,1737,2.741,1738,2.741,1739,2.741,1740,2.55,1741,2.741,1742,2.741,1743,3.826,1744,4.357,1745,2.741,1746,2.741]],["t/1253",[14,0.658,1441,4.313,1711,5.583,1717,6.348,1723,6.486,1734,4.814,1747,3.653,1748,5.482,1749,5.482,1750,5.099]],["t/1255",[2,0.813,14,0.672,19,0.945,88,2.542,182,2.7,1441,4.078,1444,1.577,1563,1.628,1564,1.577,1590,1.749,1743,5.667,1747,2.411,1751,2.181,1752,2.181,1753,2.181,1754,2.181,1755,2.181,1756,2.029,1757,2.901,1758,2.181,1759,2.181,1760,7.048,1761,5.101,1762,4.466,1763,1.915,1764,2.181,1765,2.181,1766,1.628,1767,2.181,1768,2.181,1769,2.181,1770,2.181,1771,3.618,1772,2.181,1773,2.181,1774,2.181,1775,2.181,1776,1.749,1777,2.029,1778,2.181,1779,2.181]],["t/1257",[14,0.669,19,1.162,76,2.003,125,1.414,257,2.073,1424,1.669,1429,2.003,1441,1.601,1469,1.941,1488,2.152,1490,1.885,1563,3.197,1564,3.099,1590,2.152,1685,3.436,1761,4.52,1762,3.197,1763,2.357,1776,2.152,1780,2.684,1781,2.684,1782,2.497,1783,5.347,1784,2.684,1785,2.684,1786,2.684,1787,5.347,1788,2.684,1789,2.684,1790,2.684,1791,2.684,1792,2.684,1793,4.284,1794,2.245,1795,2.684,1796,2.684,1797,2.684,1798,2.003,1799,2.497,1800,2.684,1801,2.684,1802,4.284,1803,4.284,1804,2.684,1805,2.684,1806,2.357,1807,2.684]],["t/1259",[14,0.677,25,2.547,41,3.728,88,1.254,1469,1.291,1474,3.095,1476,6.81,1587,1.493,1682,3.334,1747,2.037,1757,3.806,1762,2.281,1766,1.332,1794,1.493,1808,1.493,1809,1.785,1810,1.785,1811,4.007,1812,1.785,1813,3.056,1814,1.785,1815,4.746,1816,1.785,1817,1.785,1818,1.785,1819,1.785,1820,3.056,1821,4.007,1822,3.056,1823,3.056,1824,4.746,1825,3.056,1826,1.785,1827,1.785,1828,1.785,1829,1.785,1830,3.056,1831,1.785,1832,1.785,1833,1.785,1834,5.818,1835,1.661,1836,1.785,1837,1.785,1838,1.785,1839,1.785,1840,1.661,1841,1.785,1842,1.785,1843,3.056,1844,1.785,1845,1.661,1846,1.661,1847,1.785,1848,1.785,1849,1.785]],["t/1262",[14,0.678,1082,5.397,1444,4.445,1458,4.318,1464,3.105,1761,3.906,1762,2.491,1850,5.078,1851,6.869,1852,3.337,1853,3.337,1854,5.078,1855,3.337,1856,3.337,1857,3.337,1858,5.078,1859,5.078,1860,4.724,1861,3.337,1862,3.337,1863,3.337,1864,3.337,1865,3.337]],["t/1265",[14,0.596,1441,4.402,1747,4.916,1761,4.689]],["t/1267",[2,1.505,14,0.677,125,2.127,1435,2.085,1437,1.803,1441,5.062,1469,3.679,1563,3.012,1564,2.919,1682,2.836,1709,7.015,1711,1.925,1723,3.237,1747,4.583,1776,3.237,1806,2.189,2469,4.732,2531,3.545,2713,4.464,2714,6.468,2715,4.464,2716,2.756,2717,2.756]],["t/1269",[14,0.665,1434,6.2,1441,5.449,1615,3.868,1682,4.525,1747,3.081,1777,4.301,1799,4.301,2074,5.992,2251,3.868,2531,4.06,2718,5.113]],["t/1271",[0,3.323,2719,8.486,2720,8.486]],["t/1273",[1694,7.138,1698,7.138,2721,6.738]],["t/1276",[14,0.496,146,6.056,555,6.357,2721,7.558,2722,8.006]],["t/1278",[14,0.648,19,2.187,1461,3.652,1798,3.768,2398,5.049,2721,6.816,2723,5.049,2724,5.584,2725,5.584,2726,7.762,2727,5.584,2728,5.584,2729,5.049,2730,6.843,2731,5.584,2732,5.584]],["t/1280",[14,0.566,19,3.222,1461,4.142,2721,7.256,2723,5.727,2726,7.439,2729,5.727,2730,5.727,2733,6.334,2734,6.334,2735,6.334,2736,6.334,2737,6.334,2738,6.334]],["t/1282",[14,0.629,1232,7.239,2466,6.357,2739,8.006]],["t/1284",[223,6.686]],["t/1286",[0,3.391,14,0.536]],["t/1288",[223,6.686]],["t/1290",[14,0.586,149,2.409,353,3.474,376,3.31,850,3.474,2264,3.68,2458,3.956,2740,4.375,2741,6.374,2742,3.474,2743,4.375,2744,4.375,2745,4.375,2746,4.375,2747,4.375,2748,4.375,2749,4.375,2750,4.375,2751,8.261,2752,8.261,2753,8.261,2754,8.261,2755,6.374,2756,4.375,2757,6.374,2758,4.375,2759,4.375,2760,4.375,2761,4.375]],["t/1292",[14,0.536,74,5.843]],["t/1294",[2,2.467,14,0.652,19,2.235,25,1.291,43,3.28,44,2.994,125,3.03,146,1.699,149,4.667,154,5.051,157,2.734,205,3.288,301,1.783,317,4.138,749,2.734,751,3.403,1189,1.568,1461,2.466,1895,2.031,1971,1.699,1973,1.889,1974,1.699,2344,2.031,2762,2.246,2763,2.246,2764,2.246,2765,2.246,2766,2.246,2767,3.77,2768,2.246,2769,3.77,2770,3.77,2771,2.246,2772,2.246,2773,2.246,2774,3.77,2775,4.873,2776,3.77,2777,2.246,2778,2.246,2779,3.77,2780,2.246,2781,2.246,2782,2.246,2783,2.246,2784,2.246,2785,2.246,2786,2.246,2787,2.246,2788,2.246,2789,2.246,2790,2.246,2791,2.246,2792,2.246,2793,3.77,2794,2.246]],["t/1296",[146,7.538]],["t/1298",[2,2.354,14,0.656,33,3.694,43,4.013,45,4.713,54,3.844,125,3.327,149,3.844,1760,5.545,2508,7.026,2795,3.858,2796,5.808,2797,5.808,2798,5.808,2799,3.858,2800,5.808,2801,5.808,2802,3.858,2803,5.808,2804,3.858]],["t/1300",[14,0.417,33,3.563,379,4.164,1757,4.884,1761,3.871,2805,6.736,2806,6.736,2807,6.736,2808,6.736,2809,6.736,2810,6.736,2811,6.736,2812,6.736,2813,6.736,2814,6.736,2815,6.736]],["t/1303",[2098,6.731,2531,5.911,2816,7.444,2817,7.444,2818,7.444,2819,7.444,2820,7.444,2821,7.444,2822,7.444,2823,6.731]],["t/1305",[14,0.495,234,3.69,447,4.411,1439,4.103,1686,4.103,2823,4.411,2824,4.878,2825,4.878,2826,7.991,2827,6.892,2828,4.878,2829,4.878,2830,4.878,2831,4.878,2832,4.878,2833,4.878,2834,4.878,2835,4.878,2836,4.878,2837,4.878,2838,6.892,2839,4.878,2840,6.892,2841,6.892,2842,7.991,2843,4.878,2844,4.878,2845,4.878,2846,4.878,2847,4.878]],["t/1307",[14,0.547]],["t/1309",[14,0.639,55,5.724,1144,6.843,2154,6.009,2848,5.584,2849,5.049,2850,8.584,2851,5.584,2852,5.584,2853,5.584,2854,5.049,2855,8.584,2856,5.584,2857,5.584,2858,5.584]],["t/1311",[14,0.496,1259,7.239,2859,8.006,2860,8.006,2861,8.006,2862,8.006]],["t/1313",[14,0.603,2849,7.523,2854,7.523]],["t/1315",[0,3.323,292,7.142]],["t/1317",[14,0.547]],["t/1319",[12,3.255,14,0.687,15,3.494,16,1.574,19,3.259,24,1.983,25,1.742,32,1.704,2863,2.741,2864,6.178,2865,5.423,2866,5.423,2867,6.178,2868,7.178,2869,2.741,2870,2.741,2871,4.357,2872,2.741,2873,2.741]],["t/1321",[0,0.795,2,0.685,7,1.29,8,1.613,9,1.035,10,1.224,11,1.224,12,3.323,13,1.224,14,0.683,15,3.282,16,3.115,17,1.613,19,3.204,24,2.96,25,1.167,30,3.161,31,1.473,32,1.947,52,1.328,125,1.65,364,1.054,1525,1.708,2863,1.837,2864,4.836,2865,4.093,2866,4.093,2867,5.426,2868,5.907,2869,1.837,2870,1.837,2871,3.131,2872,1.837,2873,1.837,2874,2.031,2875,3.463,2876,2.031,2877,2.031,2878,2.031,2879,2.031,2880,2.031,2881,2.031]],["t/1324",[2882,8.839]],["t/1326",[14,0.591,16,3.612,379,4.3,1212,6.29,2883,6.956,2884,9.549,2885,6.956,2886,6.956,2887,6.956,2888,6.956]],["t/1329",[0,1.868,14,0.685,54,4.344,311,4.576,1974,3.607,2889,4.312,2890,4.312,2891,4.312,2892,4.312,2893,4.312,2894,4.312,2895,4.312,2896,4.312,2897,4.312,2898,4.312,2899,4.312]],["t/1332",[2,3.171,14,0.684,125,2.808,364,4.074,2900,5.894,2901,5.894]],["t/1334",[14,0.678,2902,7.444,2903,7.444]],["t/1337",[0,2.837,14,0.691,364,4.311,2567,4.407,2904,4.738,2905,4.738,2906,4.738,2907,4.738]],["t/1339",[0,1.868,14,0.685,54,4.344,311,4.576,1974,3.607,2889,4.312,2890,4.312,2891,4.312,2892,4.312,2893,4.312,2894,4.312,2895,4.312,2896,4.312,2897,4.312,2898,4.312,2899,4.312]],["t/1343",[2908,8.486,2909,8.486,2910,8.486]],["t/1345",[0,3.222,14,0.566,125,3.017,234,6.223,1458,4.023,1462,5.727,2911,8.227,2912,6.334,2913,6.334,2914,6.334,2915,6.334,2916,6.334,2917,6.334,2918,6.334,2919,6.334]],["t/1347",[2,2.235,14,0.63,317,4.808,1416,5.577,1798,4.474,2920,6.631,2921,6.631,2922,8.474,2923,6.631,2924,6.631,2925,6.631,2926,6.631]],["t/1349",[14,0.577,1564,5.045,2116,4.537,2129,6.976,2927,7.715,2928,7.715,2929,7.715]],["t/1352",[2930,8.839]],["t/1354",[0,2.98,2,1.506,14,0.471,45,3.015,125,2.128,317,4.693,379,2.762,1417,4.04,1761,2.567,2116,2.627,2931,4.468,2932,4.468,2933,7.609,2934,6.471,2935,4.468,2936,4.468,2937,4.468,2938,4.468,2939,4.468,2940,7.609,2941,4.468,2942,4.468,2943,4.468,2944,4.468,2945,4.468,2946,4.468,2947,4.468,2948,4.468,2949,4.468,2950,4.468,2951,4.468,2952,6.471,2953,4.468,2954,4.468,2955,4.468,2956,4.468,2957,4.468]],["t/1356",[2,2.345,14,0.431,125,3.314,149,3.829,1354,5.851,2116,4.091,2958,6.956,2959,6.956,2960,6.956,2961,6.956,2962,6.956,2963,6.956,2964,6.956,2965,6.956]],["t/1358",[0,2.77,2,2.384,14,0.642,125,3.369,149,3.893,1416,5.949,2469,5.949,2966,7.072,2967,7.072]],["t/1360",[0,3.323,2968,8.486,2969,8.486]],["t/1362",[2,2.945,33,5.052,379,5.903,2970,7.348,2971,6.956,2972,6.956,2973,6.956,2974,6.956]],["t/1364",[2,2.649,33,4.98,379,4.857,2970,6.61,2975,7.858,2976,7.858]],["t/1366",[2,2.554,33,4.009,379,5.692,2116,4.456,2970,6.374,2977,7.577,2978,7.577,2979,7.577]],["t/1368",[14,0.478,2116,5.88,2980,7.715,2981,7.715,2982,7.715,2983,7.715]],["t/1370",[1798,6.571,2984,8.32,2985,8.32]],["t/1372",[2,2.424,14,0.445,33,4.718,379,4.446,2137,6.503,2986,7.192,2987,7.192,2988,7.192,2989,7.192,2990,7.192,2991,7.192]],["t/1374",[14,0.639,2992,8.32]],["t/1377",[2742,6.876,2993,7.284]],["t/1379",[2,2.601,14,0.577,125,3.675,2742,7.392,2993,7.831]],["t/1381",[2,2.601,14,0.577,125,3.675,2742,7.392,2993,7.831]],["t/1383",[0,3.391,14,0.536]],["t/1385",[223,6.686]],["t/1388",[14,0.645]],["t/1390",[14,0.631,257,5.109,2994,9.013,2995,7.316,2996,7.316,2997,7.316,2998,7.316]],["t/1392",[2,2.424,14,0.552,2999,7.192,3000,7.192,3001,7.192,3002,7.192,3003,7.192,3004,7.192,3005,7.192,3006,7.192,3007,7.192]],["t/1398",[0,3.135,14,0.665]],["t/1400",[14,0.603,2904,7.523,2905,7.523]],["t/1402",[0,2.937,14,0.691,364,4.426,2567,4.636,2906,4.984,2907,4.984]]],"invertedIndex":[["",{"_index":14,"t":{"705":{"position":[[57,1],[73,2],[88,1],[98,1],[132,1],[142,1],[158,1],[165,1],[182,1],[188,1],[194,1],[199,1],[213,1],[223,1],[228,2],[234,1],[241,1],[251,1],[269,1],[271,1],[328,2],[334,1],[341,2],[349,2],[368,1],[375,1],[382,2],[388,2],[397,1],[399,1]]},"707":{"position":[[19,19],[71,8],[83,1],[98,1]]},"711":{"position":[[57,1],[70,1],[80,2],[94,1],[102,1],[106,1],[113,1],[127,1],[132,1],[136,1],[140,1],[145,1],[149,1],[157,2],[164,1],[172,2],[178,1],[185,2],[190,2],[199,1],[201,1],[213,1]]},"713":{"position":[[0,20],[94,1],[99,1],[103,1],[107,1],[112,1],[116,1],[122,2],[125,5],[133,2],[140,1],[165,1],[181,1],[188,1],[205,1],[211,1],[217,1],[222,1],[230,1]]},"715":{"position":[[4,93],[98,5],[264,5]]},"717":{"position":[[57,1],[131,1],[139,2],[144,2],[149,2],[155,1],[164,1],[179,2],[182,6],[198,1],[204,1],[206,2],[209,6],[216,1],[218,2],[221,5],[238,1],[245,1],[267,1],[279,2],[297,1],[352,1],[364,2],[369,2],[376,2],[382,1],[391,1],[404,1],[415,2],[428,1],[457,1],[459,1],[471,1]]},"719":{"position":[[0,47]]},"724":{"position":[[0,39],[40,24]]},"728":{"position":[[21,2],[58,2],[91,2],[125,2],[128,2],[142,2],[145,4],[160,2],[163,5],[184,2],[187,8],[210,2],[213,7],[221,2],[269,1],[279,2],[299,2]]},"730":{"position":[[19,1],[44,2],[47,7],[67,2],[70,7],[78,2]]},"732":{"position":[[9,1],[31,2],[57,2],[60,6],[78,2],[81,2],[86,2],[101,2],[119,2],[128,2],[131,21]]},"734":{"position":[[46,2],[49,6],[67,2],[70,6],[87,2],[90,6],[106,2],[109,6]]},"736":{"position":[[0,2],[3,6],[77,2],[80,10],[94,4],[102,4],[122,2],[125,5]]},"742":{"position":[[12,2],[15,7],[23,2],[60,2],[63,7],[84,5],[133,2],[171,2],[207,2],[214,6],[238,2],[271,2]]},"744":{"position":[[15,2],[62,1],[241,12]]},"746":{"position":[[28,2],[31,10],[42,2],[45,7],[53,2],[56,2],[59,2],[62,2],[65,2],[84,2],[104,2],[122,2],[139,2],[160,2],[180,2],[191,6]]},"750":{"position":[[0,23],[24,25],[50,23],[74,6],[81,4],[86,6],[93,17]]},"752":{"position":[[0,20],[21,36],[58,13],[72,22]]},"754":{"position":[[0,14]]},"761":{"position":[[72,31],[277,5],[283,5]]},"763":{"position":[[0,57]]},"767":{"position":[[234,3],[370,11],[382,7],[403,5],[413,28],[442,39]]},"771":{"position":[[33,44],[78,47]]},"774":{"position":[[55,19],[75,13]]},"779":{"position":[[4,19]]},"783":{"position":[[0,10],[19,31],[51,5],[65,20],[86,7],[94,7],[102,15]]},"786":{"position":[[0,37],[42,23],[66,30]]},"788":{"position":[[0,7],[8,20],[39,13]]},"791":{"position":[[0,15],[16,43],[60,15],[76,22]]},"793":{"position":[[12,9],[22,24],[90,2],[93,4],[107,1],[270,1],[444,1],[631,1]]},"796":{"position":[[0,61],[62,42],[105,56],[162,39],[202,32],[235,47]]},"798":{"position":[[0,40],[41,61],[174,7],[182,4],[208,13]]},"800":{"position":[[0,42],[45,5],[51,32],[86,5],[92,20]]},"802":{"position":[[0,46],[49,5],[71,4],[78,5],[84,54]]},"804":{"position":[[0,27],[28,6],[35,17],[53,22]]},"806":{"position":[[4,12]]},"812":{"position":[[5,1],[9,4],[23,7],[40,8],[54,1],[62,1],[66,6],[77,4],[87,1],[93,4],[103,1],[109,1],[113,4],[123,1],[129,1],[134,4],[144,1],[149,4],[159,1],[169,1],[173,7],[186,1],[196,1],[200,10],[216,1],[220,3],[229,1],[237,1],[241,3],[248,4],[258,1],[263,5],[273,6],[284,6]]},"815":{"position":[[0,3],[4,2],[7,3],[11,2],[14,3],[18,2],[30,4],[43,6],[58,6],[73,4],[87,4],[101,5],[114,4],[128,5],[143,4],[157,6],[173,6],[203,5],[218,8],[234,4]]},"817":{"position":[[21,3],[25,2],[28,3],[32,2],[35,3],[39,2],[52,4],[63,4],[75,2],[87,3],[97,1],[103,6],[115,2],[125,3],[133,2],[142,2],[165,4]]},"821":{"position":[[0,10],[39,1],[45,1],[75,1],[82,1],[88,1],[95,4],[194,11],[255,7],[344,7],[430,6],[527,1],[557,1],[600,1],[638,1],[675,1],[681,1],[691,1],[697,1],[723,1],[725,1],[768,1],[770,1]]},"824":{"position":[[18,1],[71,2]]},"826":{"position":[[0,10],[34,1],[36,1],[70,12],[118,1],[137,1],[160,1],[186,1],[237,1],[239,1],[301,2],[304,9],[314,8],[345,1],[398,15],[423,1],[457,2],[476,1],[511,2],[514,1],[561,1],[587,8],[610,8],[631,10],[667,1],[695,1],[716,1],[726,1],[750,1],[771,1],[773,8],[813,1],[815,3],[819,3],[823,3],[840,1],[842,1]]},"828":{"position":[[77,1]]},"831":{"position":[[7,1],[18,35],[61,1],[128,1]]},"833":{"position":[[0,6],[24,1],[39,19],[71,1],[86,1],[114,1]]},"835":{"position":[[23,1],[51,1],[58,1],[67,3],[71,1],[78,1],[94,1]]},"837":{"position":[[0,3]]},"839":{"position":[[17,4],[31,9],[41,9],[58,18],[205,1],[222,1],[224,3],[496,17],[525,17],[549,17],[579,17],[739,7],[773,39],[837,1]]},"841":{"position":[[13,30],[44,11],[56,2],[59,2],[121,22],[156,20],[183,15],[208,15],[230,10],[246,15],[344,15],[377,16],[403,15],[428,18],[460,22],[555,10],[566,2],[569,2],[577,17],[609,20],[643,23],[679,2],[684,9],[699,14],[721,8],[732,9],[751,34],[797,20],[820,4],[868,17],[905,20],[941,15],[964,18],[993,18],[1024,25],[1065,25],[1099,22],[1135,29],[1181,29],[1222,22],[1253,12],[1279,13],[1300,12],[1325,13],[1352,24],[1382,8],[1403,9],[1423,24],[1455,35],[1503,16],[1530,5],[1536,2],[1539,2],[1600,10],[1631,11],[1664,11],[1693,16],[1710,5],[1716,2],[1719,2],[1737,11],[1770,10],[1793,28],[1835,4],[1858,9],[1873,2],[1888,4],[1893,8],[1902,2],[1905,2],[1922,19],[1954,20],[1987,26],[2026,23],[2050,5],[2056,2],[2059,2],[2071,17],[2103,4],[2114,2],[2132,9],[2159,9],[2194,10],[2215,9],[2225,4],[2230,2],[2233,2],[2244,13],[2277,18],[2306,11],[2327,12],[2350,9],[2370,11],[2382,8],[2391,2],[2394,2],[2417,19],[2461,10],[2476,13],[2502,13],[2520,13],[2546,13],[2572,16],[2609,16],[2643,23],[2684,23]]},"843":{"position":[[274,2],[323,2],[377,2],[451,2],[454,15],[480,2],[483,5],[498,2],[501,5],[522,2],[543,2],[546,4],[561,2],[564,14],[592,2],[595,6],[612,2],[615,15],[639,2],[642,21],[682,2],[778,2],[843,2],[933,2],[971,2],[1043,2],[1106,2],[1109,10],[1130,2],[1174,2],[1242,2],[1298,2],[1335,2],[1394,2],[1397,13],[1411,2],[1414,1],[1416,23],[1440,2],[1513,1],[1547,2],[1553,1],[1571,1],[1584,1],[1602,2],[1611,1],[1613,1],[1620,2],[1628,2],[1631,1],[1633,2],[1636,1],[1643,2],[1662,1]]},"845":{"position":[[219,2],[222,15],[246,2],[249,21],[287,2],[314,2],[339,2],[342,6],[363,2],[366,6],[382,2],[385,4],[400,2],[403,14],[430,2],[502,2],[565,2],[568,10],[589,2],[592,5],[607,2],[610,5],[626,2],[657,2],[703,2],[799,2],[864,2],[953,2],[987,2]]},"847":{"position":[[329,8],[338,3],[342,2],[354,8],[676,5],[682,4],[687,2],[701,4],[713,10],[724,3],[749,4],[763,4],[776,4],[789,6],[805,6],[822,4],[827,1],[829,5],[861,7],[885,11],[908,11],[928,9],[949,13],[973,17],[991,1],[1000,6],[1033,2],[1104,12],[1126,8],[1149,10],[1176,9]]},"849":{"position":[[149,2],[160,2]]},"851":{"position":[[336,2],[349,2],[359,1],[368,2],[519,2],[664,2],[667,4],[672,2],[681,1],[691,2],[783,1],[798,2],[892,2],[895,4],[900,2],[917,2],[965,2],[1001,2],[1004,4],[1009,2],[1022,2],[1025,6],[1043,2],[1046,6],[1064,2],[1067,6]]},"853":{"position":[[179,2],[182,2],[194,2],[197,2],[209,2],[212,4],[228,2],[253,2],[256,8]]},"855":{"position":[[184,2],[187,3],[200,2],[203,3],[218,2],[221,6],[238,2],[241,6],[259,2],[262,8],[281,2],[284,10]]},"857":{"position":[[124,2],[127,13],[151,2],[154,6],[171,2],[174,10],[195,2],[223,2],[226,25],[268,2],[271,21],[303,2],[306,8],[324,2],[327,16],[362,2],[365,8],[385,2],[388,8],[413,2],[416,23],[453,2],[456,15],[485,2],[488,15],[515,2],[518,19],[547,2],[550,18],[578,2],[581,8],[599,2],[602,8],[627,2],[630,13],[659,2],[662,16]]},"861":{"position":[[11,1],[20,5],[89,11],[108,24],[146,24],[171,2],[187,8],[211,1],[234,2],[240,2],[248,4],[255,1],[298,2],[305,7],[332,1],[336,5],[367,2],[374,6],[402,1],[406,5],[443,2],[446,1],[452,1],[456,5],[498,1],[503,3],[509,1],[515,4],[522,4],[544,5],[559,2],[565,7],[575,6],[592,2],[598,6],[607,7],[626,2],[632,3],[638,8],[657,2],[663,8],[680,2],[683,2],[689,2],[696,6],[716,2],[722,2],[729,9],[750,2],[753,1],[758,10],[783,2],[786,1],[791,2],[798,8],[820,2],[823,1],[828,10],[855,2],[858,1],[888,2],[891,1],[896,11],[921,2],[924,1],[929,2],[936,8],[960,2],[963,2],[980,2],[983,1],[988,12],[1015,1],[1020,2],[1026,2],[1029,1],[1034,7],[1045,1]]},"864":{"position":[[97,1],[103,1],[109,1],[115,1],[117,8],[148,1],[182,15],[207,1],[216,2],[235,1],[245,2],[248,1],[295,1],[321,8],[344,8],[365,10],[401,1],[429,1],[450,1],[452,8],[492,1],[514,1],[558,1],[600,1],[607,1],[689,1],[704,1],[706,8],[742,1],[840,1],[845,1],[854,1],[911,1],[918,1],[956,1],[966,1],[1018,2],[1024,1],[1065,1],[1067,1],[1069,1],[1083,1],[1085,8],[1121,1],[1188,2],[1197,1],[1199,2],[1208,2],[1211,1],[1213,2],[1288,1],[1293,1],[1302,1],[1325,1],[1344,1],[1351,1],[1389,1],[1399,1],[1451,2],[1457,1],[1525,2],[1534,1],[1536,2],[1543,2],[1546,1],[1548,2],[1557,1],[1572,1],[1574,1],[1588,1],[1598,1],[1632,1],[1647,2],[1655,1],[1657,2],[1664,2],[1667,1],[1669,2],[1686,1],[1688,1],[1697,2],[1718,1],[1720,1],[1740,1],[1946,1],[1963,2],[1966,14],[1991,1],[1998,1],[2021,2],[2030,2],[2033,1],[2035,2],[2043,2],[2057,2],[2060,14],[2257,1],[2280,1],[2287,1],[2313,2],[2325,2],[2328,1],[2330,2],[2338,2],[2360,2],[2377,1]]},"866":{"position":[[99,1],[105,1],[111,1],[117,1],[189,8],[220,1],[273,15],[298,1],[332,2],[351,1],[386,2],[389,1],[436,1],[462,8],[485,8],[506,10],[542,1],[570,1],[591,1],[601,1],[625,1],[646,1],[648,8],[688,1],[710,1],[754,1],[847,1],[854,1],[1038,1],[1053,1],[1055,1],[1137,2],[1175,1],[1205,1],[1338,1],[1340,1],[1419,1],[1501,1],[1649,1],[1751,1],[1899,1],[1901,1],[2126,1],[2128,1],[2194,1],[2278,1],[2337,1],[2374,1],[2416,1],[2469,1],[2502,1],[2514,1]]},"868":{"position":[[234,5],[259,5],[310,1],[329,1],[424,8],[448,4],[485,3],[580,4],[660,2],[693,10],[728,2],[764,1],[766,5],[790,1],[806,1],[865,1],[911,1],[955,1],[1004,1],[1025,2],[1031,1],[1043,1],[1045,1],[1058,1],[1092,1],[1094,11],[1106,11],[1118,5],[1124,7],[1132,7],[1267,6],[1283,1],[1289,6],[1347,1],[1352,6],[1410,1],[1415,7],[1495,6],[1531,1],[1553,1],[1565,1],[1577,1],[1603,1],[1635,2],[1659,1],[1771,1],[1773,7],[1788,1],[1832,1],[1834,8],[1851,1],[1856,1],[1863,1],[1865,6],[1893,1],[1898,1],[1900,1],[1913,1],[1915,2],[1988,3],[2004,1],[2070,2],[2100,7],[2151,6],[2184,4],[2204,10],[2262,1],[2328,7],[2368,1],[2370,5],[2427,1],[2451,1],[2477,5],[2494,8],[2503,1],[2510,1],[2563,1],[2621,9],[2631,1],[2633,1],[2635,2],[2638,8],[2647,2],[2650,11],[2663,15],[2702,1],[2715,1],[2795,2],[2868,1],[2897,1],[2926,1],[3030,4],[3038,1],[3109,1],[3132,1],[3160,1],[3198,1],[3200,1],[3212,1]]},"871":{"position":[[197,1],[218,2],[221,10],[278,2],[307,1],[309,2],[357,7],[400,2],[403,13],[456,2],[459,11],[523,2],[526,15],[584,2],[587,15],[614,1],[616,2],[619,10],[676,2],[705,1],[742,2],[745,14],[799,2],[802,11],[866,2],[869,15],[927,2],[930,15],[957,1],[959,2],[962,3],[988,1],[1063,1],[1065,2],[1068,4],[1090,1],[1151,1],[1255,1],[1333,3],[1337,2],[1340,9],[1350,1],[1352,2],[1355,4],[1378,1],[1465,1],[1467,2],[1470,4],[1493,1],[1580,1],[1582,2],[1585,4],[1609,1],[1698,1],[1711,1],[1743,1],[1795,2],[1798,4],[1803,2],[1847,2],[1850,4],[1897,2],[1900,4],[1939,2],[1942,9],[1952,2],[1989,2],[1992,9],[2011,2],[2014,4],[2019,2],[2032,2],[2035,4],[2040,2],[2053,2],[2067,2],[2070,4],[2075,2],[2088,2],[2101,2],[2104,4],[2109,2],[2122,1],[2134,1]]},"873":{"position":[[197,1],[264,1],[445,1],[493,1],[674,1],[698,1],[773,1],[792,1],[853,1],[957,1],[1035,3],[1039,1],[1059,1],[1146,1],[1166,1],[1253,1],[1274,1],[1363,1],[1376,1],[1408,1],[1460,2],[1580,2],[1626,2],[1639,2],[1653,2],[1666,1],[1678,1]]},"875":{"position":[[277,1],[340,2],[350,1],[537,1],[558,1],[570,2],[652,1],[665,1],[827,1]]},"879":{"position":[[123,1],[159,1],[184,1],[200,1],[220,2],[232,1],[256,9],[266,1],[282,1],[292,1],[315,1],[347,2],[374,1],[415,1],[417,8],[441,1],[472,1],[479,1],[493,1],[495,1],[497,1],[499,1],[501,1],[572,1],[630,4],[635,2],[638,1],[666,1],[736,1],[805,1],[863,1],[881,1],[883,1],[885,1],[936,1],[1002,2],[1335,1],[1371,1],[1396,1],[1412,1],[1432,2],[1444,1],[1468,9],[1478,1],[1494,1],[1504,1],[1527,1],[1559,2],[1586,1],[1656,1],[1687,1],[1694,1],[1708,1],[1710,1],[1712,1],[1714,1],[1716,1],[1718,2],[1721,1],[1750,1],[1803,1],[1830,2],[1871,1],[2145,2],[2254,1],[2312,2],[2340,2],[2352,1]]},"881":{"position":[[67,2],[225,15],[365,1],[393,1],[514,1],[516,14],[587,1],[589,14],[718,1],[747,1],[822,1],[849,1],[907,1],[967,1],[1024,13],[1053,36]]},"885":{"position":[[28,14],[43,16],[60,7],[68,11],[80,8],[195,10]]},"889":{"position":[[19,9],[29,9],[39,7]]},"891":{"position":[[0,9],[10,20]]},"893":{"position":[[49,5],[105,17],[123,19],[143,19]]},"895":{"position":[[0,6],[167,16],[184,8],[258,58],[317,3],[354,5],[441,17],[459,2],[487,2],[514,2],[517,4],[538,2],[557,3],[578,5],[633,1],[702,2],[733,1],[799,1],[862,1],[929,1],[970,2],[982,1],[1060,2],[1097,3],[1143,5],[1198,1],[1234,2],[1259,2],[1287,2],[1290,4],[1308,2],[1421,1],[1449,1],[1570,1],[1572,14],[1643,1],[1645,14],[1774,1],[1803,1],[1878,1],[1905,1],[1963,1],[2023,1],[2080,5],[2086,12],[2099,16],[2116,15]]},"900":{"position":[[86,3],[151,24],[176,3],[180,84],[265,18]]},"902":{"position":[[77,18],[96,3],[100,3],[104,5],[110,7],[171,5],[266,4],[363,4]]},"908":{"position":[[45,8],[54,8],[63,4],[68,9],[83,10],[94,64],[159,56],[216,54],[271,8],[280,9],[399,10],[513,9],[694,10],[873,8],[882,9],[1004,10],[1143,9],[1339,10]]},"911":{"position":[[0,19],[20,5],[26,5],[32,5],[38,4],[43,3],[47,2]]},"913":{"position":[[0,16],[42,33]]},"915":{"position":[[0,7],[25,3]]},"918":{"position":[[0,5],[6,39],[46,7],[54,6],[61,6],[68,6],[75,6],[82,22],[105,22],[128,73],[202,3],[206,64],[275,74]]},"920":{"position":[[0,7],[8,3],[12,50],[63,3],[261,12],[274,3],[278,7],[286,3],[290,26],[317,3],[321,40],[362,3],[509,10],[520,3]]},"922":{"position":[[0,23],[24,5],[35,6],[42,3],[46,3],[50,12],[63,7],[71,6],[78,6],[85,4],[90,8],[99,4],[104,5],[110,5],[116,5],[122,53],[176,3],[180,12],[193,39],[233,19],[277,19]]},"924":{"position":[[0,76],[77,34]]},"926":{"position":[[0,17],[359,42],[885,60],[1114,2],[1169,2]]},"928":{"position":[[0,14],[169,27],[630,2],[685,2]]},"930":{"position":[[0,5],[6,38],[45,13],[359,5],[365,40],[406,13]]},"937":{"position":[[0,5],[6,15],[22,12],[35,23],[59,29],[89,14],[104,5],[110,84],[195,16],[212,22],[235,20],[256,77],[334,90]]},"939":{"position":[[99,10],[110,5],[116,39]]},"942":{"position":[[0,6],[160,6]]},"944":{"position":[[0,9],[10,45],[56,8],[65,30],[96,26],[123,27]]},"946":{"position":[[10,7],[18,34],[53,13],[76,7],[84,17],[102,13],[127,7],[135,37],[173,13],[198,7],[206,17],[272,10],[283,9],[326,16],[343,6]]},"948":{"position":[[0,10],[11,64],[76,56],[133,54],[188,11],[200,19],[220,24],[245,25],[271,18],[290,21],[312,26],[362,18],[433,35],[469,38],[508,27],[536,49],[586,12],[599,46],[646,68],[715,8],[724,3],[728,3],[732,12],[745,25],[771,46],[818,56],[875,17],[896,4],[901,2]]},"950":{"position":[[4,14]]},"965":{"position":[[201,18],[285,17],[562,26]]},"969":{"position":[[256,10],[917,5],[923,10]]},"981":{"position":[[0,4],[14,5],[66,3],[113,40]]},"994":{"position":[[0,5],[389,4],[812,13]]},"998":{"position":[[0,1],[24,2],[64,39],[116,18],[154,25],[199,19],[219,5],[225,25],[259,14],[274,5],[280,38],[327,1],[338,10],[357,1],[410,5],[424,32],[465,1],[505,46],[560,1],[621,10]]},"1002":{"position":[[790,31],[1558,15],[1602,1],[1628,2],[1647,1]]},"1006":{"position":[[0,30],[232,7]]},"1008":{"position":[[0,12]]},"1010":{"position":[[187,15]]},"1012":{"position":[[0,8],[13,13],[74,11]]},"1017":{"position":[[0,3],[19,2],[30,9]]},"1019":{"position":[[0,13],[27,2],[45,8],[69,5]]},"1023":{"position":[[9,7],[71,1],[88,1],[90,1],[92,1],[94,1],[130,1],[147,1],[149,1],[151,1],[153,1],[174,8],[198,1],[209,15]]},"1025":{"position":[[0,19],[55,1],[122,1],[230,1],[330,1],[397,1],[502,1],[586,1],[593,4],[605,19],[637,2],[650,19],[674,5],[685,5],[719,2],[748,8],[782,1],[809,5],[824,17],[870,1],[948,1],[1022,1],[1100,1]]},"1027":{"position":[[0,1],[9,2],[20,3],[32,11],[53,8],[124,17],[146,32],[195,17],[220,50]]},"1029":{"position":[[9,1],[31,1],[91,1],[120,1],[159,1],[181,3],[187,3],[237,5],[245,8],[278,33],[312,1],[327,8],[340,8],[351,3],[359,30],[413,14],[430,10],[441,1],[456,9],[589,1],[718,1],[720,1],[733,1],[760,3],[766,6],[773,1],[784,9],[796,5],[804,7],[814,16],[833,13],[849,27],[879,1],[883,7],[911,22],[934,5],[953,6],[1002,5],[1016,10],[1035,10],[1054,5],[1073,30],[1120,6],[1135,28],[1172,13],[1194,14],[1266,6]]},"1031":{"position":[[0,15],[155,5],[170,7],[221,1],[269,1],[293,1],[323,1],[392,1],[505,1],[516,14],[531,1],[587,46],[649,10],[660,3],[666,5],[681,24],[744,33],[803,13],[826,11],[912,6],[921,13],[937,13],[953,44],[998,5],[1012,6],[1029,3],[1118,2],[1134,11],[1154,5],[1177,7],[1209,9],[1227,1],[1276,5],[1297,7]]},"1033":{"position":[[9,7],[37,11],[49,9],[63,2],[79,6],[91,4],[188,30],[219,4],[224,46],[296,7],[307,26],[348,10],[359,5],[368,11],[399,1],[570,8],[753,4],[774,5],[786,10],[800,4],[810,10],[824,1],[876,17],[922,4],[932,7],[954,2],[961,3],[976,1],[990,1],[996,7],[1008,1],[1017,2],[1031,1],[1046,1],[1052,10],[1066,3],[1087,2],[1140,8],[1149,2],[1155,20],[1199,13],[1226,4],[1255,12],[1277,20],[1304,1],[1377,28],[1416,43],[1464,15],[1494,2],[1501,3],[1516,1],[1530,1],[1536,7],[1548,1],[1557,2],[1571,1],[1586,1],[1592,10],[1607,3],[1614,2],[1669,29],[1720,4],[1759,3],[1848,13],[1868,24],[1932,11],[1968,11]]},"1036":{"position":[[0,15],[27,2],[42,12],[65,2],[70,4],[129,9],[172,3],[187,6],[206,7],[254,17],[272,5],[278,9],[298,5],[315,15],[340,1],[344,6],[361,6],[368,8],[409,2],[436,20],[469,34],[504,19],[529,3],[542,5],[572,3],[596,15],[614,3],[635,2],[642,1],[660,32]]},"1039":{"position":[[0,3],[4,5],[18,3],[36,5],[46,19],[80,5],[86,3],[97,1],[132,4],[145,14],[168,7],[189,8],[198,23],[222,3],[230,3],[241,4],[307,24],[340,11],[360,11],[380,15],[396,12],[416,37],[462,9],[480,9],[507,3],[519,10]]},"1041":{"position":[[7,5],[15,31],[56,2]]},"1043":{"position":[[5,5]]},"1046":{"position":[[90,35],[366,1],[370,18],[400,3],[404,8],[415,24],[444,19],[464,3],[468,48],[517,3],[521,51],[584,3],[588,8],[599,31],[633,7],[641,3],[645,14],[662,31],[694,3],[698,47],[748,14],[765,6],[774,19]]},"1048":{"position":[[100,5],[286,81]]},"1055":{"position":[[0,5],[105,1],[160,1],[212,1],[256,8],[723,1],[779,1],[869,1],[959,1],[1061,1],[1101,1],[1110,1],[1126,1],[1135,1],[1152,1],[1161,1],[1194,1],[1232,1],[1268,1],[1277,11],[1289,33],[1470,1],[1513,1],[1523,1],[1643,1],[1689,1],[1717,1],[1949,1],[2015,1],[2072,1],[2090,1],[2111,2],[2166,10],[2367,1],[2393,1],[2422,3],[3014,5],[3020,1],[3150,1],[3207,1],[3259,1],[3303,1],[3363,1],[3453,1],[3543,1],[3625,1],[3665,1],[3674,1],[3690,1],[3699,1],[3716,1],[3725,1],[3758,1],[3796,1],[3832,1],[3841,1],[3883,1],[3893,1],[3939,1],[3985,1],[4013,1],[4108,1],[4174,1],[4231,1],[4249,1],[4270,2],[4325,1],[4351,1]]},"1057":{"position":[[130,4],[190,4],[257,4]]},"1061":{"position":[[0,4]]},"1066":{"position":[[0,137]]},"1068":{"position":[[10,8],[19,19],[39,15],[55,21],[77,6],[84,21],[106,6],[113,52],[166,3],[170,32],[203,6],[210,6],[217,16],[234,6],[241,26]]},"1070":{"position":[[244,51]]},"1072":{"position":[[0,3],[87,3],[91,53]]},"1074":{"position":[[0,3],[96,3],[100,53]]},"1076":{"position":[[0,32],[33,82],[116,43],[504,27],[663,17],[681,118]]},"1078":{"position":[[4,33]]},"1080":{"position":[[0,89],[90,157]]},"1084":{"position":[[191,2],[199,8],[242,16],[286,31],[354,31]]},"1086":{"position":[[361,3]]},"1088":{"position":[[12,34],[225,28],[821,29],[856,41],[1154,5],[1388,5]]},"1090":{"position":[[302,11],[314,2],[322,49],[372,1],[379,32],[424,65],[498,87],[594,40],[635,11]]},"1094":{"position":[[4,8]]},"1100":{"position":[[72,1],[161,15],[253,1],[297,1],[335,1],[452,1],[564,1]]},"1104":{"position":[[106,12],[162,1]]},"1106":{"position":[[95,1]]},"1108":{"position":[[107,1],[137,6]]},"1111":{"position":[[139,16]]},"1115":{"position":[[0,24],[25,14],[40,32]]},"1119":{"position":[[24,1],[37,1],[116,1],[307,1],[352,1]]},"1121":{"position":[[22,1],[40,1],[44,1],[52,1],[158,1],[176,1],[180,1],[188,1],[296,1]]},"1124":{"position":[[37,19],[89,1],[189,1]]},"1126":{"position":[[0,4],[317,2],[353,2],[356,2],[707,2],[719,2],[743,2],[777,2],[803,2],[817,2],[832,2],[880,2],[893,1],[948,2],[1001,1],[1033,1],[1064,1],[1121,4],[1176,2],[1228,2],[1236,1],[1253,2],[1266,2],[1269,2],[1345,2],[1442,1],[1454,1],[1496,1],[1518,1],[1541,1],[1588,1],[1638,1],[1685,1],[1710,1],[1744,1],[1776,1],[1821,1],[1871,1]]},"1136":{"position":[[0,150]]},"1138":{"position":[[335,30],[498,38],[537,15],[566,1],[576,1],[593,1],[598,2],[610,1],[614,1],[619,1],[630,1],[634,1]]},"1145":{"position":[[271,1],[494,3],[498,14],[513,32],[546,15]]},"1150":{"position":[[197,1],[249,1],[503,1],[542,1],[771,1],[775,1],[1022,1],[1067,1],[1137,1],[1173,1],[1190,1],[1252,1],[1285,1],[1358,2],[1459,2],[1483,2],[1580,1],[1628,1],[1683,1],[1803,1],[1841,1],[1991,1],[2026,1],[2037,1],[2097,1],[2163,1],[2175,1],[2197,1],[2209,1],[2231,1],[2236,1],[2251,2],[2257,2],[2271,2],[2310,1],[2319,1],[2324,1],[2376,1],[2435,1],[2564,1],[2577,1],[2650,1],[2678,1],[2735,1],[2751,1]]},"1155":{"position":[[0,24],[25,23],[49,5],[55,3]]},"1157":{"position":[[0,26],[179,20],[495,17],[801,16]]},"1159":{"position":[[0,31],[261,10],[341,1]]},"1162":{"position":[[0,88],[89,62]]},"1164":{"position":[[0,115],[116,80],[197,64],[262,47],[310,50]]},"1166":{"position":[[0,78],[79,65]]},"1171":{"position":[[0,35]]},"1175":{"position":[[89,38],[158,1],[306,1]]},"1177":{"position":[[0,4],[24,5]]},"1181":{"position":[[83,1],[102,1],[121,1],[141,1],[160,1],[180,1],[209,1],[267,1],[293,1],[323,1],[388,1],[485,1],[518,1],[524,1],[551,1],[556,1],[589,1],[594,1],[606,3],[610,1],[625,1],[714,1],[762,1],[764,8],[775,1],[862,1],[893,2],[930,1],[1041,1],[1069,1],[1097,1],[1130,3],[1203,3],[1209,1],[1250,1],[1291,1],[1324,3],[1406,3]]},"1183":{"position":[[0,4]]},"1188":{"position":[[213,6]]},"1190":{"position":[[157,19]]},"1196":{"position":[[0,4],[24,5]]},"1199":{"position":[[0,8],[81,6],[90,7],[98,11],[176,3],[249,6],[561,6],[627,20],[753,3]]},"1201":{"position":[[0,10],[264,14],[377,2],[402,2],[405,2],[474,2],[477,2]]},"1205":{"position":[[122,1],[126,1],[139,3],[143,33],[177,17],[195,14]]},"1207":{"position":[[0,4]]},"1211":{"position":[[518,3],[535,3],[553,3],[571,3]]},"1215":{"position":[[0,4],[14,5],[66,3],[113,40]]},"1228":{"position":[[0,5],[389,4],[812,13]]},"1232":{"position":[[0,1],[24,2],[64,39],[116,18],[154,25],[199,19],[219,5],[225,25],[259,14],[274,5],[280,38],[327,1],[338,10],[357,1],[410,5],[424,32],[465,1],[505,46],[560,1],[621,10]]},"1236":{"position":[[790,31],[1558,15],[1602,1],[1628,2],[1647,1]]},"1238":{"position":[[0,8],[13,13],[74,11]]},"1243":{"position":[[0,3],[19,2],[30,9]]},"1245":{"position":[[0,13],[27,2],[45,8],[69,5]]},"1249":{"position":[[9,7],[71,1],[88,1],[90,1],[92,1],[94,1],[130,1],[147,1],[149,1],[151,1],[153,1],[174,8],[198,1],[209,15]]},"1251":{"position":[[0,19],[55,1],[122,1],[230,1],[330,1],[397,1],[502,1],[586,1],[593,4],[605,19],[637,2],[650,19],[674,5],[685,5],[719,2],[748,8],[782,1],[809,5],[824,17],[870,1],[948,1],[1022,1],[1100,1]]},"1253":{"position":[[0,1],[9,2],[20,3],[32,11],[53,8],[124,17],[146,32],[195,17],[220,50]]},"1255":{"position":[[9,1],[31,1],[91,1],[120,1],[159,1],[181,3],[187,3],[237,5],[245,8],[278,33],[312,1],[327,8],[340,8],[351,3],[359,30],[413,14],[430,10],[441,1],[456,9],[590,1],[719,1],[721,1],[734,1],[761,3],[767,6],[774,1],[785,9],[797,5],[805,7],[815,16],[834,13],[850,27],[880,1],[884,7],[912,22],[935,5],[954,6],[1003,5],[1017,10],[1036,10],[1055,5],[1074,30],[1121,6],[1136,28],[1173,13],[1195,14],[1267,6]]},"1257":{"position":[[0,15],[155,5],[170,7],[221,1],[269,1],[293,1],[323,1],[392,1],[505,1],[516,14],[531,1],[587,46],[649,10],[660,3],[666,5],[681,24],[744,33],[803,13],[826,11],[912,6],[921,13],[937,13],[953,44],[998,5],[1012,6],[1029,3],[1118,2],[1134,11],[1154,5],[1177,8],[1210,9],[1228,1],[1277,5],[1298,8]]},"1259":{"position":[[9,7],[37,11],[49,9],[63,2],[79,6],[91,4],[187,30],[218,4],[223,46],[295,7],[306,26],[346,10],[357,5],[366,11],[397,1],[568,8],[751,4],[772,5],[784,10],[798,4],[808,10],[822,1],[874,17],[919,4],[929,7],[951,2],[958,3],[973,1],[987,1],[993,7],[1005,1],[1014,2],[1028,1],[1043,1],[1049,10],[1063,3],[1084,2],[1137,8],[1146,2],[1152,20],[1196,13],[1223,4],[1252,12],[1274,20],[1301,1],[1374,28],[1413,43],[1461,15],[1491,2],[1498,3],[1513,1],[1527,1],[1533,7],[1545,1],[1554,2],[1568,1],[1583,1],[1589,10],[1604,3],[1611,2],[1666,29],[1717,4],[1756,3],[1845,13],[1865,24],[1929,11],[1965,11]]},"1262":{"position":[[0,15],[27,2],[42,12],[65,2],[70,4],[129,9],[172,3],[187,6],[206,7],[254,17],[272,5],[278,9],[298,5],[315,15],[340,1],[344,6],[361,6],[368,8],[409,2],[436,20],[469,34],[504,19],[529,3],[542,5],[572,3],[596,15],[614,3],[635,2],[642,1],[660,32]]},"1265":{"position":[[7,5],[15,31]]},"1267":{"position":[[0,1],[6,14],[29,6],[100,2],[123,12],[156,1],[180,7],[192,35],[263,3],[290,14],[313,1],[323,2],[346,4],[373,8],[389,11],[410,7],[431,32],[464,4],[494,3],[521,12],[541,17],[568,7],[589,11],[627,4],[632,6],[661,7],[679,5],[710,3],[718,16],[745,6],[776,7],[784,3],[792,3],[803,4],[869,24],[902,11],[922,11],[942,15],[958,12],[978,37],[1024,9],[1042,9],[1069,3],[1081,10]]},"1269":{"position":[[66,1],[85,4],[94,15],[118,24],[151,14],[189,1],[213,14],[246,7],[262,8],[279,8],[321,14],[336,1],[360,4],[369,11]]},"1276":{"position":[[29,7]]},"1278":{"position":[[30,1],[41,1],[43,3],[47,1],[181,1],[183,22],[206,1],[278,1],[353,1]]},"1280":{"position":[[30,1],[152,1],[154,22]]},"1282":{"position":[[0,2],[3,14],[40,9]]},"1286":{"position":[[4,12]]},"1290":{"position":[[0,6],[65,1],[148,2],[151,9],[211,1],[412,2],[433,1]]},"1292":{"position":[[5,32]]},"1294":{"position":[[244,14],[293,1],[345,1],[384,1],[391,2],[400,1],[422,3],[495,3],[502,1],[515,1],[537,3],[598,3],[609,1],[614,1],[633,3],[661,1],[676,1],[692,2],[708,1],[723,1],[794,3],[874,2],[877,2],[880,1],[888,2],[891,2],[952,2],[955,2],[958,1],[966,2],[969,2],[1030,2],[1033,2],[1036,1],[1044,2],[1047,2],[1272,69]]},"1298":{"position":[[69,11],[81,1],[98,1],[116,1],[140,1],[158,1],[189,1],[216,1],[218,8],[265,3],[354,10],[365,1],[367,10],[378,1],[380,8],[404,1],[425,1],[427,8],[476,3]]},"1300":{"position":[[0,4]]},"1305":{"position":[[148,12],[209,2],[330,5]]},"1307":{"position":[[0,18]]},"1309":{"position":[[24,1],[26,4],[183,7],[191,1],[193,1],[195,4],[281,7],[289,1]]},"1311":{"position":[[75,13]]},"1313":{"position":[[0,16],[26,16]]},"1317":{"position":[[0,31]]},"1319":{"position":[[39,1],[41,2],[44,1],[46,23],[70,2],[90,2],[93,1],[103,1],[108,2],[111,17],[143,1],[148,2],[151,2],[163,1],[179,1],[191,1],[193,2],[196,13],[215,1],[227,1],[232,1],[250,2],[276,2],[288,1],[290,2],[347,1],[357,1],[375,1],[382,1],[393,1],[400,1],[402,2],[405,9],[438,1],[440,2],[502,1],[514,1],[522,2],[525,26],[552,1],[561,2],[564,6],[571,1],[595,1],[597,2],[648,1],[667,2],[670,6],[677,1]]},"1321":{"position":[[0,14],[33,7],[126,1],[128,2],[131,1],[133,23],[157,2],[177,2],[180,1],[190,1],[195,2],[198,17],[230,1],[235,2],[238,2],[250,1],[266,1],[278,1],[280,2],[283,13],[302,1],[314,1],[319,1],[337,2],[363,2],[375,1],[377,2],[434,1],[444,1],[462,1],[469,1],[480,1],[487,1],[489,2],[492,9],[525,1],[527,2],[589,1],[601,1],[609,2],[612,26],[639,1],[648,2],[651,6],[658,1],[682,1],[684,2],[735,1],[754,2],[757,6],[764,1],[777,1],[800,2],[806,1],[833,1],[854,2],[862,1],[878,1],[899,1],[932,1],[954,1],[966,1],[985,1],[992,2],[1000,1],[1007,1],[1022,1],[1041,2],[1062,1],[1069,2],[1077,1],[1079,1],[1086,2],[1095,1],[1107,1]]},"1326":{"position":[[43,6],[56,2],[92,2]]},"1329":{"position":[[0,7],[8,74],[83,9],[93,90],[184,9],[260,10],[271,46],[318,5],[324,36],[361,16],[378,16],[395,8],[404,33],[467,1],[482,1],[519,3],[552,9],[564,12],[603,9],[615,11],[660,3],[666,10],[677,41],[764,5]]},"1332":{"position":[[0,5],[6,2],[11,6],[22,2],[39,14],[54,7],[62,9],[74,5],[86,1],[91,1],[95,8],[104,7],[112,18],[131,41],[173,43],[217,45]]},"1334":{"position":[[0,5],[6,4],[11,30],[42,6],[49,40],[107,4],[112,1],[114,1]]},"1337":{"position":[[0,51],[52,16],[128,12],[141,4],[146,10],[157,12],[170,9],[180,63],[248,14],[263,13],[277,15],[361,20],[386,72],[459,13],[473,43],[517,68],[586,87],[674,14],[689,9],[699,49],[749,12],[762,28],[791,14],[917,55]]},"1339":{"position":[[0,7],[8,74],[83,9],[93,90],[184,9],[260,10],[271,46],[318,5],[324,36],[361,16],[378,16],[395,8],[404,33],[467,1],[482,1],[519,3],[552,9],[564,12],[603,9],[615,11],[660,3],[666,10],[677,41],[764,5]]},"1345":{"position":[[140,15],[156,30],[187,6]]},"1347":{"position":[[162,10],[173,6],[180,6],[187,12],[200,4]]},"1349":{"position":[[0,31],[81,48]]},"1354":{"position":[[600,20],[725,14],[789,10]]},"1356":{"position":[[11,7]]},"1358":{"position":[[3,5],[62,24],[87,33],[198,4],[203,28]]},"1368":{"position":[[134,38]]},"1372":{"position":[[146,6]]},"1374":{"position":[[0,48],[105,15],[121,91]]},"1379":{"position":[[3,7],[47,7]]},"1381":{"position":[[3,7],[47,7]]},"1383":{"position":[[4,14]]},"1388":{"position":[[0,59],[60,30],[91,30]]},"1390":{"position":[[0,4],[5,4],[193,2],[196,13]]},"1392":{"position":[[0,16],[69,1]]},"1398":{"position":[[4,5],[10,8],[19,12],[32,7],[40,4]]},"1400":{"position":[[0,51],[52,16]]},"1402":{"position":[[0,12],[13,4],[18,10],[29,12],[42,9],[52,63],[120,14],[135,13],[149,15],[233,20],[258,72],[331,13],[345,43],[389,68],[458,87],[546,14],[561,9],[571,49],[621,12],[634,28],[663,14],[789,55]]}}}],["0",{"_index":19,"t":{"705":{"position":[[90,2],[100,2],[144,2],[160,2],[208,4],[231,2],[365,2]]},"711":{"position":[[115,2],[129,2],[210,2]]},"713":{"position":[[96,2],[167,2],[183,2]]},"715":{"position":[[161,24],[186,3],[257,2],[260,3]]},"717":{"position":[[86,3],[142,1],[152,2],[367,1],[379,2],[468,2]]},"719":{"position":[[48,22]]},"746":{"position":[[114,7],[172,7]]},"761":{"position":[[0,17]]},"835":{"position":[[53,2]]},"843":{"position":[[1605,2],[1659,2]]},"861":{"position":[[253,1],[273,1],[839,1]]},"864":{"position":[[842,2],[913,2],[1021,2],[1290,2],[1346,2],[1454,2],[1993,2],[2282,2],[2374,2]]},"866":{"position":[[2511,2]]},"868":{"position":[[92,1],[121,1],[792,2],[808,2],[3089,3],[3209,2]]},"871":{"position":[[382,2],[724,2],[1007,2],[2131,2]]},"873":{"position":[[283,2],[512,2],[717,2],[1675,2]]},"875":{"position":[[824,2]]},"877":{"position":[[50,5]]},"895":{"position":[[2156,5]]},"1002":{"position":[[1518,39],[1631,2]]},"1029":{"position":[[1273,2]]},"1031":{"position":[[223,2]]},"1055":{"position":[[167,2],[173,3],[177,3],[184,2],[799,2],[813,3],[817,3],[824,3],[835,4],[889,2],[900,2],[903,3],[907,3],[911,2],[918,3],[982,3],[986,3],[993,3],[1001,2],[1015,4],[3214,2],[3220,3],[3224,3],[3231,2],[3383,2],[3397,3],[3401,3],[3408,3],[3419,4],[3473,2],[3484,2],[3487,3],[3491,3],[3495,2],[3502,3],[3566,3],[3570,3],[3577,3],[3585,2],[3599,4]]},"1119":{"position":[[169,14]]},"1121":{"position":[[38,1],[46,3],[61,3],[174,1],[182,3],[197,3]]},"1138":{"position":[[568,1],[578,1],[601,1]]},"1150":{"position":[[2260,1]]},"1152":{"position":[[44,74]]},"1175":{"position":[[308,1]]},"1181":{"position":[[958,2],[982,3]]},"1236":{"position":[[1518,39],[1631,2]]},"1255":{"position":[[1274,2]]},"1257":{"position":[[223,2]]},"1278":{"position":[[131,5]]},"1280":{"position":[[56,5],[62,5]]},"1294":{"position":[[648,3],[1217,2],[1229,2],[1253,2]]},"1319":{"position":[[105,2],[145,2],[165,2],[244,5],[359,5],[443,33],[600,25]]},"1321":{"position":[[192,2],[232,2],[252,2],[331,5],[446,5],[530,33],[687,25],[857,4],[894,4],[995,4],[1104,2]]}}}],["0&d(u,v)d0​d1​≤d(u,v)≤d0​d(u,v)d_0\\end{cases}\\tag{14}h(u,v)={10​d(u,v)≤d0​d(u,v)>d0​​(14",{"_index":1361,"t":{"926":{"position":[[142,67]]}}}],["0&d(u,v)>d_1\\end{cases}\\tag{18}h(u,v)=⎩⎨⎧​1d0​−d1​d(u,v)−d1​​0​d(u,v)d1​​(18",{"_index":1381,"t":{"926":{"position":[[1172,102]]}}}],["0&d(u,v)\\leq",{"_index":1384,"t":{"928":{"position":[[97,12]]}}}],["0.1",{"_index":2500,"t":{"1181":{"position":[[826,5],[850,4]]}}}],["0.1959",{"_index":1829,"t":{"1033":{"position":[[1099,8]]},"1259":{"position":[[1096,8]]}}}],["0.2",{"_index":2503,"t":{"1181":{"position":[[855,6]]}}}],["0.2042",{"_index":1827,"t":{"1033":{"position":[[1079,7]]},"1259":{"position":[[1076,7]]}}}],["0.25",{"_index":344,"t":{"826":{"position":[[188,5]]}}}],["0.3",{"_index":2497,"t":{"1181":{"position":[[802,5]]}}}],["0.7",{"_index":2501,"t":{"1181":{"position":[[832,4]]}}}],["0.8",{"_index":2498,"t":{"1181":{"position":[[814,4],[837,5]]}}}],["0.88",{"_index":2502,"t":{"1181":{"position":[[843,6]]}}}],["0.9",{"_index":2428,"t":{"1150":{"position":[[2737,4]]},"1181":{"position":[[797,4],[808,5]]}}}],["0.99",{"_index":2499,"t":{"1181":{"position":[[819,6]]}}}],["01",{"_index":698,"t":{"861":{"position":[[500,2]]}}}],["012",{"_index":691,"t":{"861":{"position":[[370,3]]}}}],["0x3f3f3f3f",{"_index":303,"t":{"821":{"position":[[489,10]]},"875":{"position":[[131,10]]}}}],["0xf",{"_index":686,"t":{"861":{"position":[[301,3]]}}}],["0xff;//d",{"_index":1071,"t":{"879":{"position":[[294,8],[1506,8]]}}}],["0维度的相加过程中出现了shape为(3",{"_index":2787,"t":{"1294":{"position":[[1080,24]]}}}],["0阶矩和1",{"_index":1410,"t":{"942":{"position":[[167,33]]}}}],["1",{"_index":2,"t":{"703":{"position":[[64,1]]},"705":{"position":[[243,2],[331,2],[386,1]]},"713":{"position":[[63,21]]},"717":{"position":[[200,2],[240,2],[293,3]]},"736":{"position":[[91,2]]},"746":{"position":[[76,7],[93,10]]},"761":{"position":[[18,12]]},"767":{"position":[[78,57]]},"821":{"position":[[742,3],[772,2],[775,2]]},"839":{"position":[[198,4]]},"843":{"position":[[1597,2]]},"861":{"position":[[264,8],[342,1],[573,1],[605,1],[636,1],[739,1],[769,1],[807,1]]},"864":{"position":[[213,2],[1315,3],[1611,3],[1630,1],[1774,3],[2109,3]]},"866":{"position":[[1645,3],[1747,3]]},"868":{"position":[[76,1],[105,1],[143,1],[1055,2],[2864,3]]},"871":{"position":[[862,3],[923,3],[1935,3],[1985,3]]},"873":{"position":[[617,3],[659,3],[1576,3],[1613,3]]},"875":{"position":[[370,2],[568,1],[797,3]]},"922":{"position":[[254,1],[257,1],[260,1],[269,1],[272,1],[275,1],[298,1],[303,1],[306,1],[311,1],[314,1],[319,1]]},"1002":{"position":[[1669,2]]},"1025":{"position":[[124,3],[399,3],[815,3],[950,3],[1102,3]]},"1029":{"position":[[951,1]]},"1039":{"position":[[105,1],[254,12]]},"1046":{"position":[[364,1],[389,10],[413,1]]},"1055":{"position":[[162,4],[170,2],[191,3],[195,2],[198,2],[201,3],[802,3],[806,3],[810,2],[821,2],[828,3],[832,2],[892,3],[896,3],[914,3],[922,2],[925,4],[997,3],[1008,3],[1012,2],[1608,9],[1714,2],[3209,4],[3217,2],[3238,3],[3242,2],[3245,2],[3248,3],[3386,3],[3390,3],[3394,2],[3405,2],[3412,3],[3416,2],[3476,3],[3480,3],[3498,3],[3506,2],[3509,4],[3581,3],[3592,3],[3596,2],[4010,2]]},"1108":{"position":[[87,1]]},"1119":{"position":[[132,2],[184,13]]},"1121":{"position":[[186,1]]},"1126":{"position":[[1564,3],[1628,3],[1799,3]]},"1140":{"position":[[22,20]]},"1150":{"position":[[404,2],[407,2],[2233,2],[2288,2],[2321,2],[2437,2]]},"1181":{"position":[[961,3],[1243,4],[1382,4]]},"1236":{"position":[[1669,2]]},"1251":{"position":[[124,3],[399,3],[815,3],[950,3],[1102,3]]},"1255":{"position":[[952,1]]},"1267":{"position":[[321,1],[816,12]]},"1294":{"position":[[0,30],[409,2],[441,5],[521,2],[555,3],[652,3],[663,3]]},"1298":{"position":[[100,3],[269,3],[480,3]]},"1321":{"position":[[889,2]]},"1332":{"position":[[20,1],[25,13],[93,1],[263,37]]},"1347":{"position":[[134,16]]},"1354":{"position":[[35,7]]},"1356":{"position":[[0,2]]},"1358":{"position":[[0,2]]},"1362":{"position":[[70,2],[190,2]]},"1364":{"position":[[84,2]]},"1366":{"position":[[91,2]]},"1372":{"position":[[100,2]]},"1379":{"position":[[0,2]]},"1381":{"position":[[0,2]]},"1392":{"position":[[46,1]]}}}],["1)&&(countout(1)==n",{"_index":797,"t":{"866":{"position":[[1625,19]]}}}],["1),indegree(0),outdegree(0",{"_index":354,"t":{"826":{"position":[[429,27]]},"866":{"position":[[304,27]]}}}],["1)[1,−1)的索引区间中的元素值都会加1,而对于某次刷漆终点e的下一个索引为e+1的元素值由于−1",{"_index":68,"t":{"719":{"position":[[193,51]]}}}],["1)[\\frac{d(u,v)}{d_0}]^{2n}}\\tag{16}h(u,v)=1+(2​−1)[d0​d(u,v)​]2n1​(16",{"_index":1366,"t":{"926":{"position":[[461,71]]}}}],["1)[\\frac{d_0}{d(u,v)}]^{2n}}\\tag{20}h(u,v)=1+(2​−1)[d(u,v)d0​​]2n1​(20",{"_index":1388,"t":{"928":{"position":[[273,71]]}}}],["1)\\tag{13}s(k)=ceil(sk​×l−1)(13",{"_index":1349,"t":{"920":{"position":[[210,32]]}}}],["1)的每一列复制三次为(3",{"_index":2790,"t":{"1294":{"position":[[1144,14]]}}}],["1)的矩阵与shape为(1",{"_index":2788,"t":{"1294":{"position":[[1105,15]]}}}],["1+max(getheight(t[rt].l),getheight(t[rt].r",{"_index":987,"t":{"871":{"position":[[1017,45]]},"873":{"position":[[727,45]]}}}],["1,0",{"_index":321,"t":{"821":{"position":[[778,4]]}}}],["1,0,1,0,0,1,0",{"_index":319,"t":{"821":{"position":[[727,14]]}}}],["1,0,1,1",{"_index":323,"t":{"821":{"position":[[790,8]]}}}],["1,0,n",{"_index":1016,"t":{"871":{"position":[[1929,5],[1979,5]]},"873":{"position":[[1570,5],[1607,5]]},"875":{"position":[[791,5]]}}}],["1,1,0",{"_index":322,"t":{"821":{"position":[[783,6]]}}}],["1,1,0,1,1",{"_index":324,"t":{"821":{"position":[[799,11]]}}}],["1,l2+1,l2+p2",{"_index":1044,"t":{"875":{"position":[[475,14]]}}}],["1,lb+1,lb+p2",{"_index":978,"t":{"871":{"position":[[508,14]]},"873":{"position":[[377,14]]}}}],["1,lb,lb+p2",{"_index":983,"t":{"871":{"position":[[851,10]]},"873":{"position":[[606,10]]}}}],["1.0",{"_index":298,"t":{"821":{"position":[[454,4]]}}}],["1.51",{"_index":1099,"t":{"879":{"position":[[876,4]]}}}],["1.vector",{"_index":405,"t":{"839":{"position":[[22,8]]}}}],["10",{"_index":25,"t":{"705":{"position":[[196,2]]},"711":{"position":[[142,2],[151,3],[160,3]]},"713":{"position":[[109,2],[118,3],[136,3],[219,2]]},"821":{"position":[[683,3]]},"826":{"position":[[121,3],[287,3]]},"831":{"position":[[144,33]]},"1033":{"position":[[304,2],[797,2],[821,2]]},"1119":{"position":[[335,3]]},"1121":{"position":[[324,3]]},"1150":{"position":[[850,4],[2742,2]]},"1259":{"position":[[303,2],[795,2],[819,2]]},"1294":{"position":[[733,6]]},"1319":{"position":[[229,2]]},"1321":{"position":[[316,2]]}}}],["10,3.141590,\"method",{"_index":335,"t":{"826":{"position":[[38,19]]}}}],["10.multimap",{"_index":420,"t":{"839":{"position":[[567,11]]}}}],["100",{"_index":387,"t":{"831":{"position":[[77,42]]},"868":{"position":[[281,3]]},"895":{"position":[[687,4]]},"1119":{"position":[[325,4],[330,4]]},"1121":{"position":[[314,4],[319,4]]}}}],["1000",{"_index":41,"t":{"711":{"position":[[72,5]]},"1033":{"position":[[86,4],[277,18],[927,4]]},"1259":{"position":[[86,4],[276,18],[924,4]]}}}],["10000",{"_index":1814,"t":{"1033":{"position":[[271,5]]},"1259":{"position":[[270,5]]}}}],["1000000007",{"_index":1026,"t":{"875":{"position":[[154,10]]}}}],["1010",{"_index":692,"t":{"861":{"position":[[390,7],[412,4],[462,4]]}}}],["106",{"_index":1245,"t":{"895":{"position":[[957,4]]}}}],["108",{"_index":2122,"t":{"1104":{"position":[[164,3]]}}}],["10px",{"_index":2758,"t":{"1290":{"position":[[367,5]]}}}],["10的vector,初始化为3",{"_index":97,"t":{"728":{"position":[[24,23]]}}}],["11",{"_index":925,"t":{"868":{"position":[[2726,2]]}}}],["11.hash_set",{"_index":421,"t":{"839":{"position":[[597,11]]}}}],["1111",{"_index":688,"t":{"861":{"position":[[321,6]]}}}],["1125",{"_index":1727,"t":{"1025":{"position":[[195,5],[211,5],[467,5]]},"1251":{"position":[[195,5],[211,5],[467,5]]}}}],["11×1",{"_index":2929,"t":{"1349":{"position":[[150,18]]}}}],["11×1卷积核,每个filter对上一步的featur",{"_index":2130,"t":{"1108":{"position":[[14,28]]}}}],["12",{"_index":301,"t":{"821":{"position":[[474,2]]},"861":{"position":[[381,8]]},"1108":{"position":[[109,2]]},"1294":{"position":[[740,6]]}}}],["12.hash_multiset",{"_index":423,"t":{"839":{"position":[[629,16]]}}}],["120",{"_index":2347,"t":{"1150":{"position":[[780,5]]}}}],["120,210都是30的倍数,由于要找最大的,所以答案是210",{"_index":5,"t":{"703":{"position":[[108,33]]}}}],["13",{"_index":2774,"t":{"1294":{"position":[[747,4],[758,5]]}}}],["13.hash_map",{"_index":424,"t":{"839":{"position":[[666,11]]}}}],["1313×13个grid",{"_index":2961,"t":{"1356":{"position":[[75,12]]}}}],["14",{"_index":2775,"t":{"1294":{"position":[[752,5],[764,4],[775,5]]}}}],["14.hash_multimap",{"_index":425,"t":{"839":{"position":[[698,16]]}}}],["148",{"_index":1260,"t":{"895":{"position":[[1237,8]]}}}],["149",{"_index":1221,"t":{"895":{"position":[[462,8]]}}}],["15",{"_index":2776,"t":{"1294":{"position":[[769,5],[781,4]]}}}],["16",{"_index":2344,"t":{"1150":{"position":[[669,3]]},"1294":{"position":[[786,7]]}}}],["18446744073709551615ull",{"_index":310,"t":{"821":{"position":[[602,24]]}}}],["1?'\\n",{"_index":998,"t":{"871":{"position":[[1324,8]]},"873":{"position":[[1026,8]]}}}],["1\\eta",{"_index":2109,"t":{"1100":{"position":[[545,10]]}}}],["1\\mu_1μ1​和μ2\\mu_2μ2​分别是第一个和第二个高斯分布的均值向量;σ1\\sigma_1σ1​和σ2\\sigma_2σ2​则是它们的协方差矩阵;tr(⋅)\\mathrm{tr}(\\cdot)tr",{"_index":1485,"t":{"967":{"position":[[592,119]]}}}],["1][b,c,1,1]的tensor",{"_index":2972,"t":{"1362":{"position":[[73,43]]}}}],["1][b,c,1,1]的tensor,再送入共享的多层感知机网络进行降维再升维,最后将二者相加再经过sigmoid",{"_index":2976,"t":{"1364":{"position":[[87,72]]}}}],["1][b,c,1,1]的tensor,该tensor",{"_index":2990,"t":{"1372":{"position":[[103,37]]}}}],["1],即reduce了dim=1",{"_index":2495,"t":{"1181":{"position":[[742,19]]}}}],["1_44=fd.img",{"_index":1170,"t":{"881":{"position":[[629,12]]},"895":{"position":[[1685,12]]}}}],["1_44=fd_aug.img",{"_index":1172,"t":{"881":{"position":[[668,16]]},"895":{"position":[[1724,16]]}}}],["1e",{"_index":300,"t":{"821":{"position":[[471,2]]}}}],["1e5",{"_index":314,"t":{"821":{"position":[[677,3]]}}}],["1e9",{"_index":316,"t":{"821":{"position":[[693,3]]},"1002":{"position":[[1635,4]]},"1236":{"position":[[1635,4]]}}}],["1k−1",{"_index":2263,"t":{"1131":{"position":[[117,4]]}}}],["1}=\\frac{1}{\\sqrt{\\alpha_{t}}}\\left(\\mathbf{x}_{t",{"_index":1674,"t":{"1010":{"position":[[254,50]]}}}],["1}\\sum_{v=0}^{n",{"_index":1340,"t":{"908":{"position":[[1430,15]]}}}],["1}\\sum_{y=0}^{n",{"_index":1336,"t":{"908":{"position":[[1219,15]]}}}],["1}a−1",{"_index":2905,"t":{"1337":{"position":[[122,5]]},"1400":{"position":[[122,5]]}}}],["1}f(u)e^{j\\frac{2\\pi",{"_index":1333,"t":{"908":{"position":[[1074,20]]}}}],["1}f(u,v)e^{j2\\pi",{"_index":1341,"t":{"908":{"position":[[1446,16]]}}}],["1}f(x)e",{"_index":1329,"t":{"908":{"position":[[938,9]]}}}],["1}f(x,y)e",{"_index":1337,"t":{"908":{"position":[[1235,11]]}}}],["1}key0,...,keyn−1,query0,...,queryn−1query^{0",{"_index":1979,"t":{"1057":{"position":[[142,47]]}}}],["1}query0,...,queryn−1以及value0,...,valuen−1value^{0",{"_index":1981,"t":{"1057":{"position":[[204,52]]}}}],["1}value0,...,valuen−1",{"_index":1983,"t":{"1057":{"position":[[271,22]]}}}],["1}xt−1​代表当前步骤即将输出的降噪后的图像,ϵθ\\epsilon_\\thetaϵθ​代表nois",{"_index":1679,"t":{"1010":{"position":[[539,52]]}}}],["1×11",{"_index":2129,"t":{"1108":{"position":[[0,6]]},"1349":{"position":[[130,12]]}}}],["1×1×3×4=12(3)1",{"_index":2131,"t":{"1108":{"position":[[65,14]]}}}],["1ηλ<1",{"_index":2110,"t":{"1100":{"position":[[566,15]]}}}],["1−1。这样在所有输入结束后的计算前缀和阶段,在每一个值为[1,−1)[1",{"_index":67,"t":{"719":{"position":[[153,38]]}}}],["1−1加上之前元素所累积的1",{"_index":70,"t":{"719":{"position":[[261,42]]}}}],["1−1而抵消影响(自身值为−1",{"_index":69,"t":{"719":{"position":[[245,15]]}}}],["1−σ)(2",{"_index":2151,"t":{"1119":{"position":[[160,8]]}}}],["1−σ)(2)\\frac{{\\rm",{"_index":2146,"t":{"1119":{"position":[[77,18]]}}}],["1个filter,其中包含3个kernel。每个kernel分别对输入图像的3",{"_index":2124,"t":{"1106":{"position":[[0,55]]}}}],["1,即n0",{"_index":2900,"t":{"1332":{"position":[[80,5]]}}}],["1:a为(4,5)的二维数组,b为(4,1)的二维数组,其中一方维度为1",{"_index":2763,"t":{"1294":{"position":[[141,55]]}}}],["2",{"_index":125,"t":{"736":{"position":[[99,2]]},"742":{"position":[[188,18]]},"839":{"position":[[207,4]]},"864":{"position":[[1808,3],[2199,3]]},"868":{"position":[[163,1]]},"922":{"position":[[262,1],[264,1],[266,1],[300,1],[308,1],[316,1]]},"1031":{"position":[[1010,1]]},"1039":{"position":[[275,23]]},"1055":{"position":[[181,2],[187,3],[979,2],[3228,2],[3234,3],[3563,2]]},"1126":{"position":[[1657,3],[1840,3]]},"1157":{"position":[[474,20]]},"1181":{"position":[[976,2],[979,2],[1060,2],[1229,2],[1240,2],[1340,2],[1379,2]]},"1257":{"position":[[1010,1]]},"1267":{"position":[[475,1],[837,23]]},"1294":{"position":[[447,6],[559,5],[656,4],[667,3],[678,3]]},"1298":{"position":[[104,2],[283,3],[484,2]]},"1321":{"position":[[901,2],[946,3]]},"1332":{"position":[[72,1]]},"1345":{"position":[[5,1]]},"1354":{"position":[[786,2]]},"1356":{"position":[[8,2]]},"1358":{"position":[[195,2]]},"1379":{"position":[[44,2]]},"1381":{"position":[[44,2]]}}}],["2)中,当i,ji,ji,j",{"_index":2439,"t":{"1157":{"position":[[426,47]]}}}],["2.2960",{"_index":1826,"t":{"1033":{"position":[[1070,8]]},"1259":{"position":[[1067,8]]}}}],["2.6420",{"_index":1828,"t":{"1033":{"position":[[1090,8]]},"1259":{"position":[[1087,8]]}}}],["2.95.2",{"_index":1230,"t":{"895":{"position":[[658,6]]}}}],["2.list",{"_index":406,"t":{"839":{"position":[[51,6]]}}}],["20",{"_index":844,"t":{"868":{"position":[[354,2]]}}}],["20,\"abc",{"_index":110,"t":{"730":{"position":[[21,11]]}}}],["200",{"_index":1176,"t":{"881":{"position":[[743,3]]},"895":{"position":[[1799,3]]}}}],["2001,2003,2004",{"_index":1086,"t":{"879":{"position":[[682,14]]}}}],["2003",{"_index":1090,"t":{"879":{"position":[[752,5]]}}}],["2004",{"_index":1094,"t":{"879":{"position":[[821,5]]}}}],["201",{"_index":3,"t":{"703":{"position":[[66,14],[142,8]]}}}],["2019",{"_index":1840,"t":{"1033":{"position":[[1704,4]]},"1188":{"position":[[356,5]]},"1259":{"position":[[1701,4]]}}}],["201,210,012,021,102,120",{"_index":4,"t":{"703":{"position":[[81,26]]}}}],["201,让数字随意组合,是否能组合出30的倍数,如果能够组合成30",{"_index":1,"t":{"703":{"position":[[4,59]]}}}],["2020",{"_index":2562,"t":{"1188":{"position":[[491,5]]}}}],["2021",{"_index":2577,"t":{"1188":{"position":[[669,5],[814,5]]}}}],["2021】transform",{"_index":1542,"t":{"981":{"position":[[44,21]]},"1215":{"position":[[44,21]]}}}],["2022发表的diffusionclip使用了diffusion模型代替nada中的stylegan",{"_index":2590,"t":{"1188":{"position":[[952,65]]}}}],["2022的文章few",{"_index":2527,"t":{"1183":{"position":[[68,10]]}}}],["2023",{"_index":2523,"t":{"1183":{"position":[[13,4]]}}}],["20px",{"_index":2756,"t":{"1290":{"position":[[327,5]]}}}],["210",{"_index":6,"t":{"703":{"position":[[151,8]]}}}],["2147483647",{"_index":306,"t":{"821":{"position":[[529,11]]}}}],["256",{"_index":2426,"t":{"1150":{"position":[[2652,3]]}}}],["27",{"_index":2126,"t":{"1106":{"position":[[97,2]]}}}],["28",{"_index":2331,"t":{"1150":{"position":[[410,3],[414,3]]}}}],["2\\left(\\sigma_1\\sigma_2\\right)^{\\frac12}\\right)\\tag{1}fid=∥μ1​−μ2​∥22​+tr(σ1​+σ2​−2(σ1​σ2​)21​)(1",{"_index":1484,"t":{"967":{"position":[[493,98]]}}}],["2型文法(上下文无关语法,cfg",{"_index":197,"t":{"771":{"position":[[0,32]]}}}],["2型文法,又称上下文无关文法(context",{"_index":177,"t":{"761":{"position":[[31,22]]}}}],["2的top",{"_index":3001,"t":{"1392":{"position":[[51,8]]}}}],["2的整数次幂表示,如大多图像为彩色rgb图像,256个灰度级,位深度为8(28=2562^8=25628=256),则对于分辨率为256×256的图像来说,需要256×256×3×8位表示,即每一个像素实际上使用24",{"_index":1292,"t":{"900":{"position":[[284,118]]}}}],["2(stanford",{"_index":2053,"t":{"1088":{"position":[[726,10]]}}}],["2,iter",{"_index":1823,"t":{"1033":{"position":[[978,11],[1518,11]]},"1259":{"position":[[975,11],[1515,11]]}}}],["2,抹除所有置信度更小的其iou超过阈值的bbox",{"_index":2955,"t":{"1354":{"position":[[681,39]]}}}],["3",{"_index":149,"t":{"744":{"position":[[64,2]]},"833":{"position":[[26,2]]},"839":{"position":[[214,5]]},"864":{"position":[[1791,3],[2217,3],[2235,3]]},"1046":{"position":[[631,1],[660,1],[746,1],[772,1]]},"1055":{"position":[[146,3],[990,2],[1004,3],[1196,3],[1200,2],[1234,3],[1238,2],[1270,3],[1274,2],[3193,3],[3574,2],[3588,3],[3760,3],[3764,2],[3798,3],[3802,2],[3834,3],[3838,2]]},"1104":{"position":[[142,1],[151,1]]},"1106":{"position":[[77,1],[93,1]]},"1108":{"position":[[96,1]]},"1126":{"position":[[1561,2],[1568,3],[1796,2],[1803,3]]},"1181":{"position":[[118,2],[157,2],[287,3],[505,2],[508,2],[511,4],[520,3],[553,2],[591,2],[596,3],[600,2],[603,2],[868,2],[1063,3],[1232,3],[1236,3],[1343,4]]},"1290":{"position":[[88,3]]},"1294":{"position":[[364,3],[368,3],[402,3],[406,2],[454,6],[517,3],[524,2],[565,5],[671,4],[682,3],[1182,12]]},"1298":{"position":[[107,2],[297,3],[487,2]]},"1356":{"position":[[19,2]]},"1358":{"position":[[232,2]]}}}],["3)(3,3),因此每个权重矩阵的形状应该是(4,3)(4",{"_index":1897,"t":{"1055":{"position":[[352,30]]}}}],["3)(4,3)。为了统一性分析,计key,query以及value各向量维度为numnumnum",{"_index":1898,"t":{"1055":{"position":[[383,49]]}}}],["3)中的a,ba,ba,b可缩小范围,并不用来实现全连接,此时a,ba,ba,b代表着卷积核的感受野,即kernel",{"_index":2442,"t":{"1157":{"position":[[698,97]]}}}],["3)的每一行复制三次为(3",{"_index":2792,"t":{"1294":{"position":[[1167,14]]}}}],["3)的矩阵相加的情况,此时进行广播,将(3",{"_index":2789,"t":{"1294":{"position":[[1121,22]]}}}],["3),将(1",{"_index":2791,"t":{"1294":{"position":[[1159,7]]}}}],["3.14159);//开辟一个存放单精度数的空间,并指定该实数的初值为//3.14159,将返回的该空间的地址赋给指针变量p",{"_index":390,"t":{"831":{"position":[[197,63]]}}}],["3.141590",{"_index":339,"t":{"826":{"position":[[139,9]]}}}],["3.dequ",{"_index":407,"t":{"839":{"position":[[77,7]]}}}],["30",{"_index":27,"t":{"705":{"position":[[225,2]]}}}],["300",{"_index":1824,"t":{"1033":{"position":[[992,3],[1048,3],[1532,3],[1588,3]]},"1259":{"position":[[989,3],[1045,3],[1529,3],[1585,3]]}}}],["300000",{"_index":1178,"t":{"881":{"position":[[770,6]]},"895":{"position":[[1826,6]]}}}],["30]的tensor",{"_index":2950,"t":{"1354":{"position":[[454,17]]}}}],["30]的tensor(包含所有预测框的坐标、置信度和类别结果),通过解析输出的tensor",{"_index":2936,"t":{"1354":{"position":[[100,51]]}}}],["32",{"_index":682,"t":{"861":{"position":[[213,3]]}}}],["320",{"_index":1726,"t":{"1025":{"position":[[190,4],[206,4],[462,4],[478,4]]},"1251":{"position":[[190,4],[206,4],[462,4],[478,4]]}}}],["32,iter",{"_index":1825,"t":{"1033":{"position":[[1033,12],[1573,12]]},"1259":{"position":[[1030,12],[1570,12]]}}}],["33×3卷积核,padding=1,stride=1padding=1",{"_index":2117,"t":{"1102":{"position":[[101,36]]}}}],["33×3卷积的消融实验发现,7×77",{"_index":2982,"t":{"1368":{"position":[[96,18]]}}}],["35deg",{"_index":2750,"t":{"1290":{"position":[[253,6]]}}}],["3][5,5,3",{"_index":2112,"t":{"1102":{"position":[[27,12]]}}}],["3]图像,输出[7",{"_index":2935,"t":{"1354":{"position":[[86,10]]}}}],["3×33",{"_index":2115,"t":{"1102":{"position":[[87,6]]}}}],["3×3×3×4=108(1)3",{"_index":2121,"t":{"1104":{"position":[[119,15]]}}}],["3×3××3=27(2)3",{"_index":2125,"t":{"1106":{"position":[[56,13]]}}}],["3个权重向量做乘法得到3个新的向量,分别为key,query以及value。在本例中将新的向量维度设为3,由于输出的k、q、v矩阵大小均为(3,3)(3",{"_index":1896,"t":{"1055":{"position":[[265,86]]}}}],["3型文法,又称正规文法(regular",{"_index":185,"t":{"761":{"position":[[245,19]]}}}],["3科成绩(假设年级只有a班和b",{"_index":2476,"t":{"1181":{"position":[[211,40]]}}}],["4",{"_index":205,"t":{"793":{"position":[[0,11]]},"861":{"position":[[334,1],[404,1],[454,1]]},"864":{"position":[[1825,3],[2127,3]]},"1055":{"position":[[150,2],[3197,2]]},"1104":{"position":[[160,1]]},"1108":{"position":[[105,1]]},"1181":{"position":[[284,2],[864,3],[1284,4],[1401,4]]},"1294":{"position":[[461,5],[571,3],[686,5]]}}}],["4.stack",{"_index":411,"t":{"839":{"position":[[274,7]]}}}],["40px",{"_index":2759,"t":{"1290":{"position":[[407,4]]}}}],["448",{"_index":2934,"t":{"1354":{"position":[[73,7],[81,4]]}}}],["4696",{"_index":1735,"t":{"1025":{"position":[[483,5]]},"1251":{"position":[[483,5]]}}}],["49406",{"_index":1725,"t":{"1025":{"position":[[181,8],[453,8]]},"1251":{"position":[[181,8],[453,8]]}}}],["49407",{"_index":1729,"t":{"1025":{"position":[[217,6],[489,6]]},"1251":{"position":[[217,6],[489,6]]}}}],["4][5,5,4]的featur",{"_index":2114,"t":{"1102":{"position":[[65,17]]}}}],["4个filter(输出通道为4),每个filter3个kernel(输入通道为3",{"_index":2119,"t":{"1104":{"position":[[0,45]]}}}],["4邻域n4(p)n_4(p)n4​(p)即该像素上下左右的四个点,8邻域n8(p)n_8(p)n8​(p),对角邻域nd(p)n_d(p)nd​(p",{"_index":1293,"t":{"902":{"position":[[0,76]]}}}],["5",{"_index":749,"t":{"864":{"position":[[1842,3],[1859,3],[2145,3],[2163,3],[2181,3]]},"1102":{"position":[[24,2],[62,2]]},"1148":{"position":[[97,40]]},"1150":{"position":[[773,1],[777,2],[2254,2]]},"1181":{"position":[[1088,2],[1270,2],[1281,2],[1359,2],[1398,2]]},"1294":{"position":[[467,6],[575,5]]}}}],["5.queue",{"_index":413,"t":{"839":{"position":[[334,7]]}}}],["5000",{"_index":1820,"t":{"1033":{"position":[[805,4],[871,4]]},"1259":{"position":[[803,4],[869,4]]}}}],["50000",{"_index":1819,"t":{"1033":{"position":[[780,5]]},"1259":{"position":[[778,5]]}}}],["512",{"_index":1743,"t":{"1025":{"position":[[958,4],[1110,4]]},"1029":{"position":[[65,4],[106,4],[174,4],[336,3],[355,3],[466,3]]},"1251":{"position":[[958,4],[1110,4]]},"1255":{"position":[[65,4],[106,4],[174,4],[336,3],[355,3],[466,3]]}}}],["512是clip中的n_dim,token_embed",{"_index":1744,"t":{"1025":{"position":[[963,41],[1115,41]]},"1251":{"position":[[963,41],[1115,41]]}}}],["539",{"_index":1728,"t":{"1025":{"position":[[201,4],[473,4]]},"1251":{"position":[[201,4],[473,4]]}}}],["54、probabilist",{"_index":2615,"t":{"1196":{"position":[[30,16]]}}}],["58",{"_index":1836,"t":{"1033":{"position":[[1617,3]]},"1259":{"position":[[1614,3]]}}}],["586",{"_index":3003,"t":{"1392":{"position":[[71,5]]}}}],["594",{"_index":3002,"t":{"1392":{"position":[[60,8]]}}}],["6",{"_index":751,"t":{"864":{"position":[[1876,3],[1893,3]]},"868":{"position":[[2724,1]]},"881":{"position":[[1044,8]]},"1046":{"position":[[368,1],[573,10],[597,1],[763,1]]},"1150":{"position":[[571,2]]},"1181":{"position":[[405,3],[1091,3],[1273,3],[1277,3],[1362,4]]},"1294":{"position":[[474,6],[581,5],[695,3]]}}}],["6.priority_queu",{"_index":415,"t":{"839":{"position":[[431,16]]}}}],["600",{"_index":2685,"t":{"1211":{"position":[[54,3]]}}}],["6层encod",{"_index":2920,"t":{"1347":{"position":[[16,11]]}}}],["7",{"_index":317,"t":{"821":{"position":[[699,2]]},"864":{"position":[[1910,3],[1927,3]]},"1126":{"position":[[1572,2],[1807,2]]},"1294":{"position":[[481,5],[587,3],[699,3],[710,3]]},"1347":{"position":[[0,15]]},"1354":{"position":[[97,2],[451,2]]}}}],["7.14",{"_index":860,"t":{"868":{"position":[[687,5]]}}}],["7.28",{"_index":897,"t":{"868":{"position":[[1982,5],[2717,6]]}}}],["7.set",{"_index":417,"t":{"839":{"position":[[490,5]]}}}],["700",{"_index":2761,"t":{"1290":{"position":[[428,4]]}}}],["77",{"_index":1721,"t":{"1025":{"position":[[128,3],[403,3],[706,5],[722,2],[745,2],[819,4],[954,3],[1106,3]]},"1251":{"position":[[128,3],[403,3],[706,5],[722,2],[745,2],[819,4],[954,3],[1106,3]]}}}],["77×7",{"_index":2983,"t":{"1368":{"position":[[122,11]]}}}],["77×7卷积与3×33",{"_index":2981,"t":{"1368":{"position":[[77,11]]}}}],["77×7卷积学习特征并降维,最后送入sigmoid",{"_index":2979,"t":{"1366":{"position":[[141,40]]}}}],["77是clip在tokenize方法中缺省的context_length,超过context_length将被truncate,不足的将用0",{"_index":1731,"t":{"1025":{"position":[[232,72],[504,72]]},"1251":{"position":[[232,72],[504,72]]}}}],["7×77",{"_index":2980,"t":{"1368":{"position":[[0,69]]}}}],["7个损失项是最终融合得到的featur",{"_index":2925,"t":{"1347":{"position":[[86,21]]}}}],["8",{"_index":154,"t":{"746":{"position":[[0,10]]},"881":{"position":[[610,1]]},"895":{"position":[[1666,1]]},"1294":{"position":[[487,7],[591,6],[703,4],[714,3],[725,3]]}}}],["8.multiset",{"_index":418,"t":{"839":{"position":[[514,10]]}}}],["84",{"_index":1835,"t":{"1033":{"position":[[1611,2]]},"1150":{"position":[[817,4]]},"1259":{"position":[[1608,2]]}}}],["9",{"_index":44,"t":{"711":{"position":[[108,2]]},"1126":{"position":[[1575,4],[1810,4]]},"1181":{"position":[[570,2],[573,2],[576,4]]},"1294":{"position":[[718,4],[729,3]]}}}],["9.map",{"_index":419,"t":{"839":{"position":[[543,5]]}}}],["9223372036854775807ll",{"_index":308,"t":{"821":{"position":[[559,22]]}}}],["92540646808111039ll",{"_index":312,"t":{"821":{"position":[[640,20]]}}}],["928/929",{"_index":2994,"t":{"1390":{"position":[[10,7],[210,94]]}}}],["9999",{"_index":42,"t":{"711":{"position":[[83,5]]}}}],["9月28日(2023年是9月29日),是研招网全国推免系统开放的日子,也是已经拿到offer",{"_index":2995,"t":{"1390":{"position":[[18,61]]}}}],["__init__(self",{"_index":2326,"t":{"1150":{"position":[[311,15],[447,15]]}}}],["__stack_chk_fail",{"_index":1258,"t":{"895":{"position":[[1124,18]]}}}],["a(10,3",{"_index":96,"t":{"728":{"position":[[12,8]]}}}],["a(4,3),b(3,4",{"_index":106,"t":{"728":{"position":[[249,14]]}}}],["a)=\\frac{p(a\\mid",{"_index":2632,"t":{"1199":{"position":[[683,16]]}}}],["a)=p(b\\mid",{"_index":2646,"t":{"1201":{"position":[[208,10]]},"1203":{"position":[[249,10]]}}}],["a)\\cdot",{"_index":2643,"t":{"1201":{"position":[[116,7],[219,7]]},"1203":{"position":[[161,7],[260,7]]}}}],["a)move(t,a",{"_index":194,"t":{"767":{"position":[[311,11]]}}}],["a)p(bi​∣a",{"_index":2636,"t":{"1199":{"position":[[812,16]]}}}],["a,b",{"_index":2654,"t":{"1201":{"position":[[449,4],[507,4]]}}}],["a,b)\\cdot",{"_index":2640,"t":{"1201":{"position":[[73,9],[98,9]]},"1203":{"position":[[120,9]]}}}],["a,b)p(b,c∣a)=p(b∣a)⋅p(c∣a,b",{"_index":2648,"t":{"1201":{"position":[[235,28]]}}}],["a,ba,ba,b",{"_index":2436,"t":{"1157":{"position":[[200,40]]}}}],["a,const",{"_index":382,"t":{"828":{"position":[[64,7]]}}}],["a.argmax(dim=0",{"_index":2505,"t":{"1181":{"position":[[896,16]]}}}],["a.argmax(dim=1",{"_index":2506,"t":{"1181":{"position":[[913,16]]}}}],["a.assign(b.begin",{"_index":576,"t":{"845":{"position":[[1009,19]]}}}],["a.assign(n",{"_index":574,"t":{"845":{"position":[[970,11]]}}}],["a.back",{"_index":103,"t":{"728":{"position":[[150,9]]},"734":{"position":[[77,9]]},"740":{"position":[[57,9]]},"845":{"position":[[598,8]]}}}],["a.begin",{"_index":559,"t":{"845":{"position":[[209,9]]}}}],["a.clear",{"_index":101,"t":{"728":{"position":[[114,10]]},"732":{"position":[[67,10]]},"740":{"position":[[35,10]]},"845":{"position":[[555,9]]}}}],["a.empti",{"_index":100,"t":{"728":{"position":[[80,10]]},"732":{"position":[[46,10]]},"734":{"position":[[24,10]]},"740":{"position":[[24,10]]},"845":{"position":[[390,9]]}}}],["a.end",{"_index":560,"t":{"845":{"position":[[238,7]]}}}],["a.erase(first",{"_index":571,"t":{"845":{"position":[[882,14]]}}}],["a.erase(it",{"_index":570,"t":{"845":{"position":[[852,11]]}}}],["a.erase({\"1\",1",{"_index":151,"t":{"744":{"position":[[86,17]]}}}],["a.find({\"1\",1",{"_index":152,"t":{"744":{"position":[[104,16]]}}}],["a.first",{"_index":111,"t":{"730":{"position":[[33,10]]}}}],["a.front",{"_index":102,"t":{"728":{"position":[[131,10]]},"734":{"position":[[56,10]]},"740":{"position":[[46,10]]},"845":{"position":[[579,9]]}}}],["a.h)<(b.h",{"_index":384,"t":{"828":{"position":[[89,13]]}}}],["a.insert(it",{"_index":569,"t":{"845":{"position":[[685,12],[727,12],[773,12]]}}}],["a.insert({\"1\",1",{"_index":150,"t":{"744":{"position":[[67,18]]}}}],["a.merge(b",{"_index":567,"t":{"845":{"position":[[646,10]]}}}],["a.pop",{"_index":119,"t":{"734":{"position":[[97,8]]}}}],["a.pop_back",{"_index":105,"t":{"728":{"position":[[196,13]]},"740":{"position":[[82,13]]},"845":{"position":[[326,12]]}}}],["a.pop_front",{"_index":563,"t":{"845":{"position":[[349,13]]}}}],["a.push(1",{"_index":118,"t":{"734":{"position":[[35,10]]}}}],["a.push_back",{"_index":104,"t":{"728":{"position":[[169,14]]},"740":{"position":[[67,14]]}}}],["a.push_back(x",{"_index":562,"t":{"845":{"position":[[299,14]]}}}],["a.push_front(x",{"_index":561,"t":{"845":{"position":[[271,15]]}}}],["a.remove(x",{"_index":572,"t":{"845":{"position":[[941,11]]}}}],["a.resize(n",{"_index":564,"t":{"845":{"position":[[418,11],[485,11]]}}}],["a.second",{"_index":112,"t":{"730":{"position":[[55,11]]}}}],["a.siz",{"_index":98,"t":{"728":{"position":[[48,9]]},"732":{"position":[[21,9]]},"734":{"position":[[14,9]]},"740":{"position":[[14,9]]},"845":{"position":[[373,8]]}}}],["a.swap(v",{"_index":565,"t":{"845":{"position":[[616,9]]}}}],["a<0",{"_index":889,"t":{"868":{"position":[[1630,4]]}}}],["a[\"2",{"_index":148,"t":{"744":{"position":[[55,6]]}}}],["aaa发生后,计算其条件事件bib_ibi​在事件aaa",{"_index":2630,"t":{"1199":{"position":[[568,58]]}}}],["aaa而言,假设有一组互斥且穷尽的条件事件b1,b2,…bnb_{1},b_{2},\\ldot",{"_index":2624,"t":{"1199":{"position":[[256,52]]}}}],["abbr",{"_index":1420,"t":{"957":{"position":[[59,5]]},"973":{"position":[[33,5]]},"1006":{"position":[[585,5]]}}}],["abcdef",{"_index":926,"t":{"868":{"position":[[2729,6]]}}}],["abov",{"_index":1951,"t":{"1055":{"position":[[2446,5]]}}}],["acc",{"_index":2391,"t":{"1150":{"position":[[1765,5],[1777,6],[2498,3],[2524,3]]},"1175":{"position":[[233,63]]}}}],["acc=∑i(predi==yi)len(y)(1)acc",{"_index":2455,"t":{"1175":{"position":[[128,29]]}}}],["accept",{"_index":2047,"t":{"1088":{"position":[[608,44]]}}}],["access",{"_index":2525,"t":{"1183":{"position":[[23,6]]}}}],["accur",{"_index":2268,"t":{"1131":{"position":[[321,8]]}}}],["accuraci",{"_index":2366,"t":{"1150":{"position":[[1254,13]]},"1175":{"position":[[313,8]]}}}],["accuracy(y_hat",{"_index":2369,"t":{"1150":{"position":[[1301,15],[2111,15]]}}}],["accuracy作为数学上的训练方法,即在训练过程中不使用与acc",{"_index":2454,"t":{"1175":{"position":[[47,41]]}}}],["acc并无变化,出现梯度为0",{"_index":2461,"t":{"1175":{"position":[[353,63]]}}}],["acc,但并不会将maxim",{"_index":2453,"t":{"1175":{"position":[[0,46]]}}}],["acmer,一个cv",{"_index":3004,"t":{"1392":{"position":[[77,33]]}}}],["aco",{"_index":297,"t":{"821":{"position":[[448,5]]}}}],["action=report",{"_index":1191,"t":{"881":{"position":[[1010,13]]},"895":{"position":[[2066,13]]}}}],["activ",{"_index":1690,"t":{"1015":{"position":[[37,8]]},"1241":{"position":[[37,8]]}}}],["activation=\"fused_lrelu",{"_index":1773,"t":{"1029":{"position":[[693,24]]},"1255":{"position":[[694,24]]}}}],["acw",{"_index":114,"t":{"732":{"position":[[11,9]]}}}],["adain",{"_index":1796,"t":{"1031":{"position":[[856,5]]},"1257":{"position":[[856,5]]}}}],["adapt",{"_index":1685,"t":{"1012":{"position":[[58,10]]},"1031":{"position":[[640,8],[862,9]]},"1183":{"position":[[101,8]]},"1185":{"position":[[158,10]]},"1238":{"position":[[58,10]]},"1257":{"position":[[640,8],[862,9]]}}}],["adaption的任务是使在大规模源域图片上训练的生成模型适应到数据有限的目标域中,根据目标域训练资料的大小可以分为few",{"_index":2542,"t":{"1188":{"position":[[17,61]]}}}],["addedge(int",{"_index":371,"t":{"826":{"position":[[787,11]]},"864":{"position":[[466,11]]},"866":{"position":[[662,11]]}}}],["adio",{"_index":1076,"t":{"879":{"position":[[394,6],[1606,6]]}}}],["adjacent_find",{"_index":431,"t":{"841":{"position":[[62,13]]}}}],["adjacent)的等价(ident",{"_index":432,"t":{"841":{"position":[[76,32]]}}}],["adjlist",{"_index":857,"t":{"868":{"position":[[636,7]]}}}],["adjlist[max_vertex_num",{"_index":854,"t":{"868":{"position":[[555,24]]}}}],["adjust",{"_index":2682,"t":{"1209":{"position":[[80,6]]}}}],["adjv",{"_index":849,"t":{"868":{"position":[[418,5],[2605,6]]}}}],["adjv=b;p",{"_index":893,"t":{"868":{"position":[[1723,9]]}}}],["adjv]==0",{"_index":920,"t":{"868":{"position":[[2577,10]]}}}],["adversari",{"_index":1987,"t":{"1061":{"position":[[22,12]]},"1070":{"position":[[15,11]]},"1188":{"position":[[325,11]]}}}],["advis",{"_index":1941,"t":{"1055":{"position":[[2027,8],[4186,8]]}}}],["aggreg",{"_index":1889,"t":{"1051":{"position":[[283,10]]}}}],["ai",{"_index":2291,"t":{"1140":{"position":[[0,21]]},"1183":{"position":[[41,2]]}}}],["aia^iai在计算注意力分数时,只将aia^iai的query向量与a1a^1a1至aia^{i}ai的iii个key向量做dot",{"_index":1604,"t":{"994":{"position":[[1192,112]]},"1228":{"position":[[1192,112]]}}}],["ai论文】yolo",{"_index":2931,"t":{"1354":{"position":[[4,17]]}}}],["alexei",{"_index":2568,"t":{"1188":{"position":[[538,6]]}}}],["alexnet是指2012年由alex",{"_index":2133,"t":{"1111":{"position":[[0,19]]}}}],["algorithm",{"_index":254,"t":{"817":{"position":[[42,9]]},"866":{"position":[[9,11]]}}}],["algraph",{"_index":859,"t":{"868":{"position":[[650,9],[2816,7]]}}}],["align",{"_index":1860,"t":{"1036":{"position":[[412,15],[548,14]]},"1183":{"position":[[141,9]]},"1262":{"position":[[412,15],[548,14]]}}}],["all_ofc++11",{"_index":433,"t":{"841":{"position":[[109,11]]}}}],["all_proxi",{"_index":2856,"t":{"1309":{"position":[[228,9]]}}}],["all_proxy=socks5://127.0.0.1:7890",{"_index":2851,"t":{"1309":{"position":[[59,33]]}}}],["allow",{"_index":1884,"t":{"1051":{"position":[[146,6]]}}}],["alpha",{"_index":163,"t":{"757":{"position":[[0,66],[116,6]]},"761":{"position":[[160,6]]}}}],["alpha,\\spac",{"_index":166,"t":{"757":{"position":[[102,13]]}}}],["alpha_{t}}{\\sqrt{1",{"_index":1676,"t":{"1010":{"position":[[313,19]]}}}],["alt",{"_index":231,"t":{"812":{"position":[[105,3],[125,3]]}}}],["analysi",{"_index":2059,"t":{"1088":{"position":[[926,9]]}}}],["anchor",{"_index":2959,"t":{"1356":{"position":[[22,7]]}}}],["anchor宽高比的聚类,聚类数越大,覆盖的i",{"_index":2965,"t":{"1356":{"position":[[150,43]]}}}],["anchor是通过k",{"_index":2964,"t":{"1356":{"position":[[115,10]]}}}],["anim",{"_index":2387,"t":{"1150":{"position":[[1674,8]]}}}],["animator.add(epoch",{"_index":2415,"t":{"1150":{"position":[[2291,18],[2416,18]]}}}],["announcementbar",{"_index":2741,"t":{"1290":{"position":[[48,16],[71,16]]}}}],["answer",{"_index":2036,"t":{"1088":{"position":[[374,9],[1186,10]]}}}],["any_ofc++11",{"_index":434,"t":{"841":{"position":[[144,11]]}}}],["append(),push_back",{"_index":599,"t":{"847":{"position":[[728,20]]}}}],["applic",{"_index":2827,"t":{"1305":{"position":[[41,11],[88,11]]}}}],["appropri",{"_index":1905,"t":{"1055":{"position":[[533,11]]}}}],["ar",{"_index":1425,"t":{"957":{"position":[[205,120]]}}}],["architectur",{"_index":2700,"t":{"1211":{"position":[[354,12]]}}}],["arch系用户通过以下命令即可完成bochs和nasm",{"_index":1211,"t":{"893":{"position":[[55,31]]}}}],["arcnod",{"_index":848,"t":{"868":{"position":[[405,8],[460,7],[475,9],[528,7],[1187,7],[1661,8],[2286,7]]}}}],["arcnum",{"_index":863,"t":{"868":{"position":[[782,7],[1402,7],[1517,8]]}}}],["argmax",{"_index":1750,"t":{"1027":{"position":[[213,6]]},"1181":{"position":[[612,12],[932,6]]},"1253":{"position":[[213,6]]}}}],["argmin",{"_index":2491,"t":{"1181":{"position":[[627,6]]}}}],["args.mix",{"_index":1755,"t":{"1029":{"position":[[70,12]]},"1255":{"position":[[70,12]]}}}],["args.source_class",{"_index":1714,"t":{"1023":{"position":[[96,18]]},"1249":{"position":[[96,18]]}}}],["args.target_class",{"_index":1716,"t":{"1023":{"position":[[155,18]]},"1249":{"position":[[155,18]]}}}],["argument",{"_index":2691,"t":{"1211":{"position":[[201,10]]}}}],["arm",{"_index":1422,"t":{"957":{"position":[[81,6]]}}}],["arm(autoregress",{"_index":1423,"t":{"957":{"position":[[88,18]]}}}],["arr_size(a",{"_index":285,"t":{"821":{"position":[[214,11]]}}}],["arxiv",{"_index":1541,"t":{"981":{"position":[[5,8]]},"1177":{"position":[[5,8]]},"1196":{"position":[[5,8]]},"1215":{"position":[[5,8]]}}}],["ar模型与非自回归nar",{"_index":1418,"t":{"955":{"position":[[0,73]]}}}],["ar)的方法逐token",{"_index":1421,"t":{"957":{"position":[[65,15]]}}}],["asciicod",{"_index":1070,"t":{"879":{"position":[[272,9],[481,11],[1484,9],[1696,11]]}}}],["asciicode=='d')//ctrl+d",{"_index":1074,"t":{"879":{"position":[[350,23],[1562,23]]}}}],["assert.h",{"_index":238,"t":{"815":{"position":[[21,8]]}}}],["assign",{"_index":598,"t":{"847":{"position":[[690,10]]},"1213":{"position":[[17,10]]}}}],["attent",{"_index":1597,"t":{"994":{"position":[[800,11],[978,9],[1429,11]]},"1002":{"position":[[32,15]]},"1043":{"position":[[29,9],[50,17]]},"1051":{"position":[[7,9],[126,9],[239,9],[252,14],[320,9],[401,34]]},"1055":{"position":[[1489,9],[1659,9],[3043,9],[3860,9],[3955,9]]},"1057":{"position":[[294,12]]},"1059":{"position":[[53,19]]},"1228":{"position":[[800,11],[978,9],[1429,11]]},"1236":{"position":[[32,15]]}}}],["attention(q,k,v)=softmax(qktdk)v(1)attention(q,k,v)=\\textit{softmax}(\\frac{qk^t}{\\sqrt{d_k}})v",{"_index":1968,"t":{"1055":{"position":[[2873,94]]}}}],["attention》的讨论环节:teach",{"_index":1601,"t":{"994":{"position":[[923,23]]},"1228":{"position":[[923,23]]}}}],["attention之后,通过residu",{"_index":1572,"t":{"990":{"position":[[67,22]]},"1224":{"position":[[67,22]]}}}],["attention可以看作是复杂化的cnn,cnn只能在感受野范围内考虑上下文信息,而self",{"_index":1985,"t":{"1059":{"position":[[5,47]]}}}],["attention和mask",{"_index":1624,"t":{"1002":{"position":[[15,16]]},"1236":{"position":[[15,16]]}}}],["attention应运而生,允许每个位置关注到序列中地所有其他位置。这种全局关联性质使得transform",{"_index":1877,"t":{"1048":{"position":[[475,71]]}}}],["attention接受任意向量数量的向量序列的输入,输出每一个向量所有向量(包括自身)的注意力分数。这使得self",{"_index":1890,"t":{"1051":{"position":[[343,57]]}}}],["attention的计算中应用一个掩码(mask",{"_index":1603,"t":{"994":{"position":[[1111,80]]},"1228":{"position":[[1111,80]]}}}],["attention的输入是向量序列,其向量数量是任意的,计算每个输入向量之间的注意力分数。在本例中输入向量个数为3,同时为了统一性分析,计输入向量个数为batchbatchbatch",{"_index":1892,"t":{"1055":{"position":[[11,93]]}}}],["attention的输入是时间步sss之前decod",{"_index":1608,"t":{"994":{"position":[[1373,43]]},"1228":{"position":[[1373,43]]}}}],["attention的输出向量维度与valu",{"_index":1948,"t":{"1055":{"position":[[2318,48]]}}}],["attention,则对每个输入向量生成对应的key,query和value后,再次使用nnn个可学习的权重矩阵生成nnn个不同的key0,...,keyn−1key^{0",{"_index":1977,"t":{"1057":{"position":[[41,88]]}}}],["at)以及non",{"_index":1579,"t":{"992":{"position":[[56,8]]},"1226":{"position":[[56,8]]}}}],["audio",{"_index":2698,"t":{"1211":{"position":[[322,5]]}}}],["augment",{"_index":2141,"t":{"1115":{"position":[[157,12]]},"1188":{"position":[[778,12]]}}}],["augustu",{"_index":2549,"t":{"1188":{"position":[[250,8]]}}}],["auto",{"_index":1525,"t":{"973":{"position":[[19,4]]},"1006":{"position":[[571,4]]},"1321":{"position":[[1013,5]]}}}],["autoregressive(非自回归,abbr",{"_index":1580,"t":{"992":{"position":[[65,25]]},"1226":{"position":[[65,25]]}}}],["averag",{"_index":2267,"t":{"1131":{"position":[[294,8]]}}}],["avoid",{"_index":1966,"t":{"1055":{"position":[[2771,5]]}}}],["a→b→ca\\to",{"_index":2665,"t":{"1203":{"position":[[0,42]]}}}],["a∈vn",{"_index":180,"t":{"761":{"position":[[109,5],[222,6]]}}}],["a与另一个list",{"_index":566,"t":{"845":{"position":[[629,16]]}}}],["a中与范围b",{"_index":439,"t":{"841":{"position":[[271,23]]}}}],["a中所有值为x",{"_index":573,"t":{"845":{"position":[[956,13]]}}}],["a中查找第一个与范围b",{"_index":448,"t":{"841":{"position":[[490,23]]}}}],["a中的所有元素替换成n个val",{"_index":575,"t":{"845":{"position":[[990,18]]}}}],["a中第一个与范围b",{"_index":441,"t":{"841":{"position":[[309,26]]}}}],["a为(3,4,5)的三维数据,b为(4,5)的二维数组。由于a和b的后缘维度都为(4,5),所以可以进行广播。同理,当a为(3,4)的二维数组,b为(4,)的数组,他们的后缘维度都是4",{"_index":2762,"t":{"1294":{"position":[[31,109]]}}}],["a变成b",{"_index":578,"t":{"845":{"position":[[1038,7]]}}}],["a是a班4位同学3科成绩,b是这4名同学其他3门课的成绩,拼接后代表这4名同学的6",{"_index":2481,"t":{"1181":{"position":[[325,47]]}}}],["a班4位同学,每位同学3",{"_index":2472,"t":{"1181":{"position":[[123,15]]}}}],["a而言,假设有一组互斥且穷尽的条件事件b,则事件a的概率等于事件a",{"_index":2889,"t":{"1329":{"position":[[194,65]]},"1339":{"position":[[194,65]]}}}],["a,若存在方阵b使得ab=ba=单位方阵i,则方阵b为方阵a的逆矩阵,记为a−1a",{"_index":2904,"t":{"1337":{"position":[[69,52]]},"1400":{"position":[[69,52]]}}}],["b",{"_index":54,"t":{"717":{"position":[[94,2],[122,3],[136,2]]},"728":{"position":[[271,2]]},"831":{"position":[[125,2]]},"864":{"position":[[89,2],[99,3],[111,3]]},"866":{"position":[[91,2],[101,3],[113,3]]},"868":{"position":[[1601,1],[2780,1],[2787,2],[2892,2]]},"933":{"position":[[0,26]]},"948":{"position":[[893,2]]},"1098":{"position":[[48,2]]},"1100":{"position":[[69,2],[250,2]]},"1138":{"position":[[574,1],[628,1],[632,1]]},"1181":{"position":[[139,1],[198,3],[312,3],[516,1],[1067,1],[1106,2],[1248,1],[1300,2]]},"1199":{"position":[[79,1]]},"1298":{"position":[[124,4],[287,4],[496,4]]},"1329":{"position":[[550,1],[613,1],[664,1]]},"1339":{"position":[[550,1],[613,1],[664,1]]}}}],["b)=\\frac{p(a,b)}{p(b)}p(a∣b)=p(b)p(a,b",{"_index":2621,"t":{"1199":{"position":[[135,40]]}}}],["b)\\cdot",{"_index":2669,"t":{"1203":{"position":[[145,7]]}}}],["b)p(a∣b",{"_index":2619,"t":{"1199":{"position":[[63,15]]}}}],["b)p(b,c∣a)=p(b∣a)⋅p(c∣b",{"_index":2672,"t":{"1203":{"position":[[276,24]]}}}],["b){return",{"_index":383,"t":{"828":{"position":[[79,9]]}}}],["b)}{\\partial",{"_index":2100,"t":{"1100":{"position":[[319,12]]}}}],["b,a",{"_index":927,"t":{"868":{"position":[[2736,3]]}}}],["b,c,h,w][b",{"_index":2970,"t":{"1362":{"position":[[0,23],[117,29]]},"1364":{"position":[[0,17]]},"1366":{"position":[[0,17]]}}}],["b,d",{"_index":928,"t":{"868":{"position":[[2740,3]]}}}],["b.end",{"_index":577,"t":{"845":{"position":[[1029,8]]}}}],["b<0",{"_index":890,"t":{"868":{"position":[[1638,4]]}}}],["b[i],e[i](0<=b[i]<=e[i]<=200000",{"_index":48,"t":{"715":{"position":[[104,56]]}}}],["b\\to",{"_index":2666,"t":{"1203":{"position":[[43,4]]}}}],["b_i)\\cdot",{"_index":2627,"t":{"1199":{"position":[[437,9],[700,9]]}}}],["b_i)p(a∣bi",{"_index":2638,"t":{"1199":{"position":[[844,16]]}}}],["b_t)}{\\partial",{"_index":2106,"t":{"1100":{"position":[[481,14]]}}}],["b_{n}b1​,b2​,…bn​构成一个完备事件组,则事件aaa的概率等于事件aaa在每个条件事件bib_ibi",{"_index":2625,"t":{"1199":{"position":[[309,79]]}}}],["background",{"_index":2748,"t":{"1290":{"position":[[213,11]]}}}],["bao",{"_index":2583,"t":{"1188":{"position":[[718,3]]}}}],["bar{\\alpha}_{t}}\\boldsymbol{\\epsilon},t)\\right\\|^{2}\\tag{1}∇θ​∥∥​ϵ−ϵθ​(αˉt​​x0​+1−αˉt​​ϵ,t)∥∥​2(1",{"_index":1662,"t":{"1008":{"position":[[345,99]]}}}],["bar{\\alpha}_{t}}}\\boldsymbol{\\epsilon}_{\\theta}(\\mathbf{x}_{t},t)\\right)+\\sigma_{t}\\mathbf{z}\\tag{2}xt−1​=αt​​1​(xt​−1−αˉt​​1−αt​​ϵθ​(xt​,t))+σt​z(2",{"_index":1677,"t":{"1010":{"position":[[333,150]]}}}],["base",{"_index":831,"t":{"868":{"position":[[45,4],[58,4]]},"1088":{"position":[[1171,5]]}}}],["based的文字生成模型有很多,如gpt模型,大多使用自回归(autoregress",{"_index":1419,"t":{"957":{"position":[[12,46]]}}}],["baselin",{"_index":2560,"t":{"1188":{"position":[[441,8]]}}}],["bash的配置文件:~/.bashrc",{"_index":2861,"t":{"1311":{"position":[[55,19]]}}}],["basic",{"_index":2254,"t":{"1129":{"position":[[108,5]]}}}],["batch",{"_index":2400,"t":{"1150":{"position":[[1910,6],[2224,6],[2265,5],[2312,6]]}}}],["batch)(batch,batch",{"_index":1925,"t":{"1055":{"position":[[1449,20]]}}}],["batch_siz",{"_index":1757,"t":{"1029":{"position":[[93,12],[161,12]]},"1033":{"position":[[965,10],[1020,10],[1505,10],[1560,10]]},"1150":{"position":[[2639,10]]},"1255":{"position":[[93,12],[161,12]]},"1259":{"position":[[962,10],[1017,10],[1502,10],[1557,10]]},"1300":{"position":[[192,11]]}}}],["batch_size,比如torch.nn.linear的输入(batch_size,in_features),torch.nn.conv2d的输入(batch_s",{"_index":2806,"t":{"1300":{"position":[[44,119]]}}}],["batchbatchbatch个向量计算得到的注意力分数,都要与其对应的value向量相乘,计算加权的注意力分数。最终的注意力分数矩阵的形状应为(batch,num)(batch",{"_index":1937,"t":{"1055":{"position":[[1831,100]]}}}],["batch中有大量样本均存在这种情况,此时acc有显著提升而网络的权重的更新极小,此时,与acc有关的loss",{"_index":2465,"t":{"1175":{"position":[[489,129]]}}}],["batteri",{"_index":2839,"t":{"1305":{"position":[[201,7]]}}}],["bbb",{"_index":2090,"t":{"1098":{"position":[[181,10]]},"1138":{"position":[[178,38]]}}}],["bbox与其他所有置信度更小的bbox做iou判断,若iou大于设置的阈值,则抹除置信度小的bbox",{"_index":2954,"t":{"1354":{"position":[[621,59]]}}}],["bbox包含(x",{"_index":2944,"t":{"1354":{"position":[[290,11]]}}}],["bbox的置信度与其父grid",{"_index":2953,"t":{"1354":{"position":[[549,17]]}}}],["bbox都会在loss",{"_index":2956,"t":{"1354":{"position":[[740,19]]}}}],["be",{"_index":1218,"t":{"895":{"position":[[330,5]]},"1131":{"position":[[209,5]]}}}],["becom",{"_index":1965,"t":{"1055":{"position":[[2706,7]]}}}],["befor",{"_index":1911,"t":{"1055":{"position":[[647,6]]}}}],["beg,end]内所有字符作为字符串",{"_index":597,"t":{"847":{"position":[[649,26]]}}}],["begin",{"_index":63,"t":{"717":{"position":[[303,6],[337,7],[357,6],[406,6]]},"994":{"position":[[221,8]]},"1228":{"position":[[221,8]]}}}],["begin(),end",{"_index":614,"t":{"847":{"position":[[1135,13]]}}}],["begin[i]+1",{"_index":51,"t":{"715":{"position":[[289,37]]}}}],["begin[i],end[i](0<=begin[i]<=end[i]<=200000",{"_index":49,"t":{"715":{"position":[[190,66]]}}}],["begin{cas",{"_index":2159,"t":{"1121":{"position":[[24,13],[160,13]]}}}],["begin符号又叫start符号或sos符号(start",{"_index":1591,"t":{"994":{"position":[[520,28]]},"1228":{"position":[[520,28]]}}}],["begin符号是在lexicon中添加的特殊符号,用来表示decoder生成的开始。begin符号通常被嵌入到一个低维的连续向量空间中,这个向量空间是通过嵌入层(embed",{"_index":1589,"t":{"994":{"position":[[394,90]]},"1228":{"position":[[394,90]]}}}],["behind",{"_index":2256,"t":{"1129":{"position":[[119,6]]}}}],["below",{"_index":2702,"t":{"1211":{"position":[[397,6]]}}}],["benchmark",{"_index":2028,"t":{"1088":{"position":[[86,10],[215,9],[541,40]]}}}],["benchmark:fid与clip",{"_index":1473,"t":{"967":{"position":[[0,37]]}}}],["bert",{"_index":2010,"t":{"1082":{"position":[[0,18]]},"1084":{"position":[[194,4],[237,4],[281,4],[349,4]]},"1088":{"position":[[0,11],[936,86]]},"1090":{"position":[[317,4],[374,4],[490,7],[586,7]]}}}],["bert也可以用来完成截取式问答任务,提供一篇文章以及问题,要求输出两个integ",{"_index":2063,"t":{"1088":{"position":[[1197,66]]}}}],["bert在大规模语料库(corpus)上预训练后,输出的向量表示了对应输入token的意思,特别地,是考虑了上下文信息的意思。比如,对于水果的苹果已经苹果公司的苹果,bert对一样的苹果有不同的输出。即对一个处在不同上下文信息中的相同词汇,bert有不同的embedding。类似于word",{"_index":2067,"t":{"1090":{"position":[[0,145]]}}}],["bert模型的核心就是通过预训练来学习上下文信息,进而对每个输入token生成相应的向量表示。这个向量表示考虑了上下文信息,所以对于处在不同上下文中的相同词汇,bert会有不同的embed",{"_index":2069,"t":{"1090":{"position":[[202,99]]}}}],["bert模型的自监督性质主要体现在其训练数据并不需要人为标注label,而是通过对输入句子中的部分词汇做mask,将输入数据的部分内容使用speci",{"_index":2017,"t":{"1086":{"position":[[15,76]]}}}],["bert的损失函数主要是mask",{"_index":2020,"t":{"1086":{"position":[[174,18]]}}}],["bert的结构其实是transformer的encoder部分,仅使用encod",{"_index":2011,"t":{"1084":{"position":[[0,49]]}}}],["bert(bidirect",{"_index":2012,"t":{"1084":{"position":[[50,18]]}}}],["best",{"_index":1841,"t":{"1033":{"position":[[1709,4]]},"1259":{"position":[[1706,4]]}}}],["beta",{"_index":174,"t":{"759":{"position":[[43,5],[82,16]]},"761":{"position":[[183,5]]}}}],["beta,\\spac",{"_index":173,"t":{"759":{"position":[[30,12]]},"761":{"position":[[147,12]]}}}],["better",{"_index":2844,"t":{"1305":{"position":[[310,6]]}}}],["between",{"_index":1962,"t":{"1055":{"position":[[2636,7]]}}}],["bfs(int",{"_index":722,"t":{"864":{"position":[[727,7]]},"871":{"position":[[1078,7]]},"873":{"position":[[780,7]]}}}],["bfs(rt",{"_index":1018,"t":{"871":{"position":[[2002,8]]},"873":{"position":[[1617,8]]}}}],["bhpf",{"_index":1386,"t":{"928":{"position":[[197,16]]}}}],["bib_ibi​)推“果”(结果事件aaa",{"_index":2629,"t":{"1199":{"position":[[480,80]]}}}],["big",{"_index":2098,"t":{"1100":{"position":[[291,5]]},"1303":{"position":[[101,3]]}}}],["big(l(w",{"_index":2097,"t":{"1100":{"position":[[240,9]]}}}],["bilinear",{"_index":1344,"t":{"915":{"position":[[8,16]]}}}],["binary_search",{"_index":493,"t":{"841":{"position":[[1908,13]]}}}],["bit",{"_index":259,"t":{"817":{"position":[[152,4]]}}}],["bitbit",{"_index":681,"t":{"861":{"position":[[65,6],[101,6]]}}}],["bits/stdc++.h",{"_index":8,"t":{"705":{"position":[[9,15]]},"711":{"position":[[9,15]]},"717":{"position":[[9,15]]},"1321":{"position":[[50,15]]}}}],["bitset",{"_index":95,"t":{"726":{"position":[[313,9]]},"817":{"position":[[145,6]]},"861":{"position":[[0,10],[26,13]]}}}],["bitset<10000",{"_index":155,"t":{"746":{"position":[[11,13]]}}}],["bitset>n>>m",{"_index":777,"t":{"866":{"position":[[1086,10]]}}}],["cin>>row",{"_index":392,"t":{"833":{"position":[[29,9]]}}}],["cin>>row>>col",{"_index":398,"t":{"835":{"position":[[0,14]]}}}],["cin>>src>>dst",{"_index":781,"t":{"866":{"position":[[1140,14]]}}}],["ci×h×wc_i",{"_index":2297,"t":{"1145":{"position":[[0,12]]}}}],["class",{"_index":2324,"t":{"1150":{"position":[[276,5],[418,5]]}}}],["classifi",{"_index":2289,"t":{"1138":{"position":[[656,10]]},"1209":{"position":[[0,8]]}}}],["clear",{"_index":602,"t":{"847":{"position":[[781,7]]}}}],["clip",{"_index":1488,"t":{"967":{"position":[[912,4],[924,4],[1000,9]]},"1025":{"position":[[588,4],[680,4]]},"1031":{"position":[[1019,4]]},"1193":{"position":[[639,4],[885,4]]},"1251":{"position":[[588,4],[680,4]]},"1257":{"position":[[1019,4]]}}}],["clip_directional_loss",{"_index":1799,"t":{"1031":{"position":[[1033,34]]},"1257":{"position":[[1033,34]]},"1269":{"position":[[338,21]]}}}],["clip_model.token_embedding(source_tokenized_prompts).type(clip_model.dtyp",{"_index":1742,"t":{"1025":{"position":[[872,75]]},"1251":{"position":[[872,75]]}}}],["clip_model.token_embedding(target_tokenized_prompts).type(clip_model.dtyp",{"_index":1746,"t":{"1025":{"position":[[1024,75]]},"1251":{"position":[[1024,75]]}}}],["clock",{"_index":2845,"t":{"1305":{"position":[[324,5]]}}}],["closure(t)\\epsilon",{"_index":195,"t":{"767":{"position":[[323,22]]}}}],["closure(t)ϵ−closure(t",{"_index":196,"t":{"767":{"position":[[347,22]]}}}],["cloud",{"_index":1707,"t":{"1019":{"position":[[39,5]]},"1245":{"position":[[39,5]]}}}],["cnn",{"_index":1874,"t":{"1048":{"position":[[0,21],[22,77]]}}}],["cnn中没有全连接层时,本质上可以接受任意尺寸的输入,但这是狭隘的。若考虑其下游任务以及输出,如fcn(fulli",{"_index":1868,"t":{"1046":{"position":[[126,68]]}}}],["cnn本质上可以接受任意通道数的图像输入,但是其模型效果将会受到极大的影响。以一个使用通道数为3的数据集进行训练的cnn",{"_index":1871,"t":{"1046":{"position":[[280,83]]}}}],["cnn模型的输入向量的形状是固定的,其输出向量的形状也是固定的或可以根据不同的下游任务而唯一确定,即输入形状与下游任务共同确定了一个cnn",{"_index":1867,"t":{"1046":{"position":[[0,84]]}}}],["cnn的权值共享使得模型能够学习到图像中的局部特征,这也是一种对于上下文的假设。相邻位置上的权重共享使得模型能够对局部结构进行建模,这种权重共享使得cnn",{"_index":1875,"t":{"1048":{"position":[[106,175]]}}}],["cnn的设计理念认为:在图像任务中,局部结构通常更为重要,局部连接和权值共享使得cnn更适用于图像处理等任务。但也正是这种设计理念,使得cnn在面临长输入序列时不能很好地综合上下文信息、提取位置信息,因此self",{"_index":1876,"t":{"1048":{"position":[[368,106]]}}}],["cnt",{"_index":939,"t":{"868":{"position":[[2811,4],[2985,6]]}}}],["cntd0​d(u,v)≤d0​​(19",{"_index":1385,"t":{"928":{"position":[[110,58]]}}}],["d_1",{"_index":1380,"t":{"926":{"position":[[1163,5]]}}}],["d_1}&d_0\\leq",{"_index":1378,"t":{"926":{"position":[[1139,12]]}}}],["d_1}&d_1\\leq",{"_index":1395,"t":{"928":{"position":[[655,12]]}}}],["d_1}{d_0",{"_index":1377,"t":{"926":{"position":[[1130,8]]},"928":{"position":[[646,8]]}}}],["d_{kl}(p\\space",{"_index":2224,"t":{"1126":{"position":[[1238,14]]}}}],["d_{kl}(q",{"_index":2206,"t":{"1126":{"position":[[761,8]]}}}],["data",{"_index":612,"t":{"847":{"position":[[1097,6]]},"868":{"position":[[522,5]]},"1115":{"position":[[145,11]]},"1188":{"position":[[773,4]]},"1211":{"position":[[238,4],[453,4],[496,5],[502,4]]}}}],["data_dir",{"_index":2692,"t":{"1211":{"position":[[212,9]]}}}],["data_it",{"_index":2353,"t":{"1150":{"position":[[927,10],[1100,10]]}}}],["dataset",{"_index":2258,"t":{"1129":{"position":[[166,7]]},"1211":{"position":[[13,7],[174,7],[370,7]]}}}],["daveho@cs.umd.edu",{"_index":1089,"t":{"879":{"position":[[716,19]]}}}],["david",{"_index":1087,"t":{"879":{"position":[[697,5]]}}}],["ddpm",{"_index":2617,"t":{"1196":{"position":[[109,8]]}}}],["ddpm论文中的原图来分析ddpm",{"_index":1655,"t":{"1006":{"position":[[854,31]]}}}],["ddpm(denois",{"_index":1534,"t":{"979":{"position":[[137,15]]}}}],["de(p,q)=(x−s)2+(y−t)2(1)d_e(p,q)=\\sqrt{(x",{"_index":1296,"t":{"902":{"position":[[177,41]]}}}],["death",{"_index":1282,"t":{"897":{"position":[[204,6]]}}}],["deathless",{"_index":1281,"t":{"897":{"position":[[194,9]]}}}],["debug",{"_index":1185,"t":{"881":{"position":[[885,9],[980,9],[1002,7]]},"895":{"position":[[1941,9],[2036,9],[2058,7]]}}}],["decod",{"_index":1446,"t":{"965":{"position":[[254,30]]},"969":{"position":[[762,8]]},"998":{"position":[[27,7],[180,18],[251,7],[329,8],[416,7],[467,18],[562,7]]},"1232":{"position":[[27,7],[180,18],[251,7],[329,8],[416,7],[467,18],[562,7]]}}}],["decoder在推理时是一个一个词汇产生的,在产生第iii个词汇时其后续的词汇是未知的,更不用说进行注意力分数的就算了,而在训练过程中使用teach",{"_index":1621,"t":{"1000":{"position":[[215,82]]},"1234":{"position":[[215,82]]}}}],["decoder来说,它的输入是中间产物(即gener",{"_index":1512,"t":{"969":{"position":[[806,39]]}}}],["decoder每一步的输出是一个经过softmax的prob",{"_index":1586,"t":{"994":{"position":[[119,37]]},"1228":{"position":[[119,37]]}}}],["decoder的任务是生成输出,可以根据是否一次性生成输出分为autoregressive(自回归,abbr",{"_index":1578,"t":{"992":{"position":[[0,55]]},"1226":{"position":[[0,55]]}}}],["decoder的整体结构,掩码多头自注意力的输入是添加位置编码之后的decod",{"_index":1602,"t":{"994":{"position":[[988,68]]},"1228":{"position":[[988,68]]}}}],["decoder的生成中,每一个时间步的输出是词汇表中每一个单词经过softmax之后的概率分布。为了保证生成任务可以通过模型自己停止而不是一直重复,我们向decoder的输出中加入end符号的生成,即每一次输出除了词汇表的所有词汇外还有end符号的概率,当end",{"_index":1594,"t":{"994":{"position":[[610,155]]},"1228":{"position":[[610,155]]}}}],["decoder的结构训练生成模型的decod",{"_index":1519,"t":{"969":{"position":[[1134,25]]}}}],["decoder结构,将每一层对应的featur",{"_index":2921,"t":{"1347":{"position":[[28,24]]}}}],["decoder试图在一次操作中生成整个输出序列。这通常通过使用诸如注意力机制等策略来实现,这些策略允许解码器关注输入序列的不同部分,同时生成输出序列的不同部分。nat的优点在于其高效性,因为它不需要保存和更新大量的可能选项。然而,由于它不能利用上下文信息来生成输出,因此其生成的输出质量普遍会低于at",{"_index":1583,"t":{"992":{"position":[[252,158]]},"1226":{"position":[[252,158]]}}}],["decoder输出,使用3x3卷积以及双线性插值上采样到原始分辨率得到该层的特征图,且卷积核的个数为1,输出的featur",{"_index":2916,"t":{"1345":{"position":[[214,62]]}}}],["decoder阶段,每个block",{"_index":2914,"t":{"1345":{"position":[[80,32]]}}}],["decoder需要逐步生成输出,并将之前自身输出的所有词汇经过嵌入层后生成token",{"_index":1582,"t":{"992":{"position":[[101,150]]},"1226":{"position":[[101,150]]}}}],["decoder)在每个时间步(或每个解码步骤)的输入都来自于前一个时间步自身的输出以及编码器(encoder)的输出。特别地,首个时间步的输入是begin符号以及编码器(encoder)的输出,在每个后续的时间步,解码器的输入会是前一个时间步自身的输出以及编码器(encod",{"_index":1588,"t":{"994":{"position":[[230,158]]},"1228":{"position":[[230,158]]}}}],["decoder)都是通过最小化整体损失来进行联合训练的。这是因为整体模型需要协同工作,encod",{"_index":1613,"t":{"998":{"position":[[359,50]]},"1232":{"position":[[359,50]]}}}],["deep",{"_index":1470,"t":{"965":{"position":[[873,4]]}}}],["def",{"_index":115,"t":{"732":{"position":[[89,6]]},"1150":{"position":[[307,3],[364,3],[443,3],[855,3],[896,3],[1297,3],[1364,3],[1427,3]]}}}],["defin",{"_index":276,"t":{"821":{"position":[[11,7],[52,7],[100,7],[133,7],[206,7],[263,7],[301,7],[352,7],[373,7],[404,7],[437,7],[459,7],[477,7]]},"864":{"position":[[74,7]]},"866":{"position":[[76,7]]},"868":{"position":[[50,7],[63,7],[78,7],[94,7],[107,7],[123,7],[145,7],[210,7],[240,7],[265,7],[331,7]]},"871":{"position":[[40,7]]},"873":{"position":[[40,7]]},"875":{"position":[[40,7],[78,7],[119,7],[142,7]]},"1055":{"position":[[107,6],[725,6],[3152,6]]}}}],["delta}^{\\delta}\\sum_{b",{"_index":2444,"t":{"1159":{"position":[[131,24]]}}}],["delta}^{\\delta}{v_{a,b}*x_{i_a,j+b",{"_index":2445,"t":{"1159":{"position":[[156,37]]}}}],["denoise模块的目标是预测出输入的噪声图片中的噪声,其资料可以通过对数据集中的图片不断加入从gaussian",{"_index":1537,"t":{"979":{"position":[[362,56]]}}}],["depend",{"_index":1151,"t":{"881":{"position":[[75,6]]}}}],["depend以及mak",{"_index":1214,"t":{"895":{"position":[[79,15]]}}}],["depend和mak",{"_index":1201,"t":{"885":{"position":[[346,14]]},"889":{"position":[[152,14]]}}}],["depth",{"_index":2927,"t":{"1349":{"position":[[32,24]]}}}],["dequ",{"_index":86,"t":{"726":{"position":[[176,10]]},"817":{"position":[[57,5]]}}}],["dequed1(18)h(u,v)=\\begin{cases}1&d(u,v)w2(24)h(u,v)=\\begin{cases}1&d(u,v)d00d(u,v)≤d0(19)h(u,v)=\\begin{cases}1&d(u,v)>d_0",{"_index":1383,"t":{"928":{"position":[[30,66]]}}}],["h(u,v)={1d(u,v)>d0d(u,v)−d1d0−d1d1≤d(u,v)≤d00d(u,v)d_0",{"_index":1394,"t":{"928":{"position":[[537,92]]}}}],["h(u,v)={1d(u,v)≤d00d(u,v)>d0(14)h(u,v)=\\begin{cases}1&d(u,v)\\leq",{"_index":1359,"t":{"926":{"position":[[71,64]]}}}],["h(u,v)h(u,v)h(u,v)下降到最大值的0.707时的d(u,v)d(u,v)d(u,v",{"_index":1389,"t":{"928":{"position":[[345,68]]}}}],["h(u,v)h(u,v)h(u,v)下降到最大值的0.707时的d(u,v)d(u,v)d(u,v)作为截止频率d0d_0d0",{"_index":1367,"t":{"926":{"position":[[533,69]]}}}],["h(u,v)h(u,v)h(u,v)下降到最大值的1/2时的d(u,v)d(u,v)d(u,v",{"_index":1370,"t":{"926":{"position":[[729,62]]}}}],["h,t",{"_index":876,"t":{"868":{"position":[[1182,4]]}}}],["han",{"_index":2546,"t":{"1188":{"position":[[220,8]]}}}],["happen",{"_index":1880,"t":{"1051":{"position":[[74,7]]}}}],["hash",{"_index":422,"t":{"839":{"position":[[609,19],[646,19],[678,19],[715,19]]}}}],["head",{"_index":1570,"t":{"990":{"position":[[57,4]]},"994":{"position":[[790,4],[913,4],[968,4],[1363,4]]},"1057":{"position":[[31,4]]},"1224":{"position":[[57,4]]},"1228":{"position":[[790,4],[913,4],[968,4],[1363,4]]}}}],["heap",{"_index":121,"t":{"736":{"position":[[30,5]]}}}],["heap.clear",{"_index":122,"t":{"736":{"position":[[36,13]]}}}],["heap.empti",{"_index":124,"t":{"736":{"position":[[63,13]]}}}],["heap.push",{"_index":126,"t":{"736":{"position":[[107,10]]}}}],["heap.siz",{"_index":123,"t":{"736":{"position":[[50,12]]}}}],["help",{"_index":1960,"t":{"1055":{"position":[[2593,5]]}}}],["higher",{"_index":2181,"t":{"1126":{"position":[[90,6],[132,6]]}}}],["highest",{"_index":1934,"t":{"1055":{"position":[[1730,7],[4026,7]]}}}],["hinton提出的一种卷积神经网络模型,它主要应用于图像分类任务。在当时,alexnet的表现远远超过了其他参赛的网络模型,并且在imagenet",{"_index":2136,"t":{"1111":{"position":[[55,83]]}}}],["hit",{"_index":1062,"t":{"879":{"position":[[114,3],[1326,3]]}}}],["hollings@cs.umd.edu",{"_index":1093,"t":{"879":{"position":[[783,21]]}}}],["hollingsworth",{"_index":1092,"t":{"879":{"position":[[769,13]]}}}],["honglak",{"_index":2551,"t":{"1188":{"position":[[270,7]]}}}],["host",{"_index":1236,"t":{"895":{"position":[[735,4],[805,4]]}}}],["host_cc",{"_index":1246,"t":{"895":{"position":[[962,7]]}}}],["hovemey",{"_index":1088,"t":{"879":{"position":[[706,9]]}}}],["http://127.0.0.1:7890",{"_index":2321,"t":{"1150":{"position":[[199,23]]}}}],["http_proxi",{"_index":2857,"t":{"1309":{"position":[[244,10]]}}}],["http_proxy=http://127.0.0.1:7890",{"_index":2852,"t":{"1309":{"position":[[100,32]]}}}],["https://127.0.0.1:7890",{"_index":2323,"t":{"1150":{"position":[[251,24]]}}}],["https://blog.csdn.net/f_zyj/article/details/51594851",{"_index":403,"t":{"837":{"position":[[4,52]]}}}],["https://download.csdn.net/download/f_zyj/9988653",{"_index":404,"t":{"837":{"position":[[57,48]]}}}],["https://www.bilibili.com/video/bv12u411s7us/?spm_id_from=333.788&vd_source=24d8fcf68bc0e2b0003defe0995cf533",{"_index":212,"t":{"793":{"position":[[284,107]]}}}],["https://www.bilibili.com/video/bv13r4y1m7sq/?spm_id_from=333.788&vd_source=24d8fcf68bc0e2b0003defe0995cf533",{"_index":219,"t":{"793":{"position":[[732,107]]}}}],["https://www.bilibili.com/video/bv1pl4y1e7re/?spm_id_from=333.788&vd_source=24d8fcf68bc0e2b0003defe0995cf533",{"_index":209,"t":{"793":{"position":[[121,107]]}}}],["https://www.bilibili.com/video/bv1vm4y1q7xb/?spm_id_from=333.788&vd_source=24d8fcf68bc0e2b0003defe0995cf533",{"_index":215,"t":{"793":{"position":[[458,107]]}}}],["https://www.jianshu.com/p/41c15d301542",{"_index":2805,"t":{"1300":{"position":[[5,38]]}}}],["https_proxi",{"_index":2858,"t":{"1309":{"position":[[261,11]]}}}],["https_proxy=https://127.0.0.1:7890",{"_index":2853,"t":{"1309":{"position":[[140,34]]}}}],["hung",{"_index":2582,"t":{"1188":{"position":[[702,4]]}}}],["hw4",{"_index":2712,"t":{"1213":{"position":[[53,4]]}}}],["hw×cihw",{"_index":2294,"t":{"1143":{"position":[[51,15]]}}}],["hyperparamet",{"_index":2274,"t":{"1133":{"position":[[80,14]]}}}],["hyperstyl",{"_index":1850,"t":{"1036":{"position":[[16,10],[176,10]]},"1262":{"position":[[16,10],[176,10]]}}}],["h′以及w′h'以及w'h′以及w",{"_index":2306,"t":{"1145":{"position":[[177,24]]}}}],["i'll",{"_index":1271,"t":{"897":{"position":[[73,4],[125,4]]}}}],["i+1",{"_index":953,"t":{"868":{"position":[[3182,4]]}}}],["i,a,b",{"_index":874,"t":{"868":{"position":[[1144,6]]}}}],["i,j",{"_index":938,"t":{"868":{"position":[[2802,4]]}}}],["i,ji,ji,j代表输出神经元的二维索引坐标,h,wh,wh,w",{"_index":2433,"t":{"1157":{"position":[[27,49]]}}}],["i/o",{"_index":250,"t":{"815":{"position":[[188,5]]}}}],["i440fxsupport",{"_index":1182,"t":{"881":{"position":[[824,14]]},"895":{"position":[[1880,14]]}}}],["i<0",{"_index":880,"t":{"868":{"position":[[1316,5],[1379,5]]}}}],["i<=k",{"_index":911,"t":{"868":{"position":[[2386,5]]}}}],["ir2",{"_index":1037,"t":{"875":{"position":[[352,9]]}}}],["if(la>ra",{"_index":970,"t":{"871":{"position":[[365,9],[707,9]]},"873":{"position":[[266,9],[495,9]]}}}],["if(n==0||m==0",{"_index":818,"t":{"866":{"position":[[2300,15]]}}}],["if(num==n",{"_index":816,"t":{"866":{"position":[[2196,10]]}}}],["if(read_key(&keycod",{"_index":1066,"t":{"879":{"position":[[161,22],[1373,22]]}}}],["if(rt",{"_index":1046,"t":{"875":{"position":[[560,7]]}}}],["if(rt==0",{"_index":986,"t":{"871":{"position":[[990,9],[1380,9],[1495,9],[1611,9]]},"873":{"position":[[700,9],[1061,9],[1168,9],[1276,9]]}}}],["if(t[w].l!=0",{"_index":991,"t":{"871":{"position":[[1195,13]]},"873":{"position":[[897,13]]}}}],["if(t[w].r!=0",{"_index":993,"t":{"871":{"position":[[1225,13]]},"873":{"position":[[927,13]]}}}],["if(topologicalsort",{"_index":824,"t":{"866":{"position":[[2423,22]]}}}],["ifm",{"_index":2752,"t":{"1290":{"position":[[266,3],[300,3],[339,3],[379,3]]}}}],["ifndef",{"_index":830,"t":{"868":{"position":[[37,7]]}}}],["ihpf",{"_index":1382,"t":{"928":{"position":[[15,14]]}}}],["illustr",{"_index":1866,"t":{"1043":{"position":[[11,12]]}}}],["ilpf",{"_index":1353,"t":{"926":{"position":[[18,14],[37,4]]}}}],["imag",{"_index":1469,"t":{"965":{"position":[[845,5]]},"967":{"position":[[977,5]]},"1031":{"position":[[1104,5]]},"1033":{"position":[[1628,5]]},"1185":{"position":[[0,10],[202,5]]},"1188":{"position":[[610,5]]},"1257":{"position":[[1104,5]]},"1259":{"position":[[1625,5]]},"1267":{"position":[[267,5],[351,5],[498,5]]}}}],["imagenet",{"_index":1821,"t":{"1033":{"position":[[913,8],[1231,10],[1268,8]]},"1259":{"position":[[910,8],[1228,10],[1265,8]]}}}],["imagen将压缩版本的图片作为gener",{"_index":1449,"t":{"965":{"position":[[353,28]]}}}],["imagen的实验结果,相对于decoder即diffus",{"_index":1453,"t":{"965":{"position":[[447,34]]}}}],["image数据,在传入visdom时仍需要先转化为numpi",{"_index":2732,"t":{"1278":{"position":[[355,35]]}}}],["impact",{"_index":1467,"t":{"965":{"position":[[791,9]]}}}],["import",{"_index":1461,"t":{"965":{"position":[[623,9]]},"1055":{"position":[[3053,6],[3066,6],[3098,6],[3117,6]]},"1119":{"position":[[269,6],[292,6]]},"1121":{"position":[[258,6],[281,6]]},"1126":{"position":[[1474,6]]},"1150":{"position":[[0,6],[13,6],[43,6],[73,6],[105,6],[141,6],[162,6]]},"1278":{"position":[[12,6]]},"1280":{"position":[[12,6]]},"1294":{"position":[[259,6],[278,6]]}}}],["improv",{"_index":1463,"t":{"965":{"position":[[702,8]]}}}],["in[maxn",{"_index":1029,"t":{"875":{"position":[[255,9]]}}}],["incept",{"_index":1476,"t":{"967":{"position":[[57,9]]},"1033":{"position":[[17,9],[66,9],[554,9],[758,9],[826,9],[1116,9],[1213,9],[1242,9],[1406,9],[1642,9],[1763,9]]},"1259":{"position":[[17,9],[66,9],[552,9],[756,9],[824,9],[1113,9],[1210,9],[1239,9],[1403,9],[1639,9],[1760,9]]}}}],["includ",{"_index":7,"t":{"705":{"position":[[0,8]]},"711":{"position":[[0,8]]},"717":{"position":[[0,8]]},"744":{"position":[[0,8]]},"841":{"position":[[2062,8]]},"843":{"position":[[1443,8],[1463,8]]},"864":{"position":[[0,8],[20,8],[38,8]]},"866":{"position":[[0,8],[21,8],[41,8],[59,8]]},"879":{"position":[[1005,8],[1034,8],[1061,8],[1088,8],[1112,8],[1138,8],[1162,8],[1186,8],[1214,8],[1239,8],[1265,8]]},"1321":{"position":[[41,8]]}}}],["include::iter",{"_index":638,"t":{"851":{"position":[[765,14]]}}}],["int[col",{"_index":402,"t":{"835":{"position":[[84,9]]}}}],["int[nrow",{"_index":394,"t":{"833":{"position":[[77,8]]}}}],["interact",{"_index":1885,"t":{"1051":{"position":[[167,8],[303,12]]}}}],["introduction以及rel",{"_index":2739,"t":{"1282":{"position":[[50,51]]}}}],["invers",{"_index":1857,"t":{"1036":{"position":[[351,9]]},"1262":{"position":[[351,9]]}}}],["ios::sync_with_stdio(fals",{"_index":72,"t":{"719":{"position":[[346,28]]}}}],["iostream",{"_index":547,"t":{"843":{"position":[[1452,10]]},"864":{"position":[[9,10]]},"866":{"position":[[30,10]]}}}],["ipl",{"_index":1682,"t":{"1012":{"position":[[9,3],[27,3]]},"1015":{"position":[[16,3],[46,3]]},"1033":{"position":[[957,3],[1004,3],[1497,3],[1544,3]]},"1039":{"position":[[226,3]]},"1193":{"position":[[0,11]]},"1238":{"position":[[9,3],[27,3]]},"1241":{"position":[[16,3],[46,3]]},"1259":{"position":[[954,3],[1001,3],[1494,3],[1541,3]]},"1267":{"position":[[2,3],[788,3]]},"1269":{"position":[[90,3],[365,3]]}}}],["ipl独立于生成模型,可以自由选择diffus",{"_index":2540,"t":{"1185":{"position":[[286,64]]}}}],["is(g)=exp⁡(ex∼pgdkl(p(y∣x)∣∣p(y)))\\mathbf{is}(g)=\\exp\\left(\\mathbb{e}_{\\mathbf{x}\\sim",{"_index":1817,"t":{"1033":{"position":[[579,85]]},"1259":{"position":[[577,85]]}}}],["is_heap",{"_index":503,"t":{"841":{"position":[[2236,7]]}}}],["is_heap_untilc++11",{"_index":504,"t":{"841":{"position":[[2258,18]]}}}],["is_list",{"_index":794,"t":{"866":{"position":[[1508,10]]}}}],["is_partitionedc++11",{"_index":480,"t":{"841":{"position":[[1542,19]]}}}],["is_permutationc++11",{"_index":509,"t":{"841":{"position":[[2397,19]]}}}],["is_sorted_untilc++11",{"_index":487,"t":{"841":{"position":[[1749,20]]}}}],["is_sortedc++11",{"_index":486,"t":{"841":{"position":[[1722,14]]}}}],["is_tre",{"_index":798,"t":{"866":{"position":[[1656,10]]}}}],["isclos",{"_index":2745,"t":{"1290":{"position":[[128,12]]}}}],["isdag",{"_index":362,"t":{"826":{"position":[[624,6],[660,6]]},"864":{"position":[[358,6],[394,6],[550,7]]},"866":{"position":[[499,6],[535,6],[746,7]]}}}],["isdag(1",{"_index":369,"t":{"826":{"position":[[741,8]]},"866":{"position":[[616,8]]}}}],["isdag(isdag",{"_index":366,"t":{"826":{"position":[[682,12]]},"864":{"position":[[416,12]]},"866":{"position":[[557,12]]}}}],["isinstance(net",{"_index":2355,"t":{"1150":{"position":[[955,15]]}}}],["isinstance(train_lay",{"_index":1789,"t":{"1031":{"position":[[347,24]]},"1257":{"position":[[347,24]]}}}],["isinstance(x",{"_index":2361,"t":{"1150":{"position":[[1114,13]]}}}],["it'",{"_index":2178,"t":{"1126":{"position":[[62,4]]}}}],["item",{"_index":2800,"t":{"1298":{"position":[[231,4],[440,4]]}}}],["iter",{"_index":255,"t":{"817":{"position":[[78,8]]},"841":{"position":[[835,22]]},"1131":{"position":[[8,9],[272,9]]}}}],["iter_swap",{"_index":458,"t":{"841":{"position":[[825,9]]}}}],["it指向的元素前插入n个新元素val",{"_index":534,"t":{"843":{"position":[[729,22]]},"845":{"position":[[750,22]]}}}],["it指向的元素前插入新元素val",{"_index":533,"t":{"843":{"position":[[685,20]]},"845":{"position":[[706,20]]}}}],["iulian",{"_index":1095,"t":{"879":{"position":[[827,6]]}}}],["j",{"_index":226,"t":{"812":{"position":[[7,1],[111,1]]},"864":{"position":[[1989,1],[1996,1],[2011,4]]},"868":{"position":[[2924,1],[3086,2]]}}}],["j2\\pi",{"_index":1316,"t":{"908":{"position":[[353,5],[626,5],[1247,5]]}}}],["j\\frac{2\\pi",{"_index":1330,"t":{"908":{"position":[[948,11]]}}}],["jae",{"_index":2571,"t":{"1188":{"position":[[559,3]]}}}],["jeffrey",{"_index":1091,"t":{"879":{"position":[[758,7]]}}}],["jingwan",{"_index":2566,"t":{"1188":{"position":[[526,7]]}}}],["jinwoo",{"_index":2558,"t":{"1188":{"position":[[393,6]]}}}],["k",{"_index":233,"t":{"812":{"position":[[161,2],[188,2]]},"868":{"position":[[2259,2]]},"879":{"position":[[766,2]]},"1129":{"position":[[0,1],[126,1]]},"1131":{"position":[[21,1]]}}}],["k+1",{"_index":922,"t":{"868":{"position":[[2615,5]]}}}],["k_h",{"_index":2301,"t":{"1145":{"position":[[73,3]]}}}],["k_wco​×ci​×kh​×kw",{"_index":2302,"t":{"1145":{"position":[[84,18]]}}}],["kaim",{"_index":1909,"t":{"1055":{"position":[[591,7]]}}}],["kaiyang",{"_index":2597,"t":{"1190":{"position":[[177,7]]}}}],["kernel",{"_index":1118,"t":{"879":{"position":[[1723,6],[1764,6],[2162,6]]},"881":{"position":[[994,7]]},"895":{"position":[[2050,7]]}}}],["kernel_size=5",{"_index":2338,"t":{"1150":{"position":[[574,14],[673,15]]}}}],["kernel_thread",{"_index":1079,"t":{"879":{"position":[[542,13],[2224,13]]}}}],["key",{"_index":626,"t":{"851":{"position":[[63,4],[920,31]]},"879":{"position":[[2192,4]]},"1055":{"position":[[748,5],[1071,5],[1096,4],[1188,5],[2570,3],[2654,3],[3332,5],[3635,5],[3660,4],[3752,5]]}}}],["key]操作是map很有特色的操作,如果在map中存在键值为key",{"_index":633,"t":{"851":{"position":[[371,39]]}}}],["key^{n",{"_index":1978,"t":{"1057":{"position":[[135,6]]}}}],["key_ctrl_flag)==key_ctrl_flag",{"_index":1073,"t":{"879":{"position":[[317,29],[1529,29]]}}}],["key_release_flag",{"_index":1069,"t":{"879":{"position":[[234,21],[1446,21]]}}}],["key_special_flag",{"_index":1068,"t":{"879":{"position":[[202,17],[1414,17]]}}}],["keyboard_serial_delay",{"_index":1175,"t":{"881":{"position":[[720,22]]},"895":{"position":[[1776,22]]}}}],["keycod",{"_index":1064,"t":{"879":{"position":[[133,7],[141,8],[223,8],[284,7],[1345,7],[1353,8],[1435,8],[1496,7]]}}}],["keys.t",{"_index":1927,"t":{"1055":{"position":[[1525,6],[3895,6]]}}}],["key的元素对,值域为默认值。所以可以用该操作向map",{"_index":634,"t":{"851":{"position":[[411,74]]}}}],["key部分作为标识,map中所有元素的key值必须是唯一的,multimap则允许有重复的key",{"_index":628,"t":{"851":{"position":[[90,50]]}}}],["key(当另一个元素是整形时,m[key]=0",{"_index":637,"t":{"851":{"position":[[694,58]]}}}],["key,query以及valu",{"_index":1891,"t":{"1053":{"position":[[0,140]]},"1055":{"position":[[1041,19]]}}}],["kh=kw=1k_h=k_w=1kh​=kw​=1",{"_index":2293,"t":{"1143":{"position":[[0,50]]}}}],["kien",{"_index":2585,"t":{"1188":{"position":[[736,4]]}}}],["kind",{"_index":855,"t":{"868":{"position":[[611,5],[1277,5]]}}}],["kkk",{"_index":2259,"t":{"1129":{"position":[[179,3],[239,3]]},"1131":{"position":[[57,3],[183,3]]}}}],["kl",{"_index":2197,"t":{"1126":{"position":[[473,5],[479,15],[689,11]]},"1201":{"position":[[599,10]]}}}],["knife",{"_index":1279,"t":{"897":{"position":[[173,6]]}}}],["kpple",{"_index":2825,"t":{"1305":{"position":[[30,5]]}}}],["krizhevsky、ilya",{"_index":2134,"t":{"1111":{"position":[[20,15]]}}}],["kruskal",{"_index":2902,"t":{"1334":{"position":[[90,9]]}}}],["kullback–leibl",{"_index":2198,"t":{"1126":{"position":[[495,16]]}}}],["k−1k",{"_index":2262,"t":{"1131":{"position":[[112,4]]}}}],["k个变为v",{"_index":160,"t":{"746":{"position":[[152,7]]}}}],["k的结点是u(第k+1个是u",{"_index":909,"t":{"868":{"position":[[2336,21]]}}}],["l",{"_index":222,"t":{"800":{"position":[[84,1]]},"802":{"position":[[76,1]]},"843":{"position":[[1527,2]]},"920":{"position":[[208,1]]},"1150":{"position":[[2035,1]]}}}],["l(w",{"_index":2081,"t":{"1098":{"position":[[43,4]]},"1100":{"position":[[314,4]]}}}],["l(w,b",{"_index":2078,"t":{"1098":{"position":[[4,6],[124,6]]}}}],["l(w,b)+λ2∥w∥12(2)l(w",{"_index":2092,"t":{"1100":{"position":[[47,21]]}}}],["l(w_t",{"_index":2105,"t":{"1100":{"position":[[474,6]]}}}],["l(y,z)=max(0,−y∗z)(1)l(y,z)=max(0",{"_index":2280,"t":{"1138":{"position":[[366,34]]}}}],["l,r",{"_index":959,"t":{"871":{"position":[[203,4]]},"873":{"position":[[203,4]]}}}],["l,r,d",{"_index":1030,"t":{"875":{"position":[[283,6]]}}}],["l.backward",{"_index":2407,"t":{"1150":{"position":[[2054,12]]}}}],["l.push_back(x",{"_index":549,"t":{"843":{"position":[[1555,15]]}}}],["l.size",{"_index":550,"t":{"843":{"position":[[1586,8]]}}}],["l1",{"_index":1041,"t":{"875":{"position":[[433,3]]}}}],["l1,int",{"_index":1032,"t":{"875":{"position":[[315,6]]}}}],["l1正则化(硬性限制)、l2",{"_index":2076,"t":{"1096":{"position":[[200,35]]}}}],["l1正则化会使得一部分参数变为0,从而实现特征选择的效果;l2正则化则会使得模型参数尽量接近0",{"_index":2077,"t":{"1096":{"position":[[236,93]]}}}],["l1正则化限制权重参数的l1",{"_index":2089,"t":{"1098":{"position":[[154,26]]}}}],["l2",{"_index":1802,"t":{"1031":{"position":[[1146,2],[1268,2]]},"1257":{"position":[[1146,2],[1269,2]]}}}],["l2,int",{"_index":1034,"t":{"875":{"position":[[329,6]]}}}],["l2正则化是指在模型的损失函数中,加入对模型参数的l2",{"_index":2091,"t":{"1100":{"position":[[0,46]]}}}],["l2范数是对元素求平方和后再开根号,需要.pow(2",{"_index":2167,"t":{"1124":{"position":[[0,36]]}}}],["l=−1n∑i=1nyilog⁡(pi)(1)l",{"_index":2022,"t":{"1086":{"position":[[270,25]]}}}],["l[i",{"_index":551,"t":{"843":{"position":[[1623,4]]}}}],["la",{"_index":976,"t":{"871":{"position":[[477,3],[820,3]]},"873":{"position":[[346,3],[575,3]]}}}],["la,int",{"_index":962,"t":{"871":{"position":[[253,6],[651,6]]},"873":{"position":[[239,6],[468,6]]}}}],["la,ra",{"_index":966,"t":{"871":{"position":[[281,12],[679,12]]}}}],["label",{"_index":2239,"t":{"1126":{"position":[[1632,5],[1678,6],[1815,5],[1864,6]]}}}],["lalr(1",{"_index":217,"t":{"793":{"position":[[620,10]]}}}],["lambda",{"_index":2095,"t":{"1100":{"position":[[137,23],[337,7],[556,7]]}}}],["lambda)w_t",{"_index":2104,"t":{"1100":{"position":[[440,11]]}}}],["lambda_l",{"_index":1778,"t":{"1029":{"position":[[1209,9]]},"1255":{"position":[[1210,9]]}}}],["lambda_src",{"_index":1779,"t":{"1029":{"position":[[1255,10]]},"1255":{"position":[[1256,10]]}}}],["landmark",{"_index":1862,"t":{"1036":{"position":[[533,8]]},"1262":{"position":[[533,8]]}}}],["languag",{"_index":1471,"t":{"965":{"position":[[878,8]]},"967":{"position":[[968,8]]},"1086":{"position":[[193,8]]},"1088":{"position":[[116,8],[392,8]]}}}],["lantent",{"_index":2599,"t":{"1193":{"position":[[34,19]]}}}],["laplac",{"_index":1414,"t":{"946":{"position":[[187,10]]},"948":{"position":[[339,22],[381,51]]}}}],["larg",{"_index":1964,"t":{"1055":{"position":[[2673,5],[2718,5]]}}}],["last",{"_index":524,"t":{"843":{"position":[[370,6],[422,10],[772,5],[876,7],[914,5],[1168,5],[1225,16]]},"845":{"position":[[144,5],[793,5],[897,7],[935,5]]}}}],["last)插入到迭代器it",{"_index":536,"t":{"843":{"position":[[810,20]]},"845":{"position":[[831,20]]}}}],["last),[first",{"_index":545,"t":{"843":{"position":[[1211,13]]}}}],["latent",{"_index":1444,"t":{"965":{"position":[[220,17]]},"969":{"position":[[456,11],[484,11],[1048,11],[1076,12]]},"1029":{"position":[[256,9]]},"1036":{"position":[[75,6],[457,6],[618,6]]},"1070":{"position":[[122,35]]},"1177":{"position":[[30,6]]},"1193":{"position":[[12,13],[223,11],[380,11],[587,12]]},"1255":{"position":[[256,9]]},"1262":{"position":[[75,6],[457,6],[618,6]]}}}],["later",{"_index":1231,"t":{"895":{"position":[[668,5]]}}}],["latest",{"_index":1163,"t":{"881":{"position":[[507,6],[580,6]]},"895":{"position":[[1563,6],[1636,6]]}}}],["layer",{"_index":1590,"t":{"994":{"position":[[485,34]]},"1029":{"position":[[582,6]]},"1031":{"position":[[325,5]]},"1228":{"position":[[485,34]]},"1255":{"position":[[583,6]]},"1257":{"position":[[325,5]]}}}],["layers.append",{"_index":1769,"t":{"1029":{"position":[[628,14]]},"1255":{"position":[[629,14]]}}}],["layman’",{"_index":1881,"t":{"1051":{"position":[[101,8]]}}}],["lb,int",{"_index":964,"t":{"871":{"position":[[267,6],[665,6]]},"873":{"position":[[253,6],[482,6]]}}}],["lb,rb",{"_index":967,"t":{"871":{"position":[[294,12],[692,12]]}}}],["ld",{"_index":1249,"t":{"895":{"position":[[1003,2]]}}}],["learn",{"_index":2251,"t":{"1129":{"position":[[55,8]]},"1190":{"position":[[138,18],[242,47]]},"1193":{"position":[[546,8]]},"1209":{"position":[[40,5]]},"1269":{"position":[[312,8]]}}}],["learning(ipl)方法来解决风格迁移任务中生成模型从源域到目标域的适应问题。一个lat",{"_index":2532,"t":{"1185":{"position":[[27,50]]}}}],["lecun等人于1998年提出的卷积神经网络结构,该结构由卷积层、池化层和全连接层组成,可以高效地处理手写数字图像,并在mnist",{"_index":2314,"t":{"1148":{"position":[[12,78]]}}}],["lee",{"_index":2552,"t":{"1188":{"position":[[278,4],[563,4]]}}}],["legend=[\"curve_name_1",{"_index":2735,"t":{"1280":{"position":[[110,23]]}}}],["legend=['train",{"_index":2390,"t":{"1150":{"position":[[1736,14]]}}}],["len",{"_index":2875,"t":{"1321":{"position":[[829,3],[950,3]]}}}],["len(train_it",{"_index":2395,"t":{"1150":{"position":[[1818,15]]}}}],["len==1,则la==ra",{"_index":968,"t":{"871":{"position":[[312,41]]}}}],["len=v.siz",{"_index":995,"t":{"871":{"position":[[1261,13]]},"873":{"position":[[963,13]]}}}],["lenet",{"_index":2315,"t":{"1148":{"position":[[91,5]]},"1150":{"position":[[2745,5]]}}}],["lenet5",{"_index":2429,"t":{"1150":{"position":[[2753,8]]}}}],["lenet5(nn.modul",{"_index":2332,"t":{"1150":{"position":[[424,18]]}}}],["lenetreshap",{"_index":2336,"t":{"1150":{"position":[[526,15]]}}}],["lenetreshape(nn.modul",{"_index":2325,"t":{"1150":{"position":[[282,24]]}}}],["lenet是由yann",{"_index":2313,"t":{"1148":{"position":[[0,11]]}}}],["length",{"_index":2697,"t":{"1211":{"position":[[312,6]]}}}],["leq",{"_index":2085,"t":{"1098":{"position":[[101,4]]}}}],["less",{"_index":2183,"t":{"1126":{"position":[[111,4]]}}}],["lexicographical_compar",{"_index":510,"t":{"841":{"position":[[2437,23]]}}}],["lg=−ez∼pz(z)[log⁡d(g(z))](4)l_g",{"_index":2006,"t":{"1076":{"position":[[800,32]]}}}],["lgorithm",{"_index":430,"t":{"841":{"position":[[0,12]]}}}],["lgpl",{"_index":1162,"t":{"881":{"position":[[502,4]]},"895":{"position":[[1558,4]]}}}],["li",{"_index":1275,"t":{"897":{"position":[[119,5]]},"1188":{"position":[[522,3]]}}}],["life",{"_index":1286,"t":{"897":{"position":[[240,5]]}}}],["lighter",{"_index":2755,"t":{"1290":{"position":[[284,9],[318,8]]}}}],["lightest",{"_index":2757,"t":{"1290":{"position":[[357,9],[397,9]]}}}],["limits.h",{"_index":242,"t":{"815":{"position":[[78,8]]}}}],["line",{"_index":1157,"t":{"881":{"position":[[423,5]]},"895":{"position":[[1479,5]]}}}],["linear",{"_index":2749,"t":{"1290":{"position":[[235,6]]}}}],["linguist",{"_index":2046,"t":{"1088":{"position":[[597,10]]}}}],["linker",{"_index":1247,"t":{"895":{"position":[[991,7]]}}}],["linux",{"_index":1242,"t":{"895":{"position":[[881,5]]}}}],["linux操作系统后需要安装bochs以及nasm",{"_index":1204,"t":{"887":{"position":[[39,30]]}}}],["linux自带的编译环境以及编译命令对特定的geeko",{"_index":1205,"t":{"889":{"position":[[47,30]]}}}],["list",{"_index":257,"t":{"817":{"position":[[110,4]]},"845":{"position":[[0,8],[9,23],[198,10]]},"1031":{"position":[[372,6]]},"1150":{"position":[[1128,6]]},"1181":{"position":[[526,16]]},"1257":{"position":[[372,6]]},"1390":{"position":[[316,4]]}}}],["list.end",{"_index":36,"t":{"707":{"position":[[58,12],[138,13]]}}}],["list1",{"_index":2795,"t":{"1298":{"position":[[92,5]]}}}],["list2",{"_index":2796,"t":{"1298":{"position":[[110,5],[202,6]]}}}],["list3",{"_index":2797,"t":{"1298":{"position":[[134,5],[209,6]]}}}],["lista(first",{"_index":557,"t":{"845":{"position":[[126,17]]}}}],["lista(n",{"_index":553,"t":{"845":{"position":[[51,13],[87,13]]}}}],["lista{1,2,3",{"_index":552,"t":{"845":{"position":[[33,17]]}}}],["list和tensor",{"_index":2484,"t":{"1181":{"position":[[409,17]]}}}],["list和vector",{"_index":410,"t":{"839":{"position":[[228,45]]}}}],["list或deque实现,封闭头部即可,不用vector",{"_index":412,"t":{"839":{"position":[[282,51],[342,51]]}}}],["list的*乘法是复制元素,改变list的shap",{"_index":2485,"t":{"1181":{"position":[[427,26]]}}}],["ll",{"_index":291,"t":{"821":{"position":[[360,2],[547,2],[633,2],[667,2]]},"871":{"position":[[118,3]]},"873":{"position":[[118,3]]},"875":{"position":[[204,3]]}}}],["lll",{"_index":1350,"t":{"920":{"position":[[243,17]]}}}],["locale.h",{"_index":243,"t":{"815":{"position":[[92,8]]}}}],["locatevex_al(*pg",{"_index":888,"t":{"868":{"position":[[1579,17],[1605,17]]}}}],["locatevex_al(algraph",{"_index":870,"t":{"868":{"position":[[917,20]]}}}],["locatevex_al(g",{"_index":942,"t":{"868":{"position":[[2899,15],[2928,15]]}}}],["log",{"_index":1173,"t":{"881":{"position":[[701,4]]},"895":{"position":[[1757,4]]}}}],["log2(1pi)(7)\\begin{align",{"_index":2189,"t":{"1126":{"position":[[286,25]]}}}],["log2(pi)=∑inpi",{"_index":2188,"t":{"1126":{"position":[[271,14]]}}}],["log2(pi)−log2(qi)](9)d_{kl}(p",{"_index":2211,"t":{"1126":{"position":[[842,30]]}}}],["log2(qi)(10)\\begin{align",{"_index":2223,"t":{"1126":{"position":[[1187,25]]}}}],["log2​(pi​)=i∑n​pi",{"_index":2195,"t":{"1126":{"position":[[437,18]]}}}],["log2​(pi​)−log2​(qi​)](9",{"_index":2215,"t":{"1126":{"position":[[959,26]]}}}],["log2​(pi​1​)​(7",{"_index":2196,"t":{"1126":{"position":[[456,16]]}}}],["log2​(qi​)​(10",{"_index":2229,"t":{"1126":{"position":[[1357,15]]}}}],["log_2(p_i",{"_index":2213,"t":{"1126":{"position":[[910,11]]}}}],["log_2(q_i)]}\\tag{9}dkl​(p",{"_index":2214,"t":{"1126":{"position":[[922,25]]}}}],["logist",{"_index":2449,"t":{"1169":{"position":[[0,8]]}}}],["long",{"_index":292,"t":{"821":{"position":[[363,4],[368,4],[394,4],[399,4]]},"861":{"position":[[1010,4]]},"871":{"position":[[108,4],[113,4]]},"873":{"position":[[108,4],[113,4]]},"875":{"position":[[194,4],[199,4]]},"1315":{"position":[[4,17],[22,32]]}}}],["loss",{"_index":1798,"t":{"1031":{"position":[[1024,4]]},"1092":{"position":[[139,10]]},"1150":{"position":[[1623,4],[1751,6]]},"1193":{"position":[[890,39]]},"1257":{"position":[[1024,4]]},"1278":{"position":[[280,8]]},"1347":{"position":[[129,4]]},"1370":{"position":[[6,43],[87,14]]}}}],["loss(y_hat",{"_index":2406,"t":{"1150":{"position":[[2039,11]]}}}],["loss.to(devic",{"_index":2386,"t":{"1150":{"position":[[1658,15]]}}}],["lossdiscriminator=lossreal+lossfake(3)loss_{discriminator}=loss_{real}+loss_{fake}\\tag{3}lossdiscriminator​=lossreal​+lossfake​(3",{"_index":2005,"t":{"1076":{"position":[[532,130]]}}}],["lossfake=−ez∼pz(z)[log(1−d(g(z)))](2)loss_{fak",{"_index":2000,"t":{"1076":{"position":[[332,49]]}}}],["lossmse=∑[y−f(x)]2(5)loss_{ms",{"_index":2168,"t":{"1124":{"position":[[57,31]]}}}],["lossreal=−ex∼pdata(x)[log⁡d(x)](1)loss_{r",{"_index":1995,"t":{"1076":{"position":[[160,46]]}}}],["loss得到6",{"_index":2924,"t":{"1347":{"position":[[74,11]]}}}],["loss来训练目标域生成器,使源于生成器向目标域迁移学习。需要输入源域以及目标域图像、源域以及目标域的prompt描述。源域图像的lat",{"_index":2612,"t":{"1193":{"position":[[644,71]]}}}],["loss的输入来约束从源域中学习到的prompt",{"_index":2607,"t":{"1193":{"position":[[346,33]]}}}],["loss的输入,约束学习到的prompt",{"_index":2611,"t":{"1193":{"position":[[555,31]]}}}],["loss,使目标域的imag",{"_index":2718,"t":{"1269":{"position":[[24,15]]}}}],["lot",{"_index":1188,"t":{"881":{"position":[[936,3]]},"895":{"position":[[1992,3]]}}}],["low",{"_index":1356,"t":{"926":{"position":[[54,3]]}}}],["lower_bound",{"_index":495,"t":{"841":{"position":[[1975,11]]}}}],["lr",{"_index":204,"t":{"788":{"position":[[29,9]]},"1150":{"position":[[1414,3],[2720,3],[2810,3]]}}}],["lr(0",{"_index":208,"t":{"793":{"position":[[98,8]]},"798":{"position":[[139,6],[160,13]]}}}],["lr(1",{"_index":214,"t":{"793":{"position":[[435,8]]},"798":{"position":[[154,5]]}}}],["lr=lr",{"_index":2384,"t":{"1150":{"position":[[1616,6]]}}}],["lr_mul=lr_mlp",{"_index":1772,"t":{"1029":{"position":[[678,14]]},"1255":{"position":[[679,14]]}}}],["lu",{"_index":2567,"t":{"1188":{"position":[[534,3]]},"1337":{"position":[[806,57]]},"1402":{"position":[[678,57]]}}}],["m",{"_index":555,"t":{"845":{"position":[[101,2]]},"851":{"position":[[323,2]]},"895":{"position":[[1086,1]]},"1276":{"position":[[52,1]]}}}],["m.clear",{"_index":645,"t":{"851":{"position":[[1053,10]]}}}],["m.empti",{"_index":644,"t":{"851":{"position":[[1032,10]]}}}],["m.erase(it",{"_index":642,"t":{"851":{"position":[[952,12]]}}}],["m.erase(key",{"_index":641,"t":{"851":{"position":[[903,13]]}}}],["m.find(key",{"_index":639,"t":{"851":{"position":[[785,12]]}}}],["m.insert(make_pair(key",{"_index":635,"t":{"851":{"position":[[486,23]]}}}],["m.size",{"_index":643,"t":{"851":{"position":[[1012,9]]}}}],["m32",{"_index":1235,"t":{"895":{"position":[[729,3],[978,3]]}}}],["m[key",{"_index":631,"t":{"851":{"position":[[352,6],[683,7]]}}}],["machin",{"_index":2250,"t":{"1129":{"position":[[47,7]]}}}],["main",{"_index":13,"t":{"705":{"position":[[50,6]]},"711":{"position":[[50,6]]},"717":{"position":[[50,6]]},"843":{"position":[[1506,6]]},"864":{"position":[[1733,6]]},"866":{"position":[[2284,7]]},"868":{"position":[[2708,6]]},"871":{"position":[[1704,6]]},"873":{"position":[[1369,6]]},"875":{"position":[[658,6]]},"879":{"position":[[503,31]]},"1321":{"position":[[770,6]]}}}],["main(struct",{"_index":1125,"t":{"879":{"position":[[1838,11]]}}}],["make",{"_index":1150,"t":{"881":{"position":[[70,4],[82,4]]},"885":{"position":[[338,7]]},"889":{"position":[[144,7]]},"895":{"position":[[147,19]]},"1055":{"position":[[2602,6]]}}}],["make_heap",{"_index":505,"t":{"841":{"position":[[2296,9]]}}}],["malloc(sizeof(arcnod",{"_index":891,"t":{"868":{"position":[[1670,26]]}}}],["man",{"_index":2587,"t":{"1188":{"position":[[758,3]]}}}],["map",{"_index":88,"t":{"726":{"position":[[192,4]]},"744":{"position":[[9,5]]},"817":{"position":[[99,3]]},"851":{"position":[[0,7],[223,68],[292,13],[326,9],[339,9]]},"1029":{"position":[[470,12],[560,10]]},"1033":{"position":[[1844,3]]},"1102":{"position":[[83,3]]},"1108":{"position":[[43,21]]},"1255":{"position":[[470,12],[561,10]]},"1259":{"position":[[1841,3]]}}}],["map、<=、>=、==、!=,其规则是先比较first,first相等时再比较second",{"_index":623,"t":{"849":{"position":[[246,110]]}}}],["pair也能进行sort",{"_index":113,"t":{"730":{"position":[[81,12]]}}}],["pair对象外,如果需要即时生成一个pair对象,也可以调用在其中定义的一个模版函数:make_pair。make_pair",{"_index":624,"t":{"849":{"position":[[357,92]]}}}],["pair模版类需要两个参数:首元素的数据类型和尾元素的数据类型。pair模版类对象有两个成员:first和second",{"_index":622,"t":{"849":{"position":[[173,72]]}}}],["paper",{"_index":1842,"t":{"1033":{"position":[[1714,5]]},"1259":{"position":[[1711,5]]}}}],["paragraph",{"_index":1952,"t":{"1055":{"position":[[2452,10]]}}}],["paramet",{"_index":2271,"t":{"1133":{"position":[[37,9]]},"1209":{"position":[[87,10]]}}}],["paraphras",{"_index":2050,"t":{"1088":{"position":[[677,10]]}}}],["partial_sort",{"_index":489,"t":{"841":{"position":[[1822,12]]}}}],["partial_sort_copi",{"_index":490,"t":{"841":{"position":[[1840,17]]}}}],["partit",{"_index":482,"t":{"841":{"position":[[1590,9]]},"1129":{"position":[[183,11]]}}}],["partition_copyc++11",{"_index":483,"t":{"841":{"position":[[1611,19]]}}}],["partition_pointc++11",{"_index":484,"t":{"841":{"position":[[1643,20]]}}}],["pass",{"_index":1357,"t":{"926":{"position":[[58,4]]}}}],["path",{"_index":912,"t":{"868":{"position":[[2397,11]]},"1211":{"position":[[226,4],[273,4]]}}}],["path/terminal_proxy.sh",{"_index":2862,"t":{"1311":{"position":[[96,23]]}}}],["path[k]=0",{"_index":924,"t":{"868":{"position":[[2691,10]]}}}],["path[k]=u",{"_index":908,"t":{"868":{"position":[[2317,10]]}}}],["path[max_vertex_num",{"_index":901,"t":{"868":{"position":[[2162,21]]}}}],["pathnum",{"_index":916,"t":{"868":{"position":[[2483,10]]}}}],["pathnum=0",{"_index":902,"t":{"868":{"position":[[2193,10],[3006,10]]}}}],["pathnum==0",{"_index":948,"t":{"868":{"position":[[3096,12]]}}}],["paths[i",{"_index":954,"t":{"868":{"position":[[3187,10]]}}}],["paths[maxsize][max_vertex_num",{"_index":900,"t":{"868":{"position":[[2119,31]]}}}],["paths[pathnum][i",{"_index":913,"t":{"868":{"position":[[2409,17]]}}}],["paths[pathnum][i]='\\0",{"_index":915,"t":{"868":{"position":[[2453,23]]}}}],["pay",{"_index":1888,"t":{"1051":{"position":[[230,3]]}}}],["pc",{"_index":1194,"t":{"885":{"position":[[102,7]]}}}],["pe(k,2i)\\\\pe(pos+k,2i+1)=pe(pos,2i+1)\\tim",{"_index":1558,"t":{"988":{"position":[[836,43]]},"1222":{"position":[[836,43]]}}}],["pe(k,2i)\\end{array",{"_index":1561,"t":{"988":{"position":[[908,19]]},"1222":{"position":[[908,19]]}}}],["pe(k,2i+1",{"_index":1559,"t":{"988":{"position":[[880,10]]},"1222":{"position":[[880,10]]}}}],["pe(k,2i+1)+pe(pos,2i+1)\\tim",{"_index":1557,"t":{"988":{"position":[[806,29]]},"1222":{"position":[[806,29]]}}}],["pe(pos+k,2i)=pe(pos,2i)×pe(k,2i+1)+pe(pos,2i+1)×pe(k,2i)pe(pos+k,2i+1)=pe(pos,2i+1)×pe(k,2i+1)−pe(pos,2i)×pe(k,2i)(3)\\begin{array}{l}pe(pos+k,2i)=pe(pos,2i)\\tim",{"_index":1556,"t":{"988":{"position":[[643,162]]},"1222":{"position":[[643,162]]}}}],["pe(pos,2i)=sin(pos100002i/dmodel)(1)pe_{(pos,2i)}=sin(\\frac{pos}{10000^{2i/d_{\\mathrm{model",{"_index":1551,"t":{"988":{"position":[[212,96]]},"1222":{"position":[[212,96]]}}}],["pe(pos,2i)\\tim",{"_index":1560,"t":{"988":{"position":[[891,16]]},"1222":{"position":[[891,16]]}}}],["pe(pos,2i+1)=cos(pos100002i/dmodel)(2)pe_{(pos,2i+1)}=cos(\\frac{pos}{10000^{2i/d_{\\mathrm{model",{"_index":1553,"t":{"988":{"position":[[356,100]]},"1222":{"position":[[356,100]]}}}],["penalti",{"_index":2075,"t":{"1096":{"position":[[151,48]]}}}],["perform",{"_index":2253,"t":{"1129":{"position":[[80,11]]},"1131":{"position":[[354,12]]}}}],["permit",{"_index":1101,"t":{"879":{"position":[[918,9]]}}}],["perspect",{"_index":1654,"t":{"1006":{"position":[[841,12]]}}}],["pg",{"_index":862,"t":{"868":{"position":[[759,4],[779,2],[795,2],[844,2],[1087,4],[1274,2],[1336,2],[1399,2],[1470,2],[1748,3],[1790,2],[1872,2]]}}}],["photo",{"_index":1711,"t":{"1023":{"position":[[44,5],[225,16],[244,5],[255,18]]},"1025":{"position":[[139,5],[150,5],[414,5]]},"1027":{"position":[[72,5],[94,5]]},"1249":{"position":[[44,5],[225,16],[244,5],[255,18]]},"1251":{"position":[[139,5],[150,5],[414,5]]},"1253":{"position":[[72,5],[94,5]]},"1267":{"position":[[59,5]]}}}],["photo.’或‘a",{"_index":1749,"t":{"1027":{"position":[[83,10]]},"1253":{"position":[[83,10]]}}}],["photorealist",{"_index":1468,"t":{"965":{"position":[[822,14]]}}}],["pi",{"_index":296,"t":{"821":{"position":[[445,2]]}}}],["pii",{"_index":295,"t":{"821":{"position":[[412,3]]}}}],["pip",{"_index":1698,"t":{"1017":{"position":[[124,3],[158,3]]},"1243":{"position":[[124,3],[158,3]]},"1273":{"position":[[0,3]]}}}],["pip_{i}pi",{"_index":2025,"t":{"1086":{"position":[[404,23]]}}}],["piscart",{"_index":2526,"t":{"1183":{"position":[[30,10]]}}}],["pixelnorm",{"_index":1767,"t":{"1029":{"position":[[591,13]]},"1255":{"position":[[592,13]]}}}],["plasmpkg2",{"_index":2846,"t":{"1305":{"position":[[336,9]]}}}],["platform",{"_index":1239,"t":{"895":{"position":[[810,9],[841,9]]}}}],["pleas",{"_index":1940,"t":{"1055":{"position":[[2017,6],[4176,6]]}}}],["plot",{"_index":1976,"t":{"1055":{"position":[[3145,4]]}}}],["plt",{"_index":2319,"t":{"1150":{"position":[[158,3]]}}}],["plt.show",{"_index":2425,"t":{"1150":{"position":[[2628,10]]}}}],["po",{"_index":697,"t":{"861":{"position":[[487,4],[511,3],[692,3],[725,3],[794,3],[932,3]]}}}],["point",{"_index":1084,"t":{"879":{"position":[[660,5],[1743,6]]}}}],["polynomi",{"_index":2898,"t":{"1329":{"position":[[753,10]]},"1339":{"position":[[753,10]]}}}],["pop",{"_index":82,"t":{"726":{"position":[[100,5],[141,5],[170,5]]},"864":{"position":[[1650,4]]}}}],["pop_heap",{"_index":506,"t":{"841":{"position":[[2318,8]]}}}],["pos+kpos+kpos+k位置的嵌入向量的某一维度(2i2i2i或2i+12i+12i+1)而言,可以表示为pospospos位置与kkk位置的嵌入向量的2i2i2i与2i+12i+12i+1",{"_index":1555,"t":{"988":{"position":[[506,136]]},"1222":{"position":[[506,136]]}}}],["pospospos指的是该词汇在整个输入句子中的位置,2i2i2i以及2i+12i+12i+1指的是该词汇的嵌入向量中的维度,dmodeld_{model}dmodel​指的是在嵌入层之后嵌入向量的总维度。即对于每个输入词汇,都要计算dmodeld_{model}dmodel",{"_index":1550,"t":{"988":{"position":[[57,154]]},"1222":{"position":[[57,154]]}}}],["postt(int",{"_index":1007,"t":{"871":{"position":[[1595,9]]},"873":{"position":[[1260,9]]},"875":{"position":[[544,9]]}}}],["postt(rt",{"_index":1021,"t":{"871":{"position":[[2056,10]]},"873":{"position":[[1642,10]]},"875":{"position":[[806,10]]}}}],["postt(t[rt].l",{"_index":1008,"t":{"871":{"position":[[1629,15]]},"873":{"position":[[1294,15]]},"875":{"position":[[585,15]]}}}],["postt(t[rt].r",{"_index":1009,"t":{"871":{"position":[[1645,15]]},"873":{"position":[[1310,15]]},"875":{"position":[[601,15]]}}}],["pos处的二进制位置为0",{"_index":710,"t":{"861":{"position":[[863,14]]}}}],["pp_arr",{"_index":393,"t":{"833":{"position":[[63,7]]}}}],["ppp的坐标为(x,y)(x",{"_index":1294,"t":{"902":{"position":[[118,19]]}}}],["practic",{"_index":2677,"t":{"1207":{"position":[[44,8]]}}}],["pre",{"_index":1036,"t":{"875":{"position":[[346,3]]},"967":{"position":[[983,3]]},"1088":{"position":[[1023,6]]}}}],["pre[maxn",{"_index":1028,"t":{"875":{"position":[[244,10]]}}}],["pre_stylegan",{"_index":1708,"t":{"1019":{"position":[[54,14]]},"1245":{"position":[[54,14]]}}}],["precis",{"_index":2534,"t":{"1185":{"position":[[150,7]]}}}],["predic",{"_index":481,"t":{"841":{"position":[[1562,27]]}}}],["predict",{"_index":2026,"t":{"1086":{"position":[[442,11]]},"1126":{"position":[[1533,7],[1580,7],[1768,7]]}}}],["predictor",{"_index":1499,"t":{"969":{"position":[[245,10]]},"979":{"position":[[568,14]]},"1006":{"position":[[185,46]]},"1008":{"position":[[185,10]]}}}],["predictor中。从随机分布中sample出的噪声就是nois",{"_index":1508,"t":{"969":{"position":[[703,34]]}}}],["predictor中,而需要预测出的噪声分布的ground",{"_index":1502,"t":{"969":{"position":[[407,29]]}}}],["predictor对噪声denois",{"_index":1533,"t":{"979":{"position":[[107,29]]}}}],["predictor的ground",{"_index":1509,"t":{"969":{"position":[[738,16]]}}}],["predictor预测出的噪声,αˉ1,αˉ2,...αˉt\\bar{\\alpha}_1,\\bar{\\alpha}_2,...\\bar{\\alpha}_tαˉ1​,αˉ2​,...αˉt​以及α1,α2,...αt\\alpha_1,\\alpha_2,...\\alpha_tα1​,α2​,...αt",{"_index":1680,"t":{"1010":{"position":[[592,158]]}}}],["predictor,其输入是加入噪声的图像以及sample出的ttt,而ϵθ\\epsilon_\\thetaϵθ​训练的ground",{"_index":1666,"t":{"1008":{"position":[[717,65]]}}}],["predictor,根据文字prompt对从随机分布中sampl",{"_index":1646,"t":{"1006":{"position":[[490,54]]}}}],["predictor;在生成图片时,输入从该随机分布中sample出的向量,使用训练出的nois",{"_index":1532,"t":{"979":{"position":[[58,48]]}}}],["predit",{"_index":1833,"t":{"1033":{"position":[[1306,9]]},"1259":{"position":[[1303,9]]}}}],["preprocess",{"_index":2686,"t":{"1211":{"position":[[88,10],[161,12]]}}}],["press",{"_index":1145,"t":{"879":{"position":[[2184,7]]}}}],["pret(int",{"_index":999,"t":{"871":{"position":[[1365,8]]},"873":{"position":[[1046,8]]}}}],["pret(rt",{"_index":1019,"t":{"871":{"position":[[2022,9]]},"873":{"position":[[1629,9]]}}}],["pret(t[rt].l",{"_index":1002,"t":{"871":{"position":[[1435,14]]},"873":{"position":[[1116,14]]}}}],["pret(t[rt].r",{"_index":1003,"t":{"871":{"position":[[1450,14]]},"873":{"position":[[1131,14]]}}}],["pretrain",{"_index":2014,"t":{"1084":{"position":[[208,28]]}}}],["prev_permut",{"_index":518,"t":{"841":{"position":[[2667,16]]}}}],["prewitt",{"_index":1413,"t":{"946":{"position":[[116,10]]}}}],["prim",{"_index":2903,"t":{"1334":{"position":[[100,6]]}}}],["primari",{"_index":2754,"t":{"1290":{"position":[[276,7],[310,7],[349,7],[389,7]]}}}],["print",{"_index":1146,"t":{"879":{"position":[[2201,5]]}}}],["print(\"%c\",(asciicode=='\\r",{"_index":1078,"t":{"879":{"position":[[443,28],[1658,28]]}}}],["print(\"\\n",{"_index":1075,"t":{"879":{"position":[[376,9],[1588,9]]}}}],["print(\"argmax",{"_index":2504,"t":{"1181":{"position":[[871,13]]}}}],["print(\"attent",{"_index":1928,"t":{"1055":{"position":[[1532,16],[1748,16],[3902,16],[4044,16]]}}}],["print(\"keys:\\n",{"_index":1920,"t":{"1055":{"position":[[1171,16],[3735,16]]}}}],["print(\"queries:\\n",{"_index":1921,"t":{"1055":{"position":[[1203,19],[3767,19]]}}}],["print(\"to",{"_index":1060,"t":{"879":{"position":[[99,9],[1311,9]]}}}],["print(\"values:\\n",{"_index":1922,"t":{"1055":{"position":[[1241,18],[3805,18]]}}}],["print(\"weight",{"_index":1946,"t":{"1055":{"position":[[2120,15],[4279,15]]}}}],["print(\"welcom",{"_index":1140,"t":{"879":{"position":[[2075,14]]}}}],["print(a",{"_index":2488,"t":{"1181":{"position":[[543,7]]}}}],["print(b",{"_index":2490,"t":{"1181":{"position":[[581,7]]}}}],["print(c.shap",{"_index":2477,"t":{"1181":{"position":[[252,14]]}}}],["print(d.shap",{"_index":2482,"t":{"1181":{"position":[[373,14]]}}}],["print(f'loss",{"_index":2417,"t":{"1150":{"position":[[2464,12]]}}}],["print(f'{metric[2",{"_index":2421,"t":{"1150":{"position":[[2545,18]]}}}],["print(i",{"_index":2511,"t":{"1181":{"position":[[1121,8],[1315,8]]}}}],["print(item",{"_index":2801,"t":{"1298":{"position":[[253,11],[464,11]]}}}],["print(output",{"_index":2772,"t":{"1294":{"position":[[619,13]]}}}],["print(x",{"_index":2766,"t":{"1294":{"position":[[372,8]]}}}],["print(x1",{"_index":2768,"t":{"1294":{"position":[[412,9]]}}}],["print(x2",{"_index":2771,"t":{"1294":{"position":[[527,9]]}}}],["printf(\"%c",{"_index":842,"t":{"868":{"position":[[312,12]]}}}],["printf(\"%d%c\",v[i],i==len",{"_index":997,"t":{"871":{"position":[[1298,25]]},"873":{"position":[[1000,25]]}}}],["printf(\"%d\\n",{"_index":65,"t":{"717":{"position":[[430,14]]}}}],["printf(\"%d\\n\",t[rt].d",{"_index":1049,"t":{"875":{"position":[[628,23]]}}}],["printf(\"7.28",{"_index":947,"t":{"868":{"position":[[3017,12]]}}}],["printf(\"\\t",{"_index":949,"t":{"868":{"position":[[3111,10]]}}}],["printf(\"\\t%d",{"_index":951,"t":{"868":{"position":[[3162,12]]}}}],["printf(first?first=0,\"%d",{"_index":1000,"t":{"871":{"position":[[1398,27],[1528,27],[1661,27]]},"873":{"position":[[1079,27],[1201,27],[1326,27]]}}}],["priority_queue,greater的元素对序列。序列中的元素以const",{"_index":627,"t":{"851":{"position":[[68,21]]}}}],["t[maxn",{"_index":960,"t":{"871":{"position":[[208,9]]},"873":{"position":[[208,9]]},"875":{"position":[[290,9]]}}}],["t[rt].d=pre[rt",{"_index":1042,"t":{"875":{"position":[[437,16]]}}}],["t[rt].l=create(l1,p1",{"_index":1043,"t":{"875":{"position":[[454,20]]}}}],["t[rt].l=mid_po_build(la,p1",{"_index":982,"t":{"871":{"position":[[824,26]]},"873":{"position":[[579,26]]}}}],["t[rt].l=mid_pr_build(la,p1",{"_index":977,"t":{"871":{"position":[[481,26]]},"873":{"position":[[350,26]]}}}],["t[rt].r=create(p1+1,r1,l2+p2+1,r2",{"_index":1045,"t":{"875":{"position":[[490,35]]}}}],["t[rt].r=mid_po_build(p1+1,ra,lb+p2,rb",{"_index":984,"t":{"871":{"position":[[885,37]]},"873":{"position":[[621,37]]}}}],["t[rt].r=mid_pr_build(p1+1,ra,lb+p2+1,rb",{"_index":979,"t":{"871":{"position":[[542,41]]},"873":{"position":[[392,41]]}}}],["t\\vert",{"_index":1301,"t":{"902":{"position":[[325,6]]}}}],["t\\vert)\\tag{3}d8​(p,q)=max(∣x−s∣,∣y−t∣)(3",{"_index":1305,"t":{"902":{"position":[[431,42]]}}}],["tag{10",{"_index":2226,"t":{"1126":{"position":[[1304,8]]}}}],["tag{1}",{"_index":170,"t":{"757":{"position":[[144,12]]}}}],["tag{1}3×3×3×4=108(1",{"_index":2123,"t":{"1104":{"position":[[168,21]]}}}],["tag{1}acc=len(y)∑i(predi​==yi​)​(1",{"_index":2457,"t":{"1175":{"position":[[196,36]]}}}],["tag{1}attention(q,k,v)=softmax(dk​​qkt​)v(1",{"_index":1969,"t":{"1055":{"position":[[2968,45]]}}}],["tag{1}l(y,z)=max(0,−y∗z)(1",{"_index":2282,"t":{"1138":{"position":[[406,28]]}}}],["tag{1}min",{"_index":2087,"t":{"1098":{"position":[[113,10]]}}}],["tag{1}pe(pos,2i)​=sin(100002i/dmodel​pos​)(1",{"_index":1552,"t":{"988":{"position":[[309,46]]},"1222":{"position":[[309,46]]}}}],["tag{1}shapeoutput​=strideshapeinput​−sizekernel​+2∗padding​+1(1",{"_index":2310,"t":{"1145":{"position":[[328,65]]}}}],["tag{1}x1[0,:,:]+x2[0,:,:](1",{"_index":2780,"t":{"1294":{"position":[[894,29]]}}}],["tag{1}yi,j​=h,w∑​wi,j,h,w​∗xh,w​(1",{"_index":2435,"t":{"1157":{"position":[[142,36]]}}}],["tag{1}σ(x)=1+e−x1​(1",{"_index":2144,"t":{"1119":{"position":[[47,22]]}}}],["tag{2}",{"_index":175,"t":{"759":{"position":[[59,12]]}}}],["tag{2}3×3××3=27(2",{"_index":2127,"t":{"1106":{"position":[[100,19]]}}}],["tag{2}d4​(p,q)=∣x−s∣+∣y−t∣(2",{"_index":1302,"t":{"902":{"position":[[332,30]]}}}],["tag{2}dxd",{"_index":2150,"t":{"1119":{"position":[[145,14]]}}}],["tag{2}l(w,b)+2λ​∥w∥12​(2",{"_index":2094,"t":{"1100":{"position":[[110,26]]}}}],["tag{2}pe(pos,2i+1)​=cos(100002i/dmodel​pos​)(2",{"_index":1554,"t":{"988":{"position":[[457,48]]},"1222":{"position":[[457,48]]}}}],["tag{2}x1[1,:,:]+x2[1,:,:](2",{"_index":2783,"t":{"1294":{"position":[[972,29]]}}}],["tag{2}yi,j​=h,w∑​wi,j,h,w​∗xh,w​=a,b∑​vi,j,a,b​∗xi+a,j+b​(2",{"_index":2438,"t":{"1157":{"position":[[364,61]]}}}],["tag{3}1×1×3×4=12(3",{"_index":2132,"t":{"1108":{"position":[[112,20]]}}}],["tag{3}a",{"_index":183,"t":{"761":{"position":[[210,11]]}}}],["tag{3}f(x)={0x​x<0x≥0​(3",{"_index":2162,"t":{"1121":{"position":[[77,26]]}}}],["tag{3}pe(pos+k,2i)=pe(pos,2i)×pe(k,2i+1)+pe(pos,2i+1)×pe(k,2i)pe(pos+k,2i+1)=pe(pos,2i+1)×pe(k,2i+1)−pe(pos,2i)×pe(k,2i)​(3",{"_index":1562,"t":{"988":{"position":[[928,125]]},"1222":{"position":[[928,125]]}}}],["tag{3}x1[2,:,:]+x2[2,:,:](3",{"_index":2786,"t":{"1294":{"position":[[1050,29]]}}}],["tag{3}yi,j​=a,b∑​vi,j,a,b​∗xi+a,j+b​=a,b∑​va,b​∗xi+a,j+b​(3",{"_index":2441,"t":{"1157":{"position":[[636,61]]}}}],["tag{3}∂w∂​(l(w,b)+2λ​∥w∥12​)=∂w∂l(w,b)​+λw(3",{"_index":2101,"t":{"1100":{"position":[[347,46]]}}}],["tag{4}dxdf(x)​={01​x<0x≥0​(4",{"_index":2165,"t":{"1121":{"position":[[213,30]]}}}],["tag{4}inputembedding(pos,i)=wordembedding(pos,i)+positionencoding(pos,i)(4",{"_index":1566,"t":{"988":{"position":[[1234,76]]},"1222":{"position":[[1234,76]]}}}],["tag{4}wt+1​=(1−ηλ)wt​+η∂wt​∂l(wt​,bt​)​(4",{"_index":2108,"t":{"1100":{"position":[[501,43]]}}}],["tag{4}yi,j​=a,b∑​va,b​∗xi+a,j+b​=a=−δ∑δ​b=−δ∑δ​va,b​∗xia​,j+b​(4",{"_index":2446,"t":{"1159":{"position":[[194,66]]}}}],["tag{5}lossmse​=∑[y−f(x)]2(5",{"_index":2171,"t":{"1124":{"position":[[112,29]]}}}],["tag{5}shapeoutput​=strideshapeinput​−sizekernel​+2∗padding​+1(5",{"_index":2448,"t":{"1159":{"position":[[398,65]]}}}],["tag{6}[o1​o2​​]=[α1,1′​α1,2′​​α2,1′​α2,2′​​][v1​v2​​](6",{"_index":1631,"t":{"1002":{"position":[[732,57]]},"1236":{"position":[[732,57]]}}}],["tag{6}∥y−f(x)∥2​=2∑[y−f(x)]2​(6",{"_index":2176,"t":{"1124":{"position":[[220,33]]}}}],["tag{7",{"_index":2193,"t":{"1126":{"position":[[403,7]]}}}],["tag{7}[o1​o2​​]=[α1,1′​α1,2′​​0α2,2′​​][v1​v2​​](7",{"_index":1633,"t":{"1002":{"position":[[1026,52]]},"1236":{"position":[[1026,52]]}}}],["take",{"_index":1269,"t":{"897":{"position":[[54,4]]},"1051":{"position":[[24,5]]}}}],["target",{"_index":1227,"t":{"895":{"position":[[635,6],[828,6],[938,6],[984,6]]},"1185":{"position":[[227,6]]}}}],["target_cc",{"_index":1233,"t":{"895":{"position":[[692,9]]}}}],["target_cc_prefix)gcc",{"_index":1234,"t":{"895":{"position":[[705,22]]}}}],["target_cc_prefix)ld",{"_index":1254,"t":{"895":{"position":[[1063,21]]}}}],["target_direct",{"_index":1804,"t":{"1031":{"position":[[1160,16]]},"1257":{"position":[[1160,16]]}}}],["target_direction:mapp",{"_index":1805,"t":{"1031":{"position":[[1185,23]]},"1257":{"position":[[1186,23]]}}}],["target_embed",{"_index":1745,"t":{"1025":{"position":[[1005,16]]},"1251":{"position":[[1005,16]]}}}],["target_ld",{"_index":1253,"t":{"895":{"position":[[1050,9]]}}}],["target_prompt",{"_index":1715,"t":{"1023":{"position":[[115,14]]},"1249":{"position":[[115,14]]}}}],["target_prompts]).to(devic",{"_index":1733,"t":{"1025":{"position":[[369,27]]},"1251":{"position":[[369,27]]}}}],["target_tokenized_prompt",{"_index":1732,"t":{"1025":{"position":[[305,24],[784,24]]},"1251":{"position":[[305,24],[784,24]]}}}],["task",{"_index":2016,"t":{"1084":{"position":[[337,11]]},"1088":{"position":[[909,6]]}}}],["teacher",{"_index":1618,"t":{"1000":{"position":[[146,11]]},"1002":{"position":[[429,19]]},"1234":{"position":[[146,11]]},"1236":{"position":[[429,19]]}}}],["techniqu",{"_index":2249,"t":{"1129":{"position":[[29,9]]}}}],["tell",{"_index":1276,"t":{"897":{"position":[[130,4]]}}}],["temp",{"_index":2868,"t":{"1319":{"position":[[158,4],[210,4],[253,13],[270,5],[377,4],[516,5]]},"1321":{"position":[[245,4],[297,4],[340,13],[357,5],[464,4],[603,5]]}}}],["templat",{"_index":2714,"t":{"1267":{"position":[[103,10],[617,9],[669,9],[735,9]]}}}],["tensor",{"_index":2773,"t":{"1294":{"position":[[637,10]]}}}],["tensor(0.2684",{"_index":2242,"t":{"1126":{"position":[[1695,14],[1881,14]]}}}],["tensor(1",{"_index":2512,"t":{"1181":{"position":[[1134,11]]}}}],["tensor(2",{"_index":2514,"t":{"1181":{"position":[[1157,11]]}}}],["tensor(3",{"_index":2516,"t":{"1181":{"position":[[1180,11]]}}}],["tensor(4",{"_index":2513,"t":{"1181":{"position":[[1146,10]]}}}],["tensor(5",{"_index":2515,"t":{"1181":{"position":[[1169,10]]}}}],["tensor(6",{"_index":2517,"t":{"1181":{"position":[[1192,10]]}}}],["tensor([1",{"_index":2507,"t":{"1181":{"position":[[947,10],[965,10],[1328,11]]}}}],["tensor([3",{"_index":2520,"t":{"1181":{"position":[[1367,11]]}}}],["tensor([4",{"_index":2519,"t":{"1181":{"position":[[1348,10]]}}}],["tensor([6",{"_index":2521,"t":{"1181":{"position":[[1387,10]]}}}],["tensor([[9",{"_index":2489,"t":{"1181":{"position":[[558,11]]}}}],["tensor([[[0",{"_index":2769,"t":{"1294":{"position":[[426,14],[541,13]]}}}],["tensorflow框架,可以使用tensorboard",{"_index":2719,"t":{"1271":{"position":[[4,36]]}}}],["tensor的*乘法是对tensor",{"_index":2486,"t":{"1181":{"position":[[454,28]]}}}],["term",{"_index":1882,"t":{"1051":{"position":[[110,6]]}}}],["terminal_proxy.sh",{"_index":2848,"t":{"1309":{"position":[[0,23]]}}}],["test",{"_index":334,"t":{"826":{"position":[[29,4],[101,5],[232,4]]},"1129":{"position":[[224,4],[277,7]]},"1131":{"position":[[82,4],[240,4]]},"1133":{"position":[[95,4],[115,5]]},"1150":{"position":[[1771,5],[2519,4]]}}}],["test.first",{"_index":337,"t":{"826":{"position":[[107,10]]}}}],["test.four",{"_index":343,"t":{"826":{"position":[[176,9]]}}}],["test.second",{"_index":338,"t":{"826":{"position":[[125,11]]}}}],["test.third",{"_index":340,"t":{"826":{"position":[[149,10]]}}}],["test_acc",{"_index":2416,"t":{"1150":{"position":[[2367,8],[2453,10]]}}}],["test_acc:.3f",{"_index":2420,"t":{"1150":{"position":[[2528,16]]}}}],["test_it",{"_index":2373,"t":{"1150":{"position":[[1391,10],[2405,10],[2668,9],[2787,10]]}}}],["testdata.json",{"_index":2709,"t":{"1211":{"position":[[557,13]]}}}],["text",{"_index":1439,"t":{"965":{"position":[[78,4],[597,4],[748,4],[837,4]]},"1121":{"position":[[130,7]]},"1305":{"position":[[80,4]]}}}],["text_direct",{"_index":2717,"t":{"1267":{"position":[[601,15]]}}}],["text_featur",{"_index":1806,"t":{"1031":{"position":[[1229,13]]},"1039":{"position":[[22,13],[66,13]]},"1257":{"position":[[1230,13]]},"1267":{"position":[[228,13]]}}}],["textual",{"_index":2040,"t":{"1088":{"position":[[455,7],[522,7]]}}}],["text{subject",{"_index":2082,"t":{"1098":{"position":[[58,13]]}}}],["theta",{"_index":2086,"t":{"1098":{"position":[[106,6],[192,23]]}}}],["third",{"_index":331,"t":{"824":{"position":[[52,6]]}}}],["third:\"method",{"_index":346,"t":{"826":{"position":[[258,13]]}}}],["thpf",{"_index":1393,"t":{"928":{"position":[[522,14]]}}}],["thread",{"_index":1080,"t":{"879":{"position":[[556,8],[565,6],[2169,6],[2238,8],[2247,6],[2324,6]]}}}],["three",{"_index":347,"t":{"826":{"position":[[272,7]]}}}],["time",{"_index":2116,"t":{"1102":{"position":[[94,6]]},"1104":{"position":[[135,6],[144,6],[153,6]]},"1106":{"position":[[70,6],[79,6],[86,6]]},"1108":{"position":[[7,6],[80,6],[89,6],[98,6]]},"1129":{"position":[[243,6],[290,5]]},"1131":{"position":[[187,6]]},"1143":{"position":[[67,6],[98,6]]},"1145":{"position":[[13,6],[22,6],[55,6],[66,6],[77,6],[115,6],[148,6],[158,6],[424,6],[435,6],[444,6],[453,6],[463,6]]},"1349":{"position":[[143,6]]},"1354":{"position":[[167,6]]},"1356":{"position":[[68,6]]},"1366":{"position":[[134,6]]},"1368":{"position":[[70,6],[89,6],[115,6]]}}}],["time.h",{"_index":253,"t":{"815":{"position":[[227,6]]}}}],["timer",{"_index":2392,"t":{"1150":{"position":[[1784,6]]}}}],["timer.start",{"_index":2402,"t":{"1150":{"position":[[1950,13]]}}}],["timer.stop",{"_index":2411,"t":{"1150":{"position":[[2142,12]]}}}],["timer.sum():.1f",{"_index":2422,"t":{"1150":{"position":[[2579,16]]}}}],["tip",{"_index":0,"t":{"703":{"position":[[0,3]]},"709":{"position":[[0,3]]},"715":{"position":[[0,3]]},"767":{"position":[[74,3],[247,3],[409,3]]},"774":{"position":[[0,3]]},"776":{"position":[[0,3]]},"779":{"position":[[0,3]]},"786":{"position":[[38,3]]},"798":{"position":[[135,3]]},"806":{"position":[[0,3]]},"897":{"position":[[0,3]]},"918":{"position":[[271,3]]},"926":{"position":[[33,3]]},"950":{"position":[[0,3]]},"973":{"position":[[126,3]]},"994":{"position":[[1335,3]]},"1004":{"position":[[0,3]]},"1048":{"position":[[282,3]]},"1078":{"position":[[0,3]]},"1094":{"position":[[0,3]]},"1102":{"position":[[0,3]]},"1108":{"position":[[133,3]]},"1188":{"position":[[809,4]]},"1228":{"position":[[1335,3]]},"1271":{"position":[[0,3]]},"1286":{"position":[[0,3]]},"1315":{"position":[[0,3]]},"1321":{"position":[[15,3]]},"1329":{"position":[[736,3]]},"1337":{"position":[[244,3],[382,3]]},"1339":{"position":[[736,3]]},"1345":{"position":[[16,3],[136,3]]},"1354":{"position":[[0,3],[519,3],[721,3]]},"1358":{"position":[[154,3]]},"1360":{"position":[[0,3]]},"1383":{"position":[[0,3]]},"1398":{"position":[[0,3]]},"1402":{"position":[[116,3],[254,3]]}}}],["titile(if",{"_index":2829,"t":{"1305":{"position":[[66,9]]}}}],["titl",{"_index":2823,"t":{"1303":{"position":[[321,7]]},"1305":{"position":[[100,5]]}}}],["title/window",{"_index":2828,"t":{"1305":{"position":[[53,12]]}}}],["title文字不能垂直居中,可以更换为window",{"_index":2822,"t":{"1303":{"position":[[295,25]]}}}],["tlpf",{"_index":1373,"t":{"926":{"position":[[946,14]]}}}],["tmp",{"_index":882,"t":{"868":{"position":[[1435,5],[1545,5],[2882,5]]}}}],["tmp[0",{"_index":885,"t":{"868":{"position":[[1555,7],[2915,8],[3051,7]]}}}],["tmp[2",{"_index":887,"t":{"868":{"position":[[1567,7]]}}}],["tmp[20",{"_index":940,"t":{"868":{"position":[[2832,8]]}}}],["tmp[3",{"_index":943,"t":{"868":{"position":[[2944,8],[3059,8]]}}}],["tmp[max_vertex_num",{"_index":875,"t":{"868":{"position":[[1156,20]]}}}],["toc",{"_index":224,"t":{"810":{"position":[[19,5]]}}}],["todo(\"start",{"_index":1143,"t":{"879":{"position":[[2148,11]]}}}],["token",{"_index":1717,"t":{"1025":{"position":[[20,9],[577,8]]},"1027":{"position":[[44,8],[179,8]]},"1251":{"position":[[20,9],[577,8]]},"1253":{"position":[[44,8],[179,8]]}}}],["tokenize后为tensor",{"_index":1724,"t":{"1025":{"position":[[161,19],[433,19]]},"1251":{"position":[[161,19],[433,19]]}}}],["token或random",{"_index":2018,"t":{"1086":{"position":[[92,12]]}}}],["token所对应的输出向量,随机初始化两个相同维度的向量,分别与输出向量做dot",{"_index":2064,"t":{"1088":{"position":[[1264,57]]}}}],["token进行遮挡后,喂入encoder中。对于每个被mask掉的词汇,bert",{"_index":2019,"t":{"1086":{"position":[[105,68]]}}}],["top",{"_index":84,"t":{"726":{"position":[[134,6],[163,6]]}}}],["topologicalsort",{"_index":801,"t":{"866":{"position":[[1758,30]]}}}],["torch",{"_index":1971,"t":{"1055":{"position":[[3060,5]]},"1119":{"position":[[299,5]]},"1121":{"position":[[288,5]]},"1150":{"position":[[7,5],[37,5],[112,5]]},"1294":{"position":[[285,5]]}}}],["torch.cat([clip.tokenize(p",{"_index":1719,"t":{"1025":{"position":[[57,27],[332,27]]},"1251":{"position":[[57,27],[332,27]]}}}],["torch.concat((a",{"_index":2479,"t":{"1181":{"position":[[295,16]]}}}],["torch.linspac",{"_index":2155,"t":{"1119":{"position":[[309,15]]},"1121":{"position":[[298,15]]}}}],["torch.log",{"_index":2232,"t":{"1126":{"position":[[1444,9]]}}}],["torch.log(torch.softmax(predict",{"_index":2238,"t":{"1126":{"position":[[1590,32]]}}}],["torch.nn",{"_index":2153,"t":{"1119":{"position":[[260,8]]},"1121":{"position":[[249,8]]},"1126":{"position":[[1481,8]]},"1150":{"position":[[64,8]]}}}],["torch.nn.crossentropyloss",{"_index":2385,"t":{"1150":{"position":[[1630,27]]}}}],["torch.nn.crossentropyloss相当于torch.softmax",{"_index":2231,"t":{"1126":{"position":[[1400,41]]}}}],["torch.nn.funct",{"_index":1972,"t":{"1055":{"position":[[3073,19]]}}}],["torch.nn.modul",{"_index":2356,"t":{"1150":{"position":[[971,17]]}}}],["torch.nn.nllloss",{"_index":2233,"t":{"1126":{"position":[[1456,17]]}}}],["torch.nn.sequenti",{"_index":2335,"t":{"1150":{"position":[[505,20]]}}}],["torch.optim.sgd(net.paramet",{"_index":2383,"t":{"1150":{"position":[[1582,33]]}}}],["torch.rand(4",{"_index":2471,"t":{"1181":{"position":[[104,13],[143,13]]}}}],["torch.reshape(x",{"_index":2765,"t":{"1294":{"position":[[347,16]]}}}],["torch.size([2",{"_index":2478,"t":{"1181":{"position":[[269,14]]}}}],["torch.size([4",{"_index":2483,"t":{"1181":{"position":[[390,14]]}}}],["torch.stack((a",{"_index":2474,"t":{"1181":{"position":[[182,15]]}}}],["torch.sum(y_hat.argmax(dim=1",{"_index":2370,"t":{"1150":{"position":[[1328,29]]}}}],["torch.tensor([1",{"_index":2240,"t":{"1126":{"position":[[1640,16],[1823,16]]},"1181":{"position":[[1043,16]]}}}],["torch.tensor([4",{"_index":2509,"t":{"1181":{"position":[[1071,16]]}}}],["torch.tensor([[0",{"_index":1915,"t":{"1055":{"position":[[781,17],[961,17],[3365,17],[3545,17]]}}}],["torch.tensor([[0.1",{"_index":2496,"t":{"1181":{"position":[[777,19]]}}}],["torch.tensor([[1",{"_index":1917,"t":{"1055":{"position":[[871,17],[3455,17]]},"1181":{"position":[[1211,17]]}}}],["torch.tensor([[2",{"_index":2237,"t":{"1126":{"position":[[1543,17],[1778,17]]}}}],["torch.tensor([[3",{"_index":2487,"t":{"1181":{"position":[[487,17]]}}}],["torch.tensor([[4",{"_index":2518,"t":{"1181":{"position":[[1252,17]]}}}],["torch.tensor(input",{"_index":1894,"t":{"1055":{"position":[[214,20],[3261,20]]}}}],["torch.tensor(np.arange(9",{"_index":2764,"t":{"1294":{"position":[[295,26]]}}}],["torchaudio",{"_index":1696,"t":{"1017":{"position":[[74,10]]},"1243":{"position":[[74,10]]}}}],["torchvis",{"_index":1695,"t":{"1017":{"position":[[62,11]]},"1243":{"position":[[62,11]]}}}],["tqdm",{"_index":1701,"t":{"1017":{"position":[[147,4]]},"1243":{"position":[[147,4]]}}}],["train",{"_index":1490,"t":{"967":{"position":[[987,12]]},"1031":{"position":[[334,5]]},"1055":{"position":[[654,9]]},"1129":{"position":[[214,5]]},"1131":{"position":[[144,8]]},"1133":{"position":[[0,5],[14,5]]},"1150":{"position":[[1758,6],[2492,5]]},"1188":{"position":[[799,9]]},"1211":{"position":[[340,9]]},"1257":{"position":[[334,5]]}}}],["train(lenet",{"_index":2430,"t":{"1150":{"position":[[2762,12]]}}}],["train(net",{"_index":2371,"t":{"1150":{"position":[[1368,10]]}}}],["train_acc",{"_index":2414,"t":{"1150":{"position":[[2187,9],[2349,10]]}}}],["train_acc:.3f",{"_index":2419,"t":{"1150":{"position":[[2502,16]]}}}],["train_it",{"_index":2372,"t":{"1150":{"position":[[1379,11],[2656,11],[2775,11]]}}}],["train_l",{"_index":2412,"t":{"1150":{"position":[[2155,7],[2339,9]]}}}],["train_l:.3f",{"_index":2418,"t":{"1150":{"position":[[2477,14]]}}}],["train_lay",{"_index":1787,"t":{"1031":{"position":[[280,12],[379,12],[394,14]]},"1257":{"position":[[280,12],[379,12],[394,14]]}}}],["trained的cnn,该cnn通常使用预训练的incept",{"_index":1479,"t":{"967":{"position":[[89,33]]}}}],["training&fin",{"_index":2060,"t":{"1088":{"position":[[1030,13]]}}}],["tran",{"_index":2580,"t":{"1188":{"position":[[691,5],[707,5]]}}}],["transform",{"_index":477,"t":{"841":{"position":[[1413,9]]},"957":{"position":[[0,11]]},"981":{"position":[[20,23]]},"986":{"position":[[0,11]]},"998":{"position":[[2,11],[104,11],[486,18],[609,11]]},"1090":{"position":[[412,11]]},"1207":{"position":[[56,12]]},"1209":{"position":[[57,11],[101,12]]},"1215":{"position":[[20,23]]},"1220":{"position":[[0,11]]},"1232":{"position":[[2,11],[104,11],[486,18],[609,11]]}}}],["transformers)本身是一种预训练的模型架构,通常是在大规模无标签数据上进行预训练,然后在特定任务上进行微调。bert",{"_index":2013,"t":{"1084":{"position":[[98,92]]}}}],["transformer实战练习,代码见github",{"_index":2676,"t":{"1207":{"position":[[5,28]]}}}],["transformer是sequ",{"_index":1543,"t":{"981":{"position":[[70,20]]},"1215":{"position":[[70,20]]}}}],["transformer由encoder和decoder组成,编码器和解码器都包含6个block",{"_index":1546,"t":{"983":{"position":[[0,58]]},"1217":{"position":[[0,58]]}}}],["transformer的推理阶段,自回归类型的decoder根据分词方式的不同,一个词汇一个词汇的输出,将当前时间步之前生成的所有词汇作为输入load进入decoder中。但在训练时如果遵从同样的生成范式会大大降低效率,并且面临则一步错步步错的风险(error",{"_index":1616,"t":{"1000":{"position":[[0,131]]},"1234":{"position":[[0,131]]}}}],["transformer训练时采取的teach",{"_index":1598,"t":{"994":{"position":[[826,33]]},"1228":{"position":[[826,33]]}}}],["treat",{"_index":1219,"t":{"895":{"position":[[336,7]]}}}],["treebank",{"_index":2055,"t":{"1088":{"position":[[747,33]]}}}],["true",{"_index":374,"t":{"826":{"position":[[834,5]]},"853":{"position":[[231,11]]},"857":{"position":[[198,16]]},"864":{"position":[[698,5],[1559,5]]},"866":{"position":[[1047,5],[1108,6]]},"868":{"position":[[71,4]]}}}],["true;//加入拓扑排序的顶点为n",{"_index":817,"t":{"866":{"position":[[2214,30]]}}}],["truncat",{"_index":1739,"t":{"1025":{"position":[[725,19]]},"1251":{"position":[[725,19]]}}}],["trung",{"_index":2579,"t":{"1188":{"position":[[685,5],[730,5]]}}}],["truth",{"_index":1510,"t":{"969":{"position":[[755,6]]},"1086":{"position":[[248,21]]}}}],["truth一次性喂到decod",{"_index":1620,"t":{"1000":{"position":[[176,38]]},"1234":{"position":[[176,38]]}}}],["truth做bc",{"_index":2923,"t":{"1347":{"position":[[64,9]]}}}],["truth做cross",{"_index":2072,"t":{"1092":{"position":[[119,11]]}}}],["truth对nois",{"_index":1540,"t":{"979":{"position":[[556,11]]}}}],["truth就是sampl",{"_index":1503,"t":{"969":{"position":[[437,18]]}}}],["truth就是第3步中sample出的噪声ϵ\\epsilon",{"_index":1667,"t":{"1008":{"position":[[783,32]]}}}],["truth的bc",{"_index":2926,"t":{"1347":{"position":[[119,9]]}}}],["truth的策略,但是还额外需要一个encoder来产生lat",{"_index":1505,"t":{"969":{"position":[[553,34]]}}}],["tsinghua",{"_index":1706,"t":{"1019":{"position":[[30,8]]},"1245":{"position":[[30,8]]}}}],["ttt从t,…,1t,\\ldots,1t,…,1范围循环ttt",{"_index":1670,"t":{"1010":{"position":[[54,33]]}}}],["ttt是从1,…,t1,\\ldots,t1,…,t范围中sample出的一个integ",{"_index":1657,"t":{"1008":{"position":[[50,46]]}}}],["ttt计数的循环,若t>1t>1t>1,则从normal",{"_index":1671,"t":{"1010":{"position":[[88,34]]}}}],["tune",{"_index":1615,"t":{"998":{"position":[[580,28]]},"1084":{"position":[[267,13]]},"1188":{"position":[[139,10],[158,54],[459,6]]},"1232":{"position":[[580,28]]},"1269":{"position":[[295,9]]}}}],["tuning范式与scratch范式的训练效果做了对比,其中scratch范式即使用传统的随机初始化的方式从头训练整个分类网络。可以看到预训练&微调的训练范式可以加速模型的收敛(converg",{"_index":2061,"t":{"1088":{"position":[[1044,109]]}}}],["two",{"_index":342,"t":{"826":{"position":[[170,5]]}}}],["tx0+1−αˉtϵ,t)∥2(1)\\nabla_{\\theta}\\left\\|\\boldsymbol{\\epsilon",{"_index":1660,"t":{"1008":{"position":[[196,71]]}}}],["type(m",{"_index":2376,"t":{"1150":{"position":[[1451,7],[1475,7]]}}}],["typedef",{"_index":349,"t":{"826":{"position":[[323,7],[540,7]]},"828":{"position":[[0,7]]},"864":{"position":[[126,7],[274,7]]},"866":{"position":[[198,7],[415,7]]},"868":{"position":[[165,7],[185,7],[357,7],[390,7],[489,7],[585,7]]},"871":{"position":[[100,7]]},"873":{"position":[[100,7]]},"875":{"position":[[186,7]]}}}],["u",{"_index":234,"t":{"812":{"position":[[198,1],[218,1],[239,1]]},"868":{"position":[[1992,2],[2264,3],[2310,6],[2512,9]]},"965":{"position":[[638,1],[696,1],[810,1]]},"1305":{"position":[[347,1]]},"1345":{"position":[[0,4],[125,1]]}}}],["u,int",{"_index":904,"t":{"868":{"position":[[2247,5]]}}}],["u==v",{"_index":910,"t":{"868":{"position":[[2361,6]]}}}],["u=q.front();//取队首顶点u",{"_index":807,"t":{"866":{"position":[[1926,20]]}}}],["udg",{"_index":846,"t":{"868":{"position":[[374,4]]}}}],["ull",{"_index":293,"t":{"821":{"position":[[381,3],[588,3]]}}}],["uncertainti",{"_index":2185,"t":{"1126":{"position":[[139,12]]}}}],["unchang",{"_index":2459,"t":{"1175":{"position":[[322,9]]}}}],["uncom",{"_index":1183,"t":{"881":{"position":[[851,9]]},"895":{"position":[[1907,9]]}}}],["uncondit",{"_index":1993,"t":{"1072":{"position":[[145,13],[171,13]]}}}],["undefin",{"_index":1256,"t":{"895":{"position":[[1101,9]]}}}],["understand",{"_index":1472,"t":{"965":{"position":[[887,13]]},"1088":{"position":[[125,13]]}}}],["unfreez",{"_index":1783,"t":{"1031":{"position":[[161,8],[271,8],[507,8]]},"1257":{"position":[[161,8],[271,8],[507,8]]}}}],["unfreeze,然后对更新哪些层做出选择,承担选择任务的功能函数:model.zssgan.zssgan.determine_opt_lay",{"_index":1781,"t":{"1031":{"position":[[70,77]]},"1257":{"position":[[70,77]]}}}],["unifi",{"_index":1653,"t":{"1006":{"position":[[833,7]]}}}],["uniqu",{"_index":478,"t":{"841":{"position":[[1448,6],[1520,9]]}}}],["unique_copi",{"_index":479,"t":{"841":{"position":[[1491,11]]}}}],["unordered_map",{"_index":92,"t":{"726":{"position":[[255,14]]},"744":{"position":[[136,14]]}}}],["unordered_multimap",{"_index":94,"t":{"726":{"position":[[290,22]]}}}],["unordered_multimap的操作和set或者map等的操作基本一致,唯一的区别就是不支持类似lower_bound",{"_index":153,"t":{"744":{"position":[[171,69]]}}}],["unordered_multiset",{"_index":93,"t":{"726":{"position":[[270,19]]},"744":{"position":[[151,19]]}}}],["unordered_set",{"_index":91,"t":{"726":{"position":[[240,14]]},"744":{"position":[[121,14]]}}}],["unset",{"_index":2855,"t":{"1309":{"position":[[222,5],[238,5],[255,5]]}}}],["unsign",{"_index":294,"t":{"821":{"position":[[385,8]]},"861":{"position":[[1001,8]]}}}],["until",{"_index":2288,"t":{"1138":{"position":[[646,5]]}}}],["unzipped_list",{"_index":2803,"t":{"1298":{"position":[[389,14],[448,15]]}}}],["updat",{"_index":2272,"t":{"1133":{"position":[[47,6]]}}}],["update='append",{"_index":2730,"t":{"1278":{"position":[[261,16],[336,16]]},"1280":{"position":[[227,16]]}}}],["upper_bound",{"_index":496,"t":{"841":{"position":[[2014,11]]}}}],["us",{"_index":9,"t":{"705":{"position":[[25,5]]},"711":{"position":[[25,5]]},"717":{"position":[[25,5]]},"817":{"position":[[0,5]]},"819":{"position":[[250,5]]},"843":{"position":[[1481,5]]},"864":{"position":[[53,5]]},"866":{"position":[[119,5]]},"871":{"position":[[79,5]]},"873":{"position":[[79,5]]},"875":{"position":[[165,5]]},"879":{"position":[[931,4]]},"881":{"position":[[969,6]]},"895":{"position":[[760,4],[1206,4],[2025,6]]},"1055":{"position":[[524,5],[2477,3]]},"1129":{"position":[[39,4],[250,5]]},"1131":{"position":[[70,4],[132,4],[215,4]]},"1133":{"position":[[126,4]]},"1209":{"position":[[53,3]]},"1321":{"position":[[66,5]]}}}],["user",{"_index":429,"t":{"839":{"position":[[839,5]]}}}],["usual",{"_index":1900,"t":{"1055":{"position":[[480,7]]}}}],["util",{"_index":616,"t":{"849":{"position":[[0,11]]}}}],["utils/text_templates.pi",{"_index":2713,"t":{"1267":{"position":[[76,23],[752,23]]}}}],["utkarsh",{"_index":2563,"t":{"1188":{"position":[[497,12]]}}}],["uttr",{"_index":2703,"t":{"1211":{"position":[[410,4],[575,4]]}}}],["ux+vy)}dudv\\tag{8}f(x,y)=∫−∞∞​∫−∞∞​f(u,v)ej2π(ux+vy)dudv(8",{"_index":1327,"t":{"908":{"position":[[812,60]]}}}],["ux+vy)}dxdy\\tag{7}f(u,v)=∫−∞∞​∫−∞∞​f(x,y)e−j2π(ux+vy)dxdy(7",{"_index":1324,"t":{"908":{"position":[[632,61]]}}}],["ux}du\\tag{6}f(x)=∫−∞∞​f(u)ej2πuxdu(6",{"_index":1320,"t":{"908":{"position":[[475,37]]}}}],["ux}dx\\tag{5}f(u)=∫−∞+∞​f(x)e−j2πuxdx(5",{"_index":1317,"t":{"908":{"position":[[359,39]]}}}],["ux}{n}}\\tag{10}f(x)=n1​u=0∑n−1​f(u)ejn2πux​(10",{"_index":1334,"t":{"908":{"position":[[1095,47]]}}}],["ux}{n}}\\tag{9}f(u)=x=0∑n−1​f(x)e−jn2πux​(9",{"_index":1331,"t":{"908":{"position":[[960,43]]}}}],["v",{"_index":898,"t":{"868":{"position":[[1995,8],[2612,2]]},"871":{"position":[[1118,2]]},"873":{"position":[[820,2]]}}}],["v,int",{"_index":905,"t":{"868":{"position":[[2253,5]]}}}],["v.push_back(w",{"_index":990,"t":{"871":{"position":[[1179,15]]},"873":{"position":[[881,15]]}}}],["v1",{"_index":2932,"t":{"1354":{"position":[[22,12]]}}}],["v3",{"_index":1811,"t":{"1033":{"position":[[76,2],[1223,2],[1252,2]]},"1259":{"position":[[76,2],[1220,2],[1249,2]]}}}],["v3模型。在计算fid时,生成图像和真实图像分别输入到预训练的cnn中,提取出各自的特征表示向量(representation)。这两个represent",{"_index":1480,"t":{"967":{"position":[[123,105]]}}}],["v=g.vertexs[u].connectors[i];//u的后继节点v",{"_index":809,"t":{"866":{"position":[[2011,38]]}}}],["v_n",{"_index":169,"t":{"757":{"position":[[137,6]]},"761":{"position":[[171,4],[203,6]]}}}],["v_t",{"_index":167,"t":{"757":{"position":[[127,4]]},"759":{"position":[[53,5]]},"761":{"position":[[193,4]]}}}],["vae、gan以及diffus",{"_index":1427,"t":{"961":{"position":[[0,18]]}}}],["vae在训练过程中,期待ecoder输入多张图片后,输出的向量在一起符合某个随机分布(e.g",{"_index":1527,"t":{"973":{"position":[[130,47]]}}}],["vae的数学原理,从vae到diffus",{"_index":1651,"t":{"1006":{"position":[[735,38]]}}}],["vae)与diffus",{"_index":1647,"t":{"1006":{"position":[[591,14]]}}}],["vae)的训练策略是使用encoder将输入图像对应(嵌入)到一个符合某随机分布的向量,再将该向量作为decoder的输入,加上文字prompt",{"_index":1526,"t":{"973":{"position":[[39,86]]}}}],["val",{"_index":532,"t":{"843":{"position":[[677,4],[722,6],[1038,4]]},"845":{"position":[[497,4],[698,4],[743,6],[982,4]]}}}],["valid",{"_index":2248,"t":{"1129":{"position":[[13,10],[139,10]]},"1131":{"position":[[34,11]]},"1133":{"position":[[54,10]]},"1211":{"position":[[474,5]]}}}],["valu",{"_index":632,"t":{"851":{"position":[[361,6],[510,8]]},"1055":{"position":[[766,6],[1089,6],[1145,6],[1260,7],[1812,18],[1972,6],[2008,6],[2074,9],[3350,6],[3653,6],[3709,6],[3824,7],[4131,6],[4167,6],[4233,9]]}}}],["value^{n",{"_index":1982,"t":{"1057":{"position":[[262,8]]}}}],["var",{"_index":2751,"t":{"1290":{"position":[[260,4],[294,4],[333,4],[373,4]]}}}],["variat",{"_index":1524,"t":{"973":{"position":[[0,18]]},"1006":{"position":[[545,25]]}}}],["vc++6.0中指针初始化为0xcccccccc",{"_index":869,"t":{"868":{"position":[[873,26]]}}}],["vc++6.0中指针初始化为0xcccccccc,如果不将指针初始化为null",{"_index":878,"t":{"868":{"position":[[1221,45]]}}}],["vec",{"_index":2874,"t":{"1321":{"position":[[820,4]]}}}],["vec.empti",{"_index":2879,"t":{"1321":{"position":[[971,13]]}}}],["vec.push_back(remaind",{"_index":2877,"t":{"1321":{"position":[[904,25]]}}}],["vec.rbegin",{"_index":2880,"t":{"1321":{"position":[[1024,13]]}}}],["vec.rend",{"_index":2881,"t":{"1321":{"position":[[1044,11]]}}}],["vector",{"_index":76,"t":{"726":{"position":[[19,17]]},"728":{"position":[[94,19],[224,12]]},"817":{"position":[[68,6]]},"843":{"position":[[0,10],[149,81],[231,27],[433,12],[1301,33],[1338,55],[1472,8]]},"864":{"position":[[29,8]]},"866":{"position":[[50,8]]},"1031":{"position":[[845,10]]},"1257":{"position":[[845,10]]}}}],["vector::iter",{"_index":783,"t":{"866":{"position":[[1177,24]]}}}],["vector为底层容器,堆heap",{"_index":416,"t":{"839":{"position":[[448,41]]}}}],["vector对象,存储的是int",{"_index":520,"t":{"843":{"position":[[277,27]]}}}],["vector对象,并从由迭代器first和last定义的序列[first",{"_index":525,"t":{"843":{"position":[[380,41]]}}}],["vector的s",{"_index":99,"t":{"728":{"position":[[61,18]]}}}],["ver",{"_index":858,"t":{"868":{"position":[[644,5]]}}}],["veri",{"_index":1190,"t":{"881":{"position":[[962,4]]},"895":{"position":[[2018,4]]},"1055":{"position":[[2756,4]]}}}],["vernum",{"_index":864,"t":{"868":{"position":[[798,7],[1339,7],[1456,8]]}}}],["vernum,arcnum",{"_index":856,"t":{"868":{"position":[[621,14]]}}}],["vers[a].firstarc",{"_index":895,"t":{"868":{"position":[[1752,18],[1793,18],[1875,17]]}}}],["vers[i].data=tmp[i",{"_index":884,"t":{"868":{"position":[[1473,21]]}}}],["vers[i].firstarc",{"_index":867,"t":{"868":{"position":[[847,17]]}}}],["version/src/project0/build目录下执行mak",{"_index":1213,"t":{"895":{"position":[[43,35]]}}}],["version/src/projecti/build",{"_index":1199,"t":{"885":{"position":[[287,33]]},"889":{"position":[[114,29]]}}}],["version/src/projecti/build文件夹下进行,即要在终端中通过cd",{"_index":1149,"t":{"881":{"position":[[17,49]]}}}],["version/src/projecti/build目录下创建.bochsrc",{"_index":1266,"t":{"895":{"position":[[1379,41]]}}}],["version/src/projecti/build目录下的makefi",{"_index":1226,"t":{"895":{"position":[[593,39],[1158,39]]}}}],["version/src/projecti/build目录下的makefie文件(由于每个project下都存在一个对应的makefil",{"_index":1220,"t":{"895":{"position":[[369,71]]}}}],["version/src/projecti/src/geeko",{"_index":1198,"t":{"885":{"position":[[232,37]]}}}],["version/src/projecti/src/geekos/main.c",{"_index":1057,"t":{"879":{"position":[[9,40]]}}}],["version/src/目录下会存在project0",{"_index":1195,"t":{"885":{"position":[[131,26]]}}}],["vert",{"_index":2083,"t":{"1098":{"position":[[83,5]]},"1100":{"position":[[92,5],[273,5]]}}}],["vert^2_1",{"_index":2084,"t":{"1098":{"position":[[91,9]]},"1100":{"position":[[100,9],[281,9]]}}}],["vert_2",{"_index":2174,"t":{"1124":{"position":[[181,7]]}}}],["vertex",{"_index":350,"t":{"826":{"position":[[338,6],[414,8],[516,7],[578,8]]},"864":{"position":[[141,6],[198,8],[250,7],[312,8]]},"866":{"position":[[213,6],[289,8],[391,7],[453,8]]}}}],["vertex(int",{"_index":355,"t":{"826":{"position":[[460,10]]},"864":{"position":[[219,10]]},"866":{"position":[[335,10]]}}}],["vertexs.resize(1",{"_index":370,"t":{"826":{"position":[[752,18]]},"866":{"position":[[627,18]]}}}],["vertexs.resize(n",{"_index":367,"t":{"826":{"position":[[697,18]]},"864":{"position":[[431,18]]},"866":{"position":[[572,18]]}}}],["vertexs.s",{"_index":719,"t":{"864":{"position":[[516,16]]},"866":{"position":[[712,16]]}}}],["vertexs[id1].connectors.push_back(id2",{"_index":720,"t":{"864":{"position":[[560,39],[609,39]]},"866":{"position":[[756,39],[856,39]]}}}],["vertexs[id1].indegre",{"_index":773,"t":{"866":{"position":[[962,24]]}}}],["vertexs[id1].outdegre",{"_index":771,"t":{"866":{"position":[[796,25],[936,25]]}}}],["vertexs[id2].connectors.push_back(id1",{"_index":721,"t":{"864":{"position":[[649,39]]},"866":{"position":[[896,39]]}}}],["vertexs[id2].indegre",{"_index":772,"t":{"866":{"position":[[822,24],[1013,24]]}}}],["vertexs[id2].outdegre",{"_index":774,"t":{"866":{"position":[[987,25]]}}}],["vertexs[id].connectors.s",{"_index":733,"t":{"864":{"position":[[920,30],[1353,30]]}}}],["vertexs[id].connectors[i",{"_index":734,"t":{"864":{"position":[[968,26],[1401,26]]}}}],["vertextyp",{"_index":838,"t":{"868":{"position":[[218,10],[511,10],[941,10],[2108,10]]}}}],["vertic",{"_index":2832,"t":{"1305":{"position":[[124,11]]}}}],["vga_update_interv",{"_index":1177,"t":{"881":{"position":[[749,20]]},"895":{"position":[[1805,20]]}}}],["vgaromimag",{"_index":1160,"t":{"881":{"position":[[453,12]]},"895":{"position":[[1509,12]]}}}],["vi",{"_index":2723,"t":{"1278":{"position":[[26,3]]},"1280":{"position":[[26,3]]}}}],["via",{"_index":2528,"t":{"1183":{"position":[[110,3]]},"1188":{"position":[[627,3]]}}}],["viet",{"_index":2581,"t":{"1188":{"position":[[697,4]]}}}],["vis.line([0",{"_index":2725,"t":{"1278":{"position":[[116,14]]}}}],["vis.line([[0",{"_index":2733,"t":{"1280":{"position":[[41,14]]}}}],["vis.line([loss.item",{"_index":2731,"t":{"1278":{"position":[[289,23]]}}}],["visdom",{"_index":2721,"t":{"1273":{"position":[[12,6]]},"1276":{"position":[[0,28],[37,6]]},"1278":{"position":[[5,6],[19,6],[32,8]]},"1280":{"position":[[5,6],[19,6],[32,8]]}}}],["visdom.serv",{"_index":2722,"t":{"1276":{"position":[[54,13]]}}}],["visit",{"_index":724,"t":{"864":{"position":[[753,8],[1132,8]]}}}],["visit(vertextyp",{"_index":841,"t":{"868":{"position":[[290,16]]}}}],["visit[cnt]=0",{"_index":946,"t":{"868":{"position":[[2992,13]]}}}],["visit[max_vertex_num",{"_index":899,"t":{"868":{"position":[[2077,22]]}}}],["visit[p",{"_index":919,"t":{"868":{"position":[[2568,8]]}}}],["visit[u]=0",{"_index":923,"t":{"868":{"position":[[2679,11]]}}}],["visit[u]=1",{"_index":907,"t":{"868":{"position":[[2298,11]]}}}],["visited.count(id1",{"_index":735,"t":{"864":{"position":[[998,19],[1431,19]]}}}],["visited.insert(id1",{"_index":737,"t":{"864":{"position":[[1044,20],[1497,20]]}}}],["visited.insert(start",{"_index":728,"t":{"864":{"position":[[802,22],[1216,22]]}}}],["viz.line([[y1",{"_index":2737,"t":{"1280":{"position":[[177,14]]}}}],["viz.line([real_y_data",{"_index":2728,"t":{"1278":{"position":[[208,23]]}}}],["vnode",{"_index":852,"t":{"868":{"position":[[504,6],[547,7]]}}}],["vnv_nvn",{"_index":207,"t":{"793":{"position":[[68,21]]}}}],["voc1voc_1voc1​词汇向量输入时,在decoder中,voc1voc_1voc1",{"_index":1627,"t":{"1002":{"position":[[177,87]]},"1236":{"position":[[177,87]]}}}],["vocabulari",{"_index":1584,"t":{"994":{"position":[[6,16]]},"1228":{"position":[[6,16]]}}}],["vocabulary)是一个包含了在特定语言或任务中所有可能出现的所有单词或标记的集合。在自然语言处理(nlp",{"_index":1585,"t":{"994":{"position":[[23,95]]},"1228":{"position":[[23,95]]}}}],["voc中,类别种类为20类,因此在预测阶段输出的[7",{"_index":2949,"t":{"1354":{"position":[[423,27]]}}}],["void",{"_index":775,"t":{"866":{"position":[[1073,4]]},"868":{"position":[[285,4],[2215,4]]},"871":{"position":[[1073,4],[1360,4],[1475,4],[1590,4]]},"873":{"position":[[775,4],[1041,4],[1148,4],[1255,4]]},"875":{"position":[[539,4]]},"879":{"position":[[82,4],[1294,4],[1833,4]]}}}],["voxceleb1",{"_index":2684,"t":{"1211":{"position":[[24,10],[72,10]]}}}],["vrtype",{"_index":839,"t":{"868":{"position":[[248,6],[433,6]]}}}],["vtv_tvt",{"_index":206,"t":{"793":{"position":[[47,20]]}}}],["vt​∪vn​)∗(1",{"_index":171,"t":{"757":{"position":[[157,15]]}}}],["vt​∪vn​)∗(3",{"_index":184,"t":{"761":{"position":[[229,15]]}}}],["vt∗(2)",{"_index":172,"t":{"759":{"position":[[6,9]]}}}],["vt∗​(2",{"_index":176,"t":{"759":{"position":[[72,9]]}}}],["vt∪vn)∗(1)",{"_index":164,"t":{"757":{"position":[[73,14]]}}}],["vt∪vn)∗(3)\\alpha",{"_index":181,"t":{"761":{"position":[[115,19]]}}}],["v当前是第k",{"_index":906,"t":{"868":{"position":[[2268,10]]}}}],["v的入度减1",{"_index":811,"t":{"866":{"position":[[2067,9]]}}}],["w",{"_index":1761,"t":{"1029":{"position":[[185,1],[200,36],[390,1],[407,3],[411,1],[452,3],[764,1],[802,1],[812,1],[847,1],[881,1],[891,1]]},"1031":{"position":[[533,1],[585,1],[664,1],[737,6],[896,15],[951,1]]},"1036":{"position":[[68,1],[342,1],[612,1]]},"1041":{"position":[[13,1]]},"1098":{"position":[[89,1]]},"1100":{"position":[[98,1],[237,2],[279,1],[332,2],[345,1]]},"1138":{"position":[[564,1],[608,1],[612,1]]},"1145":{"position":[[451,1]]},"1255":{"position":[[185,1],[200,36],[390,1],[407,3],[411,1],[452,3],[765,1],[803,1],[813,1],[848,1],[882,1],[892,1]]},"1257":{"position":[[533,1],[585,1],[664,1],[737,6],[896,15],[951,1]]},"1262":{"position":[[68,1],[342,1],[612,1]]},"1265":{"position":[[13,1]]},"1300":{"position":[[170,3]]},"1354":{"position":[[308,2]]}}}],["w')o(co​×ci​×h×w×h′×w",{"_index":2312,"t":{"1145":{"position":[[470,23]]}}}],["w'co​×h′×w",{"_index":2305,"t":{"1145":{"position":[[165,11]]}}}],["w(l(w,b)+λ2∥w∥12)=∂l(w,b)∂w+λw(3)\\frac{\\partial}{\\parti",{"_index":2096,"t":{"1100":{"position":[[177,59]]}}}],["w=q.front",{"_index":989,"t":{"871":{"position":[[1157,12]]},"873":{"position":[[859,12]]}}}],["w][b,1,h,w]的tensor",{"_index":2974,"t":{"1362":{"position":[[196,46]]}}}],["w][b,1,h,w]的tensor,再将二者concat后通过7×77",{"_index":2978,"t":{"1366":{"position":[[97,36]]}}}],["w][b,c,h,w]分别经过最大池化和平均池化来压缩空间维度、学习通道之间的特征,得到[b,c,1,1][b",{"_index":2975,"t":{"1364":{"position":[[24,56]]}}}],["w][b,c,h,w]分别经过最大池化和平均池化(通过torch.max和torch.mean函数实现)得到[b,1,h,w][b",{"_index":2977,"t":{"1366":{"position":[[24,66]]}}}],["w][b,c,h,w]的特征图通过池化挤压宽高维度,得到[b,c,1,1][b",{"_index":2989,"t":{"1372":{"position":[[56,40]]}}}],["w][b,c,h,w]经过空间注意力机制算法得到[b,1,h,w][b",{"_index":2973,"t":{"1362":{"position":[[153,36]]}}}],["w][b,c,h,w]经过通道注意力机制算法得到[b,c,1,1][b",{"_index":2971,"t":{"1362":{"position":[[30,36]]}}}],["w_2\\\\1&d(u,v",{"_index":1404,"t":{"930":{"position":[[525,14]]}}}],["w_2\\end{cases}\\tag{24}h(u,v)=⎩⎨⎧​101​d(u,v)w2​​(24",{"_index":1405,"t":{"930":{"position":[[540,76]]}}}],["w_code",{"_index":1853,"t":{"1036":{"position":[[139,20]]},"1262":{"position":[[139,20]]}}}],["w_encod",{"_index":1856,"t":{"1036":{"position":[[288,9]]},"1262":{"position":[[288,9]]}}}],["w_key",{"_index":1914,"t":{"1055":{"position":[[773,5],[1112,5],[3357,5],[3676,5]]}}}],["w_queri",{"_index":1916,"t":{"1055":{"position":[[861,7],[1137,7],[3445,7],[3701,7]]}}}],["w_t",{"_index":2107,"t":{"1100":{"position":[[496,4]]}}}],["w_valu",{"_index":1918,"t":{"1055":{"position":[[951,7],[1163,7],[3535,7],[3727,7]]}}}],["wall",{"_index":1262,"t":{"895":{"position":[[1266,4],[1315,4]]}}}],["warn",{"_index":1217,"t":{"895":{"position":[[321,8]]}}}],["waveform",{"_index":2687,"t":{"1211":{"position":[[107,9]]}}}],["wci​×h×w",{"_index":2298,"t":{"1145":{"position":[[29,8]]}}}],["weight",{"_index":850,"t":{"868":{"position":[[440,7]]},"1055":{"position":[[468,7],[736,7],[1963,8],[3320,7],[4122,8]]},"1175":{"position":[[336,7]]},"1290":{"position":[[420,7]]}}}],["weighted_valu",{"_index":1944,"t":{"1055":{"position":[[2056,15],[2149,16],[4215,15],[4308,16]]}}}],["weighted_values.sum(dim=0",{"_index":1949,"t":{"1055":{"position":[[2395,26],[4353,26]]}}}],["welcom",{"_index":2743,"t":{"1290":{"position":[[101,8]]}}}],["well",{"_index":1955,"t":{"1055":{"position":[[2531,4]]}}}],["werror",{"_index":1224,"t":{"895":{"position":[[507,6]]}}}],["while(!q.empti",{"_index":806,"t":{"866":{"position":[[1903,18]]},"871":{"position":[[1133,17]]},"873":{"position":[[835,17]]}}}],["while(1",{"_index":1065,"t":{"879":{"position":[[150,8],[1362,8]]}}}],["while(cin",{"_index":548,"t":{"843":{"position":[[1537,9]]}}}],["while(g.s",{"_index":729,"t":{"864":{"position":[[825,14],[1273,14]]}}}],["while(in[p1]!=pre[rt",{"_index":1040,"t":{"875":{"position":[[398,22]]}}}],["while(it!=g.vertexs.end",{"_index":785,"t":{"866":{"position":[[1226,27]]}}}],["while(m",{"_index":780,"t":{"866":{"position":[[1128,7]]}}}],["while(mid[p1]!=rt",{"_index":973,"t":{"871":{"position":[[431,18],[774,18]]},"873":{"position":[[315,18],[544,18]]}}}],["while(~scanf(\"%d\",&n",{"_index":1010,"t":{"871":{"position":[[1720,22]]},"873":{"position":[[1385,22]]}}}],["win='win_id",{"_index":2726,"t":{"1278":{"position":[[137,13],[247,13],[322,13]]},"1280":{"position":[[68,13],[213,13]]}}}],["window",{"_index":2882,"t":{"1324":{"position":[[0,20]]}}}],["winograd",{"_index":2058,"t":{"1088":{"position":[[812,8]]}}}],["wise",{"_index":1564,"t":{"988":{"position":[[1087,10]]},"1029":{"position":[[1068,4]]},"1031":{"position":[[1129,4],[1252,15]]},"1039":{"position":[[184,4]]},"1222":{"position":[[1087,10]]},"1255":{"position":[[1069,4]]},"1257":{"position":[[1129,4],[1253,15]]},"1267":{"position":[[426,4],[584,4]]},"1349":{"position":[[73,7]]}}}],["wise)以及逐点(point",{"_index":2928,"t":{"1349":{"position":[[57,15]]}}}],["wl",{"_index":2998,"t":{"1390":{"position":[[321,65]]}}}],["wl/wait",{"_index":2997,"t":{"1390":{"position":[[305,10]]}}}],["wnli(winograd",{"_index":2056,"t":{"1088":{"position":[[781,13]]}}}],["word",{"_index":1567,"t":{"990":{"position":[[0,9]]},"1090":{"position":[[186,4]]},"1224":{"position":[[0,9]]}}}],["work",{"_index":1232,"t":{"895":{"position":[[681,5]]},"1282":{"position":[[102,14]]}}}],["work.109",{"_index":1252,"t":{"895":{"position":[[1040,9]]}}}],["workshop",{"_index":2561,"t":{"1188":{"position":[[480,10]]}}}],["worship",{"_index":1272,"t":{"897":{"position":[[78,7]]}}}],["write",{"_index":1184,"t":{"881":{"position":[[869,5]]},"895":{"position":[[1925,5]]}}}],["wt+1=(1−ηλ)wt+η∂l(wt,bt)∂wt(4)w_{t+1}=(1",{"_index":2102,"t":{"1100":{"position":[[394,40]]}}}],["www和偏置项bbb",{"_index":2284,"t":{"1138":{"position":[[458,39]]}}}],["w∥12​≤θ(1",{"_index":2088,"t":{"1098":{"position":[[142,11]]}}}],["w∥12≤θ(1)min",{"_index":2080,"t":{"1098":{"position":[[22,13]]}}}],["w为bbox的宽高,c为该bbox是否存在object",{"_index":2947,"t":{"1354":{"position":[[338,30]]}}}],["w归约为文法开始符号",{"_index":220,"t":{"798":{"position":[[103,31]]}}}],["x",{"_index":43,"t":{"711":{"position":[[100,1],[124,2],[147,1],[155,1]]},"713":{"position":[[91,2],[114,1],[131,1]]},"736":{"position":[[118,3]]},"742":{"position":[[241,12],[274,10]]},"821":{"position":[[41,3],[69,5],[84,3]]},"831":{"position":[[4,2]]},"843":{"position":[[525,8],[1534,2],[1550,2]]},"845":{"position":[[290,8],[317,8]]},"902":{"position":[[308,1],[414,1]]},"1119":{"position":[[43,3],[305,1]]},"1121":{"position":[[42,1],[50,1],[54,1],[178,1],[190,1],[294,1]]},"1150":{"position":[[382,3],[873,3],[1092,2],[1135,1],[1157,1],[1162,2],[1171,1],[1917,3],[1986,2]]},"1294":{"position":[[291,1],[343,1],[386,4],[504,4]]},"1298":{"position":[[142,5],[278,4],[506,5]]}}}],["x)%mod",{"_index":281,"t":{"821":{"position":[[115,9]]}}}],["x)=11+e−x(1)\\sigma(x",{"_index":2142,"t":{"1119":{"position":[[0,23]]}}}],["x)>(i",{"_index":278,"t":{"821":{"position":[[28,10]]}}}],["x,y)(x",{"_index":1287,"t":{"900":{"position":[[0,41],[90,15]]}}}],["x.reshap",{"_index":2330,"t":{"1150":{"position":[[393,10]]}}}],["x.shape[0",{"_index":2410,"t":{"1150":{"position":[[2099,11]]}}}],["x.to(devic",{"_index":2362,"t":{"1150":{"position":[[1139,13],[1175,12],[1993,13]]}}}],["x0\\mathbf{x}_0x0​和ϵ\\epsilonϵ根据权重αˉ1,αˉ2,...αˉt\\bar{\\alpha}_1,\\bar{\\alpha}_2,...\\bar{\\alpha}_tαˉ1​,αˉ2​,...αˉt​做weight",{"_index":1663,"t":{"1008":{"position":[[445,122]]}}}],["x1",{"_index":2767,"t":{"1294":{"position":[[381,2],[611,2]]}}}],["x1[0",{"_index":2793,"t":{"1294":{"position":[[1195,21],[1232,20]]}}}],["x1[0,:,:]+x2[0,:,:](1)x1[0",{"_index":2778,"t":{"1294":{"position":[[846,27]]}}}],["x1[1,:,:]+x2[1,:,:](2)x1[1",{"_index":2781,"t":{"1294":{"position":[[924,27]]}}}],["x1[2,:,:]+x2[2,:,:](3)x1[2",{"_index":2784,"t":{"1294":{"position":[[1002,27]]}}}],["x1与x2在第0维度上维度相同,所以python",{"_index":2777,"t":{"1294":{"position":[[798,47]]}}}],["x2",{"_index":2770,"t":{"1294":{"position":[[499,2],[616,2]]}}}],["x2[0",{"_index":2779,"t":{"1294":{"position":[[882,5],[1220,8]]}}}],["x2[0,0",{"_index":2794,"t":{"1294":{"position":[[1256,15]]}}}],["x2[1",{"_index":2782,"t":{"1294":{"position":[[960,5]]}}}],["x2[2",{"_index":2785,"t":{"1294":{"position":[[1038,5]]}}}],["x86",{"_index":1193,"t":{"885":{"position":[[89,12]]},"895":{"position":[[835,5]]}}}],["x86/elf",{"_index":1240,"t":{"895":{"position":[[854,7]]}}}],["x86_64与i386",{"_index":1225,"t":{"895":{"position":[[561,16]]}}}],["x=σ∗z+μx=\\sigma",{"_index":2674,"t":{"1205":{"position":[[106,15]]}}}],["xavier",{"_index":1908,"t":{"1055":{"position":[[580,6]]}}}],["xavier和kaim",{"_index":1912,"t":{"1055":{"position":[[664,58]]}}}],["xi",{"_index":2287,"t":{"1138":{"position":[[621,2]]}}}],["xlim=[1",{"_index":2389,"t":{"1150":{"position":[[1714,8]]}}}],["xor异或等非线性问题,导致第一次ai",{"_index":2292,"t":{"1140":{"position":[[43,35]]}}}],["xt\\mathbf{x}_txt​代表上一步骤中输出的降噪后的图像,xt−1\\mathbf{x}_{t",{"_index":1678,"t":{"1010":{"position":[[484,54]]}}}],["xt−1=1αt(xt−1−αt1−αˉtϵθ(xt,t))+σtz(2)\\mathbf{x}_{t",{"_index":1673,"t":{"1010":{"position":[[203,50]]}}}],["xxx",{"_index":1810,"t":{"1033":{"position":[[59,3]]},"1259":{"position":[[59,3]]}}}],["xxx.plasmoid",{"_index":2847,"t":{"1305":{"position":[[349,12]]}}}],["xxx的可能取值为x=x1,x2,...,xnx=x_1,x_2,...,x_nx=x1​,x2​,...,xn​,而取值事件xix_ixi​发生的概率为pip_ipi",{"_index":2186,"t":{"1126":{"position":[[152,106]]}}}],["x为100时,sigmoid(x)就接近于0",{"_index":2157,"t":{"1119":{"position":[[354,24]]}}}],["x和i",{"_index":1291,"t":{"900":{"position":[[124,26]]}}}],["x方向和i",{"_index":1343,"t":{"913":{"position":[[17,24]]}}}],["x,输出所有x",{"_index":143,"t":{"742":{"position":[[174,13]]}}}],["y",{"_index":45,"t":{"711":{"position":[[111,1],[134,1],[138,1],[175,2]]},"713":{"position":[[101,1],[105,1]]},"821":{"position":[[47,4],[77,4],[90,4]]},"902":{"position":[[323,1],[429,1]]},"1124":{"position":[[172,1]]},"1150":{"position":[[1095,1],[1188,1],[1237,3],[1317,3],[1361,2],[1921,2],[1989,1],[2051,2],[2127,3]]},"1298":{"position":[[148,4],[292,4],[512,4]]},"1354":{"position":[[302,2]]}}}],["y)(x,i",{"_index":1290,"t":{"900":{"position":[[106,17]]}}}],["y)(x,y)方向上以及亮度函数f(x,y)f(x",{"_index":1288,"t":{"900":{"position":[[42,26]]}}}],["y)(x,y),点qqq的坐标为(s,t)(s,t)(s,t",{"_index":1295,"t":{"902":{"position":[[138,32]]}}}],["y)f(x,i",{"_index":1289,"t":{"900":{"position":[[69,16]]}}}],["y*z",{"_index":2281,"t":{"1138":{"position":[[401,4]]}}}],["y.numel",{"_index":2365,"t":{"1150":{"position":[[1241,10],[2131,10]]}}}],["y.to(devic",{"_index":2363,"t":{"1150":{"position":[[1192,12],[2007,12]]}}}],["y2",{"_index":2738,"t":{"1280":{"position":[[192,5]]}}}],["y_hat",{"_index":2404,"t":{"1150":{"position":[[2020,5]]}}}],["yay",{"_index":1212,"t":{"893":{"position":[[87,3]]},"1326":{"position":[[28,3]]}}}],["ye",{"_index":108,"t":{"728":{"position":[[282,6]]}}}],["yi",{"_index":2285,"t":{"1138":{"position":[[590,2],[616,2],[636,2]]}}}],["yi,j=∑a,bva,b∗xi+a,j+b=∑a=−δδ∑b=−δδva,b∗xia,j+b(4)y_{i,j}=\\sum_{a,b}{v_{a,b}*x_{i+a,j+b}}=\\sum_{a",{"_index":2443,"t":{"1159":{"position":[[32,98]]}}}],["yi,j=∑a,bvi,j,a,b∗xi+a,j+b=∑a,bva,b∗xi+a,j+b(3)y_{i,j}=\\sum_{a,b}{v_{i,j,a,b}*x_{i+a,j+b}}=\\sum_{a,b}{v_{a,b}*x_{i+a,j+b",{"_index":2440,"t":{"1157":{"position":[[513,122]]}}}],["yi,j=∑h,wwi,j,h,w∗xh,w(1)y_{i,j}=\\sum_{h,w}{w_{i,j,h,w}*x_{h,w",{"_index":2434,"t":{"1157":{"position":[[77,64]]}}}],["yi,j=∑h,wwi,j,h,w∗xh,w=∑a,bvi,j,a,b∗xi+a,j+b(2)y_{i,j}=\\sum_{h,w}{w_{i,j,h,w}*x_{h,w}}=\\sum_{a,b}{v_{i,j,a,b}*x_{i+a,j+b",{"_index":2437,"t":{"1157":{"position":[[241,122]]}}}],["yijun",{"_index":2565,"t":{"1188":{"position":[[516,5]]}}}],["yiy_{i}yi",{"_index":2024,"t":{"1086":{"position":[[383,20]]}}}],["yolov1",{"_index":2933,"t":{"1354":{"position":[[43,14],[58,14],[523,25]]}}}],["yolov2引入了anchor机制代替bbox,将图像划分为13×1313",{"_index":2960,"t":{"1356":{"position":[[30,37]]}}}],["yolov5使用cspnet实现特征融合,csp",{"_index":2966,"t":{"1358":{"position":[[9,52]]}}}],["yolo损失函数分为分类损失以及回归损失,可以在分类损失中引入foc",{"_index":2985,"t":{"1370":{"position":[[50,36]]}}}],["yong",{"_index":2570,"t":{"1188":{"position":[[554,4]]}}}],["yyi",{"_index":1812,"t":{"1033":{"position":[[96,71]]},"1259":{"position":[[96,71]]}}}],["yyy是样本的真实标签,zzz",{"_index":2283,"t":{"1138":{"position":[[435,22]]}}}],["y−f(x)∥2=∑[y−f(x)]22(6)\\vert",{"_index":2172,"t":{"1124":{"position":[[142,29]]}}}],["y为bbox左上角坐标,h",{"_index":2946,"t":{"1354":{"position":[[323,14]]}}}],["y轴数据、x轴数据,win参数是窗口的唯一标识,opt可选字典中可以给出窗口的title和legend",{"_index":2724,"t":{"1278":{"position":[[49,66]]}}}],["z",{"_index":1760,"t":{"1029":{"position":[[179,1],[243,1],[254,1],[272,3],[276,1],[323,3],[349,1],[428,1],[758,1],[794,1],[831,1],[877,1]]},"1205":{"position":[[124,1]]},"1255":{"position":[[179,1],[243,1],[254,1],[272,3],[276,1],[323,3],[349,1],[428,1],[759,1],[795,1],[832,1],[878,1]]},"1298":{"position":[[153,4],[306,4],[517,4]]}}}],["z(k)z(k)z(k",{"_index":1351,"t":{"920":{"position":[[396,33]]}}}],["z=w∗x+bz=w*x+bz=w∗x+b",{"_index":2278,"t":{"1138":{"position":[[217,60]]}}}],["zero",{"_index":1683,"t":{"1012":{"position":[[31,4]]},"1188":{"position":[[820,4]]},"1238":{"position":[[31,4]]}}}],["zhang",{"_index":2547,"t":{"1188":{"position":[[229,6],[243,6],[595,6]]}}}],["zhou等人首先在图像分类任务中采用上下文优化,在词嵌入空间中对具有连续向量的上下文词进行建模。随后prompt",{"_index":2598,"t":{"1190":{"position":[[185,56]]}}}],["zi",{"_index":2286,"t":{"1138":{"position":[[595,2]]}}}],["zip",{"_index":2508,"t":{"1181":{"position":[[993,5],[999,39]]},"1298":{"position":[[0,68],[83,8],[160,15],[522,36]]}}}],["zip(*zipped_list",{"_index":2804,"t":{"1298":{"position":[[406,18]]}}}],["zip(a",{"_index":2510,"t":{"1181":{"position":[[1099,6],[1293,6]]}}}],["zip(list1",{"_index":2799,"t":{"1298":{"position":[[191,10]]}}}],["zipped_list",{"_index":2798,"t":{"1298":{"position":[[176,12],[239,13]]}}}],["zip将list1、list2和list3",{"_index":2802,"t":{"1298":{"position":[[311,42]]}}}],["zizhao",{"_index":2548,"t":{"1188":{"position":[[236,6]]}}}],["zsh的配置文件:~/.zshrc",{"_index":2860,"t":{"1311":{"position":[[37,17]]}}}],["zzz带入阈值函数,如符号函数sign(z)sign(z)sign(z",{"_index":2279,"t":{"1138":{"position":[[278,56]]}}}],["z空间与w",{"_index":1751,"t":{"1029":{"position":[[0,8]]},"1255":{"position":[[0,8]]}}}],["z空间到w",{"_index":1752,"t":{"1029":{"position":[[11,10]]},"1255":{"position":[[11,10]]}}}]],"pipeline":["stemmer"]}}] \ No newline at end of file diff --git a/en/search/index.html b/en/search/index.html new file mode 100644 index 000000000..d4a293995 --- /dev/null +++ b/en/search/index.html @@ -0,0 +1,18 @@ + + + + + +Search the documentation + + + + +
+

Search the documentation

+ + + + \ No newline at end of file diff --git a/en/sitemap.xml b/en/sitemap.xml new file mode 100644 index 000000000..b76acb4af --- /dev/null +++ b/en/sitemap.xml @@ -0,0 +1 @@ +https://bonjour-npy.github.io/en/markdown-pageweekly0.5https://bonjour-npy.github.io/en/searchweekly0.5https://bonjour-npy.github.io/en/docs/Acknowledgement/introweekly0.5https://bonjour-npy.github.io/en/docs/Algorithms/%E6%9C%BA%E8%AF%95%E6%8A%80%E5%B7%A7%E4%B8%8ESTLweekly0.5https://bonjour-npy.github.io/en/docs/Algorithms/%E9%A2%98%E8%A7%A3/%E5%8F%8D%E5%BA%8F%E8%BE%93%E5%87%BAweekly0.5https://bonjour-npy.github.io/en/docs/Algorithms/%E9%A2%98%E8%A7%A3/%E6%8E%92%E5%88%97%E7%BB%84%E5%90%88%EF%BC%88%E6%B1%8230%E7%9A%84%E5%80%8D%E6%95%B0%EF%BC%89weekly0.5https://bonjour-npy.github.io/en/docs/Algorithms/%E9%A2%98%E8%A7%A3/%E4%B8%80%E7%BB%B4%E5%89%8D%E7%BC%80%E5%92%8C%EF%BC%88%E5%88%B7%E5%87%BA%E4%B8%80%E9%81%93%E5%A2%99%EF%BC%89weekly0.5https://bonjour-npy.github.io/en/docs/Algorithms/introweekly0.5https://bonjour-npy.github.io/en/docs/Algorithms/STL%E6%A8%A1%E6%9D%BFweekly0.5https://bonjour-npy.github.io/en/docs/Curriculum/%E7%BC%96%E8%AF%91%E5%8E%9F%E7%90%86/Noteweekly0.5https://bonjour-npy.github.io/en/docs/Curriculum/%E6%93%8D%E4%BD%9C%E7%B3%BB%E7%BB%9F%E8%AF%BE%E8%AE%BE/Environment-Configurationweekly0.5https://bonjour-npy.github.io/en/docs/Curriculum/%E6%93%8D%E4%BD%9C%E7%B3%BB%E7%BB%9F%E8%AF%BE%E8%AE%BE/GeekOS-project-0weekly0.5https://bonjour-npy.github.io/en/docs/Curriculum/%E6%95%B0%E5%AD%97%E5%9B%BE%E5%83%8F%E5%A4%84%E7%90%86/Noteweekly0.5https://bonjour-npy.github.io/en/docs/Curriculum/introweekly0.5https://bonjour-npy.github.io/en/docs/Deep-Learning/%E5%A4%A7%E6%A8%A1%E5%9E%8B/Attention-Is-All-You-Needweekly0.5https://bonjour-npy.github.io/en/docs/Deep-Learning/%E5%A4%A7%E6%A8%A1%E5%9E%8B/Diffusion-Modelweekly0.5https://bonjour-npy.github.io/en/docs/Deep-Learning/%E5%A4%A7%E6%A8%A1%E5%9E%8B/GANweekly0.5https://bonjour-npy.github.io/en/docs/Deep-Learning/%E5%A4%A7%E6%A8%A1%E5%9E%8B/Image-Generation-Modelsweekly0.5https://bonjour-npy.github.io/en/docs/Deep-Learning/%E5%A4%A7%E6%A8%A1%E5%9E%8B/Prompt%20Learning/Undergraduate-Dissertationweekly0.5https://bonjour-npy.github.io/en/docs/Deep-Learning/%E5%A4%A7%E6%A8%A1%E5%9E%8B/Self-Attentionweekly0.5https://bonjour-npy.github.io/en/docs/Deep-Learning/%E5%A4%A7%E6%A8%A1%E5%9E%8B/Self-Supervised-Learningweekly0.5https://bonjour-npy.github.io/en/docs/Deep-Learning/%E5%9F%BA%E7%A1%80%E7%9F%A5%E8%AF%86/%E6%BF%80%E6%B4%BB%E5%87%BD%E6%95%B0%E4%B8%8ELoss%E7%9A%84%E6%A2%AF%E5%BA%A6weekly0.5https://bonjour-npy.github.io/en/docs/Deep-Learning/%E5%9F%BA%E7%A1%80%E7%9F%A5%E8%AF%86/%E6%B7%B1%E5%BA%A6%E5%8F%AF%E5%88%86%E7%A6%BB%E5%8D%B7%E7%A7%AFweekly0.5https://bonjour-npy.github.io/en/docs/Deep-Learning/%E5%9F%BA%E7%A1%80%E7%9F%A5%E8%AF%86/%E6%AD%A3%E5%88%99%E5%8C%96%E4%B8%8E%E6%9D%83%E9%87%8D%E8%A1%B0%E9%80%80weekly0.5https://bonjour-npy.github.io/en/docs/Deep-Learning/%E5%9F%BA%E7%A1%80%E7%9F%A5%E8%AF%86/AlexNetweekly0.5https://bonjour-npy.github.io/en/docs/Deep-Learning/%E5%9F%BA%E7%A1%80%E7%9F%A5%E8%AF%86/ConvolutionalLayerweekly0.5https://bonjour-npy.github.io/en/docs/Deep-Learning/%E5%9F%BA%E7%A1%80%E7%9F%A5%E8%AF%86/FromFullyConnectedLayerToConvolutionalLayerweekly0.5https://bonjour-npy.github.io/en/docs/Deep-Learning/%E5%9F%BA%E7%A1%80%E7%9F%A5%E8%AF%86/K-foldCross-validationweekly0.5https://bonjour-npy.github.io/en/docs/Deep-Learning/%E5%9F%BA%E7%A1%80%E7%9F%A5%E8%AF%86/LeNetweekly0.5https://bonjour-npy.github.io/en/docs/Deep-Learning/%E5%9F%BA%E7%A1%80%E7%9F%A5%E8%AF%86/LogisticRegressionweekly0.5https://bonjour-npy.github.io/en/docs/Deep-Learning/%E5%9F%BA%E7%A1%80%E7%9F%A5%E8%AF%86/Perceptronweekly0.5https://bonjour-npy.github.io/en/docs/Deep-Learning/%E5%9F%BA%E7%A1%80%E7%9F%A5%E8%AF%86/PoolingLayerweekly0.5https://bonjour-npy.github.io/en/docs/Deep-Learning/%E5%9F%BA%E7%A1%80%E7%9F%A5%E8%AF%86/PytorchBasicsweekly0.5https://bonjour-npy.github.io/en/docs/Deep-Learning/%E8%AE%BA%E6%96%87%E7%AC%94%E8%AE%B0/Attention%20Is%20All%20You%20Needweekly0.5https://bonjour-npy.github.io/en/docs/Deep-Learning/%E8%AE%BA%E6%96%87%E7%AC%94%E8%AE%B0/Denoising%20Diffusion%20Probabilistic%20Modelsweekly0.5https://bonjour-npy.github.io/en/docs/Deep-Learning/%E8%AE%BA%E6%96%87%E7%AC%94%E8%AE%B0/High-Resolution%20Image%20Synthesis%20with%20Latent%20Diffusion%20Modelsweekly0.5https://bonjour-npy.github.io/en/docs/Deep-Learning/%E8%AE%BA%E6%96%87%E7%AC%94%E8%AE%B0/Zero-shot%20Generative%20Model%20Adaptation%20via%20Image-specific%20Prompt%20Learningweekly0.5https://bonjour-npy.github.io/en/docs/Deep-Learning/%E5%AE%9E%E6%88%98%E7%BB%83%E4%B9%A0/Speaker%20Classificationweekly0.5https://bonjour-npy.github.io/en/docs/Deep-Learning/%E5%AE%9E%E6%88%98%E7%BB%83%E4%B9%A0/Undergraduate-Dissertationweekly0.5https://bonjour-npy.github.io/en/docs/Deep-Learning/%E5%AE%9E%E6%88%98%E7%BB%83%E4%B9%A0/Visdom%20Visualizationweekly0.5https://bonjour-npy.github.io/en/docs/Deep-Learning/Fill-The-Gapsweekly0.5https://bonjour-npy.github.io/en/docs/Deep-Learning/introweekly0.5https://bonjour-npy.github.io/en/docs/Others/%E5%8D%9A%E5%AE%A2%E6%90%AD%E5%BB%BA/%E5%91%8A%E7%A4%BA%E6%A0%8Fweekly0.5https://bonjour-npy.github.io/en/docs/Others/introweekly0.5https://bonjour-npy.github.io/en/docs/Others/Linux/%E5%AE%A2%E5%88%B6%E5%8C%96/%E5%A6%82%E4%BD%95%E8%AE%A9%E4%BD%A0%E7%9A%84KDE%E7%9C%8B%E8%B5%B7%E6%9D%A5%E6%9B%B4%E5%83%8FmacOSweekly0.5https://bonjour-npy.github.io/en/docs/Others/Linux/%E5%AE%9E%E7%94%A8%E5%B7%A5%E5%85%B7/%E7%BB%88%E7%AB%AF%E4%BB%A3%E7%90%86weekly0.5https://bonjour-npy.github.io/en/docs/Others/Linux/%E9%97%AE%E9%A2%98%E8%A7%A3%E5%86%B3/%E5%8F%8C%E7%B3%BB%E7%BB%9F%E6%8C%82%E8%BD%BDWindows%E7%A3%81%E7%9B%98%E4%B8%BA%E5%8F%AA%E8%AF%BB%E6%96%87%E4%BB%B6weekly0.5https://bonjour-npy.github.io/en/docs/Tui-Mian/%E6%9C%BA%E8%AF%95/%E5%A4%A7%E6%95%B0%E9%99%A4%E6%B3%95weekly0.5https://bonjour-npy.github.io/en/docs/Tui-Mian/%E8%AE%A1%E7%AE%97%E6%9C%BA%E5%9F%BA%E7%A1%80%E7%BB%BC%E5%90%88/%E6%95%B0%E6%8D%AE%E7%BB%93%E6%9E%84weekly0.5https://bonjour-npy.github.io/en/docs/Tui-Mian/%E7%AE%80%E5%8E%86/%E7%AE%80%E5%8E%86%E9%9D%A2%E8%AF%95%E5%87%86%E5%A4%87weekly0.5https://bonjour-npy.github.io/en/docs/Tui-Mian/%E6%95%B0%E5%AD%A6/%E6%A6%82%E7%8E%87%E8%AE%BAweekly0.5https://bonjour-npy.github.io/en/docs/Tui-Mian/%E6%95%B0%E5%AD%A6/%E5%A4%8F%E4%BB%A4%E8%90%A5%E9%9D%A2%E8%AF%95%E6%95%B0%E5%AD%A6%E9%83%A8%E5%88%86%E5%A4%8D%E4%B9%A0weekly0.5https://bonjour-npy.github.io/en/docs/Tui-Mian/%E6%95%B0%E5%AD%A6/%E7%BA%BF%E6%80%A7%E4%BB%A3%E6%95%B0weekly0.5https://bonjour-npy.github.io/en/docs/Tui-Mian/introweekly0.5https://bonjour-npy.github.io/en/docs/Tui-Mian/Summaryweekly0.5https://bonjour-npy.github.io/en/weekly0.5 \ No newline at end of file diff --git a/fonts/PingFang-Medium.ttf b/fonts/PingFang-Medium.ttf new file mode 100644 index 000000000..982661b83 Binary files /dev/null and b/fonts/PingFang-Medium.ttf differ diff --git a/fonts/SF-Pro-Text-Medium.otf b/fonts/SF-Pro-Text-Medium.otf new file mode 100644 index 000000000..6d78eea03 Binary files /dev/null and b/fonts/SF-Pro-Text-Medium.otf differ diff --git a/fonts/SF-Pro-Text-Regular.otf b/fonts/SF-Pro-Text-Regular.otf new file mode 100644 index 000000000..3dc6161c0 Binary files /dev/null and b/fonts/SF-Pro-Text-Regular.otf differ diff --git a/img/CFM_Circle.png b/img/CFM_Circle.png new file mode 100644 index 000000000..e15b29894 Binary files /dev/null and b/img/CFM_Circle.png differ diff --git a/img/ChatGPT.svg b/img/ChatGPT.svg new file mode 100644 index 000000000..2312a7744 --- /dev/null +++ b/img/ChatGPT.svg @@ -0,0 +1,10 @@ + + + + + + + + + + \ No newline at end of file diff --git a/img/GUET_logo.png b/img/GUET_logo.png new file mode 100644 index 000000000..703148e5d Binary files /dev/null and b/img/GUET_logo.png differ diff --git a/img/KEXIE_logo.png b/img/KEXIE_logo.png new file mode 100644 index 000000000..d0ca2ea46 Binary files /dev/null and b/img/KEXIE_logo.png differ diff --git a/img/Musk_0.jpg b/img/Musk_0.jpg new file mode 100644 index 000000000..0f07f3128 Binary files /dev/null and b/img/Musk_0.jpg differ diff --git a/img/Musk_1.jpg b/img/Musk_1.jpg new file mode 100644 index 000000000..84fb34a84 Binary files /dev/null and b/img/Musk_1.jpg differ diff --git a/img/Musk_2.jpg b/img/Musk_2.jpg new file mode 100644 index 000000000..5eff1e875 Binary files /dev/null and b/img/Musk_2.jpg differ diff --git a/img/NYPD_Truck_with_officers.jpg b/img/NYPD_Truck_with_officers.jpg new file mode 100644 index 000000000..86a943719 Binary files /dev/null and b/img/NYPD_Truck_with_officers.jpg differ diff --git a/img/UESTC_logo.png b/img/UESTC_logo.png new file mode 100644 index 000000000..e86a65f69 Binary files /dev/null and b/img/UESTC_logo.png differ diff --git a/img/intro.png b/img/intro.png new file mode 100644 index 000000000..9088471b3 Binary files /dev/null and b/img/intro.png differ diff --git a/img/rockstar-games.svg b/img/rockstar-games.svg new file mode 100644 index 000000000..612969cae --- /dev/null +++ b/img/rockstar-games.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/img/spaceX_0.jpg b/img/spaceX_0.jpg new file mode 100644 index 000000000..5758898c5 Binary files /dev/null and b/img/spaceX_0.jpg differ diff --git a/img/spaceX_1.jpg b/img/spaceX_1.jpg new file mode 100644 index 000000000..90398112d Binary files /dev/null and b/img/spaceX_1.jpg differ diff --git a/index.html b/index.html new file mode 100644 index 000000000..c9ddaa182 --- /dev/null +++ b/index.html @@ -0,0 +1,18 @@ + + + + + +培洋的笔记本📒 | 培洋的笔记本📒 + + + + +
+
Image

电子科技大学

求实求真,大气大为

Image

未来媒体研究中心

CENTER FOR FUTURE MEDIA

Image

桂林电子科技大学

正德厚学,笃行致新

Image

桂电三院科协

木起青绿,梦绘初蓝

+ + + + \ No newline at end of file diff --git a/markdown-page/index.html b/markdown-page/index.html new file mode 100644 index 000000000..d10288a78 --- /dev/null +++ b/markdown-page/index.html @@ -0,0 +1,18 @@ + + + + + +Markdown page example | 培洋的笔记本📒 + + + + +
+

Markdown page example

You don't need React to write simple standalone pages.

+ + + + \ No newline at end of file diff --git a/search-index.json b/search-index.json new file mode 100644 index 000000000..65db63607 --- /dev/null +++ b/search-index.json @@ -0,0 +1 @@ +[{"documents":[{"i":1,"t":"反序输出","u":"/docs/Algorithms/题解/反序输出","b":["题解"]},{"i":7,"t":"鸣谢","u":"/docs/Acknowledgement/intro","b":["🍺饮水思源"]},{"i":12,"t":"Welcome","u":"/docs/Algorithms/intro","b":["🎰算法"]},{"i":16,"t":"一维前缀和(刷出一道墙)","u":"/docs/Algorithms/题解/一维前缀和(刷出一道墙)","b":["题解"]},{"i":22,"t":"排列组合(求30的倍数)","u":"/docs/Algorithms/题解/排列组合(求30的倍数)","b":["题解"]},{"i":28,"t":"STL模板","u":"/docs/Algorithms/STL模板","b":[]},{"i":50,"t":"机试技巧与STL","u":"/docs/Algorithms/机试技巧与STL","b":[]},{"i":117,"t":"编译原理笔记","u":"/docs/Curriculum/编译原理/Note","b":["编译原理"]},{"i":175,"t":"Linux系统下GeekOS的环境配置","u":"/docs/Curriculum/操作系统课设/Environment-Configuration","b":["操作系统课设"]},{"i":189,"t":"Welcome","u":"/docs/Curriculum/intro","b":["📖课程学习"]},{"i":193,"t":"GeekOS project 0的实现","u":"/docs/Curriculum/操作系统课设/GeekOS-project-0","b":["操作系统课设"]},{"i":199,"t":"扩散模型(Diffusion Model)","u":"/docs/Deep-Learning/大模型/Diffusion-Model","b":["大模型"]},{"i":207,"t":"数字图像处理复习笔记","u":"/docs/Curriculum/数字图像处理/Note","b":["数字图像处理"]},{"i":260,"t":"NeurIPS 2017: Attention Is All You Need","u":"/docs/Deep-Learning/大模型/Attention-Is-All-You-Need","b":["大模型"]},{"i":283,"t":"生成式对抗网络(GAN)","u":"/docs/Deep-Learning/大模型/GAN","b":["大模型"]},{"i":300,"t":"本科毕业论文:基于 Prompt Learning 的视觉-语言大模型在图像生成中的应用与研究","u":"/docs/Deep-Learning/大模型/Prompt Learning/Undergraduate-Dissertation","b":["大模型","Prompt Learning"]},{"i":331,"t":"图像生成模型","u":"/docs/Deep-Learning/大模型/Image-Generation-Models","b":["大模型"]},{"i":358,"t":"深度可分离卷积","u":"/docs/Deep-Learning/基础知识/深度可分离卷积","b":["基础知识"]},{"i":366,"t":"自注意力(Self-Attention)","u":"/docs/Deep-Learning/大模型/Self-Attention","b":["大模型"]},{"i":384,"t":"自监督学习(Self-Supervised Learning)","u":"/docs/Deep-Learning/大模型/Self-Supervised-Learning","b":["大模型"]},{"i":400,"t":"激活函数与Loss的梯度","u":"/docs/Deep-Learning/基础知识/激活函数与Loss的梯度","b":["基础知识"]},{"i":411,"t":"卷积层","u":"/docs/Deep-Learning/基础知识/ConvolutionalLayer","b":["基础知识"]},{"i":416,"t":"AlexNet","u":"/docs/Deep-Learning/基础知识/AlexNet","b":["基础知识"]},{"i":423,"t":"正则化与权重衰退","u":"/docs/Deep-Learning/基础知识/正则化与权重衰退","b":["基础知识"]},{"i":431,"t":"K-fold cross-validation","u":"/docs/Deep-Learning/基础知识/K-foldCross-validation","b":["基础知识"]},{"i":438,"t":"LeNet","u":"/docs/Deep-Learning/基础知识/LeNet","b":["基础知识"]},{"i":445,"t":"从全连接到卷积","u":"/docs/Deep-Learning/基础知识/FromFullyConnectedLayerToConvolutionalLayer","b":["基础知识"]},{"i":452,"t":"Perceptron","u":"/docs/Deep-Learning/基础知识/Perceptron","b":["基础知识"]},{"i":459,"t":"关于Logistic Regression","u":"/docs/Deep-Learning/基础知识/LogisticRegression","b":["基础知识"]},{"i":468,"t":"PyTorch基础","u":"/docs/Deep-Learning/基础知识/PytorchBasics","b":["基础知识"]},{"i":471,"t":"池化层","u":"/docs/Deep-Learning/基础知识/PoolingLayer","b":["基础知识"]},{"i":478,"t":"NeurIPS 2017: Attention Is All You Need","u":"/docs/Deep-Learning/论文笔记/Attention Is All You Need","b":["论文笔记"]},{"i":501,"t":"CVPR 2022: High-Resolution Image Synthesis with Latent Diffusion Models","u":"/docs/Deep-Learning/论文笔记/High-Resolution Image Synthesis with Latent Diffusion Models","b":["论文笔记"]},{"i":504,"t":"NeurIPS 2020: Denoising Diffusion Probabilistic Models","u":"/docs/Deep-Learning/论文笔记/Denoising Diffusion Probabilistic Models","b":["论文笔记"]},{"i":515,"t":"CVPR 2023: Zero-shot Generative Model Adaptation via Image-specific Prompt Learning","u":"/docs/Deep-Learning/论文笔记/Zero-shot Generative Model Adaptation via Image-specific Prompt Learning","b":["论文笔记"]},{"i":528,"t":"Speaker Classification","u":"/docs/Deep-Learning/实战练习/Speaker Classification","b":["实战练习"]},{"i":536,"t":"Visdom可视化","u":"/docs/Deep-Learning/实战练习/Visdom Visualization","b":["实战练习"]},{"i":547,"t":"告示栏","u":"/docs/Others/博客搭建/告示栏","b":["博客搭建"]},{"i":549,"t":"本科毕业论文:基于 Prompt Learning 的视觉-语言大模型在图像生成中的应用与研究","u":"/docs/Deep-Learning/实战练习/Undergraduate-Dissertation","b":["实战练习"]},{"i":582,"t":"Welcome","u":"/docs/Deep-Learning/intro","b":["🤖深度学习"]},{"i":586,"t":"查漏补缺","u":"/docs/Deep-Learning/Fill-The-Gaps","b":[]},{"i":596,"t":"Welcome","u":"/docs/Others/intro","b":["☃️其他"]},{"i":600,"t":"如何让你的Kde Plasma看起来更像macOS","u":"/docs/Others/Linux/客制化/如何让你的KDE看起来更像macOS","b":["Linux","客制化"]},{"i":605,"t":"终端代理","u":"/docs/Others/Linux/实用工具/终端代理","b":["Linux","实用工具"]},{"i":613,"t":"数据结构","u":"/docs/Tui-Mian/计算机基础综合/数据结构","b":["计算机基础综合"]},{"i":618,"t":"挂载Windows磁盘为只读文件","u":"/docs/Others/Linux/问题解决/双系统挂载Windows磁盘为只读文件","b":["Linux","问题解决"]},{"i":623,"t":"大数除法","u":"/docs/Tui-Mian/机试/大数除法","b":["机试"]},{"i":631,"t":"概率论","u":"/docs/Tui-Mian/数学/概率论","b":["数学"]},{"i":634,"t":"线性代数","u":"/docs/Tui-Mian/数学/线性代数","b":["数学"]},{"i":640,"t":"简历面试准备","u":"/docs/Tui-Mian/简历/简历面试准备","b":["简历"]},{"i":682,"t":"夏令营面试数学部分复习","u":"/docs/Tui-Mian/数学/夏令营面试数学部分复习","b":["数学"]},{"i":687,"t":"Welcome","u":"/docs/Tui-Mian/intro","b":["🤡推免"]},{"i":691,"t":"经验贴:2023年双非计算机保研经历","u":"/docs/Tui-Mian/Summary","b":[]}],"index":{"version":"2.3.9","fields":["t"],"fieldVectors":[["t/1",[0,1.092]],["t/7",[0,1.092]],["t/12",[1,2.85]],["t/16",[0,1.092]],["t/22",[2,4.472]],["t/28",[3,3.834]],["t/50",[3,3.834]],["t/117",[0,1.092]],["t/175",[4,4.472]],["t/189",[1,2.85]],["t/193",[5,2.931,6,2.931,7,2.931]],["t/199",[8,2.704,9,2.456]],["t/207",[0,1.092]],["t/260",[10,1.91,11,2.144,12,1.91,13,2.144]],["t/283",[14,4.472]],["t/300",[0,1.029,15,1.665,16,1.512]],["t/331",[0,1.092]],["t/358",[0,1.092]],["t/366",[12,2.704,17,3.037]],["t/384",[16,2.033,17,2.514,18,2.931]],["t/400",[19,4.472]],["t/411",[0,1.092]],["t/416",[20,4.472]],["t/423",[0,1.092]],["t/431",[21,2.501,22,2.501,23,2.501,24,2.501]],["t/438",[25,4.472]],["t/445",[0,1.092]],["t/452",[26,4.472]],["t/459",[27,3.541,28,3.541]],["t/468",[29,4.472]],["t/471",[0,1.092]],["t/478",[10,1.91,11,2.144,12,1.91,13,2.144]],["t/501",[8,1.101,9,1,30,1.236,31,1.442,32,1.442,33,1.442,34,1.236,35,1.442,36,1.442]],["t/504",[8,1.476,9,1.34,10,1.476,37,1.933,38,1.933,39,1.933]],["t/515",[9,0.797,15,0.878,16,0.797,30,0.986,34,0.986,40,0.986,41,1.15,42,1.15,43,1.15,44,1.15,45,1.15,46,1.15]],["t/528",[47,3.541,48,3.541]],["t/536",[49,4.472]],["t/547",[0,1.092]],["t/549",[0,1.029,15,1.665,16,1.512]],["t/582",[1,2.85]],["t/586",[0,1.092]],["t/596",[1,2.85]],["t/600",[50,3.541,51,3.541]],["t/605",[0,1.092]],["t/613",[0,1.092]],["t/618",[52,4.472]],["t/623",[0,1.092]],["t/631",[0,1.092]],["t/634",[0,1.092]],["t/640",[0,1.092]],["t/682",[0,1.092]],["t/687",[1,2.85]],["t/691",[40,3.834]]],"invertedIndex":[["",{"_index":0,"t":{"1":{"position":[[0,4]]},"7":{"position":[[0,2]]},"16":{"position":[[0,12]]},"117":{"position":[[0,6]]},"207":{"position":[[0,10]]},"300":{"position":[[0,9],[26,3],[30,17]]},"331":{"position":[[0,6]]},"358":{"position":[[0,7]]},"411":{"position":[[0,3]]},"423":{"position":[[0,8]]},"445":{"position":[[0,7]]},"471":{"position":[[0,3]]},"547":{"position":[[0,3]]},"549":{"position":[[0,9],[26,3],[30,17]]},"586":{"position":[[0,4]]},"605":{"position":[[0,4]]},"613":{"position":[[0,4]]},"623":{"position":[[0,4]]},"631":{"position":[[0,3]]},"634":{"position":[[0,4]]},"640":{"position":[[0,6]]},"682":{"position":[[0,11]]}}}],["0",{"_index":7,"t":{"193":{"position":[[15,4]]}}}],["2017",{"_index":11,"t":{"260":{"position":[[8,5]]},"478":{"position":[[8,5]]}}}],["2020",{"_index":37,"t":{"504":{"position":[[8,5]]}}}],["2022",{"_index":31,"t":{"501":{"position":[[5,5]]}}}],["2023",{"_index":40,"t":{"515":{"position":[[5,5]]},"691":{"position":[[0,18]]}}}],["30",{"_index":2,"t":{"22":{"position":[[0,12]]}}}],["adapt",{"_index":44,"t":{"515":{"position":[[38,10]]}}}],["alexnet",{"_index":20,"t":{"416":{"position":[[0,7]]}}}],["attent",{"_index":12,"t":{"260":{"position":[[14,9]]},"366":{"position":[[10,10]]},"478":{"position":[[14,9]]}}}],["classif",{"_index":48,"t":{"528":{"position":[[8,14]]}}}],["cross",{"_index":23,"t":{"431":{"position":[[7,5]]}}}],["cvpr",{"_index":30,"t":{"501":{"position":[[0,4]]},"515":{"position":[[0,4]]}}}],["denois",{"_index":38,"t":{"504":{"position":[[14,9]]}}}],["diffus",{"_index":8,"t":{"199":{"position":[[0,14]]},"501":{"position":[[55,9]]},"504":{"position":[[24,9]]}}}],["fold",{"_index":22,"t":{"431":{"position":[[2,4]]}}}],["gan",{"_index":14,"t":{"283":{"position":[[0,12]]}}}],["geeko",{"_index":5,"t":{"193":{"position":[[0,6]]}}}],["gener",{"_index":43,"t":{"515":{"position":[[21,10]]}}}],["high",{"_index":32,"t":{"501":{"position":[[11,4]]}}}],["imag",{"_index":34,"t":{"501":{"position":[[27,5]]},"515":{"position":[[53,5]]}}}],["k",{"_index":21,"t":{"431":{"position":[[0,1]]}}}],["kde",{"_index":50,"t":{"600":{"position":[[0,8]]}}}],["latent",{"_index":36,"t":{"501":{"position":[[48,6]]}}}],["learn",{"_index":16,"t":{"300":{"position":[[17,8]]},"384":{"position":[[22,9]]},"515":{"position":[[75,8]]},"549":{"position":[[17,8]]}}}],["lenet",{"_index":25,"t":{"438":{"position":[[0,5]]}}}],["linux系统下geeko",{"_index":4,"t":{"175":{"position":[[0,19]]}}}],["logist",{"_index":27,"t":{"459":{"position":[[0,10]]}}}],["loss",{"_index":19,"t":{"400":{"position":[[0,12]]}}}],["model",{"_index":9,"t":{"199":{"position":[[15,6]]},"501":{"position":[[65,6]]},"504":{"position":[[48,6]]},"515":{"position":[[32,5]]}}}],["need",{"_index":13,"t":{"260":{"position":[[35,4]]},"478":{"position":[[35,4]]}}}],["neurip",{"_index":10,"t":{"260":{"position":[[0,7]]},"478":{"position":[[0,7]]},"504":{"position":[[0,7]]}}}],["perceptron",{"_index":26,"t":{"452":{"position":[[0,10]]}}}],["plasma看起来更像maco",{"_index":51,"t":{"600":{"position":[[9,16]]}}}],["probabilist",{"_index":39,"t":{"504":{"position":[[34,13]]}}}],["project",{"_index":6,"t":{"193":{"position":[[7,7]]}}}],["prompt",{"_index":15,"t":{"300":{"position":[[10,6]]},"515":{"position":[[68,6]]},"549":{"position":[[10,6]]}}}],["pytorch",{"_index":29,"t":{"468":{"position":[[0,9]]}}}],["regress",{"_index":28,"t":{"459":{"position":[[11,10]]}}}],["resolut",{"_index":33,"t":{"501":{"position":[[16,10]]}}}],["self",{"_index":17,"t":{"366":{"position":[[0,9]]},"384":{"position":[[0,10]]}}}],["shot",{"_index":42,"t":{"515":{"position":[[16,4]]}}}],["speaker",{"_index":47,"t":{"528":{"position":[[0,7]]}}}],["specif",{"_index":46,"t":{"515":{"position":[[59,8]]}}}],["stl",{"_index":3,"t":{"28":{"position":[[0,5]]},"50":{"position":[[0,8]]}}}],["supervis",{"_index":18,"t":{"384":{"position":[[11,10]]}}}],["synthesi",{"_index":35,"t":{"501":{"position":[[33,9]]}}}],["valid",{"_index":24,"t":{"431":{"position":[[13,10]]}}}],["via",{"_index":45,"t":{"515":{"position":[[49,3]]}}}],["visdom",{"_index":49,"t":{"536":{"position":[[0,9]]}}}],["welcom",{"_index":1,"t":{"12":{"position":[[0,7]]},"189":{"position":[[0,7]]},"582":{"position":[[0,7]]},"596":{"position":[[0,7]]},"687":{"position":[[0,7]]}}}],["window",{"_index":52,"t":{"618":{"position":[[0,16]]}}}],["zero",{"_index":41,"t":{"515":{"position":[[11,4]]}}}]],"pipeline":["stemmer"]}},{"documents":[{"i":3,"t":"参考代码","u":"/docs/Algorithms/题解/反序输出","h":"#参考代码","p":1},{"i":5,"t":"题解","u":"/docs/Algorithms/题解/反序输出","h":"#题解","p":1},{"i":8,"t":"饮水思源","u":"/docs/Acknowledgement/intro","h":"#饮水思源","p":7},{"i":10,"t":"Disclaimer","u":"/docs/Acknowledgement/intro","h":"#disclaimer","p":7},{"i":14,"t":"支持我!","u":"/docs/Algorithms/intro","h":"#支持我","p":12},{"i":18,"t":"参考代码","u":"/docs/Algorithms/题解/一维前缀和(刷出一道墙)","h":"#参考代码","p":16},{"i":20,"t":"题解","u":"/docs/Algorithms/题解/一维前缀和(刷出一道墙)","h":"#题解","p":16},{"i":24,"t":"参考代码","u":"/docs/Algorithms/题解/排列组合(求30的倍数)","h":"#参考代码","p":22},{"i":26,"t":"题解","u":"/docs/Algorithms/题解/排列组合(求30的倍数)","h":"#题解","p":22},{"i":30,"t":"vector","u":"/docs/Algorithms/STL模板","h":"#vector","p":28},{"i":32,"t":"pair","u":"/docs/Algorithms/STL模板","h":"#pair","p":28},{"i":34,"t":"string","u":"/docs/Algorithms/STL模板","h":"#string","p":28},{"i":36,"t":"query","u":"/docs/Algorithms/STL模板","h":"#query","p":28},{"i":38,"t":"priority_queue","u":"/docs/Algorithms/STL模板","h":"#priority_queue","p":28},{"i":40,"t":"stack","u":"/docs/Algorithms/STL模板","h":"#stack","p":28},{"i":42,"t":"deque","u":"/docs/Algorithms/STL模板","h":"#deque","p":28},{"i":44,"t":"set/multiset","u":"/docs/Algorithms/STL模板","h":"#setmultiset","p":28},{"i":46,"t":"map/multimap","u":"/docs/Algorithms/STL模板","h":"#mapmultimap","p":28},{"i":48,"t":"biset","u":"/docs/Algorithms/STL模板","h":"#biset","p":28},{"i":52,"t":"vs2018 快捷键","u":"/docs/Algorithms/机试技巧与STL","h":"#vs2018-快捷键","p":50},{"i":54,"t":"头文件","u":"/docs/Algorithms/机试技巧与STL","h":"#头文件","p":50},{"i":55,"t":"标准c库","u":"/docs/Algorithms/机试技巧与STL","h":"#标准c库","p":50},{"i":57,"t":"c++ STL","u":"/docs/Algorithms/机试技巧与STL","h":"#c-stl","p":50},{"i":59,"t":"常用头","u":"/docs/Algorithms/机试技巧与STL","h":"#常用头","p":50},{"i":61,"t":"常用宏定义","u":"/docs/Algorithms/机试技巧与STL","h":"#常用宏定义","p":50},{"i":63,"t":"结构体","u":"/docs/Algorithms/机试技巧与STL","h":"#结构体","p":50},{"i":64,"t":"定义","u":"/docs/Algorithms/机试技巧与STL","h":"#定义","p":50},{"i":66,"t":"初始化","u":"/docs/Algorithms/机试技巧与STL","h":"#初始化","p":50},{"i":68,"t":"运算符重载","u":"/docs/Algorithms/机试技巧与STL","h":"#运算符重载","p":50},{"i":70,"t":"c++new的使用","u":"/docs/Algorithms/机试技巧与STL","h":"#cnew的使用","p":50},{"i":71,"t":"常规","u":"/docs/Algorithms/机试技巧与STL","h":"#常规","p":50},{"i":73,"t":"动态申请列大小固定的二维数组","u":"/docs/Algorithms/机试技巧与STL","h":"#动态申请列大小固定的二维数组","p":50},{"i":75,"t":"动态申请大小不固定的二维数组","u":"/docs/Algorithms/机试技巧与STL","h":"#动态申请大小不固定的二维数组","p":50},{"i":77,"t":"常用STL","u":"/docs/Algorithms/机试技巧与STL","h":"#常用stl","p":50},{"i":79,"t":"简述","u":"/docs/Algorithms/机试技巧与STL","h":"#简述","p":50},{"i":81,"t":"algorithm","u":"/docs/Algorithms/机试技巧与STL","h":"#algorithm","p":50},{"i":83,"t":"vector","u":"/docs/Algorithms/机试技巧与STL","h":"#vector","p":50},{"i":85,"t":"list","u":"/docs/Algorithms/机试技巧与STL","h":"#list","p":50},{"i":87,"t":"string","u":"/docs/Algorithms/机试技巧与STL","h":"#string","p":50},{"i":89,"t":"pair","u":"/docs/Algorithms/机试技巧与STL","h":"#pair","p":50},{"i":91,"t":"map","u":"/docs/Algorithms/机试技巧与STL","h":"#map","p":50},{"i":93,"t":"stack","u":"/docs/Algorithms/机试技巧与STL","h":"#stack","p":50},{"i":95,"t":"queue","u":"/docs/Algorithms/机试技巧与STL","h":"#queue","p":50},{"i":97,"t":"set","u":"/docs/Algorithms/机试技巧与STL","h":"#set","p":50},{"i":99,"t":"multiset","u":"/docs/Algorithms/机试技巧与STL","h":"#multiset","p":50},{"i":101,"t":"bitset","u":"/docs/Algorithms/机试技巧与STL","h":"#bitset","p":50},{"i":103,"t":"图模板","u":"/docs/Algorithms/机试技巧与STL","h":"#图模板","p":50},{"i":104,"t":"不带出入度的最简模板","u":"/docs/Algorithms/机试技巧与STL","h":"#不带出入度的最简模板","p":50},{"i":106,"t":"带出入度的 (2019推免试题)","u":"/docs/Algorithms/机试技巧与STL","h":"#带出入度的-2019推免试题","p":50},{"i":108,"t":"图算法:找出u到v的所有路径-邻接表","u":"/docs/Algorithms/机试技巧与STL","h":"#图算法找出u到v的所有路径-邻接表","p":50},{"i":110,"t":"树模板","u":"/docs/Algorithms/机试技巧与STL","h":"#树模板","p":50},{"i":111,"t":"注释版","u":"/docs/Algorithms/机试技巧与STL","h":"#注释版","p":50},{"i":113,"t":"简化版(Val As Index,若数据不在1~N内,则可能越界)","u":"/docs/Algorithms/机试技巧与STL","h":"#简化版val-as-index若数据不在1n内则可能越界","p":50},{"i":115,"t":"简化版(Val Not As Index,可以存任意的 Val)","u":"/docs/Algorithms/机试技巧与STL","h":"#简化版val-not-as-index可以存任意的-val","p":50},{"i":118,"t":"第一章:前言","u":"/docs/Curriculum/编译原理/Note","h":"#第一章前言","p":117},{"i":119,"t":"1.1 编译程序的逻辑结构","u":"/docs/Curriculum/编译原理/Note","h":"#11-编译程序的逻辑结构","p":117},{"i":121,"t":"1.2 前端和后端","u":"/docs/Curriculum/编译原理/Note","h":"#12-前端和后端","p":117},{"i":123,"t":"1.3 遍的概念","u":"/docs/Curriculum/编译原理/Note","h":"#13-遍的概念","p":117},{"i":125,"t":"第二章:文法和语言","u":"/docs/Curriculum/编译原理/Note","h":"#第二章文法和语言","p":117},{"i":126,"t":"2.1 句型","u":"/docs/Curriculum/编译原理/Note","h":"#21-句型","p":117},{"i":128,"t":"2.2 句子:","u":"/docs/Curriculum/编译原理/Note","h":"#22-句子","p":117},{"i":130,"t":"2.3 文法的分类:","u":"/docs/Curriculum/编译原理/Note","h":"#23-文法的分类","p":117},{"i":132,"t":"2.4 最左/右推导:","u":"/docs/Curriculum/编译原理/Note","h":"#24-最左右推导","p":117},{"i":134,"t":"第三章:词法分析","u":"/docs/Curriculum/编译原理/Note","h":"#第三章词法分析","p":117},{"i":135,"t":"3.1 正规文法转换成正规式","u":"/docs/Curriculum/编译原理/Note","h":"#31-正规文法转换成正规式","p":117},{"i":136,"t":"3.2 有穷自动机(FA)","u":"/docs/Curriculum/编译原理/Note","h":"#32-有穷自动机fa","p":117},{"i":138,"t":"3.3 正规式RE与有穷自动机FA的互相转化","u":"/docs/Curriculum/编译原理/Note","h":"#33-正规式re与有穷自动机fa的互相转化","p":117},{"i":139,"t":"3.4 正规文法RM与有穷自动机FA的互相转化","u":"/docs/Curriculum/编译原理/Note","h":"#34-正规文法rm与有穷自动机fa的互相转化","p":117},{"i":140,"t":"第四章:自顶向下语法分析方法","u":"/docs/Curriculum/编译原理/Note","h":"#第四章自顶向下语法分析方法","p":117},{"i":142,"t":"1. FIRST集的定义","u":"/docs/Curriculum/编译原理/Note","h":"#1-first集的定义","p":117},{"i":143,"t":"2. Follow集的定义","u":"/docs/Curriculum/编译原理/Note","h":"#2-follow集的定义","p":117},{"i":145,"t":"3. SELECT集的定义","u":"/docs/Curriculum/编译原理/Note","h":"#3-select集的定义","p":117},{"i":147,"t":"4. LL(1)文法的定义","u":"/docs/Curriculum/编译原理/Note","h":"#4-ll1文法的定义","p":117},{"i":148,"t":"5. LL(1)文法的判别","u":"/docs/Curriculum/编译原理/Note","h":"#5-ll1文法的判别","p":117},{"i":150,"t":"6. 预测分析表","u":"/docs/Curriculum/编译原理/Note","h":"#6-预测分析表","p":117},{"i":152,"t":"7. 非LL(1)文法到LL(1)文法的等价变换","u":"/docs/Curriculum/编译原理/Note","h":"#7-非ll1文法到ll1文法的等价变换","p":117},{"i":154,"t":"第五章:自底向上语法分析方法","u":"/docs/Curriculum/编译原理/Note","h":"#第五章自底向上语法分析方法","p":117},{"i":155,"t":"5.1 概念","u":"/docs/Curriculum/编译原理/Note","h":"#51-概念","p":117},{"i":157,"t":"5.2 方法","u":"/docs/Curriculum/编译原理/Note","h":"#52-方法","p":117},{"i":159,"t":"5.3 工作过程","u":"/docs/Curriculum/编译原理/Note","h":"#53-工作过程","p":117},{"i":160,"t":"5.4 移入-归约分析器的4种动作","u":"/docs/Curriculum/编译原理/Note","h":"#54-移入-归约分析器的4种动作","p":117},{"i":162,"t":"5.5 重要题型","u":"/docs/Curriculum/编译原理/Note","h":"#55-重要题型","p":117},{"i":164,"t":"概念总结","u":"/docs/Curriculum/编译原理/Note","h":"#概念总结","p":117},{"i":165,"t":"1 编译程序各阶段功能","u":"/docs/Curriculum/编译原理/Note","h":"#1-编译程序各阶段功能","p":117},{"i":167,"t":"2 语法分析方法的概念","u":"/docs/Curriculum/编译原理/Note","h":"#2-语法分析方法的概念","p":117},{"i":169,"t":"3 翻译模式","u":"/docs/Curriculum/编译原理/Note","h":"#3-翻译模式","p":117},{"i":171,"t":"4 属性文法","u":"/docs/Curriculum/编译原理/Note","h":"#4-属性文法","p":117},{"i":173,"t":"5 符号表","u":"/docs/Curriculum/编译原理/Note","h":"#5-符号表","p":117},{"i":176,"t":"一、必须要知道的原理","u":"/docs/Curriculum/操作系统课设/Environment-Configuration","h":"#一必须要知道的原理","p":175},{"i":177,"t":"1. GeekOS:","u":"/docs/Curriculum/操作系统课设/Environment-Configuration","h":"#1-geekos","p":175},{"i":179,"t":"2. bochs:","u":"/docs/Curriculum/操作系统课设/Environment-Configuration","h":"#2-bochs","p":175},{"i":181,"t":"3. 二者之间的关系","u":"/docs/Curriculum/操作系统课设/Environment-Configuration","h":"#3-二者之间的关系","p":175},{"i":183,"t":"二、安装与配置","u":"/docs/Curriculum/操作系统课设/Environment-Configuration","h":"#二安装与配置","p":175},{"i":185,"t":"1. 安装","u":"/docs/Curriculum/操作系统课设/Environment-Configuration","h":"#1-安装","p":175},{"i":187,"t":"2. 配置","u":"/docs/Curriculum/操作系统课设/Environment-Configuration","h":"#2-配置","p":175},{"i":191,"t":"支持我!","u":"/docs/Curriculum/intro","h":"#支持我","p":189},{"i":195,"t":"1. 编写C语言代码","u":"/docs/Curriculum/操作系统课设/GeekOS-project-0","h":"#1-编写c语言代码","p":193},{"i":197,"t":"2. 使用Linux的编译系统对C语言代码进行编译","u":"/docs/Curriculum/操作系统课设/GeekOS-project-0","h":"#2-使用linux的编译系统对c语言代码进行编译","p":193},{"i":201,"t":"基本概念","u":"/docs/Deep-Learning/大模型/Diffusion-Model","h":"#基本概念","p":199},{"i":203,"t":"训练过程","u":"/docs/Deep-Learning/大模型/Diffusion-Model","h":"#训练过程","p":199},{"i":205,"t":"推理过程","u":"/docs/Deep-Learning/大模型/Diffusion-Model","h":"#推理过程","p":199},{"i":209,"t":"第2章 数字图像处理基础","u":"/docs/Curriculum/数字图像处理/Note","h":"#第2章-数字图像处理基础","p":207},{"i":210,"t":"图像的采样与量化","u":"/docs/Curriculum/数字图像处理/Note","h":"#图像的采样与量化","p":207},{"i":212,"t":"距离度量","u":"/docs/Curriculum/数字图像处理/Note","h":"#距离度量","p":207},{"i":214,"t":"图像质量评价","u":"/docs/Curriculum/数字图像处理/Note","h":"#图像质量评价","p":207},{"i":216,"t":"灰度直方图","u":"/docs/Curriculum/数字图像处理/Note","h":"#灰度直方图","p":207},{"i":217,"t":"第3章 图像变换","u":"/docs/Curriculum/数字图像处理/Note","h":"#第3章-图像变换","p":207},{"i":218,"t":"傅里叶变换","u":"/docs/Curriculum/数字图像处理/Note","h":"#傅里叶变换","p":207},{"i":220,"t":"第4章 图像处理的基本运算","u":"/docs/Curriculum/数字图像处理/Note","h":"#第4章-图像处理的基本运算","p":207},{"i":221,"t":"点运算","u":"/docs/Curriculum/数字图像处理/Note","h":"#点运算","p":207},{"i":223,"t":"比例缩放","u":"/docs/Curriculum/数字图像处理/Note","h":"#比例缩放","p":207},{"i":225,"t":"灰度级插值","u":"/docs/Curriculum/数字图像处理/Note","h":"#灰度级插值","p":207},{"i":227,"t":"第5章 图像空域增强","u":"/docs/Curriculum/数字图像处理/Note","h":"#第5章-图像空域增强","p":207},{"i":228,"t":"直接灰度变换","u":"/docs/Curriculum/数字图像处理/Note","h":"#直接灰度变换","p":207},{"i":230,"t":"直方图灰度变换","u":"/docs/Curriculum/数字图像处理/Note","h":"#直方图灰度变换","p":207},{"i":232,"t":"空域滤波增强","u":"/docs/Curriculum/数字图像处理/Note","h":"#空域滤波增强","p":207},{"i":234,"t":"第6章 图像频域增强","u":"/docs/Curriculum/数字图像处理/Note","h":"#第6章-图像频域增强","p":207},{"i":236,"t":"低通滤波","u":"/docs/Curriculum/数字图像处理/Note","h":"#低通滤波","p":207},{"i":238,"t":"高通滤波","u":"/docs/Curriculum/数字图像处理/Note","h":"#高通滤波","p":207},{"i":240,"t":"带通和带阻滤波","u":"/docs/Curriculum/数字图像处理/Note","h":"#带通和带阻滤波","p":207},{"i":242,"t":"第7章 彩色图像处理","u":"/docs/Curriculum/数字图像处理/Note","h":"#第7章-彩色图像处理","p":207},{"i":243,"t":"伪彩色图像的处理","u":"/docs/Curriculum/数字图像处理/Note","h":"#伪彩色图像的处理","p":207},{"i":245,"t":"全彩色图像的处理","u":"/docs/Curriculum/数字图像处理/Note","h":"#全彩色图像的处理","p":207},{"i":246,"t":"第8章 图像复原","u":"/docs/Curriculum/数字图像处理/Note","h":"#第8章-图像复原","p":207},{"i":247,"t":"图像退化机理","u":"/docs/Curriculum/数字图像处理/Note","h":"#图像退化机理","p":207},{"i":249,"t":"图像退化模型","u":"/docs/Curriculum/数字图像处理/Note","h":"#图像退化模型","p":207},{"i":251,"t":"第11章 图像分割","u":"/docs/Curriculum/数字图像处理/Note","h":"#第11章-图像分割","p":207},{"i":252,"t":"阈值分割法","u":"/docs/Curriculum/数字图像处理/Note","h":"#阈值分割法","p":207},{"i":254,"t":"边缘检测的基本原理","u":"/docs/Curriculum/数字图像处理/Note","h":"#边缘检测的基本原理","p":207},{"i":256,"t":"边缘检测算子","u":"/docs/Curriculum/数字图像处理/Note","h":"#边缘检测算子","p":207},{"i":258,"t":"课后习题中的问答题","u":"/docs/Curriculum/数字图像处理/Note","h":"#课后习题中的问答题","p":207},{"i":262,"t":"整体结构","u":"/docs/Deep-Learning/大模型/Attention-Is-All-You-Need","h":"#整体结构","p":260},{"i":264,"t":"Encoder","u":"/docs/Deep-Learning/大模型/Attention-Is-All-You-Need","h":"#encoder","p":260},{"i":265,"t":"整体结构","u":"/docs/Deep-Learning/大模型/Attention-Is-All-You-Need","h":"#整体结构-1","p":260},{"i":267,"t":"位置编码(Positional Encoding)","u":"/docs/Deep-Learning/大模型/Attention-Is-All-You-Need","h":"#位置编码positional-encoding","p":260},{"i":269,"t":"具体结构","u":"/docs/Deep-Learning/大模型/Attention-Is-All-You-Need","h":"#具体结构","p":260},{"i":271,"t":"Decoder","u":"/docs/Deep-Learning/大模型/Attention-Is-All-You-Need","h":"#decoder","p":260},{"i":273,"t":"Autoregressive Decoder(AT)","u":"/docs/Deep-Learning/大模型/Attention-Is-All-You-Need","h":"#autoregressive-decoderat","p":260},{"i":275,"t":"Non-Autoregressive Decoder(NAT)","u":"/docs/Deep-Learning/大模型/Attention-Is-All-You-Need","h":"#non-autoregressive-decodernat","p":260},{"i":276,"t":"训练(Training)","u":"/docs/Deep-Learning/大模型/Attention-Is-All-You-Need","h":"#训练training","p":260},{"i":277,"t":"损失函数","u":"/docs/Deep-Learning/大模型/Attention-Is-All-You-Need","h":"#损失函数","p":260},{"i":279,"t":"Teacher Forcing","u":"/docs/Deep-Learning/大模型/Attention-Is-All-You-Need","h":"#teacher-forcing","p":260},{"i":281,"t":"Teacher Forcing与Masked Multi-Head Self-Attention","u":"/docs/Deep-Learning/大模型/Attention-Is-All-You-Need","h":"#teacher-forcing与masked-multi-head-self-attention","p":260},{"i":285,"t":"引言","u":"/docs/Deep-Learning/大模型/GAN","h":"#引言","p":283},{"i":286,"t":"将随机分布作为输入","u":"/docs/Deep-Learning/大模型/GAN","h":"#将随机分布作为输入","p":283},{"i":288,"t":"为什么要添加分布","u":"/docs/Deep-Learning/大模型/GAN","h":"#为什么要添加分布","p":283},{"i":290,"t":"核心思想","u":"/docs/Deep-Learning/大模型/GAN","h":"#核心思想","p":283},{"i":292,"t":"具体结构与作用","u":"/docs/Deep-Learning/大模型/GAN","h":"#具体结构与作用","p":283},{"i":294,"t":"生成器(Generator)","u":"/docs/Deep-Learning/大模型/GAN","h":"#生成器generator","p":283},{"i":296,"t":"判别器(Discriminator)","u":"/docs/Deep-Learning/大模型/GAN","h":"#判别器discriminator","p":283},{"i":298,"t":"训练算法","u":"/docs/Deep-Learning/大模型/GAN","h":"#训练算法","p":283},{"i":302,"t":"依赖","u":"/docs/Deep-Learning/大模型/Prompt Learning/Undergraduate-Dissertation","h":"#依赖","p":300},{"i":303,"t":"创建 Anaconda 虚拟环境","u":"/docs/Deep-Learning/大模型/Prompt Learning/Undergraduate-Dissertation","h":"#创建-anaconda-虚拟环境","p":300},{"i":305,"t":"安装依赖","u":"/docs/Deep-Learning/大模型/Prompt Learning/Undergraduate-Dissertation","h":"#安装依赖","p":300},{"i":307,"t":"下载预训练生成器","u":"/docs/Deep-Learning/大模型/Prompt Learning/Undergraduate-Dissertation","h":"#下载预训练生成器","p":300},{"i":309,"t":"概述","u":"/docs/Deep-Learning/大模型/Prompt Learning/Undergraduate-Dissertation","h":"#概述","p":300},{"i":310,"t":"技术细节","u":"/docs/Deep-Learning/大模型/Prompt Learning/Undergraduate-Dissertation","h":"#技术细节","p":300},{"i":311,"t":"prompts 的初始化","u":"/docs/Deep-Learning/大模型/Prompt Learning/Undergraduate-Dissertation","h":"#prompts-的初始化","p":300},{"i":313,"t":"prompts 的 tokenize 与 embedding","u":"/docs/Deep-Learning/大模型/Prompt Learning/Undergraduate-Dissertation","h":"#prompts-的-tokenize-与-embedding","p":300},{"i":315,"t":"compute_text_features 的实现细节","u":"/docs/Deep-Learning/大模型/Prompt Learning/Undergraduate-Dissertation","h":"#compute_text_features-的实现细节","p":300},{"i":317,"t":"训练 stage 1","u":"/docs/Deep-Learning/大模型/Prompt Learning/Undergraduate-Dissertation","h":"#训练-stage-1","p":300},{"i":319,"t":"训练 stage 2","u":"/docs/Deep-Learning/大模型/Prompt Learning/Undergraduate-Dissertation","h":"#训练-stage-2","p":300},{"i":321,"t":"定量分析指标","u":"/docs/Deep-Learning/大模型/Prompt Learning/Undergraduate-Dissertation","h":"#定量分析指标","p":300},{"i":323,"t":"新增功能","u":"/docs/Deep-Learning/大模型/Prompt Learning/Undergraduate-Dissertation","h":"#新增功能","p":300},{"i":324,"t":"自定义图像风格迁移","u":"/docs/Deep-Learning/大模型/Prompt Learning/Undergraduate-Dissertation","h":"#自定义图像风格迁移","p":300},{"i":326,"t":"问题提出与改进","u":"/docs/Deep-Learning/大模型/Prompt Learning/Undergraduate-Dissertation","h":"#问题提出与改进","p":300},{"i":327,"t":"训练阶段人工 prompts 的作用是什么?","u":"/docs/Deep-Learning/大模型/Prompt Learning/Undergraduate-Dissertation","h":"#训练阶段人工-prompts-的作用是什么","p":300},{"i":329,"t":"Mapper 结构的设计","u":"/docs/Deep-Learning/大模型/Prompt Learning/Undergraduate-Dissertation","h":"#mapper-结构的设计","p":300},{"i":332,"t":"回顾文字生成的两种方法","u":"/docs/Deep-Learning/大模型/Image-Generation-Models","h":"#回顾文字生成的两种方法","p":331},{"i":334,"t":"自回归方法(AR)","u":"/docs/Deep-Learning/大模型/Image-Generation-Models","h":"#自回归方法ar","p":331},{"i":336,"t":"非自回归方法(NAR)","u":"/docs/Deep-Learning/大模型/Image-Generation-Models","h":"#非自回归方法nar","p":331},{"i":338,"t":"目前图像生成模型的共同点","u":"/docs/Deep-Learning/大模型/Image-Generation-Models","h":"#目前图像生成模型的共同点","p":331},{"i":340,"t":"生成模型的共同结构","u":"/docs/Deep-Learning/大模型/Image-Generation-Models","h":"#生成模型的共同结构","p":331},{"i":342,"t":"通用框架概览","u":"/docs/Deep-Learning/大模型/Image-Generation-Models","h":"#通用框架概览","p":331},{"i":344,"t":"Benchmark","u":"/docs/Deep-Learning/大模型/Image-Generation-Models","h":"#benchmark","p":331},{"i":346,"t":"通用框架解析","u":"/docs/Deep-Learning/大模型/Image-Generation-Models","h":"#通用框架解析","p":331},{"i":348,"t":"常见图像生成模型速览","u":"/docs/Deep-Learning/大模型/Image-Generation-Models","h":"#常见图像生成模型速览","p":331},{"i":350,"t":"变分自编码器(VAE)","u":"/docs/Deep-Learning/大模型/Image-Generation-Models","h":"#变分自编码器vae","p":331},{"i":352,"t":"基于流的生成模型(Flow-Based Generative Model)","u":"/docs/Deep-Learning/大模型/Image-Generation-Models","h":"#基于流的生成模型flow-based-generative-model","p":331},{"i":354,"t":"生成对抗网络(GAN)","u":"/docs/Deep-Learning/大模型/Image-Generation-Models","h":"#生成对抗网络gan","p":331},{"i":356,"t":"扩散模型(Diffusion Model)","u":"/docs/Deep-Learning/大模型/Image-Generation-Models","h":"#扩散模型diffusion-model","p":331},{"i":360,"t":"常规卷积","u":"/docs/Deep-Learning/基础知识/深度可分离卷积","h":"#常规卷积","p":358},{"i":362,"t":"(1)逐通道卷积-Depthwise Convolution","u":"/docs/Deep-Learning/基础知识/深度可分离卷积","h":"#1逐通道卷积-depthwise-convolution","p":358},{"i":364,"t":"(2)逐点卷积-Pointwise Convolution","u":"/docs/Deep-Learning/基础知识/深度可分离卷积","h":"#2逐点卷积-pointwise-convolution","p":358},{"i":368,"t":"认识CNN的局限性","u":"/docs/Deep-Learning/大模型/Self-Attention","h":"#认识cnn的局限性","p":366},{"i":369,"t":"输入与输出的局限性","u":"/docs/Deep-Learning/大模型/Self-Attention","h":"#输入与输出的局限性","p":366},{"i":371,"t":"关联上下文信息的局限性","u":"/docs/Deep-Learning/大模型/Self-Attention","h":"#关联上下文信息的局限性","p":366},{"i":373,"t":"Self-Attention的原理","u":"/docs/Deep-Learning/大模型/Self-Attention","h":"#self-attention的原理","p":366},{"i":374,"t":"什么是Self-Attention","u":"/docs/Deep-Learning/大模型/Self-Attention","h":"#什么是self-attention","p":366},{"i":376,"t":"Self-Attention的核心思想","u":"/docs/Deep-Learning/大模型/Self-Attention","h":"#self-attention的核心思想","p":366},{"i":378,"t":"Self-Attention的实现","u":"/docs/Deep-Learning/大模型/Self-Attention","h":"#self-attention的实现","p":366},{"i":380,"t":"Multi-Head Self-Attention","u":"/docs/Deep-Learning/大模型/Self-Attention","h":"#multi-head-self-attention","p":366},{"i":382,"t":"Self-Attention与CNN的对比","u":"/docs/Deep-Learning/大模型/Self-Attention","h":"#self-attention与cnn的对比","p":366},{"i":386,"t":"介绍","u":"/docs/Deep-Learning/大模型/Self-Supervised-Learning","h":"#介绍","p":384},{"i":388,"t":"BERT(Bidirectional Encoder Representation from Transformers)","u":"/docs/Deep-Learning/大模型/Self-Supervised-Learning","h":"#bertbidirectional-encoder-representation-from-transformers","p":384},{"i":390,"t":"结构","u":"/docs/Deep-Learning/大模型/Self-Supervised-Learning","h":"#结构","p":384},{"i":392,"t":"Self-Supervised Pretraining","u":"/docs/Deep-Learning/大模型/Self-Supervised-Learning","h":"#self-supervised-pretraining","p":384},{"i":394,"t":"Fine-tuning","u":"/docs/Deep-Learning/大模型/Self-Supervised-Learning","h":"#fine-tuning","p":384},{"i":396,"t":"Why does BERT work?","u":"/docs/Deep-Learning/大模型/Self-Supervised-Learning","h":"#why-does-bert-work","p":384},{"i":398,"t":"GPT: Generative Pre-trained Transformer","u":"/docs/Deep-Learning/大模型/Self-Supervised-Learning","h":"#gpt-generative-pre-trained-transformer","p":384},{"i":401,"t":"一、激活函数","u":"/docs/Deep-Learning/基础知识/激活函数与Loss的梯度","h":"#一激活函数","p":400},{"i":402,"t":"1. Sigmoid函数 / Logistic函数","u":"/docs/Deep-Learning/基础知识/激活函数与Loss的梯度","h":"#1-sigmoid函数--logistic函数","p":400},{"i":404,"t":"2. 线性整流单元(Rectified Linear Unit, ReLU)","u":"/docs/Deep-Learning/基础知识/激活函数与Loss的梯度","h":"#2-线性整流单元rectified-linear-unit-relu","p":400},{"i":406,"t":"二、损失函数","u":"/docs/Deep-Learning/基础知识/激活函数与Loss的梯度","h":"#二损失函数","p":400},{"i":407,"t":"1. Mean Squared Error 均方误差","u":"/docs/Deep-Learning/基础知识/激活函数与Loss的梯度","h":"#1-mean-squared-error-均方误差","p":400},{"i":409,"t":"2. Cross Entropy Loss 交叉熵损失","u":"/docs/Deep-Learning/基础知识/激活函数与Loss的梯度","h":"#2-cross-entropy-loss-交叉熵损失","p":400},{"i":412,"t":"一、1x1卷积","u":"/docs/Deep-Learning/基础知识/ConvolutionalLayer","h":"#一1x1卷积","p":411},{"i":414,"t":"二、二维卷积层","u":"/docs/Deep-Learning/基础知识/ConvolutionalLayer","h":"#二二维卷积层","p":411},{"i":417,"t":"背景","u":"/docs/Deep-Learning/基础知识/AlexNet","h":"#背景","p":416},{"i":419,"t":"新的概念和技术","u":"/docs/Deep-Learning/基础知识/AlexNet","h":"#新的概念和技术","p":416},{"i":421,"t":"与LeNet比较","u":"/docs/Deep-Learning/基础知识/AlexNet","h":"#与lenet比较","p":416},{"i":425,"t":"一、什么是正则化","u":"/docs/Deep-Learning/基础知识/正则化与权重衰退","h":"#一什么是正则化","p":423},{"i":427,"t":"二、L1正则化","u":"/docs/Deep-Learning/基础知识/正则化与权重衰退","h":"#二l1正则化","p":423},{"i":429,"t":"三、L2正则化与权重衰退","u":"/docs/Deep-Learning/基础知识/正则化与权重衰退","h":"#三l2正则化与权重衰退","p":423},{"i":432,"t":"What is k-fold cross-validation?","u":"/docs/Deep-Learning/基础知识/K-foldCross-validation","h":"#what-is-k-fold-cross-validation","p":431},{"i":434,"t":"How does k-fold cross-validation work?","u":"/docs/Deep-Learning/基础知识/K-foldCross-validation","h":"#how-does-k-fold-cross-validation-work","p":431},{"i":436,"t":"Summary","u":"/docs/Deep-Learning/基础知识/K-foldCross-validation","h":"#summary","p":431},{"i":439,"t":"背景","u":"/docs/Deep-Learning/基础知识/LeNet","h":"#背景","p":438},{"i":441,"t":"代码实现","u":"/docs/Deep-Learning/基础知识/LeNet","h":"#代码实现","p":438},{"i":443,"t":"问题","u":"/docs/Deep-Learning/基础知识/LeNet","h":"#问题","p":438},{"i":446,"t":"一、卷积的诞生&核心特征","u":"/docs/Deep-Learning/基础知识/FromFullyConnectedLayerToConvolutionalLayer","h":"#一卷积的诞生核心特征","p":445},{"i":448,"t":"二、重新考察全连接层","u":"/docs/Deep-Learning/基础知识/FromFullyConnectedLayerToConvolutionalLayer","h":"#二重新考察全连接层","p":445},{"i":450,"t":"三、总结","u":"/docs/Deep-Learning/基础知识/FromFullyConnectedLayerToConvolutionalLayer","h":"#三总结","p":445},{"i":453,"t":"一、什么是感知机","u":"/docs/Deep-Learning/基础知识/Perceptron","h":"#一什么是感知机","p":452},{"i":455,"t":"二、详细原理","u":"/docs/Deep-Learning/基础知识/Perceptron","h":"#二详细原理","p":452},{"i":457,"t":"三、总结","u":"/docs/Deep-Learning/基础知识/Perceptron","h":"#三总结","p":452},{"i":460,"t":"一、什么是Logistic Regression","u":"/docs/Deep-Learning/基础知识/LogisticRegression","h":"#一什么是logistic-regression","p":459},{"i":462,"t":"二、逻辑回归(Logistic Regression)和线性回归(Linear Regression)","u":"/docs/Deep-Learning/基础知识/LogisticRegression","h":"#二逻辑回归logistic-regression和线性回归linear-regression","p":459},{"i":464,"t":"三、逻辑回归到底是回归任务(Regression)还是分类任务(Classification)?","u":"/docs/Deep-Learning/基础知识/LogisticRegression","h":"#三逻辑回归到底是回归任务regression还是分类任务classification","p":459},{"i":466,"t":"四、为什么逻辑回归或其他分类任务不使用分类准确率作为损失函数?","u":"/docs/Deep-Learning/基础知识/LogisticRegression","h":"#四为什么逻辑回归或其他分类任务不使用分类准确率作为损失函数","p":459},{"i":469,"t":"一、常用函数部分","u":"/docs/Deep-Learning/基础知识/PytorchBasics","h":"#一常用函数部分","p":468},{"i":472,"t":"一、卷积对像素位置信息是敏感的","u":"/docs/Deep-Learning/基础知识/PoolingLayer","h":"#一卷积对像素位置信息是敏感的","p":471},{"i":474,"t":"二、池化层的作用","u":"/docs/Deep-Learning/基础知识/PoolingLayer","h":"#二池化层的作用","p":471},{"i":476,"t":"三、池化的实现","u":"/docs/Deep-Learning/基础知识/PoolingLayer","h":"#三池化的实现","p":471},{"i":480,"t":"整体结构","u":"/docs/Deep-Learning/论文笔记/Attention Is All You Need","h":"#整体结构","p":478},{"i":482,"t":"Encoder","u":"/docs/Deep-Learning/论文笔记/Attention Is All You Need","h":"#encoder","p":478},{"i":483,"t":"整体结构","u":"/docs/Deep-Learning/论文笔记/Attention Is All You Need","h":"#整体结构-1","p":478},{"i":485,"t":"位置编码(Positional Encoding)","u":"/docs/Deep-Learning/论文笔记/Attention Is All You Need","h":"#位置编码positional-encoding","p":478},{"i":487,"t":"具体结构","u":"/docs/Deep-Learning/论文笔记/Attention Is All You Need","h":"#具体结构","p":478},{"i":489,"t":"Decoder","u":"/docs/Deep-Learning/论文笔记/Attention Is All You Need","h":"#decoder","p":478},{"i":491,"t":"Autoregressive Decoder(AT)","u":"/docs/Deep-Learning/论文笔记/Attention Is All You Need","h":"#autoregressive-decoderat","p":478},{"i":493,"t":"Non-Autoregressive Decoder(NAT)","u":"/docs/Deep-Learning/论文笔记/Attention Is All You Need","h":"#non-autoregressive-decodernat","p":478},{"i":494,"t":"训练(Training)","u":"/docs/Deep-Learning/论文笔记/Attention Is All You Need","h":"#训练training","p":478},{"i":495,"t":"损失函数","u":"/docs/Deep-Learning/论文笔记/Attention Is All You Need","h":"#损失函数","p":478},{"i":497,"t":"Teacher Forcing","u":"/docs/Deep-Learning/论文笔记/Attention Is All You Need","h":"#teacher-forcing","p":478},{"i":499,"t":"Teacher Forcing与Masked Multi-Head Self-Attention","u":"/docs/Deep-Learning/论文笔记/Attention Is All You Need","h":"#teacher-forcing与masked-multi-head-self-attention","p":478},{"i":503,"t":"摘要与主要贡献","u":"/docs/Deep-Learning/论文笔记/High-Resolution Image Synthesis with Latent Diffusion Models","h":"#摘要与主要贡献","p":501},{"i":506,"t":"数学原理(Mathematical Preliminary)","u":"/docs/Deep-Learning/论文笔记/Denoising Diffusion Probabilistic Models","h":"#数学原理mathematical-preliminary","p":504},{"i":507,"t":"先验概率与后验概率","u":"/docs/Deep-Learning/论文笔记/Denoising Diffusion Probabilistic Models","h":"#先验概率与后验概率","p":504},{"i":509,"t":"条件概率与高斯分布的KL散度","u":"/docs/Deep-Learning/论文笔记/Denoising Diffusion Probabilistic Models","h":"#条件概率与高斯分布的kl散度","p":504},{"i":511,"t":"马尔科夫链条件概率形式","u":"/docs/Deep-Learning/论文笔记/Denoising Diffusion Probabilistic Models","h":"#马尔科夫链条件概率形式","p":504},{"i":513,"t":"参数重整化技巧","u":"/docs/Deep-Learning/论文笔记/Denoising Diffusion Probabilistic Models","h":"#参数重整化技巧","p":504},{"i":517,"t":"摘要","u":"/docs/Deep-Learning/论文笔记/Zero-shot Generative Model Adaptation via Image-specific Prompt Learning","h":"#摘要","p":515},{"i":519,"t":"相关工作","u":"/docs/Deep-Learning/论文笔记/Zero-shot Generative Model Adaptation via Image-specific Prompt Learning","h":"#相关工作","p":515},{"i":520,"t":"Generative Model Adaption","u":"/docs/Deep-Learning/论文笔记/Zero-shot Generative Model Adaptation via Image-specific Prompt Learning","h":"#generative-model-adaption","p":515},{"i":522,"t":"Prompt Learning","u":"/docs/Deep-Learning/论文笔记/Zero-shot Generative Model Adaptation via Image-specific Prompt Learning","h":"#prompt-learning","p":515},{"i":524,"t":"主要方法","u":"/docs/Deep-Learning/论文笔记/Zero-shot Generative Model Adaptation via Image-specific Prompt Learning","h":"#主要方法","p":515},{"i":525,"t":"概述","u":"/docs/Deep-Learning/论文笔记/Zero-shot Generative Model Adaptation via Image-specific Prompt Learning","h":"#概述","p":515},{"i":527,"t":"Image-specific Prompt Learning","u":"/docs/Deep-Learning/论文笔记/Zero-shot Generative Model Adaptation via Image-specific Prompt Learning","h":"#image-specific-prompt-learning","p":515},{"i":530,"t":"Overview","u":"/docs/Deep-Learning/实战练习/Speaker Classification","h":"#overview","p":528},{"i":532,"t":"Dataset","u":"/docs/Deep-Learning/实战练习/Speaker Classification","h":"#dataset","p":528},{"i":534,"t":"Related","u":"/docs/Deep-Learning/实战练习/Speaker Classification","h":"#related","p":528},{"i":538,"t":"安装Visdom","u":"/docs/Deep-Learning/实战练习/Visdom Visualization","h":"#安装visdom","p":536},{"i":540,"t":"Visdom的使用","u":"/docs/Deep-Learning/实战练习/Visdom Visualization","h":"#visdom的使用","p":536},{"i":541,"t":"Visdom的启动","u":"/docs/Deep-Learning/实战练习/Visdom Visualization","h":"#visdom的启动","p":536},{"i":543,"t":"单窗口单曲线的可视化","u":"/docs/Deep-Learning/实战练习/Visdom Visualization","h":"#单窗口单曲线的可视化","p":536},{"i":545,"t":"单窗口多曲线的可视化","u":"/docs/Deep-Learning/实战练习/Visdom Visualization","h":"#单窗口多曲线的可视化","p":536},{"i":551,"t":"依赖","u":"/docs/Deep-Learning/实战练习/Undergraduate-Dissertation","h":"#依赖","p":549},{"i":552,"t":"创建 Anaconda 虚拟环境","u":"/docs/Deep-Learning/实战练习/Undergraduate-Dissertation","h":"#创建-anaconda-虚拟环境","p":549},{"i":554,"t":"安装依赖","u":"/docs/Deep-Learning/实战练习/Undergraduate-Dissertation","h":"#安装依赖","p":549},{"i":556,"t":"下载预训练生成器","u":"/docs/Deep-Learning/实战练习/Undergraduate-Dissertation","h":"#下载预训练生成器","p":549},{"i":558,"t":"概述","u":"/docs/Deep-Learning/实战练习/Undergraduate-Dissertation","h":"#概述","p":549},{"i":559,"t":"技术细节","u":"/docs/Deep-Learning/实战练习/Undergraduate-Dissertation","h":"#技术细节","p":549},{"i":560,"t":"prompts 的初始化","u":"/docs/Deep-Learning/实战练习/Undergraduate-Dissertation","h":"#prompts-的初始化","p":549},{"i":562,"t":"prompts 的 tokenize 与 embedding","u":"/docs/Deep-Learning/实战练习/Undergraduate-Dissertation","h":"#prompts-的-tokenize-与-embedding","p":549},{"i":564,"t":"compute_text_features 的实现细节","u":"/docs/Deep-Learning/实战练习/Undergraduate-Dissertation","h":"#compute_text_features-的实现细节","p":549},{"i":566,"t":"训练 stage 1","u":"/docs/Deep-Learning/实战练习/Undergraduate-Dissertation","h":"#训练-stage-1","p":549},{"i":568,"t":"训练 stage 2","u":"/docs/Deep-Learning/实战练习/Undergraduate-Dissertation","h":"#训练-stage-2","p":549},{"i":570,"t":"定量分析指标","u":"/docs/Deep-Learning/实战练习/Undergraduate-Dissertation","h":"#定量分析指标","p":549},{"i":572,"t":"新增功能","u":"/docs/Deep-Learning/实战练习/Undergraduate-Dissertation","h":"#新增功能","p":549},{"i":573,"t":"自定义图像风格迁移","u":"/docs/Deep-Learning/实战练习/Undergraduate-Dissertation","h":"#自定义图像风格迁移","p":549},{"i":575,"t":"问题提出与改进","u":"/docs/Deep-Learning/实战练习/Undergraduate-Dissertation","h":"#问题提出与改进","p":549},{"i":576,"t":"改进:Mapper 结构的设计","u":"/docs/Deep-Learning/实战练习/Undergraduate-Dissertation","h":"#改进mapper-结构的设计","p":549},{"i":578,"t":"问题:训练阶段人工 prompts 的作用是什么?","u":"/docs/Deep-Learning/实战练习/Undergraduate-Dissertation","h":"#问题训练阶段人工-prompts-的作用是什么","p":549},{"i":580,"t":"改进:使学习到的 prompts 向用户自主设计的 prompts 模板对齐","u":"/docs/Deep-Learning/实战练习/Undergraduate-Dissertation","h":"#改进使学习到的-prompts-向用户自主设计的-prompts-模板对齐","p":549},{"i":584,"t":"支持我!","u":"/docs/Deep-Learning/intro","h":"#支持我","p":582},{"i":588,"t":"Python的广播机制","u":"/docs/Deep-Learning/Fill-The-Gaps","h":"#python的广播机制","p":586},{"i":590,"t":"点积(dot product)与矩阵乘法(matmul product)","u":"/docs/Deep-Learning/Fill-The-Gaps","h":"#点积dot-product与矩阵乘法matmul-product","p":586},{"i":592,"t":"zip函数与解压操作*","u":"/docs/Deep-Learning/Fill-The-Gaps","h":"#zip函数与解压操作","p":586},{"i":594,"t":"对batch_first参数的理解","u":"/docs/Deep-Learning/Fill-The-Gaps","h":"#对batch_first参数的理解","p":586},{"i":598,"t":"支持我!","u":"/docs/Others/intro","h":"#支持我","p":596},{"i":601,"t":"一、latte-dock","u":"/docs/Others/Linux/客制化/如何让你的KDE看起来更像macOS","h":"#一latte-dock","p":600},{"i":603,"t":"二、Kde Plasmoids","u":"/docs/Others/Linux/客制化/如何让你的KDE看起来更像macOS","h":"#二kde-plasmoids","p":600},{"i":607,"t":"一、编写脚本","u":"/docs/Others/Linux/实用工具/终端代理","h":"#一编写脚本","p":605},{"i":609,"t":"二、关联终端配置文件","u":"/docs/Others/Linux/实用工具/终端代理","h":"#二关联终端配置文件","p":605},{"i":611,"t":"三、使用","u":"/docs/Others/Linux/实用工具/终端代理","h":"#三使用","p":605},{"i":614,"t":"树","u":"/docs/Tui-Mian/计算机基础综合/数据结构","h":"#树","p":613},{"i":616,"t":"图","u":"/docs/Tui-Mian/计算机基础综合/数据结构","h":"#图","p":613},{"i":619,"t":"一、发生原因","u":"/docs/Others/Linux/问题解决/双系统挂载Windows磁盘为只读文件","h":"#一发生原因","p":618},{"i":621,"t":"二、解决方案","u":"/docs/Others/Linux/问题解决/双系统挂载Windows磁盘为只读文件","h":"#二解决方案","p":618},{"i":625,"t":"思路","u":"/docs/Tui-Mian/机试/大数除法","h":"#思路","p":623},{"i":627,"t":"参考代码","u":"/docs/Tui-Mian/机试/大数除法","h":"#参考代码","p":623},{"i":629,"t":"扩展","u":"/docs/Tui-Mian/机试/大数除法","h":"#扩展","p":623},{"i":632,"t":"面试常考问题","u":"/docs/Tui-Mian/数学/概率论","h":"#面试常考问题","p":631},{"i":636,"t":"一、基础知识","u":"/docs/Tui-Mian/数学/线性代数","h":"#一基础知识","p":634},{"i":638,"t":"二、面试常考问题","u":"/docs/Tui-Mian/数学/线性代数","h":"#二面试常考问题","p":634},{"i":641,"t":"一、U-2-Net","u":"/docs/Tui-Mian/简历/简历面试准备","h":"#一u-2-net","p":640},{"i":642,"t":"(一)SOD任务","u":"/docs/Tui-Mian/简历/简历面试准备","h":"#一sod任务","p":640},{"i":644,"t":"(二)网络结构","u":"/docs/Tui-Mian/简历/简历面试准备","h":"#二网络结构","p":640},{"i":646,"t":"(三)损失函数","u":"/docs/Tui-Mian/简历/简历面试准备","h":"#三损失函数","p":640},{"i":648,"t":"(四)深度可分离卷积","u":"/docs/Tui-Mian/简历/简历面试准备","h":"#四深度可分离卷积","p":640},{"i":650,"t":"二、YOLO","u":"/docs/Tui-Mian/简历/简历面试准备","h":"#二yolo","p":640},{"i":651,"t":"(一)mAP","u":"/docs/Tui-Mian/简历/简历面试准备","h":"#一map","p":640},{"i":653,"t":"(二)YOLOv1","u":"/docs/Tui-Mian/简历/简历面试准备","h":"#二yolov1","p":640},{"i":655,"t":"(二)YOLOv2","u":"/docs/Tui-Mian/简历/简历面试准备","h":"#二yolov2","p":640},{"i":657,"t":"(三)YOLOv5","u":"/docs/Tui-Mian/简历/简历面试准备","h":"#三yolov5","p":640},{"i":659,"t":"三、CBAM","u":"/docs/Tui-Mian/简历/简历面试准备","h":"#三cbam","p":640},{"i":661,"t":"(一)总体结构","u":"/docs/Tui-Mian/简历/简历面试准备","h":"#一总体结构","p":640},{"i":663,"t":"(二)通道注意力","u":"/docs/Tui-Mian/简历/简历面试准备","h":"#二通道注意力","p":640},{"i":665,"t":"(三)空间注意力","u":"/docs/Tui-Mian/简历/简历面试准备","h":"#三空间注意力","p":640},{"i":667,"t":"(四)其他注意事项","u":"/docs/Tui-Mian/简历/简历面试准备","h":"#四其他注意事项","p":640},{"i":669,"t":"四、Focal Loss","u":"/docs/Tui-Mian/简历/简历面试准备","h":"#四focal-loss","p":640},{"i":671,"t":"五、SENet","u":"/docs/Tui-Mian/简历/简历面试准备","h":"#五senet","p":640},{"i":673,"t":"六、自注意力机制","u":"/docs/Tui-Mian/简历/简历面试准备","h":"#六自注意力机制","p":640},{"i":675,"t":"七、自我介绍","u":"/docs/Tui-Mian/简历/简历面试准备","h":"#七自我介绍","p":640},{"i":676,"t":"(一)英文自我介绍","u":"/docs/Tui-Mian/简历/简历面试准备","h":"#一英文自我介绍","p":640},{"i":678,"t":"(二)西电广研院自我介绍","u":"/docs/Tui-Mian/简历/简历面试准备","h":"#二西电广研院自我介绍","p":640},{"i":680,"t":"(三)电子科技大学自我介绍","u":"/docs/Tui-Mian/简历/简历面试准备","h":"#三电子科技大学自我介绍","p":640},{"i":683,"t":"一、线性代数","u":"/docs/Tui-Mian/数学/夏令营面试数学部分复习","h":"#一线性代数","p":682},{"i":685,"t":"二、概率论","u":"/docs/Tui-Mian/数学/夏令营面试数学部分复习","h":"#二概率论","p":682},{"i":689,"t":"支持我!","u":"/docs/Tui-Mian/intro","h":"#支持我","p":687},{"i":692,"t":"前言","u":"/docs/Tui-Mian/Summary","h":"#前言","p":691},{"i":694,"t":"扫盲","u":"/docs/Tui-Mian/Summary","h":"#扫盲","p":691},{"i":696,"t":"个人情况","u":"/docs/Tui-Mian/Summary","h":"#个人情况","p":691},{"i":698,"t":"前期准备","u":"/docs/Tui-Mian/Summary","h":"#前期准备","p":691},{"i":699,"t":"夏令营","u":"/docs/Tui-Mian/Summary","h":"#夏令营","p":691},{"i":700,"t":"预推免","u":"/docs/Tui-Mian/Summary","h":"#预推免","p":691},{"i":701,"t":"后序","u":"/docs/Tui-Mian/Summary","h":"#后序","p":691}],"index":{"version":"2.3.9","fields":["t"],"fieldVectors":[["t/3",[0,0.499]],["t/5",[0,0.499]],["t/8",[0,0.499]],["t/10",[1,6.284]],["t/14",[0,0.499]],["t/18",[0,0.499]],["t/20",[0,0.499]],["t/24",[0,0.499]],["t/26",[0,0.499]],["t/30",[2,5.692]],["t/32",[3,5.692]],["t/34",[4,5.692]],["t/36",[5,6.284]],["t/38",[6,6.284]],["t/40",[7,5.692]],["t/42",[8,6.284]],["t/44",[9,6.284]],["t/46",[10,6.284]],["t/48",[11,6.284]],["t/52",[0,0.379,12,4.779]],["t/54",[0,0.499]],["t/55",[13,5.302]],["t/57",[13,4.032,14,4.329]],["t/59",[0,0.499]],["t/61",[0,0.499]],["t/63",[0,0.499]],["t/64",[0,0.499]],["t/66",[0,0.499]],["t/68",[0,0.499]],["t/70",[15,6.284]],["t/71",[0,0.499]],["t/73",[0,0.499]],["t/75",[0,0.499]],["t/77",[14,5.692]],["t/79",[0,0.499]],["t/81",[16,6.284]],["t/83",[2,5.692]],["t/85",[17,6.284]],["t/87",[4,5.692]],["t/89",[3,5.692]],["t/91",[18,5.692]],["t/93",[7,5.692]],["t/95",[19,6.284]],["t/97",[20,6.284]],["t/99",[21,6.284]],["t/101",[22,6.284]],["t/103",[0,0.499]],["t/104",[0,0.499]],["t/106",[0,0.379,23,4.779]],["t/108",[0,0.379,24,4.779]],["t/110",[0,0.499]],["t/111",[0,0.499]],["t/113",[25,4.329,26,4.779]],["t/115",[25,5.278,27,3.856]],["t/118",[0,0.499]],["t/119",[0,0.379,28,4.779]],["t/121",[0,0.379,29,4.779]],["t/123",[0,0.379,30,4.779]],["t/125",[0,0.499]],["t/126",[0,0.379,31,4.779]],["t/128",[0,0.379,32,4.779]],["t/130",[0,0.379,33,4.779]],["t/132",[0,0.379,34,4.779]],["t/134",[0,0.499]],["t/135",[0,0.379,35,4.779]],["t/136",[36,4.779,37,4.779]],["t/138",[38,4.779,39,4.779]],["t/139",[40,4.779,41,4.779]],["t/140",[0,0.499]],["t/142",[42,3.063,43,4.779]],["t/143",[44,2.91,45,4.779]],["t/145",[46,3.81,47,4.779]],["t/147",[48,3.81,49,4.329]],["t/148",[49,4.329,50,4.032]],["t/150",[0,0.379,51,4.329]],["t/152",[52,4.329,53,4.779]],["t/154",[0,0.499]],["t/155",[0,0.379,54,4.779]],["t/157",[0,0.379,55,4.779]],["t/159",[0,0.379,56,4.779]],["t/160",[0,0.306,48,3.074,57,3.856]],["t/162",[0,0.379,58,4.779]],["t/164",[0,0.499]],["t/165",[0,0.379,42,3.063]],["t/167",[0,0.379,44,2.91]],["t/169",[0,0.379,46,3.81]],["t/171",[0,0.379,48,3.81]],["t/173",[0,0.379,50,4.032]],["t/176",[0,0.499]],["t/177",[42,3.063,59,4.779]],["t/179",[44,2.91,60,4.779]],["t/181",[0,0.379,46,3.81]],["t/183",[0,0.499]],["t/185",[0,0.379,42,3.063]],["t/187",[0,0.379,44,2.91]],["t/191",[0,0.499]],["t/195",[13,4.032,42,3.063]],["t/197",[44,2.91,61,4.779]],["t/201",[0,0.499]],["t/203",[0,0.499]],["t/205",[0,0.499]],["t/209",[0,0.379,44,2.91]],["t/210",[0,0.499]],["t/212",[0,0.499]],["t/214",[0,0.499]],["t/216",[0,0.499]],["t/217",[0,0.379,46,3.81]],["t/218",[0,0.499]],["t/220",[0,0.379,48,3.81]],["t/221",[0,0.499]],["t/223",[0,0.499]],["t/225",[0,0.499]],["t/227",[0,0.379,50,4.032]],["t/228",[0,0.499]],["t/230",[0,0.499]],["t/232",[0,0.499]],["t/234",[0,0.379,51,4.329]],["t/236",[0,0.499]],["t/238",[0,0.499]],["t/240",[0,0.499]],["t/242",[0,0.379,52,4.329]],["t/243",[0,0.499]],["t/245",[0,0.499]],["t/246",[0,0.379,62,4.779]],["t/247",[0,0.499]],["t/249",[0,0.499]],["t/251",[0,0.379,63,4.779]],["t/252",[0,0.499]],["t/254",[0,0.499]],["t/256",[0,0.499]],["t/258",[0,0.499]],["t/262",[0,0.499]],["t/264",[64,4.778]],["t/265",[0,0.499]],["t/267",[64,3.634,65,4.329]],["t/269",[0,0.499]],["t/271",[66,5.692]],["t/273",[67,3.81,68,4.329]],["t/275",[67,3.074,69,3.492,70,3.492]],["t/276",[71,5.302]],["t/277",[0,0.499]],["t/279",[72,3.81,73,4.329]],["t/281",[72,1.946,74,2.211,75,2.059,76,2.059,77,1.61,78,1.716]],["t/285",[0,0.499]],["t/286",[0,0.499]],["t/288",[0,0.499]],["t/290",[0,0.499]],["t/292",[0,0.499]],["t/294",[79,5.011]],["t/296",[80,6.284]],["t/298",[0,0.499]],["t/302",[0,0.499]],["t/303",[0,0.462,81,3.492]],["t/305",[0,0.499]],["t/307",[0,0.499]],["t/309",[0,0.499]],["t/310",[0,0.499]],["t/311",[0,0.379,82,3.152]],["t/313",[0,0.358,82,1.834,83,2.519,84,2.519]],["t/315",[0,0.379,85,4.329]],["t/317",[0,0.306,42,2.472,86,3.074]],["t/319",[0,0.306,44,2.347,86,3.074]],["t/321",[0,0.499]],["t/323",[0,0.499]],["t/324",[0,0.499]],["t/326",[0,0.499]],["t/327",[0,0.462,82,2.543]],["t/329",[0,0.379,87,4.329]],["t/332",[0,0.499]],["t/334",[88,6.284]],["t/336",[89,6.284]],["t/338",[0,0.499]],["t/340",[0,0.499]],["t/342",[0,0.499]],["t/344",[90,6.284]],["t/346",[0,0.499]],["t/348",[0,0.499]],["t/350",[91,6.284]],["t/352",[79,2.576,92,3.231,93,3.231,94,2.726]],["t/354",[95,6.284]],["t/356",[94,4.032,96,4.779]],["t/360",[0,0.499]],["t/362",[42,2.472,97,3.856,98,3.492]],["t/364",[44,2.347,98,3.492,99,3.856]],["t/368",[100,6.284]],["t/369",[0,0.499]],["t/371",[0,0.499]],["t/373",[77,3.152,78,3.36]],["t/374",[77,3.152,78,3.36]],["t/376",[77,3.152,78,3.36]],["t/378",[77,3.152,78,3.36]],["t/380",[75,2.726,76,2.726,77,2.131,78,2.272]],["t/382",[77,3.152,101,4.779]],["t/386",[0,0.499]],["t/388",[64,2.457,102,3.231,103,3.231,104,2.927]],["t/390",[0,0.499]],["t/392",[77,2.543,105,3.856,106,3.856]],["t/394",[107,4.779,108,4.779]],["t/396",[109,4.779,110,4.329]],["t/398",[71,2.346,79,2.217,104,2.519,111,2.781,112,2.781]],["t/401",[0,0.499]],["t/402",[0,0.256,42,2.071,113,3.231,114,2.726]],["t/404",[44,1.693,115,2.781,116,2.781,117,2.781,118,2.781]],["t/406",[0,0.499]],["t/407",[0,0.221,42,1.783,119,2.781,120,2.781,121,2.781]],["t/409",[0,0.221,44,1.693,122,2.346,123,2.781,124,2.519]],["t/412",[125,6.284]],["t/414",[0,0.499]],["t/417",[0,0.499]],["t/419",[0,0.499]],["t/421",[126,6.284]],["t/425",[0,0.499]],["t/427",[127,6.284]],["t/429",[128,6.284]],["t/432",[122,2.726,129,2.927,130,2.927,131,2.927]],["t/434",[110,2.519,122,2.346,129,2.519,130,2.519,131,2.519]],["t/436",[132,6.284]],["t/439",[0,0.499]],["t/441",[0,0.499]],["t/443",[0,0.499]],["t/446",[0,0.499]],["t/448",[0,0.499]],["t/450",[0,0.499]],["t/453",[0,0.499]],["t/455",[0,0.499]],["t/457",[0,0.499]],["t/460",[114,4.032,133,4.329]],["t/462",[114,3.253,133,3.492,134,3.856]],["t/464",[135,6.284]],["t/466",[0,0.499]],["t/469",[0,0.499]],["t/472",[0,0.499]],["t/474",[0,0.499]],["t/476",[0,0.499]],["t/480",[0,0.499]],["t/482",[64,4.778]],["t/483",[0,0.499]],["t/485",[64,3.634,65,4.329]],["t/487",[0,0.499]],["t/489",[66,5.692]],["t/491",[67,3.81,68,4.329]],["t/493",[67,3.074,69,3.492,70,3.492]],["t/494",[71,5.302]],["t/495",[0,0.499]],["t/497",[72,3.81,73,4.329]],["t/499",[72,1.946,74,2.211,75,2.059,76,2.059,77,1.61,78,1.716]],["t/503",[0,0.499]],["t/506",[136,4.779,137,4.779]],["t/507",[0,0.499]],["t/509",[138,6.284]],["t/511",[0,0.499]],["t/513",[0,0.499]],["t/517",[0,0.499]],["t/519",[0,0.499]],["t/520",[79,3.074,94,3.253,139,3.856]],["t/522",[82,3.152,140,4.329]],["t/524",[0,0.499]],["t/525",[0,0.499]],["t/527",[82,2.131,140,2.927,141,3.231,142,3.231]],["t/530",[143,6.284]],["t/532",[144,6.284]],["t/534",[145,6.284]],["t/538",[146,5.302]],["t/540",[146,5.302]],["t/541",[146,5.302]],["t/543",[0,0.499]],["t/545",[0,0.499]],["t/551",[0,0.499]],["t/552",[0,0.462,81,3.492]],["t/554",[0,0.499]],["t/556",[0,0.499]],["t/558",[0,0.499]],["t/559",[0,0.499]],["t/560",[0,0.379,82,3.152]],["t/562",[0,0.358,82,1.834,83,2.519,84,2.519]],["t/564",[0,0.379,85,4.329]],["t/566",[0,0.306,42,2.472,86,3.074]],["t/568",[0,0.306,44,2.347,86,3.074]],["t/570",[0,0.499]],["t/572",[0,0.499]],["t/573",[0,0.499]],["t/575",[0,0.499]],["t/576",[0,0.379,87,4.329]],["t/578",[0,0.462,82,2.543]],["t/580",[0,0.451,82,2.974]],["t/584",[0,0.499]],["t/588",[147,6.284]],["t/590",[148,3.856,149,3.856,150,3.856]],["t/592",[151,6.284]],["t/594",[152,6.284]],["t/598",[0,0.499]],["t/601",[153,4.779,154,4.779]],["t/603",[155,4.779,156,4.779]],["t/607",[0,0.499]],["t/609",[0,0.499]],["t/611",[0,0.499]],["t/614",[0,0.499]],["t/616",[0,0.499]],["t/619",[0,0.499]],["t/621",[0,0.499]],["t/625",[0,0.499]],["t/627",[0,0.499]],["t/629",[0,0.499]],["t/632",[0,0.499]],["t/636",[0,0.499]],["t/638",[0,0.499]],["t/641",[44,2.347,157,3.856,158,3.856]],["t/642",[159,6.284]],["t/644",[0,0.499]],["t/646",[0,0.499]],["t/648",[0,0.499]],["t/650",[160,6.284]],["t/651",[18,5.692]],["t/653",[161,6.284]],["t/655",[162,6.284]],["t/657",[163,6.284]],["t/659",[164,6.284]],["t/661",[0,0.499]],["t/663",[0,0.499]],["t/665",[0,0.499]],["t/667",[0,0.499]],["t/669",[124,4.329,165,4.779]],["t/671",[166,6.284]],["t/673",[0,0.499]],["t/675",[0,0.499]],["t/676",[0,0.499]],["t/678",[0,0.499]],["t/680",[0,0.499]],["t/683",[0,0.499]],["t/685",[0,0.499]],["t/689",[0,0.499]],["t/692",[0,0.499]],["t/694",[0,0.499]],["t/696",[0,0.499]],["t/698",[0,0.499]],["t/699",[0,0.499]],["t/700",[0,0.499]],["t/701",[0,0.499]]],"invertedIndex":[["",{"_index":0,"t":{"3":{"position":[[0,4]]},"5":{"position":[[0,2]]},"8":{"position":[[0,4]]},"14":{"position":[[0,4]]},"18":{"position":[[0,4]]},"20":{"position":[[0,2]]},"24":{"position":[[0,4]]},"26":{"position":[[0,2]]},"52":{"position":[[7,3]]},"54":{"position":[[0,3]]},"59":{"position":[[0,3]]},"61":{"position":[[0,5]]},"63":{"position":[[0,3]]},"64":{"position":[[0,2]]},"66":{"position":[[0,3]]},"68":{"position":[[0,5]]},"71":{"position":[[0,2]]},"73":{"position":[[0,14]]},"75":{"position":[[0,14]]},"79":{"position":[[0,2]]},"103":{"position":[[0,3]]},"104":{"position":[[0,10]]},"106":{"position":[[0,5]]},"108":{"position":[[15,3]]},"110":{"position":[[0,3]]},"111":{"position":[[0,3]]},"118":{"position":[[0,6]]},"119":{"position":[[4,9]]},"121":{"position":[[4,5]]},"123":{"position":[[4,4]]},"125":{"position":[[0,9]]},"126":{"position":[[4,2]]},"128":{"position":[[4,3]]},"130":{"position":[[4,6]]},"132":{"position":[[4,7]]},"134":{"position":[[0,8]]},"135":{"position":[[4,10]]},"140":{"position":[[0,14]]},"150":{"position":[[3,5]]},"154":{"position":[[0,14]]},"155":{"position":[[4,2]]},"157":{"position":[[4,2]]},"159":{"position":[[4,4]]},"160":{"position":[[4,2]]},"162":{"position":[[4,4]]},"164":{"position":[[0,4]]},"165":{"position":[[2,9]]},"167":{"position":[[2,9]]},"169":{"position":[[2,4]]},"171":{"position":[[2,4]]},"173":{"position":[[2,3]]},"176":{"position":[[0,10]]},"181":{"position":[[3,7]]},"183":{"position":[[0,7]]},"185":{"position":[[3,2]]},"187":{"position":[[3,2]]},"191":{"position":[[0,4]]},"201":{"position":[[0,4]]},"203":{"position":[[0,4]]},"205":{"position":[[0,4]]},"209":{"position":[[4,8]]},"210":{"position":[[0,8]]},"212":{"position":[[0,4]]},"214":{"position":[[0,6]]},"216":{"position":[[0,5]]},"217":{"position":[[4,4]]},"218":{"position":[[0,5]]},"220":{"position":[[4,9]]},"221":{"position":[[0,3]]},"223":{"position":[[0,4]]},"225":{"position":[[0,5]]},"227":{"position":[[4,6]]},"228":{"position":[[0,6]]},"230":{"position":[[0,7]]},"232":{"position":[[0,6]]},"234":{"position":[[4,6]]},"236":{"position":[[0,4]]},"238":{"position":[[0,4]]},"240":{"position":[[0,7]]},"242":{"position":[[4,6]]},"243":{"position":[[0,8]]},"245":{"position":[[0,8]]},"246":{"position":[[4,4]]},"247":{"position":[[0,6]]},"249":{"position":[[0,6]]},"251":{"position":[[5,4]]},"252":{"position":[[0,5]]},"254":{"position":[[0,9]]},"256":{"position":[[0,6]]},"258":{"position":[[0,9]]},"262":{"position":[[0,4]]},"265":{"position":[[0,4]]},"269":{"position":[[0,4]]},"277":{"position":[[0,4]]},"285":{"position":[[0,2]]},"286":{"position":[[0,9]]},"288":{"position":[[0,8]]},"290":{"position":[[0,4]]},"292":{"position":[[0,7]]},"298":{"position":[[0,4]]},"302":{"position":[[0,2]]},"303":{"position":[[0,2],[12,4]]},"305":{"position":[[0,4]]},"307":{"position":[[0,8]]},"309":{"position":[[0,2]]},"310":{"position":[[0,4]]},"311":{"position":[[8,4]]},"313":{"position":[[8,1],[19,1]]},"315":{"position":[[22,5]]},"317":{"position":[[0,2]]},"319":{"position":[[0,2]]},"321":{"position":[[0,6]]},"323":{"position":[[0,4]]},"324":{"position":[[0,9]]},"326":{"position":[[0,7]]},"327":{"position":[[0,6],[15,7]]},"329":{"position":[[7,5]]},"332":{"position":[[0,11]]},"338":{"position":[[0,12]]},"340":{"position":[[0,9]]},"342":{"position":[[0,6]]},"346":{"position":[[0,6]]},"348":{"position":[[0,10]]},"360":{"position":[[0,4]]},"369":{"position":[[0,9]]},"371":{"position":[[0,11]]},"386":{"position":[[0,2]]},"390":{"position":[[0,2]]},"401":{"position":[[0,6]]},"402":{"position":[[13,1]]},"406":{"position":[[0,6]]},"407":{"position":[[22,4]]},"409":{"position":[[22,5]]},"414":{"position":[[0,7]]},"417":{"position":[[0,2]]},"419":{"position":[[0,7]]},"425":{"position":[[0,8]]},"439":{"position":[[0,2]]},"441":{"position":[[0,4]]},"443":{"position":[[0,2]]},"446":{"position":[[0,12]]},"448":{"position":[[0,10]]},"450":{"position":[[0,4]]},"453":{"position":[[0,8]]},"455":{"position":[[0,6]]},"457":{"position":[[0,4]]},"466":{"position":[[0,31]]},"469":{"position":[[0,8]]},"472":{"position":[[0,15]]},"474":{"position":[[0,8]]},"476":{"position":[[0,7]]},"480":{"position":[[0,4]]},"483":{"position":[[0,4]]},"487":{"position":[[0,4]]},"495":{"position":[[0,4]]},"503":{"position":[[0,7]]},"507":{"position":[[0,9]]},"511":{"position":[[0,11]]},"513":{"position":[[0,7]]},"517":{"position":[[0,2]]},"519":{"position":[[0,4]]},"524":{"position":[[0,4]]},"525":{"position":[[0,2]]},"543":{"position":[[0,10]]},"545":{"position":[[0,10]]},"551":{"position":[[0,2]]},"552":{"position":[[0,2],[12,4]]},"554":{"position":[[0,4]]},"556":{"position":[[0,8]]},"558":{"position":[[0,2]]},"559":{"position":[[0,4]]},"560":{"position":[[8,4]]},"562":{"position":[[8,1],[19,1]]},"564":{"position":[[22,5]]},"566":{"position":[[0,2]]},"568":{"position":[[0,2]]},"570":{"position":[[0,6]]},"572":{"position":[[0,4]]},"573":{"position":[[0,9]]},"575":{"position":[[0,7]]},"576":{"position":[[10,5]]},"578":{"position":[[0,9],[18,7]]},"580":{"position":[[0,8],[17,8],[34,4]]},"584":{"position":[[0,4]]},"598":{"position":[[0,4]]},"607":{"position":[[0,6]]},"609":{"position":[[0,10]]},"611":{"position":[[0,4]]},"614":{"position":[[0,1]]},"616":{"position":[[0,1]]},"619":{"position":[[0,6]]},"621":{"position":[[0,6]]},"625":{"position":[[0,2]]},"627":{"position":[[0,4]]},"629":{"position":[[0,2]]},"632":{"position":[[0,6]]},"636":{"position":[[0,6]]},"638":{"position":[[0,8]]},"644":{"position":[[0,7]]},"646":{"position":[[0,7]]},"648":{"position":[[0,10]]},"661":{"position":[[0,7]]},"663":{"position":[[0,8]]},"665":{"position":[[0,8]]},"667":{"position":[[0,9]]},"673":{"position":[[0,8]]},"675":{"position":[[0,6]]},"676":{"position":[[0,9]]},"678":{"position":[[0,12]]},"680":{"position":[[0,13]]},"683":{"position":[[0,6]]},"685":{"position":[[0,5]]},"689":{"position":[[0,4]]},"692":{"position":[[0,2]]},"694":{"position":[[0,2]]},"696":{"position":[[0,4]]},"698":{"position":[[0,4]]},"699":{"position":[[0,3]]},"700":{"position":[[0,3]]},"701":{"position":[[0,2]]}}}],["1",{"_index":42,"t":{"142":{"position":[[0,2]]},"165":{"position":[[0,1]]},"177":{"position":[[0,2]]},"185":{"position":[[0,2]]},"195":{"position":[[0,2]]},"317":{"position":[[9,1]]},"362":{"position":[[0,8]]},"402":{"position":[[0,2]]},"407":{"position":[[0,2]]},"566":{"position":[[9,1]]}}}],["1.1",{"_index":28,"t":{"119":{"position":[[0,3]]}}}],["1.2",{"_index":29,"t":{"121":{"position":[[0,3]]}}}],["1.3",{"_index":30,"t":{"123":{"position":[[0,3]]}}}],["11",{"_index":63,"t":{"251":{"position":[[0,4]]}}}],["1x1",{"_index":125,"t":{"412":{"position":[[0,7]]}}}],["2",{"_index":44,"t":{"143":{"position":[[0,2]]},"167":{"position":[[0,1]]},"179":{"position":[[0,2]]},"187":{"position":[[0,2]]},"197":{"position":[[0,2]]},"209":{"position":[[0,3]]},"319":{"position":[[9,1]]},"364":{"position":[[0,7]]},"404":{"position":[[0,2]]},"409":{"position":[[0,2]]},"568":{"position":[[9,1]]},"641":{"position":[[4,1]]}}}],["2.1",{"_index":31,"t":{"126":{"position":[[0,3]]}}}],["2.2",{"_index":32,"t":{"128":{"position":[[0,3]]}}}],["2.3",{"_index":33,"t":{"130":{"position":[[0,3]]}}}],["2.4",{"_index":34,"t":{"132":{"position":[[0,3]]}}}],["2019",{"_index":23,"t":{"106":{"position":[[6,10]]}}}],["3",{"_index":46,"t":{"145":{"position":[[0,2]]},"169":{"position":[[0,1]]},"181":{"position":[[0,2]]},"217":{"position":[[0,3]]}}}],["3.1",{"_index":35,"t":{"135":{"position":[[0,3]]}}}],["3.2",{"_index":36,"t":{"136":{"position":[[0,3]]}}}],["3.3",{"_index":38,"t":{"138":{"position":[[0,3]]}}}],["3.4",{"_index":40,"t":{"139":{"position":[[0,3]]}}}],["4",{"_index":48,"t":{"147":{"position":[[0,2]]},"160":{"position":[[7,10]]},"171":{"position":[[0,1]]},"220":{"position":[[0,3]]}}}],["5",{"_index":50,"t":{"148":{"position":[[0,2]]},"173":{"position":[[0,1]]},"227":{"position":[[0,3]]}}}],["5.1",{"_index":54,"t":{"155":{"position":[[0,3]]}}}],["5.2",{"_index":55,"t":{"157":{"position":[[0,3]]}}}],["5.3",{"_index":56,"t":{"159":{"position":[[0,3]]}}}],["5.4",{"_index":57,"t":{"160":{"position":[[0,3]]}}}],["5.5",{"_index":58,"t":{"162":{"position":[[0,3]]}}}],["6",{"_index":51,"t":{"150":{"position":[[0,2]]},"234":{"position":[[0,3]]}}}],["7",{"_index":52,"t":{"152":{"position":[[0,2]]},"242":{"position":[[0,3]]}}}],["8",{"_index":62,"t":{"246":{"position":[[0,3]]}}}],["adapt",{"_index":139,"t":{"520":{"position":[[17,8]]}}}],["algorithm",{"_index":16,"t":{"81":{"position":[[0,9]]}}}],["anaconda",{"_index":81,"t":{"303":{"position":[[3,8]]},"552":{"position":[[3,8]]}}}],["ar",{"_index":88,"t":{"334":{"position":[[0,9]]}}}],["attent",{"_index":78,"t":{"281":{"position":[[39,9]]},"373":{"position":[[5,12]]},"374":{"position":[[8,9]]},"376":{"position":[[5,14]]},"378":{"position":[[5,12]]},"380":{"position":[[16,9]]},"499":{"position":[[39,9]]}}}],["attention与cnn",{"_index":101,"t":{"382":{"position":[[5,16]]}}}],["autoregress",{"_index":67,"t":{"273":{"position":[[0,14]]},"275":{"position":[[4,14]]},"491":{"position":[[0,14]]},"493":{"position":[[4,14]]}}}],["base",{"_index":93,"t":{"352":{"position":[[14,5]]}}}],["batch_first",{"_index":152,"t":{"594":{"position":[[0,17]]}}}],["benchmark",{"_index":90,"t":{"344":{"position":[[0,9]]}}}],["bert",{"_index":109,"t":{"396":{"position":[[9,4]]}}}],["bert(bidirect",{"_index":102,"t":{"388":{"position":[[0,18]]}}}],["biset",{"_index":11,"t":{"48":{"position":[[0,5]]}}}],["bitset",{"_index":22,"t":{"101":{"position":[[0,6]]}}}],["boch",{"_index":60,"t":{"179":{"position":[[3,6]]}}}],["c",{"_index":13,"t":{"55":{"position":[[0,4]]},"57":{"position":[[0,3]]},"195":{"position":[[3,7]]}}}],["c++new",{"_index":15,"t":{"70":{"position":[[0,9]]}}}],["cbam",{"_index":164,"t":{"659":{"position":[[0,6]]}}}],["cnn",{"_index":100,"t":{"368":{"position":[[0,9]]}}}],["compute_text_featur",{"_index":85,"t":{"315":{"position":[[0,21]]},"564":{"position":[[0,21]]}}}],["convolut",{"_index":98,"t":{"362":{"position":[[19,11]]},"364":{"position":[[18,11]]}}}],["cross",{"_index":122,"t":{"409":{"position":[[3,5]]},"432":{"position":[[15,5]]},"434":{"position":[[16,5]]}}}],["dataset",{"_index":144,"t":{"532":{"position":[[0,7]]}}}],["decod",{"_index":66,"t":{"271":{"position":[[0,7]]},"489":{"position":[[0,7]]}}}],["decoder(at",{"_index":68,"t":{"273":{"position":[[15,11]]},"491":{"position":[[15,11]]}}}],["decoder(nat",{"_index":70,"t":{"275":{"position":[[19,12]]},"493":{"position":[[19,12]]}}}],["depthwis",{"_index":97,"t":{"362":{"position":[[9,9]]}}}],["dequ",{"_index":8,"t":{"42":{"position":[[0,5]]}}}],["diffus",{"_index":96,"t":{"356":{"position":[[0,14]]}}}],["disclaim",{"_index":1,"t":{"10":{"position":[[0,10]]}}}],["discrimin",{"_index":80,"t":{"296":{"position":[[0,18]]}}}],["dock",{"_index":154,"t":{"601":{"position":[[8,4]]}}}],["dot",{"_index":148,"t":{"590":{"position":[[0,6]]}}}],["embed",{"_index":84,"t":{"313":{"position":[[21,9]]},"562":{"position":[[21,9]]}}}],["encod",{"_index":64,"t":{"264":{"position":[[0,7]]},"267":{"position":[[16,9]]},"388":{"position":[[19,7]]},"482":{"position":[[0,7]]},"485":{"position":[[16,9]]}}}],["entropi",{"_index":123,"t":{"409":{"position":[[9,7]]}}}],["error",{"_index":121,"t":{"407":{"position":[[16,5]]}}}],["fa",{"_index":37,"t":{"136":{"position":[[4,9]]}}}],["fine",{"_index":107,"t":{"394":{"position":[[0,4]]}}}],["first",{"_index":43,"t":{"142":{"position":[[3,9]]}}}],["flow",{"_index":92,"t":{"352":{"position":[[0,13]]}}}],["focal",{"_index":165,"t":{"669":{"position":[[0,7]]}}}],["fold",{"_index":130,"t":{"432":{"position":[[10,4]]},"434":{"position":[[11,4]]}}}],["follow",{"_index":45,"t":{"143":{"position":[[3,10]]}}}],["forc",{"_index":73,"t":{"279":{"position":[[8,7]]},"497":{"position":[[8,7]]}}}],["forcing与mask",{"_index":74,"t":{"281":{"position":[[8,14]]},"499":{"position":[[8,14]]}}}],["gan",{"_index":95,"t":{"354":{"position":[[0,11]]}}}],["geeko",{"_index":59,"t":{"177":{"position":[[3,7]]}}}],["gener",{"_index":79,"t":{"294":{"position":[[0,14]]},"352":{"position":[[20,10]]},"398":{"position":[[5,10]]},"520":{"position":[[0,10]]}}}],["gpt",{"_index":111,"t":{"398":{"position":[[0,4]]}}}],["head",{"_index":76,"t":{"281":{"position":[[29,4]]},"380":{"position":[[6,4]]},"499":{"position":[[29,4]]}}}],["imag",{"_index":141,"t":{"527":{"position":[[0,5]]}}}],["index",{"_index":27,"t":{"115":{"position":[[15,12]]}}}],["index,若数据不在1~n",{"_index":26,"t":{"113":{"position":[[11,22]]}}}],["k",{"_index":129,"t":{"432":{"position":[[8,1]]},"434":{"position":[[9,1]]}}}],["kde",{"_index":155,"t":{"603":{"position":[[0,5]]}}}],["kl",{"_index":138,"t":{"509":{"position":[[0,14]]}}}],["l1",{"_index":127,"t":{"427":{"position":[[0,7]]}}}],["l2",{"_index":128,"t":{"429":{"position":[[0,12]]}}}],["latt",{"_index":153,"t":{"601":{"position":[[0,7]]}}}],["learn",{"_index":140,"t":{"522":{"position":[[7,8]]},"527":{"position":[[22,8]]}}}],["lenet",{"_index":126,"t":{"421":{"position":[[0,8]]}}}],["linear",{"_index":116,"t":{"404":{"position":[[20,6]]}}}],["linux的编译系统对c",{"_index":61,"t":{"197":{"position":[[3,22]]}}}],["list",{"_index":17,"t":{"85":{"position":[[0,4]]}}}],["ll(1",{"_index":49,"t":{"147":{"position":[[3,10]]},"148":{"position":[[3,10]]}}}],["ll(1)文法到ll(1",{"_index":53,"t":{"152":{"position":[[3,21]]}}}],["logist",{"_index":114,"t":{"402":{"position":[[15,10]]},"460":{"position":[[0,13]]},"462":{"position":[[0,15]]}}}],["loss",{"_index":124,"t":{"409":{"position":[[17,4]]},"669":{"position":[[8,4]]}}}],["map",{"_index":18,"t":{"91":{"position":[[0,3]]},"651":{"position":[[0,6]]}}}],["map/multimap",{"_index":10,"t":{"46":{"position":[[0,12]]}}}],["mapper",{"_index":87,"t":{"329":{"position":[[0,6]]},"576":{"position":[[0,9]]}}}],["mathemat",{"_index":136,"t":{"506":{"position":[[0,17]]}}}],["mean",{"_index":119,"t":{"407":{"position":[[3,4]]}}}],["model",{"_index":94,"t":{"352":{"position":[[31,6]]},"356":{"position":[[15,6]]},"520":{"position":[[11,5]]}}}],["multi",{"_index":75,"t":{"281":{"position":[[23,5]]},"380":{"position":[[0,5]]},"499":{"position":[[23,5]]}}}],["multiset",{"_index":21,"t":{"99":{"position":[[0,8]]}}}],["nar",{"_index":89,"t":{"336":{"position":[[0,11]]}}}],["net",{"_index":158,"t":{"641":{"position":[[6,3]]}}}],["non",{"_index":69,"t":{"275":{"position":[[0,3]]},"493":{"position":[[0,3]]}}}],["overview",{"_index":143,"t":{"530":{"position":[[0,8]]}}}],["pair",{"_index":3,"t":{"32":{"position":[[0,4]]},"89":{"position":[[0,4]]}}}],["plasmoid",{"_index":156,"t":{"603":{"position":[[6,9]]}}}],["pointwis",{"_index":99,"t":{"364":{"position":[[8,9]]}}}],["posit",{"_index":65,"t":{"267":{"position":[[0,15]]},"485":{"position":[[0,15]]}}}],["pre",{"_index":112,"t":{"398":{"position":[[16,3]]}}}],["preliminari",{"_index":137,"t":{"506":{"position":[[18,12]]}}}],["pretrain",{"_index":106,"t":{"392":{"position":[[16,11]]}}}],["priority_queu",{"_index":6,"t":{"38":{"position":[[0,14]]}}}],["product",{"_index":150,"t":{"590":{"position":[[28,8]]}}}],["product)与矩阵乘法(matmul",{"_index":149,"t":{"590":{"position":[[7,20]]}}}],["prompt",{"_index":82,"t":{"311":{"position":[[0,7]]},"313":{"position":[[0,7]]},"327":{"position":[[7,7]]},"522":{"position":[[0,6]]},"527":{"position":[[15,6]]},"560":{"position":[[0,7]]},"562":{"position":[[0,7]]},"578":{"position":[[10,7]]},"580":{"position":[[9,7],[26,7]]}}}],["python",{"_index":147,"t":{"588":{"position":[[0,11]]}}}],["queri",{"_index":5,"t":{"36":{"position":[[0,5]]}}}],["queue",{"_index":19,"t":{"95":{"position":[[0,5]]}}}],["rectifi",{"_index":115,"t":{"404":{"position":[[3,16]]}}}],["regress",{"_index":133,"t":{"460":{"position":[[14,10]]},"462":{"position":[[40,11]]}}}],["regression)和线性回归(linear",{"_index":134,"t":{"462":{"position":[[16,23]]}}}],["regression)还是分类任务(classif",{"_index":135,"t":{"464":{"position":[[0,48]]}}}],["relat",{"_index":145,"t":{"534":{"position":[[0,7]]}}}],["relu",{"_index":118,"t":{"404":{"position":[[33,5]]}}}],["represent",{"_index":103,"t":{"388":{"position":[[27,14]]}}}],["re与有穷自动机fa",{"_index":39,"t":{"138":{"position":[[4,18]]}}}],["rm与有穷自动机fa",{"_index":41,"t":{"139":{"position":[[4,19]]}}}],["select",{"_index":47,"t":{"145":{"position":[[3,10]]}}}],["self",{"_index":77,"t":{"281":{"position":[[34,4]]},"373":{"position":[[0,4]]},"374":{"position":[[0,7]]},"376":{"position":[[0,4]]},"378":{"position":[[0,4]]},"380":{"position":[[11,4]]},"382":{"position":[[0,4]]},"392":{"position":[[0,4]]},"499":{"position":[[34,4]]}}}],["senet",{"_index":166,"t":{"671":{"position":[[0,7]]}}}],["set",{"_index":20,"t":{"97":{"position":[[0,3]]}}}],["set/multiset",{"_index":9,"t":{"44":{"position":[[0,12]]}}}],["sigmoid",{"_index":113,"t":{"402":{"position":[[3,9]]}}}],["sod",{"_index":159,"t":{"642":{"position":[[0,8]]}}}],["specif",{"_index":142,"t":{"527":{"position":[[6,8]]}}}],["squar",{"_index":120,"t":{"407":{"position":[[8,7]]}}}],["stack",{"_index":7,"t":{"40":{"position":[[0,5]]},"93":{"position":[[0,5]]}}}],["stage",{"_index":86,"t":{"317":{"position":[[3,5]]},"319":{"position":[[3,5]]},"566":{"position":[[3,5]]},"568":{"position":[[3,5]]}}}],["stl",{"_index":14,"t":{"57":{"position":[[4,3]]},"77":{"position":[[0,5]]}}}],["string",{"_index":4,"t":{"34":{"position":[[0,6]]},"87":{"position":[[0,6]]}}}],["summari",{"_index":132,"t":{"436":{"position":[[0,7]]}}}],["supervis",{"_index":105,"t":{"392":{"position":[[5,10]]}}}],["teacher",{"_index":72,"t":{"279":{"position":[[0,7]]},"281":{"position":[[0,7]]},"497":{"position":[[0,7]]},"499":{"position":[[0,7]]}}}],["token",{"_index":83,"t":{"313":{"position":[[10,8]]},"562":{"position":[[10,8]]}}}],["train",{"_index":71,"t":{"276":{"position":[[0,12]]},"398":{"position":[[20,7]]},"494":{"position":[[0,12]]}}}],["transform",{"_index":104,"t":{"388":{"position":[[47,13]]},"398":{"position":[[28,11]]}}}],["tune",{"_index":108,"t":{"394":{"position":[[5,6]]}}}],["u",{"_index":157,"t":{"641":{"position":[[0,3]]}}}],["unit",{"_index":117,"t":{"404":{"position":[[27,5]]}}}],["u到v",{"_index":24,"t":{"108":{"position":[[0,14]]}}}],["vae",{"_index":91,"t":{"350":{"position":[[0,11]]}}}],["val",{"_index":25,"t":{"113":{"position":[[0,7]]},"115":{"position":[[0,7],[28,4]]}}}],["valid",{"_index":131,"t":{"432":{"position":[[21,11]]},"434":{"position":[[22,10]]}}}],["vector",{"_index":2,"t":{"30":{"position":[[0,6]]},"83":{"position":[[0,6]]}}}],["visdom",{"_index":146,"t":{"538":{"position":[[0,8]]},"540":{"position":[[0,9]]},"541":{"position":[[0,9]]}}}],["vs2018",{"_index":12,"t":{"52":{"position":[[0,6]]}}}],["work",{"_index":110,"t":{"396":{"position":[[14,5]]},"434":{"position":[[33,5]]}}}],["yolo",{"_index":160,"t":{"650":{"position":[[0,6]]}}}],["yolov1",{"_index":161,"t":{"653":{"position":[[0,9]]}}}],["yolov2",{"_index":162,"t":{"655":{"position":[[0,9]]}}}],["yolov5",{"_index":163,"t":{"657":{"position":[[0,9]]}}}],["zip",{"_index":151,"t":{"592":{"position":[[0,11]]}}}]],"pipeline":["stemmer"]}},{"documents":[{"i":2,"t":"提示 设N是一个四位数,它的9倍恰好是其反序数(例如:1234的反序数是4321),求N的值","s":"反序输出","u":"/docs/Algorithms/题解/反序输出","h":"","p":1},{"i":4,"t":"#include using namespace std; int main() { for (int i = 1000; i <= 9999; i++) { int x = i * 9, y = 0; while (x > 0) { y = y * 10 + x % 10; x /= 10; } if (i == y) { cout << i << endl; } } return 0; }","s":"参考代码","u":"/docs/Algorithms/题解/反序输出","h":"#参考代码","p":1},{"i":6,"t":"反序输出可以分为两部分:拆分以及反序拼接 拆分:n位整数求余10可以得到最后一位,再除以10可以得到除去上述最后一位之后的n-1位整数,循环得到每一个最后一位,完成拆分 while (x > 0) { y = y * 10 + x % 10; // 拼接与拆分 x /= 10; } 拼接:将s中的数字拼接成整数 int sum = 0; for (int i = 0; i < s.size(); i++) { sum = sum * 10 + s[i]; }","s":"题解","u":"/docs/Algorithms/题解/反序输出","h":"#题解","p":1},{"i":9,"t":"该网站的搭建离不开Docusaurus的支持以及对Sonder的宝藏笔记本的参考。","s":"饮水思源","u":"/docs/Acknowledgement/intro","h":"#饮水思源","p":7},{"i":11,"t":"本网站展示的所有标识和链接仅属于个人喜好,不代表国家的立场或企业、组织的行为。 本网站的所有信息仅供参考,不构成法律或商业建议。","s":"Disclaimer","u":"/docs/Acknowledgement/intro","h":"#disclaimer","p":7},{"i":13,"t":"提示 欢迎来到笔记本的算法部分","s":"Welcome","u":"/docs/Algorithms/intro","h":"","p":12},{"i":15,"t":"如果可以帮到你的话就给个免费的Star吧!","s":"支持我!","u":"/docs/Algorithms/intro","h":"#支持我","p":12},{"i":17,"t":"提示 在一面很长的墙壁上,工人们用不同的油漆去刷墙,然而可能有些地方刷过以后觉得不好看,他们会重新刷一下。有些部分因为重复刷了很多次覆盖了很多层油漆,小诺很好奇那些地方被刷过多少种颜色的油漆。 输入描述: 若干行输入,每行两个数字B[i],E[i](0<=B[i]<=E[i]<=200000)表示这次刷的墙壁是哪一段 (假设每次刷的时候油漆颜色都和之前的不同),以0 0结束 又若干行输入,每行两个数字begin[i],end[i](0<=begin[i]<=end[i]<=200000)表示小诺询问的段, 以0 0结束 输出描述: 对于每个小诺的询问输出(end[i]-begin[i]+1)行,表示对应询问段的每个点被多少种颜色的油漆覆盖过。","s":"一维前缀和(刷出一道墙)","u":"/docs/Algorithms/题解/一维前缀和(刷出一道墙)","h":"","p":16},{"i":19,"t":"#include using namespace std; int main() { vector colors(200001, 0); int B, E; while (scanf(\"%d %d\", &B, &E)) { if (B == 0 && E == 0) { break; } colors[B]++; // 刷墙起点标记 colors[E + 1]--; // 刷墙终点标记 } // 计算前缀和 for (int i = 1; i < colors.size(); i++) { colors[i] += colors[i - 1]; } int begin, end; while (scanf(\"%d %d\", &begin, &end)) { if (begin == 0 && end == 0) { break; } for (int i = begin; i <= end; i++) { printf(\"%d\\n\", colors[i]); } } return 0; }","s":"参考代码","u":"/docs/Algorithms/题解/一维前缀和(刷出一道墙)","h":"#参考代码","p":16},{"i":21,"t":"使用前缀和思想简化时间复杂度,设计前缀和数组,使输出的数组中元素的值代表其对应节点被刷的次数。 首先初始化前缀和数组,使每一个元素等于为0。 该题的巧妙之处就在于:对于每一个输入的索引B与E,B作为开始刷的节点索引令前缀和数组中对应元素的值+1+1+1,E+1作为刷墙结束的下一个节点的索引令对应的值−1-1−1。这样在所有输入结束后的计算前缀和阶段,在每一个值为[1,−1)[1, -1)[1,−1)的索引区间中的元素值都会加1,而对于某次刷漆终点E的下一个索引为E+1的元素值由于−1-1−1而抵消影响(自身值为−1-1−1加上之前元素所累积的1而归零),此时数组中元素的值才代表其对应节点被刷的次数。 关于超时,可以在函数中加入以下代码消除流操作的缓冲区,并使用\"\\n\"代替endl。 ios::sync_with_stdio(false);","s":"题解","u":"/docs/Algorithms/题解/一维前缀和(刷出一道墙)","h":"#题解","p":16},{"i":23,"t":"提示 输入一个数,比如201,让数字随意组合,是否能组合出30的倍数,如果能够组合成30的倍数,就输出最大的倍数,不能就输出-1 例如输入201可以随意组合成 201,210,012,021,102,120等数字 其中120,210都是30的倍数,由于要找最大的,所以答案是210 输入样例:201 输出样例:210","s":"排列组合(求30的倍数)","u":"/docs/Algorithms/题解/排列组合(求30的倍数)","h":"","p":22},{"i":25,"t":"#include using namespace std; int main() { string s; cin >> s; int maxx = 0, flag = 0; sort(s.begin(), s.end()); do { int now = 0; for (int i = 0; i < s.size(); i++) { now = now * 10 + s[i] - '0'; } if (now % 30 == 0) { flag = 1; maxx = max(maxx, now); } } while (next_permutation(s.begin(), s.end())); if (flag == 1) { cout << maxx << endl; return 0; } else { cout << -1 << endl; } }","s":"参考代码","u":"/docs/Algorithms/题解/排列组合(求30的倍数)","h":"#参考代码","p":22},{"i":27,"t":"使用C++ STL提供的排列组合模版 首先将代排列组合的字符串或数组进行排序 sort(list.begin(), list.end()); 使用排列组合模版 do { something(); } while (next_permutation(list.begin(), list.end())); 此时,在每一个do循环中,list按从小到大的顺序进行排列组合遍历","s":"题解","u":"/docs/Algorithms/题解/排列组合(求30的倍数)","h":"#题解","p":22},{"i":29,"t":"信息 转载自Sonder的笔记本 vector:变长数组,倍增的思想 pair:存储一对数 string:字符串,substr(), c_str() queue:push(), front(), pop() priority_queue:优先队列,push(), top(), pop() stack:栈,push(), top(), pop() deque:双端队列 set, map, multiset, multimap:基于红黑树来实现,本质上是动态维护一个有序序列 unordered_set, unordered_map, unordered_multiset, unordered_multimap:哈希表 bitset:压位","s":"STL模板","u":"/docs/Algorithms/STL模板","h":"","p":28},{"i":31,"t":"vector a(10,3); // 定义一个长度为10的vector,初始化为3; a.size(); // vector的size,所有容器都有 a.empty(); // 范围vector是否为空,所有容器都有 a.clear(); // 清空 a.front(); // 第一个数 a.back(); // 最后一个数 a.push_back(); // 在最后插入一个数 a.pop_back(); // 删除最后一个数 // vector支持比较运算 vector a(4,3),b(3,4); if(a > b) cout << \"Yes\"; else cout << \"No\"","s":"vector","u":"/docs/Algorithms/STL模板","h":"#vector","p":28},{"i":33,"t":"pair a; a = {20,\"abc\"}; a.first(); // 获取第一个元素 a.second(); // 获取第二个元素 // pair也能进行sort","s":"pair","u":"/docs/Algorithms/STL模板","h":"#pair","p":28},{"i":35,"t":"string a = \"Acwing\"; a.size(); // 获取string的大小 a.empty(); // 判断是否为空 a.clear(); // 清空 a += \"def\"; cout << a. substr(1,2) << endl; // 第一个参数起始位置,第二个参数是字符串长度","s":"string","u":"/docs/Algorithms/STL模板","h":"#string","p":28},{"i":37,"t":"query a; a.size(); a.empty(); a.push(1); // 队尾插入元素 a.front(); // 返回队头元素 a.back(); // 返回队尾元素 a.pop(); // 删除队头元素","s":"query","u":"/docs/Algorithms/STL模板","h":"#query","p":28},{"i":39,"t":"// 默认是大根堆 priority_queue heap; heap.clear(); heap.size(); heap.empty(); // 如何定义一个小根堆: 1. 插入负数 2. 直接定义 heap.push(-x); // 黑科技方法 priority_queue,greater> q;","s":"priority_queue","u":"/docs/Algorithms/STL模板","h":"#priority_queue","p":28},{"i":41,"t":"stack s; s.size(); s.empty(); s.push(); s.top(); s.pop();","s":"stack","u":"/docs/Algorithms/STL模板","h":"#stack","p":28},{"i":43,"t":"deque a; a.size(); a.empty(); a.clear(); a.front(); a.back(); a.push_back(); a.pop_back();","s":"deque","u":"/docs/Algorithms/STL模板","h":"#deque","p":28},{"i":45,"t":"set s; // 不能有重复元素 // s.begin()/end() multiset MS; // 可以有重复元素 s.insert(1); 插入一个数 s.size(); s.empty(); s.clear(); s.find(1); // 查找一个元素,如果不存在的话返回end迭代器 s.erase(1); // 输入是一个数x,输出所有x (2)输入一个迭代器,删除这个迭代器 // set 最核心的操作 s.lower_bound(); // 范围大于等于x的最小的数 s.upper_bound(); // 返回大于x的最小的数","s":"set/multiset","u":"/docs/Algorithms/STL模板","h":"#setmultiset","p":28},{"i":47,"t":"#include // 和python里面的字典非常的相似 map a; a[\"2\"] = 3; a.insert({\"1\",1}); a.erase({\"1\",1}); a.find({\"1\",1}); unordered_set, unordered_map, unordered_multiset, unordered_multimap的操作和set或者map等的操作基本一致,唯一的区别就是不支持类似lower_bound()这样的操作 (哈希表的内部是无序的)","s":"map/multimap","u":"/docs/Algorithms/STL模板","h":"#mapmultimap","p":28},{"i":49,"t":"可以省下来8位的空间 bitset<10000> s; // 支持所有的基本操作: // 移位操作:<< >> // == != // count() 返回有多少个1 // any() 判断是否至少有一个1 // none() 判断是否全为0 // set(),把所有为置为1 // set(k,v), 将第k个变为v // reset(), 把所有位变成0 // flip(), 把所有位取反","s":"biset","u":"/docs/Algorithms/STL模板","h":"#biset","p":28},{"i":51,"t":"信息 转载自Sonder的笔记本 [TOC]","s":"机试技巧与STL","u":"/docs/Algorithms/机试技巧与STL","h":"","p":50},{"i":53,"t":"CTRL + J 列出成员 Ctrl+E,D 格式化全部代码 Ctrl+K,F 格式化选中的代码 CTRL + SHIFT + E 显示资源视图 F12 转到定义 CTRL + F12 转到声明 CTRL + ALT + J 对象浏览 CTRL + ALT + F1 帮助目录 CTRL + F1 动态帮助 CTRL + K, CTRL + C 注释选择的代码 CTRL + K, CTRL + U 取消对选择代码的注释 CTRL + U 转小写 CTRL + SHIFT + U 转大写 F5 运行调试 CTRL + F5 运行不调试 F10 跨过程序执行 F11 单步逐句执行","s":"vs2018 快捷键","u":"/docs/Algorithms/机试技巧与STL","h":"#vs2018-快捷键","p":50},{"i":56,"t":"头文件 说明 头文件 说明 头文件 说明 assert.h 断言相关 ctype.h 字符类型判断 errno.h 标准错误机制 float.h 浮点限制 limits.h 整形限制 locale.h 本地化接口 math.h 数学函数 setjmp.h 非本地跳转 signal.h 信号相关 stdarg.h 可变参数处理 stddef.h 宏和类型定义 stdio.h 标准I/O stdlib.h 标准工具库 string.h 字符串和内存处理 time.h 时间相关","s":"标准c库","u":"/docs/Algorithms/机试技巧与STL","h":"#标准c库","p":50},{"i":58,"t":"using namespace std; 头文件 说明 头文件 说明 头文件 说明 algorithm 通用算法 deque 双端队列 vector 向量 iterator 迭代器 stack 栈 map 图(键值对) list 列表 string 字符串 set 集合 queue 队列 bitset bit类 numeric 数值算法","s":"c++ STL","u":"/docs/Algorithms/机试技巧与STL","h":"#c-stl","p":50},{"i":60,"t":"#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std;","s":"常用头","u":"/docs/Algorithms/机试技巧与STL","h":"#常用头","p":50},{"i":62,"t":"//求最大值和最小值 #define MAX(x,y) (((x)>(y)) ? (x) : (y)) #define MIN(x,y) (((x) < (y)) ? (x) : (y)) //取余 #define mod(x) ((x)%MOD) //for循环 #define FOR(i,f_start,f_end) for(int i=f_start;i<=f_end;++i) //返回数组元素的个数 #define ARR_SIZE(a) (sizeof((a))/sizeof((a[0]))) //初始化数组 #define MT(x,i) memset(x,i,sizeof(x)) #define MEM(a,b) memset((a),(b),sizeof(a)) //符号重定义 #define LL long long #define ull unsigned long long #define pii pair //常见常数 #define PI acos(-1.0) #define eps 1e-12 #define INF 0x3f3f3f3f //int最大值 const int INF_INT = 2147483647; const ll INF_LL = 9223372036854775807LL; const ull INF_ULL = 18446744073709551615Ull; const ll P = 92540646808111039LL; const ll maxn = 1e5 + 10, MOD = 1e9 + 7; const int Move[4][2] = {-1,0,1,0,0,1,0,-1}; const int Move_[8][2] = {-1,-1,-1,0,-1,1,0,-1,0,1,1,-1,1,0,1,1};","s":"常用宏定义","u":"/docs/Algorithms/机试技巧与STL","h":"#常用宏定义","p":50},{"i":65,"t":"struct InitMember { int first; double second; char* third; float four; };","s":"定义","u":"/docs/Algorithms/机试技巧与STL","h":"#定义","p":50},{"i":67,"t":"方法一:定义时赋值​ struct InitMember test = {-10,3.141590,\"method one\",0.25}; 方法二:定义后逐个赋值​ struct InitMember test; test.first = -10; test.second = 3.141590; test.third = \"method two\"; test.four = 0.25; 方法三:定义时乱序赋值(C++风格)​ struct InitMember test = { second:3.141590, third:\"method three\", first:-10, four:0.25 }; 方法四:构造函数​ //定义图的定点 typedef struct Vertex { int id,inDegree,outDegree; vector connectors; //存储节点的后续连接顶点编号 Vertex() : id(-1),inDegree(0),outDegree(0) {} Vertex(int nid) : id(nid),inDegree(0),outDegree(0) {} } Vertex; //定义Graph的邻接表表示 typedef struct Graph { vector vertexs; //存储定点信息 int nVertexs; //计数:邻接数 bool isDAG; //标志:是有向图吗 Graph(int n, bool isDAG) : nVertexs(n), isDAG(isDAG) { vertexs.resize(n); } Graph() : nVertexs(1), isDAG(1) { vertexs.resize(1); } //向图中添加边 bool addEdge(int id1, int id2) { ... ... ... return true; } } Graph; Graph g(8, false);","s":"初始化","u":"/docs/Algorithms/机试技巧与STL","h":"#初始化","p":50},{"i":69,"t":"typedef struct{int id;int h;} node; bool operator <(const node& a,const node & b){return (a.h)<(b.h);}","s":"运算符重载","u":"/docs/Algorithms/机试技巧与STL","h":"#运算符重载","p":50},{"i":72,"t":"int *x = new int; //开辟一个存放整数的存储空间,返回一个指向该存储空间的地址(即指针) int *a = new int(100); //开辟一个存放整数的空间,并指定该整数的初值为100,返回一个指向该存储空间的地址 char *b = new char[10]; //开辟一个存放字符数组(包括10个元素)的空间,返回首元素的地址 float *p=new float (3.14159);//开辟一个存放单精度数的空间,并指定该实数的初值为//3.14159,将返回的该空间的地址赋给指针变量p","s":"常规","u":"/docs/Algorithms/机试技巧与STL","h":"#常规","p":50},{"i":74,"t":"//列值固定 const int MAXCOL = 3; cin>>row; //申请一维数据并将其转成二维数组指针 int *pp_arr = new int[nRow * MAXCOL]; int (*p)[MAXCOL] = (int(*)[MAXCOL])pp_arr; //此时p[i][j]就可正常使用","s":"动态申请列大小固定的二维数组","u":"/docs/Algorithms/机试技巧与STL","h":"#动态申请列大小固定的二维数组","p":50},{"i":76,"t":"cin>>row>>col; int **p = new int*[row]; for (int i = 0; i < row; i ++) { p[i] = new int[col]; }","s":"动态申请大小不固定的二维数组","u":"/docs/Algorithms/机试技巧与STL","h":"#动态申请大小不固定的二维数组","p":50},{"i":78,"t":"参考: https://blog.csdn.net/f_zyj/article/details/51594851 https://download.csdn.net/download/f_zyj/9988653","s":"常用STL","u":"/docs/Algorithms/机试技巧与STL","h":"#常用stl","p":50},{"i":80,"t":"STL底层说明​ C++ STL 的实现: 1.vector 底层数据结构为数组 ,支持快速随机访问 2.list 底层数据结构为双向链表,支持快速增删 3.deque 底层数据结构为一个中央控制器和多个缓冲区,详细见STL源码剖析P146,支持首尾(中间不能)快速增删,也支持随机访问 deque是一个双端队列(double-ended queue),也是在堆中保存内容的.它的保存形式如下: [堆1] --> [堆2] -->[堆3] --> ... 每个堆保存好几个元素,然后堆和堆之间有指针指向,看起来像是list和vector的结合品. 4.stack 底层一般用list或deque实现,封闭头部即可,不用vector的原因应该是容量大小有限制,扩容耗时 5.queue 底层一般用list或deque实现,封闭头部即可,不用vector的原因应该是容量大小有限制,扩容耗时 (stack和queue其实是适配器,而不叫容器,因为是对容器的再封装) 6.priority_queue 的底层数据结构一般为vector为底层容器,堆heap为处理规则来管理底层容器实现 7.set 底层数据结构为红黑树,有序,不重复 8.multiset 底层数据结构为红黑树,有序,可重复 9.map 底层数据结构为红黑树,有序,不重复 10.multimap 底层数据结构为红黑树,有序,可重复 11.hash_set 底层数据结构为hash表,无序,不重复 12.hash_multiset 底层数据结构为hash表,无序,可重复 13.hash_map 底层数据结构为hash表,无序,不重复 14.hash_multimap 底层数据结构为hash表,无序,可重复 CCF 编译出错原因: 不允许C++STL容器嵌套(需要满足相应的格式)​ 就是要在后面的“>”之间,必须得有一个空格,如果有多层,那每层都得有一个空格。 map > user;","s":"简述","u":"/docs/Algorithms/机试技巧与STL","h":"#简述","p":50},{"i":82,"t":"头文件:lgorithm 函数参数,返回值以及具体的使用方法请自行去头文件找定义!!! 不修改内容的序列操作​ 函数 说明 adjacent_find 查找两个相邻(Adjacent)的等价(Identical)元素 all_ofC++11 检测在给定范围中是否所有元素都满足给定的条件 any_ofC++11 检测在给定范围中是否存在元素满足给定条件 count 返回值等价于给定值的元素的个数 count_if 返回值满足给定条件的元素的个数 equal 返回两个范围是否相等 find 返回第一个值等价于给定值的元素 find_end 查找范围A中与范围B等价的子范围最后出现的位置 find_first_of 查找范围A中第一个与范围B中任一元素等价的元素的位置 find_if 返回第一个值满足给定条件的元素 find_if_notC++11 返回第一个值不满足给定条件的元素 for_each 对范围中的每个元素调用指定函数 mismatch 返回两个范围中第一个元素不等价的位置 none_ofC++11 检测在给定范围中是否不存在元素满足给定的条件 search 在范围A中查找第一个与范围B等价的子范围的位置 search_n 在给定范围中查找第一个连续n个元素都等价于给定值的子范围的位置 修改内容的序列操作​ 函数 说明 copy 将一个范围中的元素拷贝到新的位置处 copy_backward 将一个范围中的元素按逆序拷贝到新的位置处 copy_ifC++11 将一个范围中满足给定条件的元素拷贝到新的位置处 copy_nC++11 拷贝 n 个元素到新的位置处 fill 将一个范围的元素赋值为给定值 fill_n 将某个位置开始的 n 个元素赋值为给定值 generate 将一个函数的执行结果保存到指定范围的元素中,用于批量赋值范围中的元素 generate_n 将一个函数的执行结果保存到指定位置开始的 n 个元素中 iter_swap 交换两个迭代器(Iterator)指向的元素 moveC++11 将一个范围中的元素移动到新的位置处 move_backwardC++11 将一个范围中的元素按逆序移动到新的位置处 random_shuffle 随机打乱指定范围中的元素的位置 remove 将一个范围中值等价于给定值的元素删除 remove_if 将一个范围中值满足给定条件的元素删除 remove_copy 拷贝一个范围的元素,将其中值等价于给定值的元素删除 remove_copy_if 拷贝一个范围的元素,将其中值满足给定条件的元素删除 replace 将一个范围中值等价于给定值的元素赋值为新的值 replace_copy 拷贝一个范围的元素,将其中值等价于给定值的元素赋值为新的值 replace_copy_if 拷贝一个范围的元素,将其中值满足给定条件的元素赋值为新的值 replace_if 将一个范围中值满足给定条件的元素赋值为新的值 reverse 反转排序指定范围中的元素 reverse_copy 拷贝指定范围的反转排序结果 rotate 循环移动指定范围中的元素 rotate_copy 拷贝指定范围的循环移动结果 shuffleC++11 用指定的随机数引擎随机打乱指定范围中的元素的位置 swap 交换两个对象的值 swap_ranges 交换两个范围的元素 transform 对指定范围中的每个元素调用某个函数以改变元素的值 unique 删除指定范围中的所有连续重复元素,仅仅留下每组等值元素中的第一个元素。 unique_copy 拷贝指定范围的唯一化(参考上述的 unique)结果 划分操作​ 函数 说明 is_partitionedC++11 检测某个范围是否按指定谓词(Predicate)划分过 partition 将某个范围划分为两组 partition_copyC++11 拷贝指定范围的划分结果 partition_pointC++11 返回被划分范围的划分点 stable_partition 稳定划分,两组元素各维持相对顺序 排序操作​ 函数 说明 is_sortedC++11 检测指定范围是否已排序 is_sorted_untilC++11 返回最大已排序子范围 nth_element 部份排序指定范围中的元素,使得范围按给定位置处的元素划分 partial_sort 部份排序 partial_sort_copy 拷贝部分排序的结果 sort 排序 stable_sort 稳定排序 二分法查找操作​ 函数 说明 binary_search 判断范围中是否存在值等价于给定值的元素 equal_range 返回范围中值等于给定值的元素组成的子范围 lower_bound 返回指向范围中第一个值大于或等于给定值的元素的迭代器 upper_bound 返回指向范围中第一个值大于给定值的元素的迭代器 集合操作​ 函数 说明 includes 判断一个集合是否是另一个集合的子集 inplace_merge 就绪合并 merge 合并 set_difference 获得两个集合的差集 set_intersection 获得两个集合的交集 set_symmetric_difference 获得两个集合的对称差 set_union 获得两个集合的并集 堆操作​ 函数 说明 is_heap 检测给定范围是否满足堆结构 is_heap_untilC++11 检测给定范围中满足堆结构的最大子范围 make_heap 用给定范围构造出一个堆 pop_heap 从一个堆中删除最大的元素 push_heap 向堆中增加一个元素 sort_heap 将满足堆结构的范围排序 最大/最小操作​ 函数 说明 is_permutationC++11 判断一个序列是否是另一个序列的一种排序 lexicographical_compare 比较两个序列的字典序 max 返回两个元素中值最大的元素 max_element 返回给定范围中值最大的元素 min 返回两个元素中值最小的元素 min_element 返回给定范围中值最小的元素 minmaxC++11 返回两个元素中值最大及最小的元素 minmax_elementC++11 返回给定范围中值最大及最小的元素 next_permutation 返回给定范围中的元素组成的下一个按字典序的排列 prev_permutation 返回给定范围中的元素组成的上一个按字典序的排列","s":"algorithm","u":"/docs/Algorithms/机试技巧与STL","h":"#algorithm","p":50},{"i":84,"t":"头文件:vector 在STL的vector头文件中定义了vector(向量容器模版类),vector容器以连续数组的方式存储元素序列,可以将vector看作是以顺序结构实现的线性表。当我们在程序中需要使用动态数组时,vector将会是理想的选择,vector可以在使用过程中动态地增长存储空间。 vector模版类需要两个模版参数,第一个参数是存储元素的数据类型,第二个参数是存储分配器的类型,其中第二个参数是可选的,如果不给出第二个参数,将使用默认的分配器 下面给出几个常用的定义vector向量对象的方法示例: vector s; // 定义一个空的vector对象,存储的是int类型的元素 vector s(n); // 定义一个含有n个int元素的vector对象 vector s(first, last); // 定义一个vector对象,并从由迭代器first和last定义的序列[first, last)中复制初值 vector的基本操作: s[i] // 直接以下标方式访问容器中的元素 s.front() // 返回首元素 s.back() // 返回尾元素 s.push_back(x) // 向表尾插入元素x s.size() // 返回表长 s.empty() // 表为空时,返回真,否则返回假 s.pop_back() // 删除表尾元素 s.begin() // 返回指向首元素的随机存取迭代器 s.end() // 返回指向尾元素的下一个位置的随机存取迭代器 s.insert(it, val) // 向迭代器it指向的元素前插入新元素val s.insert(it, n, val)// 向迭代器it指向的元素前插入n个新元素val s.insert(it, first, last) // 将由迭代器first和last所指定的序列[first, last)插入到迭代器it指向的元素前面 s.erase(it) // 删除由迭代器it所指向的元素 s.erase(first, last)// 删除由迭代器first和last所指定的序列[first, last) s.reserve(n) // 预分配缓冲空间,使存储空间至少可容纳n个元素 s.resize(n) // 改变序列长度,超出的元素将会全部被删除,如果序列需要扩展(原空间小于n),元素默认值将填满扩展出的空间 s.resize(n, val) // 改变序列长度,超出的元素将会全部被删除,如果序列需要扩展(原空间小于n),val将填满扩展出的空间 s.clear() // 删除容器中的所有元素 s.swap(v) // 将s与另一个vector对象进行交换 s.assign(first, last) // 将序列替换成由迭代器first和last所指定的序列[first, last),[first, last)不能是原序列中的一部分 // 要注意的是,resize操作和clear操作都是对表的有效元素进行的操作,但并不一定会改变缓冲空间的大小 // 另外,vector还有其他的一些操作,如反转、取反等,不再一一列举 // vector上还定义了序列之间的比较操作运算符(>、<、>=、<=、==、!=),可以按照字典序比较两个序列。 // 还是来看一些示例代码吧…… /* * 输入个数不定的一组整数,再将这组整数按倒序输出 */ #include #include using namespace std; int main() { vector L; int x; while(cin >> x) { L.push_back(x); } for (int i = L.size() - 1; i >= 0; i--) { cout << L[i] << \" \"; } cout << endl; return 0; }","s":"vector","u":"/docs/Algorithms/机试技巧与STL","h":"#vector","p":50},{"i":86,"t":"头文件:list 下面给出几个常用的定义list对象的方法示例: lista{1,2,3} lista(n) //声明一个n个元素的列表,每个元素都是0 lista(n, m) //声明一个n个元素的列表,每个元素都是m lista(first, last) //声明一个列表,其元素的初始值来源于由区间所指定的序列中的元素,first和last是迭代器 list的基本操作: a.begin() // 返回指向首元素的随机存取迭代器 a.end() // 返回指向尾元素的下一个位置的随机存取迭代器 a.push_front(x) // 向表头插入元素x a.push_back(x) // 向表尾插入元素x a.pop_back() // 删除表尾元素 a.pop_front() // 删除表头元素 a.size() // 返回表长 a.empty() // 表为空时,返回真,否则返回假 a.resize(n) // 改变序列长度,超出的元素将会全部被删除,如果序列需要扩展(原空间小于n),元素默认值将填满扩展出的空间 a.resize(n, val) // 改变序列长度,超出的元素将会全部被删除,如果序列需要扩展(原空间小于n),val将填满扩展出的空间 a.clear() // 删除容器中的所有元素 a.front() // 返回首元素 a.back() // 返回尾元素 a.swap(v) // 将a与另一个list对象进行交换 a.merge(b) // 调用结束后b变为空,a中元素包含原来a和b的元素 a.insert(it, val) // 向迭代器it指向的元素前插入新元素val a.insert(it, n, val)// 向迭代器it指向的元素前插入n个新元素val a.insert(it, first, last) // 将由迭代器first和last所指定的序列[first, last)插入到迭代器it指向的元素前面 a.erase(it) // 删除由迭代器it所指向的元素 a.erase(first, last)// 删除由迭代器first和last所指定的序列[first, last) a.remove(x) // 删除了a中所有值为x的元素 a.assign(n, val) // 将a中的所有元素替换成n个val元素 a.assign(b.begin(), b.end()) //将a变成b","s":"list","u":"/docs/Algorithms/机试技巧与STL","h":"#list","p":50},{"i":88,"t":"头文件:string string是STL的字符串类型,通常用来表示字符串。而在使用string之前,字符串通常是用char*表示的。 string和char*的区别 string是一个类, char*是一个指向字符的指针。 string封装了char*,管理这个字符串,是一个char*型的容器。也就是说string是一个容器,里面元素的数据类型是char*。 string不用考虑内存释放和越界。 string管理char*所分配的内存。每一次string的复制,取值都由string类负责维护,不用担心复制越界和取值越界等。 string提供了一系列的字符串操作函数 查找find,拷贝copy,删除erase,替换replace,插入insert. 构造和析构函数: 表达式 效果 string s 生成一个空字符串 string s(str) copy构造函数,生成一个str的复制品 string s(str,idx) 将string内始于位置idx的部分当作字符串s的初值 string s(str,idx,len) 将string内始于位置idx且长度最多为len的部分当作字符串s的初值 string s(cstr) 以C-string字符串cstr作为字符串s的初值 string s(cstr,len) 以C-string字符串cstr的前len个字符作为字符串s的初值 string s(num,c) 生成一个字符串,包含num个字符c string s(beg,end) 以区间[beg,end]内所有字符作为字符串s的初值 操作函数: 操作函数 效果 =,assign() 赋以新值 swap() 交换两个字符串的内容 +=, append(),push_back() 添加字符 insert() 插入字符 erase() 删除字符 clear() 移除全部字符 resize() 改变字符数量 replace() 替换字符 + 串联字符串 ==,!=,<,<=,>,>=,compare() 比较字符串内容 size(),length() 返回字符数量,等效函数 max_size() 返回字符的最大可能个数 empty() 判断字符串是否为空 capacity() 返回重新分配之前的字符容量 reserve() 保留一定量内存以容纳一定数量的字符 [ ],at() 存取单一字符 >>,getline() 从stream中读取某值 << 将某值写入stream copy() 将内容复制为一个C-string c_str() 将内容以C-string形式返回 data() 将内容以字符数组形式返回 substr() 返回某个子字符串 begin(),end() 提供正常的迭代器支持 rbegin(),rend() 提供逆向迭代器支持","s":"string","u":"/docs/Algorithms/机试技巧与STL","h":"#string","p":50},{"i":90,"t":"头文件:utility STL的utility头文件中描述了一个看上去非常简单的模版类pair,用来表示一个二元组或元素对,并提供了按照字典序对元素对进行大小比较运算符模版函数。 Example,想要定义一个对象表示一个平面坐标点,则可以: pair p; cin >> p.first >> p.second; pair模版类需要两个参数:首元素的数据类型和尾元素的数据类型。pair模版类对象有两个成员:first和second,分别表示首元素和尾元素。 在其中已经定义了pair上的六个比较运算符:<、>、<=、>=、==、!=,其规则是先比较first,first相等时再比较second,这符合大多数应用的逻辑。当然,也可以通过重载这几个运算符来重新指定自己的比较逻辑。 除了直接定义一个pair对象外,如果需要即时生成一个pair对象,也可以调用在其中定义的一个模版函数:make_pair。make_pair需要两个参数,分别为元素对的首元素和尾元素。","s":"pair","u":"/docs/Algorithms/机试技巧与STL","h":"#pair","p":50},{"i":92,"t":"头文件:map 在STL的头文件中map中定义了模版类map和multimap,用有序二叉树表存储类型为pair的元素对序列。序列中的元素以const Key部分作为标识,map中所有元素的Key值必须是唯一的,multimap则允许有重复的Key值。 可以将map看作是由Key标识元素的元素集合,这类容器也被称为“关联容器”,可以通过一个Key值来快速决定一个元素,因此非常适合于需要按照Key值查找元素的容器。 map模版类需要四个模版参数,第一个是键值类型,第二个是元素类型,第三个是比较算子,第四个是分配器类型。其中键值类型和元素类型是必要的。 定义map对象的代码示例: map m; map的基本操作: /* 向map中插入元素 */ m[key] = value; // [key]操作是map很有特色的操作,如果在map中存在键值为key的元素对, 则返回该元素对的值域部分,否则将会创建一个键值为key的元素对,值域为默认值。所以可以用该操作向map中插入元素对或修改已经存在的元素对的值域部分。 m.insert(make_pair(key, value)); // 也可以直接调用insert方法插入元素对,insert操作会返回一个pair,当map中没有与key相匹配的键值时,其first是指向插入元素对的迭代器,其second为true;若map中已经存在与key相等的键值时,其first是指向该元素对的迭代器,second为false。 /* 查找元素 */ int i = m[key]; // 要注意的是,当与该键值相匹配的元素对不存在时,会创建键值为key(当另一个元素是整形时,m[key]=0)的元素对。 map::iterator it = m.find(key); // 如果map中存在与key相匹配的键值时,find操作将返回指向该元素对的迭代器,否则,返回的迭代器等于map的end()(参见vector中提到的begin()和end()操作)。 /* 删除元素 */ m.erase(key); // 删除与指定key键值相匹配的元素对,并返回被删除的元素的个数。 m.erase(it); // 删除由迭代器it所指定的元素对,并返回指向下一个元素对的迭代器。 /* 其他操作 */ m.size(); // 返回元素个数 m.empty(); // 判断是否为空 m.clear(); // 清空所有元素","s":"map","u":"/docs/Algorithms/机试技巧与STL","h":"#map","p":50},{"i":94,"t":"头文件:stack stack模版类的定义在stack头文件中。 stack模版类需要两个模版参数,一个是元素类型,另一个是容器类型,但是只有元素类型是必要的,在不指定容器类型时,默认容器的类型为deque。 定义stack对象的示例代码如下: stack s; stack ss; stack的基本操作有: s.push(x); // 入栈 s.pop(); // 出栈 s.top(); // 访问栈顶 s.empty(); // 当栈空时,返回true s.size(); // 访问栈中元素个数","s":"stack","u":"/docs/Algorithms/机试技巧与STL","h":"#stack","p":50},{"i":96,"t":"头文件:queue queue模版类的定义在queue头文件中。 queue与stack相似,queue模版类也需要两个模版参数,一个元素类型,一个容器类型,元素类型时必须的,容器类型时可选的,默认为deque类型。 定义queue对象的示例代码必须如下: queue q; queue qq; queue的基本操作: q.push(x); // 入队列 q.pop(); // 出队列 q.front(); // 访问队首元素 q.back(); // 访问队尾元素 q.empty(); // 判断队列是否为空 q.size(); // 访问队列中的元素个数","s":"queue","u":"/docs/Algorithms/机试技巧与STL","h":"#queue","p":50},{"i":98,"t":"头文件:set set是与集合相关的容器,STL为我们提供了set的实现,在编程题中遇见集合问题直接调用是十分方便的。 定义set对象的示例代码如下: set s; set ss; set的基本操作: s.begin() // 返回指向第一个元素的迭代器 s.clear() // 清除所有元素 s.count() // 返回某个值元素的个数 s.empty() // 如果集合为空,返回true(真) s.end() // 返回指向最后一个元素之后的迭代器,不是最后一个元素 s.equal_range() // 返回集合中与给定值相等的上下限的两个迭代器 s.erase() // 删除集合中的元素 s.find() // 返回一个指向被查找到元素的迭代器 s.get_allocator() // 返回集合的分配器 s.insert() // 在集合中插入元素 s.lower_bound() // 返回指向大于(或等于)某值的第一个元素的迭代器 s.key_comp() // 返回一个用于元素间值比较的函数 s.max_size() // 返回集合能容纳的元素的最大限值 s.rbegin() // 返回指向集合中最后一个元素的反向迭代器 s.rend() // 返回指向集合中第一个元素的反向迭代器 s.size() // 集合中元素的数目 s.swap() // 交换两个集合变量 s.upper_bound() // 返回大于某个值元素的迭代器 s.value_comp() // 返回一个用于比较元素间的值的函数","s":"set","u":"/docs/Algorithms/机试技巧与STL","h":"#set","p":50},{"i":100,"t":"头文件:set 在set头文件中,还定义了另一个非常实用的模版类multiset(多重集合)。多重集合与集合的区别在于集合中不能存在相同元素,而多重集合中可以存在。 定义multiset对象的示例代码如下: multiset s; multiset ss; multiset和set的基本操作相似,需要注意的是,集合的count()能返回0(无)或者1(有),而多重集合是有多少个返回多少个。","s":"multiset","u":"/docs/Algorithms/机试技巧与STL","h":"#multiset","p":50},{"i":102,"t":"头文件:bitset 在 STLSTL 的头文件中 bitset中定义了模版类 bitsetbitset,用来方便地管理一系列的 bitbit 位的类。bitsetbitset 除了可以访问指定下标的 bitbit 位以外,还可以把它们作为一个整数来进行某些统计。 bitsetbitset 模板类需要一个模版参数,用来明确指定含有多少位。 定义 bitsetbitset 对象的示例代码: const int MAXN = 32; bitset bt; // bt 包括 MAXN 位,下标 0 ~ MAXN - 1,默认初始化为 0 bitset bt1(0xf); // 0xf 表示十六进制数 f,对应二进制 1111,将 bt1 低 4 位初始化为 1 bitset bt2(012); // 012 表示八进制数 12,对应二进制 1010,即将 bt2 低 4 位初始化为 1010 bitset bt3(\"1010\"); // 将 bt3 低 4 位初始化为 1010 bitset bt4(s, pos, n);// 将 01 字符串 s 的 pos 位开始的 n 位初始化 bt4 bitsetbitset 基本操作: bt.any() // bt 中是否存在置为 1 的二进制位? bt.none() // bt 中不存在置为 1 的二进制位吗? bt.count() // bt 中置为 1 的二进制位的个数 bt.size() // bt 中二进制位的个数 bt[pos] // 访问 bt 中在 pos 处的二进制位 bt.test(pos) // bt 中在 pos 处的二进制位是否为 1 bt.set() // 把 bt 中所有二进制位都置为 1 bt.set(pos) // 把 bt 中在 pos 处的二进制位置为 1 bt.reset() // 把 bt 中所有二进制位都置为 0 bt.reset(pos) // 把 bt 中在pos处的二进制位置为0 bt.flip() // 把 bt 中所有二进制位逐位取反 bt.flip(pos) // 把 bt 中在 pos 处的二进制位取反 bt[pos].flip() // 同上 bt.to_ulong() // 用 bt 中同样的二进制位返回一个 unsigned long 值 os << bt // 把 bt 中的位集输出到 os 流","s":"bitset","u":"/docs/Algorithms/机试技巧与STL","h":"#bitset","p":50},{"i":105,"t":"#include #include #include using namespace std; #define MAX(a, b) ((a) > (b) ? (a) : (b) ) //定义图的定点 typedef struct Vertex { int id; vector connectors; //存储节点的后续连接顶点编号 Vertex() : id(-1) {} Vertex(int nid) : id(nid) {} } Vertex; //定义Graph的邻接表表示 typedef struct Graph { vector vertexs; //存储定点信息 int nVertexs; //计数:邻接数 bool isDAG; //标志:是有向图吗 Graph(int n, bool isDAG) : nVertexs(n), isDAG(isDAG) { vertexs.resize(n); } //向图中添加边 bool addEdge(int id1, int id2) { if (!(MAX(id1, id2) < vertexs.size())) return false; if (isDAG) { vertexs[id1].connectors.push_back(id2); } else { vertexs[id1].connectors.push_back(id2); vertexs[id2].connectors.push_back(id1); } return true; } //广度优先搜索 vector BFS(int start) { set visited; vector g, rst; g.push_back(start); visited.insert(start); while(g.size() > 0) { int id = g[0]; g.erase(g.begin()); rst.push_back(id); for(int i = 0; i < vertexs[id].connectors.size(); i++) { int id1 = vertexs[id].connectors[i]; if (visited.count(id1) == 0) { g.push_back(id1); visited.insert(id1); } } } return rst; } //深度优先搜索 vector DFS(int start) { set visited; vector g, rst; g.push_back(start); //cout << \"push \" << start << \" \"; visited.insert(start); rst.push_back(start); bool found; while(g.size() > 0) { int id = g[g.size()-1]; found = false; for(int i = 0; i < vertexs[id].connectors.size(); i++) { int id1 = vertexs[id].connectors[i]; if (visited.count(id1) == 0) { g.push_back(id1); rst.push_back(id1); visited.insert(id1); //cout << \"push \" << id1 << \" \"; found = true; break; } } if (!found) { int id2 = g[g.size()-1]; rst.push_back(-1 * id2); //cout << \"pop \" << id2 << \" \"; g.pop_back(); } } //cout << endl; return rst; } } Graph; int main() { Graph g(8, false); g.addEdge(0, 1); g.addEdge(0, 3); g.addEdge(1, 2); g.addEdge(3, 4); g.addEdge(3, 5); g.addEdge(4, 5); g.addEdge(4, 6); g.addEdge(5, 6); g.addEdge(5, 7); g.addEdge(6, 7); vector bv = g.BFS(0); cout << \"宽度优先搜索节点顺序:\"; for(int j = 0; j < bv.size(); j++) cout << bv[j] << \" \"; cout << endl; cout << \"深度优先搜索节点顺序:\"; Graph g1(6, false); g1.addEdge(0, 1); g1.addEdge(0, 4); g1.addEdge(0, 5); g1.addEdge(1, 5); g1.addEdge(4, 5); g1.addEdge(5, 2); g1.addEdge(5, 3); g1.addEdge(2, 3); vector route = g1.DFS(0); for(int i = 0; i < route.size(); i++) cout << route[i] << \" \"; cout << endl; char ch; cin >> ch; return 0; }","s":"不带出入度的最简模板","u":"/docs/Algorithms/机试技巧与STL","h":"#不带出入度的最简模板","p":50},{"i":107,"t":"#include #include #include #include #define MAX(a, b) ((a) > (b) ? (a) : (b) ) using namespace std; int n,m; vector inDegreelist,outDegreelist; //定义图的定点 typedef struct Vertex { int id,inDegree,outDegree; vector connectors; //存储节点的后续连接顶点编号 Vertex() : id(-1),inDegree(0),outDegree(0) {} Vertex(int nid) : id(nid),inDegree(0),outDegree(0) {} } Vertex; //定义Graph的邻接表表示 typedef struct Graph { vector vertexs; //存储定点信息 int nVertexs; //计数:邻接数 bool isDAG; //标志:是有向图吗 Graph(int n, bool isDAG) : nVertexs(n), isDAG(isDAG) { vertexs.resize(n); } Graph() : nVertexs(1), isDAG(1) { vertexs.resize(1); } //向图中添加边 bool addEdge(int id1, int id2) { if (!(MAX(id1, id2) < vertexs.size())) return false; if (isDAG) { vertexs[id1].connectors.push_back(id2); vertexs[id1].outDegree++; vertexs[id2].inDegree++; } else { vertexs[id1].connectors.push_back(id2); vertexs[id2].connectors.push_back(id1); vertexs[id1].outDegree++; vertexs[id1].inDegree++; vertexs[id2].outDegree++; vertexs[id2].inDegree++; } return true; } } Graph; Graph g; void init(){ cin>>n>>m; g=Graph(n, true); int src,dst; while(m--){ cin>>src>>dst; g.addEdge(src,dst); } vector::iterator it = g.vertexs.begin(); while(it!=g.vertexs.end()){ inDegreelist.push_back(it->inDegree); outDegreelist.push_back(it->outDegree); it++; } } int countin(int n){ return count(inDegreelist.begin(),inDegreelist.end(),n); } int countout(int n){ return count(outDegreelist.begin(),outDegreelist.end(),n); } bool Is_List(){ //有一个inDegree为0的头和一个outDegree为0的尾,且其余节点入度与出度都为1; return (countin(0)==1)&&(countout(0)==1)&&(countin(1)==n-1)&&(countout(1)==n-1); } bool Is_Tree(){ //有一个inDegree为0的头且其余节点inDegree均为1,且不是链表; return (countin(0)==1)&&(countin(1)==n-1); } bool topologicalSort(){//拓扑排序判断有环无环 int num=0;//记录加入拓扑排序的顶点数 queue q; for(int i=0;i #include #ifndef BASE #define BASE #define TRUE 1 #define FALSE 0 #define OK 1 #define ERROR 0 #define INFEASIBLE -1 #define OVERFLOW -2 typedef int Status; typedef int bool; #endif #define VertexType char //点类型 #define VRType int //边类型 #define maxSize 100 void Visit(VertexType e) { printf(\"%c\", e); } #define MAX_VERTEX_NUM 20 typedef enum{DG, UDG} GraphKind; typedef struct ArcNode{ int adjV; //边指向的顶点 VRType weight; //权重 struct ArcNode *next; }ArcNode; //边 typedef struct VNode{ VertexType data; ArcNode *firstarc; }VNode, AdjList[MAX_VERTEX_NUM]; //顶点 typedef struct{ GraphKind kind; int vernum,arcnum; AdjList vers; }ALGraph; /*------------------------ |7.14 创建有向图的邻接表| ------------------------*/ Status InitGraph_AL(ALGraph *pG) { //初始化 int i; pG->arcnum = 0; pG->vernum = 0; for (i=0; ivers[i].firstarc = NULL; //VC++6.0中指针初始化为0xcccccccc return OK; } int LocateVex_AL(ALGraph G, VertexType e) { //定位值为e的元素下标 int i; for (i=0; i弧的数目->各顶点的信息->各条弧的信息 int i,a,b; char tmp[MAX_VERTEX_NUM]; char h,t; ArcNode *p, *q; InitGraph_AL(pG); //VC++6.0中指针初始化为0xcccccccc,如果不将指针初始化为NULL,会出错 //图的类型 pG->kind = DG; //顶点数目 scanf(\"%d\", &i); if (i<0) return ERROR; pG->vernum = i; //弧的数目 scanf(\"%d\", &i); if (i<0) return ERROR; pG->arcnum = i; //各顶点信息 scanf(\"%s\", tmp); for (i=0; ivernum; ++i) pG->vers[i].data=tmp[i]; //弧的信息 for (i=0; iarcnum; ++i) { scanf(\"%s\", tmp); h = tmp[0]; t = tmp[2]; a = LocateVex_AL(*pG, h); b = LocateVex_AL(*pG, t); if (a<0 || b<0) return ERROR; p = (ArcNode *)malloc(sizeof(ArcNode)); if (!p) exit(OVERFLOW); p->adjV=b;p->next=NULL; if (pG->vers[a].firstarc) { //已经有边了 for (q = pG->vers[a].firstarc; q->next; q=q->next) ; //找到最后一条 q->next = p; } else { //第一条边 pG->vers[a].firstarc = p; } } return OK; } /*---------------------------------------------------------------- |7.28 有向图-从u-v的所有简单路径 | ----------------------------------------------------------------*/ int visit[MAX_VERTEX_NUM]; //前面定义了 VertexType paths[maxSize][MAX_VERTEX_NUM]; //存放路径 int path[MAX_VERTEX_NUM]; //路径 int pathnum=0; //当前是第几条路径 void FindAllPath(ALGraph G, int u,int v,int k) { //u->v当前是第k个位置 int i; ArcNode *p; visit[u]=1; //走到了u path[k]=u; //添加到路径->下标位置为k的结点是u(第k+1个是u) if (u==v) { //找到了 for (i=0; i<=k; i++) {//复制到paths paths[pathnum][i] = G.vers[path[i]].data; } paths[pathnum][i]='\\0'; //结束符 pathnum++; //找下一条路径 } else { //u的邻边开始找 for (p=G.vers[u].firstarc; p; p=p->next) { if (visit[p->adjV]==0) FindAllPath(G, p->adjV, v, k+1); //去这个邻接点找 } } // 回溯到上一个结点 // 注意:回溯应该写在外面-->也就是不管有没有找到都要回溯 visit[u]=0; path[k]=0; } int main() { /*7.28 6 11 ABCDEF B,A B,D C,B C,F D,C D,E D,F E,A F,A F,B F,E B->A A->B D->A */ int i,j; int cnt; ALGraph G; char tmp[20]; CreateDG_AL(&G); while (1) { scanf(\"%s\", tmp); //A->B i = LocateVex_AL(G, tmp[0]); j = LocateVex_AL(G, tmp[3]); for (cnt=0; cnt #include #define mem(a,b) memset(a,b,sizeof a); using namespace std; typedef long long ll; const int maxn=50; int mid[maxn],po[maxn],pr[maxn]; int first; struct node { int l,r; }T[maxn]; // 中序+先序=>二叉树 int mid_pr_build(int la,int ra,int lb,int rb) // la,ra:表示中序遍历 lb,rb:表示先序遍历 { // 这里不能等于,因为假设:len==1,则la==ra,直接返回,但是实际上是有一个 rt 的,却没被建立 if(la>ra) return 0; int rt=pr[lb]; // 因为先序遍历第一个是根节点 int p1=la,p2; while(mid[p1]!=rt) p1++; // 在中序遍历中找到根节点 p2=p1-la; T[rt].l=mid_pr_build(la,p1-1,lb+1,lb+p2); // 左子树(锁定左子树范围的下标) T[rt].r=mid_pr_build(p1+1,ra,lb+p2+1,rb); // 右子树(锁定右子树范围的下标) return rt; } // 中序+后序=>二叉树 int mid_po_build(int la,int ra,int lb,int rb) // la,ra:表示中序遍历 lb,rb:表示后序遍历 { if(la>ra) return 0; int rt=po[rb]; // 因为后序遍历最后一个是根节点 int p1=la,p2; while(mid[p1]!=rt) p1++; // 在中序遍历中找到根节点 p2=p1-la; T[rt].l=mid_po_build(la,p1-1,lb,lb+p2-1); // 左子树(锁定左子树范围的下标) T[rt].r=mid_po_build(p1+1,ra,lb+p2,rb-1); // 右子树(锁定右子树范围的下标) return rt; } // 求树高 int getHeight(int rt) { if(rt==0) return 0; return 1+max(getHeight(T[rt].l),getHeight(T[rt].r)); } // 层序遍历 void bfs(int rt) { queue q; vector v; q.push(rt); while(!q.empty()) { int w=q.front(); q.pop(); v.push_back(w); if(T[w].l!=0) q.push(T[w].l); if(T[w].r!=0) q.push(T[w].r); } int len=v.size(); for(int i=0;i #include #define mem(a,b) memset(a,b,sizeof a); using namespace std; typedef long long ll; const int maxn=50; int mid[maxn],po[maxn],pr[maxn]; int first; struct node { int l,r; }T[maxn]; int mid_pr_build(int la,int ra,int lb,int rb) { if(la>ra) return 0; int rt=pr[lb]; int p1=la,p2; while(mid[p1]!=rt) p1++; p2=p1-la; T[rt].l=mid_pr_build(la,p1-1,lb+1,lb+p2); T[rt].r=mid_pr_build(p1+1,ra,lb+p2+1,rb); return rt; } int mid_po_build(int la,int ra,int lb,int rb) { if(la>ra) return 0; int rt=po[rb]; int p1=la,p2; while(mid[p1]!=rt) p1++; p2=p1-la; T[rt].l=mid_po_build(la,p1-1,lb,lb+p2-1); T[rt].r=mid_po_build(p1+1,ra,lb+p2,rb-1); return rt; } int getHeight(int rt) { if(rt==0) return 0; return 1+max(getHeight(T[rt].l),getHeight(T[rt].r)); } void bfs(int rt) { queue q; vector v; q.push(rt); while(!q.empty()) { int w=q.front(); q.pop(); v.push_back(w); if(T[w].l!=0) q.push(T[w].l); if(T[w].r!=0) q.push(T[w].r); } int len=v.size(); for(int i=0;i #include #define mem(a,b) memset(a,b,sizeof a) #define ssclr(ss) ss.clear(), ss.str(\"\") #define INF 0x3f3f3f3f #define MOD 1000000007 using namespace std; typedef long long ll; const int maxn=5e4+1000; int f; int pre[maxn], in[maxn]; struct node { int l,r,d; }T[maxn]; int create(int l1,int r1,int l2,int r2) // in pre { if(l2>r2) return -1; int rt=l2; int p1=l1,p2; while(in[p1]!=pre[rt]) p1++; p2=p1-l1; T[rt].d=pre[rt]; T[rt].l=create(l1,p1-1,l2+1,l2+p2); T[rt].r=create(p1+1,r1,l2+p2+1,r2); return rt; } void postT(int rt) { if(rt==-1 || !f) return; postT(T[rt].l); postT(T[rt].r); if(f) f=0, printf(\"%d\\n\",T[rt].d); } int main() { int n; scanf(\"%d\",&n); for(int i=0;i * Copyright (c) 2003, Jeffrey K. Hollingsworth * Copyright (c) 2004, Iulian Neamtiu * $Revision: 1.51 $ * * This is free software. You are permitted to use, * redistribute, and modify it as specified in the file \"COPYING\". */ #include #include #include #include #include #include #include #include #include #include #include void project0(){ Print(\"To Exit hit Ctrl + d.\\n\"); Keycode keycode; while(1) { if(Read_Key(&keycode)) { if(!((keycode & KEY_SPECIAL_FLAG) || (keycode & KEY_RELEASE_FLAG)))// 不是特殊键或者弹起 { int asciiCode = keycode & 0xff;//d if((keycode & KEY_CTRL_FLAG)==KEY_CTRL_FLAG && asciiCode=='d')//ctrl+d { Print(\"\\n---------Adios! Motherfucker!---------\\n\"); Exit(1); }else { Print(\"%c\",(asciiCode=='\\r') ? '\\n' : asciiCode); } } } } } /* * Kernel C code entry point. * Initializes kernel subsystems, mounts filesystems, * and spawns init process. */ void Main(struct Boot_Info* bootInfo) { Init_BSS(); Init_Screen(); Init_Mem(bootInfo); Init_CRC32(); Init_TSS(); Init_Interrupts(); Init_Scheduler(); Init_Traps(); Init_Timer(); Init_Keyboard(); Set_Current_Attr(ATTRIB(BLACK, GREEN|BRIGHT)); Print(\"Welcome to GeekOS!\\n\"); Set_Current_Attr(ATTRIB(BLACK, GRAY)); // TODO(\"Start a kernel thread to echo pressed keys and print counts\"); struct Kernel_Thread *thread; thread = Start_Kernel_Thread(&project0,0,PRIORITY_NORMAL,false); /* Now this thread is done. */ Exit(0); }","s":"1. 编写C语言代码","u":"/docs/Curriculum/操作系统课设/GeekOS-project-0","h":"#1-编写c语言代码","p":193},{"i":198,"t":"每一个项目的编译都在geekos-version/src/projecti/build文件夹下进行,即要在终端中通过cd进入该目录。 执行 make depend make 此时,该目录下会生成bochs.out、depend.mak以及fd.img文件,bochs.out文件是日志输出文件,depend.mak是编译中间生成的文件,最终生成的fd.img是最重要的GeekOS映像文件,有了它才能使用bochs运行GeekOS操作系统。感恩它! 目录下的文件应该是这样的结构: 下面就可以使用bochs运行GeekOS系统了,可以说bochs的运行依赖两个文件,一个是配置文件.bochsrc,一个是映像文件fd.img,映像文件的加载路径需要在.bochsrc文件中定义,在环境配置的博客中已经介绍过了。这里再贴一下内容。 # An example .bochsrc file. # You will need to edit these lines to reflect your system. vgaromimage: file=/usr/local/share/bochs/VGABIOS-lgpl-latest # 请根据自己的实际安装路径更改 romimage: file=/usr/local/share/bochs/BIOS-bochs-latest # 请根据自己的实际安装路径更改 megs: 8 boot: a floppya: 1_44=fd.img, status=inserted #floppya: 1_44=fd_aug.img, status=inserted log: ./bochs.out # keyboard_serial_delay: 200 # vga_update_interval: 300000 mouse: enabled=0 private_colormap: enabled=0 # i440fxsupport: enabled=0 # Uncomment this to write all bochs debugging messages to # bochs.out. This produces a lot of output, but can be very # useful for debugging the kernel. #debug: action=report 在这个目录下打开终端,执行 bochs 选择6,按下回车 可能会出现黑屏情况,这是因为进入了调试模式,终端正在等待命令,在终端输入 c 即可完成bochs的正式启动,最终的效果","s":"2. 使用Linux的编译系统对C语言代码进行编译","u":"/docs/Curriculum/操作系统课设/GeekOS-project-0","h":"#2-使用linux的编译系统对c语言代码进行编译","p":193},{"i":200,"t":"提示 在以前的文章图像生成模型中已经大概介绍了目前SOTA的图像生成模型的共同点,并初步了解了Diffusion Model,在这篇文章中将详细讲解扩散模型的数学原理等。","s":"扩散模型(Diffusion Model)","u":"/docs/Deep-Learning/大模型/Diffusion-Model","h":"","p":199},{"i":202,"t":"首先回顾一下扩散模型的基本概念和生成过程,可以大概分为两步: Forward Process:对训练集中的图片不断加入与图片shape相同的、从某随机分布中sample出的噪声,直至图片可以被认为是从该随机分布中sample出的矩阵。 Forward Process又叫做Diffusion Process,在这一步中产生的噪声-加入噪声的图像对可以用来训练Noise Predictor,即从有噪声的图像中预测出其中的噪声,再从输入中减去噪声得到降噪后的图片。 图像生成的原理 这一步的目的也同样在之前的文章图像生成模型中提到过:由于根据文字prompt期待生成的图像并不是固定的,可以认为生成的图片在目标域(Target Domain)符合某种分布。因此目前的SOTA模型除了将文字prompt作为输入,还从某随机分布中sample出图片shape的随机向量(矩阵)作为输入,期待模型根据prompt将源域(Source Domain)输入的随机向量映射到目标域的分布,生成对应的图片。 Reverse Process:使用Diffusion Process训练的Noise Predictor,根据文字Prompt对从随机分布中sample出的图片大小的噪声图片进行降噪,得到原图。 值得注意的是,变分自编码器(Variational Auto-Encoder, abbr. VAE)与Diffusion Model非常相似:VAE对训练集中的原始图像使用Encoder将其变换为某种Latent Representation,这种Latent Representation的分布也是符合某种随机分布的,VAE再通过Decoder将期待生成的目标域图像还原出来。 在下面的文章中我们也会学习一下VAE的数学原理,从VAE到Diffusion Model的具体数学推导,可以参考胡老师推荐的论文Understanding Diffusion Models: A Unified Perspective。 下面我们以DDPM论文中的原图来分析DDPM的训练与推理过程。","s":"基本概念","u":"/docs/Deep-Learning/大模型/Diffusion-Model","h":"#基本概念","p":199},{"i":204,"t":"循环开始,重复以下步骤; 首先从数据集中sample出原始图像x0\\mathbf{x}_0x0​; ttt是从1,…,T1,\\ldots,T1,…,T范围中sample出的一个integer; ϵ\\epsilonϵ是从Normal Distribution中sample出的与x0\\mathbf{x}_0x0​相同大小的噪声; 根据如下规则进行梯度下降,训练Noise Predictor: ∇θ∥ϵ−ϵθ(αˉtx0+1−αˉtϵ,t)∥2(1)\\nabla_{\\theta}\\left\\|\\boldsymbol{\\epsilon}-\\boldsymbol{\\epsilon}_{\\theta}(\\sqrt{\\bar{\\alpha}_{t}}\\mathbf{x}_{0}+\\sqrt{1-\\bar{\\alpha}_{t}}\\boldsymbol{\\epsilon},t)\\right\\|^{2}\\tag{1}∇θ​∥∥​ϵ−ϵθ​(αˉt​​x0​+1−αˉt​​ϵ,t)∥∥​2(1) 首先对x0\\mathbf{x}_0x0​和ϵ\\epsilonϵ根据权重αˉ1,αˉ2,...αˉT\\bar{\\alpha}_1,\\bar{\\alpha}_2,...\\bar{\\alpha}_Tαˉ1​,αˉ2​,...αˉT​做weighted sum产生加入噪声后的图像。通常来说,αˉ1\\bar{\\alpha}_1αˉ1​至αˉT\\bar{\\alpha}_TαˉT​是递减的,当在第2步中sample到的ttt越大,则原始图像x0\\mathbf{x}_0x0​对新图像的贡献越大。 ϵθ\\epsilon_{\\theta}ϵθ​是Noise Predictor,其输入是加入噪声的图像以及sample出的ttt,而ϵθ\\epsilon_\\thetaϵθ​训练的Ground Truth就是第3步中sample出的噪声ϵ\\epsilonϵ; 直至噪声预测模型ϵθ\\epsilon_\\thetaϵθ​训练至收敛。","s":"训练过程","u":"/docs/Deep-Learning/大模型/Diffusion-Model","h":"#训练过程","p":199},{"i":206,"t":"从Normal Distribution中sample出图片大小的噪声xT\\mathbf{x}_TxT​; ttt从T,…,1T,\\ldots,1T,…,1范围循环TTT次; 对与每一次以ttt计数的循环,若t>1t>1t>1,则从Normal Distribution中sample出z\\mathbf{z}z,否则z=0\\mathbf{z}=\\mathbf{0}z=0; 根据如下公式得到降噪后的图像: xt−1=1αt(xt−1−αt1−αˉtϵθ(xt,t))+σtz(2)\\mathbf{x}_{t-1}=\\frac{1}{\\sqrt{\\alpha_{t}}}\\left(\\mathbf{x}_{t}-\\frac{1-\\alpha_{t}}{\\sqrt{1-\\bar{\\alpha}_{t}}}\\boldsymbol{\\epsilon}_{\\theta}(\\mathbf{x}_{t},t)\\right)+\\sigma_{t}\\mathbf{z}\\tag{2}xt−1​=αt​​1​(xt​−1−αˉt​​1−αt​​ϵθ​(xt​,t))+σt​z(2) 其中,xt\\mathbf{x}_txt​代表上一步骤中输出的降噪后的图像,xt−1\\mathbf{x}_{t-1}xt−1​代表当前步骤即将输出的降噪后的图像,ϵθ\\epsilon_\\thetaϵθ​代表Noise Predictor预测出的噪声,αˉ1,αˉ2,...αˉT\\bar{\\alpha}_1,\\bar{\\alpha}_2,...\\bar{\\alpha}_Tαˉ1​,αˉ2​,...αˉT​以及α1,α2,...αT\\alpha_1,\\alpha_2,...\\alpha_Tα1​,α2​,...αT​是两组权重序列; 结束本次for循环; 当t=1t=1t=1时,得到x0\\mathbf{x}_0x0​,即最终降噪后的图像。","s":"推理过程","u":"/docs/Deep-Learning/大模型/Diffusion-Model","h":"#推理过程","p":199},{"i":208,"t":"提示 本笔记使用的教材是陈天华所著、清华大学出版社的《数字图像处理及应用:使用MATLAB分析与实现》。 Take me to church, I'll worship like a dog at the shrine of your lies. I'll tell you my sins, and you can sharpen your knife. Offer me that deathless death, good god, let me give you my life.","s":"数字图像处理复习笔记","u":"/docs/Curriculum/数字图像处理/Note","h":"","p":207},{"i":211,"t":"为了从模拟图像产生数字图像,需要进行采样与量化,即对模拟图像在空间(x,y)(x, y)(x,y)方向上以及亮度函数f(x,y)f(x, y)f(x,y)进行离散化处理。 采样: 模拟图像在空间(x,y)(x, y)(x,y)上的离散化称为采样。 若在x和y方向上均进行等间距的采样,则称为均匀采样。 采样点的多少以及采样的间隔直接影响着图像的质量。 量化: 模拟图像经过采样后,在时间和空间上被离散化为像素,但采样所得的像素点的像素值依然是连续量。量化过程就是以离散的灰度值信息代替连续的模拟量灰度信息的过程,是一对多的过程。 量化可以分为线性量化以及非线性量化。 灰度级一般以2的整数次幂表示,如大多图像为彩色RGB图像,256个灰度级,位深度为8(28=2562^8=25628=256),则对于分辨率为256×256的图像来说,需要256×256×3×8位表示,即每一个像素实际上使用24位表示。","s":"图像的采样与量化","u":"/docs/Curriculum/数字图像处理/Note","h":"#图像的采样与量化","p":207},{"i":213,"t":"4邻域N4(p)N_4(p)N4​(p)即该像素上下左右的四个点,8邻域N8(p)N_8(p)N8​(p),对角邻域ND(p)N_D(p)ND​(p)。 像素之间的距离度量必须满足三种关系: 非负性 对称性 三角不等式 三种距离度量: 已知,点ppp的坐标为(x,y)(x, y)(x,y),点qqq的坐标为(s,t)(s,t)(s,t)。 欧氏距离: De(p,q)=(x−s)2+(y−t)2(1)D_e(p,q)=\\sqrt{(x-s)^2+(y-t)^2}\\tag{1}De​(p,q)=(x−s)2+(y−t)2​(1) 城市距离 D4(p,q)=∣x−s∣+∣y−t∣(2)D_4(p,q)=\\vert x-s\\vert+\\vert y-t\\vert \\tag{2}D4​(p,q)=∣x−s∣+∣y−t∣(2) 棋盘距离 D8(p,q)=max(∣x−s∣,∣y−t∣)(3)D_8(p,q)=max(\\vert x-s\\vert,\\vert y-t\\vert)\\tag{3}D8​(p,q)=max(∣x−s∣,∣y−t∣)(3)","s":"距离度量","u":"/docs/Curriculum/数字图像处理/Note","h":"#距离度量","p":207},{"i":215,"t":"MSE越小代表待测图像与参考图像越接近,均方误差公式如下: MSE=1MN∑x=1M∑y=1N[f(x,y)−g(x,y)]2(4)MSE=\\frac{1}{MN}\\sum_{x=1}^{M}\\sum_{y=1}^{N}[f(x,y)-g(x,y)]^2\\tag{4}MSE=MN1​x=1∑M​y=1∑N​[f(x,y)−g(x,y)]2(4) SNR:参考图像像素值的平方均值与均方误差的比值的对数的10倍。越大代表图像质量越好 PSNR:峰值信噪比,图像所允许的最大像素值的平方与均方误差的比值的对数的10倍,这是信噪比的改良版本,消除了图像自身像素值对评价指标的影响。越大代表图像质量越好 SSIM为结构相似系数,越大代表图像质量越好","s":"图像质量评价","u":"/docs/Curriculum/数字图像处理/Note","h":"#图像质量评价","p":207},{"i":219,"t":"可以使用傅里叶变换的函数需要满足狄利克莱条件(Dirichlet Condition): 具有有限个间断点 具有有限个极值点 绝对可积 傅里叶变换的特性: 信息 傅里叶频谱图的特征: 频率分布:傅里叶频谱图展示了图像在不同频率下的强度分布。高频部分对应图像中的边缘和细节,低频部分对应图像中的整体结构和大致轮廓。 能量分布:图像中不同频率的能量在频谱图中以不同强度的幅度呈现。高幅度的频率分量通常标示着图像中强烈的变化或边缘。 平移不变性:傅里叶变换具有平移不变性,这意味着在频域中图像的平移对应于幅度谱中相位的改变而不影响幅度谱本身。 连续傅里叶变换​ 一维连续傅里叶变换 F(u)=∫−∞+∞f(x)e−j2πuxdx(5)F(u)=\\int_{-\\infty}^{+\\infty}f(x)e^{-j2\\pi ux}dx\\tag{5}F(u)=∫−∞+∞​f(x)e−j2πuxdx(5) 一维连续傅里叶逆变换 f(x)=∫−∞∞F(u)ej2πuxdu(6)f(x)=\\int_{-\\infty}^{\\infty}F(u)e^{j2\\pi ux}du\\tag{6}f(x)=∫−∞∞​F(u)ej2πuxdu(6) 二维连续傅里叶变换 F(u,v)=∫−∞∞∫−∞∞f(x,y)e−j2π(ux+vy)dxdy(7)F(u,v)=\\int_{-\\infty}^{\\infty}\\int_{-\\infty}^{\\infty}f(x,y)e^{-j2\\pi (ux+vy)}dxdy\\tag{7}F(u,v)=∫−∞∞​∫−∞∞​f(x,y)e−j2π(ux+vy)dxdy(7) 二维连续傅里叶逆变换 f(x,y)=∫−∞∞∫−∞∞F(u,v)ej2π(ux+vy)dudv(8)f(x,y)=\\int_{-\\infty}^{\\infty}\\int_{-\\infty}^{\\infty}F(u,v)e^{j2\\pi (ux+vy)}dudv\\tag{8}f(x,y)=∫−∞∞​∫−∞∞​F(u,v)ej2π(ux+vy)dudv(8) 离散傅里叶变换​ 一维离散傅里叶变换 F(u)=∑x=0N−1f(x)e−j2πuxN(9)F(u)=\\sum_{x=0}^{N-1}f(x)e^{-j\\frac{2\\pi ux}{N}}\\tag{9}F(u)=x=0∑N−1​f(x)e−jN2πux​(9) 一维离散傅里叶逆变换 f(x)=1N∑u=0N−1F(u)ej2πuxN(10)f(x)=\\frac{1}{N}\\sum_{u=0}^{N-1}F(u)e^{j\\frac{2\\pi ux}{N}}\\tag{10}f(x)=N1​u=0∑N−1​F(u)ejN2πux​(10) 二维离散傅里叶变换 F(u,v)=∑x=0M−1∑y=0N−1f(x,y)e−j2π(uxM+vyN)(11)F(u,v)=\\sum_{x=0}^{M-1}\\sum_{y=0}^{N-1}f(x,y)e^{-j2\\pi (\\frac{ux}{M}+\\frac{vy}{N})}\\tag{11}F(u,v)=x=0∑M−1​y=0∑N−1​f(x,y)e−j2π(Mux​+Nvy​)(11) 二维离散傅里叶逆变换 f(x,y)=1MN∑u=0M−1∑v=0N−1F(u,v)ej2π(uxM+vyN)(12)f(x,y)=\\frac{1}{MN}\\sum_{u=0}^{M-1}\\sum_{v=0}^{N-1}F(u,v)e^{j2\\pi (\\frac{ux}{M}+\\frac{vy}{N})}\\tag{12}f(x,y)=MN1​u=0∑M−1​v=0∑N−1​F(u,v)ej2π(Mux​+Nvy​)(12)","s":"傅里叶变换","u":"/docs/Curriculum/数字图像处理/Note","h":"#傅里叶变换","p":207},{"i":222,"t":"下图展示了点运算的主要应用:对比度拉伸 主要应用: 对比度拉伸 光度学标定 显示标定 轮廓线 裁剪","s":"点运算","u":"/docs/Curriculum/数字图像处理/Note","h":"#点运算","p":207},{"i":224,"t":"使用齐次坐标对图像进行比例缩放。 全比例缩放是指x方向和y方向使用相同的比例系数。 当对图像进行放大时,会产生之前没有的像素,此时需要使用插值来解决。","s":"比例缩放","u":"/docs/Curriculum/数字图像处理/Note","h":"#比例缩放","p":207},{"i":226,"t":"最近邻法插值​ 双线性插值(Bilinear)​ 例题:","s":"灰度级插值","u":"/docs/Curriculum/数字图像处理/Note","h":"#灰度级插值","p":207},{"i":229,"t":"线性变换​ 是指将输入图像的灰度值的动态范围按线性关系变换至指定范围或灰度的整个动态范围。 按比例线性变换 均匀线性变换 限幅线性变换 分段线性拉伸 非线性变换​ 对数拉伸可以拉伸低亮度区域,压缩高亮度区域。 指数拉伸可以拉伸高亮度区域,压缩低亮度区域。 注意,上述的拉伸是指新的图像在该灰度范围内分布的更均匀,即出现的灰度级更多;压缩的意义是指新的图像在该灰度范围内分布的更狭窄,即出现的灰度级更少。 例题: 答:该图像存在较亮的问题,灰度直方图分布在较高的区域。从直接灰度变换增强法的角度,我们可以采用指数函数变换,对高灰度区进行扩展。 提示 分析:该图像中没有低灰度的像素,全部集中在高灰度部分,因此使用指数函数变换将原来的集中的高灰度区域进行拉伸,扩展其灰度分布的范围,从而起到增强效果。","s":"直接灰度变换","u":"/docs/Curriculum/数字图像处理/Note","h":"#直接灰度变换","p":207},{"i":231,"t":"直方图均衡化​ 目的: 将一非均匀灰度概率密度分布的图像,通过某种灰度变换,将其变成一幅具有均匀灰度概率密度分布的目的图像。 步骤: 根据原始图像计算原始灰度密度分布函数rkr_krk​ 计算变换函数,即累积密度分布函数sks_ksk​ 计算均衡化后的灰度级s(k)s(k)s(k),即使用以下公式进行均衡化映射: s(k)=ceil(sk×L−1)(13)s(k)=\\mathbf{ceil}(s_k\\times L-1)\\tag{13}s(k)=ceil(sk​×L−1)(13) 其中,LLL是原直方图中灰度级数。 画出最终均衡化后的直方图 例题: 直方图规定化​ 目的: 调整原始图像的直方图使其符合某一规定的直方图的要求。 思想: 将原始图像和规定图像进行均衡化后,二者的灰度概率密度分布相同,进行对应映射即可。 步骤: 对原始图像进行均衡化,得到映射后的s(k)s(k)s(k) 对规定的图像直方图进行均衡化,得到映射后的z(k)z(k)z(k) 由于s(k)s(k)s(k)和z(k)z(k)z(k)都是归一化后的均匀分布,使用二者之间的就近原则将s(k)s(k)s(k)对应到给出的规定直方图的灰度级 画出规定化后的直方图 例题: 此时已经获得了原始图像均衡化后的灰度级与目标规定化输出的图像的灰度级之间的映射关系,最后一步按照rkr_krk​画出目标规定化输出的图像直方图即可。","s":"直方图灰度变换","u":"/docs/Curriculum/数字图像处理/Note","h":"#直方图灰度变换","p":207},{"i":233,"t":"空域滤波可以根据作用分为平滑滤波以及锐化滤波。 平滑滤波​ 信息 噪声的特点: 随机性 叠加性 噪声与图像之间具有相关性 线性平滑滤波​ 邻域平均滤波 加权平均滤波 高斯滤波 非线性平滑滤波​ 中值滤波 最大值滤波 最小值滤波 锐化滤波​ 锐化滤波消除或减弱图像的低频分量从而增强图像中物体的边缘轮廓信息,使得除边缘以外的像素点的灰度值趋向于零。 梯度法 拉普拉斯算子,非线性滤波 定向滤波:检测特定方向边缘的滤波,通常在模板上表现为在该特定方向上模板值较大。 下面的表格展示了水平方向的定向锐化模板 -1 -1 -1 2 2 2 -1 -1 -1 下面的表格展示了对角方向的定向锐化模板 -1 2 -1 -1 2 -1 -1 2 -1","s":"空域滤波增强","u":"/docs/Curriculum/数字图像处理/Note","h":"#空域滤波增强","p":207},{"i":235,"t":"图像从空域变换到频域后,低频分量对应图像中灰度值变化缓慢的区域,可能是图像的背景;高频分量表示图像中灰度值变化迅速的区域,可能是图像的噪声或物体的边缘。 在图像频谱(经过中心偏移的)中,中心代表低频信息,四周代表高频信息。","s":"第6章 图像频域增强","u":"/docs/Curriculum/数字图像处理/Note","h":"#第6章-图像频域增强","p":207},{"i":237,"t":"抑制、衰减高频分量,保留低频分量。 理想低通滤波器(ILPF)​ 提示 ILPF means Ideal Low Pass Filter. H(u,v)={1D(u,v)≤D00D(u,v)>D0(14)H(u,v)=\\begin{cases}1&D(u,v)\\leq D_0\\\\ 0&D(u,v)>D_0\\end{cases}\\tag{14}H(u,v)={10​D(u,v)≤D0​D(u,v)>D0​​(14) D(u,v)=u2+v2(15)D(u,v)=\\sqrt{u^2+v^2}\\tag{15}D(u,v)=u2+v2​(15) 在截止频率D0D_0D0​处垂直截止,通过频率和截止频率在D0D_0D0​处具有不连续性,通带和阻带之间没有过渡,会产生无限的振铃效应。 巴特沃斯低通滤波器(BLPF)​ 通带与阻带之间过度平坦,通过频率和截止频率之间没有明显的不连续性,不会出现振铃效应。 H(u,v)=11+(2−1)[D(u,v)D0]2n(16)H(u,v)=\\frac{1}{1+(\\sqrt{2}-1)[\\frac{D(u,v)}{D_0}]^{2n}}\\tag{16}H(u,v)=1+(2​−1)[D0​D(u,v)​]2n1​(16) 其中,取H(u,v)H(u,v)H(u,v)下降到最大值的0.707时的D(u,v)D(u,v)D(u,v)作为截止频率D0D_0D0​。 即当D(u,v)D(u,v)D(u,v)达到截止频率时,D(u,v)D0=1\\frac{D(u,v)}{D_0}=1D0​D(u,v)​=1,此时H(u,v)=0.707H(u,v)=0.707H(u,v)=0.707。 指数低通滤波器(ELPF)​ 一般情况下,取H(u,v)H(u,v)H(u,v)下降到最大值的1/2时的D(u,v)D(u,v)D(u,v)作为截止频率。 H(u,v)=e−[D(u,v)D0]n(17)H(u,v)=e^{-[\\frac{D(u,v)}{D_0}]^n}\\tag{17}H(u,v)=e−[D0​D(u,v)​]n(17) 截止频率和通过频率之间具有更光滑的过渡,没有振铃现象。且指数低通滤波器比巴特沃斯低通滤波器衰减更快,处理后的图像更模糊。 梯形低通滤波器(TLPF)​ 由于在D0D_0D0​尾部包含高频分量D1D_1D1​,处理后图像的清晰度较理想低通滤波器有所改善,但会出现振铃效应, H(u,v)={1D(u,v)D1(18)H(u,v)=\\begin{cases}1&D(u,v)D_1\\end{cases}\\tag{18}H(u,v)=⎩⎨⎧​1D0​−D1​D(u,v)−D1​​0​D(u,v)D1​​(18)","s":"低通滤波","u":"/docs/Curriculum/数字图像处理/Note","h":"#低通滤波","p":207},{"i":239,"t":"抑制低频分量,保留高频分量。 理想高通滤波器(IHPF)​ H(u,v)={1D(u,v)>D00D(u,v)≤D0(19)H(u,v)=\\begin{cases}1&D(u,v)>D_0\\\\ 0&D(u,v)\\leq D_0\\end{cases}\\tag{19}H(u,v)={10​D(u,v)>D0​D(u,v)≤D0​​(19) 性质与理想低通滤波器一样,垂直截断,具有无限振铃效应。 巴特沃斯高通滤波器(BHPF)​ H(u,v)=11+(2−1)[D0D(u,v)]2n(20)H(u,v)=\\frac{1}{1+(\\sqrt{2}-1)[\\frac{D_0}{D(u,v)}]^{2n}}\\tag{20}H(u,v)=1+(2​−1)[D(u,v)D0​​]2n1​(20) 通常采取H(u,v)H(u,v)H(u,v)下降到最大值的0.707时的D(u,v)D(u,v)D(u,v)作为截止频率,没有振铃效应。 指数高通滤波器(EHPF)​ H(u,v)=e−[D0D(u,v)]n(21)H(u,v)=e^{-[\\frac{D_0}{D(u,v)}]^n}\\tag{21}H(u,v)=e−[D(u,v)D0​​]n(21) 梯形高通滤波器(THPF)​ H(u,v)={1D(u,v)>D0D(u,v)−D1D0−D1D1≤D(u,v)≤D00D(u,v)D_0\\\\ \\\\ \\frac{D(u,v)-D_1}{D_0-D_1}&D_1\\leq D(u,v)\\leq D_0\\\\ \\\\ 0&D(u,v)D0​D1​≤D(u,v)≤D0​D(u,v)w2(24)H(u,v)=\\begin{cases}1&D(u,v) w_2\\end{cases}\\tag{24}H(u,v)=⎩⎨⎧​101​D(u,v)w2​​(24)","s":"带通和带阻滤波","u":"/docs/Curriculum/数字图像处理/Note","h":"#带通和带阻滤波","p":207},{"i":244,"t":"伪彩色图像的增强一般用于B超、石油开采以及安检方面。","s":"伪彩色图像的处理","u":"/docs/Curriculum/数字图像处理/Note","h":"#伪彩色图像的处理","p":207},{"i":248,"t":"退化原因​ 成像系统镜头聚焦不准产生的散焦 相机与景物之间的相对运动 成像系统存在的各种非线性因素以及系统本身的性能 模拟图像在数字化过程中,因数字化的精度和误差而损失图像细节 成像系统中存在的各种随机噪声 复原机理​ 图像复原的过程一般是沿着图像退化的逆向过程进行的。首先根据先验知识分析退化原因,了解图像变质的原理,在此基础上建立图像的退化模型,然后以图像退化的逆过程对图像进行处理。 图像复原与图像增强的区别和联系​ 联系:二者从表面上看都是为了提高图像的质量。 区别:二者在目的和过程上都有明显的区别。 在目的上,图像增强是为了提高图像的视感质量,增强后的图像可能损失一些信息,并与原始图像有一定的差异;而图像复原是为了使待复原的图像与原始图像尽可能的接近。 在过程上。图像增强一般不考虑图像退化的真实过程,而是使用特定技术来突出和强调图像中所关注的特征;而图像复原是直接针对图像产生退化的原因建立相应的数学模型,并沿着退化的逆向进行复原。","s":"图像退化机理","u":"/docs/Curriculum/数字图像处理/Note","h":"#图像退化机理","p":207},{"i":250,"t":"图像f(x,y)f(x,y)f(x,y)经过退化系统H(x,y)H(x,y)H(x,y)后再与噪声n(x,y)n(x,y)n(x,y)叠加,得到最后退化的图像g(x,y)g(x,y)g(x,y)。 退化系统的一般特性: 线性特性。 空间位置不变性:经过退化系统后的输出只有输入有关,而与输入在图像中的位置无关。","s":"图像退化模型","u":"/docs/Curriculum/数字图像处理/Note","h":"#图像退化模型","p":207},{"i":253,"t":"最佳阈值法​ 假设图像由物体和背景两部分组成,且物体像素的分布和背景像素的分布均符合正态分布,物体像素的正态分布概率密度函数的均值为μ\\muμ,背景像素的正态分布概率密度函数的均值为ν\\nuν,则最佳阈值法确定的阈值为 t=μ+ν2(25)t=\\frac{\\mu +\\nu}{2}\\tag{25}t=2μ+ν​(25) 判别分析法​ 通过计算灰度直方图的0阶矩和1阶矩最大化类间方差从而得到最佳阈值。","s":"阈值分割法","u":"/docs/Curriculum/数字图像处理/Note","h":"#阈值分割法","p":207},{"i":255,"t":"什么是图像的边缘? 图像中结构具有突变的地方,表明一个区域的终结,也是另一个区域的开始,这种不连续性称为边缘。 边缘信号的类型? 阶跃型,但实际情况中不可能有完全理想的突变。突变处为边缘点。 渐变型,逐渐增大或逐渐减小。渐变的中间位置为边缘点。 台阶型。台阶的中间为边缘点或认为台阶两侧为两个边缘点。","s":"边缘检测的基本原理","u":"/docs/Curriculum/数字图像处理/Note","h":"#边缘检测的基本原理","p":207},{"i":257,"t":"Robert算子​ 一阶导数算子。 利用局部差分方法,采用对角线方向相邻两像素之差近似梯度幅值检测边缘。 对噪声敏感,不能抑制噪声。 Sobel算子​ 一阶导数算子。 先进行加权平均,然后进行微分运算。 对噪声具有一定的抑制能力。 Prewitt算子​ 一阶导数算子。 利用局部差分平均方法寻找边缘。两个模板一个检测水平边缘,一个检测竖直边缘。 对噪声具有一定的抑制能力。 Laplace算子​ 二阶导数算子。 使噪声成分得到加强,对噪声更敏感。 与Marr边缘检测算子一样,一般先进行低通滤波平滑后再进行二阶微分运算。 Canny边缘检测​ 使用高斯滤波平滑图像 计算梯度幅值和方向 NMS非极大值抑制,保留每个像素点上梯度强度的极大值,删掉其他值 使用双阈值方法确定强边界和弱边界 滞后边界跟踪","s":"边缘检测算子","u":"/docs/Curriculum/数字图像处理/Note","h":"#边缘检测算子","p":207},{"i":259,"t":"傅里叶频谱图的特征: 频率分布:傅里叶频谱图展示了图像在不同频率下的强度分布。高频部分对应图像中的边缘和细节,低频部分对应图像中的整体结构和大致轮廓。 能量分布:图像中不同频率的能量在频谱图中以不同强度的幅度呈现。高幅度的频率分量通常标示着图像中强烈的变化或边缘。 平移不变性:傅里叶变换具有平移不变性,这意味着在频域中图像的平移对应于幅度谱中相位的改变而不影响幅度谱本身。 如何在频域实现图像平滑 利用傅里叶变换将图像从空域转换为频域; 将频域图像进行中心偏移,使得低频信息在频谱中央; 利用滤波函数生成一个与图像大小相同的二维频域矩阵; 将图像的频域与滤波器的频域相应相乘; 将相乘后的频域再次逆平移到频域的原始位置; 将得到的频域进行逆傅里叶变换,得到滤波后的空域图像。 一阶边缘检测算子与Laplace算子的异同。 相同点:都可以检测边缘并且对噪声敏感 不同点:一阶边缘检测算子检测到的边缘都有明确的方向,而Laplace算子对各种方向的边缘都有较好的响应 已知一幅图像受到加性随机噪声污染,分析并写出三种去除或降低噪声的方法。 空域滤波(均值滤波、中值滤波),频域滤波(巴特沃斯低通滤波),图像恢复技术。 分析采样和量化的过程,以及它们对数字化图像质量的影响。 采样是把空间上连续的图像转换为离散的抽样点,即像素。量化将抽样后所得的连续的像素值离散化为整数值。 对数字化图像质量的影响: 采样间隔越大,所得图像像素数越少,图像空间分辨率越低,质量越差。反之图像质量好,但数据量大。 量化等级越多(灰度级数越多),所得图像层次越丰富,灰度分辨率越高,质量越好,但数据量大。反之,图像质量差,会出现假轮廓现象,但数据量小。 图像噪声的特点。 随机性 叠加性 噪声与图像之间具有相关性 什么是线性灰度拉伸?线性灰度拉伸可以分为几种情况? 线性灰度拉伸是将输入图像的灰度值的动态范围按线性关系拉伸扩展至指定范围或灰度的整个动态范围。 线性拉伸可分为按比例线性拉伸和分段线性拉伸两种方法。同时,按比例线性拉伸又可以分为均匀线性拉伸以及限幅线性拉伸。 伪彩色图像处理可以应用在哪些方面? B超 石油开采 安检","s":"课后习题中的问答题","u":"/docs/Curriculum/数字图像处理/Note","h":"#课后习题中的问答题","p":207},{"i":261,"t":"相关链接 论文:arXiv 参考资料: Transformer模型详解(图解最完整版) 【機器學習2021】Transformer (下) Transformer是Sequence-to-Sequence (Seq2Seq) 模型,模型的输入是向量序列,输出同样是向量序列,且输出的长度由模型经过学习决定。","s":"NeurIPS 2017: Attention Is All You Need","u":"/docs/Deep-Learning/大模型/Attention-Is-All-You-Need","h":"","p":260},{"i":263,"t":"Transformer由Encoder和Decoder组成,编码器和解码器都包含6个Block,整体结构如下图所示。","s":"整体结构","u":"/docs/Deep-Learning/大模型/Attention-Is-All-You-Need","h":"#整体结构","p":260},{"i":266,"t":"Transformer Encoder结构如下图所示。其中,Add指的是残差连接Residual Connection,Norm指的是Layer Normalization。","s":"整体结构","u":"/docs/Deep-Learning/大模型/Attention-Is-All-You-Need","h":"#整体结构-1","p":260},{"i":268,"t":"对于输入的句子,对一个词汇的嵌入向量的奇数维度使用sine函数进行编码,对偶数维度使用cosine函数计算编码。 公式如下所示,其中pospospos指的是该词汇在整个输入句子中的位置,2i2i2i以及2i+12i+12i+1指的是该词汇的嵌入向量中的维度,dmodeld_{model}dmodel​指的是在嵌入层之后嵌入向量的总维度。即对于每个输入词汇,都要计算dmodeld_{model}dmodel​次位置编码。 PE(pos,2i)=sin(pos100002i/dmodel)(1)PE_{(pos,2i)}=sin(\\frac{pos}{10000^{2i/d_{\\mathrm{model}}}}) \\tag{1}PE(pos,2i)​=sin(100002i/dmodel​pos​)(1) PE(pos,2i+1)=cos(pos100002i/dmodel)(2)PE_{(pos,2i+1)}=cos(\\frac{pos}{10000^{2i/d_{\\mathrm{model}}}}) \\tag{2}PE(pos,2i+1)​=cos(100002i/dmodel​pos​)(2) 根据三角函数的性质,对于pos+kpos+kpos+k位置的嵌入向量的某一维度(2i2i2i或2i+12i+12i+1)而言,可以表示为pospospos位置与kkk位置的嵌入向量的2i2i2i与2i+12i+12i+1维度的线性组合,使得位置向量中蕴含了相对位置的信息。 PE(pos+k,2i)=PE(pos,2i)×PE(k,2i+1)+PE(pos,2i+1)×PE(k,2i)PE(pos+k,2i+1)=PE(pos,2i+1)×PE(k,2i+1)−PE(pos,2i)×PE(k,2i)(3)\\begin{array}{l}PE(pos+k,2i)=PE(pos,2i)\\times PE(k,2i+1)+PE(pos,2i+1)\\times PE(k,2i)\\\\PE(pos+k,2i+1)=PE(pos,2i+1)\\times PE(k,2i+1)-PE(pos,2i)\\times PE(k,2i)\\end{array} \\tag{3}PE(pos+k,2i)=PE(pos,2i)×PE(k,2i+1)+PE(pos,2i+1)×PE(k,2i)PE(pos+k,2i+1)=PE(pos,2i+1)×PE(k,2i+1)−PE(pos,2i)×PE(k,2i)​(3) 最终,位置编码向量的维度与词汇的嵌入维度相同,进行element-wise的相加操作。 InputEmbedding(pos,i)=WordEmbedding(pos,i)+PositionEncoding(pos,i)(4)InputEmbedding(pos,i)=WordEmbedding(pos,i)+PositionEncoding(pos,i) \\tag{4}InputEmbedding(pos,i)=WordEmbedding(pos,i)+PositionEncoding(pos,i)(4)","s":"位置编码(Positional Encoding)","u":"/docs/Deep-Learning/大模型/Attention-Is-All-You-Need","h":"#位置编码positional-encoding","p":260},{"i":270,"t":"输入向量由Word Embedding和Positional Embedding相加得到。输入序列经过Mutil-Head Self-Attention之后,通过Residual Connection加上自身的输入向量,再经过Layer Normalization,之后送入FCN并进行Residual Connection加上送入FCN的输入自身,最终再进行Layer Normalization,以上构成了一个Encoder Block。每一个Block输出的向量序列长度等于输入的向量序列长度。","s":"具体结构","u":"/docs/Deep-Learning/大模型/Attention-Is-All-You-Need","h":"#具体结构","p":260},{"i":272,"t":"Decoder的任务是生成输出,可以根据是否一次性生成输出分为Autoregressive(自回归,abbr. AT)以及Non-Autoregressive(非自回归,abbr. NAT)两种模式。 自回归类型的Decoder需要逐步生成输出,并将之前自身输出的所有词汇经过嵌入层后生成token作为下一次的输入,通常每次生成一个词或一个符号。这种方式的缺点是需要保存和更新词表中的所有可能选项,因此在大词汇表上可能会变得非常慢。然而,它的优点是能够利用上下文信息来生成输出,这有助于提高翻译的质量。 非自回归类型的Decoder试图在一次操作中生成整个输出序列。这通常通过使用诸如注意力机制等策略来实现,这些策略允许解码器关注输入序列的不同部分,同时生成输出序列的不同部分。NAT的优点在于其高效性,因为它不需要保存和更新大量的可能选项。然而,由于它不能利用上下文信息来生成输出,因此其生成的输出质量普遍会低于AT。","s":"Decoder","u":"/docs/Deep-Learning/大模型/Attention-Is-All-You-Need","h":"#decoder","p":260},{"i":274,"t":"整体结构​ 词汇表(Vocabulary)​ 词汇表(Vocabulary)是一个包含了在特定语言或任务中所有可能出现的所有单词或标记的集合。在自然语言处理(NLP)中,词汇表是训练模型时所使用的唯一单词的集合,由具体的生成任务而确定。 Decoder每一步的输出是一个经过Softmax的Probability Distribution(概率分布),代表着词汇表中每一个词汇当前生成的概率,取最大概率值的词汇便是模型当前时间步输出的词汇。 Begin符号​ 解码器(Decoder)在每个时间步(或每个解码步骤)的输入都来自于前一个时间步自身的输出以及编码器(Encoder)的输出。特别地,首个时间步的输入是Begin符号以及编码器(Encoder)的输出,在每个后续的时间步,解码器的输入会是前一个时间步自身的输出以及编码器(Encoder)的输出,直到生成序列的结束。 特殊符号 Begin符号是在Lexicon中添加的特殊符号,用来表示Decoder生成的开始。Begin符号通常被嵌入到一个低维的连续向量空间中,这个向量空间是通过嵌入层(Embedding Layer)学习得到的,在嵌入层中,离散的符号被映射到一个实数向量。 Begin符号又叫Start符号或SOS符号(Start Of Sentence),都是表示生成的开始。End符号又叫EOS符号(End Of Sentence)。 End符号​ 在Decoder的生成中,每一个时间步的输出是词汇表中每一个单词经过Softmax之后的概率分布。为了保证生成任务可以通过模型自己停止而不是一直重复,我们向Decoder的输出中加入End符号的生成,即每一次输出除了词汇表的所有词汇外还有End符号的概率,当End符号是在所有词汇中概率最大的词汇时,生成停止。 掩码多头自注意力机制(Masked Multi-Head Self-Attention)​ 为什么使用掩码多头自注意力 掩码多头自注意力与Transformer训练时采取的Teacher Forcing策略有很大的关系,具体分析见下文《Teacher Forcing与Masked Multi-Head Self-Attention》的讨论环节:Teacher Forcing与Masked Multi-Head Self-Attention 观察Decoder的整体结构,掩码多头自注意力的输入是添加位置编码之后的Decoder当前时间步之前的所有输出单词经过嵌入后的向量表示。 掩码多头自注意力机制用于确保在生成序列的过程中,每个位置只能关注到该位置及其之前的位置。这是通过在Self-Attention的计算中应用一个掩码(mask)来实现的。这确保了在生成序列时,每个位置只能查看到它之前的信息,而不能查看到未来的信息,从而实现了自回归性质。 具体来说,添加掩码后的自注意力机制在生成注意力分数时不再考虑输入序列的所有向量。如在输入向量aia^iai在计算注意力分数时,只将aia^iai的query向量与a1a^1a1至aia^{i}ai的iii个key向量做dot product,而不考虑aia^iai之后的输入的key。 提示 对于第sss个时间步,Masked Mutil-Head Self-Attention的输入是时间步sss之前Decoder生成的所有输出单词的嵌入表示。 交叉注意力(Cross-Attention)​ 交叉注意力是连接Encoder和Decoder的桥梁,也是Decoder输入的重要组成部分。 交叉注意力接收两个输入序列,一个来自编码器(Encoder)的输出序列(通常是输入序列的表示),另一个来自解码器(Decoder),是经过掩码多头自注意力机制的输出序列(通常是正在生成的序列的中间表示)。 在交叉注意力中,每次计算注意力得分的query来自解码器,key和value来自编码器。解码器每个向量的查询(Query)与编码器位置的键(Key)进行点积得到了注意力分数,通过Softmax操作后转换为注意力权重,再与编码器位置的值(Value)weighted sum得到加权注意力分数,最终将加权注意力分数求和得到每个输入向量的输出。","s":"Autoregressive Decoder(AT)","u":"/docs/Deep-Learning/大模型/Attention-Is-All-You-Need","h":"#autoregressive-decoderat","p":260},{"i":278,"t":"在 Transformer 中,Encoder 不像 Decoder 需要生成序列,因此它通常不涉及标签的预测。Encoder 的训练通常是在整个模型中的联合训练中进行的,通过优化整个模型的损失函数来进行。 Transformer 的整体训练过程一般分为以下几个步骤: 编码器(Encoder)的正向传播: 输入序列经过编码器的正向传播,产生一组上下文表示。 解码器(Decoder)的正向传播: 解码器接收上下文表示,并生成目标序列。 计算损失: 通过比较生成的目标序列与实际目标序列,计算损失。在 Decoder 中,通常使用交叉熵损失函数。 反向传播: 根据损失,进行反向传播,更新模型参数。这个过程中,梯度通过整个模型传播,包括 Encoder 和 Decoder。 整个模型的参数(包括 Encoder 和 Decoder)都是通过最小化整体损失来进行联合训练的。这是因为整体模型需要协同工作,Encoder 的表示对于 Decoder 的性能至关重要。在训练过程中,梯度从损失函数传播回整个模型,包括 Encoder 和 Decoder,从而更新它们的参数。 需要注意的是,Transformer 模型通常使用的是端到端的训练方式,整个模型的参数是一次性更新的。在某些场景下,你可能会看到对 Encoder 或 Decoder 进行微调(fine-tuning)的情况,但这是在特定应用场景下的调整,不是 Transformer 模型的标准训练方式。","s":"损失函数","u":"/docs/Deep-Learning/大模型/Attention-Is-All-You-Need","h":"#损失函数","p":260},{"i":280,"t":"在Transformer的推理阶段,自回归类型的Decoder根据分词方式的不同,一个词汇一个词汇的输出,将当前时间步之前生成的所有词汇作为输入load进入Decoder中。但在训练时如果遵从同样的生成范式会大大降低效率,并且面临则一步错步步错的风险(Error Propagation)。 因此使用Teacher Forcing策略,将Ground Truth一次性喂到Decoder中,使模型更快收敛并且避免误差积累的问题。 但是,自回归Decoder在推理时是一个一个词汇产生的,在产生第iii个词汇时其后续的词汇是未知的,更不用说进行注意力分数的就算了,而在训练过程中使用Teacher Forcing时却可以得到第i+1i+1i+1个及其之后词汇的注意力信息,如果不添加其他策略显然会对模型的泛化能力造成很大的影响,而且这并不符合自回归(Autoregression)的特性。为了解决这个问题,掩码多头注意力机制应运而生,在训练阶段将模型在时间发展顺序的右侧的输入masked掉,防止模型学习到不该学习的注意力。","s":"Teacher Forcing","u":"/docs/Deep-Learning/大模型/Attention-Is-All-You-Need","h":"#teacher-forcing","p":260},{"i":282,"t":"参考文献:MultiHead-Attention和Masked-Attention的机制和原理 与Encoder的多头自注意力不同,在Decoder中,为注意力机制应用了掩码,使模型只能关注到当前位置及其之前的位置,而不能访问未来的信息。这解决了引入Teacher Forcing出现的问题,避免了训练与推理阶段的Mismatch,维护了自回归的特性。 具体来说,模拟推理过程中第一个词汇时的场景。当模型只有voc1voc_1voc1​词汇向量输入时,在Decoder中,voc1voc_1voc1​与自身计算注意力分数,于是有 [o1]=[α1,1′][v1](5)\\begin{bmatrix}o_1\\end{bmatrix}=\\begin{bmatrix}\\alpha_{1,1}^{\\prime}\\end{bmatrix}\\begin{bmatrix}v_1\\end{bmatrix}\\tag{5}[o1​​]=[α1,1′​​][v1​​](5) 我们再模拟训练过程中使用Teacher Forcing,一次性输入为两个词汇voc1voc_1voc1​与voc2voc_2voc2​的情况,于是有 [o1o2]=[α1,1′α2,1′α1,2′α2,2′][v1v2](6)\\begin{bmatrix}o_1\\\\o_2\\end{bmatrix}=\\begin{bmatrix}\\alpha_{1,1}^{\\prime}&\\alpha_{2,1}^{\\prime}\\\\\\alpha_{1,2}^{\\prime}&\\alpha_{2,2}^{\\prime}\\end{bmatrix}\\begin{bmatrix}v_1\\\\v_2\\end{bmatrix} \\tag{6}[o1​o2​​]=[α1,1′​α1,2′​​α2,1′​α2,2′​​][v1​v2​​](6) 然而,为了使训练过程中符合推理时自回归的特性,理想的输出应该是 [o1o2]=[α1,1′0α1,2′α2,2′][v1v2](7)\\begin{bmatrix}o_1\\\\o_2\\end{bmatrix}=\\begin{bmatrix}\\alpha_{1,1}^{\\prime}&0\\\\\\alpha_{1,2}^{\\prime}&\\alpha_{2,2}^{\\prime}\\end{bmatrix}\\begin{bmatrix}v_1\\\\v_2\\end{bmatrix} \\tag{7}[o1​o2​​]=[α1,1′​α1,2′​​0α2,2′​​][v1​v2​​](7) 继续扩展,当有nnn个输入词汇时,应该有 [o1o2⋮on]=[α1,1′0⋯0α1,2′α2′⋯0⋮⋮⋮α1,n′α2,n′⋯αn,n′][v1v2⋮vn](8)\\begin{bmatrix}o_1\\\\o_2\\\\\\vdots\\\\o_n\\end{bmatrix}=\\begin{bmatrix}\\alpha'_{1,1}&0&\\cdots&0\\\\\\alpha'_{1,2}&\\alpha'_2&\\cdots&0\\\\\\vdots&\\vdots&&\\vdots\\\\\\alpha'_{1,n}&\\alpha'_{2,n}&\\cdots&\\alpha'_{n,n}\\end{bmatrix}\\begin{bmatrix}v_1\\\\v_2\\\\\\vdots\\\\v_n\\end{bmatrix}\\tag{8}⎣⎡​o1​o2​⋮on​​⎦⎤​=⎣⎡​α1,1′​α1,2′​⋮α1,n′​​0α2′​⋮α2,n′​​⋯⋯⋯​00⋮αn,n′​​⎦⎤​⎣⎡​v1​v2​⋮vn​​⎦⎤​(8) 因此,我们需要将当前时间步计算的词汇的时间顺序右侧的输入词汇全部掩码,置为0。 在源码中,有如下片段实现掩码: if mask is not None: scores = scores.masked_fill(mask == 0, -1e9) p_attn = scores.softmax(dim=-1) 在源码中,将mask置为负无穷是因为这是在经过Softmax之前进行的掩码,在经过Softmax之后负无穷小就变成了0。","s":"Teacher Forcing与Masked Multi-Head Self-Attention","u":"/docs/Deep-Learning/大模型/Attention-Is-All-You-Need","h":"#teacher-forcing与masked-multi-head-self-attention","p":260},{"i":284,"t":"正确发音 How to pronounce Adversarial? /ˌædvərˈseriəl/","s":"生成式对抗网络(GAN)","u":"/docs/Deep-Learning/大模型/GAN","h":"","p":283},{"i":287,"t":"生成器(Generator)通常接收一个来自潜在空间(latent space)的随机向量作为输入。这个潜在空间通常是一个随机分布,比如均匀分布或正态分布。生成器的任务是将这个随机向量映射成与训练数据相似的样本。","s":"将随机分布作为输入","u":"/docs/Deep-Learning/大模型/GAN","h":"#将随机分布作为输入","p":283},{"i":289,"t":"当需要解决的任务需要富有“创造力”时,即根据不同的输入,可以产生多个不一样且正确的输出时。这样的设计使得生成器能够生成多样性的样本,因为每个不同的随机向量都可能导致生成器输出不同的样本。在训练过程中,通过不断调整生成器的参数,使得生成器的输出在数据分布中更难以被判别器区分。","s":"为什么要添加分布","u":"/docs/Deep-Learning/大模型/GAN","h":"#为什么要添加分布","p":283},{"i":291,"t":"GAN的工作原理: 生成器生成数据: 生成器从潜在空间中采样并生成一些数据。 真实数据与生成数据进入判别器: 真实数据和生成器生成的数据一起输入判别器。 判别器训练: 判别器被训练来正确分类真实数据和生成数据。 生成器训练: 生成器被训练来生成能够欺骗判别器的数据。生成器的目标是生成足够逼真的数据,以至于判别器无法准确区分真假。 迭代: 生成器和判别器交替训练,迭代进行,直到生成器生成的数据足够逼真。 训练的目标: 生成器目标: 生成更逼真的数据,以欺骗判别器。 判别器目标: 区分真实数据和生成数据,提高对真实数据的分类准确性。 GAN的训练是一个博弈过程,生成器和判别器相互竞争,最终达到平衡,生成器生成的数据足够逼真,判别器也无法准确判别真伪。这种模型在图像生成、风格转换等任务中取得了显著的成功。","s":"核心思想","u":"/docs/Deep-Learning/大模型/GAN","h":"#核心思想","p":283},{"i":293,"t":"GAN(Generative Adversarial Network,生成对抗网络)包括两个主要的组件:生成器(Generator)和判别器(Discriminator)。这两个组件通过对抗训练的方式一起学习。 生成器(Generator): 它负责生成与训练数据相似的新样本。生成器接收来自潜在空间(latent space)的随机向量作为输入,并输出一个与训练数据类似的样本。生成器的目标是欺骗判别器,使其无法区分生成的样本和真实的训练数据。 判别器(Discriminator): 它负责判别输入的样本是真实的训练数据还是生成器生成的假样本。判别器的目标是尽可能准确地分类输入的样本。 GAN的核心思想是通过对抗过程训练生成器和判别器,不断提高它们的性能。生成器试图生成逼真的样本,而判别器试图正确地区分真实样本和生成样本。这个对抗的训练过程可以被视为在两个分布之间进行的最优控制。","s":"具体结构与作用","u":"/docs/Deep-Learning/大模型/GAN","h":"#具体结构与作用","p":283},{"i":295,"t":"结构: 生成器是一个神经网络,通常是一个反卷积神经网络(Generator Network),其输入通常是一个随机噪声(潜在空间中的点),输出是与训练数据相似的图像或数据。 作用: 生成器的目标是学习生成与真实数据相似的数据。通过迭代训练,生成器的参数被调整,使其生成的数据能够愈发逼真。 Unconditional Generation​ Unconditional generation(无条件生成)指的是在生成模型中生成样本时,不受任何条件的约束。在这种情况下,生成器仅根据其学到的分布生成数据,而无需关注特定的输入条件或上下文。 对于生成对抗网络(GAN)或变分自动编码器(VAE)等生成模型,unconditional generation通常表现为从潜在空间中采样,然后将这些样本输入生成器,以生成新的、与训练数据相似的样本。这种生成方式是随机的,因为每次从潜在空间中采样都会导致生成不同的样本。 Conditional Generation​","s":"生成器(Generator)","u":"/docs/Deep-Learning/大模型/GAN","h":"#生成器generator","p":283},{"i":297,"t":"结构: 判别器是一个二元分类器,通常是一个卷积神经网络(Discriminator Network)。它的输入可以是真实数据或生成器生成的数据,输出是一个概率,表示输入数据是真实数据的概率。 作用: 判别器的目标是学习区分真实数据和生成器生成的数据。它被训练成对真实数据给出高概率,对生成的数据给出低概率。","s":"判别器(Discriminator)","u":"/docs/Deep-Learning/大模型/GAN","h":"#判别器discriminator","p":283},{"i":299,"t":"首先随机初始化生成器和判别器,接下来在每一轮训练中重复以下策略。 第一步,在生成器通过随机噪声神生成样本后,固定生成器的参数,将生成器产生的输出与训练资料中的标签作为判别器的输入,判别器为每个输入样本打分,代表其为真实样本的概率。 为了最小化损失函数使得判别器为真实样本赋分更高,为生成样本赋分更低,设计以下损失函数: Lossreal=−Ex∼pdata(x)[log⁡D(x)](1)Loss_{real}=-E_{x\\sim p_\\text{data}{(x)}}[\\log D(x)]\\tag{1}Lossreal​=−Ex∼pdata​(x)​[logD(x)](1) 其中,D(x)D(x)D(x)是判别器的输出,xxx是真实样本,EEE是数学期望。 Lossfake=−Ez∼pz(z)[log(1−D(G(z)))](2)Loss_{fake}=-E_{z\\sim p_z(z)}[log(1-D(G(z)))]\\tag{2}Lossfake​=−Ez∼pz​(z)​[log(1−D(G(z)))](2) 其中,G(z)G(z)G(z)是生成器的输出,zzz是随机噪声,EEE是数学期望。 将真实样本和生成样本的损失相加,形成判别器的总体损失。 Lossdiscriminator=Lossreal+Lossfake(3)Loss_{discriminator}=Loss_{real}+Loss_{fake}\\tag{3}Lossdiscriminator​=Lossreal​+Lossfake​(3) 最小化损失函数,更新判别器的参数。 第二步,在判别器参数更新后,固定判别器的参数,随机分布的向量再次输入至生成器中,得到生成样本,此时生成样本被送入参数固定的判别器中得到生成样本属于真实样本的概率。在生成器的训练过程中,我们的目的是让生成器生成的样本尽可能的接近真实样本。 LG=−Ez∼pz(z)[log⁡D(G(z))](4)L_G=-E_{z\\sim p_z(z)}[\\log D(G(z))]\\tag{4}LG​=−Ez∼pz​(z)​[logD(G(z))](4) 其中,G(z)G(z)G(z)是生成器的输出,D(G(z))D(G(z))D(G(z))是生成样本输入到判别器后的输出,zzz是随机噪声,EEE是数学期望。","s":"训练算法","u":"/docs/Deep-Learning/大模型/GAN","h":"#训练算法","p":283},{"i":301,"t":"本篇论文主要基于 IPL 的思想实现。本仓库大部分从 IPL-Zero-Shot-Generative-Model-Adaptation fork 而来并做出了一定修改。","s":"本科毕业论文:基于 Prompt Learning 的视觉-语言大模型在图像生成中的应用与研究","u":"/docs/Deep-Learning/大模型/Prompt Learning/Undergraduate-Dissertation","h":"","p":300},{"i":304,"t":"conda create -n ipl python=3.8 conda activate ipl","s":"创建 Anaconda 虚拟环境","u":"/docs/Deep-Learning/大模型/Prompt Learning/Undergraduate-Dissertation","h":"#创建-anaconda-虚拟环境","p":300},{"i":306,"t":"请确保 NVIDIA 驱动、CUDA 以及 PyTorch 之间版本互相匹配。 conda install pytorch torchvision torchaudio pytorch-cuda=11.8 -c pytorch -c nvidia pip install ftfy regex tqdm ninja pip install git+https://github.com/openai/CLIP.git","s":"安装依赖","u":"/docs/Deep-Learning/大模型/Prompt Learning/Undergraduate-Dissertation","h":"#安装依赖","p":300},{"i":308,"t":"预训练的源域生成器可以通过 Google Drive 或者 Tsinghua Cloud 下载,并将其置于 ./pre_stylegan 文件夹中。","s":"下载预训练生成器","u":"/docs/Deep-Learning/大模型/Prompt Learning/Undergraduate-Dissertation","h":"#下载预训练生成器","p":300},{"i":312,"t":"ctx_init 参数用于初始化 prompts,官方提供的演示 context 是a photo of a。 source_prompts = [prompt_prefix + \" \" + args.source_class] target_prompts = [prompt_prefix + \" \" + args.target_class] 源域的初始提示词 source_prompts 是 ctx_init 与源域标签的组合。若源域标签为 photo,则源域的初始提示词是 a photo of a photo。目标域的初始提示词同理。","s":"prompts 的初始化","u":"/docs/Deep-Learning/大模型/Prompt Learning/Undergraduate-Dissertation","h":"#prompts-的初始化","p":300},{"i":314,"t":"源域以及目标域的初始提示词接下来会进行 tokenize: source_tokenized_prompts = torch.cat([clip.tokenize(p) for p in source_prompts]).to(device) # (1, 77) 'sot a photo of a photo eot' 在经过tokenize后为tensor [[49406, 320, 1125, 539, 320, 1125, 49407, etc]] # 77是CLIP在tokenize方法中缺省的context_length,超过context_length将被truncate,不足的将用0补齐 target_tokenized_prompts = torch.cat([clip.tokenize(p) for p in target_prompts]).to(device) # (1, 77) 'sot a photo of a disney' 在经过tokenize后为tensor [[49406, 320, 1125, 539, 320, 4696, 49407, etc]] # 77是CLIP在tokenize方法中缺省的context_length,超过context_length将被truncate,不足的将用0补齐 tokenize 是 CLIP 对送入的 prompt 字符串进行标记化处理,在头部和尾部添加 startoftext 以及 endoftext 标记,最终为两个首尾标记和全部单词生成 int 标记。其中 CLIP 模型缺省的 context_length 是77,若 prompt 大于 77 会进行截断(truncate),若小于 77 会进行补零,因此 source_tokenized_prompts 与 target_tokenized_prompts 的形状均为 (1, 77)。 在提示词标记化之后,将进行嵌入表示 embedding: source_embedding = clip_model.token_embedding(source_tokenized_prompts).type(clip_model.dtype) # (1, 77, 512) 其中512是CLIP中的n_dim,token_embedding层的词嵌入的维度 target_embedding = clip_model.token_embedding(target_tokenized_prompts).type(clip_model.dtype) # (1, 77, 512) 其中512是CLIP中的n_dim,token_embedding层的词嵌入的维度","s":"prompts 的 tokenize 与 embedding","u":"/docs/Deep-Learning/大模型/Prompt Learning/Undergraduate-Dissertation","h":"#prompts-的-tokenize-与-embedding","p":300},{"i":316,"t":"在 Mapper 生成 prompts 后进行 prompts 的特征提取时,需要传入 tokenize 之后的人工初始化 prompt(‘a photo of a photo.’或‘a photo of a disney.’),用于选择 eot 符号对应的维度来进行特征投影(因为 eot 作为整个句子的结尾,被认为该维度包含更多的信息。具体做法:由于在 tokenize 之后,eot 符号对应的维度的值最大,因此可使用 argmax 来定位),以保证最后得到的特征形状与图像特征提取的输出形状相同,使得后续可以进行对比学习的损失计算。","s":"compute_text_features 的实现细节","u":"/docs/Deep-Learning/大模型/Prompt Learning/Undergraduate-Dissertation","h":"#compute_text_features-的实现细节","p":300},{"i":318,"t":"Z空间与W空间​ # Z空间到W空间的变换 sample_z = mixing_noise(args.batch_mapper, 512, args.mixing, device) # (batch_size, 512) sample_w = net.generator_frozen.style(sample_z) # (batch_size, 512) Z 空间和 W 空间是 StyleGAN 模型中两种不同的隐变量空间,分别用于控制生成图像的随机特征和样式信息。W 空间通过对 Z 空间的映射得到。 Z 空间(Latent Space Z): Z 空间是随机噪声空间,通常由随机噪声向量组成,表示了图像的随机特征。 在 StyleGAN 中,Z 空间的维度通常为 512 维。这意味着一个 Z 向量由 512 个数字组成,每个数字表示了图像的一个随机特征的强度或者方向。 W 空间(Style Space W): W 空间经过特征解耦的隐空间,与 Z 空间相比更加解耦合。 在 StyleGAN 中,W 空间的维度也通常为 512 维,是通过mapping network进行映射得到的,mapping network由PixelNorm层与EqualLinear层构成。以下代码节选自sg2_model.py '''mapping network''' layers = [PixelNorm()] for i in range(n_mlp): layers.append( EqualLinear( style_dim, style_dim, lr_mul=lr_mlp, activation=\"fused_lrelu\" ) ) self.style = nn.Sequential(*layers) Z 空间与 W 空间的关系: 在 StyleGAN 中,通常会先将一个 Z 向量映射到 W 空间,然后再将 W 向量输入到生成器网络中生成图像。 Z 空间提供了初始随机噪声,而 W 空间则通过特征解耦提供更多控制图像风格的灵活性。通过对 Z 和 W 之间的映射以及 W 在生成器中的应用,StyleGan 实现了高度可控且具有良好生成效果的图像合成。 损失函数​ 在代码中,stage 1 的损失函数是 global_clip_loss,该损失由三部分组成: 对比学习损失:Mapper 生成的源域 prompts 的特征(注意,这里的 prompts 特征是与人工初始化的 prompts 的特征做过 element-wise 相加后的特征)与源域图像特征的余弦相似度组成的对比学习损失; 目标域正则化损失:Mapper 生成的目标域 prompts 的特征与目标域文本标签特征的余弦相似度,这里生成的目标域 prompts 特征同样也是与人工初始化的 prompts 做过加法的。注意该损失有权重 lambda_l。 源域正则化:计算生成的源域prompts与源域标签之间的余弦相似度,由 lambda_src 控制,默认是 0。","s":"训练 stage 1","u":"/docs/Deep-Learning/大模型/Prompt Learning/Undergraduate-Dissertation","h":"#训练-stage-1","p":300},{"i":320,"t":"确定目标域生成域需要更新的层​ 在训练的第二阶段进行前向传播时,需要先对目标域生成器(generator_trainable)的所有层进行 unfreeze,然后对更新哪些层做出选择,承担选择任务的功能函数:model.ZSSGAN.ZSSGAN.determine_opt_layers,最后 freeze 所有层后再 unfreeze 选择的网络层。 if self.training and self.auto_layer_iters > 0: self.generator_trainable.unfreeze_layers() # unfreeze train_layers = self.determine_opt_layers() # layer to train if not isinstance(train_layers, list): train_layers = [train_layers] self.generator_trainable.freeze_layers() self.generator_trainable.unfreeze_layers(train_layers) # unfreeze 具体选择带更新网络层的策略: 将 W 空间的隐向量送入目标域生成器(SG2Generator)中,并进行反向传播,此时可以通过反向传播后 W 空间隐向量不同维度的更新幅度来衡量不同网络层的影响力,因此选出更新幅度最大的维度就可以确定在 Model Adaption 中需要更新的网络层。 之所以 W 空间编码在 n_latent 维度上的序号就代表着对应的网络层数的序号,是因为 StyleGAN 生成器的结构决定了这一点:StyleGAN 生成器中,W 空间编码的不同维度会被送入生成器网络的不同层,控制这些层的特征映射 (feature mapping)。具体来说,W 空间编码的每个维度会被重复 n_latent 次,作为该层的风格向量 (style vector),通过 AdaIN (Adaptive Instance Normalization) 层控制该层的特征映射。因此,W 空间编码的第 i 个维度会影响生成器网络中第 i 层的特征映射。当某个维度的 W 值被更新的程度较大时,就意味着该维度对应的层在生成目标图像时起到了重要作用,需要被优化。 损失函数​ stage 2 的损失函数是 CLIP Loss 类中的 clip_directional_loss,该损失函数由两部分组成: edit_direciton:源域生成器与目标域生成器生成的图片在经过 image encdoer 后做 element-wise 的相减,最后除以自身的 L2 Norm 方便后续与 target_direction 计算余弦相似度 target_direction:Mapper 产生的源域和目标域 prompts 的 text_features 做element-wise相减后,最后初一自身的 L2 Norm 以便后续与 edit_direction 计算余弦相似度","s":"训练 stage 2","u":"/docs/Deep-Learning/大模型/Prompt Learning/Undergraduate-Dissertation","h":"#训练-stage-2","p":300},{"i":322,"t":"参考文献:GAN 的几种评价指标 Inception Score(IS) 评估图像的质量和多样性 质量:把生成的图片 xxx 输入 Inception V3 中,得到输出 1000 维的向量 yyy,向量的每个维度的值对应图片属于某类的概率。对于一个清晰的图片,它属于某一类的概率应该非常大,而属于其它类的概率应该很小。用专业术语说, p(y∣x)p(y|x)p(y∣x)​ 的熵应该很小(熵代表混乱度,均匀分布的混乱度最大,熵最大)。 多样性: 如果一个模型能生成足够多样的图片,那么它生成的图片在各个类别中的分布应该是平均的,假设生成了 10000 张图片,那么最理想的情况是,1000 类中每类生成了 10 张。转换成术语,就是生成图片在所有类别概率的边缘分布 p(y)p(y)p(y)​ 熵很大(均匀分布)。 因此,对于 IS 我们需要求的两个量就是 p(y∣x)p(y|x)p(y∣x) 和 p(y)p(y)p(y)。实际中,选取大量生成样本,用经验分布模拟 p(y)p(y)p(y): p^(y)=1N∑i=1Np(y∣x(i))\\hat{p}(y)=\\frac{1}{N}\\sum_{i=1}^{N}p(y|\\mathbf{x}^{(i)})p^​(y)=N1​i=1∑N​p(y∣x(i)) Inception Score 的完整公式如下: IS(G)=exp⁡(Ex∼pgDKL(p(y∣x)∣∣p(y)))\\mathbf{IS}(G)=\\exp\\left(\\mathbb{E}_{\\mathbf{x}\\sim p_g}D_{KL}\\left(p(y|\\mathbf{x})||p(y)\\right)\\right)IS(G)=exp(Ex∼pg​​DKL​(p(y∣x)∣∣p(y))) 通常计算 Inception Score 时,会生成 50000 个图片,然后把它分成 10 份,每份 5000 个,分别代入公式计算 10 次 Inception Score,再计算均值和方差,作为最终的衡量指标(均值±方差)。但是 5000 个样本往往不足以得到准确的边缘分布 p(y)p(y)p(y)​,尤其是像 ImageNet 这种包含 1000 个类的数据集。 StyleGAN-nada 以及 IPL 在经过 batch_size 为 2,iteration 为 300 的训练后(其中 IPL 的 Mapper 是以 batch_size 为 32,iteration 为 300 进行训练的),二者的 IS 分别为 (2.2960, 0.2042) 以及 (2.6420, 0.1959)。 Fréchet Inception Distance(FID) 评估目标域的风格 计算 IS 时只考虑了生成样本,没有考虑真实数据,即 IS 无法反映真实数据和样本之间的距离,IS 判断数据真实性的依据,源于 Inception V3 的训练集 ImageNet,在 Inception V3 的“世界观”下,凡是不像 ImageNet 的数据,都是不真实的,都不能保证输出一个 sharp 的 predition distribution。因此,要想更好地评价生成网络,就要使用更加有效的方法计算真实分布与生成样本之间的距离。 FID 距离计算真实样本,生成样本在特征空间之间的距离。首先利用 Inception 网络来提取特征,然后使用高斯模型对特征空间进行建模,再去求解两个特征之间的距离,较低的 FID 意味着较高图片的质量和多样性。 StyleGAN-nada 以及 IPL 在经过 batch_size 为 2,iteration 为 300 的训练后(其中 IPL 的 Mapper 是以 batch_size 为 32,iteration 为 300 进行训练的),二者的 FID 分别为 84 以及 58。 Single Image Fréchet Inception Score(SIFID) FID 测量生成的图像的深层特征分布与真实图像的分布之间的偏差。在 ICCV 2019 Best Paper 中提出了 SIFID,只使用一张真实目标域的图像。与 FID 不同,SFID 不使用 Inception Network 中最后一个池化层之后的激活矢量(每个图像一个向量),而是在第二个池层之前的卷积层输出处使用深层特征的内部分布(feature map 中每个位置一个向量)。最终 SIFID 是真实图像和生成的样本中这些特征的统计数据之间的 FID。 Structural Consistency Score(SCS) 评估图像的结构保存能力 Identity Similarity(ID) 评估图像的特征保存能力","s":"定量分析指标","u":"/docs/Deep-Learning/大模型/Prompt Learning/Undergraduate-Dissertation","h":"#定量分析指标","p":300},{"i":325,"t":"新增了自定义图像风格迁移功能。 HyperStyle 中的 e4e encoder 将自定义的真实图像编码至 StyleGAN2 中的 W 空间生成 latent codes,再将其分别输入至源域生成器以及目标域生成器以代替原始的从正态分布中 sample 出的随机向量生成的 w_codes,从而得到相应的图片。其中 e4e encoder 来源于 HyperStyle 提供的预训练 checkpoint。 使用方法:运行 inference.py,设置对应的参数,如生成器以及 e4e encoder 的路径、图像路径等,最后运行即可。 修改日志​ 第一次尝试只加载了 w_encoder 类及其对应 checkpoint 参数,导致并未将真实图片编码到 StyleGAN 的 W 空间中,没有 inversion 出合理的结果 第二次尝试使用了 restyle_e4e_encoder,但是没有使用 dlib 进行 alignment,也没有使用 restyle 模型在反演时使用的多次进行前向传播来修正 latent code 的策略。此次尝试虽然反演出了合理的人像,但是人像的特征保存能力非常弱 第三次尝试解决了上一次发现的问题,加入 dlib 提供的 landmark 检测以实现 alignment,并且使用 run_loop 函数在 restyle_e4e_encoder 中进行多次前向传播以修正得到的 W 空间的 latent code,效果较好 对比 pSp 和 e4e encoder,pSp 对人脸图像的还原能力较强,但是会导致目标域图像具有随机的彩色光晕","s":"自定义图像风格迁移","u":"/docs/Deep-Learning/大模型/Prompt Learning/Undergraduate-Dissertation","h":"#自定义图像风格迁移","p":300},{"i":328,"t":"作用​ 人工设计的 prompts 在计算 text_features 时用于定位 eot 层符号所表示的维度来进行投影,但不参与 text_features 的实际计算 在训练 Mapper 的 stage 1 的损失函数中,在计算对比损失函数时,Mapper 学习到的 prompts 的文字特征特征会与人工设计的 prompts 的文字特征进行 element-wise 的相加,最后再与 源域生成器得到的图片的图像特征进行对比损失计算 思考​ IPL 方法对 Mapper 学习到的 prompts 除了(1)使用对比学习使 prompts 学习到源域图片的特征以及(2)使用域正则化使得 prompts 向目标域标签对齐之外,并没有使用其他与人工设计的 prompts 有关的正则化方式来约束 prompts 的学习,因此人工设计的 prompts 可能并没有起到太大的约束作用。 如果对比学习损失是为了让 Mapper 自监督学习到图片的特征外,那么是否可以对域正则化损失进行改进,约束学习到的 prompts 向人工设计的初始化 prompts 对齐,以实现类似于 Stable Diffusion 类似的 prompts 控制图像生成的效果。","s":"训练阶段人工 prompts 的作用是什么?","u":"/docs/Deep-Learning/大模型/Prompt Learning/Undergraduate-Dissertation","h":"#训练阶段人工-prompts-的作用是什么","p":300},{"i":330,"t":"Mapper 的作用是从 W 空间的隐式代码中学习出符合源域图片特征以及符合目标域文字特征的 prompts。 原始","s":"Mapper 结构的设计","u":"/docs/Deep-Learning/大模型/Prompt Learning/Undergraduate-Dissertation","h":"#mapper-结构的设计","p":300},{"i":333,"t":"在文字生成模型中根据模型的输入是否与前一时刻的输出有关可以分为自回归AR模型与非自回归NAR模型两种,这两种生成方式的利与弊在图像生成中仍然存在。","s":"回顾文字生成的两种方法","u":"/docs/Deep-Learning/大模型/Image-Generation-Models","h":"#回顾文字生成的两种方法","p":331},{"i":335,"t":"Transformer-based的文字生成模型有很多,如GPT模型,大多使用自回归(Autoregressive, abbr. AR)的方法逐token生成。 什么是ARM ARM(Autoregressive Model,自回归模型)是一类用于建模时间序列数据的统计模型,其中当前时刻的观测值被认为是过去时刻观测值的线性组合,加上一个随机误差项。这类模型的核心思想是,当前时刻的数据依赖于先前时刻的数据。 若把文字生成的AR方法对应到图像生成中的使用,即一个一个像素生成图像。由于当前对高清图像像素的需求越来越高,自回归的生成方式导致速度非常缓慢,但优点是后面生成的每一个像素都考虑了之前的所有像素,从而使生成的图像更清晰、更细腻、更加符合预期。","s":"自回归方法(AR)","u":"/docs/Deep-Learning/大模型/Image-Generation-Models","h":"#自回归方法ar","p":331},{"i":337,"t":"若使用NAR非自回归的方法一次生成所有像素,各像素在生成时无法考虑之间的语义信息,生成的图像质量普遍低于自回归方法生成的图像。","s":"非自回归方法(NAR)","u":"/docs/Deep-Learning/大模型/Image-Generation-Models","h":"#非自回归方法nar","p":331},{"i":339,"t":"VAE、GAN以及Diffusion Model等生成模型,都不只是单独使用文字作为输入来生成图像,而是使用了从已知的随机分布(e.g. Normal Distribution)中sample出向量作为模型额外输入的方法。 大致的思想如下图所示,由于期待生成的图像并不是固定的,可以将预期输出看作是一个分布,即P(x∣y)P(x|y)P(x∣y),而图像生成模型需要完成的任务就是将输入的从某一随机分布中sample出的向量对应到图像预期输出分布中的某一个图像。 信息 总结:由于根据文字prompt期待生成的图像并不是固定的,可以认为生成的图片在目标域(Target Domain)符合某种分布。因此目前的SOTA模型除了将文字Prompt作为输入,还从某随机分布中sample出图片shape的随机向量(矩阵)作为输入,期待模型根据prompt将源域(Source Domain)输入的随机向量映射到目标域的分布,生成对应的图片。","s":"目前图像生成模型的共同点","u":"/docs/Deep-Learning/大模型/Image-Generation-Models","h":"#目前图像生成模型的共同点","p":331},{"i":341,"t":"Stable Diffusion是目前图像生成的SOTA模型之一,在本章中我们快速的了解一下Stable Diffusion的大致框架以及原理。","s":"生成模型的共同结构","u":"/docs/Deep-Learning/大模型/Image-Generation-Models","h":"#生成模型的共同结构","p":331},{"i":343,"t":"目前,如Stable Diffusion等SOTA图像生成模型都具备以下所示的三个模块,通常情况下这三个模块分开训练,最终通过特殊的逻辑和规则组合在一起。 Text Encoder:根据输入的text prompt进行嵌入表示 Generation Model:接受Text Encoder输出的prompt表示以及从随机分布sample出的图像大小的向量,得到“中间产物”,中间产物有以下两种情况: 具有视觉意义但经过压缩比较模糊的图像 不具备视觉特征的矩阵(Latent Representation) Decoder:以上述的“中间产物”作为输入,生成出高清图像 通用框架的三个组成部分如下图所示: 再附上Stable Diffusion、DALL-E系列以及Google的Imagen的结构说明。 其中Imagen将压缩版本的图片作为Generation Model的中间产物,Stable Diffusion以及DALL-E将Latent Representation作为中间产物。 根据Imagen的实验结果,相对于Decoder即Diffusion Model的模型大小,Text Encoder的模型大小对图像生成模型的影响是非常大的。Text Encoder可以帮助模型理解prompt中在训练资料的文字-图像对中没有出现的新的词汇,从而提高图像生成的表现。 Scaling text encoder size is more important than U-Net size. While scaling the size of the diffusion model U-Net improves sample quality, we found scaling the text encoder size to be significantly more impactful than the U-Net size. Photorealistic Text-to-Image Diffusion Models with Deep Language Understanding","s":"通用框架概览","u":"/docs/Deep-Learning/大模型/Image-Generation-Models","h":"#通用框架概览","p":331},{"i":345,"t":"下面介绍两种用于评估图像生成模型的常用Benchmark:FID与CLIP Score。 FID(Fréchet Inception Distance)​ FID提供一个Pre-trained的CNN,该CNN通常使用预训练的Inception v3模型。在计算FID时,生成图像和真实图像分别输入到预训练的CNN中,提取出各自的特征表示向量(Representation)。这两个Representation越接近,代表输出的图像越像预期的“真实”图片。 在FID中,做出了如下重要的假设:将生成的图像真实的图像经过CNN输出的Representation看作是sample自两个高斯分布的随机变量。然后,通过计算两个特征向量的均值和协方差矩阵来得到两个高斯分布的参数。最后,利用两个高斯分布之间的Fréchet距离来衡量生成图像与真实图像之间的差异。 FID=∥μ1−μ2∥22+tr(Σ1+Σ2−2(Σ1Σ2)12)(1)\\mathrm{FID}=\\left\\|\\mu_1-\\mu_2\\right\\|_2^2+\\mathrm{tr}\\left(\\Sigma_1+\\Sigma_2-2\\left(\\Sigma_1\\Sigma_2\\right)^{\\frac12}\\right)\\tag{1}FID=∥μ1​−μ2​∥22​+tr(Σ1​+Σ2​−2(Σ1​Σ2​)21​)(1) 其中,μ1\\mu_1μ1​和μ2\\mu_2μ2​分别是第一个和第二个高斯分布的均值向量;Σ1\\Sigma_1Σ1​和Σ2\\Sigma_2Σ2​则是它们的协方差矩阵;tr(⋅)\\mathrm{tr}(\\cdot)tr(⋅)表示矩阵的迹运算。 高斯分布的均值向量从观测到的数据中计算出来的。对于一个nnn-维高斯分布,其均值向量可以表示为一个长度为nnn的列向量,其中的每一个元素都是一个特定维度的平均数,这可以通过在每个维度上进行简单的算术平均来完成。 值得注意的是,FID指标需要一定数量的生成图像和真实图像来进行统计估计。这是因为FID的计算是基于两个高斯分布之间的距离计算的,因此需要足够多的样本数量才能够获得较为准确的概率分布估计。 CLIP Score​ CLIP Score中的CLIP指的就是OpenAI的CLIP(Contrastive Language-Image Pre-Training)模型。 具体来说,CLIP Score的计算方式是将用于生成图像的文字prompt输入至CLIP的Text Encoder中得到一个Representation,再将对应prompt生成的图像输入至CLIP的Image Encoder中得到对应的Representation,计算二者之间的距离,即得到CLIP Score。分数越小,代表文字和图像更align。","s":"Benchmark","u":"/docs/Deep-Learning/大模型/Image-Generation-Models","h":"#benchmark","p":331},{"i":347,"t":"Generation Model​ Generation Model的生成过程其实就是Denoise的过程。具体来讲,输入文字Prompt以及从随机分布中sample出的与预期生成图像具有相同大小的噪声矩阵,预测出输入图片中的噪声分布,在输入图像中减去噪声,输出去噪后的图像。Generation Model的最终输出是中间产物,这个中间产物可以是图像的压缩版本,也可以是一个Latent Representation。因此,训练Generation Model其实就是训练一个Noise Predictor。 中间产物是压缩图像​ 当Generation Model的中间产物是压缩图像时,如Diffusion模型,在训练Generation Model时的训练资料可以通过对数据集中的原始图片添加与图像大小一致地从已知随机分布中sample出的噪声来获得。此时加入噪声后的图像可以作为压缩图像输入至Noise Predictor中,而需要预测出的噪声分布的Ground Truth就是sample出的噪声。 中间产物是Latent Representation​ 中间产物是Latent Representation时,同样采取从已知随机分布中sample出噪声再添加到网络的输入作为生成Ground Truth的策略,但是还额外需要一个Encoder来产生Latent Representation。 这里的Encoder使用数据集中的图片(即期待模型最终输出的图片)作为输入,输出该图片的某种Latent Representation,经过从随机分布中sample出的噪声的加入,输入至Noise Predictor中。从随机分布中sample出的噪声就是Noise Predictor的Ground Truth。 Decoder​ Generation Model的训练需要大量成对的(Pair)文字-图像资料。而对于Decoder来说,它的输入是中间产物(即Generation Model生成的压缩的图片或Latent Representation),输出的是还原出的高分辨率的图像,它的训练是不需要额外pair的文字-图像资料。 中间产物是压缩图像​ 当Generation Model的输出是压缩版本的图像时,Decoder的训练资料可以将从互联网上fetch到的图像作为label,并对这些图像做Down Sampling来获得压缩版本的图像作为Decoder训练时的输出。 中间产物是Latent Representation​ 当中间产物是Latent Representation时,需要训练一个Auto-Encoder,使用Encoder-Decoder的结构训练生成模型的Decoder。 具体来讲,向Encoder中输入数据集中的高清预期图片,Encoder将其转换为某种Latent Representation,Decoder再吃Encoder的输出,最终输出还原出的高清label图片,训练的方向是让输出的图片与输入的图片越接近越好。在这个过程中,不需要额外的标注,Auto-Encoder和生成模型的Decoder一起更新参数。","s":"通用框架解析","u":"/docs/Deep-Learning/大模型/Image-Generation-Models","h":"#通用框架解析","p":331},{"i":349,"t":"在这个模块大致介绍目前常见的几种图像生成模型,其中Diffusion Model以及GAN将在以后的文章中详细讲解。","s":"常见图像生成模型速览","u":"/docs/Deep-Learning/大模型/Image-Generation-Models","h":"#常见图像生成模型速览","p":331},{"i":351,"t":"变分自编码器(Variational Auto-Encoder, abbr. VAE)的训练策略是使用Encoder将输入图像对应(嵌入)到一个符合某随机分布的向量,再将该向量作为Decoder的输入,加上文字prompt后,期待模型产生合适的图像。 提示 VAE在训练过程中,期待Ecoder输入多张图片后,输出的向量在一起符合某个随机分布(e.g. Normal Distribution),并不是Encoder直接输出一个Distrubution。","s":"变分自编码器(VAE)","u":"/docs/Deep-Learning/大模型/Image-Generation-Models","h":"#变分自编码器vae","p":331},{"i":353,"t":"基于流的生成模型采用特殊的网络结构的设计,将Encoder设计为可逆的(invertible),在训练阶段喂入多张图片,期待模型的向量符合某个随机分布。而在预测阶段,由于Encoder是可逆的,输入从该随机分布中sample出来的向量,期待输出对应的图像。 注意,由于Encoder是可逆的,在训练阶段其输入的图片矩阵的形状应该等于输出的随机分布向量的形状,在推理阶段亦然。","s":"基于流的生成模型(Flow-Based Generative Model)","u":"/docs/Deep-Learning/大模型/Image-Generation-Models","h":"#基于流的生成模型flow-based-generative-model","p":331},{"i":355,"t":"GAN模型的结构分为Generator和Discriminator,其中Generator接受来自随机分布的向量,产生预期图像;Discriminator接受生成器输出的图像或真实图像,输出输入的图像是真实图像的概率。在训练过程中,通过固定生成器参数来更新辨别器参数、固定辨别器参数更新生成器参数的往复交替训练来形成“两个网络对抗”的效果,从而使得生成器生成的图像更逼真(与输入的真实图像更近似)、辨别器识别是否是输入的真实图像的精确度更高。","s":"生成对抗网络(GAN)","u":"/docs/Deep-Learning/大模型/Image-Generation-Models","h":"#生成对抗网络gan","p":331},{"i":357,"t":"扩散模型的核心思想是对输入的图片加入噪声使其成为从某一随机分布sample出的向量,并在这个过程中训练出Noise Predictor;在生成图片时,输入从该随机分布中sample出的向量,使用训练出的Noise Predictor对噪声denoise从而获得生成的图片。 以DDPM(Denoising Diffusion Probabilistic Models)模型为例,模型在denoise时为每个denoise步骤赋予一个编号,越早进行denoise的步骤编号越大,因此,这个编号也代表着图像中噪声的严重程度。在Denoise模块中,模型根据输入的带有噪声的图片、文字prompt以及噪声的严重程度(即denoise的步骤)预测出该图片中噪声的分布,然后将输入的图片中减去预测出的噪声得到denoise后的图片。 Denoise模块的目标是预测出输入的噪声图片中的噪声,其资料可以通过对数据集中的图片不断加入从Gaussian Distribution中sample出的噪声的方法来获得,这个加噪声的过程我们称为Forward Process or Diffusion Process。此时将加入噪声后的图片、文字prompt以及denoise的步骤序号作为输入,sample出的噪声作为Ground Truth对noise predictor进行训练。","s":"扩散模型(Diffusion Model)","u":"/docs/Deep-Learning/大模型/Image-Generation-Models","h":"#扩散模型diffusion-model","p":331},{"i":359,"t":"提示 输入:shape为[5,5,3][5, 5, 3][5,5,3]的图像 输出要求:shape为[5,5,4][5, 5, 4][5,5,4]的feature map 使用3×33 \\times 33×3卷积核,padding=1,stride=1padding=1, stride=1padding=1,stride=1","s":"深度可分离卷积","u":"/docs/Deep-Learning/基础知识/深度可分离卷积","h":"","p":358},{"i":361,"t":"卷积层共4个filter(输出通道为4),每个filter3个kernel(输入通道为3) 其中,每个filter都对输入图像的所有通道完成一次卷积,filter中的kernel分别对输入的通道进行具体卷积运算 不考虑卷积偏置,参数量为 3×3×3×4=108(1)3 \\times 3 \\times 3 \\times 4 = 108 \\tag{1}3×3×3×4=108(1)","s":"常规卷积","u":"/docs/Deep-Learning/基础知识/深度可分离卷积","h":"#常规卷积","p":358},{"i":363,"t":"使用1个filter,其中包含3个kernel。每个kernel分别对输入图像的3个通道单独进行卷积,参数量为 3×3××3=27(2)3 \\times 3 \\times \\times 3 = 27 \\tag{2}3×3××3=27(2) 代码实现也较为简单,只需令Conv2d的输出通道与输入通道相同即可","s":"(1)逐通道卷积-Depthwise Convolution","u":"/docs/Deep-Learning/基础知识/深度可分离卷积","h":"#1逐通道卷积-depthwise-convolution","p":358},{"i":365,"t":"使用1×11 \\times 11×1卷积核,每个filter对上一步的feature map在深度方向进行一次加权组合,参数量为 1×1×3×4=12(3)1 \\times 1 \\times 3 \\times 4 = 12 \\tag{3}1×1×3×4=12(3) 提示 图片源自知乎","s":"(2)逐点卷积-Pointwise Convolution","u":"/docs/Deep-Learning/基础知识/深度可分离卷积","h":"#2逐点卷积-pointwise-convolution","p":358},{"i":367,"t":"信息 参考链接: Illustrated: Self-Attention 动图轻松理解Self-Attention(自注意力机制)","s":"自注意力(Self-Attention)","u":"/docs/Deep-Learning/大模型/Self-Attention","h":"","p":366},{"i":370,"t":"CNN模型的输入向量的形状是固定的,其输出向量的形状也是固定的或可以根据不同的下游任务而唯一确定,即输入形状与下游任务共同确定了一个CNN模型的架构,具有较强的固定性。 信息 在视觉中,输入大多为数字图像,其形状可以大致分为由尺寸和通道数来决定。 从输入图像的尺寸看,当CNN中没有全连接层时,本质上可以接受任意尺寸的输入,但这是狭隘的。若考虑其下游任务以及输出,如FCN(Fully Convolution Network),FCN通过最后通过反卷积将tensor还原到原始图像尺寸,即在CNN中,输入与输出(下游任务的要求)都影响着CNN网络的结构。 从通道数看,CNN本质上可以接受任意通道数的图像输入,但是其模型效果将会受到极大的影响。以一个使用通道数为3的数据集进行训练的CNN模型,但在测试阶段分别使用通道数为 1 和 6 的数据进行推理的情形为例,进行分析: 通道数为1的测试集: 情况: 如果使用通道数为 1 的数据进行推理,即灰度图像,而模型在训练时是使用 RGB 数据集训练的,模型可能会受到一些影响。 解释: 模型可能在训练时学到了关于颜色的特定信息,而在测试时,如果输入是灰度图像,那些颜色信息将不可用。 建议: 在这种情况下,模型可能会失去对颜色信息的敏感性,可能需要进行进一步的调整或微调,以适应灰度图像的特性。 通道数为6的测试集: 情况: 如果使用通道数为 6 的数据进行推理,模型可能会面临额外的挑战,因为它在训练时只见过 3 个通道的数据。 解释: 模型在训练时学到的权重是基于 3 个通道的数据的,对于额外的通道,模型可能无法有效利用这些信息。 建议: 对于通道数不匹配的情况,可以考虑进行通道的适当组合或调整。这可能包括降低通道数(例如,只使用前 3 个通道),或者通过某种方式将 6 个通道映射到 3 个通道,例如通过某种特定的数据预处理。 当模型的输入更复杂(sophisticated),是长度不定的向量序列(sequence)时,CNN不能很好地处理,且不能解决输出由输入和模型自行决定的下游任务,如生成类任务。","s":"输入与输出的局限性","u":"/docs/Deep-Learning/大模型/Self-Attention","h":"#输入与输出的局限性","p":366},{"i":372,"t":"CNN中存在局部连接和权值共享的归纳偏置: 局部连接:CNN使用卷积层通过滑动卷积核在输入上进行局部感受野的操作。每个神经元只与输入的一小部分区域相连,这意味着每个神经元只能接触到局部的上下文信息。 权值共享: 权值共享的主要思想是,对于输入图像的不同位置使用相同的权重参数进行卷积操作。这意味着,无论卷积操作发生在图像的左上角、右下角,或者其他任何位置,都使用相同的卷积核进行权值计算。CNN的权值共享使得模型能够学习到图像中的局部特征,这也是一种对于上下文的假设。相邻位置上的权重共享使得模型能够对局部结构进行建模,这种权重共享使得CNN具有更强的归纳偏置。 提示 在多通道卷积中,卷积核不同通道之间的权重参数是独立的。这使得网络能够学习不同通道之间的特征组合。这种设计有效地捕捉了输入数据中的多通道信息,提高了网络的表达能力。 CNN的设计理念认为:在图像任务中,局部结构通常更为重要,局部连接和权值共享使得CNN更适用于图像处理等任务。但也正是这种设计理念,使得CNN在面临长输入序列时不能很好地综合上下文信息、提取位置信息,因此Self-Attention应运而生,允许每个位置关注到序列中地所有其他位置。这种全局关联性质使得Transformer能够捕捉序列中的长距离依赖关系。","s":"关联上下文信息的局限性","u":"/docs/Deep-Learning/大模型/Self-Attention","h":"#关联上下文信息的局限性","p":366},{"i":375,"t":"A self-attention module takes in nnn inputs and returns nnn outputs. What happens in this module? In layman’s terms, the self-attention mechanism allows the inputs to interact with each other (“self”) and find out who they should pay more attention to (“attention”). The outputs are aggregates of these interactions and attention scores. Self-Attention接受任意向量数量的向量序列的输入,输出每一个向量所有向量(包括自身)的注意力分数。这使得Self-Attention在捕捉长距离依赖和处理序列中的全局关系时非常有效。","s":"什么是Self-Attention","u":"/docs/Deep-Learning/大模型/Self-Attention","h":"#什么是self-attention","p":366},{"i":377,"t":"自注意力机制的核心思想是为序列中的每个向量分配一个权重(即注意力分数),该权重表示该元素与其他元素的关联强度。这个权重是通过计算输入序列中所有元素与当前元素之间的关系来确定的。通常,这个计算过程使用一个可学习的权重矩阵来完成,即用来生成Key,Query以及Value的权重矩阵。","s":"Self-Attention的核心思想","u":"/docs/Deep-Learning/大模型/Self-Attention","h":"#self-attention的核心思想","p":366},{"i":379,"t":"定义输入​ Self-Attention的输入是向量序列,其向量数量是任意的,计算每个输入向量之间的注意力分数。在本例中输入向量个数为3,同时为了统一性分析,计输入向量个数为batchbatchbatch个。 # define the input, which has a shape of (3, 4) inputs = [[1, 0, 1, 0], [0, 2, 0, 2], [1, 1, 1, 1]] inputs = torch.tensor(inputs, dtype=torch.float32) 初始化权重矩阵​ 每个输入向量都会与3个权重向量做乘法得到3个新的向量,分别为key,query以及value。在本例中将新的向量维度设为3,由于输出的k、q、v矩阵大小均为(3,3)(3, 3)(3,3),因此每个权重矩阵的形状应该是(4,3)(4, 3)(4,3)。为了统一性分析,计key,query以及value各向量维度为numnumnum。 In a neural network setting, these weights are usually small numbers, initialised randomly using an appropriate random distribution like Gaussian, Xavier and Kaiming distributions. This initialisation is done once before training. 在实际应用中,权重通常是较小的数字,通过适当的随机分布(比如高斯、Xavier和Kaiming分布)进行随机初始化。 # define the weights for keys, queries and values w_key = torch.tensor([[0, 0, 1], [1, 1, 0], [0, 1, 0], [1, 1, 0]], dtype=torch.float32) w_query = torch.tensor([[1, 0, 1], [1, 0, 0], [0, 0, 1], [0, 1, 1]], dtype=torch.float32) w_value = torch.tensor([[0, 2, 0], [0, 3, 0], [1, 0, 3], [1, 1, 0]], dtype=torch.float32) 计算key,query以及value​ # compute keys, queries and values keys = inputs @ w_key queries = inputs @ w_query values = inputs @ w_value print(\"keys:\\n\", keys) # (3, 3) print(\"queries:\\n\", queries) # (3, 3) print(\"values:\\n\", values) # (3, 3) 计算原始的注意力分数​ 我们要为每一个输入向量计算它对所有向量的注意力分数,包括对自身的。 原始注意力分数的计算方式为,使用自身的query分别与所有向量的key做内积(dot product),得到的scalar数量与输入向量个数相同,都为batchbatchbatch,即scores矩阵的形状应为(batch,batch)(batch, batch)(batch,batch)。 # compute raw self-attention scores scores = queries @ keys.T print(\"attention scores:\\n\", scores) 注意,代码中提供的是计算所有向量的注意力分数,而图中演示的只是计算input #1的注意力分数。 对每一个向量计算出的注意力分数做softmax​ # normalize the attention score score_softmax = F.softmax(scores, dim=-1) # select the highest dimension print(\"attention scores after normalization:\\n\", score_softmax) 将注意力分数与对应的value相乘​ 每一个输入向量对所有batchbatchbatch个向量计算得到的注意力分数,都要与其对应的value向量相乘,计算加权的注意力分数。最终的注意力分数矩阵的形状应为(batch,num)(batch, num)(batch,num)。 # compute the weighted values by doting score_softmax with values # please be advised, this is dot product weighted_values = values[:, None] * score_softmax.T[:, :, None] print(\"weighted scores: \\n\", weighted_values) 加权注意力分数求和​ 最后一步,对于每个向量得到的加权注意力分数进行求和,得到维度为numnumnum的注意力分数向量,考虑到有batchbatchbatch个输入向量,因此最终的注意力分数矩阵的形状为(batch,num)(batch, num)(batch,num)。 根据推导,显然,最终Self-Attention的输出向量维度与value向量的维度相同,输出向量的数量与输入向量的数量相同。 # compute outputs outputs = weighted_values.sum(dim=0) 总结​ As mentioned in the above paragraph, we don’t only use dot product to find relevance. But we scale it as well by a factor of the square root of key dimension dk. This helps in making sure that the dot-products between query and key don’t grow too large for dk. If the dot product becomes too large then the softmax output will be very small. To avoid this, we scale the dot product. 在计算dot product后,为了避免点积运算经过softmax后的输出太小,在点积后除以key向量维度的平方根来进行缩放。 Attention(Q,K,V)=softmax(QKTdk)V(1)Attention(Q,K,V)=\\textit{softmax}(\\frac{QK^T}{\\sqrt{d_k}})V \\tag{1}Attention(Q,K,V)=softmax(dk​​QKT​)V(1) 完整代码​ # simple code for Self-Attention import torch import torch.nn.functional as F import numpy as np import matplotlib.pyplot as plot # define the input, which has the shape of (3, 4) inputs = [[1, 0, 1, 0], [0, 2, 0, 2], [1, 1, 1, 1]] inputs = torch.tensor(inputs, dtype=torch.float32) # initialize the weights for keys, queries and values w_key = torch.tensor([[0, 0, 1], [1, 1, 0], [0, 1, 0], [1, 1, 0]], dtype=torch.float32) w_query = torch.tensor([[1, 0, 1], [1, 0, 0], [0, 0, 1], [0, 1, 1]], dtype=torch.float32) w_value = torch.tensor([[0, 2, 0], [0, 3, 0], [1, 0, 3], [1, 1, 0]], dtype=torch.float32) # compute keys, queries and values keys = inputs @ w_key queries = inputs @ w_query values = inputs @ w_value print(\"keys:\\n\", keys) # (3, 3) print(\"queries:\\n\", queries) # (3, 3) print(\"values:\\n\", values) # (3, 3) # compute raw self-attention score scores = queries @ keys.T print(\"attention scores:\\n\", scores) # normalize the attention score score_softmax = F.softmax(scores, dim=-1) # select the highest dimension print(\"attention scores after normalization:\\n\", score_softmax) # compute the weighted values by doting score_softmax with values # please be advised, this is dot product weighted_values = values[:, None] * score_softmax.T[:, :, None] print(\"weighted scores: \\n\", weighted_values) # compute outputs outputs = weighted_values.sum(dim=0)","s":"Self-Attention的实现","u":"/docs/Deep-Learning/大模型/Self-Attention","h":"#self-attention的实现","p":366},{"i":381,"t":"多头自注意力机制是对自注意力机制的扩展,假设扩展成为nnn -head self-attention,则对每个输入向量生成对应的key,query和value后,再次使用nnn个可学习的权重矩阵生成nnn个不同的key0,...,keyn−1key^{0}, ..., key^{n-1}key0,...,keyn−1,query0,...,queryn−1query^{0}, ..., query^{n-1}query0,...,queryn−1以及value0,...,valuen−1value^{0}, ..., value^{n-1}value0,...,valuen−1。 在计算attention score时,使用每一个query查询对应的key,即query0query^{0}query0只与其他每一个输入向量的key0key^{0}key0做dot product。","s":"Multi-Head Self-Attention","u":"/docs/Deep-Learning/大模型/Self-Attention","h":"#multi-head-self-attention","p":366},{"i":383,"t":"Self-Attention可以看作是复杂化的CNN,CNN只能在感受野范围内考虑上下文信息,而Self-Attention可以自己学习感受野。","s":"Self-Attention与CNN的对比","u":"/docs/Deep-Learning/大模型/Self-Attention","h":"#self-attention与cnn的对比","p":366},{"i":385,"t":"提示 在自监督学习的模型中,出现了很多以芝麻街任务命名的经典模型和论文。","s":"自监督学习(Self-Supervised Learning)","u":"/docs/Deep-Learning/大模型/Self-Supervised-Learning","h":"","p":384},{"i":387,"t":"自监督学习是无监督学习的一种方法,利用未标记的数据来训练模型。与传统的监督学习不同,自监督学习不需要依赖人工标注的标签数据,而是通过自动构建任务来生成伪标签,从而指导模型的学习。 自监督学习的基本原理是,通过对输入数据进行某种变换或操作,使得模型能够从中提取有用的特征和语义信息。例如,在自然语言处理领域,一种常见的自监督学习任务是预测下一个单词;在计算机视觉领域,一种常见的自监督学习任务是预测图像中的缺失部分。这些任务可以帮助模型学习到输入数据中的潜在结构和规律,从而提高其泛化能力和性能。","s":"介绍","u":"/docs/Deep-Learning/大模型/Self-Supervised-Learning","h":"#介绍","p":384},{"i":389,"t":"下面以BERT为例,介绍自监督模型。","s":"BERT(Bidirectional Encoder Representation from Transformers)","u":"/docs/Deep-Learning/大模型/Self-Supervised-Learning","h":"#bertbidirectional-encoder-representation-from-transformers","p":384},{"i":391,"t":"BERT的结构其实是Transformer的Encoder部分,仅使用Encoder做特征抽取器。 BERT(Bidirectional Encoder Representations from Transformers)本身是一种预训练的模型架构,通常是在大规模无标签数据上进行预训练,然后在特定任务上进行微调。BERT并不是一个用于特定任务的模型,而是一个通用的语言表示模型。 使用 BERT 的一般步骤包括: 预训练(Pretraining):在大规模无标签数据上对 BERT 进行预训练,学习通用的语言表示。 微调(Fine-tuning):将预训练的 BERT 模型应用于特定任务,并在有标签的数据上进行微调,以适应该任务。 应用于下游任务(Downstream Tasks):微调后的 BERT 模型可以被用于执行特定的下游任务,如文本分类、命名实体识别等。","s":"结构","u":"/docs/Deep-Learning/大模型/Self-Supervised-Learning","h":"#结构","p":384},{"i":393,"t":"Masking Input​ BERT模型的自监督性质主要体现在其训练数据并不需要人为标注label,而是通过对输入句子中的部分词汇做mask,将输入数据的部分内容使用special token或random token进行遮挡后,喂入Encoder中。对于每个被mask掉的词汇,BERT输出一个概率分布向量,表示这个词汇属于词汇表中的哪一个。 BERT的损失函数主要是Masked Language Model(MLM)任务的交叉熵损失,通过最小化Encoder输出的概率分布与Ground Truth之间的交叉熵损失函数来训练模型。 L=−1N∑i=1Nyilog⁡(pi)(1)L=-\\frac1N\\sum_{i=1}^Ny_i\\log(p_i)\\tag{1}L=−N1​i=1∑N​yi​log(pi​)(1) 其中: NNN是输出的概率分布向量的维度。 yiy_{i}yi​是概率分布向量标签。 pip_{i}pi​是模型预测的概率分布向量。 Next Sentence Prediction​","s":"Self-Supervised Pretraining","u":"/docs/Deep-Learning/大模型/Self-Supervised-Learning","h":"#self-supervised-pretraining","p":384},{"i":395,"t":"在预训练之后,BERT 的模型参数可以被用于多个下游任务,如文本分类、命名实体识别、问答等。 首先,我们先来了解一下NLP任务中很重要的一个Benchmark:GLUE。 Benchmark: GLUE​ GLUE(General Language Understanding Evaluation)是一个评估自然语言处理模型在多个任务上综合性能的基准(benchmark)。它旨在测试模型对各种语言任务的通用理解能力。GLUE benchmark 包含了多个任务,每个任务都有一个对应的数据集和评估标准。 MNLI(MultiNLI):自然语言推理任务,要求模型判断给定的两个句子之间的关系是蕴含、矛盾还是中立。 QQP(Quora Question Pairs):问题匹配任务,要求模型判断两个问题是否语义上等价。 QNLI(Question-answering Natural Language Inference):句子分类任务,要求模型判断给定问题和句子之间的关系。 RTE(Recognizing Textual Entailment):文本蕴涵任务,要求模型判断给定的两个文本之间是否存在蕴涵关系。 STS-B(Semantic Textual Similarity Benchmark):语义文本相似度任务,要求模型度量两个文本之间的语义相似度。 CoLA(Corpus of Linguistic Acceptability):语言可接受性判断任务,要求模型判断一个句子是否语法上正确。 MRPC(Microsoft Research Paraphrase Corpus):短语匹配任务,要求模型判断两个句子是否语义上等价。 SST-2(Stanford Sentiment Treebank):情感分类任务,要求模型判断给定句子的情感极性。 WNLI(Winograd NLI):自然语言推理任务,属于 Winograd 模式的变体,要求模型判断一个给定的句子对是否存在蕴含关系。 GLUE 提供了一个全面的测试平台,有助于评估和比较不同自然语言处理模型在多个任务上的性能。 Downstream Tasks​ Sentiment Analysis​ BERT作为自监督的预训练模型,从大语料库中学习到了一定的语言知识,在做文字情感分析时,只需要在下游连接上对应的分类器网络,即使只有比较少量的训练资料也能得到比较好的效果。 下图将Pre-training&Fine-tuning范式与Scratch范式的训练效果做了对比,其中Scratch范式即使用传统的随机初始化的方式从头训练整个分类网络。可以看到预训练&微调的训练范式可以加速模型的收敛(Convergence)并且效果也更好。 立场分析​ Extraction-based Question Answering​ BERT也可以用来完成截取式问答任务,提供一篇文章以及问题,要求输出两个integer代表答案短语在该文章中的起始位置以及结束位置。 具体的解决方案:选择输入文章的所有token所对应的输出向量,随机初始化两个相同维度的向量,分别与输出向量做Dot Product,在经过Softmax之后选择最大的得分所对应的索引。得到的两个索引分别是答案短语在文章中开始的位置以及结束的位置。 其他应用​ 虽然以上的应用都是NLP领域的,但是BERT是Seq2Seq模型,图片、语音等信号也都可以作为Sequence输入至BERT中,因此BERT也可以通过迁移学习应用至多模态领域。","s":"Fine-tuning","u":"/docs/Deep-Learning/大模型/Self-Supervised-Learning","h":"#fine-tuning","p":384},{"i":397,"t":"BERT在大规模语料库(Corpus)上预训练后,输出的向量表示了对应输入token的意思,特别地,是考虑了上下文信息的意思。比如,对于水果的苹果已经苹果公司的苹果,BERT对一样的苹果有不同的输出。即对一个处在不同上下文信息中的相同词汇,BERT有不同的Embedding。类似于Word Embedding中的CBOW,BERT可以看作是Contextualized Word Embedding。 BERT模型的核心就是通过预训练来学习上下文信息,进而对每个输入token生成相应的向量表示。这个向量表示考虑了上下文信息,所以对于处在不同上下文中的相同词汇,BERT会有不同的Embedding。 ——来自讯飞星火大模型 虽然 BERT 的确是一种基于大规模语料库的预训练模型,但它并不是一种简单的词嵌入方法,而是一种深度神经网络模型。 在 BERT 中,每个单词都被嵌入到一个高维空间中,并且这些嵌入向量是通过多层 Transformer 编码器生成的。这些编码器的每一层都包含多个自注意力子层和一个前馈神经网络子层,它们共同作用来捕捉文本中的上下文关系和其他语义特征。 因此,BERT 中的嵌入向量不仅仅是单个单词的词义表征,还包括整个句子或段落中的语境信息。这意味着即使两个单词在不同的上下文中出现,它们的嵌入向量也可能非常相似,因为它们共享相同的语义结构。 总之,BERT 可以被视为一种上下文感知词嵌入技术,但它的实现方式比传统的词嵌入方法要复杂得多。 ——来自腾讯混元大模型","s":"Why does BERT work?","u":"/docs/Deep-Learning/大模型/Self-Supervised-Learning","h":"#why-does-bert-work","p":384},{"i":399,"t":"GPT的结构是Transformer的Decoder部分,可以承担生成的任务。 GPT的自监督学习的特征体现在:在训练过程中,GPT根据输入的token预测输入的下一个token应该是什么,对输出的distribution与Ground Truth做Cross Entropy Loss来更新参数。","s":"GPT: Generative Pre-trained Transformer","u":"/docs/Deep-Learning/大模型/Self-Supervised-Learning","h":"#gpt-generative-pre-trained-transformer","p":384},{"i":403,"t":"σ(x)=11+e−x(1)\\sigma(x) = \\frac{1}{1 + e^{-x}} \\tag{1}σ(x)=1+e−x1​(1) dσdx=σ (1−σ)(2)\\frac{{\\rm d}\\sigma}{{\\rm d}x} = \\sigma \\space (1 - \\sigma) \\tag{2}dxdσ​=σ (1−σ)(2) 优点:可以将数据压缩至[0, 1)区间内,有较大实用意义 致命问题:在输入值较小或较大时,Sigmoid函数的梯度趋近于零,会导致网络参数长时间得不到更新,即梯度弥散问题 from torch.nn import functional as F import torch x = torch.linspace(-100, 100, 10) F.sigmoid(x) # 当x为100时,sigmoid(x)就接近于0了","s":"1. Sigmoid函数 / Logistic函数","u":"/docs/Deep-Learning/基础知识/激活函数与Loss的梯度","h":"#1-sigmoid函数--logistic函数","p":400},{"i":405,"t":"f(x)={0x<0xx≥0(3)f(x) = \\begin{cases} 0 & x < 0\\\\ x & x \\geq 0\\\\ \\end{cases} \\tag{3}f(x)={0x​x<0x≥0​(3) df(x)dx={0x<01x≥0(4)\\frac {{\\text d}f(x)}{{\\text d}x} = \\begin{cases} 0 & x < 0\\\\ 1 & x \\geq 0\\\\ \\end{cases} \\tag{4}dxdf(x)​={01​x<0x≥0​(4) from torch.nn import functional as F import torch x = torch.linspace(-100, 100, 10) F.relu(x)","s":"2. 线性整流单元(Rectified Linear Unit, ReLU)","u":"/docs/Deep-Learning/基础知识/激活函数与Loss的梯度","h":"#2-线性整流单元rectified-linear-unit-relu","p":400},{"i":408,"t":"L2范数是对元素求平方和后再开根号,需要.pow(2)后才可作为损失函数 微小的误差可能对网络性能带来极大的影响 LossMSE=∑[y−f(x)]2(5)Loss_{MSE} = \\sum{[{y - f(x)]^2}} \\tag{5}LossMSE​=∑[y−f(x)]2(5) ∥y−f(x)∥2=∑[y−f(x)]22(6)\\Vert y - f(x) \\Vert_2 = \\sqrt[2]{\\sum{[y - f(x)]^2}} \\tag{6}∥y−f(x)∥2​=2∑[y−f(x)]2​(6)","s":"1. Mean Squared Error 均方误差","u":"/docs/Deep-Learning/基础知识/激活函数与Loss的梯度","h":"#1-mean-squared-error-均方误差","p":400},{"i":410,"t":"信息熵​ Cross Entropy中的Entropy指的是信息熵,可以理解为不确定性。衡量一个概率分布本身的不确定程度。 It's a measure of surprise, higher entrpoy means less information and higher uncertainty. 假设一个离散型随机变量XXX的可能取值为X=x1,x2,...,xnX=x_1,x_2,...,x_nX=x1​,x2​,...,xn​,而取值事件xix_ixi​发生的概率为PiP_iPi​,则其信息熵的定义为 H(P)=−∑inPi log2(Pi)=∑inPi log2(1Pi)(7)\\begin{align} H(P) &= -\\sum_i^n{P_i}\\space{log_2(P_i)} \\\\ &= \\sum_i^n{P_i}\\space{log_2({\\frac{1}{P_i}}}) \\tag{7} \\end{align}H(P)​=−i∑n​Pi​ log2​(Pi​)=i∑n​Pi​ log2​(Pi​1​)​(7) KL散度​ 在概率论或信息论中,KL散度( Kullback–Leibler Divergence),又称相对熵(relative entropy),是描述两个概率分布P和Q差异的一种方法。 存在两个概率分布P和Q,其离散型随机变量XXX的可能取值为X=x1,x2,...,xnX=x_1,x_2,...,x_nX=x1​,x2​,...,xn​,而取值事件xix_ixi​发生的概率分别为Pi,QiP_i,Q_iPi​,Qi​. KL散度是非对称的,即 DKL(P ∣∣ Q)≠DKL(Q ∣∣ P)(8)D_{KL}(P \\space || \\space Q) \\neq D_{KL}(Q \\space || \\space P)\\tag{8}DKL​(P ∣∣ Q)=DKL​(Q ∣∣ P)(8) DKL(P ∣∣ Q)=∑Pi [log2(Pi)−log2(Qi)](9)D_{KL}(P \\space || \\space Q) = \\sum{P_i\\space [log_2(P_i)-log_2(Q_i)]}\\tag{9}DKL​(P ∣∣ Q)=∑Pi​ [log2​(Pi​)−log2​(Qi​)](9) 特别的,DKL(PLabel ∣ QPred)D_{KL}(P_{Label} \\space | \\space Q_{Pred})DKL​(PLabel​ ∣ QPred​)表示当用概率分布Q来拟合真实分布P时,产生的信息损耗,其中P表示真实分布,Q表示P的拟合分布。 交叉熵​ 衡量两个概率分布P和Q之间的不确定性程度。交叉熵的数学表达为 H(P, Q)=H(P)+DKL(P ∣∣ Q)=−∑Pi log2(Qi)(10)\\begin{align} H(P, \\space Q) &= H(P) + D_{KL}(P\\space || \\space Q) \\\\ &= - \\sum{P_i}\\space{log_2({Q_i})} \\tag{10} \\end{align}H(P, Q)​=H(P)+DKL​(P ∣∣ Q)=−∑Pi​ log2​(Qi​)​(10) PyTorch中的CrossEntropyLoss​ torch.nn.CrossEntropyLoss相当于torch.softmax + torch.log + torch.nn.nllloss. import torch.nn as nn # 使用NLLLoss实现 nllloss = nn.NLLLoss() predict = torch.Tensor([[2, 3, 1], [3, 7, 9]]) predict = torch.log(torch.softmax(predict, dim=-1)) label = torch.tensor([1, 2]) nllloss(predict, label) # output: tensor(0.2684) # 使用CrossEntropyLoss实现 cross_loss = nn.CrossEntropyLoss() predict = torch.Tensor([[2, 3, 1], [3, 7, 9]]) label = torch.tensor([1, 2]) cross_loss(predict, label) # output: tensor(0.2684)","s":"2. Cross Entropy Loss 交叉熵损失","u":"/docs/Deep-Learning/基础知识/激活函数与Loss的梯度","h":"#2-cross-entropy-loss-交叉熵损失","p":400},{"i":413,"t":"kh=kw=1k_h=k_w=1kh​=kw​=1的卷积不识别空间模式,丢弃了空间信息,只是融合通道 相当于输入形状为HW×ciHW \\times c_iHW×ci​,权重形状为co×cic_o \\times c_ico​×ci​的全连接层","s":"一、1x1卷积","u":"/docs/Deep-Learning/基础知识/ConvolutionalLayer","h":"#一1x1卷积","p":411},{"i":415,"t":"输入:ci×H×Wc_i \\times H \\times Wci​×H×W 核:co×ci×kh×kwc_o \\times c_i \\times k_h \\times k_wco​×ci​×kh​×kw​ 偏差:co×cic_o \\times c_ico​×ci​ 输出:co×H′×W′c_o \\times H' \\times W'co​×H′×W′ 输出H′以及W′H'以及W'H′以及W′的计算: shapeoutput=shapeinput−sizekernel+2∗paddingstride+1(1)shape_{output} = \\frac{shape_{input}-size_{kernel}+2*padding}{stride}+1 \\tag{1}shapeoutput​=strideshapeinput​−sizekernel​+2∗padding​+1(1) 计算复杂度:O(co×ci×H×W×H′×W′)O(c_o \\times c_i \\times H \\times W \\times H' \\times W')O(co​×ci​×H×W×H′×W′) 总结: 输出的通道数是卷积层的超参数 每个输入通道有独立的二维卷积核,所有通道结果相加得到一个输出结果 每个输出通道有独立的三维卷积核","s":"二、二维卷积层","u":"/docs/Deep-Learning/基础知识/ConvolutionalLayer","h":"#二二维卷积层","p":411},{"i":418,"t":"AlexNet是指2012年由Alex Krizhevsky、Ilya Sutskever和Geoffrey Hinton提出的一种卷积神经网络模型,它主要应用于图像分类任务。在当时,AlexNet的表现远远超过了其他参赛的网络模型,并且在ImageNet比赛中获得了第一名。 标志着新的一轮神经网络热潮的开始","s":"背景","u":"/docs/Deep-Learning/基础知识/AlexNet","h":"#背景","p":416},{"i":420,"t":"ReLU激活函数 Dropout正则化、丢弃法 最大池化MaxPooling","s":"新的概念和技术","u":"/docs/Deep-Learning/基础知识/AlexNet","h":"#新的概念和技术","p":416},{"i":422,"t":"由于输入的图片更大,设置了更大的卷积核尺寸和步长 更大的池化窗口,使用最大池化 在卷积层中设置了更大的输出通道,提取更深层的特征、识别更多的模式 激活函数从Sigmoid改成了ReLU,减缓梯度消失 在卷积层和输出层之间仍使用两个全连接隐藏层,但在输出层之前增加了Dropout层做正则化 使用了数据增强data augmentation","s":"与LeNet比较","u":"/docs/Deep-Learning/基础知识/AlexNet","h":"#与lenet比较","p":416},{"i":424,"t":"提示 正则化与权重衰退","s":"正则化与权重衰退","u":"/docs/Deep-Learning/基础知识/正则化与权重衰退","h":"","p":423},{"i":426,"t":"正则化(Regularization)是机器学习中用于控制模型过拟合的一种技术。在模型训练过程中,我们通常要最小化一个损失函数来得到最佳的模型参数。但是当模型过于复杂时,容易出现过拟合现象,即在训练数据上表现很好,但在测试数据上表现很差。这是因为模型过于依赖训练数据的噪声和细节,而忽略了真正的规律。 正则化通过在损失函数中增加一个惩罚项(Penalty)来对模型进行约束,防止其过分依赖训练数据。 常见的正则化方法包括L1正则化(硬性限制)、L2正则化(柔性限制)等。 L1正则化会使得一部分参数变为0,从而实现特征选择的效果;L2正则化则会使得模型参数尽量接近0,也就是使得模型更加平滑。在使用正则化时,需要调整正则化强度的超参数,以达到最优的泛化性能。","s":"一、什么是正则化","u":"/docs/Deep-Learning/基础知识/正则化与权重衰退","h":"#一什么是正则化","p":423},{"i":428,"t":"min l(w,b) subject to ∥w∥12≤θ(1)min \\space l(w, b) \\space \\text{subject to} \\space \\Vert w \\Vert^2_1 \\leq \\theta \\tag{1}min l(w,b) subject to ∥w∥12​≤θ(1) L1正则化限制权重参数的L1范数小于某一特定的超参数 通常不限制偏移bbb 更小的超参数θ\\thetaθ意味着更强的正则项","s":"二、L1正则化","u":"/docs/Deep-Learning/基础知识/正则化与权重衰退","h":"#二l1正则化","p":423},{"i":430,"t":"L2正则化是指在模型的损失函数中,加入对模型参数的L2范数进行惩罚的一种方法。公式如下所示: l(w,b)+λ2∥w∥12(2)l(w, b) + \\frac{\\lambda}{2} \\Vert w \\Vert^2_1 \\tag{2}l(w,b)+2λ​∥w∥12​(2) 其中,λ\\lambdaλ是一个正则化系数超参数 此时在更新梯度时,具有如下公式 ∂∂w(l(w,b)+λ2∥w∥12)=∂l(w,b)∂w+λw(3)\\frac{\\partial}{\\partial w} \\big(l(w, b) + \\frac{\\lambda}{2} \\Vert w \\Vert^2_1 \\big) = \\frac{\\partial l(w, b)}{\\partial w} + \\lambda w \\tag{3}∂w∂​(l(w,b)+2λ​∥w∥12​)=∂w∂l(w,b)​+λw(3) wt+1=(1−ηλ)wt+η∂l(wt,bt)∂wt(4)w_{t+1}=(1-\\eta \\lambda)w_t + \\eta \\frac{\\partial l(w_t, b_t)}{\\partial w_t} \\tag{4}wt+1​=(1−ηλ)wt​+η∂wt​∂l(wt​,bt​)​(4) 通常ηλ<1\\eta \\lambda < 1ηλ<1,因此又叫做权重衰退","s":"三、L2正则化与权重衰退","u":"/docs/Deep-Learning/基础知识/正则化与权重衰退","h":"#三l2正则化与权重衰退","p":423},{"i":433,"t":"K-fold cross-validation is a technique used in machine learning to evaluate the performance of a model. The basic idea behind k-fold cross-validation is to split the dataset into kkk partitions, or folds, and then train and test the model kkk times, using a different fold for testing each time.","s":"What is k-fold cross-validation?","u":"/docs/Deep-Learning/基础知识/K-foldCross-validation","h":"#what-is-k-fold-cross-validation","p":431},{"i":435,"t":"In each iteration of k-fold cross-validation, one of the kkk folds is used as the test set, while the remaining k−1k-1k−1 folds are used as the training set. This process is repeated kkk times, with each fold being used exactly once as the test set. The results from each iteration can then be averaged to produce a more accurate estimate of the model's performance.","s":"How does k-fold cross-validation work?","u":"/docs/Deep-Learning/基础知识/K-foldCross-validation","h":"#how-does-k-fold-cross-validation-work","p":431},{"i":437,"t":"train set: to train the model and do parameter update validation set: to choose hyperparameter test set: the final test, only used once","s":"Summary","u":"/docs/Deep-Learning/基础知识/K-foldCross-validation","h":"#summary","p":431},{"i":440,"t":"LeNet是由Yann LeCun等人于1998年提出的卷积神经网络结构,该结构由卷积层、池化层和全连接层组成,可以高效地处理手写数字图像,并在MNIST数据集上取得了很好的性能。 LeNet-5的成功标志着卷积神经网络在计算机视觉领域中的崛起,并促进了深度学习的快速发展。","s":"背景","u":"/docs/Deep-Learning/基础知识/LeNet","h":"#背景","p":438},{"i":442,"t":"import torch import numpy as np from torch import nn as nn from torch.nn import functional as F from d2l import torch as d2l from matplotlib import pyplot as plt import os os.environ['http_proxy'] = 'http://127.0.0.1:7890' os.environ['https_proxy'] = 'https://127.0.0.1:7890' class LeNetReshape(nn.Module): def __init__(self): super(LeNetReshape, self).__init__() def forward(self, x): return x.reshape(-1, 1, 28, 28) class LeNet5(nn.Module): def __init__(self): super(LeNet5, self).__init__() self.net = torch.nn.Sequential( LeNetReshape(), # 激活函数应为Sigmoid nn.Conv2d(1, 6, kernel_size=5, padding=2), nn.LeakyReLU(), nn.AvgPool2d(kernel_size=2, stride=2), nn.Conv2d(6, 16, kernel_size=5), nn.LeakyReLU(), nn.AvgPool2d(kernel_size=2, stride=2), nn.Flatten(), nn.Linear(16 * 5 * 5, 120), nn.LeakyReLU(), nn.Linear(120, 84), nn.Sigmoid(), nn.Linear(84, 10)) def forward(self, x): return self.net(x) def evaluate_accuracy_gpu(net, data_iter, device=None): if isinstance(net, torch.nn.Module): net.eval() if not device: device = next(iter(net.parameters())).device metric = d2l.Accumulator(2) for X, y in data_iter: if isinstance(X, list): X = [x.to(device) for x in X] else: X = X.to(device) y = y.to(device) metric.add(d2l.accuracy(net(X), y), y.numel()) # 此处accuracy是统计 return metric[0] / metric[1] def accuracy(y_hat, y): return torch.sum(y_hat.argmax(dim=1) == y) def train(net, train_iter, test_iter, num_epochs, lr, device): def init_weights(m): if type(m) == nn.Linear or type(m) == nn.Conv2d: nn.init.xavier_uniform_(m.weight) net.apply(init_weights) net.to(device) optimizer = torch.optim.SGD(net.parameters(), lr=lr) loss = torch.nn.CrossEntropyLoss() loss.to(device) animator = d2l.Animator(xlabel='epoch', xlim=[1, num_epochs], legend=['train loss', 'train acc', 'test acc']) timer, num_batches = d2l.Timer(), len(train_iter) metric = d2l.Accumulator(3) net.train() for epoch in range(num_epochs): for batch, (X, y) in enumerate(train_iter): timer.start() optimizer.zero_grad() X, y = X.to(device), y.to(device) y_hat = net(X) l = loss(y_hat, y) l.backward() optimizer.step() metric.add(l * X.shape[0], accuracy(y_hat, y), y.numel()) timer.stop() train_l = metric[0] / metric[2] train_acc = metric[1] / metric[2] if (batch + 1) % (num_batches // 5) == 0 or batch == num_batches - 1: animator.add(epoch + (batch + 1) / num_batches, (train_l, train_acc, None)) test_acc = evaluate_accuracy_gpu(net, test_iter) animator.add(epoch + 1, (None, None, test_acc)) print(f'loss {train_l:.3f}, train acc {train_acc:.3f}, test acc {test_acc:.3f}') print(f'{metric[2] * num_epochs / timer.sum():.1f} examples/sec on {str(device)}') plt.show() batch_size = 256 train_iter, test_iter = d2l.load_data_fashion_mnist(batch_size) lr, num_epochs = 0.9, 10 lenet = LeNet5() train(lenet, train_iter, test_iter, num_epochs, lr, d2l.try_gpu())","s":"代码实现","u":"/docs/Deep-Learning/基础知识/LeNet","h":"#代码实现","p":438},{"i":444,"t":"在分类模型中,最后两个全连接层之间不要使用ReLU激活函数。因为ReLU的范围是[0, +∞),它会将所有负数都变成0。而最后一层全连接层输出了类别信息,倒数第二层的输出值包含着非常重要的类别信息,此时使用激活函数很可能会导致信息丢失。","s":"问题","u":"/docs/Deep-Learning/基础知识/LeNet","h":"#问题","p":438},{"i":447,"t":"现代图片具有较大的像素,使用全连接层导致参数爆炸 针对图片的特征提取和模式识别,应具备以下原则: 平移不变性 局部性","s":"一、卷积的诞生&核心特征","u":"/docs/Deep-Learning/基础知识/FromFullyConnectedLayerToConvolutionalLayer","h":"#一卷积的诞生核心特征","p":445},{"i":449,"t":"将全连接层的一维输入和输出变换为二维的矩阵,公式如下 其中i,ji,ji,j代表输出神经元的二维索引坐标,h,wh,wh,w代表输入神经元的二维索引坐标 yi,j=∑h,wwi,j,h,w∗xh,w(1)y_{i,j}=\\sum_{h,w}{w_{i,j,h,w}*x_{h,w}} \\tag{1}yi,j​=h,w∑​wi,j,h,w​∗xh,w​(1) 进一步将权重以及输入的索引变形,公式如下 其中a,ba,ba,b的取值可负可正,直到遍历所有权重以及输入神经元,实现全连接 yi,j=∑h,wwi,j,h,w∗xh,w=∑a,bvi,j,a,b∗xi+a,j+b(2)y_{i,j}=\\sum_{h,w}{w_{i,j,h,w}*x_{h,w}}=\\sum_{a,b}{v_{i,j,a,b}*x_{i+a,j+b}} \\tag{2}yi,j​=h,w∑​wi,j,h,w​∗xh,w​=a,b∑​vi,j,a,b​∗xi+a,j+b​(2) 在公式(2)中,当i,ji,ji,j发生变化时,即产生平移,权重也发生平移,不满足平移不变性。 为了解决这一问题,将公式(2)变形为如下 此时参数权值共享,满足了平移不变性 yi,j=∑a,bvi,j,a,b∗xi+a,j+b=∑a,bva,b∗xi+a,j+b(3)y_{i,j}=\\sum_{a,b}{v_{i,j,a,b}*x_{i+a,j+b}}=\\sum_{a,b}{v_{a,b}*x_{i+a,j+b}} \\tag{3}yi,j​=a,b∑​vi,j,a,b​∗xi+a,j+b​=a,b∑​va,b​∗xi+a,j+b​(3) 再考虑局部性,在进行特征提取以及模式识别时,只需关注周围的局部特征,因此公式(3)中的a,ba,ba,b可缩小范围,并不用来实现全连接,此时a,ba,ba,b代表着卷积核的感受野,即kernel size 此时完成了全连接层到卷积层的转换","s":"二、重新考察全连接层","u":"/docs/Deep-Learning/基础知识/FromFullyConnectedLayerToConvolutionalLayer","h":"#二重新考察全连接层","p":445},{"i":451,"t":"对全连接层使用平移不变性和局部性得到卷积层,卷积是特殊的全连接 yi,j=∑a,bva,b∗xi+a,j+b=∑a=−ΔΔ∑b=−ΔΔva,b∗xia,j+b(4)y_{i,j}=\\sum_{a,b}{v_{a,b}*x_{i+a,j+b}}=\\sum_{a=-\\Delta}^{\\Delta}\\sum_{b=-\\Delta}^{\\Delta}{v_{a,b}*x_{i_a,j+b}} \\tag{4}yi,j​=a,b∑​va,b​∗xi+a,j+b​=a=−Δ∑Δ​b=−Δ∑Δ​va,b​∗xia​,j+b​(4) 卷积层输出形状的计算 shapeoutput=shapeinput−sizekernel+2∗paddingstride+1(5)shape_{output} = \\frac{shape_{input}-size_{kernel}+2*padding}{stride}+1 \\tag{5}shapeoutput​=strideshapeinput​−sizekernel​+2∗padding​+1(5)","s":"三、总结","u":"/docs/Deep-Learning/基础知识/FromFullyConnectedLayerToConvolutionalLayer","h":"#三总结","p":445},{"i":454,"t":"感知机是一种二元线性分类模型,旨在寻找一个超平面(在二维空间中即为一条直线),将不同类别的实例划分到不同的区域。感知机的训练过程包括迭代地对样本进行分类,并根据分类错误的情况调整超平面的参数,使得分类准确率逐步提高。感知机是基础的机器学习算法之一,其思想和方法对神经网络等更复杂的模型也具有启发意义。","s":"一、什么是感知机","u":"/docs/Deep-Learning/基础知识/Perceptron","h":"#一什么是感知机","p":452},{"i":456,"t":"输入向量:感知机的输入向量是一个n维向量x=(x1,x2,...,xn)x=(x_1,x_2,...,x_n)x=(x1​,x2​,...,xn​),表示一个样本的各个特征值。 权值向量:感知机的权值向量也是一个n维向量w=(w1,w2,...,wn)w=(w_1,w_2,...,w_n)w=(w1​,w2​,...,wn​),表示每个特征对应的权重。 偏置项:偏置项bbb是一个常数,可看作是模型的截距,用于调整阈值函数的位置。 内积运算:感知机将输入向量和权值向量进行内积运算,并加上偏置项,得到输入信号z=w∗x+bz=w*x+bz=w∗x+b。 阈值函数:将输入信号zzz带入阈值函数,如符号函数sign(z)sign(z)sign(z),即可得到分类结果。 损失函数:感知机使用误分类点到超平面的距离来作为损失函数,即 L(y,z)=max(0,−y∗z)(1)L(y,z)=max(0,-y*z) \\tag{1}L(y,z)=max(0,−y∗z)(1) 其中yyy是样本的真实标签,zzz是预测值。 参数更新:根据当前样本误分类情况来对权值向量www和偏置项bbb进行迭代更新。 收敛条件:当全部训练样本被正确分类或达到最大迭代次数时,感知机算法停止迭代。 感知机训练流程伪代码如下所示: initialize w = 0 and b = 0 repeat if yi * zi <= 0 then w = w + yi * xi and b = b + yi end if until all classified correctly","s":"二、详细原理","u":"/docs/Deep-Learning/基础知识/Perceptron","h":"#二详细原理","p":452},{"i":458,"t":"感知机是一个二分类模型,最早的AI模型之一 求解算法等价于使用批量大小为1的梯度下降 要求数据集线性可分,不能拟合XOR异或等非线性问题,导致第一次AI寒冬","s":"三、总结","u":"/docs/Deep-Learning/基础知识/Perceptron","h":"#三总结","p":452},{"i":461,"t":"Logistic Regression直译为逻辑回归,是一种用来解决二分类问题的机器学习方法,用于估计某种事物的可能性。 逻辑回归经过sigmoid函数输出的结果可将其视为probability,而后根据设定的置信度阈值来判断该特征向量对应的标签是1还是0,用以解决二分类问题。","s":"一、什么是Logistic Regression","u":"/docs/Deep-Learning/基础知识/LogisticRegression","h":"#一什么是logistic-regression","p":459},{"i":463,"t":"线性回归要求因变量是连续性数值变量,而逻辑回归要求因变量是离散的变量。 逻辑回归以线性回归为理论支持,通过Sigmoid函数引入了非线性因素。 线性回归常用MSE函数作为损失函数,而逻辑回归作为分类任务的解决方案通常搭配交叉熵损失函数进行训练。","s":"二、逻辑回归(Logistic Regression)和线性回归(Linear Regression)","u":"/docs/Deep-Learning/基础知识/LogisticRegression","h":"#二逻辑回归logistic-regression和线性回归linear-regression","p":459},{"i":465,"t":"从历史角度方面看,逻辑回归在诞生时使用MSE作为损失函数,其目标是让输出的概率更接近于1,与回归任务的目标相似。","s":"三、逻辑回归到底是回归任务(Regression)还是分类任务(Classification)?","u":"/docs/Deep-Learning/基础知识/LogisticRegression","h":"#三逻辑回归到底是回归任务regression还是分类任务classification","p":459},{"i":467,"t":"逻辑回归以及其他分类任务在测试角度上的目标让提高分类准确率acc,但并不会将maximize accuracy作为数学上的训练方法,即在训练过程中不使用与acc有关的损失函数。 逻辑回归中的训练目标(评估函数)与预测目标(评估函数)并不相同,但方向一致。 acc=∑I(predi==yi)len(Y)(1)acc = \\frac{\\sum{I(pred_i==y_i)}}{len(Y)} \\tag{1}acc=len(Y)∑I(predi​==yi​)​(1) 如果在训练过程中以最大化acc为目标,当参数在训练过程中向标签方向更新使得逻辑回归输出的正确类的概率增大时,考虑以下两种情况: gradient = 0 if accuracy unchanged but weights changed: 由于阈值的存在,下一轮迭代输出的概率可能仍小于阈值,从而导致分类结果与上一次迭代相同,此时acc并无变化,出现梯度为0的情况。 gradient not continuous since the number of correct is not continunous: 当上一轮迭代的输出概率很接近阈值时,下一次迭代的概率提升了很少一点但是仍超过了阈值,且一个batch中有大量样本均存在这种情况,此时acc有显著提升而网络的权重的更新极小,此时,与acc有关的Loss函数对权重求导得到的梯度会出现梯度爆炸或者说不连续的情况。","s":"四、为什么逻辑回归或其他分类任务不使用分类准确率作为损失函数?","u":"/docs/Deep-Learning/基础知识/LogisticRegression","h":"#四为什么逻辑回归或其他分类任务不使用分类准确率作为损失函数","p":459},{"i":470,"t":"concat与stack函数 stack函数对输入的两个张量在指定的维度进行堆叠,是创建了新的维度 concat函数对输入的张量在指定维度进行拼接,没有创建新的维度 # stack和concat函数 a = torch.rand(4, 3) # A班4位同学,每位同学3科成绩 b = torch.rand(4, 3) # B班4位同学,每位同学3科成绩 c = torch.stack((a, b), dim=0) # 理解:年级所有同学的3科成绩(假设年级只有A班和B班两个班,每个班只有四名同学) print(c.shape) # torch.Size([2, 4, 3]) d = torch.concat((a, b), dim=1) # 理解:a是A班4位同学3科成绩,b是这4名同学其他3门课的成绩,拼接后代表这4名同学的6科成绩 print(d.shape) # torch.Size([4, 6]) list和tensor乘法不同之处 list的*乘法是复制元素,改变list的shape tensor的*乘法是对tensor中的元素进行点乘计算 a = torch.tensor([[3, 3, 3, 3]]) b = [3] # list的*乘是复制元素进行扩展 print(a * 3) # tensor([[9, 9, 9, 9]]) print(b * 3) # [3, 3, 3] 最大值 / 最小值索引:argmax / argmin 需要通过参数dim指定操作的维度,dim的理解 官方解释:The dimension to reduce 以二维张量举例,dim=1即在每一行中选出一个最大值 / 最小值元素的索引,索引的shape应为[dim0, 1],即reduce了dim=1的维度 # 最大值最小值索引 a = torch.tensor([[0.1, 0.9, 0.3], [0.9, 0.8, 0.99], [0.1, 0.7, 0.8], [0.88, 0.1, 0.2]]) # [4, 3] print(\"argmax output: \", a.argmax(dim=0), a.argmax(dim=1)) # argmax output: tensor([1, 0, 1]) tensor([1, 2, 2, 0]) Python zip函数 zip函数可以理解为压缩,将输入的两个迭代器的最外层对应元素压缩为一个新的元素 a = torch.tensor([1, 2, 3]) b = torch.tensor([4, 5, 6]) c = zip(a, b) for i in c: print(i) ''' (tensor(1), tensor(4)) (tensor(2), tensor(5)) (tensor(3), tensor(6)) ''' a = torch.tensor([[1, 2, 3], [3, 2, 1]]) b = torch.tensor([[4, 5, 6], [6, 5, 4]]) c = zip(a, b) for i in c: print(i) ''' (tensor([1, 2, 3]), tensor([4, 5, 6])) (tensor([3, 2, 1]), tensor([6, 5, 4])) '''","s":"一、常用函数部分","u":"/docs/Deep-Learning/基础知识/PytorchBasics","h":"#一常用函数部分","p":468},{"i":473,"t":"卷积层会对输入的局部区域进行卷积操作,因此对于输入图像中的每个位置都会产生一个响应。然而,在某些情况下,我们并不关心输入图像中每个位置的细节,而只是想获取该区域的一些重要特征。 假设我们想分类一张猫的图片,那么我们可能只需要提取出它的眼睛、鼻子、嘴巴和耳朵等特征,而不必考虑这些特征在图像中的精确位置。","s":"一、卷积对像素位置信息是敏感的","u":"/docs/Deep-Learning/基础知识/PoolingLayer","h":"#一卷积对像素位置信息是敏感的","p":471},{"i":475,"t":"池化层通过对输入的局部区域进行降采样操作,减少了特征图的大小,从而使得模型对于输入位置的微小变化更加鲁棒。例如,如果我们将一个对象稍微平移一点,它依然可以被正确地识别,因为池化层可以保留输入图像的关键特征,而忽略掉微小的位置变化。 但是需要注意的是,当池化的步幅和池化区域的大小过大时,会导致模型丢失较多的细节信息,从而影响模型性能。因此,在实际应用中,需要根据具体任务来选择适当的池化参数。 缓解卷积层对位置的敏感性,提高鲁棒:池化操作通常用于卷积层之后,使模型对于输入位置的微小变化更加鲁棒,减少图像中的噪声和冗余信息 减小特征图大小:池化操作会通过在特定位置上合并特征值来缩小输入特征图的空间大小,降低计算开销。 减少参数数量:池化操作减小了特征图的空间大小,从而也减小了需要训练的权重参数数量,更容易训练和优化。","s":"二、池化层的作用","u":"/docs/Deep-Learning/基础知识/PoolingLayer","h":"#二池化层的作用","p":471},{"i":477,"t":"池化层将输入特征图分割成若干个区域,然后对每个区域进行汇聚操作,将该区域内的特征值合并成一个值。这个操作可以使用不同的方法实现,如最大值池化、平均值池化等。 最常见的是最大值池化,其中每个区域的输出值是该区域内特征值的最大值,这样可以保留图像中最显著的特征,同时减少噪声和冗余信息的影响。","s":"三、池化的实现","u":"/docs/Deep-Learning/基础知识/PoolingLayer","h":"#三池化的实现","p":471},{"i":479,"t":"相关链接 论文:arXiv 参考资料: Transformer模型详解(图解最完整版) 【機器學習2021】Transformer (下) Transformer是Sequence-to-Sequence (Seq2Seq) 模型,模型的输入是向量序列,输出同样是向量序列,且输出的长度由模型经过学习决定。","s":"NeurIPS 2017: Attention Is All You Need","u":"/docs/Deep-Learning/论文笔记/Attention Is All You Need","h":"","p":478},{"i":481,"t":"Transformer由Encoder和Decoder组成,编码器和解码器都包含6个Block,整体结构如下图所示。","s":"整体结构","u":"/docs/Deep-Learning/论文笔记/Attention Is All You Need","h":"#整体结构","p":478},{"i":484,"t":"Transformer Encoder结构如下图所示。其中,Add指的是残差连接Residual Connection,Norm指的是Layer Normalization。","s":"整体结构","u":"/docs/Deep-Learning/论文笔记/Attention Is All You Need","h":"#整体结构-1","p":478},{"i":486,"t":"对于输入的句子,对一个词汇的嵌入向量的奇数维度使用sine函数进行编码,对偶数维度使用cosine函数计算编码。 公式如下所示,其中pospospos指的是该词汇在整个输入句子中的位置,2i2i2i以及2i+12i+12i+1指的是该词汇的嵌入向量中的维度,dmodeld_{model}dmodel​指的是在嵌入层之后嵌入向量的总维度。即对于每个输入词汇,都要计算dmodeld_{model}dmodel​次位置编码。 PE(pos,2i)=sin(pos100002i/dmodel)(1)PE_{(pos,2i)}=sin(\\frac{pos}{10000^{2i/d_{\\mathrm{model}}}}) \\tag{1}PE(pos,2i)​=sin(100002i/dmodel​pos​)(1) PE(pos,2i+1)=cos(pos100002i/dmodel)(2)PE_{(pos,2i+1)}=cos(\\frac{pos}{10000^{2i/d_{\\mathrm{model}}}}) \\tag{2}PE(pos,2i+1)​=cos(100002i/dmodel​pos​)(2) 根据三角函数的性质,对于pos+kpos+kpos+k位置的嵌入向量的某一维度(2i2i2i或2i+12i+12i+1)而言,可以表示为pospospos位置与kkk位置的嵌入向量的2i2i2i与2i+12i+12i+1维度的线性组合,使得位置向量中蕴含了相对位置的信息。 PE(pos+k,2i)=PE(pos,2i)×PE(k,2i+1)+PE(pos,2i+1)×PE(k,2i)PE(pos+k,2i+1)=PE(pos,2i+1)×PE(k,2i+1)−PE(pos,2i)×PE(k,2i)(3)\\begin{array}{l}PE(pos+k,2i)=PE(pos,2i)\\times PE(k,2i+1)+PE(pos,2i+1)\\times PE(k,2i)\\\\PE(pos+k,2i+1)=PE(pos,2i+1)\\times PE(k,2i+1)-PE(pos,2i)\\times PE(k,2i)\\end{array} \\tag{3}PE(pos+k,2i)=PE(pos,2i)×PE(k,2i+1)+PE(pos,2i+1)×PE(k,2i)PE(pos+k,2i+1)=PE(pos,2i+1)×PE(k,2i+1)−PE(pos,2i)×PE(k,2i)​(3) 最终,位置编码向量的维度与词汇的嵌入维度相同,进行element-wise的相加操作。 InputEmbedding(pos,i)=WordEmbedding(pos,i)+PositionEncoding(pos,i)(4)InputEmbedding(pos,i)=WordEmbedding(pos,i)+PositionEncoding(pos,i) \\tag{4}InputEmbedding(pos,i)=WordEmbedding(pos,i)+PositionEncoding(pos,i)(4)","s":"位置编码(Positional Encoding)","u":"/docs/Deep-Learning/论文笔记/Attention Is All You Need","h":"#位置编码positional-encoding","p":478},{"i":488,"t":"输入向量由Word Embedding和Positional Embedding相加得到。输入序列经过Mutil-Head Self-Attention之后,通过Residual Connection加上自身的输入向量,再经过Layer Normalization,之后送入FCN并进行Residual Connection加上送入FCN的输入自身,最终再进行Layer Normalization,以上构成了一个Encoder Block。每一个Block输出的向量序列长度等于输入的向量序列长度。","s":"具体结构","u":"/docs/Deep-Learning/论文笔记/Attention Is All You Need","h":"#具体结构","p":478},{"i":490,"t":"Decoder的任务是生成输出,可以根据是否一次性生成输出分为Autoregressive(自回归,abbr. AT)以及Non-Autoregressive(非自回归,abbr. NAT)两种模式。 自回归类型的Decoder需要逐步生成输出,并将之前自身输出的所有词汇经过嵌入层后生成token作为下一次的输入,通常每次生成一个词或一个符号。这种方式的缺点是需要保存和更新词表中的所有可能选项,因此在大词汇表上可能会变得非常慢。然而,它的优点是能够利用上下文信息来生成输出,这有助于提高翻译的质量。 非自回归类型的Decoder试图在一次操作中生成整个输出序列。这通常通过使用诸如注意力机制等策略来实现,这些策略允许解码器关注输入序列的不同部分,同时生成输出序列的不同部分。NAT的优点在于其高效性,因为它不需要保存和更新大量的可能选项。然而,由于它不能利用上下文信息来生成输出,因此其生成的输出质量普遍会低于AT。","s":"Decoder","u":"/docs/Deep-Learning/论文笔记/Attention Is All You Need","h":"#decoder","p":478},{"i":492,"t":"整体结构​ 词汇表(Vocabulary)​ 词汇表(Vocabulary)是一个包含了在特定语言或任务中所有可能出现的所有单词或标记的集合。在自然语言处理(NLP)中,词汇表是训练模型时所使用的唯一单词的集合,由具体的生成任务而确定。 Decoder每一步的输出是一个经过Softmax的Probability Distribution(概率分布),代表着词汇表中每一个词汇当前生成的概率,取最大概率值的词汇便是模型当前时间步输出的词汇。 Begin符号​ 解码器(Decoder)在每个时间步(或每个解码步骤)的输入都来自于前一个时间步自身的输出以及编码器(Encoder)的输出。特别地,首个时间步的输入是Begin符号以及编码器(Encoder)的输出,在每个后续的时间步,解码器的输入会是前一个时间步自身的输出以及编码器(Encoder)的输出,直到生成序列的结束。 特殊符号 Begin符号是在Lexicon中添加的特殊符号,用来表示Decoder生成的开始。Begin符号通常被嵌入到一个低维的连续向量空间中,这个向量空间是通过嵌入层(Embedding Layer)学习得到的,在嵌入层中,离散的符号被映射到一个实数向量。 Begin符号又叫Start符号或SOS符号(Start Of Sentence),都是表示生成的开始。End符号又叫EOS符号(End Of Sentence)。 End符号​ 在Decoder的生成中,每一个时间步的输出是词汇表中每一个单词经过Softmax之后的概率分布。为了保证生成任务可以通过模型自己停止而不是一直重复,我们向Decoder的输出中加入End符号的生成,即每一次输出除了词汇表的所有词汇外还有End符号的概率,当End符号是在所有词汇中概率最大的词汇时,生成停止。 掩码多头自注意力机制(Masked Multi-Head Self-Attention)​ 为什么使用掩码多头自注意力 掩码多头自注意力与Transformer训练时采取的Teacher Forcing策略有很大的关系,具体分析见下文《Teacher Forcing与Masked Multi-Head Self-Attention》的讨论环节:Teacher Forcing与Masked Multi-Head Self-Attention 观察Decoder的整体结构,掩码多头自注意力的输入是添加位置编码之后的Decoder当前时间步之前的所有输出单词经过嵌入后的向量表示。 掩码多头自注意力机制用于确保在生成序列的过程中,每个位置只能关注到该位置及其之前的位置。这是通过在Self-Attention的计算中应用一个掩码(mask)来实现的。这确保了在生成序列时,每个位置只能查看到它之前的信息,而不能查看到未来的信息,从而实现了自回归性质。 具体来说,添加掩码后的自注意力机制在生成注意力分数时不再考虑输入序列的所有向量。如在输入向量aia^iai在计算注意力分数时,只将aia^iai的query向量与a1a^1a1至aia^{i}ai的iii个key向量做dot product,而不考虑aia^iai之后的输入的key。 提示 对于第sss个时间步,Masked Mutil-Head Self-Attention的输入是时间步sss之前Decoder生成的所有输出单词的嵌入表示。 交叉注意力(Cross-Attention)​ 交叉注意力是连接Encoder和Decoder的桥梁,也是Decoder输入的重要组成部分。 交叉注意力接收两个输入序列,一个来自编码器(Encoder)的输出序列(通常是输入序列的表示),另一个来自解码器(Decoder),是经过掩码多头自注意力机制的输出序列(通常是正在生成的序列的中间表示)。 在交叉注意力中,每次计算注意力得分的query来自解码器,key和value来自编码器。解码器每个向量的查询(Query)与编码器位置的键(Key)进行点积得到了注意力分数,通过Softmax操作后转换为注意力权重,再与编码器位置的值(Value)weighted sum得到加权注意力分数,最终将加权注意力分数求和得到每个输入向量的输出。","s":"Autoregressive Decoder(AT)","u":"/docs/Deep-Learning/论文笔记/Attention Is All You Need","h":"#autoregressive-decoderat","p":478},{"i":496,"t":"在 Transformer 中,Encoder 不像 Decoder 需要生成序列,因此它通常不涉及标签的预测。Encoder 的训练通常是在整个模型中的联合训练中进行的,通过优化整个模型的损失函数来进行。 Transformer 的整体训练过程一般分为以下几个步骤: 编码器(Encoder)的正向传播: 输入序列经过编码器的正向传播,产生一组上下文表示。 解码器(Decoder)的正向传播: 解码器接收上下文表示,并生成目标序列。 计算损失: 通过比较生成的目标序列与实际目标序列,计算损失。在 Decoder 中,通常使用交叉熵损失函数。 反向传播: 根据损失,进行反向传播,更新模型参数。这个过程中,梯度通过整个模型传播,包括 Encoder 和 Decoder。 整个模型的参数(包括 Encoder 和 Decoder)都是通过最小化整体损失来进行联合训练的。这是因为整体模型需要协同工作,Encoder 的表示对于 Decoder 的性能至关重要。在训练过程中,梯度从损失函数传播回整个模型,包括 Encoder 和 Decoder,从而更新它们的参数。 需要注意的是,Transformer 模型通常使用的是端到端的训练方式,整个模型的参数是一次性更新的。在某些场景下,你可能会看到对 Encoder 或 Decoder 进行微调(fine-tuning)的情况,但这是在特定应用场景下的调整,不是 Transformer 模型的标准训练方式。","s":"损失函数","u":"/docs/Deep-Learning/论文笔记/Attention Is All You Need","h":"#损失函数","p":478},{"i":498,"t":"在Transformer的推理阶段,自回归类型的Decoder根据分词方式的不同,一个词汇一个词汇的输出,将当前时间步之前生成的所有词汇作为输入load进入Decoder中。但在训练时如果遵从同样的生成范式会大大降低效率,并且面临则一步错步步错的风险(Error Propagation)。 因此使用Teacher Forcing策略,将Ground Truth一次性喂到Decoder中,使模型更快收敛并且避免误差积累的问题。 但是,自回归Decoder在推理时是一个一个词汇产生的,在产生第iii个词汇时其后续的词汇是未知的,更不用说进行注意力分数的就算了,而在训练过程中使用Teacher Forcing时却可以得到第i+1i+1i+1个及其之后词汇的注意力信息,如果不添加其他策略显然会对模型的泛化能力造成很大的影响,而且这并不符合自回归(Autoregression)的特性。为了解决这个问题,掩码多头注意力机制应运而生,在训练阶段将模型在时间发展顺序的右侧的输入masked掉,防止模型学习到不该学习的注意力。","s":"Teacher Forcing","u":"/docs/Deep-Learning/论文笔记/Attention Is All You Need","h":"#teacher-forcing","p":478},{"i":500,"t":"参考文献:MultiHead-Attention和Masked-Attention的机制和原理 与Encoder的多头自注意力不同,在Decoder中,为注意力机制应用了掩码,使模型只能关注到当前位置及其之前的位置,而不能访问未来的信息。这解决了引入Teacher Forcing出现的问题,避免了训练与推理阶段的Mismatch,维护了自回归的特性。 具体来说,模拟推理过程中第一个词汇时的场景。当模型只有voc1voc_1voc1​词汇向量输入时,在Decoder中,voc1voc_1voc1​与自身计算注意力分数,于是有 [o1]=[α1,1′][v1](5)\\begin{bmatrix}o_1\\end{bmatrix}=\\begin{bmatrix}\\alpha_{1,1}^{\\prime}\\end{bmatrix}\\begin{bmatrix}v_1\\end{bmatrix}\\tag{5}[o1​​]=[α1,1′​​][v1​​](5) 我们再模拟训练过程中使用Teacher Forcing,一次性输入为两个词汇voc1voc_1voc1​与voc2voc_2voc2​的情况,于是有 [o1o2]=[α1,1′α2,1′α1,2′α2,2′][v1v2](6)\\begin{bmatrix}o_1\\\\o_2\\end{bmatrix}=\\begin{bmatrix}\\alpha_{1,1}^{\\prime}&\\alpha_{2,1}^{\\prime}\\\\\\alpha_{1,2}^{\\prime}&\\alpha_{2,2}^{\\prime}\\end{bmatrix}\\begin{bmatrix}v_1\\\\v_2\\end{bmatrix} \\tag{6}[o1​o2​​]=[α1,1′​α1,2′​​α2,1′​α2,2′​​][v1​v2​​](6) 然而,为了使训练过程中符合推理时自回归的特性,理想的输出应该是 [o1o2]=[α1,1′0α1,2′α2,2′][v1v2](7)\\begin{bmatrix}o_1\\\\o_2\\end{bmatrix}=\\begin{bmatrix}\\alpha_{1,1}^{\\prime}&0\\\\\\alpha_{1,2}^{\\prime}&\\alpha_{2,2}^{\\prime}\\end{bmatrix}\\begin{bmatrix}v_1\\\\v_2\\end{bmatrix} \\tag{7}[o1​o2​​]=[α1,1′​α1,2′​​0α2,2′​​][v1​v2​​](7) 继续扩展,当有nnn个输入词汇时,应该有 [o1o2⋮on]=[α1,1′0⋯0α1,2′α2′⋯0⋮⋮⋮α1,n′α2,n′⋯αn,n′][v1v2⋮vn](8)\\begin{bmatrix}o_1\\\\o_2\\\\\\vdots\\\\o_n\\end{bmatrix}=\\begin{bmatrix}\\alpha'_{1,1}&0&\\cdots&0\\\\\\alpha'_{1,2}&\\alpha'_2&\\cdots&0\\\\\\vdots&\\vdots&&\\vdots\\\\\\alpha'_{1,n}&\\alpha'_{2,n}&\\cdots&\\alpha'_{n,n}\\end{bmatrix}\\begin{bmatrix}v_1\\\\v_2\\\\\\vdots\\\\v_n\\end{bmatrix}\\tag{8}⎣⎡​o1​o2​⋮on​​⎦⎤​=⎣⎡​α1,1′​α1,2′​⋮α1,n′​​0α2′​⋮α2,n′​​⋯⋯⋯​00⋮αn,n′​​⎦⎤​⎣⎡​v1​v2​⋮vn​​⎦⎤​(8) 因此,我们需要将当前时间步计算的词汇的时间顺序右侧的输入词汇全部掩码,置为0。 在源码中,有如下片段实现掩码: if mask is not None: scores = scores.masked_fill(mask == 0, -1e9) p_attn = scores.softmax(dim=-1) 在源码中,将mask置为负无穷是因为这是在经过Softmax之前进行的掩码,在经过Softmax之后负无穷小就变成了0。","s":"Teacher Forcing与Masked Multi-Head Self-Attention","u":"/docs/Deep-Learning/论文笔记/Attention Is All You Need","h":"#teacher-forcing与masked-multi-head-self-attention","p":478},{"i":502,"t":"相关链接 论文:arXiv 代码:GitHub 参考文献: Latent Diffusion Models论文解读 Stable Diffusion就是在这篇文章的基础上,使用LDM进行开发的。","s":"CVPR 2022: High-Resolution Image Synthesis with Latent Diffusion Models","u":"/docs/Deep-Learning/论文笔记/High-Resolution Image Synthesis with Latent Diffusion Models","h":"","p":501},{"i":505,"t":"相关链接 论文:arXiv 代码:GitHub 参考资料: 54、Probabilistic Diffusion Model概率扩散模型理论与完整PyTorch代码详细解读 【论文精读】Diffusion Model 开山之作DDPM","s":"NeurIPS 2020: Denoising Diffusion Probabilistic Models","u":"/docs/Deep-Learning/论文笔记/Denoising Diffusion Probabilistic Models","h":"","p":504},{"i":508,"t":"条件概率的定义​ 条件概率是指在给定另一个事件发生的条件下,某一事件发生的概率。条件概率通常用符号P(A∣B)P(A\\mid B)P(A∣B)表示,读作“在 B 发生的条件下 A 发生的概率”。 条件概率的计算公式为: P(A∣B)=P(A,B)P(B)P(A\\mid B)=\\frac{P(A,B)}{P(B)}P(A∣B)=P(B)P(A,B)​ 其中: P(A,B)P(A,B)P(A,B)是事件AAA、BBB同时发生的概率,也叫联合概率 P(B)P(B)P(B)是事件BBB独立发生的概率 全概率公式​ 对于事件AAA而言,假设有一组互斥且穷尽的条件事件B1,B2,…BnB_{1},B_{2},\\ldots B_{n}B1​,B2​,…Bn​构成一个完备事件组,则事件AAA的概率等于事件AAA在每个条件事件BiB_iBi​下发生的概率与该条件事件发生概率的乘积和。 P(A)=∑i=1nP(A∣Bi)⋅P(Bi)P(A)=\\sum_{i=1}^nP(A\\mid B_i)\\cdot P(B_i)P(A)=i=1∑n​P(A∣Bi​)⋅P(Bi​) 可以看出,全概率公式是由“因”(条件事件BiB_iBi​)推“果”(结果事件AAA)的过程,即当知道某结果事件的原因后,推断由该原因导致这件事发生的概率是多少。 贝叶斯公式​ 贝叶斯公式在观测到结果事件AAA发生后,计算其条件事件BiB_iBi​在事件AAA已经发生的条件下而发生的后验概率。 继续沿用上述全概率公式的符号定义,则有: P(Bi∣A)=P(A∣Bi)⋅P(Bi)P(A)P(B_i\\mid A)=\\frac{P(A\\mid B_i)\\cdot P(B_i)}{P(A)}P(Bi​∣A)=P(A)P(A∣Bi​)⋅P(Bi​)​ 其中: P(Bi)P(B_i)P(Bi​)以及P(A)P(A)P(A)称为先验概率 P(Bi∣A)P(B_i\\mid A)P(Bi​∣A)称为后验概率 P(A∣Bi)P(A\\mid B_i)P(A∣Bi​)称为似然","s":"先验概率与后验概率","u":"/docs/Deep-Learning/论文笔记/Denoising Diffusion Probabilistic Models","h":"#先验概率与后验概率","p":504},{"i":510,"t":"条件概率的一般形式​ P(A,B,C)=P(C∣A,B)⋅P(A,B)=P(C∣A,B)⋅P(B∣A)⋅P(A)P(A,B,C)=P(C\\mid A,B)\\cdot P(A,B)=P(C\\mid A,B)\\cdot P(B\\mid A)\\cdot P(A)P(A,B,C)=P(C∣A,B)⋅P(A,B)=P(C∣A,B)⋅P(B∣A)⋅P(A) P(B,C∣A)=P(B∣A)⋅P(C∣A,B)P(B,C\\mid A)=P(B\\mid A)\\cdot P(C\\mid A,B)P(B,C∣A)=P(B∣A)⋅P(C∣A,B) 其中,第二行公式的推导如下: P(B,C∣A)=P(A,B,C)P(A)=P(A,B,C)P(A,B,C)P(C∣A,B)⋅P(B∣A)=P(B∣A)⋅P(C∣A,B)\\begin{align*} P(B,C \\mid A) &= \\frac{P(A,B,C)}{P(A)} \\\\ &= \\frac{P(A,B,C)}{\\frac{P(A,B,C)}{P(C \\mid A,B) \\cdot P(B \\mid A)}} \\\\ &= P(B \\mid A) \\cdot P(C \\mid A,B) \\end{align*}P(B,C∣A)​=P(A)P(A,B,C)​=P(C∣A,B)⋅P(B∣A)P(A,B,C)​P(A,B,C)​=P(B∣A)⋅P(C∣A,B)​ 高斯分布的KL散度​ 对于两个单一变量的高斯分布p∼N(μ1,σ12)p\\sim \\mathcal{N}(\\mu_1,\\sigma_1^2)p∼N(μ1​,σ12​)和q∼N(μ2,σ22)q\\sim \\mathcal{N}(\\mu_2,\\sigma_2^2)q∼N(μ2​,σ22​)而言,它们的KL散度定义为: DKL(p,q)=log⁡σ2σ1+σ12+(μ1−μ2)22σ22−12D_{KL}(p,q)=\\log\\frac{\\sigma_2}{\\sigma_1}+\\frac{\\sigma_1^2+(\\mu_1-\\mu_2)^2}{2\\sigma_2^2}-\\frac12DKL​(p,q)=logσ1​σ2​​+2σ22​σ12​+(μ1​−μ2​)2​−21​","s":"条件概率与高斯分布的KL散度","u":"/docs/Deep-Learning/论文笔记/Denoising Diffusion Probabilistic Models","h":"#条件概率与高斯分布的kl散度","p":504},{"i":512,"t":"马尔科夫链指当前状态的概率只与上一时刻有关,例如若满足马尔科夫关系A→B→CA\\to B\\to CA→B→C,则有: P(A,B,C)=P(C∣A,B)⋅P(A,B)=P(C∣B)⋅P(B∣A)⋅P(A)P(A,B,C) =P(C\\mid A,B)\\cdot P(A,B)=P(C\\mid B)\\cdot P(B\\mid A)\\cdot P(A)P(A,B,C)=P(C∣A,B)⋅P(A,B)=P(C∣B)⋅P(B∣A)⋅P(A) P(B,C∣A)=P(B∣A)⋅P(C∣B)P(B,C\\mid A)=P(B\\mid A)\\cdot P(C\\mid B)P(B,C∣A)=P(B∣A)⋅P(C∣B)","s":"马尔科夫链条件概率形式","u":"/docs/Deep-Learning/论文笔记/Denoising Diffusion Probabilistic Models","h":"#马尔科夫链条件概率形式","p":504},{"i":514,"t":"从任意高斯分布N(μ,σ2)\\mathcal{N}(\\mu,\\sigma^2)N(μ,σ2)采样xxx时,可以先从标准高斯分布N(0,1)\\mathcal{N}(0,1)N(0,1)中sample出zzz,再令 x=σ∗z+μx=\\sigma * z + \\mux=σ∗z+μ 优势: 由于线性变化,采样过程中对其他参数都有明确的导数,可以进行反向传播 可以通过线性变换来控制参数化的采样 标准正态分布具有易采样的性质","s":"参数重整化技巧","u":"/docs/Deep-Learning/论文笔记/Denoising Diffusion Probabilistic Models","h":"#参数重整化技巧","p":504},{"i":516,"t":"相关链接 论文:CVPR 2023 open access 代码:Piscart-AI-Research 文章的命名风格借鉴了CVPR 2022的文章Few Shot Generative Model Adaption via Relaxed Spatial Structural Alignment","s":"CVPR 2023: Zero-shot Generative Model Adaptation via Image-specific Prompt Learning","u":"/docs/Deep-Learning/论文笔记/Zero-shot Generative Model Adaptation via Image-specific Prompt Learning","h":"","p":515},{"i":518,"t":"本文提出了Image-specific Prompt Learning(IPL)方法来解决风格迁移任务中生成模型从源域到目标域的适应问题。一个Latent Mapper来从源域图像中学习出包含图像特征且适应目标域的prompt,从而指导目标域生成器的训练。 This produces a more precise adaptation direction for every cross-domain image pair, endowing the target-domain generator with greatly enhanced flexibility. 训练资料是源域和目标域的文字标签以及源域的图像,并不需要目标域的图像。此外,IPL独立于生成模型,可以自由选择Diffusion Model或GAN等。","s":"摘要","u":"/docs/Deep-Learning/论文笔记/Zero-shot Generative Model Adaptation via Image-specific Prompt Learning","h":"#摘要","p":515},{"i":521,"t":"Generative Model Adaption的任务是使在大规模源域图片上训练的生成模型适应到数据有限的目标域中,根据目标域训练资料的大小可以分为few-shot和zero-shot。 few-shot​ 对于few-shot任务,一般是通过有限的目标域训练集资料fine-tune预训练模型。 然而,fine-tune通常会导致过拟合。为了解决过拟合问题,通常使用的方法是施加强正则化、使用扰动法、跨域对齐或数据增强。 相关文献方法 强正则化:Han Zhang, Zizhao Zhang, Augustus Odena, and Honglak Lee. Consistency regularization for generative adversarial networks. In ICLR, 2019. 扰动法:Sangwoo Mo, Minsu Cho, and Jinwoo Shin. Freeze the discriminator: a simple baseline for fine-tuning GANs. In CVPR Workshops, 2020. 跨域对齐:Utkarsh Ojha, Yijun Li, Jingwan Lu, Alexei A Efros, Yong Jae Lee, Eli Shechtman, and Richard Zhang. Fewshot image generation via cross-domain correspondence. In CVPR, 2021. 数据增强:Ngoc-Trung Tran, Viet-Hung Tran, Ngoc-Bao Nguyen, Trung-Kien Nguyen, and Ngai-Man Cheung. On data augmentation for GAN training. TIP, 2021. zero-shot​ 对于零样本的图像生成模型的适应任务,NADA率先引入了CLIP模型来获取必须的先验知识,通过预训练大模型的语言理解能力实现在目标域只需要文字标签而不需要图片,将源域和目标域之间的差距编码为在CLIP空间上文字引导的适应方向。 此后,CVPR 2022发表的DiffusionCLIP使用了Diffusion模型代替NADA中的StyleGANs,获得了更好的特征保存能力。 然而这些方法都是采用了固定的适应方向,只包含基础的域知识,而不是图片特定的特征。在本文中,作者发现这种共享的、固定的适应方向会导致Mode Collapse(模式坍塌),因此提出了从每个源域图像中学习出多样且准确的prompt,为生成模型向目标域的适应提供更精确的方向。","s":"Generative Model Adaption","u":"/docs/Deep-Learning/论文笔记/Zero-shot Generative Model Adaptation via Image-specific Prompt Learning","h":"#generative-model-adaption","p":515},{"i":523,"t":"Prompt工程最初是一种Knowledge Probing(知识探测)方法,给定完形填空(cloze-style)类的prompt,引导模型产生相对应的答案。 然而人工设计的prompt通常不是最优的,可能提供不准确的适应方向。为了解决这个问题,在NLP领域的Prompt Learning发展迅速,并随着视觉-语言大模型的发展,应用在了视觉任务中。 Kaiyang Zhou等人首先在图像分类任务中采用上下文优化,在词嵌入空间中对具有连续向量的上下文词进行建模。随后Prompt Learning在计算机视觉中的许多下游任务都得到了探索,例如目标检测、视频理解和迁移学习等。","s":"Prompt Learning","u":"/docs/Deep-Learning/论文笔记/Zero-shot Generative Model Adaptation via Image-specific Prompt Learning","h":"#prompt-learning","p":515},{"i":526,"t":"IPL方法分两个阶段。 第一阶段:训练Latent Mapper​ 第一阶段的主要任务是训练Lantent Mapper来为每一个训练集的源域图片生成一组prompt。Latent Mapper接收源域图像的latent representation,生成一组prompt向量。第一阶段需要解决两个问题,即在zero-shot的背景下,如何实现prompt与源域图像特征的对齐以及prompt与目标域空间的对齐,因此第一阶段的训练分两部分进行。 第一部分是Latent Mapper输出的prompt与目标域标签concat后送入来自CLIP的Text Encoder得到目标域图片prompt在CLIP空间的编码表示,并与目标域标签经过Text Encoder后的编码共同作为Domain Loss的输入来约束从源域中学习到的prompt与目标域空间对齐。 第二部分是Latent Mapper输出的prompt与源域标签concat后送入来自CLIP的Text Encoder得到源域图片prompt描述在CLIP空间的编码表示,同时源域图像再经过来自CLIP的Image Encoder后得到其在CLIP空间的编码表示。将源域的prompt文字和图像编码表示作为contrastive learning loss的输入,约束学习到的prompt与源域图像的特征对齐。 第二阶段:将Latent Mapper插入目标域生成器的训练过程​ 第二阶段利用Directional CLIP Loss来训练目标域生成器,使源于生成器向目标域迁移学习。需要输入源域以及目标域图像、源域以及目标域的prompt描述。源域图像的latent representation分别输入至源域生成器和目标域生成器中得到对应的图像,同时指导风格迁移方向的源域以及目标域的prompt描述由Latent Mapper接收源域图像的隐式表示后输出再分别与源域和目标域标签concat而得到。分别将源域图像、生成的目标域图像以及源域、目标域的图片prompt描述一起输入至Directional CLIP Loss,从而约束由源域图像生成器初始化的目标域图像生成器向目标域的迁移学习。","s":"概述","u":"/docs/Deep-Learning/论文笔记/Zero-shot Generative Model Adaptation via Image-specific Prompt Learning","h":"#概述","p":515},{"i":529,"t":"实战练习 Transformer实战练习,代码见Github仓库。 This is a practice of Transformer, follow the guide of Github Repo.","s":"Speaker Classification","u":"/docs/Deep-Learning/实战练习/Speaker Classification","h":"","p":528},{"i":531,"t":"Classify the speaker of given features, learn how to use Transformer and how to adjust parameters of transformer.","s":"Overview","u":"/docs/Deep-Learning/实战练习/Speaker Classification","h":"#overview","p":528},{"i":533,"t":"The original dataset is VoxCeleb1. We randomly select 600 speakers from VoxCeleb1, then preprocess the raw waveforms into mel-spectrograms. You can download the preprocessed dataset from Google Drive. Arguments: data_dir: The path to the data directory. metadata_path: The path to the metadata. segment_len: The length of audio segment for training. The architecture of dataset directory is shown below, where uttr-{random string}.pt represents PyTorch data file containing valid mel-spectrogram data. data directory/ ├── mapping.json ├── metadata.json ├── testdata.json └── uttr-{random string}.pt","s":"Dataset","u":"/docs/Deep-Learning/实战练习/Speaker Classification","h":"#dataset","p":528},{"i":535,"t":"This is also the assignment solution of ML2021Spring HW4.","s":"Related","u":"/docs/Deep-Learning/实战练习/Speaker Classification","h":"#related","p":528},{"i":537,"t":"提示 对于TensorFlow框架,可以使用TensorBoard实现可视化。 对于PyTorch框架,可以使用Visdom或TensorBoardX实现可视化,本篇主要讲述Visdom。","s":"Visdom可视化","u":"/docs/Deep-Learning/实战练习/Visdom Visualization","h":"","p":536},{"i":539,"t":"pip install visdom","s":"安装Visdom","u":"/docs/Deep-Learning/实战练习/Visdom Visualization","h":"#安装visdom","p":536},{"i":542,"t":"首先要通过终端启动Visdom,使用本机端口运行服务器。 以下二者均可。 visdom python -m visdom.server","s":"Visdom的启动","u":"/docs/Deep-Learning/实战练习/Visdom Visualization","h":"#visdom的启动","p":536},{"i":544,"t":"from visdom import Visdom vis = Visdom() # 实例化 # 创建一条曲线,前两个参数分别为y轴数据、x轴数据,win参数是窗口的唯一标识,opt可选字典中可以给出窗口的title和legend vis.line([0.], [0.], win='win_id', opts=dict(title=\"win_title\")) # 在训练过程中的合适位置向初始化的曲线中喂数据 # viz.line([real_y_data], [global_step], win='win_id', update='append') # 查看训练loss vis.line([loss.item()], [epoch], win='win_id', update='append') # 对于非image数据,在传入visdom时仍需要先转化为numpy类型","s":"单窗口单曲线的可视化","u":"/docs/Deep-Learning/实战练习/Visdom Visualization","h":"#单窗口单曲线的可视化","p":536},{"i":546,"t":"from visdom import Visdom vis = Visdom() vis.line([[0., 0.]], [0.], win='win_id', opts=dic(title=\"win_title\", legend=[\"curve_name_1\", \"curve_name_2\"])) # 在训练过程中的合适位置向初始化的曲线中喂数据 viz.line([[y1, y2]], [global_step], win='win_id', update='append')","s":"单窗口多曲线的可视化","u":"/docs/Deep-Learning/实战练习/Visdom Visualization","h":"#单窗口多曲线的可视化","p":536},{"i":548,"t":"告示栏的启用 在docusaurus.config.js的themeConfig中加入以下代码 announcementBar: { id: 'announcementBar-3', content: 'Welcome to my notebook!', isCloseable: false, }, 告示栏的背景个性化 在custom.css中加入以下代码 div[class^='announcementBar_'] { background: repeating-linear-gradient( -35deg, var(--ifm-color-primary-lighter), var(--ifm-color-primary-lighter) 20px, var(--ifm-color-primary-lightest) 10px, var(--ifm-color-primary-lightest) 40px ); font-weight: 700; }","s":"告示栏","u":"/docs/Others/博客搭建/告示栏","h":"","p":547},{"i":550,"t":"本篇论文主要基于 IPL 的思想实现。本仓库大部分从 IPL-Zero-Shot-Generative-Model-Adaptation fork 而来并做出了一定修改。","s":"本科毕业论文:基于 Prompt Learning 的视觉-语言大模型在图像生成中的应用与研究","u":"/docs/Deep-Learning/实战练习/Undergraduate-Dissertation","h":"","p":549},{"i":553,"t":"conda create -n ipl python=3.8 conda activate ipl","s":"创建 Anaconda 虚拟环境","u":"/docs/Deep-Learning/实战练习/Undergraduate-Dissertation","h":"#创建-anaconda-虚拟环境","p":549},{"i":555,"t":"请确保 NVIDIA 驱动、CUDA 以及 PyTorch 之间版本互相匹配。 conda install pytorch torchvision torchaudio pytorch-cuda=11.8 -c pytorch -c nvidia pip install ftfy regex tqdm ninja pip install git+https://github.com/openai/CLIP.git","s":"安装依赖","u":"/docs/Deep-Learning/实战练习/Undergraduate-Dissertation","h":"#安装依赖","p":549},{"i":557,"t":"预训练的源域生成器可以通过 Google Drive 或者 Tsinghua Cloud 下载,并将其置于 ./pre_stylegan 文件夹中。","s":"下载预训练生成器","u":"/docs/Deep-Learning/实战练习/Undergraduate-Dissertation","h":"#下载预训练生成器","p":549},{"i":561,"t":"ctx_init 参数用于初始化 prompts,官方提供的演示 context 是a photo of a。 source_prompts = [prompt_prefix + \" \" + args.source_class] target_prompts = [prompt_prefix + \" \" + args.target_class] 源域的初始提示词 source_prompts 是 ctx_init 与源域标签的组合。若源域标签为 photo,则源域的初始提示词是 a photo of a photo。目标域的初始提示词同理。","s":"prompts 的初始化","u":"/docs/Deep-Learning/实战练习/Undergraduate-Dissertation","h":"#prompts-的初始化","p":549},{"i":563,"t":"源域以及目标域的初始提示词接下来会进行 tokenize: source_tokenized_prompts = torch.cat([clip.tokenize(p) for p in source_prompts]).to(device) # (1, 77) 'sot a photo of a photo eot' 在经过tokenize后为tensor [[49406, 320, 1125, 539, 320, 1125, 49407, etc]] # 77是CLIP在tokenize方法中缺省的context_length,超过context_length将被truncate,不足的将用0补齐 target_tokenized_prompts = torch.cat([clip.tokenize(p) for p in target_prompts]).to(device) # (1, 77) 'sot a photo of a disney' 在经过tokenize后为tensor [[49406, 320, 1125, 539, 320, 4696, 49407, etc]] # 77是CLIP在tokenize方法中缺省的context_length,超过context_length将被truncate,不足的将用0补齐 tokenize 是 CLIP 对送入的 prompt 字符串进行标记化处理,在头部和尾部添加 startoftext 以及 endoftext 标记,最终为两个首尾标记和全部单词生成 int 标记。其中 CLIP 模型缺省的 context_length 是77,若 prompt 大于 77 会进行截断(truncate),若小于 77 会进行补零,因此 source_tokenized_prompts 与 target_tokenized_prompts 的形状均为 (1, 77)。 在提示词标记化之后,将进行嵌入表示 embedding: source_embedding = clip_model.token_embedding(source_tokenized_prompts).type(clip_model.dtype) # (1, 77, 512) 其中512是CLIP中的n_dim,token_embedding层的词嵌入的维度 target_embedding = clip_model.token_embedding(target_tokenized_prompts).type(clip_model.dtype) # (1, 77, 512) 其中512是CLIP中的n_dim,token_embedding层的词嵌入的维度","s":"prompts 的 tokenize 与 embedding","u":"/docs/Deep-Learning/实战练习/Undergraduate-Dissertation","h":"#prompts-的-tokenize-与-embedding","p":549},{"i":565,"t":"在 Mapper 生成 prompts 后进行 prompts 的特征提取时,需要传入 tokenize 之后的人工初始化 prompt(‘a photo of a photo.’或‘a photo of a disney.’),用于选择 eot 符号对应的维度来进行特征投影(因为 eot 作为整个句子的结尾,被认为该维度包含更多的信息。具体做法:由于在 tokenize 之后,eot 符号对应的维度的值最大,因此可使用 argmax 来定位),以保证最后得到的特征形状与图像特征提取的输出形状相同,使得后续可以进行对比学习的损失计算。","s":"compute_text_features 的实现细节","u":"/docs/Deep-Learning/实战练习/Undergraduate-Dissertation","h":"#compute_text_features-的实现细节","p":549},{"i":567,"t":"Z空间与W空间​ # Z空间到W空间的变换 sample_z = mixing_noise(args.batch_mapper, 512, args.mixing, device) # (batch_size, 512) sample_w = net.generator_frozen.style(sample_z) # (batch_size, 512) Z 空间和 W 空间是 StyleGAN 模型中两种不同的隐变量空间,分别用于控制生成图像的随机特征和样式信息。W 空间通过对 Z 空间的映射得到。 Z 空间(Latent Space Z): Z 空间是随机噪声空间,通常由随机噪声向量组成,表示了图像的随机特征。 在 StyleGAN 中,Z 空间的维度通常为 512 维。这意味着一个 Z 向量由 512 个数字组成,每个数字表示了图像的一个随机特征的强度或者方向。 W 空间(Style Space W): W 空间经过特征解耦的隐空间,与 Z 空间相比更加解耦合。 在 StyleGAN 中,W 空间的维度也通常为 512 维,是通过mapping network进行映射得到的,mapping network由PixelNorm层与EqualLinear层构成。以下代码节选自sg2_model.py: '''mapping network''' layers = [PixelNorm()] for i in range(n_mlp): layers.append( EqualLinear( style_dim, style_dim, lr_mul=lr_mlp, activation=\"fused_lrelu\" ) ) self.style = nn.Sequential(*layers) Z 空间与 W 空间的关系: 在 StyleGAN 中,通常会先将一个 Z 向量映射到 W 空间,然后再将 W 向量输入到生成器网络中生成图像。 Z 空间提供了初始随机噪声,而 W 空间则通过特征解耦提供更多控制图像风格的灵活性。通过对 Z 和 W 之间的映射以及 W 在生成器中的应用,StyleGan 实现了高度可控且具有良好生成效果的图像合成。 损失函数​ 在代码中,stage 1 的损失函数是 global_clip_loss,该损失由三部分组成: 对比学习损失:Mapper 生成的源域 prompts 的特征(注意,这里的 prompts 特征是与人工初始化的 prompts 的特征做过 element-wise 相加后的特征)与源域图像特征的余弦相似度组成的对比学习损失; 目标域正则化损失:Mapper 生成的目标域 prompts 的特征与目标域文本标签特征的余弦相似度,这里生成的目标域 prompts 特征同样也是与人工初始化的 prompts 做过加法的。注意该损失有权重 lambda_l。 源域正则化:计算生成的源域prompts与源域标签之间的余弦相似度,由 lambda_src 控制,默认是 0。","s":"训练 stage 1","u":"/docs/Deep-Learning/实战练习/Undergraduate-Dissertation","h":"#训练-stage-1","p":549},{"i":569,"t":"确定目标域生成域需要更新的层​ 在训练的第二阶段进行前向传播时,需要先对目标域生成器(generator_trainable)的所有层进行 unfreeze,然后对更新哪些层做出选择,承担选择任务的功能函数:model.ZSSGAN.ZSSGAN.determine_opt_layers,最后 freeze 所有层后再 unfreeze 选择的网络层。 if self.training and self.auto_layer_iters > 0: self.generator_trainable.unfreeze_layers() # unfreeze train_layers = self.determine_opt_layers() # layer to train if not isinstance(train_layers, list): train_layers = [train_layers] self.generator_trainable.freeze_layers() self.generator_trainable.unfreeze_layers(train_layers) # unfreeze 具体选择带更新网络层的策略: 将 W 空间的隐向量送入目标域生成器(SG2Generator)中,并进行反向传播,此时可以通过反向传播后 W 空间隐向量不同维度的更新幅度来衡量不同网络层的影响力,因此选出更新幅度最大的维度就可以确定在 Model Adaption 中需要更新的网络层。 之所以 W 空间编码在 n_latent 维度上的序号就代表着对应的网络层数的序号,是因为 StyleGAN 生成器的结构决定了这一点:StyleGAN 生成器中,W 空间编码的不同维度会被送入生成器网络的不同层,控制这些层的特征映射 (feature mapping)。具体来说,W 空间编码的每个维度会被重复 n_latent 次,作为该层的风格向量 (style vector),通过 AdaIN (Adaptive Instance Normalization) 层控制该层的特征映射。因此,W 空间编码的第 i 个维度会影响生成器网络中第 i 层的特征映射。当某个维度的 W 值被更新的程度较大时,就意味着该维度对应的层在生成目标图像时起到了重要作用,需要被优化。 损失函数​ stage 2 的损失函数是 CLIP Loss 类中的 clip_directional_loss,该损失函数由两部分组成: edit_direciton:源域生成器与目标域生成器生成的图片在经过 image encdoer 后做 element-wise 的相减,最后除以自身的 L2 Norm 方便后续与 target_direction 计算余弦相似度。 target_direction:Mapper 产生的源域和目标域 prompts 的 text_features 做element-wise相减后,最后初一自身的 L2 Norm 以便后续与 edit_direction 计算余弦相似度。","s":"训练 stage 2","u":"/docs/Deep-Learning/实战练习/Undergraduate-Dissertation","h":"#训练-stage-2","p":549},{"i":571,"t":"参考文献:GAN 的几种评价指标 Inception Score(IS) 评估图像的质量和多样性 质量:把生成的图片 xxx 输入 Inception V3 中,得到输出 1000 维的向量 yyy,向量的每个维度的值对应图片属于某类的概率。对于一个清晰的图片,它属于某一类的概率应该非常大,而属于其它类的概率应该很小。用专业术语说, p(y∣x)p(y|x)p(y∣x) 的熵应该很小(熵代表混乱度,均匀分布的混乱度最大,熵最大)。 多样性: 如果一个模型能生成足够多样的图片,那么它生成的图片在各个类别中的分布应该是平均的,假设生成了 10000 张图片,那么最理想的情况是,1000 类中每类生成了 10 张。转换成术语,就是生成图片在所有类别概率的边缘分布 p(y)p(y)p(y) 熵很大(均匀分布)。 因此,对于 IS 我们需要求的两个量就是 p(y∣x)p(y|x)p(y∣x) 和 p(y)p(y)p(y)。实际中,选取大量生成样本,用经验分布模拟 p(y)p(y)p(y): p^(y)=1N∑i=1Np(y∣x(i))\\hat{p}(y)=\\frac{1}{N}\\sum_{i=1}^{N}p(y|\\mathbf{x}^{(i)})p^​(y)=N1​i=1∑N​p(y∣x(i)) Inception Score 的完整公式如下: IS(G)=exp⁡(Ex∼pgDKL(p(y∣x)∣∣p(y)))\\mathbf{IS}(G)=\\exp\\left(\\mathbb{E}_{\\mathbf{x}\\sim p_g}D_{KL}\\left(p(y|\\mathbf{x})||p(y)\\right)\\right)IS(G)=exp(Ex∼pg​​DKL​(p(y∣x)∣∣p(y))) 通常计算 Inception Score 时,会生成 50000 个图片,然后把它分成 10 份,每份 5000 个,分别代入公式计算 10 次 Inception Score,再计算均值和方差,作为最终的衡量指标(均值±方差)。但是 5000 个样本往往不足以得到准确的边缘分布 p(y)p(y)p(y),尤其是像 ImageNet 这种包含 1000 个类的数据集。 StyleGAN-nada 以及 IPL 在经过 batch_size 为 2,iteration 为 300 的训练后(其中 IPL 的 Mapper 是以 batch_size 为 32,iteration 为 300 进行训练的),二者的 IS 分别为 (2.2960, 0.2042) 以及 (2.6420, 0.1959)。 Fréchet Inception Distance(FID) 评估目标域的风格 计算 IS 时只考虑了生成样本,没有考虑真实数据,即 IS 无法反映真实数据和样本之间的距离,IS 判断数据真实性的依据,源于 Inception V3 的训练集 ImageNet,在 Inception V3 的“世界观”下,凡是不像 ImageNet 的数据,都是不真实的,都不能保证输出一个 sharp 的 predition distribution。因此,要想更好地评价生成网络,就要使用更加有效的方法计算真实分布与生成样本之间的距离。 FID 距离计算真实样本,生成样本在特征空间之间的距离。首先利用 Inception 网络来提取特征,然后使用高斯模型对特征空间进行建模,再去求解两个特征之间的距离,较低的 FID 意味着较高图片的质量和多样性。 StyleGAN-nada 以及 IPL 在经过 batch_size 为 2,iteration 为 300 的训练后(其中 IPL 的 Mapper 是以 batch_size 为 32,iteration 为 300 进行训练的),二者的 FID 分别为 84 以及 58。 Single Image Fréchet Inception Score(SIFID) FID 测量生成的图像的深层特征分布与真实图像的分布之间的偏差。在 ICCV 2019 Best Paper 中提出了 SIFID,只使用一张真实目标域的图像。与 FID 不同,SFID 不使用 Inception Network 中最后一个池化层之后的激活矢量(每个图像一个向量),而是在第二个池层之前的卷积层输出处使用深层特征的内部分布(feature map 中每个位置一个向量)。最终 SIFID 是真实图像和生成的样本中这些特征的统计数据之间的 FID。 Structural Consistency Score(SCS) 评估图像的结构保存能力 Identity Similarity(ID) 评估图像的特征保存能力","s":"定量分析指标","u":"/docs/Deep-Learning/实战练习/Undergraduate-Dissertation","h":"#定量分析指标","p":549},{"i":574,"t":"新增了自定义图像风格迁移功能。 HyperStyle 中的 e4e encoder 将自定义的真实图像编码至 StyleGAN2 中的 W 空间生成 latent codes,再将其分别输入至源域生成器以及目标域生成器以代替原始的从正态分布中 sample 出的随机向量生成的 w_codes,从而得到相应的图片。其中 e4e encoder 来源于 HyperStyle 提供的预训练 checkpoint。 使用方法:运行 inference.py,设置对应的参数,如生成器以及 e4e encoder 的路径、图像路径等,最后运行即可。 修改日志​ 第一次尝试只加载了 w_encoder 类及其对应 checkpoint 参数,导致并未将真实图片编码到 StyleGAN 的 W 空间中,没有 inversion 出合理的结果 第二次尝试使用了 restyle_e4e_encoder,但是没有使用 dlib 进行 alignment,也没有使用 restyle 模型在反演时使用的多次进行前向传播来修正 latent code 的策略。此次尝试虽然反演出了合理的人像,但是人像的特征保存能力非常弱 第三次尝试解决了上一次发现的问题,加入 dlib 提供的 landmark 检测以实现 alignment,并且使用 run_loop 函数在 restyle_e4e_encoder 中进行多次前向传播以修正得到的 W 空间的 latent code,效果较好 对比 pSp 和 e4e encoder,pSp 对人脸图像的还原能力较强,但是会导致目标域图像具有随机的彩色光晕","s":"自定义图像风格迁移","u":"/docs/Deep-Learning/实战练习/Undergraduate-Dissertation","h":"#自定义图像风格迁移","p":549},{"i":577,"t":"Mapper 的作用是从 W 空间的隐式代码中学习出符合源域图片特征以及符合目标域文字特征的 prompts。","s":"改进:Mapper 结构的设计","u":"/docs/Deep-Learning/实战练习/Undergraduate-Dissertation","h":"#改进mapper-结构的设计","p":549},{"i":579,"t":"在 IPL 的官方代码实现中,人工设计的 prompts 有两处,一是 ctx_init,由命令行参数赋值,即 \"a photo of a\",另一处是 utils/text_templates.py 中的 templates, ctx_init 的作用(与域标签拼接后的 ctx_init)​ ctx_init 在 compute_text_features 函数中用于定位 eot 层符号所表示的维度来进行投影,使得文字特征与图像特征维度相同,并不参与 text_features 的实际计算。但是在该函数中,Mapper 输出的 image-specific prompts 已经与域标签的嵌入表示进行了 concat。 在 stage 1 训练 Mapper 损失函数中,Mapper 学习到的 image-specfic prompts 在与源域标签进行 concat 并得到文字编码后,会与 ctx_init 的文字编码进行 element-wise 的相加,最后再与源域生成器输出的图片的图像编码进行对比损失计算; 同理,在 stage 2 训练目标域生成器时,Mapper 输出的 image-specific prompts 在分别与源域、目标域标签 concat 后送入文字编码器得到文字特征,再与 ctx_init 的文字特征进行 element-wise 相加,最后二者相减得到 text_direction。 templates 的作用​ 注意,这里的 compute_text_features 函数中向其参数 templates 传入的值是 ctx_init,所以才能使用 ctx_init 来定位 eot 符号所对应的层进行维度投影。参数 templates 缺省的值是在 utils/text_templates.py 中写好的模板。 思考​ IPL 方法对 Mapper 学习到的 prompts 除了(1)使用对比学习使 prompts 学习到源域图片的特征以及(2)使用域正则化使得 prompts 向目标域标签对齐之外,并没有使用其他与人工设计的 prompts 有关的正则化方式来约束 prompts 的学习,因此人工设计的 prompts 可能并没有起到太大的约束作用。 如果对比学习损失是为了让 Mapper 自监督学习到图片的特征外,那么是否可以对域正则化损失进行改进,约束学习到的 prompts 向人工设计的初始化 prompts 对齐,以实现类似于 Stable Diffusion 类似的 prompts 控制图像生成的效果。","s":"问题:训练阶段人工 prompts 的作用是什么?","u":"/docs/Deep-Learning/实战练习/Undergraduate-Dissertation","h":"#问题训练阶段人工-prompts-的作用是什么","p":549},{"i":581,"t":"对第一阶段的损失函数做出修改,更新domain loss,使目标域的image-specific prompts与自定义模板对齐。 对 global_clip_loss 的改进​ IPL 训练第一阶段的损失函数除了源域 prompts 与源域图像之间的对比学习损失函数外,还有将目标域 prompts 与目标域标签计算余弦相似度的 domain regularization。 对 domain regularization 进行改进,引入开发者自定义的 prompts,约束 Mapper 学习到的目标域 prompts 向开发者自定义的 prompts 对齐,以此来进行 prompt tuning,发挥 prompt learning 的更大优势,并增强自定义性。 对 clip_directional_loss 的改进​ IPL 训练第二阶段的损失函数","s":"改进:使学习到的 prompts 向用户自主设计的 prompts 模板对齐","u":"/docs/Deep-Learning/实战练习/Undergraduate-Dissertation","h":"#改进使学习到的-prompts-向用户自主设计的-prompts-模板对齐","p":549},{"i":583,"t":"介绍 欢迎来到笔记本的深度学习部分 若更新不及时,欢迎通过GitHub联系交流 有关论文笔记的说明 为了节省写作时间,论文笔记部分的文章通常只讲述文章的方法论,Introduction以及Related Work详情可以参考论文原文","s":"Welcome","u":"/docs/Deep-Learning/intro","h":"","p":582},{"i":585,"t":"如果可以帮到你的话就给个免费的Star吧!","s":"支持我!","u":"/docs/Deep-Learning/intro","h":"#支持我","p":582},{"i":587,"t":"信息 这里记录着在学习过程中发现的理解或操作方面出现的错误,温故知新。","s":"查漏补缺","u":"/docs/Deep-Learning/Fill-The-Gaps","h":"","p":586},{"i":589,"t":"进行广播的条件:两个矩阵的后缘维度相同或其中一方的维度为1。 后缘维度相同:A为(3,4,5)的三维数据,B为(4,5)的二维数组。由于A和B的后缘维度都为(4,5),所以可以进行广播。同理,当A为(3,4)的二维数组,B为(4,)的数组,他们的后缘维度都是4,所以可以进行广播。 后缘维度中有一方维度为1:A为(4,5)的二维数组,B为(4,1)的二维数组,其中一方维度为1,可以进行广播。 广播的原理:在运算过程中,Python逐步对数组进行广播,并不进行实际的复制操作,节省内存。 以下是举出具体例子进行分析: import numpy as np import torch x = torch.tensor(np.arange(9), dtype=torch.float32) x = torch.reshape(x, (3, 3)) print(x) x1 = x[:, :, None] # (3, 3, 1) print(x1) \"\"\" tensor([[[0.], [1.], [2.]], [[3.], [4.], [5.]], [[6.], [7.], [8.]]]) \"\"\" x2 = x[:, None] # (3, 1, 3) print(x2) \"\"\" tensor([[[0., 1., 2.]], [[3., 4., 5.]], [[6., 7., 8.]]]) \"\"\" output = x1 + x2 print(output) \"\"\" tensor([[[ 0., 1., 2.], [ 1., 2., 3.], [ 2., 3., 4.]], [[ 6., 7., 8.], [ 7., 8., 9.], [ 8., 9., 10.]], [[12., 13., 14.], [13., 14., 15.], [14., 15., 16.]]]) \"\"\" 由于x1与x2在第0维度上维度相同,所以Python可以直接进行逐元素相加,即依次进行如下运算 x1[0,:,:]+x2[0,:,:](1)x1[0, :, :] + x2[0, :, :] \\tag{1}x1[0,:,:]+x2[0,:,:](1) x1[1,:,:]+x2[1,:,:](2)x1[1, :, :] + x2[1, :, :] \\tag{2}x1[1,:,:]+x2[1,:,:](2) x1[2,:,:]+x2[2,:,:](3)x1[2, :, :] + x2[2, :, :] \\tag{3}x1[2,:,:]+x2[2,:,:](3) 但在第0维度的相加过程中出现了shape为(3, 1)的矩阵与shape为(1, 3)的矩阵相加的情况,此时进行广播,将(3, 1)的每一列复制三次为(3, 3),将(1, 3)的每一行复制三次为(3, 3),再进行逐元素相加。 其实,上述的过程还可以再细分为,x1[0, 0, :]与x2[0, 0, :]相加时出现了第一次广播,将x1[0, 0, :]复制了三次与x2[0,0, :]完成相加,这里不再赘述,最终想表达的原理是广播机制是在运算过程当中进行的,并非一次性将二者全部复制为对应的最小公倍数形状后再进行运算。","s":"Python的广播机制","u":"/docs/Deep-Learning/Fill-The-Gaps","h":"#python的广播机制","p":586},{"i":591,"t":"点积在Python中对应的运算符为*,进行矩阵之间的逐元素乘法。在点积运算中,运算矩阵二者形状不一样时可能涉及到广播机制; 矩阵乘法在Python中对应的运算符为@,进行常规矩阵乘法。遵守左矩阵的列数必须等于右矩阵的行数,且输出矩阵的行数等于左矩阵的行数、输出矩阵的列数等于右矩阵的列数的规则。","s":"点积(dot product)与矩阵乘法(matmul product)","u":"/docs/Deep-Learning/Fill-The-Gaps","h":"#点积dot-product与矩阵乘法matmul-product","p":586},{"i":593,"t":"当你有多个列表(或其他可迭代对象)时,zip函数可以将它们逐个配对成元组。而*操作符用于解压元组,将元组中的元素分别作为参数传递给函数。 以下是一个简单的例子: # zip函数的例子 list1 = [1, 2, 3] list2 = ['a', 'b', 'c'] list3 = ['x', 'y', 'z'] # 使用zip将多个列表配对成元组 zipped_lists = zip(list1, list2, list3) # 打印配对后的元组 for item in zipped_lists: print(item) 输出: (1, 'a', 'x') (2, 'b', 'y') (3, 'c', 'z') 在这个例子中,zip将list1、list2和list3中相同位置的元素组合成元组。 接下来,我们可以使用 * 操作符解压这些元组: # *解压操作的例子 unzipped_lists = zip(*zipped_lists) # 打印解压后的列表 for item in unzipped_lists: print(item) 输出: (1, 2, 3) ('a', 'b', 'c') ('x', 'y', 'z') 在这个例子中,*操作符将先前由zip组合的元组解压,分别放回原始的列表。","s":"zip函数与解压操作*","u":"/docs/Deep-Learning/Fill-The-Gaps","h":"#zip函数与解压操作","p":586},{"i":595,"t":"参考资料 https://www.jianshu.com/p/41c15d301542 对于不同的网络层,输入的维度虽然不同,但是通常输入的第一个维度都是batch_size,比如torch.nn.Linear的输入(batch_size,in_features),torch.nn.Conv2d的输入(batch_size, C, H, W)。 而RNN的输入是(seq_len, batch_size, input_size),batch_size位于第二维度!虽然可以将batch_size和序列长度seq_len对换位置,此时只需令batch_first=True。 但是为什么RNN输入默认不是batch first=True?这是为了便于并行计算。 因为cuDNN中RNN的API就是batch_size在第二维度。进一步讲,batch first意味着模型的输入(一个Tensor)在内存中存储时,先存储第一个sequence,再存储第二个,而如果是seq_len first,模型的输入在内存中,先存储每一个sequence的第一个元素,然后是第二个元素,两种区别如下图所示: seq_len first意味着不同序列中同一个时刻对应的输入单元在内存中是毗邻的,这样才能做到真正的batch计算。","s":"对batch_first参数的理解","u":"/docs/Deep-Learning/Fill-The-Gaps","h":"#对batch_first参数的理解","p":586},{"i":597,"t":"提示 欢迎来到笔记本的其他部分","s":"Welcome","u":"/docs/Others/intro","h":"","p":596},{"i":599,"t":"如果可以帮到你的话就给个免费的Star吧!","s":"支持我!","u":"/docs/Others/intro","h":"#支持我","p":596},{"i":602,"t":"dock显示的图标是全局图标,程序启动器的desktop文件位于/usr/share/applications中,全局主题中图标主题的程序logo位于~/.local/share/icons/Mkos-Big-Sur-Night/128x128/apps(deppending on specific situation)中。在logo文件夹中挑选想要的logo,在desktop中的icon位置修改即可 应用更新的时候会同时更新.desktop文件,因此在更换图标是最好直接更换在主题文件中替换icon,而不是更改desktop的icon路径 Finder小组件中application title文字不能垂直居中,可以更换为Window title插件","s":"一、latte-dock","u":"/docs/Others/Linux/客制化/如何让你的KDE看起来更像macOS","h":"#一latte-dock","p":600},{"i":604,"t":"Finder栏中Plasmoids左半部分从左至右依次为: kpple menu application title/window titile(if the text of application title can't be centered vertically) global menu 右半部分从左至右依次为: resources monitor (fork) mcOS BS Inline Battery 网络 Control Center(replace the icon with search icon) Control Center(replace the icom with menu icon) Better Inline Clock 安装方法: plasmpkg2 -u xxx.plasmoid","s":"二、Kde Plasmoids","u":"/docs/Others/Linux/客制化/如何让你的KDE看起来更像macOS","h":"#二kde-plasmoids","p":600},{"i":606,"t":"通过编写脚本函数的方式,手动开启代理","s":"终端代理","u":"/docs/Others/Linux/实用工具/终端代理","h":"","p":605},{"i":608,"t":"新建脚本文件terminal_proxy.sh # 开启代理 function proxy_on(){ export ALL_PROXY=socks5://127.0.0.1:7890 export http_proxy=http://127.0.0.1:7890 export https_proxy=https://127.0.0.1:7890 echo -e \"已开启代理\" } # 关闭代理 function proxy_off(){ unset ALL_PROXY unset http_proxy unset https_proxy echo -e \"已关闭代理\" }","s":"一、编写脚本","u":"/docs/Others/Linux/实用工具/终端代理","h":"#一编写脚本","p":605},{"i":610,"t":"fish的配置文件:~/.config/fish/config.fish zsh的配置文件:~/.zshrc bash的配置文件:~/.bashrc 在配置文件末尾添加以下代码 source /path/terminal_proxy.sh","s":"二、关联终端配置文件","u":"/docs/Others/Linux/实用工具/终端代理","h":"#二关联终端配置文件","p":605},{"i":612,"t":"在终端中输入以下命令即可开启代理 proxy_on 在终端中输入以下命令即可关闭代理 proxy_off","s":"三、使用","u":"/docs/Others/Linux/实用工具/终端代理","h":"#三使用","p":605},{"i":615,"t":"树的性质: 一棵 N 个结点的树有 N-1 条边 树的总度数+1=树的结点数 树的度=树中度最大结点的度数 二叉树的性质: 叶子结点数等于度为 2 的结点数加 1,即n0 = n2 + 1 树转化为二叉树: 参考资料:知乎 加线。在所有的兄弟结点之间加一条线。 去线。树中的每个结点,只保留它与第一个孩子结点的连线,删除其他孩子结点之间的连线。 调整。每个结点的原来的孩子是结点的左孩子,由原来的兄弟结点转过来的孩子是结点的右孩子。 二叉排序树:每个结点的左子树上的所有结点值都更小,每个结点的右子树上的所有结点的值都更大。 平衡二叉排序树:要么是空树,要么左子树的高度与右子树的高度之差小于等于1。","s":"树","u":"/docs/Tui-Mian/计算机基础综合/数据结构","h":"#树","p":613},{"i":617,"t":"图的表示: 邻接矩阵 邻接表:每一行表示的是一个顶点所连接的顶点,链表不具有指向性 邻接表的搜索 最小生成树:在连通网的所有生成树中,所有边的代价和最小的生成树,称为最小生成树。 Kruskal算法 Prim算法 最短路径 ​ ​","s":"图","u":"/docs/Tui-Mian/计算机基础综合/数据结构","h":"#图","p":613},{"i":620,"t":"未知,可能是由Windows休眠模式导致","s":"一、发生原因","u":"/docs/Others/Linux/问题解决/双系统挂载Windows磁盘为只读文件","h":"#一发生原因","p":618},{"i":622,"t":"使用ntfsfix修复ntfs磁盘 安装ntfsfix yay -S ntfsfix 查看问题分区 df -h 修复 sudo ntfsfix /dev/your_partition 重启 reboot","s":"二、解决方案","u":"/docs/Others/Linux/问题解决/双系统挂载Windows磁盘为只读文件","h":"#二解决方案","p":618},{"i":624,"t":"提示 大数除法是指被除数大小超出long long范围,而导致必须使用字符串存储的除法,属于简单模拟的范畴","s":"大数除法","u":"/docs/Tui-Mian/机试/大数除法","h":"","p":623},{"i":626,"t":"通过模拟列竖式手动计算除法,实现使用字符串存储被除数的大数除法","s":"思路","u":"/docs/Tui-Mian/机试/大数除法","h":"#思路","p":623},{"i":628,"t":"string division(string s, int divisor) { /* * 通过模拟列竖式手算除法完成字符串存储的大数除法 */ string quotient; // 商 int idx = 0; // 当前处理的数字在原始字符串中的位置 int remainder = 0; // 余数 int temp = 0; while (idx < s.size()) { // 一直循环处理到索引等于长度 temp = remainder * 10 + (s[idx] - '0'); // 当前进行除法运算的temp if (temp >= divisor) { // 如果能除的动,则将当前的商插入quotient,并更新余数 quotient.push_back(temp / divisor + '0'); remainder = temp % divisor; } else { // 除不动时分两种情况 if (!quotient.empty()) { // 商目前不为空,此时按照竖式方法,需要向商中加入0,再接着下一次循环 quotient.push_back('0'); } remainder = temp; // 商目前为空,按照竖式计算方法,只更新余数,商保持为空 } idx++; // 更新索引位置 } if (quotient.empty()) { // 如果一直除不动,循环结束商还为空,则赋值为0字符串 quotient.assign(\"0\"); } return quotient; // 返回商字符串 }","s":"参考代码","u":"/docs/Tui-Mian/机试/大数除法","h":"#参考代码","p":623},{"i":630,"t":"将大数除法与进制转换相结合。 提示 北京大学机试真题,N诺链接 完整代码如下: #include using namespace std; string division(string s, int divisor) { /* * 通过模拟列竖式手算除法完成字符串存储的大数除法 */ string quotient; // 商 int idx = 0; // 当前处理的数字在原始字符串中的位置 int remainder = 0; // 余数 int temp = 0; while (idx < s.size()) { // 一直循环处理到索引等于长度 temp = remainder * 10 + (s[idx] - '0'); // 当前进行除法运算的temp if (temp >= divisor) { // 如果能除的动,则将当前的商插入quotient,并更新余数 quotient.push_back(temp / divisor + '0'); remainder = temp % divisor; } else { // 除不动时分两种情况 if (!quotient.empty()) { // 商目前不为空,此时按照竖式方法,需要向商中加入0,再接着下一次循环 quotient.push_back('0'); } remainder = temp; // 商目前为空,按照竖式计算方法,只更新余数,商保持为空 } idx++; // 更新索引位置 } if (quotient.empty()) { // 如果一直除不动,循环结束商还为空,则赋值为0字符串 quotient.assign(\"0\"); } return quotient; // 返回商字符串 } int main() { string s; while (cin >> s) { vector vec; int len = s.size(); while (s != \"0\") { int remainder = (s[len - 1] - '0') % 2; vec.push_back(remainder); s = division(s, 2); len = s.size(); } if (vec.empty()) { cout << \"0\"; } else { for (auto it = vec.rbegin(); it != vec.rend(); it++) { cout << *it; } } cout << endl; } return 0; }","s":"扩展","u":"/docs/Tui-Mian/机试/大数除法","h":"#扩展","p":623},{"i":633,"t":"简述大数定理。 大数定理描述了大样本情况下随机变量的均值与其期望值之间的关系。对于独立同分布的随机变量序列,随着样本数量的增加,样本均值会以较高的概率接近其期望值。 简述中心极限定理。 当独立随机变量的数量足够大时,它们的和(或平均值)的分布会逐渐接近一个正态分布。即使原始随机变量不服从正态分布,但当样本容量足够大时,和(或平均值)的分布仍然呈现出正态分布的特征。 什么是全概率公式。 对于事件A而言,假设有一组互斥且穷尽的条件事件B,则事件A的概率等于事件A在每个条件事件下发生的概率与该条件事件发生概率的乘积和。 什么是最大似然估计。 基本思想是在已知观测数据的情况下,通过调整参数的取值,找到使得观测数据出现概率最大的参数值。 大致过程: 构建参数化的概率模型,即构建似然函数,表示在给定参数下观测数据出现的概率 取似然函数的对数,方便计算与优化 最大化似然函数,求解参数的最优值 简述贝叶斯定理。 贝叶斯定理描述了在给定观测数据的条件下,计算事件的后验概率的方法。 P(A∣B)=P(B∣A)∗P(A)P(B)P(A|B) = \\frac{P(B|A) * P(A)}{P(B)}P(A∣B)=P(B)P(B∣A)∗P(A)​ 其中: P(A∣B)P(A|B)P(A∣B)表示在观测到事件 B 发生的条件下,事件 A 发生的概率,称为后验概率 P(B∣A)P(B|A)P(B∣A)表示在事件 A 发生的条件下,事件 B 发生的概率,称为似然; P(A)P(A)P(A)和P(B)P(B)P(B)分别是事件 A 和事件 B 独立发生的先验概率。 优点:它能够将主观先验知识与观测数据相结合,通过不断更新后验概率来进行推断和决策。 P问题、NP问题以及NP完全问题 提示 P stands for Polynomial 意为多项式 P问题是可以在多项式时间内解决的问题 NP问题是可以在多项式时间内验证解的正确性的问题 NP完全问题是一类特殊的NP问题,没有已知的高效解决算法,并且可以在多项式时间内归约到任何其他的NP问题","s":"面试常考问题","u":"/docs/Tui-Mian/数学/概率论","h":"#面试常考问题","p":631},{"i":635,"t":"提示 参考链接: 线性代数极简入门 《线性代数》高清教学视频 “惊叹号”系列 宋浩老师","s":"线性代数","u":"/docs/Tui-Mian/数学/线性代数","h":"","p":634},{"i":637,"t":"线性相关与线性无关:向量组中的任一向量都不能被其它向量线性表示,就说向量组线性无关;否则就是线性相关。 矩阵转置:将矩阵的行和列互相交换 矩阵求逆:对于方阵A,若存在方阵B使得AB=BA=单位方阵I,则方阵B为方阵A的逆矩阵,记为A−1A^{-1}A−1","s":"一、基础知识","u":"/docs/Tui-Mian/数学/线性代数","h":"#一基础知识","p":634},{"i":639,"t":"线性代数中的初等行变换。 交换两行 用非零常数乘以某一行 用一行的倍数加到另一行上 如何理解矩阵的秩。 矩阵的秩是指矩阵的列空间(或行空间)的维数,简而言之是矩阵中所有非零行(或列)向量构成的集合所组成的最大线性无关组的向量个数。 提示 宋浩八字:非零子式的最高阶数 任意矩阵的行秩都等于列秩。 矩阵的秩与线性方程组解的关系。 对于n元线性方程组而言: 当系数矩阵的秩等于增广矩阵的秩且秩等于n时,有唯一解 当系数矩阵的秩等于增广矩阵的秩且秩大于n时,有无穷多解 当系数矩阵的秩不等于增广矩阵的秩时,无解 提示 当系数矩阵的秩小于增广矩阵的秩时,说明系数矩阵中的某一列向量(或行向量)可以被其他列向量(或行向量)线性表示,此时该行不能提供额外的线性独立信息 简述向量组线性无关的含义。 含义:若一个向量组是线性无关的,则该向量组中的每个向量都不能表示成其他向量的线性组合。 意义:如果一个向量组线性无关,那么该向量组所张成的空间就是一个最小维度的向量空间,并且该向量空间中的任何向量都可由这些向量线性组合表示。 判定方法:如果一个向量组中的所有向量都不可以由其他向量线性组合得到,则称该向量组为线性无关的。否则,如果存在某个向量可以表示成其他向量的线性组合,则该向量组就不是线性无关的。 解释正定矩阵以及半正定矩阵。 简述特征值的含义。 特征值描述了矩阵在特定方向(特征向量方向)上的缩放因子,特征向量表示矩阵在这个特定方向上的不变性。 简述矩阵分解的物理意义。 矩阵分解是将一个矩阵表示为一些特定形式的矩阵乘积的过程。 矩阵分解的种类以及物理意义: LU分解:将矩阵分解为一个下三角矩阵和一个上三角矩阵的乘积。物理意义包括解线性方程组、计算矩阵的行列式和逆矩阵等。 QR分解:将矩阵分解为一个正交矩阵和一个上三角矩阵的乘积。物理意义包括最小二乘问题、矩阵的特征值计算等。 特征值分解:将矩阵分解为一个特征向量矩阵和一个对角矩阵的乘积。物理意义包括矩阵的幂、指数和对称矩阵的对角化等。 奇异值分解(SVD):将矩阵分解为一个正交矩阵、一个对角矩阵和一个正交矩阵的乘积。物理意义包括降维、矩阵逼近和图像压缩等。","s":"二、面试常考问题","u":"/docs/Tui-Mian/数学/线性代数","h":"#二面试常考问题","p":634},{"i":643,"t":"显著性目标检测Salient Object Detection,相当于语义分割中的二分类任务,只有前景和背景","s":"(一)SOD任务","u":"/docs/Tui-Mian/简历/简历面试准备","h":"#一sod任务","p":640},{"i":645,"t":"下图为U-2-Net的整体结构 提示 residual [rɪˈzɪdjuəl] 在encoder阶段,每个block之后使用maxpooling下采样两倍 在decoder阶段,每个block之后使用双线性插值上采样两倍 下图为Residual U-block的结构 提示 卷积是如何改变输出的通道数的? 卷积核的通道数等于输入的通道数,卷积核的个数等于输出的通道数 图片来源知乎 在特征融合阶段,每一层的encoder-decoder输出,使用3x3卷积以及双线性插值上采样到原始分辨率得到该层的特征图,且卷积核的个数为1,输出的feature map通道数也为1。将每一层的feature map进行concat拼接,得到6通道的融合feature map,最后使用1x1卷积以及sigmoid激活函数得到最终的融合特征图输出","s":"(二)网络结构","u":"/docs/Tui-Mian/简历/简历面试准备","h":"#二网络结构","p":640},{"i":647,"t":"损失函数是7个损失项的加权求和 共有6层encoder-decoder结构,将每一层对应的feature map与ground truth做BCE Loss得到6个损失项 第7个损失项是最终融合得到的feature map与ground truth的BCE Loss 在论文中,每个损失项的权重都为1 canny边缘检测: 使用高斯滤波进行平滑 计算像素梯度 非极大值抑制 双阈值检测强边缘、弱边缘 边缘连接","s":"(三)损失函数","u":"/docs/Tui-Mian/简历/简历面试准备","h":"#三损失函数","p":640},{"i":649,"t":"深度可分离卷积的优点是可以在大致保持卷积效果的情况下减少参数量 在实现原理上可分为两个步骤:深度卷积(depth wise)以及逐点(point wise)卷积 深度卷积是一种在每个输入通道上分别进行卷积操作的卷积方法,每个输入通道只与对应的卷积核进行卷积。 逐点卷积通过使用1×11 \\times 11×1卷积对深度卷积的结果再次卷积","s":"(四)深度可分离卷积","u":"/docs/Tui-Mian/简历/简历面试准备","h":"#四深度可分离卷积","p":640},{"i":652,"t":"PR曲线所围成的面积即使该类的AP值","s":"(一)mAP","u":"/docs/Tui-Mian/简历/简历面试准备","h":"#一map","p":640},{"i":654,"t":"提示 参考资料:【精读AI论文】YOLO V1目标检测,看我就够了 1.预测阶段​ 下图为YOLOv1的算法框架 下图为YOLOv1的网络结构 输入[448, 448, 3]图像,输出[7, 7, 30]的tensor(包含所有预测框的坐标、置信度和类别结果),通过解析输出的tensor得到预测结果 首先将输入图片划分为S×SS \\times SS×S个grid cell。在YOLOv1中S=7S=7S=7 每个grid cell预测出BBB个bounding box预测框(bbox),每个bbox的中心点都落在该grid cell中。在YOLOv1中B=2B=2B=2 每个bbox包含(x, y, h, w, c)五种信息,其中x, y为bbox左上角坐标,h, w为bbox的宽高,c为该bbox是否存在object的概率 同时每个grid cell预测出一组与数据集有关的条件类别概率。在YOLOv1论文使用的数据集Pascal VOC中,类别种类为20类,因此在预测阶段输出的[7, 7, 30]的tensor含义如下图所示 每个grid cell选出条件类别概率最大的类别,因此每个grid cell只能检测一个物体 提示 这也是YOLOv1小目标和密集目标识别能力差的原因 每个bbox的置信度与其父grid cell的类别概率相乘得到全概率,如下图所示 进行NMS后处理: 对某一特定类别,首先根据全概率置信度排序 将此时最大置信度的bbox与其他所有置信度更小的bbox做IoU判断,若IoU大于设置的阈值,则抹除置信度小的bbox 将剩余的次大的置信度重复步骤2,抹除所有置信度更小的其IoU超过阈值的bbox 提示 非极大值抑制只在预测阶段进行 在训练阶段,所有bbox都会在Loss Function中起到更新的作用,因此不进行NMS 2. 训练过程的损失函数​","s":"(二)YOLOv1","u":"/docs/Tui-Mian/简历/简历面试准备","h":"#二yolov1","p":640},{"i":656,"t":"1. BN层​ 2. 高分辨率训练​ 3. Anchor​ YOLOv2引入了anchor机制代替bbox,将图像划分为13×1313 \\times 1313×13个grid cell,每个grid cell生成5个anchor anchor是通过k-means聚类在数据集上生成的不同尺寸的先验框 对数据集进行anchor宽高比的聚类,聚类数越大,覆盖的IoU越大,但同时模型也更复杂","s":"(二)YOLOv2","u":"/docs/Tui-Mian/简历/简历面试准备","h":"#二yolov2","p":640},{"i":658,"t":"1. 特征融合​ YOLOv5使用CSPNet实现特征融合,CSP模块由主干和分支构成,主干提取低维特征,分支提取高维特征 主干通过卷积和池化提取特征,形成不同尺寸的特征图 分支将主干输出的特征图作为输入,逐步卷积和上采样提取高级别语义特征 主干特征图通过卷积对通道数降维之后与分支在通道维度上concat 提示 在特征提取以及融合阶段可以加入Canny边缘检测得到的特征图进行特征融合 2. 前处理​ 对填充黑色像素进行了改善,以填充更少的黑像素,提高了精度 3. 特征金字塔FCN​","s":"(三)YOLOv5","u":"/docs/Tui-Mian/简历/简历面试准备","h":"#三yolov5","p":640},{"i":660,"t":"提示 有关CSP特征融合可以参考:https://blog.csdn.net/weixin_55073640/article/details/122614176 CBAM是通道+空间注意力机制(SENet是通道注意力机制)","s":"三、CBAM","u":"/docs/Tui-Mian/简历/简历面试准备","h":"#三cbam","p":640},{"i":662,"t":"通道注意力:原始特征图[b,c,h,w][b, c, h, w][b,c,h,w]经过通道注意力机制算法得到[b,c,1,1][b, c, 1, 1][b,c,1,1]的tensor,代表不同通道之间的重要程度,将其与原始特征图相乘 空间注意力:经过通道注意力的特征图[b,c,h,w][b, c, h, w][b,c,h,w]经过空间注意力机制算法得到[b,1,h,w][b, 1, h, w][b,1,h,w]的tensor,代表宽高维度的像素之间的重要程度,将其与原始特征图相乘","s":"(一)总体结构","u":"/docs/Tui-Mian/简历/简历面试准备","h":"#一总体结构","p":640},{"i":664,"t":"原始特征图[b,c,h,w][b, c, h, w][b,c,h,w]分别经过最大池化和平均池化来压缩空间维度、学习通道之间的特征,得到[b,c,1,1][b, c, 1, 1][b,c,1,1]的tensor,再送入共享的多层感知机网络进行降维再升维,最后将二者相加再经过sigmoid函数产生最终的通道注意力特征图","s":"(二)通道注意力","u":"/docs/Tui-Mian/简历/简历面试准备","h":"#二通道注意力","p":640},{"i":666,"t":"原始特征图[b,c,h,w][b, c, h, w][b,c,h,w]分别经过最大池化和平均池化(通过torch.max和torch.mean函数实现)得到[b,1,h,w][b, 1, h, w][b,1,h,w]的tensor,再将二者concat后通过7×77 \\times 77×7卷积学习特征并降维,最后送入sigmoid函数得到最终的空间注意力特征图","s":"(三)空间注意力","u":"/docs/Tui-Mian/简历/简历面试准备","h":"#三空间注意力","p":640},{"i":668,"t":"作者分别对通道注意力以及空间注意力使用最大池化还是平均池化做了消融实验,结果反映二者都用最大池化以及平均池化再相加效果最好(且对于7×77 \\times 77×7卷积与3×33 \\times 33×3卷积的消融实验发现,7×77 \\times 77×7卷积效果更好) 作者对先通道注意力还是先空间注意力做了消融实验,结果发现先通道再空间效果更好","s":"(四)其他注意事项","u":"/docs/Tui-Mian/简历/简历面试准备","h":"#四其他注意事项","p":640},{"i":670,"t":"Focal Loss通过引入修正项和样本关注度超参数,增加困难样本的关注度,来解决类别不均衡问题。 YOLO损失函数分为分类损失以及回归损失,可以在分类损失中引入Focal Loss代替原来的交叉熵损失","s":"四、Focal Loss","u":"/docs/Tui-Mian/简历/简历面试准备","h":"#四focal-loss","p":640},{"i":672,"t":"Squeeze and Excitation Squeeze挤压操作就是将[b,c,h,w][b, c, h, w][b,c,h,w]的特征图通过池化挤压宽高维度,得到[b,c,1,1][b, c, 1, 1][b,c,1,1]的tensor,该tensor还要经过所示的全连接层-ReLU-全连接层结构 Excitation激励操作就是通过sigmoid函数得到每个通道之间的重要程度系数","s":"五、SENet","u":"/docs/Tui-Mian/简历/简历面试准备","h":"#五senet","p":640},{"i":674,"t":"自注意力机制通过计算元素之间的相似度来确定它们之间的关联性,并对其进行加权处理以获得上下文信息。 自注意力机制通过对输入的元素进行线性变换来得到查询(Query)向量、键(Key)向量和值(Value)向量。 通过点积和缩放点积计算相似程度 通过自注意力机制,每个元素都可以通过与其他元素的相似度计算和加权求和,获取到与它们相关的上下文信息。相似度高的元素将获得更高的权重,因此更受到关注和影响,从而建立起元素之间的关联性。","s":"六、自注意力机制","u":"/docs/Tui-Mian/简历/简历面试准备","h":"#六自注意力机制","p":640},{"i":677,"t":"This content has been encrypted.","s":"(一)英文自我介绍","u":"/docs/Tui-Mian/简历/简历面试准备","h":"#一英文自我介绍","p":640},{"i":679,"t":"1. 英文自我介绍​ This content has been encrypted. 2. 中文自我介绍​ This content has been encrypted.","s":"(二)西电广研院自我介绍","u":"/docs/Tui-Mian/简历/简历面试准备","h":"#二西电广研院自我介绍","p":640},{"i":681,"t":"1. 英文自我介绍​ This content has been encrypted. 2. 中文自我介绍​ This content has been encrypted.","s":"(三)电子科技大学自我介绍","u":"/docs/Tui-Mian/简历/简历面试准备","h":"#三电子科技大学自我介绍","p":640},{"i":684,"t":"线性相关与线性无关:向量组中的任一向量都不能被其它向量线性表示,就说向量组线性无关;否则就是线性相关。 矩阵转置:将矩阵的行和列互相交换 矩阵求逆:对于方阵A,若存在方阵B使得AB=BA=单位方阵I,则方阵B为方阵A的逆矩阵,记为A−1A^{-1}A−1 线性代数中的初等行变换。 交换两行 用非零常数乘以某一行 用一行的倍数加到另一行上 如何理解矩阵的秩。 矩阵的秩是指矩阵的列空间(或行空间)的维数,简而言之是矩阵中所有非零行(或列)向量构成的集合所组成的最大线性无关组的向量个数。 提示 宋浩八字:非零子式的最高阶数 任意矩阵的行秩都等于列秩。 矩阵的秩与线性方程组解的关系。 对于n元线性方程组而言: 当系数矩阵的秩等于增广矩阵的秩且秩等于n时,有唯一解 当系数矩阵的秩等于增广矩阵的秩且秩大于n时,有无穷多解 当系数矩阵的秩不等于增广矩阵的秩时,无解 提示 当系数矩阵的秩小于增广矩阵的秩时,说明系数矩阵中的某一列向量(或行向量)可以被其他列向量(或行向量)线性表示,此时该行不能提供额外的线性独立信息 简述向量组线性无关的含义。 含义:若一个向量组是线性无关的,则该向量组中的每个向量都不能表示成其他向量的线性组合。 意义:如果一个向量组线性无关,那么该向量组所张成的空间就是一个最小维度的向量空间,并且该向量空间中的任何向量都可由这些向量线性组合表示。 判定方法:如果一个向量组中的所有向量都不可以由其他向量线性组合得到,则称该向量组为线性无关的。否则,如果存在某个向量可以表示成其他向量的线性组合,则该向量组就不是线性无关的。 解释正定矩阵以及半正定矩阵。 简述特征值的含义。 特征值描述了矩阵在特定方向(特征向量方向)上的缩放因子,特征向量表示矩阵在这个特定方向上的不变性。 简述矩阵分解的物理意义。 矩阵分解是将一个矩阵表示为一些特定形式的矩阵乘积的过程。 矩阵分解的种类以及物理意义: LU分解:将矩阵分解为一个下三角矩阵和一个上三角矩阵的乘积。物理意义包括解线性方程组、计算矩阵的行列式和逆矩阵等。 QR分解:将矩阵分解为一个正交矩阵和一个上三角矩阵的乘积。物理意义包括最小二乘问题、矩阵的特征值计算等。 特征值分解:将矩阵分解为一个特征向量矩阵和一个对角矩阵的乘积。物理意义包括矩阵的幂、指数和对称矩阵的对角化等。 奇异值分解(SVD):将矩阵分解为一个正交矩阵、一个对角矩阵和一个正交矩阵的乘积。物理意义包括降维、矩阵逼近和图像压缩等。","s":"一、线性代数","u":"/docs/Tui-Mian/数学/夏令营面试数学部分复习","h":"#一线性代数","p":682},{"i":686,"t":"简述大数定理。 大数定理描述了大样本情况下随机变量的均值与其期望值之间的关系。对于独立同分布的随机变量序列,随着样本数量的增加,样本均值会以较高的概率接近其期望值。 简述中心极限定理。 当独立随机变量的数量足够大时,它们的和(或平均值)的分布会逐渐接近一个正态分布。即使原始随机变量不服从正态分布,但当样本容量足够大时,和(或平均值)的分布仍然呈现出正态分布的特征。 什么是全概率公式。 对于事件A而言,假设有一组互斥且穷尽的条件事件B,则事件A的概率等于事件A在每个条件事件下发生的概率与该条件事件发生概率的乘积和。 什么是最大似然估计。 基本思想是在已知观测数据的情况下,通过调整参数的取值,找到使得观测数据出现概率最大的参数值。 大致过程: 构建参数化的概率模型,即构建似然函数,表示在给定参数下观测数据出现的概率 取似然函数的对数,方便计算与优化 最大化似然函数,求解参数的最优值 简述贝叶斯定理。 贝叶斯定理描述了在给定观测数据的条件下,计算事件的后验概率的方法。 P(A∣B)=P(B∣A)∗P(A)P(B)P(A|B) = \\frac{P(B|A) * P(A)}{P(B)}P(A∣B)=P(B)P(B∣A)∗P(A)​ 其中: P(A∣B)P(A|B)P(A∣B)表示在观测到事件 B 发生的条件下,事件 A 发生的概率,称为后验概率 P(B∣A)P(B|A)P(B∣A)表示在事件 A 发生的条件下,事件 B 发生的概率,称为似然; P(A)P(A)P(A)和P(B)P(B)P(B)分别是事件 A 和事件 B 独立发生的先验概率。 优点:它能够将主观先验知识与观测数据相结合,通过不断更新后验概率来进行推断和决策。 P问题、NP问题以及NP完全问题 提示 P stands for Polynomial 意为多项式 P问题是可以在多项式时间内解决的问题 NP问题是可以在多项式时间内验证解的正确性的问题 NP完全问题是一类特殊的NP问题,没有已知的高效解决算法,并且可以在多项式时间内归约到任何其他的NP问题","s":"二、概率论","u":"/docs/Tui-Mian/数学/夏令营面试数学部分复习","h":"#二概率论","p":682},{"i":688,"t":"提示 欢迎来到笔记本的推免复习部分","s":"Welcome","u":"/docs/Tui-Mian/intro","h":"","p":687},{"i":690,"t":"如果可以帮到你的话就给个免费的Star吧!","s":"支持我!","u":"/docs/Tui-Mian/intro","h":"#支持我","p":687},{"i":693,"t":"自己在准备夏令营和预推免期间浏览了很多经验贴,按照科协的传统,也支持一下互联网精神,还是给师弟师妹们留下点文字资料吧。 希望可以帮到大家,也感谢那些曾经帮助过我的经验贴和师兄师姐。 文章均为个人经历与想法,不代表任何单位的官方立场,仅供参考。","s":"前言","u":"/docs/Tui-Mian/Summary","h":"#前言","p":691},{"i":695,"t":"常见名词 含义解释 928/929 每年的公历9月28日(2023年是9月29日),是研招网全国推免系统开放的日子,也是已经拿到offer的推免生上岸的日子。 没offer的也不用着急,因为每个学生只能上一个学校,928/929当天就算手里一堆offer的学生也是只能选择最想去的学校而释放掉其他offer。稳住心态沉住气,一般10月20日推免系统才关闭,这段时间足够联系导师上岸了。 优营 优营就是夏令营的优秀营员。 不同学校优营的效力不同,有些学校的优营直接等于拟录取,928/929当天填报系统即可上岸;但有些学校的优营只能保证在后期的预推免或九推的初筛中不被刷掉,仍需参加后续考核才能获得拟录取资格。 wl/waiting list wl就是递补名单,有些学校的夏令营优营评选中设置递补名单。如果后期有其他优营学生放鸽子不来的话,就会按顺序补录到递补名单中的学生。","s":"扫盲","u":"/docs/Tui-Mian/Summary","h":"#扫盲","p":691},{"i":697,"t":"本科学校:理工类普通一本(四非) 专业:计算机科学与技术CS rank:前1%(非rank 1 or 2的top选手) 英语:四级594 & 六级586 竞赛:非ACMer,一个CV类比赛国一,其他都是更不上台面的奖项了 奖学金:国家奖学金(夏令营结束之后才拿的,基本没用到)、省人民政府奖学金、CASC奖学金 科研及论文:无正经科研经历,EI水会一篇 从某种程度上来说,本科出身和rank基本上决定了上限。","s":"个人情况","u":"/docs/Tui-Mian/Summary","h":"#个人情况","p":691}],"index":{"version":"2.3.9","fields":["t"],"fieldVectors":[["t/2",[0,0.445,1,8.659]],["t/4",[0,0.559,2,2.751,3,3.439,4,2.208,5,2.609,6,2.609,7,3.561,8,2.609,9,3.643,10,4.331,11,4.725,12,3.439,13,5.548,14,2.928,15,4.296,16,3.024,17,3.14,18,2.435]],["t/6",[0,0.56,7,3.257,11,4.564,13,4.613,14,3.11,15,4.965,19,4.823,20,1.626,21,2.504,22,6.68,23,3.154,24,4.057]],["t/9",[25,8.839]],["t/11",[0,0.512]],["t/13",[0,0.512]],["t/15",[26,6.686]],["t/17",[0,0.52,14,3.969,27,7.192,28,7.192,29,7.192,30,7.192]],["t/19",[0,0.559,2,2.074,3,2.593,4,1.664,5,1.967,6,1.967,7,3.681,8,1.967,14,3.209,18,1.836,20,2.121,31,2.135,32,3.265,33,3.464,34,4.76,35,4.619,36,4.297,37,4.619,38,3.265,39,3.265,40,3.265,41,6.293,42,5.988,43,5.162,44,3.265]],["t/21",[0,0.389,14,2.968,45,7.577,46,7.577,47,7.577,48,7.577,49,7.577,50,7.577,51,7.577]],["t/23",[0,0.396,20,2.601,52,7.715,53,9.31,54,7.715,55,7.715,56,7.715]],["t/25",[0,0.556,2,2.14,3,2.675,4,1.717,5,2.03,6,2.03,7,3.449,8,2.03,14,3.392,15,1.936,16,3.655,17,3.796,18,1.894,20,2.164,21,2.718,23,2.203,24,2.834,57,2.443,58,2.675,59,6.42,60,5.805,61,3.369,62,4.403,63,7.09,64,3.369,65,3.369,66,3.369]],["t/27",[0,0.52,67,3.805,68,6.503,69,7.192,70,8.919,71,7.192,72,7.192,73,7.192]],["t/29",[0,0.303,74,5.33,75,3.977,76,4.958,77,5.894,78,5.33,79,5.894,80,5.894,81,7.977,82,5.894,83,7.847,84,5.894,85,5.33,86,3.855,87,3.744,88,5.33,89,5.894,90,5.33,91,5.33,92,5.33,93,5.894,94,4.958]],["t/31",[0,0.559,16,4.932,31,4.619,33,2.781,75,4.767,95,5.052,96,5.052,97,3.822,98,5.052,99,3.822,100,4.012,101,4.012,102,4.012,103,4.569,104,4.25,105,5.052,106,5.052,107,5.052]],["t/33",[0,0.547,108,6.615,109,7.316,110,7.316,111,7.316,112,7.316]],["t/35",[0,0.558,16,4.358,17,4.525,57,5.908,97,4.721,99,4.721,100,4.955,113,6.241,114,5.643,115,6.241]],["t/37",[0,0.553,97,5.177,99,5.177,101,5.435,102,5.435,116,6.844,117,6.844,118,6.844]],["t/39",[0,0.546,11,3.695,20,2.167,119,6.43,120,6.43,121,6.43,122,6.43,123,6.43,124,3.063,125,6.43,126,6.43,127,4.49]],["t/41",[21,4.079,23,5.139,128,7.105,129,5.944,130,7.858,131,7.105,132,7.105]],["t/43",[97,5.836,99,5.836,100,6.126,101,6.126,102,6.126,103,6.976,104,6.49,133,7.715]],["t/45",[0,0.549,11,4.273,21,2.825,23,3.558,43,3.945,86,3.558,124,2.592,129,4.116,134,4.577,135,5.441,136,4.92,137,5.441,138,5.441,139,4.577,140,5.441,141,5.441,142,5.441,143,4.92,144,4.92]],["t/47",[0,0.483,2,4.279,87,4.279,90,6.091,91,6.091,92,6.091,145,5.095,146,6.736,147,6.736,148,3.708,149,6.736,150,6.736,151,6.736,152,6.736]],["t/49",[0,0.563,14,2.937,20,2.528,21,2.861,153,4.376,154,5.511,155,4.636,156,3.996,157,5.511,158,5.511,159,5.511,160,5.511,161,5.511]],["t/51",[0,0.436,74,7.673,162,8.486]],["t/53",[0,0.565,34,2.744,67,1.919,163,9.055,164,4.662,165,3.628,166,3.628,167,5.542,168,5.542,169,5.542,170,5.542,171,4.192,172,5.087,173,5.542,174,3.628,175,3.628]],["t/56",[0,0.566,176,5.113,177,5.113,178,5.113,179,5.113,180,5.113,181,5.113,182,5.113,183,5.113,184,5.113,185,5.113,186,5.113,187,5.113,188,5.113,189,5.113,190,5.113,191,5.113]],["t/58",[0,0.562,4,2.704,5,3.196,6,3.196,57,3.847,75,3.58,85,4.797,86,3.469,87,3.37,94,4.462,192,4.797,193,4.462,194,4.212,195,3.704,196,4.212,197,5.305,198,5.305]],["t/60",[4,3.328,5,3.934,6,3.934,199,6.529,200,6.529,201,6.529,202,6.529,203,6.529,204,6.529,205,6.529,206,6.529,207,6.529,208,5.184,209,6.529,210,6.529,211,6.529,212,6.529,213,6.529]],["t/62",[0,0.525,7,3.024,11,3.163,13,3.715,15,1.534,20,1.856,108,2.414,214,6.279,215,2.67,216,2.67,217,2.67,218,2.67,219,2.67,220,2.67,221,1.936,222,2.67,223,2.67,224,2.67,225,2.67,226,2.67,227,2.12,228,2.67,229,5.04,230,4.602,231,4.35,232,2.414,233,2.67,234,2.67,235,2.67,236,2.67,237,2.67,238,2.67,239,2.12,240,2.414,241,2.414,242,5.518,243,2.67,244,2.67,245,2.67,246,2.67,247,2.67,248,2.67,249,1.801,250,2.67,251,2.414,252,2.67,253,2.414,254,2.246,255,1.936,256,2.67,257,2.67,258,2.67,259,2.67,260,2.67,261,2.67,262,2.67]],["t/65",[0,0.458,7,3.426,263,4.703,264,6.503,265,5.215,266,6.503,267,7.192,268,5.44,269,7.192,270,6.503,271,7.192]],["t/67",[0,0.553,7,2.645,15,2.526,18,1.52,31,1.768,67,1.43,263,4.601,264,5.021,265,1.96,272,4.2,273,2.704,274,2.704,275,2.704,276,2.704,277,2.704,278,2.704,279,2.704,280,2.704,281,2.704,282,2.704,283,2.704,284,2.704,285,2.704,286,2.704,287,2.966,288,5.379,289,2.445,290,2.274,291,2.147,292,2.445,293,2.274,294,2.274,295,2.445,296,5.918,297,2.274,298,2.274,299,4.2,300,3.697,301,2.274,302,1.404,303,2.274,304,2.274,305,2.274,306,2.445,307,2.445,308,2.445,309,2.274,310,2.274,311,2.274,312,1.96,313,2.445,314,2.045]],["t/69",[0,0.357,242,4.858,287,4.694,299,5.262,315,6.956,316,6.956,317,4.3,318,7.582,319,6.956,320,6.956,321,6.956,322,6.956]],["t/72",[0,0.494,7,4.322,11,3.586,15,3.586,33,3.435,268,4.721,270,7.368,323,7.632,324,6.241,325,4.721,326,6.241,327,6.241,328,6.241]],["t/74",[0,0.527,7,4.353,148,3.487,242,4.423,323,5.328,329,8.227,330,6.334,331,6.334,332,6.334,333,6.334,334,6.334,335,6.334]],["t/76",[0,0.541,7,3.997,14,2.557,249,4.406,323,7.057,336,6.529,337,6.529,338,6.529,339,6.529,340,6.529]],["t/78",[0,0.436,341,8.486,342,8.486]],["t/80",[0,0.537,20,1.46,43,3.14,67,2.291,68,5.721,124,2.063,148,2.384,196,3.439,343,4.331,344,4.331,345,4.331,346,4.331,347,4.331,348,4.331,349,4.331,350,6.327,351,4.331,352,4.331,353,4.331,354,4.331,355,4.331,356,4.331,357,4.331,358,4.331,359,4.331,360,8.221,361,4.331,362,4.331,363,4.331,364,4.331,365,4.331,366,4.331,367,4.331]],["t/82",[0,0.571,2,1.079,155,1.428,193,1.428,302,2.459,368,1.698,369,1.698,370,1.698,371,1.698,372,1.698,373,1.698,374,1.698,375,1.428,376,1.698,377,1.698,378,1.698,379,1.698,380,1.698,381,1.698,382,1.698,383,1.698,384,1.698,385,1.535,386,1.698,387,1.698,388,1.428,389,1.698,390,1.698,391,1.698,392,1.698,393,1.698,394,1.05,395,1.698,396,1.698,397,1.698,398,1.698,399,1.698,400,1.698,401,1.698,402,1.698,403,1.698,404,1.535,405,1.698,406,1.698,407,1.698,408,1.535,409,1.698,410,1.698,411,1.698,412,1.698,413,1.535,414,1.698,415,1.05,416,2.967,417,1.698,418,1.698,419,1.698,420,1.535,421,1.698,422,1.698,423,1.698,424,1.698,425,1.698,426,1.698,427,1.698,428,1.698,429,1.698,430,1.698,431,1.698,432,1.698,433,1.698,434,1.698,435,1.698,436,1.698,437,1.698,438,1.698,439,1.698,440,1.698,441,1.698,442,1.698,443,1.698,444,1.698,445,1.698,446,1.698,447,1.698,448,1.698,449,1.698,450,1.698,451,1.535,452,1.698,453,1.698,454,1.698,455,1.698,456,1.698]],["t/84",[0,0.559,2,2.406,4,1.151,5,1.36,6,1.36,7,2.33,8,1.36,11,2.811,14,1.483,16,2.644,17,1.637,18,1.269,20,0.761,21,1.172,23,1.477,24,1.899,31,3.745,62,1.899,75,4.951,129,1.708,139,1.899,265,1.637,302,2.539,457,2.258,458,2.258,459,2.258,460,2.258,461,2.258,462,6.634,463,2.258,464,2.258,465,2.258,466,2.258,467,2.258,468,2.042,469,4.891,470,4.423,471,2.042,472,2.042,473,4.423,474,2.042,475,2.258,476,2.258,477,2.258,478,3.787,479,2.042,480,2.258,481,2.258,482,2.258,483,2.258,484,2.258,485,1.899,486,1.708,487,2.258,488,2.258,489,2.258,490,2.258]],["t/86",[0,0.551,11,2.85,97,2.378,99,2.378,100,2.497,101,2.497,102,2.497,104,2.645,195,4.289,265,2.28,302,2.575,462,6.305,470,6.305,471,2.843,472,2.843,473,4.485,474,2.843,479,2.843,491,3.144,492,4.959,493,3.144,494,2.497,495,3.144,496,3.144,497,3.144,498,3.144,499,3.144,500,3.144,501,3.144,502,3.144,503,4.959,504,3.144,505,3.144,506,3.144,507,3.144,508,6.141,509,3.144,510,3.144,511,3.144,512,3.144,513,3.144,514,3.144,515,3.144,516,3.144,517,3.144]],["t/88",[0,0.551,21,1.574,57,7.062,67,3.614,78,2.741,268,2.293,388,2.55,404,2.741,413,2.741,518,3.032,519,3.032,520,3.032,521,3.032,522,3.032,523,3.032,524,3.032,525,3.032,526,3.032,527,3.032,528,3.032,529,3.032,530,3.032,531,3.032,532,3.032,533,3.032,534,3.032,535,3.032,536,3.032,537,2.741,538,3.032,539,3.032,540,3.032,541,3.032,542,3.032,543,3.032,544,3.032,545,3.032,546,3.032,547,3.032,548,3.032,549,3.032,550,4.819,551,2.293,552,3.032,553,3.032,554,3.032]],["t/90",[0,0.448,58,5.524,249,4.694,266,6.29,555,6.956,556,6.956,557,5.851,558,6.956,559,6.956,560,6.956,561,6.956,562,6.956,563,6.956]],["t/92",[0,0.561,7,2.844,87,5.378,494,3.179,564,4.004,565,5.022,566,4.004,567,4.004,568,4.004,569,5.971,570,5.971,571,5.399,572,4.004,573,4.004,574,4.004,575,4.004,576,4.004,577,4.004,578,4.004,579,4.004,580,4.004,581,4.004,582,4.004,583,4.004,584,4.004]],["t/94",[0,0.544,21,3.103,23,3.909,128,5.405,129,4.521,131,5.405,132,5.405,194,7.053,312,4.334,585,5.977,586,5.977,587,5.977,588,5.028,589,5.977]],["t/96",[0,0.554,127,4.005,196,6.909,590,5.735,591,5.735,592,4.554,593,5.735,594,5.735,595,5.735,596,4.554,597,5.735,598,5.735,599,5.735,600,5.735]],["t/98",[0,0.57,21,1.967,23,2.478,62,3.188,86,4.517,129,2.867,134,3.188,139,3.188,143,3.427,144,3.427,312,2.748,468,3.427,588,3.188,601,3.79,602,3.79,603,3.79,604,3.79,605,3.79,606,3.79,607,3.79,608,3.79,609,3.79,610,3.79,611,3.79,612,3.79,613,3.79,614,3.79]],["t/100",[21,4.005,86,5.045,88,6.976,136,6.976,588,6.49,615,7.715,616,7.715,617,7.715]],["t/102",[0,0.565,7,0.911,14,1.694,20,2.409,21,0.993,94,2.766,230,1.386,232,1.729,239,1.518,242,1.335,251,3.912,302,1.707,618,1.912,619,5.788,620,3.288,621,1.912,622,5.788,623,9.012,624,1.912,625,1.912,626,1.386,627,1.912,628,1.912,629,2.92,630,1.912,631,1.912,632,4.326,633,1.912,634,1.912,635,1.912,636,1.912,637,6.322,638,1.912,639,1.912,640,1.912,641,1.912,642,1.912,643,1.912,644,1.912,645,1.912,646,1.912,647,1.912,648,1.912,649,1.912,650,1.912,651,1.912,652,1.912,653,1.912,654,1.912,655,2.974]],["t/105",[0,0.553,2,1.804,4,0.576,5,0.68,6,0.68,7,2.735,8,0.68,14,2.249,16,4.225,17,2.06,18,2.292,20,1.542,31,3.277,33,1.564,37,1.021,58,0.896,75,0.762,81,1.021,86,0.738,124,0.981,134,1.733,148,1.564,164,2.389,214,0.762,221,2.541,255,1.494,263,1.347,268,0.854,287,1.39,288,2.948,290,0.95,291,2.783,293,0.95,294,0.95,296,3.429,297,0.95,298,0.95,299,2.651,300,2.389,301,0.95,302,0.586,303,0.95,304,0.95,305,0.95,309,0.95,310,2.948,311,3.429,312,1.494,313,1.021,314,2.651,485,0.95,629,1.39,656,1.021,657,1.129,658,1.021,659,1.021,660,1.863,661,1.021,662,0.95,663,2.84,664,2.06,665,1.733,666,3.505,667,2.06,668,2.06,669,2.06,670,1.129,671,1.129,672,1.129,673,2.06,674,2.06,675,2.06,676,2.06,677,2.06,678,1.129,679,2.06,680,1.129,681,3.169,682,2.06,683,1.129,684,1.129,685,1.129,686,2.06,687,1.129,688,2.06,689,2.956,690,2.06,691,1.438,692,2.06,693,1.129,694,1.129,695,1.129,696,1.129,697,1.129,698,1.129,699,2.84,700,1.129,701,1.129,702,2.06,703,1.129,704,1.129,705,1.129,706,1.129,707,1.129,708,2.06]],["t/107",[0,0.537,2,2.895,4,0.82,5,0.969,6,0.969,7,3.555,8,0.969,14,0.63,18,3.881,20,0.953,31,1.85,33,2.084,75,1.085,127,1.123,192,1.454,196,1.277,214,1.085,221,2.051,263,1.85,287,1.909,288,3.834,289,1.454,290,1.353,291,1.277,292,1.454,293,1.353,294,1.353,295,1.454,296,4.368,297,1.353,298,1.353,299,4.331,300,3.185,301,1.353,302,1.966,303,1.353,304,1.353,305,1.353,306,1.454,307,1.454,308,1.454,309,1.353,310,1.353,311,2.379,312,2.051,314,2.139,485,1.353,592,1.277,596,1.277,656,1.454,658,1.454,659,1.454,660,2.557,661,1.454,665,1.353,709,1.608,710,1.608,711,2.828,712,2.828,713,1.608,714,1.608,715,1.166,716,2.557,717,1.608,718,1.608,719,1.608,720,1.608,721,1.608,722,1.608,723,1.608,724,1.608,725,1.608,726,1.608,727,1.608,728,1.608,729,1.608,730,1.608,731,1.608,732,1.608,733,1.608,734,1.608,735,1.608,736,1.608,737,1.608,738,1.608,739,1.608,740,1.608,741,1.608,742,1.608,743,1.277,744,1.608,745,1.608,746,1.353,747,1.608,748,1.608,749,1.608,750,1.608,751,1.608,752,1.608,753,1.608,754,1.608,755,1.608,756,1.608,757,1.608,758,1.608,759,1.608,760,1.608,761,1.608,762,1.608,763,1.608,764,1.608,765,1.608,766,2.828,767,1.608]],["t/109",[0,0.54,7,3.338,8,0.567,14,1.579,18,2.711,20,1.201,33,1.671,34,2.695,35,1.576,36,0.792,67,0.922,124,0.448,127,2.119,164,1.466,171,0.712,172,2.296,214,3.877,249,3.482,263,1.985,268,2.296,287,2.72,299,0.712,302,0.905,312,0.683,314,0.712,317,1.077,325,0.712,551,0.712,665,2.047,691,0.657,715,1.264,768,0.941,769,0.941,770,0.941,771,1.576,772,2.433,773,2.744,774,0.941,775,0.941,776,2.433,777,0.941,778,3.035,779,1.743,780,0.941,781,0.941,782,0.941,783,0.941,784,0.941,785,0.941,786,0.941,787,1.743,788,4.448,789,1.743,790,0.747,791,3.222,792,1.743,793,0.941,794,0.941,795,1.743,796,0.941,797,0.941,798,0.941,799,1.743,800,0.941,801,0.941,802,6.001,803,2.433,804,2.433,805,4.031,806,0.941,807,0.941,808,0.941,809,0.941,810,0.941,811,0.941,812,0.941,813,0.941,814,0.941,815,0.941,816,0.941,817,0.941,818,0.941,819,0.941,820,1.743,821,2.433,822,2.433,823,1.743,824,0.941,825,2.433,826,1.743,827,0.941,828,1.743,829,0.941,830,0.941,831,0.941,832,0.941,833,0.941,834,0.941,835,2.433,836,0.941,837,1.743,838,1.466,839,0.941,840,0.941,841,0.941,842,1.743,843,0.941,844,0.941,845,0.941,846,0.941,847,0.941,848,0.941,849,0.941,850,0.941,851,0.941,852,0.851,853,0.941,854,0.941,855,0.941,856,0.941,857,0.941,858,0.941,859,0.941,860,0.941,861,1.743,862,0.941,863,0.941,864,0.941,865,0.941,866,0.941,867,0.941,868,0.941,869,0.941,870,0.941,871,0.941,872,0.941,873,0.941,874,0.941,875,0.941,876,0.941,877,0.941,878,0.941,879,1.743,880,0.941,881,0.941,882,1.743,883,1.743,884,0.941,885,0.941,886,0.941,887,0.941,888,0.941,889,0.941,890,0.941,891,0.941,892,0.941,893,0.941,894,0.941]],["t/112",[0,0.555,4,0.729,5,0.861,6,0.861,7,3.925,8,0.861,14,1.64,18,3.833,20,1.412,31,0.935,127,0.998,208,1.135,214,0.965,221,3.036,227,1.135,229,1.135,230,1.848,242,0.998,263,0.935,265,1.036,287,0.965,302,0.742,318,1.135,592,1.135,596,1.135,662,1.202,715,3.036,743,2.738,746,1.202,838,1.202,895,1.202,896,1.202,897,1.292,898,1.292,899,1.292,900,1.202,901,1.292,902,2.304,903,2.304,904,2.304,905,2.304,906,2.548,907,2.548,908,1.429,909,5.192,910,2.304,911,1.292,912,2.304,913,2.304,914,2.143,915,2.143,916,2.304,917,1.292,918,1.292,919,1.292,920,1.292,921,1.292,922,1.292,923,1.292,924,1.292,925,1.292,926,3.786,927,1.292,928,1.292,929,1.292,930,1.292,931,1.292,932,1.292,933,1.292,934,1.292,935,1.292,936,1.292,937,1.292,938,1.292,939,1.292,940,3.118,941,3.118,942,1.292,943,1.292,944,1.292,945,1.292,946,1.292,947,1.202,948,1.202,949,1.202,950,1.292,951,1.292,952,1.292,953,1.292,954,1.292,955,1.292,956,2.143,957,1.292,958,1.292,959,1.292,960,3.448,961,1.202,962,1.292]],["t/114",[0,0.502,4,0.937,5,1.107,6,1.107,7,4.245,8,1.107,14,1.959,18,4.288,20,1.686,31,1.202,127,1.283,208,1.459,214,1.24,221,3.626,227,1.459,229,1.459,230,2.304,242,1.283,263,1.202,265,1.332,287,1.24,302,0.954,318,1.459,592,1.459,596,1.459,662,1.546,715,3.626,743,3.333,746,1.546,838,1.546,895,1.546,896,1.546,897,1.662,898,1.662,899,1.662,900,1.546,901,1.662,902,2.873,903,2.873,904,2.873,905,2.873,909,5.579,910,2.873,911,1.662,912,2.873,913,2.873,914,2.673,915,2.673,916,2.873,917,1.662,918,1.662,919,1.662,920,1.662,921,1.662,922,1.662,923,1.662,924,1.662,925,1.662,926,4.522,927,1.662,928,1.662,929,1.662,930,1.662,931,1.662,932,1.662,933,1.662,934,1.662,935,1.662,936,1.662,937,1.662,938,1.662,939,1.662,940,3.796,941,3.796,942,1.662,943,1.662,944,1.662,945,1.662,946,1.662,947,1.546,948,1.546,949,1.546,950,1.662,951,1.662,952,1.662,953,1.662,954,1.662,955,1.662,956,2.673,957,1.662,958,1.662,959,1.662,961,1.546,962,1.662]],["t/116",[0,0.45,4,1.482,5,1.752,6,1.752,7,4.288,8,1.752,14,1.139,18,3.75,20,1.966,208,2.308,214,4.502,221,3.379,227,2.308,229,2.308,230,3.379,240,2.629,241,2.629,242,2.03,253,2.629,263,1.901,287,1.962,302,1.509,318,2.308,626,3.379,715,2.108,743,3.7,895,2.445,896,2.445,900,2.445,909,3.92,914,2.445,915,2.445,947,2.445,948,2.445,949,2.445,956,2.445,961,2.445,963,2.907,964,2.907,965,2.907,966,2.907,967,2.907,968,2.907,969,2.907,970,2.907,971,2.907,972,2.907,973,2.907,974,2.907,975,2.907,976,2.445,977,2.907,978,2.907,979,2.907,980,2.907,981,2.907,982,2.907,983,2.907,984,2.907,985,2.907,986,2.907,987,2.907,988,2.907,989,2.907,990,2.907,991,2.907,992,2.907,993,2.907,994,2.907]],["t/120",[0,0.563]],["t/122",[0,0.546]],["t/124",[0,0.454]],["t/127",[21,3.798,995,8.15,996,7.316,997,6.154,998,7.316,999,6.154,1000,6.615,1001,6.615,1002,7.316,1003,7.316]],["t/129",[21,3.934,997,6.374,999,6.374,1004,7.577,1005,6.852,1006,8.327,1007,7.577,1008,7.577]],["t/131",[0,0.456,14,2.341,20,2.015,995,5.405,997,5.028,999,5.028,1000,5.405,1001,7.162,1005,5.405,1006,5.405,1009,5.977,1010,5.405,1011,5.977,1012,7.92,1013,5.977,1014,4.033,1015,5.977,1016,5.977,1017,5.977,1018,5.977]],["t/133",[0,0.454]],["t/137",[0,0.546,20,2.044,1019,8.6,1020,6.062,1021,6.062,1022,6.062,1023,6.062,1024,6.062,1025,6.062,1026,6.062,1027,6.062,1028,6.062]],["t/141",[0,0.506,1029,8.486]],["t/144",[0,0.513,1030,9.041,1031,7.715,1032,7.715]],["t/146",[0,0.445,1033,8.659]],["t/149",[0,0.512]],["t/151",[1034,8.382]],["t/153",[0,0.568]],["t/156",[0,0.546]],["t/158",[0,0.53,1035,7.523]],["t/161",[0,0.546]],["t/163",[0,0.533,629,3.87,1019,8.411,1036,5.735,1037,5.735,1038,5.186,1039,5.735,1040,5.735,1041,5.186,1042,5.735,1043,5.735,1044,5.186,1045,5.735,1046,5.735,1047,5.735,1048,5.735,1049,5.735]],["t/166",[0,0.559]],["t/168",[0,0.543,1038,7.981,1041,7.981,1044,6.395,1050,7.072,1051,7.072]],["t/170",[0,0.548,21,4.079,486,5.944]],["t/172",[0,0.546,21,4.833,486,5.836]],["t/174",[0,0.546]],["t/178",[0,0.525,1052,6.241,1053,5.643,1054,6.241,1055,6.716,1056,6.241,1057,6.241,1058,6.241,1059,6.241,1060,5.643,1061,6.241,1062,4.721,1063,5.643]],["t/180",[1055,5.81,1064,8.32,1065,8.32,1066,8.32]],["t/182",[0,0.498,1055,5.022,1060,6.503,1062,5.44,1063,6.503,1067,7.192,1068,6.503,1069,7.192,1070,7.192,1071,7.192]],["t/184",[0,0.512]],["t/186",[0,0.514,21,3.612,1055,6.1,1072,5.262,1073,7.348,1074,8.735,1075,6.956,1076,6.29]],["t/188",[0,0.536,4,2.027,14,0.67,60,1.548,67,2.52,153,1.359,194,1.359,325,1.295,394,1.058,494,1.359,557,1.44,773,1.548,1053,1.548,1055,4.147,1062,1.295,1068,1.548,1072,2.26,1073,4.006,1077,2.701,1078,1.712,1079,1.712,1080,1.712,1081,2.988,1082,1.712,1083,1.548,1084,1.712,1085,1.712,1086,1.712,1087,2.988,1088,4.763,1089,1.712,1090,1.712,1091,2.988,1092,4.307,1093,4.763,1094,2.988,1095,1.712,1096,1.712,1097,1.548,1098,1.712,1099,1.712,1100,2.988,1101,2.988,1102,1.712,1103,1.712,1104,2.988,1105,1.712,1106,2.701,1107,1.712,1108,1.712,1109,1.712,1110,1.712,1111,1.712,1112,1.712,1113,1.712,1114,1.712,1115,1.712,1116,1.712,1117,1.548,1118,1.712,1119,1.712,1120,1.712,1121,1.712,1122,1.712,1123,1.712,1124,1.712,1125,1.548,1126,1.712,1127,2.988,1128,2.988,1129,2.988,1130,1.712,1131,1.712,1132,1.712,1133,1.548,1134,1.548,1135,1.548,1136,1.548,1137,1.548,1138,1.548,1139,1.548,1140,1.548,1141,2.701,1142,1.548,1143,1.548,1144,1.548,1145,1.548,1146,2.701,1147,1.548,1148,2.701,1149,1.548,1150,1.548,1151,2.701,1152,1.548,1153,1.548,1154,1.548,1155,1.548,1156,1.548,1157,3.595,1158,1.548,1159,1.548,1160,1.548,1161,1.548,1162,3.595,1163,1.548,1164,1.359,1165,1.548,1166,1.195,1167,1.44,1168,1.44,1169,1.548,1170,1.712]],["t/190",[0,0.512]],["t/192",[26,6.686]],["t/194",[14,3.391,1171,8.659]],["t/196",[0,0.546,2,4.544,4,0.744,7,1.236,8,0.879,63,1.319,67,2.577,155,1.227,163,2.346,171,1.103,263,1.697,302,2.207,317,0.902,388,1.227,565,1.227,715,2.541,716,1.319,1010,1.319,1055,1.812,1072,1.103,1077,2.346,1168,2.948,1172,1.459,1173,1.459,1174,2.595,1175,2.595,1176,2.595,1177,2.595,1178,6.24,1179,2.595,1180,2.595,1181,2.595,1182,2.595,1183,2.595,1184,4.25,1185,2.595,1186,2.595,1187,2.595,1188,2.595,1189,2.595,1190,2.595,1191,2.595,1192,2.595,1193,2.595,1194,5.398,1195,2.595,1196,2.061,1197,2.595,1198,2.595,1199,3.505,1200,1.459,1201,1.459,1202,1.459,1203,1.459,1204,1.459,1205,1.459,1206,1.459,1207,1.459,1208,1.459,1209,1.459,1210,1.459,1211,1.459,1212,1.459,1213,1.459,1214,1.459,1215,1.459,1216,1.459,1217,1.459,1218,1.459,1219,1.459,1220,1.459,1221,1.459,1222,1.459,1223,1.459,1224,1.459,1225,1.459,1226,1.459,1227,1.459,1228,1.459,1229,1.459,1230,1.459,1231,1.227,1232,1.459,1233,1.459,1234,1.459,1235,1.459,1236,1.158,1237,1.459,1238,1.459,1239,1.459,1240,1.459,1241,1.459,1242,1.459,1243,1.459,1244,1.459,1245,1.459,1246,1.459,1247,1.459,1248,1.459,1249,1.459,1250,2.595,1251,1.459,1252,1.459,1253,1.459,1254,1.459,1255,1.459,1256,1.319,1257,1.459,1258,1.459,1259,1.319,1260,1.459]],["t/198",[0,0.522,4,1.717,67,1.782,153,2.675,557,2.834,691,2.352,1055,2.352,1062,3.96,1072,2.548,1073,6.09,1106,3.046,1133,3.046,1134,3.046,1135,3.046,1136,3.046,1137,3.046,1138,3.046,1139,3.046,1140,3.046,1141,4.733,1142,3.046,1143,3.046,1144,3.046,1145,3.046,1146,4.733,1147,3.046,1148,4.733,1149,3.046,1150,3.046,1151,4.733,1152,3.046,1153,3.046,1154,3.046,1155,3.046,1156,3.046,1157,5.805,1158,3.046,1159,3.046,1160,3.046,1161,3.046,1162,5.805,1163,3.046,1164,2.675,1165,3.046,1166,2.352,1167,2.834,1168,2.834,1169,3.046,1261,3.369,1262,3.369,1263,3.369,1264,3.369]],["t/200",[0,0.436,1265,8.486,1266,4.771]],["t/202",[0,0.382,408,4.92,1236,4.32,1266,3.059,1267,7.435,1268,5.441,1269,5.441,1270,4.92,1271,4.32,1272,4.92,1273,4.92,1274,4.116,1275,5.441,1276,5.441,1277,5.441,1278,4.92,1279,4.577,1280,3.456,1281,4.577,1282,5.441,1283,5.441,1284,5.441,1285,5.441,1286,5.441,1287,5.441,1288,3.558,1289,5.441,1290,5.441,1291,5.441]],["t/204",[0,0.346,1270,6.091,1271,5.348,1292,6.736,1293,6.736,1294,6.736,1295,6.736,1296,6.736,1297,6.736,1298,6.736,1299,6.736,1300,6.736,1301,6.736,1302,6.736,1303,6.736,1304,6.736]],["t/206",[0,0.351,1305,4.619,1306,6.844,1307,6.844,1308,6.844,1309,6.844,1310,6.844,1311,6.844,1312,6.844,1313,6.844,1314,6.844,1315,6.844,1316,6.844,1317,6.844,1318,6.844]],["t/208",[0,0.32,1319,6.241,1320,5.643,1321,6.241,1322,8.148,1323,6.241,1324,6.241,1325,6.241,1326,5.643,1327,6.241,1328,6.241,1329,6.241,1330,6.241,1331,6.241,1332,6.241,1333,6.241,1334,6.241,1335,6.241,1336,6.241,1337,6.241]],["t/211",[0,0.535,1338,8.919,1339,7.192,1340,7.192,1341,7.192,1342,7.192,1343,7.192]],["t/213",[0,0.536,11,4.51,13,5.295,1344,5.894,1345,5.894,1346,5.894,1347,5.894,1348,5.894,1349,5.894,1350,5.894,1351,5.894,1352,5.894,1353,5.894,1354,5.894,1355,5.894,1356,5.894]],["t/215",[1357,7.239,1358,8.006,1359,8.006,1360,8.006,1361,8.006,1362,8.006]],["t/219",[0,0.551,1363,4.244,1364,3.838,1365,4.244,1366,4.244,1367,7.388,1368,4.244,1369,4.244,1370,4.244,1371,4.244,1372,4.244,1373,6.234,1374,4.244,1375,4.244,1376,4.244,1377,4.244,1378,4.244,1379,4.244,1380,4.244,1381,4.244,1382,4.244,1383,4.244,1384,4.244,1385,4.244,1386,4.244,1387,4.244,1388,4.244,1389,4.244,1390,4.244,1391,4.244,1392,4.244,1393,4.244]],["t/222",[0,0.563]],["t/224",[0,0.506,1394,8.486]],["t/226",[0,0.506,1395,8.486]],["t/229",[0,0.574]],["t/231",[0,0.563,486,4.458,1396,7.847,1397,5.894,1398,7.847,1399,5.894,1400,5.894,1401,5.894,1402,5.894,1403,5.894]],["t/233",[0,0.566,20,3.541,124,4.529]],["t/235",[0,0.512]],["t/237",[0,0.496,1404,7.123,1405,4.301,1406,5.113,1407,5.113,1408,5.113,1409,5.113,1410,5.113,1411,4.624,1412,5.113,1413,5.113,1414,5.113,1415,5.113,1416,5.113,1417,5.113,1418,5.113,1419,5.113,1420,5.113,1421,5.113,1422,5.113,1423,5.113,1424,5.113,1425,5.113,1426,5.113,1427,4.624,1428,4.624,1429,5.113,1430,4.301,1431,5.113,1432,5.113]],["t/239",[0,0.488,1411,5.482,1427,5.482,1428,5.482,1430,5.099,1433,6.062,1434,6.062,1435,6.062,1436,6.062,1437,6.062,1438,6.062,1439,6.062,1440,6.062,1441,6.062,1442,6.062,1443,6.062,1444,6.062,1445,6.062,1446,6.062,1447,6.062]],["t/241",[0,0.534,1430,7.128,1448,6.631,1449,6.631,1450,6.631,1451,6.631,1452,6.631,1453,6.631,1454,6.631,1455,6.631,1456,6.631]],["t/244",[33,4.866]],["t/248",[0,0.573]],["t/250",[0,0.53,1457,8.32]],["t/253",[0,0.489,1458,8.006,1459,8.006,1460,8.006,1461,8.006]],["t/255",[0,0.559]],["t/257",[0,0.568,1462,6.15,1463,6.15,1464,6.15,1465,5.561,1466,6.15,1467,5.173,1468,5.561]],["t/259",[0,0.579,33,2.957,1465,6.664]],["t/261",[0,0.527,415,4.602,1469,5.911,1470,6.731,1471,6.731,1472,6.731,1473,6.731]],["t/263",[1474,7.993]],["t/266",[415,5.143,1305,5.614,1475,7.523,1476,7.523]],["t/268",[1477,5.903,1478,5.903,1479,5.903,1480,5.903,1481,5.903,1482,5.903,1483,5.903,1484,5.903,1485,5.903,1486,5.903,1487,5.903,1488,5.903,1489,5.903,1490,5.903,1491,4.406,1492,4.269,1493,5.903,1494,5.903]],["t/270",[1495,6.154,1496,6.615,1497,6.615,1498,5.534,1499,4.785,1500,6.615,1501,6.615,1502,6.615,1503,6.615,1504,6.615,1505,6.615]],["t/272",[1506,7.239,1507,7.239,1508,7.239,1509,7.239,1510,7.239,1511,7.239]],["t/274",[0,0.424,22,3.68,42,3.68,43,3.173,1498,6.249,1499,5.743,1512,3.956,1513,3.956,1514,3.956,1515,3.31,1516,3.956,1517,3.956,1518,3.173,1519,3.956,1520,3.956,1521,3.68,1522,3.956,1523,3.31,1524,6.799,1525,4.917,1526,3.956,1527,3.956,1528,5.764,1529,3.956,1530,3.956,1531,3.956,1532,3.956,1533,3.956,1534,3.956,1535,3.956,1536,3.956,1537,3.055,1538,3.956,1539,3.956,1540,3.956]],["t/278",[0,0.562,415,5.341,1280,6.188,1541,7.735,1542,4.361,1543,3.83,1544,3.648]],["t/280",[1545,7.105,1546,7.105,1547,6.239,1548,7.105,1549,7.105,1550,7.105,1551,7.105]],["t/282",[0,0.489,14,2.912,20,1.834,156,3.945,254,4.577,1523,4.116,1525,3.558,1547,4.32,1552,4.92,1553,4.92,1554,4.92,1555,4.92,1556,4.92,1557,4.92,1558,4.92,1559,4.92,1560,4.92,1561,4.92,1562,4.92,1563,3.945,1564,4.92,1565,3.799,1566,4.92,1567,4.92,1568,4.92,1569,4.92]],["t/284",[0,0.427,1570,8.32,1571,6.998,1572,8.32]],["t/287",[1014,5.843,1573,8.659]],["t/289",[0,0.454]],["t/291",[0,0.573,1574,6.41]],["t/293",[0,0.389,394,4.684,1014,5.113,1571,6.374,1574,5.732,1575,7.577,1576,7.577,1577,4.955,1578,6.374]],["t/295",[0,0.494,394,6.409,1364,6.395,1579,4.773,1580,8.826,1581,7.072]],["t/297",[0,0.526,1578,6.864,1579,5.506]],["t/299",[0,0.523,1582,6.15,1583,6.15,1584,6.15,1585,6.15,1586,6.15,1587,6.15,1588,8.071,1589,6.15,1590,6.15,1591,6.15,1592,6.15,1593,6.15,1594,6.15,1595,6.15,1596,6.15]],["t/301",[0,0.501,394,4.522,1266,4.113,1597,5.725,1598,6.154,1599,5.809,1600,5.305,1601,6.154]],["t/304",[302,4.005,1597,5.914,1602,7.392,1603,6.976,1604,6.976,1605,6.976]],["t/306",[0,0.45,67,4.113,1602,4.616,1606,7.031,1607,5.257,1608,7.868,1609,7.369,1610,5.257,1611,5.257,1612,5.257,1613,6.54,1614,5.257,1615,5.257,1616,5.257,1617,5.257,1618,5.257]],["t/308",[0,0.53,1619,6.374,1620,6.374,1621,6.852,1622,6.852,1623,6.852]],["t/312",[0,0.559,1624,6.365,1625,3.012,1626,5.049,1627,6.425,1628,6.843,1629,6.843,1630,5.049,1631,5.049,1632,5.049]],["t/314",[0,0.536,7,1.444,20,2.513,249,3.252,1625,2.599,1627,4.188,1633,3.826,1634,4.357,1635,4.357,1636,2.741,1637,7.809,1638,4.357,1639,2.198,1640,4.357,1641,4.357,1642,6.178,1643,5.423,1644,4.357,1645,4.357,1646,4.357,1647,4.357,1648,4.357,1649,2.741,1650,2.407,1651,2.741,1652,3.494,1653,2.741,1654,2.741,1655,2.741,1656,2.741,1657,2.55,1658,2.741,1659,2.741,1660,3.826,1661,4.357,1662,2.741,1663,2.741]],["t/316",[0,0.546,1625,4.313,1627,5.583,1633,6.348,1639,6.486,1650,4.814,1664,3.653,1665,5.482,1666,5.482,1667,5.099]],["t/318",[0,0.557,14,0.945,20,0.813,87,2.542,1014,2.7,1491,1.628,1492,1.577,1518,1.749,1577,1.577,1579,1.628,1625,4.078,1660,5.667,1664,2.411,1668,2.181,1669,2.181,1670,2.181,1671,2.181,1672,2.181,1673,2.029,1674,2.901,1675,2.181,1676,2.181,1677,7.048,1678,5.101,1679,4.466,1680,1.915,1681,2.181,1682,2.181,1683,2.181,1684,2.181,1685,2.181,1686,2.181,1687,3.618,1688,2.181,1689,2.181,1690,2.181,1691,2.181,1692,1.749,1693,2.029,1694,2.181,1695,2.181]],["t/320",[0,0.554,14,1.162,75,2.003,124,1.414,195,2.073,1266,1.669,1305,2.003,1491,3.197,1492,3.099,1518,2.152,1600,3.436,1625,1.601,1652,2.152,1678,4.52,1679,3.197,1680,2.357,1692,2.152,1696,2.684,1697,2.684,1698,2.497,1699,5.347,1700,2.684,1701,2.684,1702,2.684,1703,5.347,1704,2.684,1705,1.885,1706,2.684,1707,2.684,1708,2.684,1709,2.684,1710,4.284,1711,2.245,1712,2.684,1713,2.684,1714,2.684,1715,2.003,1716,2.497,1717,2.684,1718,1.941,1719,2.684,1720,4.284,1721,4.284,1722,2.684,1723,2.684,1724,2.357,1725,2.684]],["t/322",[0,0.561,9,3.728,15,2.547,87,1.254,1515,1.493,1565,3.095,1574,1.493,1579,1.332,1597,3.334,1664,2.037,1674,3.806,1679,2.281,1711,1.493,1718,1.291,1726,6.81,1727,1.785,1728,1.785,1729,4.007,1730,1.785,1731,3.056,1732,1.785,1733,4.746,1734,1.785,1735,1.785,1736,1.785,1737,1.785,1738,3.056,1739,4.007,1740,3.056,1741,3.056,1742,4.746,1743,3.056,1744,1.785,1745,1.785,1746,1.785,1747,1.785,1748,3.056,1749,1.785,1750,1.785,1751,1.785,1752,5.818,1753,1.661,1754,1.785,1755,1.785,1756,1.785,1757,1.785,1758,1.661,1759,1.785,1760,1.785,1761,3.056,1762,1.785,1763,1.661,1764,1.661,1765,1.785,1766,1.785,1767,1.785]],["t/325",[0,0.562,1196,5.397,1280,4.318,1577,4.445,1678,3.906,1679,2.491,1768,5.078,1769,6.869,1770,3.337,1771,3.105,1772,3.337,1773,5.078,1774,3.337,1775,3.337,1776,3.337,1777,5.078,1778,5.078,1779,4.724,1780,3.337,1781,3.337,1782,3.337,1783,3.337,1784,3.337]],["t/328",[0,0.564,20,2.086,124,2.002,1288,2.748,1491,2.836,1492,2.748,1597,2.669,1625,5.508,1639,3.047,1664,4.883,1692,3.047,1724,4.914,1785,3.179]],["t/330",[0,0.521,1625,4.319,1664,4.824,1678,4.601]],["t/333",[1786,8.839]],["t/335",[415,4.769,1266,4.337,1281,6.49,1787,7.715,1788,7.715,1789,7.715,1790,7.715,1791,7.715]],["t/337",[1792,8.839]],["t/339",[0,0.389,1272,6.852,1273,6.852,1274,5.732,1305,5.113,1793,7.577,1794,7.577,1795,7.577,1796,7.577]],["t/341",[1288,5.55,1785,6.419,1797,8.486]],["t/343",[0,0.358,172,5.282,394,2.385,681,3.489,1266,3.265,1280,3.689,1288,3.798,1541,3.064,1577,2.523,1625,2.081,1718,2.523,1771,3.246,1785,4.393,1798,3.858,1799,6.536,1800,3.858,1801,3.858,1802,3.858,1803,4.885,1804,3.858,1805,3.858,1806,3.858,1807,3.858,1808,3.858,1809,3.858,1810,3.858,1811,3.858,1812,3.858,1813,3.858,1814,6.315,1815,7.535,1816,4.611,1817,2.523,1818,6.315,1819,3.858,1820,3.858,1821,3.858,1822,3.858,1823,3.858,1824,3.858,1825,3.064,1826,3.489]],["t/345",[976,4.697,1563,5.487,1565,5.284,1652,6.224,1705,3.547,1718,3.652,1726,4.697,1825,4.434,1827,5.584,1828,5.584,1829,5.584,1830,5.584,1831,5.584,1832,5.584,1833,5.584,1834,5.584,1835,5.584,1836,5.584,1837,5.584,1838,5.584,1839,5.584,1840,5.584,1841,5.584,1842,5.584,1843,5.584]],["t/347",[0,0.398,394,5.543,1266,2.594,1271,3.663,1541,3.663,1577,5.537,1803,6.517,1844,4.613,1845,4.613,1846,4.613,1847,4.613,1848,4.613,1849,4.613,1850,4.613,1851,4.613,1852,4.613,1853,4.613,1854,4.613,1855,4.613,1856,4.613,1857,4.613,1858,4.171,1859,4.613,1860,4.613,1861,4.613,1862,4.613,1863,4.613,1864,4.613,1865,4.613,1866,4.613,1867,4.613,1868,4.613,1869,4.613,1870,4.613]],["t/349",[1288,5.663,1871,8.659]],["t/351",[0,0.389,1278,6.852,1279,6.374,1280,4.813,1281,6.374,1305,5.113,1872,7.577,1873,7.577,1874,7.577]],["t/353",[1280,5.5,1875,8.659]],["t/355",[1876,8.839]],["t/357",[1236,5.524,1271,5.524,1288,5.712,1877,6.956,1878,6.956,1879,6.956,1880,6.956,1881,6.956,1882,6.956,1883,6.956,1884,6.956,1885,6.956,1886,6.956]],["t/359",[0,0.369,87,4.569,689,6.467,1887,7.192,1888,7.192,1889,7.192,1890,7.192,1891,7.192,1892,4.23,1893,7.192,1894,7.192]],["t/361",[0,0.453,148,4.858,629,4.773,1892,5.658,1895,7.072,1896,7.072,1897,7.072,1898,7.072,1899,7.072]],["t/363",[0,0.376,148,4.962,1892,5.745,1900,7.316,1901,7.316,1902,7.316,1903,7.316,1904,7.316]],["t/365",[0,0.483,20,2.271,87,4.279,148,3.708,239,5.348,629,4.545,1892,5.821,1905,6.091,1906,6.736,1907,6.736,1908,6.736]],["t/367",[0,0.483,1499,6.156,1525,6.156,1909,7.858]],["t/370",[0,0.568,20,2.66,148,4.732,691,6.002,1910,4.769,1911,4.769,1912,4.769,1913,4.769,1914,4.769,1915,4.769,1916,4.769]],["t/372",[0,0.513,1917,9.31,1918,7.715,1919,7.715,1920,7.715]],["t/375",[18,2.91,375,4.353,1166,5.016,1320,4.68,1499,5.828,1525,6.336,1563,5.209,1565,3.614,1816,4.11,1921,7.183,1922,6.042,1923,5.176,1924,5.176,1925,5.176,1926,5.176,1927,5.176,1928,7.183,1929,4.353,1930,5.176,1931,5.176,1932,5.176,1933,5.176]],["t/377",[1934,7.993]],["t/379",[0,0.507,4,0.809,14,3.482,20,3.049,86,0.556,124,1.785,148,3.776,156,2.027,214,1.504,302,0.824,375,0.716,565,4.331,571,5.727,626,0.617,629,1.071,790,2.618,1034,1.334,1062,0.644,1166,2.303,1167,0.716,1196,0.676,1231,0.716,1259,0.769,1305,1.071,1499,2.156,1515,1.2,1525,2.156,1565,3.966,1579,0.574,1705,0.54,1814,1.435,1817,1.828,1922,4.975,1934,0.769,1935,0.851,1936,1.586,1937,1.586,1938,4.082,1939,0.851,1940,0.851,1941,0.851,1942,0.851,1943,0.851,1944,1.586,1945,0.769,1946,1.586,1947,0.769,1948,0.851,1949,0.769,1950,0.851,1951,0.851,1952,0.851,1953,0.716,1954,0.851,1955,0.851,1956,5.425,1957,2.795,1958,2.795,1959,2.795,1960,1.435,1961,2.795,1962,4.515,1963,1.586,1964,1.586,1965,1.586,1966,0.851,1967,0.851,1968,0.851,1969,1.435,1970,1.586,1971,2.795,1972,1.586,1973,1.586,1974,3.746,1975,1.586,1976,1.435,1977,1.586,1978,2.016,1979,1.586,1980,0.851,1981,1.586,1982,1.586,1983,1.586,1984,1.586,1985,4.15,1986,3.388,1987,2.795,1988,1.586,1989,1.586,1990,0.851,1991,0.851,1992,1.586,1993,0.851,1994,0.851,1995,0.851,1996,1.586,1997,0.851,1998,0.851,1999,0.851,2000,0.851,2001,0.851,2002,1.586,2003,0.851,2004,0.851,2005,0.851,2006,0.851,2007,1.586,2008,0.851,2009,0.851,2010,0.851,2011,0.851,2012,0.851,2013,0.769,2014,0.644,2015,0.851,2016,0.716,2017,0.644,2018,0.851,2019,0.851]],["t/381",[0,0.483,1498,5.095,1499,4.405,1525,4.405,1563,4.884,1986,6.091,2020,6.736,2021,6.736,2022,6.736,2023,6.736,2024,6.736,2025,6.736,2026,6.736,2027,6.736]],["t/383",[1499,5.55,1525,5.55,2028,8.486]],["t/385",[0,0.512]],["t/387",[0,0.512]],["t/389",[2029,7.019]],["t/391",[0,0.517,1280,4.084,1543,5.105,1544,4.864,1803,5.408,2029,7.725,2030,6.43,2031,6.43,2032,6.43,2033,6.43,2034,5.814,2035,5.814]],["t/393",[0,0.335,791,5.903,1521,5.492,1523,4.938,1563,4.734,1825,5.184,1858,5.903,1922,5.492,2036,6.529,2037,6.529,2038,6.529,2039,6.529,2040,6.529,2041,6.529,2042,6.529,2043,6.529,2044,6.529,2045,5.903]],["t/395",[0,0.45,76,3.246,771,3.489,976,3.246,1825,4.611,1826,3.489,2029,4.611,2034,3.489,2035,3.489,2046,3.858,2047,6.983,2048,5.808,2049,3.858,2050,3.858,2051,3.858,2052,3.858,2053,5.808,2054,3.858,2055,5.808,2056,3.858,2057,3.858,2058,3.858,2059,5.808,2060,3.858,2061,3.858,2062,3.858,2063,3.858,2064,3.858,2065,3.858,2066,3.858,2067,3.858,2068,3.489,2069,3.858,2070,3.858,2071,3.858,2072,3.858,2073,5.808,2074,3.858,2075,3.858,2076,3.858,2077,3.858,2078,3.858,2079,3.858,2080,3.858,2081,3.858,2082,3.858,2083,3.858,2084,3.858,2085,3.858]],["t/397",[0,0.552,415,3.975,1495,5.408,1657,5.408,2029,7.725,2086,6.43,2087,6.43,2088,6.43]],["t/399",[1715,5.506,2089,8.16,2090,8.16,2091,8.16,2092,8.16]],["t/403",[0,0.479,11,4.094,14,2.003,15,2.939,20,2.401,34,3.868,325,5.388,626,3.708,1014,3.451,1817,4.658,2014,3.868,2093,5.113,2094,5.113,2095,5.113,2096,5.113,2097,5.113,2098,5.113,2099,4.624,2100,7.123,2101,5.113,2102,5.113,2103,4.301,2104,4.06,2105,4.06,2106,4.624,2107,5.113,2108,5.113]],["t/405",[0,0.513,11,5.345,14,3.642,15,2.623,20,1.538,325,4.971,626,3.309,1799,3.839,1817,4.298,2014,3.452,2099,4.127,2104,3.624,2105,3.624,2106,4.127,2109,4.564,2110,6.572,2111,6.572,2112,6.572,2113,4.564,2114,4.564,2115,4.564,2116,4.564,2117,4.564]],["t/408",[0,0.487,13,4.619,2118,6.844,2119,6.844,2120,6.844,2121,8.646,2122,6.844,2123,6.844,2124,6.844,2125,6.844,2126,6.844,2127,6.844]],["t/410",[0,0.536,12,2.761,20,1.531,124,1.656,127,3.746,148,2.953,255,2.521,1014,5.369,1166,2.428,1405,1.717,1537,1.425,1817,1.335,1976,1.845,2045,4.107,2104,1.62,2128,2.041,2129,2.041,2130,2.041,2131,2.041,2132,3.477,2133,2.041,2134,2.041,2135,2.041,2136,2.041,2137,2.041,2138,2.041,2139,2.041,2140,2.041,2141,5.364,2142,2.041,2143,2.041,2144,2.041,2145,2.041,2146,2.041,2147,2.041,2148,4.107,2149,2.041,2150,2.041,2151,2.041,2152,2.041,2153,3.477,2154,2.041,2155,2.041,2156,2.041,2157,2.041,2158,2.041,2159,2.041,2160,2.041,2161,3.477,2162,2.041,2163,2.041,2164,2.041,2165,2.041,2166,2.041,2167,2.041,2168,2.041,2169,2.041,2170,2.041,2171,2.041,2172,2.041,2173,3.477,2174,2.041,2175,2.041,2176,2.041,2177,2.041,2178,2.041,2179,2.041,2180,2.041,2181,2.041,2182,2.041,2183,2.041,2184,2.041,2185,1.845,2186,3.477,2187,2.041,2188,3.477,2189,2.041,2190,5.364,2191,3.144,2192,2.041,2193,3.477,2194,2.041,2195,2.041,2196,2.041,2197,2.041]],["t/413",[1892,5.598,2198,8.006,2199,8.006,2200,8.006,2201,7.239]],["t/415",[0,0.468,317,5.341,1678,2.772,1892,6.216,2201,4.361,2202,4.823,2203,4.823,2204,4.823,2205,6.836,2206,4.823,2207,4.823,2208,4.823,2209,4.823,2210,4.823,2211,4.823,2212,4.823,2213,4.361,2214,4.361,2215,4.823,2216,4.823,2217,4.823]],["t/418",[0,0.419,2218,8.16,2219,8.16,2220,8.16,2221,8.16]],["t/420",[2222,7.673,2223,7.673,2224,8.486]],["t/422",[0,0.517,551,5.944,2223,7.105,2225,7.858,2226,7.105]],["t/424",[0,0.512]],["t/426",[2227,6.998,2228,8.32,2229,8.32,2230,8.32]],["t/428",[33,3.386,451,5.561,1014,6.079,1678,3.535,2231,8.071,2232,8.071,2233,6.15,2234,5.561,2235,6.15,2236,5.561,2237,5.561,2238,6.15,2239,8.071,2240,6.15,2241,6.15,2242,6.15,2243,5.561]],["t/430",[0,0.495,33,3.674,1678,5.175,2234,4.217,2236,6.036,2237,6.036,2244,4.664,2245,4.664,2246,6.675,2247,4.664,2248,7.795,2249,4.664,2250,4.664,2251,4.217,2252,6.675,2253,4.664,2254,4.664,2255,4.664,2256,6.675,2257,4.664,2258,4.664,2259,4.664,2260,4.664,2261,4.664,2262,4.664,2263,4.664]],["t/433",[4,3.693,171,5.48,272,5.48,420,4.738,1266,4.073,1537,5.059,1705,3.328,1892,4.26,1929,4.407,2264,8.101,2265,5.752,2266,5.239,2267,5.239,2268,3.963,2269,5.239,2270,4.738,2271,5.239,2272,5.239,2273,5.239,2274,5.239,2275,4.738,2276,6.551,2277,5.239]],["t/435",[4,4.048,86,5.193,171,3.648,193,5.75,272,5.171,1083,4.361,1117,4.361,1164,3.83,1236,3.83,1537,3.368,1705,3.063,1816,3.83,1892,2.836,1929,6.68,1953,4.057,2264,7.812,2265,3.83,2270,4.361,2276,6.182,2278,4.823,2279,4.823,2280,4.823,2281,4.057,2282,4.823,2283,4.823,2284,4.823,2285,4.823,2286,4.823,2287,4.823]],["t/437",[4,3.434,86,6.152,272,6.474,1266,3.787,1705,5.437,1953,5.666,2265,5.348,2288,6.091,2289,6.736,2290,6.736,2291,6.736,2292,6.736]],["t/440",[689,6.033,2293,8.32,2294,8.32,2295,7.523]],["t/442",[0,0.509,11,3.517,13,4.129,14,0.496,15,1.315,18,2.152,20,1.664,114,5.221,156,2.267,195,0.885,272,1.73,486,0.959,626,0.919,655,1.146,689,2.267,691,0.885,1035,2.827,1673,2.63,1674,0.919,1705,1.453,1715,1.544,1753,1.066,1817,3.52,2014,2.365,2016,1.066,2017,0.959,2103,1.066,2104,1.006,2105,1.006,2185,2.068,2295,1.146,2296,2.287,2297,1.267,2298,1.267,2299,1.267,2300,1.267,2301,1.267,2302,1.267,2303,1.267,2304,2.287,2305,1.267,2306,2.287,2307,1.267,2308,2.287,2309,2.287,2310,1.267,2311,2.287,2312,1.267,2313,1.267,2314,1.267,2315,1.267,2316,1.267,2317,1.267,2318,2.287,2319,1.267,2320,3.126,2321,2.287,2322,2.287,2323,1.267,2324,1.146,2325,1.267,2326,1.267,2327,1.267,2328,1.267,2329,1.267,2330,1.267,2331,1.267,2332,2.287,2333,2.287,2334,1.267,2335,1.267,2336,1.267,2337,1.267,2338,1.267,2339,2.287,2340,1.267,2341,1.267,2342,3.126,2343,2.287,2344,1.267,2345,2.287,2346,1.146,2347,2.287,2348,2.287,2349,2.287,2350,1.267,2351,1.267,2352,3.126,2353,3.829,2354,4.425,2355,1.267,2356,2.287,2357,1.267,2358,1.267,2359,1.267,2360,1.267,2361,1.267,2362,1.267,2363,1.267,2364,1.267,2365,1.267,2366,1.267,2367,1.267,2368,1.267,2369,1.267,2370,1.267,2371,3.462,2372,1.267,2373,3.829,2374,1.267,2375,1.267,2376,1.267,2377,1.267,2378,1.146,2379,1.267,2380,3.829,2381,1.267,2382,1.267,2383,1.267,2384,1.267,2385,1.267,2386,1.267,2387,1.267,2388,1.267,2389,1.267,2390,1.267,2391,1.267,2392,2.287,2393,2.287,2394,2.287,2395,2.287,2396,2.287,2397,1.267,2398,1.267,2399,1.267,2400,1.267,2401,1.267,2402,1.267,2403,1.267,2404,1.267,2405,1.267,2406,1.267,2407,1.267,2408,1.146,2409,1.267,2410,1.267,2411,1.267]],["t/444",[14,3.391,2412,8.659]],["t/447",[0,0.546]],["t/449",[0,0.508,124,3.209,1815,6.091,2413,6.736,2414,6.736,2415,6.736,2416,6.736,2417,6.736,2418,6.736,2419,6.736,2420,6.736,2421,6.736,2422,6.736]],["t/451",[0,0.501,2213,6.615,2214,6.615,2423,7.316,2424,7.316,2425,7.316,2426,7.316,2427,7.316,2428,7.316]],["t/454",[0,0.454]],["t/456",[0,0.537,14,3.091,33,4.344,43,3.458,1231,4.011,1678,4.536,2243,4.312,2281,4.011,2429,4.769,2430,4.769,2431,4.769,2432,4.769,2433,4.769,2434,4.769,2435,4.769,2436,4.769,2437,4.769,2438,7.892,2439,4.769,2440,4.769,2441,4.769,2442,4.312,2443,4.769]],["t/458",[20,2.861,2444,7.673,2445,8.486]],["t/461",[2446,8.486,2447,8.486,2448,8.486]],["t/463",[0,0.436,1357,7.673,2103,7.138]],["t/465",[2449,8.839]],["t/467",[0,0.462,14,2.409,790,4.884,1945,5.561,2346,5.561,2371,5.561,2450,6.15,2451,6.15,2452,6.15,2453,6.15,2454,6.15,2455,7.298,2456,6.15,2457,6.15,2458,6.15,2459,6.15,2460,6.15,2461,6.15,2462,6.15]],["t/470",[0,0.531,12,3.459,14,1.298,20,1.468,33,3.95,36,1.623,67,3.079,124,3.239,145,1.46,148,4.973,194,1.532,195,1.347,629,3.488,689,4.22,691,4.064,1166,2.314,1667,2.788,1960,1.745,1978,1.745,2191,1.745,2408,2.997,2463,1.929,2464,1.623,2465,1.929,2466,3.314,2467,1.929,2468,1.929,2469,1.929,2470,1.929,2471,1.929,2472,1.929,2473,1.929,2474,1.929,2475,3.314,2476,1.929,2477,1.929,2478,1.929,2479,1.929,2480,1.929,2481,1.929,2482,1.929,2483,1.929,2484,1.929,2485,1.929,2486,1.929,2487,1.929,2488,1.929,2489,1.929,2490,1.929,2491,1.929,2492,1.929,2493,3.314,2494,1.929,2495,3.314,2496,1.929,2497,1.929,2498,1.929,2499,1.929,2500,1.929,2501,1.929,2502,4.356,2503,2.997,2504,1.929,2505,3.314,2506,3.314,2507,1.929,2508,1.929,2509,1.929,2510,1.929,2511,1.929,2512,1.929,2513,1.929,2514,1.929,2515,1.929,2516,1.929]],["t/473",[0,0.512]],["t/475",[0,0.554]],["t/477",[0,0.512]],["t/479",[0,0.527,415,4.602,1469,5.911,1470,6.731,1471,6.731,1472,6.731,1473,6.731]],["t/481",[1474,7.993]],["t/484",[415,5.143,1305,5.614,1475,7.523,1476,7.523]],["t/486",[1477,5.903,1478,5.903,1479,5.903,1480,5.903,1481,5.903,1482,5.903,1483,5.903,1484,5.903,1485,5.903,1486,5.903,1487,5.903,1488,5.903,1489,5.903,1490,5.903,1491,4.406,1492,4.269,1493,5.903,1494,5.903]],["t/488",[1495,6.154,1496,6.615,1497,6.615,1498,5.534,1499,4.785,1500,6.615,1501,6.615,1502,6.615,1503,6.615,1504,6.615,1505,6.615]],["t/490",[1506,7.239,1507,7.239,1508,7.239,1509,7.239,1510,7.239,1511,7.239]],["t/492",[0,0.424,22,3.68,42,3.68,43,3.173,1498,6.249,1499,5.743,1512,3.956,1513,3.956,1514,3.956,1515,3.31,1516,3.956,1517,3.956,1518,3.173,1519,3.956,1520,3.956,1521,3.68,1522,3.956,1523,3.31,1524,6.799,1525,4.917,1526,3.956,1527,3.956,1528,5.764,1529,3.956,1530,3.956,1531,3.956,1532,3.956,1533,3.956,1534,3.956,1535,3.956,1536,3.956,1537,3.055,1538,3.956,1539,3.956,1540,3.956]],["t/496",[0,0.562,415,5.341,1280,6.188,1541,7.735,1542,4.361,1543,3.83,1544,3.648]],["t/498",[1545,7.105,1546,7.105,1547,6.239,1548,7.105,1549,7.105,1550,7.105,1551,7.105]],["t/500",[0,0.489,14,2.912,20,1.834,156,3.945,254,4.577,1523,4.116,1525,3.558,1547,4.32,1552,4.92,1553,4.92,1554,4.92,1555,4.92,1556,4.92,1557,4.92,1558,4.92,1559,4.92,1560,4.92,1561,4.92,1562,4.92,1563,3.945,1564,4.92,1565,3.799,1566,4.92,1567,4.92,1568,4.92,1569,4.92]],["t/502",[0,0.473,1266,4.26,1288,4.955,1469,6.017,1577,4.955,1785,5.732,2517,6.017,2518,7.577]],["t/505",[0,0.468,1266,4.185,1288,5.958,1469,5.911,2517,5.911,2519,7.444,2520,7.444,2521,7.444]],["t/508",[0,0.532,33,2.957,2522,5.372,2523,5.372,2524,5.372,2525,5.372,2526,5.372,2527,5.372,2528,5.372,2529,5.372,2530,5.372,2531,7.37,2532,5.372,2533,5.372,2534,5.372,2535,5.372,2536,5.372,2537,5.372,2538,5.372,2539,5.372,2540,5.372,2541,5.372,2542,5.372]],["t/510",[0,0.497,2148,4.264,2543,4.716,2544,6.084,2545,4.264,2546,4.264,2547,6.084,2548,4.716,2549,4.716,2550,4.264,2551,4.264,2552,4.716,2553,4.716,2554,4.716,2555,9.043,2556,4.716,2557,4.716,2558,6.728,2559,6.728,2560,6.728,2561,4.716,2562,4.716,2563,4.716,2564,4.716,2565,4.716,2566,4.716,2567,4.716,2568,4.716]],["t/512",[2544,6.091,2545,6.091,2546,6.091,2547,7.739,2550,6.091,2551,7.739,2569,6.736,2570,6.736,2571,6.736,2572,6.736,2573,6.736,2574,6.736,2575,6.736,2576,6.736]],["t/514",[0,0.55,1677,5.911,2577,7.444,2578,7.444,2579,7.444]],["t/516",[0,0.33,394,3.975,1266,3.615,1599,5.105,1600,4.662,1763,5.408,1779,5.408,2068,5.814,2444,5.814,2580,7.512,2581,6.43,2582,6.43,2583,6.43,2584,6.43,2585,6.43,2586,5.814,2587,6.43,2588,6.43]],["t/518",[76,5.099,394,3.748,1092,5.482,1164,4.814,1274,6.048,1537,4.233,1600,4.396,1625,3.27,1718,5.228,1816,4.814,2589,4.814,2590,6.062,2591,6.062,2592,6.062,2593,5.482,2594,6.062,2595,6.062,2596,6.062,2597,6.062,2598,6.062,2599,6.062]],["t/521",[0,0.152,394,3.655,551,2.245,1266,1.669,1274,2.245,1326,2.684,1537,2.073,1543,3.762,1544,4.473,1571,2.497,1574,3.584,1578,2.497,1579,2.003,1598,2.497,1599,4.696,1698,2.497,1705,1.885,1718,1.941,1758,2.497,1764,2.497,2013,2.684,2226,2.684,2227,2.497,2580,5.347,2586,2.684,2600,2.968,2601,2.968,2602,4.738,2603,2.968,2604,2.968,2605,5.913,2606,2.968,2607,2.968,2608,2.968,2609,2.968,2610,4.738,2611,2.968,2612,2.968,2613,2.968,2614,2.968,2615,2.968,2616,2.968,2617,2.968,2618,2.968,2619,2.968,2620,2.968,2621,2.968,2622,2.968,2623,2.968,2624,2.968,2625,2.497,2626,2.968,2627,2.968,2628,2.968,2629,2.968,2630,2.968,2631,2.968,2632,2.968,2633,2.968,2634,2.968,2635,4.738,2636,4.738,2637,4.738,2638,4.738,2639,2.968,2640,2.968,2641,2.968,2642,4.738,2643,2.968,2644,2.968,2645,2.968,2646,2.968,2647,2.968,2648,2.968,2649,2.968,2650,2.968,2651,2.968]],["t/523",[0,0.389,2268,6.966,2652,7.577,2653,7.577,2654,7.577,2655,7.577,2656,7.577,2657,7.577]],["t/526",[1577,6.05,1597,3.594,1652,5.536,1664,4.6,1715,3.818,2268,4.28,2593,5.117,2658,5.658,2659,5.658,2660,5.658,2661,5.658,2662,5.658,2663,5.658,2664,5.658,2665,5.658,2666,5.658,2667,5.658,2668,5.658,2669,5.658,2670,5.658,2671,5.658,2672,5.658,2673,5.658]],["t/529",[0,0.396,415,4.769,1030,6.976,2517,6.126,2674,7.715,2675,7.715,2676,7.715,2677,7.715]],["t/531",[4,3.795,415,5.631,1711,5.631,2268,5.631,2288,6.731,2442,6.731,2678,6.731,2679,7.444,2680,7.444]],["t/533",[0,0.404,551,5.959,852,5.361,1034,3.337,1072,3,1608,3.337,1619,3.337,1620,3.337,1705,2.52,1947,3.587,1949,5.361,1969,3.587,2265,3.15,2275,6.42,2678,3.587,2681,3.967,2682,5.929,2683,3.967,2684,5.929,2685,3.967,2686,5.929,2687,5.929,2688,3.967,2689,3.967,2690,3.967,2691,7.1,2692,3.967,2693,3.967,2694,3.967,2695,3.967,2696,3.967,2697,3.967,2698,3.967,2699,3.967,2700,3.967,2701,5.929,2702,5.929,2703,3.967,2704,3.967,2705,3.967,2706,3.967,2707,3.967]],["t/535",[537,7.523,2708,8.32,2709,8.32,2710,8.32]],["t/537",[0,0.436,2711,8.486,2712,8.486]],["t/539",[1609,7.138,1613,7.138,2713,6.738]],["t/542",[0,0.411,145,6.056,494,6.357,2713,7.558,2714,8.006]],["t/544",[0,0.537,14,2.187,1715,3.768,1817,3.652,2378,5.049,2713,6.816,2715,5.049,2716,5.584,2717,5.584,2718,7.762,2719,5.584,2720,5.584,2721,5.049,2722,6.843,2723,5.584,2724,5.584]],["t/546",[0,0.469,14,3.222,1817,4.142,2713,7.256,2715,5.727,2718,7.439,2721,5.727,2722,5.727,2725,6.334,2726,6.334,2727,6.334,2728,6.334,2729,6.334,2730,6.334]],["t/548",[0,0.486,148,2.409,291,3.474,314,3.31,790,3.474,2281,3.68,2455,3.956,2731,4.375,2732,6.374,2733,3.474,2734,4.375,2735,4.375,2736,4.375,2737,4.375,2738,4.375,2739,4.375,2740,4.375,2741,4.375,2742,8.261,2743,8.261,2744,8.261,2745,8.261,2746,6.374,2747,4.375,2748,6.374,2749,4.375,2750,4.375,2751,4.375,2752,4.375]],["t/550",[0,0.501,394,4.522,1266,4.113,1597,5.725,1598,6.154,1599,5.809,1600,5.305,1601,6.154]],["t/553",[302,4.005,1597,5.914,1602,7.392,1603,6.976,1604,6.976,1605,6.976]],["t/555",[0,0.45,67,4.113,1602,4.616,1606,7.031,1607,5.257,1608,7.868,1609,7.369,1610,5.257,1611,5.257,1612,5.257,1613,6.54,1614,5.257,1615,5.257,1616,5.257,1617,5.257,1618,5.257]],["t/557",[0,0.53,1619,6.374,1620,6.374,1621,6.852,1622,6.852,1623,6.852]],["t/561",[0,0.559,1624,6.365,1625,3.012,1626,5.049,1627,6.425,1628,6.843,1629,6.843,1630,5.049,1631,5.049,1632,5.049]],["t/563",[0,0.536,7,1.444,20,2.513,249,3.252,1625,2.599,1627,4.188,1633,3.826,1634,4.357,1635,4.357,1636,2.741,1637,7.809,1638,4.357,1639,2.198,1640,4.357,1641,4.357,1642,6.178,1643,5.423,1644,4.357,1645,4.357,1646,4.357,1647,4.357,1648,4.357,1649,2.741,1650,2.407,1651,2.741,1652,3.494,1653,2.741,1654,2.741,1655,2.741,1656,2.741,1657,2.55,1658,2.741,1659,2.741,1660,3.826,1661,4.357,1662,2.741,1663,2.741]],["t/565",[0,0.546,1625,4.313,1627,5.583,1633,6.348,1639,6.486,1650,4.814,1664,3.653,1665,5.482,1666,5.482,1667,5.099]],["t/567",[0,0.557,14,0.945,20,0.813,87,2.542,1014,2.7,1491,1.628,1492,1.577,1518,1.749,1577,1.577,1579,1.628,1625,4.078,1660,5.667,1664,2.411,1668,2.181,1669,2.181,1670,2.181,1671,2.181,1672,2.181,1673,2.029,1674,2.901,1675,2.181,1676,2.181,1677,7.048,1678,5.101,1679,4.466,1680,1.915,1681,2.181,1682,2.181,1683,2.181,1684,2.181,1685,2.181,1686,2.181,1687,3.618,1688,2.181,1689,2.181,1690,2.181,1691,2.181,1692,1.749,1693,2.029,1694,2.181,1695,2.181]],["t/569",[0,0.554,14,1.162,75,2.003,124,1.414,195,2.073,1266,1.669,1305,2.003,1491,3.197,1492,3.099,1518,2.152,1600,3.436,1625,1.601,1652,2.152,1678,4.52,1679,3.197,1680,2.357,1692,2.152,1696,2.684,1697,2.684,1698,2.497,1699,5.347,1700,2.684,1701,2.684,1702,2.684,1703,5.347,1704,2.684,1705,1.885,1706,2.684,1707,2.684,1708,2.684,1709,2.684,1710,4.284,1711,2.245,1712,2.684,1713,2.684,1714,2.684,1715,2.003,1716,2.497,1717,2.684,1718,1.941,1719,2.684,1720,4.284,1721,4.284,1722,2.684,1723,2.684,1724,2.357,1725,2.684]],["t/571",[0,0.561,9,3.728,15,2.547,87,1.254,1515,1.493,1565,3.095,1574,1.493,1579,1.332,1597,3.334,1664,2.037,1674,3.806,1679,2.281,1711,1.493,1718,1.291,1726,6.81,1727,1.785,1728,1.785,1729,4.007,1730,1.785,1731,3.056,1732,1.785,1733,4.746,1734,1.785,1735,1.785,1736,1.785,1737,1.785,1738,3.056,1739,4.007,1740,3.056,1741,3.056,1742,4.746,1743,3.056,1744,1.785,1745,1.785,1746,1.785,1747,1.785,1748,3.056,1749,1.785,1750,1.785,1751,1.785,1752,5.818,1753,1.661,1754,1.785,1755,1.785,1756,1.785,1757,1.785,1758,1.661,1759,1.785,1760,1.785,1761,3.056,1762,1.785,1763,1.661,1764,1.661,1765,1.785,1766,1.785,1767,1.785]],["t/574",[0,0.562,1196,5.397,1280,4.318,1577,4.445,1678,3.906,1679,2.491,1768,5.078,1769,6.869,1770,3.337,1771,3.105,1772,3.337,1773,5.078,1774,3.337,1775,3.337,1776,3.337,1777,5.078,1778,5.078,1779,4.724,1780,3.337,1781,3.337,1782,3.337,1783,3.337,1784,3.337]],["t/577",[0,0.494,1625,4.402,1664,4.916,1678,4.689]],["t/579",[0,0.561,20,1.505,124,2.127,1288,1.803,1491,3.012,1492,2.919,1597,2.836,1624,7.015,1625,5.062,1627,1.925,1639,3.237,1664,4.583,1692,3.237,1718,3.679,1724,2.189,1785,2.085,2464,4.732,2589,3.545,2753,4.464,2754,6.468,2755,4.464,2756,2.756,2757,2.756]],["t/581",[0,0.551,1274,6.2,1544,3.868,1597,4.525,1625,5.449,1664,3.081,1693,4.301,1716,4.301,2227,5.992,2268,3.868,2589,4.06,2758,5.113]],["t/583",[0,0.521,1097,7.239,2517,6.357,2759,8.006]],["t/585",[26,6.686]],["t/587",[0,0.512]],["t/589",[0,0.541,11,3.28,12,2.994,14,2.235,15,1.291,20,2.467,124,3.03,145,1.699,148,4.667,153,5.051,156,2.734,239,1.783,255,4.138,629,3.288,689,2.734,691,3.403,1166,1.568,1817,2.466,1938,2.031,2014,1.699,2016,1.889,2017,1.699,2324,2.031,2760,2.246,2761,2.246,2762,2.246,2763,2.246,2764,2.246,2765,3.77,2766,2.246,2767,3.77,2768,3.77,2769,2.246,2770,2.246,2771,2.246,2772,3.77,2773,4.873,2774,3.77,2775,2.246,2776,2.246,2777,3.77,2778,2.246,2779,2.246,2780,2.246,2781,2.246,2782,2.246,2783,2.246,2784,2.246,2785,2.246,2786,2.246,2787,2.246,2788,2.246,2789,2.246,2790,2.246,2791,3.77,2792,2.246]],["t/591",[145,7.538]],["t/593",[0,0.544,11,4.013,13,4.713,20,2.354,33,3.844,67,3.694,124,3.327,148,3.844,1677,5.545,2503,7.026,2793,3.858,2794,5.808,2795,5.808,2796,5.808,2797,3.858,2798,5.808,2799,5.808,2800,3.858,2801,5.808,2802,3.858]],["t/595",[0,0.346,67,3.563,317,4.164,1674,4.884,1678,3.871,2803,6.736,2804,6.736,2805,6.736,2806,6.736,2807,6.736,2808,6.736,2809,6.736,2810,6.736,2811,6.736,2812,6.736,2813,6.736]],["t/597",[0,0.512]],["t/599",[26,6.686]],["t/602",[2251,6.731,2589,5.911,2814,7.444,2815,7.444,2816,7.444,2817,7.444,2818,7.444,2819,7.444,2820,7.444,2821,6.731]],["t/604",[0,0.41,172,3.69,385,4.411,1601,4.103,1799,4.103,2821,4.411,2822,4.878,2823,4.878,2824,7.991,2825,6.892,2826,4.878,2827,4.878,2828,4.878,2829,4.878,2830,4.878,2831,4.878,2832,4.878,2833,4.878,2834,4.878,2835,4.878,2836,6.892,2837,4.878,2838,6.892,2839,6.892,2840,7.991,2841,4.878,2842,4.878,2843,4.878,2844,4.878,2845,4.878]],["t/606",[0,0.454]],["t/608",[0,0.53,34,5.724,1256,6.843,2105,6.009,2846,5.584,2847,5.049,2848,8.584,2849,5.584,2850,5.584,2851,5.584,2852,5.049,2853,8.584,2854,5.584,2855,5.584,2856,5.584]],["t/610",[0,0.411,1125,7.239,2857,8.006,2858,8.006,2859,8.006,2860,8.006]],["t/612",[0,0.5,2847,7.523,2852,7.523]],["t/615",[0,0.567,20,3.171,124,2.808,302,4.074,2861,5.894,2862,5.894]],["t/617",[0,0.562,2863,7.444,2864,7.444]],["t/620",[2865,8.839]],["t/622",[0,0.49,21,3.612,317,4.3,1076,6.29,2866,6.956,2867,9.549,2868,6.956,2869,6.956,2870,6.956,2871,6.956]],["t/624",[0,0.436,230,7.142]],["t/626",[0,0.454]],["t/628",[0,0.569,7,3.255,14,3.259,15,1.742,18,1.704,21,1.574,23,1.983,57,3.494,2872,2.741,2873,6.178,2874,5.423,2875,5.423,2876,6.178,2877,7.178,2878,2.741,2879,2.741,2880,4.357,2881,2.741,2882,2.741]],["t/630",[0,0.567,2,1.29,3,1.613,4,1.035,5,1.224,6,1.224,7,3.323,8,1.224,14,3.204,15,1.167,16,3.161,17,1.473,18,1.947,20,0.685,21,3.115,23,2.96,31,1.328,57,3.282,58,1.613,124,1.65,302,1.054,1279,1.708,2872,1.837,2873,4.836,2874,4.093,2875,4.093,2876,5.426,2877,5.907,2878,1.837,2879,1.837,2880,3.131,2881,1.837,2882,1.837,2883,2.031,2884,3.463,2885,2.031,2886,2.031,2887,2.031,2888,2.031,2889,2.031,2890,2.031]],["t/633",[0,0.569,33,4.344,249,4.576,2017,3.607,2891,4.312,2892,4.312,2893,4.312,2894,4.312,2895,4.312,2896,4.312,2897,4.312,2898,4.312,2899,4.312,2900,4.312,2901,4.312]],["t/635",[0,0.559]],["t/637",[0,0.5,2902,7.523,2903,7.523]],["t/639",[0,0.575,302,4.426,2625,4.636,2904,4.984,2905,4.984]],["t/643",[2906,8.486,2907,8.486,2908,8.486]],["t/645",[0,0.515,124,3.017,172,6.223,1280,4.023,1818,5.727,2909,8.227,2910,6.334,2911,6.334,2912,6.334,2913,6.334,2914,6.334,2915,6.334,2916,6.334,2917,6.334]],["t/647",[0,0.522,20,2.235,255,4.808,1467,5.577,1715,4.474,2918,6.631,2919,6.631,2920,8.474,2921,6.631,2922,6.631,2923,6.631,2924,6.631]],["t/649",[0,0.478,1492,5.045,1892,4.537,1905,6.976,2925,7.715,2926,7.715,2927,7.715]],["t/652",[2928,8.839]],["t/654",[0,0.474,13,3.015,20,1.506,124,2.128,255,4.693,317,2.762,1468,4.04,1678,2.567,1892,2.627,2929,4.468,2930,4.468,2931,7.609,2932,6.471,2933,4.468,2934,4.468,2935,4.468,2936,4.468,2937,4.468,2938,7.609,2939,4.468,2940,4.468,2941,4.468,2942,4.468,2943,4.468,2944,4.468,2945,4.468,2946,4.468,2947,4.468,2948,4.468,2949,4.468,2950,6.471,2951,4.468,2952,4.468,2953,4.468,2954,4.468,2955,4.468]],["t/656",[0,0.357,20,2.345,124,3.314,148,3.829,1405,5.851,1892,4.091,2956,6.956,2957,6.956,2958,6.956,2959,6.956,2960,6.956,2961,6.956,2962,6.956,2963,6.956]],["t/658",[0,0.543,20,2.384,124,3.369,148,3.893,1467,5.949,2464,5.949,2964,7.072,2965,7.072]],["t/660",[0,0.436,2966,8.486,2967,8.486]],["t/662",[20,2.945,67,5.052,317,5.903,2968,7.348,2969,6.956,2970,6.956,2971,6.956,2972,6.956]],["t/664",[20,2.649,67,4.98,317,4.857,2968,6.61,2973,7.858,2974,7.858]],["t/666",[20,2.554,67,4.009,317,5.692,1892,4.456,2968,6.374,2975,7.577,2976,7.577,2977,7.577]],["t/668",[0,0.396,1892,5.88,2978,7.715,2979,7.715,2980,7.715,2981,7.715]],["t/670",[1715,6.571,2982,8.32,2983,8.32]],["t/672",[0,0.369,20,2.424,67,4.718,317,4.446,2222,6.503,2984,7.192,2985,7.192,2986,7.192,2987,7.192,2988,7.192,2989,7.192]],["t/674",[0,0.53,2990,8.32]],["t/677",[2733,6.876,2991,7.284]],["t/679",[0,0.478,20,2.601,124,3.675,2733,7.392,2991,7.831]],["t/681",[0,0.478,20,2.601,124,3.675,2733,7.392,2991,7.831]],["t/684",[0,0.575,302,4.311,2625,4.407,2902,4.738,2903,4.738,2904,4.738,2905,4.738]],["t/686",[0,0.569,33,4.344,249,4.576,2017,3.607,2891,4.312,2892,4.312,2893,4.312,2894,4.312,2895,4.312,2896,4.312,2897,4.312,2898,4.312,2899,4.312,2900,4.312,2901,4.312]],["t/688",[0,0.512]],["t/690",[26,6.686]],["t/693",[0,0.534]],["t/695",[0,0.523,195,5.109,2992,9.013,2993,7.316,2994,7.316,2995,7.316,2996,7.316]],["t/697",[0,0.458,20,2.424,2997,7.192,2998,7.192,2999,7.192,3000,7.192,3001,7.192,3002,7.192,3003,7.192,3004,7.192,3005,7.192]]],"invertedIndex":[["",{"_index":0,"t":{"2":{"position":[[0,2]]},"4":{"position":[[57,1],[70,1],[80,2],[94,1],[102,1],[106,1],[113,1],[127,1],[132,1],[136,1],[140,1],[145,1],[149,1],[157,2],[164,1],[172,2],[178,1],[185,2],[190,2],[199,1],[201,1],[213,1]]},"6":{"position":[[0,20],[94,1],[99,1],[103,1],[107,1],[112,1],[116,1],[122,2],[125,5],[133,2],[140,1],[165,1],[181,1],[188,1],[205,1],[211,1],[217,1],[222,1],[230,1]]},"11":{"position":[[0,39],[40,24]]},"13":{"position":[[0,2],[3,12]]},"17":{"position":[[0,2],[3,93],[97,5],[263,5]]},"19":{"position":[[57,1],[131,1],[139,2],[144,2],[149,2],[155,1],[164,1],[179,2],[182,6],[198,1],[204,1],[206,2],[209,6],[216,1],[218,2],[221,5],[238,1],[245,1],[267,1],[279,2],[297,1],[352,1],[364,2],[369,2],[376,2],[382,1],[391,1],[404,1],[415,2],[428,1],[457,1],[459,1],[471,1]]},"21":{"position":[[0,47]]},"23":{"position":[[0,2]]},"25":{"position":[[57,1],[73,2],[88,1],[98,1],[132,1],[142,1],[158,1],[165,1],[182,1],[188,1],[194,1],[199,1],[213,1],[223,1],[228,2],[234,1],[241,1],[251,1],[269,1],[271,1],[328,2],[334,1],[341,2],[349,2],[368,1],[375,1],[382,2],[388,2],[397,1],[399,1]]},"27":{"position":[[19,19],[71,8],[83,1],[98,1]]},"29":{"position":[[0,2]]},"31":{"position":[[21,2],[58,2],[91,2],[125,2],[128,2],[142,2],[145,4],[160,2],[163,5],[184,2],[187,8],[210,2],[213,7],[221,2],[269,1],[279,2],[299,2]]},"33":{"position":[[19,1],[44,2],[47,7],[67,2],[70,7],[78,2]]},"35":{"position":[[9,1],[31,2],[57,2],[60,6],[78,2],[81,2],[86,2],[101,2],[119,2],[128,2],[131,21]]},"37":{"position":[[46,2],[49,6],[67,2],[70,6],[87,2],[90,6],[106,2],[109,6]]},"39":{"position":[[0,2],[3,6],[77,2],[80,10],[94,4],[102,4],[122,2],[125,5]]},"45":{"position":[[12,2],[15,7],[23,2],[60,2],[63,7],[84,5],[133,2],[171,2],[207,2],[214,6],[238,2],[271,2]]},"47":{"position":[[15,2],[62,1],[241,12]]},"49":{"position":[[28,2],[31,10],[42,2],[45,7],[53,2],[56,2],[59,2],[62,2],[65,2],[84,2],[104,2],[122,2],[139,2],[160,2],[180,2],[191,6]]},"51":{"position":[[0,2]]},"53":{"position":[[5,1],[9,4],[23,7],[40,8],[54,1],[62,1],[66,6],[77,4],[87,1],[93,4],[103,1],[109,1],[113,4],[123,1],[129,1],[134,4],[144,1],[149,4],[159,1],[169,1],[173,7],[186,1],[196,1],[200,10],[216,1],[220,3],[229,1],[237,1],[241,3],[248,4],[258,1],[263,5],[273,6],[284,6]]},"56":{"position":[[0,3],[4,2],[7,3],[11,2],[14,3],[18,2],[30,4],[43,6],[58,6],[73,4],[87,4],[101,5],[114,4],[128,5],[143,4],[157,6],[173,6],[203,5],[218,8],[234,4]]},"58":{"position":[[21,3],[25,2],[28,3],[32,2],[35,3],[39,2],[52,4],[63,4],[75,2],[87,3],[97,1],[103,6],[115,2],[125,3],[133,2],[142,2],[165,4]]},"62":{"position":[[0,10],[39,1],[45,1],[75,1],[82,1],[88,1],[95,4],[194,11],[255,7],[344,7],[430,6],[527,1],[557,1],[600,1],[638,1],[675,1],[681,1],[691,1],[697,1],[723,1],[725,1],[768,1],[770,1]]},"65":{"position":[[18,1],[71,2]]},"67":{"position":[[0,10],[34,1],[36,1],[70,12],[118,1],[137,1],[160,1],[186,1],[237,1],[239,1],[301,2],[304,9],[314,8],[345,1],[398,15],[423,1],[457,2],[476,1],[511,2],[514,1],[561,1],[587,8],[610,8],[631,10],[667,1],[695,1],[716,1],[726,1],[750,1],[771,1],[773,8],[813,1],[815,3],[819,3],[823,3],[840,1],[842,1]]},"69":{"position":[[77,1]]},"72":{"position":[[7,1],[18,35],[61,1],[128,1]]},"74":{"position":[[0,6],[24,1],[39,19],[71,1],[86,1],[114,1]]},"76":{"position":[[23,1],[51,1],[58,1],[67,3],[71,1],[78,1],[94,1]]},"78":{"position":[[0,3]]},"80":{"position":[[17,4],[31,9],[41,9],[58,18],[205,1],[222,1],[224,3],[496,17],[525,17],[549,17],[579,17],[739,7],[773,39],[837,1]]},"82":{"position":[[13,30],[44,11],[56,2],[59,2],[121,22],[156,20],[183,15],[208,15],[230,10],[246,15],[344,15],[377,16],[403,15],[428,18],[460,22],[555,10],[566,2],[569,2],[577,17],[609,20],[643,23],[679,2],[684,9],[699,14],[721,8],[732,9],[751,34],[797,20],[820,4],[868,17],[905,20],[941,15],[964,18],[993,18],[1024,25],[1065,25],[1099,22],[1135,29],[1181,29],[1222,22],[1253,12],[1279,13],[1300,12],[1325,13],[1352,24],[1382,8],[1403,9],[1423,24],[1455,35],[1503,16],[1530,5],[1536,2],[1539,2],[1600,10],[1631,11],[1664,11],[1693,16],[1710,5],[1716,2],[1719,2],[1737,11],[1770,10],[1793,28],[1835,4],[1858,9],[1873,2],[1888,4],[1893,8],[1902,2],[1905,2],[1922,19],[1954,20],[1987,26],[2026,23],[2050,5],[2056,2],[2059,2],[2071,17],[2103,4],[2114,2],[2132,9],[2159,9],[2194,10],[2215,9],[2225,4],[2230,2],[2233,2],[2244,13],[2277,18],[2306,11],[2327,12],[2350,9],[2370,11],[2382,8],[2391,2],[2394,2],[2417,19],[2461,10],[2476,13],[2502,13],[2520,13],[2546,13],[2572,16],[2609,16],[2643,23],[2684,23]]},"84":{"position":[[274,2],[323,2],[377,2],[451,2],[454,15],[480,2],[483,5],[498,2],[501,5],[522,2],[543,2],[546,4],[561,2],[564,14],[592,2],[595,6],[612,2],[615,15],[639,2],[642,21],[682,2],[778,2],[843,2],[933,2],[971,2],[1043,2],[1106,2],[1109,10],[1130,2],[1174,2],[1242,2],[1298,2],[1335,2],[1394,2],[1397,13],[1411,2],[1414,1],[1416,23],[1440,2],[1513,1],[1547,2],[1553,1],[1571,1],[1584,1],[1602,2],[1611,1],[1613,1],[1620,2],[1628,2],[1631,1],[1633,2],[1636,1],[1643,2],[1662,1]]},"86":{"position":[[219,2],[222,15],[246,2],[249,21],[287,2],[314,2],[339,2],[342,6],[363,2],[366,6],[382,2],[385,4],[400,2],[403,14],[430,2],[502,2],[565,2],[568,10],[589,2],[592,5],[607,2],[610,5],[626,2],[657,2],[703,2],[799,2],[864,2],[953,2],[987,2]]},"88":{"position":[[329,8],[338,3],[342,2],[354,8],[676,5],[682,4],[687,2],[701,4],[713,10],[724,3],[749,4],[763,4],[776,4],[789,6],[805,6],[822,4],[827,1],[829,5],[861,7],[885,11],[908,11],[928,9],[949,13],[973,17],[991,1],[1000,6],[1033,2],[1104,12],[1126,8],[1149,10],[1176,9]]},"90":{"position":[[149,2],[160,2]]},"92":{"position":[[336,2],[349,2],[359,1],[368,2],[519,2],[664,2],[667,4],[672,2],[681,1],[691,2],[783,1],[798,2],[892,2],[895,4],[900,2],[917,2],[965,2],[1001,2],[1004,4],[1009,2],[1022,2],[1025,6],[1043,2],[1046,6],[1064,2],[1067,6]]},"94":{"position":[[179,2],[182,2],[194,2],[197,2],[209,2],[212,4],[228,2],[253,2],[256,8]]},"96":{"position":[[184,2],[187,3],[200,2],[203,3],[218,2],[221,6],[238,2],[241,6],[259,2],[262,8],[281,2],[284,10]]},"98":{"position":[[124,2],[127,13],[151,2],[154,6],[171,2],[174,10],[195,2],[223,2],[226,25],[268,2],[271,21],[303,2],[306,8],[324,2],[327,16],[362,2],[365,8],[385,2],[388,8],[413,2],[416,23],[453,2],[456,15],[485,2],[488,15],[515,2],[518,19],[547,2],[550,18],[578,2],[581,8],[599,2],[602,8],[627,2],[630,13],[659,2],[662,16]]},"102":{"position":[[11,1],[20,5],[89,11],[108,24],[146,24],[171,2],[187,8],[211,1],[234,2],[240,2],[248,4],[255,1],[298,2],[305,7],[332,1],[336,5],[367,2],[374,6],[402,1],[406,5],[443,2],[446,1],[452,1],[456,5],[498,1],[503,3],[509,1],[515,4],[522,4],[544,5],[559,2],[565,7],[575,6],[592,2],[598,6],[607,7],[626,2],[632,3],[638,8],[657,2],[663,8],[680,2],[683,2],[689,2],[696,6],[716,2],[722,2],[729,9],[750,2],[753,1],[758,10],[783,2],[786,1],[791,2],[798,8],[820,2],[823,1],[828,10],[855,2],[858,1],[888,2],[891,1],[896,11],[921,2],[924,1],[929,2],[936,8],[960,2],[963,2],[980,2],[983,1],[988,12],[1015,1],[1020,2],[1026,2],[1029,1],[1034,7],[1045,1]]},"105":{"position":[[97,1],[103,1],[109,1],[115,1],[117,8],[148,1],[182,15],[207,1],[216,2],[235,1],[245,2],[248,1],[295,1],[321,8],[344,8],[365,10],[401,1],[429,1],[450,1],[452,8],[492,1],[514,1],[558,1],[600,1],[607,1],[689,1],[704,1],[706,8],[742,1],[840,1],[845,1],[854,1],[911,1],[918,1],[956,1],[966,1],[1018,2],[1024,1],[1065,1],[1067,1],[1069,1],[1083,1],[1085,8],[1121,1],[1188,2],[1197,1],[1199,2],[1208,2],[1211,1],[1213,2],[1288,1],[1293,1],[1302,1],[1325,1],[1344,1],[1351,1],[1389,1],[1399,1],[1451,2],[1457,1],[1525,2],[1534,1],[1536,2],[1543,2],[1546,1],[1548,2],[1557,1],[1572,1],[1574,1],[1588,1],[1598,1],[1632,1],[1647,2],[1655,1],[1657,2],[1664,2],[1667,1],[1669,2],[1686,1],[1688,1],[1697,2],[1718,1],[1720,1],[1740,1],[1946,1],[1963,2],[1966,14],[1991,1],[1998,1],[2021,2],[2030,2],[2033,1],[2035,2],[2043,2],[2057,2],[2060,14],[2257,1],[2280,1],[2287,1],[2313,2],[2325,2],[2328,1],[2330,2],[2338,2],[2360,2],[2377,1]]},"107":{"position":[[99,1],[105,1],[111,1],[117,1],[189,8],[220,1],[273,15],[298,1],[332,2],[351,1],[386,2],[389,1],[436,1],[462,8],[485,8],[506,10],[542,1],[570,1],[591,1],[601,1],[625,1],[646,1],[648,8],[688,1],[710,1],[754,1],[847,1],[854,1],[1038,1],[1053,1],[1055,1],[1137,2],[1175,1],[1205,1],[1338,1],[1340,1],[1419,1],[1501,1],[1649,1],[1751,1],[1899,1],[1901,1],[2126,1],[2128,1],[2194,1],[2278,1],[2337,1],[2374,1],[2416,1],[2469,1],[2502,1],[2514,1]]},"109":{"position":[[234,5],[259,5],[310,1],[329,1],[424,8],[448,4],[485,3],[580,4],[660,2],[693,10],[728,2],[764,1],[766,5],[790,1],[806,1],[865,1],[911,1],[955,1],[1004,1],[1025,2],[1031,1],[1043,1],[1045,1],[1058,1],[1092,1],[1094,11],[1106,11],[1118,5],[1124,7],[1132,7],[1267,6],[1283,1],[1289,6],[1347,1],[1352,6],[1410,1],[1415,7],[1495,6],[1531,1],[1553,1],[1565,1],[1577,1],[1603,1],[1635,2],[1659,1],[1771,1],[1773,7],[1788,1],[1832,1],[1834,8],[1851,1],[1856,1],[1863,1],[1865,6],[1893,1],[1898,1],[1900,1],[1913,1],[1915,2],[1988,3],[2004,1],[2070,2],[2100,7],[2151,6],[2184,4],[2204,10],[2262,1],[2328,7],[2368,1],[2370,5],[2427,1],[2451,1],[2477,5],[2494,8],[2503,1],[2510,1],[2563,1],[2621,9],[2631,1],[2633,1],[2635,2],[2638,8],[2647,2],[2650,11],[2663,15],[2702,1],[2715,1],[2795,2],[2868,1],[2897,1],[2926,1],[3030,4],[3038,1],[3109,1],[3132,1],[3160,1],[3198,1],[3200,1],[3212,1]]},"112":{"position":[[197,1],[218,2],[221,10],[278,2],[307,1],[309,2],[357,7],[400,2],[403,13],[456,2],[459,11],[523,2],[526,15],[584,2],[587,15],[614,1],[616,2],[619,10],[676,2],[705,1],[742,2],[745,14],[799,2],[802,11],[866,2],[869,15],[927,2],[930,15],[957,1],[959,2],[962,3],[988,1],[1063,1],[1065,2],[1068,4],[1090,1],[1151,1],[1255,1],[1333,3],[1337,2],[1340,9],[1350,1],[1352,2],[1355,4],[1378,1],[1465,1],[1467,2],[1470,4],[1493,1],[1580,1],[1582,2],[1585,4],[1609,1],[1698,1],[1711,1],[1743,1],[1795,2],[1798,4],[1803,2],[1847,2],[1850,4],[1897,2],[1900,4],[1939,2],[1942,9],[1952,2],[1989,2],[1992,9],[2011,2],[2014,4],[2019,2],[2032,2],[2035,4],[2040,2],[2053,2],[2067,2],[2070,4],[2075,2],[2088,2],[2101,2],[2104,4],[2109,2],[2122,1],[2134,1]]},"114":{"position":[[197,1],[264,1],[445,1],[493,1],[674,1],[698,1],[773,1],[792,1],[853,1],[957,1],[1035,3],[1039,1],[1059,1],[1146,1],[1166,1],[1253,1],[1274,1],[1363,1],[1376,1],[1408,1],[1460,2],[1580,2],[1626,2],[1639,2],[1653,2],[1666,1],[1678,1]]},"116":{"position":[[277,1],[340,2],[350,1],[537,1],[558,1],[570,2],[652,1],[665,1],[827,1]]},"120":{"position":[[0,23],[24,25],[50,23],[74,6],[81,4],[86,6],[93,17]]},"122":{"position":[[0,20],[21,36],[58,13],[72,22]]},"124":{"position":[[0,14]]},"131":{"position":[[72,31],[277,5],[283,5]]},"133":{"position":[[0,57]]},"137":{"position":[[74,2],[233,3],[246,2],[368,11],[380,7],[401,5],[407,2],[410,28],[439,39]]},"141":{"position":[[33,44],[78,47]]},"144":{"position":[[0,2],[54,19],[74,13]]},"146":{"position":[[0,2]]},"149":{"position":[[0,2],[3,19]]},"153":{"position":[[0,10],[11,2],[14,31],[46,5],[52,2],[55,20],[76,7],[84,7],[92,15]]},"156":{"position":[[0,37],[38,2],[41,23],[65,30]]},"158":{"position":[[0,7],[8,20],[39,13]]},"161":{"position":[[0,15],[16,43],[60,15],[76,22]]},"163":{"position":[[12,9],[22,24],[90,2],[93,4],[107,1],[270,1],[444,1],[631,1]]},"166":{"position":[[0,61],[62,42],[105,56],[162,39],[202,32],[235,47]]},"168":{"position":[[0,40],[41,61],[135,2],[173,7],[181,4],[207,13]]},"170":{"position":[[0,42],[45,5],[51,32],[86,5],[92,20]]},"172":{"position":[[0,46],[49,5],[71,4],[78,5],[84,54]]},"174":{"position":[[0,27],[28,6],[35,17],[53,22]]},"178":{"position":[[28,14],[43,16],[60,7],[68,11],[80,8],[195,10]]},"182":{"position":[[19,9],[29,9],[39,7]]},"184":{"position":[[0,9],[10,20]]},"186":{"position":[[49,5],[105,17],[123,19],[143,19]]},"188":{"position":[[0,6],[167,16],[184,8],[258,58],[317,3],[354,5],[441,17],[459,2],[487,2],[514,2],[517,4],[538,2],[557,3],[578,5],[633,1],[702,2],[733,1],[799,1],[862,1],[929,1],[970,2],[982,1],[1060,2],[1097,3],[1143,5],[1198,1],[1234,2],[1259,2],[1287,2],[1290,4],[1308,2],[1421,1],[1449,1],[1570,1],[1572,14],[1643,1],[1645,14],[1774,1],[1803,1],[1878,1],[1905,1],[1963,1],[2023,1],[2080,5],[2086,12],[2099,16],[2116,15]]},"190":{"position":[[0,2],[3,14]]},"196":{"position":[[123,1],[159,1],[184,1],[200,1],[220,2],[232,1],[256,9],[266,1],[282,1],[292,1],[315,1],[347,2],[374,1],[415,1],[417,8],[441,1],[472,1],[479,1],[493,1],[495,1],[497,1],[499,1],[501,1],[572,1],[630,4],[635,2],[638,1],[666,1],[736,1],[805,1],[863,1],[881,1],[883,1],[885,1],[936,1],[1002,2],[1335,1],[1371,1],[1396,1],[1412,1],[1432,2],[1444,1],[1468,9],[1478,1],[1494,1],[1504,1],[1527,1],[1559,2],[1586,1],[1656,1],[1687,1],[1694,1],[1708,1],[1710,1],[1712,1],[1714,1],[1716,1],[1718,2],[1721,1],[1750,1],[1803,1],[1830,2],[1871,1],[2145,2],[2254,1],[2312,2],[2340,2],[2352,1]]},"198":{"position":[[67,2],[225,15],[365,1],[393,1],[514,1],[516,14],[587,1],[589,14],[718,1],[747,1],[822,1],[849,1],[907,1],[967,1],[1024,13],[1053,36]]},"200":{"position":[[0,2]]},"202":{"position":[[0,30],[232,7]]},"204":{"position":[[0,12]]},"206":{"position":[[187,15]]},"208":{"position":[[0,2]]},"211":{"position":[[86,3],[151,24],[176,3],[180,84],[265,18]]},"213":{"position":[[77,18],[96,3],[100,3],[104,5],[110,7],[171,5],[266,4],[363,4]]},"219":{"position":[[45,8],[54,8],[63,4],[68,9],[78,2],[81,10],[92,64],[157,56],[214,54],[269,8],[278,9],[397,10],[511,9],[692,10],[871,8],[880,9],[1002,10],[1141,9],[1337,10]]},"222":{"position":[[0,19],[20,5],[26,5],[32,5],[38,4],[43,3],[47,2]]},"224":{"position":[[0,16],[42,33]]},"226":{"position":[[0,7],[25,3]]},"229":{"position":[[0,5],[6,39],[46,7],[54,6],[61,6],[68,6],[75,6],[82,22],[105,22],[128,73],[202,3],[206,64],[271,2],[274,74]]},"231":{"position":[[0,7],[8,3],[12,50],[63,3],[261,12],[274,3],[278,7],[286,3],[290,26],[317,3],[321,40],[362,3],[509,10],[520,3]]},"233":{"position":[[0,23],[24,5],[30,2],[33,6],[40,3],[44,3],[48,12],[61,7],[69,6],[76,6],[83,4],[88,8],[97,4],[102,5],[108,5],[114,5],[120,53],[174,3],[178,12],[191,39],[231,19],[275,19]]},"235":{"position":[[0,76],[77,34]]},"237":{"position":[[0,17],[33,2],[358,42],[884,60],[1113,2],[1168,2]]},"239":{"position":[[0,14],[169,27],[630,2],[685,2]]},"241":{"position":[[0,5],[6,38],[45,13],[359,5],[365,40],[406,13]]},"248":{"position":[[0,5],[6,15],[22,12],[35,23],[59,29],[89,14],[104,5],[110,84],[195,16],[212,22],[235,20],[256,77],[334,90]]},"250":{"position":[[99,10],[110,5],[116,39]]},"253":{"position":[[0,6],[160,6]]},"255":{"position":[[0,9],[10,45],[56,8],[65,30],[96,26],[123,27]]},"257":{"position":[[10,7],[18,34],[53,13],[76,7],[84,17],[102,13],[127,7],[135,37],[173,13],[198,7],[206,17],[272,10],[283,9],[326,16],[343,6]]},"259":{"position":[[0,10],[11,64],[76,56],[133,54],[188,11],[200,19],[220,24],[245,25],[271,18],[290,21],[312,26],[362,18],[433,35],[469,38],[508,27],[536,49],[586,12],[599,46],[646,68],[715,8],[724,3],[728,3],[732,12],[745,25],[771,46],[818,56],[875,17],[896,4],[901,2]]},"261":{"position":[[0,4],[14,5],[66,3],[113,40]]},"274":{"position":[[0,5],[389,4],[812,13],[1335,2]]},"278":{"position":[[0,1],[24,2],[64,39],[116,18],[154,25],[199,19],[219,5],[225,25],[259,14],[274,5],[280,38],[327,1],[338,10],[357,1],[410,5],[424,32],[465,1],[505,46],[560,1],[621,10]]},"282":{"position":[[790,31],[1558,15],[1602,1],[1628,2],[1647,1]]},"284":{"position":[[0,4]]},"289":{"position":[[0,137]]},"291":{"position":[[10,8],[19,19],[39,15],[55,21],[77,6],[84,21],[106,6],[113,52],[166,3],[170,32],[203,6],[210,6],[217,16],[234,6],[241,26]]},"293":{"position":[[244,51]]},"295":{"position":[[0,3],[87,3],[91,53]]},"297":{"position":[[0,3],[96,3],[100,53]]},"299":{"position":[[0,32],[33,82],[116,43],[504,27],[663,17],[681,118]]},"301":{"position":[[0,8],[13,13],[74,11]]},"306":{"position":[[0,3],[19,2],[30,9]]},"308":{"position":[[0,13],[27,2],[45,8],[69,5]]},"312":{"position":[[9,7],[71,1],[88,1],[90,1],[92,1],[94,1],[130,1],[147,1],[149,1],[151,1],[153,1],[174,8],[198,1],[209,15]]},"314":{"position":[[0,19],[55,1],[122,1],[230,1],[330,1],[397,1],[502,1],[586,1],[593,4],[605,19],[637,2],[650,19],[674,5],[685,5],[719,2],[748,8],[782,1],[809,5],[824,17],[870,1],[948,1],[1022,1],[1100,1]]},"316":{"position":[[0,1],[9,2],[20,3],[32,11],[53,8],[124,17],[146,32],[195,17],[220,50]]},"318":{"position":[[9,1],[31,1],[91,1],[120,1],[159,1],[181,3],[187,3],[237,5],[245,8],[278,33],[312,1],[327,8],[340,8],[351,3],[359,30],[413,14],[430,10],[441,1],[456,9],[589,1],[718,1],[720,1],[733,1],[760,3],[766,6],[773,1],[784,9],[796,5],[804,7],[814,16],[833,13],[849,27],[879,1],[883,7],[911,22],[934,5],[953,6],[1002,5],[1016,10],[1035,10],[1054,5],[1073,30],[1120,6],[1135,28],[1172,13],[1194,14],[1266,6]]},"320":{"position":[[0,15],[155,5],[170,7],[221,1],[269,1],[293,1],[323,1],[392,1],[505,1],[516,14],[531,1],[587,46],[649,10],[660,3],[666,5],[681,24],[744,33],[803,13],[826,11],[912,6],[921,13],[937,13],[953,44],[998,5],[1012,6],[1029,3],[1118,2],[1134,11],[1154,5],[1177,7],[1209,9],[1227,1],[1276,5],[1297,7]]},"322":{"position":[[9,7],[37,11],[49,9],[63,2],[79,6],[91,4],[188,30],[219,4],[224,46],[296,7],[307,26],[348,10],[359,5],[368,11],[399,1],[570,8],[753,4],[774,5],[786,10],[800,4],[810,10],[824,1],[876,17],[922,4],[932,7],[954,2],[961,3],[976,1],[990,1],[996,7],[1008,1],[1017,2],[1031,1],[1046,1],[1052,10],[1066,3],[1087,2],[1140,8],[1149,2],[1155,20],[1199,13],[1226,4],[1255,12],[1277,20],[1304,1],[1377,28],[1416,43],[1464,15],[1494,2],[1501,3],[1516,1],[1530,1],[1536,7],[1548,1],[1557,2],[1571,1],[1586,1],[1592,10],[1607,3],[1614,2],[1669,29],[1720,4],[1759,3],[1848,13],[1868,24],[1932,11],[1968,11]]},"325":{"position":[[0,15],[27,2],[42,12],[65,2],[70,4],[129,9],[172,3],[187,6],[206,7],[254,17],[272,5],[278,9],[298,5],[315,15],[340,1],[344,6],[361,6],[368,8],[409,2],[436,20],[469,34],[504,19],[529,3],[542,5],[572,3],[596,15],[614,3],[635,2],[642,1],[660,32]]},"328":{"position":[[0,3],[4,5],[18,3],[36,5],[46,19],[80,5],[86,3],[97,1],[132,4],[145,14],[168,7],[189,8],[198,23],[222,3],[230,3],[241,4],[307,24],[340,11],[360,11],[380,15],[396,12],[416,37],[462,9],[480,9],[507,3],[519,10]]},"330":{"position":[[7,5],[15,31],[56,2]]},"339":{"position":[[232,2]]},"343":{"position":[[201,18],[285,17],[562,26]]},"347":{"position":[[256,10],[917,5],[923,10]]},"351":{"position":[[126,2]]},"359":{"position":[[0,2]]},"361":{"position":[[106,12],[162,1]]},"363":{"position":[[95,1]]},"365":{"position":[[107,1],[133,2],[136,6]]},"367":{"position":[[0,2],[3,5]]},"370":{"position":[[85,2],[88,35],[364,1],[368,18],[398,3],[402,8],[413,24],[442,19],[462,3],[466,48],[515,3],[519,51],[582,3],[586,8],[597,31],[631,7],[639,3],[643,14],[660,31],[692,3],[696,47],[746,14],[763,6],[772,19]]},"372":{"position":[[100,5],[282,2],[285,81]]},"379":{"position":[[0,5],[105,1],[160,1],[212,1],[256,8],[723,1],[779,1],[869,1],[959,1],[1061,1],[1101,1],[1110,1],[1126,1],[1135,1],[1152,1],[1161,1],[1194,1],[1232,1],[1268,1],[1277,11],[1289,33],[1470,1],[1513,1],[1523,1],[1643,1],[1689,1],[1717,1],[1949,1],[2015,1],[2072,1],[2090,1],[2111,2],[2166,10],[2367,1],[2393,1],[2422,3],[3014,5],[3020,1],[3150,1],[3207,1],[3259,1],[3303,1],[3363,1],[3453,1],[3543,1],[3625,1],[3665,1],[3674,1],[3690,1],[3699,1],[3716,1],[3725,1],[3758,1],[3796,1],[3832,1],[3841,1],[3883,1],[3893,1],[3939,1],[3985,1],[4013,1],[4108,1],[4174,1],[4231,1],[4249,1],[4270,2],[4325,1],[4351,1]]},"381":{"position":[[130,4],[190,4],[257,4]]},"385":{"position":[[0,2],[3,33]]},"387":{"position":[[0,89],[90,157]]},"391":{"position":[[191,2],[199,8],[242,16],[286,31],[354,31]]},"393":{"position":[[361,3]]},"395":{"position":[[12,34],[225,28],[821,29],[856,41],[1154,5],[1388,5]]},"397":{"position":[[302,11],[314,2],[322,49],[372,1],[379,32],[424,65],[498,87],[594,40],[635,11]]},"403":{"position":[[24,1],[37,1],[116,1],[307,1],[352,1]]},"405":{"position":[[22,1],[40,1],[44,1],[52,1],[158,1],[176,1],[180,1],[188,1],[296,1]]},"408":{"position":[[37,19],[89,1],[189,1]]},"410":{"position":[[0,4],[317,2],[353,2],[356,2],[707,2],[719,2],[743,2],[777,2],[803,2],[817,2],[832,2],[880,2],[893,1],[948,2],[1001,1],[1033,1],[1064,1],[1121,4],[1176,2],[1228,2],[1236,1],[1253,2],[1266,2],[1269,2],[1345,2],[1442,1],[1454,1],[1496,1],[1518,1],[1541,1],[1588,1],[1638,1],[1685,1],[1710,1],[1744,1],[1776,1],[1821,1],[1871,1]]},"415":{"position":[[271,1],[494,3],[498,14],[513,32],[546,15]]},"418":{"position":[[139,16]]},"422":{"position":[[0,24],[25,14],[40,32]]},"424":{"position":[[0,2],[3,8]]},"430":{"position":[[72,1],[161,15],[253,1],[297,1],[335,1],[452,1],[564,1]]},"442":{"position":[[197,1],[249,1],[503,1],[542,1],[771,1],[775,1],[1022,1],[1067,1],[1137,1],[1173,1],[1190,1],[1252,1],[1285,1],[1358,2],[1459,2],[1483,2],[1580,1],[1628,1],[1683,1],[1803,1],[1841,1],[1991,1],[2026,1],[2037,1],[2097,1],[2163,1],[2175,1],[2197,1],[2209,1],[2231,1],[2236,1],[2251,2],[2257,2],[2271,2],[2310,1],[2319,1],[2324,1],[2376,1],[2435,1],[2564,1],[2577,1],[2650,1],[2678,1],[2735,1],[2751,1]]},"447":{"position":[[0,24],[25,23],[49,5],[55,3]]},"449":{"position":[[0,26],[179,20],[495,17],[801,16]]},"451":{"position":[[0,31],[261,10],[341,1]]},"454":{"position":[[0,150]]},"456":{"position":[[335,30],[498,38],[537,15],[566,1],[576,1],[593,1],[598,2],[610,1],[614,1],[619,1],[630,1],[634,1]]},"463":{"position":[[0,35]]},"467":{"position":[[89,38],[158,1],[306,1]]},"470":{"position":[[83,1],[102,1],[121,1],[141,1],[160,1],[180,1],[209,1],[267,1],[293,1],[323,1],[388,1],[485,1],[518,1],[524,1],[551,1],[556,1],[589,1],[594,1],[606,3],[610,1],[625,1],[714,1],[762,1],[764,8],[775,1],[862,1],[893,2],[930,1],[1041,1],[1069,1],[1097,1],[1130,3],[1203,3],[1209,1],[1250,1],[1291,1],[1324,3],[1406,3]]},"473":{"position":[[0,88],[89,62]]},"475":{"position":[[0,115],[116,80],[197,64],[262,47],[310,50]]},"477":{"position":[[0,78],[79,65]]},"479":{"position":[[0,4],[14,5],[66,3],[113,40]]},"492":{"position":[[0,5],[389,4],[812,13],[1335,2]]},"496":{"position":[[0,1],[24,2],[64,39],[116,18],[154,25],[199,19],[219,5],[225,25],[259,14],[274,5],[280,38],[327,1],[338,10],[357,1],[410,5],[424,32],[465,1],[505,46],[560,1],[621,10]]},"500":{"position":[[790,31],[1558,15],[1602,1],[1628,2],[1647,1]]},"502":{"position":[[0,4],[24,5]]},"505":{"position":[[0,4],[24,5]]},"508":{"position":[[0,8],[81,6],[90,7],[98,11],[176,3],[249,6],[561,6],[627,20],[753,3]]},"510":{"position":[[0,10],[264,14],[377,2],[402,2],[405,2],[474,2],[477,2]]},"514":{"position":[[122,1],[126,1],[139,3],[143,33],[177,17],[195,14]]},"516":{"position":[[0,4]]},"521":{"position":[[213,6]]},"523":{"position":[[157,19]]},"529":{"position":[[0,4]]},"533":{"position":[[518,3],[535,3],[553,3],[571,3]]},"537":{"position":[[0,2]]},"542":{"position":[[29,7]]},"544":{"position":[[30,1],[41,1],[43,3],[47,1],[181,1],[183,22],[206,1],[278,1],[353,1]]},"546":{"position":[[30,1],[152,1],[154,22]]},"548":{"position":[[0,6],[65,1],[148,2],[151,9],[211,1],[412,2],[433,1]]},"550":{"position":[[0,8],[13,13],[74,11]]},"555":{"position":[[0,3],[19,2],[30,9]]},"557":{"position":[[0,13],[27,2],[45,8],[69,5]]},"561":{"position":[[9,7],[71,1],[88,1],[90,1],[92,1],[94,1],[130,1],[147,1],[149,1],[151,1],[153,1],[174,8],[198,1],[209,15]]},"563":{"position":[[0,19],[55,1],[122,1],[230,1],[330,1],[397,1],[502,1],[586,1],[593,4],[605,19],[637,2],[650,19],[674,5],[685,5],[719,2],[748,8],[782,1],[809,5],[824,17],[870,1],[948,1],[1022,1],[1100,1]]},"565":{"position":[[0,1],[9,2],[20,3],[32,11],[53,8],[124,17],[146,32],[195,17],[220,50]]},"567":{"position":[[9,1],[31,1],[91,1],[120,1],[159,1],[181,3],[187,3],[237,5],[245,8],[278,33],[312,1],[327,8],[340,8],[351,3],[359,30],[413,14],[430,10],[441,1],[456,9],[590,1],[719,1],[721,1],[734,1],[761,3],[767,6],[774,1],[785,9],[797,5],[805,7],[815,16],[834,13],[850,27],[880,1],[884,7],[912,22],[935,5],[954,6],[1003,5],[1017,10],[1036,10],[1055,5],[1074,30],[1121,6],[1136,28],[1173,13],[1195,14],[1267,6]]},"569":{"position":[[0,15],[155,5],[170,7],[221,1],[269,1],[293,1],[323,1],[392,1],[505,1],[516,14],[531,1],[587,46],[649,10],[660,3],[666,5],[681,24],[744,33],[803,13],[826,11],[912,6],[921,13],[937,13],[953,44],[998,5],[1012,6],[1029,3],[1118,2],[1134,11],[1154,5],[1177,8],[1210,9],[1228,1],[1277,5],[1298,8]]},"571":{"position":[[9,7],[37,11],[49,9],[63,2],[79,6],[91,4],[187,30],[218,4],[223,46],[295,7],[306,26],[346,10],[357,5],[366,11],[397,1],[568,8],[751,4],[772,5],[784,10],[798,4],[808,10],[822,1],[874,17],[919,4],[929,7],[951,2],[958,3],[973,1],[987,1],[993,7],[1005,1],[1014,2],[1028,1],[1043,1],[1049,10],[1063,3],[1084,2],[1137,8],[1146,2],[1152,20],[1196,13],[1223,4],[1252,12],[1274,20],[1301,1],[1374,28],[1413,43],[1461,15],[1491,2],[1498,3],[1513,1],[1527,1],[1533,7],[1545,1],[1554,2],[1568,1],[1583,1],[1589,10],[1604,3],[1611,2],[1666,29],[1717,4],[1756,3],[1845,13],[1865,24],[1929,11],[1965,11]]},"574":{"position":[[0,15],[27,2],[42,12],[65,2],[70,4],[129,9],[172,3],[187,6],[206,7],[254,17],[272,5],[278,9],[298,5],[315,15],[340,1],[344,6],[361,6],[368,8],[409,2],[436,20],[469,34],[504,19],[529,3],[542,5],[572,3],[596,15],[614,3],[635,2],[642,1],[660,32]]},"577":{"position":[[7,5],[15,31]]},"579":{"position":[[0,1],[6,14],[29,6],[100,2],[123,12],[156,1],[180,7],[192,35],[263,3],[290,14],[313,1],[323,2],[346,4],[373,8],[389,11],[410,7],[431,32],[464,4],[494,3],[521,12],[541,17],[568,7],[589,11],[627,4],[632,6],[661,7],[679,5],[710,3],[718,16],[745,6],[776,7],[784,3],[792,3],[803,4],[869,24],[902,11],[922,11],[942,15],[958,12],[978,37],[1024,9],[1042,9],[1069,3],[1081,10]]},"581":{"position":[[66,1],[85,4],[94,15],[118,24],[151,14],[189,1],[213,14],[246,7],[262,8],[279,8],[321,14],[336,1],[360,4],[369,11]]},"583":{"position":[[0,2],[3,14],[40,9]]},"587":{"position":[[0,2],[3,32]]},"589":{"position":[[244,14],[293,1],[345,1],[384,1],[391,2],[400,1],[422,3],[495,3],[502,1],[515,1],[537,3],[598,3],[609,1],[614,1],[633,3],[661,1],[676,1],[692,2],[708,1],[723,1],[794,3],[874,2],[877,2],[880,1],[888,2],[891,2],[952,2],[955,2],[958,1],[966,2],[969,2],[1030,2],[1033,2],[1036,1],[1044,2],[1047,2],[1272,69]]},"593":{"position":[[69,11],[81,1],[98,1],[116,1],[140,1],[158,1],[189,1],[216,1],[218,8],[265,3],[354,10],[365,1],[367,10],[378,1],[380,8],[404,1],[425,1],[427,8],[476,3]]},"595":{"position":[[0,4]]},"597":{"position":[[0,2],[3,12]]},"604":{"position":[[148,12],[209,2],[330,5]]},"606":{"position":[[0,18]]},"608":{"position":[[24,1],[26,4],[183,7],[191,1],[193,1],[195,4],[281,7],[289,1]]},"610":{"position":[[75,13]]},"612":{"position":[[0,16],[26,16]]},"615":{"position":[[0,5],[6,2],[11,6],[22,2],[39,14],[54,7],[62,9],[74,5],[86,1],[91,1],[95,8],[104,7],[112,18],[131,41],[173,43],[217,45]]},"617":{"position":[[0,5],[6,4],[11,30],[42,6],[49,40],[107,4],[112,1],[114,1]]},"622":{"position":[[43,6],[56,2],[92,2]]},"624":{"position":[[0,2]]},"626":{"position":[[0,31]]},"628":{"position":[[39,1],[41,2],[44,1],[46,23],[70,2],[90,2],[93,1],[103,1],[108,2],[111,17],[143,1],[148,2],[151,2],[163,1],[179,1],[191,1],[193,2],[196,13],[215,1],[227,1],[232,1],[250,2],[276,2],[288,1],[290,2],[347,1],[357,1],[375,1],[382,1],[393,1],[400,1],[402,2],[405,9],[438,1],[440,2],[502,1],[514,1],[522,2],[525,26],[552,1],[561,2],[564,6],[571,1],[595,1],[597,2],[648,1],[667,2],[670,6],[677,1]]},"630":{"position":[[0,14],[15,2],[32,7],[125,1],[127,2],[130,1],[132,23],[156,2],[176,2],[179,1],[189,1],[194,2],[197,17],[229,1],[234,2],[237,2],[249,1],[265,1],[277,1],[279,2],[282,13],[301,1],[313,1],[318,1],[336,2],[362,2],[374,1],[376,2],[433,1],[443,1],[461,1],[468,1],[479,1],[486,1],[488,2],[491,9],[524,1],[526,2],[588,1],[600,1],[608,2],[611,26],[638,1],[647,2],[650,6],[657,1],[681,1],[683,2],[734,1],[753,2],[756,6],[763,1],[776,1],[799,2],[805,1],[832,1],[853,2],[861,1],[877,1],[898,1],[931,1],[953,1],[965,1],[984,1],[991,2],[999,1],[1006,1],[1021,1],[1040,2],[1061,1],[1068,2],[1076,1],[1078,1],[1085,2],[1094,1],[1106,1]]},"633":{"position":[[0,7],[8,74],[83,9],[93,90],[184,9],[260,10],[271,46],[318,5],[324,36],[361,16],[378,16],[395,8],[404,33],[467,1],[482,1],[519,3],[552,9],[564,12],[603,9],[615,11],[660,3],[666,10],[677,41],[736,2],[763,5]]},"635":{"position":[[0,2],[3,5],[9,8],[18,12],[31,7],[39,4]]},"637":{"position":[[0,51],[52,16]]},"639":{"position":[[0,12],[13,4],[18,10],[29,12],[42,9],[52,63],[116,2],[119,14],[134,13],[148,15],[232,20],[253,2],[256,72],[329,13],[343,43],[387,68],[456,87],[544,14],[559,9],[569,49],[619,12],[632,28],[661,14],[787,55]]},"645":{"position":[[16,2],[135,2],[138,15],[154,30],[185,6]]},"647":{"position":[[162,10],[173,6],[180,6],[187,12],[200,4]]},"649":{"position":[[0,31],[81,48]]},"654":{"position":[[0,2],[518,2],[598,20],[719,2],[722,14],[786,10]]},"656":{"position":[[11,7]]},"658":{"position":[[3,5],[62,24],[87,33],[154,2],[197,4],[202,28]]},"660":{"position":[[0,2]]},"668":{"position":[[134,38]]},"672":{"position":[[146,6]]},"674":{"position":[[0,48],[105,15],[121,91]]},"679":{"position":[[3,7],[47,7]]},"681":{"position":[[3,7],[47,7]]},"684":{"position":[[0,51],[52,16],[128,12],[141,4],[146,10],[157,12],[170,9],[180,63],[244,2],[247,14],[262,13],[276,15],[360,20],[381,2],[384,72],[457,13],[471,43],[515,68],[584,87],[672,14],[687,9],[697,49],[747,12],[760,28],[789,14],[915,55]]},"686":{"position":[[0,7],[8,74],[83,9],[93,90],[184,9],[260,10],[271,46],[318,5],[324,36],[361,16],[378,16],[395,8],[404,33],[467,1],[482,1],[519,3],[552,9],[564,12],[603,9],[615,11],[660,3],[666,10],[677,41],[736,2],[763,5]]},"688":{"position":[[0,2],[3,14]]},"693":{"position":[[0,59],[60,30],[91,30]]},"695":{"position":[[0,4],[5,4],[193,2],[196,13]]},"697":{"position":[[0,16],[69,1]]}}}],["0",{"_index":14,"t":{"4":{"position":[[115,2],[129,2],[210,2]]},"6":{"position":[[96,2],[167,2],[183,2]]},"17":{"position":[[160,24],[185,3],[256,2],[259,3]]},"19":{"position":[[86,3],[142,1],[152,2],[367,1],[379,2],[468,2]]},"21":{"position":[[48,22]]},"25":{"position":[[90,2],[100,2],[144,2],[160,2],[208,4],[231,2],[365,2]]},"49":{"position":[[114,7],[172,7]]},"76":{"position":[[53,2]]},"84":{"position":[[1605,2],[1659,2]]},"102":{"position":[[253,1],[273,1],[839,1]]},"105":{"position":[[842,2],[913,2],[1021,2],[1290,2],[1346,2],[1454,2],[1993,2],[2282,2],[2374,2]]},"107":{"position":[[2511,2]]},"109":{"position":[[92,1],[121,1],[792,2],[808,2],[3089,3],[3209,2]]},"112":{"position":[[382,2],[724,2],[1007,2],[2131,2]]},"114":{"position":[[283,2],[512,2],[717,2],[1675,2]]},"116":{"position":[[824,2]]},"131":{"position":[[0,17]]},"188":{"position":[[2156,5]]},"194":{"position":[[50,5]]},"282":{"position":[[1518,39],[1631,2]]},"318":{"position":[[1273,2]]},"320":{"position":[[223,2]]},"379":{"position":[[167,2],[173,3],[177,3],[184,2],[799,2],[813,3],[817,3],[824,3],[835,4],[889,2],[900,2],[903,3],[907,3],[911,2],[918,3],[982,3],[986,3],[993,3],[1001,2],[1015,4],[3214,2],[3220,3],[3224,3],[3231,2],[3383,2],[3397,3],[3401,3],[3408,3],[3419,4],[3473,2],[3484,2],[3487,3],[3491,3],[3495,2],[3502,3],[3566,3],[3570,3],[3577,3],[3585,2],[3599,4]]},"403":{"position":[[169,14]]},"405":{"position":[[38,1],[46,3],[61,3],[174,1],[182,3],[197,3]]},"442":{"position":[[2260,1]]},"444":{"position":[[44,74]]},"456":{"position":[[568,1],[578,1],[601,1]]},"467":{"position":[[308,1]]},"470":{"position":[[958,2],[982,3]]},"500":{"position":[[1518,39],[1631,2]]},"544":{"position":[[131,5]]},"546":{"position":[[56,5],[62,5]]},"567":{"position":[[1274,2]]},"569":{"position":[[223,2]]},"589":{"position":[[648,3],[1217,2],[1229,2],[1253,2]]},"628":{"position":[[105,2],[145,2],[165,2],[244,5],[359,5],[443,33],[600,25]]},"630":{"position":[[191,2],[231,2],[251,2],[330,5],[445,5],[529,33],[686,25],[856,4],[893,4],[994,4],[1103,2]]}}}],["0&d(u,v)d0​d1​≤d(u,v)≤d0​d(u,v)d_0\\end{cases}\\tag{14}h(u,v)={10​d(u,v)≤d0​d(u,v)>d0​​(14",{"_index":1412,"t":{"237":{"position":[[141,67]]}}}],["0&d(u,v)>d_1\\end{cases}\\tag{18}h(u,v)=⎩⎨⎧​1d0​−d1​d(u,v)−d1​​0​d(u,v)d1​​(18",{"_index":1432,"t":{"237":{"position":[[1171,102]]}}}],["0&d(u,v)\\leq",{"_index":1435,"t":{"239":{"position":[[97,12]]}}}],["0.1",{"_index":2495,"t":{"470":{"position":[[826,5],[850,4]]}}}],["0.1959",{"_index":1747,"t":{"322":{"position":[[1099,8]]},"571":{"position":[[1096,8]]}}}],["0.2",{"_index":2498,"t":{"470":{"position":[[855,6]]}}}],["0.2042",{"_index":1745,"t":{"322":{"position":[[1079,7]]},"571":{"position":[[1076,7]]}}}],["0.25",{"_index":282,"t":{"67":{"position":[[188,5]]}}}],["0.3",{"_index":2492,"t":{"470":{"position":[[802,5]]}}}],["0.7",{"_index":2496,"t":{"470":{"position":[[832,4]]}}}],["0.8",{"_index":2493,"t":{"470":{"position":[[814,4],[837,5]]}}}],["0.88",{"_index":2497,"t":{"470":{"position":[[843,6]]}}}],["0.9",{"_index":2408,"t":{"442":{"position":[[2737,4]]},"470":{"position":[[797,4],[808,5]]}}}],["0.99",{"_index":2494,"t":{"470":{"position":[[819,6]]}}}],["01",{"_index":638,"t":{"102":{"position":[[500,2]]}}}],["012",{"_index":631,"t":{"102":{"position":[[370,3]]}}}],["0x3f3f3f3f",{"_index":241,"t":{"62":{"position":[[489,10]]},"116":{"position":[[131,10]]}}}],["0xf",{"_index":625,"t":{"102":{"position":[[301,3]]}}}],["0xff;//d",{"_index":1185,"t":{"196":{"position":[[294,8],[1506,8]]}}}],["0维度的相加过程中出现了shape为(3",{"_index":2785,"t":{"589":{"position":[[1080,24]]}}}],["0阶矩和1",{"_index":1461,"t":{"253":{"position":[[167,33]]}}}],["1",{"_index":20,"t":{"6":{"position":[[63,21]]},"19":{"position":[[200,2],[240,2],[293,3]]},"23":{"position":[[63,1]]},"25":{"position":[[243,2],[331,2],[386,1]]},"39":{"position":[[91,2]]},"49":{"position":[[76,7],[93,10]]},"62":{"position":[[742,3],[772,2],[775,2]]},"80":{"position":[[198,4]]},"84":{"position":[[1597,2]]},"102":{"position":[[264,8],[342,1],[573,1],[605,1],[636,1],[739,1],[769,1],[807,1]]},"105":{"position":[[213,2],[1315,3],[1611,3],[1630,1],[1774,3],[2109,3]]},"107":{"position":[[1645,3],[1747,3]]},"109":{"position":[[76,1],[105,1],[143,1],[1055,2],[2864,3]]},"112":{"position":[[862,3],[923,3],[1935,3],[1985,3]]},"114":{"position":[[617,3],[659,3],[1576,3],[1613,3]]},"116":{"position":[[370,2],[568,1],[797,3]]},"131":{"position":[[18,12]]},"137":{"position":[[77,57]]},"233":{"position":[[252,1],[255,1],[258,1],[267,1],[270,1],[273,1],[296,1],[301,1],[304,1],[309,1],[312,1],[317,1]]},"282":{"position":[[1669,2]]},"314":{"position":[[124,3],[399,3],[815,3],[950,3],[1102,3]]},"318":{"position":[[951,1]]},"328":{"position":[[105,1],[254,12]]},"365":{"position":[[87,1]]},"370":{"position":[[362,1],[387,10],[411,1]]},"379":{"position":[[162,4],[170,2],[191,3],[195,2],[198,2],[201,3],[802,3],[806,3],[810,2],[821,2],[828,3],[832,2],[892,3],[896,3],[914,3],[922,2],[925,4],[997,3],[1008,3],[1012,2],[1608,9],[1714,2],[3209,4],[3217,2],[3238,3],[3242,2],[3245,2],[3248,3],[3386,3],[3390,3],[3394,2],[3405,2],[3412,3],[3416,2],[3476,3],[3480,3],[3498,3],[3506,2],[3509,4],[3581,3],[3592,3],[3596,2],[4010,2]]},"403":{"position":[[132,2],[184,13]]},"405":{"position":[[186,1]]},"410":{"position":[[1564,3],[1628,3],[1799,3]]},"442":{"position":[[404,2],[407,2],[2233,2],[2288,2],[2321,2],[2437,2]]},"458":{"position":[[22,20]]},"470":{"position":[[961,3],[1243,4],[1382,4]]},"500":{"position":[[1669,2]]},"563":{"position":[[124,3],[399,3],[815,3],[950,3],[1102,3]]},"567":{"position":[[952,1]]},"579":{"position":[[321,1],[816,12]]},"589":{"position":[[0,30],[409,2],[441,5],[521,2],[555,3],[652,3],[663,3]]},"593":{"position":[[100,3],[269,3],[480,3]]},"615":{"position":[[20,1],[25,13],[93,1],[263,37]]},"630":{"position":[[888,2]]},"647":{"position":[[134,16]]},"654":{"position":[[34,7]]},"656":{"position":[[0,2]]},"658":{"position":[[0,2]]},"662":{"position":[[70,2],[190,2]]},"664":{"position":[[84,2]]},"666":{"position":[[91,2]]},"672":{"position":[[100,2]]},"679":{"position":[[0,2]]},"681":{"position":[[0,2]]},"697":{"position":[[46,1]]}}}],["1)&&(countout(1)==n",{"_index":737,"t":{"107":{"position":[[1625,19]]}}}],["1),indegree(0),outdegree(0",{"_index":292,"t":{"67":{"position":[[429,27]]},"107":{"position":[[304,27]]}}}],["1)[1,−1)的索引区间中的元素值都会加1,而对于某次刷漆终点e的下一个索引为e+1的元素值由于−1",{"_index":47,"t":{"21":{"position":[[193,51]]}}}],["1)[\\frac{d(u,v)}{d_0}]^{2n}}\\tag{16}h(u,v)=1+(2​−1)[d0​d(u,v)​]2n1​(16",{"_index":1417,"t":{"237":{"position":[[460,71]]}}}],["1)[\\frac{d_0}{d(u,v)}]^{2n}}\\tag{20}h(u,v)=1+(2​−1)[d(u,v)d0​​]2n1​(20",{"_index":1439,"t":{"239":{"position":[[273,71]]}}}],["1)\\tag{13}s(k)=ceil(sk​×l−1)(13",{"_index":1400,"t":{"231":{"position":[[210,32]]}}}],["1)的每一列复制三次为(3",{"_index":2788,"t":{"589":{"position":[[1144,14]]}}}],["1)的矩阵与shape为(1",{"_index":2786,"t":{"589":{"position":[[1105,15]]}}}],["1+max(getheight(t[rt].l),getheight(t[rt].r",{"_index":927,"t":{"112":{"position":[[1017,45]]},"114":{"position":[[727,45]]}}}],["1,0",{"_index":259,"t":{"62":{"position":[[778,4]]}}}],["1,0,1,0,0,1,0",{"_index":257,"t":{"62":{"position":[[727,14]]}}}],["1,0,1,1",{"_index":261,"t":{"62":{"position":[[790,8]]}}}],["1,0,n",{"_index":956,"t":{"112":{"position":[[1929,5],[1979,5]]},"114":{"position":[[1570,5],[1607,5]]},"116":{"position":[[791,5]]}}}],["1,1,0",{"_index":260,"t":{"62":{"position":[[783,6]]}}}],["1,1,0,1,1",{"_index":262,"t":{"62":{"position":[[799,11]]}}}],["1,l2+1,l2+p2",{"_index":984,"t":{"116":{"position":[[475,14]]}}}],["1,lb+1,lb+p2",{"_index":918,"t":{"112":{"position":[[508,14]]},"114":{"position":[[377,14]]}}}],["1,lb,lb+p2",{"_index":923,"t":{"112":{"position":[[851,10]]},"114":{"position":[[606,10]]}}}],["1.0",{"_index":236,"t":{"62":{"position":[[454,4]]}}}],["1.51",{"_index":1213,"t":{"196":{"position":[[876,4]]}}}],["1.vector",{"_index":343,"t":{"80":{"position":[[22,8]]}}}],["10",{"_index":15,"t":{"4":{"position":[[142,2],[151,3],[160,3]]},"6":{"position":[[109,2],[118,3],[136,3],[219,2]]},"25":{"position":[[196,2]]},"62":{"position":[[683,3]]},"67":{"position":[[121,3],[287,3]]},"72":{"position":[[144,33]]},"322":{"position":[[304,2],[797,2],[821,2]]},"403":{"position":[[335,3]]},"405":{"position":[[324,3]]},"442":{"position":[[850,4],[2742,2]]},"571":{"position":[[303,2],[795,2],[819,2]]},"589":{"position":[[733,6]]},"628":{"position":[[229,2]]},"630":{"position":[[315,2]]}}}],["10,3.141590,\"method",{"_index":273,"t":{"67":{"position":[[38,19]]}}}],["10.multimap",{"_index":358,"t":{"80":{"position":[[567,11]]}}}],["100",{"_index":325,"t":{"72":{"position":[[77,42]]},"109":{"position":[[281,3]]},"188":{"position":[[687,4]]},"403":{"position":[[325,4],[330,4]]},"405":{"position":[[314,4],[319,4]]}}}],["1000",{"_index":9,"t":{"4":{"position":[[72,5]]},"322":{"position":[[86,4],[277,18],[927,4]]},"571":{"position":[[86,4],[276,18],[924,4]]}}}],["10000",{"_index":1732,"t":{"322":{"position":[[271,5]]},"571":{"position":[[270,5]]}}}],["1000000007",{"_index":966,"t":{"116":{"position":[[154,10]]}}}],["1010",{"_index":632,"t":{"102":{"position":[[390,7],[412,4],[462,4]]}}}],["106",{"_index":1111,"t":{"188":{"position":[[957,4]]}}}],["108",{"_index":1898,"t":{"361":{"position":[[164,3]]}}}],["10px",{"_index":2749,"t":{"548":{"position":[[367,5]]}}}],["10的vector,初始化为3",{"_index":96,"t":{"31":{"position":[[24,23]]}}}],["11",{"_index":865,"t":{"109":{"position":[[2726,2]]}}}],["11.hash_set",{"_index":359,"t":{"80":{"position":[[597,11]]}}}],["1111",{"_index":627,"t":{"102":{"position":[[321,6]]}}}],["1125",{"_index":1643,"t":{"314":{"position":[[195,5],[211,5],[467,5]]},"563":{"position":[[195,5],[211,5],[467,5]]}}}],["11×1",{"_index":2927,"t":{"649":{"position":[[150,18]]}}}],["11×1卷积核,每个filter对上一步的featur",{"_index":1906,"t":{"365":{"position":[[14,28]]}}}],["12",{"_index":239,"t":{"62":{"position":[[474,2]]},"102":{"position":[[381,8]]},"365":{"position":[[109,2]]},"589":{"position":[[740,6]]}}}],["12.hash_multiset",{"_index":361,"t":{"80":{"position":[[629,16]]}}}],["120",{"_index":2327,"t":{"442":{"position":[[780,5]]}}}],["120,210都是30的倍数,由于要找最大的,所以答案是210",{"_index":55,"t":{"23":{"position":[[107,33]]}}}],["13",{"_index":2772,"t":{"589":{"position":[[747,4],[758,5]]}}}],["13.hash_map",{"_index":362,"t":{"80":{"position":[[666,11]]}}}],["1313×13个grid",{"_index":2959,"t":{"656":{"position":[[75,12]]}}}],["14",{"_index":2773,"t":{"589":{"position":[[752,5],[764,4],[775,5]]}}}],["14.hash_multimap",{"_index":363,"t":{"80":{"position":[[698,16]]}}}],["148",{"_index":1126,"t":{"188":{"position":[[1237,8]]}}}],["149",{"_index":1086,"t":{"188":{"position":[[462,8]]}}}],["15",{"_index":2774,"t":{"589":{"position":[[769,5],[781,4]]}}}],["16",{"_index":2324,"t":{"442":{"position":[[669,3]]},"589":{"position":[[786,7]]}}}],["18446744073709551615ull",{"_index":248,"t":{"62":{"position":[[602,24]]}}}],["1?'\\n",{"_index":938,"t":{"112":{"position":[[1324,8]]},"114":{"position":[[1026,8]]}}}],["1\\eta",{"_index":2262,"t":{"430":{"position":[[545,10]]}}}],["1\\mu_1μ1​和μ2\\mu_2μ2​分别是第一个和第二个高斯分布的均值向量;σ1\\sigma_1σ1​和σ2\\sigma_2σ2​则是它们的协方差矩阵;tr(⋅)\\mathrm{tr}(\\cdot)tr",{"_index":1837,"t":{"345":{"position":[[592,119]]}}}],["1][b,c,1,1]的tensor",{"_index":2970,"t":{"662":{"position":[[73,43]]}}}],["1][b,c,1,1]的tensor,再送入共享的多层感知机网络进行降维再升维,最后将二者相加再经过sigmoid",{"_index":2974,"t":{"664":{"position":[[87,72]]}}}],["1][b,c,1,1]的tensor,该tensor",{"_index":2988,"t":{"672":{"position":[[103,37]]}}}],["1],即reduce了dim=1",{"_index":2490,"t":{"470":{"position":[[742,19]]}}}],["1_44=fd.img",{"_index":1147,"t":{"188":{"position":[[1685,12]]},"198":{"position":[[629,12]]}}}],["1_44=fd_aug.img",{"_index":1149,"t":{"188":{"position":[[1724,16]]},"198":{"position":[[668,16]]}}}],["1e",{"_index":238,"t":{"62":{"position":[[471,2]]}}}],["1e5",{"_index":252,"t":{"62":{"position":[[677,3]]}}}],["1e9",{"_index":254,"t":{"62":{"position":[[693,3]]},"282":{"position":[[1635,4]]},"500":{"position":[[1635,4]]}}}],["1k−1",{"_index":2280,"t":{"435":{"position":[[117,4]]}}}],["1}=\\frac{1}{\\sqrt{\\alpha_{t}}}\\left(\\mathbf{x}_{t",{"_index":1311,"t":{"206":{"position":[[254,50]]}}}],["1}\\sum_{v=0}^{n",{"_index":1391,"t":{"219":{"position":[[1428,15]]}}}],["1}\\sum_{y=0}^{n",{"_index":1387,"t":{"219":{"position":[[1217,15]]}}}],["1}a−1",{"_index":2903,"t":{"637":{"position":[[122,5]]},"684":{"position":[[122,5]]}}}],["1}f(u)e^{j\\frac{2\\pi",{"_index":1384,"t":{"219":{"position":[[1072,20]]}}}],["1}f(u,v)e^{j2\\pi",{"_index":1392,"t":{"219":{"position":[[1444,16]]}}}],["1}f(x)e",{"_index":1380,"t":{"219":{"position":[[936,9]]}}}],["1}f(x,y)e",{"_index":1388,"t":{"219":{"position":[[1233,11]]}}}],["1}key0,...,keyn−1,query0,...,queryn−1query^{0",{"_index":2022,"t":{"381":{"position":[[142,47]]}}}],["1}query0,...,queryn−1以及value0,...,valuen−1value^{0",{"_index":2024,"t":{"381":{"position":[[204,52]]}}}],["1}value0,...,valuen−1",{"_index":2026,"t":{"381":{"position":[[271,22]]}}}],["1}xt−1​代表当前步骤即将输出的降噪后的图像,ϵθ\\epsilon_\\thetaϵθ​代表nois",{"_index":1316,"t":{"206":{"position":[[539,52]]}}}],["1×11",{"_index":1905,"t":{"365":{"position":[[0,6]]},"649":{"position":[[130,12]]}}}],["1×1×3×4=12(3)1",{"_index":1907,"t":{"365":{"position":[[65,14]]}}}],["1ηλ<1",{"_index":2263,"t":{"430":{"position":[[566,15]]}}}],["1−1。这样在所有输入结束后的计算前缀和阶段,在每一个值为[1,−1)[1",{"_index":46,"t":{"21":{"position":[[153,38]]}}}],["1−1加上之前元素所累积的1",{"_index":49,"t":{"21":{"position":[[261,42]]}}}],["1−1而抵消影响(自身值为−1",{"_index":48,"t":{"21":{"position":[[245,15]]}}}],["1−σ)(2",{"_index":2102,"t":{"403":{"position":[[160,8]]}}}],["1−σ)(2)\\frac{{\\rm",{"_index":2097,"t":{"403":{"position":[[77,18]]}}}],["1个filter,其中包含3个kernel。每个kernel分别对输入图像的3",{"_index":1900,"t":{"363":{"position":[[0,55]]}}}],["1,即n0",{"_index":2861,"t":{"615":{"position":[[80,5]]}}}],["1:a为(4,5)的二维数组,b为(4,1)的二维数组,其中一方维度为1",{"_index":2761,"t":{"589":{"position":[[141,55]]}}}],["2",{"_index":124,"t":{"39":{"position":[[99,2]]},"45":{"position":[[188,18]]},"80":{"position":[[207,4]]},"105":{"position":[[1808,3],[2199,3]]},"109":{"position":[[163,1]]},"233":{"position":[[260,1],[262,1],[264,1],[298,1],[306,1],[314,1]]},"320":{"position":[[1010,1]]},"328":{"position":[[275,23]]},"379":{"position":[[181,2],[187,3],[979,2],[3228,2],[3234,3],[3563,2]]},"410":{"position":[[1657,3],[1840,3]]},"449":{"position":[[474,20]]},"470":{"position":[[976,2],[979,2],[1060,2],[1229,2],[1240,2],[1340,2],[1379,2]]},"569":{"position":[[1010,1]]},"579":{"position":[[475,1],[837,23]]},"589":{"position":[[447,6],[559,5],[656,4],[667,3],[678,3]]},"593":{"position":[[104,2],[283,3],[484,2]]},"615":{"position":[[72,1]]},"630":{"position":[[900,2],[945,3]]},"645":{"position":[[5,1]]},"654":{"position":[[783,2]]},"656":{"position":[[8,2]]},"658":{"position":[[194,2]]},"679":{"position":[[44,2]]},"681":{"position":[[44,2]]}}}],["2)中,当i,ji,ji,j",{"_index":2419,"t":{"449":{"position":[[426,47]]}}}],["2.2960",{"_index":1744,"t":{"322":{"position":[[1070,8]]},"571":{"position":[[1067,8]]}}}],["2.6420",{"_index":1746,"t":{"322":{"position":[[1090,8]]},"571":{"position":[[1087,8]]}}}],["2.95.2",{"_index":1095,"t":{"188":{"position":[[658,6]]}}}],["2.list",{"_index":344,"t":{"80":{"position":[[51,6]]}}}],["20",{"_index":784,"t":{"109":{"position":[[354,2]]}}}],["20,\"abc",{"_index":109,"t":{"33":{"position":[[21,11]]}}}],["200",{"_index":1153,"t":{"188":{"position":[[1799,3]]},"198":{"position":[[743,3]]}}}],["2001,2003,2004",{"_index":1200,"t":{"196":{"position":[[682,14]]}}}],["2003",{"_index":1204,"t":{"196":{"position":[[752,5]]}}}],["2004",{"_index":1208,"t":{"196":{"position":[[821,5]]}}}],["201",{"_index":53,"t":{"23":{"position":[[65,14],[141,8]]}}}],["2019",{"_index":1758,"t":{"322":{"position":[[1704,4]]},"521":{"position":[[356,5]]},"571":{"position":[[1701,4]]}}}],["201,210,012,021,102,120",{"_index":54,"t":{"23":{"position":[[80,26]]}}}],["201,让数字随意组合,是否能组合出30的倍数,如果能够组合成30",{"_index":52,"t":{"23":{"position":[[3,59]]}}}],["2020",{"_index":2620,"t":{"521":{"position":[[491,5]]}}}],["2021",{"_index":2635,"t":{"521":{"position":[[669,5],[814,5]]}}}],["2021】transform",{"_index":1470,"t":{"261":{"position":[[44,21]]},"479":{"position":[[44,21]]}}}],["2022发表的diffusionclip使用了diffusion模型代替nada中的stylegan",{"_index":2649,"t":{"521":{"position":[[952,65]]}}}],["2022的文章few",{"_index":2585,"t":{"516":{"position":[[68,10]]}}}],["2023",{"_index":2581,"t":{"516":{"position":[[13,4]]}}}],["20px",{"_index":2747,"t":{"548":{"position":[[327,5]]}}}],["210",{"_index":56,"t":{"23":{"position":[[150,8]]}}}],["2147483647",{"_index":244,"t":{"62":{"position":[[529,11]]}}}],["256",{"_index":2406,"t":{"442":{"position":[[2652,3]]}}}],["27",{"_index":1902,"t":{"363":{"position":[[97,2]]}}}],["28",{"_index":2311,"t":{"442":{"position":[[410,3],[414,3]]}}}],["2\\left(\\sigma_1\\sigma_2\\right)^{\\frac12}\\right)\\tag{1}fid=∥μ1​−μ2​∥22​+tr(σ1​+σ2​−2(σ1​σ2​)21​)(1",{"_index":1836,"t":{"345":{"position":[[493,98]]}}}],["2型文法(上下文无关语法,cfg",{"_index":1029,"t":{"141":{"position":[[0,32]]}}}],["2型文法,又称上下文无关文法(context",{"_index":1009,"t":{"131":{"position":[[31,22]]}}}],["2的top",{"_index":2999,"t":{"697":{"position":[[51,8]]}}}],["2的整数次幂表示,如大多图像为彩色rgb图像,256个灰度级,位深度为8(28=2562^8=25628=256),则对于分辨率为256×256的图像来说,需要256×256×3×8位表示,即每一个像素实际上使用24",{"_index":1343,"t":{"211":{"position":[[284,118]]}}}],["2(stanford",{"_index":2072,"t":{"395":{"position":[[726,10]]}}}],["2,iter",{"_index":1741,"t":{"322":{"position":[[978,11],[1518,11]]},"571":{"position":[[975,11],[1515,11]]}}}],["2,抹除所有置信度更小的其iou超过阈值的bbox",{"_index":2953,"t":{"654":{"position":[[679,39]]}}}],["3",{"_index":148,"t":{"47":{"position":[[64,2]]},"74":{"position":[[26,2]]},"80":{"position":[[214,5]]},"105":{"position":[[1791,3],[2217,3],[2235,3]]},"361":{"position":[[142,1],[151,1]]},"363":{"position":[[77,1],[93,1]]},"365":{"position":[[96,1]]},"370":{"position":[[629,1],[658,1],[744,1],[770,1]]},"379":{"position":[[146,3],[990,2],[1004,3],[1196,3],[1200,2],[1234,3],[1238,2],[1270,3],[1274,2],[3193,3],[3574,2],[3588,3],[3760,3],[3764,2],[3798,3],[3802,2],[3834,3],[3838,2]]},"410":{"position":[[1561,2],[1568,3],[1796,2],[1803,3]]},"470":{"position":[[118,2],[157,2],[287,3],[505,2],[508,2],[511,4],[520,3],[553,2],[591,2],[596,3],[600,2],[603,2],[868,2],[1063,3],[1232,3],[1236,3],[1343,4]]},"548":{"position":[[88,3]]},"589":{"position":[[364,3],[368,3],[402,3],[406,2],[454,6],[517,3],[524,2],[565,5],[671,4],[682,3],[1182,12]]},"593":{"position":[[107,2],[297,3],[487,2]]},"656":{"position":[[19,2]]},"658":{"position":[[231,2]]}}}],["3)(3,3),因此每个权重矩阵的形状应该是(4,3)(4",{"_index":1940,"t":{"379":{"position":[[352,30]]}}}],["3)(4,3)。为了统一性分析,计key,query以及value各向量维度为numnumnum",{"_index":1941,"t":{"379":{"position":[[383,49]]}}}],["3)中的a,ba,ba,b可缩小范围,并不用来实现全连接,此时a,ba,ba,b代表着卷积核的感受野,即kernel",{"_index":2422,"t":{"449":{"position":[[698,97]]}}}],["3)的每一行复制三次为(3",{"_index":2790,"t":{"589":{"position":[[1167,14]]}}}],["3)的矩阵相加的情况,此时进行广播,将(3",{"_index":2787,"t":{"589":{"position":[[1121,22]]}}}],["3),将(1",{"_index":2789,"t":{"589":{"position":[[1159,7]]}}}],["3.14159);//开辟一个存放单精度数的空间,并指定该实数的初值为//3.14159,将返回的该空间的地址赋给指针变量p",{"_index":328,"t":{"72":{"position":[[197,63]]}}}],["3.141590",{"_index":277,"t":{"67":{"position":[[139,9]]}}}],["3.dequ",{"_index":345,"t":{"80":{"position":[[77,7]]}}}],["30",{"_index":64,"t":{"25":{"position":[[225,2]]}}}],["300",{"_index":1742,"t":{"322":{"position":[[992,3],[1048,3],[1532,3],[1588,3]]},"571":{"position":[[989,3],[1045,3],[1529,3],[1585,3]]}}}],["300000",{"_index":1155,"t":{"188":{"position":[[1826,6]]},"198":{"position":[[770,6]]}}}],["30]的tensor",{"_index":2948,"t":{"654":{"position":[[453,17]]}}}],["30]的tensor(包含所有预测框的坐标、置信度和类别结果),通过解析输出的tensor",{"_index":2934,"t":{"654":{"position":[[99,51]]}}}],["32",{"_index":621,"t":{"102":{"position":[[213,3]]}}}],["320",{"_index":1642,"t":{"314":{"position":[[190,4],[206,4],[462,4],[478,4]]},"563":{"position":[[190,4],[206,4],[462,4],[478,4]]}}}],["32,iter",{"_index":1743,"t":{"322":{"position":[[1033,12],[1573,12]]},"571":{"position":[[1030,12],[1570,12]]}}}],["33×3卷积核,padding=1,stride=1padding=1",{"_index":1893,"t":{"359":{"position":[[100,36]]}}}],["33×3卷积的消融实验发现,7×77",{"_index":2980,"t":{"668":{"position":[[96,18]]}}}],["35deg",{"_index":2741,"t":{"548":{"position":[[253,6]]}}}],["3][5,5,3",{"_index":1888,"t":{"359":{"position":[[26,12]]}}}],["3]图像,输出[7",{"_index":2933,"t":{"654":{"position":[[85,10]]}}}],["3×33",{"_index":1891,"t":{"359":{"position":[[86,6]]}}}],["3×3×3×4=108(1)3",{"_index":1897,"t":{"361":{"position":[[119,15]]}}}],["3×3××3=27(2)3",{"_index":1901,"t":{"363":{"position":[[56,13]]}}}],["3个权重向量做乘法得到3个新的向量,分别为key,query以及value。在本例中将新的向量维度设为3,由于输出的k、q、v矩阵大小均为(3,3)(3",{"_index":1939,"t":{"379":{"position":[[265,86]]}}}],["3型文法,又称正规文法(regular",{"_index":1017,"t":{"131":{"position":[[245,19]]}}}],["3科成绩(假设年级只有a班和b",{"_index":2471,"t":{"470":{"position":[[211,40]]}}}],["4",{"_index":629,"t":{"102":{"position":[[334,1],[404,1],[454,1]]},"105":{"position":[[1825,3],[2127,3]]},"163":{"position":[[0,11]]},"361":{"position":[[160,1]]},"365":{"position":[[105,1]]},"379":{"position":[[150,2],[3197,2]]},"470":{"position":[[284,2],[864,3],[1284,4],[1401,4]]},"589":{"position":[[461,5],[571,3],[686,5]]}}}],["4.stack",{"_index":349,"t":{"80":{"position":[[274,7]]}}}],["40px",{"_index":2750,"t":{"548":{"position":[[407,4]]}}}],["448",{"_index":2932,"t":{"654":{"position":[[72,7],[80,4]]}}}],["4696",{"_index":1651,"t":{"314":{"position":[[483,5]]},"563":{"position":[[483,5]]}}}],["49406",{"_index":1641,"t":{"314":{"position":[[181,8],[453,8]]},"563":{"position":[[181,8],[453,8]]}}}],["49407",{"_index":1645,"t":{"314":{"position":[[217,6],[489,6]]},"563":{"position":[[217,6],[489,6]]}}}],["4][5,5,4]的featur",{"_index":1890,"t":{"359":{"position":[[64,17]]}}}],["4个filter(输出通道为4),每个filter3个kernel(输入通道为3",{"_index":1895,"t":{"361":{"position":[[0,45]]}}}],["4邻域n4(p)n_4(p)n4​(p)即该像素上下左右的四个点,8邻域n8(p)n_8(p)n8​(p),对角邻域nd(p)n_d(p)nd​(p",{"_index":1344,"t":{"213":{"position":[[0,76]]}}}],["5",{"_index":689,"t":{"105":{"position":[[1842,3],[1859,3],[2145,3],[2163,3],[2181,3]]},"359":{"position":[[23,2],[61,2]]},"440":{"position":[[97,40]]},"442":{"position":[[773,1],[777,2],[2254,2]]},"470":{"position":[[1088,2],[1270,2],[1281,2],[1359,2],[1398,2]]},"589":{"position":[[467,6],[575,5]]}}}],["5.queue",{"_index":351,"t":{"80":{"position":[[334,7]]}}}],["5000",{"_index":1738,"t":{"322":{"position":[[805,4],[871,4]]},"571":{"position":[[803,4],[869,4]]}}}],["50000",{"_index":1737,"t":{"322":{"position":[[780,5]]},"571":{"position":[[778,5]]}}}],["512",{"_index":1660,"t":{"314":{"position":[[958,4],[1110,4]]},"318":{"position":[[65,4],[106,4],[174,4],[336,3],[355,3],[466,3]]},"563":{"position":[[958,4],[1110,4]]},"567":{"position":[[65,4],[106,4],[174,4],[336,3],[355,3],[466,3]]}}}],["512是clip中的n_dim,token_embed",{"_index":1661,"t":{"314":{"position":[[963,41],[1115,41]]},"563":{"position":[[963,41],[1115,41]]}}}],["539",{"_index":1644,"t":{"314":{"position":[[201,4],[473,4]]},"563":{"position":[[201,4],[473,4]]}}}],["54、probabilist",{"_index":2519,"t":{"505":{"position":[[30,16]]}}}],["58",{"_index":1754,"t":{"322":{"position":[[1617,3]]},"571":{"position":[[1614,3]]}}}],["586",{"_index":3001,"t":{"697":{"position":[[71,5]]}}}],["594",{"_index":3000,"t":{"697":{"position":[[60,8]]}}}],["6",{"_index":691,"t":{"105":{"position":[[1876,3],[1893,3]]},"109":{"position":[[2724,1]]},"198":{"position":[[1044,8]]},"370":{"position":[[366,1],[571,10],[595,1],[761,1]]},"442":{"position":[[571,2]]},"470":{"position":[[405,3],[1091,3],[1273,3],[1277,3],[1362,4]]},"589":{"position":[[474,6],[581,5],[695,3]]}}}],["6.priority_queu",{"_index":353,"t":{"80":{"position":[[431,16]]}}}],["600",{"_index":2683,"t":{"533":{"position":[[54,3]]}}}],["6层encod",{"_index":2918,"t":{"647":{"position":[[16,11]]}}}],["7",{"_index":255,"t":{"62":{"position":[[699,2]]},"105":{"position":[[1910,3],[1927,3]]},"410":{"position":[[1572,2],[1807,2]]},"589":{"position":[[481,5],[587,3],[699,3],[710,3]]},"647":{"position":[[0,15]]},"654":{"position":[[96,2],[450,2]]}}}],["7.14",{"_index":800,"t":{"109":{"position":[[687,5]]}}}],["7.28",{"_index":837,"t":{"109":{"position":[[1982,5],[2717,6]]}}}],["7.set",{"_index":355,"t":{"80":{"position":[[490,5]]}}}],["700",{"_index":2752,"t":{"548":{"position":[[428,4]]}}}],["77",{"_index":1637,"t":{"314":{"position":[[128,3],[403,3],[706,5],[722,2],[745,2],[819,4],[954,3],[1106,3]]},"563":{"position":[[128,3],[403,3],[706,5],[722,2],[745,2],[819,4],[954,3],[1106,3]]}}}],["77×7",{"_index":2981,"t":{"668":{"position":[[122,11]]}}}],["77×7卷积与3×33",{"_index":2979,"t":{"668":{"position":[[77,11]]}}}],["77×7卷积学习特征并降维,最后送入sigmoid",{"_index":2977,"t":{"666":{"position":[[141,40]]}}}],["77是clip在tokenize方法中缺省的context_length,超过context_length将被truncate,不足的将用0",{"_index":1647,"t":{"314":{"position":[[232,72],[504,72]]},"563":{"position":[[232,72],[504,72]]}}}],["7×77",{"_index":2978,"t":{"668":{"position":[[0,69]]}}}],["7个损失项是最终融合得到的featur",{"_index":2923,"t":{"647":{"position":[[86,21]]}}}],["8",{"_index":153,"t":{"49":{"position":[[0,10]]},"188":{"position":[[1666,1]]},"198":{"position":[[610,1]]},"589":{"position":[[487,7],[591,6],[703,4],[714,3],[725,3]]}}}],["8.multiset",{"_index":356,"t":{"80":{"position":[[514,10]]}}}],["84",{"_index":1753,"t":{"322":{"position":[[1611,2]]},"442":{"position":[[817,4]]},"571":{"position":[[1608,2]]}}}],["9",{"_index":12,"t":{"4":{"position":[[108,2]]},"410":{"position":[[1575,4],[1810,4]]},"470":{"position":[[570,2],[573,2],[576,4]]},"589":{"position":[[718,4],[729,3]]}}}],["9.map",{"_index":357,"t":{"80":{"position":[[543,5]]}}}],["9223372036854775807ll",{"_index":246,"t":{"62":{"position":[[559,22]]}}}],["92540646808111039ll",{"_index":250,"t":{"62":{"position":[[640,20]]}}}],["928/929",{"_index":2992,"t":{"695":{"position":[[10,7],[210,94]]}}}],["9999",{"_index":10,"t":{"4":{"position":[[83,5]]}}}],["9月28日(2023年是9月29日),是研招网全国推免系统开放的日子,也是已经拿到offer",{"_index":2993,"t":{"695":{"position":[[18,61]]}}}],["__init__(self",{"_index":2306,"t":{"442":{"position":[[311,15],[447,15]]}}}],["__stack_chk_fail",{"_index":1124,"t":{"188":{"position":[[1124,18]]}}}],["a(10,3",{"_index":95,"t":{"31":{"position":[[12,8]]}}}],["a(4,3),b(3,4",{"_index":105,"t":{"31":{"position":[[249,14]]}}}],["a)=\\frac{p(a\\mid",{"_index":2536,"t":{"508":{"position":[[683,16]]}}}],["a)=p(b\\mid",{"_index":2550,"t":{"510":{"position":[[208,10]]},"512":{"position":[[249,10]]}}}],["a)\\cdot",{"_index":2547,"t":{"510":{"position":[[116,7],[219,7]]},"512":{"position":[[161,7],[260,7]]}}}],["a)move(t,a",{"_index":1026,"t":{"137":{"position":[[309,11]]}}}],["a)p(bi​∣a",{"_index":2540,"t":{"508":{"position":[[812,16]]}}}],["a,b",{"_index":2558,"t":{"510":{"position":[[449,4],[507,4]]}}}],["a,b)\\cdot",{"_index":2544,"t":{"510":{"position":[[73,9],[98,9]]},"512":{"position":[[120,9]]}}}],["a,b)p(b,c∣a)=p(b∣a)⋅p(c∣a,b",{"_index":2552,"t":{"510":{"position":[[235,28]]}}}],["a,ba,ba,b",{"_index":2416,"t":{"449":{"position":[[200,40]]}}}],["a,const",{"_index":320,"t":{"69":{"position":[[64,7]]}}}],["a.argmax(dim=0",{"_index":2500,"t":{"470":{"position":[[896,16]]}}}],["a.argmax(dim=1",{"_index":2501,"t":{"470":{"position":[[913,16]]}}}],["a.assign(b.begin",{"_index":515,"t":{"86":{"position":[[1009,19]]}}}],["a.assign(n",{"_index":513,"t":{"86":{"position":[[970,11]]}}}],["a.back",{"_index":102,"t":{"31":{"position":[[150,9]]},"37":{"position":[[77,9]]},"43":{"position":[[57,9]]},"86":{"position":[[598,8]]}}}],["a.begin",{"_index":498,"t":{"86":{"position":[[209,9]]}}}],["a.clear",{"_index":100,"t":{"31":{"position":[[114,10]]},"35":{"position":[[67,10]]},"43":{"position":[[35,10]]},"86":{"position":[[555,9]]}}}],["a.empti",{"_index":99,"t":{"31":{"position":[[80,10]]},"35":{"position":[[46,10]]},"37":{"position":[[24,10]]},"43":{"position":[[24,10]]},"86":{"position":[[390,9]]}}}],["a.end",{"_index":499,"t":{"86":{"position":[[238,7]]}}}],["a.erase(first",{"_index":510,"t":{"86":{"position":[[882,14]]}}}],["a.erase(it",{"_index":509,"t":{"86":{"position":[[852,11]]}}}],["a.erase({\"1\",1",{"_index":150,"t":{"47":{"position":[[86,17]]}}}],["a.find({\"1\",1",{"_index":151,"t":{"47":{"position":[[104,16]]}}}],["a.first",{"_index":110,"t":{"33":{"position":[[33,10]]}}}],["a.front",{"_index":101,"t":{"31":{"position":[[131,10]]},"37":{"position":[[56,10]]},"43":{"position":[[46,10]]},"86":{"position":[[579,9]]}}}],["a.h)<(b.h",{"_index":322,"t":{"69":{"position":[[89,13]]}}}],["a.insert(it",{"_index":508,"t":{"86":{"position":[[685,12],[727,12],[773,12]]}}}],["a.insert({\"1\",1",{"_index":149,"t":{"47":{"position":[[67,18]]}}}],["a.merge(b",{"_index":506,"t":{"86":{"position":[[646,10]]}}}],["a.pop",{"_index":118,"t":{"37":{"position":[[97,8]]}}}],["a.pop_back",{"_index":104,"t":{"31":{"position":[[196,13]]},"43":{"position":[[82,13]]},"86":{"position":[[326,12]]}}}],["a.pop_front",{"_index":502,"t":{"86":{"position":[[349,13]]}}}],["a.push(1",{"_index":117,"t":{"37":{"position":[[35,10]]}}}],["a.push_back",{"_index":103,"t":{"31":{"position":[[169,14]]},"43":{"position":[[67,14]]}}}],["a.push_back(x",{"_index":501,"t":{"86":{"position":[[299,14]]}}}],["a.push_front(x",{"_index":500,"t":{"86":{"position":[[271,15]]}}}],["a.remove(x",{"_index":511,"t":{"86":{"position":[[941,11]]}}}],["a.resize(n",{"_index":503,"t":{"86":{"position":[[418,11],[485,11]]}}}],["a.second",{"_index":111,"t":{"33":{"position":[[55,11]]}}}],["a.siz",{"_index":97,"t":{"31":{"position":[[48,9]]},"35":{"position":[[21,9]]},"37":{"position":[[14,9]]},"43":{"position":[[14,9]]},"86":{"position":[[373,8]]}}}],["a.swap(v",{"_index":504,"t":{"86":{"position":[[616,9]]}}}],["a<0",{"_index":829,"t":{"109":{"position":[[1630,4]]}}}],["a[\"2",{"_index":147,"t":{"47":{"position":[[55,6]]}}}],["aaa发生后,计算其条件事件bib_ibi​在事件aaa",{"_index":2534,"t":{"508":{"position":[[568,58]]}}}],["aaa而言,假设有一组互斥且穷尽的条件事件b1,b2,…bnb_{1},b_{2},\\ldot",{"_index":2528,"t":{"508":{"position":[[256,52]]}}}],["abbr",{"_index":1281,"t":{"202":{"position":[[585,5]]},"335":{"position":[[59,5]]},"351":{"position":[[33,5]]}}}],["abcdef",{"_index":866,"t":{"109":{"position":[[2729,6]]}}}],["abov",{"_index":1994,"t":{"379":{"position":[[2446,5]]}}}],["acc",{"_index":2371,"t":{"442":{"position":[[1765,5],[1777,6],[2498,3],[2524,3]]},"467":{"position":[[233,63]]}}}],["acc=∑i(predi==yi)len(y)(1)acc",{"_index":2452,"t":{"467":{"position":[[128,29]]}}}],["accept",{"_index":2066,"t":{"395":{"position":[[608,44]]}}}],["access",{"_index":2583,"t":{"516":{"position":[[23,6]]}}}],["accur",{"_index":2285,"t":{"435":{"position":[[321,8]]}}}],["accuraci",{"_index":2346,"t":{"442":{"position":[[1254,13]]},"467":{"position":[[313,8]]}}}],["accuracy(y_hat",{"_index":2349,"t":{"442":{"position":[[1301,15],[2111,15]]}}}],["accuracy作为数学上的训练方法,即在训练过程中不使用与acc",{"_index":2451,"t":{"467":{"position":[[47,41]]}}}],["acc并无变化,出现梯度为0",{"_index":2458,"t":{"467":{"position":[[353,63]]}}}],["acc,但并不会将maxim",{"_index":2450,"t":{"467":{"position":[[0,46]]}}}],["acmer,一个cv",{"_index":3002,"t":{"697":{"position":[[77,33]]}}}],["aco",{"_index":235,"t":{"62":{"position":[[448,5]]}}}],["action=report",{"_index":1169,"t":{"188":{"position":[[2066,13]]},"198":{"position":[[1010,13]]}}}],["activ",{"_index":1605,"t":{"304":{"position":[[37,8]]},"553":{"position":[[37,8]]}}}],["activation=\"fused_lrelu",{"_index":1689,"t":{"318":{"position":[[693,24]]},"567":{"position":[[694,24]]}}}],["acw",{"_index":113,"t":{"35":{"position":[[11,9]]}}}],["adain",{"_index":1713,"t":{"320":{"position":[[856,5]]},"569":{"position":[[856,5]]}}}],["adapt",{"_index":1600,"t":{"301":{"position":[[58,10]]},"320":{"position":[[640,8],[862,9]]},"516":{"position":[[101,8]]},"518":{"position":[[158,10]]},"550":{"position":[[58,10]]},"569":{"position":[[640,8],[862,9]]}}}],["adaption的任务是使在大规模源域图片上训练的生成模型适应到数据有限的目标域中,根据目标域训练资料的大小可以分为few",{"_index":2600,"t":{"521":{"position":[[17,61]]}}}],["addedge(int",{"_index":309,"t":{"67":{"position":[[787,11]]},"105":{"position":[[466,11]]},"107":{"position":[[662,11]]}}}],["adio",{"_index":1190,"t":{"196":{"position":[[394,6],[1606,6]]}}}],["adjacent_find",{"_index":369,"t":{"82":{"position":[[62,13]]}}}],["adjacent)的等价(ident",{"_index":370,"t":{"82":{"position":[[76,32]]}}}],["adjlist",{"_index":797,"t":{"109":{"position":[[636,7]]}}}],["adjlist[max_vertex_num",{"_index":794,"t":{"109":{"position":[[555,24]]}}}],["adjust",{"_index":2680,"t":{"531":{"position":[[80,6]]}}}],["adjv",{"_index":789,"t":{"109":{"position":[[418,5],[2605,6]]}}}],["adjv=b;p",{"_index":833,"t":{"109":{"position":[[1723,9]]}}}],["adjv]==0",{"_index":860,"t":{"109":{"position":[[2577,10]]}}}],["adversari",{"_index":1571,"t":{"284":{"position":[[22,12]]},"293":{"position":[[15,11]]},"521":{"position":[[325,11]]}}}],["advis",{"_index":1984,"t":{"379":{"position":[[2027,8],[4186,8]]}}}],["aggreg",{"_index":1932,"t":{"375":{"position":[[283,10]]}}}],["ai",{"_index":2444,"t":{"458":{"position":[[0,21]]},"516":{"position":[[41,2]]}}}],["aia^iai在计算注意力分数时,只将aia^iai的query向量与a1a^1a1至aia^{i}ai的iii个key向量做dot",{"_index":1532,"t":{"274":{"position":[[1192,112]]},"492":{"position":[[1192,112]]}}}],["ai论文】yolo",{"_index":2929,"t":{"654":{"position":[[3,17]]}}}],["alexei",{"_index":2626,"t":{"521":{"position":[[538,6]]}}}],["alexnet是指2012年由alex",{"_index":2218,"t":{"418":{"position":[[0,19]]}}}],["algorithm",{"_index":192,"t":{"58":{"position":[[42,9]]},"107":{"position":[[9,11]]}}}],["algraph",{"_index":799,"t":{"109":{"position":[[650,9],[2816,7]]}}}],["align",{"_index":1779,"t":{"325":{"position":[[412,15],[548,14]]},"516":{"position":[[141,9]]},"574":{"position":[[412,15],[548,14]]}}}],["all_ofc++11",{"_index":371,"t":{"82":{"position":[[109,11]]}}}],["all_proxi",{"_index":2854,"t":{"608":{"position":[[228,9]]}}}],["all_proxy=socks5://127.0.0.1:7890",{"_index":2849,"t":{"608":{"position":[[59,33]]}}}],["allow",{"_index":1927,"t":{"375":{"position":[[146,6]]}}}],["alpha",{"_index":995,"t":{"127":{"position":[[0,66],[116,6]]},"131":{"position":[[160,6]]}}}],["alpha,\\spac",{"_index":998,"t":{"127":{"position":[[102,13]]}}}],["alpha_{t}}{\\sqrt{1",{"_index":1313,"t":{"206":{"position":[[313,19]]}}}],["alt",{"_index":169,"t":{"53":{"position":[[105,3],[125,3]]}}}],["analysi",{"_index":2078,"t":{"395":{"position":[[926,9]]}}}],["anchor",{"_index":2957,"t":{"656":{"position":[[22,7]]}}}],["anchor宽高比的聚类,聚类数越大,覆盖的i",{"_index":2963,"t":{"656":{"position":[[150,43]]}}}],["anchor是通过k",{"_index":2962,"t":{"656":{"position":[[115,10]]}}}],["anim",{"_index":2367,"t":{"442":{"position":[[1674,8]]}}}],["animator.add(epoch",{"_index":2395,"t":{"442":{"position":[[2291,18],[2416,18]]}}}],["announcementbar",{"_index":2732,"t":{"548":{"position":[[48,16],[71,16]]}}}],["answer",{"_index":2055,"t":{"395":{"position":[[374,9],[1186,10]]}}}],["any_ofc++11",{"_index":372,"t":{"82":{"position":[[144,11]]}}}],["append(),push_back",{"_index":538,"t":{"88":{"position":[[728,20]]}}}],["applic",{"_index":2825,"t":{"604":{"position":[[41,11],[88,11]]}}}],["appropri",{"_index":1948,"t":{"379":{"position":[[533,11]]}}}],["ar",{"_index":1791,"t":{"335":{"position":[[205,120]]}}}],["architectur",{"_index":2698,"t":{"533":{"position":[[354,12]]}}}],["arch系用户通过以下命令即可完成bochs和nasm",{"_index":1075,"t":{"186":{"position":[[55,31]]}}}],["arcnod",{"_index":788,"t":{"109":{"position":[[405,8],[460,7],[475,9],[528,7],[1187,7],[1661,8],[2286,7]]}}}],["arcnum",{"_index":803,"t":{"109":{"position":[[782,7],[1402,7],[1517,8]]}}}],["argmax",{"_index":1667,"t":{"316":{"position":[[213,6]]},"470":{"position":[[612,12],[932,6]]},"565":{"position":[[213,6]]}}}],["argmin",{"_index":2486,"t":{"470":{"position":[[627,6]]}}}],["args.mix",{"_index":1672,"t":{"318":{"position":[[70,12]]},"567":{"position":[[70,12]]}}}],["args.source_class",{"_index":1630,"t":{"312":{"position":[[96,18]]},"561":{"position":[[96,18]]}}}],["args.target_class",{"_index":1632,"t":{"312":{"position":[[155,18]]},"561":{"position":[[155,18]]}}}],["argument",{"_index":2689,"t":{"533":{"position":[[201,10]]}}}],["arm",{"_index":1789,"t":{"335":{"position":[[81,6]]}}}],["arm(autoregress",{"_index":1790,"t":{"335":{"position":[[88,18]]}}}],["arr_size(a",{"_index":223,"t":{"62":{"position":[[214,11]]}}}],["arxiv",{"_index":1469,"t":{"261":{"position":[[5,8]]},"479":{"position":[[5,8]]},"502":{"position":[[5,8]]},"505":{"position":[[5,8]]}}}],["ar模型与非自回归nar",{"_index":1786,"t":{"333":{"position":[[0,73]]}}}],["ar)的方法逐token",{"_index":1788,"t":{"335":{"position":[[65,15]]}}}],["asciicod",{"_index":1184,"t":{"196":{"position":[[272,9],[481,11],[1484,9],[1696,11]]}}}],["asciicode=='d')//ctrl+d",{"_index":1188,"t":{"196":{"position":[[350,23],[1562,23]]}}}],["assert.h",{"_index":176,"t":{"56":{"position":[[21,8]]}}}],["assign",{"_index":537,"t":{"88":{"position":[[690,10]]},"535":{"position":[[17,10]]}}}],["attent",{"_index":1525,"t":{"274":{"position":[[800,11],[978,9],[1428,11]]},"282":{"position":[[32,15]]},"367":{"position":[[27,9],[48,17]]},"375":{"position":[[7,9],[126,9],[239,9],[252,14],[320,9],[401,34]]},"379":{"position":[[1489,9],[1659,9],[3043,9],[3860,9],[3955,9]]},"381":{"position":[[294,12]]},"383":{"position":[[53,19]]},"492":{"position":[[800,11],[978,9],[1428,11]]},"500":{"position":[[32,15]]}}}],["attention(q,k,v)=softmax(qktdk)v(1)attention(q,k,v)=\\textit{softmax}(\\frac{qk^t}{\\sqrt{d_k}})v",{"_index":2011,"t":{"379":{"position":[[2873,94]]}}}],["attention》的讨论环节:teach",{"_index":1529,"t":{"274":{"position":[[923,23]]},"492":{"position":[[923,23]]}}}],["attention之后,通过residu",{"_index":1500,"t":{"270":{"position":[[67,22]]},"488":{"position":[[67,22]]}}}],["attention可以看作是复杂化的cnn,cnn只能在感受野范围内考虑上下文信息,而self",{"_index":2028,"t":{"383":{"position":[[5,47]]}}}],["attention和mask",{"_index":1553,"t":{"282":{"position":[[15,16]]},"500":{"position":[[15,16]]}}}],["attention应运而生,允许每个位置关注到序列中地所有其他位置。这种全局关联性质使得transform",{"_index":1920,"t":{"372":{"position":[[474,71]]}}}],["attention接受任意向量数量的向量序列的输入,输出每一个向量所有向量(包括自身)的注意力分数。这使得self",{"_index":1933,"t":{"375":{"position":[[343,57]]}}}],["attention的计算中应用一个掩码(mask",{"_index":1531,"t":{"274":{"position":[[1111,80]]},"492":{"position":[[1111,80]]}}}],["attention的输入是向量序列,其向量数量是任意的,计算每个输入向量之间的注意力分数。在本例中输入向量个数为3,同时为了统一性分析,计输入向量个数为batchbatchbatch",{"_index":1935,"t":{"379":{"position":[[11,93]]}}}],["attention的输入是时间步sss之前decod",{"_index":1536,"t":{"274":{"position":[[1372,43]]},"492":{"position":[[1372,43]]}}}],["attention的输出向量维度与valu",{"_index":1991,"t":{"379":{"position":[[2318,48]]}}}],["attention,则对每个输入向量生成对应的key,query和value后,再次使用nnn个可学习的权重矩阵生成nnn个不同的key0,...,keyn−1key^{0",{"_index":2020,"t":{"381":{"position":[[41,88]]}}}],["at)以及non",{"_index":1507,"t":{"272":{"position":[[56,8]]},"490":{"position":[[56,8]]}}}],["audio",{"_index":2696,"t":{"533":{"position":[[322,5]]}}}],["augment",{"_index":2226,"t":{"422":{"position":[[157,12]]},"521":{"position":[[778,12]]}}}],["augustu",{"_index":2607,"t":{"521":{"position":[[250,8]]}}}],["auto",{"_index":1279,"t":{"202":{"position":[[571,4]]},"351":{"position":[[19,4]]},"630":{"position":[[1012,5]]}}}],["autoregressive(非自回归,abbr",{"_index":1508,"t":{"272":{"position":[[65,25]]},"490":{"position":[[65,25]]}}}],["averag",{"_index":2284,"t":{"435":{"position":[[294,8]]}}}],["avoid",{"_index":2009,"t":{"379":{"position":[[2771,5]]}}}],["a→b→ca\\to",{"_index":2569,"t":{"512":{"position":[[0,42]]}}}],["a∈vn",{"_index":1012,"t":{"131":{"position":[[109,5],[222,6]]}}}],["a与另一个list",{"_index":505,"t":{"86":{"position":[[629,16]]}}}],["a中与范围b",{"_index":377,"t":{"82":{"position":[[271,23]]}}}],["a中所有值为x",{"_index":512,"t":{"86":{"position":[[956,13]]}}}],["a中查找第一个与范围b",{"_index":386,"t":{"82":{"position":[[490,23]]}}}],["a中的所有元素替换成n个val",{"_index":514,"t":{"86":{"position":[[990,18]]}}}],["a中第一个与范围b",{"_index":379,"t":{"82":{"position":[[309,26]]}}}],["a为(3,4,5)的三维数据,b为(4,5)的二维数组。由于a和b的后缘维度都为(4,5),所以可以进行广播。同理,当a为(3,4)的二维数组,b为(4,)的数组,他们的后缘维度都是4",{"_index":2760,"t":{"589":{"position":[[31,109]]}}}],["a变成b",{"_index":517,"t":{"86":{"position":[[1038,7]]}}}],["a是a班4位同学3科成绩,b是这4名同学其他3门课的成绩,拼接后代表这4名同学的6",{"_index":2476,"t":{"470":{"position":[[325,47]]}}}],["a班4位同学,每位同学3",{"_index":2467,"t":{"470":{"position":[[123,15]]}}}],["a而言,假设有一组互斥且穷尽的条件事件b,则事件a的概率等于事件a",{"_index":2891,"t":{"633":{"position":[[194,65]]},"686":{"position":[[194,65]]}}}],["a,若存在方阵b使得ab=ba=单位方阵i,则方阵b为方阵a的逆矩阵,记为a−1a",{"_index":2902,"t":{"637":{"position":[[69,52]]},"684":{"position":[[69,52]]}}}],["b",{"_index":33,"t":{"19":{"position":[[94,2],[122,3],[136,2]]},"31":{"position":[[271,2]]},"72":{"position":[[125,2]]},"105":{"position":[[89,2],[99,3],[111,3]]},"107":{"position":[[91,2],[101,3],[113,3]]},"109":{"position":[[1601,1],[2780,1],[2787,2],[2892,2]]},"244":{"position":[[0,26]]},"259":{"position":[[893,2]]},"428":{"position":[[48,2]]},"430":{"position":[[69,2],[250,2]]},"456":{"position":[[574,1],[628,1],[632,1]]},"470":{"position":[[139,1],[198,3],[312,3],[516,1],[1067,1],[1106,2],[1248,1],[1300,2]]},"508":{"position":[[79,1]]},"593":{"position":[[124,4],[287,4],[496,4]]},"633":{"position":[[550,1],[613,1],[664,1]]},"686":{"position":[[550,1],[613,1],[664,1]]}}}],["b)=\\frac{p(a,b)}{p(b)}p(a∣b)=p(b)p(a,b",{"_index":2525,"t":{"508":{"position":[[135,40]]}}}],["b)\\cdot",{"_index":2573,"t":{"512":{"position":[[145,7]]}}}],["b)p(a∣b",{"_index":2523,"t":{"508":{"position":[[63,15]]}}}],["b)p(b,c∣a)=p(b∣a)⋅p(c∣b",{"_index":2576,"t":{"512":{"position":[[276,24]]}}}],["b){return",{"_index":321,"t":{"69":{"position":[[79,9]]}}}],["b)}{\\partial",{"_index":2253,"t":{"430":{"position":[[319,12]]}}}],["b,a",{"_index":867,"t":{"109":{"position":[[2736,3]]}}}],["b,c,h,w][b",{"_index":2968,"t":{"662":{"position":[[0,23],[117,29]]},"664":{"position":[[0,17]]},"666":{"position":[[0,17]]}}}],["b,d",{"_index":868,"t":{"109":{"position":[[2740,3]]}}}],["b.end",{"_index":516,"t":{"86":{"position":[[1029,8]]}}}],["b<0",{"_index":830,"t":{"109":{"position":[[1638,4]]}}}],["b[i],e[i](0<=b[i]<=e[i]<=200000",{"_index":27,"t":{"17":{"position":[[103,56]]}}}],["b\\to",{"_index":2570,"t":{"512":{"position":[[43,4]]}}}],["b_i)\\cdot",{"_index":2531,"t":{"508":{"position":[[437,9],[700,9]]}}}],["b_i)p(a∣bi",{"_index":2542,"t":{"508":{"position":[[844,16]]}}}],["b_t)}{\\partial",{"_index":2259,"t":{"430":{"position":[[481,14]]}}}],["b_{n}b1​,b2​,…bn​构成一个完备事件组,则事件aaa的概率等于事件aaa在每个条件事件bib_ibi",{"_index":2529,"t":{"508":{"position":[[309,79]]}}}],["background",{"_index":2739,"t":{"548":{"position":[[213,11]]}}}],["bao",{"_index":2641,"t":{"521":{"position":[[718,3]]}}}],["bar{\\alpha}_{t}}\\boldsymbol{\\epsilon},t)\\right\\|^{2}\\tag{1}∇θ​∥∥​ϵ−ϵθ​(αˉt​​x0​+1−αˉt​​ϵ,t)∥∥​2(1",{"_index":1298,"t":{"204":{"position":[[345,99]]}}}],["bar{\\alpha}_{t}}}\\boldsymbol{\\epsilon}_{\\theta}(\\mathbf{x}_{t},t)\\right)+\\sigma_{t}\\mathbf{z}\\tag{2}xt−1​=αt​​1​(xt​−1−αˉt​​1−αt​​ϵθ​(xt​,t))+σt​z(2",{"_index":1314,"t":{"206":{"position":[[333,150]]}}}],["base",{"_index":771,"t":{"109":{"position":[[45,4],[58,4]]},"395":{"position":[[1171,5]]}}}],["based的文字生成模型有很多,如gpt模型,大多使用自回归(autoregress",{"_index":1787,"t":{"335":{"position":[[12,46]]}}}],["baselin",{"_index":2618,"t":{"521":{"position":[[441,8]]}}}],["bash的配置文件:~/.bashrc",{"_index":2859,"t":{"610":{"position":[[55,19]]}}}],["basic",{"_index":2271,"t":{"433":{"position":[[108,5]]}}}],["batch",{"_index":2380,"t":{"442":{"position":[[1910,6],[2224,6],[2265,5],[2312,6]]}}}],["batch)(batch,batch",{"_index":1968,"t":{"379":{"position":[[1449,20]]}}}],["batch_siz",{"_index":1674,"t":{"318":{"position":[[93,12],[161,12]]},"322":{"position":[[965,10],[1020,10],[1505,10],[1560,10]]},"442":{"position":[[2639,10]]},"567":{"position":[[93,12],[161,12]]},"571":{"position":[[962,10],[1017,10],[1502,10],[1557,10]]},"595":{"position":[[192,11]]}}}],["batch_size,比如torch.nn.linear的输入(batch_size,in_features),torch.nn.conv2d的输入(batch_s",{"_index":2804,"t":{"595":{"position":[[44,119]]}}}],["batchbatchbatch个向量计算得到的注意力分数,都要与其对应的value向量相乘,计算加权的注意力分数。最终的注意力分数矩阵的形状应为(batch,num)(batch",{"_index":1980,"t":{"379":{"position":[[1831,100]]}}}],["batch中有大量样本均存在这种情况,此时acc有显著提升而网络的权重的更新极小,此时,与acc有关的loss",{"_index":2462,"t":{"467":{"position":[[489,129]]}}}],["batteri",{"_index":2837,"t":{"604":{"position":[[201,7]]}}}],["bbb",{"_index":2243,"t":{"428":{"position":[[181,10]]},"456":{"position":[[178,38]]}}}],["bbox与其他所有置信度更小的bbox做iou判断,若iou大于设置的阈值,则抹除置信度小的bbox",{"_index":2952,"t":{"654":{"position":[[619,59]]}}}],["bbox包含(x",{"_index":2942,"t":{"654":{"position":[[289,11]]}}}],["bbox的置信度与其父grid",{"_index":2951,"t":{"654":{"position":[[547,17]]}}}],["bbox都会在loss",{"_index":2954,"t":{"654":{"position":[[737,19]]}}}],["be",{"_index":1083,"t":{"188":{"position":[[330,5]]},"435":{"position":[[209,5]]}}}],["becom",{"_index":2008,"t":{"379":{"position":[[2706,7]]}}}],["befor",{"_index":1954,"t":{"379":{"position":[[647,6]]}}}],["beg,end]内所有字符作为字符串",{"_index":536,"t":{"88":{"position":[[649,26]]}}}],["begin",{"_index":42,"t":{"19":{"position":[[303,6],[337,7],[357,6],[406,6]]},"274":{"position":[[221,8]]},"492":{"position":[[221,8]]}}}],["begin(),end",{"_index":553,"t":{"88":{"position":[[1135,13]]}}}],["begin[i]+1",{"_index":30,"t":{"17":{"position":[[288,37]]}}}],["begin[i],end[i](0<=begin[i]<=end[i]<=200000",{"_index":28,"t":{"17":{"position":[[189,66]]}}}],["begin{cas",{"_index":2110,"t":{"405":{"position":[[24,13],[160,13]]}}}],["begin符号又叫start符号或sos符号(start",{"_index":1519,"t":{"274":{"position":[[520,28]]},"492":{"position":[[520,28]]}}}],["begin符号是在lexicon中添加的特殊符号,用来表示decoder生成的开始。begin符号通常被嵌入到一个低维的连续向量空间中,这个向量空间是通过嵌入层(embed",{"_index":1517,"t":{"274":{"position":[[394,90]]},"492":{"position":[[394,90]]}}}],["behind",{"_index":2273,"t":{"433":{"position":[[119,6]]}}}],["below",{"_index":2700,"t":{"533":{"position":[[397,6]]}}}],["benchmark",{"_index":2047,"t":{"395":{"position":[[86,10],[215,9],[541,40]]}}}],["benchmark:fid与clip",{"_index":1827,"t":{"345":{"position":[[0,37]]}}}],["bert",{"_index":2029,"t":{"389":{"position":[[0,18]]},"391":{"position":[[194,4],[237,4],[281,4],[349,4]]},"395":{"position":[[0,11],[936,86]]},"397":{"position":[[317,4],[374,4],[490,7],[586,7]]}}}],["bert也可以用来完成截取式问答任务,提供一篇文章以及问题,要求输出两个integ",{"_index":2082,"t":{"395":{"position":[[1197,66]]}}}],["bert在大规模语料库(corpus)上预训练后,输出的向量表示了对应输入token的意思,特别地,是考虑了上下文信息的意思。比如,对于水果的苹果已经苹果公司的苹果,bert对一样的苹果有不同的输出。即对一个处在不同上下文信息中的相同词汇,bert有不同的embedding。类似于word",{"_index":2086,"t":{"397":{"position":[[0,145]]}}}],["bert模型的核心就是通过预训练来学习上下文信息,进而对每个输入token生成相应的向量表示。这个向量表示考虑了上下文信息,所以对于处在不同上下文中的相同词汇,bert会有不同的embed",{"_index":2088,"t":{"397":{"position":[[202,99]]}}}],["bert模型的自监督性质主要体现在其训练数据并不需要人为标注label,而是通过对输入句子中的部分词汇做mask,将输入数据的部分内容使用speci",{"_index":2036,"t":{"393":{"position":[[15,76]]}}}],["bert的损失函数主要是mask",{"_index":2039,"t":{"393":{"position":[[174,18]]}}}],["bert的结构其实是transformer的encoder部分,仅使用encod",{"_index":2030,"t":{"391":{"position":[[0,49]]}}}],["bert(bidirect",{"_index":2031,"t":{"391":{"position":[[50,18]]}}}],["best",{"_index":1759,"t":{"322":{"position":[[1709,4]]},"571":{"position":[[1706,4]]}}}],["beta",{"_index":1006,"t":{"129":{"position":[[43,5],[82,16]]},"131":{"position":[[183,5]]}}}],["beta,\\spac",{"_index":1005,"t":{"129":{"position":[[30,12]]},"131":{"position":[[147,12]]}}}],["better",{"_index":2842,"t":{"604":{"position":[[310,6]]}}}],["between",{"_index":2005,"t":{"379":{"position":[[2636,7]]}}}],["bfs(int",{"_index":662,"t":{"105":{"position":[[727,7]]},"112":{"position":[[1078,7]]},"114":{"position":[[780,7]]}}}],["bfs(rt",{"_index":958,"t":{"112":{"position":[[2002,8]]},"114":{"position":[[1617,8]]}}}],["bhpf",{"_index":1437,"t":{"239":{"position":[[197,16]]}}}],["bib_ibi​)推“果”(结果事件aaa",{"_index":2533,"t":{"508":{"position":[[480,80]]}}}],["big",{"_index":2251,"t":{"430":{"position":[[291,5]]},"602":{"position":[[101,3]]}}}],["big(l(w",{"_index":2250,"t":{"430":{"position":[[240,9]]}}}],["bilinear",{"_index":1395,"t":{"226":{"position":[[8,16]]}}}],["binary_search",{"_index":431,"t":{"82":{"position":[[1908,13]]}}}],["bit",{"_index":197,"t":{"58":{"position":[[152,4]]}}}],["bitbit",{"_index":620,"t":{"102":{"position":[[65,6],[101,6]]}}}],["bits/stdc++.h",{"_index":3,"t":{"4":{"position":[[9,15]]},"19":{"position":[[9,15]]},"25":{"position":[[9,15]]},"630":{"position":[[49,15]]}}}],["bitset",{"_index":94,"t":{"29":{"position":[[311,9]]},"58":{"position":[[145,6]]},"102":{"position":[[0,10],[26,13]]}}}],["bitset<10000",{"_index":154,"t":{"49":{"position":[[11,13]]}}}],["bitset>n>>m",{"_index":717,"t":{"107":{"position":[[1086,10]]}}}],["cin>>row",{"_index":330,"t":{"74":{"position":[[29,9]]}}}],["cin>>row>>col",{"_index":336,"t":{"76":{"position":[[0,14]]}}}],["cin>>src>>dst",{"_index":721,"t":{"107":{"position":[[1140,14]]}}}],["ci×h×wc_i",{"_index":2202,"t":{"415":{"position":[[0,12]]}}}],["class",{"_index":2304,"t":{"442":{"position":[[276,5],[418,5]]}}}],["classifi",{"_index":2442,"t":{"456":{"position":[[656,10]]},"531":{"position":[[0,8]]}}}],["clear",{"_index":541,"t":{"88":{"position":[[781,7]]}}}],["clip",{"_index":1652,"t":{"314":{"position":[[588,4],[680,4]]},"320":{"position":[[1019,4]]},"345":{"position":[[912,4],[924,4],[1000,9]]},"526":{"position":[[639,4],[885,4]]},"563":{"position":[[588,4],[680,4]]},"569":{"position":[[1019,4]]}}}],["clip_directional_loss",{"_index":1716,"t":{"320":{"position":[[1033,34]]},"569":{"position":[[1033,34]]},"581":{"position":[[338,21]]}}}],["clip_model.token_embedding(source_tokenized_prompts).type(clip_model.dtyp",{"_index":1659,"t":{"314":{"position":[[872,75]]},"563":{"position":[[872,75]]}}}],["clip_model.token_embedding(target_tokenized_prompts).type(clip_model.dtyp",{"_index":1663,"t":{"314":{"position":[[1024,75]]},"563":{"position":[[1024,75]]}}}],["clock",{"_index":2843,"t":{"604":{"position":[[324,5]]}}}],["closure(t)\\epsilon",{"_index":1027,"t":{"137":{"position":[[321,22]]}}}],["closure(t)ϵ−closure(t",{"_index":1028,"t":{"137":{"position":[[345,22]]}}}],["cloud",{"_index":1622,"t":{"308":{"position":[[39,5]]},"557":{"position":[[39,5]]}}}],["cnn",{"_index":1917,"t":{"372":{"position":[[0,21],[22,77]]}}}],["cnn中没有全连接层时,本质上可以接受任意尺寸的输入,但这是狭隘的。若考虑其下游任务以及输出,如fcn(fulli",{"_index":1911,"t":{"370":{"position":[[124,68]]}}}],["cnn本质上可以接受任意通道数的图像输入,但是其模型效果将会受到极大的影响。以一个使用通道数为3的数据集进行训练的cnn",{"_index":1914,"t":{"370":{"position":[[278,83]]}}}],["cnn模型的输入向量的形状是固定的,其输出向量的形状也是固定的或可以根据不同的下游任务而唯一确定,即输入形状与下游任务共同确定了一个cnn",{"_index":1910,"t":{"370":{"position":[[0,84]]}}}],["cnn的权值共享使得模型能够学习到图像中的局部特征,这也是一种对于上下文的假设。相邻位置上的权重共享使得模型能够对局部结构进行建模,这种权重共享使得cnn",{"_index":1918,"t":{"372":{"position":[[106,175]]}}}],["cnn的设计理念认为:在图像任务中,局部结构通常更为重要,局部连接和权值共享使得cnn更适用于图像处理等任务。但也正是这种设计理念,使得cnn在面临长输入序列时不能很好地综合上下文信息、提取位置信息,因此self",{"_index":1919,"t":{"372":{"position":[[367,106]]}}}],["cnt",{"_index":879,"t":{"109":{"position":[[2811,4],[2985,6]]}}}],["cntd0​d(u,v)≤d0​​(19",{"_index":1436,"t":{"239":{"position":[[110,58]]}}}],["d_1",{"_index":1431,"t":{"237":{"position":[[1162,5]]}}}],["d_1}&d_0\\leq",{"_index":1429,"t":{"237":{"position":[[1138,12]]}}}],["d_1}&d_1\\leq",{"_index":1446,"t":{"239":{"position":[[655,12]]}}}],["d_1}{d_0",{"_index":1428,"t":{"237":{"position":[[1129,8]]},"239":{"position":[[646,8]]}}}],["d_{kl}(p\\space",{"_index":2175,"t":{"410":{"position":[[1238,14]]}}}],["d_{kl}(q",{"_index":2157,"t":{"410":{"position":[[761,8]]}}}],["data",{"_index":551,"t":{"88":{"position":[[1097,6]]},"109":{"position":[[522,5]]},"422":{"position":[[145,11]]},"521":{"position":[[773,4]]},"533":{"position":[[238,4],[453,4],[496,5],[502,4]]}}}],["data_dir",{"_index":2690,"t":{"533":{"position":[[212,9]]}}}],["data_it",{"_index":2333,"t":{"442":{"position":[[927,10],[1100,10]]}}}],["dataset",{"_index":2275,"t":{"433":{"position":[[166,7]]},"533":{"position":[[13,7],[174,7],[370,7]]}}}],["daveho@cs.umd.edu",{"_index":1203,"t":{"196":{"position":[[716,19]]}}}],["david",{"_index":1201,"t":{"196":{"position":[[697,5]]}}}],["ddpm",{"_index":2521,"t":{"505":{"position":[[109,8]]}}}],["ddpm论文中的原图来分析ddpm",{"_index":1291,"t":{"202":{"position":[[854,31]]}}}],["ddpm(denois",{"_index":1880,"t":{"357":{"position":[[137,15]]}}}],["de(p,q)=(x−s)2+(y−t)2(1)d_e(p,q)=\\sqrt{(x",{"_index":1347,"t":{"213":{"position":[[177,41]]}}}],["death",{"_index":1333,"t":{"208":{"position":[[203,6]]}}}],["deathless",{"_index":1332,"t":{"208":{"position":[[193,9]]}}}],["debug",{"_index":1162,"t":{"188":{"position":[[1941,9],[2036,9],[2058,7]]},"198":{"position":[[885,9],[980,9],[1002,7]]}}}],["decod",{"_index":1541,"t":{"278":{"position":[[27,7],[180,18],[251,7],[329,8],[416,7],[467,18],[562,7]]},"343":{"position":[[254,30]]},"347":{"position":[[762,8]]},"496":{"position":[[27,7],[180,18],[251,7],[329,8],[416,7],[467,18],[562,7]]}}}],["decoder在推理时是一个一个词汇产生的,在产生第iii个词汇时其后续的词汇是未知的,更不用说进行注意力分数的就算了,而在训练过程中使用teach",{"_index":1550,"t":{"280":{"position":[[215,82]]},"498":{"position":[[215,82]]}}}],["decoder来说,它的输入是中间产物(即gener",{"_index":1860,"t":{"347":{"position":[[806,39]]}}}],["decoder每一步的输出是一个经过softmax的prob",{"_index":1514,"t":{"274":{"position":[[119,37]]},"492":{"position":[[119,37]]}}}],["decoder的任务是生成输出,可以根据是否一次性生成输出分为autoregressive(自回归,abbr",{"_index":1506,"t":{"272":{"position":[[0,55]]},"490":{"position":[[0,55]]}}}],["decoder的整体结构,掩码多头自注意力的输入是添加位置编码之后的decod",{"_index":1530,"t":{"274":{"position":[[988,68]]},"492":{"position":[[988,68]]}}}],["decoder的生成中,每一个时间步的输出是词汇表中每一个单词经过softmax之后的概率分布。为了保证生成任务可以通过模型自己停止而不是一直重复,我们向decoder的输出中加入end符号的生成,即每一次输出除了词汇表的所有词汇外还有end符号的概率,当end",{"_index":1522,"t":{"274":{"position":[[610,155]]},"492":{"position":[[610,155]]}}}],["decoder的结构训练生成模型的decod",{"_index":1867,"t":{"347":{"position":[[1134,25]]}}}],["decoder结构,将每一层对应的featur",{"_index":2919,"t":{"647":{"position":[[28,24]]}}}],["decoder试图在一次操作中生成整个输出序列。这通常通过使用诸如注意力机制等策略来实现,这些策略允许解码器关注输入序列的不同部分,同时生成输出序列的不同部分。nat的优点在于其高效性,因为它不需要保存和更新大量的可能选项。然而,由于它不能利用上下文信息来生成输出,因此其生成的输出质量普遍会低于at",{"_index":1511,"t":{"272":{"position":[[252,158]]},"490":{"position":[[252,158]]}}}],["decoder输出,使用3x3卷积以及双线性插值上采样到原始分辨率得到该层的特征图,且卷积核的个数为1,输出的featur",{"_index":2914,"t":{"645":{"position":[[212,62]]}}}],["decoder阶段,每个block",{"_index":2912,"t":{"645":{"position":[[79,32]]}}}],["decoder需要逐步生成输出,并将之前自身输出的所有词汇经过嵌入层后生成token",{"_index":1510,"t":{"272":{"position":[[101,150]]},"490":{"position":[[101,150]]}}}],["decoder)在每个时间步(或每个解码步骤)的输入都来自于前一个时间步自身的输出以及编码器(encoder)的输出。特别地,首个时间步的输入是begin符号以及编码器(encoder)的输出,在每个后续的时间步,解码器的输入会是前一个时间步自身的输出以及编码器(encod",{"_index":1516,"t":{"274":{"position":[[230,158]]},"492":{"position":[[230,158]]}}}],["decoder)都是通过最小化整体损失来进行联合训练的。这是因为整体模型需要协同工作,encod",{"_index":1542,"t":{"278":{"position":[[359,50]]},"496":{"position":[[359,50]]}}}],["deep",{"_index":1824,"t":{"343":{"position":[[873,4]]}}}],["def",{"_index":114,"t":{"35":{"position":[[89,6]]},"442":{"position":[[307,3],[364,3],[443,3],[855,3],[896,3],[1297,3],[1364,3],[1427,3]]}}}],["defin",{"_index":214,"t":{"62":{"position":[[11,7],[52,7],[100,7],[133,7],[206,7],[263,7],[301,7],[352,7],[373,7],[404,7],[437,7],[459,7],[477,7]]},"105":{"position":[[74,7]]},"107":{"position":[[76,7]]},"109":{"position":[[50,7],[63,7],[78,7],[94,7],[107,7],[123,7],[145,7],[210,7],[240,7],[265,7],[331,7]]},"112":{"position":[[40,7]]},"114":{"position":[[40,7]]},"116":{"position":[[40,7],[78,7],[119,7],[142,7]]},"379":{"position":[[107,6],[725,6],[3152,6]]}}}],["delta}^{\\delta}\\sum_{b",{"_index":2424,"t":{"451":{"position":[[131,24]]}}}],["delta}^{\\delta}{v_{a,b}*x_{i_a,j+b",{"_index":2425,"t":{"451":{"position":[[156,37]]}}}],["denoise模块的目标是预测出输入的噪声图片中的噪声,其资料可以通过对数据集中的图片不断加入从gaussian",{"_index":1883,"t":{"357":{"position":[[362,56]]}}}],["depend",{"_index":1262,"t":{"198":{"position":[[75,6]]}}}],["depend以及mak",{"_index":1079,"t":{"188":{"position":[[79,15]]}}}],["depend和mak",{"_index":1063,"t":{"178":{"position":[[346,14]]},"182":{"position":[[152,14]]}}}],["depth",{"_index":2925,"t":{"649":{"position":[[32,24]]}}}],["dequ",{"_index":85,"t":{"29":{"position":[[174,10]]},"58":{"position":[[57,5]]}}}],["dequed1(18)h(u,v)=\\begin{cases}1&d(u,v)w2(24)h(u,v)=\\begin{cases}1&d(u,v)d00d(u,v)≤d0(19)h(u,v)=\\begin{cases}1&d(u,v)>d_0",{"_index":1434,"t":{"239":{"position":[[30,66]]}}}],["h(u,v)={1d(u,v)>d0d(u,v)−d1d0−d1d1≤d(u,v)≤d00d(u,v)d_0",{"_index":1445,"t":{"239":{"position":[[537,92]]}}}],["h(u,v)={1d(u,v)≤d00d(u,v)>d0(14)h(u,v)=\\begin{cases}1&d(u,v)\\leq",{"_index":1410,"t":{"237":{"position":[[70,64]]}}}],["h(u,v)h(u,v)h(u,v)下降到最大值的0.707时的d(u,v)d(u,v)d(u,v",{"_index":1440,"t":{"239":{"position":[[345,68]]}}}],["h(u,v)h(u,v)h(u,v)下降到最大值的0.707时的d(u,v)d(u,v)d(u,v)作为截止频率d0d_0d0",{"_index":1418,"t":{"237":{"position":[[532,69]]}}}],["h(u,v)h(u,v)h(u,v)下降到最大值的1/2时的d(u,v)d(u,v)d(u,v",{"_index":1421,"t":{"237":{"position":[[728,62]]}}}],["h,t",{"_index":816,"t":{"109":{"position":[[1182,4]]}}}],["han",{"_index":2604,"t":{"521":{"position":[[220,8]]}}}],["happen",{"_index":1923,"t":{"375":{"position":[[74,7]]}}}],["hash",{"_index":360,"t":{"80":{"position":[[609,19],[646,19],[678,19],[715,19]]}}}],["head",{"_index":1498,"t":{"270":{"position":[[57,4]]},"274":{"position":[[790,4],[913,4],[968,4],[1362,4]]},"381":{"position":[[31,4]]},"488":{"position":[[57,4]]},"492":{"position":[[790,4],[913,4],[968,4],[1362,4]]}}}],["heap",{"_index":120,"t":{"39":{"position":[[30,5]]}}}],["heap.clear",{"_index":121,"t":{"39":{"position":[[36,13]]}}}],["heap.empti",{"_index":123,"t":{"39":{"position":[[63,13]]}}}],["heap.push",{"_index":125,"t":{"39":{"position":[[107,10]]}}}],["heap.siz",{"_index":122,"t":{"39":{"position":[[50,12]]}}}],["help",{"_index":2003,"t":{"379":{"position":[[2593,5]]}}}],["higher",{"_index":2132,"t":{"410":{"position":[[90,6],[132,6]]}}}],["highest",{"_index":1977,"t":{"379":{"position":[[1730,7],[4026,7]]}}}],["hinton提出的一种卷积神经网络模型,它主要应用于图像分类任务。在当时,alexnet的表现远远超过了其他参赛的网络模型,并且在imagenet",{"_index":2221,"t":{"418":{"position":[[55,83]]}}}],["hit",{"_index":1176,"t":{"196":{"position":[[114,3],[1326,3]]}}}],["hollings@cs.umd.edu",{"_index":1207,"t":{"196":{"position":[[783,21]]}}}],["hollingsworth",{"_index":1206,"t":{"196":{"position":[[769,13]]}}}],["honglak",{"_index":2609,"t":{"521":{"position":[[270,7]]}}}],["host",{"_index":1101,"t":{"188":{"position":[[735,4],[805,4]]}}}],["host_cc",{"_index":1112,"t":{"188":{"position":[[962,7]]}}}],["hovemey",{"_index":1202,"t":{"196":{"position":[[706,9]]}}}],["http://127.0.0.1:7890",{"_index":2301,"t":{"442":{"position":[[199,23]]}}}],["http_proxi",{"_index":2855,"t":{"608":{"position":[[244,10]]}}}],["http_proxy=http://127.0.0.1:7890",{"_index":2850,"t":{"608":{"position":[[100,32]]}}}],["https://127.0.0.1:7890",{"_index":2303,"t":{"442":{"position":[[251,24]]}}}],["https://blog.csdn.net/f_zyj/article/details/51594851",{"_index":341,"t":{"78":{"position":[[4,52]]}}}],["https://download.csdn.net/download/f_zyj/9988653",{"_index":342,"t":{"78":{"position":[[57,48]]}}}],["https://www.bilibili.com/video/bv12u411s7us/?spm_id_from=333.788&vd_source=24d8fcf68bc0e2b0003defe0995cf533",{"_index":1042,"t":{"163":{"position":[[284,107]]}}}],["https://www.bilibili.com/video/bv13r4y1m7sq/?spm_id_from=333.788&vd_source=24d8fcf68bc0e2b0003defe0995cf533",{"_index":1049,"t":{"163":{"position":[[732,107]]}}}],["https://www.bilibili.com/video/bv1pl4y1e7re/?spm_id_from=333.788&vd_source=24d8fcf68bc0e2b0003defe0995cf533",{"_index":1039,"t":{"163":{"position":[[121,107]]}}}],["https://www.bilibili.com/video/bv1vm4y1q7xb/?spm_id_from=333.788&vd_source=24d8fcf68bc0e2b0003defe0995cf533",{"_index":1045,"t":{"163":{"position":[[458,107]]}}}],["https://www.jianshu.com/p/41c15d301542",{"_index":2803,"t":{"595":{"position":[[5,38]]}}}],["https_proxi",{"_index":2856,"t":{"608":{"position":[[261,11]]}}}],["https_proxy=https://127.0.0.1:7890",{"_index":2851,"t":{"608":{"position":[[140,34]]}}}],["hung",{"_index":2640,"t":{"521":{"position":[[702,4]]}}}],["hw4",{"_index":2710,"t":{"535":{"position":[[53,4]]}}}],["hw×cihw",{"_index":2199,"t":{"413":{"position":[[51,15]]}}}],["hyperparamet",{"_index":2291,"t":{"437":{"position":[[80,14]]}}}],["hyperstyl",{"_index":1768,"t":{"325":{"position":[[16,10],[176,10]]},"574":{"position":[[16,10],[176,10]]}}}],["h′以及w′h'以及w'h′以及w",{"_index":2211,"t":{"415":{"position":[[177,24]]}}}],["i'll",{"_index":1322,"t":{"208":{"position":[[72,4],[124,4]]}}}],["i+1",{"_index":893,"t":{"109":{"position":[[3182,4]]}}}],["i,a,b",{"_index":814,"t":{"109":{"position":[[1144,6]]}}}],["i,j",{"_index":878,"t":{"109":{"position":[[2802,4]]}}}],["i,ji,ji,j代表输出神经元的二维索引坐标,h,wh,wh,w",{"_index":2413,"t":{"449":{"position":[[27,49]]}}}],["i/o",{"_index":188,"t":{"56":{"position":[[188,5]]}}}],["i440fxsupport",{"_index":1159,"t":{"188":{"position":[[1880,14]]},"198":{"position":[[824,14]]}}}],["i<0",{"_index":820,"t":{"109":{"position":[[1316,5],[1379,5]]}}}],["i<=k",{"_index":851,"t":{"109":{"position":[[2386,5]]}}}],["ir2",{"_index":977,"t":{"116":{"position":[[352,9]]}}}],["if(la>ra",{"_index":910,"t":{"112":{"position":[[365,9],[707,9]]},"114":{"position":[[266,9],[495,9]]}}}],["if(n==0||m==0",{"_index":758,"t":{"107":{"position":[[2300,15]]}}}],["if(num==n",{"_index":756,"t":{"107":{"position":[[2196,10]]}}}],["if(read_key(&keycod",{"_index":1180,"t":{"196":{"position":[[161,22],[1373,22]]}}}],["if(rt",{"_index":986,"t":{"116":{"position":[[560,7]]}}}],["if(rt==0",{"_index":926,"t":{"112":{"position":[[990,9],[1380,9],[1495,9],[1611,9]]},"114":{"position":[[700,9],[1061,9],[1168,9],[1276,9]]}}}],["if(t[w].l!=0",{"_index":931,"t":{"112":{"position":[[1195,13]]},"114":{"position":[[897,13]]}}}],["if(t[w].r!=0",{"_index":933,"t":{"112":{"position":[[1225,13]]},"114":{"position":[[927,13]]}}}],["if(topologicalsort",{"_index":764,"t":{"107":{"position":[[2423,22]]}}}],["ifm",{"_index":2743,"t":{"548":{"position":[[266,3],[300,3],[339,3],[379,3]]}}}],["ifndef",{"_index":770,"t":{"109":{"position":[[37,7]]}}}],["ihpf",{"_index":1433,"t":{"239":{"position":[[15,14]]}}}],["illustr",{"_index":1909,"t":{"367":{"position":[[9,12]]}}}],["ilpf",{"_index":1404,"t":{"237":{"position":[[18,14],[36,4]]}}}],["imag",{"_index":1718,"t":{"320":{"position":[[1104,5]]},"322":{"position":[[1628,5]]},"343":{"position":[[845,5]]},"345":{"position":[[977,5]]},"518":{"position":[[0,10],[202,5]]},"521":{"position":[[610,5]]},"569":{"position":[[1104,5]]},"571":{"position":[[1625,5]]},"579":{"position":[[267,5],[351,5],[498,5]]}}}],["imagenet",{"_index":1739,"t":{"322":{"position":[[913,8],[1231,10],[1268,8]]},"571":{"position":[[910,8],[1228,10],[1265,8]]}}}],["imagen将压缩版本的图片作为gener",{"_index":1806,"t":{"343":{"position":[[353,28]]}}}],["imagen的实验结果,相对于decoder即diffus",{"_index":1810,"t":{"343":{"position":[[447,34]]}}}],["image数据,在传入visdom时仍需要先转化为numpi",{"_index":2724,"t":{"544":{"position":[[355,35]]}}}],["impact",{"_index":1822,"t":{"343":{"position":[[791,9]]}}}],["import",{"_index":1817,"t":{"343":{"position":[[623,9]]},"379":{"position":[[3053,6],[3066,6],[3098,6],[3117,6]]},"403":{"position":[[269,6],[292,6]]},"405":{"position":[[258,6],[281,6]]},"410":{"position":[[1474,6]]},"442":{"position":[[0,6],[13,6],[43,6],[73,6],[105,6],[141,6],[162,6]]},"544":{"position":[[12,6]]},"546":{"position":[[12,6]]},"589":{"position":[[259,6],[278,6]]}}}],["improv",{"_index":1819,"t":{"343":{"position":[[702,8]]}}}],["in[maxn",{"_index":969,"t":{"116":{"position":[[255,9]]}}}],["incept",{"_index":1726,"t":{"322":{"position":[[17,9],[66,9],[554,9],[758,9],[826,9],[1116,9],[1213,9],[1242,9],[1406,9],[1642,9],[1763,9]]},"345":{"position":[[57,9]]},"571":{"position":[[17,9],[66,9],[552,9],[756,9],[824,9],[1113,9],[1210,9],[1239,9],[1403,9],[1639,9],[1760,9]]}}}],["includ",{"_index":2,"t":{"4":{"position":[[0,8]]},"19":{"position":[[0,8]]},"25":{"position":[[0,8]]},"47":{"position":[[0,8]]},"82":{"position":[[2062,8]]},"84":{"position":[[1443,8],[1463,8]]},"105":{"position":[[0,8],[20,8],[38,8]]},"107":{"position":[[0,8],[21,8],[41,8],[59,8]]},"196":{"position":[[1005,8],[1034,8],[1061,8],[1088,8],[1112,8],[1138,8],[1162,8],[1186,8],[1214,8],[1239,8],[1265,8]]},"630":{"position":[[40,8]]}}}],["include::iter",{"_index":577,"t":{"92":{"position":[[765,14]]}}}],["int[col",{"_index":340,"t":{"76":{"position":[[84,9]]}}}],["int[nrow",{"_index":332,"t":{"74":{"position":[[77,8]]}}}],["interact",{"_index":1928,"t":{"375":{"position":[[167,8],[303,12]]}}}],["introduction以及rel",{"_index":2759,"t":{"583":{"position":[[50,51]]}}}],["invers",{"_index":1776,"t":{"325":{"position":[[351,9]]},"574":{"position":[[351,9]]}}}],["ios::sync_with_stdio(fals",{"_index":51,"t":{"21":{"position":[[346,28]]}}}],["iostream",{"_index":485,"t":{"84":{"position":[[1452,10]]},"105":{"position":[[9,10]]},"107":{"position":[[30,10]]}}}],["ipl",{"_index":1597,"t":{"301":{"position":[[9,3],[27,3]]},"304":{"position":[[16,3],[46,3]]},"322":{"position":[[957,3],[1004,3],[1497,3],[1544,3]]},"328":{"position":[[226,3]]},"526":{"position":[[0,11]]},"550":{"position":[[9,3],[27,3]]},"553":{"position":[[16,3],[46,3]]},"571":{"position":[[954,3],[1001,3],[1494,3],[1541,3]]},"579":{"position":[[2,3],[788,3]]},"581":{"position":[[90,3],[365,3]]}}}],["ipl独立于生成模型,可以自由选择diffus",{"_index":2598,"t":{"518":{"position":[[286,64]]}}}],["is(g)=exp⁡(ex∼pgdkl(p(y∣x)∣∣p(y)))\\mathbf{is}(g)=\\exp\\left(\\mathbb{e}_{\\mathbf{x}\\sim",{"_index":1735,"t":{"322":{"position":[[579,85]]},"571":{"position":[[577,85]]}}}],["is_heap",{"_index":441,"t":{"82":{"position":[[2236,7]]}}}],["is_heap_untilc++11",{"_index":442,"t":{"82":{"position":[[2258,18]]}}}],["is_list",{"_index":734,"t":{"107":{"position":[[1508,10]]}}}],["is_partitionedc++11",{"_index":418,"t":{"82":{"position":[[1542,19]]}}}],["is_permutationc++11",{"_index":447,"t":{"82":{"position":[[2397,19]]}}}],["is_sorted_untilc++11",{"_index":425,"t":{"82":{"position":[[1749,20]]}}}],["is_sortedc++11",{"_index":424,"t":{"82":{"position":[[1722,14]]}}}],["is_tre",{"_index":738,"t":{"107":{"position":[[1656,10]]}}}],["isclos",{"_index":2736,"t":{"548":{"position":[[128,12]]}}}],["isdag",{"_index":300,"t":{"67":{"position":[[624,6],[660,6]]},"105":{"position":[[358,6],[394,6],[550,7]]},"107":{"position":[[499,6],[535,6],[746,7]]}}}],["isdag(1",{"_index":307,"t":{"67":{"position":[[741,8]]},"107":{"position":[[616,8]]}}}],["isdag(isdag",{"_index":304,"t":{"67":{"position":[[682,12]]},"105":{"position":[[416,12]]},"107":{"position":[[557,12]]}}}],["isinstance(net",{"_index":2335,"t":{"442":{"position":[[955,15]]}}}],["isinstance(train_lay",{"_index":1706,"t":{"320":{"position":[[347,24]]},"569":{"position":[[347,24]]}}}],["isinstance(x",{"_index":2341,"t":{"442":{"position":[[1114,13]]}}}],["it'",{"_index":2129,"t":{"410":{"position":[[62,4]]}}}],["item",{"_index":2798,"t":{"593":{"position":[[231,4],[440,4]]}}}],["iter",{"_index":193,"t":{"58":{"position":[[78,8]]},"82":{"position":[[835,22]]},"435":{"position":[[8,9],[272,9]]}}}],["iter_swap",{"_index":396,"t":{"82":{"position":[[825,9]]}}}],["it指向的元素前插入n个新元素val",{"_index":472,"t":{"84":{"position":[[729,22]]},"86":{"position":[[750,22]]}}}],["it指向的元素前插入新元素val",{"_index":471,"t":{"84":{"position":[[685,20]]},"86":{"position":[[706,20]]}}}],["iulian",{"_index":1209,"t":{"196":{"position":[[827,6]]}}}],["j",{"_index":164,"t":{"53":{"position":[[7,1],[111,1]]},"105":{"position":[[1989,1],[1996,1],[2011,4]]},"109":{"position":[[2924,1],[3086,2]]}}}],["j2\\pi",{"_index":1367,"t":{"219":{"position":[[351,5],[624,5],[1245,5]]}}}],["j\\frac{2\\pi",{"_index":1381,"t":{"219":{"position":[[946,11]]}}}],["jae",{"_index":2629,"t":{"521":{"position":[[559,3]]}}}],["jeffrey",{"_index":1205,"t":{"196":{"position":[[758,7]]}}}],["jingwan",{"_index":2624,"t":{"521":{"position":[[526,7]]}}}],["jinwoo",{"_index":2616,"t":{"521":{"position":[[393,6]]}}}],["k",{"_index":171,"t":{"53":{"position":[[161,2],[188,2]]},"109":{"position":[[2259,2]]},"196":{"position":[[766,2]]},"433":{"position":[[0,1],[126,1]]},"435":{"position":[[21,1]]}}}],["k+1",{"_index":862,"t":{"109":{"position":[[2615,5]]}}}],["k_h",{"_index":2206,"t":{"415":{"position":[[73,3]]}}}],["k_wco​×ci​×kh​×kw",{"_index":2207,"t":{"415":{"position":[[84,18]]}}}],["kaim",{"_index":1952,"t":{"379":{"position":[[591,7]]}}}],["kaiyang",{"_index":2656,"t":{"523":{"position":[[177,7]]}}}],["kernel",{"_index":1168,"t":{"188":{"position":[[2050,7]]},"196":{"position":[[1723,6],[1764,6],[2162,6]]},"198":{"position":[[994,7]]}}}],["kernel_size=5",{"_index":2318,"t":{"442":{"position":[[574,14],[673,15]]}}}],["kernel_thread",{"_index":1193,"t":{"196":{"position":[[542,13],[2224,13]]}}}],["key",{"_index":565,"t":{"92":{"position":[[63,4],[920,31]]},"196":{"position":[[2192,4]]},"379":{"position":[[748,5],[1071,5],[1096,4],[1188,5],[2570,3],[2654,3],[3332,5],[3635,5],[3660,4],[3752,5]]}}}],["key]操作是map很有特色的操作,如果在map中存在键值为key",{"_index":572,"t":{"92":{"position":[[371,39]]}}}],["key^{n",{"_index":2021,"t":{"381":{"position":[[135,6]]}}}],["key_ctrl_flag)==key_ctrl_flag",{"_index":1187,"t":{"196":{"position":[[317,29],[1529,29]]}}}],["key_release_flag",{"_index":1183,"t":{"196":{"position":[[234,21],[1446,21]]}}}],["key_special_flag",{"_index":1182,"t":{"196":{"position":[[202,17],[1414,17]]}}}],["keyboard_serial_delay",{"_index":1152,"t":{"188":{"position":[[1776,22]]},"198":{"position":[[720,22]]}}}],["keycod",{"_index":1178,"t":{"196":{"position":[[133,7],[141,8],[223,8],[284,7],[1345,7],[1353,8],[1435,8],[1496,7]]}}}],["keys.t",{"_index":1970,"t":{"379":{"position":[[1525,6],[3895,6]]}}}],["key的元素对,值域为默认值。所以可以用该操作向map",{"_index":573,"t":{"92":{"position":[[411,74]]}}}],["key部分作为标识,map中所有元素的key值必须是唯一的,multimap则允许有重复的key",{"_index":567,"t":{"92":{"position":[[90,50]]}}}],["key(当另一个元素是整形时,m[key]=0",{"_index":576,"t":{"92":{"position":[[694,58]]}}}],["key,query以及valu",{"_index":1934,"t":{"377":{"position":[[0,140]]},"379":{"position":[[1041,19]]}}}],["kh=kw=1k_h=k_w=1kh​=kw​=1",{"_index":2198,"t":{"413":{"position":[[0,50]]}}}],["kien",{"_index":2643,"t":{"521":{"position":[[736,4]]}}}],["kind",{"_index":795,"t":{"109":{"position":[[611,5],[1277,5]]}}}],["kkk",{"_index":2276,"t":{"433":{"position":[[179,3],[239,3]]},"435":{"position":[[57,3],[183,3]]}}}],["kl",{"_index":2148,"t":{"410":{"position":[[473,5],[479,15],[689,11]]},"510":{"position":[[599,10]]}}}],["knife",{"_index":1330,"t":{"208":{"position":[[172,6]]}}}],["kpple",{"_index":2823,"t":{"604":{"position":[[30,5]]}}}],["krizhevsky、ilya",{"_index":2219,"t":{"418":{"position":[[20,15]]}}}],["kruskal",{"_index":2863,"t":{"617":{"position":[[90,9]]}}}],["kullback–leibl",{"_index":2149,"t":{"410":{"position":[[495,16]]}}}],["k−1k",{"_index":2279,"t":{"435":{"position":[[112,4]]}}}],["k个变为v",{"_index":159,"t":{"49":{"position":[[152,7]]}}}],["k的结点是u(第k+1个是u",{"_index":849,"t":{"109":{"position":[[2336,21]]}}}],["l",{"_index":486,"t":{"84":{"position":[[1527,2]]},"170":{"position":[[84,1]]},"172":{"position":[[76,1]]},"231":{"position":[[208,1]]},"442":{"position":[[2035,1]]}}}],["l(w",{"_index":2234,"t":{"428":{"position":[[43,4]]},"430":{"position":[[314,4]]}}}],["l(w,b",{"_index":2231,"t":{"428":{"position":[[4,6],[124,6]]}}}],["l(w,b)+λ2∥w∥12(2)l(w",{"_index":2245,"t":{"430":{"position":[[47,21]]}}}],["l(w_t",{"_index":2258,"t":{"430":{"position":[[474,6]]}}}],["l(y,z)=max(0,−y∗z)(1)l(y,z)=max(0",{"_index":2433,"t":{"456":{"position":[[366,34]]}}}],["l,r",{"_index":899,"t":{"112":{"position":[[203,4]]},"114":{"position":[[203,4]]}}}],["l,r,d",{"_index":970,"t":{"116":{"position":[[283,6]]}}}],["l.backward",{"_index":2387,"t":{"442":{"position":[[2054,12]]}}}],["l.push_back(x",{"_index":488,"t":{"84":{"position":[[1555,15]]}}}],["l.size",{"_index":489,"t":{"84":{"position":[[1586,8]]}}}],["l1",{"_index":981,"t":{"116":{"position":[[433,3]]}}}],["l1,int",{"_index":972,"t":{"116":{"position":[[315,6]]}}}],["l1正则化(硬性限制)、l2",{"_index":2229,"t":{"426":{"position":[[200,35]]}}}],["l1正则化会使得一部分参数变为0,从而实现特征选择的效果;l2正则化则会使得模型参数尽量接近0",{"_index":2230,"t":{"426":{"position":[[236,93]]}}}],["l1正则化限制权重参数的l1",{"_index":2242,"t":{"428":{"position":[[154,26]]}}}],["l2",{"_index":1720,"t":{"320":{"position":[[1146,2],[1268,2]]},"569":{"position":[[1146,2],[1269,2]]}}}],["l2,int",{"_index":974,"t":{"116":{"position":[[329,6]]}}}],["l2正则化是指在模型的损失函数中,加入对模型参数的l2",{"_index":2244,"t":{"430":{"position":[[0,46]]}}}],["l2范数是对元素求平方和后再开根号,需要.pow(2",{"_index":2118,"t":{"408":{"position":[[0,36]]}}}],["l=−1n∑i=1nyilog⁡(pi)(1)l",{"_index":2041,"t":{"393":{"position":[[270,25]]}}}],["l[i",{"_index":490,"t":{"84":{"position":[[1623,4]]}}}],["la",{"_index":916,"t":{"112":{"position":[[477,3],[820,3]]},"114":{"position":[[346,3],[575,3]]}}}],["la,int",{"_index":902,"t":{"112":{"position":[[253,6],[651,6]]},"114":{"position":[[239,6],[468,6]]}}}],["la,ra",{"_index":906,"t":{"112":{"position":[[281,12],[679,12]]}}}],["label",{"_index":2190,"t":{"410":{"position":[[1632,5],[1678,6],[1815,5],[1864,6]]}}}],["lalr(1",{"_index":1047,"t":{"163":{"position":[[620,10]]}}}],["lambda",{"_index":2248,"t":{"430":{"position":[[137,23],[337,7],[556,7]]}}}],["lambda)w_t",{"_index":2257,"t":{"430":{"position":[[440,11]]}}}],["lambda_l",{"_index":1694,"t":{"318":{"position":[[1209,9]]},"567":{"position":[[1210,9]]}}}],["lambda_src",{"_index":1695,"t":{"318":{"position":[[1255,10]]},"567":{"position":[[1256,10]]}}}],["landmark",{"_index":1781,"t":{"325":{"position":[[533,8]]},"574":{"position":[[533,8]]}}}],["languag",{"_index":1825,"t":{"343":{"position":[[878,8]]},"345":{"position":[[968,8]]},"393":{"position":[[193,8]]},"395":{"position":[[116,8],[392,8]]}}}],["lantent",{"_index":2658,"t":{"526":{"position":[[34,19]]}}}],["laplac",{"_index":1465,"t":{"257":{"position":[[187,10]]},"259":{"position":[[339,22],[381,51]]}}}],["larg",{"_index":2007,"t":{"379":{"position":[[2673,5],[2718,5]]}}}],["last",{"_index":462,"t":{"84":{"position":[[370,6],[422,10],[772,5],[876,7],[914,5],[1168,5],[1225,16]]},"86":{"position":[[144,5],[793,5],[897,7],[935,5]]}}}],["last)插入到迭代器it",{"_index":474,"t":{"84":{"position":[[810,20]]},"86":{"position":[[831,20]]}}}],["last),[first",{"_index":483,"t":{"84":{"position":[[1211,13]]}}}],["latent",{"_index":1577,"t":{"293":{"position":[[122,35]]},"318":{"position":[[256,9]]},"325":{"position":[[75,6],[457,6],[618,6]]},"343":{"position":[[220,17]]},"347":{"position":[[456,11],[484,11],[1048,11],[1076,12]]},"502":{"position":[[30,6]]},"526":{"position":[[12,13],[223,11],[380,11],[587,12]]},"567":{"position":[[256,9]]},"574":{"position":[[75,6],[457,6],[618,6]]}}}],["later",{"_index":1096,"t":{"188":{"position":[[668,5]]}}}],["latest",{"_index":1141,"t":{"188":{"position":[[1563,6],[1636,6]]},"198":{"position":[[507,6],[580,6]]}}}],["layer",{"_index":1518,"t":{"274":{"position":[[485,34]]},"318":{"position":[[582,6]]},"320":{"position":[[325,5]]},"492":{"position":[[485,34]]},"567":{"position":[[583,6]]},"569":{"position":[[325,5]]}}}],["layers.append",{"_index":1685,"t":{"318":{"position":[[628,14]]},"567":{"position":[[629,14]]}}}],["layman’",{"_index":1924,"t":{"375":{"position":[[101,8]]}}}],["lb,int",{"_index":904,"t":{"112":{"position":[[267,6],[665,6]]},"114":{"position":[[253,6],[482,6]]}}}],["lb,rb",{"_index":907,"t":{"112":{"position":[[294,12],[692,12]]}}}],["ld",{"_index":1115,"t":{"188":{"position":[[1003,2]]}}}],["learn",{"_index":2268,"t":{"433":{"position":[[55,8]]},"523":{"position":[[138,18],[242,47]]},"526":{"position":[[546,8]]},"531":{"position":[[40,5]]},"581":{"position":[[312,8]]}}}],["learning(ipl)方法来解决风格迁移任务中生成模型从源域到目标域的适应问题。一个lat",{"_index":2590,"t":{"518":{"position":[[27,50]]}}}],["lecun等人于1998年提出的卷积神经网络结构,该结构由卷积层、池化层和全连接层组成,可以高效地处理手写数字图像,并在mnist",{"_index":2294,"t":{"440":{"position":[[12,78]]}}}],["lee",{"_index":2610,"t":{"521":{"position":[[278,4],[563,4]]}}}],["legend=[\"curve_name_1",{"_index":2727,"t":{"546":{"position":[[110,23]]}}}],["legend=['train",{"_index":2370,"t":{"442":{"position":[[1736,14]]}}}],["len",{"_index":2884,"t":{"630":{"position":[[828,3],[949,3]]}}}],["len(train_it",{"_index":2375,"t":{"442":{"position":[[1818,15]]}}}],["len==1,则la==ra",{"_index":908,"t":{"112":{"position":[[312,41]]}}}],["len=v.siz",{"_index":935,"t":{"112":{"position":[[1261,13]]},"114":{"position":[[963,13]]}}}],["lenet",{"_index":2295,"t":{"440":{"position":[[91,5]]},"442":{"position":[[2745,5]]}}}],["lenet5",{"_index":2409,"t":{"442":{"position":[[2753,8]]}}}],["lenet5(nn.modul",{"_index":2312,"t":{"442":{"position":[[424,18]]}}}],["lenetreshap",{"_index":2316,"t":{"442":{"position":[[526,15]]}}}],["lenetreshape(nn.modul",{"_index":2305,"t":{"442":{"position":[[282,24]]}}}],["lenet是由yann",{"_index":2293,"t":{"440":{"position":[[0,11]]}}}],["length",{"_index":2695,"t":{"533":{"position":[[312,6]]}}}],["leq",{"_index":2238,"t":{"428":{"position":[[101,4]]}}}],["less",{"_index":2134,"t":{"410":{"position":[[111,4]]}}}],["lexicographical_compar",{"_index":448,"t":{"82":{"position":[[2437,23]]}}}],["lg=−ez∼pz(z)[log⁡d(g(z))](4)l_g",{"_index":1593,"t":{"299":{"position":[[800,32]]}}}],["lgorithm",{"_index":368,"t":{"82":{"position":[[0,12]]}}}],["lgpl",{"_index":1140,"t":{"188":{"position":[[1558,4]]},"198":{"position":[[502,4]]}}}],["li",{"_index":1326,"t":{"208":{"position":[[118,5]]},"521":{"position":[[522,3]]}}}],["life",{"_index":1337,"t":{"208":{"position":[[239,5]]}}}],["lighter",{"_index":2746,"t":{"548":{"position":[[284,9],[318,8]]}}}],["lightest",{"_index":2748,"t":{"548":{"position":[[357,9],[397,9]]}}}],["limits.h",{"_index":180,"t":{"56":{"position":[[78,8]]}}}],["line",{"_index":1136,"t":{"188":{"position":[[1479,5]]},"198":{"position":[[423,5]]}}}],["linear",{"_index":2740,"t":{"548":{"position":[[235,6]]}}}],["linguist",{"_index":2065,"t":{"395":{"position":[[597,10]]}}}],["linker",{"_index":1113,"t":{"188":{"position":[[991,7]]}}}],["linux",{"_index":1108,"t":{"188":{"position":[[881,5]]}}}],["linux操作系统后需要安装bochs以及nasm",{"_index":1066,"t":{"180":{"position":[[39,30]]}}}],["linux自带的编译环境以及编译命令对特定的geeko",{"_index":1067,"t":{"182":{"position":[[47,30]]}}}],["list",{"_index":195,"t":{"58":{"position":[[110,4]]},"86":{"position":[[0,8],[9,23],[198,10]]},"320":{"position":[[372,6]]},"442":{"position":[[1128,6]]},"470":{"position":[[526,16]]},"569":{"position":[[372,6]]},"695":{"position":[[316,4]]}}}],["list.end",{"_index":70,"t":{"27":{"position":[[58,12],[138,13]]}}}],["list1",{"_index":2793,"t":{"593":{"position":[[92,5]]}}}],["list2",{"_index":2794,"t":{"593":{"position":[[110,5],[202,6]]}}}],["list3",{"_index":2795,"t":{"593":{"position":[[134,5],[209,6]]}}}],["lista(first",{"_index":496,"t":{"86":{"position":[[126,17]]}}}],["lista(n",{"_index":492,"t":{"86":{"position":[[51,13],[87,13]]}}}],["lista{1,2,3",{"_index":491,"t":{"86":{"position":[[33,17]]}}}],["list和tensor",{"_index":2479,"t":{"470":{"position":[[409,17]]}}}],["list和vector",{"_index":348,"t":{"80":{"position":[[228,45]]}}}],["list或deque实现,封闭头部即可,不用vector",{"_index":350,"t":{"80":{"position":[[282,51],[342,51]]}}}],["list的*乘法是复制元素,改变list的shap",{"_index":2480,"t":{"470":{"position":[[427,26]]}}}],["ll",{"_index":229,"t":{"62":{"position":[[360,2],[547,2],[633,2],[667,2]]},"112":{"position":[[118,3]]},"114":{"position":[[118,3]]},"116":{"position":[[204,3]]}}}],["lll",{"_index":1401,"t":{"231":{"position":[[243,17]]}}}],["locale.h",{"_index":181,"t":{"56":{"position":[[92,8]]}}}],["locatevex_al(*pg",{"_index":828,"t":{"109":{"position":[[1579,17],[1605,17]]}}}],["locatevex_al(algraph",{"_index":810,"t":{"109":{"position":[[917,20]]}}}],["locatevex_al(g",{"_index":882,"t":{"109":{"position":[[2899,15],[2928,15]]}}}],["log",{"_index":1150,"t":{"188":{"position":[[1757,4]]},"198":{"position":[[701,4]]}}}],["log2(1pi)(7)\\begin{align",{"_index":2140,"t":{"410":{"position":[[286,25]]}}}],["log2(pi)=∑inpi",{"_index":2139,"t":{"410":{"position":[[271,14]]}}}],["log2(pi)−log2(qi)](9)d_{kl}(p",{"_index":2162,"t":{"410":{"position":[[842,30]]}}}],["log2(qi)(10)\\begin{align",{"_index":2174,"t":{"410":{"position":[[1187,25]]}}}],["log2​(pi​)=i∑n​pi",{"_index":2146,"t":{"410":{"position":[[437,18]]}}}],["log2​(pi​)−log2​(qi​)](9",{"_index":2166,"t":{"410":{"position":[[959,26]]}}}],["log2​(pi​1​)​(7",{"_index":2147,"t":{"410":{"position":[[456,16]]}}}],["log2​(qi​)​(10",{"_index":2180,"t":{"410":{"position":[[1357,15]]}}}],["log_2(p_i",{"_index":2164,"t":{"410":{"position":[[910,11]]}}}],["log_2(q_i)]}\\tag{9}dkl​(p",{"_index":2165,"t":{"410":{"position":[[922,25]]}}}],["logist",{"_index":2446,"t":{"461":{"position":[[0,8]]}}}],["long",{"_index":230,"t":{"62":{"position":[[363,4],[368,4],[394,4],[399,4]]},"102":{"position":[[1010,4]]},"112":{"position":[[108,4],[113,4]]},"114":{"position":[[108,4],[113,4]]},"116":{"position":[[194,4],[199,4]]},"624":{"position":[[3,17],[21,32]]}}}],["loss",{"_index":1715,"t":{"320":{"position":[[1024,4]]},"399":{"position":[[139,10]]},"442":{"position":[[1623,4],[1751,6]]},"526":{"position":[[890,39]]},"544":{"position":[[280,8]]},"569":{"position":[[1024,4]]},"647":{"position":[[129,4]]},"670":{"position":[[6,43],[87,14]]}}}],["loss(y_hat",{"_index":2386,"t":{"442":{"position":[[2039,11]]}}}],["loss.to(devic",{"_index":2366,"t":{"442":{"position":[[1658,15]]}}}],["lossdiscriminator=lossreal+lossfake(3)loss_{discriminator}=loss_{real}+loss_{fake}\\tag{3}lossdiscriminator​=lossreal​+lossfake​(3",{"_index":1592,"t":{"299":{"position":[[532,130]]}}}],["lossfake=−ez∼pz(z)[log(1−d(g(z)))](2)loss_{fak",{"_index":1587,"t":{"299":{"position":[[332,49]]}}}],["lossmse=∑[y−f(x)]2(5)loss_{ms",{"_index":2119,"t":{"408":{"position":[[57,31]]}}}],["lossreal=−ex∼pdata(x)[log⁡d(x)](1)loss_{r",{"_index":1582,"t":{"299":{"position":[[160,46]]}}}],["loss得到6",{"_index":2922,"t":{"647":{"position":[[74,11]]}}}],["loss来训练目标域生成器,使源于生成器向目标域迁移学习。需要输入源域以及目标域图像、源域以及目标域的prompt描述。源域图像的lat",{"_index":2671,"t":{"526":{"position":[[644,71]]}}}],["loss的输入来约束从源域中学习到的prompt",{"_index":2666,"t":{"526":{"position":[[346,33]]}}}],["loss的输入,约束学习到的prompt",{"_index":2670,"t":{"526":{"position":[[555,31]]}}}],["loss,使目标域的imag",{"_index":2758,"t":{"581":{"position":[[24,15]]}}}],["lot",{"_index":1165,"t":{"188":{"position":[[1992,3]]},"198":{"position":[[936,3]]}}}],["low",{"_index":1407,"t":{"237":{"position":[[53,3]]}}}],["lower_bound",{"_index":433,"t":{"82":{"position":[[1975,11]]}}}],["lr",{"_index":1035,"t":{"158":{"position":[[29,9]]},"442":{"position":[[1414,3],[2720,3],[2810,3]]}}}],["lr(0",{"_index":1038,"t":{"163":{"position":[[98,8]]},"168":{"position":[[138,6],[159,13]]}}}],["lr(1",{"_index":1044,"t":{"163":{"position":[[435,8]]},"168":{"position":[[153,5]]}}}],["lr=lr",{"_index":2364,"t":{"442":{"position":[[1616,6]]}}}],["lr_mul=lr_mlp",{"_index":1688,"t":{"318":{"position":[[678,14]]},"567":{"position":[[679,14]]}}}],["lu",{"_index":2625,"t":{"521":{"position":[[534,3]]},"639":{"position":[[676,57]]},"684":{"position":[[804,57]]}}}],["m",{"_index":494,"t":{"86":{"position":[[101,2]]},"92":{"position":[[323,2]]},"188":{"position":[[1086,1]]},"542":{"position":[[52,1]]}}}],["m.clear",{"_index":584,"t":{"92":{"position":[[1053,10]]}}}],["m.empti",{"_index":583,"t":{"92":{"position":[[1032,10]]}}}],["m.erase(it",{"_index":581,"t":{"92":{"position":[[952,12]]}}}],["m.erase(key",{"_index":580,"t":{"92":{"position":[[903,13]]}}}],["m.find(key",{"_index":578,"t":{"92":{"position":[[785,12]]}}}],["m.insert(make_pair(key",{"_index":574,"t":{"92":{"position":[[486,23]]}}}],["m.size",{"_index":582,"t":{"92":{"position":[[1012,9]]}}}],["m32",{"_index":1100,"t":{"188":{"position":[[729,3],[978,3]]}}}],["m[key",{"_index":570,"t":{"92":{"position":[[352,6],[683,7]]}}}],["machin",{"_index":2267,"t":{"433":{"position":[[47,7]]}}}],["main",{"_index":8,"t":{"4":{"position":[[50,6]]},"19":{"position":[[50,6]]},"25":{"position":[[50,6]]},"84":{"position":[[1506,6]]},"105":{"position":[[1733,6]]},"107":{"position":[[2284,7]]},"109":{"position":[[2708,6]]},"112":{"position":[[1704,6]]},"114":{"position":[[1369,6]]},"116":{"position":[[658,6]]},"196":{"position":[[503,31]]},"630":{"position":[[769,6]]}}}],["main(struct",{"_index":1237,"t":{"196":{"position":[[1838,11]]}}}],["make",{"_index":1062,"t":{"178":{"position":[[338,7]]},"182":{"position":[[144,7]]},"188":{"position":[[147,19]]},"198":{"position":[[70,4],[82,4]]},"379":{"position":[[2602,6]]}}}],["make_heap",{"_index":443,"t":{"82":{"position":[[2296,9]]}}}],["malloc(sizeof(arcnod",{"_index":831,"t":{"109":{"position":[[1670,26]]}}}],["man",{"_index":2645,"t":{"521":{"position":[[758,3]]}}}],["map",{"_index":87,"t":{"29":{"position":[[190,4]]},"47":{"position":[[9,5]]},"58":{"position":[[99,3]]},"92":{"position":[[0,7],[223,68],[292,13],[326,9],[339,9]]},"318":{"position":[[470,12],[560,10]]},"322":{"position":[[1844,3]]},"359":{"position":[[82,3]]},"365":{"position":[[43,21]]},"567":{"position":[[470,12],[561,10]]},"571":{"position":[[1841,3]]}}}],["map、<=、>=、==、!=,其规则是先比较first,first相等时再比较second",{"_index":562,"t":{"90":{"position":[[246,110]]}}}],["pair也能进行sort",{"_index":112,"t":{"33":{"position":[[81,12]]}}}],["pair对象外,如果需要即时生成一个pair对象,也可以调用在其中定义的一个模版函数:make_pair。make_pair",{"_index":563,"t":{"90":{"position":[[357,92]]}}}],["pair模版类需要两个参数:首元素的数据类型和尾元素的数据类型。pair模版类对象有两个成员:first和second",{"_index":561,"t":{"90":{"position":[[173,72]]}}}],["paper",{"_index":1760,"t":{"322":{"position":[[1714,5]]},"571":{"position":[[1711,5]]}}}],["paragraph",{"_index":1995,"t":{"379":{"position":[[2452,10]]}}}],["paramet",{"_index":2288,"t":{"437":{"position":[[37,9]]},"531":{"position":[[87,10]]}}}],["paraphras",{"_index":2069,"t":{"395":{"position":[[677,10]]}}}],["partial_sort",{"_index":427,"t":{"82":{"position":[[1822,12]]}}}],["partial_sort_copi",{"_index":428,"t":{"82":{"position":[[1840,17]]}}}],["partit",{"_index":420,"t":{"82":{"position":[[1590,9]]},"433":{"position":[[183,11]]}}}],["partition_copyc++11",{"_index":421,"t":{"82":{"position":[[1611,19]]}}}],["partition_pointc++11",{"_index":422,"t":{"82":{"position":[[1643,20]]}}}],["pass",{"_index":1408,"t":{"237":{"position":[[57,4]]}}}],["path",{"_index":852,"t":{"109":{"position":[[2397,11]]},"533":{"position":[[226,4],[273,4]]}}}],["path/terminal_proxy.sh",{"_index":2860,"t":{"610":{"position":[[96,23]]}}}],["path[k]=0",{"_index":864,"t":{"109":{"position":[[2691,10]]}}}],["path[k]=u",{"_index":848,"t":{"109":{"position":[[2317,10]]}}}],["path[max_vertex_num",{"_index":841,"t":{"109":{"position":[[2162,21]]}}}],["pathnum",{"_index":856,"t":{"109":{"position":[[2483,10]]}}}],["pathnum=0",{"_index":842,"t":{"109":{"position":[[2193,10],[3006,10]]}}}],["pathnum==0",{"_index":888,"t":{"109":{"position":[[3096,12]]}}}],["paths[i",{"_index":894,"t":{"109":{"position":[[3187,10]]}}}],["paths[maxsize][max_vertex_num",{"_index":840,"t":{"109":{"position":[[2119,31]]}}}],["paths[pathnum][i",{"_index":853,"t":{"109":{"position":[[2409,17]]}}}],["paths[pathnum][i]='\\0",{"_index":855,"t":{"109":{"position":[[2453,23]]}}}],["pay",{"_index":1931,"t":{"375":{"position":[[230,3]]}}}],["pc",{"_index":1054,"t":{"178":{"position":[[102,7]]}}}],["pe(k,2i)\\\\pe(pos+k,2i+1)=pe(pos,2i+1)\\tim",{"_index":1486,"t":{"268":{"position":[[836,43]]},"486":{"position":[[836,43]]}}}],["pe(k,2i)\\end{array",{"_index":1489,"t":{"268":{"position":[[908,19]]},"486":{"position":[[908,19]]}}}],["pe(k,2i+1",{"_index":1487,"t":{"268":{"position":[[880,10]]},"486":{"position":[[880,10]]}}}],["pe(k,2i+1)+pe(pos,2i+1)\\tim",{"_index":1485,"t":{"268":{"position":[[806,29]]},"486":{"position":[[806,29]]}}}],["pe(pos+k,2i)=pe(pos,2i)×pe(k,2i+1)+pe(pos,2i+1)×pe(k,2i)pe(pos+k,2i+1)=pe(pos,2i+1)×pe(k,2i+1)−pe(pos,2i)×pe(k,2i)(3)\\begin{array}{l}pe(pos+k,2i)=pe(pos,2i)\\tim",{"_index":1484,"t":{"268":{"position":[[643,162]]},"486":{"position":[[643,162]]}}}],["pe(pos,2i)=sin(pos100002i/dmodel)(1)pe_{(pos,2i)}=sin(\\frac{pos}{10000^{2i/d_{\\mathrm{model",{"_index":1479,"t":{"268":{"position":[[212,96]]},"486":{"position":[[212,96]]}}}],["pe(pos,2i)\\tim",{"_index":1488,"t":{"268":{"position":[[891,16]]},"486":{"position":[[891,16]]}}}],["pe(pos,2i+1)=cos(pos100002i/dmodel)(2)pe_{(pos,2i+1)}=cos(\\frac{pos}{10000^{2i/d_{\\mathrm{model",{"_index":1481,"t":{"268":{"position":[[356,100]]},"486":{"position":[[356,100]]}}}],["penalti",{"_index":2228,"t":{"426":{"position":[[151,48]]}}}],["perform",{"_index":2270,"t":{"433":{"position":[[80,11]]},"435":{"position":[[354,12]]}}}],["permit",{"_index":1215,"t":{"196":{"position":[[918,9]]}}}],["perspect",{"_index":1290,"t":{"202":{"position":[[841,12]]}}}],["pg",{"_index":802,"t":{"109":{"position":[[759,4],[779,2],[795,2],[844,2],[1087,4],[1274,2],[1336,2],[1399,2],[1470,2],[1748,3],[1790,2],[1872,2]]}}}],["photo",{"_index":1627,"t":{"312":{"position":[[44,5],[225,16],[244,5],[255,18]]},"314":{"position":[[139,5],[150,5],[414,5]]},"316":{"position":[[72,5],[94,5]]},"561":{"position":[[44,5],[225,16],[244,5],[255,18]]},"563":{"position":[[139,5],[150,5],[414,5]]},"565":{"position":[[72,5],[94,5]]},"579":{"position":[[59,5]]}}}],["photo.’或‘a",{"_index":1666,"t":{"316":{"position":[[83,10]]},"565":{"position":[[83,10]]}}}],["photorealist",{"_index":1823,"t":{"343":{"position":[[822,14]]}}}],["pi",{"_index":234,"t":{"62":{"position":[[445,2]]}}}],["pii",{"_index":233,"t":{"62":{"position":[[412,3]]}}}],["pip",{"_index":1613,"t":{"306":{"position":[[124,3],[158,3]]},"539":{"position":[[0,3]]},"555":{"position":[[124,3],[158,3]]}}}],["pip_{i}pi",{"_index":2044,"t":{"393":{"position":[[404,23]]}}}],["piscart",{"_index":2584,"t":{"516":{"position":[[30,10]]}}}],["pixelnorm",{"_index":1683,"t":{"318":{"position":[[591,13]]},"567":{"position":[[592,13]]}}}],["plasmpkg2",{"_index":2844,"t":{"604":{"position":[[336,9]]}}}],["platform",{"_index":1104,"t":{"188":{"position":[[810,9],[841,9]]}}}],["pleas",{"_index":1983,"t":{"379":{"position":[[2017,6],[4176,6]]}}}],["plot",{"_index":2019,"t":{"379":{"position":[[3145,4]]}}}],["plt",{"_index":2299,"t":{"442":{"position":[[158,3]]}}}],["plt.show",{"_index":2405,"t":{"442":{"position":[[2628,10]]}}}],["po",{"_index":637,"t":{"102":{"position":[[487,4],[511,3],[692,3],[725,3],[794,3],[932,3]]}}}],["point",{"_index":1198,"t":{"196":{"position":[[660,5],[1743,6]]}}}],["polynomi",{"_index":2900,"t":{"633":{"position":[[752,10]]},"686":{"position":[[752,10]]}}}],["pop",{"_index":81,"t":{"29":{"position":[[98,5],[139,5],[168,5]]},"105":{"position":[[1650,4]]}}}],["pop_heap",{"_index":444,"t":{"82":{"position":[[2318,8]]}}}],["pos+kpos+kpos+k位置的嵌入向量的某一维度(2i2i2i或2i+12i+12i+1)而言,可以表示为pospospos位置与kkk位置的嵌入向量的2i2i2i与2i+12i+12i+1",{"_index":1483,"t":{"268":{"position":[[506,136]]},"486":{"position":[[506,136]]}}}],["pospospos指的是该词汇在整个输入句子中的位置,2i2i2i以及2i+12i+12i+1指的是该词汇的嵌入向量中的维度,dmodeld_{model}dmodel​指的是在嵌入层之后嵌入向量的总维度。即对于每个输入词汇,都要计算dmodeld_{model}dmodel",{"_index":1478,"t":{"268":{"position":[[57,154]]},"486":{"position":[[57,154]]}}}],["postt(int",{"_index":947,"t":{"112":{"position":[[1595,9]]},"114":{"position":[[1260,9]]},"116":{"position":[[544,9]]}}}],["postt(rt",{"_index":961,"t":{"112":{"position":[[2056,10]]},"114":{"position":[[1642,10]]},"116":{"position":[[806,10]]}}}],["postt(t[rt].l",{"_index":948,"t":{"112":{"position":[[1629,15]]},"114":{"position":[[1294,15]]},"116":{"position":[[585,15]]}}}],["postt(t[rt].r",{"_index":949,"t":{"112":{"position":[[1645,15]]},"114":{"position":[[1310,15]]},"116":{"position":[[601,15]]}}}],["pos处的二进制位置为0",{"_index":650,"t":{"102":{"position":[[863,14]]}}}],["pp_arr",{"_index":331,"t":{"74":{"position":[[63,7]]}}}],["ppp的坐标为(x,y)(x",{"_index":1345,"t":{"213":{"position":[[118,19]]}}}],["practic",{"_index":2675,"t":{"529":{"position":[[44,8]]}}}],["pre",{"_index":976,"t":{"116":{"position":[[346,3]]},"345":{"position":[[983,3]]},"395":{"position":[[1023,6]]}}}],["pre[maxn",{"_index":968,"t":{"116":{"position":[[244,10]]}}}],["pre_stylegan",{"_index":1623,"t":{"308":{"position":[[54,14]]},"557":{"position":[[54,14]]}}}],["precis",{"_index":2592,"t":{"518":{"position":[[150,7]]}}}],["predic",{"_index":419,"t":{"82":{"position":[[1562,27]]}}}],["predict",{"_index":2045,"t":{"393":{"position":[[442,11]]},"410":{"position":[[1533,7],[1580,7],[1768,7]]}}}],["predictor",{"_index":1271,"t":{"202":{"position":[[185,46]]},"204":{"position":[[185,10]]},"347":{"position":[[245,10]]},"357":{"position":[[568,14]]}}}],["predictor中。从随机分布中sample出的噪声就是nois",{"_index":1856,"t":{"347":{"position":[[703,34]]}}}],["predictor中,而需要预测出的噪声分布的ground",{"_index":1850,"t":{"347":{"position":[[407,29]]}}}],["predictor对噪声denois",{"_index":1879,"t":{"357":{"position":[[107,29]]}}}],["predictor的ground",{"_index":1857,"t":{"347":{"position":[[738,16]]}}}],["predictor预测出的噪声,αˉ1,αˉ2,...αˉt\\bar{\\alpha}_1,\\bar{\\alpha}_2,...\\bar{\\alpha}_tαˉ1​,αˉ2​,...αˉt​以及α1,α2,...αt\\alpha_1,\\alpha_2,...\\alpha_tα1​,α2​,...αt",{"_index":1317,"t":{"206":{"position":[[592,158]]}}}],["predictor,其输入是加入噪声的图像以及sample出的ttt,而ϵθ\\epsilon_\\thetaϵθ​训练的ground",{"_index":1302,"t":{"204":{"position":[[717,65]]}}}],["predictor,根据文字prompt对从随机分布中sampl",{"_index":1277,"t":{"202":{"position":[[490,54]]}}}],["predictor;在生成图片时,输入从该随机分布中sample出的向量,使用训练出的nois",{"_index":1878,"t":{"357":{"position":[[58,48]]}}}],["predit",{"_index":1751,"t":{"322":{"position":[[1306,9]]},"571":{"position":[[1303,9]]}}}],["preprocess",{"_index":2684,"t":{"533":{"position":[[88,10],[161,12]]}}}],["press",{"_index":1257,"t":{"196":{"position":[[2184,7]]}}}],["pret(int",{"_index":939,"t":{"112":{"position":[[1365,8]]},"114":{"position":[[1046,8]]}}}],["pret(rt",{"_index":959,"t":{"112":{"position":[[2022,9]]},"114":{"position":[[1629,9]]}}}],["pret(t[rt].l",{"_index":942,"t":{"112":{"position":[[1435,14]]},"114":{"position":[[1116,14]]}}}],["pret(t[rt].r",{"_index":943,"t":{"112":{"position":[[1450,14]]},"114":{"position":[[1131,14]]}}}],["pretrain",{"_index":2033,"t":{"391":{"position":[[208,28]]}}}],["prev_permut",{"_index":456,"t":{"82":{"position":[[2667,16]]}}}],["prewitt",{"_index":1464,"t":{"257":{"position":[[116,10]]}}}],["prim",{"_index":2864,"t":{"617":{"position":[[100,6]]}}}],["primari",{"_index":2745,"t":{"548":{"position":[[276,7],[310,7],[349,7],[389,7]]}}}],["print",{"_index":1258,"t":{"196":{"position":[[2201,5]]}}}],["print(\"%c\",(asciicode=='\\r",{"_index":1192,"t":{"196":{"position":[[443,28],[1658,28]]}}}],["print(\"\\n",{"_index":1189,"t":{"196":{"position":[[376,9],[1588,9]]}}}],["print(\"argmax",{"_index":2499,"t":{"470":{"position":[[871,13]]}}}],["print(\"attent",{"_index":1971,"t":{"379":{"position":[[1532,16],[1748,16],[3902,16],[4044,16]]}}}],["print(\"keys:\\n",{"_index":1963,"t":{"379":{"position":[[1171,16],[3735,16]]}}}],["print(\"queries:\\n",{"_index":1964,"t":{"379":{"position":[[1203,19],[3767,19]]}}}],["print(\"to",{"_index":1174,"t":{"196":{"position":[[99,9],[1311,9]]}}}],["print(\"values:\\n",{"_index":1965,"t":{"379":{"position":[[1241,18],[3805,18]]}}}],["print(\"weight",{"_index":1989,"t":{"379":{"position":[[2120,15],[4279,15]]}}}],["print(\"welcom",{"_index":1252,"t":{"196":{"position":[[2075,14]]}}}],["print(a",{"_index":2483,"t":{"470":{"position":[[543,7]]}}}],["print(b",{"_index":2485,"t":{"470":{"position":[[581,7]]}}}],["print(c.shap",{"_index":2472,"t":{"470":{"position":[[252,14]]}}}],["print(d.shap",{"_index":2477,"t":{"470":{"position":[[373,14]]}}}],["print(f'loss",{"_index":2397,"t":{"442":{"position":[[2464,12]]}}}],["print(f'{metric[2",{"_index":2401,"t":{"442":{"position":[[2545,18]]}}}],["print(i",{"_index":2506,"t":{"470":{"position":[[1121,8],[1315,8]]}}}],["print(item",{"_index":2799,"t":{"593":{"position":[[253,11],[464,11]]}}}],["print(output",{"_index":2770,"t":{"589":{"position":[[619,13]]}}}],["print(x",{"_index":2764,"t":{"589":{"position":[[372,8]]}}}],["print(x1",{"_index":2766,"t":{"589":{"position":[[412,9]]}}}],["print(x2",{"_index":2769,"t":{"589":{"position":[[527,9]]}}}],["printf(\"%c",{"_index":782,"t":{"109":{"position":[[312,12]]}}}],["printf(\"%d%c\",v[i],i==len",{"_index":937,"t":{"112":{"position":[[1298,25]]},"114":{"position":[[1000,25]]}}}],["printf(\"%d\\n",{"_index":44,"t":{"19":{"position":[[430,14]]}}}],["printf(\"%d\\n\",t[rt].d",{"_index":989,"t":{"116":{"position":[[628,23]]}}}],["printf(\"7.28",{"_index":887,"t":{"109":{"position":[[3017,12]]}}}],["printf(\"\\t",{"_index":889,"t":{"109":{"position":[[3111,10]]}}}],["printf(\"\\t%d",{"_index":891,"t":{"109":{"position":[[3162,12]]}}}],["printf(first?first=0,\"%d",{"_index":940,"t":{"112":{"position":[[1398,27],[1528,27],[1661,27]]},"114":{"position":[[1079,27],[1201,27],[1326,27]]}}}],["priority_queue,greater的元素对序列。序列中的元素以const",{"_index":566,"t":{"92":{"position":[[68,21]]}}}],["t[maxn",{"_index":900,"t":{"112":{"position":[[208,9]]},"114":{"position":[[208,9]]},"116":{"position":[[290,9]]}}}],["t[rt].d=pre[rt",{"_index":982,"t":{"116":{"position":[[437,16]]}}}],["t[rt].l=create(l1,p1",{"_index":983,"t":{"116":{"position":[[454,20]]}}}],["t[rt].l=mid_po_build(la,p1",{"_index":922,"t":{"112":{"position":[[824,26]]},"114":{"position":[[579,26]]}}}],["t[rt].l=mid_pr_build(la,p1",{"_index":917,"t":{"112":{"position":[[481,26]]},"114":{"position":[[350,26]]}}}],["t[rt].r=create(p1+1,r1,l2+p2+1,r2",{"_index":985,"t":{"116":{"position":[[490,35]]}}}],["t[rt].r=mid_po_build(p1+1,ra,lb+p2,rb",{"_index":924,"t":{"112":{"position":[[885,37]]},"114":{"position":[[621,37]]}}}],["t[rt].r=mid_pr_build(p1+1,ra,lb+p2+1,rb",{"_index":919,"t":{"112":{"position":[[542,41]]},"114":{"position":[[392,41]]}}}],["t\\vert",{"_index":1352,"t":{"213":{"position":[[325,6]]}}}],["t\\vert)\\tag{3}d8​(p,q)=max(∣x−s∣,∣y−t∣)(3",{"_index":1356,"t":{"213":{"position":[[431,42]]}}}],["tag{10",{"_index":2177,"t":{"410":{"position":[[1304,8]]}}}],["tag{1}",{"_index":1002,"t":{"127":{"position":[[144,12]]}}}],["tag{1}3×3×3×4=108(1",{"_index":1899,"t":{"361":{"position":[[168,21]]}}}],["tag{1}acc=len(y)∑i(predi​==yi​)​(1",{"_index":2454,"t":{"467":{"position":[[196,36]]}}}],["tag{1}attention(q,k,v)=softmax(dk​​qkt​)v(1",{"_index":2012,"t":{"379":{"position":[[2968,45]]}}}],["tag{1}l(y,z)=max(0,−y∗z)(1",{"_index":2435,"t":{"456":{"position":[[406,28]]}}}],["tag{1}min",{"_index":2240,"t":{"428":{"position":[[113,10]]}}}],["tag{1}pe(pos,2i)​=sin(100002i/dmodel​pos​)(1",{"_index":1480,"t":{"268":{"position":[[309,46]]},"486":{"position":[[309,46]]}}}],["tag{1}shapeoutput​=strideshapeinput​−sizekernel​+2∗padding​+1(1",{"_index":2215,"t":{"415":{"position":[[328,65]]}}}],["tag{1}x1[0,:,:]+x2[0,:,:](1",{"_index":2778,"t":{"589":{"position":[[894,29]]}}}],["tag{1}yi,j​=h,w∑​wi,j,h,w​∗xh,w​(1",{"_index":2415,"t":{"449":{"position":[[142,36]]}}}],["tag{1}σ(x)=1+e−x1​(1",{"_index":2095,"t":{"403":{"position":[[47,22]]}}}],["tag{2}",{"_index":1007,"t":{"129":{"position":[[59,12]]}}}],["tag{2}3×3××3=27(2",{"_index":1903,"t":{"363":{"position":[[100,19]]}}}],["tag{2}d4​(p,q)=∣x−s∣+∣y−t∣(2",{"_index":1353,"t":{"213":{"position":[[332,30]]}}}],["tag{2}dxd",{"_index":2101,"t":{"403":{"position":[[145,14]]}}}],["tag{2}l(w,b)+2λ​∥w∥12​(2",{"_index":2247,"t":{"430":{"position":[[110,26]]}}}],["tag{2}pe(pos,2i+1)​=cos(100002i/dmodel​pos​)(2",{"_index":1482,"t":{"268":{"position":[[457,48]]},"486":{"position":[[457,48]]}}}],["tag{2}x1[1,:,:]+x2[1,:,:](2",{"_index":2781,"t":{"589":{"position":[[972,29]]}}}],["tag{2}yi,j​=h,w∑​wi,j,h,w​∗xh,w​=a,b∑​vi,j,a,b​∗xi+a,j+b​(2",{"_index":2418,"t":{"449":{"position":[[364,61]]}}}],["tag{3}1×1×3×4=12(3",{"_index":1908,"t":{"365":{"position":[[112,20]]}}}],["tag{3}a",{"_index":1015,"t":{"131":{"position":[[210,11]]}}}],["tag{3}f(x)={0x​x<0x≥0​(3",{"_index":2113,"t":{"405":{"position":[[77,26]]}}}],["tag{3}pe(pos+k,2i)=pe(pos,2i)×pe(k,2i+1)+pe(pos,2i+1)×pe(k,2i)pe(pos+k,2i+1)=pe(pos,2i+1)×pe(k,2i+1)−pe(pos,2i)×pe(k,2i)​(3",{"_index":1490,"t":{"268":{"position":[[928,125]]},"486":{"position":[[928,125]]}}}],["tag{3}x1[2,:,:]+x2[2,:,:](3",{"_index":2784,"t":{"589":{"position":[[1050,29]]}}}],["tag{3}yi,j​=a,b∑​vi,j,a,b​∗xi+a,j+b​=a,b∑​va,b​∗xi+a,j+b​(3",{"_index":2421,"t":{"449":{"position":[[636,61]]}}}],["tag{3}∂w∂​(l(w,b)+2λ​∥w∥12​)=∂w∂l(w,b)​+λw(3",{"_index":2254,"t":{"430":{"position":[[347,46]]}}}],["tag{4}dxdf(x)​={01​x<0x≥0​(4",{"_index":2116,"t":{"405":{"position":[[213,30]]}}}],["tag{4}inputembedding(pos,i)=wordembedding(pos,i)+positionencoding(pos,i)(4",{"_index":1494,"t":{"268":{"position":[[1234,76]]},"486":{"position":[[1234,76]]}}}],["tag{4}wt+1​=(1−ηλ)wt​+η∂wt​∂l(wt​,bt​)​(4",{"_index":2261,"t":{"430":{"position":[[501,43]]}}}],["tag{4}yi,j​=a,b∑​va,b​∗xi+a,j+b​=a=−δ∑δ​b=−δ∑δ​va,b​∗xia​,j+b​(4",{"_index":2426,"t":{"451":{"position":[[194,66]]}}}],["tag{5}lossmse​=∑[y−f(x)]2(5",{"_index":2122,"t":{"408":{"position":[[112,29]]}}}],["tag{5}shapeoutput​=strideshapeinput​−sizekernel​+2∗padding​+1(5",{"_index":2428,"t":{"451":{"position":[[398,65]]}}}],["tag{6}[o1​o2​​]=[α1,1′​α1,2′​​α2,1′​α2,2′​​][v1​v2​​](6",{"_index":1560,"t":{"282":{"position":[[732,57]]},"500":{"position":[[732,57]]}}}],["tag{6}∥y−f(x)∥2​=2∑[y−f(x)]2​(6",{"_index":2127,"t":{"408":{"position":[[220,33]]}}}],["tag{7",{"_index":2144,"t":{"410":{"position":[[403,7]]}}}],["tag{7}[o1​o2​​]=[α1,1′​α1,2′​​0α2,2′​​][v1​v2​​](7",{"_index":1562,"t":{"282":{"position":[[1026,52]]},"500":{"position":[[1026,52]]}}}],["take",{"_index":1320,"t":{"208":{"position":[[53,4]]},"375":{"position":[[24,5]]}}}],["target",{"_index":1092,"t":{"188":{"position":[[635,6],[828,6],[938,6],[984,6]]},"518":{"position":[[227,6]]}}}],["target_cc",{"_index":1098,"t":{"188":{"position":[[692,9]]}}}],["target_cc_prefix)gcc",{"_index":1099,"t":{"188":{"position":[[705,22]]}}}],["target_cc_prefix)ld",{"_index":1120,"t":{"188":{"position":[[1063,21]]}}}],["target_direct",{"_index":1722,"t":{"320":{"position":[[1160,16]]},"569":{"position":[[1160,16]]}}}],["target_direction:mapp",{"_index":1723,"t":{"320":{"position":[[1185,23]]},"569":{"position":[[1186,23]]}}}],["target_embed",{"_index":1662,"t":{"314":{"position":[[1005,16]]},"563":{"position":[[1005,16]]}}}],["target_ld",{"_index":1119,"t":{"188":{"position":[[1050,9]]}}}],["target_prompt",{"_index":1631,"t":{"312":{"position":[[115,14]]},"561":{"position":[[115,14]]}}}],["target_prompts]).to(devic",{"_index":1649,"t":{"314":{"position":[[369,27]]},"563":{"position":[[369,27]]}}}],["target_tokenized_prompt",{"_index":1648,"t":{"314":{"position":[[305,24],[784,24]]},"563":{"position":[[305,24],[784,24]]}}}],["task",{"_index":2035,"t":{"391":{"position":[[337,11]]},"395":{"position":[[909,6]]}}}],["teacher",{"_index":1547,"t":{"280":{"position":[[146,11]]},"282":{"position":[[429,19]]},"498":{"position":[[146,11]]},"500":{"position":[[429,19]]}}}],["techniqu",{"_index":2266,"t":{"433":{"position":[[29,9]]}}}],["tell",{"_index":1327,"t":{"208":{"position":[[129,4]]}}}],["temp",{"_index":2877,"t":{"628":{"position":[[158,4],[210,4],[253,13],[270,5],[377,4],[516,5]]},"630":{"position":[[244,4],[296,4],[339,13],[356,5],[463,4],[602,5]]}}}],["templat",{"_index":2754,"t":{"579":{"position":[[103,10],[617,9],[669,9],[735,9]]}}}],["tensor",{"_index":2771,"t":{"589":{"position":[[637,10]]}}}],["tensor(0.2684",{"_index":2193,"t":{"410":{"position":[[1695,14],[1881,14]]}}}],["tensor(1",{"_index":2507,"t":{"470":{"position":[[1134,11]]}}}],["tensor(2",{"_index":2509,"t":{"470":{"position":[[1157,11]]}}}],["tensor(3",{"_index":2511,"t":{"470":{"position":[[1180,11]]}}}],["tensor(4",{"_index":2508,"t":{"470":{"position":[[1146,10]]}}}],["tensor(5",{"_index":2510,"t":{"470":{"position":[[1169,10]]}}}],["tensor(6",{"_index":2512,"t":{"470":{"position":[[1192,10]]}}}],["tensor([1",{"_index":2502,"t":{"470":{"position":[[947,10],[965,10],[1328,11]]}}}],["tensor([3",{"_index":2515,"t":{"470":{"position":[[1367,11]]}}}],["tensor([4",{"_index":2514,"t":{"470":{"position":[[1348,10]]}}}],["tensor([6",{"_index":2516,"t":{"470":{"position":[[1387,10]]}}}],["tensor([[9",{"_index":2484,"t":{"470":{"position":[[558,11]]}}}],["tensor([[[0",{"_index":2767,"t":{"589":{"position":[[426,14],[541,13]]}}}],["tensorflow框架,可以使用tensorboard",{"_index":2711,"t":{"537":{"position":[[3,36]]}}}],["tensor的*乘法是对tensor",{"_index":2481,"t":{"470":{"position":[[454,28]]}}}],["term",{"_index":1925,"t":{"375":{"position":[[110,6]]}}}],["terminal_proxy.sh",{"_index":2846,"t":{"608":{"position":[[0,23]]}}}],["test",{"_index":272,"t":{"67":{"position":[[29,4],[101,5],[232,4]]},"433":{"position":[[224,4],[277,7]]},"435":{"position":[[82,4],[240,4]]},"437":{"position":[[95,4],[115,5]]},"442":{"position":[[1771,5],[2519,4]]}}}],["test.first",{"_index":275,"t":{"67":{"position":[[107,10]]}}}],["test.four",{"_index":281,"t":{"67":{"position":[[176,9]]}}}],["test.second",{"_index":276,"t":{"67":{"position":[[125,11]]}}}],["test.third",{"_index":278,"t":{"67":{"position":[[149,10]]}}}],["test_acc",{"_index":2396,"t":{"442":{"position":[[2367,8],[2453,10]]}}}],["test_acc:.3f",{"_index":2400,"t":{"442":{"position":[[2528,16]]}}}],["test_it",{"_index":2353,"t":{"442":{"position":[[1391,10],[2405,10],[2668,9],[2787,10]]}}}],["testdata.json",{"_index":2707,"t":{"533":{"position":[[557,13]]}}}],["text",{"_index":1799,"t":{"343":{"position":[[78,4],[597,4],[748,4],[837,4]]},"405":{"position":[[130,7]]},"604":{"position":[[80,4]]}}}],["text_direct",{"_index":2757,"t":{"579":{"position":[[601,15]]}}}],["text_featur",{"_index":1724,"t":{"320":{"position":[[1229,13]]},"328":{"position":[[22,13],[66,13]]},"569":{"position":[[1230,13]]},"579":{"position":[[228,13]]}}}],["textual",{"_index":2059,"t":{"395":{"position":[[455,7],[522,7]]}}}],["text{subject",{"_index":2235,"t":{"428":{"position":[[58,13]]}}}],["theta",{"_index":2239,"t":{"428":{"position":[[106,6],[192,23]]}}}],["third",{"_index":269,"t":{"65":{"position":[[52,6]]}}}],["third:\"method",{"_index":284,"t":{"67":{"position":[[258,13]]}}}],["thpf",{"_index":1444,"t":{"239":{"position":[[522,14]]}}}],["thread",{"_index":1194,"t":{"196":{"position":[[556,8],[565,6],[2169,6],[2238,8],[2247,6],[2324,6]]}}}],["three",{"_index":285,"t":{"67":{"position":[[272,7]]}}}],["time",{"_index":1892,"t":{"359":{"position":[[93,6]]},"361":{"position":[[135,6],[144,6],[153,6]]},"363":{"position":[[70,6],[79,6],[86,6]]},"365":{"position":[[7,6],[80,6],[89,6],[98,6]]},"413":{"position":[[67,6],[98,6]]},"415":{"position":[[13,6],[22,6],[55,6],[66,6],[77,6],[115,6],[148,6],[158,6],[424,6],[435,6],[444,6],[453,6],[463,6]]},"433":{"position":[[243,6],[290,5]]},"435":{"position":[[187,6]]},"649":{"position":[[143,6]]},"654":{"position":[[166,6]]},"656":{"position":[[68,6]]},"666":{"position":[[134,6]]},"668":{"position":[[70,6],[89,6],[115,6]]}}}],["time.h",{"_index":191,"t":{"56":{"position":[[227,6]]}}}],["timer",{"_index":2372,"t":{"442":{"position":[[1784,6]]}}}],["timer.start",{"_index":2382,"t":{"442":{"position":[[1950,13]]}}}],["timer.stop",{"_index":2391,"t":{"442":{"position":[[2142,12]]}}}],["timer.sum():.1f",{"_index":2402,"t":{"442":{"position":[[2579,16]]}}}],["tip",{"_index":2647,"t":{"521":{"position":[[809,4]]}}}],["titile(if",{"_index":2827,"t":{"604":{"position":[[66,9]]}}}],["titl",{"_index":2821,"t":{"602":{"position":[[321,7]]},"604":{"position":[[100,5]]}}}],["title/window",{"_index":2826,"t":{"604":{"position":[[53,12]]}}}],["title文字不能垂直居中,可以更换为window",{"_index":2820,"t":{"602":{"position":[[295,25]]}}}],["tlpf",{"_index":1424,"t":{"237":{"position":[[945,14]]}}}],["tmp",{"_index":822,"t":{"109":{"position":[[1435,5],[1545,5],[2882,5]]}}}],["tmp[0",{"_index":825,"t":{"109":{"position":[[1555,7],[2915,8],[3051,7]]}}}],["tmp[2",{"_index":827,"t":{"109":{"position":[[1567,7]]}}}],["tmp[20",{"_index":880,"t":{"109":{"position":[[2832,8]]}}}],["tmp[3",{"_index":883,"t":{"109":{"position":[[2944,8],[3059,8]]}}}],["tmp[max_vertex_num",{"_index":815,"t":{"109":{"position":[[1156,20]]}}}],["toc",{"_index":162,"t":{"51":{"position":[[17,5]]}}}],["todo(\"start",{"_index":1255,"t":{"196":{"position":[[2148,11]]}}}],["token",{"_index":1633,"t":{"314":{"position":[[20,9],[577,8]]},"316":{"position":[[44,8],[179,8]]},"563":{"position":[[20,9],[577,8]]},"565":{"position":[[44,8],[179,8]]}}}],["tokenize后为tensor",{"_index":1640,"t":{"314":{"position":[[161,19],[433,19]]},"563":{"position":[[161,19],[433,19]]}}}],["token或random",{"_index":2037,"t":{"393":{"position":[[92,12]]}}}],["token所对应的输出向量,随机初始化两个相同维度的向量,分别与输出向量做dot",{"_index":2083,"t":{"395":{"position":[[1264,57]]}}}],["token进行遮挡后,喂入encoder中。对于每个被mask掉的词汇,bert",{"_index":2038,"t":{"393":{"position":[[105,68]]}}}],["top",{"_index":83,"t":{"29":{"position":[[132,6],[161,6]]}}}],["topologicalsort",{"_index":741,"t":{"107":{"position":[[1758,30]]}}}],["torch",{"_index":2014,"t":{"379":{"position":[[3060,5]]},"403":{"position":[[299,5]]},"405":{"position":[[288,5]]},"442":{"position":[[7,5],[37,5],[112,5]]},"589":{"position":[[285,5]]}}}],["torch.cat([clip.tokenize(p",{"_index":1635,"t":{"314":{"position":[[57,27],[332,27]]},"563":{"position":[[57,27],[332,27]]}}}],["torch.concat((a",{"_index":2474,"t":{"470":{"position":[[295,16]]}}}],["torch.linspac",{"_index":2106,"t":{"403":{"position":[[309,15]]},"405":{"position":[[298,15]]}}}],["torch.log",{"_index":2183,"t":{"410":{"position":[[1444,9]]}}}],["torch.log(torch.softmax(predict",{"_index":2189,"t":{"410":{"position":[[1590,32]]}}}],["torch.nn",{"_index":2104,"t":{"403":{"position":[[260,8]]},"405":{"position":[[249,8]]},"410":{"position":[[1481,8]]},"442":{"position":[[64,8]]}}}],["torch.nn.crossentropyloss",{"_index":2365,"t":{"442":{"position":[[1630,27]]}}}],["torch.nn.crossentropyloss相当于torch.softmax",{"_index":2182,"t":{"410":{"position":[[1400,41]]}}}],["torch.nn.funct",{"_index":2015,"t":{"379":{"position":[[3073,19]]}}}],["torch.nn.modul",{"_index":2336,"t":{"442":{"position":[[971,17]]}}}],["torch.nn.nllloss",{"_index":2184,"t":{"410":{"position":[[1456,17]]}}}],["torch.nn.sequenti",{"_index":2315,"t":{"442":{"position":[[505,20]]}}}],["torch.optim.sgd(net.paramet",{"_index":2363,"t":{"442":{"position":[[1582,33]]}}}],["torch.rand(4",{"_index":2466,"t":{"470":{"position":[[104,13],[143,13]]}}}],["torch.reshape(x",{"_index":2763,"t":{"589":{"position":[[347,16]]}}}],["torch.size([2",{"_index":2473,"t":{"470":{"position":[[269,14]]}}}],["torch.size([4",{"_index":2478,"t":{"470":{"position":[[390,14]]}}}],["torch.stack((a",{"_index":2469,"t":{"470":{"position":[[182,15]]}}}],["torch.sum(y_hat.argmax(dim=1",{"_index":2350,"t":{"442":{"position":[[1328,29]]}}}],["torch.tensor([1",{"_index":2191,"t":{"410":{"position":[[1640,16],[1823,16]]},"470":{"position":[[1043,16]]}}}],["torch.tensor([4",{"_index":2504,"t":{"470":{"position":[[1071,16]]}}}],["torch.tensor([[0",{"_index":1958,"t":{"379":{"position":[[781,17],[961,17],[3365,17],[3545,17]]}}}],["torch.tensor([[0.1",{"_index":2491,"t":{"470":{"position":[[777,19]]}}}],["torch.tensor([[1",{"_index":1960,"t":{"379":{"position":[[871,17],[3455,17]]},"470":{"position":[[1211,17]]}}}],["torch.tensor([[2",{"_index":2188,"t":{"410":{"position":[[1543,17],[1778,17]]}}}],["torch.tensor([[3",{"_index":2482,"t":{"470":{"position":[[487,17]]}}}],["torch.tensor([[4",{"_index":2513,"t":{"470":{"position":[[1252,17]]}}}],["torch.tensor(input",{"_index":1937,"t":{"379":{"position":[[214,20],[3261,20]]}}}],["torch.tensor(np.arange(9",{"_index":2762,"t":{"589":{"position":[[295,26]]}}}],["torchaudio",{"_index":1611,"t":{"306":{"position":[[74,10]]},"555":{"position":[[74,10]]}}}],["torchvis",{"_index":1610,"t":{"306":{"position":[[62,11]]},"555":{"position":[[62,11]]}}}],["tqdm",{"_index":1616,"t":{"306":{"position":[[147,4]]},"555":{"position":[[147,4]]}}}],["train",{"_index":1705,"t":{"320":{"position":[[334,5]]},"345":{"position":[[987,12]]},"379":{"position":[[654,9]]},"433":{"position":[[214,5]]},"435":{"position":[[144,8]]},"437":{"position":[[0,5],[14,5]]},"442":{"position":[[1758,6],[2492,5]]},"521":{"position":[[799,9]]},"533":{"position":[[340,9]]},"569":{"position":[[334,5]]}}}],["train(lenet",{"_index":2410,"t":{"442":{"position":[[2762,12]]}}}],["train(net",{"_index":2351,"t":{"442":{"position":[[1368,10]]}}}],["train_acc",{"_index":2394,"t":{"442":{"position":[[2187,9],[2349,10]]}}}],["train_acc:.3f",{"_index":2399,"t":{"442":{"position":[[2502,16]]}}}],["train_it",{"_index":2352,"t":{"442":{"position":[[1379,11],[2656,11],[2775,11]]}}}],["train_l",{"_index":2392,"t":{"442":{"position":[[2155,7],[2339,9]]}}}],["train_l:.3f",{"_index":2398,"t":{"442":{"position":[[2477,14]]}}}],["train_lay",{"_index":1703,"t":{"320":{"position":[[280,12],[379,12],[394,14]]},"569":{"position":[[280,12],[379,12],[394,14]]}}}],["trained的cnn,该cnn通常使用预训练的incept",{"_index":1831,"t":{"345":{"position":[[89,33]]}}}],["training&fin",{"_index":2079,"t":{"395":{"position":[[1030,13]]}}}],["tran",{"_index":2638,"t":{"521":{"position":[[691,5],[707,5]]}}}],["transform",{"_index":415,"t":{"82":{"position":[[1413,9]]},"261":{"position":[[20,23]]},"266":{"position":[[0,11]]},"278":{"position":[[2,11],[104,11],[486,18],[609,11]]},"335":{"position":[[0,11]]},"397":{"position":[[412,11]]},"479":{"position":[[20,23]]},"484":{"position":[[0,11]]},"496":{"position":[[2,11],[104,11],[486,18],[609,11]]},"529":{"position":[[56,12]]},"531":{"position":[[57,11],[101,12]]}}}],["transformers)本身是一种预训练的模型架构,通常是在大规模无标签数据上进行预训练,然后在特定任务上进行微调。bert",{"_index":2032,"t":{"391":{"position":[[98,92]]}}}],["transformer实战练习,代码见github",{"_index":2674,"t":{"529":{"position":[[5,28]]}}}],["transformer是sequ",{"_index":1471,"t":{"261":{"position":[[70,20]]},"479":{"position":[[70,20]]}}}],["transformer由encoder和decoder组成,编码器和解码器都包含6个block",{"_index":1474,"t":{"263":{"position":[[0,58]]},"481":{"position":[[0,58]]}}}],["transformer的推理阶段,自回归类型的decoder根据分词方式的不同,一个词汇一个词汇的输出,将当前时间步之前生成的所有词汇作为输入load进入decoder中。但在训练时如果遵从同样的生成范式会大大降低效率,并且面临则一步错步步错的风险(error",{"_index":1545,"t":{"280":{"position":[[0,131]]},"498":{"position":[[0,131]]}}}],["transformer训练时采取的teach",{"_index":1526,"t":{"274":{"position":[[826,33]]},"492":{"position":[[826,33]]}}}],["treat",{"_index":1084,"t":{"188":{"position":[[336,7]]}}}],["treebank",{"_index":2074,"t":{"395":{"position":[[747,33]]}}}],["true",{"_index":312,"t":{"67":{"position":[[834,5]]},"94":{"position":[[231,11]]},"98":{"position":[[198,16]]},"105":{"position":[[698,5],[1559,5]]},"107":{"position":[[1047,5],[1108,6]]},"109":{"position":[[71,4]]}}}],["true;//加入拓扑排序的顶点为n",{"_index":757,"t":{"107":{"position":[[2214,30]]}}}],["truncat",{"_index":1656,"t":{"314":{"position":[[725,19]]},"563":{"position":[[725,19]]}}}],["trung",{"_index":2637,"t":{"521":{"position":[[685,5],[730,5]]}}}],["truth",{"_index":1858,"t":{"347":{"position":[[755,6]]},"393":{"position":[[248,21]]}}}],["truth一次性喂到decod",{"_index":1549,"t":{"280":{"position":[[176,38]]},"498":{"position":[[176,38]]}}}],["truth做bc",{"_index":2921,"t":{"647":{"position":[[64,9]]}}}],["truth做cross",{"_index":2091,"t":{"399":{"position":[[119,11]]}}}],["truth对nois",{"_index":1886,"t":{"357":{"position":[[556,11]]}}}],["truth就是sampl",{"_index":1851,"t":{"347":{"position":[[437,18]]}}}],["truth就是第3步中sample出的噪声ϵ\\epsilon",{"_index":1303,"t":{"204":{"position":[[783,32]]}}}],["truth的bc",{"_index":2924,"t":{"647":{"position":[[119,9]]}}}],["truth的策略,但是还额外需要一个encoder来产生lat",{"_index":1853,"t":{"347":{"position":[[553,34]]}}}],["tsinghua",{"_index":1621,"t":{"308":{"position":[[30,8]]},"557":{"position":[[30,8]]}}}],["ttt从t,…,1t,\\ldots,1t,…,1范围循环ttt",{"_index":1307,"t":{"206":{"position":[[54,33]]}}}],["ttt是从1,…,t1,\\ldots,t1,…,t范围中sample出的一个integ",{"_index":1293,"t":{"204":{"position":[[50,46]]}}}],["ttt计数的循环,若t>1t>1t>1,则从normal",{"_index":1308,"t":{"206":{"position":[[88,34]]}}}],["tune",{"_index":1544,"t":{"278":{"position":[[580,28]]},"391":{"position":[[267,13]]},"496":{"position":[[580,28]]},"521":{"position":[[139,10],[158,54],[459,6]]},"581":{"position":[[295,9]]}}}],["tuning范式与scratch范式的训练效果做了对比,其中scratch范式即使用传统的随机初始化的方式从头训练整个分类网络。可以看到预训练&微调的训练范式可以加速模型的收敛(converg",{"_index":2080,"t":{"395":{"position":[[1044,109]]}}}],["two",{"_index":280,"t":{"67":{"position":[[170,5]]}}}],["tx0+1−αˉtϵ,t)∥2(1)\\nabla_{\\theta}\\left\\|\\boldsymbol{\\epsilon",{"_index":1296,"t":{"204":{"position":[[196,71]]}}}],["type(m",{"_index":2356,"t":{"442":{"position":[[1451,7],[1475,7]]}}}],["typedef",{"_index":287,"t":{"67":{"position":[[323,7],[540,7]]},"69":{"position":[[0,7]]},"105":{"position":[[126,7],[274,7]]},"107":{"position":[[198,7],[415,7]]},"109":{"position":[[165,7],[185,7],[357,7],[390,7],[489,7],[585,7]]},"112":{"position":[[100,7]]},"114":{"position":[[100,7]]},"116":{"position":[[186,7]]}}}],["u",{"_index":172,"t":{"53":{"position":[[198,1],[218,1],[239,1]]},"109":{"position":[[1992,2],[2264,3],[2310,6],[2512,9]]},"343":{"position":[[638,1],[696,1],[810,1]]},"604":{"position":[[347,1]]},"645":{"position":[[0,4],[124,1]]}}}],["u,int",{"_index":844,"t":{"109":{"position":[[2247,5]]}}}],["u==v",{"_index":850,"t":{"109":{"position":[[2361,6]]}}}],["u=q.front();//取队首顶点u",{"_index":747,"t":{"107":{"position":[[1926,20]]}}}],["udg",{"_index":786,"t":{"109":{"position":[[374,4]]}}}],["ull",{"_index":231,"t":{"62":{"position":[[381,3],[588,3]]}}}],["uncertainti",{"_index":2136,"t":{"410":{"position":[[139,12]]}}}],["unchang",{"_index":2456,"t":{"467":{"position":[[322,9]]}}}],["uncom",{"_index":1160,"t":{"188":{"position":[[1907,9]]},"198":{"position":[[851,9]]}}}],["uncondit",{"_index":1580,"t":{"295":{"position":[[145,13],[171,13]]}}}],["undefin",{"_index":1122,"t":{"188":{"position":[[1101,9]]}}}],["understand",{"_index":1826,"t":{"343":{"position":[[887,13]]},"395":{"position":[[125,13]]}}}],["unfreez",{"_index":1699,"t":{"320":{"position":[[161,8],[271,8],[507,8]]},"569":{"position":[[161,8],[271,8],[507,8]]}}}],["unfreeze,然后对更新哪些层做出选择,承担选择任务的功能函数:model.zssgan.zssgan.determine_opt_lay",{"_index":1697,"t":{"320":{"position":[[70,77]]},"569":{"position":[[70,77]]}}}],["unifi",{"_index":1289,"t":{"202":{"position":[[833,7]]}}}],["uniqu",{"_index":416,"t":{"82":{"position":[[1448,6],[1520,9]]}}}],["unique_copi",{"_index":417,"t":{"82":{"position":[[1491,11]]}}}],["unordered_map",{"_index":91,"t":{"29":{"position":[[253,14]]},"47":{"position":[[136,14]]}}}],["unordered_multimap",{"_index":93,"t":{"29":{"position":[[288,22]]}}}],["unordered_multimap的操作和set或者map等的操作基本一致,唯一的区别就是不支持类似lower_bound",{"_index":152,"t":{"47":{"position":[[171,69]]}}}],["unordered_multiset",{"_index":92,"t":{"29":{"position":[[268,19]]},"47":{"position":[[151,19]]}}}],["unordered_set",{"_index":90,"t":{"29":{"position":[[238,14]]},"47":{"position":[[121,14]]}}}],["unset",{"_index":2853,"t":{"608":{"position":[[222,5],[238,5],[255,5]]}}}],["unsign",{"_index":232,"t":{"62":{"position":[[385,8]]},"102":{"position":[[1001,8]]}}}],["until",{"_index":2441,"t":{"456":{"position":[[646,5]]}}}],["unzipped_list",{"_index":2801,"t":{"593":{"position":[[389,14],[448,15]]}}}],["updat",{"_index":2289,"t":{"437":{"position":[[47,6]]}}}],["update='append",{"_index":2722,"t":{"544":{"position":[[261,16],[336,16]]},"546":{"position":[[227,16]]}}}],["upper_bound",{"_index":434,"t":{"82":{"position":[[2014,11]]}}}],["us",{"_index":4,"t":{"4":{"position":[[25,5]]},"19":{"position":[[25,5]]},"25":{"position":[[25,5]]},"58":{"position":[[0,5]]},"60":{"position":[[250,5]]},"84":{"position":[[1481,5]]},"105":{"position":[[53,5]]},"107":{"position":[[119,5]]},"112":{"position":[[79,5]]},"114":{"position":[[79,5]]},"116":{"position":[[165,5]]},"188":{"position":[[760,4],[1206,4],[2025,6]]},"196":{"position":[[931,4]]},"198":{"position":[[969,6]]},"379":{"position":[[524,5],[2477,3]]},"433":{"position":[[39,4],[250,5]]},"435":{"position":[[70,4],[132,4],[215,4]]},"437":{"position":[[126,4]]},"531":{"position":[[53,3]]},"630":{"position":[[65,5]]}}}],["user",{"_index":367,"t":{"80":{"position":[[839,5]]}}}],["usual",{"_index":1943,"t":{"379":{"position":[[480,7]]}}}],["util",{"_index":555,"t":{"90":{"position":[[0,11]]}}}],["utils/text_templates.pi",{"_index":2753,"t":{"579":{"position":[[76,23],[752,23]]}}}],["utkarsh",{"_index":2621,"t":{"521":{"position":[[497,12]]}}}],["uttr",{"_index":2701,"t":{"533":{"position":[[410,4],[575,4]]}}}],["ux+vy)}dudv\\tag{8}f(x,y)=∫−∞∞​∫−∞∞​f(u,v)ej2π(ux+vy)dudv(8",{"_index":1378,"t":{"219":{"position":[[810,60]]}}}],["ux+vy)}dxdy\\tag{7}f(u,v)=∫−∞∞​∫−∞∞​f(x,y)e−j2π(ux+vy)dxdy(7",{"_index":1375,"t":{"219":{"position":[[630,61]]}}}],["ux}du\\tag{6}f(x)=∫−∞∞​f(u)ej2πuxdu(6",{"_index":1371,"t":{"219":{"position":[[473,37]]}}}],["ux}dx\\tag{5}f(u)=∫−∞+∞​f(x)e−j2πuxdx(5",{"_index":1368,"t":{"219":{"position":[[357,39]]}}}],["ux}{n}}\\tag{10}f(x)=n1​u=0∑n−1​f(u)ejn2πux​(10",{"_index":1385,"t":{"219":{"position":[[1093,47]]}}}],["ux}{n}}\\tag{9}f(u)=x=0∑n−1​f(x)e−jn2πux​(9",{"_index":1382,"t":{"219":{"position":[[958,43]]}}}],["v",{"_index":838,"t":{"109":{"position":[[1995,8],[2612,2]]},"112":{"position":[[1118,2]]},"114":{"position":[[820,2]]}}}],["v,int",{"_index":845,"t":{"109":{"position":[[2253,5]]}}}],["v.push_back(w",{"_index":930,"t":{"112":{"position":[[1179,15]]},"114":{"position":[[881,15]]}}}],["v1",{"_index":2930,"t":{"654":{"position":[[21,12]]}}}],["v3",{"_index":1729,"t":{"322":{"position":[[76,2],[1223,2],[1252,2]]},"571":{"position":[[76,2],[1220,2],[1249,2]]}}}],["v3模型。在计算fid时,生成图像和真实图像分别输入到预训练的cnn中,提取出各自的特征表示向量(representation)。这两个represent",{"_index":1832,"t":{"345":{"position":[[123,105]]}}}],["v=g.vertexs[u].connectors[i];//u的后继节点v",{"_index":749,"t":{"107":{"position":[[2011,38]]}}}],["v_n",{"_index":1001,"t":{"127":{"position":[[137,6]]},"131":{"position":[[171,4],[203,6]]}}}],["v_t",{"_index":999,"t":{"127":{"position":[[127,4]]},"129":{"position":[[53,5]]},"131":{"position":[[193,4]]}}}],["vae、gan以及diffus",{"_index":1793,"t":{"339":{"position":[[0,18]]}}}],["vae在训练过程中,期待ecoder输入多张图片后,输出的向量在一起符合某个随机分布(e.g",{"_index":1873,"t":{"351":{"position":[[129,47]]}}}],["vae的数学原理,从vae到diffus",{"_index":1286,"t":{"202":{"position":[[735,38]]}}}],["vae)与diffus",{"_index":1282,"t":{"202":{"position":[[591,14]]}}}],["vae)的训练策略是使用encoder将输入图像对应(嵌入)到一个符合某随机分布的向量,再将该向量作为decoder的输入,加上文字prompt",{"_index":1872,"t":{"351":{"position":[[39,86]]}}}],["val",{"_index":470,"t":{"84":{"position":[[677,4],[722,6],[1038,4]]},"86":{"position":[[497,4],[698,4],[743,6],[982,4]]}}}],["valid",{"_index":2265,"t":{"433":{"position":[[13,10],[139,10]]},"435":{"position":[[34,11]]},"437":{"position":[[54,10]]},"533":{"position":[[474,5]]}}}],["valu",{"_index":571,"t":{"92":{"position":[[361,6],[510,8]]},"379":{"position":[[766,6],[1089,6],[1145,6],[1260,7],[1812,18],[1972,6],[2008,6],[2074,9],[3350,6],[3653,6],[3709,6],[3824,7],[4131,6],[4167,6],[4233,9]]}}}],["value^{n",{"_index":2025,"t":{"381":{"position":[[262,8]]}}}],["var",{"_index":2742,"t":{"548":{"position":[[260,4],[294,4],[333,4],[373,4]]}}}],["variat",{"_index":1278,"t":{"202":{"position":[[545,25]]},"351":{"position":[[0,18]]}}}],["vc++6.0中指针初始化为0xcccccccc",{"_index":809,"t":{"109":{"position":[[873,26]]}}}],["vc++6.0中指针初始化为0xcccccccc,如果不将指针初始化为null",{"_index":818,"t":{"109":{"position":[[1221,45]]}}}],["vec",{"_index":2883,"t":{"630":{"position":[[819,4]]}}}],["vec.empti",{"_index":2888,"t":{"630":{"position":[[970,13]]}}}],["vec.push_back(remaind",{"_index":2886,"t":{"630":{"position":[[903,25]]}}}],["vec.rbegin",{"_index":2889,"t":{"630":{"position":[[1023,13]]}}}],["vec.rend",{"_index":2890,"t":{"630":{"position":[[1043,11]]}}}],["vector",{"_index":75,"t":{"29":{"position":[[17,17]]},"31":{"position":[[94,19],[224,12]]},"58":{"position":[[68,6]]},"84":{"position":[[0,10],[149,81],[231,27],[433,12],[1301,33],[1338,55],[1472,8]]},"105":{"position":[[29,8]]},"107":{"position":[[50,8]]},"320":{"position":[[845,10]]},"569":{"position":[[845,10]]}}}],["vector::iter",{"_index":723,"t":{"107":{"position":[[1177,24]]}}}],["vector为底层容器,堆heap",{"_index":354,"t":{"80":{"position":[[448,41]]}}}],["vector对象,存储的是int",{"_index":458,"t":{"84":{"position":[[277,27]]}}}],["vector对象,并从由迭代器first和last定义的序列[first",{"_index":463,"t":{"84":{"position":[[380,41]]}}}],["vector的s",{"_index":98,"t":{"31":{"position":[[61,18]]}}}],["ver",{"_index":798,"t":{"109":{"position":[[644,5]]}}}],["veri",{"_index":1167,"t":{"188":{"position":[[2018,4]]},"198":{"position":[[962,4]]},"379":{"position":[[2756,4]]}}}],["vernum",{"_index":804,"t":{"109":{"position":[[798,7],[1339,7],[1456,8]]}}}],["vernum,arcnum",{"_index":796,"t":{"109":{"position":[[621,14]]}}}],["vers[a].firstarc",{"_index":835,"t":{"109":{"position":[[1752,18],[1793,18],[1875,17]]}}}],["vers[i].data=tmp[i",{"_index":824,"t":{"109":{"position":[[1473,21]]}}}],["vers[i].firstarc",{"_index":807,"t":{"109":{"position":[[847,17]]}}}],["version/src/project0/build目录下执行mak",{"_index":1078,"t":{"188":{"position":[[43,35]]}}}],["version/src/projecti/build",{"_index":1060,"t":{"178":{"position":[[287,33]]},"182":{"position":[[114,29]]}}}],["version/src/projecti/build文件夹下进行,即要在终端中通过cd",{"_index":1261,"t":{"198":{"position":[[17,49]]}}}],["version/src/projecti/build目录下创建.bochsrc",{"_index":1132,"t":{"188":{"position":[[1379,41]]}}}],["version/src/projecti/build目录下的makefi",{"_index":1091,"t":{"188":{"position":[[593,39],[1158,39]]}}}],["version/src/projecti/build目录下的makefie文件(由于每个project下都存在一个对应的makefil",{"_index":1085,"t":{"188":{"position":[[369,71]]}}}],["version/src/projecti/src/geeko",{"_index":1059,"t":{"178":{"position":[[232,37]]}}}],["version/src/projecti/src/geekos/main.c",{"_index":1172,"t":{"196":{"position":[[9,40]]}}}],["version/src/目录下会存在project0",{"_index":1056,"t":{"178":{"position":[[131,26]]}}}],["vert",{"_index":2236,"t":{"428":{"position":[[83,5]]},"430":{"position":[[92,5],[273,5]]}}}],["vert^2_1",{"_index":2237,"t":{"428":{"position":[[91,9]]},"430":{"position":[[100,9],[281,9]]}}}],["vert_2",{"_index":2125,"t":{"408":{"position":[[181,7]]}}}],["vertex",{"_index":288,"t":{"67":{"position":[[338,6],[414,8],[516,7],[578,8]]},"105":{"position":[[141,6],[198,8],[250,7],[312,8]]},"107":{"position":[[213,6],[289,8],[391,7],[453,8]]}}}],["vertex(int",{"_index":293,"t":{"67":{"position":[[460,10]]},"105":{"position":[[219,10]]},"107":{"position":[[335,10]]}}}],["vertexs.resize(1",{"_index":308,"t":{"67":{"position":[[752,18]]},"107":{"position":[[627,18]]}}}],["vertexs.resize(n",{"_index":305,"t":{"67":{"position":[[697,18]]},"105":{"position":[[431,18]]},"107":{"position":[[572,18]]}}}],["vertexs.s",{"_index":659,"t":{"105":{"position":[[516,16]]},"107":{"position":[[712,16]]}}}],["vertexs[id1].connectors.push_back(id2",{"_index":660,"t":{"105":{"position":[[560,39],[609,39]]},"107":{"position":[[756,39],[856,39]]}}}],["vertexs[id1].indegre",{"_index":713,"t":{"107":{"position":[[962,24]]}}}],["vertexs[id1].outdegre",{"_index":711,"t":{"107":{"position":[[796,25],[936,25]]}}}],["vertexs[id2].connectors.push_back(id1",{"_index":661,"t":{"105":{"position":[[649,39]]},"107":{"position":[[896,39]]}}}],["vertexs[id2].indegre",{"_index":712,"t":{"107":{"position":[[822,24],[1013,24]]}}}],["vertexs[id2].outdegre",{"_index":714,"t":{"107":{"position":[[987,25]]}}}],["vertexs[id].connectors.s",{"_index":673,"t":{"105":{"position":[[920,30],[1353,30]]}}}],["vertexs[id].connectors[i",{"_index":674,"t":{"105":{"position":[[968,26],[1401,26]]}}}],["vertextyp",{"_index":778,"t":{"109":{"position":[[218,10],[511,10],[941,10],[2108,10]]}}}],["vertic",{"_index":2830,"t":{"604":{"position":[[124,11]]}}}],["vga_update_interv",{"_index":1154,"t":{"188":{"position":[[1805,20]]},"198":{"position":[[749,20]]}}}],["vgaromimag",{"_index":1138,"t":{"188":{"position":[[1509,12]]},"198":{"position":[[453,12]]}}}],["vi",{"_index":2715,"t":{"544":{"position":[[26,3]]},"546":{"position":[[26,3]]}}}],["via",{"_index":2586,"t":{"516":{"position":[[110,3]]},"521":{"position":[[627,3]]}}}],["viet",{"_index":2639,"t":{"521":{"position":[[697,4]]}}}],["vis.line([0",{"_index":2717,"t":{"544":{"position":[[116,14]]}}}],["vis.line([[0",{"_index":2725,"t":{"546":{"position":[[41,14]]}}}],["vis.line([loss.item",{"_index":2723,"t":{"544":{"position":[[289,23]]}}}],["visdom",{"_index":2713,"t":{"539":{"position":[[12,6]]},"542":{"position":[[0,28],[37,6]]},"544":{"position":[[5,6],[19,6],[32,8]]},"546":{"position":[[5,6],[19,6],[32,8]]}}}],["visdom.serv",{"_index":2714,"t":{"542":{"position":[[54,13]]}}}],["visit",{"_index":664,"t":{"105":{"position":[[753,8],[1132,8]]}}}],["visit(vertextyp",{"_index":781,"t":{"109":{"position":[[290,16]]}}}],["visit[cnt]=0",{"_index":886,"t":{"109":{"position":[[2992,13]]}}}],["visit[max_vertex_num",{"_index":839,"t":{"109":{"position":[[2077,22]]}}}],["visit[p",{"_index":859,"t":{"109":{"position":[[2568,8]]}}}],["visit[u]=0",{"_index":863,"t":{"109":{"position":[[2679,11]]}}}],["visit[u]=1",{"_index":847,"t":{"109":{"position":[[2298,11]]}}}],["visited.count(id1",{"_index":675,"t":{"105":{"position":[[998,19],[1431,19]]}}}],["visited.insert(id1",{"_index":677,"t":{"105":{"position":[[1044,20],[1497,20]]}}}],["visited.insert(start",{"_index":668,"t":{"105":{"position":[[802,22],[1216,22]]}}}],["viz.line([[y1",{"_index":2729,"t":{"546":{"position":[[177,14]]}}}],["viz.line([real_y_data",{"_index":2720,"t":{"544":{"position":[[208,23]]}}}],["vnode",{"_index":792,"t":{"109":{"position":[[504,6],[547,7]]}}}],["vnv_nvn",{"_index":1037,"t":{"163":{"position":[[68,21]]}}}],["voc1voc_1voc1​词汇向量输入时,在decoder中,voc1voc_1voc1",{"_index":1556,"t":{"282":{"position":[[177,87]]},"500":{"position":[[177,87]]}}}],["vocabulari",{"_index":1512,"t":{"274":{"position":[[6,16]]},"492":{"position":[[6,16]]}}}],["vocabulary)是一个包含了在特定语言或任务中所有可能出现的所有单词或标记的集合。在自然语言处理(nlp",{"_index":1513,"t":{"274":{"position":[[23,95]]},"492":{"position":[[23,95]]}}}],["voc中,类别种类为20类,因此在预测阶段输出的[7",{"_index":2947,"t":{"654":{"position":[[422,27]]}}}],["void",{"_index":715,"t":{"107":{"position":[[1073,4]]},"109":{"position":[[285,4],[2215,4]]},"112":{"position":[[1073,4],[1360,4],[1475,4],[1590,4]]},"114":{"position":[[775,4],[1041,4],[1148,4],[1255,4]]},"116":{"position":[[539,4]]},"196":{"position":[[82,4],[1294,4],[1833,4]]}}}],["voxceleb1",{"_index":2682,"t":{"533":{"position":[[24,10],[72,10]]}}}],["vrtype",{"_index":779,"t":{"109":{"position":[[248,6],[433,6]]}}}],["vtv_tvt",{"_index":1036,"t":{"163":{"position":[[47,20]]}}}],["vt​∪vn​)∗(1",{"_index":1003,"t":{"127":{"position":[[157,15]]}}}],["vt​∪vn​)∗(3",{"_index":1016,"t":{"131":{"position":[[229,15]]}}}],["vt∗(2)",{"_index":1004,"t":{"129":{"position":[[6,9]]}}}],["vt∗​(2",{"_index":1008,"t":{"129":{"position":[[72,9]]}}}],["vt∪vn)∗(1)",{"_index":996,"t":{"127":{"position":[[73,14]]}}}],["vt∪vn)∗(3)\\alpha",{"_index":1013,"t":{"131":{"position":[[115,19]]}}}],["v当前是第k",{"_index":846,"t":{"109":{"position":[[2268,10]]}}}],["v的入度减1",{"_index":751,"t":{"107":{"position":[[2067,9]]}}}],["w",{"_index":1678,"t":{"318":{"position":[[185,1],[200,36],[390,1],[407,3],[411,1],[452,3],[764,1],[802,1],[812,1],[847,1],[881,1],[891,1]]},"320":{"position":[[533,1],[585,1],[664,1],[737,6],[896,15],[951,1]]},"325":{"position":[[68,1],[342,1],[612,1]]},"330":{"position":[[13,1]]},"415":{"position":[[451,1]]},"428":{"position":[[89,1]]},"430":{"position":[[98,1],[237,2],[279,1],[332,2],[345,1]]},"456":{"position":[[564,1],[608,1],[612,1]]},"567":{"position":[[185,1],[200,36],[390,1],[407,3],[411,1],[452,3],[765,1],[803,1],[813,1],[848,1],[882,1],[892,1]]},"569":{"position":[[533,1],[585,1],[664,1],[737,6],[896,15],[951,1]]},"574":{"position":[[68,1],[342,1],[612,1]]},"577":{"position":[[13,1]]},"595":{"position":[[170,3]]},"654":{"position":[[307,2]]}}}],["w')o(co​×ci​×h×w×h′×w",{"_index":2217,"t":{"415":{"position":[[470,23]]}}}],["w'co​×h′×w",{"_index":2210,"t":{"415":{"position":[[165,11]]}}}],["w(l(w,b)+λ2∥w∥12)=∂l(w,b)∂w+λw(3)\\frac{\\partial}{\\parti",{"_index":2249,"t":{"430":{"position":[[177,59]]}}}],["w=q.front",{"_index":929,"t":{"112":{"position":[[1157,12]]},"114":{"position":[[859,12]]}}}],["w][b,1,h,w]的tensor",{"_index":2972,"t":{"662":{"position":[[196,46]]}}}],["w][b,1,h,w]的tensor,再将二者concat后通过7×77",{"_index":2976,"t":{"666":{"position":[[97,36]]}}}],["w][b,c,h,w]分别经过最大池化和平均池化来压缩空间维度、学习通道之间的特征,得到[b,c,1,1][b",{"_index":2973,"t":{"664":{"position":[[24,56]]}}}],["w][b,c,h,w]分别经过最大池化和平均池化(通过torch.max和torch.mean函数实现)得到[b,1,h,w][b",{"_index":2975,"t":{"666":{"position":[[24,66]]}}}],["w][b,c,h,w]的特征图通过池化挤压宽高维度,得到[b,c,1,1][b",{"_index":2987,"t":{"672":{"position":[[56,40]]}}}],["w][b,c,h,w]经过空间注意力机制算法得到[b,1,h,w][b",{"_index":2971,"t":{"662":{"position":[[153,36]]}}}],["w][b,c,h,w]经过通道注意力机制算法得到[b,c,1,1][b",{"_index":2969,"t":{"662":{"position":[[30,36]]}}}],["w_2\\\\1&d(u,v",{"_index":1455,"t":{"241":{"position":[[525,14]]}}}],["w_2\\end{cases}\\tag{24}h(u,v)=⎩⎨⎧​101​d(u,v)w2​​(24",{"_index":1456,"t":{"241":{"position":[[540,76]]}}}],["w_code",{"_index":1772,"t":{"325":{"position":[[139,20]]},"574":{"position":[[139,20]]}}}],["w_encod",{"_index":1775,"t":{"325":{"position":[[288,9]]},"574":{"position":[[288,9]]}}}],["w_key",{"_index":1957,"t":{"379":{"position":[[773,5],[1112,5],[3357,5],[3676,5]]}}}],["w_queri",{"_index":1959,"t":{"379":{"position":[[861,7],[1137,7],[3445,7],[3701,7]]}}}],["w_t",{"_index":2260,"t":{"430":{"position":[[496,4]]}}}],["w_valu",{"_index":1961,"t":{"379":{"position":[[951,7],[1163,7],[3535,7],[3727,7]]}}}],["wall",{"_index":1128,"t":{"188":{"position":[[1266,4],[1315,4]]}}}],["warn",{"_index":1082,"t":{"188":{"position":[[321,8]]}}}],["waveform",{"_index":2685,"t":{"533":{"position":[[107,9]]}}}],["wci​×h×w",{"_index":2203,"t":{"415":{"position":[[29,8]]}}}],["weight",{"_index":790,"t":{"109":{"position":[[440,7]]},"379":{"position":[[468,7],[736,7],[1963,8],[3320,7],[4122,8]]},"467":{"position":[[336,7]]},"548":{"position":[[420,7]]}}}],["weighted_valu",{"_index":1987,"t":{"379":{"position":[[2056,15],[2149,16],[4215,15],[4308,16]]}}}],["weighted_values.sum(dim=0",{"_index":1992,"t":{"379":{"position":[[2395,26],[4353,26]]}}}],["welcom",{"_index":2734,"t":{"548":{"position":[[101,8]]}}}],["well",{"_index":1998,"t":{"379":{"position":[[2531,4]]}}}],["werror",{"_index":1089,"t":{"188":{"position":[[507,6]]}}}],["while(!q.empti",{"_index":746,"t":{"107":{"position":[[1903,18]]},"112":{"position":[[1133,17]]},"114":{"position":[[835,17]]}}}],["while(1",{"_index":1179,"t":{"196":{"position":[[150,8],[1362,8]]}}}],["while(cin",{"_index":487,"t":{"84":{"position":[[1537,9]]}}}],["while(g.s",{"_index":669,"t":{"105":{"position":[[825,14],[1273,14]]}}}],["while(in[p1]!=pre[rt",{"_index":980,"t":{"116":{"position":[[398,22]]}}}],["while(it!=g.vertexs.end",{"_index":725,"t":{"107":{"position":[[1226,27]]}}}],["while(m",{"_index":720,"t":{"107":{"position":[[1128,7]]}}}],["while(mid[p1]!=rt",{"_index":913,"t":{"112":{"position":[[431,18],[774,18]]},"114":{"position":[[315,18],[544,18]]}}}],["while(~scanf(\"%d\",&n",{"_index":950,"t":{"112":{"position":[[1720,22]]},"114":{"position":[[1385,22]]}}}],["win='win_id",{"_index":2718,"t":{"544":{"position":[[137,13],[247,13],[322,13]]},"546":{"position":[[68,13],[213,13]]}}}],["window",{"_index":2865,"t":{"620":{"position":[[0,20]]}}}],["winograd",{"_index":2077,"t":{"395":{"position":[[812,8]]}}}],["wise",{"_index":1492,"t":{"268":{"position":[[1087,10]]},"318":{"position":[[1068,4]]},"320":{"position":[[1129,4],[1252,15]]},"328":{"position":[[184,4]]},"486":{"position":[[1087,10]]},"567":{"position":[[1069,4]]},"569":{"position":[[1129,4],[1253,15]]},"579":{"position":[[426,4],[584,4]]},"649":{"position":[[73,7]]}}}],["wise)以及逐点(point",{"_index":2926,"t":{"649":{"position":[[57,15]]}}}],["wl",{"_index":2996,"t":{"695":{"position":[[321,65]]}}}],["wl/wait",{"_index":2995,"t":{"695":{"position":[[305,10]]}}}],["wnli(winograd",{"_index":2075,"t":{"395":{"position":[[781,13]]}}}],["word",{"_index":1495,"t":{"270":{"position":[[0,9]]},"397":{"position":[[186,4]]},"488":{"position":[[0,9]]}}}],["work",{"_index":1097,"t":{"188":{"position":[[681,5]]},"583":{"position":[[102,14]]}}}],["work.109",{"_index":1118,"t":{"188":{"position":[[1040,9]]}}}],["workshop",{"_index":2619,"t":{"521":{"position":[[480,10]]}}}],["worship",{"_index":1323,"t":{"208":{"position":[[77,7]]}}}],["write",{"_index":1161,"t":{"188":{"position":[[1925,5]]},"198":{"position":[[869,5]]}}}],["wt+1=(1−ηλ)wt+η∂l(wt,bt)∂wt(4)w_{t+1}=(1",{"_index":2255,"t":{"430":{"position":[[394,40]]}}}],["www和偏置项bbb",{"_index":2437,"t":{"456":{"position":[[458,39]]}}}],["w∥12​≤θ(1",{"_index":2241,"t":{"428":{"position":[[142,11]]}}}],["w∥12≤θ(1)min",{"_index":2233,"t":{"428":{"position":[[22,13]]}}}],["w为bbox的宽高,c为该bbox是否存在object",{"_index":2945,"t":{"654":{"position":[[337,30]]}}}],["w归约为文法开始符号",{"_index":1050,"t":{"168":{"position":[[103,31]]}}}],["x",{"_index":11,"t":{"4":{"position":[[100,1],[124,2],[147,1],[155,1]]},"6":{"position":[[91,2],[114,1],[131,1]]},"39":{"position":[[118,3]]},"45":{"position":[[241,12],[274,10]]},"62":{"position":[[41,3],[69,5],[84,3]]},"72":{"position":[[4,2]]},"84":{"position":[[525,8],[1534,2],[1550,2]]},"86":{"position":[[290,8],[317,8]]},"213":{"position":[[308,1],[414,1]]},"403":{"position":[[43,3],[305,1]]},"405":{"position":[[42,1],[50,1],[54,1],[178,1],[190,1],[294,1]]},"442":{"position":[[382,3],[873,3],[1092,2],[1135,1],[1157,1],[1162,2],[1171,1],[1917,3],[1986,2]]},"589":{"position":[[291,1],[343,1],[386,4],[504,4]]},"593":{"position":[[142,5],[278,4],[506,5]]}}}],["x)%mod",{"_index":219,"t":{"62":{"position":[[115,9]]}}}],["x)=11+e−x(1)\\sigma(x",{"_index":2093,"t":{"403":{"position":[[0,23]]}}}],["x)>(i",{"_index":216,"t":{"62":{"position":[[28,10]]}}}],["x,y)(x",{"_index":1338,"t":{"211":{"position":[[0,41],[90,15]]}}}],["x.reshap",{"_index":2310,"t":{"442":{"position":[[393,10]]}}}],["x.shape[0",{"_index":2390,"t":{"442":{"position":[[2099,11]]}}}],["x.to(devic",{"_index":2342,"t":{"442":{"position":[[1139,13],[1175,12],[1993,13]]}}}],["x0\\mathbf{x}_0x0​和ϵ\\epsilonϵ根据权重αˉ1,αˉ2,...αˉt\\bar{\\alpha}_1,\\bar{\\alpha}_2,...\\bar{\\alpha}_tαˉ1​,αˉ2​,...αˉt​做weight",{"_index":1299,"t":{"204":{"position":[[445,122]]}}}],["x1",{"_index":2765,"t":{"589":{"position":[[381,2],[611,2]]}}}],["x1[0",{"_index":2791,"t":{"589":{"position":[[1195,21],[1232,20]]}}}],["x1[0,:,:]+x2[0,:,:](1)x1[0",{"_index":2776,"t":{"589":{"position":[[846,27]]}}}],["x1[1,:,:]+x2[1,:,:](2)x1[1",{"_index":2779,"t":{"589":{"position":[[924,27]]}}}],["x1[2,:,:]+x2[2,:,:](3)x1[2",{"_index":2782,"t":{"589":{"position":[[1002,27]]}}}],["x1与x2在第0维度上维度相同,所以python",{"_index":2775,"t":{"589":{"position":[[798,47]]}}}],["x2",{"_index":2768,"t":{"589":{"position":[[499,2],[616,2]]}}}],["x2[0",{"_index":2777,"t":{"589":{"position":[[882,5],[1220,8]]}}}],["x2[0,0",{"_index":2792,"t":{"589":{"position":[[1256,15]]}}}],["x2[1",{"_index":2780,"t":{"589":{"position":[[960,5]]}}}],["x2[2",{"_index":2783,"t":{"589":{"position":[[1038,5]]}}}],["x86",{"_index":1053,"t":{"178":{"position":[[89,12]]},"188":{"position":[[835,5]]}}}],["x86/elf",{"_index":1105,"t":{"188":{"position":[[854,7]]}}}],["x86_64与i386",{"_index":1090,"t":{"188":{"position":[[561,16]]}}}],["x=σ∗z+μx=\\sigma",{"_index":2578,"t":{"514":{"position":[[106,15]]}}}],["xavier",{"_index":1951,"t":{"379":{"position":[[580,6]]}}}],["xavier和kaim",{"_index":1955,"t":{"379":{"position":[[664,58]]}}}],["xi",{"_index":2440,"t":{"456":{"position":[[621,2]]}}}],["xlim=[1",{"_index":2369,"t":{"442":{"position":[[1714,8]]}}}],["xor异或等非线性问题,导致第一次ai",{"_index":2445,"t":{"458":{"position":[[43,35]]}}}],["xt\\mathbf{x}_txt​代表上一步骤中输出的降噪后的图像,xt−1\\mathbf{x}_{t",{"_index":1315,"t":{"206":{"position":[[484,54]]}}}],["xt−1=1αt(xt−1−αt1−αˉtϵθ(xt,t))+σtz(2)\\mathbf{x}_{t",{"_index":1310,"t":{"206":{"position":[[203,50]]}}}],["xxx",{"_index":1728,"t":{"322":{"position":[[59,3]]},"571":{"position":[[59,3]]}}}],["xxx.plasmoid",{"_index":2845,"t":{"604":{"position":[[349,12]]}}}],["xxx的可能取值为x=x1,x2,...,xnx=x_1,x_2,...,x_nx=x1​,x2​,...,xn​,而取值事件xix_ixi​发生的概率为pip_ipi",{"_index":2137,"t":{"410":{"position":[[152,106]]}}}],["x为100时,sigmoid(x)就接近于0",{"_index":2108,"t":{"403":{"position":[[354,24]]}}}],["x和i",{"_index":1342,"t":{"211":{"position":[[124,26]]}}}],["x方向和i",{"_index":1394,"t":{"224":{"position":[[17,24]]}}}],["x,输出所有x",{"_index":142,"t":{"45":{"position":[[174,13]]}}}],["y",{"_index":13,"t":{"4":{"position":[[111,1],[134,1],[138,1],[175,2]]},"6":{"position":[[101,1],[105,1]]},"62":{"position":[[47,4],[77,4],[90,4]]},"213":{"position":[[323,1],[429,1]]},"408":{"position":[[172,1]]},"442":{"position":[[1095,1],[1188,1],[1237,3],[1317,3],[1361,2],[1921,2],[1989,1],[2051,2],[2127,3]]},"593":{"position":[[148,4],[292,4],[512,4]]},"654":{"position":[[301,2]]}}}],["y)(x,i",{"_index":1341,"t":{"211":{"position":[[106,17]]}}}],["y)(x,y)方向上以及亮度函数f(x,y)f(x",{"_index":1339,"t":{"211":{"position":[[42,26]]}}}],["y)(x,y),点qqq的坐标为(s,t)(s,t)(s,t",{"_index":1346,"t":{"213":{"position":[[138,32]]}}}],["y)f(x,i",{"_index":1340,"t":{"211":{"position":[[69,16]]}}}],["y*z",{"_index":2434,"t":{"456":{"position":[[401,4]]}}}],["y.numel",{"_index":2345,"t":{"442":{"position":[[1241,10],[2131,10]]}}}],["y.to(devic",{"_index":2343,"t":{"442":{"position":[[1192,12],[2007,12]]}}}],["y2",{"_index":2730,"t":{"546":{"position":[[192,5]]}}}],["y_hat",{"_index":2384,"t":{"442":{"position":[[2020,5]]}}}],["yay",{"_index":1076,"t":{"186":{"position":[[87,3]]},"622":{"position":[[28,3]]}}}],["ye",{"_index":107,"t":{"31":{"position":[[282,6]]}}}],["yi",{"_index":2438,"t":{"456":{"position":[[590,2],[616,2],[636,2]]}}}],["yi,j=∑a,bva,b∗xi+a,j+b=∑a=−δδ∑b=−δδva,b∗xia,j+b(4)y_{i,j}=\\sum_{a,b}{v_{a,b}*x_{i+a,j+b}}=\\sum_{a",{"_index":2423,"t":{"451":{"position":[[32,98]]}}}],["yi,j=∑a,bvi,j,a,b∗xi+a,j+b=∑a,bva,b∗xi+a,j+b(3)y_{i,j}=\\sum_{a,b}{v_{i,j,a,b}*x_{i+a,j+b}}=\\sum_{a,b}{v_{a,b}*x_{i+a,j+b",{"_index":2420,"t":{"449":{"position":[[513,122]]}}}],["yi,j=∑h,wwi,j,h,w∗xh,w(1)y_{i,j}=\\sum_{h,w}{w_{i,j,h,w}*x_{h,w",{"_index":2414,"t":{"449":{"position":[[77,64]]}}}],["yi,j=∑h,wwi,j,h,w∗xh,w=∑a,bvi,j,a,b∗xi+a,j+b(2)y_{i,j}=\\sum_{h,w}{w_{i,j,h,w}*x_{h,w}}=\\sum_{a,b}{v_{i,j,a,b}*x_{i+a,j+b",{"_index":2417,"t":{"449":{"position":[[241,122]]}}}],["yijun",{"_index":2623,"t":{"521":{"position":[[516,5]]}}}],["yiy_{i}yi",{"_index":2043,"t":{"393":{"position":[[383,20]]}}}],["yolov1",{"_index":2931,"t":{"654":{"position":[[42,14],[57,14],[521,25]]}}}],["yolov2引入了anchor机制代替bbox,将图像划分为13×1313",{"_index":2958,"t":{"656":{"position":[[30,37]]}}}],["yolov5使用cspnet实现特征融合,csp",{"_index":2964,"t":{"658":{"position":[[9,52]]}}}],["yolo损失函数分为分类损失以及回归损失,可以在分类损失中引入foc",{"_index":2983,"t":{"670":{"position":[[50,36]]}}}],["yong",{"_index":2628,"t":{"521":{"position":[[554,4]]}}}],["yyi",{"_index":1730,"t":{"322":{"position":[[96,71]]},"571":{"position":[[96,71]]}}}],["yyy是样本的真实标签,zzz",{"_index":2436,"t":{"456":{"position":[[435,22]]}}}],["y−f(x)∥2=∑[y−f(x)]22(6)\\vert",{"_index":2123,"t":{"408":{"position":[[142,29]]}}}],["y为bbox左上角坐标,h",{"_index":2944,"t":{"654":{"position":[[322,14]]}}}],["y轴数据、x轴数据,win参数是窗口的唯一标识,opt可选字典中可以给出窗口的title和legend",{"_index":2716,"t":{"544":{"position":[[49,66]]}}}],["z",{"_index":1677,"t":{"318":{"position":[[179,1],[243,1],[254,1],[272,3],[276,1],[323,3],[349,1],[428,1],[758,1],[794,1],[831,1],[877,1]]},"514":{"position":[[124,1]]},"567":{"position":[[179,1],[243,1],[254,1],[272,3],[276,1],[323,3],[349,1],[428,1],[759,1],[795,1],[832,1],[878,1]]},"593":{"position":[[153,4],[306,4],[517,4]]}}}],["z(k)z(k)z(k",{"_index":1402,"t":{"231":{"position":[[396,33]]}}}],["z=w∗x+bz=w*x+bz=w∗x+b",{"_index":2431,"t":{"456":{"position":[[217,60]]}}}],["zero",{"_index":1598,"t":{"301":{"position":[[31,4]]},"521":{"position":[[820,4]]},"550":{"position":[[31,4]]}}}],["zhang",{"_index":2605,"t":{"521":{"position":[[229,6],[243,6],[595,6]]}}}],["zhou等人首先在图像分类任务中采用上下文优化,在词嵌入空间中对具有连续向量的上下文词进行建模。随后prompt",{"_index":2657,"t":{"523":{"position":[[185,56]]}}}],["zi",{"_index":2439,"t":{"456":{"position":[[595,2]]}}}],["zip",{"_index":2503,"t":{"470":{"position":[[993,5],[999,39]]},"593":{"position":[[0,68],[83,8],[160,15],[522,36]]}}}],["zip(*zipped_list",{"_index":2802,"t":{"593":{"position":[[406,18]]}}}],["zip(a",{"_index":2505,"t":{"470":{"position":[[1099,6],[1293,6]]}}}],["zip(list1",{"_index":2797,"t":{"593":{"position":[[191,10]]}}}],["zipped_list",{"_index":2796,"t":{"593":{"position":[[176,12],[239,13]]}}}],["zip将list1、list2和list3",{"_index":2800,"t":{"593":{"position":[[311,42]]}}}],["zizhao",{"_index":2606,"t":{"521":{"position":[[236,6]]}}}],["zsh的配置文件:~/.zshrc",{"_index":2858,"t":{"610":{"position":[[37,17]]}}}],["zzz带入阈值函数,如符号函数sign(z)sign(z)sign(z",{"_index":2432,"t":{"456":{"position":[[278,56]]}}}],["z空间与w",{"_index":1668,"t":{"318":{"position":[[0,8]]},"567":{"position":[[0,8]]}}}],["z空间到w",{"_index":1669,"t":{"318":{"position":[[11,10]]},"567":{"position":[[11,10]]}}}]],"pipeline":["stemmer"]}}] \ No newline at end of file diff --git a/search/index.html b/search/index.html new file mode 100644 index 000000000..d7f857282 --- /dev/null +++ b/search/index.html @@ -0,0 +1,18 @@ + + + + + +搜索文档 + + + + +
+

搜索文档

+ + + + \ No newline at end of file diff --git a/sitemap.xml b/sitemap.xml new file mode 100644 index 000000000..0b6dc594f --- /dev/null +++ b/sitemap.xml @@ -0,0 +1 @@ +https://bonjour-npy.github.io/markdown-pageweekly0.5https://bonjour-npy.github.io/searchweekly0.5https://bonjour-npy.github.io/docs/Acknowledgement/introweekly0.5https://bonjour-npy.github.io/docs/Algorithms/%E6%9C%BA%E8%AF%95%E6%8A%80%E5%B7%A7%E4%B8%8ESTLweekly0.5https://bonjour-npy.github.io/docs/Algorithms/%E9%A2%98%E8%A7%A3/%E5%8F%8D%E5%BA%8F%E8%BE%93%E5%87%BAweekly0.5https://bonjour-npy.github.io/docs/Algorithms/%E9%A2%98%E8%A7%A3/%E6%8E%92%E5%88%97%E7%BB%84%E5%90%88%EF%BC%88%E6%B1%8230%E7%9A%84%E5%80%8D%E6%95%B0%EF%BC%89weekly0.5https://bonjour-npy.github.io/docs/Algorithms/%E9%A2%98%E8%A7%A3/%E4%B8%80%E7%BB%B4%E5%89%8D%E7%BC%80%E5%92%8C%EF%BC%88%E5%88%B7%E5%87%BA%E4%B8%80%E9%81%93%E5%A2%99%EF%BC%89weekly0.5https://bonjour-npy.github.io/docs/Algorithms/introweekly0.5https://bonjour-npy.github.io/docs/Algorithms/STL%E6%A8%A1%E6%9D%BFweekly0.5https://bonjour-npy.github.io/docs/Curriculum/%E7%BC%96%E8%AF%91%E5%8E%9F%E7%90%86/Noteweekly0.5https://bonjour-npy.github.io/docs/Curriculum/%E6%93%8D%E4%BD%9C%E7%B3%BB%E7%BB%9F%E8%AF%BE%E8%AE%BE/Environment-Configurationweekly0.5https://bonjour-npy.github.io/docs/Curriculum/%E6%93%8D%E4%BD%9C%E7%B3%BB%E7%BB%9F%E8%AF%BE%E8%AE%BE/GeekOS-project-0weekly0.5https://bonjour-npy.github.io/docs/Curriculum/%E6%95%B0%E5%AD%97%E5%9B%BE%E5%83%8F%E5%A4%84%E7%90%86/Noteweekly0.5https://bonjour-npy.github.io/docs/Curriculum/introweekly0.5https://bonjour-npy.github.io/docs/Deep-Learning/%E5%A4%A7%E6%A8%A1%E5%9E%8B/Attention-Is-All-You-Needweekly0.5https://bonjour-npy.github.io/docs/Deep-Learning/%E5%A4%A7%E6%A8%A1%E5%9E%8B/Diffusion-Modelweekly0.5https://bonjour-npy.github.io/docs/Deep-Learning/%E5%A4%A7%E6%A8%A1%E5%9E%8B/GANweekly0.5https://bonjour-npy.github.io/docs/Deep-Learning/%E5%A4%A7%E6%A8%A1%E5%9E%8B/Image-Generation-Modelsweekly0.5https://bonjour-npy.github.io/docs/Deep-Learning/%E5%A4%A7%E6%A8%A1%E5%9E%8B/Prompt%20Learning/Undergraduate-Dissertationweekly0.5https://bonjour-npy.github.io/docs/Deep-Learning/%E5%A4%A7%E6%A8%A1%E5%9E%8B/Self-Attentionweekly0.5https://bonjour-npy.github.io/docs/Deep-Learning/%E5%A4%A7%E6%A8%A1%E5%9E%8B/Self-Supervised-Learningweekly0.5https://bonjour-npy.github.io/docs/Deep-Learning/%E5%9F%BA%E7%A1%80%E7%9F%A5%E8%AF%86/%E6%BF%80%E6%B4%BB%E5%87%BD%E6%95%B0%E4%B8%8ELoss%E7%9A%84%E6%A2%AF%E5%BA%A6weekly0.5https://bonjour-npy.github.io/docs/Deep-Learning/%E5%9F%BA%E7%A1%80%E7%9F%A5%E8%AF%86/%E6%B7%B1%E5%BA%A6%E5%8F%AF%E5%88%86%E7%A6%BB%E5%8D%B7%E7%A7%AFweekly0.5https://bonjour-npy.github.io/docs/Deep-Learning/%E5%9F%BA%E7%A1%80%E7%9F%A5%E8%AF%86/%E6%AD%A3%E5%88%99%E5%8C%96%E4%B8%8E%E6%9D%83%E9%87%8D%E8%A1%B0%E9%80%80weekly0.5https://bonjour-npy.github.io/docs/Deep-Learning/%E5%9F%BA%E7%A1%80%E7%9F%A5%E8%AF%86/AlexNetweekly0.5https://bonjour-npy.github.io/docs/Deep-Learning/%E5%9F%BA%E7%A1%80%E7%9F%A5%E8%AF%86/ConvolutionalLayerweekly0.5https://bonjour-npy.github.io/docs/Deep-Learning/%E5%9F%BA%E7%A1%80%E7%9F%A5%E8%AF%86/FromFullyConnectedLayerToConvolutionalLayerweekly0.5https://bonjour-npy.github.io/docs/Deep-Learning/%E5%9F%BA%E7%A1%80%E7%9F%A5%E8%AF%86/K-foldCross-validationweekly0.5https://bonjour-npy.github.io/docs/Deep-Learning/%E5%9F%BA%E7%A1%80%E7%9F%A5%E8%AF%86/LeNetweekly0.5https://bonjour-npy.github.io/docs/Deep-Learning/%E5%9F%BA%E7%A1%80%E7%9F%A5%E8%AF%86/LogisticRegressionweekly0.5https://bonjour-npy.github.io/docs/Deep-Learning/%E5%9F%BA%E7%A1%80%E7%9F%A5%E8%AF%86/Perceptronweekly0.5https://bonjour-npy.github.io/docs/Deep-Learning/%E5%9F%BA%E7%A1%80%E7%9F%A5%E8%AF%86/PoolingLayerweekly0.5https://bonjour-npy.github.io/docs/Deep-Learning/%E5%9F%BA%E7%A1%80%E7%9F%A5%E8%AF%86/PytorchBasicsweekly0.5https://bonjour-npy.github.io/docs/Deep-Learning/%E8%AE%BA%E6%96%87%E7%AC%94%E8%AE%B0/Attention%20Is%20All%20You%20Needweekly0.5https://bonjour-npy.github.io/docs/Deep-Learning/%E8%AE%BA%E6%96%87%E7%AC%94%E8%AE%B0/Denoising%20Diffusion%20Probabilistic%20Modelsweekly0.5https://bonjour-npy.github.io/docs/Deep-Learning/%E8%AE%BA%E6%96%87%E7%AC%94%E8%AE%B0/High-Resolution%20Image%20Synthesis%20with%20Latent%20Diffusion%20Modelsweekly0.5https://bonjour-npy.github.io/docs/Deep-Learning/%E8%AE%BA%E6%96%87%E7%AC%94%E8%AE%B0/Zero-shot%20Generative%20Model%20Adaptation%20via%20Image-specific%20Prompt%20Learningweekly0.5https://bonjour-npy.github.io/docs/Deep-Learning/%E5%AE%9E%E6%88%98%E7%BB%83%E4%B9%A0/Speaker%20Classificationweekly0.5https://bonjour-npy.github.io/docs/Deep-Learning/%E5%AE%9E%E6%88%98%E7%BB%83%E4%B9%A0/Undergraduate-Dissertationweekly0.5https://bonjour-npy.github.io/docs/Deep-Learning/%E5%AE%9E%E6%88%98%E7%BB%83%E4%B9%A0/Visdom%20Visualizationweekly0.5https://bonjour-npy.github.io/docs/Deep-Learning/Fill-The-Gapsweekly0.5https://bonjour-npy.github.io/docs/Deep-Learning/introweekly0.5https://bonjour-npy.github.io/docs/Others/%E5%8D%9A%E5%AE%A2%E6%90%AD%E5%BB%BA/%E5%91%8A%E7%A4%BA%E6%A0%8Fweekly0.5https://bonjour-npy.github.io/docs/Others/introweekly0.5https://bonjour-npy.github.io/docs/Others/Linux/%E5%AE%A2%E5%88%B6%E5%8C%96/%E5%A6%82%E4%BD%95%E8%AE%A9%E4%BD%A0%E7%9A%84KDE%E7%9C%8B%E8%B5%B7%E6%9D%A5%E6%9B%B4%E5%83%8FmacOSweekly0.5https://bonjour-npy.github.io/docs/Others/Linux/%E5%AE%9E%E7%94%A8%E5%B7%A5%E5%85%B7/%E7%BB%88%E7%AB%AF%E4%BB%A3%E7%90%86weekly0.5https://bonjour-npy.github.io/docs/Others/Linux/%E9%97%AE%E9%A2%98%E8%A7%A3%E5%86%B3/%E5%8F%8C%E7%B3%BB%E7%BB%9F%E6%8C%82%E8%BD%BDWindows%E7%A3%81%E7%9B%98%E4%B8%BA%E5%8F%AA%E8%AF%BB%E6%96%87%E4%BB%B6weekly0.5https://bonjour-npy.github.io/docs/Tui-Mian/%E6%9C%BA%E8%AF%95/%E5%A4%A7%E6%95%B0%E9%99%A4%E6%B3%95weekly0.5https://bonjour-npy.github.io/docs/Tui-Mian/%E8%AE%A1%E7%AE%97%E6%9C%BA%E5%9F%BA%E7%A1%80%E7%BB%BC%E5%90%88/%E6%95%B0%E6%8D%AE%E7%BB%93%E6%9E%84weekly0.5https://bonjour-npy.github.io/docs/Tui-Mian/%E7%AE%80%E5%8E%86/%E7%AE%80%E5%8E%86%E9%9D%A2%E8%AF%95%E5%87%86%E5%A4%87weekly0.5https://bonjour-npy.github.io/docs/Tui-Mian/%E6%95%B0%E5%AD%A6/%E6%A6%82%E7%8E%87%E8%AE%BAweekly0.5https://bonjour-npy.github.io/docs/Tui-Mian/%E6%95%B0%E5%AD%A6/%E5%A4%8F%E4%BB%A4%E8%90%A5%E9%9D%A2%E8%AF%95%E6%95%B0%E5%AD%A6%E9%83%A8%E5%88%86%E5%A4%8D%E4%B9%A0weekly0.5https://bonjour-npy.github.io/docs/Tui-Mian/%E6%95%B0%E5%AD%A6/%E7%BA%BF%E6%80%A7%E4%BB%A3%E6%95%B0weekly0.5https://bonjour-npy.github.io/docs/Tui-Mian/introweekly0.5https://bonjour-npy.github.io/docs/Tui-Mian/Summaryweekly0.5https://bonjour-npy.github.io/weekly0.5 \ No newline at end of file