Skip to content

Commit 0cba049

Browse files
authored
Merge pull request #2400 from ales-erjavec/fixes/preprocess-continuize-order
[FIX] owpreproces: Stable order of continuizers
2 parents 15c2586 + 9e587d6 commit 0cba049

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

Orange/widgets/data/owpreprocess.py

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -191,13 +191,14 @@ def __repr__(self):
191191
class ContinuizeEditor(BaseEditor):
192192
_Type = type(Continuize.FirstAsBase)
193193

194-
Continuizers = OrderedDict({
195-
Continuize.FrequentAsBase: "Most frequent is base",
196-
Continuize.Indicators: "One attribute per value",
197-
Continuize.RemoveMultinomial: "Remove multinomial attributes",
198-
Continuize.Remove: "Remove all discrete attributes",
199-
Continuize.AsOrdinal: "Treat as ordinal",
200-
Continuize.AsNormalizedOrdinal: "Divide by number of values"})
194+
Continuizers = OrderedDict([
195+
(Continuize.FrequentAsBase, "Most frequent is base"),
196+
(Continuize.Indicators, "One attribute per value"),
197+
(Continuize.RemoveMultinomial, "Remove multinomial attributes"),
198+
(Continuize.Remove, "Remove all discrete attributes"),
199+
(Continuize.AsOrdinal, "Treat as ordinal"),
200+
(Continuize.AsNormalizedOrdinal, "Divide by number of values")
201+
])
201202

202203
def __init__(self, parent=None, **kwargs):
203204
super().__init__(parent, **kwargs)

0 commit comments

Comments
 (0)