Skip to content

Commit

Permalink
Merge pull request christophM#348 from shokru/patch-1
Browse files Browse the repository at this point in the history
Update 04.7-interpretable-rulefit.Rmd
  • Loading branch information
christophM authored Sep 25, 2022
2 parents 9e88a8c + cf73bd8 commit c64e57f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion manuscript/04.7-interpretable-rulefit.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ Since RuleFit uses Lasso, the loss function gets the additional constraint that

\begin{align*}
(\{\hat{\alpha}\}_1^K,\{\hat{\beta}\}_0^p) & = & argmin_{\{\hat{\alpha}\}_1^K,\{\hat{\beta}\}_0^p}\sum_{i=1}^n L(y^{(i)},f(x^{(i)})) \\
& + & \lambda\cdot\left(\sum_{k=1}^K|\alpha_k| + \sum_{j=1}^p|b_j|\right)
& + & \lambda\cdot\left(\sum_{k=1}^K|\alpha_k| + \sum_{j=1}^p|\beta_j|\right)
\end{align*}

The result is a linear model that has linear effects for all of the original features and for the rules.
Expand Down

0 comments on commit c64e57f

Please sign in to comment.