ESL作业笔记2.1.

来源:互联网 发布:全球十大金融公司知乎 编辑:程序博客网 时间:2024/05/17 05:58

本文章基本是对https://stats.stackexchange.com/questions/130998/explanation-of-formula-for-median-closest-point-to-origin-of-n-samples-from-unit 的翻译。
解决问题为Element of Statistical Learning (ESL, https://web.stanford.edu/~hastie/ElemStatLearn/)课后习题2.1.


题目简介

Suppose each of K-classes has an associated target tk, which is a vector of all zeros, except a one in the kth position. Show that classifying to the largest element of y^ amounts to choosing the closest target, mink||tky^||2, if the elements of y^ sum to one.

解题

||tky^||2=i=1Ky^2iy^2k+(1y^k)2=i=1Ky^2i+12y^kargmink||tky^||2=argmin(2y^k)=argmaxk(y^k)

原创粉丝点击