Ignore:
Timestamp:
01/09/12 20:56:36 (2 years ago)
Author:
markotoplak
Branch:
default
Convert:
738752a0c7d4b09064ca82da7eb74891fde3fa34
Message:

Used the same get_meta_id everywhere.

File:
1 edited

Legend:

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

    r9349 r9525  
    531531        nearest_neighbours_constructor.distanceConstructor = Orange.distance.instances.EuclideanConstructor() 
    532532         
    533         distance_id = Orange.core.newmetaid() 
     533        distance_id = Orange.data.new_meta_id() 
    534534        nearest_neighbours = nearest_neighbours_constructor(examples, 0, distance_id) 
    535535         
     
    598598        nearest_neighbours_constructor.distanceConstructor = Orange.distance.instances.EuclideanConstructor() 
    599599         
    600         distance_id = Orange.core.newmetaid() 
     600        distance_id = Orange.data.new_meta_id() 
    601601        nearest_neighbours = nearest_neighbours_constructor(examples, 0, distance_id) 
    602602        return CNeighboursClassifier(nearest_neighbours, self.k) 
     
    644644        nnm.distanceConstructor = Orange.distance.instances.MahalanobisConstructor() 
    645645         
    646         mid = Orange.core.newmetaid() 
     646        mid = Orange.data.new_meta_id() 
    647647        nnm = nnm(examples, 0, mid) 
    648648        return MahalanobisClassifier(self.k, nnm, mid) 
Note: See TracChangeset for help on using the changeset viewer.