Closed rmcclosk closed 9 years ago
In the kernel method of the PhyloKernel class, lines 182-183, where the Gaussian radial basis function is computed, currently read
kernel
PhyloKernel
res = self.decayFactor * math.exp( -1. / self.gaussFactor * (n1.sqbl + n2.sqbl - 2*sum([(bl1[i]*bl2[i]) for i in range(len(bl1))])))
This is missing a factor of 2 in gaussFactor. It should read
gaussFactor
res = self.decayFactor * math.exp( -1. / (2*self.gaussFactor) * (n1.sqbl + n2.sqbl - 2*sum([(bl1[i]*bl2[i]) for i in range(len(bl1))])))
This isn't actually a problem, since it's consistent with the formula in Poon 2015. It's inconsistent with the formula in Poon et al. 2013 however.
In the
kernel
method of thePhyloKernel
class, lines 182-183, where the Gaussian radial basis function is computed, currently readThis is missing a factor of 2 in
gaussFactor
. It should read