Last active
June 26, 2020 10:58
-
-
Save Knk00/793fb31e45dd3d6a16ccee1901e3ffa2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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