{"id":954,"date":"2022-01-02T12:51:57","date_gmt":"2022-01-02T03:51:57","guid":{"rendered":"https:\/\/aiacademy.jp\/media\/?p=954"},"modified":"2024-08-08T14:37:25","modified_gmt":"2024-08-08T05:37:25","slug":"pycaret%e5%85%a5%e9%96%80-python%e3%81%a7%e6%a9%9f%e6%a2%b0%e5%ad%a6%e7%bf%92%e3%82%92%e8%87%aa%e5%8b%95%e5%8c%96%e3%81%97%e3%82%88%e3%81%86%ef%bc%81%e3%80%90automl%e3%80%91","status":"publish","type":"post","link":"https:\/\/aiacademy.jp\/media\/?p=954","title":{"rendered":"PyCaret\u5165\u9580 Python\u3067\u6a5f\u68b0\u5b66\u7fd2\u3092\u81ea\u52d5\u5316\u3057\u3088\u3046\uff01\u3010AutoML\u3011"},"content":{"rendered":"<div id=\"sgb-css-id-1\">\n<div class=\"wp-block-buttons is-layout-flex wp-block-buttons-is-layout-flex\">\n<div class=\"wp-block-button has-custom-font-size is-style-fill has-medium-font-size\"><a class=\"wp-block-button__link has-vivid-green-cyan-background-color has-background wp-element-button\" href=\"https:\/\/lin.ee\/3E4GzWk\" rel=\"nofollow noopener\" target=\"_blank\">LINE\u53cb\u3060\u3061\u767b\u9332 \u25b6 \u6a5f\u68b0\u5b66\u7fd2\u30b3\u30fc\u30b9 \u25b6 \u53d7\u8b1b\u5272\u5f15\u30af\u30fc\u30dd\u30f3 \u7121\u6599\u52d5\u753b<\/a><\/div>\n<\/div>\n<\/div>\n\n\n<h1 class=\"wp-block-heading\" id=\"i-0\">PyCaret\u3068\u306f<\/h1>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"555\" src=\"https:\/\/aiacademy.jp\/media\/wp-content\/uploads\/2022\/01\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2022-01-02-12.17.41-1024x555.png\" alt=\"\" class=\"wp-image-957\" srcset=\"https:\/\/aiacademy.jp\/media\/wp-content\/uploads\/2022\/01\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2022-01-02-12.17.41-1024x555.png 1024w, https:\/\/aiacademy.jp\/media\/wp-content\/uploads\/2022\/01\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2022-01-02-12.17.41-300x163.png 300w, https:\/\/aiacademy.jp\/media\/wp-content\/uploads\/2022\/01\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2022-01-02-12.17.41-768x416.png 768w, https:\/\/aiacademy.jp\/media\/wp-content\/uploads\/2022\/01\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2022-01-02-12.17.41-1536x832.png 1536w, https:\/\/aiacademy.jp\/media\/wp-content\/uploads\/2022\/01\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2022-01-02-12.17.41-940x509.png 940w, https:\/\/aiacademy.jp\/media\/wp-content\/uploads\/2022\/01\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2022-01-02-12.17.41.png 1558w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\"><\/figure>\n\n\n\n<p><strong><a rel=\"noreferrer noopener nofollow\" href=\"https:\/\/pycaret.org\/\" target=\"_blank\">PyCaret<\/a>\u3068\u306f\u3001\u6a5f\u68b0\u5b66\u7fd2\u306e\u30e2\u30c7\u30eb\u958b\u767a\u306b\u304a\u3044\u3066\u3001\u30c7\u30fc\u30bf\u306e\u524d\u51e6\u7406\u3084\u53ef\u8996\u5316\u3001\u30e2\u30c7\u30eb\u958b\u767a\u3092\u6570\u884c\u306e\u30b3\u30fc\u30c9\u3067\u5b9f\u73fe\u53ef\u80fd\u306aPython\u306eAutoML\u30e9\u30a4\u30d6\u30e9\u30ea\u3067\u3059\u3002<\/strong><\/p>\n\n\n\n<p>PyCaret\u306f\u3044\u304f\u3064\u304b\u306e\u4e3b\u8981\u306a\u6a5f\u68b0\u5b66\u7fd2\u30e9\u30a4\u30d6\u30e9\u30ea\uff08scikit-learn, XGBoost, LightGBM\u306a\u3069\uff09\u3092Python\u3067\u30e9\u30c3\u30d1\u30fc\u3057\u3066\u304a\u308a\u3001\u5206\u985e\u3084\u56de\u5e30\u3001\u30af\u30e9\u30b9\u30bf\u30ea\u30f3\u30b0\u3001\u7570\u5e38\u691c\u77e5\u3001\u81ea\u7136\u8a00\u8a9e\u51e6\u7406\u304c\u6271\u3048\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u3053\u306e\u8a18\u4e8b\u3067\u306f\u300cPyCaret\u300d\u3092\u7528\u3044\u3066\u3001\u300cscikit-learn\u300d\u4ed8\u5c5e\u306eiris\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u3092\u5229\u7528\u3057\u5206\u985e\u554f\u984c\u3092\u5b9f\u65bd\u3057\u307e\u3059\u3002<br><\/p>\n\n\n\n<p><\/p>\n\n\n\n<h1 class=\"wp-block-heading\" id=\"i-1\">PyCaret\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b<\/h1>\n\n\n\n<p>\u666e\u6bb5\u5229\u7528\u3057\u3066\u3044\u308bPC\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u5834\u5408\u3001\u30bf\u30fc\u30df\u30ca\u30eb\u3084\u30b3\u30de\u30f3\u30c9\u30d7\u30ed\u30f3\u30d7\u30c8\u3092\u958b\u304d\u3001\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u51fa\u6765\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>pip install pycaret<\/code><\/pre>\n\n\n\n<p>Jupyter Notebook\u3084Google Colab\u3067\u306f\u5148\u982d\u306b!\u3092\u3064\u3051\u3066\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u306b\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u51fa\u6765\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>!pip install pycaret<\/code><\/pre>\n\n\n\n<p>\u3053\u306e\u8a18\u4e8b\u3067\u306fPyCaret\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u30922.3.5\u3092\u7528\u3044\u3001\u5b9f\u884c\u74b0\u5883\u306fGoogle Colab\u3092\u7528\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"464\" height=\"103\" src=\"https:\/\/aiacademy.jp\/media\/wp-content\/uploads\/2022\/01\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2022-01-02-12.28.09.png\" alt=\"\" class=\"wp-image-962\" srcset=\"https:\/\/aiacademy.jp\/media\/wp-content\/uploads\/2022\/01\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2022-01-02-12.28.09.png 464w, https:\/\/aiacademy.jp\/media\/wp-content\/uploads\/2022\/01\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2022-01-02-12.28.09-300x67.png 300w\" sizes=\"auto, (max-width: 464px) 100vw, 464px\"><\/figure>\n\n\n\n<h1 class=\"wp-block-heading\" id=\"i-2\">\u5fc5\u8981\u306a\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u8aad\u307f\u8fbc\u307f<\/h1>\n\n\n\n<p><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>import warnings\n# \u4e0d\u8981\u306a\u8b66\u544a\u6587\u975e\u8868\u793a\nwarnings.filterwarnings(\"ignore\")\nfrom pycaret.classification import *\nfrom sklearn.datasets import load_iris\nimport pandas as pd<\/code><\/pre>\n\n\n\n<p><a href=\"https:\/\/pycaret.readthedocs.io\/en\/latest\/api\/classification.html\" rel=\"nofollow noopener\" target=\"_blank\">https:\/\/pycaret.readthedocs.io\/en\/latest\/api\/classification.html<\/a><\/p>\n\n\n\n<h1 class=\"wp-block-heading\" id=\"i-3\">\u30c7\u30fc\u30bf\u306e\u8aad\u307f\u8fbc\u307f<\/h1>\n\n\n\n<pre class=\"wp-block-code\"><code>iris = load_iris()\nX = pd.DataFrame(iris.data, columns=iris.feature_names)\ny = pd.DataFrame(iris.target, columns=[\"target\"])\ndf = pd.concat([X,y], axis=1)<\/code><\/pre>\n\n\n\n<div class=\"toc\">    <div id=\"toc_container\" class=\"sgb-toc--no-bullets js-smooth-scroll\" data-dialog-title=\"Table of Contents\">\n      <p class=\"toc_title\">\u76ee\u6b21 <\/p>\n      <ul class=\"toc_list\">  <li class=\"first\">    <a href=\"#i-0\">PyCaret\u3068\u306f<\/a>  <\/li>  <li>    <a href=\"#i-1\">PyCaret\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b<\/a>  <\/li>  <li>    <a href=\"#i-2\">\u5fc5\u8981\u306a\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u8aad\u307f\u8fbc\u307f<\/a>  <\/li>  <li>    <a href=\"#i-3\">\u30c7\u30fc\u30bf\u306e\u8aad\u307f\u8fbc\u307f<\/a>    <ul class=\"menu_level_1\">      <li class=\"first last\">        <a href=\"#i-4\">\u5148\u982d5\u4ef6\u8868\u793a<\/a>      <\/li>    <\/ul>  <\/li>  <li>    <a href=\"#i-5\">\u524d\u51e6\u7406<\/a>  <\/li>  <li>    <a href=\"#i-6\">\u30e2\u30c7\u30eb\u3092\u6bd4\u8f03\u3059\u308b<\/a>  <\/li>  <li>    <a href=\"#i-7\">\u30e2\u30c7\u30ea\u30f3\u30b0<\/a>  <\/li>  <li>    <a href=\"#i-8\">\u30e2\u30c7\u30eb\u306e\u30c1\u30e5\u30fc\u30cb\u30f3\u30b0<\/a>  <\/li>  <li>    <a href=\"#i-9\">\u30cf\u30a4\u30d1\u30fc\u30d1\u30e9\u30e1\u30fc\u30bf\u306e\u78ba\u8a8d<\/a>  <\/li>  <li>    <a href=\"#i-10\">\u7279\u5fb4\u91cf\u306e\u91cd\u8981\u5ea6\u306e\u7b97\u51fa<\/a>    <ul class=\"menu_level_1\">      <li class=\"first last\">        <a href=\"#i-11\">\u5b66\u7fd2\u66f2\u7dda\u3092\u78ba\u8a8d\u3059\u308b<\/a>      <\/li>    <\/ul>  <\/li>  <li>    <a href=\"#i-12\">\u4f5c\u6210\u3057\u305f\u30e2\u30c7\u30eb\u306e\u8aad\u307f\u8fbc\u307f<\/a>  <\/li>  <li>    <a href=\"#i-13\">\u4e88\u6e2c<\/a>  <\/li>  <li class=\"last\">    <a href=\"#i-14\">\u6a5f\u68b0\u5b66\u7fd2\u3092\u52b9\u7387\u3088\u304f\u5b66\u3076\u306b\u306f\uff1f<\/a>  <\/li><\/ul>\n      \n    <\/div><\/div><div class=\"toc\"><p><\/p>\n<\/div><h2 class=\"wp-block-heading\" id=\"i-4\">\u5148\u982d5\u4ef6\u8868\u793a<\/h2>\n\n\n\n<p>pandas\u306ehead()\u3067\u5148\u307b\u3069\u4f5c\u6210\u3057\u305f\u30c7\u30fc\u30bf\u30d5\u30ec\u30fc\u30e0\uff08df\uff09\u304b\u3089\u5148\u982d\u3088\u308a\uff15\u4ef6\u3092\u8868\u793a\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>df.head()<\/code><\/pre>\n\n\n\n<h1 class=\"wp-block-heading\" id=\"i-5\">\u524d\u51e6\u7406<\/h1>\n\n\n\n<p><strong>setup()<\/strong>\u3092\u4f7f\u3046\u3068\u3001\u6b20\u640d\u5024\u51e6\u7406\u3001\u30c7\u30fc\u30bf\u5206\u5272\u306a\u3069\u3092\u884c\u306a\u3063\u3066\u304f\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<p>target\u306b\u306f\u3001\u76ee\u7684\u5909\u6570\u3092\u6e21\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>exp1 = setup(df, target = 'target')<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"297\" src=\"https:\/\/aiacademy.jp\/media\/wp-content\/uploads\/2022\/01\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2022-01-02-12.29.11-1024x297.png\" alt=\"\" class=\"wp-image-964\" srcset=\"https:\/\/aiacademy.jp\/media\/wp-content\/uploads\/2022\/01\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2022-01-02-12.29.11-1024x297.png 1024w, https:\/\/aiacademy.jp\/media\/wp-content\/uploads\/2022\/01\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2022-01-02-12.29.11-300x87.png 300w, https:\/\/aiacademy.jp\/media\/wp-content\/uploads\/2022\/01\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2022-01-02-12.29.11-768x223.png 768w, https:\/\/aiacademy.jp\/media\/wp-content\/uploads\/2022\/01\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2022-01-02-12.29.11-940x273.png 940w, https:\/\/aiacademy.jp\/media\/wp-content\/uploads\/2022\/01\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2022-01-02-12.29.11.png 1483w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\"><\/figure>\n\n\n\n<h1 class=\"wp-block-heading\" id=\"i-6\"><br>\u30e2\u30c7\u30eb\u3092\u6bd4\u8f03\u3059\u308b<\/h1>\n\n\n\n<p>\u30e2\u30c7\u30eb\u306e\u6bd4\u8f03\u306f<strong>compare_models()<\/strong>\u3092\u4f7f\u3044\u307e\u3059\u3002\uff08\u203b \u672b\u5c3e\u306b\u300cs\u300d\u3092\u3064\u3051\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\uff09<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>compare_models()<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"918\" height=\"559\" src=\"https:\/\/aiacademy.jp\/media\/wp-content\/uploads\/2022\/01\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2022-01-02-12.31.38.png\" alt=\"\" class=\"wp-image-966\" srcset=\"https:\/\/aiacademy.jp\/media\/wp-content\/uploads\/2022\/01\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2022-01-02-12.31.38.png 918w, https:\/\/aiacademy.jp\/media\/wp-content\/uploads\/2022\/01\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2022-01-02-12.31.38-300x183.png 300w, https:\/\/aiacademy.jp\/media\/wp-content\/uploads\/2022\/01\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2022-01-02-12.31.38-768x468.png 768w\" sizes=\"auto, (max-width: 918px) 100vw, 918px\"><\/figure>\n\n\n\n<h1 class=\"wp-block-heading\" id=\"i-7\">\u30e2\u30c7\u30ea\u30f3\u30b0<\/h1>\n\n\n\n<p>\u4eca\u56de\u306f\u3001\u300cAccuracy(\u6b63\u89e3\u7387)\u300d\u304c\u6700\u3082\u9ad8\u3044\u300clda(Linear Discriminant Analysis)\u300d\u3067\u30e2\u30c7\u30eb\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<br>\u51fa\u529b\u3055\u308c\u308b\u8868\u306e\u300cModel\u300d\u5217\u306b\u6bd4\u8f03\u3059\u308b\u30e2\u30c7\u30eb\u624b\u6cd5\u306e\u540d\u524d\u304c\u8a18\u8f09\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>model = create_model('lda')<\/code><\/pre>\n\n\n\n<h1 class=\"wp-block-heading\" id=\"i-8\">\u30e2\u30c7\u30eb\u306e\u30c1\u30e5\u30fc\u30cb\u30f3\u30b0<\/h1>\n\n\n\n<p>\u4e0b\u8a18\u306e\u30b3\u30fc\u30c9\u3067\u30e2\u30c7\u30eb\u306e\u30cf\u30a4\u30d1\u30fc\u30d1\u30e9\u30e1\u30fc\u30bf\u306e\u30c1\u30e5\u30fc\u30cb\u30f3\u30b0\uff08\u6700\u9069\u5316\uff09\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>tuned_model = tune_model(model, optimize = 'Accuracy')<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"568\" height=\"458\" src=\"https:\/\/aiacademy.jp\/media\/wp-content\/uploads\/2022\/01\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2022-01-02-12.35.17.png\" alt=\"\" class=\"wp-image-968\" srcset=\"https:\/\/aiacademy.jp\/media\/wp-content\/uploads\/2022\/01\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2022-01-02-12.35.17.png 568w, https:\/\/aiacademy.jp\/media\/wp-content\/uploads\/2022\/01\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2022-01-02-12.35.17-300x242.png 300w\" sizes=\"auto, (max-width: 568px) 100vw, 568px\"><\/figure>\n\n\n\n<h1 class=\"wp-block-heading\" id=\"i-9\">\u30cf\u30a4\u30d1\u30fc\u30d1\u30e9\u30e1\u30fc\u30bf\u306e\u78ba\u8a8d<\/h1>\n\n\n\n<pre class=\"wp-block-code\"><code># \u30e2\u30c7\u30eb\u306e\u8a55\u4fa1\u6307\u6a19\u3092\u78ba\u8a8d\nevaluate_model(tuned_model)<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"260\" src=\"https:\/\/aiacademy.jp\/media\/wp-content\/uploads\/2022\/01\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2022-01-02-12.41.02-1024x260.png\" alt=\"\" class=\"wp-image-972\" srcset=\"https:\/\/aiacademy.jp\/media\/wp-content\/uploads\/2022\/01\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2022-01-02-12.41.02-1024x260.png 1024w, https:\/\/aiacademy.jp\/media\/wp-content\/uploads\/2022\/01\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2022-01-02-12.41.02-300x76.png 300w, https:\/\/aiacademy.jp\/media\/wp-content\/uploads\/2022\/01\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2022-01-02-12.41.02-768x195.png 768w, https:\/\/aiacademy.jp\/media\/wp-content\/uploads\/2022\/01\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2022-01-02-12.41.02-940x239.png 940w, https:\/\/aiacademy.jp\/media\/wp-content\/uploads\/2022\/01\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2022-01-02-12.41.02.png 1480w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\"><\/figure>\n\n\n\n<h1 class=\"wp-block-heading\" id=\"i-10\"><meta charset=\"utf-8\">\u7279\u5fb4\u91cf\u306e\u91cd\u8981\u5ea6\u306e\u7b97\u51fa<\/h1>\n\n\n\n<p>\u300cFeature Important\u300d\u3092\u9078\u629e\u3059\u308b\u3068\u3001\u5404\u7279\u5fb4\u91cf\u304c\u3069\u306e\u7a0b\u5ea6\u4e88\u6e2c\u3068\u95a2\u9023\u3057\u3066\u3044\u308b\u304b\u53ef\u8996\u5316\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"424\" src=\"https:\/\/aiacademy.jp\/media\/wp-content\/uploads\/2022\/01\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2022-01-02-12.38.11-1024x424.png\" alt=\"\" class=\"wp-image-970\" srcset=\"https:\/\/aiacademy.jp\/media\/wp-content\/uploads\/2022\/01\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2022-01-02-12.38.11-1024x424.png 1024w, https:\/\/aiacademy.jp\/media\/wp-content\/uploads\/2022\/01\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2022-01-02-12.38.11-300x124.png 300w, https:\/\/aiacademy.jp\/media\/wp-content\/uploads\/2022\/01\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2022-01-02-12.38.11-768x318.png 768w, https:\/\/aiacademy.jp\/media\/wp-content\/uploads\/2022\/01\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2022-01-02-12.38.11-940x389.png 940w, https:\/\/aiacademy.jp\/media\/wp-content\/uploads\/2022\/01\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2022-01-02-12.38.11.png 1489w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\"><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"i-11\">\u5b66\u7fd2\u66f2\u7dda\u3092\u78ba\u8a8d\u3059\u308b<\/h2>\n\n\n\n<p>\u300cPlot Type\u300d\u306e\u300cLearning Curve\u300d\u3092\u9078\u629e\u3059\u308b\u3068\u3001\u5b66\u7fd2\u66f2\u7dda\u3092\u53ef\u8996\u5316\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u5b66\u7fd2\u7528\u30c7\u30fc\u30bf\u3068\u30c6\u30b9\u30c8\u7528\u30c7\u30fc\u30bf\u306e\u4e88\u6e2c\u7cbe\u5ea6\u304c\u30c7\u30fc\u30bf\u6570\u306b\u5bfe\u3057\u3069\u306e\u7a0b\u5ea6\u63a8\u79fb\u3057\u3066\u3044\u308b\u304b\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"361\" src=\"https:\/\/aiacademy.jp\/media\/wp-content\/uploads\/2022\/01\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2022-01-02-12.42.58-1024x361.png\" alt=\"\" class=\"wp-image-973\" srcset=\"https:\/\/aiacademy.jp\/media\/wp-content\/uploads\/2022\/01\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2022-01-02-12.42.58-1024x361.png 1024w, https:\/\/aiacademy.jp\/media\/wp-content\/uploads\/2022\/01\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2022-01-02-12.42.58-300x106.png 300w, https:\/\/aiacademy.jp\/media\/wp-content\/uploads\/2022\/01\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2022-01-02-12.42.58-768x271.png 768w, https:\/\/aiacademy.jp\/media\/wp-content\/uploads\/2022\/01\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2022-01-02-12.42.58-940x331.png 940w, https:\/\/aiacademy.jp\/media\/wp-content\/uploads\/2022\/01\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2022-01-02-12.42.58.png 1481w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\"><\/figure>\n\n\n\n<h1 class=\"wp-block-heading\" id=\"i-12\">\u4f5c\u6210\u3057\u305f\u30e2\u30c7\u30eb\u306e\u8aad\u307f\u8fbc\u307f<\/h1>\n\n\n\n<p><meta charset=\"utf-8\">finalize_model()\u3067\u4f5c\u6210\u3057\u305f<meta charset=\"utf-8\">tuned_model\u3092\u8aad\u307f\u8fbc\u307f\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>final_model = finalize_model(tuned_model)<\/code><\/pre>\n\n\n\n<h1 class=\"wp-block-heading\" id=\"i-13\">\u4e88\u6e2c<\/h1>\n\n\n\n<p><meta charset=\"utf-8\">predict_model()\u3067\u4e88\u6e2c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>pred = predict_model(final_model, data = X)<\/code><\/pre>\n\n\n\n<p><\/p>\n\n\n\n<h1 class=\"wp-block-heading\" id=\"i-14\">\u6a5f\u68b0\u5b66\u7fd2\u3092\u52b9\u7387\u3088\u304f\u5b66\u3076\u306b\u306f\uff1f<\/h1>\n\n\n\n<p>\u3053\u306e\u8a18\u4e8b\u3067\u306f\u300cPyCaret\u300d\u3092\u7528\u3044\u3066\u6a5f\u68b0\u5b66\u7fd2\u306e\u4e00\u9023\u306e\u30d7\u30ed\u30bb\u30b9\uff08\u30e2\u30c7\u30eb\u306e\u6bd4\u8f03\u691c\u8a0e\u3084\u30e2\u30c7\u30eb\u4f5c\u6210\u7b49\uff09\u304c\u7c21\u5358\u306b\u6570\u884c\u306e\u30b3\u30fc\u30c9\u3067\u3067\u304d\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u3082\u3063\u3068\u6df1\u304f\u6a5f\u68b0\u5b66\u7fd2\u3092\u5b66\u3073\u305f\u3044\u3068\u3044\u3046\u65b9\u306f\u3001\u30c7\u30fc\u30bf\u30b5\u30a4\u30a8\u30f3\u30c6\u30a3\u30b9\u30c8\u3084\u6a5f\u68b0\u5b66\u7fd2\u30a8\u30f3\u30b8\u30cb\u30a2\u306b\u8cea\u554f\u3057\u653e\u984c\u304b\u3064\u3001\u30c7\u30fc\u30bf\u5206\u6790\u306e\u57fa\u790e\u304b\u3089\u5b9f\u8df5\u307e\u3067\u3001\u4f53\u7cfb\u7684\u306b\u5b66\u3079\u308b\u52d5\u753b\u30b3\u30f3\u30c6\u30f3\u30c4\u3067\u30c7\u30fc\u30bf\u5206\u6790\u6280\u8853\u3092\u5b66\u3073\u305f\u3044\u65b9\u306f\u3001\u30aa\u30f3\u30e9\u30a4\u30f3\u3067\u597d\u304d\u306a\u6642\u9593\u306b\u52c9\u5f37\u3067\u304d\u308b<a href=\"https:\/\/aiacademy.jp\/bootcamp\">AI Academy Bootcamp<\/a>\u304c\u30aa\u30b9\u30b9\u30e1\u3067\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/aiacademy.jp\/bootcamp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"341\" src=\"https:\/\/aiacademy.jp\/media\/wp-content\/uploads\/2021\/12\/bootcamp_ad_72ppi-1024x341.png\" alt=\"\" class=\"wp-image-691\" srcset=\"https:\/\/aiacademy.jp\/media\/wp-content\/uploads\/2021\/12\/bootcamp_ad_72ppi-1024x341.png 1024w, https:\/\/aiacademy.jp\/media\/wp-content\/uploads\/2021\/12\/bootcamp_ad_72ppi-300x100.png 300w, https:\/\/aiacademy.jp\/media\/wp-content\/uploads\/2021\/12\/bootcamp_ad_72ppi-768x256.png 768w, https:\/\/aiacademy.jp\/media\/wp-content\/uploads\/2021\/12\/bootcamp_ad_72ppi-940x313.png 940w, https:\/\/aiacademy.jp\/media\/wp-content\/uploads\/2021\/12\/bootcamp_ad_72ppi.png 1200w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\"><\/a><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>PyCaret\u3068\u306f PyCaret\u3068\u306f\u3001\u6a5f\u68b0\u5b66\u7fd2\u306e\u30e2\u30c7\u30eb\u958b\u767a\u306b\u304a\u3044\u3066\u3001\u30c7\u30fc\u30bf\u306e\u524d\u51e6\u7406\u3084\u53ef\u8996\u5316\u3001\u30e2\u30c7\u30eb\u958b\u767a\u3092\u6570\u884c\u306e\u30b3\u30fc\u30c9\u3067\u5b9f\u73fe\u53ef\u80fd\u306aPython\u306eAutoML\u30e9\u30a4\u30d6\u30e9\u30ea\u3067\u3059\u3002 PyCaret\u306f\u3044\u304f\u3064\u304b\u306e\u4e3b\u8981\u306a\u6a5f\u68b0\u5b66\u7fd2\u30e9\u30a4\u30d6 &#8230; <\/p>\n","protected":false},"author":1,"featured_media":977,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[130],"tags":[],"class_list":{"0":"post-954","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-130"},"_links":{"self":[{"href":"https:\/\/aiacademy.jp\/media\/index.php?rest_route=\/wp\/v2\/posts\/954","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/aiacademy.jp\/media\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/aiacademy.jp\/media\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/aiacademy.jp\/media\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/aiacademy.jp\/media\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=954"}],"version-history":[{"count":16,"href":"https:\/\/aiacademy.jp\/media\/index.php?rest_route=\/wp\/v2\/posts\/954\/revisions"}],"predecessor-version":[{"id":4828,"href":"https:\/\/aiacademy.jp\/media\/index.php?rest_route=\/wp\/v2\/posts\/954\/revisions\/4828"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/aiacademy.jp\/media\/index.php?rest_route=\/wp\/v2\/media\/977"}],"wp:attachment":[{"href":"https:\/\/aiacademy.jp\/media\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=954"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/aiacademy.jp\/media\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=954"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/aiacademy.jp\/media\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=954"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}