{"id":559,"date":"2018-05-30T23:51:19","date_gmt":"2018-05-30T14:51:19","guid":{"rendered":"http:\/\/www.ecobioinfo.com\/?p=559"},"modified":"2022-06-05T22:46:35","modified_gmt":"2022-06-05T13:46:35","slug":"%e6%b7%b1%e5%b1%a4%e5%ad%a6%e7%bf%92-tensorflow-windows-eclipse-pydev-java","status":"publish","type":"post","link":"https:\/\/www.ecobioinfo.com\/?p=559","title":{"rendered":"\u6df1\u5c64\u5b66\u7fd2 TensorFlow Windows,  Eclipse, PyDev,  Java"},"content":{"rendered":"<hr \/>\n<p>\u30c7\u30a3\u30fc\u30d7\u30e9\u30fc\u30cb\u30f3\u30b0\u306e\u5b66\u7fd2\u3084\u7814\u7a76\u3067\u306f Python \u3092\u4f7f\u3046\u3053\u3068\u304c\u591a\u3044\u3067\u3059\u304c\u3001\u5b66\u7fd2\u6e08\u307f\u30e2\u30c7\u30eb\u3092\u6d3b\u7528\u3057\u305f\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u958b\u767a\u3092\u60f3\u5b9a\u3057\u3066\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u958b\u767a\u3067\u3088\u304f\u4f7f\u308f\u308c\u308b Windows, Eclipse, Java \u3067 TensorFlow \u3092\u5229\u7528\u3067\u304d\u308b\u3088\u3046\u306b\u74b0\u5883\u69cb\u7bc9\u3057\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n<p><a href=\"https:\/\/www.ecobioinfo.com\/?p=486\">\u300c\u6df1\u5c64\u5b66\u7fd2 TensorFlow Windows\u7248 \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u300d<\/a> \u3067\u3001Anaconda , Python , TensorFlow , TFLearn \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u6e08\u307f\u306e Windows \u306b Eclipse \u3068 TensorFlow for Java \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3057\u305f\u3002<br \/>\nTensorFlow for Java \u306f\u3001Java\u7528\u306e TensorFlow \u3067\u3059\u304c\u3001\u57fa\u672c\u7684\u306b\u306f\u3001\u5b66\u7fd2\u306f Python \u3067\u884c\u3044\u3001Java \u3067\u306f\u3001\u5b66\u7fd2\u6e08\u307f\u30e2\u30c7\u30eb\u3092\u5229\u7528\u3057\u305f\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u958b\u767a\u3092\u884c\u3046\u3053\u3068\u3092\u60f3\u5b9a\u3057\u3066\u3044\u307e\u3059\u3002<br \/>\n\u307e\u305f\u3001 Eclipse \u3067 Anaconda \u3068 Python \u3092\u5229\u7528\u3067\u304d\u308b\u3088\u3046\u306b PyDev \u306e\u8a2d\u5b9a\u3082\u884c\u3044\u307e\u3057\u305f\u3002<\/p>\n<p>\uff08\uff11\uff09Eclipse + PyDev \u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/p>\n<p>\u524d\u63d0\uff1aAnaconda, Python, TensorFlow \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u6e08\u307f\u306e Windows<\/p>\n<p>\u307e\u305a\u306f\u3001Eclipse \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066Python\u3092\u5b9f\u884c\u3057\u3066\u307f\u307e\u3057\u305f\u3002<br \/>\nPyDev \u306f Python \u306b\u3088\u308b\u958b\u767a\u3092\u884c\u3046\u305f\u3081\u306e\u30d7\u30e9\u30b0\u30a4\u30f3\u3067\u3059\u3002<\/p>\n<p>\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u30b5\u30a4\u30c8<br \/>\n<a href=\"http:\/\/mergedoc.osdn.jp\/\">http:\/\/mergedoc.osdn.jp\/<\/a><br \/>\n\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9<br \/>\nPleiades All in One 4.7.3a.v20180411 Windows 64bit Full Edition + Ultimate<br \/>\n\uff08Java, Python, PyDev \u3092\u5168\u3066\u542b\u3080 Eclipse Oxygen\uff09<\/p>\n<p>pleiades-4.7.3-ultimate-win-64bit-jre_20180411.zip<\/p>\n<p>\u9069\u5f53\u306a\u30d5\u30a9\u30eb\u30c0\u306b\u89e3\u51cd\u3057\u3066 Eclipse \u3092\u5b9f\u884c\u3002<\/p>\n<p>PyDev \u306e\u8a2d\u5b9a\u3002<\/p>\n<p>[\u30a6\u30a3\u30f3\u30c9\u30a6]\u2015\uff1e[\u8a2d\u5b9a]<br \/>\n[PyDev]\u2015\uff1e[\u30a4\u30f3\u30bf\u30fc\u30d7\u30ea\u30bf\u30fc]\u2015\uff1e[python\u306e\u30a4\u30f3\u30bf\u30fc\u30d7\u30ea\u30bf\u30fc]<br \/>\n[\u65b0\u898f]<br \/>\n\u30a4\u30f3\u30bf\u30fc\u30d7\u30ea\u30bf\u30fc\u8a2d\u5b9a<br \/>\n(Anaconda, tensorflow\u4eee\u60f3\u74b0\u5883)Anaconda3\\envs\\tensorflow\\python.exe<\/p>\n<p>\u8a2d\u5b9a\u304c\u7d42\u308f\u3063\u305f\u5f8c\u3001[Python]\u30d1\u30fc\u30b9\u30da\u30af\u30c6\u30a3\u30d6\u3067\u5b9f\u884c\u3057\u3066\u307f\u307e\u3057\u305f\u3002<br \/>\n\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u4f5c\u6210\u3057\u3066 Anaconda \u306e TensorFlow \u4eee\u60f3\u74b0\u5883\u3092\u9078\u629e\u3001\u7c21\u5358\u306a\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u5b9f\u884c\u3002<\/p>\n<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br \/>\nimport tensorflow<br \/>\nprint(&#8216;Helo, AI!&#8217;)<br \/>\n&#8212;&#8212;&#8212;- \u5b9f\u884c\u7d50\u679c<br \/>\nHelo, AI!<br \/>\n&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<\/p>\n<p><a href=\"https:\/\/www.ecobioinfo.com\/?p=464\">\u300c\u6df1\u5c64\u5b66\u7fd2 TensorFlow \u3092 MNIST \u3067\u8a66\u3059\u300d<\/a> \u306e\u5168\u7d50\u5408\u578b\u306e\u30cb\u30e5\u30fc\u30e9\u30eb\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u306e python \u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u5b9f\u884c\u3057\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n<p>\u30c7\u30fc\u30bf\u7528\u306b workspace\\(\u30d7\u30ed\u30b8\u30a7\u30af\u30c8)\\data\\mnist \u306e\u30d5\u30a9\u30eb\u30c0\u3092\u4f5c\u6210\u3002<\/p>\n<p>&#8212;&#8212;&#8212;- \u5b9f\u884c\u7d50\u679c<\/p>\n<p>\u5b66\u7fd2\u6642\u9593<br \/>\nstart:2018-05-30 23:01:33.849473<br \/>\nend:2018-05-30 23:36:27.742035<br \/>\n\u30c6\u30b9\u30c8\u5b9f\u884c\u6642\u9593<br \/>\nstart2018-05-30 23:36:27.742035<br \/>\nend2018-05-30 23:38:26.321147<br \/>\n\u7cbe\u5ea6<br \/>\n0.9845<\/p>\n<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<\/p>\n<p>\u307e\u305a\u306f\u3001Eclipse \u3067 Python \u304c\u4f7f\u3048\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\uff08\uff12\uff09Eclipse + TensorFlow for Java \u306e\u74b0\u5883<\/p>\n<p>Installing TensorFlow for Java \u306e\u30b5\u30a4\u30c8\u3092\u53c2\u8003\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3002<br \/>\n<a href=\"https:\/\/www.tensorflow.org\/install\/install_java\">https:\/\/www.tensorflow.org\/install\/install_java<\/a><\/p>\n<p>\u201dUsing TensorFlow with a Maven project\u201d \u306e\u90e8\u5206\u3092\u53c2\u8003\u306b\u3057\u3066\u3001<br \/>\nJava Maven \u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u6210\u3057\u3066 pon.xml \u3092\u5909\u66f4\u3002<br \/>\n&lt;dependency&gt;<br \/>\n&lt;groupId&gt;org.tensorflow&lt;\/groupId&gt;<br \/>\n&lt;artifactId&gt;tensorflow&lt;\/artifactId&gt;<br \/>\n&lt;version&gt;1.8.0&lt;\/version&gt;<br \/>\n&lt;\/dependency&gt;<\/p>\n<p>\u300c&#8230; 1.7 \u3088\u308a\u4e0b\u306e\u305f\u3081\u4f7f\u7528\u3067\u304d\u307e\u305b\u3093\u300d\u306e\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u3067\u305f\u306e\u3067\u3001Java \u306e\u8a2d\u5b9a\u3092 1.7 \u306b\u5909\u66f4\u3057\u307e\u3057\u305f\u3002<br \/>\n\u305d\u306e\u5f8c\u3001\u201dUnsatisfiedLinkError \u201d\u304c\u51fa\u305f\u306e\u3067\u3001TensorFlow for Java \u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3092 1.3.0 \u306b\u4e0b\u3052\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n<p>&lt;properties&gt;<br \/>\n&lt;project.build.sourceEncoding&gt;UTF-8&lt;\/project.build.sourceEncoding&gt;<br \/>\n&lt;exec.mainClass&gt;HelloTF&lt;\/exec.mainClass&gt;<br \/>\n&lt;!&#8211; The sample code requires at least JDK 1.7. &#8211;&gt;<br \/>\n&lt;!&#8211; The maven compiler plugin defaults to a lower version &#8211;&gt;<br \/>\n&lt;maven.compiler.source&gt;1.7&lt;\/maven.compiler.source&gt;<br \/>\n&lt;maven.compiler.target&gt;1.7&lt;\/maven.compiler.target&gt;<br \/>\n&lt;\/properties&gt;<\/p>\n<p>&lt;dependency&gt;<br \/>\n&lt;groupId&gt;org.tensorflow&lt;\/groupId&gt;<br \/>\n&lt;artifactId&gt;tensorflow&lt;\/artifactId&gt;<br \/>\n&lt;version&gt;1.3.0&lt;\/version&gt;<br \/>\n&lt;\/dependency&gt;<\/p>\n<p><a href=\"https:\/\/www.tensorflow.org\/install\/install_java\">\u30b5\u30a4\u30c8<\/a>\u306b\u3042\u3063\u305f\u30b5\u30f3\u30d7\u30eb\u30d7\u30ed\u30b0\u30e9\u30e0<\/p>\n<p>Create the source file (src\/main\/java\/HelloTF.java):<\/p>\n<p>\u3092\u5b9f\u884c\u3057\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n<p>&#8212;&#8211;\u5b9f\u884c\u7d50\u679c<\/p>\n<p>Hello from 1.3.0<\/p>\n<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<\/p>\n<p>\u30a8\u30e9\u30fc\u306f\u51fa\u307e\u305b\u3093\u3067\u3057\u305f\u3002<\/p>\n<p>\u3068\u308a\u3042\u3048\u305a\u3001\u4eca\u56de\u306f\u3053\u3053\u307e\u3067\u3068\u3057\u307e\u3059\u3002<\/p>\n<p>(S.Onda 2018\/5\/30)<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"\u30c7\u30a3\u30fc\u30d7\u30e9\u30fc\u30cb\u30f3\u30b0\u306e\u5b66\u7fd2\u3084\u7814\u7a76\u3067\u306f Python \u3092\u4f7f\u3046\u3053\u3068\u304c\u591a\u3044\u3067\u3059\u304c\u3001\u5b66\u7fd2\u6e08\u307f\u30e2\u30c7\u30eb\u3092\u6d3b\u7528\u3057\u305f\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u958b\u767a\u3092\u60f3\u5b9a\u3057\u3066\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u958b\u767a\u3067\u3088\u304f\u4f7f\u308f\u308c\u308b Windows, Eclipse, Java \u3067 Te &#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-559","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\/559","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=559"}],"version-history":[{"count":16,"href":"https:\/\/www.ecobioinfo.com\/index.php?rest_route=\/wp\/v2\/posts\/559\/revisions"}],"predecessor-version":[{"id":1485,"href":"https:\/\/www.ecobioinfo.com\/index.php?rest_route=\/wp\/v2\/posts\/559\/revisions\/1485"}],"wp:attachment":[{"href":"https:\/\/www.ecobioinfo.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=559"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ecobioinfo.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=559"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ecobioinfo.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=559"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}