Skip to content

Commit

Permalink
Fix minor typo in LAD notebook
Browse files Browse the repository at this point in the history
  • Loading branch information
alessandrozocca committed Aug 19, 2024
1 parent 3e06d8b commit e159073
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions notebooks/02/02-lad-regression.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,10 @@
"$$\n",
"\\begin{align}\n",
" \\min \\quad & \\sum_{i=1}^n |e_i| \\\\\n",
" \\text{s.t.} \\quad & e_i = y^{(i)} - {m}^\\top {X}^{(i)} - b & \\forall\\, i=1,\\dots,n.\n",
" \\text{s.t.} \\quad & e_i = y^{(i)} - {m}^\\top {X}^{(i)} - b & \\forall\\, i=1,\\dots,n,\\\\\n",
" & e_i \\in \\mathbb{R} & \\forall\\, i=1,\\dots,n,\\\\\n",
" & m_j \\in \\mathbb{R} & \\forall\\, j=1,\\dots,k,\\\\\n",
" & b \\in \\mathbb{R}.\n",
"\\end{align}\n",
"$$\n",
"\n",
Expand All @@ -190,8 +193,10 @@
"$$\n",
"\\begin{align}\n",
" \\min \\quad & \\sum_{i=1}^n ( e_i^+ + e_i^-) \\\\\n",
" \\text{s.t.} \\quad & e_i^+ - e_i^- = y^{(i)} - {m}^\\top {X}^{(i)}-b & \\forall\\, i=1, \\dots, n \\\\\n",
" & e_i^+, e_i^- \\geq 0 & \\forall\\, i=1, \\dots, n\n",
" \\text{s.t.} \\quad & e_i^+ - e_i^- = y^{(i)} - {m}^\\top {X}^{(i)}-b & \\forall\\, i=1, \\dots, n,\\\\\n",
" & e_i^+, e_i^- \\geq 0 & \\forall\\, i=1, \\dots, n,\\\\\n",
" & m_j \\in \\mathbb{R} & \\forall\\, j=1,\\dots,k,\\\\\n",
" & b \\in \\mathbb{R}.\n",
"\\end{align}\n",
"$$\n",
"\n",
Expand Down

0 comments on commit e159073

Please sign in to comment.