{"id":500,"date":"2023-07-05T20:57:07","date_gmt":"2023-07-05T12:57:07","guid":{"rendered":"https:\/\/blog.cirno.fun\/?p=500"},"modified":"2025-03-19T00:33:23","modified_gmt":"2025-03-18T16:33:23","slug":"chap2-%e6%a2%af%e5%ba%a6%e4%b8%8b%e9%99%8d%e4%b8%8e%e7%89%b9%e5%be%81%e7%bc%a9%e6%94%be","status":"publish","type":"post","link":"https:\/\/blog.sssn.tech\/?p=500","title":{"rendered":"[Chap2]-\u68af\u5ea6\u4e0b\u964d\u4e0e\u7279\u5f81\u7f29\u653e"},"content":{"rendered":"<p>\u8bbe\u60f3\u4e00\u4e2a\u8fd9\u6837\u7684\u60c5\u51b5<\/p>\n<p>\u6211\u4eec\u8981\u5bf9\u4e00\u4e2a\u4e8c\u5143\u7684\u635f\u5931\u51fd\u6570\u8fdb\u884c\u68af\u5ea6\u4e0b\u964d\uff0c\u5176\u4e2d\u4e24\u4e2a\u53c2\u6570(\u81ea\u53d8\u91cf)\u7684\u8303\u56f4\u5206\u522b\u662f[0,2000]\u548c[1, 5]<\/p>\n<p>\u8fd9\u662f\u6709\u53ef\u80fd\u53d1\u751f\u7684\uff0c\u6bd4\u5982\u5bf9\u4e8e\u9884\u6d4b\u4e00\u4e2a\u623f\u5b50\u7684\u4ef7\u683c\u65f6\uff0c\u5367\u5ba4\u6570\u91cf\u4e0e\u6240\u5728\u9762\u79ef\uff08\u56fe\u4e2d\u662f\u5e73\u65b9\u5c3a\uff09\u5c31\u76f8\u5dee\u5f88\u591a\u6570\u91cf\u7ea7<\/p>\n<p>\u8fd9\u4f1a\u5bfc\u81f4\u635f\u5931\u51fd\u6570\u7684\u56fe\u50cf\u53d8\u5f97\u5f02\u5e38\u82d7\u6761<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/blog.sssn.tech\/wp-content\/uploads\/2023\/07\/image-1688560031568.png\" alt=\"file\" \/><\/p>\n<p>\u5982\u5de6\u56fe\uff0c\u8fc7\u4e8e\u82d7\u6761\u7684\u635f\u5931\u51fd\u6570\u56fe\u50cf\u4f1a\u5bfc\u81f4\u5728\u68af\u5ea6\u4e0b\u964d\u7684\u8fc7\u7a0b\u4e2d\uff0c\u6bcf\u4e00\u6b65\u90fd\u5728\u4e00\u4e2a\u5c3a\u5ea6\u4e0a\u8de8\u8d8a\u4e86\u8fc7\u77ed\u8ddd\u79bb\uff0c\u5374\u5728\u53e6\u4e00\u4e2a\u5c3a\u5ea6\u4e0a\u8de8\u8d8a\u8fc7\u5927\uff0c\u4ece\u800c\u5bfc\u81f4\u56fe\u4e2d\u7ea2\u7ebf\u5904\u8fde\u7eed\u6447\u6446\u7684\u60c5\u51b5\uff0c\u8fd9\u4e0d\u5229\u4e8e\u7b97\u6cd5\u7684\u6267\u884c\u6548\u7387<\/p>\n<p>\u6211\u4eec\u5e0c\u671b\u635f\u5931\u51fd\u6570\u7684\u56fe\u50cf\u662f\u5300\u79f0\u7684\uff0c\u5982\u53f3\u56fe\u90a3\u6837\uff0c\u6765\u4fdd\u8bc1\u68af\u5ea6\u4e0b\u964d\u7684\u6bcf\u4e00\u6b65\u90fd\u53ef\u4ee5\u5339\u914d\u4e24\u4e2a\u5750\u6807\u5c3a\u5ea6\uff0c\u4ece\u800c\u66f4\u5feb\u901f\u7684\u8d70\u5230\u6700\u4f4e\u70b9\u3002<\/p>\n<p>\u4e00\u4e2a\u5f88\u81ea\u7136\u7684\u60f3\u6cd5\u4fbf\u662f\u53f3\u56fe\u4e0a\u4fa7\u7684\u64cd\u4f5c\uff0c\u5c06\u4e24\u4e2a\u53d8\u91cf\u7f29\u653e\u81f3[0, 1]\u533a\u95f4\u6765\u4fdd\u8bc1\u5c3a\u5ea6\u5bf9\u5e94<\/p>\n<p>\u8fd9\u4e2a\u64cd\u4f5c\u5c31\u53ef\u4ee5\u79f0\u4f5c<strong>\u7279\u5f81\u7f29\u653e(Feature Scaling)<\/strong><\/p>\n<p>\u4e8b\u5b9e\u4e0a\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7\u5982\u4e0b\u7684\u516c\u5f0f\u6765\u7f29\u653e\u7edd\u5927\u90e8\u5206\u5411\u91cf:<\/p>\n<pre><code class=\"language-katex\">x_i=\\frac{x_i-\\mu }{s_i} <\/code><\/pre>\n<p>\u5176\u4e2d<code>\\mu<\/code>\u662f\u5411\u91cf\u4e2d\u6240\u6709\u5143\u7d20\u7684\u5e73\u5747\u503c\uff0c<code>s_i<\/code>\u662f\u6807\u51c6\u5dee\u6216\u8005\u6781\u5dee \u8fd9\u4e2a\u65b9\u6cd5\u53eb\u505a<strong>\u5747\u503c\u5f52\u4e00\u5316(Mean normalization)<\/strong><\/p>\n<p>\u9700\u8981\u6ce8\u610f\u7684\u662f\uff0c\u7279\u5f81\u7f29\u653e\u5e76\u4e0d\u662f\u4e00\u4ef6\u5f88\u4e25\u683c\u7684\u4e8b\uff0c\u4ed6\u53ea\u662f\u4e3a\u4e86\u4f18\u5316\u68af\u5ea6\u4e0b\u964d\u6548\u7387\u7684\u4e00\u4e2a\u6280\u5de7\uff0c\u6362\u53e5\u8bdd\u8bf4\uff0c\u6ca1\u6709\u660e\u786e\u7684\u6807\u51c6\u6765\u89c4\u5b9a\u6bcf\u4e2a\u5411\u91cf\u7684\u6570\u636e\u5c3a\u5ea6\u5e94\u8be5\u662f\u591a\u5c11\uff0c\u4ece\u7ecf\u9a8c\u4e0a\u6765\u8bb2\uff0c[-1, 1]\u7684\u5c3a\u5ea6\u53ef\u4ee5\u63a5\u53d71\/3\u523030\u5de6\u53f3\u7684\u5c3a\u5ea6\u504f\u5dee<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u8bbe\u60f3\u4e00\u4e2a\u8fd9\u6837\u7684\u60c5\u51b5 \u6211\u4eec\u8981\u5bf9\u4e00\u4e2a\u4e8c\u5143\u7684\u635f\u5931\u51fd\u6570\u8fdb\u884c\u68af\u5ea6\u4e0b\u964d\uff0c\u5176\u4e2d\u4e24\u4e2a\u53c2\u6570(\u81ea\u53d8\u91cf [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11,18],"tags":[],"class_list":["post-500","post","type-post","status-publish","format-standard","hentry","category-11","category-18"],"_links":{"self":[{"href":"https:\/\/blog.sssn.tech\/index.php?rest_route=\/wp\/v2\/posts\/500","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.sssn.tech\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.sssn.tech\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.sssn.tech\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.sssn.tech\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=500"}],"version-history":[{"count":2,"href":"https:\/\/blog.sssn.tech\/index.php?rest_route=\/wp\/v2\/posts\/500\/revisions"}],"predecessor-version":[{"id":836,"href":"https:\/\/blog.sssn.tech\/index.php?rest_route=\/wp\/v2\/posts\/500\/revisions\/836"}],"wp:attachment":[{"href":"https:\/\/blog.sssn.tech\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=500"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.sssn.tech\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=500"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.sssn.tech\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=500"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}