Skip to content

Instantly share code, notes, and snippets.

@Knk00
Last active June 26, 2020 10:58
Show Gist options
  • Save Knk00/793fb31e45dd3d6a16ccee1901e3ffa2 to your computer and use it in GitHub Desktop.
Save Knk00/793fb31e45dd3d6a16ccee1901e3ffa2 to your computer and use it in GitHub Desktop.
class model:
'''Attributes of the class are the same as the ones the describe any time series : Trend, Seasonality; additionally
Root-Mean-Squared Error and Model type (additive/multiplicative) are also taken into consideration'''
def __init__(self, series, rmse = None, model = None):
if rmse == None:
self.rmse : float = float('inf')
else:
self.rmse = rmse
self.__model__ = model
self.__seasonal__ = None
self.__trend__ = None
self.__forecast__ = None
self.__model_type__ = None
self.__series__ = series
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment