Changeset 9022:e604e019e635 in orange


Ignore:
Timestamp:
09/26/11 14:57:16 (3 years ago)
Author:
ales_erjavec <ales.erjavec@…>
Branch:
default
Convert:
fd9c9518284d6abb5bcfa7b7d0e5c5a39706a230
Message:

Added example domain conversion in 'TAssociationRule::applies' method to make unpickled non-sparse rules work.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • source/orange/assoc.cpp

    r7665 r9022  
    180180bool TAssociationRule::applies(const TExample &ex, const PExample &side) 
    181181{ 
    182   if (side->domain->variables->size()) 
    183     return side->compatible(ex); 
     182  if (side->domain->variables->size()){ 
     183    //For unpickled rules to work. 
     184    TExample converted_ex(side->domain, ex); 
     185    return side->compatible(converted_ex); 
     186  } 
    184187 
    185188  // all meta-attributes that appear in 'side' must also appear in 'ex' and be noSpecial 
Note: See TracChangeset for help on using the changeset viewer.