Skip to content

Prediction at endpoint yields NaN #34

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

Closed
Skumin opened this issue Feb 13, 2020 · 1 comment
Closed

Prediction at endpoint yields NaN #34

Skumin opened this issue Feb 13, 2020 · 1 comment

Comments

@Skumin
Copy link

Skumin commented Feb 13, 2020

The prediction using Loess.predict fails at endpoints for (some) cases where the covariate is equally spaced:

using Distributions
import Loess

x = collect(1:50);
y = x .+ rand(Normal(0, 10), 50);

x = convert(Array{Float64}, x);
model = Loess.loess(x, y);
prds = Loess.predict(model, x)
# prds[1] is NaN
@tlnagy
Copy link
Collaborator

tlnagy commented Apr 6, 2020

Duplicate of #28

@tlnagy tlnagy marked this as a duplicate of #28 Apr 6, 2020
@tlnagy tlnagy closed this as completed Apr 6, 2020
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