-
Notifications
You must be signed in to change notification settings - Fork 14
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
Interpretation of Lambda #26
Comments
Some lambda discussion happened here #2, maybe of use? |
I think the difference is that in the R X = (X .- minimum(X))/(maximum(X)-minimum(X)) If you then repeat your code from above with this new Alternatively, if you want to avoid the above transformation, the formula matching the lambdas to each other would be: λR = λJ / ( maximum(X) - minimum(X) )^3 So e.g., in the example from the Readme, λ equal to 250 / 21^3 ≈ 0.027 for the R function should give the same result. |
Thank you for the answer. I'll close the issue. |
The predicted values for the example seem to be different from the predicted values for the same input to the smooth.spline function in R.
Here's how I've done the comparison:
It seems the Lambda of the R function isn't the same as that of the Julia function. Is there a way to convert from one to another?
I am building the cross-validation feature for this package for the automatic selection of Lambda. I want to confirm the results with R using RCall. That's why it's important that for a given Lamda, the results are the same.
The text was updated successfully, but these errors were encountered: