2017-01-23 00:41:42 +04:00
|
|
|
#!/usr/bin/python
|
|
|
|
# -*- coding: utf8 -*-
|
|
|
|
|
|
|
|
from pyFTS import fts
|
|
|
|
|
|
|
|
|
|
|
|
class Naive(fts.FTS):
|
2017-04-15 02:57:39 +04:00
|
|
|
def __init__(self, order, name, **kwargs):
|
2017-03-03 15:53:55 +04:00
|
|
|
super(Naive, self).__init__(1, "Naive " + name)
|
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
|
|
|
|
self.isHighOrder = False
|
2017-01-23 00:41:42 +04:00
|
|
|
|
2017-04-15 02:57:39 +04:00
|
|
|
def forecast(self, data, **kwargs):
|
2017-01-25 18:17:07 +04:00
|
|
|
return [k for k in data]
|
2017-01-26 16:19:34 +04:00
|
|
|
|