Classification and Representation

Classification and Representation

Classification

  • y ∈ y\in y{0,1}

    0:“Negative Class”

    1:“Positive Class”

    The training set is classified arbitrarily as 0 or 1.

    classification is not actually a linear function

    binary classification problem

    • y can take on only two values, 0 and 1

      Logistic Regression

      0 ≤ h θ ( x ) ≤ 1 0\leq h_\theta(x)\leq1 0hθ(x)1

Hypothesis Representation

  • Doesn’t make sense for h θ ( x ) h_\theta (x) hθ(x) to take values larger than 1 or smaller than 0 when we know that y ∈ {0, 1}.

⇒ \Rightarrow change the form for our hypotheses h θ ( x ) h_\theta (x) hθ(x) to satisfy 0 ≤ h θ ( x ) ≤ 1 0 \leq h_\theta (x) \leq 1 0hθ(x)1.( by plugging θ T x \theta^Tx θTx into the Logistic Function)

Sigmoid Function(Logistic Function)
在这里插入图片描述

The sigmoid function looks like:

在这里插入图片描述

The function g(z) shown here maps any real number to the (0, 1) interval, making it useful for transforming an arbitrary-valued function into a function better suited for classification.

h θ ( x ) h_\theta(x) hθ(x) will give us the probability that our output is 1.

Decision Boundary

decision boundary :

The line that separates the area where y = 0 and where y = 1. It is created by our hypothesis function.

To get our discrete 0 or 1 classification:
在这里插入图片描述

And

在这里插入图片描述

Remember:

The decision boundary is a property not of the training set, but of the hypothesis and of the parameters.

So as long as we’ve given the parameter vector θ \theta θ, that is what defines the decision boundary.

the parameter vector θ \theta θ, that is what defines the decision boundary.

The training set may be used to fit the parameters θ \theta θ.

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

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值