pyFTS/benchmarks/naive.py
Petrônio Cândido de Lima e Silva 5c8c80cd8d - new sliding window benchmarks
- statsmodels ARIMA wrapper for benchmarks
 - method refactoring at PWFTS
 - auto_update at PWFTS
 - method refactoring at ResidualAnalysis
2017-03-03 08:53:55 -03:00

18 lines
379 B
Python

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