Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The L1Distance is often numerically unstable #122

Open
dfm opened this issue Oct 28, 2022 · 0 comments
Open

The L1Distance is often numerically unstable #122

dfm opened this issue Oct 28, 2022 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@dfm
Copy link
Owner

dfm commented Oct 28, 2022

Is this a bug? Should we change the default distance for the Matern kernels?

For example, the following:

import numpy as np
from tinygp import GaussianProcess, kernels

random = np.random.default_rng(48392)
X = random.uniform(-1, 1, (100, 2))
kernel = kernels.Matern32()
print(GaussianProcess(kernel, X, diag=0.01).solver.normalization())

returns NaN, but replacing the kernel with:

kernel = kernels.Matern32(distance=kernels.L2Distance())

works…

See also #115

@dfm dfm added the enhancement New feature or request label Oct 28, 2022
@dfm dfm self-assigned this Oct 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant