{"id":3011,"date":"2023-07-19T15:56:18","date_gmt":"2023-07-19T15:56:18","guid":{"rendered":"https:\/\/statorials.org\/cn\/sklearn%e7%ba%bf%e6%80%a7%e5%9b%9e%e5%bd%92%e6%80%bb%e7%bb%93\/"},"modified":"2023-07-19T15:56:18","modified_gmt":"2023-07-19T15:56:18","slug":"sklearn%e7%ba%bf%e6%80%a7%e5%9b%9e%e5%bd%92%e6%80%bb%e7%bb%93","status":"publish","type":"post","link":"https:\/\/statorials.org\/cn\/sklearn%e7%ba%bf%e6%80%a7%e5%9b%9e%e5%bd%92%e6%80%bb%e7%bb%93\/","title":{"rendered":"\u5982\u4f55\u4ece scikit-learn \u83b7\u53d6\u56de\u5f52\u6a21\u578b\u6458\u8981"},"content":{"rendered":"<p><\/p>\n<hr>\n<p><span style=\"color: #000000;\">\u901a\u5e38\uff0c\u60a8\u53ef\u80fd\u5e0c\u671b\u63d0\u53d6\u5728 Python \u4e2d\u4f7f\u7528<a href=\"https:\/\/scikit-learn.org\/stable\/index.html\" target=\"_blank\" rel=\"noopener\">scikit-learn<\/a>\u521b\u5efa\u7684\u56de\u5f52\u6a21\u578b\u7684\u6458\u8981\u3002<\/span><\/p>\n<p><span style=\"color: #000000;\">\u4e0d\u5e78\u7684\u662f\uff0cscikit-learn \u6ca1\u6709\u63d0\u4f9b\u8bb8\u591a\u7528\u4e8e\u5206\u6790\u56de\u5f52\u6a21\u578b\u6458\u8981\u7684\u5185\u7f6e\u51fd\u6570\uff0c\u56e0\u4e3a\u5b83\u901a\u5e38\u4ec5\u7528\u4e8e<a href=\"https:\/\/statorials.org\/cn\/\u63a8\u7406\u4e0e\u9884\u6d4b\/\" target=\"_blank\" rel=\"noopener\">\u9884\u6d4b\u76ee\u7684<\/a>\u3002<\/span><\/p>\n<p><span style=\"color: #000000;\">\u56e0\u6b64\uff0c\u5982\u679c\u60a8\u60f3\u83b7\u5f97 Python \u56de\u5f52\u6a21\u578b\u7684\u6458\u8981\uff0c\u60a8\u6709\u4e24\u4e2a\u9009\u62e9\uff1a<\/span><\/p>\n<p> <span style=\"color: #000000;\"><strong>1.<\/strong>\u4f7f\u7528scikit-learn\u7684\u6709\u9650\u529f\u80fd\u3002<\/span><\/p>\n<p> <span style=\"color: #000000;\"><strong>2.<\/strong>\u6539\u7528<a href=\"https:\/\/www.statsmodels.org\/stable\/index.html\" target=\"_blank\" rel=\"noopener\">\u7edf\u8ba1\u6a21\u578b<\/a>\u3002<\/span><\/p>\n<p><span style=\"color: #000000;\">\u4ee5\u4e0b\u793a\u4f8b\u5c55\u793a\u4e86\u5982\u4f55\u5728\u5b9e\u8df5\u4e2d\u4f7f\u7528\u4ee5\u4e0b pandas DataFrame \u7684\u6bcf\u79cd\u65b9\u6cd5\uff1a<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong><span style=\"color: #008000;\">import<\/span> pandas <span style=\"color: #008000;\">as<\/span> pd\n\n<span style=\"color: #008080;\">#createDataFrame\n<span style=\"color: #000000;\">df = pd. <span style=\"color: #3366ff;\">DataFrame<\/span> ({' <span style=\"color: #ff0000;\">x1<\/span> ': [1, 2, 2, 4, 2, 1, 5, 4, 2, 4, 4],\n                   ' <span style=\"color: #ff0000;\">x2<\/span> ': [1, 3, 3, 5, 2, 2, 1, 1, 0, 3, 4],\n                   ' <span style=\"color: #ff0000;\">y<\/span> ': [76, 78, 85, 88, 72, 69, 94, 94, 88, 92, 90]})\n\n<span style=\"color: #008080;\">#view first five rows of DataFrame\n<\/span>df. <span style=\"color: #3366ff;\">head<\/span> ()\n\n       x1 x2 y\n0 1 1 76\n1 2 3 78\n2 2 3 85\n3 4 5 88\n4 2 2 72\n<\/span><\/span><\/strong><\/pre>\n<h3><span style=\"color: #000000;\"><strong>\u65b9\u6cd5 1\uff1a\u4ece Scikit-Learn \u83b7\u53d6\u56de\u5f52\u6a21\u578b\u6458\u8981<\/strong><\/span><\/h3>\n<p><span style=\"color: #000000;\">\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u4ee3\u7801\u6765\u4f7f\u7528 scikit-learn \u62df\u5408<a href=\"https:\/\/statorials.org\/cn\/\u591a\u5143\u7ebf\u6027\u56de\u5f52-1\/\" target=\"_blank\" rel=\"noopener\">\u591a\u5143\u7ebf\u6027\u56de\u5f52<\/a>\u6a21\u578b\uff1a<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong><span style=\"color: #008000;\"><span style=\"color: #000000;\"><span style=\"color: #008000;\">from<\/span> sklearn. <span style=\"color: #3366ff;\">linear_model<\/span> <span style=\"color: #008000;\">import<\/span> LinearRegression\n\n<span style=\"color: #008080;\">#initiate linear regression model\n<\/span>model = LinearRegression()\n\n<span style=\"color: #008080;\">#define predictor and response variables\n<\/span>x, y = df[[' <span style=\"color: #ff0000;\">x1<\/span> ', ' <span style=\"color: #ff0000;\">x2<\/span> ']], df. <span style=\"color: #3366ff;\">y<\/span>\n\n<span style=\"color: #008080;\">#fit regression model\n<\/span>model. <span style=\"color: #3366ff;\">fit<\/span> (x,y)\n<\/span><\/span><\/strong><\/pre>\n<p><span style=\"color: #000000;\"><span style=\"color: #000000;\">\u7136\u540e\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u4ee3\u7801\u4ece\u6a21\u578b\u4e2d\u63d0\u53d6\u56de\u5f52\u7cfb\u6570\u4ee5\u53ca\u6a21\u578b\u7684<a href=\"https:\/\/statorials.org\/cn\/\u826f\u597d\u7684-r-\u5e73\u65b9\u503c\/\" target=\"_blank\" rel=\"noopener\">R \u5e73\u65b9\u503c<\/a>\uff1a<\/span><\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong><span style=\"color: #008000;\"><span style=\"color: #000000;\"><span style=\"color: #008080;\">#display regression coefficients and R-squared value of model<\/span>\n<span style=\"color: #008000;\">print<\/span> (model. <span style=\"color: #3366ff;\">intercept_<\/span> , model. <span style=\"color: #3366ff;\">coef_<\/span> , model. <span style=\"color: #3366ff;\">score<\/span> (X, y))\n\n70.4828205704 [5.7945 -1.1576] 0.766742556527\n<\/span><\/span><\/strong><\/pre>\n<p><span style=\"color: #000000;\">\u4f7f\u7528\u6b64\u8f93\u51fa\uff0c\u6211\u4eec\u53ef\u4ee5\u7f16\u5199\u62df\u5408\u56de\u5f52\u6a21\u578b\u7684\u65b9\u7a0b\uff1a<\/span><\/p>\n<p> <span style=\"color: #000000;\">y = 70.48 + 5.79x <sub>1<\/sub> \u2013 1.16x <sub>2<\/sub><\/span><\/p>\n<p><span style=\"color: #000000;\">\u8fd8\u53ef\u4ee5\u770b\u51fa\uff0c\u6a21\u578b\u7684R <sup>2<\/sup>\u503c\u4e3a76.67\u3002<\/span><\/p>\n<p><span style=\"color: #000000;\">\u8fd9\u610f\u5473\u7740\u54cd\u5e94\u53d8\u91cf\u4e2d<strong>76.67%<\/strong>\u7684\u53d8\u5f02\u53ef\u4ee5\u7531\u6a21\u578b\u4e2d\u7684\u4e24\u4e2a\u9884\u6d4b\u53d8\u91cf\u6765\u89e3\u91ca\u3002<\/span><\/p>\n<p><span style=\"color: #000000;\">\u867d\u7136\u8fd9\u4e2a\u7ed3\u679c\u5f88\u6709\u7528\uff0c\u4f46\u6211\u4eec\u4ecd\u7136\u4e0d\u77e5\u9053\u6a21\u578b\u7684<a href=\"https:\/\/statorials.org\/cn\/\u4e86\u89e3\u56de\u5f52\u4e2d\u603b\u4f53\u663e\u7740\u6027\u7684-f-\u68c0\u9a8c\u7684\u7b80\u5355\u6307\u5357\/\" target=\"_blank\" rel=\"noopener\">\u6574\u4f53 F \u7edf\u8ba1\u91cf<\/a>\u3001\u5404\u4e2a<a href=\"https:\/\/statorials.org\/cn\/\u5982\u4f55\u89e3\u91ca\u56de\u5f52\u7cfb\u6570\/\" target=\"_blank\" rel=\"noopener\">\u56de\u5f52\u7cfb\u6570<\/a>\u7684 p \u503c\u4ee5\u53ca\u5176\u4ed6\u53ef\u4ee5\u5e2e\u52a9\u6211\u4eec\u4e86\u89e3\u6a21\u578b\u62df\u5408\u7a0b\u5ea6\u7684\u6709\u7528\u5ea6\u91cf\u3002\u6570\u636e\u96c6.\u6570\u636e\u96c6\u3002<\/span><\/p>\n<h3><span style=\"color: #000000;\"><strong>\u65b9\u6cd52\uff1a\u4eceStatsmodels\u83b7\u53d6\u56de\u5f52\u6a21\u578b\u6458\u8981<\/strong><\/span><\/h3>\n<p><span style=\"color: #000000;\">\u5982\u679c\u4f60\u60f3\u5728Python\u4e2d\u63d0\u53d6\u56de\u5f52\u6a21\u578b\u7684\u6458\u8981\uff0c\u6700\u597d\u4f7f\u7528<strong>statsmodels<\/strong>\u5305\u3002<\/span><\/p>\n<p><span style=\"color: #000000;\">\u4ee5\u4e0b\u4ee3\u7801\u5c55\u793a\u4e86\u5982\u4f55\u4f7f\u7528\u6b64\u5305\u6765\u62df\u5408\u4e0e\u524d\u9762\u7684\u793a\u4f8b\u76f8\u540c\u7684\u591a\u5143\u7ebf\u6027\u56de\u5f52\u6a21\u578b\u5e76\u63d0\u53d6\u6a21\u578b\u6458\u8981\uff1a<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <span style=\"color: #000000;\"><strong><span style=\"color: #008000;\">import<\/span> statsmodels. <span style=\"color: #3366ff;\">api<\/span> <span style=\"color: #008000;\">as<\/span> sm\n\n<span style=\"color: #008080;\">#define response variable\n<\/span>y = df[' <span style=\"color: #ff0000;\">y<\/span> ']\n\n<span style=\"color: #008080;\">#define predictor variables\n<\/span>x = df[[' <span style=\"color: #ff0000;\">x1<\/span> ', ' <span style=\"color: #ff0000;\">x2<\/span> ']]\n\n<span style=\"color: #008080;\">#add constant to predictor variables\n<\/span>x = sm. <span style=\"color: #3366ff;\">add_constant<\/span> (x)\n\n<span style=\"color: #008080;\">#fit linear regression model\n<\/span>model = sm. <span style=\"color: #3366ff;\">OLS<\/span> (y,x). <span style=\"color: #3366ff;\">fit<\/span> ()\n\n<span style=\"color: #008080;\">#view model summary\n<\/span><span style=\"color: #008000;\">print<\/span> ( <span style=\"color: #3366ff;\">model.summary<\/span> ())\n\n                            OLS Regression Results                            \n==================================================== ============================\nDept. Variable: y R-squared: 0.767\nModel: OLS Adj. R-squared: 0.708\nMethod: Least Squares F-statistic: 13.15\nDate: Fri, 01 Apr 2022 Prob (F-statistic): 0.00296\nTime: 11:10:16 Log-Likelihood: -31.191\nNo. Comments: 11 AIC: 68.38\nDf Residuals: 8 BIC: 69.57\nDf Model: 2                                         \nCovariance Type: non-robust                                         \n==================================================== ============================\n                 coef std err t P&gt;|t| [0.025 0.975]\n-------------------------------------------------- ----------------------------\nconst 70.4828 3.749 18.803 0.000 61.839 79.127\nx1 5.7945 1.132 5.120 0.001 3.185 8.404\nx2 -1.1576 1.065 -1.087 0.309 -3.613 1.298\n==================================================== ============================\nOmnibus: 0.198 Durbin-Watson: 1.240\nProb(Omnibus): 0.906 Jarque-Bera (JB): 0.296\nSkew: -0.242 Prob(JB): 0.862\nKurtosis: 2.359 Cond. No. 10.7\n==================================================== ============================\n<\/strong><\/span><\/pre>\n<p><span style=\"color: #000000;\">\u8bf7\u6ce8\u610f\uff0c\u56de\u5f52\u7cfb\u6570\u548c R \u5e73\u65b9\u503c\u4e0e scikit-learn \u8ba1\u7b97\u7684\u7ed3\u679c\u76f8\u5339\u914d\uff0c\u4f46\u6211\u4eec\u8fd8\u6709\u5927\u91cf\u5176\u4ed6\u7528\u4e8e\u56de\u5f52\u6a21\u578b\u7684\u6709\u7528\u6307\u6807\u3002<\/span><\/p>\n<p><span style=\"color: #000000;\">\u4f8b\u5982\uff0c\u6211\u4eec\u53ef\u4ee5\u770b\u5230\u6bcf\u4e2a\u5355\u72ec\u9884\u6d4b\u53d8\u91cf\u7684 p \u503c\uff1a<\/span><\/p>\n<ul>\n<li> <span style=\"color: #000000;\">x <sub>1<\/sub>\u7684 p \u503c = 0.001<\/span><\/li>\n<li> <span style=\"color: #000000;\">x <sub>2<\/sub>\u7684 p \u503c = 0.309<\/span><\/li>\n<\/ul>\n<p><span style=\"color: #000000;\">\u6211\u4eec\u8fd8\u53ef\u4ee5\u770b\u5230\u6a21\u578b\u7684\u6574\u4f53 F \u7edf\u8ba1\u91cf\u3001<a href=\"https:\/\/statorials.org\/cn\/\u8c03\u6574\u540e\u7684-r-\u5e73\u65b9\u89e3\u91ca\/\" target=\"_blank\" rel=\"noopener\">\u8c03\u6574\u540e\u7684 R \u5e73\u65b9<\/a>\u503c\u3001\u6a21\u578b<a href=\"https:\/\/statorials.org\/cn\" target=\"_blank\" rel=\"noopener\">AIC \u503c<\/a>\u7b49\u7b49\u3002<\/span><\/p>\n<h3><span style=\"color: #000000;\"><strong>\u5176\u4ed6\u8d44\u6e90<\/strong><\/span><\/h3>\n<p><span style=\"color: #000000;\">\u4ee5\u4e0b\u6559\u7a0b\u89e3\u91ca\u4e86\u5982\u4f55\u5728 Python \u4e2d\u6267\u884c\u5176\u4ed6\u5e38\u89c1\u64cd\u4f5c\uff1a<\/span><\/p>\n<p> <a href=\"https:\/\/statorials.org\/cn\/python-\u4e2d\u7684\u7b80\u5355\u7ebf\u6027\u56de\u5f52\/\" target=\"_blank\" rel=\"noopener noreferrer\">\u5982\u4f55\u5728 Python \u4e2d\u6267\u884c\u7b80\u5355\u7ebf\u6027\u56de\u5f52<\/a><br \/> <a href=\"https:\/\/statorials.org\/cn\/\u7ebf\u6027\u56de\u5f52-python\/\" target=\"_blank\" rel=\"noopener noreferrer\">\u5982\u4f55\u5728 Python \u4e2d\u6267\u884c\u591a\u5143\u7ebf\u6027\u56de\u5f52<\/a><br \/><a href=\"https:\/\/statorials.org\/cn\/\u87d2\u86c7\u4e2d\u7684aic\/\" target=\"_blank\" rel=\"noopener\">\u5982\u4f55\u7528Python\u8ba1\u7b97\u56de\u5f52\u6a21\u578b\u7684AIC<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u901a\u5e38\uff0c\u60a8\u53ef\u80fd\u5e0c\u671b\u63d0\u53d6\u5728 Python \u4e2d\u4f7f\u7528scikit-learn\u521b\u5efa\u7684\u56de\u5f52\u6a21\u578b\u7684\u6458\u8981\u3002 \u4e0d\u5e78\u7684\u662f\uff0cscik [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11],"tags":[],"class_list":["post-3011","post","type-post","status-publish","format-standard","hentry","category-11"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v21.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u5982\u4f55\u4ece Scikit-Learn \u83b7\u53d6\u56de\u5f52\u6a21\u578b\u6458\u8981 - Statorials<\/title>\n<meta name=\"description\" content=\"\u672c\u6559\u7a0b\u901a\u8fc7\u4e00\u4e2a\u793a\u4f8b\u89e3\u91ca\u4e86\u5982\u4f55\u4ece scikit-learn \u521b\u5efa\u7684\u56de\u5f52\u6a21\u578b\u4e2d\u63d0\u53d6\u6458\u8981\u3002\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/statorials.org\/cn\/sklearn\u7ebf\u6027\u56de\u5f52\u603b\u7ed3\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u5982\u4f55\u4ece Scikit-Learn \u83b7\u53d6\u56de\u5f52\u6a21\u578b\u6458\u8981 - Statorials\" \/>\n<meta property=\"og:description\" content=\"\u672c\u6559\u7a0b\u901a\u8fc7\u4e00\u4e2a\u793a\u4f8b\u89e3\u91ca\u4e86\u5982\u4f55\u4ece scikit-learn \u521b\u5efa\u7684\u56de\u5f52\u6a21\u578b\u4e2d\u63d0\u53d6\u6458\u8981\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/statorials.org\/cn\/sklearn\u7ebf\u6027\u56de\u5f52\u603b\u7ed3\/\" \/>\n<meta property=\"og:site_name\" content=\"Statorials\" \/>\n<meta property=\"article:published_time\" content=\"2023-07-19T15:56:18+00:00\" \/>\n<meta name=\"author\" content=\"\u672c\u6770\u660e\u00b7\u5b89\u5fb7\u68ee\u535a\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u672c\u6770\u660e\u00b7\u5b89\u5fb7\u68ee\u535a\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/statorials.org\/cn\/sklearn%e7%ba%bf%e6%80%a7%e5%9b%9e%e5%bd%92%e6%80%bb%e7%bb%93\/\",\"url\":\"https:\/\/statorials.org\/cn\/sklearn%e7%ba%bf%e6%80%a7%e5%9b%9e%e5%bd%92%e6%80%bb%e7%bb%93\/\",\"name\":\"\u5982\u4f55\u4ece Scikit-Learn \u83b7\u53d6\u56de\u5f52\u6a21\u578b\u6458\u8981 - Statorials\",\"isPartOf\":{\"@id\":\"https:\/\/statorials.org\/cn\/#website\"},\"datePublished\":\"2023-07-19T15:56:18+00:00\",\"dateModified\":\"2023-07-19T15:56:18+00:00\",\"author\":{\"@id\":\"https:\/\/statorials.org\/cn\/#\/schema\/person\/124e4e5b7c9f8dc0f1f95cc8c1db3261\"},\"description\":\"\u672c\u6559\u7a0b\u901a\u8fc7\u4e00\u4e2a\u793a\u4f8b\u89e3\u91ca\u4e86\u5982\u4f55\u4ece scikit-learn \u521b\u5efa\u7684\u56de\u5f52\u6a21\u578b\u4e2d\u63d0\u53d6\u6458\u8981\u3002\",\"breadcrumb\":{\"@id\":\"https:\/\/statorials.org\/cn\/sklearn%e7%ba%bf%e6%80%a7%e5%9b%9e%e5%bd%92%e6%80%bb%e7%bb%93\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/statorials.org\/cn\/sklearn%e7%ba%bf%e6%80%a7%e5%9b%9e%e5%bd%92%e6%80%bb%e7%bb%93\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/statorials.org\/cn\/sklearn%e7%ba%bf%e6%80%a7%e5%9b%9e%e5%bd%92%e6%80%bb%e7%bb%93\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u5bb6\",\"item\":\"https:\/\/statorials.org\/cn\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u5982\u4f55\u4ece scikit-learn \u83b7\u53d6\u56de\u5f52\u6a21\u578b\u6458\u8981\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/statorials.org\/cn\/#website\",\"url\":\"https:\/\/statorials.org\/cn\/\",\"name\":\"Statorials\",\"description\":\"\u60a8\u7684\u7edf\u8ba1\u7d20\u517b\u6307\u5357\uff01\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/statorials.org\/cn\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/statorials.org\/cn\/#\/schema\/person\/124e4e5b7c9f8dc0f1f95cc8c1db3261\",\"name\":\"\u672c\u6770\u660e\u00b7\u5b89\u5fb7\u68ee\u535a\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/statorials.org\/cn\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/statorials.org\/cn\/wp-content\/uploads\/2023\/10\/Dr.-Benjamin-Anderson-96x96.jpg\",\"contentUrl\":\"https:\/\/statorials.org\/cn\/wp-content\/uploads\/2023\/10\/Dr.-Benjamin-Anderson-96x96.jpg\",\"caption\":\"\u672c\u6770\u660e\u00b7\u5b89\u5fb7\u68ee\u535a\"},\"description\":\"\u5927\u5bb6\u597d\uff0c\u6211\u662f\u672c\u6770\u660e\uff0c\u4e00\u4f4d\u9000\u4f11\u7684\u7edf\u8ba1\u5b66\u6559\u6388\uff0c\u540e\u6765\u6210\u4e3a Statorials \u7684\u70ed\u5fc3\u6559\u5e08\u3002 \u51ed\u501f\u5728\u7edf\u8ba1\u9886\u57df\u7684\u4e30\u5bcc\u7ecf\u9a8c\u548c\u4e13\u4e1a\u77e5\u8bc6\uff0c\u6211\u6e34\u671b\u5206\u4eab\u6211\u7684\u77e5\u8bc6\uff0c\u901a\u8fc7 Statorials \u589e\u5f3a\u5b66\u751f\u7684\u80fd\u529b\u3002\u4e86\u89e3\u66f4\u591a\",\"sameAs\":[\"https:\/\/statorials.org\/cn\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u5982\u4f55\u4ece Scikit-Learn \u83b7\u53d6\u56de\u5f52\u6a21\u578b\u6458\u8981 - Statorials","description":"\u672c\u6559\u7a0b\u901a\u8fc7\u4e00\u4e2a\u793a\u4f8b\u89e3\u91ca\u4e86\u5982\u4f55\u4ece scikit-learn \u521b\u5efa\u7684\u56de\u5f52\u6a21\u578b\u4e2d\u63d0\u53d6\u6458\u8981\u3002","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/statorials.org\/cn\/sklearn\u7ebf\u6027\u56de\u5f52\u603b\u7ed3\/","og_locale":"zh_CN","og_type":"article","og_title":"\u5982\u4f55\u4ece Scikit-Learn \u83b7\u53d6\u56de\u5f52\u6a21\u578b\u6458\u8981 - Statorials","og_description":"\u672c\u6559\u7a0b\u901a\u8fc7\u4e00\u4e2a\u793a\u4f8b\u89e3\u91ca\u4e86\u5982\u4f55\u4ece scikit-learn \u521b\u5efa\u7684\u56de\u5f52\u6a21\u578b\u4e2d\u63d0\u53d6\u6458\u8981\u3002","og_url":"https:\/\/statorials.org\/cn\/sklearn\u7ebf\u6027\u56de\u5f52\u603b\u7ed3\/","og_site_name":"Statorials","article_published_time":"2023-07-19T15:56:18+00:00","author":"\u672c\u6770\u660e\u00b7\u5b89\u5fb7\u68ee\u535a","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u672c\u6770\u660e\u00b7\u5b89\u5fb7\u68ee\u535a","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"1 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/statorials.org\/cn\/sklearn%e7%ba%bf%e6%80%a7%e5%9b%9e%e5%bd%92%e6%80%bb%e7%bb%93\/","url":"https:\/\/statorials.org\/cn\/sklearn%e7%ba%bf%e6%80%a7%e5%9b%9e%e5%bd%92%e6%80%bb%e7%bb%93\/","name":"\u5982\u4f55\u4ece Scikit-Learn \u83b7\u53d6\u56de\u5f52\u6a21\u578b\u6458\u8981 - Statorials","isPartOf":{"@id":"https:\/\/statorials.org\/cn\/#website"},"datePublished":"2023-07-19T15:56:18+00:00","dateModified":"2023-07-19T15:56:18+00:00","author":{"@id":"https:\/\/statorials.org\/cn\/#\/schema\/person\/124e4e5b7c9f8dc0f1f95cc8c1db3261"},"description":"\u672c\u6559\u7a0b\u901a\u8fc7\u4e00\u4e2a\u793a\u4f8b\u89e3\u91ca\u4e86\u5982\u4f55\u4ece scikit-learn \u521b\u5efa\u7684\u56de\u5f52\u6a21\u578b\u4e2d\u63d0\u53d6\u6458\u8981\u3002","breadcrumb":{"@id":"https:\/\/statorials.org\/cn\/sklearn%e7%ba%bf%e6%80%a7%e5%9b%9e%e5%bd%92%e6%80%bb%e7%bb%93\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/statorials.org\/cn\/sklearn%e7%ba%bf%e6%80%a7%e5%9b%9e%e5%bd%92%e6%80%bb%e7%bb%93\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/statorials.org\/cn\/sklearn%e7%ba%bf%e6%80%a7%e5%9b%9e%e5%bd%92%e6%80%bb%e7%bb%93\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u5bb6","item":"https:\/\/statorials.org\/cn\/"},{"@type":"ListItem","position":2,"name":"\u5982\u4f55\u4ece scikit-learn \u83b7\u53d6\u56de\u5f52\u6a21\u578b\u6458\u8981"}]},{"@type":"WebSite","@id":"https:\/\/statorials.org\/cn\/#website","url":"https:\/\/statorials.org\/cn\/","name":"Statorials","description":"\u60a8\u7684\u7edf\u8ba1\u7d20\u517b\u6307\u5357\uff01","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/statorials.org\/cn\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/statorials.org\/cn\/#\/schema\/person\/124e4e5b7c9f8dc0f1f95cc8c1db3261","name":"\u672c\u6770\u660e\u00b7\u5b89\u5fb7\u68ee\u535a","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/statorials.org\/cn\/#\/schema\/person\/image\/","url":"https:\/\/statorials.org\/cn\/wp-content\/uploads\/2023\/10\/Dr.-Benjamin-Anderson-96x96.jpg","contentUrl":"https:\/\/statorials.org\/cn\/wp-content\/uploads\/2023\/10\/Dr.-Benjamin-Anderson-96x96.jpg","caption":"\u672c\u6770\u660e\u00b7\u5b89\u5fb7\u68ee\u535a"},"description":"\u5927\u5bb6\u597d\uff0c\u6211\u662f\u672c\u6770\u660e\uff0c\u4e00\u4f4d\u9000\u4f11\u7684\u7edf\u8ba1\u5b66\u6559\u6388\uff0c\u540e\u6765\u6210\u4e3a Statorials \u7684\u70ed\u5fc3\u6559\u5e08\u3002 \u51ed\u501f\u5728\u7edf\u8ba1\u9886\u57df\u7684\u4e30\u5bcc\u7ecf\u9a8c\u548c\u4e13\u4e1a\u77e5\u8bc6\uff0c\u6211\u6e34\u671b\u5206\u4eab\u6211\u7684\u77e5\u8bc6\uff0c\u901a\u8fc7 Statorials \u589e\u5f3a\u5b66\u751f\u7684\u80fd\u529b\u3002\u4e86\u89e3\u66f4\u591a","sameAs":["https:\/\/statorials.org\/cn"]}]}},"yoast_meta":{"yoast_wpseo_title":"","yoast_wpseo_metadesc":"","yoast_wpseo_canonical":""},"_links":{"self":[{"href":"https:\/\/statorials.org\/cn\/wp-json\/wp\/v2\/posts\/3011","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/statorials.org\/cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/statorials.org\/cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/statorials.org\/cn\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/statorials.org\/cn\/wp-json\/wp\/v2\/comments?post=3011"}],"version-history":[{"count":0,"href":"https:\/\/statorials.org\/cn\/wp-json\/wp\/v2\/posts\/3011\/revisions"}],"wp:attachment":[{"href":"https:\/\/statorials.org\/cn\/wp-json\/wp\/v2\/media?parent=3011"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/statorials.org\/cn\/wp-json\/wp\/v2\/categories?post=3011"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/statorials.org\/cn\/wp-json\/wp\/v2\/tags?post=3011"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}