Acréscimo de informações aos modelos
This commit is contained in:
parent
ce5c267505
commit
b613c6db8a
4
chen.py
4
chen.py
@ -21,7 +21,9 @@ class ConventionalFLRG:
|
||||
|
||||
class ConventionalFTS(fts.FTS):
|
||||
def __init__(self,name):
|
||||
super(ConventionalFTS, self).__init__(1,name)
|
||||
super(ConventionalFTS, self).__init__(1,"CFTS")
|
||||
self.name = "Conventional FTS"
|
||||
self.detail = "Chen"
|
||||
self.flrgs = {}
|
||||
|
||||
def generateFLRG(self, flrs):
|
||||
|
4
fts.py
4
fts.py
@ -6,7 +6,11 @@ class FTS:
|
||||
self.sets = {}
|
||||
self.flrgs = {}
|
||||
self.order = order
|
||||
self.shortname = name
|
||||
self.name = name
|
||||
self.detail = name
|
||||
self.isSeasonal = False
|
||||
self.isInterval = False
|
||||
|
||||
def fuzzy(self,data):
|
||||
best = {"fuzzyset":"", "membership":0.0}
|
||||
|
4
hofts.py
4
hofts.py
@ -33,7 +33,9 @@ class HighOrderFLRG:
|
||||
|
||||
class HighOrderFTS(fts.FTS):
|
||||
def __init__(self,name):
|
||||
super(HighOrderFTS, self).__init__(1,name)
|
||||
super(HighOrderFTS, self).__init__(1,"HOFTS")
|
||||
self.name = "High Order FTS"
|
||||
self.detail = "Chen"
|
||||
self.order = 1
|
||||
self.setsDict = {}
|
||||
|
||||
|
5
ifts.py
5
ifts.py
@ -3,8 +3,11 @@ from pyFTS import *
|
||||
|
||||
class IntervalFTS(hofts.HighOrderFTS):
|
||||
def __init__(self,name):
|
||||
super(IntervalFTS, self).__init__(name)
|
||||
super(IntervalFTS, self).__init__("IFTS")
|
||||
self.name = "Interval FTS"
|
||||
self.detail = "Silva, P.; Guimarães, F.; Sadaei, H."
|
||||
self.flrgs = {}
|
||||
self.isInterval = True
|
||||
|
||||
def getUpper(self,flrg):
|
||||
if flrg.strLHS() in self.flrgs:
|
||||
|
@ -29,7 +29,9 @@ class ImprovedWeightedFLRG:
|
||||
|
||||
class ImprovedWeightedFTS(fts.FTS):
|
||||
def __init__(self,name):
|
||||
super(ImprovedWeightedFTS, self).__init__(1,name)
|
||||
super(ImprovedWeightedFTS, self).__init__(1,"IWFTS")
|
||||
self.name = "Improved Weighted FTS"
|
||||
self.detail = "Ismail & Efendi"
|
||||
self.setsDict = {}
|
||||
|
||||
def generateFLRG(self, flrs):
|
||||
|
5
pifts.py
5
pifts.py
@ -27,9 +27,12 @@ class ProbabilisticIntervalFLRG(hofts.HighOrderFLRG):
|
||||
|
||||
class ProbabilisticIntervalFTS(ifts.IntervalFTS):
|
||||
def __init__(self,name):
|
||||
super(ProbabilisticIntervalFTS, self).__init__(name)
|
||||
super(ProbabilisticIntervalFTS, self).__init__("PIFTS")
|
||||
self.name = "Probabilistic Interval FTS"
|
||||
self.detail = "Silva, P.; Guimarães, F.; Sadaei, H."
|
||||
self.flrgs = {}
|
||||
self.globalFrequency = 0
|
||||
self.isInterval = True
|
||||
|
||||
def generateFLRG(self, flrs):
|
||||
flrgs = {}
|
||||
|
@ -32,7 +32,9 @@ class ExponentialyWeightedFLRG:
|
||||
|
||||
class ExponentialyWeightedFTS(fts.FTS):
|
||||
def __init__(self,name):
|
||||
super(ExponentialyWeightedFTS, self).__init__(1,name)
|
||||
super(ExponentialyWeightedFTS, self).__init__(1,"EWFTS")
|
||||
self.name = "Exponentialy Weighted FTS"
|
||||
self.detail = "Sadaei"
|
||||
self.c = 1
|
||||
|
||||
def generateFLRG(self, flrs, c):
|
||||
|
5
sfts.py
5
sfts.py
@ -21,8 +21,11 @@ class SeasonalFLRG(fts.FTS):
|
||||
|
||||
class SeasonalFTS(fts.FTS):
|
||||
def __init__(self,name):
|
||||
super(SeasonalFTS, self).__init__(1,name)
|
||||
super(SeasonalFTS, self).__init__(1,"SFTS")
|
||||
self.name = "Seasonal FTS"
|
||||
self.detail = "Chen"
|
||||
self.seasonality = 1
|
||||
self.isSeasonal = True
|
||||
|
||||
|
||||
def generateFLRG(self, flrs):
|
||||
|
Loading…
Reference in New Issue
Block a user