{"id":456,"date":"2018-01-27T22:38:13","date_gmt":"2018-01-27T13:38:13","guid":{"rendered":"http:\/\/www.ecobioinfo.com\/?p=456"},"modified":"2022-06-05T21:58:35","modified_gmt":"2022-06-05T12:58:35","slug":"%e6%b7%b1%e5%b1%a4%e5%ad%a6%e7%bf%92%e3%83%95%e3%83%ac%e3%83%bc%e3%83%a0%e3%83%af%e3%83%bc%e3%82%af-tensorflow%e3%81%ae%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab","status":"publish","type":"post","link":"https:\/\/www.ecobioinfo.com\/?p=456","title":{"rendered":"\u6df1\u5c64\u5b66\u7fd2\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af TensorFlow\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb"},"content":{"rendered":"<p>\u30c7\u30a3\u30fc\u30d7\u30e9\u30fc\u30cb\u30f3\u30b0\uff08\u6df1\u5c64\u5b66\u7fd2\uff09\u306e\u7121\u511f\u306e\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u306b\u306f\u3001Caffe, Chainer, TensorFlow \u306a\u3069\u304c\u3042\u308a\u307e\u3059\u3002<br \/>\n\u307e\u305a\u8a66\u3057\u306b TensorFlow\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u307f\u307e\u3057\u305f\u3002<br \/>\nTensorFlow\u306f Google\u306b\u3088\u3063\u3066\u958b\u767a\u3055\u308c\u305f\u30c7\u30a3\u30fc\u30d7\u30e9\u30fc\u30cb\u30f3\u30b0\u306e\u30aa\u30fc\u30d7\u30f3\u30bd\u30fc\u30b9\u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u3067\u3059\u3002<br \/>\n\u5bfe\u5fdc\uff2f\uff33\u304c Linux\uff08Ubuntu\uff09, Windows, MacOS\u3067\u3001\u8a00\u8a9e\u306f C++, Java, Python \u306a\u3069\u306e\u4f7f\u3048\u308b\u306e\u3067\u3001\u4eca\u5f8c\u306e\u5404\u65b9\u9762\u3067\u306e\u5fdc\u7528\u5229\u7528\u306b\u4fbf\u5229\u3060\u3068\u601d\u308f\u308c\u307e\u3059\u3002<\/p>\n<p>\u307e\u305a\u3001\u8a00\u8a9e\u306f Python \u3092\u5229\u7528\u3059\u308b\u524d\u63d0\u3067\u3001Linux(Ubuntu)\u306b TensorFlow \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u307f\u307e\u3057\u305f\u3002<br \/>\n\uff08\uff21\uff29\u95a2\u4fc2\u3067\u306f Python\u3092\u4f7f\u3046\u3053\u3068\u304c\u591a\u3044\u306e\u3067 Linux &#8211; Python \u74b0\u5883\u304b\u3089\u521d\u3081\u3066\u3001\u305d\u306e\u5f8c Windows \u3084 MacOS\u3067\u3001 Java, C++ \u3067\u306e\u5229\u7528\u3092\u691c\u8a0e\u3059\u308b\u4e88\u5b9a\u3067\u3059\u3002\uff09<br \/>\nTensorFlow\u306b\u306f\u5b66\u7fd2\u74b0\u5883\u3068\u3057\u3066TFLearn\u304c\u3042\u308b\u306e\u3067\u3053\u308c\u3082\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n<p>\uff08\uff11\uff09\u30cf\u30fc\u30c9\u30a6\u30a8\u30a2\u306e\u6e96\u5099<br \/>\n\u30c7\u30a3\u30fc\u30d7\u30e9\u30fc\u30cb\u30f3\u30b0\u306e\u5b66\u7fd2\u904e\u7a0b\u3067\u306f\u591a\u304f\u306e\u30c7\u30fc\u30bf\u3092\u8aad\u307f\u8fbc\u307f\u5b66\u7fd2\u3059\u308b\u306e\u3067\u3001<br \/>\n\u6570\u65e5\uff5e\u6570\u6708\u3082\u9023\u7d9a\u7a3c\u50cd\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u3068\u4e88\u60f3\u3055\u308c\u308b\u305f\u3081\u3001\u30cf\u30fc\u30c9\u30a6\u30a8\u30a2\u306f\u30d1\u30bd\u30b3\u30f3\u3067\u306f\u306a\u304f\u30b5\u30fc\u30d0\u3092\u4f7f\u3046\u3053\u3068\u306b\u3057\u307e\u3057\u305f\u3002<br \/>\n\uff08\u7df4\u7fd2\u7528\u306b\u3068\u308a\u3042\u3048\u305a\u306a\u3089\u30d1\u30bd\u30b3\u30f3\u3067\u826f\u3044\u3068\u601d\u3044\u307e\u3059\u3002\uff09<\/p>\n<p>\u30c7\u30a3\u30fc\u30d7\u30e9\u30fc\u30cb\u30f3\u30b0\u3092\u5b9f\u884c\u3059\u308b\u30cf\u30fc\u30c9\u30a6\u30a8\u30a2\u306f\u3001\u65e9\u3051\u308c\u3070\u65e9\u3044\u307b\u3069\u826f\u304f\u3001\u30c7\u30a3\u30b9\u30af\u5bb9\u91cf\u306f\u5927\u304d\u3044\u307b\u3069\u826f\u3044\u306e\u3067\u3059\u304c\u3001<br \/>\n\u4e88\u7b97\u306e\u90fd\u5408\u3082\u3042\u308b\u306e\u3067\u3001\u6700\u521d\u306f\u300c\u304a\u8a66\u3057\u300d\u3068\u3057\u3066\u3001\u5b89\u4fa1\u306a\u30b5\u30fc\u30d0\u306e<br \/>\nNEC Express5800 110Ge \u3092\u00a0CPU Intel\u00a0 Core2Duo 2.8GHz \u30e1\u30e2\u30ea 6GByte \u306b\u3057\u3066\u59cb\u3081\u3066\u307f\u307e\u3057\u305f\u3002<br \/>\n\uff08\u4eca\u5f8c\u3001\u753b\u50cf\u51e6\u7406\u3092\u4f7f\u3046\u5834\u5408\u306f\u9ad8\u901f\u306aGPU\uff08\u30b0\u30e9\u30d5\u30a3\u30c3\u30af\u30dc\u30fc\u30c9\uff09\u306a\u3069\u5fc5\u8981\u306b\u306a\u308b\u3068\u601d\u3044\u307e\u3059\u3002\uff09<\/p>\n<p>\uff08\uff12\uff09Linux\uff08Ubuntu\uff09\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<br \/>\nUbuntu \u306f\u521d\u5fc3\u8005\u3067\u3082\u6bd4\u8f03\u7684\u4f7f\u3044\u3084\u3059\u3044 Linux\u7cfbOS \u3067\u3059\u3002<br \/>\n\u4eca\u56de\u306f Ubuntsu 16.04 \u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u3042\u308b\u30b5\u30fc\u30d0\u306bTensorFlow\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3057\u305f\u3002<br \/>\n\uff08TensorFLow\u5c02\u7528\u306b\u65b0\u898f\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u306e\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u306e\u3067\u3001<br \/>\n\u5834\u5408\u306b\u3088\u3063\u3066\u306f\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u6e08\u307f\u306e\u4ed6\u306e\u30bd\u30d5\u30c8\u306e\u5f71\u97ff\u304c\u3042\u308b\u3053\u3068\u3082\u4e88\u60f3\u3055\u308c\u307e\u3059\u3002\uff09<\/p>\n<p>\u53c2\u8003\uff1aUbuntsu 16.04 \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb URL<br \/>\nhttps:\/\/www.ubuntulinux.jp\/download\/ja-remix<\/p>\n<p>\uff08\uff13\uff09\u8a00\u8a9e Python \u74b0\u5883\uff08Anaconda\uff09\u306e\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3068\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<br \/>\nAnaconda\u306f\u3001Python\u7528\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u30bd\u30d5\u30c8\u3067\u3001\u5fc5\u8981\u306a\u30e9\u30a4\u30d6\u30e9\u30ea\u306a\u3069\u3092\u4e00\u62ec\u3067\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3001\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u53c2\u8003\uff1aAnaconda\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9 URL<\/p>\n<blockquote class=\"wp-embedded-content\" data-secret=\"dvlbn6ELQK\"><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=5BelOhZvXc#?secret=dvlbn6ELQK\" data-secret=\"dvlbn6ELQK\" width=\"600\" height=\"338\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe><\/p>\n<p>Linux 64bit \u306a\u306e\u3067 Anaconda3-5.0.1-Linux-x86_64.sh\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3057\u305f\u304c\u3001<br \/>\n\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u30a8\u30e9\u30fc\u304c\u51fa\u307e\u3057\u305f\u3002<\/p>\n<p>~$ .\/Anaconda3-5.0.1-Linux-x86_64.sh<br \/>\nWelcome to Anaconda3 5.0.1<\/p>\n<p>In order to continue the installation process, please review the license<br \/>\nagreement.<br \/>\nPlease, press ENTER to continue<br \/>\n&#8230;<\/p>\n<p>&#8230;<br \/>\ninstalling: libtiff-4.0.8-h90200ff_9 &#8230;<br \/>\ninstalling: libxml2-2.9.4-h6b072ca_5 &#8230;<br \/>\nSegmentation fault (core dumped)<\/p>\n<p>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u30b7\u30a7\u30eb\u3067\u3001-u \uff08\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\uff09\u30aa\u30d7\u30b7\u30e7\u30f3\u3067\u3084\u308a\u76f4\u3057\u305f\u3089\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u307e\u3057\u305f\u3002<br \/>\n~$ .\/Anaconda3-5.0.1-Linux-x86_64.sh -u<\/p>\n<p>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u5f8c\u3001\u30d1\u30b9\u8a2d\u5b9a<br \/>\n~$ export PATH=\/home\/myname\/anaconda3\/bin:$PATH<\/p>\n<p>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u305f Anaconda\u30d0\u30fc\u30b8\u30e7\u30f3\u78ba\u8a8d<br \/>\n~$ conda -V<br \/>\nconda 4.3.30<\/p>\n<p>\uff08\uff14\uff09TensorFLow\u7528Python\u4eee\u60f3\u74b0\u5883<br \/>\nAnaconda\u3067 TensorFlow \u304a\u8a66\u3057\u7528\u306e Python \u4eee\u60f3\u74b0\u5883\u3092\u4f5c\u3063\u3066 TensorFlow \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3053\u3068\u306b\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>~$ conda create -n tf<br \/>\nFetching package metadata &#8230;&#8230;&#8230;..<\/p>\n<p>#<br \/>\n# To activate this environment, use:<br \/>\n# &gt; source activate tf<br \/>\n#<br \/>\n# To deactivate an active environment, use:<br \/>\n# &gt; source deactivate<br \/>\n#<\/p>\n<p>\u8868\u793a\u3055\u308c\u305f\u30e1\u30c3\u30bb\u30fc\u30b8\u901a\u308a\u306e\u30b3\u30de\u30f3\u30c9\u3067\u4eee\u60f3\u74b0\u5883\u3092\u6709\u52b9\u3002<\/p>\n<p>~$ source activate tf<\/p>\n<p>Python\u3092\u5b9f\u884c\u3057\u3066\u78ba\u8a8d\u3002<\/p>\n<p>~$ python<br \/>\nPython 3.6.3 |Anaconda, Inc.| (default, Oct 13 2017, 12:02:49)<br \/>\n[GCC 7.2.0] on linux<br \/>\nType &#8220;help&#8221;, &#8220;copyright&#8221;, &#8220;credits&#8221; or &#8220;license&#8221; for more information.<br \/>\n&gt;&gt;&gt;<\/p>\n<p>\uff08\uff15\uff09TensorFlow\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<br \/>\nAnaconda \u3067\u4f5c\u3063\u305f\u4eee\u60f3\u74b0\u5883\u306b Tensorflow 1.4.1 \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3057\u305f\u3002<br \/>\nlinux 64 bit\u74b0\u5883\u306a\u306e\u3067\u3001tensorflow-1.4.1-cp36-cp36m-linux_x86_64.whl\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3002<br \/>\n\uff08CPU\uff08GPU\u3092\u5229\u7528\u3057\u306a\u3044\uff09Python3.6\u306a\u306e\u3067 cp36-36m\u3089\u3057\u3044\u3067\u3059\u3002\uff09<\/p>\n<p>~$ pip install &#8211;ignore-installed &#8211;upgrade https:\/\/storage.googleapis.com\/tensorflow\/linux\/cpu\/tensorflow-1.4.1-cp36-cp36m-linux_x86_64.whl<\/p>\n<p>Successfully installed bleach-2.0.0 enum34-1.1.6 html5lib-0.999999999 markdown-2.6.11 numpy-1.14.0 protobuf-3.5.1 setuptools-38.4.0 six-1.11.0 tensorflow-1.4.1 tensorflow-tensorboard-0.4.0rc3 werkzeug-0.14.1 wheel-0.30.0<\/p>\n<p>\uff08\uff16\uff09TFLearn\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<br \/>\n\u5b66\u7fd2\u74b0\u5883\u3068\u3057\u3066TFLearn\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>~$ pip install git+https:\/\/github.com\/tflearn\/tflearn.git<br \/>\nCollecting git+https:\/\/github.com\/tflearn\/tflearn.git<br \/>\nCloning https:\/\/github.com\/tflearn\/tflearn.git to \/tmp\/pip-apmlork5-build<br \/>\n&#8230;..<br \/>\n&#8230;..<br \/>\nInstalling collected packages: tflearn<br \/>\nRunning setup.py install for tflearn &#8230; done<br \/>\nSuccessfully installed tflearn-0.3.2<\/p>\n<p>\u3068\u308a\u3042\u3048\u305a\u3001\u4eca\u56de\u306f\u3053\u3053\u307e\u3067\u3067\u3059\u3002<\/p>\n<p>(S.Onda 2018\/1\/27)<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"\u30c7\u30a3\u30fc\u30d7\u30e9\u30fc\u30cb\u30f3\u30b0\uff08\u6df1\u5c64\u5b66\u7fd2\uff09\u306e\u7121\u511f\u306e\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u306b\u306f\u3001Caffe, Chainer, TensorFlow \u306a\u3069\u304c\u3042\u308a\u307e\u3059\u3002 \u307e\u305a\u8a66\u3057\u306b TensorFlow\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u307f\u307e\u3057\u305f\u3002 TensorFlow\u306f Go &#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-456","post","type-post","status-publish","format-standard","hentry","category-ai_ecobio"],"_links":{"self":[{"href":"https:\/\/www.ecobioinfo.com\/index.php?rest_route=\/wp\/v2\/posts\/456","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ecobioinfo.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ecobioinfo.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ecobioinfo.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ecobioinfo.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=456"}],"version-history":[{"count":6,"href":"https:\/\/www.ecobioinfo.com\/index.php?rest_route=\/wp\/v2\/posts\/456\/revisions"}],"predecessor-version":[{"id":1474,"href":"https:\/\/www.ecobioinfo.com\/index.php?rest_route=\/wp\/v2\/posts\/456\/revisions\/1474"}],"wp:attachment":[{"href":"https:\/\/www.ecobioinfo.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=456"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ecobioinfo.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=456"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ecobioinfo.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=456"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}