Ticket #1158 (closed bug: fixed)

Opened 2 years ago

Last modified 2 years ago

Fix AttributeWarning in svm_easy.

Reported by: miha Owned by: ales
Milestone: 2.5 Component: library
Severity: minor Keywords:
Cc: Blocking:
Blocked By:


/home/miha/work/orange/Orange/classification/svm/init__.py:122: AttributeWarning: 'folds' is not a builtin attribute of 'Orange.classification.svm._SVMLearner'

self.learner = Orange.core.SVMLearner(kwargs)

Either add folds variable to the C++ SVMLearner class or use self.setattr("folds", folds) in the python SVMLearnerEasy class.

The following test fails:


Change History

comment:1 Changed 2 years ago by Ales Erjavec <ales.erjavec@…>

  • Status changed from new to closed
  • Resolution set to fixed

In [02b530c1457b353b917c9f4464cd94e8e2dd167e/orange]:

Fixed parameter passing in SVMLearnerEasy, fixes #1158.

Note: See TracTickets for help on using tickets.