Description
Q1) Data in the file |
logistic |
is |
given in the form (x^{i}; y^{i})^{n} |
, where x^{i} |
2 R |
^{2}, and y^{i} |
2 f |
1; +1 |
g |
. |
|||
1 |
i=1 |
||||||||||||
(y = +1; x; w) = |
and (y = |
1; x; w) = |
|||||||||||
1+exp( (w(2)x(2)+w(1)x(1)+w(0))) |
|||||||||||||
L(w) = ^{P}_{i} L_{i}(w), where L_{i}(w) = |
log (y^{i}; x^{i}; w). [50 Marks] |
Let w = (w(2); w(1); w(0)) 2 R^{3}. Let . Learn the optimal w for loss function
Q2) Data in the file linear is given in the form (x^{i}; y^{i})^{n}_{i=1}, where x^{i} 2 R, and y^{i} 2 R. Let w = (w(1); w(0)) 2 R^{2}. Learn the optimal w for loss function L(w) = ^{P}_{i} L_{i}(w), where L_{i}(w) = (w(1)x^{i} + w(0) y^{i})^{2}. [50 Marks]