diff --git a/benchmarks/distributed_benchmarks.py b/benchmarks/distributed_benchmarks.py index d358405..8e05036 100644 --- a/benchmarks/distributed_benchmarks.py +++ b/benchmarks/distributed_benchmarks.py @@ -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] diff --git a/cheng.py b/cheng.py index f2ee57f..1697413 100644 --- a/cheng.py +++ b/cheng.py @@ -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 = {}