Changeset 9328:2a9991a20483 in orange


Ignore:
Timestamp:
12/09/11 15:29:37 (2 years ago)
Author:
miha <miha.stajdohar@…>
Branch:
default
Convert:
8ceecada3b8b8a481da24bf2588282578ed61417
Message:

Test crashed if there is nothing in res.classifiers.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orange/doc/modules/test.py

    r6538 r9328  
    3535print "\nproportionsTest + storing classifiers" 
    3636res = orngTest.proportionTest(learners, data, 0.7, 100, storeClassifiers = 1) 
    37 print "#iter %i, #classifiers %i" % (len(res.classifiers), len(res.classifiers[0])) 
     37print "#iter %i, #classifiers %i" % (len(res.classifiers), len(res.classifiers[0]) if len(res.classifiers) > 0 else -1) 
    3838print 
    3939 
Note: See TracChangeset for help on using the changeset viewer.