Skip to content

Conversation

whiteode
Copy link

This commit fixes the implementation of the RBF kernel function to correctly match the standard mathematical definition. Previously, the length scale parameter ls was used without squaring, resulting in a kernel formula of exp(- (1/(2ls)) * ||x1 - x2||^2 ). The corrected implementation now uses ls**2 in the denominator, so the kernel is computed as exp(- (1/(2ls**2)) * ||x1 - x2||^2 ), which is consistent with the conventional RBF kernel definition.

Description of changes:

By submitting this pull request, I confirm that you can use, modify,
copy, and redistribute this contribution, under the terms of your
choice.

This commit fixes the implementation of the RBF kernel function to correctly match the standard mathematical definition. Previously, the length scale parameter ls was used without squaring, resulting in a kernel formula of exp(- (1/(2*ls)) * ||x1 - x2||^2 ). The corrected implementation now uses ls**2 in the denominator, so the kernel is computed as exp(- (1/(2*ls**2)) * ||x1 - x2||^2 ), which is consistent with the conventional RBF kernel definition.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant