pyFTS/benchmarks/naive.py
Petrônio Cândido de Lima e Silva 84e6e1abbf - Sliding Window benchmark
- Refactoring of partitioners for OO design
2017-02-24 13:29:55 -03:00

16 lines
312 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]