Skip to content

Commit

Permalink
Fix typing
Browse files Browse the repository at this point in the history
Signed-off-by: Adam Li <[email protected]>
  • Loading branch information
adam2392 committed Nov 8, 2023
1 parent 36c5582 commit 1ff7a5c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion sktree/experimental/mutual_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ def mutual_info_ksg(
algorithm="kd_tree",
n_jobs: int = -1,
transform: str = "rank",
random_seed: int = None,
random_seed: Optional[int] = None,
):
"""Compute the generalized (conditional) mutual information KSG estimate.
Expand Down
2 changes: 1 addition & 1 deletion sktree/stats/forestht.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from typing import Optional, Callable, Tuple, Union
from typing import Callable, Optional, Tuple, Union

import numpy as np
from joblib import Parallel, delayed
Expand Down
3 changes: 2 additions & 1 deletion sktree/stats/permutationforest.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from typing import Optional

import numpy as np
from numpy.typing import ArrayLike
from sklearn.base import MetaEstimatorMixin, clone, is_classifier
Expand All @@ -10,7 +12,6 @@
from sktree._lib.sklearn.ensemble._forest import BaseForest, ForestClassifier, ForestRegressor

from .utils import METRIC_FUNCTIONS, REGRESSOR_METRICS, _compute_null_distribution_perm
from typing import Optional


class BasePermutationForest(MetaEstimatorMixin):
Expand Down

0 comments on commit 1ff7a5c

Please sign in to comment.