Changeset 7773:110ea5af5209 in orange for orange/orngVizRank.py


Ignore:
Timestamp:
03/22/11 17:34:18 (3 years ago)
Author:
miha <miha.stajdohar@…>
Branch:
default
Convert:
6a995c6cf0f5f60ab7075f6194cde6f2ea214207
Message:

Changed back to old version.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orange/orngVizRank.py

    r7058 r7773  
    412412                results = apply(testingMethods[self.testingMethod], [[learner], testTable]) 
    413413 
     414            if self.saveEvaluationResults: 
     415                self.evaluationResults = results 
     416                #self.classifier =  
     417 
    414418            # compute classification success using selected measure 
    415419            if testTable.domain.classVar.varType == orange.VarTypes.Discrete: 
     
    501505 
    502506        prediction = [prediction[i] / float(max(1, currentClassDistribution[i])) for i in range(len(prediction))] # turn to probabilities 
    503          
    504         if self.saveEvaluationResults: 
    505             self.evaluationResults = results 
    506507         
    507508        return val/max(1, float(s)), (acc, prediction, list(currentClassDistribution)) 
Note: See TracChangeset for help on using the changeset viewer.