- 博客(6)
- 资源 (3)
- 收藏
- 关注
原创 matplotlib学习(二)
#image图片#image dataa = np.array([0.313660827978, 0.365348418405, 0.423733120134, 0.365348418405, 0.439599930621, 0.525083754405, 0.423733120134, 0.525083754405, 0.65153635
2018-01-13 15:23:06 400
原创 matplotlib库学习(一)
#matplotlib模块学习import matplotlib.pyplot as pltimport numpy as npx = np.linspace(-5,5,50)y1 = 2*x + 1y2 = x**2#画一个直线plt.figure()plt.plot(x,y1)plt.show()#在同一个fig中画两条线plt.figure(num=3,figsize=(8,6
2018-01-10 20:25:01 428
原创 基于keras的深度学习——分类
使用keras的深度学习来分类白葡萄酒还是红葡萄酒首先介绍一下数据类型:1.这个数据集包含了1599种红酒,4898种白酒; 2.输入数据特征: 1 - fixed acidity 2 - volatile acidity 3 - citric acid 4 - residual sugar 5 - chlorides 6 - free s
2018-01-08 16:57:14 9712 3
原创 Pandas学习(二)
import pandas as pdimport numpy as np#处理丢失数据dates = pd.date_range('20180107',periods=6)df = pd.DataFrame(np.arange(24).reshape((6,4)),index = dates,columns=['A','B','C','D'])df.iloc[0,1] = np.nan
2018-01-07 22:40:34 499
原创 Panads学习(一)
import pandas as pdimport numpy as np#创建序列s = pd.Series([1,2,3,4,5,np.nan,22,33])print s0 1.01 2.02 3.03 4.04 5.05 NaN6 22.07 33.0dtype: float64#创建DataFr
2018-01-07 15:46:08 688
原创 numpy使用
import numpy as npA = np.array([1,1,1])B = np.array([2,2,2])#vertical stackC = np.vstack((A,B))print C[[1 1 1] [2 2 2]]#horizontal stackD = np.hstack((A,B))print D[1 1 1 2 2 2]#
2018-01-06 13:46:57 281
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人