Ignore:
Timestamp:
06/14/12 15:58:09 (23 months ago)
Author:
Lan Zagar <lan.zagar@…>
Branch:
default
rebase_source:
a7708c00b5ae0ffcc0aaea9d15664143c1ae2d43
Message:

Fixes #1198.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Orange/evaluation/scoring.py

    r10902 r10914  
    22import functools 
    33from operator import add 
     4from collections import Iterable 
    45 
    56import numpy 
     
    26712672    if weights is None: 
    26722673        weights = [1.] * n_classes 
    2673     if not hasattr(score, '__len__'): 
     2674    if not isinstance(score, Iterable): 
    26742675        score = [score] * n_classes 
    26752676    elif len(score) != n_classes: 
Note: See TracChangeset for help on using the changeset viewer.