{"id":36930,"date":"2018-06-29T23:28:25","date_gmt":"2018-06-29T14:28:25","guid":{"rendered":"http:\/\/kako.com\/blog\/?p=36930"},"modified":"2018-07-01T06:18:14","modified_gmt":"2018-06-30T21:18:14","slug":"%e6%a9%9f%e6%a2%b0%e5%ad%a6%e7%bf%92%e5%90%8d%e5%8f%a4%e5%b1%8b-%e7%ac%ac15%e5%9b%9e%e5%8b%89%e5%bc%b7%e4%bc%9a%e3%81%ab%e5%8f%82%e5%8a%a0%e3%81%97%e3%81%a6%e3%81%aa%e3%81%8b%e3%81%a3%e3%81%9f","status":"publish","type":"post","link":"http:\/\/kako.com\/blog\/?p=36930","title":{"rendered":"\u6a5f\u68b0\u5b66\u7fd2 \u540d\u53e4\u5c4b \u7b2c15\u56de\u52c9\u5f37\u4f1a\u306b\u53c2\u52a0\u3057\u3066\u306a\u304b\u3063\u305f\u306e\u3067\u3001\u767a\u8868\u8cc7\u6599\u3092\u898b\u3066\u6b21\u56de\u306e\u4e88\u7fd2"},"content":{"rendered":"<p>\u6a5f\u68b0\u5b66\u7fd2\u540d\u53e4\u5c4b \u7b2c15\u56de\u52c9\u5f37\u4f1a\u306b\u53c2\u52a0\u3057\u3066\u306a\u304b\u3063\u305f\u306e\u3067\u3001\u767a\u8868\u8cc7\u6599\u3092\u898b\u3066\u6b21\u56de\u306e\u4e88\u7fd2\u3092\u3057\u3066\u308b\u3002<br \/>\n(\u30de\u30f3\u30b7\u30e7\u30f3\u306e\u7ba1\u7406\u7d44\u5408\u306e\u4ed5\u4e8b\u307f\u305f\u3044\u306a\u3064\u307e\u3089\u306a\u3044\u7528\u4e8b\u306e\u305f\u3081\u6628\u5e74\u5ea6\u306f\u571f\u66dc\u3084\u65e5\u66dc\u304c\u591a\u304f\u6f70\u308c\u3066\u3057\u307e\u3063\u3066\u3042\u307e\u308a\u52c9\u5f37\u4f1a\u306b\u53c2\u52a0\u3067\u304d\u306a\u304b\u3063\u305f)<\/p>\n<p>\u7b2c16\u56de\u52c9\u5f37\u4f1a\u306b\u306f\u53c2\u52a0\u4e88\u5b9a\u3060\u3002<br \/>\n\u2192 <a href=\"https:\/\/machine-learning.connpass.com\/event\/87484\/\">\u6a5f\u68b0\u5b66\u7fd2\u3000\u540d\u53e4\u5c4b\u3000\u7b2c16\u56de\u52c9\u5f37\u4f1a\u3000\u3010\u30b2\u30fc\u30e0\u306e\u5f37\u5316\u5b66\u7fd2\u30cf\u30f3\u30ba\u30aa\u30f3 OpenAI Gym \u30d1\u30fc\u30c8\uff12\u3011<\/a><\/p>\n<p>\u524d\u56de\u306e\u8cc7\u6599\u3092\u8aad\u3093\u3067\u308b\u3002<br \/>\n\u2192 <a href=\"https:\/\/qiita.com\/n_kats_\/items\/932ca8dccab66f3255ed\">\u30b2\u30fc\u30e0\u306e\u5f37\u5316\u5b66\u7fd2\u30cf\u30f3\u30ba\u30aa\u30f3 &#8212; OpenAI GymOpenAI gym\u3067\u5f37\u5316\u5b66\u7fd2\u5165\u9580\uff08\u6a5f\u68b0\u5b66\u7fd2\u540d\u53e4\u5c4b\u7b2c\uff115\u56de\u52c9\u5f37\u4f1a\uff09<\/a><\/p>\n<p>OpenAI\u306egym\u3068\u3044\u3046\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u4f7f\u3063\u3066\u307f\u308b\u3068\u3044\u3046\u5185\u5bb9\u3060\u3002<br \/>\n<!--more--><\/p>\n<p>Mac\u3067\u6700\u8fd1OS\u3092\u5165\u308c\u76f4\u3057\u305f\u306e\u3067\u3001\u74b0\u5883\u69cb\u7bc9\u304b\u3089\u3084\u308a\u76f4\u3057\u305f\u3002<br \/>\nHomeBrew\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3001Python3\u3068\u304b\u3044\u304f\u3064\u304b\u306e\u4f7f\u7528\u3059\u308b\u30b3\u30de\u30f3\u30c9\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u3002<br \/>\npip3\u30b3\u30de\u30f3\u30c9\u3067\u3001gym\u3068\u304b\u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u3002<br \/>\ngit\u3067\u52c9\u5f37\u4f1a\u8cc7\u6599\u306ePython\u306e\u30b3\u30fc\u30c9\u3092clone\u3057\u305f\u3002<\/p>\n<p>\u30cf\u30f3\u30ba\u30aa\u30f3\u306e\u8cc7\u6599\u306b\u3042\u308b\u3088\u3046\u306b\u3001\u3068\u308a\u3042\u3048\u305a\u52d5\u304b\u3057\u3066\u307f\u308b\u3002<\/p>\n<p>\u3057\u304b\u3057\u3001<br \/>\n% python3 sample_0x.py \u3068\u304b\u3067\u3001\u666e\u901a\u306bsample_0x.py\u3068\u304b\u3092\u52d5\u304b\u3059\u3060\u3051\u306a\u306e\u3060\u304c\u3001\u9014\u4e2d\u3067\u30a8\u30e9\u30fc\u3067\u6b62\u307e\u3063\u3066\u3057\u307e\u3046\u3002<\/p>\n<p>python\u306f3.6.5\u3068\u3044\u3046\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u4f7f\u3063\u3066\u3044\u308b\u3057\u3001gym\u3082\u3061\u3083\u3093\u3068\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u3066\u3044\u308b\u306e\u306b\u3001\u306a\u305c\u3060\u308d\u3046\u304b\u3002<br \/>\n\u524d\u56de\u304b\u30892\u30f6\u6708\u306e\u9593\u306bgym\u3068\u304b\u30d0\u30fc\u30b8\u30e7\u30f3\u304c\u4e0a\u304c\u3063\u3066\u3044\u3066\u3001\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u306e\u4e92\u63db\u6027\u304c\u5931\u308f\u308c\u3066\u3044\u308b\u3068\u304b??<br \/>\n\u3057\u304b\u3057\u3001gym\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u30c1\u30a7\u30c3\u30af\u3057\u3066\u307f\u308b\u3068\u3053\u306e\u6570\u30f6\u6708\u306e\u9593\u306f\u30d0\u30fc\u30b8\u30e7\u30f3\u30a2\u30c3\u30d7\u306f\u7121\u3044\u3057\u3001pip3 install gym\u3068\u3057\u305f\u5834\u5408\u3082<br \/>\ngit clone\u3067\u5168\u90e8\u53d6\u3063\u3066\u304d\u3066\u5165\u308c\u305f\u3082\u306e\u3082\u540c\u69d8\u306b\u6700\u65b0\u7248\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u308b\u3088\u3046\u3060\u3002<\/p>\n<p>\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u3067trace-back\u304c\u305f\u304f\u3055\u3093\u5410\u304d\u51fa\u3055\u308c\u3066\u3044\u308b\u304c\u3001\u30a8\u30e9\u30fc\u8868\u793a\u306e\u6700\u521d\u306e\u307b\u3046\u3060\u3051\u898b\u3066\u3044\u3066\u539f\u56e0\u306b\u306a\u304b\u306a\u304b\u6c17\u304c\u3064\u304b\u306a\u304b\u3063\u305f\u3002<br \/>\n\u30a8\u30e9\u30fc\u8868\u793a\u306e\u5f8c\u534a\u306e\u307b\u3046\u306bffmpeg\u304c\u8db3\u308a\u306a\u3044\u307f\u305f\u3044\u306a\u8868\u793a\u304c\u51fa\u3066\u3044\u308b\u306e\u3067\u3001brew install ffmpeg\u3067\u5165\u308c\u3066\u307f\u305f\u3002<br \/>\n\u7121\u4e8b\u306b\u52d5\u4f5c\u3059\u308b\u3088\u3046\u306b\u306a\u3063\u305f\u3088\u3046\u3060\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6a5f\u68b0\u5b66\u7fd2\u540d\u53e4\u5c4b \u7b2c15\u56de\u52c9\u5f37\u4f1a\u306b\u53c2\u52a0\u3057\u3066\u306a\u304b\u3063\u305f\u306e\u3067\u3001\u767a\u8868\u8cc7\u6599\u3092\u898b\u3066\u6b21\u56de\u306e\u4e88\u7fd2\u3092\u3057\u3066\u308b\u3002 (\u30de\u30f3\u30b7\u30e7\u30f3\u306e\u7ba1\u7406\u7d44\u5408\u306e\u4ed5\u4e8b\u307f\u305f\u3044\u306a\u3064\u307e\u3089\u306a\u3044\u7528\u4e8b\u306e\u305f\u3081\u6628\u5e74\u5ea6\u306f\u571f\u66dc\u3084\u65e5\u66dc\u304c\u591a\u304f\u6f70\u308c\u3066\u3057\u307e\u3063\u3066\u3042\u307e\u308a\u52c9\u5f37\u4f1a\u306b\u53c2\u52a0\u3067\u304d\u306a\u304b\u3063\u305f) \u7b2c [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[14],"tags":[],"_links":{"self":[{"href":"http:\/\/kako.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/36930"}],"collection":[{"href":"http:\/\/kako.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/kako.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/kako.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/kako.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=36930"}],"version-history":[{"count":10,"href":"http:\/\/kako.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/36930\/revisions"}],"predecessor-version":[{"id":36941,"href":"http:\/\/kako.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/36930\/revisions\/36941"}],"wp:attachment":[{"href":"http:\/\/kako.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=36930"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/kako.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=36930"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/kako.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=36930"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}