Ticket #398 (closed bug: invalid)

Opened 5 years ago

Last modified 3 years ago

test learners vrne math error

Reported by: gregor Owned by: blaz
Milestone: Future Component: canvas
Severity: major Keywords:
Cc: Blocking:
Blocked By:

Description

Test learners mi vrne exception:

Unhandled exception of type ValueError occured at 8:58:58: Traceback:

File: OWTestLearners.py, line 304 in score Code: scores = [eval("orngStat." + s.f) for s in self.stat]

File: orngStat.py, line 496 in IS Code: ISs[i][tex.iterationNumber] += IS_ex(tex.probabilities[i][cls], apriori[cls])

File: orngStat.py, line 462 in IS_ex Code: return -(-log2(1-P)+log2(1-Pc))

File: orngStat.py, line 9 in log2 Code: return math.log(x)/math.log(2)

ValueError: math domain error

Ocitno je treba dodati preverjanje da je x > 0

Change History

comment:1 Changed 3 years ago by blaz

  • Status changed from new to closed
  • Resolution set to invalid
Note: See TracTickets for help on using tickets.