Quention 3
Normalius the row of the input matris to hwe the \( L_{\text {a }} \) nare equal to 1, we the cade ecarple belew.
Without that nsmelivation, ovwrfow errors might accur in the exponemiol function? step aise is taken from a lat \( [0.1, \ldots, 1.0] \) we the Pyitan cade below.
"Pythen
import numpy wn np
fram akbarndatasets impart laad brent_cancer
fram sklearn-adel_whetan import KI ald
fram skbarn-etrica impart rac_we,acore
allad the data
mdaka ndie - Xshape
Af ta comert the \( \{0,1] \) autput ints \( [-1,+1\} \)
\( y=2^{2} y-1 \)
AS hyperparameten of the barning tank of Q-ention I
wh lint of step wices
Ieta \( -|0.1 *| j+1 \mid \) for \( i \) in range(10)
us number of iteration
iteratan \( = \) sa
nfold os of number af folds
np. tandam wesd(12345) si fox the randam weed to avad randar
flectuation of the results
As te pitt the data into S-foids we mend
As normaluatio-
Af acalng the nows by raximum abuatute val Le, \( L \) infinite narm af columex MDC curve, w an acruracy memuse on the carrapending validation wet.
Hound the mumbers up to 2 decimal plecks and select the closest ene from the pusible amanen.
a. \( 0.24,0.6 \)
b. Oas, a.1
\( \mathrm{O} c \) ontas
0 d. 0.91, a.s