Skip to content

Conversation

@geoffreydstewart
Copy link
Member

Add some basic unit tests for KNN and adjust the predict method to throw an exception as documented by the API.

Signed-off-by: Geoffrey Stewart [email protected]

Description

A standard set of unit tests is being added for the k-nearest neighbor implementation

Motivation

Adding these unit tests illustrates the use of this functionality and provides some checks in case there are any changes made to the KNN feature in the future.

…row an exception as documented by the API

Signed-off-by: Geoffrey Stewart <[email protected]>
Craigacp
Craigacp previously approved these changes Jan 24, 2022
Copy link
Member

@Craigacp Craigacp 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, thanks. I'll merge it once you've removed the TODO comment.

@Craigacp Craigacp added Oracle employee This PR is from an Oracle employee squash-commits Squash the commits when merging this PR labels Jan 24, 2022
Copy link
Member

@Craigacp Craigacp left a comment

Choose a reason for hiding this comment

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

LGTM, thanks.

@Craigacp Craigacp merged commit 44f0077 into oracle:main Jan 24, 2022
@geoffreydstewart geoffreydstewart deleted the knn-unittests branch January 25, 2022 00:29
Craigacp pushed a commit that referenced this pull request Mar 25, 2022
* Add some basic unit tests for KNN and adjust the predict method to throw an exception as documented by the API

Signed-off-by: Geoffrey Stewart <[email protected]>

* remove the todo comment

Co-authored-by: Geoffrey Stewart <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Oracle employee This PR is from an Oracle employee squash-commits Squash the commits when merging this PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants