Skip to content

[FIX] LinearProjection: Disable LDA for less than three classes#3615

Merged
janezd merged 1 commit into
biolab:masterfrom
VesnaT:fix_lin_proj
Feb 19, 2019
Merged

[FIX] LinearProjection: Disable LDA for less than three classes#3615
janezd merged 1 commit into
biolab:masterfrom
VesnaT:fix_lin_proj

Conversation

@VesnaT
Copy link
Copy Markdown
Contributor

@VesnaT VesnaT commented Feb 19, 2019

Issue

The widget crashed when feed a dataset with two classes.
To reproduce: File(heart_disease) -> LinearProjection(Select Linear Discriminant Analysis)

Description of changes

Disable Linear Discriminant Analysis when dataset has target with less than three classes.

Includes
  • Code changes
  • Tests
  • Documentation

@codecov
Copy link
Copy Markdown

codecov Bot commented Feb 19, 2019

Codecov Report

Merging #3615 into master will decrease coverage by <.01%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master    #3615      +/-   ##
==========================================
- Coverage   84.07%   84.07%   -0.01%     
==========================================
  Files         370      370              
  Lines       67252    67256       +4     
==========================================
+ Hits        56541    56544       +3     
- Misses      10711    10712       +1

@janezd janezd merged commit 64461f9 into biolab:master Feb 19, 2019
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.

2 participants