Studia grazie alle numerose risorse presenti su Docsity
Guadagna punti aiutando altri studenti oppure acquistali con un piano Premium
Questa pagina non è visibile nell’anteprima
Non perderti parti importanti!
1
% fit yy = wwxx % ww = (D+1)x1 weights % xx = Nx(D+1) test cases % yy = Nx ww = xx\yy;*
% fit yy = wwxx % ww = (D+1)x1 weights % xx = Nx(D+1) test cases % yy = Nx ww = xx\yy;*
% fit yy = wwxx % ww = (D+1)x1 weights % xx = Nx(D+1) test cases % yy = Nx ww = xx\yy;*
Least squares classifier revisited Using the same procedure as for least squares: 𝑾 = (𝑿 𝑇 𝑿) − 1 𝑿 𝑇 𝒀 𝑓 𝒙 = 𝑾 𝑇 𝒙 𝐶 𝒙 = 𝑎𝑟𝑔 max 𝑘∈𝒞 𝑓 𝑘 (𝒙)
Least squares classifier revisited % fit YY = WWxx % ww = (D+1)xK weights % xx = Nx(D+1) test cases % yy = NxK ww = xx\yy;*
Least squares classifier revisited 𝒚 2 ~ 0 𝒚 2 ~ 1 % ww = 3x2 weights % xx = 1x3 test cases % yhat = 1x yhat = xxww; [~,chat]=max(yhat);*