-
After looking at the issues #674 and #1669 and using what I thought might help I am still uncertain about how to implement a custom mean function in gpytorch (to which I am new). I decided to start with a simple linear mean function derived from a linear regression as an example. Later it should encode, for example, a physical model. Even though my question concentrates on the class “LinearRegressionMean” I am attaching a fully functional code to help clarify the whole question. Since I am not familiar with the usual way of doing it, please let me know if a shorter one would be better. ( I want to implement a custom mean function since they are, in my humble opinion, easier to model than kernels when one has a physical model describing approximate relationships but wants to make the model better with the help of data, falling back to the analytical function at the data gaps). Many thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @huerg, a linear mean function is already provided here. Hope this helps :) Let me know if you have further questions. |
Beta Was this translation helpful? Give feedback.
Hi @huerg, a linear mean function is already provided here. Hope this helps :) Let me know if you have further questions.