{"id":4247,"date":"2023-12-26T12:16:12","date_gmt":"2023-12-26T03:16:12","guid":{"rendered":"https:\/\/blog.since2020.jp\/?p=4247"},"modified":"2023-12-26T12:47:07","modified_gmt":"2023-12-26T03:47:07","slug":"%e6%a9%9f%e6%a2%b0%e5%ad%a6%e7%bf%92%e3%83%90%e3%83%aa%e3%83%87%e3%83%bc%e3%82%b7%e3%83%a7%e3%83%b3%e6%89%8b%e6%b3%95-%e5%be%b9%e5%ba%95%e8%a7%a3%e8%aa%ac-part-1","status":"publish","type":"post","link":"https:\/\/since2020.jp\/media\/%e6%a9%9f%e6%a2%b0%e5%ad%a6%e7%bf%92%e3%83%90%e3%83%aa%e3%83%87%e3%83%bc%e3%82%b7%e3%83%a7%e3%83%b3%e6%89%8b%e6%b3%95-%e5%be%b9%e5%ba%95%e8%a7%a3%e8%aa%ac-part-1\/","title":{"rendered":"[\u6a5f\u68b0\u5b66\u7fd2]\u30d0\u30ea\u30c7\u30fc\u30b7\u30e7\u30f3\u624b\u6cd5 \u5fb9\u5e95\u89e3\u8aac Part.1"},"content":{"rendered":"\n<p>\u672c\u8a18\u4e8b Part.1 \u3067\u306f\u3001\u201d\u3088\u304f\u7528\u3044\u3089\u308c\u308b\u201d\u30d0\u30ea\u30c7\u30fc\u30b7\u30e7\u30f3\u624b\u6cd5\u3068\u305d\u306e\u6319\u52d5\u306b\u3064\u3044\u3066\u7d39\u4ecb\u3059\u308b\u3068\u3068\u3082\u306b\u3001\r\n\u5fdc\u7528\u3068\u3057\u3066\u30d0\u30ea\u30c7\u30fc\u30b7\u30e7\u30f3\u624b\u6cd5\u3092\u7d44\u307f\u5408\u308f\u305b\u305f\u624b\u6cd5\u3082\u8efd\u304f\u7d39\u4ecb\u3057\u307e\u3059\uff01<\/p>\n\n\n<h2>\u306f\u3058\u3081\u306b<\/h2>\n<p><span style=\"font-size: 12pt;\">\u30d0\u30ea\u30c7\u30fc\u30b7\u30e7\u30f3\u306f\u3001\u30e2\u30c7\u30eb\u304c\u672a\u77e5\u306e\u30c7\u30fc\u30bf\u306b\u3069\u308c\u3050\u3089\u3044\u5bfe\u5fdc\u3067\u304d\u308b\u304b\u3092\u8a66\u3059\u624b\u6cd5\u3067\u3042\u308a\u3001\u30e2\u30c7\u30ea\u30f3\u30b0\u306b\u7528\u3044\u308b\u30c7\u30fc\u30bf\u306b\u9069\u3057\u305f\u30d0\u30ea\u30c7\u30fc\u30b7\u30e7\u30f3\u624b\u6cd5\u3092\u9078\u3076\u3053\u3068\u304c\u91cd\u8981\u3067\u3059\u3002<\/span><\/p>\r\n<p><span style=\"font-size: 12pt;\">\u672c\u8a18\u4e8b Part.1 \u3067\u306f\u3001\u201d\u3088\u304f\u7528\u3044\u3089\u308c\u308b\u201d\u30d0\u30ea\u30c7\u30fc\u30b7\u30e7\u30f3\u624b\u6cd5\u3068\u305d\u306e\u6319\u52d5\u306b\u3064\u3044\u3066\u7d39\u4ecb\u3059\u308b\u3068\u3068\u3082\u306b\u5fdc\u7528\u3068\u3057\u3066\u30d0\u30ea\u30c7\u30fc\u30b7\u30e7\u30f3\u624b\u6cd5\u3092\u7d44\u307f\u5408\u308f\u305b\u305f\u624b\u6cd5\u3082\u8efd\u304f\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/span><\/p>\r\n<p>&nbsp;<\/p>\n\n<h2>\u306a\u305c\u3084\u308b\u306e\u304b<\/h2>\n<b><span style=\"font-size: 12pt;\"><strong>\u904e\u5b66\u7fd2\u3068\u305d\u306e\u56de\u907f<\/strong><\/span><\/b>\r\n<p><span style=\"font-size: 12pt;\">\u904e\u5b66\u7fd2\u306f\u3001\u30e2\u30c7\u30eb\u304c\u8a13\u7df4\u30c7\u30fc\u30bf\u306e\u7279\u5b9a\u306e\u7279\u5fb4\u306b\u904e\u5270\u306b\u9069\u5fdc\u3057\u3001\u65b0\u3057\u3044\u30c7\u30fc\u30bf\u306b\u5bfe\u3057\u3066\u306f\u3046\u307e\u304f\u6a5f\u80fd\u3057\u306a\u3044\u72b6\u614b\u3092\u6307\u3057\u307e\u3059\u3002\u30d0\u30ea\u30c7\u30fc\u30b7\u30e7\u30f3\u3092\u901a\u3058\u3066\u3001\u30e2\u30c7\u30eb\u306e\u904e\u5b66\u7fd2\u306b\u3064\u3044\u3066\u306e\u4e00\u3064\u306e\u57fa\u6e96\u3068\u3057\u3066\u6a5f\u80fd\u3057\u3001\u9069\u5207\u306a\u30d0\u30ea\u30c7\u30fc\u30b7\u30e7\u30f3\u3092\u8a2d\u5b9a\u3059\u308b\u3053\u3068\u3067\u904e\u5b66\u7fd2\u3092\u6291\u3048\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/span><\/p>\r\n<b><span style=\"font-size: 12pt;\"><strong>\u30e2\u30c7\u30eb\u306e\u6c4e\u5316\u80fd\u529b\u306e\u8a55\u4fa1<\/strong><\/span><\/b>\r\n<p><span style=\"font-size: 12pt;\">\u30d0\u30ea\u30c7\u30fc\u30b7\u30e7\u30f3\u3067\u306f\u3001\u30e2\u30c7\u30eb\u304c\u898b\u305f\u3053\u3068\u306e\u306a\u3044\u30c7\u30fc\u30bf\u306b\u5bfe\u3057\u3066\u3069\u308c\u3060\u3051\u6b63\u78ba\u306b\u4e88\u6e2c\u3067\u304d\u308b\u304b\u3092\u8a55\u4fa1\u3057\u307e\u3059\u3002\u3053\u308c\u306b\u3088\u308a\u3001\u30e2\u30c7\u30eb\u306e\u300c\u6c4e\u5316\u80fd\u529b\u300d\u3001\u3064\u307e\u308a\u672a\u77e5\u306e\u30c7\u30fc\u30bf\u306b\u5bfe\u3059\u308b\u6027\u80fd\u3092\u6e2c\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/span><\/p>\r\n<p><!-- notionvc: 1af9b0d5-e7af-476b-a49c-f492de9b49a0 --><\/p>\n\n<h2>\u57fa\u672c\u7684\u306a\u30d0\u30ea\u30c7\u30fc\u30b7\u30e7\u30f3\u624b\u6cd5<\/h2>\n<b><span style=\"font-size: 14pt;\"><strong>\u30db\u30fc\u30eb\u30c9\u30a2\u30a6\u30c8\u6cd5\uff08Holdout Method\uff09<\/strong>:<\/span><\/b>\r\n<ul>\r\n\t<li><span style=\"font-size: 12pt;\">\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u3092\u30c8\u30ec\u30fc\u30cb\u30f3\u30b0\u30bb\u30c3\u30c8\u3068\u30c6\u30b9\u30c8\u30bb\u30c3\u30c8\u306b\u4e00\u5ea6\u3060\u3051\u5206\u5272\u3002<\/span><\/li>\r\n\t<li><span style=\"font-size: 12pt;\">\u901a\u5e38\u3001\u30c7\u30fc\u30bf\u306e70-80%\u3092\u30c8\u30ec\u30fc\u30cb\u30f3\u30b0\u306b\u3001\u6b8b\u308a\u306e20-30%\u3092\u30c6\u30b9\u30c8\u306b\u4f7f\u7528\u3002<\/span><\/li>\r\n<\/ul>\r\n<b><span style=\"font-size: 14pt;\"><strong>K\u5206\u5272\u4ea4\u5dee\u691c\u8a3c\uff08K-Fold Cross-Validation\uff09<\/strong>:<\/span><\/b>\r\n<ul>\r\n\t<li><span style=\"font-size: 12pt;\">\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u3092K\u500b\u306e\u30b5\u30d6\u30bb\u30c3\u30c8\u306b\u5206\u5272\u3002<\/span><\/li>\r\n\t<li><span style=\"font-size: 12pt;\">\u305d\u308c\u305e\u308c\u306e\u30b5\u30d6\u30bb\u30c3\u30c8\u30921\u56de\u305a\u3064\u30c6\u30b9\u30c8\u30bb\u30c3\u30c8\u3068\u3057\u3066\u4f7f\u7528\u3057\u3001\u6b8b\u308a\u3092\u30c8\u30ec\u30fc\u30cb\u30f3\u30b0\u30bb\u30c3\u30c8\u3068\u3057\u3066\u4f7f\u7528\u3002<\/span><\/li>\r\n\t<li><span style=\"font-size: 12pt;\">\u5404\u30b5\u30a4\u30af\u30eb\u3067\u30e2\u30c7\u30eb\u306e\u6027\u80fd\u3092\u8a55\u4fa1\u3057\u3001\u6700\u7d42\u7684\u306b\u5e73\u5747\u6027\u80fd\u3092\u7b97\u51fa\u3002<\/span><\/li>\r\n\t<li><span style=\"font-size: 12pt;\">K\u306f5\u307e\u305f\u306f10\u304c\u4f7f\u7528\u3055\u308c\u308b\u3002<\/span><\/li>\r\n<\/ul>\r\n<b><span style=\"font-size: 14pt;\"><strong>\u30b0\u30eb\u30fc\u30d7K\u5206\u5272\u4ea4\u5dee\u691c\u8a3c\uff08Group K-Fold\uff09\uff1a<\/strong><\/span><\/b>\r\n<ul>\r\n\t<li><span style=\"font-size: 12pt;\">\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u5185\u306e\u30b0\u30eb\u30fc\u30d7\u3092\u8868\u3059ID\u306a\u3069\u306e\u8b58\u5225\u5b50\u3092\u7528\u3044\u3066\u5143\u306e\u30c7\u30fc\u30bf\u3092K\u500b\u306e\u30b5\u30d6\u30bb\u30c3\u30c8\u306b\u5206\u5272\u3002<\/span><\/li>\r\n\t<li><span style=\"font-size: 12pt;\">\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u306b\u30b0\u30eb\u30fc\u30d7\u4f9d\u5b58\u6027\u304c\u5b58\u5728\u3059\u308b\u5834\u5408\u306b\u304a\u3044\u3066\u3001\u7279\u5b9a\u306e\u30b0\u30eb\u30fc\u30d7\u306e\u30c7\u30fc\u30bf\u306b\u904e\u5270\u9069\u5408\u3059\u308b\u3053\u3068\u3092\u9632\u304e\u3001\u30e2\u30c7\u30eb\u306e\u6c4e\u5316\u80fd\u529b\u3092\u3088\u308a\u516c\u5e73\u304b\u3064\u6b63\u78ba\u306b\u8a55\u4fa1\u3059\u308b\u3053\u3068\u3002<\/span><\/li>\r\n<\/ul>\r\n<b><span style=\"font-size: 14pt;\"><strong>\u5c64\u5316K\u5206\u5272\u4ea4\u5dee\u691c\u8a3c\uff08Stratified K-Fold Cross-Validation\uff09<\/strong>:<\/span><\/b>\r\n<ul>\r\n\t<li><span style=\"font-size: 12pt;\">\u591a\u30af\u30e9\u30b9\u5206\u985e\u306b\u304a\u3044\u3066\u3001\u5404\u30af\u30e9\u30b9\u306e\u983b\u5ea6\u304c\u7570\u306a\u308b\u5834\u5408\u306f\u5f80\u3005\u306b\u3057\u3066\u5b58\u5728\u3057\u3001\u305d\u306e\u5834\u5408\u3001\u30e9\u30f3\u30c0\u30e0\u306b\u5206\u5272\u3059\u308b\u624b\u6cd5\u3067\u306f\u5404\u30af\u30e9\u30b9\u306b\u504f\u308a\u304c\u751f\u3058\u3066\u3057\u307e\u3046\u3002<\/span><\/li>\r\n\t<li><span style=\"font-size: 12pt;\">\u305d\u306e\u305f\u3081\u3001\u5404\u30af\u30e9\u30b9\u306e\u30b5\u30f3\u30d7\u30eb\u304c\u5747\u7b49\u306b\u5206\u5e03\u3059\u308b\u3088\u3046\u306bK\u5206\u5272\u4ea4\u5dee\u691c\u8a3c\u3092\u884c\u3046\u3002<\/span><\/li>\r\n\t<li><span style=\"font-size: 12pt;\">\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u5185\u306e\u30af\u30e9\u30b9\u306e\u5206\u5e03\u304c\u4e0d\u5747\u7b49\u306a\u5834\u5408\u306b\u7279\u306b\u6709\u52b9\u3002<\/span><\/li>\r\n<\/ul>\r\n<b><span style=\"font-size: 14pt;\"><strong>\u30ea\u30fc\u30d6\u30fb\u30ef\u30f3\u30fb\u30a2\u30a6\u30c8\u6cd5\uff08Leave-One-Out Cross-Validation\uff09<\/strong>:<\/span><\/b>\r\n<ul>\r\n\t<li><span style=\"font-size: 12pt;\">1\u3064\u306e\u30c7\u30fc\u30bf\u30dd\u30a4\u30f3\u30c8\u3092\u30c6\u30b9\u30c8\u30c7\u30fc\u30bf\u3068\u3057\u3001\u6b8b\u308a\u3092\u30c8\u30ec\u30fc\u30cb\u30f3\u30b0\u30c7\u30fc\u30bf\u3068\u3057\u3066\u4f7f\u7528\u3002<\/span><\/li>\r\n\t<li><span style=\"font-size: 12pt;\">\u3053\u308c\u3092\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u5185\u306e\u5168\u3066\u306e\u30c7\u30fc\u30bf\u30dd\u30a4\u30f3\u30c8\u306b\u5bfe\u3057\u3066\u7e70\u308a\u8fd4\u3059\u3002<\/span><\/li>\r\n\t<li><span style=\"font-size: 12pt;\">\u975e\u5e38\u306b\u5c0f\u3055\u306a\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u306e\u5834\u5408\u306b\u9069\u3057\u3066\u3044\u308b\u3002<\/span><\/li>\r\n<\/ul>\r\n<p><!-- notionvc: 743ab3bc-b59e-4252-93b7-b8fc821b8114 --><\/p>\n\n<h2>\u5fdc\u7528\uff1a\u7d44\u307f\u5408\u308f\u305b\u306b\u3064\u3044\u3066<\/h2>\n<p><span style=\"font-size: 14pt;\"><strong>\u76ee\u7684<\/strong><\/span><\/p>\r\n<p><span style=\"font-size: 12pt;\">\u30b0\u30eb\u30fc\u30d7\u5316\u3055\u308c\u305f\u30c7\u30fc\u30bf\u306e\u7279\u6027\u3092\u8003\u616e\u3057\u3064\u3064\u3001\u30af\u30e9\u30b9\u9593\u306e\u5206\u5e03\u306e\u30d0\u30e9\u30f3\u30b9\u3092\u53d6\u308b\u3053\u3068\u3002<\/span><\/p>\r\n<p><span style=\"font-size: 14pt;\"><strong>\u5fdc\u7528\u4f8b<\/strong><\/span><\/p>\r\n<p><span style=\"font-size: 12pt;\">\u60a3\u8005\u3054\u3068\u306b\u30b0\u30eb\u30fc\u30d7\u5316\u3055\u308c\u305f\u533b\u7642\u30c7\u30fc\u30bf\u304c\u3042\u308a\u3001\u30af\u30e9\u30b9\uff08\u75c5\u72b6\uff09\u306e\u5206\u5e03\u304c\u4e0d\u5747\u4e00\u306a\u5834\u5408\u3002\u3053\u306e\u3088\u3046\u306a\u5834\u5408\u3001\u5404\u60a3\u8005\u30b0\u30eb\u30fc\u30d7\u3092\u5206\u5272\u3057\uff08Group K-Fold\uff09\u3001\u3055\u3089\u306b\u5404\u5206\u5272\u5185\u3067\u30af\u30e9\u30b9\u306e\u6bd4\u7387\u3092\u5747\u7b49\u306b\u4fdd\u3064\uff08Stratified K-Fold\uff09\u3053\u3068\u304c\u8003\u3048\u3089\u308c\u308b\u3002<\/span><\/p>\r\n<p><!-- notionvc: 6b4acef2-9c61-49f7-a99c-669e63350776 --><\/p>\n\n<h2>\u7d42\u308f\u308a\u306b<\/h2>\n<p><span style=\"font-size: 12pt;\">Part.1\u3067\u306f\u57fa\u672c\u7684\u306a\u30d0\u30ea\u30c7\u30fc\u30b7\u30e7\u30f3\u65b9\u6cd5\u306b\u3064\u3044\u3066\u7d39\u4ecb\u3057\u307e\u3057\u305f\u3002<\/span><\/p>\r\n<p><span style=\"font-size: 12pt;\">\u6b21\u56dePart.2\u3067\u306f\u5b9f\u88c5\u7de8\u3068\u3057\u3066\u3001\u4eca\u56de\u7d39\u4ecb\u3057\u305f\u57fa\u672c\u7684\u306a\u624b\u6cd5\u3092\u30b3\u30fc\u30c9\u3092\u7528\u3044\u3066\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/span><\/p>\r\n<p>[blogcard url=&#8221;https:\/\/blog.since2020.jp\/data_analysis\/%e6%a9%9f%e6%a2%b0%e5%ad%a6%e7%bf%92%e3%83%90%e3%83%aa%e3%83%87%e3%83%bc%e3%82%b7%e3%83%a7%e3%83%b3%e6%89%8b%e6%b3%95-%e5%be%b9%e5%ba%95%e8%a7%a3%e8%aa%ac-part-2\/&#8221;]<\/p>\r\n<p><!-- notionvc: 99bcfd36-526b-4ac1-9eba-b7c73e39e3a9 --><\/p>\n\n<h2>\u53c2\u7167<\/h2>\n<p>[blogcard url=&#8221;https:\/\/scikit-learn.org\/stable\/modules\/cross_validation.html&#8221;]<\/p>","protected":false},"excerpt":{"rendered":"<p>\u672c\u8a18\u4e8b Part.1 \u3067\u306f\u3001\u201d\u3088\u304f\u7528\u3044\u3089\u308c\u308b\u201d\u30d0\u30ea\u30c7\u30fc\u30b7\u30e7\u30f3\u624b\u6cd5\u3068\u305d\u306e\u6319\u52d5\u306b\u3064\u3044\u3066\u7d39\u4ecb\u3059\u308b\u3068\u3068\u3082\u306b\u3001 \u5fdc\u7528\u3068\u3057\u3066\u30d0\u30ea\u30c7\u30fc\u30b7\u30e7\u30f3\u624b\u6cd5\u3092\u7d44\u307f\u5408\u308f\u305b\u305f\u624b\u6cd5\u3082\u8efd\u304f\u7d39\u4ecb\u3057\u307e\u3059\uff01 \u306f\u3058\u3081\u306b \u30d0\u30ea\u30c7\u30fc\u30b7\u30e7\u30f3\u306f\u3001\u30e2\u30c7\u30eb\u304c\u672a\u77e5\u306e\u30c7\u30fc\u30bf\u306b\u3069 [&hellip;]<\/p>\n","protected":false},"author":7,"featured_media":3123,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"content-type":"","swell_btn_cv_data":"","footnotes":"","_wp_rev_ctl_limit":""},"categories":[1246],"tags":[96,28,39,27,26],"class_list":["post-4247","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-data-infrastructure","tag-ai","tag-28","tag-39","tag-27","tag-26"],"_links":{"self":[{"href":"https:\/\/since2020.jp\/media\/wp-json\/wp\/v2\/posts\/4247","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/since2020.jp\/media\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/since2020.jp\/media\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/since2020.jp\/media\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/since2020.jp\/media\/wp-json\/wp\/v2\/comments?post=4247"}],"version-history":[{"count":1,"href":"https:\/\/since2020.jp\/media\/wp-json\/wp\/v2\/posts\/4247\/revisions"}],"predecessor-version":[{"id":4255,"href":"https:\/\/since2020.jp\/media\/wp-json\/wp\/v2\/posts\/4247\/revisions\/4255"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/since2020.jp\/media\/wp-json\/wp\/v2\/media\/3123"}],"wp:attachment":[{"href":"https:\/\/since2020.jp\/media\/wp-json\/wp\/v2\/media?parent=4247"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/since2020.jp\/media\/wp-json\/wp\/v2\/categories?post=4247"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/since2020.jp\/media\/wp-json\/wp\/v2\/tags?post=4247"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}