少了空格,应该是pip install jupyter_contrib_nbextensions -i https://pypi.douban.com/simple/
读童话的狼
2021-03-11
将Lib\site-packages\pywin32_system32中这两个文件复制到C:\Windows\System32目录下
读童话的狼
2021-03-11
a 哑变量的截距是基准类别的值,哑变量的回归系数表示的是某类别和基准类别之间的平均差异;b 若线性模型有截距项,用哑变量,因为多余的自由度可以被统摄到截距项intercept里去;c 若线性模型有截距项,且使用正则化,用独热编码,因为正则化会约束系数,使各变量地位相等,从而处理多余特征;d 无截距项,使用独热编码e 树模型不建议使用二进制类型的编码,因为会加深树的深度,或者减小节点分裂增益最好是选
读童话的狼
2021-03-10
关键字写错了,应该是load data infile
读童话的狼
2021-03-10
python3.x里默认的str是(py2.x里的)unicode, bytes是(py2.x)的str, b”“前缀代表的就是bytes若要正常显示,需要加encoding='unicode_escape'
读童话的狼
2021-03-08
import pandas as pddf=pd.read_sas('fs_6.sas7bdat',encoding='unicode_escape')df1=df.loc[:,'I11':'I65']for i in df1.columns: df[i].fillna(df[i].mean(),inplace=True)
读童话的狼
2021-03-08
包更新了,移除了这个属性,换用下面代码即可import matplotlib.mlab as mlabfrom scipy.stats import normmu = 100 # 均值sigma = 15 # 标准差x = mu + sigma * np.random.randn(1000)n, bins, patches = plt.hist(x, 50, density=True)#
读童话的狼
2021-03-08
一般就是回归里边,用到最小二乘法的,直接处理共线性就可以,因为共线性指的就是两个或两个以上变量的高度相关
读童话的狼
2021-03-05
在Terminal里分别运行两个安装命令pip install jupyter_contrib_nbextensions -i https://pypi.douban.com/simple/ jupyter contrib nbextension install --user
读童话的狼
2021-03-04