Skip to content

Commit 9f6b946

Browse files
committed
fix H1 bias
1 parent 499d8ae commit 9f6b946

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

bias-variance.ipynb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -546,22 +546,22 @@
546546
},
547547
{
548548
"cell_type": "code",
549-
"execution_count": 145,
549+
"execution_count": 158,
550550
"metadata": {},
551551
"outputs": [
552552
{
553553
"data": {
554554
"text/plain": [
555-
"0.20139664888649592"
555+
"0.20670007189530804"
556556
]
557557
},
558-
"execution_count": 145,
558+
"execution_count": 158,
559559
"metadata": {},
560560
"output_type": "execute_result"
561561
}
562562
],
563563
"source": [
564-
"((h1_bar[0] * x + h1_bar[1])**2).mean()"
564+
"((h1_bar[0] * x + h1_bar[1] - y)**2).mean()"
565565
]
566566
},
567567
{

0 commit comments

Comments
 (0)