Changeset 3650:2ba2d0c71047 in orange


Ignore:
Timestamp:
05/12/07 15:16:46 (7 years ago)
Author:
janezd <janez.demsar@…>
Branch:
default
Convert:
f79e960bddc29c49fa94627bb0bd0036d234833c
Message:
  • fixed problems with 'errors'
File:
1 edited

Legend:

Unmodified
Added
Removed
  • orange/orngPade.py

    r3525 r3650  
    1616 
    1717def clearCache(cache): 
    18     cache.points = cache.tri = cache.stars = cache.dts = cache.deltas = cache.errors = cache.findNearest = cache.attrStat = None 
     18    cache.points = cache.tri = cache.stars = cache.dts = cache.deltas = cache.findNearest = cache.attrStat = None 
     19    if hasattr(cache, "errors"): 
     20        delattr(cache, "errors") 
    1921 
    2022 
     
    732734    cache = makeBasicCache(data) 
    733735    cache.deltas = [[None] * len(cache.contAttributes) for x in xrange(len(data))] 
     736    if method == tubedRegression: 
     737        cache.errors = [[None] * len(cache.contAttributes) for x in xrange(len(data))] 
     738 
    734739    cache.nNeighbours = 30 
    735740 
Note: See TracChangeset for help on using the changeset viewer.