pyFTS/benchmarks/naive.py
Petrônio Cândido de Lima e Silva a4903fd932 - Several bugfixes
- Issue #2 - PEP 8 compliance
  - Issue #3 - Code documentation with PEP 257 compliance
2017-05-02 11:32:03 -03:00

19 lines
444 B
Python

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