Question: ( 3 0 p ] h ( x ) g ( 0 0 + 0 1 * xl + 0 2 * x 2 )

(30p] h(x) g(00+01*xl +02*x2) where the g() is a logistic (sigmoid) activation function. The intial values of theparametcers are set to be 00==0.5,01=1.5 and 02=-0.7. The learning rate (a) was set to 0.8. The cost function is givenas follows: show only the first two epochs and update the parameters 00,01, and 02 in each epoch using the gradient,descent algorithm. Note that clearly indicates new values of es in cach epoch. In addition, you must compute the totallogistic regression loss at the end of cach epoch and clearly indicate the total loss in cach epoch, After completing twoepochs of training. use, use the final parameters Os and made predictions using the training input data to find the class label(0 or 1) of the correspoding input data using a threshold of 0.35. Then, construct a confusion matrix using thepredictions and target labels to compute the Fl score. Confusion matrix must be also shown in you answer. Use fourdecimal places for all calculations (e.g.0.1234).(Note that 10*-0.00000001 is added to prevent the In function not tobecome undefined).J(0=y"n|a()+10(1-y")la|1-h("*10"))0.80,2-1.x22.11-0.700.510.41.10
 (30p] h(x) g(00+01*xl +02*x2) where the g() is a logistic (sigmoid)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!