码迷,mamicode.com
首页 >  
搜索关键字:matplotlib    ( 2252个结果
回归分析
import numpy as npimport matplotlib.pyplot as pltfrom sklearn import linear_modelfrom sklearn import datasets%matplotlib inlinediabetes = datasets.loa ...
分类:其他好文   时间:2020-06-17 12:56:52    阅读次数:53
Convolutional Neural Network-week1编程题(TensorFlow实现手势数字识别)
1. TensorFlow model import math import numpy as np import h5py import matplotlib.pyplot as plt import scipy from PIL import Image from scipy import nd ...
分类:Web程序   时间:2020-06-16 20:28:35    阅读次数:54
改善深层神经网络-week3编程题(TensorFlow实现手势数字识别)
TensorFlow常用函数 1 import math 2 import numpy as np 3 import h5py 4 import matplotlib.pyplot as plt 5 import tensorflow as tf 6 from tensorflow.python.f ...
分类:其他好文   时间:2020-06-15 13:51:06    阅读次数:54
Seaborn基础画图实例
import warnings warnings.filterwarnings('ignore') import numpy as np import pandas as pd import matplotlib.pyplot as plt import seaborn as sns Matplot ...
分类:其他好文   时间:2020-06-15 11:52:10    阅读次数:60
001
首先,导入一组数据,代码如下: import numpy as np import matplotlib.pyplot as plt x, y = [], [] for sample in open("../_Data/prices.txt", "r"): _x, _y = sample.split ...
分类:其他好文   时间:2020-06-14 18:59:39    阅读次数:100
matplotlib
1.散点图 matplotlib.pyplot.scatter(x, y, s=None, c=None, marker=None, cmap=None, norm=None, vmin=None, vmax=None, alpha=None, linewidths=None, verts=None ...
分类:其他好文   时间:2020-06-14 14:59:01    阅读次数:55
20193327《Python程序设计》实验报告四
python数据可视化分析首先载入必要的库import warningsimport numpy as npimport pandas as pdimport matplotlib.pyplot as pltimport seaborn as snssns.set()warnings.filterw ...
分类:编程语言   时间:2020-06-14 14:52:00    阅读次数:98
子图网格
import matplotlib.pyplot as pltimport numpy as npgs = plt.GridSpec(3,3)fig = plt.figure(figsize=(6,6))x1 = np.array([1,3,2,5])y1 = np.array([4,3,7,2]) ...
分类:其他好文   时间:2020-06-14 13:08:02    阅读次数:69
多面板图形
import matplotlib.pyplot as pltimport numpy as npfig = plt.figure()ax = fig.add_axes([0.1,0.1,0.8,0.8])inner_ax = fig.add_axes([0.6,0.6,0.25,0.25])x1 ...
分类:其他好文   时间:2020-06-14 12:45:50    阅读次数:70
数据预测,制做线性回归方程
1 import pandas 2 from matplotlib import pyplot 3 from scipy.stats import linregress 4 sale=pandas.read_excel('销售.xlsx',dtype={'date':str}) 5 6 7 slop ...
分类:其他好文   时间:2020-06-14 12:37:02    阅读次数:59
2252条   上一页 1 ... 18 19 20 21 22 ... 226 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!