摘要: import os,stat base_dir = "/Users/xmx/Desktop/app/redis" port=7000 num=6 os.chdir(base_dir) for i in range(num): dirs = os.path.join(base_dir,str(port 阅读全文
posted @ 2017-12-14 15:59 otwos 阅读(452) 评论(0) 推荐(0) 编辑
摘要: 命令行批量增加槽位 for i in {0..5000};do redis-cli -p 7000 cluster addslots $i;done 阅读全文
posted @ 2017-12-14 15:57 otwos 阅读(1369) 评论(1) 推荐(0) 编辑
摘要: padding valid50000/50000 [ ] - 99s - loss: 1.9688 - acc: 0.2727 - val_loss: 2.2398 - val_acc: 0.2541 padding same50000/50000 [ ] - 160s - loss: 1.7978 阅读全文
posted @ 2017-10-09 15:13 otwos 阅读(1217) 评论(0) 推荐(0) 编辑
摘要: 少参数50000/50000 [ ] - 75s - loss: 2.0726 - acc: 0.2503 - val_loss: 2.3972 - val_acc: 0.2151多参数50000/50000 [ ] - 154s - loss: 1.8582 - acc: 0.3299 - val 阅读全文
posted @ 2017-10-09 15:02 otwos 阅读(496) 评论(0) 推荐(0) 编辑
摘要: 其中build5方法预测最准确mae loss最小 tensorflow 阅读全文
posted @ 2017-09-22 16:21 otwos 阅读(3460) 评论(0) 推荐(0) 编辑
摘要: import tensorflow as tf from input_data import Data import matplotlib.pyplot as plt import os data=Data("./data/") X=tf.placeholder(tf.float32,[None,40,40,3]) y=tf.placeholder(tf.float32,[None,62... 阅读全文
posted @ 2017-09-21 19:11 otwos 阅读(440) 评论(0) 推荐(0) 编辑
摘要: brew tap homebrew/science brew install opencv cd /Library/Python/2.7/site-packages/ 如果是anaconda切换到anaconda目录 which python 查看python目录 将brew安装的opencv两个文 阅读全文
posted @ 2017-09-21 12:54 otwos 阅读(211) 评论(0) 推荐(0) 编辑
摘要: conda info --envs 查看全部环境 conda create -n snakes python=2 创建python2 环境snakes conda remove -n flowers --all 删除flowers环境 ·Linux,OS X:source activate snak 阅读全文
posted @ 2017-09-21 12:51 otwos 阅读(1443) 评论(0) 推荐(0) 编辑
摘要: def add_layer(inputs, in_size, out_size, activation_function=None): # add one more layer and return the output of this layer Weights = tf.Variable(tf.random_normal([in_size, out_size])) b... 阅读全文
posted @ 2017-09-20 09:26 otwos 阅读(338) 评论(0) 推荐(0) 编辑
摘要: 1 def compute_accuracy(v_xs, v_ys): 2 global prediction 3 y_pre = sess.run(prediction, feed_dict={xs: v_xs, keep_prob: 1}) 4 correct_prediction = tf.equal(tf.argmax(y_pre,1), tf.argmax(v_... 阅读全文
posted @ 2017-09-20 09:24 otwos 阅读(6797) 评论(0) 推荐(1) 编辑