Andrew Ng-----Logistic Regression

原创 2018年04月15日 11:53:33

given x,want Y =  P(y=1|x)   Given an input feature vector x maybe corresponging to an image that you want to recognize as cat picture or not a cat picture. More formally ,you want y hat to be the probability of the chance that,y is equal to onr given the input features x,so in other words ,if x =is a picture

output : y, = w(tranfor)x + b   -------------------linear function

but it is not a very good algorithm for binary classification .because you want a P(0<=p<=1) between zero and one.

so in logistic regression our output is instead going to be y hat equals the sigmoid function applied to this quantity.


this is the shape of the sigmoid function   .label the axes by x and y.

full picture is that :

G(z) = 1/(1+e^(-z))

So ,if Z is very large then E to the negative Z will be close to zero,so the  gradien will be close zero. then the learing rates will be slowly.

So,when you implement logistic regression,your job is to try learn parameters W and B

Befor moving on,just anthor  note on the notation:

when we programming ,we usually keep the parameter W and parameter B seprrate,here B correponds to an interceptor 



  • 1970年01月01日 08:00

斯坦福 机器学习Andrew NG 第三讲Logistic Regression

Logistic Regression(Logistic 回归) 1·Classification(分类) 在生活中我们会遇到各种各样的分类问题,比如邮件的分类(判断是否是垃圾邮件),在线交易(是...
  • lvpyuan
  • lvpyuan
  • 2014-12-01 14:51:42
  • 1252

Andrew Ng Machine Learning 专题【Linear Regression】

此文是斯坦福大学,机器学习界 superstar — Andrew Ng 所开设的 Coursera 课程:Machine Learning 的课程笔记。力求简洁,仅代表本人观点,不足之处希望大家探讨...
  • yOung_One
  • yOung_One
  • 2015-07-29 17:38:34
  • 3148

Andrew Ng 《Machine Learning》第三讲——分类(Classification)&逻辑回归(Logistic Regression Model)

介绍分类问题、逻辑回归,包括Hypothesis Representation\Decision Boundary\Cost Function\Simplified Cost Function\Gra...
  • zhonglj0314
  • zhonglj0314
  • 2017-02-09 16:42:28
  • 685

监督学习之Logistic regression——Andrew Ng机器学习笔记(二)

内容提要这篇博客的主要内容有: - 介绍欠拟合和过拟合的概念 - 从概率的角度解释上一篇博客中评价函数J(θ)J(\theta)为什么用最小二乘法 - 局部加权线性回归(Locally Weig...
  • A_cainiao_A
  • A_cainiao_A
  • 2015-12-22 22:37:17
  • 1886

Andrew Ng Machine Learning 专题【Logistic Regression & Regularization】

此文是斯坦福大学,机器学习界 superstar — Andrew Ng 所开设的 Coursera 课程:Machine Learning 的课程笔记。力求简洁,仅代表本人观点,不足之处希望大家探讨...
  • yOung_One
  • yOung_One
  • 2015-08-10 22:53:04
  • 2293

Andrew Ng机器学习week6(Regularized Linear Regression and Bias/Variance)编程习题

Andrew Ng机器学习week6(Regularized Linear Regression and Bias/Variance)编程习题linearRegCostFunction.mfuncti...
  • u010043538
  • u010043538
  • 2017-06-02 00:30:17
  • 816

Andrew NG机器学习课程笔记系列之——机器学习之逻辑回归(Logistic Regression)

1. Classification 这篇文章我们来讨论分类问题(classification problems),也就是说你想预测的变量 y 是一个离散的值。我们会使用逻辑回归算法来解决分类问题。 之...
  • mydear_11000
  • mydear_11000
  • 2016-03-12 13:30:11
  • 1764

Linear Regression/线性回归与正则化(Andrew Ng 机器学习 一 )

线性回归 正则化 机器学习编程习题答案
  • u010402786
  • u010402786
  • 2016-02-24 21:02:48
  • 2711

Deep Learning by Andrew Ng --- Softmax regression

这是UFLDL的编程练习。Weight decay(Softmax 回归有一个不寻常的特点:它有一个“冗余”的参数集)后的cost function和梯度函数: cost function:J(θ)=...
  • meanme
  • meanme
  • 2015-04-04 15:52:16
  • 1425
您举报文章:Andrew Ng-----Logistic Regression