- 积分
- 57089
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2011-6-21
- 最后登录
- 1970-1-1
|
登录后查看更多精彩内容~
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
MIML - MeteoInfo机器学习工具箱。目前是0.2版本,在MeteoInfo 2.0.1版本中包含了该工具箱,包括神经网络, KNN, SVM, Random Forest, K-Means等等常用的机器学习算法。
用法:参考MeteoInfo网站的示例脚本:http://www.meteothink.org/examples/miml/index.html
源代码:https://github.com/meteoinfo/miml
欢迎使用!
一个DBSCAN聚类算法的例子:
 - from miml import datasets
- from miml.cluster import DBSCAN
- fn = os.path.join(datasets.get_data_home(), 'clustering', 'chameleon',
- 't4.8k.txt')
- df = DataFrame.read_table(fn, header=None, names=['x1','x2'],
- format='%2f')
- x = df.values
- clusters = DBSCAN(x, min_pts=20, radius=10)
- y = clusters.get_cluster_label()
- k = 6
- levs = range(k)
- levs.append(int(y.max()))
- cols = makecolors(k)
- cols.append('gray')
- scatter(x[:,0], x[:,1], c=y, edgecolor=None, s=3, levels=levs, colors=cols)
- title('Density-Based Spatial Clustering of Applications with Noise example')
|
|