cs229 support vector Machine for learning notes

Source: Internet
Author: User
function distance and geometric distance

Set the features and class labels to x,y∈{−1,1} x, y \in \{-1,1\}, define the classifier hw,b (x) =g (wtx+b) H_{w,b} (x) =g (W^tx+b), G (z) ={1−1z≥0 z<0 g (z) =\begin{ cases}1&\text{$z \geq 0$}\\-1&\text{$z function Distance

Given training sample (X (i), Y (i)) (x^{(i)},y^{(i)}), the function distance r^ (i) =y (i) (WTx (i) +b) \hat{r}^{(i)}=y^{(i)} (w^tx^{(i)}+b)
If Y (i) =1 y^{(i)}=1, we want wTx (i) +b w^tx^{(i)}+b to be a relatively large positive number. Similarly, if Y (i) =−1 y^{(i)}=-1, we want wTx (i) +b w^tx^{(i)}+b to be a relatively small negative number. This way our predictions are correct and have a high degree of confidence. If Y (i) (WTx (<

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.