{"id":144,"date":"2022-10-07T01:44:00","date_gmt":"2023-09-29T14:28:35","guid":{"rendered":"https:\/\/www.silicloud.com\/ja\/blog\/index.php\/2023\/11\/30\/%e6%84%9f%e6%83%85%e5%88%86%e6%9e%90%e3%81%ae%e3%81%9f%e3%82%81%e3%81%ab%e3%83%8b%e3%83%a5%e3%83%bc%e3%83%a9%e3%83%ab%e3%83%8d%e3%83%83%e3%83%88%e3%83%af%e3%83%bc%e3%82%af%e3%82%92%e8%a8%93%e7%b7%b4\/"},"modified":"2025-07-31T21:07:42","modified_gmt":"2025-07-31T12:07:42","slug":"%e6%84%9f%e6%83%85%e5%88%86%e6%9e%90%e3%81%ae%e3%81%9f%e3%82%81%e3%81%ab%e3%83%8b%e3%83%a5%e3%83%bc%e3%83%a9%e3%83%ab%e3%83%8d%e3%83%83%e3%83%88%e3%83%af%e3%83%bc%e3%82%af%e3%82%92%e8%a8%93%e7%b7%b4","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/ja\/blog\/%e6%84%9f%e6%83%85%e5%88%86%e6%9e%90%e3%81%ae%e3%81%9f%e3%82%81%e3%81%ab%e3%83%8b%e3%83%a5%e3%83%bc%e3%83%a9%e3%83%ab%e3%83%8d%e3%83%83%e3%83%88%e3%83%af%e3%83%bc%e3%82%af%e3%82%92%e8%a8%93%e7%b7%b4\/","title":{"rendered":"\u611f\u60c5\u5206\u6790\u306e\u305f\u3081\u306b\u30cb\u30e5\u30fc\u30e9\u30eb\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u3092\u8a13\u7df4\u306e\u65b9\u6cd5"},"content":{"rendered":"<p>\u7b46\u8005\u306f\u3001Write for Donations \u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u4e00\u74b0\u3068\u3057\u3066\u3001\u5bc4\u4ed8\u5bfe\u8c61\u56e3\u4f53\u3068\u3057\u3066 IEEE \u8ca1\u56e3\u3092\u9078\u629e\u3057\u307e\u3057\u305f\u3002<\/p>\n<h3>\u30a4\u30f3\u30c8\u30ed\u30c0\u30af\u30b7\u30e7\u30f3<\/h3>\n<p>\u611f\u60c5\u5206\u6790\u306f\u3001\u30c6\u30ad\u30b9\u30c8\u30de\u30a4\u30cb\u30f3\u30b0\u3068\u81ea\u7136\u8a00\u8a9e\u51e6\u7406\u3068\u5f37\u304f\u95a2\u4fc2\u3057\u3066\u304a\u308a\u3001\u66f8\u304b\u308c\u305f\u30ec\u30d3\u30e5\u30fc\u304b\u3089\u8cea\u7684\u8a55\u4fa1\u3092\u62bd\u51fa\u3057\u307e\u3059\u3002\u591a\u304f\u306e\u4eba\u3005\u306f\u6620\u753b\u306e\u30ec\u30d3\u30e5\u30fc\u3092\u8aad\u3093\u3067\u3001\u305d\u306e\u6620\u753b\u304c\u4e00\u822c\u306e\u4eba\u3005\u306e\u9593\u3067\u3069\u308c\u3060\u3051\u826f\u3044\u304b\u3092\u8a55\u4fa1\u3057\u307e\u3059\u3002\u6620\u753b\u306b\u6570\u5024\u3084\u661f\u306e\u8a55\u4fa1\u3092\u4ed8\u3051\u308b\u3053\u3068\u306f\u3001\u305d\u306e\u6620\u753b\u306e\u5b9a\u91cf\u7684\u306a\u6210\u529f\u3084\u5931\u6557\u3092\u793a\u3059\u308f\u3051\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u304c\u3001\u6620\u753b\u306e\u30ec\u30d3\u30e5\u30fc\u306e\u96c6\u307e\u308a\u306f\u3053\u308c\u3089\u306e\u6620\u753b\u306b\u3064\u3044\u3066\u306e\u8cea\u7684\u306a\u8996\u70b9\u3092\u63d0\u4f9b\u3057\u307e\u3059\u3002\u30c6\u30ad\u30b9\u30c8\u306e\u6620\u753b\u306e\u30ec\u30d3\u30e5\u30fc\u3067\u306f\u3001\u8996\u8074\u8005\u304c\u6620\u753b\u306e\u826f\u3044\u70b9\u3084\u60aa\u3044\u70b9\u3060\u3068\u601d\u3063\u3066\u3044\u308b\u3082\u306e\u304c\u660e\u3089\u304b\u306b\u306a\u308a\u307e\u3059\u3002\u30ec\u30d3\u30e5\u30fc\u306e\u3088\u308a\u8a73\u7d30\u306a\u5206\u6790\u3092\u884c\u3046\u3053\u3068\u3067\u3001\u305d\u306e\u6620\u753b\u304c\u30ec\u30d3\u30e5\u30a2\u30fc\u306e\u671f\u5f85\u306b\u5fdc\u3048\u3066\u3044\u308b\u304b\u3069\u3046\u304b\u304c\u660e\u3089\u304b\u306b\u306a\u308b\u3053\u3068\u304c\u3088\u304f\u3042\u308a\u307e\u3059\u3002\u611f\u60c5\u5206\u6790\u306f\u3001\u30ec\u30d3\u30e5\u30a2\u30fc\u306e\u4e3b\u89b3\u3084\u30ec\u30d3\u30e5\u30fc\u5168\u4f53\u306e\u6975\u6027\u3092\u8a55\u4fa1\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3055\u308c\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u611f\u60c5\u5206\u6790\u3092\u884c\u3046\u305f\u3081\u306b\u3001\u30c6\u30ad\u30b9\u30c8\u30c7\u30fc\u30bf\u5185\u306e\u610f\u898b\u3092\u8a8d\u8b58\u3057\u5206\u985e\u3059\u308b\u305f\u3081\u306e\u30b3\u30f3\u30d4\u30e5\u30fc\u30bf\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002\u5177\u4f53\u7684\u306b\u306f\u3001\u30e9\u30a4\u30bf\u30fc\uff08\u307e\u305f\u306f\u30ec\u30d3\u30e5\u30a2\u30fc\uff09\u304c\u4e0e\u3048\u3089\u308c\u305f\u30c8\u30d4\u30c3\u30af\uff08\u3053\u306e\u5834\u5408\u306f\u6620\u753b\uff09\u306b\u5bfe\u3057\u3066\u80af\u5b9a\u7684\u306a\u614b\u5ea6\u304b\u5426\u5b9a\u7684\u306a\u614b\u5ea6\u3092\u6301\u3063\u3066\u3044\u308b\u304b\u3092\u5224\u65ad\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3057\u307e\u3059\u3002\u611f\u60c5\u5206\u6790\u306f\u610f\u898b\u30de\u30a4\u30cb\u30f3\u30b0\u306e\u30b5\u30d6\u30c9\u30e1\u30a4\u30f3\u3067\u3042\u308a\u3001\u69cb\u9020\u5316\u30fb\u534a\u69cb\u9020\u5316\u30fb\u975e\u69cb\u9020\u5316\u306e\u30c6\u30ad\u30b9\u30c8\u30c7\u30fc\u30bf\u304b\u3089\u7279\u5b9a\u306e\u30c8\u30d4\u30c3\u30af\u306b\u5bfe\u3059\u308b\u611f\u60c5\u3084\u610f\u898b\u3092\u62bd\u51fa\u3059\u308b\u3053\u3068\u306b\u7126\u70b9\u3092\u5f53\u3066\u3066\u3044\u307e\u3059\u3002\u4ed6\u306e\u610f\u898b\u30de\u30a4\u30cb\u30f3\u30b0\u30e2\u30c7\u30eb\u3068\u540c\u69d8\u306b\u3001\u30d6\u30e9\u30f3\u30c9\u3084\u88fd\u54c1\u306e\u610f\u898b\u3092\u76e3\u8996\u3057\u3001\u9867\u5ba2\u306e\u30cb\u30fc\u30ba\u3092\u7406\u89e3\u3059\u308b\u305f\u3081\u306b\u611f\u60c5\u5206\u6790\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002\u611f\u60c5\u5206\u6790\u306f\u30c6\u30ad\u30b9\u30c8\u306e\u6975\u6027\uff08\u80af\u5b9a\u7684\u3001\u5426\u5b9a\u7684\u3001\u307e\u305f\u306f\u4e2d\u7acb\uff09\u3001\u30ec\u30d3\u30e5\u30a2\u30fc\u306e\u7279\u5b9a\u306e\u611f\u60c5\u3084\u611f\u60c5\uff08\u6012\u308a\u3001\u559c\u3073\u3001\u60b2\u3057\u307f\u306a\u3069\u3001\u30e2\u30c7\u30eb\u306b\u3088\u3063\u3066\u5b9a\u7fa9\u3055\u308c\u305f\u3082\u306e\uff09\u3001\u7dca\u6025\u6027\u3001\u3055\u3089\u306b\u306f\u610f\u56f3\uff08\u8208\u5473\u304c\u3042\u308b\u304b\u306a\u3044\u304b\uff09\u3092\u691c\u51fa\u3059\u308b\u3053\u3068\u306b\u7126\u70b9\u3092\u5f53\u3066\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u306f\u3001Keras\u3092\u4f7f\u7528\u3057\u3066\u6620\u753b\u306e\u30ec\u30d3\u30e5\u30fc\u306e\u611f\u60c5\u3092\u4e88\u6e2c\u3059\u308b\u30cb\u30e5\u30fc\u30e9\u30eb\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002\u30e2\u30c7\u30eb\u306f\u3001\u56fd\u969b\u6620\u753b\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\uff08IMDb\uff09\u306e\u30ec\u30d3\u30e5\u30fc\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u3092\u4f7f\u7528\u3057\u3066\u3001\u30ec\u30d3\u30e5\u30fc\u30922\u3064\u306e\u30ab\u30c6\u30b4\u30ea\uff08\u30dd\u30b8\u30c6\u30a3\u30d6\u307e\u305f\u306f\u30cd\u30ac\u30c6\u30a3\u30d6\uff09\u306b\u5206\u985e\u3057\u307e\u3059\u3002\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u306e\u6700\u5f8c\u307e\u3067\u306b\u3001\u6df1\u5c64\u5b66\u7fd2\u30e2\u30c7\u30eb\u3092\u4f5c\u6210\u3057\u3001\u611f\u60c5\u5206\u6790\u3092\u884c\u3046\u305f\u3081\u306b\u30cb\u30e5\u30fc\u30e9\u30eb\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u3092\u30c8\u30ec\u30fc\u30cb\u30f3\u30b0\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h2>\u524d\u63d0\u6761\u4ef6<\/h2>\n<ul class=\"post-ul\">\n<li>One Ubuntu 22.04 server instance with at least 8GB RAM. This server will need a non-root user with sudo privileges and a firewall configured, which you can set up by following our initial server setup guide.<\/li>\n<li>Python 3, pip, and the Python venv module installed on the server, which you can set up by following Steps 1 and 2 of our tutorial on How To Install Python 3 and Set Up a Programming Environment.<\/li>\n<li>Jupyter notebook installed and running on a remote server, which you can set up with How to Install, Run, and Connect to Jupyter Notebook on a Remote Server.<\/li>\n<li>A modern web browser that you will use to access Jupyter Notebook.<\/li>\n<li>A fundamental understanding of machine learning and deep learning models. Learn more in An Introduction to Machine Learning.<\/li>\n<\/ul>\n<h2>\u30b9\u30c6\u30c3\u30d71 \u2014 Jupyter Notebook\u306e\u74b0\u5883\u6e96\u5099<\/h2>\n<p>Jupyter Notebook\u306f\u30a4\u30f3\u30bf\u30e9\u30af\u30c6\u30a3\u30d6\u306a\u8a08\u7b97\u74b0\u5883\u3092\u63d0\u4f9b\u3057\u3066\u3044\u308b\u305f\u3081\u3001Python\u306e\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u30bf\u30fc\u30df\u30ca\u30eb\u3067\u306f\u306a\u304f\u3001\u6df1\u5c64\u5b66\u7fd2\u30e2\u30c7\u30eb\u3092\u5b9f\u884c\u3059\u308b\u969b\u306b\u3088\u304f\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002Jupyter Notebook\u3067\u306f\u30b3\u30de\u30f3\u30c9\u3084\u51fa\u529b\u304c\u4e00\u3064\u306e\u30ce\u30fc\u30c8\u30d6\u30c3\u30af\u306b\u8868\u793a\u3055\u308c\u308b\u305f\u3081\u3001\u5206\u6790\u30d7\u30ed\u30bb\u30b9\u306e\u958b\u767a\u4e2d\u306b\u601d\u8003\u3092\u8a18\u9332\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3092Jupyter Notebook\u3067\u30d5\u30a9\u30ed\u30fc\u3059\u308b\u306b\u306f\u3001\u65b0\u3057\u3044\u30ce\u30fc\u30c8\u30d6\u30c3\u30af\u3092\u958b\u3044\u3066\u5fc5\u8981\u306a\u4f9d\u5b58\u95a2\u4fc2\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u308c\u306f\u3053\u306e\u30b9\u30c6\u30c3\u30d7\u3067\u884c\u3044\u307e\u3059\u3002<\/p>\n<div class=\"post-conf-note\">\n<p class=\"post-conf-desc\">Note<\/p>\n<div>\u6ce8\u610f\uff1a\u30ea\u30e2\u30fc\u30c8\u30b5\u30fc\u30d0\u30fc\u3067\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u306b\u5f93\u3063\u3066\u3044\u308b\u5834\u5408\u3001\u30dd\u30fc\u30c8\u30d5\u30a9\u30ef\u30fc\u30c7\u30a3\u30f3\u30b0\u3092\u4f7f\u7528\u3057\u3066\u30ed\u30fc\u30ab\u30eb\u30de\u30b7\u30f3\u306e\u30d6\u30e9\u30a6\u30b6\u304b\u3089Jupyter Notebook\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<br \/>\n\u30bf\u30fc\u30df\u30ca\u30eb\u3092\u958b\u304d\u3001\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044\uff1a<br \/>\nssh -L 8888:localhost:8888 your_non_root_user@your_server_ip<\/div>\n<p>\u30b5\u30fc\u30d0\u30fc\u306b\u63a5\u7d9a\u3057\u305f\u3089\u3001\u51fa\u529b\u3067\u63d0\u4f9b\u3055\u308c\u308b\u30ea\u30f3\u30af\u306b\u79fb\u52d5\u3057\u3066Jupyter Notebook\u306b\u30a2\u30af\u30bb\u30b9\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u3053\u306e\u30bf\u30fc\u30df\u30ca\u30eb\u3092\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u306e\u6b8b\u308a\u306e\u90e8\u5206\u3067\u958b\u3044\u305f\u307e\u307e\u306b\u3057\u3066\u304a\u3044\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<\/div>\n<p>\u524d\u63d0\u6761\u4ef6\u3067\u30b5\u30fc\u30d0\u30fc\u4e0a\u306bJupyter Notebook\u74b0\u5883\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002\u30b5\u30fc\u30d0\u30fc\u306b\u30ed\u30b0\u30a4\u30f3\u3057\u305f\u3089\u3001\u4eee\u60f3\u74b0\u5883\u3092\u30a2\u30af\u30c6\u30a3\u30d6\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token builtin class-name\">source<\/span> ~\/<mark>environments<\/mark>\/<mark>my_env<\/mark>\/bin\/activate<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u305d\u306e\u5f8c\u3001Jupyter Notebook\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u5b9f\u884c\u3057\u3066\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u8d77\u52d5\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"(my_env)\\your_non_root_user@your_server_ip:~$\">jupyter notebook<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u5b9f\u884c\u3057\u3066\u63a5\u7d9a\u3057\u305f\u5f8c\u3001\u30d6\u30e9\u30a6\u30b6\u3067\u30e6\u30fc\u30b6\u30fc\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u306b\u30a2\u30af\u30bb\u30b9\u3057\u307e\u3059\u3002 \u65b0\u898f\u306e\u30c9\u30ed\u30c3\u30d7\u30c0\u30a6\u30f3\u30e1\u30cb\u30e5\u30fc\u304b\u3089Python3\uff08ipykernel\uff09\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u9078\u629e\u3057\u3001\u7121\u984c\u306ePython\u30ce\u30fc\u30c8\u30d6\u30c3\u30af\u304c\u958b\u304b\u308c\u308b\u65b0\u3057\u3044\u30bf\u30d6\u3092\u9078\u629e\u3057\u307e\u3059\u3002\u30d5\u30a1\u30a4\u30eb\u540d\u3092neural_network.ipynb\u3068\u3057\u3066\u4fdd\u5b58\u3057\u3001\u3053\u306e\u30d5\u30a1\u30a4\u30eb\u3067\u30b3\u30fc\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<p>\u305d\u308c\u3067\u306f\u3001\u30d6\u30e9\u30a6\u30b6\u306eJupyter Notebook\u306e\u6700\u521d\u306e\u30bb\u30eb\u3067\u3001\u30c7\u30fc\u30bf\u51e6\u7406\u306b\u5fc5\u8981\u306a\u4f9d\u5b58\u95a2\u4fc2\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u305f\u3081\u306bpip\u3092\u4f7f\u7528\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<div>\u300cneural_network.ipynb\u300d\u3092\u65e5\u672c\u8a9e\u3067\u8a00\u3044\u63db\u3048\u308b\u3068: \u30cb\u30e5\u30fc\u30e9\u30eb\u30cd\u30c3\u30c8\u30ef\u30fc\u30af.ipynb<\/div>\n<pre class=\"post-pre\"><code>!pip install numpy\r\n!pip install tensorflow\r\n<\/code><\/pre>\n<p>\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u306f\u3001numpy\u30e9\u30a4\u30d6\u30e9\u30ea\u304c\u7dda\u5f62\u4ee3\u6570\u3067\u914d\u5217\u3092\u64cd\u4f5c\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002\u4ee5\u4e0b\u306e\u95a2\u6570\u3092\u547c\u3073\u51fa\u3059\u3053\u3068\u3067\u3001IMDb\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u3092\u914d\u5217\u5f62\u5f0f\u3067\u64cd\u4f5c\u3057\u307e\u3059\uff1a<br \/>\n\u30fb\u9023\u7d50\u95a2\u6570\uff08concatenate\u95a2\u6570\uff09\u306f\u3001\u30c6\u30b9\u30c8\u30c7\u30fc\u30bf\u914d\u5217\u306e\u30b7\u30fc\u30b1\u30f3\u30b9\u3092\u30c8\u30ec\u30fc\u30cb\u30f3\u30b0\u30c7\u30fc\u30bf\u914d\u5217\u306b\u7d50\u5408\u3057\u307e\u3059\u3002<br \/>\n\u30fb\u30e6\u30cb\u30fc\u30af\u95a2\u6570\uff08unique\u95a2\u6570\uff09\u306f\u3001\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u914d\u5217\u5185\u306e\u30e6\u30cb\u30fc\u30af\u306a\u8981\u7d20\u3092\u898b\u3064\u3051\u307e\u3059\u3002<br \/>\n\u30fb\u30bc\u30ed\u914d\u5217\u95a2\u6570\uff08zeros\u95a2\u6570\uff09\u306f\u3001\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u3092\u30d9\u30af\u30c8\u30eb\u5316\u3059\u308b\u969b\u306b\u3001\u30bc\u30ed\u3067\u57cb\u3081\u3089\u308c\u305f\u65b0\u3057\u3044\u914d\u5217\u3092\u8fd4\u3057\u307e\u3059\u3002<\/p>\n<p>tensorflow\u306e\u4f9d\u5b58\u95a2\u4fc2\u306b\u3088\u3063\u3066\u3001Python\u3067\u6df1\u5c64\u5b66\u7fd2\u30e2\u30c7\u30eb\u3092\u8a13\u7df4\u30fb\u5c55\u958b\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002tensorflow\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3068\u3001TensorFlow\u306e\u4e0a\u3067\u52d5\u4f5c\u3059\u308bkeras\u3082\u540c\u6642\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3001TensorFlow\u3068\u30e6\u30fc\u30b6\u30fc\u306e\u9593\u306b\u62bd\u8c61\u5316\u30ec\u30d9\u30eb\u3092\u5c0e\u5165\u3057\u3001\u6df1\u5c64\u5b66\u7fd2\u30e2\u30c7\u30eb\u306e\u8fc5\u901f\u306a\u958b\u767a\u3092\u53ef\u80fd\u306b\u3057\u307e\u3059\u3002\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u306f\u3001tensorflow\u3068keras\u3092\u4f7f\u7528\u3057\u3066\u611f\u60c5\u5206\u6790\u306e\u8a13\u7df4\u3068\u5c55\u958b\u306e\u5168\u30d7\u30ed\u30bb\u30b9\u304c\u884c\u308f\u308c\u307e\u3059\u3002<\/p>\n<p>Jupyter Notebook\u306b2\u3064\u306e\u30b3\u30de\u30f3\u30c9\u3092\u8ffd\u52a0\u3057\u305f\u5f8c\u3001\u5b9f\u884c\u30dc\u30bf\u30f3\u3092\u62bc\u3057\u3066\u305d\u308c\u3089\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<p>\u3042\u306a\u305f\u306eJupyter Notebook\u306f\u3001\u5404\u4f9d\u5b58\u95a2\u4fc2\u304c\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u3092\u793a\u3059\u5b9f\u884c\u7d50\u679c\u3092\u63d0\u4f9b\u3057\u307e\u3059\u3002\u3053\u306e\u51fa\u529b\u306e\u4e0b\u306b\u306f\u65b0\u3057\u3044\u5165\u529b\u30bb\u30eb\u304c\u3042\u308a\u3001\u6b21\u306e\u30b3\u30fc\u30c9\u306e\u884c\u3092\u5b9f\u884c\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u4f9d\u5b58\u95a2\u4fc2\u306e\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u304c\u5b8c\u4e86\u3057\u305f\u3089\u3001\u305d\u308c\u3089\u3092\u30a4\u30f3\u30dd\u30fc\u30c8\u3057\u307e\u3059\u3002\u6b21\u306e\u30bb\u30eb\u306b\u3053\u308c\u3089\u306e\u884c\u3092\u8ffd\u52a0\u3057\u3066\u304b\u3089\u3001\u5b9f\u884c\u30dc\u30bf\u30f3\u3092\u62bc\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<div>\u30cb\u30e5\u30fc\u30e9\u30eb\u30cd\u30c3\u30c8\u30ef\u30fc\u30af.ipynb<\/div>\n<pre class=\"post-pre\"><code><span class=\"token keyword\">import<\/span> numpy <span class=\"token keyword\">as<\/span> np\r\n<span class=\"token keyword\">from<\/span> keras<span class=\"token punctuation\">.<\/span>utils <span class=\"token keyword\">import<\/span> to_categorical\r\n<span class=\"token keyword\">from<\/span> keras <span class=\"token keyword\">import<\/span> models\r\n<span class=\"token keyword\">from<\/span> keras <span class=\"token keyword\">import<\/span> layers\r\n<\/code><\/pre>\n<div class=\"post-conf-note\">\n<p class=\"post-conf-desc\">Note<\/p>\n<div>\u6ce8\u610f\uff1a\u3053\u308c\u3089\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u969b\u306b\u306f\u3001TensorFlow\u3068TensorRT\u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u306b\u95a2\u3059\u308b\u8b66\u544a\u304c\u8868\u793a\u3055\u308c\u308b\u5834\u5408\u304c\u3042\u308a\u307e\u3059\u3002\u4e00\u822c\u7684\u306b\u3001TensorFlow\u306fCPU\u3001GPU\u3001TPU\u3068\u52d5\u4f5c\u3057\u307e\u3059\u3002\u8b66\u544a\u30a8\u30e9\u30fc\u306b\u306f\u3001\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u305fTensorFlow\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u304cAVX\u3084AVX2\u306e\u30aa\u30da\u30ec\u30fc\u30b7\u30e7\u30f3\u3092\u5229\u7528\u3067\u304d\u308b\u3053\u3068\u304c\u8a18\u8f09\u3055\u308c\u3066\u304a\u308a\u3001\u3053\u308c\u306b\u3088\u3063\u3066\u51e6\u7406\u30b9\u30d4\u30fc\u30c9\u304c\u5411\u4e0a\u3059\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u306e\u8b66\u544a\u306f\u30a8\u30e9\u30fc\u3067\u306f\u306a\u304f\u3001CPU\u3092\u5229\u7528\u3057\u3066TensorFlow\u304c\u8ffd\u52a0\u306e\u30b9\u30d4\u30fc\u30c9\u3092\u5b9f\u73fe\u3059\u308b\u305f\u3081\u306e\u6ce8\u610f\u4e8b\u9805\u3067\u3059\u3002<\/div>\n<\/div>\n<p>\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u65e5\u672c\u8a9e\u3067\u8a00\u3044\u63db\u3048\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\uff1a<br \/>\nKeras\u306e\u30c4\u30fc\u30eb\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306b\u306f\u3001\u7d44\u307f\u8fbc\u307f\u306eIMDB\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u304c\u542b\u307e\u308c\u3066\u3044\u307e\u3059\u3002\u3053\u306e\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u306f\u3001\u30c8\u30ec\u30fc\u30cb\u30f3\u30b0\u30c7\u30fc\u30bf\u3068\u30c6\u30b9\u30c8\u30c7\u30fc\u30bf\u304c50\uff05\u305a\u3064\u542b\u307e\u308c\u3066\u3044\u307e\u3059\u3002\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u306f\u3001\u904e\u5b66\u7fd2\u3092\u9632\u3050\u305f\u3081\u306b\u300180\uff05\u306e\u30c8\u30ec\u30fc\u30cb\u30f3\u30b0\u30c7\u30fc\u30bf\u306820\uff05\u306e\u30c6\u30b9\u30c8\u30c7\u30fc\u30bf\u306b\u5206\u5272\u3057\u307e\u3059\u3002\u305d\u306e\u305f\u3081\u3001\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u5f8c\u306b\u30c7\u30fc\u30bf\u3068\u30bf\u30fc\u30b2\u30c3\u30c8\u3092\u30de\u30fc\u30b8\u3057\u3001\u5f8c\u3067\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u306780\uff05\/20\uff05\u306b\u5206\u5272\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u307e\u3059\u3002\u3053\u308c\u3089\u306e\u884c\u3092\u65b0\u3057\u3044\u30bb\u30eb\u306b\u8ffd\u52a0\u3057\u3066\u3001\u5b9f\u884c\u30dc\u30bf\u30f3\u3092\u62bc\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<div>\u30cb\u30e5\u30fc\u30e9\u30eb\u30cd\u30c3\u30c8\u30ef\u30fc\u30af.ipynb<\/div>\n<pre class=\"post-pre\"><code><span class=\"token keyword\">from<\/span> keras<span class=\"token punctuation\">.<\/span>datasets <span class=\"token keyword\">import<\/span> imdb\r\n<span class=\"token punctuation\">(<\/span>training_data<span class=\"token punctuation\">,<\/span> training_targets<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token punctuation\">(<\/span>testing_data<span class=\"token punctuation\">,<\/span> testing_targets<span class=\"token punctuation\">)<\/span> <span class=\"token operator\">=<\/span> imdb<span class=\"token punctuation\">.<\/span>load_data<span class=\"token punctuation\">(<\/span>num_words<span class=\"token operator\">=<\/span><span class=\"token number\">10000<\/span><span class=\"token punctuation\">)<\/span>\r\ndata <span class=\"token operator\">=<\/span> np<span class=\"token punctuation\">.<\/span>concatenate<span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">(<\/span>training_data<span class=\"token punctuation\">,<\/span> testing_data<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">,<\/span> axis<span class=\"token operator\">=<\/span><span class=\"token number\">0<\/span><span class=\"token punctuation\">)<\/span>\r\ntargets <span class=\"token operator\">=<\/span> np<span class=\"token punctuation\">.<\/span>concatenate<span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">(<\/span>training_targets<span class=\"token punctuation\">,<\/span> testing_targets<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">,<\/span> axis<span class=\"token operator\">=<\/span><span class=\"token number\">0<\/span><span class=\"token punctuation\">)<\/span>\r\n<\/code><\/pre>\n<p>\u3053\u306e\u30bb\u30eb\u306fIMDb\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u3092\u30a4\u30f3\u30dd\u30fc\u30c8\u3057\u3001\u30c8\u30ec\u30fc\u30cb\u30f3\u30b0\u30c7\u30fc\u30bf\u3068\u30c6\u30b9\u30c8\u30c7\u30fc\u30bf\u3092\u7d50\u5408\u3057\u307e\u3059\u3002\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u306f\u3001\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u306f\u30c8\u30ec\u30fc\u30cb\u30f3\u30b0\u30c7\u30fc\u30bf\u3001\u30c8\u30ec\u30fc\u30cb\u30f3\u30b0\u30bf\u30fc\u30b2\u30c3\u30c8\u3001\u30c6\u30b9\u30c8\u30c7\u30fc\u30bf\u3001\u304a\u3088\u3073\u30c6\u30b9\u30c8\u30bf\u30fc\u30b2\u30c3\u30c8\u306b\u5206\u5272\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u3042\u306a\u305f\u306eJupyter Notebook\u306b\u306f\u3001\u6d3b\u52d5\u30ed\u30b0\u304c\u8868\u793a\u3055\u308c\u3001\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u306e\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u306b\u306f\u6570\u5206\u304b\u304b\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<div class=\"secondary-code-label\" title=\"Output\">Output<\/div>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>Downloading data from https:\/\/storage.googleapis.com\/tensorflow\/tf-keras-datasets\/imdb.npz 17464789\/17464789 [==============================] &#8211; 0s 0us\/step<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u3053\u306e\u30b9\u30c6\u30c3\u30d7\u3067\u306f\u3001\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u306e\u30d1\u30bf\u30fc\u30f3\u3001\u4eee\u5b9a\u3001\u304a\u3088\u3073\u7570\u5e38\u3092\u8abf\u3079\u308b\u305f\u3081\u306bJupyter Notebook\u306e\u74b0\u5883\u3092\u6e96\u5099\u3057\u307e\u3057\u305f\u3002\u6b21\u306b\u3001\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u5168\u4f53\u3067\u63a2\u7d22\u7684\u306a\u30c7\u30fc\u30bf\u5206\u6790\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<h2>\u30b9\u30c6\u30c3\u30d72\uff1a\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u306e\u5206\u6790<\/h2>\n<p>\u4eca\u56de\u306f\u3001\u3053\u306e\u30c7\u30fc\u30bf\u3092\u4f7f\u3063\u3066\u30e2\u30c7\u30eb\u3092\u8a13\u7df4\u3059\u308b\u65b9\u6cd5\u3092\u7279\u5b9a\u3059\u308b\u305f\u3081\u306b\u3001\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u3092\u8a55\u4fa1\u3057\u307e\u3059\u3002 \u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u3092\u63a2\u7d22\u7684\u306b\u5206\u6790\u3059\u308b\u3053\u3068\u3067\u3001\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u306e\u6f5c\u5728\u7684\u306a\u69cb\u9020\u304c\u660e\u3089\u304b\u306b\u306a\u308a\u307e\u3059\u3002 \u3053\u306e\u904e\u7a0b\u3067\u306f\u3001\u4e00\u898b\u5206\u304b\u308a\u306b\u304f\u3044\u30c8\u30ec\u30f3\u30c9\u3084\u30d1\u30bf\u30fc\u30f3\u3001\u95a2\u4fc2\u304c\u660e\u3089\u304b\u306b\u306a\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002 \u3053\u308c\u3089\u306e\u60c5\u5831\u306f\u3001\u30df\u30b9\u3092\u691c\u51fa\u3057\u305f\u308a\u3001\u4eee\u5b9a\u3092\u9593\u9055\u3048\u305f\u308a\u3001\u4e3b\u8981\u306a\u5909\u6570\u9593\u306e\u95a2\u4fc2\u3092\u7406\u89e3\u3059\u308b\u306e\u306b\u5f79\u7acb\u3061\u307e\u3059\u3002 \u3053\u3046\u3057\u305f\u898b\u8b58\u306f\u3001\u9069\u5207\u306a\u4e88\u6e2c\u30e2\u30c7\u30eb\u306e\u9078\u629e\u306b\u3064\u306a\u304c\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u3067\u306e\u6700\u521d\u306e\u30bf\u30b9\u30af\u306f\u3001\u51fa\u529b\u306e\u7a2e\u985e\u3068\u30e6\u30cb\u30fc\u30af\u306a\u5358\u8a9e\u6570\u3092\u53d6\u5f97\u3059\u308b\u3053\u3068\u3067\u3059\u3002\u3053\u306e\u60c5\u5831\u3092\u53d6\u5f97\u3059\u308b\u305f\u3081\u306b\u306f\u3001\u65b0\u3057\u3044\u30bb\u30eb\u306b\u4ee5\u4e0b\u306e\u884c\u3092\u5b9f\u884c\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<div>\u30cb\u30e5\u30fc\u30e9\u30eb\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u306eipynb\u30d5\u30a1\u30a4\u30eb<\/div>\n<pre class=\"post-pre\"><code><span class=\"token keyword\">print<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string\">\"The output categories are\"<\/span><span class=\"token punctuation\">,<\/span> np<span class=\"token punctuation\">.<\/span>unique<span class=\"token punctuation\">(<\/span>targets<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">)<\/span>\r\n<span class=\"token keyword\">print<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string\">\"The number of unique words is\"<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token builtin\">len<\/span><span class=\"token punctuation\">(<\/span>np<span class=\"token punctuation\">.<\/span>unique<span class=\"token punctuation\">(<\/span>np<span class=\"token punctuation\">.<\/span>hstack<span class=\"token punctuation\">(<\/span>data<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">)<\/span>\r\n<\/code><\/pre>\n<p>\u3053\u306e\u30bb\u30eb\u306f\u3001\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u5185\u306e\u30e6\u30cb\u30fc\u30af\u306a\u611f\u60c5\uff08\u30dd\u30b8\u30c6\u30a3\u30d6[1]\u307e\u305f\u306f\u30cd\u30ac\u30c6\u30a3\u30d6[0]\uff09\u306e\u6570\u3068\u3001\u30ec\u30d3\u30e5\u30fc\u3067\u4f7f\u7528\u3055\u308c\u305f\u30e6\u30cb\u30fc\u30af\u306a\u5358\u8a9e\u306e\u6570\u3092\u8868\u793a\u3057\u307e\u3059\u3002<\/p>\n<p>\u4ee5\u4e0b\u306e\u51fa\u529b\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<div class=\"secondary-code-label\" title=\"Output\">Output<\/div>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>The output categories are [0 1] The number of unique words is 9998<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u3053\u306e\u51fa\u529b\u306e\u6700\u521d\u306e\u884c\u306f\u3001\u6620\u753b\u304c\u30dd\u30b8\u30c6\u30a3\u30d6\uff081\uff09\u307e\u305f\u306f\u30cd\u30ac\u30c6\u30a3\u30d6\uff080\uff09\u3067\u30e9\u30d9\u30eb\u4ed8\u3051\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u3092\u8ff0\u3079\u3066\u3044\u307e\u3059\u30022\u884c\u76ee\u306f\u3001\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u306b\u306f9998\u500b\u306e\u30e6\u30cb\u30fc\u30af\u306a\u5358\u8a9e\u304c\u3042\u308b\u3053\u3068\u3092\u8ff0\u3079\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u6b21\u306b\u3001\u6620\u753b\u306e\u30ec\u30d3\u30e5\u30fc\u306e\u5e73\u5747\u5358\u8a9e\u306e\u9577\u3055\u3068\u5358\u8a9e\u306e\u6a19\u6e96\u504f\u5dee\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002\u3053\u308c\u3092\u884c\u3046\u306b\u306f\u3001\u65b0\u3057\u3044\u30bb\u30eb\u3067\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u3092\u5b9f\u884c\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<div>\u30cb\u30e5\u30fc\u30e9\u30eb\u30cd\u30c3\u30c8\u30ef\u30fc\u30af.ipynb<\/div>\n<pre class=\"post-pre\"><code>length <span class=\"token operator\">=<\/span> <span class=\"token punctuation\">[<\/span><span class=\"token builtin\">len<\/span><span class=\"token punctuation\">(<\/span>i<span class=\"token punctuation\">)<\/span> <span class=\"token keyword\">for<\/span> i <span class=\"token keyword\">in<\/span> data<span class=\"token punctuation\">]<\/span>\r\n<span class=\"token keyword\">print<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string\">\"The Average Review length is\"<\/span><span class=\"token punctuation\">,<\/span> np<span class=\"token punctuation\">.<\/span>mean<span class=\"token punctuation\">(<\/span>length<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">)<\/span>\r\n<span class=\"token keyword\">print<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string\">\"The Standard Deviation is\"<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token builtin\">round<\/span><span class=\"token punctuation\">(<\/span>np<span class=\"token punctuation\">.<\/span>std<span class=\"token punctuation\">(<\/span>length<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">)<\/span>\r\n<\/code><\/pre>\n<p>\u3053\u306e\u30bb\u30eb\u306f\u3001\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u306e\u5e73\u5747\u30ec\u30d3\u30e5\u30fc\u9577\u3068\u6a19\u6e96\u504f\u5dee\u3092\u51fa\u529b\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<div class=\"secondary-code-label\" title=\"Output\">Output<\/div>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>The Average Review length is 234.75892 The Standard Deviation is 173<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u3053\u306e\u8a55\u4fa1\u306b\u3088\u308c\u3070\u3001\u5e73\u5747\u306e\u30ec\u30d3\u30e5\u30fc\u306e\u9577\u3055\u306f234\u5358\u8a9e\u3067\u3042\u308a\u3001\u6a19\u6e96\u504f\u5dee\u306f173\u3067\u3059\u3002<\/p>\n<p>\u305d\u306e\u6b21\u306b\u3001\u65b0\u3057\u3044\u30bb\u30eb\u3067\u3053\u308c\u3089\u306e\u884c\u3092\u5b9f\u884c\u3057\u3066\u3001\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u306e\u8981\u7d20\uff08\u6700\u521d\u306e\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\uff09\u3092\u5370\u5237\u3057\u307e\u3059\u3002<\/p>\n<div>\u30cb\u30e5\u30fc\u30e9\u30eb\u30cd\u30c3\u30c8\u30ef\u30fc\u30af.ipynb<\/div>\n<pre class=\"post-pre\"><code><span class=\"token keyword\">print<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string\">\"Label:\"<\/span><span class=\"token punctuation\">,<\/span> targets<span class=\"token punctuation\">[<\/span><span class=\"token number\">0<\/span><span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">)<\/span>\r\n<span class=\"token keyword\">print<\/span><span class=\"token punctuation\">(<\/span>data<span class=\"token punctuation\">[<\/span><span class=\"token number\">0<\/span><span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">)<\/span>\r\n<\/code><\/pre>\n<p>\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u306e\u6700\u521d\u306e\u8981\u7d20\u306b\u3064\u3044\u3066\u306e\u6620\u753b\u306e\u30ec\u30d3\u30e5\u30fc\u3068\u30e9\u30d9\u30eb\u306e\u30da\u30a2\u3092\u5370\u5237\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<div class=\"secondary-code-label\" title=\"Output\">Output<\/div>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>Label: 1 [1, 14, 22, 16, 43, 530, 973, 1622, 1385, 65, 458, 4468, 66, 3941, 4, 173, 36, 256, 5, 25, 100, 43, 838, 112, 50, 670, 2, 9, 35, 480, 284, 5, 150, 4, 172, 112, 167, 2, 336, 385, 39, 4, 172, 4536, 1111, 17, 546, 38, 13, 447, 4, 192, 50, 16, 6, 147, 2025, 19, 14, 22, 4, 1920, 4613, 469, 4, 22, 71, 87, 12, 16, 43, 530, 38, 76, 15, 13, 1247, 4, 22, 17, 515, 17, 12, 16, 626, 18, 2, 5, 62, 386, 12, 8, 316, 8, 106, 5, 4, 2223, 5244, 16, 480, 66, 3785, 33, 4, 130, 12, 16, 38, 619, 5, 25, 124, 51, 36, 135, 48, 25, 1415, 33, 6, 22, 12, 215, 28, 77, 52, 5, 14, 407, 16, 82, 2, 8, 4, 107, 117, 5952, 15, 256, 4, 2, 7, 3766, 5, 723, 36, 71, 43, 530, 476, 26, 400, 317, 46, 7, 4, 2, 1029, 13, 104, 88, 4, 381, 15, 297, 98, 32, 2071, 56, 26, 141, 6, 194, 7486, 18, 4, 226, 22, 21, 134, 476, 26, 480, 5, 144, 30, 5535, 18, 51, 36, 28, 224, 92, 25, 104, 4, 226, 65, 16, 38, 1334, 88, 12, 16, 283, 5, 16, 4472, 113, 103, 32, 15, 16, 5345, 19, 178, 32]<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u3053\u306e\u51fa\u529b\u306f\u3001\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u306e\u6700\u521d\u306e\u30ec\u30d3\u30e5\u30fc\u3092\u63d0\u4f9b\u3057\u3001\u305d\u306e\u8a55\u4fa1\u3092\u30dd\u30b8\u30c6\u30a3\u30d6\uff081\uff09\u3068\u3057\u3066\u3001\u30d5\u30eb\u30c6\u30ad\u30b9\u30c8\u3092\u6574\u6570\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3068\u3057\u3066\u793a\u3057\u3066\u3044\u307e\u3059\u3002\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u306f\u3001\u30c6\u30ad\u30b9\u30c8\u30ec\u30d3\u30e5\u30fc\u306f\u6570\u5024\u30a8\u30f3\u30b3\u30fc\u30c9\u3055\u308c\u305f\u5f62\u3067\u3001\u6574\u6570\u30d9\u30fc\u30b9\u306e\u5358\u8a9e\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u306e\u30ea\u30b9\u30c8\u3068\u3057\u3066\u4e0e\u3048\u3089\u308c\u307e\u3059\u3002\u30ec\u30d3\u30e5\u30fc\u5185\u306e\u5358\u8a9e\u306f\u3001\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u5168\u4f53\u3067\u3069\u308c\u3060\u3051\u983b\u7e41\u306b\u73fe\u308c\u308b\u304b\u306b\u57fa\u3065\u3044\u3066\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u304c\u4ed8\u3051\u3089\u308c\u3066\u3044\u307e\u3059\u3002\u4f8b\u3048\u3070\u3001\u30c7\u30fc\u30bf\u5185\u30672\u756a\u76ee\u306b\u4e00\u822c\u7684\u306a\u7528\u8a9e\u306f\u6574\u65702\u3067\u30a8\u30f3\u30b3\u30fc\u30c9\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u65b0\u3057\u3044\u30bb\u30eb\u3067\u4ee5\u4e0b\u306e\u884c\u3092\u5b9f\u884c\u3057\u3001\u8f9e\u66f8\u3092\u53d6\u308a\u51fa\u3057\u3001\u5358\u8a9e\u306e\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3092\u5143\u306e\u5358\u8a9e\u306b\u623b\u3057\u3066\u30c6\u30ad\u30b9\u30c8\u30ec\u30d3\u30e5\u30fc\u3092\u8aad\u3080\u3053\u3068\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u307e\u3059\u3002<\/p>\n<div>\u30cb\u30e5\u30fc\u30e9\u30eb\u30cd\u30c3\u30c8\u30ef\u30fc\u30af.ipynb<\/div>\n<pre class=\"post-pre\"><code>index <span class=\"token operator\">=<\/span> imdb<span class=\"token punctuation\">.<\/span>get_word_index<span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span>\r\nreverse_index <span class=\"token operator\">=<\/span> <span class=\"token builtin\">dict<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">[<\/span><span class=\"token punctuation\">(<\/span>value<span class=\"token punctuation\">,<\/span> key<span class=\"token punctuation\">)<\/span> <span class=\"token keyword\">for<\/span> <span class=\"token punctuation\">(<\/span>key<span class=\"token punctuation\">,<\/span> value<span class=\"token punctuation\">)<\/span> <span class=\"token keyword\">in<\/span> index<span class=\"token punctuation\">.<\/span>items<span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">)<\/span>\r\ndecoded <span class=\"token operator\">=<\/span> <span class=\"token string\">\" \"<\/span><span class=\"token punctuation\">.<\/span>join<span class=\"token punctuation\">(<\/span> <span class=\"token punctuation\">[<\/span>reverse_index<span class=\"token punctuation\">.<\/span>get<span class=\"token punctuation\">(<\/span>i <span class=\"token operator\">-<\/span> <span class=\"token number\">3<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token string\">\"#\"<\/span><span class=\"token punctuation\">)<\/span> <span class=\"token keyword\">for<\/span> i <span class=\"token keyword\">in<\/span> data<span class=\"token punctuation\">[<\/span><span class=\"token number\">0<\/span><span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">]<\/span> <span class=\"token punctuation\">)<\/span>\r\n<span class=\"token keyword\">print<\/span><span class=\"token punctuation\">(<\/span>decoded<span class=\"token punctuation\">)<\/span>\r\n<\/code><\/pre>\n<p>\u3053\u306e\u30b3\u30fc\u30c9\u30d6\u30ed\u30c3\u30af\u306f\u6570\u5024\u5f62\u5f0f\u3092\u8aad\u307f\u3084\u3059\u3044\u30c6\u30ad\u30b9\u30c8\u306b\u30c7\u30b3\u30fc\u30c9\u3057\u307e\u3059\u3002get_word_index\uff08\uff09\u95a2\u6570\u3092\u4f7f\u3046\u3068\u3001IMDb\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u306e\u5358\u8a9e\u3092\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u306b\u30de\u30c3\u30d4\u30f3\u30b0\u3057\u305f\u8f9e\u66f8\u304c\u53d6\u5f97\u3067\u304d\u307e\u3059\u3002\u305d\u306e\u5f8c\u3001reverse_index\u5909\u6570\u306f\u3001\u5358\u8a9e\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3092\u53cd\u8ee2\u3055\u305b\u305f\u5f8c\u306e\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3092\u5358\u8a9e\u306b\u30de\u30c3\u30d4\u30f3\u30b0\u3059\u308b\u8f9e\u66f8\u3092\u4fdd\u6301\u3057\u307e\u3059\u3002dict\uff08\uff09\u95a2\u6570\u306f\u3001\u30ad\u30fc\u3068\u5024\u306e\u30da\u30a2\u3067\u30c7\u30fc\u30bf\u5024\u3092\u683c\u7d0d\u3059\u308b\u8f9e\u66f8\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002\u30b3\u30fc\u30c9\u306e\u6700\u5f8c\u306e2\u884c\u306f\u3001\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u306e\u6700\u521d\u306e\u30b7\u30fc\u30b1\u30f3\u30b9\u3092\u30c7\u30b3\u30fc\u30c9\u3057\u3066\u8868\u793a\u3057\u307e\u3059\u3002<\/p>\n<p>\u300cget_word_index\uff08\uff09\u300d\u95a2\u6570\u3092\u4f7f\u7528\u3059\u308b\u3068\u3001\u6b21\u306e\u51fa\u529b\u304c\u5f97\u3089\u308c\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<div class=\"secondary-code-label\" title=\"Output\">Output<\/div>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p># this film was just brilliant casting location scenery story direction everyone&#8217;s really suited the part they played and you could just imagine being there robert # is an amazing actor and now the same being director # father came from the same scottish island as myself so i loved the fact there was a real connection with this film the witty remarks throughout the film were great it was just brilliant so much that i bought the film as soon as it was released for # and would recommend it to everyone to watch and the fly fishing was amazing really cried at the end it was so sad and you know what they say if you cry at a film it must have been good and this definitely was also # to the two little boy&#8217;s that played the # of norman and paul they were just brilliant children are often left out of the # list i think because the stars that play them all grown up are such a big profile for the whole film but these children are amazing and should be praised for what they have done don&#8217;t you think the whole story was so lovely because it was true and was someone&#8217;s life after all that was shared with us all<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u3053\u306e\u30ec\u30d3\u30e5\u30fc\u306e\u305f\u3081\u306eget_word_index()\u95a2\u6570\u306f\u3001\u6570\u5024\u30c7\u30fc\u30bf\u3092\u89e3\u8aad\u3057\u3066\u8aad\u307f\u3084\u3059\u3044\u5358\u8a9e\u306b\u5909\u63db\u3057\u3001\u8a8d\u8b58\u3067\u304d\u306a\u3044\u5358\u8a9e\u306f\u5168\u3066#\u3067\u7f6e\u304d\u63db\u3048\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u30b9\u30c6\u30c3\u30d7\u3067\u306f\u3001\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u3092\u8a55\u4fa1\u3057\u3001\u5404\u30ec\u30d3\u30e5\u30fc\u304c\u3069\u306e\u3088\u3046\u306b\u6e96\u5099\u3055\u308c\u3066\u3044\u308b\u304b\u3092\u78ba\u8a8d\u3057\u307e\u3057\u305f\u3002\u3053\u306e\u60c5\u5831\u3092\u5143\u306b\u3001\u30c7\u30fc\u30bf\u306e\u30c8\u30ec\u30fc\u30cb\u30f3\u30b0\u306e\u305f\u3081\u306e\u6e96\u5099\u3092\u884c\u3044\u307e\u3059\u3002<\/p>\n<h2>\u30b9\u30c6\u30c3\u30d73-\u30c8\u30ec\u30fc\u30cb\u30f3\u30b0\u7528\u306e\u30c7\u30fc\u30bf\u306e\u6e96\u5099<\/h2>\n<p>\u3053\u306e\u6bb5\u968e\u3067\u306f\u3001\u5b66\u7fd2\u306e\u305f\u3081\u306e\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u3092\u6e96\u5099\u3057\u307e\u3059\u3002\u30c7\u30a3\u30fc\u30d7\u30e9\u30fc\u30cb\u30f3\u30b0\u30e2\u30c7\u30eb\u306f\u3001\u4e00\u822c\u7684\u306b\u5b66\u7fd2\u306b\u4f7f\u7528\u3055\u308c\u308b\u30c7\u30fc\u30bf\u304b\u3089\u958b\u767a\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u30c7\u30fc\u30bf\u3092\u6e96\u5099\u3059\u308b\u969b\u306b\u306f\u3001\u8cb4\u91cd\u306a\u6d1e\u5bdf\u3092\u3082\u305f\u3089\u3057\u3001\u3088\u308a\u6b63\u78ba\u306a\u30e2\u30c7\u30eb\u306e\u7d50\u679c\u3092\u5c0e\u304f\u305f\u3081\u306b\u3001\u6b63\u78ba\u306a\u5f62\u5f0f\u3067\u30c7\u30fc\u30bf\u3092\u6574\u3048\u307e\u3059\u3002\u30c7\u30fc\u30bf\u306e\u6e96\u5099\u6280\u8853\u306b\u306f\u3001\u30e2\u30c7\u30eb\u306b\u95a2\u9023\u3059\u308b\u7279\u5fb4\u3092\u9078\u629e\u3059\u308b\u7279\u5fb4\u9078\u629e\u3001\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u5185\u306e\u5909\u6570\u3092\u30a8\u30f3\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u624b\u6cd5\u3092\u7528\u3044\u3066\u5f79\u7acb\u3064\u7279\u5fb4\u306b\u5909\u63db\u3059\u308b\u7279\u5fb4\u30a8\u30f3\u30b8\u30cb\u30a2\u30ea\u30f3\u30b0\u3001\u305d\u3057\u3066\u30c8\u30ec\u30a4\u30f3\u30bb\u30c3\u30c8\u3068\u30c6\u30b9\u30c8\u30bb\u30c3\u30c8\u306b\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u3092\u5206\u5272\u3059\u308b\u306a\u3069\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u306f\u3001\u30c7\u30fc\u30bf\u3092\u30c6\u30b9\u30c8\u30bb\u30c3\u30c8\u3068\u8a13\u7df4\u30bb\u30c3\u30c8\u306b\u5206\u5272\u3057\u3001\u30c7\u30fc\u30bf\u306e\u30d9\u30af\u30c8\u30eb\u5316\u306b\u3088\u308b\u7279\u5fb4\u30a8\u30f3\u30b8\u30cb\u30a2\u30ea\u30f3\u30b0\u3092\u884c\u3044\u307e\u3059\u3002<\/p>\n<p>\u6b21\u306e\u30bb\u30eb\u3067\u3001\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u5185\u306e\u3059\u3079\u3066\u306e\u30ec\u30d3\u30e5\u30fc\u3092\u30d9\u30af\u30c8\u30eb\u5316\u3059\u308b\u305f\u3081\u306b\u3001\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u3092\u5b9f\u884c\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<div>\u30cb\u30e5\u30fc\u30e9\u30eb\u30cd\u30c3\u30c8\u30ef\u30fc\u30af.ipynb<\/div>\n<pre class=\"post-pre\"><code><span class=\"token keyword\">def<\/span> <span class=\"token function\">vectorize<\/span><span class=\"token punctuation\">(<\/span>sequences<span class=\"token punctuation\">,<\/span> dimension <span class=\"token operator\">=<\/span> <span class=\"token number\">10000<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">:<\/span>\r\n    results <span class=\"token operator\">=<\/span> np<span class=\"token punctuation\">.<\/span>zeros<span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">(<\/span><span class=\"token builtin\">len<\/span><span class=\"token punctuation\">(<\/span>sequences<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">,<\/span> dimension<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">)<\/span>\r\n    <span class=\"token keyword\">for<\/span> i<span class=\"token punctuation\">,<\/span> sequence <span class=\"token keyword\">in<\/span> <span class=\"token builtin\">enumerate<\/span><span class=\"token punctuation\">(<\/span>sequences<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">:<\/span>\r\n        results<span class=\"token punctuation\">[<\/span>i<span class=\"token punctuation\">,<\/span> sequence<span class=\"token punctuation\">]<\/span> <span class=\"token operator\">=<\/span> <span class=\"token number\">1<\/span>\r\n    <span class=\"token keyword\">return<\/span> results\r\n\r\ndata <span class=\"token operator\">=<\/span> vectorize<span class=\"token punctuation\">(<\/span>data<span class=\"token punctuation\">)<\/span>\r\ntargets <span class=\"token operator\">=<\/span> np<span class=\"token punctuation\">.<\/span>array<span class=\"token punctuation\">(<\/span>targets<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">.<\/span>astype<span class=\"token punctuation\">(<\/span><span class=\"token string\">\"float32\"<\/span><span class=\"token punctuation\">)<\/span>\r\n<\/code><\/pre>\n<p>\u6700\u521d\u306b\u3001\u5404\u30ec\u30d3\u30e5\u30fc\u3092\u30d9\u30af\u30c8\u30eb\u5316\u3057\u300110,000\u500b\u306e\u6570\u5b57\u3092\u542b\u3080\u3088\u3046\u306b\u3057\u307e\u3059\u3002\u3053\u306e\u30d7\u30ed\u30bb\u30b9\u306b\u3088\u3063\u3066\u3001\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u5185\u306e\u6700\u5927\u306e\u30ec\u30d3\u30e5\u30fc\u306e\u9577\u3055\u304c\u7d0410,000\u8a9e\u3067\u3042\u308b\u305f\u3081\u300110,000\u8a9e\u3088\u308a\u77ed\u3044\u3059\u3079\u3066\u306e\u30ec\u30d3\u30e5\u30fc\u3092\u30bc\u30ed\u3067\u57cb\u3081\u307e\u3059\u3002\u30cb\u30e5\u30fc\u30e9\u30eb\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u306f\u3001\u5165\u529b\u306e\u30b5\u30a4\u30ba\u3092\u3059\u3079\u3066\u540c\u3058\u306b\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u305f\u3081\u3067\u3059\u3002<\/p>\n<p>\u4ee5\u4e0b\u306e\u65e5\u672c\u8a9e\u8a33\u30921\u3064\u63d0\u4f9b\u3057\u307e\u3059\uff1a<\/p>\n<p>vectorize\uff08\uff09\u95a2\u6570\u306f\u30012\u3064\u306e\u30d1\u30e9\u30e1\u30fc\u30bf\u3092\u53d7\u3051\u53d6\u308a\u307e\u3059\uff1a\u914d\u5217\u306810000\u306e\u30d7\u30ea\u30bb\u30c3\u30c8\u6b21\u5143\u3067\u3059\u3002\u3053\u306e\u95a2\u6570\u306f\u3001NumPy\u306ezeros\uff08\uff09\u30e1\u30bd\u30c3\u30c9\u3092\u547c\u3073\u51fa\u3057\u3001\u30bc\u30ed\u3067\u6e80\u305f\u3055\u308c\u305f\u65b0\u3057\u3044\u914d\u5217\u3092\u8fd4\u3057\u3001\u305d\u306e\u5f8c\u306e\u30c7\u30fc\u30bf\u3092\u30a8\u30f3\u30b3\u30fc\u30c9\u3057\u307e\u3059\u3002\u30b3\u30fc\u30c9\u306e\u6700\u5f8c\u306e2\u884c\u3067\u3001\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u4e0a\u3067\u5b9a\u7fa9\u3055\u308c\u305f\u95a2\u6570\u3092\u547c\u3073\u51fa\u3057\u3001\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u306e\u30bf\u30fc\u30b2\u30c3\u30c8\u5217\u309232\u30d3\u30c3\u30c8\u6d6e\u52d5\u5c0f\u6570\u70b9\u6570\u306b\u5909\u63db\u3057\u307e\u3059\u300232\u30d3\u30c3\u30c8\u6d6e\u52d5\u5c0f\u6570\u70b9\u6570\u306f\u3001\u7d047\u6841\u306e\u7cbe\u5ea6\u3092\u6301\u3064\u6d6e\u52d5\u5c0f\u6570\u70b9\u6570\u3067\u3059\u3002\u30bf\u30fc\u30b2\u30c3\u30c8\u5217\u309232\u30d3\u30c3\u30c8\u6d6e\u52d5\u5c0f\u6570\u70b9\u6570\u306b\u5909\u63db\u3059\u308b\u3053\u3068\u3067\u3001\u5217\u306e\u7cbe\u5ea6\u3068\u305d\u308c\u306b\u4f34\u3046\u30c7\u30a3\u30fc\u30d7\u30e9\u30fc\u30cb\u30f3\u30b0\u30e2\u30c7\u30eb\u304c\u5411\u4e0a\u3057\u307e\u3059\u3002<\/p>\n<p>\u30c7\u30fc\u30bf\u306e\u6e96\u5099\u306e\u6700\u7d42\u6bb5\u968e\u3068\u3057\u3066\u3001\u30c7\u30fc\u30bf\u3092\u30c8\u30ec\u30fc\u30cb\u30f3\u30b0\u30bb\u30c3\u30c8\u3068\u30c6\u30b9\u30c8\u30bb\u30c3\u30c8\u306b\u5206\u5272\u3057\u307e\u3059\u300240,000\u4ef6\u306e\u30ec\u30d3\u30e5\u30fc\u3092\u30c8\u30ec\u30fc\u30cb\u30f3\u30b0\u30bb\u30c3\u30c8\u306b\u5165\u308c\u300110,000\u4ef6\u3092\u30c6\u30b9\u30c8\u30bb\u30c3\u30c8\u306b\u5165\u308c\u308b\u3053\u3068\u3067\u3001\u5148\u307b\u3069\u8aac\u660e\u3057\u305f80\/20\u306e\u5206\u5272\u3092\u63d0\u4f9b\u3057\u307e\u3059\u3002<\/p>\n<p>\u65b0\u3057\u3044\u30bb\u30eb\u3067\u3053\u308c\u3089\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u3092\u5206\u5272\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<div>\u30cb\u30e5\u30fc\u30e9\u30eb\u30cd\u30c3\u30c8\u30ef\u30fc\u30af.ipynb<\/div>\n<pre class=\"post-pre\"><code>test_x <span class=\"token operator\">=<\/span> data<span class=\"token punctuation\">[<\/span><span class=\"token punctuation\">:<\/span><span class=\"token number\">10000<\/span><span class=\"token punctuation\">]<\/span>\r\ntest_y <span class=\"token operator\">=<\/span> targets<span class=\"token punctuation\">[<\/span><span class=\"token punctuation\">:<\/span><span class=\"token number\">10000<\/span><span class=\"token punctuation\">]<\/span>\r\ntrain_x <span class=\"token operator\">=<\/span> data<span class=\"token punctuation\">[<\/span><span class=\"token number\">40000<\/span><span class=\"token punctuation\">:<\/span><span class=\"token punctuation\">]<\/span>\r\ntrain_y <span class=\"token operator\">=<\/span> targets<span class=\"token punctuation\">[<\/span><span class=\"token number\">40000<\/span><span class=\"token punctuation\">:<\/span><span class=\"token punctuation\">]<\/span>\r\n<\/code><\/pre>\n<p>\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u306f\u3001\u30c6\u30b9\u30c8\u30bb\u30c3\u30c8\u3068\u30c8\u30ec\u30fc\u30cb\u30f3\u30b0\u30bb\u30c3\u30c8\u306b1\uff1a4\u306e\u6bd4\u7387\u3067\u5206\u5272\u3055\u308c\u3066\u304a\u308a\u3001\u30c8\u30ec\u30fc\u30cb\u30f3\u30b0\u30bb\u30c3\u30c8\u3068\u30c6\u30b9\u30c8\u30bb\u30c3\u30c8\u306e\u76ee\u6a19\u5024\u306f\u305d\u308c\u305e\u308ctrain_y\u3068test_y\u3068\u3057\u3066\u4fdd\u5b58\u3055\u308c\u3001\u30ec\u30d3\u30e5\u30fc\u306f\u30c8\u30ec\u30fc\u30cb\u30f3\u30b0\u30bb\u30c3\u30c8\u3068\u30c6\u30b9\u30c8\u30bb\u30c3\u30c8\u306b\u305d\u308c\u305e\u308ctrain_x\u3068test_x\u3068\u3057\u3066\u4fdd\u5b58\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u306e\u5206\u5272\u306b\u3088\u308a\u3001\u30e2\u30c7\u30eb\u306f\u65b0\u3057\u3044\u30c7\u30fc\u30bf\u3067\u30c6\u30b9\u30c8\u3084\u8a55\u4fa1\u3092\u884c\u3046\u3060\u3051\u3067\u306a\u304f\u3001\u904e\u5b66\u7fd2\u3092\u907f\u3051\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u904e\u5b66\u7fd2\u3068\u306f\u3001\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\u304c\u30c8\u30ec\u30fc\u30cb\u30f3\u30b0\u30c7\u30fc\u30bf\u3092\u904e\u5270\u306b\u30e2\u30c7\u30eb\u5316\u3059\u308b\u72b6\u6cc1\u3067\u3059\u3002<\/p>\n<p>\u3053\u306e\u30b9\u30c6\u30c3\u30d7\u3067\u306f\u3001\u30c7\u30fc\u30bf\u3092\u6e96\u5099\u3057\u3001\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u3092\u30c8\u30ec\u30fc\u30cb\u30f3\u30b0\u30bb\u30c3\u30c8\u3068\u30c6\u30b9\u30c8\u30bb\u30c3\u30c8\u306b\u5206\u3051\u307e\u3057\u305f\u3002\u751f\u30c7\u30fc\u30bf\u3092\u30c7\u30a3\u30fc\u30d7\u30e9\u30fc\u30cb\u30f3\u30b0\u30e2\u30c7\u30eb\u3067\u4f7f\u7528\u3067\u304d\u308b\u7279\u5fb4\u306b\u5909\u63db\u3057\u307e\u3057\u305f\u3002\u30c8\u30ec\u30fc\u30cb\u30f3\u30b0\u7528\u306b\u30c7\u30fc\u30bf\u3092\u6e96\u5099\u3057\u305f\u306e\u3067\u3001\u3053\u308c\u304b\u3089\u30c7\u30a3\u30fc\u30d7\u30e9\u30fc\u30cb\u30f3\u30b0\u30e2\u30c7\u30eb\u304c\u4f7f\u7528\u3059\u308b\u30cb\u30e5\u30fc\u30e9\u30eb\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u3092\u69cb\u7bc9\u3057\u3001\u30c8\u30ec\u30fc\u30cb\u30f3\u30b0\u3092\u884c\u3044\u307e\u3059\u3002<\/p>\n<h2>\u30b9\u30c6\u30c3\u30d74 &#8211; \u30cb\u30e5\u30fc\u30e9\u30eb\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u306e\u69cb\u7bc9\u3068\u30c8\u30ec\u30fc\u30cb\u30f3\u30b0<\/h2>\n<p>\u3042\u306a\u305f\u306f\u4eca\u3001\u3042\u306a\u305f\u81ea\u8eab\u306e\u30cb\u30e5\u30fc\u30e9\u30eb\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u3092\u69cb\u7bc9\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u6700\u521d\u306b\u3001\u69cb\u7bc9\u3057\u305f\u3044\u30e2\u30c7\u30eb\u306e\u30bf\u30a4\u30d7\u3092\u5b9a\u7fa9\u3057\u307e\u3059\u3002Keras\u3067\u306f\u3001Model Sequential API\u3068Functional API\u306e2\u3064\u306e\u30e2\u30c7\u30eb\u306e\u30bf\u30a4\u30d7\u304c\u5229\u7528\u53ef\u80fd\u3067\u3059\u3002\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u306f\u3001\u30ec\u30a4\u30e4\u30fc\u3092\u4e00\u3064\u305a\u3064\u4f5c\u6210\u3067\u304d\u308bSequential API\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<div class=\"post-conf-note\">\n<p class=\"post-conf-desc\">Note<\/p>\n<div>\u6ce8\u610f\uff1a\u3088\u308a\u8907\u96d1\u306a\u30c7\u30a3\u30fc\u30d7\u30e9\u30fc\u30cb\u30f3\u30b0\u30e2\u30c7\u30eb\u306e\u5834\u5408\u306f\u3001Functional API \u3092\u4f7f\u7528\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002Sequential API \u3067\u306f\u3001\u30ec\u30a4\u30e4\u30fc\u3092\u5171\u6709\u3057\u305f\u308a\u3001\u8907\u6570\u306e\u5165\u529b\u3084\u51fa\u529b\u3092\u6301\u3064\u30e2\u30c7\u30eb\u3092\u4f5c\u6210\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u305b\u3093\u3002\u305f\u3060\u3057\u3001\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u306f\u3001Sequential API \u3067\u5341\u5206\u3067\u3059\u3002<\/div>\n<\/div>\n<p>\u65b0\u3057\u3044\u30bb\u30eb\u3067\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066\u3001\u30e2\u30c7\u30eb\u3092\u30b7\u30fc\u30b1\u30f3\u30b7\u30e3\u30eb\u30e2\u30c7\u30eb\u3068\u3057\u3066\u8a2d\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<div>\u30cb\u30e5\u30fc\u30e9\u30eb\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u306e.ipynb\u30d5\u30a1\u30a4\u30eb<\/div>\n<pre class=\"post-pre\"><code>model <span class=\"token operator\">=<\/span> models<span class=\"token punctuation\">.<\/span>Sequential<span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span>\r\n<\/code><\/pre>\n<div class=\"post-conf-note\">\n<p class=\"post-conf-desc\">Note<\/p>\n<div>\u6ce8\u610f\uff1a\u3053\u306e\u6642\u70b9\u3067\u5225\u306eTensorFlow\u306e\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3059\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002\u305d\u308c\u306f\u3001\u9069\u5207\u306a\u30b3\u30f3\u30d1\u30a4\u30e9\u30bf\u30b0\u3067TensorFlow\u3092\u518d\u69cb\u7bc9\u3059\u308b\u3088\u3046\u306b\u3068\u3044\u3046\u30a8\u30e9\u30fc\u3067\u3059\u3002\u3053\u306e\u30a8\u30e9\u30fc\u306f\u524d\u306e\u30a8\u30e9\u30fc\u3068\u95a2\u9023\u3057\u3066\u304a\u308a\u3001TensorFlow 2.x\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u306fCPU\u3068GPU\u306e\u4e21\u65b9\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u308b\u305f\u3081\u3001TensorFlow\u306fGPU\u30c9\u30e9\u30a4\u30d0\u3092\u63a2\u3057\u3066\u3044\u307e\u3059\u3002\u3053\u306e\u8b66\u544a\u306f\u5b89\u5168\u306b\u7121\u8996\u3057\u3066\u3082\u69cb\u3044\u307e\u305b\u3093\u3002\u305d\u308c\u306f\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u306e\u7d50\u679c\u306b\u306f\u5f71\u97ff\u3057\u307e\u305b\u3093\u3002<\/div>\n<\/div>\n<p>\u30c7\u30a3\u30fc\u30d7\u30e9\u30fc\u30cb\u30f3\u30b0\u30e2\u30c7\u30eb\u306e\u57fa\u76e4\u3068\u306a\u308b\u306e\u306f\u30ec\u30a4\u30e4\u30fc\u3067\u3059\u306e\u3067\u3001\u6b21\u306b\u5165\u529b\u5c64\u3001\u96a0\u308c\u5c64\u3001\u51fa\u529b\u5c64\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002\u5404\u5c64\u306b\u306fdense\u3092\u4f7f\u7528\u3057\u3001\u904e\u5b66\u7fd2\u3092\u9632\u3050\u305f\u3081\u306bdropout\u3092\u5229\u7528\u3057\u307e\u3059\u3002<\/p>\n<p>\u65b0\u3057\u3044\u30bb\u30eb\u3067\u3053\u308c\u3089\u306e\u884c\u3092\u5b9f\u884c\u3057\u3001\u30ec\u30a4\u30e4\u30fc\u3092\u8ffd\u52a0\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<div>\u30cb\u30e5\u30fc\u30e9\u30eb\u30cd\u30c3\u30c8\u30ef\u30fc\u30af.ipynb<\/div>\n<pre class=\"post-pre\"><code><span class=\"token comment\"># Input - Layer<\/span>\r\nmodel<span class=\"token punctuation\">.<\/span>add<span class=\"token punctuation\">(<\/span>layers<span class=\"token punctuation\">.<\/span>Dense<span class=\"token punctuation\">(<\/span><span class=\"token number\">50<\/span><span class=\"token punctuation\">,<\/span> activation <span class=\"token operator\">=<\/span> <span class=\"token string\">\"relu\"<\/span><span class=\"token punctuation\">,<\/span> input_shape<span class=\"token operator\">=<\/span><span class=\"token punctuation\">(<\/span><span class=\"token number\">10000<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">)<\/span>\r\n<span class=\"token comment\"># Hidden - Layers<\/span>\r\nmodel<span class=\"token punctuation\">.<\/span>add<span class=\"token punctuation\">(<\/span>layers<span class=\"token punctuation\">.<\/span>Dropout<span class=\"token punctuation\">(<\/span><span class=\"token number\">0.3<\/span><span class=\"token punctuation\">,<\/span> noise_shape<span class=\"token operator\">=<\/span><span class=\"token boolean\">None<\/span><span class=\"token punctuation\">,<\/span> seed<span class=\"token operator\">=<\/span><span class=\"token boolean\">None<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">)<\/span>\r\nmodel<span class=\"token punctuation\">.<\/span>add<span class=\"token punctuation\">(<\/span>layers<span class=\"token punctuation\">.<\/span>Dense<span class=\"token punctuation\">(<\/span><span class=\"token number\">50<\/span><span class=\"token punctuation\">,<\/span> activation <span class=\"token operator\">=<\/span> <span class=\"token string\">\"relu\"<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">)<\/span>\r\nmodel<span class=\"token punctuation\">.<\/span>add<span class=\"token punctuation\">(<\/span>layers<span class=\"token punctuation\">.<\/span>Dropout<span class=\"token punctuation\">(<\/span><span class=\"token number\">0.2<\/span><span class=\"token punctuation\">,<\/span> noise_shape<span class=\"token operator\">=<\/span><span class=\"token boolean\">None<\/span><span class=\"token punctuation\">,<\/span> seed<span class=\"token operator\">=<\/span><span class=\"token boolean\">None<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">)<\/span>\r\nmodel<span class=\"token punctuation\">.<\/span>add<span class=\"token punctuation\">(<\/span>layers<span class=\"token punctuation\">.<\/span>Dense<span class=\"token punctuation\">(<\/span><span class=\"token number\">50<\/span><span class=\"token punctuation\">,<\/span> activation <span class=\"token operator\">=<\/span> <span class=\"token string\">\"relu\"<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">)<\/span>\r\n<span class=\"token comment\"># Output- Layer<\/span>\r\nmodel<span class=\"token punctuation\">.<\/span>add<span class=\"token punctuation\">(<\/span>layers<span class=\"token punctuation\">.<\/span>Dense<span class=\"token punctuation\">(<\/span><span class=\"token number\">1<\/span><span class=\"token punctuation\">,<\/span> activation <span class=\"token operator\">=<\/span> <span class=\"token string\">\"sigmoid\"<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">)<\/span>\r\nmodel<span class=\"token punctuation\">.<\/span>summary<span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span>\r\n<\/code><\/pre>\n<p>\u96a0\u308c\u5c64\u3067Relu\u95a2\u6570\u3092\u4f7f\u7528\u3059\u308b\u7406\u7531\u306f\u3001\u305d\u308c\u304c\u671b\u307e\u3057\u3044\u7d50\u679c\u3092\u751f\u6210\u3059\u308b\u304b\u3089\u3067\u3059\u3002Relu\u306fRectified Linear Unit\u306e\u7565\u3067\u3042\u308a\u3001\u3053\u306e\u95a2\u6570\u306f\u8ca0\u306e\u5165\u529b\u3092\u53d7\u3051\u53d6\u308b\u30680\u3092\u8fd4\u3057\u3001\u6b63\u306e\u5024\u3092\u53d7\u3051\u53d6\u308b\u3068\u305d\u306e\u5024\u3092\u8fd4\u3057\u307e\u3059\u3002\u3053\u306e\u95a2\u6570\u3092\u6700\u521d\u306e\u5c64\u306b\u8ffd\u52a0\u3059\u308b\u3053\u3068\u3067\u3001\u8ca0\u306e\u5024\u30920\u306b\u5909\u63db\u3057\u307e\u3059\u3002\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u306f\u3001Relu\u95a2\u6570\u306b\u3088\u3063\u3066\u5165\u529b\u5c64\u306b\u5165\u529b\u3055\u308c\u308b\u5024\u306f\u5e38\u306b\u6b63\u306e\u5024\u306b\u306a\u308b\u305f\u3081\u3001\u30cb\u30e5\u30fc\u30e9\u30eb\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u306e\u5165\u529b\u306b\u5fc5\u8981\u306a\u6761\u4ef6\u3092\u6e80\u305f\u3057\u307e\u3059\u3002<\/p>\n<p>\u51fa\u529b\u5c64\u3067\u306f\u3001\u5024\u304c0\u30681\u306b\u30de\u30c3\u30d4\u30f3\u30b0\u3055\u308c\u308b\u30b7\u30b0\u30e2\u30a4\u30c9\u95a2\u6570\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002\u51fa\u529b\u306f\u6b63\uff081\uff09\u307e\u305f\u306f\u8ca0\uff080\uff09\u3067\u3059\u306e\u3067\u3001\u30b7\u30b0\u30e2\u30a4\u30c9\u95a2\u6570\u306b\u3088\u3063\u3066\u51fa\u529b\u5c64\u306f0\u307e\u305f\u306f1\u306e\u51fa\u529b\u3092\u751f\u6210\u3059\u308b\u3053\u3068\u304c\u4fdd\u8a3c\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u6700\u5f8c\u306b\u3001keras\u306b\u30e2\u30c7\u30eb\u306e\u6982\u8981\u3092\u8868\u793a\u3055\u305b\u307e\u3059\u3002<\/p>\n<p>\u3042\u306a\u305f\u306f\u3001\u305f\u3063\u305f\u4eca\u30c8\u30ec\u30fc\u30cb\u30f3\u30b0\u3057\u305f\u30e2\u30c7\u30eb\u306e\u7279\u5fb4\u306e\u6982\u8981\u3092\u53d7\u3051\u53d6\u308a\u307e\u3059\u3002 (Anata wa, tatta ima tore\u0304ningu shita moderu no tokuch\u014d no gaiy\u014d o uketori masu.)<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<div class=\"secondary-code-label\" title=\"Output\">Output<\/div>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>Model: &#8220;sequential&#8221; _________________________________________________________________ Layer (type) Output Shape Param # ================================================================= dense (Dense) (None, 50) 500050 dropout (Dropout) (None, 50) 0 dense_1 (Dense) (None, 50) 2550 dropout_1 (Dropout) (None, 50) 0 dense_2 (Dense) (None, 50) 2550 dense_3 (Dense) (None, 1) 51 ================================================================= Total params: 505,201 Trainable params: 505,201 Non-trainable params: 0 _________________________________________________________________ \u200b<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u6b21\u306b\u3001\u30c8\u30ec\u30fc\u30cb\u30f3\u30b0\u306e\u305f\u3081\u306b\u30e2\u30c7\u30eb\u3092\u30b3\u30f3\u30d1\u30a4\u30eb\u3057\u3066\u8a2d\u5b9a\u3057\u307e\u3059\u3002\u30c8\u30ec\u30fc\u30cb\u30f3\u30b0\u4e2d\u306b\u91cd\u307f\u3068\u30d0\u30a4\u30a2\u30b9\u3092\u5909\u5316\u3055\u305b\u308b\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\u3067\u3042\u308bAdam\u30aa\u30d7\u30c6\u30a3\u30de\u30a4\u30b6\u3092\u4f7f\u7528\u3057\u3001\u640d\u5931\u95a2\u6570\u306b\u306f\u30d0\u30a4\u30ca\u30ea\u30af\u30ed\u30b9\u30a8\u30f3\u30c8\u30ed\u30d4\u30fc\u3001\u8a55\u4fa1\u6307\u6a19\u306b\u306f\u6b63\u89e3\u7387\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002\u640d\u5931\u95a2\u6570\u306f\u3001\u30e2\u30c7\u30eb\u304c\u30c8\u30ec\u30fc\u30cb\u30f3\u30b0\u4e2d\u306b\u6700\u5c0f\u5316\u3059\u3079\u304d\u91cf\u3092\u8a08\u7b97\u3057\u307e\u3059\u3002\u3053\u306e\u5834\u5408\u3001\u30af\u30ed\u30b9\u30a8\u30f3\u30c8\u30ed\u30d4\u30fc\u640d\u5931\u306f\u771f\u306e\u30e9\u30d9\u30eb\u3068\u4e88\u6e2c\u30e9\u30d9\u30eb\u306e\u9593\u306e\u8ddd\u96e2\u3092\u6e2c\u308b\u4e0a\u3067\u3001\u30d0\u30a4\u30ca\u30ea\uff080\u307e\u305f\u306f1\uff09\u5206\u985e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306b\u304a\u3044\u3066\u512a\u308c\u305f\u6307\u6a19\u3067\u3059\u3002<\/p>\n<p>\u6b21\u306e\u30bb\u30eb\u3067\u30e2\u30c7\u30eb\u3092\u30b3\u30f3\u30d1\u30a4\u30eb\u3059\u308b\u305f\u3081\u306b\u3001\u6b21\u306e\u884c\u3092\u5b9f\u884c\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<div>\u30cb\u30e5\u30fc\u30e9\u30eb\u30cd\u30c3\u30c8\u30ef\u30fc\u30af.ipynb<\/div>\n<pre class=\"post-pre\"><code>model<span class=\"token punctuation\">.<\/span><span class=\"token builtin\">compile<\/span><span class=\"token punctuation\">(<\/span>\r\noptimizer <span class=\"token operator\">=<\/span> <span class=\"token string\">\"adam\"<\/span><span class=\"token punctuation\">,<\/span>\r\nloss <span class=\"token operator\">=<\/span> <span class=\"token string\">\"binary_crossentropy\"<\/span><span class=\"token punctuation\">,<\/span>\r\nmetrics <span class=\"token operator\">=<\/span> <span class=\"token punctuation\">[<\/span><span class=\"token string\">\"accuracy\"<\/span><span class=\"token punctuation\">]<\/span>\r\n<span class=\"token punctuation\">)<\/span>\r\n<\/code><\/pre>\n<p>compile()\u95a2\u6570\u306f\u3001\u30e2\u30c7\u30eb\u306e\u30a2\u30fc\u30ad\u30c6\u30af\u30c1\u30e3\u3092\u5b9a\u7fa9\u3057\u307e\u3059\u3002\u3053\u306e\u5b9a\u7fa9\u306e\u4e2d\u3067\u3001\u30e2\u30c7\u30eb\u306e\u30aa\u30d7\u30c6\u30a3\u30de\u30a4\u30b6\u3068\u3057\u3066adam\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\u3092\u5b9f\u88c5\u3057\u307e\u3059\u3002\u3053\u306e\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\u306f\u3001\u4e00\u6b21\u304a\u3088\u3073\u4e8c\u6b21\u30e2\u30fc\u30e1\u30f3\u30c8\u3092\u8fd1\u4f3c\u3059\u308b\u3053\u3068\u306b\u57fa\u3065\u3044\u305f\u52fe\u914d\u964d\u4e0b\u6cd5\u306e\u624b\u6cd5\u3067\u3059\u3002\u30e1\u30c8\u30ea\u30c3\u30af\u304a\u3088\u3073\u30ed\u30b9\u30d1\u30e9\u30e1\u30fc\u30bf\u306f\u975e\u5e38\u306b\u95a2\u9023\u3057\u3066\u3044\u307e\u3059\u3002\u30e1\u30c8\u30ea\u30c3\u30af\u30d1\u30e9\u30e1\u30fc\u30bf\u306f\u30e2\u30c7\u30eb\u306e\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u3092\u5224\u65ad\u3059\u308b\u65b9\u6cd5\u3092\u5b9a\u7fa9\u3057\u3001\u30ed\u30b9\u30d1\u30e9\u30e1\u30fc\u30bf\u306f\u30c8\u30ec\u30fc\u30cb\u30f3\u30b0\u4e2d\u306b\u30e2\u30c7\u30eb\u304c\u6700\u5c0f\u5316\u3057\u3088\u3046\u3068\u3059\u308b\u91cf\u3092\u5b9a\u7fa9\u3057\u307e\u3059\u3002\u3053\u3053\u3067\u306f\u3001\u30e1\u30c8\u30ea\u30c3\u30af\u306f\u6b63\u89e3\u7387\uff08\u30e2\u30c7\u30eb\u304c\u6b63\u3057\u304f\u4e88\u6e2c\u3059\u308b\u5272\u5408\uff09\u3067\u3042\u308a\u3001\u30ed\u30b9\u306fbinary_crossentropy\uff08\u30e9\u30d9\u30eb\u3068\u4e88\u6e2c\u5024\u306e\u9593\u306e\u30e1\u30c8\u30ea\u30c3\u30af\u3067\u3042\u308a\u3001\u30e9\u30d9\u30eb\u30af\u30e9\u30b9\u304c2\u3064\u3057\u304b\u306a\u3044\u5834\u5408\u306b\u4f7f\u7528\u3055\u308c\u308b\uff09\u3067\u3059\u3002<\/p>\n<p>\u4eca\u3001\u30e2\u30c7\u30eb\u3092\u30c8\u30ec\u30fc\u30cb\u30f3\u30b0\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002\u305d\u306e\u305f\u3081\u306b\u3001\u30d0\u30c3\u30c1\u30b5\u30a4\u30ba32\u30682\u3064\u306e\u30a8\u30dd\u30c3\u30af\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002\u30d0\u30c3\u30c1\u30b5\u30a4\u30ba\u306f\u30cb\u30e5\u30fc\u30e9\u30eb\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u3092\u901a\u904e\u3059\u308b\u30b5\u30f3\u30d7\u30eb\u306e\u6570\u3067\u3042\u308a\u3001\u30a8\u30dd\u30c3\u30af\u306f\u30c8\u30ec\u30fc\u30cb\u30f3\u30b0\u30c7\u30fc\u30bf\u5168\u4f53\u3092\u7e70\u308a\u8fd4\u3057\u51e6\u7406\u3059\u308b\u3053\u3068\u3092\u610f\u5473\u3057\u307e\u3059\u3002\u30d0\u30c3\u30c1\u30b5\u30a4\u30ba\u304c\u5927\u304d\u3044\u307b\u3069\u30c8\u30ec\u30fc\u30cb\u30f3\u30b0\u306f\u901f\u304f\u306a\u308a\u307e\u3059\u304c\u3001\u53ce\u675f\u3059\u308b\u307e\u3067\u306b\u6642\u9593\u304c\u304b\u304b\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002\u9006\u306b\u3001\u30d0\u30c3\u30c1\u30b5\u30a4\u30ba\u304c\u5c0f\u3055\u3044\u3068\u30c8\u30ec\u30fc\u30cb\u30f3\u30b0\u306f\u9045\u304f\u306a\u308a\u307e\u3059\u304c\u3001\u53ce\u675f\u304c\u65e9\u304f\u306a\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u6b21\u306b\u3001\u3053\u308c\u3089\u306e\u884c\u3092\u6b21\u306e\u30bb\u30eb\u3067\u5b9f\u884c\u3057\u3066\u3001\u30e2\u30c7\u30eb\u306e\u30c8\u30ec\u30fc\u30cb\u30f3\u30b0\u3092\u59cb\u3081\u307e\u3057\u3087\u3046\u3002\u5165\u529b\u3092\u5165\u529b\u306b\u6b63\u3057\u304f\u30de\u30c3\u30d4\u30f3\u30b0\u3059\u308b\u305f\u3081\u306e\u3059\u3079\u3066\u306e\u30d1\u30e9\u30e1\u30fc\u30bf\u3092\u9069\u5207\u306a\u5024\u306b\u3059\u308b\u305f\u3081\u306e\u30e2\u30c7\u30eb\u30c8\u30ec\u30fc\u30cb\u30f3\u30b0\u3092\u958b\u59cb\u3057\u307e\u3059\u3002<\/p>\n<div>\u30cb\u30e5\u30fc\u30e9\u30eb\u30cd\u30c3\u30c8\u30ef\u30fc\u30af.ipynb<\/div>\n<pre class=\"post-pre\"><code>results <span class=\"token operator\">=<\/span> model<span class=\"token punctuation\">.<\/span>fit<span class=\"token punctuation\">(<\/span>\r\ntrain_x<span class=\"token punctuation\">,<\/span> train_y<span class=\"token punctuation\">,<\/span>\r\nepochs<span class=\"token operator\">=<\/span> <span class=\"token number\">2<\/span><span class=\"token punctuation\">,<\/span>\r\nbatch_size <span class=\"token operator\">=<\/span> <span class=\"token number\">32<\/span><span class=\"token punctuation\">,<\/span>\r\nvalidation_data <span class=\"token operator\">=<\/span> <span class=\"token punctuation\">(<\/span>test_x<span class=\"token punctuation\">,<\/span> test_y<span class=\"token punctuation\">)<\/span>\r\n<span class=\"token punctuation\">)<\/span>\r\n<\/code><\/pre>\n<p>\u30e2\u30c7\u30eb\u3092.fit()\u95a2\u6570\u3092\u4f7f\u3063\u3066\u8a13\u7df4\u3057\u307e\u3059\u3002\u3053\u306e\u95a2\u6570\u306f\u3001\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u306b\u5bfe\u3057\u3066\u56fa\u5b9a\u56de\u6570\u306e\u30a4\u30c6\u30ec\u30fc\u30b7\u30e7\u30f3\u3067\u30c7\u30a3\u30fc\u30d7\u30e9\u30fc\u30cb\u30f3\u30b0\u30e2\u30c7\u30eb\u3092\u5b66\u7fd2\u3055\u305b\u307e\u3059\u3002\u3053\u306e\u95a2\u6570\u306b\u306f2\u3064\u306e\u5fc5\u9808\u30d1\u30e9\u30e1\u30fc\u30bf\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<ul class=\"post-ul\">\n<li>train_x refers to the input data.<\/li>\n<li>train_y refers to the target data for the training set on which the data will be trained and can take other parameters.<\/li>\n<\/ul>\n<p>\u4ed6\u306e\u30d1\u30e9\u30e1\u30fc\u30bf\u30fc\u306b\u306f\u3001\u4ee5\u4e0b\u306e\u3082\u306e\u304c\u542b\u307e\u308c\u307e\u3059\u3002 (Hoka no param\u0113t\u0101 niwa, ika no mono ga fukumaremasu.)<\/p>\n<ul class=\"post-ul\">\n<li>epochs (the number of epochs to train the model where an epoch is an iteration over the entire data provided).<\/li>\n<li>batch_size (the number of samples per gradient update).<\/li>\n<li>validation_data (the data on which the model will evaluate the loss at the end of each epoch).<\/li>\n<\/ul>\n<p>\u3053\u306e\u30b3\u30fc\u30c9\u306f2\u30a8\u30dd\u30c3\u30af\u3068\u30d0\u30c3\u30c1\u30b5\u30a4\u30ba32\u3092\u4f7f\u7528\u3057\u3066\u30e2\u30c7\u30eb\u3092\u8a13\u7df4\u3057\u307e\u3059\u3002\u3064\u307e\u308a\u3001\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u5168\u4f53\u304c\u30cb\u30e5\u30fc\u30e9\u30eb\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u3092\u901a\u904e\u3057\u3001\u5404\u53cd\u5fa9\u3054\u3068\u306b32\u306e\u8a13\u7df4\u4f8b\u304c\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002\u691c\u8a3c\u30c7\u30fc\u30bf\u306ftest_x\u3068test_y\u3068\u3057\u3066\u63d0\u4f9b\u3055\u308c\u307e\u3059\u3002<\/p>\n<div class=\"post-conf-note\">\n<p class=\"post-conf-desc\">Note<\/p>\n<div>\u6ce8\u610f\uff1a\u611f\u60c5\u5206\u6790\u30e2\u30c7\u30eb\u306e\u30c8\u30ec\u30fc\u30cb\u30f3\u30b0\u306fRAM\u3092\u591a\u304f\u6d88\u8cbb\u3057\u307e\u3059\u30028GB\u306eRAM\u30b5\u30fc\u30d0\u30fc\u3067\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001\u4ee5\u4e0b\u306e\u8b66\u544a\u304c\u8868\u793a\u3055\u308c\u308b\u5834\u5408\u304c\u3042\u308a\u307e\u3059\uff1ax\u306e\u5272\u308a\u5f53\u3066\u304c\u5229\u7528\u53ef\u80fd\u306a\u30b7\u30b9\u30c6\u30e0\u30e1\u30e2\u30ea\u306e10\uff05\u3092\u8d85\u3048\u3066\u3044\u307e\u3059\u3002\u3053\u306e\u8b66\u544a\u306f\u3001\u30c8\u30ec\u30fc\u30cb\u30f3\u30b0\u304c\u5229\u7528\u53ef\u80fd\u306a\u30b7\u30b9\u30c6\u30e0\u30e1\u30e2\u30ea\u306e\u304b\u306a\u308a\u306e\u90e8\u5206\u3092\u4f7f\u7528\u3057\u3066\u304a\u308a\u3001\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u306e\u6b8b\u308a\u306b\u306f\u5f71\u97ff\u3057\u306a\u3044\u3053\u3068\u3092\u793a\u3057\u3066\u3044\u308b\u3060\u3051\u306a\u306e\u3067\u3001\u7121\u8996\u3057\u3066\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3092\u7d9a\u3051\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/div>\n<\/div>\n<p>\u3053\u306e\u30b9\u30c6\u30c3\u30d7\u3067\u306f\u3001\u6e96\u5099\u3057\u305f\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u3067\u30c7\u30a3\u30fc\u30d7\u30e9\u30fc\u30cb\u30f3\u30b0\u30e2\u30c7\u30eb\u3092\u69cb\u7bc9\u3057\u3001\u8a13\u7df4\u3057\u307e\u3057\u305f\u3002\u6b21\u306b\u3001\u3053\u306e\u30b9\u30c6\u30c3\u30d7\u3067\u751f\u6210\u3055\u308c\u305f\u691c\u8a3c\u30c7\u30fc\u30bf\u3092\u4f7f\u7528\u3057\u3066\u3001\u5225\u306e\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u306b\u5bfe\u3059\u308b\u30e2\u30c7\u30eb\u306e\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u3092\u8a55\u4fa1\u3057\u307e\u3059\u3002<\/p>\n<h2>\u30b9\u30c6\u30c3\u30d75 &#8211; \u30e2\u30c7\u30eb\u306e\u8a55\u4fa1\u3092\u884c\u3044\u307e\u3059\u3002<\/h2>\n<p>\u3053\u306e\u30b9\u30c6\u30c3\u30d7\u3067\u30e2\u30c7\u30eb\u3092\u8a55\u4fa1\u3057\u307e\u3059\u3002\u30e2\u30c7\u30eb\u306e\u8a55\u4fa1\u306f\u6a5f\u68b0\u5b66\u7fd2\u306e\u6539\u5584\u3068\u958b\u767a\u30d7\u30ed\u30bb\u30b9\u306b\u304a\u3044\u3066\u91cd\u8981\u3067\u3059\u3002\u3053\u306e\u8a55\u4fa1\u306b\u3088\u308a\u3001\u30c7\u30fc\u30bf\u3092\u6700\u3082\u9069\u5207\u306b\u8868\u73fe\u3059\u308b\u30e2\u30c7\u30eb\u3084\u3001\u9078\u629e\u3057\u305f\u30e2\u30c7\u30eb\u306e\u6027\u80fd\u3092\u898b\u3064\u3051\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u6a5f\u68b0\u5b66\u7fd2\u306e\u5206\u985e\u30e2\u30c7\u30eb\u306b\u306f\u3001\u4e3b\u8981\u306a\u30e2\u30c7\u30eb\u8a55\u4fa1\u30e1\u30c8\u30ea\u30c3\u30af\u30b9\u3068\u3057\u3066\u3001\u6b63\u89e3\u7387\u3001\u9069\u5408\u7387\u3001\u518d\u73fe\u7387\u3001F1\u30b9\u30b3\u30a2\u306e4\u3064\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u6b63\u78ba\u6027\u306f\u4e00\u822c\u7684\u306b\u4f7f\u7528\u3055\u308c\u308b\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u6307\u6a19\u3067\u3042\u308a\u3001\u30e2\u30c7\u30eb\u304c\u6b63\u3057\u304f\u4e88\u6e2c\u3057\u305f\u5272\u5408\u3092\u8a55\u4fa1\u3057\u307e\u3059\u3002\u6b63\u78ba\u6027\u306f\u3001\u6b63\u3057\u3044\u4e88\u6e2c\u306e\u6570\u3092\u4e88\u6e2c\u306e\u7dcf\u6570\u3067\u5272\u308b\u3053\u3068\u3067\u6c7a\u5b9a\u3055\u308c\u307e\u3059\u3002\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u306f\u3001\u30e2\u30c7\u30eb\u3092\u8a55\u4fa1\u3059\u308b\u305f\u3081\u306b\u6b63\u78ba\u6027\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u30e2\u30c7\u30eb\u306e\u6587\u8108\u306b\u304a\u3051\u308b\u300c\u7cbe\u5ea6\u300d\u3068\u306f\u3001\u4e88\u6e2c\u3055\u308c\u305f\u30dd\u30b8\u30c6\u30a3\u30d6\u306a\u6620\u753b\u306e\u30ec\u30d3\u30e5\u30fc\u306e\u7dcf\u6570\u306b\u5bfe\u3057\u3066\u6b63\u3057\u304f\u4e88\u6e2c\u3055\u308c\u305f\u30dd\u30b8\u30c6\u30a3\u30d6\u306a\u6620\u753b\u306e\u30ec\u30d3\u30e5\u30fc\u3092\u6307\u3057\u307e\u3059\u3002\u4e00\u65b9\u3001\u30ea\u30b3\u30fc\u30eb\u306f\u3001\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u3067\u8a55\u4fa1\u3055\u308c\u305f\u6620\u753b\u306e\u30ec\u30d3\u30e5\u30fc\u306e\u7dcf\u6570\u306b\u5bfe\u3057\u3066\u6b63\u3057\u304f\u4e88\u6e2c\u3055\u308c\u305f\u30dd\u30b8\u30c6\u30a3\u30d6\u306a\u6620\u753b\u306e\u30ec\u30d3\u30e5\u30fc\u306e\u5272\u5408\u3067\u3059\u3002\u7cbe\u5ea6\u306f\u3001\u300c\u3042\u306a\u305f\u306e\u30e2\u30c7\u30eb\u304c\u30dd\u30b8\u30c6\u30a3\u30d6\u3068\u30de\u30fc\u30af\u3057\u305f\u3059\u3079\u3066\u306e\u6620\u753b\u30ec\u30d3\u30e5\u30fc\u306e\u3046\u3061\u3001\u5b9f\u969b\u306b\u30dd\u30b8\u30c6\u30a3\u30d6\u3060\u3063\u305f\u3082\u306e\u306f\u4f55\u4ef6\u3067\u3059\u304b\uff1f\u300d\u3068\u3044\u3046\u554f\u3044\u306b\u7b54\u3048\u307e\u3059\u3002\u3053\u308c\u306b\u5bfe\u3057\u3066\u3001\u30ea\u30b3\u30fc\u30eb\u306f\u300c\u5b9f\u969b\u306b\u30dd\u30b8\u30c6\u30a3\u30d6\u306a\u3059\u3079\u3066\u306e\u6620\u753b\u306e\u30ec\u30d3\u30e5\u30fc\u306e\u3046\u3061\u3001\u30e2\u30c7\u30eb\u304c\u30dd\u30b8\u30c6\u30a3\u30d6\u3068\u30de\u30fc\u30af\u3057\u305f\u3082\u306e\u306f\u4f55\u4ef6\u3067\u3059\u304b\uff1f\u300d\u3068\u3044\u3046\u554f\u3044\u306b\u7b54\u3048\u307e\u3059\u3002F1\u30b9\u30b3\u30a2\u306f\u7cbe\u5ea6\u3068\u30ea\u30b3\u30fc\u30eb\u7d50\u679c\u306e\u52a0\u91cd\u5e73\u5747\u3067\u3059\u3002\u305d\u306e\u305f\u3081\u3001\u8aa4\u3063\u305f\u30ab\u30c6\u30b4\u30ea\u306b\u5206\u985e\u3055\u308c\u305f\u30ec\u30d3\u30e5\u30fc\u3082\u8003\u616e\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u306f\u3001\u30e2\u30c7\u30eb\u306e\u6027\u80fd\u3092\u6b63\u78ba\u6027\u3092\u4f7f\u3063\u3066\u8a55\u4fa1\u3057\u307e\u3059\u3002\u6b21\u306e\u30bb\u30eb\u3067\u3053\u306e\u30b3\u30fc\u30c9\u3092\u5b9f\u884c\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<div>\u30cb\u30e5\u30fc\u30e9\u30eb\u30cd\u30c3\u30c8\u30ef\u30fc\u30af.ipynb\u3092\u65e5\u672c\u8a9e\u3067\u8981\u7d04\u3059\u308b<\/div>\n<pre class=\"post-pre\"><code>scores <span class=\"token operator\">=<\/span> model<span class=\"token punctuation\">.<\/span>evaluate<span class=\"token punctuation\">(<\/span>test_x<span class=\"token punctuation\">,<\/span> test_y<span class=\"token punctuation\">,<\/span> verbose<span class=\"token operator\">=<\/span><span class=\"token number\">0<\/span><span class=\"token punctuation\">)<\/span>\r\n<span class=\"token keyword\">print<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string\">\"Accuracy: %.2f%%\"<\/span> <span class=\"token operator\">%<\/span> <span class=\"token punctuation\">(<\/span>scores<span class=\"token punctuation\">[<\/span><span class=\"token number\">1<\/span><span class=\"token punctuation\">]<\/span><span class=\"token operator\">*<\/span><span class=\"token number\">100<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">)<\/span>\r\n<\/code><\/pre>\n<p>\u3053\u306e\u30b3\u30fc\u30c9\u306f\u30e2\u30c7\u30eb\u306e\u7cbe\u5ea6\u30b9\u30b3\u30a2\u3092scores\u3068\u3044\u3046\u5909\u6570\u306b\u4fdd\u5b58\u3057\u3001\u305d\u308c\u3092\u753b\u9762\u306b\u8868\u793a\u3057\u307e\u3059\u3002.evaluate\u95a2\u6570\u306f3\u3064\u306e\u30d1\u30e9\u30e1\u30fc\u30bf\u30fc\u3092\u53d7\u3051\u53d6\u308a\u307e\u3059\u3002<\/p>\n<ul class=\"post-ul\">\n<li>x_test: the feature column for the test dataset.<\/li>\n<li>y_test: the target column for the test dataset.<\/li>\n<li>verbose: the mode of verbosity.<\/li>\n<\/ul>\n<p>\u4ee5\u4e0b\u306e\u51fa\u529b\u306f\u6b63\u78ba\u7387\u3068\u3068\u3082\u306b\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<div class=\"secondary-code-label\" title=\"Output\">Output<\/div>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>Accuracy: 86.59%<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u3053\u306e\u8a13\u7df4\u6e08\u307f\u306e\u30e2\u30c7\u30eb\u306e\u6b63\u78ba\u6027\u306f86.59%\u3067\u3059\u3002<\/p>\n<p>\u3053\u306e\u6b63\u78ba\u5ea6\u30b9\u30b3\u30a2\u306f\u3001\u3053\u306e\u30e2\u30c7\u30eb\u304c\u7d0410\u56de\u4e2d9\u56de\u3001\u30ec\u30d3\u30e5\u30fc\u304c\u80af\u5b9a\u7684\u304b\u5426\u5b9a\u7684\u304b\u3092\u6b63\u3057\u304f\u4e88\u6e2c\u3059\u308b\u3053\u3068\u3092\u793a\u3057\u3066\u3044\u307e\u3059\u3002\u3088\u308a\u9ad8\u3044\u6b63\u78ba\u5ea6\u3092\u6301\u3064\u5206\u985e\u5668\u3092\u4f5c\u6210\u3059\u308b\u305f\u3081\u306b\u3001\u30b3\u30fc\u30c9\u3092\u6539\u5584\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u30e2\u30c7\u30eb\u306e\u30a8\u30dd\u30c3\u30af\u6570\u3084\u30d0\u30c3\u30c1\u30b5\u30a4\u30ba\u3092\u5897\u3084\u3059\u3053\u3068\u3067\u3001\u30e2\u30c7\u30eb\u306e\u6027\u80fd\u3092\u5411\u4e0a\u3055\u305b\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u30c7\u30a3\u30fc\u30d7\u30e9\u30fc\u30cb\u30f3\u30b0\u30e2\u30c7\u30eb\uff08\u304a\u3088\u3073\u6a5f\u68b0\u5b66\u7fd2\u30e2\u30c7\u30eb\uff09\u306f\u3001\u4e0e\u3048\u3089\u308c\u305f\u30c7\u30fc\u30bf\u306e\u5f37\u529b\u3055\u306b\u6bd4\u4f8b\u3057\u307e\u3059\u3002\u3057\u305f\u304c\u3063\u3066\u3001\u30e2\u30c7\u30eb\u306e\u7cbe\u5ea6\u3092\u5411\u4e0a\u3055\u305b\u308b\u306b\u306f\u3001\u3088\u308a\u591a\u304f\u306e\u30c7\u30fc\u30bf\u3092\u8ffd\u52a0\u3059\u308b\u3053\u3068\u304c\u4e00\u822c\u7684\u306b\u884c\u308f\u308c\u307e\u3059\u3002\u3057\u304b\u3057\u3001\u3053\u306e\u30e2\u30c7\u30eb\u306b\u4f7f\u7528\u3055\u308c\u308b\u30c7\u30fc\u30bf\u306f\u7d44\u307f\u8fbc\u307e\u308c\u3066\u304a\u308a\u3001\u4fee\u6b63\u3059\u308b\u3053\u3068\u306f\u3067\u304d\u307e\u305b\u3093\u3002\u3053\u306e\u5834\u5408\u3001\u30e2\u30c7\u30eb\u306e\u7cbe\u5ea6\u3092\u5411\u4e0a\u3055\u305b\u308b\u305f\u3081\u306b\u306f\u3001\u30e2\u30c7\u30eb\u306b\u3055\u3089\u306a\u308b\u5c64\u3092\u8ffd\u52a0\u3059\u308b\u304b\u3001\u30b9\u30c6\u30c3\u30d74\u3067\u306e\u30a8\u30dd\u30c3\u30af\u6570\uff08\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u3092\u30cb\u30e5\u30fc\u30e9\u30eb\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u3092\u901a\u3058\u3066\u8907\u6570\u56de\u901a\u904e\u3059\u308b\u56de\u6570\uff09\u3092\u5897\u3084\u3059\u3053\u3068\u3067\u6539\u5584\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u30a8\u30dd\u30c3\u30af\u6570\u3092\u5897\u3084\u3059\u305f\u3081\u306b\u3001model.fit()\u30bb\u30eb\u5185\u306e\u30a8\u30dd\u30c3\u30af\u6570\u30922\u304b\u30893\uff08\u307e\u305f\u306f\u4ed6\u306e\u6570\u5b57\uff09\u306b\u7f6e\u304d\u63db\u3048\u3066\u3001\u305d\u306e\u30bb\u30eb\u3068\u305d\u308c\u306b\u7d9a\u304f\u30bb\u30eb\u3092\u518d\u5ea6\u5b9f\u884c\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<div>\u30cb\u30e5\u30fc\u30e9\u30eb\u30cd\u30c3\u30c8\u30ef\u30fc\u30af.ipynb<\/div>\n<pre class=\"post-pre\"><code>results <span class=\"token operator\">=<\/span> model<span class=\"token punctuation\">.<\/span>fit<span class=\"token punctuation\">(<\/span>\r\ntrain_x<span class=\"token punctuation\">,<\/span> train_y<span class=\"token punctuation\">,<\/span>\r\nepochs<span class=\"token operator\">=<\/span> <mark><span class=\"token number\">3<\/span><\/mark><span class=\"token punctuation\">,<\/span>\r\nbatch_size <span class=\"token operator\">=<\/span> <span class=\"token number\">32<\/span><span class=\"token punctuation\">,<\/span>\r\nvalidation_data <span class=\"token operator\">=<\/span> <span class=\"token punctuation\">(<\/span>test_x<span class=\"token punctuation\">,<\/span> test_y<span class=\"token punctuation\">)<\/span>\r\n<span class=\"token punctuation\">)<\/span>\r\n<\/code><\/pre>\n<p>\u30a8\u30dd\u30c3\u30af\u6570\u304c\u5897\u3048\u307e\u3057\u305f\u306e\u3067\u3001\u8a13\u7df4\u30c7\u30fc\u30bf\u306f\u5408\u8a08\u3067\u30cb\u30e5\u30fc\u30e9\u30eb\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u3092\u4e09\u56de\u901a\u904e\u3057\u3001\u30e2\u30c7\u30eb\u306f\u30c7\u30fc\u30bf\u304b\u3089\u5b66\u7fd2\u3059\u308b\u8ffd\u52a0\u306e\u6a5f\u4f1a\u304c\u751f\u307e\u308c\u307e\u3059\u3002\u30e2\u30c7\u30eb.evaluate()\u95a2\u6570\u3092\u518d\u5b9f\u884c\u3059\u308b\u3068\u3001\u66f4\u65b0\u3055\u308c\u305f\u6b63\u7b54\u7387\u304c\u65b0\u305f\u306b\u51fa\u529b\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u30b9\u30c6\u30c3\u30d7\u3067\u306f\u3001\u69cb\u7bc9\u3057\u305f\u30e2\u30c7\u30eb\u3092\u7cbe\u5ea6\u3092\u8a08\u7b97\u3057\u3066\u8a55\u4fa1\u3057\u307e\u3057\u305f\u3002\u521d\u671f\u306e\u8a08\u7b97\u304c\u7d42\u308f\u3063\u305f\u5f8c\u3001\u30a8\u30dd\u30c3\u30af\u6570\u3092\u5897\u3084\u3057\u3066\u30e2\u30c7\u30eb\u3092\u6539\u5584\u3057\u3001\u518d\u5ea6\u7cbe\u5ea6\u306e\u30b9\u30b3\u30a2\u3092\u8a55\u4fa1\u3057\u307e\u3057\u305f\u3002<\/p>\n<h2>\u7d50\u8ad6<\/h2>\n<p>\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u306f\u3001Keras\u3092\u4f7f\u7528\u3057\u3066\u6620\u753b\u306e\u30ec\u30d3\u30e5\u30fc\u306e\u611f\u60c5\u3092\u30dd\u30b8\u30c6\u30a3\u30d6\u304b\u30cd\u30ac\u30c6\u30a3\u30d6\u304b\u306b\u5206\u985e\u3059\u308b\u305f\u3081\u306b\u30cb\u30e5\u30fc\u30e9\u30eb\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u306e\u5b66\u7fd2\u3092\u884c\u3044\u307e\u3057\u305f\u3002\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u306f\u3001Stanford\u5927\u5b66\u306e\u7814\u7a76\u8005\u306b\u3088\u3063\u3066\u53ce\u96c6\u3055\u308c\u305fIMDb\u611f\u60c5\u5206\u985e\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u3092\u4f7f\u7528\u3057\u307e\u3057\u305f\u3002\u3053\u306e\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u306f\u3001Keras\u306e\u4e8b\u524d\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u6e08\u307f\u306e2\u5024\u611f\u60c5\u5206\u985e\u306e\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u306e1\u3064\u3092\u542b\u3093\u3067\u3044\u307e\u3059\u300225,000\u4ef6\u306e\u9ad8\u5ea6\u306b\u6975\u7aef\u306a\u6620\u753b\u306e\u30ec\u30d3\u30e5\u30fc\u304c\u30c8\u30ec\u30fc\u30cb\u30f3\u30b0\u7528\u3068\u30c6\u30b9\u30c8\u7528\u306b\u7528\u610f\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u3053\u306e\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u3092\u4f7f\u3063\u3066\u3001\u611f\u60c5\u5206\u6790\u306e\u305f\u3081\u306e\u5927\u898f\u6a21\u306a\u30cb\u30e5\u30fc\u30e9\u30eb\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u30e2\u30c7\u30eb\u3092\u958b\u767a\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u4ee5\u4e0b\u306e\u30aa\u30d7\u30b7\u30e7\u30f3\u304b\u3089\u3001\u65e5\u672c\u8a9e\u3067\u81ea\u7531\u306b\u8868\u73fe\u3057\u307e\u3059\uff1a<br \/>\n\u81ea\u5206\u3067\u30c7\u30fc\u30bf\u3092\u7528\u610f\u3059\u308b\u304b\u3001\u4ed6\u306e\u4eba\u6c17\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u3067\u30c6\u30b9\u30c8\u3059\u308b\u3053\u3068\u3067\u3001\u69cb\u7bc9\u3057\u3066\u30c8\u30ec\u30fc\u30cb\u30f3\u30b0\u3057\u305f\u30cb\u30e5\u30fc\u30e9\u30eb\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u306e\u5b9f\u88c5\u3092\u8a66\u3059\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u4ed6\u306eKeras\u306e\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u3092\u8a66\u3057\u305f\u308a\u3001\u7570\u306a\u308b\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\u3092\u8a66\u3057\u3066\u307f\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u3042\u306a\u305f\u306eKeras\u3068TensorFlow\u306e\u7d4c\u9a13\u3092\u6d3b\u304b\u3059\u305f\u3081\u306b\u3001\u5f0a\u793e\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u300cKeras\u3068TensorFlow\u3092\u4f7f\u7528\u3057\u305f\u5f93\u696d\u54e1\u306e\u9000\u8077\u4e88\u6e2c\u30e2\u30c7\u30eb\u306e\u69cb\u7bc9\u65b9\u6cd5\u300d\u3092\u3054\u89a7\u3044\u305f\u3060\u304f\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u7b46\u8005\u306f\u3001Write for Donations \u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u4e00\u74b0\u3068\u3057\u3066\u3001\u5bc4\u4ed8\u5bfe\u8c61\u56e3\u4f53\u3068\u3057\u3066 IEEE \u8ca1\u56e3\u3092\u9078\u629e\u3057\u307e\u3057\u305f\u3002 \u30a4\u30f3\u30c8\u30ed\u30c0\u30af\u30b7\u30e7\u30f3 \u611f\u60c5\u5206\u6790\u306f\u3001\u30c6\u30ad\u30b9\u30c8\u30de\u30a4\u30cb\u30f3\u30b0\u3068\u81ea\u7136\u8a00\u8a9e\u51e6\u7406\u3068\u5f37\u304f\u95a2\u4fc2\u3057\u3066\u304a\u308a\u3001\u66f8\u304b\u308c\u305f\u30ec\u30d3 [&hellip;]<\/p>\n","protected":false},"author":9,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[26,61],"class_list":["post-144","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-26","tag-61"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.5 (Yoast SEO v21.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u611f\u60c5\u5206\u6790\u306e\u305f\u3081\u306b\u30cb\u30e5\u30fc\u30e9\u30eb\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u3092\u8a13\u7df4\u306e\u65b9\u6cd5 - Blog - Silicon Cloud<\/title>\n<meta name=\"description\" content=\"\u611f\u60c5\u5206\u6790\u306e\u305f\u3081\u306b\u30cb\u30e5\u30fc\u30e9\u30eb\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u3092\u8a13\u7df4\u306e\u65b9\u6cd5\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\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:\/\/www.silicloud.com\/ja\/blog\/\u611f\u60c5\u5206\u6790\u306e\u305f\u3081\u306b\u30cb\u30e5\u30fc\u30e9\u30eb\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u3092\u8a13\u7df4\/\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u611f\u60c5\u5206\u6790\u306e\u305f\u3081\u306b\u30cb\u30e5\u30fc\u30e9\u30eb\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u3092\u8a13\u7df4\u306e\u65b9\u6cd5\" \/>\n<meta property=\"og:description\" content=\"\u611f\u60c5\u5206\u6790\u306e\u305f\u3081\u306b\u30cb\u30e5\u30fc\u30e9\u30eb\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u3092\u8a13\u7df4\u306e\u65b9\u6cd5\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/ja\/blog\/\u611f\u60c5\u5206\u6790\u306e\u305f\u3081\u306b\u30cb\u30e5\u30fc\u30e9\u30eb\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u3092\u8a13\u7df4\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2023-09-29T14:28:35+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-07-31T12:07:42+00:00\" \/>\n<meta name=\"author\" content=\"\u590f\u6a39, \u98a8\" \/>\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=\"\u590f\u6a39, \u98a8\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593\" \/>\n\t<meta name=\"twitter:data2\" content=\"42\u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/%e6%84%9f%e6%83%85%e5%88%86%e6%9e%90%e3%81%ae%e3%81%9f%e3%82%81%e3%81%ab%e3%83%8b%e3%83%a5%e3%83%bc%e3%83%a9%e3%83%ab%e3%83%8d%e3%83%83%e3%83%88%e3%83%af%e3%83%bc%e3%82%af%e3%82%92%e8%a8%93%e7%b7%b4\/\",\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/%e6%84%9f%e6%83%85%e5%88%86%e6%9e%90%e3%81%ae%e3%81%9f%e3%82%81%e3%81%ab%e3%83%8b%e3%83%a5%e3%83%bc%e3%83%a9%e3%83%ab%e3%83%8d%e3%83%83%e3%83%88%e3%83%af%e3%83%bc%e3%82%af%e3%82%92%e8%a8%93%e7%b7%b4\/\",\"name\":\"\u611f\u60c5\u5206\u6790\u306e\u305f\u3081\u306b\u30cb\u30e5\u30fc\u30e9\u30eb\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u3092\u8a13\u7df4\u306e\u65b9\u6cd5 - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#website\"},\"datePublished\":\"2023-09-29T14:28:35+00:00\",\"dateModified\":\"2025-07-31T12:07:42+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/4e591db2661c4cc425470b461259391d\"},\"description\":\"\u611f\u60c5\u5206\u6790\u306e\u305f\u3081\u306b\u30cb\u30e5\u30fc\u30e9\u30eb\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u3092\u8a13\u7df4\u306e\u65b9\u6cd5\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002\",\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/%e6%84%9f%e6%83%85%e5%88%86%e6%9e%90%e3%81%ae%e3%81%9f%e3%82%81%e3%81%ab%e3%83%8b%e3%83%a5%e3%83%bc%e3%83%a9%e3%83%ab%e3%83%8d%e3%83%83%e3%83%88%e3%83%af%e3%83%bc%e3%82%af%e3%82%92%e8%a8%93%e7%b7%b4\/#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/ja\/blog\/%e6%84%9f%e6%83%85%e5%88%86%e6%9e%90%e3%81%ae%e3%81%9f%e3%82%81%e3%81%ab%e3%83%8b%e3%83%a5%e3%83%bc%e3%83%a9%e3%83%ab%e3%83%8d%e3%83%83%e3%83%88%e3%83%af%e3%83%bc%e3%82%af%e3%82%92%e8%a8%93%e7%b7%b4\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/%e6%84%9f%e6%83%85%e5%88%86%e6%9e%90%e3%81%ae%e3%81%9f%e3%82%81%e3%81%ab%e3%83%8b%e3%83%a5%e3%83%bc%e3%83%a9%e3%83%ab%e3%83%8d%e3%83%83%e3%83%88%e3%83%af%e3%83%bc%e3%82%af%e3%82%92%e8%a8%93%e7%b7%b4\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/ja\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u611f\u60c5\u5206\u6790\u306e\u305f\u3081\u306b\u30cb\u30e5\u30fc\u30e9\u30eb\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u3092\u8a13\u7df4\u306e\u65b9\u6cd5\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#website\",\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/\",\"name\":\"Blog - Silicon Cloud\",\"description\":\"\",\"inLanguage\":\"ja\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/4e591db2661c4cc425470b461259391d\",\"name\":\"\u590f\u6a39, \u98a8\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/65e0ff40534461b1fa000382dc194e1716f793ab0bcb218ac3c40895551a08c5?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/65e0ff40534461b1fa000382dc194e1716f793ab0bcb218ac3c40895551a08c5?s=96&d=mm&r=g\",\"caption\":\"\u590f\u6a39, \u98a8\"},\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/author\/natsukikaze\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/%e6%84%9f%e6%83%85%e5%88%86%e6%9e%90%e3%81%ae%e3%81%9f%e3%82%81%e3%81%ab%e3%83%8b%e3%83%a5%e3%83%bc%e3%83%a9%e3%83%ab%e3%83%8d%e3%83%83%e3%83%88%e3%83%af%e3%83%bc%e3%82%af%e3%82%92%e8%a8%93%e7%b7%b4\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"\u611f\u60c5\u5206\u6790\u306e\u305f\u3081\u306b\u30cb\u30e5\u30fc\u30e9\u30eb\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u3092\u8a13\u7df4\u306e\u65b9\u6cd5 - Blog - Silicon Cloud","description":"\u611f\u60c5\u5206\u6790\u306e\u305f\u3081\u306b\u30cb\u30e5\u30fc\u30e9\u30eb\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u3092\u8a13\u7df4\u306e\u65b9\u6cd5\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\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:\/\/www.silicloud.com\/ja\/blog\/\u611f\u60c5\u5206\u6790\u306e\u305f\u3081\u306b\u30cb\u30e5\u30fc\u30e9\u30eb\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u3092\u8a13\u7df4\/","og_locale":"ja_JP","og_type":"article","og_title":"\u611f\u60c5\u5206\u6790\u306e\u305f\u3081\u306b\u30cb\u30e5\u30fc\u30e9\u30eb\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u3092\u8a13\u7df4\u306e\u65b9\u6cd5","og_description":"\u611f\u60c5\u5206\u6790\u306e\u305f\u3081\u306b\u30cb\u30e5\u30fc\u30e9\u30eb\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u3092\u8a13\u7df4\u306e\u65b9\u6cd5\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002","og_url":"https:\/\/www.silicloud.com\/ja\/blog\/\u611f\u60c5\u5206\u6790\u306e\u305f\u3081\u306b\u30cb\u30e5\u30fc\u30e9\u30eb\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u3092\u8a13\u7df4\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2023-09-29T14:28:35+00:00","article_modified_time":"2025-07-31T12:07:42+00:00","author":"\u590f\u6a39, \u98a8","twitter_card":"summary_large_image","twitter_misc":{"\u57f7\u7b46\u8005":"\u590f\u6a39, \u98a8","\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593":"42\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/ja\/blog\/%e6%84%9f%e6%83%85%e5%88%86%e6%9e%90%e3%81%ae%e3%81%9f%e3%82%81%e3%81%ab%e3%83%8b%e3%83%a5%e3%83%bc%e3%83%a9%e3%83%ab%e3%83%8d%e3%83%83%e3%83%88%e3%83%af%e3%83%bc%e3%82%af%e3%82%92%e8%a8%93%e7%b7%b4\/","url":"https:\/\/www.silicloud.com\/ja\/blog\/%e6%84%9f%e6%83%85%e5%88%86%e6%9e%90%e3%81%ae%e3%81%9f%e3%82%81%e3%81%ab%e3%83%8b%e3%83%a5%e3%83%bc%e3%83%a9%e3%83%ab%e3%83%8d%e3%83%83%e3%83%88%e3%83%af%e3%83%bc%e3%82%af%e3%82%92%e8%a8%93%e7%b7%b4\/","name":"\u611f\u60c5\u5206\u6790\u306e\u305f\u3081\u306b\u30cb\u30e5\u30fc\u30e9\u30eb\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u3092\u8a13\u7df4\u306e\u65b9\u6cd5 - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/#website"},"datePublished":"2023-09-29T14:28:35+00:00","dateModified":"2025-07-31T12:07:42+00:00","author":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/4e591db2661c4cc425470b461259391d"},"description":"\u611f\u60c5\u5206\u6790\u306e\u305f\u3081\u306b\u30cb\u30e5\u30fc\u30e9\u30eb\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u3092\u8a13\u7df4\u306e\u65b9\u6cd5\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002","breadcrumb":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/%e6%84%9f%e6%83%85%e5%88%86%e6%9e%90%e3%81%ae%e3%81%9f%e3%82%81%e3%81%ab%e3%83%8b%e3%83%a5%e3%83%bc%e3%83%a9%e3%83%ab%e3%83%8d%e3%83%83%e3%83%88%e3%83%af%e3%83%bc%e3%82%af%e3%82%92%e8%a8%93%e7%b7%b4\/#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/ja\/blog\/%e6%84%9f%e6%83%85%e5%88%86%e6%9e%90%e3%81%ae%e3%81%9f%e3%82%81%e3%81%ab%e3%83%8b%e3%83%a5%e3%83%bc%e3%83%a9%e3%83%ab%e3%83%8d%e3%83%83%e3%83%88%e3%83%af%e3%83%bc%e3%82%af%e3%82%92%e8%a8%93%e7%b7%b4\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/ja\/blog\/%e6%84%9f%e6%83%85%e5%88%86%e6%9e%90%e3%81%ae%e3%81%9f%e3%82%81%e3%81%ab%e3%83%8b%e3%83%a5%e3%83%bc%e3%83%a9%e3%83%ab%e3%83%8d%e3%83%83%e3%83%88%e3%83%af%e3%83%bc%e3%82%af%e3%82%92%e8%a8%93%e7%b7%b4\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/ja\/blog\/"},{"@type":"ListItem","position":2,"name":"\u611f\u60c5\u5206\u6790\u306e\u305f\u3081\u306b\u30cb\u30e5\u30fc\u30e9\u30eb\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u3092\u8a13\u7df4\u306e\u65b9\u6cd5"}]},{"@type":"WebSite","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#website","url":"https:\/\/www.silicloud.com\/ja\/blog\/","name":"Blog - Silicon Cloud","description":"","inLanguage":"ja"},{"@type":"Person","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/4e591db2661c4cc425470b461259391d","name":"\u590f\u6a39, \u98a8","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/65e0ff40534461b1fa000382dc194e1716f793ab0bcb218ac3c40895551a08c5?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/65e0ff40534461b1fa000382dc194e1716f793ab0bcb218ac3c40895551a08c5?s=96&d=mm&r=g","caption":"\u590f\u6a39, \u98a8"},"url":"https:\/\/www.silicloud.com\/ja\/blog\/author\/natsukikaze\/"},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.silicloud.com\/ja\/blog\/%e6%84%9f%e6%83%85%e5%88%86%e6%9e%90%e3%81%ae%e3%81%9f%e3%82%81%e3%81%ab%e3%83%8b%e3%83%a5%e3%83%bc%e3%83%a9%e3%83%ab%e3%83%8d%e3%83%83%e3%83%88%e3%83%af%e3%83%bc%e3%82%af%e3%82%92%e8%a8%93%e7%b7%b4\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/144","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/users\/9"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/comments?post=144"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/144\/revisions"}],"predecessor-version":[{"id":325713,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/144\/revisions\/325713"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/media?parent=144"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/categories?post=144"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/tags?post=144"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}