{"id":486,"date":"2018-03-05T22:21:40","date_gmt":"2018-03-05T13:21:40","guid":{"rendered":"http:\/\/www.ecobioinfo.com\/?p=486"},"modified":"2022-06-05T22:44:45","modified_gmt":"2022-06-05T13:44:45","slug":"%e6%b7%b1%e5%b1%a4%e5%ad%a6%e7%bf%92-tensorflow-windows%e7%89%88-%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab","status":"publish","type":"post","link":"http:\/\/www.ecobioinfo.com\/?p=486","title":{"rendered":"\u6df1\u5c64\u5b66\u7fd2 TensorFlow Windows\u7248 \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb"},"content":{"rendered":"<p>TensorFlow \u306b\u306f Windows\u7248\u304c\u3042\u308b\u306e\u3067\u30d1\u30bd\u30b3\u30f3\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u307f\u307e\u3057\u305f\u3002<br \/>\nPC\u74b0\u5883\u306f\u5c11\u3057\u53e4\u3044\u30b9\u30da\u30c3\u30af\u3067\u3059\u304c\u3001Windows 7 64bit\u3001CPU Core2duo 2.53GHz\u3001\u30e1\u30e2\u30ea 4GB \u3067\u8a66\u3057\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>(1)Anaconda \u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<br \/>\nPython \u306e\u74b0\u5883 Anaconda \u306e Windows\u7248\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3002<\/p>\n<p>\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u30da\u30fc\u30b8<\/p>\n<blockquote class=\"wp-embedded-content\" data-secret=\"4C3S3OhWVe\"><p><a href=\"https:\/\/www.anaconda.com\/download\">Free Download<\/a><\/p><\/blockquote>\n<p><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; visibility: hidden;\" title=\"\u201cFree Download\u201d \u2014 Anaconda\" src=\"https:\/\/www.anaconda.com\/download\/embed#?secret=N2n3IimjfI#?secret=4C3S3OhWVe\" data-secret=\"4C3S3OhWVe\" width=\"600\" height=\"338\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe><\/p>\n<p>Anaconda 5.0.1 For Windows Installer<br \/>\nPython 3.6 version<br \/>\n\u3092\u9078\u629e\u3002<\/p>\n<p>\u30a4\u30f3\u30b9\u30c8\u30fc\u30e9<br \/>\nAnaconda3-5.0.1-Windows-x86_64.exe<br \/>\n\u3092\u5b9f\u884c<\/p>\n<p>\u3042\u3068\u306f\u30a4\u30f3\u30b9\u30c8\u30fc\u30e9\u306e\u6307\u793a\u901a\u308a\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3002<\/p>\n<p>\u4eee\u60f3\u74b0\u5883\u306e\u4f5c\u6210<br \/>\nconda create -n tf python=3.6<\/p>\n<p>\u4eee\u60f3\u74b0\u5883\u6709\u52b9\u5316<br \/>\nactivate tf<\/p>\n<p>(2)TensorFlow, TFLearn \u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/p>\n<p>Anaconda\u4eee\u60f3\u74b0\u5883\u3067 pip \u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u3063\u3066 TensorFLow\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/p>\n<p>pip install &#8211;ignore-installed &#8211;upgrade tensorflow<\/p>\n<p>TFLearn\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/p>\n<p>pip install tflearn<\/p>\n<p>(3)\u30e9\u30a4\u30d6\u30e9\u30ea\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<br \/>\npython\u3092\u8d77\u52d5\u3057\u3066imortt tflearn \u3059\u308b\u3068\u4e0b\u8a18\u306e\u3088\u3046\u306b\u30a8\u30e9\u30fc\u304c\u51fa\u307e\u3057\u305f\u306e\u3067\u5fc5\u8981\u306a\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>(tf) &gt;python<br \/>\nPython 3.6.4 |Anaconda, Inc.| (default, Jan 16 2018, 10:22:32) [MSC v.1900 64 bi<br \/>\nt (AMD64)] on win32<br \/>\nType &#8220;help&#8221;, &#8220;copyright&#8221;, &#8220;credits&#8221; or &#8220;license&#8221; for more information.<br \/>\n&gt;&gt;&gt; import tflearn<br \/>\nhdf5 is not supported on this machine (please install\/reinstall h5py for optimal<br \/>\nexperience)<br \/>\ncurses is not supported on this machine (please install\/reinstall curses for an<br \/>\noptimal experience)<br \/>\nScipy not supported!<\/p>\n<p>\u3068\u308a\u3042\u3048\u305a\u3001\u6700\u4f4e\u9650\u5fc5\u8981\u306a\u4ee5\u4e0b\u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3057\u305f\u3002<br \/>\nconda install h5py<br \/>\nconda install scipy<\/p>\n<p>curses\u306f\u3001<br \/>\nhttp:\/\/www.lfd.uci.edu\/~gohlke\/pythonlibs\/#curses<br \/>\n\u304b\u3089\u30d5\u30a1\u30a4\u30ebcurses-2.2-cp36-cp36m-win_amd64.whl\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/p>\n<p>pip install curses-2.2-cp36-cp36m-win_amd64.whl<\/p>\n<p>\u3042\u3068\u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u306f\u3001\u5fc5\u8981\u306b\u5fdc\u3058\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u4e88\u5b9a\u3067\u3059\u3002<\/p>\n<p>(4)\u30c6\u30b9\u30c8<br \/>\nUbuntsu \u3067\u8a66\u3057\u305f MNIST\u306e\u300c\u5168\u7d50\u5408\u578b\u306e\u30cb\u30e5\u30fc\u30e9\u30eb\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u300d\u306e python \u30d7\u30ed\u30b0\u30e9\u30e0\u3092 Anaconda \u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u3067\u5b9f\u884c\u3057\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n<p>\u2460Anaconda \u4eee\u60f3\u74b0\u5883\u8d77\u52d5<br \/>\n\u2461Anaconda \u4eee\u60f3\u74b0\u5883\u3067\u306e\u30c7\u30d5\u30a9\u30eb\u30c8\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306f C:\\Users\\\uff08\u30e6\u30fc\u30b6ID\uff09\\ \u306a\u306e\u3067\u3001MNIST \u30c7\u30fc\u30bf\u306e\u7f6e\u304d\u5834\u6240 C:\\Users\\\uff08\u30e6\u30fc\u30b6ID\uff09\\data\\mnist\\ \u30d5\u30a9\u30eb\u30c0\u3092\u4f5c\u6210<br \/>\n\u2462Anaconda \u4eee\u60f3\u74b0\u5883\u30b3\u30de\u30f3\u30c9\u30d7\u30ed\u30f3\u30d7\u30c8\u3067\u5b9f\u884c<br \/>\n\u4ee5\u524d\u306e\u30d6\u30ed\u30b0\uff08https:\/\/www.ecobioinfo.com\/?p=464\uff09\u3067\u4f5c\u6210\u3057\u305f\u300c\u5168\u7d50\u5408\u578b\u306e\u30cb\u30e5\u30fc\u30e9\u30eb\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u300d<br \/>\n\u4e2d\u9593\u5c64\u5168\u7d50\u5408\u578b\u30cd\u30c3\u30c8\u30ef\u30fc\u30af<br \/>\n\u30ce\u30fc\u30c9 256<br \/>\n\u6d3b\u6027\u5316\u95a2\u6570 ReLU<br \/>\n\u30d5\u30a1\u30a4\u30eb\uff08mnisttest.py\uff09\u306b\u30b3\u30d4\u30fc\u3057\u3066\u5b9f\u884c\u3002<\/p>\n<p>&gt; python mnisttest.py<\/p>\n<p>&#8212;- \u5b9f\u884c\u7d50\u679c\uff08windows\uff09<br \/>\nlearning start:2018-03-05 21:48:12.869254<br \/>\nlearning end:2018-03-05 21:50:33.866504<br \/>\npredict start:2018-03-05 21:50:33.866504<br \/>\npredict end:2018-03-05 21:50:34.178505<br \/>\n[7 2 1 &#8230; 4 5 6]<br \/>\n[7 2 1 &#8230; 4 5 6]<br \/>\n0.9783<br \/>\n&#8212;-<\/p>\n<p>\u3068\u308a\u3042\u3048\u305a\u3001Windows\u3067\u3082\u4f7f\u3048\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n<p>(S.Onda 2018\/3\/5)<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"TensorFlow \u306b\u306f Windows\u7248\u304c\u3042\u308b\u306e\u3067\u30d1\u30bd\u30b3\u30f3\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u307f\u307e\u3057\u305f\u3002 PC\u74b0\u5883\u306f\u5c11\u3057\u53e4\u3044\u30b9\u30da\u30c3\u30af\u3067\u3059\u304c\u3001Windows 7 64bit\u3001CPU Core2duo 2.53GHz\u3001\u30e1\u30e2\u30ea 4GB \u3067\u8a66 &#8230;","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[],"class_list":["post-486","post","type-post","status-publish","format-standard","hentry","category-ai_ecobio"],"_links":{"self":[{"href":"http:\/\/www.ecobioinfo.com\/index.php?rest_route=\/wp\/v2\/posts\/486","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.ecobioinfo.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.ecobioinfo.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.ecobioinfo.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.ecobioinfo.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=486"}],"version-history":[{"count":4,"href":"http:\/\/www.ecobioinfo.com\/index.php?rest_route=\/wp\/v2\/posts\/486\/revisions"}],"predecessor-version":[{"id":1482,"href":"http:\/\/www.ecobioinfo.com\/index.php?rest_route=\/wp\/v2\/posts\/486\/revisions\/1482"}],"wp:attachment":[{"href":"http:\/\/www.ecobioinfo.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=486"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.ecobioinfo.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=486"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.ecobioinfo.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=486"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}