Changeset 10999:d6c3b7928f64 in orange


Ignore:
Timestamp:
10/17/12 12:31:30 (18 months ago)
Author:
Ales Erjavec <ales.erjavec@…>
Branch:
default
Message:

Fixed selection indices for learner prechecking.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Orange/OrangeWidgets/Evaluate/OWTestLearners.py

    r10983 r10999  
    311311        n = len(self.data.domain.attributes)*2 
    312312        indices = orange.MakeRandomIndices2(p0=min(n, len(self.data)), stratified=orange.MakeRandomIndices2.StratifiedIfPossible) 
    313         new = self.data.selectref(indices(self.data)) 
    314          
     313        new = self.data.selectref(indices(self.data), 0) 
     314 
    315315        multilabel = self.ismultilabel() 
    316316         
Note: See TracChangeset for help on using the changeset viewer.