KMeams算法应用:图片压缩与贝叶斯公式理解
摘要:
from sklearn.datasets import load_sample_image import matplotlib.pyplot as plt from sklearn.cluster import KMeans import numpy as np flower=load_sample_image('flower.jpg')#原始图片 plt.imshow(flower) plt... 阅读全文
posted @ 2018-11-15 16:10 玉滨的博客 阅读(447) 评论(0) 推荐(0) 编辑