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

Missing hyperparameters not throwing error #2

Closed
johnpaulgosling opened this issue May 16, 2022 · 1 comment
Closed

Missing hyperparameters not throwing error #2

johnpaulgosling opened this issue May 16, 2022 · 1 comment

Comments

@johnpaulgosling
Copy link

The following code:
matern(data.frame(x=1),data.frame(x=2),list(nu=1.5))
is missing the theta parameter.
It returns numeric(0) rather than giving a useful error and it could lead to issues if the function was used in a loop. Is it possible to add a check that the parameters have been specified?

@andy-iskauskas
Copy link
Owner

This should be fixed now in v1.0.1 (currently on github; hopefully soon to be on CRAN). Running the line of code in your example the function now returns No correlation length theta specified and stops, which should avoid problematic behaviour!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants