#include <prediction.h>
Inheritance diagram for ZeroDeltaPrediction:
Public Methods | |
virtual void | train (const Matrix &traindata, int startmonth) |
virtual Ref< Matrix > | predict (const Matrix &testdata, int startmonth) const |
virtual int | inputMonths () const |
This prediction method doesn't really predict anything -- it always predicts the same value as in the previous month.
Any sensible method should do better than this.
Definition at line 267 of file prediction.h.
|
Tests the data and returns the monthly predictions in matrix. Must be implemented by prediction strategies.
Reimplemented from PredictionStrategy. Definition at line 323 of file prediction.cc. |
|
Trains the learning method with the given data. Must be implemented by prediction strategies.
Reimplemented from PredictionStrategy. Definition at line 320 of file prediction.cc. |