1. biolab
  2. Untitled project
  3. orange

Commits

Aleš Erjavec  committed 6d79289

Fixed parameter name.

  • Participants
  • Parent commits c048f85
  • Branches default

Comments (0)

Files changed (1)

File Orange/data/preprocess/scaling.py

View file
     equiN if we don't have a class or class is continuous).
     """
     entro_disc = preprocess.EntropyDiscretization()
-    equi_disc  = preprocess.EquiNDiscretization(number_of_intervals=number_of_intervals)
+    equi_disc = preprocess.EquiNDiscretization(n=number_of_intervals)
     disc_attrs = []
 
     classname = (data and len(data) > 0 and data.domain.class_var and
             warnings.warn("Could not discretize %s attribute. %s" %
                           (attr.name, ex.message))
 
-    if classname: disc_attrs.append(data.domain.class_var)
+    if classname:
+        disc_attrs.append(data.domain.class_var)
     d2 = data.translate(disc_attrs, True)
     return d2