{"id":474,"date":"2021-01-11T11:12:03","date_gmt":"2021-01-11T02:12:03","guid":{"rendered":"http:\/\/hituji1012.xsrv.jp\/?p=474"},"modified":"2026-08-01T13:53:50","modified_gmt":"2026-08-01T04:53:50","slug":"96","status":"publish","type":"post","link":"https:\/\/tetsumag.com\/blog\/2021\/01\/11\/96\/","title":{"rendered":"\u6a5f\u68b0\u5b66\u7fd2\u306e\u7cbe\u5ea6\u8a55\u4fa1\u306b\u3064\u3044\u3066"},"content":{"rendered":"\n<p><strong data-rich-text-format-boundary=\"true\"><\/strong><\/p>\n<p>\u6a5f\u68b0\u5b66\u7fd2\u306f\u7cbe\u5ea6\u3092\u78ba\u8a8d\u3059\u308b\u3053\u3068\u304c\u5fc5\u9808\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u7cbe\u5ea6\u8a55\u4fa1\u3092\u3057\u306a\u3044\u3067\u4f7f\u3044\u59cb\u3081\u308b\u3068\u3001\u5b66\u7fd2\u6642\u3068\u9055\u3063\u3066\u7cbe\u5ea6\u304c\u5168\u7136\u51fa\u306a\u3044\u3068\u3044\u3046\u3053\u3068\u306b\u306a\u308a\u304b\u306d\u307e\u305b\u3093\u3002<\/p>\n<p>\u7cbe\u5ea6\u8a55\u4fa1\u306b\u3064\u3044\u3066\u7406\u89e3\u3057\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_38 counter-hierarchy ez-toc-counter ez-toc-transparent ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\">\u76ee\u6b21<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" style=\"display: none;\"><label for=\"item\" aria-label=\"Table of Content\"><span style=\"display: flex;align-items: center;width: 35px;height: 30px;justify-content: center;\"><svg style=\"fill: #444444;color:#444444\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #444444;color:#444444\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/label><input type=\"checkbox\" id=\"item\"><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/tetsumag.com\/blog\/2021\/01\/11\/96\/#%E7%B2%BE%E5%BA%A6%E8%A9%95%E4%BE%A1%E3%81%AB%E3%81%A4%E3%81%84%E3%81%A6\" title=\"\u7cbe\u5ea6\u8a55\u4fa1\u306b\u3064\u3044\u3066\">\u7cbe\u5ea6\u8a55\u4fa1\u306b\u3064\u3044\u3066<\/a><ul class='ez-toc-list-level-3'><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/tetsumag.com\/blog\/2021\/01\/11\/96\/#%E6%A9%9F%E6%A2%B0%E5%AD%A6%E7%BF%92%E3%81%A7%E3%81%AF%E7%B2%BE%E5%BA%A6%E3%81%8C%E4%B8%80%E7%95%AA%E5%A4%A7%E5%88%87\" title=\"\u6a5f\u68b0\u5b66\u7fd2\u3067\u306f\u7cbe\u5ea6\u304c\u4e00\u756a\u5927\u5207\">\u6a5f\u68b0\u5b66\u7fd2\u3067\u306f\u7cbe\u5ea6\u304c\u4e00\u756a\u5927\u5207<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/tetsumag.com\/blog\/2021\/01\/11\/96\/#%E7%B2%BE%E5%BA%A6%E8%A9%95%E4%BE%A1%E3%81%A8%E3%81%AF%E3%83%87%E3%83%BC%E3%82%BF%E3%82%92%E5%AD%A6%E7%BF%92%E3%80%81%E3%83%90%E3%83%AA%E3%83%87%E3%83%BC%E3%82%B7%E3%83%A7%E3%83%B3%E3%80%81%E3%83%86%E3%82%B9%E3%83%88%E7%94%A8%E3%81%AB%E5%88%86%E5%89%B2%E3%81%99%E3%82%8B%E3%81%93%E3%81%A8\" title=\"\u7cbe\u5ea6\u8a55\u4fa1\u3068\u306f\u30c7\u30fc\u30bf\u3092\u5b66\u7fd2\u3001\u30d0\u30ea\u30c7\u30fc\u30b7\u30e7\u30f3\u3001\u30c6\u30b9\u30c8\u7528\u306b\u5206\u5272\u3059\u308b\u3053\u3068\">\u7cbe\u5ea6\u8a55\u4fa1\u3068\u306f\u30c7\u30fc\u30bf\u3092\u5b66\u7fd2\u3001\u30d0\u30ea\u30c7\u30fc\u30b7\u30e7\u30f3\u3001\u30c6\u30b9\u30c8\u7528\u306b\u5206\u5272\u3059\u308b\u3053\u3068<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/tetsumag.com\/blog\/2021\/01\/11\/96\/#%E3%83%87%E3%83%BC%E3%82%BF%E6%95%B0%E3%81%8C%E8%86%A8%E5%A4%A7%E3%81%AA%E5%A0%B4%E5%90%88%E3%81%AF%E8%AA%BF%E6%95%B4%E3%81%8C%E5%BF%85%E8%A6%81\" title=\"\u30c7\u30fc\u30bf\u6570\u304c\u81a8\u5927\u306a\u5834\u5408\u306f\u8abf\u6574\u304c\u5fc5\u8981\">\u30c7\u30fc\u30bf\u6570\u304c\u81a8\u5927\u306a\u5834\u5408\u306f\u8abf\u6574\u304c\u5fc5\u8981<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/tetsumag.com\/blog\/2021\/01\/11\/96\/#%E3%81%AA%E3%81%9C%E3%83%87%E3%83%BC%E3%82%BF%E3%81%AE%E5%88%86%E5%89%B2%E3%81%8C%E5%BF%85%E8%A6%81%E3%81%AA%E3%81%AE%EF%BC%9F\" title=\"\u306a\u305c\u30c7\u30fc\u30bf\u306e\u5206\u5272\u304c\u5fc5\u8981\u306a\u306e\uff1f\">\u306a\u305c\u30c7\u30fc\u30bf\u306e\u5206\u5272\u304c\u5fc5\u8981\u306a\u306e\uff1f<\/a><ul class='ez-toc-list-level-3'><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/tetsumag.com\/blog\/2021\/01\/11\/96\/#%E3%82%AA%E3%83%BC%E3%83%90%E3%83%BC%E3%83%95%E3%82%A3%E3%83%83%E3%83%86%E3%82%A3%E3%83%B3%E3%82%B0%E9%81%8E%E5%AD%A6%E7%BF%92%E3%80%81%E3%82%A2%E3%83%B3%E3%83%80%E3%83%BC%E3%83%95%E3%82%A3%E3%83%83%E3%83%86%E3%82%A3%E3%83%B3%E3%82%B0%E9%81%8E%E5%B0%8F%E5%AD%A6%E7%BF%92%E3%82%92%E9%98%B2%E3%81%90\" title=\"\u30aa\u30fc\u30d0\u30fc\u30d5\u30a3\u30c3\u30c6\u30a3\u30f3\u30b0(\u904e\u5b66\u7fd2)\u3001\u30a2\u30f3\u30c0\u30fc\u30d5\u30a3\u30c3\u30c6\u30a3\u30f3\u30b0(\u904e\u5c0f\u5b66\u7fd2)\u3092\u9632\u3050\">\u30aa\u30fc\u30d0\u30fc\u30d5\u30a3\u30c3\u30c6\u30a3\u30f3\u30b0(\u904e\u5b66\u7fd2)\u3001\u30a2\u30f3\u30c0\u30fc\u30d5\u30a3\u30c3\u30c6\u30a3\u30f3\u30b0(\u904e\u5c0f\u5b66\u7fd2)\u3092\u9632\u3050<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/tetsumag.com\/blog\/2021\/01\/11\/96\/#%E7%B2%BE%E5%BA%A6%E8%A9%95%E4%BE%A1%E3%81%AE%E6%96%B9%E6%B3%95\" title=\"\u7cbe\u5ea6\u8a55\u4fa1\u306e\u65b9\u6cd5\">\u7cbe\u5ea6\u8a55\u4fa1\u306e\u65b9\u6cd5<\/a><ul class='ez-toc-list-level-3'><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/tetsumag.com\/blog\/2021\/01\/11\/96\/#%E5%80%A4%E4%BA%88%E6%B8%AC%E3%81%AB%E3%81%AF%E6%A8%99%E6%BA%96%E8%AA%A4%E5%B7%AERMSE%E3%81%A8%E6%B1%BA%E5%AE%9A%E4%BF%82%E6%95%B0R2%E3%82%92%E4%BD%BF%E3%81%86\" title=\"\u5024\u4e88\u6e2c\u306b\u306f\u6a19\u6e96\u8aa4\u5deeRMSE\u3068\u6c7a\u5b9a\u4fc2\u6570R2\u3092\u4f7f\u3046\">\u5024\u4e88\u6e2c\u306b\u306f\u6a19\u6e96\u8aa4\u5deeRMSE\u3068\u6c7a\u5b9a\u4fc2\u6570R2\u3092\u4f7f\u3046<\/a><ul class='ez-toc-list-level-4'><li class='ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/tetsumag.com\/blog\/2021\/01\/11\/96\/#%E6%A8%99%E6%BA%96%E8%AA%A4%E5%B7%AERMSE%E3%81%AF%E5%80%A4%E3%81%8C%E5%B0%8F%E3%81%95%E3%81%84%E3%81%BB%E3%81%A9%E8%89%AF%E3%81%84\" title=\"\u6a19\u6e96\u8aa4\u5deeRMSE\u306f\u5024\u304c\u5c0f\u3055\u3044\u307b\u3069\u826f\u3044\">\u6a19\u6e96\u8aa4\u5deeRMSE\u306f\u5024\u304c\u5c0f\u3055\u3044\u307b\u3069\u826f\u3044<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/tetsumag.com\/blog\/2021\/01\/11\/96\/#%E6%B1%BA%E5%AE%9A%E4%BF%82%E6%95%B0R2%E3%81%AF1%E3%81%AB%E8%BF%91%E3%81%84%E3%81%BB%E3%81%A9%E8%89%AF%E3%81%84\" title=\"\u6c7a\u5b9a\u4fc2\u6570R2\u306f1\u306b\u8fd1\u3044\u307b\u3069\u826f\u3044\">\u6c7a\u5b9a\u4fc2\u6570R2\u306f1\u306b\u8fd1\u3044\u307b\u3069\u826f\u3044<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-11\" href=\"https:\/\/tetsumag.com\/blog\/2021\/01\/11\/96\/#%E5%88%86%E9%A1%9E\" title=\"\u5206\u985e\">\u5206\u985e<\/a><ul class='ez-toc-list-level-4'><li class='ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-12\" href=\"https:\/\/tetsumag.com\/blog\/2021\/01\/11\/96\/#%E5%90%84%E6%8C%87%E6%A8%99\" title=\"\u5404\u6307\u6a19\">\u5404\u6307\u6a19<\/a><\/li><\/ul><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-13\" href=\"https:\/\/tetsumag.com\/blog\/2021\/01\/11\/96\/#%E3%81%BE%E3%81%A8%E3%82%81\" title=\"\u307e\u3068\u3081\">\u307e\u3068\u3081<\/a><\/li><\/ul><\/nav><\/div>\n<h2><span class=\"ez-toc-section\" id=\"%E7%B2%BE%E5%BA%A6%E8%A9%95%E4%BE%A1%E3%81%AB%E3%81%A4%E3%81%84%E3%81%A6\"><\/span>\u7cbe\u5ea6\u8a55\u4fa1\u306b\u3064\u3044\u3066<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u6a5f\u68b0\u5b66\u7fd2\u306f\u3069\u308c\u304f\u3089\u3044\u306e\u7cbe\u5ea6\u306b\u306a\u3063\u305f\u304b\u304c\u5927\u4e8b\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u6a5f\u68b0\u5b66\u7fd2\u306e\u5224\u5b9a\u306f\u3001\u5224\u5b9a\u6839\u62e0\u304c\u4eba\u9593\u304b\u3089\u3059\u308b\u3068\u8907\u96d1\u3059\u304e\u3066\u7406\u89e3\u304c\u3067\u304d\u306a\u3044\u305f\u3081\u3001<strong>\u7cbe\u5ea6<\/strong>\u3068\u3044\u3046\u308f\u304b\u308a\u3084\u3059\u3044\u3082\u306e\u3067\u5224\u65ad\u3057\u3066\u3044\u304f\u305f\u3081\u3067\u3059\u3002<\/p>\n<h3><span class=\"ez-toc-section\" id=\"%E6%A9%9F%E6%A2%B0%E5%AD%A6%E7%BF%92%E3%81%A7%E3%81%AF%E7%B2%BE%E5%BA%A6%E3%81%8C%E4%B8%80%E7%95%AA%E5%A4%A7%E5%88%87\"><\/span>\u6a5f\u68b0\u5b66\u7fd2\u3067\u306f\u7cbe\u5ea6\u304c\u4e00\u756a\u5927\u5207<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\u4f8b\u3048\u3070\u3001\u5f93\u6765\u306e\u753b\u50cf\u51e6\u7406\u306e\u691c\u67fb\u3067\u8003\u3048\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u3042\u308b\u88fd\u54c1\u306e\u826f\u54c1\u3092\u4e0d\u826f\u54c1\u3092\u5224\u5b9a\u3057\u305f\u3044\u3068\u3057\u307e\u3059\u3002<\/p>\n<p>\u5f93\u6765\u306e\u753b\u50cf\u51e6\u7406\u3067\u306f\u3001\u8272\u3005\u306a\u753b\u50cf\u51e6\u7406\u3092\u7d44\u307f\u5408\u308f\u305b\u308b\u3053\u3068\u3067\u3001\u50b7\u3084\u6c5a\u308c\u306a\u3069<strong>\u7570\u5e38\u7b87\u6240\u3092\u691c\u77e5<\/strong>\u3057\u3066\u5224\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"size-full wp-image-631 aligncenter\" src=\"https:\/\/tetsumag.com\/wp-content\/uploads\/2020\/11\/ml6_1.png\" alt=\"\" width=\"300\" height=\"317\" srcset=\"https:\/\/tetsumag.com\/blog\/wp-content\/uploads\/2020\/11\/ml6_1.png 300w, https:\/\/tetsumag.com\/blog\/wp-content\/uploads\/2020\/11\/ml6_1-284x300.png 284w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>\u3053\u306e\u51e6\u7406\u3092\u7d44\u307f\u5408\u308f\u305b\u3066\u3001\u3053\u306e\u3088\u3046\u306b\u4e0d\u826f\u3068\u5224\u65ad\u3057\u3066\u3044\u307e\u3059\u3068\u8aac\u660e\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u3057\u304b\u3057\u3001\u6a5f\u68b0\u5b66\u7fd2\u306b\u304a\u3044\u3066\u306f\u3053\u306e\u753b\u50cf\u306f\u826f\u54c1\u3001\u3053\u306e\u753b\u50cf\u306f\u4e0d\u826f\u54c1\u3068\u3044\u3063\u305f\u3088\u3046\u306b\u3001\u826f\u54c1\/\u4e0d\u826f\u54c1\u306a\u3069\u306e\u60c5\u5831\u3092\u6e21\u3059\u3060\u3051\u3067\u3059\u3002<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"size-full wp-image-632 aligncenter\" src=\"https:\/\/tetsumag.com\/wp-content\/uploads\/2020\/11\/ml6_2.png\" alt=\"\" width=\"600\" height=\"348\" srcset=\"https:\/\/tetsumag.com\/blog\/wp-content\/uploads\/2020\/11\/ml6_2.png 600w, https:\/\/tetsumag.com\/blog\/wp-content\/uploads\/2020\/11\/ml6_2-300x174.png 300w\" sizes=\"(max-width: 600px) 100vw, 600px\" \/><\/p>\n<p>\u3053\u3053\u306b\u50b7\u304c\u3042\u308b\u304b\u3089\u6c5a\u308c\u304c\u3042\u308b\u306a\u3069\u306f\u6559\u3048\u307e\u305b\u3093\u3002<\/p>\n<p>\u306a\u306e\u3067\u3001<strong>\u3069\u306e\u3088\u3046\u306b\u3057\u3066\u4e0d\u826f\u54c1\u3068\u5224\u5b9a\u3057\u305f\u304b\u4e0d\u660e<\/strong>\u3067\u8aac\u660e\u304c\u3067\u304d\u307e\u305b\u3093\u3002<\/p>\n<p>\u305d\u3053\u3067\u5fc5\u8981\u306b\u306a\u308b\u306e\u304c\u3001\u7cbe\u5ea6\u3067\u3059\u3002<\/p>\n<p>\u300c\u6a5f\u68b0\u5b66\u7fd2\u304c\u3069\u3046\u3044\u3063\u305f\u51e6\u7406\u3092\u3057\u305f\u304b\u308f\u304b\u3089\u306a\u3044\u3051\u3069\u3001\u3007\u3007%\u306e\u7cbe\u5ea6\u3067\u5224\u5b9a\u3057\u3066\u304f\u308c\u308b\u304b\u3089\u4f7f\u3048\u308b\uff01\u300d\u3068\u3044\u3046\u3053\u3068\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n<h3><span class=\"ez-toc-section\" id=\"%E7%B2%BE%E5%BA%A6%E8%A9%95%E4%BE%A1%E3%81%A8%E3%81%AF%E3%83%87%E3%83%BC%E3%82%BF%E3%82%92%E5%AD%A6%E7%BF%92%E3%80%81%E3%83%90%E3%83%AA%E3%83%87%E3%83%BC%E3%82%B7%E3%83%A7%E3%83%B3%E3%80%81%E3%83%86%E3%82%B9%E3%83%88%E7%94%A8%E3%81%AB%E5%88%86%E5%89%B2%E3%81%99%E3%82%8B%E3%81%93%E3%81%A8\"><\/span>\u7cbe\u5ea6\u8a55\u4fa1\u3068\u306f\u30c7\u30fc\u30bf\u3092\u5b66\u7fd2\u3001\u30d0\u30ea\u30c7\u30fc\u30b7\u30e7\u30f3\u3001\u30c6\u30b9\u30c8\u7528\u306b\u5206\u5272\u3059\u308b\u3053\u3068<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\u7cbe\u5ea6\u8a55\u4fa1\u3067\u3059\u308b\u3053\u3068\u306f\u975e\u5e38\u306b\u7c21\u5358\u3067\u3001\u6301\u3063\u3066\u3044\u308b\u30c7\u30fc\u30bf\u3092\u5206\u5272\u3059\u308b\u3060\u3051\u3067\u3059\u3002<\/p>\n<p>\u6a5f\u68b0\u5b66\u7fd2\u306f\u5927\u91cf\u306e\u30c7\u30fc\u30bf\u3092\u5fc5\u8981\u3068\u3057\u307e\u3059\u3002<\/p>\n<p>\u30c7\u30fc\u30bf\u91cf\u304c\u591a\u3044\u3068\u7cbe\u5ea6\u304c\u4e0a\u304c\u308b\u305f\u3081\u3067\u3059\u3002<\/p>\n<p>\u305d\u306e\u30c7\u30fc\u30bf\u306f\u5168\u3066\u5b66\u7fd2\u306b\u4f7f\u308f\u305a\u30011.\u5b66\u7fd2\u30012.\u30d0\u30ea\u30c7\u30fc\u30b7\u30e7\u30f3\u30013.\u30c6\u30b9\u30c8\u7528\u306e3\u3064\u306b\u5206\u3051\u307e\u3059\u3002<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"size-full wp-image-634 aligncenter\" src=\"https:\/\/tetsumag.com\/wp-content\/uploads\/2020\/11\/ml6_4.png\" alt=\"\" width=\"607\" height=\"264\" \/><\/p>\n<p>\u3053\u308c\u306f\u597d\u307f\u306b\u3082\u3088\u308a\u307e\u3059\u304c\u30018:1:1=\u5b66\u7fd2:\u30d0\u30ea\u30c7\u30fc\u30b7\u30e7\u30f3:\u30c6\u30b9\u30c8\u7528\u306e\u5272\u5408\u3067\u5206\u3051\u308b\u3068\u826f\u3044\u3067\u3057\u3087\u3046\u3002<\/p>\n<table>\n<tbody>\n<tr>\n<td>\u5b66\u7fd2<\/td>\n<td>\u5b66\u7fd2\u3067\u4f7f\u3046\u30c7\u30fc\u30bf<\/td>\n<\/tr>\n<tr>\n<td>\u30d0\u30ea\u30c7\u30fc\u30b7\u30e7\u30f3<\/td>\n<td>\u5b66\u7fd2\u306e\u30cf\u30a4\u30d1\u30fc\u30d1\u30e9\u30e1\u30fc\u30bf\uff08\u5b66\u7fd2\u7387\u306a\u3069\uff09\u3092\u8abf\u6574\u3057\u3066\u3001\u4e00\u756a\u7cbe\u5ea6\u306e\u826f\u3044\u30d1\u30e9\u30e1\u30fc\u30bf\u3092\u78ba\u8a8d\u3059\u308b\u30c7\u30fc\u30bf<\/td>\n<\/tr>\n<tr>\n<td>\u30c6\u30b9\u30c8<\/td>\n<td>\u5b66\u7fd2\u5f8c\u6700\u7d42\u7684\u306b\u7cbe\u5ea6\u78ba\u8a8d\u7528\u306e\u30c7\u30fc\u30bf<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u30d0\u30ea\u30c7\u30fc\u30b7\u30e7\u30f3\u306f\u300c\u691c\u8a3c\u300d\u3092\u610f\u5473\u3057\u307e\u3059\u3002<\/p>\n<p>\u30d0\u30ea\u30c7\u30fc\u30b7\u30e7\u30f3\u306f\u3001<strong>\u5b66\u7fd2\u7387<\/strong>\u3084\u30c7\u30a3\u30fc\u30d7\u30e9\u30fc\u30cb\u30f3\u30b0\u306e<strong>\u5c64\u306e\u6570<\/strong>\u306a\u3069\u30cf\u30a4\u30d1\u30fc\u30d1\u30e9\u30e1\u30fc\u30bf\u3092\u8abf\u6574\u3059\u308b\u3068\u304d\u306b\u3001\u4e00\u756a\u7cbe\u5ea6\u304c\u51fa\u308b\u30d1\u30e9\u30e1\u30fc\u30bf\u3092\u63a2\u3059\u305f\u3081\u306b\u4f7f\u3046\u30c7\u30fc\u30bf\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u30cf\u30a4\u30d1\u30fc\u30d1\u30e9\u30e1\u30fc\u30bf\u306f\u6a5f\u68b0\u5b66\u7fd2\u3067\u4eba\u304c\u8abf\u6574\u304c\u5fc5\u8981\u306a\u30d1\u30e9\u30e1\u30fc\u30bf\u5168\u822c\u3092\u6307\u3057\u307e\u3059\u3002<\/p>\n<p>\u5b66\u7fd2:\u30c6\u30b9\u30c8=8:2\u304f\u3089\u3044\u306b\u5206\u3051\u3066\u3001\u30c6\u30b9\u30c8\u7528\u306e\u30c7\u30fc\u30bf\u3067\u30cf\u30a4\u30d1\u30fc\u30d1\u30e9\u30e1\u30fc\u30bf\u3092\u8abf\u6574\u3057\u3066\u3082\u3001\u554f\u984c\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n<h3><span class=\"ez-toc-section\" id=\"%E3%83%87%E3%83%BC%E3%82%BF%E6%95%B0%E3%81%8C%E8%86%A8%E5%A4%A7%E3%81%AA%E5%A0%B4%E5%90%88%E3%81%AF%E8%AA%BF%E6%95%B4%E3%81%8C%E5%BF%85%E8%A6%81\"><\/span>\u30c7\u30fc\u30bf\u6570\u304c\u81a8\u5927\u306a\u5834\u5408\u306f\u8abf\u6574\u304c\u5fc5\u8981<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\u30c7\u30fc\u30bf\u304c\u6570\u4e07\u3068\u81a8\u5927\u306b\u3042\u308b\u5834\u5408\u306f\u30018:1:1\u3068\u305b\u305a\u306b\u30c6\u30b9\u30c8\u7528\u30c7\u30fc\u30bf\u306f1000\u306b\u3059\u308b\u306a\u3069\u3001\u7cbe\u5ea6\u3092\u78ba\u8a8d\u3059\u308b\u306e\u306b\u5341\u5206\u306a\u30c7\u30fc\u30bf\u91cf\u3067\u8a2d\u5b9a\u3059\u308b\u3068\u826f\u3044\u3067\u3057\u3087\u3046\u3002<\/p>\n<p>\u3069\u308c\u304f\u3089\u3044\u306e\u91cf\u304b\uff1f\u3068\u3044\u3046\u306e\u306f\u7279\u306b\u6c7a\u307e\u3063\u3066\u3044\u308b\u308f\u3051\u3067\u306f\u306a\u3044\u306e\u3067\u3001\u6301\u3063\u3066\u3044\u308b\u30c7\u30fc\u30bf\u304b\u3089\u3054\u81ea\u8eab\u306e\u7d4c\u9a13\u5247\u3067\u5224\u65ad\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u4f8b\u3048\u3070\u300110\u4e07\u306e\u30c7\u30fc\u30bf\u304c\u3042\u308a\u826f\u54c1\/\u4e0d\u826f\u54c1\u306e\uff12\u9805\u5206\u985e\u3067\u306f\u3001\u30c6\u30b9\u30c8\u7528\u306e\u30c7\u30fc\u30bf\u306f1000\u3082\u3042\u308c\u3070\u5341\u5206\u3067\u3057\u3087\u3046\u3002<\/p>\n<p>\u3057\u304b\u3057\u3001\u4f55\u7a2e\u985e\u3082\u5206\u985e\u3059\u308b\u591a\u9805\u5206\u985e\u30671000\u7a2e\u985e\u3092\u5206\u985e\u3059\u308b\u5834\u54081000\u3067\u306f\u8db3\u308a\u305a\u3001\u6700\u4f4e1\u4e07\u7a0b\u5ea6\u306e\u30c7\u30fc\u30bf\u3092\u7528\u610f\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u3053\u306e\u3088\u3046\u306b\u3001\u6bd4\u7387\u306f\u76ee\u5b89\u3067\u3042\u308a\u3001\u7cbe\u5ea6\u3092\u78ba\u8a8d\u3059\u308b\u306e\u306b\u5341\u5206\u306a\u30c6\u30b9\u30c8\u30c7\u30fc\u30bf\u3092\u7528\u610f\u3059\u308b\u3053\u3068\u304c\u5927\u5207\u3067\u3059\u3002<\/p>\n<div>\n<div style=\"height: 15px;\"><span style=\"background: #91D8AC; padding: 10px 10px; border-radius: 10px; color: #ffffff; font-weight: bold; margin-left: 10px;\">\u30dd\u30a4\u30f3\u30c8<\/span><\/div>\n<div style=\"padding: 30px 15px 10px; border-radius: 5px; border: 8px solid #91D8AC;\">\n<p>\u7cbe\u5ea6\u8a55\u4fa1\u3068\u306f\u30c7\u30fc\u30bf\u3092\u5b66\u7fd2\u3001\u30d0\u30ea\u30c7\u30fc\u30b7\u30e7\u30f3\u3001\u30c6\u30b9\u30c8\u7528\u306b\u5206\u3051\u308b\u3053\u3068<\/p>\n<p>8:1:1=\u5b66\u7fd2:\u30d0\u30ea\u30c7\u30fc\u30b7\u30e7\u30f3:\u30c6\u30b9\u30c8\u3068\u3044\u3063\u305f\u611f\u3058\u3067\u30c7\u30fc\u30bf\u3092\u5206\u5272\u3059\u308b<\/p>\n<p>\u30c7\u30fc\u30bf\u91cf\u306b\u5fdc\u3058\u3066\u5206\u5272\u3059\u308b\u5272\u5408\u3084\u91cf\u3092\u8abf\u6574\u3059\u308b<\/p>\n<\/div>\n<\/div>\n<h2><span class=\"ez-toc-section\" id=\"%E3%81%AA%E3%81%9C%E3%83%87%E3%83%BC%E3%82%BF%E3%81%AE%E5%88%86%E5%89%B2%E3%81%8C%E5%BF%85%E8%A6%81%E3%81%AA%E3%81%AE%EF%BC%9F\"><\/span>\u306a\u305c\u30c7\u30fc\u30bf\u306e\u5206\u5272\u304c\u5fc5\u8981\u306a\u306e\uff1f<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u30c7\u30fc\u30bf\u3092\u5206\u3051\u3066\u3001\u305d\u308c\u305e\u308c\u306e\u30c7\u30fc\u30bf\u3067\u7cbe\u5ea6\u3092\u78ba\u8a8d\u3059\u308b\u306e\u306f\u3001<strong>\u30aa\u30fc\u30d0\u30fc\u30d5\u30a3\u30c3\u30c6\u30a3\u30f3\u30b0<\/strong>\u3001<strong>\u30a2\u30f3\u30c0\u30fc\u30d5\u30a3\u30c3\u30c6\u30a3\u30f3\u30b0<\/strong>\u3068\u3044\u3046\u72b6\u614b\u3092\u78ba\u8a8d\u3059\u308b\u305f\u3081\u3067\u3059\u3002<\/p>\n<p>\u5177\u4f53\u7684\u306b\u8aac\u660e\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<h3><span class=\"ez-toc-section\" id=\"%E3%82%AA%E3%83%BC%E3%83%90%E3%83%BC%E3%83%95%E3%82%A3%E3%83%83%E3%83%86%E3%82%A3%E3%83%B3%E3%82%B0%E9%81%8E%E5%AD%A6%E7%BF%92%E3%80%81%E3%82%A2%E3%83%B3%E3%83%80%E3%83%BC%E3%83%95%E3%82%A3%E3%83%83%E3%83%86%E3%82%A3%E3%83%B3%E3%82%B0%E9%81%8E%E5%B0%8F%E5%AD%A6%E7%BF%92%E3%82%92%E9%98%B2%E3%81%90\"><\/span>\u30aa\u30fc\u30d0\u30fc\u30d5\u30a3\u30c3\u30c6\u30a3\u30f3\u30b0(\u904e\u5b66\u7fd2)\u3001\u30a2\u30f3\u30c0\u30fc\u30d5\u30a3\u30c3\u30c6\u30a3\u30f3\u30b0(\u904e\u5c0f\u5b66\u7fd2)\u3092\u9632\u3050<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\u3053\u308c\u3089\u304c\u3069\u306e\u3088\u3046\u306a\u72b6\u614b\u304b\u3068\u3044\u3046\u306e\u3092\u8aac\u660e\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<p>\u6b21\u306e\u3088\u3046\u306a\u3001\u7dda\u578b\u56de\u5e30\u3067\u8003\u3048\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"size-full wp-image-642 aligncenter\" src=\"https:\/\/tetsumag.com\/wp-content\/uploads\/2020\/11\/ml6_8.png\" alt=\"\" width=\"325\" height=\"300\" srcset=\"https:\/\/tetsumag.com\/blog\/wp-content\/uploads\/2020\/11\/ml6_8.png 325w, https:\/\/tetsumag.com\/blog\/wp-content\/uploads\/2020\/11\/ml6_8-300x277.png 300w\" sizes=\"(max-width: 325px) 100vw, 325px\" \/><\/p>\n<p>\u6a5f\u68b0\u5b66\u7fd2\u306b\u304a\u3044\u3066\u4e00\u756a\u826f\u3044\u306e\u306f\u3001\u4eca\u307e\u3067\u96c6\u3081\u305f\u5b66\u7fd2\u30c7\u30fc\u30bf\u306b\u30d5\u30a3\u30c3\u30c8\u3057\u3059\u304e\u305a\u3001\u4eca\u5f8c\u306e\u4e88\u6e2c\u3084\u5224\u5b9a\u3057\u305f\u3044\u30c7\u30fc\u30bf\u3067\u3082\u7cbe\u5ea6\u304c\u51fa\u308b\u72b6\u614b\u3067\u3059\u3002<\/p>\n<p>\u5b66\u7fd2\u3001\u30c6\u30b9\u30c8\u30c7\u30fc\u30bf\u306e\u7cbe\u5ea6\u3092\u78ba\u8a8d\u3059\u308b\u3053\u3068\u3067\u3001\u30b8\u30e3\u30b9\u30c8\u30d5\u30a3\u30c3\u30c8\u306b\u306a\u308b\u3088\u3046\u306b\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<table width=\"380\">\n<thead>\n<tr>\n<th width=\"50\"><\/th>\n<th width=\"110\">\u30a2\u30f3\u30c0\u30fc\u30d5\u30a3\u30c3\u30c6\u30a3\u30f3\u30b0<\/th>\n<th width=\"110\">\u30b8\u30e3\u30b9\u30c8\u30d5\u30a3\u30c3\u30c8<\/th>\n<th width=\"110\">\u30aa\u30fc\u30d0\u30fc\u30d5\u30a3\u30c3\u30c6\u30a3\u30f3\u30b0<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<th>\u30a4\u30e1\u30fc\u30b8<\/th>\n<td><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-641\" src=\"https:\/\/tetsumag.com\/wp-content\/uploads\/2020\/11\/ml6_5.png\" alt=\"\" width=\"100\" height=\"100\" \/><br \/>\n\u5b66\u7fd2\u304c\u3046\u307e\u304f\u884c\u3063\u3066\u3044\u306a\u3044\u72b6\u614b<\/td>\n<td><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-640\" src=\"https:\/\/tetsumag.com\/wp-content\/uploads\/2020\/11\/ml6_6.png\" alt=\"\" width=\"100\" height=\"100\" \/><br \/>\n\u5b66\u7fd2\u304c\u3046\u307e\u304f\u3044\u304d\u3001\u904b\u7528\u306b\u4f7f\u3048\u308b\u72b6\u614b<\/td>\n<td><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-639\" src=\"https:\/\/tetsumag.com\/wp-content\/uploads\/2020\/11\/ml6_7.png\" alt=\"\" width=\"100\" height=\"100\" \/><br \/>\n\u5b66\u7fd2\u306f\u3046\u307e\u304f\u884c\u3063\u3066\u3044\u308b\u304c\u3001\u5b66\u7fd2\u30c7\u30fc\u30bf\u306b\u30d5\u30a3\u30c3\u30c8\u3057\u3059\u304e\u3066\u3001\u904b\u7528\u6642\u306b\u306f\u7cbe\u5ea6\u304c\u5341\u5206\u306b\u51fa\u306a\u3044\u72b6\u614b\u3002<\/td>\n<\/tr>\n<tr>\n<th>\u7cbe\u5ea6\u3084<br \/>\n\u6c7a\u5b9a\u4fc2\u6570\u7b49<\/th>\n<td>\u5b66\u7fd2\u3068\u30c6\u30b9\u30c8\u30c7\u30fc\u30bf\u306e\u7cbe\u5ea6\u304c70,80%\u3068\u4f4e\u3044<br \/>\nex:\u5b66\u7fd2(70.5%)\u3001\u30c6\u30b9\u30c8(68.0%)<\/td>\n<td>\u5b66\u7fd2\u3068\u30c6\u30b9\u30c8\u30c7\u30fc\u30bf\u306e\u7cbe\u5ea6\u304c90%\u4ee5\u4e0a\u3068\u9ad8\u304f\u305d\u306e\u5dee0.*%\u7a0b\u5ea6<br \/>\nex:\u5b66\u7fd2(95.6%)\u3001\u30c6\u30b9\u30c8(95.0%)<\/td>\n<td>\u5b66\u7fd2\u30c7\u30fc\u30bf\u306e\u7cbe\u5ea6\u304c\u9ad8\u3044\u304c\u3001\u30c6\u30b9\u30c8\u30c7\u30fc\u30bf\u3068\u306e\u7cbe\u5ea6\u306b\u5dee\u304c\u3042\u308b<br \/>\nex:\u5b66\u7fd2(96.8%)\u3001\u30c6\u30b9\u30c8(90.0%)<\/td>\n<\/tr>\n<tr>\n<th>\u5bfe\u7b56<\/th>\n<td>\u6a5f\u68b0\u5b66\u7fd2\u30e2\u30c7\u30eb\u306e\u5909\u66f4\u3002<br \/>\n\u30cf\u30a4\u30d1\u30fc\u30d1\u30e9\u30e1\u30fc\u30bf\u3092\u8abf\u6574\u3002<br \/>\n\u30c7\u30fc\u30bf\u3092\u5897\u3084\u3059\u3002<\/td>\n<td>\u7279\u306b\u306a\u3044\u304c\u3001\u5fc5\u8981\u3068\u3059\u308b\u7cbe\u5ea6\u306b\u3088\u3063\u3066<br \/>\n\u6a5f\u68b0\u5b66\u7fd2\u306e\u30e2\u30c7\u30eb\u3092\u898b\u76f4\u3057\u305f\u308a\u3001<br \/>\n\u30c7\u30fc\u30bf\u3092\u5897\u3084\u3059\u3002<\/td>\n<td>\u7279\u5fb4\u91cf\u304c\u591a\u3044\u5834\u5408\u3001\u30c7\u30fc\u30bf\u3092\u5897\u3084\u3059\u3002<br \/>\n\u6b63\u5247\u5316\u9805\u3092\u4f7f\u3046\u3002<br \/>\nCNN\u306a\u3089\u30c9\u30ed\u30c3\u30d7\u30a2\u30a6\u30c8\u5c64\u7b49\u306e\u8abf\u6574\u3002<br \/>\n\u3088\u308a\u30b7\u30f3\u30d7\u30eb\u306a\u30e2\u30c7\u30eb\u306b\u5909\u66f4\u3002<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u6a5f\u68b0\u5b66\u7fd2\u306f\u5b66\u7fd2\u306b\u3088\u3063\u3066\u81ea\u52d5\u3067\u5224\u5225\u3084\u4e88\u6e2c\u3059\u308b\u65b9\u6cd5\u3092\u53d6\u5f97\u3057\u3066\u304f\u308c\u307e\u3059\u304c\u3001\u3053\u306e\u3088\u3046\u306b\u4eba\u304c\u8abf\u6574\u3057\u306a\u3051\u308c\u3070\u306a\u3089\u306a\u3044\u3068\u3053\u308d\u3082\u3042\u308a\u307e\u3059\u3002<\/p>\n<h2><span class=\"ez-toc-section\" id=\"%E7%B2%BE%E5%BA%A6%E8%A9%95%E4%BE%A1%E3%81%AE%E6%96%B9%E6%B3%95\"><\/span>\u7cbe\u5ea6\u8a55\u4fa1\u306e\u65b9\u6cd5<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u7cbe\u5ea6\u306e\u8a55\u4fa1\u306f\u3001\u6a5f\u68b0\u5b66\u7fd2\u3067\u4f55\u3092\u3059\u308b\u304b\u306b\u3088\u3063\u3066\u5185\u5bb9\u304c\u5909\u308f\u308a\u307e\u3059\u3002<\/p>\n<h3><span class=\"ez-toc-section\" id=\"%E5%80%A4%E4%BA%88%E6%B8%AC%E3%81%AB%E3%81%AF%E6%A8%99%E6%BA%96%E8%AA%A4%E5%B7%AERMSE%E3%81%A8%E6%B1%BA%E5%AE%9A%E4%BF%82%E6%95%B0R2%E3%82%92%E4%BD%BF%E3%81%86\"><\/span>\u5024\u4e88\u6e2c\u306b\u306f\u6a19\u6e96\u8aa4\u5deeRMSE\u3068\u6c7a\u5b9a\u4fc2\u6570R2\u3092\u4f7f\u3046<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\u307e\u305a\u3001\u5024\u306e\u4e88\u6e2c\u3067\u3059\u3002<\/p>\n<p>\u6b63\u89e3\u5024\u3092\\(y\\)\u3001\u4e88\u6e2c\u5024\\(\\hat{y}\\)\u3068\u3057\u307e\u3059\u3002<\/p>\n<h4><span class=\"ez-toc-section\" id=\"%E6%A8%99%E6%BA%96%E8%AA%A4%E5%B7%AERMSE%E3%81%AF%E5%80%A4%E3%81%8C%E5%B0%8F%E3%81%95%E3%81%84%E3%81%BB%E3%81%A9%E8%89%AF%E3%81%84\"><\/span>\u6a19\u6e96\u8aa4\u5deeRMSE\u306f\u5024\u304c\u5c0f\u3055\u3044\u307b\u3069\u826f\u3044<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>\u4e8c\u4e57\u5e73\u5747\u5e73\u65b9\u6839\u8aa4\u5dee(RMSE:Root Mean Squared Error)\u306f\u6b21\u306e\u5f0f\u3067\u8868\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>$$\u6c7a\u5b9a\u4fc2\u6570 = \\sqrt{\\frac{1}{n}\\sum_{i=1}^{n-1} (y_i-\\hat{y}_i)^2}$$<\/p>\n<p>\\(y\\):\u6b63\u89e3\u5024<br \/>\n\\(\\hat{y}\\):\u4e88\u6e2c\u5024<br \/>\n\\(n\\):\u30b5\u30f3\u30d7\u30eb\u6570<\/p>\n<p>\u4e88\u6e2c\u5024\u3068\u306e\u5dee\u3092\u4e8c\u4e57\u5e73\u5747\u3057\u3066\u3001\u30eb\u30fc\u30c8\u3067\u623b\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u4e88\u6e2c\u5024\u3068\u306e\u5dee\u3092\u898b\u3066\u3044\u308b\u306e\u3067\u5024\u304c\u5c0f\u3055\u3044\u65b9\u304c\u7cbe\u5ea6\u304c\u9ad8\u304f\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>python\u3067\u306f\u3001scikit-learn\u3092\u4f7f\u3046\u3053\u3068\u3067\u3001\u7c21\u5358\u306b\u7b97\u51fa\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"lang:python decode:true \">from sklearn.metrics import mean_absolute_error\r\ny = [1.0, 2.0, 3.0, 4.0, 5.0]\r\ny_pred = [1.1, 1.9, 3.3, 4.1, 5.0]\r\nprint(mean_absolute_error(y, y_pred))<\/pre>\n<pre class=\"\">0.11999999999999993<\/pre>\n<h4><span class=\"ez-toc-section\" id=\"%E6%B1%BA%E5%AE%9A%E4%BF%82%E6%95%B0R2%E3%81%AF1%E3%81%AB%E8%BF%91%E3%81%84%E3%81%BB%E3%81%A9%E8%89%AF%E3%81%84\"><\/span>\u6c7a\u5b9a\u4fc2\u6570R2\u306f1\u306b\u8fd1\u3044\u307b\u3069\u826f\u3044<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>\u6c7a\u5b9a\u4fc2\u6570\u306f\u6b21\u306e\u5f0f\u3067\u8868\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>$$RMSE = 1-\\frac{\\sum_{i=1}^{n-1} (y_i-\\hat{y}_i)^2}{\\sum_{i=1}^{n-1} (y_i-\\bar{y}_i)^2}$$<\/p>\n<p>\\(y\\):\u6b63\u89e3\u5024<br \/>\n\\(\\hat{y}\\):\u4e88\u6e2c\u5024<br \/>\n\\(\\bar{y}\\):\u5e73\u5747\u5024<br \/>\n\\(n\\):\u30b5\u30f3\u30d7\u30eb\u6570<\/p>\n<p>\u5024\u306f0\u301c1\u3068\u306a\u308a\u30011\u306b\u8fd1\u3044\u307b\u3069\u3001\u3046\u307e\u304f\u4e88\u6e2c\u3067\u304d\u3066\u3044\u308b\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u3053\u3061\u3089\u3082\u540c\u69d8\u306b\u3001sikit-learn\u306e\u95a2\u6570\u3092\u4f7f\u3046\u3068\u7c21\u5358\u306b\u7b97\u51fa\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"lang:python decode:true\">from sklearn.metrics import r2_score\r\ny = [1.0, 2.0, 3.0, 4.0, 5.0]\r\ny_pred = [1.1, 1.9, 3.3, 4.1, 5.0]\r\nprint(r2_score(y, y_pred))<\/pre>\n<pre class=\"\">0.988<\/pre>\n<h3><span class=\"ez-toc-section\" id=\"%E5%88%86%E9%A1%9E\"><\/span>\u5206\u985e<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\u5206\u985e\u3067\u306f0\u304b1\u304b\u4e88\u6e2c\u3067\u304d\u305f\u304b\u306e\u6b63\u89e3\u7387\u3092\u898b\u307e\u3059\u304c\u3001\u3044\u304f\u3064\u304b\u6307\u6a19\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<h4><span class=\"ez-toc-section\" id=\"%E5%90%84%E6%8C%87%E6%A8%99\"><\/span>\u5404\u6307\u6a19<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>0\u306f0\u3068\u4e88\u6e2c\u3067\u304d\u308c\u3070\u3044\u3044\u3067\u3059\u304c\u30010\u30921\u3092\u4e88\u6e2c\u3059\u308b\u3068\u304d\u3082\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u3053\u308c\u3092\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u8868\u306b\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<table>\n<thead>\n<tr>\n<th><\/th>\n<th>1(\u771f)<\/th>\n<th>0(\u507d)<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<th>\u6a5f\u68b0\u306e\u4e88\u6e2c 1(\u771f)<\/th>\n<td>TP (True Positive)<\/td>\n<td>FP (False Positive)<\/td>\n<\/tr>\n<tr>\n<th>\u6a5f\u68b0\u306e\u4e88\u6e2c 0(\u507d)<\/th>\n<td>FN (False Negative)<\/td>\n<td>TN (True Negative)<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u4f8b\u3048\u3070\u300110\u500b\u306e\u30b5\u30f3\u30d7\u30eb(\u771f\u507d5\u305a\u3064)\u304c\u4e0b\u8a18\u306e\u3088\u3046\u306a\u7d50\u679c\u3060\u3063\u305f\u3068\u3057\u307e\u3059\u3002<\/p>\n<table>\n<thead>\n<tr>\n<th><\/th>\n<th>1(\u771f)<\/th>\n<th>0(\u507d)<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<th>\u6a5f\u68b0\u306e\u4e88\u6e2c 1(\u771f)<\/th>\n<td style=\"text-align: center;\">4<\/td>\n<td style=\"text-align: center;\">2<\/td>\n<\/tr>\n<tr>\n<th>\u6a5f\u68b0\u306e\u4e88\u6e2c 0(\u507d)<\/th>\n<td style=\"text-align: center;\">1<\/td>\n<td style=\"text-align: center;\">3<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>python\u7b97\u51fa\u3059\u308b\u306b\u306f\u3053\u3061\u3089\u3082\u3001scikit-learn\u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u6d3b\u7528\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"lang:python decode:true\">from sklearn.metrics import confusion_matrix\r\ny      = [0,0,0,0,0,1,1,1,1,1]\r\ny_pred = [0,0,1,1,0,1,0,1,1,1]\r\nc_mat = confusion_matrix(y, y_pred)\r\nTN = c_mat[0][0]\r\nFP = c_mat[0][1]\r\nFN = c_mat[1][0]\r\nTP = c_mat[1][1]\r\nprint(f\"TP:{TP} FP:{FP} TN:{TN} FN:{FN}\")<\/pre>\n<pre class=\"\">TP:4 FP:1 TN:3 FN:2<\/pre>\n<p>\u3053\u306eTP,TN,FP,FN\u3092\u4f7f\u3063\u305f\u6b21\u306e\u3088\u3046\u306a\u6307\u6a19\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<table>\n<thead>\n<tr>\n<th>\u6307\u6a19<\/th>\n<th>\u5f0f<\/th>\n<th>\u610f\u5473<\/th>\n<th>\u8a08\u7b97\u4f8b<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<th>\u6b63\u89e3\u7387(Accuracy)<\/th>\n<td style=\"text-align: center;\">\\(\\frac{TP+TN}{TP+FP+TN+FN}\\)<\/td>\n<td style=\"text-align: center;\">0\u30681\u306e\u6b63\u89e3\u3057\u305f\u6bd4\u7387<\/td>\n<td style=\"text-align: center;\">\\(0.70=\\frac{4+3}{4+1+3+2}\\)<\/td>\n<\/tr>\n<tr>\n<th>\u9069\u5408\u7387(Precision)<\/th>\n<td style=\"text-align: center;\">\\(\\frac{TP}{TP+FP}\\)<\/td>\n<td style=\"text-align: center;\">1\u3068\u4e88\u6e2c\u3057\u305f\u5185\u3001\u5b9f\u969b\u306b1\u306e\u6bd4\u7387<\/td>\n<td style=\"text-align: center;\">\\(0.67=\\frac{4}{4+2}\\)<\/td>\n<\/tr>\n<tr>\n<th>\u518d\u73fe\u7387(Recall)<\/th>\n<td style=\"text-align: center;\">\\(\\frac{TP}{TP+FN}\\)<\/td>\n<td style=\"text-align: center;\">\u5b9f\u969b\u306e1\u306e\u5185\u30011\u3068\u6b63\u89e3\u3057\u305f\u6bd4\u7387<\/td>\n<td style=\"text-align: center;\">\\(0.80=\\frac{4}{4+1}\\)<\/td>\n<\/tr>\n<tr>\n<th>\u7279\u7570\u7387(Specificity)<\/th>\n<td style=\"text-align: center;\">\\(\\frac{TN}{TN+FP}\\)<\/td>\n<td style=\"text-align: center;\">\u5b9f\u969b\u306e0\u306e\u5185\u30010\u3068\u6b63\u89e3\u3057\u305f\u6bd4\u7387<\/td>\n<td style=\"text-align: center;\">\\(0.60=\\frac{3}{3+2}\\)<\/td>\n<\/tr>\n<tr>\n<th>F\u5024(F1 Score)<\/th>\n<td style=\"text-align: center;\">\\(\\frac{2*Recall*Precision}{Recall+Precision}\\)<\/td>\n<td style=\"text-align: center;\">Precision\u3068Recall\u306e\u8abf\u548c\u5e73\u5747<\/td>\n<td style=\"text-align: center;\">\\(0.73=\\frac{2*0.80*0.67}{0.80+0.67}\\)<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u3068\u308a\u3042\u3048\u305a\u3001F\u5024\u3092\u4f7f\u3063\u3066\u304a\u3051\u3070\u30d0\u30e9\u30f3\u30b9\u306e\u53d6\u308c\u305f\u7cbe\u5ea6\u8a55\u4fa1\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u5404\u6307\u6a19\u3092\u305d\u306e\u307e\u307e\u7b97\u51fa\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"lang:python decode:true \">from sklearn.metrics import accuracy_score, precision_score, recall_score, f1_score\r\nprint(f\"accuracy: {accuracy_score(y, y_pred)}\")\r\nprint(f\"precision: {precision_score(y, y_pred)}\")\r\nprint(f\"recall: {recall_score(y, y_pred)}\")\r\nprint(f\"f1 score: {f1_score(y, y_pred)}\")<\/pre>\n<pre class=\"\">accuracy: 0.7\r\nprecision: 0.6666666666666666\r\nrecall: 0.8\r\nf1 score: 0.7272727272727272<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"%E3%81%BE%E3%81%A8%E3%82%81\"><\/span>\u307e\u3068\u3081<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u3053\u306e\u8a18\u4e8b\u3067\u306f\u6a5f\u68b0\u5b66\u7fd2\u306e\u7cbe\u5ea6\u8a55\u4fa1\u306b\u3064\u3044\u3066\u8aac\u660e\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u96e3\u3057\u3044\u6570\u5f0f\u304c\u3067\u3066\u304d\u307e\u3057\u305f\u304c\u3001\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u6d3b\u7528\u3059\u308b\u3053\u3068\u3067\u7c21\u5358\u306b\u7b97\u51fa\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u601d\u3044\u51fa\u3057\u305f\u3044\u3068\u304d\u306b\u898b\u76f4\u3057\u3092\u3059\u308b\u7a0b\u5ea6\u3067\u62bc\u3055\u3048\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<blockquote class=\"wp-embedded-content\" data-secret=\"LrnSdf9oaR\"><p><a href=\"https:\/\/www.tetsumag.com\/2022\/07\/13\/283\/\">\u3010PyTorch\u3011GPU\u306e\u30e1\u30e2\u30ea\u4e0d\u8db3\u30a8\u30e9\u30fc\u306e\u5bfe\u51e6\u65b9\u6cd5<\/a><\/p><\/blockquote>\n<p><iframe class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; clip: rect(1px, 1px, 1px, 1px);\" title=\"&#8220;\u3010PyTorch\u3011GPU\u306e\u30e1\u30e2\u30ea\u4e0d\u8db3\u30a8\u30e9\u30fc\u306e\u5bfe\u51e6\u65b9\u6cd5&#8221; &#8212; \u3066\u3064\u307e\u3050\" src=\"https:\/\/www.tetsumag.com\/2022\/07\/13\/283\/embed\/#?secret=21o2GhoCC3#?secret=LrnSdf9oaR\" data-secret=\"LrnSdf9oaR\" width=\"500\" height=\"282\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6a5f\u68b0\u5b66\u7fd2\u306f\u7cbe\u5ea6\u3092\u78ba\u8a8d\u3059\u308b\u3053\u3068\u304c\u5fc5\u9808\u306b\u306a\u308a\u307e\u3059\u3002 \u7cbe\u5ea6\u8a55\u4fa1\u3092\u3057\u306a\u3044\u3067\u4f7f\u3044\u59cb\u3081\u308b\u3068\u3001\u5b66\u7fd2\u6642\u3068\u9055\u3063\u3066\u7cbe\u5ea6\u304c\u5168\u7136\u51fa\u306a\u3044\u3068\u3044\u3046\u3053\u3068\u306b\u306a\u308a\u304b\u306d\u307e\u305b\u3093\u3002 \u7cbe\u5ea6\u8a55\u4fa1\u306b\u3064\u3044\u3066\u7406\u89e3\u3057\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3002 \u7cbe\u5ea6\u8a55\u4fa1\u306b\u3064\u3044\u3066 \u6a5f\u68b0\u5b66\u7fd2\u306f\u3069\u308c\u304f\u3089\u3044\u306e &hellip;<\/p>\n<p class=\"read-more\"> <a class=\"\" href=\"https:\/\/tetsumag.com\/blog\/2021\/01\/11\/96\/\"> <span class=\"screen-reader-text\">\u6a5f\u68b0\u5b66\u7fd2\u306e\u7cbe\u5ea6\u8a55\u4fa1\u306b\u3064\u3044\u3066<\/span> \u3082\u3063\u3068\u8aad\u3080 &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":5077,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"default","ast-global-header-display":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"default","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","_themeisle_gutenberg_block_has_review":false},"categories":[127],"tags":[93],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/tetsumag.com\/blog\/wp-json\/wp\/v2\/posts\/474"}],"collection":[{"href":"https:\/\/tetsumag.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tetsumag.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tetsumag.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tetsumag.com\/blog\/wp-json\/wp\/v2\/comments?post=474"}],"version-history":[{"count":5,"href":"https:\/\/tetsumag.com\/blog\/wp-json\/wp\/v2\/posts\/474\/revisions"}],"predecessor-version":[{"id":15351,"href":"https:\/\/tetsumag.com\/blog\/wp-json\/wp\/v2\/posts\/474\/revisions\/15351"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/tetsumag.com\/blog\/wp-json\/wp\/v2\/media\/5077"}],"wp:attachment":[{"href":"https:\/\/tetsumag.com\/blog\/wp-json\/wp\/v2\/media?parent=474"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tetsumag.com\/blog\/wp-json\/wp\/v2\/categories?post=474"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tetsumag.com\/blog\/wp-json\/wp\/v2\/tags?post=474"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}