-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Add a test case for linearregressor #1962
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
Conversation
testing::Values(LinearRegressorParam("NONE", {32.0f, 14.0f, -166.0f}, 1), | ||
LinearRegressorParam("SOFTMAX", {32.0f, 14.0f, -166.0f}, 1), | ||
LinearRegressorParam("LOGISTIC", {32.0f, 14.0f, -166.0f}, 1), | ||
LinearRegressorParam("SOFTMAX", {32.0f, 14.0f, -166.0f}, 1), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LinearRegressorParam("SOFTMAX", {32.0f, 14.0f, -166.0f}, 1), [](start = 20, length = 60)
Is the the same with line 79? #Closed
LinearRegressorParam("NONE", {1.0f, 32.0f, 3.0f, 14.0f, 23.0f, -166.0f}, 2), | ||
LinearRegressorParam("SOFTMAX", {3.442477e-14f, 1.f, 1.670142e-05f, 1.f, 1.0f, 0.f}, 2), | ||
LinearRegressorParam("LOGISTIC", {0.731058f, 1.0f, 0.9525741f, 1.f, 1.0f, 0.f}, 2), | ||
LinearRegressorParam("SOFTMAX", {3.442477e-14f, 1.f, 1.670142e-05f, 1.f, 1.0f, 0.f}, 2) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks the same with line 83. Either remove the dups or comment why they are necessary. #Closed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Description:
Add a test case for linearregressor
Motivation and Context
The current implementation is weird. When number of scores equals to 1, it will ignore post_transform attribute. Should I keep this behavior or not?