码农知识堂 - 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

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

  • 相关阅读:
    C语言程序设计笔记(浙大翁恺版) 第五周:循环控制
    算法金 | 一个强大的算法模型,GP !!
    JAVA学习-三元操作符if-else
    2022上行部落的学习和实践总结
    【学习笔记42】操作DOM
    HTML简单语句
    MySQL下载安装运行
    doris---Rollup
    MYSQL数据库--存储引擎
    【考研数学】概率论如何复习?跟谁好?
  • 原文地址:https://blog.csdn.net/weixin_62012485/article/details/126417432
  • 最新文章
  • 沪漂五周年了:我越来越迷茫了
    Agentic Skill Routing 实战:别再把所有 Skill 塞进 AI Agent 上下文
    MySQL-Seconds_behind_master的精度误差
    [MAF预定义ChatClient中间件-03]CachingChatClient——利用缓存省钱省时间
    AI的至暗历史:从万众期待到被政府撤资,AI的两次死亡徘徊
    Agent OS :五种驯服不确定性的范式
    PortSwigger SQL注入LAB11
    数据库即时编译JIT
    [Begin]AI Learn Data Day 0
    深度学习进阶(二十七)现代 LLM 的核心架构设计其二:SwiGLU
  • 热门文章
  • 十款代码表白小特效 一个比一个浪漫 赶紧收藏起来吧!!!
    奉劝各位学弟学妹们,该打造你的技术影响力了!
    五年了,我在 CSDN 的两个一百万。
    Java俄罗斯方块,老程序员花了一个周末,连接中学年代!
    面试官都震惊,你这网络基础可以啊!
    你真的会用百度吗?我不信 — 那些不为人知的搜索引擎语法
    心情不好的时候,用 Python 画棵樱花树送给自己吧
    通宵一晚做出来的一款类似CS的第一人称射击游戏Demo!原来做游戏也不是很难,连憨憨学妹都学会了!
    13 万字 C 语言从入门到精通保姆级教程2021 年版
    10行代码集2000张美女图,Python爬虫120例,再上征途
小工具 小游戏
Copyright © 2022 侵权请联系2656653265@qq.com    京ICP备2022015340号-1

京公网安备 11010502049817号