Changeset 7986:f39817a373db in orange


Ignore:
Timestamp:
06/06/11 14:37:05 (3 years ago)
Author:
ales_erjavec <ales.erjavec@…>
Branch:
default
Convert:
365ab9cf6bb110da5278864d92edbdb79652cea9
Message:

Initialize matchLeft and matchBoth for final rules when constructing rules from 'basket' dataset.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • source/orange/assoc_sparse.cpp

    r6952 r7986  
    501501                  //add rules 
    502502                  rule = mlnew TAssociationRule(mlnew TExample(exLeft), mlnew TExample(exRight), nAppliesLeft, nAppliesRight, nAppliesBoth, nOfExamples, currDepth, iLength-currDepth); 
     503 
     504                  if (storeExamples) { 
     505                    rule->matchLeft = new TIntList(currNode->exampleIds); 
     506                    rule->matchBoth = new TIntList(bothNode->exampleIds); 
     507                  } 
     508 
    503509                  rules->push_back(rule); 
     510 
    504511                  count ++; 
    505512 
Note: See TracChangeset for help on using the changeset viewer.