Skip to content

feat: pass n_jobs to KNN defaults - #69

Merged
rxavier merged 1 commit into
mainfrom
feat/preprocessing-p1-knn-njobs
Aug 3, 2026
Merged

rxavier merged 1 commit into
mainfrom
feat/preprocessing-p1-knn-njobs

Conversation

@rxavier

@rxavier rxavier commented Aug 3, 2026

Copy link
Copy Markdown
Owner

Summary

Implements P1-6 from the ML defaults improvements plan (docs/ml-defaults-improvements.md).

Changes

  • KNeighborsClassifier and KNeighborsRegressor are now constructed with n_jobs=self.n_jobs, matching RandomForest.

Tests

  • Default KNN pipelines carry the estimator's n_jobs (classifier and regressor).

All 252 tests pass; ruff + format clean.

KNeighborsClassifier and KNeighborsRegressor were built without n_jobs,
unlike RandomForest. Propagate the estimator's n_jobs.

Closes P1-6 of the ML defaults improvements plan.
@rxavier
rxavier merged commit 3164216 into main Aug 3, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant