
numpy
GY_Nan
天街小雨润如酥
展开
-
2017.7.10 && Numpy
1.Numpy——arrays 2.Numpy——arrayindexing 3.Numpy——datatypes 4.Numpy——arraymath 5.Numpy——broadcasting原创 2017-07-10 19:24:06 · 558 阅读 · 0 评论 -
2017.7.11 && numpy的broadcasting解析
原出处Broadcasting broadcasting官网The term broadcasting describes how numpy treats arrays with different shapes during arithmetic operations. Subject to certain constraints, the smaller array is “broadcas转载 2017-07-11 20:05:00 · 609 阅读 · 0 评论 -
2017.7.11 && 一些不熟悉的函数 && 一些干货学习资料
1.创建单位阵d = np.eye(2) # Create a 2x2 identity matrixprint d # Prints "[[ 1. 0.] # [ 0. 1.]]"2.创建随机阵e = np.random.random((2,2)) # Create an array fill原创 2017-07-11 17:20:51 · 400 阅读 · 0 评论 -
2017.7.13 && 笔记
1.a = np.array([[1.0, 2.0], [3.0, 4.0]])a.transpose()这个函数,是求a的转置2.np.linalg.inv() 矩阵求逆np.linalg.det() 矩阵求行列式(标量)np.eye(2) 二阶单位阵np.trace(u)原创 2017-07-13 11:18:53 · 347 阅读 · 1 评论 -
关于深浅拷贝
要说清楚Python中的深浅拷贝,需要搞清楚下面一系列概念: 变量-引用-对象(可变对象,不可变对象)-切片-拷贝(浅拷贝,深拷贝)【变量-对象-引用】 在python中一切都是对象,比如说:3, 3.14, ‘Hello’, [1,2,3,4],{‘a’:1}……甚至连type其本身都是对象,type对象 Python中变量与C/C++/Java中不同,它是指对象的引用,Python是动态类原创 2017-07-14 18:54:13 · 492 阅读 · 0 评论 -
scikit-image/matplotlib处理图像知识点 2017 7.15
1.图像读入Numpy数组时,应注意数组的类型,dtypes = np.zeros((100, 32, 32, 3), dtype='uint8')2.我觉得比较重要的学习和查询网址Python Numpy Tutorial: http://cs231n.github.io/python-numpy-tutorial/scikit-image学习 http://scikit-image.org/原创 2017-07-15 16:52:00 · 443 阅读 · 0 评论