Replacing references to FuzzySet.fuzzyfy to Partitioner.fuzzyfy

This commit is contained in:
Petrônio Cândido 2019-04-09 16:24:04 -03:00
parent 0e67b7bc61
commit 59f68801a3
7 changed files with 6 additions and 6 deletions

Binary file not shown.

View File

@ -50,7 +50,7 @@ class ConventionalFTS(fts.FTS):
def train(self, data, **kwargs):
tmpdata = FuzzySet.fuzzyfy(data, partitioner=self.partitioner, method='maximum', mode='sets')
tmpdata = self.partitioner.fuzzyfy(data, method='maximum', mode='sets')
flrs = FLR.generate_non_recurrent_flrs(tmpdata)
self.generate_flrg(flrs)

View File

@ -63,7 +63,7 @@ class ImprovedWeightedFTS(fts.FTS):
def train(self, ndata, **kwargs):
tmpdata = FuzzySet.fuzzyfy(ndata, partitioner=self.partitioner, method='maximum', mode='sets')
tmpdata = self.partitioner.fuzzyfy(ndata, method='maximum', mode='sets')
flrs = FLR.generate_recurrent_flrs(tmpdata)
self.generate_flrg(flrs)

View File

@ -67,7 +67,7 @@ class ExponentialyWeightedFTS(fts.FTS):
self.flrgs[flr.LHS].append_rhs(flr.RHS)
def train(self, data, **kwargs):
tmpdata = FuzzySet.fuzzyfy(data, partitioner=self.partitioner, method='maximum', mode='sets')
tmpdata = self.partitioner.fuzzyfy(data, method='maximum', mode='sets')
flrs = FLR.generate_recurrent_flrs(tmpdata)
self.generate_flrg(flrs, self.c)

View File

@ -50,7 +50,7 @@ class ConventionalFTS(fts.FTS):
def train(self, data, **kwargs):
tmpdata = FuzzySet.fuzzyfy(data, partitioner=self.partitioner, method='maximum', mode='sets')
tmpdata = self.partitioner.fuzzyfy(data, method='maximum', mode='sets')
flrs = FLR.generate_non_recurrent_flrs(tmpdata)
self.operation_matrix(flrs)

View File

@ -68,7 +68,7 @@ class MarkovWeightedFTS(fts.FTS):
self.flrgs[flr.LHS].append_rhs(flr.RHS)
def train(self, data, **kwargs):
tmpdata = FuzzySet.fuzzyfy(data, partitioner=self.partitioner, method='maximum', mode='sets')
tmpdata = self.partitioner.fuzzyfy(data, method='maximum', mode='sets')
flrs = FLR.generate_recurrent_flrs(tmpdata)
self.generate_flrg(flrs)

View File

@ -59,7 +59,7 @@ class WeightedFTS(fts.FTS):
self.flrgs[flr.LHS].append_rhs(flr.RHS)
def train(self, ndata, **kwargs):
tmpdata = FuzzySet.fuzzyfy(ndata, partitioner=self.partitioner, method='maximum', mode='sets')
tmpdata = self.partitioner.fuzzyfy(ndata, method='maximum', mode='sets')
flrs = FLR.generate_recurrent_flrs(tmpdata)
self.generate_FLRG(flrs)