码农知识堂 - 1000bd
  •   Python
  •   PHP
  •   JS/TS
  •   JAVA
  •   C/C++
  •   C#
  •   GO
  •   Kotlin
  •   Swift
  • Machine learning week 6(Andrew Ng)


    文章目录

      • Advice for applying machine learning
        • 1、Advice
          • 1.1、What to try next
          • 1.2、Evaluating model
          • 1.3、Model selection and training/cross validation/test sets
        • 2、Bias and variance
          • 2.1、Diagnosing bias and variance
          • 2.2、Regularization and bias/variance
          • 2.3、Establishing a baseline level of performance
          • 2.4、Learning curves
          • 2.5、Deciding what to try next revisited
          • 2.6、Bias/variance and neural networks
        • 3、Machine learning development process
          • 3.1、Iterative loop of ML development
          • 3.2、Error analysis
          • 3.3、Adding data
          • 3.4、Transfer learning: using data from a different task
          • 3.5、Full cycles of a machine learning project
        • 4、Skewed datasets
          • 4.1、Error metrics(误差度量) for skewed datasets
          • 4.2、Trading off precision and recall

    Advice for applying machine learning

    1、Advice

    1.1、What to try next

    在这里插入图片描述

    1.2、Evaluating model
    • To test your model’s performance on new data before deploying it? we can split the training set into “Training” and “Test” sets.
      - For the linear regression :
      在这里插入图片描述
    1.3、Model selection and training/cross validation/test sets

    The original thought is to choose the least J t e s t ( w , b ) J_{test}(w,b) Jtest​(w,b).
    But the test set J test is now overly optimistic that is lower than the actual estimate of the generalization error.
    We divide the data set into three parts and pick the least J c v ( w , b ) J_{cv}(w,b) Jcv​(w,b).
    在这里插入图片描述
    在这里插入图片描述

    2、Bias and variance

    2.1、Diagnosing bias and variance

    Underfit produces high bias while overfit produces high variance.
    在这里插入图片描述
    在这里插入图片描述
    The notion of high bias and high variance, it doesn’t really happen for linear models applied to one deep. But it is possible sometimes they’re both at the same time.

    2.2、Regularization and bias/variance

    在这里插入图片描述
    在这里插入图片描述

    2.3、Establishing a baseline level of performance

    Determine the baseline first.
    在这里插入图片描述

    2.4、Learning curves

    在这里插入图片描述
    Learning curves
    在这里插入图片描述

    2.5、Deciding what to try next revisited

    在这里插入图片描述

    2.6、Bias/variance and neural networks

    在这里插入图片描述

    if you have a small neural network like this, and you were to switch to a much larger neural network like this, you would think that the risk of overfitting goes up significantly. But it turns out that if you were to regularize this larger neural network appropriately, then this larger neural network usually will do at least as well or better than the smaller one. So long as the regularization has been chosen appropriately.

    在这里插入图片描述

    3、Machine learning development process

    3.1、Iterative loop of ML development

    在这里插入图片描述

    3.2、Error analysis

    Hopefully looking through maybe around 100 examples will give you enough statistics about whether the most common types of errors and therefore where maybe most fruitful to focus your attention. After this analysis, if you find that a lot of errors are pharmaceutical spam emails then this might give you some ideas or inspiration for things to do next.

    3.3、Adding data

    There are many ways to enhance data based on the data we had before.

    3.4、Transfer learning: using data from a different task

    在这里插入图片描述

    在这里插入图片描述

    3.5、Full cycles of a machine learning project

    在这里插入图片描述

    4、Skewed datasets

    4.1、Error metrics(误差度量) for skewed datasets

    The ratio of positive to negative examples is very skewed, very far from 50-50, then it turns out that the usual error metrics like accuracy don’t work that well.
    在这里插入图片描述

    4.2、Trading off precision and recall

    在这里插入图片描述
    在这里插入图片描述

  • 相关阅读:
    LongAdder为什么在高并发下保持良好性能?LongAdder源码详细分析
    Django面对高并发现象时处理方法
    【Spring】手动实现Spring底层机制-问题的引出
    zabbix安装部署、三分钟分钟部署zabbix监控(超详细)
    20道前端高频面试题(附答案)
    MySQL8.0安装教程,在Linux环境安装MySQL8.0教程,最新教程 超详细
    使用PHP对接企业微信审批接口的问题与解决办法(二)
    Qt消息对话框的使用
    SparkSession - Spark SQL 的 入口
    MyBatis的自定义插件
  • 原文地址:https://blog.csdn.net/weixin_62012485/article/details/126417432
  • 最新文章
  • 攻防演习之三天拿下官网站群
    数据安全治理学习——前期安全规划和安全管理体系建设
    企业安全 | 企业内一次钓鱼演练准备过程
    内网渗透测试 | Kerberos协议及其部分攻击手法
    0day的产生 | 不懂代码的"代码审计"
    安装scrcpy-client模块av模块异常,环境问题解决方案
    leetcode hot100【LeetCode 279. 完全平方数】java实现
    OpenWrt下安装Mosquitto
    AnatoMask论文汇总
    【AI日记】24.11.01 LangChain、openai api和github copilot
  • 热门文章
  • 十款代码表白小特效 一个比一个浪漫 赶紧收藏起来吧!!!
    奉劝各位学弟学妹们,该打造你的技术影响力了!
    五年了,我在 CSDN 的两个一百万。
    Java俄罗斯方块,老程序员花了一个周末,连接中学年代!
    面试官都震惊,你这网络基础可以啊!
    你真的会用百度吗?我不信 — 那些不为人知的搜索引擎语法
    心情不好的时候,用 Python 画棵樱花树送给自己吧
    通宵一晚做出来的一款类似CS的第一人称射击游戏Demo!原来做游戏也不是很难,连憨憨学妹都学会了!
    13 万字 C 语言从入门到精通保姆级教程2021 年版
    10行代码集2000张美女图,Python爬虫120例,再上征途
Copyright © 2022 侵权请联系2656653265@qq.com    京ICP备2022015340号-1
正则表达式工具 cron表达式工具 密码生成工具

京公网安备 11010502049817号