#include <StatsIterator.h>
Inheritance diagram for PLearn::StatsIterator:
Public Member Functions | |
virtual bool | requiresMultiplePasses () |
Should return true if several passes are required (default version returns false). | |
virtual void | init (int inputsize)=0 |
Call this method once with the correct inputsize. | |
virtual void | update (const Vec &input)=0 |
Then iterate over the data set and call this method for each row. | |
virtual void | update (const Mat &inputs) |
virtual bool | finish ()=0 |
virtual Vec | getResult () |
You can call this method after finish has returned true. | |
virtual void | makeDeepCopyFromShallowCopy (map< const void *, void * > &copies) |
PLEARN_DECLARE_ABSTRACT_OBJECT (StatsIterator) | |
virtual void | build () |
Should call simply inherited::build(), then this class's build_(). | |
virtual void | oldwrite (ostream &out) const |
virtual void | oldread (istream &in) |
DEPRECATED For backward compatibility with old saved object. | |
Static Protected Member Functions | |
void | declareOptions (OptionList &ol) |
redefine this in subclasses: call declareOption(...) for each option, and then call inherited::declareOptions(options) ( see the declareOption function further down) | |
Protected Attributes | |
Vec | result |
Private Types | |
typedef Object | inherited |
|
Reimplemented from PLearn::Object. Reimplemented in PLearn::MeanStatsIterator, PLearn::ExpMeanStatsIterator, PLearn::StddevStatsIterator, PLearn::StderrStatsIterator, PLearn::SharpeRatioStatsIterator, PLearn::MinStatsIterator, PLearn::MaxStatsIterator, PLearn::LiftStatsIterator, and PLearn::QuantilesStatsIterator. Definition at line 60 of file StatsIterator.h. |
|
Should call simply inherited::build(), then this class's build_(). This method should be callable again at later times, after modifying some option fields to change the "architecture" of the object. Reimplemented from PLearn::Object. Definition at line 97 of file StatsIterator.h. |
|
redefine this in subclasses: call declareOption(...) for each option, and then call inherited::declareOptions(options) ( see the declareOption function further down) ex: static void declareOptions(OptionList& ol) { declareOption(ol, "inputsize", &MyObject::inputsize_, OptionBase::buildoption, "the size of the input\n it must be provided"); declareOption(ol, "weights", &MyObject::weights, OptionBase::learntoption, "the learnt model weights"); inherited::declareOptions(ol); } Reimplemented from PLearn::Object. Reimplemented in PLearn::MeanStatsIterator, PLearn::ExpMeanStatsIterator, PLearn::StddevStatsIterator, PLearn::StderrStatsIterator, PLearn::SharpeRatioStatsIterator, PLearn::MinStatsIterator, PLearn::MaxStatsIterator, PLearn::LiftStatsIterator, and PLearn::QuantilesStatsIterator. Definition at line 63 of file StatsIterator.cc. References PLearn::declareOption(), and PLearn::OptionList. |
|
Call this method when all the data has been shown (through update) If the method returns false, then a further pass through the data is required. Implemented in PLearn::MeanStatsIterator, PLearn::ExpMeanStatsIterator, PLearn::StddevStatsIterator, PLearn::StderrStatsIterator, PLearn::SharpeRatioStatsIterator, PLearn::MinStatsIterator, PLearn::MaxStatsIterator, PLearn::LiftStatsIterator, and PLearn::QuantilesStatsIterator. |
|
You can call this method after finish has returned true.
Definition at line 61 of file StatsIterator.cc. References result. |
|
Call this method once with the correct inputsize.
Implemented in PLearn::MeanStatsIterator, PLearn::ExpMeanStatsIterator, PLearn::StddevStatsIterator, PLearn::StderrStatsIterator, PLearn::SharpeRatioStatsIterator, PLearn::MinStatsIterator, PLearn::MaxStatsIterator, PLearn::LiftStatsIterator, and PLearn::QuantilesStatsIterator. |
|
Reimplemented in PLearn::StddevStatsIterator, PLearn::StderrStatsIterator, PLearn::SharpeRatioStatsIterator, PLearn::LiftStatsIterator, and PLearn::QuantilesStatsIterator. Definition at line 53 of file StatsIterator.cc. References PLearn::deepCopyField(), and result. |
|
DEPRECATED For backward compatibility with old saved object.
Reimplemented from PLearn::Object. Reimplemented in PLearn::MeanStatsIterator, PLearn::ExpMeanStatsIterator, PLearn::StddevStatsIterator, PLearn::StderrStatsIterator, PLearn::SharpeRatioStatsIterator, PLearn::MinStatsIterator, PLearn::MaxStatsIterator, PLearn::LiftStatsIterator, and PLearn::QuantilesStatsIterator. Definition at line 79 of file StatsIterator.cc. References PLearn::readField(), PLearn::readFooter(), PLearn::readHeader(), and result. |
|
Reimplemented in PLearn::MeanStatsIterator, PLearn::ExpMeanStatsIterator, PLearn::StddevStatsIterator, PLearn::StderrStatsIterator, PLearn::SharpeRatioStatsIterator, PLearn::MinStatsIterator, PLearn::MaxStatsIterator, PLearn::LiftStatsIterator, and PLearn::QuantilesStatsIterator. Definition at line 71 of file StatsIterator.cc. References result, PLearn::writeField(), PLearn::writeFooter(), and PLearn::writeHeader(). |
|
|
|
Should return true if several passes are required (default version returns false).
Definition at line 59 of file StatsIterator.cc. |
|
Definition at line 76 of file StatsIterator.h. References PLearn::TMat< T >::length(), PLearn::Mat, and PLearn::update(). |
|
Then iterate over the data set and call this method for each row.
Implemented in PLearn::MeanStatsIterator, PLearn::ExpMeanStatsIterator, PLearn::StddevStatsIterator, PLearn::StderrStatsIterator, PLearn::SharpeRatioStatsIterator, PLearn::MinStatsIterator, PLearn::MaxStatsIterator, PLearn::LiftStatsIterator, and PLearn::QuantilesStatsIterator. |
|
Definition at line 63 of file StatsIterator.h. Referenced by getResult(), makeDeepCopyFromShallowCopy(), oldread(), and oldwrite(). |