-
Notifications
You must be signed in to change notification settings - Fork 0
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
hyperparameters optimization #2
hyperparameters optimization #2
Conversation
Implement Gaussian Process.
…nto gaussian-processes
I'm not entirely sure anymore if my understanding of theta is correct, so I've converted the PR to a draft to work on it further. Don't hesitate to share any input you have on this. |
Implement Gaussian Process.
c7c91fc
to
af28a0a
Compare
So I push-forced to the branch after having rebased, and thus there are some conflicts to be solved. Sorry for this. First, and just in case, do a copy of your work in a separate folder. Then, assuming
And solve conflicts. If you run into trouble, we could do a zoom call so that I can help you sort this out. Other comments:
Also, I will split my PR so that some parts that can be finalised independently (e.g. the shell identification, angle computation, etc.) can be worked on and merged independently. |
Thanks a lot for your inputs! The dimension of the input is now clearer to me. It's a good idea to add tests specifically for the kernel. I'll work on adding them to the PR. |
After our discussion, I believe that the kernel part would probably fit better into a separate |
Implement Gaussian Process.
af28a0a
to
beb0839
Compare
I push forced again (beb0839). I added a notebook that takes the test code snippet and adds a simple visualization of the signal vs. the prediction. In the future, the loop would disappear and be more readable. Might be helpful when we will be checking visually how good the prediction is. Rebasing on the tip of the branch will require fixing the conflicts; apologies again Elodie. Once the utils PRs are merged, there should be less conflicts. Refactoring the kernel construction into their own module will also help. If they can be tested without relying on the GP iterative process, maybe they can be put into a separate PR soon and get them merged. |
10b4a6b
to
d4f4e75
Compare
What is the overlap of this and nipreps#202, nipreps#203 & nipreps#204? Are the contents of this PR all included within those PRs to the upstream repo? |
Everything is included in nipreps#202, nipreps#203 & nipreps#204. I'm closing this pull request. |
This is a draft to plug the hyperparameter optimizations into the GaussianProcessModel (for now only with maximum likelihood estimation). I think some of the functions might be redundant with your code, so feel free to remove them from my code. I reshaped the data array for the hyperparameter optimization, but depending on the shape of the data we feed into the fit method of the Gaussian processes, this could cause problems. Do you know what the shape of y_train will be?