Changeset 9494:347c5eacc003 in orange


Ignore:
Timestamp:
08/29/11 02:08:30 (3 years ago)
Author:
wencanluo <wencanluo@…>
Branch:
default
Convert:
e244b700e07dc5d0afd358ca54c2bd0178cadfec
Message:

Add support for missing attributes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orange/Orange/multilabel/lp.py

    r9477 r9494  
    132132                prob.append(1.0) 
    133133            else: 
    134                 raise ValueError, "invalid label value: 'the label value in instances should be only 0 or 1' " 
     134                #raise ValueError, "invalid label value: 'the label value in instances should be only 0 or 1' " 
     135                labels.append(Orange.data.Value(domain[self.label_indices[i]],'?')) 
     136                prob.append(0.0) 
    135137         
    136138        disc = Orange.statistics.distribution.Discrete(prob) 
Note: See TracChangeset for help on using the changeset viewer.