Ignore:
Timestamp:
02/06/12 09:42:50 (2 years ago)
Author:
markotoplak
Branch:
default
Children:
9664:6638cc93015a, 9719:782cfec5fe88
rebase_source:
a78d1d75a2cac951721701298920fd6faa82902a
Message:

Orange.distance.instances -> Orange.distance

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orange/Orange/evaluation/reliability.py

    r9525 r9663  
    529529    def __call__(self, examples, learner): 
    530530        nearest_neighbours_constructor = Orange.classification.knn.FindNearestConstructor() 
    531         nearest_neighbours_constructor.distanceConstructor = Orange.distance.instances.EuclideanConstructor() 
     531        nearest_neighbours_constructor.distanceConstructor = Orange.distance.EuclideanConstructor() 
    532532         
    533533        distance_id = Orange.data.new_meta_id() 
     
    596596    def __call__(self, examples, learner): 
    597597        nearest_neighbours_constructor = Orange.classification.knn.FindNearestConstructor() 
    598         nearest_neighbours_constructor.distanceConstructor = Orange.distance.instances.EuclideanConstructor() 
     598        nearest_neighbours_constructor.distanceConstructor = Orange.distance.EuclideanConstructor() 
    599599         
    600600        distance_id = Orange.data.new_meta_id() 
     
    642642    def __call__(self, examples, *args): 
    643643        nnm = Orange.classification.knn.FindNearestConstructor() 
    644         nnm.distanceConstructor = Orange.distance.instances.MahalanobisConstructor() 
     644        nnm.distanceConstructor = Orange.distance.MahalanobisConstructor() 
    645645         
    646646        mid = Orange.data.new_meta_id() 
     
    685685        example_avg = numpy.average(X, 0) 
    686686         
    687         distance_constructor = Orange.distance.instances.MahalanobisConstructor() 
     687        distance_constructor = Orange.distance.MahalanobisConstructor() 
    688688        distance = distance_constructor(new_examples) 
    689689         
Note: See TracChangeset for help on using the changeset viewer.