Bugfix in hofts

This commit is contained in:
Petrônio Cândido de Lima e Silva 2018-11-13 00:14:35 -02:00 committed by GitHub
parent ef71a86a7f
commit 288ecfbacf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -146,14 +146,12 @@ class HighOrderFTS(fts.FTS):
if self.dump: print("FLR: " + str(k)) if self.dump: print("FLR: " + str(k))
sample = data[k - self.max_lag: k] sample = data[k - self.max_lag: k]
print(sample)
rhs = FuzzySet.fuzzyfy(data[k], partitioner=self.partitioner, mode="sets", alpha_cut=self.alpha_cut) rhs = FuzzySet.fuzzyfy(data[k], partitioner=self.partitioner, mode="sets", alpha_cut=self.alpha_cut)
flrgs = self.generate_lhs_flrg(sample) flrgs = self.generate_lhs_flrg(sample)
for flrg in flrgs: for flrg in flrgs:
print('key', flrg.get_key())
if flrg.get_key() not in self.flrgs: if flrg.get_key() not in self.flrgs:
self.flrgs[flrg.get_key()] = flrg; self.flrgs[flrg.get_key()] = flrg;