Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[REVIEW] Fix SVC decision function data type #2586

Merged
merged 6 commits into from
Jul 22, 2020

Conversation

tfeher
Copy link
Contributor

@tfeher tfeher commented Jul 22, 2020

This PR fixes the SVC decision function data type. Without this fix, the decision function is incorrect if we have integer labels.

The predict function of SVMBase can provide either the predictions (class labels for SVC) or the decision function values. While the labels can be any numerical type, the decision function values are expected to be floats. This has to be considered when we configure the output data type.

A unit test is added to prevent similar errors in the future.

Additional unrelated changes:

  • n_classes_ attribute is added to SVC,
  • "nochange_steps" is added to the list of SVM parameters.

@tfeher tfeher requested a review from a team as a code owner July 22, 2020 14:34
@GPUtester
Copy link
Contributor

Can one of the admins verify this patch?

@GPUtester
Copy link
Contributor

Please update the changelog in order to start CI tests.

View the gpuCI docs here.

Copy link
Member

@dantegd dantegd left a comment

Choose a reason for hiding this comment

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

lgtm

@dantegd dantegd merged commit d35ce7d into rapidsai:branch-0.15 Jul 22, 2020
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.

3 participants