pyFTS/benchmarks/naive.py
Petrônio Cândido de Lima e Silva 15b4aa1137 - Several bugfixes;
-  class Transformation
- Inclusion of cascaded transformations in FTS
2017-01-26 10:19:34 -02:00

16 lines
311 B
Python

#!/usr/bin/python
# -*- coding: utf8 -*-
from pyFTS import fts
class Naive(fts.FTS):
def __init__(self, name):
super(Naive, self).__init__(1, "Naïve" + name)
self.name = "Naïve Model"
self.detail = "Naïve Model"
def forecast(self, data):
return [k for k in data]