8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fdfdbf0 commit 9f6b849Copy full SHA for 9f6b849
sklearn/gaussian_process/tests/test_kernels.py
@@ -80,7 +80,7 @@ def test_kernel_theta():
80
# Determine kernel parameters that contribute to theta
81
init_sign = signature(kernel.__class__.__init__).parameters.values()
82
args = [p.name for p in init_sign if p.name != 'self']
83
- theta_vars = map(lambda s: s.rstrip("_bounds"),
+ theta_vars = map(lambda s: s[0:-len("_bounds")],
84
filter(lambda s: s.endswith("_bounds"), args))
85
assert_equal(
86
set(hyperparameter.name
0 commit comments