#include <prediction.h>
Inheritance diagram for AbsoluteNeuralPrediction:
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 |
Protected Methods | |
PatternSet * | makeSet (const Matrix &data, int startmonth) const |
Protected Attributes | |
ANNetwork * | mpNetwork |
bool | mUseAllOutputs |
bool | mUseAllInputs |
int | mVariable |
bool | mGlobalEqualization |
String | mHiddenTopology |
StringMap | mParams |
TrainingObserver * | rpObserver |
Easily customizable by the undocumented parameters for the make() method.
Definition at line 292 of file prediction.h.
|
Initialization.
Reimplemented from PredictionStrategy. Definition at line 564 of file prediction.cc. References PredictionStrategy::make(), mGlobalEqualization, mHiddenTopology, mParams, mpNetwork, mUseAllInputs, and mUseAllOutputs. |
|
Builds pattern set from given dataset and starting month.
Definition at line 578 of file prediction.cc. References PredictionStrategy::mInputMonths, mUseAllInputs, mUseAllOutputs, mVariable, PatternSource::patterns, PatternSet::set_input(), and PatternSet::set_output(). |
|
Tests the data and returns the monthly predictions in matrix. Must be implemented by prediction strategies.
Reimplemented from PredictionStrategy. Definition at line 679 of file prediction.cc. References ANNetwork::getEqualizer(), makeSet(), mpNetwork, mUseAllOutputs, PatternSource::outputs, PatternSource::patterns, and ANNetwork::testPattern(). |
|
Trains the learning method with the given data. Must be implemented by prediction strategies.
Reimplemented from PredictionStrategy. Definition at line 621 of file prediction.cc. References MatrixEqualizer::analyze(), ANNetwork::connectFullFfw(), ANNetwork::getEqualizer(), RPropTrainer::init(), ANNetwork::init(), ANNetwork::make(), makeSet(), mGlobalEqualization, mHiddenTopology, mParams, mpNetwork, rpObserver, ANNetwork::setEqualizer(), Trainer::setObserver(), Trainer::setTerminator(), and Trainer::train(). |
|
Should global equalization be used?
Definition at line 326 of file prediction.h. |
|
Topology description string for the hidden units, for example "10-5-5".
Definition at line 331 of file prediction.h. |
|
Application parameters, stored here for subsequent use.
Definition at line 334 of file prediction.h. |
|
Trained network.
Definition at line 307 of file prediction.h. |
|
Should all input variables be used or just one? If false, mUseAllOutputs must also be false (we can't predict all variables with the information from just one variable).
Definition at line 318 of file prediction.h. |
|
Flag that says whether we train all variables at a time, i.e., have all the variables in the output layer.
Definition at line 312 of file prediction.h. |
|
Currently handled output variable. This value changes during the run. Definition at line 323 of file prediction.h. Referenced by makeSet(). |
|
Training observer that can print out training log during network training.
Definition at line 339 of file prediction.h. Referenced by train(). |