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

Public Member Functions | |
| Array const * | p_data () const |
| get the data set | |
| virtual void | setData (Array const *p_data) |
| Set the data set. | |
| virtual void | setData (Array const &data) |
| 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 | |
| IRunnerUnsupervised () | |
| default constructor. | |
| IRunnerUnsupervised (Array const *const p_data) | |
| constructor with a pointer on the constant data set | |
| IRunnerUnsupervised (Array const &data) | |
| constructor with a constant reference on the data set | |
| IRunnerUnsupervised (IRunnerUnsupervised const &runner) | |
| copy constructor | |
| ~IRunnerUnsupervised () | |
| destructor | |
Protected Member Functions inherited from STK::IRunnerBase | |
| IRunnerBase () | |
| default constructor | |
| IRunnerBase (IRunnerBase const &runner) | |
| copy constructor | |
| virtual | ~IRunnerBase () |
| destructor | |
| virtual void | update () |
| update the runner. | |
Protected Attributes | |
| Array const * | p_data_ |
| A pointer on the original data set. | |
Protected Attributes inherited from STK::IRunnerBase | |
| String | msg_error_ |
| String with the last error message. | |
| bool | hasRun_ |
true if run has been used, false otherwise | |
Abstract class for all classes making unsupervised learning.
This Interface is designed for unsupervised learning purpose. In a supervised learning setting, use IRunnerSupervised. The data set to process is not copied and a ptr on the data set is stored internally.
The pure virtual methods to implement are
Definition at line 189 of file STK_IRunner.h.
|
inlineprotected |
default constructor.
Definition at line 193 of file STK_IRunner.h.
|
inlineprotected |
constructor with a pointer on the constant data set
| p_data | pointer on the data set to run |
Definition at line 197 of file STK_IRunner.h.
|
inlineprotected |
constructor with a constant reference on the data set
| data | data set to run |
Definition at line 201 of file STK_IRunner.h.
|
inlineprotected |
copy constructor
| runner | the runner to copy |
Definition at line 205 of file STK_IRunner.h.
|
inlineprotected |
|
inline |
get the data set
Definition at line 216 of file STK_IRunner.h.
References STK::IRunnerUnsupervised< Array, Weights_ >::p_data_.
Referenced by STK::BernoulliModel< Array, WColVector >::computeParameters(), STK::BernoulliModel< Array, WColVector >::computeParameters(), and STK::IRunnerUnsupervised< Array, Weights_ >::setData().
|
pure virtual |
run the computations.
true if no error occur during the running process, false otherwise Implements STK::IRunnerBase.
Implemented in STK::LinearAAModel< Array >, STK::ILinearReduct< Array, Weights >, STK::ILinearReduct< Array, VectorX >, STK::Stat::Multivariate< Array, WColVector, Type >, STK::Stat::Multivariate< Array, Real >, STK::IUnivStatModel< ColVector, WColVector, UnivariateLaw >, and STK::IUnivStatModel< Array, WColVector, Law::Bernoulli >.
|
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::LinearAAModel< Array >, STK::ILinearReduct< Array, VectorX >, STK::Stat::Multivariate< Array, WColVector, Type >, STK::IUnivStatModel< ColVector, WColVector, UnivariateLaw >, and STK::ILinearReduct< Array, Weights >.
|
inlinevirtual |
Set the data set.
If the state of the derived runner change when a new data set is set the user have to overload the udpate() method.
| data | The data set to run |
Definition at line 230 of file STK_IRunner.h.
References STK::IRunnerBase::hasRun_, STK::IRunnerUnsupervised< Array, Weights_ >::p_data_, and STK::IRunnerBase::update().
|
inlinevirtual |
Set the data set.
If the state of the derived runner change when a new data set is set the user have to overload the udpate() method.
| p_data | A pointer on the data set to run |
Definition at line 221 of file STK_IRunner.h.
References STK::IRunnerUnsupervised< Array, Weights_ >::p_data(), STK::IRunnerUnsupervised< Array, Weights_ >::p_data_, and STK::IRunnerBase::update().
|
protected |
A pointer on the original data set.
Definition at line 250 of file STK_IRunner.h.
Referenced by STK::IRunnerUnsupervised< Array, Weights_ >::p_data(), STK::IRunnerUnsupervised< Array, Weights_ >::setData(), and STK::IRunnerUnsupervised< Array, Weights_ >::setData().