Ignore:
Timestamp:
03/20/12 08:18:01 (2 years ago)
Author:
markotoplak
Branch:
default
rebase_source:
5f093927cfe99adbb8b562a712db8e15d1b77c82
Message:

Moved some other scripts from misc to utils and Orange imports and canvas not works, although not systematically tested.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Orange/classification/lookup.py

    r10580 r10581  
    3030    lookup = lookup_from_bound(class_var, bound) 
    3131    if lookup: 
    32         for i, attrs in enumerate(Orange.misc.counters.LimitedCounter( 
     32        for i, attrs in enumerate(Orange.utils.counters.LimitedCounter( 
    3333                    [len(var.values) for var in bound])): 
    3434            lookup.lookup_table[i] = Orange.data.Value(class_var, function(attrs)) 
     
    3737        dom = Orange.data.Domain(bound, class_var) 
    3838        data = Orange.data.Table(dom) 
    39         for attrs in Orange.misc.counters.LimitedCounter( 
     39        for attrs in Orange.utils.counters.LimitedCounter( 
    4040                    [len(var.values) for var in dom.features]): 
    4141            data.append(Orange.data.Example(dom, attrs + [function(attrs)])) 
     
    8989        lc = 0 
    9090        if len(boundset)==1: 
    91             cnt = Orange.misc.counters.LimitedCounter([len(x.values)+1 for x in boundset]) 
     91            cnt = Orange.utils.counters.LimitedCounter([len(x.values)+1 for x in boundset]) 
    9292        else: 
    93             cnt = Orange.misc.counters.LimitedCounter([len(x.values) for x in boundset]) 
     93            cnt = Orange.utils.counters.LimitedCounter([len(x.values) for x in boundset]) 
    9494        for ex in cnt: 
    9595            for i in range(len(ex)): 
Note: See TracChangeset for help on using the changeset viewer.