source: orange/orange/orngEval.py @ 1:58e9b1033604

Revision 1:58e9b1033604, 924 bytes checked in by tomazc <tomazc@…>, 11 years ago (diff)

prvi uvoz

Line 
1from orngTest import *
2from orngStat import *
3
4#### Compatibility stuff
5LeaveOneOut = leaveOneOut
6CrossValidation = crossValidation
7PercentTest = proportionTest
8LearningCurveCrossValidation = learningCurveN
9LearningCurve = learningCurve
10LearningCurveWithTestData = learningCurveWithTestData
11TestWithIndices = testWithIndices
12TestWithTestData = testOnData
13LearnAndTestWithTestData = learnAndTestOnTestData
14
15
16CA_dev = CA_se
17CA2 = CA
18computeAROC = AROC
19aROC = AROCFromCDT
20
21def TFPosNeg(res, cutoff=0.5, classIndex=1):
22    return computeConfusionMatrices(res, classIndex, cutoff=0.5)
23
24def print_aROC(res):
25    print "Concordant  = %5.1f       Somers' D = %1.3f" % (res[0], res[4])
26    print "Discordant  = %5.1f       Gamma     = %1.3f" % (res[1], res[5]>0 and res[5] or "N/A")
27    print "Tied        = %5.1f       Tau-a     = %1.3f" % (res[2], res[6])
28    print " %6d pairs             c         = %1.3f"    % (res[3], res[7])
Note: See TracBrowser for help on using the repository browser.