Skip to content

Commit 6d57297

Browse files
committed
add Matern12Kernel as alias for ExponentialKernel
1 parent 20daff6 commit 6d57297

File tree

4 files changed

+5
-3
lines changed

4 files changed

+5
-3
lines changed

docs/src/kernels.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ The Matérn 1/2 kernel is defined as
116116
```math
117117
k(x,x') = \exp\left(-|x-x'|\right),
118118
```
119-
equivalent to the Exponential kernel. There is no `Matern12Kernel`, use [`ExponentialKernel`](@ref) instead.
119+
equivalent to the Exponential kernel. `Matern12Kernel` is an alias for [`ExponentialKernel`](@ref).
120120

121121
### Matérn 3/2 Kernel
122122

src/basekernels/exponential.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,9 @@ iskroncompatible(::ExponentialKernel) = true
4242

4343
Base.show(io::IO, ::ExponentialKernel) = print(io, "Exponential Kernel")
4444

45-
## Alias ##
45+
## Aliases ##
4646
const LaplacianKernel = ExponentialKernel
47+
const Matern12Kernel = ExponentialKernel
4748

4849
"""
4950
GammaExponentialKernel(; γ = 2.0)

src/basekernels/matern.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ metric(::MaternKernel) = Euclidean()
3333

3434
Base.show(io::IO, κ::MaternKernel) = print(io, "Matern Kernel (ν = ", first.ν), ")")
3535

36+
## Matern12Kernel = ExponentialKernel aliased in exponential.jl
37+
3638
"""
3739
Matern32Kernel()
3840

src/transform/lineartransform.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ The second dimension of `A` must match the number of features of the target.
99
1010
```julia-repl
1111
julia> A = rand(10, 5)
12-
1312
julia> tr = LinearTransform(A)
1413
```
1514
"""

0 commit comments

Comments
 (0)