{"id":3083,"date":"2022-02-27T11:14:24","date_gmt":"2022-02-27T03:14:24","guid":{"rendered":"https:\/\/egonlin.com\/?p=3083"},"modified":"2022-02-27T11:14:24","modified_gmt":"2022-02-27T03:14:24","slug":"%e7%ac%ac%e4%b8%80%e8%8a%82%ef%bc%9ascikit-learn%e5%ba%93%e4%b9%8b%e6%9c%b4%e7%b4%a0%e8%b4%9d%e5%8f%b6%e6%96%af","status":"publish","type":"post","link":"https:\/\/egonlin.com\/?p=3083","title":{"rendered":"\u7b2c\u4e00\u8282\uff1ascikit-learn\u5e93\u4e4b\u6734\u7d20\u8d1d\u53f6\u65af"},"content":{"rendered":"<h1>scikit-learn\u5e93\u4e4b\u6734\u7d20\u8d1d\u53f6\u65af<\/h1>\n<p>&emsp;&emsp;\u5728scikit-learn\u5e93\u4e2d\u6734\u7d20\u8d1d\u53f6\u65af\u7531\u4e8e\u6570\u636e\u5206\u5e03\u7684\u4e0d\u540c\uff0c\u4e3b\u8981\u5206\u4e3a\u4ee5\u4e0b\u4e09\u79cd<code>BernoulliNB<\/code>\u3001<code>GaussianNB<\/code>\u548c<code>MultinomialNB<\/code>\uff0c\u5148\u9a8c\u5206\u5e03\u5206\u522b\u5bf9\u5e94\u4f2f\u52aa\u5229\u5206\u5e03\u3001\u9ad8\u65af\u5206\u5e03\u548c\u591a\u9879\u5f0f\u5206\u5e03\u3002<\/p>\n<p>&emsp;&emsp;\u63a5\u4e0b\u6765\u5c06\u4f1a\u8ba8\u8bba\u8fd9\u4e09\u8005\u7684\u533a\u522b\uff0c\u7531\u4e8e<code>MUltinomiallNB<\/code>\u7528\u7684\u6bd4\u8f83\u591a\uff0c\u56e0\u6b64\u4f1a\u7ec6\u8bb2\u8be5\u6a21\u578b\u3002\u7531\u4e8e\u662f\u4ece\u5b98\u65b9\u6587\u6863\u7ffb\u8bd1\u800c\u6765\uff0c\u7ffb\u8bd1\u4f1a\u7565\u6709\u504f\u9887\uff0c\u6709\u5174\u8da3\u7684\u4e5f\u53ef\u4ee5\u53bbscikit-learn\u5b98\u65b9\u6587\u6863\u67e5\u770bhttps:\/\/scikit-learn.org\/stable\/modules\/classes.html#module-sklearn.naive_bayes<\/p>\n<h1>MultinomialNB<\/h1>\n<h2>\u4f7f\u7528\u573a\u666f<\/h2>\n<p>&emsp;&emsp;<code>Bernoulli<\/code>\u5206\u5e03\u4e00\u822c\u5e94\u7528\u4e8e\u6837\u672c\u7279\u5f81\u662f\u4e8c\u5143\u79bb\u6563\u503c\uff0c\u6216\u8005\u662f\u5f88\u7a00\u758f\u7684\u591a\u5143\u79bb\u6563\u503c\u7684\u573a\u666f\u3002<\/p>\n<h2>\u4ee3\u7801<\/h2>\n<p><\/p><div id=\"rml_readmorelogin_placeholder\" style=\"position:relative;\"><div id=\"rml_fade_content\" style=\"position: absolute;\r\ntop:-10em;\r\nwidth:100%;\r\nheight:10em;\r\nbackground: -webkit-linear-gradient(rgba(255, 255, 255, 0) 0%,#ffffff 100%);\r\nbackground-image: -moz-linear-gradient(rgba(255, 255, 255, 0) 0%,#ffffff 100%);\r\nbackground-image: -o-linear-gradient(rgba(255, 255, 255, 0) 0%,#ffffff 100%);\r\nbackground-image: linear-gradient(rgba(255, 255, 255, 0) 0%,#ffffff 100%);\r\nbackground-image: -ms-linear-gradient(rgba(255, 255, 255, 0) 0%,#ffffff 100%);\"><\/div><div class=\"wpf-controller aru_rml_from_in_post\" style=\"background-color:#eeeeee;border:5px solid #cce6ff;\" id=\"ARU_ReadMoreLogin_ReadMoreLoginController\"><h2 id=\"Header\">\u67e5\u770b\u66f4\u591a<\/h2><div id=\"Message\"><p>\u8054\u7cfb\u7ba1\u7406\u5458\u5fae\u4fe1tutu19192010\uff0c\u6ce8\u518c\u8d26\u53f7<\/p>\n<\/div><div id=\"StatusBarHeader\"><\/div><form id=\"ARU_ReadMoreLogin_ReadMoreLoginController\"><input name=\"post_id\" value=\"3083\" type=\"hidden\"\/><input name=\"_init_callback\" value=\"InitLogin\" type=\"hidden\"\/><input name=\"post_id\" value=\"3083\" type=\"hidden\"\/><input name=\"rt_ype\" value=\"1\" type=\"hidden\"\/><input name=\"nonce\" value=\"63c53bb1dc\" type=\"hidden\"\/><input name=\"_wpnonce\" value=\"ee095c8387\" type=\"hidden\"\/><input name=\"_controller\" value=\"ARU_ReadMoreLogin\\ReadMoreLoginController\" type=\"hidden\"\/><input name=\"_proxy_controller\" value=\"ARU_ReadMoreLogin\\ReadMoreLoginController\" type=\"hidden\"\/><input name=\"_view\" value=\"ARU_ReadMoreLogin\\ReadMoreLoginView\" type=\"hidden\"\/><table class=\"wpf-table-placeholder\"><tbody class=\"wpf-table-placeholder\"><tr class=\"wpf-table-placeholder\"><td class=\"wpf-table-placeholder-input\" width=\"400px\"><table class=\"wpf-table-placeholder\"><tbody class=\"wpf-table-placeholder\"><tr class=\"wpf-table-placeholder\"><th class=\"wpf-table-placeholder-input\"><label class=\"wpf-label\">Username:<\/label><\/th><\/tr><tr class=\"wpf-table-placeholder\"><td class=\"wpf-table-placeholder-input\"><input class=\"regular-text text_input\" name=\"username\" value=\"\" type=\"text\"\/><\/td><\/tr><tr class=\"wpf-table-placeholder\"><th class=\"wpf-table-placeholder-input\"><label class=\"wpf-label\">Password:<\/label><\/th><\/tr><tr class=\"wpf-table-placeholder\"><td class=\"wpf-table-placeholder-input\"><input class=\"regular-text text_input\" name=\"password\" value=\"\" type=\"password\"\/><\/td><\/tr><\/tbody><\/table><p class=\"wpf-table-placeholder submit\"><button class=\"wp_plugin_framework_ajax_button\" type=\"button\" style=\"background-color:#4D90FE;;color:#ffffff;;border:1px solid #3079ed;\" name=\"_event\" value=\"ButtonLogin\">Log in<\/button><\/p><\/td><td class=\"wpf-table-placeholder-input\"><\/td><\/tr><\/tbody><\/table><\/form><div id=\"ButtonStartRegister\"><a href=\"https:\/\/egonlin.com\/wp-login.php?action=register\">Register<\/a><\/div><div id=\"Link1\"><a href=\"https:\/\/egonlin.com\/wp-login.php?action=lostpassword\">Forgotten username or password?<\/a><\/div><div id=\"StatusBarFooter\"><\/div><\/div><\/div><div id=aru_remaining_content><\/div>","protected":false},"excerpt":{"rendered":"<p>scikit-learn\u5e93\u4e4b\u6734\u7d20\u8d1d\u53f6\u65af &emsp;&emsp;\u5728scikit-learn\u5e93\u4e2d\u6734\u7d20\u8d1d\u53f6\u65af\u7531\u4e8e\u6570 [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[276,290],"tags":[],"_links":{"self":[{"href":"https:\/\/egonlin.com\/index.php?rest_route=\/wp\/v2\/posts\/3083"}],"collection":[{"href":"https:\/\/egonlin.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/egonlin.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/egonlin.com\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/egonlin.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3083"}],"version-history":[{"count":0,"href":"https:\/\/egonlin.com\/index.php?rest_route=\/wp\/v2\/posts\/3083\/revisions"}],"wp:attachment":[{"href":"https:\/\/egonlin.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3083"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/egonlin.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3083"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/egonlin.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3083"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}