#include <Grapher.h>
Inheritance diagram for PLearn::Grapher:


Public Types | |
| typedef Object | inherited |
Public Member Functions | |
| Grapher () | |
| virtual void | run () |
| Overload this for runnable objects (default method issues a runtime error). | |
| virtual void | build () |
| Should call simply inherited::build(), then this class's build_(). | |
| virtual void | makeDeepCopyFromShallowCopy (map< const void *, void * > &copies) |
| Transforms a shallow copy into a deep copy. | |
| PLEARN_DECLARE_OBJECT (Grapher) | |
| Declares name and deepCopy methods. | |
Static Public Member Functions | |
| void | plot_2D_classification (string epsfname, VMat trainset, TVec< int > griddim, TVec< pair< real, real > > gridrange, VMat gridoutputs, real radius, bool bw=false) |
| void | plot_1D_regression (string basename, VMat trainset, TVec< int > griddim, TVec< pair< real, real > > gridrange, VMat gridoutputs, VMat trainoutputs, bool bw=false) |
Public Attributes | |
| string | basename |
| string | task |
| real | class1_threshold |
| PP< PLearner > | learner |
| VMat | trainset |
| TVec< int > | griddim |
| TVec< pair< real, real > > | gridrange |
| real | radius |
| bool | bw |
| string | save_learner_as |
Static Protected Member Functions | |
| void | declareOptions (OptionList &ol) |
| Declares this class' options. | |
Private Member Functions | |
| void | build_ () |
| This does the actual building. | |
| void | computeAutoGridrange () |
|
|
Reimplemented from PLearn::Object. |
|
|
Definition at line 495 of file Grapher.cc. |
|
|
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 823 of file Grapher.cc. References build_(). |
|
|
This does the actual building.
Reimplemented from PLearn::Object. Definition at line 548 of file Grapher.cc. Referenced by build(). |
|
|
Definition at line 461 of file Grapher.cc. References PLearn::TVec< T >::first(), PLearn::TVec< pair< real, real > >::first(), PLearn::VMat::getExample(), gridrange, PLearn::VMat::length(), PLearn::TVec< pair< real, real > >::resize(), trainset, and PLearn::Vec. Referenced by run(). |
|
|
Declares this class' options.
Reimplemented from PLearn::Object. Definition at line 503 of file Grapher.cc. References PLearn::declareOption(), and PLearn::OptionList. |
|
|
Transforms a shallow copy into a deep copy.
Definition at line 830 of file Grapher.cc. |
|
|
Declares name and deepCopy methods.
|
|
||||||||||||||||||||||||||||||||
|
Definition at line 586 of file Grapher.cc. References PLearn::endl(), PLearn::VMat::getExample(), PLearn::VMat::length(), PLearn::Mat, PLearn::pgetline(), PLERROR, PLearn::saveAscii(), PLearn::TVec< T >::size(), PLearn::sortRows(), and x. Referenced by run(). |
|
||||||||||||||||||||||||||||||||
|
|
Overload this for runnable objects (default method issues a runtime error).
Reimplemented from PLearn::Object. Definition at line 717 of file Grapher.cc. References bw, class1_threshold, computeAutoGridrange(), PLearn::endl(), griddim, gridrange, PLearn::TVec< pair< real, real > >::isEmpty(), PLearn::VMat::length(), PLERROR, plot_1D_regression(), plot_2D_classification(), radius, PLearn::save(), save_learner_as, task, and trainset. |
|
|
|
|
|
Definition at line 76 of file Grapher.h. Referenced by run(). |
|
|
Definition at line 70 of file Grapher.h. Referenced by run(). |
|
|
Definition at line 73 of file Grapher.h. Referenced by run(). |
|
|
Definition at line 74 of file Grapher.h. Referenced by computeAutoGridrange(), and run(). |
|
|
|
|
|
Definition at line 75 of file Grapher.h. Referenced by run(). |
|
|
Definition at line 78 of file Grapher.h. Referenced by run(). |
|
|
Definition at line 69 of file Grapher.h. Referenced by run(). |
|
|
Definition at line 72 of file Grapher.h. Referenced by computeAutoGridrange(), and run(). |
1.3.7