- 博客(7)
- 资源 (1)
- 收藏
- 关注
原创 virtualenv 下 更新 cycler
virtualenv 下 更新 cycler(AttributeError: 'Cycler' object has no attribute 'change_key')在virtualenv 下 输入命令 pip3 install --upgrade cycler
2018-03-07 21:33:50 228
原创 数值梯度 与 解析梯度
J(x1,x2)=x21+3x1∗x2解析梯度:function [value,grad] = simpleQuadraticFunction(x)% this function accepts a 2D vector as input. % Its outputs are:% value: h(x1, x2) = x1^2 + 3*x1*x2% grad: A 2x1 vector th...
2018-03-07 21:32:05 5143
原创 numpy 中的函数
#pad(array, pad_width, mode, **kwargs) , #array 表示需要填充的数组 #pad_width 表示每个维度左右两边填充的数量, # mode表示填充模式,可以是等值填充,常数填充等...
2018-03-07 21:29:22 189
原创 python报错解决
with open(filename, 'rb') as f: datadict = pickle.load(f,encoding='iso-8859-1')解决TypeError: ‘str’ does not support the buffer interfaceUnicodeDecodeError: ‘ascii’ codec can’t decode byte 0xe8 in po...
2018-03-07 21:28:28 693
原创 matplotlib
import matplotlib.pyplot as pltimport numpy as np1.图例(legend):plt.lengend()1. matplotlib 数据基本的可视化x = np.linspace(1,10,50) #从1到10,左闭右闭,均匀间隔的产生100个数siny=np.sin(x)cosy=np.cos(x)(1)#折线图的绘制,折线...
2018-03-07 21:27:42 186
原创 Ipython的一些常见设置
Ipython以%开头的称为行命令,%%开头的称为单元命令%matplotlib inline将matplotlib的图表直接嵌入到Notebook之中,inline表示将图表嵌入到Notebook中%load_ext autoreload%autoreload 2在ipython里已经import过的模块修改后重新reload...
2018-03-07 21:26:15 1402
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人