| STK++ 0.9.13
    | 
Abstract class for all classes making supervised learning. More...
#include <STK_IRunner.h>

| Public Member Functions | |
| virtual void | setX (XArray_ const &x) | 
| set the x data set (predictors). | |
| virtual void | setY (YArray_ const &y) | 
| set the data set. | |
| virtual void | setData (YArray_ const &y, XArray_ const &x) | 
| set the data set. | |
| virtual bool | run ()=0 | 
| run the computations. | |
| virtual bool | run (Weights_ const &weights)=0 | 
| run the weighted computations. | |
|  Public Member Functions inherited from STK::IRunnerBase | |
| String const & | error () const | 
| get the last error message. | |
| Protected Member Functions | |
| IRunnerSupervised () | |
| default constructor | |
| IRunnerSupervised (YArray_ const *const &p_y, XArray_ const *const &p_x) | |
| constructor | |
| IRunnerSupervised (YArray_ const &y, XArray_ const &x) | |
| default constructor | |
| IRunnerSupervised (IRunnerSupervised const &runner) | |
| copy constructor | |
| ~IRunnerSupervised () | |
| destructor | |
| virtual void | updateY () | 
| update the runner when y data set is set. | |
| virtual void | updateX () | 
| update the runner when x data set is set. | |
| virtual void | update () | 
| update the runner. | |
|  Protected Member Functions inherited from STK::IRunnerBase | |
| IRunnerBase () | |
| default constructor | |
| IRunnerBase (IRunnerBase const &runner) | |
| copy constructor | |
| virtual | ~IRunnerBase () | 
| destructor | |
| Protected Attributes | |
| YArray_ const * | p_y_ | 
| A pointer on the y data set. | |
| XArray_ const * | p_x_ | 
| A pointer on the x data set. | |
|  Protected Attributes inherited from STK::IRunnerBase | |
| String | msg_error_ | 
| String with the last error message. | |
| bool | hasRun_ | 
| trueif run has been used,falseotherwise | |
Abstract class for all classes making supervised learning.
This Interface is designed for supervised learning purpose. In an unsupervised learning setting, use IRunnerUnsupervised. The data sets x and y are not copied. There is two pointers on the data sets stored internally.
The pure virtual method to implement are
Definition at line 269 of file STK_IRunner.h.
| 
 | inlineprotected | 
default constructor
Definition at line 273 of file STK_IRunner.h.
| 
 | inlineprotected | 
constructor
| p_y,p_x | pointers on the y and x data sets | 
Definition at line 277 of file STK_IRunner.h.
| 
 | inlineprotected | 
| 
 | inlineprotected | 
copy constructor
| runner | the runner to copy | 
Definition at line 289 of file STK_IRunner.h.
| 
 | inlineprotected | 
run the computations.
true if no error occur during the running process, false otherwise Implements STK::IRunnerBase.
Implemented in STK::IClassification< YArray_, XArray_, Weights_ >, STK::IRegression< YArray, XArray, Weights >, STK::IRegression< Array, Array, Weight >, STK::IRegression< YArray, XArray, VectorX >, and STK::IRegression< YArray, XVector, VectorX >.
| 
 | pure virtual | 
run the weighted computations.
| weights | the weights of the samples | 
true if no error occur during the running process, false otherwise Implemented in STK::IRegression< YArray, XArray, Weights >, and STK::IClassification< YArray_, XArray_, Weights_ >.
| 
 | inlinevirtual | 
set the data set.
If the state of the runner change when a new data set is set, the user of this class have to overload the udpate() method.
| y | The y data set to run | 
| x | The x data set to run | 
Definition at line 324 of file STK_IRunner.h.
References STK::IRunnerBase::hasRun_, STK::IRunnerSupervised< YArray_, XArray_, Weights_ >::p_x_, STK::IRunnerSupervised< YArray_, XArray_, Weights_ >::p_y_, and STK::IRunnerSupervised< YArray_, XArray_, Weights_ >::update().
Referenced by STK::LocalVariance< Array >::computeAxis(), STK::LocalVariance< Array >::computeCovarianceMatrices(), STK::LocalVariance< Array >::computeCovarianceMatrices(), STK::CategoricalBridge< Id, Data >::create(), STK::DiagGaussianBridge< Id, Data >::create(), STK::GammaBridge< Id, Data >::create(), STK::HDMatrixGaussianBridge< IdRow, IdCol, Data >::create(), STK::HDGaussianBridge< Id, Data >::create(), STK::PoissonBridge< Id, Data >::create(), STK::List1D< Type_ >::operator=(), STK::Stat::Bivariate< XTYPE, YTYPE, TContainer1D >::setData(), and STK::MultiLaw::Normal< RowVector >::setParameters().
| 
 | inlinevirtual | 
set the x data set (predictors).
If the state of the runner change when a new x data set is set, the user of this class have to overload the udpate() method.
| x | The x data set to run | 
Definition at line 302 of file STK_IRunner.h.
References STK::IRunnerBase::hasRun_, STK::IRunnerSupervised< YArray_, XArray_, Weights_ >::p_x_, and STK::IRunnerSupervised< YArray_, XArray_, Weights_ >::updateX().
| 
 | inlinevirtual | 
set the data set.
If the state of the runner change when a new data set is set, the user of this class have to overload the udpate() method.
| y | The y data set to run | 
Definition at line 313 of file STK_IRunner.h.
References STK::IRunnerBase::hasRun_, STK::IRunnerSupervised< YArray_, XArray_, Weights_ >::p_y_, and STK::IRunnerSupervised< YArray_, XArray_, Weights_ >::updateY().
| 
 | inlineprotectedvirtual | 
update the runner.
This virtual method will be called when the state of the runner will change, i.e. when new x and y data sets are set. By default do nothing.
Reimplemented from STK::IRunnerBase.
Definition at line 362 of file STK_IRunner.h.
References STK::IRunnerSupervised< YArray_, XArray_, Weights_ >::updateX(), and STK::IRunnerSupervised< YArray_, XArray_, Weights_ >::updateY().
Referenced by STK::IQr< Derived >::insertCol(), STK::IRunnerSupervised< YArray_, XArray_, Weights_ >::setData(), and STK::HDMatrixModelParameters< Array_ >::updateStatistics().
| 
 | inlineprotectedvirtual | 
update the runner when x data set is set.
This virtual method will be called when the state of the runner will change, i.e. when a new x data set is set. By default do nothing.
Definition at line 357 of file STK_IRunner.h.
Referenced by STK::IRunnerSupervised< YArray_, XArray_, Weights_ >::setX(), and STK::IRunnerSupervised< YArray_, XArray_, Weights_ >::update().
| 
 | inlineprotectedvirtual | 
update the runner when y data set is set.
This virtual method will be called when the state of the runner will change, i.e. when a new y data is set is set. By default do nothing.
Definition at line 352 of file STK_IRunner.h.
Referenced by STK::IRunnerSupervised< YArray_, XArray_, Weights_ >::setY(), and STK::IRunnerSupervised< YArray_, XArray_, Weights_ >::update().
A pointer on the x data set.
Definition at line 347 of file STK_IRunner.h.
Referenced by STK::AdditiveBSplineRegression< YArray, XArray, Weights >::initializeStep(), STK::MultidimRegression< Array, Weight >::predictionStep(), STK::MultidimRegression< Array, Weight >::regressionStep(), STK::MultidimRegression< Array, Weight >::regressionStep(), STK::IRunnerSupervised< YArray_, XArray_, Weights_ >::setData(), and STK::IRunnerSupervised< YArray_, XArray_, Weights_ >::setX().
A pointer on the y data set.
Definition at line 345 of file STK_IRunner.h.
Referenced by STK::AdditiveBSplineRegression< YArray, XArray, Weights >::regressionStep(), STK::BSplineRegression< YArray, XVector, Weights >::regressionStep(), STK::MultidimRegression< Array, Weight >::regressionStep(), STK::MultidimRegression< Array, Weight >::regressionStep(), STK::AdditiveBSplineRegression< YArray, XArray, Weights >::regressionStep(), STK::BSplineRegression< YArray, XVector, Weights >::regressionStep(), STK::IRunnerSupervised< YArray_, XArray_, Weights_ >::setData(), and STK::IRunnerSupervised< YArray_, XArray_, Weights_ >::setY().