- Bug: TWFTS and WFTS models are getting the same shortname

This commit is contained in:
Petrônio Cândido de Lima e Silva 2017-05-09 11:08:39 -03:00
parent 537e7dcfe3
commit 18b69fa71f
2 changed files with 5 additions and 3 deletions

View File

@ -38,8 +38,8 @@ def run_point(mfts, partitioner, train_data, test_data, window_key=None, transfo
from pyFTS.common import Transformations
tmp = [song.ConventionalFTS, chen.ConventionalFTS, yu.WeightedFTS, ismailefendi.ImprovedWeightedFTS,
cheng.TrendWeightedFTS, sadaei.ExponentialyWeightedFTS, hofts.HighOrderFTS, hwang.HighOrderFTS,
pwfts.ProbabilisticWeightedFTS]
cheng.TrendWeightedFTS, sadaei.ExponentialyWeightedFTS, hofts.HighOrderFTS, hwang.HighOrderFTS,
pwfts.ProbabilisticWeightedFTS]
tmp2 = [Grid.GridPartitioner, Entropy.EntropyPartitioner, FCM.FCMPartitioner]

View File

@ -43,9 +43,11 @@ class TrendWeightedFLRG(yu.WeightedFLRG):
class TrendWeightedFTS(yu.WeightedFTS):
"""First Order Trend Weighted Fuzzy Time Series"""
def __init__(self, name, **kwargs):
super(TrendWeightedFTS, self).__init__("TWFTS " + name)
super(TrendWeightedFTS, self).__init__("")
self.shortname = "TWFTS " + name
self.name = "Trend Weighted FTS"
self.detail = "Cheng"
self.is_high_order = False
def generateFLRG(self, flrs):
flrgs = {}