-
Notifications
You must be signed in to change notification settings - Fork 3
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
Fixing multiplying by a constant #11
base: master
Are you sure you want to change the base?
Conversation
Multiplying by a constant normally adds an extra parameter from the ConstantKernel, which breaks the code; we need to call ConstantKernel directly and specify that this should be an immutable parameter. Also removed the frivolous differences between rmjarvis/treegp (which this was originally cloned from) and pfleget/treegp (which this is being pushed to.
f37f012
to
629133c
Compare
@peterkentkiernan I am sorry to come back so late on that PR. I tried to reproduce the error but I am not able to reproduce it... I am using the version Do you have an example of the problem? |
return None | ||
else: | ||
L = get_correlation_length_matrix(corr_length, g1, g2) | ||
invLam = np.linalg.inv(L) | ||
kernel_used = sigma**2 * self.kernel_class(invLam=invLam) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Having an example of this failing can be nice. I am not able to reproduce this error.
Multiplying by a constant without specifying adds an extra parameter, which breaks the code. Instead, we need to specify that the parameter in the constant kernel should not be changed. (I also fixed some minor oversights on checking if e or g was out of bounds.)