Changeset 10985:097ecb9aa080 in orange


Ignore:
Timestamp:
09/11/12 14:07:12 (19 months ago)
Author:
Miran Levar <mlevar@…>
Branch:
default
Message:

Fix to multitarget lambda function for missing values.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Orange/evaluation/testing.py

    r10967 r10985  
    8989    Substitution for the unpicklable lambda function for multi-target classifiers. 
    9090    """ 
    91     return [int(val) if val.variable.var_type == Orange.feature.Type.Discrete 
     91    return [val if val.is_DK() else int(val) if val.variable.var_type == Orange.feature.Type.Discrete 
    9292                                            else float(val) for val in vals] 
    9393 
Note: See TracChangeset for help on using the changeset viewer.