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 SVR unit test parameter #3294

Merged
merged 1 commit into from
Dec 11, 2020

Conversation

tfeher
Copy link
Contributor

@tfeher tfeher commented Dec 11, 2020

Linear SVR has the coef_ attribute in the python layer. In the C++ unit test the same vector is denoted by w, and it is defined as a linear combination of the support vectors

image

The number of elements in w is n_cols. One of the SVR tests only defined 1 expected value for w, instead of the expected n_cols=2 values, which lead to accessing an uninitialized value. This would fail the test unless the value is accidentally zero initialized. Surprisingly this happened extremely rarely.

This PR fixes the expected value w_exp.

@tfeher tfeher added bug Something isn't working non-breaking Non-breaking change labels Dec 11, 2020
@tfeher tfeher requested a review from a team as a code owner December 11, 2020 13:30
@rapids-bot rapids-bot bot merged commit 2e4388d into rapidsai:branch-0.18 Dec 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working non-breaking Non-breaking change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants