参考文章: http://www.cnblogs.com/FayJack/articles/3063146.html 创建CreateCode.ashx文件: <%@ WebHandler Language="C#" Class="CreateCode" %> using System; using System.Web; using System.Drawing; using System.Drawing.Imaging; using System.W
# Visualize some examples from the dataset. # We show a few examples of training images from each class. classes = ['plane', 'car', 'bird', 'cat', 'deer', 'dog', 'frog', 'horse', 'ship', 'truck'] #类别列表 num_classes = len(classes) #类别数目 samples_per_cla
Matplotlib概述 In [1]: import numpy as np import matplotlib.pyplot as plt #pyplot是matplotlib的画图的接口 %matplotlib inline 魔法指令,作用:省略之后的plt.show()的步骤 In [3]: %matplotlib inline 1.基本画图 In [6]: plt.plot([1,2,3,4,5],[1,4,9,16,25])#折线图,取值范围会自动设置 plt.xlabe