#include <prediction.h>
Inheritance diagram for CombinedPrediction:
Public Methods | |
virtual void | make (const StringMap ¶ms) |
virtual void | train (const Matrix &traindata, int startmonth) |
virtual Ref< Matrix > | predict (const Matrix &testdata, int startmonth) const |
A prediction method that combines the other trivial methods by first ranking their performance on each month in the training set, and then choosing the best ranking method to predict a particular month in a test set.
This has proven to be a rather good prediction method for many cases.
Definition at line 243 of file prediction.h.
|
Initialization.
Reimplemented from PredictionStrategy. Definition at line 346 of file prediction.cc. References PredictionStrategy::make(), and PredictionStrategy::mInputMonths. |
|
Tests the data and returns the monthly predictions in matrix. Must be implemented by prediction strategies.
Reimplemented from PredictionStrategy. Definition at line 442 of file prediction.cc. |
|
Trains the learning method with the given data. Must be implemented by prediction strategies.
Reimplemented from PredictionStrategy. Definition at line 370 of file prediction.cc. |