Skip to content

Commit

Permalink
init local variables
Browse files Browse the repository at this point in the history
  • Loading branch information
SvenKlaassen committed Dec 2, 2024
1 parent 61cf5cb commit 39e209c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion doubleml/rdd/rdd.py
Original file line number Diff line number Diff line change
Expand Up @@ -541,7 +541,8 @@ def _check_and_set_kernel(self, fs_kernel):
kernel_function = kernel_functions[fs_kernel]
kernel_name = fs_kernel

elif callable(fs_kernel):
else:
assert callable(fs_kernel)
kernel_function = fs_kernel
kernel_name = 'custom_kernel'

Expand Down
3 changes: 3 additions & 0 deletions doubleml/utils/tests/test_global_learners.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,9 @@ def test_predict_proba(gl_fixture):

@pytest.mark.ci
def test_clone(gl_fixture):
clone_reg = None
clone_clas = None

try:
clone_reg = clone(gl_fixture["GlobalRegressor"])
clone_clas = clone(gl_fixture["GlobalClassifier"])
Expand Down

0 comments on commit 39e209c

Please sign in to comment.