Ticket #1126 (closed bug: fixed)

Opened 3 years ago

Last modified 3 years ago

SimpleTree fails to classify on classless domains

Reported by: blaz Owned by: jurezb
Milestone: 2.5 Component: library
Severity: immediate Keywords:
Cc: Blocking:
Blocked By:


SimpleTreeClassifier throws kernel exception on data that include only features but no class (other classifiers work fine). Following script demonstrates this odd behavior:

import Orange

data = Orange.data.Table("voting")

classless_domain = Orange.data.Domain(data.domain.features, False)
test = Orange.data.Table(classless_domain, data)

bay = Orange.classification.bayes.NaiveLearner(data)
print bay(test[0])

tree = Orange.classification.tree.SimpleTreeLearner(data)
print tree(test[0])

Change History

comment:1 Changed 3 years ago by Jure Zbontar <jure.zbontar@…>

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