You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi there,
I'm new to GPyTorch and am playing around with an additive structured Kernel. I was able to get it run, but I'm failing at adding proper hyperparameters (in general), because I didn't found any helpful docs on how I get access to the right keywords..
print(model.kernel)(which is my covar_module) get's me:
but this works for a simple GP with only one base_kernel only. Could you introduce me in how to make proper hyperparameter initialization for an AdditiveStructureKernel and how I can inspect them on training time, please? I tried something like print(model.kernel.base_kernel.kernels) which works, but print(model.kernel.base_kernel.kernels.base_kernels) gives me AttributeError: 'ModuleList' object has no attribute 'base_kernel'.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi there,
I'm new to GPyTorch and am playing around with an additive structured Kernel. I was able to get it run, but I'm failing at adding proper hyperparameters (in general), because I didn't found any helpful docs on how I get access to the right keywords..
print(model.kernel)
(which is my covar_module) get's me:In the
__init__
method of my GP class I do something like:but this works for a simple GP with only one base_kernel only. Could you introduce me in how to make proper hyperparameter initialization for an AdditiveStructureKernel and how I can inspect them on training time, please? I tried something like
print(model.kernel.base_kernel.kernels)
which works, butprint(model.kernel.base_kernel.kernels.base_kernels)
gives meAttributeError: 'ModuleList' object has no attribute 'base_kernel'
.Beta Was this translation helpful? Give feedback.
All reactions