点此进入CSDN

点此添加QQ好友 加载失败时会显示




上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 23 下一页
摘要: import tensorflow as tf from tensorflow.examples.tutorials.mnist import input_data mnist = input_data.read_data_sets("MNIST_data",one_hot=True) def ad 阅读全文
posted @ 2020-03-15 00:11 高颜值的殺生丸 阅读(197) 评论(0) 推荐(0) 编辑
摘要: """ Please note, this code is only for python 3+. If you are using python 2+, please modify the code accordingly. """ #tensorboard --logdir="./" impor 阅读全文
posted @ 2020-03-15 00:09 高颜值的殺生丸 阅读(179) 评论(0) 推荐(0) 编辑
摘要: import tensorflow as tf #(tf.float32,[2,2]) input1 = tf.placeholder(tf.float32) input2 = tf.placeholder(tf.float32) output = tf.multiply(input1,input2 阅读全文
posted @ 2020-03-15 00:06 高颜值的殺生丸 阅读(333) 评论(0) 推荐(0) 编辑
摘要: import tensorflow as tf import numpy as np #create data x_data = np.random.rand(100).astype(np.float32) y_data = x_data*0.1+0.3 Weights = tf.Variable( 阅读全文
posted @ 2020-03-15 00:03 高颜值的殺生丸 阅读(158) 评论(0) 推荐(0) 编辑
摘要: import tensorflow as tf matrix1 = tf.constant([[3,3]]) matrix2 = tf.constant([[2],[2]]) product = tf.matmul(matrix1,matrix2) #矩阵相乘 # sess = tf.Session 阅读全文
posted @ 2020-03-15 00:01 高颜值的殺生丸 阅读(199) 评论(0) 推荐(0) 编辑
摘要: import tensorflow as tf state = tf.Variable(0,name='counter') print(state.name) one = tf.constant(1) #常量加变量还是变量 new_value = tf.add(state,one) #把新的值给st 阅读全文
posted @ 2020-03-14 23:59 高颜值的殺生丸 阅读(251) 评论(0) 推荐(0) 编辑
摘要: sorted_items = sorted(dico.items(),key=lambda x:(-x[1],x[0])) 阅读全文
posted @ 2020-03-04 22:35 高颜值的殺生丸 阅读(271) 评论(0) 推荐(0) 编辑
摘要: 代码内容请见: https://github.com/LiuXinyu12378/DNN-network 阅读全文
posted @ 2020-03-03 19:50 高颜值的殺生丸 阅读(404) 评论(0) 推荐(0) 编辑
摘要: 可用于网络训练打乱训练数据个标签,不改变对应关系 方法一: np.random.shuffle (无返回值,直接打乱原列表) state = np.random.get_state() np.random.shuffle(train) np.random.set_state(state) np.ra 阅读全文
posted @ 2020-03-01 15:36 高颜值的殺生丸 阅读(1780) 评论(0) 推荐(0) 编辑
摘要: bath_path = r"I:\ner_results\ner_results" dir_list1 = os.listdir(bath_path) for dir1 in dir_list1: path = os.path.join(bath_path,dir1) print(path) I:\ 阅读全文
posted @ 2020-03-01 10:22 高颜值的殺生丸 阅读(1027) 评论(0) 推荐(0) 编辑
上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 23 下一页

作者信息

昵称:

刘新宇

园龄:4年6个月


粉丝:1209


QQ:522414928