Skip to content

Commit a7a5742

Browse files
emilyfertigtensorflower-gardener
authored andcommitted
Docstring fixes for PSD kernels.
PiperOrigin-RevId: 474668459
1 parent 54a3b1b commit a7a5742

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tensorflow_probability/python/math/psd_kernels/internal/util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ def pairwise_square_distance_matrix(x1, x2, feature_ndims):
204204
205205
The latter term can be written as a matmul between `x1` and `x2`.
206206
This reduces the memory from the naive approach of computing the
207-
squared difference of `x1` and `x2` by a factor of `(prod_k D_k) ** 2`.
207+
squared difference of `x1` and `x2` by a factor of `prod_k D_k`.
208208
This is at the cost of the computation being more numerically unstable.
209209
210210
Args:

tensorflow_probability/python/math/psd_kernels/parabolic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class Parabolic(psd_kernel.AutoCompositeTensorPsdKernel):
3030
"""The Parabolic kernel.
3131
3232
```none
33-
k(x, y) = 3 / 4 * amplitude * max(0, 1 - (||x_k - y_k|| / length_scale**2)
33+
k(x, y) = 3 / 4 * amplitude * max(0, 1 - (||x_k - y_k|| / length_scale)**2)
3434
```
3535
3636
where the double-bars represent vector length (ie, Euclidean, or L2 norm).

0 commit comments

Comments
 (0)