1 / 27

第八章 机器学习算法 简介

第八章 机器学习算法 简介. 邹权(博士) 计算机科学系. 提要. 8.1 机器学习问题 8.2 机器学习算法 8.3 机器学习应用 8.4 WEKA 平台简介. 8.1 机器学习问题. 概念 人工智能 (Artificial Intelligence, AI) 机器学习 (machine learning, ML) 模式识别 (Pattern Recognition, PR) 研究内容 分类 (classify) 、聚类 (cluster) 、回归 (regress)

Télécharger la présentation

第八章 机器学习算法 简介

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. 第八章 机器学习算法简介 邹权(博士) 计算机科学系

  2. 提要 8.1 机器学习问题 8.2 机器学习算法 8.3 机器学习应用 8.4 WEKA平台简介

  3. 8.1 机器学习问题 • 概念 • 人工智能(Artificial Intelligence, AI) • 机器学习(machine learning, ML) • 模式识别(Pattern Recognition, PR) • 研究内容 • 分类(classify)、聚类(cluster)、回归(regress) • 有监督学习(supervised learning) 、无监督学习(unsupervised learning) 、半监督学习(semi-supervised learning)

  4. 分类 训练

  5. 不同的分类方法效果不同

  6. 8.2 机器学习算法 • 分类 • 朴素贝叶斯(Native Bayes) • Fisher线性判别 • 支持向量机(support vector machine, SVM) • K近邻(k nearest neighbors, kNN) • 聚类 • K均值(K means)

  7. 贝叶斯分类器的错误率估计

  8. P(x|cj)P(cj) P( cj|x) = P(x) 贝叶斯公式 • 先验概率P(cj) • 联合概率P(x|cj) • 后验概率P(cj|x)

  9. Bayes最小错误率决策例解 两类细胞识别问题:正常类(ω1)和类异常(ω2) 根据已有知识和经验,两类的先验概率为: 正常(ω1): P(ω1)=0.9 异常(ω2): P(ω2)=0.1 对某一样本观察值x,通过计算或查表得到:p(x|ω1)=0.2, p(x|ω2)=0.4 如何对细胞x进行分类? p(x|ω1) p(x|ω2) 最小错误率决策

  10. Bayes最小错误率决策例解(2) 利用贝叶斯公式计算两类的后验概率: 最小错误率决策 决策结果

  11. Fisher线性判别函数分类器 Fisher准则的基本原理:找到一个最合适的投影轴,使两类样本在该轴上投影之间的距离尽可能远,而每一类样本的投影尽可能紧凑,从而使分类效果为最佳。

  12. Fisher线性判别 Fisher准则的基本原理:找到一个最合适的投影轴,使两类样本在该轴上投影之间的距离尽可能远,而每一类样本的投影尽可能紧凑,从而使分类效果为最佳。

  13. Fisher线性判别图例 Fisher x2 w1 H: g=0 x1 w2 Fisher准则的描述:用投影后数据的统计性质(均值和离散度的函数)作为判别优劣的标准。

  14. SVM-线性可分

  15. SVM-线性不可分 以到原点的距离作为第3维 (实际上分布在一个旋转抛物面上)

  16. 8.3 机器学习应用 • 生物信息处理 • 基因挖掘 • 大分子功能预测 • 基因调控关系 • 网络安全 • 垃圾邮件过滤 • 敏感图片识别 • 病毒检测 • 多媒体处理 • 人脸识别、指纹识别 • 视频跟踪 • 哼唱找歌 • 自然语言处理 • 机器翻译 • 信息检索(google, baidu) • 中文输入法

  17. 8.4 WEKA • 全名:怀卡托智能分析环境(Waikato Environment for Knowledge Analysis) • 下载:http://www.cs.waikato.ac.nz/ml/weka • 功能:分类、回归、聚类、关联规则 • 特点:可视化操作、可调用编程 • 开发:JAVA、开源 • 荣誉: ACM SIGKDD的最高服务奖(2005.8)

  18. 数据格式

  19. 图形化操作 http://you.video.sina.com.cn/b/8235896-1272335572.html

  20. 编程操作---第一个程序 public class Console { public static void main(String[] args) { try{ BufferedReader br = new BufferedReader(new FileReader("train.arff")); Instances ins = new Instances(br); ins.setClassIndex(ins.numAttributes()-1); Classifier c1 = new J48(); c1.buildClassifier(ins); System.out.println(c1.toString());} catch(Exception ex){} }}

  21. 编程操作----注意事项 • 不要忘了在工程中导入weka.jar包 • 不要忘了import相应的类

  22. Pancake Flipping Problem • The chef is sloppy; he prepares an unordered stack of pancakes of different sizes • The waiter wants to rearrange them (so that the smallest winds up on top, and so on, down to the largest at the bottom) • He does it by flipping over several from the top, repeating this as many times as necessary Christos Papadimitrou et al flip pancakes

More Related