Ticket #175 (new bug)

Opened 6 years ago

Last modified 3 years ago


Reported by: gregor Owned by: tomaz
Milestone: 2.6 Component: orng_modules
Severity: minor Keywords:
Cc: ales Blocking:
Blocked By:


OWROC crkne v orngStat:

File: OWROC.py in line  857
      Function name: testSetsSelectionChange
      Code: g.setShowIterations(list)
         File: OWROC.py in line  324
         Function name: setShowIterations
         Code: self.calcAverageCurves()
            File: OWROC.py in line  420
            Function name: calcAverageCurves
            Code: (averageCurves, verticalErrorBarValues) = orngStat.TCverticalAverageROC(ROCS, self.VTAsamples)
               File: orngStat.py in line  939
               Function name: TCverticalAverageROC
               Code: TPsum.append( TP_FOR_FP(FPsample, ROCS[i], npts[i]) ) ##TPsum = TPsum + TP_FOR_FP(FPsample, ROCS[i], npts[i])
                  File: orngStat.py in line  922
                  Function name: TP_FOR_FP
                  Code: return INTERPOLATE(ROC[i], ROC[i+1], FPsample)
                  Exception type: <type 'exceptions.IndexError'>
                  Exception value: list index out of range

primer vrednosti, kjer crkne:
ROC=[(0.0, 0.0, 1.0000000000000001e+301), (0.0, 1.0, 0.80089092254638672)]

ne vem kaj bi moral v tem primeru funkcija vrniti

za repliciranje buga lahko uproabis widgetDebugging

commandline ukaz: "debugWidgets.py classify4.py"

Change History

comment:1 Changed 3 years ago by ales

  • version changed from 1.0 to 2.0
  • Milestone changed from 1.0 to current

I think I fixed this in revision 8815 of orngStat.py. Tomaz can you check if the fix is correct and if so close this ticket.

comment:2 Changed 3 years ago by ales

  • Cc ales added

A much better fix would be to simply change the

while i < npts - 1:

condition to

while i < npts - 2:
Note: See TracTickets for help on using tickets.