Skip to content

Add trusted types for KNeighbors models#521

Open
DresdenGman wants to merge 1 commit into
skops-dev:mainfrom
DresdenGman:add-knn-trusted-types
Open

Add trusted types for KNeighbors models#521
DresdenGman wants to merge 1 commit into
skops-dev:mainfrom
DresdenGman:add-knn-trusted-types

Conversation

@DresdenGman

Copy link
Copy Markdown

Adds the sklearn helper types used by KNeighborsClassifier(algorithm="kd_tree") to the default trusted types list, so these models can be loaded without manually passing those internal sklearn types.

The change follows the existing trusted-types pattern and adds regression coverage for the KNN persistence path.

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