Commit 86839a6
authored
Fix RBF kernel length scale calculation
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.1 parent 23d7a5a commit 86839a6
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
120 | | - | |
| 120 | + | |
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
| |||
0 commit comments