- 博客(8)
- 资源 (2)
- 收藏
- 关注
原创 Oh My Posh美化CMD、Anaconda Prompt解决方案
Oh My Posh美化CMD、Anaconda Prompt解决方案
2022-12-18 14:10:50 1490 1
原创 常用matplotlib.pyplot画图系列(组)
1. 画两组数据的对比折线图import numpy as npimport matplotlib.pyplot as pltalist = [4,5,7,1,3,7,4,9,4,2] # 也可以是ndarray类型blist = [8,3,6,1,0,4,5,9,2,7]t_plt, = plt.plot(np.arange(1, len(alist)+1), alist, 'r
2017-08-29 14:26:47 1300
转载 tensorflow:用dynamic_rnn处理不定长序列,对序列做padding处理
1. 数据处理(padding zero)首先,我有一个list类型的数据集,按最长将序列的长度存储,不足长度的后面padding zero。将数据集存为ndarray类型的矩阵:import numpy as npdataset = [[[1], [2], [3], [4]], # list类型的数据集,有4个序列, feature_dim=1
2017-07-31 10:16:11 15427 1
原创 tensorflow:tf.stack的用法
堆叠list类型的数据:import tensorflow as tflist_ = [[1, 2, 3], [4, 5, 6]]print(type(list_))a = tf.stack(list_, 0)print(a.get_shape().as_list())输出结果:[2, 3]
2017-07-12 09:26:51 6088
原创 sklearn的precision_score, recall_score, f1_score使用
from sklearn.metrics import precision_score, recall_score, f1_scorey_true = [0, 1, 1, 0, 1, 0]y_pred = [1, 1, 1, 0, 0, 1]p = precision_score(y_true, y_pred, average='binary')r = recall_score(y_t
2017-07-12 09:23:28 28995 1
原创 tensorflow报错:Shape must be rank 2 but is rank 3 for 'MatMul' (op: 'MatMul')
tensorflow矩阵相乘,秩不同报错在tensorflow中写了这样一句:y_out = tf.matmul(outputs, W)其中,outputs的shape为[16,336,400],W的shape为[400,1]出现以下报错:Shape must be rank 2 but is rank 3 for 'MatMul' (op: 'MatMul') with
2017-07-03 09:58:01 18717 1
原创 matplotlib.pyplot画灰度图
以画MNIST手写体为例:import matplotlib.pyplot as pltfrom tensorflow.contrib.learn.python.learn.datasets.mnist import read_data_setsmnist = read_data_sets('MNIST_data', one_hot=False)x, y = mnist.test.n
2017-05-31 10:55:07 25447
原创 TypeError: Fetch argument None has invalid type <class 'NoneType'>解决方案
Tensorflow报错:TypeError: Fetch argument None has invalid type 报错完整内容: File "D:/Workspace/SpyderWorkspace/Models/RBM_mnist.py", line 211, in main sess.run(rbm.train_ops(k, step, i),feed
2017-05-31 10:11:52 31807
qtp测试用例及测试脚本
2011-12-23
SSH整合项目
2011-12-23
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人