
python机器学习(科学计算库)
唯羽
爱较真的程序员小白
展开
-
1 Matplotlib
1 实现一个简单的Matplotlibimport matplotlib.pyplot as plt# 1.创建画布# dpi有关图像清晰度plt.figure(figsize=(20, 8), dpi=100)# 2.绘制图像x = [1, 2, 3]y = [4, 5, 6]plt.plot(x, y)# 3.显示图像plt.show()2 折线图绘制与显示i...原创 2019-11-26 08:58:54 · 213 阅读 · 0 评论 -
2 numpy
1 numpy的优势1.1 介绍开源的python科学计算库,用于快速处理任意维度的数组是一个快速而灵活的大数据容器1.2 ndarray介绍n维数组类型ndarray存储数据import numpy as npscore = np.array([[80, 89, 86, 67, 79],[78, 97, 89, 67, 81],[90, 94, 78, 67, 74],...原创 2019-11-26 09:04:46 · 257 阅读 · 1 评论 -
3 pandas
1 pandas介绍以Numpy为基础,借力numpy模块在计算方面性能高的优势基于matplotlib,能够简便的画图独特的数据结构1.1 案例import pandas as pdimport numpy as npstock_change = np.random.normal(0, 1, (10, 5))stock_changearray([[-1.0098501 , ...原创 2019-11-26 09:14:25 · 1369 阅读 · 0 评论