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

Automatic smoothing parameter selection #134

Open
tdinelli opened this issue Feb 7, 2023 · 3 comments
Open

Automatic smoothing parameter selection #134

tdinelli opened this issue Feb 7, 2023 · 3 comments

Comments

@tdinelli
Copy link

tdinelli commented Feb 7, 2023

Hi everyone

I am integrating splinter inside our framework, for the comparison of kinetic mechanisms performances. However I would like to extend the library adding some sort of automatic selection of the smoothing parameter, maybe through AIC or GCV. Do you ever tried to do something similar and have some hints on that?

Kindly

Timoteo

@bgrimstad
Copy link
Owner

Hi Timoteo,

Cool that you have found a use case for SPLINTER. Which programming language do you use?

We do not have any example code for automatic selection of the smoothing parameter. However, there should not be any limitations preventing you from using AIC or GCV for this. If I were to implement it, I would do it in Python first. After validating the code, I would reimplement it in C++ if needed. We would be happy to merge your implementation so that others can use it.

Please note that the develop branch is quite far ahead of the master branch. Release v3 was compiled from the master branch. The next release (v4) will be compiled from the develop branch. If you are able, I suggest that you compile from the develop branch.

Best regards,

Bjarne

@tdinelli
Copy link
Author

tdinelli commented Feb 7, 2023

Thank you Bjarne for the fast response,

yes I am aware of that and I am already using the version contained inside the develop branch. I use both c++ and python, and thank for the useful suggestion however I would like to reconstruct the Hat matrix first and at the moment I am not really aware on how to do that in python is there any function to get it from python?

@bgrimstad
Copy link
Owner

Good. There is currently no function for retrieving the "Hat matrix" in C++ or Python. However, the necessary computations can be found in src/bspline_utils.cpp. So, it looks like some extra work is required to implement GCV. Perhaps it is better to start with AIC since it should be pretty straight-forward to implement?

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