Gaussian Process extension: multiple hyperparameters #2549
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hello.
I made some simple changes to the gaussian process module. Previously, the hyperparameters theta (parameters to optimize from the kernel function) were limited to one, though that one hyperparam could be multifeatured. This is no good if you want to combine kernels (like in Rasmussen & Williams' book) because each part of the new kernel will have its own hyperparams, so I modified the code to allow this.
Theta can now be a matrix, where columns are features / dimensions (just as before), but rows now correspond to different hyperparameters.
I also added a test for it and added a check in the built-in correlation functions to make sure they aren't taking in bad parameters. All the tests seemed to pass for me.
P.S. I hope I'm following the right procedure, I've never contributed before so please let me know if I'm missing anything.