File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -951,16 +951,17 @@ The objective for the optimization becomes
951
951
952
952
Where :math: `[P]` represents the Iverson bracket which evaluates to :math: `0 `
953
953
if :math: `P` is false, otherwise it evaluates to :math: `1 `. We currently provide four choices
954
- for the regularization term :math: `r(W)` via the `penalty ` argument:
954
+ for the regularization term :math: `r(W)` via the `penalty ` argument, where :math: `m`
955
+ is the number of features:
955
956
956
957
+----------------+----------------------------------------------------------------------------------+
957
958
| penalty | :math: `r(W)` |
958
959
+================+==================================================================================+
959
960
| `None ` | :math: `0 ` |
960
961
+----------------+----------------------------------------------------------------------------------+
961
- | :math: `\ell _1 ` | :math: `\| W\| _{1 ,1 } = \sum _{i=1 }^n \sum _{j=1 }^{K}|W_{i,j}|` |
962
+ | :math: `\ell _1 ` | :math: `\| W\| _{1 ,1 } = \sum _{i=1 }^m \sum _{j=1 }^{K}|W_{i,j}|` |
962
963
+----------------+----------------------------------------------------------------------------------+
963
- | :math: `\ell _2 ` | :math: `\frac {1 }{2 }\| W\| _F^2 = \frac {1 }{2 }\sum _{i=1 }^n \sum _{j=1 }^{K} W_{i,j}^2 ` |
964
+ | :math: `\ell _2 ` | :math: `\frac {1 }{2 }\| W\| _F^2 = \frac {1 }{2 }\sum _{i=1 }^m \sum _{j=1 }^{K} W_{i,j}^2 ` |
964
965
+----------------+----------------------------------------------------------------------------------+
965
966
| `ElasticNet ` | :math: `\frac {1 - \rho }{2 }\| W\| _F^2 + \rho \| W\| _{1 ,1 }` |
966
967
+----------------+----------------------------------------------------------------------------------+
You can’t perform that action at this time.
0 commit comments