Ticket #1159 (closed bug: fixed)

Opened 2 years ago

Last modified 2 years ago

Fix AttributeWarning on n_intervals in EqualFreq.

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

Description

/home/miha/work/orange/docs/reference/rst/code/discretization-table.py:4: AttributeWarning: 'n_intervals' is not a builtin attribute of 'Orange.feature.discretization.EqualFreq'

method=Orange.feature.discretization.EqualFreq(n_intervals=3))

Either use numberOfIntervals (I know it's deprecated but it works) or change the code to support n_intervals.

The following test fails:

 http://ci.biolab.si/job/orange_test/280/testReport/unit.tests.test_regression/TestRegression/unit_tests_test_regression_TestRegression_test_regression_on_reference_discretization_table/

Change History

comment:1 Changed 2 years ago by miha

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