Andrew Un的书《机器学习的激情》第44-46章的翻译

前几章


最终调试算法


44.优化验证测试(Optimization Verification测试)


假设您正在开发语音识别系统。系统接收输入的语音记录A并计算某个值A(S),以估计该声音片段与提案S相符的合理性例如,您可以尝试估计A的值(S)= P(S | A),假设输入声音为A,则正确的输出转录将提供S的概率


无论选择哪种估算数量A(S)的方法,任务都是找到该数量最大的英语句子S
图片


如何在此公式中计算“ arg max”?假设您有50,000个英文单词


50000N


N — , , .


, , S, () A(S). « », K . ( , « »). , S, A(S).


, A -, « ». : « ».
:


  1. . ( ) S, A(S).
  2. ( ). A(S) = P(S|A) . , A(S) « » .

, - . . , A(S).


, ; A(S). , , .
?


(« »), Sout. (« »), S*. , , (The Optimization Verification test): ScoreA(S*) ScoreA(Sout), ScoreA(S*) ScoreA(Sout).


1: ScoreA(S*) > ScoreA(Sout)


S*, , Sout. , Sout, S*. , S, A(S) . (The Optimization Verification test) , , . , « » (beam search).


2: ScoreA(S*)ScoreA(Sout).


ScoreA(.): S* Sout. (The Optimization Verification test) . , , ScoreA(S) S.


. (The Optimization Verification test) , . , ScoreA(S*) > ScoreA(Sout). , , , . , ScoreA(S*)ScoreA(Sout) ScoreA(.).


, , 95% ScoreA(.), 5% - . , , ~ 5% . , ScoreA(.).


45. (The Optimization Verification test).


(the Optimization Verification test) , , x , , x(y), , y x , arg maxyScorex(y), , . x=A, y=S.


, y* — «» , yout. Scorex(y*) > Scorex(yout). , . , . , Scorex(y).


. , . C ScoreC(E) E. , ScoreC(E) = P(E|C), E, , C.


图片


, , .


, Eout E*. , ScoreC(E*) > ScoreC(Eout). , ScoreC(.) E* Eout; , . , ScoreC(.).


« » : (approximate scoring function) Scorex(.), (approximate maximization algorithm). , (The Optimization Verification test) .


46.



, , . , , .


«». , . -. , , .


« » R(.), T. , T , R(T) = -1000 — «» . T, , R(T) , , . R(.), , T. , , , . — .


, R(T) , , , maxTR(T). .
, R(.) , . , , - — .


— , , , , maxTR(T) , , ?
(Optimization Verification test), Thuman, , -, Tout . , Thuman Tout. : , R(Thuman) > R(Tout)?


1: , R(.) , Thuman Tout. , , Tout, . , .


2: : R(Thuman)R(Tout). , R(.) Thuman , Tout, , Thuman . R(.), .


«» Scorex(.) . x, Score(.). Score(T)=R(T), (optimization algorithm) , , T.


此示例与先前示例之间的区别之一是,算法的质量不是与“最佳”结果进行比较,而是与人类轨迹T human进行比较我们认为,即使不是最优的T human也足够好。通常,只要您得到的结果y *(在此示例中为T human)超过系统的质量-即使它不是“最优”的,优化验证测试也会表明更有前途:改进优化算法或评估功能。


延续


All Articles