拼命三娘冲(20191120)_Why Neural Network?

Ø Problem 1: Non-linear classification
在这里插入图片描述

  • If treat this problem with sigmoid function
    在这里插入图片描述
  • If we include enough polynomial terms, maybe we can get a hypothesis that separate the positive and negative examples.

Ø Problem 2: predict whether the house would be sold next year

Given 100 features of the house: .在这里插入图片描述

  • If only considering the quadratic terms
    在这里插入图片描述
    # quadratic terms
    在这里插入图片描述

  • If only considering the subset of quadratic terms
    在这里插入图片描述
    May not have the irregular shape we want, only constrained to ellipse in the above example.

  • If only considering the cubic terms
    在这里插入图片描述
    # cubic terms
    在这里插入图片描述
    Ø Problem 3: computer vision for car detection

  • Understanding computer vision problem for car detection as a classification problem using two pixels
    在这里插入图片描述在这里插入图片描述
    The nature of this problem is a classification problem.

  • If take 50*50 images (whichis quite small),->2,500 pixels
    在这里插入图片描述
    Using matrx of pixel intensity values that tell us the brightness of each pixel in the image(每个像素的亮度值矩阵)
    在这里插入图片描述

Summary

Logistic regression works well when you have only 2 features, like in Problem 1, because you can include al the polynomial terms. But for many interesting machine learning problems, which will have a lot more features than just 2, simple logistic regression together with adding in the quadratic or the cubic features is not a good way to learn complex non-linear hypotheses when the number of features is large because you will just end up with too many features [1]. Neural Network is a good way to learn complex non-linear hypotheses, even when the input feature space is very large.

[1] too many features may cause: (1) overfitting; (2) computational expensive

参考视频: 8 - 1 - Non-linear Hypotheses (10 min).mkv

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值