{"id":64372,"date":"2021-10-01T10:32:35","date_gmt":"1970-01-01T00:00:00","guid":{"rendered":"https:\/\/www.sejuku.net\/blog\/?p=64372"},"modified":"2024-05-06T11:50:01","modified_gmt":"2024-05-06T02:50:01","slug":"ph6","status":"publish","type":"post","link":"https:\/\/www.sejuku.net\/blog\/64372","title":{"rendered":"\u6a5f\u68b0\u5b66\u7fd2\u624b\u6cd5\u300cSVM\uff08\u30b5\u30dd\u30fc\u30c8\u30d9\u30af\u30c8\u30eb\u30de\u30b7\u30f3\uff09\u300d\u3067\u30af\u30e9\u30b9\u5206\u985e\u306b\u6311\u6226"},"content":{"rendered":"<p>Deep Learning\u304c\u6d41\u884c\u308b\u524d\u306b\u5927\u6d41\u884c\u3057\u3066\u3044\u305f\u6a5f\u68b0\u5b66\u7fd2\u624b\u6cd5\u306eSVM\uff08\u30b5\u30dd\u30fc\u30c8\u30d9\u30af\u30c8\u30eb\u30de\u30b7\u30f3\uff09\u3092\u3054\u5b58\u77e5\u3067\u3059\u304b\uff1f<\/p>\n<p>\u9ad8\u901f\u3067\u3001\u5c11\u306a\u3044\u30c7\u30fc\u30bf\u3067\u3082\u826f\u3044\u6027\u80fd\u304c\u671f\u5f85\u3067\u304d\u3001\u30c7\u30fc\u30bf\u89e3\u6790\u306e\u5b9f\u52d9\u3067\u3082\u4f7f\u3048\u308b\u5206\u985e\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\u3060\u3068\u8a00\u3048\u307e\u3059\u3002\u3053\u3053\u3067\u306fSVM\u306b\u3064\u3044\u3066\u3001\u3042\u307e\u308a\u8a73\u3057\u304f\u6df1\u5165\u308a\u305b\u305a\u306b\u3001\u521d\u5fc3\u8005\u304cscikit-learn\u3092\u4f7f\u3063\u3066\u8a66\u305b\u308b\u3088\u3046\u306b\u306a\u308b\u307e\u3067\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u307e\u3059\uff01<\/p>\n<p>\u3053\u306e\u8a18\u4e8b\u3067\u306f<\/p>\n<div class=\"box01\">\n<ul>\n<li><b>SVM\u3068\u306f\uff1f<\/b><\/li>\n<li><b>SVM\u306e\u4f7f\u3044\u65b9\u306f\uff1f<\/b><\/li>\n<li><b>SVM\u306e\u30c1\u30e5\u30fc\u30cb\u30f3\u30b0\u65b9\u6cd5<\/b><\/li>\n<\/ul>\n<\/div>\n<p>\u306b\u3064\u3044\u3066\u89e3\u8aac\u3057\u307e\u3059\u306e\u3067\u3001\u300cSVM\u3063\u3066\u4f55\uff1f\u4f7f\u3063\u3066\u307f\u305f\u3044\uff01\u300d\u3068\u601d\u3063\u305f\u65b9\u306f\u662f\u975e\u8aad\u307f\u9032\u3081\u3066\u304f\u3060\u3055\u3044\uff01<\/p>\n<p>\u3053\u306e\u8a18\u4e8b\u306e\u30b3\u30fc\u30c9\u306f\u3001Python 3.7\u3001Scikit-learn 0.19\u3067\u52d5\u4f5c\u78ba\u8a8d\u3057\u307e\u3057\u305f\u3002<\/p>\n<h2>SVM\u3068\u306f<\/h2>\n<p>SVM\uff08\u30b5\u30dd\u30fc\u30c8\u30d9\u30af\u30c8\u30eb\u30de\u30b7\u30f3\/\u30b5\u30dd\u30fc\u30c8\u30d9\u30af\u30bf\u30fc\u30de\u30b7\u30f3\uff09\u306f\u6a5f\u68b0\u5b66\u7fd2\u30e2\u30c7\u30eb\u306e\u4e00\u7a2e\u3067\u3001\u975e\u5e38\u306b\u5f37\u529b\u306a\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\u3067\u3059\u3002\u6559\u5e2b\u3042\u308a\u5b66\u7fd2\u3067\u3001\u5206\u985e\u3084\u56de\u5e30\u306b\u4f7f\u308f\u308c\u307e\u3059\u3002<\/p>\n<p>Deep Learning\u304c\u6d41\u884c\u308b\u524d\u306e\u4e16\u4ee3\u3067\u306f\u305d\u306e\u975e\u5e38\u306b\u9ad8\u3044\u6c4e\u5316\u6027\u80fd\u3068\u4f7f\u3044\u3084\u3059\u3055\u304b\u3089\u3001\u672c\u5f53\u306b\u5e83\u3044\u5206\u91ce\u3067\u4f7f\u308f\u308c\u3066\u3044\u307e\u3057\u305f\u3002<\/p>\n<p>\u30de\u30fc\u30b8\u30f3\u6700\u5927\u5316\u3068\u3044\u3046\u8003\u3048\u65b9\u3001\u30ab\u30fc\u30cd\u30eb\u6cd5\u3068\u3044\u3046\u975e\u7dda\u5f62\u3078\u306e\u62e1\u5f35\u306a\u3069\u304c\u809d\u3067\u3059\u304c\u3001scikit-learn\u3092\u4f7f\u3046\u3053\u3068\u3067\u7c21\u5358\u306b\u4f7f\u3046\u3053\u3068\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002\u8a73\u3057\u304f\u89e3\u8aac\u3092\u77e5\u308a\u305f\u3044\u65b9\u306f\u3001\u4ee5\u4e0b\u306ePDF\u304c\u975e\u5e38\u306b\u4e01\u5be7\u3067\u304a\u3059\u3059\u3081\u3067\u3059\uff08\u8981\uff1a\u5927\u5b66\u6570\u5b66\uff09<\/p>\n\n<p>\u30de\u30fc\u30b8\u30f3\u6700\u5927\u5316\u306b\u3064\u3044\u3066\u6982\u8981\u3092\u77e5\u308a\u305f\u3044\u65b9\u306f\u4ee5\u4e0b\u306e\u30da\u30fc\u30b8\u304c\u308f\u304b\u308a\u3084\u3059\u3044\u306e\u3067\u304a\u3059\u3059\u3081\u3067\u3059\u3002<\/p>\n\n<p>\u307e\u305f\u3001<a href=\"https:\/\/lp.sejuku.net\/lp1_blog_01\/?cid=ai_btn1_64372\">\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u306e\u30de\u30f3\u30c4\u30fc\u30de\u30f3\u30ec\u30c3\u30b9\u30f3<\/a>\u3067\u3082\u3001SVM\u306b\u3064\u3044\u3066\u308f\u304b\u308a\u3084\u3059\u3044\u89e3\u8aac\u304c\u3067\u304d\u307e\u3059\uff01\u6c17\u306b\u306a\u308b\u65b9\u306f\u4e0a\u306e\u30ea\u30f3\u30af\u3092\u30c1\u30a7\u30c3\u30af\uff01<\/p>\n<h2>SVM\u306e\u4f7f\u3044\u65b9<\/h2>\n<h3>\u76ee\u7684<\/h3>\n<p>SVM\u306b\u3088\u308b\u30af\u30e9\u30b9\u5206\u985e\u306b\u3064\u3044\u3066\u52c9\u5f37\u3057\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3002\u305d\u306e\u305f\u3081\u306b\u3001\u3053\u3053\u3067\u306f<b>digits\u3068\u3044\u3046\u624b\u66f8\u304d\u6570\u5b57\u8a8d\u8b58\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8<\/b>\u3092\u4f7f\u3044\u3001\u30af\u30e9\u30b9\u5206\u985e\u30bf\u30b9\u30af\u3092\u884c\u3044\u307e\u3059\u3002<\/p>\n<p>0~9\u307e\u3067\u306e\u6570\u5b57\u3092\u624b\u66f8\u304d\u3057\u305f8&#215;8\u30d4\u30af\u30bb\u30eb\u306e\u30c7\u30fc\u30bf\u304c\u53ce\u3081\u3089\u308c\u3066\u3044\u307e\u3059\u3002\u3053\u3053\u3067\u306fSVM\u3092\u4f7f\u3063\u3066\u3053\u306e\u753b\u50cf\u30c7\u30fc\u30bf\u304b\u3089\u30e9\u30d9\u30eb\uff080~9\u306e\u6570\u5b57\uff09\u3092\u4e88\u6e2c\u3057\u307e\u3059\u3002<\/p>\n<h3>\u6e96\u5099<\/h3>\n<p>\u307e\u305a\u306f\u30e9\u30a4\u30d6\u30e9\u30ea\u3092import\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre class=\"lang:python decode:true\">from sklearn import datasets\r\nimport numpy as np\r\nimport matplotlib.pyplot as plt\r\nfrom sklearn.svm import SVC\r\nfrom sklearn.svm import SVR\r\nfrom sklearn.model_selection import train_test_split,GridSearchCV<\/pre>\n<p>SVC\u304c\u3053\u3053\u3067\u306e\u4e3b\u5f79\u3067\u3059\u3002SVM\u3067\u30af\u30e9\u30b9\u5206\u985e\u3092\u884c\u3046\u305f\u3081\u306e\u30af\u30e9\u30b9\u3067\u3059\u306d\u3002\u3082\u3057\u3082SVM\u3067\u56de\u5e30\u3092\u884c\u3044\u305f\u3044\u5834\u5408\u306f\u305d\u306e\u4e0b\u306eSVR\u3092import\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u6b21\u306f\u30c7\u30fc\u30bf\u306e\u8aad\u307f\u8fbc\u307f\u3067\u3059\u3002<\/p>\n<pre class=\"lang:python decode:true\">mnist = datasets.load_digits()\r\ntrain_images, test_images, train_labels, test_labels \r\n    = train_test_split(mnist.data, mnist.target, test_size=0.2)<\/pre>\n<p>\u30c7\u30fc\u30bf\u306e\u5206\u5272\uff08\u6559\u5e2b\u30c7\u30fc\u30bf\u3084\u30c6\u30b9\u30c8\u30c7\u30fc\u30bf\u3092\u4f5c\u308b\uff09\u306b\u306f\u3001\u666e\u901anp.array\u306e\u30b9\u30e9\u30a4\u30b9\u3092\u4f7f\u3044\u307e\u3059\u3002\u30b7\u30e3\u30c3\u30d5\u30eb\u3057\u3066\u304b\u3089\u30b9\u30e9\u30a4\u30b9\u306740\uff05\u308420\uff05\u306e\u30c7\u30fc\u30bf\u3092\u30c6\u30b9\u30c8\u30c7\u30fc\u30bf\u3068\u3059\u308b\u306e\u3067\u3059\u304c\u3001skleran\u306etrain_test-split\u95a2\u6570\u3092\u4f7f\u3046\u3053\u3068\u3067\u697d\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u4eca\u8aad\u307f\u8fbc\u3093\u3060\u30c7\u30fc\u30bf\u3092\u898b\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre class=\"lang:default decode:true\">plt.figure(figsize=(15,15))\r\nfor i in range(25):\r\n    plt.subplot(5,5,i+1)\r\n    plt.xticks([])\r\n    plt.yticks([])\r\n    plt.imshow(train_images[i].reshape((8,8)), cmap=plt.cm.binary)\r\n    plt.xlabel(train_labels[i])<\/pre>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-65538\" src=\"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2018\/07\/svm1.png\" alt=\"\" width=\"854\" height=\"847\" srcset=\"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2018\/07\/svm1.png 854w, https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2018\/07\/svm1-150x150.png 150w, https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2018\/07\/svm1-300x298.png 300w, https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2018\/07\/svm1-640x635.png 640w, https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2018\/07\/svm1-810x803.png 810w\" sizes=\"(max-width: 854px) 100vw, 854px\" \/><\/p>\n<h3>\u30e2\u30c7\u30eb\u306e\u5b66\u7fd2<\/h3>\n<pre class=\"lang:python decode:true\">clf = SVC(verbose=True, random_state=2525)\r\nclf.fit(train_images, train_labels)<\/pre>\n<p>[\u51fa\u529b\u7d50\u679c]<\/p>\n<pre class=\"lang:default decode:true\">[LibSVM]\r\nSVC(C=1.0, cache_size=200, class_weight=None, coef0=0.0,\r\n  decision_function_shape='ovr', degree=3, gamma='auto', kernel='rbf',\r\n  max_iter=-1, probability=False, random_state=2525, shrinking=True,\r\n  tol=0.001, verbose=True)<\/pre>\n<p>\u30e2\u30c7\u30eb\u306e\u4f5c\u6210\u304b\u3089\u5b66\u7fd2\u307e\u3067\u306e\u6d41\u308c\u3082skleran\u306a\u30892step\u3067\u7c21\u5358\u3067\u3059\u3002\u5b9f\u9a13\u306b\u518d\u73fe\u6027\u3092\u3082\u305f\u305b\u305f\u3044\u5834\u5408\u306f\u3001random_state\u306b\u9069\u5f53\u306a\u5024\u3092\u6e21\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u3053\u306erandom_state\u3092\u6307\u5b9a\u3057\u306a\u3044\u3068\u3001\u9069\u5f53\u306a\u4e71\u6570\u30b7\u30fc\u30c9\u304c\u4f7f\u308f\u308c\u308b\u306e\u3067\u518d\u73fe\u304c\u96e3\u3057\u304f\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u307e\u305f\u3001sklearn\u306eSVM\u3067\u306f\u3001\u6709\u540d\u306aSVM\u30e9\u30a4\u30d6\u30e9\u30ea\u3067\u3042\u308bLibSVM\u304c\u4f7f\u308f\u308c\u307e\u3059\u3002\u3053\u308c\u306fC\u3067\u66f8\u304b\u308c\u3066\u3044\u308b\u306e\u3067\u3001\u975e\u5e38\u306b\u901f\u3044\u306e\u304c\u7279\u5fb4\u3067\u3059\u3002<\/p>\n<h3>\u30e2\u30c7\u30eb\u306e\u8a55\u4fa1<\/h3>\n<pre class=\"lang:python decode:true\">predicted_labels = clf.predict(test_images)\r\npredicted_labels<\/pre>\n<p>[\u51fa\u529b\u7d50\u679c]<\/p>\n<pre class=\"lang:default decode:true \">array([3, 0, 3, 3, 3, 3, 3, 3, 1, 3, 0, 3, 1, 4, 4, 0, 3, 3, 3, 3, 4, 6,\r\n       3, 7, 9, 8, 6, 4, 3, 3, 3, 3, 3, 2, 3, 2, 0, 3, 0, 1, 1, 3, 0, 3,\r\n       2, 6, 3, 3, 3, 0, 3, 3, 8, 3, 3, 3, 3, 3, 4, 3, 3, 3, 3, 3, 3, 4,\r\n       6, 3, 6, 3, 3, 3, 1, 7, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 0, 3,\r\n       6, 3, 9, 3, 0, 3, 3, 1, 1, 3, 0, 3, 3, 3, 3, 3, 3, 3, 8, 7, 7, 3,\r\n       3, 3, 3, 3, 3, 1, 8, 3, 3, 5, 3, 6, 3, 9, 3, 6, 3, 3, 3, 3, 3, 8,\r\n       3, 3, 6, 3, 3, 3, 1, 3, 1, 9, 3, 3, 8, 7, 3, 2, 1, 3, 4, 3, 3, 3,\r\n       3, 3, 3, 3, 3, 3, 3, 3, 4, 3, 3, 3, 7, 9, 3, 3, 3, 3, 3, 3, 0, 3,\r\n       3, 1, 3, 3, 3, 1, 3, 5, 6, 3, 3, 3, 1, 3, 3, 2, 3, 3, 3, 3, 3, 4,\r\n       3, 1, 7, 3, 3, 3, 3, 3, 0, 1, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 1, 3,\r\n       0, 3, 3, 3, 3, 9, 4, 8, 6, 3, 0, 3, 6, 6, 7, 3, 3, 7, 3, 6, 3, 3,\r\n       3, 3, 3, 3, 3, 3, 7, 3, 1, 3, 9, 3, 3, 3, 3, 6, 3, 3, 3, 0, 6, 3,\r\n       2, 4, 3, 5, 3, 3, 3, 3, 3, 4, 3, 6, 6, 3, 3, 3, 2, 3, 1, 7, 3, 3,\r\n       0, 2, 5, 4, 3, 3, 3, 0, 3, 9, 3, 3, 9, 2, 1, 0, 3, 3, 3, 3, 3, 3,\r\n       3, 3, 3, 3, 3, 3, 6, 4, 3, 9, 2, 4, 3, 6, 3, 3, 3, 4, 3, 3, 3, 6,\r\n       4, 1, 3, 3, 3, 3, 3, 3, 9, 3, 3, 3, 8, 3, 4, 6, 3, 3, 3, 3, 3, 6,\r\n       4, 3, 7, 3, 3, 3, 4, 3])<\/pre>\n<p>\u6a5f\u68b0\u5b66\u7fd2\u30e2\u30c7\u30eb\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9.predict\u3092\u884c\u3046\u3053\u3068\u3067\u3001\u30c6\u30b9\u30c8\u30c7\u30fc\u30bf\u306b\u5bfe\u3057\u3066\u4e88\u6e2c\u30e9\u30d9\u30eb\u3092\u8a08\u7b97\u3067\u304d\u307e\u3059\u3002\u3053\u306e\u4e88\u6e2c\u30e9\u30d9\u30eb\u304c\u3069\u306e\u304f\u3089\u3044\u3042\u3063\u3066\u3044\u308b\u306e\u304b\u3082\u78ba\u304b\u3081\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre class=\"lang:python decode:true\">print(f\"acc: {clf.score(test_images, test_labels)}\")\r\n# acc: 0.4388888888888889<\/pre>\n<p>\u6b63\u7b54\u738743\uff05\u3001\u3053\u308c\u306f\u304b\u306a\u308a\u9177\u3044\u6570\u5b57\u3067\u3059\u306d\u3002<\/p>\n<p>\u4e88\u6e2c\u7d50\u679c\u3092\u53ef\u8996\u5316\u3057\u3066\u307f\u307e\u3059\u3002<\/p>\n<pre class=\"lang:python decode:true\">plt.figure(figsize=(15,15))\r\n\r\n# \u5148\u982d\u304b\u308925\u679a\u30c6\u30b9\u30c8\u30c7\u30fc\u30bf\u3092\u53ef\u8996\u5316\r\nfor i in range(25):\r\n    \r\n    # \u753b\u50cf\u3092\u4f5c\u6210\r\n    plt.subplot(5,5,i+1)\r\n    plt.xticks([])\r\n    plt.yticks([])\r\n    plt.imshow(test_images[i].reshape((8,8)), cmap=plt.cm.binary)\r\n    \r\n    # \u4eca\u30d7\u30ed\u30c3\u30c8\u3092\u4f5c\u3063\u3066\u3044\u308b\u753b\u50cf\u30c7\u30fc\u30bf\u306e\u4e88\u6e2c\u30e9\u30d9\u30eb\u3068\u6b63\u89e3\u30e9\u30d9\u30eb\u3092\u30bb\u30c3\u30c8\r\n    predicted_label = predicted_labels[i]\r\n    true_label      = test_labels[i]\r\n    \r\n    # \u4e88\u6e2c\u30e9\u30d9\u30eb\u304c\u6b63\u89e3\u306a\u3089\u7dd1\u3001\u4e0d\u6b63\u89e3\u306a\u3089\u8d64\u8272\u3092\u4f7f\u3046\r\n    if predicted_label == true_label:\r\n        color = 'green' # True label color\r\n    else:\r\n        color = 'red'   # False label color\r\n    plt.xlabel(\"{} True({})\".format(predicted_label, \r\n                                  true_label),\r\n                                  color=color)<\/pre>\n<p>&nbsp;<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-65541\" src=\"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2018\/07\/svm3.png\" alt=\"\" width=\"854\" height=\"847\" srcset=\"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2018\/07\/svm3.png 854w, https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2018\/07\/svm3-150x150.png 150w, https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2018\/07\/svm3-300x298.png 300w, https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2018\/07\/svm3-640x635.png 640w, https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2018\/07\/svm3-810x803.png 810w\" sizes=\"(max-width: 854px) 100vw, 854px\" \/><\/p>\n<p>\u7dd1\u304c\u30c6\u30b9\u30c8\u30e9\u30d9\u30eb\u3068\u4e88\u6e2c\u30e9\u30d9\u30eb\u304c\u540c\u3058\u3060\u3063\u305f\u3082\u306e\u3001\u8d64\u304c\u9593\u9055\u3063\u3066\u3044\u305f\u3082\u306e\u3067\u3059\u3002<\/p>\n<p>\u3053\u306e\u9177\u3044\u7d50\u679c\u3092\u6b21\u306e\u30cf\u30a4\u30d1\u30fc\u30d1\u30e9\u30e1\u30fc\u30bf\u63a2\u7d22\u3067\u3069\u3053\u307e\u3067\u5411\u4e0a\u3055\u305b\u3089\u308c\u308b\u304b\u3001\u78ba\u8a8d\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<h2>\u30d1\u30e9\u30e1\u30fc\u30bf\u30c1\u30e5\u30fc\u30cb\u30f3\u30b0<\/h2>\n<p>\u3053\u3053\u3067\u306f\u7c21\u5358\u306b\u3001\u30b0\u30ea\u30c3\u30c9\u30b5\u30fc\u30c1\u3092\u4f7f\u3063\u3066\u300c\u3044\u3044\u30cf\u30a4\u30d1\u30fc\u30d1\u30e9\u30e1\u30fc\u30bf\u3092\u898b\u3064\u3051\u308b\u300d\u63a2\u7d22\u3092\u884c\u3044\u307e\u3059\u3002search_params\u304c\u63a2\u7d22\u7a7a\u9593\u3067\u3059\u3002<\/p>\n<p>\u3053\u3053\u3067\u306fkernel\u3068C\u306b\u3064\u3044\u3066\u63a2\u7d22\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"lang:python decode:true\">search_params = [\r\n    {\r\n        \"kernel\"          : [\"rbf\",\"linear\",\"sigmoid\"],\r\n        \"C\"               : [10**i for i in range(-10,10)],\r\n        \"random_state\"    : [2525],\r\n    }\r\n]\r\ngs = GridSearchCV(SVC(), \r\n                  search_params, \r\n                  cv = 3,\r\n                  verbose=True, \r\n                  n_jobs=-1)\r\ngs.fit(train_images, train_labels)\r\n\r\nprint(gs.best_estimator_)<\/pre>\n<p>[\u51fa\u529b\u7d50\u679c]<\/p>\n<pre class=\"lang:default decode:true\">Fitting 3 folds for each of 60 candidates, totalling 180 fits\r\n[Parallel(n_jobs=-1)]: Done  18 tasks      | elapsed:    0.3s\r\nSVC(C=0.01, cache_size=200, class_weight=None, coef0=0.0,\r\n  decision_function_shape='ovr', degree=3, gamma='auto', kernel='linear',\r\n  max_iter=-1, probability=False, random_state=2525, shrinking=True,\r\n  tol=0.001, verbose=False)\r\n[Parallel(n_jobs=-1)]: Done 180 out of 180 | elapsed:    1.8s finished\r\n<\/pre>\n<p>GridSearchCV\u306ecv\u5f15\u6570\u306f\u3001\u30af\u30ed\u30b9\u30d0\u30ea\u30c7\u30fc\u30b7\u30e7\u30f3\u306e\u969b\u306b\u30c7\u30fc\u30bf\u3092\u4f55\u500b\u306b\u5206\u5272\u3059\u308b\u304b\u3092\u6c7a\u3081\u307e\u3059\u3002\u307e\u305f\u3001verbose=True\u3068\u3059\u308b\u3053\u3068\u3067\u30ed\u30b0\u3092\u8868\u793a\u3057\u3066\u304f\u308c\u308b\u306e\u3067\u3001\u6642\u9593\u304c\u304b\u304b\u308a\u305d\u3046\u306a\u63a2\u7d22\u3092\u884c\u3046\u5834\u5408\u306fTrue\u306b\u3059\u308b\u3053\u3068\u3092\u5fd8\u308c\u306a\u3044\u3088\u3046\u306b\uff01<\/p>\n<p>\u6700\u5f8c\u306b\u3001n_jobs\u3067\u4e26\u5217\u306b\u52d5\u4f5c\u3055\u305b\u307e\u3059\u3002\u4f8b\u3048\u3070\u30018\u30b3\u30a216\u30b9\u30ec\u30c3\u30c9\u306eCPU\u3092\u4f7f\u3063\u3066\u3044\u308b\u306a\u3089\u3001\u3053\u308c\u3089\u306e\u30b9\u30ec\u30c3\u30c9\u3059\u3079\u3066\u3092\u4f7f\u3063\u3066GridSearch\u3092\u884c\u3046\u3088\u3046\u306b\u3059\u308b\u8a2d\u5b9a\u304c\u3001n_jobs=-1\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"lang:python decode:true\">print(gs.best_estimator_.score(test_images,test_labels))\r\npredicted_label = gs.best_estimator_.predict(test_images)\r\n\r\n# 0.9833333333333333<\/pre>\n<p>\u6b63\u7b54\u7387\u304c98.3\uff05\u307e\u3067\u5927\u304d\u304f\u5411\u4e0a\u3057\u307e\u3057\u305f\u3002\u30b0\u30ea\u30c3\u30c9\u30b5\u30fc\u30c1\u3067\u3044\u3044\u30cf\u30a4\u30d1\u30fc\u30d1\u30e9\u30e1\u30fc\u30bf\u3092\u898b\u3064\u3051\u305f\u6210\u679c\u304c\u51fa\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u3061\u306a\u307f\u306b\u5148\u7a0b\u3068\u540c\u3058\u30b3\u30fc\u30c9\u3067\u53ef\u8996\u5316\u3057\u305f\u3082\u306e\u304c\u4ee5\u4e0b\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-65544\" src=\"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2018\/07\/svm5.png\" alt=\"\" width=\"854\" height=\"847\" srcset=\"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2018\/07\/svm5.png 854w, https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2018\/07\/svm5-150x150.png 150w, https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2018\/07\/svm5-300x298.png 300w, https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2018\/07\/svm5-640x635.png 640w, https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2018\/07\/svm5-810x803.png 810w\" sizes=\"(max-width: 854px) 100vw, 854px\" \/><\/p>\n<p>\u898b\u3048\u3066\u3044\u308b\u7bc4\u56f2\u306e\u753b\u50cf\u306f\u3059\u3079\u3066\u6b63\u3057\u304f\u4e88\u6e2c\u3067\u304d\u3066\u3044\u307e\u3059\u306d\u3002Deep Learning\u30fb\u30cb\u30e5\u30fc\u30e9\u30eb\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u3092\u4f7f\u308f\u306a\u3044\u3067\u3082\u3001\u3053\u3053\u307e\u3067\u9ad8\u7cbe\u5ea6\u306b\u30af\u30e9\u30b9\u5206\u985e\u304c\u3067\u304d\u308b\u3053\u3068\u304c\u308f\u304b\u308a\u307e\u3057\u305f\u3002<\/p>\n<p>\u6642\u9593\u7684\u6210\u7d04\u3084\u6c42\u3081\u3089\u308c\u3066\u3044\u308b\u6027\u80fd\u3092\u8003\u3048\u3066\u3001SVM\u3084Deep Learning\u3092\u4f7f\u3044\u3053\u306a\u305b\u308b\u3068\u30d7\u30ed\u3063\u307d\u3044\u3067\u3059\u3002<\/p>\n<h2>\u307e\u3068\u3081<\/h2>\n<p>\u3053\u306e\u8a18\u4e8b\u3067\u306fSVM\uff08\u30b5\u30dd\u30fc\u30c8\u30d9\u30af\u30c8\u30eb\u30de\u30b7\u30f3\uff09\u306b\u3064\u3044\u3066\u7d39\u4ecb\u3057\u3001\u3053\u308c\u3092\u4f7f\u3063\u305f\u30af\u30e9\u30b9\u5206\u985e\u3092\u884c\u3044\u307e\u3057\u305f\u3002sklearn\u3092\u4f7f\u3063\u3066\u3044\u308b\u306e\u3067\u7c21\u5358\u306b\u4f7f\u3048\u307e\u3057\u305f\u304c\u3001\u5b9f\u969b\u306b\u81ea\u5206\u3067\u5b9f\u88c5\u3059\u308b\u3068\u975e\u5e38\u306b\u5927\u5909\u306a\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\u3067\u3059\u3002<\/p>\n<p>\u307e\u305f\u3001SVM\u306b\u306f\u30d1\u30e9\u30e1\u30fc\u30bf\u304c\u81a8\u5927\u306b\u3042\u308a\u3001\u4f8b\u3048\u3070\u300c\u3069\u306e\u30ab\u30fc\u30cd\u30eb\u300d\u3092\u9078\u3079\u3070\u3044\u3044\u306e\u304b\u3001\u306a\u3069\u306f\u4ee5\u5916\u306b\u30c7\u30fc\u30bf\u306e\u7279\u6027\u3067\u30a2\u30bf\u30ea\u3092\u4ed8\u3051\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u3082\u3063\u3068\u8a73\u3057\u304fSVM\u306b\u3064\u3044\u3066\u52c9\u5f37\u3057\u305f\u3044\u3068\u304d\u306f\u3001<a href=\"https:\/\/lp.sejuku.net\/lp1_blog_01\/?cid=ai_btn2_64372\">\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u306e\u30de\u30f3\u30c4\u30fc\u30de\u30f3\u30ec\u30c3\u30b9\u30f3<\/a>\u3092\u8a66\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Deep Learning\u304c\u6d41\u884c\u308b\u524d\u306b\u5927\u6d41\u884c\u3057\u3066\u3044\u305f\u6a5f\u68b0\u5b66\u7fd2\u624b\u6cd5\u306eSVM\uff08\u30b5\u30dd\u30fc\u30c8\u30d9\u30af\u30c8\u30eb\u30de\u30b7\u30f3\uff09\u3092\u3054\u5b58\u77e5\u3067\u3059\u304b\uff1f \u9ad8\u901f\u3067\u3001\u5c11\u306a\u3044\u30c7\u30fc\u30bf\u3067\u3082\u826f\u3044\u6027\u80fd\u304c\u671f\u5f85\u3067\u304d\u3001\u30c7\u30fc\u30bf\u89e3\u6790\u306e\u5b9f\u52d9\u3067\u3082\u4f7f\u3048\u308b\u5206\u985e\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\u3060\u3068\u8a00\u3048\u307e\u3059\u3002\u3053\u3053 [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":85495,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"inline_featured_image":false,"swell_btn_cv_data":"","footnotes":""},"categories":[2228],"tags":[1281,49],"class_list":["post-64372","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ai","tag-ai","tag-python"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>\u6a5f\u68b0\u5b66\u7fd2\u624b\u6cd5\u300cSVM\uff08\u30b5\u30dd\u30fc\u30c8\u30d9\u30af\u30c8\u30eb\u30de\u30b7\u30f3\uff09\u300d\u3067\u30af\u30e9\u30b9\u5206\u985e\u306b\u6311\u6226 | \u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0<\/title>\n<meta name=\"description\" content=\"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u300c \u6a5f\u68b0\u5b66\u7fd2\u624b\u6cd5\u300cSVM\uff08\u30b5\u30dd\u30fc\u30c8\u30d9\u30af\u30c8\u30eb\u30de\u30b7\u30f3\uff09\u300d\u3067\u30af\u30e9\u30b9\u5206\u985e\u306b\u6311\u6226 \u300d\u306b\u3064\u3044\u3066\u3001\u8ab0\u3067\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u306b\u89e3\u8aac\u3057\u307e\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3092\u8aad\u3081\u3070\u3001\u3042\u306a\u305f\u306e\u60a9\u307f\u304c\u89e3\u6c7a\u3059\u308b\u3060\u3051\u3058\u3083\u306a\u304f\u3001\u65b0\u305f\u306a\u6c17\u4ed8\u304d\u3082\u767a\u898b\u3067\u304d\u308b\u3053\u3068\u3067\u3057\u3087\u3046\u3002\u304a\u60a9\u307f\u306e\u65b9\u306f\u305c\u3072\u3054\u4e00\u8aad\u304f\u3060\u3055\u3044\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:\/\/www.sejuku.net\/blog\/64372\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u6a5f\u68b0\u5b66\u7fd2\u624b\u6cd5\u300cSVM\uff08\u30b5\u30dd\u30fc\u30c8\u30d9\u30af\u30c8\u30eb\u30de\u30b7\u30f3\uff09\u300d\u3067\u30af\u30e9\u30b9\u5206\u985e\u306b\u6311\u6226 | \u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0\" \/>\n<meta property=\"og:description\" content=\"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u300c \u6a5f\u68b0\u5b66\u7fd2\u624b\u6cd5\u300cSVM\uff08\u30b5\u30dd\u30fc\u30c8\u30d9\u30af\u30c8\u30eb\u30de\u30b7\u30f3\uff09\u300d\u3067\u30af\u30e9\u30b9\u5206\u985e\u306b\u6311\u6226 \u300d\u306b\u3064\u3044\u3066\u3001\u8ab0\u3067\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u306b\u89e3\u8aac\u3057\u307e\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3092\u8aad\u3081\u3070\u3001\u3042\u306a\u305f\u306e\u60a9\u307f\u304c\u89e3\u6c7a\u3059\u308b\u3060\u3051\u3058\u3083\u306a\u304f\u3001\u65b0\u305f\u306a\u6c17\u4ed8\u304d\u3082\u767a\u898b\u3067\u304d\u308b\u3053\u3068\u3067\u3057\u3087\u3046\u3002\u304a\u60a9\u307f\u306e\u65b9\u306f\u305c\u3072\u3054\u4e00\u8aad\u304f\u3060\u3055\u3044\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.sejuku.net\/blog\/64372\" \/>\n<meta property=\"og:site_name\" content=\"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/sejuku2013\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/sejuku2013\/\" \/>\n<meta property=\"article:published_time\" content=\"1970-01-01T00:00:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-05-06T02:50:01+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2018\/07\/560a903974c7956c2c1d93e615d47db0.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"720\" \/>\n\t<meta property=\"og:image:height\" content=\"405\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u7de8\u96c6\u90e8\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@https:\/\/twitter.com\/samuraijuku\" \/>\n<meta name=\"twitter:site\" content=\"@samuraijuku\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/64372#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/64372\"},\"author\":{\"name\":\"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u7de8\u96c6\u90e8\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#\\\/schema\\\/person\\\/e8ca7fd09857a736a25e6b4455a3ab61\"},\"headline\":\"\u6a5f\u68b0\u5b66\u7fd2\u624b\u6cd5\u300cSVM\uff08\u30b5\u30dd\u30fc\u30c8\u30d9\u30af\u30c8\u30eb\u30de\u30b7\u30f3\uff09\u300d\u3067\u30af\u30e9\u30b9\u5206\u985e\u306b\u6311\u6226\",\"datePublished\":\"1970-01-01T00:00:00+00:00\",\"dateModified\":\"2024-05-06T02:50:01+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/64372\"},\"wordCount\":106,\"publisher\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/64372#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/07\\\/560a903974c7956c2c1d93e615d47db0.jpg\",\"keywords\":[\"AI\",\"python\"],\"articleSection\":[\"AI\uff08\u4eba\u5de5\u77e5\u80fd\uff09\"],\"inLanguage\":\"ja\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/64372\",\"url\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/64372\",\"name\":\"\u6a5f\u68b0\u5b66\u7fd2\u624b\u6cd5\u300cSVM\uff08\u30b5\u30dd\u30fc\u30c8\u30d9\u30af\u30c8\u30eb\u30de\u30b7\u30f3\uff09\u300d\u3067\u30af\u30e9\u30b9\u5206\u985e\u306b\u6311\u6226 | \u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/64372#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/64372#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/07\\\/560a903974c7956c2c1d93e615d47db0.jpg\",\"datePublished\":\"1970-01-01T00:00:00+00:00\",\"dateModified\":\"2024-05-06T02:50:01+00:00\",\"description\":\"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u300c \u6a5f\u68b0\u5b66\u7fd2\u624b\u6cd5\u300cSVM\uff08\u30b5\u30dd\u30fc\u30c8\u30d9\u30af\u30c8\u30eb\u30de\u30b7\u30f3\uff09\u300d\u3067\u30af\u30e9\u30b9\u5206\u985e\u306b\u6311\u6226 \u300d\u306b\u3064\u3044\u3066\u3001\u8ab0\u3067\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u306b\u89e3\u8aac\u3057\u307e\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3092\u8aad\u3081\u3070\u3001\u3042\u306a\u305f\u306e\u60a9\u307f\u304c\u89e3\u6c7a\u3059\u308b\u3060\u3051\u3058\u3083\u306a\u304f\u3001\u65b0\u305f\u306a\u6c17\u4ed8\u304d\u3082\u767a\u898b\u3067\u304d\u308b\u3053\u3068\u3067\u3057\u3087\u3046\u3002\u304a\u60a9\u307f\u306e\u65b9\u306f\u305c\u3072\u3054\u4e00\u8aad\u304f\u3060\u3055\u3044\u3002\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/64372#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/64372\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/64372#primaryimage\",\"url\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/07\\\/560a903974c7956c2c1d93e615d47db0.jpg\",\"contentUrl\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/07\\\/560a903974c7956c2c1d93e615d47db0.jpg\",\"width\":720,\"height\":405},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/64372#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u6a5f\u68b0\u5b66\u7fd2\u624b\u6cd5\u300cSVM\uff08\u30b5\u30dd\u30fc\u30c8\u30d9\u30af\u30c8\u30eb\u30de\u30b7\u30f3\uff09\u300d\u3067\u30af\u30e9\u30b9\u5206\u985e\u306b\u6311\u6226\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/\",\"name\":\"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0\",\"description\":\"\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u5b66\u7fd2\u306e\u3059\u3079\u3066\u304c\u30b3\u30b3\u306b\u3002\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ja\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#organization\",\"name\":\"\u682a\u5f0f\u4f1a\u793eSAMURAI\",\"url\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/07\\\/logo.png\",\"contentUrl\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/07\\\/logo.png\",\"width\":600,\"height\":600,\"caption\":\"\u682a\u5f0f\u4f1a\u793eSAMURAI\"},\"image\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/sejuku2013\",\"https:\\\/\\\/x.com\\\/samuraijuku\",\"https:\\\/\\\/www.youtube.com\\\/channel\\\/UCCFOQO5aDK0xXam4cUQXT8g\\\/featured\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#\\\/schema\\\/person\\\/e8ca7fd09857a736a25e6b4455a3ab61\",\"name\":\"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u7de8\u96c6\u90e8\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/507c280c5c67d2c11fec4fdba20e5bf1ec2fe91f9deb42d2ec50382778b311bf?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/507c280c5c67d2c11fec4fdba20e5bf1ec2fe91f9deb42d2ec50382778b311bf?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/507c280c5c67d2c11fec4fdba20e5bf1ec2fe91f9deb42d2ec50382778b311bf?s=96&d=mm&r=g\",\"caption\":\"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u7de8\u96c6\u90e8\"},\"description\":\"\u3010\u30d7\u30ed\u30d5\u30a3\u30fc\u30eb\u3011 DX\u8a8d\u5b9a\u53d6\u5f97\u4e8b\u696d\u8005\u306b\u9078\u5b9a\u3055\u308c\u3066\u3044\u308b\u682a\u5f0f\u4f1a\u793eSAMURAI\u306e\u30de\u30fc\u30b1\u30c6\u30a3\u30f3\u30b0\u30fb\u30b3\u30df\u30e5\u30cb\u30b1\u30fc\u30b7\u30e7\u30f3\u90e8\u304c\u904b\u55b6\u3002\u300c\u8cea\u306e\u9ad8\u3044IT\u6559\u80b2\u3092\u3001\u3059\u3079\u3066\u306e\u4eba\u306b\u300d\u3092\u30df\u30c3\u30b7\u30e7\u30f3\u306b\u3001IT\u30fb\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u3092\u5b66\u3073\u59cb\u3081\u305f\u521d\u5b66\u8005\u306e\u65b9\u306b\u5411\u3051\u8a18\u4e8b\u3092\u57f7\u7b46\u3002 \u7d2f\u8a08\u6307\u5c0e\u8005\u65704\u4e075,000\u540d\u4ee5\u4e0a\u306e\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u30b9\u30af\u30fc\u30eb\u300c\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u300d\u3001\u7d2f\u8a08\u767b\u9332\u8005\u65701\u4e078,000\u4eba\u4ee5\u4e0a\u306e\u30aa\u30f3\u30e9\u30a4\u30f3\u5b66\u7fd2\u30b5\u30fc\u30d3\u30b9\u300c\u4f8d\u30c6\u30e9\u30b3\u30e4\u300d\u3067\u6271\u3046\u6559\u6750\u958b\u767a\u306e\u30ce\u30a6\u30cf\u30a6\u30012013\u5e74\u306e\u5275\u696d\u304b\u3089\u904b\u55b6\u3067\u5f97\u305f\u77e5\u898b\u306b\u57fa\u3065\u304d\u3001\u8a18\u4e8b\u306e\u57f7\u7b46\u3060\u3051\u3067\u306a\u304f\u7de8\u96c6\u30fb\u76e3\u4fee\u3082\u62c5\u5f53\u3057\u3066\u3044\u307e\u3059\u3002 \u3010\u5c02\u9580\u5206\u91ce\u3011 IT\\\/Web\u958b\u767a\\\/AI\u30fb\u30ed\u30dc\u30c3\u30c8\u958b\u767a\\\/\u30a4\u30f3\u30d5\u30e9\u958b\u767a\\\/\u30b2\u30fc\u30e0\u958b\u767a\\\/AI\\\/Web\u30c7\u30b6\u30a4\u30f3\",\"sameAs\":[\"https:\\\/\\\/www.sejuku.net\\\/\",\"https:\\\/\\\/www.facebook.com\\\/sejuku2013\\\/\",\"https:\\\/\\\/www.instagram.com\\\/samuraiengineer_official\\\/\",\"https:\\\/\\\/x.com\\\/https:\\\/\\\/twitter.com\\\/samuraijuku\",\"https:\\\/\\\/www.youtube.com\\\/channel\\\/UCCFOQO5aDK0xXam4cUQXT8g\"],\"url\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/author\\\/samurai-blog\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u6a5f\u68b0\u5b66\u7fd2\u624b\u6cd5\u300cSVM\uff08\u30b5\u30dd\u30fc\u30c8\u30d9\u30af\u30c8\u30eb\u30de\u30b7\u30f3\uff09\u300d\u3067\u30af\u30e9\u30b9\u5206\u985e\u306b\u6311\u6226 | \u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0","description":"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u300c \u6a5f\u68b0\u5b66\u7fd2\u624b\u6cd5\u300cSVM\uff08\u30b5\u30dd\u30fc\u30c8\u30d9\u30af\u30c8\u30eb\u30de\u30b7\u30f3\uff09\u300d\u3067\u30af\u30e9\u30b9\u5206\u985e\u306b\u6311\u6226 \u300d\u306b\u3064\u3044\u3066\u3001\u8ab0\u3067\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u306b\u89e3\u8aac\u3057\u307e\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3092\u8aad\u3081\u3070\u3001\u3042\u306a\u305f\u306e\u60a9\u307f\u304c\u89e3\u6c7a\u3059\u308b\u3060\u3051\u3058\u3083\u306a\u304f\u3001\u65b0\u305f\u306a\u6c17\u4ed8\u304d\u3082\u767a\u898b\u3067\u304d\u308b\u3053\u3068\u3067\u3057\u3087\u3046\u3002\u304a\u60a9\u307f\u306e\u65b9\u306f\u305c\u3072\u3054\u4e00\u8aad\u304f\u3060\u3055\u3044\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:\/\/www.sejuku.net\/blog\/64372","og_locale":"ja_JP","og_type":"article","og_title":"\u6a5f\u68b0\u5b66\u7fd2\u624b\u6cd5\u300cSVM\uff08\u30b5\u30dd\u30fc\u30c8\u30d9\u30af\u30c8\u30eb\u30de\u30b7\u30f3\uff09\u300d\u3067\u30af\u30e9\u30b9\u5206\u985e\u306b\u6311\u6226 | \u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0","og_description":"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u300c \u6a5f\u68b0\u5b66\u7fd2\u624b\u6cd5\u300cSVM\uff08\u30b5\u30dd\u30fc\u30c8\u30d9\u30af\u30c8\u30eb\u30de\u30b7\u30f3\uff09\u300d\u3067\u30af\u30e9\u30b9\u5206\u985e\u306b\u6311\u6226 \u300d\u306b\u3064\u3044\u3066\u3001\u8ab0\u3067\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u306b\u89e3\u8aac\u3057\u307e\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3092\u8aad\u3081\u3070\u3001\u3042\u306a\u305f\u306e\u60a9\u307f\u304c\u89e3\u6c7a\u3059\u308b\u3060\u3051\u3058\u3083\u306a\u304f\u3001\u65b0\u305f\u306a\u6c17\u4ed8\u304d\u3082\u767a\u898b\u3067\u304d\u308b\u3053\u3068\u3067\u3057\u3087\u3046\u3002\u304a\u60a9\u307f\u306e\u65b9\u306f\u305c\u3072\u3054\u4e00\u8aad\u304f\u3060\u3055\u3044\u3002","og_url":"https:\/\/www.sejuku.net\/blog\/64372","og_site_name":"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0","article_publisher":"https:\/\/www.facebook.com\/sejuku2013","article_author":"https:\/\/www.facebook.com\/sejuku2013\/","article_published_time":"1970-01-01T00:00:00+00:00","article_modified_time":"2024-05-06T02:50:01+00:00","og_image":[{"width":720,"height":405,"url":"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2018\/07\/560a903974c7956c2c1d93e615d47db0.jpg","type":"image\/jpeg"}],"author":"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u7de8\u96c6\u90e8","twitter_card":"summary_large_image","twitter_creator":"@https:\/\/twitter.com\/samuraijuku","twitter_site":"@samuraijuku","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.sejuku.net\/blog\/64372#article","isPartOf":{"@id":"https:\/\/www.sejuku.net\/blog\/64372"},"author":{"name":"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u7de8\u96c6\u90e8","@id":"https:\/\/www.sejuku.net\/blog\/#\/schema\/person\/e8ca7fd09857a736a25e6b4455a3ab61"},"headline":"\u6a5f\u68b0\u5b66\u7fd2\u624b\u6cd5\u300cSVM\uff08\u30b5\u30dd\u30fc\u30c8\u30d9\u30af\u30c8\u30eb\u30de\u30b7\u30f3\uff09\u300d\u3067\u30af\u30e9\u30b9\u5206\u985e\u306b\u6311\u6226","datePublished":"1970-01-01T00:00:00+00:00","dateModified":"2024-05-06T02:50:01+00:00","mainEntityOfPage":{"@id":"https:\/\/www.sejuku.net\/blog\/64372"},"wordCount":106,"publisher":{"@id":"https:\/\/www.sejuku.net\/blog\/#organization"},"image":{"@id":"https:\/\/www.sejuku.net\/blog\/64372#primaryimage"},"thumbnailUrl":"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2018\/07\/560a903974c7956c2c1d93e615d47db0.jpg","keywords":["AI","python"],"articleSection":["AI\uff08\u4eba\u5de5\u77e5\u80fd\uff09"],"inLanguage":"ja"},{"@type":"WebPage","@id":"https:\/\/www.sejuku.net\/blog\/64372","url":"https:\/\/www.sejuku.net\/blog\/64372","name":"\u6a5f\u68b0\u5b66\u7fd2\u624b\u6cd5\u300cSVM\uff08\u30b5\u30dd\u30fc\u30c8\u30d9\u30af\u30c8\u30eb\u30de\u30b7\u30f3\uff09\u300d\u3067\u30af\u30e9\u30b9\u5206\u985e\u306b\u6311\u6226 | \u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0","isPartOf":{"@id":"https:\/\/www.sejuku.net\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.sejuku.net\/blog\/64372#primaryimage"},"image":{"@id":"https:\/\/www.sejuku.net\/blog\/64372#primaryimage"},"thumbnailUrl":"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2018\/07\/560a903974c7956c2c1d93e615d47db0.jpg","datePublished":"1970-01-01T00:00:00+00:00","dateModified":"2024-05-06T02:50:01+00:00","description":"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u300c \u6a5f\u68b0\u5b66\u7fd2\u624b\u6cd5\u300cSVM\uff08\u30b5\u30dd\u30fc\u30c8\u30d9\u30af\u30c8\u30eb\u30de\u30b7\u30f3\uff09\u300d\u3067\u30af\u30e9\u30b9\u5206\u985e\u306b\u6311\u6226 \u300d\u306b\u3064\u3044\u3066\u3001\u8ab0\u3067\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u306b\u89e3\u8aac\u3057\u307e\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3092\u8aad\u3081\u3070\u3001\u3042\u306a\u305f\u306e\u60a9\u307f\u304c\u89e3\u6c7a\u3059\u308b\u3060\u3051\u3058\u3083\u306a\u304f\u3001\u65b0\u305f\u306a\u6c17\u4ed8\u304d\u3082\u767a\u898b\u3067\u304d\u308b\u3053\u3068\u3067\u3057\u3087\u3046\u3002\u304a\u60a9\u307f\u306e\u65b9\u306f\u305c\u3072\u3054\u4e00\u8aad\u304f\u3060\u3055\u3044\u3002","breadcrumb":{"@id":"https:\/\/www.sejuku.net\/blog\/64372#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.sejuku.net\/blog\/64372"]}]},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.sejuku.net\/blog\/64372#primaryimage","url":"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2018\/07\/560a903974c7956c2c1d93e615d47db0.jpg","contentUrl":"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2018\/07\/560a903974c7956c2c1d93e615d47db0.jpg","width":720,"height":405},{"@type":"BreadcrumbList","@id":"https:\/\/www.sejuku.net\/blog\/64372#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.sejuku.net\/blog\/"},{"@type":"ListItem","position":2,"name":"\u6a5f\u68b0\u5b66\u7fd2\u624b\u6cd5\u300cSVM\uff08\u30b5\u30dd\u30fc\u30c8\u30d9\u30af\u30c8\u30eb\u30de\u30b7\u30f3\uff09\u300d\u3067\u30af\u30e9\u30b9\u5206\u985e\u306b\u6311\u6226"}]},{"@type":"WebSite","@id":"https:\/\/www.sejuku.net\/blog\/#website","url":"https:\/\/www.sejuku.net\/blog\/","name":"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0","description":"\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u5b66\u7fd2\u306e\u3059\u3079\u3066\u304c\u30b3\u30b3\u306b\u3002","publisher":{"@id":"https:\/\/www.sejuku.net\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.sejuku.net\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ja"},{"@type":"Organization","@id":"https:\/\/www.sejuku.net\/blog\/#organization","name":"\u682a\u5f0f\u4f1a\u793eSAMURAI","url":"https:\/\/www.sejuku.net\/blog\/","logo":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.sejuku.net\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2023\/07\/logo.png","contentUrl":"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2023\/07\/logo.png","width":600,"height":600,"caption":"\u682a\u5f0f\u4f1a\u793eSAMURAI"},"image":{"@id":"https:\/\/www.sejuku.net\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/sejuku2013","https:\/\/x.com\/samuraijuku","https:\/\/www.youtube.com\/channel\/UCCFOQO5aDK0xXam4cUQXT8g\/featured"]},{"@type":"Person","@id":"https:\/\/www.sejuku.net\/blog\/#\/schema\/person\/e8ca7fd09857a736a25e6b4455a3ab61","name":"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u7de8\u96c6\u90e8","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/secure.gravatar.com\/avatar\/507c280c5c67d2c11fec4fdba20e5bf1ec2fe91f9deb42d2ec50382778b311bf?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/507c280c5c67d2c11fec4fdba20e5bf1ec2fe91f9deb42d2ec50382778b311bf?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/507c280c5c67d2c11fec4fdba20e5bf1ec2fe91f9deb42d2ec50382778b311bf?s=96&d=mm&r=g","caption":"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u7de8\u96c6\u90e8"},"description":"\u3010\u30d7\u30ed\u30d5\u30a3\u30fc\u30eb\u3011 DX\u8a8d\u5b9a\u53d6\u5f97\u4e8b\u696d\u8005\u306b\u9078\u5b9a\u3055\u308c\u3066\u3044\u308b\u682a\u5f0f\u4f1a\u793eSAMURAI\u306e\u30de\u30fc\u30b1\u30c6\u30a3\u30f3\u30b0\u30fb\u30b3\u30df\u30e5\u30cb\u30b1\u30fc\u30b7\u30e7\u30f3\u90e8\u304c\u904b\u55b6\u3002\u300c\u8cea\u306e\u9ad8\u3044IT\u6559\u80b2\u3092\u3001\u3059\u3079\u3066\u306e\u4eba\u306b\u300d\u3092\u30df\u30c3\u30b7\u30e7\u30f3\u306b\u3001IT\u30fb\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u3092\u5b66\u3073\u59cb\u3081\u305f\u521d\u5b66\u8005\u306e\u65b9\u306b\u5411\u3051\u8a18\u4e8b\u3092\u57f7\u7b46\u3002 \u7d2f\u8a08\u6307\u5c0e\u8005\u65704\u4e075,000\u540d\u4ee5\u4e0a\u306e\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u30b9\u30af\u30fc\u30eb\u300c\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u300d\u3001\u7d2f\u8a08\u767b\u9332\u8005\u65701\u4e078,000\u4eba\u4ee5\u4e0a\u306e\u30aa\u30f3\u30e9\u30a4\u30f3\u5b66\u7fd2\u30b5\u30fc\u30d3\u30b9\u300c\u4f8d\u30c6\u30e9\u30b3\u30e4\u300d\u3067\u6271\u3046\u6559\u6750\u958b\u767a\u306e\u30ce\u30a6\u30cf\u30a6\u30012013\u5e74\u306e\u5275\u696d\u304b\u3089\u904b\u55b6\u3067\u5f97\u305f\u77e5\u898b\u306b\u57fa\u3065\u304d\u3001\u8a18\u4e8b\u306e\u57f7\u7b46\u3060\u3051\u3067\u306a\u304f\u7de8\u96c6\u30fb\u76e3\u4fee\u3082\u62c5\u5f53\u3057\u3066\u3044\u307e\u3059\u3002 \u3010\u5c02\u9580\u5206\u91ce\u3011 IT\/Web\u958b\u767a\/AI\u30fb\u30ed\u30dc\u30c3\u30c8\u958b\u767a\/\u30a4\u30f3\u30d5\u30e9\u958b\u767a\/\u30b2\u30fc\u30e0\u958b\u767a\/AI\/Web\u30c7\u30b6\u30a4\u30f3","sameAs":["https:\/\/www.sejuku.net\/","https:\/\/www.facebook.com\/sejuku2013\/","https:\/\/www.instagram.com\/samuraiengineer_official\/","https:\/\/x.com\/https:\/\/twitter.com\/samuraijuku","https:\/\/www.youtube.com\/channel\/UCCFOQO5aDK0xXam4cUQXT8g"],"url":"https:\/\/www.sejuku.net\/blog\/author\/samurai-blog"}]}},"_links":{"self":[{"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/posts\/64372","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/comments?post=64372"}],"version-history":[{"count":0,"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/posts\/64372\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/media\/85495"}],"wp:attachment":[{"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/media?parent=64372"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/categories?post=64372"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/tags?post=64372"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}