2018年7月14日

摘要: 本次主要学习sklearn的preprocessing库:用来对数据预处理,包括无量纲化,特征二值化,定性数据量化等。 先看下这个库所包含的类及方法: 主要包括14大类,为训练集数据的预处理提供接口,每个类都提供了fit(填充数据,获取数据上的特征信息并保存),transform(将fit保存的信息 阅读全文
posted @ 2018-07-14 18:21 muziyi 阅读(1340) 评论(0) 推荐(0) 编辑
 
摘要: Jupyter Notebook各种使用方法记录 大数据杂谈 关注 2017.03.06 23:13* 字数 1603 阅读 9532评论 4喜欢 15 大数据杂谈 关注 2017.03.06 23:13* 字数 1603 阅读 9532评论 4喜欢 15 2017.03.06 23:13* 字数 阅读全文
posted @ 2018-07-14 18:15 muziyi 阅读(567) 评论(0) 推荐(0) 编辑
 

2018年7月13日

摘要: 参考链接 http://www.bubuko.com/infodetail-2403179.html https://blog.csdn.net/tintinetmilou/article/details/72478960 阅读全文
posted @ 2018-07-13 13:12 muziyi 阅读(99) 评论(0) 推荐(0) 编辑
 

2018年5月16日

摘要: import pandas as pd unrate=pd.read_csv("unrate.csv") unrate['DATE']=pd.to_datetime(unrate['DATE']) print(unrate.head(12)) >>> DATE VALUE 0 1948-01-01 阅读全文
posted @ 2018-05-16 11:33 muziyi 阅读(189) 评论(0) 推荐(0) 编辑
 

2018年5月7日

摘要: 输入整数 输入小数 阅读全文
posted @ 2018-05-07 21:01 muziyi 阅读(3025) 评论(0) 推荐(0) 编辑
 
摘要: import numpy as np import pandas as pd a=pd.read_csv("titanic_train.csv") a.head() 阅读全文
posted @ 2018-05-07 17:16 muziyi 阅读(309) 评论(0) 推荐(0) 编辑
 
摘要: import pandas food_info=pandas.read_csv('food_info.csv')#将csv文件读进来 print(type(food_info)) print(food_info.dtypes) print(help(pandas.read_csv)) food_in 阅读全文
posted @ 2018-05-07 16:36 muziyi 阅读(131) 评论(0) 推荐(0) 编辑
 

2018年5月6日

摘要: a = np.arange(12) b = a print (b is a) b.shape = 3,4 print (a.shape) print (id(a)) print (id(b)) >>> True (3, 4) 2052537612608 2052537612608 c = a.vie 阅读全文
posted @ 2018-05-06 20:10 muziyi 阅读(129) 评论(0) 推荐(0) 编辑
 
摘要: numpy.array 参数类型要一样,而list参数可以不同 import numpy vector=numpy.array([5,6,7,8,9]) matrix=numpy.array([[1,2,3],[2,3,4],[4,5,6]]) print(vector) print(matrix) print(vector.shape) print(matrix.shape) vector.d... 阅读全文
posted @ 2018-05-06 19:52 muziyi 阅读(658) 评论(0) 推荐(0) 编辑
 
摘要: names=['yangyuying','zilingxi','ziye','muziyi'] for name in names: print(name) >>> yangyuying zilingxi ziye muziyi i=0 while i>> 1 2 3 for i in range(5): print(i) >>> 0 1 2 3 4 actor=[[... 阅读全文
posted @ 2018-05-06 10:36 muziyi 阅读(131) 评论(0) 推荐(0) 编辑