{"id":12190,"date":"2021-10-06T00:00:39","date_gmt":"2021-10-06T07:00:39","guid":{"rendered":"https:\/\/www.couchbase.com\/blog\/?p=12190"},"modified":"2025-06-13T21:25:12","modified_gmt":"2025-06-14T04:25:12","slug":"linear-regression-model-couchbase-jupyter-notebook-tutorial","status":"publish","type":"post","link":"https:\/\/www.couchbase.com\/blog\/ko\/linear-regression-model-couchbase-jupyter-notebook-tutorial\/","title":{"rendered":"\uce74\uc6b0\uce58\ubca0\uc774\uc2a4\uc640 \uc8fc\ud53c\ud130 \ub178\ud2b8\ubd81\uc73c\ub85c \uc120\ud615 \ud68c\uadc0 \ubaa8\ub378 \ud6c8\ub828\ud558\uae30: \ub2e8\uacc4\ubcc4 \ud29c\ud1a0\ub9ac\uc5bc"},"content":{"rendered":"<p><strong>\ub370\uc774\ud130 \uacfc\ud559\uc790\ub4e4\uc774 \uc0ac\ub791\ud558\ub294 Jupyter \ub178\ud2b8\ubd81<\/strong> - \ub97c \uc0ac\uc6a9\ud558\uba74 Couchbase \ubb38\uc11c \ub370\uc774\ud130\ubca0\uc774\uc2a4\uc640 \uc790\uc5f0\uc2a4\ub7fd\uac8c \ud398\uc5b4\ub9c1\ub429\ub2c8\ub2e4. <\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2021\/10\/jupyter-notebook.jpg\" alt=\"Jupyter Notebook logo\" width=\"86\" height=\"100\" class=\"alignright size-full wp-image-12215\" srcset=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2021\/10\/jupyter-notebook.jpg 86w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2021\/10\/jupyter-notebook-17x20.jpg 17w\" sizes=\"auto, (max-width: 86px) 100vw, 86px\" \/><\/p>\n<p>\uc65c \uadf8\ub7f4\uae4c\uc694? \uc65c <a href=\"https:\/\/jupyter-notebook-beginner-guide.readthedocs.io\/en\/latest\/what_is_jupyter.html?ref=hello-from-couchbase\" rel=\"noopener\" target=\"_blank\">\uc8fc\ud53c\ud130 \ub178\ud2b8\ubd81<\/a> \uc6f9 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc744 \uc0ac\uc6a9\ud558\uba74 \ub370\uc774\ud130 \uc2dc\uac01\ud654 \ubc0f \uba38\uc2e0 \ub7ec\ub2dd\uacfc \uac19\uc740 \uc0ac\uc6a9 \uc0ac\ub840\ub97c \uc704\ud574 \uc11c\uc220\ud615 \ud14d\uc2a4\ud2b8, \uc218\uc2dd \ub4f1\uc774 \ud3ec\ud568\ub41c \ubb38\uc11c\ub97c \ub9cc\ub4e4\uace0 \uacf5\uc720\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. <a href=\"https:\/\/developer.couchbase.com\/new-to-couchbase\/?ref=blog\" rel=\"noopener\" target=\"_blank\">\uce74\uc6b0\uce58\ubca0\uc774\uc2a4<\/a> \ub97c \uc0ac\uc6a9\ud558\uba74 \ubc29\ub300\ud55c \uc591\uc758 \ub370\uc774\ud130(\ubc18\uc815\ud615 \ubc0f \ube44\uc815\ud615)\ub97c \ub300\uaddc\ubaa8\ub85c \uc800\uc7a5\ud558\uace0 \ucc98\ub9ac\ud560 \uc218 \uc788\uc73c\uba70, \ub0b4\ub7ec\ud2f0\ube0c \ud14d\uc2a4\ud2b8(\uc18c\uc15c \ubbf8\ub514\uc5b4 \uac8c\uc2dc\ubb3c \ub4f1), \ubc29\uc815\uc2dd \ub4f1 \uc138\uc0c1\uc5d0 \ub118\uccd0\ub098\ub294 \ubaa8\ub4e0 \uc885\ub958\uc758 \ub370\uc774\ud130\ub97c \uc9c0\uc6d0\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. <\/p>\n<p>\uc774 \uae00\uc5d0\uc11c\ub294 Couchbase \ud074\ub7ec\uc2a4\ud130\uc640 Jupyter Notebook \uac04\uc758 \uc5f0\uacb0\uc744 \uc124\uc815\ud55c \ub2e4\uc74c, Couchbase\uc5d0\uc11c \ub370\uc774\ud130\ub97c \uac00\uc838\uc640\uc11c \uba38\uc2e0 \ub7ec\ub2dd\uc744 \uc704\ud55c \uc120\ud615 \ud68c\uadc0 \ubaa8\ub378\uc744 \ud6c8\ub828\ud558\ub294 \ubc29\ubc95\uc744 \uc54c\uc544\ubd05\ub2c8\ub2e4. \uc120\ud615 \ud68c\uadc0 \ubc29\uc815\uc2dd\uc744 \ud1b5\ud574 \ubc94\uc8fc\ud615 \ubcc0\uc218\ub97c \uc0ac\uc6a9\ud558\uc5ec \ub300\uc0c1 \ubcc0\uc218\uc758 \uac12\uc744 \uc608\uce21\ud558\ub294 \uc608\uc81c\ub97c \uc0b4\ud3b4\ubcf4\uaca0\uc2b5\ub2c8\ub2e4. <\/p>\n<h2>\ub370\uc774\ud130 \ub85c\ub4dc<\/h2>\n<p>\uc2dc\uc791\ud558\ub824\uba74 \ub2e4\uc74c \ub2e8\uacc4\ub97c \uc9c4\ud589\ud558\uc5ec \uc0d8\ud50c \ub370\uc774\ud130 \uc138\ud2b8\ub97c \ub85c\ub4dc\ud569\ub2c8\ub2e4: <\/p>\n<ol>\n<li>Couchbase \ud074\ub7ec\uc2a4\ud130\uc758 \uad00\ub9ac\uc790 \ucf58\uc194\uc5d0\uc11c \ub2e4\uc74c\uacfc \uac19\uc774 \ubc84\ud0b7 &gt; \ubc84\ud0b7 \ucd94\uac00\ub85c \uc774\ub3d9\ud558\uc5ec \uc0c8 \ubc84\ud0b7\uc744 \ub9cc\ub4ed\ub2c8\ub2e4:<br \/>\n<br \/>\n<a href=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2021\/10\/couchbase-cluster-admin-console-add-bucket.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2021\/10\/couchbase-cluster-admin-console-add-bucket.png\" alt=\"Add a bucket in the Couchbase cluster admin console\" width=\"1000\" height=\"428\" class=\"aligncenter size-full wp-image-12196\" srcset=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2021\/10\/couchbase-cluster-admin-console-add-bucket.png 1000w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2021\/10\/couchbase-cluster-admin-console-add-bucket-300x128.png 300w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2021\/10\/couchbase-cluster-admin-console-add-bucket-768x329.png 768w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2021\/10\/couchbase-cluster-admin-console-add-bucket-20x9.png 20w\" sizes=\"auto, (max-width: 1000px) 100vw, 1000px\" \/><\/a>\n<\/li>\n<li>\n<p>\ub2e4\uc74c\uacfc \uac19\uc774 \ubb38\uc11c &gt; \ubb38\uc11c \ucd94\uac00\ub85c \uc774\ub3d9\ud558\uc5ec \ubc84\ud0b7\uc5d0 \ubb38\uc11c\ub97c \ucd94\uac00\ud569\ub2c8\ub2e4:<\/p>\n<p>\n<a href=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2021\/10\/add-documents-to-Couchbase-bucket.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2021\/10\/add-documents-to-Couchbase-bucket.png\" alt=\"Add documents to a Couchbase bucket\" width=\"1000\" height=\"494\" class=\"aligncenter size-full wp-image-12193\" srcset=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2021\/10\/add-documents-to-Couchbase-bucket.png 1000w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2021\/10\/add-documents-to-Couchbase-bucket-300x148.png 300w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2021\/10\/add-documents-to-Couchbase-bucket-768x379.png 768w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2021\/10\/add-documents-to-Couchbase-bucket-20x10.png 20w\" sizes=\"auto, (max-width: 1000px) 100vw, 1000px\" \/><\/a><\/p>\n<p>\ub97c \uc0ac\uc6a9\ud558\uac70\ub098 JSON \ubb38\uc11c \ubaa9\ub85d \ub610\ub294 CSV \ud30c\uc77c\uc744 \uc5c5\ub85c\ub4dc\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \uc774 \uc608\uc81c\uc5d0\uc11c\ub294 \ub2e4\uc74c\uc744 \uc0ac\uc6a9\ud558\uc5ec CSV \ud30c\uc77c\uc744 \uc5c5\ub85c\ub4dc\ud558\uaca0\uc2b5\ub2c8\ub2e4. <a href=\"https:\/\/docs.couchbase.com\/server\/current\/tools\/cbimport.html?ref=blog\" rel=\"noopener\" target=\"_blank\">`cbimport`<\/a>. \ub0b4 \ubb38\uc11c\uc758 \ubaa8\uc2b5\uc740 \ub2e4\uc74c\uacfc \uac19\uc2b5\ub2c8\ub2e4:<\/p>\n<p>\n<a href=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2021\/10\/csv-file-upload-cbimport-tool.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2021\/10\/csv-file-upload-cbimport-tool.png\" alt=\"CSV file upload using the cbimport tool\" width=\"1000\" height=\"494\" class=\"aligncenter size-full wp-image-12197\" srcset=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2021\/10\/csv-file-upload-cbimport-tool.png 1000w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2021\/10\/csv-file-upload-cbimport-tool-300x148.png 300w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2021\/10\/csv-file-upload-cbimport-tool-768x379.png 768w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2021\/10\/csv-file-upload-cbimport-tool-20x10.png 20w\" sizes=\"auto, (max-width: 1000px) 100vw, 1000px\" \/><\/a><\/p>\n<\/li>\n<li>\ud30c\uc77c\uc740 \uc791\uc5c5\ud558\ub824\ub294 \ubaa8\ub4e0 \ub370\uc774\ud130\uac00 \ub420 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \uc774 \uc608\uc81c\uc5d0\uc11c\ub294 <a href=\"https:\/\/www.kaggle.com\/ashydv\/advertising-dataset\/version\/1\" rel=\"noopener\" target=\"_blank\">Kaggle\uc758 \uad11\uace0 \ub370\uc774\ud130 \uc138\ud2b8.<\/a><\/li>\n<li>\uadf8\ub9bc\uacfc \uac19\uc774 \ubb38\uc11c &gt; \uac00\uc838\uc624\uae30\ub85c \uc774\ub3d9\ud569\ub2c8\ub2e4:<br \/>\n<br \/>\n<a href=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2021\/10\/import-documents-kaggle-advertising-dataset-couchbase.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2021\/10\/import-documents-kaggle-advertising-dataset-couchbase.png\" alt=\"Import the Kaggle advertising dataset documents into Couchbase\" width=\"1000\" height=\"486\" class=\"aligncenter size-full wp-image-12199\" srcset=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2021\/10\/import-documents-kaggle-advertising-dataset-couchbase.png 1000w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2021\/10\/import-documents-kaggle-advertising-dataset-couchbase-300x146.png 300w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2021\/10\/import-documents-kaggle-advertising-dataset-couchbase-768x373.png 768w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2021\/10\/import-documents-kaggle-advertising-dataset-couchbase-20x10.png 20w\" sizes=\"auto, (max-width: 1000px) 100vw, 1000px\" \/><\/a><\/p>\n<\/li>\n<li>\n<p>\uac00\uc838\uc624\ub824\ub294 \ud30c\uc77c\uacfc \ubb38\uc11c\uac00 \uc788\ub294 \ub370\uc774\ud130 \ubc84\ud0b7\uc744 \uc120\ud0dd\ud569\ub2c8\ub2e4:<\/p>\n<p>\n<a href=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2021\/10\/select-file-data-bucket-couchbase.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2021\/10\/select-file-data-bucket-couchbase.png\" alt=\"Select the file in the Couchbase data bucket\" width=\"1000\" height=\"625\" class=\"aligncenter size-full wp-image-12210\" srcset=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2021\/10\/select-file-data-bucket-couchbase.png 1000w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2021\/10\/select-file-data-bucket-couchbase-300x188.png 300w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2021\/10\/select-file-data-bucket-couchbase-768x480.png 768w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2021\/10\/select-file-data-bucket-couchbase-20x13.png 20w\" sizes=\"auto, (max-width: 1000px) 100vw, 1000px\" \/><\/a><\/p>\n<p>\uc774\uc81c \ubb38\uc11c \uba54\ub274\uac00 \ub2e4\uc74c\uacfc \uac19\uc774 \ud45c\uc2dc\ub429\ub2c8\ub2e4:<\/p>\n<p>\n<a href=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2021\/10\/couchbase-admin-console-documents-menu.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2021\/10\/couchbase-admin-console-documents-menu.png\" alt=\"The documents menu in the Couchbase admin console\" width=\"1000\" height=\"625\" class=\"aligncenter size-full wp-image-12195\" srcset=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2021\/10\/couchbase-admin-console-documents-menu.png 1000w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2021\/10\/couchbase-admin-console-documents-menu-300x188.png 300w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2021\/10\/couchbase-admin-console-documents-menu-768x480.png 768w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2021\/10\/couchbase-admin-console-documents-menu-20x13.png 20w\" sizes=\"auto, (max-width: 1000px) 100vw, 1000px\" \/><\/a><\/p>\n<\/li>\n<li>\uad00\ub9ac \ucf58\uc194\uc5d0\uc11c \ub2e4\uc74c\uacfc \uac19\uc774 \ub370\uc774\ud130 \ubc84\ud0b7\uc5d0 \ub300\ud55c \uae30\ubcf8 \uc778\ub371\uc2a4\ub97c \ub9cc\ub4e4\uc5b4 \ub370\uc774\ud130\ub97c \ucffc\ub9ac\ud560 \uc218 \uc788\ub3c4\ub85d \ud569\ub2c8\ub2e4:<br \/>\n<br \/>\n<a href=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2021\/10\/primary-index-data-bucket-couchbase-web-console.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2021\/10\/primary-index-data-bucket-couchbase-web-console.png\" alt=\"Add a primary index to a data bucket in the Couchbase Web Console\" width=\"1000\" height=\"491\" class=\"aligncenter size-full wp-image-12207\" srcset=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2021\/10\/primary-index-data-bucket-couchbase-web-console.png 1000w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2021\/10\/primary-index-data-bucket-couchbase-web-console-300x147.png 300w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2021\/10\/primary-index-data-bucket-couchbase-web-console-768x377.png 768w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2021\/10\/primary-index-data-bucket-couchbase-web-console-20x10.png 20w\" sizes=\"auto, (max-width: 1000px) 100vw, 1000px\" \/><\/a>\n<\/li>\n<\/ol>\n<div class=\"wp-block-spacer\" style=\"height: 15px;\" aria-hidden=\"true\"> <\/div>\n<h2>Jupyter \ub178\ud2b8\ubd81 \uc124\uce58\ud558\uae30<\/h2>\n<p>\uba3c\uc800 <a href=\"https:\/\/github.com\/couchbaselabs\/couchbase-jupyter-example#readme\" rel=\"noopener\" target=\"_blank\">\uce74\uc6b0\uce58\ubca0\uc774\uc2a4-\uc8fc\ud53c\ud130-\uc608\uc81c \ub2e4\uc6b4\ub85c\ub4dc<\/a> \ub97c \ub2e4\uc6b4\ub85c\ub4dc\ud569\ub2c8\ub2e4. \uadf8\ub7f0 \ub2e4\uc74c \ub2e4\uc74c \ub2e8\uacc4\ub97c \ub530\ub974\uc138\uc694:<\/p>\n<ol>\n<li><a href=\"https:\/\/jupyter.org\/install\" rel=\"noopener\" target=\"_blank\">\uc8fc\ud53c\ud130 \ub178\ud2b8\ubd81 \uc124\uce58<\/a> via either the Python package management system (`pip`) or <a href=\"https:\/\/www.anaconda.com\/\" rel=\"noopener\" target=\"_blank\">\uc544\ub098\ucf58\ub2e4.<\/a><\/li>\n<li>Install the dependencies for this project by using `pip` from the `requirements` file in your shell:\n<pre>\r\n$ pip install -r requirements.txt\r\n<\/pre>\n<\/li>\n<li>\uc178\uc5d0\uc11c \uc8fc\ud53c\ud130 \ub178\ud2b8\ubd81\uc744 \uc5fd\ub2c8\ub2e4.<\/li>\n<li>\ub2e4\uc74c\uacfc \uac19\uc774 Python 3\uc73c\ub85c \uc0c8 \ub178\ud2b8\ubd81\uc744 \ub9cc\ub4ed\ub2c8\ub2e4:<br \/>\n<br \/>\n<a href=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2021\/10\/new-jupyter-notebook-python-3.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2021\/10\/new-jupyter-notebook-python-3.png\" alt=\"Making a new Jupyter Notebook using Python 3\" width=\"1000\" height=\"362\" class=\"aligncenter size-full wp-image-12204\" srcset=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2021\/10\/new-jupyter-notebook-python-3.png 1000w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2021\/10\/new-jupyter-notebook-python-3-300x109.png 300w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2021\/10\/new-jupyter-notebook-python-3-768x278.png 768w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2021\/10\/new-jupyter-notebook-python-3-20x7.png 20w\" sizes=\"auto, (max-width: 1000px) 100vw, 1000px\" \/><\/a>\n<\/li>\n<\/ol>\n<div class=\"wp-block-spacer\" style=\"height: 15px;\" aria-hidden=\"true\"> <\/div>\n<h2>\uc120\ud615 \ud68c\uadc0 \ubaa8\ub378\uc774\ub780 \ubb34\uc5c7\uc778\uac00\uc694?<\/h2>\n<p>\uc120\ud615 \ud68c\uadc0 \ubaa8\ub378\uc740 \ubc94\uc8fc\ud615 \ub610\ub294 \ub3c5\ub9bd \ubcc0\uc218\uc758 \uac15\ub3c4\ub97c \uacb0\uc815\ud558\uace0 \ud574\ub2f9 \ubcc0\uc218\uc758 \ud6a8\uacfc\ub97c \uc608\uce21\ud558\uace0 \ub370\uc774\ud130\uc758 \ucd94\uc138\ub97c \ud30c\uc545\ud560 \uc218 \uc788\ub294 \uac15\ub825\ud55c \uc608\uce21 \ubd84\uc11d\uc6a9 \ubaa8\ub378\uc785\ub2c8\ub2e4. <\/p>\n<p>\uc774\ub984\uc5d0\uc11c \uc720\ucd94\ud560 \uc218 \uc788\ub4ef\uc774 <em>\uc120\ud615 \ud68c\uadc0<\/em>, the \u201ccurve\u201d we use to fit the data is a line. The simplest form of the regression equation is `y = mx + c`, where `y` represents the target variable, `x` represents a single categorical variable and `m` and `c` are constants. We will use a simple linear regression equation in our example.<\/p>\n<p>The categorical variables in our example are `TV`, `Radio` and `Newspaper`. The target variable is `Sales`.<\/p>\n<h2>\uc120\ud615 \ud68c\uadc0 \ubaa8\ub378 \ud6c8\ub828<\/h2>\n<ol>\n<li>In the new Jupyter Notebook, use the code shown below to connect to the Couchbase server. Use your username and password, of course, instead of `Administrator` and `123456`.<br \/>\n<br \/>\n<a href=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2021\/10\/jupyter-notebook-connect-couchbase-server.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2021\/10\/jupyter-notebook-connect-couchbase-server.png\" alt=\"Connecting a Jupyter Notebook to Couchbase Server\" width=\"789\" height=\"110\" class=\"aligncenter size-full wp-image-12200\" srcset=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2021\/10\/jupyter-notebook-connect-couchbase-server.png 789w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2021\/10\/jupyter-notebook-connect-couchbase-server-300x42.png 300w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2021\/10\/jupyter-notebook-connect-couchbase-server-768x107.png 768w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2021\/10\/jupyter-notebook-connect-couchbase-server-20x3.png 20w\" sizes=\"auto, (max-width: 789px) 100vw, 789px\" \/><\/a><\/p>\n<\/li>\n<li>Import the required libraries, shown in the screenshot here. If these libraries aren\u2019t present in your environment, download the latest versions of these libraries to the right environment using the Python package manager, `pip`.<br \/>\n<br \/>\n<a href=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2021\/10\/python-package-manager-import-required-libraries.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2021\/10\/python-package-manager-import-required-libraries.png\" alt=\"Import required libraries using Python package manager\" width=\"772\" height=\"120\" class=\"aligncenter size-full wp-image-12208\" srcset=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2021\/10\/python-package-manager-import-required-libraries.png 772w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2021\/10\/python-package-manager-import-required-libraries-300x47.png 300w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2021\/10\/python-package-manager-import-required-libraries-768x119.png 768w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2021\/10\/python-package-manager-import-required-libraries-20x3.png 20w\" sizes=\"auto, (max-width: 772px) 100vw, 772px\" \/><\/a><\/p>\n<\/li>\n<li>Using the `SELECT` command, fetch the data from your data bucket into a pandas data  frame:<br \/>\n<br \/>\n<a href=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2021\/10\/pandas-data-frame-fetch-data.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2021\/10\/pandas-data-frame-fetch-data.png\" alt=\"Fetch data into a pandas data frame\" width=\"782\" height=\"79\" class=\"aligncenter size-full wp-image-12206\" srcset=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2021\/10\/pandas-data-frame-fetch-data.png 782w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2021\/10\/pandas-data-frame-fetch-data-300x30.png 300w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2021\/10\/pandas-data-frame-fetch-data-768x78.png 768w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2021\/10\/pandas-data-frame-fetch-data-20x2.png 20w\" sizes=\"auto, (max-width: 782px) 100vw, 782px\" \/><\/a><\/p>\n<\/li>\n<li>You can view the contents of your pandas data frame using the `describe()` command, as shown here:<br \/>\n<br \/>\n<a href=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2021\/10\/data-frame-contents-describe-command.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2021\/10\/data-frame-contents-describe-command.png\" alt=\"Using the describe command to view data frame contents\" width=\"785\" height=\"218\" class=\"aligncenter size-full wp-image-12198\" srcset=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2021\/10\/data-frame-contents-describe-command.png 785w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2021\/10\/data-frame-contents-describe-command-300x83.png 300w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2021\/10\/data-frame-contents-describe-command-768x213.png 768w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2021\/10\/data-frame-contents-describe-command-20x6.png 20w\" sizes=\"auto, (max-width: 785px) 100vw, 785px\" \/><\/a><\/p>\n<\/li>\n<li>\uac01 \ubc94\uc8fc\ud615 \ubcc0\uc218\uc758 \uac12\uc5d0 \ud574\ub2f9\ud558\ub294 \ubc15\uc2a4 \ud50c\ub86f\uc744 \ub9cc\ub4e4\uc5b4 \uc774\uc0c1\uac12\uc744 \uac10\uc9c0\ud569\ub2c8\ub2e4:<br \/>\n<br \/>\n<a href=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2021\/10\/boxplot-data-visualization-detect-outliers.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2021\/10\/boxplot-data-visualization-detect-outliers.png\" alt=\"Detect outliers using boxplot data visualization\" width=\"784\" height=\"334\" class=\"aligncenter size-full wp-image-12194\" srcset=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2021\/10\/boxplot-data-visualization-detect-outliers.png 784w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2021\/10\/boxplot-data-visualization-detect-outliers-300x128.png 300w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2021\/10\/boxplot-data-visualization-detect-outliers-768x327.png 768w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2021\/10\/boxplot-data-visualization-detect-outliers-20x9.png 20w\" sizes=\"auto, (max-width: 784px) 100vw, 784px\" \/><\/a><\/p>\n<\/li>\n<li>\uac01 \ubc94\uc8fc\ud615 \ubcc0\uc218\uc5d0 \ub300\ud574 \ub300\uc0c1 \ubcc0\uc218\uc5d0 \ub300\ud55c \ubd84\uc0b0\ud615 \ucc28\ud2b8\ub97c \ub9cc\ub4e4\uc5b4 \uc0c1\uad00 \uad00\uacc4\ub97c \ud30c\uc545\ud569\ub2c8\ub2e4.<br \/>\nNotice that `TV` appears to have the highest degree of correlation.<br \/>\n<br \/>\n<a href=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2021\/10\/scatter-plots-data-visualization-categorical-variable-correlation.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2021\/10\/scatter-plots-data-visualization-categorical-variable-correlation.png\" alt=\"Categorical variable correlation using scatter plots for data visualization\" width=\"784\" height=\"253\" class=\"aligncenter size-full wp-image-12209\" srcset=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2021\/10\/scatter-plots-data-visualization-categorical-variable-correlation.png 784w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2021\/10\/scatter-plots-data-visualization-categorical-variable-correlation-300x97.png 300w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2021\/10\/scatter-plots-data-visualization-categorical-variable-correlation-768x248.png 768w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2021\/10\/scatter-plots-data-visualization-categorical-variable-correlation-20x6.png 20w\" sizes=\"auto, (max-width: 784px) 100vw, 784px\" \/><\/a><\/p>\n<\/li>\n<li>Split the dataset, using 60% of it for training and the remaining 40% for testing. We can now determine the value of coefficients in the regression equation, when the categorical variable is `TV` and the target variable is `Sales`, using the <a href=\"https:\/\/towardsdatascience.com\/understanding-the-ols-method-for-simple-linear-regression-e0a4e8f692cc\" rel=\"noopener\" target=\"_blank\">\uc77c\ubc18 \ucd5c\uc18c \uc81c\uacf1 \ubc29\ubc95<\/a>.<br \/>\n<br \/>\n<a href=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2021\/10\/ordinary-least-squares-method-regression-testing.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2021\/10\/ordinary-least-squares-method-regression-testing.png\" alt=\"Ordinary Least Squares method for regression testing\" width=\"784\" height=\"393\" class=\"aligncenter size-full wp-image-12205\" srcset=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2021\/10\/ordinary-least-squares-method-regression-testing.png 784w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2021\/10\/ordinary-least-squares-method-regression-testing-300x150.png 300w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2021\/10\/ordinary-least-squares-method-regression-testing-768x385.png 768w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2021\/10\/ordinary-least-squares-method-regression-testing-20x10.png 20w\" sizes=\"auto, (max-width: 784px) 100vw, 784px\" \/><\/a><\/p>\n<\/li>\n<li>\uc774\uc81c \uc5ec\uae30\uc5d0 \ud45c\uc2dc\ub41c \ucf54\ub4dc\ub97c \uc0ac\uc6a9\ud558\uc5ec \ubaa8\ub378\uc744 \ud559\uc2b5\uc2dc\ud0b5\ub2c8\ub2e4:<br \/>\n<br \/>\n<a href=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2021\/10\/training-data-jupyter-notebook.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2021\/10\/training-data-jupyter-notebook.png\" alt=\"Training data in a Jupyter notebook\" width=\"784\" height=\"298\" class=\"aligncenter size-full wp-image-12213\" srcset=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2021\/10\/training-data-jupyter-notebook.png 784w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2021\/10\/training-data-jupyter-notebook-300x114.png 300w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2021\/10\/training-data-jupyter-notebook-768x292.png 768w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2021\/10\/training-data-jupyter-notebook-20x8.png 20w\" sizes=\"auto, (max-width: 784px) 100vw, 784px\" \/><\/a><\/p>\n<\/li>\n<li>Next, substitute `test` for `train` to use the model to predict the test set\u2019s values, like this:<br \/>\n<br \/>\n<a href=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2021\/10\/testing-data-tv-variable-advertising-dataset.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2021\/10\/testing-data-tv-variable-advertising-dataset.png\" alt=\"Testing data for a TV variable in an advertising dataset\" width=\"791\" height=\"294\" class=\"aligncenter size-full wp-image-12212\" srcset=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2021\/10\/testing-data-tv-variable-advertising-dataset.png 791w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2021\/10\/testing-data-tv-variable-advertising-dataset-300x112.png 300w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2021\/10\/testing-data-tv-variable-advertising-dataset-768x285.png 768w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2021\/10\/testing-data-tv-variable-advertising-dataset-20x7.png 20w\" sizes=\"auto, (max-width: 791px) 100vw, 791px\" \/><\/a><\/p>\n<\/li>\n<\/ol>\n<div class=\"wp-block-spacer\" style=\"height: 15px;\" aria-hidden=\"true\"> <\/div>\n<p>Using the same approach, we can train and test a model with the categorical variables `Radio` and `Newspaper`, as well:<br \/>\n<br \/>\n<a href=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2021\/10\/training-data-radio-variable-linear-regression.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2021\/10\/training-data-radio-variable-linear-regression.png\" alt=\"Linear regression training data using a radio variable\" width=\"290\" height=\"195\" class=\"alignleft size-full wp-image-12214\" srcset=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2021\/10\/training-data-radio-variable-linear-regression.png 290w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2021\/10\/training-data-radio-variable-linear-regression-20x13.png 20w\" sizes=\"auto, (max-width: 290px) 100vw, 290px\" \/><\/a><br \/>\n<a href=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2021\/10\/testing-data-radio-variable-linear-regression.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2021\/10\/testing-data-radio-variable-linear-regression.png\" alt=\"Linear regression testing data using the radio variable\" width=\"297\" height=\"195\" class=\"alignright size-full wp-image-12211\" srcset=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2021\/10\/testing-data-radio-variable-linear-regression.png 297w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2021\/10\/testing-data-radio-variable-linear-regression-20x13.png 20w\" sizes=\"auto, (max-width: 297px) 100vw, 297px\" \/><\/a><br \/>\n<a href=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2021\/10\/jupyter-notebook-training-data-newspaper-couchbase.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2021\/10\/jupyter-notebook-training-data-newspaper-couchbase.png\" alt=\"Training data in a Jupyter Notebook from Couchbase (newspaper variable) \" width=\"279\" height=\"201\" class=\"alignleft size-full wp-image-12202\" srcset=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2021\/10\/jupyter-notebook-training-data-newspaper-couchbase.png 279w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2021\/10\/jupyter-notebook-training-data-newspaper-couchbase-20x14.png 20w\" sizes=\"auto, (max-width: 279px) 100vw, 279px\" \/><\/a><br \/>\n<a href=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2021\/10\/jupyter-notebook-testing-data-newspaper-couchbase.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2021\/10\/jupyter-notebook-testing-data-newspaper-couchbase.png\" alt=\"Testing data in a Jupyter Notebook from Couchbase (newspaper variable) \" width=\"297\" height=\"196\" class=\"alignright size-full wp-image-12201\" srcset=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2021\/10\/jupyter-notebook-testing-data-newspaper-couchbase.png 297w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2021\/10\/jupyter-notebook-testing-data-newspaper-couchbase-20x13.png 20w\" sizes=\"auto, (max-width: 297px) 100vw, 297px\" \/><\/a><\/p>\n<h2>\uba38\uc2e0 \ub7ec\ub2dd \ubc0f \uce74\uc6b0\uce58\ubca0\uc774\uc2a4\ub85c \ub354 \ub098\uc544\uac00\uae30<\/h2>\n<p>\uc774\uc81c \uc5f0\uacb0\uc5d0 \uc775\uc219\ud574\uc84c\uc73c\ub2c8 \uc774\uc81c <a href=\"https:\/\/www.couchbase.com\/blog\/ko\/products\/server\/?ref=blog\" rel=\"noopener\" target=\"_blank\">\uce74\uc6b0\uce58\ubca0\uc774\uc2a4 \uc11c\ubc84<\/a> \ub85c \uc774\ub3d9\ud558\uc5ec \uc120\ud615 \ud68c\uadc0\uc758 \uba38\uc2e0 \ub7ec\ub2dd \uac1c\ub150\uc744 \uc0b4\ud3b4\ubcf4\uc168\ub2e4\uba74, \ub2e4\uc74c \ud3ec\uc2a4\ud305\uc744 \ud1b5\ud574 \uadf8 \uc9c0\uc2dd\uc744 \uc313\uc73c\uc138\uc694. <a href=\"https:\/\/www.couchbase.com\/blog\/ko\/couchbase-machine-learning-model-store\/?ref=blog\" rel=\"noopener\" target=\"_blank\">\uba38\uc2e0 \ub7ec\ub2dd \ubaa8\ub378 \uc800\uc7a5\uc18c\ub85c Couchbase\ub97c \uc0ac\uc6a9\ud558\ub294 \ubc29\ubc95<\/a> \uadf8\ub9ac\uace0 <a href=\"https:\/\/www.couchbase.com\/blog\/ko\/enable-ai-driven-insights-using-couchbase-a-practical-framework\/?ref=blog\" rel=\"noopener\" target=\"_blank\">Couchbase\ub97c \uc0ac\uc6a9\ud558\uc5ec AI \uae30\ubc18 \uc778\uc0ac\uc774\ud2b8 \ud655\ubcf4\ud558\uae30<\/a>.<\/p>\n<div class=\"wp-block-spacer\" style=\"height: 30px;\" aria-hidden=\"true\"> <\/div>\n<div style=\"text-align:center;\"><strong>\uc9c1\uc811 \uc0ac\uc6a9\ud574 \ubcf4\uc138\uc694:<br><br \/>\n<a href=\"https:\/\/www.couchbase.com\/blog\/ko\/downloads\/?ref=blog\" rel=\"noopener\" target=\"_blank\">\uc5ec\uae30\uc5d0\uc11c Couchbase 7 \ub2e4\uc6b4\ub85c\ub4dc<\/a><\/strong><\/div>\n<div class=\"wp-block-spacer\" style=\"height: 15px;\" aria-hidden=\"true\"> <\/div>\n<p>&nbsp;<br \/>\n&nbsp;<br \/>\n&nbsp;<\/p>","protected":false},"excerpt":{"rendered":"<p>Data scientists love Jupyter Notebooks \u2013 and it makes a natural pairing with the Couchbase document database. Why? The Jupyter Notebook web application lets you create and share documents that contain narrative text, equations and the like for use cases [&hellip;]<\/p>","protected":false},"author":79062,"featured_media":12191,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"inline_featured_image":false,"footnotes":""},"categories":[10122,1815,2381,1816,9139],"tags":[2250,2312,2140],"ppma_author":[9457],"class_list":["post-12190","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-artificial-intelligence-ai","category-best-practices-and-tutorials","category-community","category-couchbase-server","category-python","tag-data-visualization","tag-document-database","tag-machine-learning"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v26.5 (Yoast SEO v26.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Training a Linear Regression Model with Couchbase &amp; a Jupyter Notebook: Step-by-Step Tutorial<\/title>\n<meta name=\"description\" content=\"Follow this step-by-step tutorial on training and testing a machine learning model for deep data insights using Jupyter Notebook and Couchbase Server.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.couchbase.com\/blog\/ko\/linear-regression-model-couchbase-jupyter-notebook-tutorial\/\" \/>\n<meta property=\"og:locale\" content=\"ko_KR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Training a Linear Regression Model with Couchbase &amp; a Jupyter Notebook: Step-by-Step Tutorial\" \/>\n<meta property=\"og:description\" content=\"Follow this step-by-step tutorial on training and testing a machine learning model for deep data insights using Jupyter Notebook and Couchbase Server.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.couchbase.com\/blog\/ko\/linear-regression-model-couchbase-jupyter-notebook-tutorial\/\" \/>\n<meta property=\"og:site_name\" content=\"The Couchbase Blog\" \/>\n<meta property=\"article:published_time\" content=\"2021-10-06T07:00:39+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-06-14T04:25:12+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2021\/10\/jupyter-notebook-couchbase-linear-regression-model-tutorial-social.png\" \/>\n\t<meta property=\"og:image:width\" content=\"800\" \/>\n\t<meta property=\"og:image:height\" content=\"418\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Agrima Khanna\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:image\" content=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2021\/10\/jupyter-notebook-couchbase-linear-regression-model-tutorial-social.png\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Agrima Khanna\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4\ubd84\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"TechArticle\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/linear-regression-model-couchbase-jupyter-notebook-tutorial\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/linear-regression-model-couchbase-jupyter-notebook-tutorial\/\"},\"author\":{\"name\":\"Agrima Khanna\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/#\/schema\/person\/70424341a4f4d4236f120d7ea0488f00\"},\"headline\":\"Training a Linear Regression Model with Couchbase &#038; a Jupyter Notebook: Step-by-Step Tutorial\",\"datePublished\":\"2021-10-06T07:00:39+00:00\",\"dateModified\":\"2025-06-14T04:25:12+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/linear-regression-model-couchbase-jupyter-notebook-tutorial\/\"},\"wordCount\":773,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/linear-regression-model-couchbase-jupyter-notebook-tutorial\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2021\/10\/jupyter-notebook-couchbase-linear-regression-model-tutorial.png\",\"keywords\":[\"data visualization\",\"document database\",\"Machine Learning (ML)\"],\"articleSection\":[\"Artificial Intelligence (AI)\",\"Best Practices and Tutorials\",\"Community\",\"Couchbase Server\",\"Python\"],\"inLanguage\":\"ko-KR\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.couchbase.com\/blog\/linear-regression-model-couchbase-jupyter-notebook-tutorial\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/linear-regression-model-couchbase-jupyter-notebook-tutorial\/\",\"url\":\"https:\/\/www.couchbase.com\/blog\/linear-regression-model-couchbase-jupyter-notebook-tutorial\/\",\"name\":\"Training a Linear Regression Model with Couchbase & a Jupyter Notebook: Step-by-Step Tutorial\",\"isPartOf\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/linear-regression-model-couchbase-jupyter-notebook-tutorial\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/linear-regression-model-couchbase-jupyter-notebook-tutorial\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2021\/10\/jupyter-notebook-couchbase-linear-regression-model-tutorial.png\",\"datePublished\":\"2021-10-06T07:00:39+00:00\",\"dateModified\":\"2025-06-14T04:25:12+00:00\",\"description\":\"Follow this step-by-step tutorial on training and testing a machine learning model for deep data insights using Jupyter Notebook and Couchbase Server.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/linear-regression-model-couchbase-jupyter-notebook-tutorial\/#breadcrumb\"},\"inLanguage\":\"ko-KR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.couchbase.com\/blog\/linear-regression-model-couchbase-jupyter-notebook-tutorial\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"ko-KR\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/linear-regression-model-couchbase-jupyter-notebook-tutorial\/#primaryimage\",\"url\":\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2021\/10\/jupyter-notebook-couchbase-linear-regression-model-tutorial.png\",\"contentUrl\":\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2021\/10\/jupyter-notebook-couchbase-linear-regression-model-tutorial.png\",\"width\":1200,\"height\":628,\"caption\":\"Learn how to build a linear regression model using a Jupyter Notebook and Couchbase in this tutorial\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/linear-regression-model-couchbase-jupyter-notebook-tutorial\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.couchbase.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Training a Linear Regression Model with Couchbase &#038; a Jupyter Notebook: Step-by-Step Tutorial\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/#website\",\"url\":\"https:\/\/www.couchbase.com\/blog\/\",\"name\":\"The Couchbase Blog\",\"description\":\"Couchbase, the NoSQL Database\",\"publisher\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.couchbase.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ko-KR\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/#organization\",\"name\":\"The Couchbase Blog\",\"url\":\"https:\/\/www.couchbase.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ko-KR\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2023\/04\/admin-logo.png\",\"contentUrl\":\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2023\/04\/admin-logo.png\",\"width\":218,\"height\":34,\"caption\":\"The Couchbase Blog\"},\"image\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/#\/schema\/person\/70424341a4f4d4236f120d7ea0488f00\",\"name\":\"Agrima Khanna\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ko-KR\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/#\/schema\/person\/image\/920ff5d3b8a4939dcc5036c29574367a\",\"url\":\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2021\/10\/agrima-khanna-couchbase-intern.png\",\"contentUrl\":\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2021\/10\/agrima-khanna-couchbase-intern.png\",\"caption\":\"Agrima Khanna\"},\"url\":\"https:\/\/www.couchbase.com\/blog\/ko\/author\/agrima-khanna\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Training a Linear Regression Model with Couchbase & a Jupyter Notebook: Step-by-Step Tutorial","description":"\uc774 \ub2e8\uacc4\ubcc4 \uc790\uc2b5\uc11c\ub97c \ub530\ub77c Jupyter Notebook\uacfc Couchbase Server\ub97c \uc0ac\uc6a9\ud558\uc5ec \uc2ec\uce35 \ub370\uc774\ud130 \uc778\uc0ac\uc774\ud2b8\ub97c \uc704\ud55c \uba38\uc2e0 \ub7ec\ub2dd \ubaa8\ub378\uc744 \ud6c8\ub828\ud558\uace0 \ud14c\uc2a4\ud2b8\ud558\uc138\uc694.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.couchbase.com\/blog\/ko\/linear-regression-model-couchbase-jupyter-notebook-tutorial\/","og_locale":"ko_KR","og_type":"article","og_title":"Training a Linear Regression Model with Couchbase & a Jupyter Notebook: Step-by-Step Tutorial","og_description":"Follow this step-by-step tutorial on training and testing a machine learning model for deep data insights using Jupyter Notebook and Couchbase Server.","og_url":"https:\/\/www.couchbase.com\/blog\/ko\/linear-regression-model-couchbase-jupyter-notebook-tutorial\/","og_site_name":"The Couchbase Blog","article_published_time":"2021-10-06T07:00:39+00:00","article_modified_time":"2025-06-14T04:25:12+00:00","og_image":[{"width":800,"height":418,"url":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2021\/10\/jupyter-notebook-couchbase-linear-regression-model-tutorial-social.png","type":"image\/png"}],"author":"Agrima Khanna","twitter_card":"summary_large_image","twitter_image":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2021\/10\/jupyter-notebook-couchbase-linear-regression-model-tutorial-social.png","twitter_misc":{"Written by":"Agrima Khanna","Est. reading time":"4\ubd84"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"TechArticle","@id":"https:\/\/www.couchbase.com\/blog\/linear-regression-model-couchbase-jupyter-notebook-tutorial\/#article","isPartOf":{"@id":"https:\/\/www.couchbase.com\/blog\/linear-regression-model-couchbase-jupyter-notebook-tutorial\/"},"author":{"name":"Agrima Khanna","@id":"https:\/\/www.couchbase.com\/blog\/#\/schema\/person\/70424341a4f4d4236f120d7ea0488f00"},"headline":"Training a Linear Regression Model with Couchbase &#038; a Jupyter Notebook: Step-by-Step Tutorial","datePublished":"2021-10-06T07:00:39+00:00","dateModified":"2025-06-14T04:25:12+00:00","mainEntityOfPage":{"@id":"https:\/\/www.couchbase.com\/blog\/linear-regression-model-couchbase-jupyter-notebook-tutorial\/"},"wordCount":773,"commentCount":0,"publisher":{"@id":"https:\/\/www.couchbase.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.couchbase.com\/blog\/linear-regression-model-couchbase-jupyter-notebook-tutorial\/#primaryimage"},"thumbnailUrl":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2021\/10\/jupyter-notebook-couchbase-linear-regression-model-tutorial.png","keywords":["data visualization","document database","Machine Learning (ML)"],"articleSection":["Artificial Intelligence (AI)","Best Practices and Tutorials","Community","Couchbase Server","Python"],"inLanguage":"ko-KR","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.couchbase.com\/blog\/linear-regression-model-couchbase-jupyter-notebook-tutorial\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.couchbase.com\/blog\/linear-regression-model-couchbase-jupyter-notebook-tutorial\/","url":"https:\/\/www.couchbase.com\/blog\/linear-regression-model-couchbase-jupyter-notebook-tutorial\/","name":"Training a Linear Regression Model with Couchbase & a Jupyter Notebook: Step-by-Step Tutorial","isPartOf":{"@id":"https:\/\/www.couchbase.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.couchbase.com\/blog\/linear-regression-model-couchbase-jupyter-notebook-tutorial\/#primaryimage"},"image":{"@id":"https:\/\/www.couchbase.com\/blog\/linear-regression-model-couchbase-jupyter-notebook-tutorial\/#primaryimage"},"thumbnailUrl":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2021\/10\/jupyter-notebook-couchbase-linear-regression-model-tutorial.png","datePublished":"2021-10-06T07:00:39+00:00","dateModified":"2025-06-14T04:25:12+00:00","description":"\uc774 \ub2e8\uacc4\ubcc4 \uc790\uc2b5\uc11c\ub97c \ub530\ub77c Jupyter Notebook\uacfc Couchbase Server\ub97c \uc0ac\uc6a9\ud558\uc5ec \uc2ec\uce35 \ub370\uc774\ud130 \uc778\uc0ac\uc774\ud2b8\ub97c \uc704\ud55c \uba38\uc2e0 \ub7ec\ub2dd \ubaa8\ub378\uc744 \ud6c8\ub828\ud558\uace0 \ud14c\uc2a4\ud2b8\ud558\uc138\uc694.","breadcrumb":{"@id":"https:\/\/www.couchbase.com\/blog\/linear-regression-model-couchbase-jupyter-notebook-tutorial\/#breadcrumb"},"inLanguage":"ko-KR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.couchbase.com\/blog\/linear-regression-model-couchbase-jupyter-notebook-tutorial\/"]}]},{"@type":"ImageObject","inLanguage":"ko-KR","@id":"https:\/\/www.couchbase.com\/blog\/linear-regression-model-couchbase-jupyter-notebook-tutorial\/#primaryimage","url":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2021\/10\/jupyter-notebook-couchbase-linear-regression-model-tutorial.png","contentUrl":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2021\/10\/jupyter-notebook-couchbase-linear-regression-model-tutorial.png","width":1200,"height":628,"caption":"Learn how to build a linear regression model using a Jupyter Notebook and Couchbase in this tutorial"},{"@type":"BreadcrumbList","@id":"https:\/\/www.couchbase.com\/blog\/linear-regression-model-couchbase-jupyter-notebook-tutorial\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.couchbase.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Training a Linear Regression Model with Couchbase &#038; a Jupyter Notebook: Step-by-Step Tutorial"}]},{"@type":"WebSite","@id":"https:\/\/www.couchbase.com\/blog\/#website","url":"https:\/\/www.couchbase.com\/blog\/","name":"\uce74\uc6b0\uce58\ubca0\uc774\uc2a4 \ube14\ub85c\uadf8","description":"NoSQL \ub370\uc774\ud130\ubca0\uc774\uc2a4, Couchbase","publisher":{"@id":"https:\/\/www.couchbase.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.couchbase.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ko-KR"},{"@type":"Organization","@id":"https:\/\/www.couchbase.com\/blog\/#organization","name":"\uce74\uc6b0\uce58\ubca0\uc774\uc2a4 \ube14\ub85c\uadf8","url":"https:\/\/www.couchbase.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"ko-KR","@id":"https:\/\/www.couchbase.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2023\/04\/admin-logo.png","contentUrl":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2023\/04\/admin-logo.png","width":218,"height":34,"caption":"The Couchbase Blog"},"image":{"@id":"https:\/\/www.couchbase.com\/blog\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/www.couchbase.com\/blog\/#\/schema\/person\/70424341a4f4d4236f120d7ea0488f00","name":"\uc544\uadf8\ub9ac\ub9c8 \uce78\ub098","image":{"@type":"ImageObject","inLanguage":"ko-KR","@id":"https:\/\/www.couchbase.com\/blog\/#\/schema\/person\/image\/920ff5d3b8a4939dcc5036c29574367a","url":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2021\/10\/agrima-khanna-couchbase-intern.png","contentUrl":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2021\/10\/agrima-khanna-couchbase-intern.png","caption":"Agrima Khanna"},"url":"https:\/\/www.couchbase.com\/blog\/ko\/author\/agrima-khanna\/"}]}},"authors":[{"term_id":9457,"user_id":79062,"is_guest":0,"slug":"agrima-khanna","display_name":"Agrima Khanna","avatar_url":{"url":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2021\/10\/agrima-khanna-couchbase-intern.png","url2x":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2021\/10\/agrima-khanna-couchbase-intern.png"},"author_category":"","last_name":"Khanna","first_name":"Agrima","job_title":"","user_url":"","description":"Agrima is a second-year engineering student at NSUT, Delhi and a former intern at Couchbase. She has a keen interest in the fields of machine learning and cybersecurity."}],"_links":{"self":[{"href":"https:\/\/www.couchbase.com\/blog\/ko\/wp-json\/wp\/v2\/posts\/12190","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.couchbase.com\/blog\/ko\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.couchbase.com\/blog\/ko\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.couchbase.com\/blog\/ko\/wp-json\/wp\/v2\/users\/79062"}],"replies":[{"embeddable":true,"href":"https:\/\/www.couchbase.com\/blog\/ko\/wp-json\/wp\/v2\/comments?post=12190"}],"version-history":[{"count":0,"href":"https:\/\/www.couchbase.com\/blog\/ko\/wp-json\/wp\/v2\/posts\/12190\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.couchbase.com\/blog\/ko\/wp-json\/wp\/v2\/media\/12191"}],"wp:attachment":[{"href":"https:\/\/www.couchbase.com\/blog\/ko\/wp-json\/wp\/v2\/media?parent=12190"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.couchbase.com\/blog\/ko\/wp-json\/wp\/v2\/categories?post=12190"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.couchbase.com\/blog\/ko\/wp-json\/wp\/v2\/tags?post=12190"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/www.couchbase.com\/blog\/ko\/wp-json\/wp\/v2\/ppma_author?post=12190"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}