上一页 1 2 3 4 5 6 7 8 ··· 17 下一页
摘要: >>> from PIL import Image >>> #读取图像文件 ... >>> gal=Image.open('/Users/similarface/PycharmProjects/mybook/products/2016/06/13/1_TIBX78J.png') >>> #查看文件大小 ... >>> gal.size (100, 100) >>> #显示文件 ... ... 阅读全文
posted @ 2017-04-21 10:56 similarface 阅读(239) 评论(0) 推荐(0) 编辑
摘要: from PIL import Image from numpy import eye import numpy as np if __name__ == '__main__': arr=np.array([ [0,15,30,45], [60,75,90,105], [120,135,150,175], [190,205,... 阅读全文
posted @ 2017-03-20 17:11 similarface 阅读(680) 评论(0) 推荐(0) 编辑
摘要: 讲解了随机梯度下降,并且实现了代码。 阅读全文
posted @ 2017-03-03 17:17 similarface 阅读(1821) 评论(0) 推荐(0) 编辑
摘要: 问题:做一个简单线性回归和多元线性回归模型,怎么来度量这个模型呢? 回答: #Y中总的离差平方和 SST=∑(yi-Ÿ)2 #回归平方和 SSR=∑(Ýi-Ÿ)2 #SSE残差平凡和 SSE=∑(yi-Ýi)2 在图中关系: 在线性[简单还是多元]回归中有: SST=SSR+SSE yi=Ý-(yi 阅读全文
posted @ 2017-02-20 19:31 similarface 阅读(1297) 评论(0) 推荐(0) 编辑
摘要: import matplotlib.pyplot as plt import pandas as pd #数据来源 http://www-bcf.usc.edu/~gareth/ISL/Advertising.csv data=pd.read_csv('./Advertising.csv') pri 阅读全文
posted @ 2017-02-04 17:57 similarface 阅读(844) 评论(0) 推荐(0) 编辑
摘要: #下载论文sci-hub.cc#下载pdf书的好网址http://gen.lib.rus.ec 阅读全文
posted @ 2017-01-18 13:56 similarface 阅读(90) 评论(0) 推荐(0) 编辑
摘要: import numpy as np import matplotlib.pyplot as plt from sklearn.naive_bayes import GaussianNB from sklearn.svm import SVC from sklearn.datasets import load_digits from sklearn.model_selection impor... 阅读全文
posted @ 2017-01-16 16:09 similarface 阅读(270) 评论(0) 推荐(0) 编辑
摘要: #使用make_classification构造500个样本,每个样本有20个feature 阅读全文
posted @ 2017-01-16 14:03 similarface 阅读(159) 评论(0) 推荐(0) 编辑
摘要: #coding:utf-8 import numpy as np from sklearn.covariance import EllipticEnvelope from sklearn.svm import OneClassSVM import matplotlib.pyplot as plt import matplotlib.font_manager from sklearn.data... 阅读全文
posted @ 2017-01-05 23:55 similarface 阅读(4439) 评论(0) 推荐(0) 编辑
摘要: 正弦图像: 配置 绘制多轴图 配置文件 >>> import matplotlib >>> matplotlib.get_configdir() '/Users/similarface/.matplotlib' 刻度定义: 画点图 画三维图 #散点柱状图 箱图 小提琴图 柱状 #当有很多因素的时候怎 阅读全文
posted @ 2017-01-05 15:18 similarface 阅读(11997) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 17 下一页