AlphaGo 开源项目研究(2)

61 篇文章 2 订阅
11 篇文章 1 订阅

本文的原文连接是: http://blog.csdn.net/freewebsys/article/details/50907809 未经博主允许不得转载。
博主地址是:http://blog.csdn.net/freewebsys

1,首先折腾

AlphaGo是用python写的。上次已经把web跑起来了,但是和机器学习好像没有太多关心。
这次要把环境弄好。搭建python环境.

2,目录分析

AlphaGo目录是核心目录。
interface目录里面包括一个Web服务。
test目录里面是测试文件,里面包括和李世石的比赛。

3,环境安装

注意,这个必须在Centos7 上面安装,因为centos6的python太老了,有些库安装上之后都跑不了。

yum install -y python-devel python-pip
pip install --upgrade pip
pip install numpy --upgrade
pip install Cython --upgrade
yum install -y hdf5-devel
pip install h5py --upgrade
#include "hdf5.h"
#              ^
#    compilation terminated
#缺少hdf5.
yum install -y lapack-devel
pip install scipy --upgrade
#scipy 安装时间比较长
pip install Keras --upgrade
pip install PyYAML --upgrade
pip install wheel --upgrade

pip install git+git://github.com/Theano/Theano.git --upgrade --no-deps

http://www.hdfgroup.org/
hdf5:科学数据文件格式.
h5py,python的hdf5接口封装.

安装之后,把AlphaGo模块拷贝到/usr/lib/python2.7/site-packages

ls 
AlphaGo  benchmarks  CONTRIBUTING.md  data  interface  LICENSE  README.md  requirements.txt  tests
##注意是AlphaGo模块,而不是项目。
cp AlphaGo /usr/lib/python2.7/site-packages -R

然后执行测试:

# python tests/test_game_converter.py 
AlphaGo-vs-Lee-Sedol-20160310-first10only.sgf
AlphaGo-vs-Lee-Sedol-20160310.sgf
friday_tournament.sgf
monday_tournament.sgf
thursday_tournament.sgf
tuesday_tournament.sgf
wednesday_tournament.sgf
.
----------------------------------------------------------------------
Ran 1 test in 23.085s

OK

重要可以测试了下,但这些python代码是啥意思还不明白。

主要用的就是深度学习。
http://keras.io/
http://keras.io/examples/

关于keras有两个文章介绍,资料也不多。
http://blog.csdn.net/u012162613/article/details/45397033
http://blog.csdn.net/u012162613/article/details/45581421
这个是关于机器学习的。
http://blog.csdn.net/zouxy09/article/category/1387932

本文的原文连接是: http://blog.csdn.net/freewebsys/article/details/50907809 未经博主允许不得转载。
博主地址是:http://blog.csdn.net/freewebsys

4,总结

完全不明白机器学习的知识,最近还要抽空研究下,对数学要求比较高。
深度学习也不错。而且pyhton的库超级多。使用也非常方便。

评论 4
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值