ML_From_Scratch-master 读书笔记(1)

本文介绍了Adaboost算法的基本知识,包括算法的起源、分类器权重和样本权重的更新。在Python3环境中,通过实验展示了8x8手写数字识别,正确率达到了90%。文章还探讨了在实现过程中的技术细节,如ndarray的使用、数组拼接函数np.append和np.concatenate的比较,以及Python类的运用。
摘要由CSDN通过智能技术生成

按照上一篇博客中搭建好环境后,我们正式进入ML算法的学习。首先看第一个adaboost。

本文包含以下几个方面的内容:

 

  1. adaboost算法的基础知识
  2. python3的实现过程
  3. 实现过程中学习到的python3技巧

adaboost算法的基本知识

    adaboost的源头在《A Decision-Theoretic Generalization of On-Line Learning and an Application to Boosting》这篇论文里,是1996年的工作,关于这篇论文的解读笔记,会在接下来的几天里整理好,写成博客。这里引用一下其他人的解读点击打开链接还有这个,做一个快速的入门。

    (1)补充一下大家看点击打开链接的一些先验知识:

    分类器:二分类,标签+1;-1

    误差计算方法:,y是标签如【-1,-1,+1】,G(x)是分类器计算结果如【+1,-1,+1】,错的越多指数越大,loss越大

    样本权重*当前弱分类器的分类误差==强分类器的分类误差

    

    最后算出来的分类器权重,是以loss最小为目标的。

    这一步的推导中,下面的那个公式中F的下标应该是m-2

    

    (2)粘贴博客中关于adaboost中比较重要的一些概念,详细内容大家还是看博客原文:

  1. Adaboost算法基本原理就是将多个弱分类器(弱分类器一般选用单层决策树)进行合理的结合,使其成为一个强分类器。
  2. Adaboost采用迭代的思想,每次迭代只训练一个弱分类器,训练好的弱分类器将参与下一次迭代的使用。也就是说,在第N次迭代中,一共就有N个弱分类器,其中N-1个是以前训练好的,其各种参数都不再改变,本次训练第N个分类器。其中弱分类器的关系是第N个弱分类器更可能分对前N-1个弱分类器没分对的数据,最终
  • 1
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
如何从头开始构建autoML,Bridging WebML to model-driven engineering: From document type definitions to meta object facility,Meta-models are a prerequisite for model-driven engineering (MDE) in general and consequently for model-driven web engineering in particular. Various web modelling languages, however, are not based on meta-models and standards, like object management group's prominent meta object facility (MOF). Instead they define proprietary languages rather focused on notational aspects. Thus, MDE techniques and tools cannot be deployed for such languages preventing to exploit the full potential of MDE in terms of standardised storage, exchange and transformation of models. The WebML web modelling language is one example that does not yet rely on an explicit meta-model in the sense of MDE. Instead, it is defined in terms of a document type definition (DTD), and implicitly within the accompanying tool. Code generation then has to rely on model-to-code transformations based of extensible stylesheet language transformations (XSLT). We propose a meta-model for WebML to bridge WebML to MDE. To establish such a meta-model, instead of remodelling WebML's meta-model from scratch, a semi-automatic approach is provided that allows generating MOF-based meta-models on the basis of DTDs. The meta-model for WebML accomplishes the following aims: first, it represents an initial step towards a transition to employ MDE techniques within the WebML design methodology. Second, the provision of a MOF-based meta-model ensures interoperability with other MDE tools. Third, it represents an important step towards a common meta-model for Web modelling in future.
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值