Bugfix in partitioners.Entropy, not catching fuzzy set names correctly

This commit is contained in:
Petrônio Cândido 2019-01-28 11:48:31 -02:00
parent 6f4bf247f8
commit b504c8a83c

View File

@ -65,7 +65,7 @@ class Partitioner(object):
self.sets = self.build(ndata) self.sets = self.build(ndata)
if self.ordered_sets is None and self.setnames is not None: if self.ordered_sets is None and self.setnames is not None:
self.ordered_sets = self.setnames self.ordered_sets = self.setnames[:len(self.sets)-1]
else: else:
self.ordered_sets = FuzzySet.set_ordered(self.sets) self.ordered_sets = FuzzySet.set_ordered(self.sets)