Skip to content

Fix: kernal pca config error with sparse data #1368

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

Merged
merged 2 commits into from
Jan 12, 2022

Conversation

eddiebergman
Copy link
Contributor

Seems kernel_pca emits the error:

  • "zero-size array to reduction operation maximum which has no identity"

This is gotten on the line max_eig = lambdas.max() which makes me
assume it emits a matrix with no real eigen values, not something we
can really control for.

Edit: Looking deeper, it would be good to know which solver is being used and if that would make a difference, it defaults to "auto"

Additionally, pytest seems to not be showing print statements which show the config which causes the issue, added the message to the error itself instead.

Seems kernel_pca emits the error:
* `"zero-size array to reduction operation maximum which has no identity"`

This is gotten on the line `max_eig = lambdas.max()` which makes me
assume it emits a matrix with no real eigen values, not something we
can really control for
@eddiebergman eddiebergman changed the base branch from master to development January 12, 2022 21:46
@codecov
Copy link

codecov bot commented Jan 12, 2022

Codecov Report

Merging #1368 (1dfe5bc) into development (f5964ca) will decrease coverage by 0.03%.
The diff coverage is n/a.

Impacted file tree graph

@@               Coverage Diff               @@
##           development    #1368      +/-   ##
===============================================
- Coverage        87.99%   87.95%   -0.04%     
===============================================
  Files              140      140              
  Lines            10993    10993              
===============================================
- Hits              9673     9669       -4     
- Misses            1320     1324       +4     
Impacted Files Coverage Δ
autosklearn/pipeline/components/regression/mlp.py 92.18% <0.00%> (-3.13%) ⬇️
...ipeline/components/regression/gradient_boosting.py 91.42% <0.00%> (-1.91%) ⬇️
autosklearn/evaluation/abstract_evaluator.py 92.27% <0.00%> (-0.78%) ⬇️
..._preprocessing/select_percentile_classification.py 91.52% <0.00%> (+1.69%) ⬆️
...osklearn/pipeline/components/classification/lda.py 94.44% <0.00%> (+5.55%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f5964ca...1dfe5bc. Read the comment docs.

@eddiebergman eddiebergman merged commit b0142bc into development Jan 12, 2022
@eddiebergman eddiebergman mentioned this pull request Jan 24, 2022
eddiebergman added a commit that referenced this pull request Jan 25, 2022
* Fix: Raises errors with the config

* Add: Skip error for kernal_pca

Seems kernel_pca emits the error:
* `"zero-size array to reduction operation maximum which has no identity"`

This is gotten on the line `max_eig = lambdas.max()` which makes me
assume it emits a matrix with no real eigen values, not something we
can really control for
@eddiebergman eddiebergman mentioned this pull request Jan 25, 2022
@eddiebergman eddiebergman deleted the improve_configurations_test_output branch February 9, 2022 14:27
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.

1 participant