2017-01-23 00:41:42 +04:00
|
|
|
#!/usr/bin/python
|
|
|
|
# -*- coding: utf8 -*-
|
|
|
|
|
|
|
|
from pyFTS import fts
|
|
|
|
|
|
|
|
|
|
|
|
class Naive(fts.FTS):
|
2017-05-02 18:32:03 +04:00
|
|
|
"""Naïve Forecasting method"""
|
2017-05-08 21:49:45 +04:00
|
|
|
def __init__(self, name, **kwargs):
|
2017-05-08 22:20:16 +04:00
|
|
|
super(Naive, self).__init__(1, "Naive")
|
2017-01-23 00:41:42 +04:00
|
|
|
self.name = "Naïve Model"
|
|
|
|
self.detail = "Naïve Model"
|
2017-03-03 15:53:55 +04:00
|
|
|
self.benchmark_only = True
|
2017-05-02 18:32:03 +04:00
|
|
|
self.is_high_order = False
|
2017-01-23 00:41:42 +04:00
|
|
|
|
2017-04-15 02:57:39 +04:00
|
|
|
def forecast(self, data, **kwargs):
|
2017-05-10 02:04:51 +04:00
|
|
|
return data
|
2017-01-26 16:19:34 +04:00
|
|
|
|