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
In a variety of different fingerprint kernels, x1 and x2 are compared with something like
x1[-1] <something> x2[-1]
which only compares the last element in the kernel matrix, and does not do a pairwise comparison. This causes many kernels to not implement the function claimed in their docstring. Specifically, I think the following kernels are wrong:
Braun-Blanquet: the max(x1, x2) in the denominator is not computed correctly here:
What this shows: if I compute a whole kernel matrix and take element [0, -1], it gives a different result than directly computing element [0, -1]. This is because d is computed just using the last element in each batch, rather than computed separately for each pair.
I think this was not caught in the tests because they just tested 1xD matrices. I suspect that a lot of the "batch" similarities also don't work for batches of matrices.
If you can't fix this promptly, I suggest taking these methods out of Gauche and re-releasing. You can add corrected methods back in later.
The text was updated successfully, but these errors were encountered:
In a variety of different fingerprint kernels,
x1
andx2
are compared with something likewhich only compares the last element in the kernel matrix, and does not do a pairwise comparison. This causes many kernels to not implement the function claimed in their docstring. Specifically, I think the following kernels are wrong:
gauche/gauche/kernels/fingerprint_kernels/braun_blanquet_kernel.py
Line 37 in 3380401
d
) is only computed with the last element:gauche/gauche/kernels/fingerprint_kernels/faith_kernel.py
Line 35 in 3380401
Here is a minimal example showing the problem:
Output:
What this shows: if I compute a whole kernel matrix and take element [0, -1], it gives a different result than directly computing element [0, -1]. This is because
d
is computed just using the last element in each batch, rather than computed separately for each pair.I think this was not caught in the tests because they just tested
1xD
matrices. I suspect that a lot of the "batch" similarities also don't work for batches of matrices.If you can't fix this promptly, I suggest taking these methods out of Gauche and re-releasing. You can add corrected methods back in later.
The text was updated successfully, but these errors were encountered: