Tensorflow Playground 初体验
Tensorflow Playground是Google开源的一个神经网络深度学习展示demo,以图形化形式展示,可以直观地理解神经网络的工作原理。
本地部署
同样也可以将其git到本地部署,便于无网络环境下研究。
其采用node.js开发,nn.ts即是简化的nn库。
1、在控制台执行:
1
npm install https://github.com/tensorflow/playground.git
则在当前目录下,生成node_modules/deep-playground-prototype.
其主目录位于deep-playground-prototype下的dist目录,将web server主目录设为此即可。
2、启动npm run server,提示缺乏http-server,因http-server依赖jitsu,则首先安装jitsu。
执行:
1
2
3 npm install jitsu -g
cd node_modules/deep-playground-prototype
jitsu install http-server
则在deep-playground-prototype目录下,生成http-server目录,web server文件为其下的bin/http-server,执行:
1
2 cd dist
node ../http-server/bin/http-server
则可在http://localhost:8080 访问。
