{"id":8968,"date":"2024-12-19T21:57:11","date_gmt":"2024-12-19T12:57:11","guid":{"rendered":"https:\/\/www.pythonic-exam.com\/?p=8968"},"modified":"2024-12-19T21:57:11","modified_gmt":"2024-12-19T12:57:11","slug":"%e7%ac%ac15%e5%9b%9e%e3%80%8cscikit-learn%e3%81%ae%e4%bd%bf%e3%81%84%e6%96%b9%ef%bc%881%ef%bc%89%e6%ac%a0%e6%90%8d%e5%80%a4%e3%81%b8%e3%81%ae%e5%af%be%e5%bf%9c%e3%80%8d","status":"publish","type":"post","link":"https:\/\/www.pythonic-exam.com\/archives\/8968","title":{"rendered":"\u7b2c15\u56de\u300cscikit-learn\u306e\u4f7f\u3044\u65b9\uff081\uff09\u6b20\u640d\u5024\u3078\u306e\u5bfe\u5fdc\u300d"},"content":{"rendered":"\n<p>\u3053\u3093\u306b\u3061\u306f\u3001\u5c0f\u6fa4\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u4eca\u56de\u304b\u3089\u3001Python\u3067\u6a5f\u68b0\u5b66\u7fd2\u3092\u884c\u3046\u305f\u3081\u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u300cscikit-learn\u300d\u306b\u3064\u3044\u3066\u89e3\u8aac\u3057\u307e\u3059\u3002scikit-learn\u306f\u3001\u30c7\u30fc\u30bf\u306e\u524d\u51e6\u7406\u3001\u30e2\u30c7\u30eb\u306e\u69cb\u7bc9\u3001\u8a55\u4fa1\u3068\u3044\u3063\u305f\u6a5f\u68b0\u5b66\u7fd2\u306e\u4e00\u9023\u306e\u30d7\u30ed\u30bb\u30b9\u3092\u52b9\u7387\u7684\u306b\u5b9f\u884c\u3067\u304d\u308b\u30e9\u30a4\u30d6\u30e9\u30ea\u3067\u3059\u3002\u7dda\u5f62\u56de\u5e30\u3084\u30b5\u30dd\u30fc\u30c8\u30d9\u30af\u30bf\u30fc\u30de\u30b7\u30f3\u3001\u6c7a\u5b9a\u6728\u3001\u30af\u30e9\u30b9\u30bf\u30ea\u30f3\u30b0\u306a\u3069\u3001\u6570\u591a\u304f\u306e\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\u304c\u7d44\u307f\u8fbc\u307e\u308c\u3066\u304a\u308a\u3001\u30c7\u30fc\u30bf\u5206\u6790\u3084\u4e88\u6e2c\u306e\u5e45\u5e83\u3044\u7528\u9014\u306b\u5f79\u7acb\u3061\u307e\u3059\u3002scikit-learn\u306f\u307e\u305f\u3001\u524d\u51e6\u7406\u30c4\u30fc\u30eb\u304c\u8c4a\u5bcc\u3067\u3001\u6b20\u640d\u5024\u306e\u88dc\u5b8c\u3084\u30ab\u30c6\u30b4\u30ea\u5909\u6570\u306e\u30a8\u30f3\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u3001\u7279\u5fb4\u91cf\u306e\u30b9\u30b1\u30fc\u30ea\u30f3\u30b0\u3068\u3044\u3063\u305f\u30c7\u30fc\u30bf\u54c1\u8cea\u3092\u9ad8\u3081\u308b\u305f\u3081\u306e\u51e6\u7406\u3092\u7c21\u5358\u306b\u884c\u3048\u307e\u3059\u3002\u9069\u5207\u306a\u524d\u51e6\u7406\u306f\u5206\u6790\u3084\u4e88\u6e2c\u30e2\u30c7\u30eb\u306e\u6027\u80fd\u306b\u76f4\u63a5\u5f71\u97ff\u3092\u4e0e\u3048\u308b\u306e\u3067\u3001\u30c7\u30fc\u30bf\u306e\u4e0d\u5b8c\u5168\u3055\u3084\u4e0d\u5747\u4e00\u3055\u3092\u524d\u51e6\u7406\u3067\u9069\u5207\u306b\u6271\u3046\u3053\u3068\u304c\u91cd\u8981\u3067\u3059\u3002\u3053\u308c\u306b\u3088\u308a\u3001\u30e2\u30c7\u30eb\u306e\u7cbe\u5ea6\u3068\u4fe1\u983c\u6027\u304c\u5927\u5e45\u306b\u5411\u4e0a\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u672c\u7a3f\u3067\u306f\u3001\u524d\u51e6\u7406\u306e\u4e2d\u3067\u3082\u300c\u6b20\u640d\u5024\u3078\u306e\u5bfe\u5fdc\u300d\u306b\u7126\u70b9\u3092\u5f53\u3066\u3066\u89e3\u8aac\u3057\u307e\u3059\u3002\u6559\u79d1\u66f8\u300e<a href=\"https:\/\/www.shoeisha.co.jp\/book\/detail\/9784798176611\">Python\u306b\u3088\u308b\u65b0\u3057\u3044\u30c7\u30fc\u30bf\u5206\u6790\u306e\u6559\u79d1\u66f8\uff08\u7b2c2\u7248\uff09<\/a>\u300f\u3067\u306f\u30014.4.1\u7ae0\u300c\u524d\u51e6\u7406\u300d\uff08214\u301c217\u30da\u30fc\u30b8\uff09\u3067\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><a><\/a><strong>\u6b20\u640d\u5024\u3078\u306e\u5bfe\u5fdc<\/strong><strong><\/strong><\/h2>\n\n\n\n<p>\u30c7\u30fc\u30bf\u5206\u6790\u3084\u6a5f\u68b0\u5b66\u7fd2\u306e\u30d7\u30ed\u30bb\u30b9\u3067\u306f\u3001\u5b8c\u5168\u306a\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u304c\u7406\u60f3\u7684\u3067\u3059\u304c\u3001\u73fe\u5b9f\u306b\u306f\u6b20\u640d\u5024\u3092\u542b\u3080\u30c7\u30fc\u30bf\u3092\u6271\u3046\u3053\u3068\u304c\u591a\u3005\u3042\u308a\u307e\u3059\u3002\u6b20\u640d\u5024\u3068\u306f\u3001\u4f55\u3089\u304b\u306e\u7406\u7531\u3067\u8a18\u9332\u3055\u308c\u306a\u304b\u3063\u305f\u30c7\u30fc\u30bf\u306e\u4e00\u90e8\u3092\u6307\u3057\u307e\u3059\u3002\u4f8b\u3048\u3070\u3001\u30a2\u30f3\u30b1\u30fc\u30c8\u8abf\u67fb\u3067\u56de\u7b54\u8005\u304c\u4e00\u90e8\u306e\u8cea\u554f\u306b\u7b54\u3048\u306a\u304b\u3063\u305f\u308a\u3001\u30bb\u30f3\u30b5\u30fc\u304c\u4e00\u6642\u7684\u306b\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3067\u304d\u306a\u304b\u3063\u305f\u308a\u3057\u305f\u5834\u5408\u306b\u751f\u3058\u307e\u3059\u3002\u6b20\u640d\u5024\u306e\u5b58\u5728\u306f\u6a5f\u68b0\u5b66\u7fd2\u30e2\u30c7\u30eb\u306e\u6b63\u78ba\u306a\u5b66\u7fd2\u3092\u59a8\u3052\u308b\u53ef\u80fd\u6027\u304c\u3042\u308b\u305f\u3081\u3001\u9069\u5207\u306a\u5bfe\u51e6\u304c\u5fc5\u8981\u3067\u3059\u3002scikit-learn\u3067\u306f\u3001\u6b20\u640d\u5024\u3078\u306e\u5bfe\u5fdc\u3068\u3057\u3066\u300c\u88dc\u5b8c\u300d\u3068\u300c\u9664\u53bb\u300d\u3068\u3044\u30462\u3064\u306e\u65b9\u6cd5\u304c\u4e00\u822c\u7684\u306b\u7528\u3044\u3089\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><a><\/a><strong>\u6b20\u640d\u5024\u306e\u88dc\u5b8c<\/strong><strong><\/strong><\/h2>\n\n\n\n<p>\u6b20\u640d\u5024\u306e\u88dc\u5b8c\u306f\u3001\u30c7\u30fc\u30bf\u306e\u6b20\u640d\u90e8\u5206\u3092\u4ed6\u306e\u5024\u3067\u57cb\u3081\u308b\u65b9\u6cd5\u3067\u3059\u3002\u4e00\u822c\u7684\u306a\u88dc\u5b8c\u65b9\u6cd5\u3068\u3057\u3066\u3001\u6570\u5024\u30c7\u30fc\u30bf\u3067\u306f\u5217\u306e\u5e73\u5747\u5024\u3084\u4e2d\u592e\u5024\u3092\u3001\u30ab\u30c6\u30b4\u30ea\u30c7\u30fc\u30bf\u3067\u306f\u6700\u983b\u5024\uff08\u6700\u3082\u983b\u7e41\u306b\u51fa\u73fe\u3059\u308b\u5024\uff09\u3092\u7528\u3044\u307e\u3059\u3002scikit-learn\u306eSimpleImputer\u30af\u30e9\u30b9\u3092\u6d3b\u7528\u3059\u308c\u3070\u3001\u3053\u306e\u88dc\u5b8c\u51e6\u7406\u3092\u7c21\u5358\u306b\u5b9f\u88c5\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>SimpleImputer\u3067\u306f\u3001strategy\u30d1\u30e9\u30e1\u30fc\u30bf\u3092\u4f7f\u7528\u3057\u3066\u6b20\u640d\u5024\u306e\u88dc\u5b8c\u65b9\u6cd5\u3092\u6307\u5b9a\u3057\u3001\u30a4\u30f3\u30d4\u30e5\u30fc\u30bf\uff08Imputer\uff09\u3092\u4f5c\u6210\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>mean\uff1a\u5e73\u5747\u5024\u3067\u88dc\u5b8c<\/li>\n\n\n\n<li>median\uff1a\u4e2d\u592e\u5024\u3067\u88dc\u5b8c<\/li>\n\n\n\n<li>most_frequent\uff1a\u6700\u983b\u5024\u3067\u88dc\u5b8c<\/li>\n\n\n\n<li>constant\uff1a\u6307\u5b9a\u3057\u305f\u5b9a\u6570\u3067\u88dc\u5b8c<\/li>\n<\/ul>\n\n\n\n<p>\u30a4\u30f3\u30d4\u30e5\u30fc\u30bf\u3092\u4f5c\u6210\u3057\u305f\u3089\u3001fit_transform\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u3063\u3066\u3001\u30c7\u30fc\u30bf\u5185\u306e\u6b20\u640d\u5024\u3092\u88dc\u5b8c\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td>import numpy as np<br>from sklearn.impute import SimpleImputer<br><br># \u30b5\u30f3\u30d7\u30eb\u30c7\u30fc\u30bf<br>data = np.array([[1, 2, np.nan], [5, np.nan, np.nan], [2, 3, 5], [np.nan, 4, 6]])<br><br># \u5e73\u5747\u5024\u3067\u88dc\u5b8c<br>imputer_mean = SimpleImputer(strategy=&#8217;mean&#8217;)<br>data_filled_mean = imputer_mean.fit_transform(data)<br><br># \u4e2d\u592e\u5024\u3067\u88dc\u5b8c<br>imputer_median = SimpleImputer(strategy=&#8217;median&#8217;)<br>data_filled_median = imputer_median.fit_transform(data)<br><br># \u56fa\u5b9a\u5024\u3067\u88dc\u5b8c<br>imputer_constant = SimpleImputer(strategy=&#8217;constant&#8217;, fill_value=-1)<br>data_filled_constant = imputer_constant.fit_transform(data)<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u5e73\u5747\u5024\u3067\u306e\u88dc\u5b8c\uff1a\u5217\u306e\u5e73\u5747\u5024\u3067\u6b20\u640d\u5024\u3092\u57cb\u3081\u308b\u65b9\u6cd5\u3067\u3001\u30c7\u30fc\u30bf\u306e\u5168\u4f53\u7684\u306a\u50be\u5411\u3092\u53cd\u6620\u3059\u308b\u305f\u3081\u306b\u6709\u52b9\u3067\u3059\u3002\u305f\u3060\u3057\u3001\u5916\u308c\u5024\u304c\u591a\u3044\u30c7\u30fc\u30bf\u306b\u306f\u5f71\u97ff\u3092\u53d7\u3051\u3084\u3059\u304f\u306a\u308a\u307e\u3059\u3002<\/li>\n\n\n\n<li>\u4e2d\u592e\u5024\u3067\u306e\u88dc\u5b8c\uff1a\u5916\u308c\u5024\u306e\u5f71\u97ff\u3092\u907f\u3051\u305f\u3044\u5834\u5408\u306b\u306f\u3001\u4e2d\u592e\u5024\u3067\u306e\u88dc\u5b8c\u304c\u52b9\u679c\u7684\u3067\u3059\u3002\u7279\u306b\u3001\u30c7\u30fc\u30bf\u304c\u504f\u3063\u3066\u3044\u308b\u5834\u5408\u306b\u306f\u3001\u5e73\u5747\u3088\u308a\u3082\u4e2d\u592e\u5024\u304c\u9069\u3057\u3066\u3044\u308b\u3053\u3068\u304c\u591a\u3044\u3067\u3059\u3002<\/li>\n\n\n\n<li>\u6700\u983b\u5024\u3067\u306e\u88dc\u5b8c\uff1a\u30ab\u30c6\u30b4\u30ea\u30c7\u30fc\u30bf\u306b\u9069\u3057\u305f\u65b9\u6cd5\u3067\u3001\u6700\u3082\u591a\u304f\u73fe\u308c\u308b\u30ab\u30c6\u30b4\u30ea\u3067\u6b20\u640d\u5024\u3092\u88dc\u5b8c\u3057\u307e\u3059\u3002\u56de\u7b54\u5f62\u5f0f\u3084\u30ab\u30c6\u30b4\u30ea\u304c\u9650\u3089\u308c\u3066\u3044\u308b\u30c7\u30fc\u30bf\u3067\u306f\u3001\u3053\u306e\u65b9\u6cd5\u3067\u81ea\u7136\u306a\u88dc\u5b8c\u304c\u53ef\u80fd\u3067\u3059\u3002<\/li>\n<\/ul>\n\n\n\n<p>\u3053\u306e\u3088\u3046\u306b\u3001\u6b20\u640d\u5024\u306e\u88dc\u5b8c\u306f\u30c7\u30fc\u30bf\u7279\u6027\u3084\u76ee\u7684\u306b\u5408\u308f\u305b\u3066\u67d4\u8edf\u306b\u5bfe\u5fdc\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><a><\/a><strong>KNNImputer\uff08K\u8fd1\u508d\u6cd5\uff09\u306b\u3088\u308b\u88dc\u5b8c<\/strong><strong><\/strong><\/h2>\n\n\n\n<p>SimpleImputer\u306e\u4ed6\u306b\u3082\u3001K\u8fd1\u508d\u6cd5\u3092\u7528\u3044\u308bKNNImputer\u30af\u30e9\u30b9\u3067\u6b20\u640d\u5024\u3092\u88dc\u5b8c\u3059\u308b\u65b9\u6cd5\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u306e\u65b9\u6cd5\u3067\u306f\u3001\u6b20\u640d\u306e\u3042\u308b\u30c7\u30fc\u30bf\u30dd\u30a4\u30f3\u30c8\u306e\u8fd1\u96a3\u30b5\u30f3\u30d7\u30eb\u3092\u53c2\u7167\u3057\u3001\u305d\u308c\u3089\u306e\u5024\u306b\u57fa\u3065\u3044\u3066\u6b20\u640d\u5024\u3092\u57cb\u3081\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td>from sklearn.impute import KNNImputer<br><br>knn_imputer = KNNImputer(n_neighbors=5)&nbsp; # k\u306e\u5024\u306f\u4efb\u610f<br>X_imputed_knn = knn_imputer.fit_transform(X)<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><a><\/a><strong>IterativeImputer\uff08\u591a\u91cd\u4ee3\u5165\u6cd5\uff09\u306b\u3088\u308b\u88dc\u5b8c<\/strong><strong><\/strong><\/h2>\n\n\n\n<p>\u307e\u305f\u3001IterativeImputer\u30af\u30e9\u30b9\u306f\u591a\u91cd\u4ee3\u5165\u6cd5\u306b\u3088\u308b\u88dc\u5b8c\u3092\u884c\u3044\u307e\u3059\u3002\u3053\u306e\u65b9\u6cd5\u3067\u306f\u3001\u4ed6\u306e\u7279\u5fb4\u91cf\u3092\u7528\u3044\u305f\u56de\u5e30\u30e2\u30c7\u30eb\u3067\u6b20\u640d\u5024\u3092\u4e88\u6e2c\u3057\u307e\u3059\u3002\u88dc\u5b8c\u30d7\u30ed\u30bb\u30b9\u304c\u7e70\u308a\u8fd4\u3055\u308c\u308b\u3053\u3068\u3067\u3001\u5404\u7279\u5fb4\u91cf\u306e\u6b20\u640d\u5024\u304c\u5f90\u3005\u306b\u57cb\u307e\u3063\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td>from sklearn.experimental import enable_iterative_imputer<br>from sklearn.impute import IterativeImputer<br><br>iterative_imputer = IterativeImputer(max_iter=10, random_state=0)<br>X_imputed_iterative = iterative_imputer.fit_transform(X)<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><a><\/a><strong>\u6b20\u640d\u5024\u306e\u9664\u53bb<\/strong><strong><\/strong><\/h2>\n\n\n\n<p>\u30c7\u30fc\u30bf\u306e\u6b20\u640d\u304c\u591a\u3059\u304e\u308b\u5834\u5408\u3084\u3001\u88dc\u5b8c\u304c\u9069\u5207\u3067\u306a\u3044\u3068\u5224\u65ad\u3055\u308c\u308b\u5834\u5408\u306b\u306f\u3001\u6b20\u640d\u5024\u306e\u3042\u308b\u884c\u3084\u5217\u3092\u300c\u9664\u53bb\u300d\u3059\u308b\u3053\u3068\u3082\u9078\u629e\u80a2\u306e\u4e00\u3064\u3067\u3059\u3002\u6b20\u640d\u5024\u306e\u591a\u3044\u884c\u3084\u5217\u3092\u524a\u9664\u3059\u308b\u3053\u3068\u3067\u3001\u6b8b\u308a\u306e\u30c7\u30fc\u30bf\u306e\u6574\u5408\u6027\u3092\u4fdd\u3061\u3084\u3059\u304f\u306a\u308a\u307e\u3059\u304c\u3001\u30c7\u30fc\u30bf\u91cf\u304c\u6e1b\u5c11\u3059\u308b\u305f\u3081\u306b\u5206\u6790\u306e\u7cbe\u5ea6\u304c\u4f4e\u4e0b\u3059\u308b\u53ef\u80fd\u6027\u3082\u3042\u308a\u307e\u3059\u3002\u9664\u53bb\u3092\u884c\u3046\u5834\u5408\u306b\u306f\u3001\u6b20\u640d\u5024\u306e\u5272\u5408\u3084\u30c7\u30fc\u30bf\u5168\u4f53\u306e\u5206\u5e03\u306b\u3069\u306e\u3088\u3046\u306a\u5f71\u97ff\u304c\u3042\u308b\u304b\u3092\u614e\u91cd\u306b\u691c\u8a0e\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<p>scikit-learn\u306b\u306f\u6b20\u640d\u5024\u3092\u76f4\u63a5\u9664\u53bb\u3059\u308b\u30e1\u30bd\u30c3\u30c9\u304c\u3042\u308a\u307e\u305b\u3093\u3002\u305d\u306e\u305f\u3081\u3001\u4e00\u822c\u7684\u306b\u306fpandas\u3092\u4f7f\u3063\u3066\u30c7\u30fc\u30bf\u3092\u524d\u51e6\u7406\u3057\u3001\u305d\u306e\u5f8cscikit-learn\u306e\u6a5f\u80fd\u3067\u30e2\u30c7\u30eb\u306b\u7d44\u307f\u8fbc\u307f\u307e\u3059\u3002\u6b20\u640d\u5024\u306e\u9664\u53bb\u306b\u306f\u3001pandas\u306edropna()\u30e1\u30bd\u30c3\u30c9\u304c\u5229\u7528\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td>import pandas as pd<br><br># \u884c\u3054\u3068\u306b\u6b20\u640d\u304c\u3042\u308b\u5834\u5408\u306b\u884c\u3092\u524a\u9664<br>X_dropped = X.dropna()<br><br># \u5217\u3054\u3068\u306b\u6b20\u640d\u304c\u591a\u3044\u5834\u5408\u306b\u5217\u3092\u524a\u9664<br>X_dropped_col = X.dropna(axis=1)<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><a><\/a><strong>\u307e\u3068\u3081<\/strong><strong><\/strong><\/h2>\n\n\n\n<p>\u3053\u306e\u3088\u3046\u306b\u3001scikit-learn\u306e\u6b20\u640d\u5024\u51e6\u7406\u6a5f\u80fd\u3092\u6d3b\u7528\u3059\u308b\u3053\u3068\u3067\u3001\u30c7\u30fc\u30bf\u306e\u6b20\u640d\u5024\u3092\u9069\u5207\u306b\u6271\u3044\u3001\u30e2\u30c7\u30eb\u306e\u7cbe\u5ea6\u3068\u4fe1\u983c\u6027\u3092\u5411\u4e0a\u3055\u305b\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u6b20\u640d\u5024\u306e\u9664\u53bb\u3084\u88dc\u5b8c\u3092\u901a\u3058\u3066\u3001\u504f\u308a\u306e\u5c11\u306a\u3044\u5206\u6790\u3084\u4e88\u6e2c\u304c\u53ef\u80fd\u3068\u306a\u308a\u3001\u5206\u6790\u7d50\u679c\u306e\u4fe1\u983c\u6027\u304c\u9ad8\u307e\u308a\u307e\u3059\u3002scikit-learn\u304c\u63d0\u4f9b\u3059\u308b\u8c4a\u5bcc\u306a\u524d\u51e6\u7406\u6a5f\u80fd\u3092\u52b9\u679c\u7684\u306b\u4f7f\u7528\u3059\u308b\u3053\u3068\u3067\u3001\u3088\u308a\u5f37\u529b\u3067\u4fe1\u983c\u6027\u306e\u9ad8\u3044\u6a5f\u68b0\u5b66\u7fd2\u30e2\u30c7\u30eb\u3092\u69cb\u7bc9\u3067\u304d\u308b\u3067\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<p>\u6b21\u56de\u3082\u3001scikit-learn\u306e\u524d\u51e6\u7406\u3068\u3057\u3066\u3001\u30ab\u30c6\u30b4\u30ea\u5909\u6570\u306e\u30a8\u30f3\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u3068\u7279\u5fb4\u91cf\u306e\u6b63\u898f\u5316\u306b\u3064\u3044\u3066\u89e3\u8aac\u3057\u307e\u3059\u3002\u6b21\u56de\u3082\u304a\u697d\u3057\u307f\u306b\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u3053\u3093\u306b\u3061\u306f\u3001\u5c0f\u6fa4\u3067\u3059\u3002 \u4eca\u56de\u304b\u3089\u3001Python\u3067\u6a5f\u68b0\u5b66\u7fd2\u3092\u884c\u3046\u305f\u3081\u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u300cscikit-learn\u300d\u306b\u3064\u3044\u3066\u89e3\u8aac\u3057\u307e\u3059\u3002scikit-learn\u306f\u3001\u30c7\u30fc\u30bf\u306e\u524d\u51e6\u7406\u3001\u30e2\u30c7\u30eb\u306e\u69cb\u7bc9\u3001\u8a55\u4fa1\u3068\u3044\u3063\u305f\u6a5f\u68b0\u5b66\u7fd2\u306e\u4e00\u9023\u306e\u30d7\u30ed\u30bb\u30b9 [&hellip;]","protected":false},"author":3,"featured_media":8143,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[17,32],"tags":[],"class_list":["post-8968","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-column","category-data"],"_links":{"self":[{"href":"https:\/\/www.pythonic-exam.com\/wp-json\/wp\/v2\/posts\/8968","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.pythonic-exam.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.pythonic-exam.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.pythonic-exam.com\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.pythonic-exam.com\/wp-json\/wp\/v2\/comments?post=8968"}],"version-history":[{"count":0,"href":"https:\/\/www.pythonic-exam.com\/wp-json\/wp\/v2\/posts\/8968\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.pythonic-exam.com\/wp-json\/wp\/v2\/media\/8143"}],"wp:attachment":[{"href":"https:\/\/www.pythonic-exam.com\/wp-json\/wp\/v2\/media?parent=8968"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.pythonic-exam.com\/wp-json\/wp\/v2\/categories?post=8968"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.pythonic-exam.com\/wp-json\/wp\/v2\/tags?post=8968"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}