Commit 55da81d
Add LogExpM1 transformation (#2601)
* Add softplus transformation
Softplus transformation (from non-negative to reals) might be more numerically stable (see Fig. 9 in Kucukelbir et al. 2017).
* add test
* Change name and implement a more numerically stable logexpm1
See https://github.com/tensorflow/tensorflow/blob/0b0d3c12ace80381f4a44365d30275a9a262609b/tensorflow/python/ops/distributions/util.py#L1009 for the derivation
* change default transformation for PositiveContinuous
* Revert "change default transformation for PositiveContinuous"
This reverts commit 8bc036c.
* name change1 parent 0bb0ad1 commit 55da81d
2 files changed
+33
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
108 | 130 | | |
109 | 131 | | |
110 | 132 | | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | 133 | | |
115 | 134 | | |
116 | 135 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
107 | 117 | | |
108 | 118 | | |
109 | 119 | | |
| |||
0 commit comments