导言
本篇博文介绍Learning from data一书中Exercise3.2的答案
题目
题意梗概: 采样100个训练样本,1000个测试样本。随机选一条直线作为target function生成label。将中间十分之一的样本的标签反转,来构筑一个不线性可分的样本。用pocket版本的PLA算法进行分类,记录训练过程中in-sample error和out-of-sample error的变化。由于pocket算法的特性,中间权值分w_hat和w。分别记录他们的权值。
本篇博文介绍Learning from data一书中Exercise3.2的答案
题意梗概: 采样100个训练样本,1000个测试样本。随机选一条直线作为target function生成label。将中间十分之一的样本的标签反转,来构筑一个不线性可分的样本。用pocket版本的PLA算法进行分类,记录训练过程中in-sample error和out-of-sample error的变化。由于pocket算法的特性,中间权值分w_hat和w。分别记录他们的权值。