2017-01-23 00:41:42 +04:00
|
|
|
#!/usr/bin/python
|
|
|
|
# -*- coding: utf8 -*-
|
|
|
|
|
|
|
|
from pyFTS import fts
|
|
|
|
|
|
|
|
|
|
|
|
class Naive(fts.FTS):
|
|
|
|
def __init__(self, name):
|
2017-02-24 20:29:55 +04:00
|
|
|
super(Naive, self).__init__(1, "Naïve " + name)
|
2017-01-23 00:41:42 +04:00
|
|
|
self.name = "Naïve Model"
|
|
|
|
self.detail = "Naïve Model"
|
|
|
|
|
|
|
|
def forecast(self, data):
|
2017-01-25 18:17:07 +04:00
|
|
|
return [k for k in data]
|
2017-01-26 16:19:34 +04:00
|
|
|
|