上一页 1 ··· 17 18 19 20 21 22 23 24 25 ··· 49 下一页
摘要: 把iteritems改为items 阅读全文
posted @ 2018-07-04 10:29 GXTon 阅读(2042) 评论(0) 推荐(0)
摘要: 摘自:http://www.runoob.com/python/python-func-sorted.html sortedClassCount=sorted(classCount.items(),key=operator.itemgetter(1),reverse=True) #把'iterite 阅读全文
posted @ 2018-07-04 10:27 GXTon 阅读(418) 评论(0) 推荐(0)
摘要: 摘自:https://www.cnblogs.com/yushuo1990/p/5880041.html argsort函数argsort函数返回的是数组值从小到大的索引值 Examples One dimensional array:一维数组 >>> x = np.array([3, 1, 2]) 阅读全文
posted @ 2018-07-04 09:55 GXTon 阅读(7434) 评论(0) 推荐(0)
摘要: 摘自https://blog.csdn.net/ikerpeng/article/details/17026011 其实python中sum有两种 一种是python自己的sum 另一种是python的numpy库里的sum 阅读全文
posted @ 2018-07-04 09:44 GXTon 阅读(1265) 评论(0) 推荐(0)
摘要: tile函数位于python模块 numpy.lib.shape_base中,他的功能是重复某个数组。比如tile(A,n),功能是将数组A重复n次,构成一个新的数组,我们还是使用具体的例子来说明问题:(至于为什么是在numpy.lib.shape_base中,我还是不太清楚.) 其实tile就是重 阅读全文
posted @ 2018-07-04 09:36 GXTon 阅读(6508) 评论(0) 推荐(0)
摘要: 下面的代码是在python3中运行, 1 # -*- coding: utf-8 -*- 2 """ 3 Created on Tue Jul 3 17:29:27 2018 4 5 @author: Administrator 6 """ 7 8 from numpy import * #NumP 阅读全文
posted @ 2018-07-03 18:08 GXTon 阅读(262) 评论(0) 推荐(0)
摘要: NumPy库函数基础: 机器学习算法涉及很多线性代数知识。 NumPy库中有很多线性代数计算。 之所以用到线性代数只是为了简化不同的数据点上执行的相同数学运算。将数据表示为矩阵形式, 只需要执行简单的矩阵运算而不需要复杂的循环操作。 randMat =mat(random.rand(4,4)) 数据 阅读全文
posted @ 2018-07-03 17:18 GXTon 阅读(146) 评论(0) 推荐(0)
摘要: 摘自廖雪峰的网站;https://www.liaoxuefeng.com/wiki/0014316089557264a6b348958f449949df42a6d3a2e542c000/0014316784721058975e02b46cc45cb836bb0827607738d000 函数名其实就 阅读全文
posted @ 2018-07-02 16:48 GXTon 阅读(214) 评论(0) 推荐(0)
摘要: 视频8 C5 C6 L1 L2 是交流互感滤波, L1和L2通过磁芯耦合, 初级和次级匝数相等,极性相反, L1和L2对高频信号阻抗较大,但对50HZ没有作用,相当于线圈。 C5 C6 是滤波作用 C7C8把脉动直流电压,变为平缓的直流,,由于电解电容器C8是电容器(大容量100uf以上),对低频滤 阅读全文
posted @ 2018-06-28 18:47 GXTon 阅读(240) 评论(0) 推荐(0)
该文被密码保护。 阅读全文
posted @ 2018-06-25 10:20 GXTon 阅读(0) 评论(0) 推荐(0)
上一页 1 ··· 17 18 19 20 21 22 23 24 25 ··· 49 下一页