🌐 AI搜索 & 代理 主页
Skip to content

Conversation

@DirkToewe
Copy link
Collaborator

Unbeknownst to me, .dataSync() may or may not return the underlying data array of a Tensor. This led to a subtle bug in the KdTree implementation. The protection copy added by this PR should fix that. PR also includes:

  • Regression tests for KdTree and BruteNeighborhood
  • src/neighbors/* test speedup
  • KNeighborsClassifier can now be instantiated without parameters.
  • KNeighborsBase.SUPPORTED_ALGORITHMS lists all available algorithms for testing convenience.

@netlify
Copy link

netlify bot commented Jan 26, 2022

✔️ Deploy Preview for scikitjs ready!

🔨 Explore the source changes: 5f681ea

🔍 Inspect the deploy log: https://app.netlify.com/sites/scikitjs/deploys/61f1cdbb276fca00087a3c17

😎 Browse the preview: https://deploy-preview-194--scikitjs.netlify.app

@DirkToewe DirkToewe requested a review from dcrescim January 26, 2022 22:41
Copy link
Collaborator

@dcrescim dcrescim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good @DirkToewe . :shipit:

@DirkToewe DirkToewe merged commit 341d34c into javascriptdata:main Jan 28, 2022
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.

2 participants