![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
数据分析
buliqiuqiu
java,大数据
展开
-
根据考试成绩预测是否录取,经典二分类问题
import numpy as npimport pandas as pdimport matplotlib.pyplot as plt%matplotlib inlinepdData = pd.read_csv('log_data.txt', header = None,names = ['exam1','exam2','admitted'])pdData.head()positive = pdData[pdData['admitted'] == 1] # 正例negativ..原创 2021-08-04 21:04:30 · 235 阅读 · 0 评论 -
热度图学习1
%matplotlib inlineimport matplotlib.pyplot as pltimport numpy as npnp.random.seed(0)import seaborn as snssns.set()uniform_data = np.random.rand(3,3)print(uniform_data)heatmap = sns.heatmap(uniform_data)normal_data = np.random.randn(3,3)print(nor.原创 2021-08-03 13:37:37 · 125 阅读 · 0 评论 -
pandas库
pandas中把读取到的string值转换成object类型pd.read_csv dataFrame .head .tail() .columns .shape .dtypes原创 2021-08-03 12:24:05 · 84 阅读 · 0 评论 -
数据分析与机器学习实战之python常用库
Numpynotebook数据预处理与可视化时方便IDE的话debug方便、anaconda search -t conda tensorflowanaconda show 目标packageNumpy 矩阵计算numpy IOnumpy.array声明一维数组,二维矩阵 .shape查看特征 array里的数据都是同种类型,int32与float64 用索引取数据 切片,取行取列vector == 10 布尔值也可以当初索引& | .astype(floa...原创 2021-08-03 01:57:44 · 292 阅读 · 0 评论