CMU 11-785 L18 Representation

Logistic regression

在这里插入图片描述

  • This the perceptron with a sigmoid activation
    • It actually computes the probability that the input belongs to class 1
    • Decision boundaries may be obtained by comparing the probability to a threshold
    • These boundaries will be lines (hyperplanes in higher dimensions)
    • The sigmoid perceptron is a linear classifier

Estimating the model

  • Given: Training data: ( X 1 , y 1 ) , ( X 2 , y 2 ) , … , ( X N , y N ) \left(X_{1}, y_{1}\right),\left(X_{2}, y_{2}\right), \ldots,\left(X_{N}, y_{N}\right) (X1,y1),(X2,y2),,(XN,yN)
  • X X X are vectors, y y y are binary (0/1) class values
  • Total probability of data

P ( ( X 1 , y 1 ) , ( X 2 , y 2 ) , … , ( X N , y N ) ) = ∏ i P ( X i , y i ) = ∏ i P ( y i ∣ X i ) P ( X i ) = ∏ i 1 1 + e − y i ( w 0 + w T X i ) P ( X i ) \begin{array}{l} P\left(\left(X_{1}, y_{1}\right),\left(X_{2}, y_{2}\right), \ldots,\left(X_{N}, y_{N}\right)\right)= \prod_{i} P\left(X_{i}, y_{i}\right) \\\\ =\prod_{i} P\left(y_{i} \mid X_{i}\right) P\left(X_{i}\right)=\prod_{i} \frac{1}{1+e^{-y_{i}\left(w_{0}+w^{T} X_{i}\right)}} P\left(X_{i}\right) \end{array} P((X1,y

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值