{"id":1166,"date":"2023-07-27T10:29:04","date_gmt":"2023-07-27T10:29:04","guid":{"rendered":"https:\/\/statorials.org\/ja\/python%e3%81%a6%e3%82%99%e3%81%ae%e4%ba%8c%e6%ac%a1%e5%88%a4%e5%88%a5%e5%88%86%e6%9e%90\/"},"modified":"2023-07-27T10:29:04","modified_gmt":"2023-07-27T10:29:04","slug":"python%e3%81%a6%e3%82%99%e3%81%ae%e4%ba%8c%e6%ac%a1%e5%88%a4%e5%88%a5%e5%88%86%e6%9e%90","status":"publish","type":"post","link":"https:\/\/statorials.org\/ja\/python%e3%81%a6%e3%82%99%e3%81%ae%e4%ba%8c%e6%ac%a1%e5%88%a4%e5%88%a5%e5%88%86%e6%9e%90\/","title":{"rendered":"Python \u3067\u306e\u4e8c\u6b21\u5224\u5225\u5206\u6790 (\u30b9\u30c6\u30c3\u30d7\u30d0\u30a4\u30b9\u30c6\u30c3\u30d7)"},"content":{"rendered":"<p><\/p>\n<hr>\n<p><span style=\"color: #000000;\"><a href=\"https:\/\/statorials.org\/ja\/\u4e8c\u6b21\u5224\u5225\u5206\u6790\/\" target=\"_blank\" rel=\"noopener noreferrer\">\u4e8c\u6b21\u5224\u5225\u5206\u6790\u306f\u3001\u4e00\u9023<\/a>\u306e\u4e88\u6e2c\u5b50\u5909\u6570\u304c\u3042\u308a\u3001 <a href=\"https:\/\/statorials.org\/ja\/\u5909\u6570\u306e\u8aac\u660e\u5fdc\u7b54\/\" target=\"_blank\" rel=\"noopener noreferrer\">\u5fdc\u7b54\u5909\u6570\u3092<\/a>2 \u3064\u4ee5\u4e0a\u306e\u30af\u30e9\u30b9\u306b\u5206\u985e\u3059\u308b\u5834\u5408\u306b\u4f7f\u7528\u3067\u304d\u308b\u65b9\u6cd5\u3067\u3059\u3002<\/span><\/p>\n<p><span style=\"color: #000000;\">\u3053\u308c\u306f\u3001 <a href=\"https:\/\/statorials.org\/ja\/python\u3066\u3099\u306e\u7dda\u5f62\u5224\u5225\u5206\u6790\/\" target=\"_blank\" rel=\"noopener noreferrer\">\u7dda\u5f62\u5224\u5225\u5206\u6790<\/a>\u3068\u540c\u7b49\u306e\u975e\u7dda\u5f62\u3068\u307f\u306a\u3055\u308c\u307e\u3059\u3002<\/span><\/p>\n<p><span style=\"color: #000000;\">\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u306f\u3001Python \u3067\u4e8c\u6b21\u5224\u5225\u5206\u6790\u3092\u5b9f\u884c\u3059\u308b\u65b9\u6cd5\u3092\u6bb5\u968e\u7684\u306b\u8aac\u660e\u3057\u307e\u3059\u3002<\/span><\/p>\n<h3><span style=\"color: #000000;\"><strong>\u30b9\u30c6\u30c3\u30d7 1: \u5fc5\u8981\u306a\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u30ed\u30fc\u30c9\u3059\u308b<\/strong><\/span><\/h3>\n<p><span style=\"color: #000000;\">\u307e\u305a\u3001\u3053\u306e\u4f8b\u306b\u5fc5\u8981\u306a\u95a2\u6570\u3068\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u30ed\u30fc\u30c9\u3057\u307e\u3059\u3002<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <span style=\"color: #000000;\"><b><span style=\"color: #008000;\">from<\/span> sklearn. <span style=\"color: #3366ff;\">model_selection<\/span> <span style=\"color: #008000;\">import<\/span> train_test_split\n<span style=\"color: #008000;\">from<\/span> sklearn. <span style=\"color: #3366ff;\">model_selection<\/span> <span style=\"color: #008000;\">import<\/span> RepeatedStratifiedKFold\n<span style=\"color: #008000;\">from<\/span> sklearn. <span style=\"color: #3366ff;\">model_selection<\/span> <span style=\"color: #008000;\">import<\/span> cross_val_score\n<span style=\"color: #008000;\">from<\/span> sklearn. <span style=\"color: #3366ff;\">discriminant_analysis<\/span> <span style=\"color: #008000;\">import<\/span> QuadraticDiscriminantAnalysis \n<span style=\"color: #008000;\">from<\/span> sklearn <span style=\"color: #008000;\">import<\/span> datasets\n<span style=\"color: #008000;\">import<\/span> matplotlib. <span style=\"color: #3366ff;\">pyplot<\/span> <span style=\"color: #008000;\">as<\/span> plt\n<span style=\"color: #008000;\">import<\/span> pandas <span style=\"color: #008000;\">as<\/span> pd\n<span style=\"color: #008000;\">import<\/span> numpy <span style=\"color: #008000;\">as<\/span> np<\/b><\/span><\/pre>\n<h3><span style=\"color: #000000;\"><strong>\u30b9\u30c6\u30c3\u30d7 2: \u30c7\u30fc\u30bf\u3092\u30ed\u30fc\u30c9\u3059\u308b<\/strong><\/span><\/h3>\n<p><span style=\"color: #000000;\">\u3053\u306e\u4f8b\u3067\u306f\u3001sklearn \u30e9\u30a4\u30d6\u30e9\u30ea\u306e<strong>iris<\/strong>\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002\u6b21\u306e\u30b3\u30fc\u30c9\u306f\u3001\u3053\u306e\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u3092\u30ed\u30fc\u30c9\u3057\u3001\u4f7f\u3044\u3084\u3059\u3044\u3088\u3046\u306b pandas DataFrame \u306b\u5909\u63db\u3059\u308b\u65b9\u6cd5\u3092\u793a\u3057\u3066\u3044\u307e\u3059\u3002<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong><span style=\"color: #008080;\">#load <em>iris<\/em> dataset<\/span>\niris = datasets. <span style=\"color: #3366ff;\">load_iris<\/span> ()\n\n<span style=\"color: #008080;\">#convert dataset to pandas DataFrame\n<\/span>df = pd.DataFrame(data = np.c_[iris[' <span style=\"color: #008000;\">data<\/span> '], iris[' <span style=\"color: #008000;\">target<\/span> ']],\n                 columns = iris[' <span style=\"color: #008000;\">feature_names<\/span> '] + [' <span style=\"color: #008000;\">target<\/span> '])\ndf[' <span style=\"color: #008000;\">species<\/span> '] = pd. <span style=\"color: #3366ff;\">Categorical<\/span> . <span style=\"color: #3366ff;\">from_codes<\/span> (iris.target, iris.target_names)\ndf.columns = [' <span style=\"color: #008000;\">s_length<\/span> ', ' <span style=\"color: #008000;\">s_width<\/span> ', ' <span style=\"color: #008000;\">p_length<\/span> ', ' <span style=\"color: #008000;\">p_width<\/span> ', ' <span style=\"color: #008000;\">target<\/span> ', ' <span style=\"color: #008000;\">species<\/span> ']\n\n<span style=\"color: #008080;\">#view first six rows of DataFrame\n<\/span>df. <span style=\"color: #3366ff;\">head<\/span> ()\n\n   s_length s_width p_length p_width target species\n0 5.1 3.5 1.4 0.2 0.0 setosa\n1 4.9 3.0 1.4 0.2 0.0 setosa\n2 4.7 3.2 1.3 0.2 0.0 setosa\n3 4.6 3.1 1.5 0.2 0.0 setosa\n4 5.0 3.6 1.4 0.2 0.0 setosa\n\n<span style=\"color: #3366ff;\"><span style=\"color: #008080;\">#find how many total observations are in dataset<\/span>\n<span style=\"color: #000000;\">len(df.index)\n\n150<\/span><\/span><\/strong><\/pre>\n<p><span style=\"color: #000000;\">\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u306b\u306f\u5408\u8a08 150 \u500b\u306e\u89b3\u6e2c\u5024\u304c\u542b\u307e\u308c\u3066\u3044\u308b\u3053\u3068\u304c\u308f\u304b\u308a\u307e\u3059\u3002<\/span><\/p>\n<p><span style=\"color: #000000;\">\u3053\u306e\u4f8b\u3067\u306f\u3001\u7279\u5b9a\u306e\u82b1\u304c\u5c5e\u3059\u308b\u7a2e\u3092\u5206\u985e\u3059\u308b\u305f\u3081\u306e 2 \u6b21\u5224\u5225\u5206\u6790\u30e2\u30c7\u30eb\u3092\u69cb\u7bc9\u3057\u307e\u3059\u3002<\/span><\/p>\n<p><span style=\"color: #000000;\">\u30e2\u30c7\u30eb\u3067\u306f\u6b21\u306e\u4e88\u6e2c\u5b50\u5909\u6570\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/span><\/p>\n<ul>\n<li><span style=\"color: #000000;\">\u304c\u304f\u7247\u306e\u9577\u3055<\/span><\/li>\n<li><span style=\"color: #000000;\">\u304c\u304f\u7247\u306e\u5e45<\/span><\/li>\n<li><span style=\"color: #000000;\">\u82b1\u3073\u3089\u306e\u9577\u3055<\/span><\/li>\n<li><span style=\"color: #000000;\">\u82b1\u3073\u3089\u306e\u5e45<\/span><\/li>\n<\/ul>\n<p><span style=\"color: #000000;\">\u305d\u3057\u3066\u3001\u305d\u308c\u3089\u3092\u4f7f\u7528\u3057\u3066\u3001\u6b21\u306e 3 \u3064\u306e\u6f5c\u5728\u7684\u306a\u30af\u30e9\u30b9\u3092\u30b5\u30dd\u30fc\u30c8\u3059\u308b<em>\u7a2e\u306e<\/em>\u5fdc\u7b54\u5909\u6570\u3092\u4e88\u6e2c\u3057\u307e\u3059\u3002<\/span><\/p>\n<ul>\n<li><span style=\"color: #000000;\">\u30bb\u30c8\u30b5<\/span><\/li>\n<li><span style=\"color: #000000;\">\u765c\u98a8<\/span><\/li>\n<li><span style=\"color: #000000;\">\u30d0\u30fc\u30b8\u30cb\u30a2\u5dde<\/span><\/li>\n<\/ul>\n<h3><span style=\"color: #000000;\"><strong>\u30b9\u30c6\u30c3\u30d7 3: QDA \u30e2\u30c7\u30eb\u3092\u8abf\u6574\u3059\u308b<\/strong><\/span><\/h3>\n<p><span style=\"color: #000000;\">\u6b21\u306b\u3001sklearn \u306e<a href=\"https:\/\/scikit-learn.org\/stable\/modules\/generated\/sklearn.discriminant_analysis.QuadraticDiscriminantAnalysis.html\" target=\"_blank\" rel=\"noopener noreferrer\">QuadraticDiscriminantAnalsys<\/a>\u95a2\u6570\u3092\u4f7f\u7528\u3057\u3066 QDA \u30e2\u30c7\u30eb\u3092\u30c7\u30fc\u30bf\u306b\u9069\u5408\u3055\u305b\u307e\u3059\u3002<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong><span style=\"color: #008080;\">#define predictor and response variables\n<\/span>X = df[[' <span style=\"color: #008000;\">s_length<\/span> ',' <span style=\"color: #008000;\">s_width<\/span> ',' <span style=\"color: #008000;\">p_length<\/span> ',' <span style=\"color: #008000;\">p_width<\/span> ']]\ny = df[' <span style=\"color: #008000;\">species<\/span> ']\n\n<span style=\"color: #008080;\">#Fit the QDA model\n<\/span>model = QuadraticDiscriminantAnalysis()\nmodel. <span style=\"color: #3366ff;\">fit<\/span> (x,y)\n<\/strong><\/pre>\n<h3><span style=\"color: #000000;\"><strong>\u30b9\u30c6\u30c3\u30d7 4: \u30e2\u30c7\u30eb\u3092\u4f7f\u7528\u3057\u3066\u4e88\u6e2c\u3092\u884c\u3046<\/strong><\/span><\/h3>\n<p><span style=\"color: #000000;\">\u30c7\u30fc\u30bf\u3092\u4f7f\u7528\u3057\u3066\u30e2\u30c7\u30eb\u3092\u30d5\u30a3\u30c3\u30c6\u30a3\u30f3\u30b0\u3057\u305f\u3089\u3001\u5c64\u5225 k \u5206\u5272\u4ea4\u5dee\u691c\u8a3c\u3092\u7e70\u308a\u8fd4\u3057\u3066\u30e2\u30c7\u30eb\u306e\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u3092\u8a55\u4fa1\u3067\u304d\u307e\u3059\u3002<\/span><\/p>\n<p><span style=\"color: #000000;\">\u3053\u306e\u4f8b\u3067\u306f\u300110 \u56de\u306e\u6298\u308a\u76ee\u3068 3 \u56de\u306e\u7e70\u308a\u8fd4\u3057\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong><span style=\"color: #008080;\">#Define method to evaluate model\n<span style=\"color: #000000;\">cv = RepeatedStratifiedKFold(n_splits= <span style=\"color: #008000;\">10<\/span> , n_repeats= <span style=\"color: #008000;\">3<\/span> , random_state= <span style=\"color: #008000;\">1<\/span> )\n<\/span>\n#evaluate model\n<span style=\"color: #000000;\">scores = cross_val_score(model, X, y, scoring=' <span style=\"color: #008000;\">accuracy<\/span> ', cv=cv, n_jobs=-1)\nprint( <span style=\"color: #3366ff;\">np.mean<\/span> (scores))<\/span>  \n\n<span style=\"color: #000000;\">0.97333333333334<\/span><\/span><\/strong><\/pre>\n<p><span style=\"color: #000000;\">\u30e2\u30c7\u30eb\u304c<strong>97.33%<\/strong>\u306e\u5e73\u5747\u7cbe\u5ea6\u3092\u9054\u6210\u3057\u305f\u3053\u3068\u304c\u308f\u304b\u308a\u307e\u3059\u3002<\/span><\/p>\n<p><span style=\"color: #000000;\">\u3053\u306e\u30e2\u30c7\u30eb\u3092\u4f7f\u7528\u3057\u3066\u3001\u5165\u529b\u5024\u306b\u57fa\u3065\u3044\u3066\u65b0\u3057\u3044\u82b1\u304c\u3069\u306e\u30af\u30e9\u30b9\u306b\u5c5e\u3059\u308b\u304b\u3092\u4e88\u6e2c\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong><span style=\"color: #008080;\">#define new observation\n<\/span>new = [5, 3, 1, .4]\n\n<span style=\"color: #008080;\">#predict which class the new observation belongs to\n<\/span>model. <span style=\"color: #3366ff;\">predict<\/span> ([new])\n\narray(['setosa'], dtype='&lt;U10')\n<\/strong><\/pre>\n<p><span style=\"color: #000000;\">\u3053\u306e\u30e2\u30c7\u30eb\u306f\u3001\u3053\u306e\u65b0\u3057\u3044\u89b3\u6e2c\u7d50\u679c\u304c<em>setosa<\/em>\u3068\u547c\u3070\u308c\u308b\u7a2e\u306b\u5c5e\u3059\u308b\u3053\u3068\u3092\u4e88\u6e2c\u3057\u3066\u3044\u308b\u3053\u3068\u304c\u308f\u304b\u308a\u307e\u3059\u3002<\/span><\/p>\n<p><span style=\"color: #000000;\">\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u4f7f\u7528\u3055\u308c\u308b\u5b8c\u5168\u306a Python \u30b3\u30fc\u30c9\u306f\u3001 <a href=\"https:\/\/github.com\/Statorials\/Python-Guides\/blob\/main\/quadratic_discriminant_analysis.py\" target=\"_blank\" rel=\"noopener noreferrer\">\u3053\u3053\u3067<\/a>\u898b\u3064\u3051\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e8c\u6b21\u5224\u5225\u5206\u6790\u306f\u3001\u4e00\u9023\u306e\u4e88\u6e2c\u5b50\u5909\u6570\u304c\u3042\u308a\u3001 \u5fdc\u7b54\u5909\u6570\u30922 \u3064\u4ee5\u4e0a\u306e\u30af\u30e9\u30b9\u306b\u5206\u985e\u3059\u308b\u5834\u5408\u306b\u4f7f\u7528\u3067\u304d\u308b\u65b9\u6cd5\u3067\u3059\u3002 \u3053\u308c\u306f\u3001 \u7dda\u5f62\u5224\u5225\u5206\u6790\u3068\u540c\u7b49\u306e\u975e\u7dda\u5f62\u3068\u307f\u306a\u3055\u308c\u307e\u3059\u3002 \u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u306f\u3001Python \u3067\u4e8c\u6b21\u5224\u5225\u5206\u6790\u3092\u5b9f\u884c [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[],"class_list":["post-1166","post","type-post","status-publish","format-standard","hentry","category-16"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v21.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Python \u3067\u306e\u4e8c\u6b21\u5224\u5225\u5206\u6790 (\u30b9\u30c6\u30c3\u30d7\u30d0\u30a4\u30b9\u30c6\u30c3\u30d7)<\/title>\n<meta name=\"description\" content=\"\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u306f\u3001Python \u3067\u4e8c\u6b21\u5224\u5225\u5206\u6790\u3092\u5b9f\u884c\u3059\u308b\u65b9\u6cd5\u3092\u3001\u30b9\u30c6\u30c3\u30d7\u30d0\u30a4\u30b9\u30c6\u30c3\u30d7\u306e\u4f8b\u3092\u542b\u3081\u3066\u8aac\u660e\u3057\u307e\u3059\u3002\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/statorials.org\/ja\/python\u3066\u3099\u306e\u4e8c\u6b21\u5224\u5225\u5206\u6790\/\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Python \u3067\u306e\u4e8c\u6b21\u5224\u5225\u5206\u6790 (\u30b9\u30c6\u30c3\u30d7\u30d0\u30a4\u30b9\u30c6\u30c3\u30d7)\" \/>\n<meta property=\"og:description\" content=\"\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u306f\u3001Python \u3067\u4e8c\u6b21\u5224\u5225\u5206\u6790\u3092\u5b9f\u884c\u3059\u308b\u65b9\u6cd5\u3092\u3001\u30b9\u30c6\u30c3\u30d7\u30d0\u30a4\u30b9\u30c6\u30c3\u30d7\u306e\u4f8b\u3092\u542b\u3081\u3066\u8aac\u660e\u3057\u307e\u3059\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/statorials.org\/ja\/python\u3066\u3099\u306e\u4e8c\u6b21\u5224\u5225\u5206\u6790\/\" \/>\n<meta property=\"og:site_name\" content=\"Statorials\" \/>\n<meta property=\"article:published_time\" content=\"2023-07-27T10:29:04+00:00\" \/>\n<meta name=\"author\" content=\"\u30d9\u30f3\u30b8\u30e3\u30df\u30f3\u30fb\u30a2\u30f3\u30c0\u30fc\u30bd\u30f3\u535a\u58eb\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u57f7\u7b46\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u30d9\u30f3\u30b8\u30e3\u30df\u30f3\u30fb\u30a2\u30f3\u30c0\u30fc\u30bd\u30f3\u535a\u58eb\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593\" \/>\n\t<meta name=\"twitter:data2\" content=\"1\u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/statorials.org\/ja\/python%e3%81%a6%e3%82%99%e3%81%ae%e4%ba%8c%e6%ac%a1%e5%88%a4%e5%88%a5%e5%88%86%e6%9e%90\/\",\"url\":\"https:\/\/statorials.org\/ja\/python%e3%81%a6%e3%82%99%e3%81%ae%e4%ba%8c%e6%ac%a1%e5%88%a4%e5%88%a5%e5%88%86%e6%9e%90\/\",\"name\":\"Python \u3067\u306e\u4e8c\u6b21\u5224\u5225\u5206\u6790 (\u30b9\u30c6\u30c3\u30d7\u30d0\u30a4\u30b9\u30c6\u30c3\u30d7)\",\"isPartOf\":{\"@id\":\"https:\/\/statorials.org\/ja\/#website\"},\"datePublished\":\"2023-07-27T10:29:04+00:00\",\"dateModified\":\"2023-07-27T10:29:04+00:00\",\"author\":{\"@id\":\"https:\/\/statorials.org\/ja\/#\/schema\/person\/86b92d2dd87368b26360d19d9c6a5d83\"},\"description\":\"\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u306f\u3001Python \u3067\u4e8c\u6b21\u5224\u5225\u5206\u6790\u3092\u5b9f\u884c\u3059\u308b\u65b9\u6cd5\u3092\u3001\u30b9\u30c6\u30c3\u30d7\u30d0\u30a4\u30b9\u30c6\u30c3\u30d7\u306e\u4f8b\u3092\u542b\u3081\u3066\u8aac\u660e\u3057\u307e\u3059\u3002\",\"breadcrumb\":{\"@id\":\"https:\/\/statorials.org\/ja\/python%e3%81%a6%e3%82%99%e3%81%ae%e4%ba%8c%e6%ac%a1%e5%88%a4%e5%88%a5%e5%88%86%e6%9e%90\/#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/statorials.org\/ja\/python%e3%81%a6%e3%82%99%e3%81%ae%e4%ba%8c%e6%ac%a1%e5%88%a4%e5%88%a5%e5%88%86%e6%9e%90\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/statorials.org\/ja\/python%e3%81%a6%e3%82%99%e3%81%ae%e4%ba%8c%e6%ac%a1%e5%88%a4%e5%88%a5%e5%88%86%e6%9e%90\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u5bb6\",\"item\":\"https:\/\/statorials.org\/ja\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Python \u3067\u306e\u4e8c\u6b21\u5224\u5225\u5206\u6790 (\u30b9\u30c6\u30c3\u30d7\u30d0\u30a4\u30b9\u30c6\u30c3\u30d7)\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/statorials.org\/ja\/#website\",\"url\":\"https:\/\/statorials.org\/ja\/\",\"name\":\"Statorials\",\"description\":\"\u7d71\u8a08\u80fd\u529b\u3078\u306e\u30ac\u30a4\u30c9\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/statorials.org\/ja\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"ja\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/statorials.org\/ja\/#\/schema\/person\/86b92d2dd87368b26360d19d9c6a5d83\",\"name\":\"\u30d9\u30f3\u30b8\u30e3\u30df\u30f3\u30fb\u30a2\u30f3\u30c0\u30fc\u30bd\u30f3\u535a\u58eb\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/statorials.org\/ja\/#\/schema\/person\/image\/\",\"url\":\"http:\/\/statorials.org\/ja\/wp-content\/uploads\/2023\/10\/Dr.-Benjamin-Anderson-96x96.jpg\",\"contentUrl\":\"http:\/\/statorials.org\/ja\/wp-content\/uploads\/2023\/10\/Dr.-Benjamin-Anderson-96x96.jpg\",\"caption\":\"\u30d9\u30f3\u30b8\u30e3\u30df\u30f3\u30fb\u30a2\u30f3\u30c0\u30fc\u30bd\u30f3\u535a\u58eb\"},\"description\":\"\u79c1\u306f\u30d9\u30f3\u30b8\u30e3\u30df\u30f3\u3067\u3059\u3002\u9000\u8077\u3057\u305f\u7d71\u8a08\u6559\u6388\u304b\u3089\u3001\u5c02\u4efb\u306e Statorials \u6559\u80b2\u8005\u306b\u306a\u308a\u307e\u3057\u305f\u3002 \u7d71\u8a08\u5206\u91ce\u306b\u304a\u3051\u308b\u8c4a\u5bcc\u306a\u7d4c\u9a13\u3068\u5c02\u9580\u77e5\u8b58\u3092\u6d3b\u304b\u3057\u3066\u3001\u79c1\u306f Statorials \u3092\u901a\u3058\u3066\u5b66\u751f\u306b\u529b\u3092\u4e0e\u3048\u308b\u305f\u3081\u306b\u81ea\u5206\u306e\u77e5\u8b58\u3092\u5171\u6709\u3059\u308b\u3053\u3068\u306b\u5c3d\u529b\u3057\u3066\u3044\u307e\u3059\u3002\u3082\u3063\u3068\u77e5\u308b\",\"sameAs\":[\"http:\/\/statorials.org\/ja\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Python \u3067\u306e\u4e8c\u6b21\u5224\u5225\u5206\u6790 (\u30b9\u30c6\u30c3\u30d7\u30d0\u30a4\u30b9\u30c6\u30c3\u30d7)","description":"\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u306f\u3001Python \u3067\u4e8c\u6b21\u5224\u5225\u5206\u6790\u3092\u5b9f\u884c\u3059\u308b\u65b9\u6cd5\u3092\u3001\u30b9\u30c6\u30c3\u30d7\u30d0\u30a4\u30b9\u30c6\u30c3\u30d7\u306e\u4f8b\u3092\u542b\u3081\u3066\u8aac\u660e\u3057\u307e\u3059\u3002","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:\/\/statorials.org\/ja\/python\u3066\u3099\u306e\u4e8c\u6b21\u5224\u5225\u5206\u6790\/","og_locale":"ja_JP","og_type":"article","og_title":"Python \u3067\u306e\u4e8c\u6b21\u5224\u5225\u5206\u6790 (\u30b9\u30c6\u30c3\u30d7\u30d0\u30a4\u30b9\u30c6\u30c3\u30d7)","og_description":"\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u306f\u3001Python \u3067\u4e8c\u6b21\u5224\u5225\u5206\u6790\u3092\u5b9f\u884c\u3059\u308b\u65b9\u6cd5\u3092\u3001\u30b9\u30c6\u30c3\u30d7\u30d0\u30a4\u30b9\u30c6\u30c3\u30d7\u306e\u4f8b\u3092\u542b\u3081\u3066\u8aac\u660e\u3057\u307e\u3059\u3002","og_url":"https:\/\/statorials.org\/ja\/python\u3066\u3099\u306e\u4e8c\u6b21\u5224\u5225\u5206\u6790\/","og_site_name":"Statorials","article_published_time":"2023-07-27T10:29:04+00:00","author":"\u30d9\u30f3\u30b8\u30e3\u30df\u30f3\u30fb\u30a2\u30f3\u30c0\u30fc\u30bd\u30f3\u535a\u58eb","twitter_card":"summary_large_image","twitter_misc":{"\u57f7\u7b46\u8005":"\u30d9\u30f3\u30b8\u30e3\u30df\u30f3\u30fb\u30a2\u30f3\u30c0\u30fc\u30bd\u30f3\u535a\u58eb","\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593":"1\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/statorials.org\/ja\/python%e3%81%a6%e3%82%99%e3%81%ae%e4%ba%8c%e6%ac%a1%e5%88%a4%e5%88%a5%e5%88%86%e6%9e%90\/","url":"https:\/\/statorials.org\/ja\/python%e3%81%a6%e3%82%99%e3%81%ae%e4%ba%8c%e6%ac%a1%e5%88%a4%e5%88%a5%e5%88%86%e6%9e%90\/","name":"Python \u3067\u306e\u4e8c\u6b21\u5224\u5225\u5206\u6790 (\u30b9\u30c6\u30c3\u30d7\u30d0\u30a4\u30b9\u30c6\u30c3\u30d7)","isPartOf":{"@id":"https:\/\/statorials.org\/ja\/#website"},"datePublished":"2023-07-27T10:29:04+00:00","dateModified":"2023-07-27T10:29:04+00:00","author":{"@id":"https:\/\/statorials.org\/ja\/#\/schema\/person\/86b92d2dd87368b26360d19d9c6a5d83"},"description":"\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u306f\u3001Python \u3067\u4e8c\u6b21\u5224\u5225\u5206\u6790\u3092\u5b9f\u884c\u3059\u308b\u65b9\u6cd5\u3092\u3001\u30b9\u30c6\u30c3\u30d7\u30d0\u30a4\u30b9\u30c6\u30c3\u30d7\u306e\u4f8b\u3092\u542b\u3081\u3066\u8aac\u660e\u3057\u307e\u3059\u3002","breadcrumb":{"@id":"https:\/\/statorials.org\/ja\/python%e3%81%a6%e3%82%99%e3%81%ae%e4%ba%8c%e6%ac%a1%e5%88%a4%e5%88%a5%e5%88%86%e6%9e%90\/#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/statorials.org\/ja\/python%e3%81%a6%e3%82%99%e3%81%ae%e4%ba%8c%e6%ac%a1%e5%88%a4%e5%88%a5%e5%88%86%e6%9e%90\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/statorials.org\/ja\/python%e3%81%a6%e3%82%99%e3%81%ae%e4%ba%8c%e6%ac%a1%e5%88%a4%e5%88%a5%e5%88%86%e6%9e%90\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u5bb6","item":"https:\/\/statorials.org\/ja\/"},{"@type":"ListItem","position":2,"name":"Python \u3067\u306e\u4e8c\u6b21\u5224\u5225\u5206\u6790 (\u30b9\u30c6\u30c3\u30d7\u30d0\u30a4\u30b9\u30c6\u30c3\u30d7)"}]},{"@type":"WebSite","@id":"https:\/\/statorials.org\/ja\/#website","url":"https:\/\/statorials.org\/ja\/","name":"Statorials","description":"\u7d71\u8a08\u80fd\u529b\u3078\u306e\u30ac\u30a4\u30c9","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/statorials.org\/ja\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"ja"},{"@type":"Person","@id":"https:\/\/statorials.org\/ja\/#\/schema\/person\/86b92d2dd87368b26360d19d9c6a5d83","name":"\u30d9\u30f3\u30b8\u30e3\u30df\u30f3\u30fb\u30a2\u30f3\u30c0\u30fc\u30bd\u30f3\u535a\u58eb","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/statorials.org\/ja\/#\/schema\/person\/image\/","url":"http:\/\/statorials.org\/ja\/wp-content\/uploads\/2023\/10\/Dr.-Benjamin-Anderson-96x96.jpg","contentUrl":"http:\/\/statorials.org\/ja\/wp-content\/uploads\/2023\/10\/Dr.-Benjamin-Anderson-96x96.jpg","caption":"\u30d9\u30f3\u30b8\u30e3\u30df\u30f3\u30fb\u30a2\u30f3\u30c0\u30fc\u30bd\u30f3\u535a\u58eb"},"description":"\u79c1\u306f\u30d9\u30f3\u30b8\u30e3\u30df\u30f3\u3067\u3059\u3002\u9000\u8077\u3057\u305f\u7d71\u8a08\u6559\u6388\u304b\u3089\u3001\u5c02\u4efb\u306e Statorials \u6559\u80b2\u8005\u306b\u306a\u308a\u307e\u3057\u305f\u3002 \u7d71\u8a08\u5206\u91ce\u306b\u304a\u3051\u308b\u8c4a\u5bcc\u306a\u7d4c\u9a13\u3068\u5c02\u9580\u77e5\u8b58\u3092\u6d3b\u304b\u3057\u3066\u3001\u79c1\u306f Statorials \u3092\u901a\u3058\u3066\u5b66\u751f\u306b\u529b\u3092\u4e0e\u3048\u308b\u305f\u3081\u306b\u81ea\u5206\u306e\u77e5\u8b58\u3092\u5171\u6709\u3059\u308b\u3053\u3068\u306b\u5c3d\u529b\u3057\u3066\u3044\u307e\u3059\u3002\u3082\u3063\u3068\u77e5\u308b","sameAs":["http:\/\/statorials.org\/ja"]}]}},"yoast_meta":{"yoast_wpseo_title":"","yoast_wpseo_metadesc":"","yoast_wpseo_canonical":""},"_links":{"self":[{"href":"https:\/\/statorials.org\/ja\/wp-json\/wp\/v2\/posts\/1166","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/statorials.org\/ja\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/statorials.org\/ja\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/statorials.org\/ja\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/statorials.org\/ja\/wp-json\/wp\/v2\/comments?post=1166"}],"version-history":[{"count":0,"href":"https:\/\/statorials.org\/ja\/wp-json\/wp\/v2\/posts\/1166\/revisions"}],"wp:attachment":[{"href":"https:\/\/statorials.org\/ja\/wp-json\/wp\/v2\/media?parent=1166"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/statorials.org\/ja\/wp-json\/wp\/v2\/categories?post=1166"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/statorials.org\/ja\/wp-json\/wp\/v2\/tags?post=1166"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}