-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Fix regression algorithms to give correct output dimensions #1335
Merged
eddiebergman
merged 7 commits into
development
from
fix_regression_algorithms_y_dimensions
Dec 12, 2021
Merged
Fix regression algorithms to give correct output dimensions #1335
eddiebergman
merged 7 commits into
development
from
fix_regression_algorithms_y_dimensions
Dec 12, 2021
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Codecov Report
@@ Coverage Diff @@
## development #1335 +/- ##
===============================================
+ Coverage 87.90% 87.97% +0.07%
===============================================
Files 140 140
Lines 10938 10977 +39
===============================================
+ Hits 9615 9657 +42
+ Misses 1323 1320 -3
Continue to review full report at Codecov.
|
Merged
mfeurer
reviewed
Dec 8, 2021
mfeurer
approved these changes
Dec 10, 2021
Merged
eddiebergman
added a commit
that referenced
this pull request
Jan 25, 2022
* Added ignored_warnings file * Use ignored_warnings file * Test regressors with 1d, 1d as 2d and 2d targets * Flake'd * Fix broken relative imports to ignore_warnings * Removed print and updated parameter type for tests * Type import fix
Merged
eddiebergman
added a commit
that referenced
this pull request
Aug 18, 2022
* Added ignored_warnings file * Use ignored_warnings file * Test regressors with 1d, 1d as 2d and 2d targets * Flake'd * Fix broken relative imports to ignore_warnings * Removed print and updated parameter type for tests * Type import fix
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR addresses issue #1297 in which some regressors gave the wrong output dimensions. This was due to the use of
StandardScaler
on the target column(s)y
. The main source of the issue was due to the regressors not being updated one multi-output regression was considered.Issues
[0,0,0] -> [[0], [0], [0]]
[[1,1], [1,1]] -> [[1], [1], [1], [1]]
scaler.inverse_transform([1,1,1]) -> [[1], [1], [1]]
.Created tests for all regression algorithms (classifiers do not use standard scalers). These test the algorithms with 3 different kinds of target shapes. These tests also check that the output shape is correct, where
(n,1)
is flattened back out to(n,)
.(n,) -> (n,)
(n,1) -> (n,)
(n,m) -> (n,m)
This PR also consolidates all the ignored warnings into one file and provides a context manager to be used in tests if we want to ignore warnings.