Skip to content

Commit

Permalink
set use_c=True by default for KNNClassifier/KNNRegressor
Browse files Browse the repository at this point in the history
  • Loading branch information
eonu committed Dec 30, 2024
1 parent 284f51b commit 5a88026
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sequentia/models/knn/classifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def __init__(
weighting: t.Callable[[FloatArray], FloatArray] | None = None,
window: pyd.confloat(ge=0.0, le=1.0) = 1.0,
independent: bool = False,
use_c: bool = False,
use_c: bool = True,
n_jobs: pyd.PositiveInt | pyd.NegativeInt = 1,
random_state: pyd.NonNegativeInt | np.random.RandomState | None = None,
classes: list[int] | None = None,
Expand Down
2 changes: 1 addition & 1 deletion sequentia/models/knn/regressor.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def __init__(
weighting: t.Callable[[FloatArray], FloatArray] | None = None,
window: pyd.confloat(ge=0.0, le=1.0) = 1.0,
independent: bool = False,
use_c: bool = False,
use_c: bool = True,
n_jobs: pyd.PositiveInt | pyd.NegativeInt = 1,
random_state: pyd.NonNegativeInt | np.random.RandomState | None = None,
) -> pyd.SkipValidation:
Expand Down

0 comments on commit 5a88026

Please sign in to comment.