Ticket #176 (new bug)

Opened 7 years ago

Last modified 3 years ago

OWLiftCurve bug

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

Description

liftcurve vrze ta exception:

File: OWLiftCurve.py in line  345
      Function name: results
      Code: self.calcAllClassGraphs()
         File: OWLiftCurve.py in line  284
         Function name: calcAllClassGraphs
         Code: g.setTestSetData(self.dresSplitByIterations, cl)
            File: OWLiftCurve.py in line   50
            Function name: setTestSetData
            Code: P, N, curves = self.computeCurve(isplit, self.targetClass)
               File: OWLiftCurve.py in line   35
               Function name: computeCurve
               Code: return orngStat.computeLiftCurve(res, classIndex)
                  File: orngStat.py in line 1106
                  Function name: computeLiftCurve
                  Code: curve.append( ((TP+FP)/(P + N), TP, (f, FP/N)) )
                  Exception type: <type 'exceptions.ZeroDivisionError'>
                  Exception value: float division

za repliciranje buga lahko uproabis widgetDebugging
commandline ukaz: "debugWidgets.py classify4.py"

Change History

comment:1 Changed 3 years ago by ales

  • Cc ales added
  • 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.

Note: See TracTickets for help on using tickets.