Commit d47c86bb authored by Le Roux Erwan's avatar Le Roux Erwan
Browse files

[EXTREME ESTIMATOR][EXTREME MODEL] add ideas for spline based margin model

parent b7198152
No related merge requests found
Showing with 12 additions and 0 deletions
+12 -0
"""
Potentially, we could implement a spline model for the margin, to check results from Gaume
rbpspline
Fits a penalized spline with radial basis functions to data
Examplesn <- 200x <- runif(n)fun <- function(x) sin(3 * pi * x)y <- fun(x) + rnorm(n, 0, sqrt(0.4))
knots <- quantile(x, prob = 1:(n/4) / (n/4 + 1))fitted <- rbpspline(y, x, knots = knots, degree = 3)fittedplot(x, y)lines(fitted, col = 2)
"""
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment