LFD Book Forum  

Go Back   LFD Book Forum > Book Feedback - Learning From Data > Chapter 3 - The Linear Model

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 07-26-2014, 04:07 PM
BojanVujatovic BojanVujatovic is offline
Member
 
Join Date: Jan 2013
Posts: 13
Default Problem 3.5

I have questions about this problem. What I get after analyzing E_n(\textbf{w}) is the following:

E_n(\textbf{w}) = 
\begin{cases}
0, &\text{sign}(\textbf{w}^T\textbf{x}_n)=y_n \Leftrightarrow  y_n\textbf{w}^T\textbf{x}_n \geq 0  \\ 
|y_n - \textbf{w}^T\textbf{x}_n|=1 - y_n\textbf{w}^T\textbf{x}_n, & \text{sign}(\textbf{w}^T\textbf{x}_n) \neq y_n \Leftrightarrow  y_n\textbf{w}^T\textbf{x}_n < 0 
\end{cases}

The last line follows because:
1\cdot|y_n - \textbf{w}^T\textbf{x}_n| = |y_n||y_n-\textbf{w}^T\textbf{x}_n|
= |1 - y_n\textbf{w}^T\textbf{x}_n|=1 - y_n\textbf{w}^T\textbf{x}_n (since y_n\textbf{w}^T\textbf{x}_n < 0)

From this, I cannot see how E_n(\textbf{w}) is not continuous at \textbf{w}^T\textbf{x}_n = y_n. Instead I find that it is not continuous nor differentiable for \textbf{w}'s such that \textbf{w}^T\textbf{x}_n = 0.

Any help would be greatly appreciated.
Reply With Quote
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 06:10 AM.


Powered by vBulletin® Version 3.8.3
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
The contents of this forum are to be used ONLY by readers of the Learning From Data book by Yaser S. Abu-Mostafa, Malik Magdon-Ismail, and Hsuan-Tien Lin, and participants in the Learning From Data MOOC by Yaser S. Abu-Mostafa. No part of these contents is to be communicated or made accessible to ANY other person or entity.