深入瞭解機器學習:驗收你的學習成果
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
平均平方錯誤
請考慮以下兩個情節:
|
<img "units"quoquot;" 1⌖quot;" 2quoquot;" <quoquot;" abovequoquot;線條穿過 8 點。1 級 |
請查看下列選項。
上圖所示的兩個資料集中,哪一個是較大的平方平方錯誤 (MSE)?
左側的資料集。
該行的六個範例總共會損失 0。我們最不在線條的四個範例也離不遠,因此即使對其偏移進行偏移,仍會產生較低的值: $$ MSE = \frac{0^2 + 1^2 + 0^2 + 1^2 + 0^2 + 1^2 + 0^2 + 1^2 + 0^2 +
0^2} {10} = 0.4$$
右側的資料集。
線條上的八個範例總共會損失 0。不過,雖然線條上只有兩個點,但這些形狀的距離是左圖中離群點的兩倍
。平方損失會放大這些差異,因此偏移 2 會產生損失,為偏移的四倍。
$$ MSE = \frac{0^2 + 0^2 + 0^2 + 2^2 + 0^2 + 0^2 + 0^2 + 2^2 + 0^2 +
0^2} {10} = 0.8$$
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2022-11-04 (世界標準時間)。
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"缺少我需要的資訊"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"過於複雜/步驟過多"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"過時"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"翻譯問題"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"示例/程式碼問題"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"其他"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"容易理解"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"確實解決了我的問題"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"其他"
}]