Ignore:
Timestamp:
04/20/12 13:28:02 (2 years ago)
Author:
Ales Erjavec <ales.erjavec@…>
Branch:
default
Message:

Fix the value of 'max_components' when the new dataset has less features.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Orange/OrangeWidgets/Prototypes/OWPCA.py

    r10832 r10833  
    291291 
    292292        self.max_components_spin.setRange(0, len(self.variances)) 
     293        self.max_components = min(self.max_components, 
     294                                  len(self.variances) - 1) 
    293295        self.update_scree_plot() 
    294296        self.update_cutoff_curve() 
Note: See TracChangeset for help on using the changeset viewer.